@fluid-topics/ft-trend 0.2.4 → 0.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-trend.inline-styles.js +84 -84
- package/build/ft-trend.light.js +79 -79
- package/build/ft-trend.min.js +86 -86
- package/package.json +4 -4
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
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(
|
|
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(ct){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(e,i,o,t)}}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -34,19 +34,19 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
34
34
|
* @license
|
|
35
35
|
* Copyright 2017 Google LLC
|
|
36
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._$
|
|
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._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$Ep=this._$E_())}async _$E_(){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._$EC&&(this._$EC.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$EC=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
|
|
38
38
|
/**
|
|
39
39
|
* @license
|
|
40
40
|
* Copyright 2017 Google LLC
|
|
41
41
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
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.
|
|
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.3.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.k(t):(t=>{var e;return M(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==D&&E(this._$AH)?this._$AA.nextSibling.data=t:this.k(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.k(e),this._$AH=t}}_$AC(t){let e=_.get(t.strings);return void 0===e&&_.set(t.strings,e=new H(t)),e}S(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.C(t)}C(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}C(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}C(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
44
|
/**
|
|
45
45
|
* @license
|
|
46
46
|
* Copyright 2017 Google LLC
|
|
47
47
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
48
48
|
*/
|
|
49
|
-
var tt,et;null==Y||Y(H,V),(null!==(x=globalThis.litHtmlVersions)&&void 0!==x?x:globalThis.litHtmlVersions=[]).push("2.
|
|
49
|
+
var tt,et;null==Y||Y(H,V),(null!==(x=globalThis.litHtmlVersions)&&void 0!==x?x:globalThis.litHtmlVersions=[]).push("2.2.4");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.2.0");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
50
|
/**
|
|
51
51
|
* @license
|
|
52
52
|
* Copyright 2021 Google LLC
|
|
@@ -71,109 +71,109 @@ var tt,et;null==Y||Y(H,V),(null!==(x=globalThis.litHtmlVersions)&&void 0!==x?x:g
|
|
|
71
71
|
* Copyright 2020 Google LLC
|
|
72
72
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
73
73
|
*/
|
|
74
|
-
const ht=t=>({_$litStatic$:t}),
|
|
74
|
+
const ht=Symbol.for(""),ct=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===ht)return null===(i=t)||void 0===i?void 0:i._$litStatic$},pt=t=>({_$litStatic$:t,r:ht}),ft=new Map,ut=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(r=i[h],n=ct(r));)l+=n+e[++h],c=!0;a.push(r),s.push(l),h++}if(h===o&&s.push(e[o]),c){const t=s.join("$$lit$$");void 0===(e=ft.get(t))&&(s.raw=s,ft.set(t,e=s)),i=a}return t(e,...i)})(z);var dt,yt=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"}(dt||(dt={}));const gt=nt.extend("--ft-typography-font-family",rt.titleFont),vt=nt.extend("--ft-typography-font-family",rt.contentFont),mt={fontFamily:vt,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")},bt=nt.extend("--ft-typography-title-font-family",gt),xt=nt.extend("--ft-typography-title-font-size",mt.fontSize,"20px"),wt=nt.extend("--ft-typography-title-font-weight",mt.fontWeight,"normal"),$t=nt.extend("--ft-typography-title-letter-spacing",mt.letterSpacing,"0.15px"),Ot=nt.extend("--ft-typography-title-line-height",mt.lineHeight,"24px"),St=nt.extend("--ft-typography-title-text-transform",mt.textTransform,"inherit"),Nt=nt.extend("--ft-typography-title-dense-font-family",gt),Ct=nt.extend("--ft-typography-title-dense-font-size",mt.fontSize,"14px"),Rt=nt.extend("--ft-typography-title-dense-font-weight",mt.fontWeight,"normal"),Et=nt.extend("--ft-typography-title-dense-letter-spacing",mt.letterSpacing,"0.105px"),Mt=nt.extend("--ft-typography-title-dense-line-height",mt.lineHeight,"24px"),Ut=nt.extend("--ft-typography-title-dense-text-transform",mt.textTransform,"inherit"),Ft=nt.extend("--ft-typography-subtitle1-font-family",vt),kt=nt.extend("--ft-typography-subtitle1-font-size",mt.fontSize,"16px"),Lt=nt.extend("--ft-typography-subtitle1-font-weight",mt.fontWeight,"600"),Tt=nt.extend("--ft-typography-subtitle1-letter-spacing",mt.letterSpacing,"0.144px"),At=nt.extend("--ft-typography-subtitle1-line-height",mt.lineHeight,"24px"),Pt=nt.extend("--ft-typography-subtitle1-text-transform",mt.textTransform,"inherit"),zt=nt.extend("--ft-typography-subtitle2-font-family",vt),Bt=nt.extend("--ft-typography-subtitle2-font-size",mt.fontSize,"14px"),Dt=nt.extend("--ft-typography-subtitle2-font-weight",mt.fontWeight,"normal"),_t=nt.extend("--ft-typography-subtitle2-letter-spacing",mt.letterSpacing,"0.098px"),jt=nt.extend("--ft-typography-subtitle2-line-height",mt.lineHeight,"24px"),Wt=nt.extend("--ft-typography-subtitle2-text-transform",mt.textTransform,"inherit"),Ht=nt.extend("--ft-typography-body1-font-family",vt),Kt=nt.extend("--ft-typography-body1-font-size",mt.fontSize,"16px"),It=nt.extend("--ft-typography-body1-font-weight",mt.fontWeight,"normal"),Vt=nt.extend("--ft-typography-body1-letter-spacing",mt.letterSpacing,"0.496px"),Zt=nt.extend("--ft-typography-body1-line-height",mt.lineHeight,"24px"),Jt=nt.extend("--ft-typography-body1-text-transform",mt.textTransform,"inherit"),Xt=nt.extend("--ft-typography-body2-font-family",vt),qt=nt.extend("--ft-typography-body2-font-size",mt.fontSize,"14px"),Gt=nt.extend("--ft-typography-body2-font-weight",mt.fontWeight,"normal"),Qt=nt.extend("--ft-typography-body2-letter-spacing",mt.letterSpacing,"0.252px"),Yt=nt.extend("--ft-typography-body2-line-height",mt.lineHeight,"20px"),te=nt.extend("--ft-typography-body2-text-transform",mt.textTransform,"inherit"),ee=nt.extend("--ft-typography-caption-font-family",vt),ie=nt.extend("--ft-typography-caption-font-size",mt.fontSize,"12px"),oe=nt.extend("--ft-typography-caption-font-weight",mt.fontWeight,"normal"),ne=nt.extend("--ft-typography-caption-letter-spacing",mt.letterSpacing,"0.396px"),re=nt.extend("--ft-typography-caption-line-height",mt.lineHeight,"16px"),se=nt.extend("--ft-typography-caption-text-transform",mt.textTransform,"inherit"),ae=nt.extend("--ft-typography-breadcrumb-font-family",vt),le=nt.extend("--ft-typography-breadcrumb-font-size",mt.fontSize,"10px"),he=nt.extend("--ft-typography-breadcrumb-font-weight",mt.fontWeight,"normal"),ce=nt.extend("--ft-typography-breadcrumb-letter-spacing",mt.letterSpacing,"0.33px"),pe=nt.extend("--ft-typography-breadcrumb-line-height",mt.lineHeight,"16px"),fe=nt.extend("--ft-typography-breadcrumb-text-transform",mt.textTransform,"inherit"),ue=nt.extend("--ft-typography-overline-font-family",vt),de=nt.extend("--ft-typography-overline-font-size",mt.fontSize,"10px"),ye=nt.extend("--ft-typography-overline-font-weight",mt.fontWeight,"normal"),ge=nt.extend("--ft-typography-overline-letter-spacing",mt.letterSpacing,"1.5px"),ve=nt.extend("--ft-typography-overline-line-height",mt.lineHeight,"16px"),me=nt.extend("--ft-typography-overline-text-transform",mt.textTransform,"uppercase"),be=nt.extend("--ft-typography-button-font-family",vt),xe=nt.extend("--ft-typography-button-font-size",mt.fontSize,"14px"),we=nt.extend("--ft-typography-button-font-weight",mt.fontWeight,"600"),$e=nt.extend("--ft-typography-button-letter-spacing",mt.letterSpacing,"1.246px"),Oe=nt.extend("--ft-typography-button-line-height",mt.lineHeight,"16px"),Se=nt.extend("--ft-typography-button-text-transform",mt.textTransform,"uppercase"),Ne=h`
|
|
75
75
|
.ft-typography--title {
|
|
76
|
-
font-family: ${
|
|
77
|
-
font-size: ${
|
|
78
|
-
font-weight: ${
|
|
79
|
-
letter-spacing: ${
|
|
80
|
-
line-height: ${
|
|
81
|
-
text-transform: ${
|
|
76
|
+
font-family: ${bt};
|
|
77
|
+
font-size: ${xt};
|
|
78
|
+
font-weight: ${wt};
|
|
79
|
+
letter-spacing: ${$t};
|
|
80
|
+
line-height: ${Ot};
|
|
81
|
+
text-transform: ${St};
|
|
82
82
|
}
|
|
83
|
-
`,
|
|
83
|
+
`,Ce=h`
|
|
84
84
|
.ft-typography--title-dense {
|
|
85
|
-
font-family: ${
|
|
86
|
-
font-size: ${
|
|
87
|
-
font-weight: ${
|
|
88
|
-
letter-spacing: ${
|
|
89
|
-
line-height: ${
|
|
90
|
-
text-transform: ${
|
|
85
|
+
font-family: ${Nt};
|
|
86
|
+
font-size: ${Ct};
|
|
87
|
+
font-weight: ${Rt};
|
|
88
|
+
letter-spacing: ${Et};
|
|
89
|
+
line-height: ${Mt};
|
|
90
|
+
text-transform: ${Ut};
|
|
91
91
|
}
|
|
92
|
-
`,
|
|
92
|
+
`,Re=h`
|
|
93
93
|
.ft-typography--subtitle1 {
|
|
94
|
-
font-family: ${
|
|
95
|
-
font-size: ${
|
|
96
|
-
font-weight: ${
|
|
97
|
-
letter-spacing: ${
|
|
98
|
-
line-height: ${
|
|
99
|
-
text-transform: ${
|
|
94
|
+
font-family: ${Ft};
|
|
95
|
+
font-size: ${kt};
|
|
96
|
+
font-weight: ${Lt};
|
|
97
|
+
letter-spacing: ${Tt};
|
|
98
|
+
line-height: ${At};
|
|
99
|
+
text-transform: ${Pt};
|
|
100
100
|
}
|
|
101
|
-
`,
|
|
101
|
+
`,Ee=h`
|
|
102
102
|
.ft-typography--subtitle2 {
|
|
103
|
-
font-family: ${
|
|
104
|
-
font-size: ${
|
|
105
|
-
font-weight: ${
|
|
106
|
-
letter-spacing: ${
|
|
107
|
-
line-height: ${
|
|
108
|
-
text-transform: ${
|
|
103
|
+
font-family: ${zt};
|
|
104
|
+
font-size: ${Bt};
|
|
105
|
+
font-weight: ${Dt};
|
|
106
|
+
letter-spacing: ${_t};
|
|
107
|
+
line-height: ${jt};
|
|
108
|
+
text-transform: ${Wt};
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
`,
|
|
111
|
+
`,Me=h`
|
|
112
112
|
.ft-typography--body1 {
|
|
113
|
-
font-family: ${
|
|
114
|
-
font-size: ${
|
|
115
|
-
font-weight: ${
|
|
116
|
-
letter-spacing: ${
|
|
117
|
-
line-height: ${
|
|
118
|
-
text-transform: ${
|
|
113
|
+
font-family: ${Ht};
|
|
114
|
+
font-size: ${Kt};
|
|
115
|
+
font-weight: ${It};
|
|
116
|
+
letter-spacing: ${Vt};
|
|
117
|
+
line-height: ${Zt};
|
|
118
|
+
text-transform: ${Jt};
|
|
119
119
|
}
|
|
120
|
-
`,
|
|
120
|
+
`,Ue=h`
|
|
121
121
|
.ft-typography--body2 {
|
|
122
|
-
font-family: ${
|
|
123
|
-
font-size: ${
|
|
124
|
-
font-weight: ${
|
|
125
|
-
letter-spacing: ${
|
|
126
|
-
line-height: ${
|
|
127
|
-
text-transform: ${
|
|
122
|
+
font-family: ${Xt};
|
|
123
|
+
font-size: ${qt};
|
|
124
|
+
font-weight: ${Gt};
|
|
125
|
+
letter-spacing: ${Qt};
|
|
126
|
+
line-height: ${Yt};
|
|
127
|
+
text-transform: ${te};
|
|
128
128
|
}
|
|
129
|
-
`,
|
|
129
|
+
`,Fe=h`
|
|
130
130
|
.ft-typography--caption {
|
|
131
|
-
font-family: ${
|
|
132
|
-
font-size: ${
|
|
133
|
-
font-weight: ${
|
|
134
|
-
letter-spacing: ${
|
|
135
|
-
line-height: ${
|
|
136
|
-
text-transform: ${
|
|
131
|
+
font-family: ${ee};
|
|
132
|
+
font-size: ${ie};
|
|
133
|
+
font-weight: ${oe};
|
|
134
|
+
letter-spacing: ${ne};
|
|
135
|
+
line-height: ${re};
|
|
136
|
+
text-transform: ${se};
|
|
137
137
|
}
|
|
138
|
-
`,
|
|
138
|
+
`,ke=h`
|
|
139
139
|
.ft-typography--breadcrumb {
|
|
140
|
-
font-family: ${
|
|
141
|
-
font-size: ${
|
|
142
|
-
font-weight: ${
|
|
143
|
-
letter-spacing: ${
|
|
144
|
-
line-height: ${
|
|
145
|
-
text-transform: ${
|
|
140
|
+
font-family: ${ae};
|
|
141
|
+
font-size: ${le};
|
|
142
|
+
font-weight: ${he};
|
|
143
|
+
letter-spacing: ${ce};
|
|
144
|
+
line-height: ${pe};
|
|
145
|
+
text-transform: ${fe};
|
|
146
146
|
}
|
|
147
|
-
`,
|
|
147
|
+
`,Le=h`
|
|
148
148
|
.ft-typography--overline {
|
|
149
|
-
font-family: ${
|
|
150
|
-
font-size: ${
|
|
151
|
-
font-weight: ${
|
|
152
|
-
letter-spacing: ${
|
|
153
|
-
line-height: ${
|
|
154
|
-
text-transform: ${
|
|
149
|
+
font-family: ${ue};
|
|
150
|
+
font-size: ${de};
|
|
151
|
+
font-weight: ${ye};
|
|
152
|
+
letter-spacing: ${ge};
|
|
153
|
+
line-height: ${ve};
|
|
154
|
+
text-transform: ${me};
|
|
155
155
|
}
|
|
156
|
-
`,
|
|
156
|
+
`,Te=h`
|
|
157
157
|
.ft-typography--button {
|
|
158
|
-
font-family: ${
|
|
159
|
-
font-size: ${
|
|
160
|
-
font-weight: ${
|
|
161
|
-
letter-spacing: ${
|
|
162
|
-
line-height: ${
|
|
163
|
-
text-transform: ${
|
|
158
|
+
font-family: ${be};
|
|
159
|
+
font-size: ${xe};
|
|
160
|
+
font-weight: ${we};
|
|
161
|
+
letter-spacing: ${$e};
|
|
162
|
+
line-height: ${Oe};
|
|
163
|
+
text-transform: ${Se};
|
|
164
164
|
}
|
|
165
|
-
`;class
|
|
166
|
-
<${
|
|
165
|
+
`;class Ae extends st{constructor(){super(...arguments),this.variant=dt.body1}render(){return this.element?ut`
|
|
166
|
+
<${pt(this.element)}
|
|
167
167
|
class="ft-typography ft-typography--${this.variant}">
|
|
168
168
|
<slot></slot>
|
|
169
|
-
</${
|
|
170
|
-
`:
|
|
169
|
+
</${pt(this.element)}>
|
|
170
|
+
`:ut`
|
|
171
171
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
172
|
-
`}}
|
|
172
|
+
`}}Ae.styles=[Ne,Ce,Re,Ee,Me,Ue,Fe,ke,Le,Te,h`
|
|
173
173
|
.ft-typography {
|
|
174
174
|
vertical-align: inherit;
|
|
175
175
|
}
|
|
176
|
-
`],
|
|
176
|
+
`],yt([e()],Ae.prototype,"element",void 0),yt([e()],Ae.prototype,"variant",void 0),o("ft-typography")(Ae);var Pe=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 ze=nt.external(rt.colorOnSurfaceHigh,"Design system");nt.external(rt.colorOnSurfaceMedium,"Design system");class Be 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
177
|
<div class="ft-trend">
|
|
178
178
|
<ft-typography variant="subtitle2">
|
|
179
179
|
${this.label}
|
|
@@ -199,18 +199,18 @@ const ht=t=>({_$litStatic$:t}),ct=new Map,pt=(t=>(e,...i)=>{var o;const n=i.leng
|
|
|
199
199
|
</ft-typography>
|
|
200
200
|
</div>
|
|
201
201
|
</div>
|
|
202
|
-
`}}
|
|
202
|
+
`}}Be.elementDefinitions={"ft-typography":Ae},Be.styles=h`
|
|
203
203
|
.ft-trend {
|
|
204
204
|
text-align: center;
|
|
205
|
-
color: ${
|
|
205
|
+
color: ${ze};
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
.ft-trend > div {
|
|
209
209
|
padding-top: 5px;
|
|
210
210
|
}
|
|
211
|
-
`,
|
|
211
|
+
`,Pe([e({type:String})],Be.prototype,"label",void 0),Pe([e({type:Number})],Be.prototype,"currentValue",void 0),Pe([e({type:Number})],Be.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{render(){var t;let i=null!==(t=e.styles)&&void 0!==t?t:[];return Array.isArray(i)||(i=[i]),z`
|
|
212
212
|
${i.map((t=>z`
|
|
213
213
|
<style>${t}</style>
|
|
214
214
|
`))}
|
|
215
215
|
${super.render()}
|
|
216
|
-
`}},i.styles=void 0,i.elementDefinitions=o,i}(
|
|
216
|
+
`}},i.styles=void 0,i.elementDefinitions=o,i}(Be))}();
|
package/build/ft-trend.light.js
CHANGED
|
@@ -4,115 +4,115 @@
|
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
var n;const
|
|
7
|
+
var n;const r=globalThis.trustedTypes,s=r?r.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"),_=new WeakMap,A=l.createTreeWalker(l,129,null,!1),N=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",p=d;for(let i=0;i<e;i++){const e=t[i];let s,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,s=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("/>")?" ":"";r+=p===d?e+a:f>=0?(o.push(s),e.slice(0,f)+"$lit$"+e.slice(f)+h+g):e+h+(-2===f?(o.push(void 0),i):g)}const l=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==s?s.createHTML(l):l,o]};class S{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,s=0;const a=t.length-1,l=this.parts,[y,g]=N(t,i);if(this.el=S.createElement(y,e),A.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=A.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[s++];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]?E:"?"===i[1]?j:"@"===i[1]?U:M})}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=r?r.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],f()),A.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,r,s,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===(r=null==p?void 0:p._$AO)||void 0===r||r.call(p,!1),void 0===a?p=void 0:(p=new a(t),p._$AT(t,e,o)),void 0!==o?(null!==(s=(h=e)._$Cl)&&void 0!==s?s:h._$Cl=[])[o]=p:e._$Cu=p),void 0!==p&&(i=T(t,p._$AS(t,i.values),p,o)),i}class C{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);A.currentNode=n;let r=A.nextNode(),s=0,h=0,p=o[0];for(;void 0!==p;){if(s===p.index){let i;2===p.type?i=new I(r,r.nextSibling,this,t):1===p.type?i=new p.ctor(r,p.name,p.strings,this,t):6===p.type&&(i=new Z(r,this,t)),this.v.push(i),p=o[++h]}s!==(null==p?void 0:p.index)&&(r=A.nextNode(),s++)}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 I{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.k(t):(t=>{var i;return g(t)||"function"==typeof(null===(i=t)||void 0===i?void 0:i[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==z&&y(this._$AH)?this._$AA.nextSibling.data=t:this.k(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 C(n,this),i=t.p(this.options);t.m(e),this.k(i),this._$AH=t}}_$AC(t){let i=_.get(t.strings);return void 0===i&&_.set(t.strings,i=new S(t)),i}S(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 I(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 M{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 r=!1;if(void 0===n)t=T(this,t,i,0),r=!y(t)||t!==this._$AH&&t!==w,r&&(this._$AH=t);else{const o=t;let s,h;for(t=n[0],s=0;s<n.length-1;s++)h=T(this,o[e+s],i,s),h===w&&(h=this._$AH[s]),r||(r=!y(h)||h!==this._$AH[s]),h===z?t=z:t!==z&&(t+=(null!=h?h:"")+n[s+1]),this._$AH[s]=h}r&&!o&&this.C(t)}C(t){t===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class E extends M{constructor(){super(...arguments),this.type=3}C(t){this.element[this.name]=t===z?void 0:t}}const O=r?r.emptyScript:"";class j extends M{constructor(){super(...arguments),this.type=4}C(t){t&&t!==z?this.element.setAttribute(this.name,O):this.element.removeAttribute(this.name)}}class U extends M{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,r=t!==z&&(o===z||n);n&&this.element.removeEventListener(this.name,this,o),r&&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 W=window.litHtmlPolyfillSupport;null==W||W(S,I),(null!==(n=globalThis.litHtmlVersions)&&void 0!==n?n:globalThis.litHtmlVersions=[]).push("2.2.4");
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2020 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
const
|
|
13
|
+
const G=Symbol.for(""),k=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===G)return null===(e=t)||void 0===e?void 0:e._$litStatic$},D=t=>({_$litStatic$:t,r:G}),H=new Map,K=(t=>(i,...e)=>{const o=e.length;let n,r;const s=[],h=[];let p,a=0,l=!1;for(;a<o;){for(p=i[a];a<o&&void 0!==(r=e[a],n=k(r));)p+=n+i[++a],l=!0;h.push(r),s.push(p),a++}if(a===o&&s.push(i[o]),l){const t=s.join("$$lit$$");void 0===(i=H.get(t))&&(s.raw=s,H.set(t,i=s)),e=h}return t(i,...e)})(x);var R,V=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,h=t.length-1;h>=0;h--)(n=t[h])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,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"}(R||(R={}));const F=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),L=i.FtCssVariable.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),P={fontFamily:L,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")},q=i.FtCssVariable.extend("--ft-typography-title-font-family",F),B=i.FtCssVariable.extend("--ft-typography-title-font-size",P.fontSize,"20px"),J=i.FtCssVariable.extend("--ft-typography-title-font-weight",P.fontWeight,"normal"),Q=i.FtCssVariable.extend("--ft-typography-title-letter-spacing",P.letterSpacing,"0.15px"),X=i.FtCssVariable.extend("--ft-typography-title-line-height",P.lineHeight,"24px"),Y=i.FtCssVariable.extend("--ft-typography-title-text-transform",P.textTransform,"inherit"),tt=i.FtCssVariable.extend("--ft-typography-title-dense-font-family",F),it=i.FtCssVariable.extend("--ft-typography-title-dense-font-size",P.fontSize,"14px"),et=i.FtCssVariable.extend("--ft-typography-title-dense-font-weight",P.fontWeight,"normal"),ot=i.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",P.letterSpacing,"0.105px"),nt=i.FtCssVariable.extend("--ft-typography-title-dense-line-height",P.lineHeight,"24px"),rt=i.FtCssVariable.extend("--ft-typography-title-dense-text-transform",P.textTransform,"inherit"),st=i.FtCssVariable.extend("--ft-typography-subtitle1-font-family",L),ht=i.FtCssVariable.extend("--ft-typography-subtitle1-font-size",P.fontSize,"16px"),pt=i.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",P.fontWeight,"600"),at=i.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",P.letterSpacing,"0.144px"),lt=i.FtCssVariable.extend("--ft-typography-subtitle1-line-height",P.lineHeight,"24px"),ft=i.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",P.textTransform,"inherit"),yt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-family",L),gt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-size",P.fontSize,"14px"),dt=i.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",P.fontWeight,"normal"),ct=i.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",P.letterSpacing,"0.098px"),ut=i.FtCssVariable.extend("--ft-typography-subtitle2-line-height",P.lineHeight,"24px"),vt=i.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",P.textTransform,"inherit"),$t=i.FtCssVariable.extend("--ft-typography-body1-font-family",L),bt=i.FtCssVariable.extend("--ft-typography-body1-font-size",P.fontSize,"16px"),mt=i.FtCssVariable.extend("--ft-typography-body1-font-weight",P.fontWeight,"normal"),xt=i.FtCssVariable.extend("--ft-typography-body1-letter-spacing",P.letterSpacing,"0.496px"),wt=i.FtCssVariable.extend("--ft-typography-body1-line-height",P.lineHeight,"24px"),zt=i.FtCssVariable.extend("--ft-typography-body1-text-transform",P.textTransform,"inherit"),_t=i.FtCssVariable.extend("--ft-typography-body2-font-family",L),At=i.FtCssVariable.extend("--ft-typography-body2-font-size",P.fontSize,"14px"),Nt=i.FtCssVariable.extend("--ft-typography-body2-font-weight",P.fontWeight,"normal"),St=i.FtCssVariable.extend("--ft-typography-body2-letter-spacing",P.letterSpacing,"0.252px"),Tt=i.FtCssVariable.extend("--ft-typography-body2-line-height",P.lineHeight,"20px"),Ct=i.FtCssVariable.extend("--ft-typography-body2-text-transform",P.textTransform,"inherit"),It=i.FtCssVariable.extend("--ft-typography-caption-font-family",L),Mt=i.FtCssVariable.extend("--ft-typography-caption-font-size",P.fontSize,"12px"),Et=i.FtCssVariable.extend("--ft-typography-caption-font-weight",P.fontWeight,"normal"),Ot=i.FtCssVariable.extend("--ft-typography-caption-letter-spacing",P.letterSpacing,"0.396px"),jt=i.FtCssVariable.extend("--ft-typography-caption-line-height",P.lineHeight,"16px"),Ut=i.FtCssVariable.extend("--ft-typography-caption-text-transform",P.textTransform,"inherit"),Zt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",L),Wt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",P.fontSize,"10px"),Gt=i.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",P.fontWeight,"normal"),kt=i.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",P.letterSpacing,"0.33px"),Dt=i.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",P.lineHeight,"16px"),Ht=i.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",P.textTransform,"inherit"),Kt=i.FtCssVariable.extend("--ft-typography-overline-font-family",L),Rt=i.FtCssVariable.extend("--ft-typography-overline-font-size",P.fontSize,"10px"),Vt=i.FtCssVariable.extend("--ft-typography-overline-font-weight",P.fontWeight,"normal"),Ft=i.FtCssVariable.extend("--ft-typography-overline-letter-spacing",P.letterSpacing,"1.5px"),Lt=i.FtCssVariable.extend("--ft-typography-overline-line-height",P.lineHeight,"16px"),Pt=i.FtCssVariable.extend("--ft-typography-overline-text-transform",P.textTransform,"uppercase"),qt=i.FtCssVariable.extend("--ft-typography-button-font-family",L),Bt=i.FtCssVariable.extend("--ft-typography-button-font-size",P.fontSize,"14px"),Jt=i.FtCssVariable.extend("--ft-typography-button-font-weight",P.fontWeight,"600"),Qt=i.FtCssVariable.extend("--ft-typography-button-letter-spacing",P.letterSpacing,"1.246px"),Xt=i.FtCssVariable.extend("--ft-typography-button-line-height",P.lineHeight,"16px"),Yt=i.FtCssVariable.extend("--ft-typography-button-text-transform",P.textTransform,"uppercase"),ti=e.css`
|
|
14
14
|
.ft-typography--title {
|
|
15
|
-
font-family: ${
|
|
16
|
-
font-size: ${
|
|
17
|
-
font-weight: ${
|
|
18
|
-
letter-spacing: ${
|
|
19
|
-
line-height: ${
|
|
20
|
-
text-transform: ${
|
|
15
|
+
font-family: ${q};
|
|
16
|
+
font-size: ${B};
|
|
17
|
+
font-weight: ${J};
|
|
18
|
+
letter-spacing: ${Q};
|
|
19
|
+
line-height: ${X};
|
|
20
|
+
text-transform: ${Y};
|
|
21
21
|
}
|
|
22
|
-
`,
|
|
22
|
+
`,ii=e.css`
|
|
23
23
|
.ft-typography--title-dense {
|
|
24
|
-
font-family: ${
|
|
25
|
-
font-size: ${
|
|
26
|
-
font-weight: ${
|
|
27
|
-
letter-spacing: ${
|
|
28
|
-
line-height: ${
|
|
29
|
-
text-transform: ${
|
|
24
|
+
font-family: ${tt};
|
|
25
|
+
font-size: ${it};
|
|
26
|
+
font-weight: ${et};
|
|
27
|
+
letter-spacing: ${ot};
|
|
28
|
+
line-height: ${nt};
|
|
29
|
+
text-transform: ${rt};
|
|
30
30
|
}
|
|
31
|
-
`,
|
|
31
|
+
`,ei=e.css`
|
|
32
32
|
.ft-typography--subtitle1 {
|
|
33
|
-
font-family: ${
|
|
34
|
-
font-size: ${
|
|
35
|
-
font-weight: ${
|
|
36
|
-
letter-spacing: ${
|
|
37
|
-
line-height: ${
|
|
38
|
-
text-transform: ${
|
|
33
|
+
font-family: ${st};
|
|
34
|
+
font-size: ${ht};
|
|
35
|
+
font-weight: ${pt};
|
|
36
|
+
letter-spacing: ${at};
|
|
37
|
+
line-height: ${lt};
|
|
38
|
+
text-transform: ${ft};
|
|
39
39
|
}
|
|
40
|
-
`,
|
|
40
|
+
`,oi=e.css`
|
|
41
41
|
.ft-typography--subtitle2 {
|
|
42
|
-
font-family: ${
|
|
43
|
-
font-size: ${
|
|
44
|
-
font-weight: ${
|
|
45
|
-
letter-spacing: ${
|
|
46
|
-
line-height: ${
|
|
47
|
-
text-transform: ${
|
|
42
|
+
font-family: ${yt};
|
|
43
|
+
font-size: ${gt};
|
|
44
|
+
font-weight: ${dt};
|
|
45
|
+
letter-spacing: ${ct};
|
|
46
|
+
line-height: ${ut};
|
|
47
|
+
text-transform: ${vt};
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
`,
|
|
50
|
+
`,ni=e.css`
|
|
51
51
|
.ft-typography--body1 {
|
|
52
|
-
font-family: ${
|
|
53
|
-
font-size: ${
|
|
54
|
-
font-weight: ${
|
|
55
|
-
letter-spacing: ${
|
|
56
|
-
line-height: ${
|
|
57
|
-
text-transform: ${
|
|
52
|
+
font-family: ${$t};
|
|
53
|
+
font-size: ${bt};
|
|
54
|
+
font-weight: ${mt};
|
|
55
|
+
letter-spacing: ${xt};
|
|
56
|
+
line-height: ${wt};
|
|
57
|
+
text-transform: ${zt};
|
|
58
58
|
}
|
|
59
|
-
`,
|
|
59
|
+
`,ri=e.css`
|
|
60
60
|
.ft-typography--body2 {
|
|
61
|
-
font-family: ${
|
|
62
|
-
font-size: ${
|
|
63
|
-
font-weight: ${
|
|
64
|
-
letter-spacing: ${
|
|
65
|
-
line-height: ${
|
|
66
|
-
text-transform: ${
|
|
61
|
+
font-family: ${_t};
|
|
62
|
+
font-size: ${At};
|
|
63
|
+
font-weight: ${Nt};
|
|
64
|
+
letter-spacing: ${St};
|
|
65
|
+
line-height: ${Tt};
|
|
66
|
+
text-transform: ${Ct};
|
|
67
67
|
}
|
|
68
|
-
`,
|
|
68
|
+
`,si=e.css`
|
|
69
69
|
.ft-typography--caption {
|
|
70
|
-
font-family: ${
|
|
71
|
-
font-size: ${
|
|
72
|
-
font-weight: ${
|
|
73
|
-
letter-spacing: ${
|
|
74
|
-
line-height: ${
|
|
75
|
-
text-transform: ${
|
|
70
|
+
font-family: ${It};
|
|
71
|
+
font-size: ${Mt};
|
|
72
|
+
font-weight: ${Et};
|
|
73
|
+
letter-spacing: ${Ot};
|
|
74
|
+
line-height: ${jt};
|
|
75
|
+
text-transform: ${Ut};
|
|
76
76
|
}
|
|
77
|
-
`,
|
|
77
|
+
`,hi=e.css`
|
|
78
78
|
.ft-typography--breadcrumb {
|
|
79
|
-
font-family: ${
|
|
80
|
-
font-size: ${
|
|
81
|
-
font-weight: ${
|
|
79
|
+
font-family: ${Zt};
|
|
80
|
+
font-size: ${Wt};
|
|
81
|
+
font-weight: ${Gt};
|
|
82
82
|
letter-spacing: ${kt};
|
|
83
|
-
line-height: ${
|
|
84
|
-
text-transform: ${
|
|
83
|
+
line-height: ${Dt};
|
|
84
|
+
text-transform: ${Ht};
|
|
85
85
|
}
|
|
86
|
-
`,
|
|
86
|
+
`,pi=e.css`
|
|
87
87
|
.ft-typography--overline {
|
|
88
|
-
font-family: ${
|
|
89
|
-
font-size: ${
|
|
90
|
-
font-weight: ${
|
|
91
|
-
letter-spacing: ${
|
|
92
|
-
line-height: ${
|
|
93
|
-
text-transform: ${
|
|
88
|
+
font-family: ${Kt};
|
|
89
|
+
font-size: ${Rt};
|
|
90
|
+
font-weight: ${Vt};
|
|
91
|
+
letter-spacing: ${Ft};
|
|
92
|
+
line-height: ${Lt};
|
|
93
|
+
text-transform: ${Pt};
|
|
94
94
|
}
|
|
95
|
-
`,
|
|
95
|
+
`,ai=e.css`
|
|
96
96
|
.ft-typography--button {
|
|
97
|
-
font-family: ${
|
|
98
|
-
font-size: ${
|
|
99
|
-
font-weight: ${
|
|
100
|
-
letter-spacing: ${
|
|
101
|
-
line-height: ${
|
|
102
|
-
text-transform: ${
|
|
97
|
+
font-family: ${qt};
|
|
98
|
+
font-size: ${Bt};
|
|
99
|
+
font-weight: ${Jt};
|
|
100
|
+
letter-spacing: ${Qt};
|
|
101
|
+
line-height: ${Xt};
|
|
102
|
+
text-transform: ${Yt};
|
|
103
103
|
}
|
|
104
|
-
`;class
|
|
105
|
-
<${
|
|
104
|
+
`;class li extends i.FtLitElement{constructor(){super(...arguments),this.variant=R.body1}render(){return this.element?K`
|
|
105
|
+
<${D(this.element)}
|
|
106
106
|
class="ft-typography ft-typography--${this.variant}">
|
|
107
107
|
<slot></slot>
|
|
108
|
-
</${
|
|
109
|
-
`:
|
|
108
|
+
</${D(this.element)}>
|
|
109
|
+
`:K`
|
|
110
110
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
111
|
-
`}}
|
|
111
|
+
`}}li.styles=[ti,ii,ei,oi,ni,ri,si,hi,pi,ai,e.css`
|
|
112
112
|
.ft-typography {
|
|
113
113
|
vertical-align: inherit;
|
|
114
114
|
}
|
|
115
|
-
`],
|
|
115
|
+
`],V([o.property()],li.prototype,"element",void 0),V([o.property()],li.prototype,"variant",void 0),i.customElement("ft-typography")(li);var fi=function(t,i,e,o){for(var n,r=arguments.length,s=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,h=t.length-1;h>=0;h--)(n=t[h])&&(s=(r<3?n(s):r>3?n(i,e,s):n(i,e))||s);return r>3&&s&&Object.defineProperty(i,e,s),s};const yi={textColor:i.FtCssVariable.external(i.designSystemVariables.colorOnSurfaceHigh,"Design system"),titleColor:i.FtCssVariable.external(i.designSystemVariables.colorOnSurfaceMedium,"Design system")};class gi 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
116
|
<div class="ft-trend">
|
|
117
117
|
<ft-typography variant="subtitle2">
|
|
118
118
|
${this.label}
|
|
@@ -138,13 +138,13 @@ const W=t=>({_$litStatic$:t}),G=new Map,D=(t=>(i,...e)=>{var o;const n=e.length;
|
|
|
138
138
|
</ft-typography>
|
|
139
139
|
</div>
|
|
140
140
|
</div>
|
|
141
|
-
`}}
|
|
141
|
+
`}}gi.elementDefinitions={"ft-typography":li},gi.styles=e.css`
|
|
142
142
|
.ft-trend {
|
|
143
143
|
text-align: center;
|
|
144
|
-
color: ${
|
|
144
|
+
color: ${yi.textColor};
|
|
145
145
|
}
|
|
146
146
|
|
|
147
147
|
.ft-trend > div {
|
|
148
148
|
padding-top: 5px;
|
|
149
149
|
}
|
|
150
|
-
`,
|
|
150
|
+
`,fi([o.property({type:String})],gi.prototype,"label",void 0),fi([o.property({type:Number})],gi.prototype,"currentValue",void 0),fi([o.property({type:Number})],gi.prototype,"previousValue",void 0),i.customElement("ft-trend")(gi),t.FtTrend=gi,t.FtTrendCssVariables=yi,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators);
|
package/build/ft-trend.min.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
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(
|
|
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(pt){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(e,i,o,t)}}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -34,25 +34,25 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
34
34
|
* @license
|
|
35
35
|
* Copyright 2017 Google LLC
|
|
36
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
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._$
|
|
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._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$Ep=this._$E_())}async _$E_(){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._$EC&&(this._$EC.forEach(((t,e)=>this._$ES(e,this[e],t))),this._$EC=void 0),this._$EU()}updated(t){}firstUpdated(t){}}
|
|
38
38
|
/**
|
|
39
39
|
* @license
|
|
40
40
|
* Copyright 2017 Google LLC
|
|
41
41
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
42
|
*/
|
|
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.
|
|
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.3.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,_=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),B=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===B)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!==B&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):(t=>{var e;return U(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.S(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==D&&M(this._$AH)?this._$AA.nextSibling.data=t:this.k(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.k(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}S(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!==B,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===B&&(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.C(t)}C(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}C(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}C(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)===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 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;
|
|
44
44
|
/**
|
|
45
45
|
* @license
|
|
46
46
|
* Copyright 2017 Google LLC
|
|
47
47
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
48
48
|
*/
|
|
49
|
-
var et,it;null==tt||tt(K,Z),(null!==(w=globalThis.litHtmlVersions)&&void 0!==w?w:globalThis.litHtmlVersions=[]).push("2.
|
|
49
|
+
var et,it;null==tt||tt(K,Z),(null!==(w=globalThis.litHtmlVersions)&&void 0!==w?w:globalThis.litHtmlVersions=[]).push("2.2.4");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 B}}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.2.0");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")};
|
|
50
50
|
/**
|
|
51
51
|
* @license
|
|
52
52
|
* Copyright 2021 Google LLC
|
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
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]),
|
|
55
|
-
${t.map((t=>
|
|
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]),_`
|
|
55
|
+
${t.map((t=>_`
|
|
56
56
|
<style>${t}</style>
|
|
57
57
|
`))}
|
|
58
58
|
${this.getTemplate()}
|
|
@@ -71,109 +71,109 @@ var et,it;null==tt||tt(K,Z),(null!==(w=globalThis.litHtmlVersions)&&void 0!==w?w
|
|
|
71
71
|
* Copyright 2020 Google LLC
|
|
72
72
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
73
73
|
*/
|
|
74
|
-
const ct=t=>({_$litStatic$:t}),
|
|
74
|
+
const ct=Symbol.for(""),pt=t=>{var e,i;if((null===(e=t)||void 0===e?void 0:e.r)===ct)return null===(i=t)||void 0===i?void 0:i._$litStatic$},ft=t=>({_$litStatic$:t,r:ct}),ut=new Map,dt=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(r=i[h],n=pt(r));)l+=n+e[++h],c=!0;a.push(r),s.push(l),h++}if(h===o&&s.push(e[o]),c){const t=s.join("$$lit$$");void 0===(e=ut.get(t))&&(s.raw=s,ut.set(t,e=s)),i=a}return t(e,...i)})(_);var yt,gt=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"}(yt||(yt={}));const vt=rt.extend("--ft-typography-font-family",st.titleFont),mt=rt.extend("--ft-typography-font-family",st.contentFont),bt={fontFamily:mt,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")},xt=rt.extend("--ft-typography-title-font-family",vt),wt=rt.extend("--ft-typography-title-font-size",bt.fontSize,"20px"),Ot=rt.extend("--ft-typography-title-font-weight",bt.fontWeight,"normal"),$t=rt.extend("--ft-typography-title-letter-spacing",bt.letterSpacing,"0.15px"),St=rt.extend("--ft-typography-title-line-height",bt.lineHeight,"24px"),Nt=rt.extend("--ft-typography-title-text-transform",bt.textTransform,"inherit"),Ct=rt.extend("--ft-typography-title-dense-font-family",vt),Rt=rt.extend("--ft-typography-title-dense-font-size",bt.fontSize,"14px"),Et=rt.extend("--ft-typography-title-dense-font-weight",bt.fontWeight,"normal"),Mt=rt.extend("--ft-typography-title-dense-letter-spacing",bt.letterSpacing,"0.105px"),Ut=rt.extend("--ft-typography-title-dense-line-height",bt.lineHeight,"24px"),Ft=rt.extend("--ft-typography-title-dense-text-transform",bt.textTransform,"inherit"),kt=rt.extend("--ft-typography-subtitle1-font-family",mt),Lt=rt.extend("--ft-typography-subtitle1-font-size",bt.fontSize,"16px"),Tt=rt.extend("--ft-typography-subtitle1-font-weight",bt.fontWeight,"600"),At=rt.extend("--ft-typography-subtitle1-letter-spacing",bt.letterSpacing,"0.144px"),Pt=rt.extend("--ft-typography-subtitle1-line-height",bt.lineHeight,"24px"),zt=rt.extend("--ft-typography-subtitle1-text-transform",bt.textTransform,"inherit"),_t=rt.extend("--ft-typography-subtitle2-font-family",mt),Bt=rt.extend("--ft-typography-subtitle2-font-size",bt.fontSize,"14px"),Dt=rt.extend("--ft-typography-subtitle2-font-weight",bt.fontWeight,"normal"),jt=rt.extend("--ft-typography-subtitle2-letter-spacing",bt.letterSpacing,"0.098px"),Wt=rt.extend("--ft-typography-subtitle2-line-height",bt.lineHeight,"24px"),Ht=rt.extend("--ft-typography-subtitle2-text-transform",bt.textTransform,"inherit"),Kt=rt.extend("--ft-typography-body1-font-family",mt),It=rt.extend("--ft-typography-body1-font-size",bt.fontSize,"16px"),Vt=rt.extend("--ft-typography-body1-font-weight",bt.fontWeight,"normal"),Zt=rt.extend("--ft-typography-body1-letter-spacing",bt.letterSpacing,"0.496px"),Jt=rt.extend("--ft-typography-body1-line-height",bt.lineHeight,"24px"),Xt=rt.extend("--ft-typography-body1-text-transform",bt.textTransform,"inherit"),qt=rt.extend("--ft-typography-body2-font-family",mt),Gt=rt.extend("--ft-typography-body2-font-size",bt.fontSize,"14px"),Qt=rt.extend("--ft-typography-body2-font-weight",bt.fontWeight,"normal"),Yt=rt.extend("--ft-typography-body2-letter-spacing",bt.letterSpacing,"0.252px"),te=rt.extend("--ft-typography-body2-line-height",bt.lineHeight,"20px"),ee=rt.extend("--ft-typography-body2-text-transform",bt.textTransform,"inherit"),ie=rt.extend("--ft-typography-caption-font-family",mt),oe=rt.extend("--ft-typography-caption-font-size",bt.fontSize,"12px"),ne=rt.extend("--ft-typography-caption-font-weight",bt.fontWeight,"normal"),re=rt.extend("--ft-typography-caption-letter-spacing",bt.letterSpacing,"0.396px"),se=rt.extend("--ft-typography-caption-line-height",bt.lineHeight,"16px"),ae=rt.extend("--ft-typography-caption-text-transform",bt.textTransform,"inherit"),le=rt.extend("--ft-typography-breadcrumb-font-family",mt),he=rt.extend("--ft-typography-breadcrumb-font-size",bt.fontSize,"10px"),ce=rt.extend("--ft-typography-breadcrumb-font-weight",bt.fontWeight,"normal"),pe=rt.extend("--ft-typography-breadcrumb-letter-spacing",bt.letterSpacing,"0.33px"),fe=rt.extend("--ft-typography-breadcrumb-line-height",bt.lineHeight,"16px"),ue=rt.extend("--ft-typography-breadcrumb-text-transform",bt.textTransform,"inherit"),de=rt.extend("--ft-typography-overline-font-family",mt),ye=rt.extend("--ft-typography-overline-font-size",bt.fontSize,"10px"),ge=rt.extend("--ft-typography-overline-font-weight",bt.fontWeight,"normal"),ve=rt.extend("--ft-typography-overline-letter-spacing",bt.letterSpacing,"1.5px"),me=rt.extend("--ft-typography-overline-line-height",bt.lineHeight,"16px"),be=rt.extend("--ft-typography-overline-text-transform",bt.textTransform,"uppercase"),xe=rt.extend("--ft-typography-button-font-family",mt),we=rt.extend("--ft-typography-button-font-size",bt.fontSize,"14px"),Oe=rt.extend("--ft-typography-button-font-weight",bt.fontWeight,"600"),$e=rt.extend("--ft-typography-button-letter-spacing",bt.letterSpacing,"1.246px"),Se=rt.extend("--ft-typography-button-line-height",bt.lineHeight,"16px"),Ne=rt.extend("--ft-typography-button-text-transform",bt.textTransform,"uppercase"),Ce=c`
|
|
75
75
|
.ft-typography--title {
|
|
76
|
-
font-family: ${
|
|
77
|
-
font-size: ${
|
|
78
|
-
font-weight: ${
|
|
79
|
-
letter-spacing: ${
|
|
80
|
-
line-height: ${
|
|
81
|
-
text-transform: ${
|
|
76
|
+
font-family: ${xt};
|
|
77
|
+
font-size: ${wt};
|
|
78
|
+
font-weight: ${Ot};
|
|
79
|
+
letter-spacing: ${$t};
|
|
80
|
+
line-height: ${St};
|
|
81
|
+
text-transform: ${Nt};
|
|
82
82
|
}
|
|
83
|
-
`,
|
|
83
|
+
`,Re=c`
|
|
84
84
|
.ft-typography--title-dense {
|
|
85
|
-
font-family: ${
|
|
86
|
-
font-size: ${
|
|
87
|
-
font-weight: ${
|
|
88
|
-
letter-spacing: ${
|
|
89
|
-
line-height: ${
|
|
90
|
-
text-transform: ${
|
|
85
|
+
font-family: ${Ct};
|
|
86
|
+
font-size: ${Rt};
|
|
87
|
+
font-weight: ${Et};
|
|
88
|
+
letter-spacing: ${Mt};
|
|
89
|
+
line-height: ${Ut};
|
|
90
|
+
text-transform: ${Ft};
|
|
91
91
|
}
|
|
92
|
-
`,
|
|
92
|
+
`,Ee=c`
|
|
93
93
|
.ft-typography--subtitle1 {
|
|
94
|
-
font-family: ${
|
|
95
|
-
font-size: ${
|
|
96
|
-
font-weight: ${
|
|
97
|
-
letter-spacing: ${
|
|
98
|
-
line-height: ${
|
|
99
|
-
text-transform: ${
|
|
94
|
+
font-family: ${kt};
|
|
95
|
+
font-size: ${Lt};
|
|
96
|
+
font-weight: ${Tt};
|
|
97
|
+
letter-spacing: ${At};
|
|
98
|
+
line-height: ${Pt};
|
|
99
|
+
text-transform: ${zt};
|
|
100
100
|
}
|
|
101
|
-
`,
|
|
101
|
+
`,Me=c`
|
|
102
102
|
.ft-typography--subtitle2 {
|
|
103
|
-
font-family: ${
|
|
104
|
-
font-size: ${
|
|
105
|
-
font-weight: ${
|
|
106
|
-
letter-spacing: ${
|
|
107
|
-
line-height: ${
|
|
108
|
-
text-transform: ${
|
|
103
|
+
font-family: ${_t};
|
|
104
|
+
font-size: ${Bt};
|
|
105
|
+
font-weight: ${Dt};
|
|
106
|
+
letter-spacing: ${jt};
|
|
107
|
+
line-height: ${Wt};
|
|
108
|
+
text-transform: ${Ht};
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
`,
|
|
111
|
+
`,Ue=c`
|
|
112
112
|
.ft-typography--body1 {
|
|
113
|
-
font-family: ${
|
|
114
|
-
font-size: ${
|
|
115
|
-
font-weight: ${
|
|
116
|
-
letter-spacing: ${
|
|
117
|
-
line-height: ${
|
|
118
|
-
text-transform: ${
|
|
113
|
+
font-family: ${Kt};
|
|
114
|
+
font-size: ${It};
|
|
115
|
+
font-weight: ${Vt};
|
|
116
|
+
letter-spacing: ${Zt};
|
|
117
|
+
line-height: ${Jt};
|
|
118
|
+
text-transform: ${Xt};
|
|
119
119
|
}
|
|
120
|
-
`,
|
|
120
|
+
`,Fe=c`
|
|
121
121
|
.ft-typography--body2 {
|
|
122
|
-
font-family: ${
|
|
123
|
-
font-size: ${
|
|
124
|
-
font-weight: ${
|
|
125
|
-
letter-spacing: ${
|
|
126
|
-
line-height: ${
|
|
127
|
-
text-transform: ${
|
|
122
|
+
font-family: ${qt};
|
|
123
|
+
font-size: ${Gt};
|
|
124
|
+
font-weight: ${Qt};
|
|
125
|
+
letter-spacing: ${Yt};
|
|
126
|
+
line-height: ${te};
|
|
127
|
+
text-transform: ${ee};
|
|
128
128
|
}
|
|
129
|
-
`,
|
|
129
|
+
`,ke=c`
|
|
130
130
|
.ft-typography--caption {
|
|
131
|
-
font-family: ${
|
|
132
|
-
font-size: ${
|
|
133
|
-
font-weight: ${
|
|
134
|
-
letter-spacing: ${
|
|
135
|
-
line-height: ${
|
|
136
|
-
text-transform: ${
|
|
131
|
+
font-family: ${ie};
|
|
132
|
+
font-size: ${oe};
|
|
133
|
+
font-weight: ${ne};
|
|
134
|
+
letter-spacing: ${re};
|
|
135
|
+
line-height: ${se};
|
|
136
|
+
text-transform: ${ae};
|
|
137
137
|
}
|
|
138
|
-
`,
|
|
138
|
+
`,Le=c`
|
|
139
139
|
.ft-typography--breadcrumb {
|
|
140
|
-
font-family: ${
|
|
141
|
-
font-size: ${
|
|
142
|
-
font-weight: ${
|
|
143
|
-
letter-spacing: ${
|
|
144
|
-
line-height: ${
|
|
145
|
-
text-transform: ${
|
|
140
|
+
font-family: ${le};
|
|
141
|
+
font-size: ${he};
|
|
142
|
+
font-weight: ${ce};
|
|
143
|
+
letter-spacing: ${pe};
|
|
144
|
+
line-height: ${fe};
|
|
145
|
+
text-transform: ${ue};
|
|
146
146
|
}
|
|
147
|
-
`,
|
|
147
|
+
`,Te=c`
|
|
148
148
|
.ft-typography--overline {
|
|
149
|
-
font-family: ${
|
|
150
|
-
font-size: ${
|
|
151
|
-
font-weight: ${
|
|
152
|
-
letter-spacing: ${
|
|
153
|
-
line-height: ${
|
|
154
|
-
text-transform: ${
|
|
149
|
+
font-family: ${de};
|
|
150
|
+
font-size: ${ye};
|
|
151
|
+
font-weight: ${ge};
|
|
152
|
+
letter-spacing: ${ve};
|
|
153
|
+
line-height: ${me};
|
|
154
|
+
text-transform: ${be};
|
|
155
155
|
}
|
|
156
|
-
`,
|
|
156
|
+
`,Ae=c`
|
|
157
157
|
.ft-typography--button {
|
|
158
|
-
font-family: ${
|
|
159
|
-
font-size: ${
|
|
160
|
-
font-weight: ${
|
|
161
|
-
letter-spacing: ${
|
|
162
|
-
line-height: ${
|
|
163
|
-
text-transform: ${
|
|
158
|
+
font-family: ${xe};
|
|
159
|
+
font-size: ${we};
|
|
160
|
+
font-weight: ${Oe};
|
|
161
|
+
letter-spacing: ${$e};
|
|
162
|
+
line-height: ${Se};
|
|
163
|
+
text-transform: ${Ne};
|
|
164
164
|
}
|
|
165
|
-
`;class
|
|
166
|
-
<${
|
|
165
|
+
`;class Pe extends at{constructor(){super(...arguments),this.variant=yt.body1}render(){return this.element?dt`
|
|
166
|
+
<${ft(this.element)}
|
|
167
167
|
class="ft-typography ft-typography--${this.variant}">
|
|
168
168
|
<slot></slot>
|
|
169
|
-
</${
|
|
170
|
-
`:
|
|
169
|
+
</${ft(this.element)}>
|
|
170
|
+
`:dt`
|
|
171
171
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
172
|
-
`}}
|
|
172
|
+
`}}Pe.styles=[Ce,Re,Ee,Me,Ue,Fe,ke,Le,Te,Ae,c`
|
|
173
173
|
.ft-typography {
|
|
174
174
|
vertical-align: inherit;
|
|
175
175
|
}
|
|
176
|
-
`],
|
|
176
|
+
`],gt([i()],Pe.prototype,"element",void 0),gt([i()],Pe.prototype,"variant",void 0),n("ft-typography")(Pe);var ze=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 _e={textColor:rt.external(st.colorOnSurfaceHigh,"Design system"),titleColor:rt.external(st.colorOnSurfaceMedium,"Design system")};class Be 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?_`
|
|
177
177
|
<div class="ft-trend">
|
|
178
178
|
<ft-typography variant="subtitle2">
|
|
179
179
|
${this.label}
|
|
@@ -184,7 +184,7 @@ const ct=t=>({_$litStatic$:t}),pt=new Map,ft=(t=>(e,...i)=>{var o;const n=i.leng
|
|
|
184
184
|
</ft-typography>
|
|
185
185
|
</div>
|
|
186
186
|
</div>
|
|
187
|
-
`:
|
|
187
|
+
`:_`
|
|
188
188
|
<div class="ft-trend">
|
|
189
189
|
<ft-typography variant="subtitle2">
|
|
190
190
|
${this.label}
|
|
@@ -199,13 +199,13 @@ const ct=t=>({_$litStatic$:t}),pt=new Map,ft=(t=>(e,...i)=>{var o;const n=i.leng
|
|
|
199
199
|
</ft-typography>
|
|
200
200
|
</div>
|
|
201
201
|
</div>
|
|
202
|
-
`}}
|
|
202
|
+
`}}Be.elementDefinitions={"ft-typography":Pe},Be.styles=c`
|
|
203
203
|
.ft-trend {
|
|
204
204
|
text-align: center;
|
|
205
|
-
color: ${
|
|
205
|
+
color: ${_e.textColor};
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
.ft-trend > div {
|
|
209
209
|
padding-top: 5px;
|
|
210
210
|
}
|
|
211
|
-
`,
|
|
211
|
+
`,ze([i({type:String})],Be.prototype,"label",void 0),ze([i({type:Number})],Be.prototype,"currentValue",void 0),ze([i({type:Number})],Be.prototype,"previousValue",void 0),n("ft-trend")(Be),t.FtTrend=Be,t.FtTrendCssVariables=_e,Object.defineProperty(t,"t",{value:!0})}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-trend",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "Single stat value with a trend",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -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.2.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "^0.2.
|
|
22
|
+
"@fluid-topics/ft-typography": "^0.2.6",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "^0.2.6",
|
|
24
24
|
"lit": "2.1.3"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "829067f8828b03e0d191135ba63fc507a609cbe9"
|
|
27
27
|
}
|