@fluid-topics/ft-reader-feedback 1.1.105 → 1.1.107
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-reader-feedback.light.js +348 -347
- package/build/ft-reader-feedback.min.js +378 -377
- package/package.json +6 -6
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
"use strict";(()=>{var Kd=Object.create;var Ji=Object.defineProperty;var Gd=Object.getOwnPropertyDescriptor;var Zd=Object.getOwnPropertyNames;var qd=Object.getPrototypeOf,Yd=Object.prototype.hasOwnProperty;var Xd=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports),Q=(r,t)=>{for(var e in t)Ji(r,e,{get:t[e],enumerable:!0})},Jd=(r,t,e,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Zd(t))!Yd.call(r,n)&&n!==e&&Ji(r,n,{get:()=>t[n],enumerable:!(o=Gd(t,n))||o.enumerable});return r};var Qd=(r,t,e)=>(e=r!=null?Kd(qd(r)):{},Jd(t||!r||!r.__esModule?Ji(e,"default",{value:r,enumerable:!0}):e,r));var Cd=Xd(Ed=>{(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 N=m.shift();return{done:N===void 0,value:N}}};return o.iterable&&(x[Symbol.iterator]=function(){return x}),x}function u(m){this.map={},m instanceof u?m.forEach(function(x,N){this.append(N,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 N=this.map[m];this.map[m]=N?N+", "+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 N in this.map)this.map.hasOwnProperty(N)&&m.call(x,this.map[N],N,this)},u.prototype.keys=function(){var m=[];return this.forEach(function(x,N){m.push(N)}),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,N){m.push([N,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,N){m.onload=function(){x(m.result)},m.onerror=function(){N(m.error)}})}function b(m){var x=new FileReader,N=y(x);return x.readAsArrayBuffer(m),N}function v(m){var x=new FileReader,N=y(x);return x.readAsText(m),N}function w(m){for(var x=new Uint8Array(m),N=new Array(x.length),G=0;G<x.length;G++)N[G]=String.fromCharCode(x[G]);return N.join("")}function T(m){if(m.slice)return m.slice(0);var x=new Uint8Array(m.byteLength);return x.set(new Uint8Array(m)),x.buffer}function I(){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=T(m.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(m)||s(m))?this._bodyArrayBuffer=T(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(C)}),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 N=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,!N&&m._bodyInit!=null&&(N=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")&&N)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(N)}S.prototype.clone=function(){return new S(this,{body:this._bodyInit})};function C(m){var x=new FormData;return m.trim().split("&").forEach(function(N){if(N){var G=N.split("="),ut=G.shift().replace(/\+/g," "),X=G.join("=").replace(/\+/g," ");x.append(decodeURIComponent(ut),decodeURIComponent(X))}}),x}function M(m){var x=new u,N=m.replace(/\r?\n[\t ]+/g," ");return N.split(/\r?\n/).forEach(function(G){var ut=G.split(":"),X=ut.shift().trim();if(X){var Io=ut.join(":").trim();x.append(X,Io)}}),x}I.call(S.prototype);function W(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)}I.call(W.prototype),W.prototype.clone=function(){return new W(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},W.error=function(){var m=new W(null,{status:0,statusText:""});return m.type="error",m};var At=[301,302,303,307,308];W.redirect=function(m,x){if(At.indexOf(x)===-1)throw new RangeError("Invalid status code");return new W(null,{status:x,headers:{location:m}})},e.DOMException=r.DOMException;try{new e.DOMException}catch{e.DOMException=function(x,N){this.message=x,this.name=N;var G=Error(x);this.stack=G.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function Y(m,x){return new Promise(function(N,G){var ut=new S(m,x);if(ut.signal&&ut.signal.aborted)return G(new e.DOMException("Aborted","AbortError"));var X=new XMLHttpRequest;function Io(){X.abort()}X.onload=function(){var Kr={status:X.status,statusText:X.statusText,headers:M(X.getAllResponseHeaders()||"")};Kr.url="responseURL"in X?X.responseURL:Kr.headers.get("X-Request-URL");var Xi="response"in X?X.response:X.responseText;N(new W(Xi,Kr))},X.onerror=function(){G(new TypeError("Network request failed"))},X.ontimeout=function(){G(new TypeError("Network request failed"))},X.onabort=function(){G(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(Kr,Xi){X.setRequestHeader(Xi,Kr)}),ut.signal&&(ut.signal.addEventListener("abort",Io),X.onreadystatechange=function(){X.readyState===4&&ut.signal.removeEventListener("abort",Io)}),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=W),e.Headers=u,e.Request=S,e.Response=W,e.fetch=Y,Object.defineProperty(e,"__esModule",{value:!0}),e}({})})(typeof self<"u"?self:Ed)});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 C=S.prototype.attributeChangedCallback,M=new Set(S.observedAttributes||[]);y(S,M,C);let W={elementClass:S,connectedCallback:S.prototype.connectedCallback,disconnectedCallback:S.prototype.disconnectedCallback,adoptedCallback:S.prototype.adoptedCallback,attributeChangedCallback:C,formAssociated:S.formAssociated,formAssociatedCallback:S.prototype.formAssociatedCallback,formDisabledCallback:S.prototype.formDisabledCallback,formResetCallback:S.prototype.formResetCallback,formStateRestoreCallback:S.prototype.formStateRestoreCallback,observedAttributes:M};this._definitionsByTag.set(O,W),this._definitionsByClass.set(S,W);let At=e.call(o,O);At||(At=h(O),t.call(o,O,At)),this===window.customElements&&(s.set(S,W),W.standInClass=At);let Y=this._awaitingUpgrade.get(O);if(Y){this._awaitingUpgrade.delete(O);for(let x of Y)a.delete(x),v(x,W,!0)}let m=this._whenDefinedPromises.get(O);return m!==void 0&&(m.resolve(S),this._whenDefinedPromises.delete(O)),S}upgrade(){T.push(this),o.upgrade.apply(o,arguments),T.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 C=this._whenDefinedPromises.get(O);return C===void 0&&(C={},C.promise=new Promise(M=>C.resolve=M),this._whenDefinedPromises.set(O,C)),C.promise}_upgradeWhenDefined(O,S,C){let M=this._awaitingUpgrade.get(S);M||this._awaitingUpgrade.set(S,M=new Set),C?M.add(O):M.delete(O)}};let c;window.HTMLElement=function(){let S=c;if(S)return c=void 0,S;let C=s.get(this.constructor);if(!C)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return S=Reflect.construct(r,[],C.standInClass),Object.setPrototypeOf(S,this.constructor.prototype),n.set(S,C),S},window.HTMLElement.prototype=r.prototype;let d=O=>O===document||O instanceof ShadowRoot,u=O=>{let S=O.getRootNode();if(!d(S)){let C=T[T.length-1];if(C instanceof CustomElementRegistry)return C;S=C.getRootNode(),d(S)||(S=l.get(S)?.getRootNode()||document)}return S.customElements},h=O=>class{static get formAssociated(){return!0}constructor(){let C=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(C,HTMLElement.prototype);let M=u(C)||window.customElements,W=M._getDefinition(O);return W?v(C,W):a.set(C,M),C}connectedCallback(){let C=n.get(this);C?C.connectedCallback&&C.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,O,!0)}disconnectedCallback(){let C=n.get(this);C?C.disconnectedCallback&&C.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,O,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let C=n.get(this);C&&C.formAssociated&&C?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let C=n.get(this);C?.formAssociated&&C?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let C=n.get(this);C?.formAssociated&&C?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let C=n.get(this);C?.formAssociated&&C?.formStateRestoreCallback?.apply(this,arguments)}},y=(O,S,C)=>{if(S.size===0||C===void 0)return;let M=O.prototype.setAttribute;M&&(O.prototype.setAttribute=function(Y,m){let x=Y.toLowerCase();if(S.has(x)){let N=this.getAttribute(x);M.call(this,x,m),C.call(this,x,N,m)}else M.call(this,x,m)});let W=O.prototype.removeAttribute;W&&(O.prototype.removeAttribute=function(Y){let m=Y.toLowerCase();if(S.has(m)){let x=this.getAttribute(m);W.call(this,m),C.call(this,m,x,null)}else W.call(this,m)});let At=O.prototype.toggleAttribute;At&&(O.prototype.toggleAttribute=function(Y,m){let x=Y.toLowerCase();if(S.has(x)){let N=this.getAttribute(x);At.call(this,x,m);let G=this.getAttribute(x);C.call(this,x,N,G)}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,C=!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(M=>{O.hasAttribute(M)&&S.attributeChangedCallback.call(O,M,null,O.getAttribute(M))}),C&&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 T=[document],I=(O,S,C=void 0)=>{let M=(C?Object.getPrototypeOf(C):O.prototype)[S];O.prototype[S]=function(){T.push(this);let W=M.apply(C||this,arguments);return W!==void 0&&l.set(W,this),T.pop(),W}};I(ShadowRoot,"createElement",document),I(ShadowRoot,"importNode",document),I(Element,"insertAdjacentHTML");let k=(O,S)=>{let C=Object.getOwnPropertyDescriptor(O.prototype,S);Object.defineProperty(O.prototype,S,{...C,set(M){T.push(this),C.set.call(this,M),T.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,C=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...Y){let m=S.call(this,...Y);return O.set(m,this),m},C.forEach(Y=>{let m=window.ElementInternals.prototype,x=m[Y];m[Y]=function(...N){let G=O.get(this);if(n.get(G).formAssociated===!0)return x?.call(this,...N);throw new DOMException(`Failed to execute ${x} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class M extends Array{constructor(m){super(...m),this._elements=m}get value(){return this._elements.find(m=>m.checked===!0)?.value||""}}class W{constructor(m){let x=new Map;m.forEach((N,G)=>{let ut=N.getAttribute("name"),X=x.get(ut)||[];this[+G]=N,X.push(N),x.set(ut,X)}),this.length=m.length,x.forEach((N,G)=>{N&&(N.length===1?this[G]=N[0]:this[G]=new M(N))})}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=n.get(x);(!N||N.formAssociated===!0)&&m.push(x)}return new W(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 un={};Q(un,{CSSResult:()=>wr,LitElement:()=>me,ReactiveElement:()=>re,_$LE:()=>wp,_$LH:()=>xp,adoptStyles:()=>Ko,css:()=>P,defaultConverter:()=>Go,getCompatibleStyle:()=>to,html:()=>$,isServer:()=>Qf,noChange:()=>Ne,notEqual:()=>an,nothing:()=>B,render:()=>pn,supportsAdoptingStyleSheets:()=>Qr,svg:()=>vp,unsafeCSS:()=>fe});var Po=globalThis,ko=Po.ShadowRoot&&(Po.ShadyCSS===void 0||Po.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ks=Symbol(),$s=new WeakMap,$o=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==ks)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(ko&&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}},Ls=r=>new $o(typeof r=="string"?r:r+"",void 0,ks);var Qi=(r,t)=>{if(ko)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let o=document.createElement("style"),n=Po.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=e.cssText,r.appendChild(o)}},Lo=ko?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let o of t.cssRules)e+=o.cssText;return Ls(e)})(r):r;var{is:tp,defineProperty:ep,getOwnPropertyDescriptor:rp,getOwnPropertyNames:op,getOwnPropertySymbols:ip,getPrototypeOf:np}=Object,Do=globalThis,Ds=Do.trustedTypes,ap=Ds?Ds.emptyScript:"",sp=Do.reactiveElementPolyfillSupport,Gr=(r,t)=>r,Zr={toAttribute(r,t){switch(t){case Boolean:r=r?ap: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}},Mo=(r,t)=>!tp(r,t),Ms={attribute:!0,type:String,converter:Zr,reflect:!1,hasChanged:Mo};Symbol.metadata??=Symbol("metadata"),Do.litPropertyMetadata??=new WeakMap;var qe=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=Ms){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&&ep(this.prototype,t,n)}}static getPropertyDescriptor(t,e,o){let{get:n,set:a}=rp(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)??Ms}static _$Ei(){if(this.hasOwnProperty(Gr("elementProperties")))return;let t=np(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Gr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Gr("properties"))){let e=this.properties,o=[...op(e),...ip(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(Lo(n))}else t!==void 0&&e.push(Lo(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 Qi(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:Zr).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:Zr;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??Mo)(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){}};qe.elementStyles=[],qe.shadowRootOptions={mode:"open"},qe[Gr("elementProperties")]=new Map,qe[Gr("finalized")]=new Map,sp?.({ReactiveElement:qe}),(Do.reactiveElementVersions??=[]).push("2.0.2");var en=globalThis,Uo=en.trustedTypes,Us=Uo?Uo.createPolicy("lit-html",{createHTML:r=>r}):void 0,rn="$lit$",ue=`lit$${(Math.random()+"").slice(9)}$`,on="?"+ue,lp=`<${on}>`,Je=document,Bo=()=>Je.createComment(""),Yr=r=>r===null||typeof r!="object"&&typeof r!="function",Vs=Array.isArray,js=r=>Vs(r)||typeof r?.[Symbol.iterator]=="function",tn=`[
|
|
2
|
-
\f\r]`,qr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Bs=/-->/g,Fs=/>/g,Ye=RegExp(`>|${tn}(?:([^\\s"'>=/]+)(${tn}*=${tn}*(?:[^
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),zs=/'/g,Ws=/"/g,Ks=/^(?:script|style|textarea|title)$/i,Gs=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),Zs=Gs(1),qs=Gs(2),zt=Symbol.for("lit-noChange"),ct=Symbol.for("lit-nothing"),Hs=new WeakMap,Xe=Je.createTreeWalker(Je,129);function Ys(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return Us!==void 0?Us.createHTML(t):t}var Xs=(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=Bs:u[1]!==void 0?s=Fs:u[2]!==void 0?(Ks.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=Ye):u[3]!==void 0&&(s=Ye):s===Ye?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?Ye:u[3]==='"'?Ws:zs):s===Ws||s===zs?s=Ye:s===Bs||s===Fs?s=qr:(s=Ye,n=void 0);let b=s===Ye&&r[l+1].startsWith("/>")?" ":"";a+=s===qr?c+lp:h>=0?(o.push(d),c.slice(0,h)+rn+c.slice(h)+ue+b):c+ue+(h===-2?l:b)}return[Ys(r,a+(r[e]||"<?>")+(t===2?"</svg>":"")),o]},Xr=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]=Xs(t,e);if(this.el=r.createElement(d,o),Xe.currentNode=this.el.content,e===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=Xe.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(rn)){let y=u[s++],b=n.getAttribute(h).split(ue),v=/([.?@])?(.*)/.exec(y);c.push({type:1,index:a,name:v[2],strings:b,ctor:v[1]==="."?zo:v[1]==="?"?Wo:v[1]==="@"?Ho:tr}),n.removeAttribute(h)}else h.startsWith(ue)&&(c.push({type:6,index:a}),n.removeAttribute(h));if(Ks.test(n.tagName)){let h=n.textContent.split(ue),y=h.length-1;if(y>0){n.textContent=Uo?Uo.emptyScript:"";for(let b=0;b<y;b++)n.append(h[b],Bo()),Xe.nextNode(),c.push({type:2,index:++a});n.append(h[y],Bo())}}}else if(n.nodeType===8)if(n.data===on)c.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(ue,h+1))!==-1;)c.push({type:7,index:a}),h+=ue.length-1}a++}}static createElement(t,e){let o=Je.createElement("template");return o.innerHTML=t,o}};function Qe(r,t,e=r,o){if(t===zt)return t;let n=o!==void 0?e._$Co?.[o]:e._$Cl,a=Yr(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=Qe(r,n._$AS(r,t.values),n,o)),t}var Fo=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??Je).importNode(e,!0);Xe.currentNode=n;let a=Xe.nextNode(),s=0,l=0,c=o[0];for(;c!==void 0;){if(s===c.index){let d;c.type===2?d=new Jr(a,a.nextSibling,this,t):c.type===1?d=new c.ctor(a,c.name,c.strings,this,t):c.type===6&&(d=new Vo(a,this,t)),this._$AV.push(d),c=o[++l]}s!==c?.index&&(a=Xe.nextNode(),s++)}return Xe.currentNode=Je,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++}},Jr=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,n){this.type=2,this._$AH=ct,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=Qe(this,t,e),Yr(t)?t===ct||t==null||t===""?(this._$AH!==ct&&this._$AR(),this._$AH=ct):t!==this._$AH&&t!==zt&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):js(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!==ct&&Yr(this._$AH)?this._$AA.nextSibling.data=t:this.$(Je.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=Xr.createElement(Ys(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(e);else{let a=new Fo(n,this),s=a.u(this.options);a.p(e),this.$(s),this._$AH=a}}_$AC(t){let e=Hs.get(t.strings);return e===void 0&&Hs.set(t.strings,e=new Xr(t)),e}T(t){Vs(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(Bo()),this.k(Bo()),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))}},tr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,n,a){this.type=1,this._$AH=ct,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=ct}_$AI(t,e=this,o,n){let a=this.strings,s=!1;if(a===void 0)t=Qe(this,t,e,0),s=!Yr(t)||t!==this._$AH&&t!==zt,s&&(this._$AH=t);else{let l=t,c,d;for(t=a[0],c=0;c<a.length-1;c++)d=Qe(this,l[o+c],e,c),d===zt&&(d=this._$AH[c]),s||=!Yr(d)||d!==this._$AH[c],d===ct?t=ct:t!==ct&&(t+=(d??"")+a[c+1]),this._$AH[c]=d}s&&!n&&this.O(t)}O(t){t===ct?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},zo=class extends tr{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ct?void 0:t}},Wo=class extends tr{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ct)}},Ho=class extends tr{constructor(t,e,o,n,a){super(t,e,o,n,a),this.type=5}_$AI(t,e=this){if((t=Qe(this,t,e,0)??ct)===zt)return;let o=this._$AH,n=t===ct&&o!==ct||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,a=t!==ct&&(o===ct||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)}},Vo=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){Qe(this,t)}},Js={j:rn,P:ue,A:on,C:1,M:Xs,L:Fo,R:js,V:Qe,D:Jr,I:tr,H:Wo,N:Ho,U:zo,B:Vo},cp=en.litHtmlPolyfillSupport;cp?.(Xr,Jr),(en.litHtmlVersions??=[]).push("3.1.0");var jo=globalThis,Qr=jo.ShadowRoot&&(jo.ShadyCSS===void 0||jo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nn=Symbol(),Qs=new WeakMap,wr=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==nn)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(Qr&&t===void 0){let o=e!==void 0&&e.length===1;o&&(t=Qs.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&Qs.set(e,t))}return t}toString(){return this.cssText}},fe=r=>new wr(typeof r=="string"?r:r+"",void 0,nn),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 wr(e,r,nn)},Ko=(r,t)=>{if(Qr)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let o=document.createElement("style"),n=jo.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=e.cssText,r.appendChild(o)}},to=Qr?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let o of t.cssRules)e+=o.cssText;return fe(e)})(r):r;var{is:dp,defineProperty:pp,getOwnPropertyDescriptor:up,getOwnPropertyNames:fp,getOwnPropertySymbols:hp,getPrototypeOf:mp}=Object,Zo=globalThis,tl=Zo.trustedTypes,gp=tl?tl.emptyScript:"",yp=Zo.reactiveElementPolyfillSupport,eo=(r,t)=>r,Go={toAttribute(r,t){switch(t){case Boolean:r=r?gp: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}},an=(r,t)=>!dp(r,t),el={attribute:!0,type:String,converter:Go,reflect:!1,hasChanged:an};Symbol.metadata??=Symbol("metadata"),Zo.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=el){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&&pp(this.prototype,t,n)}}static getPropertyDescriptor(t,e,o){let{get:n,set:a}=up(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)??el}static _$Ei(){if(this.hasOwnProperty(eo("elementProperties")))return;let t=mp(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(eo("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(eo("properties"))){let e=this.properties,o=[...fp(e),...hp(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(to(n))}else t!==void 0&&e.push(to(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 Ko(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:Go).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:Go;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??an)(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[eo("elementProperties")]=new Map,re[eo("finalized")]=new Map,yp?.({ReactiveElement:re}),(Zo.reactiveElementVersions??=[]).push("2.0.2");var ln=globalThis,qo=ln.trustedTypes,rl=qo?qo.createPolicy("lit-html",{createHTML:r=>r}):void 0,cn="$lit$",he=`lit$${(Math.random()+"").slice(9)}$`,dn="?"+he,bp=`<${dn}>`,or=document,oo=()=>or.createComment(""),io=r=>r===null||typeof r!="object"&&typeof r!="function",ll=Array.isArray,cl=r=>ll(r)||typeof r?.[Symbol.iterator]=="function",sn=`[
|
|
4
|
-
\f\r]`,ro=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ol=/-->/g,il=/>/g,er=RegExp(`>|${sn}(?:([^\\s"'>=/]+)(${sn}*=${sn}*(?:[^
|
|
5
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),nl=/'/g,al=/"/g,dl=/^(?:script|style|textarea|title)$/i,pl=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),$=pl(1),vp=pl(2),Ne=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),sl=new WeakMap,rr=or.createTreeWalker(or,129);function ul(r,t){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return rl!==void 0?rl.createHTML(t):t}var fl=(r,t)=>{let e=r.length-1,o=[],n,a=t===2?"<svg>":"",s=ro;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===ro?u[1]==="!--"?s=ol:u[1]!==void 0?s=il:u[2]!==void 0?(dl.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=er):u[3]!==void 0&&(s=er):s===er?u[0]===">"?(s=n??ro,h=-1):u[1]===void 0?h=-2:(h=s.lastIndex-u[2].length,d=u[1],s=u[3]===void 0?er:u[3]==='"'?al:nl):s===al||s===nl?s=er:s===ol||s===il?s=ro:(s=er,n=void 0);let b=s===er&&r[l+1].startsWith("/>")?" ":"";a+=s===ro?c+bp:h>=0?(o.push(d),c.slice(0,h)+cn+c.slice(h)+he+b):c+he+(h===-2?l:b)}return[ul(r,a+(r[e]||"<?>")+(t===2?"</svg>":"")),o]},no=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]=fl(t,e);if(this.el=r.createElement(d,o),rr.currentNode=this.el.content,e===2){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=rr.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(cn)){let y=u[s++],b=n.getAttribute(h).split(he),v=/([.?@])?(.*)/.exec(y);c.push({type:1,index:a,name:v[2],strings:b,ctor:v[1]==="."?Xo:v[1]==="?"?Jo:v[1]==="@"?Qo:nr}),n.removeAttribute(h)}else h.startsWith(he)&&(c.push({type:6,index:a}),n.removeAttribute(h));if(dl.test(n.tagName)){let h=n.textContent.split(he),y=h.length-1;if(y>0){n.textContent=qo?qo.emptyScript:"";for(let b=0;b<y;b++)n.append(h[b],oo()),rr.nextNode(),c.push({type:2,index:++a});n.append(h[y],oo())}}}else if(n.nodeType===8)if(n.data===dn)c.push({type:2,index:a});else{let h=-1;for(;(h=n.data.indexOf(he,h+1))!==-1;)c.push({type:7,index:a}),h+=he.length-1}a++}}static createElement(t,e){let o=or.createElement("template");return o.innerHTML=t,o}};function ir(r,t,e=r,o){if(t===Ne)return t;let n=o!==void 0?e._$Co?.[o]:e._$Cl,a=io(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=ir(r,n._$AS(r,t.values),n,o)),t}var Yo=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??or).importNode(e,!0);rr.currentNode=n;let a=rr.nextNode(),s=0,l=0,c=o[0];for(;c!==void 0;){if(s===c.index){let d;c.type===2?d=new Er(a,a.nextSibling,this,t):c.type===1?d=new c.ctor(a,c.name,c.strings,this,t):c.type===6&&(d=new ti(a,this,t)),this._$AV.push(d),c=o[++l]}s!==c?.index&&(a=rr.nextNode(),s++)}return rr.currentNode=or,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++}},Er=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=ir(this,t,e),io(t)?t===B||t==null||t===""?(this._$AH!==B&&this._$AR(),this._$AH=B):t!==this._$AH&&t!==Ne&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):cl(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&&io(this._$AH)?this._$AA.nextSibling.data=t:this.$(or.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=no.createElement(ul(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(e);else{let a=new Yo(n,this),s=a.u(this.options);a.p(e),this.$(s),this._$AH=a}}_$AC(t){let e=sl.get(t.strings);return e===void 0&&sl.set(t.strings,e=new no(t)),e}T(t){ll(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(oo()),this.k(oo()),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))}},nr=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=ir(this,t,e,0),s=!io(t)||t!==this._$AH&&t!==Ne,s&&(this._$AH=t);else{let l=t,c,d;for(t=a[0],c=0;c<a.length-1;c++)d=ir(this,l[o+c],e,c),d===Ne&&(d=this._$AH[c]),s||=!io(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??"")}},Xo=class extends nr{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===B?void 0:t}},Jo=class extends nr{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==B)}},Qo=class extends nr{constructor(t,e,o,n,a){super(t,e,o,n,a),this.type=5}_$AI(t,e=this){if((t=ir(this,t,e,0)??B)===Ne)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)}},ti=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){ir(this,t)}},xp={j:cn,P:he,A:dn,C:1,M:fl,L:Yo,R:cl,V:ir,D:Er,I:nr,H:Jo,N:Qo,U:Xo,B:ti},Sp=ln.litHtmlPolyfillSupport;Sp?.(no,Er),(ln.litHtmlVersions??=[]).push("3.1.0");var pn=(r,t,e)=>{let o=e?.renderBefore??t,n=o._$litPart$;if(n===void 0){let a=e?.renderBefore??null;o._$litPart$=n=new Er(t.insertBefore(oo(),a),a,void 0,e??{})}return n._$AI(r),n};var me=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=pn(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Ne}};me._$litElement$=!0,me.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:me});var Op=globalThis.litElementPolyfillSupport;Op?.({LitElement:me});var wp={_$AK:(r,t,e)=>{r._$AK(t,e)},_$AL:r=>r._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var Qf=!1;var hn={};Q(hn,{customElement:()=>Ep,eventOptions:()=>ge,property:()=>g,query:()=>Z,queryAll:()=>Rp,queryAssignedElements:()=>fn,queryAssignedNodes:()=>ao,queryAsync:()=>_p,standardProperty:()=>hl,state:()=>H});var Ep=r=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(r,t)}):customElements.define(r,t)};var Cp={attribute:!0,type:String,converter:Zr,reflect:!1,hasChanged:Mo},hl=(r=Cp,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"?hl(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 ge(r){return(t,e)=>{let o=typeof t=="function"?t:t[e];Object.assign(o,r)}}var qt=(r,t,e)=>(e.configurable=!0,e.enumerable=!0,Reflect.decorate&&typeof t!="object"&&Object.defineProperty(r,t,e),e);function Z(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 qt(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 qt(e,o,{get(){return a(this)}})}}var Ap;function Rp(r){return(t,e)=>qt(t,e,{get(){return(this.renderRoot??(Ap??=document.createDocumentFragment())).querySelectorAll(r)}})}function _p(r){return(t,e)=>qt(t,e,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function fn(r){return(t,e)=>{let{slot:o,selector:n}=r??{},a="slot"+(o?`[name=${o}]`:":not([name])");return qt(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 ao(r){return(t,e)=>{let{slot:o}=r??{},n="slot"+(o?`[name=${o}]`:":not([name])");return qt(t,e,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var gn={};Q(gn,{repeat:()=>mn});var Te={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Ie=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:Np}=Js;var ml=()=>document.createComment(""),Cr=(r,t,e)=>{let o=r._$AA.parentNode,n=t===void 0?r._$AB:t._$AA;if(e===void 0){let a=o.insertBefore(ml(),n),s=o.insertBefore(ml(),n);e=new Np(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},Pe=(r,t,e=r)=>(r._$AI(t,e),r),Tp={},gl=(r,t=Tp)=>r._$AH=t,yl=r=>r._$AH,ei=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 bl=(r,t,e)=>{let o=new Map;for(let n=t;n<=e;n++)o.set(r[n],n);return o},mn=Ie(class extends oe{constructor(r){if(super(r),r.type!==Te.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=yl(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]=Pe(n[h],a[b]),h++,b++;else if(l[y]===s[v])c[v]=Pe(n[y],a[v]),y--,v--;else if(l[h]===s[v])c[v]=Pe(n[h],a[v]),Cr(r,c[v+1],n[h]),h++,v--;else if(l[y]===s[b])c[b]=Pe(n[y],a[b]),Cr(r,n[h],n[y]),y--,b++;else if(d===void 0&&(d=bl(s,b,v),u=bl(l,h,y)),d.has(l[h]))if(d.has(l[y])){let w=u.get(s[b]),T=w!==void 0?n[w]:null;if(T===null){let I=Cr(r,n[h]);Pe(I,a[b]),c[b]=I}else c[b]=Pe(T,a[b]),Cr(r,n[h],T),n[w]=null;b++}else ei(n[y]),y--;else ei(n[h]),h++;for(;b<=v;){let w=Cr(r,c[v+1]);Pe(w,a[b]),c[b++]=w}for(;h<=y;){let w=n[h++];w!==null&&ei(w)}return this.dt=s,gl(r,c),zt}});var yn={};Q(yn,{classMap:()=>Tt});var Tt=Ie(class extends oe{constructor(r){if(super(r),r.type!==Te.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 zt}});var bn={};Q(bn,{styleMap:()=>Pp});var vl="important",Ip=" !"+vl,Pp=Ie(class extends oe{constructor(r){if(super(r),r.type!==Te.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(Ip);o.includes("-")||a?e.setProperty(o,a?n.slice(0,-11):n,a?vl:""):e[o]=n}}return zt}});var xn={};Q(xn,{UnsafeHTMLDirective:()=>Ar,unsafeHTML:()=>vn});var Ar=class extends oe{constructor(t){if(super(t),this.et=ct,t.type!==Te.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===ct||t==null)return this.vt=void 0,this.et=t;if(t===zt)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:[]}}};Ar.directiveName="unsafeHTML",Ar.resultType=1;var vn=Ie(Ar);var wn={};Q(wn,{CacheRegistry:()=>ie});var On={};Q(On,{CancelablePromise:()=>Rr,CanceledPromiseError:()=>ar,cancelable:()=>Sn});var ar=class extends Error{constructor(t,e,o){super(t),this.canceledPromiseResult=e,this.canceledPromiseError=o}},Rr=class extends Promise{constructor(t){super((e,o)=>t(n=>{this.isCanceled?o(new ar("Promise has been canceled",n)):e(n)},n=>{this.isCanceled?o(new ar("Promise has been canceled",void 0,n)):o(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Sn=r=>new Rr((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 Rr&&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=Sn(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 En={};Q(En,{ClusteringHelper:()=>so});var so=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 Cn={};Q(Cn,{Debouncer:()=>ot});var ot=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 Nn={};Q(Nn,{customElement:()=>V,isNumber:()=>Sl,jsonProperty:()=>ne,optionalNumberProperty:()=>Mp});var _n={};Q(_n,{dateReviver:()=>$p,deepEqual:()=>Yt,delay:()=>ri,eventPathContainsMatchingElement:()=>Lp,flatDeep:()=>xl,hasChanged:()=>co,last:()=>Dp,minmax:()=>Rn,parseDate:()=>oi,waitFor:()=>lo,waitUntil:()=>An});var ri=r=>new Promise(t=>setTimeout(t,r));async function An(r,t=10,e=2e4){await lo(async()=>await r()||void 0,t,e)}async function lo(r,t=10,e=2e4){let o=await r(),n,a;for(n=a=performance.now();o==null&&(!e||a-n<e);)await ri(t),o=await r(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function xl(r,t){return r.flatMap(e=>[e,...xl(t(e),t)])}function $p(...r){return function(t,e){return r.includes(t)?oi(e):e}}function oi(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 kp(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(!Yt(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(!Yt(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(!Yt(r[a],t[a]))return!1}return!0}return r!==r&&t!==t}function Yt(r,t){try{return kp(r,t)}catch{return!1}}function co(r,t){return!Yt(r,t)}function Lp(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 Rn(r,t,e){return Math.min(Math.max(r,t),e)}function Dp(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:co,...t??{}})}function Mp(r){return g({type:Object,converter:{fromAttribute:t=>{if(t!=null)return Sl(t)?+t:void 0},toAttribute:t=>t==null?void 0:""+t},...r??{}})}function Sl(r){return!isNaN(parseFloat(r))}var ia={};Q(ia,{designSystemVariables:()=>R});var oa={};Q(oa,{DesignSystemFamily:()=>sr,DesignSystemSize:()=>be,FtCssVariableFactory:()=>i,badge:()=>Wp,banner:()=>zp,breadcrumb:()=>Hp,button:()=>A,chart:()=>ru,checkbox:()=>iu,chip:()=>Bp,collapsible:()=>tu,comboboxMultiSelect:()=>Jp,comboboxSingleSelect:()=>Xp,drawer:()=>Kp,floatingMenu:()=>Yp,foundation:()=>p,link:()=>Fp,modal:()=>jp,notice:()=>ou,notification:()=>su,pageHeader:()=>Vp,popover:()=>Qp,radio:()=>au,resolveFamilyClass:()=>ea,resolveSizeClass:()=>ra,semantic:()=>f,setVariable:()=>E,switch_:()=>eu,tabs:()=>Gp,textArea:()=>qp,textInput:()=>Zp,toggle:()=>nu,tooltip:()=>lu,typographies:()=>po,typographyBody1Medium:()=>Ln,typographyBody1Regular:()=>kn,typographyBody1Semibold:()=>Dn,typographyBody2Medium:()=>Un,typographyBody2MediumUnderline:()=>Ol,typographyBody2Regular:()=>Mn,typographyBody2Semibold:()=>Bn,typographyCaption1Bold:()=>Zn,typographyCaption1Medium:()=>Kn,typographyCaption1Semibold:()=>Gn,typographyCaption2Bold:()=>Xn,typographyCaption2Medium:()=>qn,typographyCaption2Semibold:()=>Yn,typographyCaption3Bold:()=>ta,typographyCaption3Medium:()=>Jn,typographyCaption3Semibold:()=>Qn,typographyDisplay:()=>Tn,typographyLabel1Bold:()=>Wn,typographyLabel1Medium:()=>Fn,typographyLabel1Semibold:()=>zn,typographyLabel2Bold:()=>jn,typographyLabel2Medium:()=>Hn,typographyLabel2Semibold:()=>Vn,typographyTitle1:()=>In,typographyTitle2:()=>Pn,typographyTitle3:()=>$n,typographyVariants:()=>Up});var ye=r=>typeof r=="string"?fe(r):r,i=class{static create(t,e,o,n){let a=l=>ye(l??n),s=P`var(${ye(t)}, ${a(n)})`;return s.name=t,s.description=e,s.category=o,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>P`var(${ye(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(${ye(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(${ye(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):ye(a??t.lastResortDefaultValue()),n=P`var(${ye(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(${ye(t.name)}, ${o(a)})`,n.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>t.lastResortDefaultValue(),n}};function E(r,t){return ye(`${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)")},Tn={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")},In={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")},Pn={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")},$n={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")},kn={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")},Ln={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")},Dn={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")},Mn={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")},Un={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")},Ol={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")},Bn={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")},Fn={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")},zn={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")},Wn={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")},Hn={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")},Vn={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")},jn={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")},Kn={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")},Gn={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")},Zn={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")},qn={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")},Yn={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")},Xn={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")},Jn={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")},Qn={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")},ta={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")},po={display:Tn,"title-1":In,"title-2":Pn,"title-3":$n,"body-1-regular":kn,"body-1-medium":Ln,"body-1-semibold":Dn,"body-2-regular":Mn,"body-2-medium":Un,"body-2-medium-underline":Ol,"body-2-semibold":Bn,"label-1-medium":Fn,"label-1-semibold":zn,"label-1-bold":Wn,"label-2-medium":Hn,"label-2-semibold":Vn,"label-2-bold":jn,"caption-1-medium":Kn,"caption-1-semibold":Gn,"caption-1-bold":Zn,"caption-2-medium":qn,"caption-2-semibold":Yn,"caption-2-bold":Xn,"caption-3-medium":Jn,"caption-3-semibold":Qn,"caption-3-bold":ta},Up=["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 A={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"),mediumHeight:i.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:i.extend("--ft-button-medium-horizontal-padding","",p.spacing3),mediumGap:i.extend("--ft-button-medium-gap","",p.spacing2),mediumBorderRadius:i.extend("--ft-button-medium-border-radius","",p.borderRadiusS),mediumIconSize:i.extend("--ft-button-medium-icon-size","",p.iconSize2),mediumBorderWidth:i.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:i.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:i.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:i.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ft-button-small-horizontal-padding","",p.spacing2),smallGap:i.extend("--ft-button-small-gap","",p.spacing1),smallBorderRadius:i.extend("--ft-button-small-border-radius","",p.borderRadiusS),smallIconSize:i.extend("--ft-button-small-icon-size","",p.iconSize1),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","20px"),xSmallHeight:i.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:i.extend("--ft-button-x-small-icon-size","",p.iconSize1),xSmallFocusOutlineOffset:i.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:i.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:i.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:i.extend("--ft-button-round-border-radius","",p.borderRadiusPill),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 Bp={largeMinHeight:i.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ft-chip-large-horizontal-padding","",p.spacing3),largeButtonRightPadding:i.extend("--ft-chip-large-button-right-padding","",p.spacing1),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.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ft-chip-large-icon-size","",p.iconSize3),mediumMinHeight:i.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ft-chip-medium-horizontal-padding","",p.spacing2),mediumButtonRightPadding:i.extend("--ft-chip-medium-button-right-padding","",p.spacing05),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.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ft-chip-medium-icon-size","",p.iconSize2),smallMinHeight:i.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ft-chip-small-horizontal-padding","",p.spacing1),smallButtonRightPadding:i.extend("--ft-chip-small-button-right-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.create("--ft-chip-small-border-radius","","SIZE","10px"),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 Fp={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 zp={iconSize:i.extend("--ft-banner-icon-size","",p.iconSize5),borderWidth:i.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:i.extend("--ft-banner-left-padding","",p.spacing6),rightPadding:i.extend("--ft-banner-right-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 Wp={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 Hp={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 Vp={horizontalPadding:i.extend("--ft-page-header-horizontal-padding","",p.spacing6),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 jp={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 Kp={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 Gp={offBorderBottomWidth:i.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:i.extend("--ft-tabs-off-hover-state-layer-opacity","",p.opacity8),offDefaultStateLayerOpacity:i.extend("--ft-tabs-off-default-state-layer-opacity","",p.opacity0),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),offBorderBottomColor:i.extend("--ft-tabs-off-border-bottom-color","",f.borderGlobalSubtle),activeTabIndicatorHeight:i.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),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),onHoverStateLayerOpacity:i.extend("--ft-tabs-on-hover-state-layer-opacity","",p.opacity16),onDefaultStateLayerOpacity:i.extend("--ft-tabs-on-default-state-layer-opacity","",p.opacity8),onFocusStateLayerOpacity:i.extend("--ft-tabs-on-focus-state-layer-opacity","",p.opacity16),onActiveStateLayerOpacity:i.extend("--ft-tabs-on-active-state-layer-opacity","",p.opacity24),onColor:i.extend("--ft-tabs-on-color","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-tabs-on-state-layer-color","",f.contentActionPrimary),onActiveTabIndicatorColor:i.extend("--ft-tabs-on-active-tab-indicator-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 Zp={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 qp={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 Yp={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),shadow:i.extend("--ft-floating-menu-shadow","",p.shadowElevation02)};var Xp={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 Jp={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 Qp={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),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 tu={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 eu={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 ru={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 ou={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 iu={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 nu={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 au={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 su={iconSize:i.extend("--ft-notification-icon-size","",p.iconSize4),leftPadding:i.extend("--ft-notification-left-padding","",p.spacing5),rightPadding:i.extend("--ft-notification-right-padding","",p.spacing4),verticalPadding:i.extend("--ft-notification-vertical-padding","",p.spacing3),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 lu={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.shadowElevation02),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","256px"),gap:i.extend("--ft-tooltip-gap","",p.spacing05)};var sr;(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(sr||(sr={}));var be;(function(r){r.large="large",r.medium="medium",r.small="small"})(be||(be={}));function ea(r){return`ftds--family-${r}`}function ra(r){return`ftds--size-${r}`}var R={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 sa={};Q(sa,{FtNotificationEvent:()=>It,PostResizeEvent:()=>aa,PreResizeEvent:()=>na});var It=class extends CustomEvent{constructor(t){super("ft-notification",{bubbles:!0,composed:!0,detail:t})}},na=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},aa=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};var ba={};Q(ba,{computeOffsetPosition:()=>yo});var El=["top","right","bottom","left"],wl=["start","end"],ca=El.reduce((r,t)=>r.concat(t,t+"-"+wl[0],t+"-"+wl[1]),[]),uo=Math.min,$e=Math.max,fo=Math.round;var ve=r=>({x:r,y:r}),cu={left:"right",right:"left",bottom:"top",top:"bottom"},du={start:"end",end:"start"};function da(r,t,e){return $e(r,uo(t,e))}function ii(r,t){return typeof r=="function"?r(t):r}function _r(r){return r.split("-")[0]}function ke(r){return r.split("-")[1]}function pa(r){return r==="x"?"y":"x"}function ua(r){return r==="y"?"height":"width"}function ni(r){return["top","bottom"].includes(_r(r))?"y":"x"}function fa(r){return pa(ni(r))}function Cl(r,t,e){e===void 0&&(e=!1);let o=ke(r),n=fa(r),a=ua(n),s=n==="x"?o===(e?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(s=la(s)),[s,la(s)]}function Al(r){return r.replace(/start|end/g,t=>du[t])}function la(r){return r.replace(/left|right|bottom|top/g,t=>cu[t])}function pu(r){return{top:0,right:0,bottom:0,left:0,...r}}function Rl(r){return typeof r!="number"?pu(r):{top:r,right:r,bottom:r,left:r}}function lr(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function _l(r,t,e){let{reference:o,floating:n}=r,a=ni(t),s=fa(t),l=ua(s),c=_r(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(ke(t)){case"start":b[s]-=y*(e&&d?-1:1);break;case"end":b[s]+=y*(e&&d?-1:1);break}return b}var Nl=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}=_l(d,o,c),y=o,b={},v=0;for(let w=0;w<l.length;w++){let{name:T,fn:I}=l[w],{x:k,y:O,data:S,reset:C}=await I({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,[T]:{...b[T],...S}},C&&v<=50){v++,typeof C=="object"&&(C.placement&&(y=C.placement),C.rects&&(d=C.rects===!0?await s.getElementRects({reference:r,floating:t,strategy:n}):C.rects),{x:u,y:h}=_l(d,y,c)),w=-1;continue}}return{x:u,y:h,placement:y,strategy:n,middlewareData:b}};async function ha(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}=ii(t,r),v=Rl(b),T=l[y?h==="floating"?"reference":"floating":h],I=lr(await a.getClippingRect({element:(e=await(a.isElement==null?void 0:a.isElement(T)))==null||e?T:T.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},C=lr(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:k,offsetParent:O,strategy:c}):k);return{top:(I.top-C.top+v.top)/S.y,bottom:(C.bottom-I.bottom+v.bottom)/S.y,left:(I.left-C.left+v.left)/S.x,right:(C.right-I.right+v.right)/S.x}}function uu(r,t,e){return(r?[...e.filter(n=>ke(n)===r),...e.filter(n=>ke(n)!==r)]:e.filter(n=>_r(n)===n)).filter(n=>r?ke(n)===r||(t?Al(n)!==n:!1):!0)}var ma=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=ca,autoAlignment:b=!0,...v}=ii(r,t),w=h!==void 0||y===ca?uu(h||null,b,y):y,T=await ha(t,v),I=((e=s.autoPlacement)==null?void 0:e.index)||0,k=w[I];if(k==null)return{};let O=Cl(k,a,await(c.isRTL==null?void 0:c.isRTL(d.floating)));if(l!==k)return{reset:{placement:w[0]}};let S=[T[_r(k)],T[O[0]],T[O[1]]],C=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:k,overflows:S}],M=w[I+1];if(M)return{data:{index:I+1,overflows:C},reset:{placement:M}};let W=C.map(m=>{let x=ke(m.placement);return[m.placement,x&&u?m.overflows.slice(0,2).reduce((N,G)=>N+G,0):m.overflows[0],m.overflows]}).sort((m,x)=>m[1]-x[1]),Y=((n=W.filter(m=>m[2].slice(0,ke(m[0])?2:3).every(x=>x<=0))[0])==null?void 0:n[0])||W[0][0];return Y!==l?{data:{index:I+1,overflows:C},reset:{placement:Y}}:{}}}};var ga=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:T=>{let{x:I,y:k}=T;return{x:I,y:k}}},...c}=ii(r,t),d={x:e,y:o},u=await ha(t,c),h=ni(_r(n)),y=pa(h),b=d[y],v=d[h];if(a){let T=y==="y"?"top":"left",I=y==="y"?"bottom":"right",k=b+u[T],O=b-u[I];b=da(k,b,O)}if(s){let T=h==="y"?"top":"left",I=h==="y"?"bottom":"right",k=v+u[T],O=v-u[I];v=da(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 Il(r)?(r.nodeName||"").toLowerCase():"#document"}function Dt(r){var t;return(r==null||(t=r.ownerDocument)==null?void 0:t.defaultView)||window}function Se(r){var t;return(t=(Il(r)?r.ownerDocument:r.document)||window.document)==null?void 0:t.documentElement}function Il(r){return r instanceof Node||r instanceof Dt(r).Node}function ae(r){return r instanceof Element||r instanceof Dt(r).Element}function Xt(r){return r instanceof HTMLElement||r instanceof Dt(r).HTMLElement}function Tl(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof Dt(r).ShadowRoot}function Nr(r){let{overflow:t,overflowX:e,overflowY:o,display:n}=Wt(r);return/auto|scroll|overlay|hidden|clip/.test(t+o+e)&&!["inline","contents"].includes(n)}function Pl(r){return["table","td","th"].includes(xe(r))}function si(r){let t=li(),e=Wt(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 $l(r){let t=cr(r);for(;Xt(t)&&!ho(t);){if(si(t))return t;t=cr(t)}return null}function li(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ho(r){return["html","body","#document"].includes(xe(r))}function Wt(r){return Dt(r).getComputedStyle(r)}function mo(r){return ae(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function cr(r){if(xe(r)==="html")return r;let t=r.assignedSlot||r.parentNode||Tl(r)&&r.host||Se(r);return Tl(t)?t.host:t}function kl(r){let t=cr(r);return ho(t)?r.ownerDocument?r.ownerDocument.body:r.body:Xt(t)&&Nr(t)?t:kl(t)}function ai(r,t,e){var o;t===void 0&&(t=[]),e===void 0&&(e=!0);let n=kl(r),a=n===((o=r.ownerDocument)==null?void 0:o.body),s=Dt(n);return a?t.concat(s,s.visualViewport||[],Nr(n)?n:[],s.frameElement&&e?ai(s.frameElement):[]):t.concat(n,ai(n,[],e))}function Ml(r){let t=Wt(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=fo(e)!==a||fo(o)!==s;return l&&(e=a,o=s),{width:e,height:o,$:l}}function Ul(r){return ae(r)?r:r.contextElement}function Tr(r){let t=Ul(r);if(!Xt(t))return ve(1);let e=t.getBoundingClientRect(),{width:o,height:n,$:a}=Ml(t),s=(a?fo(e.width):e.width)/o,l=(a?fo(e.height):e.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var fu=ve(0);function Bl(r){let t=Dt(r);return!li()||!t.visualViewport?fu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function hu(r,t,e){return t===void 0&&(t=!1),!e||t&&e!==Dt(r)?!1:t}function go(r,t,e,o){t===void 0&&(t=!1),e===void 0&&(e=!1);let n=r.getBoundingClientRect(),a=Ul(r),s=ve(1);t&&(o?ae(o)&&(s=Tr(o)):s=Tr(r));let l=hu(a,e,o)?Bl(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=Dt(a),b=o&&ae(o)?Dt(o):o,v=y.frameElement;for(;v&&o&&b!==y;){let w=Tr(v),T=v.getBoundingClientRect(),I=Wt(v),k=T.left+(v.clientLeft+parseFloat(I.paddingLeft))*w.x,O=T.top+(v.clientTop+parseFloat(I.paddingTop))*w.y;c*=w.x,d*=w.y,u*=w.x,h*=w.y,c+=k,d+=O,v=Dt(v).frameElement}}return lr({width:u,height:h,x:c,y:d})}function mu(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"||Nr(a))&&(s=mo(e)),Xt(e))){let d=go(e);l=Tr(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 gu(r){return Array.from(r.getClientRects())}function Fl(r){return go(Se(r)).left+mo(r).scrollLeft}function yu(r){let t=Se(r),e=mo(r),o=r.ownerDocument.body,n=$e(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=$e(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-e.scrollLeft+Fl(r),l=-e.scrollTop;return Wt(o).direction==="rtl"&&(s+=$e(t.clientWidth,o.clientWidth)-n),{width:n,height:a,x:s,y:l}}function bu(r,t){let e=Dt(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=li();(!d||d&&t==="fixed")&&(l=n.offsetLeft,c=n.offsetTop)}return{width:a,height:s,x:l,y:c}}function vu(r,t){let e=go(r,!0,t==="fixed"),o=e.top+r.clientTop,n=e.left+r.clientLeft,a=Xt(r)?Tr(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 Ll(r,t,e){let o;if(t==="viewport")o=bu(r,e);else if(t==="document")o=yu(Se(r));else if(ae(t))o=vu(t,e);else{let n=Bl(r);o={...t,x:t.x-n.x,y:t.y-n.y}}return lr(o)}function zl(r,t){let e=cr(r);return e===t||!ae(e)||ho(e)?!1:Wt(e).position==="fixed"||zl(e,t)}function xu(r,t){let e=t.get(r);if(e)return e;let o=ai(r,[],!1).filter(l=>ae(l)&&xe(l)!=="body"),n=null,a=Wt(r).position==="fixed",s=a?cr(r):r;for(;ae(s)&&!ho(s);){let l=Wt(s),c=si(s);!c&&l.position==="fixed"&&(n=null),(a?!c&&!n:!c&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||Nr(s)&&!c&&zl(r,s))?o=o.filter(u=>u!==s):n=l,s=cr(s)}return t.set(r,o),o}function Su(r){let{element:t,boundary:e,rootBoundary:o,strategy:n}=r,s=[...e==="clippingAncestors"?xu(t,this._c):[].concat(e),o],l=s[0],c=s.reduce((d,u)=>{let h=Ll(t,u,n);return d.top=$e(h.top,d.top),d.right=uo(h.right,d.right),d.bottom=uo(h.bottom,d.bottom),d.left=$e(h.left,d.left),d},Ll(t,l,n));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Ou(r){return Ml(r)}function wu(r,t,e){let o=Xt(t),n=Se(t),a=e==="fixed",s=go(r,!0,a,t),l={scrollLeft:0,scrollTop:0},c=ve(0);if(o||!o&&!a)if((xe(t)!=="body"||Nr(n))&&(l=mo(t)),o){let d=go(t,!0,a,t);c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}else n&&(c.x=Fl(n));return{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function Dl(r,t){return!Xt(r)||Wt(r).position==="fixed"?null:t?t(r):r.offsetParent}function Wl(r,t){let e=Dt(r);if(!Xt(r))return e;let o=Dl(r,t);for(;o&&Pl(o)&&Wt(o).position==="static";)o=Dl(o,t);return o&&(xe(o)==="html"||xe(o)==="body"&&Wt(o).position==="static"&&!si(o))?e:o||$l(r)||e}var Eu=async function(r){let{reference:t,floating:e,strategy:o}=r,n=this.getOffsetParent||Wl,a=this.getDimensions;return{reference:wu(t,await n(e),o),floating:{x:0,y:0,...await a(e)}}};function Cu(r){return Wt(r).direction==="rtl"}var ci={convertOffsetParentRelativeRectToViewportRelativeRect:mu,getDocumentElement:Se,getClippingRect:Su,getOffsetParent:Wl,getElementRects:Eu,getClientRects:gu,getDimensions:Ou,getScale:Tr,isElement:ae,isRTL:Cu};var Hl=(r,t,e)=>{let o=new Map,n={platform:ci,...e},a={...n.platform,_c:o};return Nl(r,t,{...n,platform:a})};function Vl(r){return Au(r)}function ya(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function Au(r){for(let t=r;t;t=ya(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=ya(r);t;t=ya(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 yo(r,t,e){return Hl(r,t,{platform:{...ci,getOffsetParent:o=>ci.getOffsetParent(o,Vl)},middleware:[ga({crossAxis:!0}),ma({allowedPlacements:[e]})]})}var Oa={};Q(Oa,{FtdsBase:()=>Sa,toFtdsBase:()=>ui});var xa={};Q(xa,{FtLitElement:()=>F});var va={};Q(va,{ScopedRegistryLitElement:()=>bo});var di=window,Ru=di.ShadowRoot&&(di.ShadyCSS===void 0||di.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,nb=Symbol();var jl=(r,t)=>{Ru?r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{let o=document.createElement("style"),n=di.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=e.cssText,r.appendChild(o)})};var bo=class extends me{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 jl(o,t.elementStyles),o}};var pi=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},ql,Kl=Symbol("constructorPrototype"),Gl=Symbol("constructorName"),Yl=Symbol("exportpartsDebouncer"),Zl=Symbol("dynamicDependenciesLoaded"),F=class extends bo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ql]=new ot(5),this[Gl]=this.constructor.name,this[Kl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Gl]&&Object.setPrototypeOf(this,this[Kl])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(e){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",e)}let t=this.constructor;t[Zl]||(t[Zl]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate()})}contentAvailableCallback(t){}applyCustomStylesheet(t){var e,o,n;if(((o=(e=this.shadowRoot)===null||e===void 0?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(t.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var t,e,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[Yl].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(", "))}};ql=Yl;pi([g()],F.prototype,"exportpartsPrefix",void 0);pi([ne([])],F.prototype,"exportpartsPrefixes",void 0);pi([g()],F.prototype,"customStylesheet",void 0);pi([H()],F.prototype,"useAdoptedStyleSheets",void 0);var Xl=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};function ui(r){class t extends r{constructor(){super(...arguments),this.size=be.medium,this.family=sr.neutral}getDesignSystemBaseClasses(){return{[ea(this.family)]:!0,[ra(this.size)]:!0}}}return Xl([g()],t.prototype,"size",void 0),Xl([g()],t.prototype,"family",void 0),t}var Sa=class extends ui(F){};var Jl={};var Ca={};Q(Ca,{highlightHtml:()=>Ea,highlightHtmlColorCssVariable:()=>Ql,highlightHtmlStyles:()=>Nu});var dr=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 vo=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 dr(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 dr.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=dr.matches(o,e),a=this.matchesExclude(o);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function wa(r){let t=new vo(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 _u=wa,Ql=i.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Nu=P`
|
|
1
|
+
"use strict";(()=>{var Qd=Object.create;var nn=Object.defineProperty;var ep=Object.getOwnPropertyDescriptor;var tp=Object.getOwnPropertyNames;var rp=Object.getPrototypeOf,op=Object.prototype.hasOwnProperty;var ip=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),ee=(r,e)=>{for(var t in e)nn(r,t,{get:e[t],enumerable:!0})},np=(r,e,t,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of tp(e))!op.call(r,n)&&n!==t&&nn(r,n,{get:()=>e[n],enumerable:!(o=ep(e,n))||o.enumerable});return r};var ap=(r,e,t)=>(t=r!=null?Qd(rp(r)):{},np(e||!r||!r.__esModule?nn(t,"default",{value:r,enumerable:!0}):t,r));var Pd=ip((Yt,Id)=>{var Mi=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,Ui=function(){function r(){this.fetch=!1,this.DOMException=Mi.DOMException}return r.prototype=Mi,new r}();(function(r){var e=function(t){var o=typeof r<"u"&&r||typeof self<"u"&&self||typeof global<"u"&&global||{},n={searchParams:"URLSearchParams"in o,iterable:"Symbol"in o&&"iterator"in Symbol,blob:"FileReader"in o&&"Blob"in o&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in o,arrayBuffer:"ArrayBuffer"in o};function a(m){return m&&DataView.prototype.isPrototypeOf(m)}if(n.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(m){return m&&s.indexOf(Object.prototype.toString.call(m))>-1};function c(m){if(typeof m!="string"&&(m=String(m)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(m)||m==="")throw new TypeError('Invalid character in header field name: "'+m+'"');return m.toLowerCase()}function d(m){return typeof m!="string"&&(m=String(m)),m}function h(m){var x={next:function(){var k=m.shift();return{done:k===void 0,value:k}}};return n.iterable&&(x[Symbol.iterator]=function(){return x}),x}function u(m){this.map={},m instanceof u?m.forEach(function(x,k){this.append(k,x)},this):Array.isArray(m)?m.forEach(function(x){if(x.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+x.length);this.append(x[0],x[1])},this):m&&Object.getOwnPropertyNames(m).forEach(function(x){this.append(x,m[x])},this)}u.prototype.append=function(m,x){m=c(m),x=d(x);var k=this.map[m];this.map[m]=k?k+", "+x:x},u.prototype.delete=function(m){delete this.map[c(m)]},u.prototype.get=function(m){return m=c(m),this.has(m)?this.map[m]:null},u.prototype.has=function(m){return this.map.hasOwnProperty(c(m))},u.prototype.set=function(m,x){this.map[c(m)]=d(x)},u.prototype.forEach=function(m,x){for(var k in this.map)this.map.hasOwnProperty(k)&&m.call(x,this.map[k],k,this)},u.prototype.keys=function(){var m=[];return this.forEach(function(x,k){m.push(k)}),h(m)},u.prototype.values=function(){var m=[];return this.forEach(function(x){m.push(x)}),h(m)},u.prototype.entries=function(){var m=[];return this.forEach(function(x,k){m.push([k,x])}),h(m)},n.iterable&&(u.prototype[Symbol.iterator]=u.prototype.entries);function y(m){if(!m._noBody){if(m.bodyUsed)return Promise.reject(new TypeError("Already read"));m.bodyUsed=!0}}function b(m){return new Promise(function(x,k){m.onload=function(){x(m.result)},m.onerror=function(){k(m.error)}})}function v(m){var x=new FileReader,k=b(x);return x.readAsArrayBuffer(m),k}function O(m){var x=new FileReader,k=b(x),Y=/charset=([A-Za-z0-9_-]+)/.exec(m.type),ie=Y?Y[1]:"utf-8";return x.readAsText(m,ie),k}function T(m){for(var x=new Uint8Array(m),k=new Array(x.length),Y=0;Y<x.length;Y++)k[Y]=String.fromCharCode(x[Y]);return k.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 $(){return this.bodyUsed=!1,this._initBody=function(m){this.bodyUsed=this.bodyUsed,this._bodyInit=m,m?typeof m=="string"?this._bodyText=m:n.blob&&Blob.prototype.isPrototypeOf(m)?this._bodyBlob=m:n.formData&&FormData.prototype.isPrototypeOf(m)?this._bodyFormData=m:n.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)?this._bodyText=m.toString():n.arrayBuffer&&n.blob&&a(m)?(this._bodyArrayBuffer=N(m.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):n.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(m)||l(m))?this._bodyArrayBuffer=N(m):this._bodyText=m=Object.prototype.toString.call(m):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof m=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n.searchParams&&URLSearchParams.prototype.isPrototypeOf(m)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n.blob&&(this.blob=function(){var m=y(this);if(m)return m;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var m=y(this);return m||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(n.blob)return this.blob().then(v);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var m=y(this);if(m)return m;if(this._bodyBlob)return O(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(T(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},n.formData&&(this.formData=function(){return this.text().then(U)}),this.json=function(){return this.text().then(JSON.parse)},this}var w=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function S(m){var x=m.toUpperCase();return w.indexOf(x)>-1?x:m}function E(m,x){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');x=x||{};var k=x.body;if(m instanceof E){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,!k&&m._bodyInit!=null&&(k=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=S(x.method||this.method||"GET"),this.mode=x.mode||this.mode||null,this.signal=x.signal||this.signal||function(){if("AbortController"in o){var K=new AbortController;return K.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&k)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(k),(this.method==="GET"||this.method==="HEAD")&&(x.cache==="no-store"||x.cache==="no-cache")){var Y=/([?&])_=[^&]*/;if(Y.test(this.url))this.url=this.url.replace(Y,"$1_="+new Date().getTime());else{var ie=/\?/;this.url+=(ie.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}E.prototype.clone=function(){return new E(this,{body:this._bodyInit})};function U(m){var x=new FormData;return m.trim().split("&").forEach(function(k){if(k){var Y=k.split("="),ie=Y.shift().replace(/\+/g," "),K=Y.join("=").replace(/\+/g," ");x.append(decodeURIComponent(ie),decodeURIComponent(K))}}),x}function J(m){var x=new u,k=m.replace(/\r?\n[\t ]+/g," ");return k.split("\r").map(function(Y){return Y.indexOf(`
|
|
2
|
+
`)===0?Y.substr(1,Y.length):Y}).forEach(function(Y){var ie=Y.split(":"),K=ie.shift().trim();if(K){var Lo=ie.join(":").trim();try{x.append(K,Lo)}catch(on){console.warn("Response "+on.message)}}}),x}$.call(E.prototype);function oe(m,x){if(!(this instanceof oe))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(x||(x={}),this.type="default",this.status=x.status===void 0?200:x.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=x.statusText===void 0?"":""+x.statusText,this.headers=new u(x.headers),this.url=x.url||"",this._initBody(m)}$.call(oe.prototype),oe.prototype.clone=function(){return new oe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},oe.error=function(){var m=new oe(null,{status:200,statusText:""});return m.ok=!1,m.status=0,m.type="error",m};var Q=[301,302,303,307,308];oe.redirect=function(m,x){if(Q.indexOf(x)===-1)throw new RangeError("Invalid status code");return new oe(null,{status:x,headers:{location:m}})},t.DOMException=o.DOMException;try{new t.DOMException}catch{t.DOMException=function(x,k){this.message=x,this.name=k;var Y=Error(x);this.stack=Y.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function D(m,x){return new Promise(function(k,Y){var ie=new E(m,x);if(ie.signal&&ie.signal.aborted)return Y(new t.DOMException("Aborted","AbortError"));var K=new XMLHttpRequest;function Lo(){K.abort()}K.onload=function(){var Ce={statusText:K.statusText,headers:J(K.getAllResponseHeaders()||"")};ie.url.indexOf("file://")===0&&(K.status<200||K.status>599)?Ce.status=200:Ce.status=K.status,Ce.url="responseURL"in K?K.responseURL:Ce.headers.get("X-Request-URL");var Jt="response"in K?K.response:K.responseText;setTimeout(function(){k(new oe(Jt,Ce))},0)},K.onerror=function(){setTimeout(function(){Y(new TypeError("Network request failed"))},0)},K.ontimeout=function(){setTimeout(function(){Y(new TypeError("Network request timed out"))},0)},K.onabort=function(){setTimeout(function(){Y(new t.DOMException("Aborted","AbortError"))},0)};function on(Ce){try{return Ce===""&&o.location.href?o.location.href:Ce}catch{return Ce}}if(K.open(ie.method,on(ie.url),!0),ie.credentials==="include"?K.withCredentials=!0:ie.credentials==="omit"&&(K.withCredentials=!1),"responseType"in K&&(n.blob?K.responseType="blob":n.arrayBuffer&&(K.responseType="arraybuffer")),x&&typeof x.headers=="object"&&!(x.headers instanceof u||o.Headers&&x.headers instanceof o.Headers)){var Bs=[];Object.getOwnPropertyNames(x.headers).forEach(function(Ce){Bs.push(c(Ce)),K.setRequestHeader(Ce,d(x.headers[Ce]))}),ie.headers.forEach(function(Ce,Jt){Bs.indexOf(Jt)===-1&&K.setRequestHeader(Jt,Ce)})}else ie.headers.forEach(function(Ce,Jt){K.setRequestHeader(Jt,Ce)});ie.signal&&(ie.signal.addEventListener("abort",Lo),K.onreadystatechange=function(){K.readyState===4&&ie.signal.removeEventListener("abort",Lo)}),K.send(typeof ie._bodyInit>"u"?null:ie._bodyInit)})}return D.polyfill=!0,o.fetch||(o.fetch=D,o.Headers=u,o.Request=E,o.Response=oe),t.Headers=u,t.Request=E,t.Response=oe,t.fetch=D,t}({})})(Ui);Ui.fetch.ponyfill=!0;delete Ui.fetch.polyfill;var Zr=Mi.fetch?Mi:Ui;Yt=Zr.fetch;Yt.default=Zr.fetch;Yt.fetch=Zr.fetch;Yt.Headers=Zr.Headers;Yt.Request=Zr.Request;Yt.Response=Zr.Response;Id.exports=Yt});if(!ShadowRoot.prototype.createElement){let r=window.HTMLElement,e=window.customElements.define,t=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(w,S){if(w=w.toLowerCase(),this._getDefinition(w)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${w}" has already been used with this registry`);if(this._definitionsByClass.get(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,U=new Set(S.observedAttributes||[]);y(S,U,E);let J={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:U};this._definitionsByTag.set(w,J),this._definitionsByClass.set(S,J);let oe=t.call(o,w);oe||(oe=u(w),e.call(o,w,oe)),this===window.customElements&&(s.set(S,J),J.standInClass=oe);let Q=this._awaitingUpgrade.get(w);if(Q){this._awaitingUpgrade.delete(w);for(let m of Q)a.delete(m),v(m,J,!0)}let D=this._whenDefinedPromises.get(w);return D!==void 0&&(D.resolve(S),this._whenDefinedPromises.delete(w)),S}upgrade(){T.push(this),o.upgrade.apply(o,arguments),T.pop()}get(w){return this._definitionsByTag.get(w)?.elementClass}_getDefinition(w){return this._definitionsByTag.get(w)}whenDefined(w){let S=this._getDefinition(w);if(S!==void 0)return Promise.resolve(S.elementClass);let E=this._whenDefinedPromises.get(w);return E===void 0&&(E={},E.promise=new Promise(U=>E.resolve=U),this._whenDefinedPromises.set(w,E)),E.promise}_upgradeWhenDefined(w,S,E){let U=this._awaitingUpgrade.get(S);U||this._awaitingUpgrade.set(S,U=new Set),E?U.add(w):U.delete(w)}};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=w=>w===document||w instanceof ShadowRoot,h=w=>{let S=w.getRootNode();if(!d(S)){let E=T[T.length-1];if(E instanceof CustomElementRegistry)return E;S=E.getRootNode(),d(S)||(S=l.get(S)?.getRootNode()||document)}return S.customElements},u=w=>class{static get formAssociated(){return!0}constructor(){let E=Reflect.construct(r,[],this.constructor);Object.setPrototypeOf(E,HTMLElement.prototype);let U=h(E)||window.customElements,J=U._getDefinition(w);return J?v(E,J):a.set(E,U),E}connectedCallback(){let E=n.get(this);E?E.connectedCallback&&E.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,w,!0)}disconnectedCallback(){let E=n.get(this);E?E.disconnectedCallback&&E.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,w,!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=(w,S,E)=>{if(S.size===0||E===void 0)return;let U=w.prototype.setAttribute;U&&(w.prototype.setAttribute=function(Q,D){let m=Q.toLowerCase();if(S.has(m)){let x=this.getAttribute(m);U.call(this,m,D),E.call(this,m,x,D)}else U.call(this,m,D)});let J=w.prototype.removeAttribute;J&&(w.prototype.removeAttribute=function(Q){let D=Q.toLowerCase();if(S.has(D)){let m=this.getAttribute(D);J.call(this,D),E.call(this,D,m,null)}else J.call(this,D)});let oe=w.prototype.toggleAttribute;oe&&(w.prototype.toggleAttribute=function(Q,D){let m=Q.toLowerCase();if(S.has(m)){let x=this.getAttribute(m);oe.call(this,m,D);let k=this.getAttribute(m);E.call(this,m,x,k)}else oe.call(this,m,D)})},b=w=>{let S=Object.getPrototypeOf(w);if(S!==window.HTMLElement)return S===r?Object.setPrototypeOf(w,window.HTMLElement):b(S)},v=(w,S,E=!1)=>{Object.setPrototypeOf(w,S.elementClass.prototype),n.set(w,S),c=w;try{new S.elementClass}catch{b(S.elementClass),new S.elementClass}S.attributeChangedCallback&&S.observedAttributes.forEach(U=>{w.hasAttribute(U)&&S.attributeChangedCallback.call(w,U,null,w.getAttribute(U))}),E&&S.connectedCallback&&w.isConnected&&S.connectedCallback.call(w)},O=Element.prototype.attachShadow;Element.prototype.attachShadow=function(w){let S=O.apply(this,arguments);return w.customElements&&(S.customElements=w.customElements),S};let T=[document],N=(w,S,E=void 0)=>{let U=(E?Object.getPrototypeOf(E):w.prototype)[S];w.prototype[S]=function(){T.push(this);let J=U.apply(E||this,arguments);return J!==void 0&&l.set(J,this),T.pop(),J}};N(ShadowRoot,"createElement",document),N(ShadowRoot,"importNode",document),N(Element,"insertAdjacentHTML");let $=(w,S)=>{let E=Object.getOwnPropertyDescriptor(w.prototype,S);Object.defineProperty(w.prototype,S,{...E,set(U){T.push(this),E.set.call(this,U),T.pop()}})};if($(Element,"innerHTML"),$(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let w=new WeakMap,S=HTMLElement.prototype.attachInternals,E=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...Q){let D=S.call(this,...Q);return w.set(D,this),D},E.forEach(Q=>{let D=window.ElementInternals.prototype,m=D[Q];D[Q]=function(...x){let k=w.get(this);if(n.get(k).formAssociated===!0)return m?.call(this,...x);throw new DOMException(`Failed to execute ${m} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class U extends Array{constructor(D){super(...D),this._elements=D}get value(){return this._elements.find(D=>D.checked===!0)?.value||""}}class J{constructor(D){let m=new Map;D.forEach((x,k)=>{let Y=x.getAttribute("name"),ie=m.get(Y)||[];this[+k]=x,ie.push(x),m.set(Y,ie)}),this.length=D.length,m.forEach((x,k)=>{x&&(x.length===1?this[k]=x[0]:this[k]=new U(x))})}namedItem(D){return this[D]}}let oe=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let Q=oe.get.call(this,[]),D=[];for(let m of Q){let x=n.get(m);(!x||x.formAssociated===!0)&&D.push(m)}return new J(D)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(t,o,n)=>{if(o!==null)try{e.bind(window.customElements)(t,o,n)}catch(a){console.info(t,o,n,a)}}}var bn={};ee(bn,{CSSResult:()=>Rr,LitElement:()=>yt,ReactiveElement:()=>it,_$LE:()=>Tp,_$LH:()=>Rp,adoptStyles:()=>Yo,css:()=>I,defaultConverter:()=>Xo,getCompatibleStyle:()=>io,html:()=>P,isServer:()=>sh,noChange:()=>It,notEqual:()=>un,nothing:()=>F,render:()=>yn,supportsAdoptingStyleSheets:()=>oo,svg:()=>Ap,unsafeCSS:()=>mt});var Do=globalThis,Uo=Do.ShadowRoot&&(Do.ShadyCSS===void 0||Do.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,zs=Symbol(),Fs=new WeakMap,Mo=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==zs)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(Uo&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=Fs.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&Fs.set(t,e))}return e}toString(){return this.cssText}},Hs=r=>new Mo(typeof r=="string"?r:r+"",void 0,zs);var an=(r,e)=>{if(Uo)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let o=document.createElement("style"),n=Do.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=t.cssText,r.appendChild(o)}},Bo=Uo?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return Hs(t)})(r):r;var{is:sp,defineProperty:lp,getOwnPropertyDescriptor:cp,getOwnPropertyNames:dp,getOwnPropertySymbols:pp,getPrototypeOf:up}=Object,Fo=globalThis,Ws=Fo.trustedTypes,fp=Ws?Ws.emptyScript:"",hp=Fo.reactiveElementPolyfillSupport,Xr=(r,e)=>r,Jr={toAttribute(r,e){switch(e){case Boolean:r=r?fp:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},zo=(r,e)=>!sp(r,e),Vs={attribute:!0,type:String,converter:Jr,reflect:!1,hasChanged:zo};Symbol.metadata??=Symbol("metadata"),Fo.litPropertyMetadata??=new WeakMap;var Qt=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Vs){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,t);n!==void 0&&lp(this.prototype,e,n)}}static getPropertyDescriptor(e,t,o){let{get:n,set:a}=cp(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Vs}static _$Ei(){if(this.hasOwnProperty(Xr("elementProperties")))return;let e=up(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Xr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Xr("properties"))){let t=this.properties,o=[...dp(t),...pp(t)];for(let n of o)this.createProperty(n,t[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,n]of t)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let n=this._$Eu(t,o);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)t.unshift(Bo(n))}else e!==void 0&&t.push(Bo(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return an(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$EO(e,t){let o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:Jr).toAttribute(t,o.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,t){let o=this.constructor,n=o._$Eh.get(e);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(t,a.type),this._$Em=null}}requestUpdate(e,t,o,n=!1,a){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??zo)(n?a:this[e],t))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,t,o){this._$AL.has(e)||this._$AL.set(e,t),o.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[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 e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(t)):this._$ET()}catch(o){throw e=!1,this._$ET(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$E_?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(t=>this._$EO(t,this[t])),this._$ET()}updated(e){}firstUpdated(e){}};Qt.elementStyles=[],Qt.shadowRootOptions={mode:"open"},Qt[Xr("elementProperties")]=new Map,Qt[Xr("finalized")]=new Map,hp?.({ReactiveElement:Qt}),(Fo.reactiveElementVersions??=[]).push("2.0.2");var ln=globalThis,Ho=ln.trustedTypes,js=Ho?Ho.createPolicy("lit-html",{createHTML:r=>r}):void 0,cn="$lit$",ht=`lit$${(Math.random()+"").slice(9)}$`,dn="?"+ht,mp=`<${dn}>`,rr=document,Wo=()=>rr.createComment(""),eo=r=>r===null||typeof r!="object"&&typeof r!="function",Xs=Array.isArray,Js=r=>Xs(r)||typeof r?.[Symbol.iterator]=="function",sn=`[
|
|
3
|
+
\f\r]`,Qr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ks=/-->/g,Gs=/>/g,er=RegExp(`>|${sn}(?:([^\\s"'>=/]+)(${sn}*=${sn}*(?:[^
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Zs=/'/g,qs=/"/g,Qs=/^(?:script|style|textarea|title)$/i,el=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),tl=el(1),rl=el(2),We=Symbol.for("lit-noChange"),ue=Symbol.for("lit-nothing"),Ys=new WeakMap,tr=rr.createTreeWalker(rr,129);function ol(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return js!==void 0?js.createHTML(e):e}var il=(r,e)=>{let t=r.length-1,o=[],n,a=e===2?"<svg>":"",s=Qr;for(let l=0;l<t;l++){let c=r[l],d,h,u=-1,y=0;for(;y<c.length&&(s.lastIndex=y,h=s.exec(c),h!==null);)y=s.lastIndex,s===Qr?h[1]==="!--"?s=Ks:h[1]!==void 0?s=Gs:h[2]!==void 0?(Qs.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=er):h[3]!==void 0&&(s=er):s===er?h[0]===">"?(s=n??Qr,u=-1):h[1]===void 0?u=-2:(u=s.lastIndex-h[2].length,d=h[1],s=h[3]===void 0?er:h[3]==='"'?qs:Zs):s===qs||s===Zs?s=er:s===Ks||s===Gs?s=Qr:(s=er,n=void 0);let b=s===er&&r[l+1].startsWith("/>")?" ":"";a+=s===Qr?c+mp:u>=0?(o.push(d),c.slice(0,u)+cn+c.slice(u)+ht+b):c+ht+(u===-2?l:b)}return[ol(r,a+(r[t]||"<?>")+(e===2?"</svg>":"")),o]},to=class r{constructor({strings:e,_$litType$:t},o){let n;this.parts=[];let a=0,s=0,l=e.length-1,c=this.parts,[d,h]=il(e,t);if(this.el=r.createElement(d,o),tr.currentNode=this.el.content,t===2){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=tr.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let u of n.getAttributeNames())if(u.endsWith(cn)){let y=h[s++],b=n.getAttribute(u).split(ht),v=/([.?@])?(.*)/.exec(y);c.push({type:1,index:a,name:v[2],strings:b,ctor:v[1]==="."?jo:v[1]==="?"?Ko:v[1]==="@"?Go:ir}),n.removeAttribute(u)}else u.startsWith(ht)&&(c.push({type:6,index:a}),n.removeAttribute(u));if(Qs.test(n.tagName)){let u=n.textContent.split(ht),y=u.length-1;if(y>0){n.textContent=Ho?Ho.emptyScript:"";for(let b=0;b<y;b++)n.append(u[b],Wo()),tr.nextNode(),c.push({type:2,index:++a});n.append(u[y],Wo())}}}else if(n.nodeType===8)if(n.data===dn)c.push({type:2,index:a});else{let u=-1;for(;(u=n.data.indexOf(ht,u+1))!==-1;)c.push({type:7,index:a}),u+=ht.length-1}a++}}static createElement(e,t){let o=rr.createElement("template");return o.innerHTML=e,o}};function or(r,e,t=r,o){if(e===We)return e;let n=o!==void 0?t._$Co?.[o]:t._$Cl,a=eo(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,t,o)),o!==void 0?(t._$Co??=[])[o]=n:t._$Cl=n),n!==void 0&&(e=or(r,n._$AS(r,e.values),n,o)),e}var Vo=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:o}=this._$AD,n=(e?.creationScope??rr).importNode(t,!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 ro(a,a.nextSibling,this,e):c.type===1?d=new c.ctor(a,c.name,c.strings,this,e):c.type===6&&(d=new Zo(a,this,e)),this._$AV.push(d),c=o[++l]}s!==c?.index&&(a=tr.nextNode(),s++)}return tr.currentNode=rr,n}p(e){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},ro=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,n){this.type=2,this._$AH=ue,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=or(this,e,t),eo(e)?e===ue||e==null||e===""?(this._$AH!==ue&&this._$AR(),this._$AH=ue):e!==this._$AH&&e!==We&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Js(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==ue&&eo(this._$AH)?this._$AA.nextSibling.data=e:this.$(rr.createTextNode(e)),this._$AH=e}g(e){let{values:t,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=to.createElement(ol(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(t);else{let a=new Vo(n,this),s=a.u(this.options);a.p(t),this.$(s),this._$AH=a}}_$AC(e){let t=Ys.get(e.strings);return t===void 0&&Ys.set(e.strings,t=new to(e)),t}T(e){Xs(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,n=0;for(let a of e)n===t.length?t.push(o=new r(this.k(Wo()),this.k(Wo()),this,this.options)):o=t[n],o._$AI(a),n++;n<t.length&&(this._$AR(o&&o._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},ir=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,n,a){this.type=1,this._$AH=ue,this._$AN=void 0,this.element=e,this.name=t,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=ue}_$AI(e,t=this,o,n){let a=this.strings,s=!1;if(a===void 0)e=or(this,e,t,0),s=!eo(e)||e!==this._$AH&&e!==We,s&&(this._$AH=e);else{let l=e,c,d;for(e=a[0],c=0;c<a.length-1;c++)d=or(this,l[o+c],t,c),d===We&&(d=this._$AH[c]),s||=!eo(d)||d!==this._$AH[c],d===ue?e=ue:e!==ue&&(e+=(d??"")+a[c+1]),this._$AH[c]=d}s&&!n&&this.O(e)}O(e){e===ue?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},jo=class extends ir{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===ue?void 0:e}},Ko=class extends ir{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==ue)}},Go=class extends ir{constructor(e,t,o,n,a){super(e,t,o,n,a),this.type=5}_$AI(e,t=this){if((e=or(this,e,t,0)??ue)===We)return;let o=this._$AH,n=e===ue&&o!==ue||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==ue&&(o===ue||n);n&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Zo=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){or(this,e)}},nl={j:cn,P:ht,A:dn,C:1,M:il,L:Vo,R:Js,V:or,D:ro,I:ir,H:Ko,N:Go,U:jo,B:Zo},gp=ln.litHtmlPolyfillSupport;gp?.(to,ro),(ln.litHtmlVersions??=[]).push("3.1.0");var qo=globalThis,oo=qo.ShadowRoot&&(qo.ShadyCSS===void 0||qo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,pn=Symbol(),al=new WeakMap,Rr=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==pn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(oo&&e===void 0){let o=t!==void 0&&t.length===1;o&&(e=al.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),o&&al.set(t,e))}return e}toString(){return this.cssText}},mt=r=>new Rr(typeof r=="string"?r:r+"",void 0,pn),I=(r,...e)=>{let t=r.length===1?r[0]:e.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 Rr(t,r,pn)},Yo=(r,e)=>{if(oo)r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(let t of e){let o=document.createElement("style"),n=qo.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=t.cssText,r.appendChild(o)}},io=oo?r=>r:r=>r instanceof CSSStyleSheet?(e=>{let t="";for(let o of e.cssRules)t+=o.cssText;return mt(t)})(r):r;var{is:yp,defineProperty:bp,getOwnPropertyDescriptor:vp,getOwnPropertyNames:xp,getOwnPropertySymbols:Sp,getPrototypeOf:wp}=Object,Jo=globalThis,sl=Jo.trustedTypes,Op=sl?sl.emptyScript:"",Ep=Jo.reactiveElementPolyfillSupport,no=(r,e)=>r,Xo={toAttribute(r,e){switch(e){case Boolean:r=r?Op:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,e){let t=r;switch(e){case Boolean:t=r!==null;break;case Number:t=r===null?null:Number(r);break;case Object:case Array:try{t=JSON.parse(r)}catch{t=null}}return t}},un=(r,e)=>!yp(r,e),ll={attribute:!0,type:String,converter:Xo,reflect:!1,hasChanged:un};Symbol.metadata??=Symbol("metadata"),Jo.litPropertyMetadata??=new WeakMap;var it=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=ll){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){let o=Symbol(),n=this.getPropertyDescriptor(e,o,t);n!==void 0&&bp(this.prototype,e,n)}}static getPropertyDescriptor(e,t,o){let{get:n,set:a}=vp(this.prototype,e)??{get(){return this[t]},set(s){this[t]=s}};return{get(){return n?.call(this)},set(s){let l=n?.call(this);a.call(this,s),this.requestUpdate(e,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??ll}static _$Ei(){if(this.hasOwnProperty(no("elementProperties")))return;let e=wp(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(no("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(no("properties"))){let t=this.properties,o=[...xp(t),...Sp(t)];for(let n of o)this.createProperty(n,t[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[o,n]of t)this.elementProperties.set(o,n)}this._$Eh=new Map;for(let[t,o]of this.elementProperties){let n=this._$Eu(t,o);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let o=new Set(e.flat(1/0).reverse());for(let n of o)t.unshift(io(n))}else e!==void 0&&t.push(io(e));return t}static _$Eu(e,t){let o=t.attribute;return o===!1?void 0:typeof o=="string"?o:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,t=this.constructor.elementProperties;for(let o of t.keys())this.hasOwnProperty(o)&&(e.set(o,this[o]),delete this[o]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Yo(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$E_?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$E_?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,o){this._$AK(e,o)}_$EO(e,t){let o=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,o);if(n!==void 0&&o.reflect===!0){let a=(o.converter?.toAttribute!==void 0?o.converter:Xo).toAttribute(t,o.type);this._$Em=e,a==null?this.removeAttribute(n):this.setAttribute(n,a),this._$Em=null}}_$AK(e,t){let o=this.constructor,n=o._$Eh.get(e);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:Xo;this._$Em=n,this[n]=s.fromAttribute(t,a.type),this._$Em=null}}requestUpdate(e,t,o,n=!1,a){if(e!==void 0){if(o??=this.constructor.getPropertyOptions(e),!(o.hasChanged??un)(n?a:this[e],t))return;this.C(e,t,o)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,t,o){this._$AL.has(e)||this._$AL.set(e,t),o.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(t){Promise.reject(t)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[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 e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$E_?.forEach(o=>o.hostUpdate?.()),this.update(t)):this._$ET()}catch(o){throw e=!1,this._$ET(),o}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$E_?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(t=>this._$EO(t,this[t])),this._$ET()}updated(e){}firstUpdated(e){}};it.elementStyles=[],it.shadowRootOptions={mode:"open"},it[no("elementProperties")]=new Map,it[no("finalized")]=new Map,Ep?.({ReactiveElement:it}),(Jo.reactiveElementVersions??=[]).push("2.0.2");var hn=globalThis,Qo=hn.trustedTypes,cl=Qo?Qo.createPolicy("lit-html",{createHTML:r=>r}):void 0,mn="$lit$",gt=`lit$${(Math.random()+"").slice(9)}$`,gn="?"+gt,Cp=`<${gn}>`,sr=document,so=()=>sr.createComment(""),lo=r=>r===null||typeof r!="object"&&typeof r!="function",ml=Array.isArray,gl=r=>ml(r)||typeof r?.[Symbol.iterator]=="function",fn=`[
|
|
5
|
+
\f\r]`,ao=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,dl=/-->/g,pl=/>/g,nr=RegExp(`>|${fn}(?:([^\\s"'>=/]+)(${fn}*=${fn}*(?:[^
|
|
6
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ul=/'/g,fl=/"/g,yl=/^(?:script|style|textarea|title)$/i,bl=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),P=bl(1),Ap=bl(2),It=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),hl=new WeakMap,ar=sr.createTreeWalker(sr,129);function vl(r,e){if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return cl!==void 0?cl.createHTML(e):e}var xl=(r,e)=>{let t=r.length-1,o=[],n,a=e===2?"<svg>":"",s=ao;for(let l=0;l<t;l++){let c=r[l],d,h,u=-1,y=0;for(;y<c.length&&(s.lastIndex=y,h=s.exec(c),h!==null);)y=s.lastIndex,s===ao?h[1]==="!--"?s=dl:h[1]!==void 0?s=pl:h[2]!==void 0?(yl.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=nr):h[3]!==void 0&&(s=nr):s===nr?h[0]===">"?(s=n??ao,u=-1):h[1]===void 0?u=-2:(u=s.lastIndex-h[2].length,d=h[1],s=h[3]===void 0?nr:h[3]==='"'?fl:ul):s===fl||s===ul?s=nr:s===dl||s===pl?s=ao:(s=nr,n=void 0);let b=s===nr&&r[l+1].startsWith("/>")?" ":"";a+=s===ao?c+Cp:u>=0?(o.push(d),c.slice(0,u)+mn+c.slice(u)+gt+b):c+gt+(u===-2?l:b)}return[vl(r,a+(r[t]||"<?>")+(e===2?"</svg>":"")),o]},co=class r{constructor({strings:e,_$litType$:t},o){let n;this.parts=[];let a=0,s=0,l=e.length-1,c=this.parts,[d,h]=xl(e,t);if(this.el=r.createElement(d,o),ar.currentNode=this.el.content,t===2){let u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(n=ar.nextNode())!==null&&c.length<l;){if(n.nodeType===1){if(n.hasAttributes())for(let u of n.getAttributeNames())if(u.endsWith(mn)){let y=h[s++],b=n.getAttribute(u).split(gt),v=/([.?@])?(.*)/.exec(y);c.push({type:1,index:a,name:v[2],strings:b,ctor:v[1]==="."?ti:v[1]==="?"?ri:v[1]==="@"?oi:cr}),n.removeAttribute(u)}else u.startsWith(gt)&&(c.push({type:6,index:a}),n.removeAttribute(u));if(yl.test(n.tagName)){let u=n.textContent.split(gt),y=u.length-1;if(y>0){n.textContent=Qo?Qo.emptyScript:"";for(let b=0;b<y;b++)n.append(u[b],so()),ar.nextNode(),c.push({type:2,index:++a});n.append(u[y],so())}}}else if(n.nodeType===8)if(n.data===gn)c.push({type:2,index:a});else{let u=-1;for(;(u=n.data.indexOf(gt,u+1))!==-1;)c.push({type:7,index:a}),u+=gt.length-1}a++}}static createElement(e,t){let o=sr.createElement("template");return o.innerHTML=e,o}};function lr(r,e,t=r,o){if(e===It)return e;let n=o!==void 0?t._$Co?.[o]:t._$Cl,a=lo(e)?void 0:e._$litDirective$;return n?.constructor!==a&&(n?._$AO?.(!1),a===void 0?n=void 0:(n=new a(r),n._$AT(r,t,o)),o!==void 0?(t._$Co??=[])[o]=n:t._$Cl=n),n!==void 0&&(e=lr(r,n._$AS(r,e.values),n,o)),e}var ei=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:o}=this._$AD,n=(e?.creationScope??sr).importNode(t,!0);ar.currentNode=n;let a=ar.nextNode(),s=0,l=0,c=o[0];for(;c!==void 0;){if(s===c.index){let d;c.type===2?d=new _r(a,a.nextSibling,this,e):c.type===1?d=new c.ctor(a,c.name,c.strings,this,e):c.type===6&&(d=new ii(a,this,e)),this._$AV.push(d),c=o[++l]}s!==c?.index&&(a=ar.nextNode(),s++)}return ar.currentNode=sr,n}p(e){let t=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(e,o,t),t+=o.strings.length-2):o._$AI(e[t])),t++}},_r=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,o,n){this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=o,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=lr(this,e,t),lo(e)?e===F||e==null||e===""?(this._$AH!==F&&this._$AR(),this._$AH=F):e!==this._$AH&&e!==It&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):gl(e)?this.T(e):this._(e)}k(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}$(e){this._$AH!==e&&(this._$AR(),this._$AH=this.k(e))}_(e){this._$AH!==F&&lo(this._$AH)?this._$AA.nextSibling.data=e:this.$(sr.createTextNode(e)),this._$AH=e}g(e){let{values:t,_$litType$:o}=e,n=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=co.createElement(vl(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===n)this._$AH.p(t);else{let a=new ei(n,this),s=a.u(this.options);a.p(t),this.$(s),this._$AH=a}}_$AC(e){let t=hl.get(e.strings);return t===void 0&&hl.set(e.strings,t=new co(e)),t}T(e){ml(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,o,n=0;for(let a of e)n===t.length?t.push(o=new r(this.k(so()),this.k(so()),this,this.options)):o=t[n],o._$AI(a),n++;n<t.length&&(this._$AR(o&&o._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e&&e!==this._$AB;){let o=e.nextSibling;e.remove(),e=o}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},cr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,o,n,a){this.type=1,this._$AH=F,this._$AN=void 0,this.element=e,this.name=t,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=F}_$AI(e,t=this,o,n){let a=this.strings,s=!1;if(a===void 0)e=lr(this,e,t,0),s=!lo(e)||e!==this._$AH&&e!==It,s&&(this._$AH=e);else{let l=e,c,d;for(e=a[0],c=0;c<a.length-1;c++)d=lr(this,l[o+c],t,c),d===It&&(d=this._$AH[c]),s||=!lo(d)||d!==this._$AH[c],d===F?e=F:e!==F&&(e+=(d??"")+a[c+1]),this._$AH[c]=d}s&&!n&&this.O(e)}O(e){e===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},ti=class extends cr{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===F?void 0:e}},ri=class extends cr{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==F)}},oi=class extends cr{constructor(e,t,o,n,a){super(e,t,o,n,a),this.type=5}_$AI(e,t=this){if((e=lr(this,e,t,0)??F)===It)return;let o=this._$AH,n=e===F&&o!==F||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==F&&(o===F||n);n&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},ii=class{constructor(e,t,o){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(e){lr(this,e)}},Rp={j:mn,P:gt,A:gn,C:1,M:xl,L:ei,R:gl,V:lr,D:_r,I:cr,H:ri,N:oi,U:ti,B:ii},_p=hn.litHtmlPolyfillSupport;_p?.(co,_r),(hn.litHtmlVersions??=[]).push("3.1.0");var yn=(r,e,t)=>{let o=t?.renderBefore??e,n=o._$litPart$;if(n===void 0){let a=t?.renderBefore??null;o._$litPart$=n=new _r(e.insertBefore(so(),a),a,void 0,t??{})}return n._$AI(r),n};var yt=class extends it{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=yn(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return It}};yt._$litElement$=!0,yt.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:yt});var Np=globalThis.litElementPolyfillSupport;Np?.({LitElement:yt});var Tp={_$AK:(r,e,t)=>{r._$AK(e,t)},_$AL:r=>r._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var sh=!1;var xn={};ee(xn,{customElement:()=>Ip,eventOptions:()=>bt,property:()=>g,query:()=>Z,queryAll:()=>kp,queryAssignedElements:()=>vn,queryAssignedNodes:()=>po,queryAsync:()=>Lp,standardProperty:()=>Sl,state:()=>W});var Ip=r=>(e,t)=>{t!==void 0?t.addInitializer(()=>{customElements.define(r,e)}):customElements.define(r,e)};var Pp={attribute:!0,type:String,converter:Jr,reflect:!1,hasChanged:zo},Sl=(r=Pp,e,t)=>{let{kind:o,metadata:n}=t,a=globalThis.litPropertyMetadata.get(n);if(a===void 0&&globalThis.litPropertyMetadata.set(n,a=new Map),a.set(t.name,r),o==="accessor"){let{name:s}=t;return{set(l){let c=e.get.call(this);e.set.call(this,l),this.requestUpdate(s,c,r)},init(l){return l!==void 0&&this.C(s,void 0,r),l}}}if(o==="setter"){let{name:s}=t;return function(l){let c=this[s];e.call(this,l),this.requestUpdate(s,c,r)}}throw Error("Unsupported decorator location: "+o)};function g(r){return(e,t)=>typeof t=="object"?Sl(r,e,t):((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,e,t)}function W(r){return g({...r,state:!0,attribute:!1})}function bt(r){return(e,t)=>{let o=typeof e=="function"?e:e[t];Object.assign(o,r)}}var Xe=(r,e,t)=>(t.configurable=!0,t.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(r,e,t),t);function Z(r,e){return(t,o,n)=>{let a=s=>s.renderRoot?.querySelector(r)??null;if(e){let{get:s,set:l}=typeof o=="object"?t:n??(()=>{let c=Symbol();return{get(){return this[c]},set(d){this[c]=d}}})();return Xe(t,o,{get(){let c=s.call(this);return c===void 0&&(c=a(this),(c!==null||this.hasUpdated)&&l.call(this,c)),c}})}return Xe(t,o,{get(){return a(this)}})}}var $p;function kp(r){return(e,t)=>Xe(e,t,{get(){return(this.renderRoot??($p??=document.createDocumentFragment())).querySelectorAll(r)}})}function Lp(r){return(e,t)=>Xe(e,t,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(r)??null}})}function vn(r){return(e,t)=>{let{slot:o,selector:n}=r??{},a="slot"+(o?`[name=${o}]`:":not([name])");return Xe(e,t,{get(){let s=this.renderRoot?.querySelector(a),l=s?.assignedElements(r)??[];return n===void 0?l:l.filter(c=>c.matches(n))}})}}function po(r){return(e,t)=>{let{slot:o}=r??{},n="slot"+(o?`[name=${o}]`:":not([name])");return Xe(e,t,{get(){return this.renderRoot?.querySelector(n)?.assignedNodes(r)??[]}})}}var wn={};ee(wn,{repeat:()=>Sn});var Pt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},$t=r=>(...e)=>({_$litDirective$:r,values:e}),nt=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,o){this._$Ct=e,this._$AM=t,this._$Ci=o}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}};var{D:Dp}=nl;var wl=()=>document.createComment(""),Nr=(r,e,t)=>{let o=r._$AA.parentNode,n=e===void 0?r._$AB:e._$AA;if(t===void 0){let a=o.insertBefore(wl(),n),s=o.insertBefore(wl(),n);t=new Dp(a,s,r,r.options)}else{let a=t._$AB.nextSibling,s=t._$AM,l=s!==r;if(l){let c;t._$AQ?.(r),t._$AM=r,t._$AP!==void 0&&(c=r._$AU)!==s._$AU&&t._$AP(c)}if(a!==n||l){let c=t._$AA;for(;c!==a;){let d=c.nextSibling;o.insertBefore(c,n),c=d}}}return t},kt=(r,e,t=r)=>(r._$AI(e,t),r),Mp={},Ol=(r,e=Mp)=>r._$AH=e,El=r=>r._$AH,ni=r=>{r._$AP?.(!1,!0);let e=r._$AA,t=r._$AB.nextSibling;for(;e!==t;){let o=e.nextSibling;e.remove(),e=o}};var Cl=(r,e,t)=>{let o=new Map;for(let n=e;n<=t;n++)o.set(r[n],n);return o},Sn=$t(class extends nt{constructor(r){if(super(r),r.type!==Pt.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,e,t){let o;t===void 0?t=e:e!==void 0&&(o=e);let n=[],a=[],s=0;for(let l of r)n[s]=o?o(l,s):s,a[s]=t(l,s),s++;return{values:a,keys:n}}render(r,e,t){return this.ht(r,e,t).values}update(r,[e,t,o]){let n=El(r),{values:a,keys:s}=this.ht(e,t,o);if(!Array.isArray(n))return this.dt=s,a;let l=this.dt??=[],c=[],d,h,u=0,y=n.length-1,b=0,v=a.length-1;for(;u<=y&&b<=v;)if(n[u]===null)u++;else if(n[y]===null)y--;else if(l[u]===s[b])c[b]=kt(n[u],a[b]),u++,b++;else if(l[y]===s[v])c[v]=kt(n[y],a[v]),y--,v--;else if(l[u]===s[v])c[v]=kt(n[u],a[v]),Nr(r,c[v+1],n[u]),u++,v--;else if(l[y]===s[b])c[b]=kt(n[y],a[b]),Nr(r,n[u],n[y]),y--,b++;else if(d===void 0&&(d=Cl(s,b,v),h=Cl(l,u,y)),d.has(l[u]))if(d.has(l[y])){let O=h.get(s[b]),T=O!==void 0?n[O]:null;if(T===null){let N=Nr(r,n[u]);kt(N,a[b]),c[b]=N}else c[b]=kt(T,a[b]),Nr(r,n[u],T),n[O]=null;b++}else ni(n[y]),y--;else ni(n[u]),u++;for(;b<=v;){let O=Nr(r,c[v+1]);kt(O,a[b]),c[b++]=O}for(;u<=y;){let O=n[u++];O!==null&&ni(O)}return this.dt=s,Ol(r,c),We}});var On={};ee(On,{classMap:()=>Pe});var Pe=$t(class extends nt{constructor(r){if(super(r),r.type!==Pt.ATTRIBUTE||r.name!=="class"||r.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(r){return" "+Object.keys(r).filter(e=>r[e]).join(" ")+" "}update(r,[e]){if(this.it===void 0){this.it=new Set,r.strings!==void 0&&(this.st=new Set(r.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in e)e[o]&&!this.st?.has(o)&&this.it.add(o);return this.render(e)}let t=r.element.classList;for(let o of this.it)o in e||(t.remove(o),this.it.delete(o));for(let o in e){let n=!!e[o];n===this.it.has(o)||this.st?.has(o)||(n?(t.add(o),this.it.add(o)):(t.remove(o),this.it.delete(o)))}return We}});var En={};ee(En,{styleMap:()=>Bp});var Al="important",Up=" !"+Al,Bp=$t(class extends nt{constructor(r){if(super(r),r.type!==Pt.ATTRIBUTE||r.name!=="style"||r.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((e,t)=>{let o=r[t];return o==null?e:e+`${t=t.includes("-")?t:t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(r,[e]){let{style:t}=r.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(e)),this.render(e);for(let o of this.ut)e[o]==null&&(this.ut.delete(o),o.includes("-")?t.removeProperty(o):t[o]=null);for(let o in e){let n=e[o];if(n!=null){this.ut.add(o);let a=typeof n=="string"&&n.endsWith(Up);o.includes("-")||a?t.setProperty(o,a?n.slice(0,-11):n,a?Al:""):t[o]=n}}return We}});var An={};ee(An,{UnsafeHTMLDirective:()=>Tr,unsafeHTML:()=>Cn});var Tr=class extends nt{constructor(e){if(super(e),this.et=ue,e.type!==Pt.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===ue||e==null)return this.vt=void 0,this.et=e;if(e===We)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.et)return this.vt;this.et=e;let t=[e];return t.raw=t,this.vt={_$litType$:this.constructor.resultType,strings:t,values:[]}}};Tr.directiveName="unsafeHTML",Tr.resultType=1;var Cn=$t(Tr);var Nn={};ee(Nn,{CacheRegistry:()=>at});var _n={};ee(_n,{CancelablePromise:()=>Ir,CanceledPromiseError:()=>dr,cancelable:()=>Rn});var dr=class extends Error{constructor(e,t,o){super(e),this.canceledPromiseResult=t,this.canceledPromiseError=o}},Ir=class extends Promise{constructor(e){super((t,o)=>e(n=>{this.isCanceled?o(new dr("Promise has been canceled",n)):t(n)},n=>{this.isCanceled?o(new dr("Promise has been canceled",void 0,n)):o(n)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},Rn=r=>new Ir((e,t)=>r.then(e).catch(t));var at=class{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(e,t){this.loaders[e]=t,this.finalContent.delete(e)}registerFinal(e,t){this.loaders[e]=t,this.finalContent.add(e)}clearAll(){for(let e in this.content)this.clear(e)}clear(e){this.finalContent.has(e)||this.forceClear(e)}forceClear(e){this.clearClearTimeout(e),this.content[e]instanceof Ir&&this.content[e].cancel(),delete this.content[e]}clearClearTimeout(e){this.clearTimeouts[e]!=null&&(window.clearTimeout(this.clearTimeouts[e]),delete this.clearTimeouts[e])}set(e,t){this.forceClear(e),this.register(e,async()=>t),this.content[e]=t}setFinal(e,t){this.forceClear(e),this.registerFinal(e,async()=>t),this.content[e]=t}async get(e,t,o){if(this.content[e]===void 0){if(t=t??this.loaders[e],t==null)throw new Error("Unknown cache key "+e);let n=Rn(t());return this.content[e]=n,n.then(a=>(this.content[e]=a,o!=null&&(this.clearClearTimeout(e),this.clearTimeouts[e]=window.setTimeout(()=>this.clear(e),o)),a))}if(this.content[e]instanceof Error)throw this.content[e];return this.content[e]}isResolvedValue(e){return e!=null&&!(e instanceof Promise)&&!(e instanceof Error)}getNow(e){if(this.isResolvedValue(this.content[e]))return this.content[e]}has(e){return this.content[e]!=null}resolvedKeys(){return Object.keys(this.content).filter(e=>this.isResolvedValue(this.content[e]))}resolvedValues(){return Object.values(this.content).filter(e=>this.isResolvedValue(e))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}};var Tn={};ee(Tn,{ClusteringHelper:()=>uo});var uo=class r{constructor(e,t,o,n){this.allResults=e,this.selectedResult=t,this.clusteringMetadata=o,this.metadataDescriptors=n}static extractResultMetadata(e,t){var o,n;let a=((n=(o=e?.map)!==null&&o!==void 0?o:e?.document)!==null&&n!==void 0?n:e?.topic).metadata;return t==null?r.flattenMetadata(a):r.flattenMetadata(a.find(s=>s.key===t))}static flattenMetadata(e){if(Array.isArray(e))return e.map(o=>r.flattenMetadata(o)).filter(o=>o!=null);let t=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!t))if(t){let o=[],n=[];return e.hierarchicalValues.forEach(a=>{o.push(a.join(" > ")),a.length>2?n.push(`... > ${a[a.length-1]}`):n.push(a.join(" > "))}),{key:e.key,label:e.label,value:o.join(", "),displayValue:n.join(", ")}}else{let o=e.values.join(", ");return{key:e.key,label:e.label,value:o,displayValue:o}}}computeClustersItemsForMetadata(e,t,o="No value"){var n,a;let s=r.extractResultMetadata(this.selectedResult,e),l=(n=s?.label)!==null&&n!==void 0?n:(a=this.getMetadataDescriptor(e))===null||a===void 0?void 0:a.label;return this.allResults.map(d=>r.extractResultMetadata(d,e)).map(d=>d??{key:e,label:l,value:void 0,displayValue:o}).filter(d=>d.value!=s?.value).filter((d,h,u)=>u.findIndex(y=>y.value===d.value)===h).map(d=>({result:this.findBestResultForMetadataValue(e,d.value),metadata:d})).sort((d,h)=>this.compareMetadata(d.metadata.value,h.metadata.value,e,t))}compareMetadata(e,t,o,n){if(e==null)return-1;if(t==null)return 1;let a=this.getMetadataDescriptor(o),s=a?.sortRule||"NONE",l=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let c=e.localeCompare(t,n,{numeric:!0});return l?c*-1:c}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(t=>e==t.key)}findBestResultForMetadataValue(e,t){let o=this.allResults.filter(c=>{var d;return((d=r.extractResultMetadata(c,e))===null||d===void 0?void 0:d.value)==t}),a=[...r.extractResultMetadata(this.selectedResult).filter(c=>this.clusteringMetadata.has(c.key)).filter(c=>c.key!==e)],s,l=-1;for(let c of o){let d=this.countMatchingMetadata(c,a);if(d>l&&(l=d,s=c,d===a.length))break}return s}countMatchingMetadata(e,t){return r.extractResultMetadata(e).filter(o=>t.some(n=>n.key===o.key&&n.value===o.value)).length}};var In={};ee(In,{Debouncer:()=>ae});var ae=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,t){return this.callbacks=[e],this.debounce(t)}queue(e,t){return this.callbacks.push(e),this.debounce(t)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((t,o)=>{this.resolvePromise=t,this.rejectPromise=o})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,t;let o=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(t=this.resolvePromise)!==null&&t!==void 0?t:()=>null;this.clearPromise();for(let s of 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 Ln={};ee(Ln,{customElement:()=>V,isNumber:()=>_l,jsonProperty:()=>st,optionalNumberProperty:()=>Vp});var kn={};ee(kn,{dateReviver:()=>Fp,deepEqual:()=>Je,delay:()=>ai,eventPathContainsMatchingElement:()=>Hp,flatDeep:()=>Rl,hasChanged:()=>ho,last:()=>Wp,minmax:()=>$n,parseDate:()=>si,waitFor:()=>fo,waitUntil:()=>Pn});var ai=r=>new Promise(e=>setTimeout(e,r));async function Pn(r,e=10,t=2e4){await fo(async()=>await r()||void 0,e,t)}async function fo(r,e=10,t=2e4){let o=await r(),n,a;for(n=a=performance.now();o==null&&(!t||a-n<t);)await ai(e),o=await r(),a=performance.now();if(o==null)throw new Error("Timeout exceeded");return o}function Rl(r,e){return r.flatMap(t=>[t,...Rl(e(t),e)])}function Fp(...r){return function(e,t){return r.includes(e)?si(t):t}}function si(r){return r.match(/^\d{4}-\d{2}-\d{2}$/)&&(r=r.replace(/-/g,"/")),r=r.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,t,o,n)=>t+o+":"+n),new Date(r)}function zp(r,e){if(r===e)return!0;if(r&&e&&typeof r=="object"&&typeof e=="object"){if(r.constructor!==e.constructor)return!1;var t,o,n;if(Array.isArray(r)){if(t=r.length,t!=e.length)return!1;for(o=t;o--!==0;)if(!Je(r[o],e[o]))return!1;return!0}if(r instanceof Map&&e instanceof Map){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[0]))return!1;for(o of r.entries())if(!Je(o[1],e.get(o[0])))return!1;return!0}if(r instanceof Set&&e instanceof Set){if(r.size!==e.size)return!1;for(o of r.entries())if(!e.has(o[0]))return!1;return!0}if(r.constructor===RegExp)return r.source===e.source&&r.flags===e.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===e.valueOf();if(n=Object.keys(r),t=n.length,t!==Object.keys(e).length)return!1;for(o=t;o--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[o]))return!1;for(o=t;o--!==0;){var a=n[o];if(!Je(r[a],e[a]))return!1}return!0}return r!==r&&e!==e}function Je(r,e){try{return zp(r,e)}catch{return!1}}function ho(r,e){return!Je(r,e)}function Hp(r,e,t=window.document.body){if(e.length>0){let o=r.composedPath();for(let n of o){if(n===t)return!1;if(n.matches&&e.some(a=>n.matches(a)))return!0}}return!1}function $n(r,e,t){return Math.min(Math.max(r,e),t)}function Wp(r){return r[r.length-1]}var V=r=>e=>{window.customElements.get(r)||window.customElements.define(r,e)};function st(r,e){let t=()=>JSON.parse(JSON.stringify(r));return g({type:Object,converter:{fromAttribute:o=>{if(o==null)return t();try{return JSON.parse(o)}catch{return t()}},toAttribute:o=>JSON.stringify(o)},hasChanged:ho,...e??{}})}function Vp(r){return g({type:Object,converter:{fromAttribute:e=>{if(e!=null)return _l(e)?+e:void 0},toAttribute:e=>e==null?void 0:""+e},...r??{}})}function _l(r){return!isNaN(parseFloat(r))}var da={};ee(da,{designSystemVariables:()=>R});var ca={};ee(ca,{DesignSystemFamily:()=>pr,DesignSystemSize:()=>xt,FtCssVariableFactory:()=>i,badge:()=>qp,banner:()=>Zp,breadcrumb:()=>Yp,button:()=>A,chart:()=>cu,checkbox:()=>pu,chip:()=>Kp,collapsible:()=>su,comboboxMultiSelect:()=>nu,comboboxSingleSelect:()=>iu,drawer:()=>Qp,floatingMenu:()=>ou,foundation:()=>p,link:()=>Gp,modal:()=>Jp,notice:()=>du,notification:()=>hu,pageHeader:()=>Xp,popover:()=>au,radio:()=>fu,resolveFamilyClass:()=>sa,resolveSizeClass:()=>la,semantic:()=>f,setVariable:()=>C,switch_:()=>lu,tabs:()=>eu,textArea:()=>ru,textInput:()=>tu,toggle:()=>uu,tooltip:()=>mu,typographies:()=>mo,typographyBody1Medium:()=>zn,typographyBody1Regular:()=>Fn,typographyBody1Semibold:()=>Hn,typographyBody2Medium:()=>Vn,typographyBody2MediumUnderline:()=>Nl,typographyBody2Regular:()=>Wn,typographyBody2Semibold:()=>jn,typographyCaption1Bold:()=>ea,typographyCaption1Medium:()=>Jn,typographyCaption1Semibold:()=>Qn,typographyCaption2Bold:()=>oa,typographyCaption2Medium:()=>ta,typographyCaption2Semibold:()=>ra,typographyCaption3Bold:()=>aa,typographyCaption3Medium:()=>ia,typographyCaption3Semibold:()=>na,typographyDisplay:()=>Dn,typographyLabel1Bold:()=>Zn,typographyLabel1Medium:()=>Kn,typographyLabel1Semibold:()=>Gn,typographyLabel2Bold:()=>Xn,typographyLabel2Medium:()=>qn,typographyLabel2Semibold:()=>Yn,typographyTitle1:()=>Mn,typographyTitle2:()=>Un,typographyTitle3:()=>Bn,typographyVariants:()=>jp});var vt=r=>typeof r=="string"?mt(r):r,i=class{static create(e,t,o,n){let a=l=>vt(l??n),s=I`var(${vt(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=o,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>I`var(${vt(e)}, ${a(l)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>n,s}static extend(e,t,o,n){let a=l=>o.get(l??n),s=I`var(${vt(e)}, ${a(n)})`;return s.name=e,s.description=t,s.category=o.category,s.fallbackVariable=o,s.defaultValue=n,s.defaultCssValue=a,s.get=l=>I`var(${vt(e)}, ${a(l)})`,s.breadcrumb=()=>[o.name,...o.breadcrumb()],s.lastResortDefaultValue=()=>n??o.lastResortDefaultValue(),s}static external(e,t){let o=a=>e.fallbackVariable?e.fallbackVariable.get(a??e.defaultValue):vt(a??e.lastResortDefaultValue()),n=I`var(${vt(e.name)}, ${o(e.defaultValue)})`;return n.name=e.name,n.category=e.category,n.fallbackVariable=e.fallbackVariable,n.defaultValue=e.defaultValue,n.context=t,n.defaultCssValue=o,n.get=a=>I`var(${vt(e.name)}, ${o(a)})`,n.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],n.lastResortDefaultValue=()=>e.lastResortDefaultValue(),n}};function C(r,e){return vt(`${r.name}: ${e}`)}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)")},Dn={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")},Mn={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")},Un={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")},Bn={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")},Fn={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")},zn={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")},Hn={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")},Wn={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")},Vn={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")},Nl={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")},jn={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")},Kn={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")},Gn={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")},Zn={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")},qn={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")},Yn={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")},Xn={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")},Jn={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")},Qn={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")},ea={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")},ta={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")},ra={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")},oa={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")},ia={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")},na={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")},aa={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")},mo={display:Dn,"title-1":Mn,"title-2":Un,"title-3":Bn,"body-1-regular":Fn,"body-1-medium":zn,"body-1-semibold":Hn,"body-2-regular":Wn,"body-2-medium":Vn,"body-2-medium-underline":Nl,"body-2-semibold":jn,"label-1-medium":Kn,"label-1-semibold":Gn,"label-1-bold":Zn,"label-2-medium":qn,"label-2-semibold":Yn,"label-2-bold":Xn,"caption-1-medium":Jn,"caption-1-semibold":Qn,"caption-1-bold":ea,"caption-2-medium":ta,"caption-2-semibold":ra,"caption-2-bold":oa,"caption-3-medium":ia,"caption-3-semibold":na,"caption-3-bold":aa},jp=["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.
|
|
7
|
+
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 A={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"),mediumHeight:i.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:i.extend("--ft-button-medium-horizontal-padding","",p.spacing3),mediumGap:i.extend("--ft-button-medium-gap","",p.spacing2),mediumBorderRadius:i.extend("--ft-button-medium-border-radius","",p.borderRadiusS),mediumIconSize:i.extend("--ft-button-medium-icon-size","",p.iconSize2),mediumBorderWidth:i.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:i.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:i.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:i.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:i.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ft-button-small-horizontal-padding","",p.spacing2),smallGap:i.extend("--ft-button-small-gap","",p.spacing1),smallBorderRadius:i.extend("--ft-button-small-border-radius","",p.borderRadiusS),smallIconSize:i.extend("--ft-button-small-icon-size","",p.iconSize1),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","20px"),xSmallHeight:i.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:i.extend("--ft-button-x-small-icon-size","",p.iconSize1),xSmallFocusOutlineOffset:i.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:i.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:i.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:i.extend("--ft-button-round-border-radius","",p.borderRadiusPill),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 Kp={largeMinHeight:i.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:i.extend("--ft-chip-large-horizontal-padding","",p.spacing3),largeButtonRightPadding:i.extend("--ft-chip-large-button-right-padding","",p.spacing1),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.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:i.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:i.extend("--ft-chip-large-icon-size","",p.iconSize3),mediumMinHeight:i.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:i.extend("--ft-chip-medium-horizontal-padding","",p.spacing2),mediumButtonRightPadding:i.extend("--ft-chip-medium-button-right-padding","",p.spacing05),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.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:i.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:i.extend("--ft-chip-medium-icon-size","",p.iconSize2),smallMinHeight:i.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:i.extend("--ft-chip-small-horizontal-padding","",p.spacing1),smallButtonRightPadding:i.extend("--ft-chip-small-button-right-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.create("--ft-chip-small-border-radius","","SIZE","10px"),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 Gp={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 Zp={iconSize:i.extend("--ft-banner-icon-size","",p.iconSize5),borderWidth:i.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:i.extend("--ft-banner-left-padding","",p.spacing6),rightPadding:i.extend("--ft-banner-right-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 qp={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 Yp={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 Xp={horizontalPadding:i.extend("--ft-page-header-horizontal-padding","",p.spacing6),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 Jp={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 Qp={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 eu={offBorderBottomWidth:i.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:i.extend("--ft-tabs-off-hover-state-layer-opacity","",p.opacity8),offDefaultStateLayerOpacity:i.extend("--ft-tabs-off-default-state-layer-opacity","",p.opacity0),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),offBorderBottomColor:i.extend("--ft-tabs-off-border-bottom-color","",f.borderGlobalSubtle),activeTabIndicatorHeight:i.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),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),onHoverStateLayerOpacity:i.extend("--ft-tabs-on-hover-state-layer-opacity","",p.opacity16),onDefaultStateLayerOpacity:i.extend("--ft-tabs-on-default-state-layer-opacity","",p.opacity8),onFocusStateLayerOpacity:i.extend("--ft-tabs-on-focus-state-layer-opacity","",p.opacity16),onActiveStateLayerOpacity:i.extend("--ft-tabs-on-active-state-layer-opacity","",p.opacity24),onColor:i.extend("--ft-tabs-on-color","",f.contentActionPrimary),onStateLayerColor:i.extend("--ft-tabs-on-state-layer-color","",f.contentActionPrimary),onActiveTabIndicatorColor:i.extend("--ft-tabs-on-active-tab-indicator-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 tu={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 ru={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 ou={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),shadow:i.extend("--ft-floating-menu-shadow","",p.shadowElevation02)};var iu={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 nu={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 au={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),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 su={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 lu={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 cu={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 du={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 pu={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 uu={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 fu={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 hu={iconSize:i.extend("--ft-notification-icon-size","",p.iconSize4),leftPadding:i.extend("--ft-notification-left-padding","",p.spacing5),rightPadding:i.extend("--ft-notification-right-padding","",p.spacing4),verticalPadding:i.extend("--ft-notification-vertical-padding","",p.spacing3),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 mu={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.shadowElevation02),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","256px"),gap:i.extend("--ft-tooltip-gap","",p.spacing05)};var pr;(function(r){r.brand="brand",r.neutral="neutral",r.info="info",r.success="success",r.warning="warning",r.error="error"})(pr||(pr={}));var xt;(function(r){r.large="large",r.medium="medium",r.small="small"})(xt||(xt={}));function sa(r){return`ftds--family-${r}`}function la(r){return`ftds--size-${r}`}var R={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 fa={};ee(fa,{FtNotificationEvent:()=>$e,PostResizeEvent:()=>ua,PreResizeEvent:()=>pa});var $e=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},pa=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},ua=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};var Ea={};ee(Ea,{computeOffsetPosition:()=>So});var Il=["top","right","bottom","left"],Tl=["start","end"],ma=Il.reduce((r,e)=>r.concat(e,e+"-"+Tl[0],e+"-"+Tl[1]),[]),go=Math.min,Lt=Math.max,yo=Math.round;var St=r=>({x:r,y:r}),gu={left:"right",right:"left",bottom:"top",top:"bottom"},yu={start:"end",end:"start"};function ga(r,e,t){return Lt(r,go(e,t))}function li(r,e){return typeof r=="function"?r(e):r}function Pr(r){return r.split("-")[0]}function Dt(r){return r.split("-")[1]}function ya(r){return r==="x"?"y":"x"}function ba(r){return r==="y"?"height":"width"}function ci(r){return["top","bottom"].includes(Pr(r))?"y":"x"}function va(r){return ya(ci(r))}function Pl(r,e,t){t===void 0&&(t=!1);let o=Dt(r),n=va(r),a=ba(n),s=n==="x"?o===(t?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=ha(s)),[s,ha(s)]}function $l(r){return r.replace(/start|end/g,e=>yu[e])}function ha(r){return r.replace(/left|right|bottom|top/g,e=>gu[e])}function bu(r){return{top:0,right:0,bottom:0,left:0,...r}}function kl(r){return typeof r!="number"?bu(r):{top:r,right:r,bottom:r,left:r}}function ur(r){return{...r,top:r.y,left:r.x,right:r.x+r.width,bottom:r.y+r.height}}function Ll(r,e,t){let{reference:o,floating:n}=r,a=ci(e),s=va(e),l=ba(s),c=Pr(e),d=a==="y",h=o.x+o.width/2-n.width/2,u=o.y+o.height/2-n.height/2,y=o[l]/2-n[l]/2,b;switch(c){case"top":b={x:h,y:o.y-n.height};break;case"bottom":b={x:h,y:o.y+o.height};break;case"right":b={x:o.x+o.width,y:u};break;case"left":b={x:o.x-n.width,y:u};break;default:b={x:o.x,y:o.y}}switch(Dt(e)){case"start":b[s]-=y*(t&&d?-1:1);break;case"end":b[s]+=y*(t&&d?-1:1);break}return b}var Dl=async(r,e,t)=>{let{placement:o="bottom",strategy:n="absolute",middleware:a=[],platform:s}=t,l=a.filter(Boolean),c=await(s.isRTL==null?void 0:s.isRTL(e)),d=await s.getElementRects({reference:r,floating:e,strategy:n}),{x:h,y:u}=Ll(d,o,c),y=o,b={},v=0;for(let O=0;O<l.length;O++){let{name:T,fn:N}=l[O],{x:$,y:w,data:S,reset:E}=await N({x:h,y:u,initialPlacement:o,placement:y,strategy:n,middlewareData:b,rects:d,platform:s,elements:{reference:r,floating:e}});if(h=$??h,u=w??u,b={...b,[T]:{...b[T],...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:e,strategy:n}):E.rects),{x:h,y:u}=Ll(d,y,c)),O=-1;continue}}return{x:h,y:u,placement:y,strategy:n,middlewareData:b}};async function xa(r,e){var t;e===void 0&&(e={});let{x:o,y:n,platform:a,rects:s,elements:l,strategy:c}=r,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:u="floating",altBoundary:y=!1,padding:b=0}=li(e,r),v=kl(b),T=l[y?u==="floating"?"reference":"floating":u],N=ur(await a.getClippingRect({element:(t=await(a.isElement==null?void 0:a.isElement(T)))==null||t?T:T.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:d,rootBoundary:h,strategy:c})),$=u==="floating"?{...s.floating,x:o,y:n}:s.reference,w=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),S=await(a.isElement==null?void 0:a.isElement(w))?await(a.getScale==null?void 0:a.getScale(w))||{x:1,y:1}:{x:1,y:1},E=ur(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:$,offsetParent:w,strategy:c}):$);return{top:(N.top-E.top+v.top)/S.y,bottom:(E.bottom-N.bottom+v.bottom)/S.y,left:(N.left-E.left+v.left)/S.x,right:(E.right-N.right+v.right)/S.x}}function vu(r,e,t){return(r?[...t.filter(n=>Dt(n)===r),...t.filter(n=>Dt(n)!==r)]:t.filter(n=>Pr(n)===n)).filter(n=>r?Dt(n)===r||(e?$l(n)!==n:!1):!0)}var Sa=function(r){return r===void 0&&(r={}),{name:"autoPlacement",options:r,async fn(e){var t,o,n;let{rects:a,middlewareData:s,placement:l,platform:c,elements:d}=e,{crossAxis:h=!1,alignment:u,allowedPlacements:y=ma,autoAlignment:b=!0,...v}=li(r,e),O=u!==void 0||y===ma?vu(u||null,b,y):y,T=await xa(e,v),N=((t=s.autoPlacement)==null?void 0:t.index)||0,$=O[N];if($==null)return{};let w=Pl($,a,await(c.isRTL==null?void 0:c.isRTL(d.floating)));if(l!==$)return{reset:{placement:O[0]}};let S=[T[Pr($)],T[w[0]],T[w[1]]],E=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:$,overflows:S}],U=O[N+1];if(U)return{data:{index:N+1,overflows:E},reset:{placement:U}};let J=E.map(D=>{let m=Dt(D.placement);return[D.placement,m&&h?D.overflows.slice(0,2).reduce((x,k)=>x+k,0):D.overflows[0],D.overflows]}).sort((D,m)=>D[1]-m[1]),Q=((n=J.filter(D=>D[2].slice(0,Dt(D[0])?2:3).every(m=>m<=0))[0])==null?void 0:n[0])||J[0][0];return Q!==l?{data:{index:N+1,overflows:E},reset:{placement:Q}}:{}}}};var wa=function(r){return r===void 0&&(r={}),{name:"shift",options:r,async fn(e){let{x:t,y:o,placement:n}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:T=>{let{x:N,y:$}=T;return{x:N,y:$}}},...c}=li(r,e),d={x:t,y:o},h=await xa(e,c),u=ci(Pr(n)),y=ya(u),b=d[y],v=d[u];if(a){let T=y==="y"?"top":"left",N=y==="y"?"bottom":"right",$=b+h[T],w=b-h[N];b=ga($,b,w)}if(s){let T=u==="y"?"top":"left",N=u==="y"?"bottom":"right",$=v+h[T],w=v-h[N];v=ga($,v,w)}let O=l.fn({...e,[y]:b,[u]:v});return{...O,data:{x:O.x-t,y:O.y-o}}}}};function wt(r){return Ul(r)?(r.nodeName||"").toLowerCase():"#document"}function Ue(r){var e;return(r==null||(e=r.ownerDocument)==null?void 0:e.defaultView)||window}function Ot(r){var e;return(e=(Ul(r)?r.ownerDocument:r.document)||window.document)==null?void 0:e.documentElement}function Ul(r){return r instanceof Node||r instanceof Ue(r).Node}function lt(r){return r instanceof Element||r instanceof Ue(r).Element}function Qe(r){return r instanceof HTMLElement||r instanceof Ue(r).HTMLElement}function Ml(r){return typeof ShadowRoot>"u"?!1:r instanceof ShadowRoot||r instanceof Ue(r).ShadowRoot}function $r(r){let{overflow:e,overflowX:t,overflowY:o,display:n}=Ve(r);return/auto|scroll|overlay|hidden|clip/.test(e+o+t)&&!["inline","contents"].includes(n)}function Bl(r){return["table","td","th"].includes(wt(r))}function pi(r){let e=ui(),t=Ve(r);return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(t.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(t.contain||"").includes(o))}function Fl(r){let e=fr(r);for(;Qe(e)&&!bo(e);){if(pi(e))return e;e=fr(e)}return null}function ui(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function bo(r){return["html","body","#document"].includes(wt(r))}function Ve(r){return Ue(r).getComputedStyle(r)}function vo(r){return lt(r)?{scrollLeft:r.scrollLeft,scrollTop:r.scrollTop}:{scrollLeft:r.pageXOffset,scrollTop:r.pageYOffset}}function fr(r){if(wt(r)==="html")return r;let e=r.assignedSlot||r.parentNode||Ml(r)&&r.host||Ot(r);return Ml(e)?e.host:e}function zl(r){let e=fr(r);return bo(e)?r.ownerDocument?r.ownerDocument.body:r.body:Qe(e)&&$r(e)?e:zl(e)}function di(r,e,t){var o;e===void 0&&(e=[]),t===void 0&&(t=!0);let n=zl(r),a=n===((o=r.ownerDocument)==null?void 0:o.body),s=Ue(n);return a?e.concat(s,s.visualViewport||[],$r(n)?n:[],s.frameElement&&t?di(s.frameElement):[]):e.concat(n,di(n,[],t))}function Vl(r){let e=Ve(r),t=parseFloat(e.width)||0,o=parseFloat(e.height)||0,n=Qe(r),a=n?r.offsetWidth:t,s=n?r.offsetHeight:o,l=yo(t)!==a||yo(o)!==s;return l&&(t=a,o=s),{width:t,height:o,$:l}}function jl(r){return lt(r)?r:r.contextElement}function kr(r){let e=jl(r);if(!Qe(e))return St(1);let t=e.getBoundingClientRect(),{width:o,height:n,$:a}=Vl(e),s=(a?yo(t.width):t.width)/o,l=(a?yo(t.height):t.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}var xu=St(0);function Kl(r){let e=Ue(r);return!ui()||!e.visualViewport?xu:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Su(r,e,t){return e===void 0&&(e=!1),!t||e&&t!==Ue(r)?!1:e}function xo(r,e,t,o){e===void 0&&(e=!1),t===void 0&&(t=!1);let n=r.getBoundingClientRect(),a=jl(r),s=St(1);e&&(o?lt(o)&&(s=kr(o)):s=kr(r));let l=Su(a,t,o)?Kl(a):St(0),c=(n.left+l.x)/s.x,d=(n.top+l.y)/s.y,h=n.width/s.x,u=n.height/s.y;if(a){let y=Ue(a),b=o&<(o)?Ue(o):o,v=y.frameElement;for(;v&&o&&b!==y;){let O=kr(v),T=v.getBoundingClientRect(),N=Ve(v),$=T.left+(v.clientLeft+parseFloat(N.paddingLeft))*O.x,w=T.top+(v.clientTop+parseFloat(N.paddingTop))*O.y;c*=O.x,d*=O.y,h*=O.x,u*=O.y,c+=$,d+=w,v=Ue(v).frameElement}}return ur({width:h,height:u,x:c,y:d})}function wu(r){let{rect:e,offsetParent:t,strategy:o}=r,n=Qe(t),a=Ot(t);if(t===a)return e;let s={scrollLeft:0,scrollTop:0},l=St(1),c=St(0);if((n||!n&&o!=="fixed")&&((wt(t)!=="body"||$r(a))&&(s=vo(t)),Qe(t))){let d=xo(t);l=kr(t),c.x=d.x+t.clientLeft,c.y=d.y+t.clientTop}return{width:e.width*l.x,height:e.height*l.y,x:e.x*l.x-s.scrollLeft*l.x+c.x,y:e.y*l.y-s.scrollTop*l.y+c.y}}function Ou(r){return Array.from(r.getClientRects())}function Gl(r){return xo(Ot(r)).left+vo(r).scrollLeft}function Eu(r){let e=Ot(r),t=vo(r),o=r.ownerDocument.body,n=Lt(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=Lt(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight),s=-t.scrollLeft+Gl(r),l=-t.scrollTop;return Ve(o).direction==="rtl"&&(s+=Lt(e.clientWidth,o.clientWidth)-n),{width:n,height:a,x:s,y:l}}function Cu(r,e){let t=Ue(r),o=Ot(r),n=t.visualViewport,a=o.clientWidth,s=o.clientHeight,l=0,c=0;if(n){a=n.width,s=n.height;let d=ui();(!d||d&&e==="fixed")&&(l=n.offsetLeft,c=n.offsetTop)}return{width:a,height:s,x:l,y:c}}function Au(r,e){let t=xo(r,!0,e==="fixed"),o=t.top+r.clientTop,n=t.left+r.clientLeft,a=Qe(r)?kr(r):St(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 Hl(r,e,t){let o;if(e==="viewport")o=Cu(r,t);else if(e==="document")o=Eu(Ot(r));else if(lt(e))o=Au(e,t);else{let n=Kl(r);o={...e,x:e.x-n.x,y:e.y-n.y}}return ur(o)}function Zl(r,e){let t=fr(r);return t===e||!lt(t)||bo(t)?!1:Ve(t).position==="fixed"||Zl(t,e)}function Ru(r,e){let t=e.get(r);if(t)return t;let o=di(r,[],!1).filter(l=>lt(l)&&wt(l)!=="body"),n=null,a=Ve(r).position==="fixed",s=a?fr(r):r;for(;lt(s)&&!bo(s);){let l=Ve(s),c=pi(s);!c&&l.position==="fixed"&&(n=null),(a?!c&&!n:!c&&l.position==="static"&&!!n&&["absolute","fixed"].includes(n.position)||$r(s)&&!c&&Zl(r,s))?o=o.filter(h=>h!==s):n=l,s=fr(s)}return e.set(r,o),o}function _u(r){let{element:e,boundary:t,rootBoundary:o,strategy:n}=r,s=[...t==="clippingAncestors"?Ru(e,this._c):[].concat(t),o],l=s[0],c=s.reduce((d,h)=>{let u=Hl(e,h,n);return d.top=Lt(u.top,d.top),d.right=go(u.right,d.right),d.bottom=go(u.bottom,d.bottom),d.left=Lt(u.left,d.left),d},Hl(e,l,n));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Nu(r){return Vl(r)}function Tu(r,e,t){let o=Qe(e),n=Ot(e),a=t==="fixed",s=xo(r,!0,a,e),l={scrollLeft:0,scrollTop:0},c=St(0);if(o||!o&&!a)if((wt(e)!=="body"||$r(n))&&(l=vo(e)),o){let d=xo(e,!0,a,e);c.x=d.x+e.clientLeft,c.y=d.y+e.clientTop}else n&&(c.x=Gl(n));return{x:s.left+l.scrollLeft-c.x,y:s.top+l.scrollTop-c.y,width:s.width,height:s.height}}function Wl(r,e){return!Qe(r)||Ve(r).position==="fixed"?null:e?e(r):r.offsetParent}function ql(r,e){let t=Ue(r);if(!Qe(r))return t;let o=Wl(r,e);for(;o&&Bl(o)&&Ve(o).position==="static";)o=Wl(o,e);return o&&(wt(o)==="html"||wt(o)==="body"&&Ve(o).position==="static"&&!pi(o))?t:o||Fl(r)||t}var Iu=async function(r){let{reference:e,floating:t,strategy:o}=r,n=this.getOffsetParent||ql,a=this.getDimensions;return{reference:Tu(e,await n(t),o),floating:{x:0,y:0,...await a(t)}}};function Pu(r){return Ve(r).direction==="rtl"}var fi={convertOffsetParentRelativeRectToViewportRelativeRect:wu,getDocumentElement:Ot,getClippingRect:_u,getOffsetParent:ql,getElementRects:Iu,getClientRects:Ou,getDimensions:Nu,getScale:kr,isElement:lt,isRTL:Pu};var Yl=(r,e,t)=>{let o=new Map,n={platform:fi,...t},a={...n.platform,_c:o};return Dl(r,e,{...n,platform:a})};function Xl(r){return $u(r)}function Oa(r){return r.assignedSlot?r.assignedSlot:r.parentNode instanceof ShadowRoot?r.parentNode.host:r.parentNode}function $u(r){for(let e=r;e;e=Oa(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Oa(r);e;e=Oa(e)){if(!(e instanceof Element))continue;let t=getComputedStyle(e);if(t.display!=="contents"&&(t.position!=="static"||t.filter!=="none"||e.tagName==="BODY"))return e}return null}async function So(r,e,t){return Yl(r,e,{platform:{...fi,getOffsetParent:o=>fi.getOffsetParent(o,Xl)},middleware:[wa({crossAxis:!0}),Sa({allowedPlacements:[t]})]})}var _a={};ee(_a,{FtdsBase:()=>Ra,toFtdsBase:()=>gi});var Aa={};ee(Aa,{FtLitElement:()=>z});var Ca={};ee(Ca,{ScopedRegistryLitElement:()=>wo});var hi=window,ku=hi.ShadowRoot&&(hi.ShadyCSS===void 0||hi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,fb=Symbol();var Jl=(r,e)=>{ku?r.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet):e.forEach(t=>{let o=document.createElement("style"),n=hi.litNonce;n!==void 0&&o.setAttribute("nonce",n),o.textContent=t.cssText,r.appendChild(o)})};var wo=class extends yt{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([n,a])=>e.registry.define(n,a)));let t={...e.shadowRootOptions,customElements:e.registry},o=this.renderOptions.creationScope=this.attachShadow(t);return Jl(o,e.elementStyles),o}};var mi=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},rc,Ql=Symbol("constructorPrototype"),ec=Symbol("constructorName"),oc=Symbol("exportpartsDebouncer"),tc=Symbol("dynamicDependenciesLoaded"),z=class extends wo{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[rc]=new ae(5),this[ec]=this.constructor.name,this[Ql]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ec]&&Object.setPrototypeOf(this,this[Ql])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(t){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",t)}let e=this.constructor;e[tc]||(e[tc]=!0,this.importDynamicDependencies())}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate()})}contentAvailableCallback(e){}applyCustomStylesheet(e){var t,o,n;if(((o=(t=this.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&o!==void 0?o:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,t,o;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(o=(t=this.exportpartsPrefixes)===null||t===void 0?void 0:t.length)!==null&&o!==void 0&&o)&&this[oc].run(()=>{var n,a;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var t,o,n,a,s,l;let c=y=>y!=null&&y.trim().length>0,d=e.filter(c).map(y=>y.trim());if(d.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let y of(o=(t=this.shadowRoot)===null||t===void 0?void 0:t.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(O=>O.split(":")[1]))!==null&&l!==void 0?l:[];new Array(...b,...v).filter(c).map(O=>O.trim()).forEach(O=>h.add(O))}if(h.size===0){this.removeAttribute("exportparts");return}let u=[...h.values()].flatMap(y=>d.map(b=>`${y}:${b}--${y}`));this.setAttribute("exportparts",[...this.part,...u].join(", "))}};rc=oc;mi([g()],z.prototype,"exportpartsPrefix",void 0);mi([st([])],z.prototype,"exportpartsPrefixes",void 0);mi([g()],z.prototype,"customStylesheet",void 0);mi([W()],z.prototype,"useAdoptedStyleSheets",void 0);var ic=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a};function gi(r){class e extends r{constructor(){super(...arguments),this.size=xt.medium,this.family=pr.neutral}getDesignSystemBaseClasses(){return{[sa(this.family)]:!0,[la(this.size)]:!0}}}return ic([g()],e.prototype,"size",void 0),ic([g()],e.prototype,"family",void 0),e}var Ra=class extends gi(z){};var nc={};var Ia={};ee(Ia,{highlightHtml:()=>Ta,highlightHtmlColorCssVariable:()=>ac,highlightHtmlStyles:()=>Du});var hr=class r{constructor(e,t=!0,o=[],n=5e3){this.ctx=e,this.iframes=t,this.exclude=o,this.iframesTimeout=n}static matches(e,t){let o=typeof t=="string"?[t]:t,n=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(n){let a=!1;return o.every(s=>n.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,t=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(o=>{let n=t.filter(a=>a.contains(o)).length>0;t.indexOf(o)===-1&&!n&&t.push(o)}),t}getIframeContents(e,t,o=()=>{}){let n;try{let a=e.contentWindow;if(n=a.document,!a||!n)throw new Error("iframe inaccessible")}catch{o()}n&&t(n)}isIframeBlank(e){let t="about:blank",o=e.getAttribute("src").trim();return e.contentWindow.location.href===t&&o!==t&&o}observeIframeLoad(e,t,o){let n=!1,a=null,s=()=>{if(!n){n=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,t,o))}catch{o()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,t,o){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,t,o):this.getIframeContents(e,t,o):this.observeIframeLoad(e,t,o)}catch{o()}}waitForIframes(e,t){let o=0;this.forEachIframe(e,()=>!0,n=>{o++,this.waitForIframes(n.querySelector("html"),()=>{--o||t()})},n=>{n||t()})}forEachIframe(e,t,o,n=()=>{}){let a=e.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,h=>{t(d)&&(l++,o(h)),c()},c)})}createIterator(e,t,o){return document.createNodeIterator(e,t,o,!1)}createInstanceOnIframe(e){return new r(e.querySelector("html"),this.iframes)}compareNodeIframe(e,t,o){let n=e.compareDocumentPosition(o),a=Node.DOCUMENT_POSITION_PRECEDING;if(n&a)if(t!==null){let s=t.compareDocumentPosition(o),l=Node.DOCUMENT_POSITION_FOLLOWING;if(s&l)return!0}else return!0;return!1}getIteratorNode(e){let t=e.previousNode(),o;return t===null?o=e.nextNode():o=e.nextNode()&&e.nextNode(),{prevNode:t,node:o}}checkIframeFilter(e,t,o,n){let a=!1,s=!1;return n.forEach((l,c)=>{l.val===o&&(a=c,s=l.handled)}),this.compareNodeIframe(e,t,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(e,t,o,n){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(t,o,n)})})}iterateThroughNodes(e,t,o,n,a){let s=this.createIterator(t,e,n),l=[],c=[],d,h,u=()=>({prevNode:h,node:d}=this.getIteratorNode(s),d);for(;u();)this.iframes&&this.forEachIframe(t,y=>this.checkIframeFilter(d,h,y,l),y=>{this.createInstanceOnIframe(y).forEachNode(e,b=>c.push(b),n)}),c.push(d);c.forEach(y=>{o(y)}),this.iframes&&this.handleOpenIframes(l,e,o,n),a()}forEachNode(e,t,o,n=()=>{}){let a=this.getContexts(),s=a.length;s||n(),a.forEach(l=>{let c=()=>{this.iterateThroughNodes(e,l,t,o,()=>{--s<=0&&n()})};this.iframes?this.waitForIframes(l,c):c()})}};var Oo=class{constructor(e){this.ctx=e,this.ie=!1;let t=window.navigator.userAgent;(t.indexOf("MSIE")>-1||t.indexOf("Trident")>-1)&&(this.ie=!0)}set opt(e){this._opt=Object.assign({},{element:"",className:"",exclude:[],iframes:!1,iframesTimeout:5e3,separateWordSearch:!0,diacritics:!0,synonyms:{},accuracy:"partially",acrossElements:!1,caseSensitive:!1,ignoreJoiners:!1,ignoreGroups:0,ignorePunctuation:[],wildcards:"disabled",each:()=>{},noMatch:()=>{},filter:()=>!0,done:()=>{},debug:!1,log:window.console},e)}get opt(){return this._opt}get iterator(){return new hr(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,t="debug"){let o=this.opt.log;this.opt.debug&&typeof o=="object"&&typeof o[t]=="function"&&o[t](`mark.js: ${e}`)}escapeStr(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}createRegExp(e){return this.opt.wildcards!=="disabled"&&(e=this.setupWildcardsRegExp(e)),e=this.escapeStr(e),Object.keys(this.opt.synonyms).length&&(e=this.createSynonymsRegExp(e)),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),this.opt.diacritics&&(e=this.createDiacriticsRegExp(e)),e=this.createMergedBlanksRegExp(e),(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.createJoinersRegExp(e)),this.opt.wildcards!=="disabled"&&(e=this.createWildcardsRegExp(e)),e=this.createAccuracyRegExp(e),e}createSynonymsRegExp(e){let t=this.opt.synonyms,o=this.opt.caseSensitive?"":"i",n=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in t)if(t.hasOwnProperty(a)){let s=t[a],l=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),c=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);l!==""&&c!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(l)}|${this.escapeStr(c)})`,`gm${o}`),n+`(${this.processSynomyms(l)}|${this.processSynomyms(c)})`+n))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,t=>t.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,t=>t.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let t=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,t?"[\\S\\s]?":"\\S?").replace(/\u0002/g,t?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(t,o,n)=>{let a=n.charAt(o+1);return/[(|)\\]/.test(a)||a===""?t:t+"\0"})}createJoinersRegExp(e){let t=[],o=this.opt.ignorePunctuation;return Array.isArray(o)&&o.length&&t.push(this.escapeStr(o.join(""))),this.opt.ignoreJoiners&&t.push("\\u00ad\\u200b\\u200c\\u200d"),t.length?e.split(/\u0000+/).join(`[${t.join("")}]*`):e}createDiacriticsRegExp(e){let t=this.opt.caseSensitive?"":"i",o=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],n=[];return e.split("").forEach(a=>{o.every(s=>{if(s.indexOf(a)!==-1){if(n.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${t}`),`[${s}]`),n.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let t="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",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`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(t)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let t=[];return e.forEach(o=>{this.opt.separateWordSearch?o.split(" ").forEach(n=>{n.trim()&&t.indexOf(n)===-1&&t.push(n)}):o.trim()&&t.indexOf(o)===-1&&t.push(o)}),{keywords:t.sort((o,n)=>n.length-o.length),length:t.length}}isNumeric(e){return Number(parseFloat(e))==e}checkRanges(e){if(!Array.isArray(e)||Object.prototype.toString.call(e[0])!=="[object Object]")return this.log("markRanges() will only accept an array of objects"),this.opt.noMatch(e),[];let t=[],o=0;return e.sort((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,t.push(n),o=s)}),t}callNoMatchOnInvalidRanges(e,t){let o,n,a=!1;return e&&typeof e.start<"u"?(o=parseInt(e.start,10),n=o+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&n-t>0&&n-o>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:o,end:n,valid:a}}checkWhitespaceRanges(e,t,o){let n,a=!0,s=o.length,l=t-s,c=parseInt(e.start,10)-l;return c=c>s?s:c,n=c+parseInt(e.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(e)}`),this.opt.noMatch(e)):o.substring(c,n).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:c,end:n,valid:a}}getTextNodes(e){let t="",o=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,n=>{o.push({start:t.length,end:(t+=n.textContent).length,node:n})},n=>this.matchesExclude(n.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:t,nodes:o})})}matchesExclude(e){return hr.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,t,o){let n=this.opt.element?this.opt.element:"mark",a=e.splitText(t),s=a.splitText(o-t),l=document.createElement(n);return l.setAttribute("data-markjs","true"),this.opt.className&&l.setAttribute("class",this.opt.className),l.textContent=a.textContent,a.parentNode.replaceChild(l,a),s}wrapRangeInMappedTextNode(e,t,o,n,a){e.nodes.every((s,l)=>{let c=e.nodes[l+1];if(typeof c>"u"||c.start>t){if(!n(s.node))return!1;let d=t-s.start,h=(o>s.end?s.end:o)-s.start,u=e.value.substr(0,s.start),y=e.value.substr(h+s.start);if(s.node=this.wrapRangeInTextNode(s.node,d,h),e.value=u+y,e.nodes.forEach((b,v)=>{v>=l&&(e.nodes[v].start>0&&v!==l&&(e.nodes[v].start-=h),e.nodes[v].end-=h)}),o-=h,a(s.node.previousSibling,s.start),o>s.end)t=s.end;else return!1}return!0})}wrapMatches(e,t,o,n,a){let s=t===0?0:t+1;this.getTextNodes(l=>{l.nodes.forEach(c=>{c=c.node;let d;for(;(d=e.exec(c.textContent))!==null&&d[s]!=="";){if(!o(d[s],c))continue;let h=d.index;if(s!==0)for(let u=1;u<s;u++)h+=d[u].length;c=this.wrapRangeInTextNode(c,h,h+d[s].length),n(c.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,t,o,n,a){let s=t===0?0:t+1;this.getTextNodes(l=>{let c;for(;(c=e.exec(l.value))!==null&&c[s]!=="";){let d=c.index;if(s!==0)for(let u=1;u<s;u++)d+=c[u].length;let h=d+c[s].length;this.wrapRangeInMappedTextNode(l,d,h,u=>o(c[s],u),(u,y)=>{e.lastIndex=y,n(u)})}a()})}wrapRangeFromIndex(e,t,o,n){this.getTextNodes(a=>{let s=a.value.length;e.forEach((l,c)=>{let{start:d,end:h,valid:u}=this.checkWhitespaceRanges(l,s,a.value);u&&this.wrapRangeInMappedTextNode(a,d,h,y=>t(y,l,a.value.substring(d,h),c),y=>{o(y,l)})}),n()})}unwrapMatches(e){let t=e.parentNode,o=document.createDocumentFragment();for(;e.firstChild;)o.appendChild(e.removeChild(e.firstChild));t.replaceChild(o,e),this.ie?this.normalizeTextNode(t):t.normalize()}normalizeTextNode(e){if(e){if(e.nodeType===3)for(;e.nextSibling&&e.nextSibling.nodeType===3;)e.nodeValue+=e.nextSibling.nodeValue,e.parentNode.removeChild(e.nextSibling);else this.normalizeTextNode(e.firstChild);this.normalizeTextNode(e.nextSibling)}}markRegExp(e,t){this.opt=t,this.log(`Searching with expression "${e}"`);let o=0,n="wrapMatches",a=s=>{o++,this.opt.each(s)};this.opt.acrossElements&&(n="wrapMatchesAcrossElements"),this[n](e,this.opt.ignoreGroups,(s,l)=>this.opt.filter(l,s,o),a,()=>{o===0&&this.opt.noMatch(e),this.opt.done(o)})}mark(e,t){this.opt=t;let o=0,n="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),l=this.opt.caseSensitive?"":"i",c=d=>{let h=new RegExp(this.createRegExp(d),`gm${l}`),u=0;this.log(`Searching with expression "${h}"`),this[n](h,1,(y,b)=>this.opt.filter(b,d,o,u),y=>{u++,o++,this.opt.each(y)},()=>{u===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(e,t){this.opt=t;let o=0,n=this.checkRanges(e);n&&n.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(n)),this.wrapRangeFromIndex(n,(a,s,l,c)=>this.opt.filter(a,s,l,c),(a,s)=>{o++,this.opt.each(a,s)},()=>{this.opt.done(o)})):this.opt.done(o)}unmark(e){this.opt=e;let t=this.opt.element?this.opt.element:"*";t+="[data-markjs]",this.opt.className&&(t+=`.${this.opt.className}`),this.log(`Removal selector "${t}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,o=>{this.unwrapMatches(o)},o=>{let n=hr.matches(o,t),a=this.matchesExclude(o);return!n||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Na(r){let e=new Oo(r);return this.mark=(t,o)=>(e.mark(t,o),this),this.markRegExp=(t,o)=>(e.markRegExp(t,o),this),this.markRanges=(t,o)=>(e.markRanges(t,o),this),this.unmark=t=>(e.unmark(t),this),this}var Lu=Na,ac=i.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Du=I`
|
|
7
8
|
.highlight-html-match {
|
|
8
|
-
background: ${
|
|
9
|
+
background: ${ac};
|
|
9
10
|
}
|
|
10
|
-
`;function
|
|
11
|
+
`;function Ta(r,e,t){var o,n;let a=r.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new Lu(r);if(s.unmark(),e&&e.trim()){let l={className:(o=t?.className)!==null&&o!==void 0?o:"highlight-html-match"};t?.attributes!=null&&(l.each=d=>{for(let h in t.attributes)d.setAttribute(h,t.attributes[h])}),s.mark(e.replace(/"[^"]+"/g,""),{...l,separateWordSearch:!0}),((n=e.match(/"[^"]+"/g))!==null&&n!==void 0?n:[]).forEach(d=>s.mark(d.replace(/"/g,""),{...l,separateWordSearch:!1}))}}r.setAttribute("data-highlight-html-query",e??"")}var $a={};ee($a,{noTextInputDefaultClearButton:()=>Pa,noTextSelect:()=>mr,safariEllipsisFix:()=>gr,wordWrap:()=>Mu});var mr=I`
|
|
11
12
|
.ft-no-text-select {
|
|
12
13
|
-webkit-touch-callout: none;
|
|
13
14
|
-webkit-user-select: none;
|
|
@@ -16,7 +17,7 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
16
17
|
-ms-user-select: none;
|
|
17
18
|
user-select: none;
|
|
18
19
|
}
|
|
19
|
-
`,
|
|
20
|
+
`,Mu=I`
|
|
20
21
|
.ft-word-wrap {
|
|
21
22
|
white-space: normal;
|
|
22
23
|
word-wrap: break-word;
|
|
@@ -28,7 +29,7 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
28
29
|
-webkit-hyphens: auto;
|
|
29
30
|
hyphens: auto
|
|
30
31
|
}
|
|
31
|
-
`,
|
|
32
|
+
`,gr=I`
|
|
32
33
|
.ft-safari-ellipsis-fix {
|
|
33
34
|
margin-right: 0;
|
|
34
35
|
|
|
@@ -39,14 +40,14 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
39
40
|
display: inline-block;
|
|
40
41
|
width: 0;
|
|
41
42
|
}
|
|
42
|
-
`,
|
|
43
|
+
`,Pa=I`
|
|
43
44
|
input::-webkit-search-cancel-button,
|
|
44
45
|
input::-webkit-search-decoration,
|
|
45
46
|
input::-webkit-search-results-button,
|
|
46
47
|
input::-webkit-search-results-decoration {
|
|
47
48
|
display: none;
|
|
48
49
|
}
|
|
49
|
-
`;var tc={};var _a={};Q(_a,{ParametrizedLabelResolver:()=>xo});var xo=class r{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 r.replaceParameters(a,...e)}static replaceParameters(t,...e){return e.forEach((o,n)=>t=t.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(o,s))),t}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}static formatValue(t,e){return t instanceof Date?r.formatDate(t,e):t??""}static 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 ts={};Q(ts,{FtCommandQueue:()=>Oo,FtLitElementRedux:()=>jt,FtReduxStore:()=>we,clearAllStores:()=>mf,isFtReduxStore:()=>fr,redux:()=>nt,reduxEventListener:()=>So,reduxReactive:()=>Iu});var Iu=()=>(r,t)=>{var e;let o=r.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(e=o.reduxReactiveProperties)===null||e===void 0||e.add(t)},nt=r=>{let t=r??{};return(e,o)=>{var n;let a={hasChanged:co,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})}},So=r=>(t,e)=>{let o=t.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(e,r)};var Oo=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 fr(r){var t;return(t=r?.isFtReduxStore)!==null&&t!==void 0?t:!1}var ec,rc,oc,fi=Symbol("internalReduxEventsUnsubscribers"),Le=Symbol("internalStoresUnsubscribers"),hr=Symbol("internalStores"),jt=class extends F{constructor(){super(...arguments),this[ec]=new Map,this[rc]=new Map,this[oc]=[]}get reduxConstructor(){return this.constructor}update(t){super.update(t),[...this.reduxConstructor.reduxReactiveProperties].some(e=>t.has(e))&&this.updateFromStores()}getUnnamedStore(){if(this[hr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[hr].values()][0]}getStore(t){return t==null?this.getUnnamedStore():this[hr].get(t)}addStore(t,e){var o;e=(o=e??(fr(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[hr].delete(e)}setupStore(t,e){this[hr].set(t,e),this.subscribeToStore(t,e),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[hr].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[Le].has(t.store):this[Le].size>0)&&(this[e]=t.selector(n.getState(),this))}})}subscribeToStore(t,e){var o;this[Le].set(t,e.subscribe(()=>this.updateFromStores())),fr(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[fi].push(()=>e.eventBus.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(t)}unsubscribeFromStores(){this[Le].forEach((t,e)=>this.unsubscribeFromStore(e)),this[fi].forEach(t=>t()),this[fi]=[]}unsubscribeFromStore(t){this[Le].has(t)&&this[Le].get(t)(),this[Le].delete(t)}onStoreAvailable(t){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};ec=Le,rc=hr,oc=fi;jt.reduxProperties=new Map;jt.reduxReactiveProperties=new Set;jt.reduxEventListeners=new Map;function Kt(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[at]}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)===Bu}(r)||Array.isArray(r)||!!r[dc]||!!(!((t=r.constructor)===null||t===void 0)&&t[dc])||Ma(r)||Ua(r))}function mr(r,t,e){e===void 0&&(e=!1),$r(r)===0?(e?Object.keys:Pr)(r).forEach(function(o){e&&typeof o=="symbol"||t(o,r[o],r)}):r.forEach(function(o,n){return t(n,o,r)})}function $r(r){var t=r[at];return t?t.i>3?t.i-4:t.i:Array.isArray(r)?1:Ma(r)?2:Ua(r)?3:0}function Ir(r,t){return $r(r)===2?r.has(t):Object.prototype.hasOwnProperty.call(r,t)}function Pu(r,t){return $r(r)===2?r.get(t):r[t]}function pc(r,t,e){var o=$r(r);o===2?r.set(t,e):o===3?r.add(e):r[t]=e}function uc(r,t){return r===t?r!==0||1/r==1/t:r!=r&&t!=t}function Ma(r){return Mu&&r instanceof Map}function Ua(r){return Uu&&r instanceof Set}function De(r){return r.o||r.t}function Ba(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var t=mc(r);delete t[at];for(var e=Pr(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 Fa(r,t){return t===void 0&&(t=!1),za(r)||Oe(r)||!Jt(r)||($r(r)>1&&(r.set=r.add=r.clear=r.delete=$u),Object.freeze(r),t&&mr(r,function(e,o){return Fa(o,!0)},!0)),r}function $u(){Kt(2)}function za(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function se(r){var t=Da[r];return t||Kt(18,r),t}function ku(r,t){Da[r]||(Da[r]=t)}function $a(){return Eo}function Na(r,t){t&&(se("Patches"),r.u=[],r.s=[],r.v=t)}function hi(r){ka(r),r.p.forEach(Lu),r.p=null}function ka(r){r===Eo&&(Eo=r.l)}function ic(r){return Eo={p:[],l:Eo,h:r,m:!0,_:0}}function Lu(r){var t=r[at];t.i===0||t.i===1?t.j():t.g=!0}function Ta(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[at].P&&(hi(t),Kt(4)),Jt(r)&&(r=mi(t,r),t.l||gi(t,r)),t.u&&se("Patches").M(e[at].t,r,t.u,t.s)):r=mi(t,e,[]),hi(t),t.u&&t.v(t.u,t.s),r!==hc?r:void 0}function mi(r,t,e){if(za(t))return t;var o=t[at];if(!o)return mr(t,function(l,c){return nc(r,o,t,l,c,e)},!0),t;if(o.A!==r)return t;if(!o.P)return gi(r,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=o.i===4||o.i===5?o.o=Ba(o.k):o.o,a=n,s=!1;o.i===3&&(a=new Set(n),n.clear(),s=!0),mr(a,function(l,c){return nc(r,o,n,l,c,e,s)}),gi(r,n,!1),e&&r.u&&se("Patches").N(o,e,r.u,r.s)}return o.o}function nc(r,t,e,o,n,a,s){if(Oe(n)){var l=mi(r,n,a&&t&&t.i!==3&&!Ir(t.R,o)?a.concat(o):void 0);if(pc(e,o,l),!Oe(l))return;r.m=!1}else s&&e.add(n);if(Jt(n)&&!za(n)){if(!r.h.D&&r._<1)return;mi(r,n),t&&t.A.l||gi(r,n)}}function gi(r,t,e){e===void 0&&(e=!1),!r.l&&r.h.D&&r.m&&Fa(t,e)}function Ia(r,t){var e=r[at];return(e?De(e):r)[t]}function ac(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 Pa(r){r.o||(r.o=Ba(r.t))}function La(r,t,e){var o=Ma(t)?se("MapSet").F(t,e):Ua(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:$a(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},c=l,d=Co;s&&(c=[l],d=wo);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:$a()).p.push(o),o}function Du(r){return Oe(r)||Kt(22,r),function t(e){if(!Jt(e))return e;var o,n=e[at],a=$r(e);if(n){if(!n.P&&(n.i<4||!se("ES5").K(n)))return n.t;n.I=!0,o=sc(e,a),n.I=!1}else o=sc(e,a);return mr(o,function(s,l){n&&Pu(n.t,s)===l||pc(o,s,t(l))}),a===3?new Set(o):o}(r)}function sc(r,t){switch(t){case 2:return new Map(r);case 3:return Array.from(r)}return Ba(r)}function fc(){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[at];return Co.get(d,s)},set:function(d){var u=this[at];Co.set(u,s,d)}},c}function t(s){for(var l=s.length-1;l>=0;l--){var c=s[l][at];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=Pr(c),u=d.length-1;u>=0;u--){var h=d[u];if(h!==at){var y=l[h];if(y===void 0&&!Ir(l,h))return!0;var b=c[h],v=b&&b[at];if(v?v.t!==y:!uc(b,y))return!0}}var w=!!l[at];return d.length!==Pr(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&&Kt(3,JSON.stringify(De(s)))}var a={};ku("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=mc(y);delete w[at];for(var T=Pr(w),I=0;I<T.length;I++){var k=T[I];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:$a(),P:!1,I:!1,R:{},l,t:s,k:d,o:null,g:!1,C:!1};return Object.defineProperty(d,at,{value:u,writable:!0}),d},S:function(s,l,c){c?Oe(l)&&l[at].A===s&&t(s.p):(s.u&&function d(u){if(u&&typeof u=="object"){var h=u[at];if(h){var y=h.t,b=h.k,v=h.R,w=h.i;if(w===4)mr(b,function(S){S!==at&&(y[S]!==void 0||Ir(y,S)?v[S]||d(b[S]):(v[S]=!0,Me(h)))}),mr(y,function(S){b[S]!==void 0||Ir(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 T=b.length;T<y.length;T++)v[T]=!1;else for(var I=y.length;I<b.length;I++)v[I]=!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 lc,Eo,Wa=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Mu=typeof Map<"u",Uu=typeof Set<"u",cc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",hc=Wa?Symbol.for("immer-nothing"):((lc={})["immer-nothing"]=!0,lc),dc=Wa?Symbol.for("immer-draftable"):"__$immer_draftable",at=Wa?Symbol.for("immer-state"):"__$immer_state";var Bu=""+Object.prototype.constructor,Pr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,mc=Object.getOwnPropertyDescriptors||function(r){var t={};return Pr(r).forEach(function(e){t[e]=Object.getOwnPropertyDescriptor(r,e)}),t},Da={},Co={get:function(r,t){if(t===at)return r;var e=De(r);if(!Ir(e,t))return function(n,a,s){var l,c=ac(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===Ia(r.t,t)?(Pa(r),r.o[t]=La(r.A.h,o,r)):o},has:function(r,t){return t in De(r)},ownKeys:function(r){return Reflect.ownKeys(De(r))},set:function(r,t,e){var o=ac(De(r),t);if(o?.set)return o.set.call(r.k,e),!0;if(!r.P){var n=Ia(De(r),t),a=n?.[at];if(a&&a.t===e)return r.o[t]=e,r.R[t]=!1,!0;if(uc(e,n)&&(e!==void 0||Ir(r.t,t)))return!0;Pa(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 Ia(r.t,t)!==void 0||t in r.t?(r.R[t]=!1,Pa(r),Me(r)):delete r.R[t],r.o&&delete r.o[t],!0},getOwnPropertyDescriptor:function(r,t){var e=De(r),o=Reflect.getOwnPropertyDescriptor(e,t);return o&&{writable:!0,configurable:r.i!==1||t!=="length",enumerable:o.enumerable,value:e[t]}},defineProperty:function(){Kt(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){Kt(12)}},wo={};mr(Co,function(r,t){wo[r]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),wo.deleteProperty=function(r,t){return wo.set.call(this,r,t,void 0)},wo.set=function(r,t,e){return Co.set.call(this,r[0],t,e,r[0])};var Fu=function(){function r(e){var o=this;this.O=cc,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 T=this;w===void 0&&(w=l);for(var I=arguments.length,k=Array(I>1?I-1:0),O=1;O<I;O++)k[O-1]=arguments[O];return c.produce(w,function(S){var C;return(C=a).call.apply(C,[T,S].concat(k))})}}var d;if(typeof a!="function"&&Kt(6),s!==void 0&&typeof s!="function"&&Kt(7),Jt(n)){var u=ic(o),h=La(o,n,void 0),y=!0;try{d=a(h),y=!1}finally{y?hi(u):ka(u)}return typeof Promise<"u"&&d instanceof Promise?d.then(function(w){return Na(u,s),Ta(w,u)},function(w){throw hi(u),w}):(Na(u,s),Ta(d,u))}if(!n||typeof n!="object"){if((d=a(n))===void 0&&(d=n),d===hc&&(d=void 0),o.D&&Fa(d,!0),s){var b=[],v=[];se("Patches").M(n,d,b,v),s(b,v)}return d}Kt(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)||Kt(8),Oe(e)&&(e=Du(e));var o=ic(this),n=La(this,e,void 0);return n[at].C=!0,ka(o),n},t.finishDraft=function(e,o){var n=e&&e[at],a=n.A;return Na(a,o),Ta(void 0,a)},t.setAutoFreeze=function(e){this.D=e},t.setUseProxies=function(e){e&&!cc&&Kt(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}(),Ht=new Fu,zu=Ht.produce,$b=Ht.produceWithPatches.bind(Ht),kb=Ht.setAutoFreeze.bind(Ht),Lb=Ht.setUseProxies.bind(Ht),Db=Ht.applyPatches.bind(Ht),Mb=Ht.createDraft.bind(Ht),Ub=Ht.finishDraft.bind(Ht),yi=zu;function Ue(r){"@babel/helpers - typeof";return Ue=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},Ue(r)}function Ha(r,t){if(Ue(r)!=="object"||r===null)return r;var e=r[Symbol.toPrimitive];if(e!==void 0){var o=e.call(r,t||"default");if(Ue(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(r)}function Va(r){var t=Ha(r,"string");return Ue(t)==="symbol"?t:String(t)}function ja(r,t,e){return t=Va(t),t in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function gc(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 bi(r){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?gc(Object(e),!0).forEach(function(o){ja(r,o,e[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):gc(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 yc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ka=function(){return Math.random().toString(36).substring(7).split("").join(".")},vi={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 Ga(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(Ga)(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 T=!0;return d(),l.push(w),function(){if(T){if(c)throw new Error(Rt(6));T=!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 T=s=l,I=0;I<T.length;I++){var k=T[I];k()}return w}function b(w){if(typeof w!="function")throw new Error(Rt(10));n=w,y({type:vi.REPLACE})}function v(){var w,T=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=T(O);return{unsubscribe:S}}},w[yc]=function(){return this},w}return y({type:vi.INIT}),o={dispatch:y,subscribe:h,getState:u,replaceReducer:b},o[yc]=v,o}function Hu(r){Object.keys(r).forEach(function(t){var e=r[t],o=e(void 0,{type:vi.INIT});if(typeof o>"u")throw new Error(Rt(12));if(typeof e(void 0,{type:vi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Rt(13))})}function bc(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{Hu(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],T=e[w],I=d[w],k=T(I,u);if(typeof k>"u"){var O=u&&u.type;throw new Error(Rt(14))}b[w]=k,y=y||k!==I}return y=y||a.length!==Object.keys(d).length,y?b:d}}function kr(){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 vc(){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=kr.apply(void 0,l)(n.dispatch),bi(bi({},n),{},{dispatch:a})}}}function xc(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 Sc=xc();Sc.withExtraArgument=xc;var Za=Sc;var Ac=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)}}(),Vu=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}}},Lr=function(r,t){for(var e=0,o=t.length,n=r.length;e<o;e++,n++)r[n]=t[e];return r},ju=Object.defineProperty,Ku=Object.defineProperties,Gu=Object.getOwnPropertyDescriptors,Oc=Object.getOwnPropertySymbols,Zu=Object.prototype.hasOwnProperty,qu=Object.prototype.propertyIsEnumerable,wc=function(r,t,e){return t in r?ju(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e},Be=function(r,t){for(var e in t||(t={}))Zu.call(t,e)&&wc(r,e,t[e]);if(Oc)for(var o=0,n=Oc(t);o<n.length;o++){var e=n[o];qu.call(t,e)&&wc(r,e,t[e])}return r},qa=function(r,t){return Ku(r,Gu(t))},Yu=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 Xu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?kr:kr.apply(null,arguments)},rv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function Ju(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 Qu=function(r){Ac(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,Lr([void 0],e[0].concat(this)))):new(t.bind.apply(t,Lr([void 0],e.concat(this))))},t}(Array),tf=function(r){Ac(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,Lr([void 0],e[0].concat(this)))):new(t.bind.apply(t,Lr([void 0],e.concat(this))))},t}(Array);function Ja(r){return Jt(r)?yi(r,function(){}):r}function ef(r){return typeof r=="boolean"}function rf(){return function(t){return of(t)}}function of(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 Qu;if(e&&(ef(e)?l.push(Za):l.push(Za.withExtraArgument(e.extraArgument))),0){if(n)var c;if(s)var d}return l}var Ya=!0;function Rc(r){var t=rf(),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(Ju(n))b=bc(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),!Ya&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Ya&&v.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var w=vc.apply(void 0,v),T=kr;c&&(T=Xu(Be({trace:!Ya},typeof c=="object"&&c)));var I=new tf(w),k=I;Array.isArray(y)?k=Lr([w],y):typeof y=="function"&&(k=y(I));var O=T.apply(void 0,k);return Ga(b,u,O)}function Fe(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 Be(Be({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 _c(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 nf(r){return typeof r=="function"}function af(r,t,e,o){e===void 0&&(e=[]);var n=typeof t=="function"?_c(t):[t,e,o],a=n[0],s=n[1],l=n[2],c;if(nf(r))c=function(){return Ja(r())};else{var d=Ja(r);c=function(){return d}}function u(h,y){h===void 0&&(h=c());var b=Lr([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 T=v,I=w(T,y);return I===void 0?v:I}else{if(Jt(v))return yi(v,function(k){return w(k,y)});var I=w(v,y);if(I===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return I}return v},h)}return u.getInitialState=c,u}function sf(r,t){return r+"/"+t}function Nc(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:Ja(r.initialState),o=r.reducers||{},n=Object.keys(o),a={},s={},l={};n.forEach(function(u){var h=o[u],y=sf(t,u),b,v;"reducer"in h?(b=h.reducer,v=h.prepare):b=h,a[u]=b,s[y]=b,l[u]=v?Fe(y,v):Fe(y)});function c(){var u=typeof r.extraReducers=="function"?_c(r.extraReducers):[r.extraReducers],h=u[0],y=h===void 0?{}:h,b=u[1],v=b===void 0?[]:b,w=u[2],T=w===void 0?void 0:w,I=Be(Be({},y),s);return af(e,function(k){for(var O in I)k.addCase(O,I[O]);for(var S=0,C=v;S<C.length;S++){var M=C[S];k.addMatcher(M.matcher,M.reducer)}T&&k.addDefaultCase(T)})}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 lf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",cf=function(r){r===void 0&&(r=21);for(var t="",e=r;e--;)t+=lf[Math.random()*64|0];return t},df=["name","message","stack","code"],Xa=function(){function r(t,e){this.payload=t,this.meta=e}return r}(),Ec=function(){function r(t,e){this.payload=t,this.meta=e}return r}(),pf=function(r){if(typeof r=="object"&&r!==null){for(var t={},e=0,o=df;e<o.length;e++){var n=o[e];typeof r[n]=="string"&&(t[n]=r[n])}return t}return{message:String(r)}},av=function(){function r(t,e,o){var n=Fe(t+"/fulfilled",function(u,h,y,b){return{payload:u,meta:qa(Be({},b||{}),{arg:y,requestId:h,requestStatus:"fulfilled"})}}),a=Fe(t+"/pending",function(u,h,y){return{payload:void 0,meta:qa(Be({},y||{}),{arg:h,requestId:u,requestStatus:"pending"})}}),s=Fe(t+"/rejected",function(u,h,y,b,v){return{payload:b,error:(o&&o.serializeError||pf)(u||"Rejected"),meta:qa(Be({},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):cf(),w=new c,T,I=!1;function k(S){T=S,w.abort()}var O=function(){return Yu(this,null,function(){var S,C,M,W,At,Y,m;return Vu(this,function(x){switch(x.label){case 0:return x.trys.push([0,4,,5]),W=(S=o?.condition)==null?void 0:S.call(o,u,{getState:y,extra:b}),ff(W)?[4,W]:[3,2];case 1:W=x.sent(),x.label=2;case 2:if(W===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return I=!0,At=new Promise(function(N,G){return w.signal.addEventListener("abort",function(){return G({name:"AbortError",message:T||"Aborted"})})}),h(a(v,u,(C=o?.getPendingMeta)==null?void 0:C.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(N,G){return new Xa(N,G)},fulfillWithValue:function(N,G){return new Ec(N,G)}})).then(function(N){if(N instanceof Xa)throw N;return N instanceof Ec?n(N.payload,v,u,N.meta):n(N,v,u)})])];case 3:return M=x.sent(),[3,5];case 4:return Y=x.sent(),M=Y instanceof Xa?s(null,v,u,Y.payload,Y.meta):s(Y,v,u),[3,5];case 5:return m=o&&!o.dispatchConditionRejection&&s.match(M)&&M.meta.condition,m||h(M),[2,M]}})})}();return Object.assign(O,{abort:k,requestId:v,arg:u,unwrap:function(){return O.then(uf)}})}}return Object.assign(d,{pending:a,rejected:s,fulfilled:n,typePrefix:t})}return r.withTypes=function(){return r},r}();function uf(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function ff(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Tc="listener",Ic="completed",Pc="cancelled",sv="task-"+Pc,lv="task-"+Ic,cv=Tc+"-"+Pc,dv=Tc+"-"+Ic;var Qa="listenerMiddleware";var pv=Fe(Qa+"/add"),uv=Fe(Qa+"/removeAll"),fv=Fe(Qa+"/remove");var Cc,hv=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(Cc||(Cc=Promise.resolve())).then(r).catch(function(t){return setTimeout(function(){throw t},0)})},hf=function(r){return function(t){setTimeout(t,r)}},mv=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:hf(10);fc();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(fr(a))return a;if(n==null)return;let s=Nc({...n,reducers:(e=n.reducers)!==null&&e!==void 0?e:{}}),l=Rc({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 Oo,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 mf(){var r;for(let t of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))fr(t)&&t.clear()}var os={};Q(os,{scrollHelper:()=>gf});var es,xi=new Map,rs=class{lock(t,e){if(e){let o=xi.get(e);if(o==null||o===t)return xi.set(e,t),e}}release(t,e){e&&xi.get(e)===t&&xi.delete(e)}findFirstScrollableParent(t){let e,o=n=>{var a;n.stopPropagation();let s,l;for(let c of n.composedPath()){let d=c,u=this.elementCanScroll(d);if(u&&d.clientHeight&&d.clientHeight<d.scrollHeight){s=d;break}else u&&l==null&&(l=d)}e=(a=s??l)!==null&&a!==void 0?a:document.body};return t.addEventListener("find-scrollable-parent",o),t.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),t.removeEventListener("find-scrollable-parent",o),e}elementCanScroll(t){try{return["auto","scroll"].includes(getComputedStyle(t).overflowY)}catch{return!1}}getAbsoluteScrollOffset(t,e){let o=0;for(;e&&e.offsetParent!==t.offsetParent;)o+=e.offsetTop,e=e.offsetParent;return o+e.offsetTop-t.offsetTop}computeTopOffsetRatio(t,e){if(typeof t=="number")return t;switch(t){case"end":return 1;case"center":return .5;case"nearest":return e;default:return 0}}scrollIntoViewIfPossible(t,e){let o=this.findFirstScrollableParent(t);if(t&&this.lock(this,o)){let n=this.getAbsoluteScrollOffset(o,t),a=n-o.clientHeight+t.clientHeight,s=n,l=Rn(0,(s-o.scrollTop)/(s-a),1),c=this.computeTopOffsetRatio(e?.position,l)*(a-s)+s;o.scrollTo({behavior:e?.behavior,top:c})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",t,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(es=window.FluidTopicsScrollHelper)!==null&&es!==void 0?es:new rs;var gf=window.FluidTopicsScrollHelper;var is={};Q(is,{shadowQuerySelector:()=>yf,shadowQuerySelectorAll:()=>bf});function yf(r,t,...e){var o;let n=r.querySelector(t);for(let a of e)n=(o=n?.shadowRoot)===null||o===void 0?void 0:o.querySelector(a);return n}function bf(r,t,...e){let o=[...r.querySelectorAll(t)];for(let n of e)o=o.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return o}var ns={};Q(ns,{serializeRequest:()=>xf});function vf(r){return`"${r}"`}function xf(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&&t.virtualField!=="EVERYWHERE"&&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(vf(h))).join("_");return`${d.key}~${u}`}).join("*");s.append("filters",c)}return new URL(`${r.replace(/\/+$/,"")}/search?${s.toString()}`).href}var as={};Q(as,{toFtFormComponent:()=>gr});var Si=Symbol("elementInternals");function gr(r,t){class e extends r{static get formAssociated(){return!0}get form(){return this[Si].form}constructor(...n){super(n),this[Si]=this.attachInternals(),this[Si].role=t}setFormValue(n){this[Si].setFormValue(n)}}return e}var ss={};Q(ss,{DateFormatter:()=>Dr});var Dr=class{static format(t,e,o,n){return window.moment?window.moment(t).locale(e).format(this.getDateFormat(o,n)):t}static getDateFormat(t,e){return t?e?"lll":"ll":e?"L LT":"L"}};var ls,cs,ds,ps,Ao=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ds=(cs=(ls=window.safari)===null||ls===void 0?void 0:ls.pushNotification)===null||cs===void 0?void 0:cs.toString())!==null&&ds!==void 0?ds:"")==="[object SafariRemoteNotification]",Sf="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(ps=window.ftGlobals)!==null&&ps!==void 0?ps:{lit:un,litDecorators:hn,litRepeat:gn,litClassMap:yn,litStyleMap:bn,litUnsafeHTML:xn,wcUtils:{...wn,...On,...En,...ss,...Cn,...Nn,...ia,...sa,...ba,...oa,...Oa,...xa,...Jl,..._n,...Ca,...Ra,...tc,..._a,...ts,...va,...os,...is,...ns,...as,isSafari:Ao,isTouchScreen:Sf,setVariable:E}};var Gt;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Gt||(Gt={}));var Of=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},fs=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},us=Symbol("registerInterval");function wf(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[us]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[us]):this.dispatchEvent(new fs)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=us,Of([H()],e.prototype,"stateManager",void 0),e}var ze=class extends wf(jt){};var $c=i.extend("--ft-ripple-color","",R.colorContent),z={color:$c,backgroundColor:i.extend("--ft-ripple-background-color","",$c),opacityContentOnSurfacePressed:i.external(R.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.external(R.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.external(R.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.external(R.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.create("--ft-ripple-border-radius","","SIZE","0px")},kc=i.extend("--ft-ripple-color","",R.colorPrimary),Lc={color:kc,backgroundColor:i.extend("--ft-ripple-background-color","",kc)},Dc=i.extend("--ft-ripple-color","",R.colorSecondary),Mc={color:Dc,backgroundColor:i.extend("--ft-ripple-background-color","",Dc)},Uc=P`
|
|
50
|
+
`;var sc={};var ka={};ee(ka,{ParametrizedLabelResolver:()=>Eo});var Eo=class r{constructor(e,t){this.defaultLabels=e,this.labels=t}resolve(e,...t){var o,n;e=this.resolvePluralKey(e,t);let a=(n=(o=this.labels[e])!==null&&o!==void 0?o:this.defaultLabels[e])!==null&&n!==void 0?n:"";return r.replaceParameters(a,...t)}static replaceParameters(e,...t){return t.forEach((o,n)=>e=e.replace(new RegExp(`\\{${n}([^}]*)\\}`,"g"),(a,s)=>r.formatValue(o,s))),e}resolvePluralKey(e,t){for(let o of t)if(typeof o=="number"){let n=`${String(e)}[\\=${o}]`;if(n in this.labels||n in this.defaultLabels)return n}return e}static formatValue(e,t){return e instanceof Date?r.formatDate(e,t):e??""}static formatDate(e,t){let o=n=>t?.includes("date")?e.toLocaleDateString(n):t?.includes("time")?e.toLocaleTimeString(n):e.toLocaleString(n);try{return o(document.documentElement.lang)}catch{return o()}}};var as={};ee(as,{FtCommandQueue:()=>Ao,FtLitElementRedux:()=>Ge,FtReduxStore:()=>Ct,clearAllStores:()=>wf,isFtReduxStore:()=>yr,redux:()=>le,reduxEventListener:()=>Co,reduxReactive:()=>Uu});var Uu=()=>(r,e)=>{var t;let o=r.constructor;o.reduxReactiveProperties=new Set(o.reduxReactiveProperties),(t=o.reduxReactiveProperties)===null||t===void 0||t.add(e)},le=r=>{let e=r??{};return(t,o)=>{var n;let a={hasChanged:ho,attribute:!1,...e};g(a)(t,o);let s=t.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(o,{selector:(n=e.selector)!==null&&n!==void 0?n:l=>l[o],store:e.store})}},Co=r=>(e,t)=>{let o=e.constructor;o.reduxEventListeners=new Map(o.reduxEventListeners),o.reduxEventListeners.set(t,r)};var Ao=class{constructor(){this.queue=[]}add(e,t=!1){t&&(this.queue=this.queue.filter(o=>o.type!==e.type)),this.queue.push(e)}consume(e){let t=this.queue.find(o=>o.type===e);return t&&(this.queue=this.queue.filter(o=>o!==t)),t}};function yr(r){var e;return(e=r?.isFtReduxStore)!==null&&e!==void 0?e:!1}var lc,cc,dc,yi=Symbol("internalReduxEventsUnsubscribers"),Mt=Symbol("internalStoresUnsubscribers"),br=Symbol("internalStores"),Ge=class extends z{constructor(){super(...arguments),this[lc]=new Map,this[cc]=new Map,this[dc]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(t=>e.has(t))&&this.updateFromStores()}getUnnamedStore(){if(this[br].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[br].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[br].get(e)}addStore(e,t){var o;t=(o=t??(yr(e)?e.name:void 0))!==null&&o!==void 0?o:"default-store",this.unsubscribeFromStore(t),this.setupStore(t,e)}removeStore(e){let t=typeof e=="string"?e:e.name;this.unsubscribeFromStore(t),this[br].delete(t)}setupStore(e,t){this[br].set(e,t),this.subscribeToStore(e,t),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[br].forEach((e,t)=>this.subscribeToStore(t,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,t)=>{let o=this.constructor.getPropertyOptions(t);if(!o?.attribute||!this.hasAttribute(typeof o?.attribute=="string"?o.attribute:t)){let n=this.getStore(e.store);n&&(e.store?this[Mt].has(e.store):this[Mt].size>0)&&(this[t]=e.selector(n.getState(),this))}})}subscribeToStore(e,t){var o;this[Mt].set(e,t.subscribe(()=>this.updateFromStores())),yr(t)&&t.eventBus&&((o=this.reduxConstructor.reduxEventListeners)===null||o===void 0||o.forEach((n,a)=>{if(typeof this[a]=="function"&&(!n.store||t.name===n.store)){let s=l=>this[a](l);t.eventBus.addEventListener(n.eventName,s),this[yi].push(()=>t.eventBus.removeEventListener(n.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[Mt].forEach((e,t)=>this.unsubscribeFromStore(t)),this[yi].forEach(e=>e()),this[yi]=[]}unsubscribeFromStore(e){this[Mt].has(e)&&this[Mt].get(e)(),this[Mt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};lc=Mt,cc=br,dc=yi;Ge.reduxProperties=new Map;Ge.reduxReactiveProperties=new Set;Ge.reduxEventListeners=new Map;function Ze(r){for(var e=arguments.length,t=Array(e>1?e-1:0),o=1;o<e;o++)t[o-1]=arguments[o];if(0)var n,a;throw Error("[Immer] minified error nr: "+r+(t.length?" "+t.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Et(r){return!!r&&!!r[ce]}function et(r){var e;return!!r&&(function(t){if(!t||typeof t!="object")return!1;var o=Object.getPrototypeOf(t);if(o===null)return!0;var n=Object.hasOwnProperty.call(o,"constructor")&&o.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Ku}(r)||Array.isArray(r)||!!r[yc]||!!(!((e=r.constructor)===null||e===void 0)&&e[yc])||Wa(r)||Va(r))}function vr(r,e,t){t===void 0&&(t=!1),Mr(r)===0?(t?Object.keys:Dr)(r).forEach(function(o){t&&typeof o=="symbol"||e(o,r[o],r)}):r.forEach(function(o,n){return e(n,o,r)})}function Mr(r){var e=r[ce];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:Wa(r)?2:Va(r)?3:0}function Lr(r,e){return Mr(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function Bu(r,e){return Mr(r)===2?r.get(e):r[e]}function bc(r,e,t){var o=Mr(r);o===2?r.set(e,t):o===3?r.add(t):r[e]=t}function vc(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function Wa(r){return Vu&&r instanceof Map}function Va(r){return ju&&r instanceof Set}function Ut(r){return r.o||r.t}function ja(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=wc(r);delete e[ce];for(var t=Dr(e),o=0;o<t.length;o++){var n=t[o],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[n]})}return Object.create(Object.getPrototypeOf(r),e)}function Ka(r,e){return e===void 0&&(e=!1),Ga(r)||Et(r)||!et(r)||(Mr(r)>1&&(r.set=r.add=r.clear=r.delete=Fu),Object.freeze(r),e&&vr(r,function(t,o){return Ka(o,!0)},!0)),r}function Fu(){Ze(2)}function Ga(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function ct(r){var e=Ha[r];return e||Ze(18,r),e}function zu(r,e){Ha[r]||(Ha[r]=e)}function Ba(){return _o}function La(r,e){e&&(ct("Patches"),r.u=[],r.s=[],r.v=e)}function bi(r){Fa(r),r.p.forEach(Hu),r.p=null}function Fa(r){r===_o&&(_o=r.l)}function pc(r){return _o={p:[],l:_o,h:r,m:!0,_:0}}function Hu(r){var e=r[ce];e.i===0||e.i===1?e.j():e.g=!0}function Da(r,e){e._=e.p.length;var t=e.p[0],o=r!==void 0&&r!==t;return e.h.O||ct("ES5").S(e,r,o),o?(t[ce].P&&(bi(e),Ze(4)),et(r)&&(r=vi(e,r),e.l||xi(e,r)),e.u&&ct("Patches").M(t[ce].t,r,e.u,e.s)):r=vi(e,t,[]),bi(e),e.u&&e.v(e.u,e.s),r!==Sc?r:void 0}function vi(r,e,t){if(Ga(e))return e;var o=e[ce];if(!o)return vr(e,function(l,c){return uc(r,o,e,l,c,t)},!0),e;if(o.A!==r)return e;if(!o.P)return xi(r,o.t,!0),o.t;if(!o.I){o.I=!0,o.A._--;var n=o.i===4||o.i===5?o.o=ja(o.k):o.o,a=n,s=!1;o.i===3&&(a=new Set(n),n.clear(),s=!0),vr(a,function(l,c){return uc(r,o,n,l,c,t,s)}),xi(r,n,!1),t&&r.u&&ct("Patches").N(o,t,r.u,r.s)}return o.o}function uc(r,e,t,o,n,a,s){if(Et(n)){var l=vi(r,n,a&&e&&e.i!==3&&!Lr(e.R,o)?a.concat(o):void 0);if(bc(t,o,l),!Et(l))return;r.m=!1}else s&&t.add(n);if(et(n)&&!Ga(n)){if(!r.h.D&&r._<1)return;vi(r,n),e&&e.A.l||xi(r,n)}}function xi(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&Ka(e,t)}function Ma(r,e){var t=r[ce];return(t?Ut(t):r)[e]}function fc(r,e){if(e in r)for(var t=Object.getPrototypeOf(r);t;){var o=Object.getOwnPropertyDescriptor(t,e);if(o)return o;t=Object.getPrototypeOf(t)}}function Bt(r){r.P||(r.P=!0,r.l&&Bt(r.l))}function Ua(r){r.o||(r.o=ja(r.t))}function za(r,e,t){var o=Wa(e)?ct("MapSet").F(e,t):Va(e)?ct("MapSet").T(e,t):r.O?function(n,a){var s=Array.isArray(n),l={i:s?1:0,A:a?a.A:Ba(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},c=l,d=No;s&&(c=[l],d=Ro);var h=Proxy.revocable(c,d),u=h.revoke,y=h.proxy;return l.k=y,l.j=u,y}(e,t):ct("ES5").J(e,t);return(t?t.A:Ba()).p.push(o),o}function Wu(r){return Et(r)||Ze(22,r),function e(t){if(!et(t))return t;var o,n=t[ce],a=Mr(t);if(n){if(!n.P&&(n.i<4||!ct("ES5").K(n)))return n.t;n.I=!0,o=hc(t,a),n.I=!1}else o=hc(t,a);return vr(o,function(s,l){n&&Bu(n.t,s)===l||bc(o,s,e(l))}),a===3?new Set(o):o}(r)}function hc(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return ja(r)}function xc(){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[ce];return No.get(d,s)},set:function(d){var h=this[ce];No.set(h,s,d)}},c}function e(s){for(var l=s.length-1;l>=0;l--){var c=s[l][ce];if(!c.P)switch(c.i){case 5:o(c)&&Bt(c);break;case 4:t(c)&&Bt(c)}}}function t(s){for(var l=s.t,c=s.k,d=Dr(c),h=d.length-1;h>=0;h--){var u=d[h];if(u!==ce){var y=l[u];if(y===void 0&&!Lr(l,u))return!0;var b=c[u],v=b&&b[ce];if(v?v.t!==y:!vc(b,y))return!0}}var O=!!l[ce];return d.length!==Dr(l).length+(O?0:1)}function o(s){var l=s.k;if(l.length!==s.t.length)return!0;var c=Object.getOwnPropertyDescriptor(l,l.length-1);if(c&&!c.get)return!0;for(var d=0;d<l.length;d++)if(!l.hasOwnProperty(d))return!0;return!1}function n(s){s.g&&Ze(3,JSON.stringify(Ut(s)))}var a={};zu("ES5",{J:function(s,l){var c=Array.isArray(s),d=function(u,y){if(u){for(var b=Array(y.length),v=0;v<y.length;v++)Object.defineProperty(b,""+v,r(v,!0));return b}var O=wc(y);delete O[ce];for(var T=Dr(O),N=0;N<T.length;N++){var $=T[N];O[$]=r($,u||!!O[$].enumerable)}return Object.create(Object.getPrototypeOf(y),O)}(c,s),h={i:c?5:4,A:l?l.A:Ba(),P:!1,I:!1,R:{},l,t:s,k:d,o:null,g:!1,C:!1};return Object.defineProperty(d,ce,{value:h,writable:!0}),d},S:function(s,l,c){c?Et(l)&&l[ce].A===s&&e(s.p):(s.u&&function d(h){if(h&&typeof h=="object"){var u=h[ce];if(u){var y=u.t,b=u.k,v=u.R,O=u.i;if(O===4)vr(b,function(S){S!==ce&&(y[S]!==void 0||Lr(y,S)?v[S]||d(b[S]):(v[S]=!0,Bt(u)))}),vr(y,function(S){b[S]!==void 0||Lr(b,S)||(v[S]=!1,Bt(u))});else if(O===5){if(o(u)&&(Bt(u),v.length=!0),b.length<y.length)for(var T=b.length;T<y.length;T++)v[T]=!1;else for(var N=y.length;N<b.length;N++)v[N]=!0;for(var $=Math.min(b.length,y.length),w=0;w<$;w++)b.hasOwnProperty(w)||(v[w]=!0),v[w]===void 0&&d(b[w])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?t(s):o(s)}})}var mc,_o,Za=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Vu=typeof Map<"u",ju=typeof Set<"u",gc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Sc=Za?Symbol.for("immer-nothing"):((mc={})["immer-nothing"]=!0,mc),yc=Za?Symbol.for("immer-draftable"):"__$immer_draftable",ce=Za?Symbol.for("immer-state"):"__$immer_state";var Ku=""+Object.prototype.constructor,Dr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,wc=Object.getOwnPropertyDescriptors||function(r){var e={};return Dr(r).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)}),e},Ha={},No={get:function(r,e){if(e===ce)return r;var t=Ut(r);if(!Lr(t,e))return function(n,a,s){var l,c=fc(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,t,e);var o=t[e];return r.I||!et(o)?o:o===Ma(r.t,e)?(Ua(r),r.o[e]=za(r.A.h,o,r)):o},has:function(r,e){return e in Ut(r)},ownKeys:function(r){return Reflect.ownKeys(Ut(r))},set:function(r,e,t){var o=fc(Ut(r),e);if(o?.set)return o.set.call(r.k,t),!0;if(!r.P){var n=Ma(Ut(r),e),a=n?.[ce];if(a&&a.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(vc(t,n)&&(t!==void 0||Lr(r.t,e)))return!0;Ua(r),Bt(r)}return r.o[e]===t&&(t!==void 0||e in r.o)||Number.isNaN(t)&&Number.isNaN(r.o[e])||(r.o[e]=t,r.R[e]=!0),!0},deleteProperty:function(r,e){return Ma(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,Ua(r),Bt(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=Ut(r),o=Reflect.getOwnPropertyDescriptor(t,e);return o&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:o.enumerable,value:t[e]}},defineProperty:function(){Ze(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){Ze(12)}},Ro={};vr(No,function(r,e){Ro[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Ro.deleteProperty=function(r,e){return Ro.set.call(this,r,e,void 0)},Ro.set=function(r,e,t){return No.set.call(this,r[0],e,t,r[0])};var Gu=function(){function r(t){var o=this;this.O=gc,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(O){var T=this;O===void 0&&(O=l);for(var N=arguments.length,$=Array(N>1?N-1:0),w=1;w<N;w++)$[w-1]=arguments[w];return c.produce(O,function(S){var E;return(E=a).call.apply(E,[T,S].concat($))})}}var d;if(typeof a!="function"&&Ze(6),s!==void 0&&typeof s!="function"&&Ze(7),et(n)){var h=pc(o),u=za(o,n,void 0),y=!0;try{d=a(u),y=!1}finally{y?bi(h):Fa(h)}return typeof Promise<"u"&&d instanceof Promise?d.then(function(O){return La(h,s),Da(O,h)},function(O){throw bi(h),O}):(La(h,s),Da(d,h))}if(!n||typeof n!="object"){if((d=a(n))===void 0&&(d=n),d===Sc&&(d=void 0),o.D&&Ka(d,!0),s){var b=[],v=[];ct("Patches").M(n,d,b,v),s(b,v)}return d}Ze(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(d){for(var h=arguments.length,u=Array(h>1?h-1:0),y=1;y<h;y++)u[y-1]=arguments[y];return o.produceWithPatches(d,function(b){return n.apply(void 0,[b].concat(u))})};var s,l,c=o.produce(n,a,function(d,h){s=d,l=h});return typeof Promise<"u"&&c instanceof Promise?c.then(function(d){return[d,s,l]}):[c,s,l]},typeof t?.useProxies=="boolean"&&this.setUseProxies(t.useProxies),typeof t?.autoFreeze=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var e=r.prototype;return e.createDraft=function(t){et(t)||Ze(8),Et(t)&&(t=Wu(t));var o=pc(this),n=za(this,t,void 0);return n[ce].C=!0,Fa(o),n},e.finishDraft=function(t,o){var n=t&&t[ce],a=n.A;return La(a,o),Da(void 0,a)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!gc&&Ze(20),this.O=t},e.applyPatches=function(t,o){var n;for(n=o.length-1;n>=0;n--){var a=o[n];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}n>-1&&(o=o.slice(n+1));var s=ct("Patches").$;return Et(t)?s(t,o):this.produce(t,function(l){return s(l,o)})},r}(),je=new Gu,Zu=je.produce,zb=je.produceWithPatches.bind(je),Hb=je.setAutoFreeze.bind(je),Wb=je.setUseProxies.bind(je),Vb=je.applyPatches.bind(je),jb=je.createDraft.bind(je),Kb=je.finishDraft.bind(je),Si=Zu;function Ft(r){"@babel/helpers - typeof";return Ft=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ft(r)}function qa(r,e){if(Ft(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var o=t.call(r,e||"default");if(Ft(o)!=="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Ya(r){var e=qa(r,"string");return Ft(e)==="symbol"?e:String(e)}function Xa(r,e,t){return e=Ya(e),e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}function Oc(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(r);e&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(r,n).enumerable})),t.push.apply(t,o)}return t}function wi(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?Oc(Object(t),!0).forEach(function(o){Xa(r,o,t[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):Oc(Object(t)).forEach(function(o){Object.defineProperty(r,o,Object.getOwnPropertyDescriptor(t,o))})}return r}function Ne(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 Ec=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Ja=function(){return Math.random().toString(36).substring(7).split("").join(".")},Oi={INIT:"@@redux/INIT"+Ja(),REPLACE:"@@redux/REPLACE"+Ja(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Ja()}};function qu(r){if(typeof r!="object"||r===null)return!1;for(var e=r;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(r)===e}function Qa(r,e,t){var o;if(typeof e=="function"&&typeof t=="function"||typeof t=="function"&&typeof arguments[3]=="function")throw new Error(Ne(0));if(typeof e=="function"&&typeof t>"u"&&(t=e,e=void 0),typeof t<"u"){if(typeof t!="function")throw new Error(Ne(1));return t(Qa)(r,e)}if(typeof r!="function")throw new Error(Ne(2));var n=r,a=e,s=[],l=s,c=!1;function d(){l===s&&(l=s.slice())}function h(){if(c)throw new Error(Ne(3));return a}function u(O){if(typeof O!="function")throw new Error(Ne(4));if(c)throw new Error(Ne(5));var T=!0;return d(),l.push(O),function(){if(T){if(c)throw new Error(Ne(6));T=!1,d();var $=l.indexOf(O);l.splice($,1),s=null}}}function y(O){if(!qu(O))throw new Error(Ne(7));if(typeof O.type>"u")throw new Error(Ne(8));if(c)throw new Error(Ne(9));try{c=!0,a=n(a,O)}finally{c=!1}for(var T=s=l,N=0;N<T.length;N++){var $=T[N];$()}return O}function b(O){if(typeof O!="function")throw new Error(Ne(10));n=O,y({type:Oi.REPLACE})}function v(){var O,T=u;return O={subscribe:function($){if(typeof $!="object"||$===null)throw new Error(Ne(11));function w(){$.next&&$.next(h())}w();var S=T(w);return{unsubscribe:S}}},O[Ec]=function(){return this},O}return y({type:Oi.INIT}),o={dispatch:y,subscribe:u,getState:h,replaceReducer:b},o[Ec]=v,o}function Yu(r){Object.keys(r).forEach(function(e){var t=r[e],o=t(void 0,{type:Oi.INIT});if(typeof o>"u")throw new Error(Ne(12));if(typeof t(void 0,{type:Oi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Ne(13))})}function Cc(r){for(var e=Object.keys(r),t={},o=0;o<e.length;o++){var n=e[o];typeof r[n]=="function"&&(t[n]=r[n])}var a=Object.keys(t),s,l;try{Yu(t)}catch(c){l=c}return function(d,h){if(d===void 0&&(d={}),l)throw l;if(0)var u;for(var y=!1,b={},v=0;v<a.length;v++){var O=a[v],T=t[O],N=d[O],$=T(N,h);if(typeof $>"u"){var w=h&&h.type;throw new Error(Ne(14))}b[O]=$,y=y||$!==N}return y=y||a.length!==Object.keys(d).length,y?b:d}}function Ur(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return e.length===0?function(o){return o}:e.length===1?e[0]:e.reduce(function(o,n){return function(){return o(n.apply(void 0,arguments))}})}function Ac(){for(var r=arguments.length,e=new Array(r),t=0;t<r;t++)e[t]=arguments[t];return function(o){return function(){var n=o.apply(void 0,arguments),a=function(){throw new Error(Ne(15))},s={getState:n.getState,dispatch:function(){return a.apply(void 0,arguments)}},l=e.map(function(c){return c(s)});return a=Ur.apply(void 0,l)(n.dispatch),wi(wi({},n),{},{dispatch:a})}}}function Rc(r){var e=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 e}var _c=Rc();_c.withExtraArgument=Rc;var es=_c;var $c=function(){var r=function(e,t){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(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function o(){this.constructor=e}e.prototype=t===null?Object.create(t):(o.prototype=t.prototype,new o)}}(),Xu=function(r,e){var t={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(h){return c([d,h])}}function c(d){if(o)throw new TypeError("Generator is already executing.");for(;t;)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 t.label++,{value:d[1],done:!1};case 5:t.label++,n=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){t.label=d[1];break}if(d[0]===6&&t.label<a[1]){t.label=a[1],a=d;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(d);break}a[2]&&t.ops.pop(),t.trys.pop();continue}d=e.call(r,t)}catch(h){d=[6,h],n=0}finally{o=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}},Br=function(r,e){for(var t=0,o=e.length,n=r.length;t<o;t++,n++)r[n]=e[t];return r},Ju=Object.defineProperty,Qu=Object.defineProperties,ef=Object.getOwnPropertyDescriptors,Nc=Object.getOwnPropertySymbols,tf=Object.prototype.hasOwnProperty,rf=Object.prototype.propertyIsEnumerable,Tc=function(r,e,t){return e in r?Ju(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t},zt=function(r,e){for(var t in e||(e={}))tf.call(e,t)&&Tc(r,t,e[t]);if(Nc)for(var o=0,n=Nc(e);o<n.length;o++){var t=n[o];rf.call(e,t)&&Tc(r,t,e[t])}return r},ts=function(r,e){return Qu(r,ef(e))},of=function(r,e,t){return new Promise(function(o,n){var a=function(c){try{l(t.next(c))}catch(d){n(d)}},s=function(c){try{l(t.throw(c))}catch(d){n(d)}},l=function(c){return c.done?o(c.value):Promise.resolve(c.value).then(a,s)};l((t=t.apply(r,e)).next())})};var nf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ur:Ur.apply(null,arguments)},dv=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(r){return r}};function af(r){if(typeof r!="object"||r===null)return!1;var e=Object.getPrototypeOf(r);if(e===null)return!0;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return e===t}var sf=function(r){$c(e,r);function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var n=r.apply(this,t)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,Br([void 0],t[0].concat(this)))):new(e.bind.apply(e,Br([void 0],t.concat(this))))},e}(Array),lf=function(r){$c(e,r);function e(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var n=r.apply(this,t)||this;return Object.setPrototypeOf(n,e.prototype),n}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return r.prototype.concat.apply(this,t)},e.prototype.prepend=function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];return t.length===1&&Array.isArray(t[0])?new(e.bind.apply(e,Br([void 0],t[0].concat(this)))):new(e.bind.apply(e,Br([void 0],t.concat(this))))},e}(Array);function is(r){return et(r)?Si(r,function(){}):r}function cf(r){return typeof r=="boolean"}function df(){return function(e){return pf(e)}}function pf(r){r===void 0&&(r={});var e=r.thunk,t=e===void 0?!0:e,o=r.immutableCheck,n=o===void 0?!0:o,a=r.serializableCheck,s=a===void 0?!0:a,l=new sf;if(t&&(cf(t)?l.push(es):l.push(es.withExtraArgument(t.extraArgument))),0){if(n)var c;if(s)var d}return l}var rs=!0;function kc(r){var e=df(),t=r||{},o=t.reducer,n=o===void 0?void 0:o,a=t.middleware,s=a===void 0?e():a,l=t.devTools,c=l===void 0?!0:l,d=t.preloadedState,h=d===void 0?void 0:d,u=t.enhancers,y=u===void 0?void 0:u,b;if(typeof n=="function")b=n;else if(af(n))b=Cc(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(e),!rs&&!Array.isArray(v)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!rs&&v.some(function(S){return typeof S!="function"}))throw new Error("each middleware provided to configureStore must be a function");var O=Ac.apply(void 0,v),T=Ur;c&&(T=nf(zt({trace:!rs},typeof c=="object"&&c)));var N=new lf(O),$=N;Array.isArray(y)?$=Br([O],y):typeof y=="function"&&($=y(N));var w=T.apply(void 0,$);return Qa(b,h,w)}function Ht(r,e){function t(){for(var o=[],n=0;n<arguments.length;n++)o[n]=arguments[n];if(e){var a=e.apply(void 0,o);if(!a)throw new Error("prepareAction did not return an object");return zt(zt({type:r,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:r,payload:o[0]}}return t.toString=function(){return""+r},t.type=r,t.match=function(o){return o.type===r},t}function Lc(r){var e={},t=[],o,n={addCase:function(a,s){var l=typeof a=="string"?a:a.type;if(l in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[l]=s,n},addMatcher:function(a,s){return t.push({matcher:a,reducer:s}),n},addDefaultCase:function(a){return o=a,n}};return r(n),[e,t,o]}function uf(r){return typeof r=="function"}function ff(r,e,t,o){t===void 0&&(t=[]);var n=typeof e=="function"?Lc(e):[e,t,o],a=n[0],s=n[1],l=n[2],c;if(uf(r))c=function(){return is(r())};else{var d=is(r);c=function(){return d}}function h(u,y){u===void 0&&(u=c());var b=Br([a[y.type]],s.filter(function(v){var O=v.matcher;return O(y)}).map(function(v){var O=v.reducer;return O}));return b.filter(function(v){return!!v}).length===0&&(b=[l]),b.reduce(function(v,O){if(O)if(Et(v)){var T=v,N=O(T,y);return N===void 0?v:N}else{if(et(v))return Si(v,function($){return O($,y)});var N=O(v,y);if(N===void 0){if(v===null)return v;throw Error("A case reducer on a non-draftable value must not return undefined")}return N}return v},u)}return h.getInitialState=c,h}function hf(r,e){return r+"/"+e}function Dc(r){var e=r.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var t=typeof r.initialState=="function"?r.initialState:is(r.initialState),o=r.reducers||{},n=Object.keys(o),a={},s={},l={};n.forEach(function(h){var u=o[h],y=hf(e,h),b,v;"reducer"in u?(b=u.reducer,v=u.prepare):b=u,a[h]=b,s[y]=b,l[h]=v?Ht(y,v):Ht(y)});function c(){var h=typeof r.extraReducers=="function"?Lc(r.extraReducers):[r.extraReducers],u=h[0],y=u===void 0?{}:u,b=h[1],v=b===void 0?[]:b,O=h[2],T=O===void 0?void 0:O,N=zt(zt({},y),s);return ff(t,function($){for(var w in N)$.addCase(w,N[w]);for(var S=0,E=v;S<E.length;S++){var U=E[S];$.addMatcher(U.matcher,U.reducer)}T&&$.addDefaultCase(T)})}var d;return{name:e,reducer:function(h,u){return d||(d=c()),d(h,u)},actions:l,caseReducers:a,getInitialState:function(){return d||(d=c()),d.getInitialState()}}}var mf="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",gf=function(r){r===void 0&&(r=21);for(var e="",t=r;t--;)e+=mf[Math.random()*64|0];return e},yf=["name","message","stack","code"],os=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),Ic=function(){function r(e,t){this.payload=e,this.meta=t}return r}(),bf=function(r){if(typeof r=="object"&&r!==null){for(var e={},t=0,o=yf;t<o.length;t++){var n=o[t];typeof r[n]=="string"&&(e[n]=r[n])}return e}return{message:String(r)}},hv=function(){function r(e,t,o){var n=Ht(e+"/fulfilled",function(h,u,y,b){return{payload:h,meta:ts(zt({},b||{}),{arg:y,requestId:u,requestStatus:"fulfilled"})}}),a=Ht(e+"/pending",function(h,u,y){return{payload:void 0,meta:ts(zt({},y||{}),{arg:u,requestId:h,requestStatus:"pending"})}}),s=Ht(e+"/rejected",function(h,u,y,b,v){return{payload:b,error:(o&&o.serializeError||bf)(h||"Rejected"),meta:ts(zt({},v||{}),{arg:y,requestId:u,rejectedWithValue:!!b,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),l=!1,c=typeof AbortController<"u"?AbortController:function(){function h(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return h.prototype.abort=function(){},h}();function d(h){return function(u,y,b){var v=o?.idGenerator?o.idGenerator(h):gf(),O=new c,T,N=!1;function $(S){T=S,O.abort()}var w=function(){return of(this,null,function(){var S,E,U,J,oe,Q,D;return Xu(this,function(m){switch(m.label){case 0:return m.trys.push([0,4,,5]),J=(S=o?.condition)==null?void 0:S.call(o,h,{getState:y,extra:b}),xf(J)?[4,J]:[3,2];case 1:J=m.sent(),m.label=2;case 2:if(J===!1||O.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return N=!0,oe=new Promise(function(x,k){return O.signal.addEventListener("abort",function(){return k({name:"AbortError",message:T||"Aborted"})})}),u(a(v,h,(E=o?.getPendingMeta)==null?void 0:E.call(o,{requestId:v,arg:h},{getState:y,extra:b}))),[4,Promise.race([oe,Promise.resolve(t(h,{dispatch:u,getState:y,extra:b,requestId:v,signal:O.signal,abort:$,rejectWithValue:function(x,k){return new os(x,k)},fulfillWithValue:function(x,k){return new Ic(x,k)}})).then(function(x){if(x instanceof os)throw x;return x instanceof Ic?n(x.payload,v,h,x.meta):n(x,v,h)})])];case 3:return U=m.sent(),[3,5];case 4:return Q=m.sent(),U=Q instanceof os?s(null,v,h,Q.payload,Q.meta):s(Q,v,h),[3,5];case 5:return D=o&&!o.dispatchConditionRejection&&s.match(U)&&U.meta.condition,D||u(U),[2,U]}})})}();return Object.assign(w,{abort:$,requestId:v,arg:h,unwrap:function(){return w.then(vf)}})}}return Object.assign(d,{pending:a,rejected:s,fulfilled:n,typePrefix:e})}return r.withTypes=function(){return r},r}();function vf(r){if(r.meta&&r.meta.rejectedWithValue)throw r.payload;if(r.error)throw r.error;return r.payload}function xf(r){return r!==null&&typeof r=="object"&&typeof r.then=="function"}var Mc="listener",Uc="completed",Bc="cancelled",mv="task-"+Bc,gv="task-"+Uc,yv=Mc+"-"+Bc,bv=Mc+"-"+Uc;var ns="listenerMiddleware";var vv=Ht(ns+"/add"),xv=Ht(ns+"/removeAll"),Sv=Ht(ns+"/remove");var Pc,wv=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(r){return(Pc||(Pc=Promise.resolve())).then(r).catch(function(e){return setTimeout(function(){throw e},0)})},Sf=function(r){return function(e){setTimeout(e,r)}},Ov=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Sf(10);xc();window.ftReduxStores||(window.ftReduxStores={});var Ct=class r{static get(e){var t;let o=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,a=window.ftReduxStores[o];if(yr(a))return a;if(n==null)return;let s=Dc({...n,reducers:(t=n.reducers)!==null&&t!==void 0?t:{}}),l=kc({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(e,t){this.reduxSlice=e,this.reduxStore=t,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Ao,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(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};function wf(){var r;for(let e of Object.values((r=window.ftReduxStores)!==null&&r!==void 0?r:{}))yr(e)&&e.clear()}var cs={};ee(cs,{scrollHelper:()=>Of});var ss,Ei=new Map,ls=class{lock(e,t){if(t){let o=Ei.get(t);if(o==null||o===e)return Ei.set(t,e),t}}release(e,t){t&&Ei.get(t)===e&&Ei.delete(t)}findFirstScrollableParent(e){let t,o=n=>{var a;n.stopPropagation();let s,l;for(let c of n.composedPath()){let d=c,h=this.elementCanScroll(d);if(h&&d.clientHeight&&d.clientHeight<d.scrollHeight){s=d;break}else h&&l==null&&(l=d)}t=(a=s??l)!==null&&a!==void 0?a:document.body};return e.addEventListener("find-scrollable-parent",o),e.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),e.removeEventListener("find-scrollable-parent",o),t}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,t){let o=0;for(;t&&t.offsetParent!==e.offsetParent;)o+=t.offsetTop,t=t.offsetParent;return o+t.offsetTop-e.offsetTop}computeTopOffsetRatio(e,t){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return t;default:return 0}}scrollIntoViewIfPossible(e,t){let o=this.findFirstScrollableParent(e);if(e&&this.lock(this,o)){let n=this.getAbsoluteScrollOffset(o,e),a=n-o.clientHeight+e.clientHeight,s=n,l=$n(0,(s-o.scrollTop)/(s-a),1),c=this.computeTopOffsetRatio(t?.position,l)*(a-s)+s;o.scrollTo({behavior:t?.behavior,top:c})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,o);this.release(this,o)}};window.FluidTopicsScrollHelper=(ss=window.FluidTopicsScrollHelper)!==null&&ss!==void 0?ss:new ls;var Of=window.FluidTopicsScrollHelper;var ds={};ee(ds,{shadowQuerySelector:()=>Ef,shadowQuerySelectorAll:()=>Cf});function Ef(r,e,...t){var o;let n=r.querySelector(e);for(let a of t)n=(o=n?.shadowRoot)===null||o===void 0?void 0:o.querySelector(a);return n}function Cf(r,e,...t){let o=[...r.querySelectorAll(e)];for(let n of t)o=o.flatMap(a=>{var s,l;return[...(l=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(n))!==null&&l!==void 0?l:[]]});return o}var ps={};ee(ps,{serializeRequest:()=>Rf});function Af(r){return`"${r}"`}function Rf(r,e){var t,o,n,a;let s=new URLSearchParams({"content-lang":(t=e.contentLocale)!==null&&t!==void 0?t:"all"});if(((o=e.query)===null||o===void 0?void 0:o.length)>0&&s.append("query",e.query),e.scope&&e.scope!=="DEFAULT"&&s.append("scope",e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&s.append("virtual-field",e.virtualField.toLowerCase()),e.periodFilter){let c=e.periodFilter.period,d=c?`_${c.from}_${c.to}`:"";s.append("period",e.periodFilter.periodType.toLowerCase()+d)}if(((n=e.sort)===null||n===void 0?void 0:n.length)>0&&e.sort[0].key==="ft:lastEdition"&&s.append("sort","last_update"),((a=e.filters)===null||a===void 0?void 0:a.length)>0){let c=e.filters.map(d=>{let h=d.values.map(u=>u.replace(/_/g,"\\\\\\\\_").replace(/~/g,"\\\\~").replace(/\*/g,"\\*")).map(u=>encodeURIComponent(Af(u))).join("_");return`${d.key}~${h}`}).join("*");s.append("filters",c)}return new URL(`${r.replace(/\/+$/,"")}/search?${s.toString()}`).href}var us={};ee(us,{toFtFormComponent:()=>xr});var Ci=Symbol("elementInternals");function xr(r,e){class t extends r{static get formAssociated(){return!0}get form(){return this[Ci].form}constructor(...n){super(n),this[Ci]=this.attachInternals(),this[Ci].role=e}setFormValue(n){this[Ci].setFormValue(n)}}return t}var fs={};ee(fs,{DateFormatter:()=>Fr});var Fr=class{static format(e,t,o,n){return window.moment?window.moment(e).locale(t).format(this.getDateFormat(o,n)):e}static getDateFormat(e,t){return e?t?"lll":"ll":t?"L LT":"L"}};var hs,ms,gs,ys,To=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((gs=(ms=(hs=window.safari)===null||hs===void 0?void 0:hs.pushNotification)===null||ms===void 0?void 0:ms.toString())!==null&&gs!==void 0?gs:"")==="[object SafariRemoteNotification]",_f="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(ys=window.ftGlobals)!==null&&ys!==void 0?ys:{lit:bn,litDecorators:xn,litRepeat:wn,litClassMap:On,litStyleMap:En,litUnsafeHTML:An,wcUtils:{...Nn,..._n,...Tn,...fs,...In,...Ln,...da,...fa,...Ea,...ca,..._a,...Aa,...nc,...kn,...Ia,...$a,...sc,...ka,...as,...Ca,...cs,...ds,...ps,...us,isSafari:To,isTouchScreen:_f,setVariable:C}};var qe;(function(r){r.FEEDBACK="FEEDBACK",r.RATING="RATING",r.PRINT="PRINT",r.BOOKMARK="BOOKMARK",r.COLLECTIONS="COLLECTIONS",r.PERSONAL_BOOKS="PERSONAL_BOOKS"})(qe||(qe={}));var Nf=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},vs=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},bs=Symbol("registerInterval");function Tf(r){var e;class t extends r{constructor(){super(...arguments),this[e]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[bs]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[bs]):this.dispatchEvent(new vs)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=bs,Nf([W()],t.prototype,"stateManager",void 0),t}var Wt=class extends Tf(Ge){};var Fc=i.extend("--ft-ripple-color","",R.colorContent),H={color:Fc,backgroundColor:i.extend("--ft-ripple-background-color","",Fc),opacityContentOnSurfacePressed:i.external(R.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:i.external(R.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:i.external(R.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:i.external(R.opacityContentOnSurfaceSelected,"Design system"),borderRadius:i.create("--ft-ripple-border-radius","","SIZE","0px")},zc=i.extend("--ft-ripple-color","",R.colorPrimary),Hc={color:zc,backgroundColor:i.extend("--ft-ripple-background-color","",zc)},Wc=i.extend("--ft-ripple-color","",R.colorSecondary),Vc={color:Wc,backgroundColor:i.extend("--ft-ripple-background-color","",Wc)},jc=I`
|
|
50
51
|
:host {
|
|
51
52
|
display: contents;
|
|
52
53
|
}
|
|
@@ -59,7 +60,7 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
59
60
|
|
|
60
61
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
61
62
|
overflow: hidden;
|
|
62
|
-
border-radius: ${
|
|
63
|
+
border-radius: ${H.borderRadius};
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
.ft-ripple .ft-ripple--background,
|
|
@@ -93,27 +94,27 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
93
94
|
}
|
|
94
95
|
|
|
95
96
|
.ft-ripple .ft-ripple--background {
|
|
96
|
-
background-color: ${
|
|
97
|
+
background-color: ${H.backgroundColor};
|
|
97
98
|
}
|
|
98
99
|
|
|
99
100
|
.ft-ripple .ft-ripple--effect {
|
|
100
|
-
background-color: ${
|
|
101
|
+
background-color: ${H.color};
|
|
101
102
|
}
|
|
102
103
|
|
|
103
104
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
104
|
-
background-color: ${
|
|
105
|
+
background-color: ${Vc.backgroundColor};
|
|
105
106
|
}
|
|
106
107
|
|
|
107
108
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
108
|
-
background-color: ${
|
|
109
|
+
background-color: ${Vc.color};
|
|
109
110
|
}
|
|
110
111
|
|
|
111
112
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
112
|
-
background-color: ${
|
|
113
|
+
background-color: ${Hc.backgroundColor};
|
|
113
114
|
}
|
|
114
115
|
|
|
115
116
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
116
|
-
background-color: ${
|
|
117
|
+
background-color: ${Hc.color};
|
|
117
118
|
}
|
|
118
119
|
|
|
119
120
|
.ft-ripple .ft-ripple--background {
|
|
@@ -143,126 +144,126 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
143
144
|
}
|
|
144
145
|
|
|
145
146
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
146
|
-
opacity: ${
|
|
147
|
+
opacity: ${H.opacityContentOnSurfaceHover};
|
|
147
148
|
}
|
|
148
149
|
|
|
149
150
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
150
|
-
opacity: ${
|
|
151
|
+
opacity: ${H.opacityContentOnSurfaceSelected};
|
|
151
152
|
}
|
|
152
153
|
|
|
153
154
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
154
|
-
opacity: ${
|
|
155
|
+
opacity: ${H.opacityContentOnSurfaceFocused};
|
|
155
156
|
}
|
|
156
157
|
|
|
157
158
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
158
|
-
opacity: ${
|
|
159
|
+
opacity: ${H.opacityContentOnSurfacePressed};
|
|
159
160
|
transform: translate(-50%, -50%) scale(1);
|
|
160
161
|
}
|
|
161
|
-
`;function
|
|
162
|
-
.ft-typography--${
|
|
163
|
-
font-family: ${
|
|
164
|
-
font-size: ${
|
|
165
|
-
font-weight: ${
|
|
166
|
-
letter-spacing: ${
|
|
167
|
-
line-height: ${
|
|
168
|
-
text-transform: ${
|
|
162
|
+
`;function Kc(r){let e=mo[r];return I`
|
|
163
|
+
.ft-typography--${mt(r)} {
|
|
164
|
+
font-family: ${e.fontFamily};
|
|
165
|
+
font-size: ${e.fontSize};
|
|
166
|
+
font-weight: ${e.fontWeight};
|
|
167
|
+
letter-spacing: ${e.letterSpacing};
|
|
168
|
+
line-height: ${e.lineHeight};
|
|
169
|
+
text-transform: ${e.textCase};
|
|
169
170
|
}
|
|
170
|
-
`}var
|
|
171
|
+
`}var Gc=i.extend("--ft-typography-font-family","",R.titleFont),At=i.extend("--ft-typography-font-family","",R.contentFont),M={fontFamily:At,fontSize:i.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:i.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:i.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:i.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:i.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Vt={fontFamily:i.extend("--ft-typography-title-font-family","",Gc),fontSize:i.extend("--ft-typography-title-font-size","",M.fontSize,"20px"),fontWeight:i.extend("--ft-typography-title-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-letter-spacing","",M.letterSpacing,"0.15px"),lineHeight:i.extend("--ft-typography-title-line-height","",M.lineHeight,"1.2"),textTransform:i.extend("--ft-typography-title-text-transform","",M.textTransform,"inherit")},jt={fontFamily:i.extend("--ft-typography-title-dense-font-family","",Gc),fontSize:i.extend("--ft-typography-title-dense-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-title-dense-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-title-dense-letter-spacing","",M.letterSpacing,"0.105px"),lineHeight:i.extend("--ft-typography-title-dense-line-height","",M.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-title-dense-text-transform","",M.textTransform,"inherit")},zr={fontFamily:i.extend("--ft-typography-subtitle1-font-family","",At),fontSize:i.extend("--ft-typography-subtitle1-font-size","",M.fontSize,"16px"),fontWeight:i.extend("--ft-typography-subtitle1-font-weight","",M.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-subtitle1-letter-spacing","",M.letterSpacing,"0.144px"),lineHeight:i.extend("--ft-typography-subtitle1-line-height","",M.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-subtitle1-text-transform","",M.textTransform,"inherit")},Hr={fontFamily:i.extend("--ft-typography-subtitle2-font-family","",At),fontSize:i.extend("--ft-typography-subtitle2-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-subtitle2-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-subtitle2-letter-spacing","",M.letterSpacing,"0.098px"),lineHeight:i.extend("--ft-typography-subtitle2-line-height","",M.lineHeight,"1.7"),textTransform:i.extend("--ft-typography-subtitle2-text-transform","",M.textTransform,"inherit")},Ye={fontFamily:i.extend("--ft-typography-body1-font-family","",At),fontSize:i.extend("--ft-typography-body1-font-size","",M.fontSize,"16px"),fontWeight:i.extend("--ft-typography-body1-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body1-letter-spacing","",M.letterSpacing,"0.496px"),lineHeight:i.extend("--ft-typography-body1-line-height","",M.lineHeight,"1.5"),textTransform:i.extend("--ft-typography-body1-text-transform","",M.textTransform,"inherit")},Wr={fontFamily:i.extend("--ft-typography-body2-font-family","",At),fontSize:i.extend("--ft-typography-body2-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-body2-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-body2-letter-spacing","",M.letterSpacing,"0.252px"),lineHeight:i.extend("--ft-typography-body2-line-height","",M.lineHeight,"1.4"),textTransform:i.extend("--ft-typography-body2-text-transform","",M.textTransform,"inherit")},tt={fontFamily:i.extend("--ft-typography-caption-font-family","",At),fontSize:i.extend("--ft-typography-caption-font-size","",M.fontSize,"12px"),fontWeight:i.extend("--ft-typography-caption-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-caption-letter-spacing","",M.letterSpacing,"0.396px"),lineHeight:i.extend("--ft-typography-caption-line-height","",M.lineHeight,"1.33"),textTransform:i.extend("--ft-typography-caption-text-transform","",M.textTransform,"inherit")},Vr={fontFamily:i.extend("--ft-typography-breadcrumb-font-family","",At),fontSize:i.extend("--ft-typography-breadcrumb-font-size","",M.fontSize,"10px"),fontWeight:i.extend("--ft-typography-breadcrumb-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-breadcrumb-letter-spacing","",M.letterSpacing,"0.33px"),lineHeight:i.extend("--ft-typography-breadcrumb-line-height","",M.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-breadcrumb-text-transform","",M.textTransform,"inherit")},jr={fontFamily:i.extend("--ft-typography-overline-font-family","",At),fontSize:i.extend("--ft-typography-overline-font-size","",M.fontSize,"10px"),fontWeight:i.extend("--ft-typography-overline-font-weight","",M.fontWeight,"normal"),letterSpacing:i.extend("--ft-typography-overline-letter-spacing","",M.letterSpacing,"1.5px"),lineHeight:i.extend("--ft-typography-overline-line-height","",M.lineHeight,"1.6"),textTransform:i.extend("--ft-typography-overline-text-transform","",M.textTransform,"uppercase")},ke={fontFamily:i.extend("--ft-typography-button-font-family","",At),fontSize:i.extend("--ft-typography-button-font-size","",M.fontSize,"14px"),fontWeight:i.extend("--ft-typography-button-font-weight","",M.fontWeight,"600"),letterSpacing:i.extend("--ft-typography-button-letter-spacing","",M.letterSpacing,"1.246px"),lineHeight:i.extend("--ft-typography-button-line-height","",M.lineHeight,"1.15"),textTransform:i.extend("--ft-typography-button-text-transform","",M.textTransform,"uppercase")},Zc=I`
|
|
171
172
|
.ft-typography--title {
|
|
172
|
-
font-family: ${
|
|
173
|
-
font-size: ${
|
|
174
|
-
font-weight: ${
|
|
175
|
-
letter-spacing: ${
|
|
176
|
-
line-height: ${
|
|
177
|
-
text-transform: ${
|
|
178
|
-
}
|
|
179
|
-
`,
|
|
173
|
+
font-family: ${Vt.fontFamily};
|
|
174
|
+
font-size: ${Vt.fontSize};
|
|
175
|
+
font-weight: ${Vt.fontWeight};
|
|
176
|
+
letter-spacing: ${Vt.letterSpacing};
|
|
177
|
+
line-height: ${Vt.lineHeight};
|
|
178
|
+
text-transform: ${Vt.textTransform};
|
|
179
|
+
}
|
|
180
|
+
`,qc=I`
|
|
180
181
|
.ft-typography--title-dense {
|
|
181
|
-
font-family: ${
|
|
182
|
-
font-size: ${
|
|
183
|
-
font-weight: ${
|
|
184
|
-
letter-spacing: ${
|
|
185
|
-
line-height: ${
|
|
186
|
-
text-transform: ${
|
|
187
|
-
}
|
|
188
|
-
`,
|
|
182
|
+
font-family: ${jt.fontFamily};
|
|
183
|
+
font-size: ${jt.fontSize};
|
|
184
|
+
font-weight: ${jt.fontWeight};
|
|
185
|
+
letter-spacing: ${jt.letterSpacing};
|
|
186
|
+
line-height: ${jt.lineHeight};
|
|
187
|
+
text-transform: ${jt.textTransform};
|
|
188
|
+
}
|
|
189
|
+
`,Yc=I`
|
|
189
190
|
.ft-typography--subtitle1 {
|
|
190
|
-
font-family: ${
|
|
191
|
-
font-size: ${
|
|
192
|
-
font-weight: ${
|
|
193
|
-
letter-spacing: ${
|
|
194
|
-
line-height: ${
|
|
195
|
-
text-transform: ${
|
|
196
|
-
}
|
|
197
|
-
`,
|
|
191
|
+
font-family: ${zr.fontFamily};
|
|
192
|
+
font-size: ${zr.fontSize};
|
|
193
|
+
font-weight: ${zr.fontWeight};
|
|
194
|
+
letter-spacing: ${zr.letterSpacing};
|
|
195
|
+
line-height: ${zr.lineHeight};
|
|
196
|
+
text-transform: ${zr.textTransform};
|
|
197
|
+
}
|
|
198
|
+
`,Xc=I`
|
|
198
199
|
.ft-typography--subtitle2 {
|
|
199
|
-
font-family: ${
|
|
200
|
-
font-size: ${
|
|
201
|
-
font-weight: ${
|
|
202
|
-
letter-spacing: ${
|
|
203
|
-
line-height: ${
|
|
204
|
-
text-transform: ${
|
|
200
|
+
font-family: ${Hr.fontFamily};
|
|
201
|
+
font-size: ${Hr.fontSize};
|
|
202
|
+
font-weight: ${Hr.fontWeight};
|
|
203
|
+
letter-spacing: ${Hr.letterSpacing};
|
|
204
|
+
line-height: ${Hr.lineHeight};
|
|
205
|
+
text-transform: ${Hr.textTransform};
|
|
205
206
|
}
|
|
206
207
|
|
|
207
|
-
`,
|
|
208
|
+
`,Kr=I`
|
|
208
209
|
.ft-typography--body1 {
|
|
209
|
-
font-family: ${
|
|
210
|
-
font-size: ${
|
|
211
|
-
font-weight: ${
|
|
212
|
-
letter-spacing: ${
|
|
213
|
-
line-height: ${
|
|
214
|
-
text-transform: ${
|
|
215
|
-
}
|
|
216
|
-
`,
|
|
210
|
+
font-family: ${Ye.fontFamily};
|
|
211
|
+
font-size: ${Ye.fontSize};
|
|
212
|
+
font-weight: ${Ye.fontWeight};
|
|
213
|
+
letter-spacing: ${Ye.letterSpacing};
|
|
214
|
+
line-height: ${Ye.lineHeight};
|
|
215
|
+
text-transform: ${Ye.textTransform};
|
|
216
|
+
}
|
|
217
|
+
`,Jc=I`
|
|
217
218
|
.ft-typography--body2 {
|
|
218
|
-
font-family: ${
|
|
219
|
-
font-size: ${
|
|
220
|
-
font-weight: ${
|
|
221
|
-
letter-spacing: ${
|
|
222
|
-
line-height: ${
|
|
223
|
-
text-transform: ${
|
|
224
|
-
}
|
|
225
|
-
`,
|
|
219
|
+
font-family: ${Wr.fontFamily};
|
|
220
|
+
font-size: ${Wr.fontSize};
|
|
221
|
+
font-weight: ${Wr.fontWeight};
|
|
222
|
+
letter-spacing: ${Wr.letterSpacing};
|
|
223
|
+
line-height: ${Wr.lineHeight};
|
|
224
|
+
text-transform: ${Wr.textTransform};
|
|
225
|
+
}
|
|
226
|
+
`,Ai=I`
|
|
226
227
|
.ft-typography--caption {
|
|
227
|
-
font-family: ${
|
|
228
|
-
font-size: ${
|
|
229
|
-
font-weight: ${
|
|
230
|
-
letter-spacing: ${
|
|
231
|
-
line-height: ${
|
|
232
|
-
text-transform: ${
|
|
233
|
-
}
|
|
234
|
-
`,
|
|
228
|
+
font-family: ${tt.fontFamily};
|
|
229
|
+
font-size: ${tt.fontSize};
|
|
230
|
+
font-weight: ${tt.fontWeight};
|
|
231
|
+
letter-spacing: ${tt.letterSpacing};
|
|
232
|
+
line-height: ${tt.lineHeight};
|
|
233
|
+
text-transform: ${tt.textTransform};
|
|
234
|
+
}
|
|
235
|
+
`,Qc=I`
|
|
235
236
|
.ft-typography--breadcrumb {
|
|
236
|
-
font-family: ${
|
|
237
|
-
font-size: ${
|
|
238
|
-
font-weight: ${
|
|
239
|
-
letter-spacing: ${
|
|
240
|
-
line-height: ${
|
|
241
|
-
text-transform: ${
|
|
242
|
-
}
|
|
243
|
-
`,
|
|
237
|
+
font-family: ${Vr.fontFamily};
|
|
238
|
+
font-size: ${Vr.fontSize};
|
|
239
|
+
font-weight: ${Vr.fontWeight};
|
|
240
|
+
letter-spacing: ${Vr.letterSpacing};
|
|
241
|
+
line-height: ${Vr.lineHeight};
|
|
242
|
+
text-transform: ${Vr.textTransform};
|
|
243
|
+
}
|
|
244
|
+
`,ed=I`
|
|
244
245
|
.ft-typography--overline {
|
|
245
|
-
font-family: ${
|
|
246
|
-
font-size: ${
|
|
247
|
-
font-weight: ${
|
|
248
|
-
letter-spacing: ${
|
|
249
|
-
line-height: ${
|
|
250
|
-
text-transform: ${
|
|
251
|
-
}
|
|
252
|
-
`,
|
|
246
|
+
font-family: ${jr.fontFamily};
|
|
247
|
+
font-size: ${jr.fontSize};
|
|
248
|
+
font-weight: ${jr.fontWeight};
|
|
249
|
+
letter-spacing: ${jr.letterSpacing};
|
|
250
|
+
line-height: ${jr.lineHeight};
|
|
251
|
+
text-transform: ${jr.textTransform};
|
|
252
|
+
}
|
|
253
|
+
`,td=I`
|
|
253
254
|
.ft-typography--button {
|
|
254
|
-
font-family: ${
|
|
255
|
-
font-size: ${
|
|
256
|
-
font-weight: ${
|
|
257
|
-
letter-spacing: ${
|
|
258
|
-
line-height: ${
|
|
259
|
-
text-transform: ${
|
|
260
|
-
}
|
|
261
|
-
`,
|
|
255
|
+
font-family: ${ke.fontFamily};
|
|
256
|
+
font-size: ${ke.fontSize};
|
|
257
|
+
font-weight: ${ke.fontWeight};
|
|
258
|
+
letter-spacing: ${ke.letterSpacing};
|
|
259
|
+
line-height: ${ke.lineHeight};
|
|
260
|
+
text-transform: ${ke.textTransform};
|
|
261
|
+
}
|
|
262
|
+
`,rd=I`
|
|
262
263
|
.ft-typography {
|
|
263
264
|
vertical-align: inherit;
|
|
264
265
|
}
|
|
265
|
-
`,
|
|
266
|
+
`,od=[Object.keys(mo).map(r=>Kc(r))];var Le={color:i.extend("--ft-loader-color","",R.colorPrimary),size:i.create("--ft-loader-size","","SIZE","80px")},id=I`
|
|
266
267
|
:host {
|
|
267
268
|
line-height: 0;
|
|
268
269
|
}
|
|
@@ -271,8 +272,8 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
271
272
|
display: inline-block;
|
|
272
273
|
position: relative;
|
|
273
274
|
|
|
274
|
-
width: ${
|
|
275
|
-
height: ${
|
|
275
|
+
width: ${Le.size};
|
|
276
|
+
height: ${Le.size};
|
|
276
277
|
}
|
|
277
278
|
|
|
278
279
|
.ft-loader div {
|
|
@@ -281,7 +282,7 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
281
282
|
width: 25%;
|
|
282
283
|
height: 25%;
|
|
283
284
|
border-radius: 50%;
|
|
284
|
-
background: ${
|
|
285
|
+
background: ${Le.color};
|
|
285
286
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
286
287
|
}
|
|
287
288
|
|
|
@@ -328,10 +329,10 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
328
329
|
transform: translate(0, 0);
|
|
329
330
|
}
|
|
330
331
|
100% {
|
|
331
|
-
transform: translate(calc(0.35 * ${
|
|
332
|
+
transform: translate(calc(0.35 * ${Le.size}), 0);
|
|
332
333
|
}
|
|
333
334
|
}
|
|
334
|
-
`;var
|
|
335
|
+
`;var Se={size:i.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:i.extend("--ft-icon-fluid-topics-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:i.extend("--ft-icon-file-format-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:i.extend("--ft-icon-material-font-family","",i.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:i.create("--ft-icon-vertical-align","","UNKNOWN","unset")},nd=I`
|
|
335
336
|
:host, i.ft-icon {
|
|
336
337
|
display: inline-flex;
|
|
337
338
|
align-items: center;
|
|
@@ -340,14 +341,14 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
340
341
|
}
|
|
341
342
|
|
|
342
343
|
:host {
|
|
343
|
-
width: ${
|
|
344
|
-
height: ${
|
|
344
|
+
width: ${Se.size};
|
|
345
|
+
height: ${Se.size};
|
|
345
346
|
}
|
|
346
347
|
|
|
347
348
|
i.ft-icon {
|
|
348
349
|
width: 100%;
|
|
349
350
|
height: 100%;
|
|
350
|
-
font-size: ${
|
|
351
|
+
font-size: ${Se.size};
|
|
351
352
|
line-height: 1;
|
|
352
353
|
font-weight: normal;
|
|
353
354
|
text-transform: none;
|
|
@@ -358,28 +359,28 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
358
359
|
text-rendering: auto;
|
|
359
360
|
-webkit-font-smoothing: antialiased;
|
|
360
361
|
-moz-osx-font-smoothing: grayscale;
|
|
361
|
-
vertical-align: ${
|
|
362
|
+
vertical-align: ${Se.verticalAlign};
|
|
362
363
|
}
|
|
363
364
|
|
|
364
365
|
i.ft-icon.ft-icon--fluid-topics {
|
|
365
|
-
font-family: ${
|
|
366
|
+
font-family: ${Se.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
366
367
|
|
|
367
368
|
/* Ugly fix because font is broken */
|
|
368
|
-
font-size: calc(0.75 * ${
|
|
369
|
-
line-height: ${
|
|
369
|
+
font-size: calc(0.75 * ${Se.size});
|
|
370
|
+
line-height: ${Se.size};
|
|
370
371
|
position: relative;
|
|
371
372
|
top: -4%;
|
|
372
373
|
justify-content: center;
|
|
373
374
|
}
|
|
374
375
|
|
|
375
376
|
.ft-icon--file-format {
|
|
376
|
-
font-family: ${
|
|
377
|
+
font-family: ${Se.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
377
378
|
}
|
|
378
379
|
|
|
379
380
|
.ft-icon--material {
|
|
380
|
-
font-family: ${
|
|
381
|
+
font-family: ${Se.materialFontFamily}, "Material Icons", sans-serif;
|
|
381
382
|
}
|
|
382
|
-
`;var
|
|
383
|
+
`;var ad=i.extend("--ft-button-color","",R.colorPrimary),se={backgroundColor:i.extend("--ft-button-background-color","",R.colorSurface),borderRadius:i.extend("--ft-button-border-radius","",R.borderRadiusL),color:ad,fontSize:i.extend("--ft-button-font-size","",ke.fontSize),iconSize:i.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:i.extend("--ft-button-ripple-color","",ad),verticalPadding:i.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:i.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:i.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:i.external(R.colorOpacityDisabled,"Design system")},sd=i.extend("--ft-button-primary-color","",i.extend("--ft-button-color","",R.colorOnPrimary)),xs={backgroundColor:i.extend("--ft-button-primary-background-color","",i.extend("--ft-button-background-color","",R.colorPrimary)),color:sd,rippleColor:i.extend("--ft-button-primary-ripple-color","",sd)},dt={borderRadius:i.extend("--ft-button-dense-border-radius","",i.extend("--ft-button-border-radius","",R.borderRadiusM)),verticalPadding:i.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:i.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:i.create("--ft-button-dense-icon-padding","","SIZE","4px")},ld=[I`
|
|
383
384
|
:host {
|
|
384
385
|
display: inline-block;
|
|
385
386
|
max-width: 100%;
|
|
@@ -390,7 +391,7 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
390
391
|
box-shadow: 0px 0px 0px transparent;
|
|
391
392
|
border: 0px solid transparent;
|
|
392
393
|
text-shadow: 0px 0px 0px transparent;
|
|
393
|
-
font-size: ${
|
|
394
|
+
font-size: ${se.fontSize};
|
|
394
395
|
}
|
|
395
396
|
|
|
396
397
|
button:hover {
|
|
@@ -419,31 +420,31 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
419
420
|
border: none;
|
|
420
421
|
pointer-events: auto;
|
|
421
422
|
|
|
422
|
-
--ft-button-internal-line-height: max(calc(${
|
|
423
|
-
--ft-button-internal-color: ${
|
|
424
|
-
${
|
|
425
|
-
${
|
|
423
|
+
--ft-button-internal-line-height: max(calc(${se.fontSize} + 2px), ${se.iconSize});
|
|
424
|
+
--ft-button-internal-color: ${se.color};
|
|
425
|
+
${C(Se.size,se.iconSize)};
|
|
426
|
+
${C(H.color,se.rippleColor)};
|
|
426
427
|
|
|
427
|
-
border-radius: ${
|
|
428
|
-
padding: ${
|
|
429
|
-
background-color: ${
|
|
428
|
+
border-radius: ${se.borderRadius};
|
|
429
|
+
padding: ${se.verticalPadding} ${se.horizontalPadding};
|
|
430
|
+
background-color: ${se.backgroundColor};
|
|
430
431
|
color: var(--ft-button-internal-color);
|
|
431
432
|
-webkit-mask-image: radial-gradient(white, black);
|
|
432
433
|
}
|
|
433
434
|
|
|
434
435
|
.ft-button.ft-button--outlined {
|
|
435
436
|
border: 1px solid var(--ft-button-internal-color);
|
|
436
|
-
padding: calc(${
|
|
437
|
+
padding: calc(${se.verticalPadding} - 1px) calc(${se.horizontalPadding} - 1px);
|
|
437
438
|
}
|
|
438
439
|
|
|
439
440
|
.ft-button.ft-button--dense {
|
|
440
|
-
padding: ${
|
|
441
|
-
border-radius: ${
|
|
442
|
-
gap: ${
|
|
441
|
+
padding: ${dt.verticalPadding} ${dt.horizontalPadding};
|
|
442
|
+
border-radius: ${dt.borderRadius};
|
|
443
|
+
gap: ${dt.iconPadding};
|
|
443
444
|
}
|
|
444
445
|
|
|
445
446
|
.ft-button.ft-button--dense.ft-button--outlined {
|
|
446
|
-
padding: calc(${
|
|
447
|
+
padding: calc(${dt.verticalPadding} - 1px) calc(${dt.horizontalPadding} - 1px);
|
|
447
448
|
}
|
|
448
449
|
|
|
449
450
|
.ft-button:not([disabled]):hover {
|
|
@@ -451,22 +452,22 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
451
452
|
}
|
|
452
453
|
|
|
453
454
|
.ft-button--round {
|
|
454
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
455
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${se.verticalPadding});
|
|
455
456
|
}
|
|
456
457
|
|
|
457
458
|
.ft-button--round.ft-button--dense {
|
|
458
|
-
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${
|
|
459
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${dt.verticalPadding});
|
|
459
460
|
}
|
|
460
461
|
|
|
461
462
|
.ft-button[disabled] {
|
|
462
463
|
filter: grayscale(1);
|
|
463
|
-
opacity: ${
|
|
464
|
+
opacity: ${se.opacityDisabled};
|
|
464
465
|
}
|
|
465
466
|
|
|
466
467
|
.ft-button.ft-button--primary {
|
|
467
|
-
background-color: ${
|
|
468
|
-
--ft-button-internal-color: ${
|
|
469
|
-
${
|
|
468
|
+
background-color: ${xs.backgroundColor};
|
|
469
|
+
--ft-button-internal-color: ${xs.color};
|
|
470
|
+
${C(H.color,xs.rippleColor)};
|
|
470
471
|
}
|
|
471
472
|
|
|
472
473
|
.ft-button:focus {
|
|
@@ -479,13 +480,13 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
479
480
|
white-space: nowrap;
|
|
480
481
|
text-overflow: ellipsis;
|
|
481
482
|
display: block;
|
|
482
|
-
margin: 0 ${
|
|
483
|
-
${
|
|
484
|
-
${
|
|
483
|
+
margin: 0 ${se.iconPadding};
|
|
484
|
+
${C(ke.fontSize,"1em")};
|
|
485
|
+
${C(ke.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
485
486
|
}
|
|
486
487
|
|
|
487
488
|
.ft-button--dense .ft-button--label {
|
|
488
|
-
margin: 0 ${
|
|
489
|
+
margin: 0 ${dt.iconPadding};
|
|
489
490
|
}
|
|
490
491
|
|
|
491
492
|
.ft-button--label[hidden] {
|
|
@@ -498,13 +499,13 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
498
499
|
}
|
|
499
500
|
|
|
500
501
|
.ft-button--label[hidden] + [part="icon"] {
|
|
501
|
-
margin: 0 calc(${
|
|
502
|
-
padding: 0 ${
|
|
502
|
+
margin: 0 calc(${se.horizontalPadding} * -1);
|
|
503
|
+
padding: 0 ${se.verticalPadding};
|
|
503
504
|
}
|
|
504
505
|
|
|
505
506
|
.ft-button--dense .ft-button--label[hidden] + [part="icon"] {
|
|
506
|
-
margin: 0 calc(${
|
|
507
|
-
padding: 0 ${
|
|
507
|
+
margin: 0 calc(${dt.horizontalPadding} * -1);
|
|
508
|
+
padding: 0 ${dt.verticalPadding};
|
|
508
509
|
}
|
|
509
510
|
|
|
510
511
|
.ft-button:not(.ft-button--trailing-icon) [part="label"]{
|
|
@@ -512,10 +513,10 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
512
513
|
}
|
|
513
514
|
|
|
514
515
|
ft-loader {
|
|
515
|
-
${
|
|
516
|
-
${
|
|
516
|
+
${C(Le.size,se.iconSize)};
|
|
517
|
+
${C(Le.color,"var(--ft-button-internal-color)")};
|
|
517
518
|
}
|
|
518
|
-
`,
|
|
519
|
+
`,mr];var me={textColor:i.extend("--ft-switch-text-color","",R.colorOnSurfaceHigh),backgroundColor:i.extend("--ft-switch-background-color","",R.colorSurface),selectedTextColor:i.extend("--ft-switch-selected-text-color","",R.colorPrimary),selectedBackgroundColor:i.extend("--ft-switch-selected-background-color","",R.colorPrimary),borderColor:i.extend("--ft-switch-border-color","",R.colorOutline),borderRadius:i.extend("--ft-switch-border-radius","",R.borderRadiusL),fontSize:i.extend("--ft-switch-font-size","",ke.fontSize),iconSize:i.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:i.extend("--ft-switch-text-color","",R.colorOnSurfaceMedium),rippleColor:i.extend("--ft-switch-ripple-color","",R.colorPrimary),outlineColor:i.extend("--ft-switch-outline-color","",R.colorPrimary)};var pt={feedbackInputMinWidth:i.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:i.external(R.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:i.extend("--ft-reader-feedback-send-feedback-color","",R.colorOnPrimary),sendFeedbackBackgroundColor:i.extend("--ft-reader-feedback-send-feedback-background-color","",R.colorPrimary),filledRatingColor:i.extend("--ft-reader-feedback-filled-rating-color","",R.colorPrimary),emptyRatingColor:i.extend("--ft-reader-feedback-empty-rating-color","",R.colorOnSurfaceMedium),mainTitleFontSize:i.external(Vt.fontSize,"Typography"),sectionTitleFontSize:i.external(jt.fontSize,"Typography"),starsBackgroundColor:i.create("--ft-reader-feedback-stars-background-color","","COLOR",R.colorSurface)},cd=I`
|
|
519
520
|
.ft-reader-feedback {
|
|
520
521
|
box-sizing: border-box;
|
|
521
522
|
display: flex;
|
|
@@ -528,7 +529,7 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
528
529
|
flex-direction: row;
|
|
529
530
|
align-items: center;
|
|
530
531
|
margin-left: -6px;
|
|
531
|
-
${
|
|
532
|
+
${C(se.backgroundColor,pt.starsBackgroundColor)}
|
|
532
533
|
}
|
|
533
534
|
|
|
534
535
|
.ft-reader-feedback--rating, .ft-reader-feedback--feedback {
|
|
@@ -541,14 +542,14 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
541
542
|
}
|
|
542
543
|
|
|
543
544
|
.ft-reader-feedback--rating {
|
|
544
|
-
${
|
|
545
|
-
${
|
|
546
|
-
${
|
|
547
|
-
${
|
|
545
|
+
${C(se.color,pt.emptyRatingColor)};
|
|
546
|
+
${C(se.rippleColor,pt.filledRatingColor)};
|
|
547
|
+
${C(me.textColor,pt.emptyRatingColor)};
|
|
548
|
+
${C(me.selectedTextColor,pt.filledRatingColor)};
|
|
548
549
|
}
|
|
549
550
|
|
|
550
551
|
.ft-reader-feedback--rating .ft-reader-feedback--active {
|
|
551
|
-
${
|
|
552
|
+
${C(se.color,pt.filledRatingColor)};
|
|
552
553
|
}
|
|
553
554
|
|
|
554
555
|
.ft-reader-feedback--feedback {
|
|
@@ -556,41 +557,41 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
556
557
|
}
|
|
557
558
|
|
|
558
559
|
.ft-reader-feedback--rating-date {
|
|
559
|
-
color: ${
|
|
560
|
+
color: ${pt.ratedDateColor};
|
|
560
561
|
}
|
|
561
562
|
|
|
562
563
|
.ft-reader-feedback--feedback ft-text-area {
|
|
563
|
-
min-width: ${
|
|
564
|
+
min-width: ${pt.feedbackInputMinWidth};
|
|
564
565
|
}
|
|
565
566
|
|
|
566
567
|
.ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
|
|
567
|
-
${
|
|
568
|
-
${
|
|
568
|
+
${C(se.color,pt.sendFeedbackColor)};
|
|
569
|
+
${C(se.backgroundColor,pt.sendFeedbackBackgroundColor)};
|
|
569
570
|
}
|
|
570
571
|
|
|
571
572
|
[part="buttons-container"] {
|
|
572
573
|
align-self: flex-end;
|
|
573
574
|
}
|
|
574
|
-
`;var
|
|
575
|
-
<${
|
|
575
|
+
`;var pd=Symbol.for(""),If=r=>{if(r?.r===pd)return r?._$litStatic$},Ss=r=>({_$litStatic$:r,r:pd});var dd=new Map,ud=r=>(e,...t)=>{let o=t.length,n,a,s=[],l=[],c,d=0,h=!1;for(;d<o;){for(c=e[d];d<o&&(a=t[d],(n=If(a))!==void 0);)c+=n+e[++d],h=!0;d!==o&&l.push(a),s.push(c),d++}if(d===o&&s.push(e[o]),h){let u=s.join("$$lit$$");(e=dd.get(u))===void 0&&(s.raw=s,dd.set(u,e=s)),t=l}return r(e,...t)},ws=ud(tl),x0=ud(rl);var Kt;(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"})(Kt||(Kt={}));var fd=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ge=class extends z{constructor(){super(...arguments),this.variant=Kt.body1}render(){return this.element?ws`
|
|
576
|
+
<${Ss(this.element)}
|
|
576
577
|
part="text"
|
|
577
578
|
class="ft-typography ft-typography--${this.variant}">
|
|
578
579
|
<slot></slot>
|
|
579
|
-
</${
|
|
580
|
-
`:
|
|
580
|
+
</${Ss(this.element)}>
|
|
581
|
+
`:ws`
|
|
581
582
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
582
|
-
`}};
|
|
583
|
+
`}};ge.styles=[Zc,qc,Yc,Xc,Kr,Jc,Ai,Qc,ed,td,rd,...od];fd([g()],ge.prototype,"element",void 0);fd([g()],ge.prototype,"variant",void 0);V("ft-typography")(ge);var Be=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},X=class extends z{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new ae(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new ae(10),this.moveRipple=e=>{var t,o;let{x:n,y:a}=this.getCoordinates(e),s=(o=(t=this.ripple)===null||t===void 0?void 0:t.getBoundingClientRect())!==null&&o!==void 0?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(a!=null?a-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return P`
|
|
583
584
|
<style>
|
|
584
585
|
.ft-ripple .ft-ripple--effect {
|
|
585
586
|
left: ${this.originX}px;
|
|
586
587
|
top: ${this.originY}px;
|
|
587
588
|
}
|
|
588
589
|
</style>
|
|
589
|
-
<div class="${
|
|
590
|
+
<div class="${Pe(e)}">
|
|
590
591
|
<div class="ft-ripple--background"></div>
|
|
591
592
|
<div class="ft-ripple--effect"></div>
|
|
592
593
|
</div>
|
|
593
|
-
`}contentAvailableCallback(
|
|
594
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var t,o;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(t=this.target)===null||t===void 0||t.removeAttribute("data-is-ft-ripple-target")):(o=this.target)===null||o===void 0||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,t;let o=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;o&&this.setupFor((t=this.target)!==null&&t!==void 0?t:o)}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let t=(...l)=>c=>{l.forEach(d=>window.addEventListener(d,this.endPress,{once:!0})),this.startPress(c)},o=t("mouseup","contextmenu"),n=t("touchend","touchcancel"),a=l=>{["Enter"," "].includes(l.key)&&t("keyup")(l)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",o,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",a,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",o,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",a,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let t=e,o=e,n,a;return t.x!=null?{x:n,y:a}=t:o.touches!=null&&(n=o.touches[0].clientX,a=o.touches[0].clientY),{x:n,y:a}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let t of e.composedPath()){if(t===this.target)break;if("hasAttribute"in t&&t.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};X.elementDefinitions={};X.styles=jc;Be([g({type:Boolean})],X.prototype,"primary",void 0);Be([g({type:Boolean})],X.prototype,"secondary",void 0);Be([g({type:Boolean})],X.prototype,"unbounded",void 0);Be([g({type:Boolean})],X.prototype,"activated",void 0);Be([g({type:Boolean})],X.prototype,"selected",void 0);Be([g({type:Boolean})],X.prototype,"disabled",void 0);Be([W()],X.prototype,"hovered",void 0);Be([W()],X.prototype,"focused",void 0);Be([W()],X.prototype,"pressed",void 0);Be([W()],X.prototype,"rippling",void 0);Be([W()],X.prototype,"originX",void 0);Be([W()],X.prototype,"originY",void 0);Be([Z(".ft-ripple")],X.prototype,"ripple",void 0);Be([Z(".ft-ripple--effect")],X.prototype,"rippleEffect",void 0);V("ft-ripple")(X);var Gr={distance:i.create("--ft-tooltip-distance","","SIZE","4px"),color:i.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:i.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:i.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:i.external(R.borderRadiusS,"Design system"),maxWidth:i.create("--ft-tooltip-max-width","","SIZE","150px")},hd=I`
|
|
594
595
|
.ft-tooltip--container {
|
|
595
596
|
display: block;
|
|
596
597
|
}
|
|
@@ -605,21 +606,21 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
605
606
|
box-sizing: border-box;
|
|
606
607
|
overflow: hidden;
|
|
607
608
|
width: max-content;
|
|
608
|
-
max-width: ${
|
|
609
|
+
max-width: ${Gr.maxWidth};
|
|
609
610
|
text-align: center;
|
|
610
|
-
padding: ${
|
|
611
|
-
z-index: ${
|
|
611
|
+
padding: ${Gr.distance};
|
|
612
|
+
z-index: ${Gr.zIndex};
|
|
612
613
|
}
|
|
613
614
|
|
|
614
615
|
.ft-tooltip--content {
|
|
615
616
|
padding: 4px 8px;
|
|
616
|
-
border-radius: ${
|
|
617
|
-
background-color: ${
|
|
618
|
-
color: ${
|
|
617
|
+
border-radius: ${Gr.borderRadiusS};
|
|
618
|
+
background-color: ${Gr.backgroundColor};
|
|
619
|
+
color: ${Gr.color};
|
|
619
620
|
position: relative;
|
|
620
621
|
word-break: break-word;
|
|
621
622
|
}
|
|
622
|
-
`;var
|
|
623
|
+
`;var Fe=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},de=class extends z{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new ae,this.revealDebouncer=new ae}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return P`
|
|
623
624
|
<div part="container"
|
|
624
625
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
625
626
|
@mouseenter=${this.onHover}
|
|
@@ -637,12 +638,12 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
637
638
|
</div>
|
|
638
639
|
</div>
|
|
639
640
|
</div>
|
|
640
|
-
`}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="",yo(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))}};st.elementDefinitions={"ft-typography":ht};st.styles=sd;Ut([g()],st.prototype,"text",void 0);Ut([g({type:Boolean})],st.prototype,"manual",void 0);Ut([g({type:Boolean})],st.prototype,"inline",void 0);Ut([g({type:Number})],st.prototype,"delay",void 0);Ut([g()],st.prototype,"position",void 0);Ut([ao()],st.prototype,"slotNodes",void 0);Ut([Z(".ft-tooltip--container")],st.prototype,"container",void 0);Ut([Z(".ft-tooltip")],st.prototype,"tooltip",void 0);Ut([Z(".ft-tooltip--content")],st.prototype,"tooltipContent",void 0);Ut([H()],st.prototype,"visible",void 0);Ut([ge({passive:!0})],st.prototype,"onTouch",null);Ut([ge({passive:!0})],st.prototype,"onHover",null);Ut([ge({passive:!0})],st.prototype,"onOut",null);Ut([ge({passive:!0})],st.prototype,"onClick",null);V("ft-tooltip")(st);var yr;(function(r){r.ADD_TO_PBK="",r.ALERT="",r.ADD_ALERT="",r.BACK_TO_SEARCH="",r.ADD_BOOKMARK="",r.BOOKMARK="",r.BOOKS="",r.MENU="",r.DOWNLOAD="",r.EDIT="",r.FEEDBACK="",r.HOME="",r.MODIFY_PBK="",r.SCHEDULED="",r.SEARCH="",r.EXPORT="",r.TOC="",r.WRITE_UGC="",r.TRASH="",r.USER="",r.EXTLINK="",r.CALENDAR="",r.OFFLINE="",r.BOOK="",r.DOWNLOAD_PLAIN="",r.CHECK="",r.STAR_PLAIN="",r.TOPICS="",r.DISC="",r.CIRCLE="",r.SHARED="",r.SORT_UNSORTED="",r.SORT_UP="",r.SORT_DOWN="",r.WORKING="",r.CLOSE="",r.ZOOM_OUT="",r.ZOOM_IN="",r.ZOOM_REALSIZE="",r.ZOOM_FULLSCREEN="",r.ADMIN_RESTRICTED="",r.ADMIN="",r.ADMIN_KHUB="",r.ADMIN_THEME="",r.ADMIN_USERS="",r.WARNING="",r.CONTEXT="",r.SEARCH_HOME="",r.STEPS="",r.ICON_EXPAND="",r.ICON_COLLAPSE="",r.INFO="",r.MINUS_PLAIN="",r.PLUS_PLAIN="",r.FACET_HAS_DESCENDANT="",r.TRIANGLE_BOTTOM="",r.TRIANGLE_LEFT="",r.TRIANGLE_RIGHT="",r.TRIANGLE_TOP="",r.THIN_ARROW="",r.SIGN_IN="",r.LOGOUT="",r.TRANSLATE="",r.CLOSE_PLAIN="",r.CHECK_PLAIN="",r.ARTICLE="",r.COLUMNS="",r.ANALYTICS="",r.COLLECTIONS="",r.ARROW_DOWN="",r.ARROW_LEFT="",r.ARROW_RIGHT="",r.ARROW_UP="",r.SEARCH_IN_PUBLICATION="",r.COPY_TO_CLIPBOARD="",r.SHARED_PBK="",r.ATTACHMENTS="",r.STRIPE_ARROW_LEFT="",r.STRIPE_ARROW_RIGHT="",r.FILTERS="",r.DOT="",r.MINUS="",r.PLUS="",r.MAILS_AND_NOTIFICATIONS="",r.SAVE="",r.LOCKER="",r.ADMIN_INTEGRATION="",r.SYNC="",r.TAG="",r.BOOK_PLAIN="",r.UPLOAD="",r.ONLINE="",r.TAG_PLAIN="",r.ACCOUNT_SETTINGS="",r.PRINT="",r.DEFAULT_ROLES="",r.SHORTCUT_MENU="",r.RELATIVES_PLAIN="",r.RELATIVES="",r.PAUSE="",r.PLAY="",r.ADMIN_PORTAL="",r.STAR="",r.THUMBS_DOWN="",r.THUMBS_DOWN_PLAIN="",r.THUMBS_UP="",r.THUMBS_UP_PLAIN="",r.FEEDBACK_PLAIN="",r.RATE_PLAIN="",r.RATE="",r.OFFLINE_SETTINGS="",r.MY_COLLECTIONS="",r.THIN_ARROW_LEFT="",r.THIN_ARROW_RIGHT="",r.RESET="",r.MY_LIBRARY="",r.UNSTRUCTURED_DOC="",r.CONTEXTUAL="",r.THIN_ARROW_UP="",r.ARROW_RIGHT_TO_LINE="",r.DESKTOP="",r.TABLET_LANDSCAPE="",r.TABLET_PORTRAIT="",r.MOBILE_LANDSCAPE="",r.MOBILE_PORTRAIT="",r.DIAGRAM_SUNBURST="",r.DIAGRAM_SANKEY="",r.COMMENT_QUESTION="",r.COMMENT_QUESTION_PLAIN="",r.MESSAGE_BOT="",r.CHART_SIMPLE="",r.BARS_PROGRESS="",r.BOOK_OPEN_GEAR="",r.BOOK_OPEN_GEAR_SLASH="",r.LINE_CHART="",r.STACKED_CHART="",r.CHART_BAR_STACKED="",r.CHART_BAR_GROUPED="",r.EYE_SLASH="",r.X_MARK="",r.EXPAND_WIDE="",r.PIP="",r.PIP_WIDE="",r.LIFE_RING="",r.GLOBE="",r.PIGGY_BANK="",r.EXTLINK_LIGHT="",r.CLONE="",r.CLONE_LINK_SIMPLE="",r.CHART_BAR_NORMALIZED="",r.CONSUMER="",r.OCTAGON_XMARK="",r.HOURGLASS_HALF="",r.CLOCK="",r.CLOCK_THREE="",r.CALENDAR_DAY="",r.COMPUTER_MOUSE_MAGNIFYING_GLASS="",r.WAND_MAGIC_SPARKLES="",r.PAPER_PLANE="",r.CIRCLE_STOP="",r.ARROW_ROTATE_RIGHT="",r.ARROWS_ROTATE="",r.ALIGN_RIGHT="",r.FORMAT_CLEAR="",r.ALIGN_CENTER="",r.ALIGN_LEFT="",r.PALETTE="",r.BOLD="",r.ITALIC="",r.UNDERLINE="",r.STRIKETHROUGH="",r.LINK_SIMPLE_SLASH="",r.LINK_SIMPLE="",r.ROUTE="",r.CIRCLE_USER_SLASH="",r.CIRCLE_USER_CHECK="",r.LIST_MAGNIFYING_GLASS="",r.MEDAL="",r.THUMBS_UP_THUMBS_DOWN_SOLID="",r.ARROW_TURN_DOWN_RIGHT="",r.FLASK="",r.LOCK_KEYHOLE_OPEN_SOLID="",r.HOURGLASS_END="",r.EYE="",r.SHARE="󨃱"})(yr||(yr={}));var _;(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=""})(_||(_={}));var oS=new Map([...["abw"].map(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,_.AUDIO]),...["avi"].map(r=>[r,_.AVI]),...["chm","xhs"].map(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,_.CODE]),...["csv"].map(r=>[r,_.CSV]),...["dita","ditamap","ditaval"].map(r=>[r,_.DITA]),...["epub"].map(r=>[r,_.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(r=>[r,_.EXCEL]),...["flac"].map(r=>[r,_.FLAC]),...["gif"].map(r=>[r,_.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(r=>[r,_.GZIP]),...["html","htm","xhtml"].map(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,_.IMAGE]),...["jpeg","jpg","jpe"].map(r=>[r,_.JPEG]),...["json"].map(r=>[r,_.JSON]),...["m4a","m4p"].map(r=>[r,_.M4A]),...["mov","qt"].map(r=>[r,_.MOV]),...["mp3"].map(r=>[r,_.MP3]),...["mp4","m4v"].map(r=>[r,_.MP4]),...["ogg","oga"].map(r=>[r,_.OGG]),...["pdf","ps"].map(r=>[r,_.PDF]),...["png"].map(r=>[r,_.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(r=>[r,_.POWERPOINT]),...["rar"].map(r=>[r,_.RAR]),...["stp"].map(r=>[r,_.STP]),...["txt","rtf","md","mdown"].map(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,_.VIDEO]),...["wav"].map(r=>[r,_.WAV]),...["wma"].map(r=>[r,_.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(r=>[r,_.WORD]),...["xml","xsl","rdf"].map(r=>[r,_.XML]),...["yaml","yml","x-yaml"].map(r=>[r,_.YAML]),...["zip"].map(r=>[r,_.ZIP])]);var iS={[_.ABW]:"#91ABC6",[_.AUDIO]:"#1795E3",[_.AVI]:"#E63324",[_.CHM]:"#71C3EB",[_.CODE]:"#71C3EB",[_.CSV]:"#1F7345",[_.DITA]:"#71C3EB",[_.EPUB]:"#85B926",[_.EXCEL]:"#1F7345",[_.FLAC]:"#1795E3",[_.GIF]:"#59B031",[_.GZIP]:"#F8AB36",[_.HTML]:"#71C3EB",[_.IMAGE]:"#59B031",[_.JPEG]:"#59B031",[_.JSON]:"#71C3EB",[_.M4A]:"#1795E3",[_.MOV]:"#E63324",[_.MP3]:"#1795E3",[_.MP4]:"#E63324",[_.OGG]:"#1795E3",[_.PDF]:"#E44948",[_.PNG]:"#59B031",[_.POWERPOINT]:"#B54A2B",[_.RAR]:"#F8AB36",[_.STP]:"#3764B1",[_.TEXT]:"#3162AB",[_.UNKNOWN]:"#999999",[_.VIDEO]:"#E63324",[_.WAV]:"#1795E3",[_.WMA]:"#1795E3",[_.WORD]:"#3162AB",[_.XML]:"#71C3EB",[_.YAML]:"#71C3EB",[_.ZIP]:"#F8AB36"};var _t;(function(r){r.fluid_topics="fluid-topics",r.file_format="file-format",r.material="material"})(_t||(_t={}));var wi=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},yt=class extends F{constructor(){super(...arguments),this.resolvedIcon=B}render(){let t=this.variant&&Object.values(_t).includes(this.variant)?this.variant:_t.fluid_topics,e=t!==_t.material||!!this.value;return $`
|
|
641
|
-
<i class="ft-icon ft-icon--${
|
|
642
|
-
${
|
|
643
|
-
<slot ?hidden=${
|
|
641
|
+
`}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(t=>e.has(t))&&this.visible&&this.positionTooltip()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(t=>t.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",So(this.slottedElement,this.tooltip,this.position).then(({x:e,y:t})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${t}px`)})),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top 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",e=>{e.composedPath().includes(this.container)||this.onOut()},{once:!0}),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(e,t){return Math.max(e,Math.min(0,-t))}};de.elementDefinitions={"ft-typography":ge};de.styles=hd;Fe([g()],de.prototype,"text",void 0);Fe([g({type:Boolean})],de.prototype,"manual",void 0);Fe([g({type:Boolean})],de.prototype,"inline",void 0);Fe([g({type:Number})],de.prototype,"delay",void 0);Fe([g()],de.prototype,"position",void 0);Fe([po()],de.prototype,"slotNodes",void 0);Fe([Z(".ft-tooltip--container")],de.prototype,"container",void 0);Fe([Z(".ft-tooltip")],de.prototype,"tooltip",void 0);Fe([Z(".ft-tooltip--content")],de.prototype,"tooltipContent",void 0);Fe([W()],de.prototype,"visible",void 0);Fe([bt({passive:!0})],de.prototype,"onTouch",null);Fe([bt({passive:!0})],de.prototype,"onHover",null);Fe([bt({passive:!0})],de.prototype,"onOut",null);Fe([bt({passive:!0})],de.prototype,"onClick",null);V("ft-tooltip")(de);var Sr;(function(r){r.ADD_TO_PBK="",r.ALERT="",r.ADD_ALERT="",r.BACK_TO_SEARCH="",r.ADD_BOOKMARK="",r.BOOKMARK="",r.BOOKS="",r.MENU="",r.DOWNLOAD="",r.EDIT="",r.FEEDBACK="",r.HOME="",r.MODIFY_PBK="",r.SCHEDULED="",r.SEARCH="",r.EXPORT="",r.TOC="",r.WRITE_UGC="",r.TRASH="",r.USER="",r.EXTLINK="",r.CALENDAR="",r.OFFLINE="",r.BOOK="",r.DOWNLOAD_PLAIN="",r.CHECK="",r.STAR_PLAIN="",r.TOPICS="",r.DISC="",r.CIRCLE="",r.SHARED="",r.SORT_UNSORTED="",r.SORT_UP="",r.SORT_DOWN="",r.WORKING="",r.CLOSE="",r.ZOOM_OUT="",r.ZOOM_IN="",r.ZOOM_REALSIZE="",r.ZOOM_FULLSCREEN="",r.ADMIN_RESTRICTED="",r.ADMIN="",r.ADMIN_KHUB="",r.ADMIN_THEME="",r.ADMIN_USERS="",r.WARNING="",r.CONTEXT="",r.SEARCH_HOME="",r.STEPS="",r.ICON_EXPAND="",r.ICON_COLLAPSE="",r.INFO="",r.MINUS_PLAIN="",r.PLUS_PLAIN="",r.FACET_HAS_DESCENDANT="",r.TRIANGLE_BOTTOM="",r.TRIANGLE_LEFT="",r.TRIANGLE_RIGHT="",r.TRIANGLE_TOP="",r.THIN_ARROW="",r.SIGN_IN="",r.LOGOUT="",r.TRANSLATE="",r.CLOSE_PLAIN="",r.CHECK_PLAIN="",r.ARTICLE="",r.COLUMNS="",r.ANALYTICS="",r.COLLECTIONS="",r.ARROW_DOWN="",r.ARROW_LEFT="",r.ARROW_RIGHT="",r.ARROW_UP="",r.SEARCH_IN_PUBLICATION="",r.COPY_TO_CLIPBOARD="",r.SHARED_PBK="",r.ATTACHMENTS="",r.STRIPE_ARROW_LEFT="",r.STRIPE_ARROW_RIGHT="",r.FILTERS="",r.DOT="",r.MINUS="",r.PLUS="",r.MAILS_AND_NOTIFICATIONS="",r.SAVE="",r.LOCKER="",r.ADMIN_INTEGRATION="",r.SYNC="",r.TAG="",r.BOOK_PLAIN="",r.UPLOAD="",r.ONLINE="",r.TAG_PLAIN="",r.ACCOUNT_SETTINGS="",r.PRINT="",r.DEFAULT_ROLES="",r.SHORTCUT_MENU="",r.RELATIVES_PLAIN="",r.RELATIVES="",r.PAUSE="",r.PLAY="",r.ADMIN_PORTAL="",r.STAR="",r.THUMBS_DOWN="",r.THUMBS_DOWN_PLAIN="",r.THUMBS_UP="",r.THUMBS_UP_PLAIN="",r.FEEDBACK_PLAIN="",r.RATE_PLAIN="",r.RATE="",r.OFFLINE_SETTINGS="",r.MY_COLLECTIONS="",r.THIN_ARROW_LEFT="",r.THIN_ARROW_RIGHT="",r.RESET="",r.MY_LIBRARY="",r.UNSTRUCTURED_DOC="",r.CONTEXTUAL="",r.THIN_ARROW_UP="",r.ARROW_RIGHT_TO_LINE="",r.DESKTOP="",r.TABLET_LANDSCAPE="",r.TABLET_PORTRAIT="",r.MOBILE_LANDSCAPE="",r.MOBILE_PORTRAIT="",r.DIAGRAM_SUNBURST="",r.DIAGRAM_SANKEY="",r.COMMENT_QUESTION="",r.COMMENT_QUESTION_PLAIN="",r.MESSAGE_BOT="",r.CHART_SIMPLE="",r.BARS_PROGRESS="",r.BOOK_OPEN_GEAR="",r.BOOK_OPEN_GEAR_SLASH="",r.LINE_CHART="",r.STACKED_CHART="",r.CHART_BAR_STACKED="",r.CHART_BAR_GROUPED="",r.EYE_SLASH="",r.X_MARK="",r.EXPAND_WIDE="",r.PIP="",r.PIP_WIDE="",r.LIFE_RING="",r.GLOBE="",r.PIGGY_BANK="",r.EXTLINK_LIGHT="",r.CLONE="",r.CLONE_LINK_SIMPLE="",r.CHART_BAR_NORMALIZED="",r.CONSUMER="",r.OCTAGON_XMARK="",r.HOURGLASS_HALF="",r.CLOCK="",r.CLOCK_THREE="",r.CALENDAR_DAY="",r.COMPUTER_MOUSE_MAGNIFYING_GLASS="",r.WAND_MAGIC_SPARKLES="",r.PAPER_PLANE="",r.CIRCLE_STOP="",r.ARROW_ROTATE_RIGHT="",r.ARROWS_ROTATE="",r.ALIGN_RIGHT="",r.FORMAT_CLEAR="",r.ALIGN_CENTER="",r.ALIGN_LEFT="",r.PALETTE="",r.BOLD="",r.ITALIC="",r.UNDERLINE="",r.STRIKETHROUGH="",r.LINK_SIMPLE_SLASH="",r.LINK_SIMPLE="",r.ROUTE="",r.CIRCLE_USER_SLASH="",r.CIRCLE_USER_CHECK="",r.LIST_MAGNIFYING_GLASS="",r.MEDAL="",r.THUMBS_UP_THUMBS_DOWN_SOLID="",r.ARROW_TURN_DOWN_RIGHT="",r.FLASK="",r.LOCK_KEYHOLE_OPEN_SOLID="",r.HOURGLASS_END="",r.EYE="",r.SHARE="󨃱"})(Sr||(Sr={}));var _;(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=""})(_||(_={}));var pS=new Map([...["abw"].map(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,_.AUDIO]),...["avi"].map(r=>[r,_.AVI]),...["chm","xhs"].map(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,_.CODE]),...["csv"].map(r=>[r,_.CSV]),...["dita","ditamap","ditaval"].map(r=>[r,_.DITA]),...["epub"].map(r=>[r,_.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(r=>[r,_.EXCEL]),...["flac"].map(r=>[r,_.FLAC]),...["gif"].map(r=>[r,_.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(r=>[r,_.GZIP]),...["html","htm","xhtml"].map(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,_.IMAGE]),...["jpeg","jpg","jpe"].map(r=>[r,_.JPEG]),...["json"].map(r=>[r,_.JSON]),...["m4a","m4p"].map(r=>[r,_.M4A]),...["mov","qt"].map(r=>[r,_.MOV]),...["mp3"].map(r=>[r,_.MP3]),...["mp4","m4v"].map(r=>[r,_.MP4]),...["ogg","oga"].map(r=>[r,_.OGG]),...["pdf","ps"].map(r=>[r,_.PDF]),...["png"].map(r=>[r,_.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(r=>[r,_.POWERPOINT]),...["rar"].map(r=>[r,_.RAR]),...["stp"].map(r=>[r,_.STP]),...["txt","rtf","md","mdown"].map(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,_.VIDEO]),...["wav"].map(r=>[r,_.WAV]),...["wma"].map(r=>[r,_.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(r=>[r,_.WORD]),...["xml","xsl","rdf"].map(r=>[r,_.XML]),...["yaml","yml","x-yaml"].map(r=>[r,_.YAML]),...["zip"].map(r=>[r,_.ZIP])]);var uS={[_.ABW]:"#91ABC6",[_.AUDIO]:"#1795E3",[_.AVI]:"#E63324",[_.CHM]:"#71C3EB",[_.CODE]:"#71C3EB",[_.CSV]:"#1F7345",[_.DITA]:"#71C3EB",[_.EPUB]:"#85B926",[_.EXCEL]:"#1F7345",[_.FLAC]:"#1795E3",[_.GIF]:"#59B031",[_.GZIP]:"#F8AB36",[_.HTML]:"#71C3EB",[_.IMAGE]:"#59B031",[_.JPEG]:"#59B031",[_.JSON]:"#71C3EB",[_.M4A]:"#1795E3",[_.MOV]:"#E63324",[_.MP3]:"#1795E3",[_.MP4]:"#E63324",[_.OGG]:"#1795E3",[_.PDF]:"#E44948",[_.PNG]:"#59B031",[_.POWERPOINT]:"#B54A2B",[_.RAR]:"#F8AB36",[_.STP]:"#3764B1",[_.TEXT]:"#3162AB",[_.UNKNOWN]:"#999999",[_.VIDEO]:"#E63324",[_.WAV]:"#1795E3",[_.WMA]:"#1795E3",[_.WORD]:"#3162AB",[_.XML]:"#71C3EB",[_.YAML]:"#71C3EB",[_.ZIP]:"#F8AB36"};var Te;(function(r){r.fluid_topics="fluid-topics",r.file_format="file-format",r.material="material"})(Te||(Te={}));var Ri=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ve=class extends z{constructor(){super(...arguments),this.resolvedIcon=F}render(){let e=this.variant&&Object.values(Te).includes(this.variant)?this.variant:Te.fluid_topics,t=e!==Te.material||!!this.value;return P`
|
|
642
|
+
<i class="ft-icon ft-icon--${e}" part="icon icon-${e}">
|
|
643
|
+
${Cn(this.resolvedIcon)}
|
|
644
|
+
<slot ?hidden=${t}></slot>
|
|
644
645
|
</i>
|
|
645
|
-
`}get textContent(){var t
|
|
646
|
+
`}get textContent(){var e,t;return(t=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&t!==void 0?t:""}update(e){super.update(e),["value","variant"].some(t=>e.has(t))&&this.resolveIcon()}resolveIcon(){var e,t;let o=this.value||this.textContent;switch(this.variant){case Te.file_format:this.resolvedIcon=(e=_[o.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:o;break;case Te.material:this.resolvedIcon=this.value||F;break;default:this.resolvedIcon=(t=Sr[o.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:o;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};ve.elementDefinitions={};ve.styles=nd;Ri([g()],ve.prototype,"variant",void 0);Ri([g()],ve.prototype,"value",void 0);Ri([W()],ve.prototype,"resolvedIcon",void 0);Ri([Z("slot")],ve.prototype,"slottedContent",void 0);V("ft-icon")(ve);var we={borderRadiusLeft:i.extend("--ft-switch-option-border-radius-left","",R.borderRadiusL),borderRadiusRight:i.extend("--ft-switch-option-border-radius-right","",R.borderRadiusL),borderWidthLeft:i.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:i.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:i.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},md=I`
|
|
646
647
|
.ft-switch-option {
|
|
647
648
|
position: relative;
|
|
648
649
|
display: inline-block;
|
|
@@ -656,20 +657,20 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
656
657
|
}
|
|
657
658
|
|
|
658
659
|
.ft-switch-option--content {
|
|
659
|
-
--ft-switch-option-internal-line-height: calc(${
|
|
660
|
-
--ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${
|
|
660
|
+
--ft-switch-option-internal-line-height: calc(${me.fontSize} + 2px);
|
|
661
|
+
--ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${me.iconSize});
|
|
661
662
|
|
|
662
663
|
border-style: solid;
|
|
663
|
-
border-color: ${
|
|
664
|
-
border-width: ${
|
|
665
|
-
border-radius: ${
|
|
664
|
+
border-color: ${me.borderColor};
|
|
665
|
+
border-width: ${we.borderWidthVertical} ${we.borderWidthRight} ${we.borderWidthVertical} ${we.borderWidthLeft};
|
|
666
|
+
border-radius: ${we.borderRadiusLeft} ${we.borderRadiusRight} ${we.borderRadiusRight} ${we.borderRadiusLeft};
|
|
666
667
|
display: flex;
|
|
667
668
|
align-items: center;
|
|
668
669
|
justify-content: center;
|
|
669
670
|
overflow: hidden;
|
|
670
|
-
${
|
|
671
|
+
${C(Se.size,me.iconSize)};
|
|
671
672
|
padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
|
|
672
|
-
background-color: ${
|
|
673
|
+
background-color: ${me.backgroundColor};
|
|
673
674
|
-webkit-mask-image: radial-gradient(white, black);
|
|
674
675
|
}
|
|
675
676
|
|
|
@@ -678,8 +679,8 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
678
679
|
}
|
|
679
680
|
|
|
680
681
|
.ft-switch-option--selected .ft-switch-option--content:before {
|
|
681
|
-
background-color: ${
|
|
682
|
-
border-radius: ${
|
|
682
|
+
background-color: ${me.selectedBackgroundColor};
|
|
683
|
+
border-radius: ${we.borderRadiusLeft} ${we.borderRadiusRight} ${we.borderRadiusRight} ${we.borderRadiusLeft};
|
|
683
684
|
position: absolute;
|
|
684
685
|
inset: 0;
|
|
685
686
|
content: "";
|
|
@@ -688,18 +689,18 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
688
689
|
}
|
|
689
690
|
|
|
690
691
|
.ft-switch-option--label {
|
|
691
|
-
color: ${
|
|
692
|
+
color: ${me.textColor};
|
|
692
693
|
overflow: hidden;
|
|
693
694
|
white-space: nowrap;
|
|
694
695
|
text-overflow: ellipsis;
|
|
695
696
|
display: block;
|
|
696
697
|
margin: 0 8px;
|
|
697
|
-
${
|
|
698
|
-
${
|
|
698
|
+
${C(ke.fontSize,me.fontSize)};
|
|
699
|
+
${C(ke.lineHeight,"var(--ft-switch-option-internal-content-height)")}
|
|
699
700
|
}
|
|
700
701
|
|
|
701
702
|
.ft-switch-option--selected .ft-switch-option--label {
|
|
702
|
-
color: ${
|
|
703
|
+
color: ${me.selectedTextColor};
|
|
703
704
|
}
|
|
704
705
|
|
|
705
706
|
.ft-switch-option--label[hidden] {
|
|
@@ -707,7 +708,7 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
707
708
|
}
|
|
708
709
|
|
|
709
710
|
.ft-switch-option--ripple {
|
|
710
|
-
${
|
|
711
|
+
${C(H.color,me.rippleColor)};
|
|
711
712
|
}
|
|
712
713
|
|
|
713
714
|
ft-icon, ft-ripple, ft-typography {
|
|
@@ -720,20 +721,20 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
720
721
|
|
|
721
722
|
ft-icon {
|
|
722
723
|
flex-shrink: 0;
|
|
723
|
-
color: ${
|
|
724
|
+
color: ${me.iconColor};
|
|
724
725
|
}
|
|
725
726
|
|
|
726
727
|
.ft-switch-option--selected ft-icon {
|
|
727
|
-
color: ${
|
|
728
|
+
color: ${me.selectedTextColor};
|
|
728
729
|
}
|
|
729
|
-
`;var
|
|
730
|
-
<label part="label" for="input" class=${
|
|
730
|
+
`;var ut=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Os=class extends CustomEvent{constructor(e){super("option-change-by-user",{detail:e,bubbles:!0,composed:!0})}},Es=class extends CustomEvent{constructor(e){super("option-change",{detail:e,bubbles:!0,composed:!0})}},xe=class extends z{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}update(e){super.update(e),e.has("selected")&&this.dispatchEvent(new Es(this.selected))}render(){let e={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(P`
|
|
731
|
+
<label part="label" for="input" class=${Pe(e)}
|
|
731
732
|
@click=${this.onChange}>
|
|
732
733
|
<div class="ft-switch-option--content">
|
|
733
734
|
<ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
|
|
734
735
|
<ft-typography part="text"
|
|
735
736
|
variant="button"
|
|
736
|
-
class="ft-switch-option--label ${
|
|
737
|
+
class="ft-switch-option--label ${To?"ft-safari-ellipsis-fix":""}"
|
|
737
738
|
?hidden=${!this.hasTextContent()}>
|
|
738
739
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
739
740
|
</ft-typography>
|
|
@@ -742,29 +743,29 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
742
743
|
</label>
|
|
743
744
|
<input id="input" type="radio" class="ft-switch-option--input"
|
|
744
745
|
.checked=${this.selected}>
|
|
745
|
-
`)}addTooltip(
|
|
746
|
+
`)}addTooltip(e){return this.hasTextContent()||this.getLabel().trim().length===0?e:P`
|
|
746
747
|
<ft-tooltip part="tooltip"
|
|
747
748
|
text="${this.getLabel()}"
|
|
748
749
|
position="${this.tooltipPosition}">
|
|
749
|
-
${
|
|
750
|
+
${e}
|
|
750
751
|
</ft-tooltip>
|
|
751
|
-
`}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new
|
|
752
|
+
`}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new Os(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?P`
|
|
752
753
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
753
|
-
`:
|
|
754
|
-
<div @keydown=${this.onKeyDown} tabindex="0" class="${
|
|
754
|
+
`:F}get textContent(){var e,t;return(t=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(o=>o.textContent).join("").trim())!==null&&t!==void 0?t:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}};xe.elementDefinitions={"ft-ripple":X,"ft-typography":ge,"ft-tooltip":de,"ft-icon":ve};xe.styles=[gr,md];ut([g()],xe.prototype,"value",void 0);ut([g()],xe.prototype,"icon",void 0);ut([g()],xe.prototype,"iconVariant",void 0);ut([g()],xe.prototype,"label",void 0);ut([g()],xe.prototype,"tooltipPosition",void 0);ut([g({type:Boolean,reflect:!0})],xe.prototype,"selected",void 0);ut([g({type:Boolean})],xe.prototype,"trailingIcon",void 0);ut([g({type:Boolean})],xe.prototype,"unselectable",void 0);ut([Z(".ft-switch-option--content slot")],xe.prototype,"slottedContent",void 0);ut([Z(".ft-switch-option--input")],xe.prototype,"input",void 0);var Io=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Cs=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Ke=class extends z{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var e;return(e=this.selectedOption)===null||e===void 0?void 0:e.value}update(e){super.update(e),e.has("selectedOption")&&this.updateOptions(),e.has("unselectable")&&this.options.forEach(t=>t.unselectable=this.unselectable)}render(){let e={"ft-switch":!0,"ft-switch--dense":this.dense};return P`
|
|
755
|
+
<div @keydown=${this.onKeyDown} tabindex="0" class="${Pe(e)}">
|
|
755
756
|
<slot @slotchange=${this.onSlotchange}
|
|
756
757
|
@option-change=${this.onOptionChangeByScript}
|
|
757
758
|
@option-change-by-user=${this.onOptionChangeByUser}
|
|
758
759
|
></slot>
|
|
759
760
|
</div>
|
|
760
|
-
`}onKeyDown(
|
|
761
|
+
`}onKeyDown(e){let t;(e.key=="ArrowDown"||e.key=="ArrowRight")&&(t=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(e.key=="ArrowUp"||e.key=="ArrowLeft")&&(t=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),t!=null&&(e.preventDefault(),this.options[this.fixIndex(t)].selected=!0)}fixIndex(e){return e<0?this.options.length-1:e>this.options.length-1?0:e}onSlotchange(){var e;this.options=[],(e=this.slottedContent)===null||e===void 0||e.assignedElements().forEach(t=>{t instanceof xe&&this.registerOption(t)}),this.selectedOption=this.options.find(t=>t.selected)}registerOption(e){e.setAttribute("tabindex","-1"),e.unselectable=this.unselectable,this.options.push(e)}onOptionChangeByScript(e){e.stopPropagation();let t=e.target;this.onOptionChange(t)}onOptionChangeByUser(e){var t;e.stopPropagation(),this.onOptionChange(e.target),this.dispatchEvent(new Cs((t=this.selectedOption)===null||t===void 0?void 0:t.value))}onOptionChange(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(t=>t.selected)}private(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(t=>t.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(e=>{e.selected=e===this.selectedOption})}};Ke.elementDefinitions={};Ke.styles=I`
|
|
761
762
|
:host {
|
|
762
763
|
display: inline-block;
|
|
763
764
|
}
|
|
764
765
|
|
|
765
766
|
.ft-switch {
|
|
766
|
-
border-radius: ${
|
|
767
|
-
outline-color: ${
|
|
767
|
+
border-radius: ${me.borderRadius};
|
|
768
|
+
outline-color: ${me.outlineColor};
|
|
768
769
|
}
|
|
769
770
|
|
|
770
771
|
.ft-switch slot {
|
|
@@ -773,25 +774,25 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
773
774
|
}
|
|
774
775
|
|
|
775
776
|
.ft-switch slot::slotted(ft-switch-option) {
|
|
776
|
-
${
|
|
777
|
-
${
|
|
778
|
-
${
|
|
777
|
+
${C(we.borderRadiusLeft,"0")};
|
|
778
|
+
${C(we.borderRadiusRight,"0")};
|
|
779
|
+
${C(we.borderWidthLeft,"0")};
|
|
779
780
|
}
|
|
780
781
|
|
|
781
782
|
.ft-switch slot::slotted(ft-switch-option:first-child) {
|
|
782
|
-
${
|
|
783
|
-
${
|
|
783
|
+
${C(we.borderRadiusLeft,me.borderRadius)};
|
|
784
|
+
${C(we.borderWidthLeft,"1px")};
|
|
784
785
|
}
|
|
785
786
|
|
|
786
787
|
.ft-switch slot::slotted(ft-switch-option:last-child) {
|
|
787
|
-
${
|
|
788
|
+
${C(we.borderRadiusRight,me.borderRadius)};
|
|
788
789
|
}
|
|
789
790
|
|
|
790
791
|
.ft-switch--dense slot::slotted(ft-switch-option) {
|
|
791
792
|
--ft-switch-internal-vertical-padding: 2px;
|
|
792
793
|
--ft-switch-internal-horizontal-padding: 4px;
|
|
793
794
|
}
|
|
794
|
-
`;
|
|
795
|
+
`;Io([g({type:Boolean})],Ke.prototype,"dense",void 0);Io([g({type:Boolean})],Ke.prototype,"unselectable",void 0);Io([Z(".ft-switch slot")],Ke.prototype,"slottedContent",void 0);Io([W()],Ke.prototype,"selectedOption",void 0);Io([Z(".ft-switch")],Ke.prototype,"ftSwitchDiv",void 0);V("ft-switch")(Ke);V("ft-switch-option")(xe);var gd={colorOutline:i.external(R.colorOutline,"Design system"),colorOnSurfaceMedium:i.external(R.colorOnSurfaceMedium,"Design system")},yd=I`
|
|
795
796
|
:host {
|
|
796
797
|
display: block;
|
|
797
798
|
}
|
|
@@ -802,17 +803,17 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
802
803
|
|
|
803
804
|
ft-icon {
|
|
804
805
|
transform: rotate(-45deg);
|
|
805
|
-
color: ${
|
|
806
|
+
color: ${gd.colorOutline};
|
|
806
807
|
}
|
|
807
808
|
|
|
808
809
|
.ft-resizer--dragging ft-icon,
|
|
809
810
|
.ft-resizer:hover ft-icon {
|
|
810
|
-
color: ${
|
|
811
|
+
color: ${gd.colorOnSurfaceMedium};
|
|
811
812
|
}
|
|
812
|
-
`;var
|
|
813
|
+
`;var Gt=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},As=class extends CustomEvent{constructor(e,t){super("resize",{detail:{width:e,height:t}})}},Ie=class extends z{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Te.material,this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=e=>this.doDrag(e.clientX,e.clientY),this.doDragFromTouch=e=>this.doDrag(e.touches[0].clientX,e.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return P`
|
|
813
814
|
<style>
|
|
814
815
|
.ft-resizer {
|
|
815
|
-
cursor: ${
|
|
816
|
+
cursor: ${mt(this.cursor)}
|
|
816
817
|
}
|
|
817
818
|
</style>
|
|
818
819
|
<div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
|
|
@@ -820,25 +821,25 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
820
821
|
@touchstart=${this.initDragFromTouch}>
|
|
821
822
|
<ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
822
823
|
</div>
|
|
823
|
-
`}initDragFromMouse(
|
|
824
|
+
`}initDragFromMouse(e){this.initDrag(e.clientX,e.clientY)}initDragFromTouch(e){e.preventDefault(),e.stopPropagation(),this.initDrag(e.touches[0].clientX,e.touches[0].clientY)}initDrag(e,t){this.dragging=!0,this.startX=e,this.startY=t,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(e,t){let o=this.fixedWidth+e-this.startX,n=this.fixedHeight+t-this.startY;this.dispatchEvent(new As(o,n))}};Ie.elementDefinitions={"ft-icon":ve};Ie.styles=[mr,yd];Gt([g({type:Number})],Ie.prototype,"initialWidth",void 0);Gt([g({type:Number})],Ie.prototype,"initialHeight",void 0);Gt([g()],Ie.prototype,"icon",void 0);Gt([g()],Ie.prototype,"iconVariant",void 0);Gt([g()],Ie.prototype,"cursor",void 0);Gt([W()],Ie.prototype,"dragging",void 0);Gt([bt({passive:!0})],Ie.prototype,"initDragFromMouse",null);Gt([bt({passive:!0})],Ie.prototype,"initDragFromTouch",null);V("ft-resizer")(Ie);var B={fontSize:i.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:i.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:i.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:i.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:i.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:i.extend("--ft-input-label-border-color","",R.colorOutline),textColor:i.extend("--ft-input-label-text-color","",R.colorOnSurfaceMedium),disabledTextColor:i.extend("--ft-input-label-disabled-text-color","",R.colorOnSurfaceDisabled),colorSurface:i.external(R.colorSurface,"Design system"),borderRadiusS:i.external(R.borderRadiusS,"Design system"),colorError:i.external(R.colorError,"Design system")},bd=I`
|
|
824
825
|
.ft-input-label {
|
|
825
826
|
position: absolute;
|
|
826
827
|
inset: 0;
|
|
827
828
|
display: flex;
|
|
828
|
-
background-color: ${
|
|
829
|
-
border-radius: ${
|
|
829
|
+
background-color: ${B.colorSurface};
|
|
830
|
+
border-radius: ${B.borderRadiusS} ${B.borderRadiusS} 0 0;
|
|
830
831
|
}
|
|
831
832
|
|
|
832
833
|
.ft-input-label--outlined {
|
|
833
|
-
border-radius: ${
|
|
834
|
+
border-radius: ${B.borderRadiusS};
|
|
834
835
|
}
|
|
835
836
|
|
|
836
837
|
.ft-input-label {
|
|
837
|
-
border-color: ${
|
|
838
|
+
border-color: ${B.borderColor};
|
|
838
839
|
}
|
|
839
840
|
|
|
840
841
|
.ft-input-label.ft-input-label--in-error {
|
|
841
|
-
border-color: ${
|
|
842
|
+
border-color: ${B.colorError}
|
|
842
843
|
}
|
|
843
844
|
|
|
844
845
|
.ft-input-label:before,
|
|
@@ -851,7 +852,7 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
851
852
|
}
|
|
852
853
|
|
|
853
854
|
.ft-input-label:before {
|
|
854
|
-
width: calc(${
|
|
855
|
+
width: calc(${B.horizontalSpacing} - 4px);
|
|
855
856
|
flex-shrink: 0;
|
|
856
857
|
}
|
|
857
858
|
|
|
@@ -867,20 +868,20 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
867
868
|
border-bottom-width: 1px;
|
|
868
869
|
border-bottom-style: solid;
|
|
869
870
|
border-color: inherit;
|
|
870
|
-
color: ${
|
|
871
|
+
color: ${B.textColor};
|
|
871
872
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
872
|
-
max-width: calc(${
|
|
873
|
+
max-width: calc(${B.labelMaxWidth} - 2 * (${B.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
873
874
|
text-overflow: ellipsis;
|
|
874
|
-
${
|
|
875
|
-
${
|
|
875
|
+
${C(tt.fontSize,B.fontSize)};
|
|
876
|
+
${C(tt.lineHeight,B.fontSize)};
|
|
876
877
|
}
|
|
877
878
|
|
|
878
879
|
.ft-input-label--in-error .ft-input-label--text {
|
|
879
|
-
color: ${
|
|
880
|
+
color: ${B.colorError}
|
|
880
881
|
}
|
|
881
882
|
|
|
882
883
|
.ft-input-label--disabled .ft-input-label--text {
|
|
883
|
-
color: ${
|
|
884
|
+
color: ${B.disabledTextColor};
|
|
884
885
|
}
|
|
885
886
|
|
|
886
887
|
.ft-input-label--hidden-text {
|
|
@@ -897,19 +898,19 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
897
898
|
overflow: hidden;
|
|
898
899
|
white-space: nowrap;
|
|
899
900
|
text-overflow: ellipsis;
|
|
900
|
-
padding: ${
|
|
901
|
-
margin: calc(${
|
|
901
|
+
padding: ${B.verticalSpacing} 4px;
|
|
902
|
+
margin: calc(${B.verticalSpacing} * -1) 0;
|
|
902
903
|
max-width: 100%;
|
|
903
904
|
box-sizing: border-box;
|
|
904
905
|
}
|
|
905
906
|
|
|
906
907
|
.ft-input-label--raised .ft-input-label--text {
|
|
907
|
-
${
|
|
908
|
-
${
|
|
908
|
+
${C(tt.fontSize,B.raisedFontSize)};
|
|
909
|
+
${C(tt.lineHeight,B.raisedFontSize)};
|
|
909
910
|
}
|
|
910
911
|
|
|
911
912
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
912
|
-
top: ${
|
|
913
|
+
top: ${B.verticalSpacing};
|
|
913
914
|
}
|
|
914
915
|
|
|
915
916
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -922,36 +923,36 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
922
923
|
.ft-input-label--outlined:before {
|
|
923
924
|
border-left-width: 1px;
|
|
924
925
|
border-left-style: solid;
|
|
925
|
-
border-radius: ${
|
|
926
|
+
border-radius: ${B.borderRadiusS} 0 0 ${B.borderRadiusS};
|
|
926
927
|
}
|
|
927
928
|
|
|
928
929
|
.ft-input-label--outlined:after {
|
|
929
930
|
border-right-width: 1px;
|
|
930
931
|
border-right-style: solid;
|
|
931
|
-
border-radius: 0 ${
|
|
932
|
+
border-radius: 0 ${B.borderRadiusS} ${B.borderRadiusS} 0;
|
|
932
933
|
}
|
|
933
934
|
|
|
934
935
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
935
936
|
padding: 2px 4px;
|
|
936
|
-
z-index: ${
|
|
937
|
-
background-color: ${
|
|
938
|
-
border-radius: ${
|
|
937
|
+
z-index: ${B.raisedZIndex};
|
|
938
|
+
background-color: ${B.colorSurface};
|
|
939
|
+
border-radius: ${B.borderRadiusS};
|
|
939
940
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
940
941
|
}
|
|
941
942
|
|
|
942
943
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
943
944
|
border-top: none;
|
|
944
945
|
}
|
|
945
|
-
`;var
|
|
946
|
-
<div class="${
|
|
947
|
-
${this.text
|
|
946
|
+
`;var Po=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},De=class extends z{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){let e={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return P`
|
|
947
|
+
<div class="${Pe(e)}">
|
|
948
|
+
${this.text?P`
|
|
948
949
|
<div class="ft-input-label--text ft-typography--caption">
|
|
949
950
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
950
951
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
951
952
|
</div>
|
|
952
953
|
`:null}
|
|
953
954
|
</div>
|
|
954
|
-
`}};
|
|
955
|
+
`}};De.elementDefinitions={};De.styles=[Ai,bd];Po([g({type:String})],De.prototype,"text",void 0);Po([g({type:Boolean})],De.prototype,"raised",void 0);Po([g({type:Boolean})],De.prototype,"outlined",void 0);Po([g({type:Boolean})],De.prototype,"disabled",void 0);Po([g({type:Boolean})],De.prototype,"error",void 0);V("ft-input-label")(De);var te={fontSize:i.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:i.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:i.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:i.extend("--ft-text-area-helper-color","",R.colorOnSurfaceMedium),colorPrimary:i.external(R.colorPrimary,"Design system"),colorOnSurface:i.external(R.colorOnSurface,"Design system"),colorOnSurfaceDisabled:i.external(R.colorOnSurfaceDisabled,"Design system"),borderRadiusS:i.external(R.borderRadiusS,"Design system"),colorError:i.external(R.colorError,"Design system")},vd=I`
|
|
955
956
|
*:focus {
|
|
956
957
|
outline: none;
|
|
957
958
|
}
|
|
@@ -963,10 +964,10 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
963
964
|
}
|
|
964
965
|
|
|
965
966
|
ft-input-label {
|
|
966
|
-
${
|
|
967
|
-
${
|
|
968
|
-
${
|
|
969
|
-
${
|
|
967
|
+
${C(B.fontSize,te.fontSize)};
|
|
968
|
+
${C(B.raisedFontSize,te.labelSize)};
|
|
969
|
+
${C(B.verticalSpacing,te.verticalSpacing)};
|
|
970
|
+
${C(B.horizontalSpacing,te.horizontalSpacing)};
|
|
970
971
|
}
|
|
971
972
|
|
|
972
973
|
.ft-text-area--main-panel {
|
|
@@ -984,8 +985,8 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
984
985
|
}
|
|
985
986
|
|
|
986
987
|
.ft-text-area--input-panel ft-ripple {
|
|
987
|
-
${
|
|
988
|
-
${
|
|
988
|
+
${C(H.opacityContentOnSurfaceHover,"0.08")};
|
|
989
|
+
${C(H.opacityContentOnSurfacePressed,"0.04")};
|
|
989
990
|
}
|
|
990
991
|
|
|
991
992
|
.ft-text-area--input {
|
|
@@ -997,12 +998,12 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
997
998
|
align-self: stretch;
|
|
998
999
|
resize: none;
|
|
999
1000
|
|
|
1000
|
-
${
|
|
1001
|
-
${
|
|
1002
|
-
color: ${
|
|
1001
|
+
${C(Ye.fontSize,te.fontSize)};
|
|
1002
|
+
${C(Ye.lineHeight,te.fontSize)};
|
|
1003
|
+
color: ${te.colorOnSurface};
|
|
1003
1004
|
|
|
1004
|
-
padding: 0 ${
|
|
1005
|
-
margin: calc(${
|
|
1005
|
+
padding: 0 ${te.horizontalSpacing};
|
|
1006
|
+
margin: calc(${te.verticalSpacing} + ${te.labelSize} / 2) 0 ${te.verticalSpacing} 0;
|
|
1006
1007
|
|
|
1007
1008
|
border: none;
|
|
1008
1009
|
background: none;
|
|
@@ -1011,7 +1012,7 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1011
1012
|
}
|
|
1012
1013
|
|
|
1013
1014
|
.ft-text-area--disabled .ft-text-area--input {
|
|
1014
|
-
color: ${
|
|
1015
|
+
color: ${te.colorOnSurfaceDisabled};
|
|
1015
1016
|
}
|
|
1016
1017
|
|
|
1017
1018
|
.ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
|
|
@@ -1019,49 +1020,49 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1019
1020
|
}
|
|
1020
1021
|
|
|
1021
1022
|
.ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
|
|
1022
|
-
${
|
|
1023
|
-
${
|
|
1023
|
+
${C(B.borderColor,te.colorPrimary)};
|
|
1024
|
+
${C(B.textColor,te.colorPrimary)};
|
|
1024
1025
|
}
|
|
1025
1026
|
|
|
1026
1027
|
.ft-text-area--filled .ft-text-area--input-panel {
|
|
1027
|
-
border-radius: ${
|
|
1028
|
+
border-radius: ${te.borderRadiusS} ${te.borderRadiusS} 0 0;
|
|
1028
1029
|
}
|
|
1029
1030
|
|
|
1030
1031
|
.ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
|
|
1031
1032
|
align-self: stretch;
|
|
1032
|
-
margin-bottom: ${
|
|
1033
|
-
margin-top: calc(${
|
|
1033
|
+
margin-bottom: ${te.verticalSpacing};
|
|
1034
|
+
margin-top: calc(${te.labelSize} + 2 * ${te.verticalSpacing});
|
|
1034
1035
|
}
|
|
1035
1036
|
|
|
1036
1037
|
.ft-text-area--outlined .ft-text-area--input-panel {
|
|
1037
|
-
border-radius: ${
|
|
1038
|
+
border-radius: ${te.borderRadiusS};
|
|
1038
1039
|
}
|
|
1039
1040
|
|
|
1040
1041
|
.ft-text-area--helper-text {
|
|
1041
|
-
padding: 0 12px 0 ${
|
|
1042
|
-
color: ${
|
|
1042
|
+
padding: 0 12px 0 ${te.horizontalSpacing};
|
|
1043
|
+
color: ${te.helperColor};
|
|
1043
1044
|
}
|
|
1044
1045
|
|
|
1045
1046
|
.ft-text-area--in-error .ft-text-area--input,
|
|
1046
1047
|
.ft-text-area--in-error .ft-text-area--helper-text {
|
|
1047
|
-
color: ${
|
|
1048
|
+
color: ${te.colorError};
|
|
1048
1049
|
}
|
|
1049
1050
|
|
|
1050
1051
|
ft-resizer {
|
|
1051
1052
|
position: absolute;
|
|
1052
1053
|
bottom: 0;
|
|
1053
1054
|
}
|
|
1054
|
-
`;var
|
|
1055
|
+
`;var Rt=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ae=class extends xr(z,"textbox"){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let e={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return P`
|
|
1055
1056
|
<style>
|
|
1056
1057
|
.ft-text-area--main-panel {
|
|
1057
|
-
height: calc(4 * ${
|
|
1058
|
+
height: calc(4 * ${te.verticalSpacing} + ${te.labelSize} + ${te.fontSize} + ${this.height}px);
|
|
1058
1059
|
}
|
|
1059
1060
|
|
|
1060
1061
|
ft-resizer {
|
|
1061
1062
|
right: ${this.textarea!=null?this.textarea.offsetWidth-this.textarea.clientWidth:0}px;
|
|
1062
1063
|
}
|
|
1063
1064
|
</style>
|
|
1064
|
-
<div class="${
|
|
1065
|
+
<div class="${Pe(e)}">
|
|
1065
1066
|
<div class="ft-text-area--main-panel">
|
|
1066
1067
|
<ft-input-label text="${this.label}"
|
|
1067
1068
|
?disabled=${this.disabled}
|
|
@@ -1071,7 +1072,7 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1071
1072
|
></ft-input-label>
|
|
1072
1073
|
<div class="ft-text-area--input-panel"
|
|
1073
1074
|
aria-label="${this.label}">
|
|
1074
|
-
${this.outlined?null
|
|
1075
|
+
${this.outlined?null:P`
|
|
1075
1076
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
1076
1077
|
`}
|
|
1077
1078
|
<textarea class="ft-typography--body1 ft-text-area--input"
|
|
@@ -1088,45 +1089,45 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1088
1089
|
initialHeight="${this.height}"
|
|
1089
1090
|
cursor="ns-resize"></ft-resizer>
|
|
1090
1091
|
</div>
|
|
1091
|
-
${this.helper
|
|
1092
|
+
${this.helper?P`
|
|
1092
1093
|
<ft-typography class="ft-text-area--helper-text" variant="caption">
|
|
1093
1094
|
${this.helper}
|
|
1094
1095
|
</ft-typography>`:void 0}
|
|
1095
1096
|
</div>
|
|
1096
|
-
`}setValue(t
|
|
1097
|
+
`}setValue(e,t=!1){this.value=e,this.setFormValue(e),t&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(e){(e.key==="Enter"||e.key===" ")&&e.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(e){e.detail.height>=50&&(this.height=e.detail.height)}};Ae.elementDefinitions={"ft-input-label":De,"ft-resizer":Ie,"ft-ripple":X,"ft-typography":ge};Ae.styles=[Kr,vd];Rt([g({type:String})],Ae.prototype,"label",void 0);Rt([g({reflect:!0})],Ae.prototype,"value",void 0);Rt([g({type:String})],Ae.prototype,"helper",void 0);Rt([g({type:Boolean})],Ae.prototype,"outlined",void 0);Rt([g({type:Boolean})],Ae.prototype,"disabled",void 0);Rt([g({type:Boolean})],Ae.prototype,"error",void 0);Rt([g({type:Number,reflect:!0})],Ae.prototype,"height",void 0);Rt([Z("textarea")],Ae.prototype,"textarea",void 0);Rt([W()],Ae.prototype,"focused",void 0);V("ft-text-area")(Ae);var wr=class extends z{render(){return P`
|
|
1097
1098
|
<div class="ft-loader">
|
|
1098
1099
|
<div></div>
|
|
1099
1100
|
<div></div>
|
|
1100
1101
|
<div></div>
|
|
1101
1102
|
<div></div>
|
|
1102
1103
|
</div>
|
|
1103
|
-
`}};
|
|
1104
|
+
`}};wr.styles=id;V("ft-loader")(wr);var ze=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ye=class extends xr(z,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",e=>{var t;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((t=this.form)===null||t===void 0||t.requestSubmit())})}render(){var e;return this.addTooltipIfNeeded(P`
|
|
1104
1105
|
<button part="button"
|
|
1105
|
-
class="${
|
|
1106
|
-
aria-label="${(
|
|
1106
|
+
class="${Pe(this.buttonClasses)}"
|
|
1107
|
+
aria-label="${(e=this.ariaLabel)!==null&&e!==void 0?e:this.getLabel()}"
|
|
1107
1108
|
?disabled=${this.isDisabled()}>
|
|
1108
1109
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
1109
1110
|
<ft-typography part="label"
|
|
1110
1111
|
variant=${this.typographyVariant}
|
|
1111
1112
|
element="span"
|
|
1112
|
-
class="ft-button--label ${
|
|
1113
|
+
class="ft-button--label ${To?"ft-safari-ellipsis-fix":""}"
|
|
1113
1114
|
?hidden=${!this.hasTextContent()}>
|
|
1114
1115
|
<slot @slotchange=${this.onSlotchange}></slot>
|
|
1115
1116
|
</ft-typography>
|
|
1116
1117
|
${this.resolveIcon()}
|
|
1117
1118
|
</button>
|
|
1118
|
-
`)}addTooltipIfNeeded(
|
|
1119
|
+
`)}addTooltipIfNeeded(e){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?P`
|
|
1119
1120
|
<ft-tooltip part="tooltip"
|
|
1120
1121
|
text="${this.getLabel()}"
|
|
1121
1122
|
position="${this.tooltipPosition}">
|
|
1122
|
-
${
|
|
1123
|
+
${e}
|
|
1123
1124
|
</ft-tooltip>
|
|
1124
|
-
`:
|
|
1125
|
-
<ft-loader part="loader icon"></ft-loader> `:this.icon
|
|
1125
|
+
`:e}resolveIcon(){return this.loading?P`
|
|
1126
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?P`
|
|
1126
1127
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
1127
|
-
|
|
1128
|
+
`:P`
|
|
1128
1129
|
<slot part="icon" name="icon"></slot>
|
|
1129
|
-
`}focus(){var
|
|
1130
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(e){return e instanceof HTMLSlotElement?e.assignedNodes().map(t=>this.unslotText(t)).join(""):e?.textContent||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};ye.elementDefinitions={"ft-ripple":X,"ft-tooltip":de,"ft-typography":ge,"ft-icon":ve,"ft-loader":wr};ze([g({type:String,reflect:!0})],ye.prototype,"role",void 0);ze([g()],ye.prototype,"type",void 0);ze([g({type:Boolean})],ye.prototype,"disabled",void 0);ze([g()],ye.prototype,"label",void 0);ze([g()],ye.prototype,"icon",void 0);ze([g()],ye.prototype,"iconVariant",void 0);ze([g({type:Boolean})],ye.prototype,"trailingIcon",void 0);ze([g({type:Boolean})],ye.prototype,"loading",void 0);ze([g({attribute:"aria-label"})],ye.prototype,"ariaLabel",void 0);ze([g()],ye.prototype,"tooltipPosition",void 0);ze([g({type:Boolean})],ye.prototype,"hideTooltip",void 0);ze([g({type:Boolean})],ye.prototype,"forceTooltip",void 0);ze([Z(".ft-button")],ye.prototype,"button",void 0);ze([Z(".ft-button--label slot")],ye.prototype,"slottedContent",void 0);var _i=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},rt=class extends ye{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};rt.styles=[gr,ld];_i([g({type:Boolean})],rt.prototype,"primary",void 0);_i([g({type:Boolean})],rt.prototype,"outlined",void 0);_i([g({type:Boolean})],rt.prototype,"dense",void 0);_i([g({type:Boolean})],rt.prototype,"round",void 0);var xd=[I`
|
|
1130
1131
|
:host {
|
|
1131
1132
|
display: inline-block;
|
|
1132
1133
|
max-width: 100%;
|
|
@@ -1210,13 +1211,13 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1210
1211
|
/** Primary styles **/
|
|
1211
1212
|
|
|
1212
1213
|
.ft-button--primary {
|
|
1213
|
-
${
|
|
1214
|
+
${C(Le.color,A.primaryIconColor)};
|
|
1214
1215
|
|
|
1215
|
-
${
|
|
1216
|
-
${
|
|
1217
|
-
${
|
|
1218
|
-
${
|
|
1219
|
-
${
|
|
1216
|
+
${C(H.color,A.primaryStateLayerColor)};
|
|
1217
|
+
${C(H.opacityContentOnSurfaceHover,A.primaryHoverStateLayerOpacity)};
|
|
1218
|
+
${C(H.opacityContentOnSurfaceFocused,A.primaryFocusStateLayerOpacity)};
|
|
1219
|
+
${C(H.opacityContentOnSurfaceSelected,A.primaryActiveStateLayerOpacity)};
|
|
1220
|
+
${C(H.opacityContentOnSurfacePressed,A.primaryActiveStateLayerOpacity)};
|
|
1220
1221
|
|
|
1221
1222
|
background-color: ${A.primaryBackgroundColor};
|
|
1222
1223
|
color: ${A.primaryColor};
|
|
@@ -1234,13 +1235,13 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1234
1235
|
/** Secondary styles **/
|
|
1235
1236
|
|
|
1236
1237
|
.ft-button--secondary {
|
|
1237
|
-
${
|
|
1238
|
+
${C(Le.color,A.secondaryIconColor)};
|
|
1238
1239
|
|
|
1239
|
-
${
|
|
1240
|
-
${
|
|
1241
|
-
${
|
|
1242
|
-
${
|
|
1243
|
-
${
|
|
1240
|
+
${C(H.color,A.secondaryStateLayerColor)};
|
|
1241
|
+
${C(H.opacityContentOnSurfaceHover,A.secondaryHoverStateLayerOpacity)};
|
|
1242
|
+
${C(H.opacityContentOnSurfaceFocused,A.secondaryFocusStateLayerOpacity)};
|
|
1243
|
+
${C(H.opacityContentOnSurfaceSelected,A.secondaryActiveStateLayerOpacity)};
|
|
1244
|
+
${C(H.opacityContentOnSurfacePressed,A.secondaryActiveStateLayerOpacity)};
|
|
1244
1245
|
|
|
1245
1246
|
background-color: ${A.secondaryBackgroundColor};
|
|
1246
1247
|
color: ${A.secondaryColor};
|
|
@@ -1259,13 +1260,13 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1259
1260
|
/** Tertiary styles **/
|
|
1260
1261
|
|
|
1261
1262
|
.ft-button--tertiary {
|
|
1262
|
-
${
|
|
1263
|
+
${C(Le.color,A.tertiaryIconColor)};
|
|
1263
1264
|
|
|
1264
|
-
${
|
|
1265
|
-
${
|
|
1266
|
-
${
|
|
1267
|
-
${
|
|
1268
|
-
${
|
|
1265
|
+
${C(H.color,A.tertiaryStateLayerColor)};
|
|
1266
|
+
${C(H.opacityContentOnSurfaceHover,A.tertiaryHoverStateLayerOpacity)};
|
|
1267
|
+
${C(H.opacityContentOnSurfaceFocused,A.tertiaryFocusStateLayerOpacity)};
|
|
1268
|
+
${C(H.opacityContentOnSurfaceSelected,A.tertiaryActiveStateLayerOpacity)};
|
|
1269
|
+
${C(H.opacityContentOnSurfacePressed,A.tertiaryActiveStateLayerOpacity)};
|
|
1269
1270
|
|
|
1270
1271
|
background-color: ${A.tertiaryBackgroundColor};
|
|
1271
1272
|
color: ${A.tertiaryColor};
|
|
@@ -1283,13 +1284,13 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1283
1284
|
/** Neutral styles **/
|
|
1284
1285
|
|
|
1285
1286
|
.ftds--family-neutral {
|
|
1286
|
-
${
|
|
1287
|
+
${C(Le.color,A.neutralIconColor)};
|
|
1287
1288
|
|
|
1288
|
-
${
|
|
1289
|
-
${
|
|
1290
|
-
${
|
|
1291
|
-
${
|
|
1292
|
-
${
|
|
1289
|
+
${C(H.backgroundColor,A.neutralStateLayerColor)};
|
|
1290
|
+
${C(H.opacityContentOnSurfaceHover,A.neutralHoverStateLayerOpacity)};
|
|
1291
|
+
${C(H.opacityContentOnSurfaceFocused,A.neutralFocusStateLayerOpacity)};
|
|
1292
|
+
${C(H.opacityContentOnSurfaceSelected,A.neutralActiveStateLayerOpacity)};
|
|
1293
|
+
${C(H.opacityContentOnSurfacePressed,A.neutralActiveStateLayerOpacity)};
|
|
1293
1294
|
|
|
1294
1295
|
background-color: ${A.neutralBackgroundColor};
|
|
1295
1296
|
color: ${A.neutralColor};
|
|
@@ -1307,8 +1308,8 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1307
1308
|
/** Large styles **/
|
|
1308
1309
|
|
|
1309
1310
|
.ftds--size-large {
|
|
1310
|
-
${
|
|
1311
|
-
${
|
|
1311
|
+
${C(Se.size,A.largeIconSize)};
|
|
1312
|
+
${C(Le.size,A.largeIconSize)};
|
|
1312
1313
|
|
|
1313
1314
|
height: ${A.largeHeight};
|
|
1314
1315
|
padding: 0 ${A.largeHorizontalPadding};
|
|
@@ -1329,8 +1330,8 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1329
1330
|
/** Small styles **/
|
|
1330
1331
|
|
|
1331
1332
|
.ftds--size-medium {
|
|
1332
|
-
${
|
|
1333
|
-
${
|
|
1333
|
+
${C(Se.size,A.mediumIconSize)};
|
|
1334
|
+
${C(Le.size,A.mediumIconSize)};
|
|
1334
1335
|
|
|
1335
1336
|
height: ${A.mediumHeight};
|
|
1336
1337
|
padding: 0 ${A.mediumHorizontalPadding};
|
|
@@ -1352,8 +1353,8 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1352
1353
|
/** Small styles **/
|
|
1353
1354
|
|
|
1354
1355
|
.ftds--size-small {
|
|
1355
|
-
${
|
|
1356
|
-
${
|
|
1356
|
+
${C(Se.size,A.smallIconSize)};
|
|
1357
|
+
${C(Le.size,A.smallIconSize)};
|
|
1357
1358
|
|
|
1358
1359
|
height: ${A.smallHeight};
|
|
1359
1360
|
padding: 0 ${A.smallHorizontalPadding};
|
|
@@ -1370,15 +1371,15 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1370
1371
|
.ftds--size-small.ft-button--icon-only {
|
|
1371
1372
|
width: ${A.smallIconOnlyWidth};
|
|
1372
1373
|
}
|
|
1373
|
-
`,
|
|
1374
|
-
`;var
|
|
1375
|
-
`;var
|
|
1374
|
+
`,mr];var Ni=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},_t=class extends gi(ye){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=pr.brand,this.iconVariant=Te.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case xt.large:return Kt.body2medium;case xt.medium:return Kt.caption1medium;case xt.small:return Kt.caption2medium}}};_t.styles=[gr,xd];Ni([g({type:Boolean})],_t.prototype,"primary",void 0);Ni([g({type:Boolean})],_t.prototype,"secondary",void 0);Ni([g({type:Boolean})],_t.prototype,"tertiary",void 0);Ni([g({type:Boolean})],_t.prototype,"round",void 0);V("ft-button")(rt);V("ftds-button")(_t);var Sd=I`
|
|
1375
|
+
`;var wd=I`
|
|
1376
|
+
`;var Pf="ft-app-info",Rs=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},$f={session:(r,e)=>{Je(r.session,e.payload)||(r.session=e.payload,setTimeout(()=>L.eventBus.dispatchEvent(new Rs(e.payload)),0))}},L=Ct.get({name:Pf,reducers:$f,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 Or=class r{static get(e){let{baseUrl:t,apiIntegrationIdentifier:o}=L.getState(),n=e??o;if(t&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(t,n,!0)}static await(e){return new Promise(t=>{let o=r.get(e);if(o)t(o);else{let n=L.subscribe(()=>{o=r.get(e),o&&(n(),t(o))})}})}};var ft=class{constructor(e=!0,t){var o;this.overrideApi=t;let n=this.constructor;n.commonCache=(o=n.commonCache)!==null&&o!==void 0?o:new at,this.cache=e?n.commonCache:new at}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Or.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Or.await()}clearCache(){this.cache.clearAll()}};var Od,kf=Symbol("clearAfterUnitTest"),Ti=class extends ft{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Od]=()=>{this.defaultMessages={},this.cache=new at,this.listeners={}},this.currentUiLocale=L.getState().uiLocale,L.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=L.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let t=e.name.toLowerCase();this.cache.setFinal(t,e),this.notify(t)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,t){var o;if(e=e.toLowerCase(),Object.keys(t).length>0){let n={...(o=this.defaultMessages[e])!==null&&o!==void 0?o:{},...t};Je(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}await this.fetchContext(e)}resolveContext(e){var t,o;return this.fetchContext(e),(o=(t=this.cache.getNow(e))===null||t===void 0?void 0:t.messages)!==null&&o!==void 0?o:{}}resolveRawMessage(e,t){let o=e.toLowerCase();return this.resolveContext(o)[t]}resolveMessage(e,t,...o){var n;let a=e.toLowerCase(),s=this.resolveContext(a);return new Eo((n=this.defaultMessages[a])!==null&&n!==void 0?n:{},s).resolve(t,...o)}async fetchContext(e){if(!this.cache.has(e))try{await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),await this.notify(e)}catch(t){console.error(t)}}subscribe(e,t){var o;return e=e.toLowerCase(),this.listeners[e]=(o=this.listeners[e])!==null&&o!==void 0?o:new Set,this.listeners[e].add(t),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(t)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map(e=>this.notify(e)))}async notify(e){this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(t=>ai(0).then(()=>t()).catch(()=>null)))}};Od=kf;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends Ti{constructor(){super(async(r,e)=>(await this.awaitApi).getFluidTopicsMessageContext(r,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends Ti{constructor(){super(async(r,e)=>(await this.awaitApi).getCustomMessageContext(r,e))}});var Er=window.FluidTopicsI18nService,Ed=window.FluidTopicsCustomI18nService;var Me=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},be=class extends z{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=()=>Or.get(),this.messageContexts=[],this.cache=new at,this.cleanSessionDebouncer=new ae}render(){return P`
|
|
1376
1377
|
<slot></slot>
|
|
1377
|
-
`}update(
|
|
1378
|
+
`}update(e){super.update(e),e.has("baseUrl")&&(L.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&L.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&L.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&L.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&L.actions.noCustom(this.noCustom),e.has("editorMode")&&L.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&L.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&L.actions.session(this.session),e.has("availableUiLocales")&&L.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(t=>Er.addContext(t)),e.has("openExternalDocumentInNewTab")&&L.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&L.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&L.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let e=await this.apiProvider().getCurrentSession();return e.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.session=void 0},e.idleTimeoutInMillis),e})}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",()=>this.apiProvider().getAvailableUiLocales())}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration())}};be.elementDefinitions={};be.styles=wd;Me([g()],be.prototype,"baseUrl",void 0);Me([g()],be.prototype,"apiIntegrationIdentifier",void 0);Me([g()],be.prototype,"uiLocale",void 0);Me([st(null)],be.prototype,"availableUiLocales",void 0);Me([st(null)],be.prototype,"metadataConfiguration",void 0);Me([g({type:Boolean})],be.prototype,"editorMode",void 0);Me([g({type:Boolean})],be.prototype,"noCustom",void 0);Me([g({type:Boolean})],be.prototype,"openExternalDocumentInNewTab",void 0);Me([g({converter:{fromAttribute(r){return r==="false"?!1:r==="true"||(r??!1)}}})],be.prototype,"noCustomComponent",void 0);Me([g({type:Boolean})],be.prototype,"withManualResources",void 0);Me([g({type:Boolean})],be.prototype,"navigatorOnline",void 0);Me([g({type:Boolean})],be.prototype,"forcedOffline",void 0);Me([g({type:Object})],be.prototype,"apiProvider",void 0);Me([st([])],be.prototype,"messageContexts",void 0);Me([st(void 0)],be.prototype,"session",void 0);var Ii=class extends ft{async listMySearches(){let e=L.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Pi=class extends ft{async listMyBookmarks(){let e=L.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Lf="ft-user-assets",$i=Ct.get({name:Lf,initialState:{savedSearches:void 0,bookmarks:void 0}}),_s=class{constructor(){this.currentSession=L.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Pi,this.savedSearchesService=new Ii,L.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:t}=L.getState();Je((e=this.currentSession)===null||e===void 0?void 0:e.profile,t?.profile)||(this.currentSession=t,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),$i.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),$i.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();$i.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let t=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;$i.actions.bookmarks(t)}}},Cd=new _s;var Ns=class{addCommand(e,t=!1){L.commands.add(e,t)}consumeCommand(e){return L.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Ns;var Ts=class{highlightHtml(e,t,o){Ta(e,t,o)}};window.FluidTopicsHighlightHtmlService=new Ts;var Is=class{isDate(e){var t,o,n,a;return(a=(n=((o=(t=L.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&o!==void 0?o:[]).find(l=>l.key===e))===null||n===void 0?void 0:n.date)!==null&&a!==void 0?a:!1}format(e,t){var o,n,a;return Fr.format(e,(o=t?.locale)!==null&&o!==void 0?o:L.getState().uiLocale,(n=t?.longFormat)!==null&&n!==void 0?n:!1,(a=t?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new Is;V("ft-app-context")(be);var Df=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Ps=Symbol("i18nAttributes"),Cr=Symbol("i18nProperties"),$o=Symbol("i18nUnsubs");function Zt(r){var e;class t extends r{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Ed:Er}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[Ps])===null||a===void 0||a.forEach((l,c)=>{var d;let h=this.getI18nAttributeValue(c);((d=h?.context)===null||d===void 0?void 0:d.toLowerCase())===n.toLowerCase()&&this.updateI18nAttributeMessage(c,h,l)}),(s=this[Cr])===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[Ps])===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[Cr])===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[Cr])===null||n===void 0?void 0:n.values())!==null&&a!==void 0?a:[],...[...(l=(s=this[Ps])===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[$o].has(n)||this[$o].set(n,this.i18nService.subscribe(n,()=>this.onI18nUpdate(n))),this.i18nService.prepareContext(n,a??{}),this.onI18nUpdate(n)}addI18nContext(n,a){this.addI18nMessages(typeof n=="string"?n:n.name,a)}disconnectedCallback(){super.disconnectedCallback(),this[$o].forEach(n=>n()),this[$o].clear()}}return e=$o,Df([g({type:Boolean})],t.prototype,"useCustomMessageContexts",void 0),t}var Ad=class extends Zt(z){},ki=class extends Zt(Ge){};var ko=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ot=class extends ki{constructor(){super(),this.editorMode=!1,this.addStore(L)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":F:P`
|
|
1378
1379
|
<span class="ft-i18n">
|
|
1379
1380
|
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1380
1381
|
</span>
|
|
1381
|
-
`}update(
|
|
1382
|
+
`}update(e){var t;super.update(e),["context","key","defaultMessage"].some(o=>e.has(o))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(t=this.defaultMessage)!==null&&t!==void 0?t:""})}};ot.elementDefinitions={};ot.styles=Sd;ko([le()],ot.prototype,"editorMode",void 0);ko([g()],ot.prototype,"context",void 0);ko([g()],ot.prototype,"key",void 0);ko([st([])],ot.prototype,"args",void 0);ko([g()],ot.prototype,"defaultMessage",void 0);var qt=class r{static build(e){return new r(e)}static fromGwt(e){return new r(e)}constructor(e){this.name=e,this.properties=new Proxy({},{get:(t,o)=>{let n=o;return a=>({context:this.name,key:n,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(t,o)=>(...n)=>Er.resolveMessage(this.name,o,...n)}),this.rawMessages=new Proxy({},{get:(t,o)=>Er.resolveRawMessage(this.name,o)})}};var Li=(r,e)=>(t,o)=>{var n,a;t.constructor.createProperty(o,e??{attribute:!1,type:String});let s={...r,key:(n=r.key)!==null&&n!==void 0?n:o};t[Cr]=(a=t[Cr])!==null&&a!==void 0?a:new Map,t[Cr].set(o,s)};V("ft-i18n")(ot);var q=qt.build("integratedFeedbackComponent"),Rd={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review"};var $s=r=>r??ue;var j={fontSize:i.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:i.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:i.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:i.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:i.extend("--ft-text-field-helper-color","",R.colorOnSurfaceMedium),colorPrimary:i.external(R.colorPrimary,"Design system"),colorOnSurface:i.external(R.colorOnSurface,"Design system"),colorOnSurfaceDisabled:i.external(R.colorOnSurfaceDisabled,"Design system"),borderRadiusS:i.external(R.borderRadiusS,"Design system"),colorError:i.external(R.colorError,"Design system"),prefixColor:i.extend("--ft-text-field-prefix-color","",R.colorOnSurfaceMedium),iconColor:i.extend("--ft-text-field-icon-color","",R.colorOnSurfaceMedium),floatingZIndex:i.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:i.external(R.colorSurface,"Design system"),colorOutline:i.external(R.colorOutline,"Design system"),elevation02:i.external(R.elevation02,"Design system"),suggestSize:i.create("--ft-text-field-suggest-size","","SIZE","300px")},_d=I`
|
|
1382
1383
|
*:focus {
|
|
1383
1384
|
outline: none;
|
|
1384
1385
|
}
|
|
@@ -1391,10 +1392,10 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1391
1392
|
}
|
|
1392
1393
|
|
|
1393
1394
|
ft-input-label {
|
|
1394
|
-
${
|
|
1395
|
-
${
|
|
1396
|
-
${
|
|
1397
|
-
${
|
|
1395
|
+
${C(B.fontSize,j.fontSize)};
|
|
1396
|
+
${C(B.raisedFontSize,j.labelSize)};
|
|
1397
|
+
${C(B.verticalSpacing,j.verticalSpacing)};
|
|
1398
|
+
${C(B.horizontalSpacing,j.horizontalSpacing)};
|
|
1398
1399
|
}
|
|
1399
1400
|
|
|
1400
1401
|
.ft-text-field--main-panel {
|
|
@@ -1411,13 +1412,13 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1411
1412
|
overflow: hidden;
|
|
1412
1413
|
padding: 0 ${j.horizontalSpacing};
|
|
1413
1414
|
|
|
1414
|
-
${
|
|
1415
|
-
${
|
|
1415
|
+
${C(Ye.fontSize,j.fontSize)};
|
|
1416
|
+
${C(Ye.lineHeight,j.fontSize)};
|
|
1416
1417
|
}
|
|
1417
1418
|
|
|
1418
1419
|
.ft-text-field--input-panel ft-ripple {
|
|
1419
|
-
${
|
|
1420
|
-
${
|
|
1420
|
+
${C(H.opacityContentOnSurfaceHover,"0.08")};
|
|
1421
|
+
${C(H.opacityContentOnSurfacePressed,"0.04")};
|
|
1421
1422
|
}
|
|
1422
1423
|
|
|
1423
1424
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
|
|
@@ -1466,8 +1467,8 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1466
1467
|
}
|
|
1467
1468
|
|
|
1468
1469
|
.ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
|
|
1469
|
-
${
|
|
1470
|
-
${
|
|
1470
|
+
${C(B.borderColor,j.colorPrimary)};
|
|
1471
|
+
${C(B.textColor,j.colorPrimary)};
|
|
1471
1472
|
}
|
|
1472
1473
|
|
|
1473
1474
|
.ft-text-field--filled .ft-text-field--input-panel {
|
|
@@ -1522,14 +1523,14 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1522
1523
|
}
|
|
1523
1524
|
|
|
1524
1525
|
.ft-text-field--with-icon {
|
|
1525
|
-
${
|
|
1526
|
+
${C(B.labelMaxWidth,`calc(100% - ${Se.size} - ${B.horizontalSpacing})`)};
|
|
1526
1527
|
}
|
|
1527
1528
|
|
|
1528
1529
|
.ft-text-field--with-password ft-icon:hover {
|
|
1529
1530
|
cursor: pointer;
|
|
1530
1531
|
}
|
|
1531
|
-
`;var
|
|
1532
|
-
<div class="${
|
|
1532
|
+
`;var ne=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},G=class extends xr(z,"textbox"){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=Sr.EYE_SLASH,this.passwordRevealedIcon=Sr.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(e){this.setInternalValue(e||""),this.dispatchedValue=e||""}setInternalValue(e){let t=this._value;this._value=e||"",this.setFormValue(this._value),this.requestUpdate("value",t)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}render(){var e;let t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":this.visibleSuggestions.length===0||this.hideSuggestions,"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return P`
|
|
1533
|
+
<div class="${Pe(t)}">
|
|
1533
1534
|
<div class="ft-text-field--main-panel"
|
|
1534
1535
|
@keydown=${this.handleKeyboardNavigation}
|
|
1535
1536
|
@focusout=${this.onMainPanelBlur}>
|
|
@@ -1539,17 +1540,17 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1539
1540
|
?raised=${this.focused||this.value!=""}
|
|
1540
1541
|
?error=${this.error}></ft-input-label>
|
|
1541
1542
|
<div class="ft-text-field--input-panel">
|
|
1542
|
-
${this.outlined?
|
|
1543
|
+
${this.outlined?F:P`
|
|
1543
1544
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
1544
1545
|
`}
|
|
1545
|
-
${this.prefix
|
|
1546
|
+
${this.prefix?P`
|
|
1546
1547
|
<ft-typography class="ft-text-field--prefix" variant="body1">
|
|
1547
1548
|
${this.prefix}
|
|
1548
1549
|
</ft-typography>
|
|
1549
|
-
`:
|
|
1550
|
-
<input type=${(
|
|
1551
|
-
name=${
|
|
1552
|
-
maxlength=${
|
|
1550
|
+
`:F}
|
|
1551
|
+
<input type=${(e=this.type)!==null&&e!==void 0?e:this.password&&this.hidePassword?"password":"text"}
|
|
1552
|
+
name=${$s(this.name)}
|
|
1553
|
+
maxlength=${$s(this.maxLength||void 0)}
|
|
1553
1554
|
aria-label="${this.label}"
|
|
1554
1555
|
class="ft-typography--body1 ft-text-field--input"
|
|
1555
1556
|
part="input"
|
|
@@ -1565,23 +1566,23 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1565
1566
|
<slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
|
|
1566
1567
|
</div>
|
|
1567
1568
|
</div>
|
|
1568
|
-
${this.helper
|
|
1569
|
+
${this.helper?P`
|
|
1569
1570
|
<ft-typography class="ft-text-field--helper-text" variant="caption">
|
|
1570
1571
|
${this.helper}
|
|
1571
1572
|
</ft-typography>
|
|
1572
|
-
`:
|
|
1573
|
+
`:F}
|
|
1573
1574
|
</div>
|
|
1574
|
-
`}renderPasswordIcon(){return
|
|
1575
|
+
`}renderPasswordIcon(){return P`
|
|
1575
1576
|
<ft-icon class="ft-text-field--icon"
|
|
1576
1577
|
.variant=${this.iconVariant}
|
|
1577
1578
|
.value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
|
|
1578
1579
|
@click=${()=>this.togglePasswordVisibility()}></ft-icon>
|
|
1579
|
-
`}renderIcon(){return this.password?this.renderPasswordIcon():this.icon
|
|
1580
|
+
`}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?P`
|
|
1580
1581
|
<ft-icon class="ft-text-field--icon"
|
|
1581
1582
|
.variant=${this.iconVariant}
|
|
1582
1583
|
.value=${this.icon}
|
|
1583
|
-
@click=${()=>{var
|
|
1584
|
-
`:
|
|
1584
|
+
@click=${()=>{var e;return(e=this.input)===null||e===void 0?void 0:e.focus()}}></ft-icon>
|
|
1585
|
+
`:F}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.suggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.suggestions}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&(this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px",So(this.mainPanel,this.suggestionsContainer,"bottom").then(({x:t,y:o})=>{this.suggestionsContainer.style.left=`${t}px`,this.suggestionsContainer.style.top=`${o}px`}))}setValue(e,t=!1){this.value!==e&&(this.setInternalValue(e),this.dispatchEvent(new CustomEvent("live-change",{detail:e}))),t&&this.dispatchedValue!==e&&(this.dispatchedValue=e,this.dispatchEvent(new CustomEvent("change",{detail:e})))}handleInput(e){var t;let o=((t=this.input)===null||t===void 0?void 0:t.value)||"";this.setValue(o,e.key=="Escape"||e.key=="Enter")}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var t;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let o=this.visibleSuggestions.findIndex(a=>a.matches(":focus-within")),n;e.key==="ArrowDown"?n=o<this.visibleSuggestions.length-1?o+1:0:n=o>0?o-1:this.visibleSuggestions.length-1,(t=this.visibleSuggestions[n])===null||t===void 0||t.focus()}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var t;this.setValue(e.detail,!0),(t=this.input)===null||t===void 0||t.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,t;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((t=this.input)===null||t===void 0?void 0:t.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}};G.elementDefinitions={"ft-input-label":De,"ft-ripple":X,"ft-typography":ge,"ft-icon":ve};G.styles=[Kr,Pa,_d];ne([g()],G.prototype,"label",void 0);ne([g({noAccessor:!0})],G.prototype,"value",null);ne([W()],G.prototype,"dispatchedValue",void 0);ne([g()],G.prototype,"helper",void 0);ne([g({type:Boolean})],G.prototype,"outlined",void 0);ne([g({type:Boolean})],G.prototype,"disabled",void 0);ne([g({type:Boolean})],G.prototype,"error",void 0);ne([g({type:Boolean})],G.prototype,"fixedMenuPosition",void 0);ne([g()],G.prototype,"prefix",void 0);ne([g()],G.prototype,"icon",void 0);ne([g()],G.prototype,"name",void 0);ne([g()],G.prototype,"type",void 0);ne([g()],G.prototype,"passwordHiddenIcon",void 0);ne([g()],G.prototype,"passwordRevealedIcon",void 0);ne([g()],G.prototype,"iconVariant",void 0);ne([g({type:Boolean})],G.prototype,"filterSuggestions",void 0);ne([g({type:Number})],G.prototype,"maxLength",void 0);ne([g({type:Boolean})],G.prototype,"password",void 0);ne([W()],G.prototype,"focused",void 0);ne([W()],G.prototype,"hidePassword",void 0);ne([W()],G.prototype,"hideSuggestions",void 0);ne([W()],G.prototype,"visibleSuggestions",void 0);ne([Z(".ft-text-field--main-panel")],G.prototype,"mainPanel",void 0);ne([Z(".ft-text-field--input")],G.prototype,"input",void 0);ne([Z(".ft-text-field--suggestions")],G.prototype,"suggestionsContainer",void 0);ne([vn({selector:"ft-text-field-suggestion"})],G.prototype,"suggestions",void 0);var Nd=I`
|
|
1585
1586
|
.ft-text-field-suggestion {
|
|
1586
1587
|
position: relative;
|
|
1587
1588
|
padding: 8px 16px;
|
|
@@ -1606,7 +1607,7 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1606
1607
|
slot {
|
|
1607
1608
|
pointer-events: none;
|
|
1608
1609
|
}
|
|
1609
|
-
`;var
|
|
1610
|
+
`;var Ls=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},ks=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},Nt=class extends z{render(){return P`
|
|
1610
1611
|
<div class="ft-text-field-suggestion"
|
|
1611
1612
|
tabindex="-1"
|
|
1612
1613
|
@keydown=${this.onKeyDown}
|
|
@@ -1618,17 +1619,17 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1618
1619
|
<slot></slot>
|
|
1619
1620
|
</ft-typography>
|
|
1620
1621
|
</div>
|
|
1621
|
-
`}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 _s(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())}};Re.elementDefinitions={"ft-ripple":J,"ft-typography":ht,"ft-icon":yt};Re.styles=Od;Ns([g()],Re.prototype,"value",void 0);Ns([Z(".ft-text-field-suggestion")],Re.prototype,"container",void 0);Ns([ao()],Re.prototype,"assignedNodes",void 0);V("ft-text-field")(K);V("ft-text-field-suggestion")(Re);var wd=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 Ts=class{constructor(t,e){this.mapId=t,this.paginatedToc=e,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,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.nodeByUrl[t.prettyUrl]==null?this.nodeByUrl[t.prettyUrl]=t:this.duplicatedPrettyUrls.add(t.prettyUrl)),this.nodeByUrl[`${this.mapId}/${t.tocId}`]=t,this.nodeByTocId[t.tocId]=t}},Pi=class{convertPaginatedToc(t,e){return new Ts(t,e).build()}};var BA=Qd(Cd(),1);var Ad;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})(Ad||(Ad={}));var Rd;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(Rd||(Rd={}));var _d;(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"})(_d||(_d={}));var Nd;(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.HEADER="HEADER",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT"})(Nd||(Nd={}));var Td;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(Td||(Td={}));var Id;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(Id||(Id={}));var Pd;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(Pd||(Pd={}));var _e;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(_e||(_e={}));var $d;(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"})($d||($d={}));var kd;(function(r){r.ASC="ASC",r.DESC="DESC"})(kd||(kd={}));var Ld;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(Ld||(Ld={}));var Dd;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(Dd||(Dd={}));var Md;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(Md||(Md={}));var Ud;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(Ud||(Ud={}));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 Fd;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(Fd||(Fd={}));var zd;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS"})(zd||(zd={}));var lt;(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"})(lt||(lt={}));var Wd;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(Wd||(Wd={}));var Tf={[lt.PERSONAL_BOOK_SHARE_USER]:[lt.PERSONAL_BOOK_USER],[lt.HTML_EXPORT_USER]:[lt.PERSONAL_BOOK_USER],[lt.PDF_EXPORT_USER]:[lt.PERSONAL_BOOK_USER],[lt.KHUB_ADMIN]:[lt.CONTENT_PUBLISHER],[lt.ADMIN]:[lt.KHUB_ADMIN,lt.USERS_ADMIN,lt.PORTAL_ADMIN],[lt.DEVELOPER]:[lt.BETA_USER,lt.DEBUG_USER]};function Hd(r,t){return r===t||(Tf[r]??[]).some(e=>Hd(e,t))}function Or(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=>Hd(o,t))}var $i=class extends pe{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(t,e)))),this.cache.register("ratingSummary",()=>{var t,e;return Or((e=(t=L.getState().session)===null||t===void 0?void 0:t.profile.roles)!==null&&e!==void 0?e:[],"RATING_USER")?this.withMapId(n=>this.fetchMapRating(n)):Promise.resolve()})}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getMapNow(){return this.cache.getNow("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return(e=this.enrichedToc)===null||e===void 0?void 0:e.nodeByTocId[t]}getTocNodeNowByUrl(t){var e,o;let n=this.getMapNow();return n?.prettyUrl==t||`${n?.id}/root`===t?(e=this.enrichedToc)===null||e===void 0?void 0:e.toc[0]:(o=this.enrichedToc)===null||o===void 0?void 0:o.nodeByUrl[t]}async getPage(t){let e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){let e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,()=>this.fetchTopicMetadata(t))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,()=>this.fetchTopicHTMLContent(t))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(t,e){return this.cache.get("document-relatives-"+t+"-"+e.join("-"),()=>this.fetchRelativesForDocument(t,e))}getRelativesForTopicInMap(t,e,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=L.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 Gt.FEEDBACK:return Or(e??[],lt.FEEDBACK_USER);case Gt.RATING:return Or(e??[],lt.RATING_USER)&&o!=null&&o!==_e.NO_RATING;case Gt.PRINT:return Or(e??[],lt.PRINT_USER);case Gt.BOOKMARK:return!!e?.sessionAuthenticated;case Gt.COLLECTIONS:return Or(e??[],lt.COLLECTION_USER);case Gt.PERSONAL_BOOKS:return Or(e??[],lt.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}};var ki=class r extends $i{static async build(t){return new r(new Pi,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 Li=class r{static build(t,e){return new r(wd(t.trim()||"context"),e??ki.build)}loaded(){return An(()=>this._loaded)}constructor(t,e,o){this.store=t,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new ot(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 lo(()=>this.service)}async navigateToTopic(t,e,o){await this.loaded();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){await this.loaded();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._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),(t=this.service)===null||t===void 0||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,e,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))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0}catch(s){this.errorHandler&&!(s instanceof ar)&&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=L.getState().metadataConfiguration)===null||t===void 0?void 0:t.descriptors)!==null&&e!==void 0?e:[];return new so(o,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(t){var e,o,n;await this.loaded();let a=await lo(()=>{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 Vd=P`
|
|
1622
|
-
`;var
|
|
1622
|
+
`}focus(e){var t;(t=this.container)===null||t===void 0||t.focus(e)}click(){var e;(e=this.container)===null||e===void 0||e.click()}confirmSuggestion(){this.dispatchEvent(new ks(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}onKeyDown(e){["Enter"," "].includes(e.key)&&(e.preventDefault(),e.stopPropagation(),this.confirmSuggestion())}};Nt.elementDefinitions={"ft-ripple":X,"ft-typography":ge,"ft-icon":ve};Nt.styles=Nd;Ls([g()],Nt.prototype,"value",void 0);Ls([Z(".ft-text-field-suggestion")],Nt.prototype,"container",void 0);Ls([po()],Nt.prototype,"assignedNodes",void 0);V("ft-text-field")(G);V("ft-text-field-suggestion")(Nt);var Td=r=>Ct.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(e,t){this.mapId=e,this.paginatedToc=t,this.nodeByTocId={},this.nodeByUrl={},this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(e,t,o){return e.flatMap(n=>(n.pageConfiguration&&this.registerPage(this.buildPage(n,o)),n.tocId==null?this.extractPagesToc(n.children,t,o):[{tocId:n.tocId,title:n.title,depth:t,children:this.extractPagesToc(n.children,t+1,n.tocId)}]))}convertNodes(e,t,o){return e.flatMap(n=>{var a,s,l;if(n.tocId==null)return[...this.convertSectionNodes((a=n.pageToc)!==null&&a!==void 0?a:[],t,n.tocId),...this.convertNodes(n.children,t,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:t,parentTocId:o,children:[]};this.register(d);let h=this.convertSectionNodes((l=n.pageToc)!==null&&l!==void 0?l:[],t+1,n.tocId),u=this.convertNodes(n.children,t+1,d.tocId);return d.children=[...h,...u],[d]})}convertSectionNodes(e,t,o){return e.flatMap(n=>{var a;let s=(a=n.prettyUrl)===null||a===void 0?void 0:a.replace(/^\//,""),l={...n,prettyUrl:s,depth:t,parentTocId:o,children:[]};return this.register(l),l.children=this.convertSectionNodes(n.children,t+1,n.tocId),[l]})}buildPage(e,t){var o,n,a,s,l,c;let d={number:this.pages.length+1,title:(o=e.title)!==null&&o!==void 0?o:"",rootTocId:(n=e.tocId)!==null&&n!==void 0?n:"root",toc:((a=e.pageToc)!==null&&a!==void 0?a:[]).map(y=>this.nodeByTocId[y.tocId]),topics:[],hiddenTopics:[],breadcrumb:t?this.buildBreadcrumb(this.nodeByTocId[t]):[]},h=(y,b)=>(b?d.topics:d.hiddenTopics).push(y),u=(l=(s=e.pageConfiguration)===null||s===void 0?void 0:s.parentsVisibility)!==null&&l!==void 0?l:[];return d.breadcrumb.forEach((y,b)=>{h(y,u[b])}),e.tocId&&h(e.tocId,e.pageConfiguration.isVisible),d.topics.push(...this.tocIds((c=e.pageToc)!==null&&c!==void 0?c:[])),d}registerPage(e){for(let t of[...e.topics,...e.hiddenTopics])this.pageByTocId[t]||(this.pageByTocId[t]=e);this.pages.push(e)}tocIds(e){return e.flatMap(t=>[t.tocId,...this.tocIds(t.children)])}buildBreadcrumb(e){let t=[e.tocId];for(;e?.parentTocId;)t.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return t}register(e){e.prettyUrl&&(this.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},Di=class{convertPaginatedToc(e,t){return new Ds(e,t).build()}};var Uf=ap(Pd(),1);var $d;(function(r){r.black="black",r.green="green",r.blue="blue",r.purple="purple",r.red="red",r.orange="orange",r.yellow="yellow"})($d||($d={}));var kd;(function(r){r.OFFICIAL="OFFICIAL",r.PERSONAL="PERSONAL",r.SHARED="SHARED"})(kd||(kd={}));var Ld;(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"})(Ld||(Ld={}));var Dd;(function(r){r.HOMEPAGE="HOMEPAGE",r.CUSTOM="CUSTOM",r.HEADER="HEADER",r.READER="READER",r.TOPIC_TEMPLATE="TOPIC_TEMPLATE",r.SEARCH="SEARCH",r.SEARCH_RESULT="SEARCH_RESULT"})(Dd||(Dd={}));var Md;(function(r){r.CLASSIC="CLASSIC",r.CUSTOM="CUSTOM",r.DESIGNER="DESIGNER"})(Md||(Md={}));var Ud;(function(r){r.AND="AND",r.OR="OR",r.MONOVALUED="MONOVALUED"})(Ud||(Ud={}));var Bd;(function(r){r.NONE="NONE",r.ALPHABET="ALPHABET",r.VERSION="VERSION"})(Bd||(Bd={}));var Tt;(function(r){r.STARS="STARS",r.LIKE="LIKE",r.DICHOTOMOUS="DICHOTOMOUS",r.NO_RATING="NO_RATING"})(Tt||(Tt={}));var Fd;(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"})(Fd||(Fd={}));var zd;(function(r){r.ASC="ASC",r.DESC="DESC"})(zd||(zd={}));var Hd;(function(r){r.ALPHA="ALPHA",r.NATURAL="NATURAL"})(Hd||(Hd={}));var Wd;(function(r){r.EVERYWHERE="EVERYWHERE",r.TITLE_ONLY="TITLE_ONLY",r.NONE="NONE"})(Wd||(Wd={}));var Vd;(function(r){r.ARTICLE="ARTICLE",r.BOOK="BOOK",r.SHARED_BOOK="SHARED_BOOK"})(Vd||(Vd={}));var jd;(function(r){r.FLUIDTOPICS="FLUIDTOPICS",r.EXTERNAL="EXTERNAL"})(jd||(jd={}));var Kd;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC",r.PERSONAL_BOOK="PERSONAL_BOOK",r.SHARED_BOOK="SHARED_BOOK"})(Kd||(Kd={}));var Gd;(function(r){r.MAP="MAP",r.DOCUMENT="DOCUMENT",r.TOPIC="TOPIC"})(Gd||(Gd={}));var Zd;(function(r){r.DEFAULT="DEFAULT",r.DOCUMENTS="DOCUMENTS",r.ALL_TOPICS="ALL_TOPICS"})(Zd||(Zd={}));var pe;(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"})(pe||(pe={}));var qd;(function(r){r.VALID="VALID",r.INVALID="INVALID"})(qd||(qd={}));var Mf={[pe.PERSONAL_BOOK_SHARE_USER]:[pe.PERSONAL_BOOK_USER],[pe.HTML_EXPORT_USER]:[pe.PERSONAL_BOOK_USER],[pe.PDF_EXPORT_USER]:[pe.PERSONAL_BOOK_USER],[pe.KHUB_ADMIN]:[pe.CONTENT_PUBLISHER],[pe.ADMIN]:[pe.KHUB_ADMIN,pe.USERS_ADMIN,pe.PORTAL_ADMIN],[pe.DEVELOPER]:[pe.BETA_USER,pe.DEBUG_USER]};function Yd(r,e){return r===e||(Mf[r]??[]).some(t=>Yd(t,e))}function Ar(r,e){return r==null?!1:(Array.isArray(r)?r:Array.isArray(r.roles)?r.roles:Array.isArray(r.profile?.roles)?r.profile.roles:[]).some(o=>Yd(o,e))}var Bi=class extends ft{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,t,o){super(!1,t),this.converter=e,this._mapId=o,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register("enrichedToc",()=>this.withMapId(e=>this.fetchPages(e).then(t=>this.converter.convertPaginatedToc(e,t)))),this.cache.register("ratingSummary",()=>{var e,t;return Ar((t=(e=L.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&t!==void 0?t:[],"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(e){return(await this.getEnrichedToc()).nodeByTocId[e]}getTocNodeNow(e){var t;return(t=this.enrichedToc)===null||t===void 0?void 0:t.nodeByTocId[e]}getTocNodeNowByUrl(e){var t,o;let n=this.getMapNow();return n?.prettyUrl==e||`${n?.id}/root`===e?(t=this.enrichedToc)===null||t===void 0?void 0:t.toc[0]:(o=this.enrichedToc)===null||o===void 0?void 0:o.nodeByUrl[e]}async getPage(e){let t=await this.getEnrichedToc();return t.pages[e-1]||t.pages[0]}async getPageByTocId(e){let t=await this.getEnrichedToc();return t.pageByTocId[e]||t.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}getRelativesForDocument(e,t){return this.cache.get("document-relatives-"+e+"-"+t.join("-"),()=>this.fetchRelativesForDocument(e,t))}getRelativesForTopicInMap(e,t,o){return this.cache.get("topic-relatives-"+[e,t,...o].join("-"),()=>this.fetchRelativesForTopicInMap(e,t,o))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true`)}getLink(e,t,o){let n=this.getNavigationData(e,t,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(e,t,o){var n,a;e=e||"root";let s=this.enrichedToc,l=s?.pageByTocId[e],c=s?.nodeByTocId[e],d=c?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(n=c?.title)!==null&&n!==void 0?n:"",page:t&&l&&l.number!==t?t:void 0,prettyUrl:d?.replace(/^r\//,""),prettyUrlDuplicated:(a=s?.duplicatedPrettyUrls.has(d??""))!==null&&a!==void 0?a:!1,section:o}}async getAccurateNavigationData(e,t,o){return await this.getEnrichedToc(),this.getNavigationData(e,t,o)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(t=>{var o;return t?{type:t.topics.type,rating:(o=t.topics)===null||o===void 0?void 0:o.ratings.find(n=>n.tocId===e)}:void 0})}rateMap(e,t){return this.makeRateMapRequest(e,t).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,t){return this.makeMapFeedbackRequest(e,t)}rateTopic(e,t,o){return this.makeRateTopicRequest(e,t,o).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=L.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,t,o){return this.makeTopicFeedbackRequest(e,t,o)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e){let t=this.getTocNodeNow(e),o=[{tocId:t.tocId,title:t.title}],n=this.getTocNodeNow(t.parentTocId);for(;n;)o.unshift({tocId:n.tocId,title:n.title}),n=this.getTocNodeNow(n.parentTocId);return o}isFeatureAccessible(e,{session:t,ratingType:o}){var n;if(!this.isFeatureAvailable(e))return!1;switch(e){case qe.FEEDBACK:return Ar(t??[],pe.FEEDBACK_USER);case qe.RATING:return Ar(t??[],pe.RATING_USER)&&o!=null&&o!==Tt.NO_RATING;case qe.PRINT:return Ar(t??[],pe.PRINT_USER);case qe.BOOKMARK:return!!t?.sessionAuthenticated;case qe.COLLECTIONS:return Ar(t??[],pe.COLLECTION_USER);case qe.PERSONAL_BOOKS:return Ar(t??[],pe.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var Fi=class r extends Bi{static async build(e){return new r(new Di,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e){let t=await this.api.getMap(e);return this.fingerprint=t.fingerprint,t}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e){return await this.getMap(),this.api.getPages(e,this.fingerprint)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,t){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:t,key:e}],sort:[],facets:[]})}fetchRelativesForTopicInMap(e,t,o){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:o,key:t},{negative:!1,values:[e],key:"ft:publicationId"}],sort:[],facets:[]})}makeMapFeedbackRequest(e,t){return this.api.sendMapFeedback(this.mapId,e,t)}makeRateMapRequest(e,t){return this.api.rateMap(this.mapId,e,t)}makeRateTopicRequest(e,t,o){return this.api.rateTopic(this.mapId,e,t,o)}makeTopicFeedbackRequest(e,t,o){return this.api.sendTopicFeedback(this.mapId,e,t,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var zi=class r{static build(e,t){return new r(Td(e.trim()||"context"),t??Fi.build)}loaded(){return Pn(()=>this._loaded)}constructor(e,t,o){this.store=e,this.clusteringHelperProvider=o,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new ae(10),this.initService(t)}async initService(e){return this.service=await e(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return fo(()=>this.service)}async navigateToTopic(e,t,o){await this.loaded();let n=await this.awaitService(),a=await(o!=null?n.getPage(o):n.getPageByTocId(e??"root"));this.store.actions.currentPage(a),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(e,a),section:t})}resolveValidNonRootTocId(e,t){var o,n,a;let s=(o=e==="root"?void 0:e)!==null&&o!==void 0?o:t.rootTocId;return t.topics.includes(s)?s:(a=(n=t.topics[0])!==null&&n!==void 0?n:t.hiddenTopics[0])!==null&&a!==void 0?a:"root"}async navigateToPage(e){await this.loaded();let o=await(await this.awaitService()).getPage(e);this.store.actions.currentPage(o)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData())}clear(){var e;this._loaded=!1,this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var e,t,o,n,a;try{await Promise.all([(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(s=>this.store.actions.configuration(s)),(t=this.service)===null||t===void 0?void 0:t.getMap().then(s=>this.store.actions.map(s)),(o=this.service)===null||o===void 0?void 0:o.getToc().then(s=>this.store.actions.toc(s)),(n=this.service)===null||n===void 0?void 0:n.getPagesToc().then(s=>this.store.actions.pagesToc(s)),(a=this.service)===null||a===void 0?void 0:a.getPaginationConfiguration().then(s=>this.store.actions.paginationConfiguration(s))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0}catch(s){this.errorHandler&&!(s instanceof dr)&&this.errorHandler(s)}}fetchRelatives(){var e,t,o;let n=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);n!==void 0&&n.length>0?(t=this.service)===null||t===void 0||t.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 e,t;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=(t=(e=L.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&t!==void 0?t:[];return new uo(o,n,this.metadataForSwitchToRelatives,a)}}async navigateToRelativeTopicIfFound(e){var t,o,n;await this.loaded();let a=await fo(()=>{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,[e]);if(!((n=(o=(t=c?.results)===null||t===void 0?void 0:t[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(e){this.store.actions.searchInDocumentQuery(e)}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}};var Xd=I`
|
|
1623
|
+
`;var Hi=class extends CustomEvent{constructor(e,t){super("ft-reader-map-loaded",{detail:{map:e,toc:t}})}},Wi=class extends CustomEvent{constructor(e,t){super("ft-reader-visible-topics-change",{detail:{visibleTopics:t}})}},Vi=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},ji=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},Ki=class extends Event{constructor(){super("ft-reader-map-not-found")}},Gi=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},Zi=class extends Event{constructor(){super("ft-reader-map-forbidden")}},qi=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var He=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Bf=r=>e=>+(e??"NaN")>0?+e:r,Oe=class extends Ge{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new ae(5),this.navigationDebouncer=new ae(10),this.mapLoadedEventDebouncer=new ae(50),this.addStore(L)}render(){return P`
|
|
1623
1624
|
${this.importStyleIfNeeded()}
|
|
1624
1625
|
<slot @register-ft-reader-component=${this.registerComponent}></slot>
|
|
1625
|
-
`}importStyleIfNeeded(){var t
|
|
1626
|
+
`}importStyleIfNeeded(){var e,t;let o=(e=this.stateManager.service)===null||e===void 0?void 0:e.themeStylesheet();return!o||window.location.href.startsWith((t=this.baseUrl)!==null&&t!==void 0?t:"")?F:P`
|
|
1626
1627
|
<style>
|
|
1627
1628
|
@import "${o}"
|
|
1628
1629
|
</style>
|
|
1629
|
-
`}get stateManager(){return this._stateManager==null&&(this._stateManager=
|
|
1630
|
+
`}get stateManager(){return this._stateManager==null&&(this._stateManager=zi.build(this.id||(""+Math.round(Math.random()*999e3)).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(e=>{let t=e.fontsStylesheet();if(t&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${t}"]`)){let o=document.createElement("link");o.setAttribute("rel","stylesheet"),o.setAttribute("href",t),document.head.append(o)}})}update(e){super.update(e),e.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),e.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),e.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(t=>e.has(t))&&this.mapId&&this.navigateToTarget(),e.has("session")&&this.reload()}contentAvailableCallback(e){var t;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((t=this.scrollTarget)===null||t===void 0?void 0:t.tocId)==null){let o=e.get("scrollTarget");o?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>{var 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 Vi(a)))})}e.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 Wi(this.map,n))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload()}async navigateToTarget(){await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new qi),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)})}registerComponent(e){e.stopPropagation();let t=e.composedPath()[0];this.register(t)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let t=e;t.status===401?this.dispatchEvent(new Gi):t.status===403?this.dispatchEvent(new Zi):t.status===404?this.dispatchEvent(new Ki):this.dispatchEvent(new ji(e))}reloadBookmarks(){Cd.reloadBookmarks()}async reloadRating(){var e,t;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(t=this.stateManager.store)===null||t===void 0||t.eventBus.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new Hi(this.map,this.toc))})}};Oe.styles=Xd;He([le({store:L.name})],Oe.prototype,"baseUrl",void 0);He([le({store:L.name})],Oe.prototype,"session",void 0);He([g()],Oe.prototype,"mapId",void 0);He([g()],Oe.prototype,"tocId",void 0);He([g()],Oe.prototype,"section",void 0);He([g()],Oe.prototype,"topicPivot",void 0);He([g()],Oe.prototype,"searchInDocumentQuery",void 0);He([g({type:Number,converter:{fromAttribute:Bf()}})],Oe.prototype,"page",void 0);He([le({store:"reader"})],Oe.prototype,"map",void 0);He([le({store:"reader"})],Oe.prototype,"toc",void 0);He([le({store:"reader"})],Oe.prototype,"visibleTopics",void 0);He([le({store:"reader"})],Oe.prototype,"currentPage",void 0);He([le({store:"reader"})],Oe.prototype,"scrollTarget",void 0);He([g({attribute:!1})],Oe.prototype,"readerServiceProvider",void 0);V("ft-reader-context")(Oe);var Yi=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}},Xi=class extends CustomEvent{constructor(e){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:e})}},Ji=class extends CustomEvent{constructor(e){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:e})}},Qi=class extends CustomEvent{constructor(e){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:e}})}},en=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var Ee=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},re=class extends Zt(Wt){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(q,Rd)}get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(qe.FEEDBACK,{session:this.session})}get canAccessRating(){var e,t;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(qe.RATING,{session:this.session,ratingType:(t=this.ratingSummary)===null||t===void 0?void 0:t.type})}get configuredRatingType(){var e,t;return(t=this.ratingAllowed?(e=this.ratingSummary)===null||e===void 0?void 0:e.type:"NO_RATING")!==null&&t!==void 0?t:"NO_RATING"}get ratingType(){var e,t,o;return(o=(t=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||t===void 0?void 0:t.type)!==null&&o!==void 0?o:"NO_RATING"}get ratingValue(){var e,t,o;return(o=(t=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||t===void 0?void 0:t.value)!==null&&o!==void 0?o:-1}get ratingDate(){var e,t;let o=(t=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||t===void 0?void 0:t.date;return typeof o=="string"?si(o):o}render(){return!this.canAccessFeedback&&!this.canAccessRating?F:P`
|
|
1630
1631
|
<div class="ft-reader-feedback">
|
|
1631
|
-
${this.hideTitle?
|
|
1632
|
+
${this.hideTitle?F:P`
|
|
1632
1633
|
<ft-typography variant="title" part="main-title">
|
|
1633
1634
|
${this.i18n(this.i18nProperties.feedbackMainTitle)}
|
|
1634
1635
|
</ft-typography>
|
|
@@ -1636,7 +1637,7 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1636
1637
|
${this.renderRatingSection()}
|
|
1637
1638
|
${this.renderFeedbackSection()}
|
|
1638
1639
|
</div>
|
|
1639
|
-
`}renderRatingSection(){return this.canAccessRating
|
|
1640
|
+
`}renderRatingSection(){return this.canAccessRating?P`
|
|
1640
1641
|
<div class="ft-reader-feedback--rating" part="rating-container">
|
|
1641
1642
|
<ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
|
|
1642
1643
|
${this.i18n(this.ratingSummary.type==="DICHOTOMOUS"?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
|
|
@@ -1646,9 +1647,9 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1646
1647
|
${this.renderRatingDate()}
|
|
1647
1648
|
</ft-typography>
|
|
1648
1649
|
</div>
|
|
1649
|
-
`:
|
|
1650
|
+
`:F}renderRatingDate(){let e=this.ratingDate;if(e==null)return q.messages.notRated();if(e.getTime()>new Date().getTime()-6e4)return q.messages.ratedNow();let t=new Date().toLocaleDateString(),o=e.toLocaleDateString();return t===o?q.messages.ratedToday():q.messages.ratedOn(e)}renderRating(){switch(this.configuredRatingType){case"STARS":return P`
|
|
1650
1651
|
<div class="ft-reader-feedback--stars" part="rating rating-stars">
|
|
1651
|
-
${
|
|
1652
|
+
${Sn(new Array(5),(a,s)=>s,(a,s)=>{let l=this.ratingType==="STARS"&&this.ratingValue>s,c=s+1;return P`
|
|
1652
1653
|
<ft-button round part="rating-stars-${c}"
|
|
1653
1654
|
label="${q.messages.starsRating(c)}"
|
|
1654
1655
|
tooltipPosition="top"
|
|
@@ -1659,24 +1660,24 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1659
1660
|
></ft-button>
|
|
1660
1661
|
`})}
|
|
1661
1662
|
</div>
|
|
1662
|
-
`;case"LIKE":let
|
|
1663
|
+
`;case"LIKE":let e=this.ratingType==="LIKE"&&this.ratingValue===0,t=this.ratingType==="LIKE"&&this.ratingValue===1;return P`
|
|
1663
1664
|
<ft-switch unselectable
|
|
1664
1665
|
@change=${a=>this.rate(a.detail)}
|
|
1665
1666
|
part="rating rating-like">
|
|
1666
1667
|
<ft-switch-option .value=${1}
|
|
1667
|
-
?selected=${
|
|
1668
|
+
?selected=${t}
|
|
1668
1669
|
.iconVariant=${this.iconVariant}
|
|
1669
|
-
icon="${
|
|
1670
|
+
icon="${t?this.filledLikeIcon:this.emptyLikeIcon}">
|
|
1670
1671
|
${q.messages.like()}
|
|
1671
1672
|
</ft-switch-option>
|
|
1672
1673
|
<ft-switch-option .value=${0}
|
|
1673
|
-
?selected=${
|
|
1674
|
+
?selected=${e}
|
|
1674
1675
|
.iconVariant=${this.iconVariant}
|
|
1675
|
-
icon="${
|
|
1676
|
+
icon="${e?this.filledDislikeIcon:this.emptyDislikeIcon}">
|
|
1676
1677
|
${q.messages.dislike()}
|
|
1677
1678
|
</ft-switch-option>
|
|
1678
1679
|
</ft-switch>
|
|
1679
|
-
`;case"DICHOTOMOUS":let o=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===0,n=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===1;return
|
|
1680
|
+
`;case"DICHOTOMOUS":let o=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===0,n=this.ratingType==="DICHOTOMOUS"&&this.ratingValue===1;return P`
|
|
1680
1681
|
<ft-switch unselectable
|
|
1681
1682
|
@change=${a=>this.rate(a.detail)}
|
|
1682
1683
|
part="rating rating-dichotomous">
|
|
@@ -1689,7 +1690,7 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1689
1690
|
${q.messages.dichotomousNo()}
|
|
1690
1691
|
</ft-switch-option>
|
|
1691
1692
|
</ft-switch>
|
|
1692
|
-
`}return
|
|
1693
|
+
`}return F}rate(e){(e??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:e}))}renderFeedbackSection(){var e,t,o,n,a;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),l=P`
|
|
1693
1694
|
<ft-button primary
|
|
1694
1695
|
type="submit" name="submit"
|
|
1695
1696
|
class="ft-reader-feedback--send-feedback"
|
|
@@ -1697,11 +1698,11 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1697
1698
|
part="send-feedback">
|
|
1698
1699
|
${q.messages.okButton()}
|
|
1699
1700
|
</ft-button>
|
|
1700
|
-
`;s&&(l
|
|
1701
|
+
`;s&&(l=P`
|
|
1701
1702
|
<a class="ft-reader-feedback--feedback-link" href="${s}">
|
|
1702
1703
|
${l}
|
|
1703
1704
|
</a>
|
|
1704
|
-
`);let c=this.withMoreOptionsButton&&(!((
|
|
1705
|
+
`);let c=this.withMoreOptionsButton&&(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics||!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopicsForUnauthenticatedUsers)?P`
|
|
1705
1706
|
<ft-button outlined
|
|
1706
1707
|
type="button" name="more-options"
|
|
1707
1708
|
class="ft-reader-feedback--more-options"
|
|
@@ -1709,13 +1710,13 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1709
1710
|
part="more-options">
|
|
1710
1711
|
${q.messages.moreOptionsButton()}
|
|
1711
1712
|
</ft-button>
|
|
1712
|
-
`:
|
|
1713
|
+
`:F;return P`
|
|
1713
1714
|
<form class="ft-reader-feedback--feedback" part="feedback-container" autocomplete="on"
|
|
1714
1715
|
@submit="${d=>this.onFormSubmitEvent(d,!!s)}">
|
|
1715
1716
|
<ft-typography variant="title-dense" part="section-title" class="ft-reader-feedback--section-title">
|
|
1716
1717
|
${this.i18n(this.i18nProperties.feedbackSectionTitle)}
|
|
1717
1718
|
</ft-typography>
|
|
1718
|
-
${((n=(o=this.session)===null||o===void 0?void 0:o.profile)===null||n===void 0?void 0:n.userId)==null&&(!((a=this.configuration)===null||a===void 0)&&a.mailsSentByFluidTopicsForUnauthenticatedUsers)
|
|
1719
|
+
${((n=(o=this.session)===null||o===void 0?void 0:o.profile)===null||n===void 0?void 0:n.userId)==null&&(!((a=this.configuration)===null||a===void 0)&&a.mailsSentByFluidTopicsForUnauthenticatedUsers)?P`
|
|
1719
1720
|
<ft-text-field outlined name="email" type="email" autocomplete="email"
|
|
1720
1721
|
class="ft-reader-feedback--from-input"
|
|
1721
1722
|
label=${q.messages.feedbackfromEmail()}
|
|
@@ -1723,7 +1724,7 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1723
1724
|
?error=${this.from&&!this.validFromEmail()}
|
|
1724
1725
|
helper=${this.from&&!this.validFromEmail()?q.messages.feedbackfromEmailInvalid():""}
|
|
1725
1726
|
/>
|
|
1726
|
-
`:
|
|
1727
|
+
`:F}
|
|
1727
1728
|
<ft-text-area outlined
|
|
1728
1729
|
class="ft-reader-feedback--feedback-input" part="feedback-input"
|
|
1729
1730
|
label="${q.messages.feedbackInputLabel()}"
|
|
@@ -1734,15 +1735,15 @@ Also for action icons.`,p.colorGray200),contentGlobalSubtle:i.extend("--ft-conte
|
|
|
1734
1735
|
${l}
|
|
1735
1736
|
</div>
|
|
1736
1737
|
</form>
|
|
1737
|
-
`}return
|
|
1738
|
+
`}return F}onFormSubmitEvent(e,t){e.preventDefault(),t?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var e,t,o;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((t=(e=this.session)===null||e===void 0?void 0:e.profile)===null||t===void 0?void 0:t.userId)==null&&(!((o=this.configuration)===null||o===void 0)&&o.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var e;this.dispatchEvent(new Yi({message:this.feedbackInput.value,...((e=this.configuration)===null||e===void 0?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.value="",0)}};re.elementDefinitions={"ft-button":rt,"ft-typography":ge,"ft-switch":Ke,"ft-switch-option":xe,"ft-text-area":Ae,"ft-text-field":G};re.styles=cd;Ee([g({type:Boolean})],re.prototype,"editorMode",void 0);Ee([g({type:Boolean})],re.prototype,"hideTitle",void 0);Ee([g({type:Boolean})],re.prototype,"withMoreOptionsButton",void 0);Ee([g({type:Boolean})],re.prototype,"ratingAllowed",void 0);Ee([g({attribute:!1})],re.prototype,"i18nProperties",void 0);Ee([g({attribute:!1})],re.prototype,"ratingSummary",void 0);Ee([g({attribute:!1})],re.prototype,"session",void 0);Ee([Z(".ft-reader-feedback--feedback-input")],re.prototype,"feedbackInput",void 0);Ee([W()],re.prototype,"from",void 0);Ee([W()],re.prototype,"feedbackMessage",void 0);Ee([g()],re.prototype,"iconVariant",void 0);Ee([g()],re.prototype,"emptyStarIcon",void 0);Ee([g()],re.prototype,"filledStarIcon",void 0);Ee([g()],re.prototype,"emptyLikeIcon",void 0);Ee([g()],re.prototype,"filledLikeIcon",void 0);Ee([g()],re.prototype,"emptyDislikeIcon",void 0);Ee([g()],re.prototype,"filledDislikeIcon",void 0);Ee([le({store:"reader",selector:r=>{var e;return(e=r.configuration)===null||e===void 0?void 0:e.feedback}})],re.prototype,"configuration",void 0);Ee([g()],re.prototype,"feedbackMailLinkBuilder",void 0);var qr=qt.fromGwt("server");var Yr=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(e,t,o,n,a){var s;this.subject=e,this.url=t,this.configuration=n,this.isAuthenticated=a,this.subjectMetadata=this.filterMetadata(o,n.subjectMetadataIds).map(l=>"["+l.values[l.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(o,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(l=>"["+l.values.join(", ")+"]").join(" ")}filterMetadata(e,t){return t.map(o=>e.find(n=>n.key===o)).filter(o=>o!=null&&o.values.length>0)}shouldUseMailer(){var e,t;let o=this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopicsForUnauthenticatedUsers);return o||n}build(e){var t;if(e!=null&&e.length===0||!this.shouldUseMailer())return;let o=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
|
|
1738
1739
|
${this.bodyMetadata}
|
|
1739
1740
|
${this.url}
|
|
1740
1741
|
_________________________________________________________________
|
|
1741
1742
|
|
|
1742
|
-
${
|
|
1743
|
+
${e??""}
|
|
1743
1744
|
|
|
1744
1745
|
_________________________________________________________________
|
|
1745
|
-
${
|
|
1746
|
+
${qr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(t=this.configuration)===null||t===void 0?void 0:t.recipients.join(",")}?subject=${o}&body=${n}`}};var Xt=qt.build("inDesignerFeedbackComponent"),tn={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Re=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},fe=class extends Zt(Wt){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Te.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 Yr,this.i18nProperties={feedbackMainTitle:q.properties.mapFeedbackMainTitle(),ratingSectionTitle:q.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:q.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:q.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new ae(100),this.sendRatingDebouncer=new ae(500),this.addStore(L)}render(){return P`
|
|
1746
1747
|
<ft-reader-feedback
|
|
1747
1748
|
ratingAllowed
|
|
1748
1749
|
.i18nProperties=${this.i18nProperties}
|
|
@@ -1758,16 +1759,16 @@ ${Vr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(e=this.configura
|
|
|
1758
1759
|
.filledLikeIcon=${this.filledLikeIcon}
|
|
1759
1760
|
.emptyDislikeIcon=${this.emptyDislikeIcon}
|
|
1760
1761
|
.filledDislikeIcon=${this.filledDislikeIcon}
|
|
1761
|
-
.feedbackMailLinkBuilder=${
|
|
1762
|
+
.feedbackMailLinkBuilder=${e=>this.feedbackLinkBuilder.build(e)}
|
|
1762
1763
|
@rate=${this.rate}
|
|
1763
1764
|
@send-feedback=${this.sendFeedback}
|
|
1764
1765
|
@mailer-feedback=${this.onMailerFeedbackSent}
|
|
1765
1766
|
@open-more-options=${this.openMoreOptions}
|
|
1766
1767
|
></ft-reader-feedback>
|
|
1767
|
-
`}update(
|
|
1768
|
+
`}update(e){var t,o,n,a;super.update(e),e.has("map")&&this.map&&this.updateData(),e.has("editorMode")&&this.editorMode&&this.addI18nContext(Xt,tn),["map","configuration","user","mailSubject"].some(s=>e.has(s))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(o=(t=this.service)===null||t===void 0?void 0:t.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(e){super.onStoreAvailable(e),this.updateData()}updateData(){this.updateDebouncer.run(async()=>{var e,t;this.map&&(!((t=(e=this.session)===null||e===void 0?void 0:e.profile)===null||t===void 0)&&t.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var e;this.ratingSummary=await((e=this.service)===null||e===void 0?void 0:e.getMapRating())}rate(e){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{type:this.ratingSummary.type,value:e.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var t,o,n;if(!this.editorMode&&this.ratingSummary){try{e==null?await((t=this.service)===null||t===void 0?void 0:t.unrateMap()):await((o=this.service)===null||o===void 0?void 0:o.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new $e({type:"error",message:q.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new $e({type:"info",message:Xt.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var t;try{this.editorMode?this.dispatchEvent(new $e({type:"info",message:Xt.messages.feedbackAndRatingDisabledInEditor()})):(await((t=this.service)===null||t===void 0?void 0:t.sendMapFeedback(e.detail.message,e.detail.from)),this.dispatchEvent(new $e({type:"info",message:q.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new $e({type:"error",message:q.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new en)}openMoreOptions(){var e,t,o;this.dispatchEvent(new Ji({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((e=this.map)===null||e===void 0?void 0:e.metadata)||[],ratingType:((t=this.ratingSummary)===null||t===void 0?void 0:t.type)||Tt.NO_RATING,ratingValue:(o=this.ratingSummary)===null||o===void 0?void 0:o.rating}))}};fe.elementDefinitions={"ft-reader-feedback":re};Re([le({store:L.name})],fe.prototype,"session",void 0);Re([le({store:"reader"})],fe.prototype,"map",void 0);Re([le({store:L.name})],fe.prototype,"editorMode",void 0);Re([le({store:"reader",selector:r=>{var e;return(e=r.configuration)===null||e===void 0?void 0:e.feedback}})],fe.prototype,"configuration",void 0);Re([W()],fe.prototype,"ratingSummary",void 0);Re([g({type:Boolean})],fe.prototype,"hideTitle",void 0);Re([g({type:Boolean})],fe.prototype,"withMoreOptionsButton",void 0);Re([g()],fe.prototype,"iconVariant",void 0);Re([g()],fe.prototype,"emptyStarIcon",void 0);Re([g()],fe.prototype,"filledStarIcon",void 0);Re([g()],fe.prototype,"emptyLikeIcon",void 0);Re([g()],fe.prototype,"filledLikeIcon",void 0);Re([g()],fe.prototype,"emptyDislikeIcon",void 0);Re([g()],fe.prototype,"filledDislikeIcon",void 0);Re([Z("ft-reader-feedback")],fe.prototype,"readerFeedback",void 0);Re([Li(qr.properties["mail.map_feedback.subject"](r=>{var e;return[(e=r.map)===null||e===void 0?void 0:e.title]}))],fe.prototype,"mailSubject",void 0);Re([Co({eventName:"rating-changed"})],fe.prototype,"fetchRatingSummary",null);var Jd=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},Us=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},Ms=Symbol("registerInterval");function Ff(r){var e;class t extends r{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[Ms]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[Ms]):this.dispatchEvent(new Us)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=Ms,Jd([W()],t.prototype,"tocNode",void 0),Jd([W()],t.prototype,"disableContextInteractions",void 0),t}var rn=class extends Ff(Wt){};var _e=function(r,e,t,o){var n=arguments.length,a=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,o);else for(var l=r.length-1;l>=0;l--)(s=r[l])&&(a=(n<3?s(a):n>3?s(e,t,a):s(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a},he=class extends Zt(rn){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Te.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 Yr,this.i18nProperties={feedbackMainTitle:q.properties.topicFeedbackMainTitle(),ratingSectionTitle:q.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:q.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:q.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new ae(100),this.sendRatingDebouncer=new ae(500),this.addStore(L)}render(){var e;return P`
|
|
1768
1769
|
<ft-reader-feedback
|
|
1769
1770
|
.i18nProperties=${this.i18nProperties}
|
|
1770
|
-
?ratingAllowed=${(
|
|
1771
|
+
?ratingAllowed=${(e=this.tocNode)===null||e===void 0?void 0:e.hasRating}
|
|
1771
1772
|
.editorMode=${this.editorMode}
|
|
1772
1773
|
?hideTitle=${this.hideTitle}
|
|
1773
1774
|
?withMoreOptionsButton=${this.withMoreOptionsButton}
|
|
@@ -1780,13 +1781,13 @@ ${Vr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(e=this.configura
|
|
|
1780
1781
|
.filledLikeIcon=${this.filledLikeIcon}
|
|
1781
1782
|
.emptyDislikeIcon=${this.emptyDislikeIcon}
|
|
1782
1783
|
.filledDislikeIcon=${this.filledDislikeIcon}
|
|
1783
|
-
.feedbackMailLinkBuilder=${
|
|
1784
|
+
.feedbackMailLinkBuilder=${t=>this.feedbackLinkBuilder.build(t)}
|
|
1784
1785
|
@rate=${this.rate}
|
|
1785
1786
|
@send-feedback=${this.sendFeedback}
|
|
1786
1787
|
@mailer-feedback=${this.onMailerFeedbackSent}
|
|
1787
1788
|
@open-more-options=${this.openMoreOptions}
|
|
1788
1789
|
></ft-reader-feedback>
|
|
1789
|
-
`}update(
|
|
1790
|
+
`}update(e){var t,o,n,a;super.update(e),["tocNode","user"].some(s=>e.has(s))&&this.tocNode&&this.updateData(),e.has("editorMode")&&this.editorMode&&this.addI18nContext(Xt,tn),["map","tocNode","configuration","user","mailSubject"].some(s=>e.has(s))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(o=(t=this.service)===null||t===void 0?void 0:t.getLink(this.tocNode.tocId))!==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()}updateData(){this.updateDebouncer.run(async()=>{var e,t;this.tocNode&&(!((t=(e=this.session)===null||e===void 0?void 0:e.profile)===null||t===void 0)&&t.userId||this.ratingSummary==null)&&await this.fetchRatingSummary()})}async fetchRatingSummary(){var e;this.ratingSummary=await((e=this.service)===null||e===void 0?void 0:e.getTopicRating(this.tocNode.tocId))}rate(e){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:e.detail,date:new Date}},this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var t,o,n;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{e==null?await((t=this.service)===null||t===void 0?void 0:t.unrateTopic(this.tocNode.tocId)):await((o=this.service)===null||o===void 0?void 0:o.rateTopic(this.tocNode.tocId,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new $e({type:"error",message:q.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new $e({type:"info",message:Xt.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(e){var t;try{!this.editorMode&&this.tocNode?(await((t=this.service)===null||t===void 0?void 0:t.sendTopicFeedback(this.tocNode.tocId,e.detail.message,e.detail.from)),this.dispatchEvent(new $e({type:"info",message:q.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new $e({type:"info",message:Xt.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new $e({type:"error",message:q.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let e=this.tocNode;this.dispatchEvent(new Qi(e))}openMoreOptions(){var e,t,o,n,a,s,l,c;this.dispatchEvent(new Xi({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(t=(e=this.service)===null||e===void 0?void 0:e.getLink(this.tocNode.tocId))!==null&&t!==void 0?t:"",mapMetadata:((o=this.map)===null||o===void 0?void 0:o.metadata)||[],breadcrumb:((a=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||a===void 0?void 0:a.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((s=this.tocNode)===null||s===void 0)&&s.hasRating?(l=this.ratingSummary)===null||l===void 0?void 0:l.type:Tt.NO_RATING)||Tt.NO_RATING,ratingValue:(c=this.ratingSummary)===null||c===void 0?void 0:c.rating}))}};he.elementDefinitions={"ft-reader-feedback":re};_e([le({store:L.name})],he.prototype,"session",void 0);_e([le({store:"reader"})],he.prototype,"map",void 0);_e([le({store:L.name})],he.prototype,"editorMode",void 0);_e([le({store:"reader",selector:r=>{var e;return(e=r.configuration)===null||e===void 0?void 0:e.feedback}})],he.prototype,"configuration",void 0);_e([W()],he.prototype,"ratingSummary",void 0);_e([g({type:Boolean})],he.prototype,"hideTitle",void 0);_e([g({type:Boolean})],he.prototype,"withMoreOptionsButton",void 0);_e([g()],he.prototype,"iconVariant",void 0);_e([g()],he.prototype,"emptyStarIcon",void 0);_e([g()],he.prototype,"filledStarIcon",void 0);_e([g()],he.prototype,"emptyLikeIcon",void 0);_e([g()],he.prototype,"filledLikeIcon",void 0);_e([g()],he.prototype,"emptyDislikeIcon",void 0);_e([g()],he.prototype,"filledDislikeIcon",void 0);_e([Z("ft-reader-feedback")],he.prototype,"readerFeedback",void 0);_e([Li(qr.properties["mail.feedback.subject"](r=>{var e,t;return[(e=r.tocNode)===null||e===void 0?void 0:e.title,(t=r.map)===null||t===void 0?void 0:t.title]}))],he.prototype,"mailSubject",void 0);_e([Co({eventName:"rating-changed"})],he.prototype,"fetchRatingSummary",null);V("ft-reader-map-feedback")(fe);V("ft-reader-topic-feedback")(he);})();
|
|
1790
1791
|
/*! Bundled license information:
|
|
1791
1792
|
|
|
1792
1793
|
@webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js:
|