@fluid-topics/ft-modal 1.1.116
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/README.md +34 -0
- package/build/FtDsModalMessages.d.ts +6 -0
- package/build/FtDsModalMessages.js +5 -0
- package/build/ft-modal.light.js +1202 -0
- package/build/ft-modal.min.js +1424 -0
- package/build/ftds-modal-confirm.d.ts +17 -0
- package/build/ftds-modal-confirm.js +97 -0
- package/build/ftds-modal.d.ts +19 -0
- package/build/ftds-modal.js +104 -0
- package/build/ftds-modal.properties.d.ts +7 -0
- package/build/ftds-modal.properties.js +2 -0
- package/build/ftds-modal.styles.d.ts +3 -0
- package/build/ftds-modal.styles.js +79 -0
- package/build/index.d.ts +4 -0
- package/build/index.js +9 -0
- package/package.json +29 -0
|
@@ -0,0 +1,1424 @@
|
|
|
1
|
+
"use strict";(()=>{var zl=Object.create;var on=Object.defineProperty;var jl=Object.getOwnPropertyDescriptor;var Vl=Object.getOwnPropertyNames;var Gl=Object.getPrototypeOf,Kl=Object.prototype.hasOwnProperty;var Zl=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),V=(t,e)=>{for(var r in e)on(t,r,{get:e[r],enumerable:!0})},ql=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Vl(e))!Kl.call(t,i)&&i!==r&&on(t,i,{get:()=>e[i],enumerable:!(n=jl(e,i))||n.enumerable});return t};var Yl=(t,e,r)=>(r=t!=null?zl(Gl(t)):{},ql(e||!t||!t.__esModule?on(r,"default",{value:t,enumerable:!0}):r,t));var Dc=Zl((mt,kc)=>{var Ho=typeof globalThis<"u"&&globalThis||typeof self<"u"&&self||typeof global<"u"&&global,zo=function(){function t(){this.fetch=!1,this.DOMException=Ho.DOMException}return t.prototype=Ho,new t}();(function(t){var e=function(r){var n=typeof t<"u"&&t||typeof self<"u"&&self||typeof global<"u"&&global||{},i={searchParams:"URLSearchParams"in n,iterable:"Symbol"in n&&"iterator"in Symbol,blob:"FileReader"in n&&"Blob"in n&&function(){try{return new Blob,!0}catch{return!1}}(),formData:"FormData"in n,arrayBuffer:"ArrayBuffer"in n};function a(y){return y&&DataView.prototype.isPrototypeOf(y)}if(i.arrayBuffer)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],c=ArrayBuffer.isView||function(y){return y&&s.indexOf(Object.prototype.toString.call(y))>-1};function d(y){if(typeof y!="string"&&(y=String(y)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(y)||y==="")throw new TypeError('Invalid character in header field name: "'+y+'"');return y.toLowerCase()}function p(y){return typeof y!="string"&&(y=String(y)),y}function h(y){var v={next:function(){var T=y.shift();return{done:T===void 0,value:T}}};return i.iterable&&(v[Symbol.iterator]=function(){return v}),v}function f(y){this.map={},y instanceof f?y.forEach(function(v,T){this.append(T,v)},this):Array.isArray(y)?y.forEach(function(v){if(v.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+v.length);this.append(v[0],v[1])},this):y&&Object.getOwnPropertyNames(y).forEach(function(v){this.append(v,y[v])},this)}f.prototype.append=function(y,v){y=d(y),v=p(v);var T=this.map[y];this.map[y]=T?T+", "+v:v},f.prototype.delete=function(y){delete this.map[d(y)]},f.prototype.get=function(y){return y=d(y),this.has(y)?this.map[y]:null},f.prototype.has=function(y){return this.map.hasOwnProperty(d(y))},f.prototype.set=function(y,v){this.map[d(y)]=p(v)},f.prototype.forEach=function(y,v){for(var T in this.map)this.map.hasOwnProperty(T)&&y.call(v,this.map[T],T,this)},f.prototype.keys=function(){var y=[];return this.forEach(function(v,T){y.push(T)}),h(y)},f.prototype.values=function(){var y=[];return this.forEach(function(v){y.push(v)}),h(y)},f.prototype.entries=function(){var y=[];return this.forEach(function(v,T){y.push([T,v])}),h(y)},i.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);function m(y){if(!y._noBody){if(y.bodyUsed)return Promise.reject(new TypeError("Already read"));y.bodyUsed=!0}}function b(y){return new Promise(function(v,T){y.onload=function(){v(y.result)},y.onerror=function(){T(y.error)}})}function x(y){var v=new FileReader,T=b(v);return v.readAsArrayBuffer(y),T}function C(y){var v=new FileReader,T=b(v),B=/charset=([A-Za-z0-9_-]+)/.exec(y.type),W=B?B[1]:"utf-8";return v.readAsText(y,W),T}function L(y){for(var v=new Uint8Array(y),T=new Array(v.length),B=0;B<v.length;B++)T[B]=String.fromCharCode(v[B]);return T.join("")}function R(y){if(y.slice)return y.slice(0);var v=new Uint8Array(y.byteLength);return v.set(new Uint8Array(y)),v.buffer}function P(){return this.bodyUsed=!1,this._initBody=function(y){this.bodyUsed=this.bodyUsed,this._bodyInit=y,y?typeof y=="string"?this._bodyText=y:i.blob&&Blob.prototype.isPrototypeOf(y)?this._bodyBlob=y:i.formData&&FormData.prototype.isPrototypeOf(y)?this._bodyFormData=y:i.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)?this._bodyText=y.toString():i.arrayBuffer&&i.blob&&a(y)?(this._bodyArrayBuffer=R(y.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):i.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(y)||c(y))?this._bodyArrayBuffer=R(y):this._bodyText=y=Object.prototype.toString.call(y):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof y=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):i.searchParams&&URLSearchParams.prototype.isPrototypeOf(y)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i.blob&&(this.blob=function(){var y=m(this);if(y)return y;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 y=m(this);return y||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(i.blob)return this.blob().then(x);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var y=m(this);if(y)return y;if(this._bodyBlob)return C(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(L(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i.formData&&(this.formData=function(){return this.text().then($)}),this.json=function(){return this.text().then(JSON.parse)},this}var S=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function O(y){var v=y.toUpperCase();return S.indexOf(v)>-1?v:y}function E(y,v){if(!(this instanceof E))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');v=v||{};var T=v.body;if(y instanceof E){if(y.bodyUsed)throw new TypeError("Already read");this.url=y.url,this.credentials=y.credentials,v.headers||(this.headers=new f(y.headers)),this.method=y.method,this.mode=y.mode,this.signal=y.signal,!T&&y._bodyInit!=null&&(T=y._bodyInit,y.bodyUsed=!0)}else this.url=String(y);if(this.credentials=v.credentials||this.credentials||"same-origin",(v.headers||!this.headers)&&(this.headers=new f(v.headers)),this.method=O(v.method||this.method||"GET"),this.mode=v.mode||this.mode||null,this.signal=v.signal||this.signal||function(){if("AbortController"in n){var U=new AbortController;return U.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&T)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(T),(this.method==="GET"||this.method==="HEAD")&&(v.cache==="no-store"||v.cache==="no-cache")){var B=/([?&])_=[^&]*/;if(B.test(this.url))this.url=this.url.replace(B,"$1_="+new Date().getTime());else{var W=/\?/;this.url+=(W.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}E.prototype.clone=function(){return new E(this,{body:this._bodyInit})};function $(y){var v=new FormData;return y.trim().split("&").forEach(function(T){if(T){var B=T.split("="),W=B.shift().replace(/\+/g," "),U=B.join("=").replace(/\+/g," ");v.append(decodeURIComponent(W),decodeURIComponent(U))}}),v}function F(y){var v=new f,T=y.replace(/\r?\n[\t ]+/g," ");return T.split("\r").map(function(B){return B.indexOf(`
|
|
2
|
+
`)===0?B.substr(1,B.length):B}).forEach(function(B){var W=B.split(":"),U=W.shift().trim();if(U){var ke=W.join(":").trim();try{v.append(U,ke)}catch(mr){console.warn("Response "+mr.message)}}}),v}P.call(E.prototype);function H(y,v){if(!(this instanceof H))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(v||(v={}),this.type="default",this.status=v.status===void 0?200:v.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=v.statusText===void 0?"":""+v.statusText,this.headers=new f(v.headers),this.url=v.url||"",this._initBody(y)}P.call(H.prototype),H.prototype.clone=function(){return new H(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},H.error=function(){var y=new H(null,{status:200,statusText:""});return y.ok=!1,y.status=0,y.type="error",y};var z=[301,302,303,307,308];H.redirect=function(y,v){if(z.indexOf(v)===-1)throw new RangeError("Invalid status code");return new H(null,{status:v,headers:{location:y}})},r.DOMException=n.DOMException;try{new r.DOMException}catch{r.DOMException=function(v,T){this.message=v,this.name=T;var B=Error(v);this.stack=B.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function I(y,v){return new Promise(function(T,B){var W=new E(y,v);if(W.signal&&W.signal.aborted)return B(new r.DOMException("Aborted","AbortError"));var U=new XMLHttpRequest;function ke(){U.abort()}U.onload=function(){var se={statusText:U.statusText,headers:F(U.getAllResponseHeaders()||"")};W.url.indexOf("file://")===0&&(U.status<200||U.status>599)?se.status=200:se.status=U.status,se.url="responseURL"in U?U.responseURL:se.headers.get("X-Request-URL");var bt="response"in U?U.response:U.responseText;setTimeout(function(){T(new H(bt,se))},0)},U.onerror=function(){setTimeout(function(){B(new TypeError("Network request failed"))},0)},U.ontimeout=function(){setTimeout(function(){B(new TypeError("Network request timed out"))},0)},U.onabort=function(){setTimeout(function(){B(new r.DOMException("Aborted","AbortError"))},0)};function mr(se){try{return se===""&&n.location.href?n.location.href:se}catch{return se}}if(U.open(W.method,mr(W.url),!0),W.credentials==="include"?U.withCredentials=!0:W.credentials==="omit"&&(U.withCredentials=!1),"responseType"in U&&(i.blob?U.responseType="blob":i.arrayBuffer&&(U.responseType="arraybuffer")),v&&typeof v.headers=="object"&&!(v.headers instanceof f||n.Headers&&v.headers instanceof n.Headers)){var $a=[];Object.getOwnPropertyNames(v.headers).forEach(function(se){$a.push(d(se)),U.setRequestHeader(se,p(v.headers[se]))}),W.headers.forEach(function(se,bt){$a.indexOf(bt)===-1&&U.setRequestHeader(bt,se)})}else W.headers.forEach(function(se,bt){U.setRequestHeader(bt,se)});W.signal&&(W.signal.addEventListener("abort",ke),U.onreadystatechange=function(){U.readyState===4&&W.signal.removeEventListener("abort",ke)}),U.send(typeof W._bodyInit>"u"?null:W._bodyInit)})}return I.polyfill=!0,n.fetch||(n.fetch=I,n.Headers=f,n.Request=E,n.Response=H),r.Headers=f,r.Request=E,r.Response=H,r.fetch=I,r}({})})(zo);zo.fetch.ponyfill=!0;delete zo.fetch.polyfill;var nr=Ho.fetch?Ho:zo;mt=nr.fetch;mt.default=nr.fetch;mt.fetch=nr.fetch;mt.Headers=nr.Headers;mt.Request=nr.Request;mt.Response=nr.Response;kc.exports=mt});if(!ShadowRoot.prototype.createElement){let t=window.HTMLElement,e=window.customElements.define,r=window.customElements.get,n=window.customElements,i=new WeakMap,a=new WeakMap,s=new WeakMap,c=new WeakMap;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(S,O){if(S=S.toLowerCase(),this._getDefinition(S)!==void 0)throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${S}" has already been used with this registry`);if(this._definitionsByClass.get(O)!==void 0)throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");let E=O.prototype.attributeChangedCallback,$=new Set(O.observedAttributes||[]);m(O,$,E);let F={elementClass:O,connectedCallback:O.prototype.connectedCallback,disconnectedCallback:O.prototype.disconnectedCallback,adoptedCallback:O.prototype.adoptedCallback,attributeChangedCallback:E,formAssociated:O.formAssociated,formAssociatedCallback:O.prototype.formAssociatedCallback,formDisabledCallback:O.prototype.formDisabledCallback,formResetCallback:O.prototype.formResetCallback,formStateRestoreCallback:O.prototype.formStateRestoreCallback,observedAttributes:$};this._definitionsByTag.set(S,F),this._definitionsByClass.set(O,F);let H=r.call(n,S);H||(H=f(S),e.call(n,S,H)),this===window.customElements&&(s.set(O,F),F.standInClass=H);let z=this._awaitingUpgrade.get(S);if(z){this._awaitingUpgrade.delete(S);for(let y of z)a.delete(y),x(y,F,!0)}let I=this._whenDefinedPromises.get(S);return I!==void 0&&(I.resolve(O),this._whenDefinedPromises.delete(S)),O}upgrade(){L.push(this),n.upgrade.apply(n,arguments),L.pop()}get(S){return this._definitionsByTag.get(S)?.elementClass}_getDefinition(S){return this._definitionsByTag.get(S)}whenDefined(S){let O=this._getDefinition(S);if(O!==void 0)return Promise.resolve(O.elementClass);let E=this._whenDefinedPromises.get(S);return E===void 0&&(E={},E.promise=new Promise($=>E.resolve=$),this._whenDefinedPromises.set(S,E)),E.promise}_upgradeWhenDefined(S,O,E){let $=this._awaitingUpgrade.get(O);$||this._awaitingUpgrade.set(O,$=new Set),E?$.add(S):$.delete(S)}};let d;window.HTMLElement=function(){let O=d;if(O)return d=void 0,O;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 O=Reflect.construct(t,[],E.standInClass),Object.setPrototypeOf(O,this.constructor.prototype),i.set(O,E),O},window.HTMLElement.prototype=t.prototype;let p=S=>S===document||S instanceof ShadowRoot,h=S=>{let O=S.getRootNode();if(!p(O)){let E=L[L.length-1];if(E instanceof CustomElementRegistry)return E;O=E.getRootNode(),p(O)||(O=c.get(O)?.getRootNode()||document)}return O.customElements},f=S=>class{static get formAssociated(){return!0}constructor(){let E=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(E,HTMLElement.prototype);let $=h(E)||window.customElements,F=$._getDefinition(S);return F?x(E,F):a.set(E,$),E}connectedCallback(){let E=i.get(this);E?E.connectedCallback&&E.connectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,S,!0)}disconnectedCallback(){let E=i.get(this);E?E.disconnectedCallback&&E.disconnectedCallback.apply(this,arguments):a.get(this)._upgradeWhenDefined(this,S,!1)}adoptedCallback(){i.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){let E=i.get(this);E&&E.formAssociated&&E?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){let E=i.get(this);E?.formAssociated&&E?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){let E=i.get(this);E?.formAssociated&&E?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){let E=i.get(this);E?.formAssociated&&E?.formStateRestoreCallback?.apply(this,arguments)}},m=(S,O,E)=>{if(O.size===0||E===void 0)return;let $=S.prototype.setAttribute;$&&(S.prototype.setAttribute=function(z,I){let y=z.toLowerCase();if(O.has(y)){let v=this.getAttribute(y);$.call(this,y,I),E.call(this,y,v,I)}else $.call(this,y,I)});let F=S.prototype.removeAttribute;F&&(S.prototype.removeAttribute=function(z){let I=z.toLowerCase();if(O.has(I)){let y=this.getAttribute(I);F.call(this,I),E.call(this,I,y,null)}else F.call(this,I)});let H=S.prototype.toggleAttribute;H&&(S.prototype.toggleAttribute=function(z,I){let y=z.toLowerCase();if(O.has(y)){let v=this.getAttribute(y);H.call(this,y,I);let T=this.getAttribute(y);E.call(this,y,v,T)}else H.call(this,y,I)})},b=S=>{let O=Object.getPrototypeOf(S);if(O!==window.HTMLElement)return O===t?Object.setPrototypeOf(S,window.HTMLElement):b(O)},x=(S,O,E=!1)=>{Object.setPrototypeOf(S,O.elementClass.prototype),i.set(S,O),d=S;try{new O.elementClass}catch{b(O.elementClass),new O.elementClass}O.attributeChangedCallback&&O.observedAttributes.forEach($=>{S.hasAttribute($)&&O.attributeChangedCallback.call(S,$,null,S.getAttribute($))}),E&&O.connectedCallback&&S.isConnected&&O.connectedCallback.call(S)},C=Element.prototype.attachShadow;Element.prototype.attachShadow=function(S){let O=C.apply(this,arguments);return S.customElements&&(O.customElements=S.customElements),O};let L=[document],R=(S,O,E=void 0)=>{let $=(E?Object.getPrototypeOf(E):S.prototype)[O];S.prototype[O]=function(){L.push(this);let F=$.apply(E||this,arguments);return F!==void 0&&c.set(F,this),L.pop(),F}};R(ShadowRoot,"createElement",document),R(ShadowRoot,"importNode",document),R(Element,"insertAdjacentHTML");let P=(S,O)=>{let E=Object.getOwnPropertyDescriptor(S.prototype,O);Object.defineProperty(S.prototype,O,{...E,set($){L.push(this),E.set.call(this,$),L.pop()}})};if(P(Element,"innerHTML"),P(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){let S=new WeakMap,O=HTMLElement.prototype.attachInternals,E=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...z){let I=O.call(this,...z);return S.set(I,this),I},E.forEach(z=>{let I=window.ElementInternals.prototype,y=I[z];I[z]=function(...v){let T=S.get(this);if(i.get(T).formAssociated===!0)return y?.call(this,...v);throw new DOMException(`Failed to execute ${y} on 'ElementInternals': The target element is not a form-associated custom element.`)}});class $ extends Array{constructor(I){super(...I),this._elements=I}get value(){return this._elements.find(I=>I.checked===!0)?.value||""}}class F{constructor(I){let y=new Map;I.forEach((v,T)=>{let B=v.getAttribute("name"),W=y.get(B)||[];this[+T]=v,W.push(v),y.set(B,W)}),this.length=I.length,y.forEach((v,T)=>{v&&(v.length===1?this[T]=v[0]:this[T]=new $(v))})}namedItem(I){return this[I]}}let H=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){let z=H.get.call(this,[]),I=[];for(let y of z){let v=i.get(y);(!v||v.formAssociated===!0)&&I.push(y)}return new F(I)}})}}try{window.customElements.define("custom-element",null)}catch{let e=window.customElements.define;window.customElements.define=(r,n,i)=>{if(n!==null)try{e.bind(window.customElements)(r,n,i)}catch(a){console.info(r,n,i,a)}}}var gn={};V(gn,{CSSResult:()=>zt,LitElement:()=>qe,ReactiveElement:()=>De,_$LE:()=>vd,_$LH:()=>gd,adoptStyles:()=>yo,css:()=>D,defaultConverter:()=>mo,getCompatibleStyle:()=>Er,html:()=>Z,isServer:()=>tf,noChange:()=>nt,notEqual:()=>pn,nothing:()=>G,render:()=>mn,supportsAdoptingStyleSheets:()=>Cr,svg:()=>md,unsafeCSS:()=>wt});var eo=globalThis,ro=eo.ShadowRoot&&(eo.ShadyCSS===void 0||eo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Da=Symbol(),ka=new WeakMap,to=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==Da)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(ro&&e===void 0){let n=r!==void 0&&r.length===1;n&&(e=ka.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&ka.set(r,e))}return e}toString(){return this.cssText}},Ua=t=>new to(typeof t=="string"?t:t+"",void 0,Da);var nn=(t,e)=>{if(ro)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),i=eo.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}},oo=ro?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let n of e.cssRules)r+=n.cssText;return Ua(r)})(t):t;var{is:Xl,defineProperty:Jl,getOwnPropertyDescriptor:Ql,getOwnPropertyNames:ed,getOwnPropertySymbols:td,getPrototypeOf:rd}=Object,no=globalThis,Ma=no.trustedTypes,od=Ma?Ma.emptyScript:"",nd=no.reactiveElementPolyfillSupport,gr=(t,e)=>t,br={toAttribute(t,e){switch(e){case Boolean:t=t?od:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},io=(t,e)=>!Xl(t,e),Ba={attribute:!0,type:String,converter:br,reflect:!1,hasChanged:io};Symbol.metadata??=Symbol("metadata"),no.litPropertyMetadata??=new WeakMap;var xt=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,r=Ba){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(e,n,r);i!==void 0&&Jl(this.prototype,e,i)}}static getPropertyDescriptor(e,r,n){let{get:i,set:a}=Ql(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return i?.call(this)},set(s){let c=i?.call(this);a.call(this,s),this.requestUpdate(e,c,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??Ba}static _$Ei(){if(this.hasOwnProperty(gr("elementProperties")))return;let e=rd(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(gr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(gr("properties"))){let r=this.properties,n=[...ed(r),...td(r)];for(let i of n)this.createProperty(i,r[i])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let i of n)r.unshift(oo(i))}else e!==void 0&&r.push(oo(e));return r}static _$Eu(e,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return nn(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,r,n){this._$AK(e,n)}_$EO(e,r){let n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){let a=(n.converter?.toAttribute!==void 0?n.converter:br).toAttribute(r,n.type);this._$Em=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,r){let n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let a=n.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:br;this._$Em=i,this[i]=s.fromAttribute(r,a.type),this._$Em=null}}requestUpdate(e,r,n,i=!1,a){if(e!==void 0){if(n??=this.constructor.getPropertyOptions(e),!(n.hasChanged??io)(i?a:this[e],r))return;this.C(e,r,n)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,r,n){this._$AL.has(e)||this._$AL.set(e,r),n.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,a]of n)a.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.C(i,this[i],a)}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$E_?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$ET()}catch(n){throw e=!1,this._$ET(),n}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$E_?.forEach(r=>r.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(r=>this._$EO(r,this[r])),this._$ET()}updated(e){}firstUpdated(e){}};xt.elementStyles=[],xt.shadowRootOptions={mode:"open"},xt[gr("elementProperties")]=new Map,xt[gr("finalized")]=new Map,nd?.({ReactiveElement:xt}),(no.reactiveElementVersions??=[]).push("2.0.2");var sn=globalThis,ao=sn.trustedTypes,Fa=ao?ao.createPolicy("lit-html",{createHTML:t=>t}):void 0,cn="$lit$",Ke=`lit$${(Math.random()+"").slice(9)}$`,ln="?"+Ke,id=`<${ln}>`,Ot=document,so=()=>Ot.createComment(""),vr=t=>t===null||typeof t!="object"&&typeof t!="function",Ga=Array.isArray,Ka=t=>Ga(t)||typeof t?.[Symbol.iterator]=="function",an=`[
|
|
3
|
+
\f\r]`,xr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Wa=/-->/g,Ha=/>/g,vt=RegExp(`>|${an}(?:([^\\s"'>=/]+)(${an}*=${an}*(?:[^
|
|
4
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),za=/'/g,ja=/"/g,Za=/^(?:script|style|textarea|title)$/i,qa=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Ya=qa(1),Xa=qa(2),ve=Symbol.for("lit-noChange"),te=Symbol.for("lit-nothing"),Va=new WeakMap,St=Ot.createTreeWalker(Ot,129);function Ja(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Fa!==void 0?Fa.createHTML(e):e}var Qa=(t,e)=>{let r=t.length-1,n=[],i,a=e===2?"<svg>":"",s=xr;for(let c=0;c<r;c++){let d=t[c],p,h,f=-1,m=0;for(;m<d.length&&(s.lastIndex=m,h=s.exec(d),h!==null);)m=s.lastIndex,s===xr?h[1]==="!--"?s=Wa:h[1]!==void 0?s=Ha:h[2]!==void 0?(Za.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=vt):h[3]!==void 0&&(s=vt):s===vt?h[0]===">"?(s=i??xr,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?vt:h[3]==='"'?ja:za):s===ja||s===za?s=vt:s===Wa||s===Ha?s=xr:(s=vt,i=void 0);let b=s===vt&&t[c+1].startsWith("/>")?" ":"";a+=s===xr?d+id:f>=0?(n.push(p),d.slice(0,f)+cn+d.slice(f)+Ke+b):d+Ke+(f===-2?c:b)}return[Ja(t,a+(t[r]||"<?>")+(e===2?"</svg>":"")),n]},Sr=class t{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let a=0,s=0,c=e.length-1,d=this.parts,[p,h]=Qa(e,r);if(this.el=t.createElement(p,n),St.currentNode=this.el.content,r===2){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(i=St.nextNode())!==null&&d.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(let f of i.getAttributeNames())if(f.endsWith(cn)){let m=h[s++],b=i.getAttribute(f).split(Ke),x=/([.?@])?(.*)/.exec(m);d.push({type:1,index:a,name:x[2],strings:b,ctor:x[1]==="."?lo:x[1]==="?"?po:x[1]==="@"?uo:Et}),i.removeAttribute(f)}else f.startsWith(Ke)&&(d.push({type:6,index:a}),i.removeAttribute(f));if(Za.test(i.tagName)){let f=i.textContent.split(Ke),m=f.length-1;if(m>0){i.textContent=ao?ao.emptyScript:"";for(let b=0;b<m;b++)i.append(f[b],so()),St.nextNode(),d.push({type:2,index:++a});i.append(f[m],so())}}}else if(i.nodeType===8)if(i.data===ln)d.push({type:2,index:a});else{let f=-1;for(;(f=i.data.indexOf(Ke,f+1))!==-1;)d.push({type:7,index:a}),f+=Ke.length-1}a++}}static createElement(e,r){let n=Ot.createElement("template");return n.innerHTML=e,n}};function Ct(t,e,r=t,n){if(e===ve)return e;let i=n!==void 0?r._$Co?.[n]:r._$Cl,a=vr(e)?void 0:e._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(t),i._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(e=Ct(t,i._$AS(t,e.values),i,n)),e}var co=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,i=(e?.creationScope??Ot).importNode(r,!0);St.currentNode=i;let a=St.nextNode(),s=0,c=0,d=n[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new Or(a,a.nextSibling,this,e):d.type===1?p=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(p=new fo(a,this,e)),this._$AV.push(p),d=n[++c]}s!==d?.index&&(a=St.nextNode(),s++)}return St.currentNode=Ot,i}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},Or=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=te,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Ct(this,e,r),vr(e)?e===te||e==null||e===""?(this._$AH!==te&&this._$AR(),this._$AH=te):e!==this._$AH&&e!==ve&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):Ka(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!==te&&vr(this._$AH)?this._$AA.nextSibling.data=e:this.$(Ot.createTextNode(e)),this._$AH=e}g(e){let{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Sr.createElement(Ja(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let a=new co(i,this),s=a.u(this.options);a.p(r),this.$(s),this._$AH=a}}_$AC(e){let r=Va.get(e.strings);return r===void 0&&Va.set(e.strings,r=new Sr(e)),r}T(e){Ga(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let a of e)i===r.length?r.push(n=new t(this.k(so()),this.k(so()),this,this.options)):n=r[i],n._$AI(a),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Et=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,a){this.type=1,this._$AH=te,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=a,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=te}_$AI(e,r=this,n,i){let a=this.strings,s=!1;if(a===void 0)e=Ct(this,e,r,0),s=!vr(e)||e!==this._$AH&&e!==ve,s&&(this._$AH=e);else{let c=e,d,p;for(e=a[0],d=0;d<a.length-1;d++)p=Ct(this,c[n+d],r,d),p===ve&&(p=this._$AH[d]),s||=!vr(p)||p!==this._$AH[d],p===te?e=te:e!==te&&(e+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!i&&this.O(e)}O(e){e===te?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},lo=class extends Et{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===te?void 0:e}},po=class extends Et{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==te)}},uo=class extends Et{constructor(e,r,n,i,a){super(e,r,n,i,a),this.type=5}_$AI(e,r=this){if((e=Ct(this,e,r,0)??te)===ve)return;let n=this._$AH,i=e===te&&n!==te||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==te&&(n===te||i);i&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},fo=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Ct(this,e)}},es={j:cn,P:Ke,A:ln,C:1,M:Qa,L:co,R:Ka,V:Ct,D:Or,I:Et,H:po,N:uo,U:lo,B:fo},ad=sn.litHtmlPolyfillSupport;ad?.(Sr,Or),(sn.litHtmlVersions??=[]).push("3.1.0");var ho=globalThis,Cr=ho.ShadowRoot&&(ho.ShadyCSS===void 0||ho.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,dn=Symbol(),ts=new WeakMap,zt=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==dn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(Cr&&e===void 0){let n=r!==void 0&&r.length===1;n&&(e=ts.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&ts.set(r,e))}return e}toString(){return this.cssText}},wt=t=>new zt(typeof t=="string"?t:t+"",void 0,dn),D=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((n,i,a)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[a+1],t[0]);return new zt(r,t,dn)},yo=(t,e)=>{if(Cr)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),i=ho.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}},Er=Cr?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let n of e.cssRules)r+=n.cssText;return wt(r)})(t):t;var{is:sd,defineProperty:cd,getOwnPropertyDescriptor:ld,getOwnPropertyNames:dd,getOwnPropertySymbols:pd,getPrototypeOf:ud}=Object,go=globalThis,rs=go.trustedTypes,fd=rs?rs.emptyScript:"",hd=go.reactiveElementPolyfillSupport,wr=(t,e)=>t,mo={toAttribute(t,e){switch(e){case Boolean:t=t?fd:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},pn=(t,e)=>!sd(t,e),os={attribute:!0,type:String,converter:mo,reflect:!1,hasChanged:pn};Symbol.metadata??=Symbol("metadata"),go.litPropertyMetadata??=new WeakMap;var De=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=os){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(e,n,r);i!==void 0&&cd(this.prototype,e,i)}}static getPropertyDescriptor(e,r,n){let{get:i,set:a}=ld(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return i?.call(this)},set(s){let c=i?.call(this);a.call(this,s),this.requestUpdate(e,c,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??os}static _$Ei(){if(this.hasOwnProperty(wr("elementProperties")))return;let e=ud(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(wr("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(wr("properties"))){let r=this.properties,n=[...dd(r),...pd(r)];for(let i of n)this.createProperty(i,r[i])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let i of n)r.unshift(Er(i))}else e!==void 0&&r.push(Er(e));return r}static _$Eu(e,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$ES(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$E_??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$E_?.delete(e)}_$ES(){let e=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return 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,r,n){this._$AK(e,n)}_$EO(e,r){let n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){let a=(n.converter?.toAttribute!==void 0?n.converter:mo).toAttribute(r,n.type);this._$Em=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$Em=null}}_$AK(e,r){let n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let a=n.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:a.converter?.fromAttribute!==void 0?a.converter:mo;this._$Em=i,this[i]=s.fromAttribute(r,a.type),this._$Em=null}}requestUpdate(e,r,n,i=!1,a){if(e!==void 0){if(n??=this.constructor.getPropertyOptions(e),!(n.hasChanged??pn)(i?a:this[e],r))return;this.C(e,r,n)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(e,r,n){this._$AL.has(e)||this._$AL.set(e,r),n.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,a]of this._$Ep)this[i]=a;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,a]of n)a.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.C(i,this[i],a)}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$E_?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$ET()}catch(n){throw e=!1,this._$ET(),n}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$E_?.forEach(r=>r.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(r=>this._$EO(r,this[r])),this._$ET()}updated(e){}firstUpdated(e){}};De.elementStyles=[],De.shadowRootOptions={mode:"open"},De[wr("elementProperties")]=new Map,De[wr("finalized")]=new Map,hd?.({ReactiveElement:De}),(go.reactiveElementVersions??=[]).push("2.0.2");var fn=globalThis,bo=fn.trustedTypes,ns=bo?bo.createPolicy("lit-html",{createHTML:t=>t}):void 0,hn="$lit$",Ze=`lit$${(Math.random()+"").slice(9)}$`,yn="?"+Ze,yd=`<${yn}>`,Nt=document,Rr=()=>Nt.createComment(""),Nr=t=>t===null||typeof t!="object"&&typeof t!="function",ds=Array.isArray,ps=t=>ds(t)||typeof t?.[Symbol.iterator]=="function",un=`[
|
|
5
|
+
\f\r]`,Ar=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,is=/-->/g,as=/>/g,At=RegExp(`>|${un}(?:([^\\s"'>=/]+)(${un}*=${un}*(?:[^
|
|
6
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ss=/'/g,cs=/"/g,us=/^(?:script|style|textarea|title)$/i,fs=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Z=fs(1),md=fs(2),nt=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),ls=new WeakMap,Rt=Nt.createTreeWalker(Nt,129);function hs(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return ns!==void 0?ns.createHTML(e):e}var ys=(t,e)=>{let r=t.length-1,n=[],i,a=e===2?"<svg>":"",s=Ar;for(let c=0;c<r;c++){let d=t[c],p,h,f=-1,m=0;for(;m<d.length&&(s.lastIndex=m,h=s.exec(d),h!==null);)m=s.lastIndex,s===Ar?h[1]==="!--"?s=is:h[1]!==void 0?s=as:h[2]!==void 0?(us.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=At):h[3]!==void 0&&(s=At):s===At?h[0]===">"?(s=i??Ar,f=-1):h[1]===void 0?f=-2:(f=s.lastIndex-h[2].length,p=h[1],s=h[3]===void 0?At:h[3]==='"'?cs:ss):s===cs||s===ss?s=At:s===is||s===as?s=Ar:(s=At,i=void 0);let b=s===At&&t[c+1].startsWith("/>")?" ":"";a+=s===Ar?d+yd:f>=0?(n.push(p),d.slice(0,f)+hn+d.slice(f)+Ze+b):d+Ze+(f===-2?c:b)}return[hs(t,a+(t[r]||"<?>")+(e===2?"</svg>":"")),n]},_r=class t{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let a=0,s=0,c=e.length-1,d=this.parts,[p,h]=ys(e,r);if(this.el=t.createElement(p,n),Rt.currentNode=this.el.content,r===2){let f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(i=Rt.nextNode())!==null&&d.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(let f of i.getAttributeNames())if(f.endsWith(hn)){let m=h[s++],b=i.getAttribute(f).split(Ze),x=/([.?@])?(.*)/.exec(m);d.push({type:1,index:a,name:x[2],strings:b,ctor:x[1]==="."?vo:x[1]==="?"?So:x[1]==="@"?Oo:Pt}),i.removeAttribute(f)}else f.startsWith(Ze)&&(d.push({type:6,index:a}),i.removeAttribute(f));if(us.test(i.tagName)){let f=i.textContent.split(Ze),m=f.length-1;if(m>0){i.textContent=bo?bo.emptyScript:"";for(let b=0;b<m;b++)i.append(f[b],Rr()),Rt.nextNode(),d.push({type:2,index:++a});i.append(f[m],Rr())}}}else if(i.nodeType===8)if(i.data===yn)d.push({type:2,index:a});else{let f=-1;for(;(f=i.data.indexOf(Ze,f+1))!==-1;)d.push({type:7,index:a}),f+=Ze.length-1}a++}}static createElement(e,r){let n=Nt.createElement("template");return n.innerHTML=e,n}};function _t(t,e,r=t,n){if(e===nt)return e;let i=n!==void 0?r._$Co?.[n]:r._$Cl,a=Nr(e)?void 0:e._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(t),i._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(e=_t(t,i._$AS(t,e.values),i,n)),e}var xo=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,i=(e?.creationScope??Nt).importNode(r,!0);Rt.currentNode=i;let a=Rt.nextNode(),s=0,c=0,d=n[0];for(;d!==void 0;){if(s===d.index){let p;d.type===2?p=new jt(a,a.nextSibling,this,e):d.type===1?p=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(p=new Co(a,this,e)),this._$AV.push(p),d=n[++c]}s!==d?.index&&(a=Rt.nextNode(),s++)}return Rt.currentNode=Nt,i}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},jt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=_t(this,e,r),Nr(e)?e===G||e==null||e===""?(this._$AH!==G&&this._$AR(),this._$AH=G):e!==this._$AH&&e!==nt&&this._(e):e._$litType$!==void 0?this.g(e):e.nodeType!==void 0?this.$(e):ps(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!==G&&Nr(this._$AH)?this._$AA.nextSibling.data=e:this.$(Nt.createTextNode(e)),this._$AH=e}g(e){let{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=_r.createElement(hs(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let a=new xo(i,this),s=a.u(this.options);a.p(r),this.$(s),this._$AH=a}}_$AC(e){let r=ls.get(e.strings);return r===void 0&&ls.set(e.strings,r=new _r(e)),r}T(e){ds(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let a of e)i===r.length?r.push(n=new t(this.k(Rr()),this.k(Rr()),this,this.options)):n=r[i],n._$AI(a),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Pt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,a){this.type=1,this._$AH=G,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=a,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=G}_$AI(e,r=this,n,i){let a=this.strings,s=!1;if(a===void 0)e=_t(this,e,r,0),s=!Nr(e)||e!==this._$AH&&e!==nt,s&&(this._$AH=e);else{let c=e,d,p;for(e=a[0],d=0;d<a.length-1;d++)p=_t(this,c[n+d],r,d),p===nt&&(p=this._$AH[d]),s||=!Nr(p)||p!==this._$AH[d],p===G?e=G:e!==G&&(e+=(p??"")+a[d+1]),this._$AH[d]=p}s&&!i&&this.O(e)}O(e){e===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},vo=class extends Pt{constructor(){super(...arguments),this.type=3}O(e){this.element[this.name]=e===G?void 0:e}},So=class extends Pt{constructor(){super(...arguments),this.type=4}O(e){this.element.toggleAttribute(this.name,!!e&&e!==G)}},Oo=class extends Pt{constructor(e,r,n,i,a){super(e,r,n,i,a),this.type=5}_$AI(e,r=this){if((e=_t(this,e,r,0)??G)===nt)return;let n=this._$AH,i=e===G&&n!==G||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,a=e!==G&&(n===G||i);i&&this.element.removeEventListener(this.name,this,n),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Co=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){_t(this,e)}},gd={j:hn,P:Ze,A:yn,C:1,M:ys,L:xo,R:ps,V:_t,D:jt,I:Pt,H:So,N:Oo,U:vo,B:Co},bd=fn.litHtmlPolyfillSupport;bd?.(_r,jt),(fn.litHtmlVersions??=[]).push("3.1.0");var mn=(t,e,r)=>{let n=r?.renderBefore??e,i=n._$litPart$;if(i===void 0){let a=r?.renderBefore??null;n._$litPart$=i=new jt(e.insertBefore(Rr(),a),a,void 0,r??{})}return i._$AI(t),i};var qe=class extends De{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=mn(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return nt}};qe._$litElement$=!0,qe.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:qe});var xd=globalThis.litElementPolyfillSupport;xd?.({LitElement:qe});var vd={_$AK:(t,e,r)=>{t._$AK(e,r)},_$AL:t=>t._$AL};(globalThis.litElementVersions??=[]).push("4.0.2");var tf=!1;var xn={};V(xn,{customElement:()=>Sd,eventOptions:()=>Vt,property:()=>A,query:()=>ce,queryAll:()=>Ed,queryAssignedElements:()=>Ad,queryAssignedNodes:()=>bn,queryAsync:()=>wd,standardProperty:()=>ms,state:()=>he});var Sd=t=>(e,r)=>{r!==void 0?r.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)};var Od={attribute:!0,type:String,converter:br,reflect:!1,hasChanged:io},ms=(t=Od,e,r)=>{let{kind:n,metadata:i}=r,a=globalThis.litPropertyMetadata.get(i);if(a===void 0&&globalThis.litPropertyMetadata.set(i,a=new Map),a.set(r.name,t),n==="accessor"){let{name:s}=r;return{set(c){let d=e.get.call(this);e.set.call(this,c),this.requestUpdate(s,d,t)},init(c){return c!==void 0&&this.C(s,void 0,t),c}}}if(n==="setter"){let{name:s}=r;return function(c){let d=this[s];e.call(this,c),this.requestUpdate(s,d,t)}}throw Error("Unsupported decorator location: "+n)};function A(t){return(e,r)=>typeof r=="object"?ms(t,e,r):((n,i,a)=>{let s=i.hasOwnProperty(a);return i.constructor.createProperty(a,s?{...n,wrapped:!0}:n),s?Object.getOwnPropertyDescriptor(i,a):void 0})(t,e,r)}function he(t){return A({...t,state:!0,attribute:!1})}function Vt(t){return(e,r)=>{let n=typeof e=="function"?e:e[r];Object.assign(n,t)}}var Ne=(t,e,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&typeof e!="object"&&Object.defineProperty(t,e,r),r);function ce(t,e){return(r,n,i)=>{let a=s=>s.renderRoot?.querySelector(t)??null;if(e){let{get:s,set:c}=typeof n=="object"?r:i??(()=>{let d=Symbol();return{get(){return this[d]},set(p){this[d]=p}}})();return Ne(r,n,{get(){let d=s.call(this);return d===void 0&&(d=a(this),(d!==null||this.hasUpdated)&&c.call(this,d)),d}})}return Ne(r,n,{get(){return a(this)}})}}var Cd;function Ed(t){return(e,r)=>Ne(e,r,{get(){return(this.renderRoot??(Cd??=document.createDocumentFragment())).querySelectorAll(t)}})}function wd(t){return(e,r)=>Ne(e,r,{async get(){return await this.updateComplete,this.renderRoot?.querySelector(t)??null}})}function Ad(t){return(e,r)=>{let{slot:n,selector:i}=t??{},a="slot"+(n?`[name=${n}]`:":not([name])");return Ne(e,r,{get(){let s=this.renderRoot?.querySelector(a),c=s?.assignedElements(t)??[];return i===void 0?c:c.filter(d=>d.matches(i))}})}}function bn(t){return(e,r)=>{let{slot:n}=t??{},i="slot"+(n?`[name=${n}]`:":not([name])");return Ne(e,r,{get(){return this.renderRoot?.querySelector(i)?.assignedNodes(t)??[]}})}}var vn={};V(vn,{repeat:()=>_d});var it={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},at=t=>(...e)=>({_$litDirective$:t,values:e}),Ue=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,n){this._$Ct=e,this._$AM=r,this._$Ci=n}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}};var{D:Rd}=es;var gs=()=>document.createComment(""),Gt=(t,e,r)=>{let n=t._$AA.parentNode,i=e===void 0?t._$AB:e._$AA;if(r===void 0){let a=n.insertBefore(gs(),i),s=n.insertBefore(gs(),i);r=new Rd(a,s,t,t.options)}else{let a=r._$AB.nextSibling,s=r._$AM,c=s!==t;if(c){let d;r._$AQ?.(t),r._$AM=t,r._$AP!==void 0&&(d=t._$AU)!==s._$AU&&r._$AP(d)}if(a!==i||c){let d=r._$AA;for(;d!==a;){let p=d.nextSibling;n.insertBefore(d,i),d=p}}}return r},st=(t,e,r=t)=>(t._$AI(e,r),t),Nd={},bs=(t,e=Nd)=>t._$AH=e,xs=t=>t._$AH,Eo=t=>{t._$AP?.(!1,!0);let e=t._$AA,r=t._$AB.nextSibling;for(;e!==r;){let n=e.nextSibling;e.remove(),e=n}};var vs=(t,e,r)=>{let n=new Map;for(let i=e;i<=r;i++)n.set(t[i],i);return n},_d=at(class extends Ue{constructor(t){if(super(t),t.type!==it.CHILD)throw Error("repeat() can only be used in text expressions")}ht(t,e,r){let n;r===void 0?r=e:e!==void 0&&(n=e);let i=[],a=[],s=0;for(let c of t)i[s]=n?n(c,s):s,a[s]=r(c,s),s++;return{values:a,keys:i}}render(t,e,r){return this.ht(t,e,r).values}update(t,[e,r,n]){let i=xs(t),{values:a,keys:s}=this.ht(e,r,n);if(!Array.isArray(i))return this.dt=s,a;let c=this.dt??=[],d=[],p,h,f=0,m=i.length-1,b=0,x=a.length-1;for(;f<=m&&b<=x;)if(i[f]===null)f++;else if(i[m]===null)m--;else if(c[f]===s[b])d[b]=st(i[f],a[b]),f++,b++;else if(c[m]===s[x])d[x]=st(i[m],a[x]),m--,x--;else if(c[f]===s[x])d[x]=st(i[f],a[x]),Gt(t,d[x+1],i[f]),f++,x--;else if(c[m]===s[b])d[b]=st(i[m],a[b]),Gt(t,i[f],i[m]),m--,b++;else if(p===void 0&&(p=vs(s,b,x),h=vs(c,f,m)),p.has(c[f]))if(p.has(c[m])){let C=h.get(s[b]),L=C!==void 0?i[C]:null;if(L===null){let R=Gt(t,i[f]);st(R,a[b]),d[b]=R}else d[b]=st(L,a[b]),Gt(t,i[f],L),i[C]=null;b++}else Eo(i[m]),m--;else Eo(i[f]),f++;for(;b<=x;){let C=Gt(t,d[x+1]);st(C,a[b]),d[b++]=C}for(;f<=m;){let C=i[f++];C!==null&&Eo(C)}return this.dt=s,bs(t,d),ve}});var Sn={};V(Sn,{classMap:()=>Lt});var Lt=at(class extends Ue{constructor(t){if(super(t),t.type!==it.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(this.it===void 0){this.it=new Set,t.strings!==void 0&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(let n in e)e[n]&&!this.st?.has(n)&&this.it.add(n);return this.render(e)}let r=t.element.classList;for(let n of this.it)n in e||(r.remove(n),this.it.delete(n));for(let n in e){let i=!!e[n];i===this.it.has(n)||this.st?.has(n)||(i?(r.add(n),this.it.add(n)):(r.remove(n),this.it.delete(n)))}return ve}});var On={};V(On,{styleMap:()=>Ld});var Ss="important",Pd=" !"+Ss,Ld=at(class extends Ue{constructor(t){if(super(t),t.type!==it.ATTRIBUTE||t.name!=="style"||t.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(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return n==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(t,[e]){let{style:r}=t.element;if(this.ut===void 0)return this.ut=new Set(Object.keys(e)),this.render(e);for(let n of this.ut)e[n]==null&&(this.ut.delete(n),n.includes("-")?r.removeProperty(n):r[n]=null);for(let n in e){let i=e[n];if(i!=null){this.ut.add(n);let a=typeof i=="string"&&i.endsWith(Pd);n.includes("-")||a?r.setProperty(n,a?i.slice(0,-11):i,a?Ss:""):r[n]=i}}return ve}});var En={};V(En,{UnsafeHTMLDirective:()=>Kt,unsafeHTML:()=>Cn});var Kt=class extends Ue{constructor(e){if(super(e),this.et=te,e.type!==it.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===te||e==null)return this.vt=void 0,this.et=e;if(e===ve)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 r=[e];return r.raw=r,this.vt={_$litType$:this.constructor.resultType,strings:r,values:[]}}};Kt.directiveName="unsafeHTML",Kt.resultType=1;var Cn=at(Kt);var Rn={};V(Rn,{CacheRegistry:()=>Me});var An={};V(An,{CancelablePromise:()=>Zt,CanceledPromiseError:()=>Pr,cancelable:()=>wn});var Pr=class extends Error{constructor(e,r,n){super(e),this.canceledPromiseResult=r,this.canceledPromiseError=n}},Zt=class extends Promise{constructor(e){super((r,n)=>e(i=>{this.isCanceled?n(new Pr("Promise has been canceled",i)):r(i)},i=>{this.isCanceled?n(new Pr("Promise has been canceled",void 0,i)):n(i)})),this.isCanceled=!1}cancel(){this.isCanceled=!0}},wn=t=>new Zt((e,r)=>t.then(e).catch(r));var Me=class{constructor(){this.loaders={},this.content={},this.clearTimeouts={},this.finalContent=new Set}register(e,r){this.loaders[e]=r,this.finalContent.delete(e)}registerFinal(e,r){this.loaders[e]=r,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 Zt&&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,r){this.forceClear(e),this.register(e,async()=>r),this.content[e]=r}setFinal(e,r){this.forceClear(e),this.registerFinal(e,async()=>r),this.content[e]=r}async get(e,r,n){if(this.content[e]===void 0){if(r=r??this.loaders[e],r==null)throw new Error("Unknown cache key "+e);let i=wn(r());return this.content[e]=i,i.then(a=>(this.content[e]=a,n!=null&&(this.clearClearTimeout(e),this.clearTimeouts[e]=window.setTimeout(()=>this.clear(e),n)),a))}if(this.content[e]instanceof Error)throw this.content[e];return this.content[e]}isResolvedValue(e){return e!=null&&!(e instanceof Promise)&&!(e instanceof Error)}getNow(e){if(this.isResolvedValue(this.content[e]))return this.content[e]}has(e){return this.content[e]!=null}resolvedKeys(){return Object.keys(this.content).filter(e=>this.isResolvedValue(this.content[e]))}resolvedValues(){return Object.values(this.content).filter(e=>this.isResolvedValue(e))}keys(){return Object.keys(this.content)}values(){return Object.values(this.content)}};var _n={};V(_n,{ClusteringHelper:()=>Nn});var Nn=class t{constructor(e,r,n,i){this.allResults=e,this.selectedResult=r,this.clusteringMetadata=n,this.metadataDescriptors=i}static extractResultMetadata(e,r){var n,i;let a=((i=(n=e?.map)!==null&&n!==void 0?n:e?.document)!==null&&i!==void 0?i:e?.topic).metadata;return r==null?t.flattenMetadata(a):t.flattenMetadata(a.find(s=>s.key===r))}static flattenMetadata(e){if(Array.isArray(e))return e.map(n=>t.flattenMetadata(n)).filter(n=>n!=null);let r=e?.hierarchicalValues!=null&&e.hierarchicalValues.length>0;if(!(e==null||e.values.length==0&&!r))if(r){let n=[],i=[];return e.hierarchicalValues.forEach(a=>{n.push(a.join(" > ")),a.length>2?i.push(`... > ${a[a.length-1]}`):i.push(a.join(" > "))}),{key:e.key,label:e.label,value:n.join(", "),displayValue:i.join(", ")}}else{let n=e.values.join(", ");return{key:e.key,label:e.label,value:n,displayValue:n}}}computeClustersItemsForMetadata(e,r,n="No value"){var i,a;let s=t.extractResultMetadata(this.selectedResult,e),c=(i=s?.label)!==null&&i!==void 0?i:(a=this.getMetadataDescriptor(e))===null||a===void 0?void 0:a.label;return this.allResults.map(p=>t.extractResultMetadata(p,e)).map(p=>p??{key:e,label:c,value:void 0,displayValue:n}).filter(p=>p.value!=s?.value).filter((p,h,f)=>f.findIndex(m=>m.value===p.value)===h).map(p=>({result:this.findBestResultForMetadataValue(e,p.value),metadata:p})).sort((p,h)=>this.compareMetadata(p.metadata.value,h.metadata.value,e,r))}compareMetadata(e,r,n,i){if(e==null)return-1;if(r==null)return 1;let a=this.getMetadataDescriptor(n),s=a?.sortRule||"NONE",c=a?.reverseSort||!1;if(s=="ALPHABET"||s=="VERSION"){let d=e.localeCompare(r,i,{numeric:!0});return c?d*-1:d}return 0}getMetadataDescriptor(e){return this.metadataDescriptors.find(r=>e==r.key)}findBestResultForMetadataValue(e,r){let n=this.allResults.filter(d=>{var p;return((p=t.extractResultMetadata(d,e))===null||p===void 0?void 0:p.value)==r}),a=[...t.extractResultMetadata(this.selectedResult).filter(d=>this.clusteringMetadata.has(d.key)).filter(d=>d.key!==e)],s,c=-1;for(let d of n){let p=this.countMatchingMetadata(d,a);if(p>c&&(c=p,s=d,p===a.length))break}return s}countMatchingMetadata(e,r){return t.extractResultMetadata(e).filter(n=>r.some(i=>i.key===n.key&&i.value===n.value)).length}};var Pn={};V(Pn,{Debouncer:()=>Se});var Se=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let n=[...this.callbacks];this.callbacks=[];let i=(e=this.rejectPromise)!==null&&e!==void 0?e:()=>null,a=(r=this.resolvePromise)!==null&&r!==void 0?r:()=>null;this.clearPromise();for(let s of n)try{await s()}catch(c){i(c);return}a(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var $n={};V($n,{customElement:()=>re,isNumber:()=>ws,jsonProperty:()=>Be,optionalNumberProperty:()=>Dd});var In={};V(In,{dateReviver:()=>Id,deepEqual:()=>_e,delay:()=>wo,eventPathContainsMatchingElement:()=>Ln,flatDeep:()=>Cs,hasChanged:()=>Lr,last:()=>kd,minmax:()=>Tn,parseDate:()=>Es,waitFor:()=>Os,waitUntil:()=>Td});var wo=t=>new Promise(e=>setTimeout(e,t));async function Td(t,e=10,r=2e4){await Os(async()=>await t()||void 0,e,r)}async function Os(t,e=10,r=2e4){let n=await t(),i,a;for(i=a=performance.now();n==null&&(!r||a-i<r);)await wo(e),n=await t(),a=performance.now();if(n==null)throw new Error("Timeout exceeded");return n}function Cs(t,e){return t.flatMap(r=>[r,...Cs(e(r),e)])}function Id(...t){return function(e,r){return t.includes(e)?Es(r):r}}function Es(t){return t.match(/^\d{4}-\d{2}-\d{2}$/)&&(t=t.replace(/-/g,"/")),t=t.replace(" ","T").replace(/^(.+)(\+\d{2})(\d{2})$/,(e,r,n,i)=>r+n+":"+i),new Date(t)}function $d(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;var r,n,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!_e(t[n],e[n]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;for(n of t.entries())if(!_e(n[1],e.get(n[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(n of t.entries())if(!e.has(n[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if(i=Object.keys(t),r=i.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,i[n]))return!1;for(n=r;n--!==0;){var a=i[n];if(!_e(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function _e(t,e){try{return $d(t,e)}catch{return!1}}function Lr(t,e){return!_e(t,e)}function Ln(t,e,r=window.document.body){if(e.length>0){let n=t.composedPath();for(let i of n){if(i===r)return!1;if(i.matches&&e.some(a=>i.matches(a)))return!0}}return!1}function Tn(t,e,r){return Math.min(Math.max(t,e),r)}function kd(t){return t[t.length-1]}var re=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function Be(t,e){let r=()=>JSON.parse(JSON.stringify(t));return A({type:Object,converter:{fromAttribute:n=>{if(n==null)return r();try{return JSON.parse(n)}catch{return r()}},toAttribute:n=>JSON.stringify(n)},hasChanged:Lr,...e??{}})}function Dd(t){return A({type:Object,converter:{fromAttribute:e=>{if(e!=null)return ws(e)?+e:void 0},toAttribute:e=>e==null?void 0:""+e},...t??{}})}function ws(t){return!isNaN(parseFloat(t))}var li={};V(li,{designSystemVariables:()=>Y});var ci={};V(ci,{DesignSystemFamily:()=>Pe,DesignSystemSize:()=>le,FtCssVariableFactory:()=>o,badge:()=>Hd,banner:()=>Wd,breadcrumb:()=>zd,button:()=>g,chart:()=>tp,checkbox:()=>np,chip:()=>Bd,chipChoice:()=>Md,collapsible:()=>Qd,comboboxMultiSelect:()=>Xd,comboboxSingleSelect:()=>Yd,drawer:()=>Vd,floatingMenu:()=>qd,foundation:()=>l,link:()=>Fd,modal:()=>q,notice:()=>op,notification:()=>sp,pageDesigner:()=>rp,pageHeader:()=>jd,popover:()=>Jd,radio:()=>ap,resolveFamilyClass:()=>ai,resolveSizeClass:()=>si,semantic:()=>u,setVariable:()=>w,switch_:()=>ep,tabs:()=>Gd,textArea:()=>Zd,textInput:()=>Kd,toggle:()=>ip,tooltip:()=>cp,typographies:()=>Tr,typographyBody1Medium:()=>Fn,typographyBody1Regular:()=>Bn,typographyBody1Semibold:()=>Wn,typographyBody2Medium:()=>zn,typographyBody2MediumUnderline:()=>As,typographyBody2Regular:()=>Hn,typographyBody2Semibold:()=>jn,typographyCaption1Bold:()=>Qn,typographyCaption1Medium:()=>Xn,typographyCaption1Semibold:()=>Jn,typographyCaption2Bold:()=>ri,typographyCaption2Medium:()=>ei,typographyCaption2Semibold:()=>ti,typographyCaption3Bold:()=>ii,typographyCaption3Medium:()=>oi,typographyCaption3Semibold:()=>ni,typographyDisplay:()=>kn,typographyLabel1Bold:()=>Kn,typographyLabel1Medium:()=>Vn,typographyLabel1Semibold:()=>Gn,typographyLabel2Bold:()=>Yn,typographyLabel2Medium:()=>Zn,typographyLabel2Semibold:()=>qn,typographyTitle1:()=>Dn,typographyTitle2:()=>Un,typographyTitle3:()=>Mn,typographyVariants:()=>Ud});var Ye=t=>typeof t=="string"?wt(t):t,o=class{static create(e,r,n,i){let a=c=>Ye(c??i),s=D`var(${Ye(e)}, ${a(i)})`;return s.name=e,s.description=r,s.category=n,s.defaultValue=i,s.defaultCssValue=a,s.get=c=>D`var(${Ye(e)}, ${a(c)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(e,r,n,i){let a=c=>n.get(c??i),s=D`var(${Ye(e)}, ${a(i)})`;return s.name=e,s.description=r,s.category=n.category,s.fallbackVariable=n,s.defaultValue=i,s.defaultCssValue=a,s.get=c=>D`var(${Ye(e)}, ${a(c)})`,s.breadcrumb=()=>[n.name,...n.breadcrumb()],s.lastResortDefaultValue=()=>i??n.lastResortDefaultValue(),s}static external(e,r){let n=a=>e.fallbackVariable?e.fallbackVariable.get(a??e.defaultValue):Ye(a??e.lastResortDefaultValue()),i=D`var(${Ye(e.name)}, ${n(e.defaultValue)})`;return i.name=e.name,i.category=e.category,i.fallbackVariable=e.fallbackVariable,i.defaultValue=e.defaultValue,i.context=r,i.defaultCssValue=n,i.get=a=>D`var(${Ye(e.name)}, ${n(a)})`,i.breadcrumb=()=>e.fallbackVariable?[e.fallbackVariable.name,...e.fallbackVariable.breadcrumb()]:[],i.lastResortDefaultValue=()=>e.lastResortDefaultValue(),i}};function w(t,e){return Ye(`${t.name}: ${e}`)}var l={colorWhite:o.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:o.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:o.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:o.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:o.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:o.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:o.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:o.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:o.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:o.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:o.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:o.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:o.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:o.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:o.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:o.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:o.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:o.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:o.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:o.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:o.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:o.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:o.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:o.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:o.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:o.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:o.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:o.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:o.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:o.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:o.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:o.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:o.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:o.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:o.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:o.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:o.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:o.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:o.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:o.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:o.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:o.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:o.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:o.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:o.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:o.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:o.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:o.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:o.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:o.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:o.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:o.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:o.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:o.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:o.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:o.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:o.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:o.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:o.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:o.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:o.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:o.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:o.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:o.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:o.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:o.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:o.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:o.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:o.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:o.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:o.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:o.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:o.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:o.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:o.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:o.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:o.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:o.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:o.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:o.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:o.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:o.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:o.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:o.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:o.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:o.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:o.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:o.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:o.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:o.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:o.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:o.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:o.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:o.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:o.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:o.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:o.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:o.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:o.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:o.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:o.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:o.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:o.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:o.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:o.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:o.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:o.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:o.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:o.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:o.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:o.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:o.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:o.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:o.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:o.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:o.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:o.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:o.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:o.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:o.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:o.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:o.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:o.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:o.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:o.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:o.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:o.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:o.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:o.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:o.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:o.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:o.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:o.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:o.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:o.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:o.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:o.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:o.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:o.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:o.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:o.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:o.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:o.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:o.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:o.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:o.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:o.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:o.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:o.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:o.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:o.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:o.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:o.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:o.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:o.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:o.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:o.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:o.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:o.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:o.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:o.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:o.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:o.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:o.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:o.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:o.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:o.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:o.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:o.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:o.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:o.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:o.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:o.create("--ft-icon-size-1","","SIZE","0.75rem"),iconSize2:o.create("--ft-icon-size-2","","SIZE","1rem"),iconSize3:o.create("--ft-icon-size-3","","SIZE","1.25rem"),iconSize4:o.create("--ft-icon-size-4","","SIZE","1.5rem"),iconSize5:o.create("--ft-icon-size-5","","SIZE","2rem"),iconSize6:o.create("--ft-icon-size-6","","SIZE","3rem"),opacity0:o.create("--ft-opacity-0","","NUMBER","0"),opacity8:o.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:o.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:o.create("--ft-opacity-24","","NUMBER","0.24"),opacity32:o.create("--ft-opacity-32","","NUMBER","0.32"),opacity40:o.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:o.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:o.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:o.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:o.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:o.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:o.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:o.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:o.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:o.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:o.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},kn={fontFamily:o.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:o.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-display-textCase","","UNKNOWN","none")},Dn={fontFamily:o.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:o.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},Un={fontFamily:o.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:o.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:o.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},Mn={fontFamily:o.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:o.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:o.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:o.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},Bn={fontFamily:o.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},Fn={fontFamily:o.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},Wn={fontFamily:o.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:o.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},Hn={fontFamily:o.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:o.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},zn={fontFamily:o.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},As={fontFamily:o.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:o.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:o.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},jn={fontFamily:o.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:o.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:o.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:o.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},Vn={fontFamily:o.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},Gn={fontFamily:o.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},Kn={fontFamily:o.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:o.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},Zn={fontFamily:o.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},qn={fontFamily:o.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},Yn={fontFamily:o.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:o.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:o.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:o.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},Xn={fontFamily:o.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},Jn={fontFamily:o.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},Qn={fontFamily:o.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:o.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},ei={fontFamily:o.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},ti={fontFamily:o.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},ri={fontFamily:o.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:o.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},oi={fontFamily:o.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:o.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},ni={fontFamily:o.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:o.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},ii={fontFamily:o.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:o.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:o.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:o.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:o.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:o.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:o.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:o.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:o.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")},Tr={display:kn,"title-1":Dn,"title-2":Un,"title-3":Mn,"body-1-regular":Bn,"body-1-medium":Fn,"body-1-semibold":Wn,"body-2-regular":Hn,"body-2-medium":zn,"body-2-medium-underline":As,"body-2-semibold":jn,"label-1-medium":Vn,"label-1-semibold":Gn,"label-1-bold":Kn,"label-2-medium":Zn,"label-2-semibold":qn,"label-2-bold":Yn,"caption-1-medium":Xn,"caption-1-semibold":Jn,"caption-1-bold":Qn,"caption-2-medium":ei,"caption-2-semibold":ti,"caption-2-bold":ri,"caption-3-medium":oi,"caption-3-semibold":ni,"caption-3-bold":ii},Ud=["display","title-1","title-2","title-3","body-1","body-2","body-2-underline","label-1","label-2","caption-1","caption-2","caption-3"];var u={backgroundActionPrimary:o.extend("--ft-background-action-primary","Used as backgorund of primary action components.",l.colorBrand0),backgroundErrorSubtle:o.extend("--ft-background-error-subtle","Used as background of subtle error components.",l.colorRed10),backgroundInfoSubtle:o.extend("--ft-background-info-subtle","Used as background of subtle information components.",l.colorCyan10),backgroundWarningSubtle:o.extend("--ft-background-warning-subtle","Used as background of subtle information components.",l.colorOrange10),backgroundSuccessSubtle:o.extend("--ft-background-success-subtle","Used as background of subtle success components.",l.colorGreen10),backgroundGlobalSurface:o.extend("--ft-background-global-surface","Used as app background.",l.colorWhite),backgroundGlobalOnSurface:o.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",l.colorGray10),backgroundGlobalOnSurfaceDark:o.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",l.colorGray30),contentActionPrimary:o.extend("--ft-content-action-primary","Used on label of primary action on light surface.",l.colorBrand0),contentWarningPrimary:o.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",l.colorOrange200),contentWarningIconOnly:o.extend("--ft-content-warning-icon-only","Used on warning status icons alone",l.colorOrange0),contentErrorPrimary:o.extend("--ft-content-error-primary","Used on label of error messages on light surface.",l.colorRed0),contentErrorIconOnly:o.extend("--ft-content-error-icon-only","Used on error status icons alone",l.colorRed70),contentInfoPrimary:o.extend("--ft-content-info-primary","Used on label of information messages on light surface.",l.colorCyan200),contentInfoIconOnly:o.extend("--ft-content-info-icon-only","Used on info status icons alone",l.colorCyan0),contentSuccessPrimary:o.extend("--ft-content-success-primary","Used on label of success messages on light surface.",l.colorGreen200),contentSuccessIconOnly:o.extend("--ft-content-success-icon-only","Used on success status icons alone",l.colorGreen0),contentGlobalPrimary:o.extend("--ft-content-global-primary","Used for main content on the page.",l.colorGray500),contentGlobalSecondary:o.extend("--ft-content-global-secondary",`Used for secondary content, often paired with primary content.
|
|
7
|
+
Also for action icons.`,l.colorGray200),contentGlobalSubtle:o.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",l.colorGray0),contentGlobalOnColor:o.extend("--ft-content-global-on-color","Used for content on a dominant color.",l.colorWhite),borderActionPrimary:o.extend("--ft-border-action-primary","Used as border for primary action components.",l.colorBrand0),borderActionFocusRing:o.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",l.colorCyan0),borderWarningPrimary:o.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",l.colorOrange200),borderWarningSubtle:o.extend("--ft-border-warning-subtle","Used as border for warning components.",l.colorOrange30),borderSuccessPrimary:o.extend("--ft-border-success-primary","Used as border for success buttons.",l.colorGreen200),borderSuccessSubtle:o.extend("--ft-border-success-subtle","Used as border for success components.",l.colorGreen30),borderErrorPrimary:o.extend("--ft-border-error-primary","Used as border for text fields in error states.",l.colorRed0),borderErrorSubtle:o.extend("--ft-border-error-subtle","Used as border for error components.",l.colorRed30),borderInfoPrimary:o.extend("--ft-border-info-primary","Used as border for buttons in info color.",l.colorCyan200),borderInfoSubtle:o.extend("--ft-border-info-subtle","Used as border for information components.",l.colorCyan30),borderGlobalPrimary:o.extend("--ft-border-global-primary","Used as border for element like input.",l.colorGray50),borderGlobalSubtle:o.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",l.colorGray30),borderInputPrimary:o.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",l.colorGray80),borderNeutralPrimary:o.extend("--ft-border-neutral-primary","Used as border for neutral secondary buttons",l.colorGray200)};var g={largeHeight:o.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:o.extend("--ft-button-large-horizontal-padding","",l.spacing4),largeGap:o.extend("--ft-button-large-gap","",l.spacing2),largeBorderRadius:o.extend("--ft-button-large-border-radius","",l.borderRadiusS),largeIconSize:o.extend("--ft-button-large-icon-size","",l.iconSize3),largeBorderWidth:o.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:o.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:o.create("--ft-button-large-icon-only-width","","SIZE","40px"),mediumHeight:o.create("--ft-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:o.extend("--ft-button-medium-horizontal-padding","",l.spacing3),mediumGap:o.extend("--ft-button-medium-gap","",l.spacing2),mediumBorderRadius:o.extend("--ft-button-medium-border-radius","",l.borderRadiusS),mediumIconSize:o.extend("--ft-button-medium-icon-size","",l.iconSize2),mediumBorderWidth:o.create("--ft-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:o.create("--ft-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:o.create("--ft-button-medium-icon-only-width","","SIZE","30px"),smallHeight:o.create("--ft-button-small-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-button-small-horizontal-padding","",l.spacing2),smallGap:o.extend("--ft-button-small-gap","",l.spacing1),smallBorderRadius:o.extend("--ft-button-small-border-radius","",l.borderRadiusS),smallIconSize:o.extend("--ft-button-small-icon-size","",l.iconSize1),smallBorderWidth:o.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:o.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:o.create("--ft-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:o.create("--ft-button-x-small-height","","SIZE","16px"),xSmallIconSize:o.extend("--ft-button-x-small-icon-size","",l.iconSize1),xSmallFocusOutlineOffset:o.create("--ft-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:o.create("--ft-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:o.create("--ft-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:o.extend("--ft-button-round-border-radius","",l.borderRadiusPill),primaryBrandBackgroundColor:o.extend("--ft-button-primary-brand-background-color","",u.backgroundActionPrimary),primaryBrandColor:o.extend("--ft-button-primary-brand-color","",u.contentGlobalOnColor),primaryBrandIconColor:o.extend("--ft-button-primary-brand-icon-color","",u.contentGlobalOnColor),primaryBrandStateLayerColor:o.extend("--ft-button-primary-brand-state-layer-color","",u.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:o.extend("--ft-button-primary-brand-hover-state-layer-opacity","",l.opacity16),primaryBrandFocusStateLayerOpacity:o.extend("--ft-button-primary-brand-focus-state-layer-opacity","",l.opacity16),primaryBrandActiveStateLayerOpacity:o.extend("--ft-button-primary-brand-active-state-layer-opacity","",l.opacity24),primaryBrandDisabledComponentOpacity:o.extend("--ft-button-primary-brand-disabled-component-opacity","",l.opacity40),focusFocusRingColor:o.extend("--ft-button-focus-focus-ring-color","",u.borderActionFocusRing),tertiaryBrandBackgroundColor:o.create("--ft-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:o.extend("--ft-button-tertiary-brand-color","",u.contentActionPrimary),tertiaryBrandIconColor:o.extend("--ft-button-tertiary-brand-icon-color","",u.contentActionPrimary),tertiaryBrandStateLayerColor:o.extend("--ft-button-tertiary-brand-state-layer-color","",u.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:o.extend("--ft-button-tertiary-brand-hover-state-layer-opacity","",l.opacity8),tertiaryBrandFocusStateLayerOpacity:o.extend("--ft-button-tertiary-brand-focus-state-layer-opacity","",l.opacity8),tertiaryBrandActiveStateLayerOpacity:o.extend("--ft-button-tertiary-brand-active-state-layer-opacity","",l.opacity16),tertiaryBrandDisabledComponentOpacity:o.extend("--ft-button-tertiary-brand-disabled-component-opacity","",l.opacity40),tertiaryInfoBackgroundColor:o.create("--ft-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:o.extend("--ft-button-tertiary-info-color","",u.contentInfoPrimary),tertiaryInfoIconColor:o.extend("--ft-button-tertiary-info-icon-color","",u.contentInfoPrimary),tertiaryInfoStateLayerColor:o.extend("--ft-button-tertiary-info-state-layer-color","",u.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:o.extend("--ft-button-tertiary-info-focus-state-layer-opacity","",l.opacity8),tertiaryInfoHoverStateLayerOpacity:o.extend("--ft-button-tertiary-info-hover-state-layer-opacity","",l.opacity8),tertiaryInfoActiveStateLayerOpacity:o.extend("--ft-button-tertiary-info-active-state-layer-opacity","",l.opacity16),tertiaryInfoDisabledComponentOpacity:o.extend("--ft-button-tertiary-info-disabled-component-opacity","",l.opacity40),tertiarySuccessBackgroundColor:o.create("--ft-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:o.extend("--ft-button-tertiary-success-color","",u.contentSuccessPrimary),tertiarySuccessIconColor:o.extend("--ft-button-tertiary-success-icon-color","",u.contentSuccessPrimary),tertiarySuccessStateLayerColor:o.extend("--ft-button-tertiary-success-state-layer-color","",u.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:o.extend("--ft-button-tertiary-success-hover-state-layer-opacity","",l.opacity8),tertiarySuccessFocusStateLayerOpacity:o.extend("--ft-button-tertiary-success-focus-state-layer-opacity","",l.opacity8),tertiarySuccessActiveStateLayerOpacity:o.extend("--ft-button-tertiary-success-active-state-layer-opacity","",l.opacity16),tertiarySuccessDisabledComponentOpacity:o.extend("--ft-button-tertiary-success-disabled-component-opacity","",l.opacity40),tertiaryWarningBackgroundColor:o.create("--ft-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:o.extend("--ft-button-tertiary-warning-color","",u.contentWarningPrimary),tertiaryWarningIconColor:o.extend("--ft-button-tertiary-warning-icon-color","",u.contentWarningPrimary),tertiaryWarningStateLayerColor:o.extend("--ft-button-tertiary-warning-state-layer-color","",u.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:o.extend("--ft-button-tertiary-warning-hover-state-layer-opacity","",l.opacity8),tertiaryWarningFocusStateLayerOpacity:o.extend("--ft-button-tertiary-warning-focus-state-layer-opacity","",l.opacity8),tertiaryWarningActiveStateLayerOpacity:o.extend("--ft-button-tertiary-warning-active-state-layer-opacity","",l.opacity16),tertiaryWarningDisabledComponentOpacity:o.extend("--ft-button-tertiary-warning-disabled-component-opacity","",l.opacity40),tertiaryErrorBackgroundColor:o.create("--ft-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:o.extend("--ft-button-tertiary-error-color","",u.contentErrorPrimary),tertiaryErrorIconColor:o.extend("--ft-button-tertiary-error-icon-color","",u.contentErrorPrimary),tertiaryErrorStateLayerColor:o.extend("--ft-button-tertiary-error-state-layer-color","",u.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:o.extend("--ft-button-tertiary-error-hover-state-layer-opacity","",l.opacity8),tertiaryErrorFocusStateLayerOpacity:o.extend("--ft-button-tertiary-error-focus-state-layer-opacity","",l.opacity8),tertiaryErrorActiveStateLayerOpacity:o.extend("--ft-button-tertiary-error-active-state-layer-opacity","",l.opacity16),tertiaryErrorDisabledComponentOpacity:o.extend("--ft-button-tertiary-error-disabled-component-opacity","",l.opacity40),tertiaryNeutralBackgroundColor:o.create("--ft-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:o.extend("--ft-button-tertiary-neutral-icon-color","",u.contentGlobalSecondary),tertiaryNeutralColor:o.extend("--ft-button-tertiary-neutral-color","",u.contentGlobalSecondary),tertiaryNeutralStateLayerColor:o.extend("--ft-button-tertiary-neutral-state-layer-color","",u.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-hover-state-layer-opacity","",l.opacity8),tertiaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-focus-state-layer-opacity","",l.opacity8),tertiaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-tertiary-neutral-active-state-layer-opacity","",l.opacity16),tertiaryNeutralDisabledComponentOpacity:o.extend("--ft-button-tertiary-neutral-disabled-component-opacity","",l.opacity40),secondaryBrandBackgroundColor:o.create("--ft-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:o.extend("--ft-button-secondary-brand-color","",u.contentActionPrimary),secondaryBrandIconColor:o.extend("--ft-button-secondary-brand-icon-color","",u.contentActionPrimary),secondaryBrandStateLayerColor:o.extend("--ft-button-secondary-brand-state-layer-color","",u.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:o.extend("--ft-button-secondary-brand-hover-state-layer-opacity","",l.opacity8),secondaryBrandFocusStateLayerOpacity:o.extend("--ft-button-secondary-brand-focus-state-layer-opacity","",l.opacity8),secondaryBrandActiveStateLayerOpacity:o.extend("--ft-button-secondary-brand-active-state-layer-opacity","",l.opacity16),secondaryBrandDisabledComponentOpacity:o.extend("--ft-button-secondary-brand-disabled-component-opacity","",l.opacity40),secondaryBrandBorderColor:o.extend("--ft-button-secondary-brand-border-color","",u.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:o.extend("--ft-button-secondary-neutral-hover-state-layer-opacity","",l.opacity8),secondaryNeutralFocusStateLayerOpacity:o.extend("--ft-button-secondary-neutral-focus-state-layer-opacity","",l.opacity8),secondaryNeutralActiveStateLayerOpacity:o.extend("--ft-button-secondary-neutral-active-state-layer-opacity","",l.opacity16),secondaryNeutralDisabledComponentOpacity:o.extend("--ft-button-secondary-neutral-disabled-component-opacity","",l.opacity40),secondaryNeutralBackgroundColor:o.create("--ft-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:o.extend("--ft-button-secondary-neutral-color","",u.contentGlobalSecondary),secondaryNeutralIconColor:o.extend("--ft-button-secondary-neutral-icon-color","",u.contentGlobalSecondary),secondaryNeutralStateLayerColor:o.extend("--ft-button-secondary-neutral-state-layer-color","",u.contentGlobalSecondary),secondaryNeutralBorderColor:o.extend("--ft-button-secondary-neutral-border-color","",u.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:o.extend("--ft-button-secondary-info-hover-state-layer-opacity","",l.opacity8),secondaryInfoFocusStateLayerOpacity:o.extend("--ft-button-secondary-info-focus-state-layer-opacity","",l.opacity8),secondaryInfoActiveStateLayerOpacity:o.extend("--ft-button-secondary-info-active-state-layer-opacity","",l.opacity16),secondaryInfoDisabledComponentOpacity:o.extend("--ft-button-secondary-info-disabled-component-opacity","",l.opacity40),secondaryInfoBackgroundColor:o.create("--ft-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:o.extend("--ft-button-secondary-info-border-color","",u.borderInfoPrimary),secondaryInfoColor:o.extend("--ft-button-secondary-info-color","",u.contentInfoPrimary),secondaryInfoIconColor:o.extend("--ft-button-secondary-info-icon-color","",u.contentInfoPrimary),secondaryInfoStateLayerColor:o.extend("--ft-button-secondary-info-state-layer-color","",u.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:o.extend("--ft-button-secondary-success-hover-state-layer-opacity","",l.opacity8),secondarySuccessFocusStateLayerOpacity:o.extend("--ft-button-secondary-success-focus-state-layer-opacity","",l.opacity8),secondarySuccessActiveStateLayerOpacity:o.extend("--ft-button-secondary-success-active-state-layer-opacity","",l.opacity16),secondarySuccessDisabledComponentOpacity:o.extend("--ft-button-secondary-success-disabled-component-opacity","",l.opacity40),secondarySuccessBackgroundColor:o.create("--ft-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:o.extend("--ft-button-secondary-success-border-color","",u.borderSuccessPrimary),secondarySuccessColor:o.extend("--ft-button-secondary-success-color","",u.contentSuccessPrimary),secondarySuccessIconColor:o.extend("--ft-button-secondary-success-icon-color","",u.contentSuccessPrimary),secondarySuccessStateLayerColor:o.extend("--ft-button-secondary-success-state-layer-color","",u.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:o.extend("--ft-button-secondary-warning-hover-state-layer-opacity","",l.opacity8),secondaryWarningFocusStateLayerOpacity:o.extend("--ft-button-secondary-warning-focus-state-layer-opacity","",l.opacity8),secondaryWarningActiveStateLayerOpacity:o.extend("--ft-button-secondary-warning-active-state-layer-opacity","",l.opacity16),secondaryWarningDisabledComponentOpacity:o.extend("--ft-button-secondary-warning-disabled-component-opacity","",l.opacity40),secondaryWarningBackgroundColor:o.create("--ft-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:o.extend("--ft-button-secondary-warning-border-color","",u.borderWarningPrimary),secondaryWarningColor:o.extend("--ft-button-secondary-warning-color","",u.contentWarningPrimary),secondaryWarningIconColor:o.extend("--ft-button-secondary-warning-icon-color","",u.contentWarningPrimary),secondaryWarningStateLayerColor:o.extend("--ft-button-secondary-warning-state-layer-color","",u.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:o.extend("--ft-button-secondary-error-hover-state-layer-opacity","",l.opacity8),secondaryErrorFocusStateLayerOpacity:o.extend("--ft-button-secondary-error-focus-state-layer-opacity","",l.opacity8),secondaryErrorActiveStateLayerOpacity:o.extend("--ft-button-secondary-error-active-state-layer-opacity","",l.opacity16),secondaryErrorDisabledComponentOpacity:o.extend("--ft-button-secondary-error-disabled-component-opacity","",l.opacity40),secondaryErrorBackgroundColor:o.create("--ft-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:o.extend("--ft-button-secondary-error-border-color","",u.contentErrorPrimary),secondaryErrorColor:o.extend("--ft-button-secondary-error-color","",u.contentErrorPrimary),secondaryErrorIconColor:o.extend("--ft-button-secondary-error-icon-color","",u.contentErrorPrimary),secondaryErrorStateLayerColor:o.extend("--ft-button-secondary-error-state-layer-color","",u.contentErrorPrimary)};var Md={neutralOffHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-hover-state-layer-opacity","",l.opacity8),neutralOffFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-focus-state-layer-opacity","",l.opacity8),neutralOffFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-off-focus-focus-ring-color","",u.borderActionFocusRing),neutralOffActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-off-active-state-layer-opacity","",l.opacity16),neutralOffBackgroundColor:o.extend("--ft-chip-choice-neutral-off-background-color","",u.backgroundGlobalOnSurface),neutralOffBorderColor:o.extend("--ft-chip-choice-neutral-off-border-color","",u.borderGlobalPrimary),neutralOffColor:o.extend("--ft-chip-choice-neutral-off-color","",u.contentGlobalSecondary),neutralOffStateLayerColor:o.extend("--ft-chip-choice-neutral-off-state-layer-color","",u.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-default-state-layer-opacity","",l.opacity16),neutralOnHoverStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-hover-state-layer-opacity","",l.opacity24),neutralOnFocusStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-focus-state-layer-opacity","",l.opacity24),neutralOnFocusFocusRingColor:o.extend("--ft-chip-choice-neutral-on-focus-focus-ring-color","",u.borderActionFocusRing),neutralOnActiveStateLayerOpacity:o.extend("--ft-chip-choice-neutral-on-active-state-layer-opacity","",l.opacity32),neutralOnBackgroundColor:o.extend("--ft-chip-choice-neutral-on-background-color","",u.backgroundGlobalOnSurface),neutralOnBorderColor:o.extend("--ft-chip-choice-neutral-on-border-color","",u.borderGlobalPrimary),neutralOnColor:o.extend("--ft-chip-choice-neutral-on-color","",u.contentGlobalPrimary),neutralOnIconColor:o.extend("--ft-chip-choice-neutral-on-icon-color","",u.contentGlobalPrimary),neutralOnStateLayerColor:o.extend("--ft-chip-choice-neutral-on-state-layer-color","",u.contentGlobalPrimary),largeMinHeight:o.create("--ft-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-choice-large-horizontal-padding","",l.spacing3),largeGap:o.extend("--ft-chip-choice-large-gap","",l.spacing1),largeBorderRadius:o.create("--ft-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-choice-large-icon-size","",l.iconSize3),mediumMinHeight:o.create("--ft-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-choice-medium-horizontal-padding","",l.spacing2),mediumGap:o.extend("--ft-chip-choice-medium-gap","",l.spacing1),mediumBorderRadius:o.create("--ft-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-choice-medium-icon-size","",l.iconSize2)};var Bd={largeMinHeight:o.create("--ft-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:o.extend("--ft-chip-large-horizontal-padding","",l.spacing3),largeButtonRightPadding:o.extend("--ft-chip-large-button-right-padding","",l.spacing1),largeGap:o.extend("--ft-chip-large-gap","",l.spacing1),largeFocusOutlineOffset:o.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:o.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:o.create("--ft-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:o.create("--ft-chip-large-border-width","","SIZE","1px"),largeIconSize:o.extend("--ft-chip-large-icon-size","",l.iconSize3),mediumMinHeight:o.create("--ft-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:o.extend("--ft-chip-medium-horizontal-padding","",l.spacing2),mediumButtonRightPadding:o.extend("--ft-chip-medium-button-right-padding","",l.spacing05),mediumGap:o.extend("--ft-chip-medium-gap","",l.spacing1),mediumFocusOutlineOffset:o.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:o.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:o.create("--ft-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:o.create("--ft-chip-medium-border-width","","SIZE","1px"),mediumIconSize:o.extend("--ft-chip-medium-icon-size","",l.iconSize2),smallMinHeight:o.create("--ft-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:o.extend("--ft-chip-small-horizontal-padding","",l.spacing1),smallButtonRightPadding:o.extend("--ft-chip-small-button-right-padding","",l.spacing05),smallGap:o.extend("--ft-chip-small-gap","",l.spacing1),smallFocusOutlineOffset:o.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:o.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:o.create("--ft-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:o.create("--ft-chip-small-border-width","","SIZE","1px"),smallIconSize:o.extend("--ft-chip-small-icon-size","",l.iconSize1),neutralBackgroundColor:o.extend("--ft-chip-neutral-background-color","",u.backgroundGlobalOnSurface),neutralColor:o.extend("--ft-chip-neutral-color","",u.contentGlobalSecondary),neutralIconColor:o.extend("--ft-chip-neutral-icon-color","",u.contentGlobalSecondary),neutralBorderColor:o.extend("--ft-chip-neutral-border-color","",u.borderGlobalSubtle),infoBackgroundColor:o.extend("--ft-chip-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-chip-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-chip-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-chip-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-chip-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-chip-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-chip-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-chip-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-chip-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-chip-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-chip-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-chip-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-chip-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-chip-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-chip-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-chip-error-border-color","",u.borderErrorSubtle)};var Fd={brandHoverOpacity:o.extend("--ft-link-brand-hover-opacity","",l.opacity80),brandHoverColor:o.extend("--ft-link-brand-hover-color","",u.contentActionPrimary),brandFocusFocusRingColor:o.extend("--ft-link-brand-focus-focus-ring-color","",u.borderActionFocusRing),brandFocusColor:o.extend("--ft-link-brand-focus-color","",u.contentActionPrimary),brandDefaultColor:o.extend("--ft-link-brand-default-color","",u.contentActionPrimary),brandActiveColor:o.extend("--ft-link-brand-active-color","",u.contentActionPrimary),infoHoverOpacity:o.extend("--ft-link-info-hover-opacity","",l.opacity80),infoHoverColor:o.extend("--ft-link-info-hover-color","",u.contentInfoPrimary),infoFocusFocusRingColor:o.extend("--ft-link-info-focus-focus-ring-color","",u.borderActionFocusRing),infoFocusColor:o.extend("--ft-link-info-focus-color","",u.contentInfoPrimary),infoDefaultColor:o.extend("--ft-link-info-default-color","",u.contentInfoPrimary),infoActiveColor:o.extend("--ft-link-info-active-color","",u.contentInfoPrimary),neutralFocusFocusRingColor:o.extend("--ft-link-neutral-focus-focus-ring-color","",u.borderActionFocusRing),neutralFocusColor:o.extend("--ft-link-neutral-focus-color","",u.contentActionPrimary),neutralDefaultColor:o.extend("--ft-link-neutral-default-color","",u.contentGlobalPrimary),neutralHoverColor:o.extend("--ft-link-neutral-hover-color","",u.contentActionPrimary),neutralActiveColor:o.extend("--ft-link-neutral-active-color","",u.contentActionPrimary),neutralVisitedColor:o.extend("--ft-link-neutral-visited-color","",l.colorBrand100)};var Wd={iconSize:o.extend("--ft-banner-icon-size","",l.iconSize5),borderWidth:o.create("--ft-banner-border-width","","SIZE","1px"),leftPadding:o.extend("--ft-banner-left-padding","",l.spacing6),rightPadding:o.extend("--ft-banner-right-padding","",l.spacing6),verticalPadding:o.extend("--ft-banner-vertical-padding","",l.spacing6),horizontalSideGap:o.extend("--ft-banner-horizontal-side-gap","",l.spacing6),horizontalMobileGap:o.extend("--ft-banner-horizontal-mobile-gap","",l.spacing4),verticalMobileGap:o.extend("--ft-banner-vertical-mobile-gap","",l.spacing6),horizontalMiddleGap:o.extend("--ft-banner-horizontal-middle-gap","",l.spacing20),infoBackgroundColor:o.extend("--ft-banner-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-banner-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-banner-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-banner-info-border-color","",u.borderInfoSubtle)};var Hd={horizontalPadding:o.extend("--ft-badge-horizontal-padding","",l.spacing1),verticalPadding:o.extend("--ft-badge-vertical-padding","",l.spacing1),borderRadius:o.extend("--ft-badge-border-radius","",l.borderRadiusPill),color:o.extend("--ft-badge-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-badge-background-color","",u.contentActionPrimary)};var zd={horizontalGap:o.extend("--ft-breadcrumb-horizontal-gap","",l.spacing1),verticalGap:o.extend("--ft-breadcrumb-vertical-gap","",l.spacing2),currentColor:o.extend("--ft-breadcrumb-current-color","",u.contentGlobalPrimary),previousNonClickableColor:o.extend("--ft-breadcrumb-previous-non-clickable-color","",u.contentGlobalSecondary),iconColor:o.extend("--ft-breadcrumb-icon-color","",u.contentGlobalSubtle)};var jd={horizontalPadding:o.extend("--ft-page-header-horizontal-padding","",l.spacing6),horizontalGap:o.extend("--ft-page-header-horizontal-gap","",l.spacing4),verticalGap:o.extend("--ft-page-header-vertical-gap","",l.spacing2),classicVerticalPadding:o.extend("--ft-page-header-classic-vertical-padding","",l.spacing6),multilineVerticalPadding:o.extend("--ft-page-header-multiline-vertical-padding","",l.spacing4),inlineVerticalPadding:o.extend("--ft-page-header-inline-vertical-padding","",l.spacing2),backgroundColor:o.extend("--ft-page-header-background-color","",l.colorWhite),bottomBorderColor:o.extend("--ft-page-header-bottom-border-color","",u.borderGlobalSubtle),titleColor:o.extend("--ft-page-header-title-color","",u.contentGlobalPrimary),subtitleColor:o.extend("--ft-page-header-subtitle-color","",u.contentGlobalSecondary)};var q={smallContainerTargetWidth:o.create("--ft-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:o.extend("--ft-modal-small-container-margin","",l.spacing6),mediumContainerTargetWidth:o.create("--ft-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:o.extend("--ft-modal-medium-container-margin","",l.spacing6),largeContainerTargetWidth:o.create("--ft-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:o.extend("--ft-modal-large-container-margin","",l.spacing6),overlayBackgroundColor:o.extend("--ft-modal-overlay-background-color","",l.colorGray700),overlayOpacity:o.extend("--ft-modal-overlay-opacity","",l.opacity40),shadow:o.extend("--ft-modal-shadow","",l.shadowElevation03),bodyBackgroundColor:o.extend("--ft-modal-body-background-color","",l.colorWhite),bodyColor:o.extend("--ft-modal-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-modal-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:o.extend("--ft-modal-body-vertical-padding","",l.spacing6),bodyVerticalGap:o.extend("--ft-modal-body-vertical-gap","",l.spacing6),headerBackgroundColor:o.extend("--ft-modal-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-modal-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-modal-header-color","",u.contentGlobalPrimary),headerLeadingIconColor:o.extend("--ft-modal-header-leading-icon-color","",u.contentGlobalPrimary),headerVerticalPadding:o.extend("--ft-modal-header-vertical-padding","",l.spacing1),headerRightPadding:o.extend("--ft-modal-header-right-padding","",l.spacing1),headerLeftPadding:o.extend("--ft-modal-header-left-padding","",l.spacing6),headerGap:o.extend("--ft-modal-header-gap","",l.spacing2),headerBorderBottomWidth:o.create("--ft-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:o.extend("--ft-modal-border-radius","",l.borderRadiusM)};var Vd={overlayOpacity:o.extend("--ft-drawer-overlay-opacity","",l.opacity40),shadow:o.extend("--ft-drawer-shadow","",l.shadowElevation03),bodyColor:o.extend("--ft-drawer-body-color","",u.contentGlobalPrimary),bodyHorizontalPadding:o.extend("--ft-drawer-body-horizontal-padding","",l.spacing6),bodyVerticalPadding:o.extend("--ft-drawer-body-vertical-padding","",l.spacing6),bodyGap:o.extend("--ft-drawer-body-gap","",l.spacing6),bodyBackgroundColor:o.extend("--ft-drawer-body-background-color","",l.colorWhite),headerBackgroundColor:o.extend("--ft-drawer-header-background-color","",u.backgroundGlobalOnSurface),headerBorderColor:o.extend("--ft-drawer-header-border-color","",u.borderGlobalSubtle),headerColor:o.extend("--ft-drawer-header-color","",u.contentGlobalPrimary),headerTrailingIconColor:o.extend("--ft-drawer-header-trailing-icon-color","",u.contentGlobalSecondary),headerHeight:o.create("--ft-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:o.extend("--ft-drawer-header-horizontal-padding","",l.spacing2),headerBorderWidth:o.create("--ft-drawer-header-border-width","","SIZE","1px"),headerGap:o.extend("--ft-drawer-header-gap","",l.spacing3),buttonsBarBackgroundColor:o.extend("--ft-drawer-buttons-bar-background-color","",u.backgroundGlobalOnSurface),buttonsBarBorderColor:o.extend("--ft-drawer-buttons-bar-border-color","",u.borderGlobalSubtle),buttonsBarColor:o.extend("--ft-drawer-buttons-bar-color","",u.contentGlobalPrimary),buttonsBarHorizontalPadding:o.extend("--ft-drawer-buttons-bar-horizontal-padding","",l.spacing6),buttonsBarVerticalPadding:o.extend("--ft-drawer-buttons-bar-vertical-padding","",l.spacing4),buttonsBarGap:o.extend("--ft-drawer-buttons-bar-gap","",l.spacing3),buttonsBarBorderWidth:o.create("--ft-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:o.create("--ft-drawer-container-width","","SIZE","66%"),containerMinWidth:o.create("--ft-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:o.create("--ft-drawer-container-max-width","","SIZE","1000px"),containerHeight:o.create("--ft-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:o.extend("--ft-drawer-overlay-background-color","",l.colorGray700)};var Gd={offBorderBottomWidth:o.create("--ft-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:o.extend("--ft-tabs-off-hover-state-layer-opacity","",l.opacity8),offDefaultStateLayerOpacity:o.extend("--ft-tabs-off-default-state-layer-opacity","",l.opacity0),offFocusStateLayerOpacity:o.extend("--ft-tabs-off-focus-state-layer-opacity","",l.opacity8),offDisabledComponentOpacity:o.extend("--ft-tabs-off-disabled-component-opacity","",l.opacity40),offColor:o.extend("--ft-tabs-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-tabs-off-state-layer-color","",u.contentGlobalSubtle),offBorderBottomColor:o.extend("--ft-tabs-off-border-bottom-color","",u.borderGlobalSubtle),activeTabIndicatorHeight:o.create("--ft-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:o.extend("--ft-tabs-top-left-border-radius","",l.borderRadiusS),topRightBorderRadius:o.extend("--ft-tabs-top-right-border-radius","",l.borderRadiusS),withLabelHorizontalPadding:o.extend("--ft-tabs-with-label-horizontal-padding","",l.spacing4),withLabelVerticalPadding:o.extend("--ft-tabs-with-label-vertical-padding","",l.spacing3),horizontalGap:o.extend("--ft-tabs-horizontal-gap","",l.spacing1),verticalGap:o.extend("--ft-tabs-vertical-gap","",l.spacing1),onHoverStateLayerOpacity:o.extend("--ft-tabs-on-hover-state-layer-opacity","",l.opacity16),onDefaultStateLayerOpacity:o.extend("--ft-tabs-on-default-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:o.extend("--ft-tabs-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:o.extend("--ft-tabs-on-active-state-layer-opacity","",l.opacity24),onColor:o.extend("--ft-tabs-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-tabs-on-state-layer-color","",u.contentActionPrimary),onActiveTabIndicatorColor:o.extend("--ft-tabs-on-active-tab-indicator-color","",u.contentActionPrimary),iconOnlyHorizontalPadding:o.extend("--ft-tabs-icon-only-horizontal-padding","",l.spacing4),iconOnlyVerticalPadding:o.extend("--ft-tabs-icon-only-vertical-padding","",l.spacing4),alertTopPadding:o.extend("--ft-tabs-alert-top-padding","",l.spacing1),alertRightPadding:o.extend("--ft-tabs-alert-right-padding","",l.spacing05),focusOutlineWidth:o.create("--ft-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-tabs-focus-focus-ring-color","",u.borderActionFocusRing)};var Kd={fieldHorizontalPadding:o.extend("--ft-text-input-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:o.extend("--ft-text-input-field-horizontal-gap","",l.spacing3),fieldVerticalGap:o.extend("--ft-text-input-field-vertical-gap","",l.spacing05),fieldIconSize:o.extend("--ft-text-input-field-icon-size","",l.iconSize3),fieldHeight:o.create("--ft-text-input-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-text-input-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ft-text-input-helper-horizontal-gap","",l.spacing1),helperIconSize:o.extend("--ft-text-input-helper-icon-size","",l.iconSize2),borderRadius:o.extend("--ft-text-input-border-radius","",l.borderRadiusM),backgroundColor:o.extend("--ft-text-input-background-color","",l.colorWhite),contentValueColor:o.extend("--ft-text-input-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-text-input-trailing-icon-color","",u.contentGlobalSubtle),labelColor:o.extend("--ft-text-input-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-input-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-input-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-input-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-input-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-input-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-input-error-helper-icon-color","",u.contentErrorIconOnly),warningBorderWidth:o.create("--ft-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:o.create("--ft-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-text-input-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-input-disabled-component-opacity","",l.opacity40)};var Zd={backgroundColor:o.extend("--ft-text-area-background-color","",l.colorWhite),contentValueColor:o.extend("--ft-text-area-content-value-color","",u.contentGlobalPrimary),labelColor:o.extend("--ft-text-area-label-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-text-area-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-text-area-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-text-area-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-text-area-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-text-area-error-helper-text-color","",u.contentErrorPrimary),errorHelperIconColor:o.extend("--ft-text-area-error-helper-icon-color","",u.contentErrorIconOnly),focusFocusRingColor:o.extend("--ft-text-area-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-text-area-disabled-component-opacity","",l.opacity40),fieldHorizontalLeftPadding:o.extend("--ft-text-area-field-horizontal-left-padding","",l.spacing4),fieldHorizontalGap:o.extend("--ft-text-area-field-horizontal-gap","",l.spacing3),fieldVerticalGap:o.extend("--ft-text-area-field-vertical-gap","",l.spacing05),fieldMinHeight:o.create("--ft-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:o.extend("--ft-text-area-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ft-text-area-helper-horizontal-gap","",l.spacing1),helperIconSize:o.extend("--ft-text-area-helper-icon-size","",l.iconSize2),borderRadius:o.extend("--ft-text-area-border-radius","",l.borderRadiusM)};var qd={height:o.create("--ft-floating-menu-height","","SIZE","50px"),horizontalPadding:o.extend("--ft-floating-menu-horizontal-padding","",l.spacing4),offIconColor:o.extend("--ft-floating-menu-off-icon-color","",u.contentGlobalPrimary),offColor:o.extend("--ft-floating-menu-off-color","",u.contentGlobalPrimary),onColor:o.extend("--ft-floating-menu-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-floating-menu-on-state-layer-color","",u.contentActionPrimary),gap:o.extend("--ft-floating-menu-gap","",l.spacing3),focusFocusRingColor:o.extend("--ft-floating-menu-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:o.extend("--ft-floating-menu-focus-state-layer-opacity","",l.opacity8),hoverStateLayerOpacity:o.extend("--ft-floating-menu-hover-state-layer-opacity","",l.opacity8),activeStateLayerOpacity:o.extend("--ft-floating-menu-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:o.extend("--ft-floating-menu-disabled-component-opacity","",l.opacity40),iconSize:o.extend("--ft-floating-menu-icon-size","",l.iconSize3),backgroundColor:o.extend("--ft-floating-menu-background-color","",u.backgroundGlobalOnSurface),shadow:o.extend("--ft-floating-menu-shadow","",l.shadowElevation02)};var Yd={fieldHorizontalPadding:o.extend("--ft-combobox-single-select-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-single-select-field-horizontal-gap","",l.spacing3),fieldVerticalGap:o.extend("--ft-combobox-single-select-field-vertical-gap","",l.spacing05),fieldIconSize:o.extend("--ft-combobox-single-select-field-icon-size","",l.iconSize3),fieldHeight:o.create("--ft-combobox-single-select-field-height","","SIZE","50px"),helperHorizontalPadding:o.extend("--ft-combobox-single-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ft-combobox-single-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:o.extend("--ft-combobox-single-select-helper-vertical-gap","",l.spacing1),helperIconSize:o.extend("--ft-combobox-single-select-helper-icon-size","",l.iconSize2),menuVerticalGap:o.extend("--ft-combobox-single-select-menu-vertical-gap","",l.spacing2),borderRadius:o.extend("--ft-combobox-single-select-border-radius","",l.borderRadiusM),backgroundColor:o.extend("--ft-combobox-single-select-background-color","",l.colorWhite),labelColor:o.extend("--ft-combobox-single-select-label-color","",u.contentGlobalSubtle),contentValueColor:o.extend("--ft-combobox-single-select-content-value-color","",u.contentGlobalPrimary),trailingIconColor:o.extend("--ft-combobox-single-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-single-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-single-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),errorBorderWidth:o.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),errorBorderColor:o.extend("--ft-combobox-single-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-single-select-error-helper-text-color","",u.contentErrorPrimary),warningBorderWidth:o.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-single-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-single-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-single-select-warning-helper-icon-color","",u.contentWarningIconOnly),focusOutlineWidth:o.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-single-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-single-select-disabled-component-opacity","",l.opacity40)};var Xd={backgroundColor:o.extend("--ft-combobox-multi-select-background-color","",l.colorWhite),labelColor:o.extend("--ft-combobox-multi-select-label-color","",u.contentGlobalSubtle),trailingIconColor:o.extend("--ft-combobox-multi-select-trailing-icon-color","",u.contentGlobalSubtle),defaultBorderColor:o.extend("--ft-combobox-multi-select-default-border-color","",u.borderInputPrimary),defaultHelperTextColor:o.extend("--ft-combobox-multi-select-default-helper-text-color","",u.contentGlobalSubtle),defaultBorderWidth:o.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),errorBorderColor:o.extend("--ft-combobox-multi-select-error-border-color","",u.borderErrorPrimary),errorHelperTextColor:o.extend("--ft-combobox-multi-select-error-helper-text-color","",u.contentErrorPrimary),errorHelperIcon:o.extend("--ft-combobox-multi-select-error-helper-icon","",u.contentErrorIconOnly),errorBorderWidth:o.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),warningBorderColor:o.extend("--ft-combobox-multi-select-warning-border-color","",u.borderWarningPrimary),warningHelperTextColor:o.extend("--ft-combobox-multi-select-warning-helper-text-color","",u.contentWarningPrimary),warningHelperIconColor:o.extend("--ft-combobox-multi-select-warning-helper-icon-color","",u.contentWarningIconOnly),warningBorderWidth:o.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-combobox-multi-select-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineWidth:o.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),focusOutlineOffset:o.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:o.extend("--ft-combobox-multi-select-disabled-component-opacity","",l.opacity40),helperHorizontalPadding:o.extend("--ft-combobox-multi-select-helper-horizontal-padding","",l.spacing4),helperHorizontalGap:o.extend("--ft-combobox-multi-select-helper-horizontal-gap","",l.spacing1),helperVerticalGap:o.extend("--ft-combobox-multi-select-helper-vertical-gap","",l.spacing1),helperIconSize:o.extend("--ft-combobox-multi-select-helper-icon-size","",l.iconSize2),fieldHorizontalPadding:o.extend("--ft-combobox-multi-select-field-horizontal-padding","",l.spacing4),fieldHorizontalGap:o.extend("--ft-combobox-multi-select-field-horizontal-gap","",l.spacing3),fieldVerticalGap:o.extend("--ft-combobox-multi-select-field-vertical-gap","",l.spacing05),fieldIconSize:o.extend("--ft-combobox-multi-select-field-icon-size","",l.iconSize3),fieldMaxHeight:o.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),contentValuesHorizontalGap:o.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",l.spacing1),contentValuesVerticalGap:o.extend("--ft-combobox-multi-select-content-values-vertical-gap","",l.spacing1),borderRadius:o.extend("--ft-combobox-multi-select-border-radius","",l.borderRadiusM)};var Jd={backgroundColor:o.extend("--ft-popover-background-color","",u.backgroundGlobalOnSurface),horizontalPadding:o.extend("--ft-popover-horizontal-padding","",l.spacing6),verticalPadding:o.extend("--ft-popover-vertical-padding","",l.spacing6),titleColor:o.extend("--ft-popover-title-color","",u.contentGlobalPrimary),bodyColor:o.extend("--ft-popover-body-color","",u.contentGlobalSecondary),linkColor:o.extend("--ft-popover-link-color","",u.contentActionPrimary),gap:o.extend("--ft-popover-gap","",l.spacing3),borderRadius:o.extend("--ft-popover-border-radius","",l.borderRadiusM),shadow:o.extend("--ft-popover-shadow","",l.shadowElevation02),maxWidth:o.create("--ft-popover-max-width","","SIZE","440px")};var Qd={hoverStateLayerOpacity:o.extend("--ft-collapsible-hover-state-layer-opacity","",l.opacity8),focusStateLayerOpacity:o.extend("--ft-collapsible-focus-state-layer-opacity","",l.opacity8),focusOutlineWidth:o.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:o.extend("--ft-collapsible-focus-focus-ring-color","",u.borderActionFocusRing),activeStateLayerOpacity:o.extend("--ft-collapsible-active-state-layer-opacity","",l.opacity16),disabledComponentOpacity:o.extend("--ft-collapsible-disabled-component-opacity","",l.opacity40),horizontalPadding:o.extend("--ft-collapsible-horizontal-padding","",l.spacing4),verticalPadding:o.extend("--ft-collapsible-vertical-padding","",l.spacing3),color:o.extend("--ft-collapsible-color","",u.contentGlobalPrimary),stateLayerColor:o.extend("--ft-collapsible-state-layer-color","",u.contentGlobalPrimary),backgroundColor:o.extend("--ft-collapsible-background-color","",u.backgroundGlobalOnSurface),borderColor:o.extend("--ft-collapsible-border-color","",u.borderGlobalSubtle),iconSize:o.extend("--ft-collapsible-icon-size","",l.iconSize3)};var ep={groupHorizontalPadding:o.extend("--ft-switch-group-horizontal-padding","",l.spacing1),groupVerticalPadding:o.extend("--ft-switch-group-vertical-padding","",l.spacing1),groupGap:o.extend("--ft-switch-group-gap","",l.spacing1),groupBackgroundColor:o.extend("--ft-switch-group-background-color","",u.backgroundGlobalSurface),groupBorderColor:o.extend("--ft-switch-group-border-color","",u.borderGlobalSubtle),groupBorderRadius:o.create("--ft-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:o.extend("--ft-switch-label-horizontal-padding","",l.spacing2),labelVerticalPadding:o.extend("--ft-switch-label-vertical-padding","",l.spacing1),offHoverStateLayerOpacity:o.extend("--ft-switch-off-hover-state-layer-opacity","",l.opacity8),offFocusStateLayerOpacity:o.extend("--ft-switch-off-focus-state-layer-opacity","",l.opacity8),offActiveStateLayerOpacity:o.extend("--ft-switch-off-active-state-layer-opacity","",l.opacity16),offDisabledComponentOpacity:o.extend("--ft-switch-off-disabled-component-opacity","",l.opacity40),offColor:o.extend("--ft-switch-off-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-switch-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-switch-on-hover-state-layer-opacity","",l.opacity8),onFocusStateLayerOpacity:o.extend("--ft-switch-on-focus-state-layer-opacity","",l.opacity8),onActiveStateLayerOpacity:o.extend("--ft-switch-on-active-state-layer-opacity","",l.opacity16),onDisabledComponentOpacity:o.extend("--ft-switch-on-disabled-component-opacity","",l.opacity40),onColor:o.extend("--ft-switch-on-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-switch-on-state-layer-color","",u.contentActionPrimary),iconHorizontalPadding:o.extend("--ft-switch-icon-horizontal-padding","",l.spacing1),iconVerticalPadding:o.extend("--ft-switch-icon-vertical-padding","",l.spacing1),focusOutlineWidth:o.create("--ft-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:o.extend("--ft-switch-focus-focus-ring-color","",u.borderActionFocusRing),optionBorderRadius:o.extend("--ft-switch-option-border-radius","",l.borderRadiusS)};var tp={color1Light:o.extend("--ft-chart-1-light","for area color charts",l.colorBrand40),color1Base:o.extend("--ft-chart-1-base","for line charts",l.colorBrand0),color2Light:o.extend("--ft-chart-2-light","for area color charts",l.colorYellow60),color2Base:o.extend("--ft-chart-2-base","for line charts",l.colorYellow100),color3Light:o.extend("--ft-chart-3-light","",l.colorUltramarine40),color3Base:o.extend("--ft-chart-3-base","",l.colorUltramarine70),color4Light:o.extend("--ft-chart-4-light","",l.colorCyan50),color4Base:o.extend("--ft-chart-4-base","",l.colorCyan100),color5Light:o.extend("--ft-chart-5-light","",l.colorRed40),color5Base:o.extend("--ft-chart-5-base","",l.colorRed60),color6Light:o.extend("--ft-chart-6-light","",l.colorGreen40),color6Base:o.extend("--ft-chart-6-base","",l.colorGreen70),color7Light:o.extend("--ft-chart-7-light","",l.colorOrange70),color7Base:o.extend("--ft-chart-7-base","",l.colorOrange100),color8Light:o.extend("--ft-chart-8-light","",l.colorAvocado70),color8Base:o.extend("--ft-chart-8-base","",l.colorAvocado200),color9Light:o.extend("--ft-chart-9-light","",l.colorBrown50),color9Base:o.extend("--ft-chart-9-base","",l.colorBrown200),color10Light:o.extend("--ft-chart-10-light","",l.colorGray50),color10Base:o.extend("--ft-chart-10-base","",l.colorGray80),monochrome10:o.extend("--ft-chart-monochrome-10","",l.colorBrand10),monochrome20:o.extend("--ft-chart-monochrome-20","",l.colorBrand20),monochrome30:o.extend("--ft-chart-monochrome-30","",l.colorBrand40),monochrome40:o.extend("--ft-chart-monochrome-40","",l.colorBrand60),monochrome50:o.extend("--ft-chart-monochrome-50","",l.colorBrand0),monochrome60:o.extend("--ft-chart-monochrome-60","",l.colorBrand200)};var rp={color1IconColor:o.extend("--ft-page-designer-1-icon-color","for area color charts",l.colorCyan0),color1ToolbarColor:o.extend("--ft-page-designer-1-toolbar-color","for area color charts",l.colorCyan0),color2IconColor:o.extend("--ft-page-designer-2-icon-color","for area color charts",l.colorBrand0),color2ToolbarColor:o.extend("--ft-page-designer-2-toolbar-color","for area color charts",l.colorBrand0),color3IconColor:o.extend("--ft-page-designer-3-icon-color","for area color charts",l.colorYellow200),color3ToolbarColor:o.extend("--ft-page-designer-3-toolbar-color","for area color charts",l.colorYellow200),color4IconColor:o.extend("--ft-page-designer-4-icon-color","for area color charts",l.colorUltramarine50),color4ToolbarColor:o.extend("--ft-page-designer-4-toolbar-color","for area color charts",l.colorUltramarine50),color5IconColor:o.extend("--ft-page-designer-5-icon-color","for area color charts",l.colorGreen0),color5ToolbarColor:o.extend("--ft-page-designer-5-toolbar-color","for area color charts",l.colorGreen0),color6IconColor:o.extend("--ft-page-designer-6-icon-color","for area color charts",l.colorOrange0),color6ToolbarColor:o.extend("--ft-page-designer-6-toolbar-color","for area color charts",l.colorOrange0),color7IconColor:o.extend("--ft-page-designer-7-icon-color","for area color charts",l.colorAvocado200),color7ToolbarColor:o.extend("--ft-page-designer-7-toolbar-color","for area color charts",l.colorAvocado200),color8IconColor:o.extend("--ft-page-designer-8-icon-color","for area color charts",l.colorBrown0),color8ToolbarColor:o.extend("--ft-page-designer-8-toolbar-color","for area color charts",l.colorBrown0)};var op={borderWidth:o.create("--ft-notice-border-width","","SIZE","1px"),horizontalPadding:o.extend("--ft-notice-horizontal-padding","",l.spacing3),verticalPadding:o.extend("--ft-notice-vertical-padding","",l.spacing2),borderRadius:o.extend("--ft-notice-border-radius","",l.borderRadiusS),gap:o.extend("--ft-notice-gap","",l.spacing2),iconSize:o.extend("--ft-notice-icon-size","",l.iconSize3),infoBackgroundColor:o.extend("--ft-notice-info-background-color","",u.backgroundInfoSubtle),infoBorderColor:o.extend("--ft-notice-info-border-color","",u.borderInfoSubtle),infoColor:o.extend("--ft-notice-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notice-info-icon-color","",u.contentInfoIconOnly),warningBackgroundColor:o.extend("--ft-notice-warning-background-color","",u.backgroundWarningSubtle),warningBorderColor:o.extend("--ft-notice-warning-border-color","",u.borderWarningSubtle),warningColor:o.extend("--ft-notice-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notice-warning-icon-color","",u.contentWarningIconOnly),errorBackgroundColor:o.extend("--ft-notice-error-background-color","",u.backgroundErrorSubtle),errorBorderColor:o.extend("--ft-notice-error-border-color","",u.borderErrorSubtle),errorColor:o.extend("--ft-notice-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notice-error-icon-color","",u.contentErrorIconOnly),successBackgroundColor:o.extend("--ft-notice-success-background-color","",u.backgroundSuccessSubtle),successBorderColor:o.extend("--ft-notice-success-border-color","",u.borderSuccessSubtle),successColor:o.extend("--ft-notice-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notice-success-icon-color","",u.contentSuccessIconOnly)};var np={color:o.extend("--ft-checkbox-color","",u.contentGlobalPrimary),checkedBackgroundColor:o.extend("--ft-checkbox-checked-background-color","",u.contentActionPrimary),checkedStateLayerColor:o.extend("--ft-checkbox-checked-state-layer-color","",u.contentActionPrimary),checkedIconColor:o.extend("--ft-checkbox-checked-icon-color","",u.contentGlobalOnColor),checkedHoverStateLayerOpacity:o.extend("--ft-checkbox-checked-hover-state-layer-opacity","",l.opacity16),checkedFocusStateLayerOpacity:o.extend("--ft-checkbox-checked-focus-state-layer-opacity","",l.opacity16),checkedActiveStateLayerOpacity:o.extend("--ft-checkbox-checked-active-state-layer-opacity","",l.opacity24),checkedDisabledComponentOpacity:o.extend("--ft-checkbox-checked-disabled-component-opacity","",l.opacity40),uncheckedBorderColor:o.extend("--ft-checkbox-unchecked-border-color","",l.colorGray80),uncheckedStateLayerColor:o.extend("--ft-checkbox-unchecked-state-layer-color","",l.colorGray80),uncheckedHoverStateLayerOpacity:o.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",l.opacity16),uncheckedFocusStateLayerOpacity:o.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",l.opacity16),uncheckedActiveStateLayerOpacity:o.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",l.opacity24),uncheckedDisabledComponentOpacity:o.extend("--ft-checkbox-unchecked-disabled-component-opacity","",l.opacity40),focusFocusRingColor:o.extend("--ft-checkbox-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),gap:o.extend("--ft-checkbox-gap","",l.spacing3)};var ip={offHoverStateLayerOpacity:o.extend("--ft-toggle-off-hover-state-layer-opacity","",l.opacity16),offFocusStateLayerOpacity:o.extend("--ft-toggle-off-focus-state-layer-opacity","",l.opacity16),offActiveStateLayerOpacity:o.extend("--ft-toggle-off-active-state-layer-opacity","",l.opacity24),offDisabledComponentOpacity:o.extend("--ft-toggle-off-disabled-component-opacity","",l.opacity40),offBackgroundColor:o.extend("--ft-toggle-off-background-color","",u.contentGlobalSubtle),offIconColor:o.extend("--ft-toggle-off-icon-color","",u.contentGlobalSubtle),offStateLayerColor:o.extend("--ft-toggle-off-state-layer-color","",u.contentGlobalSubtle),onHoverStateLayerOpacity:o.extend("--ft-toggle-on-hover-state-layer-opacity","",l.opacity16),onFocusStateLayerOpacity:o.extend("--ft-toggle-on-focus-state-layer-opacity","",l.opacity16),onActiveStateLayerOpacity:o.extend("--ft-toggle-on-active-state-layer-opacity","",l.opacity24),onDisabledComponentOpacity:o.extend("--ft-toggle-on-disabled-component-opacity","",l.opacity40),onBackgroundColor:o.extend("--ft-toggle-on-background-color","",u.contentActionPrimary),onStateLayerColor:o.extend("--ft-toggle-on-state-layer-color","",u.contentActionPrimary),onIconColor:o.extend("--ft-toggle-on-icon-color","",u.contentActionPrimary),color:o.extend("--ft-toggle-color","",u.contentGlobalPrimary),focusFocusRingColor:o.extend("--ft-toggle-focus-focus-ring-color","",u.borderActionFocusRing),gap:o.extend("--ft-toggle-gap","",l.spacing3)};var ap={color:o.extend("--ft-radio-color","",u.contentGlobalPrimary),selectedRadioColor:o.extend("--ft-radio-selected-radio-color","",u.contentActionPrimary),selectedStateLayerColor:o.extend("--ft-radio-selected-state-layer-color","",u.contentActionPrimary),selectedHoverStateLayerOpacity:o.extend("--ft-radio-selected-hover-state-layer-opacity","",l.opacity16),selectedFocusStateLayerOpacity:o.extend("--ft-radio-selected-focus-state-layer-opacity","",l.opacity16),selectedActiveStateLayerOpacity:o.extend("--ft-radio-selected-active-state-layer-opacity","",l.opacity24),selectedDisabledComponentOpacity:o.extend("--ft-radio-selected-disabled-component-opacity","",l.opacity40),unselectedStateLayerColor:o.extend("--ft-radio-unselected-state-layer-color","",u.borderInputPrimary),unselectedBorderColor:o.extend("--ft-radio-unselected-border-color","",u.borderInputPrimary),unselectedHoverStateLayerOpacity:o.extend("--ft-radio-unselected-hover-state-layer-opacity","",l.opacity16),unselectedFocusStateLayerOpacity:o.extend("--ft-radio-unselected-focus-state-layer-opacity","",l.opacity16),unselectedActiveStateLayerOpacity:o.extend("--ft-radio-unselected-active-state-layer-opacity","",l.opacity24),unselectedDisabledComponentOpacity:o.extend("--ft-radio-unselected-disabled-component-opacity","",l.opacity40),focusFocusRingColor:o.extend("--ft-radio-focus-focus-ring-color","",u.borderActionFocusRing),focusOutlineOffset:o.create("--ft-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:o.create("--ft-radio-focus-outline-width","","SIZE","2px"),gap:o.extend("--ft-radio-gap","",l.spacing3)};var sp={iconSize:o.extend("--ft-notification-icon-size","",l.iconSize4),leftPadding:o.extend("--ft-notification-left-padding","",l.spacing5),rightPadding:o.extend("--ft-notification-right-padding","",l.spacing4),verticalPadding:o.extend("--ft-notification-vertical-padding","",l.spacing3),infoBackgroundColor:o.extend("--ft-notification-info-background-color","",u.backgroundInfoSubtle),infoColor:o.extend("--ft-notification-info-color","",u.contentInfoPrimary),infoIconColor:o.extend("--ft-notification-info-icon-color","",u.contentInfoIconOnly),infoBorderColor:o.extend("--ft-notification-info-border-color","",u.borderInfoSubtle),successBackgroundColor:o.extend("--ft-notification-success-background-color","",u.backgroundSuccessSubtle),successColor:o.extend("--ft-notification-success-color","",u.contentSuccessPrimary),successIconColor:o.extend("--ft-notification-success-icon-color","",u.contentSuccessIconOnly),successBorderColor:o.extend("--ft-notification-success-border-color","",u.borderSuccessSubtle),warningBackgroundColor:o.extend("--ft-notification-warning-background-color","",u.backgroundWarningSubtle),warningColor:o.extend("--ft-notification-warning-color","",u.contentWarningPrimary),warningIconColor:o.extend("--ft-notification-warning-icon-color","",u.contentWarningIconOnly),warningBorderColor:o.extend("--ft-notification-warning-border-color","",u.borderWarningSubtle),errorBackgroundColor:o.extend("--ft-notification-error-background-color","",u.backgroundErrorSubtle),errorColor:o.extend("--ft-notification-error-color","",u.contentErrorPrimary),errorIconColor:o.extend("--ft-notification-error-icon-color","",u.contentErrorIconOnly),errorBorderColor:o.extend("--ft-notification-error-border-color","",u.borderErrorSubtle),borderRadius:o.extend("--ft-notification-border-radius","",l.borderRadiusPill),borderWidth:o.create("--ft-notification-border-width","","SIZE","1px"),leadingGap:o.extend("--ft-notification-leading-gap","",l.spacing2),trailingGap:o.extend("--ft-notification-trailing-gap","",l.spacing8)};var cp={horizontalPadding:o.extend("--ft-tooltip-horizontal-padding","",l.spacing2),verticalPadding:o.extend("--ft-tooltip-vertical-padding","",l.spacing2),borderRadius:o.extend("--ft-tooltip-border-radius","",l.borderRadiusS),color:o.extend("--ft-tooltip-color","",u.contentGlobalOnColor),backgroundColor:o.extend("--ft-tooltip-background-color","",u.contentGlobalPrimary),backgroundOpacity:o.extend("--ft-tooltip-background-opacity","",l.opacity80),shadow:o.extend("--ft-tooltip-shadow","",l.shadowElevation02),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","256px"),gap:o.extend("--ft-tooltip-gap","",l.spacing05)};var Pe;(function(t){t.brand="brand",t.neutral="neutral",t.info="info",t.success="success",t.warning="warning",t.error="error"})(Pe||(Pe={}));var le;(function(t){t.large="large",t.medium="medium",t.small="small"})(le||(le={}));function ai(t){return`ftds--family-${t}`}function si(t){return`ftds--size-${t}`}var Y={colorPrimary:o.create("--ft-color-primary","","COLOR","#2196F3"),colorPrimaryVariant:o.create("--ft-color-primary-variant","","COLOR","#1976D2"),colorSecondary:o.create("--ft-color-secondary","","COLOR","#FFCC80"),colorSecondaryVariant:o.create("--ft-color-secondary-variant","","COLOR","#F57C00"),colorSurface:o.create("--ft-color-surface","","COLOR","#FFFFFF"),colorContent:o.create("--ft-color-content","","COLOR","rgba(0, 0, 0, 0.87)"),colorError:o.create("--ft-color-error","","COLOR","#B00020"),colorOutline:o.create("--ft-color-outline","","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:o.create("--ft-color-opacity-high","","NUMBER","1"),colorOpacityMedium:o.create("--ft-color-opacity-medium","","NUMBER","0.74"),colorOpacityDisabled:o.create("--ft-color-opacity-disabled","","NUMBER","0.38"),colorOnPrimary:o.create("--ft-color-on-primary","","COLOR","#FFFFFF"),colorOnPrimaryHigh:o.create("--ft-color-on-primary-high","","COLOR","#FFFFFF"),colorOnPrimaryMedium:o.create("--ft-color-on-primary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:o.create("--ft-color-on-primary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:o.create("--ft-color-on-secondary","","COLOR","#FFFFFF"),colorOnSecondaryHigh:o.create("--ft-color-on-secondary-high","","COLOR","#FFFFFF"),colorOnSecondaryMedium:o.create("--ft-color-on-secondary-medium","","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:o.create("--ft-color-on-secondary-disabled","","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:o.create("--ft-color-on-surface","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:o.create("--ft-color-on-surface-high","","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:o.create("--ft-color-on-surface-medium","","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:o.create("--ft-color-on-surface-disabled","","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:o.create("--ft-opacity-content-on-surface-disabled","","NUMBER","0"),opacityContentOnSurfaceEnable:o.create("--ft-opacity-content-on-surface-enable","","NUMBER","0"),opacityContentOnSurfaceHover:o.create("--ft-opacity-content-on-surface-hover","","NUMBER","0.04"),opacityContentOnSurfaceFocused:o.create("--ft-opacity-content-on-surface-focused","","NUMBER","0.12"),opacityContentOnSurfacePressed:o.create("--ft-opacity-content-on-surface-pressed","","NUMBER","0.10"),opacityContentOnSurfaceSelected:o.create("--ft-opacity-content-on-surface-selected","","NUMBER","0.08"),opacityContentOnSurfaceDragged:o.create("--ft-opacity-content-on-surface-dragged","","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:o.create("--ft-opacity-primary-on-surface-disabled","","NUMBER","0"),opacityPrimaryOnSurfaceEnable:o.create("--ft-opacity-primary-on-surface-enable","","NUMBER","0"),opacityPrimaryOnSurfaceHover:o.create("--ft-opacity-primary-on-surface-hover","","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:o.create("--ft-opacity-primary-on-surface-focused","","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:o.create("--ft-opacity-primary-on-surface-pressed","","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:o.create("--ft-opacity-primary-on-surface-selected","","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:o.create("--ft-opacity-primary-on-surface-dragged","","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:o.create("--ft-opacity-surface-on-primary-disabled","","NUMBER","0"),opacitySurfaceOnPrimaryEnable:o.create("--ft-opacity-surface-on-primary-enable","","NUMBER","0"),opacitySurfaceOnPrimaryHover:o.create("--ft-opacity-surface-on-primary-hover","","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:o.create("--ft-opacity-surface-on-primary-focused","","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:o.create("--ft-opacity-surface-on-primary-pressed","","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:o.create("--ft-opacity-surface-on-primary-selected","","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:o.create("--ft-opacity-surface-on-primary-dragged","","NUMBER","0.08"),elevation00:o.create("--ft-elevation-00","","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:o.create("--ft-elevation-01","","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:o.create("--ft-elevation-02","","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:o.create("--ft-elevation-03","","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:o.create("--ft-elevation-04","","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:o.create("--ft-elevation-06","","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:o.create("--ft-elevation-08","","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:o.create("--ft-elevation-12","","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:o.create("--ft-elevation-16","","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:o.create("--ft-elevation-24","","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:o.create("--ft-border-radius-S","","SIZE","4px"),borderRadiusM:o.create("--ft-border-radius-M","","SIZE","8px"),borderRadiusL:o.create("--ft-border-radius-L","","SIZE","12px"),borderRadiusXL:o.create("--ft-border-radius-XL","","SIZE","16px"),titleFont:o.create("--ft-title-font","","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:o.create("--ft-content-font","","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:o.create("--ft-transition-duration","","UNKNOWN","250ms"),transitionTimingFunction:o.create("--ft-transition-timing-function","","UNKNOWN","ease-in-out")};var fi={};V(fi,{FtNotificationEvent:()=>di,PostResizeEvent:()=>ui,PreResizeEvent:()=>pi});var di=class extends CustomEvent{constructor(e){super("ft-notification",{bubbles:!0,composed:!0,detail:e})}},pi=class extends Event{constructor(){super("ft-pre-resize",{composed:!0,bubbles:!0})}},ui=class extends Event{constructor(){super("ft-post-resize",{composed:!0,bubbles:!0})}};var Ni={};V(Ni,{computeFlipOffsetPosition:()=>_p,computeOffsetPosition:()=>Ri});var Ns=["top","right","bottom","left"],Rs=["start","end"],hi=Ns.reduce((t,e)=>t.concat(e,e+"-"+Rs[0],e+"-"+Rs[1]),[]),kr=Math.min,ct=Math.max,Dr=Math.round;var Xe=t=>({x:t,y:t}),lp={left:"right",right:"left",bottom:"top",top:"bottom"},dp={start:"end",end:"start"};function yi(t,e,r){return ct(t,kr(e,r))}function qt(t,e){return typeof t=="function"?t(e):t}function Fe(t){return t.split("-")[0]}function We(t){return t.split("-")[1]}function mi(t){return t==="x"?"y":"x"}function gi(t){return t==="y"?"height":"width"}function Ur(t){return["top","bottom"].includes(Fe(t))?"y":"x"}function bi(t){return mi(Ur(t))}function xi(t,e,r){r===void 0&&(r=!1);let n=We(t),i=bi(t),a=gi(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(s=$r(s)),[s,$r(s)]}function _s(t){let e=$r(t);return[Ir(t),e,Ir(e)]}function Ir(t){return t.replace(/start|end/g,e=>dp[e])}function pp(t,e,r){let n=["left","right"],i=["right","left"],a=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return r?e?i:n:e?n:i;case"left":case"right":return e?a:s;default:return[]}}function Ps(t,e,r,n){let i=We(t),a=pp(Fe(t),r==="start",n);return i&&(a=a.map(s=>s+"-"+i),e&&(a=a.concat(a.map(Ir)))),a}function $r(t){return t.replace(/left|right|bottom|top/g,e=>lp[e])}function up(t){return{top:0,right:0,bottom:0,left:0,...t}}function Ls(t){return typeof t!="number"?up(t):{top:t,right:t,bottom:t,left:t}}function Tt(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function Ts(t,e,r){let{reference:n,floating:i}=t,a=Ur(e),s=bi(e),c=gi(s),d=Fe(e),p=a==="y",h=n.x+n.width/2-i.width/2,f=n.y+n.height/2-i.height/2,m=n[c]/2-i[c]/2,b;switch(d){case"top":b={x:h,y:n.y-i.height};break;case"bottom":b={x:h,y:n.y+n.height};break;case"right":b={x:n.x+n.width,y:f};break;case"left":b={x:n.x-i.width,y:f};break;default:b={x:n.x,y:n.y}}switch(We(e)){case"start":b[s]-=m*(r&&p?-1:1);break;case"end":b[s]+=m*(r&&p?-1:1);break}return b}var Is=async(t,e,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:a=[],platform:s}=r,c=a.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(e)),p=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:h,y:f}=Ts(p,n,d),m=n,b={},x=0;for(let C=0;C<c.length;C++){let{name:L,fn:R}=c[C],{x:P,y:S,data:O,reset:E}=await R({x:h,y:f,initialPlacement:n,placement:m,strategy:i,middlewareData:b,rects:p,platform:s,elements:{reference:t,floating:e}});if(h=P??h,f=S??f,b={...b,[L]:{...b[L],...O}},E&&x<=50){x++,typeof E=="object"&&(E.placement&&(m=E.placement),E.rects&&(p=E.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):E.rects),{x:h,y:f}=Ts(p,m,d)),C=-1;continue}}return{x:h,y:f,placement:m,strategy:i,middlewareData:b}};async function Ao(t,e){var r;e===void 0&&(e={});let{x:n,y:i,platform:a,rects:s,elements:c,strategy:d}=t,{boundary:p="clippingAncestors",rootBoundary:h="viewport",elementContext:f="floating",altBoundary:m=!1,padding:b=0}=qt(e,t),x=Ls(b),L=c[m?f==="floating"?"reference":"floating":f],R=Tt(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(L)))==null||r?L:L.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(c.floating)),boundary:p,rootBoundary:h,strategy:d})),P=f==="floating"?{...s.floating,x:n,y:i}:s.reference,S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(c.floating)),O=await(a.isElement==null?void 0:a.isElement(S))?await(a.getScale==null?void 0:a.getScale(S))||{x:1,y:1}:{x:1,y:1},E=Tt(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({rect:P,offsetParent:S,strategy:d}):P);return{top:(R.top-E.top+x.top)/O.y,bottom:(E.bottom-R.bottom+x.bottom)/O.y,left:(R.left-E.left+x.left)/O.x,right:(E.right-R.right+x.right)/O.x}}function fp(t,e,r){return(t?[...r.filter(i=>We(i)===t),...r.filter(i=>We(i)!==t)]:r.filter(i=>Fe(i)===i)).filter(i=>t?We(i)===t||(e?Ir(i)!==i:!1):!0)}var vi=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,n,i;let{rects:a,middlewareData:s,placement:c,platform:d,elements:p}=e,{crossAxis:h=!1,alignment:f,allowedPlacements:m=hi,autoAlignment:b=!0,...x}=qt(t,e),C=f!==void 0||m===hi?fp(f||null,b,m):m,L=await Ao(e,x),R=((r=s.autoPlacement)==null?void 0:r.index)||0,P=C[R];if(P==null)return{};let S=xi(P,a,await(d.isRTL==null?void 0:d.isRTL(p.floating)));if(c!==P)return{reset:{placement:C[0]}};let O=[L[Fe(P)],L[S[0]],L[S[1]]],E=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:P,overflows:O}],$=C[R+1];if($)return{data:{index:R+1,overflows:E},reset:{placement:$}};let F=E.map(I=>{let y=We(I.placement);return[I.placement,y&&h?I.overflows.slice(0,2).reduce((v,T)=>v+T,0):I.overflows[0],I.overflows]}).sort((I,y)=>I[1]-y[1]),z=((i=F.filter(I=>I[2].slice(0,We(I[0])?2:3).every(y=>y<=0))[0])==null?void 0:i[0])||F[0][0];return z!==c?{data:{index:R+1,overflows:E},reset:{placement:z}}:{}}}},Si=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;let{placement:i,middlewareData:a,rects:s,initialPlacement:c,platform:d,elements:p}=e,{mainAxis:h=!0,crossAxis:f=!0,fallbackPlacements:m,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:C=!0,...L}=qt(t,e);if((r=a.arrow)!=null&&r.alignmentOffset)return{};let R=Fe(i),P=Fe(c)===c,S=await(d.isRTL==null?void 0:d.isRTL(p.floating)),O=m||(P||!C?[$r(c)]:_s(c));!m&&x!=="none"&&O.push(...Ps(c,C,x,S));let E=[c,...O],$=await Ao(e,L),F=[],H=((n=a.flip)==null?void 0:n.overflows)||[];if(h&&F.push($[R]),f){let v=xi(i,s,S);F.push($[v[0]],$[v[1]])}if(H=[...H,{placement:i,overflows:F}],!F.every(v=>v<=0)){var z,I;let v=(((z=a.flip)==null?void 0:z.index)||0)+1,T=E[v];if(T)return{data:{index:v,overflows:H},reset:{placement:T}};let B=(I=H.filter(W=>W.overflows[0]<=0).sort((W,U)=>W.overflows[1]-U.overflows[1])[0])==null?void 0:I.placement;if(!B)switch(b){case"bestFit":{var y;let W=(y=H.map(U=>[U.placement,U.overflows.filter(ke=>ke>0).reduce((ke,mr)=>ke+mr,0)]).sort((U,ke)=>U[1]-ke[1])[0])==null?void 0:y[0];W&&(B=W);break}case"initialPlacement":B=c;break}if(i!==B)return{reset:{placement:B}}}return{}}}};async function hp(t,e){let{placement:r,platform:n,elements:i}=t,a=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=Fe(r),c=We(r),d=Ur(r)==="y",p=["left","top"].includes(s)?-1:1,h=a&&d?-1:1,f=qt(e,t),{mainAxis:m,crossAxis:b,alignmentAxis:x}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return c&&typeof x=="number"&&(b=c==="end"?x*-1:x),d?{x:b*h,y:m*p}:{x:m*p,y:b*h}}var Oi=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;let{x:i,y:a,placement:s,middlewareData:c}=e,d=await hp(e,t);return s===((r=c.offset)==null?void 0:r.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:i+d.x,y:a+d.y,data:{...d,placement:s}}}}},Ci=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:n,placement:i}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:c={fn:L=>{let{x:R,y:P}=L;return{x:R,y:P}}},...d}=qt(t,e),p={x:r,y:n},h=await Ao(e,d),f=Ur(Fe(i)),m=mi(f),b=p[m],x=p[f];if(a){let L=m==="y"?"top":"left",R=m==="y"?"bottom":"right",P=b+h[L],S=b-h[R];b=yi(P,b,S)}if(s){let L=f==="y"?"top":"left",R=f==="y"?"bottom":"right",P=x+h[L],S=x-h[R];x=yi(P,x,S)}let C=c.fn({...e,[m]:b,[f]:x});return{...C,data:{x:C.x-r,y:C.y-n}}}}};function Je(t){return ks(t)?(t.nodeName||"").toLowerCase():"#document"}function ye(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Qe(t){var e;return(e=(ks(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ks(t){return t instanceof Node||t instanceof ye(t).Node}function He(t){return t instanceof Element||t instanceof ye(t).Element}function Le(t){return t instanceof HTMLElement||t instanceof ye(t).HTMLElement}function $s(t){return typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof ye(t).ShadowRoot}function Yt(t){let{overflow:e,overflowX:r,overflowY:n,display:i}=Oe(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function Ds(t){return["table","td","th"].includes(Je(t))}function No(t){let e=_o(),r=Oe(t);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function Us(t){let e=It(t);for(;Le(e)&&!Mr(e);){if(No(e))return e;e=It(e)}return null}function _o(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Mr(t){return["html","body","#document"].includes(Je(t))}function Oe(t){return ye(t).getComputedStyle(t)}function Br(t){return He(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function It(t){if(Je(t)==="html")return t;let e=t.assignedSlot||t.parentNode||$s(t)&&t.host||Qe(t);return $s(e)?e.host:e}function Ms(t){let e=It(t);return Mr(e)?t.ownerDocument?t.ownerDocument.body:t.body:Le(e)&&Yt(e)?e:Ms(e)}function Ro(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);let i=Ms(t),a=i===((n=t.ownerDocument)==null?void 0:n.body),s=ye(i);return a?e.concat(s,s.visualViewport||[],Yt(i)?i:[],s.frameElement&&r?Ro(s.frameElement):[]):e.concat(i,Ro(i,[],r))}function Ws(t){let e=Oe(t),r=parseFloat(e.width)||0,n=parseFloat(e.height)||0,i=Le(t),a=i?t.offsetWidth:r,s=i?t.offsetHeight:n,c=Dr(r)!==a||Dr(n)!==s;return c&&(r=a,n=s),{width:r,height:n,$:c}}function Hs(t){return He(t)?t:t.contextElement}function Xt(t){let e=Hs(t);if(!Le(e))return Xe(1);let r=e.getBoundingClientRect(),{width:n,height:i,$:a}=Ws(e),s=(a?Dr(r.width):r.width)/n,c=(a?Dr(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}var yp=Xe(0);function zs(t){let e=ye(t);return!_o()||!e.visualViewport?yp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function mp(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==ye(t)?!1:e}function Fr(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);let i=t.getBoundingClientRect(),a=Hs(t),s=Xe(1);e&&(n?He(n)&&(s=Xt(n)):s=Xt(t));let c=mp(a,r,n)?zs(a):Xe(0),d=(i.left+c.x)/s.x,p=(i.top+c.y)/s.y,h=i.width/s.x,f=i.height/s.y;if(a){let m=ye(a),b=n&&He(n)?ye(n):n,x=m.frameElement;for(;x&&n&&b!==m;){let C=Xt(x),L=x.getBoundingClientRect(),R=Oe(x),P=L.left+(x.clientLeft+parseFloat(R.paddingLeft))*C.x,S=L.top+(x.clientTop+parseFloat(R.paddingTop))*C.y;d*=C.x,p*=C.y,h*=C.x,f*=C.y,d+=P,p+=S,x=ye(x).frameElement}}return Tt({width:h,height:f,x:d,y:p})}function gp(t){let{rect:e,offsetParent:r,strategy:n}=t,i=Le(r),a=Qe(r);if(r===a)return e;let s={scrollLeft:0,scrollTop:0},c=Xe(1),d=Xe(0);if((i||!i&&n!=="fixed")&&((Je(r)!=="body"||Yt(a))&&(s=Br(r)),Le(r))){let p=Fr(r);c=Xt(r),d.x=p.x+r.clientLeft,d.y=p.y+r.clientTop}return{width:e.width*c.x,height:e.height*c.y,x:e.x*c.x-s.scrollLeft*c.x+d.x,y:e.y*c.y-s.scrollTop*c.y+d.y}}function bp(t){return Array.from(t.getClientRects())}function js(t){return Fr(Qe(t)).left+Br(t).scrollLeft}function xp(t){let e=Qe(t),r=Br(t),n=t.ownerDocument.body,i=ct(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=ct(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+js(t),c=-r.scrollTop;return Oe(n).direction==="rtl"&&(s+=ct(e.clientWidth,n.clientWidth)-i),{width:i,height:a,x:s,y:c}}function vp(t,e){let r=ye(t),n=Qe(t),i=r.visualViewport,a=n.clientWidth,s=n.clientHeight,c=0,d=0;if(i){a=i.width,s=i.height;let p=_o();(!p||p&&e==="fixed")&&(c=i.offsetLeft,d=i.offsetTop)}return{width:a,height:s,x:c,y:d}}function Sp(t,e){let r=Fr(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,a=Le(t)?Xt(t):Xe(1),s=t.clientWidth*a.x,c=t.clientHeight*a.y,d=i*a.x,p=n*a.y;return{width:s,height:c,x:d,y:p}}function Bs(t,e,r){let n;if(e==="viewport")n=vp(t,r);else if(e==="document")n=xp(Qe(t));else if(He(e))n=Sp(e,r);else{let i=zs(t);n={...e,x:e.x-i.x,y:e.y-i.y}}return Tt(n)}function Vs(t,e){let r=It(t);return r===e||!He(r)||Mr(r)?!1:Oe(r).position==="fixed"||Vs(r,e)}function Op(t,e){let r=e.get(t);if(r)return r;let n=Ro(t,[],!1).filter(c=>He(c)&&Je(c)!=="body"),i=null,a=Oe(t).position==="fixed",s=a?It(t):t;for(;He(s)&&!Mr(s);){let c=Oe(s),d=No(s);!d&&c.position==="fixed"&&(i=null),(a?!d&&!i:!d&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Yt(s)&&!d&&Vs(t,s))?n=n.filter(h=>h!==s):i=c,s=It(s)}return e.set(t,n),n}function Cp(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t,s=[...r==="clippingAncestors"?Op(e,this._c):[].concat(r),n],c=s[0],d=s.reduce((p,h)=>{let f=Bs(e,h,i);return p.top=ct(f.top,p.top),p.right=kr(f.right,p.right),p.bottom=kr(f.bottom,p.bottom),p.left=ct(f.left,p.left),p},Bs(e,c,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Ep(t){return Ws(t)}function wp(t,e,r){let n=Le(e),i=Qe(e),a=r==="fixed",s=Fr(t,!0,a,e),c={scrollLeft:0,scrollTop:0},d=Xe(0);if(n||!n&&!a)if((Je(e)!=="body"||Yt(i))&&(c=Br(e)),n){let p=Fr(e,!0,a,e);d.x=p.x+e.clientLeft,d.y=p.y+e.clientTop}else i&&(d.x=js(i));return{x:s.left+c.scrollLeft-d.x,y:s.top+c.scrollTop-d.y,width:s.width,height:s.height}}function Fs(t,e){return!Le(t)||Oe(t).position==="fixed"?null:e?e(t):t.offsetParent}function Gs(t,e){let r=ye(t);if(!Le(t))return r;let n=Fs(t,e);for(;n&&Ds(n)&&Oe(n).position==="static";)n=Fs(n,e);return n&&(Je(n)==="html"||Je(n)==="body"&&Oe(n).position==="static"&&!No(n))?r:n||Us(t)||r}var Ap=async function(t){let{reference:e,floating:r,strategy:n}=t,i=this.getOffsetParent||Gs,a=this.getDimensions;return{reference:wp(e,await i(r),n),floating:{x:0,y:0,...await a(r)}}};function Rp(t){return Oe(t).direction==="rtl"}var Jt={convertOffsetParentRelativeRectToViewportRelativeRect:gp,getDocumentElement:Qe,getClippingRect:Cp,getOffsetParent:Gs,getElementRects:Ap,getClientRects:bp,getDimensions:Ep,getScale:Xt,isElement:He,isRTL:Rp};var Ei=(t,e,r)=>{let n=new Map,i={platform:Jt,...r},a={...i.platform,_c:n};return Is(t,e,{...i,platform:a})};function Ai(t){return Np(t)}function wi(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Np(t){for(let e=t;e;e=wi(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=wi(t);e;e=wi(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||r.filter!=="none"||e.tagName==="BODY"))return e}return null}async function Ri(t,e,r){return Ei(t,e,{platform:{...Jt,getOffsetParent:n=>Jt.getOffsetParent(n,Ai)},middleware:[Ci({crossAxis:!0}),vi({allowedPlacements:[r]})]})}async function _p(t,e,r,n,i){return Ei(t,e,{placement:r,strategy:i,platform:{...Jt,getOffsetParent:a=>Jt.getOffsetParent(a,Ai)},middleware:[Oi(4),Si({fallbackPlacements:n})]})}var Li={};V(Li,{FtdsBase:()=>Hr,toFtdsBase:()=>To});var Pi={};V(Pi,{FtLitElement:()=>j});var _i={};V(_i,{ScopedRegistryLitElement:()=>Wr});var Po=window,Pp=Po.ShadowRoot&&(Po.ShadyCSS===void 0||Po.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,fg=Symbol();var Ks=(t,e)=>{Pp?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{let n=document.createElement("style"),i=Po.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)})};var Wr=class extends qe{createRenderRoot(){let e=this.constructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,Object.entries(e.elementDefinitions).forEach(([i,a])=>e.registry.define(i,a)));let r={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Ks(n,e.elementStyles),n}};var Lo=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Xs,Zs=Symbol("constructorPrototype"),qs=Symbol("constructorName"),Js=Symbol("exportpartsDebouncer"),Ys=Symbol("dynamicDependenciesLoaded"),j=class extends Wr{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Xs]=new Se(5),this[qs]=this.constructor.name,this[Zs]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[qs]&&Object.setPrototypeOf(this,this[Zs])}connectedCallback(){super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let e=this.constructor;e[Ys]||(e[Ys]=!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 r,n,i;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(a=>a.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((i=this.customStylesheet)!==null&&i!==void 0?i:"")}catch(a){console.error(a,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let a=document.createElement("style");a.classList.add("ft-lit-element--custom-stylesheet"),a.innerHTML=this.customStylesheet,this.shadowRoot.append(a)}}scheduleExportpartsUpdate(){var e,r,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[Js].run(()=>{var i,a;!((i=this.exportpartsPrefix)===null||i===void 0)&&i.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((a=this.exportpartsPrefixes)===null||a===void 0?void 0:a.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})}setExportpartsAttribute(e){var r,n,i,a,s,c;let d=m=>m!=null&&m.trim().length>0,p=e.filter(d).map(m=>m.trim());if(p.length===0){this.removeAttribute("exportparts");return}let h=new Set;for(let m of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let b=(a=(i=m.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&a!==void 0?a:[],x=(c=(s=m.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(C=>C.split(":")[1]))!==null&&c!==void 0?c:[];new Array(...b,...x).filter(d).map(C=>C.trim()).forEach(C=>h.add(C))}if(h.size===0){this.removeAttribute("exportparts");return}let f=[...h.values()].flatMap(m=>p.map(b=>`${m}:${b}--${m}`));this.setAttribute("exportparts",[...this.part,...f].join(", "))}};Xs=Js;Lo([A()],j.prototype,"exportpartsPrefix",void 0);Lo([Be([])],j.prototype,"exportpartsPrefixes",void 0);Lo([A()],j.prototype,"customStylesheet",void 0);Lo([he()],j.prototype,"useAdoptedStyleSheets",void 0);var Qs=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a};function To(t){class e extends t{constructor(){super(...arguments),this.size=le.medium,this.family=Pe.neutral}getDesignSystemBaseClasses(){return{[ai(this.family)]:!0,[si(this.size)]:!0}}}return Qs([A()],e.prototype,"size",void 0),Qs([A()],e.prototype,"family",void 0),e}var Hr=class extends To(j){};var ec={};var $i={};V($i,{highlightHtml:()=>Ii,highlightHtmlColorCssVariable:()=>tc,highlightHtmlStyles:()=>Tp});var $t=class t{constructor(e,r=!0,n=[],i=5e3){this.ctx=e,this.iframes=r,this.exclude=n,this.iframesTimeout=i}static matches(e,r){let n=typeof r=="string"?[r]:r,i=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector;if(i){let a=!1;return n.every(s=>i.call(e,s)?(a=!0,!1):!0),a}else return!1}getContexts(){let e,r=[];return typeof this.ctx>"u"||!this.ctx?e=[]:NodeList.prototype.isPrototypeOf(this.ctx)?e=Array.prototype.slice.call(this.ctx):Array.isArray(this.ctx)?e=this.ctx:typeof this.ctx=="string"?e=Array.prototype.slice.call(document.querySelectorAll(this.ctx)):e=[this.ctx],e.forEach(n=>{let i=r.filter(a=>a.contains(n)).length>0;r.indexOf(n)===-1&&!i&&r.push(n)}),r}getIframeContents(e,r,n=()=>{}){let i;try{let a=e.contentWindow;if(i=a.document,!a||!i)throw new Error("iframe inaccessible")}catch{n()}i&&r(i)}isIframeBlank(e){let r="about:blank",n=e.getAttribute("src").trim();return e.contentWindow.location.href===r&&n!==r&&n}observeIframeLoad(e,r,n){let i=!1,a=null,s=()=>{if(!i){i=!0,clearTimeout(a);try{this.isIframeBlank(e)||(e.removeEventListener("load",s),this.getIframeContents(e,r,n))}catch{n()}}};e.addEventListener("load",s),a=setTimeout(s,this.iframesTimeout)}onIframeReady(e,r,n){try{e.contentWindow.document.readyState==="complete"?this.isIframeBlank(e)?this.observeIframeLoad(e,r,n):this.getIframeContents(e,r,n):this.observeIframeLoad(e,r,n)}catch{n()}}waitForIframes(e,r){let n=0;this.forEachIframe(e,()=>!0,i=>{n++,this.waitForIframes(i.querySelector("html"),()=>{--n||r()})},i=>{i||r()})}forEachIframe(e,r,n,i=()=>{}){let a=e.querySelectorAll("iframe"),s=a.length,c=0;a=Array.prototype.slice.call(a);let d=()=>{--s<=0&&i(c)};s||d(),a.forEach(p=>{t.matches(p,this.exclude)?d():this.onIframeReady(p,h=>{r(p)&&(c++,n(h)),d()},d)})}createIterator(e,r,n){return document.createNodeIterator(e,r,n,!1)}createInstanceOnIframe(e){return new t(e.querySelector("html"),this.iframes)}compareNodeIframe(e,r,n){let i=e.compareDocumentPosition(n),a=Node.DOCUMENT_POSITION_PRECEDING;if(i&a)if(r!==null){let s=r.compareDocumentPosition(n),c=Node.DOCUMENT_POSITION_FOLLOWING;if(s&c)return!0}else return!0;return!1}getIteratorNode(e){let r=e.previousNode(),n;return r===null?n=e.nextNode():n=e.nextNode()&&e.nextNode(),{prevNode:r,node:n}}checkIframeFilter(e,r,n,i){let a=!1,s=!1;return i.forEach((c,d)=>{c.val===n&&(a=d,s=c.handled)}),this.compareNodeIframe(e,r,n)?(a===!1&&!s?i.push({val:n,handled:!0}):a!==!1&&!s&&(i[a].handled=!0),!0):(a===!1&&i.push({val:n,handled:!1}),!1)}handleOpenIframes(e,r,n,i){e.forEach(a=>{a.handled||this.getIframeContents(a.val,s=>{this.createInstanceOnIframe(s).forEachNode(r,n,i)})})}iterateThroughNodes(e,r,n,i,a){let s=this.createIterator(r,e,i),c=[],d=[],p,h,f=()=>({prevNode:h,node:p}=this.getIteratorNode(s),p);for(;f();)this.iframes&&this.forEachIframe(r,m=>this.checkIframeFilter(p,h,m,c),m=>{this.createInstanceOnIframe(m).forEachNode(e,b=>d.push(b),i)}),d.push(p);d.forEach(m=>{n(m)}),this.iframes&&this.handleOpenIframes(c,e,n,i),a()}forEachNode(e,r,n,i=()=>{}){let a=this.getContexts(),s=a.length;s||i(),a.forEach(c=>{let d=()=>{this.iterateThroughNodes(e,c,r,n,()=>{--s<=0&&i()})};this.iframes?this.waitForIframes(c,d):d()})}};var zr=class{constructor(e){this.ctx=e,this.ie=!1;let r=window.navigator.userAgent;(r.indexOf("MSIE")>-1||r.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 $t(this.ctx,this.opt.iframes,this.opt.exclude,this.opt.iframesTimeout)}log(e,r="debug"){let n=this.opt.log;this.opt.debug&&typeof n=="object"&&typeof n[r]=="function"&&n[r](`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 r=this.opt.synonyms,n=this.opt.caseSensitive?"":"i",i=this.opt.ignoreJoiners||this.opt.ignorePunctuation.length?"\0":"";for(let a in r)if(r.hasOwnProperty(a)){let s=r[a],c=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(a):this.escapeStr(a),d=this.opt.wildcards!=="disabled"?this.setupWildcardsRegExp(s):this.escapeStr(s);c!==""&&d!==""&&(e=e.replace(new RegExp(`(${this.escapeStr(c)}|${this.escapeStr(d)})`,`gm${n}`),i+`(${this.processSynomyms(c)}|${this.processSynomyms(d)})`+i))}return e}processSynomyms(e){return(this.opt.ignoreJoiners||this.opt.ignorePunctuation.length)&&(e=this.setupIgnoreJoinersRegExp(e)),e}setupWildcardsRegExp(e){return e=e.replace(/(?:\\)*\?/g,r=>r.charAt(0)==="\\"?"?":""),e.replace(/(?:\\)*\*/g,r=>r.charAt(0)==="\\"?"*":"")}createWildcardsRegExp(e){let r=this.opt.wildcards==="withSpaces";return e.replace(/\u0001/g,r?"[\\S\\s]?":"\\S?").replace(/\u0002/g,r?"[\\S\\s]*?":"\\S*")}setupIgnoreJoinersRegExp(e){return e.replace(/[^(|)\\]/g,(r,n,i)=>{let a=i.charAt(n+1);return/[(|)\\]/.test(a)||a===""?r:r+"\0"})}createJoinersRegExp(e){let r=[],n=this.opt.ignorePunctuation;return Array.isArray(n)&&n.length&&r.push(this.escapeStr(n.join(""))),this.opt.ignoreJoiners&&r.push("\\u00ad\\u200b\\u200c\\u200d"),r.length?e.split(/\u0000+/).join(`[${r.join("")}]*`):e}createDiacriticsRegExp(e){let r=this.opt.caseSensitive?"":"i",n=this.opt.caseSensitive?["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105","A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010D","C\xC7\u0106\u010C","d\u0111\u010F","D\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119","E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012B","I\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142","L\u0141","n\xF1\u0148\u0144","N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014D","O\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159","R\u0158","s\u0161\u015B\u0219\u015F","S\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163","T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016B","U\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFF","Y\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017A","Z\u017D\u017B\u0179"]:["a\xE0\xE1\u1EA3\xE3\u1EA1\u0103\u1EB1\u1EAF\u1EB3\u1EB5\u1EB7\xE2\u1EA7\u1EA5\u1EA9\u1EAB\u1EAD\xE4\xE5\u0101\u0105A\xC0\xC1\u1EA2\xC3\u1EA0\u0102\u1EB0\u1EAE\u1EB2\u1EB4\u1EB6\xC2\u1EA6\u1EA4\u1EA8\u1EAA\u1EAC\xC4\xC5\u0100\u0104","c\xE7\u0107\u010DC\xC7\u0106\u010C","d\u0111\u010FD\u0110\u010E","e\xE8\xE9\u1EBB\u1EBD\u1EB9\xEA\u1EC1\u1EBF\u1EC3\u1EC5\u1EC7\xEB\u011B\u0113\u0119E\xC8\xC9\u1EBA\u1EBC\u1EB8\xCA\u1EC0\u1EBE\u1EC2\u1EC4\u1EC6\xCB\u011A\u0112\u0118","i\xEC\xED\u1EC9\u0129\u1ECB\xEE\xEF\u012BI\xCC\xCD\u1EC8\u0128\u1ECA\xCE\xCF\u012A","l\u0142L\u0141","n\xF1\u0148\u0144N\xD1\u0147\u0143","o\xF2\xF3\u1ECF\xF5\u1ECD\xF4\u1ED3\u1ED1\u1ED5\u1ED7\u1ED9\u01A1\u1EDF\u1EE1\u1EDB\u1EDD\u1EE3\xF6\xF8\u014DO\xD2\xD3\u1ECE\xD5\u1ECC\xD4\u1ED2\u1ED0\u1ED4\u1ED6\u1ED8\u01A0\u1EDE\u1EE0\u1EDA\u1EDC\u1EE2\xD6\xD8\u014C","r\u0159R\u0158","s\u0161\u015B\u0219\u015FS\u0160\u015A\u0218\u015E","t\u0165\u021B\u0163T\u0164\u021A\u0162","u\xF9\xFA\u1EE7\u0169\u1EE5\u01B0\u1EEB\u1EE9\u1EED\u1EEF\u1EF1\xFB\xFC\u016F\u016BU\xD9\xDA\u1EE6\u0168\u1EE4\u01AF\u1EEA\u1EE8\u1EEC\u1EEE\u1EF0\xDB\xDC\u016E\u016A","y\xFD\u1EF3\u1EF7\u1EF9\u1EF5\xFFY\xDD\u1EF2\u1EF6\u1EF8\u1EF4\u0178","z\u017E\u017C\u017AZ\u017D\u017B\u0179"],i=[];return e.split("").forEach(a=>{n.every(s=>{if(s.indexOf(a)!==-1){if(i.indexOf(s)>-1)return!1;e=e.replace(new RegExp(`[${s}]`,`gm${r}`),`[${s}]`),i.push(s)}return!0})}),e}createMergedBlanksRegExp(e){return e.replace(/[\s]+/gmi,"[\\s]+")}createAccuracyRegExp(e){let r="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~\xA1\xBF",n=this.opt.accuracy,i=typeof n=="string"?n:n.value,a=typeof n=="string"?[]:n.limiters,s="";switch(a.forEach(c=>{s+=`|${this.escapeStr(c)}`}),i){case"partially":default:return`()(${e})`;case"complementary":return s="\\s"+(s||this.escapeStr(r)),`()([^${s}]*${e}[^${s}]*)`;case"exactly":return`(^|\\s${s})(${e})(?=$|\\s${s})`}}getSeparatedKeywords(e){let r=[];return e.forEach(n=>{this.opt.separateWordSearch?n.split(" ").forEach(i=>{i.trim()&&r.indexOf(i)===-1&&r.push(i)}):n.trim()&&r.indexOf(n)===-1&&r.push(n)}),{keywords:r.sort((n,i)=>i.length-n.length),length:r.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 r=[],n=0;return e.sort((i,a)=>i.start-a.start).forEach(i=>{let{start:a,end:s,valid:c}=this.callNoMatchOnInvalidRanges(i,n);c&&(i.start=a,i.length=s-a,r.push(i),n=s)}),r}callNoMatchOnInvalidRanges(e,r){let n,i,a=!1;return e&&typeof e.start<"u"?(n=parseInt(e.start,10),i=n+parseInt(e.length,10),this.isNumeric(e.start)&&this.isNumeric(e.length)&&i-r>0&&i-n>0?a=!0:(this.log(`Ignoring invalid or overlapping range: ${JSON.stringify(e)}`),this.opt.noMatch(e))):(this.log(`Ignoring invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)),{start:n,end:i,valid:a}}checkWhitespaceRanges(e,r,n){let i,a=!0,s=n.length,c=r-s,d=parseInt(e.start,10)-c;return d=d>s?s:d,i=d+parseInt(e.length,10),i>s&&(i=s,this.log(`End range automatically set to the max value of ${s}`)),d<0||i-d<0||d>s||i>s?(a=!1,this.log(`Invalid range: ${JSON.stringify(e)}`),this.opt.noMatch(e)):n.substring(d,i).replace(/\s+/g,"")===""&&(a=!1,this.log("Skipping whitespace only range: "+JSON.stringify(e)),this.opt.noMatch(e)),{start:d,end:i,valid:a}}getTextNodes(e){let r="",n=[];this.iterator.forEachNode(NodeFilter.SHOW_TEXT,i=>{n.push({start:r.length,end:(r+=i.textContent).length,node:i})},i=>this.matchesExclude(i.parentNode)?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT,()=>{e({value:r,nodes:n})})}matchesExclude(e){return $t.matches(e,this.opt.exclude.concat(["script","style","title","head","html"]))}wrapRangeInTextNode(e,r,n){let i=this.opt.element?this.opt.element:"mark",a=e.splitText(r),s=a.splitText(n-r),c=document.createElement(i);return c.setAttribute("data-markjs","true"),this.opt.className&&c.setAttribute("class",this.opt.className),c.textContent=a.textContent,a.parentNode.replaceChild(c,a),s}wrapRangeInMappedTextNode(e,r,n,i,a){e.nodes.every((s,c)=>{let d=e.nodes[c+1];if(typeof d>"u"||d.start>r){if(!i(s.node))return!1;let p=r-s.start,h=(n>s.end?s.end:n)-s.start,f=e.value.substr(0,s.start),m=e.value.substr(h+s.start);if(s.node=this.wrapRangeInTextNode(s.node,p,h),e.value=f+m,e.nodes.forEach((b,x)=>{x>=c&&(e.nodes[x].start>0&&x!==c&&(e.nodes[x].start-=h),e.nodes[x].end-=h)}),n-=h,a(s.node.previousSibling,s.start),n>s.end)r=s.end;else return!1}return!0})}wrapMatches(e,r,n,i,a){let s=r===0?0:r+1;this.getTextNodes(c=>{c.nodes.forEach(d=>{d=d.node;let p;for(;(p=e.exec(d.textContent))!==null&&p[s]!=="";){if(!n(p[s],d))continue;let h=p.index;if(s!==0)for(let f=1;f<s;f++)h+=p[f].length;d=this.wrapRangeInTextNode(d,h,h+p[s].length),i(d.previousSibling),e.lastIndex=0}}),a()})}wrapMatchesAcrossElements(e,r,n,i,a){let s=r===0?0:r+1;this.getTextNodes(c=>{let d;for(;(d=e.exec(c.value))!==null&&d[s]!=="";){let p=d.index;if(s!==0)for(let f=1;f<s;f++)p+=d[f].length;let h=p+d[s].length;this.wrapRangeInMappedTextNode(c,p,h,f=>n(d[s],f),(f,m)=>{e.lastIndex=m,i(f)})}a()})}wrapRangeFromIndex(e,r,n,i){this.getTextNodes(a=>{let s=a.value.length;e.forEach((c,d)=>{let{start:p,end:h,valid:f}=this.checkWhitespaceRanges(c,s,a.value);f&&this.wrapRangeInMappedTextNode(a,p,h,m=>r(m,c,a.value.substring(p,h),d),m=>{n(m,c)})}),i()})}unwrapMatches(e){let r=e.parentNode,n=document.createDocumentFragment();for(;e.firstChild;)n.appendChild(e.removeChild(e.firstChild));r.replaceChild(n,e),this.ie?this.normalizeTextNode(r):r.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,r){this.opt=r,this.log(`Searching with expression "${e}"`);let n=0,i="wrapMatches",a=s=>{n++,this.opt.each(s)};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),this[i](e,this.opt.ignoreGroups,(s,c)=>this.opt.filter(c,s,n),a,()=>{n===0&&this.opt.noMatch(e),this.opt.done(n)})}mark(e,r){this.opt=r;let n=0,i="wrapMatches",{keywords:a,length:s}=this.getSeparatedKeywords(typeof e=="string"?[e]:e),c=this.opt.caseSensitive?"":"i",d=p=>{let h=new RegExp(this.createRegExp(p),`gm${c}`),f=0;this.log(`Searching with expression "${h}"`),this[i](h,1,(m,b)=>this.opt.filter(b,p,n,f),m=>{f++,n++,this.opt.each(m)},()=>{f===0&&this.opt.noMatch(p),a[s-1]===p?this.opt.done(n):d(a[a.indexOf(p)+1])})};this.opt.acrossElements&&(i="wrapMatchesAcrossElements"),s===0?this.opt.done(n):d(a[0])}markRanges(e,r){this.opt=r;let n=0,i=this.checkRanges(e);i&&i.length?(this.log("Starting to mark with the following ranges: "+JSON.stringify(i)),this.wrapRangeFromIndex(i,(a,s,c,d)=>this.opt.filter(a,s,c,d),(a,s)=>{n++,this.opt.each(a,s)},()=>{this.opt.done(n)})):this.opt.done(n)}unmark(e){this.opt=e;let r=this.opt.element?this.opt.element:"*";r+="[data-markjs]",this.opt.className&&(r+=`.${this.opt.className}`),this.log(`Removal selector "${r}"`),this.iterator.forEachNode(NodeFilter.SHOW_ELEMENT,n=>{this.unwrapMatches(n)},n=>{let i=$t.matches(n,r),a=this.matchesExclude(n);return!i||a?NodeFilter.FILTER_REJECT:NodeFilter.FILTER_ACCEPT},this.opt.done)}};function Ti(t){let e=new zr(t);return this.mark=(r,n)=>(e.mark(r,n),this),this.markRegExp=(r,n)=>(e.markRegExp(r,n),this),this.markRanges=(r,n)=>(e.markRanges(r,n),this),this.unmark=r=>(e.unmark(r),this),this}var Lp=Ti,tc=o.create("--ft-utils-highlight-html-background-color","","COLOR","#FFF26E"),Tp=D`
|
|
8
|
+
.highlight-html-match {
|
|
9
|
+
background: ${tc};
|
|
10
|
+
}
|
|
11
|
+
`;function Ii(t,e,r){var n,i;let a=t.getAttribute("data-highlight-html-query");if((a??"")!==(e??"")){let s=new Lp(t);if(s.unmark(),e&&e.trim()){let c={className:(n=r?.className)!==null&&n!==void 0?n:"highlight-html-match"};r?.attributes!=null&&(c.each=p=>{for(let h in r.attributes)p.setAttribute(h,r.attributes[h])}),s.mark(e.replace(/"[^"]+"/g,""),{...c,separateWordSearch:!0}),((i=e.match(/"[^"]+"/g))!==null&&i!==void 0?i:[]).forEach(p=>s.mark(p.replace(/"/g,""),{...c,separateWordSearch:!1}))}}t.setAttribute("data-highlight-html-query",e??"")}var ki={};V(ki,{noTextInputDefaultClearButton:()=>$p,noTextSelect:()=>jr,safariEllipsisFix:()=>Vr,wordWrap:()=>Ip});var jr=D`
|
|
12
|
+
.ft-no-text-select {
|
|
13
|
+
-webkit-touch-callout: none;
|
|
14
|
+
-webkit-user-select: none;
|
|
15
|
+
-khtml-user-select: none;
|
|
16
|
+
-moz-user-select: none;
|
|
17
|
+
-ms-user-select: none;
|
|
18
|
+
user-select: none;
|
|
19
|
+
}
|
|
20
|
+
`,Ip=D`
|
|
21
|
+
.ft-word-wrap {
|
|
22
|
+
white-space: normal;
|
|
23
|
+
word-wrap: break-word;
|
|
24
|
+
-ms-word-break: break-all;
|
|
25
|
+
word-break: break-all;
|
|
26
|
+
word-break: break-word;
|
|
27
|
+
-ms-hyphens: auto;
|
|
28
|
+
-moz-hyphens: auto;
|
|
29
|
+
-webkit-hyphens: auto;
|
|
30
|
+
hyphens: auto
|
|
31
|
+
}
|
|
32
|
+
`,Vr=D`
|
|
33
|
+
.ft-safari-ellipsis-fix {
|
|
34
|
+
margin-right: 0;
|
|
35
|
+
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.ft-safari-ellipsis-fix:after {
|
|
39
|
+
content: "\\0000a0";
|
|
40
|
+
display: inline-block;
|
|
41
|
+
width: 0;
|
|
42
|
+
}
|
|
43
|
+
`,$p=D`
|
|
44
|
+
input::-webkit-search-cancel-button,
|
|
45
|
+
input::-webkit-search-decoration,
|
|
46
|
+
input::-webkit-search-results-button,
|
|
47
|
+
input::-webkit-search-results-decoration {
|
|
48
|
+
display: none;
|
|
49
|
+
}
|
|
50
|
+
`;var rc={};var Di={};V(Di,{ParametrizedLabelResolver:()=>Gr});var Gr=class t{constructor(e,r){this.defaultLabels=e,this.labels=r}resolve(e,...r){var n,i;e=this.resolvePluralKey(e,r);let a=(i=(n=this.labels[e])!==null&&n!==void 0?n:this.defaultLabels[e])!==null&&i!==void 0?i:"";return t.replaceParameters(a,...r)}static replaceParameters(e,...r){return r.forEach((n,i)=>e=e.replace(new RegExp(`\\{${i}([^}]*)\\}`,"g"),(a,s)=>t.formatValue(n,s))),e}resolvePluralKey(e,r){for(let n of r)if(typeof n=="number"){let i=`${String(e)}[\\=${n}]`;if(i in this.labels||i in this.defaultLabels)return i}return e}static formatValue(e,r){return e instanceof Date?t.formatDate(e,r):e??""}static formatDate(e,r){let n=i=>r?.includes("date")?e.toLocaleDateString(i):r?.includes("time")?e.toLocaleTimeString(i):e.toLocaleString(i);try{return n(document.documentElement.lang)}catch{return n()}}};var ca={};V(ca,{FtCommandQueue:()=>Kr,FtLitElementRedux:()=>dt,FtReduxStore:()=>Mt,clearAllStores:()=>xu,isFtReduxStore:()=>kt,redux:()=>Io,reduxEventListener:()=>Dp,reduxReactive:()=>kp});var kp=()=>(t,e)=>{var r;let n=t.constructor;n.reduxReactiveProperties=new Set(n.reduxReactiveProperties),(r=n.reduxReactiveProperties)===null||r===void 0||r.add(e)},Io=t=>{let e=t??{};return(r,n)=>{var i;let a={hasChanged:Lr,attribute:!1,...e};A(a)(r,n);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(n,{selector:(i=e.selector)!==null&&i!==void 0?i:c=>c[n],store:e.store})}},Dp=t=>(e,r)=>{let n=e.constructor;n.reduxEventListeners=new Map(n.reduxEventListeners),n.reduxEventListeners.set(r,t)};var Kr=class{constructor(){this.queue=[]}add(e,r=!1){r&&(this.queue=this.queue.filter(n=>n.type!==e.type)),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}};function kt(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var oc,nc,ic,$o=Symbol("internalReduxEventsUnsubscribers"),lt=Symbol("internalStoresUnsubscribers"),Dt=Symbol("internalStores"),dt=class extends j{constructor(){super(...arguments),this[oc]=new Map,this[nc]=new Map,this[ic]=[]}get reduxConstructor(){return this.constructor}update(e){super.update(e),[...this.reduxConstructor.reduxReactiveProperties].some(r=>e.has(r))&&this.updateFromStores()}getUnnamedStore(){if(this[Dt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Dt].values()][0]}getStore(e){return e==null?this.getUnnamedStore():this[Dt].get(e)}addStore(e,r){var n;r=(n=r??(kt(e)?e.name:void 0))!==null&&n!==void 0?n:"default-store",this.unsubscribeFromStore(r),this.setupStore(r,e)}removeStore(e){let r=typeof e=="string"?e:e.name;this.unsubscribeFromStore(r),this[Dt].delete(r)}setupStore(e,r){this[Dt].set(e,r),this.subscribeToStore(e,r),this.updateFromStores()}setupStores(){this.unsubscribeFromStores(),this[Dt].forEach((e,r)=>this.subscribeToStore(r,e)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((e,r)=>{let n=this.constructor.getPropertyOptions(r);if(!n?.attribute||!this.hasAttribute(typeof n?.attribute=="string"?n.attribute:r)){let i=this.getStore(e.store);i&&(e.store?this[lt].has(e.store):this[lt].size>0)&&(this[r]=e.selector(i.getState(),this))}})}subscribeToStore(e,r){var n;this[lt].set(e,r.subscribe(()=>this.updateFromStores())),kt(r)&&r.eventBus&&((n=this.reduxConstructor.reduxEventListeners)===null||n===void 0||n.forEach((i,a)=>{if(typeof this[a]=="function"&&(!i.store||r.name===i.store)){let s=c=>this[a](c);r.eventBus.addEventListener(i.eventName,s),this[$o].push(()=>r.eventBus.removeEventListener(i.eventName,s))}})),this.onStoreAvailable(e)}unsubscribeFromStores(){this[lt].forEach((e,r)=>this.unsubscribeFromStore(r)),this[$o].forEach(e=>e()),this[$o]=[]}unsubscribeFromStore(e){this[lt].has(e)&&this[lt].get(e)(),this[lt].delete(e)}onStoreAvailable(e){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}};oc=lt,nc=Dt,ic=$o;dt.reduxProperties=new Map;dt.reduxReactiveProperties=new Set;dt.reduxEventListeners=new Map;function we(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var i,a;throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(s){return"'"+s+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function et(t){return!!t&&!!t[X]}function Te(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===jp}(t)||Array.isArray(t)||!!t[uc]||!!(!((e=t.constructor)===null||e===void 0)&&e[uc])||Vi(t)||Gi(t))}function Ut(t,e,r){r===void 0&&(r=!1),tr(t)===0?(r?Object.keys:er)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,i){return e(i,n,t)})}function tr(t){var e=t[X];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Vi(t)?2:Gi(t)?3:0}function Qt(t,e){return tr(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Up(t,e){return tr(t)===2?t.get(e):t[e]}function fc(t,e,r){var n=tr(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function hc(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Vi(t){return Hp&&t instanceof Map}function Gi(t){return zp&&t instanceof Set}function pt(t){return t.o||t.t}function Ki(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=gc(t);delete e[X];for(var r=er(e),n=0;n<r.length;n++){var i=r[n],a=e[i];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[i]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[i]})}return Object.create(Object.getPrototypeOf(t),e)}function Zi(t,e){return e===void 0&&(e=!1),qi(t)||et(t)||!Te(t)||(tr(t)>1&&(t.set=t.add=t.clear=t.delete=Mp),Object.freeze(t),e&&Ut(t,function(r,n){return Zi(n,!0)},!0)),t}function Mp(){we(2)}function qi(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function ze(t){var e=ji[t];return e||we(18,t),e}function Bp(t,e){ji[t]||(ji[t]=e)}function Wi(){return qr}function Ui(t,e){e&&(ze("Patches"),t.u=[],t.s=[],t.v=e)}function ko(t){Hi(t),t.p.forEach(Fp),t.p=null}function Hi(t){t===qr&&(qr=t.l)}function ac(t){return qr={p:[],l:qr,h:t,m:!0,_:0}}function Fp(t){var e=t[X];e.i===0||e.i===1?e.j():e.g=!0}function Mi(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||ze("ES5").S(e,t,n),n?(r[X].P&&(ko(e),we(4)),Te(t)&&(t=Do(e,t),e.l||Uo(e,t)),e.u&&ze("Patches").M(r[X].t,t,e.u,e.s)):t=Do(e,r,[]),ko(e),e.u&&e.v(e.u,e.s),t!==mc?t:void 0}function Do(t,e,r){if(qi(e))return e;var n=e[X];if(!n)return Ut(e,function(c,d){return sc(t,n,e,c,d,r)},!0),e;if(n.A!==t)return e;if(!n.P)return Uo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=Ki(n.k):n.o,a=i,s=!1;n.i===3&&(a=new Set(i),i.clear(),s=!0),Ut(a,function(c,d){return sc(t,n,i,c,d,r,s)}),Uo(t,i,!1),r&&t.u&&ze("Patches").N(n,r,t.u,t.s)}return n.o}function sc(t,e,r,n,i,a,s){if(et(i)){var c=Do(t,i,a&&e&&e.i!==3&&!Qt(e.R,n)?a.concat(n):void 0);if(fc(r,n,c),!et(c))return;t.m=!1}else s&&r.add(i);if(Te(i)&&!qi(i)){if(!t.h.D&&t._<1)return;Do(t,i),e&&e.A.l||Uo(t,i)}}function Uo(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Zi(e,r)}function Bi(t,e){var r=t[X];return(r?pt(r):t)[e]}function cc(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function ut(t){t.P||(t.P=!0,t.l&&ut(t.l))}function Fi(t){t.o||(t.o=Ki(t.t))}function zi(t,e,r){var n=Vi(e)?ze("MapSet").F(e,r):Gi(e)?ze("MapSet").T(e,r):t.O?function(i,a){var s=Array.isArray(i),c={i:s?1:0,A:a?a.A:Wi(),P:!1,I:!1,R:{},l:a,t:i,k:null,o:null,j:null,C:!1},d=c,p=Yr;s&&(d=[c],p=Zr);var h=Proxy.revocable(d,p),f=h.revoke,m=h.proxy;return c.k=m,c.j=f,m}(e,r):ze("ES5").J(e,r);return(r?r.A:Wi()).p.push(n),n}function Wp(t){return et(t)||we(22,t),function e(r){if(!Te(r))return r;var n,i=r[X],a=tr(r);if(i){if(!i.P&&(i.i<4||!ze("ES5").K(i)))return i.t;i.I=!0,n=lc(r,a),i.I=!1}else n=lc(r,a);return Ut(n,function(s,c){i&&Up(i.t,s)===c||fc(n,s,e(c))}),a===3?new Set(n):n}(t)}function lc(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ki(t)}function yc(){function t(s,c){var d=a[s];return d?d.enumerable=c:a[s]=d={configurable:!0,enumerable:c,get:function(){var p=this[X];return Yr.get(p,s)},set:function(p){var h=this[X];Yr.set(h,s,p)}},d}function e(s){for(var c=s.length-1;c>=0;c--){var d=s[c][X];if(!d.P)switch(d.i){case 5:n(d)&&ut(d);break;case 4:r(d)&&ut(d)}}}function r(s){for(var c=s.t,d=s.k,p=er(d),h=p.length-1;h>=0;h--){var f=p[h];if(f!==X){var m=c[f];if(m===void 0&&!Qt(c,f))return!0;var b=d[f],x=b&&b[X];if(x?x.t!==m:!hc(b,m))return!0}}var C=!!c[X];return p.length!==er(c).length+(C?0:1)}function n(s){var c=s.k;if(c.length!==s.t.length)return!0;var d=Object.getOwnPropertyDescriptor(c,c.length-1);if(d&&!d.get)return!0;for(var p=0;p<c.length;p++)if(!c.hasOwnProperty(p))return!0;return!1}function i(s){s.g&&we(3,JSON.stringify(pt(s)))}var a={};Bp("ES5",{J:function(s,c){var d=Array.isArray(s),p=function(f,m){if(f){for(var b=Array(m.length),x=0;x<m.length;x++)Object.defineProperty(b,""+x,t(x,!0));return b}var C=gc(m);delete C[X];for(var L=er(C),R=0;R<L.length;R++){var P=L[R];C[P]=t(P,f||!!C[P].enumerable)}return Object.create(Object.getPrototypeOf(m),C)}(d,s),h={i:d?5:4,A:c?c.A:Wi(),P:!1,I:!1,R:{},l:c,t:s,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,X,{value:h,writable:!0}),p},S:function(s,c,d){d?et(c)&&c[X].A===s&&e(s.p):(s.u&&function p(h){if(h&&typeof h=="object"){var f=h[X];if(f){var m=f.t,b=f.k,x=f.R,C=f.i;if(C===4)Ut(b,function(O){O!==X&&(m[O]!==void 0||Qt(m,O)?x[O]||p(b[O]):(x[O]=!0,ut(f)))}),Ut(m,function(O){b[O]!==void 0||Qt(b,O)||(x[O]=!1,ut(f))});else if(C===5){if(n(f)&&(ut(f),x.length=!0),b.length<m.length)for(var L=b.length;L<m.length;L++)x[L]=!1;else for(var R=m.length;R<b.length;R++)x[R]=!0;for(var P=Math.min(b.length,m.length),S=0;S<P;S++)b.hasOwnProperty(S)||(x[S]=!0),x[S]===void 0&&p(b[S])}}}}(s.p[0]),e(s.p))},K:function(s){return s.i===4?r(s):n(s)}})}var dc,qr,Yi=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Hp=typeof Map<"u",zp=typeof Set<"u",pc=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",mc=Yi?Symbol.for("immer-nothing"):((dc={})["immer-nothing"]=!0,dc),uc=Yi?Symbol.for("immer-draftable"):"__$immer_draftable",X=Yi?Symbol.for("immer-state"):"__$immer_state";var jp=""+Object.prototype.constructor,er=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,gc=Object.getOwnPropertyDescriptors||function(t){var e={};return er(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},ji={},Yr={get:function(t,e){if(e===X)return t;var r=pt(t);if(!Qt(r,e))return function(i,a,s){var c,d=cc(a,s);return d?"value"in d?d.value:(c=d.get)===null||c===void 0?void 0:c.call(i.k):void 0}(t,r,e);var n=r[e];return t.I||!Te(n)?n:n===Bi(t.t,e)?(Fi(t),t.o[e]=zi(t.A.h,n,t)):n},has:function(t,e){return e in pt(t)},ownKeys:function(t){return Reflect.ownKeys(pt(t))},set:function(t,e,r){var n=cc(pt(t),e);if(n?.set)return n.set.call(t.k,r),!0;if(!t.P){var i=Bi(pt(t),e),a=i?.[X];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(hc(r,i)&&(r!==void 0||Qt(t.t,e)))return!0;Fi(t),ut(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return Bi(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Fi(t),ut(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=pt(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){we(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){we(12)}},Zr={};Ut(Yr,function(t,e){Zr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Zr.deleteProperty=function(t,e){return Zr.set.call(this,t,e,void 0)},Zr.set=function(t,e,r){return Yr.set.call(this,t[0],e,r,t[0])};var Vp=function(){function t(r){var n=this;this.O=pc,this.D=!0,this.produce=function(i,a,s){if(typeof i=="function"&&typeof a!="function"){var c=a;a=i;var d=n;return function(C){var L=this;C===void 0&&(C=c);for(var R=arguments.length,P=Array(R>1?R-1:0),S=1;S<R;S++)P[S-1]=arguments[S];return d.produce(C,function(O){var E;return(E=a).call.apply(E,[L,O].concat(P))})}}var p;if(typeof a!="function"&&we(6),s!==void 0&&typeof s!="function"&&we(7),Te(i)){var h=ac(n),f=zi(n,i,void 0),m=!0;try{p=a(f),m=!1}finally{m?ko(h):Hi(h)}return typeof Promise<"u"&&p instanceof Promise?p.then(function(C){return Ui(h,s),Mi(C,h)},function(C){throw ko(h),C}):(Ui(h,s),Mi(p,h))}if(!i||typeof i!="object"){if((p=a(i))===void 0&&(p=i),p===mc&&(p=void 0),n.D&&Zi(p,!0),s){var b=[],x=[];ze("Patches").M(i,p,b,x),s(b,x)}return p}we(21,i)},this.produceWithPatches=function(i,a){if(typeof i=="function")return function(p){for(var h=arguments.length,f=Array(h>1?h-1:0),m=1;m<h;m++)f[m-1]=arguments[m];return n.produceWithPatches(p,function(b){return i.apply(void 0,[b].concat(f))})};var s,c,d=n.produce(i,a,function(p,h){s=p,c=h});return typeof Promise<"u"&&d instanceof Promise?d.then(function(p){return[p,s,c]}):[d,s,c]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){Te(r)||we(8),et(r)&&(r=Wp(r));var n=ac(this),i=zi(this,r,void 0);return i[X].C=!0,Hi(n),i},e.finishDraft=function(r,n){var i=r&&r[X],a=i.A;return Ui(a,n),Mi(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!pc&&we(20),this.O=r},e.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var a=n[i];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}i>-1&&(n=n.slice(i+1));var s=ze("Patches").$;return et(r)?s(r,n):this.produce(r,function(c){return s(c,n)})},t}(),Ce=new Vp,Gp=Ce.produce,Wg=Ce.produceWithPatches.bind(Ce),Hg=Ce.setAutoFreeze.bind(Ce),zg=Ce.setUseProxies.bind(Ce),jg=Ce.applyPatches.bind(Ce),Vg=Ce.createDraft.bind(Ce),Gg=Ce.finishDraft.bind(Ce),Mo=Gp;function ft(t){"@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(t)}function Xi(t,e){if(ft(t)!=="object"||t===null)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(ft(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Ji(t){var e=Xi(t,"string");return ft(e)==="symbol"?e:String(e)}function Qi(t,e,r){return e=Ji(e),e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function bc(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Bo(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?bc(Object(r),!0).forEach(function(n){Qi(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bc(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function de(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}var xc=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),ea=function(){return Math.random().toString(36).substring(7).split("").join(".")},Fo={INIT:"@@redux/INIT"+ea(),REPLACE:"@@redux/REPLACE"+ea(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ea()}};function Kp(t){if(typeof t!="object"||t===null)return!1;for(var e=t;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}function ta(t,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(de(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(de(1));return r(ta)(t,e)}if(typeof t!="function")throw new Error(de(2));var i=t,a=e,s=[],c=s,d=!1;function p(){c===s&&(c=s.slice())}function h(){if(d)throw new Error(de(3));return a}function f(C){if(typeof C!="function")throw new Error(de(4));if(d)throw new Error(de(5));var L=!0;return p(),c.push(C),function(){if(L){if(d)throw new Error(de(6));L=!1,p();var P=c.indexOf(C);c.splice(P,1),s=null}}}function m(C){if(!Kp(C))throw new Error(de(7));if(typeof C.type>"u")throw new Error(de(8));if(d)throw new Error(de(9));try{d=!0,a=i(a,C)}finally{d=!1}for(var L=s=c,R=0;R<L.length;R++){var P=L[R];P()}return C}function b(C){if(typeof C!="function")throw new Error(de(10));i=C,m({type:Fo.REPLACE})}function x(){var C,L=f;return C={subscribe:function(P){if(typeof P!="object"||P===null)throw new Error(de(11));function S(){P.next&&P.next(h())}S();var O=L(S);return{unsubscribe:O}}},C[xc]=function(){return this},C}return m({type:Fo.INIT}),n={dispatch:m,subscribe:f,getState:h,replaceReducer:b},n[xc]=x,n}function Zp(t){Object.keys(t).forEach(function(e){var r=t[e],n=r(void 0,{type:Fo.INIT});if(typeof n>"u")throw new Error(de(12));if(typeof r(void 0,{type:Fo.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(de(13))})}function vc(t){for(var e=Object.keys(t),r={},n=0;n<e.length;n++){var i=e[n];typeof t[i]=="function"&&(r[i]=t[i])}var a=Object.keys(r),s,c;try{Zp(r)}catch(d){c=d}return function(p,h){if(p===void 0&&(p={}),c)throw c;if(0)var f;for(var m=!1,b={},x=0;x<a.length;x++){var C=a[x],L=r[C],R=p[C],P=L(R,h);if(typeof P>"u"){var S=h&&h.type;throw new Error(de(14))}b[C]=P,m=m||P!==R}return m=m||a.length!==Object.keys(p).length,m?b:p}}function rr(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,i){return function(){return n(i.apply(void 0,arguments))}})}function Sc(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return function(n){return function(){var i=n.apply(void 0,arguments),a=function(){throw new Error(de(15))},s={getState:i.getState,dispatch:function(){return a.apply(void 0,arguments)}},c=e.map(function(d){return d(s)});return a=rr.apply(void 0,c)(i.dispatch),Bo(Bo({},i),{},{dispatch:a})}}}function Oc(t){var e=function(n){var i=n.dispatch,a=n.getState;return function(s){return function(c){return typeof c=="function"?c(i,a,t):s(c)}}};return e}var Cc=Oc();Cc.withExtraArgument=Oc;var ra=Cc;var Nc=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),qp=function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(p){return function(h){return d([p,h])}}function d(p){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,i&&(a=p[0]&2?i.return:p[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,p[1])).done)return a;switch(i=0,a&&(p=[p[0]&2,a.value]),p[0]){case 0:case 1:a=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,i=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(a=r.trys,!(a=a.length>0&&a[a.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!a||p[1]>a[0]&&p[1]<a[3])){r.label=p[1];break}if(p[0]===6&&r.label<a[1]){r.label=a[1],a=p;break}if(a&&r.label<a[2]){r.label=a[2],r.ops.push(p);break}a[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(t,r)}catch(h){p=[6,h],i=0}finally{n=a=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},or=function(t,e){for(var r=0,n=e.length,i=t.length;r<n;r++,i++)t[i]=e[r];return t},Yp=Object.defineProperty,Xp=Object.defineProperties,Jp=Object.getOwnPropertyDescriptors,Ec=Object.getOwnPropertySymbols,Qp=Object.prototype.hasOwnProperty,eu=Object.prototype.propertyIsEnumerable,wc=function(t,e,r){return e in t?Yp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r},ht=function(t,e){for(var r in e||(e={}))Qp.call(e,r)&&wc(t,r,e[r]);if(Ec)for(var n=0,i=Ec(e);n<i.length;n++){var r=i[n];eu.call(e,r)&&wc(t,r,e[r])}return t},oa=function(t,e){return Xp(t,Jp(e))},tu=function(t,e,r){return new Promise(function(n,i){var a=function(d){try{c(r.next(d))}catch(p){i(p)}},s=function(d){try{c(r.throw(d))}catch(p){i(p)}},c=function(d){return d.done?n(d.value):Promise.resolve(d.value).then(a,s)};c((r=r.apply(t,e)).next())})};var ru=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?rr:rr.apply(null,arguments)},db=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}};function ou(t){if(typeof t!="object"||t===null)return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}var nu=function(t){Nc(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,or([void 0],r[0].concat(this)))):new(e.bind.apply(e,or([void 0],r.concat(this))))},e}(Array),iu=function(t){Nc(e,t);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=t.apply(this,r)||this;return Object.setPrototypeOf(i,e.prototype),i}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return t.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,or([void 0],r[0].concat(this)))):new(e.bind.apply(e,or([void 0],r.concat(this))))},e}(Array);function aa(t){return Te(t)?Mo(t,function(){}):t}function au(t){return typeof t=="boolean"}function su(){return function(e){return cu(e)}}function cu(t){t===void 0&&(t={});var e=t.thunk,r=e===void 0?!0:e,n=t.immutableCheck,i=n===void 0?!0:n,a=t.serializableCheck,s=a===void 0?!0:a,c=new nu;if(r&&(au(r)?c.push(ra):c.push(ra.withExtraArgument(r.extraArgument))),0){if(i)var d;if(s)var p}return c}var na=!0;function _c(t){var e=su(),r=t||{},n=r.reducer,i=n===void 0?void 0:n,a=r.middleware,s=a===void 0?e():a,c=r.devTools,d=c===void 0?!0:c,p=r.preloadedState,h=p===void 0?void 0:p,f=r.enhancers,m=f===void 0?void 0:f,b;if(typeof i=="function")b=i;else if(ou(i))b=vc(i);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var x=s;if(typeof x=="function"&&(x=x(e),!na&&!Array.isArray(x)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!na&&x.some(function(O){return typeof O!="function"}))throw new Error("each middleware provided to configureStore must be a function");var C=Sc.apply(void 0,x),L=rr;d&&(L=ru(ht({trace:!na},typeof d=="object"&&d)));var R=new iu(C),P=R;Array.isArray(m)?P=or([C],m):typeof m=="function"&&(P=m(R));var S=L.apply(void 0,P);return ta(b,h,S)}function yt(t,e){function r(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(e){var a=e.apply(void 0,n);if(!a)throw new Error("prepareAction did not return an object");return ht(ht({type:t,payload:a.payload},"meta"in a&&{meta:a.meta}),"error"in a&&{error:a.error})}return{type:t,payload:n[0]}}return r.toString=function(){return""+t},r.type=t,r.match=function(n){return n.type===t},r}function Pc(t){var e={},r=[],n,i={addCase:function(a,s){var c=typeof a=="string"?a:a.type;if(c in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[c]=s,i},addMatcher:function(a,s){return r.push({matcher:a,reducer:s}),i},addDefaultCase:function(a){return n=a,i}};return t(i),[e,r,n]}function lu(t){return typeof t=="function"}function du(t,e,r,n){r===void 0&&(r=[]);var i=typeof e=="function"?Pc(e):[e,r,n],a=i[0],s=i[1],c=i[2],d;if(lu(t))d=function(){return aa(t())};else{var p=aa(t);d=function(){return p}}function h(f,m){f===void 0&&(f=d());var b=or([a[m.type]],s.filter(function(x){var C=x.matcher;return C(m)}).map(function(x){var C=x.reducer;return C}));return b.filter(function(x){return!!x}).length===0&&(b=[c]),b.reduce(function(x,C){if(C)if(et(x)){var L=x,R=C(L,m);return R===void 0?x:R}else{if(Te(x))return Mo(x,function(P){return C(P,m)});var R=C(x,m);if(R===void 0){if(x===null)return x;throw Error("A case reducer on a non-draftable value must not return undefined")}return R}return x},f)}return h.getInitialState=d,h}function pu(t,e){return t+"/"+e}function Lc(t){var e=t.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof t.initialState=="function"?t.initialState:aa(t.initialState),n=t.reducers||{},i=Object.keys(n),a={},s={},c={};i.forEach(function(h){var f=n[h],m=pu(e,h),b,x;"reducer"in f?(b=f.reducer,x=f.prepare):b=f,a[h]=b,s[m]=b,c[h]=x?yt(m,x):yt(m)});function d(){var h=typeof t.extraReducers=="function"?Pc(t.extraReducers):[t.extraReducers],f=h[0],m=f===void 0?{}:f,b=h[1],x=b===void 0?[]:b,C=h[2],L=C===void 0?void 0:C,R=ht(ht({},m),s);return du(r,function(P){for(var S in R)P.addCase(S,R[S]);for(var O=0,E=x;O<E.length;O++){var $=E[O];P.addMatcher($.matcher,$.reducer)}L&&P.addDefaultCase(L)})}var p;return{name:e,reducer:function(h,f){return p||(p=d()),p(h,f)},actions:c,caseReducers:a,getInitialState:function(){return p||(p=d()),p.getInitialState()}}}var uu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",fu=function(t){t===void 0&&(t=21);for(var e="",r=t;r--;)e+=uu[Math.random()*64|0];return e},hu=["name","message","stack","code"],ia=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),Ac=function(){function t(e,r){this.payload=e,this.meta=r}return t}(),yu=function(t){if(typeof t=="object"&&t!==null){for(var e={},r=0,n=hu;r<n.length;r++){var i=n[r];typeof t[i]=="string"&&(e[i]=t[i])}return e}return{message:String(t)}},hb=function(){function t(e,r,n){var i=yt(e+"/fulfilled",function(h,f,m,b){return{payload:h,meta:oa(ht({},b||{}),{arg:m,requestId:f,requestStatus:"fulfilled"})}}),a=yt(e+"/pending",function(h,f,m){return{payload:void 0,meta:oa(ht({},m||{}),{arg:f,requestId:h,requestStatus:"pending"})}}),s=yt(e+"/rejected",function(h,f,m,b,x){return{payload:b,error:(n&&n.serializeError||yu)(h||"Rejected"),meta:oa(ht({},x||{}),{arg:m,requestId:f,rejectedWithValue:!!b,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"})}}),c=!1,d=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 p(h){return function(f,m,b){var x=n?.idGenerator?n.idGenerator(h):fu(),C=new d,L,R=!1;function P(O){L=O,C.abort()}var S=function(){return tu(this,null,function(){var O,E,$,F,H,z,I;return qp(this,function(y){switch(y.label){case 0:return y.trys.push([0,4,,5]),F=(O=n?.condition)==null?void 0:O.call(n,h,{getState:m,extra:b}),gu(F)?[4,F]:[3,2];case 1:F=y.sent(),y.label=2;case 2:if(F===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return R=!0,H=new Promise(function(v,T){return C.signal.addEventListener("abort",function(){return T({name:"AbortError",message:L||"Aborted"})})}),f(a(x,h,(E=n?.getPendingMeta)==null?void 0:E.call(n,{requestId:x,arg:h},{getState:m,extra:b}))),[4,Promise.race([H,Promise.resolve(r(h,{dispatch:f,getState:m,extra:b,requestId:x,signal:C.signal,abort:P,rejectWithValue:function(v,T){return new ia(v,T)},fulfillWithValue:function(v,T){return new Ac(v,T)}})).then(function(v){if(v instanceof ia)throw v;return v instanceof Ac?i(v.payload,x,h,v.meta):i(v,x,h)})])];case 3:return $=y.sent(),[3,5];case 4:return z=y.sent(),$=z instanceof ia?s(null,x,h,z.payload,z.meta):s(z,x,h),[3,5];case 5:return I=n&&!n.dispatchConditionRejection&&s.match($)&&$.meta.condition,I||f($),[2,$]}})})}();return Object.assign(S,{abort:P,requestId:x,arg:h,unwrap:function(){return S.then(mu)}})}}return Object.assign(p,{pending:a,rejected:s,fulfilled:i,typePrefix:e})}return t.withTypes=function(){return t},t}();function mu(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function gu(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Tc="listener",Ic="completed",$c="cancelled",yb="task-"+$c,mb="task-"+Ic,gb=Tc+"-"+$c,bb=Tc+"-"+Ic;var sa="listenerMiddleware";var xb=yt(sa+"/add"),vb=yt(sa+"/removeAll"),Sb=yt(sa+"/remove");var Rc,Ob=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(t){return(Rc||(Rc=Promise.resolve())).then(t).catch(function(e){return setTimeout(function(){throw e},0)})},bu=function(t){return function(e){setTimeout(e,t)}},Cb=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:bu(10);yc();window.ftReduxStores||(window.ftReduxStores={});var Mt=class t{static get(e){var r;let n=typeof e=="string"?e:e.name,i=typeof e=="string"?void 0:e,a=window.ftReduxStores[n];if(kt(a))return a;if(i==null)return;let s=Lc({...i,reducers:(r=i.reducers)!==null&&r!==void 0?r:{}}),c=_c({reducer:(d,p)=>p.type==="CLEAR_FT_REDUX_STORE"?s.getInitialState():typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__")?{...d,...p.overwrites}:s.reducer(d,p)});return window.ftReduxStores[i.name]=new t(s,c)}constructor(e,r){this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.eventBus=document.createElement("event-bus"),this.commands=new Kr,this.actions=new Proxy(this.reduxSlice.actions,{get:(n,i,a)=>{let s=i,c=n[s];return c?(...d)=>{let p=c(...d);return this.reduxStore.dispatch(p),p}:d=>{this.setState({[s]:d})}}})}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 xu(){var t;for(let e of Object.values((t=window.ftReduxStores)!==null&&t!==void 0?t:{}))kt(e)&&e.clear()}var pa={};V(pa,{scrollHelper:()=>vu});var la,Wo=new Map,da=class{lock(e,r){if(r){let n=Wo.get(r);if(n==null||n===e)return Wo.set(r,e),r}}release(e,r){r&&Wo.get(r)===e&&Wo.delete(r)}findFirstScrollableParent(e){let r,n=i=>{var a;i.stopPropagation();let s,c;for(let d of i.composedPath()){let p=d,h=this.elementCanScroll(p);if(h&&p.clientHeight&&p.clientHeight<p.scrollHeight){s=p;break}else h&&c==null&&(c=p)}r=(a=s??c)!==null&&a!==void 0?a:document.body};return e.addEventListener("find-scrollable-parent",n),e.dispatchEvent(new Event("find-scrollable-parent",{composed:!0})),e.removeEventListener("find-scrollable-parent",n),r}elementCanScroll(e){try{return["auto","scroll"].includes(getComputedStyle(e).overflowY)}catch{return!1}}getAbsoluteScrollOffset(e,r){let n=0;for(;r&&r.offsetParent!==e.offsetParent;)n+=r.offsetTop,r=r.offsetParent;return n+r.offsetTop-e.offsetTop}computeTopOffsetRatio(e,r){if(typeof e=="number")return e;switch(e){case"end":return 1;case"center":return .5;case"nearest":return r;default:return 0}}scrollIntoViewIfPossible(e,r){let n=this.findFirstScrollableParent(e);if(e&&this.lock(this,n)){let i=this.getAbsoluteScrollOffset(n,e),a=i-n.clientHeight+e.clientHeight,s=i,c=Tn(0,(s-n.scrollTop)/(s-a),1),d=this.computeTopOffsetRatio(r?.position,c)*(a-s)+s;n.scrollTo({behavior:r?.behavior,top:d})}else console.warn("Could not scroll element into view because the scrollable parent is already locked",e,n);this.release(this,n)}};window.FluidTopicsScrollHelper=(la=window.FluidTopicsScrollHelper)!==null&&la!==void 0?la:new da;var vu=window.FluidTopicsScrollHelper;var ua={};V(ua,{shadowQuerySelector:()=>Su,shadowQuerySelectorAll:()=>Ou});function Su(t,e,...r){var n;let i=t.querySelector(e);for(let a of r)i=(n=i?.shadowRoot)===null||n===void 0?void 0:n.querySelector(a);return i}function Ou(t,e,...r){let n=[...t.querySelectorAll(e)];for(let i of r)n=n.flatMap(a=>{var s,c;return[...(c=(s=a.shadowRoot)===null||s===void 0?void 0:s.querySelectorAll(i))!==null&&c!==void 0?c:[]]});return n}var fa={};V(fa,{SearchPlaceConverter:()=>jo,SearchPlaceQueryParams:()=>K,isSearchPlaceQueryParams:()=>ol,serializeRequest:()=>Au});var Cu=Yl(Dc(),1);var Uc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Uc||(Uc={}));var Mc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(Mc||(Mc={}));var Bc;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(Bc||(Bc={}));var Fc;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT"})(Fc||(Fc={}));var Wc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Wc||(Wc={}));var Hc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Hc||(Hc={}));var zc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(zc||(zc={}));var jc;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(jc||(jc={}));var Vc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Vc||(Vc={}));var Gc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Gc||(Gc={}));var Kc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Kc||(Kc={}));var Zc;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Zc||(Zc={}));var el=t=>["EVERYWHERE","TITLE_ONLY","NONE"].includes(t);var qc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"})(qc||(qc={}));var Yc;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Yc||(Yc={}));var Xc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"})(Xc||(Xc={}));var Xr;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Xr||(Xr={}));var tl=t=>["LAST_WEEK","LAST_MONTH","LAST_QUARTER","LAST_YEAR"].includes(t);var Jc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"})(Jc||(Jc={}));var Qc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"})(Qc||(Qc={}));var ie;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"})(ie||(ie={}));var rl;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(rl||(rl={}));var Fb={[ie.PERSONAL_BOOK_SHARE_USER]:[ie.PERSONAL_BOOK_USER],[ie.HTML_EXPORT_USER]:[ie.PERSONAL_BOOK_USER],[ie.PDF_EXPORT_USER]:[ie.PERSONAL_BOOK_USER],[ie.KHUB_ADMIN]:[ie.CONTENT_PUBLISHER],[ie.ADMIN]:[ie.KHUB_ADMIN,ie.USERS_ADMIN,ie.PORTAL_ADMIN],[ie.DEVELOPER]:[ie.BETA_USER,ie.DEBUG_USER]};function Eu(t){return`"${t}"`}function wu(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function Au(t,e){return new jo(t,{}).serialize(e)}var K;(function(t){t.LOCALE="content-lang",t.QUERY="query",t.SCOPE="scope",t.FILTERS="filters",t.VIRTUAL_FIELD="virtual-field",t.PERIOD="period",t.VALUE_FILTERS="value-filters",t.DATE_FILTERS="date-filters",t.RANGE_FILTERS="range-filters",t.SORT="sort"})(K||(K={}));var Ru=new Set(Object.values(K));function ol(t){return Ru.has(t)}var jo=class{constructor(e,r){this.baseUrl=e,this.predefinedSorts=r,this.scopeMapping={documents:"DOCUMENTS",topics:"ALL_TOPICS"},this.filtersEscapeMapping=[["*","\\*","[ft-escaped-star-character]"],["~","\\\\~","[ft-escaped-tilde-character]"],["_","\\\\\\\\_","[ft-escaped-underscore-character]"]]}serialize(e,r="/search"){let n=this.toURLSearchParams(e).toString();return new URL(`${this.baseUrl.replace(/\/+$/,"")}${r}?${n}`).href}toURLSearchParams(e){var r,n,i,a,s,c,d,p,h,f;let m=new URLSearchParams({[K.LOCALE]:(r=e.contentLocale)!==null&&r!==void 0?r:"all"});((n=e.query)===null||n===void 0?void 0:n.length)>0&&m.append(K.QUERY,e.query),e.scope&&e.scope!=="DEFAULT"&&m.append(K.SCOPE,e.scope.toLowerCase()),e.virtualField&&e.virtualField!=="EVERYWHERE"&&m.append(K.VIRTUAL_FIELD,e.virtualField.toLowerCase()),((i=e.sort)===null||i===void 0?void 0:i.length)>0&&e.sort[0].key==="ft:lastEdition"&&m.append(K.SORT,"last_update");let b=(s=(a=e.metadataFilters)===null||a===void 0?void 0:a.filter(R=>R.valueFilter))!==null&&s!==void 0?s:[];if(b.length>0){let R=b.map(P=>{var S,O;let E=((O=(S=P.valueFilter)===null||S===void 0?void 0:S.values)!==null&&O!==void 0?O:[]).map($=>this.escapeFilters($)).map($=>encodeURIComponent(Eu($))).join("_");return`${P.key}~${E}`}).join("*");m.append(K.VALUE_FILTERS,R)}let x=(d=(c=e.metadataFilters)===null||c===void 0?void 0:c.filter(R=>R.dateFilter))!==null&&d!==void 0?d:[];if(x.length>0){let R=x.map(P=>{var S;return`${P.key}~${(S=P.dateFilter)===null||S===void 0?void 0:S.type.toLowerCase()}`}).join("*");m.append(K.DATE_FILTERS,R)}let C=(h=(p=e.metadataFilters)===null||p===void 0?void 0:p.filter(R=>R.rangeFilter))!==null&&h!==void 0?h:[];if(C.length>0){let R=C.map(P=>{var S,O;return`${P.key}~${(S=P.rangeFilter)===null||S===void 0?void 0:S.from}_${(O=P.rangeFilter)===null||O===void 0?void 0:O.to}`}).join("*");m.append(K.RANGE_FILTERS,R)}let L=(f=e.otherQueryParams)!==null&&f!==void 0?f:{};for(let R in L)m.append(R,L[R]);return m}parse(e){var r;let n=e.split("?"),i=this.fromURLSearchParams(new URLSearchParams(n.slice(1).join("?"))),a=n[0].split("/search/")[1];return a==null?i:{...i,scope:(r=this.scopeMapping[a])!==null&&r!==void 0?r:i.scope}}fromURLSearchParams(e){var r,n,i,a,s,c,d,p;let h=((r=e.get(K.VIRTUAL_FIELD))!==null&&r!==void 0?r:"EVERYWHERE").toUpperCase(),f=((n=e.get(K.SORT))!==null&&n!==void 0?n:"DEFAULT").toUpperCase(),m=(i=e.get(K.SCOPE))!==null&&i!==void 0?i:"default",b={};for(let x of e.keys())ol(x)||(b[x]=e.get(x));return{contentLocale:e.get(K.LOCALE)==="all"?void 0:(a=e.get(K.LOCALE))!==null&&a!==void 0?a:void 0,query:decodeURIComponent((s=e.get(K.QUERY))!==null&&s!==void 0?s:""),scope:(c=this.scopeMapping[m])!==null&&c!==void 0?c:"DEFAULT",virtualField:el(h)?h:"EVERYWHERE",sort:(p=(d=this.predefinedSorts[f])!==null&&d!==void 0?d:this.predefinedSorts.DEFAULT)!==null&&p!==void 0?p:[],metadataFilters:this.parseCompatFilters(e),facets:[],paging:{page:1,perPage:20},otherQueryParams:b}}parseCompatFilters(e){var r,n,i,a,s,c;let d=[];return e.has(K.FILTERS)&&(d=this.parseValueFilters((r=e.get(K.FILTERS))!==null&&r!==void 0?r:"")),(n=e.has(K.PERIOD))!==null&&n!==void 0&&n&&(d=[...d,...this.parseLegacyPeriodFilter(((i=e.get(K.PERIOD))!==null&&i!==void 0?i:"").toUpperCase())]),[...d,...this.parseValueFilters((a=e.get(K.VALUE_FILTERS))!==null&&a!==void 0?a:""),...this.parseDateFilters((s=e.get(K.DATE_FILTERS))!==null&&s!==void 0?s:""),...this.parseRangeFilters((c=e.get(K.RANGE_FILTERS))!==null&&c!==void 0?c:"")]}splitUnknownFilter(e){return this.superEscapeFilters(decodeURIComponent(e)).split("*").map(r=>r.split("~"))}parseValueFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],valueFilter:{values:r[1].split("_").map(wu).map(n=>this.unescapeFilterValue(n)),negative:!1}}))}parseDateFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],dateFilter:{type:Xr[r[1].toUpperCase()]}}))}parseRangeFilters(e){return e.length===0?[]:this.splitUnknownFilter(e).map(r=>({key:r[0],rangeFilter:{from:r[1].split("_")[0],to:r[1].split("_")[1]}}))}escapeFilters(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replaceAll(r,n);return e}superEscapeFilters(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replaceAll(n,i);return e}unescapeFilterValue(e){for(let[r,n,i]of this.filtersEscapeMapping)e=e.replace(i,r);return e}parseLegacyPeriodFilter(e){if(tl(e))return[{key:"ft:lastEdition",dateFilter:{type:Xr[e]}}];if(e.startsWith("CUSTOM_")){let[r,n,i]=e.split("_");return[{key:"ft:lastEdition",rangeFilter:{from:n,to:i}}]}return[]}};var ya={};V(ya,{toFtFormComponent:()=>ha});var Vo=Symbol("elementInternals");function ha(t,e){class r extends t{static get formAssociated(){return!0}get form(){return this[Vo].form}constructor(...i){super(i),this[Vo]=this.attachInternals(),this[Vo].role=e}setFormValue(i){this[Vo].setFormValue(i)}}return r}var ma={};V(ma,{DateFormatter:()=>ir});var ir=class{static format(e,r,n,i){return window.moment?window.moment(e).locale(r).format(this.getDateFormat(n,i)):e}static getDateFormat(e,r){return e?r?"lll":"ll":r?"L LT":"L"}};var ga,ba,xa,va,Sa=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((xa=(ba=(ga=window.safari)===null||ga===void 0?void 0:ga.pushNotification)===null||ba===void 0?void 0:ba.toString())!==null&&xa!==void 0?xa:"")==="[object SafariRemoteNotification]",Nu="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(va=window.ftGlobals)!==null&&va!==void 0?va:{lit:gn,litDecorators:xn,litRepeat:vn,litClassMap:Sn,litStyleMap:On,litUnsafeHTML:En,wcUtils:{...Rn,...An,..._n,...ma,...Pn,...$n,...li,...fi,...Ni,...ci,...Li,...Pi,...ec,...In,...$i,...ki,...rc,...Di,...ca,..._i,...pa,...ua,...fa,...ya,isSafari:Sa,isTouchScreen:Nu,setVariable:w}};var nl=[D`
|
|
51
|
+
|
|
52
|
+
.ftds--size-small [part=dialog] {
|
|
53
|
+
--ftds-modal--target-width: ${q.smallContainerTargetWidth};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.ftds--size-medium [part=dialog] {
|
|
57
|
+
--ftds-modal--target-width: ${q.mediumContainerTargetWidth};
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
.ftds--size-large [part=dialog] {
|
|
61
|
+
--ftds-modal--target-width: ${q.largeContainerTargetWidth};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
[part=dialog] {
|
|
65
|
+
padding: 0;
|
|
66
|
+
border: none;
|
|
67
|
+
box-shadow: ${q.shadow};
|
|
68
|
+
border-radius: ${q.borderRadius};
|
|
69
|
+
width: var(--ftds-modal--target-width);
|
|
70
|
+
margin:
|
|
71
|
+
auto
|
|
72
|
+
max(
|
|
73
|
+
${l.spacing6},
|
|
74
|
+
calc((100% - var(--ftds-modal--target-width)) / 2)
|
|
75
|
+
);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
::backdrop {
|
|
79
|
+
background-color: rgba(from ${q.overlayBackgroundColor} r g b / ${q.overlayOpacity});
|
|
80
|
+
border-radius: unset;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
[part=header] {
|
|
84
|
+
padding: ${q.headerVerticalPadding} ${q.headerRightPadding} ${q.headerVerticalPadding} ${q.headerLeftPadding};
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
gap: ${q.headerGap};
|
|
88
|
+
border-color: ${q.headerBorderColor};
|
|
89
|
+
border-bottom-width: ${q.headerBorderBottomWidth};
|
|
90
|
+
border-bottom-style: solid;
|
|
91
|
+
color: ${q.headerColor};
|
|
92
|
+
background-color: ${q.headerBackgroundColor};
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
[part=heading] {
|
|
96
|
+
flex-grow: 1;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
[part=icon] {
|
|
100
|
+
color: ${q.headerLeadingIconColor};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
[part=closing-button] {
|
|
104
|
+
justify-self: flex-end;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
[part=body] {
|
|
108
|
+
padding: ${q.bodyVerticalPadding} ${q.bodyHorizontalPadding};
|
|
109
|
+
display: flex;
|
|
110
|
+
flex-direction: column;
|
|
111
|
+
gap: ${q.bodyVerticalGap};
|
|
112
|
+
color: ${q.bodyColor};
|
|
113
|
+
background-color: ${q.bodyBackgroundColor};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
[part=actions] {
|
|
117
|
+
align-self: flex-end;
|
|
118
|
+
display: flex;
|
|
119
|
+
gap: ${l.spacing3}
|
|
120
|
+
}
|
|
121
|
+
`];var il=o.extend("--ft-ripple-color","",Y.colorContent),N={color:il,backgroundColor:o.extend("--ft-ripple-background-color","",il),opacityContentOnSurfacePressed:o.external(Y.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(Y.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(Y.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(Y.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},al=o.extend("--ft-ripple-color","",Y.colorPrimary),sl={color:al,backgroundColor:o.extend("--ft-ripple-background-color","",al)},cl=o.extend("--ft-ripple-color","",Y.colorSecondary),ll={color:cl,backgroundColor:o.extend("--ft-ripple-background-color","",cl)},dl=D`
|
|
122
|
+
:host {
|
|
123
|
+
display: contents;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.ft-ripple {
|
|
127
|
+
position: absolute;
|
|
128
|
+
inset: 0;
|
|
129
|
+
pointer-events: none;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
133
|
+
overflow: hidden;
|
|
134
|
+
border-radius: ${N.borderRadius};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.ft-ripple .ft-ripple--background,
|
|
138
|
+
.ft-ripple .ft-ripple--effect {
|
|
139
|
+
position: absolute;
|
|
140
|
+
opacity: 0;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.ft-ripple .ft-ripple--effect {
|
|
144
|
+
aspect-ratio: 1;
|
|
145
|
+
width: auto;
|
|
146
|
+
height: auto;
|
|
147
|
+
min-width: 170%;
|
|
148
|
+
min-height: 170%;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.ft-ripple .ft-ripple--background{
|
|
152
|
+
width: 100%;
|
|
153
|
+
height: 100%;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
|
|
157
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
158
|
+
aspect-ratio: 1;
|
|
159
|
+
width: auto;
|
|
160
|
+
height: auto;
|
|
161
|
+
max-width: unset;
|
|
162
|
+
max-height: unset;
|
|
163
|
+
min-width: 100%;
|
|
164
|
+
min-height: 100%;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.ft-ripple .ft-ripple--background {
|
|
168
|
+
background-color: ${N.backgroundColor};
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.ft-ripple .ft-ripple--effect {
|
|
172
|
+
background-color: ${N.color};
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
176
|
+
background-color: ${ll.backgroundColor};
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
180
|
+
background-color: ${ll.color};
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
184
|
+
background-color: ${sl.backgroundColor};
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
188
|
+
background-color: ${sl.color};
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.ft-ripple .ft-ripple--background {
|
|
192
|
+
top: 0;
|
|
193
|
+
left: 0;
|
|
194
|
+
transition: opacity 75ms linear;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.ft-ripple .ft-ripple--effect,
|
|
198
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
199
|
+
border-radius: 50%;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
.ft-ripple .ft-ripple--effect {
|
|
203
|
+
transform: translate(-50%, -50%) scale(0.15);
|
|
204
|
+
transition: transform 300ms ease, opacity 75ms linear;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
|
|
208
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
209
|
+
left: 50%;
|
|
210
|
+
top: 50%;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
214
|
+
transform: translate(-50%, -50%);
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
218
|
+
opacity: ${N.opacityContentOnSurfaceHover};
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
222
|
+
opacity: ${N.opacityContentOnSurfaceSelected};
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
226
|
+
opacity: ${N.opacityContentOnSurfaceFocused};
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
230
|
+
opacity: ${N.opacityContentOnSurfacePressed};
|
|
231
|
+
transform: translate(-50%, -50%) scale(1);
|
|
232
|
+
}
|
|
233
|
+
`;function pl(t){let e=Tr[t];return D`
|
|
234
|
+
.ft-typography--${wt(t)} {
|
|
235
|
+
font-family: ${e.fontFamily};
|
|
236
|
+
font-size: ${e.fontSize};
|
|
237
|
+
font-weight: ${e.fontWeight};
|
|
238
|
+
letter-spacing: ${e.letterSpacing};
|
|
239
|
+
line-height: ${e.lineHeight};
|
|
240
|
+
text-transform: ${e.textCase};
|
|
241
|
+
}
|
|
242
|
+
`}var ul=o.extend("--ft-typography-font-family","",Y.titleFont),tt=o.extend("--ft-typography-font-family","",Y.contentFont),k={fontFamily:tt,fontSize:o.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:o.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:o.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:o.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:o.create("--ft-typography-text-transform","","UNKNOWN","inherit")},ar={fontFamily:o.extend("--ft-typography-title-font-family","",ul),fontSize:o.extend("--ft-typography-title-font-size","",k.fontSize,"20px"),fontWeight:o.extend("--ft-typography-title-font-weight","",k.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-letter-spacing","",k.letterSpacing,"0.15px"),lineHeight:o.extend("--ft-typography-title-line-height","",k.lineHeight,"1.2"),textTransform:o.extend("--ft-typography-title-text-transform","",k.textTransform,"inherit")},sr={fontFamily:o.extend("--ft-typography-title-dense-font-family","",ul),fontSize:o.extend("--ft-typography-title-dense-font-size","",k.fontSize,"14px"),fontWeight:o.extend("--ft-typography-title-dense-font-weight","",k.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-title-dense-letter-spacing","",k.letterSpacing,"0.105px"),lineHeight:o.extend("--ft-typography-title-dense-line-height","",k.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-title-dense-text-transform","",k.textTransform,"inherit")},cr={fontFamily:o.extend("--ft-typography-subtitle1-font-family","",tt),fontSize:o.extend("--ft-typography-subtitle1-font-size","",k.fontSize,"16px"),fontWeight:o.extend("--ft-typography-subtitle1-font-weight","",k.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-subtitle1-letter-spacing","",k.letterSpacing,"0.144px"),lineHeight:o.extend("--ft-typography-subtitle1-line-height","",k.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-subtitle1-text-transform","",k.textTransform,"inherit")},lr={fontFamily:o.extend("--ft-typography-subtitle2-font-family","",tt),fontSize:o.extend("--ft-typography-subtitle2-font-size","",k.fontSize,"14px"),fontWeight:o.extend("--ft-typography-subtitle2-font-weight","",k.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-subtitle2-letter-spacing","",k.letterSpacing,"0.098px"),lineHeight:o.extend("--ft-typography-subtitle2-line-height","",k.lineHeight,"1.7"),textTransform:o.extend("--ft-typography-subtitle2-text-transform","",k.textTransform,"inherit")},dr={fontFamily:o.extend("--ft-typography-body1-font-family","",tt),fontSize:o.extend("--ft-typography-body1-font-size","",k.fontSize,"16px"),fontWeight:o.extend("--ft-typography-body1-font-weight","",k.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body1-letter-spacing","",k.letterSpacing,"0.496px"),lineHeight:o.extend("--ft-typography-body1-line-height","",k.lineHeight,"1.5"),textTransform:o.extend("--ft-typography-body1-text-transform","",k.textTransform,"inherit")},pr={fontFamily:o.extend("--ft-typography-body2-font-family","",tt),fontSize:o.extend("--ft-typography-body2-font-size","",k.fontSize,"14px"),fontWeight:o.extend("--ft-typography-body2-font-weight","",k.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-body2-letter-spacing","",k.letterSpacing,"0.252px"),lineHeight:o.extend("--ft-typography-body2-line-height","",k.lineHeight,"1.4"),textTransform:o.extend("--ft-typography-body2-text-transform","",k.textTransform,"inherit")},ur={fontFamily:o.extend("--ft-typography-caption-font-family","",tt),fontSize:o.extend("--ft-typography-caption-font-size","",k.fontSize,"12px"),fontWeight:o.extend("--ft-typography-caption-font-weight","",k.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-caption-letter-spacing","",k.letterSpacing,"0.396px"),lineHeight:o.extend("--ft-typography-caption-line-height","",k.lineHeight,"1.33"),textTransform:o.extend("--ft-typography-caption-text-transform","",k.textTransform,"inherit")},fr={fontFamily:o.extend("--ft-typography-breadcrumb-font-family","",tt),fontSize:o.extend("--ft-typography-breadcrumb-font-size","",k.fontSize,"10px"),fontWeight:o.extend("--ft-typography-breadcrumb-font-weight","",k.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-breadcrumb-letter-spacing","",k.letterSpacing,"0.33px"),lineHeight:o.extend("--ft-typography-breadcrumb-line-height","",k.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-breadcrumb-text-transform","",k.textTransform,"inherit")},hr={fontFamily:o.extend("--ft-typography-overline-font-family","",tt),fontSize:o.extend("--ft-typography-overline-font-size","",k.fontSize,"10px"),fontWeight:o.extend("--ft-typography-overline-font-weight","",k.fontWeight,"normal"),letterSpacing:o.extend("--ft-typography-overline-letter-spacing","",k.letterSpacing,"1.5px"),lineHeight:o.extend("--ft-typography-overline-line-height","",k.lineHeight,"1.6"),textTransform:o.extend("--ft-typography-overline-text-transform","",k.textTransform,"uppercase")},je={fontFamily:o.extend("--ft-typography-button-font-family","",tt),fontSize:o.extend("--ft-typography-button-font-size","",k.fontSize,"14px"),fontWeight:o.extend("--ft-typography-button-font-weight","",k.fontWeight,"600"),letterSpacing:o.extend("--ft-typography-button-letter-spacing","",k.letterSpacing,"1.246px"),lineHeight:o.extend("--ft-typography-button-line-height","",k.lineHeight,"1.15"),textTransform:o.extend("--ft-typography-button-text-transform","",k.textTransform,"uppercase")},fl=D`
|
|
243
|
+
.ft-typography--title {
|
|
244
|
+
font-family: ${ar.fontFamily};
|
|
245
|
+
font-size: ${ar.fontSize};
|
|
246
|
+
font-weight: ${ar.fontWeight};
|
|
247
|
+
letter-spacing: ${ar.letterSpacing};
|
|
248
|
+
line-height: ${ar.lineHeight};
|
|
249
|
+
text-transform: ${ar.textTransform};
|
|
250
|
+
}
|
|
251
|
+
`,hl=D`
|
|
252
|
+
.ft-typography--title-dense {
|
|
253
|
+
font-family: ${sr.fontFamily};
|
|
254
|
+
font-size: ${sr.fontSize};
|
|
255
|
+
font-weight: ${sr.fontWeight};
|
|
256
|
+
letter-spacing: ${sr.letterSpacing};
|
|
257
|
+
line-height: ${sr.lineHeight};
|
|
258
|
+
text-transform: ${sr.textTransform};
|
|
259
|
+
}
|
|
260
|
+
`,yl=D`
|
|
261
|
+
.ft-typography--subtitle1 {
|
|
262
|
+
font-family: ${cr.fontFamily};
|
|
263
|
+
font-size: ${cr.fontSize};
|
|
264
|
+
font-weight: ${cr.fontWeight};
|
|
265
|
+
letter-spacing: ${cr.letterSpacing};
|
|
266
|
+
line-height: ${cr.lineHeight};
|
|
267
|
+
text-transform: ${cr.textTransform};
|
|
268
|
+
}
|
|
269
|
+
`,ml=D`
|
|
270
|
+
.ft-typography--subtitle2 {
|
|
271
|
+
font-family: ${lr.fontFamily};
|
|
272
|
+
font-size: ${lr.fontSize};
|
|
273
|
+
font-weight: ${lr.fontWeight};
|
|
274
|
+
letter-spacing: ${lr.letterSpacing};
|
|
275
|
+
line-height: ${lr.lineHeight};
|
|
276
|
+
text-transform: ${lr.textTransform};
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
`,gl=D`
|
|
280
|
+
.ft-typography--body1 {
|
|
281
|
+
font-family: ${dr.fontFamily};
|
|
282
|
+
font-size: ${dr.fontSize};
|
|
283
|
+
font-weight: ${dr.fontWeight};
|
|
284
|
+
letter-spacing: ${dr.letterSpacing};
|
|
285
|
+
line-height: ${dr.lineHeight};
|
|
286
|
+
text-transform: ${dr.textTransform};
|
|
287
|
+
}
|
|
288
|
+
`,bl=D`
|
|
289
|
+
.ft-typography--body2 {
|
|
290
|
+
font-family: ${pr.fontFamily};
|
|
291
|
+
font-size: ${pr.fontSize};
|
|
292
|
+
font-weight: ${pr.fontWeight};
|
|
293
|
+
letter-spacing: ${pr.letterSpacing};
|
|
294
|
+
line-height: ${pr.lineHeight};
|
|
295
|
+
text-transform: ${pr.textTransform};
|
|
296
|
+
}
|
|
297
|
+
`,xl=D`
|
|
298
|
+
.ft-typography--caption {
|
|
299
|
+
font-family: ${ur.fontFamily};
|
|
300
|
+
font-size: ${ur.fontSize};
|
|
301
|
+
font-weight: ${ur.fontWeight};
|
|
302
|
+
letter-spacing: ${ur.letterSpacing};
|
|
303
|
+
line-height: ${ur.lineHeight};
|
|
304
|
+
text-transform: ${ur.textTransform};
|
|
305
|
+
}
|
|
306
|
+
`,vl=D`
|
|
307
|
+
.ft-typography--breadcrumb {
|
|
308
|
+
font-family: ${fr.fontFamily};
|
|
309
|
+
font-size: ${fr.fontSize};
|
|
310
|
+
font-weight: ${fr.fontWeight};
|
|
311
|
+
letter-spacing: ${fr.letterSpacing};
|
|
312
|
+
line-height: ${fr.lineHeight};
|
|
313
|
+
text-transform: ${fr.textTransform};
|
|
314
|
+
}
|
|
315
|
+
`,Sl=D`
|
|
316
|
+
.ft-typography--overline {
|
|
317
|
+
font-family: ${hr.fontFamily};
|
|
318
|
+
font-size: ${hr.fontSize};
|
|
319
|
+
font-weight: ${hr.fontWeight};
|
|
320
|
+
letter-spacing: ${hr.letterSpacing};
|
|
321
|
+
line-height: ${hr.lineHeight};
|
|
322
|
+
text-transform: ${hr.textTransform};
|
|
323
|
+
}
|
|
324
|
+
`,Ol=D`
|
|
325
|
+
.ft-typography--button {
|
|
326
|
+
font-family: ${je.fontFamily};
|
|
327
|
+
font-size: ${je.fontSize};
|
|
328
|
+
font-weight: ${je.fontWeight};
|
|
329
|
+
letter-spacing: ${je.letterSpacing};
|
|
330
|
+
line-height: ${je.lineHeight};
|
|
331
|
+
text-transform: ${je.textTransform};
|
|
332
|
+
}
|
|
333
|
+
`,Cl=D`
|
|
334
|
+
.ft-typography {
|
|
335
|
+
vertical-align: inherit;
|
|
336
|
+
}
|
|
337
|
+
`,El=[Object.keys(Tr).map(t=>pl(t))];var J={color:o.extend("--ft-loader-color","",Y.colorPrimary),size:o.create("--ft-loader-size","","SIZE","80px")},wl=D`
|
|
338
|
+
:host {
|
|
339
|
+
line-height: 0;
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
.ft-loader {
|
|
343
|
+
display: inline-block;
|
|
344
|
+
position: relative;
|
|
345
|
+
|
|
346
|
+
width: ${J.size};
|
|
347
|
+
height: ${J.size};
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.ft-loader div {
|
|
351
|
+
position: absolute;
|
|
352
|
+
top: 37.5%;
|
|
353
|
+
width: 25%;
|
|
354
|
+
height: 25%;
|
|
355
|
+
border-radius: 50%;
|
|
356
|
+
background: ${J.color};
|
|
357
|
+
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
.ft-loader div:nth-child(1) {
|
|
361
|
+
left: 2.5%;
|
|
362
|
+
animation: appear 0.6s infinite;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
.ft-loader div:nth-child(2) {
|
|
366
|
+
left: 2.5%;
|
|
367
|
+
animation: move 0.6s infinite;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.ft-loader div:nth-child(3) {
|
|
371
|
+
left: 37.5%;
|
|
372
|
+
animation: move 0.6s infinite;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.ft-loader div:nth-child(4) {
|
|
376
|
+
left: 72.5%;
|
|
377
|
+
animation: disappear 0.6s infinite;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
@keyframes appear {
|
|
381
|
+
0% {
|
|
382
|
+
transform: scale(0);
|
|
383
|
+
}
|
|
384
|
+
100% {
|
|
385
|
+
transform: scale(1);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
@keyframes disappear {
|
|
390
|
+
0% {
|
|
391
|
+
transform: scale(1);
|
|
392
|
+
}
|
|
393
|
+
100% {
|
|
394
|
+
transform: scale(0);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
@keyframes move {
|
|
399
|
+
0% {
|
|
400
|
+
transform: translate(0, 0);
|
|
401
|
+
}
|
|
402
|
+
100% {
|
|
403
|
+
transform: translate(calc(0.35 * ${J.size}), 0);
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
`;var pe={size:o.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:o.extend("--ft-icon-fluid-topics-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:o.extend("--ft-icon-file-format-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:o.extend("--ft-icon-material-font-family","",o.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:o.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Al=D`
|
|
407
|
+
:host, i.ft-icon {
|
|
408
|
+
display: inline-flex;
|
|
409
|
+
align-items: center;
|
|
410
|
+
flex-shrink: 0;
|
|
411
|
+
flex-grow: 0;
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
:host {
|
|
415
|
+
width: ${pe.size};
|
|
416
|
+
height: ${pe.size};
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
i.ft-icon {
|
|
420
|
+
width: 100%;
|
|
421
|
+
height: 100%;
|
|
422
|
+
font-size: ${pe.size};
|
|
423
|
+
line-height: 1;
|
|
424
|
+
font-weight: normal;
|
|
425
|
+
text-transform: none;
|
|
426
|
+
font-style: normal;
|
|
427
|
+
font-variant: normal;
|
|
428
|
+
speak: none;
|
|
429
|
+
text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.004);
|
|
430
|
+
text-rendering: auto;
|
|
431
|
+
-webkit-font-smoothing: antialiased;
|
|
432
|
+
-moz-osx-font-smoothing: grayscale;
|
|
433
|
+
vertical-align: ${pe.verticalAlign};
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
i.ft-icon.ft-icon--fluid-topics {
|
|
437
|
+
font-family: ${pe.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
438
|
+
|
|
439
|
+
/* Ugly fix because font is broken */
|
|
440
|
+
font-size: calc(0.75 * ${pe.size});
|
|
441
|
+
line-height: ${pe.size};
|
|
442
|
+
position: relative;
|
|
443
|
+
top: -4%;
|
|
444
|
+
justify-content: center;
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
.ft-icon--file-format {
|
|
448
|
+
font-family: ${pe.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
.ft-icon--material {
|
|
452
|
+
font-family: ${pe.materialFontFamily}, "Material Icons", sans-serif;
|
|
453
|
+
}
|
|
454
|
+
`;var Rl=o.extend("--ft-button-color","",Y.colorPrimary),ae={backgroundColor:o.extend("--ft-button-background-color","",Y.colorSurface),borderRadius:o.extend("--ft-button-border-radius","",Y.borderRadiusL),color:Rl,fontSize:o.extend("--ft-button-font-size","",je.fontSize),iconSize:o.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:o.extend("--ft-button-ripple-color","",Rl),verticalPadding:o.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:o.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:o.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:o.external(Y.colorOpacityDisabled,"Design system")},Nl=o.extend("--ft-button-primary-color","",o.extend("--ft-button-color","",Y.colorOnPrimary)),Oa={backgroundColor:o.extend("--ft-button-primary-background-color","",o.extend("--ft-button-background-color","",Y.colorPrimary)),color:Nl,rippleColor:o.extend("--ft-button-primary-ripple-color","",Nl)},Ve={borderRadius:o.extend("--ft-button-dense-border-radius","",o.extend("--ft-button-border-radius","",Y.borderRadiusM)),verticalPadding:o.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:o.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:o.create("--ft-button-dense-icon-padding","","SIZE","4px")},_l=[D`
|
|
455
|
+
:host {
|
|
456
|
+
display: inline-block;
|
|
457
|
+
max-width: 100%;
|
|
458
|
+
pointer-events: none;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
button {
|
|
462
|
+
box-shadow: 0px 0px 0px transparent;
|
|
463
|
+
border: 0px solid transparent;
|
|
464
|
+
text-shadow: 0px 0px 0px transparent;
|
|
465
|
+
font-size: ${ae.fontSize};
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
button:hover {
|
|
469
|
+
box-shadow: 0px 0px 0px transparent;
|
|
470
|
+
border: 0px solid transparent;
|
|
471
|
+
text-shadow: 0px 0px 0px transparent;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
button:active {
|
|
475
|
+
outline: none;
|
|
476
|
+
border: none;
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
button:focus {
|
|
480
|
+
outline: 0;
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
.ft-button {
|
|
484
|
+
position: relative;
|
|
485
|
+
display: flex;
|
|
486
|
+
justify-content: center;
|
|
487
|
+
align-items: center;
|
|
488
|
+
width: 100%;
|
|
489
|
+
overflow: hidden;
|
|
490
|
+
box-sizing: border-box;
|
|
491
|
+
border: none;
|
|
492
|
+
pointer-events: auto;
|
|
493
|
+
|
|
494
|
+
--ft-button-internal-line-height: max(calc(${ae.fontSize} + 2px), ${ae.iconSize});
|
|
495
|
+
--ft-button-internal-color: ${ae.color};
|
|
496
|
+
${w(pe.size,ae.iconSize)};
|
|
497
|
+
${w(N.color,ae.rippleColor)};
|
|
498
|
+
|
|
499
|
+
border-radius: ${ae.borderRadius};
|
|
500
|
+
padding: ${ae.verticalPadding} ${ae.horizontalPadding};
|
|
501
|
+
background-color: ${ae.backgroundColor};
|
|
502
|
+
color: var(--ft-button-internal-color);
|
|
503
|
+
-webkit-mask-image: radial-gradient(white, black);
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
.ft-button.ft-button--outlined {
|
|
507
|
+
border: 1px solid var(--ft-button-internal-color);
|
|
508
|
+
padding: calc(${ae.verticalPadding} - 1px) calc(${ae.horizontalPadding} - 1px);
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
.ft-button.ft-button--dense {
|
|
512
|
+
padding: ${Ve.verticalPadding} ${Ve.horizontalPadding};
|
|
513
|
+
border-radius: ${Ve.borderRadius};
|
|
514
|
+
gap: ${Ve.iconPadding};
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.ft-button.ft-button--dense.ft-button--outlined {
|
|
518
|
+
padding: calc(${Ve.verticalPadding} - 1px) calc(${Ve.horizontalPadding} - 1px);
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
.ft-button:not([disabled]):hover {
|
|
522
|
+
cursor: pointer;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
.ft-button--round {
|
|
526
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${ae.verticalPadding});
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
.ft-button--round.ft-button--dense {
|
|
530
|
+
border-radius: calc(var(--ft-button-internal-line-height) / 2 + ${Ve.verticalPadding});
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
.ft-button[disabled] {
|
|
534
|
+
filter: grayscale(1);
|
|
535
|
+
opacity: ${ae.opacityDisabled};
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
.ft-button.ft-button--primary {
|
|
539
|
+
background-color: ${Oa.backgroundColor};
|
|
540
|
+
--ft-button-internal-color: ${Oa.color};
|
|
541
|
+
${w(N.color,Oa.rippleColor)};
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
.ft-button:focus {
|
|
545
|
+
outline: none;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
.ft-button--label {
|
|
549
|
+
position: relative;
|
|
550
|
+
overflow: hidden;
|
|
551
|
+
white-space: nowrap;
|
|
552
|
+
text-overflow: ellipsis;
|
|
553
|
+
display: block;
|
|
554
|
+
margin: 0 ${ae.iconPadding};
|
|
555
|
+
${w(je.fontSize,"1em")};
|
|
556
|
+
${w(je.lineHeight,"var(--ft-button-internal-line-height)")};
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
.ft-button--dense .ft-button--label {
|
|
560
|
+
margin: 0 ${Ve.iconPadding};
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
.ft-button--label[hidden] {
|
|
564
|
+
display: none;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
[part="icon"] {
|
|
568
|
+
flex-shrink: 0;
|
|
569
|
+
position: relative;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
.ft-button--label[hidden] + [part="icon"] {
|
|
573
|
+
margin: 0 calc(${ae.horizontalPadding} * -1);
|
|
574
|
+
padding: 0 ${ae.verticalPadding};
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
.ft-button--dense .ft-button--label[hidden] + [part="icon"] {
|
|
578
|
+
margin: 0 calc(${Ve.horizontalPadding} * -1);
|
|
579
|
+
padding: 0 ${Ve.verticalPadding};
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
.ft-button:not(.ft-button--trailing-icon) [part="label"]{
|
|
583
|
+
order: 2;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
ft-loader {
|
|
587
|
+
${w(J.size,ae.iconSize)};
|
|
588
|
+
${w(J.color,"var(--ft-button-internal-color)")};
|
|
589
|
+
}
|
|
590
|
+
`,jr];var me=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Q=class extends j{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new Se(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 Se(10),this.moveRipple=e=>{var r,n;let{x:i,y:a}=this.getCoordinates(e),s=(n=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&n!==void 0?n:{x:0,y:0,width:0,height:0};this.originX=Math.round(i!=null?i-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 Z`
|
|
591
|
+
<style>
|
|
592
|
+
.ft-ripple .ft-ripple--effect {
|
|
593
|
+
left: ${this.originX}px;
|
|
594
|
+
top: ${this.originY}px;
|
|
595
|
+
}
|
|
596
|
+
</style>
|
|
597
|
+
<div class="${Lt(e)}">
|
|
598
|
+
<div class="ft-ripple--background"></div>
|
|
599
|
+
<div class="ft-ripple--effect"></div>
|
|
600
|
+
</div>
|
|
601
|
+
`}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 r,n;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.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,r;let n=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;n&&this.setupFor((r=this.target)!==null&&r!==void 0?r:n)}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 r=(...c)=>d=>{c.forEach(p=>window.addEventListener(p,this.endPress,{once:!0})),this.startPress(d)},n=r("mouseup","contextmenu"),i=r("touchend","touchcancel"),a=c=>{["Enter"," "].includes(c.key)&&r("keyup")(c)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",n,s),e.addEventListener("touchstart",i,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",n,s),e.removeEventListener("touchstart",i,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 r=e,n=e,i,a;return r.x!=null?{x:i,y:a}=r:n.touches!=null&&(i=n.touches[0].clientX,a=n.touches[0].clientY),{x:i,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 r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};Q.elementDefinitions={};Q.styles=dl;me([A({type:Boolean})],Q.prototype,"primary",void 0);me([A({type:Boolean})],Q.prototype,"secondary",void 0);me([A({type:Boolean})],Q.prototype,"unbounded",void 0);me([A({type:Boolean})],Q.prototype,"activated",void 0);me([A({type:Boolean})],Q.prototype,"selected",void 0);me([A({type:Boolean})],Q.prototype,"disabled",void 0);me([he()],Q.prototype,"hovered",void 0);me([he()],Q.prototype,"focused",void 0);me([he()],Q.prototype,"pressed",void 0);me([he()],Q.prototype,"rippling",void 0);me([he()],Q.prototype,"originX",void 0);me([he()],Q.prototype,"originY",void 0);me([ce(".ft-ripple")],Q.prototype,"ripple",void 0);me([ce(".ft-ripple--effect")],Q.prototype,"rippleEffect",void 0);re("ft-ripple")(Q);var Ll=Symbol.for(""),_u=t=>{if(t?.r===Ll)return t?._$litStatic$},Ca=t=>({_$litStatic$:t,r:Ll});var Pl=new Map,Tl=t=>(e,...r)=>{let n=r.length,i,a,s=[],c=[],d,p=0,h=!1;for(;p<n;){for(d=e[p];p<n&&(a=r[p],(i=_u(a))!==void 0);)d+=i+e[++p],h=!0;p!==n&&c.push(a),s.push(d),p++}if(p===n&&s.push(e[n]),h){let f=s.join("$$lit$$");(e=Pl.get(f))===void 0&&(s.raw=s,Pl.set(f,e=s)),r=c}return t(e,...r)},Ea=Tl(Ya),U0=Tl(Xa);var Ae;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"})(Ae||(Ae={}));var Il=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},ue=class extends j{constructor(){super(...arguments),this.variant=Ae.body1}render(){return this.element?Ea`
|
|
602
|
+
<${Ca(this.element)}
|
|
603
|
+
part="text"
|
|
604
|
+
class="ft-typography ft-typography--${this.variant}">
|
|
605
|
+
<slot></slot>
|
|
606
|
+
</${Ca(this.element)}>
|
|
607
|
+
`:Ea`
|
|
608
|
+
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
609
|
+
`}};ue.styles=[fl,hl,yl,ml,gl,bl,xl,vl,Sl,Ol,Cl,...El];Il([A()],ue.prototype,"element",void 0);Il([A()],ue.prototype,"variant",void 0);re("ft-typography")(ue);var yr={distance:o.create("--ft-tooltip-distance","","SIZE","4px"),color:o.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:o.create("--ft-tooltip-background-color","","COLOR","#666666"),zIndex:o.create("--ft-tooltip-z-index","","NUMBER","100"),borderRadiusS:o.external(Y.borderRadiusS,"Design system"),maxWidth:o.create("--ft-tooltip-max-width","","SIZE","150px")},$l=D`
|
|
610
|
+
.ft-tooltip--container {
|
|
611
|
+
display: block;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
.ft-tooltip--inline {
|
|
615
|
+
display: inline-block;
|
|
616
|
+
max-width: 100%;
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
.ft-tooltip {
|
|
620
|
+
position: fixed;
|
|
621
|
+
box-sizing: border-box;
|
|
622
|
+
overflow: hidden;
|
|
623
|
+
width: max-content;
|
|
624
|
+
max-width: ${yr.maxWidth};
|
|
625
|
+
text-align: center;
|
|
626
|
+
padding: ${yr.distance};
|
|
627
|
+
z-index: ${yr.zIndex};
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
.ft-tooltip--content {
|
|
631
|
+
padding: 4px 8px;
|
|
632
|
+
border-radius: ${yr.borderRadiusS};
|
|
633
|
+
background-color: ${yr.backgroundColor};
|
|
634
|
+
color: ${yr.color};
|
|
635
|
+
position: relative;
|
|
636
|
+
word-break: break-word;
|
|
637
|
+
}
|
|
638
|
+
`;var ge=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},ee=class extends j{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 Se,this.revealDebouncer=new Se}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return Z`
|
|
639
|
+
<div part="container"
|
|
640
|
+
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
641
|
+
@mouseenter=${this.onHover}
|
|
642
|
+
@mouseleave=${this.onOut}
|
|
643
|
+
@focusin=${this.onHover}
|
|
644
|
+
@focusout=${this.onOut}
|
|
645
|
+
@touchstart=${this.onTouch}>
|
|
646
|
+
<slot part="slot" @click=${this.onClick}></slot>
|
|
647
|
+
<div part="tooltip" role="tooltip" inert
|
|
648
|
+
class="ft-tooltip ft-tooltip--${this.validPosition}"
|
|
649
|
+
?hidden=${!this.visible}>
|
|
650
|
+
<div part="tooltip-content" class="ft-tooltip--content">
|
|
651
|
+
<slot name="text"></slot>
|
|
652
|
+
<ft-typography variant="caption" ?hidden=${!this.text}>${this.text}</ft-typography>
|
|
653
|
+
</div>
|
|
654
|
+
</div>
|
|
655
|
+
</div>
|
|
656
|
+
`}updated(e){e.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&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(r=>r.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="",Ri(this.slottedElement,this.tooltip,this.position).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.left=`${e}px`,this.tooltip.style.top=`${r}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,r){return Math.max(e,Math.min(0,-r))}};ee.elementDefinitions={"ft-typography":ue};ee.styles=$l;ge([A()],ee.prototype,"text",void 0);ge([A({type:Boolean})],ee.prototype,"manual",void 0);ge([A({type:Boolean})],ee.prototype,"inline",void 0);ge([A({type:Number})],ee.prototype,"delay",void 0);ge([A()],ee.prototype,"position",void 0);ge([bn()],ee.prototype,"slotNodes",void 0);ge([ce(".ft-tooltip--container")],ee.prototype,"container",void 0);ge([ce(".ft-tooltip")],ee.prototype,"tooltip",void 0);ge([ce(".ft-tooltip--content")],ee.prototype,"tooltipContent",void 0);ge([he()],ee.prototype,"visible",void 0);ge([Vt({passive:!0})],ee.prototype,"onTouch",null);ge([Vt({passive:!0})],ee.prototype,"onHover",null);ge([Vt({passive:!0})],ee.prototype,"onOut",null);ge([Vt({passive:!0})],ee.prototype,"onClick",null);re("ft-tooltip")(ee);var rt;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.EYE="",t.SHARE="󨃱"})(rt||(rt={}));var _;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(_||(_={}));var mv=new Map([...["abw"].map(t=>[t,_.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(t=>[t,_.AUDIO]),...["avi"].map(t=>[t,_.AVI]),...["chm","xhs"].map(t=>[t,_.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(t=>[t,_.CODE]),...["csv"].map(t=>[t,_.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,_.DITA]),...["epub"].map(t=>[t,_.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,_.EXCEL]),...["flac"].map(t=>[t,_.FLAC]),...["gif"].map(t=>[t,_.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,_.GZIP]),...["html","htm","xhtml"].map(t=>[t,_.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(t=>[t,_.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,_.JPEG]),...["json"].map(t=>[t,_.JSON]),...["m4a","m4p"].map(t=>[t,_.M4A]),...["mov","qt"].map(t=>[t,_.MOV]),...["mp3"].map(t=>[t,_.MP3]),...["mp4","m4v"].map(t=>[t,_.MP4]),...["ogg","oga"].map(t=>[t,_.OGG]),...["pdf","ps"].map(t=>[t,_.PDF]),...["png"].map(t=>[t,_.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,_.POWERPOINT]),...["rar"].map(t=>[t,_.RAR]),...["stp"].map(t=>[t,_.STP]),...["txt","rtf","md","mdown"].map(t=>[t,_.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(t=>[t,_.VIDEO]),...["wav"].map(t=>[t,_.WAV]),...["wma"].map(t=>[t,_.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,_.WORD]),...["xml","xsl","rdf"].map(t=>[t,_.XML]),...["yaml","yml","x-yaml"].map(t=>[t,_.YAML]),...["zip"].map(t=>[t,_.ZIP])]);var gv={[_.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 Ge;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ge||(Ge={}));var Go=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},be=class extends j{constructor(){super(...arguments),this.resolvedIcon=G}render(){let e=this.variant&&Object.values(Ge).includes(this.variant)?this.variant:Ge.fluid_topics,r=e!==Ge.material||!!this.value;return Z`
|
|
657
|
+
<i class="ft-icon ft-icon--${e}" part="icon icon-${e}">
|
|
658
|
+
${Cn(this.resolvedIcon)}
|
|
659
|
+
<slot ?hidden=${r}></slot>
|
|
660
|
+
</i>
|
|
661
|
+
`}get textContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(n=>n.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let n=this.value||this.textContent;switch(this.variant){case Ge.file_format:this.resolvedIcon=(e=_[n.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:n;break;case Ge.material:this.resolvedIcon=this.value||G;break;default:this.resolvedIcon=(r=rt[n.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:n;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};be.elementDefinitions={};be.styles=Al;Go([A()],be.prototype,"variant",void 0);Go([A()],be.prototype,"value",void 0);Go([he()],be.prototype,"resolvedIcon",void 0);Go([ce("slot")],be.prototype,"slottedContent",void 0);re("ft-icon")(be);var Bt=class extends j{render(){return Z`
|
|
662
|
+
<div class="ft-loader">
|
|
663
|
+
<div></div>
|
|
664
|
+
<div></div>
|
|
665
|
+
<div></div>
|
|
666
|
+
<div></div>
|
|
667
|
+
</div>
|
|
668
|
+
`}};Bt.styles=wl;re("ft-loader")(Bt);var xe=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},oe=class extends ha(j,"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 r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e;return this.addTooltipIfNeeded(Z`
|
|
669
|
+
<button part="button"
|
|
670
|
+
class="${Lt(this.buttonClasses)}"
|
|
671
|
+
aria-label="${(e=this.ariaLabel)!==null&&e!==void 0?e:this.getLabel()}"
|
|
672
|
+
?disabled=${this.isDisabled()}>
|
|
673
|
+
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
674
|
+
<ft-typography part="label"
|
|
675
|
+
variant=${this.typographyVariant}
|
|
676
|
+
element="span"
|
|
677
|
+
class="ft-button--label ${Sa?"ft-safari-ellipsis-fix":""}"
|
|
678
|
+
?hidden=${!this.hasTextContent()}>
|
|
679
|
+
<slot @slotchange=${this.onSlotchange}></slot>
|
|
680
|
+
</ft-typography>
|
|
681
|
+
${this.resolveIcon()}
|
|
682
|
+
</button>
|
|
683
|
+
`)}addTooltipIfNeeded(e){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?Z`
|
|
684
|
+
<ft-tooltip part="tooltip"
|
|
685
|
+
text="${this.getLabel()}"
|
|
686
|
+
position="${this.tooltipPosition}">
|
|
687
|
+
${e}
|
|
688
|
+
</ft-tooltip>
|
|
689
|
+
`:e}resolveIcon(){return this.loading?Z`
|
|
690
|
+
<ft-loader part="loader icon"></ft-loader> `:this.icon?Z`
|
|
691
|
+
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
692
|
+
`:Z`
|
|
693
|
+
<slot part="icon" name="icon"></slot>
|
|
694
|
+
`}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(r=>this.unslotText(r)).join(""):e?.textContent||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};oe.elementDefinitions={"ft-ripple":Q,"ft-tooltip":ee,"ft-typography":ue,"ft-icon":be,"ft-loader":Bt};xe([A({type:String,reflect:!0})],oe.prototype,"role",void 0);xe([A()],oe.prototype,"type",void 0);xe([A({type:Boolean})],oe.prototype,"disabled",void 0);xe([A()],oe.prototype,"label",void 0);xe([A()],oe.prototype,"icon",void 0);xe([A()],oe.prototype,"iconVariant",void 0);xe([A({type:Boolean})],oe.prototype,"trailingIcon",void 0);xe([A({type:Boolean})],oe.prototype,"loading",void 0);xe([A({attribute:"aria-label"})],oe.prototype,"ariaLabel",void 0);xe([A()],oe.prototype,"tooltipPosition",void 0);xe([A({type:Boolean})],oe.prototype,"hideTooltip",void 0);xe([A({type:Boolean})],oe.prototype,"forceTooltip",void 0);xe([ce(".ft-button")],oe.prototype,"button",void 0);xe([ce(".ft-button--label slot")],oe.prototype,"slottedContent",void 0);var Ko=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},ot=class extends oe{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"}};ot.styles=[Vr,_l];Ko([A({type:Boolean})],ot.prototype,"primary",void 0);Ko([A({type:Boolean})],ot.prototype,"outlined",void 0);Ko([A({type:Boolean})],ot.prototype,"dense",void 0);Ko([A({type:Boolean})],ot.prototype,"round",void 0);var kl=[D`
|
|
695
|
+
:host {
|
|
696
|
+
display: inline-block;
|
|
697
|
+
max-width: 100%;
|
|
698
|
+
pointer-events: none;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
/** Remove default button styles **/
|
|
702
|
+
|
|
703
|
+
button {
|
|
704
|
+
box-shadow: 0 0 0 transparent;
|
|
705
|
+
border: 0 solid transparent;
|
|
706
|
+
text-shadow: 0 0 0 transparent;
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
button:hover {
|
|
710
|
+
box-shadow: 0 0 0 transparent;
|
|
711
|
+
text-shadow: 0 0 0 transparent;
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
button:active {
|
|
715
|
+
outline: none;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
button:focus {
|
|
719
|
+
outline: 0;
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
/** Base styles **/
|
|
723
|
+
|
|
724
|
+
.ft-button {
|
|
725
|
+
position: relative;
|
|
726
|
+
display: flex;
|
|
727
|
+
justify-content: center;
|
|
728
|
+
align-items: center;
|
|
729
|
+
width: 100%;
|
|
730
|
+
overflow: hidden;
|
|
731
|
+
box-sizing: border-box;
|
|
732
|
+
pointer-events: auto;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
.ft-button:not([disabled]):hover {
|
|
736
|
+
cursor: pointer;
|
|
737
|
+
}
|
|
738
|
+
|
|
739
|
+
.ft-button:focus {
|
|
740
|
+
outline: none;
|
|
741
|
+
}
|
|
742
|
+
|
|
743
|
+
.ft-button:focus-visible {
|
|
744
|
+
outline-color: ${g.focusFocusRingColor};
|
|
745
|
+
outline-style: solid;
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
ft-icon {
|
|
749
|
+
flex-shrink: 0;
|
|
750
|
+
position: relative;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
.ft-button:not(.ft-button--trailing-icon) ft-icon,
|
|
754
|
+
.ft-button:not(.ft-button--trailing-icon) ft-loader {
|
|
755
|
+
order: -1;
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
.ft-button--label {
|
|
759
|
+
position: relative;
|
|
760
|
+
overflow: hidden;
|
|
761
|
+
white-space: nowrap;
|
|
762
|
+
text-overflow: ellipsis;
|
|
763
|
+
display: block;
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
.ft-button--label[hidden] {
|
|
767
|
+
display: none;
|
|
768
|
+
}
|
|
769
|
+
|
|
770
|
+
.ft-button.ft-button--icon-only {
|
|
771
|
+
padding: unset;
|
|
772
|
+
border-radius: 50%;
|
|
773
|
+
}
|
|
774
|
+
|
|
775
|
+
/** Brand Primary styles **/
|
|
776
|
+
|
|
777
|
+
.ftds--family-brand.ft-button--primary {
|
|
778
|
+
${w(J.color,g.primaryBrandIconColor)};
|
|
779
|
+
|
|
780
|
+
${w(N.color,g.primaryBrandStateLayerColor)};
|
|
781
|
+
${w(N.opacityContentOnSurfaceHover,g.primaryBrandHoverStateLayerOpacity)};
|
|
782
|
+
${w(N.opacityContentOnSurfaceFocused,g.primaryBrandFocusStateLayerOpacity)};
|
|
783
|
+
${w(N.opacityContentOnSurfaceSelected,g.primaryBrandActiveStateLayerOpacity)};
|
|
784
|
+
${w(N.opacityContentOnSurfacePressed,g.primaryBrandActiveStateLayerOpacity)};
|
|
785
|
+
|
|
786
|
+
background-color: ${g.primaryBrandBackgroundColor};
|
|
787
|
+
color: ${g.primaryBrandColor};
|
|
788
|
+
border-style: none;
|
|
789
|
+
}
|
|
790
|
+
|
|
791
|
+
.ftds--family-brand.ft-button--primary[disabled] {
|
|
792
|
+
opacity: ${g.primaryBrandDisabledComponentOpacity};
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
.ftds--family-brand.ft-button--primary ft-icon {
|
|
796
|
+
color: ${g.primaryBrandIconColor};
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
/** Brand Secondary styles **/
|
|
800
|
+
|
|
801
|
+
.ftds--family-brand.ft-button--secondary {
|
|
802
|
+
${w(J.color,g.secondaryBrandIconColor)};
|
|
803
|
+
|
|
804
|
+
${w(N.color,g.secondaryBrandStateLayerColor)};
|
|
805
|
+
${w(N.opacityContentOnSurfaceHover,g.secondaryBrandHoverStateLayerOpacity)};
|
|
806
|
+
${w(N.opacityContentOnSurfaceFocused,g.secondaryBrandFocusStateLayerOpacity)};
|
|
807
|
+
${w(N.opacityContentOnSurfaceSelected,g.secondaryBrandActiveStateLayerOpacity)};
|
|
808
|
+
${w(N.opacityContentOnSurfacePressed,g.secondaryBrandActiveStateLayerOpacity)};
|
|
809
|
+
|
|
810
|
+
background-color: ${g.secondaryBrandBackgroundColor};
|
|
811
|
+
color: ${g.secondaryBrandColor};
|
|
812
|
+
border-color: ${g.secondaryBrandBorderColor};
|
|
813
|
+
border-style: solid;
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
.ftds--family-brand.ft-button--secondary[disabled] {
|
|
817
|
+
opacity: ${g.secondaryBrandDisabledComponentOpacity};
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
.ftds--family-brand.ft-button--secondary ft-icon {
|
|
821
|
+
color: ${g.secondaryBrandIconColor};
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
/** Brand Tertiary styles **/
|
|
825
|
+
|
|
826
|
+
.ftds--family-brand.ft-button--tertiary {
|
|
827
|
+
${w(J.color,g.tertiaryBrandIconColor)};
|
|
828
|
+
|
|
829
|
+
${w(N.color,g.tertiaryBrandStateLayerColor)};
|
|
830
|
+
${w(N.opacityContentOnSurfaceHover,g.tertiaryBrandHoverStateLayerOpacity)};
|
|
831
|
+
${w(N.opacityContentOnSurfaceFocused,g.tertiaryBrandFocusStateLayerOpacity)};
|
|
832
|
+
${w(N.opacityContentOnSurfaceSelected,g.tertiaryBrandActiveStateLayerOpacity)};
|
|
833
|
+
${w(N.opacityContentOnSurfacePressed,g.tertiaryBrandActiveStateLayerOpacity)};
|
|
834
|
+
|
|
835
|
+
background-color: ${g.tertiaryBrandBackgroundColor};
|
|
836
|
+
color: ${g.tertiaryBrandColor};
|
|
837
|
+
border-style: none;
|
|
838
|
+
}
|
|
839
|
+
|
|
840
|
+
.ftds--family-brand.ft-button--tertiary[disabled] {
|
|
841
|
+
opacity: ${g.tertiaryBrandDisabledComponentOpacity};
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
.ftds--family-brand.ft-button--tertiary ft-icon {
|
|
845
|
+
color: ${g.tertiaryBrandIconColor};
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
/** Neutral Secondary styles **/
|
|
849
|
+
|
|
850
|
+
.ftds--family-neutral.ft-button--secondary {
|
|
851
|
+
${w(J.color,g.secondaryNeutralIconColor)};
|
|
852
|
+
|
|
853
|
+
${w(N.backgroundColor,g.secondaryNeutralStateLayerColor)};
|
|
854
|
+
${w(N.opacityContentOnSurfaceHover,g.secondaryNeutralHoverStateLayerOpacity)};
|
|
855
|
+
${w(N.opacityContentOnSurfaceFocused,g.secondaryNeutralFocusStateLayerOpacity)};
|
|
856
|
+
${w(N.opacityContentOnSurfaceSelected,g.secondaryNeutralActiveStateLayerOpacity)};
|
|
857
|
+
${w(N.opacityContentOnSurfacePressed,g.secondaryNeutralActiveStateLayerOpacity)};
|
|
858
|
+
|
|
859
|
+
background-color: ${g.secondaryNeutralBackgroundColor};
|
|
860
|
+
color: ${g.secondaryNeutralColor};
|
|
861
|
+
border-color: ${g.secondaryNeutralBorderColor};
|
|
862
|
+
border-style: solid;
|
|
863
|
+
}
|
|
864
|
+
|
|
865
|
+
.ftds--family-neutral.ft-button--secondary[disabled] {
|
|
866
|
+
opacity: ${g.secondaryNeutralDisabledComponentOpacity};
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
.ftds--family-neutral.ft-button--secondary ft-icon {
|
|
870
|
+
color: ${g.secondaryNeutralIconColor};
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
/** Neutral Tertiary styles **/
|
|
874
|
+
|
|
875
|
+
.ftds--family-neutral.ft-button--tertiary {
|
|
876
|
+
${w(J.color,g.tertiaryNeutralIconColor)};
|
|
877
|
+
|
|
878
|
+
${w(N.backgroundColor,g.tertiaryNeutralStateLayerColor)};
|
|
879
|
+
${w(N.opacityContentOnSurfaceHover,g.tertiaryNeutralHoverStateLayerOpacity)};
|
|
880
|
+
${w(N.opacityContentOnSurfaceFocused,g.tertiaryNeutralFocusStateLayerOpacity)};
|
|
881
|
+
${w(N.opacityContentOnSurfaceSelected,g.tertiaryNeutralActiveStateLayerOpacity)};
|
|
882
|
+
${w(N.opacityContentOnSurfacePressed,g.tertiaryNeutralActiveStateLayerOpacity)};
|
|
883
|
+
|
|
884
|
+
background-color: ${g.tertiaryNeutralBackgroundColor};
|
|
885
|
+
color: ${g.tertiaryNeutralColor};
|
|
886
|
+
border-style: none;
|
|
887
|
+
}
|
|
888
|
+
|
|
889
|
+
.ftds--family-neutral.ft-button--tertiary[disabled] {
|
|
890
|
+
opacity: ${g.tertiaryNeutralDisabledComponentOpacity};
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
.ftds--family-neutral.ft-button--tertiary ft-icon {
|
|
894
|
+
color: ${g.tertiaryNeutralIconColor};
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
/** Info Secondary styles **/
|
|
898
|
+
|
|
899
|
+
.ftds--family-info.ft-button--secondary {
|
|
900
|
+
${w(J.color,g.secondaryInfoIconColor)};
|
|
901
|
+
|
|
902
|
+
${w(N.backgroundColor,g.secondaryInfoStateLayerColor)};
|
|
903
|
+
${w(N.opacityContentOnSurfaceHover,g.secondaryInfoHoverStateLayerOpacity)};
|
|
904
|
+
${w(N.opacityContentOnSurfaceFocused,g.secondaryInfoFocusStateLayerOpacity)};
|
|
905
|
+
${w(N.opacityContentOnSurfaceSelected,g.secondaryInfoActiveStateLayerOpacity)};
|
|
906
|
+
${w(N.opacityContentOnSurfacePressed,g.secondaryInfoActiveStateLayerOpacity)};
|
|
907
|
+
|
|
908
|
+
background-color: ${g.secondaryInfoBackgroundColor};
|
|
909
|
+
color: ${g.secondaryInfoColor};
|
|
910
|
+
border-color: ${g.secondaryInfoBorderColor};
|
|
911
|
+
border-style: solid;
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
.ftds--family-info.ft-button--secondary[disabled] {
|
|
915
|
+
opacity: ${g.secondaryInfoDisabledComponentOpacity};
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
.ftds--family-info.ft-button--secondary ft-icon {
|
|
919
|
+
color: ${g.secondaryInfoIconColor};
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
/** Info Tertiary styles **/
|
|
923
|
+
|
|
924
|
+
.ftds--family-info.ft-button--tertiary {
|
|
925
|
+
${w(J.color,g.tertiaryInfoIconColor)};
|
|
926
|
+
|
|
927
|
+
${w(N.backgroundColor,g.tertiaryInfoStateLayerColor)};
|
|
928
|
+
${w(N.opacityContentOnSurfaceHover,g.tertiaryInfoHoverStateLayerOpacity)};
|
|
929
|
+
${w(N.opacityContentOnSurfaceFocused,g.tertiaryInfoFocusStateLayerOpacity)};
|
|
930
|
+
${w(N.opacityContentOnSurfaceSelected,g.tertiaryInfoActiveStateLayerOpacity)};
|
|
931
|
+
${w(N.opacityContentOnSurfacePressed,g.tertiaryInfoActiveStateLayerOpacity)};
|
|
932
|
+
|
|
933
|
+
background-color: ${g.tertiaryInfoBackgroundColor};
|
|
934
|
+
color: ${g.tertiaryInfoColor};
|
|
935
|
+
border-style: none;
|
|
936
|
+
}
|
|
937
|
+
|
|
938
|
+
.ftds--family-info.ft-button--tertiary[disabled] {
|
|
939
|
+
opacity: ${g.tertiaryInfoDisabledComponentOpacity};
|
|
940
|
+
}
|
|
941
|
+
|
|
942
|
+
.ftds--family-info.ft-button--tertiary ft-icon {
|
|
943
|
+
color: ${g.tertiaryInfoIconColor};
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
/** Success Secondary styles **/
|
|
947
|
+
|
|
948
|
+
.ftds--family-success.ft-button--secondary {
|
|
949
|
+
${w(J.color,g.secondarySuccessIconColor)};
|
|
950
|
+
|
|
951
|
+
${w(N.backgroundColor,g.secondarySuccessStateLayerColor)};
|
|
952
|
+
${w(N.opacityContentOnSurfaceHover,g.secondarySuccessHoverStateLayerOpacity)};
|
|
953
|
+
${w(N.opacityContentOnSurfaceFocused,g.secondarySuccessFocusStateLayerOpacity)};
|
|
954
|
+
${w(N.opacityContentOnSurfaceSelected,g.secondarySuccessActiveStateLayerOpacity)};
|
|
955
|
+
${w(N.opacityContentOnSurfacePressed,g.secondarySuccessActiveStateLayerOpacity)};
|
|
956
|
+
|
|
957
|
+
background-color: ${g.secondarySuccessBackgroundColor};
|
|
958
|
+
color: ${g.secondarySuccessColor};
|
|
959
|
+
border-color: ${g.secondarySuccessBorderColor};
|
|
960
|
+
border-style: solid;
|
|
961
|
+
}
|
|
962
|
+
|
|
963
|
+
.ftds--family-success.ft-button--secondary[disabled] {
|
|
964
|
+
opacity: ${g.secondarySuccessDisabledComponentOpacity};
|
|
965
|
+
}
|
|
966
|
+
|
|
967
|
+
.ftds--family-success.ft-button--secondary ft-icon {
|
|
968
|
+
color: ${g.secondarySuccessIconColor};
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
/** Success Tertiary styles **/
|
|
972
|
+
|
|
973
|
+
.ftds--family-success.ft-button--tertiary {
|
|
974
|
+
${w(J.color,g.tertiarySuccessIconColor)};
|
|
975
|
+
|
|
976
|
+
${w(N.backgroundColor,g.tertiarySuccessStateLayerColor)};
|
|
977
|
+
${w(N.opacityContentOnSurfaceHover,g.tertiarySuccessHoverStateLayerOpacity)};
|
|
978
|
+
${w(N.opacityContentOnSurfaceFocused,g.tertiarySuccessFocusStateLayerOpacity)};
|
|
979
|
+
${w(N.opacityContentOnSurfaceSelected,g.tertiarySuccessActiveStateLayerOpacity)};
|
|
980
|
+
${w(N.opacityContentOnSurfacePressed,g.tertiarySuccessActiveStateLayerOpacity)};
|
|
981
|
+
|
|
982
|
+
background-color: ${g.tertiarySuccessBackgroundColor};
|
|
983
|
+
color: ${g.tertiarySuccessColor};
|
|
984
|
+
border-style: none;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
.ftds--family-success.ft-button--tertiary[disabled] {
|
|
988
|
+
opacity: ${g.tertiarySuccessDisabledComponentOpacity};
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
.ftds--family-success.ft-button--tertiary ft-icon {
|
|
992
|
+
color: ${g.tertiarySuccessIconColor};
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
/** Warning Secondary styles **/
|
|
996
|
+
|
|
997
|
+
.ftds--family-warning.ft-button--secondary {
|
|
998
|
+
${w(J.color,g.secondaryWarningIconColor)};
|
|
999
|
+
|
|
1000
|
+
${w(N.backgroundColor,g.secondaryWarningStateLayerColor)};
|
|
1001
|
+
${w(N.opacityContentOnSurfaceHover,g.secondaryWarningHoverStateLayerOpacity)};
|
|
1002
|
+
${w(N.opacityContentOnSurfaceFocused,g.secondaryWarningFocusStateLayerOpacity)};
|
|
1003
|
+
${w(N.opacityContentOnSurfaceSelected,g.secondaryWarningActiveStateLayerOpacity)};
|
|
1004
|
+
${w(N.opacityContentOnSurfacePressed,g.secondaryWarningActiveStateLayerOpacity)};
|
|
1005
|
+
|
|
1006
|
+
background-color: ${g.secondaryWarningBackgroundColor};
|
|
1007
|
+
color: ${g.secondaryWarningColor};
|
|
1008
|
+
border-color: ${g.secondaryWarningBorderColor};
|
|
1009
|
+
border-style: solid;
|
|
1010
|
+
}
|
|
1011
|
+
|
|
1012
|
+
.ftds--family-warning.ft-button--secondary[disabled] {
|
|
1013
|
+
opacity: ${g.secondaryWarningDisabledComponentOpacity};
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
.ftds--family-warning.ft-button--secondary ft-icon {
|
|
1017
|
+
color: ${g.secondaryWarningIconColor};
|
|
1018
|
+
}
|
|
1019
|
+
|
|
1020
|
+
/** Warning Tertiary styles **/
|
|
1021
|
+
|
|
1022
|
+
.ftds--family-warning.ft-button--tertiary {
|
|
1023
|
+
${w(J.color,g.tertiaryWarningIconColor)};
|
|
1024
|
+
|
|
1025
|
+
${w(N.backgroundColor,g.tertiaryWarningStateLayerColor)};
|
|
1026
|
+
${w(N.opacityContentOnSurfaceHover,g.tertiaryWarningHoverStateLayerOpacity)};
|
|
1027
|
+
${w(N.opacityContentOnSurfaceFocused,g.tertiaryWarningFocusStateLayerOpacity)};
|
|
1028
|
+
${w(N.opacityContentOnSurfaceSelected,g.tertiaryWarningActiveStateLayerOpacity)};
|
|
1029
|
+
${w(N.opacityContentOnSurfacePressed,g.tertiaryWarningActiveStateLayerOpacity)};
|
|
1030
|
+
|
|
1031
|
+
background-color: ${g.tertiaryWarningBackgroundColor};
|
|
1032
|
+
color: ${g.tertiaryWarningColor};
|
|
1033
|
+
border-style: none;
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
.ftds--family-warning.ft-button--tertiary[disabled] {
|
|
1037
|
+
opacity: ${g.tertiaryWarningDisabledComponentOpacity};
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1040
|
+
.ftds--family-warning.ft-button--tertiary ft-icon {
|
|
1041
|
+
color: ${g.tertiaryWarningIconColor};
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1044
|
+
/** Error Secondary styles **/
|
|
1045
|
+
|
|
1046
|
+
.ftds--family-error.ft-button--secondary {
|
|
1047
|
+
${w(J.color,g.secondaryErrorIconColor)};
|
|
1048
|
+
|
|
1049
|
+
${w(N.backgroundColor,g.secondaryErrorStateLayerColor)};
|
|
1050
|
+
${w(N.opacityContentOnSurfaceHover,g.secondaryErrorHoverStateLayerOpacity)};
|
|
1051
|
+
${w(N.opacityContentOnSurfaceFocused,g.secondaryErrorFocusStateLayerOpacity)};
|
|
1052
|
+
${w(N.opacityContentOnSurfaceSelected,g.secondaryErrorActiveStateLayerOpacity)};
|
|
1053
|
+
${w(N.opacityContentOnSurfacePressed,g.secondaryErrorActiveStateLayerOpacity)};
|
|
1054
|
+
|
|
1055
|
+
background-color: ${g.secondaryErrorBackgroundColor};
|
|
1056
|
+
color: ${g.secondaryErrorColor};
|
|
1057
|
+
border-color: ${g.secondaryErrorBorderColor};
|
|
1058
|
+
border-style: solid;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
.ftds--family-error.ft-button--secondary[disabled] {
|
|
1062
|
+
opacity: ${g.secondaryErrorDisabledComponentOpacity};
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
.ftds--family-error.ft-button--secondary ft-icon {
|
|
1066
|
+
color: ${g.secondaryErrorIconColor};
|
|
1067
|
+
}
|
|
1068
|
+
|
|
1069
|
+
/** Error Tertiary styles **/
|
|
1070
|
+
|
|
1071
|
+
.ftds--family-error.ft-button--tertiary {
|
|
1072
|
+
${w(J.color,g.tertiaryErrorIconColor)};
|
|
1073
|
+
|
|
1074
|
+
${w(N.backgroundColor,g.tertiaryErrorStateLayerColor)};
|
|
1075
|
+
${w(N.opacityContentOnSurfaceHover,g.tertiaryErrorHoverStateLayerOpacity)};
|
|
1076
|
+
${w(N.opacityContentOnSurfaceFocused,g.tertiaryErrorFocusStateLayerOpacity)};
|
|
1077
|
+
${w(N.opacityContentOnSurfaceSelected,g.tertiaryErrorActiveStateLayerOpacity)};
|
|
1078
|
+
${w(N.opacityContentOnSurfacePressed,g.tertiaryErrorActiveStateLayerOpacity)};
|
|
1079
|
+
|
|
1080
|
+
background-color: ${g.tertiaryErrorBackgroundColor};
|
|
1081
|
+
color: ${g.tertiaryErrorColor};
|
|
1082
|
+
border-style: none;
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
.ftds--family-error.ft-button--tertiary[disabled] {
|
|
1086
|
+
opacity: ${g.tertiaryErrorDisabledComponentOpacity};
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
.ftds--family-error.ft-button--tertiary ft-icon {
|
|
1090
|
+
color: ${g.tertiaryErrorIconColor};
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
/** Large styles **/
|
|
1094
|
+
|
|
1095
|
+
.ftds--size-large {
|
|
1096
|
+
${w(pe.size,g.largeIconSize)};
|
|
1097
|
+
${w(J.size,g.largeIconSize)};
|
|
1098
|
+
|
|
1099
|
+
height: ${g.largeHeight};
|
|
1100
|
+
padding: 0 ${g.largeHorizontalPadding};
|
|
1101
|
+
gap: ${g.largeGap};
|
|
1102
|
+
border-radius: ${g.largeBorderRadius};
|
|
1103
|
+
border-width: ${g.largeBorderWidth};
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
.ftds--size-large:focus-visible {
|
|
1107
|
+
outline-width: ${g.largeFocusOutlineWidth};
|
|
1108
|
+
outline-offset: ${g.largeFocusOutlineOffset};
|
|
1109
|
+
}
|
|
1110
|
+
|
|
1111
|
+
.ftds--size-large.ft-button--icon-only {
|
|
1112
|
+
width: ${g.largeIconOnlyWidth};
|
|
1113
|
+
}
|
|
1114
|
+
|
|
1115
|
+
/** Small styles **/
|
|
1116
|
+
|
|
1117
|
+
.ftds--size-medium {
|
|
1118
|
+
${w(pe.size,g.mediumIconSize)};
|
|
1119
|
+
${w(J.size,g.mediumIconSize)};
|
|
1120
|
+
|
|
1121
|
+
height: ${g.mediumHeight};
|
|
1122
|
+
padding: 0 ${g.mediumHorizontalPadding};
|
|
1123
|
+
gap: ${g.mediumGap};
|
|
1124
|
+
border-radius: ${g.mediumBorderRadius};
|
|
1125
|
+
border-width: ${g.mediumBorderWidth};
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
.ftds--size-medium:focus-visible {
|
|
1129
|
+
outline-width: ${g.mediumFocusOutlineWidth};
|
|
1130
|
+
outline-offset: ${g.mediumFocusOutlineOffset};
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1133
|
+
.ftds--size-medium.ft-button--icon-only {
|
|
1134
|
+
width: ${g.mediumIconOnlyWidth};
|
|
1135
|
+
}
|
|
1136
|
+
|
|
1137
|
+
|
|
1138
|
+
/** Small styles **/
|
|
1139
|
+
|
|
1140
|
+
.ftds--size-small {
|
|
1141
|
+
${w(pe.size,g.smallIconSize)};
|
|
1142
|
+
${w(J.size,g.smallIconSize)};
|
|
1143
|
+
|
|
1144
|
+
height: ${g.smallHeight};
|
|
1145
|
+
padding: 0 ${g.smallHorizontalPadding};
|
|
1146
|
+
gap: ${g.smallGap};
|
|
1147
|
+
border-radius: ${g.smallBorderRadius};
|
|
1148
|
+
border-width: ${g.smallBorderWidth};
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
.ftds--size-small:focus-visible {
|
|
1152
|
+
outline-width: ${g.smallFocusOutlineWidth};
|
|
1153
|
+
outline-offset: ${g.smallFocusOutlineOffset};
|
|
1154
|
+
}
|
|
1155
|
+
|
|
1156
|
+
.ftds--size-small.ft-button--icon-only {
|
|
1157
|
+
width: ${g.smallIconOnlyWidth};
|
|
1158
|
+
}
|
|
1159
|
+
`,jr];var Zo=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Ee=class extends To(oe){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=Pe.brand,this.iconVariant=Ge.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 le.large:return Ae.body2medium;case le.medium:return Ae.caption1medium;case le.small:return Ae.caption2medium}}};Ee.styles=[Vr,kl];Zo([A({type:Boolean})],Ee.prototype,"primary",void 0);Zo([A({type:Boolean})],Ee.prototype,"secondary",void 0);Zo([A({type:Boolean})],Ee.prototype,"tertiary",void 0);Zo([A({type:Boolean})],Ee.prototype,"round",void 0);re("ft-button")(ot);re("ftds-button")(Ee);var Dl=D`
|
|
1160
|
+
`;var Ul=D`
|
|
1161
|
+
`;var Pu="ft-app-info",wa=class extends CustomEvent{constructor(e){super("authentication-change",{detail:e})}},Lu={session:(t,e)=>{_e(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>M.eventBus.dispatchEvent(new wa(e.payload)),0))}},M=Mt.get({name:Pu,reducers:Lu,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 Ft=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=M.getState(),i=e??n;if(r&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,i,!0)}static await(e){return new Promise(r=>{let n=t.get(e);if(n)r(n);else{let i=M.subscribe(()=>{n=t.get(e),n&&(i(),r(n))})}})}};var gt=class{constructor(e=!0,r){var n;this.overrideApi=r;let i=this.constructor;i.commonCache=(n=i.commonCache)!==null&&n!==void 0?n:new Me,this.cache=e?i.commonCache:new Me}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ft.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ft.await()}clearCache(){this.cache.clearAll()}};var Ml,Tu=Symbol("clearAfterUnitTest"),qo=class extends gt{constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ml]=()=>{this.defaultMessages={},this.cache=new Me,this.listeners={}},this.currentUiLocale=M.getState().uiLocale,M.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=M.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var n;if(e=e.toLowerCase(),Object.keys(r).length>0){let i={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};_e(this.defaultMessages[e],i)||(this.defaultMessages[e]=i,await this.notify(e))}await this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var i;let a=e.toLowerCase(),s=this.resolveContext(a);return new Gr((i=this.defaultMessages[a])!==null&&i!==void 0?i:{},s).resolve(r,...n)}async fetchContext(e){if(!this.cache.has(e))try{await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),await this.notify(e)}catch(r){console.error(r)}}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var i;return(i=this.listeners[e])===null||i===void 0?void 0:i.delete(r)}}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(r=>wo(0).then(()=>r()).catch(()=>null)))}};Ml=Tu;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends qo{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends qo{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Wt=window.FluidTopicsI18nService,Bl=window.FluidTopicsCustomI18nService;var fe=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},ne=class extends j{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.apiProvider=()=>Ft.get(),this.messageContexts=[],this.cache=new Me,this.cleanSessionDebouncer=new Se}render(){return Z`
|
|
1162
|
+
<slot></slot>
|
|
1163
|
+
`}update(e){super.update(e),e.has("baseUrl")&&(M.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),e.has("apiIntegrationIdentifier")&&M.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("uiLocale")&&M.actions.uiLocale(this.uiLocale),e.has("metadataConfiguration")&&M.actions.metadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&M.actions.noCustom(this.noCustom),e.has("editorMode")&&M.actions.editorMode(this.editorMode),e.has("noCustomComponent")&&M.actions.noCustomComponent(this.noCustomComponent),e.has("session")&&M.actions.session(this.session),e.has("availableUiLocales")&&M.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(r=>Wt.addContext(r)),e.has("openExternalDocumentInNewTab")&&M.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&M.actions.navigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&M.actions.forcedOffline(this.forcedOffline),setTimeout(()=>this.updateIfNeeded())}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(this.session==null&&this.updateSession(),this.availableUiLocales==null&&this.updateUiLocales(),this.metadataConfiguration==null&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",async()=>{let 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())}};ne.elementDefinitions={};ne.styles=Ul;fe([A()],ne.prototype,"baseUrl",void 0);fe([A()],ne.prototype,"apiIntegrationIdentifier",void 0);fe([A()],ne.prototype,"uiLocale",void 0);fe([Be(null)],ne.prototype,"availableUiLocales",void 0);fe([Be(null)],ne.prototype,"metadataConfiguration",void 0);fe([A({type:Boolean})],ne.prototype,"editorMode",void 0);fe([A({type:Boolean})],ne.prototype,"noCustom",void 0);fe([A({type:Boolean})],ne.prototype,"openExternalDocumentInNewTab",void 0);fe([A({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],ne.prototype,"noCustomComponent",void 0);fe([A({type:Boolean})],ne.prototype,"withManualResources",void 0);fe([A({type:Boolean})],ne.prototype,"navigatorOnline",void 0);fe([A({type:Boolean})],ne.prototype,"forcedOffline",void 0);fe([A({type:Object})],ne.prototype,"apiProvider",void 0);fe([Be([])],ne.prototype,"messageContexts",void 0);fe([Be(void 0)],ne.prototype,"session",void 0);var Yo=class extends gt{async listMySearches(){let e=M.getState().session;return e?.sessionAuthenticated?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),5*60*1e3):[]}};var Xo=class extends gt{async listMyBookmarks(){let e=M.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),5*60*1e3):[]}};var Iu="ft-user-assets",Jo=Mt.get({name:Iu,initialState:{savedSearches:void 0,bookmarks:void 0}}),Aa=class{constructor(){this.currentSession=M.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Xo,this.savedSearchesService=new Yo,M.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=M.getState();_e((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Jo.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Jo.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Jo.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 r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Jo.actions.bookmarks(r)}}},bO=new Aa;var Ra=class{addCommand(e,r=!1){M.commands.add(e,r)}consumeCommand(e){return M.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Ra;var Na=class{highlightHtml(e,r,n){Ii(e,r,n)}};window.FluidTopicsHighlightHtmlService=new Na;var _a=class{isDate(e){var r,n,i,a;return(a=(i=((n=(r=M.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(c=>c.key===e))===null||i===void 0?void 0:i.date)!==null&&a!==void 0?a:!1}format(e,r){var n,i,a;return ir.format(e,(n=r?.locale)!==null&&n!==void 0?n:M.getState().uiLocale,(i=r?.longFormat)!==null&&i!==void 0?i:!1,(a=r?.withTime)!==null&&a!==void 0?a:!1)}};window.FluidTopicsDateService=new _a;re("ft-app-context")(ne);var $u=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Pa=Symbol("i18nAttributes"),Qo=Symbol("i18nProperties"),Jr=Symbol("i18nUnsubs");function tn(t){var e;class r extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Bl:Wt}i18n(i,a,...s){var c;if(typeof i=="string")return this.i18nService.resolveMessage(i,a,...s);let d=(c=i.args)!==null&&c!==void 0?c:i.argsProvider?i.argsProvider(this):[];return this.i18nService.resolveMessage(i.context,i.key,...d)}onI18nUpdate(i){var a,s;(a=this[Pa])===null||a===void 0||a.forEach((c,d)=>{var p;let h=this.getI18nAttributeValue(d);((p=h?.context)===null||p===void 0?void 0:p.toLowerCase())===i.toLowerCase()&&this.updateI18nAttributeMessage(d,h,c)}),(s=this[Qo])===null||s===void 0||s.forEach((c,d)=>{c.context.toLowerCase()===i.toLowerCase()&&(this[d]=this.i18n(c))}),setTimeout(()=>this.requestUpdate(),0)}updateI18nAttributeMessage(i,a,s){this[i]={...a,message:this.i18n({context:a.context,key:a.key,...s})}}update(i){var a,s;super.update(i),(a=this[Pa])===null||a===void 0||a.forEach((c,d)=>{let p=this.getI18nAttributeValue(d);p?.context&&p.key&&(i.has(d)||c.argsProvider!=null)&&(i.has(d)&&this.addI18nContext(p.context),this.updateI18nAttributeMessage(d,p,c))}),(s=this[Qo])===null||s===void 0||s.forEach((c,d)=>{c.argsProvider!=null&&(this[d]=this.i18n(c))})}getI18nAttributeValue(i){return this[i]}connectedCallback(){var i,a,s,c;super.connectedCallback(),new Set([...(a=(i=this[Qo])===null||i===void 0?void 0:i.values())!==null&&a!==void 0?a:[],...[...(c=(s=this[Pa])===null||s===void 0?void 0:s.keys())!==null&&c!==void 0?c:[]].map(d=>this.getI18nAttributeValue(d))].map(d=>d?.context)).forEach(d=>d&&this.addI18nMessages(d))}addI18nMessages(i,a){i=i.toLowerCase(),this[Jr].has(i)||this[Jr].set(i,this.i18nService.subscribe(i,()=>this.onI18nUpdate(i))),this.i18nService.prepareContext(i,a??{}),this.onI18nUpdate(i)}addI18nContext(i,a){this.addI18nMessages(typeof i=="string"?i:i.name,a)}disconnectedCallback(){super.disconnectedCallback(),this[Jr].forEach(i=>i()),this[Jr].clear()}}return e=Jr,$u([A({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}var Fl=class extends tn(j){},en=class extends tn(dt){};var Qr=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Ie=class extends en{constructor(){super(),this.editorMode=!1,this.addStore(M)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":G:Z`
|
|
1164
|
+
<span class="ft-i18n">
|
|
1165
|
+
${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
|
|
1166
|
+
</span>
|
|
1167
|
+
`}update(e){var r;super.update(e),["context","key","defaultMessage"].some(n=>e.has(n))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Ie.elementDefinitions={};Ie.styles=Dl;Qr([Io()],Ie.prototype,"editorMode",void 0);Qr([A()],Ie.prototype,"context",void 0);Qr([A()],Ie.prototype,"key",void 0);Qr([Be([])],Ie.prototype,"args",void 0);Qr([A()],Ie.prototype,"defaultMessage",void 0);var rn=class t{static build(e){return new t(e)}static fromGwt(e){return new t(e)}constructor(e){this.name=e,this.properties=new Proxy({},{get:(r,n)=>{let i=n;return a=>({context:this.name,key:i,args:typeof a=="function"?void 0:a,argsProvider:typeof a=="function"?a:void 0})}}),this.messages=new Proxy({},{get:(r,n)=>(...i)=>Wt.resolveMessage(this.name,n,...i)}),this.rawMessages=new Proxy({},{get:(r,n)=>Wt.resolveRawMessage(this.name,n)})}};re("ft-i18n")(Ie);var La=rn.build("dsModal"),Wl={closeModal:"Close modal"};var Ia=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Ta=class extends CustomEvent{constructor(){super("close",{composed:!0,bubbles:!0})}},$e=class extends tn(Hr){constructor(){super(),this.heading="",this.size=le.small,this.addI18nContext(La,Wl)}render(){let e={"ftds-modal":!0,...this.getDesignSystemBaseClasses()};return Z`
|
|
1168
|
+
<div class="${Lt(e)}" part="container">
|
|
1169
|
+
<dialog part="dialog"
|
|
1170
|
+
@click="${this.onDialogClick}"
|
|
1171
|
+
@close="${()=>this.dispatchEvent(new Ta)}">
|
|
1172
|
+
<div part="inner-container">
|
|
1173
|
+
<div part="header">
|
|
1174
|
+
${this.icon?Z`
|
|
1175
|
+
<ft-icon part="icon" value="${this.icon}"/>
|
|
1176
|
+
`:G}
|
|
1177
|
+
<ft-typography part="heading" variant="${Ae.body1semibold}">
|
|
1178
|
+
${this.heading}
|
|
1179
|
+
</ft-typography>
|
|
1180
|
+
<ftds-button part="closing-button"
|
|
1181
|
+
size="${le.large}"
|
|
1182
|
+
icon="${rt.CLOSE}"
|
|
1183
|
+
tertiary
|
|
1184
|
+
family="${Pe.neutral}"
|
|
1185
|
+
label="${La.messages.closeModal()}"
|
|
1186
|
+
@click="${this.close}">
|
|
1187
|
+
</ftds-button>
|
|
1188
|
+
</div>
|
|
1189
|
+
<div part="body">
|
|
1190
|
+
<div part="content">
|
|
1191
|
+
<slot></slot>
|
|
1192
|
+
</div>
|
|
1193
|
+
<div part="actions">
|
|
1194
|
+
<slot name="actions"></slot>
|
|
1195
|
+
</div>
|
|
1196
|
+
</div>
|
|
1197
|
+
</div>
|
|
1198
|
+
</dialog>
|
|
1199
|
+
</div>
|
|
1200
|
+
`}open(){this.dialog.showModal()}close(){this.dialog.close()}disconnectedCallback(){super.disconnectedCallback(),this.close()}onDialogClick(e){Ln(e,["[part='inner-container']"],this)||this.close()}};$e.elementDefinitions={"ftds-button":Ee,"ft-typography":ue,"ft-icon":be};$e.styles=nl;Ia([A({type:String})],$e.prototype,"heading",void 0);Ia([A({type:String})],$e.prototype,"icon",void 0);Ia([ce("dialog")],$e.prototype,"dialog",void 0);var Hl=Ae.body2regular;var Ht=function(t,e,r,n){var i=arguments.length,a=i<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(s=t[c])&&(a=(i<3?s(a):i>3?s(e,r,a):s(e,r))||a);return i>3&&a&&Object.defineProperty(e,r,a),a},Re=class extends j{constructor(){super(...arguments),this.confirmText="Confirm",this.cancelText="Cancel",this.confirmIcon=rt.CHECK,this.cancelIcon=rt.CLOSE}render(){return Z`
|
|
1201
|
+
<ftds-modal
|
|
1202
|
+
heading="${this.heading}"
|
|
1203
|
+
size="${le.small}"
|
|
1204
|
+
@close="${this.onCancel}"
|
|
1205
|
+
>
|
|
1206
|
+
<ft-typography variant="${Hl}">
|
|
1207
|
+
${this.text}
|
|
1208
|
+
</ft-typography>
|
|
1209
|
+
<ftds-button slot="actions"
|
|
1210
|
+
tertiary
|
|
1211
|
+
family="${Pe.neutral}"
|
|
1212
|
+
size="${le.large}"
|
|
1213
|
+
icon="${this.cancelIcon}"
|
|
1214
|
+
@click="${this.onCancel}">
|
|
1215
|
+
${this.cancelText}
|
|
1216
|
+
</ftds-button>
|
|
1217
|
+
<ftds-button slot="actions"
|
|
1218
|
+
primary
|
|
1219
|
+
size="${le.large}"
|
|
1220
|
+
@click="${this.onConfirm}"
|
|
1221
|
+
icon="${this.confirmIcon}">
|
|
1222
|
+
${this.confirmText}
|
|
1223
|
+
</ftds-button>
|
|
1224
|
+
</ftds-modal>
|
|
1225
|
+
`}async askConfirmation(){this.modal.open();let e=await new Promise(r=>{this.promiseResolve=r});return this.modal.close(),e}onConfirm(){var e;(e=this.promiseResolve)===null||e===void 0||e.call(this,!0),this.promiseResolve=void 0}onCancel(){var e;(e=this.promiseResolve)===null||e===void 0||e.call(this,!1),this.promiseResolve=void 0}};Re.elementDefinitions={"ftds-modal":$e,"ft-typography":ue,"ftds-button":Ee};Ht([A({type:String})],Re.prototype,"heading",void 0);Ht([A({type:String})],Re.prototype,"text",void 0);Ht([A({type:String})],Re.prototype,"confirmText",void 0);Ht([A({type:String})],Re.prototype,"cancelText",void 0);Ht([A({type:String})],Re.prototype,"confirmIcon",void 0);Ht([A({type:String})],Re.prototype,"cancelIcon",void 0);Ht([ce("ftds-modal")],Re.prototype,"modal",void 0);re("ftds-modal")($e);re("ftds-modal-confirm")(Re);})();
|
|
1226
|
+
/*! Bundled license information:
|
|
1227
|
+
|
|
1228
|
+
@webcomponents/scoped-custom-element-registry/src/scoped-custom-element-registry.js:
|
|
1229
|
+
(**
|
|
1230
|
+
* @license
|
|
1231
|
+
* Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
|
|
1232
|
+
* This code may only be used under the BSD style license found at
|
|
1233
|
+
* http://polymer.github.io/LICENSE.txt
|
|
1234
|
+
* The complete set of authors may be found at
|
|
1235
|
+
* http://polymer.github.io/AUTHORS.txt
|
|
1236
|
+
* The complete set of contributors may be found at
|
|
1237
|
+
* http://polymer.github.io/CONTRIBUTORS.txt
|
|
1238
|
+
* Code distributed by Google as part of the polymer project is also
|
|
1239
|
+
* subject to an additional IP rights grant found at
|
|
1240
|
+
* http://polymer.github.io/PATENTS.txt
|
|
1241
|
+
*)
|
|
1242
|
+
|
|
1243
|
+
@lit/reactive-element/css-tag.js:
|
|
1244
|
+
(**
|
|
1245
|
+
* @license
|
|
1246
|
+
* Copyright 2019 Google LLC
|
|
1247
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1248
|
+
*)
|
|
1249
|
+
|
|
1250
|
+
@lit/reactive-element/reactive-element.js:
|
|
1251
|
+
(**
|
|
1252
|
+
* @license
|
|
1253
|
+
* Copyright 2017 Google LLC
|
|
1254
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1255
|
+
*)
|
|
1256
|
+
|
|
1257
|
+
lit-html/lit-html.js:
|
|
1258
|
+
(**
|
|
1259
|
+
* @license
|
|
1260
|
+
* Copyright 2017 Google LLC
|
|
1261
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1262
|
+
*)
|
|
1263
|
+
|
|
1264
|
+
@lit/reactive-element/css-tag.js:
|
|
1265
|
+
(**
|
|
1266
|
+
* @license
|
|
1267
|
+
* Copyright 2019 Google LLC
|
|
1268
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1269
|
+
*)
|
|
1270
|
+
|
|
1271
|
+
@lit/reactive-element/reactive-element.js:
|
|
1272
|
+
(**
|
|
1273
|
+
* @license
|
|
1274
|
+
* Copyright 2017 Google LLC
|
|
1275
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1276
|
+
*)
|
|
1277
|
+
|
|
1278
|
+
lit-html/lit-html.js:
|
|
1279
|
+
(**
|
|
1280
|
+
* @license
|
|
1281
|
+
* Copyright 2017 Google LLC
|
|
1282
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1283
|
+
*)
|
|
1284
|
+
|
|
1285
|
+
lit-element/lit-element.js:
|
|
1286
|
+
(**
|
|
1287
|
+
* @license
|
|
1288
|
+
* Copyright 2017 Google LLC
|
|
1289
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1290
|
+
*)
|
|
1291
|
+
|
|
1292
|
+
lit-html/is-server.js:
|
|
1293
|
+
(**
|
|
1294
|
+
* @license
|
|
1295
|
+
* Copyright 2022 Google LLC
|
|
1296
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1297
|
+
*)
|
|
1298
|
+
|
|
1299
|
+
@lit/reactive-element/decorators/custom-element.js:
|
|
1300
|
+
(**
|
|
1301
|
+
* @license
|
|
1302
|
+
* Copyright 2017 Google LLC
|
|
1303
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1304
|
+
*)
|
|
1305
|
+
|
|
1306
|
+
@lit/reactive-element/decorators/property.js:
|
|
1307
|
+
(**
|
|
1308
|
+
* @license
|
|
1309
|
+
* Copyright 2017 Google LLC
|
|
1310
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1311
|
+
*)
|
|
1312
|
+
|
|
1313
|
+
@lit/reactive-element/decorators/state.js:
|
|
1314
|
+
(**
|
|
1315
|
+
* @license
|
|
1316
|
+
* Copyright 2017 Google LLC
|
|
1317
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1318
|
+
*)
|
|
1319
|
+
|
|
1320
|
+
@lit/reactive-element/decorators/event-options.js:
|
|
1321
|
+
(**
|
|
1322
|
+
* @license
|
|
1323
|
+
* Copyright 2017 Google LLC
|
|
1324
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1325
|
+
*)
|
|
1326
|
+
|
|
1327
|
+
@lit/reactive-element/decorators/base.js:
|
|
1328
|
+
(**
|
|
1329
|
+
* @license
|
|
1330
|
+
* Copyright 2017 Google LLC
|
|
1331
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1332
|
+
*)
|
|
1333
|
+
|
|
1334
|
+
@lit/reactive-element/decorators/query.js:
|
|
1335
|
+
(**
|
|
1336
|
+
* @license
|
|
1337
|
+
* Copyright 2017 Google LLC
|
|
1338
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1339
|
+
*)
|
|
1340
|
+
|
|
1341
|
+
@lit/reactive-element/decorators/query-all.js:
|
|
1342
|
+
(**
|
|
1343
|
+
* @license
|
|
1344
|
+
* Copyright 2017 Google LLC
|
|
1345
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1346
|
+
*)
|
|
1347
|
+
|
|
1348
|
+
@lit/reactive-element/decorators/query-async.js:
|
|
1349
|
+
(**
|
|
1350
|
+
* @license
|
|
1351
|
+
* Copyright 2017 Google LLC
|
|
1352
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1353
|
+
*)
|
|
1354
|
+
|
|
1355
|
+
@lit/reactive-element/decorators/query-assigned-elements.js:
|
|
1356
|
+
(**
|
|
1357
|
+
* @license
|
|
1358
|
+
* Copyright 2021 Google LLC
|
|
1359
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1360
|
+
*)
|
|
1361
|
+
|
|
1362
|
+
@lit/reactive-element/decorators/query-assigned-nodes.js:
|
|
1363
|
+
(**
|
|
1364
|
+
* @license
|
|
1365
|
+
* Copyright 2017 Google LLC
|
|
1366
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1367
|
+
*)
|
|
1368
|
+
|
|
1369
|
+
lit-html/directive.js:
|
|
1370
|
+
(**
|
|
1371
|
+
* @license
|
|
1372
|
+
* Copyright 2017 Google LLC
|
|
1373
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1374
|
+
*)
|
|
1375
|
+
|
|
1376
|
+
lit-html/directive-helpers.js:
|
|
1377
|
+
(**
|
|
1378
|
+
* @license
|
|
1379
|
+
* Copyright 2020 Google LLC
|
|
1380
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1381
|
+
*)
|
|
1382
|
+
|
|
1383
|
+
lit-html/directives/repeat.js:
|
|
1384
|
+
(**
|
|
1385
|
+
* @license
|
|
1386
|
+
* Copyright 2017 Google LLC
|
|
1387
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1388
|
+
*)
|
|
1389
|
+
|
|
1390
|
+
lit-html/directives/class-map.js:
|
|
1391
|
+
(**
|
|
1392
|
+
* @license
|
|
1393
|
+
* Copyright 2018 Google LLC
|
|
1394
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1395
|
+
*)
|
|
1396
|
+
|
|
1397
|
+
lit-html/directives/style-map.js:
|
|
1398
|
+
(**
|
|
1399
|
+
* @license
|
|
1400
|
+
* Copyright 2018 Google LLC
|
|
1401
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1402
|
+
*)
|
|
1403
|
+
|
|
1404
|
+
lit-html/directives/unsafe-html.js:
|
|
1405
|
+
(**
|
|
1406
|
+
* @license
|
|
1407
|
+
* Copyright 2017 Google LLC
|
|
1408
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1409
|
+
*)
|
|
1410
|
+
|
|
1411
|
+
@lit/reactive-element/css-tag.js:
|
|
1412
|
+
(**
|
|
1413
|
+
* @license
|
|
1414
|
+
* Copyright 2019 Google LLC
|
|
1415
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1416
|
+
*)
|
|
1417
|
+
|
|
1418
|
+
lit-html/static.js:
|
|
1419
|
+
(**
|
|
1420
|
+
* @license
|
|
1421
|
+
* Copyright 2020 Google LLC
|
|
1422
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
1423
|
+
*)
|
|
1424
|
+
*/
|