@fluid-topics/ft-reader-feedback 1.1.74 → 1.1.76
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,13 @@
|
|
|
1
|
-
"use strict";(()=>{var Cd=Object.create;var ji=Object.defineProperty;var Ad=Object.getOwnPropertyDescriptor;var Rd=Object.getOwnPropertyNames;var _d=Object.getPrototypeOf,Nd=Object.prototype.hasOwnProperty;var Td=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),ot=(r,t)=>{for(var e in t)ji(r,e,{get:t[e],enumerable:!0})},Id=(r,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Rd(t))!Nd.call(r,n)&&n!==e&&ji(r,n,{get:()=>t[n],enumerable:!(o=Ad(t,n))||o.enumerable});return r};var Pd=(r,t,e)=>(e=r!=null?Cd(_d(r)):{},Id(t||!r||!r.__esModule?ji(e,"default",{value:r,enumerable:!0}):e,r));var id=Td(od=>{(function(r){var t=function(e){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 n(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 l(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 c(m){return typeof m!="string"&&(m=String(m)),m}function d(m){var x={next:function(){var _=m.shift();return{done:_===void 0,value:_}}};return o.iterable&&(x[Symbol.iterator]=function(){return x}),x}function u(m){this.map={},m instanceof u?m.forEach(function(x,_){this.append(_,x)},this):Array.isArray(m)?m.forEach(function(x){this.append(x[0],x[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(x){this.append(x,m[x])},this)}u.prototype.append=function(m,x){m=l(m),x=c(x);var _=this.map[m];this.map[m]=_?_+", "+x:x},u.prototype.delete=function(m){delete this.map[l(m)]},u.prototype.get=function(m){return m=l(m),this.has(m)?this.map[m]:null},u.prototype.has=function(m){return this.map.hasOwnProperty(l(m))},u.prototype.set=function(m,x){this.map[l(m)]=c(x)},u.prototype.forEach=function(m,x){for(var _ in this.map)this.map.hasOwnProperty(_)&&m.call(x,this.map[_],_,this)},u.prototype.keys=function(){var m=[];return this.forEach(function(x,_){m.push(_)}),d(m)},u.prototype.values=function(){var m=[];return this.forEach(function(x){m.push(x)}),d(m)},u.prototype.entries=function(){var m=[];return this.forEach(function(x,_){m.push([_,x])}),d(m)},o.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);function h(m){if(m.bodyUsed)return Promise.reject(new TypeError("Already read"));m.bodyUsed=!0}function y(m){return new Promise(function(x,_){m.onload=function(){x(m.result)},m.onerror=function(){_(m.error)}})}function b(m){var x=new FileReader,_=y(x);return x.readAsArrayBuffer(m),_}function v(m){var x=new FileReader,_=y(x);return x.readAsText(m),_}function w(m){for(var x=new Uint8Array(m),_=new Array(x.length),K=0;K<x.length;K++)_[K]=String.fromCharCode(x[K]);return _.join("")}function N(m){if(m.slice)return m.slice(0);var x=new Uint8Array(m.byteLength);return x.set(new Uint8Array(m)),x.buffer}function T(){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&&n(m)?(this._bodyArrayBuffer=N(m.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(m)||s(m))?this._bodyArrayBuffer=N(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(b)}),this.text=function(){var m=h(this);if(m)return m;if(this._bodyBlob)return v(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(w(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(E)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function O(m){var x=m.toUpperCase();return k.indexOf(x)>-1?x:m}function S(m,x){x=x||{};var _=x.body;if(m instanceof S){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,x.headers||(this.headers=new u(m.headers)),this.method=m.method,this.mode=m.mode,this.signal=m.signal,!_&&m._bodyInit!=null&&(_=m._bodyInit,m.bodyUsed=!0)}else this.url=String(m);if(this.credentials=x.credentials||this.credentials||"same-origin",(x.headers||!this.headers)&&(this.headers=new u(x.headers)),this.method=O(x.method||this.method||"GET"),this.mode=x.mode||this.mode||null,this.signal=x.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&_)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(_)}S.prototype.clone=function(){return new S(this,{body:this._bodyInit})};function E(m){var x=new FormData;return m.trim().split("&").forEach(function(_){if(_){var K=_.split("="),ut=K.shift().replace(/\+/g," "),X=K.join("=").replace(/\+/g," ");x.append(decodeURIComponent(ut),decodeURIComponent(X))}}),x}function D(m){var x=new u,_=m.replace(/\r?\n[\t ]+/g," ");return _.split(/\r?\n/).forEach(function(K){var ut=K.split(":"),X=ut.shift().trim();if(X){var _o=ut.join(":").trim();x.append(X,_o)}}),x}T.call(S.prototype);function z(m,x){x||(x={}),this.type="default",this.status=x.status===void 0?200:x.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in x?x.statusText:"OK",this.headers=new u(x.headers),this.url=x.url||"",this._initBody(m)}T.call(z.prototype),z.prototype.clone=function(){return new z(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},z.error=function(){var m=new z(null,{status:0,statusText:""});return m.type="error",m};var At=[301,302,303,307,308];z.redirect=function(m,x){if(At.indexOf(x)===-1)throw new RangeError("Invalid status code");return new z(null,{status:x,headers:{location:m}})},e.DOMException=r.DOMException;try{new e.DOMException}catch{e.DOMException=function(x,_){this.message=x,this.name=_;var K=Error(x);this.stack=K.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function Y(m,x){return new Promise(function(_,K){var ut=new S(m,x);if(ut.signal&&ut.signal.aborted)return K(new e.DOMException("Aborted","AbortError"));var X=new XMLHttpRequest;function _o(){X.abort()}X.onload=function(){var Hr={status:X.status,statusText:X.statusText,headers:D(X.getAllResponseHeaders()||"")};Hr.url="responseURL"in X?X.responseURL:Hr.headers.get("X-Request-URL");var Vi="response"in X?X.response:X.responseText;_(new z(Vi,Hr))},X.onerror=function(){K(new TypeError("Network request failed"))},X.ontimeout=function(){K(new TypeError("Network request failed"))},X.onabort=function(){K(new e.DOMException("Aborted","AbortError"))},X.open(ut.method,ut.url,!0),ut.credentials==="include"?X.withCredentials=!0:ut.credentials==="omit"&&(X.withCredentials=!1),"responseType"in X&&o.blob&&(X.responseType="blob"),ut.headers.forEach(function(Hr,Vi){X.setRequestHeader(Vi,Hr)}),ut.signal&&(ut.signal.addEventListener("abort",_o),X.onreadystatechange=function(){X.readyState===4&&ut.signal.removeEventListener("abort",_o)}),X.send(typeof ut._bodyInit>"u"?null:ut._bodyInit)})}return Y.polyfill=!0,r.fetch||(r.fetch=Y,r.Headers=u,r.Request=S,r.Response=z),e.Headers=u,e.Request=S,e.Response=z,e.fetch=Y,Object.defineProperty(e,"__esModule",{value:!0}),e}({})})(typeof self<"u"?self:od)});if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,t=window.customElements.define,e=window.customElements.get,o=window.customElements,n=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(O,S){if(O=O.toLowerCase(),this._getDefinition(O)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${O}" has already been used with this registry`);if(this._definitionsByClass.get(S)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let E=S.prototype.attributeChangedCallback,D=new Set(S.observedAttributes||[]);y(S,D,E);let z={elementClass:S,connectedCallback:S.prototype.connectedCallback,disconnectedCallback:S.prototype.disconnectedCallback,adoptedCallback:S.prototype.adoptedCallback,attributeChangedCallback:E,formAssociated:S.formAssociated,formAssociatedCallback:S.prototype.formAssociatedCallback,formDisabledCallback:S.prototype.formDisabledCallback,formResetCallback:S.prototype.formResetCallback,formStateRestoreCallback:S.prototype.formStateRestoreCallback,observedAttributes:D};this._definitionsByTag.set(O,z),this._definitionsByClass.set(S,z);let At=e.call(o,O);At||(At=h(O),t.call(o,O,At)),this===window.customElements&&(s.set(S,z),z.standInClass=At);let Y=this._awaitingUpgrade.get(O);if(Y){this._awaitingUpgrade.delete(O);for(let x of Y)a.delete(x),v(x,z,!0)}let m=this._whenDefinedPromises.get(O);return m!==void 0&&(m.resolve(S),this._whenDefinedPromises.delete(O)),S}upgrade(){N.push(this),o.upgrade.apply(o,arguments),N.pop()}get(O){return this._definitionsByTag.get(O)?.elementClass}_getDefinition(O){return this._definitionsByTag.get(O)}whenDefined(O){let S=this._getDefinition(O);if(S!==void 0)return Promise.resolve(S.elementClass);let E=this._whenDefinedPromises.get(O);return E===void 0&&(E={},E.promise=new Promise(D=>E.resolve=D),this._whenDefinedPromises.set(O,E)),E.promise}_upgradeWhenDefined(O,S,E){let D=this._awaitingUpgrade.get(S);D||this._awaitingUpgrade.set(S,D=new Set),E?D.add(O):D.delete(O)}};let c;window.HTMLElement=function(){let S=c;if(S)return c=void 0,S;let E=s.get(this.constructor);if(!E)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return S=Reflect.construct(r,[],E.standInClass),Object.setPrototypeOf(S,this.constructor.prototype),n.set(S,E),S},window.HTMLElement.prototype=r.prototype;let d=O=>O===document||O instanceof ShadowRoot,u=O=>{let S=O.getRootNode();if(!d(S)){let E=N[N.length-1];if(E instanceof CustomElementRegistry)return E;S=E.getRootNode(),d(S)||(S=l.get(S)?.getRootNode()||document)}return S.customElements},h=O=>class{static get formAssociated(){return!0}constructor(){let E=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(E,HTMLElement.prototype);let D=u(E)||window.customElements,z=D._getDefinition(O);return z?v(E,z):a.set(E,D),E}connectedCallback(){let E=n.get(this);E?E.connectedCallback&&E.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,O,!0)}disconnectedCallback(){let E=n.get(this);E?E.disconnectedCallback&&E.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,O,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let E=n.get(this);E&&E.formAssociated&&E?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let E=n.get(this);E?.formAssociated&&E?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let E=n.get(this);E?.formAssociated&&E?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let E=n.get(this);E?.formAssociated&&E?.formStateRestoreCallback?.apply(this,arguments)}},y=(O,S,E)=>{if(S.size===0||E===void 0)return;let D=O.prototype.setAttribute;D&&(O.prototype.setAttribute=function(Y,m){let x=Y.toLowerCase();if(S.has(x)){let _=this.getAttribute(x);D.call(this,x,m),E.call(this,x,_,m)}else D.call(this,x,m)});let z=O.prototype.removeAttribute;z&&(O.prototype.removeAttribute=function(Y){let m=Y.toLowerCase();if(S.has(m)){let x=this.getAttribute(m);z.call(this,m),E.call(this,m,x,null)}else z.call(this,m)});let At=O.prototype.toggleAttribute;At&&(O.prototype.toggleAttribute=function(Y,m){let x=Y.toLowerCase();if(S.has(x)){let _=this.getAttribute(x);At.call(this,x,m);let K=this.getAttribute(x);E.call(this,x,_,K)}else At.call(this,x,m)})},b=O=>{let S=Object.getPrototypeOf(O);if(S!==window.HTMLElement)return S===r?Object.setPrototypeOf(O,window.HTMLElement):b(S)},v=(O,S,E=!1)=>{Object.setPrototypeOf(O,S.elementClass.prototype),n.set(O,S),c=O;try{new S.elementClass}catch{b(S.elementClass),new S.elementClass}S.attributeChangedCallback&&S.observedAttributes.forEach(D=>{O.hasAttribute(D)&&S.attributeChangedCallback.call(O,D,null,O.getAttribute(D))}),E&&S.connectedCallback&&O.isConnected&&S.connectedCallback.call(O)},w=Element.prototype.attachShadow;Element.prototype.attachShadow=function(O){let S=w.apply(this,arguments);return O.customElements&&(S.customElements=O.customElements),S};let N=[document],T=(O,S,E=void 0)=>{let D=(E?Object.getPrototypeOf(E):O.prototype)[S];O.prototype[S]=function(){N.push(this);let z=D.apply(E||this,arguments);return z!==void 0&&l.set(z,this),N.pop(),z}};T(ShadowRoot,"createElement",document),T(ShadowRoot,"importNode",document),T(Element,"insertAdjacentHTML");let k=(O,S)=>{let E=Object.getOwnPropertyDescriptor(O.prototype,S);Object.defineProperty(O.prototype,S,{...E,set(D){N.push(this),E.set.call(this,D),N.pop()}})};if(k(Element,"innerHTML"),k(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let O=new WeakMap,S=HTMLElement.prototype.attachInternals,E=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...Y){let m=S.call(this,...Y);return O.set(m,this),m},E.forEach(Y=>{let m=window.ElementInternals.prototype,x=m[Y];m[Y]=function(..._){let K=O.get(this);if(n.get(K).formAssociated===!0)return x?.call(this,..._);throw new DOMException(`Failed to execute ${x} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class D extends Array{constructor(m){super(...m),this._elements=m}get value(){return this._elements.find(m=>m.checked===!0)?.value||""}}class z{constructor(m){let x=new Map;m.forEach((_,K)=>{let ut=_.getAttribute("name"),X=x.get(ut)||[];this[+K]=_,X.push(_),x.set(ut,X)}),this.length=m.length,x.forEach((_,K)=>{_&&(_.length===1?this[K]=_[0]:this[K]=new D(_))})}namedItem(m){return this[m]}}let At=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let Y=At.get.call(this,[]),m=[];for(let x of Y){let _=n.get(x);(!_||_.formAssociated===!0)&&m.push(x)}return new z(m)}})}}try{window.customElements.define("custom-element",null)}catch{let t=window.customElements.define;window.customElements.define=(e,o,n)=>{if(o!==null)try{t.bind(window.customElements)(e,o,n)}catch(a){console.info(e,o,n,a)}}}var nn={};ot(nn,{CSSResult:()=>xr,LitElement:()=>ge,ReactiveElement:()=>re,_$LE:()=>rp,_$LH:()=>Qd,adoptStyles:()=>Ho,css:()=>P,defaultConverter:()=>Vo,getCompatibleStyle:()=>Xr,html:()=>$,isServer:()=>Tf,noChange:()=>_e,notEqual:()=>Ji,nothing:()=>B,render:()=>on,supportsAdoptingStyleSheets:()=>Yr,svg:()=>Jd,unsafeCSS:()=>he});var No=globalThis,Io=No.ShadowRoot&&(No.ShadyCSS===void 0||No.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,hs=Symbol(),fs=new WeakMap,To=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==hs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Io&&t===void 0){let o=e!==void 0&&e.length===1;o&&(t=fs.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&fs.set(e,t))}return t}toString(){return this.cssText}},ms=r=>new To(typeof r=="string"?r:r+"",void 0,hs);var Ki=(r,t)=>{if(Io)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let o=document.createElement("style"),n=No.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=e.cssText,r.appendChild(o)}},Po=Io?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let o of t.cssRules)e+=o.cssText;return ms(e)})(r):r;var{is:$d,defineProperty:kd,getOwnPropertyDescriptor:Ld,getOwnPropertyNames:Md,getOwnPropertySymbols:Dd,getPrototypeOf:Ud}=Object,$o=globalThis,gs=$o.trustedTypes,Bd=gs?gs.emptyScript:"",Fd=$o.reactiveElementPolyfillSupport,Vr=(r,t)=>r,jr={toAttribute(r,t){switch(t){case Boolean:r=r?Bd:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},ko=(r,t)=>!$d(r,t),ys={attribute:!0,type:String,converter:jr,reflect:!1,hasChanged:ko};Symbol.metadata??=Symbol("metadata"),$o.litPropertyMetadata??=new WeakMap;var Ge=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ys){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(t,o,e);n!==void 0&&kd(this.prototype,t,n)}}static getPropertyDescriptor(t,e,o){let{get:n,set:a}=Ld(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(t,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ys}static _$Ei(){if(this.hasOwnProperty(Vr("elementProperties")))return;let t=Ud(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Vr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Vr("properties"))){let e=this.properties,o=[...Md(e),...Dd(e)];for(let n of o)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[o,n]of e)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[e,o]of this.elementProperties){let n=this._$Eu(e,o);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let o=new Set(t.flat(1/0).reverse());for(let n of o)e.unshift(Po(n))}else t!==void 0&&e.push(Po(t));return e}static _$Eu(t,e){let o=e.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$E_??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){let t=new Map,e=this.constructor.elementProperties;for(let o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ki(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){let o=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:jr).toAttribute(e,o.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,e){let o=this.constructor,n=o._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:jr;this._$Em=n,this[n]=s.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,o,n=!1,a){if(t!==void 0){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??ko)(n?a:this[t],e))return;this.C(t,e,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),o.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,a]of o)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(e)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(e=>this._$EO(e,this[e])),this._$ET()}updated(t){}firstUpdated(t){}};Ge.elementStyles=[],Ge.shadowRootOptions={mode:"open"},Ge[Vr("elementProperties")]=new Map,Ge[Vr("finalized")]=new Map,Fd?.({ReactiveElement:Ge}),($o.reactiveElementVersions??=[]).push("2.0.2");var Zi=globalThis,Lo=Zi.trustedTypes,bs=Lo?Lo.createPolicy("lit-html",{createHTML:r=>r}):void 0,qi="$lit$",fe=`lit$${(Math.random()+"").slice(9)}$`,Yi="?"+fe,zd=`<${Yi}>`,Ye=document,Mo=()=>Ye.createComment(""),Gr=r=>r===null||typeof r!="object"&&typeof r!="function",Es=Array.isArray,Cs=r=>Es(r)||typeof r?.[Symbol.iterator]=="function",Gi=`[
|
|
1
|
+
"use strict";(()=>{var Cd=Object.create;var ji=Object.defineProperty;var Ad=Object.getOwnPropertyDescriptor;var Rd=Object.getOwnPropertyNames;var _d=Object.getPrototypeOf,Nd=Object.prototype.hasOwnProperty;var Td=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),ot=(r,t)=>{for(var e in t)ji(r,e,{get:t[e],enumerable:!0})},Id=(r,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Rd(t))!Nd.call(r,n)&&n!==e&&ji(r,n,{get:()=>t[n],enumerable:!(o=Ad(t,n))||o.enumerable});return r};var Pd=(r,t,e)=>(e=r!=null?Cd(_d(r)):{},Id(t||!r||!r.__esModule?ji(e,"default",{value:r,enumerable:!0}):e,r));var id=Td(od=>{(function(r){var t=function(e){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 n(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 l(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 c(m){return typeof m!="string"&&(m=String(m)),m}function d(m){var x={next:function(){var _=m.shift();return{done:_===void 0,value:_}}};return o.iterable&&(x[Symbol.iterator]=function(){return x}),x}function u(m){this.map={},m instanceof u?m.forEach(function(x,_){this.append(_,x)},this):Array.isArray(m)?m.forEach(function(x){this.append(x[0],x[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(x){this.append(x,m[x])},this)}u.prototype.append=function(m,x){m=l(m),x=c(x);var _=this.map[m];this.map[m]=_?_+", "+x:x},u.prototype.delete=function(m){delete this.map[l(m)]},u.prototype.get=function(m){return m=l(m),this.has(m)?this.map[m]:null},u.prototype.has=function(m){return this.map.hasOwnProperty(l(m))},u.prototype.set=function(m,x){this.map[l(m)]=c(x)},u.prototype.forEach=function(m,x){for(var _ in this.map)this.map.hasOwnProperty(_)&&m.call(x,this.map[_],_,this)},u.prototype.keys=function(){var m=[];return this.forEach(function(x,_){m.push(_)}),d(m)},u.prototype.values=function(){var m=[];return this.forEach(function(x){m.push(x)}),d(m)},u.prototype.entries=function(){var m=[];return this.forEach(function(x,_){m.push([_,x])}),d(m)},o.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);function h(m){if(m.bodyUsed)return Promise.reject(new TypeError("Already read"));m.bodyUsed=!0}function y(m){return new Promise(function(x,_){m.onload=function(){x(m.result)},m.onerror=function(){_(m.error)}})}function b(m){var x=new FileReader,_=y(x);return x.readAsArrayBuffer(m),_}function v(m){var x=new FileReader,_=y(x);return x.readAsText(m),_}function w(m){for(var x=new Uint8Array(m),_=new Array(x.length),K=0;K<x.length;K++)_[K]=String.fromCharCode(x[K]);return _.join("")}function N(m){if(m.slice)return m.slice(0);var x=new Uint8Array(m.byteLength);return x.set(new Uint8Array(m)),x.buffer}function T(){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&&n(m)?(this._bodyArrayBuffer=N(m.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(m)||s(m))?this._bodyArrayBuffer=N(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(b)}),this.text=function(){var m=h(this);if(m)return m;if(this._bodyBlob)return v(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(w(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(E)}),this.json=function(){return this.text().then(JSON.parse)},this}var k=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function O(m){var x=m.toUpperCase();return k.indexOf(x)>-1?x:m}function S(m,x){x=x||{};var _=x.body;if(m instanceof S){if(m.bodyUsed)throw new TypeError("Already read");this.url=m.url,this.credentials=m.credentials,x.headers||(this.headers=new u(m.headers)),this.method=m.method,this.mode=m.mode,this.signal=m.signal,!_&&m._bodyInit!=null&&(_=m._bodyInit,m.bodyUsed=!0)}else this.url=String(m);if(this.credentials=x.credentials||this.credentials||"same-origin",(x.headers||!this.headers)&&(this.headers=new u(x.headers)),this.method=O(x.method||this.method||"GET"),this.mode=x.mode||this.mode||null,this.signal=x.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&_)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(_)}S.prototype.clone=function(){return new S(this,{body:this._bodyInit})};function E(m){var x=new FormData;return m.trim().split("&").forEach(function(_){if(_){var K=_.split("="),ut=K.shift().replace(/\+/g," "),X=K.join("=").replace(/\+/g," ");x.append(decodeURIComponent(ut),decodeURIComponent(X))}}),x}function D(m){var x=new u,_=m.replace(/\r?\n[\t ]+/g," ");return _.split(/\r?\n/).forEach(function(K){var ut=K.split(":"),X=ut.shift().trim();if(X){var _o=ut.join(":").trim();x.append(X,_o)}}),x}T.call(S.prototype);function z(m,x){x||(x={}),this.type="default",this.status=x.status===void 0?200:x.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in x?x.statusText:"OK",this.headers=new u(x.headers),this.url=x.url||"",this._initBody(m)}T.call(z.prototype),z.prototype.clone=function(){return new z(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},z.error=function(){var m=new z(null,{status:0,statusText:""});return m.type="error",m};var At=[301,302,303,307,308];z.redirect=function(m,x){if(At.indexOf(x)===-1)throw new RangeError("Invalid status code");return new z(null,{status:x,headers:{location:m}})},e.DOMException=r.DOMException;try{new e.DOMException}catch{e.DOMException=function(x,_){this.message=x,this.name=_;var K=Error(x);this.stack=K.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function Y(m,x){return new Promise(function(_,K){var ut=new S(m,x);if(ut.signal&&ut.signal.aborted)return K(new e.DOMException("Aborted","AbortError"));var X=new XMLHttpRequest;function _o(){X.abort()}X.onload=function(){var Hr={status:X.status,statusText:X.statusText,headers:D(X.getAllResponseHeaders()||"")};Hr.url="responseURL"in X?X.responseURL:Hr.headers.get("X-Request-URL");var Vi="response"in X?X.response:X.responseText;_(new z(Vi,Hr))},X.onerror=function(){K(new TypeError("Network request failed"))},X.ontimeout=function(){K(new TypeError("Network request failed"))},X.onabort=function(){K(new e.DOMException("Aborted","AbortError"))},X.open(ut.method,ut.url,!0),ut.credentials==="include"?X.withCredentials=!0:ut.credentials==="omit"&&(X.withCredentials=!1),"responseType"in X&&o.blob&&(X.responseType="blob"),ut.headers.forEach(function(Hr,Vi){X.setRequestHeader(Vi,Hr)}),ut.signal&&(ut.signal.addEventListener("abort",_o),X.onreadystatechange=function(){X.readyState===4&&ut.signal.removeEventListener("abort",_o)}),X.send(typeof ut._bodyInit>"u"?null:ut._bodyInit)})}return Y.polyfill=!0,r.fetch||(r.fetch=Y,r.Headers=u,r.Request=S,r.Response=z),e.Headers=u,e.Request=S,e.Response=z,e.fetch=Y,Object.defineProperty(e,"__esModule",{value:!0}),e}({})})(typeof self<"u"?self:od)});if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,t=window.customElements.define,e=window.customElements.get,o=window.customElements,n=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(O,S){if(O=O.toLowerCase(),this._getDefinition(O)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${O}" has already been used with this registry`);if(this._definitionsByClass.get(S)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let E=S.prototype.attributeChangedCallback,D=new Set(S.observedAttributes||[]);y(S,D,E);let z={elementClass:S,connectedCallback:S.prototype.connectedCallback,disconnectedCallback:S.prototype.disconnectedCallback,adoptedCallback:S.prototype.adoptedCallback,attributeChangedCallback:E,formAssociated:S.formAssociated,formAssociatedCallback:S.prototype.formAssociatedCallback,formDisabledCallback:S.prototype.formDisabledCallback,formResetCallback:S.prototype.formResetCallback,formStateRestoreCallback:S.prototype.formStateRestoreCallback,observedAttributes:D};this._definitionsByTag.set(O,z),this._definitionsByClass.set(S,z);let At=e.call(o,O);At||(At=h(O),t.call(o,O,At)),this===window.customElements&&(s.set(S,z),z.standInClass=At);let Y=this._awaitingUpgrade.get(O);if(Y){this._awaitingUpgrade.delete(O);for(let x of Y)a.delete(x),v(x,z,!0)}let m=this._whenDefinedPromises.get(O);return m!==void 0&&(m.resolve(S),this._whenDefinedPromises.delete(O)),S}upgrade(){N.push(this),o.upgrade.apply(o,arguments),N.pop()}get(O){return this._definitionsByTag.get(O)?.elementClass}_getDefinition(O){return this._definitionsByTag.get(O)}whenDefined(O){let S=this._getDefinition(O);if(S!==void 0)return Promise.resolve(S.elementClass);let E=this._whenDefinedPromises.get(O);return E===void 0&&(E={},E.promise=new Promise(D=>E.resolve=D),this._whenDefinedPromises.set(O,E)),E.promise}_upgradeWhenDefined(O,S,E){let D=this._awaitingUpgrade.get(S);D||this._awaitingUpgrade.set(S,D=new Set),E?D.add(O):D.delete(O)}};let c;window.HTMLElement=function(){let S=c;if(S)return c=void 0,S;let E=s.get(this.constructor);if(!E)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return S=Reflect.construct(r,[],E.standInClass),Object.setPrototypeOf(S,this.constructor.prototype),n.set(S,E),S},window.HTMLElement.prototype=r.prototype;let d=O=>O===document||O instanceof ShadowRoot,u=O=>{let S=O.getRootNode();if(!d(S)){let E=N[N.length-1];if(E instanceof CustomElementRegistry)return E;S=E.getRootNode(),d(S)||(S=l.get(S)?.getRootNode()||document)}return S.customElements},h=O=>class{static get formAssociated(){return!0}constructor(){let E=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(E,HTMLElement.prototype);let D=u(E)||window.customElements,z=D._getDefinition(O);return z?v(E,z):a.set(E,D),E}connectedCallback(){let E=n.get(this);E?E.connectedCallback&&E.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,O,!0)}disconnectedCallback(){let E=n.get(this);E?E.disconnectedCallback&&E.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,O,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let E=n.get(this);E&&E.formAssociated&&E?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let E=n.get(this);E?.formAssociated&&E?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let E=n.get(this);E?.formAssociated&&E?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let E=n.get(this);E?.formAssociated&&E?.formStateRestoreCallback?.apply(this,arguments)}},y=(O,S,E)=>{if(S.size===0||E===void 0)return;let D=O.prototype.setAttribute;D&&(O.prototype.setAttribute=function(Y,m){let x=Y.toLowerCase();if(S.has(x)){let _=this.getAttribute(x);D.call(this,x,m),E.call(this,x,_,m)}else D.call(this,x,m)});let z=O.prototype.removeAttribute;z&&(O.prototype.removeAttribute=function(Y){let m=Y.toLowerCase();if(S.has(m)){let x=this.getAttribute(m);z.call(this,m),E.call(this,m,x,null)}else z.call(this,m)});let At=O.prototype.toggleAttribute;At&&(O.prototype.toggleAttribute=function(Y,m){let x=Y.toLowerCase();if(S.has(x)){let _=this.getAttribute(x);At.call(this,x,m);let K=this.getAttribute(x);E.call(this,x,_,K)}else At.call(this,x,m)})},b=O=>{let S=Object.getPrototypeOf(O);if(S!==window.HTMLElement)return S===r?Object.setPrototypeOf(O,window.HTMLElement):b(S)},v=(O,S,E=!1)=>{Object.setPrototypeOf(O,S.elementClass.prototype),n.set(O,S),c=O;try{new S.elementClass}catch{b(S.elementClass),new S.elementClass}S.attributeChangedCallback&&S.observedAttributes.forEach(D=>{O.hasAttribute(D)&&S.attributeChangedCallback.call(O,D,null,O.getAttribute(D))}),E&&S.connectedCallback&&O.isConnected&&S.connectedCallback.call(O)},w=Element.prototype.attachShadow;Element.prototype.attachShadow=function(O){let S=w.apply(this,arguments);return O.customElements&&(S.customElements=O.customElements),S};let N=[document],T=(O,S,E=void 0)=>{let D=(E?Object.getPrototypeOf(E):O.prototype)[S];O.prototype[S]=function(){N.push(this);let z=D.apply(E||this,arguments);return z!==void 0&&l.set(z,this),N.pop(),z}};T(ShadowRoot,"createElement",document),T(ShadowRoot,"importNode",document),T(Element,"insertAdjacentHTML");let k=(O,S)=>{let E=Object.getOwnPropertyDescriptor(O.prototype,S);Object.defineProperty(O.prototype,S,{...E,set(D){N.push(this),E.set.call(this,D),N.pop()}})};if(k(Element,"innerHTML"),k(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let O=new WeakMap,S=HTMLElement.prototype.attachInternals,E=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...Y){let m=S.call(this,...Y);return O.set(m,this),m},E.forEach(Y=>{let m=window.ElementInternals.prototype,x=m[Y];m[Y]=function(..._){let K=O.get(this);if(n.get(K).formAssociated===!0)return x?.call(this,..._);throw new DOMException(`Failed to execute ${x} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class D extends Array{constructor(m){super(...m),this._elements=m}get value(){return this._elements.find(m=>m.checked===!0)?.value||""}}class z{constructor(m){let x=new Map;m.forEach((_,K)=>{let ut=_.getAttribute("name"),X=x.get(ut)||[];this[+K]=_,X.push(_),x.set(ut,X)}),this.length=m.length,x.forEach((_,K)=>{_&&(_.length===1?this[K]=_[0]:this[K]=new D(_))})}namedItem(m){return this[m]}}let At=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let Y=At.get.call(this,[]),m=[];for(let x of Y){let _=n.get(x);(!_||_.formAssociated===!0)&&m.push(x)}return new z(m)}})}}try{window.customElements.define("custom-element",null)}catch{let t=window.customElements.define;window.customElements.define=(e,o,n)=>{if(o!==null)try{t.bind(window.customElements)(e,o,n)}catch(a){console.info(e,o,n,a)}}}var nn={};ot(nn,{CSSResult:()=>xr,LitElement:()=>ge,ReactiveElement:()=>re,_$LE:()=>rp,_$LH:()=>Qd,adoptStyles:()=>Ho,css:()=>P,defaultConverter:()=>Vo,getCompatibleStyle:()=>Xr,html:()=>$,isServer:()=>If,noChange:()=>_e,notEqual:()=>Ji,nothing:()=>B,render:()=>on,supportsAdoptingStyleSheets:()=>Yr,svg:()=>Jd,unsafeCSS:()=>he});var No=globalThis,Io=No.ShadowRoot&&(No.ShadyCSS===void 0||No.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,hs=Symbol(),fs=new WeakMap,To=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==hs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Io&&t===void 0){let o=e!==void 0&&e.length===1;o&&(t=fs.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&fs.set(e,t))}return t}toString(){return this.cssText}},ms=r=>new To(typeof r=="string"?r:r+"",void 0,hs);var Ki=(r,t)=>{if(Io)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let o=document.createElement("style"),n=No.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=e.cssText,r.appendChild(o)}},Po=Io?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let o of t.cssRules)e+=o.cssText;return ms(e)})(r):r;var{is:$d,defineProperty:kd,getOwnPropertyDescriptor:Ld,getOwnPropertyNames:Md,getOwnPropertySymbols:Dd,getPrototypeOf:Ud}=Object,$o=globalThis,gs=$o.trustedTypes,Bd=gs?gs.emptyScript:"",Fd=$o.reactiveElementPolyfillSupport,Vr=(r,t)=>r,jr={toAttribute(r,t){switch(t){case Boolean:r=r?Bd:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},ko=(r,t)=>!$d(r,t),ys={attribute:!0,type:String,converter:jr,reflect:!1,hasChanged:ko};Symbol.metadata??=Symbol("metadata"),$o.litPropertyMetadata??=new WeakMap;var Ge=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ys){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(t,o,e);n!==void 0&&kd(this.prototype,t,n)}}static getPropertyDescriptor(t,e,o){let{get:n,set:a}=Ld(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(t,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ys}static _$Ei(){if(this.hasOwnProperty(Vr("elementProperties")))return;let t=Ud(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Vr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Vr("properties"))){let e=this.properties,o=[...Md(e),...Dd(e)];for(let n of o)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[o,n]of e)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[e,o]of this.elementProperties){let n=this._$Eu(e,o);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let o=new Set(t.flat(1/0).reverse());for(let n of o)e.unshift(Po(n))}else t!==void 0&&e.push(Po(t));return e}static _$Eu(t,e){let o=e.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$E_??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){let t=new Map,e=this.constructor.elementProperties;for(let o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ki(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){let o=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:jr).toAttribute(e,o.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,e){let o=this.constructor,n=o._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:jr;this._$Em=n,this[n]=s.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,o,n=!1,a){if(t!==void 0){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??ko)(n?a:this[t],e))return;this.C(t,e,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),o.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,a]of o)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(e)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(e=>this._$EO(e,this[e])),this._$ET()}updated(t){}firstUpdated(t){}};Ge.elementStyles=[],Ge.shadowRootOptions={mode:"open"},Ge[Vr("elementProperties")]=new Map,Ge[Vr("finalized")]=new Map,Fd?.({ReactiveElement:Ge}),($o.reactiveElementVersions??=[]).push("2.0.2");var Zi=globalThis,Lo=Zi.trustedTypes,bs=Lo?Lo.createPolicy("lit-html",{createHTML:r=>r}):void 0,qi="$lit$",fe=`lit$${(Math.random()+"").slice(9)}$`,Yi="?"+fe,zd=`<${Yi}>`,Ye=document,Mo=()=>Ye.createComment(""),Gr=r=>r===null||typeof r!="object"&&typeof r!="function",Es=Array.isArray,Cs=r=>Es(r)||typeof r?.[Symbol.iterator]=="function",Gi=`[
|
|
2
2
|
\f\r]`,Kr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,vs=/-->/g,xs=/>/g,Ze=RegExp(`>|${Gi}(?:([^\\s"'>=/]+)(${Gi}*=${Gi}*(?:[^
|
|
3
3
|
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ss=/'/g,Os=/"/g,As=/^(?:script|style|textarea|title)$/i,Rs=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),_s=Rs(1),Ns=Rs(2),Bt=Symbol.for("lit-noChange"),lt=Symbol.for("lit-nothing"),ws=new WeakMap,qe=Ye.createTreeWalker(Ye,129);function Ts(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return bs!==void 0?bs.createHTML(t):t}var Is=(r,t)=>{let e=r.length-1,o=[],n,a=t===2?"<svg>":"",s=Kr;for(let l=0;l<e;l++){let c=r[l],d,u,h=-1,y=0;for(;y<c.length&&(s.lastIndex=y,u=s.exec(c),u!==null);)y=s.lastIndex,s===Kr?u[1]==="!--"?s=vs:u[1]!==void 0?s=xs:u[2]!==void 0?(As.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=Ze):u[3]!==void 0&&(s=Ze):s===Ze?u[0]===">"?(s=n??Kr,h=-1):u[1]===void 0?h=-2:(h=s.lastIndex-u[2].length,d=u[1],s=u[3]===void 0?Ze:u[3]==='"'?Os:Ss):s===Os||s===Ss?s=Ze:s===vs||s===xs?s=Kr:(s=Ze,n=void 0);let b=s===Ze&&r[l+1].startsWith("/>")?" ":"";a+=s===Kr?c+zd:h>=0?(o.push(d),c.slice(0,h)+qi+c.slice(h)+fe+b):c+fe+(h===-2?l:b)}return[Ts(r,a+(r[e]||"<?>")+(t===2?"</svg>":"")),o]},Zr=class r{constructor({strings:t,_$litType$:e},o){let n;this.parts=[];let a=0,s=0,l=t.length-1,c=this.parts,[d,u]=Is(t,e);if(this.el=r.createElement(d,o),qe.currentNode=this.el.content,e===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=qe.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(qi)){let y=u[s++],b=n.getAttribute(h).split(fe),v=/([.?@])?(.*)/.exec(y);c.push({type:1,index:a,name:v[2],strings:b,ctor:v[1]==="."?Uo:v[1]==="?"?Bo:v[1]==="@"?Fo:Je}),n.removeAttribute(h)}else h.startsWith(fe)&&(c.push({type:6,index:a}),n.removeAttribute(h));if(As.test(n.tagName)){let h=n.textContent.split(fe),y=h.length-1;if(y>0){n.textContent=Lo?Lo.emptyScript:"";for(let b=0;b<y;b++)n.append(h[b],Mo()),qe.nextNode(),c.push({type:2,index:++a});n.append(h[y],Mo())}}}else if(n.nodeType===8)if(n.data===Yi)c.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(fe,h+1))!==-1;)c.push({type:7,index:a}),h+=fe.length-1}a++}}static createElement(t,e){let o=Ye.createElement("template");return o.innerHTML=t,o}};function Xe(r,t,e=r,o){if(t===Bt)return t;let n=o!==void 0?e._$Co?.[o]:e._$Cl,a=Gr(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,e,o)),o!==void 0?(e._$Co??=[])[o]=n:e._$Cl=n),n!==void 0&&(t=Xe(r,n._$AS(r,t.values),n,o)),t}var Do=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:o}=this._$AD,n=(t?.creationScope??Ye).importNode(e,!0);qe.currentNode=n;let a=qe.nextNode(),s=0,l=0,c=o[0];for(;c!==void 0;){if(s===c.index){let d;c.type===2?d=new qr(a,a.nextSibling,this,t):c.type===1?d=new c.ctor(a,c.name,c.strings,this,t):c.type===6&&(d=new zo(a,this,t)),this._$AV.push(d),c=o[++l]}s!==c?.index&&(a=qe.nextNode(),s++)}return qe.currentNode=Ye,n}p(t){let e=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},qr=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,n){this.type=2,this._$AH=lt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Xe(this,t,e),Gr(t)?t===lt||t==null||t===""?(this._$AH!==lt&&this._$AR(),this._$AH=lt):t!==this._$AH&&t!==Bt&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Cs(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==lt&&Gr(this._$AH)?this._$AA.nextSibling.data=t:this.$(Ye.createTextNode(t)),this._$AH=t}g(t){let{values:e,_$litType$:o}=t,n=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=Zr.createElement(Ts(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(e);else{let a=new Do(n,this),s=a.u(this.options);a.p(e),this.$(s),this._$AH=a}}_$AC(t){let e=ws.get(t.strings);return e===void 0&&ws.set(t.strings,e=new Zr(t)),e}T(t){Es(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,n=0;for(let a of t)n===e.length?e.push(o=new r(this.k(Mo()),this.k(Mo()),this,this.options)):o=e[n],o._$AI(a),n++;n<e.length&&(this._$AR(o&&o._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let o=t.nextSibling;t.remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},Je=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,n,a){this.type=1,this._$AH=lt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=a,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=lt}_$AI(t,e=this,o,n){let a=this.strings,s=!1;if(a===void 0)t=Xe(this,t,e,0),s=!Gr(t)||t!==this._$AH&&t!==Bt,s&&(this._$AH=t);else{let l=t,c,d;for(t=a[0],c=0;c<a.length-1;c++)d=Xe(this,l[o+c],e,c),d===Bt&&(d=this._$AH[c]),s||=!Gr(d)||d!==this._$AH[c],d===lt?t=lt:t!==lt&&(t+=(d??"")+a[c+1]),this._$AH[c]=d}s&&!n&&this.O(t)}O(t){t===lt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Uo=class extends Je{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===lt?void 0:t}},Bo=class extends Je{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==lt)}},Fo=class extends Je{constructor(t,e,o,n,a){super(t,e,o,n,a),this.type=5}_$AI(t,e=this){if((t=Xe(this,t,e,0)??lt)===Bt)return;let o=this._$AH,n=t===lt&&o!==lt||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,a=t!==lt&&(o===lt||n);n&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},zo=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){Xe(this,t)}},Ps={j:qi,P:fe,A:Yi,C:1,M:Is,L:Do,R:Cs,V:Xe,D:qr,I:Je,H:Bo,N:Fo,U:Uo,B:zo},Wd=Zi.litHtmlPolyfillSupport;Wd?.(Zr,qr),(Zi.litHtmlVersions??=[]).push("3.1.0");var Wo=globalThis,Yr=Wo.ShadowRoot&&(Wo.ShadyCSS===void 0||Wo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Xi=Symbol(),$s=new WeakMap,xr=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==Xi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Yr&&t===void 0){let o=e!==void 0&&e.length===1;o&&(t=$s.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&$s.set(e,t))}return t}toString(){return this.cssText}},he=r=>new xr(typeof r=="string"?r:r+"",void 0,Xi),P=(r,...t)=>{let e=r.length===1?r[0]:t.reduce((o,n,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.")})(n)+r[a+1],r[0]);return new xr(e,r,Xi)},Ho=(r,t)=>{if(Yr)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let o=document.createElement("style"),n=Wo.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=e.cssText,r.appendChild(o)}},Xr=Yr?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let o of t.cssRules)e+=o.cssText;return he(e)})(r):r;var{is:Hd,defineProperty:Vd,getOwnPropertyDescriptor:jd,getOwnPropertyNames:Kd,getOwnPropertySymbols:Gd,getPrototypeOf:Zd}=Object,jo=globalThis,ks=jo.trustedTypes,qd=ks?ks.emptyScript:"",Yd=jo.reactiveElementPolyfillSupport,Jr=(r,t)=>r,Vo={toAttribute(r,t){switch(t){case Boolean:r=r?qd:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},Ji=(r,t)=>!Hd(r,t),Ls={attribute:!0,type:String,converter:Vo,reflect:!1,hasChanged:Ji};Symbol.metadata??=Symbol("metadata"),jo.litPropertyMetadata??=new WeakMap;var re=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Ls){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(t,o,e);n!==void 0&&Vd(this.prototype,t,n)}}static getPropertyDescriptor(t,e,o){let{get:n,set:a}=jd(this.prototype,t)??{get(){return this[e]},set(s){this[e]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(t,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ls}static _$Ei(){if(this.hasOwnProperty(Jr("elementProperties")))return;let t=Zd(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Jr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Jr("properties"))){let e=this.properties,o=[...Kd(e),...Gd(e)];for(let n of o)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[o,n]of e)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[e,o]of this.elementProperties){let n=this._$Eu(e,o);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let o=new Set(t.flat(1/0).reverse());for(let n of o)e.unshift(Xr(n))}else t!==void 0&&e.push(Xr(t));return e}static _$Eu(t,e){let o=e.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$E_??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$E_?.delete(t)}_$ES(){let t=new Map,e=this.constructor.elementProperties;for(let o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ho(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$E_?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e){let o=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:Vo).toAttribute(e,o.type);this._$Em=t,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(t,e){let o=this.constructor,n=o._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let a=o.getPropertyOptions(n),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:Vo;this._$Em=n,this[n]=s.fromAttribute(e,a.type),this._$Em=null}}requestUpdate(t,e,o,n=!1,a){if(t!==void 0){if(o??=this.constructor.getPropertyOptions(t),!(o.hasChanged??Ji)(n?a:this[t],e))return;this.C(t,e,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,o){this._$AL.has(t)||this._$AL.set(t,e),o.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[n,a]of o)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],a)}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(e)):this._$ET()}catch(o){throw t=!1,this._$ET(),o}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$E_?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(e=>this._$EO(e,this[e])),this._$ET()}updated(t){}firstUpdated(t){}};re.elementStyles=[],re.shadowRootOptions={mode:"open"},re[Jr("elementProperties")]=new Map,re[Jr("finalized")]=new Map,Yd?.({ReactiveElement:re}),(jo.reactiveElementVersions??=[]).push("2.0.2");var tn=globalThis,Ko=tn.trustedTypes,Ms=Ko?Ko.createPolicy("lit-html",{createHTML:r=>r}):void 0,en="$lit$",me=`lit$${(Math.random()+"").slice(9)}$`,rn="?"+me,Xd=`<${rn}>`,er=document,to=()=>er.createComment(""),eo=r=>r===null||typeof r!="object"&&typeof r!="function",Ws=Array.isArray,Hs=r=>Ws(r)||typeof r?.[Symbol.iterator]=="function",Qi=`[
|
|
4
4
|
\f\r]`,Qr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ds=/-->/g,Us=/>/g,Qe=RegExp(`>|${Qi}(?:([^\\s"'>=/]+)(${Qi}*=${Qi}*(?:[^
|
|
5
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Bs=/'/g,Fs=/"/g,Vs=/^(?:script|style|textarea|title)$/i,js=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),$=js(1),Jd=js(2),_e=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),zs=new WeakMap,tr=er.createTreeWalker(er,129);function Ks(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ms!==void 0?Ms.createHTML(t):t}var Gs=(r,t)=>{let e=r.length-1,o=[],n,a=t===2?"<svg>":"",s=Qr;for(let l=0;l<e;l++){let c=r[l],d,u,h=-1,y=0;for(;y<c.length&&(s.lastIndex=y,u=s.exec(c),u!==null);)y=s.lastIndex,s===Qr?u[1]==="!--"?s=Ds:u[1]!==void 0?s=Us:u[2]!==void 0?(Vs.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=Qe):u[3]!==void 0&&(s=Qe):s===Qe?u[0]===">"?(s=n??Qr,h=-1):u[1]===void 0?h=-2:(h=s.lastIndex-u[2].length,d=u[1],s=u[3]===void 0?Qe:u[3]==='"'?Fs:Bs):s===Fs||s===Bs?s=Qe:s===Ds||s===Us?s=Qr:(s=Qe,n=void 0);let b=s===Qe&&r[l+1].startsWith("/>")?" ":"";a+=s===Qr?c+Xd:h>=0?(o.push(d),c.slice(0,h)+en+c.slice(h)+me+b):c+me+(h===-2?l:b)}return[Ks(r,a+(r[e]||"<?>")+(t===2?"</svg>":"")),o]},ro=class r{constructor({strings:t,_$litType$:e},o){let n;this.parts=[];let a=0,s=0,l=t.length-1,c=this.parts,[d,u]=Gs(t,e);if(this.el=r.createElement(d,o),tr.currentNode=this.el.content,e===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=tr.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(en)){let y=u[s++],b=n.getAttribute(h).split(me),v=/([.?@])?(.*)/.exec(y);c.push({type:1,index:a,name:v[2],strings:b,ctor:v[1]==="."?Zo:v[1]==="?"?qo:v[1]==="@"?Yo:or}),n.removeAttribute(h)}else h.startsWith(me)&&(c.push({type:6,index:a}),n.removeAttribute(h));if(Vs.test(n.tagName)){let h=n.textContent.split(me),y=h.length-1;if(y>0){n.textContent=Ko?Ko.emptyScript:"";for(let b=0;b<y;b++)n.append(h[b],to()),tr.nextNode(),c.push({type:2,index:++a});n.append(h[y],to())}}}else if(n.nodeType===8)if(n.data===rn)c.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(me,h+1))!==-1;)c.push({type:7,index:a}),h+=me.length-1}a++}}static createElement(t,e){let o=er.createElement("template");return o.innerHTML=t,o}};function rr(r,t,e=r,o){if(t===_e)return t;let n=o!==void 0?e._$Co?.[o]:e._$Cl,a=eo(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,e,o)),o!==void 0?(e._$Co??=[])[o]=n:e._$Cl=n),n!==void 0&&(t=rr(r,n._$AS(r,t.values),n,o)),t}var Go=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:o}=this._$AD,n=(t?.creationScope??er).importNode(e,!0);tr.currentNode=n;let a=tr.nextNode(),s=0,l=0,c=o[0];for(;c!==void 0;){if(s===c.index){let d;c.type===2?d=new Sr(a,a.nextSibling,this,t):c.type===1?d=new c.ctor(a,c.name,c.strings,this,t):c.type===6&&(d=new Xo(a,this,t)),this._$AV.push(d),c=o[++l]}s!==c?.index&&(a=tr.nextNode(),s++)}return tr.currentNode=er,n}p(t){let e=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},Sr=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,n){this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=rr(this,t,e),eo(t)?t===B||t==null||t===""?(this._$AH!==B&&this._$AR(),this._$AH=B):t!==this._$AH&&t!==_e&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Hs(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==B&&eo(this._$AH)?this._$AA.nextSibling.data=t:this.$(er.createTextNode(t)),this._$AH=t}g(t){let{values:e,_$litType$:o}=t,n=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=ro.createElement(Ks(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(e);else{let a=new Go(n,this),s=a.u(this.options);a.p(e),this.$(s),this._$AH=a}}_$AC(t){let e=zs.get(t.strings);return e===void 0&&zs.set(t.strings,e=new ro(t)),e}T(t){Ws(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,n=0;for(let a of t)n===e.length?e.push(o=new r(this.k(to()),this.k(to()),this,this.options)):o=e[n],o._$AI(a),n++;n<e.length&&(this._$AR(o&&o._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let o=t.nextSibling;t.remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},or=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,n,a){this.type=1,this._$AH=B,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,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(t,e=this,o,n){let a=this.strings,s=!1;if(a===void 0)t=rr(this,t,e,0),s=!eo(t)||t!==this._$AH&&t!==_e,s&&(this._$AH=t);else{let l=t,c,d;for(t=a[0],c=0;c<a.length-1;c++)d=rr(this,l[o+c],e,c),d===_e&&(d=this._$AH[c]),s||=!eo(d)||d!==this._$AH[c],d===B?t=B:t!==B&&(t+=(d??"")+a[c+1]),this._$AH[c]=d}s&&!n&&this.O(t)}O(t){t===B?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Zo=class extends or{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===B?void 0:t}},qo=class extends or{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==B)}},Yo=class extends or{constructor(t,e,o,n,a){super(t,e,o,n,a),this.type=5}_$AI(t,e=this){if((t=rr(this,t,e,0)??B)===_e)return;let o=this._$AH,n=t===B&&o!==B||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,a=t!==B&&(o===B||n);n&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Xo=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){rr(this,t)}},Qd={j:en,P:me,A:rn,C:1,M:Gs,L:Go,R:Hs,V:rr,D:Sr,I:or,H:qo,N:Yo,U:Zo,B:Xo},tp=tn.litHtmlPolyfillSupport;tp?.(ro,Sr),(tn.litHtmlVersions??=[]).push("3.1.0");var on=(r,t,e)=>{let o=e?.renderBefore??t,n=o._$litPart$;if(n===void 0){let a=e?.renderBefore??null;o._$litPart$=n=new Sr(t.insertBefore(to(),a),a,void 0,e??{})}return n._$AI(r),n};var ge=class extends re{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=on(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return _e}};ge._$litElement$=!0,ge.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ge});var ep=globalThis.litElementPolyfillSupport;ep?.({LitElement:ge});var rp={_$AK:(r,t,e)=>{r._$AK(t,e)},_$AL:r=>r._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var Tf=!1;var sn={};ot(sn,{customElement:()=>op,eventOptions:()=>ye,property:()=>g,query:()=>G,queryAll:()=>ap,queryAssignedElements:()=>an,queryAssignedNodes:()=>oo,queryAsync:()=>sp,standardProperty:()=>Zs,state:()=>H});var op=r=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(r,t)}):customElements.define(r,t)};var ip={attribute:!0,type:String,converter:jr,reflect:!1,hasChanged:ko},Zs=(r=ip,t,e)=>{let{kind:o,metadata:n}=e,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),a.set(e.name,r),o==="accessor"){let{name:s}=e;return{set(l){let c=t.get.call(this);t.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}=e;return function(l){let c=this[s];t.call(this,l),this.requestUpdate(s,c,r)}}throw Error("Unsupported decorator location: "+o)};function g(r){return(t,e)=>typeof e=="object"?Zs(r,t,e):((o,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,s?{...o,wrapped:!0}:o),s?Object.getOwnPropertyDescriptor(n,a):void 0})(r,t,e)}function H(r){return g({...r,state:!0,attribute:!1})}function ye(r){return(t,e)=>{let o=typeof t=="function"?t:t[e];Object.assign(o,r)}}var Yt=(r,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(r,t,e),e);function G(r,t){return(e,o,n)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(t){let{get:s,set:l}=typeof o=="object"?e:n??(()=>{let c=Symbol();return{get(){return this[c]},set(d){this[c]=d}}})();return Yt(e,o,{get(){let c=s.call(this);return c===void 0&&(c=a(this),(c!==null||this.hasUpdated)&&l.call(this,c)),c}})}return Yt(e,o,{get(){return a(this)}})}}var np;function ap(r){return(t,e)=>Yt(t,e,{get(){return(this.renderRoot??(np??=document.createDocumentFragment())).querySelectorAll(r)}})}function sp(r){return(t,e)=>Yt(t,e,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function an(r){return(t,e)=>{let{slot:o,selector:n}=r??{},a="slot"+(o?`[name=${o}]`:":not([name])");return Yt(t,e,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return n===void 0?l:l.filter(c=>c.matches(n))}})}}function oo(r){return(t,e)=>{let{slot:o}=r??{},n="slot"+(o?`[name=${o}]`:":not([name])");return Yt(t,e,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var cn={};ot(cn,{repeat:()=>ln});var Ne={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Te=r=>(...t)=>({_$litDirective$:r,values:t}),oe=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var{D:lp}=Ps;var qs=()=>document.createComment(""),Or=(r,t,e)=>{let o=r._$AA.parentNode,n=t===void 0?r._$AB:t._$AA;if(e===void 0){let a=o.insertBefore(qs(),n),s=o.insertBefore(qs(),n);e=new lp(a,s,r,r.options)}else{let a=e._$AB.nextSibling,s=e._$AM,l=s!==r;if(l){let c;e._$AQ?.(r),e._$AM=r,e._$AP!==void 0&&(c=r._$AU)!==s._$AU&&e._$AP(c)}if(a!==n||l){let c=e._$AA;for(;c!==a;){let d=c.nextSibling;o.insertBefore(c,n),c=d}}}return e},Ie=(r,t,e=r)=>(r._$AI(t,e),r),cp={},Ys=(r,t=cp)=>r._$AH=t,Xs=r=>r._$AH,Jo=r=>{r._$AP?.(!1,!0);let t=r._$AA,e=r._$AB.nextSibling;for(;t!==e;){let o=t.nextSibling;t.remove(),t=o}};var Js=(r,t,e)=>{let o=new Map;for(let n=t;n<=e;n++)o.set(r[n],n);return o},ln=Te(class extends oe{constructor(r){if(super(r),r.type!==Ne.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,t,e){let o;e===void 0?e=t:t!==void 0&&(o=t);let n=[],a=[],s=0;for(let l of r)n[s]=o?o(l,s):s,a[s]=e(l,s),s++;return{values:a,keys:n}}render(r,t,e){return this.ht(r,t,e).values}update(r,[t,e,o]){let n=Xs(r),{values:a,keys:s}=this.ht(t,e,o);if(!Array.isArray(n))return this.dt=s,a;let l=this.dt??=[],c=[],d,u,h=0,y=n.length-1,b=0,v=a.length-1;for(;h<=y&&b<=v;)if(n[h]===null)h++;else if(n[y]===null)y--;else if(l[h]===s[b])c[b]=Ie(n[h],a[b]),h++,b++;else if(l[y]===s[v])c[v]=Ie(n[y],a[v]),y--,v--;else if(l[h]===s[v])c[v]=Ie(n[h],a[v]),Or(r,c[v+1],n[h]),h++,v--;else if(l[y]===s[b])c[b]=Ie(n[y],a[b]),Or(r,n[h],n[y]),y--,b++;else if(d===void 0&&(d=Js(s,b,v),u=Js(l,h,y)),d.has(l[h]))if(d.has(l[y])){let w=u.get(s[b]),N=w!==void 0?n[w]:null;if(N===null){let T=Or(r,n[h]);Ie(T,a[b]),c[b]=T}else c[b]=Ie(N,a[b]),Or(r,n[h],N),n[w]=null;b++}else Jo(n[y]),y--;else Jo(n[h]),h++;for(;b<=v;){let w=Or(r,c[v+1]);Ie(w,a[b]),c[b++]=w}for(;h<=y;){let w=n[h++];w!==null&&Jo(w)}return this.dt=s,Ys(r,c),Bt}});var dn={};ot(dn,{classMap:()=>Nt});var Nt=Te(class extends oe{constructor(r){if(super(r),r.type!==Ne.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(t=>r[t]).join(" ")+" "}update(r,[t]){if(this.it===void 0){this.it=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in t)t[o]&&!this.st?.has(o)&&this.it.add(o);return this.render(t)}let e=r.element.classList;for(let o of this.it)o in t||(e.remove(o),this.it.delete(o));for(let o in t){let n=!!t[o];n===this.it.has(o)||this.st?.has(o)||(n?(e.add(o),this.it.add(o)):(e.remove(o),this.it.delete(o)))}return Bt}});var pn={};ot(pn,{styleMap:()=>pp});var Qs="important",dp=" !"+Qs,pp=Te(class extends oe{constructor(r){if(super(r),r.type!==Ne.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((t,e)=>{let o=r[e];return o==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(r,[t]){let{style:e}=r.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(t)),this.render(t);for(let o of this.ut)t[o]==null&&(this.ut.delete(o),o.includes("-")?e.removeProperty(o):e[o]=null);for(let o in t){let n=t[o];if(n!=null){this.ut.add(o);let a=typeof n=="string"&&n.endsWith(dp);o.includes("-")||a?e.setProperty(o,a?n.slice(0,-11):n,a?Qs:""):e[o]=n}}return Bt}});var fn={};ot(fn,{UnsafeHTMLDirective:()=>wr,unsafeHTML:()=>un});var wr=class extends oe{constructor(t){if(super(t),this.et=lt,t.type!==Ne.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===lt||t==null)return this.vt=void 0,this.et=t;if(t===Bt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;let e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}};wr.directiveName="unsafeHTML",wr.resultType=1;var un=Te(wr);var gn={};ot(gn,{CacheRegistry:()=>ie});var mn={};ot(mn,{CancelablePromise:()=>Er,CanceledPromiseError:()=>ir,cancelable:()=>hn});var ir=class extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}},Er=class extends Promise{constructor(t){super((e,o)=>t(n=>{this.isCanceled?o(new ir("Promise has been canceled",n)):e(n)},n=>{this.isCanceled?o(new ir("Promise has been canceled",void 0,n)):o(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},hn=r=>new Er((t,e)=>r.then(t).catch(e));var ie=class{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof Er&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){this.clearTimeouts[t]!=null&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,async()=>e),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,async()=>e),this.content[t]=e}async get(t,e,o){if(this.content[t]===void 0){if(e=e??this.loaders[t],e==null)throw new Error("Unknown cache key "+t);let n=hn(e());return this.content[t]=n,n.then(a=>(this.content[t]=a,o!=null&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout(()=>this.clear(t),o)),a))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return t!=null&&!(t instanceof Promise)&&!(t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return this.content[t]!=null}resolvedKeys(){return Object.keys(this.content).filter(t=>this.isResolvedValue(this.content[t]))}resolvedValues(){return Object.values(this.content).filter(t=>this.isResolvedValue(t))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}};var yn={};ot(yn,{ClusteringHelper:()=>io});var io=class r{constructor(t,e,o,n){this.allResults=t,this.selectedResult=e,this.clusteringMetadata=o,this.metadataDescriptors=n}static extractResultMetadata(t,e){var o,n;let a=((n=(o=t?.map)!==null&&o!==void 0?o:t?.document)!==null&&n!==void 0?n:t?.topic).metadata.map(s=>r.flattenMetadata(s));return e==null?a:a.find(s=>s.key===e)}static flattenMetadata(t){if(t.hierarchicalValues){let e=[],o=[];return t.hierarchicalValues.forEach(n=>{e.push(n.join(" > ")),n.length>2?o.push(`... > ${n[n.length-1]}`):o.push(n.join(" > "))}),{key:t.key,label:t.label,value:e.join(", "),displayValue:o.join(", ")}}else{let e=t.values.join(", ");return{key:t.key,label:t.label,value:e,displayValue:e}}}computeClustersItemsForMetadata(t,e,o="No value"){var n,a;let s=r.extractResultMetadata(this.selectedResult,t),l=(n=s?.label)!==null&&n!==void 0?n:(a=this.getMetadataDescriptor(t))===null||a===void 0?void 0:a.label;return this.allResults.map(d=>r.extractResultMetadata(d,t)).map(d=>d??{key:t,label:l,value:void 0,displayValue:o}).filter(d=>d.value!=s?.value).filter((d,u,h)=>h.findIndex(y=>y.value===d.value)===u).map(d=>({result:this.findBestResultForMetadataValue(t,d.value),metadata:d})).sort((d,u)=>this.compareMetadata(d.metadata.value,u.metadata.value,t,e))}compareMetadata(t,e,o,n){if(t==null)return-1;if(e==null)return 1;let a=this.getMetadataDescriptor(o),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let c=t.localeCompare(e,n,{numeric:!0});return l?c*-1:c}return 0}getMetadataDescriptor(t){return this.metadataDescriptors.find(e=>t==e.key)}findBestResultForMetadataValue(t,e){let o=this.allResults.filter(c=>{var d;return((d=r.extractResultMetadata(c,t))===null||d===void 0?void 0:d.value)==e}),a=[...r.extractResultMetadata(this.selectedResult).filter(c=>this.clusteringMetadata.has(c.key)).filter(c=>c.key!==t)],s,l=-1;for(let c of o){let d=this.countMatchingMetadata(c,a);if(d>l&&(l=d,s=c,d===a.length))break}return s}countMatchingMetadata(t,e){return r.extractResultMetadata(t).filter(o=>e.some(n=>n.key===o.key&&n.value===o.value)).length}};var bn={};ot(bn,{Debouncer:()=>et});var et=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((e,o)=>{this.resolvePromise=e,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,e;let o=[...this.callbacks];this.callbacks=[];let n=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,a=(e=this.resolvePromise)!==null&&e!==void 0?e:()=>null;this.clearPromise();for(let s of o)try{await s()}catch(l){n(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var xn={};ot(xn,{customElement:()=>V,isNumber:()=>el,jsonProperty:()=>ne,optionalNumberProperty:()=>bp});var vn={};ot(vn,{dateReviver:()=>fp,deepEqual:()=>jt,delay:()=>Qo,eventPathContainsMatchingElement:()=>mp,flatDeep:()=>tl,last:()=>yp,minmax:()=>gp,parseDate:()=>ti,waitFor:()=>no,waitUntil:()=>up});var Qo=r=>new Promise(t=>setTimeout(t,r));async function up(r,t=10,e=2e4){await no(async()=>await r()||void 0,t,e)}async function no(r,t=10,e=2e4){let o=await r(),n,a;for(n=a=performance.now();o==null&&(!e||a-n<e);)await Qo(t),o=await r(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function tl(r,t){return r.flatMap(e=>[e,...tl(t(e),t)])}function fp(...r){return function(t,e){return r.includes(t)?ti(e):e}}function ti(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(t,e,o,n)=>e+o+":"+n),new Date(r)}function hp(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var e,o,n;if(Array.isArray(r)){if(e=r.length,e!=t.length)return!1;for(o=e;o--!==0;)if(!jt(r[o],t[o]))return!1;return!0}if(r instanceof Map&&t instanceof Map){if(r.size!==t.size)return!1;for(o of r.entries())if(!t.has(o[0]))return!1;for(o of r.entries())if(!jt(o[1],t.get(o[0])))return!1;return!0}if(r instanceof Set&&t instanceof Set){if(r.size!==t.size)return!1;for(o of r.entries())if(!t.has(o[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(n=Object.keys(r),e=n.length,e!==Object.keys(t).length)return!1;for(o=e;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(o=e;o--!==0;){var a=n[o];if(!jt(r[a],t[a]))return!1}return!0}return r!==r&&t!==t}function jt(r,t){try{return hp(r,t)}catch{return!1}}function mp(r,t,e=window.document.body){if(t.length>0){let o=r.composedPath();for(let n of o){if(n===e)return!1;if(n.matches&&t.some(a=>n.matches(a)))return!0}}return!1}function gp(r,t,e){return Math.min(Math.max(r,t),e)}function yp(r){return r[r.length-1]}var V=r=>t=>{window.customElements.get(r)||window.customElements.define(r,t)};function ne(r,t){let e=()=>JSON.parse(JSON.stringify(r));return g({type:Object,converter:{fromAttribute:o=>{if(o==null)return e();try{return JSON.parse(o)}catch{return e()}},toAttribute:o=>JSON.stringify(o)},hasChanged:(o,n)=>!jt(o,n),...t??{}})}function bp(r){return g({type:Object,converter:{fromAttribute:t=>{if(t!=null)return el(t)?+t:void 0},toAttribute:t=>t==null?void 0:""+t},...r??{}})}function el(r){return!isNaN(parseFloat(r))}var Gn={};ot(Gn,{designSystemVariables:()=>A});var Kn={};ot(Kn,{FtCssVariableFactory:()=>i,banner:()=>xp,border:()=>Mp,breadcrumb:()=>Sp,button:()=>I,chart:()=>kp,checkbox:()=>Up,chip:()=>Lp,collapsible:()=>Pp,comboboxMultiSelect:()=>Np,comboboxSingleSelect:()=>_p,drawer:()=>Ep,floatingMenu:()=>Rp,foundation:()=>p,modal:()=>wp,notice:()=>Dp,notification:()=>zp,pageHeader:()=>Op,popover:()=>Tp,radio:()=>Fp,semantic:()=>f,setVariable:()=>C,switch_:()=>$p,tabs:()=>Ip,textArea:()=>Ap,textInput:()=>Cp,toggle:()=>Bp,tooltip:()=>Wp,typographies:()=>ao,typographyBody1Medium:()=>An,typographyBody1Regular:()=>Cn,typographyBody1Semibold:()=>Rn,typographyBody2Medium:()=>Nn,typographyBody2MediumUnderline:()=>rl,typographyBody2Regular:()=>_n,typographyBody2Semibold:()=>Tn,typographyCaption1Bold:()=>Bn,typographyCaption1Medium:()=>Dn,typographyCaption1Semibold:()=>Un,typographyCaption2Bold:()=>Wn,typographyCaption2Medium:()=>Fn,typographyCaption2Semibold:()=>zn,typographyCaption3Bold:()=>jn,typographyCaption3Medium:()=>Hn,typographyCaption3Semibold:()=>Vn,typographyDisplay:()=>Sn,typographyLabel1Bold:()=>$n,typographyLabel1Medium:()=>In,typographyLabel1Semibold:()=>Pn,typographyLabel2Bold:()=>Mn,typographyLabel2Medium:()=>kn,typographyLabel2Semibold:()=>Ln,typographyTitle1:()=>On,typographyTitle2:()=>wn,typographyTitle3:()=>En,typographyVariants:()=>vp});var be=r=>typeof r=="string"?he(r):r,i=class{static create(t,e,o,n){let a=l=>be(l??n),s=P`var(${be(t)}, ${a(n)})`;return s.name=t,s.description=e,s.category=o,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>P`var(${be(t)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(t,e,o,n){let a=l=>o.get(l??n),s=P`var(${be(t)}, ${a(n)})`;return s.name=t,s.description=e,s.category=o.category,s.fallbackVariable=o,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>P`var(${be(t)}, ${a(l)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>n??o.lastResortDefaultValue(),s}static external(t,e){let o=a=>t.fallbackVariable?t.fallbackVariable.get(a??t.defaultValue):be(a??t.lastResortDefaultValue()),n=P`var(${be(t.name)}, ${o(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=e,n.defaultCssValue=o,n.get=a=>P`var(${be(t.name)}, ${o(a)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>t.lastResortDefaultValue(),n}};function C(r,t){return be(`${r.name}: ${t}`)}var p={colorWhite:i.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:i.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:i.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:i.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:i.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:i.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:i.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:i.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:i.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:i.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:i.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:i.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:i.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:i.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:i.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:i.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:i.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:i.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:i.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:i.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:i.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:i.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:i.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:i.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:i.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:i.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:i.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:i.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:i.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:i.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:i.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:i.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:i.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:i.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:i.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:i.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:i.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:i.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:i.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:i.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:i.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:i.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:i.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:i.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:i.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:i.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:i.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:i.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:i.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:i.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:i.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:i.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:i.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:i.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:i.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:i.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:i.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:i.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:i.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:i.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:i.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:i.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:i.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:i.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:i.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:i.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:i.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:i.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:i.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:i.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:i.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:i.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:i.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:i.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:i.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:i.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:i.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:i.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:i.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:i.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:i.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:i.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:i.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:i.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:i.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:i.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:i.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:i.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:i.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:i.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:i.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:i.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:i.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:i.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:i.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:i.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:i.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:i.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:i.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:i.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:i.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:i.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:i.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:i.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:i.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:i.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:i.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:i.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:i.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:i.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:i.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:i.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:i.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:i.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:i.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:i.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:i.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:i.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:i.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:i.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:i.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:i.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:i.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:i.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:i.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:i.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:i.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:i.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:i.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:i.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:i.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:i.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:i.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:i.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:i.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:i.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:i.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:i.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:i.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:i.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:i.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:i.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:i.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:i.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:i.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:i.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:i.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:i.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:i.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:i.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:i.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:i.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:i.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:i.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:i.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:i.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:i.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:i.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:i.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:i.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:i.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:i.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:i.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:i.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:i.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:i.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:i.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:i.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:i.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:i.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:i.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:i.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:i.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:i.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:i.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:i.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:i.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:i.create("--ft-icon-size-6","","SIZE","48px"),opacity0:i.create("--ft-opacity-0","","NUMBER","0"),opacity8:i.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:i.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:i.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:i.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:i.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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)")},Sn={fontFamily:i.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:i.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-display-textCase","","UNKNOWN","none")},On={fontFamily:i.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:i.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},wn={fontFamily:i.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:i.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},En={fontFamily:i.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:i.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:i.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Cn={fontFamily:i.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:i.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:i.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},An={fontFamily:i.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:i.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},Rn={fontFamily:i.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:i.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},_n={fontFamily:i.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:i.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},Nn={fontFamily:i.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},rl={fontFamily:i.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:i.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:i.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},Tn={fontFamily:i.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},In={fontFamily:i.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},Pn={fontFamily:i.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},$n={fontFamily:i.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},kn={fontFamily:i.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},Ln={fontFamily:i.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},Mn={fontFamily:i.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},Dn={fontFamily:i.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},Un={fontFamily:i.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},Bn={fontFamily:i.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},Fn={fontFamily:i.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:i.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},zn={fontFamily:i.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:i.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},Wn={fontFamily:i.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:i.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},Hn={fontFamily:i.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:i.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},Vn={fontFamily:i.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:i.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},jn={fontFamily:i.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:i.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},ao={display:Sn,"title-1":On,"title-2":wn,"title-3":En,"body-1-regular":Cn,"body-1-medium":An,"body-1-semibold":Rn,"body-2-regular":_n,"body-2-medium":Nn,"body-2-medium-underline":rl,"body-2-semibold":Tn,"label-1-medium":In,"label-1-semibold":Pn,"label-1-bold":$n,"label-2-medium":kn,"label-2-semibold":Ln,"label-2-bold":Mn,"caption-1-medium":Dn,"caption-1-semibold":Un,"caption-1-bold":Bn,"caption-2-medium":Fn,"caption-2-semibold":zn,"caption-2-bold":Wn,"caption-3-medium":Hn,"caption-3-semibold":Vn,"caption-3-bold":jn},vp=["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:i.extend("--ft-background-action-primary","Used as backgorund of primary action components.",p.colorBrand0),backgroundErrorSubtle:i.extend("--ft-background-error-subtle","Used as background of subtle error components.",p.colorRed10),backgroundInfoSubtle:i.extend("--ft-background-info-subtle","Used as background of subtle information components.",p.colorCyan10),backgroundWarningSubtle:i.extend("--ft-background-warning-subtle","Used as background of subtle information components.",p.colorOrange10),backgroundSuccessSubtle:i.extend("--ft-background-success-subtle","Used as background of subtle success components.",p.colorGreen10),backgroundGlobalSurface:i.extend("--ft-background-global-surface","Used as app background.",p.colorWhite),backgroundGlobalOnSurface:i.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",p.colorGray10),backgroundGlobalOnSurfaceDark:i.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",p.colorGray30),contentActionPrimary:i.extend("--ft-content-action-primary","Used on label of primary action on light surface.",p.colorBrand0),contentWarningPrimary:i.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",p.colorOrange200),contentWarningIconOnly:i.extend("--ft-content-warning-icon-only","Used on warning status icons alone",p.colorOrange0),contentErrorPrimary:i.extend("--ft-content-error-primary","Used on label of error messages on light surface.",p.colorRed0),contentErrorIconOnly:i.extend("--ft-content-error-icon-only","Used on error status icons alone",p.colorRed70),contentInfoPrimary:i.extend("--ft-content-info-primary","Used on label of information messages on light surface.",p.colorCyan200),contentInfoIconOnly:i.extend("--ft-content-info-icon-only","Used on info status icons alone",p.colorCyan0),contentSuccessPrimary:i.extend("--ft-content-success-primary","Used on label of success messages on light surface.",p.colorGreen200),contentSuccessIconOnly:i.extend("--ft-content-success-icon-only","Used on success status icons alone",p.colorGreen0),contentGlobalPrimary:i.extend("--ft-content-global-primary","Used for main content on the page.",p.colorGray500),contentGlobalSecondary:i.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
6
|
-
Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",p.colorGray0),contentGlobalOnColor:i.extend("--ft-content-global-on-color","Used for content on a dominant color.",p.colorWhite),borderActionPrimary:i.extend("--ft-border-action-primary","Used as border for primary action components.",p.colorBrand0),borderActionFocusRing:i.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",p.colorCyan0),borderWarningPrimary:i.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",p.colorOrange200),borderWarningSubtle:i.extend("--ft-border-warning-subtle","Used as border for warning components.",p.colorOrange30),borderSuccessPrimary:i.extend("--ft-border-success-primary","Used as border for success buttons.",p.colorGreen200),borderSuccessSubtle:i.extend("--ft-border-success-subtle","Used as border for success components.",p.colorGreen30),borderErrorPrimary:i.extend("--ft-border-error-primary","Used as border for text fields in error states.",p.colorRed0),borderErrorSubtle:i.extend("--ft-border-error-subtle","Used as border for error components.",p.colorRed30),borderInfoPrimary:i.extend("--ft-border-info-primary","Used as border for buttons in info color.",p.colorCyan200),borderInfoSubtle:i.extend("--ft-border-info-subtle","Used as border for information components.",p.colorCyan30),borderGlobalPrimary:i.extend("--ft-border-global-primary","Used as border for element like input.",p.colorGray50),borderGlobalSubtle:i.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",p.colorGray30),borderInputPrimary:i.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",p.colorGray80)};var I={largeHeight:i.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:i.extend("--ft-button-large-horizontal-padding","",p.spacing4),largeGap:i.extend("--ft-button-large-gap","",p.spacing2),largeBorderRadius:i.extend("--ft-button-large-border-radius","",p.borderRadiusS),largeIconSize:i.extend("--ft-button-large-icon-size","",p.iconSize3),largeBorderWidth:i.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:i.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:i.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:i.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:i.extend("--ft-button-small-horizontal-padding","",p.spacing3),smallGap:i.extend("--ft-button-small-gap","",p.spacing2),smallBorderRadius:i.extend("--ft-button-small-border-radius","",p.borderRadiusS),smallIconSize:i.extend("--ft-button-small-icon-size","",p.iconSize2),smallBorderWidth:i.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:i.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:i.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:i.extend("--ft-button-primary-background-color","",f.backgroundActionPrimary),primaryColor:i.extend("--ft-button-primary-color","",f.contentGlobalOnColor),primaryIconColor:i.extend("--ft-button-primary-icon-color","",f.contentGlobalOnColor),primaryStateLayerColor:i.extend("--ft-button-primary-state-layer-color","",f.contentGlobalOnColor),primaryHoverStateLayerOpacity:i.extend("--ft-button-primary-hover-state-layer-opacity","",p.opacity16),primaryFocusStateLayerOpacity:i.extend("--ft-button-primary-focus-state-layer-opacity","",p.opacity16),primaryActiveStateLayerOpacity:i.extend("--ft-button-primary-active-state-layer-opacity","",p.opacity24),primaryDisabledComponentOpacity:i.extend("--ft-button-primary-disabled-component-opacity","",p.opacity40),focusFocusRingColor:i.extend("--ft-button-focus-focus-ring-color","",f.borderActionFocusRing),tertiaryBackgroundColor:i.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:i.extend("--ft-button-tertiary-color","",f.contentActionPrimary),tertiaryIconColor:i.extend("--ft-button-tertiary-icon-color","",f.contentActionPrimary),tertiaryStateLayerColor:i.extend("--ft-button-tertiary-state-layer-color","",f.contentActionPrimary),tertiaryHoverStateLayerOpacity:i.extend("--ft-button-tertiary-hover-state-layer-opacity","",p.opacity8),tertiaryFocusStateLayerOpacity:i.extend("--ft-button-tertiary-focus-state-layer-opacity","",p.opacity8),tertiaryActiveStateLayerOpacity:i.extend("--ft-button-tertiary-active-state-layer-opacity","",p.opacity16),tertiaryDisabledComponentOpacity:i.extend("--ft-button-tertiary-disabled-component-opacity","",p.opacity40),secondaryBackgroundColor:i.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:i.extend("--ft-button-secondary-color","",f.contentActionPrimary),secondaryIconColor:i.extend("--ft-button-secondary-icon-color","",f.contentActionPrimary),secondaryStateLayerColor:i.extend("--ft-button-secondary-state-layer-color","",f.contentActionPrimary),secondaryHoverStateLayerOpacity:i.extend("--ft-button-secondary-hover-state-layer-opacity","",p.opacity8),secondaryFocusStateLayerOpacity:i.extend("--ft-button-secondary-focus-state-layer-opacity","",p.opacity8),secondaryActiveStateLayerOpacity:i.extend("--ft-button-secondary-active-state-layer-opacity","",p.opacity16),secondaryDisabledComponentOpacity:i.extend("--ft-button-secondary-disabled-component-opacity","",p.opacity40),secondaryBorderColor:i.extend("--ft-button-secondary-border-color","",f.borderActionPrimary),neutralBackgroundColor:i.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:i.extend("--ft-button-neutral-icon-color","",f.contentGlobalSecondary),neutralColor:i.extend("--ft-button-neutral-color","",f.contentGlobalSecondary),neutralStateLayerColor:i.extend("--ft-button-neutral-state-layer-color","",f.contentGlobalSecondary),neutralHoverStateLayerOpacity:i.extend("--ft-button-neutral-hover-state-layer-opacity","",p.opacity8),neutralFocusStateLayerOpacity:i.extend("--ft-button-neutral-focus-state-layer-opacity","",p.opacity8),neutralActiveStateLayerOpacity:i.extend("--ft-button-neutral-active-state-layer-opacity","",p.opacity16),neutralDisabledComponentOpacity:i.extend("--ft-button-neutral-disabled-component-opacity","",p.opacity40)};var xp={iconSize:i.extend("--ft-banner-icon-size","",p.iconSize5),borderWidth:i.create("--ft-banner-border-width","","SIZE","1px"),horizontalPadding:i.extend("--ft-banner-horizontal-padding","",p.spacing6),verticalPadding:i.extend("--ft-banner-vertical-padding","",p.spacing6),horizontalSideGap:i.extend("--ft-banner-horizontal-side-gap","",p.spacing6),horizontalMobileGap:i.extend("--ft-banner-horizontal-mobile-gap","",p.spacing4),verticalMobileGap:i.extend("--ft-banner-vertical-mobile-gap","",p.spacing6),horizontalMiddleGap:i.extend("--ft-banner-horizontal-middle-gap","",p.spacing20),infoBackgroundColor:i.extend("--ft-banner-info-background-color","",f.backgroundInfoSubtle),infoColor:i.extend("--ft-banner-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-banner-info-icon-color","",f.contentInfoIconOnly)};var Sp={horizontalGap:i.extend("--ft-breadcrumb-horizontal-gap","",p.spacing1),verticalGap:i.extend("--ft-breadcrumb-vertical-gap","",p.spacing2),currentElementColor:i.extend("--ft-breadcrumb-current-element-color","",f.contentGlobalPrimary),iconColor:i.extend("--ft-breadcrumb-icon-color","",f.contentGlobalSubtle)};var Op={horizontalPadding:i.extend("--ft-page-header-horizontal-padding","",p.spacing12),horizontalGap:i.extend("--ft-page-header-horizontal-gap","",p.spacing4),verticalGap:i.extend("--ft-page-header-vertical-gap","",p.spacing2),classicVerticalPadding:i.extend("--ft-page-header-classic-vertical-padding","",p.spacing6),multilineVerticalPadding:i.extend("--ft-page-header-multiline-vertical-padding","",p.spacing4),inlineVerticalPadding:i.extend("--ft-page-header-inline-vertical-padding","",p.spacing2),backgroundColor:i.extend("--ft-page-header-background-color","",p.colorWhite),bottomBorderColor:i.extend("--ft-page-header-bottom-border-color","",f.borderGlobalSubtle),titleColor:i.extend("--ft-page-header-title-color","",f.contentGlobalPrimary),subtitleColor:i.extend("--ft-page-header-subtitle-color","",f.contentGlobalSecondary)};var wp={smallContainerWidth:i.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:i.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:i.extend("--ft-modal-overlay-background-color","",p.colorGray700),overlayOpacity:i.extend("--ft-modal-overlay-opacity","",p.opacity40),shadow:i.extend("--ft-modal-shadow","",p.shadowElevation03),bodyBackgroundColor:i.extend("--ft-modal-body-background-color","",p.colorWhite),bodyColor:i.extend("--ft-modal-body-color","",f.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ft-modal-body-horizontal-padding","",p.spacing6),bodyVerticalPadding:i.extend("--ft-modal-body-vertical-padding","",p.spacing6),bodyVerticalGap:i.extend("--ft-modal-body-vertical-gap","",p.spacing6),containerMargin:i.extend("--ft-modal-container-margin","",p.spacing3),headerBackgroundColor:i.extend("--ft-modal-header-background-color","",f.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ft-modal-header-border-color","",f.borderGlobalSubtle),headerColor:i.extend("--ft-modal-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ft-modal-header-trailing-icon-color","",f.contentGlobalSecondary),headerVerticalPadding:i.extend("--ft-modal-header-vertical-padding","",p.spacing1),headerRightPadding:i.extend("--ft-modal-header-right-padding","",p.spacing1),headerLeftPadding:i.extend("--ft-modal-header-left-padding","",p.spacing6),headerGap:i.extend("--ft-modal-header-gap","",p.spacing2),headerBorderBottom:i.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:i.extend("--ft-modal-border-radius","",p.borderRadiusM)};var Ep={overlayOpacity:i.extend("--ft-drawer-overlay-opacity","",p.opacity40),shadow:i.extend("--ft-drawer-shadow","",p.shadowElevation03),bodyColor:i.extend("--ft-drawer-body-color","",f.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ft-drawer-body-horizontal-padding","",p.spacing6),bodyVerticalPadding:i.extend("--ft-drawer-body-vertical-padding","",p.spacing6),bodyGap:i.extend("--ft-drawer-body-gap","",p.spacing6),bodyBackgroundColor:i.extend("--ft-drawer-body-background-color","",p.colorWhite),headerBackgroundColor:i.extend("--ft-drawer-header-background-color","",f.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ft-drawer-header-border-color","",f.borderGlobalSubtle),headerColor:i.extend("--ft-drawer-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ft-drawer-header-trailing-icon-color","",f.contentGlobalSecondary),headerHeight:i.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:i.extend("--ft-drawer-header-horizontal-padding","",p.spacing2),headerBorderWidth:i.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:i.extend("--ft-drawer-header-gap","",p.spacing3),buttonsBarBackgroundColor:i.extend("--ft-drawer-buttons-bar-background-color","",f.backgroundGlobalOnSurface),buttonsBarBorderColor:i.extend("--ft-drawer-buttons-bar-border-color","",f.borderGlobalSubtle),buttonsBarColor:i.extend("--ft-drawer-buttons-bar-color","",f.contentGlobalPrimary),buttonsBarHorizontalPadding:i.extend("--ft-drawer-buttons-bar-horizontal-padding","",p.spacing4),buttonsBarVerticalPadding:i.extend("--ft-drawer-buttons-bar-vertical-padding","",p.spacing4),buttonsBarGap:i.extend("--ft-drawer-buttons-bar-gap","",p.spacing3),buttonsBarBorderWidth:i.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:i.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:i.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:i.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:i.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:i.extend("--ft-drawer-overlay-background-color","",p.colorGray700)};var Cp={fieldHorizontalPadding:i.extend("--ft-text-input-field-horizontal-padding","",p.spacing4),fieldHorizontalGap:i.extend("--ft-text-input-field-horizontal-gap","",p.spacing3),fieldVerticalGap:i.extend("--ft-text-input-field-vertical-gap","",p.spacing05),fieldIconSize:i.extend("--ft-text-input-field-icon-size","",p.iconSize3),fieldHeight:i.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:i.extend("--ft-text-input-helper-horizontal-padding","",p.spacing4),helperHorizontalGap:i.extend("--ft-text-input-helper-horizontal-gap","",p.spacing1),helperIconSize:i.extend("--ft-text-input-helper-icon-size","",p.iconSize2),borderRadius:i.extend("--ft-text-input-border-radius","",p.borderRadiusM),backgroundColor:i.extend("--ft-text-input-background-color","",p.colorWhite),contentValueColor:i.extend("--ft-text-input-content-value-color","",f.contentGlobalPrimary),trailingIconColor:i.extend("--ft-text-input-trailing-icon-color","",f.contentGlobalSubtle),labelColor:i.extend("--ft-text-input-label-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-text-input-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-text-input-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ft-text-input-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-text-input-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:i.extend("--ft-text-input-error-helper-icon-color","",f.contentErrorIconOnly),warningBorderWidth:i.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:i.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-text-input-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:i.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-text-input-disabled-component-opacity","",p.opacity40)};var Ap={backgroundColor:i.extend("--ft-text-area-background-color","",p.colorWhite),contentValueColor:i.extend("--ft-text-area-content-value-color","",f.contentGlobalPrimary),labelColor:i.extend("--ft-text-area-label-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-text-area-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-text-area-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ft-text-area-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-text-area-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:i.extend("--ft-text-area-error-helper-icon-color","",f.contentErrorIconOnly),focusFocusRingColor:i.extend("--ft-text-area-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:i.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-text-area-disabled-component-opacity","",p.opacity40),fieldHorizontalLeftPadding:i.extend("--ft-text-area-field-horizontal-left-padding","",p.spacing4),fieldHorizontalGap:i.extend("--ft-text-area-field-horizontal-gap","",p.spacing3),fieldVerticalGap:i.extend("--ft-text-area-field-vertical-gap","",p.spacing05),fieldMinHeight:i.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:i.extend("--ft-text-area-helper-horizontal-padding","",p.spacing4),helperHorizontalGap:i.extend("--ft-text-area-helper-horizontal-gap","",p.spacing1),helperIconSize:i.extend("--ft-text-area-helper-icon-size","",p.iconSize2),borderRadius:i.extend("--ft-text-area-border-radius","",p.borderRadiusM)};var Rp={height:i.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:i.extend("--ft-floating-menu-horizontal-padding","",p.spacing4),offIconColor:i.extend("--ft-floating-menu-off-icon-color","",f.contentGlobalPrimary),offColor:i.extend("--ft-floating-menu-off-color","",f.contentGlobalPrimary),onColor:i.extend("--ft-floating-menu-on-color","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-floating-menu-on-state-layer-color","",f.contentActionPrimary),gap:i.extend("--ft-floating-menu-gap","",p.spacing3),focusFocusRingColor:i.extend("--ft-floating-menu-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:i.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:i.extend("--ft-floating-menu-focus-state-layer-opacity","",p.opacity8),hoverStateLayerOpacity:i.extend("--ft-floating-menu-hover-state-layer-opacity","",p.opacity8),activeStateLayerOpacity:i.extend("--ft-floating-menu-active-state-layer-opacity","",p.opacity16),disabledComponentOpacity:i.extend("--ft-floating-menu-disabled-component-opacity","",p.opacity40),iconSize:i.extend("--ft-floating-menu-icon-size","",p.iconSize3),backgroundColor:i.extend("--ft-floating-menu-background-color","",f.backgroundGlobalOnSurface)};var _p={fieldHorizontalPadding:i.extend("--ft-combobox-single-select-field-horizontal-padding","",p.spacing4),fieldHorizontalGap:i.extend("--ft-combobox-single-select-field-horizontal-gap","",p.spacing3),fieldVerticalGap:i.extend("--ft-combobox-single-select-field-vertical-gap","",p.spacing05),fieldIconSize:i.extend("--ft-combobox-single-select-field-icon-size","",p.iconSize3),fieldHeight:i.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:i.extend("--ft-combobox-single-select-helper-horizontal-padding","",p.spacing4),helperHorizontalGap:i.extend("--ft-combobox-single-select-helper-horizontal-gap","",p.spacing1),helperVerticalGap:i.extend("--ft-combobox-single-select-helper-vertical-gap","",p.spacing1),helperIconSize:i.extend("--ft-combobox-single-select-helper-icon-size","",p.iconSize2),menuVerticalGap:i.extend("--ft-combobox-single-select-menu-vertical-gap","",p.spacing2),borderRadius:i.extend("--ft-combobox-single-select-border-radius","",p.borderRadiusM),backgroundColor:i.extend("--ft-combobox-single-select-background-color","",p.colorWhite),labelColor:i.extend("--ft-combobox-single-select-label-color","",f.contentGlobalSubtle),contentValueColor:i.extend("--ft-combobox-single-select-content-value-color","",f.contentGlobalPrimary),trailingIconColor:i.extend("--ft-combobox-single-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-combobox-single-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-combobox-single-select-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ft-combobox-single-select-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-combobox-single-select-error-helper-text-color","",f.contentErrorPrimary),warningBorderWidth:i.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:i.extend("--ft-combobox-single-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:i.extend("--ft-combobox-single-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:i.extend("--ft-combobox-single-select-warning-helper-icon-color","",f.contentWarningIconOnly),focusOutlineWidth:i.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-combobox-single-select-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:i.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-combobox-single-select-disabled-component-opacity","",p.opacity40)};var Np={backgroundColor:i.extend("--ft-combobox-multi-select-background-color","",p.colorWhite),labelColor:i.extend("--ft-combobox-multi-select-label-color","",f.contentGlobalSubtle),trailingIconColor:i.extend("--ft-combobox-multi-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-combobox-multi-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-combobox-multi-select-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:i.extend("--ft-combobox-multi-select-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-combobox-multi-select-error-helper-text-color","",f.contentErrorPrimary),errorHelperIcon:i.extend("--ft-combobox-multi-select-error-helper-icon","",f.contentErrorIconOnly),errorBorderWidth:i.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:i.extend("--ft-combobox-multi-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:i.extend("--ft-combobox-multi-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:i.extend("--ft-combobox-multi-select-warning-helper-icon-color","",f.contentWarningIconOnly),warningBorderWidth:i.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-combobox-multi-select-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:i.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-combobox-multi-select-disabled-component-opacity","",p.opacity40),helperHorizontalPadding:i.extend("--ft-combobox-multi-select-helper-horizontal-padding","",p.spacing4),helperHorizontalGap:i.extend("--ft-combobox-multi-select-helper-horizontal-gap","",p.spacing1),helperVerticalGap:i.extend("--ft-combobox-multi-select-helper-vertical-gap","",p.spacing1),helperIconSize:i.extend("--ft-combobox-multi-select-helper-icon-size","",p.iconSize2),fieldHorizontalPadding:i.extend("--ft-combobox-multi-select-field-horizontal-padding","",p.spacing4),fieldHorizontalGap:i.extend("--ft-combobox-multi-select-field-horizontal-gap","",p.spacing3),fieldVerticalGap:i.extend("--ft-combobox-multi-select-field-vertical-gap","",p.spacing05),fieldIconSize:i.extend("--ft-combobox-multi-select-field-icon-size","",p.iconSize3),fieldMaxHeight:i.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:i.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",p.spacing1),contentValuesVerticalGap:i.extend("--ft-combobox-multi-select-content-values-vertical-gap","",p.spacing1),borderRadius:i.extend("--ft-combobox-multi-select-border-radius","",p.borderRadiusM)};var Tp={backgroundColor:i.extend("--ft-popover-background-color","",f.backgroundGlobalOnSurface),horizontalPadding:i.extend("--ft-popover-horizontal-padding","",p.spacing6),verticalPadding:i.extend("--ft-popover-vertical-padding","",p.spacing6),iconColor:i.extend("--ft-popover-icon-color","",f.contentGlobalSecondary),iconSize:i.extend("--ft-popover-icon-size","",p.iconSize2),titleColor:i.extend("--ft-popover-title-color","",f.contentGlobalPrimary),bodyColor:i.extend("--ft-popover-body-color","",f.contentGlobalSecondary),linkColor:i.extend("--ft-popover-link-color","",f.contentActionPrimary),gap:i.extend("--ft-popover-gap","",p.spacing3),borderRadius:i.extend("--ft-popover-border-radius","",p.borderRadiusM),shadow:i.extend("--ft-popover-shadow","",p.shadowElevation02)};var Ip={topLeftBorderRadius:i.extend("--ft-tabs-top-left-border-radius","",p.borderRadiusS),topRightBorderRadius:i.extend("--ft-tabs-top-right-border-radius","",p.borderRadiusS),labelHorizontalPadding:i.extend("--ft-tabs-label-horizontal-padding","",p.spacing4),labelVerticalPadding:i.extend("--ft-tabs-label-vertical-padding","",p.spacing3),labelGap:i.extend("--ft-tabs-label-gap","",p.spacing1),offHoverStateLayerOpacity:i.extend("--ft-tabs-off-hover-state-layer-opacity","",p.opacity8),offFocusStateLayerOpacity:i.extend("--ft-tabs-off-focus-state-layer-opacity","",p.opacity8),offActiveStateLayerOpacity:i.extend("--ft-tabs-off-active-state-layer-opacity","",p.opacity16),offDisabledComponentOpacity:i.extend("--ft-tabs-off-disabled-component-opacity","",p.opacity40),offColor:i.extend("--ft-tabs-off-color","",f.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-tabs-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ft-tabs-on-hover-state-layer-opacity","",p.opacity8),onFocusStateLayerOpacity:i.extend("--ft-tabs-on-focus-state-layer-opacity","",p.opacity8),onActiveStateLayerOpacity:i.extend("--ft-tabs-on-active-state-layer-opacity","",p.opacity16),onDisabledComponentOpacity:i.extend("--ft-tabs-on-disabled-component-opacity","",p.opacity40),onColor:i.extend("--ft-tabs-on-color","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-tabs-on-state-layer-color","",f.contentActionPrimary),iconHorizontalPadding:i.extend("--ft-tabs-icon-horizontal-padding","",p.spacing1),iconVerticalPadding:i.extend("--ft-tabs-icon-vertical-padding","",p.spacing4),focusOutlineWidth:i.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-tabs-focus-focus-ring-color","",f.borderActionFocusRing)};var Pp={hoverStateLayerOpacity:i.extend("--ft-collapsible-hover-state-layer-opacity","",p.opacity8),focusStateLayerOpacity:i.extend("--ft-collapsible-focus-state-layer-opacity","",p.opacity8),focusOutlineWidth:i.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:i.extend("--ft-collapsible-focus-focus-ring-color","",f.borderActionFocusRing),activeStateLayerOpacity:i.extend("--ft-collapsible-active-state-layer-opacity","",p.opacity16),disabledComponentOpacity:i.extend("--ft-collapsible-disabled-component-opacity","",p.opacity40),horizontalPadding:i.extend("--ft-collapsible-horizontal-padding","",p.spacing4),verticalPadding:i.extend("--ft-collapsible-vertical-padding","",p.spacing3),color:i.extend("--ft-collapsible-color","",f.contentGlobalPrimary),stateLayerColor:i.extend("--ft-collapsible-state-layer-color","",f.contentGlobalPrimary),backgroundColor:i.extend("--ft-collapsible-background-color","",f.backgroundGlobalOnSurface),borderColor:i.extend("--ft-collapsible-border-color","",f.borderGlobalSubtle),iconSize:i.extend("--ft-collapsible-icon-size","",p.iconSize3)};var $p={groupHorizontalPadding:i.extend("--ft-switch-group-horizontal-padding","",p.spacing1),groupVerticalPadding:i.extend("--ft-switch-group-vertical-padding","",p.spacing1),groupGap:i.extend("--ft-switch-group-gap","",p.spacing1),groupBackgroundColor:i.extend("--ft-switch-group-background-color","",f.backgroundGlobalSurface),groupBorderColor:i.extend("--ft-switch-group-border-color","",f.borderGlobalSubtle),groupBorderRadius:i.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:i.extend("--ft-switch-label-horizontal-padding","",p.spacing2),labelVerticalPadding:i.extend("--ft-switch-label-vertical-padding","",p.spacing1),offHoverStateLayerOpacity:i.extend("--ft-switch-off-hover-state-layer-opacity","",p.opacity8),offFocusStateLayerOpacity:i.extend("--ft-switch-off-focus-state-layer-opacity","",p.opacity8),offActiveStateLayerOpacity:i.extend("--ft-switch-off-active-state-layer-opacity","",p.opacity16),offDisabledComponentOpacity:i.extend("--ft-switch-off-disabled-component-opacity","",p.opacity40),offColor:i.extend("--ft-switch-off-color","",f.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-switch-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ft-switch-on-hover-state-layer-opacity","",p.opacity8),onFocusStateLayerOpacity:i.extend("--ft-switch-on-focus-state-layer-opacity","",p.opacity8),onActiveStateLayerOpacity:i.extend("--ft-switch-on-active-state-layer-opacity","",p.opacity16),onDisabledComponentOpacity:i.extend("--ft-switch-on-disabled-component-opacity","",p.opacity40),onColor:i.extend("--ft-switch-on-color","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-switch-on-state-layer-color","",f.contentActionPrimary),iconHorizontalPadding:i.extend("--ft-switch-icon-horizontal-padding","",p.spacing1),iconVerticalPadding:i.extend("--ft-switch-icon-vertical-padding","",p.spacing1),focusOutlineWidth:i.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-switch-focus-focus-ring-color","",f.borderActionFocusRing),optionBorderRadius:i.extend("--ft-switch-option-border-radius","",p.borderRadiusS)};var kp={color1Light:i.extend("--ft-chart-1-light","for area color charts",p.colorBrand40),color1Base:i.extend("--ft-chart-1-base","for line charts",p.colorBrand0),color2Light:i.extend("--ft-chart-2-light","for area color charts",p.colorYellow60),color2Base:i.extend("--ft-chart-2-base","for line charts",p.colorYellow100),color3Light:i.extend("--ft-chart-3-light","",p.colorUltramarine40),color3Base:i.extend("--ft-chart-3-base","",p.colorUltramarine70),color4Light:i.extend("--ft-chart-4-light","",p.colorCyan50),color4Base:i.extend("--ft-chart-4-base","",p.colorCyan100),color5Light:i.extend("--ft-chart-5-light","",p.colorRed40),color5Base:i.extend("--ft-chart-5-base","",p.colorRed60),color6Light:i.extend("--ft-chart-6-light","",p.colorGreen40),color6Base:i.extend("--ft-chart-6-base","",p.colorGreen70),color7Light:i.extend("--ft-chart-7-light","",p.colorOrange70),color7Base:i.extend("--ft-chart-7-base","",p.colorOrange100),color8Light:i.extend("--ft-chart-8-light","",p.colorAvocado70),color8Base:i.extend("--ft-chart-8-base","",p.colorAvocado200),color9Light:i.extend("--ft-chart-9-light","",p.colorBrown50),color9Base:i.extend("--ft-chart-9-base","",p.colorBrown200),color10Light:i.extend("--ft-chart-10-light","",p.colorGray50),color10Base:i.extend("--ft-chart-10-base","",p.colorGray80),monochrome10:i.extend("--ft-chart-monochrome-10","",p.colorBrand10),monochrome20:i.extend("--ft-chart-monochrome-20","",p.colorBrand20),monochrome30:i.extend("--ft-chart-monochrome-30","",p.colorBrand40),monochrome40:i.extend("--ft-chart-monochrome-40","",p.colorBrand60),monochrome50:i.extend("--ft-chart-monochrome-50","",p.colorBrand0),monochrome60:i.extend("--ft-chart-monochrome-60","",p.colorBrand200)};var Lp={largeHorizontalPadding:i.extend("--ft-chip-large-horizontal-padding","",p.spacing4),largeVerticalPadding:i.extend("--ft-chip-large-vertical-padding","",p.spacing2),largeGap:i.extend("--ft-chip-large-gap","",p.spacing1),largeFocusOutlineOffset:i.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:i.extend("--ft-chip-large-border-radius","",p.borderRadiusPill),largeBorderWidth:i.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ft-chip-large-icon-size","",p.iconSize3),mediumHorizontalPadding:i.extend("--ft-chip-medium-horizontal-padding","",p.spacing3),mediumVerticalPadding:i.extend("--ft-chip-medium-vertical-padding","",p.spacing1),mediumGap:i.extend("--ft-chip-medium-gap","",p.spacing1),mediumFocusOutlineOffset:i.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:i.extend("--ft-chip-medium-border-radius","",p.borderRadiusPill),mediumBorderWidth:i.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ft-chip-medium-icon-size","",p.iconSize2),smallHorizontalPadding:i.extend("--ft-chip-small-horizontal-padding","",p.spacing2),smallVerticalPadding:i.extend("--ft-chip-small-vertical-padding","",p.spacing05),smallGap:i.extend("--ft-chip-small-gap","",p.spacing1),smallFocusOutlineOffset:i.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:i.extend("--ft-chip-small-border-radius","",p.borderRadiusPill),smallBorderWidth:i.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:i.extend("--ft-chip-small-icon-size","",p.iconSize1),neutralBackgroundColor:i.extend("--ft-chip-neutral-background-color","",f.backgroundGlobalOnSurface),neutralColor:i.extend("--ft-chip-neutral-color","",f.contentGlobalPrimary),neutralIconColor:i.extend("--ft-chip-neutral-icon-color","",f.contentGlobalPrimary),neutralBorderColor:i.extend("--ft-chip-neutral-border-color","",f.borderGlobalSubtle),infoBackgroundColor:i.extend("--ft-chip-info-background-color","",f.backgroundInfoSubtle),infoColor:i.extend("--ft-chip-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-chip-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:i.extend("--ft-chip-info-border-color","",f.borderInfoSubtle),successBackgroundColor:i.extend("--ft-chip-success-background-color","",f.backgroundSuccessSubtle),successColor:i.extend("--ft-chip-success-color","",f.contentSuccessPrimary),successIconColor:i.extend("--ft-chip-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:i.extend("--ft-chip-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:i.extend("--ft-chip-warning-background-color","",f.backgroundWarningSubtle),warningColor:i.extend("--ft-chip-warning-color","",f.contentWarningPrimary),warningIconColor:i.extend("--ft-chip-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:i.extend("--ft-chip-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:i.extend("--ft-chip-error-background-color","",f.backgroundErrorSubtle),errorColor:i.extend("--ft-chip-error-color","",f.contentErrorPrimary),errorIconColor:i.extend("--ft-chip-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:i.extend("--ft-chip-error-border-color","",f.borderErrorSubtle)};var Mp={infoBorderColor:i.extend("--ft-border-info-border-color","",f.borderInfoSubtle)};var Dp={borderWidth:i.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:i.extend("--ft-notice-horizontal-padding","",p.spacing2),verticalPadding:i.extend("--ft-notice-vertical-padding","",p.spacing1),borderRadius:i.extend("--ft-notice-border-radius","",p.borderRadiusS),gap:i.extend("--ft-notice-gap","",p.spacing2),iconSize:i.extend("--ft-notice-icon-size","",p.iconSize3),infoBackgroundColor:i.extend("--ft-notice-info-background-color","",f.backgroundInfoSubtle),infoBorderColor:i.extend("--ft-notice-info-border-color","",f.borderInfoSubtle),infoColor:i.extend("--ft-notice-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-notice-info-icon-color","",f.contentInfoIconOnly),warningBackgroundColor:i.extend("--ft-notice-warning-background-color","",f.backgroundWarningSubtle),warningBorderColor:i.extend("--ft-notice-warning-border-color","",f.borderWarningSubtle),warningColor:i.extend("--ft-notice-warning-color","",f.contentWarningPrimary),warningIconColor:i.extend("--ft-notice-warning-icon-color","",f.contentWarningIconOnly),errorBackgroundColor:i.extend("--ft-notice-error-background-color","",f.backgroundErrorSubtle),errorBorderColor:i.extend("--ft-notice-error-border-color","",f.borderErrorSubtle),errorColor:i.extend("--ft-notice-error-color","",f.contentErrorPrimary),errorIconColor:i.extend("--ft-notice-error-icon-color","",f.contentErrorIconOnly),successBackgroundColor:i.extend("--ft-notice-success-background-color","",f.backgroundSuccessSubtle),successBorderColor:i.extend("--ft-notice-success-border-color","",f.borderSuccessSubtle),successColor:i.extend("--ft-notice-success-color","",f.contentSuccessPrimary),successIconColor:i.extend("--ft-notice-success-icon-color","",f.contentSuccessIconOnly)};var Up={color:i.extend("--ft-checkbox-color","",f.contentGlobalPrimary),checkedBackgroundColor:i.extend("--ft-checkbox-checked-background-color","",f.contentActionPrimary),checkedStateLayerColor:i.extend("--ft-checkbox-checked-state-layer-color","",f.contentActionPrimary),checkedIconColor:i.extend("--ft-checkbox-checked-icon-color","",f.contentGlobalOnColor),checkedHoverStateLayerOpacity:i.extend("--ft-checkbox-checked-hover-state-layer-opacity","",p.opacity16),checkedFocusStateLayerOpacity:i.extend("--ft-checkbox-checked-focus-state-layer-opacity","",p.opacity16),checkedActiveStateLayerOpacity:i.extend("--ft-checkbox-checked-active-state-layer-opacity","",p.opacity24),checkedDisabledComponentOpacity:i.extend("--ft-checkbox-checked-disabled-component-opacity","",p.opacity40),uncheckedBorderColor:i.extend("--ft-checkbox-unchecked-border-color","",p.colorGray80),uncheckedStateLayerColor:i.extend("--ft-checkbox-unchecked-state-layer-color","",p.colorGray80),uncheckedHoverStateLayerOpacity:i.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",p.opacity16),uncheckedFocusStateLayerOpacity:i.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",p.opacity16),uncheckedActiveStateLayerOpacity:i.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",p.opacity24),uncheckedDisabledComponentOpacity:i.extend("--ft-checkbox-unchecked-disabled-component-opacity","",p.opacity40),focusFocusRingColor:i.extend("--ft-checkbox-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:i.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:i.extend("--ft-checkbox-gap","",p.spacing3)};var Bp={offHoverStateLayerOpacity:i.extend("--ft-toggle-off-hover-state-layer-opacity","",p.opacity16),offFocusStateLayerOpacity:i.extend("--ft-toggle-off-focus-state-layer-opacity","",p.opacity16),offActiveStateLayerOpacity:i.extend("--ft-toggle-off-active-state-layer-opacity","",p.opacity24),offDisabledComponentOpacity:i.extend("--ft-toggle-off-disabled-component-opacity","",p.opacity40),offBackgroundColor:i.extend("--ft-toggle-off-background-color","",f.contentGlobalSubtle),offIconColor:i.extend("--ft-toggle-off-icon-color","",f.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-toggle-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ft-toggle-on-hover-state-layer-opacity","",p.opacity16),onFocusStateLayerOpacity:i.extend("--ft-toggle-on-focus-state-layer-opacity","",p.opacity16),onActiveStateLayerOpacity:i.extend("--ft-toggle-on-active-state-layer-opacity","",p.opacity24),onDisabledComponentOpacity:i.extend("--ft-toggle-on-disabled-component-opacity","",p.opacity40),onBackgroundColor:i.extend("--ft-toggle-on-background-color","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-toggle-on-state-layer-color","",f.contentActionPrimary),onIconColor:i.extend("--ft-toggle-on-icon-color","",f.contentActionPrimary),color:i.extend("--ft-toggle-color","",f.contentGlobalPrimary),focusFocusRingColor:i.extend("--ft-toggle-focus-focus-ring-color","",f.borderActionFocusRing),gap:i.extend("--ft-toggle-gap","",p.spacing3)};var Fp={color:i.extend("--ft-radio-color","",f.contentGlobalPrimary),selectedRadioColor:i.extend("--ft-radio-selected-radio-color","",f.contentActionPrimary),selectedStateLayerColor:i.extend("--ft-radio-selected-state-layer-color","",f.contentActionPrimary),selectedHoverStateLayerOpacity:i.extend("--ft-radio-selected-hover-state-layer-opacity","",p.opacity16),selectedFocusStateLayerOpacity:i.extend("--ft-radio-selected-focus-state-layer-opacity","",p.opacity16),selectedActiveStateLayerOpacity:i.extend("--ft-radio-selected-active-state-layer-opacity","",p.opacity24),selectedDisabledComponentOpacity:i.extend("--ft-radio-selected-disabled-component-opacity","",p.opacity40),unselectedStateLayerColor:i.extend("--ft-radio-unselected-state-layer-color","",f.borderInputPrimary),unselectedBorderColor:i.extend("--ft-radio-unselected-border-color","",f.borderInputPrimary),unselectedHoverStateLayerOpacity:i.extend("--ft-radio-unselected-hover-state-layer-opacity","",p.opacity16),unselectedFocusStateLayerOpacity:i.extend("--ft-radio-unselected-focus-state-layer-opacity","",p.opacity16),unselectedActiveStateLayerOpacity:i.extend("--ft-radio-unselected-active-state-layer-opacity","",p.opacity24),unselectedDisabledComponentOpacity:i.extend("--ft-radio-unselected-disabled-component-opacity","",p.opacity40),focusFocusRingColor:i.extend("--ft-radio-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:i.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:i.extend("--ft-radio-gap","",p.spacing3)};var zp={iconSize:i.extend("--ft-notification-icon-size","",p.iconSize4),horizontalPadding:i.extend("--ft-notification-horizontal-padding","",p.spacing4),verticalPadding:i.extend("--ft-notification-vertical-padding","",p.spacing4),infoBackgroundColor:i.extend("--ft-notification-info-background-color","",f.backgroundInfoSubtle),infoColor:i.extend("--ft-notification-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-notification-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:i.extend("--ft-notification-info-border-color","",f.borderInfoSubtle),successBackgroundColor:i.extend("--ft-notification-success-background-color","",f.backgroundSuccessSubtle),successColor:i.extend("--ft-notification-success-color","",f.contentSuccessPrimary),successIconColor:i.extend("--ft-notification-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:i.extend("--ft-notification-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:i.extend("--ft-notification-warning-background-color","",f.backgroundWarningSubtle),warningColor:i.extend("--ft-notification-warning-color","",f.contentWarningPrimary),warningIconColor:i.extend("--ft-notification-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:i.extend("--ft-notification-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:i.extend("--ft-notification-error-background-color","",f.backgroundErrorSubtle),errorColor:i.extend("--ft-notification-error-color","",f.contentErrorPrimary),errorIconColor:i.extend("--ft-notification-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:i.extend("--ft-notification-error-border-color","",f.borderErrorSubtle),borderRadius:i.extend("--ft-notification-border-radius","",p.borderRadiusPill),borderWidth:i.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:i.extend("--ft-notification-leading-gap","",p.spacing2),trailingGap:i.extend("--ft-notification-trailing-gap","",p.spacing8)};var Wp={horizontalPadding:i.extend("--ft-tooltip-horizontal-padding","",p.spacing2),verticalPadding:i.extend("--ft-tooltip-vertical-padding","",p.spacing2),borderRadius:i.extend("--ft-tooltip-border-radius","",p.borderRadiusS),color:i.extend("--ft-tooltip-color","",f.contentGlobalOnColor),backgroundColor:i.extend("--ft-tooltip-background-color","",f.contentGlobalPrimary),backgroundOpacity:i.extend("--ft-tooltip-background-opacity","",p.opacity80),shadow:i.extend("--ft-tooltip-shadow","",p.shadowElevation03),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","256px"),gap:i.extend("--ft-tooltip-gap","",p.spacing05)};var A={colorPrimary:i.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:i.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:i.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:i.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:i.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:i.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:i.create("--ft-color-error","","COLOR","#B00020"),colorOutline:i.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:i.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:i.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:i.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:i.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:i.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:i.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:i.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:i.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:i.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:i.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:i.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:i.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:i.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:i.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:i.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:i.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:i.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:i.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:i.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:i.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:i.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:i.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:i.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:i.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:i.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:i.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:i.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:i.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:i.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:i.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:i.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:i.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:i.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:i.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:i.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:i.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:i.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:i.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:i.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:i.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:i.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:i.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:i.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var Yn={};ot(Yn,{FtNotificationEvent:()=>Tt,PostResizeEvent:()=>qn,PreResizeEvent:()=>Zn});var Tt=class extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}},Zn=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},qn=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};var sa={};ot(sa,{computeOffsetPosition:()=>fo});var il=["top","right","bottom","left"],ol=["start","end"],Jn=il.reduce((r,t)=>r.concat(t,t+"-"+ol[0],t+"-"+ol[1]),[]),so=Math.min,Pe=Math.max,lo=Math.round;var ve=r=>({x:r,y:r}),Hp={left:"right",right:"left",bottom:"top",top:"bottom"},Vp={start:"end",end:"start"};function Qn(r,t,e){return Pe(r,so(t,e))}function ei(r,t){return typeof r=="function"?r(t):r}function Cr(r){return r.split("-")[0]}function $e(r){return r.split("-")[1]}function ta(r){return r==="x"?"y":"x"}function ea(r){return r==="y"?"height":"width"}function ri(r){return["top","bottom"].includes(Cr(r))?"y":"x"}function ra(r){return ta(ri(r))}function nl(r,t,e){e===void 0&&(e=!1);let o=$e(r),n=ra(r),a=ea(n),s=n==="x"?o===(e?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Xn(s)),[s,Xn(s)]}function al(r){return r.replace(/start|end/g,t=>Vp[t])}function Xn(r){return r.replace(/left|right|bottom|top/g,t=>Hp[t])}function jp(r){return{top:0,right:0,bottom:0,left:0,...r}}function sl(r){return typeof r!="number"?jp(r):{top:r,right:r,bottom:r,left:r}}function nr(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function ll(r,t,e){let{reference:o,floating:n}=r,a=ri(t),s=ra(t),l=ea(s),c=Cr(t),d=a==="y",u=o.x+o.width/2-n.width/2,h=o.y+o.height/2-n.height/2,y=o[l]/2-n[l]/2,b;switch(c){case"top":b={x:u,y:o.y-n.height};break;case"bottom":b={x:u,y:o.y+o.height};break;case"right":b={x:o.x+o.width,y:h};break;case"left":b={x:o.x-n.width,y:h};break;default:b={x:o.x,y:o.y}}switch($e(t)){case"start":b[s]-=y*(e&&d?-1:1);break;case"end":b[s]+=y*(e&&d?-1:1);break}return b}var cl=async(r,t,e)=>{let{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:s}=e,l=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t)),d=await s.getElementRects({reference:r,floating:t,strategy:n}),{x:u,y:h}=ll(d,o,c),y=o,b={},v=0;for(let w=0;w<l.length;w++){let{name:N,fn:T}=l[w],{x:k,y:O,data:S,reset:E}=await T({x:u,y:h,initialPlacement:o,placement:y,strategy:n,middlewareData:b,rects:d,platform:s,elements:{reference:r,floating:t}});if(u=k??u,h=O??h,b={...b,[N]:{...b[N],...S}},E&&v<=50){v++,typeof E=="object"&&(E.placement&&(y=E.placement),E.rects&&(d=E.rects===!0?await s.getElementRects({reference:r,floating:t,strategy:n}):E.rects),{x:u,y:h}=ll(d,y,c)),w=-1;continue}}return{x:u,y:h,placement:y,strategy:n,middlewareData:b}};async function oa(r,t){var e;t===void 0&&(t={});let{x:o,y:n,platform:a,rects:s,elements:l,strategy:c}=r,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:y=!1,padding:b=0}=ei(t,r),v=sl(b),N=l[y?h==="floating"?"reference":"floating":h],T=nr(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(N)))==null||e?N:N.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:d,rootBoundary:u,strategy:c})),k=h==="floating"?{...s.floating,x:o,y:n}:s.reference,O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),S=await(a.isElement==null?void 0:a.isElement(O))?await(a.getScale==null?void 0:a.getScale(O))||{x:1,y:1}:{x:1,y:1},E=nr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:k,offsetParent:O,strategy:c}):k);return{top:(T.top-E.top+v.top)/S.y,bottom:(E.bottom-T.bottom+v.bottom)/S.y,left:(T.left-E.left+v.left)/S.x,right:(E.right-T.right+v.right)/S.x}}function Kp(r,t,e){return(r?[...e.filter(n=>$e(n)===r),...e.filter(n=>$e(n)!==r)]:e.filter(n=>Cr(n)===n)).filter(n=>r?$e(n)===r||(t?al(n)!==n:!1):!0)}var ia=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(t){var e,o,n;let{rects:a,middlewareData:s,placement:l,platform:c,elements:d}=t,{crossAxis:u=!1,alignment:h,allowedPlacements:y=Jn,autoAlignment:b=!0,...v}=ei(r,t),w=h!==void 0||y===Jn?Kp(h||null,b,y):y,N=await oa(t,v),T=((e=s.autoPlacement)==null?void 0:e.index)||0,k=w[T];if(k==null)return{};let O=nl(k,a,await(c.isRTL==null?void 0:c.isRTL(d.floating)));if(l!==k)return{reset:{placement:w[0]}};let S=[N[Cr(k)],N[O[0]],N[O[1]]],E=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:k,overflows:S}],D=w[T+1];if(D)return{data:{index:T+1,overflows:E},reset:{placement:D}};let z=E.map(m=>{let x=$e(m.placement);return[m.placement,x&&u?m.overflows.slice(0,2).reduce((_,K)=>_+K,0):m.overflows[0],m.overflows]}).sort((m,x)=>m[1]-x[1]),Y=((n=z.filter(m=>m[2].slice(0,$e(m[0])?2:3).every(x=>x<=0))[0])==null?void 0:n[0])||z[0][0];return Y!==l?{data:{index:T+1,overflows:E},reset:{placement:Y}}:{}}}};var na=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(t){let{x:e,y:o,placement:n}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:N=>{let{x:T,y:k}=N;return{x:T,y:k}}},...c}=ei(r,t),d={x:e,y:o},u=await oa(t,c),h=ri(Cr(n)),y=ta(h),b=d[y],v=d[h];if(a){let N=y==="y"?"top":"left",T=y==="y"?"bottom":"right",k=b+u[N],O=b-u[T];b=Qn(k,b,O)}if(s){let N=h==="y"?"top":"left",T=h==="y"?"bottom":"right",k=v+u[N],O=v-u[T];v=Qn(k,v,O)}let w=l.fn({...t,[y]:b,[h]:v});return{...w,data:{x:w.x-e,y:w.y-o}}}}};function xe(r){return pl(r)?(r.nodeName||"").toLowerCase():"#document"}function kt(r){var t;return(r==null||(t=r.ownerDocument)==null?void 0:t.defaultView)||window}function Se(r){var t;return(t=(pl(r)?r.ownerDocument:r.document)||window.document)==null?void 0:t.documentElement}function pl(r){return r instanceof Node||r instanceof kt(r).Node}function ae(r){return r instanceof Element||r instanceof kt(r).Element}function Xt(r){return r instanceof HTMLElement||r instanceof kt(r).HTMLElement}function dl(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof kt(r).ShadowRoot}function Ar(r){let{overflow:t,overflowX:e,overflowY:o,display:n}=Ft(r);return/auto|scroll|overlay|hidden|clip/.test(t+o+e)&&!["inline","contents"].includes(n)}function ul(r){return["table","td","th"].includes(xe(r))}function ii(r){let t=ni(),e=Ft(r);return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(e.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(e.contain||"").includes(o))}function fl(r){let t=ar(r);for(;Xt(t)&&!co(t);){if(ii(t))return t;t=ar(t)}return null}function ni(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function co(r){return["html","body","#document"].includes(xe(r))}function Ft(r){return kt(r).getComputedStyle(r)}function po(r){return ae(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function ar(r){if(xe(r)==="html")return r;let t=r.assignedSlot||r.parentNode||dl(r)&&r.host||Se(r);return dl(t)?t.host:t}function hl(r){let t=ar(r);return co(t)?r.ownerDocument?r.ownerDocument.body:r.body:Xt(t)&&Ar(t)?t:hl(t)}function oi(r,t,e){var o;t===void 0&&(t=[]),e===void 0&&(e=!0);let n=hl(r),a=n===((o=r.ownerDocument)==null?void 0:o.body),s=kt(n);return a?t.concat(s,s.visualViewport||[],Ar(n)?n:[],s.frameElement&&e?oi(s.frameElement):[]):t.concat(n,oi(n,[],e))}function yl(r){let t=Ft(r),e=parseFloat(t.width)||0,o=parseFloat(t.height)||0,n=Xt(r),a=n?r.offsetWidth:e,s=n?r.offsetHeight:o,l=lo(e)!==a||lo(o)!==s;return l&&(e=a,o=s),{width:e,height:o,$:l}}function bl(r){return ae(r)?r:r.contextElement}function Rr(r){let t=bl(r);if(!Xt(t))return ve(1);let e=t.getBoundingClientRect(),{width:o,height:n,$:a}=yl(t),s=(a?lo(e.width):e.width)/o,l=(a?lo(e.height):e.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Gp=ve(0);function vl(r){let t=kt(r);return!ni()||!t.visualViewport?Gp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Zp(r,t,e){return t===void 0&&(t=!1),!e||t&&e!==kt(r)?!1:t}function uo(r,t,e,o){t===void 0&&(t=!1),e===void 0&&(e=!1);let n=r.getBoundingClientRect(),a=bl(r),s=ve(1);t&&(o?ae(o)&&(s=Rr(o)):s=Rr(r));let l=Zp(a,e,o)?vl(a):ve(0),c=(n.left+l.x)/s.x,d=(n.top+l.y)/s.y,u=n.width/s.x,h=n.height/s.y;if(a){let y=kt(a),b=o&&ae(o)?kt(o):o,v=y.frameElement;for(;v&&o&&b!==y;){let w=Rr(v),N=v.getBoundingClientRect(),T=Ft(v),k=N.left+(v.clientLeft+parseFloat(T.paddingLeft))*w.x,O=N.top+(v.clientTop+parseFloat(T.paddingTop))*w.y;c*=w.x,d*=w.y,u*=w.x,h*=w.y,c+=k,d+=O,v=kt(v).frameElement}}return nr({width:u,height:h,x:c,y:d})}function qp(r){let{rect:t,offsetParent:e,strategy:o}=r,n=Xt(e),a=Se(e);if(e===a)return t;let s={scrollLeft:0,scrollTop:0},l=ve(1),c=ve(0);if((n||!n&&o!=="fixed")&&((xe(e)!=="body"||Ar(a))&&(s=po(e)),Xt(e))){let d=uo(e);l=Rr(e),c.x=d.x+e.clientLeft,c.y=d.y+e.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+c.x,y:t.y*l.y-s.scrollTop*l.y+c.y}}function Yp(r){return Array.from(r.getClientRects())}function xl(r){return uo(Se(r)).left+po(r).scrollLeft}function Xp(r){let t=Se(r),e=po(r),o=r.ownerDocument.body,n=Pe(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=Pe(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-e.scrollLeft+xl(r),l=-e.scrollTop;return Ft(o).direction==="rtl"&&(s+=Pe(t.clientWidth,o.clientWidth)-n),{width:n,height:a,x:s,y:l}}function Jp(r,t){let e=kt(r),o=Se(r),n=e.visualViewport,a=o.clientWidth,s=o.clientHeight,l=0,c=0;if(n){a=n.width,s=n.height;let d=ni();(!d||d&&t==="fixed")&&(l=n.offsetLeft,c=n.offsetTop)}return{width:a,height:s,x:l,y:c}}function Qp(r,t){let e=uo(r,!0,t==="fixed"),o=e.top+r.clientTop,n=e.left+r.clientLeft,a=Xt(r)?Rr(r):ve(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,c=n*a.x,d=o*a.y;return{width:s,height:l,x:c,y:d}}function ml(r,t,e){let o;if(t==="viewport")o=Jp(r,e);else if(t==="document")o=Xp(Se(r));else if(ae(t))o=Qp(t,e);else{let n=vl(r);o={...t,x:t.x-n.x,y:t.y-n.y}}return nr(o)}function Sl(r,t){let e=ar(r);return e===t||!ae(e)||co(e)?!1:Ft(e).position==="fixed"||Sl(e,t)}function tu(r,t){let e=t.get(r);if(e)return e;let o=oi(r,[],!1).filter(l=>ae(l)&&xe(l)!=="body"),n=null,a=Ft(r).position==="fixed",s=a?ar(r):r;for(;ae(s)&&!co(s);){let l=Ft(s),c=ii(s);!c&&l.position==="fixed"&&(n=null),(a?!c&&!n:!c&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Ar(s)&&!c&&Sl(r,s))?o=o.filter(u=>u!==s):n=l,s=ar(s)}return t.set(r,o),o}function eu(r){let{element:t,boundary:e,rootBoundary:o,strategy:n}=r,s=[...e==="clippingAncestors"?tu(t,this._c):[].concat(e),o],l=s[0],c=s.reduce((d,u)=>{let h=ml(t,u,n);return d.top=Pe(h.top,d.top),d.right=so(h.right,d.right),d.bottom=so(h.bottom,d.bottom),d.left=Pe(h.left,d.left),d},ml(t,l,n));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function ru(r){return yl(r)}function ou(r,t,e){let o=Xt(t),n=Se(t),a=e==="fixed",s=uo(r,!0,a,t),l={scrollLeft:0,scrollTop:0},c=ve(0);if(o||!o&&!a)if((xe(t)!=="body"||Ar(n))&&(l=po(t)),o){let d=uo(t,!0,a,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else n&&(c.x=xl(n));return{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function gl(r,t){return!Xt(r)||Ft(r).position==="fixed"?null:t?t(r):r.offsetParent}function Ol(r,t){let e=kt(r);if(!Xt(r))return e;let o=gl(r,t);for(;o&&ul(o)&&Ft(o).position==="static";)o=gl(o,t);return o&&(xe(o)==="html"||xe(o)==="body"&&Ft(o).position==="static"&&!ii(o))?e:o||fl(r)||e}var iu=async function(r){let{reference:t,floating:e,strategy:o}=r,n=this.getOffsetParent||Ol,a=this.getDimensions;return{reference:ou(t,await n(e),o),floating:{x:0,y:0,...await a(e)}}};function nu(r){return Ft(r).direction==="rtl"}var ai={convertOffsetParentRelativeRectToViewportRelativeRect:qp,getDocumentElement:Se,getClippingRect:eu,getOffsetParent:Ol,getElementRects:iu,getClientRects:Yp,getDimensions:ru,getScale:Rr,isElement:ae,isRTL:nu};var wl=(r,t,e)=>{let o=new Map,n={platform:ai,...e},a={...n.platform,_c:o};return cl(r,t,{...n,platform:a})};function El(r){return au(r)}function aa(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function au(r){for(let t=r;t;t=aa(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=aa(r);t;t=aa(t)){if(!(t instanceof Element))continue;let e=getComputedStyle(t);if(e.display!=="contents"&&(e.position!=="static"||e.filter!=="none"||t.tagName==="BODY"))return t}return null}async function fo(r,t,e){return wl(r,t,{platform:{...ai,getOffsetParent:o=>ai.getOffsetParent(o,El)},middleware:[na({crossAxis:!0}),ia({allowedPlacements:[e]})]})}var da={};ot(da,{FtLitElement:()=>W});var la={};ot(la,{ScopedRegistryLitElement:()=>ho});var si=window,su=si.ShadowRoot&&(si.ShadyCSS===void 0||si.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_y=Symbol();var Cl=(r,t)=>{su?r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{let o=document.createElement("style"),n=si.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=e.cssText,r.appendChild(o)})};var ho=class extends ge{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([n,a])=>t.registry.define(n,a)));let e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return Cl(o,t.elementStyles),o}};var ca=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},_l,Al=Symbol("constructorPrototype"),Rl=Symbol("constructorName"),Nl=Symbol("exportpartsDebouncer"),W=class extends ho{constructor(){super(),this.adoptedCustomStyleSheet=new CSSStyleSheet,this.useAdoptedStyleSheets=!0,this[_l]=new et(5),this[Rl]=this.constructor.name,this[Al]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Rl]&&Object.setPrototypeOf(this,this[Al])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet])}catch(t){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",t)}}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}applyCustomStylesheet(t){var e,o,n;if(this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((e=this.customStylesheet)!==null&&e!==void 0?e:"")}catch(a){console.error(a,this.customStylesheet)}}else if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var t,e,o;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(o=(e=this.exportpartsPrefixes)===null||e===void 0?void 0:e.length)!==null&&o!==void 0&&o)&&this[Nl].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var e,o,n,a,s,l;let c=y=>y!=null&&y.trim().length>0,d=t.filter(c).map(y=>y.trim());if(d.length===0){this.removeAttribute("exportparts");return}let u=new Set;for(let y of(o=(e=this.shadowRoot)===null||e===void 0?void 0:e.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let b=(a=(n=y.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],v=(l=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(w=>w.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...b,...v).filter(c).map(w=>w.trim()).forEach(w=>u.add(w))}if(u.size===0){this.removeAttribute("exportparts");return}let h=[...u.values()].flatMap(y=>d.map(b=>`${y}:${b}--${y}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};_l=Nl;ca([g()],W.prototype,"exportpartsPrefix",void 0);ca([ne([])],W.prototype,"exportpartsPrefixes",void 0);ca([g()],W.prototype,"customStylesheet",void 0);var Tl={};var ha={};ot(ha,{highlightHtml:()=>fa,highlightHtmlColorCssVariable:()=>Il,highlightHtmlStyles:()=>cu});var sr=class r{constructor(t,e=!0,o=[],n=5e3){this.ctx=t,this.iframes=e,this.exclude=o,this.iframesTimeout=n}static matches(t,e){let o=typeof e=="string"?[e]:e,n=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(n){let a=!1;return o.every(s=>n.call(t,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let t,e=[];return typeof this.ctx>"u"||!this.ctx?t=[]:NodeList.prototype.isPrototypeOf(this.ctx)?t=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?t=this.ctx:typeof this.ctx=="string"?t=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):t=[this.ctx],t.forEach(o=>{let n=e.filter(a=>a.contains(o)).length>0;e.indexOf(o)===-1&&!n&&e.push(o)}),e}getIframeContents(t,e,o=()=>{}){let n;try{let a=t.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{o()}n&&e(n)}isIframeBlank(t){let e="about:blank",o=t.getAttribute("src").trim();return t.contentWindow.location.href===e&&o!==e&&o}observeIframeLoad(t,e,o){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(t)||(t.removeEventListener("load",s),this.getIframeContents(t,e,o))}catch{o()}}};t.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(t,e,o){try{t.contentWindow.document.readyState==="complete"?this.isIframeBlank(t)?this.observeIframeLoad(t,e,o):this.getIframeContents(t,e,o):this.observeIframeLoad(t,e,o)}catch{o()}}waitForIframes(t,e){let o=0;this.forEachIframe(t,()=>!0,n=>{o++,this.waitForIframes(n.querySelector("html"),()=>{--o||e()})},n=>{n||e()})}forEachIframe(t,e,o,n=()=>{}){let a=t.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let c=()=>{--s<=0&&n(l)};s||c(),a.forEach(d=>{r.matches(d,this.exclude)?c():this.onIframeReady(d,u=>{e(d)&&(l++,o(u)),c()},c)})}createIterator(t,e,o){return document.createNodeIterator(t,e,o,!1)}createInstanceOnIframe(t){return new r(t.querySelector("html"),this.iframes)}compareNodeIframe(t,e,o){let n=t.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(e!==null){let s=e.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(t){let e=t.previousNode(),o;return e===null?o=t.nextNode():o=t.nextNode()&&t.nextNode(),{prevNode:e,node:o}}checkIframeFilter(t,e,o,n){let a=!1,s=!1;return n.forEach((l,c)=>{l.val===o&&(a=c,s=l.handled)}),this.compareNodeIframe(t,e,o)?(a===!1&&!s?n.push({val:o,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:o,handled:!1}),!1)}handleOpenIframes(t,e,o,n){t.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(e,o,n)})})}iterateThroughNodes(t,e,o,n,a){let s=this.createIterator(e,t,n),l=[],c=[],d,u,h=()=>({prevNode:u,node:d}=this.getIteratorNode(s),d);for(;h();)this.iframes&&this.forEachIframe(e,y=>this.checkIframeFilter(d,u,y,l),y=>{this.createInstanceOnIframe(y).forEachNode(t,b=>c.push(b),n)}),c.push(d);c.forEach(y=>{o(y)}),this.iframes&&this.handleOpenIframes(l,t,o,n),a()}forEachNode(t,e,o,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let c=()=>{this.iterateThroughNodes(t,l,e,o,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,c):c()})}};var mo=class{constructor(t){this.ctx=t,this.ie=!1;let e=window.navigator.userAgent;(e.indexOf("MSIE")>-1||e.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(t){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},t)}get opt(){return this._opt}get iterator(){return new sr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,e="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[e]=="function"&&o[e](`mark.js: ${t}`)}escapeStr(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(t){return this.opt.wildcards!=="disabled"&&(t=this.setupWildcardsRegExp(t)),t=this.escapeStr(t),Object.keys(this.opt.synonyms).length&&(t=this.createSynonymsRegExp(t)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),this.opt.diacritics&&(t=this.createDiacriticsRegExp(t)),t=this.createMergedBlanksRegExp(t),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.createJoinersRegExp(t)),this.opt.wildcards!=="disabled"&&(t=this.createWildcardsRegExp(t)),t=this.createAccuracyRegExp(t),t}createSynonymsRegExp(t){let e=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in e)if(e.hasOwnProperty(a)){let s=e[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),c=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&c!==""&&(t=t.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(c)})`,`gm${o}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(c)})`+n))}return t}processSynomyms(t){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),t}setupWildcardsRegExp(t){return t=t.replace(/(?:\\)*\?/g,e=>e.charAt(0)==="\\"?"?":""),t.replace(/(?:\\)*\*/g,e=>e.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(t){let e=this.opt.wildcards==="withSpaces";return t.replace(/\u0001/g,e?"[\\S\\s]?":"\\S?").replace(/\u0002/g,e?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(t){return t.replace(/[^(|)\\]/g,(e,o,n)=>{let a=n.charAt(o+1);return/[(|)\\]/.test(a)||a===""?e:e+"\0"})}createJoinersRegExp(t){let e=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&e.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&e.push("\\u00ad\\u200b\\u200c\\u200d"),e.length?t.split(/\u0000+/).join(`[${e.join("")}]*`):t}createDiacriticsRegExp(t){let e=this.opt.caseSensitive?"":"i",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"],n=[];return t.split("").forEach(a=>{o.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;t=t.replace(new RegExp(`[${s}]`,`gm${e}`),`[${s}]`),n.push(s)}return!0})}),t}createMergedBlanksRegExp(t){return t.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(t){let e="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",o=this.opt.accuracy,n=typeof o=="string"?o:o.value,a=typeof o=="string"?[]:o.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${t})`;case"complementary":return s="\\s"+(s||this.escapeStr(e)),`()([^${s}]*${t}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${t})(?=$|\\s${s})`}}getSeparatedKeywords(t){let e=[];return t.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(n=>{n.trim()&&e.indexOf(n)===-1&&e.push(n)}):o.trim()&&e.indexOf(o)===-1&&e.push(o)}),{keywords:e.sort((o,n)=>n.length-o.length),length:e.length}}isNumeric(t){return Number(parseFloat(t))==t}checkRanges(t){if(!Array.isArray(t)||Object.prototype.toString.call(t[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(t),[];let e=[],o=0;return t.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,o);l&&(n.start=a,n.length=s-a,e.push(n),o=s)}),e}callNoMatchOnInvalidRanges(t,e){let o,n,a=!1;return t&&typeof t.start<"u"?(o=parseInt(t.start,10),n=o+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&n-e>0&&n-o>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(t)}`),this.opt.noMatch(t))):(this.log(`Ignoring invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)),{start:o,end:n,valid:a}}checkWhitespaceRanges(t,e,o){let n,a=!0,s=o.length,l=e-s,c=parseInt(t.start,10)-l;return c=c>s?s:c,n=c+parseInt(t.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),c<0||n-c<0||c>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)):o.substring(c,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:c,end:n,valid:a}}getTextNodes(t){let e="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{o.push({start:e.length,end:(e+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{t({value:e,nodes:o})})}matchesExclude(t){return sr.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,e,o){let n=this.opt.element?this.opt.element:"mark",a=t.splitText(e),s=a.splitText(o-e),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(t,e,o,n,a){t.nodes.every((s,l)=>{let c=t.nodes[l+1];if(typeof c>"u"||c.start>e){if(!n(s.node))return!1;let d=e-s.start,u=(o>s.end?s.end:o)-s.start,h=t.value.substr(0,s.start),y=t.value.substr(u+s.start);if(s.node=this.wrapRangeInTextNode(s.node,d,u),t.value=h+y,t.nodes.forEach((b,v)=>{v>=l&&(t.nodes[v].start>0&&v!==l&&(t.nodes[v].start-=u),t.nodes[v].end-=u)}),o-=u,a(s.node.previousSibling,s.start),o>s.end)e=s.end;else return!1}return!0})}wrapMatches(t,e,o,n,a){let s=e===0?0:e+1;this.getTextNodes(l=>{l.nodes.forEach(c=>{c=c.node;let d;for(;(d=t.exec(c.textContent))!==null&&d[s]!=="";){if(!o(d[s],c))continue;let u=d.index;if(s!==0)for(let h=1;h<s;h++)u+=d[h].length;c=this.wrapRangeInTextNode(c,u,u+d[s].length),n(c.previousSibling),t.lastIndex=0}}),a()})}wrapMatchesAcrossElements(t,e,o,n,a){let s=e===0?0:e+1;this.getTextNodes(l=>{let c;for(;(c=t.exec(l.value))!==null&&c[s]!=="";){let d=c.index;if(s!==0)for(let h=1;h<s;h++)d+=c[h].length;let u=d+c[s].length;this.wrapRangeInMappedTextNode(l,d,u,h=>o(c[s],h),(h,y)=>{t.lastIndex=y,n(h)})}a()})}wrapRangeFromIndex(t,e,o,n){this.getTextNodes(a=>{let s=a.value.length;t.forEach((l,c)=>{let{start:d,end:u,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,d,u,y=>e(y,l,a.value.substring(d,u),c),y=>{o(y,l)})}),n()})}unwrapMatches(t){let e=t.parentNode,o=document.createDocumentFragment();for(;t.firstChild;)o.appendChild(t.removeChild(t.firstChild));e.replaceChild(o,t),this.ie?this.normalizeTextNode(e):e.normalize()}normalizeTextNode(t){if(t){if(t.nodeType===3)for(;t.nextSibling&&t.nextSibling.nodeType===3;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else this.normalizeTextNode(t.firstChild);this.normalizeTextNode(t.nextSibling)}}markRegExp(t,e){this.opt=e,this.log(`Searching with expression "${t}"`);let o=0,n="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](t,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,o),a,()=>{o===0&&this.opt.noMatch(t),this.opt.done(o)})}mark(t,e){this.opt=e;let o=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof t=="string"?[t]:t),l=this.opt.caseSensitive?"":"i",c=d=>{let u=new RegExp(this.createRegExp(d),`gm${l}`),h=0;this.log(`Searching with expression "${u}"`),this[n](u,1,(y,b)=>this.opt.filter(b,d,o,h),y=>{h++,o++,this.opt.each(y)},()=>{h===0&&this.opt.noMatch(d),a[s-1]===d?this.opt.done(o):c(a[a.indexOf(d)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(o):c(a[0])}markRanges(t,e){this.opt=e;let o=0,n=this.checkRanges(t);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,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(t){this.opt=t;let e=this.opt.element?this.opt.element:"*";e+="[data-markjs]",this.opt.className&&(e+=`.${this.opt.className}`),this.log(`Removal selector "${e}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let n=sr.matches(o,e),a=this.matchesExclude(o);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function pa(r){let t=new mo(r);return this.mark=(e,o)=>(t.mark(e,o),this),this.markRegExp=(e,o)=>(t.markRegExp(e,o),this),this.markRanges=(e,o)=>(t.markRanges(e,o),this),this.unmark=e=>(t.unmark(e),this),this}var lu=pa,Il=i.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),cu=P`
|
|
5
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Bs=/'/g,Fs=/"/g,Vs=/^(?:script|style|textarea|title)$/i,js=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),$=js(1),Jd=js(2),_e=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),zs=new WeakMap,tr=er.createTreeWalker(er,129);function Ks(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ms!==void 0?Ms.createHTML(t):t}var Gs=(r,t)=>{let e=r.length-1,o=[],n,a=t===2?"<svg>":"",s=Qr;for(let l=0;l<e;l++){let c=r[l],d,u,h=-1,y=0;for(;y<c.length&&(s.lastIndex=y,u=s.exec(c),u!==null);)y=s.lastIndex,s===Qr?u[1]==="!--"?s=Ds:u[1]!==void 0?s=Us:u[2]!==void 0?(Vs.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=Qe):u[3]!==void 0&&(s=Qe):s===Qe?u[0]===">"?(s=n??Qr,h=-1):u[1]===void 0?h=-2:(h=s.lastIndex-u[2].length,d=u[1],s=u[3]===void 0?Qe:u[3]==='"'?Fs:Bs):s===Fs||s===Bs?s=Qe:s===Ds||s===Us?s=Qr:(s=Qe,n=void 0);let b=s===Qe&&r[l+1].startsWith("/>")?" ":"";a+=s===Qr?c+Xd:h>=0?(o.push(d),c.slice(0,h)+en+c.slice(h)+me+b):c+me+(h===-2?l:b)}return[Ks(r,a+(r[e]||"<?>")+(t===2?"</svg>":"")),o]},ro=class r{constructor({strings:t,_$litType$:e},o){let n;this.parts=[];let a=0,s=0,l=t.length-1,c=this.parts,[d,u]=Gs(t,e);if(this.el=r.createElement(d,o),tr.currentNode=this.el.content,e===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=tr.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(en)){let y=u[s++],b=n.getAttribute(h).split(me),v=/([.?@])?(.*)/.exec(y);c.push({type:1,index:a,name:v[2],strings:b,ctor:v[1]==="."?Zo:v[1]==="?"?qo:v[1]==="@"?Yo:or}),n.removeAttribute(h)}else h.startsWith(me)&&(c.push({type:6,index:a}),n.removeAttribute(h));if(Vs.test(n.tagName)){let h=n.textContent.split(me),y=h.length-1;if(y>0){n.textContent=Ko?Ko.emptyScript:"";for(let b=0;b<y;b++)n.append(h[b],to()),tr.nextNode(),c.push({type:2,index:++a});n.append(h[y],to())}}}else if(n.nodeType===8)if(n.data===rn)c.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(me,h+1))!==-1;)c.push({type:7,index:a}),h+=me.length-1}a++}}static createElement(t,e){let o=er.createElement("template");return o.innerHTML=t,o}};function rr(r,t,e=r,o){if(t===_e)return t;let n=o!==void 0?e._$Co?.[o]:e._$Cl,a=eo(t)?void 0:t._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,e,o)),o!==void 0?(e._$Co??=[])[o]=n:e._$Cl=n),n!==void 0&&(t=rr(r,n._$AS(r,t.values),n,o)),t}var Go=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:o}=this._$AD,n=(t?.creationScope??er).importNode(e,!0);tr.currentNode=n;let a=tr.nextNode(),s=0,l=0,c=o[0];for(;c!==void 0;){if(s===c.index){let d;c.type===2?d=new Sr(a,a.nextSibling,this,t):c.type===1?d=new c.ctor(a,c.name,c.strings,this,t):c.type===6&&(d=new Xo(a,this,t)),this._$AV.push(d),c=o[++l]}s!==c?.index&&(a=tr.nextNode(),s++)}return tr.currentNode=er,n}p(t){let e=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},Sr=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,n){this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=rr(this,t,e),eo(t)?t===B||t==null||t===""?(this._$AH!==B&&this._$AR(),this._$AH=B):t!==this._$AH&&t!==_e&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Hs(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==B&&eo(this._$AH)?this._$AA.nextSibling.data=t:this.$(er.createTextNode(t)),this._$AH=t}g(t){let{values:e,_$litType$:o}=t,n=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=ro.createElement(Ks(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(e);else{let a=new Go(n,this),s=a.u(this.options);a.p(e),this.$(s),this._$AH=a}}_$AC(t){let e=zs.get(t.strings);return e===void 0&&zs.set(t.strings,e=new ro(t)),e}T(t){Ws(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,n=0;for(let a of t)n===e.length?e.push(o=new r(this.k(to()),this.k(to()),this,this.options)):o=e[n],o._$AI(a),n++;n<e.length&&(this._$AR(o&&o._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){let o=t.nextSibling;t.remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},or=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,n,a){this.type=1,this._$AH=B,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,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(t,e=this,o,n){let a=this.strings,s=!1;if(a===void 0)t=rr(this,t,e,0),s=!eo(t)||t!==this._$AH&&t!==_e,s&&(this._$AH=t);else{let l=t,c,d;for(t=a[0],c=0;c<a.length-1;c++)d=rr(this,l[o+c],e,c),d===_e&&(d=this._$AH[c]),s||=!eo(d)||d!==this._$AH[c],d===B?t=B:t!==B&&(t+=(d??"")+a[c+1]),this._$AH[c]=d}s&&!n&&this.O(t)}O(t){t===B?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Zo=class extends or{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===B?void 0:t}},qo=class extends or{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==B)}},Yo=class extends or{constructor(t,e,o,n,a){super(t,e,o,n,a),this.type=5}_$AI(t,e=this){if((t=rr(this,t,e,0)??B)===_e)return;let o=this._$AH,n=t===B&&o!==B||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,a=t!==B&&(o===B||n);n&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Xo=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){rr(this,t)}},Qd={j:en,P:me,A:rn,C:1,M:Gs,L:Go,R:Hs,V:rr,D:Sr,I:or,H:qo,N:Yo,U:Zo,B:Xo},tp=tn.litHtmlPolyfillSupport;tp?.(ro,Sr),(tn.litHtmlVersions??=[]).push("3.1.0");var on=(r,t,e)=>{let o=e?.renderBefore??t,n=o._$litPart$;if(n===void 0){let a=e?.renderBefore??null;o._$litPart$=n=new Sr(t.insertBefore(to(),a),a,void 0,e??{})}return n._$AI(r),n};var ge=class extends re{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=on(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return _e}};ge._$litElement$=!0,ge.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ge});var ep=globalThis.litElementPolyfillSupport;ep?.({LitElement:ge});var rp={_$AK:(r,t,e)=>{r._$AK(t,e)},_$AL:r=>r._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var If=!1;var sn={};ot(sn,{customElement:()=>op,eventOptions:()=>ye,property:()=>g,query:()=>G,queryAll:()=>ap,queryAssignedElements:()=>an,queryAssignedNodes:()=>oo,queryAsync:()=>sp,standardProperty:()=>Zs,state:()=>H});var op=r=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(r,t)}):customElements.define(r,t)};var ip={attribute:!0,type:String,converter:jr,reflect:!1,hasChanged:ko},Zs=(r=ip,t,e)=>{let{kind:o,metadata:n}=e,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),a.set(e.name,r),o==="accessor"){let{name:s}=e;return{set(l){let c=t.get.call(this);t.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}=e;return function(l){let c=this[s];t.call(this,l),this.requestUpdate(s,c,r)}}throw Error("Unsupported decorator location: "+o)};function g(r){return(t,e)=>typeof e=="object"?Zs(r,t,e):((o,n,a)=>{let s=n.hasOwnProperty(a);return n.constructor.createProperty(a,s?{...o,wrapped:!0}:o),s?Object.getOwnPropertyDescriptor(n,a):void 0})(r,t,e)}function H(r){return g({...r,state:!0,attribute:!1})}function ye(r){return(t,e)=>{let o=typeof t=="function"?t:t[e];Object.assign(o,r)}}var Yt=(r,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(r,t,e),e);function G(r,t){return(e,o,n)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(t){let{get:s,set:l}=typeof o=="object"?e:n??(()=>{let c=Symbol();return{get(){return this[c]},set(d){this[c]=d}}})();return Yt(e,o,{get(){let c=s.call(this);return c===void 0&&(c=a(this),(c!==null||this.hasUpdated)&&l.call(this,c)),c}})}return Yt(e,o,{get(){return a(this)}})}}var np;function ap(r){return(t,e)=>Yt(t,e,{get(){return(this.renderRoot??(np??=document.createDocumentFragment())).querySelectorAll(r)}})}function sp(r){return(t,e)=>Yt(t,e,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function an(r){return(t,e)=>{let{slot:o,selector:n}=r??{},a="slot"+(o?`[name=${o}]`:":not([name])");return Yt(t,e,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return n===void 0?l:l.filter(c=>c.matches(n))}})}}function oo(r){return(t,e)=>{let{slot:o}=r??{},n="slot"+(o?`[name=${o}]`:":not([name])");return Yt(t,e,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var cn={};ot(cn,{repeat:()=>ln});var Ne={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Te=r=>(...t)=>({_$litDirective$:r,values:t}),oe=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var{D:lp}=Ps;var qs=()=>document.createComment(""),Or=(r,t,e)=>{let o=r._$AA.parentNode,n=t===void 0?r._$AB:t._$AA;if(e===void 0){let a=o.insertBefore(qs(),n),s=o.insertBefore(qs(),n);e=new lp(a,s,r,r.options)}else{let a=e._$AB.nextSibling,s=e._$AM,l=s!==r;if(l){let c;e._$AQ?.(r),e._$AM=r,e._$AP!==void 0&&(c=r._$AU)!==s._$AU&&e._$AP(c)}if(a!==n||l){let c=e._$AA;for(;c!==a;){let d=c.nextSibling;o.insertBefore(c,n),c=d}}}return e},Ie=(r,t,e=r)=>(r._$AI(t,e),r),cp={},Ys=(r,t=cp)=>r._$AH=t,Xs=r=>r._$AH,Jo=r=>{r._$AP?.(!1,!0);let t=r._$AA,e=r._$AB.nextSibling;for(;t!==e;){let o=t.nextSibling;t.remove(),t=o}};var Js=(r,t,e)=>{let o=new Map;for(let n=t;n<=e;n++)o.set(r[n],n);return o},ln=Te(class extends oe{constructor(r){if(super(r),r.type!==Ne.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,t,e){let o;e===void 0?e=t:t!==void 0&&(o=t);let n=[],a=[],s=0;for(let l of r)n[s]=o?o(l,s):s,a[s]=e(l,s),s++;return{values:a,keys:n}}render(r,t,e){return this.ht(r,t,e).values}update(r,[t,e,o]){let n=Xs(r),{values:a,keys:s}=this.ht(t,e,o);if(!Array.isArray(n))return this.dt=s,a;let l=this.dt??=[],c=[],d,u,h=0,y=n.length-1,b=0,v=a.length-1;for(;h<=y&&b<=v;)if(n[h]===null)h++;else if(n[y]===null)y--;else if(l[h]===s[b])c[b]=Ie(n[h],a[b]),h++,b++;else if(l[y]===s[v])c[v]=Ie(n[y],a[v]),y--,v--;else if(l[h]===s[v])c[v]=Ie(n[h],a[v]),Or(r,c[v+1],n[h]),h++,v--;else if(l[y]===s[b])c[b]=Ie(n[y],a[b]),Or(r,n[h],n[y]),y--,b++;else if(d===void 0&&(d=Js(s,b,v),u=Js(l,h,y)),d.has(l[h]))if(d.has(l[y])){let w=u.get(s[b]),N=w!==void 0?n[w]:null;if(N===null){let T=Or(r,n[h]);Ie(T,a[b]),c[b]=T}else c[b]=Ie(N,a[b]),Or(r,n[h],N),n[w]=null;b++}else Jo(n[y]),y--;else Jo(n[h]),h++;for(;b<=v;){let w=Or(r,c[v+1]);Ie(w,a[b]),c[b++]=w}for(;h<=y;){let w=n[h++];w!==null&&Jo(w)}return this.dt=s,Ys(r,c),Bt}});var dn={};ot(dn,{classMap:()=>Nt});var Nt=Te(class extends oe{constructor(r){if(super(r),r.type!==Ne.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(t=>r[t]).join(" ")+" "}update(r,[t]){if(this.it===void 0){this.it=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in t)t[o]&&!this.st?.has(o)&&this.it.add(o);return this.render(t)}let e=r.element.classList;for(let o of this.it)o in t||(e.remove(o),this.it.delete(o));for(let o in t){let n=!!t[o];n===this.it.has(o)||this.st?.has(o)||(n?(e.add(o),this.it.add(o)):(e.remove(o),this.it.delete(o)))}return Bt}});var pn={};ot(pn,{styleMap:()=>pp});var Qs="important",dp=" !"+Qs,pp=Te(class extends oe{constructor(r){if(super(r),r.type!==Ne.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((t,e)=>{let o=r[e];return o==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(r,[t]){let{style:e}=r.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(t)),this.render(t);for(let o of this.ut)t[o]==null&&(this.ut.delete(o),o.includes("-")?e.removeProperty(o):e[o]=null);for(let o in t){let n=t[o];if(n!=null){this.ut.add(o);let a=typeof n=="string"&&n.endsWith(dp);o.includes("-")||a?e.setProperty(o,a?n.slice(0,-11):n,a?Qs:""):e[o]=n}}return Bt}});var fn={};ot(fn,{UnsafeHTMLDirective:()=>wr,unsafeHTML:()=>un});var wr=class extends oe{constructor(t){if(super(t),this.et=lt,t.type!==Ne.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===lt||t==null)return this.vt=void 0,this.et=t;if(t===Bt)return t;if(typeof t!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.vt;this.et=t;let e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}};wr.directiveName="unsafeHTML",wr.resultType=1;var un=Te(wr);var gn={};ot(gn,{CacheRegistry:()=>ie});var mn={};ot(mn,{CancelablePromise:()=>Er,CanceledPromiseError:()=>ir,cancelable:()=>hn});var ir=class extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}},Er=class extends Promise{constructor(t){super((e,o)=>t(n=>{this.isCanceled?o(new ir("Promise has been canceled",n)):e(n)},n=>{this.isCanceled?o(new ir("Promise has been canceled",void 0,n)):o(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},hn=r=>new Er((t,e)=>r.then(t).catch(e));var ie=class{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(t,e){this.loaders[t]=e,this.finalContent.delete(t)}registerFinal(t,e){this.loaders[t]=e,this.finalContent.add(t)}clearAll(){for(let t in this.content)this.clear(t)}clear(t){this.finalContent.has(t)||this.forceClear(t)}forceClear(t){this.clearClearTimeout(t),this.content[t]instanceof Er&&this.content[t].cancel(),delete this.content[t]}clearClearTimeout(t){this.clearTimeouts[t]!=null&&(window.clearTimeout(this.clearTimeouts[t]),delete this.clearTimeouts[t])}set(t,e){this.forceClear(t),this.register(t,async()=>e),this.content[t]=e}setFinal(t,e){this.forceClear(t),this.registerFinal(t,async()=>e),this.content[t]=e}async get(t,e,o){if(this.content[t]===void 0){if(e=e??this.loaders[t],e==null)throw new Error("Unknown cache key "+t);let n=hn(e());return this.content[t]=n,n.then(a=>(this.content[t]=a,o!=null&&(this.clearClearTimeout(t),this.clearTimeouts[t]=window.setTimeout(()=>this.clear(t),o)),a))}if(this.content[t]instanceof Error)throw this.content[t];return this.content[t]}isResolvedValue(t){return t!=null&&!(t instanceof Promise)&&!(t instanceof Error)}getNow(t){if(this.isResolvedValue(this.content[t]))return this.content[t]}has(t){return this.content[t]!=null}resolvedKeys(){return Object.keys(this.content).filter(t=>this.isResolvedValue(this.content[t]))}resolvedValues(){return Object.values(this.content).filter(t=>this.isResolvedValue(t))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}};var yn={};ot(yn,{ClusteringHelper:()=>io});var io=class r{constructor(t,e,o,n){this.allResults=t,this.selectedResult=e,this.clusteringMetadata=o,this.metadataDescriptors=n}static extractResultMetadata(t,e){var o,n;let a=((n=(o=t?.map)!==null&&o!==void 0?o:t?.document)!==null&&n!==void 0?n:t?.topic).metadata;return e==null?r.flattenMetadata(a):r.flattenMetadata(a.find(s=>s.key===e))}static flattenMetadata(t){if(Array.isArray(t))return t.map(o=>r.flattenMetadata(o)).filter(o=>o!=null);let e=t?.hierarchicalValues!=null&&t.hierarchicalValues.length>0;if(!(t==null||t.values.length==0&&!e))if(e){let o=[],n=[];return t.hierarchicalValues.forEach(a=>{o.push(a.join(" > ")),a.length>2?n.push(`... > ${a[a.length-1]}`):n.push(a.join(" > "))}),{key:t.key,label:t.label,value:o.join(", "),displayValue:n.join(", ")}}else{let o=t.values.join(", ");return{key:t.key,label:t.label,value:o,displayValue:o}}}computeClustersItemsForMetadata(t,e,o="No value"){var n,a;let s=r.extractResultMetadata(this.selectedResult,t),l=(n=s?.label)!==null&&n!==void 0?n:(a=this.getMetadataDescriptor(t))===null||a===void 0?void 0:a.label;return this.allResults.map(d=>r.extractResultMetadata(d,t)).map(d=>d??{key:t,label:l,value:void 0,displayValue:o}).filter(d=>d.value!=s?.value).filter((d,u,h)=>h.findIndex(y=>y.value===d.value)===u).map(d=>({result:this.findBestResultForMetadataValue(t,d.value),metadata:d})).sort((d,u)=>this.compareMetadata(d.metadata.value,u.metadata.value,t,e))}compareMetadata(t,e,o,n){if(t==null)return-1;if(e==null)return 1;let a=this.getMetadataDescriptor(o),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let c=t.localeCompare(e,n,{numeric:!0});return l?c*-1:c}return 0}getMetadataDescriptor(t){return this.metadataDescriptors.find(e=>t==e.key)}findBestResultForMetadataValue(t,e){let o=this.allResults.filter(c=>{var d;return((d=r.extractResultMetadata(c,t))===null||d===void 0?void 0:d.value)==e}),a=[...r.extractResultMetadata(this.selectedResult).filter(c=>this.clusteringMetadata.has(c.key)).filter(c=>c.key!==t)],s,l=-1;for(let c of o){let d=this.countMatchingMetadata(c,a);if(d>l&&(l=d,s=c,d===a.length))break}return s}countMatchingMetadata(t,e){return r.extractResultMetadata(t).filter(o=>e.some(n=>n.key===o.key&&n.value===o.value)).length}};var bn={};ot(bn,{Debouncer:()=>et});var et=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((e,o)=>{this.resolvePromise=e,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,e;let o=[...this.callbacks];this.callbacks=[];let n=(t=this.rejectPromise)!==null&&t!==void 0?t:()=>null,a=(e=this.resolvePromise)!==null&&e!==void 0?e:()=>null;this.clearPromise();for(let s of o)try{await s()}catch(l){n(l);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var xn={};ot(xn,{customElement:()=>V,isNumber:()=>el,jsonProperty:()=>ne,optionalNumberProperty:()=>bp});var vn={};ot(vn,{dateReviver:()=>fp,deepEqual:()=>jt,delay:()=>Qo,eventPathContainsMatchingElement:()=>mp,flatDeep:()=>tl,last:()=>yp,minmax:()=>gp,parseDate:()=>ti,waitFor:()=>no,waitUntil:()=>up});var Qo=r=>new Promise(t=>setTimeout(t,r));async function up(r,t=10,e=2e4){await no(async()=>await r()||void 0,t,e)}async function no(r,t=10,e=2e4){let o=await r(),n,a;for(n=a=performance.now();o==null&&(!e||a-n<e);)await Qo(t),o=await r(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function tl(r,t){return r.flatMap(e=>[e,...tl(t(e),t)])}function fp(...r){return function(t,e){return r.includes(t)?ti(e):e}}function ti(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(t,e,o,n)=>e+o+":"+n),new Date(r)}function hp(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var e,o,n;if(Array.isArray(r)){if(e=r.length,e!=t.length)return!1;for(o=e;o--!==0;)if(!jt(r[o],t[o]))return!1;return!0}if(r instanceof Map&&t instanceof Map){if(r.size!==t.size)return!1;for(o of r.entries())if(!t.has(o[0]))return!1;for(o of r.entries())if(!jt(o[1],t.get(o[0])))return!1;return!0}if(r instanceof Set&&t instanceof Set){if(r.size!==t.size)return!1;for(o of r.entries())if(!t.has(o[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(n=Object.keys(r),e=n.length,e!==Object.keys(t).length)return!1;for(o=e;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(o=e;o--!==0;){var a=n[o];if(!jt(r[a],t[a]))return!1}return!0}return r!==r&&t!==t}function jt(r,t){try{return hp(r,t)}catch{return!1}}function mp(r,t,e=window.document.body){if(t.length>0){let o=r.composedPath();for(let n of o){if(n===e)return!1;if(n.matches&&t.some(a=>n.matches(a)))return!0}}return!1}function gp(r,t,e){return Math.min(Math.max(r,t),e)}function yp(r){return r[r.length-1]}var V=r=>t=>{window.customElements.get(r)||window.customElements.define(r,t)};function ne(r,t){let e=()=>JSON.parse(JSON.stringify(r));return g({type:Object,converter:{fromAttribute:o=>{if(o==null)return e();try{return JSON.parse(o)}catch{return e()}},toAttribute:o=>JSON.stringify(o)},hasChanged:(o,n)=>!jt(o,n),...t??{}})}function bp(r){return g({type:Object,converter:{fromAttribute:t=>{if(t!=null)return el(t)?+t:void 0},toAttribute:t=>t==null?void 0:""+t},...r??{}})}function el(r){return!isNaN(parseFloat(r))}var Gn={};ot(Gn,{designSystemVariables:()=>A});var Kn={};ot(Kn,{FtCssVariableFactory:()=>i,badge:()=>Op,banner:()=>Sp,breadcrumb:()=>wp,button:()=>I,chart:()=>Mp,checkbox:()=>Bp,chip:()=>Dp,collapsible:()=>kp,comboboxMultiSelect:()=>Ip,comboboxSingleSelect:()=>Tp,drawer:()=>Ap,floatingMenu:()=>Np,foundation:()=>p,link:()=>xp,modal:()=>Cp,notice:()=>Up,notification:()=>Wp,pageHeader:()=>Ep,popover:()=>Pp,radio:()=>zp,semantic:()=>f,setVariable:()=>C,switch_:()=>Lp,tabs:()=>$p,textArea:()=>_p,textInput:()=>Rp,toggle:()=>Fp,tooltip:()=>Hp,typographies:()=>ao,typographyBody1Medium:()=>An,typographyBody1Regular:()=>Cn,typographyBody1Semibold:()=>Rn,typographyBody2Medium:()=>Nn,typographyBody2MediumUnderline:()=>rl,typographyBody2Regular:()=>_n,typographyBody2Semibold:()=>Tn,typographyCaption1Bold:()=>Bn,typographyCaption1Medium:()=>Dn,typographyCaption1Semibold:()=>Un,typographyCaption2Bold:()=>Wn,typographyCaption2Medium:()=>Fn,typographyCaption2Semibold:()=>zn,typographyCaption3Bold:()=>jn,typographyCaption3Medium:()=>Hn,typographyCaption3Semibold:()=>Vn,typographyDisplay:()=>Sn,typographyLabel1Bold:()=>$n,typographyLabel1Medium:()=>In,typographyLabel1Semibold:()=>Pn,typographyLabel2Bold:()=>Mn,typographyLabel2Medium:()=>kn,typographyLabel2Semibold:()=>Ln,typographyTitle1:()=>On,typographyTitle2:()=>wn,typographyTitle3:()=>En,typographyVariants:()=>vp});var be=r=>typeof r=="string"?he(r):r,i=class{static create(t,e,o,n){let a=l=>be(l??n),s=P`var(${be(t)}, ${a(n)})`;return s.name=t,s.description=e,s.category=o,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>P`var(${be(t)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(t,e,o,n){let a=l=>o.get(l??n),s=P`var(${be(t)}, ${a(n)})`;return s.name=t,s.description=e,s.category=o.category,s.fallbackVariable=o,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>P`var(${be(t)}, ${a(l)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>n??o.lastResortDefaultValue(),s}static external(t,e){let o=a=>t.fallbackVariable?t.fallbackVariable.get(a??t.defaultValue):be(a??t.lastResortDefaultValue()),n=P`var(${be(t.name)}, ${o(t.defaultValue)})`;return n.name=t.name,n.category=t.category,n.fallbackVariable=t.fallbackVariable,n.defaultValue=t.defaultValue,n.context=e,n.defaultCssValue=o,n.get=a=>P`var(${be(t.name)}, ${o(a)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>t.lastResortDefaultValue(),n}};function C(r,t){return be(`${r.name}: ${t}`)}var p={colorWhite:i.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:i.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:i.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:i.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:i.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:i.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:i.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:i.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:i.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:i.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:i.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:i.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:i.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:i.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:i.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:i.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:i.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:i.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:i.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:i.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:i.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:i.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:i.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:i.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:i.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:i.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:i.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:i.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:i.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:i.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:i.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:i.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:i.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:i.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:i.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:i.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:i.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:i.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:i.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:i.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:i.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:i.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:i.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:i.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:i.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:i.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:i.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:i.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:i.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:i.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:i.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:i.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:i.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:i.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:i.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:i.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:i.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:i.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:i.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:i.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:i.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:i.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:i.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:i.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:i.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:i.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:i.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:i.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:i.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:i.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:i.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:i.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:i.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:i.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:i.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:i.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:i.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:i.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:i.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:i.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:i.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:i.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:i.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:i.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:i.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:i.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:i.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:i.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:i.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:i.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:i.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:i.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:i.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:i.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:i.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:i.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:i.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:i.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:i.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:i.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:i.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:i.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:i.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:i.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:i.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:i.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:i.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:i.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:i.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:i.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:i.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:i.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:i.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:i.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:i.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:i.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:i.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:i.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:i.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:i.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:i.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:i.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:i.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:i.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:i.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:i.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:i.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:i.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:i.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:i.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:i.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:i.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:i.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:i.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:i.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:i.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:i.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:i.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:i.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:i.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:i.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:i.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:i.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:i.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:i.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:i.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:i.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:i.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:i.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:i.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:i.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:i.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:i.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:i.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:i.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:i.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:i.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:i.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:i.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:i.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:i.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:i.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:i.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:i.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:i.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:i.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:i.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:i.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:i.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:i.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:i.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:i.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:i.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:i.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:i.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:i.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:i.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:i.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:i.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:i.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:i.create("--ft-opacity-0","","NUMBER","0"),opacity8:i.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:i.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:i.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:i.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:i.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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)")},Sn={fontFamily:i.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:i.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-display-textCase","","UNKNOWN","none")},On={fontFamily:i.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:i.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},wn={fontFamily:i.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:i.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:i.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},En={fontFamily:i.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:i.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:i.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:i.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Cn={fontFamily:i.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:i.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:i.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},An={fontFamily:i.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:i.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},Rn={fontFamily:i.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:i.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},_n={fontFamily:i.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:i.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},Nn={fontFamily:i.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},rl={fontFamily:i.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:i.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:i.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},Tn={fontFamily:i.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:i.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:i.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:i.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},In={fontFamily:i.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},Pn={fontFamily:i.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},$n={fontFamily:i.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:i.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},kn={fontFamily:i.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},Ln={fontFamily:i.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},Mn={fontFamily:i.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:i.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:i.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:i.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},Dn={fontFamily:i.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},Un={fontFamily:i.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},Bn={fontFamily:i.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:i.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},Fn={fontFamily:i.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:i.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},zn={fontFamily:i.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:i.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},Wn={fontFamily:i.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:i.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},Hn={fontFamily:i.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:i.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:i.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},Vn={fontFamily:i.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:i.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:i.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},jn={fontFamily:i.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:i.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:i.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:i.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:i.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:i.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:i.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:i.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:i.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},ao={display:Sn,"title-1":On,"title-2":wn,"title-3":En,"body-1-regular":Cn,"body-1-medium":An,"body-1-semibold":Rn,"body-2-regular":_n,"body-2-medium":Nn,"body-2-medium-underline":rl,"body-2-semibold":Tn,"label-1-medium":In,"label-1-semibold":Pn,"label-1-bold":$n,"label-2-medium":kn,"label-2-semibold":Ln,"label-2-bold":Mn,"caption-1-medium":Dn,"caption-1-semibold":Un,"caption-1-bold":Bn,"caption-2-medium":Fn,"caption-2-semibold":zn,"caption-2-bold":Wn,"caption-3-medium":Hn,"caption-3-semibold":Vn,"caption-3-bold":jn},vp=["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:i.extend("--ft-background-action-primary","Used as backgorund of primary action components.",p.colorBrand0),backgroundErrorSubtle:i.extend("--ft-background-error-subtle","Used as background of subtle error components.",p.colorRed10),backgroundInfoSubtle:i.extend("--ft-background-info-subtle","Used as background of subtle information components.",p.colorCyan10),backgroundWarningSubtle:i.extend("--ft-background-warning-subtle","Used as background of subtle information components.",p.colorOrange10),backgroundSuccessSubtle:i.extend("--ft-background-success-subtle","Used as background of subtle success components.",p.colorGreen10),backgroundGlobalSurface:i.extend("--ft-background-global-surface","Used as app background.",p.colorWhite),backgroundGlobalOnSurface:i.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",p.colorGray10),backgroundGlobalOnSurfaceDark:i.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",p.colorGray30),contentActionPrimary:i.extend("--ft-content-action-primary","Used on label of primary action on light surface.",p.colorBrand0),contentWarningPrimary:i.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",p.colorOrange200),contentWarningIconOnly:i.extend("--ft-content-warning-icon-only","Used on warning status icons alone",p.colorOrange0),contentErrorPrimary:i.extend("--ft-content-error-primary","Used on label of error messages on light surface.",p.colorRed0),contentErrorIconOnly:i.extend("--ft-content-error-icon-only","Used on error status icons alone",p.colorRed70),contentInfoPrimary:i.extend("--ft-content-info-primary","Used on label of information messages on light surface.",p.colorCyan200),contentInfoIconOnly:i.extend("--ft-content-info-icon-only","Used on info status icons alone",p.colorCyan0),contentSuccessPrimary:i.extend("--ft-content-success-primary","Used on label of success messages on light surface.",p.colorGreen200),contentSuccessIconOnly:i.extend("--ft-content-success-icon-only","Used on success status icons alone",p.colorGreen0),contentGlobalPrimary:i.extend("--ft-content-global-primary","Used for main content on the page.",p.colorGray500),contentGlobalSecondary:i.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
6
|
+
Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",p.colorGray0),contentGlobalOnColor:i.extend("--ft-content-global-on-color","Used for content on a dominant color.",p.colorWhite),borderActionPrimary:i.extend("--ft-border-action-primary","Used as border for primary action components.",p.colorBrand0),borderActionFocusRing:i.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",p.colorCyan0),borderWarningPrimary:i.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",p.colorOrange200),borderWarningSubtle:i.extend("--ft-border-warning-subtle","Used as border for warning components.",p.colorOrange30),borderSuccessPrimary:i.extend("--ft-border-success-primary","Used as border for success buttons.",p.colorGreen200),borderSuccessSubtle:i.extend("--ft-border-success-subtle","Used as border for success components.",p.colorGreen30),borderErrorPrimary:i.extend("--ft-border-error-primary","Used as border for text fields in error states.",p.colorRed0),borderErrorSubtle:i.extend("--ft-border-error-subtle","Used as border for error components.",p.colorRed30),borderInfoPrimary:i.extend("--ft-border-info-primary","Used as border for buttons in info color.",p.colorCyan200),borderInfoSubtle:i.extend("--ft-border-info-subtle","Used as border for information components.",p.colorCyan30),borderGlobalPrimary:i.extend("--ft-border-global-primary","Used as border for element like input.",p.colorGray50),borderGlobalSubtle:i.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",p.colorGray30),borderInputPrimary:i.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",p.colorGray80)};var I={largeHeight:i.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:i.extend("--ft-button-large-horizontal-padding","",p.spacing4),largeGap:i.extend("--ft-button-large-gap","",p.spacing2),largeBorderRadius:i.extend("--ft-button-large-border-radius","",p.borderRadiusS),largeIconSize:i.extend("--ft-button-large-icon-size","",p.iconSize3),largeBorderWidth:i.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:i.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:i.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:i.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:i.extend("--ft-button-small-horizontal-padding","",p.spacing3),smallGap:i.extend("--ft-button-small-gap","",p.spacing2),smallBorderRadius:i.extend("--ft-button-small-border-radius","",p.borderRadiusS),smallIconSize:i.extend("--ft-button-small-icon-size","",p.iconSize2),smallBorderWidth:i.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:i.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:i.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:i.extend("--ft-button-primary-background-color","",f.backgroundActionPrimary),primaryColor:i.extend("--ft-button-primary-color","",f.contentGlobalOnColor),primaryIconColor:i.extend("--ft-button-primary-icon-color","",f.contentGlobalOnColor),primaryStateLayerColor:i.extend("--ft-button-primary-state-layer-color","",f.contentGlobalOnColor),primaryHoverStateLayerOpacity:i.extend("--ft-button-primary-hover-state-layer-opacity","",p.opacity16),primaryFocusStateLayerOpacity:i.extend("--ft-button-primary-focus-state-layer-opacity","",p.opacity16),primaryActiveStateLayerOpacity:i.extend("--ft-button-primary-active-state-layer-opacity","",p.opacity24),primaryDisabledComponentOpacity:i.extend("--ft-button-primary-disabled-component-opacity","",p.opacity40),focusFocusRingColor:i.extend("--ft-button-focus-focus-ring-color","",f.borderActionFocusRing),tertiaryBackgroundColor:i.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:i.extend("--ft-button-tertiary-color","",f.contentActionPrimary),tertiaryIconColor:i.extend("--ft-button-tertiary-icon-color","",f.contentActionPrimary),tertiaryStateLayerColor:i.extend("--ft-button-tertiary-state-layer-color","",f.contentActionPrimary),tertiaryHoverStateLayerOpacity:i.extend("--ft-button-tertiary-hover-state-layer-opacity","",p.opacity8),tertiaryFocusStateLayerOpacity:i.extend("--ft-button-tertiary-focus-state-layer-opacity","",p.opacity8),tertiaryActiveStateLayerOpacity:i.extend("--ft-button-tertiary-active-state-layer-opacity","",p.opacity16),tertiaryDisabledComponentOpacity:i.extend("--ft-button-tertiary-disabled-component-opacity","",p.opacity40),secondaryBackgroundColor:i.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:i.extend("--ft-button-secondary-color","",f.contentActionPrimary),secondaryIconColor:i.extend("--ft-button-secondary-icon-color","",f.contentActionPrimary),secondaryStateLayerColor:i.extend("--ft-button-secondary-state-layer-color","",f.contentActionPrimary),secondaryHoverStateLayerOpacity:i.extend("--ft-button-secondary-hover-state-layer-opacity","",p.opacity8),secondaryFocusStateLayerOpacity:i.extend("--ft-button-secondary-focus-state-layer-opacity","",p.opacity8),secondaryActiveStateLayerOpacity:i.extend("--ft-button-secondary-active-state-layer-opacity","",p.opacity16),secondaryDisabledComponentOpacity:i.extend("--ft-button-secondary-disabled-component-opacity","",p.opacity40),secondaryBorderColor:i.extend("--ft-button-secondary-border-color","",f.borderActionPrimary),neutralBackgroundColor:i.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:i.extend("--ft-button-neutral-icon-color","",f.contentGlobalSecondary),neutralColor:i.extend("--ft-button-neutral-color","",f.contentGlobalSecondary),neutralStateLayerColor:i.extend("--ft-button-neutral-state-layer-color","",f.contentGlobalSecondary),neutralHoverStateLayerOpacity:i.extend("--ft-button-neutral-hover-state-layer-opacity","",p.opacity8),neutralFocusStateLayerOpacity:i.extend("--ft-button-neutral-focus-state-layer-opacity","",p.opacity8),neutralActiveStateLayerOpacity:i.extend("--ft-button-neutral-active-state-layer-opacity","",p.opacity16),neutralDisabledComponentOpacity:i.extend("--ft-button-neutral-disabled-component-opacity","",p.opacity40)};var xp={focusOpacity:i.extend("--ft-link-focus-opacity","",p.opacity80),focusFocusRingColor:i.extend("--ft-link-focus-focus-ring-color","",f.borderActionFocusRing),brandColor:i.extend("--ft-link-brand-color","",f.contentActionPrimary),infoColor:i.extend("--ft-link-info-color","",f.contentInfoPrimary)};var Sp={iconSize:i.extend("--ft-banner-icon-size","",p.iconSize5),borderWidth:i.create("--ft-banner-border-width","","SIZE","1px"),horizontalPadding:i.extend("--ft-banner-horizontal-padding","",p.spacing6),verticalPadding:i.extend("--ft-banner-vertical-padding","",p.spacing6),horizontalSideGap:i.extend("--ft-banner-horizontal-side-gap","",p.spacing6),horizontalMobileGap:i.extend("--ft-banner-horizontal-mobile-gap","",p.spacing4),verticalMobileGap:i.extend("--ft-banner-vertical-mobile-gap","",p.spacing6),horizontalMiddleGap:i.extend("--ft-banner-horizontal-middle-gap","",p.spacing20),infoBackgroundColor:i.extend("--ft-banner-info-background-color","",f.backgroundInfoSubtle),infoColor:i.extend("--ft-banner-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-banner-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:i.extend("--ft-banner-info-border-color","",f.borderInfoSubtle)};var Op={horizontalPadding:i.extend("--ft-badge-horizontal-padding","",p.spacing1),verticalPadding:i.extend("--ft-badge-vertical-padding","",p.spacing1),borderRadius:i.extend("--ft-badge-border-radius","",p.borderRadiusPill),color:i.extend("--ft-badge-color","",f.contentGlobalOnColor),backgroundColor:i.extend("--ft-badge-background-color","",f.contentActionPrimary)};var wp={horizontalGap:i.extend("--ft-breadcrumb-horizontal-gap","",p.spacing1),verticalGap:i.extend("--ft-breadcrumb-vertical-gap","",p.spacing2),currentColor:i.extend("--ft-breadcrumb-current-color","",f.contentGlobalPrimary),previousNonClickableColor:i.extend("--ft-breadcrumb-previous-non-clickable-color","",f.contentGlobalSecondary),iconColor:i.extend("--ft-breadcrumb-icon-color","",f.contentGlobalSubtle)};var Ep={horizontalPadding:i.extend("--ft-page-header-horizontal-padding","",p.spacing12),horizontalGap:i.extend("--ft-page-header-horizontal-gap","",p.spacing4),verticalGap:i.extend("--ft-page-header-vertical-gap","",p.spacing2),classicVerticalPadding:i.extend("--ft-page-header-classic-vertical-padding","",p.spacing6),multilineVerticalPadding:i.extend("--ft-page-header-multiline-vertical-padding","",p.spacing4),inlineVerticalPadding:i.extend("--ft-page-header-inline-vertical-padding","",p.spacing2),backgroundColor:i.extend("--ft-page-header-background-color","",p.colorWhite),bottomBorderColor:i.extend("--ft-page-header-bottom-border-color","",f.borderGlobalSubtle),titleColor:i.extend("--ft-page-header-title-color","",f.contentGlobalPrimary),subtitleColor:i.extend("--ft-page-header-subtitle-color","",f.contentGlobalSecondary)};var Cp={smallContainerWidth:i.create("--ft-modal-small-container-width","","SIZE","600px"),largeContainerWidth:i.create("--ft-modal-large-container-width","","SIZE","900px"),overlayBackgroundColor:i.extend("--ft-modal-overlay-background-color","",p.colorGray700),overlayOpacity:i.extend("--ft-modal-overlay-opacity","",p.opacity40),shadow:i.extend("--ft-modal-shadow","",p.shadowElevation03),bodyBackgroundColor:i.extend("--ft-modal-body-background-color","",p.colorWhite),bodyColor:i.extend("--ft-modal-body-color","",f.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ft-modal-body-horizontal-padding","",p.spacing6),bodyVerticalPadding:i.extend("--ft-modal-body-vertical-padding","",p.spacing6),bodyVerticalGap:i.extend("--ft-modal-body-vertical-gap","",p.spacing6),containerMargin:i.extend("--ft-modal-container-margin","",p.spacing3),headerBackgroundColor:i.extend("--ft-modal-header-background-color","",f.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ft-modal-header-border-color","",f.borderGlobalSubtle),headerColor:i.extend("--ft-modal-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ft-modal-header-trailing-icon-color","",f.contentGlobalSecondary),headerVerticalPadding:i.extend("--ft-modal-header-vertical-padding","",p.spacing1),headerRightPadding:i.extend("--ft-modal-header-right-padding","",p.spacing1),headerLeftPadding:i.extend("--ft-modal-header-left-padding","",p.spacing6),headerGap:i.extend("--ft-modal-header-gap","",p.spacing2),headerBorderBottom:i.create("--ft-modal-header-border-bottom","","SIZE","1px"),borderRadius:i.extend("--ft-modal-border-radius","",p.borderRadiusM)};var Ap={overlayOpacity:i.extend("--ft-drawer-overlay-opacity","",p.opacity40),shadow:i.extend("--ft-drawer-shadow","",p.shadowElevation03),bodyColor:i.extend("--ft-drawer-body-color","",f.contentGlobalPrimary),bodyHorizontalPadding:i.extend("--ft-drawer-body-horizontal-padding","",p.spacing6),bodyVerticalPadding:i.extend("--ft-drawer-body-vertical-padding","",p.spacing6),bodyGap:i.extend("--ft-drawer-body-gap","",p.spacing6),bodyBackgroundColor:i.extend("--ft-drawer-body-background-color","",p.colorWhite),headerBackgroundColor:i.extend("--ft-drawer-header-background-color","",f.backgroundGlobalOnSurface),headerBorderColor:i.extend("--ft-drawer-header-border-color","",f.borderGlobalSubtle),headerColor:i.extend("--ft-drawer-header-color","",f.contentGlobalPrimary),headerTrailingIconColor:i.extend("--ft-drawer-header-trailing-icon-color","",f.contentGlobalSecondary),headerHeight:i.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:i.extend("--ft-drawer-header-horizontal-padding","",p.spacing2),headerBorderWidth:i.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:i.extend("--ft-drawer-header-gap","",p.spacing3),buttonsBarBackgroundColor:i.extend("--ft-drawer-buttons-bar-background-color","",f.backgroundGlobalOnSurface),buttonsBarBorderColor:i.extend("--ft-drawer-buttons-bar-border-color","",f.borderGlobalSubtle),buttonsBarColor:i.extend("--ft-drawer-buttons-bar-color","",f.contentGlobalPrimary),buttonsBarHorizontalPadding:i.extend("--ft-drawer-buttons-bar-horizontal-padding","",p.spacing4),buttonsBarVerticalPadding:i.extend("--ft-drawer-buttons-bar-vertical-padding","",p.spacing4),buttonsBarGap:i.extend("--ft-drawer-buttons-bar-gap","",p.spacing3),buttonsBarBorderWidth:i.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:i.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:i.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:i.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:i.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:i.extend("--ft-drawer-overlay-background-color","",p.colorGray700)};var Rp={fieldHorizontalPadding:i.extend("--ft-text-input-field-horizontal-padding","",p.spacing4),fieldHorizontalGap:i.extend("--ft-text-input-field-horizontal-gap","",p.spacing3),fieldVerticalGap:i.extend("--ft-text-input-field-vertical-gap","",p.spacing05),fieldIconSize:i.extend("--ft-text-input-field-icon-size","",p.iconSize3),fieldHeight:i.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:i.extend("--ft-text-input-helper-horizontal-padding","",p.spacing4),helperHorizontalGap:i.extend("--ft-text-input-helper-horizontal-gap","",p.spacing1),helperIconSize:i.extend("--ft-text-input-helper-icon-size","",p.iconSize2),borderRadius:i.extend("--ft-text-input-border-radius","",p.borderRadiusM),backgroundColor:i.extend("--ft-text-input-background-color","",p.colorWhite),contentValueColor:i.extend("--ft-text-input-content-value-color","",f.contentGlobalPrimary),trailingIconColor:i.extend("--ft-text-input-trailing-icon-color","",f.contentGlobalSubtle),labelColor:i.extend("--ft-text-input-label-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-text-input-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-text-input-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ft-text-input-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-text-input-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:i.extend("--ft-text-input-error-helper-icon-color","",f.contentErrorIconOnly),warningBorderWidth:i.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:i.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-text-input-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:i.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-text-input-disabled-component-opacity","",p.opacity40)};var _p={backgroundColor:i.extend("--ft-text-area-background-color","",p.colorWhite),contentValueColor:i.extend("--ft-text-area-content-value-color","",f.contentGlobalPrimary),labelColor:i.extend("--ft-text-area-label-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-text-area-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-text-area-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ft-text-area-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-text-area-error-helper-text-color","",f.contentErrorPrimary),errorHelperIconColor:i.extend("--ft-text-area-error-helper-icon-color","",f.contentErrorIconOnly),focusFocusRingColor:i.extend("--ft-text-area-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:i.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-text-area-disabled-component-opacity","",p.opacity40),fieldHorizontalLeftPadding:i.extend("--ft-text-area-field-horizontal-left-padding","",p.spacing4),fieldHorizontalGap:i.extend("--ft-text-area-field-horizontal-gap","",p.spacing3),fieldVerticalGap:i.extend("--ft-text-area-field-vertical-gap","",p.spacing05),fieldMinHeight:i.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:i.extend("--ft-text-area-helper-horizontal-padding","",p.spacing4),helperHorizontalGap:i.extend("--ft-text-area-helper-horizontal-gap","",p.spacing1),helperIconSize:i.extend("--ft-text-area-helper-icon-size","",p.iconSize2),borderRadius:i.extend("--ft-text-area-border-radius","",p.borderRadiusM)};var Np={height:i.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:i.extend("--ft-floating-menu-horizontal-padding","",p.spacing4),offIconColor:i.extend("--ft-floating-menu-off-icon-color","",f.contentGlobalPrimary),offColor:i.extend("--ft-floating-menu-off-color","",f.contentGlobalPrimary),onColor:i.extend("--ft-floating-menu-on-color","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-floating-menu-on-state-layer-color","",f.contentActionPrimary),gap:i.extend("--ft-floating-menu-gap","",p.spacing3),focusFocusRingColor:i.extend("--ft-floating-menu-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:i.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:i.extend("--ft-floating-menu-focus-state-layer-opacity","",p.opacity8),hoverStateLayerOpacity:i.extend("--ft-floating-menu-hover-state-layer-opacity","",p.opacity8),activeStateLayerOpacity:i.extend("--ft-floating-menu-active-state-layer-opacity","",p.opacity16),disabledComponentOpacity:i.extend("--ft-floating-menu-disabled-component-opacity","",p.opacity40),iconSize:i.extend("--ft-floating-menu-icon-size","",p.iconSize3),backgroundColor:i.extend("--ft-floating-menu-background-color","",f.backgroundGlobalOnSurface)};var Tp={fieldHorizontalPadding:i.extend("--ft-combobox-single-select-field-horizontal-padding","",p.spacing4),fieldHorizontalGap:i.extend("--ft-combobox-single-select-field-horizontal-gap","",p.spacing3),fieldVerticalGap:i.extend("--ft-combobox-single-select-field-vertical-gap","",p.spacing05),fieldIconSize:i.extend("--ft-combobox-single-select-field-icon-size","",p.iconSize3),fieldHeight:i.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:i.extend("--ft-combobox-single-select-helper-horizontal-padding","",p.spacing4),helperHorizontalGap:i.extend("--ft-combobox-single-select-helper-horizontal-gap","",p.spacing1),helperVerticalGap:i.extend("--ft-combobox-single-select-helper-vertical-gap","",p.spacing1),helperIconSize:i.extend("--ft-combobox-single-select-helper-icon-size","",p.iconSize2),menuVerticalGap:i.extend("--ft-combobox-single-select-menu-vertical-gap","",p.spacing2),borderRadius:i.extend("--ft-combobox-single-select-border-radius","",p.borderRadiusM),backgroundColor:i.extend("--ft-combobox-single-select-background-color","",p.colorWhite),labelColor:i.extend("--ft-combobox-single-select-label-color","",f.contentGlobalSubtle),contentValueColor:i.extend("--ft-combobox-single-select-content-value-color","",f.contentGlobalPrimary),trailingIconColor:i.extend("--ft-combobox-single-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-combobox-single-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-combobox-single-select-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:i.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:i.extend("--ft-combobox-single-select-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-combobox-single-select-error-helper-text-color","",f.contentErrorPrimary),warningBorderWidth:i.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:i.extend("--ft-combobox-single-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:i.extend("--ft-combobox-single-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:i.extend("--ft-combobox-single-select-warning-helper-icon-color","",f.contentWarningIconOnly),focusOutlineWidth:i.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-combobox-single-select-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:i.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-combobox-single-select-disabled-component-opacity","",p.opacity40)};var Ip={backgroundColor:i.extend("--ft-combobox-multi-select-background-color","",p.colorWhite),labelColor:i.extend("--ft-combobox-multi-select-label-color","",f.contentGlobalSubtle),trailingIconColor:i.extend("--ft-combobox-multi-select-trailing-icon-color","",f.contentGlobalSubtle),defaultBorderColor:i.extend("--ft-combobox-multi-select-default-border-color","",f.borderInputPrimary),defaultHelperTextColor:i.extend("--ft-combobox-multi-select-default-helper-text-color","",f.contentGlobalSubtle),defaultBorderWidth:i.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:i.extend("--ft-combobox-multi-select-error-border-color","",f.borderErrorPrimary),errorHelperTextColor:i.extend("--ft-combobox-multi-select-error-helper-text-color","",f.contentErrorPrimary),errorHelperIcon:i.extend("--ft-combobox-multi-select-error-helper-icon","",f.contentErrorIconOnly),errorBorderWidth:i.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:i.extend("--ft-combobox-multi-select-warning-border-color","",f.borderWarningPrimary),warningHelperTextColor:i.extend("--ft-combobox-multi-select-warning-helper-text-color","",f.contentWarningPrimary),warningHelperIconColor:i.extend("--ft-combobox-multi-select-warning-helper-icon-color","",f.contentWarningIconOnly),warningBorderWidth:i.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-combobox-multi-select-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineWidth:i.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:i.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:i.extend("--ft-combobox-multi-select-disabled-component-opacity","",p.opacity40),helperHorizontalPadding:i.extend("--ft-combobox-multi-select-helper-horizontal-padding","",p.spacing4),helperHorizontalGap:i.extend("--ft-combobox-multi-select-helper-horizontal-gap","",p.spacing1),helperVerticalGap:i.extend("--ft-combobox-multi-select-helper-vertical-gap","",p.spacing1),helperIconSize:i.extend("--ft-combobox-multi-select-helper-icon-size","",p.iconSize2),fieldHorizontalPadding:i.extend("--ft-combobox-multi-select-field-horizontal-padding","",p.spacing4),fieldHorizontalGap:i.extend("--ft-combobox-multi-select-field-horizontal-gap","",p.spacing3),fieldVerticalGap:i.extend("--ft-combobox-multi-select-field-vertical-gap","",p.spacing05),fieldIconSize:i.extend("--ft-combobox-multi-select-field-icon-size","",p.iconSize3),fieldMaxHeight:i.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:i.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",p.spacing1),contentValuesVerticalGap:i.extend("--ft-combobox-multi-select-content-values-vertical-gap","",p.spacing1),borderRadius:i.extend("--ft-combobox-multi-select-border-radius","",p.borderRadiusM)};var Pp={backgroundColor:i.extend("--ft-popover-background-color","",f.backgroundGlobalOnSurface),horizontalPadding:i.extend("--ft-popover-horizontal-padding","",p.spacing6),verticalPadding:i.extend("--ft-popover-vertical-padding","",p.spacing6),iconColor:i.extend("--ft-popover-icon-color","",f.contentGlobalSecondary),iconSize:i.extend("--ft-popover-icon-size","",p.iconSize2),titleColor:i.extend("--ft-popover-title-color","",f.contentGlobalPrimary),bodyColor:i.extend("--ft-popover-body-color","",f.contentGlobalSecondary),linkColor:i.extend("--ft-popover-link-color","",f.contentActionPrimary),gap:i.extend("--ft-popover-gap","",p.spacing3),borderRadius:i.extend("--ft-popover-border-radius","",p.borderRadiusM),shadow:i.extend("--ft-popover-shadow","",p.shadowElevation02)};var $p={topLeftBorderRadius:i.extend("--ft-tabs-top-left-border-radius","",p.borderRadiusS),topRightBorderRadius:i.extend("--ft-tabs-top-right-border-radius","",p.borderRadiusS),withLabelHorizontalPadding:i.extend("--ft-tabs-with-label-horizontal-padding","",p.spacing4),withLabelVerticalPadding:i.extend("--ft-tabs-with-label-vertical-padding","",p.spacing3),horizontalGap:i.extend("--ft-tabs-horizontal-gap","",p.spacing1),verticalGap:i.extend("--ft-tabs-vertical-gap","",p.spacing1),offHoverStateLayerOpacity:i.extend("--ft-tabs-off-hover-state-layer-opacity","",p.opacity8),offFocusStateLayerOpacity:i.extend("--ft-tabs-off-focus-state-layer-opacity","",p.opacity8),offDisabledComponentOpacity:i.extend("--ft-tabs-off-disabled-component-opacity","",p.opacity40),offColor:i.extend("--ft-tabs-off-color","",f.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-tabs-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ft-tabs-on-hover-state-layer-opacity","",p.opacity8),onFocusStateLayerOpacity:i.extend("--ft-tabs-on-focus-state-layer-opacity","",p.opacity8),onActiveStateLayerOpacity:i.extend("--ft-tabs-on-active-state-layer-opacity","",p.opacity16),onDisabledComponentOpacity:i.extend("--ft-tabs-on-disabled-component-opacity","",p.opacity40),onColor:i.extend("--ft-tabs-on-color","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-tabs-on-state-layer-color","",f.contentActionPrimary),iconOnlyHorizontalPadding:i.extend("--ft-tabs-icon-only-horizontal-padding","",p.spacing4),iconOnlyVerticalPadding:i.extend("--ft-tabs-icon-only-vertical-padding","",p.spacing4),alertTopPadding:i.extend("--ft-tabs-alert-top-padding","",p.spacing1),alertRightPadding:i.extend("--ft-tabs-alert-right-padding","",p.spacing05),focusOutlineWidth:i.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-tabs-focus-focus-ring-color","",f.borderActionFocusRing)};var kp={hoverStateLayerOpacity:i.extend("--ft-collapsible-hover-state-layer-opacity","",p.opacity8),focusStateLayerOpacity:i.extend("--ft-collapsible-focus-state-layer-opacity","",p.opacity8),focusOutlineWidth:i.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:i.extend("--ft-collapsible-focus-focus-ring-color","",f.borderActionFocusRing),activeStateLayerOpacity:i.extend("--ft-collapsible-active-state-layer-opacity","",p.opacity16),disabledComponentOpacity:i.extend("--ft-collapsible-disabled-component-opacity","",p.opacity40),horizontalPadding:i.extend("--ft-collapsible-horizontal-padding","",p.spacing4),verticalPadding:i.extend("--ft-collapsible-vertical-padding","",p.spacing3),color:i.extend("--ft-collapsible-color","",f.contentGlobalPrimary),stateLayerColor:i.extend("--ft-collapsible-state-layer-color","",f.contentGlobalPrimary),backgroundColor:i.extend("--ft-collapsible-background-color","",f.backgroundGlobalOnSurface),borderColor:i.extend("--ft-collapsible-border-color","",f.borderGlobalSubtle),iconSize:i.extend("--ft-collapsible-icon-size","",p.iconSize3)};var Lp={groupHorizontalPadding:i.extend("--ft-switch-group-horizontal-padding","",p.spacing1),groupVerticalPadding:i.extend("--ft-switch-group-vertical-padding","",p.spacing1),groupGap:i.extend("--ft-switch-group-gap","",p.spacing1),groupBackgroundColor:i.extend("--ft-switch-group-background-color","",f.backgroundGlobalSurface),groupBorderColor:i.extend("--ft-switch-group-border-color","",f.borderGlobalSubtle),groupBorderRadius:i.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:i.extend("--ft-switch-label-horizontal-padding","",p.spacing2),labelVerticalPadding:i.extend("--ft-switch-label-vertical-padding","",p.spacing1),offHoverStateLayerOpacity:i.extend("--ft-switch-off-hover-state-layer-opacity","",p.opacity8),offFocusStateLayerOpacity:i.extend("--ft-switch-off-focus-state-layer-opacity","",p.opacity8),offActiveStateLayerOpacity:i.extend("--ft-switch-off-active-state-layer-opacity","",p.opacity16),offDisabledComponentOpacity:i.extend("--ft-switch-off-disabled-component-opacity","",p.opacity40),offColor:i.extend("--ft-switch-off-color","",f.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-switch-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ft-switch-on-hover-state-layer-opacity","",p.opacity8),onFocusStateLayerOpacity:i.extend("--ft-switch-on-focus-state-layer-opacity","",p.opacity8),onActiveStateLayerOpacity:i.extend("--ft-switch-on-active-state-layer-opacity","",p.opacity16),onDisabledComponentOpacity:i.extend("--ft-switch-on-disabled-component-opacity","",p.opacity40),onColor:i.extend("--ft-switch-on-color","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-switch-on-state-layer-color","",f.contentActionPrimary),iconHorizontalPadding:i.extend("--ft-switch-icon-horizontal-padding","",p.spacing1),iconVerticalPadding:i.extend("--ft-switch-icon-vertical-padding","",p.spacing1),focusOutlineWidth:i.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:i.extend("--ft-switch-focus-focus-ring-color","",f.borderActionFocusRing),optionBorderRadius:i.extend("--ft-switch-option-border-radius","",p.borderRadiusS)};var Mp={color1Light:i.extend("--ft-chart-1-light","for area color charts",p.colorBrand40),color1Base:i.extend("--ft-chart-1-base","for line charts",p.colorBrand0),color2Light:i.extend("--ft-chart-2-light","for area color charts",p.colorYellow60),color2Base:i.extend("--ft-chart-2-base","for line charts",p.colorYellow100),color3Light:i.extend("--ft-chart-3-light","",p.colorUltramarine40),color3Base:i.extend("--ft-chart-3-base","",p.colorUltramarine70),color4Light:i.extend("--ft-chart-4-light","",p.colorCyan50),color4Base:i.extend("--ft-chart-4-base","",p.colorCyan100),color5Light:i.extend("--ft-chart-5-light","",p.colorRed40),color5Base:i.extend("--ft-chart-5-base","",p.colorRed60),color6Light:i.extend("--ft-chart-6-light","",p.colorGreen40),color6Base:i.extend("--ft-chart-6-base","",p.colorGreen70),color7Light:i.extend("--ft-chart-7-light","",p.colorOrange70),color7Base:i.extend("--ft-chart-7-base","",p.colorOrange100),color8Light:i.extend("--ft-chart-8-light","",p.colorAvocado70),color8Base:i.extend("--ft-chart-8-base","",p.colorAvocado200),color9Light:i.extend("--ft-chart-9-light","",p.colorBrown50),color9Base:i.extend("--ft-chart-9-base","",p.colorBrown200),color10Light:i.extend("--ft-chart-10-light","",p.colorGray50),color10Base:i.extend("--ft-chart-10-base","",p.colorGray80),monochrome10:i.extend("--ft-chart-monochrome-10","",p.colorBrand10),monochrome20:i.extend("--ft-chart-monochrome-20","",p.colorBrand20),monochrome30:i.extend("--ft-chart-monochrome-30","",p.colorBrand40),monochrome40:i.extend("--ft-chart-monochrome-40","",p.colorBrand60),monochrome50:i.extend("--ft-chart-monochrome-50","",p.colorBrand0),monochrome60:i.extend("--ft-chart-monochrome-60","",p.colorBrand200)};var Dp={largeHorizontalPadding:i.extend("--ft-chip-large-horizontal-padding","",p.spacing4),largeVerticalPadding:i.extend("--ft-chip-large-vertical-padding","",p.spacing2),largeGap:i.extend("--ft-chip-large-gap","",p.spacing1),largeFocusOutlineOffset:i.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:i.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:i.extend("--ft-chip-large-border-radius","",p.borderRadiusPill),largeBorderWidth:i.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ft-chip-large-icon-size","",p.iconSize3),mediumHorizontalPadding:i.extend("--ft-chip-medium-horizontal-padding","",p.spacing3),mediumVerticalPadding:i.extend("--ft-chip-medium-vertical-padding","",p.spacing1),mediumGap:i.extend("--ft-chip-medium-gap","",p.spacing1),mediumFocusOutlineOffset:i.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:i.extend("--ft-chip-medium-border-radius","",p.borderRadiusPill),mediumBorderWidth:i.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ft-chip-medium-icon-size","",p.iconSize2),smallHorizontalPadding:i.extend("--ft-chip-small-horizontal-padding","",p.spacing2),smallVerticalPadding:i.extend("--ft-chip-small-vertical-padding","",p.spacing05),smallGap:i.extend("--ft-chip-small-gap","",p.spacing1),smallFocusOutlineOffset:i.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:i.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:i.extend("--ft-chip-small-border-radius","",p.borderRadiusPill),smallBorderWidth:i.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:i.extend("--ft-chip-small-icon-size","",p.iconSize1),neutralBackgroundColor:i.extend("--ft-chip-neutral-background-color","",f.backgroundGlobalOnSurface),neutralColor:i.extend("--ft-chip-neutral-color","",f.contentGlobalSecondary),neutralIconColor:i.extend("--ft-chip-neutral-icon-color","",f.contentGlobalSecondary),neutralBorderColor:i.extend("--ft-chip-neutral-border-color","",f.borderGlobalSubtle),infoBackgroundColor:i.extend("--ft-chip-info-background-color","",f.backgroundInfoSubtle),infoColor:i.extend("--ft-chip-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-chip-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:i.extend("--ft-chip-info-border-color","",f.borderInfoSubtle),successBackgroundColor:i.extend("--ft-chip-success-background-color","",f.backgroundSuccessSubtle),successColor:i.extend("--ft-chip-success-color","",f.contentSuccessPrimary),successIconColor:i.extend("--ft-chip-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:i.extend("--ft-chip-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:i.extend("--ft-chip-warning-background-color","",f.backgroundWarningSubtle),warningColor:i.extend("--ft-chip-warning-color","",f.contentWarningPrimary),warningIconColor:i.extend("--ft-chip-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:i.extend("--ft-chip-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:i.extend("--ft-chip-error-background-color","",f.backgroundErrorSubtle),errorColor:i.extend("--ft-chip-error-color","",f.contentErrorPrimary),errorIconColor:i.extend("--ft-chip-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:i.extend("--ft-chip-error-border-color","",f.borderErrorSubtle)};var Up={borderWidth:i.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:i.extend("--ft-notice-horizontal-padding","",p.spacing3),verticalPadding:i.extend("--ft-notice-vertical-padding","",p.spacing2),borderRadius:i.extend("--ft-notice-border-radius","",p.borderRadiusS),gap:i.extend("--ft-notice-gap","",p.spacing2),iconSize:i.extend("--ft-notice-icon-size","",p.iconSize3),infoBackgroundColor:i.extend("--ft-notice-info-background-color","",f.backgroundInfoSubtle),infoBorderColor:i.extend("--ft-notice-info-border-color","",f.borderInfoSubtle),infoColor:i.extend("--ft-notice-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-notice-info-icon-color","",f.contentInfoIconOnly),warningBackgroundColor:i.extend("--ft-notice-warning-background-color","",f.backgroundWarningSubtle),warningBorderColor:i.extend("--ft-notice-warning-border-color","",f.borderWarningSubtle),warningColor:i.extend("--ft-notice-warning-color","",f.contentWarningPrimary),warningIconColor:i.extend("--ft-notice-warning-icon-color","",f.contentWarningIconOnly),errorBackgroundColor:i.extend("--ft-notice-error-background-color","",f.backgroundErrorSubtle),errorBorderColor:i.extend("--ft-notice-error-border-color","",f.borderErrorSubtle),errorColor:i.extend("--ft-notice-error-color","",f.contentErrorPrimary),errorIconColor:i.extend("--ft-notice-error-icon-color","",f.contentErrorIconOnly),successBackgroundColor:i.extend("--ft-notice-success-background-color","",f.backgroundSuccessSubtle),successBorderColor:i.extend("--ft-notice-success-border-color","",f.borderSuccessSubtle),successColor:i.extend("--ft-notice-success-color","",f.contentSuccessPrimary),successIconColor:i.extend("--ft-notice-success-icon-color","",f.contentSuccessIconOnly)};var Bp={color:i.extend("--ft-checkbox-color","",f.contentGlobalPrimary),checkedBackgroundColor:i.extend("--ft-checkbox-checked-background-color","",f.contentActionPrimary),checkedStateLayerColor:i.extend("--ft-checkbox-checked-state-layer-color","",f.contentActionPrimary),checkedIconColor:i.extend("--ft-checkbox-checked-icon-color","",f.contentGlobalOnColor),checkedHoverStateLayerOpacity:i.extend("--ft-checkbox-checked-hover-state-layer-opacity","",p.opacity16),checkedFocusStateLayerOpacity:i.extend("--ft-checkbox-checked-focus-state-layer-opacity","",p.opacity16),checkedActiveStateLayerOpacity:i.extend("--ft-checkbox-checked-active-state-layer-opacity","",p.opacity24),checkedDisabledComponentOpacity:i.extend("--ft-checkbox-checked-disabled-component-opacity","",p.opacity40),uncheckedBorderColor:i.extend("--ft-checkbox-unchecked-border-color","",p.colorGray80),uncheckedStateLayerColor:i.extend("--ft-checkbox-unchecked-state-layer-color","",p.colorGray80),uncheckedHoverStateLayerOpacity:i.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",p.opacity16),uncheckedFocusStateLayerOpacity:i.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",p.opacity16),uncheckedActiveStateLayerOpacity:i.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",p.opacity24),uncheckedDisabledComponentOpacity:i.extend("--ft-checkbox-unchecked-disabled-component-opacity","",p.opacity40),focusFocusRingColor:i.extend("--ft-checkbox-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:i.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:i.extend("--ft-checkbox-gap","",p.spacing3)};var Fp={offHoverStateLayerOpacity:i.extend("--ft-toggle-off-hover-state-layer-opacity","",p.opacity16),offFocusStateLayerOpacity:i.extend("--ft-toggle-off-focus-state-layer-opacity","",p.opacity16),offActiveStateLayerOpacity:i.extend("--ft-toggle-off-active-state-layer-opacity","",p.opacity24),offDisabledComponentOpacity:i.extend("--ft-toggle-off-disabled-component-opacity","",p.opacity40),offBackgroundColor:i.extend("--ft-toggle-off-background-color","",f.contentGlobalSubtle),offIconColor:i.extend("--ft-toggle-off-icon-color","",f.contentGlobalSubtle),offStateLayerColor:i.extend("--ft-toggle-off-state-layer-color","",f.contentGlobalSubtle),onHoverStateLayerOpacity:i.extend("--ft-toggle-on-hover-state-layer-opacity","",p.opacity16),onFocusStateLayerOpacity:i.extend("--ft-toggle-on-focus-state-layer-opacity","",p.opacity16),onActiveStateLayerOpacity:i.extend("--ft-toggle-on-active-state-layer-opacity","",p.opacity24),onDisabledComponentOpacity:i.extend("--ft-toggle-on-disabled-component-opacity","",p.opacity40),onBackgroundColor:i.extend("--ft-toggle-on-background-color","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-toggle-on-state-layer-color","",f.contentActionPrimary),onIconColor:i.extend("--ft-toggle-on-icon-color","",f.contentActionPrimary),color:i.extend("--ft-toggle-color","",f.contentGlobalPrimary),focusFocusRingColor:i.extend("--ft-toggle-focus-focus-ring-color","",f.borderActionFocusRing),gap:i.extend("--ft-toggle-gap","",p.spacing3)};var zp={color:i.extend("--ft-radio-color","",f.contentGlobalPrimary),selectedRadioColor:i.extend("--ft-radio-selected-radio-color","",f.contentActionPrimary),selectedStateLayerColor:i.extend("--ft-radio-selected-state-layer-color","",f.contentActionPrimary),selectedHoverStateLayerOpacity:i.extend("--ft-radio-selected-hover-state-layer-opacity","",p.opacity16),selectedFocusStateLayerOpacity:i.extend("--ft-radio-selected-focus-state-layer-opacity","",p.opacity16),selectedActiveStateLayerOpacity:i.extend("--ft-radio-selected-active-state-layer-opacity","",p.opacity24),selectedDisabledComponentOpacity:i.extend("--ft-radio-selected-disabled-component-opacity","",p.opacity40),unselectedStateLayerColor:i.extend("--ft-radio-unselected-state-layer-color","",f.borderInputPrimary),unselectedBorderColor:i.extend("--ft-radio-unselected-border-color","",f.borderInputPrimary),unselectedHoverStateLayerOpacity:i.extend("--ft-radio-unselected-hover-state-layer-opacity","",p.opacity16),unselectedFocusStateLayerOpacity:i.extend("--ft-radio-unselected-focus-state-layer-opacity","",p.opacity16),unselectedActiveStateLayerOpacity:i.extend("--ft-radio-unselected-active-state-layer-opacity","",p.opacity24),unselectedDisabledComponentOpacity:i.extend("--ft-radio-unselected-disabled-component-opacity","",p.opacity40),focusFocusRingColor:i.extend("--ft-radio-focus-focus-ring-color","",f.borderActionFocusRing),focusOutlineOffset:i.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:i.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:i.extend("--ft-radio-gap","",p.spacing3)};var Wp={iconSize:i.extend("--ft-notification-icon-size","",p.iconSize4),horizontalPadding:i.extend("--ft-notification-horizontal-padding","",p.spacing4),verticalPadding:i.extend("--ft-notification-vertical-padding","",p.spacing4),infoBackgroundColor:i.extend("--ft-notification-info-background-color","",f.backgroundInfoSubtle),infoColor:i.extend("--ft-notification-info-color","",f.contentInfoPrimary),infoIconColor:i.extend("--ft-notification-info-icon-color","",f.contentInfoIconOnly),infoBorderColor:i.extend("--ft-notification-info-border-color","",f.borderInfoSubtle),successBackgroundColor:i.extend("--ft-notification-success-background-color","",f.backgroundSuccessSubtle),successColor:i.extend("--ft-notification-success-color","",f.contentSuccessPrimary),successIconColor:i.extend("--ft-notification-success-icon-color","",f.contentSuccessIconOnly),successBorderColor:i.extend("--ft-notification-success-border-color","",f.borderSuccessSubtle),warningBackgroundColor:i.extend("--ft-notification-warning-background-color","",f.backgroundWarningSubtle),warningColor:i.extend("--ft-notification-warning-color","",f.contentWarningPrimary),warningIconColor:i.extend("--ft-notification-warning-icon-color","",f.contentWarningIconOnly),warningBorderColor:i.extend("--ft-notification-warning-border-color","",f.borderWarningSubtle),errorBackgroundColor:i.extend("--ft-notification-error-background-color","",f.backgroundErrorSubtle),errorColor:i.extend("--ft-notification-error-color","",f.contentErrorPrimary),errorIconColor:i.extend("--ft-notification-error-icon-color","",f.contentErrorIconOnly),errorBorderColor:i.extend("--ft-notification-error-border-color","",f.borderErrorSubtle),borderRadius:i.extend("--ft-notification-border-radius","",p.borderRadiusPill),borderWidth:i.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:i.extend("--ft-notification-leading-gap","",p.spacing2),trailingGap:i.extend("--ft-notification-trailing-gap","",p.spacing8)};var Hp={horizontalPadding:i.extend("--ft-tooltip-horizontal-padding","",p.spacing2),verticalPadding:i.extend("--ft-tooltip-vertical-padding","",p.spacing2),borderRadius:i.extend("--ft-tooltip-border-radius","",p.borderRadiusS),color:i.extend("--ft-tooltip-color","",f.contentGlobalOnColor),backgroundColor:i.extend("--ft-tooltip-background-color","",f.contentGlobalPrimary),backgroundOpacity:i.extend("--ft-tooltip-background-opacity","",p.opacity80),shadow:i.extend("--ft-tooltip-shadow","",p.shadowElevation03),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","256px"),gap:i.extend("--ft-tooltip-gap","",p.spacing05)};var A={colorPrimary:i.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:i.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:i.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:i.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:i.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:i.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:i.create("--ft-color-error","","COLOR","#B00020"),colorOutline:i.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:i.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:i.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:i.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:i.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:i.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:i.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:i.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:i.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:i.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:i.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:i.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:i.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:i.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:i.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:i.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:i.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:i.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:i.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:i.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:i.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:i.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:i.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:i.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:i.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:i.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:i.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:i.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:i.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:i.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:i.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:i.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:i.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:i.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:i.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:i.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:i.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.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:i.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:i.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:i.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:i.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:i.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:i.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:i.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:i.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var Yn={};ot(Yn,{FtNotificationEvent:()=>Tt,PostResizeEvent:()=>qn,PreResizeEvent:()=>Zn});var Tt=class extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}},Zn=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},qn=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};var sa={};ot(sa,{computeOffsetPosition:()=>fo});var il=["top","right","bottom","left"],ol=["start","end"],Jn=il.reduce((r,t)=>r.concat(t,t+"-"+ol[0],t+"-"+ol[1]),[]),so=Math.min,Pe=Math.max,lo=Math.round;var ve=r=>({x:r,y:r}),Vp={left:"right",right:"left",bottom:"top",top:"bottom"},jp={start:"end",end:"start"};function Qn(r,t,e){return Pe(r,so(t,e))}function ei(r,t){return typeof r=="function"?r(t):r}function Cr(r){return r.split("-")[0]}function $e(r){return r.split("-")[1]}function ta(r){return r==="x"?"y":"x"}function ea(r){return r==="y"?"height":"width"}function ri(r){return["top","bottom"].includes(Cr(r))?"y":"x"}function ra(r){return ta(ri(r))}function nl(r,t,e){e===void 0&&(e=!1);let o=$e(r),n=ra(r),a=ea(n),s=n==="x"?o===(e?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=Xn(s)),[s,Xn(s)]}function al(r){return r.replace(/start|end/g,t=>jp[t])}function Xn(r){return r.replace(/left|right|bottom|top/g,t=>Vp[t])}function Kp(r){return{top:0,right:0,bottom:0,left:0,...r}}function sl(r){return typeof r!="number"?Kp(r):{top:r,right:r,bottom:r,left:r}}function nr(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function ll(r,t,e){let{reference:o,floating:n}=r,a=ri(t),s=ra(t),l=ea(s),c=Cr(t),d=a==="y",u=o.x+o.width/2-n.width/2,h=o.y+o.height/2-n.height/2,y=o[l]/2-n[l]/2,b;switch(c){case"top":b={x:u,y:o.y-n.height};break;case"bottom":b={x:u,y:o.y+o.height};break;case"right":b={x:o.x+o.width,y:h};break;case"left":b={x:o.x-n.width,y:h};break;default:b={x:o.x,y:o.y}}switch($e(t)){case"start":b[s]-=y*(e&&d?-1:1);break;case"end":b[s]+=y*(e&&d?-1:1);break}return b}var cl=async(r,t,e)=>{let{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:s}=e,l=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(t)),d=await s.getElementRects({reference:r,floating:t,strategy:n}),{x:u,y:h}=ll(d,o,c),y=o,b={},v=0;for(let w=0;w<l.length;w++){let{name:N,fn:T}=l[w],{x:k,y:O,data:S,reset:E}=await T({x:u,y:h,initialPlacement:o,placement:y,strategy:n,middlewareData:b,rects:d,platform:s,elements:{reference:r,floating:t}});if(u=k??u,h=O??h,b={...b,[N]:{...b[N],...S}},E&&v<=50){v++,typeof E=="object"&&(E.placement&&(y=E.placement),E.rects&&(d=E.rects===!0?await s.getElementRects({reference:r,floating:t,strategy:n}):E.rects),{x:u,y:h}=ll(d,y,c)),w=-1;continue}}return{x:u,y:h,placement:y,strategy:n,middlewareData:b}};async function oa(r,t){var e;t===void 0&&(t={});let{x:o,y:n,platform:a,rects:s,elements:l,strategy:c}=r,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:y=!1,padding:b=0}=ei(t,r),v=sl(b),N=l[y?h==="floating"?"reference":"floating":h],T=nr(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(N)))==null||e?N:N.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:d,rootBoundary:u,strategy:c})),k=h==="floating"?{...s.floating,x:o,y:n}:s.reference,O=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),S=await(a.isElement==null?void 0:a.isElement(O))?await(a.getScale==null?void 0:a.getScale(O))||{x:1,y:1}:{x:1,y:1},E=nr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:k,offsetParent:O,strategy:c}):k);return{top:(T.top-E.top+v.top)/S.y,bottom:(E.bottom-T.bottom+v.bottom)/S.y,left:(T.left-E.left+v.left)/S.x,right:(E.right-T.right+v.right)/S.x}}function Gp(r,t,e){return(r?[...e.filter(n=>$e(n)===r),...e.filter(n=>$e(n)!==r)]:e.filter(n=>Cr(n)===n)).filter(n=>r?$e(n)===r||(t?al(n)!==n:!1):!0)}var ia=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(t){var e,o,n;let{rects:a,middlewareData:s,placement:l,platform:c,elements:d}=t,{crossAxis:u=!1,alignment:h,allowedPlacements:y=Jn,autoAlignment:b=!0,...v}=ei(r,t),w=h!==void 0||y===Jn?Gp(h||null,b,y):y,N=await oa(t,v),T=((e=s.autoPlacement)==null?void 0:e.index)||0,k=w[T];if(k==null)return{};let O=nl(k,a,await(c.isRTL==null?void 0:c.isRTL(d.floating)));if(l!==k)return{reset:{placement:w[0]}};let S=[N[Cr(k)],N[O[0]],N[O[1]]],E=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:k,overflows:S}],D=w[T+1];if(D)return{data:{index:T+1,overflows:E},reset:{placement:D}};let z=E.map(m=>{let x=$e(m.placement);return[m.placement,x&&u?m.overflows.slice(0,2).reduce((_,K)=>_+K,0):m.overflows[0],m.overflows]}).sort((m,x)=>m[1]-x[1]),Y=((n=z.filter(m=>m[2].slice(0,$e(m[0])?2:3).every(x=>x<=0))[0])==null?void 0:n[0])||z[0][0];return Y!==l?{data:{index:T+1,overflows:E},reset:{placement:Y}}:{}}}};var na=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(t){let{x:e,y:o,placement:n}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:N=>{let{x:T,y:k}=N;return{x:T,y:k}}},...c}=ei(r,t),d={x:e,y:o},u=await oa(t,c),h=ri(Cr(n)),y=ta(h),b=d[y],v=d[h];if(a){let N=y==="y"?"top":"left",T=y==="y"?"bottom":"right",k=b+u[N],O=b-u[T];b=Qn(k,b,O)}if(s){let N=h==="y"?"top":"left",T=h==="y"?"bottom":"right",k=v+u[N],O=v-u[T];v=Qn(k,v,O)}let w=l.fn({...t,[y]:b,[h]:v});return{...w,data:{x:w.x-e,y:w.y-o}}}}};function xe(r){return pl(r)?(r.nodeName||"").toLowerCase():"#document"}function kt(r){var t;return(r==null||(t=r.ownerDocument)==null?void 0:t.defaultView)||window}function Se(r){var t;return(t=(pl(r)?r.ownerDocument:r.document)||window.document)==null?void 0:t.documentElement}function pl(r){return r instanceof Node||r instanceof kt(r).Node}function ae(r){return r instanceof Element||r instanceof kt(r).Element}function Xt(r){return r instanceof HTMLElement||r instanceof kt(r).HTMLElement}function dl(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof kt(r).ShadowRoot}function Ar(r){let{overflow:t,overflowX:e,overflowY:o,display:n}=Ft(r);return/auto|scroll|overlay|hidden|clip/.test(t+o+e)&&!["inline","contents"].includes(n)}function ul(r){return["table","td","th"].includes(xe(r))}function ii(r){let t=ni(),e=Ft(r);return e.transform!=="none"||e.perspective!=="none"||(e.containerType?e.containerType!=="normal":!1)||!t&&(e.backdropFilter?e.backdropFilter!=="none":!1)||!t&&(e.filter?e.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(e.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(e.contain||"").includes(o))}function fl(r){let t=ar(r);for(;Xt(t)&&!co(t);){if(ii(t))return t;t=ar(t)}return null}function ni(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function co(r){return["html","body","#document"].includes(xe(r))}function Ft(r){return kt(r).getComputedStyle(r)}function po(r){return ae(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function ar(r){if(xe(r)==="html")return r;let t=r.assignedSlot||r.parentNode||dl(r)&&r.host||Se(r);return dl(t)?t.host:t}function hl(r){let t=ar(r);return co(t)?r.ownerDocument?r.ownerDocument.body:r.body:Xt(t)&&Ar(t)?t:hl(t)}function oi(r,t,e){var o;t===void 0&&(t=[]),e===void 0&&(e=!0);let n=hl(r),a=n===((o=r.ownerDocument)==null?void 0:o.body),s=kt(n);return a?t.concat(s,s.visualViewport||[],Ar(n)?n:[],s.frameElement&&e?oi(s.frameElement):[]):t.concat(n,oi(n,[],e))}function yl(r){let t=Ft(r),e=parseFloat(t.width)||0,o=parseFloat(t.height)||0,n=Xt(r),a=n?r.offsetWidth:e,s=n?r.offsetHeight:o,l=lo(e)!==a||lo(o)!==s;return l&&(e=a,o=s),{width:e,height:o,$:l}}function bl(r){return ae(r)?r:r.contextElement}function Rr(r){let t=bl(r);if(!Xt(t))return ve(1);let e=t.getBoundingClientRect(),{width:o,height:n,$:a}=yl(t),s=(a?lo(e.width):e.width)/o,l=(a?lo(e.height):e.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var Zp=ve(0);function vl(r){let t=kt(r);return!ni()||!t.visualViewport?Zp:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function qp(r,t,e){return t===void 0&&(t=!1),!e||t&&e!==kt(r)?!1:t}function uo(r,t,e,o){t===void 0&&(t=!1),e===void 0&&(e=!1);let n=r.getBoundingClientRect(),a=bl(r),s=ve(1);t&&(o?ae(o)&&(s=Rr(o)):s=Rr(r));let l=qp(a,e,o)?vl(a):ve(0),c=(n.left+l.x)/s.x,d=(n.top+l.y)/s.y,u=n.width/s.x,h=n.height/s.y;if(a){let y=kt(a),b=o&&ae(o)?kt(o):o,v=y.frameElement;for(;v&&o&&b!==y;){let w=Rr(v),N=v.getBoundingClientRect(),T=Ft(v),k=N.left+(v.clientLeft+parseFloat(T.paddingLeft))*w.x,O=N.top+(v.clientTop+parseFloat(T.paddingTop))*w.y;c*=w.x,d*=w.y,u*=w.x,h*=w.y,c+=k,d+=O,v=kt(v).frameElement}}return nr({width:u,height:h,x:c,y:d})}function Yp(r){let{rect:t,offsetParent:e,strategy:o}=r,n=Xt(e),a=Se(e);if(e===a)return t;let s={scrollLeft:0,scrollTop:0},l=ve(1),c=ve(0);if((n||!n&&o!=="fixed")&&((xe(e)!=="body"||Ar(a))&&(s=po(e)),Xt(e))){let d=uo(e);l=Rr(e),c.x=d.x+e.clientLeft,c.y=d.y+e.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+c.x,y:t.y*l.y-s.scrollTop*l.y+c.y}}function Xp(r){return Array.from(r.getClientRects())}function xl(r){return uo(Se(r)).left+po(r).scrollLeft}function Jp(r){let t=Se(r),e=po(r),o=r.ownerDocument.body,n=Pe(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=Pe(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-e.scrollLeft+xl(r),l=-e.scrollTop;return Ft(o).direction==="rtl"&&(s+=Pe(t.clientWidth,o.clientWidth)-n),{width:n,height:a,x:s,y:l}}function Qp(r,t){let e=kt(r),o=Se(r),n=e.visualViewport,a=o.clientWidth,s=o.clientHeight,l=0,c=0;if(n){a=n.width,s=n.height;let d=ni();(!d||d&&t==="fixed")&&(l=n.offsetLeft,c=n.offsetTop)}return{width:a,height:s,x:l,y:c}}function tu(r,t){let e=uo(r,!0,t==="fixed"),o=e.top+r.clientTop,n=e.left+r.clientLeft,a=Xt(r)?Rr(r):ve(1),s=r.clientWidth*a.x,l=r.clientHeight*a.y,c=n*a.x,d=o*a.y;return{width:s,height:l,x:c,y:d}}function ml(r,t,e){let o;if(t==="viewport")o=Qp(r,e);else if(t==="document")o=Jp(Se(r));else if(ae(t))o=tu(t,e);else{let n=vl(r);o={...t,x:t.x-n.x,y:t.y-n.y}}return nr(o)}function Sl(r,t){let e=ar(r);return e===t||!ae(e)||co(e)?!1:Ft(e).position==="fixed"||Sl(e,t)}function eu(r,t){let e=t.get(r);if(e)return e;let o=oi(r,[],!1).filter(l=>ae(l)&&xe(l)!=="body"),n=null,a=Ft(r).position==="fixed",s=a?ar(r):r;for(;ae(s)&&!co(s);){let l=Ft(s),c=ii(s);!c&&l.position==="fixed"&&(n=null),(a?!c&&!n:!c&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Ar(s)&&!c&&Sl(r,s))?o=o.filter(u=>u!==s):n=l,s=ar(s)}return t.set(r,o),o}function ru(r){let{element:t,boundary:e,rootBoundary:o,strategy:n}=r,s=[...e==="clippingAncestors"?eu(t,this._c):[].concat(e),o],l=s[0],c=s.reduce((d,u)=>{let h=ml(t,u,n);return d.top=Pe(h.top,d.top),d.right=so(h.right,d.right),d.bottom=so(h.bottom,d.bottom),d.left=Pe(h.left,d.left),d},ml(t,l,n));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function ou(r){return yl(r)}function iu(r,t,e){let o=Xt(t),n=Se(t),a=e==="fixed",s=uo(r,!0,a,t),l={scrollLeft:0,scrollTop:0},c=ve(0);if(o||!o&&!a)if((xe(t)!=="body"||Ar(n))&&(l=po(t)),o){let d=uo(t,!0,a,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else n&&(c.x=xl(n));return{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function gl(r,t){return!Xt(r)||Ft(r).position==="fixed"?null:t?t(r):r.offsetParent}function Ol(r,t){let e=kt(r);if(!Xt(r))return e;let o=gl(r,t);for(;o&&ul(o)&&Ft(o).position==="static";)o=gl(o,t);return o&&(xe(o)==="html"||xe(o)==="body"&&Ft(o).position==="static"&&!ii(o))?e:o||fl(r)||e}var nu=async function(r){let{reference:t,floating:e,strategy:o}=r,n=this.getOffsetParent||Ol,a=this.getDimensions;return{reference:iu(t,await n(e),o),floating:{x:0,y:0,...await a(e)}}};function au(r){return Ft(r).direction==="rtl"}var ai={convertOffsetParentRelativeRectToViewportRelativeRect:Yp,getDocumentElement:Se,getClippingRect:ru,getOffsetParent:Ol,getElementRects:nu,getClientRects:Xp,getDimensions:ou,getScale:Rr,isElement:ae,isRTL:au};var wl=(r,t,e)=>{let o=new Map,n={platform:ai,...e},a={...n.platform,_c:o};return cl(r,t,{...n,platform:a})};function El(r){return su(r)}function aa(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function su(r){for(let t=r;t;t=aa(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=aa(r);t;t=aa(t)){if(!(t instanceof Element))continue;let e=getComputedStyle(t);if(e.display!=="contents"&&(e.position!=="static"||e.filter!=="none"||t.tagName==="BODY"))return t}return null}async function fo(r,t,e){return wl(r,t,{platform:{...ai,getOffsetParent:o=>ai.getOffsetParent(o,El)},middleware:[na({crossAxis:!0}),ia({allowedPlacements:[e]})]})}var da={};ot(da,{FtLitElement:()=>W});var la={};ot(la,{ScopedRegistryLitElement:()=>ho});var si=window,lu=si.ShadowRoot&&(si.ShadyCSS===void 0||si.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ly=Symbol();var Cl=(r,t)=>{lu?r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{let o=document.createElement("style"),n=si.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=e.cssText,r.appendChild(o)})};var ho=class extends ge{createRenderRoot(){let t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach(([n,a])=>t.registry.define(n,a)));let e={...t.shadowRootOptions,customElements:t.registry},o=this.renderOptions.creationScope=this.attachShadow(e);return Cl(o,t.elementStyles),o}};var ca=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},_l,Al=Symbol("constructorPrototype"),Rl=Symbol("constructorName"),Nl=Symbol("exportpartsDebouncer"),W=class extends ho{constructor(){super(),this.adoptedCustomStyleSheet=new CSSStyleSheet,this.useAdoptedStyleSheets=!0,this[_l]=new et(5),this[Rl]=this.constructor.name,this[Al]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Rl]&&Object.setPrototypeOf(this,this[Al])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet])}catch(t){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",t)}}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}applyCustomStylesheet(t){var e,o,n;if(this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((e=this.customStylesheet)!==null&&e!==void 0?e:"")}catch(a){console.error(a,this.customStylesheet)}}else if(((n=(o=this.shadowRoot)===null||o===void 0?void 0:o.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var t,e,o;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(o=(e=this.exportpartsPrefixes)===null||e===void 0?void 0:e.length)!==null&&o!==void 0&&o)&&this[Nl].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(t){var e,o,n,a,s,l;let c=y=>y!=null&&y.trim().length>0,d=t.filter(c).map(y=>y.trim());if(d.length===0){this.removeAttribute("exportparts");return}let u=new Set;for(let y of(o=(e=this.shadowRoot)===null||e===void 0?void 0:e.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let b=(a=(n=y.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&a!==void 0?a:[],v=(l=(s=y.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(w=>w.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...b,...v).filter(c).map(w=>w.trim()).forEach(w=>u.add(w))}if(u.size===0){this.removeAttribute("exportparts");return}let h=[...u.values()].flatMap(y=>d.map(b=>`${y}:${b}--${y}`));this.setAttribute("exportparts",[...this.part,...h].join(", "))}};_l=Nl;ca([g()],W.prototype,"exportpartsPrefix",void 0);ca([ne([])],W.prototype,"exportpartsPrefixes",void 0);ca([g()],W.prototype,"customStylesheet",void 0);var Tl={};var ha={};ot(ha,{highlightHtml:()=>fa,highlightHtmlColorCssVariable:()=>Il,highlightHtmlStyles:()=>du});var sr=class r{constructor(t,e=!0,o=[],n=5e3){this.ctx=t,this.iframes=e,this.exclude=o,this.iframesTimeout=n}static matches(t,e){let o=typeof e=="string"?[e]:e,n=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;if(n){let a=!1;return o.every(s=>n.call(t,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let t,e=[];return typeof this.ctx>"u"||!this.ctx?t=[]:NodeList.prototype.isPrototypeOf(this.ctx)?t=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?t=this.ctx:typeof this.ctx=="string"?t=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):t=[this.ctx],t.forEach(o=>{let n=e.filter(a=>a.contains(o)).length>0;e.indexOf(o)===-1&&!n&&e.push(o)}),e}getIframeContents(t,e,o=()=>{}){let n;try{let a=t.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{o()}n&&e(n)}isIframeBlank(t){let e="about:blank",o=t.getAttribute("src").trim();return t.contentWindow.location.href===e&&o!==e&&o}observeIframeLoad(t,e,o){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(t)||(t.removeEventListener("load",s),this.getIframeContents(t,e,o))}catch{o()}}};t.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(t,e,o){try{t.contentWindow.document.readyState==="complete"?this.isIframeBlank(t)?this.observeIframeLoad(t,e,o):this.getIframeContents(t,e,o):this.observeIframeLoad(t,e,o)}catch{o()}}waitForIframes(t,e){let o=0;this.forEachIframe(t,()=>!0,n=>{o++,this.waitForIframes(n.querySelector("html"),()=>{--o||e()})},n=>{n||e()})}forEachIframe(t,e,o,n=()=>{}){let a=t.querySelectorAll("iframe"),s=a.length,l=0;a=Array.prototype.slice.call(a);let c=()=>{--s<=0&&n(l)};s||c(),a.forEach(d=>{r.matches(d,this.exclude)?c():this.onIframeReady(d,u=>{e(d)&&(l++,o(u)),c()},c)})}createIterator(t,e,o){return document.createNodeIterator(t,e,o,!1)}createInstanceOnIframe(t){return new r(t.querySelector("html"),this.iframes)}compareNodeIframe(t,e,o){let n=t.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(e!==null){let s=e.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(t){let e=t.previousNode(),o;return e===null?o=t.nextNode():o=t.nextNode()&&t.nextNode(),{prevNode:e,node:o}}checkIframeFilter(t,e,o,n){let a=!1,s=!1;return n.forEach((l,c)=>{l.val===o&&(a=c,s=l.handled)}),this.compareNodeIframe(t,e,o)?(a===!1&&!s?n.push({val:o,handled:!0}):a!==!1&&!s&&(n[a].handled=!0),!0):(a===!1&&n.push({val:o,handled:!1}),!1)}handleOpenIframes(t,e,o,n){t.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(e,o,n)})})}iterateThroughNodes(t,e,o,n,a){let s=this.createIterator(e,t,n),l=[],c=[],d,u,h=()=>({prevNode:u,node:d}=this.getIteratorNode(s),d);for(;h();)this.iframes&&this.forEachIframe(e,y=>this.checkIframeFilter(d,u,y,l),y=>{this.createInstanceOnIframe(y).forEachNode(t,b=>c.push(b),n)}),c.push(d);c.forEach(y=>{o(y)}),this.iframes&&this.handleOpenIframes(l,t,o,n),a()}forEachNode(t,e,o,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let c=()=>{this.iterateThroughNodes(t,l,e,o,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,c):c()})}};var mo=class{constructor(t){this.ctx=t,this.ie=!1;let e=window.navigator.userAgent;(e.indexOf("MSIE")>-1||e.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(t){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},t)}get opt(){return this._opt}get iterator(){return new sr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(t,e="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[e]=="function"&&o[e](`mark.js: ${t}`)}escapeStr(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(t){return this.opt.wildcards!=="disabled"&&(t=this.setupWildcardsRegExp(t)),t=this.escapeStr(t),Object.keys(this.opt.synonyms).length&&(t=this.createSynonymsRegExp(t)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),this.opt.diacritics&&(t=this.createDiacriticsRegExp(t)),t=this.createMergedBlanksRegExp(t),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.createJoinersRegExp(t)),this.opt.wildcards!=="disabled"&&(t=this.createWildcardsRegExp(t)),t=this.createAccuracyRegExp(t),t}createSynonymsRegExp(t){let e=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in e)if(e.hasOwnProperty(a)){let s=e[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),c=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&c!==""&&(t=t.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(c)})`,`gm${o}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(c)})`+n))}return t}processSynomyms(t){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(t=this.setupIgnoreJoinersRegExp(t)),t}setupWildcardsRegExp(t){return t=t.replace(/(?:\\)*\?/g,e=>e.charAt(0)==="\\"?"?":""),t.replace(/(?:\\)*\*/g,e=>e.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(t){let e=this.opt.wildcards==="withSpaces";return t.replace(/\u0001/g,e?"[\\S\\s]?":"\\S?").replace(/\u0002/g,e?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(t){return t.replace(/[^(|)\\]/g,(e,o,n)=>{let a=n.charAt(o+1);return/[(|)\\]/.test(a)||a===""?e:e+"\0"})}createJoinersRegExp(t){let e=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&e.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&e.push("\\u00ad\\u200b\\u200c\\u200d"),e.length?t.split(/\u0000+/).join(`[${e.join("")}]*`):t}createDiacriticsRegExp(t){let e=this.opt.caseSensitive?"":"i",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"],n=[];return t.split("").forEach(a=>{o.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;t=t.replace(new RegExp(`[${s}]`,`gm${e}`),`[${s}]`),n.push(s)}return!0})}),t}createMergedBlanksRegExp(t){return t.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(t){let e="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",o=this.opt.accuracy,n=typeof o=="string"?o:o.value,a=typeof o=="string"?[]:o.limiters,s="";switch(a.forEach(l=>{s+=`|${this.escapeStr(l)}`}),n){case"partially":default:return`()(${t})`;case"complementary":return s="\\s"+(s||this.escapeStr(e)),`()([^${s}]*${t}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${t})(?=$|\\s${s})`}}getSeparatedKeywords(t){let e=[];return t.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(n=>{n.trim()&&e.indexOf(n)===-1&&e.push(n)}):o.trim()&&e.indexOf(o)===-1&&e.push(o)}),{keywords:e.sort((o,n)=>n.length-o.length),length:e.length}}isNumeric(t){return Number(parseFloat(t))==t}checkRanges(t){if(!Array.isArray(t)||Object.prototype.toString.call(t[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(t),[];let e=[],o=0;return t.sort((n,a)=>n.start-a.start).forEach(n=>{let{start:a,end:s,valid:l}=this.callNoMatchOnInvalidRanges(n,o);l&&(n.start=a,n.length=s-a,e.push(n),o=s)}),e}callNoMatchOnInvalidRanges(t,e){let o,n,a=!1;return t&&typeof t.start<"u"?(o=parseInt(t.start,10),n=o+parseInt(t.length,10),this.isNumeric(t.start)&&this.isNumeric(t.length)&&n-e>0&&n-o>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(t)}`),this.opt.noMatch(t))):(this.log(`Ignoring invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)),{start:o,end:n,valid:a}}checkWhitespaceRanges(t,e,o){let n,a=!0,s=o.length,l=e-s,c=parseInt(t.start,10)-l;return c=c>s?s:c,n=c+parseInt(t.length,10),n>s&&(n=s,this.log(`End range automatically set to the max value of ${s}`)),c<0||n-c<0||c>s||n>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(t)}`),this.opt.noMatch(t)):o.substring(c,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(t)),this.opt.noMatch(t)),{start:c,end:n,valid:a}}getTextNodes(t){let e="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{o.push({start:e.length,end:(e+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{t({value:e,nodes:o})})}matchesExclude(t){return sr.matches(t,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(t,e,o){let n=this.opt.element?this.opt.element:"mark",a=t.splitText(e),s=a.splitText(o-e),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(t,e,o,n,a){t.nodes.every((s,l)=>{let c=t.nodes[l+1];if(typeof c>"u"||c.start>e){if(!n(s.node))return!1;let d=e-s.start,u=(o>s.end?s.end:o)-s.start,h=t.value.substr(0,s.start),y=t.value.substr(u+s.start);if(s.node=this.wrapRangeInTextNode(s.node,d,u),t.value=h+y,t.nodes.forEach((b,v)=>{v>=l&&(t.nodes[v].start>0&&v!==l&&(t.nodes[v].start-=u),t.nodes[v].end-=u)}),o-=u,a(s.node.previousSibling,s.start),o>s.end)e=s.end;else return!1}return!0})}wrapMatches(t,e,o,n,a){let s=e===0?0:e+1;this.getTextNodes(l=>{l.nodes.forEach(c=>{c=c.node;let d;for(;(d=t.exec(c.textContent))!==null&&d[s]!=="";){if(!o(d[s],c))continue;let u=d.index;if(s!==0)for(let h=1;h<s;h++)u+=d[h].length;c=this.wrapRangeInTextNode(c,u,u+d[s].length),n(c.previousSibling),t.lastIndex=0}}),a()})}wrapMatchesAcrossElements(t,e,o,n,a){let s=e===0?0:e+1;this.getTextNodes(l=>{let c;for(;(c=t.exec(l.value))!==null&&c[s]!=="";){let d=c.index;if(s!==0)for(let h=1;h<s;h++)d+=c[h].length;let u=d+c[s].length;this.wrapRangeInMappedTextNode(l,d,u,h=>o(c[s],h),(h,y)=>{t.lastIndex=y,n(h)})}a()})}wrapRangeFromIndex(t,e,o,n){this.getTextNodes(a=>{let s=a.value.length;t.forEach((l,c)=>{let{start:d,end:u,valid:h}=this.checkWhitespaceRanges(l,s,a.value);h&&this.wrapRangeInMappedTextNode(a,d,u,y=>e(y,l,a.value.substring(d,u),c),y=>{o(y,l)})}),n()})}unwrapMatches(t){let e=t.parentNode,o=document.createDocumentFragment();for(;t.firstChild;)o.appendChild(t.removeChild(t.firstChild));e.replaceChild(o,t),this.ie?this.normalizeTextNode(e):e.normalize()}normalizeTextNode(t){if(t){if(t.nodeType===3)for(;t.nextSibling&&t.nextSibling.nodeType===3;)t.nodeValue+=t.nextSibling.nodeValue,t.parentNode.removeChild(t.nextSibling);else this.normalizeTextNode(t.firstChild);this.normalizeTextNode(t.nextSibling)}}markRegExp(t,e){this.opt=e,this.log(`Searching with expression "${t}"`);let o=0,n="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](t,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,o),a,()=>{o===0&&this.opt.noMatch(t),this.opt.done(o)})}mark(t,e){this.opt=e;let o=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof t=="string"?[t]:t),l=this.opt.caseSensitive?"":"i",c=d=>{let u=new RegExp(this.createRegExp(d),`gm${l}`),h=0;this.log(`Searching with expression "${u}"`),this[n](u,1,(y,b)=>this.opt.filter(b,d,o,h),y=>{h++,o++,this.opt.each(y)},()=>{h===0&&this.opt.noMatch(d),a[s-1]===d?this.opt.done(o):c(a[a.indexOf(d)+1])})};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),s===0?this.opt.done(o):c(a[0])}markRanges(t,e){this.opt=e;let o=0,n=this.checkRanges(t);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,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(t){this.opt=t;let e=this.opt.element?this.opt.element:"*";e+="[data-markjs]",this.opt.className&&(e+=`.${this.opt.className}`),this.log(`Removal selector "${e}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let n=sr.matches(o,e),a=this.matchesExclude(o);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function pa(r){let t=new mo(r);return this.mark=(e,o)=>(t.mark(e,o),this),this.markRegExp=(e,o)=>(t.markRegExp(e,o),this),this.markRanges=(e,o)=>(t.markRanges(e,o),this),this.unmark=e=>(t.unmark(e),this),this}var cu=pa,Il=i.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),du=P`
|
|
7
7
|
.highlight-html-match {
|
|
8
8
|
background: ${Il};
|
|
9
9
|
}
|
|
10
|
-
`,ua={className:"highlight-html-match"};function fa(r,t){var e;let o=r.getAttribute("data-highlight-html-query");if((o??"")!==(t??"")){let n=new
|
|
10
|
+
`,ua={className:"highlight-html-match"};function fa(r,t){var e;let o=r.getAttribute("data-highlight-html-query");if((o??"")!==(t??"")){let n=new cu(r);n.unmark(ua),t&&t.trim()&&(n.mark(t.replace(/"[^"]+"/g,""),{...ua,separateWordSearch:!0}),((e=t.match(/"[^"]+"/g))!==null&&e!==void 0?e:[]).forEach(s=>n.mark(s.replace(/"/g,""),{...ua,separateWordSearch:!1})))}r.setAttribute("data-highlight-html-query",t??"")}var ma={};ot(ma,{noTextSelect:()=>lr,safariEllipsisFix:()=>cr,wordWrap:()=>pu});var lr=P`
|
|
11
11
|
.ft-no-text-select {
|
|
12
12
|
-webkit-touch-callout: none;
|
|
13
13
|
-webkit-user-select: none;
|
|
@@ -16,7 +16,7 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
16
16
|
-ms-user-select: none;
|
|
17
17
|
user-select: none;
|
|
18
18
|
}
|
|
19
|
-
`,
|
|
19
|
+
`,pu=P`
|
|
20
20
|
.ft-word-wrap {
|
|
21
21
|
white-space: normal;
|
|
22
22
|
word-wrap: break-word;
|
|
@@ -39,7 +39,7 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
39
39
|
display: inline-block;
|
|
40
40
|
width: 0;
|
|
41
41
|
}
|
|
42
|
-
`;var Pl={};var ga={};ot(ga,{ParametrizedLabelResolver:()=>go});var go=class{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,n;t=this.resolvePluralKey(t,e);let a=(n=(o=this.labels[t])!==null&&o!==void 0?o:this.defaultLabels[t])!==null&&n!==void 0?n:"";return e.forEach((s,l)=>a=a.replace(new RegExp(`\\{${l}([^}]*)\\}`,"g"),(c,d)=>this.formatValue(s,d))),a}resolvePluralKey(t,e){for(let o of e)if(typeof o=="number"){let n=`${String(t)}[\\=${o}]`;if(n in this.labels||n in this.defaultLabels)return n}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):t??""}formatDate(t,e){let o=n=>e?.includes("date")?t.toLocaleDateString(n):e?.includes("time")?t.toLocaleTimeString(n):t.toLocaleString(n);try{return o(document.documentElement.lang)}catch{return o()}}};var Wa={};ot(Wa,{FtCommandQueue:()=>bo,FtLitElementRedux:()=>Kt,FtReduxStore:()=>we,clearAllStores:()=>Zu,isFtReduxStore:()=>dr,redux:()=>ct,reduxEventListener:()=>yo,reduxReactive:()=>pu});var pu=()=>(r,t)=>{var e;let o=r.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(e=o.reduxReactiveProperties)===null||e===void 0||e.add(t)},ct=r=>{let t=r??{};return(e,o)=>{var n;let a={hasChanged:(l,c)=>!jt(l,c),attribute:!1,...t};g(a)(e,o);let s=e.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(n=t.selector)!==null&&n!==void 0?n:l=>l[o],store:t.store})}},yo=r=>(t,e)=>{let o=t.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(e,r)};var bo=class{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter(o=>o.type!==t.type)),this.queue.push(t)}consume(t){let e=this.queue.find(o=>o.type===t);return e&&(this.queue=this.queue.filter(o=>o!==e)),e}};function dr(r){var t;return(t=r?.isFtReduxStore)!==null&&t!==void 0?t:!1}var $l,kl,Ll,li=Symbol("internalReduxEventsUnsubscribers"),ke=Symbol("internalStoresUnsubscribers"),pr=Symbol("internalStores"),Kt=class extends W{constructor(){super(...arguments),this[$l]=new Map,this[kl]=new Map,this[Ll]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(e=>t.has(e))&&this.updateFromStores()}getUnnamedStore(){if(this[pr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[pr].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[pr].get(t)}addStore(t,e){var o;e=(o=e??(dr(t)?t.name:void 0))!==null&&o!==void 0?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){let e=typeof t=="string"?t:t.name;this.unsubscribeFromStore(e),this[pr].delete(e)}setupStore(t,e){this[pr].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[pr].forEach((t,e)=>this.subscribeToStore(e,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,e)=>{let o=this.constructor.getPropertyOptions(e);if(!o?.attribute||!this.hasAttribute(typeof o?.attribute=="string"?o.attribute:e)){let n=this.getStore(t.store);n&&(t.store?this[ke].has(t.store):this[ke].size>0)&&(this[e]=t.selector(n.getState(),this))}})}subscribeToStore(t,e){var o;this[ke].set(t,e.subscribe(()=>this.updateFromStores())),dr(e)&&e.eventBus&&((o=this.reduxConstructor.reduxEventListeners)===null||o===void 0||o.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||e.name===n.store)){let s=l=>this[a](l);e.eventBus.addEventListener(n.eventName,s),this[li].push(()=>e.eventBus.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ke].forEach((t,e)=>this.unsubscribeFromStore(e)),this[li].forEach(t=>t()),this[li]=[]}unsubscribeFromStore(t){this[ke].has(t)&&this[ke].get(t)(),this[ke].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};$l=ke,kl=pr,Ll=li;Kt.reduxProperties=new Map;Kt.reduxReactiveProperties=new Set;Kt.reduxEventListeners=new Map;function Gt(r){for(var t=arguments.length,e=Array(t>1?t-1:0),o=1;o<t;o++)e[o-1]=arguments[o];if(0)var n,a;throw Error("[Immer] minified error nr: "+r+(e.length?" "+e.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Oe(r){return!!r&&!!r[it]}function Jt(r){var t;return!!r&&(function(e){if(!e||typeof e!="object")return!1;var o=Object.getPrototypeOf(e);if(o===null)return!0;var n=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===vu}(r)||Array.isArray(r)||!!r[Wl]||!!(!((t=r.constructor)===null||t===void 0)&&t[Wl])||Ca(r)||Aa(r))}function ur(r,t,e){e===void 0&&(e=!1),Tr(r)===0?(e?Object.keys:Nr)(r).forEach(function(o){e&&typeof o=="symbol"||t(o,r[o],r)}):r.forEach(function(o,n){return t(n,o,r)})}function Tr(r){var t=r[it];return t?t.i>3?t.i-4:t.i:Array.isArray(r)?1:Ca(r)?2:Aa(r)?3:0}function _r(r,t){return Tr(r)===2?r.has(t):Object.prototype.hasOwnProperty.call(r,t)}function uu(r,t){return Tr(r)===2?r.get(t):r[t]}function Hl(r,t,e){var o=Tr(r);o===2?r.set(t,e):o===3?r.add(e):r[t]=e}function Vl(r,t){return r===t?r!==0||1/r==1/t:r!=r&&t!=t}function Ca(r){return yu&&r instanceof Map}function Aa(r){return bu&&r instanceof Set}function Le(r){return r.o||r.t}function Ra(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var t=Gl(r);delete t[it];for(var e=Nr(t),o=0;o<e.length;o++){var n=e[o],a=t[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[n]})}return Object.create(Object.getPrototypeOf(r),t)}function _a(r,t){return t===void 0&&(t=!1),Na(r)||Oe(r)||!Jt(r)||(Tr(r)>1&&(r.set=r.add=r.clear=r.delete=fu),Object.freeze(r),t&&ur(r,function(e,o){return _a(o,!0)},!0)),r}function fu(){Gt(2)}function Na(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function se(r){var t=Ea[r];return t||Gt(18,r),t}function hu(r,t){Ea[r]||(Ea[r]=t)}function Sa(){return xo}function ya(r,t){t&&(se("Patches"),r.u=[],r.s=[],r.v=t)}function ci(r){Oa(r),r.p.forEach(mu),r.p=null}function Oa(r){r===xo&&(xo=r.l)}function Ml(r){return xo={p:[],l:xo,h:r,m:!0,_:0}}function mu(r){var t=r[it];t.i===0||t.i===1?t.j():t.g=!0}function ba(r,t){t._=t.p.length;var e=t.p[0],o=r!==void 0&&r!==e;return t.h.O||se("ES5").S(t,r,o),o?(e[it].P&&(ci(t),Gt(4)),Jt(r)&&(r=di(t,r),t.l||pi(t,r)),t.u&&se("Patches").M(e[it].t,r,t.u,t.s)):r=di(t,e,[]),ci(t),t.u&&t.v(t.u,t.s),r!==Kl?r:void 0}function di(r,t,e){if(Na(t))return t;var o=t[it];if(!o)return ur(t,function(l,c){return Dl(r,o,t,l,c,e)},!0),t;if(o.A!==r)return t;if(!o.P)return pi(r,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=o.i===4||o.i===5?o.o=Ra(o.k):o.o,a=n,s=!1;o.i===3&&(a=new Set(n),n.clear(),s=!0),ur(a,function(l,c){return Dl(r,o,n,l,c,e,s)}),pi(r,n,!1),e&&r.u&&se("Patches").N(o,e,r.u,r.s)}return o.o}function Dl(r,t,e,o,n,a,s){if(Oe(n)){var l=di(r,n,a&&t&&t.i!==3&&!_r(t.R,o)?a.concat(o):void 0);if(Hl(e,o,l),!Oe(l))return;r.m=!1}else s&&e.add(n);if(Jt(n)&&!Na(n)){if(!r.h.D&&r._<1)return;di(r,n),t&&t.A.l||pi(r,n)}}function pi(r,t,e){e===void 0&&(e=!1),!r.l&&r.h.D&&r.m&&_a(t,e)}function va(r,t){var e=r[it];return(e?Le(e):r)[t]}function Ul(r,t){if(t in r)for(var e=Object.getPrototypeOf(r);e;){var o=Object.getOwnPropertyDescriptor(e,t);if(o)return o;e=Object.getPrototypeOf(e)}}function Me(r){r.P||(r.P=!0,r.l&&Me(r.l))}function xa(r){r.o||(r.o=Ra(r.t))}function wa(r,t,e){var o=Ca(t)?se("MapSet").F(t,e):Aa(t)?se("MapSet").T(t,e):r.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Sa(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},c=l,d=So;s&&(c=[l],d=vo);var u=Proxy.revocable(c,d),h=u.revoke,y=u.proxy;return l.k=y,l.j=h,y}(t,e):se("ES5").J(t,e);return(e?e.A:Sa()).p.push(o),o}function gu(r){return Oe(r)||Gt(22,r),function t(e){if(!Jt(e))return e;var o,n=e[it],a=Tr(e);if(n){if(!n.P&&(n.i<4||!se("ES5").K(n)))return n.t;n.I=!0,o=Bl(e,a),n.I=!1}else o=Bl(e,a);return ur(o,function(s,l){n&&uu(n.t,s)===l||Hl(o,s,t(l))}),a===3?new Set(o):o}(r)}function Bl(r,t){switch(t){case 2:return new Map(r);case 3:return Array.from(r)}return Ra(r)}function jl(){function r(s,l){var c=a[s];return c?c.enumerable=l:a[s]=c={configurable:!0,enumerable:l,get:function(){var d=this[it];return So.get(d,s)},set:function(d){var u=this[it];So.set(u,s,d)}},c}function t(s){for(var l=s.length-1;l>=0;l--){var c=s[l][it];if(!c.P)switch(c.i){case 5:o(c)&&Me(c);break;case 4:e(c)&&Me(c)}}}function e(s){for(var l=s.t,c=s.k,d=Nr(c),u=d.length-1;u>=0;u--){var h=d[u];if(h!==it){var y=l[h];if(y===void 0&&!_r(l,h))return!0;var b=c[h],v=b&&b[it];if(v?v.t!==y:!Vl(b,y))return!0}}var w=!!l[it];return d.length!==Nr(l).length+(w?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 d=0;d<l.length;d++)if(!l.hasOwnProperty(d))return!0;return!1}function n(s){s.g&&Gt(3,JSON.stringify(Le(s)))}var a={};hu("ES5",{J:function(s,l){var c=Array.isArray(s),d=function(h,y){if(h){for(var b=Array(y.length),v=0;v<y.length;v++)Object.defineProperty(b,""+v,r(v,!0));return b}var w=Gl(y);delete w[it];for(var N=Nr(w),T=0;T<N.length;T++){var k=N[T];w[k]=r(k,h||!!w[k].enumerable)}return Object.create(Object.getPrototypeOf(y),w)}(c,s),u={i:c?5:4,A:l?l.A:Sa(),P:!1,I:!1,R:{},l,t:s,k:d,o:null,g:!1,C:!1};return Object.defineProperty(d,it,{value:u,writable:!0}),d},S:function(s,l,c){c?Oe(l)&&l[it].A===s&&t(s.p):(s.u&&function d(u){if(u&&typeof u=="object"){var h=u[it];if(h){var y=h.t,b=h.k,v=h.R,w=h.i;if(w===4)ur(b,function(S){S!==it&&(y[S]!==void 0||_r(y,S)?v[S]||d(b[S]):(v[S]=!0,Me(h)))}),ur(y,function(S){b[S]!==void 0||_r(b,S)||(v[S]=!1,Me(h))});else if(w===5){if(o(h)&&(Me(h),v.length=!0),b.length<y.length)for(var N=b.length;N<y.length;N++)v[N]=!1;else for(var T=y.length;T<b.length;T++)v[T]=!0;for(var k=Math.min(b.length,y.length),O=0;O<k;O++)b.hasOwnProperty(O)||(v[O]=!0),v[O]===void 0&&d(b[O])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?e(s):o(s)}})}var Fl,xo,Ta=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",yu=typeof Map<"u",bu=typeof Set<"u",zl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Kl=Ta?Symbol.for("immer-nothing"):((Fl={})["immer-nothing"]=!0,Fl),Wl=Ta?Symbol.for("immer-draftable"):"__$immer_draftable",it=Ta?Symbol.for("immer-state"):"__$immer_state";var vu=""+Object.prototype.constructor,Nr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,Gl=Object.getOwnPropertyDescriptors||function(r){var t={};return Nr(r).forEach(function(e){t[e]=Object.getOwnPropertyDescriptor(r,e)}),t},Ea={},So={get:function(r,t){if(t===it)return r;var e=Le(r);if(!_r(e,t))return function(n,a,s){var l,c=Ul(a,s);return c?"value"in c?c.value:(l=c.get)===null||l===void 0?void 0:l.call(n.k):void 0}(r,e,t);var o=e[t];return r.I||!Jt(o)?o:o===va(r.t,t)?(xa(r),r.o[t]=wa(r.A.h,o,r)):o},has:function(r,t){return t in Le(r)},ownKeys:function(r){return Reflect.ownKeys(Le(r))},set:function(r,t,e){var o=Ul(Le(r),t);if(o?.set)return o.set.call(r.k,e),!0;if(!r.P){var n=va(Le(r),t),a=n?.[it];if(a&&a.t===e)return r.o[t]=e,r.R[t]=!1,!0;if(Vl(e,n)&&(e!==void 0||_r(r.t,t)))return!0;xa(r),Me(r)}return r.o[t]===e&&(e!==void 0||t in r.o)||Number.isNaN(e)&&Number.isNaN(r.o[t])||(r.o[t]=e,r.R[t]=!0),!0},deleteProperty:function(r,t){return va(r.t,t)!==void 0||t in r.t?(r.R[t]=!1,xa(r),Me(r)):delete r.R[t],r.o&&delete r.o[t],!0},getOwnPropertyDescriptor:function(r,t){var e=Le(r),o=Reflect.getOwnPropertyDescriptor(e,t);return o&&{writable:!0,configurable:r.i!==1||t!=="length",enumerable:o.enumerable,value:e[t]}},defineProperty:function(){Gt(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){Gt(12)}},vo={};ur(So,function(r,t){vo[r]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),vo.deleteProperty=function(r,t){return vo.set.call(this,r,t,void 0)},vo.set=function(r,t,e){return So.set.call(this,r[0],t,e,r[0])};var xu=function(){function r(e){var o=this;this.O=zl,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var c=o;return function(w){var N=this;w===void 0&&(w=l);for(var T=arguments.length,k=Array(T>1?T-1:0),O=1;O<T;O++)k[O-1]=arguments[O];return c.produce(w,function(S){var E;return(E=a).call.apply(E,[N,S].concat(k))})}}var d;if(typeof a!="function"&&Gt(6),s!==void 0&&typeof s!="function"&&Gt(7),Jt(n)){var u=Ml(o),h=wa(o,n,void 0),y=!0;try{d=a(h),y=!1}finally{y?ci(u):Oa(u)}return typeof Promise<"u"&&d instanceof Promise?d.then(function(w){return ya(u,s),ba(w,u)},function(w){throw ci(u),w}):(ya(u,s),ba(d,u))}if(!n||typeof n!="object"){if((d=a(n))===void 0&&(d=n),d===Kl&&(d=void 0),o.D&&_a(d,!0),s){var b=[],v=[];se("Patches").M(n,d,b,v),s(b,v)}return d}Gt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(d){for(var u=arguments.length,h=Array(u>1?u-1:0),y=1;y<u;y++)h[y-1]=arguments[y];return o.produceWithPatches(d,function(b){return n.apply(void 0,[b].concat(h))})};var s,l,c=o.produce(n,a,function(d,u){s=d,l=u});return typeof Promise<"u"&&c instanceof Promise?c.then(function(d){return[d,s,l]}):[c,s,l]},typeof e?.useProxies=="boolean"&&this.setUseProxies(e.useProxies),typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze)}var t=r.prototype;return t.createDraft=function(e){Jt(e)||Gt(8),Oe(e)&&(e=gu(e));var o=Ml(this),n=wa(this,e,void 0);return n[it].C=!0,Oa(o),n},t.finishDraft=function(e,o){var n=e&&e[it],a=n.A;return ya(a,o),ba(void 0,a)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!zl&&Gt(20),this.O=e},t.applyPatches=function(e,o){var n;for(n=o.length-1;n>=0;n--){var a=o[n];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}n>-1&&(o=o.slice(n+1));var s=se("Patches").$;return Oe(e)?s(e,o):this.produce(e,function(l){return s(l,o)})},r}(),zt=new xu,Su=zt.produce,Qy=zt.produceWithPatches.bind(zt),tb=zt.setAutoFreeze.bind(zt),eb=zt.setUseProxies.bind(zt),rb=zt.applyPatches.bind(zt),ob=zt.createDraft.bind(zt),ib=zt.finishDraft.bind(zt),ui=Su;function De(r){"@babel/helpers - typeof";return De=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},De(r)}function Ia(r,t){if(De(r)!=="object"||r===null)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var o=e.call(r,t||"default");if(De(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function Pa(r){var t=Ia(r,"string");return De(t)==="symbol"?t:String(t)}function $a(r,t,e){return t=Pa(t),t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function Zl(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),e.push.apply(e,o)}return e}function fi(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Zl(Object(e),!0).forEach(function(o){$a(r,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):Zl(Object(e)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(e,o))})}return r}function Rt(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 ql=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ka=function(){return Math.random().toString(36).substring(7).split("").join(".")},hi={INIT:"@@redux/INIT"+ka(),REPLACE:"@@redux/REPLACE"+ka(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ka()}};function Ou(r){if(typeof r!="object"||r===null)return!1;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function La(r,t,e){var o;if(typeof t=="function"&&typeof e=="function"||typeof e=="function"&&typeof arguments[3]=="function")throw new Error(Rt(0));if(typeof t=="function"&&typeof e>"u"&&(e=t,t=void 0),typeof e<"u"){if(typeof e!="function")throw new Error(Rt(1));return e(La)(r,t)}if(typeof r!="function")throw new Error(Rt(2));var n=r,a=t,s=[],l=s,c=!1;function d(){l===s&&(l=s.slice())}function u(){if(c)throw new Error(Rt(3));return a}function h(w){if(typeof w!="function")throw new Error(Rt(4));if(c)throw new Error(Rt(5));var N=!0;return d(),l.push(w),function(){if(N){if(c)throw new Error(Rt(6));N=!1,d();var k=l.indexOf(w);l.splice(k,1),s=null}}}function y(w){if(!Ou(w))throw new Error(Rt(7));if(typeof w.type>"u")throw new Error(Rt(8));if(c)throw new Error(Rt(9));try{c=!0,a=n(a,w)}finally{c=!1}for(var N=s=l,T=0;T<N.length;T++){var k=N[T];k()}return w}function b(w){if(typeof w!="function")throw new Error(Rt(10));n=w,y({type:hi.REPLACE})}function v(){var w,N=h;return w={subscribe:function(k){if(typeof k!="object"||k===null)throw new Error(Rt(11));function O(){k.next&&k.next(u())}O();var S=N(O);return{unsubscribe:S}}},w[ql]=function(){return this},w}return y({type:hi.INIT}),o={dispatch:y,subscribe:h,getState:u,replaceReducer:b},o[ql]=v,o}function wu(r){Object.keys(r).forEach(function(t){var e=r[t],o=e(void 0,{type:hi.INIT});if(typeof o>"u")throw new Error(Rt(12));if(typeof e(void 0,{type:hi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Rt(13))})}function Yl(r){for(var t=Object.keys(r),e={},o=0;o<t.length;o++){var n=t[o];typeof r[n]=="function"&&(e[n]=r[n])}var a=Object.keys(e),s,l;try{wu(e)}catch(c){l=c}return function(d,u){if(d===void 0&&(d={}),l)throw l;if(0)var h;for(var y=!1,b={},v=0;v<a.length;v++){var w=a[v],N=e[w],T=d[w],k=N(T,u);if(typeof k>"u"){var O=u&&u.type;throw new Error(Rt(14))}b[w]=k,y=y||k!==T}return y=y||a.length!==Object.keys(d).length,y?b:d}}function Ir(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return t.length===0?function(o){return o}:t.length===1?t[0]:t.reduce(function(o,n){return function(){return o(n.apply(void 0,arguments))}})}function Xl(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return function(o){return function(){var n=o.apply(void 0,arguments),a=function(){throw new Error(Rt(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(c){return c(s)});return a=Ir.apply(void 0,l)(n.dispatch),fi(fi({},n),{},{dispatch:a})}}}function Jl(r){var t=function(o){var n=o.dispatch,a=o.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,r):s(l)}}};return t}var Ql=Jl();Ql.withExtraArgument=Jl;var Ma=Ql;var ic=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(o[a]=n[a])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Eu=function(r,t){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,n,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(d){return function(u){return c([d,u])}}function c(d){if(o)throw new TypeError("Generator is already executing.");for(;e;)try{if(o=1,n&&(a=d[0]&2?n.return:d[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,d[1])).done)return a;switch(n=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return e.label++,{value:d[1],done:!1};case 5:e.label++,n=d[1],d=[0];continue;case 7:d=e.ops.pop(),e.trys.pop();continue;default:if(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){e=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){e.label=d[1];break}if(d[0]===6&&e.label<a[1]){e.label=a[1],a=d;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(d);break}a[2]&&e.ops.pop(),e.trys.pop();continue}d=t.call(r,e)}catch(u){d=[6,u],n=0}finally{o=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},Pr=function(r,t){for(var e=0,o=t.length,n=r.length;e<o;e++,n++)r[n]=t[e];return r},Cu=Object.defineProperty,Au=Object.defineProperties,Ru=Object.getOwnPropertyDescriptors,tc=Object.getOwnPropertySymbols,_u=Object.prototype.hasOwnProperty,Nu=Object.prototype.propertyIsEnumerable,ec=function(r,t,e){return t in r?Cu(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e},Ue=function(r,t){for(var e in t||(t={}))_u.call(t,e)&&ec(r,e,t[e]);if(tc)for(var o=0,n=tc(t);o<n.length;o++){var e=n[o];Nu.call(t,e)&&ec(r,e,t[e])}return r},Da=function(r,t){return Au(r,Ru(t))},Tu=function(r,t,e){return new Promise(function(o,n){var a=function(c){try{l(e.next(c))}catch(d){n(d)}},s=function(c){try{l(e.throw(c))}catch(d){n(d)}},l=function(c){return c.done?o(c.value):Promise.resolve(c.value).then(a,s)};l((e=e.apply(r,t)).next())})};var Iu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ir:Ir.apply(null,arguments)},Ob=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function Pu(r){if(typeof r!="object"||r===null)return!1;var t=Object.getPrototypeOf(r);if(t===null)return!0;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return t===e}var $u=function(r){ic(t,r);function t(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var n=r.apply(this,e)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return r.prototype.concat.apply(this,e)},t.prototype.prepend=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return e.length===1&&Array.isArray(e[0])?new(t.bind.apply(t,Pr([void 0],e[0].concat(this)))):new(t.bind.apply(t,Pr([void 0],e.concat(this))))},t}(Array),ku=function(r){ic(t,r);function t(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var n=r.apply(this,e)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return r.prototype.concat.apply(this,e)},t.prototype.prepend=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return e.length===1&&Array.isArray(e[0])?new(t.bind.apply(t,Pr([void 0],e[0].concat(this)))):new(t.bind.apply(t,Pr([void 0],e.concat(this))))},t}(Array);function Fa(r){return Jt(r)?ui(r,function(){}):r}function Lu(r){return typeof r=="boolean"}function Mu(){return function(t){return Du(t)}}function Du(r){r===void 0&&(r={});var t=r.thunk,e=t===void 0?!0:t,o=r.immutableCheck,n=o===void 0?!0:o,a=r.serializableCheck,s=a===void 0?!0:a,l=new $u;if(e&&(Lu(e)?l.push(Ma):l.push(Ma.withExtraArgument(e.extraArgument))),0){if(n)var c;if(s)var d}return l}var Ua=!0;function nc(r){var t=Mu(),e=r||{},o=e.reducer,n=o===void 0?void 0:o,a=e.middleware,s=a===void 0?t():a,l=e.devTools,c=l===void 0?!0:l,d=e.preloadedState,u=d===void 0?void 0:d,h=e.enhancers,y=h===void 0?void 0:h,b;if(typeof n=="function")b=n;else if(Pu(n))b=Yl(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var v=s;if(typeof v=="function"&&(v=v(t),!Ua&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ua&&v.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=Xl.apply(void 0,v),N=Ir;c&&(N=Iu(Ue({trace:!Ua},typeof c=="object"&&c)));var T=new ku(w),k=T;Array.isArray(y)?k=Pr([w],y):typeof y=="function"&&(k=y(T));var O=N.apply(void 0,k);return La(b,u,O)}function Be(r,t){function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];if(t){var a=t.apply(void 0,o);if(!a)throw new Error("prepareAction did not return an object");return Ue(Ue({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:o[0]}}return e.toString=function(){return""+r},e.type=r,e.match=function(o){return o.type===r},e}function ac(r){var t={},e=[],o,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,n},addMatcher:function(a,s){return e.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return o=a,n}};return r(n),[t,e,o]}function Uu(r){return typeof r=="function"}function Bu(r,t,e,o){e===void 0&&(e=[]);var n=typeof t=="function"?ac(t):[t,e,o],a=n[0],s=n[1],l=n[2],c;if(Uu(r))c=function(){return Fa(r())};else{var d=Fa(r);c=function(){return d}}function u(h,y){h===void 0&&(h=c());var b=Pr([a[y.type]],s.filter(function(v){var w=v.matcher;return w(y)}).map(function(v){var w=v.reducer;return w}));return b.filter(function(v){return!!v}).length===0&&(b=[l]),b.reduce(function(v,w){if(w)if(Oe(v)){var N=v,T=w(N,y);return T===void 0?v:T}else{if(Jt(v))return ui(v,function(k){return w(k,y)});var T=w(v,y);if(T===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return T}return v},h)}return u.getInitialState=c,u}function Fu(r,t){return r+"/"+t}function sc(r){var t=r.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var e=typeof r.initialState=="function"?r.initialState:Fa(r.initialState),o=r.reducers||{},n=Object.keys(o),a={},s={},l={};n.forEach(function(u){var h=o[u],y=Fu(t,u),b,v;"reducer"in h?(b=h.reducer,v=h.prepare):b=h,a[u]=b,s[y]=b,l[u]=v?Be(y,v):Be(y)});function c(){var u=typeof r.extraReducers=="function"?ac(r.extraReducers):[r.extraReducers],h=u[0],y=h===void 0?{}:h,b=u[1],v=b===void 0?[]:b,w=u[2],N=w===void 0?void 0:w,T=Ue(Ue({},y),s);return Bu(e,function(k){for(var O in T)k.addCase(O,T[O]);for(var S=0,E=v;S<E.length;S++){var D=E[S];k.addMatcher(D.matcher,D.reducer)}N&&k.addDefaultCase(N)})}var d;return{name:t,reducer:function(u,h){return d||(d=c()),d(u,h)},actions:l,caseReducers:a,getInitialState:function(){return d||(d=c()),d.getInitialState()}}}var zu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Wu=function(r){r===void 0&&(r=21);for(var t="",e=r;e--;)t+=zu[Math.random()*64|0];return t},Hu=["name","message","stack","code"],Ba=function(){function r(t,e){this.payload=t,this.meta=e}return r}(),rc=function(){function r(t,e){this.payload=t,this.meta=e}return r}(),Vu=function(r){if(typeof r=="object"&&r!==null){for(var t={},e=0,o=Hu;e<o.length;e++){var n=o[e];typeof r[n]=="string"&&(t[n]=r[n])}return t}return{message:String(r)}},Ab=function(){function r(t,e,o){var n=Be(t+"/fulfilled",function(u,h,y,b){return{payload:u,meta:Da(Ue({},b||{}),{arg:y,requestId:h,requestStatus:"fulfilled"})}}),a=Be(t+"/pending",function(u,h,y){return{payload:void 0,meta:Da(Ue({},y||{}),{arg:h,requestId:u,requestStatus:"pending"})}}),s=Be(t+"/rejected",function(u,h,y,b,v){return{payload:b,error:(o&&o.serializeError||Vu)(u||"Rejected"),meta:Da(Ue({},v||{}),{arg:y,requestId:h,rejectedWithValue:!!b,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),l=!1,c=typeof AbortController<"u"?AbortController:function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u}();function d(u){return function(h,y,b){var v=o?.idGenerator?o.idGenerator(u):Wu(),w=new c,N,T=!1;function k(S){N=S,w.abort()}var O=function(){return Tu(this,null,function(){var S,E,D,z,At,Y,m;return Eu(this,function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),z=(S=o?.condition)==null?void 0:S.call(o,u,{getState:y,extra:b}),Ku(z)?[4,z]:[3,2];case 1:z=x.sent(),x.label=2;case 2:if(z===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return T=!0,At=new Promise(function(_,K){return w.signal.addEventListener("abort",function(){return K({name:"AbortError",message:N||"Aborted"})})}),h(a(v,u,(E=o?.getPendingMeta)==null?void 0:E.call(o,{requestId:v,arg:u},{getState:y,extra:b}))),[4,Promise.race([At,Promise.resolve(e(u,{dispatch:h,getState:y,extra:b,requestId:v,signal:w.signal,abort:k,rejectWithValue:function(_,K){return new Ba(_,K)},fulfillWithValue:function(_,K){return new rc(_,K)}})).then(function(_){if(_ instanceof Ba)throw _;return _ instanceof rc?n(_.payload,v,u,_.meta):n(_,v,u)})])];case 3:return D=x.sent(),[3,5];case 4:return Y=x.sent(),D=Y instanceof Ba?s(null,v,u,Y.payload,Y.meta):s(Y,v,u),[3,5];case 5:return m=o&&!o.dispatchConditionRejection&&s.match(D)&&D.meta.condition,m||h(D),[2,D]}})})}();return Object.assign(O,{abort:k,requestId:v,arg:u,unwrap:function(){return O.then(ju)}})}}return Object.assign(d,{pending:a,rejected:s,fulfilled:n,typePrefix:t})}return r.withTypes=function(){return r},r}();function ju(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function Ku(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var lc="listener",cc="completed",dc="cancelled",Rb="task-"+dc,_b="task-"+cc,Nb=lc+"-"+dc,Tb=lc+"-"+cc;var za="listenerMiddleware";var Ib=Be(za+"/add"),Pb=Be(za+"/removeAll"),$b=Be(za+"/remove");var oc,kb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(oc||(oc=Promise.resolve())).then(r).catch(function(t){return setTimeout(function(){throw t},0)})},Gu=function(r){return function(t){setTimeout(t,r)}},Lb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Gu(10);jl();window.ftReduxStores||(window.ftReduxStores={});var we=class r{static get(t){var e;let o=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,a=window.ftReduxStores[o];if(dr(a))return a;if(n==null)return;let s=sc({...n,reducers:(e=n.reducers)!==null&&e!==void 0?e:{}}),l=nc({reducer:(c,d)=>d.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof d.type=="string"&&d.type.startsWith("DEFAULT_VALUE_SETTER__")?{...c,...d.overwrites}:s.reducer(c,d)});return window.ftReduxStores[n.name]=new r(s,l)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new bo,this.actions=new Proxy(this.reduxSlice.actions,{get:(o,n,a)=>{let s=n,l=o[s];return l?(...c)=>{let d=l(...c);return this.reduxStore.dispatch(d),d}:c=>{this.setState({[s]:c})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function Zu(){var r;for(let t of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))dr(t)&&t.clear()}var Ha={};ot(Ha,{serializeRequest:()=>Yu});function qu(r){return`"${r}"`}function Yu(r,t){var e,o,n,a;let s=new URLSearchParams({"content-lang":(e=t.contentLocale)!==null&&e!==void 0?e:"all"});if(((o=t.query)===null||o===void 0?void 0:o.length)>0&&s.append("query",t.query),t.scope&&t.scope!=="DEFAULT"&&s.append("scope",t.scope.toLowerCase()),t.virtualField&&s.append("virtual-field",t.virtualField.toLowerCase()),t.periodFilter){let c=t.periodFilter.period,d=c?`_${c.from}_${c.to}`:"";s.append("period",t.periodFilter.periodType.toLowerCase()+d)}if(((n=t.sort)===null||n===void 0?void 0:n.length)>0&&t.sort[0].key==="ft:lastEdition"&&s.append("sort","last_update"),((a=t.filters)===null||a===void 0?void 0:a.length)>0){let c=t.filters.map(d=>{let u=d.values.map(h=>h.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*")).map(h=>encodeURIComponent(qu(h))).join("_");return`${d.key}~${u}`}).join("*");s.append("filters",c)}return new URL(`${r.replace(/\/+$/,"")}/search?${s.toString()}`).href}var Va={};ot(Va,{toFtFormComponent:()=>fr});var mi=Symbol("elementInternals");function fr(r,t){class e extends r{static get formAssociated(){return!0}get form(){return this[mi].form}constructor(...n){super(n),this[mi]=this.attachInternals(),this[mi].role=t}setFormValue(n){this[mi].setFormValue(n)}}return e}var ja,Ka,Ga,Za,Oo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ga=(Ka=(ja=window.safari)===null||ja===void 0?void 0:ja.pushNotification)===null||Ka===void 0?void 0:Ka.toString())!==null&&Ga!==void 0?Ga:"")==="[object SafariRemoteNotification]",Xu="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Za=window.ftGlobals)!==null&&Za!==void 0?Za:{lit:nn,litDecorators:sn,litRepeat:cn,litClassMap:dn,litStyleMap:pn,litUnsafeHTML:fn,wcUtils:{...gn,...mn,...yn,...bn,...xn,...Gn,...Yn,...sa,...Kn,...da,...Tl,...vn,...ha,...ma,...Pl,...ga,...Wa,...la,...Ha,...Va,isSafari:Oo,isTouchScreen:Xu}};var Zt;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Zt||(Zt={}));var Ju=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ya=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},qa=Symbol("registerInterval");function Qu(r){var t;class e extends r{constructor(){super(...arguments),this[t]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[qa]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[qa]):this.dispatchEvent(new Ya)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=qa,Ju([H()],e.prototype,"stateManager",void 0),e}var Fe=class extends Qu(Kt){};var pc=i.extend("--ft-ripple-color","",A.colorContent),F={color:pc,backgroundColor:i.extend("--ft-ripple-background-color","",pc),opacityContentOnSurfacePressed:i.external(A.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.external(A.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.external(A.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.external(A.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.create("--ft-ripple-border-radius","","SIZE","0px")},uc=i.extend("--ft-ripple-color","",A.colorPrimary),fc={color:uc,backgroundColor:i.extend("--ft-ripple-background-color","",uc)},hc=i.extend("--ft-ripple-color","",A.colorSecondary),mc={color:hc,backgroundColor:i.extend("--ft-ripple-background-color","",hc)},gc=P`
|
|
42
|
+
`;var Pl={};var ga={};ot(ga,{ParametrizedLabelResolver:()=>go});var go=class{constructor(t,e){this.defaultLabels=t,this.labels=e}resolve(t,...e){var o,n;t=this.resolvePluralKey(t,e);let a=(n=(o=this.labels[t])!==null&&o!==void 0?o:this.defaultLabels[t])!==null&&n!==void 0?n:"";return e.forEach((s,l)=>a=a.replace(new RegExp(`\\{${l}([^}]*)\\}`,"g"),(c,d)=>this.formatValue(s,d))),a}resolvePluralKey(t,e){for(let o of e)if(typeof o=="number"){let n=`${String(t)}[\\=${o}]`;if(n in this.labels||n in this.defaultLabels)return n}return t}formatValue(t,e){return t instanceof Date?this.formatDate(t,e):t??""}formatDate(t,e){let o=n=>e?.includes("date")?t.toLocaleDateString(n):e?.includes("time")?t.toLocaleTimeString(n):t.toLocaleString(n);try{return o(document.documentElement.lang)}catch{return o()}}};var Wa={};ot(Wa,{FtCommandQueue:()=>bo,FtLitElementRedux:()=>Kt,FtReduxStore:()=>we,clearAllStores:()=>qu,isFtReduxStore:()=>dr,redux:()=>ct,reduxEventListener:()=>yo,reduxReactive:()=>uu});var uu=()=>(r,t)=>{var e;let o=r.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(e=o.reduxReactiveProperties)===null||e===void 0||e.add(t)},ct=r=>{let t=r??{};return(e,o)=>{var n;let a={hasChanged:(l,c)=>!jt(l,c),attribute:!1,...t};g(a)(e,o);let s=e.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(n=t.selector)!==null&&n!==void 0?n:l=>l[o],store:t.store})}},yo=r=>(t,e)=>{let o=t.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(e,r)};var bo=class{constructor(){this.queue=[]}add(t,e=!1){e&&(this.queue=this.queue.filter(o=>o.type!==t.type)),this.queue.push(t)}consume(t){let e=this.queue.find(o=>o.type===t);return e&&(this.queue=this.queue.filter(o=>o!==e)),e}};function dr(r){var t;return(t=r?.isFtReduxStore)!==null&&t!==void 0?t:!1}var $l,kl,Ll,li=Symbol("internalReduxEventsUnsubscribers"),ke=Symbol("internalStoresUnsubscribers"),pr=Symbol("internalStores"),Kt=class extends W{constructor(){super(...arguments),this[$l]=new Map,this[kl]=new Map,this[Ll]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(e=>t.has(e))&&this.updateFromStores()}getUnnamedStore(){if(this[pr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[pr].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[pr].get(t)}addStore(t,e){var o;e=(o=e??(dr(t)?t.name:void 0))!==null&&o!==void 0?o:"default-store",this.unsubscribeFromStore(e),this.setupStore(e,t)}removeStore(t){let e=typeof t=="string"?t:t.name;this.unsubscribeFromStore(e),this[pr].delete(e)}setupStore(t,e){this[pr].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[pr].forEach((t,e)=>this.subscribeToStore(e,t)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((t,e)=>{let o=this.constructor.getPropertyOptions(e);if(!o?.attribute||!this.hasAttribute(typeof o?.attribute=="string"?o.attribute:e)){let n=this.getStore(t.store);n&&(t.store?this[ke].has(t.store):this[ke].size>0)&&(this[e]=t.selector(n.getState(),this))}})}subscribeToStore(t,e){var o;this[ke].set(t,e.subscribe(()=>this.updateFromStores())),dr(e)&&e.eventBus&&((o=this.reduxConstructor.reduxEventListeners)===null||o===void 0||o.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||e.name===n.store)){let s=l=>this[a](l);e.eventBus.addEventListener(n.eventName,s),this[li].push(()=>e.eventBus.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[ke].forEach((t,e)=>this.unsubscribeFromStore(e)),this[li].forEach(t=>t()),this[li]=[]}unsubscribeFromStore(t){this[ke].has(t)&&this[ke].get(t)(),this[ke].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};$l=ke,kl=pr,Ll=li;Kt.reduxProperties=new Map;Kt.reduxReactiveProperties=new Set;Kt.reduxEventListeners=new Map;function Gt(r){for(var t=arguments.length,e=Array(t>1?t-1:0),o=1;o<t;o++)e[o-1]=arguments[o];if(0)var n,a;throw Error("[Immer] minified error nr: "+r+(e.length?" "+e.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Oe(r){return!!r&&!!r[it]}function Jt(r){var t;return!!r&&(function(e){if(!e||typeof e!="object")return!1;var o=Object.getPrototypeOf(e);if(o===null)return!0;var n=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===xu}(r)||Array.isArray(r)||!!r[Wl]||!!(!((t=r.constructor)===null||t===void 0)&&t[Wl])||Ca(r)||Aa(r))}function ur(r,t,e){e===void 0&&(e=!1),Tr(r)===0?(e?Object.keys:Nr)(r).forEach(function(o){e&&typeof o=="symbol"||t(o,r[o],r)}):r.forEach(function(o,n){return t(n,o,r)})}function Tr(r){var t=r[it];return t?t.i>3?t.i-4:t.i:Array.isArray(r)?1:Ca(r)?2:Aa(r)?3:0}function _r(r,t){return Tr(r)===2?r.has(t):Object.prototype.hasOwnProperty.call(r,t)}function fu(r,t){return Tr(r)===2?r.get(t):r[t]}function Hl(r,t,e){var o=Tr(r);o===2?r.set(t,e):o===3?r.add(e):r[t]=e}function Vl(r,t){return r===t?r!==0||1/r==1/t:r!=r&&t!=t}function Ca(r){return bu&&r instanceof Map}function Aa(r){return vu&&r instanceof Set}function Le(r){return r.o||r.t}function Ra(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var t=Gl(r);delete t[it];for(var e=Nr(t),o=0;o<e.length;o++){var n=e[o],a=t[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[n]})}return Object.create(Object.getPrototypeOf(r),t)}function _a(r,t){return t===void 0&&(t=!1),Na(r)||Oe(r)||!Jt(r)||(Tr(r)>1&&(r.set=r.add=r.clear=r.delete=hu),Object.freeze(r),t&&ur(r,function(e,o){return _a(o,!0)},!0)),r}function hu(){Gt(2)}function Na(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function se(r){var t=Ea[r];return t||Gt(18,r),t}function mu(r,t){Ea[r]||(Ea[r]=t)}function Sa(){return xo}function ya(r,t){t&&(se("Patches"),r.u=[],r.s=[],r.v=t)}function ci(r){Oa(r),r.p.forEach(gu),r.p=null}function Oa(r){r===xo&&(xo=r.l)}function Ml(r){return xo={p:[],l:xo,h:r,m:!0,_:0}}function gu(r){var t=r[it];t.i===0||t.i===1?t.j():t.g=!0}function ba(r,t){t._=t.p.length;var e=t.p[0],o=r!==void 0&&r!==e;return t.h.O||se("ES5").S(t,r,o),o?(e[it].P&&(ci(t),Gt(4)),Jt(r)&&(r=di(t,r),t.l||pi(t,r)),t.u&&se("Patches").M(e[it].t,r,t.u,t.s)):r=di(t,e,[]),ci(t),t.u&&t.v(t.u,t.s),r!==Kl?r:void 0}function di(r,t,e){if(Na(t))return t;var o=t[it];if(!o)return ur(t,function(l,c){return Dl(r,o,t,l,c,e)},!0),t;if(o.A!==r)return t;if(!o.P)return pi(r,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=o.i===4||o.i===5?o.o=Ra(o.k):o.o,a=n,s=!1;o.i===3&&(a=new Set(n),n.clear(),s=!0),ur(a,function(l,c){return Dl(r,o,n,l,c,e,s)}),pi(r,n,!1),e&&r.u&&se("Patches").N(o,e,r.u,r.s)}return o.o}function Dl(r,t,e,o,n,a,s){if(Oe(n)){var l=di(r,n,a&&t&&t.i!==3&&!_r(t.R,o)?a.concat(o):void 0);if(Hl(e,o,l),!Oe(l))return;r.m=!1}else s&&e.add(n);if(Jt(n)&&!Na(n)){if(!r.h.D&&r._<1)return;di(r,n),t&&t.A.l||pi(r,n)}}function pi(r,t,e){e===void 0&&(e=!1),!r.l&&r.h.D&&r.m&&_a(t,e)}function va(r,t){var e=r[it];return(e?Le(e):r)[t]}function Ul(r,t){if(t in r)for(var e=Object.getPrototypeOf(r);e;){var o=Object.getOwnPropertyDescriptor(e,t);if(o)return o;e=Object.getPrototypeOf(e)}}function Me(r){r.P||(r.P=!0,r.l&&Me(r.l))}function xa(r){r.o||(r.o=Ra(r.t))}function wa(r,t,e){var o=Ca(t)?se("MapSet").F(t,e):Aa(t)?se("MapSet").T(t,e):r.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Sa(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},c=l,d=So;s&&(c=[l],d=vo);var u=Proxy.revocable(c,d),h=u.revoke,y=u.proxy;return l.k=y,l.j=h,y}(t,e):se("ES5").J(t,e);return(e?e.A:Sa()).p.push(o),o}function yu(r){return Oe(r)||Gt(22,r),function t(e){if(!Jt(e))return e;var o,n=e[it],a=Tr(e);if(n){if(!n.P&&(n.i<4||!se("ES5").K(n)))return n.t;n.I=!0,o=Bl(e,a),n.I=!1}else o=Bl(e,a);return ur(o,function(s,l){n&&fu(n.t,s)===l||Hl(o,s,t(l))}),a===3?new Set(o):o}(r)}function Bl(r,t){switch(t){case 2:return new Map(r);case 3:return Array.from(r)}return Ra(r)}function jl(){function r(s,l){var c=a[s];return c?c.enumerable=l:a[s]=c={configurable:!0,enumerable:l,get:function(){var d=this[it];return So.get(d,s)},set:function(d){var u=this[it];So.set(u,s,d)}},c}function t(s){for(var l=s.length-1;l>=0;l--){var c=s[l][it];if(!c.P)switch(c.i){case 5:o(c)&&Me(c);break;case 4:e(c)&&Me(c)}}}function e(s){for(var l=s.t,c=s.k,d=Nr(c),u=d.length-1;u>=0;u--){var h=d[u];if(h!==it){var y=l[h];if(y===void 0&&!_r(l,h))return!0;var b=c[h],v=b&&b[it];if(v?v.t!==y:!Vl(b,y))return!0}}var w=!!l[it];return d.length!==Nr(l).length+(w?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 d=0;d<l.length;d++)if(!l.hasOwnProperty(d))return!0;return!1}function n(s){s.g&&Gt(3,JSON.stringify(Le(s)))}var a={};mu("ES5",{J:function(s,l){var c=Array.isArray(s),d=function(h,y){if(h){for(var b=Array(y.length),v=0;v<y.length;v++)Object.defineProperty(b,""+v,r(v,!0));return b}var w=Gl(y);delete w[it];for(var N=Nr(w),T=0;T<N.length;T++){var k=N[T];w[k]=r(k,h||!!w[k].enumerable)}return Object.create(Object.getPrototypeOf(y),w)}(c,s),u={i:c?5:4,A:l?l.A:Sa(),P:!1,I:!1,R:{},l,t:s,k:d,o:null,g:!1,C:!1};return Object.defineProperty(d,it,{value:u,writable:!0}),d},S:function(s,l,c){c?Oe(l)&&l[it].A===s&&t(s.p):(s.u&&function d(u){if(u&&typeof u=="object"){var h=u[it];if(h){var y=h.t,b=h.k,v=h.R,w=h.i;if(w===4)ur(b,function(S){S!==it&&(y[S]!==void 0||_r(y,S)?v[S]||d(b[S]):(v[S]=!0,Me(h)))}),ur(y,function(S){b[S]!==void 0||_r(b,S)||(v[S]=!1,Me(h))});else if(w===5){if(o(h)&&(Me(h),v.length=!0),b.length<y.length)for(var N=b.length;N<y.length;N++)v[N]=!1;else for(var T=y.length;T<b.length;T++)v[T]=!0;for(var k=Math.min(b.length,y.length),O=0;O<k;O++)b.hasOwnProperty(O)||(v[O]=!0),v[O]===void 0&&d(b[O])}}}}(s.p[0]),t(s.p))},K:function(s){return s.i===4?e(s):o(s)}})}var Fl,xo,Ta=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",bu=typeof Map<"u",vu=typeof Set<"u",zl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Kl=Ta?Symbol.for("immer-nothing"):((Fl={})["immer-nothing"]=!0,Fl),Wl=Ta?Symbol.for("immer-draftable"):"__$immer_draftable",it=Ta?Symbol.for("immer-state"):"__$immer_state";var xu=""+Object.prototype.constructor,Nr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,Gl=Object.getOwnPropertyDescriptors||function(r){var t={};return Nr(r).forEach(function(e){t[e]=Object.getOwnPropertyDescriptor(r,e)}),t},Ea={},So={get:function(r,t){if(t===it)return r;var e=Le(r);if(!_r(e,t))return function(n,a,s){var l,c=Ul(a,s);return c?"value"in c?c.value:(l=c.get)===null||l===void 0?void 0:l.call(n.k):void 0}(r,e,t);var o=e[t];return r.I||!Jt(o)?o:o===va(r.t,t)?(xa(r),r.o[t]=wa(r.A.h,o,r)):o},has:function(r,t){return t in Le(r)},ownKeys:function(r){return Reflect.ownKeys(Le(r))},set:function(r,t,e){var o=Ul(Le(r),t);if(o?.set)return o.set.call(r.k,e),!0;if(!r.P){var n=va(Le(r),t),a=n?.[it];if(a&&a.t===e)return r.o[t]=e,r.R[t]=!1,!0;if(Vl(e,n)&&(e!==void 0||_r(r.t,t)))return!0;xa(r),Me(r)}return r.o[t]===e&&(e!==void 0||t in r.o)||Number.isNaN(e)&&Number.isNaN(r.o[t])||(r.o[t]=e,r.R[t]=!0),!0},deleteProperty:function(r,t){return va(r.t,t)!==void 0||t in r.t?(r.R[t]=!1,xa(r),Me(r)):delete r.R[t],r.o&&delete r.o[t],!0},getOwnPropertyDescriptor:function(r,t){var e=Le(r),o=Reflect.getOwnPropertyDescriptor(e,t);return o&&{writable:!0,configurable:r.i!==1||t!=="length",enumerable:o.enumerable,value:e[t]}},defineProperty:function(){Gt(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){Gt(12)}},vo={};ur(So,function(r,t){vo[r]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),vo.deleteProperty=function(r,t){return vo.set.call(this,r,t,void 0)},vo.set=function(r,t,e){return So.set.call(this,r[0],t,e,r[0])};var Su=function(){function r(e){var o=this;this.O=zl,this.D=!0,this.produce=function(n,a,s){if(typeof n=="function"&&typeof a!="function"){var l=a;a=n;var c=o;return function(w){var N=this;w===void 0&&(w=l);for(var T=arguments.length,k=Array(T>1?T-1:0),O=1;O<T;O++)k[O-1]=arguments[O];return c.produce(w,function(S){var E;return(E=a).call.apply(E,[N,S].concat(k))})}}var d;if(typeof a!="function"&&Gt(6),s!==void 0&&typeof s!="function"&&Gt(7),Jt(n)){var u=Ml(o),h=wa(o,n,void 0),y=!0;try{d=a(h),y=!1}finally{y?ci(u):Oa(u)}return typeof Promise<"u"&&d instanceof Promise?d.then(function(w){return ya(u,s),ba(w,u)},function(w){throw ci(u),w}):(ya(u,s),ba(d,u))}if(!n||typeof n!="object"){if((d=a(n))===void 0&&(d=n),d===Kl&&(d=void 0),o.D&&_a(d,!0),s){var b=[],v=[];se("Patches").M(n,d,b,v),s(b,v)}return d}Gt(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(d){for(var u=arguments.length,h=Array(u>1?u-1:0),y=1;y<u;y++)h[y-1]=arguments[y];return o.produceWithPatches(d,function(b){return n.apply(void 0,[b].concat(h))})};var s,l,c=o.produce(n,a,function(d,u){s=d,l=u});return typeof Promise<"u"&&c instanceof Promise?c.then(function(d){return[d,s,l]}):[c,s,l]},typeof e?.useProxies=="boolean"&&this.setUseProxies(e.useProxies),typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze)}var t=r.prototype;return t.createDraft=function(e){Jt(e)||Gt(8),Oe(e)&&(e=yu(e));var o=Ml(this),n=wa(this,e,void 0);return n[it].C=!0,Oa(o),n},t.finishDraft=function(e,o){var n=e&&e[it],a=n.A;return ya(a,o),ba(void 0,a)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!zl&&Gt(20),this.O=e},t.applyPatches=function(e,o){var n;for(n=o.length-1;n>=0;n--){var a=o[n];if(a.path.length===0&&a.op==="replace"){e=a.value;break}}n>-1&&(o=o.slice(n+1));var s=se("Patches").$;return Oe(e)?s(e,o):this.produce(e,function(l){return s(l,o)})},r}(),zt=new Su,Ou=zt.produce,ab=zt.produceWithPatches.bind(zt),sb=zt.setAutoFreeze.bind(zt),lb=zt.setUseProxies.bind(zt),cb=zt.applyPatches.bind(zt),db=zt.createDraft.bind(zt),pb=zt.finishDraft.bind(zt),ui=Ou;function De(r){"@babel/helpers - typeof";return De=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},De(r)}function Ia(r,t){if(De(r)!=="object"||r===null)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var o=e.call(r,t||"default");if(De(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function Pa(r){var t=Ia(r,"string");return De(t)==="symbol"?t:String(t)}function $a(r,t,e){return t=Pa(t),t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function Zl(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);t&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),e.push.apply(e,o)}return e}function fi(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?Zl(Object(e),!0).forEach(function(o){$a(r,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):Zl(Object(e)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(e,o))})}return r}function Rt(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 ql=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ka=function(){return Math.random().toString(36).substring(7).split("").join(".")},hi={INIT:"@@redux/INIT"+ka(),REPLACE:"@@redux/REPLACE"+ka(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ka()}};function wu(r){if(typeof r!="object"||r===null)return!1;for(var t=r;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(r)===t}function La(r,t,e){var o;if(typeof t=="function"&&typeof e=="function"||typeof e=="function"&&typeof arguments[3]=="function")throw new Error(Rt(0));if(typeof t=="function"&&typeof e>"u"&&(e=t,t=void 0),typeof e<"u"){if(typeof e!="function")throw new Error(Rt(1));return e(La)(r,t)}if(typeof r!="function")throw new Error(Rt(2));var n=r,a=t,s=[],l=s,c=!1;function d(){l===s&&(l=s.slice())}function u(){if(c)throw new Error(Rt(3));return a}function h(w){if(typeof w!="function")throw new Error(Rt(4));if(c)throw new Error(Rt(5));var N=!0;return d(),l.push(w),function(){if(N){if(c)throw new Error(Rt(6));N=!1,d();var k=l.indexOf(w);l.splice(k,1),s=null}}}function y(w){if(!wu(w))throw new Error(Rt(7));if(typeof w.type>"u")throw new Error(Rt(8));if(c)throw new Error(Rt(9));try{c=!0,a=n(a,w)}finally{c=!1}for(var N=s=l,T=0;T<N.length;T++){var k=N[T];k()}return w}function b(w){if(typeof w!="function")throw new Error(Rt(10));n=w,y({type:hi.REPLACE})}function v(){var w,N=h;return w={subscribe:function(k){if(typeof k!="object"||k===null)throw new Error(Rt(11));function O(){k.next&&k.next(u())}O();var S=N(O);return{unsubscribe:S}}},w[ql]=function(){return this},w}return y({type:hi.INIT}),o={dispatch:y,subscribe:h,getState:u,replaceReducer:b},o[ql]=v,o}function Eu(r){Object.keys(r).forEach(function(t){var e=r[t],o=e(void 0,{type:hi.INIT});if(typeof o>"u")throw new Error(Rt(12));if(typeof e(void 0,{type:hi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Rt(13))})}function Yl(r){for(var t=Object.keys(r),e={},o=0;o<t.length;o++){var n=t[o];typeof r[n]=="function"&&(e[n]=r[n])}var a=Object.keys(e),s,l;try{Eu(e)}catch(c){l=c}return function(d,u){if(d===void 0&&(d={}),l)throw l;if(0)var h;for(var y=!1,b={},v=0;v<a.length;v++){var w=a[v],N=e[w],T=d[w],k=N(T,u);if(typeof k>"u"){var O=u&&u.type;throw new Error(Rt(14))}b[w]=k,y=y||k!==T}return y=y||a.length!==Object.keys(d).length,y?b:d}}function Ir(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return t.length===0?function(o){return o}:t.length===1?t[0]:t.reduce(function(o,n){return function(){return o(n.apply(void 0,arguments))}})}function Xl(){for(var r=arguments.length,t=new Array(r),e=0;e<r;e++)t[e]=arguments[e];return function(o){return function(){var n=o.apply(void 0,arguments),a=function(){throw new Error(Rt(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=t.map(function(c){return c(s)});return a=Ir.apply(void 0,l)(n.dispatch),fi(fi({},n),{},{dispatch:a})}}}function Jl(r){var t=function(o){var n=o.dispatch,a=o.getState;return function(s){return function(l){return typeof l=="function"?l(n,a,r):s(l)}}};return t}var Ql=Jl();Ql.withExtraArgument=Jl;var Ma=Ql;var ic=function(){var r=function(t,e){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,n){o.__proto__=n}||function(o,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(o[a]=n[a])},r(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(t,e);function o(){this.constructor=t}t.prototype=e===null?Object.create(e):(o.prototype=e.prototype,new o)}}(),Cu=function(r,t){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,n,a,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(d){return function(u){return c([d,u])}}function c(d){if(o)throw new TypeError("Generator is already executing.");for(;e;)try{if(o=1,n&&(a=d[0]&2?n.return:d[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,d[1])).done)return a;switch(n=0,a&&(d=[d[0]&2,a.value]),d[0]){case 0:case 1:a=d;break;case 4:return e.label++,{value:d[1],done:!1};case 5:e.label++,n=d[1],d=[0];continue;case 7:d=e.ops.pop(),e.trys.pop();continue;default:if(a=e.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){e=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){e.label=d[1];break}if(d[0]===6&&e.label<a[1]){e.label=a[1],a=d;break}if(a&&e.label<a[2]){e.label=a[2],e.ops.push(d);break}a[2]&&e.ops.pop(),e.trys.pop();continue}d=t.call(r,e)}catch(u){d=[6,u],n=0}finally{o=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},Pr=function(r,t){for(var e=0,o=t.length,n=r.length;e<o;e++,n++)r[n]=t[e];return r},Au=Object.defineProperty,Ru=Object.defineProperties,_u=Object.getOwnPropertyDescriptors,tc=Object.getOwnPropertySymbols,Nu=Object.prototype.hasOwnProperty,Tu=Object.prototype.propertyIsEnumerable,ec=function(r,t,e){return t in r?Au(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e},Ue=function(r,t){for(var e in t||(t={}))Nu.call(t,e)&&ec(r,e,t[e]);if(tc)for(var o=0,n=tc(t);o<n.length;o++){var e=n[o];Tu.call(t,e)&&ec(r,e,t[e])}return r},Da=function(r,t){return Ru(r,_u(t))},Iu=function(r,t,e){return new Promise(function(o,n){var a=function(c){try{l(e.next(c))}catch(d){n(d)}},s=function(c){try{l(e.throw(c))}catch(d){n(d)}},l=function(c){return c.done?o(c.value):Promise.resolve(c.value).then(a,s)};l((e=e.apply(r,t)).next())})};var Pu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ir:Ir.apply(null,arguments)},Nb=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function $u(r){if(typeof r!="object"||r===null)return!1;var t=Object.getPrototypeOf(r);if(t===null)return!0;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return t===e}var ku=function(r){ic(t,r);function t(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var n=r.apply(this,e)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return r.prototype.concat.apply(this,e)},t.prototype.prepend=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return e.length===1&&Array.isArray(e[0])?new(t.bind.apply(t,Pr([void 0],e[0].concat(this)))):new(t.bind.apply(t,Pr([void 0],e.concat(this))))},t}(Array),Lu=function(r){ic(t,r);function t(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];var n=r.apply(this,e)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return r.prototype.concat.apply(this,e)},t.prototype.prepend=function(){for(var e=[],o=0;o<arguments.length;o++)e[o]=arguments[o];return e.length===1&&Array.isArray(e[0])?new(t.bind.apply(t,Pr([void 0],e[0].concat(this)))):new(t.bind.apply(t,Pr([void 0],e.concat(this))))},t}(Array);function Fa(r){return Jt(r)?ui(r,function(){}):r}function Mu(r){return typeof r=="boolean"}function Du(){return function(t){return Uu(t)}}function Uu(r){r===void 0&&(r={});var t=r.thunk,e=t===void 0?!0:t,o=r.immutableCheck,n=o===void 0?!0:o,a=r.serializableCheck,s=a===void 0?!0:a,l=new ku;if(e&&(Mu(e)?l.push(Ma):l.push(Ma.withExtraArgument(e.extraArgument))),0){if(n)var c;if(s)var d}return l}var Ua=!0;function nc(r){var t=Du(),e=r||{},o=e.reducer,n=o===void 0?void 0:o,a=e.middleware,s=a===void 0?t():a,l=e.devTools,c=l===void 0?!0:l,d=e.preloadedState,u=d===void 0?void 0:d,h=e.enhancers,y=h===void 0?void 0:h,b;if(typeof n=="function")b=n;else if($u(n))b=Yl(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var v=s;if(typeof v=="function"&&(v=v(t),!Ua&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ua&&v.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=Xl.apply(void 0,v),N=Ir;c&&(N=Pu(Ue({trace:!Ua},typeof c=="object"&&c)));var T=new Lu(w),k=T;Array.isArray(y)?k=Pr([w],y):typeof y=="function"&&(k=y(T));var O=N.apply(void 0,k);return La(b,u,O)}function Be(r,t){function e(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];if(t){var a=t.apply(void 0,o);if(!a)throw new Error("prepareAction did not return an object");return Ue(Ue({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:o[0]}}return e.toString=function(){return""+r},e.type=r,e.match=function(o){return o.type===r},e}function ac(r){var t={},e=[],o,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in t)throw new Error("addCase cannot be called with two reducers for the same action type");return t[l]=s,n},addMatcher:function(a,s){return e.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return o=a,n}};return r(n),[t,e,o]}function Bu(r){return typeof r=="function"}function Fu(r,t,e,o){e===void 0&&(e=[]);var n=typeof t=="function"?ac(t):[t,e,o],a=n[0],s=n[1],l=n[2],c;if(Bu(r))c=function(){return Fa(r())};else{var d=Fa(r);c=function(){return d}}function u(h,y){h===void 0&&(h=c());var b=Pr([a[y.type]],s.filter(function(v){var w=v.matcher;return w(y)}).map(function(v){var w=v.reducer;return w}));return b.filter(function(v){return!!v}).length===0&&(b=[l]),b.reduce(function(v,w){if(w)if(Oe(v)){var N=v,T=w(N,y);return T===void 0?v:T}else{if(Jt(v))return ui(v,function(k){return w(k,y)});var T=w(v,y);if(T===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return T}return v},h)}return u.getInitialState=c,u}function zu(r,t){return r+"/"+t}function sc(r){var t=r.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var e=typeof r.initialState=="function"?r.initialState:Fa(r.initialState),o=r.reducers||{},n=Object.keys(o),a={},s={},l={};n.forEach(function(u){var h=o[u],y=zu(t,u),b,v;"reducer"in h?(b=h.reducer,v=h.prepare):b=h,a[u]=b,s[y]=b,l[u]=v?Be(y,v):Be(y)});function c(){var u=typeof r.extraReducers=="function"?ac(r.extraReducers):[r.extraReducers],h=u[0],y=h===void 0?{}:h,b=u[1],v=b===void 0?[]:b,w=u[2],N=w===void 0?void 0:w,T=Ue(Ue({},y),s);return Fu(e,function(k){for(var O in T)k.addCase(O,T[O]);for(var S=0,E=v;S<E.length;S++){var D=E[S];k.addMatcher(D.matcher,D.reducer)}N&&k.addDefaultCase(N)})}var d;return{name:t,reducer:function(u,h){return d||(d=c()),d(u,h)},actions:l,caseReducers:a,getInitialState:function(){return d||(d=c()),d.getInitialState()}}}var Wu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Hu=function(r){r===void 0&&(r=21);for(var t="",e=r;e--;)t+=Wu[Math.random()*64|0];return t},Vu=["name","message","stack","code"],Ba=function(){function r(t,e){this.payload=t,this.meta=e}return r}(),rc=function(){function r(t,e){this.payload=t,this.meta=e}return r}(),ju=function(r){if(typeof r=="object"&&r!==null){for(var t={},e=0,o=Vu;e<o.length;e++){var n=o[e];typeof r[n]=="string"&&(t[n]=r[n])}return t}return{message:String(r)}},$b=function(){function r(t,e,o){var n=Be(t+"/fulfilled",function(u,h,y,b){return{payload:u,meta:Da(Ue({},b||{}),{arg:y,requestId:h,requestStatus:"fulfilled"})}}),a=Be(t+"/pending",function(u,h,y){return{payload:void 0,meta:Da(Ue({},y||{}),{arg:h,requestId:u,requestStatus:"pending"})}}),s=Be(t+"/rejected",function(u,h,y,b,v){return{payload:b,error:(o&&o.serializeError||ju)(u||"Rejected"),meta:Da(Ue({},v||{}),{arg:y,requestId:h,rejectedWithValue:!!b,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),l=!1,c=typeof AbortController<"u"?AbortController:function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u}();function d(u){return function(h,y,b){var v=o?.idGenerator?o.idGenerator(u):Hu(),w=new c,N,T=!1;function k(S){N=S,w.abort()}var O=function(){return Iu(this,null,function(){var S,E,D,z,At,Y,m;return Cu(this,function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),z=(S=o?.condition)==null?void 0:S.call(o,u,{getState:y,extra:b}),Gu(z)?[4,z]:[3,2];case 1:z=x.sent(),x.label=2;case 2:if(z===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return T=!0,At=new Promise(function(_,K){return w.signal.addEventListener("abort",function(){return K({name:"AbortError",message:N||"Aborted"})})}),h(a(v,u,(E=o?.getPendingMeta)==null?void 0:E.call(o,{requestId:v,arg:u},{getState:y,extra:b}))),[4,Promise.race([At,Promise.resolve(e(u,{dispatch:h,getState:y,extra:b,requestId:v,signal:w.signal,abort:k,rejectWithValue:function(_,K){return new Ba(_,K)},fulfillWithValue:function(_,K){return new rc(_,K)}})).then(function(_){if(_ instanceof Ba)throw _;return _ instanceof rc?n(_.payload,v,u,_.meta):n(_,v,u)})])];case 3:return D=x.sent(),[3,5];case 4:return Y=x.sent(),D=Y instanceof Ba?s(null,v,u,Y.payload,Y.meta):s(Y,v,u),[3,5];case 5:return m=o&&!o.dispatchConditionRejection&&s.match(D)&&D.meta.condition,m||h(D),[2,D]}})})}();return Object.assign(O,{abort:k,requestId:v,arg:u,unwrap:function(){return O.then(Ku)}})}}return Object.assign(d,{pending:a,rejected:s,fulfilled:n,typePrefix:t})}return r.withTypes=function(){return r},r}();function Ku(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function Gu(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var lc="listener",cc="completed",dc="cancelled",kb="task-"+dc,Lb="task-"+cc,Mb=lc+"-"+dc,Db=lc+"-"+cc;var za="listenerMiddleware";var Ub=Be(za+"/add"),Bb=Be(za+"/removeAll"),Fb=Be(za+"/remove");var oc,zb=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(oc||(oc=Promise.resolve())).then(r).catch(function(t){return setTimeout(function(){throw t},0)})},Zu=function(r){return function(t){setTimeout(t,r)}},Wb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Zu(10);jl();window.ftReduxStores||(window.ftReduxStores={});var we=class r{static get(t){var e;let o=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,a=window.ftReduxStores[o];if(dr(a))return a;if(n==null)return;let s=sc({...n,reducers:(e=n.reducers)!==null&&e!==void 0?e:{}}),l=nc({reducer:(c,d)=>d.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof d.type=="string"&&d.type.startsWith("DEFAULT_VALUE_SETTER__")?{...c,...d.overwrites}:s.reducer(c,d)});return window.ftReduxStores[n.name]=new r(s,l)}constructor(t,e){this.reduxSlice=t,this.reduxStore=e,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new bo,this.actions=new Proxy(this.reduxSlice.actions,{get:(o,n,a)=>{let s=n,l=o[s];return l?(...c)=>{let d=l(...c);return this.reduxStore.dispatch(d),d}:c=>{this.setState({[s]:c})}}})}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE"})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function qu(){var r;for(let t of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))dr(t)&&t.clear()}var Ha={};ot(Ha,{serializeRequest:()=>Xu});function Yu(r){return`"${r}"`}function Xu(r,t){var e,o,n,a;let s=new URLSearchParams({"content-lang":(e=t.contentLocale)!==null&&e!==void 0?e:"all"});if(((o=t.query)===null||o===void 0?void 0:o.length)>0&&s.append("query",t.query),t.scope&&t.scope!=="DEFAULT"&&s.append("scope",t.scope.toLowerCase()),t.virtualField&&s.append("virtual-field",t.virtualField.toLowerCase()),t.periodFilter){let c=t.periodFilter.period,d=c?`_${c.from}_${c.to}`:"";s.append("period",t.periodFilter.periodType.toLowerCase()+d)}if(((n=t.sort)===null||n===void 0?void 0:n.length)>0&&t.sort[0].key==="ft:lastEdition"&&s.append("sort","last_update"),((a=t.filters)===null||a===void 0?void 0:a.length)>0){let c=t.filters.map(d=>{let u=d.values.map(h=>h.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*")).map(h=>encodeURIComponent(Yu(h))).join("_");return`${d.key}~${u}`}).join("*");s.append("filters",c)}return new URL(`${r.replace(/\/+$/,"")}/search?${s.toString()}`).href}var Va={};ot(Va,{toFtFormComponent:()=>fr});var mi=Symbol("elementInternals");function fr(r,t){class e extends r{static get formAssociated(){return!0}get form(){return this[mi].form}constructor(...n){super(n),this[mi]=this.attachInternals(),this[mi].role=t}setFormValue(n){this[mi].setFormValue(n)}}return e}var ja,Ka,Ga,Za,Oo=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ga=(Ka=(ja=window.safari)===null||ja===void 0?void 0:ja.pushNotification)===null||Ka===void 0?void 0:Ka.toString())!==null&&Ga!==void 0?Ga:"")==="[object SafariRemoteNotification]",Ju="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Za=window.ftGlobals)!==null&&Za!==void 0?Za:{lit:nn,litDecorators:sn,litRepeat:cn,litClassMap:dn,litStyleMap:pn,litUnsafeHTML:fn,wcUtils:{...gn,...mn,...yn,...bn,...xn,...Gn,...Yn,...sa,...Kn,...da,...Tl,...vn,...ha,...ma,...Pl,...ga,...Wa,...la,...Ha,...Va,isSafari:Oo,isTouchScreen:Ju}};var Zt;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Zt||(Zt={}));var Qu=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},Ya=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},qa=Symbol("registerInterval");function tf(r){var t;class e extends r{constructor(){super(...arguments),this[t]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[qa]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[qa]):this.dispatchEvent(new Ya)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=qa,Qu([H()],e.prototype,"stateManager",void 0),e}var Fe=class extends tf(Kt){};var pc=i.extend("--ft-ripple-color","",A.colorContent),F={color:pc,backgroundColor:i.extend("--ft-ripple-background-color","",pc),opacityContentOnSurfacePressed:i.external(A.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.external(A.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.external(A.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.external(A.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.create("--ft-ripple-border-radius","","SIZE","0px")},uc=i.extend("--ft-ripple-color","",A.colorPrimary),fc={color:uc,backgroundColor:i.extend("--ft-ripple-background-color","",uc)},hc=i.extend("--ft-ripple-color","",A.colorSecondary),mc={color:hc,backgroundColor:i.extend("--ft-ripple-background-color","",hc)},gc=P`
|
|
43
43
|
:host {
|
|
44
44
|
display: contents;
|
|
45
45
|
}
|
|
@@ -564,7 +564,7 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
564
564
|
[part="buttons-container"] {
|
|
565
565
|
align-self: flex-end;
|
|
566
566
|
}
|
|
567
|
-
`;var Mc=Symbol.for(""),
|
|
567
|
+
`;var Mc=Symbol.for(""),ef=r=>{if(r?.r===Mc)return r?._$litStatic$},Ja=r=>({_$litStatic$:r,r:Mc});var Lc=new Map,Dc=r=>(t,...e)=>{let o=e.length,n,a,s=[],l=[],c,d=0,u=!1;for(;d<o;){for(c=t[d];d<o&&(a=e[d],(n=ef(a))!==void 0);)c+=n+t[++d],u=!0;d!==o&&l.push(a),s.push(c),d++}if(d===o&&s.push(t[o]),u){let h=s.join("$$lit$$");(t=Lc.get(h))===void 0&&(s.raw=s,Lc.set(h,t=s)),e=l}return r(t,...e)},Qa=Dc(_s),Px=Dc(Ns);var hr;(function(r){r.title="title",r.title_dense="title-dense",r.subtitle1="subtitle1",r.subtitle2="subtitle2",r.body1="body1",r.body2="body2",r.caption="caption",r.breadcrumb="breadcrumb",r.overline="overline",r.button="button",r.display="display",r.title1="title-1",r.title2="title-2",r.title3="title-3",r.body1regular="body-1-regular",r.body1medium="body-1-medium",r.body1semibold="body-1-semibold",r.body2regular="body-2-regular",r.body2medium="body-2-medium",r.body2semibold="body-2-semibold",r.label1medium="label-1-medium",r.label1semibold="label-1-semibold",r.label1bold="label-1-bold",r.label2medium="label-2-medium",r.label2semibold="label-2-semibold",r.label2bold="label-2-bold",r.caption1medium="caption-1-medium",r.caption1semibold="caption-1-semibold",r.caption1bold="caption-1-bold",r.caption2medium="caption-2-medium",r.caption2semibold="caption-2-semibold",r.caption2bold="caption-2-bold"})(hr||(hr={}));var Uc=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},ht=class extends W{constructor(){super(...arguments),this.variant=hr.body1}render(){return this.element?Qa`
|
|
568
568
|
<${Ja(this.element)}
|
|
569
569
|
part="text"
|
|
570
570
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -630,7 +630,7 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
630
630
|
</div>
|
|
631
631
|
</div>
|
|
632
632
|
</div>
|
|
633
|
-
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(e=>t.has(e))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(e=>e.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",fo(this.slottedElement,this.tooltip,this.position).then(({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",t=>{t.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}};nt.elementDefinitions={"ft-typography":ht};nt.styles=Bc;Dt([g()],nt.prototype,"text",void 0);Dt([g({type:Boolean})],nt.prototype,"manual",void 0);Dt([g({type:Boolean})],nt.prototype,"inline",void 0);Dt([g({type:Number})],nt.prototype,"delay",void 0);Dt([g()],nt.prototype,"position",void 0);Dt([oo()],nt.prototype,"slotNodes",void 0);Dt([G(".ft-tooltip--container")],nt.prototype,"container",void 0);Dt([G(".ft-tooltip")],nt.prototype,"tooltip",void 0);Dt([G(".ft-tooltip--content")],nt.prototype,"tooltipContent",void 0);Dt([H()],nt.prototype,"visible",void 0);Dt([ye({passive:!0})],nt.prototype,"onTouch",null);Dt([ye({passive:!0})],nt.prototype,"onHover",null);Dt([ye({passive:!0})],nt.prototype,"onOut",null);Dt([ye({passive:!0})],nt.prototype,"onClick",null);V("ft-tooltip")(nt);var mr;(function(r){r.THUMBS_DOWN="",r.THUMBS_DOWN_PLAIN="",r.THUMBS_UP="",r.THUMBS_UP_PLAIN="",r.STAR="",r.STAR_PLAIN="",r.DESKTOP="",r.LIFE_RING="",r.GLOBE="",r.PIGGY_BANK="",r.TABLET_LANDSCAPE="",r.TABLET_PORTRAIT="",r.MOBILE_LANDSCAPE="",r.MOBILE_PORTRAIT="",r.ARROW_RIGHT_TO_LINE="",r.THIN_ARROW_UP="",r.CONTEXTUAL="",r.CHART_SIMPLE="",r.BARS_PROGRESS="",r.LINE_CHART="",r.STACKED_CHART="",r.CHART_BAR_NORMALIZED="",r.BOOK_OPEN_GEAR="",r.BOOK_OPEN_GEAR_SLASH="",r.DIAGRAM_SUNBURST="",r.DIAGRAM_SANKEY="",r.UNSTRUCTURED_DOC="",r.RESET="",r.THIN_ARROW_LEFT="",r.THIN_ARROW_RIGHT="",r.MY_COLLECTIONS="",r.OFFLINE_SETTINGS="",r.MY_LIBRARY="",r.RATE_PLAIN="",r.RATE="",r.FEEDBACK_PLAIN="",r.PAUSE="",r.PLAY="",r.RELATIVES_PLAIN="",r.RELATIVES="",r.SHORTCUT_MENU="",r.PRINT="",r.DEFAULT_ROLES="",r.ACCOUNT_SETTINGS="",r.ONLINE="",r.OFFLINE="",r.UPLOAD="",r.BOOK_PLAIN="",r.SYNC="",r.SHARED_PBK="",r.COLLECTIONS="",r.SEARCH_IN_PUBLICATION="",r.BOOKS="",r.LOCKER="",r.ARROW_DOWN="",r.ARROW_LEFT="",r.ARROW_RIGHT="",r.ARROW_UP="",r.SAVE="",r.MAILS_AND_NOTIFICATIONS="",r.DOT="",r.MINUS="",r.PLUS="",r.FILTERS="",r.STRIPE_ARROW_RIGHT="",r.STRIPE_ARROW_LEFT="",r.ATTACHMENTS="",r.ADD_BOOKMARK="",r.BOOKMARK="",r.EXPORT="",r.MENU="",r.TAG="",r.TAG_PLAIN="",r.COPY_TO_CLIPBOARD="",r.COLUMNS="",r.ARTICLE="",r.CLOSE="",r.OCTAGON_XMARK="",r.CLOSE_PLAIN="",r.CHECK_PLAIN="",r.LOGOUT="",r.SIGN_IN="",r.THIN_ARROW="",r.TRIANGLE_BOTTOM="",r.TRIANGLE_LEFT="",r.TRIANGLE_RIGHT="",r.TRIANGLE_TOP="",r.FACET_HAS_DESCENDANT="",r.MINUS_PLAIN="",r.PLUS_PLAIN="",r.INFO="",r.ICON_EXPAND="",r.ICON_COLLAPSE="",r.ADD_TO_PBK="",r.ALERT="",r.ADD_ALERT="",r.BACK_TO_SEARCH="",r.DOWNLOAD="",r.EDIT="",r.FEEDBACK="",r.MODIFY_PBK="",r.SCHEDULED="",r.SEARCH="",r.SHARE="󨃱",r.TOC="",r.WRITE_UGC="",r.TRASH="",r.EXTLINK="",r.EXTLINK_LIGHT="",r.CALENDAR="",r.BOOK="",r.DOWNLOAD_PLAIN="",r.CHECK="",r.TOPICS="",r.EYE="",r.EYE_SLASH="",r.DISC="",r.CIRCLE="",r.SHARED="",r.SORT_UNSORTED="",r.SORT_UP="",r.SORT_DOWN="",r.WORKING="",r.ZOOM_OUT="",r.ZOOM_IN="",r.ZOOM_REALSIZE="",r.ZOOM_FULLSCREEN="",r.ADMIN_RESTRICTED="",r.ADMIN_THEME="",r.WARNING="",r.CONTEXT="",r.SEARCH_HOME="",r.STEPS="",r.HOME="",r.TRANSLATE="",r.USER="",r.ADMIN="",r.ANALYTICS="",r.ADMIN_KHUB="",r.ADMIN_USERS="",r.ADMIN_INTEGRATION="",r.ADMIN_PORTAL="",r.COMMENT_QUESTION="",r.COMMENT_QUESTION_PLAIN="",r.MESSAGE_BOT="",r.PIP="",r.PIP_WIDE="",r.EXPAND_WIDE="",r.X_MARK="",r.CLONE="",r.CLONE_LINK_SIMPLE="",r.CONSUMER="",r.HOURGLASS_HALF="",r.CLOCK_THREE="",r.CALENDAR_DAY="",r.COMPUTER_MOUSE_MAGNIFYING_GLASS="",r.WAND_MAGIC_SPARKLES="",r.PAPER_PLANE=""})(mr||(mr={}));var R;(function(r){r.UNKNOWN="",r.ABW="",r.AUDIO="",r.AVI="",r.CHM="",r.CODE="",r.CSV="",r.DITA="",r.EPUB="",r.EXCEL="",r.FLAC="",r.GIF="",r.GZIP="",r.HTML="",r.IMAGE="",r.JPEG="",r.JSON="",r.M4A="",r.MOV="",r.MP3="",r.MP4="",r.OGG="",r.PDF="",r.PNG="",r.POWERPOINT="",r.RAR="",r.STP="",r.TEXT="",r.VIDEO="",r.WAV="",r.WMA="",r.WORD="",r.XML="",r.YAML="",r.ZIP=""})(R||(R={}));var g0=new Map([...["abw"].map(r=>[r,R.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(r=>[r,R.AUDIO]),...["avi"].map(r=>[r,R.AVI]),...["chm","xhs"].map(r=>[r,R.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(r=>[r,R.CODE]),...["csv"].map(r=>[r,R.CSV]),...["dita","ditamap","ditaval"].map(r=>[r,R.DITA]),...["epub"].map(r=>[r,R.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(r=>[r,R.EXCEL]),...["flac"].map(r=>[r,R.FLAC]),...["gif"].map(r=>[r,R.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(r=>[r,R.GZIP]),...["html","htm","xhtml"].map(r=>[r,R.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(r=>[r,R.IMAGE]),...["jpeg","jpg","jpe"].map(r=>[r,R.JPEG]),...["json"].map(r=>[r,R.JSON]),...["m4a","m4p"].map(r=>[r,R.M4A]),...["mov","qt"].map(r=>[r,R.MOV]),...["mp3"].map(r=>[r,R.MP3]),...["mp4","m4v"].map(r=>[r,R.MP4]),...["ogg","oga"].map(r=>[r,R.OGG]),...["pdf","ps"].map(r=>[r,R.PDF]),...["png"].map(r=>[r,R.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(r=>[r,R.POWERPOINT]),...["rar"].map(r=>[r,R.RAR]),...["stp"].map(r=>[r,R.STP]),...["txt","rtf","md","mdown"].map(r=>[r,R.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(r=>[r,R.VIDEO]),...["wav"].map(r=>[r,R.WAV]),...["wma"].map(r=>[r,R.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(r=>[r,R.WORD]),...["xml","xsl","rdf"].map(r=>[r,R.XML]),...["yaml","yml","x-yaml"].map(r=>[r,R.YAML]),...["zip"].map(r=>[r,R.ZIP])]);var y0={[R.ABW]:"#91ABC6",[R.AUDIO]:"#1795E3",[R.AVI]:"#E63324",[R.CHM]:"#71C3EB",[R.CODE]:"#71C3EB",[R.CSV]:"#1F7345",[R.DITA]:"#71C3EB",[R.EPUB]:"#85B926",[R.EXCEL]:"#1F7345",[R.FLAC]:"#1795E3",[R.GIF]:"#59B031",[R.GZIP]:"#F8AB36",[R.HTML]:"#71C3EB",[R.IMAGE]:"#59B031",[R.JPEG]:"#59B031",[R.JSON]:"#71C3EB",[R.M4A]:"#1795E3",[R.MOV]:"#E63324",[R.MP3]:"#1795E3",[R.MP4]:"#E63324",[R.OGG]:"#1795E3",[R.PDF]:"#E44948",[R.PNG]:"#59B031",[R.POWERPOINT]:"#B54A2B",[R.RAR]:"#F8AB36",[R.STP]:"#3764B1",[R.TEXT]:"#3162AB",[R.UNKNOWN]:"#999999",[R.VIDEO]:"#E63324",[R.WAV]:"#1795E3",[R.WMA]:"#1795E3",[R.WORD]:"#3162AB",[R.XML]:"#71C3EB",[R.YAML]:"#71C3EB",[R.ZIP]:"#F8AB36"};var Ut;(function(r){r.fluid_topics="fluid-topics",r.file_format="file-format",r.material="material"})(Ut||(Ut={}));var yi=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},gt=class extends W{constructor(){super(...arguments),this.resolvedIcon=B}render(){let t=this.variant&&Object.values(Ut).includes(this.variant)?this.variant:Ut.fluid_topics,e=t!==Ut.material||!!this.value;return $`
|
|
633
|
+
`}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(e=>t.has(e))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(e=>e.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",fo(this.slottedElement,this.tooltip,this.position).then(({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout(()=>window.addEventListener("touchstart",t=>{t.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}};nt.elementDefinitions={"ft-typography":ht};nt.styles=Bc;Dt([g()],nt.prototype,"text",void 0);Dt([g({type:Boolean})],nt.prototype,"manual",void 0);Dt([g({type:Boolean})],nt.prototype,"inline",void 0);Dt([g({type:Number})],nt.prototype,"delay",void 0);Dt([g()],nt.prototype,"position",void 0);Dt([oo()],nt.prototype,"slotNodes",void 0);Dt([G(".ft-tooltip--container")],nt.prototype,"container",void 0);Dt([G(".ft-tooltip")],nt.prototype,"tooltip",void 0);Dt([G(".ft-tooltip--content")],nt.prototype,"tooltipContent",void 0);Dt([H()],nt.prototype,"visible",void 0);Dt([ye({passive:!0})],nt.prototype,"onTouch",null);Dt([ye({passive:!0})],nt.prototype,"onHover",null);Dt([ye({passive:!0})],nt.prototype,"onOut",null);Dt([ye({passive:!0})],nt.prototype,"onClick",null);V("ft-tooltip")(nt);var mr;(function(r){r.THUMBS_DOWN="",r.THUMBS_DOWN_PLAIN="",r.THUMBS_UP="",r.THUMBS_UP_PLAIN="",r.STAR="",r.STAR_PLAIN="",r.DESKTOP="",r.LIFE_RING="",r.GLOBE="",r.PIGGY_BANK="",r.TABLET_LANDSCAPE="",r.TABLET_PORTRAIT="",r.MOBILE_LANDSCAPE="",r.MOBILE_PORTRAIT="",r.ARROW_RIGHT_TO_LINE="",r.THIN_ARROW_UP="",r.CONTEXTUAL="",r.CHART_SIMPLE="",r.BARS_PROGRESS="",r.LINE_CHART="",r.STACKED_CHART="",r.CHART_BAR_NORMALIZED="",r.BOOK_OPEN_GEAR="",r.BOOK_OPEN_GEAR_SLASH="",r.DIAGRAM_SUNBURST="",r.DIAGRAM_SANKEY="",r.UNSTRUCTURED_DOC="",r.RESET="",r.THIN_ARROW_LEFT="",r.THIN_ARROW_RIGHT="",r.MY_COLLECTIONS="",r.OFFLINE_SETTINGS="",r.MY_LIBRARY="",r.RATE_PLAIN="",r.RATE="",r.FEEDBACK_PLAIN="",r.PAUSE="",r.PLAY="",r.RELATIVES_PLAIN="",r.RELATIVES="",r.SHORTCUT_MENU="",r.PRINT="",r.DEFAULT_ROLES="",r.ACCOUNT_SETTINGS="",r.ONLINE="",r.OFFLINE="",r.UPLOAD="",r.BOOK_PLAIN="",r.SYNC="",r.SHARED_PBK="",r.COLLECTIONS="",r.SEARCH_IN_PUBLICATION="",r.BOOKS="",r.LOCKER="",r.ARROW_DOWN="",r.ARROW_LEFT="",r.ARROW_RIGHT="",r.ARROW_UP="",r.SAVE="",r.MAILS_AND_NOTIFICATIONS="",r.DOT="",r.MINUS="",r.PLUS="",r.FILTERS="",r.STRIPE_ARROW_RIGHT="",r.STRIPE_ARROW_LEFT="",r.ATTACHMENTS="",r.ADD_BOOKMARK="",r.BOOKMARK="",r.EXPORT="",r.MENU="",r.TAG="",r.TAG_PLAIN="",r.COPY_TO_CLIPBOARD="",r.COLUMNS="",r.ARTICLE="",r.CLOSE="",r.OCTAGON_XMARK="",r.CLOSE_PLAIN="",r.CHECK_PLAIN="",r.LOGOUT="",r.SIGN_IN="",r.THIN_ARROW="",r.TRIANGLE_BOTTOM="",r.TRIANGLE_LEFT="",r.TRIANGLE_RIGHT="",r.TRIANGLE_TOP="",r.FACET_HAS_DESCENDANT="",r.MINUS_PLAIN="",r.PLUS_PLAIN="",r.INFO="",r.ICON_EXPAND="",r.ICON_COLLAPSE="",r.ADD_TO_PBK="",r.ALERT="",r.ADD_ALERT="",r.BACK_TO_SEARCH="",r.DOWNLOAD="",r.EDIT="",r.FEEDBACK="",r.MODIFY_PBK="",r.SCHEDULED="",r.SEARCH="",r.SHARE="󨃱",r.TOC="",r.WRITE_UGC="",r.TRASH="",r.EXTLINK="",r.EXTLINK_LIGHT="",r.CALENDAR="",r.BOOK="",r.DOWNLOAD_PLAIN="",r.CHECK="",r.TOPICS="",r.EYE="",r.EYE_SLASH="",r.DISC="",r.CIRCLE="",r.SHARED="",r.SORT_UNSORTED="",r.SORT_UP="",r.SORT_DOWN="",r.WORKING="",r.ZOOM_OUT="",r.ZOOM_IN="",r.ZOOM_REALSIZE="",r.ZOOM_FULLSCREEN="",r.ADMIN_RESTRICTED="",r.ADMIN_THEME="",r.WARNING="",r.CONTEXT="",r.SEARCH_HOME="",r.STEPS="",r.HOME="",r.TRANSLATE="",r.USER="",r.ADMIN="",r.ANALYTICS="",r.ADMIN_KHUB="",r.ADMIN_USERS="",r.ADMIN_INTEGRATION="",r.ADMIN_PORTAL="",r.COMMENT_QUESTION="",r.COMMENT_QUESTION_PLAIN="",r.MESSAGE_BOT="",r.PIP="",r.PIP_WIDE="",r.EXPAND_WIDE="",r.X_MARK="",r.CLONE="",r.CLONE_LINK_SIMPLE="",r.CONSUMER="",r.HOURGLASS_HALF="",r.CLOCK_THREE="",r.CALENDAR_DAY="",r.COMPUTER_MOUSE_MAGNIFYING_GLASS="",r.WAND_MAGIC_SPARKLES="",r.PAPER_PLANE=""})(mr||(mr={}));var R;(function(r){r.UNKNOWN="",r.ABW="",r.AUDIO="",r.AVI="",r.CHM="",r.CODE="",r.CSV="",r.DITA="",r.EPUB="",r.EXCEL="",r.FLAC="",r.GIF="",r.GZIP="",r.HTML="",r.IMAGE="",r.JPEG="",r.JSON="",r.M4A="",r.MOV="",r.MP3="",r.MP4="",r.OGG="",r.PDF="",r.PNG="",r.POWERPOINT="",r.RAR="",r.STP="",r.TEXT="",r.VIDEO="",r.WAV="",r.WMA="",r.WORD="",r.XML="",r.YAML="",r.ZIP=""})(R||(R={}));var w0=new Map([...["abw"].map(r=>[r,R.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(r=>[r,R.AUDIO]),...["avi"].map(r=>[r,R.AVI]),...["chm","xhs"].map(r=>[r,R.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(r=>[r,R.CODE]),...["csv"].map(r=>[r,R.CSV]),...["dita","ditamap","ditaval"].map(r=>[r,R.DITA]),...["epub"].map(r=>[r,R.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(r=>[r,R.EXCEL]),...["flac"].map(r=>[r,R.FLAC]),...["gif"].map(r=>[r,R.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(r=>[r,R.GZIP]),...["html","htm","xhtml"].map(r=>[r,R.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(r=>[r,R.IMAGE]),...["jpeg","jpg","jpe"].map(r=>[r,R.JPEG]),...["json"].map(r=>[r,R.JSON]),...["m4a","m4p"].map(r=>[r,R.M4A]),...["mov","qt"].map(r=>[r,R.MOV]),...["mp3"].map(r=>[r,R.MP3]),...["mp4","m4v"].map(r=>[r,R.MP4]),...["ogg","oga"].map(r=>[r,R.OGG]),...["pdf","ps"].map(r=>[r,R.PDF]),...["png"].map(r=>[r,R.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(r=>[r,R.POWERPOINT]),...["rar"].map(r=>[r,R.RAR]),...["stp"].map(r=>[r,R.STP]),...["txt","rtf","md","mdown"].map(r=>[r,R.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(r=>[r,R.VIDEO]),...["wav"].map(r=>[r,R.WAV]),...["wma"].map(r=>[r,R.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(r=>[r,R.WORD]),...["xml","xsl","rdf"].map(r=>[r,R.XML]),...["yaml","yml","x-yaml"].map(r=>[r,R.YAML]),...["zip"].map(r=>[r,R.ZIP])]);var E0={[R.ABW]:"#91ABC6",[R.AUDIO]:"#1795E3",[R.AVI]:"#E63324",[R.CHM]:"#71C3EB",[R.CODE]:"#71C3EB",[R.CSV]:"#1F7345",[R.DITA]:"#71C3EB",[R.EPUB]:"#85B926",[R.EXCEL]:"#1F7345",[R.FLAC]:"#1795E3",[R.GIF]:"#59B031",[R.GZIP]:"#F8AB36",[R.HTML]:"#71C3EB",[R.IMAGE]:"#59B031",[R.JPEG]:"#59B031",[R.JSON]:"#71C3EB",[R.M4A]:"#1795E3",[R.MOV]:"#E63324",[R.MP3]:"#1795E3",[R.MP4]:"#E63324",[R.OGG]:"#1795E3",[R.PDF]:"#E44948",[R.PNG]:"#59B031",[R.POWERPOINT]:"#B54A2B",[R.RAR]:"#F8AB36",[R.STP]:"#3764B1",[R.TEXT]:"#3162AB",[R.UNKNOWN]:"#999999",[R.VIDEO]:"#E63324",[R.WAV]:"#1795E3",[R.WMA]:"#1795E3",[R.WORD]:"#3162AB",[R.XML]:"#71C3EB",[R.YAML]:"#71C3EB",[R.ZIP]:"#F8AB36"};var Ut;(function(r){r.fluid_topics="fluid-topics",r.file_format="file-format",r.material="material"})(Ut||(Ut={}));var yi=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},gt=class extends W{constructor(){super(...arguments),this.resolvedIcon=B}render(){let t=this.variant&&Object.values(Ut).includes(this.variant)?this.variant:Ut.fluid_topics,e=t!==Ut.material||!!this.value;return $`
|
|
634
634
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
635
635
|
${un(this.resolvedIcon)}
|
|
636
636
|
<slot ?hidden=${e}></slot>
|
|
@@ -1339,9 +1339,9 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1339
1339
|
}
|
|
1340
1340
|
`,lr];var Co=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},pe=class extends bt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?hr.caption1medium:hr.body2medium}};pe.styles=[cr,jc];Co([g({type:Boolean})],pe.prototype,"primary",void 0);Co([g({type:Boolean})],pe.prototype,"secondary",void 0);Co([g({type:Boolean})],pe.prototype,"tertiary",void 0);Co([g({type:Boolean})],pe.prototype,"neutral",void 0);Co([g({type:Boolean})],pe.prototype,"small",void 0);V("ft-button")(te);V("ftds-button")(pe);var Kc=P`
|
|
1341
1341
|
`;var Gc=P`
|
|
1342
|
-
`;var
|
|
1342
|
+
`;var rf="ft-app-info",of={},M=we.get({name:rf,reducers:of,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1}});var yr=class r{static get(t){let{baseUrl:e,apiIntegrationIdentifier:o}=M.getState(),n=t??o;if(e&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,n,!0)}static await(t){return new Promise(e=>{let o=r.get(t);if(o)e(o);else{let n=M.subscribe(()=>{o=r.get(t),o&&(n(),e(o))})}})}};var ue=class{constructor(t=!0,e){var o;this.overrideApi=e;let n=this.constructor;n.commonCache=(o=n.commonCache)!==null&&o!==void 0?o:new ie,this.cache=t?n.commonCache:new ie}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:yr.get()}get awaitApi(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:yr.await()}clearCache(){this.cache.clearAll()}};var Zc,nf=Symbol("clearAfterUnitTest"),vi=class extends ue{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Zc]=()=>{this.defaultMessages={},this.cache=new ie,this.listeners={}},this.currentUiLocale=M.getState().uiLocale,M.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=M.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,e){var o;if(t=t.toLowerCase(),Object.keys(e).length>0){let n={...(o=this.defaultMessages[t])!==null&&o!==void 0?o:{},...e};jt(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,e,...o){var n,a,s;t=t.toLowerCase(),this.fetchContext(t);let l=(a=(n=this.cache.getNow(t))===null||n===void 0?void 0:n.messages)!==null&&a!==void 0?a:{};return new go((s=this.defaultMessages[t])!==null&&s!==void 0?s:{},l).resolve(e,...o)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),await this.notify(t)}catch(e){console.error(e)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=(o=this.listeners[t])!==null&&o!==void 0?o:new Set,this.listeners[t].add(e),()=>{var n;return(n=this.listeners[t])===null||n===void 0?void 0:n.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(t=>this.notify(t)))}async notify(t){this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(e=>Qo(0).then(()=>e()).catch(()=>null)))}};Zc=nf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends vi{constructor(){super(async(r,t)=>(await this.awaitApi).getFluidTopicsMessageContext(r,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends vi{constructor(){super(async(r,t)=>(await this.awaitApi).getCustomMessageContext(r,t))}});var Fr=window.FluidTopicsI18nService,qc=window.FluidTopicsCustomI18nService;var $t=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},mt=class extends W{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=()=>yr.get(),this.messageContexts=[],this.cache=new ie,this.cleanSessionDebouncer=new et}render(){return $`
|
|
1343
1343
|
<slot></slot>
|
|
1344
|
-
`}update(t){super.update(t),t.has("baseUrl")&&(M.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&M.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&M.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&M.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&M.actions.noCustom(this.noCustom),t.has("editorMode")&&M.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&M.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&M.actions.session(this.session),t.has("availableUiLocales")&&M.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(e=>Fr.addContext(e)),t.has("openExternalDocumentInNewTab")&&M.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&M.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&M.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 t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};mt.elementDefinitions={};mt.styles=Gc;$t([g()],mt.prototype,"baseUrl",void 0);$t([g()],mt.prototype,"apiIntegrationIdentifier",void 0);$t([g()],mt.prototype,"uiLocale",void 0);$t([ne(null)],mt.prototype,"availableUiLocales",void 0);$t([ne(null)],mt.prototype,"metadataConfiguration",void 0);$t([g({type:Boolean})],mt.prototype,"editorMode",void 0);$t([g({type:Boolean})],mt.prototype,"noCustom",void 0);$t([g({type:Boolean})],mt.prototype,"openExternalDocumentInNewTab",void 0);$t([g({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],mt.prototype,"noCustomComponent",void 0);$t([g({type:Boolean})],mt.prototype,"withManualResources",void 0);$t([g({type:Boolean})],mt.prototype,"navigatorOnline",void 0);$t([g({type:Boolean})],mt.prototype,"forcedOffline",void 0);$t([g({type:Object})],mt.prototype,"apiProvider",void 0);$t([ne([])],mt.prototype,"messageContexts",void 0);$t([ne(void 0)],mt.prototype,"session",void 0);var xi=class extends ue{async listMySearches(){let t=M.getState().session;return t?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var Si=class extends ue{async listMyBookmarks(){let t=M.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var
|
|
1344
|
+
`}update(t){super.update(t),t.has("baseUrl")&&(M.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&M.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&M.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&M.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&M.actions.noCustom(this.noCustom),t.has("editorMode")&&M.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&M.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&M.actions.session(this.session),t.has("availableUiLocales")&&M.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(e=>Fr.addContext(e)),t.has("openExternalDocumentInNewTab")&&M.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&M.actions.navigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&M.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 t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},t.idleTimeoutInMillis),t})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};mt.elementDefinitions={};mt.styles=Gc;$t([g()],mt.prototype,"baseUrl",void 0);$t([g()],mt.prototype,"apiIntegrationIdentifier",void 0);$t([g()],mt.prototype,"uiLocale",void 0);$t([ne(null)],mt.prototype,"availableUiLocales",void 0);$t([ne(null)],mt.prototype,"metadataConfiguration",void 0);$t([g({type:Boolean})],mt.prototype,"editorMode",void 0);$t([g({type:Boolean})],mt.prototype,"noCustom",void 0);$t([g({type:Boolean})],mt.prototype,"openExternalDocumentInNewTab",void 0);$t([g({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],mt.prototype,"noCustomComponent",void 0);$t([g({type:Boolean})],mt.prototype,"withManualResources",void 0);$t([g({type:Boolean})],mt.prototype,"navigatorOnline",void 0);$t([g({type:Boolean})],mt.prototype,"forcedOffline",void 0);$t([g({type:Object})],mt.prototype,"apiProvider",void 0);$t([ne([])],mt.prototype,"messageContexts",void 0);$t([ne(void 0)],mt.prototype,"session",void 0);var xi=class extends ue{async listMySearches(){let t=M.getState().session;return t?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),5*60*1e3):[]}};var Si=class extends ue{async listMyBookmarks(){let t=M.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),5*60*1e3):[]}};var af="ft-user-assets",Oi=we.get({name:af,initialState:{savedSearches:void 0,bookmarks:void 0}}),is=class{constructor(){this.currentSession=M.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Si,this.savedSearchesService=new xi,M.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:e}=M.getState();jt((t=this.currentSession)===null||t===void 0?void 0:t.profile,e?.profile)||(this.currentSession=e,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Oi.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Oi.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();Oi.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let e=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Oi.actions.bookmarks(e)}}},Yc=new is;var ns=class{addCommand(t,e=!1){M.commands.add(t,e)}consumeCommand(t){return M.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new ns;var as=class{highlightHtml(t,e){fa(t,e)}};window.FluidTopicsHighlightHtmlService=new as;V("ft-app-context")(mt);var sf=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},ss=Symbol("i18nAttributes"),br=Symbol("i18nProperties"),Ao=Symbol("i18nUnsubs");function Ve(r){var t;class e extends r{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map}get i18nService(){return this.useCustomMessageContexts?qc:Fr}i18n(n,a,...s){var l;if(typeof n=="string")return this.i18nService.resolveMessage(n,a,...s);let c=(l=n.args)!==null&&l!==void 0?l:n.argsProvider?n.argsProvider(this):[];return this.i18nService.resolveMessage(n.context,n.key,...c)}onI18nUpdate(n){var a,s;(a=this[ss])===null||a===void 0||a.forEach((l,c)=>{var d;let u=this.getI18nAttributeValue(c);((d=u?.context)===null||d===void 0?void 0:d.toLowerCase())===n.toLowerCase()&&this.updateI18nAttributeMessage(c,u,l)}),(s=this[br])===null||s===void 0||s.forEach((l,c)=>{l.context.toLowerCase()===n.toLowerCase()&&(this[c]=this.i18n(l))}),setTimeout(()=>this.requestUpdate(),0)}updateI18nAttributeMessage(n,a,s){this[n]={...a,message:this.i18n({context:a.context,key:a.key,...s})}}update(n){var a,s;super.update(n),(a=this[ss])===null||a===void 0||a.forEach((l,c)=>{let d=this.getI18nAttributeValue(c);d?.context&&d.key&&(n.has(c)||l.argsProvider!=null)&&(n.has(c)&&this.addI18nContext(d.context),this.updateI18nAttributeMessage(c,d,l))}),(s=this[br])===null||s===void 0||s.forEach((l,c)=>{l.argsProvider!=null&&(this[c]=this.i18n(l))})}getI18nAttributeValue(n){return this[n]}connectedCallback(){var n,a,s,l;super.connectedCallback(),new Set([...(a=(n=this[br])===null||n===void 0?void 0:n.values())!==null&&a!==void 0?a:[],...[...(l=(s=this[ss])===null||s===void 0?void 0:s.keys())!==null&&l!==void 0?l:[]].map(c=>this.getI18nAttributeValue(c))].map(c=>c?.context)).forEach(c=>c&&this.addI18nMessages(c))}addI18nMessages(n,a){n=n.toLowerCase(),this[Ao].has(n)||this[Ao].set(n,this.i18nService.subscribe(n,()=>this.onI18nUpdate(n))),this.i18nService.prepareContext(n,a??{})}addI18nContext(n,a){this.addI18nMessages(typeof n=="string"?n:n.name,a)}disconnectedCallback(){super.disconnectedCallback(),this[Ao].forEach(n=>n()),this[Ao].clear()}}return t=Ao,sf([g({type:Boolean})],e.prototype,"useCustomMessageContexts",void 0),e}var Xc=class extends Ve(W){},wi=class extends Ve(Kt){};var Ro=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},ee=class extends wi{constructor(){super(),this.editorMode=!1,this.addStore(M)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":B:$`
|
|
1345
1345
|
<span class="ft-i18n">
|
|
1346
1346
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1347
1347
|
</span>
|
|
@@ -1584,15 +1584,15 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1584
1584
|
<slot></slot>
|
|
1585
1585
|
</ft-typography>
|
|
1586
1586
|
</div>
|
|
1587
|
-
`}focus(t){var e;(e=this.container)===null||e===void 0||e.focus(t)}click(){var t;(t=this.container)===null||t===void 0||t.click()}confirmSuggestion(){this.dispatchEvent(new ls(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map(t=>t.textContent).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}};Ae.elementDefinitions={"ft-ripple":J,"ft-typography":ht,"ft-icon":gt};Ae.styles=ed;cs([g()],Ae.prototype,"value",void 0);cs([G(".ft-text-field-suggestion")],Ae.prototype,"container",void 0);cs([oo()],Ae.prototype,"assignedNodes",void 0);V("ft-text-field")(q);V("ft-text-field-suggestion")(Ae);var rd=r=>we.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 ds=class{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,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,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,o){return t.flatMap(n=>(n.pageConfiguration&&this.registerPage(this.buildPage(n,o)),n.tocId==null?this.extractPagesToc(n.children,e,o):[{tocId:n.tocId,title:n.title,depth:e,children:this.extractPagesToc(n.children,e+1,n.tocId)}]))}convertNodes(t,e,o){return t.flatMap(n=>{var a,s,l;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],e,n.tocId),...this.convertNodes(n.children,e,n.tocId)];let c=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),d={tocId:n.tocId,contentId:n.contentId,title:n.title,hasRating:n.hasRating,origin:n.origin,prettyUrl:c,depth:e,parentTocId:o,children:[]};this.register(d);let u=this.convertSectionNodes((l=n.pageToc)!==null&&l!==void 0?l:[],e+1,n.tocId),h=this.convertNodes(n.children,e+1,d.tocId);return d.children=[...u,...h],[d]})}convertSectionNodes(t,e,o){return t.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...n,prettyUrl:s,depth:e,parentTocId:o,children:[]};return this.register(l),l.children=this.convertSectionNodes(n.children,e+1,n.tocId),[l]})}buildPage(t,e){var o,n,a,s,l,c;let d={number:this.pages.length+1,title:(o=t.title)!==null&&o!==void 0?o:"",rootTocId:(n=t.tocId)!==null&&n!==void 0?n:"root",toc:((a=t.pageToc)!==null&&a!==void 0?a:[]).map(y=>this.nodeByTocId[y.tocId]),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},u=(y,b)=>(b?d.topics:d.hiddenTopics).push(y),h=(l=(s=t.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return d.breadcrumb.forEach((y,b)=>{u(y,h[b])}),t.tocId&&u(t.tocId,t.pageConfiguration.isVisible),d.topics.push(...this.tocIds((c=t.pageToc)!==null&&c!==void 0?c:[])),d}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap(e=>[e.tocId,...this.tocIds(e.children)])}buildBreadcrumb(t){let e=[t.tocId];for(;t?.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}},Ci=class{convertPaginatedToc(t){return new ds(t).build()}};var FC=Pd(id(),1);var nd;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(nd||(nd={}));var ad;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(ad||(ad={}));var sd;(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"})(sd||(sd={}));var ld;(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT"})(ld||(ld={}));var cd;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(cd||(cd={}));var dd;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(dd||(dd={}));var pd;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(pd||(pd={}));var Re;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Re||(Re={}));var ud;(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"})(ud||(ud={}));var fd;(function(r){r.ASC="ASC",r.DESC="DESC"})(fd||(fd={}));var hd;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(hd||(hd={}));var md;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(md||(md={}));var gd;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(gd||(gd={}));var yd;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(yd||(yd={}));var bd;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(bd||(bd={}));var vd;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(vd||(vd={}));var xd;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS"})(xd||(xd={}));var st;(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"})(st||(st={}));var Sd;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(Sd||(Sd={}));var sf={[st.PERSONAL_BOOK_SHARE_USER]:[st.PERSONAL_BOOK_USER],[st.HTML_EXPORT_USER]:[st.PERSONAL_BOOK_USER],[st.PDF_EXPORT_USER]:[st.PERSONAL_BOOK_USER],[st.KHUB_ADMIN]:[st.CONTENT_PUBLISHER],[st.ADMIN]:[st.KHUB_ADMIN,st.USERS_ADMIN,st.PORTAL_ADMIN],[st.DEVELOPER]:[st.BETA_USER,st.DEBUG_USER]};function Od(r,t){return r===t||(sf[r]??[]).some(e=>Od(e,t))}function vr(r,t){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(o=>Od(o,t))}var Ai=class extends ue{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,o){super(!1,e),this.converter=t,this._mapId=o,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(t=>this.fetchMap(t))),this.cache.register("enrichedToc",()=>this.withMapId(t=>this.fetchPages(t).then(e=>this.converter.convertPaginatedToc(e)))),this.cache.register("ratingSummary",()=>{var t,e;return vr((e=(t=M.getState().session)===null||t===void 0?void 0:t.profile.roles)!==null&&e!==void 0?e:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return(e=this.enrichedToc)===null||e===void 0?void 0:e.nodeByTocId[t]}async getPage(t){let e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){let e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,()=>this.fetchTopicMetadata(t))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,()=>this.fetchTopicHTMLContent(t))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(t,e){return this.cache.get("document-relatives-"+t+"-"+e.join("-"),()=>this.fetchRelativesForDocument(t,e))}getRelativesForTopicInMap(t,e,o){return this.cache.get("topic-relatives-"+[t,e,...o].join("-"),()=>this.fetchRelativesForTopicInMap(t,e,o))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,o){let n=this.getNavigationData(t,e,o),a=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return n.page!=null&&s.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&s.searchParams.set("tocId",n.tocId),n.section!=null&&s.searchParams.set("section",n.section),s.href}getNavigationData(t,e,o){var n,a;t=t||"root";let s=this.enrichedToc,l=s?.pageByTocId[t],c=s?.nodeByTocId[t],d=c?.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:(n=c?.title)!==null&&n!==void 0?n:"",page:e&&l&&l.number!==e?e:void 0,prettyUrl:d?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(d??""))!==null&&a!==void 0?a:!1,section:o}}async getAccurateNavigationData(t,e,o){return await this.getEnrichedToc(),this.getNavigationData(t,e,o)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(t=>t?.publication)}getTopicRating(t){return this.getRatingSummary().then(e=>{var o;return e?{type:e.topics.type,rating:(o=e.topics)===null||o===void 0?void 0:o.ratings.find(n=>n.tocId===t)}:void 0})}rateMap(t,e){return this.makeRateMapRequest(t,e).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,o){return this.makeRateTopicRequest(t,e,o).then(()=>this.clearRatingIfNecessary())}unrateTopic(t){return this.makeUnrateTopicRequest(t).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let t=M.getState().session;t?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,o){return this.makeTopicFeedbackRequest(t,e,o)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),o=[{tocId:e.tocId,title:e.title}],n=this.getTocNodeNow(e.parentTocId);for(;n;)o.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return o}isFeatureAccessible(t,{session:e,ratingType:o}){var n;if(!this.isFeatureAvailable(t))return!1;switch(t){case Zt.FEEDBACK:return vr(e??[],st.FEEDBACK_USER);case Zt.RATING:return vr(e??[],st.RATING_USER)&&o!=null&&o!==Re.NO_RATING;case Zt.PRINT:return vr(e??[],st.PRINT_USER);case Zt.BOOKMARK:return!!e?.sessionAuthenticated;case Zt.COLLECTIONS:return vr(e??[],st.COLLECTION_USER);case Zt.PERSONAL_BOOKS:return vr(e??[],st.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}};var Ri=class r extends Ai{static async build(t){return new r(new Ci,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){let e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(t,e){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:e,key:t}],sort:[],facets:[]})}fetchRelativesForTopicInMap(t,e,o){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:o,key:e},{negative:!1,values:[t],key:"ft:publicationId"}],sort:[],facets:[]})}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,o){return this.api.rateTopic(this.mapId,t,e,o)}makeTopicFeedbackRequest(t,e,o){return this.api.sendTopicFeedback(this.mapId,t,e,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}};var _i=class r{static build(t,e){return new r(rd(t.trim()||"context"),e??Ri.build)}constructor(t,e,o){this.store=t,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,this.loadDebouncer=new et(10),this.initService(e)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return no(()=>this.service)}async navigateToTopic(t,e,o){let n=await this.awaitService(),a=await(o!=null?n.getPage(o):n.getPageByTocId(t??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,a),section:e})}resolveValidNonRootTocId(t,e){var o,n,a;let s=(o=t==="root"?void 0:t)!==null&&o!==void 0?o:e.rootTocId;return e.topics.includes(s)?s:(a=(n=e.topics[0])!==null&&n!==void 0?n:e.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(t){let o=await(await this.awaitService()).getPage(t);this.store.actions.currentPage(o)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;!((t=this.service)===null||t===void 0)&&t.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData())}clear(){var t;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),(t=this.service)===null||t===void 0||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,e,o,n,a;try{await Promise.all([(t=this.service)===null||t===void 0?void 0:t.getConfiguration().then(s=>this.store.actions.configuration(s)),(e=this.service)===null||e===void 0?void 0:e.getMap().then(s=>this.store.actions.map(s)),(o=this.service)===null||o===void 0?void 0:o.getToc().then(s=>this.store.actions.toc(s)),(n=this.service)===null||n===void 0?void 0:n.getPagesToc().then(s=>this.store.actions.pagesToc(s)),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(s=>this.store.actions.paginationConfiguration(s))]).then(()=>{this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()})}catch(s){this.errorHandler&&!(s instanceof ir)&&this.errorHandler(s)}}fetchRelatives(){var t,e,o;let n=(t=this.store.getState().map)===null||t===void 0?void 0:t.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);n!==void 0&&n.length>0?(e=this.service)===null||e===void 0||e.getRelativesForDocument((o=this.store.getState().configuration)===null||o===void 0?void 0:o.relativePivotMetadata,n).then(a=>{let s=a.results.flatMap(l=>l.entries);this.store.actions.relatives(s),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created"))}createClusteringHelper(){var t,e;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let o=this.store.getState().relatives;if(o){let n=o.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(e=(t=M.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&e!==void 0?e:[];return new io(o,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(t){var e,o,n;let a=await no(()=>{var d;return(d=this.store.getState().configuration)===null||d===void 0?void 0:d.relativeTopicPivotMetadata}),s=this.store.getState().mapId,c=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[t]);if(!((n=(o=(e=c?.results)===null||e===void 0?void 0:e[0])===null||o===void 0?void 0:o.entries)===null||n===void 0)&&n[0]){let d=c.results[0].entries[0].topic.tocId;return await this.navigateToTopic(d),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.updateClusteringHelper()}};var wd=P`
|
|
1588
|
-
`;var Ni=class extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}},Ti=class extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}},Ii=class extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}},Pi=class extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}},$i=class extends Event{constructor(){super("ft-reader-map-not-found")}},ki=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},Li=class extends Event{constructor(){super("ft-reader-map-forbidden")}},Mi=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Vt=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},
|
|
1587
|
+
`}focus(t){var e;(e=this.container)===null||e===void 0||e.focus(t)}click(){var t;(t=this.container)===null||t===void 0||t.click()}confirmSuggestion(){this.dispatchEvent(new ls(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map(t=>t.textContent).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}};Ae.elementDefinitions={"ft-ripple":J,"ft-typography":ht,"ft-icon":gt};Ae.styles=ed;cs([g()],Ae.prototype,"value",void 0);cs([G(".ft-text-field-suggestion")],Ae.prototype,"container",void 0);cs([oo()],Ae.prototype,"assignedNodes",void 0);V("ft-text-field")(q);V("ft-text-field-suggestion")(Ae);var rd=r=>we.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 ds=class{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,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,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,o){return t.flatMap(n=>(n.pageConfiguration&&this.registerPage(this.buildPage(n,o)),n.tocId==null?this.extractPagesToc(n.children,e,o):[{tocId:n.tocId,title:n.title,depth:e,children:this.extractPagesToc(n.children,e+1,n.tocId)}]))}convertNodes(t,e,o){return t.flatMap(n=>{var a,s,l;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],e,n.tocId),...this.convertNodes(n.children,e,n.tocId)];let c=(s=n.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),d={tocId:n.tocId,contentId:n.contentId,title:n.title,hasRating:n.hasRating,origin:n.origin,prettyUrl:c,depth:e,parentTocId:o,children:[]};this.register(d);let u=this.convertSectionNodes((l=n.pageToc)!==null&&l!==void 0?l:[],e+1,n.tocId),h=this.convertNodes(n.children,e+1,d.tocId);return d.children=[...u,...h],[d]})}convertSectionNodes(t,e,o){return t.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...n,prettyUrl:s,depth:e,parentTocId:o,children:[]};return this.register(l),l.children=this.convertSectionNodes(n.children,e+1,n.tocId),[l]})}buildPage(t,e){var o,n,a,s,l,c;let d={number:this.pages.length+1,title:(o=t.title)!==null&&o!==void 0?o:"",rootTocId:(n=t.tocId)!==null&&n!==void 0?n:"root",toc:((a=t.pageToc)!==null&&a!==void 0?a:[]).map(y=>this.nodeByTocId[y.tocId]),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},u=(y,b)=>(b?d.topics:d.hiddenTopics).push(y),h=(l=(s=t.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return d.breadcrumb.forEach((y,b)=>{u(y,h[b])}),t.tocId&&u(t.tocId,t.pageConfiguration.isVisible),d.topics.push(...this.tocIds((c=t.pageToc)!==null&&c!==void 0?c:[])),d}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap(e=>[e.tocId,...this.tocIds(e.children)])}buildBreadcrumb(t){let e=[t.tocId];for(;t?.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}},Ci=class{convertPaginatedToc(t){return new ds(t).build()}};var GC=Pd(id(),1);var nd;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(nd||(nd={}));var ad;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(ad||(ad={}));var sd;(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"})(sd||(sd={}));var ld;(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT"})(ld||(ld={}));var cd;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(cd||(cd={}));var dd;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(dd||(dd={}));var pd;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(pd||(pd={}));var Re;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Re||(Re={}));var ud;(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"})(ud||(ud={}));var fd;(function(r){r.ASC="ASC",r.DESC="DESC"})(fd||(fd={}));var hd;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(hd||(hd={}));var md;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(md||(md={}));var gd;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(gd||(gd={}));var yd;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(yd||(yd={}));var bd;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(bd||(bd={}));var vd;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(vd||(vd={}));var xd;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS"})(xd||(xd={}));var st;(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"})(st||(st={}));var Sd;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(Sd||(Sd={}));var lf={[st.PERSONAL_BOOK_SHARE_USER]:[st.PERSONAL_BOOK_USER],[st.HTML_EXPORT_USER]:[st.PERSONAL_BOOK_USER],[st.PDF_EXPORT_USER]:[st.PERSONAL_BOOK_USER],[st.KHUB_ADMIN]:[st.CONTENT_PUBLISHER],[st.ADMIN]:[st.KHUB_ADMIN,st.USERS_ADMIN,st.PORTAL_ADMIN],[st.DEVELOPER]:[st.BETA_USER,st.DEBUG_USER]};function Od(r,t){return r===t||(lf[r]??[]).some(e=>Od(e,t))}function vr(r,t){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(o=>Od(o,t))}var Ai=class extends ue{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,o){super(!1,e),this.converter=t,this._mapId=o,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(t=>this.fetchMap(t))),this.cache.register("enrichedToc",()=>this.withMapId(t=>this.fetchPages(t).then(e=>this.converter.convertPaginatedToc(e)))),this.cache.register("ratingSummary",()=>{var t,e;return vr((e=(t=M.getState().session)===null||t===void 0?void 0:t.profile.roles)!==null&&e!==void 0?e:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return(e=this.enrichedToc)===null||e===void 0?void 0:e.nodeByTocId[t]}async getPage(t){let e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){let e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,()=>this.fetchTopicMetadata(t))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,()=>this.fetchTopicHTMLContent(t))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(t,e){return this.cache.get("document-relatives-"+t+"-"+e.join("-"),()=>this.fetchRelativesForDocument(t,e))}getRelativesForTopicInMap(t,e,o){return this.cache.get("topic-relatives-"+[t,e,...o].join("-"),()=>this.fetchRelativesForTopicInMap(t,e,o))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,o){let n=this.getNavigationData(t,e,o),a=this.getReaderLinkPrefix()+(n.prettyUrl?n.prettyUrl:`${n.mapId}/${n.tocId}`),s=new URL(a,this.api.tenantBaseUrl);return n.page!=null&&s.searchParams.set("page",`${n.page}`),n.prettyUrlDuplicated&&s.searchParams.set("tocId",n.tocId),n.section!=null&&s.searchParams.set("section",n.section),s.href}getNavigationData(t,e,o){var n,a;t=t||"root";let s=this.enrichedToc,l=s?.pageByTocId[t],c=s?.nodeByTocId[t],d=c?.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:(n=c?.title)!==null&&n!==void 0?n:"",page:e&&l&&l.number!==e?e:void 0,prettyUrl:d?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(d??""))!==null&&a!==void 0?a:!1,section:o}}async getAccurateNavigationData(t,e,o){return await this.getEnrichedToc(),this.getNavigationData(t,e,o)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(t=>t?.publication)}getTopicRating(t){return this.getRatingSummary().then(e=>{var o;return e?{type:e.topics.type,rating:(o=e.topics)===null||o===void 0?void 0:o.ratings.find(n=>n.tocId===t)}:void 0})}rateMap(t,e){return this.makeRateMapRequest(t,e).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,o){return this.makeRateTopicRequest(t,e,o).then(()=>this.clearRatingIfNecessary())}unrateTopic(t){return this.makeUnrateTopicRequest(t).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let t=M.getState().session;t?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,o){return this.makeTopicFeedbackRequest(t,e,o)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),o=[{tocId:e.tocId,title:e.title}],n=this.getTocNodeNow(e.parentTocId);for(;n;)o.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return o}isFeatureAccessible(t,{session:e,ratingType:o}){var n;if(!this.isFeatureAvailable(t))return!1;switch(t){case Zt.FEEDBACK:return vr(e??[],st.FEEDBACK_USER);case Zt.RATING:return vr(e??[],st.RATING_USER)&&o!=null&&o!==Re.NO_RATING;case Zt.PRINT:return vr(e??[],st.PRINT_USER);case Zt.BOOKMARK:return!!e?.sessionAuthenticated;case Zt.COLLECTIONS:return vr(e??[],st.COLLECTION_USER);case Zt.PERSONAL_BOOKS:return vr(e??[],st.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}};var Ri=class r extends Ai{static async build(t){return new r(new Ci,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){let e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(t,e){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:e,key:t}],sort:[],facets:[]})}fetchRelativesForTopicInMap(t,e,o){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:o,key:e},{negative:!1,values:[t],key:"ft:publicationId"}],sort:[],facets:[]})}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,o){return this.api.rateTopic(this.mapId,t,e,o)}makeTopicFeedbackRequest(t,e,o){return this.api.sendTopicFeedback(this.mapId,t,e,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}};var _i=class r{static build(t,e){return new r(rd(t.trim()||"context"),e??Ri.build)}constructor(t,e,o){this.store=t,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,this.loadDebouncer=new et(10),this.initService(e)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return no(()=>this.service)}async navigateToTopic(t,e,o){let n=await this.awaitService(),a=await(o!=null?n.getPage(o):n.getPageByTocId(t??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,a),section:e})}resolveValidNonRootTocId(t,e){var o,n,a;let s=(o=t==="root"?void 0:t)!==null&&o!==void 0?o:e.rootTocId;return e.topics.includes(s)?s:(a=(n=e.topics[0])!==null&&n!==void 0?n:e.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(t){let o=await(await this.awaitService()).getPage(t);this.store.actions.currentPage(o)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;!((t=this.service)===null||t===void 0)&&t.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData())}clear(){var t;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),(t=this.service)===null||t===void 0||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,e,o,n,a;try{await Promise.all([(t=this.service)===null||t===void 0?void 0:t.getConfiguration().then(s=>this.store.actions.configuration(s)),(e=this.service)===null||e===void 0?void 0:e.getMap().then(s=>this.store.actions.map(s)),(o=this.service)===null||o===void 0?void 0:o.getToc().then(s=>this.store.actions.toc(s)),(n=this.service)===null||n===void 0?void 0:n.getPagesToc().then(s=>this.store.actions.pagesToc(s)),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(s=>this.store.actions.paginationConfiguration(s))]).then(()=>{this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()})}catch(s){this.errorHandler&&!(s instanceof ir)&&this.errorHandler(s)}}fetchRelatives(){var t,e,o;let n=(t=this.store.getState().map)===null||t===void 0?void 0:t.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);n!==void 0&&n.length>0?(e=this.service)===null||e===void 0||e.getRelativesForDocument((o=this.store.getState().configuration)===null||o===void 0?void 0:o.relativePivotMetadata,n).then(a=>{let s=a.results.flatMap(l=>l.entries);this.store.actions.relatives(s),this.updateClusteringHelper()}):this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created"))}createClusteringHelper(){var t,e;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let o=this.store.getState().relatives;if(o){let n=o.find(s=>{var l;return((l=s.map)===null||l===void 0?void 0:l.mapId)==this.store.getState().mapId}),a=(e=(t=M.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&e!==void 0?e:[];return new io(o,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(t){var e,o,n;let a=await no(()=>{var d;return(d=this.store.getState().configuration)===null||d===void 0?void 0:d.relativeTopicPivotMetadata}),s=this.store.getState().mapId,c=await(await this.awaitService()).getRelativesForTopicInMap(s,a,[t]);if(!((n=(o=(e=c?.results)===null||e===void 0?void 0:e[0])===null||o===void 0?void 0:o.entries)===null||n===void 0)&&n[0]){let d=c.results[0].entries[0].topic.tocId;return await this.navigateToTopic(d),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.updateClusteringHelper()}};var wd=P`
|
|
1588
|
+
`;var Ni=class extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}},Ti=class extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}},Ii=class extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}},Pi=class extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}},$i=class extends Event{constructor(){super("ft-reader-map-not-found")}},ki=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},Li=class extends Event{constructor(){super("ft-reader-map-forbidden")}},Mi=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var Vt=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},cf=r=>t=>+(t??"NaN")>0?+t:r,Ot=class extends Kt{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new et(5),this.navigationDebouncer=new et(10),this.mapLoadedEventDebouncer=new et(50),this.addStore(M)}render(){return $`
|
|
1589
1589
|
${this.importStyleIfNeeded()}
|
|
1590
1590
|
<slot @register-ft-reader-component=${this.registerComponent}></slot>
|
|
1591
1591
|
`}importStyleIfNeeded(){var t,e;let o=(t=this.stateManager.service)===null||t===void 0?void 0:t.themeStylesheet();return!o||window.location.href.startsWith((e=this.baseUrl)!==null&&e!==void 0?e:"")?B:$`
|
|
1592
1592
|
<style>
|
|
1593
1593
|
@import "${o}"
|
|
1594
1594
|
</style>
|
|
1595
|
-
`}get stateManager(){return this._stateManager==null&&(this._stateManager=_i.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(t=>{let e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){let o=document.createElement("link");o.setAttribute("rel","stylesheet"),o.setAttribute("href",e),document.head.append(o)}})}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(e=>t.has(e))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&((e=this.scrollTarget)===null||e===void 0?void 0:e.tocId)==null){let o=t.get("scrollTarget");o?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>{var n;return this.stateManager.service.getAccurateNavigationData(o.tocId,(n=this.currentPage)===null||n===void 0?void 0:n.number,o.section).then(a=>this.dispatchEvent(new Ii(a)))})}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map(o=>{var n;return this.stateManager.service.getAccurateNavigationData(o,(n=this.currentPage)===null||n===void 0?void 0:n.number)})).then(o=>{let n=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 Ti(this.map,n))})}clear(){this.stateManager.clear()}async reload(){this.clear(),await this.navigateToTarget()}async navigateToTarget(){await this.stateManager.load(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new Mi),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)})}registerComponent(t){t.stopPropagation();let e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){let e=t;e.status===401?this.dispatchEvent(new ki):e.status===403?this.dispatchEvent(new Li):e.status===404?this.dispatchEvent(new $i):this.dispatchEvent(new Pi(t))}reloadBookmarks(){Yc.reloadBookmarks()}async reloadRating(){var t,e;await((t=this.stateManager.service)===null||t===void 0?void 0:t.reloadRating()),(e=this.stateManager.store)===null||e===void 0||e.eventBus.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new Ni(this.map,this.toc))})}};Ot.styles=wd;Vt([ct({store:M.name})],Ot.prototype,"baseUrl",void 0);Vt([g()],Ot.prototype,"mapId",void 0);Vt([g()],Ot.prototype,"tocId",void 0);Vt([g()],Ot.prototype,"section",void 0);Vt([g()],Ot.prototype,"topicPivot",void 0);Vt([g()],Ot.prototype,"searchInDocumentQuery",void 0);Vt([g({type:Number,converter:{fromAttribute:
|
|
1595
|
+
`}get stateManager(){return this._stateManager==null&&(this._stateManager=_i.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(t=>{let e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){let o=document.createElement("link");o.setAttribute("rel","stylesheet"),o.setAttribute("href",e),document.head.append(o)}})}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(e=>t.has(e))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&((e=this.scrollTarget)===null||e===void 0?void 0:e.tocId)==null){let o=t.get("scrollTarget");o?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>{var n;return this.stateManager.service.getAccurateNavigationData(o.tocId,(n=this.currentPage)===null||n===void 0?void 0:n.number,o.section).then(a=>this.dispatchEvent(new Ii(a)))})}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map(o=>{var n;return this.stateManager.service.getAccurateNavigationData(o,(n=this.currentPage)===null||n===void 0?void 0:n.number)})).then(o=>{let n=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 Ti(this.map,n))})}clear(){this.stateManager.clear()}async reload(){this.clear(),await this.navigateToTarget()}async navigateToTarget(){await this.stateManager.load(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new Mi),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)})}registerComponent(t){t.stopPropagation();let e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){let e=t;e.status===401?this.dispatchEvent(new ki):e.status===403?this.dispatchEvent(new Li):e.status===404?this.dispatchEvent(new $i):this.dispatchEvent(new Pi(t))}reloadBookmarks(){Yc.reloadBookmarks()}async reloadRating(){var t,e;await((t=this.stateManager.service)===null||t===void 0?void 0:t.reloadRating()),(e=this.stateManager.store)===null||e===void 0||e.eventBus.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new Ni(this.map,this.toc))})}};Ot.styles=wd;Vt([ct({store:M.name})],Ot.prototype,"baseUrl",void 0);Vt([g()],Ot.prototype,"mapId",void 0);Vt([g()],Ot.prototype,"tocId",void 0);Vt([g()],Ot.prototype,"section",void 0);Vt([g()],Ot.prototype,"topicPivot",void 0);Vt([g()],Ot.prototype,"searchInDocumentQuery",void 0);Vt([g({type:Number,converter:{fromAttribute:cf()}})],Ot.prototype,"page",void 0);Vt([ct({store:"reader"})],Ot.prototype,"map",void 0);Vt([ct({store:"reader"})],Ot.prototype,"toc",void 0);Vt([ct({store:"reader"})],Ot.prototype,"visibleTopics",void 0);Vt([ct({store:"reader"})],Ot.prototype,"currentPage",void 0);Vt([ct({store:"reader"})],Ot.prototype,"scrollTarget",void 0);Vt([g({attribute:!1})],Ot.prototype,"readerServiceProvider",void 0);V("ft-reader-context")(Ot);var Di=class extends CustomEvent{constructor(t){super("send-feedback",{detail:t})}},Ui=class extends CustomEvent{constructor(t){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:t})}},Bi=class extends CustomEvent{constructor(t){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:t})}},Fi=class extends CustomEvent{constructor(t){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:t}})}},zi=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var xt=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},tt=class extends Ve(Fe){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.addI18nContext(Z,Jc)}get canAccessFeedback(){var t;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Zt.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Zt.RATING,{session:this.session,ratingType:(e=this.ratingSummary)===null||e===void 0?void 0:e.type})}get configuredRatingType(){var t,e;return(e=this.ratingAllowed?(t=this.ratingSummary)===null||t===void 0?void 0:t.type:"NO_RATING")!==null&&e!==void 0?e:"NO_RATING"}get ratingType(){var t,e,o;return(o=(e=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||e===void 0?void 0:e.type)!==null&&o!==void 0?o:"NO_RATING"}get ratingValue(){var t,e,o;return(o=(e=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||e===void 0?void 0:e.value)!==null&&o!==void 0?o:-1}get ratingDate(){var t,e;let o=(e=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||e===void 0?void 0:e.date;return typeof o=="string"?ti(o):o}render(){return!this.canAccessFeedback&&!this.canAccessRating?B:$`
|
|
1596
1596
|
<div class="ft-reader-feedback">
|
|
1597
1597
|
${this.hideTitle?B:$`
|
|
1598
1598
|
<ft-typography variant="title" part="main-title">
|
|
@@ -1730,7 +1730,7 @@ ${zr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(e=this.configura
|
|
|
1730
1730
|
@mailer-feedback=${this.onMailerFeedbackSent}
|
|
1731
1731
|
@open-more-options=${this.openMoreOptions}
|
|
1732
1732
|
></ft-reader-feedback>
|
|
1733
|
-
`}update(t){var e,o,n,a;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(Ke,Wi),["map","configuration","user","mailSubject"].some(s=>t.has(s))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(o=(e=this.service)===null||e===void 0?void 0:e.getLink())!==null&&o!==void 0?o:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var t,e;this.map&&(!((e=(t=this.session)===null||t===void 0?void 0:t.profile)===null||e===void 0)&&e.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var t;this.ratingSummary=await((t=this.service)===null||t===void 0?void 0:t.getMapRating())}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var e,o,n;if(!this.editorMode&&this.ratingSummary){try{t==null?await((e=this.service)===null||e===void 0?void 0:e.unrateMap()):await((o=this.service)===null||o===void 0?void 0:o.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new Tt({type:"error",message:Z.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Tt({type:"info",message:Ke.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new Tt({type:"info",message:Ke.messages.feedbackAndRatingDisabledInEditor()})):(await((e=this.service)===null||e===void 0?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new Tt({type:"info",message:Z.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Tt({type:"error",message:Z.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new zi)}openMoreOptions(){var t,e,o;this.dispatchEvent(new Bi({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((t=this.map)===null||t===void 0?void 0:t.metadata)||[],ratingType:((e=this.ratingSummary)===null||e===void 0?void 0:e.type)||Re.NO_RATING,ratingValue:(o=this.ratingSummary)===null||o===void 0?void 0:o.rating}))}};dt.elementDefinitions={"ft-reader-feedback":tt};Et([ct({store:M.name})],dt.prototype,"session",void 0);Et([ct({store:"reader"})],dt.prototype,"map",void 0);Et([ct({store:M.name})],dt.prototype,"editorMode",void 0);Et([ct({store:"reader",selector:r=>{var t;return(t=r.configuration)===null||t===void 0?void 0:t.feedback}})],dt.prototype,"configuration",void 0);Et([H()],dt.prototype,"ratingSummary",void 0);Et([g({type:Boolean})],dt.prototype,"hideTitle",void 0);Et([g({type:Boolean})],dt.prototype,"withMoreOptionsButton",void 0);Et([g()],dt.prototype,"iconVariant",void 0);Et([g()],dt.prototype,"emptyStarIcon",void 0);Et([g()],dt.prototype,"filledStarIcon",void 0);Et([g()],dt.prototype,"emptyLikeIcon",void 0);Et([g()],dt.prototype,"filledLikeIcon",void 0);Et([g()],dt.prototype,"emptyDislikeIcon",void 0);Et([g()],dt.prototype,"filledDislikeIcon",void 0);Et([G("ft-reader-feedback")],dt.prototype,"readerFeedback",void 0);Et([Ei(zr.properties["mail.map_feedback.subject"](r=>{var t;return[(t=r.map)===null||t===void 0?void 0:t.title]}))],dt.prototype,"mailSubject",void 0);Et([yo({eventName:"rating-changed"})],dt.prototype,"fetchRatingSummary",null);var Ed=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},us=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},ps=Symbol("registerInterval");function
|
|
1733
|
+
`}update(t){var e,o,n,a;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(Ke,Wi),["map","configuration","user","mailSubject"].some(s=>t.has(s))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(o=(e=this.service)===null||e===void 0?void 0:e.getLink())!==null&&o!==void 0?o:"",this.map.metadata,this.configuration,((a=(n=this.session)===null||n===void 0?void 0:n.profile)===null||a===void 0?void 0:a.userId)!=null)}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var t,e;this.map&&(!((e=(t=this.session)===null||t===void 0?void 0:t.profile)===null||e===void 0)&&e.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var t;this.ratingSummary=await((t=this.service)===null||t===void 0?void 0:t.getMapRating())}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var e,o,n;if(!this.editorMode&&this.ratingSummary){try{t==null?await((e=this.service)===null||e===void 0?void 0:e.unrateMap()):await((o=this.service)===null||o===void 0?void 0:o.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new Tt({type:"error",message:Z.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new Tt({type:"info",message:Ke.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var e;try{this.editorMode?this.dispatchEvent(new Tt({type:"info",message:Ke.messages.feedbackAndRatingDisabledInEditor()})):(await((e=this.service)===null||e===void 0?void 0:e.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new Tt({type:"info",message:Z.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Tt({type:"error",message:Z.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new zi)}openMoreOptions(){var t,e,o;this.dispatchEvent(new Bi({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((t=this.map)===null||t===void 0?void 0:t.metadata)||[],ratingType:((e=this.ratingSummary)===null||e===void 0?void 0:e.type)||Re.NO_RATING,ratingValue:(o=this.ratingSummary)===null||o===void 0?void 0:o.rating}))}};dt.elementDefinitions={"ft-reader-feedback":tt};Et([ct({store:M.name})],dt.prototype,"session",void 0);Et([ct({store:"reader"})],dt.prototype,"map",void 0);Et([ct({store:M.name})],dt.prototype,"editorMode",void 0);Et([ct({store:"reader",selector:r=>{var t;return(t=r.configuration)===null||t===void 0?void 0:t.feedback}})],dt.prototype,"configuration",void 0);Et([H()],dt.prototype,"ratingSummary",void 0);Et([g({type:Boolean})],dt.prototype,"hideTitle",void 0);Et([g({type:Boolean})],dt.prototype,"withMoreOptionsButton",void 0);Et([g()],dt.prototype,"iconVariant",void 0);Et([g()],dt.prototype,"emptyStarIcon",void 0);Et([g()],dt.prototype,"filledStarIcon",void 0);Et([g()],dt.prototype,"emptyLikeIcon",void 0);Et([g()],dt.prototype,"filledLikeIcon",void 0);Et([g()],dt.prototype,"emptyDislikeIcon",void 0);Et([g()],dt.prototype,"filledDislikeIcon",void 0);Et([G("ft-reader-feedback")],dt.prototype,"readerFeedback",void 0);Et([Ei(zr.properties["mail.map_feedback.subject"](r=>{var t;return[(t=r.map)===null||t===void 0?void 0:t.title]}))],dt.prototype,"mailSubject",void 0);Et([yo({eventName:"rating-changed"})],dt.prototype,"fetchRatingSummary",null);var Ed=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},us=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},ps=Symbol("registerInterval");function df(r){var t;class e extends r{constructor(){super(...arguments),this.disableContextInteractions=!1,this[t]=0}connectedCallback(){super.connectedCallback(),this[ps]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[ps]):this.dispatchEvent(new us)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=ps,Ed([H()],e.prototype,"tocNode",void 0),Ed([H()],e.prototype,"disableContextInteractions",void 0),e}var Hi=class extends df(Fe){};var Ct=function(r,t,e,o){var n=arguments.length,a=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,e):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,t,e,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(t,e,a):s(t,e))||a);return n>3&&a&&Object.defineProperty(t,e,a),a},pt=class extends Ve(Hi){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Ut.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Wr,this.i18nProperties={feedbackMainTitle:Z.properties.topicFeedbackMainTitle(),ratingSectionTitle:Z.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:Z.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:Z.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new et(100),this.sendRatingDebouncer=new et(500),this.addStore(M)}render(){var t;return $`
|
|
1734
1734
|
<ft-reader-feedback
|
|
1735
1735
|
.i18nProperties=${this.i18nProperties}
|
|
1736
1736
|
?ratingAllowed=${(t=this.tocNode)===null||t===void 0?void 0:t.hasRating}
|