@fluid-topics/ft-reader-context 1.1.104 → 1.1.106

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,13 +1,14 @@
1
- "use strict";(()=>{var qs=Object.create;var no=Object.defineProperty;var Ys=Object.getOwnPropertyDescriptor;var Js=Object.getOwnPropertyNames;var Xs=Object.getPrototypeOf,Qs=Object.prototype.hasOwnProperty;var ec=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),U=(r,e)=>{for(var t in e)no(r,t,{get:e[t],enumerable:!0})},tc=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Js(e))!Qs.call(r,i)&&i!==t&&no(r,i,{get:()=>e[i],enumerable:!(o=Ys(e,i))||o.enumerable});return r};var rc=(r,e,t)=>(t=r!=null?qs(Xs(r)):{},tc(e||!r||!r.__esModule?no(t,"default",{value:r,enumerable:!0}):t,r));var Cs=ec(Es=>{(function(r){var e=function(t){var o={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};function i(m){return m&&DataView.prototype.isPrototypeOf(m)}if(o.arrayBuffer)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(m){return m&&a.indexOf(Object.prototype.toString.call(m))>-1};function c(m){if(typeof m!="string"&&(m=String(m)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(m))throw new TypeError("Invalid character in header field name");return m.toLowerCase()}function l(m){return typeof m!="string"&&(m=String(m)),m}function u(m){var v={next:function(){var E=m.shift();return{done:E===void 0,value:E}}};return o.iterable&&(v[Symbol.iterator]=function(){return v}),v}function p(m){this.map={},m instanceof p?m.forEach(function(v,E){this.append(E,v)},this):Array.isArray(m)?m.forEach(function(v){this.append(v[0],v[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(v){this.append(v,m[v])},this)}p.prototype.append=function(m,v){m=c(m),v=l(v);var E=this.map[m];this.map[m]=E?E+", "+v:v},p.prototype.delete=function(m){delete this.map[c(m)]},p.prototype.get=function(m){return m=c(m),this.has(m)?this.map[m]:null},p.prototype.has=function(m){return this.map.hasOwnProperty(c(m))},p.prototype.set=function(m,v){this.map[c(m)]=l(v)},p.prototype.forEach=function(m,v){for(var E in this.map)this.map.hasOwnProperty(E)&&m.call(v,this.map[E],E,this)},p.prototype.keys=function(){var m=[];return this.forEach(function(v,E){m.push(E)}),u(m)},p.prototype.values=function(){var m=[];return this.forEach(function(v){m.push(v)}),u(m)},p.prototype.entries=function(){var m=[];return this.forEach(function(v,E){m.push([E,v])}),u(m)},o.iterable&&(p.prototype[Symbol.iterator]=p.prototype.entries);function h(m){if(m.bodyUsed)return Promise.reject(new TypeError("Already read"));m.bodyUsed=!0}function g(m){return new Promise(function(v,E){m.onload=function(){v(m.result)},m.onerror=function(){E(m.error)}})}function y(m){var v=new FileReader,E=g(v);return v.readAsArrayBuffer(m),E}function b(m){var v=new FileReader,E=g(v);return v.readAsText(m),E}function O(m){for(var v=new Uint8Array(m),E=new Array(v.length),P=0;P<v.length;P++)E[P]=String.fromCharCode(v[P]);return E.join("")}function C(m){if(m.slice)return m.slice(0);var v=new Uint8Array(m.byteLength);return v.set(new Uint8Array(m)),v.buffer}function A(){return this.bodyUsed=!1,this._initBody=function(m){this._bodyInit=m,m?typeof m=="string"?this._bodyText=m:o.blob&&Blob.prototype.isPrototypeOf(m)?this._bodyBlob=m:o.formData&&FormData.prototype.isPrototypeOf(m)?this._bodyFormData=m:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)?this._bodyText=m.toString():o.arrayBuffer&&o.blob&&i(m)?(this._bodyArrayBuffer=C(m.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(m)||s(m))?this._bodyArrayBuffer=C(m):this._bodyText=m=Object.prototype.toString.call(m):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):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var m=h(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(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(y)}),this.text=function(){var m=h(this);if(m)return m;if(this._bodyBlob)return b(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(O(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}var R=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function S(m){var v=m.toUpperCase();return R.indexOf(v)>-1?v:m}function x(m,v){v=v||{};var E=v.body;if(m instanceof x){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,v.headers||(this.headers=new p(m.headers)),this.method=m.method,this.mode=m.mode,this.signal=m.signal,!E&&m._bodyInit!=null&&(E=m._bodyInit,m.bodyUsed=!0)}else this.url=String(m);if(this.credentials=v.credentials||this.credentials||"same-origin",(v.headers||!this.headers)&&(this.headers=new p(v.headers)),this.method=S(v.method||this.method||"GET"),this.mode=v.mode||this.mode||null,this.signal=v.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&E)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(E)}x.prototype.clone=function(){return new x(this,{body:this._bodyInit})};function w(m){var v=new FormData;return m.trim().split("&").forEach(function(E){if(E){var P=E.split("="),F=P.shift().replace(/\+/g," "),L=P.join("=").replace(/\+/g," ");v.append(decodeURIComponent(F),decodeURIComponent(L))}}),v}function I(m){var v=new p,E=m.replace(/\r?\n[\t ]+/g," ");return E.split(/\r?\n/).forEach(function(P){var F=P.split(":"),L=F.shift().trim();if(L){var Yt=F.join(":").trim();v.append(L,Yt)}}),v}A.call(x.prototype);function _(m,v){v||(v={}),this.type="default",this.status=v.status===void 0?200:v.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in v?v.statusText:"OK",this.headers=new p(v.headers),this.url=v.url||"",this._initBody(m)}A.call(_.prototype),_.prototype.clone=function(){return new _(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},_.error=function(){var m=new _(null,{status:0,statusText:""});return m.type="error",m};var j=[301,302,303,307,308];_.redirect=function(m,v){if(j.indexOf(v)===-1)throw new RangeError("Invalid status code");return new _(null,{status:v,headers:{location:m}})},t.DOMException=r.DOMException;try{new t.DOMException}catch{t.DOMException=function(v,E){this.message=v,this.name=E;var P=Error(v);this.stack=P.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function k(m,v){return new Promise(function(E,P){var F=new x(m,v);if(F.signal&&F.signal.aborted)return P(new t.DOMException("Aborted","AbortError"));var L=new XMLHttpRequest;function Yt(){L.abort()}L.onload=function(){var yt={status:L.status,statusText:L.statusText,headers:I(L.getAllResponseHeaders()||"")};yt.url="responseURL"in L?L.responseURL:yt.headers.get("X-Request-URL");var oo="response"in L?L.response:L.responseText;E(new _(oo,yt))},L.onerror=function(){P(new TypeError("Network request failed"))},L.ontimeout=function(){P(new TypeError("Network request failed"))},L.onabort=function(){P(new t.DOMException("Aborted","AbortError"))},L.open(F.method,F.url,!0),F.credentials==="include"?L.withCredentials=!0:F.credentials==="omit"&&(L.withCredentials=!1),"responseType"in L&&o.blob&&(L.responseType="blob"),F.headers.forEach(function(yt,oo){L.setRequestHeader(oo,yt)}),F.signal&&(F.signal.addEventListener("abort",Yt),L.onreadystatechange=function(){L.readyState===4&&F.signal.removeEventListener("abort",Yt)}),L.send(typeof F._bodyInit>"u"?null:F._bodyInit)})}return k.polyfill=!0,r.fetch||(r.fetch=k,r.Headers=p,r.Request=x,r.Response=_),t.Headers=p,t.Request=x,t.Response=_,t.fetch=k,Object.defineProperty(t,"__esModule",{value:!0}),t}({})})(typeof self<"u"?self:Es)});if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,e=window.customElements.define,t=window.customElements.get,o=window.customElements,i=new WeakMap,a=new WeakMap,s=new WeakMap,c=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(S,x){if(S=S.toLowerCase(),this._getDefinition(S)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${S}" has already been used with this registry`);if(this._definitionsByClass.get(x)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let w=x.prototype.attributeChangedCallback,I=new Set(x.observedAttributes||[]);g(x,I,w);let _={elementClass:x,connectedCallback:x.prototype.connectedCallback,disconnectedCallback:x.prototype.disconnectedCallback,adoptedCallback:x.prototype.adoptedCallback,attributeChangedCallback:w,formAssociated:x.formAssociated,formAssociatedCallback:x.prototype.formAssociatedCallback,formDisabledCallback:x.prototype.formDisabledCallback,formResetCallback:x.prototype.formResetCallback,formStateRestoreCallback:x.prototype.formStateRestoreCallback,observedAttributes:I};this._definitionsByTag.set(S,_),this._definitionsByClass.set(x,_);let j=t.call(o,S);j||(j=h(S),e.call(o,S,j)),this===window.customElements&&(s.set(x,_),_.standInClass=j);let k=this._awaitingUpgrade.get(S);if(k){this._awaitingUpgrade.delete(S);for(let v of k)a.delete(v),b(v,_,!0)}let m=this._whenDefinedPromises.get(S);return m!==void 0&&(m.resolve(x),this._whenDefinedPromises.delete(S)),x}upgrade(){C.push(this),o.upgrade.apply(o,arguments),C.pop()}get(S){return this._definitionsByTag.get(S)?.elementClass}_getDefinition(S){return this._definitionsByTag.get(S)}whenDefined(S){let x=this._getDefinition(S);if(x!==void 0)return Promise.resolve(x.elementClass);let w=this._whenDefinedPromises.get(S);return w===void 0&&(w={},w.promise=new Promise(I=>w.resolve=I),this._whenDefinedPromises.set(S,w)),w.promise}_upgradeWhenDefined(S,x,w){let I=this._awaitingUpgrade.get(x);I||this._awaitingUpgrade.set(x,I=new Set),w?I.add(S):I.delete(S)}};let l;window.HTMLElement=function(){let x=l;if(x)return l=void 0,x;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 x=Reflect.construct(r,[],w.standInClass),Object.setPrototypeOf(x,this.constructor.prototype),i.set(x,w),x},window.HTMLElement.prototype=r.prototype;let u=S=>S===document||S instanceof ShadowRoot,p=S=>{let x=S.getRootNode();if(!u(x)){let w=C[C.length-1];if(w instanceof CustomElementRegistry)return w;x=w.getRootNode(),u(x)||(x=c.get(x)?.getRootNode()||document)}return x.customElements},h=S=>class{static get formAssociated(){return!0}constructor(){let w=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(w,HTMLElement.prototype);let I=p(w)||window.customElements,_=I._getDefinition(S);return _?b(w,_):a.set(w,I),w}connectedCallback(){let w=i.get(this);w?w.connectedCallback&&w.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,S,!0)}disconnectedCallback(){let w=i.get(this);w?w.disconnectedCallback&&w.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,S,!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=(S,x,w)=>{if(x.size===0||w===void 0)return;let I=S.prototype.setAttribute;I&&(S.prototype.setAttribute=function(k,m){let v=k.toLowerCase();if(x.has(v)){let E=this.getAttribute(v);I.call(this,v,m),w.call(this,v,E,m)}else I.call(this,v,m)});let _=S.prototype.removeAttribute;_&&(S.prototype.removeAttribute=function(k){let m=k.toLowerCase();if(x.has(m)){let v=this.getAttribute(m);_.call(this,m),w.call(this,m,v,null)}else _.call(this,m)});let j=S.prototype.toggleAttribute;j&&(S.prototype.toggleAttribute=function(k,m){let v=k.toLowerCase();if(x.has(v)){let E=this.getAttribute(v);j.call(this,v,m);let P=this.getAttribute(v);w.call(this,v,E,P)}else j.call(this,v,m)})},y=S=>{let x=Object.getPrototypeOf(S);if(x!==window.HTMLElement)return x===r?Object.setPrototypeOf(S,window.HTMLElement):y(x)},b=(S,x,w=!1)=>{Object.setPrototypeOf(S,x.elementClass.prototype),i.set(S,x),l=S;try{new x.elementClass}catch{y(x.elementClass),new x.elementClass}x.attributeChangedCallback&&x.observedAttributes.forEach(I=>{S.hasAttribute(I)&&x.attributeChangedCallback.call(S,I,null,S.getAttribute(I))}),w&&x.connectedCallback&&S.isConnected&&x.connectedCallback.call(S)},O=Element.prototype.attachShadow;Element.prototype.attachShadow=function(S){let x=O.apply(this,arguments);return S.customElements&&(x.customElements=S.customElements),x};let C=[document],A=(S,x,w=void 0)=>{let I=(w?Object.getPrototypeOf(w):S.prototype)[x];S.prototype[x]=function(){C.push(this);let _=I.apply(w||this,arguments);return _!==void 0&&c.set(_,this),C.pop(),_}};A(ShadowRoot,"createElement",document),A(ShadowRoot,"importNode",document),A(Element,"insertAdjacentHTML");let R=(S,x)=>{let w=Object.getOwnPropertyDescriptor(S.prototype,x);Object.defineProperty(S.prototype,x,{...w,set(I){C.push(this),w.set.call(this,I),C.pop()}})};if(R(Element,"innerHTML"),R(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let S=new WeakMap,x=HTMLElement.prototype.attachInternals,w=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...k){let m=x.call(this,...k);return S.set(m,this),m},w.forEach(k=>{let m=window.ElementInternals.prototype,v=m[k];m[k]=function(...E){let P=S.get(this);if(i.get(P).formAssociated===!0)return v?.call(this,...E);throw new DOMException(`Failed to execute ${v} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class I extends Array{constructor(m){super(...m),this._elements=m}get value(){return this._elements.find(m=>m.checked===!0)?.value||""}}class _{constructor(m){let v=new Map;m.forEach((E,P)=>{let F=E.getAttribute("name"),L=v.get(F)||[];this[+P]=E,L.push(E),v.set(F,L)}),this.length=m.length,v.forEach((E,P)=>{E&&(E.length===1?this[P]=E[0]:this[P]=new I(E))})}namedItem(m){return this[m]}}let j=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let k=j.get.call(this,[]),m=[];for(let v of k){let E=i.get(v);(!E||E.formAssociated===!0)&&m.push(v)}return new _(m)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(t,o,i)=>{if(o!==null)try{e.bind(window.customElements)(t,o,i)}catch(a){console.info(t,o,i,a)}}}var bo={};U(bo,{CSSResult:()=>rt,LitElement:()=>he,ReactiveElement:()=>ie,_$LE:()=>Ac,_$LH:()=>wc,adoptStyles:()=>ur,css:()=>H,defaultConverter:()=>fr,getCompatibleStyle:()=>At,html:()=>nt,isServer:()=>mu,noChange:()=>Oe,notEqual:()=>fo,nothing:()=>B,render:()=>yo,supportsAdoptingStyleSheets:()=>Et,svg:()=>Oc,unsafeCSS:()=>Ct});var Jt=globalThis,Qt=Jt.ShadowRoot&&(Jt.ShadyCSS===void 0||Jt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Qn=Symbol(),Xn=new WeakMap,Xt=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==Qn)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(Qt&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=Xn.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Xn.set(t,e))}return e}toString(){return this.cssText}},ei=r=>new Xt(typeof r=="string"?r:r+"",void 0,Qn);var io=(r,e)=>{if(Qt)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let o=document.createElement("style"),i=Jt.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=t.cssText,r.appendChild(o)}},er=Qt?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return ei(t)})(r):r;var{is:oc,defineProperty:nc,getOwnPropertyDescriptor:ic,getOwnPropertyNames:ac,getOwnPropertySymbols:sc,getPrototypeOf:cc}=Object,tr=globalThis,ti=tr.trustedTypes,lc=ti?ti.emptyScript:"",dc=tr.reactiveElementPolyfillSupport,bt=(r,e)=>r,vt={toAttribute(r,e){switch(e){case Boolean:r=r?lc: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}},rr=(r,e)=>!oc(r,e),ri={attribute:!0,type:String,converter:vt,reflect:!1,hasChanged:rr};Symbol.metadata??=Symbol("metadata"),tr.litPropertyMetadata??=new WeakMap;var Me=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=ri){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),i=this.getPropertyDescriptor(e,o,t);i!==void 0&&nc(this.prototype,e,i)}}static getPropertyDescriptor(e,t,o){let{get:i,set:a}=ic(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,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ri}static _$Ei(){if(this.hasOwnProperty(bt("elementProperties")))return;let e=cc(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(bt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(bt("properties"))){let t=this.properties,o=[...ac(t),...sc(t)];for(let i of o)this.createProperty(i,t[i])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,i]of t)this.elementProperties.set(o,i)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let i=this._$Eu(t,o);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let i of o)t.unshift(er(i))}else e!==void 0&&t.push(er(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$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 o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return io(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,o){this._$AK(e,o)}_$EO(e,t){let o=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,o);if(i!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:vt).toAttribute(t,o.type);this._$Em=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,t){let o=this.constructor,i=o._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let a=o.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:vt;this._$Em=i,this[i]=s.fromAttribute(t,a.type),this._$Em=null}}requestUpdate(e,t,o,i=!1,a){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??rr)(i?a:this[e],t))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,t,o){this._$AL.has(e)||this._$AL.set(e,t),o.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 o=this.constructor.elementProperties;if(o.size>0)for(let[i,a]of o)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(o=>o.hostUpdate?.()),this.update(t)):this._$ET()}catch(o){throw e=!1,this._$ET(),o}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){}};Me.elementStyles=[],Me.shadowRootOptions={mode:"open"},Me[bt("elementProperties")]=new Map,Me[bt("finalized")]=new Map,dc?.({ReactiveElement:Me}),(tr.reactiveElementVersions??=[]).push("2.0.2");var so=globalThis,or=so.trustedTypes,oi=or?or.createPolicy("lit-html",{createHTML:r=>r}):void 0,co="$lit$",fe=`lit$${(Math.random()+"").slice(9)}$`,lo="?"+fe,uc=`<${lo}>`,$e=document,nr=()=>$e.createComment(""),St=r=>r===null||typeof r!="object"&&typeof r!="function",li=Array.isArray,di=r=>li(r)||typeof r?.[Symbol.iterator]=="function",ao=`[
2
- \f\r]`,xt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ni=/-->/g,ii=/>/g,De=RegExp(`>|${ao}(?:([^\\s"'>=/]+)(${ao}*=${ao}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ai=/'/g,si=/"/g,ui=/^(?:script|style|textarea|title)$/i,fi=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),ru=fi(1),ou=fi(2),q=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),ci=new WeakMap,Fe=$e.createTreeWalker($e,129);function pi(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return oi!==void 0?oi.createHTML(e):e}var hi=(r,e)=>{let t=r.length-1,o=[],i,a=e===2?"<svg>":"",s=xt;for(let c=0;c<t;c++){let l=r[c],u,p,h=-1,g=0;for(;g<l.length&&(s.lastIndex=g,p=s.exec(l),p!==null);)g=s.lastIndex,s===xt?p[1]==="!--"?s=ni:p[1]!==void 0?s=ii:p[2]!==void 0?(ui.test(p[2])&&(i=RegExp("</"+p[2],"g")),s=De):p[3]!==void 0&&(s=De):s===De?p[0]===">"?(s=i??xt,h=-1):p[1]===void 0?h=-2:(h=s.lastIndex-p[2].length,u=p[1],s=p[3]===void 0?De:p[3]==='"'?si:ai):s===si||s===ai?s=De:s===ni||s===ii?s=xt:(s=De,i=void 0);let y=s===De&&r[c+1].startsWith("/>")?" ":"";a+=s===xt?l+uc:h>=0?(o.push(u),l.slice(0,h)+co+l.slice(h)+fe+y):l+fe+(h===-2?c:y)}return[pi(r,a+(r[t]||"<?>")+(e===2?"</svg>":"")),o]},Ot=class r{constructor({strings:e,_$litType$:t},o){let i;this.parts=[];let a=0,s=0,c=e.length-1,l=this.parts,[u,p]=hi(e,t);if(this.el=r.createElement(u,o),Fe.currentNode=this.el.content,t===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(i=Fe.nextNode())!==null&&l.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(let h of i.getAttributeNames())if(h.endsWith(co)){let g=p[s++],y=i.getAttribute(h).split(fe),b=/([.?@])?(.*)/.exec(g);l.push({type:1,index:a,name:b[2],strings:y,ctor:b[1]==="."?ar:b[1]==="?"?sr:b[1]==="@"?cr:We}),i.removeAttribute(h)}else h.startsWith(fe)&&(l.push({type:6,index:a}),i.removeAttribute(h));if(ui.test(i.tagName)){let h=i.textContent.split(fe),g=h.length-1;if(g>0){i.textContent=or?or.emptyScript:"";for(let y=0;y<g;y++)i.append(h[y],nr()),Fe.nextNode(),l.push({type:2,index:++a});i.append(h[g],nr())}}}else if(i.nodeType===8)if(i.data===lo)l.push({type:2,index:a});else{let h=-1;for(;(h=i.data.indexOf(fe,h+1))!==-1;)l.push({type:7,index:a}),h+=fe.length-1}a++}}static createElement(e,t){let o=$e.createElement("template");return o.innerHTML=e,o}};function Be(r,e,t=r,o){if(e===q)return e;let i=o!==void 0?t._$Co?.[o]:t._$Cl,a=St(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,o)),o!==void 0?(t._$Co??=[])[o]=i:t._$Cl=i),i!==void 0&&(e=Be(r,i._$AS(r,e.values),i,o)),e}var ir=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:o}=this._$AD,i=(e?.creationScope??$e).importNode(t,!0);Fe.currentNode=i;let a=Fe.nextNode(),s=0,c=0,l=o[0];for(;l!==void 0;){if(s===l.index){let u;l.type===2?u=new wt(a,a.nextSibling,this,e):l.type===1?u=new l.ctor(a,l.name,l.strings,this,e):l.type===6&&(u=new lr(a,this,e)),this._$AV.push(u),l=o[++c]}s!==l?.index&&(a=Fe.nextNode(),s++)}return Fe.currentNode=$e,i}p(e){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},wt=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,i){this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,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=Be(this,e,t),St(e)?e===$||e==null||e===""?(this._$AH!==$&&this._$AR(),this._$AH=$):e!==this._$AH&&e!==q&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):di(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!==$&&St(this._$AH)?this._$AA.nextSibling.data=e:this.$($e.createTextNode(e)),this._$AH=e}g(e){let{values:t,_$litType$:o}=e,i=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Ot.createElement(pi(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(t);else{let a=new ir(i,this),s=a.u(this.options);a.p(t),this.$(s),this._$AH=a}}_$AC(e){let t=ci.get(e.strings);return t===void 0&&ci.set(e.strings,t=new Ot(e)),t}T(e){li(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,i=0;for(let a of e)i===t.length?t.push(o=new r(this.k(nr()),this.k(nr()),this,this.options)):o=t[i],o._$AI(a),i++;i<t.length&&(this._$AR(o&&o._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},We=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,i,a){this.type=1,this._$AH=$,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=$}_$AI(e,t=this,o,i){let a=this.strings,s=!1;if(a===void 0)e=Be(this,e,t,0),s=!St(e)||e!==this._$AH&&e!==q,s&&(this._$AH=e);else{let c=e,l,u;for(e=a[0],l=0;l<a.length-1;l++)u=Be(this,c[o+l],t,l),u===q&&(u=this._$AH[l]),s||=!St(u)||u!==this._$AH[l],u===$?e=$:e!==$&&(e+=(u??"")+a[l+1]),this._$AH[l]=u}s&&!i&&this.O(e)}O(e){e===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ar=class extends We{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===$?void 0:e}},sr=class extends We{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==$)}},cr=class extends We{constructor(e,t,o,i,a){super(e,t,o,i,a),this.type=5}_$AI(e,t=this){if((e=Be(this,e,t,0)??$)===q)return;let o=this._$AH,i=e===$&&o!==$||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==$&&(o===$||i);i&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},lr=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){Be(this,e)}},mi={j:co,P:fe,A:lo,C:1,M:hi,L:ir,R:di,V:Be,D:wt,I:We,H:sr,N:cr,U:ar,B:lr},fc=so.litHtmlPolyfillSupport;fc?.(Ot,wt),(so.litHtmlVersions??=[]).push("3.1.0");var dr=globalThis,Et=dr.ShadowRoot&&(dr.ShadyCSS===void 0||dr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,uo=Symbol(),gi=new WeakMap,rt=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==uo)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(Et&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=gi.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&gi.set(t,e))}return e}toString(){return this.cssText}},Ct=r=>new rt(typeof r=="string"?r:r+"",void 0,uo),H=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((o,i,a)=>o+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+r[a+1],r[0]);return new rt(t,r,uo)},ur=(r,e)=>{if(Et)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let o=document.createElement("style"),i=dr.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=t.cssText,r.appendChild(o)}},At=Et?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return Ct(t)})(r):r;var{is:pc,defineProperty:hc,getOwnPropertyDescriptor:mc,getOwnPropertyNames:gc,getOwnPropertySymbols:yc,getPrototypeOf:bc}=Object,pr=globalThis,yi=pr.trustedTypes,vc=yi?yi.emptyScript:"",xc=pr.reactiveElementPolyfillSupport,Rt=(r,e)=>r,fr={toAttribute(r,e){switch(e){case Boolean:r=r?vc: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}},fo=(r,e)=>!pc(r,e),bi={attribute:!0,type:String,converter:fr,reflect:!1,hasChanged:fo};Symbol.metadata??=Symbol("metadata"),pr.litPropertyMetadata??=new WeakMap;var ie=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=bi){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),i=this.getPropertyDescriptor(e,o,t);i!==void 0&&hc(this.prototype,e,i)}}static getPropertyDescriptor(e,t,o){let{get:i,set:a}=mc(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,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??bi}static _$Ei(){if(this.hasOwnProperty(Rt("elementProperties")))return;let e=bc(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Rt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Rt("properties"))){let t=this.properties,o=[...gc(t),...yc(t)];for(let i of o)this.createProperty(i,t[i])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,i]of t)this.elementProperties.set(o,i)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let i=this._$Eu(t,o);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let i of o)t.unshift(At(i))}else e!==void 0&&t.push(At(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$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 o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return ur(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,o){this._$AK(e,o)}_$EO(e,t){let o=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,o);if(i!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:fr).toAttribute(t,o.type);this._$Em=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,t){let o=this.constructor,i=o._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let a=o.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:fr;this._$Em=i,this[i]=s.fromAttribute(t,a.type),this._$Em=null}}requestUpdate(e,t,o,i=!1,a){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??fo)(i?a:this[e],t))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,t,o){this._$AL.has(e)||this._$AL.set(e,t),o.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 o=this.constructor.elementProperties;if(o.size>0)for(let[i,a]of o)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(o=>o.hostUpdate?.()),this.update(t)):this._$ET()}catch(o){throw e=!1,this._$ET(),o}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){}};ie.elementStyles=[],ie.shadowRootOptions={mode:"open"},ie[Rt("elementProperties")]=new Map,ie[Rt("finalized")]=new Map,xc?.({ReactiveElement:ie}),(pr.reactiveElementVersions??=[]).push("2.0.2");var ho=globalThis,hr=ho.trustedTypes,vi=hr?hr.createPolicy("lit-html",{createHTML:r=>r}):void 0,mo="$lit$",pe=`lit$${(Math.random()+"").slice(9)}$`,go="?"+pe,Sc=`<${go}>`,je=document,It=()=>je.createComment(""),_t=r=>r===null||typeof r!="object"&&typeof r!="function",Ci=Array.isArray,Ai=r=>Ci(r)||typeof r?.[Symbol.iterator]=="function",po=`[
4
- \f\r]`,Nt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,xi=/-->/g,Si=/>/g,He=RegExp(`>|${po}(?:([^\\s"'>=/]+)(${po}*=${po}*(?:[^
5
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Oi=/'/g,wi=/"/g,Ri=/^(?:script|style|textarea|title)$/i,Ni=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),nt=Ni(1),Oc=Ni(2),Oe=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),Ei=new WeakMap,ze=je.createTreeWalker(je,129);function Ii(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return vi!==void 0?vi.createHTML(e):e}var _i=(r,e)=>{let t=r.length-1,o=[],i,a=e===2?"<svg>":"",s=Nt;for(let c=0;c<t;c++){let l=r[c],u,p,h=-1,g=0;for(;g<l.length&&(s.lastIndex=g,p=s.exec(l),p!==null);)g=s.lastIndex,s===Nt?p[1]==="!--"?s=xi:p[1]!==void 0?s=Si:p[2]!==void 0?(Ri.test(p[2])&&(i=RegExp("</"+p[2],"g")),s=He):p[3]!==void 0&&(s=He):s===He?p[0]===">"?(s=i??Nt,h=-1):p[1]===void 0?h=-2:(h=s.lastIndex-p[2].length,u=p[1],s=p[3]===void 0?He:p[3]==='"'?wi:Oi):s===wi||s===Oi?s=He:s===xi||s===Si?s=Nt:(s=He,i=void 0);let y=s===He&&r[c+1].startsWith("/>")?" ":"";a+=s===Nt?l+Sc:h>=0?(o.push(u),l.slice(0,h)+mo+l.slice(h)+pe+y):l+pe+(h===-2?c:y)}return[Ii(r,a+(r[t]||"<?>")+(e===2?"</svg>":"")),o]},Tt=class r{constructor({strings:e,_$litType$:t},o){let i;this.parts=[];let a=0,s=0,c=e.length-1,l=this.parts,[u,p]=_i(e,t);if(this.el=r.createElement(u,o),ze.currentNode=this.el.content,t===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(i=ze.nextNode())!==null&&l.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(let h of i.getAttributeNames())if(h.endsWith(mo)){let g=p[s++],y=i.getAttribute(h).split(pe),b=/([.?@])?(.*)/.exec(g);l.push({type:1,index:a,name:b[2],strings:y,ctor:b[1]==="."?gr:b[1]==="?"?yr:b[1]==="@"?br:Ve}),i.removeAttribute(h)}else h.startsWith(pe)&&(l.push({type:6,index:a}),i.removeAttribute(h));if(Ri.test(i.tagName)){let h=i.textContent.split(pe),g=h.length-1;if(g>0){i.textContent=hr?hr.emptyScript:"";for(let y=0;y<g;y++)i.append(h[y],It()),ze.nextNode(),l.push({type:2,index:++a});i.append(h[g],It())}}}else if(i.nodeType===8)if(i.data===go)l.push({type:2,index:a});else{let h=-1;for(;(h=i.data.indexOf(pe,h+1))!==-1;)l.push({type:7,index:a}),h+=pe.length-1}a++}}static createElement(e,t){let o=je.createElement("template");return o.innerHTML=e,o}};function Ke(r,e,t=r,o){if(e===Oe)return e;let i=o!==void 0?t._$Co?.[o]:t._$Cl,a=_t(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,o)),o!==void 0?(t._$Co??=[])[o]=i:t._$Cl=i),i!==void 0&&(e=Ke(r,i._$AS(r,e.values),i,o)),e}var mr=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:o}=this._$AD,i=(e?.creationScope??je).importNode(t,!0);ze.currentNode=i;let a=ze.nextNode(),s=0,c=0,l=o[0];for(;l!==void 0;){if(s===l.index){let u;l.type===2?u=new ot(a,a.nextSibling,this,e):l.type===1?u=new l.ctor(a,l.name,l.strings,this,e):l.type===6&&(u=new vr(a,this,e)),this._$AV.push(u),l=o[++c]}s!==l?.index&&(a=ze.nextNode(),s++)}return ze.currentNode=je,i}p(e){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},ot=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,i){this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,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=Ke(this,e,t),_t(e)?e===B||e==null||e===""?(this._$AH!==B&&this._$AR(),this._$AH=B):e!==this._$AH&&e!==Oe&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Ai(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!==B&&_t(this._$AH)?this._$AA.nextSibling.data=e:this.$(je.createTextNode(e)),this._$AH=e}g(e){let{values:t,_$litType$:o}=e,i=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Tt.createElement(Ii(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(t);else{let a=new mr(i,this),s=a.u(this.options);a.p(t),this.$(s),this._$AH=a}}_$AC(e){let t=Ei.get(e.strings);return t===void 0&&Ei.set(e.strings,t=new Tt(e)),t}T(e){Ci(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,i=0;for(let a of e)i===t.length?t.push(o=new r(this.k(It()),this.k(It()),this,this.options)):o=t[i],o._$AI(a),i++;i<t.length&&(this._$AR(o&&o._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Ve=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,i,a){this.type=1,this._$AH=B,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=B}_$AI(e,t=this,o,i){let a=this.strings,s=!1;if(a===void 0)e=Ke(this,e,t,0),s=!_t(e)||e!==this._$AH&&e!==Oe,s&&(this._$AH=e);else{let c=e,l,u;for(e=a[0],l=0;l<a.length-1;l++)u=Ke(this,c[o+l],t,l),u===Oe&&(u=this._$AH[l]),s||=!_t(u)||u!==this._$AH[l],u===B?e=B:e!==B&&(e+=(u??"")+a[l+1]),this._$AH[l]=u}s&&!i&&this.O(e)}O(e){e===B?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},gr=class extends Ve{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===B?void 0:e}},yr=class extends Ve{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==B)}},br=class extends Ve{constructor(e,t,o,i,a){super(e,t,o,i,a),this.type=5}_$AI(e,t=this){if((e=Ke(this,e,t,0)??B)===Oe)return;let o=this._$AH,i=e===B&&o!==B||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==B&&(o===B||i);i&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},vr=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){Ke(this,e)}},wc={j:mo,P:pe,A:go,C:1,M:_i,L:mr,R:Ai,V:Ke,D:ot,I:Ve,H:yr,N:br,U:gr,B:vr},Ec=ho.litHtmlPolyfillSupport;Ec?.(Tt,ot),(ho.litHtmlVersions??=[]).push("3.1.0");var yo=(r,e,t)=>{let o=t?.renderBefore??e,i=o._$litPart$;if(i===void 0){let a=t?.renderBefore??null;o._$litPart$=i=new ot(e.insertBefore(It(),a),a,void 0,t??{})}return i._$AI(r),i};var he=class extends ie{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=yo(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Oe}};he._$litElement$=!0,he.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:he});var Cc=globalThis.litElementPolyfillSupport;Cc?.({LitElement:he});var Ac={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var mu=!1;var xo={};U(xo,{customElement:()=>Rc,eventOptions:()=>Ic,property:()=>T,query:()=>_c,queryAll:()=>Pc,queryAssignedElements:()=>Lc,queryAssignedNodes:()=>Uc,queryAsync:()=>kc,standardProperty:()=>Ti,state:()=>vo});var Rc=r=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(r,e)}):customElements.define(r,e)};var Nc={attribute:!0,type:String,converter:vt,reflect:!1,hasChanged:rr},Ti=(r=Nc,e,t)=>{let{kind:o,metadata:i}=t,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),a.set(t.name,r),o==="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(o==="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: "+o)};function T(r){return(e,t)=>typeof t=="object"?Ti(r,e,t):((o,i,a)=>{let s=i.hasOwnProperty(a);return i.constructor.createProperty(a,s?{...o,wrapped:!0}:o),s?Object.getOwnPropertyDescriptor(i,a):void 0})(r,e,t)}function vo(r){return T({...r,state:!0,attribute:!1})}function Ic(r){return(e,t)=>{let o=typeof e=="function"?e:e[t];Object.assign(o,r)}}var te=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t);function _c(r,e){return(t,o,i)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(e){let{get:s,set:c}=typeof o=="object"?t:i??(()=>{let l=Symbol();return{get(){return this[l]},set(u){this[l]=u}}})();return te(t,o,{get(){let l=s.call(this);return l===void 0&&(l=a(this),(l!==null||this.hasUpdated)&&c.call(this,l)),l}})}return te(t,o,{get(){return a(this)}})}}var Tc;function Pc(r){return(e,t)=>te(e,t,{get(){return(this.renderRoot??(Tc??=document.createDocumentFragment())).querySelectorAll(r)}})}function kc(r){return(e,t)=>te(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function Lc(r){return(e,t)=>{let{slot:o,selector:i}=r??{},a="slot"+(o?`[name=${o}]`:":not([name])");return te(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 Uc(r){return(e,t)=>{let{slot:o}=r??{},i="slot"+(o?`[name=${o}]`:":not([name])");return te(e,t,{get(){return this.renderRoot?.querySelector(i)?.assignedNodes(r)??[]}})}}var So={};U(So,{repeat:()=>Fc});var we={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ee=r=>(...e)=>({_$litDirective$:r,values:e}),ae=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var{D:Mc}=mi;var Pi=()=>document.createComment(""),it=(r,e,t)=>{let o=r._$AA.parentNode,i=e===void 0?r._$AB:e._$AA;if(t===void 0){let a=o.insertBefore(Pi(),i),s=o.insertBefore(Pi(),i);t=new Mc(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 u=l.nextSibling;o.insertBefore(l,i),l=u}}}return t},Ce=(r,e,t=r)=>(r._$AI(e,t),r),Dc={},ki=(r,e=Dc)=>r._$AH=e,Li=r=>r._$AH,xr=r=>{r._$AP?.(!1,!0);let e=r._$AA,t=r._$AB.nextSibling;for(;e!==t;){let o=e.nextSibling;e.remove(),e=o}};var Ui=(r,e,t)=>{let o=new Map;for(let i=e;i<=t;i++)o.set(r[i],i);return o},Fc=Ee(class extends ae{constructor(r){if(super(r),r.type!==we.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,e,t){let o;t===void 0?t=e:e!==void 0&&(o=e);let i=[],a=[],s=0;for(let c of r)i[s]=o?o(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,o]){let i=Li(r),{values:a,keys:s}=this.ht(e,t,o);if(!Array.isArray(i))return this.dt=s,a;let c=this.dt??=[],l=[],u,p,h=0,g=i.length-1,y=0,b=a.length-1;for(;h<=g&&y<=b;)if(i[h]===null)h++;else if(i[g]===null)g--;else if(c[h]===s[y])l[y]=Ce(i[h],a[y]),h++,y++;else if(c[g]===s[b])l[b]=Ce(i[g],a[b]),g--,b--;else if(c[h]===s[b])l[b]=Ce(i[h],a[b]),it(r,l[b+1],i[h]),h++,b--;else if(c[g]===s[y])l[y]=Ce(i[g],a[y]),it(r,i[h],i[g]),g--,y++;else if(u===void 0&&(u=Ui(s,y,b),p=Ui(c,h,g)),u.has(c[h]))if(u.has(c[g])){let O=p.get(s[y]),C=O!==void 0?i[O]:null;if(C===null){let A=it(r,i[h]);Ce(A,a[y]),l[y]=A}else l[y]=Ce(C,a[y]),it(r,i[h],C),i[O]=null;y++}else xr(i[g]),g--;else xr(i[h]),h++;for(;y<=b;){let O=it(r,l[b+1]);Ce(O,a[y]),l[y++]=O}for(;h<=g;){let O=i[h++];O!==null&&xr(O)}return this.dt=s,ki(r,l),q}});var Oo={};U(Oo,{classMap:()=>$c});var $c=Ee(class extends ae{constructor(r){if(super(r),r.type!==we.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(o=>o!=="")));for(let o in e)e[o]&&!this.st?.has(o)&&this.it.add(o);return this.render(e)}let t=r.element.classList;for(let o of this.it)o in e||(t.remove(o),this.it.delete(o));for(let o in e){let i=!!e[o];i===this.it.has(o)||this.st?.has(o)||(i?(t.add(o),this.it.add(o)):(t.remove(o),this.it.delete(o)))}return q}});var wo={};U(wo,{styleMap:()=>Wc});var Mi="important",Bc=" !"+Mi,Wc=Ee(class extends ae{constructor(r){if(super(r),r.type!==we.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 o=r[t];return o==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}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 o of this.ut)e[o]==null&&(this.ut.delete(o),o.includes("-")?t.removeProperty(o):t[o]=null);for(let o in e){let i=e[o];if(i!=null){this.ut.add(o);let a=typeof i=="string"&&i.endsWith(Bc);o.includes("-")||a?t.setProperty(o,a?i.slice(0,-11):i,a?Mi:""):t[o]=i}}return q}});var Eo={};U(Eo,{UnsafeHTMLDirective:()=>at,unsafeHTML:()=>Hc});var at=class extends ae{constructor(e){if(super(e),this.et=$,e.type!==we.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===$||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:[]}}};at.directiveName="unsafeHTML",at.resultType=1;var Hc=Ee(at);var Ro={};U(Ro,{CacheRegistry:()=>se});var Ao={};U(Ao,{CancelablePromise:()=>st,CanceledPromiseError:()=>Ge,cancelable:()=>Co});var Ge=class extends Error{constructor(e,t,o){super(e),this.canceledPromiseResult=t,this.canceledPromiseError=o}},st=class extends Promise{constructor(e){super((t,o)=>e(i=>{this.isCanceled?o(new Ge("Promise has been canceled",i)):t(i)},i=>{this.isCanceled?o(new Ge("Promise has been canceled",void 0,i)):o(i)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Co=r=>new st((e,t)=>r.then(e).catch(t));var se=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 st&&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,o){if(this.content[e]===void 0){if(t=t??this.loaders[e],t==null)throw new Error("Unknown cache key "+e);let i=Co(t());return this.content[e]=i,i.then(a=>(this.content[e]=a,o!=null&&(this.clearClearTimeout(e),this.clearTimeouts[e]=window.setTimeout(()=>this.clear(e),o)),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 No={};U(No,{ClusteringHelper:()=>Pt});var Pt=class r{constructor(e,t,o,i){this.allResults=e,this.selectedResult=t,this.clusteringMetadata=o,this.metadataDescriptors=i}static extractResultMetadata(e,t){var o,i;let a=((i=(o=e?.map)!==null&&o!==void 0?o: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(o=>r.flattenMetadata(o)).filter(o=>o!=null);let t=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!t))if(t){let o=[],i=[];return e.hierarchicalValues.forEach(a=>{o.push(a.join(" > ")),a.length>2?i.push(`... > ${a[a.length-1]}`):i.push(a.join(" > "))}),{key:e.key,label:e.label,value:o.join(", "),displayValue:i.join(", ")}}else{let o=e.values.join(", ");return{key:e.key,label:e.label,value:o,displayValue:o}}}computeClustersItemsForMetadata(e,t,o="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(u=>r.extractResultMetadata(u,e)).map(u=>u??{key:e,label:c,value:void 0,displayValue:o}).filter(u=>u.value!=s?.value).filter((u,p,h)=>h.findIndex(g=>g.value===u.value)===p).map(u=>({result:this.findBestResultForMetadataValue(e,u.value),metadata:u})).sort((u,p)=>this.compareMetadata(u.metadata.value,p.metadata.value,e,t))}compareMetadata(e,t,o,i){if(e==null)return-1;if(t==null)return 1;let a=this.getMetadataDescriptor(o),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 o=this.allResults.filter(l=>{var u;return((u=r.extractResultMetadata(l,e))===null||u===void 0?void 0:u.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 o){let u=this.countMatchingMetadata(l,a);if(u>c&&(c=u,s=l,u===a.length))break}return s}countMatchingMetadata(e,t){return r.extractResultMetadata(e).filter(o=>t.some(i=>i.key===o.key&&i.value===o.value)).length}};var Io={};U(Io,{Debouncer:()=>Y});var Y=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,o)=>{this.resolvePromise=t,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,t;let o=[...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 o)try{await s()}catch(c){i(c);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var ko={};U(ko,{customElement:()=>Ut,isNumber:()=>$i,jsonProperty:()=>Ae,optionalNumberProperty:()=>Gc});var Po={};U(Po,{dateReviver:()=>zc,deepEqual:()=>re,delay:()=>Sr,eventPathContainsMatchingElement:()=>Kc,flatDeep:()=>Di,hasChanged:()=>Lt,last:()=>Vc,minmax:()=>To,parseDate:()=>Fi,waitFor:()=>kt,waitUntil:()=>_o});var Sr=r=>new Promise(e=>setTimeout(e,r));async function _o(r,e=10,t=2e4){await kt(async()=>await r()||void 0,e,t)}async function kt(r,e=10,t=2e4){let o=await r(),i,a;for(i=a=performance.now();o==null&&(!t||a-i<t);)await Sr(e),o=await r(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function Di(r,e){return r.flatMap(t=>[t,...Di(e(t),e)])}function zc(...r){return function(e,t){return r.includes(e)?Fi(t):t}}function Fi(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,o,i)=>t+o+":"+i),new Date(r)}function jc(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,o,i;if(Array.isArray(r)){if(t=r.length,t!=e.length)return!1;for(o=t;o--!==0;)if(!re(r[o],e[o]))return!1;return!0}if(r instanceof Map&&e instanceof Map){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[0]))return!1;for(o of r.entries())if(!re(o[1],e.get(o[0])))return!1;return!0}if(r instanceof Set&&e instanceof Set){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[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(o=t;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[o]))return!1;for(o=t;o--!==0;){var a=i[o];if(!re(r[a],e[a]))return!1}return!0}return r!==r&&e!==e}function re(r,e){try{return jc(r,e)}catch{return!1}}function Lt(r,e){return!re(r,e)}function Kc(r,e,t=window.document.body){if(e.length>0){let o=r.composedPath();for(let i of o){if(i===t)return!1;if(i.matches&&e.some(a=>i.matches(a)))return!0}}return!1}function To(r,e,t){return Math.min(Math.max(r,e),t)}function Vc(r){return r[r.length-1]}var Ut=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)};function Ae(r,e){let t=()=>JSON.parse(JSON.stringify(r));return T({type:Object,converter:{fromAttribute:o=>{if(o==null)return t();try{return JSON.parse(o)}catch{return t()}},toAttribute:o=>JSON.stringify(o)},hasChanged:Lt,...e??{}})}function Gc(r){return T({type:Object,converter:{fromAttribute:e=>{if(e!=null)return $i(e)?+e:void 0},toAttribute:e=>e==null?void 0:""+e},...r??{}})}function $i(r){return!isNaN(parseFloat(r))}var Do={};U(Do,{designSystemVariables:()=>Sl});var Mo={};U(Mo,{DesignSystemFamily:()=>Mt,DesignSystemSize:()=>Dt,FtCssVariableFactory:()=>n,badge:()=>el,banner:()=>Qc,breadcrumb:()=>tl,button:()=>Yc,chart:()=>hl,checkbox:()=>gl,chip:()=>Jc,collapsible:()=>fl,comboboxMultiSelect:()=>dl,comboboxSingleSelect:()=>ll,drawer:()=>nl,floatingMenu:()=>cl,foundation:()=>d,link:()=>Xc,modal:()=>ol,notice:()=>ml,notification:()=>vl,pageHeader:()=>rl,popover:()=>ul,radio:()=>bl,resolveFamilyClass:()=>Lo,resolveSizeClass:()=>Uo,semantic:()=>f,setVariable:()=>Or,switch_:()=>pl,tabs:()=>il,textArea:()=>sl,textInput:()=>al,toggle:()=>yl,tooltip:()=>xl,typographies:()=>Zc,typographyBody1Medium:()=>Ki,typographyBody1Regular:()=>ji,typographyBody1Semibold:()=>Vi,typographyBody2Medium:()=>Zi,typographyBody2MediumUnderline:()=>qi,typographyBody2Regular:()=>Gi,typographyBody2Semibold:()=>Yi,typographyCaption1Bold:()=>ia,typographyCaption1Medium:()=>oa,typographyCaption1Semibold:()=>na,typographyCaption2Bold:()=>ca,typographyCaption2Medium:()=>aa,typographyCaption2Semibold:()=>sa,typographyCaption3Bold:()=>ua,typographyCaption3Medium:()=>la,typographyCaption3Semibold:()=>da,typographyDisplay:()=>Bi,typographyLabel1Bold:()=>Qi,typographyLabel1Medium:()=>Ji,typographyLabel1Semibold:()=>Xi,typographyLabel2Bold:()=>ra,typographyLabel2Medium:()=>ea,typographyLabel2Semibold:()=>ta,typographyTitle1:()=>Wi,typographyTitle2:()=>Hi,typographyTitle3:()=>zi,typographyVariants:()=>qc});var me=r=>typeof r=="string"?Ct(r):r,n=class{static create(e,t,o,i){let a=c=>me(c??i),s=H`var(${me(e)}, ${a(i)})`;return s.name=e,s.description=t,s.category=o,s.defaultValue=i,s.defaultCssValue=a,s.get=c=>H`var(${me(e)}, ${a(c)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(e,t,o,i){let a=c=>o.get(c??i),s=H`var(${me(e)}, ${a(i)})`;return s.name=e,s.description=t,s.category=o.category,s.fallbackVariable=o,s.defaultValue=i,s.defaultCssValue=a,s.get=c=>H`var(${me(e)}, ${a(c)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>i??o.lastResortDefaultValue(),s}static external(e,t){let o=a=>e.fallbackVariable?e.fallbackVariable.get(a??e.defaultValue):me(a??e.lastResortDefaultValue()),i=H`var(${me(e.name)}, ${o(e.defaultValue)})`;return i.name=e.name,i.category=e.category,i.fallbackVariable=e.fallbackVariable,i.defaultValue=e.defaultValue,i.context=t,i.defaultCssValue=o,i.get=a=>H`var(${me(e.name)}, ${o(a)})`,i.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>e.lastResortDefaultValue(),i}};function Or(r,e){return me(`${r.name}: ${e}`)}var d={colorWhite:n.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:n.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:n.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:n.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:n.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:n.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:n.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:n.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:n.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:n.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:n.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:n.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:n.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:n.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:n.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:n.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:n.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:n.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:n.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:n.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:n.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:n.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:n.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:n.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:n.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:n.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:n.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:n.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:n.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:n.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:n.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:n.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:n.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:n.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:n.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:n.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:n.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:n.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:n.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:n.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:n.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:n.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:n.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:n.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:n.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:n.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:n.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:n.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:n.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:n.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:n.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:n.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:n.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:n.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:n.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:n.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:n.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:n.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:n.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:n.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:n.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:n.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:n.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:n.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:n.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:n.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:n.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:n.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:n.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:n.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:n.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:n.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:n.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:n.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:n.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:n.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:n.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:n.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:n.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:n.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:n.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:n.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:n.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:n.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:n.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:n.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:n.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:n.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:n.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:n.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:n.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:n.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:n.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:n.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:n.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:n.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:n.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:n.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:n.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:n.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:n.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:n.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:n.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:n.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:n.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:n.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:n.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:n.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:n.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:n.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:n.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:n.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:n.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:n.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:n.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:n.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:n.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:n.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:n.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:n.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:n.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:n.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:n.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:n.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:n.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:n.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:n.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:n.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:n.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:n.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:n.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:n.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:n.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:n.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:n.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:n.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:n.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:n.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:n.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:n.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:n.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:n.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:n.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:n.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:n.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:n.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:n.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:n.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:n.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:n.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:n.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:n.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:n.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:n.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:n.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:n.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:n.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:n.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:n.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:n.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:n.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:n.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:n.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:n.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:n.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:n.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:n.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:n.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:n.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:n.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:n.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:n.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:n.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:n.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:n.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:n.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:n.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:n.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:n.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:n.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:n.create("--ft-opacity-0","","NUMBER","0"),opacity8:n.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:n.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:n.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:n.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:n.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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)")},Bi={fontFamily:n.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:n.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:n.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:n.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-display-textCase","","UNKNOWN","none")},Wi={fontFamily:n.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:n.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:n.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:n.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},Hi={fontFamily:n.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:n.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:n.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:n.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},zi={fontFamily:n.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:n.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:n.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:n.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},ji={fontFamily:n.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:n.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:n.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:n.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:n.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},Ki={fontFamily:n.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:n.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:n.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:n.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},Vi={fontFamily:n.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:n.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:n.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:n.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},Gi={fontFamily:n.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:n.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:n.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:n.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:n.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},Zi={fontFamily:n.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:n.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:n.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:n.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},qi={fontFamily:n.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:n.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:n.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:n.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:n.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:n.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},Yi={fontFamily:n.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:n.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:n.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:n.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},Ji={fontFamily:n.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:n.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:n.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:n.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:n.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},Xi={fontFamily:n.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:n.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:n.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:n.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:n.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},Qi={fontFamily:n.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:n.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:n.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:n.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:n.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:n.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},ea={fontFamily:n.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:n.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:n.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:n.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:n.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},ta={fontFamily:n.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:n.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:n.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:n.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:n.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},ra={fontFamily:n.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:n.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:n.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:n.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:n.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:n.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},oa={fontFamily:n.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:n.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},na={fontFamily:n.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:n.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},ia={fontFamily:n.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:n.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:n.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},aa={fontFamily:n.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:n.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},sa={fontFamily:n.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:n.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},ca={fontFamily:n.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:n.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:n.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},la={fontFamily:n.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:n.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},da={fontFamily:n.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:n.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},ua={fontFamily:n.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:n.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:n.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},Zc={display:Bi,"title-1":Wi,"title-2":Hi,"title-3":zi,"body-1-regular":ji,"body-1-medium":Ki,"body-1-semibold":Vi,"body-2-regular":Gi,"body-2-medium":Zi,"body-2-medium-underline":qi,"body-2-semibold":Yi,"label-1-medium":Ji,"label-1-semibold":Xi,"label-1-bold":Qi,"label-2-medium":ea,"label-2-semibold":ta,"label-2-bold":ra,"caption-1-medium":oa,"caption-1-semibold":na,"caption-1-bold":ia,"caption-2-medium":aa,"caption-2-semibold":sa,"caption-2-bold":ca,"caption-3-medium":la,"caption-3-semibold":da,"caption-3-bold":ua},qc=["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:n.extend("--ft-background-action-primary","Used as backgorund of primary action components.",d.colorBrand0),backgroundErrorSubtle:n.extend("--ft-background-error-subtle","Used as background of subtle error components.",d.colorRed10),backgroundInfoSubtle:n.extend("--ft-background-info-subtle","Used as background of subtle information components.",d.colorCyan10),backgroundWarningSubtle:n.extend("--ft-background-warning-subtle","Used as background of subtle information components.",d.colorOrange10),backgroundSuccessSubtle:n.extend("--ft-background-success-subtle","Used as background of subtle success components.",d.colorGreen10),backgroundGlobalSurface:n.extend("--ft-background-global-surface","Used as app background.",d.colorWhite),backgroundGlobalOnSurface:n.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",d.colorGray10),backgroundGlobalOnSurfaceDark:n.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",d.colorGray30),contentActionPrimary:n.extend("--ft-content-action-primary","Used on label of primary action on light surface.",d.colorBrand0),contentWarningPrimary:n.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",d.colorOrange200),contentWarningIconOnly:n.extend("--ft-content-warning-icon-only","Used on warning status icons alone",d.colorOrange0),contentErrorPrimary:n.extend("--ft-content-error-primary","Used on label of error messages on light surface.",d.colorRed0),contentErrorIconOnly:n.extend("--ft-content-error-icon-only","Used on error status icons alone",d.colorRed70),contentInfoPrimary:n.extend("--ft-content-info-primary","Used on label of information messages on light surface.",d.colorCyan200),contentInfoIconOnly:n.extend("--ft-content-info-icon-only","Used on info status icons alone",d.colorCyan0),contentSuccessPrimary:n.extend("--ft-content-success-primary","Used on label of success messages on light surface.",d.colorGreen200),contentSuccessIconOnly:n.extend("--ft-content-success-icon-only","Used on success status icons alone",d.colorGreen0),contentGlobalPrimary:n.extend("--ft-content-global-primary","Used for main content on the page.",d.colorGray500),contentGlobalSecondary:n.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
6
- Also for action icons.`,d.colorGray200),contentGlobalSubtle:n.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",d.colorGray0),contentGlobalOnColor:n.extend("--ft-content-global-on-color","Used for content on a dominant color.",d.colorWhite),borderActionPrimary:n.extend("--ft-border-action-primary","Used as border for primary action components.",d.colorBrand0),borderActionFocusRing:n.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",d.colorCyan0),borderWarningPrimary:n.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",d.colorOrange200),borderWarningSubtle:n.extend("--ft-border-warning-subtle","Used as border for warning components.",d.colorOrange30),borderSuccessPrimary:n.extend("--ft-border-success-primary","Used as border for success buttons.",d.colorGreen200),borderSuccessSubtle:n.extend("--ft-border-success-subtle","Used as border for success components.",d.colorGreen30),borderErrorPrimary:n.extend("--ft-border-error-primary","Used as border for text fields in error states.",d.colorRed0),borderErrorSubtle:n.extend("--ft-border-error-subtle","Used as border for error components.",d.colorRed30),borderInfoPrimary:n.extend("--ft-border-info-primary","Used as border for buttons in info color.",d.colorCyan200),borderInfoSubtle:n.extend("--ft-border-info-subtle","Used as border for information components.",d.colorCyan30),borderGlobalPrimary:n.extend("--ft-border-global-primary","Used as border for element like input.",d.colorGray50),borderGlobalSubtle:n.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",d.colorGray30),borderInputPrimary:n.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",d.colorGray80)};var Yc={largeHeight:n.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:n.extend("--ft-button-large-horizontal-padding","",d.spacing4),largeGap:n.extend("--ft-button-large-gap","",d.spacing2),largeBorderRadius:n.extend("--ft-button-large-border-radius","",d.borderRadiusS),largeIconSize:n.extend("--ft-button-large-icon-size","",d.iconSize3),largeBorderWidth:n.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:n.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:n.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:n.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:n.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:n.extend("--ft-button-medium-horizontal-padding","",d.spacing3),mediumGap:n.extend("--ft-button-medium-gap","",d.spacing2),mediumBorderRadius:n.extend("--ft-button-medium-border-radius","",d.borderRadiusS),mediumIconSize:n.extend("--ft-button-medium-icon-size","",d.iconSize2),mediumBorderWidth:n.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:n.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:n.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:n.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:n.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:n.extend("--ft-button-small-horizontal-padding","",d.spacing2),smallGap:n.extend("--ft-button-small-gap","",d.spacing1),smallBorderRadius:n.extend("--ft-button-small-border-radius","",d.borderRadiusS),smallIconSize:n.extend("--ft-button-small-icon-size","",d.iconSize1),smallBorderWidth:n.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:n.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:n.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:n.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:n.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:n.extend("--ft-button-x-small-icon-size","",d.iconSize1),xSmallFocusOutlineOffset:n.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:n.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:n.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:n.extend("--ft-button-round-border-radius","",d.borderRadiusPill),primaryBackgroundColor:n.extend("--ft-button-primary-background-color","",f.backgroundActionPrimary),primaryColor:n.extend("--ft-button-primary-color","",f.contentGlobalOnColor),primaryIconColor:n.extend("--ft-button-primary-icon-color","",f.contentGlobalOnColor),primaryStateLayerColor:n.extend("--ft-button-primary-state-layer-color","",f.contentGlobalOnColor),primaryHoverStateLayerOpacity:n.extend("--ft-button-primary-hover-state-layer-opacity","",d.opacity16),primaryFocusStateLayerOpacity:n.extend("--ft-button-primary-focus-state-layer-opacity","",d.opacity16),primaryActiveStateLayerOpacity:n.extend("--ft-button-primary-active-state-layer-opacity","",d.opacity24),primaryDisabledComponentOpacity:n.extend("--ft-button-primary-disabled-component-opacity","",d.opacity40),focusFocusRingColor:n.extend("--ft-button-focus-focus-ring-color","",f.borderActionFocusRing),tertiaryBackgroundColor:n.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:n.extend("--ft-button-tertiary-color","",f.contentActionPrimary),tertiaryIconColor:n.extend("--ft-button-tertiary-icon-color","",f.contentActionPrimary),tertiaryStateLayerColor:n.extend("--ft-button-tertiary-state-layer-color","",f.contentActionPrimary),tertiaryHoverStateLayerOpacity:n.extend("--ft-button-tertiary-hover-state-layer-opacity","",d.opacity8),tertiaryFocusStateLayerOpacity:n.extend("--ft-button-tertiary-focus-state-layer-opacity","",d.opacity8),tertiaryActiveStateLayerOpacity:n.extend("--ft-button-tertiary-active-state-layer-opacity","",d.opacity16),tertiaryDisabledComponentOpacity:n.extend("--ft-button-tertiary-disabled-component-opacity","",d.opacity40),secondaryBackgroundColor:n.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:n.extend("--ft-button-secondary-color","",f.contentActionPrimary),secondaryIconColor:n.extend("--ft-button-secondary-icon-color","",f.contentActionPrimary),secondaryStateLayerColor:n.extend("--ft-button-secondary-state-layer-color","",f.contentActionPrimary),secondaryHoverStateLayerOpacity:n.extend("--ft-button-secondary-hover-state-layer-opacity","",d.opacity8),secondaryFocusStateLayerOpacity:n.extend("--ft-button-secondary-focus-state-layer-opacity","",d.opacity8),secondaryActiveStateLayerOpacity:n.extend("--ft-button-secondary-active-state-layer-opacity","",d.opacity16),secondaryDisabledComponentOpacity:n.extend("--ft-button-secondary-disabled-component-opacity","",d.opacity40),secondaryBorderColor:n.extend("--ft-button-secondary-border-color","",f.borderActionPrimary),neutralBackgroundColor:n.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:n.extend("--ft-button-neutral-icon-color","",f.contentGlobalSecondary),neutralColor:n.extend("--ft-button-neutral-color","",f.contentGlobalSecondary),neutralStateLayerColor:n.extend("--ft-button-neutral-state-layer-color","",f.contentGlobalSecondary),neutralHoverStateLayerOpacity:n.extend("--ft-button-neutral-hover-state-layer-opacity","",d.opacity8),neutralFocusStateLayerOpacity:n.extend("--ft-button-neutral-focus-state-layer-opacity","",d.opacity8),neutralActiveStateLayerOpacity:n.extend("--ft-button-neutral-active-state-layer-opacity","",d.opacity16),neutralDisabledComponentOpacity:n.extend("--ft-button-neutral-disabled-component-opacity","",d.opacity40)};var Jc={largeMinHeight:n.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:n.extend("--ft-chip-large-horizontal-padding","",d.spacing3),largeButtonRightPadding:n.extend("--ft-chip-large-button-right-padding","",d.spacing1),largeGap:n.extend("--ft-chip-large-gap","",d.spacing1),largeFocusOutlineOffset:n.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:n.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:n.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:n.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:n.extend("--ft-chip-large-icon-size","",d.iconSize3),mediumMinHeight:n.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:n.extend("--ft-chip-medium-horizontal-padding","",d.spacing2),mediumButtonRightPadding:n.extend("--ft-chip-medium-button-right-padding","",d.spacing05),mediumGap:n.extend("--ft-chip-medium-gap","",d.spacing1),mediumFocusOutlineOffset:n.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:n.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:n.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:n.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:n.extend("--ft-chip-medium-icon-size","",d.iconSize2),smallMinHeight:n.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:n.extend("--ft-chip-small-horizontal-padding","",d.spacing1),smallButtonRightPadding:n.extend("--ft-chip-small-button-right-padding","",d.spacing05),smallGap:n.extend("--ft-chip-small-gap","",d.spacing1),smallFocusOutlineOffset:n.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:n.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:n.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:n.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:n.extend("--ft-chip-small-icon-size","",d.iconSize1),neutralBackgroundColor:n.extend("--ft-chip-neutral-background-color","",f.backgroundGlobalOnSurface),neutralColor:n.extend("--ft-chip-neutral-color","",f.contentGlobalSecondary),neutralIconColor:n.extend("--ft-chip-neutral-icon-color","",f.contentGlobalSecondary),neutralBorderColor:n.extend("--ft-chip-neutral-border-color","",f.borderGlobalSubtle),infoBackgroundColor:n.extend("--ft-chip-info-background-color","",f.backgroundInfoSubtle),infoColor:n.extend("--ft-chip-info-color","",f.contentInfoPrimary),infoIconColor:n.extend("--ft-chip-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:n.extend("--ft-chip-info-border-color","",f.borderInfoSubtle),successBackgroundColor:n.extend("--ft-chip-success-background-color","",f.backgroundSuccessSubtle),successColor:n.extend("--ft-chip-success-color","",f.contentSuccessPrimary),successIconColor:n.extend("--ft-chip-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:n.extend("--ft-chip-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:n.extend("--ft-chip-warning-background-color","",f.backgroundWarningSubtle),warningColor:n.extend("--ft-chip-warning-color","",f.contentWarningPrimary),warningIconColor:n.extend("--ft-chip-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:n.extend("--ft-chip-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:n.extend("--ft-chip-error-background-color","",f.backgroundErrorSubtle),errorColor:n.extend("--ft-chip-error-color","",f.contentErrorPrimary),errorIconColor:n.extend("--ft-chip-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:n.extend("--ft-chip-error-border-color","",f.borderErrorSubtle)};var Xc={focusOpacity:n.extend("--ft-link-focus-opacity","",d.opacity80),focusFocusRingColor:n.extend("--ft-link-focus-focus-ring-color","",f.borderActionFocusRing),brandColor:n.extend("--ft-link-brand-color","",f.contentActionPrimary),infoColor:n.extend("--ft-link-info-color","",f.contentInfoPrimary)};var Qc={iconSize:n.extend("--ft-banner-icon-size","",d.iconSize5),borderWidth:n.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:n.extend("--ft-banner-left-padding","",d.spacing6),rightPadding:n.extend("--ft-banner-right-padding","",d.spacing6),verticalPadding:n.extend("--ft-banner-vertical-padding","",d.spacing6),horizontalSideGap:n.extend("--ft-banner-horizontal-side-gap","",d.spacing6),horizontalMobileGap:n.extend("--ft-banner-horizontal-mobile-gap","",d.spacing4),verticalMobileGap:n.extend("--ft-banner-vertical-mobile-gap","",d.spacing6),horizontalMiddleGap:n.extend("--ft-banner-horizontal-middle-gap","",d.spacing20),infoBackgroundColor:n.extend("--ft-banner-info-background-color","",f.backgroundInfoSubtle),infoColor:n.extend("--ft-banner-info-color","",f.contentInfoPrimary),infoIconColor:n.extend("--ft-banner-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:n.extend("--ft-banner-info-border-color","",f.borderInfoSubtle)};var el={horizontalPadding:n.extend("--ft-badge-horizontal-padding","",d.spacing1),verticalPadding:n.extend("--ft-badge-vertical-padding","",d.spacing1),borderRadius:n.extend("--ft-badge-border-radius","",d.borderRadiusPill),color:n.extend("--ft-badge-color","",f.contentGlobalOnColor),backgroundColor:n.extend("--ft-badge-background-color","",f.contentActionPrimary)};var tl={horizontalGap:n.extend("--ft-breadcrumb-horizontal-gap","",d.spacing1),verticalGap:n.extend("--ft-breadcrumb-vertical-gap","",d.spacing2),currentColor:n.extend("--ft-breadcrumb-current-color","",f.contentGlobalPrimary),previousNonClickableColor:n.extend("--ft-breadcrumb-previous-non-clickable-color","",f.contentGlobalSecondary),iconColor:n.extend("--ft-breadcrumb-icon-color","",f.contentGlobalSubtle)};var rl={horizontalPadding:n.extend("--ft-page-header-horizontal-padding","",d.spacing6),horizontalGap:n.extend("--ft-page-header-horizontal-gap","",d.spacing4),verticalGap:n.extend("--ft-page-header-vertical-gap","",d.spacing2),classicVerticalPadding:n.extend("--ft-page-header-classic-vertical-padding","",d.spacing6),multilineVerticalPadding:n.extend("--ft-page-header-multiline-vertical-padding","",d.spacing4),inlineVerticalPadding:n.extend("--ft-page-header-inline-vertical-padding","",d.spacing2),backgroundColor:n.extend("--ft-page-header-background-color","",d.colorWhite),bottomBorderColor:n.extend("--ft-page-header-bottom-border-color","",f.borderGlobalSubtle),titleColor:n.extend("--ft-page-header-title-color","",f.contentGlobalPrimary),subtitleColor:n.extend("--ft-page-header-subtitle-color","",f.contentGlobalSecondary)};var ol={smallContainerWidth:n.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:n.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:n.extend("--ft-modal-overlay-background-color","",d.colorGray700),overlayOpacity:n.extend("--ft-modal-overlay-opacity","",d.opacity40),shadow:n.extend("--ft-modal-shadow","",d.shadowElevation03),bodyBackgroundColor:n.extend("--ft-modal-body-background-color","",d.colorWhite),bodyColor:n.extend("--ft-modal-body-color","",f.contentGlobalPrimary),bodyHorizontalPadding:n.extend("--ft-modal-body-horizontal-padding","",d.spacing6),bodyVerticalPadding:n.extend("--ft-modal-body-vertical-padding","",d.spacing6),bodyVerticalGap:n.extend("--ft-modal-body-vertical-gap","",d.spacing6),containerMargin:n.extend("--ft-modal-container-margin","",d.spacing3),headerBackgroundColor:n.extend("--ft-modal-header-background-color","",f.backgroundGlobalOnSurface),headerBorderColor:n.extend("--ft-modal-header-border-color","",f.borderGlobalSubtle),headerColor:n.extend("--ft-modal-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:n.extend("--ft-modal-header-trailing-icon-color","",f.contentGlobalSecondary),headerVerticalPadding:n.extend("--ft-modal-header-vertical-padding","",d.spacing1),headerRightPadding:n.extend("--ft-modal-header-right-padding","",d.spacing1),headerLeftPadding:n.extend("--ft-modal-header-left-padding","",d.spacing6),headerGap:n.extend("--ft-modal-header-gap","",d.spacing2),headerBorderBottom:n.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:n.extend("--ft-modal-border-radius","",d.borderRadiusM)};var nl={overlayOpacity:n.extend("--ft-drawer-overlay-opacity","",d.opacity40),shadow:n.extend("--ft-drawer-shadow","",d.shadowElevation03),bodyColor:n.extend("--ft-drawer-body-color","",f.contentGlobalPrimary),bodyHorizontalPadding:n.extend("--ft-drawer-body-horizontal-padding","",d.spacing6),bodyVerticalPadding:n.extend("--ft-drawer-body-vertical-padding","",d.spacing6),bodyGap:n.extend("--ft-drawer-body-gap","",d.spacing6),bodyBackgroundColor:n.extend("--ft-drawer-body-background-color","",d.colorWhite),headerBackgroundColor:n.extend("--ft-drawer-header-background-color","",f.backgroundGlobalOnSurface),headerBorderColor:n.extend("--ft-drawer-header-border-color","",f.borderGlobalSubtle),headerColor:n.extend("--ft-drawer-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:n.extend("--ft-drawer-header-trailing-icon-color","",f.contentGlobalSecondary),headerHeight:n.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:n.extend("--ft-drawer-header-horizontal-padding","",d.spacing2),headerBorderWidth:n.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:n.extend("--ft-drawer-header-gap","",d.spacing3),buttonsBarBackgroundColor:n.extend("--ft-drawer-buttons-bar-background-color","",f.backgroundGlobalOnSurface),buttonsBarBorderColor:n.extend("--ft-drawer-buttons-bar-border-color","",f.borderGlobalSubtle),buttonsBarColor:n.extend("--ft-drawer-buttons-bar-color","",f.contentGlobalPrimary),buttonsBarHorizontalPadding:n.extend("--ft-drawer-buttons-bar-horizontal-padding","",d.spacing4),buttonsBarVerticalPadding:n.extend("--ft-drawer-buttons-bar-vertical-padding","",d.spacing4),buttonsBarGap:n.extend("--ft-drawer-buttons-bar-gap","",d.spacing3),buttonsBarBorderWidth:n.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:n.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:n.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:n.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:n.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:n.extend("--ft-drawer-overlay-background-color","",d.colorGray700)};var il={offBorderBottomWidth:n.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:n.extend("--ft-tabs-off-hover-state-layer-opacity","",d.opacity8),offDefaultStateLayerOpacity:n.extend("--ft-tabs-off-default-state-layer-opacity","",d.opacity0),offFocusStateLayerOpacity:n.extend("--ft-tabs-off-focus-state-layer-opacity","",d.opacity8),offDisabledComponentOpacity:n.extend("--ft-tabs-off-disabled-component-opacity","",d.opacity40),offColor:n.extend("--ft-tabs-off-color","",f.contentGlobalSubtle),offStateLayerColor:n.extend("--ft-tabs-off-state-layer-color","",f.contentGlobalSubtle),offBorderBottomColor:n.extend("--ft-tabs-off-border-bottom-color","",f.borderGlobalSubtle),activeTabIndicatorHeight:n.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:n.extend("--ft-tabs-top-left-border-radius","",d.borderRadiusS),topRightBorderRadius:n.extend("--ft-tabs-top-right-border-radius","",d.borderRadiusS),withLabelHorizontalPadding:n.extend("--ft-tabs-with-label-horizontal-padding","",d.spacing4),withLabelVerticalPadding:n.extend("--ft-tabs-with-label-vertical-padding","",d.spacing3),horizontalGap:n.extend("--ft-tabs-horizontal-gap","",d.spacing1),verticalGap:n.extend("--ft-tabs-vertical-gap","",d.spacing1),onHoverStateLayerOpacity:n.extend("--ft-tabs-on-hover-state-layer-opacity","",d.opacity16),onDefaultStateLayerOpacity:n.extend("--ft-tabs-on-default-state-layer-opacity","",d.opacity8),onFocusStateLayerOpacity:n.extend("--ft-tabs-on-focus-state-layer-opacity","",d.opacity16),onActiveStateLayerOpacity:n.extend("--ft-tabs-on-active-state-layer-opacity","",d.opacity24),onColor:n.extend("--ft-tabs-on-color","",f.contentActionPrimary),onStateLayerColor:n.extend("--ft-tabs-on-state-layer-color","",f.contentActionPrimary),onActiveTabIndicatorColor:n.extend("--ft-tabs-on-active-tab-indicator-color","",f.contentActionPrimary),iconOnlyHorizontalPadding:n.extend("--ft-tabs-icon-only-horizontal-padding","",d.spacing4),iconOnlyVerticalPadding:n.extend("--ft-tabs-icon-only-vertical-padding","",d.spacing4),alertTopPadding:n.extend("--ft-tabs-alert-top-padding","",d.spacing1),alertRightPadding:n.extend("--ft-tabs-alert-right-padding","",d.spacing05),focusOutlineWidth:n.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ft-tabs-focus-focus-ring-color","",f.borderActionFocusRing)};var al={fieldHorizontalPadding:n.extend("--ft-text-input-field-horizontal-padding","",d.spacing4),fieldHorizontalGap:n.extend("--ft-text-input-field-horizontal-gap","",d.spacing3),fieldVerticalGap:n.extend("--ft-text-input-field-vertical-gap","",d.spacing05),fieldIconSize:n.extend("--ft-text-input-field-icon-size","",d.iconSize3),fieldHeight:n.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:n.extend("--ft-text-input-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:n.extend("--ft-text-input-helper-horizontal-gap","",d.spacing1),helperIconSize:n.extend("--ft-text-input-helper-icon-size","",d.iconSize2),borderRadius:n.extend("--ft-text-input-border-radius","",d.borderRadiusM),backgroundColor:n.extend("--ft-text-input-background-color","",d.colorWhite),contentValueColor:n.extend("--ft-text-input-content-value-color","",f.contentGlobalPrimary),trailingIconColor:n.extend("--ft-text-input-trailing-icon-color","",f.contentGlobalSubtle),labelColor:n.extend("--ft-text-input-label-color","",f.contentGlobalSubtle),defaultBorderColor:n.extend("--ft-text-input-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:n.extend("--ft-text-input-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:n.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:n.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:n.extend("--ft-text-input-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:n.extend("--ft-text-input-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:n.extend("--ft-text-input-error-helper-icon-color","",f.contentErrorIconOnly),warningBorderWidth:n.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:n.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ft-text-input-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:n.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:n.extend("--ft-text-input-disabled-component-opacity","",d.opacity40)};var sl={backgroundColor:n.extend("--ft-text-area-background-color","",d.colorWhite),contentValueColor:n.extend("--ft-text-area-content-value-color","",f.contentGlobalPrimary),labelColor:n.extend("--ft-text-area-label-color","",f.contentGlobalSubtle),defaultBorderColor:n.extend("--ft-text-area-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:n.extend("--ft-text-area-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:n.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:n.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:n.extend("--ft-text-area-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:n.extend("--ft-text-area-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:n.extend("--ft-text-area-error-helper-icon-color","",f.contentErrorIconOnly),focusFocusRingColor:n.extend("--ft-text-area-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:n.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:n.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:n.extend("--ft-text-area-disabled-component-opacity","",d.opacity40),fieldHorizontalLeftPadding:n.extend("--ft-text-area-field-horizontal-left-padding","",d.spacing4),fieldHorizontalGap:n.extend("--ft-text-area-field-horizontal-gap","",d.spacing3),fieldVerticalGap:n.extend("--ft-text-area-field-vertical-gap","",d.spacing05),fieldMinHeight:n.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:n.extend("--ft-text-area-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:n.extend("--ft-text-area-helper-horizontal-gap","",d.spacing1),helperIconSize:n.extend("--ft-text-area-helper-icon-size","",d.iconSize2),borderRadius:n.extend("--ft-text-area-border-radius","",d.borderRadiusM)};var cl={height:n.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:n.extend("--ft-floating-menu-horizontal-padding","",d.spacing4),offIconColor:n.extend("--ft-floating-menu-off-icon-color","",f.contentGlobalPrimary),offColor:n.extend("--ft-floating-menu-off-color","",f.contentGlobalPrimary),onColor:n.extend("--ft-floating-menu-on-color","",f.contentActionPrimary),onStateLayerColor:n.extend("--ft-floating-menu-on-state-layer-color","",f.contentActionPrimary),gap:n.extend("--ft-floating-menu-gap","",d.spacing3),focusFocusRingColor:n.extend("--ft-floating-menu-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:n.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:n.extend("--ft-floating-menu-focus-state-layer-opacity","",d.opacity8),hoverStateLayerOpacity:n.extend("--ft-floating-menu-hover-state-layer-opacity","",d.opacity8),activeStateLayerOpacity:n.extend("--ft-floating-menu-active-state-layer-opacity","",d.opacity16),disabledComponentOpacity:n.extend("--ft-floating-menu-disabled-component-opacity","",d.opacity40),iconSize:n.extend("--ft-floating-menu-icon-size","",d.iconSize3),backgroundColor:n.extend("--ft-floating-menu-background-color","",f.backgroundGlobalOnSurface),shadow:n.extend("--ft-floating-menu-shadow","",d.shadowElevation02)};var ll={fieldHorizontalPadding:n.extend("--ft-combobox-single-select-field-horizontal-padding","",d.spacing4),fieldHorizontalGap:n.extend("--ft-combobox-single-select-field-horizontal-gap","",d.spacing3),fieldVerticalGap:n.extend("--ft-combobox-single-select-field-vertical-gap","",d.spacing05),fieldIconSize:n.extend("--ft-combobox-single-select-field-icon-size","",d.iconSize3),fieldHeight:n.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:n.extend("--ft-combobox-single-select-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:n.extend("--ft-combobox-single-select-helper-horizontal-gap","",d.spacing1),helperVerticalGap:n.extend("--ft-combobox-single-select-helper-vertical-gap","",d.spacing1),helperIconSize:n.extend("--ft-combobox-single-select-helper-icon-size","",d.iconSize2),menuVerticalGap:n.extend("--ft-combobox-single-select-menu-vertical-gap","",d.spacing2),borderRadius:n.extend("--ft-combobox-single-select-border-radius","",d.borderRadiusM),backgroundColor:n.extend("--ft-combobox-single-select-background-color","",d.colorWhite),labelColor:n.extend("--ft-combobox-single-select-label-color","",f.contentGlobalSubtle),contentValueColor:n.extend("--ft-combobox-single-select-content-value-color","",f.contentGlobalPrimary),trailingIconColor:n.extend("--ft-combobox-single-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:n.extend("--ft-combobox-single-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:n.extend("--ft-combobox-single-select-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:n.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:n.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:n.extend("--ft-combobox-single-select-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:n.extend("--ft-combobox-single-select-error-helper-text-color","",f.contentErrorPrimary),warningBorderWidth:n.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:n.extend("--ft-combobox-single-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:n.extend("--ft-combobox-single-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:n.extend("--ft-combobox-single-select-warning-helper-icon-color","",f.contentWarningIconOnly),focusOutlineWidth:n.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ft-combobox-single-select-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:n.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:n.extend("--ft-combobox-single-select-disabled-component-opacity","",d.opacity40)};var dl={backgroundColor:n.extend("--ft-combobox-multi-select-background-color","",d.colorWhite),labelColor:n.extend("--ft-combobox-multi-select-label-color","",f.contentGlobalSubtle),trailingIconColor:n.extend("--ft-combobox-multi-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:n.extend("--ft-combobox-multi-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:n.extend("--ft-combobox-multi-select-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:n.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:n.extend("--ft-combobox-multi-select-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:n.extend("--ft-combobox-multi-select-error-helper-text-color","",f.contentErrorPrimary),errorHelperIcon:n.extend("--ft-combobox-multi-select-error-helper-icon","",f.contentErrorIconOnly),errorBorderWidth:n.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:n.extend("--ft-combobox-multi-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:n.extend("--ft-combobox-multi-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:n.extend("--ft-combobox-multi-select-warning-helper-icon-color","",f.contentWarningIconOnly),warningBorderWidth:n.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ft-combobox-multi-select-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:n.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:n.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:n.extend("--ft-combobox-multi-select-disabled-component-opacity","",d.opacity40),helperHorizontalPadding:n.extend("--ft-combobox-multi-select-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:n.extend("--ft-combobox-multi-select-helper-horizontal-gap","",d.spacing1),helperVerticalGap:n.extend("--ft-combobox-multi-select-helper-vertical-gap","",d.spacing1),helperIconSize:n.extend("--ft-combobox-multi-select-helper-icon-size","",d.iconSize2),fieldHorizontalPadding:n.extend("--ft-combobox-multi-select-field-horizontal-padding","",d.spacing4),fieldHorizontalGap:n.extend("--ft-combobox-multi-select-field-horizontal-gap","",d.spacing3),fieldVerticalGap:n.extend("--ft-combobox-multi-select-field-vertical-gap","",d.spacing05),fieldIconSize:n.extend("--ft-combobox-multi-select-field-icon-size","",d.iconSize3),fieldMaxHeight:n.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:n.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",d.spacing1),contentValuesVerticalGap:n.extend("--ft-combobox-multi-select-content-values-vertical-gap","",d.spacing1),borderRadius:n.extend("--ft-combobox-multi-select-border-radius","",d.borderRadiusM)};var ul={backgroundColor:n.extend("--ft-popover-background-color","",f.backgroundGlobalOnSurface),horizontalPadding:n.extend("--ft-popover-horizontal-padding","",d.spacing6),verticalPadding:n.extend("--ft-popover-vertical-padding","",d.spacing6),titleColor:n.extend("--ft-popover-title-color","",f.contentGlobalPrimary),bodyColor:n.extend("--ft-popover-body-color","",f.contentGlobalSecondary),linkColor:n.extend("--ft-popover-link-color","",f.contentActionPrimary),gap:n.extend("--ft-popover-gap","",d.spacing3),borderRadius:n.extend("--ft-popover-border-radius","",d.borderRadiusM),shadow:n.extend("--ft-popover-shadow","",d.shadowElevation02)};var fl={hoverStateLayerOpacity:n.extend("--ft-collapsible-hover-state-layer-opacity","",d.opacity8),focusStateLayerOpacity:n.extend("--ft-collapsible-focus-state-layer-opacity","",d.opacity8),focusOutlineWidth:n.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:n.extend("--ft-collapsible-focus-focus-ring-color","",f.borderActionFocusRing),activeStateLayerOpacity:n.extend("--ft-collapsible-active-state-layer-opacity","",d.opacity16),disabledComponentOpacity:n.extend("--ft-collapsible-disabled-component-opacity","",d.opacity40),horizontalPadding:n.extend("--ft-collapsible-horizontal-padding","",d.spacing4),verticalPadding:n.extend("--ft-collapsible-vertical-padding","",d.spacing3),color:n.extend("--ft-collapsible-color","",f.contentGlobalPrimary),stateLayerColor:n.extend("--ft-collapsible-state-layer-color","",f.contentGlobalPrimary),backgroundColor:n.extend("--ft-collapsible-background-color","",f.backgroundGlobalOnSurface),borderColor:n.extend("--ft-collapsible-border-color","",f.borderGlobalSubtle),iconSize:n.extend("--ft-collapsible-icon-size","",d.iconSize3)};var pl={groupHorizontalPadding:n.extend("--ft-switch-group-horizontal-padding","",d.spacing1),groupVerticalPadding:n.extend("--ft-switch-group-vertical-padding","",d.spacing1),groupGap:n.extend("--ft-switch-group-gap","",d.spacing1),groupBackgroundColor:n.extend("--ft-switch-group-background-color","",f.backgroundGlobalSurface),groupBorderColor:n.extend("--ft-switch-group-border-color","",f.borderGlobalSubtle),groupBorderRadius:n.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:n.extend("--ft-switch-label-horizontal-padding","",d.spacing2),labelVerticalPadding:n.extend("--ft-switch-label-vertical-padding","",d.spacing1),offHoverStateLayerOpacity:n.extend("--ft-switch-off-hover-state-layer-opacity","",d.opacity8),offFocusStateLayerOpacity:n.extend("--ft-switch-off-focus-state-layer-opacity","",d.opacity8),offActiveStateLayerOpacity:n.extend("--ft-switch-off-active-state-layer-opacity","",d.opacity16),offDisabledComponentOpacity:n.extend("--ft-switch-off-disabled-component-opacity","",d.opacity40),offColor:n.extend("--ft-switch-off-color","",f.contentGlobalSubtle),offStateLayerColor:n.extend("--ft-switch-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:n.extend("--ft-switch-on-hover-state-layer-opacity","",d.opacity8),onFocusStateLayerOpacity:n.extend("--ft-switch-on-focus-state-layer-opacity","",d.opacity8),onActiveStateLayerOpacity:n.extend("--ft-switch-on-active-state-layer-opacity","",d.opacity16),onDisabledComponentOpacity:n.extend("--ft-switch-on-disabled-component-opacity","",d.opacity40),onColor:n.extend("--ft-switch-on-color","",f.contentActionPrimary),onStateLayerColor:n.extend("--ft-switch-on-state-layer-color","",f.contentActionPrimary),iconHorizontalPadding:n.extend("--ft-switch-icon-horizontal-padding","",d.spacing1),iconVerticalPadding:n.extend("--ft-switch-icon-vertical-padding","",d.spacing1),focusOutlineWidth:n.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ft-switch-focus-focus-ring-color","",f.borderActionFocusRing),optionBorderRadius:n.extend("--ft-switch-option-border-radius","",d.borderRadiusS)};var hl={color1Light:n.extend("--ft-chart-1-light","for area color charts",d.colorBrand40),color1Base:n.extend("--ft-chart-1-base","for line charts",d.colorBrand0),color2Light:n.extend("--ft-chart-2-light","for area color charts",d.colorYellow60),color2Base:n.extend("--ft-chart-2-base","for line charts",d.colorYellow100),color3Light:n.extend("--ft-chart-3-light","",d.colorUltramarine40),color3Base:n.extend("--ft-chart-3-base","",d.colorUltramarine70),color4Light:n.extend("--ft-chart-4-light","",d.colorCyan50),color4Base:n.extend("--ft-chart-4-base","",d.colorCyan100),color5Light:n.extend("--ft-chart-5-light","",d.colorRed40),color5Base:n.extend("--ft-chart-5-base","",d.colorRed60),color6Light:n.extend("--ft-chart-6-light","",d.colorGreen40),color6Base:n.extend("--ft-chart-6-base","",d.colorGreen70),color7Light:n.extend("--ft-chart-7-light","",d.colorOrange70),color7Base:n.extend("--ft-chart-7-base","",d.colorOrange100),color8Light:n.extend("--ft-chart-8-light","",d.colorAvocado70),color8Base:n.extend("--ft-chart-8-base","",d.colorAvocado200),color9Light:n.extend("--ft-chart-9-light","",d.colorBrown50),color9Base:n.extend("--ft-chart-9-base","",d.colorBrown200),color10Light:n.extend("--ft-chart-10-light","",d.colorGray50),color10Base:n.extend("--ft-chart-10-base","",d.colorGray80),monochrome10:n.extend("--ft-chart-monochrome-10","",d.colorBrand10),monochrome20:n.extend("--ft-chart-monochrome-20","",d.colorBrand20),monochrome30:n.extend("--ft-chart-monochrome-30","",d.colorBrand40),monochrome40:n.extend("--ft-chart-monochrome-40","",d.colorBrand60),monochrome50:n.extend("--ft-chart-monochrome-50","",d.colorBrand0),monochrome60:n.extend("--ft-chart-monochrome-60","",d.colorBrand200)};var ml={borderWidth:n.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:n.extend("--ft-notice-horizontal-padding","",d.spacing3),verticalPadding:n.extend("--ft-notice-vertical-padding","",d.spacing2),borderRadius:n.extend("--ft-notice-border-radius","",d.borderRadiusS),gap:n.extend("--ft-notice-gap","",d.spacing2),iconSize:n.extend("--ft-notice-icon-size","",d.iconSize3),infoBackgroundColor:n.extend("--ft-notice-info-background-color","",f.backgroundInfoSubtle),infoBorderColor:n.extend("--ft-notice-info-border-color","",f.borderInfoSubtle),infoColor:n.extend("--ft-notice-info-color","",f.contentInfoPrimary),infoIconColor:n.extend("--ft-notice-info-icon-color","",f.contentInfoIconOnly),warningBackgroundColor:n.extend("--ft-notice-warning-background-color","",f.backgroundWarningSubtle),warningBorderColor:n.extend("--ft-notice-warning-border-color","",f.borderWarningSubtle),warningColor:n.extend("--ft-notice-warning-color","",f.contentWarningPrimary),warningIconColor:n.extend("--ft-notice-warning-icon-color","",f.contentWarningIconOnly),errorBackgroundColor:n.extend("--ft-notice-error-background-color","",f.backgroundErrorSubtle),errorBorderColor:n.extend("--ft-notice-error-border-color","",f.borderErrorSubtle),errorColor:n.extend("--ft-notice-error-color","",f.contentErrorPrimary),errorIconColor:n.extend("--ft-notice-error-icon-color","",f.contentErrorIconOnly),successBackgroundColor:n.extend("--ft-notice-success-background-color","",f.backgroundSuccessSubtle),successBorderColor:n.extend("--ft-notice-success-border-color","",f.borderSuccessSubtle),successColor:n.extend("--ft-notice-success-color","",f.contentSuccessPrimary),successIconColor:n.extend("--ft-notice-success-icon-color","",f.contentSuccessIconOnly)};var gl={color:n.extend("--ft-checkbox-color","",f.contentGlobalPrimary),checkedBackgroundColor:n.extend("--ft-checkbox-checked-background-color","",f.contentActionPrimary),checkedStateLayerColor:n.extend("--ft-checkbox-checked-state-layer-color","",f.contentActionPrimary),checkedIconColor:n.extend("--ft-checkbox-checked-icon-color","",f.contentGlobalOnColor),checkedHoverStateLayerOpacity:n.extend("--ft-checkbox-checked-hover-state-layer-opacity","",d.opacity16),checkedFocusStateLayerOpacity:n.extend("--ft-checkbox-checked-focus-state-layer-opacity","",d.opacity16),checkedActiveStateLayerOpacity:n.extend("--ft-checkbox-checked-active-state-layer-opacity","",d.opacity24),checkedDisabledComponentOpacity:n.extend("--ft-checkbox-checked-disabled-component-opacity","",d.opacity40),uncheckedBorderColor:n.extend("--ft-checkbox-unchecked-border-color","",d.colorGray80),uncheckedStateLayerColor:n.extend("--ft-checkbox-unchecked-state-layer-color","",d.colorGray80),uncheckedHoverStateLayerOpacity:n.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",d.opacity16),uncheckedFocusStateLayerOpacity:n.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",d.opacity16),uncheckedActiveStateLayerOpacity:n.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",d.opacity24),uncheckedDisabledComponentOpacity:n.extend("--ft-checkbox-unchecked-disabled-component-opacity","",d.opacity40),focusFocusRingColor:n.extend("--ft-checkbox-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:n.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:n.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:n.extend("--ft-checkbox-gap","",d.spacing3)};var yl={offHoverStateLayerOpacity:n.extend("--ft-toggle-off-hover-state-layer-opacity","",d.opacity16),offFocusStateLayerOpacity:n.extend("--ft-toggle-off-focus-state-layer-opacity","",d.opacity16),offActiveStateLayerOpacity:n.extend("--ft-toggle-off-active-state-layer-opacity","",d.opacity24),offDisabledComponentOpacity:n.extend("--ft-toggle-off-disabled-component-opacity","",d.opacity40),offBackgroundColor:n.extend("--ft-toggle-off-background-color","",f.contentGlobalSubtle),offIconColor:n.extend("--ft-toggle-off-icon-color","",f.contentGlobalSubtle),offStateLayerColor:n.extend("--ft-toggle-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:n.extend("--ft-toggle-on-hover-state-layer-opacity","",d.opacity16),onFocusStateLayerOpacity:n.extend("--ft-toggle-on-focus-state-layer-opacity","",d.opacity16),onActiveStateLayerOpacity:n.extend("--ft-toggle-on-active-state-layer-opacity","",d.opacity24),onDisabledComponentOpacity:n.extend("--ft-toggle-on-disabled-component-opacity","",d.opacity40),onBackgroundColor:n.extend("--ft-toggle-on-background-color","",f.contentActionPrimary),onStateLayerColor:n.extend("--ft-toggle-on-state-layer-color","",f.contentActionPrimary),onIconColor:n.extend("--ft-toggle-on-icon-color","",f.contentActionPrimary),color:n.extend("--ft-toggle-color","",f.contentGlobalPrimary),focusFocusRingColor:n.extend("--ft-toggle-focus-focus-ring-color","",f.borderActionFocusRing),gap:n.extend("--ft-toggle-gap","",d.spacing3)};var bl={color:n.extend("--ft-radio-color","",f.contentGlobalPrimary),selectedRadioColor:n.extend("--ft-radio-selected-radio-color","",f.contentActionPrimary),selectedStateLayerColor:n.extend("--ft-radio-selected-state-layer-color","",f.contentActionPrimary),selectedHoverStateLayerOpacity:n.extend("--ft-radio-selected-hover-state-layer-opacity","",d.opacity16),selectedFocusStateLayerOpacity:n.extend("--ft-radio-selected-focus-state-layer-opacity","",d.opacity16),selectedActiveStateLayerOpacity:n.extend("--ft-radio-selected-active-state-layer-opacity","",d.opacity24),selectedDisabledComponentOpacity:n.extend("--ft-radio-selected-disabled-component-opacity","",d.opacity40),unselectedStateLayerColor:n.extend("--ft-radio-unselected-state-layer-color","",f.borderInputPrimary),unselectedBorderColor:n.extend("--ft-radio-unselected-border-color","",f.borderInputPrimary),unselectedHoverStateLayerOpacity:n.extend("--ft-radio-unselected-hover-state-layer-opacity","",d.opacity16),unselectedFocusStateLayerOpacity:n.extend("--ft-radio-unselected-focus-state-layer-opacity","",d.opacity16),unselectedActiveStateLayerOpacity:n.extend("--ft-radio-unselected-active-state-layer-opacity","",d.opacity24),unselectedDisabledComponentOpacity:n.extend("--ft-radio-unselected-disabled-component-opacity","",d.opacity40),focusFocusRingColor:n.extend("--ft-radio-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:n.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:n.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:n.extend("--ft-radio-gap","",d.spacing3)};var vl={iconSize:n.extend("--ft-notification-icon-size","",d.iconSize4),leftPadding:n.extend("--ft-notification-left-padding","",d.spacing5),rightPadding:n.extend("--ft-notification-right-padding","",d.spacing4),verticalPadding:n.extend("--ft-notification-vertical-padding","",d.spacing3),infoBackgroundColor:n.extend("--ft-notification-info-background-color","",f.backgroundInfoSubtle),infoColor:n.extend("--ft-notification-info-color","",f.contentInfoPrimary),infoIconColor:n.extend("--ft-notification-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:n.extend("--ft-notification-info-border-color","",f.borderInfoSubtle),successBackgroundColor:n.extend("--ft-notification-success-background-color","",f.backgroundSuccessSubtle),successColor:n.extend("--ft-notification-success-color","",f.contentSuccessPrimary),successIconColor:n.extend("--ft-notification-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:n.extend("--ft-notification-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:n.extend("--ft-notification-warning-background-color","",f.backgroundWarningSubtle),warningColor:n.extend("--ft-notification-warning-color","",f.contentWarningPrimary),warningIconColor:n.extend("--ft-notification-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:n.extend("--ft-notification-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:n.extend("--ft-notification-error-background-color","",f.backgroundErrorSubtle),errorColor:n.extend("--ft-notification-error-color","",f.contentErrorPrimary),errorIconColor:n.extend("--ft-notification-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:n.extend("--ft-notification-error-border-color","",f.borderErrorSubtle),borderRadius:n.extend("--ft-notification-border-radius","",d.borderRadiusPill),borderWidth:n.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:n.extend("--ft-notification-leading-gap","",d.spacing2),trailingGap:n.extend("--ft-notification-trailing-gap","",d.spacing8)};var xl={horizontalPadding:n.extend("--ft-tooltip-horizontal-padding","",d.spacing2),verticalPadding:n.extend("--ft-tooltip-vertical-padding","",d.spacing2),borderRadius:n.extend("--ft-tooltip-border-radius","",d.borderRadiusS),color:n.extend("--ft-tooltip-color","",f.contentGlobalOnColor),backgroundColor:n.extend("--ft-tooltip-background-color","",f.contentGlobalPrimary),backgroundOpacity:n.extend("--ft-tooltip-background-opacity","",d.opacity80),shadow:n.extend("--ft-tooltip-shadow","",d.shadowElevation02),maxWidth:n.create("--ft-tooltip-max-width","","SIZE","256px"),gap:n.extend("--ft-tooltip-gap","",d.spacing05)};var Mt;(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(Mt||(Mt={}));var Dt;(function(r){r.large="large",r.medium="medium",r.small="small"})(Dt||(Dt={}));function Lo(r){return`ftds--family-${r}`}function Uo(r){return`ftds--size-${r}`}var Sl={colorPrimary:n.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:n.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:n.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:n.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:n.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:n.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:n.create("--ft-color-error","","COLOR","#B00020"),colorOutline:n.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:n.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:n.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:n.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:n.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:n.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:n.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:n.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:n.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:n.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:n.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:n.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:n.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:n.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:n.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:n.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:n.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:n.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:n.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:n.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:n.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:n.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:n.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:n.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:n.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:n.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:n.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:n.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:n.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:n.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:n.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:n.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:n.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:n.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:n.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:n.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:n.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:n.create("--ft-elevation-00","","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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:n.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:n.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:n.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:n.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:n.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:n.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:n.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var Wo={};U(Wo,{FtNotificationEvent:()=>Fo,PostResizeEvent:()=>Bo,PreResizeEvent:()=>$o});var Fo=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},$o=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Bo=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};var Xo={};U(Xo,{computeOffsetPosition:()=>Bl});var pa=["top","right","bottom","left"],fa=["start","end"],zo=pa.reduce((r,e)=>r.concat(e,e+"-"+fa[0],e+"-"+fa[1]),[]),Ft=Math.min,Re=Math.max,$t=Math.round;var ge=r=>({x:r,y:r}),Ol={left:"right",right:"left",bottom:"top",top:"bottom"},wl={start:"end",end:"start"};function jo(r,e,t){return Re(r,Ft(e,t))}function wr(r,e){return typeof r=="function"?r(e):r}function ct(r){return r.split("-")[0]}function Ne(r){return r.split("-")[1]}function Ko(r){return r==="x"?"y":"x"}function Vo(r){return r==="y"?"height":"width"}function Er(r){return["top","bottom"].includes(ct(r))?"y":"x"}function Go(r){return Ko(Er(r))}function ha(r,e,t){t===void 0&&(t=!1);let o=Ne(r),i=Go(r),a=Vo(i),s=i==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Ho(s)),[s,Ho(s)]}function ma(r){return r.replace(/start|end/g,e=>wl[e])}function Ho(r){return r.replace(/left|right|bottom|top/g,e=>Ol[e])}function El(r){return{top:0,right:0,bottom:0,left:0,...r}}function ga(r){return typeof r!="number"?El(r):{top:r,right:r,bottom:r,left:r}}function Ze(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function ya(r,e,t){let{reference:o,floating:i}=r,a=Er(e),s=Go(e),c=Vo(s),l=ct(e),u=a==="y",p=o.x+o.width/2-i.width/2,h=o.y+o.height/2-i.height/2,g=o[c]/2-i[c]/2,y;switch(l){case"top":y={x:p,y:o.y-i.height};break;case"bottom":y={x:p,y:o.y+o.height};break;case"right":y={x:o.x+o.width,y:h};break;case"left":y={x:o.x-i.width,y:h};break;default:y={x:o.x,y:o.y}}switch(Ne(e)){case"start":y[s]-=g*(t&&u?-1:1);break;case"end":y[s]+=g*(t&&u?-1:1);break}return y}var ba=async(r,e,t)=>{let{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:s}=t,c=a.filter(Boolean),l=await(s.isRTL==null?void 0:s.isRTL(e)),u=await s.getElementRects({reference:r,floating:e,strategy:i}),{x:p,y:h}=ya(u,o,l),g=o,y={},b=0;for(let O=0;O<c.length;O++){let{name:C,fn:A}=c[O],{x:R,y:S,data:x,reset:w}=await A({x:p,y:h,initialPlacement:o,placement:g,strategy:i,middlewareData:y,rects:u,platform:s,elements:{reference:r,floating:e}});if(p=R??p,h=S??h,y={...y,[C]:{...y[C],...x}},w&&b<=50){b++,typeof w=="object"&&(w.placement&&(g=w.placement),w.rects&&(u=w.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:i}):w.rects),{x:p,y:h}=ya(u,g,l)),O=-1;continue}}return{x:p,y:h,placement:g,strategy:i,middlewareData:y}};async function Zo(r,e){var t;e===void 0&&(e={});let{x:o,y:i,platform:a,rects:s,elements:c,strategy:l}=r,{boundary:u="clippingAncestors",rootBoundary:p="viewport",elementContext:h="floating",altBoundary:g=!1,padding:y=0}=wr(e,r),b=ga(y),C=c[g?h==="floating"?"reference":"floating":h],A=Ze(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:u,rootBoundary:p,strategy:l})),R=h==="floating"?{...s.floating,x:o,y:i}:s.reference,S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),x=await(a.isElement==null?void 0:a.isElement(S))?await(a.getScale==null?void 0:a.getScale(S))||{x:1,y:1}:{x:1,y:1},w=Ze(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:R,offsetParent:S,strategy:l}):R);return{top:(A.top-w.top+b.top)/x.y,bottom:(w.bottom-A.bottom+b.bottom)/x.y,left:(A.left-w.left+b.left)/x.x,right:(w.right-A.right+b.right)/x.x}}function Cl(r,e,t){return(r?[...t.filter(i=>Ne(i)===r),...t.filter(i=>Ne(i)!==r)]:t.filter(i=>ct(i)===i)).filter(i=>r?Ne(i)===r||(e?ma(i)!==i:!1):!0)}var qo=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(e){var t,o,i;let{rects:a,middlewareData:s,placement:c,platform:l,elements:u}=e,{crossAxis:p=!1,alignment:h,allowedPlacements:g=zo,autoAlignment:y=!0,...b}=wr(r,e),O=h!==void 0||g===zo?Cl(h||null,y,g):g,C=await Zo(e,b),A=((t=s.autoPlacement)==null?void 0:t.index)||0,R=O[A];if(R==null)return{};let S=ha(R,a,await(l.isRTL==null?void 0:l.isRTL(u.floating)));if(c!==R)return{reset:{placement:O[0]}};let x=[C[ct(R)],C[S[0]],C[S[1]]],w=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:R,overflows:x}],I=O[A+1];if(I)return{data:{index:A+1,overflows:w},reset:{placement:I}};let _=w.map(m=>{let v=Ne(m.placement);return[m.placement,v&&p?m.overflows.slice(0,2).reduce((E,P)=>E+P,0):m.overflows[0],m.overflows]}).sort((m,v)=>m[1]-v[1]),k=((i=_.filter(m=>m[2].slice(0,Ne(m[0])?2:3).every(v=>v<=0))[0])==null?void 0:i[0])||_[0][0];return k!==c?{data:{index:A+1,overflows:w},reset:{placement:k}}:{}}}};var Yo=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){let{x:t,y:o,placement:i}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:C=>{let{x:A,y:R}=C;return{x:A,y:R}}},...l}=wr(r,e),u={x:t,y:o},p=await Zo(e,l),h=Er(ct(i)),g=Ko(h),y=u[g],b=u[h];if(a){let C=g==="y"?"top":"left",A=g==="y"?"bottom":"right",R=y+p[C],S=y-p[A];y=jo(R,y,S)}if(s){let C=h==="y"?"top":"left",A=h==="y"?"bottom":"right",R=b+p[C],S=b-p[A];b=jo(R,b,S)}let O=c.fn({...e,[g]:y,[h]:b});return{...O,data:{x:O.x-t,y:O.y-o}}}}};function ye(r){return xa(r)?(r.nodeName||"").toLowerCase():"#document"}function G(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function be(r){var e;return(e=(xa(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function xa(r){return r instanceof Node||r instanceof G(r).Node}function ce(r){return r instanceof Element||r instanceof G(r).Element}function oe(r){return r instanceof HTMLElement||r instanceof G(r).HTMLElement}function va(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof G(r).ShadowRoot}function lt(r){let{overflow:e,overflowX:t,overflowY:o,display:i}=J(r);return/auto|scroll|overlay|hidden|clip/.test(e+o+t)&&!["inline","contents"].includes(i)}function Sa(r){return["table","td","th"].includes(ye(r))}function Ar(r){let e=Rr(),t=J(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(o=>(t.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(t.contain||"").includes(o))}function Oa(r){let e=qe(r);for(;oe(e)&&!Bt(e);){if(Ar(e))return e;e=qe(e)}return null}function Rr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Bt(r){return["html","body","#document"].includes(ye(r))}function J(r){return G(r).getComputedStyle(r)}function Wt(r){return ce(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function qe(r){if(ye(r)==="html")return r;let e=r.assignedSlot||r.parentNode||va(r)&&r.host||be(r);return va(e)?e.host:e}function wa(r){let e=qe(r);return Bt(e)?r.ownerDocument?r.ownerDocument.body:r.body:oe(e)&&lt(e)?e:wa(e)}function Cr(r,e,t){var o;e===void 0&&(e=[]),t===void 0&&(t=!0);let i=wa(r),a=i===((o=r.ownerDocument)==null?void 0:o.body),s=G(i);return a?e.concat(s,s.visualViewport||[],lt(i)?i:[],s.frameElement&&t?Cr(s.frameElement):[]):e.concat(i,Cr(i,[],t))}function Aa(r){let e=J(r),t=parseFloat(e.width)||0,o=parseFloat(e.height)||0,i=oe(r),a=i?r.offsetWidth:t,s=i?r.offsetHeight:o,c=$t(t)!==a||$t(o)!==s;return c&&(t=a,o=s),{width:t,height:o,$:c}}function Ra(r){return ce(r)?r:r.contextElement}function dt(r){let e=Ra(r);if(!oe(e))return ge(1);let t=e.getBoundingClientRect(),{width:o,height:i,$:a}=Aa(e),s=(a?$t(t.width):t.width)/o,c=(a?$t(t.height):t.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var Al=ge(0);function Na(r){let e=G(r);return!Rr()||!e.visualViewport?Al:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Rl(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==G(r)?!1:e}function Ht(r,e,t,o){e===void 0&&(e=!1),t===void 0&&(t=!1);let i=r.getBoundingClientRect(),a=Ra(r),s=ge(1);e&&(o?ce(o)&&(s=dt(o)):s=dt(r));let c=Rl(a,t,o)?Na(a):ge(0),l=(i.left+c.x)/s.x,u=(i.top+c.y)/s.y,p=i.width/s.x,h=i.height/s.y;if(a){let g=G(a),y=o&&ce(o)?G(o):o,b=g.frameElement;for(;b&&o&&y!==g;){let O=dt(b),C=b.getBoundingClientRect(),A=J(b),R=C.left+(b.clientLeft+parseFloat(A.paddingLeft))*O.x,S=C.top+(b.clientTop+parseFloat(A.paddingTop))*O.y;l*=O.x,u*=O.y,p*=O.x,h*=O.y,l+=R,u+=S,b=G(b).frameElement}}return Ze({width:p,height:h,x:l,y:u})}function Nl(r){let{rect:e,offsetParent:t,strategy:o}=r,i=oe(t),a=be(t);if(t===a)return e;let s={scrollLeft:0,scrollTop:0},c=ge(1),l=ge(0);if((i||!i&&o!=="fixed")&&((ye(t)!=="body"||lt(a))&&(s=Wt(t)),oe(t))){let u=Ht(t);c=dt(t),l.x=u.x+t.clientLeft,l.y=u.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 Il(r){return Array.from(r.getClientRects())}function Ia(r){return Ht(be(r)).left+Wt(r).scrollLeft}function _l(r){let e=be(r),t=Wt(r),o=r.ownerDocument.body,i=Re(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=Re(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),s=-t.scrollLeft+Ia(r),c=-t.scrollTop;return J(o).direction==="rtl"&&(s+=Re(e.clientWidth,o.clientWidth)-i),{width:i,height:a,x:s,y:c}}function Tl(r,e){let t=G(r),o=be(r),i=t.visualViewport,a=o.clientWidth,s=o.clientHeight,c=0,l=0;if(i){a=i.width,s=i.height;let u=Rr();(!u||u&&e==="fixed")&&(c=i.offsetLeft,l=i.offsetTop)}return{width:a,height:s,x:c,y:l}}function Pl(r,e){let t=Ht(r,!0,e==="fixed"),o=t.top+r.clientTop,i=t.left+r.clientLeft,a=oe(r)?dt(r):ge(1),s=r.clientWidth*a.x,c=r.clientHeight*a.y,l=i*a.x,u=o*a.y;return{width:s,height:c,x:l,y:u}}function Ea(r,e,t){let o;if(e==="viewport")o=Tl(r,t);else if(e==="document")o=_l(be(r));else if(ce(e))o=Pl(e,t);else{let i=Na(r);o={...e,x:e.x-i.x,y:e.y-i.y}}return Ze(o)}function _a(r,e){let t=qe(r);return t===e||!ce(t)||Bt(t)?!1:J(t).position==="fixed"||_a(t,e)}function kl(r,e){let t=e.get(r);if(t)return t;let o=Cr(r,[],!1).filter(c=>ce(c)&&ye(c)!=="body"),i=null,a=J(r).position==="fixed",s=a?qe(r):r;for(;ce(s)&&!Bt(s);){let c=J(s),l=Ar(s);!l&&c.position==="fixed"&&(i=null),(a?!l&&!i:!l&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||lt(s)&&!l&&_a(r,s))?o=o.filter(p=>p!==s):i=c,s=qe(s)}return e.set(r,o),o}function Ll(r){let{element:e,boundary:t,rootBoundary:o,strategy:i}=r,s=[...t==="clippingAncestors"?kl(e,this._c):[].concat(t),o],c=s[0],l=s.reduce((u,p)=>{let h=Ea(e,p,i);return u.top=Re(h.top,u.top),u.right=Ft(h.right,u.right),u.bottom=Ft(h.bottom,u.bottom),u.left=Re(h.left,u.left),u},Ea(e,c,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Ul(r){return Aa(r)}function Ml(r,e,t){let o=oe(e),i=be(e),a=t==="fixed",s=Ht(r,!0,a,e),c={scrollLeft:0,scrollTop:0},l=ge(0);if(o||!o&&!a)if((ye(e)!=="body"||lt(i))&&(c=Wt(e)),o){let u=Ht(e,!0,a,e);l.x=u.x+e.clientLeft,l.y=u.y+e.clientTop}else i&&(l.x=Ia(i));return{x:s.left+c.scrollLeft-l.x,y:s.top+c.scrollTop-l.y,width:s.width,height:s.height}}function Ca(r,e){return!oe(r)||J(r).position==="fixed"?null:e?e(r):r.offsetParent}function Ta(r,e){let t=G(r);if(!oe(r))return t;let o=Ca(r,e);for(;o&&Sa(o)&&J(o).position==="static";)o=Ca(o,e);return o&&(ye(o)==="html"||ye(o)==="body"&&J(o).position==="static"&&!Ar(o))?t:o||Oa(r)||t}var Dl=async function(r){let{reference:e,floating:t,strategy:o}=r,i=this.getOffsetParent||Ta,a=this.getDimensions;return{reference:Ml(e,await i(t),o),floating:{x:0,y:0,...await a(t)}}};function Fl(r){return J(r).direction==="rtl"}var Nr={convertOffsetParentRelativeRectToViewportRelativeRect:Nl,getDocumentElement:be,getClippingRect:Ll,getOffsetParent:Ta,getElementRects:Dl,getClientRects:Il,getDimensions:Ul,getScale:dt,isElement:ce,isRTL:Fl};var Pa=(r,e,t)=>{let o=new Map,i={platform:Nr,...t},a={...i.platform,_c:o};return ba(r,e,{...i,platform:a})};function ka(r){return $l(r)}function Jo(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function $l(r){for(let e=r;e;e=Jo(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Jo(r);e;e=Jo(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 Bl(r,e,t){return Pa(r,e,{platform:{...Nr,getOffsetParent:o=>Nr.getOffsetParent(o,ka)},middleware:[Yo({crossAxis:!0}),qo({allowedPlacements:[t]})]})}var rn={};U(rn,{FtdsBase:()=>tn,toFtdsBase:()=>Wa});var en={};U(en,{FtLitElement:()=>X});var Qo={};U(Qo,{ScopedRegistryLitElement:()=>zt});var Ir=window,Wl=Ir.ShadowRoot&&(Ir.ShadyCSS===void 0||Ir.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Om=Symbol();var La=(r,e)=>{Wl?r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{let o=document.createElement("style"),i=Ir.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=t.cssText,r.appendChild(o)})};var zt=class extends he{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},o=this.renderOptions.creationScope=this.attachShadow(t);return La(o,e.elementStyles),o}};var _r=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);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},Fa,Ua=Symbol("constructorPrototype"),Ma=Symbol("constructorName"),$a=Symbol("exportpartsDebouncer"),Da=Symbol("dynamicDependenciesLoaded"),X=class extends zt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Fa]=new Y(5),this[Ma]=this.constructor.name,this[Ua]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ma]&&Object.setPrototypeOf(this,this[Ua])}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[Da]||(e[Da]=!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,o,i;if(((o=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,t,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(t=this.exportpartsPrefixes)===null||t===void 0?void 0:t.length)!==null&&o!==void 0&&o)&&this[$a].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,o,i,a,s,c;let l=g=>g!=null&&g.trim().length>0,u=e.filter(l).map(g=>g.trim());if(u.length===0){this.removeAttribute("exportparts");return}let p=new Set;for(let g of(o=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){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=>p.add(O))}if(p.size===0){this.removeAttribute("exportparts");return}let h=[...p.values()].flatMap(g=>u.map(y=>`${g}:${y}--${g}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};Fa=$a;_r([T()],X.prototype,"exportpartsPrefix",void 0);_r([Ae([])],X.prototype,"exportpartsPrefixes",void 0);_r([T()],X.prototype,"customStylesheet",void 0);_r([vo()],X.prototype,"useAdoptedStyleSheets",void 0);var Ba=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);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 Wa(r){class e extends r{constructor(){super(...arguments),this.size=Dt.medium,this.family=Mt.neutral}getDesignSystemBaseClasses(){return{[Lo(this.family)]:!0,[Uo(this.size)]:!0}}}return Ba([T()],e.prototype,"size",void 0),Ba([T()],e.prototype,"family",void 0),e}var tn=class extends Wa(X){};var Ha={};var an={};U(an,{highlightHtml:()=>nn,highlightHtmlColorCssVariable:()=>za,highlightHtmlStyles:()=>zl});var Ye=class r{constructor(e,t=!0,o=[],i=5e3){this.ctx=e,this.iframes=t,this.exclude=o,this.iframesTimeout=i}static matches(e,t){let o=typeof t=="string"?[t]:t,i=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(i){let a=!1;return o.every(s=>i.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,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(o=>{let i=t.filter(a=>a.contains(o)).length>0;t.indexOf(o)===-1&&!i&&t.push(o)}),t}getIframeContents(e,t,o=()=>{}){let i;try{let a=e.contentWindow;if(i=a.document,!a||!i)throw new Error("iframe inaccessible")}catch{o()}i&&t(i)}isIframeBlank(e){let t="about:blank",o=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&o!==t&&o}observeIframeLoad(e,t,o){let i=!1,a=null,s=()=>{if(!i){i=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,t,o))}catch{o()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,t,o){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,o):this.getIframeContents(e,t,o):this.observeIframeLoad(e,t,o)}catch{o()}}waitForIframes(e,t){let o=0;this.forEachIframe(e,()=>!0,i=>{o++,this.waitForIframes(i.querySelector("html"),()=>{--o||t()})},i=>{i||t()})}forEachIframe(e,t,o,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(u=>{r.matches(u,this.exclude)?l():this.onIframeReady(u,p=>{t(u)&&(c++,o(p)),l()},l)})}createIterator(e,t,o){return document.createNodeIterator(e,t,o,!1)}createInstanceOnIframe(e){return new r(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,o){let i=e.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(i&a)if(t!==null){let s=t.compareDocumentPosition(o),c=Node.DOCUMENT_POSITION_FOLLOWING;if(s&c)return!0}else return!0;return!1}getIteratorNode(e){let t=e.previousNode(),o;return t===null?o=e.nextNode():o=e.nextNode()&&e.nextNode(),{prevNode:t,node:o}}checkIframeFilter(e,t,o,i){let a=!1,s=!1;return i.forEach((c,l)=>{c.val===o&&(a=l,s=c.handled)}),this.compareNodeIframe(e,t,o)?(a===!1&&!s?i.push({val:o,handled:!0}):a!==!1&&!s&&(i[a].handled=!0),!0):(a===!1&&i.push({val:o,handled:!1}),!1)}handleOpenIframes(e,t,o,i){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(t,o,i)})})}iterateThroughNodes(e,t,o,i,a){let s=this.createIterator(t,e,i),c=[],l=[],u,p,h=()=>({prevNode:p,node:u}=this.getIteratorNode(s),u);for(;h();)this.iframes&&this.forEachIframe(t,g=>this.checkIframeFilter(u,p,g,c),g=>{this.createInstanceOnIframe(g).forEachNode(e,y=>l.push(y),i)}),l.push(u);l.forEach(g=>{o(g)}),this.iframes&&this.handleOpenIframes(c,e,o,i),a()}forEachNode(e,t,o,i=()=>{}){let a=this.getContexts(),s=a.length;s||i(),a.forEach(c=>{let l=()=>{this.iterateThroughNodes(e,c,t,o,()=>{--s<=0&&i()})};this.iframes?this.waitForIframes(c,l):l()})}};var jt=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 Ye(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[t]=="function"&&o[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,o=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${o}`),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,o,i)=>{let a=i.charAt(o+1);return/[(|)\\]/.test(a)||a===""?t:t+"\0"})}createJoinersRegExp(e){let t=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&t.push(this.escapeStr(o.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",o=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],i=[];return e.split("").forEach(a=>{o.every(s=>{if(s.indexOf(a)!==-1){if(i.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${t}`),`[${s}]`),i.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",o=this.opt.accuracy,i=typeof o=="string"?o:o.value,a=typeof o=="string"?[]:o.limiters,s="";switch(a.forEach(c=>{s+=`|${this.escapeStr(c)}`}),i){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(t)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let t=[];return e.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(i=>{i.trim()&&t.indexOf(i)===-1&&t.push(i)}):o.trim()&&t.indexOf(o)===-1&&t.push(o)}),{keywords:t.sort((o,i)=>i.length-o.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=[],o=0;return e.sort((i,a)=>i.start-a.start).forEach(i=>{let{start:a,end:s,valid:c}=this.callNoMatchOnInvalidRanges(i,o);c&&(i.start=a,i.length=s-a,t.push(i),o=s)}),t}callNoMatchOnInvalidRanges(e,t){let o,i,a=!1;return e&&typeof e.start<"u"?(o=parseInt(e.start,10),i=o+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&i-t>0&&i-o>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:o,end:i,valid:a}}checkWhitespaceRanges(e,t,o){let i,a=!0,s=o.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)):o.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="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,i=>{o.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:o})})}matchesExclude(e){return Ye.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,o){let i=this.opt.element?this.opt.element:"mark",a=e.splitText(t),s=a.splitText(o-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,o,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 u=t-s.start,p=(o>s.end?s.end:o)-s.start,h=e.value.substr(0,s.start),g=e.value.substr(p+s.start);if(s.node=this.wrapRangeInTextNode(s.node,u,p),e.value=h+g,e.nodes.forEach((y,b)=>{b>=c&&(e.nodes[b].start>0&&b!==c&&(e.nodes[b].start-=p),e.nodes[b].end-=p)}),o-=p,a(s.node.previousSibling,s.start),o>s.end)t=s.end;else return!1}return!0})}wrapMatches(e,t,o,i,a){let s=t===0?0:t+1;this.getTextNodes(c=>{c.nodes.forEach(l=>{l=l.node;let u;for(;(u=e.exec(l.textContent))!==null&&u[s]!=="";){if(!o(u[s],l))continue;let p=u.index;if(s!==0)for(let h=1;h<s;h++)p+=u[h].length;l=this.wrapRangeInTextNode(l,p,p+u[s].length),i(l.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,t,o,i,a){let s=t===0?0:t+1;this.getTextNodes(c=>{let l;for(;(l=e.exec(c.value))!==null&&l[s]!=="";){let u=l.index;if(s!==0)for(let h=1;h<s;h++)u+=l[h].length;let p=u+l[s].length;this.wrapRangeInMappedTextNode(c,u,p,h=>o(l[s],h),(h,g)=>{e.lastIndex=g,i(h)})}a()})}wrapRangeFromIndex(e,t,o,i){this.getTextNodes(a=>{let s=a.value.length;e.forEach((c,l)=>{let{start:u,end:p,valid:h}=this.checkWhitespaceRanges(c,s,a.value);h&&this.wrapRangeInMappedTextNode(a,u,p,g=>t(g,c,a.value.substring(u,p),l),g=>{o(g,c)})}),i()})}unwrapMatches(e){let t=e.parentNode,o=document.createDocumentFragment();for(;e.firstChild;)o.appendChild(e.removeChild(e.firstChild));t.replaceChild(o,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 o=0,i="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](e,this.opt.ignoreGroups,(s,c)=>this.opt.filter(c,s,o),a,()=>{o===0&&this.opt.noMatch(e),this.opt.done(o)})}mark(e,t){this.opt=t;let o=0,i="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),c=this.opt.caseSensitive?"":"i",l=u=>{let p=new RegExp(this.createRegExp(u),`gm${c}`),h=0;this.log(`Searching with expression "${p}"`),this[i](p,1,(g,y)=>this.opt.filter(y,u,o,h),g=>{h++,o++,this.opt.each(g)},()=>{h===0&&this.opt.noMatch(u),a[s-1]===u?this.opt.done(o):l(a[a.indexOf(u)+1])})};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),s===0?this.opt.done(o):l(a[0])}markRanges(e,t){this.opt=t;let o=0,i=this.checkRanges(e);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,(a,s,c,l)=>this.opt.filter(a,s,c,l),(a,s)=>{o++,this.opt.each(a,s)},()=>{this.opt.done(o)})):this.opt.done(o)}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,o=>{this.unwrapMatches(o)},o=>{let i=Ye.matches(o,t),a=this.matchesExclude(o);return!i||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function on(r){let e=new jt(r);return this.mark=(t,o)=>(e.mark(t,o),this),this.markRegExp=(t,o)=>(e.markRegExp(t,o),this),this.markRanges=(t,o)=>(e.markRanges(t,o),this),this.unmark=t=>(e.unmark(t),this),this}var Hl=on,za=n.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),zl=H`
1
+ "use strict";(()=>{var rc=Object.create;var uo=Object.defineProperty;var oc=Object.getOwnPropertyDescriptor;var nc=Object.getOwnPropertyNames;var ic=Object.getPrototypeOf,ac=Object.prototype.hasOwnProperty;var sc=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),M=(r,e)=>{for(var t in e)uo(r,t,{get:e[t],enumerable:!0})},cc=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of nc(e))!ac.call(r,i)&&i!==t&&uo(r,i,{get:()=>e[i],enumerable:!(o=oc(e,i))||o.enumerable});return r};var lc=(r,e,t)=>(t=r!=null?rc(ic(r)):{},cc(e||!r||!r.__esModule?uo(t,"default",{value:r,enumerable:!0}):t,r));var Ps=sc((Fe,Ts)=>{var Kr=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Vr=function(){function r(){this.fetch=!1,this.DOMException=Kr.DOMException}return r.prototype=Kr,new r}();(function(r){var e=function(t){var o=typeof r<"u"&&r||typeof self<"u"&&self||typeof global<"u"&&global||{},i={searchParams:"URLSearchParams"in o,iterable:"Symbol"in o&&"iterator"in Symbol,blob:"FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in o,arrayBuffer:"ArrayBuffer"in o};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]"],l=ArrayBuffer.isView||function(m){return m&&s.indexOf(Object.prototype.toString.call(m))>-1};function c(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 u(m){return typeof m!="string"&&(m=String(m)),m}function h(m){var v={next:function(){var R=m.shift();return{done:R===void 0,value:R}}};return i.iterable&&(v[Symbol.iterator]=function(){return v}),v}function f(m){this.map={},m instanceof f?m.forEach(function(v,R){this.append(R,v)},this):Array.isArray(m)?m.forEach(function(v){if(v.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+v.length);this.append(v[0],v[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(v){this.append(v,m[v])},this)}f.prototype.append=function(m,v){m=c(m),v=u(v);var R=this.map[m];this.map[m]=R?R+", "+v:v},f.prototype.delete=function(m){delete this.map[c(m)]},f.prototype.get=function(m){return m=c(m),this.has(m)?this.map[m]:null},f.prototype.has=function(m){return this.map.hasOwnProperty(c(m))},f.prototype.set=function(m,v){this.map[c(m)]=u(v)},f.prototype.forEach=function(m,v){for(var R in this.map)this.map.hasOwnProperty(R)&&m.call(v,this.map[R],R,this)},f.prototype.keys=function(){var m=[];return this.forEach(function(v,R){m.push(R)}),h(m)},f.prototype.values=function(){var m=[];return this.forEach(function(v){m.push(v)}),h(m)},f.prototype.entries=function(){var m=[];return this.forEach(function(v,R){m.push([R,v])}),h(m)},i.iterable&&(f.prototype[Symbol.iterator]=f.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(v,R){m.onload=function(){v(m.result)},m.onerror=function(){R(m.error)}})}function b(m){var v=new FileReader,R=y(v);return v.readAsArrayBuffer(m),R}function O(m){var v=new FileReader,R=y(v),k=/charset=([A-Za-z0-9_-]+)/.exec(m.type),F=k?k[1]:"utf-8";return v.readAsText(m,F),R}function C(m){for(var v=new Uint8Array(m),R=new Array(v.length),k=0;k<v.length;k++)R[k]=String.fromCharCode(v[k]);return R.join("")}function E(m){if(m.slice)return m.slice(0);var v=new Uint8Array(m.byteLength);return v.set(new Uint8Array(m)),v.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)||l(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(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(_)}),this.json=function(){return this.text().then(JSON.parse)},this}var S=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function x(m){var v=m.toUpperCase();return S.indexOf(v)>-1?v:m}function w(m,v){if(!(this instanceof w))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');v=v||{};var R=v.body;if(m instanceof w){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,v.headers||(this.headers=new f(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=v.credentials||this.credentials||"same-origin",(v.headers||!this.headers)&&(this.headers=new f(v.headers)),this.method=x(v.method||this.method||"GET"),this.mode=v.mode||this.mode||null,this.signal=v.signal||this.signal||function(){if("AbortController"in o){var P=new AbortController;return P.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")&&(v.cache==="no-store"||v.cache==="no-cache")){var k=/([?&])_=[^&]*/;if(k.test(this.url))this.url=this.url.replace(k,"$1_="+new Date().getTime());else{var F=/\?/;this.url+=(F.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}w.prototype.clone=function(){return new w(this,{body:this._bodyInit})};function _(m){var v=new FormData;return m.trim().split("&").forEach(function(R){if(R){var k=R.split("="),F=k.shift().replace(/\+/g," "),P=k.join("=").replace(/\+/g," ");v.append(decodeURIComponent(F),decodeURIComponent(P))}}),v}function L(m){var v=new f,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 F=k.split(":"),P=F.shift().trim();if(P){var er=F.join(":").trim();try{v.append(P,er)}catch(lo){console.warn("Response "+lo.message)}}}),v}A.call(w.prototype);function D(m,v){if(!(this instanceof D))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(v||(v={}),this.type="default",this.status=v.status===void 0?200:v.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=v.statusText===void 0?"":""+v.statusText,this.headers=new f(v.headers),this.url=v.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 f(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 U=[301,302,303,307,308];D.redirect=function(m,v){if(U.indexOf(v)===-1)throw new RangeError("Invalid status code");return new D(null,{status:v,headers:{location:m}})},t.DOMException=o.DOMException;try{new t.DOMException}catch{t.DOMException=function(v,R){this.message=v,this.name=R;var k=Error(v);this.stack=k.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function N(m,v){return new Promise(function(R,k){var F=new w(m,v);if(F.signal&&F.signal.aborted)return k(new t.DOMException("Aborted","AbortError"));var P=new XMLHttpRequest;function er(){P.abort()}P.onload=function(){var V={statusText:P.statusText,headers:L(P.getAllResponseHeaders()||"")};F.url.indexOf("file://")===0&&(P.status<200||P.status>599)?V.status=200:V.status=P.status,V.url="responseURL"in P?P.responseURL:V.headers.get("X-Request-URL");var $e="response"in P?P.response:P.responseText;setTimeout(function(){R(new D($e,V))},0)},P.onerror=function(){setTimeout(function(){k(new TypeError("Network request failed"))},0)},P.ontimeout=function(){setTimeout(function(){k(new TypeError("Network request timed out"))},0)},P.onabort=function(){setTimeout(function(){k(new t.DOMException("Aborted","AbortError"))},0)};function lo(V){try{return V===""&&o.location.href?o.location.href:V}catch{return V}}if(P.open(F.method,lo(F.url),!0),F.credentials==="include"?P.withCredentials=!0:F.credentials==="omit"&&(P.withCredentials=!1),"responseType"in P&&(i.blob?P.responseType="blob":i.arrayBuffer&&(P.responseType="arraybuffer")),v&&typeof v.headers=="object"&&!(v.headers instanceof f||o.Headers&&v.headers instanceof o.Headers)){var ni=[];Object.getOwnPropertyNames(v.headers).forEach(function(V){ni.push(c(V)),P.setRequestHeader(V,u(v.headers[V]))}),F.headers.forEach(function(V,$e){ni.indexOf($e)===-1&&P.setRequestHeader($e,V)})}else F.headers.forEach(function(V,$e){P.setRequestHeader($e,V)});F.signal&&(F.signal.addEventListener("abort",er),P.onreadystatechange=function(){P.readyState===4&&F.signal.removeEventListener("abort",er)}),P.send(typeof F._bodyInit>"u"?null:F._bodyInit)})}return N.polyfill=!0,o.fetch||(o.fetch=N,o.Headers=f,o.Request=w,o.Response=D),t.Headers=f,t.Request=w,t.Response=D,t.fetch=N,t}({})})(Vr);Vr.fetch.ponyfill=!0;delete Vr.fetch.polyfill;var St=Kr.fetch?Kr:Vr;Fe=St.fetch;Fe.default=St.fetch;Fe.fetch=St.fetch;Fe.Headers=St.Headers;Fe.Request=St.Request;Fe.Response=St.Response;Ts.exports=Fe});if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,e=window.customElements.define,t=window.customElements.get,o=window.customElements,i=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(S,x){if(S=S.toLowerCase(),this._getDefinition(S)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${S}" has already been used with this registry`);if(this._definitionsByClass.get(x)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let w=x.prototype.attributeChangedCallback,_=new Set(x.observedAttributes||[]);g(x,_,w);let L={elementClass:x,connectedCallback:x.prototype.connectedCallback,disconnectedCallback:x.prototype.disconnectedCallback,adoptedCallback:x.prototype.adoptedCallback,attributeChangedCallback:w,formAssociated:x.formAssociated,formAssociatedCallback:x.prototype.formAssociatedCallback,formDisabledCallback:x.prototype.formDisabledCallback,formResetCallback:x.prototype.formResetCallback,formStateRestoreCallback:x.prototype.formStateRestoreCallback,observedAttributes:_};this._definitionsByTag.set(S,L),this._definitionsByClass.set(x,L);let D=t.call(o,S);D||(D=f(S),e.call(o,S,D)),this===window.customElements&&(s.set(x,L),L.standInClass=D);let U=this._awaitingUpgrade.get(S);if(U){this._awaitingUpgrade.delete(S);for(let m of U)a.delete(m),b(m,L,!0)}let N=this._whenDefinedPromises.get(S);return N!==void 0&&(N.resolve(x),this._whenDefinedPromises.delete(S)),x}upgrade(){C.push(this),o.upgrade.apply(o,arguments),C.pop()}get(S){return this._definitionsByTag.get(S)?.elementClass}_getDefinition(S){return this._definitionsByTag.get(S)}whenDefined(S){let x=this._getDefinition(S);if(x!==void 0)return Promise.resolve(x.elementClass);let w=this._whenDefinedPromises.get(S);return w===void 0&&(w={},w.promise=new Promise(_=>w.resolve=_),this._whenDefinedPromises.set(S,w)),w.promise}_upgradeWhenDefined(S,x,w){let _=this._awaitingUpgrade.get(x);_||this._awaitingUpgrade.set(x,_=new Set),w?_.add(S):_.delete(S)}};let c;window.HTMLElement=function(){let x=c;if(x)return c=void 0,x;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 x=Reflect.construct(r,[],w.standInClass),Object.setPrototypeOf(x,this.constructor.prototype),i.set(x,w),x},window.HTMLElement.prototype=r.prototype;let u=S=>S===document||S instanceof ShadowRoot,h=S=>{let x=S.getRootNode();if(!u(x)){let w=C[C.length-1];if(w instanceof CustomElementRegistry)return w;x=w.getRootNode(),u(x)||(x=l.get(x)?.getRootNode()||document)}return x.customElements},f=S=>class{static get formAssociated(){return!0}constructor(){let w=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(w,HTMLElement.prototype);let _=h(w)||window.customElements,L=_._getDefinition(S);return L?b(w,L):a.set(w,_),w}connectedCallback(){let w=i.get(this);w?w.connectedCallback&&w.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,S,!0)}disconnectedCallback(){let w=i.get(this);w?w.disconnectedCallback&&w.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,S,!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=(S,x,w)=>{if(x.size===0||w===void 0)return;let _=S.prototype.setAttribute;_&&(S.prototype.setAttribute=function(U,N){let m=U.toLowerCase();if(x.has(m)){let v=this.getAttribute(m);_.call(this,m,N),w.call(this,m,v,N)}else _.call(this,m,N)});let L=S.prototype.removeAttribute;L&&(S.prototype.removeAttribute=function(U){let N=U.toLowerCase();if(x.has(N)){let m=this.getAttribute(N);L.call(this,N),w.call(this,N,m,null)}else L.call(this,N)});let D=S.prototype.toggleAttribute;D&&(S.prototype.toggleAttribute=function(U,N){let m=U.toLowerCase();if(x.has(m)){let v=this.getAttribute(m);D.call(this,m,N);let R=this.getAttribute(m);w.call(this,m,v,R)}else D.call(this,m,N)})},y=S=>{let x=Object.getPrototypeOf(S);if(x!==window.HTMLElement)return x===r?Object.setPrototypeOf(S,window.HTMLElement):y(x)},b=(S,x,w=!1)=>{Object.setPrototypeOf(S,x.elementClass.prototype),i.set(S,x),c=S;try{new x.elementClass}catch{y(x.elementClass),new x.elementClass}x.attributeChangedCallback&&x.observedAttributes.forEach(_=>{S.hasAttribute(_)&&x.attributeChangedCallback.call(S,_,null,S.getAttribute(_))}),w&&x.connectedCallback&&S.isConnected&&x.connectedCallback.call(S)},O=Element.prototype.attachShadow;Element.prototype.attachShadow=function(S){let x=O.apply(this,arguments);return S.customElements&&(x.customElements=S.customElements),x};let C=[document],E=(S,x,w=void 0)=>{let _=(w?Object.getPrototypeOf(w):S.prototype)[x];S.prototype[x]=function(){C.push(this);let L=_.apply(w||this,arguments);return L!==void 0&&l.set(L,this),C.pop(),L}};E(ShadowRoot,"createElement",document),E(ShadowRoot,"importNode",document),E(Element,"insertAdjacentHTML");let A=(S,x)=>{let w=Object.getOwnPropertyDescriptor(S.prototype,x);Object.defineProperty(S.prototype,x,{...w,set(_){C.push(this),w.set.call(this,_),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 S=new WeakMap,x=HTMLElement.prototype.attachInternals,w=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...U){let N=x.call(this,...U);return S.set(N,this),N},w.forEach(U=>{let N=window.ElementInternals.prototype,m=N[U];N[U]=function(...v){let R=S.get(this);if(i.get(R).formAssociated===!0)return m?.call(this,...v);throw new DOMException(`Failed to execute ${m} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class _ extends Array{constructor(N){super(...N),this._elements=N}get value(){return this._elements.find(N=>N.checked===!0)?.value||""}}class L{constructor(N){let m=new Map;N.forEach((v,R)=>{let k=v.getAttribute("name"),F=m.get(k)||[];this[+R]=v,F.push(v),m.set(k,F)}),this.length=N.length,m.forEach((v,R)=>{v&&(v.length===1?this[R]=v[0]:this[R]=new _(v))})}namedItem(N){return this[N]}}let D=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let U=D.get.call(this,[]),N=[];for(let m of U){let v=i.get(m);(!v||v.formAssociated===!0)&&N.push(m)}return new L(N)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(t,o,i)=>{if(o!==null)try{e.bind(window.customElements)(t,o,i)}catch(a){console.info(t,o,i,a)}}}var Eo={};M(Eo,{CSSResult:()=>at,LitElement:()=>ge,ReactiveElement:()=>se,_$LE:()=>kc,_$LH:()=>_c,adoptStyles:()=>mr,css:()=>j,defaultConverter:()=>gr,getCompatibleStyle:()=>_t,html:()=>ct,isServer:()=>wu,noChange:()=>Ee,notEqual:()=>bo,nothing:()=>H,render:()=>wo,supportsAdoptingStyleSheets:()=>Nt,svg:()=>Ic,unsafeCSS:()=>It});var tr=globalThis,or=tr.ShadowRoot&&(tr.ShadyCSS===void 0||tr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ai=Symbol(),ii=new WeakMap,rr=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==ai)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(or&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=ii.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&ii.set(t,e))}return e}toString(){return this.cssText}},si=r=>new rr(typeof r=="string"?r:r+"",void 0,ai);var fo=(r,e)=>{if(or)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let o=document.createElement("style"),i=tr.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=t.cssText,r.appendChild(o)}},nr=or?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return si(t)})(r):r;var{is:dc,defineProperty:uc,getOwnPropertyDescriptor:fc,getOwnPropertyNames:pc,getOwnPropertySymbols:hc,getPrototypeOf:mc}=Object,ir=globalThis,ci=ir.trustedTypes,gc=ci?ci.emptyScript:"",yc=ir.reactiveElementPolyfillSupport,Ot=(r,e)=>r,wt={toAttribute(r,e){switch(e){case Boolean:r=r?gc: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}},ar=(r,e)=>!dc(r,e),li={attribute:!0,type:String,converter:wt,reflect:!1,hasChanged:ar};Symbol.metadata??=Symbol("metadata"),ir.litPropertyMetadata??=new WeakMap;var Be=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=li){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),i=this.getPropertyDescriptor(e,o,t);i!==void 0&&uc(this.prototype,e,i)}}static getPropertyDescriptor(e,t,o){let{get:i,set:a}=fc(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get(){return i?.call(this)},set(s){let l=i?.call(this);a.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??li}static _$Ei(){if(this.hasOwnProperty(Ot("elementProperties")))return;let e=mc(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Ot("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ot("properties"))){let t=this.properties,o=[...pc(t),...hc(t)];for(let i of o)this.createProperty(i,t[i])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,i]of t)this.elementProperties.set(o,i)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let i=this._$Eu(t,o);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let i of o)t.unshift(nr(i))}else e!==void 0&&t.push(nr(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$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 o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return fo(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,o){this._$AK(e,o)}_$EO(e,t){let o=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,o);if(i!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:wt).toAttribute(t,o.type);this._$Em=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,t){let o=this.constructor,i=o._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let a=o.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:wt;this._$Em=i,this[i]=s.fromAttribute(t,a.type),this._$Em=null}}requestUpdate(e,t,o,i=!1,a){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??ar)(i?a:this[e],t))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,t,o){this._$AL.has(e)||this._$AL.set(e,t),o.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 o=this.constructor.elementProperties;if(o.size>0)for(let[i,a]of o)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(o=>o.hostUpdate?.()),this.update(t)):this._$ET()}catch(o){throw e=!1,this._$ET(),o}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){}};Be.elementStyles=[],Be.shadowRootOptions={mode:"open"},Be[Ot("elementProperties")]=new Map,Be[Ot("finalized")]=new Map,yc?.({ReactiveElement:Be}),(ir.reactiveElementVersions??=[]).push("2.0.2");var ho=globalThis,sr=ho.trustedTypes,di=sr?sr.createPolicy("lit-html",{createHTML:r=>r}):void 0,mo="$lit$",he=`lit$${(Math.random()+"").slice(9)}$`,go="?"+he,bc=`<${go}>`,ze=document,cr=()=>ze.createComment(""),Ct=r=>r===null||typeof r!="object"&&typeof r!="function",gi=Array.isArray,yi=r=>gi(r)||typeof r?.[Symbol.iterator]=="function",po=`[
3
+ \f\r]`,Et=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ui=/-->/g,fi=/>/g,We=RegExp(`>|${po}(?:([^\\s"'>=/]+)(${po}*=${po}*(?:[^
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),pi=/'/g,hi=/"/g,bi=/^(?:script|style|textarea|title)$/i,vi=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),du=vi(1),uu=vi(2),J=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),mi=new WeakMap,He=ze.createTreeWalker(ze,129);function xi(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return di!==void 0?di.createHTML(e):e}var Si=(r,e)=>{let t=r.length-1,o=[],i,a=e===2?"<svg>":"",s=Et;for(let l=0;l<t;l++){let c=r[l],u,h,f=-1,g=0;for(;g<c.length&&(s.lastIndex=g,h=s.exec(c),h!==null);)g=s.lastIndex,s===Et?h[1]==="!--"?s=ui:h[1]!==void 0?s=fi:h[2]!==void 0?(bi.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=We):h[3]!==void 0&&(s=We):s===We?h[0]===">"?(s=i??Et,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,u=h[1],s=h[3]===void 0?We:h[3]==='"'?hi:pi):s===hi||s===pi?s=We:s===ui||s===fi?s=Et:(s=We,i=void 0);let y=s===We&&r[l+1].startsWith("/>")?" ":"";a+=s===Et?c+bc:f>=0?(o.push(u),c.slice(0,f)+mo+c.slice(f)+he+y):c+he+(f===-2?l:y)}return[xi(r,a+(r[t]||"<?>")+(e===2?"</svg>":"")),o]},At=class r{constructor({strings:e,_$litType$:t},o){let i;this.parts=[];let a=0,s=0,l=e.length-1,c=this.parts,[u,h]=Si(e,t);if(this.el=r.createElement(u,o),He.currentNode=this.el.content,t===2){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(i=He.nextNode())!==null&&c.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(let f of i.getAttributeNames())if(f.endsWith(mo)){let g=h[s++],y=i.getAttribute(f).split(he),b=/([.?@])?(.*)/.exec(g);c.push({type:1,index:a,name:b[2],strings:y,ctor:b[1]==="."?dr:b[1]==="?"?ur:b[1]==="@"?fr:Ke}),i.removeAttribute(f)}else f.startsWith(he)&&(c.push({type:6,index:a}),i.removeAttribute(f));if(bi.test(i.tagName)){let f=i.textContent.split(he),g=f.length-1;if(g>0){i.textContent=sr?sr.emptyScript:"";for(let y=0;y<g;y++)i.append(f[y],cr()),He.nextNode(),c.push({type:2,index:++a});i.append(f[g],cr())}}}else if(i.nodeType===8)if(i.data===go)c.push({type:2,index:a});else{let f=-1;for(;(f=i.data.indexOf(he,f+1))!==-1;)c.push({type:7,index:a}),f+=he.length-1}a++}}static createElement(e,t){let o=ze.createElement("template");return o.innerHTML=e,o}};function je(r,e,t=r,o){if(e===J)return e;let i=o!==void 0?t._$Co?.[o]:t._$Cl,a=Ct(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,o)),o!==void 0?(t._$Co??=[])[o]=i:t._$Cl=i),i!==void 0&&(e=je(r,i._$AS(r,e.values),i,o)),e}var lr=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:o}=this._$AD,i=(e?.creationScope??ze).importNode(t,!0);He.currentNode=i;let a=He.nextNode(),s=0,l=0,c=o[0];for(;c!==void 0;){if(s===c.index){let u;c.type===2?u=new Rt(a,a.nextSibling,this,e):c.type===1?u=new c.ctor(a,c.name,c.strings,this,e):c.type===6&&(u=new pr(a,this,e)),this._$AV.push(u),c=o[++l]}s!==c?.index&&(a=He.nextNode(),s++)}return He.currentNode=ze,i}p(e){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},Rt=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,i){this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,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=je(this,e,t),Ct(e)?e===W||e==null||e===""?(this._$AH!==W&&this._$AR(),this._$AH=W):e!==this._$AH&&e!==J&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):yi(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!==W&&Ct(this._$AH)?this._$AA.nextSibling.data=e:this.$(ze.createTextNode(e)),this._$AH=e}g(e){let{values:t,_$litType$:o}=e,i=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=At.createElement(xi(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(t);else{let a=new lr(i,this),s=a.u(this.options);a.p(t),this.$(s),this._$AH=a}}_$AC(e){let t=mi.get(e.strings);return t===void 0&&mi.set(e.strings,t=new At(e)),t}T(e){gi(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,i=0;for(let a of e)i===t.length?t.push(o=new r(this.k(cr()),this.k(cr()),this,this.options)):o=t[i],o._$AI(a),i++;i<t.length&&(this._$AR(o&&o._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Ke=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,i,a){this.type=1,this._$AH=W,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=W}_$AI(e,t=this,o,i){let a=this.strings,s=!1;if(a===void 0)e=je(this,e,t,0),s=!Ct(e)||e!==this._$AH&&e!==J,s&&(this._$AH=e);else{let l=e,c,u;for(e=a[0],c=0;c<a.length-1;c++)u=je(this,l[o+c],t,c),u===J&&(u=this._$AH[c]),s||=!Ct(u)||u!==this._$AH[c],u===W?e=W:e!==W&&(e+=(u??"")+a[c+1]),this._$AH[c]=u}s&&!i&&this.O(e)}O(e){e===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},dr=class extends Ke{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===W?void 0:e}},ur=class extends Ke{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==W)}},fr=class extends Ke{constructor(e,t,o,i,a){super(e,t,o,i,a),this.type=5}_$AI(e,t=this){if((e=je(this,e,t,0)??W)===J)return;let o=this._$AH,i=e===W&&o!==W||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==W&&(o===W||i);i&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},pr=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){je(this,e)}},Oi={j:mo,P:he,A:go,C:1,M:Si,L:lr,R:yi,V:je,D:Rt,I:Ke,H:ur,N:fr,U:dr,B:pr},vc=ho.litHtmlPolyfillSupport;vc?.(At,Rt),(ho.litHtmlVersions??=[]).push("3.1.0");var hr=globalThis,Nt=hr.ShadowRoot&&(hr.ShadyCSS===void 0||hr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,yo=Symbol(),wi=new WeakMap,at=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==yo)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(Nt&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=wi.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&wi.set(t,e))}return e}toString(){return this.cssText}},It=r=>new at(typeof r=="string"?r:r+"",void 0,yo),j=(r,...e)=>{let t=r.length===1?r[0]:e.reduce((o,i,a)=>o+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+r[a+1],r[0]);return new at(t,r,yo)},mr=(r,e)=>{if(Nt)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let o=document.createElement("style"),i=hr.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=t.cssText,r.appendChild(o)}},_t=Nt?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return It(t)})(r):r;var{is:xc,defineProperty:Sc,getOwnPropertyDescriptor:Oc,getOwnPropertyNames:wc,getOwnPropertySymbols:Ec,getPrototypeOf:Cc}=Object,yr=globalThis,Ei=yr.trustedTypes,Ac=Ei?Ei.emptyScript:"",Rc=yr.reactiveElementPolyfillSupport,Tt=(r,e)=>r,gr={toAttribute(r,e){switch(e){case Boolean:r=r?Ac: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)=>!xc(r,e),Ci={attribute:!0,type:String,converter:gr,reflect:!1,hasChanged:bo};Symbol.metadata??=Symbol("metadata"),yr.litPropertyMetadata??=new WeakMap;var se=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=Ci){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),i=this.getPropertyDescriptor(e,o,t);i!==void 0&&Sc(this.prototype,e,i)}}static getPropertyDescriptor(e,t,o){let{get:i,set:a}=Oc(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get(){return i?.call(this)},set(s){let l=i?.call(this);a.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Ci}static _$Ei(){if(this.hasOwnProperty(Tt("elementProperties")))return;let e=Cc(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Tt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Tt("properties"))){let t=this.properties,o=[...wc(t),...Ec(t)];for(let i of o)this.createProperty(i,t[i])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,i]of t)this.elementProperties.set(o,i)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let i=this._$Eu(t,o);i!==void 0&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let i of o)t.unshift(_t(i))}else e!==void 0&&t.push(_t(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$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 o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return mr(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,o){this._$AK(e,o)}_$EO(e,t){let o=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,o);if(i!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:gr).toAttribute(t,o.type);this._$Em=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,t){let o=this.constructor,i=o._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let a=o.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:gr;this._$Em=i,this[i]=s.fromAttribute(t,a.type),this._$Em=null}}requestUpdate(e,t,o,i=!1,a){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??bo)(i?a:this[e],t))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,t,o){this._$AL.has(e)||this._$AL.set(e,t),o.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 o=this.constructor.elementProperties;if(o.size>0)for(let[i,a]of o)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(o=>o.hostUpdate?.()),this.update(t)):this._$ET()}catch(o){throw e=!1,this._$ET(),o}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){}};se.elementStyles=[],se.shadowRootOptions={mode:"open"},se[Tt("elementProperties")]=new Map,se[Tt("finalized")]=new Map,Rc?.({ReactiveElement:se}),(yr.reactiveElementVersions??=[]).push("2.0.2");var xo=globalThis,br=xo.trustedTypes,Ai=br?br.createPolicy("lit-html",{createHTML:r=>r}):void 0,So="$lit$",me=`lit$${(Math.random()+"").slice(9)}$`,Oo="?"+me,Nc=`<${Oo}>`,Ze=document,kt=()=>Ze.createComment(""),Lt=r=>r===null||typeof r!="object"&&typeof r!="function",Pi=Array.isArray,ki=r=>Pi(r)||typeof r?.[Symbol.iterator]=="function",vo=`[
5
+ \f\r]`,Pt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ri=/-->/g,Ni=/>/g,Ve=RegExp(`>|${vo}(?:([^\\s"'>=/]+)(${vo}*=${vo}*(?:[^
6
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ii=/'/g,_i=/"/g,Li=/^(?:script|style|textarea|title)$/i,Ui=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),ct=Ui(1),Ic=Ui(2),Ee=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),Ti=new WeakMap,Ge=Ze.createTreeWalker(Ze,129);function Mi(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ai!==void 0?Ai.createHTML(e):e}var Di=(r,e)=>{let t=r.length-1,o=[],i,a=e===2?"<svg>":"",s=Pt;for(let l=0;l<t;l++){let c=r[l],u,h,f=-1,g=0;for(;g<c.length&&(s.lastIndex=g,h=s.exec(c),h!==null);)g=s.lastIndex,s===Pt?h[1]==="!--"?s=Ri:h[1]!==void 0?s=Ni:h[2]!==void 0?(Li.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=Ve):h[3]!==void 0&&(s=Ve):s===Ve?h[0]===">"?(s=i??Pt,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,u=h[1],s=h[3]===void 0?Ve:h[3]==='"'?_i:Ii):s===_i||s===Ii?s=Ve:s===Ri||s===Ni?s=Pt:(s=Ve,i=void 0);let y=s===Ve&&r[l+1].startsWith("/>")?" ":"";a+=s===Pt?c+Nc:f>=0?(o.push(u),c.slice(0,f)+So+c.slice(f)+me+y):c+me+(f===-2?l:y)}return[Mi(r,a+(r[t]||"<?>")+(e===2?"</svg>":"")),o]},Ut=class r{constructor({strings:e,_$litType$:t},o){let i;this.parts=[];let a=0,s=0,l=e.length-1,c=this.parts,[u,h]=Di(e,t);if(this.el=r.createElement(u,o),Ge.currentNode=this.el.content,t===2){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(i=Ge.nextNode())!==null&&c.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(let f of i.getAttributeNames())if(f.endsWith(So)){let g=h[s++],y=i.getAttribute(f).split(me),b=/([.?@])?(.*)/.exec(g);c.push({type:1,index:a,name:b[2],strings:y,ctor:b[1]==="."?xr:b[1]==="?"?Sr:b[1]==="@"?Or:Ye}),i.removeAttribute(f)}else f.startsWith(me)&&(c.push({type:6,index:a}),i.removeAttribute(f));if(Li.test(i.tagName)){let f=i.textContent.split(me),g=f.length-1;if(g>0){i.textContent=br?br.emptyScript:"";for(let y=0;y<g;y++)i.append(f[y],kt()),Ge.nextNode(),c.push({type:2,index:++a});i.append(f[g],kt())}}}else if(i.nodeType===8)if(i.data===Oo)c.push({type:2,index:a});else{let f=-1;for(;(f=i.data.indexOf(me,f+1))!==-1;)c.push({type:7,index:a}),f+=me.length-1}a++}}static createElement(e,t){let o=Ze.createElement("template");return o.innerHTML=e,o}};function qe(r,e,t=r,o){if(e===Ee)return e;let i=o!==void 0?t._$Co?.[o]:t._$Cl,a=Lt(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,o)),o!==void 0?(t._$Co??=[])[o]=i:t._$Cl=i),i!==void 0&&(e=qe(r,i._$AS(r,e.values),i,o)),e}var vr=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:o}=this._$AD,i=(e?.creationScope??Ze).importNode(t,!0);Ge.currentNode=i;let a=Ge.nextNode(),s=0,l=0,c=o[0];for(;c!==void 0;){if(s===c.index){let u;c.type===2?u=new st(a,a.nextSibling,this,e):c.type===1?u=new c.ctor(a,c.name,c.strings,this,e):c.type===6&&(u=new wr(a,this,e)),this._$AV.push(u),c=o[++l]}s!==c?.index&&(a=Ge.nextNode(),s++)}return Ge.currentNode=Ze,i}p(e){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},st=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,i){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,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),Lt(e)?e===H||e==null||e===""?(this._$AH!==H&&this._$AR(),this._$AH=H):e!==this._$AH&&e!==Ee&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):ki(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&&Lt(this._$AH)?this._$AA.nextSibling.data=e:this.$(Ze.createTextNode(e)),this._$AH=e}g(e){let{values:t,_$litType$:o}=e,i=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Ut.createElement(Mi(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(t);else{let a=new vr(i,this),s=a.u(this.options);a.p(t),this.$(s),this._$AH=a}}_$AC(e){let t=Ti.get(e.strings);return t===void 0&&Ti.set(e.strings,t=new Ut(e)),t}T(e){Pi(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,i=0;for(let a of e)i===t.length?t.push(o=new r(this.k(kt()),this.k(kt()),this,this.options)):o=t[i],o._$AI(a),i++;i<t.length&&(this._$AR(o&&o._$AB.nextSibling,i),t.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}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,o,i,a){this.type=1,this._$AH=H,this._$AN=void 0,this.element=e,this.name=t,this._$AM=i,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=H}_$AI(e,t=this,o,i){let a=this.strings,s=!1;if(a===void 0)e=qe(this,e,t,0),s=!Lt(e)||e!==this._$AH&&e!==Ee,s&&(this._$AH=e);else{let l=e,c,u;for(e=a[0],c=0;c<a.length-1;c++)u=qe(this,l[o+c],t,c),u===Ee&&(u=this._$AH[c]),s||=!Lt(u)||u!==this._$AH[c],u===H?e=H:e!==H&&(e+=(u??"")+a[c+1]),this._$AH[c]=u}s&&!i&&this.O(e)}O(e){e===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},xr=class extends Ye{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===H?void 0:e}},Sr=class extends Ye{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==H)}},Or=class extends Ye{constructor(e,t,o,i,a){super(e,t,o,i,a),this.type=5}_$AI(e,t=this){if((e=qe(this,e,t,0)??H)===Ee)return;let o=this._$AH,i=e===H&&o!==H||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==H&&(o===H||i);i&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},wr=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){qe(this,e)}},_c={j:So,P:me,A:Oo,C:1,M:Di,L:vr,R:ki,V:qe,D:st,I:Ye,H:Sr,N:Or,U:xr,B:wr},Tc=xo.litHtmlPolyfillSupport;Tc?.(Ut,st),(xo.litHtmlVersions??=[]).push("3.1.0");var wo=(r,e,t)=>{let o=t?.renderBefore??e,i=o._$litPart$;if(i===void 0){let a=t?.renderBefore??null;o._$litPart$=i=new st(e.insertBefore(kt(),a),a,void 0,t??{})}return i._$AI(r),i};var ge=class extends se{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=wo(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ee}};ge._$litElement$=!0,ge.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ge});var Pc=globalThis.litElementPolyfillSupport;Pc?.({LitElement:ge});var kc={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var wu=!1;var Ao={};M(Ao,{customElement:()=>Lc,eventOptions:()=>Mc,property:()=>T,query:()=>Dc,queryAll:()=>$c,queryAssignedElements:()=>Wc,queryAssignedNodes:()=>Hc,queryAsync:()=>Bc,standardProperty:()=>Fi,state:()=>Co});var Lc=r=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(r,e)}):customElements.define(r,e)};var Uc={attribute:!0,type:String,converter:wt,reflect:!1,hasChanged:ar},Fi=(r=Uc,e,t)=>{let{kind:o,metadata:i}=t,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),a.set(t.name,r),o==="accessor"){let{name:s}=t;return{set(l){let c=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,c,r)},init(l){return l!==void 0&&this.C(s,void 0,r),l}}}if(o==="setter"){let{name:s}=t;return function(l){let c=this[s];e.call(this,l),this.requestUpdate(s,c,r)}}throw Error("Unsupported decorator location: "+o)};function T(r){return(e,t)=>typeof t=="object"?Fi(r,e,t):((o,i,a)=>{let s=i.hasOwnProperty(a);return i.constructor.createProperty(a,s?{...o,wrapped:!0}:o),s?Object.getOwnPropertyDescriptor(i,a):void 0})(r,e,t)}function Co(r){return T({...r,state:!0,attribute:!1})}function Mc(r){return(e,t)=>{let o=typeof e=="function"?e:e[t];Object.assign(o,r)}}var oe=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t);function Dc(r,e){return(t,o,i)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(e){let{get:s,set:l}=typeof o=="object"?t:i??(()=>{let c=Symbol();return{get(){return this[c]},set(u){this[c]=u}}})();return oe(t,o,{get(){let c=s.call(this);return c===void 0&&(c=a(this),(c!==null||this.hasUpdated)&&l.call(this,c)),c}})}return oe(t,o,{get(){return a(this)}})}}var Fc;function $c(r){return(e,t)=>oe(e,t,{get(){return(this.renderRoot??(Fc??=document.createDocumentFragment())).querySelectorAll(r)}})}function Bc(r){return(e,t)=>oe(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function Wc(r){return(e,t)=>{let{slot:o,selector:i}=r??{},a="slot"+(o?`[name=${o}]`:":not([name])");return oe(e,t,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return i===void 0?l:l.filter(c=>c.matches(i))}})}}function Hc(r){return(e,t)=>{let{slot:o}=r??{},i="slot"+(o?`[name=${o}]`:":not([name])");return oe(e,t,{get(){return this.renderRoot?.querySelector(i)?.assignedNodes(r)??[]}})}}var Ro={};M(Ro,{repeat:()=>Kc});var Ce={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ae=r=>(...e)=>({_$litDirective$:r,values:e}),ce=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var{D:zc}=Oi;var $i=()=>document.createComment(""),lt=(r,e,t)=>{let o=r._$AA.parentNode,i=e===void 0?r._$AB:e._$AA;if(t===void 0){let a=o.insertBefore($i(),i),s=o.insertBefore($i(),i);t=new zc(a,s,r,r.options)}else{let a=t._$AB.nextSibling,s=t._$AM,l=s!==r;if(l){let c;t._$AQ?.(r),t._$AM=r,t._$AP!==void 0&&(c=r._$AU)!==s._$AU&&t._$AP(c)}if(a!==i||l){let c=t._$AA;for(;c!==a;){let u=c.nextSibling;o.insertBefore(c,i),c=u}}}return t},Re=(r,e,t=r)=>(r._$AI(e,t),r),jc={},Bi=(r,e=jc)=>r._$AH=e,Wi=r=>r._$AH,Er=r=>{r._$AP?.(!1,!0);let e=r._$AA,t=r._$AB.nextSibling;for(;e!==t;){let o=e.nextSibling;e.remove(),e=o}};var Hi=(r,e,t)=>{let o=new Map;for(let i=e;i<=t;i++)o.set(r[i],i);return o},Kc=Ae(class extends ce{constructor(r){if(super(r),r.type!==Ce.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,e,t){let o;t===void 0?t=e:e!==void 0&&(o=e);let i=[],a=[],s=0;for(let l of r)i[s]=o?o(l,s):s,a[s]=t(l,s),s++;return{values:a,keys:i}}render(r,e,t){return this.ht(r,e,t).values}update(r,[e,t,o]){let i=Wi(r),{values:a,keys:s}=this.ht(e,t,o);if(!Array.isArray(i))return this.dt=s,a;let l=this.dt??=[],c=[],u,h,f=0,g=i.length-1,y=0,b=a.length-1;for(;f<=g&&y<=b;)if(i[f]===null)f++;else if(i[g]===null)g--;else if(l[f]===s[y])c[y]=Re(i[f],a[y]),f++,y++;else if(l[g]===s[b])c[b]=Re(i[g],a[b]),g--,b--;else if(l[f]===s[b])c[b]=Re(i[f],a[b]),lt(r,c[b+1],i[f]),f++,b--;else if(l[g]===s[y])c[y]=Re(i[g],a[y]),lt(r,i[f],i[g]),g--,y++;else if(u===void 0&&(u=Hi(s,y,b),h=Hi(l,f,g)),u.has(l[f]))if(u.has(l[g])){let O=h.get(s[y]),C=O!==void 0?i[O]:null;if(C===null){let E=lt(r,i[f]);Re(E,a[y]),c[y]=E}else c[y]=Re(C,a[y]),lt(r,i[f],C),i[O]=null;y++}else Er(i[g]),g--;else Er(i[f]),f++;for(;y<=b;){let O=lt(r,c[b+1]);Re(O,a[y]),c[y++]=O}for(;f<=g;){let O=i[f++];O!==null&&Er(O)}return this.dt=s,Bi(r,c),J}});var No={};M(No,{classMap:()=>Vc});var Vc=Ae(class extends ce{constructor(r){if(super(r),r.type!==Ce.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(o=>o!=="")));for(let o in e)e[o]&&!this.st?.has(o)&&this.it.add(o);return this.render(e)}let t=r.element.classList;for(let o of this.it)o in e||(t.remove(o),this.it.delete(o));for(let o in e){let i=!!e[o];i===this.it.has(o)||this.st?.has(o)||(i?(t.add(o),this.it.add(o)):(t.remove(o),this.it.delete(o)))}return J}});var Io={};M(Io,{styleMap:()=>Zc});var zi="important",Gc=" !"+zi,Zc=Ae(class extends ce{constructor(r){if(super(r),r.type!==Ce.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 o=r[t];return o==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}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 o of this.ut)e[o]==null&&(this.ut.delete(o),o.includes("-")?t.removeProperty(o):t[o]=null);for(let o in e){let i=e[o];if(i!=null){this.ut.add(o);let a=typeof i=="string"&&i.endsWith(Gc);o.includes("-")||a?t.setProperty(o,a?i.slice(0,-11):i,a?zi:""):t[o]=i}}return J}});var _o={};M(_o,{UnsafeHTMLDirective:()=>dt,unsafeHTML:()=>qc});var dt=class extends ce{constructor(e){if(super(e),this.et=W,e.type!==Ce.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===W||e==null)return this.vt=void 0,this.et=e;if(e===J)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:[]}}};dt.directiveName="unsafeHTML",dt.resultType=1;var qc=Ae(dt);var ko={};M(ko,{CacheRegistry:()=>le});var Po={};M(Po,{CancelablePromise:()=>ut,CanceledPromiseError:()=>Je,cancelable:()=>To});var Je=class extends Error{constructor(e,t,o){super(e),this.canceledPromiseResult=t,this.canceledPromiseError=o}},ut=class extends Promise{constructor(e){super((t,o)=>e(i=>{this.isCanceled?o(new Je("Promise has been canceled",i)):t(i)},i=>{this.isCanceled?o(new Je("Promise has been canceled",void 0,i)):o(i)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},To=r=>new ut((e,t)=>r.then(e).catch(t));var le=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 ut&&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,o){if(this.content[e]===void 0){if(t=t??this.loaders[e],t==null)throw new Error("Unknown cache key "+e);let i=To(t());return this.content[e]=i,i.then(a=>(this.content[e]=a,o!=null&&(this.clearClearTimeout(e),this.clearTimeouts[e]=window.setTimeout(()=>this.clear(e),o)),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 Lo={};M(Lo,{ClusteringHelper:()=>Mt});var Mt=class r{constructor(e,t,o,i){this.allResults=e,this.selectedResult=t,this.clusteringMetadata=o,this.metadataDescriptors=i}static extractResultMetadata(e,t){var o,i;let a=((i=(o=e?.map)!==null&&o!==void 0?o: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(o=>r.flattenMetadata(o)).filter(o=>o!=null);let t=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!t))if(t){let o=[],i=[];return e.hierarchicalValues.forEach(a=>{o.push(a.join(" > ")),a.length>2?i.push(`... > ${a[a.length-1]}`):i.push(a.join(" > "))}),{key:e.key,label:e.label,value:o.join(", "),displayValue:i.join(", ")}}else{let o=e.values.join(", ");return{key:e.key,label:e.label,value:o,displayValue:o}}}computeClustersItemsForMetadata(e,t,o="No value"){var i,a;let s=r.extractResultMetadata(this.selectedResult,e),l=(i=s?.label)!==null&&i!==void 0?i:(a=this.getMetadataDescriptor(e))===null||a===void 0?void 0:a.label;return this.allResults.map(u=>r.extractResultMetadata(u,e)).map(u=>u??{key:e,label:l,value:void 0,displayValue:o}).filter(u=>u.value!=s?.value).filter((u,h,f)=>f.findIndex(g=>g.value===u.value)===h).map(u=>({result:this.findBestResultForMetadataValue(e,u.value),metadata:u})).sort((u,h)=>this.compareMetadata(u.metadata.value,h.metadata.value,e,t))}compareMetadata(e,t,o,i){if(e==null)return-1;if(t==null)return 1;let a=this.getMetadataDescriptor(o),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let c=e.localeCompare(t,i,{numeric:!0});return l?c*-1:c}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(t=>e==t.key)}findBestResultForMetadataValue(e,t){let o=this.allResults.filter(c=>{var u;return((u=r.extractResultMetadata(c,e))===null||u===void 0?void 0:u.value)==t}),a=[...r.extractResultMetadata(this.selectedResult).filter(c=>this.clusteringMetadata.has(c.key)).filter(c=>c.key!==e)],s,l=-1;for(let c of o){let u=this.countMatchingMetadata(c,a);if(u>l&&(l=u,s=c,u===a.length))break}return s}countMatchingMetadata(e,t){return r.extractResultMetadata(e).filter(o=>t.some(i=>i.key===o.key&&i.value===o.value)).length}};var Uo={};M(Uo,{Debouncer:()=>X});var X=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,o)=>{this.resolvePromise=t,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,t;let o=[...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 o)try{await s()}catch(l){i(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var $o={};M($o,{customElement:()=>$t,isNumber:()=>Vi,jsonProperty:()=>Ne,optionalNumberProperty:()=>el});var Fo={};M(Fo,{dateReviver:()=>Yc,deepEqual:()=>ne,delay:()=>Cr,eventPathContainsMatchingElement:()=>Xc,flatDeep:()=>ji,hasChanged:()=>Ft,last:()=>Qc,minmax:()=>Do,parseDate:()=>Ki,waitFor:()=>Dt,waitUntil:()=>Mo});var Cr=r=>new Promise(e=>setTimeout(e,r));async function Mo(r,e=10,t=2e4){await Dt(async()=>await r()||void 0,e,t)}async function Dt(r,e=10,t=2e4){let o=await r(),i,a;for(i=a=performance.now();o==null&&(!t||a-i<t);)await Cr(e),o=await r(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function ji(r,e){return r.flatMap(t=>[t,...ji(e(t),e)])}function Yc(...r){return function(e,t){return r.includes(e)?Ki(t):t}}function Ki(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,o,i)=>t+o+":"+i),new Date(r)}function Jc(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,o,i;if(Array.isArray(r)){if(t=r.length,t!=e.length)return!1;for(o=t;o--!==0;)if(!ne(r[o],e[o]))return!1;return!0}if(r instanceof Map&&e instanceof Map){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[0]))return!1;for(o of r.entries())if(!ne(o[1],e.get(o[0])))return!1;return!0}if(r instanceof Set&&e instanceof Set){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[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(o=t;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[o]))return!1;for(o=t;o--!==0;){var a=i[o];if(!ne(r[a],e[a]))return!1}return!0}return r!==r&&e!==e}function ne(r,e){try{return Jc(r,e)}catch{return!1}}function Ft(r,e){return!ne(r,e)}function Xc(r,e,t=window.document.body){if(e.length>0){let o=r.composedPath();for(let i of o){if(i===t)return!1;if(i.matches&&e.some(a=>i.matches(a)))return!0}}return!1}function Do(r,e,t){return Math.min(Math.max(r,e),t)}function Qc(r){return r[r.length-1]}var $t=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)};function Ne(r,e){let t=()=>JSON.parse(JSON.stringify(r));return T({type:Object,converter:{fromAttribute:o=>{if(o==null)return t();try{return JSON.parse(o)}catch{return t()}},toAttribute:o=>JSON.stringify(o)},hasChanged:Ft,...e??{}})}function el(r){return T({type:Object,converter:{fromAttribute:e=>{if(e!=null)return Vi(e)?+e:void 0},toAttribute:e=>e==null?void 0:""+e},...r??{}})}function Vi(r){return!isNaN(parseFloat(r))}var zo={};M(zo,{designSystemVariables:()=>Nl});var Ho={};M(Ho,{DesignSystemFamily:()=>Bt,DesignSystemSize:()=>Wt,FtCssVariableFactory:()=>n,badge:()=>sl,banner:()=>al,breadcrumb:()=>cl,button:()=>ol,chart:()=>Sl,checkbox:()=>wl,chip:()=>nl,collapsible:()=>vl,comboboxMultiSelect:()=>yl,comboboxSingleSelect:()=>gl,drawer:()=>ul,floatingMenu:()=>ml,foundation:()=>d,link:()=>il,modal:()=>dl,notice:()=>Ol,notification:()=>Al,pageHeader:()=>ll,popover:()=>bl,radio:()=>Cl,resolveFamilyClass:()=>Bo,resolveSizeClass:()=>Wo,semantic:()=>p,setVariable:()=>Ar,switch_:()=>xl,tabs:()=>fl,textArea:()=>hl,textInput:()=>pl,toggle:()=>El,tooltip:()=>Rl,typographies:()=>tl,typographyBody1Medium:()=>Xi,typographyBody1Regular:()=>Ji,typographyBody1Semibold:()=>Qi,typographyBody2Medium:()=>ta,typographyBody2MediumUnderline:()=>ra,typographyBody2Regular:()=>ea,typographyBody2Semibold:()=>oa,typographyCaption1Bold:()=>fa,typographyCaption1Medium:()=>da,typographyCaption1Semibold:()=>ua,typographyCaption2Bold:()=>ma,typographyCaption2Medium:()=>pa,typographyCaption2Semibold:()=>ha,typographyCaption3Bold:()=>ba,typographyCaption3Medium:()=>ga,typographyCaption3Semibold:()=>ya,typographyDisplay:()=>Gi,typographyLabel1Bold:()=>aa,typographyLabel1Medium:()=>na,typographyLabel1Semibold:()=>ia,typographyLabel2Bold:()=>la,typographyLabel2Medium:()=>sa,typographyLabel2Semibold:()=>ca,typographyTitle1:()=>Zi,typographyTitle2:()=>qi,typographyTitle3:()=>Yi,typographyVariants:()=>rl});var ye=r=>typeof r=="string"?It(r):r,n=class{static create(e,t,o,i){let a=l=>ye(l??i),s=j`var(${ye(e)}, ${a(i)})`;return s.name=e,s.description=t,s.category=o,s.defaultValue=i,s.defaultCssValue=a,s.get=l=>j`var(${ye(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(e,t,o,i){let a=l=>o.get(l??i),s=j`var(${ye(e)}, ${a(i)})`;return s.name=e,s.description=t,s.category=o.category,s.fallbackVariable=o,s.defaultValue=i,s.defaultCssValue=a,s.get=l=>j`var(${ye(e)}, ${a(l)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>i??o.lastResortDefaultValue(),s}static external(e,t){let o=a=>e.fallbackVariable?e.fallbackVariable.get(a??e.defaultValue):ye(a??e.lastResortDefaultValue()),i=j`var(${ye(e.name)}, ${o(e.defaultValue)})`;return i.name=e.name,i.category=e.category,i.fallbackVariable=e.fallbackVariable,i.defaultValue=e.defaultValue,i.context=t,i.defaultCssValue=o,i.get=a=>j`var(${ye(e.name)}, ${o(a)})`,i.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>e.lastResortDefaultValue(),i}};function Ar(r,e){return ye(`${r.name}: ${e}`)}var d={colorWhite:n.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:n.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:n.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:n.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:n.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:n.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:n.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:n.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:n.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:n.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:n.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:n.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:n.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:n.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:n.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:n.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:n.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:n.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:n.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:n.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:n.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:n.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:n.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:n.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:n.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:n.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:n.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:n.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:n.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:n.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:n.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:n.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:n.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:n.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:n.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:n.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:n.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:n.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:n.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:n.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:n.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:n.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:n.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:n.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:n.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:n.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:n.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:n.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:n.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:n.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:n.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:n.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:n.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:n.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:n.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:n.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:n.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:n.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:n.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:n.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:n.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:n.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:n.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:n.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:n.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:n.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:n.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:n.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:n.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:n.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:n.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:n.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:n.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:n.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:n.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:n.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:n.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:n.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:n.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:n.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:n.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:n.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:n.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:n.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:n.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:n.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:n.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:n.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:n.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:n.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:n.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:n.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:n.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:n.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:n.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:n.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:n.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:n.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:n.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:n.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:n.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:n.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:n.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:n.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:n.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:n.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:n.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:n.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:n.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:n.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:n.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:n.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:n.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:n.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:n.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:n.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:n.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:n.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:n.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:n.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:n.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:n.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:n.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:n.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:n.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:n.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:n.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:n.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:n.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:n.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:n.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:n.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:n.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:n.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:n.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:n.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:n.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:n.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:n.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:n.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:n.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:n.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:n.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:n.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:n.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:n.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:n.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:n.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:n.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:n.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:n.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:n.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:n.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:n.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:n.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:n.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:n.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:n.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:n.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:n.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:n.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:n.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:n.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:n.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:n.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:n.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:n.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:n.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:n.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:n.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:n.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:n.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:n.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:n.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:n.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:n.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:n.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:n.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:n.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:n.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:n.create("--ft-opacity-0","","NUMBER","0"),opacity8:n.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:n.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:n.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:n.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:n.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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)")},Gi={fontFamily:n.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:n.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:n.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:n.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-display-textCase","","UNKNOWN","none")},Zi={fontFamily:n.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:n.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:n.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:n.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},qi={fontFamily:n.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:n.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:n.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:n.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},Yi={fontFamily:n.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:n.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:n.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:n.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Ji={fontFamily:n.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:n.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:n.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:n.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:n.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},Xi={fontFamily:n.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:n.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:n.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:n.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},Qi={fontFamily:n.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:n.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:n.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:n.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},ea={fontFamily:n.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:n.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:n.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:n.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:n.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},ta={fontFamily:n.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:n.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:n.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:n.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},ra={fontFamily:n.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:n.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:n.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:n.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:n.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:n.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},oa={fontFamily:n.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:n.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:n.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:n.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:n.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},na={fontFamily:n.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:n.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:n.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:n.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:n.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},ia={fontFamily:n.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:n.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:n.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:n.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:n.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},aa={fontFamily:n.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:n.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:n.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:n.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:n.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:n.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},sa={fontFamily:n.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:n.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:n.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:n.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:n.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},ca={fontFamily:n.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:n.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:n.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:n.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:n.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},la={fontFamily:n.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:n.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:n.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:n.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:n.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:n.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},da={fontFamily:n.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:n.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},ua={fontFamily:n.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:n.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},fa={fontFamily:n.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:n.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:n.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},pa={fontFamily:n.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:n.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},ha={fontFamily:n.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:n.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},ma={fontFamily:n.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:n.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:n.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},ga={fontFamily:n.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:n.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:n.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},ya={fontFamily:n.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:n.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:n.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},ba={fontFamily:n.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:n.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:n.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:n.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:n.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:n.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:n.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:n.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:n.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},tl={display:Gi,"title-1":Zi,"title-2":qi,"title-3":Yi,"body-1-regular":Ji,"body-1-medium":Xi,"body-1-semibold":Qi,"body-2-regular":ea,"body-2-medium":ta,"body-2-medium-underline":ra,"body-2-semibold":oa,"label-1-medium":na,"label-1-semibold":ia,"label-1-bold":aa,"label-2-medium":sa,"label-2-semibold":ca,"label-2-bold":la,"caption-1-medium":da,"caption-1-semibold":ua,"caption-1-bold":fa,"caption-2-medium":pa,"caption-2-semibold":ha,"caption-2-bold":ma,"caption-3-medium":ga,"caption-3-semibold":ya,"caption-3-bold":ba},rl=["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 p={backgroundActionPrimary:n.extend("--ft-background-action-primary","Used as backgorund of primary action components.",d.colorBrand0),backgroundErrorSubtle:n.extend("--ft-background-error-subtle","Used as background of subtle error components.",d.colorRed10),backgroundInfoSubtle:n.extend("--ft-background-info-subtle","Used as background of subtle information components.",d.colorCyan10),backgroundWarningSubtle:n.extend("--ft-background-warning-subtle","Used as background of subtle information components.",d.colorOrange10),backgroundSuccessSubtle:n.extend("--ft-background-success-subtle","Used as background of subtle success components.",d.colorGreen10),backgroundGlobalSurface:n.extend("--ft-background-global-surface","Used as app background.",d.colorWhite),backgroundGlobalOnSurface:n.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",d.colorGray10),backgroundGlobalOnSurfaceDark:n.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",d.colorGray30),contentActionPrimary:n.extend("--ft-content-action-primary","Used on label of primary action on light surface.",d.colorBrand0),contentWarningPrimary:n.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",d.colorOrange200),contentWarningIconOnly:n.extend("--ft-content-warning-icon-only","Used on warning status icons alone",d.colorOrange0),contentErrorPrimary:n.extend("--ft-content-error-primary","Used on label of error messages on light surface.",d.colorRed0),contentErrorIconOnly:n.extend("--ft-content-error-icon-only","Used on error status icons alone",d.colorRed70),contentInfoPrimary:n.extend("--ft-content-info-primary","Used on label of information messages on light surface.",d.colorCyan200),contentInfoIconOnly:n.extend("--ft-content-info-icon-only","Used on info status icons alone",d.colorCyan0),contentSuccessPrimary:n.extend("--ft-content-success-primary","Used on label of success messages on light surface.",d.colorGreen200),contentSuccessIconOnly:n.extend("--ft-content-success-icon-only","Used on success status icons alone",d.colorGreen0),contentGlobalPrimary:n.extend("--ft-content-global-primary","Used for main content on the page.",d.colorGray500),contentGlobalSecondary:n.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
7
+ Also for action icons.`,d.colorGray200),contentGlobalSubtle:n.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",d.colorGray0),contentGlobalOnColor:n.extend("--ft-content-global-on-color","Used for content on a dominant color.",d.colorWhite),borderActionPrimary:n.extend("--ft-border-action-primary","Used as border for primary action components.",d.colorBrand0),borderActionFocusRing:n.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",d.colorCyan0),borderWarningPrimary:n.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",d.colorOrange200),borderWarningSubtle:n.extend("--ft-border-warning-subtle","Used as border for warning components.",d.colorOrange30),borderSuccessPrimary:n.extend("--ft-border-success-primary","Used as border for success buttons.",d.colorGreen200),borderSuccessSubtle:n.extend("--ft-border-success-subtle","Used as border for success components.",d.colorGreen30),borderErrorPrimary:n.extend("--ft-border-error-primary","Used as border for text fields in error states.",d.colorRed0),borderErrorSubtle:n.extend("--ft-border-error-subtle","Used as border for error components.",d.colorRed30),borderInfoPrimary:n.extend("--ft-border-info-primary","Used as border for buttons in info color.",d.colorCyan200),borderInfoSubtle:n.extend("--ft-border-info-subtle","Used as border for information components.",d.colorCyan30),borderGlobalPrimary:n.extend("--ft-border-global-primary","Used as border for element like input.",d.colorGray50),borderGlobalSubtle:n.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",d.colorGray30),borderInputPrimary:n.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",d.colorGray80)};var ol={largeHeight:n.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:n.extend("--ft-button-large-horizontal-padding","",d.spacing4),largeGap:n.extend("--ft-button-large-gap","",d.spacing2),largeBorderRadius:n.extend("--ft-button-large-border-radius","",d.borderRadiusS),largeIconSize:n.extend("--ft-button-large-icon-size","",d.iconSize3),largeBorderWidth:n.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:n.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:n.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:n.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:n.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:n.extend("--ft-button-medium-horizontal-padding","",d.spacing3),mediumGap:n.extend("--ft-button-medium-gap","",d.spacing2),mediumBorderRadius:n.extend("--ft-button-medium-border-radius","",d.borderRadiusS),mediumIconSize:n.extend("--ft-button-medium-icon-size","",d.iconSize2),mediumBorderWidth:n.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:n.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:n.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:n.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:n.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:n.extend("--ft-button-small-horizontal-padding","",d.spacing2),smallGap:n.extend("--ft-button-small-gap","",d.spacing1),smallBorderRadius:n.extend("--ft-button-small-border-radius","",d.borderRadiusS),smallIconSize:n.extend("--ft-button-small-icon-size","",d.iconSize1),smallBorderWidth:n.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:n.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:n.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:n.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:n.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:n.extend("--ft-button-x-small-icon-size","",d.iconSize1),xSmallFocusOutlineOffset:n.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:n.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:n.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:n.extend("--ft-button-round-border-radius","",d.borderRadiusPill),primaryBackgroundColor:n.extend("--ft-button-primary-background-color","",p.backgroundActionPrimary),primaryColor:n.extend("--ft-button-primary-color","",p.contentGlobalOnColor),primaryIconColor:n.extend("--ft-button-primary-icon-color","",p.contentGlobalOnColor),primaryStateLayerColor:n.extend("--ft-button-primary-state-layer-color","",p.contentGlobalOnColor),primaryHoverStateLayerOpacity:n.extend("--ft-button-primary-hover-state-layer-opacity","",d.opacity16),primaryFocusStateLayerOpacity:n.extend("--ft-button-primary-focus-state-layer-opacity","",d.opacity16),primaryActiveStateLayerOpacity:n.extend("--ft-button-primary-active-state-layer-opacity","",d.opacity24),primaryDisabledComponentOpacity:n.extend("--ft-button-primary-disabled-component-opacity","",d.opacity40),focusFocusRingColor:n.extend("--ft-button-focus-focus-ring-color","",p.borderActionFocusRing),tertiaryBackgroundColor:n.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:n.extend("--ft-button-tertiary-color","",p.contentActionPrimary),tertiaryIconColor:n.extend("--ft-button-tertiary-icon-color","",p.contentActionPrimary),tertiaryStateLayerColor:n.extend("--ft-button-tertiary-state-layer-color","",p.contentActionPrimary),tertiaryHoverStateLayerOpacity:n.extend("--ft-button-tertiary-hover-state-layer-opacity","",d.opacity8),tertiaryFocusStateLayerOpacity:n.extend("--ft-button-tertiary-focus-state-layer-opacity","",d.opacity8),tertiaryActiveStateLayerOpacity:n.extend("--ft-button-tertiary-active-state-layer-opacity","",d.opacity16),tertiaryDisabledComponentOpacity:n.extend("--ft-button-tertiary-disabled-component-opacity","",d.opacity40),secondaryBackgroundColor:n.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:n.extend("--ft-button-secondary-color","",p.contentActionPrimary),secondaryIconColor:n.extend("--ft-button-secondary-icon-color","",p.contentActionPrimary),secondaryStateLayerColor:n.extend("--ft-button-secondary-state-layer-color","",p.contentActionPrimary),secondaryHoverStateLayerOpacity:n.extend("--ft-button-secondary-hover-state-layer-opacity","",d.opacity8),secondaryFocusStateLayerOpacity:n.extend("--ft-button-secondary-focus-state-layer-opacity","",d.opacity8),secondaryActiveStateLayerOpacity:n.extend("--ft-button-secondary-active-state-layer-opacity","",d.opacity16),secondaryDisabledComponentOpacity:n.extend("--ft-button-secondary-disabled-component-opacity","",d.opacity40),secondaryBorderColor:n.extend("--ft-button-secondary-border-color","",p.borderActionPrimary),neutralBackgroundColor:n.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:n.extend("--ft-button-neutral-icon-color","",p.contentGlobalSecondary),neutralColor:n.extend("--ft-button-neutral-color","",p.contentGlobalSecondary),neutralStateLayerColor:n.extend("--ft-button-neutral-state-layer-color","",p.contentGlobalSecondary),neutralHoverStateLayerOpacity:n.extend("--ft-button-neutral-hover-state-layer-opacity","",d.opacity8),neutralFocusStateLayerOpacity:n.extend("--ft-button-neutral-focus-state-layer-opacity","",d.opacity8),neutralActiveStateLayerOpacity:n.extend("--ft-button-neutral-active-state-layer-opacity","",d.opacity16),neutralDisabledComponentOpacity:n.extend("--ft-button-neutral-disabled-component-opacity","",d.opacity40)};var nl={largeMinHeight:n.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:n.extend("--ft-chip-large-horizontal-padding","",d.spacing3),largeButtonRightPadding:n.extend("--ft-chip-large-button-right-padding","",d.spacing1),largeGap:n.extend("--ft-chip-large-gap","",d.spacing1),largeFocusOutlineOffset:n.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:n.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:n.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:n.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:n.extend("--ft-chip-large-icon-size","",d.iconSize3),mediumMinHeight:n.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:n.extend("--ft-chip-medium-horizontal-padding","",d.spacing2),mediumButtonRightPadding:n.extend("--ft-chip-medium-button-right-padding","",d.spacing05),mediumGap:n.extend("--ft-chip-medium-gap","",d.spacing1),mediumFocusOutlineOffset:n.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:n.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:n.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:n.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:n.extend("--ft-chip-medium-icon-size","",d.iconSize2),smallMinHeight:n.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:n.extend("--ft-chip-small-horizontal-padding","",d.spacing1),smallButtonRightPadding:n.extend("--ft-chip-small-button-right-padding","",d.spacing05),smallGap:n.extend("--ft-chip-small-gap","",d.spacing1),smallFocusOutlineOffset:n.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:n.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:n.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:n.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:n.extend("--ft-chip-small-icon-size","",d.iconSize1),neutralBackgroundColor:n.extend("--ft-chip-neutral-background-color","",p.backgroundGlobalOnSurface),neutralColor:n.extend("--ft-chip-neutral-color","",p.contentGlobalSecondary),neutralIconColor:n.extend("--ft-chip-neutral-icon-color","",p.contentGlobalSecondary),neutralBorderColor:n.extend("--ft-chip-neutral-border-color","",p.borderGlobalSubtle),infoBackgroundColor:n.extend("--ft-chip-info-background-color","",p.backgroundInfoSubtle),infoColor:n.extend("--ft-chip-info-color","",p.contentInfoPrimary),infoIconColor:n.extend("--ft-chip-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:n.extend("--ft-chip-info-border-color","",p.borderInfoSubtle),successBackgroundColor:n.extend("--ft-chip-success-background-color","",p.backgroundSuccessSubtle),successColor:n.extend("--ft-chip-success-color","",p.contentSuccessPrimary),successIconColor:n.extend("--ft-chip-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:n.extend("--ft-chip-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:n.extend("--ft-chip-warning-background-color","",p.backgroundWarningSubtle),warningColor:n.extend("--ft-chip-warning-color","",p.contentWarningPrimary),warningIconColor:n.extend("--ft-chip-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:n.extend("--ft-chip-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:n.extend("--ft-chip-error-background-color","",p.backgroundErrorSubtle),errorColor:n.extend("--ft-chip-error-color","",p.contentErrorPrimary),errorIconColor:n.extend("--ft-chip-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:n.extend("--ft-chip-error-border-color","",p.borderErrorSubtle)};var il={focusOpacity:n.extend("--ft-link-focus-opacity","",d.opacity80),focusFocusRingColor:n.extend("--ft-link-focus-focus-ring-color","",p.borderActionFocusRing),brandColor:n.extend("--ft-link-brand-color","",p.contentActionPrimary),infoColor:n.extend("--ft-link-info-color","",p.contentInfoPrimary)};var al={iconSize:n.extend("--ft-banner-icon-size","",d.iconSize5),borderWidth:n.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:n.extend("--ft-banner-left-padding","",d.spacing6),rightPadding:n.extend("--ft-banner-right-padding","",d.spacing6),verticalPadding:n.extend("--ft-banner-vertical-padding","",d.spacing6),horizontalSideGap:n.extend("--ft-banner-horizontal-side-gap","",d.spacing6),horizontalMobileGap:n.extend("--ft-banner-horizontal-mobile-gap","",d.spacing4),verticalMobileGap:n.extend("--ft-banner-vertical-mobile-gap","",d.spacing6),horizontalMiddleGap:n.extend("--ft-banner-horizontal-middle-gap","",d.spacing20),infoBackgroundColor:n.extend("--ft-banner-info-background-color","",p.backgroundInfoSubtle),infoColor:n.extend("--ft-banner-info-color","",p.contentInfoPrimary),infoIconColor:n.extend("--ft-banner-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:n.extend("--ft-banner-info-border-color","",p.borderInfoSubtle)};var sl={horizontalPadding:n.extend("--ft-badge-horizontal-padding","",d.spacing1),verticalPadding:n.extend("--ft-badge-vertical-padding","",d.spacing1),borderRadius:n.extend("--ft-badge-border-radius","",d.borderRadiusPill),color:n.extend("--ft-badge-color","",p.contentGlobalOnColor),backgroundColor:n.extend("--ft-badge-background-color","",p.contentActionPrimary)};var cl={horizontalGap:n.extend("--ft-breadcrumb-horizontal-gap","",d.spacing1),verticalGap:n.extend("--ft-breadcrumb-vertical-gap","",d.spacing2),currentColor:n.extend("--ft-breadcrumb-current-color","",p.contentGlobalPrimary),previousNonClickableColor:n.extend("--ft-breadcrumb-previous-non-clickable-color","",p.contentGlobalSecondary),iconColor:n.extend("--ft-breadcrumb-icon-color","",p.contentGlobalSubtle)};var ll={horizontalPadding:n.extend("--ft-page-header-horizontal-padding","",d.spacing6),horizontalGap:n.extend("--ft-page-header-horizontal-gap","",d.spacing4),verticalGap:n.extend("--ft-page-header-vertical-gap","",d.spacing2),classicVerticalPadding:n.extend("--ft-page-header-classic-vertical-padding","",d.spacing6),multilineVerticalPadding:n.extend("--ft-page-header-multiline-vertical-padding","",d.spacing4),inlineVerticalPadding:n.extend("--ft-page-header-inline-vertical-padding","",d.spacing2),backgroundColor:n.extend("--ft-page-header-background-color","",d.colorWhite),bottomBorderColor:n.extend("--ft-page-header-bottom-border-color","",p.borderGlobalSubtle),titleColor:n.extend("--ft-page-header-title-color","",p.contentGlobalPrimary),subtitleColor:n.extend("--ft-page-header-subtitle-color","",p.contentGlobalSecondary)};var dl={smallContainerWidth:n.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:n.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:n.extend("--ft-modal-overlay-background-color","",d.colorGray700),overlayOpacity:n.extend("--ft-modal-overlay-opacity","",d.opacity40),shadow:n.extend("--ft-modal-shadow","",d.shadowElevation03),bodyBackgroundColor:n.extend("--ft-modal-body-background-color","",d.colorWhite),bodyColor:n.extend("--ft-modal-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:n.extend("--ft-modal-body-horizontal-padding","",d.spacing6),bodyVerticalPadding:n.extend("--ft-modal-body-vertical-padding","",d.spacing6),bodyVerticalGap:n.extend("--ft-modal-body-vertical-gap","",d.spacing6),containerMargin:n.extend("--ft-modal-container-margin","",d.spacing3),headerBackgroundColor:n.extend("--ft-modal-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:n.extend("--ft-modal-header-border-color","",p.borderGlobalSubtle),headerColor:n.extend("--ft-modal-header-color","",p.contentGlobalPrimary),headerTrailingIconColor:n.extend("--ft-modal-header-trailing-icon-color","",p.contentGlobalSecondary),headerVerticalPadding:n.extend("--ft-modal-header-vertical-padding","",d.spacing1),headerRightPadding:n.extend("--ft-modal-header-right-padding","",d.spacing1),headerLeftPadding:n.extend("--ft-modal-header-left-padding","",d.spacing6),headerGap:n.extend("--ft-modal-header-gap","",d.spacing2),headerBorderBottom:n.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:n.extend("--ft-modal-border-radius","",d.borderRadiusM)};var ul={overlayOpacity:n.extend("--ft-drawer-overlay-opacity","",d.opacity40),shadow:n.extend("--ft-drawer-shadow","",d.shadowElevation03),bodyColor:n.extend("--ft-drawer-body-color","",p.contentGlobalPrimary),bodyHorizontalPadding:n.extend("--ft-drawer-body-horizontal-padding","",d.spacing6),bodyVerticalPadding:n.extend("--ft-drawer-body-vertical-padding","",d.spacing6),bodyGap:n.extend("--ft-drawer-body-gap","",d.spacing6),bodyBackgroundColor:n.extend("--ft-drawer-body-background-color","",d.colorWhite),headerBackgroundColor:n.extend("--ft-drawer-header-background-color","",p.backgroundGlobalOnSurface),headerBorderColor:n.extend("--ft-drawer-header-border-color","",p.borderGlobalSubtle),headerColor:n.extend("--ft-drawer-header-color","",p.contentGlobalPrimary),headerTrailingIconColor:n.extend("--ft-drawer-header-trailing-icon-color","",p.contentGlobalSecondary),headerHeight:n.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:n.extend("--ft-drawer-header-horizontal-padding","",d.spacing2),headerBorderWidth:n.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:n.extend("--ft-drawer-header-gap","",d.spacing3),buttonsBarBackgroundColor:n.extend("--ft-drawer-buttons-bar-background-color","",p.backgroundGlobalOnSurface),buttonsBarBorderColor:n.extend("--ft-drawer-buttons-bar-border-color","",p.borderGlobalSubtle),buttonsBarColor:n.extend("--ft-drawer-buttons-bar-color","",p.contentGlobalPrimary),buttonsBarHorizontalPadding:n.extend("--ft-drawer-buttons-bar-horizontal-padding","",d.spacing4),buttonsBarVerticalPadding:n.extend("--ft-drawer-buttons-bar-vertical-padding","",d.spacing4),buttonsBarGap:n.extend("--ft-drawer-buttons-bar-gap","",d.spacing3),buttonsBarBorderWidth:n.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:n.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:n.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:n.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:n.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:n.extend("--ft-drawer-overlay-background-color","",d.colorGray700)};var fl={offBorderBottomWidth:n.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:n.extend("--ft-tabs-off-hover-state-layer-opacity","",d.opacity8),offDefaultStateLayerOpacity:n.extend("--ft-tabs-off-default-state-layer-opacity","",d.opacity0),offFocusStateLayerOpacity:n.extend("--ft-tabs-off-focus-state-layer-opacity","",d.opacity8),offDisabledComponentOpacity:n.extend("--ft-tabs-off-disabled-component-opacity","",d.opacity40),offColor:n.extend("--ft-tabs-off-color","",p.contentGlobalSubtle),offStateLayerColor:n.extend("--ft-tabs-off-state-layer-color","",p.contentGlobalSubtle),offBorderBottomColor:n.extend("--ft-tabs-off-border-bottom-color","",p.borderGlobalSubtle),activeTabIndicatorHeight:n.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:n.extend("--ft-tabs-top-left-border-radius","",d.borderRadiusS),topRightBorderRadius:n.extend("--ft-tabs-top-right-border-radius","",d.borderRadiusS),withLabelHorizontalPadding:n.extend("--ft-tabs-with-label-horizontal-padding","",d.spacing4),withLabelVerticalPadding:n.extend("--ft-tabs-with-label-vertical-padding","",d.spacing3),horizontalGap:n.extend("--ft-tabs-horizontal-gap","",d.spacing1),verticalGap:n.extend("--ft-tabs-vertical-gap","",d.spacing1),onHoverStateLayerOpacity:n.extend("--ft-tabs-on-hover-state-layer-opacity","",d.opacity16),onDefaultStateLayerOpacity:n.extend("--ft-tabs-on-default-state-layer-opacity","",d.opacity8),onFocusStateLayerOpacity:n.extend("--ft-tabs-on-focus-state-layer-opacity","",d.opacity16),onActiveStateLayerOpacity:n.extend("--ft-tabs-on-active-state-layer-opacity","",d.opacity24),onColor:n.extend("--ft-tabs-on-color","",p.contentActionPrimary),onStateLayerColor:n.extend("--ft-tabs-on-state-layer-color","",p.contentActionPrimary),onActiveTabIndicatorColor:n.extend("--ft-tabs-on-active-tab-indicator-color","",p.contentActionPrimary),iconOnlyHorizontalPadding:n.extend("--ft-tabs-icon-only-horizontal-padding","",d.spacing4),iconOnlyVerticalPadding:n.extend("--ft-tabs-icon-only-vertical-padding","",d.spacing4),alertTopPadding:n.extend("--ft-tabs-alert-top-padding","",d.spacing1),alertRightPadding:n.extend("--ft-tabs-alert-right-padding","",d.spacing05),focusOutlineWidth:n.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ft-tabs-focus-focus-ring-color","",p.borderActionFocusRing)};var pl={fieldHorizontalPadding:n.extend("--ft-text-input-field-horizontal-padding","",d.spacing4),fieldHorizontalGap:n.extend("--ft-text-input-field-horizontal-gap","",d.spacing3),fieldVerticalGap:n.extend("--ft-text-input-field-vertical-gap","",d.spacing05),fieldIconSize:n.extend("--ft-text-input-field-icon-size","",d.iconSize3),fieldHeight:n.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:n.extend("--ft-text-input-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:n.extend("--ft-text-input-helper-horizontal-gap","",d.spacing1),helperIconSize:n.extend("--ft-text-input-helper-icon-size","",d.iconSize2),borderRadius:n.extend("--ft-text-input-border-radius","",d.borderRadiusM),backgroundColor:n.extend("--ft-text-input-background-color","",d.colorWhite),contentValueColor:n.extend("--ft-text-input-content-value-color","",p.contentGlobalPrimary),trailingIconColor:n.extend("--ft-text-input-trailing-icon-color","",p.contentGlobalSubtle),labelColor:n.extend("--ft-text-input-label-color","",p.contentGlobalSubtle),defaultBorderColor:n.extend("--ft-text-input-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:n.extend("--ft-text-input-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:n.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:n.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:n.extend("--ft-text-input-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:n.extend("--ft-text-input-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:n.extend("--ft-text-input-error-helper-icon-color","",p.contentErrorIconOnly),warningBorderWidth:n.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:n.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ft-text-input-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:n.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:n.extend("--ft-text-input-disabled-component-opacity","",d.opacity40)};var hl={backgroundColor:n.extend("--ft-text-area-background-color","",d.colorWhite),contentValueColor:n.extend("--ft-text-area-content-value-color","",p.contentGlobalPrimary),labelColor:n.extend("--ft-text-area-label-color","",p.contentGlobalSubtle),defaultBorderColor:n.extend("--ft-text-area-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:n.extend("--ft-text-area-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:n.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:n.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:n.extend("--ft-text-area-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:n.extend("--ft-text-area-error-helper-text-color","",p.contentErrorPrimary),errorHelperIconColor:n.extend("--ft-text-area-error-helper-icon-color","",p.contentErrorIconOnly),focusFocusRingColor:n.extend("--ft-text-area-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:n.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:n.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:n.extend("--ft-text-area-disabled-component-opacity","",d.opacity40),fieldHorizontalLeftPadding:n.extend("--ft-text-area-field-horizontal-left-padding","",d.spacing4),fieldHorizontalGap:n.extend("--ft-text-area-field-horizontal-gap","",d.spacing3),fieldVerticalGap:n.extend("--ft-text-area-field-vertical-gap","",d.spacing05),fieldMinHeight:n.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:n.extend("--ft-text-area-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:n.extend("--ft-text-area-helper-horizontal-gap","",d.spacing1),helperIconSize:n.extend("--ft-text-area-helper-icon-size","",d.iconSize2),borderRadius:n.extend("--ft-text-area-border-radius","",d.borderRadiusM)};var ml={height:n.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:n.extend("--ft-floating-menu-horizontal-padding","",d.spacing4),offIconColor:n.extend("--ft-floating-menu-off-icon-color","",p.contentGlobalPrimary),offColor:n.extend("--ft-floating-menu-off-color","",p.contentGlobalPrimary),onColor:n.extend("--ft-floating-menu-on-color","",p.contentActionPrimary),onStateLayerColor:n.extend("--ft-floating-menu-on-state-layer-color","",p.contentActionPrimary),gap:n.extend("--ft-floating-menu-gap","",d.spacing3),focusFocusRingColor:n.extend("--ft-floating-menu-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:n.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:n.extend("--ft-floating-menu-focus-state-layer-opacity","",d.opacity8),hoverStateLayerOpacity:n.extend("--ft-floating-menu-hover-state-layer-opacity","",d.opacity8),activeStateLayerOpacity:n.extend("--ft-floating-menu-active-state-layer-opacity","",d.opacity16),disabledComponentOpacity:n.extend("--ft-floating-menu-disabled-component-opacity","",d.opacity40),iconSize:n.extend("--ft-floating-menu-icon-size","",d.iconSize3),backgroundColor:n.extend("--ft-floating-menu-background-color","",p.backgroundGlobalOnSurface),shadow:n.extend("--ft-floating-menu-shadow","",d.shadowElevation02)};var gl={fieldHorizontalPadding:n.extend("--ft-combobox-single-select-field-horizontal-padding","",d.spacing4),fieldHorizontalGap:n.extend("--ft-combobox-single-select-field-horizontal-gap","",d.spacing3),fieldVerticalGap:n.extend("--ft-combobox-single-select-field-vertical-gap","",d.spacing05),fieldIconSize:n.extend("--ft-combobox-single-select-field-icon-size","",d.iconSize3),fieldHeight:n.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:n.extend("--ft-combobox-single-select-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:n.extend("--ft-combobox-single-select-helper-horizontal-gap","",d.spacing1),helperVerticalGap:n.extend("--ft-combobox-single-select-helper-vertical-gap","",d.spacing1),helperIconSize:n.extend("--ft-combobox-single-select-helper-icon-size","",d.iconSize2),menuVerticalGap:n.extend("--ft-combobox-single-select-menu-vertical-gap","",d.spacing2),borderRadius:n.extend("--ft-combobox-single-select-border-radius","",d.borderRadiusM),backgroundColor:n.extend("--ft-combobox-single-select-background-color","",d.colorWhite),labelColor:n.extend("--ft-combobox-single-select-label-color","",p.contentGlobalSubtle),contentValueColor:n.extend("--ft-combobox-single-select-content-value-color","",p.contentGlobalPrimary),trailingIconColor:n.extend("--ft-combobox-single-select-trailing-icon-color","",p.contentGlobalSubtle),defaultBorderColor:n.extend("--ft-combobox-single-select-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:n.extend("--ft-combobox-single-select-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:n.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:n.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:n.extend("--ft-combobox-single-select-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:n.extend("--ft-combobox-single-select-error-helper-text-color","",p.contentErrorPrimary),warningBorderWidth:n.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:n.extend("--ft-combobox-single-select-warning-border-color","",p.borderWarningPrimary),warningHelperTextColor:n.extend("--ft-combobox-single-select-warning-helper-text-color","",p.contentWarningPrimary),warningHelperIconColor:n.extend("--ft-combobox-single-select-warning-helper-icon-color","",p.contentWarningIconOnly),focusOutlineWidth:n.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ft-combobox-single-select-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:n.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:n.extend("--ft-combobox-single-select-disabled-component-opacity","",d.opacity40)};var yl={backgroundColor:n.extend("--ft-combobox-multi-select-background-color","",d.colorWhite),labelColor:n.extend("--ft-combobox-multi-select-label-color","",p.contentGlobalSubtle),trailingIconColor:n.extend("--ft-combobox-multi-select-trailing-icon-color","",p.contentGlobalSubtle),defaultBorderColor:n.extend("--ft-combobox-multi-select-default-border-color","",p.borderInputPrimary),defaultHelperTextColor:n.extend("--ft-combobox-multi-select-default-helper-text-color","",p.contentGlobalSubtle),defaultBorderWidth:n.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:n.extend("--ft-combobox-multi-select-error-border-color","",p.borderErrorPrimary),errorHelperTextColor:n.extend("--ft-combobox-multi-select-error-helper-text-color","",p.contentErrorPrimary),errorHelperIcon:n.extend("--ft-combobox-multi-select-error-helper-icon","",p.contentErrorIconOnly),errorBorderWidth:n.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:n.extend("--ft-combobox-multi-select-warning-border-color","",p.borderWarningPrimary),warningHelperTextColor:n.extend("--ft-combobox-multi-select-warning-helper-text-color","",p.contentWarningPrimary),warningHelperIconColor:n.extend("--ft-combobox-multi-select-warning-helper-icon-color","",p.contentWarningIconOnly),warningBorderWidth:n.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ft-combobox-multi-select-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineWidth:n.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:n.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:n.extend("--ft-combobox-multi-select-disabled-component-opacity","",d.opacity40),helperHorizontalPadding:n.extend("--ft-combobox-multi-select-helper-horizontal-padding","",d.spacing4),helperHorizontalGap:n.extend("--ft-combobox-multi-select-helper-horizontal-gap","",d.spacing1),helperVerticalGap:n.extend("--ft-combobox-multi-select-helper-vertical-gap","",d.spacing1),helperIconSize:n.extend("--ft-combobox-multi-select-helper-icon-size","",d.iconSize2),fieldHorizontalPadding:n.extend("--ft-combobox-multi-select-field-horizontal-padding","",d.spacing4),fieldHorizontalGap:n.extend("--ft-combobox-multi-select-field-horizontal-gap","",d.spacing3),fieldVerticalGap:n.extend("--ft-combobox-multi-select-field-vertical-gap","",d.spacing05),fieldIconSize:n.extend("--ft-combobox-multi-select-field-icon-size","",d.iconSize3),fieldMaxHeight:n.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:n.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",d.spacing1),contentValuesVerticalGap:n.extend("--ft-combobox-multi-select-content-values-vertical-gap","",d.spacing1),borderRadius:n.extend("--ft-combobox-multi-select-border-radius","",d.borderRadiusM)};var bl={backgroundColor:n.extend("--ft-popover-background-color","",p.backgroundGlobalOnSurface),horizontalPadding:n.extend("--ft-popover-horizontal-padding","",d.spacing6),verticalPadding:n.extend("--ft-popover-vertical-padding","",d.spacing6),titleColor:n.extend("--ft-popover-title-color","",p.contentGlobalPrimary),bodyColor:n.extend("--ft-popover-body-color","",p.contentGlobalSecondary),linkColor:n.extend("--ft-popover-link-color","",p.contentActionPrimary),gap:n.extend("--ft-popover-gap","",d.spacing3),borderRadius:n.extend("--ft-popover-border-radius","",d.borderRadiusM),shadow:n.extend("--ft-popover-shadow","",d.shadowElevation02)};var vl={hoverStateLayerOpacity:n.extend("--ft-collapsible-hover-state-layer-opacity","",d.opacity8),focusStateLayerOpacity:n.extend("--ft-collapsible-focus-state-layer-opacity","",d.opacity8),focusOutlineWidth:n.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:n.extend("--ft-collapsible-focus-focus-ring-color","",p.borderActionFocusRing),activeStateLayerOpacity:n.extend("--ft-collapsible-active-state-layer-opacity","",d.opacity16),disabledComponentOpacity:n.extend("--ft-collapsible-disabled-component-opacity","",d.opacity40),horizontalPadding:n.extend("--ft-collapsible-horizontal-padding","",d.spacing4),verticalPadding:n.extend("--ft-collapsible-vertical-padding","",d.spacing3),color:n.extend("--ft-collapsible-color","",p.contentGlobalPrimary),stateLayerColor:n.extend("--ft-collapsible-state-layer-color","",p.contentGlobalPrimary),backgroundColor:n.extend("--ft-collapsible-background-color","",p.backgroundGlobalOnSurface),borderColor:n.extend("--ft-collapsible-border-color","",p.borderGlobalSubtle),iconSize:n.extend("--ft-collapsible-icon-size","",d.iconSize3)};var xl={groupHorizontalPadding:n.extend("--ft-switch-group-horizontal-padding","",d.spacing1),groupVerticalPadding:n.extend("--ft-switch-group-vertical-padding","",d.spacing1),groupGap:n.extend("--ft-switch-group-gap","",d.spacing1),groupBackgroundColor:n.extend("--ft-switch-group-background-color","",p.backgroundGlobalSurface),groupBorderColor:n.extend("--ft-switch-group-border-color","",p.borderGlobalSubtle),groupBorderRadius:n.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:n.extend("--ft-switch-label-horizontal-padding","",d.spacing2),labelVerticalPadding:n.extend("--ft-switch-label-vertical-padding","",d.spacing1),offHoverStateLayerOpacity:n.extend("--ft-switch-off-hover-state-layer-opacity","",d.opacity8),offFocusStateLayerOpacity:n.extend("--ft-switch-off-focus-state-layer-opacity","",d.opacity8),offActiveStateLayerOpacity:n.extend("--ft-switch-off-active-state-layer-opacity","",d.opacity16),offDisabledComponentOpacity:n.extend("--ft-switch-off-disabled-component-opacity","",d.opacity40),offColor:n.extend("--ft-switch-off-color","",p.contentGlobalSubtle),offStateLayerColor:n.extend("--ft-switch-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:n.extend("--ft-switch-on-hover-state-layer-opacity","",d.opacity8),onFocusStateLayerOpacity:n.extend("--ft-switch-on-focus-state-layer-opacity","",d.opacity8),onActiveStateLayerOpacity:n.extend("--ft-switch-on-active-state-layer-opacity","",d.opacity16),onDisabledComponentOpacity:n.extend("--ft-switch-on-disabled-component-opacity","",d.opacity40),onColor:n.extend("--ft-switch-on-color","",p.contentActionPrimary),onStateLayerColor:n.extend("--ft-switch-on-state-layer-color","",p.contentActionPrimary),iconHorizontalPadding:n.extend("--ft-switch-icon-horizontal-padding","",d.spacing1),iconVerticalPadding:n.extend("--ft-switch-icon-vertical-padding","",d.spacing1),focusOutlineWidth:n.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:n.extend("--ft-switch-focus-focus-ring-color","",p.borderActionFocusRing),optionBorderRadius:n.extend("--ft-switch-option-border-radius","",d.borderRadiusS)};var Sl={color1Light:n.extend("--ft-chart-1-light","for area color charts",d.colorBrand40),color1Base:n.extend("--ft-chart-1-base","for line charts",d.colorBrand0),color2Light:n.extend("--ft-chart-2-light","for area color charts",d.colorYellow60),color2Base:n.extend("--ft-chart-2-base","for line charts",d.colorYellow100),color3Light:n.extend("--ft-chart-3-light","",d.colorUltramarine40),color3Base:n.extend("--ft-chart-3-base","",d.colorUltramarine70),color4Light:n.extend("--ft-chart-4-light","",d.colorCyan50),color4Base:n.extend("--ft-chart-4-base","",d.colorCyan100),color5Light:n.extend("--ft-chart-5-light","",d.colorRed40),color5Base:n.extend("--ft-chart-5-base","",d.colorRed60),color6Light:n.extend("--ft-chart-6-light","",d.colorGreen40),color6Base:n.extend("--ft-chart-6-base","",d.colorGreen70),color7Light:n.extend("--ft-chart-7-light","",d.colorOrange70),color7Base:n.extend("--ft-chart-7-base","",d.colorOrange100),color8Light:n.extend("--ft-chart-8-light","",d.colorAvocado70),color8Base:n.extend("--ft-chart-8-base","",d.colorAvocado200),color9Light:n.extend("--ft-chart-9-light","",d.colorBrown50),color9Base:n.extend("--ft-chart-9-base","",d.colorBrown200),color10Light:n.extend("--ft-chart-10-light","",d.colorGray50),color10Base:n.extend("--ft-chart-10-base","",d.colorGray80),monochrome10:n.extend("--ft-chart-monochrome-10","",d.colorBrand10),monochrome20:n.extend("--ft-chart-monochrome-20","",d.colorBrand20),monochrome30:n.extend("--ft-chart-monochrome-30","",d.colorBrand40),monochrome40:n.extend("--ft-chart-monochrome-40","",d.colorBrand60),monochrome50:n.extend("--ft-chart-monochrome-50","",d.colorBrand0),monochrome60:n.extend("--ft-chart-monochrome-60","",d.colorBrand200)};var Ol={borderWidth:n.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:n.extend("--ft-notice-horizontal-padding","",d.spacing3),verticalPadding:n.extend("--ft-notice-vertical-padding","",d.spacing2),borderRadius:n.extend("--ft-notice-border-radius","",d.borderRadiusS),gap:n.extend("--ft-notice-gap","",d.spacing2),iconSize:n.extend("--ft-notice-icon-size","",d.iconSize3),infoBackgroundColor:n.extend("--ft-notice-info-background-color","",p.backgroundInfoSubtle),infoBorderColor:n.extend("--ft-notice-info-border-color","",p.borderInfoSubtle),infoColor:n.extend("--ft-notice-info-color","",p.contentInfoPrimary),infoIconColor:n.extend("--ft-notice-info-icon-color","",p.contentInfoIconOnly),warningBackgroundColor:n.extend("--ft-notice-warning-background-color","",p.backgroundWarningSubtle),warningBorderColor:n.extend("--ft-notice-warning-border-color","",p.borderWarningSubtle),warningColor:n.extend("--ft-notice-warning-color","",p.contentWarningPrimary),warningIconColor:n.extend("--ft-notice-warning-icon-color","",p.contentWarningIconOnly),errorBackgroundColor:n.extend("--ft-notice-error-background-color","",p.backgroundErrorSubtle),errorBorderColor:n.extend("--ft-notice-error-border-color","",p.borderErrorSubtle),errorColor:n.extend("--ft-notice-error-color","",p.contentErrorPrimary),errorIconColor:n.extend("--ft-notice-error-icon-color","",p.contentErrorIconOnly),successBackgroundColor:n.extend("--ft-notice-success-background-color","",p.backgroundSuccessSubtle),successBorderColor:n.extend("--ft-notice-success-border-color","",p.borderSuccessSubtle),successColor:n.extend("--ft-notice-success-color","",p.contentSuccessPrimary),successIconColor:n.extend("--ft-notice-success-icon-color","",p.contentSuccessIconOnly)};var wl={color:n.extend("--ft-checkbox-color","",p.contentGlobalPrimary),checkedBackgroundColor:n.extend("--ft-checkbox-checked-background-color","",p.contentActionPrimary),checkedStateLayerColor:n.extend("--ft-checkbox-checked-state-layer-color","",p.contentActionPrimary),checkedIconColor:n.extend("--ft-checkbox-checked-icon-color","",p.contentGlobalOnColor),checkedHoverStateLayerOpacity:n.extend("--ft-checkbox-checked-hover-state-layer-opacity","",d.opacity16),checkedFocusStateLayerOpacity:n.extend("--ft-checkbox-checked-focus-state-layer-opacity","",d.opacity16),checkedActiveStateLayerOpacity:n.extend("--ft-checkbox-checked-active-state-layer-opacity","",d.opacity24),checkedDisabledComponentOpacity:n.extend("--ft-checkbox-checked-disabled-component-opacity","",d.opacity40),uncheckedBorderColor:n.extend("--ft-checkbox-unchecked-border-color","",d.colorGray80),uncheckedStateLayerColor:n.extend("--ft-checkbox-unchecked-state-layer-color","",d.colorGray80),uncheckedHoverStateLayerOpacity:n.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",d.opacity16),uncheckedFocusStateLayerOpacity:n.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",d.opacity16),uncheckedActiveStateLayerOpacity:n.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",d.opacity24),uncheckedDisabledComponentOpacity:n.extend("--ft-checkbox-unchecked-disabled-component-opacity","",d.opacity40),focusFocusRingColor:n.extend("--ft-checkbox-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:n.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:n.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:n.extend("--ft-checkbox-gap","",d.spacing3)};var El={offHoverStateLayerOpacity:n.extend("--ft-toggle-off-hover-state-layer-opacity","",d.opacity16),offFocusStateLayerOpacity:n.extend("--ft-toggle-off-focus-state-layer-opacity","",d.opacity16),offActiveStateLayerOpacity:n.extend("--ft-toggle-off-active-state-layer-opacity","",d.opacity24),offDisabledComponentOpacity:n.extend("--ft-toggle-off-disabled-component-opacity","",d.opacity40),offBackgroundColor:n.extend("--ft-toggle-off-background-color","",p.contentGlobalSubtle),offIconColor:n.extend("--ft-toggle-off-icon-color","",p.contentGlobalSubtle),offStateLayerColor:n.extend("--ft-toggle-off-state-layer-color","",p.contentGlobalSubtle),onHoverStateLayerOpacity:n.extend("--ft-toggle-on-hover-state-layer-opacity","",d.opacity16),onFocusStateLayerOpacity:n.extend("--ft-toggle-on-focus-state-layer-opacity","",d.opacity16),onActiveStateLayerOpacity:n.extend("--ft-toggle-on-active-state-layer-opacity","",d.opacity24),onDisabledComponentOpacity:n.extend("--ft-toggle-on-disabled-component-opacity","",d.opacity40),onBackgroundColor:n.extend("--ft-toggle-on-background-color","",p.contentActionPrimary),onStateLayerColor:n.extend("--ft-toggle-on-state-layer-color","",p.contentActionPrimary),onIconColor:n.extend("--ft-toggle-on-icon-color","",p.contentActionPrimary),color:n.extend("--ft-toggle-color","",p.contentGlobalPrimary),focusFocusRingColor:n.extend("--ft-toggle-focus-focus-ring-color","",p.borderActionFocusRing),gap:n.extend("--ft-toggle-gap","",d.spacing3)};var Cl={color:n.extend("--ft-radio-color","",p.contentGlobalPrimary),selectedRadioColor:n.extend("--ft-radio-selected-radio-color","",p.contentActionPrimary),selectedStateLayerColor:n.extend("--ft-radio-selected-state-layer-color","",p.contentActionPrimary),selectedHoverStateLayerOpacity:n.extend("--ft-radio-selected-hover-state-layer-opacity","",d.opacity16),selectedFocusStateLayerOpacity:n.extend("--ft-radio-selected-focus-state-layer-opacity","",d.opacity16),selectedActiveStateLayerOpacity:n.extend("--ft-radio-selected-active-state-layer-opacity","",d.opacity24),selectedDisabledComponentOpacity:n.extend("--ft-radio-selected-disabled-component-opacity","",d.opacity40),unselectedStateLayerColor:n.extend("--ft-radio-unselected-state-layer-color","",p.borderInputPrimary),unselectedBorderColor:n.extend("--ft-radio-unselected-border-color","",p.borderInputPrimary),unselectedHoverStateLayerOpacity:n.extend("--ft-radio-unselected-hover-state-layer-opacity","",d.opacity16),unselectedFocusStateLayerOpacity:n.extend("--ft-radio-unselected-focus-state-layer-opacity","",d.opacity16),unselectedActiveStateLayerOpacity:n.extend("--ft-radio-unselected-active-state-layer-opacity","",d.opacity24),unselectedDisabledComponentOpacity:n.extend("--ft-radio-unselected-disabled-component-opacity","",d.opacity40),focusFocusRingColor:n.extend("--ft-radio-focus-focus-ring-color","",p.borderActionFocusRing),focusOutlineOffset:n.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:n.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:n.extend("--ft-radio-gap","",d.spacing3)};var Al={iconSize:n.extend("--ft-notification-icon-size","",d.iconSize4),leftPadding:n.extend("--ft-notification-left-padding","",d.spacing5),rightPadding:n.extend("--ft-notification-right-padding","",d.spacing4),verticalPadding:n.extend("--ft-notification-vertical-padding","",d.spacing3),infoBackgroundColor:n.extend("--ft-notification-info-background-color","",p.backgroundInfoSubtle),infoColor:n.extend("--ft-notification-info-color","",p.contentInfoPrimary),infoIconColor:n.extend("--ft-notification-info-icon-color","",p.contentInfoIconOnly),infoBorderColor:n.extend("--ft-notification-info-border-color","",p.borderInfoSubtle),successBackgroundColor:n.extend("--ft-notification-success-background-color","",p.backgroundSuccessSubtle),successColor:n.extend("--ft-notification-success-color","",p.contentSuccessPrimary),successIconColor:n.extend("--ft-notification-success-icon-color","",p.contentSuccessIconOnly),successBorderColor:n.extend("--ft-notification-success-border-color","",p.borderSuccessSubtle),warningBackgroundColor:n.extend("--ft-notification-warning-background-color","",p.backgroundWarningSubtle),warningColor:n.extend("--ft-notification-warning-color","",p.contentWarningPrimary),warningIconColor:n.extend("--ft-notification-warning-icon-color","",p.contentWarningIconOnly),warningBorderColor:n.extend("--ft-notification-warning-border-color","",p.borderWarningSubtle),errorBackgroundColor:n.extend("--ft-notification-error-background-color","",p.backgroundErrorSubtle),errorColor:n.extend("--ft-notification-error-color","",p.contentErrorPrimary),errorIconColor:n.extend("--ft-notification-error-icon-color","",p.contentErrorIconOnly),errorBorderColor:n.extend("--ft-notification-error-border-color","",p.borderErrorSubtle),borderRadius:n.extend("--ft-notification-border-radius","",d.borderRadiusPill),borderWidth:n.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:n.extend("--ft-notification-leading-gap","",d.spacing2),trailingGap:n.extend("--ft-notification-trailing-gap","",d.spacing8)};var Rl={horizontalPadding:n.extend("--ft-tooltip-horizontal-padding","",d.spacing2),verticalPadding:n.extend("--ft-tooltip-vertical-padding","",d.spacing2),borderRadius:n.extend("--ft-tooltip-border-radius","",d.borderRadiusS),color:n.extend("--ft-tooltip-color","",p.contentGlobalOnColor),backgroundColor:n.extend("--ft-tooltip-background-color","",p.contentGlobalPrimary),backgroundOpacity:n.extend("--ft-tooltip-background-opacity","",d.opacity80),shadow:n.extend("--ft-tooltip-shadow","",d.shadowElevation02),maxWidth:n.create("--ft-tooltip-max-width","","SIZE","256px"),gap:n.extend("--ft-tooltip-gap","",d.spacing05)};var Bt;(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(Bt||(Bt={}));var Wt;(function(r){r.large="large",r.medium="medium",r.small="small"})(Wt||(Wt={}));function Bo(r){return`ftds--family-${r}`}function Wo(r){return`ftds--size-${r}`}var Nl={colorPrimary:n.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:n.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:n.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:n.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:n.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:n.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:n.create("--ft-color-error","","COLOR","#B00020"),colorOutline:n.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:n.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:n.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:n.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:n.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:n.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:n.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:n.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:n.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:n.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:n.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:n.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:n.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:n.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:n.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:n.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:n.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:n.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:n.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:n.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:n.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:n.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:n.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:n.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:n.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:n.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:n.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:n.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:n.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:n.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:n.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:n.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:n.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:n.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:n.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:n.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:n.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:n.create("--ft-elevation-00","","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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.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:n.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:n.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:n.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:n.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:n.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:n.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:n.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:n.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var Go={};M(Go,{FtNotificationEvent:()=>jo,PostResizeEvent:()=>Vo,PreResizeEvent:()=>Ko});var jo=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},Ko=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},Vo=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};var nn={};M(nn,{computeOffsetPosition:()=>Gl});var xa=["top","right","bottom","left"],va=["start","end"],qo=xa.reduce((r,e)=>r.concat(e,e+"-"+va[0],e+"-"+va[1]),[]),Ht=Math.min,Ie=Math.max,zt=Math.round;var be=r=>({x:r,y:r}),Il={left:"right",right:"left",bottom:"top",top:"bottom"},_l={start:"end",end:"start"};function Yo(r,e,t){return Ie(r,Ht(e,t))}function Rr(r,e){return typeof r=="function"?r(e):r}function ft(r){return r.split("-")[0]}function _e(r){return r.split("-")[1]}function Jo(r){return r==="x"?"y":"x"}function Xo(r){return r==="y"?"height":"width"}function Nr(r){return["top","bottom"].includes(ft(r))?"y":"x"}function Qo(r){return Jo(Nr(r))}function Sa(r,e,t){t===void 0&&(t=!1);let o=_e(r),i=Qo(r),a=Xo(i),s=i==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=Zo(s)),[s,Zo(s)]}function Oa(r){return r.replace(/start|end/g,e=>_l[e])}function Zo(r){return r.replace(/left|right|bottom|top/g,e=>Il[e])}function Tl(r){return{top:0,right:0,bottom:0,left:0,...r}}function wa(r){return typeof r!="number"?Tl(r):{top:r,right:r,bottom:r,left:r}}function Xe(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function Ea(r,e,t){let{reference:o,floating:i}=r,a=Nr(e),s=Qo(e),l=Xo(s),c=ft(e),u=a==="y",h=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,g=o[l]/2-i[l]/2,y;switch(c){case"top":y={x:h,y:o.y-i.height};break;case"bottom":y={x:h,y:o.y+o.height};break;case"right":y={x:o.x+o.width,y:f};break;case"left":y={x:o.x-i.width,y:f};break;default:y={x:o.x,y:o.y}}switch(_e(e)){case"start":y[s]-=g*(t&&u?-1:1);break;case"end":y[s]+=g*(t&&u?-1:1);break}return y}var Ca=async(r,e,t)=>{let{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:s}=t,l=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e)),u=await s.getElementRects({reference:r,floating:e,strategy:i}),{x:h,y:f}=Ea(u,o,c),g=o,y={},b=0;for(let O=0;O<l.length;O++){let{name:C,fn:E}=l[O],{x:A,y:S,data:x,reset:w}=await E({x:h,y:f,initialPlacement:o,placement:g,strategy:i,middlewareData:y,rects:u,platform:s,elements:{reference:r,floating:e}});if(h=A??h,f=S??f,y={...y,[C]:{...y[C],...x}},w&&b<=50){b++,typeof w=="object"&&(w.placement&&(g=w.placement),w.rects&&(u=w.rects===!0?await s.getElementRects({reference:r,floating:e,strategy:i}):w.rects),{x:h,y:f}=Ea(u,g,c)),O=-1;continue}}return{x:h,y:f,placement:g,strategy:i,middlewareData:y}};async function en(r,e){var t;e===void 0&&(e={});let{x:o,y:i,platform:a,rects:s,elements:l,strategy:c}=r,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:g=!1,padding:y=0}=Rr(e,r),b=wa(y),C=l[g?f==="floating"?"reference":"floating":f],E=Xe(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(l.floating)),boundary:u,rootBoundary:h,strategy:c})),A=f==="floating"?{...s.floating,x:o,y:i}:s.reference,S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),x=await(a.isElement==null?void 0:a.isElement(S))?await(a.getScale==null?void 0:a.getScale(S))||{x:1,y:1}:{x:1,y:1},w=Xe(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:A,offsetParent:S,strategy:c}):A);return{top:(E.top-w.top+b.top)/x.y,bottom:(w.bottom-E.bottom+b.bottom)/x.y,left:(E.left-w.left+b.left)/x.x,right:(w.right-E.right+b.right)/x.x}}function Pl(r,e,t){return(r?[...t.filter(i=>_e(i)===r),...t.filter(i=>_e(i)!==r)]:t.filter(i=>ft(i)===i)).filter(i=>r?_e(i)===r||(e?Oa(i)!==i:!1):!0)}var tn=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(e){var t,o,i;let{rects:a,middlewareData:s,placement:l,platform:c,elements:u}=e,{crossAxis:h=!1,alignment:f,allowedPlacements:g=qo,autoAlignment:y=!0,...b}=Rr(r,e),O=f!==void 0||g===qo?Pl(f||null,y,g):g,C=await en(e,b),E=((t=s.autoPlacement)==null?void 0:t.index)||0,A=O[E];if(A==null)return{};let S=Sa(A,a,await(c.isRTL==null?void 0:c.isRTL(u.floating)));if(l!==A)return{reset:{placement:O[0]}};let x=[C[ft(A)],C[S[0]],C[S[1]]],w=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:A,overflows:x}],_=O[E+1];if(_)return{data:{index:E+1,overflows:w},reset:{placement:_}};let L=w.map(N=>{let m=_e(N.placement);return[N.placement,m&&h?N.overflows.slice(0,2).reduce((v,R)=>v+R,0):N.overflows[0],N.overflows]}).sort((N,m)=>N[1]-m[1]),U=((i=L.filter(N=>N[2].slice(0,_e(N[0])?2:3).every(m=>m<=0))[0])==null?void 0:i[0])||L[0][0];return U!==l?{data:{index:E+1,overflows:w},reset:{placement:U}}:{}}}};var rn=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){let{x:t,y:o,placement:i}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:C=>{let{x:E,y:A}=C;return{x:E,y:A}}},...c}=Rr(r,e),u={x:t,y:o},h=await en(e,c),f=Nr(ft(i)),g=Jo(f),y=u[g],b=u[f];if(a){let C=g==="y"?"top":"left",E=g==="y"?"bottom":"right",A=y+h[C],S=y-h[E];y=Yo(A,y,S)}if(s){let C=f==="y"?"top":"left",E=f==="y"?"bottom":"right",A=b+h[C],S=b-h[E];b=Yo(A,b,S)}let O=l.fn({...e,[g]:y,[f]:b});return{...O,data:{x:O.x-t,y:O.y-o}}}}};function ve(r){return Ra(r)?(r.nodeName||"").toLowerCase():"#document"}function q(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function xe(r){var e;return(e=(Ra(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function Ra(r){return r instanceof Node||r instanceof q(r).Node}function de(r){return r instanceof Element||r instanceof q(r).Element}function ie(r){return r instanceof HTMLElement||r instanceof q(r).HTMLElement}function Aa(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof q(r).ShadowRoot}function pt(r){let{overflow:e,overflowX:t,overflowY:o,display:i}=Q(r);return/auto|scroll|overlay|hidden|clip/.test(e+o+t)&&!["inline","contents"].includes(i)}function Na(r){return["table","td","th"].includes(ve(r))}function _r(r){let e=Tr(),t=Q(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(o=>(t.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(t.contain||"").includes(o))}function Ia(r){let e=Qe(r);for(;ie(e)&&!jt(e);){if(_r(e))return e;e=Qe(e)}return null}function Tr(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function jt(r){return["html","body","#document"].includes(ve(r))}function Q(r){return q(r).getComputedStyle(r)}function Kt(r){return de(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function Qe(r){if(ve(r)==="html")return r;let e=r.assignedSlot||r.parentNode||Aa(r)&&r.host||xe(r);return Aa(e)?e.host:e}function _a(r){let e=Qe(r);return jt(e)?r.ownerDocument?r.ownerDocument.body:r.body:ie(e)&&pt(e)?e:_a(e)}function Ir(r,e,t){var o;e===void 0&&(e=[]),t===void 0&&(t=!0);let i=_a(r),a=i===((o=r.ownerDocument)==null?void 0:o.body),s=q(i);return a?e.concat(s,s.visualViewport||[],pt(i)?i:[],s.frameElement&&t?Ir(s.frameElement):[]):e.concat(i,Ir(i,[],t))}function ka(r){let e=Q(r),t=parseFloat(e.width)||0,o=parseFloat(e.height)||0,i=ie(r),a=i?r.offsetWidth:t,s=i?r.offsetHeight:o,l=zt(t)!==a||zt(o)!==s;return l&&(t=a,o=s),{width:t,height:o,$:l}}function La(r){return de(r)?r:r.contextElement}function ht(r){let e=La(r);if(!ie(e))return be(1);let t=e.getBoundingClientRect(),{width:o,height:i,$:a}=ka(e),s=(a?zt(t.width):t.width)/o,l=(a?zt(t.height):t.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var kl=be(0);function Ua(r){let e=q(r);return!Tr()||!e.visualViewport?kl:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ll(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==q(r)?!1:e}function Vt(r,e,t,o){e===void 0&&(e=!1),t===void 0&&(t=!1);let i=r.getBoundingClientRect(),a=La(r),s=be(1);e&&(o?de(o)&&(s=ht(o)):s=ht(r));let l=Ll(a,t,o)?Ua(a):be(0),c=(i.left+l.x)/s.x,u=(i.top+l.y)/s.y,h=i.width/s.x,f=i.height/s.y;if(a){let g=q(a),y=o&&de(o)?q(o):o,b=g.frameElement;for(;b&&o&&y!==g;){let O=ht(b),C=b.getBoundingClientRect(),E=Q(b),A=C.left+(b.clientLeft+parseFloat(E.paddingLeft))*O.x,S=C.top+(b.clientTop+parseFloat(E.paddingTop))*O.y;c*=O.x,u*=O.y,h*=O.x,f*=O.y,c+=A,u+=S,b=q(b).frameElement}}return Xe({width:h,height:f,x:c,y:u})}function Ul(r){let{rect:e,offsetParent:t,strategy:o}=r,i=ie(t),a=xe(t);if(t===a)return e;let s={scrollLeft:0,scrollTop:0},l=be(1),c=be(0);if((i||!i&&o!=="fixed")&&((ve(t)!=="body"||pt(a))&&(s=Kt(t)),ie(t))){let u=Vt(t);l=ht(t),c.x=u.x+t.clientLeft,c.y=u.y+t.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+c.x,y:e.y*l.y-s.scrollTop*l.y+c.y}}function Ml(r){return Array.from(r.getClientRects())}function Ma(r){return Vt(xe(r)).left+Kt(r).scrollLeft}function Dl(r){let e=xe(r),t=Kt(r),o=r.ownerDocument.body,i=Ie(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=Ie(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),s=-t.scrollLeft+Ma(r),l=-t.scrollTop;return Q(o).direction==="rtl"&&(s+=Ie(e.clientWidth,o.clientWidth)-i),{width:i,height:a,x:s,y:l}}function Fl(r,e){let t=q(r),o=xe(r),i=t.visualViewport,a=o.clientWidth,s=o.clientHeight,l=0,c=0;if(i){a=i.width,s=i.height;let u=Tr();(!u||u&&e==="fixed")&&(l=i.offsetLeft,c=i.offsetTop)}return{width:a,height:s,x:l,y:c}}function $l(r,e){let t=Vt(r,!0,e==="fixed"),o=t.top+r.clientTop,i=t.left+r.clientLeft,a=ie(r)?ht(r):be(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,c=i*a.x,u=o*a.y;return{width:s,height:l,x:c,y:u}}function Ta(r,e,t){let o;if(e==="viewport")o=Fl(r,t);else if(e==="document")o=Dl(xe(r));else if(de(e))o=$l(e,t);else{let i=Ua(r);o={...e,x:e.x-i.x,y:e.y-i.y}}return Xe(o)}function Da(r,e){let t=Qe(r);return t===e||!de(t)||jt(t)?!1:Q(t).position==="fixed"||Da(t,e)}function Bl(r,e){let t=e.get(r);if(t)return t;let o=Ir(r,[],!1).filter(l=>de(l)&&ve(l)!=="body"),i=null,a=Q(r).position==="fixed",s=a?Qe(r):r;for(;de(s)&&!jt(s);){let l=Q(s),c=_r(s);!c&&l.position==="fixed"&&(i=null),(a?!c&&!i:!c&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||pt(s)&&!c&&Da(r,s))?o=o.filter(h=>h!==s):i=l,s=Qe(s)}return e.set(r,o),o}function Wl(r){let{element:e,boundary:t,rootBoundary:o,strategy:i}=r,s=[...t==="clippingAncestors"?Bl(e,this._c):[].concat(t),o],l=s[0],c=s.reduce((u,h)=>{let f=Ta(e,h,i);return u.top=Ie(f.top,u.top),u.right=Ht(f.right,u.right),u.bottom=Ht(f.bottom,u.bottom),u.left=Ie(f.left,u.left),u},Ta(e,l,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Hl(r){return ka(r)}function zl(r,e,t){let o=ie(e),i=xe(e),a=t==="fixed",s=Vt(r,!0,a,e),l={scrollLeft:0,scrollTop:0},c=be(0);if(o||!o&&!a)if((ve(e)!=="body"||pt(i))&&(l=Kt(e)),o){let u=Vt(e,!0,a,e);c.x=u.x+e.clientLeft,c.y=u.y+e.clientTop}else i&&(c.x=Ma(i));return{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function Pa(r,e){return!ie(r)||Q(r).position==="fixed"?null:e?e(r):r.offsetParent}function Fa(r,e){let t=q(r);if(!ie(r))return t;let o=Pa(r,e);for(;o&&Na(o)&&Q(o).position==="static";)o=Pa(o,e);return o&&(ve(o)==="html"||ve(o)==="body"&&Q(o).position==="static"&&!_r(o))?t:o||Ia(r)||t}var jl=async function(r){let{reference:e,floating:t,strategy:o}=r,i=this.getOffsetParent||Fa,a=this.getDimensions;return{reference:zl(e,await i(t),o),floating:{x:0,y:0,...await a(t)}}};function Kl(r){return Q(r).direction==="rtl"}var Pr={convertOffsetParentRelativeRectToViewportRelativeRect:Ul,getDocumentElement:xe,getClippingRect:Wl,getOffsetParent:Fa,getElementRects:jl,getClientRects:Ml,getDimensions:Hl,getScale:ht,isElement:de,isRTL:Kl};var $a=(r,e,t)=>{let o=new Map,i={platform:Pr,...t},a={...i.platform,_c:o};return Ca(r,e,{...i,platform:a})};function Ba(r){return Vl(r)}function on(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function Vl(r){for(let e=r;e;e=on(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=on(r);e;e=on(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 Gl(r,e,t){return $a(r,e,{platform:{...Pr,getOffsetParent:o=>Pr.getOffsetParent(o,Ba)},middleware:[rn({crossAxis:!0}),tn({allowedPlacements:[t]})]})}var ln={};M(ln,{FtdsBase:()=>cn,toFtdsBase:()=>Za});var sn={};M(sn,{FtLitElement:()=>ee});var an={};M(an,{ScopedRegistryLitElement:()=>Gt});var kr=window,Zl=kr.ShadowRoot&&(kr.ShadyCSS===void 0||kr.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_m=Symbol();var Wa=(r,e)=>{Zl?r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{let o=document.createElement("style"),i=kr.litNonce;i!==void 0&&o.setAttribute("nonce",i),o.textContent=t.cssText,r.appendChild(o)})};var Gt=class extends ge{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},o=this.renderOptions.creationScope=this.attachShadow(t);return Wa(o,e.elementStyles),o}};var Lr=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(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},Ka,Ha=Symbol("constructorPrototype"),za=Symbol("constructorName"),Va=Symbol("exportpartsDebouncer"),ja=Symbol("dynamicDependenciesLoaded"),ee=class extends Gt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Ka]=new X(5),this[za]=this.constructor.name,this[Ha]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[za]&&Object.setPrototypeOf(this,this[Ha])}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[ja]||(e[ja]=!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,o,i;if(((o=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,t,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(t=this.exportpartsPrefixes)===null||t===void 0?void 0:t.length)!==null&&o!==void 0&&o)&&this[Va].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,o,i,a,s,l;let c=g=>g!=null&&g.trim().length>0,u=e.filter(c).map(g=>g.trim());if(u.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let g of(o=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let y=(a=(i=g.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],b=(l=(s=g.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(O=>O.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...y,...b).filter(c).map(O=>O.trim()).forEach(O=>h.add(O))}if(h.size===0){this.removeAttribute("exportparts");return}let f=[...h.values()].flatMap(g=>u.map(y=>`${g}:${y}--${g}`));this.setAttribute("exportparts",[...this.part,...f].join(", "))}};Ka=Va;Lr([T()],ee.prototype,"exportpartsPrefix",void 0);Lr([Ne([])],ee.prototype,"exportpartsPrefixes",void 0);Lr([T()],ee.prototype,"customStylesheet",void 0);Lr([Co()],ee.prototype,"useAdoptedStyleSheets",void 0);var Ga=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(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 Za(r){class e extends r{constructor(){super(...arguments),this.size=Wt.medium,this.family=Bt.neutral}getDesignSystemBaseClasses(){return{[Bo(this.family)]:!0,[Wo(this.size)]:!0}}}return Ga([T()],e.prototype,"size",void 0),Ga([T()],e.prototype,"family",void 0),e}var cn=class extends Za(ee){};var qa={};var fn={};M(fn,{highlightHtml:()=>un,highlightHtmlColorCssVariable:()=>Ya,highlightHtmlStyles:()=>Yl});var et=class r{constructor(e,t=!0,o=[],i=5e3){this.ctx=e,this.iframes=t,this.exclude=o,this.iframesTimeout=i}static matches(e,t){let o=typeof t=="string"?[t]:t,i=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(i){let a=!1;return o.every(s=>i.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,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(o=>{let i=t.filter(a=>a.contains(o)).length>0;t.indexOf(o)===-1&&!i&&t.push(o)}),t}getIframeContents(e,t,o=()=>{}){let i;try{let a=e.contentWindow;if(i=a.document,!a||!i)throw new Error("iframe inaccessible")}catch{o()}i&&t(i)}isIframeBlank(e){let t="about:blank",o=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&o!==t&&o}observeIframeLoad(e,t,o){let i=!1,a=null,s=()=>{if(!i){i=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,t,o))}catch{o()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,t,o){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,o):this.getIframeContents(e,t,o):this.observeIframeLoad(e,t,o)}catch{o()}}waitForIframes(e,t){let o=0;this.forEachIframe(e,()=>!0,i=>{o++,this.waitForIframes(i.querySelector("html"),()=>{--o||t()})},i=>{i||t()})}forEachIframe(e,t,o,i=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let c=()=>{--s<=0&&i(l)};s||c(),a.forEach(u=>{r.matches(u,this.exclude)?c():this.onIframeReady(u,h=>{t(u)&&(l++,o(h)),c()},c)})}createIterator(e,t,o){return document.createNodeIterator(e,t,o,!1)}createInstanceOnIframe(e){return new r(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,o){let i=e.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(i&a)if(t!==null){let s=t.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let t=e.previousNode(),o;return t===null?o=e.nextNode():o=e.nextNode()&&e.nextNode(),{prevNode:t,node:o}}checkIframeFilter(e,t,o,i){let a=!1,s=!1;return i.forEach((l,c)=>{l.val===o&&(a=c,s=l.handled)}),this.compareNodeIframe(e,t,o)?(a===!1&&!s?i.push({val:o,handled:!0}):a!==!1&&!s&&(i[a].handled=!0),!0):(a===!1&&i.push({val:o,handled:!1}),!1)}handleOpenIframes(e,t,o,i){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(t,o,i)})})}iterateThroughNodes(e,t,o,i,a){let s=this.createIterator(t,e,i),l=[],c=[],u,h,f=()=>({prevNode:h,node:u}=this.getIteratorNode(s),u);for(;f();)this.iframes&&this.forEachIframe(t,g=>this.checkIframeFilter(u,h,g,l),g=>{this.createInstanceOnIframe(g).forEachNode(e,y=>c.push(y),i)}),c.push(u);c.forEach(g=>{o(g)}),this.iframes&&this.handleOpenIframes(l,e,o,i),a()}forEachNode(e,t,o,i=()=>{}){let a=this.getContexts(),s=a.length;s||i(),a.forEach(l=>{let c=()=>{this.iterateThroughNodes(e,l,t,o,()=>{--s<=0&&i()})};this.iframes?this.waitForIframes(l,c):c()})}};var Zt=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 et(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[t]=="function"&&o[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,o=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],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),c=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&c!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(c)})`,`gm${o}`),i+`(${this.processSynomyms(l)}|${this.processSynomyms(c)})`+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,o,i)=>{let a=i.charAt(o+1);return/[(|)\\]/.test(a)||a===""?t:t+"\0"})}createJoinersRegExp(e){let t=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&t.push(this.escapeStr(o.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",o=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],i=[];return e.split("").forEach(a=>{o.every(s=>{if(s.indexOf(a)!==-1){if(i.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${t}`),`[${s}]`),i.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",o=this.opt.accuracy,i=typeof o=="string"?o:o.value,a=typeof o=="string"?[]:o.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),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(o=>{this.opt.separateWordSearch?o.split(" ").forEach(i=>{i.trim()&&t.indexOf(i)===-1&&t.push(i)}):o.trim()&&t.indexOf(o)===-1&&t.push(o)}),{keywords:t.sort((o,i)=>i.length-o.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=[],o=0;return e.sort((i,a)=>i.start-a.start).forEach(i=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(i,o);l&&(i.start=a,i.length=s-a,t.push(i),o=s)}),t}callNoMatchOnInvalidRanges(e,t){let o,i,a=!1;return e&&typeof e.start<"u"?(o=parseInt(e.start,10),i=o+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&i-t>0&&i-o>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:o,end:i,valid:a}}checkWhitespaceRanges(e,t,o){let i,a=!0,s=o.length,l=t-s,c=parseInt(e.start,10)-l;return c=c>s?s:c,i=c+parseInt(e.length,10),i>s&&(i=s,this.log(`End range automatically set to the max value of ${s}`)),c<0||i-c<0||c>s||i>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):o.substring(c,i).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:c,end:i,valid:a}}getTextNodes(e){let t="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,i=>{o.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:o})})}matchesExclude(e){return et.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,o){let i=this.opt.element?this.opt.element:"mark",a=e.splitText(t),s=a.splitText(o-t),l=document.createElement(i);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(e,t,o,i,a){e.nodes.every((s,l)=>{let c=e.nodes[l+1];if(typeof c>"u"||c.start>t){if(!i(s.node))return!1;let u=t-s.start,h=(o>s.end?s.end:o)-s.start,f=e.value.substr(0,s.start),g=e.value.substr(h+s.start);if(s.node=this.wrapRangeInTextNode(s.node,u,h),e.value=f+g,e.nodes.forEach((y,b)=>{b>=l&&(e.nodes[b].start>0&&b!==l&&(e.nodes[b].start-=h),e.nodes[b].end-=h)}),o-=h,a(s.node.previousSibling,s.start),o>s.end)t=s.end;else return!1}return!0})}wrapMatches(e,t,o,i,a){let s=t===0?0:t+1;this.getTextNodes(l=>{l.nodes.forEach(c=>{c=c.node;let u;for(;(u=e.exec(c.textContent))!==null&&u[s]!=="";){if(!o(u[s],c))continue;let h=u.index;if(s!==0)for(let f=1;f<s;f++)h+=u[f].length;c=this.wrapRangeInTextNode(c,h,h+u[s].length),i(c.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,t,o,i,a){let s=t===0?0:t+1;this.getTextNodes(l=>{let c;for(;(c=e.exec(l.value))!==null&&c[s]!=="";){let u=c.index;if(s!==0)for(let f=1;f<s;f++)u+=c[f].length;let h=u+c[s].length;this.wrapRangeInMappedTextNode(l,u,h,f=>o(c[s],f),(f,g)=>{e.lastIndex=g,i(f)})}a()})}wrapRangeFromIndex(e,t,o,i){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,c)=>{let{start:u,end:h,valid:f}=this.checkWhitespaceRanges(l,s,a.value);f&&this.wrapRangeInMappedTextNode(a,u,h,g=>t(g,l,a.value.substring(u,h),c),g=>{o(g,l)})}),i()})}unwrapMatches(e){let t=e.parentNode,o=document.createDocumentFragment();for(;e.firstChild;)o.appendChild(e.removeChild(e.firstChild));t.replaceChild(o,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 o=0,i="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,o),a,()=>{o===0&&this.opt.noMatch(e),this.opt.done(o)})}mark(e,t){this.opt=t;let o=0,i="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",c=u=>{let h=new RegExp(this.createRegExp(u),`gm${l}`),f=0;this.log(`Searching with expression "${h}"`),this[i](h,1,(g,y)=>this.opt.filter(y,u,o,f),g=>{f++,o++,this.opt.each(g)},()=>{f===0&&this.opt.noMatch(u),a[s-1]===u?this.opt.done(o):c(a[a.indexOf(u)+1])})};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),s===0?this.opt.done(o):c(a[0])}markRanges(e,t){this.opt=t;let o=0,i=this.checkRanges(e);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,(a,s,l,c)=>this.opt.filter(a,s,l,c),(a,s)=>{o++,this.opt.each(a,s)},()=>{this.opt.done(o)})):this.opt.done(o)}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,o=>{this.unwrapMatches(o)},o=>{let i=et.matches(o,t),a=this.matchesExclude(o);return!i||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function dn(r){let e=new Zt(r);return this.mark=(t,o)=>(e.mark(t,o),this),this.markRegExp=(t,o)=>(e.markRegExp(t,o),this),this.markRanges=(t,o)=>(e.markRanges(t,o),this),this.unmark=t=>(e.unmark(t),this),this}var ql=dn,Ya=n.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Yl=j`
7
8
  .highlight-html-match {
8
- background: ${za};
9
+ background: ${Ya};
9
10
  }
10
- `;function nn(r,e,t){var o,i;let a=r.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new Hl(r);if(s.unmark(),e&&e.trim()){let c={className:(o=t?.className)!==null&&o!==void 0?o:"highlight-html-match"};t?.attributes!=null&&(c.each=u=>{for(let p in t.attributes)u.setAttribute(p,t.attributes[p])}),s.mark(e.replace(/"[^"]+"/g,""),{...c,separateWordSearch:!0}),((i=e.match(/"[^"]+"/g))!==null&&i!==void 0?i:[]).forEach(u=>s.mark(u.replace(/"/g,""),{...c,separateWordSearch:!1}))}}r.setAttribute("data-highlight-html-query",e??"")}var sn={};U(sn,{noTextInputDefaultClearButton:()=>Gl,noTextSelect:()=>jl,safariEllipsisFix:()=>Vl,wordWrap:()=>Kl});var jl=H`
11
+ `;function un(r,e,t){var o,i;let a=r.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new ql(r);if(s.unmark(),e&&e.trim()){let l={className:(o=t?.className)!==null&&o!==void 0?o:"highlight-html-match"};t?.attributes!=null&&(l.each=u=>{for(let h in t.attributes)u.setAttribute(h,t.attributes[h])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((i=e.match(/"[^"]+"/g))!==null&&i!==void 0?i:[]).forEach(u=>s.mark(u.replace(/"/g,""),{...l,separateWordSearch:!1}))}}r.setAttribute("data-highlight-html-query",e??"")}var pn={};M(pn,{noTextInputDefaultClearButton:()=>ed,noTextSelect:()=>Jl,safariEllipsisFix:()=>Ql,wordWrap:()=>Xl});var Jl=j`
11
12
  .ft-no-text-select {
12
13
  -webkit-touch-callout: none;
13
14
  -webkit-user-select: none;
@@ -16,7 +17,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:n.extend("--ft-conte
16
17
  -ms-user-select: none;
17
18
  user-select: none;
18
19
  }
19
- `,Kl=H`
20
+ `,Xl=j`
20
21
  .ft-word-wrap {
21
22
  white-space: normal;
22
23
  word-wrap: break-word;
@@ -28,7 +29,7 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:n.extend("--ft-conte
28
29
  -webkit-hyphens: auto;
29
30
  hyphens: auto
30
31
  }
31
- `,Vl=H`
32
+ `,Ql=j`
32
33
  .ft-safari-ellipsis-fix {
33
34
  margin-right: 0;
34
35
 
@@ -39,25 +40,25 @@ Also for action icons.`,d.colorGray200),contentGlobalSubtle:n.extend("--ft-conte
39
40
  display: inline-block;
40
41
  width: 0;
41
42
  }
42
- `,Gl=H`
43
+ `,ed=j`
43
44
  input::-webkit-search-cancel-button,
44
45
  input::-webkit-search-decoration,
45
46
  input::-webkit-search-results-button,
46
47
  input::-webkit-search-results-decoration {
47
48
  display: none;
48
49
  }
49
- `;var ja={};var cn={};U(cn,{ParametrizedLabelResolver:()=>Kt});var Kt=class r{constructor(e,t){this.defaultLabels=e,this.labels=t}resolve(e,...t){var o,i;e=this.resolvePluralKey(e,t);let a=(i=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&i!==void 0?i:"";return r.replaceParameters(a,...t)}static replaceParameters(e,...t){return t.forEach((o,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(o,s))),e}resolvePluralKey(e,t){for(let o of t)if(typeof o=="number"){let i=`${String(e)}[\\=${o}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,t){return e instanceof Date?r.formatDate(e,t):e??""}static formatDate(e,t){let o=i=>t?.includes("date")?e.toLocaleDateString(i):t?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return o(document.documentElement.lang)}catch{return o()}}};var Ln={};U(Ln,{FtCommandQueue:()=>Vt,FtLitElementRedux:()=>_e,FtReduxStore:()=>xe,clearAllStores:()=>Pd,isFtReduxStore:()=>Je,redux:()=>le,reduxEventListener:()=>ql,reduxReactive:()=>Zl});var Zl=()=>(r,e)=>{var t;let o=r.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(t=o.reduxReactiveProperties)===null||t===void 0||t.add(e)},le=r=>{let e=r??{};return(t,o)=>{var i;let a={hasChanged:Lt,attribute:!1,...e};T(a)(t,o);let s=t.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(i=e.selector)!==null&&i!==void 0?i:c=>c[o],store:e.store})}},ql=r=>(e,t)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(t,r)};var Vt=class{constructor(){this.queue=[]}add(e,t=!1){t&&(this.queue=this.queue.filter(o=>o.type!==e.type)),this.queue.push(e)}consume(e){let t=this.queue.find(o=>o.type===e);return t&&(this.queue=this.queue.filter(o=>o!==t)),t}};function Je(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ka,Va,Ga,Tr=Symbol("internalReduxEventsUnsubscribers"),Ie=Symbol("internalStoresUnsubscribers"),Xe=Symbol("internalStores"),_e=class extends X{constructor(){super(...arguments),this[Ka]=new Map,this[Va]=new Map,this[Ga]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(t=>e.has(t))&&this.updateFromStores()}getUnnamedStore(){if(this[Xe].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Xe].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Xe].get(e)}addStore(e,t){var o;t=(o=t??(Je(e)?e.name:void 0))!==null&&o!==void 0?o:"default-store",this.unsubscribeFromStore(t),this.setupStore(t,e)}removeStore(e){let t=typeof e=="string"?e:e.name;this.unsubscribeFromStore(t),this[Xe].delete(t)}setupStore(e,t){this[Xe].set(e,t),this.subscribeToStore(e,t),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Xe].forEach((e,t)=>this.subscribeToStore(t,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,t)=>{let o=this.constructor.getPropertyOptions(t);if(!o?.attribute||!this.hasAttribute(typeof o?.attribute=="string"?o.attribute:t)){let i=this.getStore(e.store);i&&(e.store?this[Ie].has(e.store):this[Ie].size>0)&&(this[t]=e.selector(i.getState(),this))}})}subscribeToStore(e,t){var o;this[Ie].set(e,t.subscribe(()=>this.updateFromStores())),Je(t)&&t.eventBus&&((o=this.reduxConstructor.reduxEventListeners)===null||o===void 0||o.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[Tr].push(()=>t.eventBus.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Ie].forEach((e,t)=>this.unsubscribeFromStore(t)),this[Tr].forEach(e=>e()),this[Tr]=[]}unsubscribeFromStore(e){this[Ie].has(e)&&this[Ie].get(e)(),this[Ie].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Ka=Ie,Va=Xe,Ga=Tr;_e.reduxProperties=new Map;_e.reduxReactiveProperties=new Set;_e.reduxEventListeners=new Map;function ee(r){for(var e=arguments.length,t=Array(e>1?e-1:0),o=1;o<e;o++)t[o-1]=arguments[o];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 ve(r){return!!r&&!!r[M]}function ne(r){var e;return!!r&&(function(t){if(!t||typeof t!="object")return!1;var o=Object.getPrototypeOf(t);if(o===null)return!0;var i=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===od}(r)||Array.isArray(r)||!!r[es]||!!(!((e=r.constructor)===null||e===void 0)&&e[es])||yn(r)||bn(r))}function Qe(r,e,t){t===void 0&&(t=!1),pt(r)===0?(t?Object.keys:ft)(r).forEach(function(o){t&&typeof o=="symbol"||e(o,r[o],r)}):r.forEach(function(o,i){return e(i,o,r)})}function pt(r){var e=r[M];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:yn(r)?2:bn(r)?3:0}function ut(r,e){return pt(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function Yl(r,e){return pt(r)===2?r.get(e):r[e]}function ts(r,e,t){var o=pt(r);o===2?r.set(e,t):o===3?r.add(t):r[e]=t}function rs(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function yn(r){return td&&r instanceof Map}function bn(r){return rd&&r instanceof Set}function Te(r){return r.o||r.t}function vn(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=is(r);delete e[M];for(var t=ft(e),o=0;o<t.length;o++){var i=t[o],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 xn(r,e){return e===void 0&&(e=!1),Sn(r)||ve(r)||!ne(r)||(pt(r)>1&&(r.set=r.add=r.clear=r.delete=Jl),Object.freeze(r),e&&Qe(r,function(t,o){return xn(o,!0)},!0)),r}function Jl(){ee(2)}function Sn(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function de(r){var e=gn[r];return e||ee(18,r),e}function Xl(r,e){gn[r]||(gn[r]=e)}function pn(){return Zt}function ln(r,e){e&&(de("Patches"),r.u=[],r.s=[],r.v=e)}function Pr(r){hn(r),r.p.forEach(Ql),r.p=null}function hn(r){r===Zt&&(Zt=r.l)}function Za(r){return Zt={p:[],l:Zt,h:r,m:!0,_:0}}function Ql(r){var e=r[M];e.i===0||e.i===1?e.j():e.g=!0}function dn(r,e){e._=e.p.length;var t=e.p[0],o=r!==void 0&&r!==t;return e.h.O||de("ES5").S(e,r,o),o?(t[M].P&&(Pr(e),ee(4)),ne(r)&&(r=kr(e,r),e.l||Lr(e,r)),e.u&&de("Patches").M(t[M].t,r,e.u,e.s)):r=kr(e,t,[]),Pr(e),e.u&&e.v(e.u,e.s),r!==ns?r:void 0}function kr(r,e,t){if(Sn(e))return e;var o=e[M];if(!o)return Qe(e,function(c,l){return qa(r,o,e,c,l,t)},!0),e;if(o.A!==r)return e;if(!o.P)return Lr(r,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var i=o.i===4||o.i===5?o.o=vn(o.k):o.o,a=i,s=!1;o.i===3&&(a=new Set(i),i.clear(),s=!0),Qe(a,function(c,l){return qa(r,o,i,c,l,t,s)}),Lr(r,i,!1),t&&r.u&&de("Patches").N(o,t,r.u,r.s)}return o.o}function qa(r,e,t,o,i,a,s){if(ve(i)){var c=kr(r,i,a&&e&&e.i!==3&&!ut(e.R,o)?a.concat(o):void 0);if(ts(t,o,c),!ve(c))return;r.m=!1}else s&&t.add(i);if(ne(i)&&!Sn(i)){if(!r.h.D&&r._<1)return;kr(r,i),e&&e.A.l||Lr(r,i)}}function Lr(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&xn(e,t)}function un(r,e){var t=r[M];return(t?Te(t):r)[e]}function Ya(r,e){if(e in r)for(var t=Object.getPrototypeOf(r);t;){var o=Object.getOwnPropertyDescriptor(t,e);if(o)return o;t=Object.getPrototypeOf(t)}}function Pe(r){r.P||(r.P=!0,r.l&&Pe(r.l))}function fn(r){r.o||(r.o=vn(r.t))}function mn(r,e,t){var o=yn(e)?de("MapSet").F(e,t):bn(e)?de("MapSet").T(e,t):r.O?function(i,a){var s=Array.isArray(i),c={i:s?1:0,A:a?a.A:pn(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},l=c,u=qt;s&&(l=[c],u=Gt);var p=Proxy.revocable(l,u),h=p.revoke,g=p.proxy;return c.k=g,c.j=h,g}(e,t):de("ES5").J(e,t);return(t?t.A:pn()).p.push(o),o}function ed(r){return ve(r)||ee(22,r),function e(t){if(!ne(t))return t;var o,i=t[M],a=pt(t);if(i){if(!i.P&&(i.i<4||!de("ES5").K(i)))return i.t;i.I=!0,o=Ja(t,a),i.I=!1}else o=Ja(t,a);return Qe(o,function(s,c){i&&Yl(i.t,s)===c||ts(o,s,e(c))}),a===3?new Set(o):o}(r)}function Ja(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return vn(r)}function os(){function r(s,c){var l=a[s];return l?l.enumerable=c:a[s]=l={configurable:!0,enumerable:c,get:function(){var u=this[M];return qt.get(u,s)},set:function(u){var p=this[M];qt.set(p,s,u)}},l}function e(s){for(var c=s.length-1;c>=0;c--){var l=s[c][M];if(!l.P)switch(l.i){case 5:o(l)&&Pe(l);break;case 4:t(l)&&Pe(l)}}}function t(s){for(var c=s.t,l=s.k,u=ft(l),p=u.length-1;p>=0;p--){var h=u[p];if(h!==M){var g=c[h];if(g===void 0&&!ut(c,h))return!0;var y=l[h],b=y&&y[M];if(b?b.t!==g:!rs(y,g))return!0}}var O=!!c[M];return u.length!==ft(c).length+(O?0:1)}function o(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 u=0;u<c.length;u++)if(!c.hasOwnProperty(u))return!0;return!1}function i(s){s.g&&ee(3,JSON.stringify(Te(s)))}var a={};Xl("ES5",{J:function(s,c){var l=Array.isArray(s),u=function(h,g){if(h){for(var y=Array(g.length),b=0;b<g.length;b++)Object.defineProperty(y,""+b,r(b,!0));return y}var O=is(g);delete O[M];for(var C=ft(O),A=0;A<C.length;A++){var R=C[A];O[R]=r(R,h||!!O[R].enumerable)}return Object.create(Object.getPrototypeOf(g),O)}(l,s),p={i:l?5:4,A:c?c.A:pn(),P:!1,I:!1,R:{},l:c,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,M,{value:p,writable:!0}),u},S:function(s,c,l){l?ve(c)&&c[M].A===s&&e(s.p):(s.u&&function u(p){if(p&&typeof p=="object"){var h=p[M];if(h){var g=h.t,y=h.k,b=h.R,O=h.i;if(O===4)Qe(y,function(x){x!==M&&(g[x]!==void 0||ut(g,x)?b[x]||u(y[x]):(b[x]=!0,Pe(h)))}),Qe(g,function(x){y[x]!==void 0||ut(y,x)||(b[x]=!1,Pe(h))});else if(O===5){if(o(h)&&(Pe(h),b.length=!0),y.length<g.length)for(var C=y.length;C<g.length;C++)b[C]=!1;else for(var A=g.length;A<y.length;A++)b[A]=!0;for(var R=Math.min(y.length,g.length),S=0;S<R;S++)y.hasOwnProperty(S)||(b[S]=!0),b[S]===void 0&&u(y[S])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?t(s):o(s)}})}var Xa,Zt,On=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",td=typeof Map<"u",rd=typeof Set<"u",Qa=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ns=On?Symbol.for("immer-nothing"):((Xa={})["immer-nothing"]=!0,Xa),es=On?Symbol.for("immer-draftable"):"__$immer_draftable",M=On?Symbol.for("immer-state"):"__$immer_state";var od=""+Object.prototype.constructor,ft=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,is=Object.getOwnPropertyDescriptors||function(r){var e={};return ft(r).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)}),e},gn={},qt={get:function(r,e){if(e===M)return r;var t=Te(r);if(!ut(t,e))return function(i,a,s){var c,l=Ya(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 o=t[e];return r.I||!ne(o)?o:o===un(r.t,e)?(fn(r),r.o[e]=mn(r.A.h,o,r)):o},has:function(r,e){return e in Te(r)},ownKeys:function(r){return Reflect.ownKeys(Te(r))},set:function(r,e,t){var o=Ya(Te(r),e);if(o?.set)return o.set.call(r.k,t),!0;if(!r.P){var i=un(Te(r),e),a=i?.[M];if(a&&a.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(rs(t,i)&&(t!==void 0||ut(r.t,e)))return!0;fn(r),Pe(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 un(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,fn(r),Pe(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=Te(r),o=Reflect.getOwnPropertyDescriptor(t,e);return o&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:o.enumerable,value:t[e]}},defineProperty:function(){ee(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){ee(12)}},Gt={};Qe(qt,function(r,e){Gt[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Gt.deleteProperty=function(r,e){return Gt.set.call(this,r,e,void 0)},Gt.set=function(r,e,t){return qt.set.call(this,r[0],e,t,r[0])};var nd=function(){function r(t){var o=this;this.O=Qa,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var c=a;a=i;var l=o;return function(O){var C=this;O===void 0&&(O=c);for(var A=arguments.length,R=Array(A>1?A-1:0),S=1;S<A;S++)R[S-1]=arguments[S];return l.produce(O,function(x){var w;return(w=a).call.apply(w,[C,x].concat(R))})}}var u;if(typeof a!="function"&&ee(6),s!==void 0&&typeof s!="function"&&ee(7),ne(i)){var p=Za(o),h=mn(o,i,void 0),g=!0;try{u=a(h),g=!1}finally{g?Pr(p):hn(p)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(O){return ln(p,s),dn(O,p)},function(O){throw Pr(p),O}):(ln(p,s),dn(u,p))}if(!i||typeof i!="object"){if((u=a(i))===void 0&&(u=i),u===ns&&(u=void 0),o.D&&xn(u,!0),s){var y=[],b=[];de("Patches").M(i,u,y,b),s(y,b)}return u}ee(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(u){for(var p=arguments.length,h=Array(p>1?p-1:0),g=1;g<p;g++)h[g-1]=arguments[g];return o.produceWithPatches(u,function(y){return i.apply(void 0,[y].concat(h))})};var s,c,l=o.produce(i,a,function(u,p){s=u,c=p});return typeof Promise<"u"&&l instanceof Promise?l.then(function(u){return[u,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){ne(t)||ee(8),ve(t)&&(t=ed(t));var o=Za(this),i=mn(this,t,void 0);return i[M].C=!0,hn(o),i},e.finishDraft=function(t,o){var i=t&&t[M],a=i.A;return ln(a,o),dn(void 0,a)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Qa&&ee(20),this.O=t},e.applyPatches=function(t,o){var i;for(i=o.length-1;i>=0;i--){var a=o[i];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}i>-1&&(o=o.slice(i+1));var s=de("Patches").$;return ve(t)?s(t,o):this.produce(t,function(c){return s(c,o)})},r}(),Q=new nd,id=Q.produce,Ym=Q.produceWithPatches.bind(Q),Jm=Q.setAutoFreeze.bind(Q),Xm=Q.setUseProxies.bind(Q),Qm=Q.applyPatches.bind(Q),eg=Q.createDraft.bind(Q),tg=Q.finishDraft.bind(Q),Ur=id;function ke(r){"@babel/helpers - typeof";return ke=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},ke(r)}function wn(r,e){if(ke(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var o=t.call(r,e||"default");if(ke(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function En(r){var e=wn(r,"string");return ke(e)==="symbol"?e:String(e)}function Cn(r,e,t){return e=En(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function as(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,o)}return t}function Mr(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?as(Object(t),!0).forEach(function(o){Cn(r,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):as(Object(t)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(t,o))})}return r}function K(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 ss=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),An=function(){return Math.random().toString(36).substring(7).split("").join(".")},Dr={INIT:"@@redux/INIT"+An(),REPLACE:"@@redux/REPLACE"+An(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+An()}};function ad(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 Rn(r,e,t){var o;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(K(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(K(1));return t(Rn)(r,e)}if(typeof r!="function")throw new Error(K(2));var i=r,a=e,s=[],c=s,l=!1;function u(){c===s&&(c=s.slice())}function p(){if(l)throw new Error(K(3));return a}function h(O){if(typeof O!="function")throw new Error(K(4));if(l)throw new Error(K(5));var C=!0;return u(),c.push(O),function(){if(C){if(l)throw new Error(K(6));C=!1,u();var R=c.indexOf(O);c.splice(R,1),s=null}}}function g(O){if(!ad(O))throw new Error(K(7));if(typeof O.type>"u")throw new Error(K(8));if(l)throw new Error(K(9));try{l=!0,a=i(a,O)}finally{l=!1}for(var C=s=c,A=0;A<C.length;A++){var R=C[A];R()}return O}function y(O){if(typeof O!="function")throw new Error(K(10));i=O,g({type:Dr.REPLACE})}function b(){var O,C=h;return O={subscribe:function(R){if(typeof R!="object"||R===null)throw new Error(K(11));function S(){R.next&&R.next(p())}S();var x=C(S);return{unsubscribe:x}}},O[ss]=function(){return this},O}return g({type:Dr.INIT}),o={dispatch:g,subscribe:h,getState:p,replaceReducer:y},o[ss]=b,o}function sd(r){Object.keys(r).forEach(function(e){var t=r[e],o=t(void 0,{type:Dr.INIT});if(typeof o>"u")throw new Error(K(12));if(typeof t(void 0,{type:Dr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(K(13))})}function cs(r){for(var e=Object.keys(r),t={},o=0;o<e.length;o++){var i=e[o];typeof r[i]=="function"&&(t[i]=r[i])}var a=Object.keys(t),s,c;try{sd(t)}catch(l){c=l}return function(u,p){if(u===void 0&&(u={}),c)throw c;if(0)var h;for(var g=!1,y={},b=0;b<a.length;b++){var O=a[b],C=t[O],A=u[O],R=C(A,p);if(typeof R>"u"){var S=p&&p.type;throw new Error(K(14))}y[O]=R,g=g||R!==A}return g=g||a.length!==Object.keys(u).length,g?y:u}}function ht(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,i){return function(){return o(i.apply(void 0,arguments))}})}function ls(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return function(o){return function(){var i=o.apply(void 0,arguments),a=function(){throw new Error(K(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(l){return l(s)});return a=ht.apply(void 0,c)(i.dispatch),Mr(Mr({},i),{},{dispatch:a})}}}function ds(r){var e=function(o){var i=o.dispatch,a=o.getState;return function(s){return function(c){return typeof c=="function"?c(i,a,r):s(c)}}};return e}var us=ds();us.withExtraArgument=ds;var Nn=us;var gs=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[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 o(){this.constructor=e}e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}}(),cd=function(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,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(u){return function(p){return l([u,p])}}function l(u){if(o)throw new TypeError("Generator is already executing.");for(;t;)try{if(o=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,i=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){t.label=u[1];break}if(u[0]===6&&t.label<a[1]){t.label=a[1],a=u;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(u);break}a[2]&&t.ops.pop(),t.trys.pop();continue}u=e.call(r,t)}catch(p){u=[6,p],i=0}finally{o=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},mt=function(r,e){for(var t=0,o=e.length,i=r.length;t<o;t++,i++)r[i]=e[t];return r},ld=Object.defineProperty,dd=Object.defineProperties,ud=Object.getOwnPropertyDescriptors,fs=Object.getOwnPropertySymbols,fd=Object.prototype.hasOwnProperty,pd=Object.prototype.propertyIsEnumerable,ps=function(r,e,t){return e in r?ld(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},Le=function(r,e){for(var t in e||(e={}))fd.call(e,t)&&ps(r,t,e[t]);if(fs)for(var o=0,i=fs(e);o<i.length;o++){var t=i[o];pd.call(e,t)&&ps(r,t,e[t])}return r},In=function(r,e){return dd(r,ud(e))},hd=function(r,e,t){return new Promise(function(o,i){var a=function(l){try{c(t.next(l))}catch(u){i(u)}},s=function(l){try{c(t.throw(l))}catch(u){i(u)}},c=function(l){return l.done?o(l.value):Promise.resolve(l.value).then(a,s)};c((t=t.apply(r,e)).next())})};var md=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ht:ht.apply(null,arguments)},vg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function gd(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 yd=function(r){gs(e,r);function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];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=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,mt([void 0],t[0].concat(this)))):new(e.bind.apply(e,mt([void 0],t.concat(this))))},e}(Array),bd=function(r){gs(e,r);function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];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=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,mt([void 0],t[0].concat(this)))):new(e.bind.apply(e,mt([void 0],t.concat(this))))},e}(Array);function Pn(r){return ne(r)?Ur(r,function(){}):r}function vd(r){return typeof r=="boolean"}function xd(){return function(e){return Sd(e)}}function Sd(r){r===void 0&&(r={});var e=r.thunk,t=e===void 0?!0:e,o=r.immutableCheck,i=o===void 0?!0:o,a=r.serializableCheck,s=a===void 0?!0:a,c=new yd;if(t&&(vd(t)?c.push(Nn):c.push(Nn.withExtraArgument(t.extraArgument))),0){if(i)var l;if(s)var u}return c}var _n=!0;function ys(r){var e=xd(),t=r||{},o=t.reducer,i=o===void 0?void 0:o,a=t.middleware,s=a===void 0?e():a,c=t.devTools,l=c===void 0?!0:c,u=t.preloadedState,p=u===void 0?void 0:u,h=t.enhancers,g=h===void 0?void 0:h,y;if(typeof i=="function")y=i;else if(gd(i))y=cs(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),!_n&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!_n&&b.some(function(x){return typeof x!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=ls.apply(void 0,b),C=ht;l&&(C=md(Le({trace:!_n},typeof l=="object"&&l)));var A=new bd(O),R=A;Array.isArray(g)?R=mt([O],g):typeof g=="function"&&(R=g(A));var S=C.apply(void 0,R);return Rn(y,p,S)}function Ue(r,e){function t(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(e){var a=e.apply(void 0,o);if(!a)throw new Error("prepareAction did not return an object");return Le(Le({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:o[0]}}return t.toString=function(){return""+r},t.type=r,t.match=function(o){return o.type===r},t}function bs(r){var e={},t=[],o,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 o=a,i}};return r(i),[e,t,o]}function Od(r){return typeof r=="function"}function wd(r,e,t,o){t===void 0&&(t=[]);var i=typeof e=="function"?bs(e):[e,t,o],a=i[0],s=i[1],c=i[2],l;if(Od(r))l=function(){return Pn(r())};else{var u=Pn(r);l=function(){return u}}function p(h,g){h===void 0&&(h=l());var y=mt([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(ve(b)){var C=b,A=O(C,g);return A===void 0?b:A}else{if(ne(b))return Ur(b,function(R){return O(R,g)});var A=O(b,g);if(A===void 0){if(b===null)return b;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}return b},h)}return p.getInitialState=l,p}function Ed(r,e){return r+"/"+e}function vs(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:Pn(r.initialState),o=r.reducers||{},i=Object.keys(o),a={},s={},c={};i.forEach(function(p){var h=o[p],g=Ed(e,p),y,b;"reducer"in h?(y=h.reducer,b=h.prepare):y=h,a[p]=y,s[g]=y,c[p]=b?Ue(g,b):Ue(g)});function l(){var p=typeof r.extraReducers=="function"?bs(r.extraReducers):[r.extraReducers],h=p[0],g=h===void 0?{}:h,y=p[1],b=y===void 0?[]:y,O=p[2],C=O===void 0?void 0:O,A=Le(Le({},g),s);return wd(t,function(R){for(var S in A)R.addCase(S,A[S]);for(var x=0,w=b;x<w.length;x++){var I=w[x];R.addMatcher(I.matcher,I.reducer)}C&&R.addDefaultCase(C)})}var u;return{name:e,reducer:function(p,h){return u||(u=l()),u(p,h)},actions:c,caseReducers:a,getInitialState:function(){return u||(u=l()),u.getInitialState()}}}var Cd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Ad=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=Cd[Math.random()*64|0];return e},Rd=["name","message","stack","code"],Tn=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),hs=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),Nd=function(r){if(typeof r=="object"&&r!==null){for(var e={},t=0,o=Rd;t<o.length;t++){var i=o[t];typeof r[i]=="string"&&(e[i]=r[i])}return e}return{message:String(r)}},wg=function(){function r(e,t,o){var i=Ue(e+"/fulfilled",function(p,h,g,y){return{payload:p,meta:In(Le({},y||{}),{arg:g,requestId:h,requestStatus:"fulfilled"})}}),a=Ue(e+"/pending",function(p,h,g){return{payload:void 0,meta:In(Le({},g||{}),{arg:h,requestId:p,requestStatus:"pending"})}}),s=Ue(e+"/rejected",function(p,h,g,y,b){return{payload:y,error:(o&&o.serializeError||Nd)(p||"Rejected"),meta:In(Le({},b||{}),{arg:g,requestId:h,rejectedWithValue:!!y,requestStatus:"rejected",aborted:p?.name==="AbortError",condition:p?.name==="ConditionError"})}}),c=!1,l=typeof AbortController<"u"?AbortController:function(){function p(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return p.prototype.abort=function(){},p}();function u(p){return function(h,g,y){var b=o?.idGenerator?o.idGenerator(p):Ad(),O=new l,C,A=!1;function R(x){C=x,O.abort()}var S=function(){return hd(this,null,function(){var x,w,I,_,j,k,m;return cd(this,function(v){switch(v.label){case 0:return v.trys.push([0,4,,5]),_=(x=o?.condition)==null?void 0:x.call(o,p,{getState:g,extra:y}),_d(_)?[4,_]:[3,2];case 1:_=v.sent(),v.label=2;case 2:if(_===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,j=new Promise(function(E,P){return O.signal.addEventListener("abort",function(){return P({name:"AbortError",message:C||"Aborted"})})}),h(a(b,p,(w=o?.getPendingMeta)==null?void 0:w.call(o,{requestId:b,arg:p},{getState:g,extra:y}))),[4,Promise.race([j,Promise.resolve(t(p,{dispatch:h,getState:g,extra:y,requestId:b,signal:O.signal,abort:R,rejectWithValue:function(E,P){return new Tn(E,P)},fulfillWithValue:function(E,P){return new hs(E,P)}})).then(function(E){if(E instanceof Tn)throw E;return E instanceof hs?i(E.payload,b,p,E.meta):i(E,b,p)})])];case 3:return I=v.sent(),[3,5];case 4:return k=v.sent(),I=k instanceof Tn?s(null,b,p,k.payload,k.meta):s(k,b,p),[3,5];case 5:return m=o&&!o.dispatchConditionRejection&&s.match(I)&&I.meta.condition,m||h(I),[2,I]}})})}();return Object.assign(S,{abort:R,requestId:b,arg:p,unwrap:function(){return S.then(Id)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return r.withTypes=function(){return r},r}();function Id(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function _d(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var xs="listener",Ss="completed",Os="cancelled",Eg="task-"+Os,Cg="task-"+Ss,Ag=xs+"-"+Os,Rg=xs+"-"+Ss;var kn="listenerMiddleware";var Ng=Ue(kn+"/add"),Ig=Ue(kn+"/removeAll"),_g=Ue(kn+"/remove");var ms,Tg=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(ms||(ms=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},Td=function(r){return function(e){setTimeout(e,r)}},Pg=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Td(10);os();window.ftReduxStores||(window.ftReduxStores={});var xe=class r{static get(e){var t;let o=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(Je(a))return a;if(i==null)return;let s=vs({...i,reducers:(t=i.reducers)!==null&&t!==void 0?t:{}}),c=ys({reducer:(l,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...l,...u.overwrites}:s.reducer(l,u)});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 Vt,this.actions=new Proxy(this.reduxSlice.actions,{get:(o,i,a)=>{let s=i,c=o[s];return c?(...l)=>{let u=c(...l);return this.reduxStore.dispatch(u),u}: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 Pd(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))Je(e)&&e.clear()}var Dn={};U(Dn,{scrollHelper:()=>kd});var Un,Fr=new Map,Mn=class{lock(e,t){if(t){let o=Fr.get(t);if(o==null||o===e)return Fr.set(t,e),t}}release(e,t){t&&Fr.get(t)===e&&Fr.delete(t)}findFirstScrollableParent(e){let t,o=i=>{var a;i.stopPropagation();let s,c;for(let l of i.composedPath()){let u=l,p=this.elementCanScroll(u);if(p&&u.clientHeight&&u.clientHeight<u.scrollHeight){s=u;break}else p&&c==null&&(c=u)}t=(a=s??c)!==null&&a!==void 0?a:document.body};return e.addEventListener("find-scrollable-parent",o),e.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),e.removeEventListener("find-scrollable-parent",o),t}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,t){let o=0;for(;t&&t.offsetParent!==e.offsetParent;)o+=t.offsetTop,t=t.offsetParent;return o+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 o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let i=this.getAbsoluteScrollOffset(o,e),a=i-o.clientHeight+e.clientHeight,s=i,c=To(0,(s-o.scrollTop)/(s-a),1),l=this.computeTopOffsetRatio(t?.position,c)*(a-s)+s;o.scrollTo({behavior:t?.behavior,top:l})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(Un=window.FluidTopicsScrollHelper)!==null&&Un!==void 0?Un:new Mn;var kd=window.FluidTopicsScrollHelper;var Fn={};U(Fn,{shadowQuerySelector:()=>Ld,shadowQuerySelectorAll:()=>Ud});function Ld(r,e,...t){var o;let i=r.querySelector(e);for(let a of t)i=(o=i?.shadowRoot)===null||o===void 0?void 0:o.querySelector(a);return i}function Ud(r,e,...t){let o=[...r.querySelectorAll(e)];for(let i of t)o=o.flatMap(a=>{var s,c;return[...(c=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&c!==void 0?c:[]]});return o}var $n={};U($n,{serializeRequest:()=>Dd});function Md(r){return`"${r}"`}function Dd(r,e){var t,o,i,a;let s=new URLSearchParams({"content-lang":(t=e.contentLocale)!==null&&t!==void 0?t:"all"});if(((o=e.query)===null||o===void 0?void 0:o.length)>0&&s.append("query",e.query),e.scope&&e.scope!=="DEFAULT"&&s.append("scope",e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&s.append("virtual-field",e.virtualField.toLowerCase()),e.periodFilter){let l=e.periodFilter.period,u=l?`_${l.from}_${l.to}`:"";s.append("period",e.periodFilter.periodType.toLowerCase()+u)}if(((i=e.sort)===null||i===void 0?void 0:i.length)>0&&e.sort[0].key==="ft:lastEdition"&&s.append("sort","last_update"),((a=e.filters)===null||a===void 0?void 0:a.length)>0){let l=e.filters.map(u=>{let p=u.values.map(h=>h.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*")).map(h=>encodeURIComponent(Md(h))).join("_");return`${u.key}~${p}`}).join("*");s.append("filters",l)}return new URL(`${r.replace(/\/+$/,"")}/search?${s.toString()}`).href}var Bn={};U(Bn,{toFtFormComponent:()=>Fd});var $r=Symbol("elementInternals");function Fd(r,e){class t extends r{static get formAssociated(){return!0}get form(){return this[$r].form}constructor(...i){super(i),this[$r]=this.attachInternals(),this[$r].role=e}setFormValue(i){this[$r].setFormValue(i)}}return t}var Wn={};U(Wn,{DateFormatter:()=>gt});var gt=class{static format(e,t,o,i){return window.moment?window.moment(e).locale(t).format(this.getDateFormat(o,i)):e}static getDateFormat(e,t){return e?t?"lll":"ll":t?"L LT":"L"}};var Hn,zn,jn,Kn,$d=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((jn=(zn=(Hn=window.safari)===null||Hn===void 0?void 0:Hn.pushNotification)===null||zn===void 0?void 0:zn.toString())!==null&&jn!==void 0?jn:"")==="[object SafariRemoteNotification]",Bd="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Kn=window.ftGlobals)!==null&&Kn!==void 0?Kn:{lit:bo,litDecorators:xo,litRepeat:So,litClassMap:Oo,litStyleMap:wo,litUnsafeHTML:Eo,wcUtils:{...Ro,...Ao,...No,...Wn,...Io,...ko,...Do,...Wo,...Xo,...Mo,...rn,...en,...Ha,...Po,...an,...sn,...ja,...cn,...Ln,...Qo,...Dn,...Fn,...$n,...Bn,isSafari:$d,isTouchScreen:Bd,setVariable:Or}};var ws=r=>xe.get({name:"ft-reader-"+r,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}});var Vn=class{constructor(e,t){this.mapId=e,this.paginatedToc=t,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(e,t,o){return e.flatMap(i=>(i.pageConfiguration&&this.registerPage(this.buildPage(i,o)),i.tocId==null?this.extractPagesToc(i.children,t,o):[{tocId:i.tocId,title:i.title,depth:t,children:this.extractPagesToc(i.children,t+1,i.tocId)}]))}convertNodes(e,t,o){return e.flatMap(i=>{var a,s,c;if(i.tocId==null)return[...this.convertSectionNodes((a=i.pageToc)!==null&&a!==void 0?a:[],t,i.tocId),...this.convertNodes(i.children,t,i.tocId)];let l=(s=i.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),u={tocId:i.tocId,contentId:i.contentId,title:i.title,hasRating:i.hasRating,origin:i.origin,prettyUrl:l,depth:t,parentTocId:o,children:[]};this.register(u);let p=this.convertSectionNodes((c=i.pageToc)!==null&&c!==void 0?c:[],t+1,i.tocId),h=this.convertNodes(i.children,t+1,u.tocId);return u.children=[...p,...h],[u]})}convertSectionNodes(e,t,o){return e.flatMap(i=>{var a;let s=(a=i.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),c={...i,prettyUrl:s,depth:t,parentTocId:o,children:[]};return this.register(c),c.children=this.convertSectionNodes(i.children,t+1,i.tocId),[c]})}buildPage(e,t){var o,i,a,s,c,l;let u={number:this.pages.length+1,title:(o=e.title)!==null&&o!==void 0?o:"",rootTocId:(i=e.tocId)!==null&&i!==void 0?i:"root",toc:((a=e.pageToc)!==null&&a!==void 0?a:[]).map(g=>this.nodeByTocId[g.tocId]),topics:[],hiddenTopics:[],breadcrumb:t?this.buildBreadcrumb(this.nodeByTocId[t]):[]},p=(g,y)=>(y?u.topics:u.hiddenTopics).push(g),h=(c=(s=e.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&c!==void 0?c:[];return u.breadcrumb.forEach((g,y)=>{p(g,h[y])}),e.tocId&&p(e.tocId,e.pageConfiguration.isVisible),u.topics.push(...this.tocIds((l=e.pageToc)!==null&&l!==void 0?l:[])),u}registerPage(e){for(let t of[...e.topics,...e.hiddenTopics])this.pageByTocId[t]||(this.pageByTocId[t]=e);this.pages.push(e)}tocIds(e){return e.flatMap(t=>[t.tocId,...this.tocIds(t.children)])}buildBreadcrumb(e){let t=[e.tocId];for(;e?.parentTocId;)t.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return t}register(e){e.prettyUrl&&(this.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},Br=class{convertPaginatedToc(e,t){return new Vn(e,t).build()}};var _y=rc(Cs(),1);var As;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(As||(As={}));var Rs;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(Rs||(Rs={}));var Ns;(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"})(Ns||(Ns={}));var Is;(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"})(Is||(Is={}));var _s;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(_s||(_s={}));var Ts;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(Ts||(Ts={}));var Ps;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(Ps||(Ps={}));var Wr;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Wr||(Wr={}));var ks;(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"})(ks||(ks={}));var Ls;(function(r){r.ASC="ASC",r.DESC="DESC"})(Ls||(Ls={}));var Us;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(Us||(Us={}));var Ms;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(Ms||(Ms={}));var Ds;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(Ds||(Ds={}));var Fs;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(Fs||(Fs={}));var $s;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})($s||($s={}));var Bs;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(Bs||(Bs={}));var Ws;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS"})(Ws||(Ws={}));var D;(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"})(D||(D={}));var Hs;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(Hs||(Hs={}));var Wd={[D.PERSONAL_BOOK_SHARE_USER]:[D.PERSONAL_BOOK_USER],[D.HTML_EXPORT_USER]:[D.PERSONAL_BOOK_USER],[D.PDF_EXPORT_USER]:[D.PERSONAL_BOOK_USER],[D.KHUB_ADMIN]:[D.CONTENT_PUBLISHER],[D.ADMIN]:[D.KHUB_ADMIN,D.USERS_ADMIN,D.PORTAL_ADMIN],[D.DEVELOPER]:[D.BETA_USER,D.DEBUG_USER]};function zs(r,e){return r===e||(Wd[r]??[]).some(t=>zs(t,e))}function et(r,e){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(o=>zs(o,e))}var Se;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Se||(Se={}));var js=H`
50
- `;var Hd="ft-app-info",Gn=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},zd={session:(r,e)=>{re(r.session,e.payload)||(r.session=e.payload,setTimeout(()=>N.eventBus.dispatchEvent(new Gn(e.payload)),0))}},N=xe.get({name:Hd,reducers:zd,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 tt=class r{static get(e){let{baseUrl:t,apiIntegrationIdentifier:o}=N.getState(),i=e??o;if(t&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(t,i,!0)}static await(e){return new Promise(t=>{let o=r.get(e);if(o)t(o);else{let i=N.subscribe(()=>{o=r.get(e),o&&(i(),t(o))})}})}};var ue=class{constructor(e=!0,t){var o;this.overrideApi=t;let i=this.constructor;i.commonCache=(o=i.commonCache)!==null&&o!==void 0?o:new se,this.cache=e?i.commonCache:new se}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:tt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):tt.await()}clearCache(){this.cache.clearAll()}};var Ks,jd=Symbol("clearAfterUnitTest"),Hr=class extends ue{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ks]=()=>{this.defaultMessages={},this.cache=new se,this.listeners={}},this.currentUiLocale=N.getState().uiLocale,N.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=N.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 o;if(e=e.toLowerCase(),Object.keys(t).length>0){let i={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...t};re(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}await this.fetchContext(e)}resolveContext(e){var t,o;return this.fetchContext(e),(o=(t=this.cache.getNow(e))===null||t===void 0?void 0:t.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,t){let o=e.toLowerCase();return this.resolveContext(o)[t]}resolveMessage(e,t,...o){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new Kt((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(t,...o)}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 o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o: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=>Sr(0).then(()=>t()).catch(()=>null)))}};Ks=jd;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Hr{constructor(){super(async(r,e)=>(await this.awaitApi).getFluidTopicsMessageContext(r,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Hr{constructor(){super(async(r,e)=>(await this.awaitApi).getCustomMessageContext(r,e))}});var Vs=window.FluidTopicsI18nService,Yy=window.FluidTopicsCustomI18nService;var V=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);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},W=class extends X{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=()=>tt.get(),this.messageContexts=[],this.cache=new se,this.cleanSessionDebouncer=new Y}render(){return nt`
50
+ `;var Ja={};var hn={};M(hn,{ParametrizedLabelResolver:()=>qt});var qt=class r{constructor(e,t){this.defaultLabels=e,this.labels=t}resolve(e,...t){var o,i;e=this.resolvePluralKey(e,t);let a=(i=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&i!==void 0?i:"";return r.replaceParameters(a,...t)}static replaceParameters(e,...t){return t.forEach((o,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(o,s))),e}resolvePluralKey(e,t){for(let o of t)if(typeof o=="number"){let i=`${String(e)}[\\=${o}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,t){return e instanceof Date?r.formatDate(e,t):e??""}static formatDate(e,t){let o=i=>t?.includes("date")?e.toLocaleDateString(i):t?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return o(document.documentElement.lang)}catch{return o()}}};var Bn={};M(Bn,{FtCommandQueue:()=>Yt,FtLitElementRedux:()=>Pe,FtReduxStore:()=>Oe,clearAllStores:()=>$d,isFtReduxStore:()=>tt,redux:()=>ue,reduxEventListener:()=>rd,reduxReactive:()=>td});var td=()=>(r,e)=>{var t;let o=r.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(t=o.reduxReactiveProperties)===null||t===void 0||t.add(e)},ue=r=>{let e=r??{};return(t,o)=>{var i;let a={hasChanged:Ft,attribute:!1,...e};T(a)(t,o);let s=t.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(i=e.selector)!==null&&i!==void 0?i:l=>l[o],store:e.store})}},rd=r=>(e,t)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(t,r)};var Yt=class{constructor(){this.queue=[]}add(e,t=!1){t&&(this.queue=this.queue.filter(o=>o.type!==e.type)),this.queue.push(e)}consume(e){let t=this.queue.find(o=>o.type===e);return t&&(this.queue=this.queue.filter(o=>o!==t)),t}};function tt(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Xa,Qa,es,Ur=Symbol("internalReduxEventsUnsubscribers"),Te=Symbol("internalStoresUnsubscribers"),rt=Symbol("internalStores"),Pe=class extends ee{constructor(){super(...arguments),this[Xa]=new Map,this[Qa]=new Map,this[es]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(t=>e.has(t))&&this.updateFromStores()}getUnnamedStore(){if(this[rt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[rt].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[rt].get(e)}addStore(e,t){var o;t=(o=t??(tt(e)?e.name:void 0))!==null&&o!==void 0?o:"default-store",this.unsubscribeFromStore(t),this.setupStore(t,e)}removeStore(e){let t=typeof e=="string"?e:e.name;this.unsubscribeFromStore(t),this[rt].delete(t)}setupStore(e,t){this[rt].set(e,t),this.subscribeToStore(e,t),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[rt].forEach((e,t)=>this.subscribeToStore(t,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,t)=>{let o=this.constructor.getPropertyOptions(t);if(!o?.attribute||!this.hasAttribute(typeof o?.attribute=="string"?o.attribute:t)){let i=this.getStore(e.store);i&&(e.store?this[Te].has(e.store):this[Te].size>0)&&(this[t]=e.selector(i.getState(),this))}})}subscribeToStore(e,t){var o;this[Te].set(e,t.subscribe(()=>this.updateFromStores())),tt(t)&&t.eventBus&&((o=this.reduxConstructor.reduxEventListeners)===null||o===void 0||o.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||t.name===i.store)){let s=l=>this[a](l);t.eventBus.addEventListener(i.eventName,s),this[Ur].push(()=>t.eventBus.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Te].forEach((e,t)=>this.unsubscribeFromStore(t)),this[Ur].forEach(e=>e()),this[Ur]=[]}unsubscribeFromStore(e){this[Te].has(e)&&this[Te].get(e)(),this[Te].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};Xa=Te,Qa=rt,es=Ur;Pe.reduxProperties=new Map;Pe.reduxReactiveProperties=new Set;Pe.reduxEventListeners=new Map;function re(r){for(var e=arguments.length,t=Array(e>1?e-1:0),o=1;o<e;o++)t[o-1]=arguments[o];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 Se(r){return!!r&&!!r[$]}function ae(r){var e;return!!r&&(function(t){if(!t||typeof t!="object")return!1;var o=Object.getPrototypeOf(t);if(o===null)return!0;var i=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===dd}(r)||Array.isArray(r)||!!r[ss]||!!(!((e=r.constructor)===null||e===void 0)&&e[ss])||wn(r)||En(r))}function ot(r,e,t){t===void 0&&(t=!1),yt(r)===0?(t?Object.keys:gt)(r).forEach(function(o){t&&typeof o=="symbol"||e(o,r[o],r)}):r.forEach(function(o,i){return e(i,o,r)})}function yt(r){var e=r[$];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:wn(r)?2:En(r)?3:0}function mt(r,e){return yt(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function od(r,e){return yt(r)===2?r.get(e):r[e]}function cs(r,e,t){var o=yt(r);o===2?r.set(e,t):o===3?r.add(t):r[e]=t}function ls(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function wn(r){return cd&&r instanceof Map}function En(r){return ld&&r instanceof Set}function ke(r){return r.o||r.t}function Cn(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=fs(r);delete e[$];for(var t=gt(e),o=0;o<t.length;o++){var i=t[o],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 An(r,e){return e===void 0&&(e=!1),Rn(r)||Se(r)||!ae(r)||(yt(r)>1&&(r.set=r.add=r.clear=r.delete=nd),Object.freeze(r),e&&ot(r,function(t,o){return An(o,!0)},!0)),r}function nd(){re(2)}function Rn(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function fe(r){var e=On[r];return e||re(18,r),e}function id(r,e){On[r]||(On[r]=e)}function vn(){return Xt}function mn(r,e){e&&(fe("Patches"),r.u=[],r.s=[],r.v=e)}function Mr(r){xn(r),r.p.forEach(ad),r.p=null}function xn(r){r===Xt&&(Xt=r.l)}function ts(r){return Xt={p:[],l:Xt,h:r,m:!0,_:0}}function ad(r){var e=r[$];e.i===0||e.i===1?e.j():e.g=!0}function gn(r,e){e._=e.p.length;var t=e.p[0],o=r!==void 0&&r!==t;return e.h.O||fe("ES5").S(e,r,o),o?(t[$].P&&(Mr(e),re(4)),ae(r)&&(r=Dr(e,r),e.l||Fr(e,r)),e.u&&fe("Patches").M(t[$].t,r,e.u,e.s)):r=Dr(e,t,[]),Mr(e),e.u&&e.v(e.u,e.s),r!==us?r:void 0}function Dr(r,e,t){if(Rn(e))return e;var o=e[$];if(!o)return ot(e,function(l,c){return rs(r,o,e,l,c,t)},!0),e;if(o.A!==r)return e;if(!o.P)return Fr(r,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var i=o.i===4||o.i===5?o.o=Cn(o.k):o.o,a=i,s=!1;o.i===3&&(a=new Set(i),i.clear(),s=!0),ot(a,function(l,c){return rs(r,o,i,l,c,t,s)}),Fr(r,i,!1),t&&r.u&&fe("Patches").N(o,t,r.u,r.s)}return o.o}function rs(r,e,t,o,i,a,s){if(Se(i)){var l=Dr(r,i,a&&e&&e.i!==3&&!mt(e.R,o)?a.concat(o):void 0);if(cs(t,o,l),!Se(l))return;r.m=!1}else s&&t.add(i);if(ae(i)&&!Rn(i)){if(!r.h.D&&r._<1)return;Dr(r,i),e&&e.A.l||Fr(r,i)}}function Fr(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&An(e,t)}function yn(r,e){var t=r[$];return(t?ke(t):r)[e]}function os(r,e){if(e in r)for(var t=Object.getPrototypeOf(r);t;){var o=Object.getOwnPropertyDescriptor(t,e);if(o)return o;t=Object.getPrototypeOf(t)}}function Le(r){r.P||(r.P=!0,r.l&&Le(r.l))}function bn(r){r.o||(r.o=Cn(r.t))}function Sn(r,e,t){var o=wn(e)?fe("MapSet").F(e,t):En(e)?fe("MapSet").T(e,t):r.O?function(i,a){var s=Array.isArray(i),l={i:s?1:0,A:a?a.A:vn(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},c=l,u=Qt;s&&(c=[l],u=Jt);var h=Proxy.revocable(c,u),f=h.revoke,g=h.proxy;return l.k=g,l.j=f,g}(e,t):fe("ES5").J(e,t);return(t?t.A:vn()).p.push(o),o}function sd(r){return Se(r)||re(22,r),function e(t){if(!ae(t))return t;var o,i=t[$],a=yt(t);if(i){if(!i.P&&(i.i<4||!fe("ES5").K(i)))return i.t;i.I=!0,o=ns(t,a),i.I=!1}else o=ns(t,a);return ot(o,function(s,l){i&&od(i.t,s)===l||cs(o,s,e(l))}),a===3?new Set(o):o}(r)}function ns(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return Cn(r)}function ds(){function r(s,l){var c=a[s];return c?c.enumerable=l:a[s]=c={configurable:!0,enumerable:l,get:function(){var u=this[$];return Qt.get(u,s)},set:function(u){var h=this[$];Qt.set(h,s,u)}},c}function e(s){for(var l=s.length-1;l>=0;l--){var c=s[l][$];if(!c.P)switch(c.i){case 5:o(c)&&Le(c);break;case 4:t(c)&&Le(c)}}}function t(s){for(var l=s.t,c=s.k,u=gt(c),h=u.length-1;h>=0;h--){var f=u[h];if(f!==$){var g=l[f];if(g===void 0&&!mt(l,f))return!0;var y=c[f],b=y&&y[$];if(b?b.t!==g:!ls(y,g))return!0}}var O=!!l[$];return u.length!==gt(l).length+(O?0:1)}function o(s){var l=s.k;if(l.length!==s.t.length)return!0;var c=Object.getOwnPropertyDescriptor(l,l.length-1);if(c&&!c.get)return!0;for(var u=0;u<l.length;u++)if(!l.hasOwnProperty(u))return!0;return!1}function i(s){s.g&&re(3,JSON.stringify(ke(s)))}var a={};id("ES5",{J:function(s,l){var c=Array.isArray(s),u=function(f,g){if(f){for(var y=Array(g.length),b=0;b<g.length;b++)Object.defineProperty(y,""+b,r(b,!0));return y}var O=fs(g);delete O[$];for(var C=gt(O),E=0;E<C.length;E++){var A=C[E];O[A]=r(A,f||!!O[A].enumerable)}return Object.create(Object.getPrototypeOf(g),O)}(c,s),h={i:c?5:4,A:l?l.A:vn(),P:!1,I:!1,R:{},l,t:s,k:u,o:null,g:!1,C:!1};return Object.defineProperty(u,$,{value:h,writable:!0}),u},S:function(s,l,c){c?Se(l)&&l[$].A===s&&e(s.p):(s.u&&function u(h){if(h&&typeof h=="object"){var f=h[$];if(f){var g=f.t,y=f.k,b=f.R,O=f.i;if(O===4)ot(y,function(x){x!==$&&(g[x]!==void 0||mt(g,x)?b[x]||u(y[x]):(b[x]=!0,Le(f)))}),ot(g,function(x){y[x]!==void 0||mt(y,x)||(b[x]=!1,Le(f))});else if(O===5){if(o(f)&&(Le(f),b.length=!0),y.length<g.length)for(var C=y.length;C<g.length;C++)b[C]=!1;else for(var E=g.length;E<y.length;E++)b[E]=!0;for(var A=Math.min(y.length,g.length),S=0;S<A;S++)y.hasOwnProperty(S)||(b[S]=!0),b[S]===void 0&&u(y[S])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?t(s):o(s)}})}var is,Xt,Nn=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",cd=typeof Map<"u",ld=typeof Set<"u",as=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",us=Nn?Symbol.for("immer-nothing"):((is={})["immer-nothing"]=!0,is),ss=Nn?Symbol.for("immer-draftable"):"__$immer_draftable",$=Nn?Symbol.for("immer-state"):"__$immer_state";var dd=""+Object.prototype.constructor,gt=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,fs=Object.getOwnPropertyDescriptors||function(r){var e={};return gt(r).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)}),e},On={},Qt={get:function(r,e){if(e===$)return r;var t=ke(r);if(!mt(t,e))return function(i,a,s){var l,c=os(a,s);return c?"value"in c?c.value:(l=c.get)===null||l===void 0?void 0:l.call(i.k):void 0}(r,t,e);var o=t[e];return r.I||!ae(o)?o:o===yn(r.t,e)?(bn(r),r.o[e]=Sn(r.A.h,o,r)):o},has:function(r,e){return e in ke(r)},ownKeys:function(r){return Reflect.ownKeys(ke(r))},set:function(r,e,t){var o=os(ke(r),e);if(o?.set)return o.set.call(r.k,t),!0;if(!r.P){var i=yn(ke(r),e),a=i?.[$];if(a&&a.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(ls(t,i)&&(t!==void 0||mt(r.t,e)))return!0;bn(r),Le(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 yn(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,bn(r),Le(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=ke(r),o=Reflect.getOwnPropertyDescriptor(t,e);return o&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:o.enumerable,value:t[e]}},defineProperty:function(){re(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){re(12)}},Jt={};ot(Qt,function(r,e){Jt[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Jt.deleteProperty=function(r,e){return Jt.set.call(this,r,e,void 0)},Jt.set=function(r,e,t){return Qt.set.call(this,r[0],e,t,r[0])};var ud=function(){function r(t){var o=this;this.O=as,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var l=a;a=i;var c=o;return function(O){var C=this;O===void 0&&(O=l);for(var E=arguments.length,A=Array(E>1?E-1:0),S=1;S<E;S++)A[S-1]=arguments[S];return c.produce(O,function(x){var w;return(w=a).call.apply(w,[C,x].concat(A))})}}var u;if(typeof a!="function"&&re(6),s!==void 0&&typeof s!="function"&&re(7),ae(i)){var h=ts(o),f=Sn(o,i,void 0),g=!0;try{u=a(f),g=!1}finally{g?Mr(h):xn(h)}return typeof Promise<"u"&&u instanceof Promise?u.then(function(O){return mn(h,s),gn(O,h)},function(O){throw Mr(h),O}):(mn(h,s),gn(u,h))}if(!i||typeof i!="object"){if((u=a(i))===void 0&&(u=i),u===us&&(u=void 0),o.D&&An(u,!0),s){var y=[],b=[];fe("Patches").M(i,u,y,b),s(y,b)}return u}re(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(u){for(var h=arguments.length,f=Array(h>1?h-1:0),g=1;g<h;g++)f[g-1]=arguments[g];return o.produceWithPatches(u,function(y){return i.apply(void 0,[y].concat(f))})};var s,l,c=o.produce(i,a,function(u,h){s=u,l=h});return typeof Promise<"u"&&c instanceof Promise?c.then(function(u){return[u,s,l]}):[c,s,l]},typeof t?.useProxies=="boolean"&&this.setUseProxies(t.useProxies),typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var e=r.prototype;return e.createDraft=function(t){ae(t)||re(8),Se(t)&&(t=sd(t));var o=ts(this),i=Sn(this,t,void 0);return i[$].C=!0,xn(o),i},e.finishDraft=function(t,o){var i=t&&t[$],a=i.A;return mn(a,o),gn(void 0,a)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!as&&re(20),this.O=t},e.applyPatches=function(t,o){var i;for(i=o.length-1;i>=0;i--){var a=o[i];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}i>-1&&(o=o.slice(i+1));var s=fe("Patches").$;return Se(t)?s(t,o):this.produce(t,function(l){return s(l,o)})},r}(),te=new ud,fd=te.produce,ng=te.produceWithPatches.bind(te),ig=te.setAutoFreeze.bind(te),ag=te.setUseProxies.bind(te),sg=te.applyPatches.bind(te),cg=te.createDraft.bind(te),lg=te.finishDraft.bind(te),$r=fd;function Ue(r){"@babel/helpers - typeof";return Ue=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},Ue(r)}function In(r,e){if(Ue(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var o=t.call(r,e||"default");if(Ue(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function _n(r){var e=In(r,"string");return Ue(e)==="symbol"?e:String(e)}function Tn(r,e,t){return e=_n(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function ps(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable})),t.push.apply(t,o)}return t}function Br(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ps(Object(t),!0).forEach(function(o){Tn(r,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):ps(Object(t)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(t,o))})}return r}function G(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 hs=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Pn=function(){return Math.random().toString(36).substring(7).split("").join(".")},Wr={INIT:"@@redux/INIT"+Pn(),REPLACE:"@@redux/REPLACE"+Pn(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Pn()}};function pd(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 kn(r,e,t){var o;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(G(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(G(1));return t(kn)(r,e)}if(typeof r!="function")throw new Error(G(2));var i=r,a=e,s=[],l=s,c=!1;function u(){l===s&&(l=s.slice())}function h(){if(c)throw new Error(G(3));return a}function f(O){if(typeof O!="function")throw new Error(G(4));if(c)throw new Error(G(5));var C=!0;return u(),l.push(O),function(){if(C){if(c)throw new Error(G(6));C=!1,u();var A=l.indexOf(O);l.splice(A,1),s=null}}}function g(O){if(!pd(O))throw new Error(G(7));if(typeof O.type>"u")throw new Error(G(8));if(c)throw new Error(G(9));try{c=!0,a=i(a,O)}finally{c=!1}for(var C=s=l,E=0;E<C.length;E++){var A=C[E];A()}return O}function y(O){if(typeof O!="function")throw new Error(G(10));i=O,g({type:Wr.REPLACE})}function b(){var O,C=f;return O={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(G(11));function S(){A.next&&A.next(h())}S();var x=C(S);return{unsubscribe:x}}},O[hs]=function(){return this},O}return g({type:Wr.INIT}),o={dispatch:g,subscribe:f,getState:h,replaceReducer:y},o[hs]=b,o}function hd(r){Object.keys(r).forEach(function(e){var t=r[e],o=t(void 0,{type:Wr.INIT});if(typeof o>"u")throw new Error(G(12));if(typeof t(void 0,{type:Wr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(G(13))})}function ms(r){for(var e=Object.keys(r),t={},o=0;o<e.length;o++){var i=e[o];typeof r[i]=="function"&&(t[i]=r[i])}var a=Object.keys(t),s,l;try{hd(t)}catch(c){l=c}return function(u,h){if(u===void 0&&(u={}),l)throw l;if(0)var f;for(var g=!1,y={},b=0;b<a.length;b++){var O=a[b],C=t[O],E=u[O],A=C(E,h);if(typeof A>"u"){var S=h&&h.type;throw new Error(G(14))}y[O]=A,g=g||A!==E}return g=g||a.length!==Object.keys(u).length,g?y:u}}function bt(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,i){return function(){return o(i.apply(void 0,arguments))}})}function gs(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return function(o){return function(){var i=o.apply(void 0,arguments),a=function(){throw new Error(G(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(c){return c(s)});return a=bt.apply(void 0,l)(i.dispatch),Br(Br({},i),{},{dispatch:a})}}}function ys(r){var e=function(o){var i=o.dispatch,a=o.getState;return function(s){return function(l){return typeof l=="function"?l(i,a,r):s(l)}}};return e}var bs=ys();bs.withExtraArgument=ys;var Ln=bs;var ws=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(o[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 o(){this.constructor=e}e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}}(),md=function(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,i,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(u){return function(h){return c([u,h])}}function c(u){if(o)throw new TypeError("Generator is already executing.");for(;t;)try{if(o=1,i&&(a=u[0]&2?i.return:u[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;switch(i=0,a&&(u=[u[0]&2,a.value]),u[0]){case 0:case 1:a=u;break;case 4:return t.label++,{value:u[1],done:!1};case 5:t.label++,i=u[1],u=[0];continue;case 7:u=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){t.label=u[1];break}if(u[0]===6&&t.label<a[1]){t.label=a[1],a=u;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(u);break}a[2]&&t.ops.pop(),t.trys.pop();continue}u=e.call(r,t)}catch(h){u=[6,h],i=0}finally{o=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}},vt=function(r,e){for(var t=0,o=e.length,i=r.length;t<o;t++,i++)r[i]=e[t];return r},gd=Object.defineProperty,yd=Object.defineProperties,bd=Object.getOwnPropertyDescriptors,vs=Object.getOwnPropertySymbols,vd=Object.prototype.hasOwnProperty,xd=Object.prototype.propertyIsEnumerable,xs=function(r,e,t){return e in r?gd(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},Me=function(r,e){for(var t in e||(e={}))vd.call(e,t)&&xs(r,t,e[t]);if(vs)for(var o=0,i=vs(e);o<i.length;o++){var t=i[o];xd.call(e,t)&&xs(r,t,e[t])}return r},Un=function(r,e){return yd(r,bd(e))},Sd=function(r,e,t){return new Promise(function(o,i){var a=function(c){try{l(t.next(c))}catch(u){i(u)}},s=function(c){try{l(t.throw(c))}catch(u){i(u)}},l=function(c){return c.done?o(c.value):Promise.resolve(c.value).then(a,s)};l((t=t.apply(r,e)).next())})};var Od=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?bt:bt.apply(null,arguments)},Rg=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function wd(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){ws(e,r);function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];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=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,vt([void 0],t[0].concat(this)))):new(e.bind.apply(e,vt([void 0],t.concat(this))))},e}(Array),Cd=function(r){ws(e,r);function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];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=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,vt([void 0],t[0].concat(this)))):new(e.bind.apply(e,vt([void 0],t.concat(this))))},e}(Array);function Fn(r){return ae(r)?$r(r,function(){}):r}function Ad(r){return typeof r=="boolean"}function Rd(){return function(e){return Nd(e)}}function Nd(r){r===void 0&&(r={});var e=r.thunk,t=e===void 0?!0:e,o=r.immutableCheck,i=o===void 0?!0:o,a=r.serializableCheck,s=a===void 0?!0:a,l=new Ed;if(t&&(Ad(t)?l.push(Ln):l.push(Ln.withExtraArgument(t.extraArgument))),0){if(i)var c;if(s)var u}return l}var Mn=!0;function Es(r){var e=Rd(),t=r||{},o=t.reducer,i=o===void 0?void 0:o,a=t.middleware,s=a===void 0?e():a,l=t.devTools,c=l===void 0?!0:l,u=t.preloadedState,h=u===void 0?void 0:u,f=t.enhancers,g=f===void 0?void 0:f,y;if(typeof i=="function")y=i;else if(wd(i))y=ms(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),!Mn&&!Array.isArray(b)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Mn&&b.some(function(x){return typeof x!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=gs.apply(void 0,b),C=bt;c&&(C=Od(Me({trace:!Mn},typeof c=="object"&&c)));var E=new Cd(O),A=E;Array.isArray(g)?A=vt([O],g):typeof g=="function"&&(A=g(E));var S=C.apply(void 0,A);return kn(y,h,S)}function De(r,e){function t(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];if(e){var a=e.apply(void 0,o);if(!a)throw new Error("prepareAction did not return an object");return Me(Me({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:o[0]}}return t.toString=function(){return""+r},t.type=r,t.match=function(o){return o.type===r},t}function Cs(r){var e={},t=[],o,i={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,i},addMatcher:function(a,s){return t.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return o=a,i}};return r(i),[e,t,o]}function Id(r){return typeof r=="function"}function _d(r,e,t,o){t===void 0&&(t=[]);var i=typeof e=="function"?Cs(e):[e,t,o],a=i[0],s=i[1],l=i[2],c;if(Id(r))c=function(){return Fn(r())};else{var u=Fn(r);c=function(){return u}}function h(f,g){f===void 0&&(f=c());var y=vt([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=[l]),y.reduce(function(b,O){if(O)if(Se(b)){var C=b,E=O(C,g);return E===void 0?b:E}else{if(ae(b))return $r(b,function(A){return O(A,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},f)}return h.getInitialState=c,h}function Td(r,e){return r+"/"+e}function As(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:Fn(r.initialState),o=r.reducers||{},i=Object.keys(o),a={},s={},l={};i.forEach(function(h){var f=o[h],g=Td(e,h),y,b;"reducer"in f?(y=f.reducer,b=f.prepare):y=f,a[h]=y,s[g]=y,l[h]=b?De(g,b):De(g)});function c(){var h=typeof r.extraReducers=="function"?Cs(r.extraReducers):[r.extraReducers],f=h[0],g=f===void 0?{}:f,y=h[1],b=y===void 0?[]:y,O=h[2],C=O===void 0?void 0:O,E=Me(Me({},g),s);return _d(t,function(A){for(var S in E)A.addCase(S,E[S]);for(var x=0,w=b;x<w.length;x++){var _=w[x];A.addMatcher(_.matcher,_.reducer)}C&&A.addDefaultCase(C)})}var u;return{name:e,reducer:function(h,f){return u||(u=c()),u(h,f)},actions:l,caseReducers:a,getInitialState:function(){return u||(u=c()),u.getInitialState()}}}var Pd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",kd=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=Pd[Math.random()*64|0];return e},Ld=["name","message","stack","code"],Dn=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),Ss=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),Ud=function(r){if(typeof r=="object"&&r!==null){for(var e={},t=0,o=Ld;t<o.length;t++){var i=o[t];typeof r[i]=="string"&&(e[i]=r[i])}return e}return{message:String(r)}},Tg=function(){function r(e,t,o){var i=De(e+"/fulfilled",function(h,f,g,y){return{payload:h,meta:Un(Me({},y||{}),{arg:g,requestId:f,requestStatus:"fulfilled"})}}),a=De(e+"/pending",function(h,f,g){return{payload:void 0,meta:Un(Me({},g||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=De(e+"/rejected",function(h,f,g,y,b){return{payload:y,error:(o&&o.serializeError||Ud)(h||"Rejected"),meta:Un(Me({},b||{}),{arg:g,requestId:f,rejectedWithValue:!!y,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,c=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 u(h){return function(f,g,y){var b=o?.idGenerator?o.idGenerator(h):kd(),O=new c,C,E=!1;function A(x){C=x,O.abort()}var S=function(){return Sd(this,null,function(){var x,w,_,L,D,U,N;return md(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),L=(x=o?.condition)==null?void 0:x.call(o,h,{getState:g,extra:y}),Dd(L)?[4,L]:[3,2];case 1:L=m.sent(),m.label=2;case 2:if(L===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,D=new Promise(function(v,R){return O.signal.addEventListener("abort",function(){return R({name:"AbortError",message:C||"Aborted"})})}),f(a(b,h,(w=o?.getPendingMeta)==null?void 0:w.call(o,{requestId:b,arg:h},{getState:g,extra:y}))),[4,Promise.race([D,Promise.resolve(t(h,{dispatch:f,getState:g,extra:y,requestId:b,signal:O.signal,abort:A,rejectWithValue:function(v,R){return new Dn(v,R)},fulfillWithValue:function(v,R){return new Ss(v,R)}})).then(function(v){if(v instanceof Dn)throw v;return v instanceof Ss?i(v.payload,b,h,v.meta):i(v,b,h)})])];case 3:return _=m.sent(),[3,5];case 4:return U=m.sent(),_=U instanceof Dn?s(null,b,h,U.payload,U.meta):s(U,b,h),[3,5];case 5:return N=o&&!o.dispatchConditionRejection&&s.match(_)&&_.meta.condition,N||f(_),[2,_]}})})}();return Object.assign(S,{abort:A,requestId:b,arg:h,unwrap:function(){return S.then(Md)}})}}return Object.assign(u,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return r.withTypes=function(){return r},r}();function Md(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function Dd(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Rs="listener",Ns="completed",Is="cancelled",Pg="task-"+Is,kg="task-"+Ns,Lg=Rs+"-"+Is,Ug=Rs+"-"+Ns;var $n="listenerMiddleware";var Mg=De($n+"/add"),Dg=De($n+"/removeAll"),Fg=De($n+"/remove");var Os,$g=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(Os||(Os=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},Fd=function(r){return function(e){setTimeout(e,r)}},Bg=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Fd(10);ds();window.ftReduxStores||(window.ftReduxStores={});var Oe=class r{static get(e){var t;let o=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(tt(a))return a;if(i==null)return;let s=As({...i,reducers:(t=i.reducers)!==null&&t!==void 0?t:{}}),l=Es({reducer:(c,u)=>u.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof u.type=="string"&&u.type.startsWith("DEFAULT_VALUE_SETTER__")?{...c,...u.overwrites}:s.reducer(c,u)});return window.ftReduxStores[i.name]=new r(s,l)}constructor(e,t){this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Yt,this.actions=new Proxy(this.reduxSlice.actions,{get:(o,i,a)=>{let s=i,l=o[s];return l?(...c)=>{let u=l(...c);return this.reduxStore.dispatch(u),u}:c=>{this.setState({[s]:c})}}})}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 $d(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))tt(e)&&e.clear()}var zn={};M(zn,{scrollHelper:()=>Bd});var Wn,Hr=new Map,Hn=class{lock(e,t){if(t){let o=Hr.get(t);if(o==null||o===e)return Hr.set(t,e),t}}release(e,t){t&&Hr.get(t)===e&&Hr.delete(t)}findFirstScrollableParent(e){let t,o=i=>{var a;i.stopPropagation();let s,l;for(let c of i.composedPath()){let u=c,h=this.elementCanScroll(u);if(h&&u.clientHeight&&u.clientHeight<u.scrollHeight){s=u;break}else h&&l==null&&(l=u)}t=(a=s??l)!==null&&a!==void 0?a:document.body};return e.addEventListener("find-scrollable-parent",o),e.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),e.removeEventListener("find-scrollable-parent",o),t}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,t){let o=0;for(;t&&t.offsetParent!==e.offsetParent;)o+=t.offsetTop,t=t.offsetParent;return o+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 o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let i=this.getAbsoluteScrollOffset(o,e),a=i-o.clientHeight+e.clientHeight,s=i,l=Do(0,(s-o.scrollTop)/(s-a),1),c=this.computeTopOffsetRatio(t?.position,l)*(a-s)+s;o.scrollTo({behavior:t?.behavior,top:c})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(Wn=window.FluidTopicsScrollHelper)!==null&&Wn!==void 0?Wn:new Hn;var Bd=window.FluidTopicsScrollHelper;var jn={};M(jn,{shadowQuerySelector:()=>Wd,shadowQuerySelectorAll:()=>Hd});function Wd(r,e,...t){var o;let i=r.querySelector(e);for(let a of t)i=(o=i?.shadowRoot)===null||o===void 0?void 0:o.querySelector(a);return i}function Hd(r,e,...t){let o=[...r.querySelectorAll(e)];for(let i of t)o=o.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&l!==void 0?l:[]]});return o}var Kn={};M(Kn,{serializeRequest:()=>jd});function zd(r){return`"${r}"`}function jd(r,e){var t,o,i,a;let s=new URLSearchParams({"content-lang":(t=e.contentLocale)!==null&&t!==void 0?t:"all"});if(((o=e.query)===null||o===void 0?void 0:o.length)>0&&s.append("query",e.query),e.scope&&e.scope!=="DEFAULT"&&s.append("scope",e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&s.append("virtual-field",e.virtualField.toLowerCase()),e.periodFilter){let c=e.periodFilter.period,u=c?`_${c.from}_${c.to}`:"";s.append("period",e.periodFilter.periodType.toLowerCase()+u)}if(((i=e.sort)===null||i===void 0?void 0:i.length)>0&&e.sort[0].key==="ft:lastEdition"&&s.append("sort","last_update"),((a=e.filters)===null||a===void 0?void 0:a.length)>0){let c=e.filters.map(u=>{let h=u.values.map(f=>f.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*")).map(f=>encodeURIComponent(zd(f))).join("_");return`${u.key}~${h}`}).join("*");s.append("filters",c)}return new URL(`${r.replace(/\/+$/,"")}/search?${s.toString()}`).href}var Vn={};M(Vn,{toFtFormComponent:()=>Kd});var zr=Symbol("elementInternals");function Kd(r,e){class t extends r{static get formAssociated(){return!0}get form(){return this[zr].form}constructor(...i){super(i),this[zr]=this.attachInternals(),this[zr].role=e}setFormValue(i){this[zr].setFormValue(i)}}return t}var Gn={};M(Gn,{DateFormatter:()=>xt});var xt=class{static format(e,t,o,i){return window.moment?window.moment(e).locale(t).format(this.getDateFormat(o,i)):e}static getDateFormat(e,t){return e?t?"lll":"ll":t?"L LT":"L"}};var Zn,qn,Yn,Jn,Vd=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Yn=(qn=(Zn=window.safari)===null||Zn===void 0?void 0:Zn.pushNotification)===null||qn===void 0?void 0:qn.toString())!==null&&Yn!==void 0?Yn:"")==="[object SafariRemoteNotification]",Gd="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Jn=window.ftGlobals)!==null&&Jn!==void 0?Jn:{lit:Eo,litDecorators:Ao,litRepeat:Ro,litClassMap:No,litStyleMap:Io,litUnsafeHTML:_o,wcUtils:{...ko,...Po,...Lo,...Gn,...Uo,...$o,...zo,...Go,...nn,...Ho,...ln,...sn,...qa,...Fo,...fn,...pn,...Ja,...hn,...Bn,...an,...zn,...jn,...Kn,...Vn,isSafari:Vd,isTouchScreen:Gd,setVariable:Ar}};var _s=r=>Oe.get({name:"ft-reader-"+r,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}});var Xn=class{constructor(e,t){this.mapId=e,this.paginatedToc=t,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(e,t,o){return e.flatMap(i=>(i.pageConfiguration&&this.registerPage(this.buildPage(i,o)),i.tocId==null?this.extractPagesToc(i.children,t,o):[{tocId:i.tocId,title:i.title,depth:t,children:this.extractPagesToc(i.children,t+1,i.tocId)}]))}convertNodes(e,t,o){return e.flatMap(i=>{var a,s,l;if(i.tocId==null)return[...this.convertSectionNodes((a=i.pageToc)!==null&&a!==void 0?a:[],t,i.tocId),...this.convertNodes(i.children,t,i.tocId)];let c=(s=i.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),u={tocId:i.tocId,contentId:i.contentId,title:i.title,hasRating:i.hasRating,origin:i.origin,prettyUrl:c,depth:t,parentTocId:o,children:[]};this.register(u);let h=this.convertSectionNodes((l=i.pageToc)!==null&&l!==void 0?l:[],t+1,i.tocId),f=this.convertNodes(i.children,t+1,u.tocId);return u.children=[...h,...f],[u]})}convertSectionNodes(e,t,o){return e.flatMap(i=>{var a;let s=(a=i.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...i,prettyUrl:s,depth:t,parentTocId:o,children:[]};return this.register(l),l.children=this.convertSectionNodes(i.children,t+1,i.tocId),[l]})}buildPage(e,t){var o,i,a,s,l,c;let u={number:this.pages.length+1,title:(o=e.title)!==null&&o!==void 0?o:"",rootTocId:(i=e.tocId)!==null&&i!==void 0?i:"root",toc:((a=e.pageToc)!==null&&a!==void 0?a:[]).map(g=>this.nodeByTocId[g.tocId]),topics:[],hiddenTopics:[],breadcrumb:t?this.buildBreadcrumb(this.nodeByTocId[t]):[]},h=(g,y)=>(y?u.topics:u.hiddenTopics).push(g),f=(l=(s=e.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return u.breadcrumb.forEach((g,y)=>{h(g,f[y])}),e.tocId&&h(e.tocId,e.pageConfiguration.isVisible),u.topics.push(...this.tocIds((c=e.pageToc)!==null&&c!==void 0?c:[])),u}registerPage(e){for(let t of[...e.topics,...e.hiddenTopics])this.pageByTocId[t]||(this.pageByTocId[t]=e);this.pages.push(e)}tocIds(e){return e.flatMap(t=>[t.tocId,...this.tocIds(t.children)])}buildBreadcrumb(e){let t=[e.tocId];for(;e?.parentTocId;)t.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return t}register(e){e.prettyUrl&&(this.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},jr=class{convertPaginatedToc(e,t){return new Xn(e,t).build()}};var qd=lc(Ps(),1);var ks;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(ks||(ks={}));var Ls;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(Ls||(Ls={}));var Us;(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"})(Us||(Us={}));var Ms;(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"})(Ms||(Ms={}));var Ds;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(Ds||(Ds={}));var Fs;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(Fs||(Fs={}));var $s;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})($s||($s={}));var Gr;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Gr||(Gr={}));var Bs;(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"})(Bs||(Bs={}));var Ws;(function(r){r.ASC="ASC",r.DESC="DESC"})(Ws||(Ws={}));var Hs;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(Hs||(Hs={}));var zs;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(zs||(zs={}));var js;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(js||(js={}));var Ks;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(Ks||(Ks={}));var Vs;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(Vs||(Vs={}));var Gs;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(Gs||(Gs={}));var Zs;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS"})(Zs||(Zs={}));var B;(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"})(B||(B={}));var qs;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(qs||(qs={}));var Zd={[B.PERSONAL_BOOK_SHARE_USER]:[B.PERSONAL_BOOK_USER],[B.HTML_EXPORT_USER]:[B.PERSONAL_BOOK_USER],[B.PDF_EXPORT_USER]:[B.PERSONAL_BOOK_USER],[B.KHUB_ADMIN]:[B.CONTENT_PUBLISHER],[B.ADMIN]:[B.KHUB_ADMIN,B.USERS_ADMIN,B.PORTAL_ADMIN],[B.DEVELOPER]:[B.BETA_USER,B.DEBUG_USER]};function Ys(r,e){return r===e||(Zd[r]??[]).some(t=>Ys(t,e))}function nt(r,e){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(o=>Ys(o,e))}var we;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(we||(we={}));var Js=j`
51
+ `;var Yd="ft-app-info",Qn=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},Jd={session:(r,e)=>{ne(r.session,e.payload)||(r.session=e.payload,setTimeout(()=>I.eventBus.dispatchEvent(new Qn(e.payload)),0))}},I=Oe.get({name:Yd,reducers:Jd,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 it=class r{static get(e){let{baseUrl:t,apiIntegrationIdentifier:o}=I.getState(),i=e??o;if(t&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(t,i,!0)}static await(e){return new Promise(t=>{let o=r.get(e);if(o)t(o);else{let i=I.subscribe(()=>{o=r.get(e),o&&(i(),t(o))})}})}};var pe=class{constructor(e=!0,t){var o;this.overrideApi=t;let i=this.constructor;i.commonCache=(o=i.commonCache)!==null&&o!==void 0?o:new le,this.cache=e?i.commonCache:new le}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:it.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):it.await()}clearCache(){this.cache.clearAll()}};var Xs,Xd=Symbol("clearAfterUnitTest"),Zr=class extends pe{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Xs]=()=>{this.defaultMessages={},this.cache=new le,this.listeners={}},this.currentUiLocale=I.getState().uiLocale,I.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=I.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 o;if(e=e.toLowerCase(),Object.keys(t).length>0){let i={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...t};ne(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}await this.fetchContext(e)}resolveContext(e){var t,o;return this.fetchContext(e),(o=(t=this.cache.getNow(e))===null||t===void 0?void 0:t.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,t){let o=e.toLowerCase();return this.resolveContext(o)[t]}resolveMessage(e,t,...o){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new qt((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(t,...o)}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 o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o: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=>Cr(0).then(()=>t()).catch(()=>null)))}};Xs=Xd;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Zr{constructor(){super(async(r,e)=>(await this.awaitApi).getFluidTopicsMessageContext(r,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Zr{constructor(){super(async(r,e)=>(await this.awaitApi).getCustomMessageContext(r,e))}});var Qs=window.FluidTopicsI18nService,rb=window.FluidTopicsCustomI18nService;var Z=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(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},z=class extends ee{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=()=>it.get(),this.messageContexts=[],this.cache=new le,this.cleanSessionDebouncer=new X}render(){return ct`
51
52
  <slot></slot>
52
- `}update(e){super.update(e),e.has("baseUrl")&&(N.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&N.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&N.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&N.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&N.actions.noCustom(this.noCustom),e.has("editorMode")&&N.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&N.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&N.actions.session(this.session),e.has("availableUiLocales")&&N.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(t=>Vs.addContext(t)),e.has("openExternalDocumentInNewTab")&&N.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&N.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&N.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())}};W.elementDefinitions={};W.styles=js;V([T()],W.prototype,"baseUrl",void 0);V([T()],W.prototype,"apiIntegrationIdentifier",void 0);V([T()],W.prototype,"uiLocale",void 0);V([Ae(null)],W.prototype,"availableUiLocales",void 0);V([Ae(null)],W.prototype,"metadataConfiguration",void 0);V([T({type:Boolean})],W.prototype,"editorMode",void 0);V([T({type:Boolean})],W.prototype,"noCustom",void 0);V([T({type:Boolean})],W.prototype,"openExternalDocumentInNewTab",void 0);V([T({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],W.prototype,"noCustomComponent",void 0);V([T({type:Boolean})],W.prototype,"withManualResources",void 0);V([T({type:Boolean})],W.prototype,"navigatorOnline",void 0);V([T({type:Boolean})],W.prototype,"forcedOffline",void 0);V([T({type:Object})],W.prototype,"apiProvider",void 0);V([Ae([])],W.prototype,"messageContexts",void 0);V([Ae(void 0)],W.prototype,"session",void 0);var zr=class extends ue{async listMySearches(){let e=N.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var jr=class extends ue{async listMyBookmarks(){let e=N.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Kd="ft-user-assets",Kr=xe.get({name:Kd,initialState:{savedSearches:void 0,bookmarks:void 0}}),Zn=class{constructor(){this.currentSession=N.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new jr,this.savedSearchesService=new zr,N.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=N.getState();re((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(),Kr.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Kr.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Kr.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;Kr.actions.bookmarks(t)}}},Gs=new Zn;var qn=class{addCommand(e,t=!1){N.commands.add(e,t)}consumeCommand(e){return N.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new qn;var Yn=class{highlightHtml(e,t,o){nn(e,t,o)}};window.FluidTopicsHighlightHtmlService=new Yn;var Jn=class{isDate(e){var t,o,i,a;return(a=(i=((o=(t=N.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&o!==void 0?o:[]).find(c=>c.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,t){var o,i,a;return gt.format(e,(o=t?.locale)!==null&&o!==void 0?o:N.getState().uiLocale,(i=t?.longFormat)!==null&&i!==void 0?i:!1,(a=t?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Jn;Ut("ft-app-context")(W);var Vr=class extends ue{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,t,o){super(!1,t),this.converter=e,this._mapId=o,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register("enrichedToc",()=>this.withMapId(e=>this.fetchPages(e).then(t=>this.converter.convertPaginatedToc(e,t)))),this.cache.register("ratingSummary",()=>{var e,t;return et((t=(e=N.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&t!==void 0?t:[],"RATING_USER")?this.withMapId(i=>this.fetchMapRating(i)):Promise.resolve()})}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(e){return(await this.getEnrichedToc()).nodeByTocId[e]}getTocNodeNow(e){var t;return(t=this.enrichedToc)===null||t===void 0?void 0:t.nodeByTocId[e]}getTocNodeNowByUrl(e){var t,o;let i=this.getMapNow();return i?.prettyUrl==e||`${i?.id}/root`===e?(t=this.enrichedToc)===null||t===void 0?void 0:t.toc[0]:(o=this.enrichedToc)===null||o===void 0?void 0:o.nodeByUrl[e]}async getPage(e){let t=await this.getEnrichedToc();return t.pages[e-1]||t.pages[0]}async getPageByTocId(e){let t=await this.getEnrichedToc();return t.pageByTocId[e]||t.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(e,t){return this.cache.get("document-relatives-"+e+"-"+t.join("-"),()=>this.fetchRelativesForDocument(e,t))}getRelativesForTopicInMap(e,t,o){return this.cache.get("topic-relatives-"+[e,t,...o].join("-"),()=>this.fetchRelativesForTopicInMap(e,t,o))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true`)}getLink(e,t,o){let i=this.getNavigationData(e,t,o),a=this.getReaderLinkPrefix()+(i.prettyUrl?i.prettyUrl:`${i.mapId}/${i.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return i.page!=null&&s.searchParams.set("page",`${i.page}`),i.prettyUrlDuplicated&&s.searchParams.set("tocId",i.tocId),i.section!=null&&s.searchParams.set("section",i.section),s.href}getNavigationData(e,t,o){var i,a;e=e||"root";let s=this.enrichedToc,c=s?.pageByTocId[e],l=s?.nodeByTocId[e],u=l?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(i=l?.title)!==null&&i!==void 0?i:"",page:t&&c&&c.number!==t?t:void 0,prettyUrl:u?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(u??""))!==null&&a!==void 0?a:!1,section:o}}async getAccurateNavigationData(e,t,o){return await this.getEnrichedToc(),this.getNavigationData(e,t,o)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(t=>{var o;return t?{type:t.topics.type,rating:(o=t.topics)===null||o===void 0?void 0:o.ratings.find(i=>i.tocId===e)}:void 0})}rateMap(e,t){return this.makeRateMapRequest(e,t).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,t){return this.makeMapFeedbackRequest(e,t)}rateTopic(e,t,o){return this.makeRateTopicRequest(e,t,o).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=N.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,t,o){return this.makeTopicFeedbackRequest(e,t,o)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e){let t=this.getTocNodeNow(e),o=[{tocId:t.tocId,title:t.title}],i=this.getTocNodeNow(t.parentTocId);for(;i;)o.unshift({tocId:i.tocId,title:i.title}),i=this.getTocNodeNow(i.parentTocId);return o}isFeatureAccessible(e,{session:t,ratingType:o}){var i;if(!this.isFeatureAvailable(e))return!1;switch(e){case Se.FEEDBACK:return et(t??[],D.FEEDBACK_USER);case Se.RATING:return et(t??[],D.RATING_USER)&&o!=null&&o!==Wr.NO_RATING;case Se.PRINT:return et(t??[],D.PRINT_USER);case Se.BOOKMARK:return!!t?.sessionAuthenticated;case Se.COLLECTIONS:return et(t??[],D.COLLECTION_USER);case Se.PERSONAL_BOOKS:return et(t??[],D.PERSONAL_BOOK_USER)&&!(!((i=this.getMapNow())===null||i===void 0)&&i.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var Gr=class r extends Vr{static async build(e){return new r(new Br,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e){let t=await this.api.getMap(e);return this.fingerprint=t.fingerprint,t}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e){return await this.getMap(),this.api.getPages(e,this.fingerprint)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,t){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:t,key:e}],sort:[],facets:[]})}fetchRelativesForTopicInMap(e,t,o){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:o,key:t},{negative:!1,values:[e],key:"ft:publicationId"}],sort:[],facets:[]})}makeMapFeedbackRequest(e,t){return this.api.sendMapFeedback(this.mapId,e,t)}makeRateMapRequest(e,t){return this.api.rateMap(this.mapId,e,t)}makeRateTopicRequest(e,t,o){return this.api.rateTopic(this.mapId,e,t,o)}makeTopicFeedbackRequest(e,t,o){return this.api.sendTopicFeedback(this.mapId,e,t,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var Zr=class r{static build(e,t){return new r(ws(e.trim()||"context"),t??Gr.build)}loaded(){return _o(()=>this._loaded)}constructor(e,t,o){this.store=e,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new Y(10),this.initService(t)}async initService(e){return this.service=await e(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return kt(()=>this.service)}async navigateToTopic(e,t,o){await this.loaded();let i=await this.awaitService(),a=await(o!=null?i.getPage(o):i.getPageByTocId(e??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(e,a),section:t})}resolveValidNonRootTocId(e,t){var o,i,a;let s=(o=e==="root"?void 0:e)!==null&&o!==void 0?o:t.rootTocId;return t.topics.includes(s)?s:(a=(i=t.topics[0])!==null&&i!==void 0?i:t.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(e){await this.loaded();let o=await(await this.awaitService()).getPage(e);this.store.actions.currentPage(o)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData())}clear(){var e;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var e,t,o,i,a;try{await Promise.all([(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(s=>this.store.actions.configuration(s)),(t=this.service)===null||t===void 0?void 0:t.getMap().then(s=>this.store.actions.map(s)),(o=this.service)===null||o===void 0?void 0:o.getToc().then(s=>this.store.actions.toc(s)),(i=this.service)===null||i===void 0?void 0:i.getPagesToc().then(s=>this.store.actions.pagesToc(s)),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(s=>this.store.actions.paginationConfiguration(s))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0}catch(s){this.errorHandler&&!(s instanceof Ge)&&this.errorHandler(s)}}fetchRelatives(){var e,t,o;let i=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);i!==void 0&&i.length>0?(t=this.service)===null||t===void 0||t.getRelativesForDocument((o=this.store.getState().configuration)===null||o===void 0?void 0:o.relativePivotMetadata,i).then(a=>{let s=a.results.flatMap(c=>c.entries);this.store.actions.relatives(s),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created"))}createClusteringHelper(){var e,t;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let o=this.store.getState().relatives;if(o){let i=o.find(s=>{var c;return((c=s.map)===null||c===void 0?void 0:c.mapId)==this.store.getState().mapId}),a=(t=(e=N.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&t!==void 0?t:[];return new Pt(o,i,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var t,o,i;await this.loaded();let a=await kt(()=>{var u;return(u=this.store.getState().configuration)===null||u===void 0?void 0:u.relativeTopicPivotMetadata}),s=this.store.getState().mapId,l=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[e]);if(!((i=(o=(t=l?.results)===null||t===void 0?void 0:t[0])===null||o===void 0?void 0:o.entries)===null||i===void 0)&&i[0]){let u=l.results[0].entries[0].topic.tocId;return await this.navigateToTopic(u),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}};var l0={},Zs=H`
53
- `;var qr=class extends CustomEvent{constructor(e,t){super("ft-reader-map-loaded",{detail:{map:e,toc:t}})}},Yr=class extends CustomEvent{constructor(e,t){super("ft-reader-visible-topics-change",{detail:{visibleTopics:t}})}},Jr=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},Xr=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},Qr=class extends Event{constructor(){super("ft-reader-map-not-found")}},eo=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},to=class extends Event{constructor(){super("ft-reader-map-forbidden")}},ro=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Z=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);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},Vd=r=>e=>+(e??"NaN")>0?+e:r,z=class extends _e{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new Y(5),this.navigationDebouncer=new Y(10),this.mapLoadedEventDebouncer=new Y(50),this.addStore(N)}render(){return nt`
53
+ `}update(e){super.update(e),e.has("baseUrl")&&(I.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&I.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&I.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&I.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&I.actions.noCustom(this.noCustom),e.has("editorMode")&&I.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&I.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&I.actions.session(this.session),e.has("availableUiLocales")&&I.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(t=>Qs.addContext(t)),e.has("openExternalDocumentInNewTab")&&I.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&I.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&I.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())}};z.elementDefinitions={};z.styles=Js;Z([T()],z.prototype,"baseUrl",void 0);Z([T()],z.prototype,"apiIntegrationIdentifier",void 0);Z([T()],z.prototype,"uiLocale",void 0);Z([Ne(null)],z.prototype,"availableUiLocales",void 0);Z([Ne(null)],z.prototype,"metadataConfiguration",void 0);Z([T({type:Boolean})],z.prototype,"editorMode",void 0);Z([T({type:Boolean})],z.prototype,"noCustom",void 0);Z([T({type:Boolean})],z.prototype,"openExternalDocumentInNewTab",void 0);Z([T({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],z.prototype,"noCustomComponent",void 0);Z([T({type:Boolean})],z.prototype,"withManualResources",void 0);Z([T({type:Boolean})],z.prototype,"navigatorOnline",void 0);Z([T({type:Boolean})],z.prototype,"forcedOffline",void 0);Z([T({type:Object})],z.prototype,"apiProvider",void 0);Z([Ne([])],z.prototype,"messageContexts",void 0);Z([Ne(void 0)],z.prototype,"session",void 0);var qr=class extends pe{async listMySearches(){let e=I.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Yr=class extends pe{async listMyBookmarks(){let e=I.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Qd="ft-user-assets",Jr=Oe.get({name:Qd,initialState:{savedSearches:void 0,bookmarks:void 0}}),ei=class{constructor(){this.currentSession=I.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Yr,this.savedSearchesService=new qr,I.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=I.getState();ne((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(),Jr.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Jr.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Jr.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;Jr.actions.bookmarks(t)}}},ec=new ei;var ti=class{addCommand(e,t=!1){I.commands.add(e,t)}consumeCommand(e){return I.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ti;var ri=class{highlightHtml(e,t,o){un(e,t,o)}};window.FluidTopicsHighlightHtmlService=new ri;var oi=class{isDate(e){var t,o,i,a;return(a=(i=((o=(t=I.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&o!==void 0?o:[]).find(l=>l.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,t){var o,i,a;return xt.format(e,(o=t?.locale)!==null&&o!==void 0?o:I.getState().uiLocale,(i=t?.longFormat)!==null&&i!==void 0?i:!1,(a=t?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new oi;$t("ft-app-context")(z);var Xr=class extends pe{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,t,o){super(!1,t),this.converter=e,this._mapId=o,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register("enrichedToc",()=>this.withMapId(e=>this.fetchPages(e).then(t=>this.converter.convertPaginatedToc(e,t)))),this.cache.register("ratingSummary",()=>{var e,t;return nt((t=(e=I.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&t!==void 0?t:[],"RATING_USER")?this.withMapId(i=>this.fetchMapRating(i)):Promise.resolve()})}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(e){return(await this.getEnrichedToc()).nodeByTocId[e]}getTocNodeNow(e){var t;return(t=this.enrichedToc)===null||t===void 0?void 0:t.nodeByTocId[e]}getTocNodeNowByUrl(e){var t,o;let i=this.getMapNow();return i?.prettyUrl==e||`${i?.id}/root`===e?(t=this.enrichedToc)===null||t===void 0?void 0:t.toc[0]:(o=this.enrichedToc)===null||o===void 0?void 0:o.nodeByUrl[e]}async getPage(e){let t=await this.getEnrichedToc();return t.pages[e-1]||t.pages[0]}async getPageByTocId(e){let t=await this.getEnrichedToc();return t.pageByTocId[e]||t.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(e,t){return this.cache.get("document-relatives-"+e+"-"+t.join("-"),()=>this.fetchRelativesForDocument(e,t))}getRelativesForTopicInMap(e,t,o){return this.cache.get("topic-relatives-"+[e,t,...o].join("-"),()=>this.fetchRelativesForTopicInMap(e,t,o))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true`)}getLink(e,t,o){let i=this.getNavigationData(e,t,o),a=this.getReaderLinkPrefix()+(i.prettyUrl?i.prettyUrl:`${i.mapId}/${i.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return i.page!=null&&s.searchParams.set("page",`${i.page}`),i.prettyUrlDuplicated&&s.searchParams.set("tocId",i.tocId),i.section!=null&&s.searchParams.set("section",i.section),s.href}getNavigationData(e,t,o){var i,a;e=e||"root";let s=this.enrichedToc,l=s?.pageByTocId[e],c=s?.nodeByTocId[e],u=c?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(i=c?.title)!==null&&i!==void 0?i:"",page:t&&l&&l.number!==t?t:void 0,prettyUrl:u?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(u??""))!==null&&a!==void 0?a:!1,section:o}}async getAccurateNavigationData(e,t,o){return await this.getEnrichedToc(),this.getNavigationData(e,t,o)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(t=>{var o;return t?{type:t.topics.type,rating:(o=t.topics)===null||o===void 0?void 0:o.ratings.find(i=>i.tocId===e)}:void 0})}rateMap(e,t){return this.makeRateMapRequest(e,t).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,t){return this.makeMapFeedbackRequest(e,t)}rateTopic(e,t,o){return this.makeRateTopicRequest(e,t,o).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=I.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,t,o){return this.makeTopicFeedbackRequest(e,t,o)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e){let t=this.getTocNodeNow(e),o=[{tocId:t.tocId,title:t.title}],i=this.getTocNodeNow(t.parentTocId);for(;i;)o.unshift({tocId:i.tocId,title:i.title}),i=this.getTocNodeNow(i.parentTocId);return o}isFeatureAccessible(e,{session:t,ratingType:o}){var i;if(!this.isFeatureAvailable(e))return!1;switch(e){case we.FEEDBACK:return nt(t??[],B.FEEDBACK_USER);case we.RATING:return nt(t??[],B.RATING_USER)&&o!=null&&o!==Gr.NO_RATING;case we.PRINT:return nt(t??[],B.PRINT_USER);case we.BOOKMARK:return!!t?.sessionAuthenticated;case we.COLLECTIONS:return nt(t??[],B.COLLECTION_USER);case we.PERSONAL_BOOKS:return nt(t??[],B.PERSONAL_BOOK_USER)&&!(!((i=this.getMapNow())===null||i===void 0)&&i.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var Qr=class r extends Xr{static async build(e){return new r(new jr,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e){let t=await this.api.getMap(e);return this.fingerprint=t.fingerprint,t}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e){return await this.getMap(),this.api.getPages(e,this.fingerprint)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,t){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:t,key:e}],sort:[],facets:[]})}fetchRelativesForTopicInMap(e,t,o){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:o,key:t},{negative:!1,values:[e],key:"ft:publicationId"}],sort:[],facets:[]})}makeMapFeedbackRequest(e,t){return this.api.sendMapFeedback(this.mapId,e,t)}makeRateMapRequest(e,t){return this.api.rateMap(this.mapId,e,t)}makeRateTopicRequest(e,t,o){return this.api.rateTopic(this.mapId,e,t,o)}makeTopicFeedbackRequest(e,t,o){return this.api.sendTopicFeedback(this.mapId,e,t,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var eo=class r{static build(e,t){return new r(_s(e.trim()||"context"),t??Qr.build)}loaded(){return Mo(()=>this._loaded)}constructor(e,t,o){this.store=e,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new X(10),this.initService(t)}async initService(e){return this.service=await e(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return Dt(()=>this.service)}async navigateToTopic(e,t,o){await this.loaded();let i=await this.awaitService(),a=await(o!=null?i.getPage(o):i.getPageByTocId(e??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(e,a),section:t})}resolveValidNonRootTocId(e,t){var o,i,a;let s=(o=e==="root"?void 0:e)!==null&&o!==void 0?o:t.rootTocId;return t.topics.includes(s)?s:(a=(i=t.topics[0])!==null&&i!==void 0?i:t.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(e){await this.loaded();let o=await(await this.awaitService()).getPage(e);this.store.actions.currentPage(o)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData())}clear(){var e;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var e,t,o,i,a;try{await Promise.all([(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(s=>this.store.actions.configuration(s)),(t=this.service)===null||t===void 0?void 0:t.getMap().then(s=>this.store.actions.map(s)),(o=this.service)===null||o===void 0?void 0:o.getToc().then(s=>this.store.actions.toc(s)),(i=this.service)===null||i===void 0?void 0:i.getPagesToc().then(s=>this.store.actions.pagesToc(s)),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(s=>this.store.actions.paginationConfiguration(s))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0}catch(s){this.errorHandler&&!(s instanceof Je)&&this.errorHandler(s)}}fetchRelatives(){var e,t,o;let i=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);i!==void 0&&i.length>0?(t=this.service)===null||t===void 0||t.getRelativesForDocument((o=this.store.getState().configuration)===null||o===void 0?void 0:o.relativePivotMetadata,i).then(a=>{let s=a.results.flatMap(l=>l.entries);this.store.actions.relatives(s),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created"))}createClusteringHelper(){var e,t;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let o=this.store.getState().relatives;if(o){let i=o.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(t=(e=I.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&t!==void 0?t:[];return new Mt(o,i,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var t,o,i;await this.loaded();let a=await Dt(()=>{var u;return(u=this.store.getState().configuration)===null||u===void 0?void 0:u.relativeTopicPivotMetadata}),s=this.store.getState().mapId,c=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[e]);if(!((i=(o=(t=c?.results)===null||t===void 0?void 0:t[0])===null||o===void 0?void 0:o.entries)===null||i===void 0)&&i[0]){let u=c.results[0].entries[0].topic.tocId;return await this.navigateToTopic(u),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}};var m0={},tc=j`
54
+ `;var to=class extends CustomEvent{constructor(e,t){super("ft-reader-map-loaded",{detail:{map:e,toc:t}})}},ro=class extends CustomEvent{constructor(e,t){super("ft-reader-visible-topics-change",{detail:{visibleTopics:t}})}},oo=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},no=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},io=class extends Event{constructor(){super("ft-reader-map-not-found")}},ao=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},so=class extends Event{constructor(){super("ft-reader-map-forbidden")}},co=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Y=function(r,e,t,o){var i=arguments.length,a=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(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},eu=r=>e=>+(e??"NaN")>0?+e:r,K=class extends Pe{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new X(5),this.navigationDebouncer=new X(10),this.mapLoadedEventDebouncer=new X(50),this.addStore(I)}render(){return ct`
54
55
  ${this.importStyleIfNeeded()}
55
56
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
56
- `}importStyleIfNeeded(){var e,t;let o=(e=this.stateManager.service)===null||e===void 0?void 0:e.themeStylesheet();return!o||window.location.href.startsWith((t=this.baseUrl)!==null&&t!==void 0?t:"")?B:nt`
57
+ `}importStyleIfNeeded(){var e,t;let o=(e=this.stateManager.service)===null||e===void 0?void 0:e.themeStylesheet();return!o||window.location.href.startsWith((t=this.baseUrl)!==null&&t!==void 0?t:"")?H:ct`
57
58
  <style>
58
59
  @import "${o}"
59
60
  </style>
60
- `}get stateManager(){return this._stateManager==null&&(this._stateManager=Zr.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(e=>{let t=e.fontsStylesheet();if(t&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${t}"]`)){let o=document.createElement("link");o.setAttribute("rel","stylesheet"),o.setAttribute("href",t),document.head.append(o)}})}update(e){super.update(e),e.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),e.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),e.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(t=>e.has(t))&&this.mapId&&this.navigateToTarget(),e.has("session")&&this.reload()}contentAvailableCallback(e){var t;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((t=this.scrollTarget)===null||t===void 0?void 0:t.tocId)==null){let o=e.get("scrollTarget");o?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>{var i;return this.stateManager.service.getAccurateNavigationData(o.tocId,(i=this.currentPage)===null||i===void 0?void 0:i.number,o.section).then(a=>this.dispatchEvent(new Jr(a)))})}e.has("visibleTopics")&&Promise.all(this.visibleTopics.map(o=>{var i;return this.stateManager.service.getAccurateNavigationData(o,(i=this.currentPage)===null||i===void 0?void 0:i.number)})).then(o=>{let i=o.filter(a=>a!=null&&a.topicTitle!=="").map(a=>{var s;return{tocId:a.tocId,title:a.topicTitle,page:a.page,prettyUrl:a.prettyUrl,prettyUrlDuplicated:a.prettyUrlDuplicated,breadcrumb:(s=this.stateManager.service)===null||s===void 0?void 0:s.buildBreadcrumb(a.tocId)}});this.dispatchEvent(new Yr(this.map,i))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new ro),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)})}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let t=e;t.status===401?this.dispatchEvent(new eo):t.status===403?this.dispatchEvent(new to):t.status===404?this.dispatchEvent(new Qr):this.dispatchEvent(new Xr(e))}reloadBookmarks(){Gs.reloadBookmarks()}async reloadRating(){var e,t;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(t=this.stateManager.store)===null||t===void 0||t.eventBus.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new qr(this.map,this.toc))})}};z.styles=Zs;Z([le({store:N.name})],z.prototype,"baseUrl",void 0);Z([le({store:N.name})],z.prototype,"session",void 0);Z([T()],z.prototype,"mapId",void 0);Z([T()],z.prototype,"tocId",void 0);Z([T()],z.prototype,"section",void 0);Z([T()],z.prototype,"topicPivot",void 0);Z([T()],z.prototype,"searchInDocumentQuery",void 0);Z([T({type:Number,converter:{fromAttribute:Vd()}})],z.prototype,"page",void 0);Z([le({store:"reader"})],z.prototype,"map",void 0);Z([le({store:"reader"})],z.prototype,"toc",void 0);Z([le({store:"reader"})],z.prototype,"visibleTopics",void 0);Z([le({store:"reader"})],z.prototype,"currentPage",void 0);Z([le({store:"reader"})],z.prototype,"scrollTarget",void 0);Z([T({attribute:!1})],z.prototype,"readerServiceProvider",void 0);Ut("ft-reader-context")(z);})();
61
+ `}get stateManager(){return this._stateManager==null&&(this._stateManager=eo.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(e=>{let t=e.fontsStylesheet();if(t&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${t}"]`)){let o=document.createElement("link");o.setAttribute("rel","stylesheet"),o.setAttribute("href",t),document.head.append(o)}})}update(e){super.update(e),e.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),e.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),e.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(t=>e.has(t))&&this.mapId&&this.navigateToTarget(),e.has("session")&&this.reload()}contentAvailableCallback(e){var t;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((t=this.scrollTarget)===null||t===void 0?void 0:t.tocId)==null){let o=e.get("scrollTarget");o?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>{var i;return this.stateManager.service.getAccurateNavigationData(o.tocId,(i=this.currentPage)===null||i===void 0?void 0:i.number,o.section).then(a=>this.dispatchEvent(new oo(a)))})}e.has("visibleTopics")&&Promise.all(this.visibleTopics.map(o=>{var i;return this.stateManager.service.getAccurateNavigationData(o,(i=this.currentPage)===null||i===void 0?void 0:i.number)})).then(o=>{let i=o.filter(a=>a!=null&&a.topicTitle!=="").map(a=>{var s;return{tocId:a.tocId,title:a.topicTitle,page:a.page,prettyUrl:a.prettyUrl,prettyUrlDuplicated:a.prettyUrlDuplicated,breadcrumb:(s=this.stateManager.service)===null||s===void 0?void 0:s.buildBreadcrumb(a.tocId)}});this.dispatchEvent(new ro(this.map,i))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new co),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)})}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let t=e;t.status===401?this.dispatchEvent(new ao):t.status===403?this.dispatchEvent(new so):t.status===404?this.dispatchEvent(new io):this.dispatchEvent(new no(e))}reloadBookmarks(){ec.reloadBookmarks()}async reloadRating(){var e,t;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(t=this.stateManager.store)===null||t===void 0||t.eventBus.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new to(this.map,this.toc))})}};K.styles=tc;Y([ue({store:I.name})],K.prototype,"baseUrl",void 0);Y([ue({store:I.name})],K.prototype,"session",void 0);Y([T()],K.prototype,"mapId",void 0);Y([T()],K.prototype,"tocId",void 0);Y([T()],K.prototype,"section",void 0);Y([T()],K.prototype,"topicPivot",void 0);Y([T()],K.prototype,"searchInDocumentQuery",void 0);Y([T({type:Number,converter:{fromAttribute:eu()}})],K.prototype,"page",void 0);Y([ue({store:"reader"})],K.prototype,"map",void 0);Y([ue({store:"reader"})],K.prototype,"toc",void 0);Y([ue({store:"reader"})],K.prototype,"visibleTopics",void 0);Y([ue({store:"reader"})],K.prototype,"currentPage",void 0);Y([ue({store:"reader"})],K.prototype,"scrollTarget",void 0);Y([T({attribute:!1})],K.prototype,"readerServiceProvider",void 0);$t("ft-reader-context")(K);})();
61
62
  /*! Bundled license information:
62
63
 
63
64
  @webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js: