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