@fluid-topics/ft-trend 0.1.17 → 0.2.1

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.
@@ -10,12 +10,12 @@ export declare const FtTrendCssVariables: {
10
10
  };
11
11
  export declare class FtTrend extends FtLitElement implements FtTrendProperties {
12
12
  static elementDefinitions: ElementDefinitionsMap;
13
- getStyles(): import("lit").CSSResult;
13
+ static styles: import("lit").CSSResult;
14
14
  label: string;
15
15
  currentValue: number;
16
16
  previousValue: number;
17
17
  getTrendIcon(): "→" | "↗" | "↘";
18
18
  getTrendPercentage(): string;
19
- getTemplate(): import("lit-html").TemplateResult<1>;
19
+ render(): import("lit-html").TemplateResult<1>;
20
20
  }
21
21
  //# sourceMappingURL=ft-trend.d.ts.map
@@ -0,0 +1,216 @@
1
+ !function(){
2
+ /**
3
+ * @license
4
+ * Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
5
+ * This code may only be used under the BSD style license found at
6
+ * http://polymer.github.io/LICENSE.txt
7
+ * The complete set of authors may be found at
8
+ * http://polymer.github.io/AUTHORS.txt
9
+ * The complete set of contributors may be found at
10
+ * http://polymer.github.io/CONTRIBUTORS.txt
11
+ * Code distributed by Google as part of the polymer project is also
12
+ * subject to an additional IP rights grant found at
13
+ * http://polymer.github.io/PATENTS.txt
14
+ *
15
+ * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
16
+ */
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(s.set(n,h),h.standInClass=c);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)r.delete(t),d(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,n=o._getDefinition(e);return n?d(i,n):r.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,n),i.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},u=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):u(i)},d=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){u(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const v=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),g.pop(),t}};v(ShadowRoot,"createElement",document),v(ShadowRoot,"importNode",document),v(Element,"insertAdjacentHTML");const m=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){g.push(this),i.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(t){const e=window.customElements.define;window.customElements.define=(t,i,o)=>{try{e.bind(window.customElements)(t,i,o)}catch(e){console.warn(t,i,o,e)}}}
18
+ /**
19
+ * @license
20
+ * Copyright 2017 Google LLC
21
+ * SPDX-License-Identifier: BSD-3-Clause
22
+ */const t=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function e(e){return(i,o)=>void 0!==o?((t,e,i)=>{e.constructor.createProperty(i,t)})(e,i,o):t(e,i)
23
+ /**
24
+ * @license
25
+ * Copyright 2021 Google LLC
26
+ * SPDX-License-Identifier: BSD-3-Clause
27
+ */}var i;null===(i=window.HTMLSlotElement)||void 0===i||i.prototype.assignedElements;const o=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)}
28
+ /**
29
+ * @license
30
+ * Copyright 2019 Google LLC
31
+ * SPDX-License-Identifier: BSD-3-Clause
32
+ */,n=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),s=new Map;class a{constructor(t,e){if(this._$cssResult$=!0,e!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=s.get(this.cssText);return n&&void 0===t&&(s.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const l=t=>new a("string"==typeof t?t:t+"",r),h=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new a(i,r)},c=(t,e)=>{n?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=window.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},p=n?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return l(e)})(t):t
33
+ /**
34
+ * @license
35
+ * Copyright 2017 Google LLC
36
+ * SPDX-License-Identifier: BSD-3-Clause
37
+ */;var f;const u=window.trustedTypes,d=u?u.emptyScript:"",y=window.reactiveElementPolyfillSupport,g={toAttribute(t,e){switch(e){case Boolean:t=t?d:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},v=(t,e)=>e!==t&&(e==e||t==t),m={attribute:!0,type:String,converter:g,reflect:!1,hasChanged:v};class b extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Eh(i,e);void 0!==o&&(this._$Eu.set(o,i),t.push(o))})),t}static createProperty(t,e=m){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||m}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(p(t))}else void 0!==t&&e.push(p(t));return e}static _$Eh(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return c(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ES(t,e,i=m){var o,n;const r=this.constructor._$Eh(t,i);if(void 0!==r&&!0===i.reflect){const s=(null!==(n=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:g.toAttribute)(e,i.type);this._$Ei=t,null==s?this.removeAttribute(r):this.setAttribute(r,s),this._$Ei=null}}_$AK(t,e){var i,o,n;const r=this.constructor,s=r._$Eu.get(t);if(void 0!==s&&this._$Ei!==s){const t=r.getPropertyOptions(s),a=t.converter,l=null!==(n=null!==(o=null===(i=a)||void 0===i?void 0:i.fromAttribute)&&void 0!==o?o:"function"==typeof a?a:null)&&void 0!==n?n:g.fromAttribute;this._$Ei=s,this[s]=l(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||v)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Ei!==t&&(void 0===this._$E_&&(this._$E_=new Map),this._$E_.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$Ep=this._$EC())}async _$EC(){this.isUpdatePending=!0;try{await this._$Ep}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,e)=>this[e]=t)),this._$Et=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$E_&&(this._$E_.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$E_=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
38
+ /**
39
+ * @license
40
+ * Copyright 2017 Google LLC
41
+ * SPDX-License-Identifier: BSD-3-Clause
42
+ */
43
+ var x;b.finalized=!0,b.elementProperties=new Map,b.elementStyles=[],b.shadowRootOptions={mode:"open"},null==y||y({ReactiveElement:b}),(null!==(f=globalThis.reactiveElementVersions)&&void 0!==f?f:globalThis.reactiveElementVersions=[]).push("1.2.2");const w=globalThis.trustedTypes,$=w?w.createPolicy("lit-html",{createHTML:t=>t}):void 0,O=`lit$${(Math.random()+"").slice(9)}$`,S="?"+O,N=`<${S}>`,C=document,R=(t="")=>C.createComment(t),E=t=>null===t||"object"!=typeof t&&"function"!=typeof t,M=Array.isArray,U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,F=/-->/g,k=/>/g,L=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,T=/'/g,A=/"/g,P=/^(?:script|style|textarea|title)$/i,z=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),B=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),_=new WeakMap,j=C.createTreeWalker(C,129,null,!1),W=(t,e)=>{const i=t.length-1,o=[];let n,r=2===e?"<svg>":"",s=U;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(s.lastIndex=c,l=s.exec(i),null!==l);)c=s.lastIndex,s===U?"!--"===l[1]?s=F:void 0!==l[1]?s=k:void 0!==l[2]?(P.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=L):void 0!==l[3]&&(s=L):s===L?">"===l[0]?(s=null!=n?n:U,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?L:'"'===l[3]?A:T):s===A||s===T?s=L:s===F||s===k?s=U:(s=L,n=void 0);const p=s===L&&t[e+1].startsWith("/>")?" ":"";r+=s===U?i+N:h>=0?(o.push(a),i.slice(0,h)+"$lit$"+i.slice(h)+O+p):i+O+(-2===h?(o.push(void 0),e):p)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==$?$.createHTML(a):a,o]};class H{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,h]=W(t,e);if(this.el=H.createElement(l,i),j.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=j.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(O)){const i=h[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(O),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?J:"?"===e[1]?q:"@"===e[1]?G:Z})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(P.test(o.tagName)){const t=o.textContent.split(O),e=t.length-1;if(e>0){o.textContent=w?w.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],R()),j.nextNode(),a.push({type:2,index:++n});o.append(t[e],R())}}}else if(8===o.nodeType)if(o.data===S)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(O,t+1));)a.push({type:7,index:n}),t+=O.length-1}n++}}static createElement(t,e){const i=C.createElement("template");return i.innerHTML=t,i}}function K(t,e,i=t,o){var n,r,s,a;if(e===B)return e;let l=void 0!==o?null===(n=i._$Cl)||void 0===n?void 0:n[o]:i._$Cu;const h=E(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,o)),void 0!==o?(null!==(s=(a=i)._$Cl)&&void 0!==s?s:a._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=K(t,l._$AS(t,e.values),l,o)),e}class I{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:C).importNode(i,!0);j.currentNode=n;let r=j.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new V(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new Q(r,this,t)),this.v.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=j.nextNode(),s++)}return n}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class V{constructor(t,e,i,o){var n;this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=K(this,t,e),E(t)?t===D||null==t||""===t?(this._$AH!==D&&this._$AR(),this._$AH=D):t!==this._$AH&&t!==B&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return M(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==D&&E(this._$AH)?this._$AA.nextSibling.data=t:this.S(C.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=H.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.m(i);else{const t=new I(n,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=_.get(t.strings);return void 0===e&&_.set(t.strings,e=new H(t)),e}A(t){M(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new V(this.M(R()),this.M(R()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class Z{constructor(t,e,i,o,n){this.type=1,this._$AH=D,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=D}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let r=!1;if(void 0===n)t=K(this,t,e,0),r=!E(t)||t!==this._$AH&&t!==B,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=K(this,o[i+s],e,s),a===B&&(a=this._$AH[s]),r||(r=!E(a)||a!==this._$AH[s]),a===D?t=D:t!==D&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.k(t)}k(t){t===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class J extends Z{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===D?void 0:t}}const X=w?w.emptyScript:"";class q extends Z{constructor(){super(...arguments),this.type=4}k(t){t&&t!==D?this.element.setAttribute(this.name,X):this.element.removeAttribute(this.name)}}class G extends Z{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=K(this,t,e,0))&&void 0!==i?i:D)===B)return;const o=this._$AH,n=t===D&&o!==D||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==D&&(o===D||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class Q{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){K(this,t)}}const Y=window.litHtmlPolyfillSupport;
44
+ /**
45
+ * @license
46
+ * Copyright 2017 Google LLC
47
+ * SPDX-License-Identifier: BSD-3-Clause
48
+ */
49
+ var tt,et;null==Y||Y(H,V),(null!==(x=globalThis.litHtmlVersions)&&void 0!==x?x:globalThis.litHtmlVersions=[]).push("2.1.3");class it extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,e,i)=>{var o,n;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new V(e.insertBefore(R(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return B}}it.finalized=!0,it._$litElement$=!0,null===(tt=globalThis.litElementHydrateSupport)||void 0===tt||tt.call(globalThis,{LitElement:it});const ot=globalThis.litElementPolyfillSupport;null==ot||ot({LitElement:it}),(null!==(et=globalThis.litElementVersions)&&void 0!==et?et:globalThis.litElementVersions=[]).push("3.1.2");class nt{constructor(t,e,i,o,n){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=o,this.context=n,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,e,i){return new nt(t,e,void 0,i)}static extend(t,e,i){return new nt(t,e.category,e,i)}static external(t,e){return new nt(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return h`var(${l(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):l(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,e;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(e=this.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}const rt={colorPrimary:nt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:nt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:nt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:nt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:nt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:nt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:nt.create("--ft-color-error","COLOR","#B00020"),colorOutline:nt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:nt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:nt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:nt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:nt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:nt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:nt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:nt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:nt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:nt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:nt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:nt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:nt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:nt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:nt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:nt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:nt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:nt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:nt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:nt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:nt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:nt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:nt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:nt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:nt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:nt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:nt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:nt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:nt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:nt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:nt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:nt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:nt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:nt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:nt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:nt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:nt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:nt.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:nt.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:nt.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:nt.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:nt.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:nt.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:nt.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:nt.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:nt.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:nt.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:nt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:nt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:nt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:nt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:nt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:nt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:nt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:nt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
50
+ /**
51
+ * @license
52
+ * Copyright 2021 Google LLC
53
+ * SPDX-License-Identifier: BSD-3-Clause
54
+ */class st extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return c(n,this.constructor.elementStyles),n}}}(it)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),z`
55
+ ${t.map((t=>z`
56
+ <style>${t}</style>
57
+ `))}
58
+ ${this.getTemplate()}
59
+ `}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}var at,lt;h`
60
+ .ft-no-text-select {
61
+ -webkit-touch-callout: none;
62
+ -webkit-user-select: none;
63
+ -khtml-user-select: none;
64
+ -moz-user-select: none;
65
+ -ms-user-select: none;
66
+ user-select: none;
67
+ }
68
+ `,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(lt=null===(at=window.safari)||void 0===at?void 0:at.pushNotification)||void 0===lt||lt.toString());
69
+ /**
70
+ * @license
71
+ * Copyright 2020 Google LLC
72
+ * SPDX-License-Identifier: BSD-3-Clause
73
+ */
74
+ const ht=t=>({_$litStatic$:t}),ct=new Map,pt=(t=>(e,...i)=>{var o;const n=i.length;let r,s;const a=[],l=[];let h,c=0,p=!1;for(;c<n;){for(h=e[c];c<n&&void 0!==(s=i[c],r=null===(o=s)||void 0===o?void 0:o._$litStatic$);)h+=r+e[++c],p=!0;l.push(s),a.push(h),c++}if(c===n&&a.push(e[n]),p){const t=a.join("$$lit$$");void 0===(e=ct.get(t))&&(a.raw=a,ct.set(t,e=a)),i=l}return t(e,...i)})(z);var ft,ut=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};!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"}(ft||(ft={}));const dt=nt.extend("--ft-typography-font-family",rt.titleFont),yt=nt.extend("--ft-typography-font-family",rt.contentFont),gt={fontFamily:yt,fontSize:nt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:nt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:nt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:nt.create("--ft-typography-line-height","SIZE","24px"),textTransform:nt.create("--ft-typography-text-transform","UNKNOWN","inherit")},vt=nt.extend("--ft-typography-title-font-family",dt),mt=nt.extend("--ft-typography-title-font-size",gt.fontSize,"20px"),bt=nt.extend("--ft-typography-title-font-weight",gt.fontWeight,"normal"),xt=nt.extend("--ft-typography-title-letter-spacing",gt.letterSpacing,"0.15px"),wt=nt.extend("--ft-typography-title-line-height",gt.lineHeight,"24px"),$t=nt.extend("--ft-typography-title-text-transform",gt.textTransform,"inherit"),Ot=nt.extend("--ft-typography-title-dense-font-family",dt),St=nt.extend("--ft-typography-title-dense-font-size",gt.fontSize,"14px"),Nt=nt.extend("--ft-typography-title-dense-font-weight",gt.fontWeight,"normal"),Ct=nt.extend("--ft-typography-title-dense-letter-spacing",gt.letterSpacing,"0.105px"),Rt=nt.extend("--ft-typography-title-dense-line-height",gt.lineHeight,"24px"),Et=nt.extend("--ft-typography-title-dense-text-transform",gt.textTransform,"inherit"),Mt=nt.extend("--ft-typography-subtitle1-font-family",yt),Ut=nt.extend("--ft-typography-subtitle1-font-size",gt.fontSize,"16px"),Ft=nt.extend("--ft-typography-subtitle1-font-weight",gt.fontWeight,"600"),kt=nt.extend("--ft-typography-subtitle1-letter-spacing",gt.letterSpacing,"0.144px"),Lt=nt.extend("--ft-typography-subtitle1-line-height",gt.lineHeight,"24px"),Tt=nt.extend("--ft-typography-subtitle1-text-transform",gt.textTransform,"inherit"),At=nt.extend("--ft-typography-subtitle2-font-family",yt),Pt=nt.extend("--ft-typography-subtitle2-font-size",gt.fontSize,"14px"),zt=nt.extend("--ft-typography-subtitle2-font-weight",gt.fontWeight,"normal"),Bt=nt.extend("--ft-typography-subtitle2-letter-spacing",gt.letterSpacing,"0.098px"),Dt=nt.extend("--ft-typography-subtitle2-line-height",gt.lineHeight,"24px"),_t=nt.extend("--ft-typography-subtitle2-text-transform",gt.textTransform,"inherit"),jt=nt.extend("--ft-typography-body1-font-family",yt),Wt=nt.extend("--ft-typography-body1-font-size",gt.fontSize,"16px"),Ht=nt.extend("--ft-typography-body1-font-weight",gt.fontWeight,"normal"),Kt=nt.extend("--ft-typography-body1-letter-spacing",gt.letterSpacing,"0.496px"),It=nt.extend("--ft-typography-body1-line-height",gt.lineHeight,"24px"),Vt=nt.extend("--ft-typography-body1-text-transform",gt.textTransform,"inherit"),Zt=nt.extend("--ft-typography-body2-font-family",yt),Jt=nt.extend("--ft-typography-body2-font-size",gt.fontSize,"14px"),Xt=nt.extend("--ft-typography-body2-font-weight",gt.fontWeight,"normal"),qt=nt.extend("--ft-typography-body2-letter-spacing",gt.letterSpacing,"0.252px"),Gt=nt.extend("--ft-typography-body2-line-height",gt.lineHeight,"20px"),Qt=nt.extend("--ft-typography-body2-text-transform",gt.textTransform,"inherit"),Yt=nt.extend("--ft-typography-caption-font-family",yt),te=nt.extend("--ft-typography-caption-font-size",gt.fontSize,"12px"),ee=nt.extend("--ft-typography-caption-font-weight",gt.fontWeight,"normal"),ie=nt.extend("--ft-typography-caption-letter-spacing",gt.letterSpacing,"0.396px"),oe=nt.extend("--ft-typography-caption-line-height",gt.lineHeight,"16px"),ne=nt.extend("--ft-typography-caption-text-transform",gt.textTransform,"inherit"),re=nt.extend("--ft-typography-breadcrumb-font-family",yt),se=nt.extend("--ft-typography-breadcrumb-font-size",gt.fontSize,"10px"),ae=nt.extend("--ft-typography-breadcrumb-font-weight",gt.fontWeight,"normal"),le=nt.extend("--ft-typography-breadcrumb-letter-spacing",gt.letterSpacing,"0.33px"),he=nt.extend("--ft-typography-breadcrumb-line-height",gt.lineHeight,"16px"),ce=nt.extend("--ft-typography-breadcrumb-text-transform",gt.textTransform,"inherit"),pe=nt.extend("--ft-typography-overline-font-family",yt),fe=nt.extend("--ft-typography-overline-font-size",gt.fontSize,"10px"),ue=nt.extend("--ft-typography-overline-font-weight",gt.fontWeight,"normal"),de=nt.extend("--ft-typography-overline-letter-spacing",gt.letterSpacing,"1.5px"),ye=nt.extend("--ft-typography-overline-line-height",gt.lineHeight,"16px"),ge=nt.extend("--ft-typography-overline-text-transform",gt.textTransform,"uppercase"),ve=nt.extend("--ft-typography-button-font-family",yt),me=nt.extend("--ft-typography-button-font-size",gt.fontSize,"14px"),be=nt.extend("--ft-typography-button-font-weight",gt.fontWeight,"600"),xe=nt.extend("--ft-typography-button-letter-spacing",gt.letterSpacing,"1.246px"),we=nt.extend("--ft-typography-button-line-height",gt.lineHeight,"16px"),$e=nt.extend("--ft-typography-button-text-transform",gt.textTransform,"uppercase"),Oe=h`
75
+ .ft-typography--title {
76
+ font-family: ${vt};
77
+ font-size: ${mt};
78
+ font-weight: ${bt};
79
+ letter-spacing: ${xt};
80
+ line-height: ${wt};
81
+ text-transform: ${$t};
82
+ }
83
+ `,Se=h`
84
+ .ft-typography--title-dense {
85
+ font-family: ${Ot};
86
+ font-size: ${St};
87
+ font-weight: ${Nt};
88
+ letter-spacing: ${Ct};
89
+ line-height: ${Rt};
90
+ text-transform: ${Et};
91
+ }
92
+ `,Ne=h`
93
+ .ft-typography--subtitle1 {
94
+ font-family: ${Mt};
95
+ font-size: ${Ut};
96
+ font-weight: ${Ft};
97
+ letter-spacing: ${kt};
98
+ line-height: ${Lt};
99
+ text-transform: ${Tt};
100
+ }
101
+ `,Ce=h`
102
+ .ft-typography--subtitle2 {
103
+ font-family: ${At};
104
+ font-size: ${Pt};
105
+ font-weight: ${zt};
106
+ letter-spacing: ${Bt};
107
+ line-height: ${Dt};
108
+ text-transform: ${_t};
109
+ }
110
+
111
+ `,Re=h`
112
+ .ft-typography--body1 {
113
+ font-family: ${jt};
114
+ font-size: ${Wt};
115
+ font-weight: ${Ht};
116
+ letter-spacing: ${Kt};
117
+ line-height: ${It};
118
+ text-transform: ${Vt};
119
+ }
120
+ `,Ee=h`
121
+ .ft-typography--body2 {
122
+ font-family: ${Zt};
123
+ font-size: ${Jt};
124
+ font-weight: ${Xt};
125
+ letter-spacing: ${qt};
126
+ line-height: ${Gt};
127
+ text-transform: ${Qt};
128
+ }
129
+ `,Me=h`
130
+ .ft-typography--caption {
131
+ font-family: ${Yt};
132
+ font-size: ${te};
133
+ font-weight: ${ee};
134
+ letter-spacing: ${ie};
135
+ line-height: ${oe};
136
+ text-transform: ${ne};
137
+ }
138
+ `,Ue=h`
139
+ .ft-typography--breadcrumb {
140
+ font-family: ${re};
141
+ font-size: ${se};
142
+ font-weight: ${ae};
143
+ letter-spacing: ${le};
144
+ line-height: ${he};
145
+ text-transform: ${ce};
146
+ }
147
+ `,Fe=h`
148
+ .ft-typography--overline {
149
+ font-family: ${pe};
150
+ font-size: ${fe};
151
+ font-weight: ${ue};
152
+ letter-spacing: ${de};
153
+ line-height: ${ye};
154
+ text-transform: ${ge};
155
+ }
156
+ `,ke=h`
157
+ .ft-typography--button {
158
+ font-family: ${ve};
159
+ font-size: ${me};
160
+ font-weight: ${be};
161
+ letter-spacing: ${xe};
162
+ line-height: ${we};
163
+ text-transform: ${$e};
164
+ }
165
+ `;class Le extends st{constructor(){super(...arguments),this.variant=ft.body1}render(){return this.element?pt`
166
+ <${ht(this.element)}
167
+ class="ft-typography ft-typography--${this.variant}">
168
+ <slot></slot>
169
+ </${ht(this.element)}>
170
+ `:pt`
171
+ <slot class="ft-typography ft-typography--${this.variant}"></slot>
172
+ `}}Le.styles=[Oe,Se,Ne,Ce,Re,Ee,Me,Ue,Fe,ke,h`
173
+ .ft-typography {
174
+ vertical-align: inherit;
175
+ }
176
+ `],ut([e()],Le.prototype,"element",void 0),ut([e()],Le.prototype,"variant",void 0),o("ft-typography")(Le);var Te=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const Ae=nt.external(rt.colorOnSurfaceHigh,"Design system");nt.external(rt.colorOnSurfaceMedium,"Design system");class Pe extends st{constructor(){super(...arguments),this.label="Trend",this.currentValue=3,this.previousValue=2}getTrendIcon(){return this.currentValue==this.previousValue?"→":this.currentValue>this.previousValue?"↗":"↘"}getTrendPercentage(){let t=(this.currentValue-this.previousValue)/this.previousValue,e=Math.round(100*t);return`${e>=0?"+":"-"}${Math.abs(e)}%`}render(){return 0==this.previousValue?z`
177
+ <div class="ft-trend">
178
+ <ft-typography variant="subtitle2">
179
+ ${this.label}
180
+ </ft-typography>
181
+ <div>
182
+ <ft-typography variant="body2">
183
+ No previous value
184
+ </ft-typography>
185
+ </div>
186
+ </div>
187
+ `:z`
188
+ <div class="ft-trend">
189
+ <ft-typography variant="subtitle2">
190
+ ${this.label}
191
+ </ft-typography>
192
+ <div>
193
+ <ft-typography variant="title">
194
+ ${this.currentValue.toLocaleString()}
195
+ </ft-typography>
196
+ <span>${this.getTrendIcon()}</span>
197
+ <ft-typography variant="body2">
198
+ ${this.getTrendPercentage()}
199
+ </ft-typography>
200
+ </div>
201
+ </div>
202
+ `}}Pe.elementDefinitions={"ft-typography":Le},Pe.styles=h`
203
+ .ft-trend {
204
+ text-align: center;
205
+ color: ${Ae};
206
+ }
207
+
208
+ .ft-trend > div {
209
+ padding-top: 5px;
210
+ }
211
+ `,Te([e({type:String})],Pe.prototype,"label",void 0),Te([e({type:Number})],Pe.prototype,"currentValue",void 0),Te([e({type:Number})],Pe.prototype,"previousValue",void 0),o("ft-trend")(function t(e){var i;let o;if("elementDefinitions"in e){o={};const i=e.elementDefinitions;for(let e in i)o[e]=t(i[e])}return i=class extends e{constructor(...t){super(t),this._constructor=this.constructor}render(){var t;let i=null!==(t=e.styles)&&void 0!==t?t:[];return Array.isArray(i)||(i=[i]),z`
212
+ ${i.map((t=>z`
213
+ <style>${t}</style>
214
+ `))}
215
+ ${super.render()}
216
+ `}},i.styles=void 0,i.elementDefinitions=o,i}(Pe))}();
package/build/ft-trend.js CHANGED
@@ -6,32 +6,19 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  };
7
7
  import { css, html } from "lit";
8
8
  import { property } from "lit/decorators.js";
9
- import { customElement, designSystemVariables, FtCssVariable, FtLitElement } from "@fluid-topics/ft-wc-utils";
9
+ import { designSystemVariables, FtCssVariable, FtLitElement } from "@fluid-topics/ft-wc-utils";
10
10
  import { FtTypography } from "@fluid-topics/ft-typography";
11
11
  export const FtTrendCssVariables = {
12
12
  textColor: FtCssVariable.external(designSystemVariables.colorOnSurfaceHigh, "Design system"),
13
13
  titleColor: FtCssVariable.external(designSystemVariables.colorOnSurfaceMedium, "Design system")
14
14
  };
15
- let FtTrend = class FtTrend extends FtLitElement {
15
+ export class FtTrend extends FtLitElement {
16
16
  constructor() {
17
17
  super(...arguments);
18
18
  this.label = "Trend";
19
19
  this.currentValue = 3;
20
20
  this.previousValue = 2;
21
21
  }
22
- getStyles() {
23
- // language=CSS
24
- return css `
25
- .ft-trend {
26
- text-align: center;
27
- color: ${FtTrendCssVariables.textColor};
28
- }
29
-
30
- .ft-trend > div {
31
- padding-top: 5px;
32
- }
33
- `;
34
- }
35
22
  getTrendIcon() {
36
23
  if (this.currentValue == this.previousValue) {
37
24
  return "\u2192";
@@ -49,42 +36,53 @@ let FtTrend = class FtTrend extends FtLitElement {
49
36
  let sign = (percent >= 0) ? "+" : "-";
50
37
  return `${sign}${Math.abs(percent)}%`;
51
38
  }
52
- getTemplate() {
39
+ render() {
53
40
  if (this.previousValue == 0) {
54
41
  return html `
55
- <div class="ft-trend">
56
- <ft-typography variant="subtitle2">
57
- ${this.label}
58
- </ft-typography>
59
- <div>
60
- <ft-typography variant="body2">
61
- No previous value
42
+ <div class="ft-trend">
43
+ <ft-typography variant="subtitle2">
44
+ ${this.label}
62
45
  </ft-typography>
46
+ <div>
47
+ <ft-typography variant="body2">
48
+ No previous value
49
+ </ft-typography>
50
+ </div>
63
51
  </div>
64
- </div>
65
- `;
52
+ `;
66
53
  }
67
54
  else {
68
55
  return html `
69
- <div class="ft-trend">
70
- <ft-typography variant="subtitle2">
71
- ${this.label}
72
- </ft-typography>
73
- <div>
74
- <ft-typography variant="title">
75
- ${this.currentValue.toLocaleString()}
76
- </ft-typography>
77
- <span>${this.getTrendIcon()}</span>
78
- <ft-typography variant="body2">
79
- ${this.getTrendPercentage()}
56
+ <div class="ft-trend">
57
+ <ft-typography variant="subtitle2">
58
+ ${this.label}
80
59
  </ft-typography>
60
+ <div>
61
+ <ft-typography variant="title">
62
+ ${this.currentValue.toLocaleString()}
63
+ </ft-typography>
64
+ <span>${this.getTrendIcon()}</span>
65
+ <ft-typography variant="body2">
66
+ ${this.getTrendPercentage()}
67
+ </ft-typography>
68
+ </div>
81
69
  </div>
82
- </div>
83
- `;
70
+ `;
84
71
  }
85
72
  }
86
- };
73
+ }
87
74
  FtTrend.elementDefinitions = { "ft-typography": FtTypography };
75
+ // language=CSS
76
+ FtTrend.styles = css `
77
+ .ft-trend {
78
+ text-align: center;
79
+ color: ${FtTrendCssVariables.textColor};
80
+ }
81
+
82
+ .ft-trend > div {
83
+ padding-top: 5px;
84
+ }
85
+ `;
88
86
  __decorate([
89
87
  property({ type: String })
90
88
  ], FtTrend.prototype, "label", void 0);
@@ -94,8 +92,4 @@ __decorate([
94
92
  __decorate([
95
93
  property({ type: Number })
96
94
  ], FtTrend.prototype, "previousValue", void 0);
97
- FtTrend = __decorate([
98
- customElement("ft-trend")
99
- ], FtTrend);
100
- export { FtTrend };
101
95
  //# sourceMappingURL=ft-trend.js.map
@@ -4,13 +4,13 @@
4
4
  * Copyright 2017 Google LLC
5
5
  * SPDX-License-Identifier: BSD-3-Clause
6
6
  */
7
- var s;const n=globalThis.trustedTypes,r=n?n.createPolicy("lit-html",{createHTML:t=>t}):void 0,h=`lit$${(Math.random()+"").slice(9)}$`,p="?"+h,a=`<${p}>`,l=document,f=(t="")=>l.createComment(t),y=t=>null===t||"object"!=typeof t&&"function"!=typeof t,g=Array.isArray,d=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,c=/-->/g,u=/>/g,v=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,$=/'/g,m=/"/g,b=/^(?:script|style|textarea|title)$/i,x=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),w=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),A=new WeakMap,_=l.createTreeWalker(l,129,null,!1),N=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",p=d;for(let i=0;i<e;i++){const e=t[i];let r,l,f=-1,y=0;for(;y<e.length&&(p.lastIndex=y,l=p.exec(e),null!==l);)y=p.lastIndex,p===d?"!--"===l[1]?p=c:void 0!==l[1]?p=u:void 0!==l[2]?(b.test(l[2])&&(s=RegExp("</"+l[2],"g")),p=v):void 0!==l[3]&&(p=v):p===v?">"===l[0]?(p=null!=s?s:d,f=-1):void 0===l[1]?f=-2:(f=p.lastIndex-l[2].length,r=l[1],p=void 0===l[3]?v:'"'===l[3]?m:$):p===m||p===$?p=v:p===c||p===u?p=d:(p=v,s=void 0);const g=p===v&&t[i+1].startsWith("/>")?" ":"";n+=p===d?e+a:f>=0?(o.push(r),e.slice(0,f)+"$lit$"+e.slice(f)+h+g):e+h+(-2===f?(o.push(void 0),i):g)}const l=n+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==r?r.createHTML(l):l,o]};class S{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,r=0;const a=t.length-1,l=this.parts,[y,g]=N(t,i);if(this.el=S.createElement(y,e),_.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=_.nextNode())&&l.length<a;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(h)){const e=g[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(h),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?O:"?"===i[1]?U:"@"===i[1]?C:E})}else l.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(b.test(o.tagName)){const t=o.textContent.split(h),i=t.length-1;if(i>0){o.textContent=n?n.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],f()),_.nextNode(),l.push({type:2,index:++s});o.append(t[i],f())}}}else if(8===o.nodeType)if(o.data===p)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(h,t+1));)l.push({type:7,index:s}),t+=h.length-1}s++}}static createElement(t,i){const e=l.createElement("template");return e.innerHTML=t,e}}function T(t,i,e=t,o){var s,n,r,h;if(i===w)return i;let p=void 0!==o?null===(s=e._$Cl)||void 0===s?void 0:s[o]:e._$Cu;const a=y(i)?void 0:i._$litDirective$;return(null==p?void 0:p.constructor)!==a&&(null===(n=null==p?void 0:p._$AO)||void 0===n||n.call(p,!1),void 0===a?p=void 0:(p=new a(t),p._$AT(t,e,o)),void 0!==o?(null!==(r=(h=e)._$Cl)&&void 0!==r?r:h._$Cl=[])[o]=p:e._$Cu=p),void 0!==p&&(i=T(t,p._$AS(t,i.values),p,o)),i}class I{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:l).importNode(e,!0);_.currentNode=s;let n=_.nextNode(),r=0,h=0,p=o[0];for(;void 0!==p;){if(r===p.index){let i;2===p.type?i=new M(n,n.nextSibling,this,t):1===p.type?i=new p.ctor(n,p.name,p.strings,this,t):6===p.type&&(i=new Z(n,this,t)),this.v.push(i),p=o[++h]}r!==(null==p?void 0:p.index)&&(n=_.nextNode(),r++)}return s}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class M{constructor(t,i,e,o){var s;this.type=2,this._$AH=z,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cg=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=T(this,t,i),y(t)?t===z||null==t||""===t?(this._$AH!==z&&this._$AR(),this._$AH=z):t!==this._$AH&&t!==w&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var i;return g(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==z&&y(this._$AH)?this._$AA.nextSibling.data=t:this.S(l.createTextNode(t)),this._$AH=t}T(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=S.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.m(e);else{const t=new I(s,this),i=t.p(this.options);t.m(e),this.S(i),this._$AH=t}}_$AC(t){let i=A.get(t.strings);return void 0===i&&A.set(t.strings,i=new S(t)),i}A(t){g(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new M(this.M(f()),this.M(f()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class E{constructor(t,i,e,o,s){this.type=1,this._$AH=z,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let n=!1;if(void 0===s)t=T(this,t,i,0),n=!y(t)||t!==this._$AH&&t!==w,n&&(this._$AH=t);else{const o=t;let r,h;for(t=s[0],r=0;r<s.length-1;r++)h=T(this,o[e+r],i,r),h===w&&(h=this._$AH[r]),n||(n=!y(h)||h!==this._$AH[r]),h===z?t=z:t!==z&&(t+=(null!=h?h:"")+s[r+1]),this._$AH[r]=h}n&&!o&&this.k(t)}k(t){t===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class O extends E{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===z?void 0:t}}const j=n?n.emptyScript:"";class U extends E{constructor(){super(...arguments),this.type=4}k(t){t&&t!==z?this.element.setAttribute(this.name,j):this.element.removeAttribute(this.name)}}class C extends E{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=T(this,t,i,0))&&void 0!==e?e:z)===w)return;const o=this._$AH,s=t===z&&o!==z||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==z&&(o===z||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class Z{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){T(this,t)}}const k=window.litHtmlPolyfillSupport;null==k||k(S,M),(null!==(s=globalThis.litHtmlVersions)&&void 0!==s?s:globalThis.litHtmlVersions=[]).push("2.1.3");
7
+ var n;const s=globalThis.trustedTypes,r=s?s.createPolicy("lit-html",{createHTML:t=>t}):void 0,h=`lit$${(Math.random()+"").slice(9)}$`,p="?"+h,a=`<${p}>`,l=document,f=(t="")=>l.createComment(t),y=t=>null===t||"object"!=typeof t&&"function"!=typeof t,g=Array.isArray,d=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,c=/-->/g,u=/>/g,v=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,$=/'/g,b=/"/g,m=/^(?:script|style|textarea|title)$/i,x=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),w=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),A=new WeakMap,_=l.createTreeWalker(l,129,null,!1),N=(t,i)=>{const e=t.length-1,o=[];let n,s=2===i?"<svg>":"",p=d;for(let i=0;i<e;i++){const e=t[i];let r,l,f=-1,y=0;for(;y<e.length&&(p.lastIndex=y,l=p.exec(e),null!==l);)y=p.lastIndex,p===d?"!--"===l[1]?p=c:void 0!==l[1]?p=u:void 0!==l[2]?(m.test(l[2])&&(n=RegExp("</"+l[2],"g")),p=v):void 0!==l[3]&&(p=v):p===v?">"===l[0]?(p=null!=n?n:d,f=-1):void 0===l[1]?f=-2:(f=p.lastIndex-l[2].length,r=l[1],p=void 0===l[3]?v:'"'===l[3]?b:$):p===b||p===$?p=v:p===c||p===u?p=d:(p=v,n=void 0);const g=p===v&&t[i+1].startsWith("/>")?" ":"";s+=p===d?e+a:f>=0?(o.push(r),e.slice(0,f)+"$lit$"+e.slice(f)+h+g):e+h+(-2===f?(o.push(void 0),i):g)}const l=s+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==r?r.createHTML(l):l,o]};class S{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,r=0;const a=t.length-1,l=this.parts,[y,g]=N(t,i);if(this.el=S.createElement(y,e),_.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=_.nextNode())&&l.length<a;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(h)){const e=g[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(h),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?O:"?"===i[1]?U:"@"===i[1]?C:E})}else l.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(m.test(o.tagName)){const t=o.textContent.split(h),i=t.length-1;if(i>0){o.textContent=s?s.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],f()),_.nextNode(),l.push({type:2,index:++n});o.append(t[i],f())}}}else if(8===o.nodeType)if(o.data===p)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(h,t+1));)l.push({type:7,index:n}),t+=h.length-1}n++}}static createElement(t,i){const e=l.createElement("template");return e.innerHTML=t,e}}function T(t,i,e=t,o){var n,s,r,h;if(i===w)return i;let p=void 0!==o?null===(n=e._$Cl)||void 0===n?void 0:n[o]:e._$Cu;const a=y(i)?void 0:i._$litDirective$;return(null==p?void 0:p.constructor)!==a&&(null===(s=null==p?void 0:p._$AO)||void 0===s||s.call(p,!1),void 0===a?p=void 0:(p=new a(t),p._$AT(t,e,o)),void 0!==o?(null!==(r=(h=e)._$Cl)&&void 0!==r?r:h._$Cl=[])[o]=p:e._$Cu=p),void 0!==p&&(i=T(t,p._$AS(t,i.values),p,o)),i}class I{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:l).importNode(e,!0);_.currentNode=n;let s=_.nextNode(),r=0,h=0,p=o[0];for(;void 0!==p;){if(r===p.index){let i;2===p.type?i=new M(s,s.nextSibling,this,t):1===p.type?i=new p.ctor(s,p.name,p.strings,this,t):6===p.type&&(i=new Z(s,this,t)),this.v.push(i),p=o[++h]}r!==(null==p?void 0:p.index)&&(s=_.nextNode(),r++)}return n}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class M{constructor(t,i,e,o){var n;this.type=2,this._$AH=z,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cg=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=T(this,t,i),y(t)?t===z||null==t||""===t?(this._$AH!==z&&this._$AR(),this._$AH=z):t!==this._$AH&&t!==w&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var i;return g(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==z&&y(this._$AH)?this._$AA.nextSibling.data=t:this.S(l.createTextNode(t)),this._$AH=t}T(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=S.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.m(e);else{const t=new I(n,this),i=t.p(this.options);t.m(e),this.S(i),this._$AH=t}}_$AC(t){let i=A.get(t.strings);return void 0===i&&A.set(t.strings,i=new S(t)),i}A(t){g(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new M(this.M(f()),this.M(f()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cg=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class E{constructor(t,i,e,o,n){this.type=1,this._$AH=z,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=z}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let s=!1;if(void 0===n)t=T(this,t,i,0),s=!y(t)||t!==this._$AH&&t!==w,s&&(this._$AH=t);else{const o=t;let r,h;for(t=n[0],r=0;r<n.length-1;r++)h=T(this,o[e+r],i,r),h===w&&(h=this._$AH[r]),s||(s=!y(h)||h!==this._$AH[r]),h===z?t=z:t!==z&&(t+=(null!=h?h:"")+n[r+1]),this._$AH[r]=h}s&&!o&&this.k(t)}k(t){t===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class O extends E{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===z?void 0:t}}const j=s?s.emptyScript:"";class U extends E{constructor(){super(...arguments),this.type=4}k(t){t&&t!==z?this.element.setAttribute(this.name,j):this.element.removeAttribute(this.name)}}class C extends E{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=T(this,t,i,0))&&void 0!==e?e:z)===w)return;const o=this._$AH,n=t===z&&o!==z||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==z&&(o===z||n);n&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class Z{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){T(this,t)}}const k=window.litHtmlPolyfillSupport;null==k||k(S,M),(null!==(n=globalThis.litHtmlVersions)&&void 0!==n?n:globalThis.litHtmlVersions=[]).push("2.1.3");
8
8
  /**
9
9
  * @license
10
10
  * Copyright 2020 Google LLC
11
11
  * SPDX-License-Identifier: BSD-3-Clause
12
12
  */
13
- const W=t=>({_$litStatic$:t}),G=new Map,D=(t=>(i,...e)=>{var o;const s=e.length;let n,r;const h=[],p=[];let a,l=0,f=!1;for(;l<s;){for(a=i[l];l<s&&void 0!==(r=e[l],n=null===(o=r)||void 0===o?void 0:o._$litStatic$);)a+=n+i[++l],f=!0;p.push(r),h.push(a),l++}if(l===s&&h.push(i[s]),f){const t=h.join("$$lit$$");void 0===(i=G.get(t))&&(h.raw=h,G.set(t,i=h)),e=p}return t(i,...e)})(x);var H,K=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,h=t.length-1;h>=0;h--)(s=t[h])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};!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"}(H||(H={}));const R=o.FtCssVariable.extend("--ft-typography-font-family",o.designSystemVariables.titleFont),V=o.FtCssVariable.extend("--ft-typography-font-family",o.designSystemVariables.contentFont),F={fontFamily:V,fontSize:o.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:o.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:o.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:o.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:o.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},L=o.FtCssVariable.extend("--ft-typography-title-font-family",R),P=o.FtCssVariable.extend("--ft-typography-title-font-size",F.fontSize,"20px"),q=o.FtCssVariable.extend("--ft-typography-title-font-weight",F.fontWeight,"normal"),B=o.FtCssVariable.extend("--ft-typography-title-letter-spacing",F.letterSpacing,"0.15px"),J=o.FtCssVariable.extend("--ft-typography-title-line-height",F.lineHeight,"24px"),Q=o.FtCssVariable.extend("--ft-typography-title-text-transform",F.textTransform,"inherit"),X=o.FtCssVariable.extend("--ft-typography-title-dense-font-family",R),Y=o.FtCssVariable.extend("--ft-typography-title-dense-font-size",F.fontSize,"14px"),tt=o.FtCssVariable.extend("--ft-typography-title-dense-font-weight",F.fontWeight,"normal"),it=o.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",F.letterSpacing,"0.105px"),et=o.FtCssVariable.extend("--ft-typography-title-dense-line-height",F.lineHeight,"24px"),ot=o.FtCssVariable.extend("--ft-typography-title-dense-text-transform",F.textTransform,"inherit"),st=o.FtCssVariable.extend("--ft-typography-subtitle1-font-family",V),nt=o.FtCssVariable.extend("--ft-typography-subtitle1-font-size",F.fontSize,"16px"),rt=o.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",F.fontWeight,"600"),ht=o.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",F.letterSpacing,"0.144px"),pt=o.FtCssVariable.extend("--ft-typography-subtitle1-line-height",F.lineHeight,"24px"),at=o.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",F.textTransform,"inherit"),lt=o.FtCssVariable.extend("--ft-typography-subtitle2-font-family",V),ft=o.FtCssVariable.extend("--ft-typography-subtitle2-font-size",F.fontSize,"14px"),yt=o.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",F.fontWeight,"normal"),gt=o.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",F.letterSpacing,"0.098px"),dt=o.FtCssVariable.extend("--ft-typography-subtitle2-line-height",F.lineHeight,"24px"),ct=o.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",F.textTransform,"inherit"),ut=o.FtCssVariable.extend("--ft-typography-body1-font-family",V),vt=o.FtCssVariable.extend("--ft-typography-body1-font-size",F.fontSize,"16px"),$t=o.FtCssVariable.extend("--ft-typography-body1-font-weight",F.fontWeight,"normal"),mt=o.FtCssVariable.extend("--ft-typography-body1-letter-spacing",F.letterSpacing,"0.496px"),bt=o.FtCssVariable.extend("--ft-typography-body1-line-height",F.lineHeight,"24px"),xt=o.FtCssVariable.extend("--ft-typography-body1-text-transform",F.textTransform,"inherit"),wt=o.FtCssVariable.extend("--ft-typography-body2-font-family",V),zt=o.FtCssVariable.extend("--ft-typography-body2-font-size",F.fontSize,"14px"),At=o.FtCssVariable.extend("--ft-typography-body2-font-weight",F.fontWeight,"normal"),_t=o.FtCssVariable.extend("--ft-typography-body2-letter-spacing",F.letterSpacing,"0.252px"),Nt=o.FtCssVariable.extend("--ft-typography-body2-line-height",F.lineHeight,"20px"),St=o.FtCssVariable.extend("--ft-typography-body2-text-transform",F.textTransform,"inherit"),Tt=o.FtCssVariable.extend("--ft-typography-caption-font-family",V),It=o.FtCssVariable.extend("--ft-typography-caption-font-size",F.fontSize,"12px"),Mt=o.FtCssVariable.extend("--ft-typography-caption-font-weight",F.fontWeight,"normal"),Et=o.FtCssVariable.extend("--ft-typography-caption-letter-spacing",F.letterSpacing,"0.396px"),Ot=o.FtCssVariable.extend("--ft-typography-caption-line-height",F.lineHeight,"16px"),jt=o.FtCssVariable.extend("--ft-typography-caption-text-transform",F.textTransform,"inherit"),Ut=o.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",V),Ct=o.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",F.fontSize,"10px"),Zt=o.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",F.fontWeight,"normal"),kt=o.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",F.letterSpacing,"0.33px"),Wt=o.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",F.lineHeight,"16px"),Gt=o.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",F.textTransform,"inherit"),Dt=o.FtCssVariable.extend("--ft-typography-overline-font-family",V),Ht=o.FtCssVariable.extend("--ft-typography-overline-font-size",F.fontSize,"10px"),Kt=o.FtCssVariable.extend("--ft-typography-overline-font-weight",F.fontWeight,"normal"),Rt=o.FtCssVariable.extend("--ft-typography-overline-letter-spacing",F.letterSpacing,"1.5px"),Vt=o.FtCssVariable.extend("--ft-typography-overline-line-height",F.lineHeight,"16px"),Ft=o.FtCssVariable.extend("--ft-typography-overline-text-transform",F.textTransform,"uppercase"),Lt=o.FtCssVariable.extend("--ft-typography-button-font-family",V),Pt=o.FtCssVariable.extend("--ft-typography-button-font-size",F.fontSize,"14px"),qt=o.FtCssVariable.extend("--ft-typography-button-font-weight",F.fontWeight,"600"),Bt=o.FtCssVariable.extend("--ft-typography-button-letter-spacing",F.letterSpacing,"1.246px"),Jt=o.FtCssVariable.extend("--ft-typography-button-line-height",F.lineHeight,"16px"),Qt=o.FtCssVariable.extend("--ft-typography-button-text-transform",F.textTransform,"uppercase"),Xt=i.css`
13
+ const W=t=>({_$litStatic$:t}),G=new Map,D=(t=>(i,...e)=>{var o;const n=e.length;let s,r;const h=[],p=[];let a,l=0,f=!1;for(;l<n;){for(a=i[l];l<n&&void 0!==(r=e[l],s=null===(o=r)||void 0===o?void 0:o._$litStatic$);)a+=s+i[++l],f=!0;p.push(r),h.push(a),l++}if(l===n&&h.push(i[n]),f){const t=h.join("$$lit$$");void 0===(i=G.get(t))&&(h.raw=h,G.set(t,i=h)),e=p}return t(i,...e)})(x);var H,K=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,h=t.length-1;h>=0;h--)(n=t[h])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};!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"}(H||(H={}));const R=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),V=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),F={fontFamily:V,fontSize:i.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:i.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},L=i.FtCssVariable.extend("--ft-typography-title-font-family",R),P=i.FtCssVariable.extend("--ft-typography-title-font-size",F.fontSize,"20px"),q=i.FtCssVariable.extend("--ft-typography-title-font-weight",F.fontWeight,"normal"),B=i.FtCssVariable.extend("--ft-typography-title-letter-spacing",F.letterSpacing,"0.15px"),J=i.FtCssVariable.extend("--ft-typography-title-line-height",F.lineHeight,"24px"),Q=i.FtCssVariable.extend("--ft-typography-title-text-transform",F.textTransform,"inherit"),X=i.FtCssVariable.extend("--ft-typography-title-dense-font-family",R),Y=i.FtCssVariable.extend("--ft-typography-title-dense-font-size",F.fontSize,"14px"),tt=i.FtCssVariable.extend("--ft-typography-title-dense-font-weight",F.fontWeight,"normal"),it=i.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",F.letterSpacing,"0.105px"),et=i.FtCssVariable.extend("--ft-typography-title-dense-line-height",F.lineHeight,"24px"),ot=i.FtCssVariable.extend("--ft-typography-title-dense-text-transform",F.textTransform,"inherit"),nt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-family",V),st=i.FtCssVariable.extend("--ft-typography-subtitle1-font-size",F.fontSize,"16px"),rt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",F.fontWeight,"600"),ht=i.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",F.letterSpacing,"0.144px"),pt=i.FtCssVariable.extend("--ft-typography-subtitle1-line-height",F.lineHeight,"24px"),at=i.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",F.textTransform,"inherit"),lt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-family",V),ft=i.FtCssVariable.extend("--ft-typography-subtitle2-font-size",F.fontSize,"14px"),yt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",F.fontWeight,"normal"),gt=i.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",F.letterSpacing,"0.098px"),dt=i.FtCssVariable.extend("--ft-typography-subtitle2-line-height",F.lineHeight,"24px"),ct=i.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",F.textTransform,"inherit"),ut=i.FtCssVariable.extend("--ft-typography-body1-font-family",V),vt=i.FtCssVariable.extend("--ft-typography-body1-font-size",F.fontSize,"16px"),$t=i.FtCssVariable.extend("--ft-typography-body1-font-weight",F.fontWeight,"normal"),bt=i.FtCssVariable.extend("--ft-typography-body1-letter-spacing",F.letterSpacing,"0.496px"),mt=i.FtCssVariable.extend("--ft-typography-body1-line-height",F.lineHeight,"24px"),xt=i.FtCssVariable.extend("--ft-typography-body1-text-transform",F.textTransform,"inherit"),wt=i.FtCssVariable.extend("--ft-typography-body2-font-family",V),zt=i.FtCssVariable.extend("--ft-typography-body2-font-size",F.fontSize,"14px"),At=i.FtCssVariable.extend("--ft-typography-body2-font-weight",F.fontWeight,"normal"),_t=i.FtCssVariable.extend("--ft-typography-body2-letter-spacing",F.letterSpacing,"0.252px"),Nt=i.FtCssVariable.extend("--ft-typography-body2-line-height",F.lineHeight,"20px"),St=i.FtCssVariable.extend("--ft-typography-body2-text-transform",F.textTransform,"inherit"),Tt=i.FtCssVariable.extend("--ft-typography-caption-font-family",V),It=i.FtCssVariable.extend("--ft-typography-caption-font-size",F.fontSize,"12px"),Mt=i.FtCssVariable.extend("--ft-typography-caption-font-weight",F.fontWeight,"normal"),Et=i.FtCssVariable.extend("--ft-typography-caption-letter-spacing",F.letterSpacing,"0.396px"),Ot=i.FtCssVariable.extend("--ft-typography-caption-line-height",F.lineHeight,"16px"),jt=i.FtCssVariable.extend("--ft-typography-caption-text-transform",F.textTransform,"inherit"),Ut=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",V),Ct=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",F.fontSize,"10px"),Zt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",F.fontWeight,"normal"),kt=i.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",F.letterSpacing,"0.33px"),Wt=i.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",F.lineHeight,"16px"),Gt=i.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",F.textTransform,"inherit"),Dt=i.FtCssVariable.extend("--ft-typography-overline-font-family",V),Ht=i.FtCssVariable.extend("--ft-typography-overline-font-size",F.fontSize,"10px"),Kt=i.FtCssVariable.extend("--ft-typography-overline-font-weight",F.fontWeight,"normal"),Rt=i.FtCssVariable.extend("--ft-typography-overline-letter-spacing",F.letterSpacing,"1.5px"),Vt=i.FtCssVariable.extend("--ft-typography-overline-line-height",F.lineHeight,"16px"),Ft=i.FtCssVariable.extend("--ft-typography-overline-text-transform",F.textTransform,"uppercase"),Lt=i.FtCssVariable.extend("--ft-typography-button-font-family",V),Pt=i.FtCssVariable.extend("--ft-typography-button-font-size",F.fontSize,"14px"),qt=i.FtCssVariable.extend("--ft-typography-button-font-weight",F.fontWeight,"600"),Bt=i.FtCssVariable.extend("--ft-typography-button-letter-spacing",F.letterSpacing,"1.246px"),Jt=i.FtCssVariable.extend("--ft-typography-button-line-height",F.lineHeight,"16px"),Qt=i.FtCssVariable.extend("--ft-typography-button-text-transform",F.textTransform,"uppercase"),Xt=e.css`
14
14
  .ft-typography--title {
15
15
  font-family: ${L};
16
16
  font-size: ${P};
@@ -19,7 +19,7 @@ const W=t=>({_$litStatic$:t}),G=new Map,D=(t=>(i,...e)=>{var o;const s=e.length;
19
19
  line-height: ${J};
20
20
  text-transform: ${Q};
21
21
  }
22
- `,Yt=i.css`
22
+ `,Yt=e.css`
23
23
  .ft-typography--title-dense {
24
24
  font-family: ${X};
25
25
  font-size: ${Y};
@@ -28,16 +28,16 @@ const W=t=>({_$litStatic$:t}),G=new Map,D=(t=>(i,...e)=>{var o;const s=e.length;
28
28
  line-height: ${et};
29
29
  text-transform: ${ot};
30
30
  }
31
- `,ti=i.css`
31
+ `,ti=e.css`
32
32
  .ft-typography--subtitle1 {
33
- font-family: ${st};
34
- font-size: ${nt};
33
+ font-family: ${nt};
34
+ font-size: ${st};
35
35
  font-weight: ${rt};
36
36
  letter-spacing: ${ht};
37
37
  line-height: ${pt};
38
38
  text-transform: ${at};
39
39
  }
40
- `,ii=i.css`
40
+ `,ii=e.css`
41
41
  .ft-typography--subtitle2 {
42
42
  font-family: ${lt};
43
43
  font-size: ${ft};
@@ -47,16 +47,16 @@ const W=t=>({_$litStatic$:t}),G=new Map,D=(t=>(i,...e)=>{var o;const s=e.length;
47
47
  text-transform: ${ct};
48
48
  }
49
49
 
50
- `,ei=i.css`
50
+ `,ei=e.css`
51
51
  .ft-typography--body1 {
52
52
  font-family: ${ut};
53
53
  font-size: ${vt};
54
54
  font-weight: ${$t};
55
- letter-spacing: ${mt};
56
- line-height: ${bt};
55
+ letter-spacing: ${bt};
56
+ line-height: ${mt};
57
57
  text-transform: ${xt};
58
58
  }
59
- `,oi=i.css`
59
+ `,oi=e.css`
60
60
  .ft-typography--body2 {
61
61
  font-family: ${wt};
62
62
  font-size: ${zt};
@@ -65,7 +65,7 @@ const W=t=>({_$litStatic$:t}),G=new Map,D=(t=>(i,...e)=>{var o;const s=e.length;
65
65
  line-height: ${Nt};
66
66
  text-transform: ${St};
67
67
  }
68
- `,si=i.css`
68
+ `,ni=e.css`
69
69
  .ft-typography--caption {
70
70
  font-family: ${Tt};
71
71
  font-size: ${It};
@@ -74,7 +74,7 @@ const W=t=>({_$litStatic$:t}),G=new Map,D=(t=>(i,...e)=>{var o;const s=e.length;
74
74
  line-height: ${Ot};
75
75
  text-transform: ${jt};
76
76
  }
77
- `,ni=i.css`
77
+ `,si=e.css`
78
78
  .ft-typography--breadcrumb {
79
79
  font-family: ${Ut};
80
80
  font-size: ${Ct};
@@ -83,7 +83,7 @@ const W=t=>({_$litStatic$:t}),G=new Map,D=(t=>(i,...e)=>{var o;const s=e.length;
83
83
  line-height: ${Wt};
84
84
  text-transform: ${Gt};
85
85
  }
86
- `,ri=i.css`
86
+ `,ri=e.css`
87
87
  .ft-typography--overline {
88
88
  font-family: ${Dt};
89
89
  font-size: ${Ht};
@@ -92,7 +92,7 @@ const W=t=>({_$litStatic$:t}),G=new Map,D=(t=>(i,...e)=>{var o;const s=e.length;
92
92
  line-height: ${Vt};
93
93
  text-transform: ${Ft};
94
94
  }
95
- `,hi=i.css`
95
+ `,hi=e.css`
96
96
  .ft-typography--button {
97
97
  font-family: ${Lt};
98
98
  font-size: ${Pt};
@@ -101,50 +101,50 @@ const W=t=>({_$litStatic$:t}),G=new Map,D=(t=>(i,...e)=>{var o;const s=e.length;
101
101
  line-height: ${Jt};
102
102
  text-transform: ${Qt};
103
103
  }
104
- `;let pi=class extends o.FtLitElement{constructor(){super(...arguments),this.variant=H.body1}getStyles(){return[Xt,Yt,ti,ii,ei,oi,si,ni,ri,hi,i.css`
105
- .ft-typography {
106
- vertical-align: inherit;
107
- }
108
- `]}getTemplate(){return this.element?D`
104
+ `;class pi extends i.FtLitElement{constructor(){super(...arguments),this.variant=H.body1}render(){return this.element?D`
109
105
  <${W(this.element)}
110
106
  class="ft-typography ft-typography--${this.variant}">
111
107
  <slot></slot>
112
108
  </${W(this.element)}>
113
109
  `:D`
114
110
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
115
- `}};K([e.property()],pi.prototype,"element",void 0),K([e.property()],pi.prototype,"variant",void 0),pi=K([o.customElement("ft-typography")],pi);var ai=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,h=t.length-1;h>=0;h--)(s=t[h])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};const li={textColor:o.FtCssVariable.external(o.designSystemVariables.colorOnSurfaceHigh,"Design system"),titleColor:o.FtCssVariable.external(o.designSystemVariables.colorOnSurfaceMedium,"Design system")};t.FtTrend=class extends o.FtLitElement{constructor(){super(...arguments),this.label="Trend",this.currentValue=3,this.previousValue=2}getStyles(){return i.css`
116
- .ft-trend {
117
- text-align: center;
118
- color: ${li.textColor};
111
+ `}}pi.styles=[Xt,Yt,ti,ii,ei,oi,ni,si,ri,hi,e.css`
112
+ .ft-typography {
113
+ vertical-align: inherit;
119
114
  }
120
-
121
- .ft-trend > div {
122
- padding-top: 5px;
123
- }
124
- `}getTrendIcon(){return this.currentValue==this.previousValue?"→":this.currentValue>this.previousValue?"↗":"↘"}getTrendPercentage(){let t=(this.currentValue-this.previousValue)/this.previousValue,i=Math.round(100*t);return`${i>=0?"+":"-"}${Math.abs(i)}%`}getTemplate(){return 0==this.previousValue?i.html`
125
- <div class="ft-trend">
126
- <ft-typography variant="subtitle2">
127
- ${this.label}
128
- </ft-typography>
129
- <div>
130
- <ft-typography variant="body2">
131
- No previous value
115
+ `],K([o.property()],pi.prototype,"element",void 0),K([o.property()],pi.prototype,"variant",void 0),i.customElement("ft-typography")(pi);var ai=function(t,i,e,o){for(var n,s=arguments.length,r=s<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,h=t.length-1;h>=0;h--)(n=t[h])&&(r=(s<3?n(r):s>3?n(i,e,r):n(i,e))||r);return s>3&&r&&Object.defineProperty(i,e,r),r};const li={textColor:i.FtCssVariable.external(i.designSystemVariables.colorOnSurfaceHigh,"Design system"),titleColor:i.FtCssVariable.external(i.designSystemVariables.colorOnSurfaceMedium,"Design system")};class fi extends i.FtLitElement{constructor(){super(...arguments),this.label="Trend",this.currentValue=3,this.previousValue=2}getTrendIcon(){return this.currentValue==this.previousValue?"→":this.currentValue>this.previousValue?"↗":"↘"}getTrendPercentage(){let t=(this.currentValue-this.previousValue)/this.previousValue,i=Math.round(100*t);return`${i>=0?"+":"-"}${Math.abs(i)}%`}render(){return 0==this.previousValue?e.html`
116
+ <div class="ft-trend">
117
+ <ft-typography variant="subtitle2">
118
+ ${this.label}
132
119
  </ft-typography>
120
+ <div>
121
+ <ft-typography variant="body2">
122
+ No previous value
123
+ </ft-typography>
124
+ </div>
133
125
  </div>
134
- </div>
135
- `:i.html`
136
- <div class="ft-trend">
137
- <ft-typography variant="subtitle2">
138
- ${this.label}
139
- </ft-typography>
140
- <div>
141
- <ft-typography variant="title">
142
- ${this.currentValue.toLocaleString()}
143
- </ft-typography>
144
- <span>${this.getTrendIcon()}</span>
145
- <ft-typography variant="body2">
146
- ${this.getTrendPercentage()}
126
+ `:e.html`
127
+ <div class="ft-trend">
128
+ <ft-typography variant="subtitle2">
129
+ ${this.label}
147
130
  </ft-typography>
131
+ <div>
132
+ <ft-typography variant="title">
133
+ ${this.currentValue.toLocaleString()}
134
+ </ft-typography>
135
+ <span>${this.getTrendIcon()}</span>
136
+ <ft-typography variant="body2">
137
+ ${this.getTrendPercentage()}
138
+ </ft-typography>
139
+ </div>
148
140
  </div>
149
- </div>
150
- `}},t.FtTrend.elementDefinitions={"ft-typography":pi},ai([e.property({type:String})],t.FtTrend.prototype,"label",void 0),ai([e.property({type:Number})],t.FtTrend.prototype,"currentValue",void 0),ai([e.property({type:Number})],t.FtTrend.prototype,"previousValue",void 0),t.FtTrend=ai([o.customElement("ft-trend")],t.FtTrend),t.FtTrendCssVariables=li,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.wcUtils);
141
+ `}}fi.elementDefinitions={"ft-typography":pi},fi.styles=e.css`
142
+ .ft-trend {
143
+ text-align: center;
144
+ color: ${li.textColor};
145
+ }
146
+
147
+ .ft-trend > div {
148
+ padding-top: 5px;
149
+ }
150
+ `,ai([o.property({type:String})],fi.prototype,"label",void 0),ai([o.property({type:Number})],fi.prototype,"currentValue",void 0),ai([o.property({type:Number})],fi.prototype,"previousValue",void 0),i.customElement("ft-trend")(fi),t.FtTrend=fi,t.FtTrendCssVariables=li,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators);
@@ -1,48 +1,62 @@
1
1
  !function(t){
2
2
  /**
3
3
  * @license
4
- * Copyright 2019 Google LLC
5
- * SPDX-License-Identifier: BSD-3-Clause
4
+ * Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
5
+ * This code may only be used under the BSD style license found at
6
+ * http://polymer.github.io/LICENSE.txt
7
+ * The complete set of authors may be found at
8
+ * http://polymer.github.io/AUTHORS.txt
9
+ * The complete set of contributors may be found at
10
+ * http://polymer.github.io/CONTRIBUTORS.txt
11
+ * Code distributed by Google as part of the polymer project is also
12
+ * subject to an additional IP rights grant found at
13
+ * http://polymer.github.io/PATENTS.txt
14
+ *
15
+ * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
6
16
  */
7
- const e=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),o=new Map;class n{constructor(t,e){if(this._$cssResult$=!0,e!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=o.get(this.cssText);return e&&void 0===t&&(o.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const r=t=>new n("string"==typeof t?t:t+"",i),s=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new n(o,i)},a=(t,i)=>{e?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((e=>{const i=document.createElement("style"),o=window.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},l=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return r(e)})(t):t
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(s.set(n,h),h.standInClass=c);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)r.delete(t),d(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,n=o._getDefinition(e);return n?d(i,n):r.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,n),i.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},u=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):u(i)},d=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){u(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const v=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),g.pop(),t}};v(ShadowRoot,"createElement",document),v(ShadowRoot,"importNode",document),v(Element,"insertAdjacentHTML");const m=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){g.push(this),i.set.call(this,t),g.pop()}})};if(m(Element,"innerHTML"),m(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==n.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(t){const e=window.customElements.define;window.customElements.define=(t,i,o)=>{try{e.bind(window.customElements)(t,i,o)}catch(e){console.warn(t,i,o,e)}}}
8
18
  /**
9
19
  * @license
10
20
  * Copyright 2017 Google LLC
11
21
  * SPDX-License-Identifier: BSD-3-Clause
12
- */;var h;const c=window.trustedTypes,p=c?c.emptyScript:"",f=window.reactiveElementPolyfillSupport,u={toAttribute(t,e){switch(e){case Boolean:t=t?p:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},d=(t,e)=>e!==t&&(e==e||t==t),y={attribute:!0,type:String,converter:u,reflect:!1,hasChanged:d};class g extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Eh(i,e);void 0!==o&&(this._$Eu.set(o,i),t.push(o))})),t}static createProperty(t,e=y){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||y}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static _$Eh(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return a(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ES(t,e,i=y){var o,n;const r=this.constructor._$Eh(t,i);if(void 0!==r&&!0===i.reflect){const s=(null!==(n=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:u.toAttribute)(e,i.type);this._$Ei=t,null==s?this.removeAttribute(r):this.setAttribute(r,s),this._$Ei=null}}_$AK(t,e){var i,o,n;const r=this.constructor,s=r._$Eu.get(t);if(void 0!==s&&this._$Ei!==s){const t=r.getPropertyOptions(s),a=t.converter,l=null!==(n=null!==(o=null===(i=a)||void 0===i?void 0:i.fromAttribute)&&void 0!==o?o:"function"==typeof a?a:null)&&void 0!==n?n:u.fromAttribute;this._$Ei=s,this[s]=l(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||d)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Ei!==t&&(void 0===this._$E_&&(this._$E_=new Map),this._$E_.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$Ep=this._$EC())}async _$EC(){this.isUpdatePending=!0;try{await this._$Ep}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,e)=>this[e]=t)),this._$Et=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$E_&&(this._$E_.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$E_=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
22
+ */const e=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function i(t){return(i,o)=>void 0!==o?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,i,o):e(t,i)
13
23
  /**
14
24
  * @license
15
- * Copyright 2017 Google LLC
25
+ * Copyright 2021 Google LLC
16
26
  * SPDX-License-Identifier: BSD-3-Clause
17
- */
18
- var v;g.finalized=!0,g.elementProperties=new Map,g.elementStyles=[],g.shadowRootOptions={mode:"open"},null==f||f({ReactiveElement:g}),(null!==(h=globalThis.reactiveElementVersions)&&void 0!==h?h:globalThis.reactiveElementVersions=[]).push("1.2.2");const b=globalThis.trustedTypes,m=b?b.createPolicy("lit-html",{createHTML:t=>t}):void 0,x=`lit$${(Math.random()+"").slice(9)}$`,w="?"+x,O=`<${w}>`,$=document,S=(t="")=>$.createComment(t),N=t=>null===t||"object"!=typeof t&&"function"!=typeof t,R=Array.isArray,E=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,C=/-->/g,M=/>/g,U=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,F=/'/g,j=/"/g,T=/^(?:script|style|textarea|title)$/i,k=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),L=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),P=new WeakMap,z=$.createTreeWalker($,129,null,!1),B=(t,e)=>{const i=t.length-1,o=[];let n,r=2===e?"<svg>":"",s=E;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(s.lastIndex=c,l=s.exec(i),null!==l);)c=s.lastIndex,s===E?"!--"===l[1]?s=C:void 0!==l[1]?s=M:void 0!==l[2]?(T.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=U):void 0!==l[3]&&(s=U):s===U?">"===l[0]?(s=null!=n?n:E,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?U:'"'===l[3]?j:F):s===j||s===F?s=U:s===C||s===M?s=E:(s=U,n=void 0);const p=s===U&&t[e+1].startsWith("/>")?" ":"";r+=s===E?i+O:h>=0?(o.push(a),i.slice(0,h)+"$lit$"+i.slice(h)+x+p):i+x+(-2===h?(o.push(void 0),e):p)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==m?m.createHTML(a):a,o]};class _{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,h]=B(t,e);if(this.el=_.createElement(l,i),z.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=z.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(x)){const i=h[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(x),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?I:"?"===e[1]?Z:"@"===e[1]?J:K})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(T.test(o.tagName)){const t=o.textContent.split(x),e=t.length-1;if(e>0){o.textContent=b?b.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],S()),z.nextNode(),a.push({type:2,index:++n});o.append(t[e],S())}}}else if(8===o.nodeType)if(o.data===w)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(x,t+1));)a.push({type:7,index:n}),t+=x.length-1}n++}}static createElement(t,e){const i=$.createElement("template");return i.innerHTML=t,i}}function W(t,e,i=t,o){var n,r,s,a;if(e===L)return e;let l=void 0!==o?null===(n=i._$Cl)||void 0===n?void 0:n[o]:i._$Cu;const h=N(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,o)),void 0!==o?(null!==(s=(a=i)._$Cl)&&void 0!==s?s:a._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=W(t,l._$AS(t,e.values),l,o)),e}class D{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:$).importNode(i,!0);z.currentNode=n;let r=z.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new H(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new X(r,this,t)),this.v.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=z.nextNode(),s++)}return n}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class H{constructor(t,e,i,o){var n;this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=W(this,t,e),N(t)?t===A||null==t||""===t?(this._$AH!==A&&this._$AR(),this._$AH=A):t!==this._$AH&&t!==L&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return R(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==A&&N(this._$AH)?this._$AA.nextSibling.data=t:this.S($.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=_.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.m(i);else{const t=new D(n,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=P.get(t.strings);return void 0===e&&P.set(t.strings,e=new _(t)),e}A(t){R(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new H(this.M(S()),this.M(S()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class K{constructor(t,e,i,o,n){this.type=1,this._$AH=A,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=A}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let r=!1;if(void 0===n)t=W(this,t,e,0),r=!N(t)||t!==this._$AH&&t!==L,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=W(this,o[i+s],e,s),a===L&&(a=this._$AH[s]),r||(r=!N(a)||a!==this._$AH[s]),a===A?t=A:t!==A&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.k(t)}k(t){t===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class I extends K{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===A?void 0:t}}const V=b?b.emptyScript:"";class Z extends K{constructor(){super(...arguments),this.type=4}k(t){t&&t!==A?this.element.setAttribute(this.name,V):this.element.removeAttribute(this.name)}}class J extends K{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=W(this,t,e,0))&&void 0!==i?i:A)===L)return;const o=this._$AH,n=t===A&&o!==A||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==A&&(o===A||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class X{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){W(this,t)}}const q=window.litHtmlPolyfillSupport;
27
+ */}var o;null===(o=window.HTMLSlotElement)||void 0===o||o.prototype.assignedElements;const n=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)}
28
+ /**
29
+ * @license
30
+ * Copyright 2019 Google LLC
31
+ * SPDX-License-Identifier: BSD-3-Clause
32
+ */,r=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),a=new Map;class l{constructor(t,e){if(this._$cssResult$=!0,e!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=a.get(this.cssText);return r&&void 0===t&&(a.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const h=t=>new l("string"==typeof t?t:t+"",s),c=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new l(i,s)},p=(t,e)=>{r?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=window.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},f=r?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return h(e)})(t):t
19
33
  /**
20
34
  * @license
21
35
  * Copyright 2017 Google LLC
22
36
  * SPDX-License-Identifier: BSD-3-Clause
23
- */
24
- var G,Q;null==q||q(_,H),(null!==(v=globalThis.litHtmlVersions)&&void 0!==v?v:globalThis.litHtmlVersions=[]).push("2.1.3");class Y extends g{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,e,i)=>{var o,n;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new H(e.insertBefore(S(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return L}}Y.finalized=!0,Y._$litElement$=!0,null===(G=globalThis.litElementHydrateSupport)||void 0===G||G.call(globalThis,{LitElement:Y});const tt=globalThis.litElementPolyfillSupport;null==tt||tt({LitElement:Y}),(null!==(Q=globalThis.litElementVersions)&&void 0!==Q?Q:globalThis.litElementVersions=[]).push("3.1.2");
37
+ */;var u;const d=window.trustedTypes,y=d?d.emptyScript:"",g=window.reactiveElementPolyfillSupport,v={toAttribute(t,e){switch(e){case Boolean:t=t?y:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},m=(t,e)=>e!==t&&(e==e||t==t),b={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:m};class x extends HTMLElement{constructor(){super(),this._$Et=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Ei=null,this.o()}static addInitializer(t){var e;null!==(e=this.l)&&void 0!==e||(this.l=[]),this.l.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Eh(i,e);void 0!==o&&(this._$Eu.set(o,i),t.push(o))})),t}static createProperty(t,e=b){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||b}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(f(t))}else void 0!==t&&e.push(f(t));return e}static _$Eh(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return p(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ES(t,e,i=b){var o,n;const r=this.constructor._$Eh(t,i);if(void 0!==r&&!0===i.reflect){const s=(null!==(n=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:v.toAttribute)(e,i.type);this._$Ei=t,null==s?this.removeAttribute(r):this.setAttribute(r,s),this._$Ei=null}}_$AK(t,e){var i,o,n;const r=this.constructor,s=r._$Eu.get(t);if(void 0!==s&&this._$Ei!==s){const t=r.getPropertyOptions(s),a=t.converter,l=null!==(n=null!==(o=null===(i=a)||void 0===i?void 0:i.fromAttribute)&&void 0!==o?o:"function"==typeof a?a:null)&&void 0!==n?n:v.fromAttribute;this._$Ei=s,this[s]=l(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||m)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Ei!==t&&(void 0===this._$E_&&(this._$E_=new Map),this._$E_.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$Ep=this._$EC())}async _$EC(){this.isUpdatePending=!0;try{await this._$Ep}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Et&&(this._$Et.forEach(((t,e)=>this[e]=t)),this._$Et=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$EU()}catch(t){throw e=!1,this._$EU(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$Eg)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Ep}shouldUpdate(t){return!0}update(t){void 0!==this._$E_&&(this._$E_.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$E_=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
25
38
  /**
26
39
  * @license
27
40
  * Copyright 2017 Google LLC
28
41
  * SPDX-License-Identifier: BSD-3-Clause
29
42
  */
30
- const et=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(i){i.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(i){i.createProperty(e.key,t)}};function it(t){return(e,i)=>void 0!==i?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,i):et(t,e)
43
+ var w;x.finalized=!0,x.elementProperties=new Map,x.elementStyles=[],x.shadowRootOptions={mode:"open"},null==g||g({ReactiveElement:x}),(null!==(u=globalThis.reactiveElementVersions)&&void 0!==u?u:globalThis.reactiveElementVersions=[]).push("1.2.2");const O=globalThis.trustedTypes,$=O?O.createPolicy("lit-html",{createHTML:t=>t}):void 0,S=`lit$${(Math.random()+"").slice(9)}$`,N="?"+S,C=`<${N}>`,R=document,E=(t="")=>R.createComment(t),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,U=Array.isArray,F=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,k=/-->/g,L=/>/g,T=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,A=/'/g,P=/"/g,z=/^(?:script|style|textarea|title)$/i,B=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),_=Symbol.for("lit-noChange"),D=Symbol.for("lit-nothing"),j=new WeakMap,W=R.createTreeWalker(R,129,null,!1),H=(t,e)=>{const i=t.length-1,o=[];let n,r=2===e?"<svg>":"",s=F;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(s.lastIndex=c,l=s.exec(i),null!==l);)c=s.lastIndex,s===F?"!--"===l[1]?s=k:void 0!==l[1]?s=L:void 0!==l[2]?(z.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=T):void 0!==l[3]&&(s=T):s===T?">"===l[0]?(s=null!=n?n:F,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?T:'"'===l[3]?P:A):s===P||s===A?s=T:s===k||s===L?s=F:(s=T,n=void 0);const p=s===T&&t[e+1].startsWith("/>")?" ":"";r+=s===F?i+C:h>=0?(o.push(a),i.slice(0,h)+"$lit$"+i.slice(h)+S+p):i+S+(-2===h?(o.push(void 0),e):p)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==$?$.createHTML(a):a,o]};class K{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,h]=H(t,e);if(this.el=K.createElement(l,i),W.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=W.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(S)){const i=h[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(S),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?X:"?"===e[1]?G:"@"===e[1]?Q:J})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(z.test(o.tagName)){const t=o.textContent.split(S),e=t.length-1;if(e>0){o.textContent=O?O.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],E()),W.nextNode(),a.push({type:2,index:++n});o.append(t[e],E())}}}else if(8===o.nodeType)if(o.data===N)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(S,t+1));)a.push({type:7,index:n}),t+=S.length-1}n++}}static createElement(t,e){const i=R.createElement("template");return i.innerHTML=t,i}}function I(t,e,i=t,o){var n,r,s,a;if(e===_)return e;let l=void 0!==o?null===(n=i._$Cl)||void 0===n?void 0:n[o]:i._$Cu;const h=M(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,o)),void 0!==o?(null!==(s=(a=i)._$Cl)&&void 0!==s?s:a._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=I(t,l._$AS(t,e.values),l,o)),e}class V{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:R).importNode(i,!0);W.currentNode=n;let r=W.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new Z(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new Y(r,this,t)),this.v.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=W.nextNode(),s++)}return n}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Z{constructor(t,e,i,o){var n;this.type=2,this._$AH=D,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cg}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=I(this,t,e),M(t)?t===D||null==t||""===t?(this._$AH!==D&&this._$AR(),this._$AH=D):t!==this._$AH&&t!==_&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return U(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==D&&M(this._$AH)?this._$AA.nextSibling.data=t:this.S(R.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=K.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.m(i);else{const t=new V(n,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=j.get(t.strings);return void 0===e&&j.set(t.strings,e=new K(t)),e}A(t){U(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new Z(this.M(E()),this.M(E()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class J{constructor(t,e,i,o,n){this.type=1,this._$AH=D,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=D}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let r=!1;if(void 0===n)t=I(this,t,e,0),r=!M(t)||t!==this._$AH&&t!==_,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=I(this,o[i+s],e,s),a===_&&(a=this._$AH[s]),r||(r=!M(a)||a!==this._$AH[s]),a===D?t=D:t!==D&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.k(t)}k(t){t===D?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class X extends J{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===D?void 0:t}}const q=O?O.emptyScript:"";class G extends J{constructor(){super(...arguments),this.type=4}k(t){t&&t!==D?this.element.setAttribute(this.name,q):this.element.removeAttribute(this.name)}}class Q extends J{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=I(this,t,e,0))&&void 0!==i?i:D)===_)return;const o=this._$AH,n=t===D&&o!==D||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==D&&(o===D||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class Y{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){I(this,t)}}const tt=window.litHtmlPolyfillSupport;
31
44
  /**
32
45
  * @license
33
- * Copyright 2021 Google LLC
46
+ * Copyright 2017 Google LLC
34
47
  * SPDX-License-Identifier: BSD-3-Clause
35
- */}var ot;null===(ot=window.HTMLSlotElement)||void 0===ot||ot.prototype.assignedElements,function(){function t(t){var e=0;return function(){return e<t.length?{done:!1,value:t[e++]}:{done:!0}}}function e(e){var i="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];return i?i.call(e):{next:t(e)}}function i(t){if(!(t instanceof Array)){t=e(t);for(var i,o=[];!(i=t.next()).done;)o.push(i.value);t=o}return t}var o="function"==typeof Object.create?Object.create:function(t){function e(){}return e.prototype=t,new e};var n,r=function(t){t=["object"==typeof globalThis&&globalThis,t,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var e=0;e<t.length;++e){var i=t[e];if(i&&i.Math==Math)return i}throw Error("Cannot find global object")}(this),s=function(){if("undefined"!=typeof Reflect&&Reflect.construct){if(function(){function t(){}return Reflect.construct(t,[],(function(){})),new t instanceof t}())return Reflect.construct;var t=Reflect.construct;return function(e,i,o){return e=t(e,i),o&&Reflect.setPrototypeOf(e,o.prototype),e}}return function(t,e,i){return void 0===i&&(i=t),i=o(i.prototype||Object.prototype),Function.prototype.apply.call(t,i,e)||i}}();if("function"==typeof Object.setPrototypeOf)n=Object.setPrototypeOf;else{var a;t:{var l={};try{l.__proto__={a:!0},a=l.a;break t}catch(t){}a=!1}n=a?function(t,e){if(t.__proto__=e,t.__proto__!==e)throw new TypeError(t+" is not extensible");return t}:null}var h=n;if(!ShadowRoot.prototype.createElement){var c,p=window.HTMLElement,f=window.customElements.define,u=window.customElements.get,d=window.customElements,y=new WeakMap,g=new WeakMap,v=new WeakMap,b=new WeakMap;window.CustomElementRegistry=function(){this.l=new Map,this.o=new Map,this.i=new Map,this.h=new Map},window.CustomElementRegistry.prototype.define=function(t,i){if(t=t.toLowerCase(),void 0!==this.j(t))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': the name \""+t+'" has already been used with this registry');if(void 0!==this.o.get(i))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");var o=i.prototype.attributeChangedCallback,n=new Set(i.observedAttributes||[]);if(x(i,n,o),o={g:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:o,formAssociated:i.formAssociated,formAssociatedCallback:i.prototype.formAssociatedCallback,formDisabledCallback:i.prototype.formDisabledCallback,formResetCallback:i.prototype.formResetCallback,formStateRestoreCallback:i.prototype.formStateRestoreCallback,observedAttributes:n},this.l.set(t,o),this.o.set(i,o),(n=u.call(d,t))||(n=m(t),f.call(d,t,n)),this===window.customElements&&(v.set(i,o),o.s=n),n=this.h.get(t)){this.h.delete(t);for(var r=(n=e(n)).next();!r.done;r=n.next())r=r.value,g.delete(r),O(r,o,!0)}return void 0!==(o=this.i.get(t))&&(o.resolve(i),this.i.delete(t)),i},window.CustomElementRegistry.prototype.upgrade=function(){S.push(this),d.upgrade.apply(d,arguments),S.pop()},window.CustomElementRegistry.prototype.get=function(t){var e;return null==(e=this.l.get(t))?void 0:e.g},window.CustomElementRegistry.prototype.j=function(t){return this.l.get(t)},window.CustomElementRegistry.prototype.whenDefined=function(t){var e=this.j(t);if(void 0!==e)return Promise.resolve(e.g);var i=this.i.get(t);return void 0===i&&((i={}).promise=new Promise((function(t){return i.resolve=t})),this.i.set(t,i)),i.promise},window.CustomElementRegistry.prototype.m=function(t,e,i){var o=this.h.get(e);o||this.h.set(e,o=new Set),i?o.add(t):o.delete(t)},window.HTMLElement=function(){var t=c;if(t)return c=void 0,t;var e=v.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return t=Reflect.construct(p,[],e.s),Object.setPrototypeOf(t,this.constructor.prototype),y.set(t,e),t},window.HTMLElement.prototype=p.prototype;var m=function(t){function e(){var e=Reflect.construct(p,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);t:{var i=e.getRootNode();if(!(i===document||i instanceof ShadowRoot)){if((i=S[S.length-1])instanceof CustomElementRegistry){var o=i;break t}(i=i.getRootNode())===document||i instanceof ShadowRoot||(i=(null==(o=b.get(i))?void 0:o.getRootNode())||document)}o=i.customElements}return(i=(o=o||window.customElements).j(t))?O(e,i):g.set(e,o),e}return r.Object.defineProperty(e,"formAssociated",{configurable:!0,enumerable:!0,get:function(){return!0}}),e.prototype.connectedCallback=function(){var e=y.get(this);e?e.connectedCallback&&e.connectedCallback.apply(this,arguments):g.get(this).m(this,t,!0)},e.prototype.disconnectedCallback=function(){var e=y.get(this);e?e.disconnectedCallback&&e.disconnectedCallback.apply(this,arguments):g.get(this).m(this,t,!1)},e.prototype.adoptedCallback=function(){var t,e;null==(t=y.get(this))||null==(e=t.adoptedCallback)||e.apply(this,arguments)},e.prototype.formAssociatedCallback=function(){var t,e=y.get(this);e&&e.formAssociated&&(null==e||null==(t=e.formAssociatedCallback)||t.apply(this,arguments))},e.prototype.formDisabledCallback=function(){var t,e=y.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formDisabledCallback)||t.apply(this,arguments))},e.prototype.formResetCallback=function(){var t,e=y.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formResetCallback)||t.apply(this,arguments))},e.prototype.formStateRestoreCallback=function(){var t,e=y.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formStateRestoreCallback)||t.apply(this,arguments))},e},x=function(t,e,i){if(0!==e.size&&void 0!==i){var o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){if(t=t.toLowerCase(),e.has(t)){var r=this.getAttribute(t);o.call(this,t,n),i.call(this,t,r,n)}else o.call(this,t,n)});var n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){if(t=t.toLowerCase(),e.has(t)){var o=this.getAttribute(t);n.call(this,t),i.call(this,t,o,null)}else n.call(this,t)})}},w=function(t){var e=Object.getPrototypeOf(t);if(e!==window.HTMLElement)return e===p?Object.setPrototypeOf(t,window.HTMLElement):w(e)},O=function(t,e,i){i=void 0!==i&&i,Object.setPrototypeOf(t,e.g.prototype),y.set(t,e),c=t;try{new e.g}catch(t){w(e.g),new e.g}e.observedAttributes.forEach((function(i){t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},$=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){var e=$.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};var S=[document],N=function(t,e,i){var o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){S.push(this);var t=o.apply(i||this,arguments);return void 0!==t&&b.set(t,this),S.pop(),t}};N(ShadowRoot,"createElement",document),N(ShadowRoot,"importNode",document),N(Element,"insertAdjacentHTML");var R=function(t){var e=Object.getOwnPropertyDescriptor(t.prototype,"innerHTML");Object.defineProperty(t.prototype,"innerHTML",Object.assign({},e,{set:function(t){S.push(this),e.set.call(this,t),S.pop()}}))};if(R(Element),R(ShadowRoot),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){var E=new WeakMap,C=HTMLElement.prototype.attachInternals;HTMLElement.prototype.attachInternals=function(t){for(var e=[],o=0;o<arguments.length;++o)e[o]=arguments[o];return e=C.call.apply(C,[this].concat(i(e))),E.set(e,this),e},["setFormValue","setValidity","checkValidity","reportValidity"].forEach((function(t){var e=window.ElementInternals.prototype,o=e[t];e[t]=function(t){for(var e=[],n=0;n<arguments.length;++n)e[n]=arguments[n];if(n=E.get(this),!0!==y.get(n).formAssociated)throw new DOMException("Failed to execute "+o+" on 'ElementInternals': The target element is not a form-associated custom element.");null==o||o.call.apply(o,[this].concat(i(e)))}}));var M=function(t){var e=s(Array,[].concat(i(t)),this.constructor);return e.h=t,e},U=M,F=Array;if(U.prototype=o(F.prototype),U.prototype.constructor=U,h)h(U,F);else for(var j in F)if("prototype"!=j)if(Object.defineProperties){var T=Object.getOwnPropertyDescriptor(F,j);T&&Object.defineProperty(U,j,T)}else U[j]=F[j];U.u=F.prototype,r.Object.defineProperty(M.prototype,"value",{configurable:!0,enumerable:!0,get:function(){var t;return(null==(t=this.h.find((function(t){return!0===t.checked})))?void 0:t.value)||""}});var k=function(t){var e=this,i=new Map;t.forEach((function(t,o){var n=t.getAttribute("name"),r=i.get(n)||[];e[+o]=t,r.push(t),i.set(n,r)})),this.length=t.length,i.forEach((function(t,i){t&&(e[i]=1===t.length?t[0]:new M(t))}))};k.prototype.namedItem=function(t){return this[t]};var L=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){for(var t=L.get.call(this,[]),i=[],o=(t=e(t)).next();!o.done;o=t.next()){o=o.value;var n=y.get(o);n&&!0!==n.formAssociated||i.push(o)}return new k(i)}})}}}.call("object"==typeof globalThis?globalThis:window);try{window.customElements.define("custom-element",null)}catch(t){const e=window.customElements.define;window.customElements.define=(t,i,o)=>{try{e.bind(window.customElements)(t,i,o)}catch(e){console.warn(t,i,o,e)}}}const nt=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};class rt{constructor(t,e,i,o,n){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=o,this.context=n,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,e,i){return new rt(t,e,void 0,i)}static extend(t,e,i){return new rt(t,e.category,e,i)}static external(t,e){return new rt(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return s`var(${r(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):r(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,e;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(e=this.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}const st={colorPrimary:rt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:rt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:rt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:rt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:rt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:rt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:rt.create("--ft-color-error","COLOR","#B00020"),colorOutline:rt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:rt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:rt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:rt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:rt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:rt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:rt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:rt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:rt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:rt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:rt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:rt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:rt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:rt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:rt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:rt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:rt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:rt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:rt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:rt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:rt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:rt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:rt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:rt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:rt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:rt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:rt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:rt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:rt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:rt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:rt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:rt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:rt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:rt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:rt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:rt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:rt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:rt.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:rt.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:rt.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:rt.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:rt.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:rt.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:rt.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:rt.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:rt.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:rt.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:rt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:rt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:rt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:rt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:rt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:rt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:rt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:rt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
48
+ */
49
+ var et,it;null==tt||tt(K,Z),(null!==(w=globalThis.litHtmlVersions)&&void 0!==w?w:globalThis.litHtmlVersions=[]).push("2.1.3");class ot extends x{constructor(){super(...arguments),this.renderOptions={host:this},this._$Dt=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Dt=((t,e,i)=>{var o,n;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new Z(e.insertBefore(E(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return _}}ot.finalized=!0,ot._$litElement$=!0,null===(et=globalThis.litElementHydrateSupport)||void 0===et||et.call(globalThis,{LitElement:ot});const nt=globalThis.litElementPolyfillSupport;null==nt||nt({LitElement:ot}),(null!==(it=globalThis.litElementVersions)&&void 0!==it?it:globalThis.litElementVersions=[]).push("3.1.2");class rt{constructor(t,e,i,o,n){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=o,this.context=n,this._$cssResult$=!0,this.value=this.get()}get cssText(){return this.value.cssText}get styleSheet(){return this.value.styleSheet}toString(){return this.value.toString()}static create(t,e,i){return new rt(t,e,void 0,i)}static extend(t,e,i){return new rt(t,e.category,e,i)}static external(t,e){return new rt(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return c`var(${h(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):h(null!=t?t:this.defaultValue)}lastResortDefaultValue(){var t,e;return null!==(t=this.defaultValue)&&void 0!==t?t:null===(e=this.fallbackVariable)||void 0===e?void 0:e.lastResortDefaultValue()}breadcrumb(){return this.fallbackVariable?[this.fallbackVariable.name,...this.fallbackVariable.breadcrumb()]:[]}}const st={colorPrimary:rt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:rt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:rt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:rt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:rt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:rt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:rt.create("--ft-color-error","COLOR","#B00020"),colorOutline:rt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:rt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:rt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:rt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:rt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:rt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:rt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:rt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:rt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:rt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:rt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:rt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:rt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:rt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:rt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:rt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:rt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:rt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:rt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:rt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:rt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:rt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:rt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:rt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:rt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:rt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:rt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:rt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:rt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:rt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:rt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:rt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:rt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:rt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:rt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:rt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:rt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:rt.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:rt.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:rt.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:rt.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:rt.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:rt.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:rt.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:rt.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:rt.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:rt.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:rt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:rt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:rt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:rt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:rt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:rt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:rt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:rt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
36
50
  /**
37
51
  * @license
38
52
  * Copyright 2021 Google LLC
39
53
  * SPDX-License-Identifier: BSD-3-Clause
40
- */class at extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return a(n,this.constructor.elementStyles),n}}}(Y)){constructor(){super(),this.constructorName=this.constructor.name,this.proto=this.constructor.prototype}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),k`
41
- ${t.map((t=>k`
54
+ */class at extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return p(n,this.constructor.elementStyles),n}}}(ot)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),B`
55
+ ${t.map((t=>B`
42
56
  <style>${t}</style>
43
57
  `))}
44
58
  ${this.getTemplate()}
45
- `}adoptedCallback(){Object.getPrototypeOf(this)!==this.constructorName&&Object.setPrototypeOf(this,this.proto)}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}var lt,ht;s`
59
+ `}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}var lt,ht;c`
46
60
  .ft-no-text-select {
47
61
  -webkit-touch-callout: none;
48
62
  -webkit-user-select: none;
@@ -57,53 +71,53 @@ const et=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e
57
71
  * Copyright 2020 Google LLC
58
72
  * SPDX-License-Identifier: BSD-3-Clause
59
73
  */
60
- const ct=t=>({_$litStatic$:t}),pt=new Map,ft=(t=>(e,...i)=>{var o;const n=i.length;let r,s;const a=[],l=[];let h,c=0,p=!1;for(;c<n;){for(h=e[c];c<n&&void 0!==(s=i[c],r=null===(o=s)||void 0===o?void 0:o._$litStatic$);)h+=r+e[++c],p=!0;l.push(s),a.push(h),c++}if(c===n&&a.push(e[n]),p){const t=a.join("$$lit$$");void 0===(e=pt.get(t))&&(a.raw=a,pt.set(t,e=a)),i=l}return t(e,...i)})(k);var ut,dt=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};!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"}(ut||(ut={}));const yt=rt.extend("--ft-typography-font-family",st.titleFont),gt=rt.extend("--ft-typography-font-family",st.contentFont),vt={fontFamily:gt,fontSize:rt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:rt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:rt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:rt.create("--ft-typography-line-height","SIZE","24px"),textTransform:rt.create("--ft-typography-text-transform","UNKNOWN","inherit")},bt=rt.extend("--ft-typography-title-font-family",yt),mt=rt.extend("--ft-typography-title-font-size",vt.fontSize,"20px"),xt=rt.extend("--ft-typography-title-font-weight",vt.fontWeight,"normal"),wt=rt.extend("--ft-typography-title-letter-spacing",vt.letterSpacing,"0.15px"),Ot=rt.extend("--ft-typography-title-line-height",vt.lineHeight,"24px"),$t=rt.extend("--ft-typography-title-text-transform",vt.textTransform,"inherit"),St=rt.extend("--ft-typography-title-dense-font-family",yt),Nt=rt.extend("--ft-typography-title-dense-font-size",vt.fontSize,"14px"),Rt=rt.extend("--ft-typography-title-dense-font-weight",vt.fontWeight,"normal"),Et=rt.extend("--ft-typography-title-dense-letter-spacing",vt.letterSpacing,"0.105px"),Ct=rt.extend("--ft-typography-title-dense-line-height",vt.lineHeight,"24px"),Mt=rt.extend("--ft-typography-title-dense-text-transform",vt.textTransform,"inherit"),Ut=rt.extend("--ft-typography-subtitle1-font-family",gt),Ft=rt.extend("--ft-typography-subtitle1-font-size",vt.fontSize,"16px"),jt=rt.extend("--ft-typography-subtitle1-font-weight",vt.fontWeight,"600"),Tt=rt.extend("--ft-typography-subtitle1-letter-spacing",vt.letterSpacing,"0.144px"),kt=rt.extend("--ft-typography-subtitle1-line-height",vt.lineHeight,"24px"),Lt=rt.extend("--ft-typography-subtitle1-text-transform",vt.textTransform,"inherit"),At=rt.extend("--ft-typography-subtitle2-font-family",gt),Pt=rt.extend("--ft-typography-subtitle2-font-size",vt.fontSize,"14px"),zt=rt.extend("--ft-typography-subtitle2-font-weight",vt.fontWeight,"normal"),Bt=rt.extend("--ft-typography-subtitle2-letter-spacing",vt.letterSpacing,"0.098px"),_t=rt.extend("--ft-typography-subtitle2-line-height",vt.lineHeight,"24px"),Wt=rt.extend("--ft-typography-subtitle2-text-transform",vt.textTransform,"inherit"),Dt=rt.extend("--ft-typography-body1-font-family",gt),Ht=rt.extend("--ft-typography-body1-font-size",vt.fontSize,"16px"),Kt=rt.extend("--ft-typography-body1-font-weight",vt.fontWeight,"normal"),It=rt.extend("--ft-typography-body1-letter-spacing",vt.letterSpacing,"0.496px"),Vt=rt.extend("--ft-typography-body1-line-height",vt.lineHeight,"24px"),Zt=rt.extend("--ft-typography-body1-text-transform",vt.textTransform,"inherit"),Jt=rt.extend("--ft-typography-body2-font-family",gt),Xt=rt.extend("--ft-typography-body2-font-size",vt.fontSize,"14px"),qt=rt.extend("--ft-typography-body2-font-weight",vt.fontWeight,"normal"),Gt=rt.extend("--ft-typography-body2-letter-spacing",vt.letterSpacing,"0.252px"),Qt=rt.extend("--ft-typography-body2-line-height",vt.lineHeight,"20px"),Yt=rt.extend("--ft-typography-body2-text-transform",vt.textTransform,"inherit"),te=rt.extend("--ft-typography-caption-font-family",gt),ee=rt.extend("--ft-typography-caption-font-size",vt.fontSize,"12px"),ie=rt.extend("--ft-typography-caption-font-weight",vt.fontWeight,"normal"),oe=rt.extend("--ft-typography-caption-letter-spacing",vt.letterSpacing,"0.396px"),ne=rt.extend("--ft-typography-caption-line-height",vt.lineHeight,"16px"),re=rt.extend("--ft-typography-caption-text-transform",vt.textTransform,"inherit"),se=rt.extend("--ft-typography-breadcrumb-font-family",gt),ae=rt.extend("--ft-typography-breadcrumb-font-size",vt.fontSize,"10px"),le=rt.extend("--ft-typography-breadcrumb-font-weight",vt.fontWeight,"normal"),he=rt.extend("--ft-typography-breadcrumb-letter-spacing",vt.letterSpacing,"0.33px"),ce=rt.extend("--ft-typography-breadcrumb-line-height",vt.lineHeight,"16px"),pe=rt.extend("--ft-typography-breadcrumb-text-transform",vt.textTransform,"inherit"),fe=rt.extend("--ft-typography-overline-font-family",gt),ue=rt.extend("--ft-typography-overline-font-size",vt.fontSize,"10px"),de=rt.extend("--ft-typography-overline-font-weight",vt.fontWeight,"normal"),ye=rt.extend("--ft-typography-overline-letter-spacing",vt.letterSpacing,"1.5px"),ge=rt.extend("--ft-typography-overline-line-height",vt.lineHeight,"16px"),ve=rt.extend("--ft-typography-overline-text-transform",vt.textTransform,"uppercase"),be=rt.extend("--ft-typography-button-font-family",gt),me=rt.extend("--ft-typography-button-font-size",vt.fontSize,"14px"),xe=rt.extend("--ft-typography-button-font-weight",vt.fontWeight,"600"),we=rt.extend("--ft-typography-button-letter-spacing",vt.letterSpacing,"1.246px"),Oe=rt.extend("--ft-typography-button-line-height",vt.lineHeight,"16px"),$e=rt.extend("--ft-typography-button-text-transform",vt.textTransform,"uppercase"),Se=s`
74
+ const ct=t=>({_$litStatic$:t}),pt=new Map,ft=(t=>(e,...i)=>{var o;const n=i.length;let r,s;const a=[],l=[];let h,c=0,p=!1;for(;c<n;){for(h=e[c];c<n&&void 0!==(s=i[c],r=null===(o=s)||void 0===o?void 0:o._$litStatic$);)h+=r+e[++c],p=!0;l.push(s),a.push(h),c++}if(c===n&&a.push(e[n]),p){const t=a.join("$$lit$$");void 0===(e=pt.get(t))&&(a.raw=a,pt.set(t,e=a)),i=l}return t(e,...i)})(B);var ut,dt=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};!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"}(ut||(ut={}));const yt=rt.extend("--ft-typography-font-family",st.titleFont),gt=rt.extend("--ft-typography-font-family",st.contentFont),vt={fontFamily:gt,fontSize:rt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:rt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:rt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:rt.create("--ft-typography-line-height","SIZE","24px"),textTransform:rt.create("--ft-typography-text-transform","UNKNOWN","inherit")},mt=rt.extend("--ft-typography-title-font-family",yt),bt=rt.extend("--ft-typography-title-font-size",vt.fontSize,"20px"),xt=rt.extend("--ft-typography-title-font-weight",vt.fontWeight,"normal"),wt=rt.extend("--ft-typography-title-letter-spacing",vt.letterSpacing,"0.15px"),Ot=rt.extend("--ft-typography-title-line-height",vt.lineHeight,"24px"),$t=rt.extend("--ft-typography-title-text-transform",vt.textTransform,"inherit"),St=rt.extend("--ft-typography-title-dense-font-family",yt),Nt=rt.extend("--ft-typography-title-dense-font-size",vt.fontSize,"14px"),Ct=rt.extend("--ft-typography-title-dense-font-weight",vt.fontWeight,"normal"),Rt=rt.extend("--ft-typography-title-dense-letter-spacing",vt.letterSpacing,"0.105px"),Et=rt.extend("--ft-typography-title-dense-line-height",vt.lineHeight,"24px"),Mt=rt.extend("--ft-typography-title-dense-text-transform",vt.textTransform,"inherit"),Ut=rt.extend("--ft-typography-subtitle1-font-family",gt),Ft=rt.extend("--ft-typography-subtitle1-font-size",vt.fontSize,"16px"),kt=rt.extend("--ft-typography-subtitle1-font-weight",vt.fontWeight,"600"),Lt=rt.extend("--ft-typography-subtitle1-letter-spacing",vt.letterSpacing,"0.144px"),Tt=rt.extend("--ft-typography-subtitle1-line-height",vt.lineHeight,"24px"),At=rt.extend("--ft-typography-subtitle1-text-transform",vt.textTransform,"inherit"),Pt=rt.extend("--ft-typography-subtitle2-font-family",gt),zt=rt.extend("--ft-typography-subtitle2-font-size",vt.fontSize,"14px"),Bt=rt.extend("--ft-typography-subtitle2-font-weight",vt.fontWeight,"normal"),_t=rt.extend("--ft-typography-subtitle2-letter-spacing",vt.letterSpacing,"0.098px"),Dt=rt.extend("--ft-typography-subtitle2-line-height",vt.lineHeight,"24px"),jt=rt.extend("--ft-typography-subtitle2-text-transform",vt.textTransform,"inherit"),Wt=rt.extend("--ft-typography-body1-font-family",gt),Ht=rt.extend("--ft-typography-body1-font-size",vt.fontSize,"16px"),Kt=rt.extend("--ft-typography-body1-font-weight",vt.fontWeight,"normal"),It=rt.extend("--ft-typography-body1-letter-spacing",vt.letterSpacing,"0.496px"),Vt=rt.extend("--ft-typography-body1-line-height",vt.lineHeight,"24px"),Zt=rt.extend("--ft-typography-body1-text-transform",vt.textTransform,"inherit"),Jt=rt.extend("--ft-typography-body2-font-family",gt),Xt=rt.extend("--ft-typography-body2-font-size",vt.fontSize,"14px"),qt=rt.extend("--ft-typography-body2-font-weight",vt.fontWeight,"normal"),Gt=rt.extend("--ft-typography-body2-letter-spacing",vt.letterSpacing,"0.252px"),Qt=rt.extend("--ft-typography-body2-line-height",vt.lineHeight,"20px"),Yt=rt.extend("--ft-typography-body2-text-transform",vt.textTransform,"inherit"),te=rt.extend("--ft-typography-caption-font-family",gt),ee=rt.extend("--ft-typography-caption-font-size",vt.fontSize,"12px"),ie=rt.extend("--ft-typography-caption-font-weight",vt.fontWeight,"normal"),oe=rt.extend("--ft-typography-caption-letter-spacing",vt.letterSpacing,"0.396px"),ne=rt.extend("--ft-typography-caption-line-height",vt.lineHeight,"16px"),re=rt.extend("--ft-typography-caption-text-transform",vt.textTransform,"inherit"),se=rt.extend("--ft-typography-breadcrumb-font-family",gt),ae=rt.extend("--ft-typography-breadcrumb-font-size",vt.fontSize,"10px"),le=rt.extend("--ft-typography-breadcrumb-font-weight",vt.fontWeight,"normal"),he=rt.extend("--ft-typography-breadcrumb-letter-spacing",vt.letterSpacing,"0.33px"),ce=rt.extend("--ft-typography-breadcrumb-line-height",vt.lineHeight,"16px"),pe=rt.extend("--ft-typography-breadcrumb-text-transform",vt.textTransform,"inherit"),fe=rt.extend("--ft-typography-overline-font-family",gt),ue=rt.extend("--ft-typography-overline-font-size",vt.fontSize,"10px"),de=rt.extend("--ft-typography-overline-font-weight",vt.fontWeight,"normal"),ye=rt.extend("--ft-typography-overline-letter-spacing",vt.letterSpacing,"1.5px"),ge=rt.extend("--ft-typography-overline-line-height",vt.lineHeight,"16px"),ve=rt.extend("--ft-typography-overline-text-transform",vt.textTransform,"uppercase"),me=rt.extend("--ft-typography-button-font-family",gt),be=rt.extend("--ft-typography-button-font-size",vt.fontSize,"14px"),xe=rt.extend("--ft-typography-button-font-weight",vt.fontWeight,"600"),we=rt.extend("--ft-typography-button-letter-spacing",vt.letterSpacing,"1.246px"),Oe=rt.extend("--ft-typography-button-line-height",vt.lineHeight,"16px"),$e=rt.extend("--ft-typography-button-text-transform",vt.textTransform,"uppercase"),Se=c`
61
75
  .ft-typography--title {
62
- font-family: ${bt};
63
- font-size: ${mt};
76
+ font-family: ${mt};
77
+ font-size: ${bt};
64
78
  font-weight: ${xt};
65
79
  letter-spacing: ${wt};
66
80
  line-height: ${Ot};
67
81
  text-transform: ${$t};
68
82
  }
69
- `,Ne=s`
83
+ `,Ne=c`
70
84
  .ft-typography--title-dense {
71
85
  font-family: ${St};
72
86
  font-size: ${Nt};
73
- font-weight: ${Rt};
74
- letter-spacing: ${Et};
75
- line-height: ${Ct};
87
+ font-weight: ${Ct};
88
+ letter-spacing: ${Rt};
89
+ line-height: ${Et};
76
90
  text-transform: ${Mt};
77
91
  }
78
- `,Re=s`
92
+ `,Ce=c`
79
93
  .ft-typography--subtitle1 {
80
94
  font-family: ${Ut};
81
95
  font-size: ${Ft};
82
- font-weight: ${jt};
83
- letter-spacing: ${Tt};
84
- line-height: ${kt};
85
- text-transform: ${Lt};
96
+ font-weight: ${kt};
97
+ letter-spacing: ${Lt};
98
+ line-height: ${Tt};
99
+ text-transform: ${At};
86
100
  }
87
- `,Ee=s`
101
+ `,Re=c`
88
102
  .ft-typography--subtitle2 {
89
- font-family: ${At};
90
- font-size: ${Pt};
91
- font-weight: ${zt};
92
- letter-spacing: ${Bt};
93
- line-height: ${_t};
94
- text-transform: ${Wt};
103
+ font-family: ${Pt};
104
+ font-size: ${zt};
105
+ font-weight: ${Bt};
106
+ letter-spacing: ${_t};
107
+ line-height: ${Dt};
108
+ text-transform: ${jt};
95
109
  }
96
110
 
97
- `,Ce=s`
111
+ `,Ee=c`
98
112
  .ft-typography--body1 {
99
- font-family: ${Dt};
113
+ font-family: ${Wt};
100
114
  font-size: ${Ht};
101
115
  font-weight: ${Kt};
102
116
  letter-spacing: ${It};
103
117
  line-height: ${Vt};
104
118
  text-transform: ${Zt};
105
119
  }
106
- `,Me=s`
120
+ `,Me=c`
107
121
  .ft-typography--body2 {
108
122
  font-family: ${Jt};
109
123
  font-size: ${Xt};
@@ -112,7 +126,7 @@ const ct=t=>({_$litStatic$:t}),pt=new Map,ft=(t=>(e,...i)=>{var o;const n=i.leng
112
126
  line-height: ${Qt};
113
127
  text-transform: ${Yt};
114
128
  }
115
- `,Ue=s`
129
+ `,Ue=c`
116
130
  .ft-typography--caption {
117
131
  font-family: ${te};
118
132
  font-size: ${ee};
@@ -121,7 +135,7 @@ const ct=t=>({_$litStatic$:t}),pt=new Map,ft=(t=>(e,...i)=>{var o;const n=i.leng
121
135
  line-height: ${ne};
122
136
  text-transform: ${re};
123
137
  }
124
- `,Fe=s`
138
+ `,Fe=c`
125
139
  .ft-typography--breadcrumb {
126
140
  font-family: ${se};
127
141
  font-size: ${ae};
@@ -130,7 +144,7 @@ const ct=t=>({_$litStatic$:t}),pt=new Map,ft=(t=>(e,...i)=>{var o;const n=i.leng
130
144
  line-height: ${ce};
131
145
  text-transform: ${pe};
132
146
  }
133
- `,je=s`
147
+ `,ke=c`
134
148
  .ft-typography--overline {
135
149
  font-family: ${fe};
136
150
  font-size: ${ue};
@@ -139,59 +153,59 @@ const ct=t=>({_$litStatic$:t}),pt=new Map,ft=(t=>(e,...i)=>{var o;const n=i.leng
139
153
  line-height: ${ge};
140
154
  text-transform: ${ve};
141
155
  }
142
- `,Te=s`
156
+ `,Le=c`
143
157
  .ft-typography--button {
144
- font-family: ${be};
145
- font-size: ${me};
158
+ font-family: ${me};
159
+ font-size: ${be};
146
160
  font-weight: ${xe};
147
161
  letter-spacing: ${we};
148
162
  line-height: ${Oe};
149
163
  text-transform: ${$e};
150
164
  }
151
- `;let ke=class extends at{constructor(){super(...arguments),this.variant=ut.body1}getStyles(){return[Se,Ne,Re,Ee,Ce,Me,Ue,Fe,je,Te,s`
152
- .ft-typography {
153
- vertical-align: inherit;
154
- }
155
- `]}getTemplate(){return this.element?ft`
165
+ `;class Te extends at{constructor(){super(...arguments),this.variant=ut.body1}render(){return this.element?ft`
156
166
  <${ct(this.element)}
157
167
  class="ft-typography ft-typography--${this.variant}">
158
168
  <slot></slot>
159
169
  </${ct(this.element)}>
160
170
  `:ft`
161
171
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
162
- `}};dt([it()],ke.prototype,"element",void 0),dt([it()],ke.prototype,"variant",void 0),ke=dt([nt("ft-typography")],ke);var Le=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const Ae={textColor:rt.external(st.colorOnSurfaceHigh,"Design system"),titleColor:rt.external(st.colorOnSurfaceMedium,"Design system")};t.FtTrend=class extends at{constructor(){super(...arguments),this.label="Trend",this.currentValue=3,this.previousValue=2}getStyles(){return s`
163
- .ft-trend {
164
- text-align: center;
165
- color: ${Ae.textColor};
172
+ `}}Te.styles=[Se,Ne,Ce,Re,Ee,Me,Ue,Fe,ke,Le,c`
173
+ .ft-typography {
174
+ vertical-align: inherit;
166
175
  }
167
-
168
- .ft-trend > div {
169
- padding-top: 5px;
170
- }
171
- `}getTrendIcon(){return this.currentValue==this.previousValue?"→":this.currentValue>this.previousValue?"↗":"↘"}getTrendPercentage(){let t=(this.currentValue-this.previousValue)/this.previousValue,e=Math.round(100*t);return`${e>=0?"+":"-"}${Math.abs(e)}%`}getTemplate(){return 0==this.previousValue?k`
172
- <div class="ft-trend">
173
- <ft-typography variant="subtitle2">
174
- ${this.label}
175
- </ft-typography>
176
- <div>
177
- <ft-typography variant="body2">
178
- No previous value
176
+ `],dt([i()],Te.prototype,"element",void 0),dt([i()],Te.prototype,"variant",void 0),n("ft-typography")(Te);var Ae=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const Pe={textColor:rt.external(st.colorOnSurfaceHigh,"Design system"),titleColor:rt.external(st.colorOnSurfaceMedium,"Design system")};class ze extends at{constructor(){super(...arguments),this.label="Trend",this.currentValue=3,this.previousValue=2}getTrendIcon(){return this.currentValue==this.previousValue?"→":this.currentValue>this.previousValue?"↗":"↘"}getTrendPercentage(){let t=(this.currentValue-this.previousValue)/this.previousValue,e=Math.round(100*t);return`${e>=0?"+":"-"}${Math.abs(e)}%`}render(){return 0==this.previousValue?B`
177
+ <div class="ft-trend">
178
+ <ft-typography variant="subtitle2">
179
+ ${this.label}
179
180
  </ft-typography>
181
+ <div>
182
+ <ft-typography variant="body2">
183
+ No previous value
184
+ </ft-typography>
185
+ </div>
180
186
  </div>
181
- </div>
182
- `:k`
183
- <div class="ft-trend">
184
- <ft-typography variant="subtitle2">
185
- ${this.label}
186
- </ft-typography>
187
- <div>
188
- <ft-typography variant="title">
189
- ${this.currentValue.toLocaleString()}
190
- </ft-typography>
191
- <span>${this.getTrendIcon()}</span>
192
- <ft-typography variant="body2">
193
- ${this.getTrendPercentage()}
187
+ `:B`
188
+ <div class="ft-trend">
189
+ <ft-typography variant="subtitle2">
190
+ ${this.label}
194
191
  </ft-typography>
192
+ <div>
193
+ <ft-typography variant="title">
194
+ ${this.currentValue.toLocaleString()}
195
+ </ft-typography>
196
+ <span>${this.getTrendIcon()}</span>
197
+ <ft-typography variant="body2">
198
+ ${this.getTrendPercentage()}
199
+ </ft-typography>
200
+ </div>
195
201
  </div>
196
- </div>
197
- `}},t.FtTrend.elementDefinitions={"ft-typography":ke},Le([it({type:String})],t.FtTrend.prototype,"label",void 0),Le([it({type:Number})],t.FtTrend.prototype,"currentValue",void 0),Le([it({type:Number})],t.FtTrend.prototype,"previousValue",void 0),t.FtTrend=Le([nt("ft-trend")],t.FtTrend),t.FtTrendCssVariables=Ae,Object.defineProperty(t,"t",{value:!0})}({});
202
+ `}}ze.elementDefinitions={"ft-typography":Te},ze.styles=c`
203
+ .ft-trend {
204
+ text-align: center;
205
+ color: ${Pe.textColor};
206
+ }
207
+
208
+ .ft-trend > div {
209
+ padding-top: 5px;
210
+ }
211
+ `,Ae([i({type:String})],ze.prototype,"label",void 0),Ae([i({type:Number})],ze.prototype,"currentValue",void 0),Ae([i({type:Number})],ze.prototype,"previousValue",void 0),n("ft-trend")(ze),t.FtTrend=ze,t.FtTrendCssVariables=Pe,Object.defineProperty(t,"t",{value:!0})}({});
@@ -0,0 +1,2 @@
1
+ export * from "./ft-trend";
2
+ //# sourceMappingURL=index.d.ts.map
package/build/index.js ADDED
@@ -0,0 +1,5 @@
1
+ import { customElement } from "@fluid-topics/ft-wc-utils";
2
+ import { FtTrend } from "./ft-trend";
3
+ export * from "./ft-trend";
4
+ customElement("ft-trend")(FtTrend);
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=inline-styles.d.ts.map
@@ -0,0 +1,4 @@
1
+ import { customElement, InlineStyles } from "@fluid-topics/ft-wc-utils";
2
+ import { FtTrend } from "./ft-trend";
3
+ customElement("ft-trend")(InlineStyles(FtTrend));
4
+ //# sourceMappingURL=inline-styles.js.map
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-trend",
3
- "version": "0.1.17",
3
+ "version": "0.2.1",
4
4
  "description": "Single stat value with a trend",
5
5
  "keywords": [
6
6
  "Lit"
7
7
  ],
8
8
  "author": "Fluid Topics <devtopics@antidot.net>",
9
9
  "license": "ISC",
10
- "main": "build/ft-trend.js",
10
+ "main": "build/index.js",
11
11
  "web": "build/ft-trend.min.js",
12
- "typings": "build/ft-trend",
12
+ "typings": "build/index",
13
13
  "files": [
14
14
  "build/*.ts",
15
15
  "build/*.js"
@@ -19,9 +19,9 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-typography": "^0.1.17",
23
- "@fluid-topics/ft-wc-utils": "^0.1.17",
22
+ "@fluid-topics/ft-typography": "^0.2.1",
23
+ "@fluid-topics/ft-wc-utils": "^0.2.1",
24
24
  "lit": "2.1.3"
25
25
  },
26
- "gitHead": "59fc7ad4bb79bb7a36b5edc8217d1279abf471f3"
26
+ "gitHead": "2ed08ecdd09372f1c522c4812bd738b7ee79a644"
27
27
  }