@fluid-topics/ft-filterable-table 0.1.17 → 0.1.18

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.
@@ -1,90 +1,82 @@
1
1
  !function(t){
2
2
  /**
3
3
  * @license
4
- * Copyright 2019 Google LLC
5
- * SPDX-License-Identifier: BSD-3-Clause
6
- */
7
- const e=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),r=new Map;class o{constructor(t,e){if(this._$cssResult$=!0,e!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=r.get(this.cssText);return e&&void 0===t&&(r.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const n=t=>new o("string"==typeof t?t:t+"",i),s=(t,...e)=>{const r=1===t.length?t[0]:e.reduce(((e,i,r)=>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[r+1]),t[0]);return new o(r,i)},a=(t,i)=>{e?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((e=>{const i=document.createElement("style"),r=window.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=e.cssText,t.appendChild(i)}))},l=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return n(e)})(t):t
8
- /**
9
- * @license
10
- * Copyright 2017 Google LLC
11
- * SPDX-License-Identifier: BSD-3-Clause
12
- */;var c;const p=window.trustedTypes,d=p?p.emptyScript:"",u=window.reactiveElementPolyfillSupport,f={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}},h=(t,e)=>e!==t&&(e==e||t==t),m={attribute:!0,type:String,converter:f,reflect:!1,hasChanged:h};class v 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 r=this._$Eh(i,e);void 0!==r&&(this._$Eu.set(r,i),t.push(r))})),t}static createProperty(t,e=m){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,r=this.getPropertyDescriptor(t,i,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(r){const o=this[t];this[e]=r,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||m}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Eu=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static _$Eh(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return a(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$Eg)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ES(t,e,i=m){var r,o;const n=this.constructor._$Eh(t,i);if(void 0!==n&&!0===i.reflect){const s=(null!==(o=null===(r=i.converter)||void 0===r?void 0:r.toAttribute)&&void 0!==o?o:f.toAttribute)(e,i.type);this._$Ei=t,null==s?this.removeAttribute(n):this.setAttribute(n,s),this._$Ei=null}}_$AK(t,e){var i,r,o;const n=this.constructor,s=n._$Eu.get(t);if(void 0!==s&&this._$Ei!==s){const t=n.getPropertyOptions(s),a=t.converter,l=null!==(o=null!==(r=null===(i=a)||void 0===i?void 0:i.fromAttribute)&&void 0!==r?r:"function"==typeof a?a:null)&&void 0!==o?o:f.fromAttribute;this._$Ei=s,this[s]=l(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let r=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||h)(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))):r=!1),!this.isUpdatePending&&r&&(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){}}
13
- /**
14
- * @license
15
- * Copyright 2017 Google LLC
16
- * SPDX-License-Identifier: BSD-3-Clause
17
- */
18
- var y;v.finalized=!0,v.elementProperties=new Map,v.elementStyles=[],v.shadowRootOptions={mode:"open"},null==u||u({ReactiveElement:v}),(null!==(c=globalThis.reactiveElementVersions)&&void 0!==c?c:globalThis.reactiveElementVersions=[]).push("1.2.2");const b=globalThis.trustedTypes,g=b?b.createPolicy("lit-html",{createHTML:t=>t}):void 0,x=`lit$${(Math.random()+"").slice(9)}$`,w="?"+x,$=`<${w}>`,O=document,S=(t="")=>O.createComment(t),k=t=>null===t||"object"!=typeof t&&"function"!=typeof t,C=Array.isArray,E=t=>{var e;return C(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])},R=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,z=/-->/g,N=/>/g,F=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,T=/'/g,A=/"/g,M=/^(?:script|style|textarea|title)$/i,j=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),D=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),B=new WeakMap,_=O.createTreeWalker(O,129,null,!1),I=(t,e)=>{const i=t.length-1,r=[];let o,n=2===e?"<svg>":"",s=R;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,p=0;for(;p<i.length&&(s.lastIndex=p,l=s.exec(i),null!==l);)p=s.lastIndex,s===R?"!--"===l[1]?s=z:void 0!==l[1]?s=N:void 0!==l[2]?(M.test(l[2])&&(o=RegExp("</"+l[2],"g")),s=F):void 0!==l[3]&&(s=F):s===F?">"===l[0]?(s=null!=o?o:R,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?F:'"'===l[3]?A:T):s===A||s===T?s=F:s===z||s===N?s=R:(s=F,o=void 0);const d=s===F&&t[e+1].startsWith("/>")?" ":"";n+=s===R?i+$:c>=0?(r.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+x+d):i+x+(-2===c?(r.push(void 0),e):d)}const a=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==g?g.createHTML(a):a,r]};class L{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,n=0;const s=t.length-1,a=this.parts,[l,c]=I(t,e);if(this.el=L.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!==(r=_.nextNode())&&a.length<s;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(x)){const i=c[n++];if(t.push(e),void 0!==i){const t=r.getAttribute(i.toLowerCase()+"$lit$").split(x),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?Z:"?"===e[1]?q:"@"===e[1]?G:W})}else a.push({type:6,index:o})}for(const e of t)r.removeAttribute(e)}if(M.test(r.tagName)){const t=r.textContent.split(x),e=t.length-1;if(e>0){r.textContent=b?b.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],S()),_.nextNode(),a.push({type:2,index:++o});r.append(t[e],S())}}}else if(8===r.nodeType)if(r.data===w)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(x,t+1));)a.push({type:7,index:o}),t+=x.length-1}o++}}static createElement(t,e){const i=O.createElement("template");return i.innerHTML=t,i}}function P(t,e,i=t,r){var o,n,s,a;if(e===D)return e;let l=void 0!==r?null===(o=i._$Cl)||void 0===o?void 0:o[r]:i._$Cu;const c=k(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(n=null==l?void 0:l._$AO)||void 0===n||n.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,r)),void 0!==r?(null!==(s=(a=i)._$Cl)&&void 0!==s?s:a._$Cl=[])[r]=l:i._$Cu=l),void 0!==l&&(e=P(t,l._$AS(t,e.values),l,r)),e}class H{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:r}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:O).importNode(i,!0);_.currentNode=o;let n=_.nextNode(),s=0,a=0,l=r[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new V(n,n.nextSibling,this,t):1===l.type?e=new l.ctor(n,l.name,l.strings,this,t):6===l.type&&(e=new X(n,this,t)),this.v.push(e),l=r[++a]}s!==(null==l?void 0:l.index)&&(n=_.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 V{constructor(t,e,i,r){var o;this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cg=null===(o=null==r?void 0:r.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=P(this,t,e),k(t)?t===U||null==t||""===t?(this._$AH!==U&&this._$AR(),this._$AH=U):t!==this._$AH&&t!==D&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):E(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!==U&&k(this._$AH)?this._$AA.nextSibling.data=t:this.S(O.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=L.createElement(r.h,this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.m(i);else{const t=new H(o,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 L(t)),e}A(t){C(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new V(this.M(S()),this.M(S()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$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 W{constructor(t,e,i,r,o){this.type=1,this._$AH=U,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=U}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const o=this.strings;let n=!1;if(void 0===o)t=P(this,t,e,0),n=!k(t)||t!==this._$AH&&t!==D,n&&(this._$AH=t);else{const r=t;let s,a;for(t=o[0],s=0;s<o.length-1;s++)a=P(this,r[i+s],e,s),a===D&&(a=this._$AH[s]),n||(n=!k(a)||a!==this._$AH[s]),a===U?t=U:t!==U&&(t+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}n&&!r&&this.k(t)}k(t){t===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Z extends W{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===U?void 0:t}}const K=b?b.emptyScript:"";class q extends W{constructor(){super(...arguments),this.type=4}k(t){t&&t!==U?this.element.setAttribute(this.name,K):this.element.removeAttribute(this.name)}}class G extends W{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=P(this,t,e,0))&&void 0!==i?i:U)===D)return;const r=this._$AH,o=t===U&&r!==U||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==U&&(r===U||o);o&&this.element.removeEventListener(this.name,this,r),n&&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){P(this,t)}}const J={P:"$lit$",V:x,L:w,I:1,N:I,R:H,D:E,j:P,H:V,O:W,F:q,B:G,W:Z,Z:X},Y=window.litHtmlPolyfillSupport;
19
- /**
20
- * @license
21
- * Copyright 2017 Google LLC
22
- * SPDX-License-Identifier: BSD-3-Clause
4
+ * Copyright (c) 2020 The Polymer Project Authors. All rights reserved.
5
+ * This code may only be used under the BSD style license found at
6
+ * http://polymer.github.io/LICENSE.txt
7
+ * The complete set of authors may be found at
8
+ * http://polymer.github.io/AUTHORS.txt
9
+ * The complete set of contributors may be found at
10
+ * http://polymer.github.io/CONTRIBUTORS.txt
11
+ * Code distributed by Google as part of the polymer project is also
12
+ * subject to an additional IP rights grant found at
13
+ * http://polymer.github.io/PATENTS.txt
14
+ *
15
+ * @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
23
16
  */
24
- var Q,tt;null==Y||Y(L,V),(null!==(y=globalThis.litHtmlVersions)&&void 0!==y?y:globalThis.litHtmlVersions=[]).push("2.1.3");class et extends v{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 r,o;const n=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:e;let s=n._$litPart$;if(void 0===s){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;n._$litPart$=s=new V(e.insertBefore(S(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return D}}et.finalized=!0,et._$litElement$=!0,null===(Q=globalThis.litElementHydrateSupport)||void 0===Q||Q.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");
17
+ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,n=new WeakMap,s=new WeakMap,r=new WeakMap,l=new WeakMap;let a;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 l=n.prototype.attributeChangedCallback,a=new Set(n.observedAttributes||[]);h(n,a,l);const p={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,p),this._definitionsByClass.set(n,p);let c=i.call(o,t);c||(c=d(t),e.call(o,t,c)),this===window.customElements&&(r.set(n,p),p.standInClass=c);const f=this._awaitingUpgrade.get(t);if(f){this._awaitingUpgrade.delete(t);for(const t of f)s.delete(t),u(t,p,!0)}const b=this._whenDefinedPromises.get(t);return void 0!==b&&(b.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){v.push(this),o.upgrade.apply(o,arguments),v.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=a;if(e)return a=void 0,e;const i=r.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 p=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!p(e)){const t=v[v.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},d=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?u(i,n):s.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):s.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):s.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)}},h=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const s=t.toLowerCase();if(e.has(s)){const t=this.getAttribute(s);o.call(this,s,n),i.call(this,s,t,n)}else o.call(this,s,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)})},f=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):f(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),a=t;try{new e.elementClass}catch(t){f(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)},b=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=b.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let v=[document];const y=(t,e,i)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){v.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),v.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const g=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){v.push(this),i.set.call(this,t),v.pop()}})};if(g(Element,"innerHTML"),g(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 s{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 r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new s(e)}})}}try{window.customElements.define("custom-element",null)}catch(Ut){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}
25
18
  /**
26
19
  * @license
27
20
  * Copyright 2017 Google LLC
28
21
  * SPDX-License-Identifier: BSD-3-Clause
29
- */
30
- const rt=t=>e=>"function"==typeof e?((t,e)=>(window.customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:i,elements:r}=e;return{kind:i,elements:r,finisher(e){window.customElements.define(t,e)}}})(t,e)
22
+ */const i=(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)}};
31
23
  /**
32
24
  * @license
33
25
  * Copyright 2017 Google LLC
34
26
  * SPDX-License-Identifier: BSD-3-Clause
35
- */,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)}};function nt(t){return(e,i)=>void 0!==i?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,i):ot(t,e)
27
+ */function o(t){return(e,o)=>void 0!==o?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,o):i(t,e)
36
28
  /**
37
29
  * @license
38
30
  * Copyright 2017 Google LLC
39
31
  * SPDX-License-Identifier: BSD-3-Clause
40
- */}function st(t){return nt({...t,state:!0})}
32
+ */}function n(t){return o({...t,state:!0})}
41
33
  /**
42
34
  * @license
43
35
  * Copyright 2017 Google LLC
44
36
  * SPDX-License-Identifier: BSD-3-Clause
45
- */const at=({finisher:t,descriptor:e})=>(i,r)=>{var o;if(void 0===r){const r=null!==(o=i.originalKey)&&void 0!==o?o:i.key,n=null!=e?{kind:"method",placement:"prototype",key:r,descriptor:e(i.key)}:{...i,key:r};return null!=t&&(n.finisher=function(e){t(e,r)}),n}{const o=i.constructor;void 0!==e&&Object.defineProperty(i,r,e(r)),null==t||t(o,r)}}
37
+ */const s=({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){const o=null!==(n=i.originalKey)&&void 0!==n?n:i.key,s=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(s.finisher=function(e){t(e,o)}),s}{const n=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(n,o)}}
46
38
  /**
47
39
  * @license
48
40
  * Copyright 2017 Google LLC
49
41
  * SPDX-License-Identifier: BSD-3-Clause
50
- */;function lt(t,e){return at({descriptor:i=>{const r={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;r.get=function(){var i,r;return void 0===this[e]&&(this[e]=null!==(r=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==r?r:null),this[e]}}return r}})}
42
+ */;function r(t,e){return s({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}
51
43
  /**
52
44
  * @license
53
45
  * Copyright 2021 Google LLC
54
46
  * SPDX-License-Identifier: BSD-3-Clause
55
- */var ct;const pt=null!=(null===(ct=window.HTMLSlotElement)||void 0===ct?void 0:ct.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));
47
+ */var l;const a=null!=(null===(l=window.HTMLSlotElement)||void 0===l?void 0:l.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));const p=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)}
56
48
  /**
57
49
  * @license
58
- * Copyright 2017 Google LLC
50
+ * Copyright 2019 Google LLC
59
51
  * SPDX-License-Identifier: BSD-3-Clause
60
- */
61
- const dt=1,ut=2,ft=t=>(...e)=>({_$litDirective$:t,values:e});class ht{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
52
+ */,c=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d=Symbol(),h=new Map;class f{constructor(t,e){if(this._$cssResult$=!0,e!==d)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t}get styleSheet(){let t=h.get(this.cssText);return c&&void 0===t&&(h.set(this.cssText,t=new CSSStyleSheet),t.replaceSync(this.cssText)),t}toString(){return this.cssText}}const u=t=>new f("string"==typeof t?t:t+"",d),b=(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 f(i,d)},v=(t,e)=>{c?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)}))},y=c?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return u(e)})(t):t
62
53
  /**
63
54
  * @license
64
- * Copyright 2020 Google LLC
55
+ * Copyright 2017 Google LLC
65
56
  * SPDX-License-Identifier: BSD-3-Clause
66
- */const{H:mt}=J,vt=()=>document.createComment(""),yt=(t,e,i)=>{var r;const o=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=o.insertBefore(vt(),n),r=o.insertBefore(vt(),n);i=new mt(e,r,t,t.options)}else{const e=i._$AB.nextSibling,s=i._$AM,a=s!==t;if(a){let e;null===(r=i._$AQ)||void 0===r||r.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==s._$AU&&i._$AP(e)}if(e!==n||a){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;o.insertBefore(t,n),t=e}}}return i},bt=(t,e,i=t)=>(t._$AI(e,i),t),gt={},xt=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const r=t._$AB.nextSibling;for(;i!==r;){const t=i.nextSibling;i.remove(),i=t}},wt=(t,e,i)=>{const r=new Map;for(let o=e;o<=i;o++)r.set(t[o],o);return r},$t=ft(class extends ht{constructor(t){if(super(t),t.type!==ut)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let r;void 0===i?i=e:void 0!==e&&(r=e);const o=[],n=[];let s=0;for(const e of t)o[s]=r?r(e,s):s,n[s]=i(e,s),s++;return{values:n,keys:o}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,r]){var o;const n=(t=>t._$AH)(t),{values:s,keys:a}=this.dt(e,i,r);if(!Array.isArray(n))return this.at=a,s;const l=null!==(o=this.at)&&void 0!==o?o:this.at=[],c=[];let p,d,u=0,f=n.length-1,h=0,m=s.length-1;for(;u<=f&&h<=m;)if(null===n[u])u++;else if(null===n[f])f--;else if(l[u]===a[h])c[h]=bt(n[u],s[h]),u++,h++;else if(l[f]===a[m])c[m]=bt(n[f],s[m]),f--,m--;else if(l[u]===a[m])c[m]=bt(n[u],s[m]),yt(t,c[m+1],n[u]),u++,m--;else if(l[f]===a[h])c[h]=bt(n[f],s[h]),yt(t,n[u],n[f]),f--,h++;else if(void 0===p&&(p=wt(a,h,m),d=wt(l,u,f)),p.has(l[u]))if(p.has(l[f])){const e=d.get(a[h]),i=void 0!==e?n[e]:null;if(null===i){const e=yt(t,n[u]);bt(e,s[h]),c[h]=e}else c[h]=bt(i,s[h]),yt(t,n[u],i),n[e]=null;h++}else xt(n[f]),f--;else xt(n[u]),u++;for(;h<=m;){const e=yt(t,c[m+1]);bt(e,s[h]),c[h++]=e}for(;u<=f;){const t=n[u++];null!==t&&xt(t)}return this.at=a,((t,e=gt)=>{t._$AH=e})(t,c),D}});
57
+ */;var g;const x=window.trustedTypes,m=x?x.emptyScript:"",$=window.reactiveElementPolyfillSupport,w={toAttribute(t,e){switch(e){case Boolean:t=t?m: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}},O=(t,e)=>e!==t&&(e==e||t==t),S={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:O};class k 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=S){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)||S}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(y(t))}else void 0!==t&&e.push(y(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 v(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=S){var o,n;const s=this.constructor._$Eh(t,i);if(void 0!==s&&!0===i.reflect){const r=(null!==(n=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:w.toAttribute)(e,i.type);this._$Ei=t,null==r?this.removeAttribute(s):this.setAttribute(s,r),this._$Ei=null}}_$AK(t,e){var i,o,n;const s=this.constructor,r=s._$Eu.get(t);if(void 0!==r&&this._$Ei!==r){const t=s.getPropertyOptions(r),l=t.converter,a=null!==(n=null!==(o=null===(i=l)||void 0===i?void 0:i.fromAttribute)&&void 0!==o?o:"function"==typeof l?l:null)&&void 0!==n?n:w.fromAttribute;this._$Ei=r,this[r]=a(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||O)(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){}}
67
58
  /**
68
59
  * @license
69
60
  * Copyright 2017 Google LLC
70
61
  * SPDX-License-Identifier: BSD-3-Clause
71
62
  */
63
+ var C;k.finalized=!0,k.elementProperties=new Map,k.elementStyles=[],k.shadowRootOptions={mode:"open"},null==$||$({ReactiveElement:k}),(null!==(g=globalThis.reactiveElementVersions)&&void 0!==g?g:globalThis.reactiveElementVersions=[]).push("1.2.2");const E=globalThis.trustedTypes,R=E?E.createPolicy("lit-html",{createHTML:t=>t}):void 0,N=`lit$${(Math.random()+"").slice(9)}$`,z="?"+N,M=`<${z}>`,F=document,U=(t="")=>F.createComment(t),D=t=>null===t||"object"!=typeof t&&"function"!=typeof t,B=Array.isArray,L=t=>{var e;return B(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])},T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,A=/-->/g,j=/>/g,_=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,I=/'/g,P=/"/g,H=/^(?:script|style|textarea|title)$/i,W=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),Z=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),V=new WeakMap,X=F.createTreeWalker(F,129,null,!1),q=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=T;for(let e=0;e<i;e++){const i=t[e];let l,a,p=-1,c=0;for(;c<i.length&&(r.lastIndex=c,a=r.exec(i),null!==a);)c=r.lastIndex,r===T?"!--"===a[1]?r=A:void 0!==a[1]?r=j:void 0!==a[2]?(H.test(a[2])&&(n=RegExp("</"+a[2],"g")),r=_):void 0!==a[3]&&(r=_):r===_?">"===a[0]?(r=null!=n?n:T,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?_:'"'===a[3]?P:I):r===P||r===I?r=_:r===A||r===j?r=T:(r=_,n=void 0);const d=r===_&&t[e+1].startsWith("/>")?" ":"";s+=r===T?i+M:p>=0?(o.push(l),i.slice(0,p)+"$lit$"+i.slice(p)+N+d):i+N+(-2===p?(o.push(void 0),e):d)}const l=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==R?R.createHTML(l):l,o]};class J{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,l=this.parts,[a,p]=q(t,e);if(this.el=J.createElement(a,i),X.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=X.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(N)){const i=p[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(N),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?et:"?"===e[1]?ot:"@"===e[1]?nt:tt})}else l.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(H.test(o.tagName)){const t=o.textContent.split(N),e=t.length-1;if(e>0){o.textContent=E?E.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],U()),X.nextNode(),l.push({type:2,index:++n});o.append(t[e],U())}}}else if(8===o.nodeType)if(o.data===z)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(N,t+1));)l.push({type:7,index:n}),t+=N.length-1}n++}}static createElement(t,e){const i=F.createElement("template");return i.innerHTML=t,i}}function Y(t,e,i=t,o){var n,s,r,l;if(e===Z)return e;let a=void 0!==o?null===(n=i._$Cl)||void 0===n?void 0:n[o]:i._$Cu;const p=D(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(s=null==a?void 0:a._$AO)||void 0===s||s.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,i,o)),void 0!==o?(null!==(r=(l=i)._$Cl)&&void 0!==r?r:l._$Cl=[])[o]=a:i._$Cu=a),void 0!==a&&(e=Y(t,a._$AS(t,e.values),a,o)),e}class G{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:F).importNode(i,!0);X.currentNode=n;let s=X.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new Q(s,s.nextSibling,this,t):1===a.type?e=new a.ctor(s,a.name,a.strings,this,t):6===a.type&&(e=new st(s,this,t)),this.v.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(s=X.nextNode(),r++)}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 Q{constructor(t,e,i,o){var n;this.type=2,this._$AH=K,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=Y(this,t,e),D(t)?t===K||null==t||""===t?(this._$AH!==K&&this._$AR(),this._$AH=K):t!==this._$AH&&t!==Z&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):L(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!==K&&D(this._$AH)?this._$AA.nextSibling.data=t:this.S(F.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 G(n,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=V.get(t.strings);return void 0===e&&V.set(t.strings,e=new J(t)),e}A(t){B(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 Q(this.M(U()),this.M(U()),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 tt{constructor(t,e,i,o,n){this.type=1,this._$AH=K,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=K}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let s=!1;if(void 0===n)t=Y(this,t,e,0),s=!D(t)||t!==this._$AH&&t!==Z,s&&(this._$AH=t);else{const o=t;let r,l;for(t=n[0],r=0;r<n.length-1;r++)l=Y(this,o[i+r],e,r),l===Z&&(l=this._$AH[r]),s||(s=!D(l)||l!==this._$AH[r]),l===K?t=K:t!==K&&(t+=(null!=l?l:"")+n[r+1]),this._$AH[r]=l}s&&!o&&this.k(t)}k(t){t===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class et extends tt{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===K?void 0:t}}const it=E?E.emptyScript:"";class ot extends tt{constructor(){super(...arguments),this.type=4}k(t){t&&t!==K?this.element.setAttribute(this.name,it):this.element.removeAttribute(this.name)}}class nt extends tt{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=Y(this,t,e,0))&&void 0!==i?i:K)===Z)return;const o=this._$AH,n=t===K&&o!==K||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==K&&(o===K||n);n&&this.element.removeEventListener(this.name,this,o),s&&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 st{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){Y(this,t)}}const rt={P:"$lit$",V:N,L:z,I:1,N:q,R:G,D:L,j:Y,H:Q,O:tt,F:ot,B:nt,W:et,Z:st},lt=window.litHtmlPolyfillSupport;
72
64
  /**
73
65
  * @license
74
66
  * Copyright 2017 Google LLC
75
67
  * SPDX-License-Identifier: BSD-3-Clause
76
68
  */
77
- class Ot extends ht{constructor(t){if(super(t),this.it=U,t.type!==ut)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===U||null==t)return this.vt=void 0,this.it=t;if(t===D)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.vt;this.it=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Ot.directiveName="unsafeHTML",Ot.resultType=1;const St=ft(Ot);(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,r=[];!(i=t.next()).done;)r.push(i.value);t=r}return t}var r="function"==typeof Object.create?Object.create:function(t){function e(){}return e.prototype=t,new e};var o,n=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,r){return e=t(e,i),r&&Reflect.setPrototypeOf(e,r.prototype),e}}return function(t,e,i){return void 0===i&&(i=t),i=r(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 c=o;if(!ShadowRoot.prototype.createElement){var p,d=window.HTMLElement,u=window.customElements.define,f=window.customElements.get,h=window.customElements,m=new WeakMap,v=new WeakMap,y=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 r=i.prototype.attributeChangedCallback,o=new Set(i.observedAttributes||[]);if(x(i,o,r),r={g:i,connectedCallback:i.prototype.connectedCallback,disconnectedCallback:i.prototype.disconnectedCallback,adoptedCallback:i.prototype.adoptedCallback,attributeChangedCallback:r,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,r),this.o.set(i,r),(o=f.call(h,t))||(o=g(t),u.call(h,t,o)),this===window.customElements&&(y.set(i,r),r.s=o),o=this.h.get(t)){this.h.delete(t);for(var n=(o=e(o)).next();!n.done;n=o.next())n=n.value,v.delete(n),$(n,r,!0)}return void 0!==(r=this.i.get(t))&&(r.resolve(i),this.i.delete(t)),i},window.CustomElementRegistry.prototype.upgrade=function(){S.push(this),h.upgrade.apply(h,arguments),S.pop()},window.CustomElementRegistry.prototype.get=function(t){var e;return null==(e=this.l.get(t))?void 0:e.g},window.CustomElementRegistry.prototype.j=function(t){return this.l.get(t)},window.CustomElementRegistry.prototype.whenDefined=function(t){var e=this.j(t);if(void 0!==e)return Promise.resolve(e.g);var i=this.i.get(t);return void 0===i&&((i={}).promise=new Promise((function(t){return i.resolve=t})),this.i.set(t,i)),i.promise},window.CustomElementRegistry.prototype.m=function(t,e,i){var r=this.h.get(e);r||this.h.set(e,r=new Set),i?r.add(t):r.delete(t)},window.HTMLElement=function(){var t=p;if(t)return p=void 0,t;var e=y.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(d,[],e.s),Object.setPrototypeOf(t,this.constructor.prototype),m.set(t,e),t},window.HTMLElement.prototype=d.prototype;var g=function(t){function e(){var e=Reflect.construct(d,[],this.constructor);Object.setPrototypeOf(e,HTMLElement.prototype);t:{var i=e.getRootNode();if(!(i===document||i instanceof ShadowRoot)){if((i=S[S.length-1])instanceof CustomElementRegistry){var r=i;break t}(i=i.getRootNode())===document||i instanceof ShadowRoot||(i=(null==(r=b.get(i))?void 0:r.getRootNode())||document)}r=i.customElements}return(i=(r=r||window.customElements).j(t))?$(e,i):v.set(e,r),e}return n.Object.defineProperty(e,"formAssociated",{configurable:!0,enumerable:!0,get:function(){return!0}}),e.prototype.connectedCallback=function(){var e=m.get(this);e?e.connectedCallback&&e.connectedCallback.apply(this,arguments):v.get(this).m(this,t,!0)},e.prototype.disconnectedCallback=function(){var e=m.get(this);e?e.disconnectedCallback&&e.disconnectedCallback.apply(this,arguments):v.get(this).m(this,t,!1)},e.prototype.adoptedCallback=function(){var t,e;null==(t=m.get(this))||null==(e=t.adoptedCallback)||e.apply(this,arguments)},e.prototype.formAssociatedCallback=function(){var t,e=m.get(this);e&&e.formAssociated&&(null==e||null==(t=e.formAssociatedCallback)||t.apply(this,arguments))},e.prototype.formDisabledCallback=function(){var t,e=m.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formDisabledCallback)||t.apply(this,arguments))},e.prototype.formResetCallback=function(){var t,e=m.get(this);null!=e&&e.formAssociated&&(null==e||null==(t=e.formResetCallback)||t.apply(this,arguments))},e.prototype.formStateRestoreCallback=function(){var t,e=m.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 r=t.prototype.setAttribute;r&&(t.prototype.setAttribute=function(t,o){if(t=t.toLowerCase(),e.has(t)){var n=this.getAttribute(t);r.call(this,t,o),i.call(this,t,n,o)}else r.call(this,t,o)});var o=t.prototype.removeAttribute;o&&(t.prototype.removeAttribute=function(t){if(t=t.toLowerCase(),e.has(t)){var r=this.getAttribute(t);o.call(this,t),i.call(this,t,r,null)}else o.call(this,t)})}},w=function(t){var e=Object.getPrototypeOf(t);if(e!==window.HTMLElement)return e===d?Object.setPrototypeOf(t,window.HTMLElement):w(e)},$=function(t,e,i){i=void 0!==i&&i,Object.setPrototypeOf(t,e.g.prototype),m.set(t,e),p=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)},O=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){var e=O.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};var S=[document],k=function(t,e,i){var r=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){S.push(this);var t=r.apply(i||this,arguments);return void 0!==t&&b.set(t,this),S.pop(),t}};k(ShadowRoot,"createElement",document),k(ShadowRoot,"importNode",document),k(Element,"insertAdjacentHTML");var C=function(t){var e=Object.getOwnPropertyDescriptor(t.prototype,"innerHTML");Object.defineProperty(t.prototype,"innerHTML",Object.assign({},e,{set:function(t){S.push(this),e.set.call(this,t),S.pop()}}))};if(C(Element),C(ShadowRoot),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){var E=new WeakMap,R=HTMLElement.prototype.attachInternals;HTMLElement.prototype.attachInternals=function(t){for(var e=[],r=0;r<arguments.length;++r)e[r]=arguments[r];return e=R.call.apply(R,[this].concat(i(e))),E.set(e,this),e},["setFormValue","setValidity","checkValidity","reportValidity"].forEach((function(t){var e=window.ElementInternals.prototype,r=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!==m.get(o).formAssociated)throw new DOMException("Failed to execute "+r+" on 'ElementInternals': The target element is not a form-associated custom element.");null==r||r.call.apply(r,[this].concat(i(e)))}}));var z=function(t){var e=s(Array,[].concat(i(t)),this.constructor);return e.h=t,e},N=z,F=Array;if(N.prototype=r(F.prototype),N.prototype.constructor=N,c)c(N,F);else for(var T in F)if("prototype"!=T)if(Object.defineProperties){var A=Object.getOwnPropertyDescriptor(F,T);A&&Object.defineProperty(N,T,A)}else N[T]=F[T];N.u=F.prototype,n.Object.defineProperty(z.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 M=function(t){var e=this,i=new Map;t.forEach((function(t,r){var o=t.getAttribute("name"),n=i.get(o)||[];e[+r]=t,n.push(t),i.set(o,n)})),this.length=t.length,i.forEach((function(t,i){t&&(e[i]=1===t.length?t[0]:new z(t))}))};M.prototype.namedItem=function(t){return this[t]};var j=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){for(var t=j.get.call(this,[]),i=[],r=(t=e(t)).next();!r.done;r=t.next()){r=r.value;var o=m.get(r);o&&!0!==o.formAssociated||i.push(r)}return new M(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,r)=>{try{e.bind(window.customElements)(t,i,r)}catch(e){console.warn(t,i,r,e)}}}class kt{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){this.callbacks=[t],this.debounce(e)}queue(t,e){this.callbacks.push(t),this.debounce(e)}cancel(){null!=this._debounce&&window.clearTimeout(this._debounce)}debounce(t){this.cancel(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout)}runCallbacks(){for(let t of this.callbacks)t();this.callbacks=[]}}const Ct=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};class Et{constructor(t,e,i,r,o){this.name=t,this.category=e,this.fallbackVariable=i,this.defaultValue=r,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 Et(t,e,void 0,i)}static extend(t,e,i){return new Et(t,e.category,e,i)}static external(t,e){return new Et(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return s`var(${n(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):n(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()]:[]}}function Rt(t,e){return n(`${t.name}: ${e}`)}const zt={colorPrimary:Et.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:Et.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:Et.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:Et.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:Et.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:Et.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:Et.create("--ft-color-error","COLOR","#B00020"),colorOutline:Et.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:Et.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:Et.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:Et.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:Et.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:Et.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:Et.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:Et.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:Et.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:Et.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:Et.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:Et.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:Et.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:Et.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:Et.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:Et.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:Et.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:Et.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:Et.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:Et.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:Et.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:Et.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:Et.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:Et.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:Et.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:Et.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:Et.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:Et.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:Et.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:Et.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:Et.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:Et.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:Et.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:Et.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:Et.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:Et.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:Et.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:Et.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:Et.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:Et.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:Et.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:Et.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:Et.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:Et.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:Et.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:Et.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:Et.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:Et.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:Et.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:Et.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:Et.create("--ft-border-radius-XL","SIZE","16px"),titleFont:Et.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:Et.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:Et.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:Et.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
69
+ var at,pt;null==lt||lt(J,Q),(null!==(C=globalThis.litHtmlVersions)&&void 0!==C?C:globalThis.litHtmlVersions=[]).push("2.1.3");class ct extends k{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 s=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=s._$litPart$;if(void 0===r){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;s._$litPart$=r=new Q(e.insertBefore(U(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(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 Z}}ct.finalized=!0,ct._$litElement$=!0,null===(at=globalThis.litElementHydrateSupport)||void 0===at||at.call(globalThis,{LitElement:ct});const dt=globalThis.litElementPolyfillSupport;null==dt||dt({LitElement:ct}),(null!==(pt=globalThis.litElementVersions)&&void 0!==pt?pt:globalThis.litElementVersions=[]).push("3.1.2");class ht{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 ht(t,e,void 0,i)}static extend(t,e,i){return new ht(t,e.category,e,i)}static external(t,e){return new ht(t.name,t.category,t.fallbackVariable,t.defaultValue,e)}get(t){return b`var(${u(this.name)}, ${this.defaultCssValue(t)})`}defaultCssValue(t){return this.fallbackVariable?this.fallbackVariable.get(null!=t?t:this.defaultValue):u(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()]:[]}}function ft(t,e){return u(`${t.name}: ${e}`)}const ut={colorPrimary:ht.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ht.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ht.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ht.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ht.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ht.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ht.create("--ft-color-error","COLOR","#B00020"),colorOutline:ht.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ht.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ht.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ht.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ht.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ht.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ht.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ht.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ht.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ht.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ht.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ht.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ht.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ht.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ht.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ht.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ht.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ht.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ht.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ht.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ht.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ht.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ht.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ht.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ht.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ht.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ht.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ht.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ht.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ht.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ht.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ht.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ht.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ht.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ht.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ht.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ht.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ht.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:ht.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:ht.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:ht.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:ht.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:ht.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:ht.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:ht.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:ht.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:ht.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:ht.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ht.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ht.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ht.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ht.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ht.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ht.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ht.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
78
70
  /**
79
71
  * @license
80
72
  * Copyright 2021 Google LLC
81
73
  * SPDX-License-Identifier: BSD-3-Clause
82
- */class Nt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:r}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const o=this.renderOptions.creationScope=this.attachShadow({...r,customElements:t.registry});return a(o,this.constructor.elementStyles),o}}}(et)){constructor(){super(),this.constructorName=this.constructor.name,this.proto=this.constructor.prototype}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),j`
83
- ${t.map((t=>j`
74
+ */class bt 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 v(n,this.constructor.elementStyles),n}}}(ct)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),W`
75
+ ${t.map((t=>W`
84
76
  <style>${t}</style>
85
77
  `))}
86
78
  ${this.getTemplate()}
87
- `}adoptedCallback(){Object.getPrototypeOf(this)!==this.constructorName&&Object.setPrototypeOf(this,this.proto)}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}const Ft=s`
79
+ `}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}const vt=b`
88
80
  .ft-no-text-select {
89
81
  -webkit-touch-callout: none;
90
82
  -webkit-user-select: none;
@@ -93,67 +85,88 @@ class Ot extends ht{constructor(t){if(super(t),this.it=U,t.type!==ut)throw Error
93
85
  -ms-user-select: none;
94
86
  user-select: none;
95
87
  }
96
- `;var Tt,At,Mt;const jt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(Mt=null===(At=null===(Tt=window.safari)||void 0===Tt?void 0:Tt.pushNotification)||void 0===At?void 0:At.toString())&&void 0!==Mt?Mt:""),Dt=ft(class extends ht{constructor(t){var e;if(super(t),t.type!==dt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,r;if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.et=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.et)||void 0===i?void 0:i.has(t))&&this.st.add(t);return this.render(e)}const o=t.element.classList;this.st.forEach((t=>{t in e||(o.remove(t),this.st.delete(t))}));for(const t in e){const i=!!e[t];i===this.st.has(t)||(null===(r=this.et)||void 0===r?void 0:r.has(t))||(i?(o.add(t),this.st.add(t)):(o.remove(t),this.st.delete(t)))}return D}}),Ut=t=>({_$litStatic$:t}),Bt=new Map,_t=(t=>(e,...i)=>{var r;const o=i.length;let n,s;const a=[],l=[];let c,p=0,d=!1;for(;p<o;){for(c=e[p];p<o&&void 0!==(s=i[p],n=null===(r=s)||void 0===r?void 0:r._$litStatic$);)c+=n+e[++p],d=!0;l.push(s),a.push(c),p++}if(p===o&&a.push(e[o]),d){const t=a.join("$$lit$$");void 0===(e=Bt.get(t))&&(a.raw=a,Bt.set(t,e=a)),i=l}return t(e,...i)})(j);
88
+ `;var yt,gt,xt;const mt=navigator.vendor&&!!navigator.vendor.match(/apple/i)||"[object SafariRemoteNotification]"===(null!==(xt=null===(gt=null===(yt=window.safari)||void 0===yt?void 0:yt.pushNotification)||void 0===gt?void 0:gt.toString())&&void 0!==xt?xt:""),$t=1,wt=2,Ot=t=>(...e)=>({_$litDirective$:t,values:e});
89
+ /**
90
+ * @license
91
+ * Copyright 2017 Google LLC
92
+ * SPDX-License-Identifier: BSD-3-Clause
93
+ */class St{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
94
+ /**
95
+ * @license
96
+ * Copyright 2020 Google LLC
97
+ * SPDX-License-Identifier: BSD-3-Clause
98
+ */const{H:kt}=rt,Ct=()=>document.createComment(""),Et=(t,e,i)=>{var o;const n=t._$AA.parentNode,s=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=n.insertBefore(Ct(),s),o=n.insertBefore(Ct(),s);i=new kt(e,o,t,t.options)}else{const e=i._$AB.nextSibling,r=i._$AM,l=r!==t;if(l){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==r._$AU&&i._$AP(e)}if(e!==s||l){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;n.insertBefore(t,s),t=e}}}return i},Rt=(t,e,i=t)=>(t._$AI(e,i),t),Nt={},zt=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},Mt=(t,e,i)=>{const o=new Map;for(let n=e;n<=i;n++)o.set(t[n],n);return o},Ft=Ot(class extends St{constructor(t){if(super(t),t.type!==wt)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const n=[],s=[];let r=0;for(const e of t)n[r]=o?o(e,r):r,s[r]=i(e,r),r++;return{values:s,keys:n}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,o]){var n;const s=(t=>t._$AH)(t),{values:r,keys:l}=this.dt(e,i,o);if(!Array.isArray(s))return this.at=l,r;const a=null!==(n=this.at)&&void 0!==n?n:this.at=[],p=[];let c,d,h=0,f=s.length-1,u=0,b=r.length-1;for(;h<=f&&u<=b;)if(null===s[h])h++;else if(null===s[f])f--;else if(a[h]===l[u])p[u]=Rt(s[h],r[u]),h++,u++;else if(a[f]===l[b])p[b]=Rt(s[f],r[b]),f--,b--;else if(a[h]===l[b])p[b]=Rt(s[h],r[b]),Et(t,p[b+1],s[h]),h++,b--;else if(a[f]===l[u])p[u]=Rt(s[f],r[u]),Et(t,s[h],s[f]),f--,u++;else if(void 0===c&&(c=Mt(l,u,b),d=Mt(a,h,f)),c.has(a[h]))if(c.has(a[f])){const e=d.get(l[u]),i=void 0!==e?s[e]:null;if(null===i){const e=Et(t,s[h]);Rt(e,r[u]),p[u]=e}else p[u]=Rt(i,r[u]),Et(t,s[h],i),s[e]=null;u++}else zt(s[f]),f--;else zt(s[h]),h++;for(;u<=b;){const e=Et(t,p[b+1]);Rt(e,r[u]),p[u++]=e}for(;h<=f;){const t=s[h++];null!==t&&zt(t)}return this.at=l,((t,e=Nt)=>{t._$AH=e})(t,p),Z}});
99
+ /**
100
+ * @license
101
+ * Copyright 2017 Google LLC
102
+ * SPDX-License-Identifier: BSD-3-Clause
103
+ */
104
+ /**
105
+ * @license
106
+ * Copyright 2017 Google LLC
107
+ * SPDX-License-Identifier: BSD-3-Clause
108
+ */
109
+ class Ut extends St{constructor(t){if(super(t),this.it=K,t.type!==wt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===K||null==t)return this.vt=void 0,this.it=t;if(t===Z)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this.vt;this.it=t;const e=[t];return e.raw=e,this.vt={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Ut.directiveName="unsafeHTML",Ut.resultType=1;const Dt=Ot(Ut),Bt=Ot(class extends St{constructor(t){var e;if(super(t),t.type!==$t||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.et=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.et)||void 0===i?void 0:i.has(t))&&this.st.add(t);return this.render(e)}const n=t.element.classList;this.st.forEach((t=>{t in e||(n.remove(t),this.st.delete(t))}));for(const t in e){const i=!!e[t];i===this.st.has(t)||(null===(o=this.et)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.st.add(t)):(n.remove(t),this.st.delete(t)))}return Z}}),Lt=t=>({_$litStatic$:t}),Tt=new Map,At=(t=>(e,...i)=>{var o;const n=i.length;let s,r;const l=[],a=[];let p,c=0,d=!1;for(;c<n;){for(p=e[c];c<n&&void 0!==(r=i[c],s=null===(o=r)||void 0===o?void 0:o._$litStatic$);)p+=s+e[++c],d=!0;a.push(r),l.push(p),c++}if(c===n&&l.push(e[n]),d){const t=l.join("$$lit$$");void 0===(e=Tt.get(t))&&(l.raw=l,Tt.set(t,e=l)),i=a}return t(e,...i)})(W);
97
110
  /**
98
111
  * @license
99
112
  * Copyright 2018 Google LLC
100
113
  * SPDX-License-Identifier: BSD-3-Clause
101
- */var It,Lt=function(t,e,i,r){for(var o,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>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"}(It||(It={}));const Pt=Et.extend("--ft-typography-font-family",zt.titleFont),Ht=Et.extend("--ft-typography-font-family",zt.contentFont),Vt={fontFamily:Ht,fontSize:Et.create("--ft-typography-font-size","SIZE","16px"),fontWeight:Et.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:Et.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:Et.create("--ft-typography-line-height","SIZE","24px"),textTransform:Et.create("--ft-typography-text-transform","UNKNOWN","inherit")},Wt=Et.extend("--ft-typography-title-font-family",Pt),Zt=Et.extend("--ft-typography-title-font-size",Vt.fontSize,"20px"),Kt=Et.extend("--ft-typography-title-font-weight",Vt.fontWeight,"normal"),qt=Et.extend("--ft-typography-title-letter-spacing",Vt.letterSpacing,"0.15px"),Gt=Et.extend("--ft-typography-title-line-height",Vt.lineHeight,"24px"),Xt=Et.extend("--ft-typography-title-text-transform",Vt.textTransform,"inherit"),Jt=Et.extend("--ft-typography-title-dense-font-family",Pt),Yt=Et.extend("--ft-typography-title-dense-font-size",Vt.fontSize,"14px"),Qt=Et.extend("--ft-typography-title-dense-font-weight",Vt.fontWeight,"normal"),te=Et.extend("--ft-typography-title-dense-letter-spacing",Vt.letterSpacing,"0.105px"),ee=Et.extend("--ft-typography-title-dense-line-height",Vt.lineHeight,"24px"),ie=Et.extend("--ft-typography-title-dense-text-transform",Vt.textTransform,"inherit"),re=Et.extend("--ft-typography-subtitle1-font-family",Ht),oe=Et.extend("--ft-typography-subtitle1-font-size",Vt.fontSize,"16px"),ne=Et.extend("--ft-typography-subtitle1-font-weight",Vt.fontWeight,"600"),se=Et.extend("--ft-typography-subtitle1-letter-spacing",Vt.letterSpacing,"0.144px"),ae=Et.extend("--ft-typography-subtitle1-line-height",Vt.lineHeight,"24px"),le=Et.extend("--ft-typography-subtitle1-text-transform",Vt.textTransform,"inherit"),ce=Et.extend("--ft-typography-subtitle2-font-family",Ht),pe=Et.extend("--ft-typography-subtitle2-font-size",Vt.fontSize,"14px"),de=Et.extend("--ft-typography-subtitle2-font-weight",Vt.fontWeight,"normal"),ue=Et.extend("--ft-typography-subtitle2-letter-spacing",Vt.letterSpacing,"0.098px"),fe=Et.extend("--ft-typography-subtitle2-line-height",Vt.lineHeight,"24px"),he=Et.extend("--ft-typography-subtitle2-text-transform",Vt.textTransform,"inherit"),me={fontFamily:Et.extend("--ft-typography-body1-font-family",Ht),fontSize:Et.extend("--ft-typography-body1-font-size",Vt.fontSize,"16px"),fontWeight:Et.extend("--ft-typography-body1-font-weight",Vt.fontWeight,"normal"),letterSpacing:Et.extend("--ft-typography-body1-letter-spacing",Vt.letterSpacing,"0.496px"),lineHeight:Et.extend("--ft-typography-body1-line-height",Vt.lineHeight,"24px"),textTransform:Et.extend("--ft-typography-body1-text-transform",Vt.textTransform,"inherit")},ve=Et.extend("--ft-typography-body2-font-family",Ht),ye=Et.extend("--ft-typography-body2-font-size",Vt.fontSize,"14px"),be=Et.extend("--ft-typography-body2-font-weight",Vt.fontWeight,"normal"),ge=Et.extend("--ft-typography-body2-letter-spacing",Vt.letterSpacing,"0.252px"),xe=Et.extend("--ft-typography-body2-line-height",Vt.lineHeight,"20px"),we=Et.extend("--ft-typography-body2-text-transform",Vt.textTransform,"inherit"),$e={fontFamily:Et.extend("--ft-typography-caption-font-family",Ht),fontSize:Et.extend("--ft-typography-caption-font-size",Vt.fontSize,"12px"),fontWeight:Et.extend("--ft-typography-caption-font-weight",Vt.fontWeight,"normal"),letterSpacing:Et.extend("--ft-typography-caption-letter-spacing",Vt.letterSpacing,"0.396px"),lineHeight:Et.extend("--ft-typography-caption-line-height",Vt.lineHeight,"16px"),textTransform:Et.extend("--ft-typography-caption-text-transform",Vt.textTransform,"inherit")},Oe=Et.extend("--ft-typography-breadcrumb-font-family",Ht),Se=Et.extend("--ft-typography-breadcrumb-font-size",Vt.fontSize,"10px"),ke=Et.extend("--ft-typography-breadcrumb-font-weight",Vt.fontWeight,"normal"),Ce=Et.extend("--ft-typography-breadcrumb-letter-spacing",Vt.letterSpacing,"0.33px"),Ee=Et.extend("--ft-typography-breadcrumb-line-height",Vt.lineHeight,"16px"),Re=Et.extend("--ft-typography-breadcrumb-text-transform",Vt.textTransform,"inherit"),ze=Et.extend("--ft-typography-overline-font-family",Ht),Ne=Et.extend("--ft-typography-overline-font-size",Vt.fontSize,"10px"),Fe=Et.extend("--ft-typography-overline-font-weight",Vt.fontWeight,"normal"),Te=Et.extend("--ft-typography-overline-letter-spacing",Vt.letterSpacing,"1.5px"),Ae=Et.extend("--ft-typography-overline-line-height",Vt.lineHeight,"16px"),Me=Et.extend("--ft-typography-overline-text-transform",Vt.textTransform,"uppercase"),je={fontFamily:Et.extend("--ft-typography-button-font-family",Ht),fontSize:Et.extend("--ft-typography-button-font-size",Vt.fontSize,"14px"),fontWeight:Et.extend("--ft-typography-button-font-weight",Vt.fontWeight,"600"),letterSpacing:Et.extend("--ft-typography-button-letter-spacing",Vt.letterSpacing,"1.246px"),lineHeight:Et.extend("--ft-typography-button-line-height",Vt.lineHeight,"16px"),textTransform:Et.extend("--ft-typography-button-text-transform",Vt.textTransform,"uppercase")},De=s`
114
+ */var jt,_t=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(jt||(jt={}));const It=ht.extend("--ft-typography-font-family",ut.titleFont),Pt=ht.extend("--ft-typography-font-family",ut.contentFont),Ht={fontFamily:Pt,fontSize:ht.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ht.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ht.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ht.create("--ft-typography-line-height","SIZE","24px"),textTransform:ht.create("--ft-typography-text-transform","UNKNOWN","inherit")},Wt=ht.extend("--ft-typography-title-font-family",It),Zt=ht.extend("--ft-typography-title-font-size",Ht.fontSize,"20px"),Kt=ht.extend("--ft-typography-title-font-weight",Ht.fontWeight,"normal"),Vt=ht.extend("--ft-typography-title-letter-spacing",Ht.letterSpacing,"0.15px"),Xt=ht.extend("--ft-typography-title-line-height",Ht.lineHeight,"24px"),qt=ht.extend("--ft-typography-title-text-transform",Ht.textTransform,"inherit"),Jt=ht.extend("--ft-typography-title-dense-font-family",It),Yt=ht.extend("--ft-typography-title-dense-font-size",Ht.fontSize,"14px"),Gt=ht.extend("--ft-typography-title-dense-font-weight",Ht.fontWeight,"normal"),Qt=ht.extend("--ft-typography-title-dense-letter-spacing",Ht.letterSpacing,"0.105px"),te=ht.extend("--ft-typography-title-dense-line-height",Ht.lineHeight,"24px"),ee=ht.extend("--ft-typography-title-dense-text-transform",Ht.textTransform,"inherit"),ie=ht.extend("--ft-typography-subtitle1-font-family",Pt),oe=ht.extend("--ft-typography-subtitle1-font-size",Ht.fontSize,"16px"),ne=ht.extend("--ft-typography-subtitle1-font-weight",Ht.fontWeight,"600"),se=ht.extend("--ft-typography-subtitle1-letter-spacing",Ht.letterSpacing,"0.144px"),re=ht.extend("--ft-typography-subtitle1-line-height",Ht.lineHeight,"24px"),le=ht.extend("--ft-typography-subtitle1-text-transform",Ht.textTransform,"inherit"),ae=ht.extend("--ft-typography-subtitle2-font-family",Pt),pe=ht.extend("--ft-typography-subtitle2-font-size",Ht.fontSize,"14px"),ce=ht.extend("--ft-typography-subtitle2-font-weight",Ht.fontWeight,"normal"),de=ht.extend("--ft-typography-subtitle2-letter-spacing",Ht.letterSpacing,"0.098px"),he=ht.extend("--ft-typography-subtitle2-line-height",Ht.lineHeight,"24px"),fe=ht.extend("--ft-typography-subtitle2-text-transform",Ht.textTransform,"inherit"),ue={fontFamily:ht.extend("--ft-typography-body1-font-family",Pt),fontSize:ht.extend("--ft-typography-body1-font-size",Ht.fontSize,"16px"),fontWeight:ht.extend("--ft-typography-body1-font-weight",Ht.fontWeight,"normal"),letterSpacing:ht.extend("--ft-typography-body1-letter-spacing",Ht.letterSpacing,"0.496px"),lineHeight:ht.extend("--ft-typography-body1-line-height",Ht.lineHeight,"24px"),textTransform:ht.extend("--ft-typography-body1-text-transform",Ht.textTransform,"inherit")},be=ht.extend("--ft-typography-body2-font-family",Pt),ve=ht.extend("--ft-typography-body2-font-size",Ht.fontSize,"14px"),ye=ht.extend("--ft-typography-body2-font-weight",Ht.fontWeight,"normal"),ge=ht.extend("--ft-typography-body2-letter-spacing",Ht.letterSpacing,"0.252px"),xe=ht.extend("--ft-typography-body2-line-height",Ht.lineHeight,"20px"),me=ht.extend("--ft-typography-body2-text-transform",Ht.textTransform,"inherit"),$e={fontFamily:ht.extend("--ft-typography-caption-font-family",Pt),fontSize:ht.extend("--ft-typography-caption-font-size",Ht.fontSize,"12px"),fontWeight:ht.extend("--ft-typography-caption-font-weight",Ht.fontWeight,"normal"),letterSpacing:ht.extend("--ft-typography-caption-letter-spacing",Ht.letterSpacing,"0.396px"),lineHeight:ht.extend("--ft-typography-caption-line-height",Ht.lineHeight,"16px"),textTransform:ht.extend("--ft-typography-caption-text-transform",Ht.textTransform,"inherit")},we=ht.extend("--ft-typography-breadcrumb-font-family",Pt),Oe=ht.extend("--ft-typography-breadcrumb-font-size",Ht.fontSize,"10px"),Se=ht.extend("--ft-typography-breadcrumb-font-weight",Ht.fontWeight,"normal"),ke=ht.extend("--ft-typography-breadcrumb-letter-spacing",Ht.letterSpacing,"0.33px"),Ce=ht.extend("--ft-typography-breadcrumb-line-height",Ht.lineHeight,"16px"),Ee=ht.extend("--ft-typography-breadcrumb-text-transform",Ht.textTransform,"inherit"),Re=ht.extend("--ft-typography-overline-font-family",Pt),Ne=ht.extend("--ft-typography-overline-font-size",Ht.fontSize,"10px"),ze=ht.extend("--ft-typography-overline-font-weight",Ht.fontWeight,"normal"),Me=ht.extend("--ft-typography-overline-letter-spacing",Ht.letterSpacing,"1.5px"),Fe=ht.extend("--ft-typography-overline-line-height",Ht.lineHeight,"16px"),Ue=ht.extend("--ft-typography-overline-text-transform",Ht.textTransform,"uppercase"),De={fontFamily:ht.extend("--ft-typography-button-font-family",Pt),fontSize:ht.extend("--ft-typography-button-font-size",Ht.fontSize,"14px"),fontWeight:ht.extend("--ft-typography-button-font-weight",Ht.fontWeight,"600"),letterSpacing:ht.extend("--ft-typography-button-letter-spacing",Ht.letterSpacing,"1.246px"),lineHeight:ht.extend("--ft-typography-button-line-height",Ht.lineHeight,"16px"),textTransform:ht.extend("--ft-typography-button-text-transform",Ht.textTransform,"uppercase")},Be=b`
102
115
  .ft-typography--title {
103
116
  font-family: ${Wt};
104
117
  font-size: ${Zt};
105
118
  font-weight: ${Kt};
106
- letter-spacing: ${qt};
107
- line-height: ${Gt};
108
- text-transform: ${Xt};
119
+ letter-spacing: ${Vt};
120
+ line-height: ${Xt};
121
+ text-transform: ${qt};
109
122
  }
110
- `,Ue=s`
123
+ `,Le=b`
111
124
  .ft-typography--title-dense {
112
125
  font-family: ${Jt};
113
126
  font-size: ${Yt};
114
- font-weight: ${Qt};
115
- letter-spacing: ${te};
116
- line-height: ${ee};
117
- text-transform: ${ie};
127
+ font-weight: ${Gt};
128
+ letter-spacing: ${Qt};
129
+ line-height: ${te};
130
+ text-transform: ${ee};
118
131
  }
119
- `,Be=s`
132
+ `,Te=b`
120
133
  .ft-typography--subtitle1 {
121
- font-family: ${re};
134
+ font-family: ${ie};
122
135
  font-size: ${oe};
123
136
  font-weight: ${ne};
124
137
  letter-spacing: ${se};
125
- line-height: ${ae};
138
+ line-height: ${re};
126
139
  text-transform: ${le};
127
140
  }
128
- `,_e=s`
141
+ `,Ae=b`
129
142
  .ft-typography--subtitle2 {
130
- font-family: ${ce};
143
+ font-family: ${ae};
131
144
  font-size: ${pe};
132
- font-weight: ${de};
133
- letter-spacing: ${ue};
134
- line-height: ${fe};
135
- text-transform: ${he};
145
+ font-weight: ${ce};
146
+ letter-spacing: ${de};
147
+ line-height: ${he};
148
+ text-transform: ${fe};
136
149
  }
137
150
 
138
- `,Ie=s`
151
+ `,je=b`
139
152
  .ft-typography--body1 {
140
- font-family: ${me.fontFamily};
141
- font-size: ${me.fontSize};
142
- font-weight: ${me.fontWeight};
143
- letter-spacing: ${me.letterSpacing};
144
- line-height: ${me.lineHeight};
145
- text-transform: ${me.textTransform};
153
+ font-family: ${ue.fontFamily};
154
+ font-size: ${ue.fontSize};
155
+ font-weight: ${ue.fontWeight};
156
+ letter-spacing: ${ue.letterSpacing};
157
+ line-height: ${ue.lineHeight};
158
+ text-transform: ${ue.textTransform};
146
159
  }
147
- `,Le=s`
160
+ `,_e=b`
148
161
  .ft-typography--body2 {
149
- font-family: ${ve};
150
- font-size: ${ye};
151
- font-weight: ${be};
162
+ font-family: ${be};
163
+ font-size: ${ve};
164
+ font-weight: ${ye};
152
165
  letter-spacing: ${ge};
153
166
  line-height: ${xe};
154
- text-transform: ${we};
167
+ text-transform: ${me};
155
168
  }
156
- `,Pe=s`
169
+ `,Ie=b`
157
170
  .ft-typography--caption {
158
171
  font-family: ${$e.fontFamily};
159
172
  font-size: ${$e.fontSize};
@@ -162,157 +175,260 @@ class Ot extends ht{constructor(t){if(super(t),this.it=U,t.type!==ut)throw Error
162
175
  line-height: ${$e.lineHeight};
163
176
  text-transform: ${$e.textTransform};
164
177
  }
165
- `,He=s`
178
+ `,Pe=b`
166
179
  .ft-typography--breadcrumb {
167
- font-family: ${Oe};
168
- font-size: ${Se};
169
- font-weight: ${ke};
170
- letter-spacing: ${Ce};
171
- line-height: ${Ee};
172
- text-transform: ${Re};
180
+ font-family: ${we};
181
+ font-size: ${Oe};
182
+ font-weight: ${Se};
183
+ letter-spacing: ${ke};
184
+ line-height: ${Ce};
185
+ text-transform: ${Ee};
173
186
  }
174
- `,Ve=s`
187
+ `,He=b`
175
188
  .ft-typography--overline {
176
- font-family: ${ze};
189
+ font-family: ${Re};
177
190
  font-size: ${Ne};
178
- font-weight: ${Fe};
179
- letter-spacing: ${Te};
180
- line-height: ${Ae};
181
- text-transform: ${Me};
191
+ font-weight: ${ze};
192
+ letter-spacing: ${Me};
193
+ line-height: ${Fe};
194
+ text-transform: ${Ue};
182
195
  }
183
- `,We=s`
196
+ `,We=b`
184
197
  .ft-typography--button {
185
- font-family: ${je.fontFamily};
186
- font-size: ${je.fontSize};
187
- font-weight: ${je.fontWeight};
188
- letter-spacing: ${je.letterSpacing};
189
- line-height: ${je.lineHeight};
190
- text-transform: ${je.textTransform};
198
+ font-family: ${De.fontFamily};
199
+ font-size: ${De.fontSize};
200
+ font-weight: ${De.fontWeight};
201
+ letter-spacing: ${De.letterSpacing};
202
+ line-height: ${De.lineHeight};
203
+ text-transform: ${De.textTransform};
191
204
  }
192
- `;let Ze=class extends Nt{constructor(){super(...arguments),this.variant=It.body1}getStyles(){return[De,Ue,Be,_e,Ie,Le,Pe,He,Ve,We,s`
193
- .ft-typography {
194
- vertical-align: inherit;
195
- }
196
- `]}getTemplate(){return this.element?_t`
197
- <${Ut(this.element)}
205
+ `;class Ze extends bt{constructor(){super(...arguments),this.variant=jt.body1}render(){return this.element?At`
206
+ <${Lt(this.element)}
198
207
  class="ft-typography ft-typography--${this.variant}">
199
208
  <slot></slot>
200
- </${Ut(this.element)}>
201
- `:_t`
209
+ </${Lt(this.element)}>
210
+ `:At`
202
211
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
203
- `}};Lt([nt()],Ze.prototype,"element",void 0),Lt([nt()],Ze.prototype,"variant",void 0),Ze=Lt([Ct("ft-typography")],Ze);var Ke=function(t,e,i,r){for(var o,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const qe={fontSize:Et.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:Et.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:Et.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:Et.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:Et.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:Et.extend("--ft-input-label-border-color",zt.colorOutline),textColor:Et.extend("--ft-input-label-text-color",zt.colorOnSurfaceMedium),disabledTextColor:Et.extend("--ft-input-label-disabled-text-color",zt.colorOnSurfaceDisabled),colorSurface:Et.external(zt.colorSurface,"Design system"),borderRadiusS:Et.external(zt.borderRadiusS,"Design system")};let Ge=class extends Nt{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1}getStyles(){return[Pe,s`
204
- .ft-input-label {
205
- position: absolute;
206
- inset: 0;
207
- display: flex;
208
- }
212
+ `}}Ze.styles=[Be,Le,Te,Ae,je,_e,Ie,Pe,He,We,b`
213
+ .ft-typography {
214
+ vertical-align: inherit;
215
+ }
216
+ `],_t([o()],Ze.prototype,"element",void 0),_t([o()],Ze.prototype,"variant",void 0),p("ft-typography")(Ze);var Ke=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const Ve={fontSize:ht.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:ht.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:ht.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:ht.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:ht.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:ht.extend("--ft-input-label-border-color",ut.colorOutline),textColor:ht.extend("--ft-input-label-text-color",ut.colorOnSurfaceMedium),disabledTextColor:ht.extend("--ft-input-label-disabled-text-color",ut.colorOnSurfaceDisabled),colorSurface:ht.external(ut.colorSurface,"Design system"),borderRadiusS:ht.external(ut.borderRadiusS,"Design system")};class Xe extends bt{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled};return W`
217
+ <div class="${Bt(t)}">
218
+ ${this.text?W`
219
+ <div class="ft-input-label--text ft-typography--caption">
220
+ <span class="ft-input-label--floating-text">${this.text}</span>
221
+ <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
222
+ </div>
223
+ `:null}
224
+ </div>
225
+ `}}Xe.elementDefinitions={},Xe.styles=[Ie,b`
226
+ .ft-input-label {
227
+ position: absolute;
228
+ inset: 0;
229
+ display: flex;
230
+ }
209
231
 
210
- .ft-input-label {
211
- border-color: ${qe.borderColor};
212
- }
232
+ .ft-input-label {
233
+ border-color: ${Ve.borderColor};
234
+ }
213
235
 
214
- .ft-input-label:before,
215
- .ft-input-label:after {
216
- content: "";
217
- display: flex;
218
- border-bottom-width: 1px;
219
- border-bottom-style: solid;
220
- border-color: inherit;
221
- }
236
+ .ft-input-label:before,
237
+ .ft-input-label:after {
238
+ content: "";
239
+ display: flex;
240
+ border-bottom-width: 1px;
241
+ border-bottom-style: solid;
242
+ border-color: inherit;
243
+ }
222
244
 
223
- .ft-input-label:before {
224
- width: ${qe.horizontalSpacing};
225
- flex-shrink: 0;
226
- }
245
+ .ft-input-label:before {
246
+ width: ${Ve.horizontalSpacing};
247
+ flex-shrink: 0;
248
+ }
227
249
 
228
- .ft-input-label:after {
229
- flex-grow: 1;
230
- flex-shrink: 1;
231
- }
250
+ .ft-input-label:after {
251
+ flex-grow: 1;
252
+ flex-shrink: 1;
253
+ }
232
254
 
233
- .ft-input-label--text {
234
- display: flex;
235
- flex-shrink: 1;
236
- position: relative;
237
- border-bottom-width: 1px;
238
- border-bottom-style: solid;
239
- border-color: inherit;
240
- color: ${qe.textColor};
241
- transition: font-size 250ms, line-height 250ms, color 250ms;
242
- ${Rt($e.fontSize,qe.fontSize)};
243
- ${Rt($e.lineHeight,qe.fontSize)};
244
- }
255
+ .ft-input-label--text {
256
+ display: flex;
257
+ flex-shrink: 1;
258
+ position: relative;
259
+ border-bottom-width: 1px;
260
+ border-bottom-style: solid;
261
+ border-color: inherit;
262
+ color: ${Ve.textColor};
263
+ transition: font-size 250ms, line-height 250ms, color 250ms;
264
+ ${ft($e.fontSize,Ve.fontSize)};
265
+ ${ft($e.lineHeight,Ve.fontSize)};
266
+ }
245
267
 
246
- .ft-input-label--disabled .ft-input-label--text {
247
- color: ${qe.disabledTextColor};
248
- }
268
+ .ft-input-label--disabled .ft-input-label--text {
269
+ color: ${Ve.disabledTextColor};
270
+ }
249
271
 
250
- .ft-input-label--hidden-text {
251
- padding: 0 4px;
252
- opacity: 0;
253
- }
272
+ .ft-input-label--hidden-text {
273
+ padding: 0 4px;
274
+ opacity: 0;
275
+ }
254
276
 
255
- .ft-input-label--floating-text {
256
- position: absolute;
257
- top: calc(50% - var(--ft-typography-caption-line-height) / 2);
258
- transition: top 250ms;
259
- width: calc(100% - 8px);
260
- overflow: hidden;
261
- white-space: nowrap;
262
- text-overflow: ellipsis;
263
- padding: ${qe.verticalSpacing} 4px;
264
- margin: calc(${qe.verticalSpacing} * -1) 0;
265
- }
277
+ .ft-input-label--floating-text {
278
+ position: absolute;
279
+ top: calc(50% - var(--ft-typography-caption-line-height) / 2);
280
+ transition: top 250ms;
281
+ width: calc(100% - 8px);
282
+ overflow: hidden;
283
+ white-space: nowrap;
284
+ text-overflow: ellipsis;
285
+ padding: ${Ve.verticalSpacing} 4px;
286
+ margin: calc(${Ve.verticalSpacing} * -1) 0;
287
+ }
266
288
 
267
- .ft-input-label--raised .ft-input-label--text {
268
- ${Rt($e.fontSize,qe.raisedFontSize)};
269
- ${Rt($e.lineHeight,qe.raisedFontSize)};
270
- }
289
+ .ft-input-label--raised .ft-input-label--text {
290
+ ${ft($e.fontSize,Ve.raisedFontSize)};
291
+ ${ft($e.lineHeight,Ve.raisedFontSize)};
292
+ }
271
293
 
272
- .ft-input-label--raised .ft-input-label--floating-text {
273
- top: ${qe.verticalSpacing};
274
- }
294
+ .ft-input-label--raised .ft-input-label--floating-text {
295
+ top: ${Ve.verticalSpacing};
296
+ }
275
297
 
276
- .ft-input-label--outlined .ft-input-label--text,
277
- .ft-input-label--outlined:before,
278
- .ft-input-label--outlined:after {
279
- border-top-width: 1px;
280
- border-top-style: solid;
281
- }
298
+ .ft-input-label--outlined .ft-input-label--text,
299
+ .ft-input-label--outlined:before,
300
+ .ft-input-label--outlined:after {
301
+ border-top-width: 1px;
302
+ border-top-style: solid;
303
+ }
282
304
 
283
- .ft-input-label--outlined:before {
284
- border-left-width: 1px;
285
- border-left-style: solid;
286
- border-radius: ${qe.borderRadiusS} 0 0 ${qe.borderRadiusS};
287
- }
305
+ .ft-input-label--outlined:before {
306
+ border-left-width: 1px;
307
+ border-left-style: solid;
308
+ border-radius: ${Ve.borderRadiusS} 0 0 ${Ve.borderRadiusS};
309
+ }
288
310
 
289
- .ft-input-label--outlined:after {
290
- border-right-width: 1px;
291
- border-right-style: solid;
292
- border-radius: 0 ${qe.borderRadiusS} ${qe.borderRadiusS} 0;
293
- }
311
+ .ft-input-label--outlined:after {
312
+ border-right-width: 1px;
313
+ border-right-style: solid;
314
+ border-radius: 0 ${Ve.borderRadiusS} ${Ve.borderRadiusS} 0;
315
+ }
294
316
 
295
- .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
296
- padding: 2px 4px;
297
- z-index: ${qe.raisedZIndex};
298
- background-color: ${qe.colorSurface};
299
- border-radius: ${qe.borderRadiusS};
300
- top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
301
- }
317
+ .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
318
+ padding: 2px 4px;
319
+ z-index: ${Ve.raisedZIndex};
320
+ background-color: ${Ve.colorSurface};
321
+ border-radius: ${Ve.borderRadiusS};
322
+ top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
323
+ }
302
324
 
303
- .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
304
- border-top: none;
305
- }
306
- `]}getTemplate(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled};return j`
307
- <div class="${Dt(t)}">
308
- ${this.text?j`
309
- <div class="ft-input-label--text ft-typography--caption">
310
- <span class="ft-input-label--floating-text">${this.text}</span>
311
- <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
312
- </div>
313
- `:null}
325
+ .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
326
+ border-top: none;
327
+ }
328
+ `],Ke([o({type:String})],Xe.prototype,"text",void 0),Ke([o({type:Boolean})],Xe.prototype,"raised",void 0),Ke([o({type:Boolean})],Xe.prototype,"outlined",void 0),Ke([o({type:Boolean})],Xe.prototype,"disabled",void 0),p("ft-input-label")(Xe);var qe=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const Je={color:ht.extend("--ft-ripple-color",ut.colorContent),primaryColor:ht.extend("--ft-ripple-primary-color",ht.extend("--ft-ripple-color",ut.colorPrimary)),secondaryColor:ht.extend("--ft-ripple-secondary-color",ht.extend("--ft-ripple-color",ut.colorSecondary)),opacityContentOnSurfacePressed:ht.external(ut.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ht.external(ut.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ht.external(ut.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ht.external(ut.opacityContentOnSurfaceSelected,"Design system")};class Ye extends bt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed)},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:n}=this.getCoordinates(t),s=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-s.x:s.width/2),this.originY=Math.round(null!=n?n-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return W`
329
+ <style>
330
+ .ft-ripple .ft-ripple--effect,
331
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
332
+ width: ${this.rippleSize}px;
333
+ height: ${this.rippleSize}px;
334
+ }
335
+
336
+ .ft-ripple .ft-ripple--effect {
337
+ left: ${this.originX}px;
338
+ top: ${this.originY}px;
339
+ }
340
+ </style>
341
+ <div class="${Bt(t)}">
342
+ <div class="ft-ripple--background"></div>
343
+ <div class="ft-ripple--effect"></div>
314
344
  </div>
315
- `}};Ge.elementDefinitions={},Ke([nt({type:String})],Ge.prototype,"text",void 0),Ke([nt({type:Boolean})],Ge.prototype,"raised",void 0),Ke([nt({type:Boolean})],Ge.prototype,"outlined",void 0),Ke([nt({type:Boolean})],Ge.prototype,"disabled",void 0),Ge=Ke([Ct("ft-input-label")],Ge);
345
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){super.updated(t),t.has("disabled")&&this.disabled&&this.endRipple(),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",n),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",n),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,n;return null!=e.x?({x:o,y:n}=e):null!=i.touches&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}Ye.elementDefinitions={},Ye.styles=b`
346
+ :host {
347
+ display: contents;
348
+ }
349
+
350
+ .ft-ripple {
351
+ position: absolute;
352
+ inset: 0;
353
+ pointer-events: none;
354
+ }
355
+
356
+ .ft-ripple:not(.ft-ripple--unbounded) {
357
+ overflow: hidden;
358
+ }
359
+
360
+ .ft-ripple .ft-ripple--background,
361
+ .ft-ripple .ft-ripple--effect {
362
+ position: absolute;
363
+ opacity: 0;
364
+ background-color: ${Je.color};
365
+ }
366
+
367
+ .ft-ripple.ft-ripple--secondary .ft-ripple--background,
368
+ .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
369
+ background-color: ${Je.secondaryColor};
370
+ }
371
+
372
+ .ft-ripple.ft-ripple--primary .ft-ripple--background,
373
+ .ft-ripple.ft-ripple--primary .ft-ripple--effect {
374
+ background-color: ${Je.primaryColor};
375
+ }
376
+
377
+ .ft-ripple .ft-ripple--background {
378
+ top: 0;
379
+ left: 0;
380
+ height: 100%;
381
+ width: 100%;
382
+ }
383
+
384
+ .ft-ripple .ft-ripple--effect,
385
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
386
+ border-radius: 50%;
387
+ }
388
+
389
+ .ft-ripple .ft-ripple--effect {
390
+ transform: translate(-50%, -50%) scale(0.15);
391
+ transition: transform 300ms ease, opacity 75ms linear;
392
+ }
393
+
394
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--effect,
395
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
396
+ left: 50%;
397
+ top: 50%;
398
+ }
399
+
400
+ .ft-ripple.ft-ripple--unbounded .ft-ripple--background {
401
+ transform: translate(-50%, -50%);
402
+ }
403
+
404
+ .ft-ripple.ft-ripple--hovered .ft-ripple--background {
405
+ opacity: ${Je.opacityContentOnSurfaceHover};
406
+ }
407
+
408
+ .ft-ripple.ft-ripple--selected .ft-ripple--background {
409
+ opacity: ${Je.opacityContentOnSurfaceSelected};
410
+ }
411
+
412
+ .ft-ripple.ft-ripple--focused .ft-ripple--background {
413
+ opacity: ${Je.opacityContentOnSurfaceFocused};
414
+ }
415
+
416
+ .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
417
+ opacity: ${Je.opacityContentOnSurfacePressed};
418
+ transform: translate(-50%, -50%) scale(1);
419
+ }
420
+ `,qe([o({type:Boolean})],Ye.prototype,"primary",void 0),qe([o({type:Boolean})],Ye.prototype,"secondary",void 0),qe([o({type:Boolean})],Ye.prototype,"unbounded",void 0),qe([o({type:Boolean})],Ye.prototype,"activated",void 0),qe([o({type:Boolean})],Ye.prototype,"selected",void 0),qe([o({type:Boolean})],Ye.prototype,"disabled",void 0),qe([n()],Ye.prototype,"hovered",void 0),qe([n()],Ye.prototype,"focused",void 0),qe([n()],Ye.prototype,"pressed",void 0),qe([n()],Ye.prototype,"rippling",void 0),qe([n()],Ye.prototype,"rippleSize",void 0),qe([n()],Ye.prototype,"originX",void 0),qe([n()],Ye.prototype,"originY",void 0),qe([r(".ft-ripple")],Ye.prototype,"ripple",void 0),qe([r(".ft-ripple--effect")],Ye.prototype,"rippleEffect",void 0),p("ft-ripple")(Ye);
421
+ /**
422
+ * @license
423
+ * Copyright 2021 Google LLC
424
+ * SPDX-LIcense-Identifier: Apache-2.0
425
+ */
426
+ const Ge=b`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}`
427
+ /**
428
+ * @license
429
+ * Copyright 2018 Google LLC
430
+ * SPDX-License-Identifier: Apache-2.0
431
+ */;let Qe=class extends ct{render(){return W`<span><slot></slot></span>`}};Qe.styles=[Ge],Qe=
316
432
  /*! *****************************************************************************
317
433
  Copyright (c) Microsoft Corporation.
318
434
 
@@ -327,335 +443,45 @@ class Ot extends ht{constructor(t){if(super(t),this.it=U,t.type!==ut)throw Error
327
443
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
328
444
  PERFORMANCE OF THIS SOFTWARE.
329
445
  ***************************************************************************** */
330
- var Xe=function(t,e){return Xe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},Xe(t,e)};var Je=function(){return Je=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Je.apply(this,arguments)};function Ye(t,e,i,r){for(var o,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s}function Qe(t){var e="function"==typeof Symbol&&Symbol.iterator,i=e&&t[e],r=0;if(i)return i.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}
331
- /**
332
- * @license
333
- * Copyright 2018 Google Inc.
334
- *
335
- * Permission is hereby granted, free of charge, to any person obtaining a copy
336
- * of this software and associated documentation files (the "Software"), to deal
337
- * in the Software without restriction, including without limitation the rights
338
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
339
- * copies of the Software, and to permit persons to whom the Software is
340
- * furnished to do so, subject to the following conditions:
341
- *
342
- * The above copyright notice and this permission notice shall be included in
343
- * all copies or substantial portions of the Software.
344
- *
345
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
346
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
347
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
348
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
349
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
350
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
351
- * THE SOFTWARE.
352
- */
353
- /**
354
- * @license
355
- * Copyright 2018 Google LLC
356
- * SPDX-License-Identifier: Apache-2.0
357
- */
358
- const ti=()=>{},ei={get passive(){return!1}};document.addEventListener("x",ti,ei),document.removeEventListener("x",ti);
359
- /**
360
- * @license
361
- * Copyright 2018 Google LLC
362
- * SPDX-License-Identifier: Apache-2.0
363
- */
364
- class ii extends et{click(){if(this.mdcRoot)return this.mdcRoot.focus(),void this.mdcRoot.click();super.click()}createFoundation(){void 0!==this.mdcFoundation&&this.mdcFoundation.destroy(),this.mdcFoundationClass&&(this.mdcFoundation=new this.mdcFoundationClass(this.createAdapter()),this.mdcFoundation.init())}firstUpdated(){this.createFoundation()}}
365
- /**
366
- * @license
367
- * Copyright 2016 Google Inc.
368
- *
369
- * Permission is hereby granted, free of charge, to any person obtaining a copy
370
- * of this software and associated documentation files (the "Software"), to deal
371
- * in the Software without restriction, including without limitation the rights
372
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
373
- * copies of the Software, and to permit persons to whom the Software is
374
- * furnished to do so, subject to the following conditions:
375
- *
376
- * The above copyright notice and this permission notice shall be included in
377
- * all copies or substantial portions of the Software.
378
- *
379
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
380
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
381
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
382
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
383
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
384
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
385
- * THE SOFTWARE.
386
- */var ri=function(){function t(t){void 0===t&&(t={}),this.adapter=t}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}(),oi={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},ni={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},si={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};
387
- /**
388
- * @license
389
- * Copyright 2016 Google Inc.
390
- *
391
- * Permission is hereby granted, free of charge, to any person obtaining a copy
392
- * of this software and associated documentation files (the "Software"), to deal
393
- * in the Software without restriction, including without limitation the rights
394
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
395
- * copies of the Software, and to permit persons to whom the Software is
396
- * furnished to do so, subject to the following conditions:
397
- *
398
- * The above copyright notice and this permission notice shall be included in
399
- * all copies or substantial portions of the Software.
400
- *
401
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
402
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
403
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
404
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
405
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
406
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
407
- * THE SOFTWARE.
408
- */
409
- /**
410
- * @license
411
- * Copyright 2016 Google Inc.
412
- *
413
- * Permission is hereby granted, free of charge, to any person obtaining a copy
414
- * of this software and associated documentation files (the "Software"), to deal
415
- * in the Software without restriction, including without limitation the rights
416
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
417
- * copies of the Software, and to permit persons to whom the Software is
418
- * furnished to do so, subject to the following conditions:
419
- *
420
- * The above copyright notice and this permission notice shall be included in
421
- * all copies or substantial portions of the Software.
422
- *
423
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
424
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
425
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
426
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
427
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
428
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
429
- * THE SOFTWARE.
430
- */
431
- var ai=["touchstart","pointerdown","mousedown","keydown"],li=["touchend","pointerup","mouseup","contextmenu"],ci=[],pi=function(t){function e(i){var r=t.call(this,Je(Je({},e.defaultAdapter),i))||this;return r.activationAnimationHasEnded=!1,r.activationTimer=0,r.fgDeactivationRemovalTimer=0,r.fgScale="0",r.frame={width:0,height:0},r.initialSize=0,r.layoutFrame=0,r.maxRadius=0,r.unboundedCoords={left:0,top:0},r.activationState=r.defaultActivationState(),r.activationTimerCallback=function(){r.activationAnimationHasEnded=!0,r.runDeactivationUXLogicIfReady()},r.activateHandler=function(t){r.activateImpl(t)},r.deactivateHandler=function(){r.deactivateImpl()},r.focusHandler=function(){r.handleFocus()},r.blurHandler=function(){r.handleBlur()},r.resizeHandler=function(){r.layout()},r}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}Xe(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return oi},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return ni},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return si},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){var t=this,i=this.supportsPressRipple();if(this.registerRootHandlers(i),i){var r=e.cssClasses,o=r.ROOT,n=r.UNBOUNDED;requestAnimationFrame((function(){t.adapter.addClass(o),t.adapter.isUnbounded()&&(t.adapter.addClass(n),t.layoutInternal())}))}},e.prototype.destroy=function(){var t=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(e.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(e.cssClasses.FG_DEACTIVATION));var i=e.cssClasses,r=i.ROOT,o=i.UNBOUNDED;requestAnimationFrame((function(){t.adapter.removeClass(r),t.adapter.removeClass(o),t.removeCssVars()}))}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},e.prototype.activate=function(t){this.activateImpl(t)},e.prototype.deactivate=function(){this.deactivateImpl()},e.prototype.layout=function(){var t=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame((function(){t.layoutInternal(),t.layoutFrame=0}))},e.prototype.setUnbounded=function(t){var i=e.cssClasses.UNBOUNDED;t?this.adapter.addClass(i):this.adapter.removeClass(i)},e.prototype.handleFocus=function(){var t=this;requestAnimationFrame((function(){return t.adapter.addClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.handleBlur=function(){var t=this;requestAnimationFrame((function(){return t.adapter.removeClass(e.cssClasses.BG_FOCUSED)}))},e.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},e.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},e.prototype.registerRootHandlers=function(t){var e,i;if(t){try{for(var r=Qe(ai),o=r.next();!o.done;o=r.next()){var n=o.value;this.adapter.registerInteractionHandler(n,this.activateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},e.prototype.registerDeactivationHandlers=function(t){var e,i;if("keydown"===t.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var r=Qe(li),o=r.next();!o.done;o=r.next()){var n=o.value;this.adapter.registerDocumentInteractionHandler(n,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(e)throw e.error}}},e.prototype.deregisterRootHandlers=function(){var t,e;try{for(var i=Qe(ai),r=i.next();!r.done;r=i.next()){var o=r.value;this.adapter.deregisterInteractionHandler(o,this.activateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},e.prototype.deregisterDeactivationHandlers=function(){var t,e;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var i=Qe(li),r=i.next();!r.done;r=i.next()){var o=r.value;this.adapter.deregisterDocumentInteractionHandler(o,this.deactivateHandler)}}catch(e){t={error:e}}finally{try{r&&!r.done&&(e=i.return)&&e.call(i)}finally{if(t)throw t.error}}},e.prototype.removeCssVars=function(){var t=this,i=e.strings;Object.keys(i).forEach((function(e){0===e.indexOf("VAR_")&&t.adapter.updateCssVariable(i[e],null)}))},e.prototype.activateImpl=function(t){var e=this;if(!this.adapter.isSurfaceDisabled()){var i=this.activationState;if(!i.isActivated){var r=this.previousActivationEvent;if(!(r&&void 0!==t&&r.type!==t.type))i.isActivated=!0,i.isProgrammatic=void 0===t,i.activationEvent=t,i.wasActivatedByPointer=!i.isProgrammatic&&(void 0!==t&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type)),void 0!==t&&ci.length>0&&ci.some((function(t){return e.adapter.containsEventTarget(t)}))?this.resetActivationState():(void 0!==t&&(ci.push(t.target),this.registerDeactivationHandlers(t)),i.wasElementMadeActive=this.checkElementMadeActive(t),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){ci=[],i.wasElementMadeActive||void 0===t||" "!==t.key&&32!==t.keyCode||(i.wasElementMadeActive=e.checkElementMadeActive(t),i.wasElementMadeActive&&e.animateActivation()),i.wasElementMadeActive||(e.activationState=e.defaultActivationState())})))}}},e.prototype.checkElementMadeActive=function(t){return void 0===t||"keydown"!==t.type||this.adapter.isSurfaceActive()},e.prototype.animateActivation=function(){var t=this,i=e.strings,r=i.VAR_FG_TRANSLATE_START,o=i.VAR_FG_TRANSLATE_END,n=e.cssClasses,s=n.FG_DEACTIVATION,a=n.FG_ACTIVATION,l=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var c="",p="";if(!this.adapter.isUnbounded()){var d=this.getFgTranslationCoordinates(),u=d.startPoint,f=d.endPoint;c=u.x+"px, "+u.y+"px",p=f.x+"px, "+f.y+"px"}this.adapter.updateCssVariable(r,c),this.adapter.updateCssVariable(o,p),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(s),this.adapter.computeBoundingRect(),this.adapter.addClass(a),this.activationTimer=setTimeout((function(){t.activationTimerCallback()}),l)},e.prototype.getFgTranslationCoordinates=function(){var t,e=this.activationState,i=e.activationEvent;return t=e.wasActivatedByPointer?function(t,e,i){if(!t)return{x:0,y:0};var r,o,n=e.x,s=e.y,a=n+i.left,l=s+i.top;if("touchstart"===t.type){var c=t;r=c.changedTouches[0].pageX-a,o=c.changedTouches[0].pageY-l}else{var p=t;r=p.pageX-a,o=p.pageY-l}return{x:r,y:o}}(i,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):{x:this.frame.width/2,y:this.frame.height/2},{startPoint:t={x:t.x-this.initialSize/2,y:t.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},e.prototype.runDeactivationUXLogicIfReady=function(){var t=this,i=e.cssClasses.FG_DEACTIVATION,r=this.activationState,o=r.hasDeactivationUXRun,n=r.isActivated;(o||!n)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(i),this.fgDeactivationRemovalTimer=setTimeout((function(){t.adapter.removeClass(i)}),si.FG_DEACTIVATION_MS))},e.prototype.rmBoundedActivationClasses=function(){var t=e.cssClasses.FG_ACTIVATION;this.adapter.removeClass(t),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},e.prototype.resetActivationState=function(){var t=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout((function(){return t.previousActivationEvent=void 0}),e.numbers.TAP_DELAY_MS)},e.prototype.deactivateImpl=function(){var t=this,e=this.activationState;if(e.isActivated){var i=Je({},e);e.isProgrammatic?(requestAnimationFrame((function(){t.animateDeactivation(i)})),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame((function(){t.activationState.hasDeactivationUXRun=!0,t.animateDeactivation(i),t.resetActivationState()})))}},e.prototype.animateDeactivation=function(t){var e=t.wasActivatedByPointer,i=t.wasElementMadeActive;(e||i)&&this.runDeactivationUXLogicIfReady()},e.prototype.layoutInternal=function(){var t=this;this.frame=this.adapter.computeBoundingRect();var i=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded()?i:Math.sqrt(Math.pow(t.frame.width,2)+Math.pow(t.frame.height,2))+e.numbers.PADDING;var r=Math.floor(i*e.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&r%2!=0?this.initialSize=r-1:this.initialSize=r,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},e.prototype.updateLayoutCssVars=function(){var t=e.strings,i=t.VAR_FG_SIZE,r=t.VAR_LEFT,o=t.VAR_TOP,n=t.VAR_FG_SCALE;this.adapter.updateCssVariable(i,this.initialSize+"px"),this.adapter.updateCssVariable(n,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(r,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(o,this.unboundedCoords.top+"px"))},e}(ri),di=pi;
432
- /**
433
- * @license
434
- * Copyright 2018 Google LLC
435
- * SPDX-License-Identifier: BSD-3-Clause
436
- */
437
- const ui=ft(class extends ht{constructor(t){var e;if(super(t),t.type!==dt||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,i)=>{const r=t[i];return null==r?e:e+`${i=i.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${r};`}),"")}update(t,[e]){const{style:i}=t.element;if(void 0===this.ct){this.ct=new Set;for(const t in e)this.ct.add(t);return this.render(e)}this.ct.forEach((t=>{null==e[t]&&(this.ct.delete(t),t.includes("-")?i.removeProperty(t):i[t]="")}));for(const t in e){const r=e[t];null!=r&&(this.ct.add(t),t.includes("-")?i.setProperty(t,r):i[t]=r)}return D}});
438
- /**
439
- * @license
440
- * Copyright 2018 Google LLC
441
- * SPDX-License-Identifier: Apache-2.0
442
- */class fi extends ii{constructor(){super(...arguments),this.primary=!1,this.accent=!1,this.unbounded=!1,this.disabled=!1,this.activated=!1,this.selected=!1,this.internalUseStateLayerCustomProperties=!1,this.hovering=!1,this.bgFocused=!1,this.fgActivation=!1,this.fgDeactivation=!1,this.fgScale="",this.fgSize="",this.translateStart="",this.translateEnd="",this.leftPos="",this.topPos="",this.mdcFoundationClass=di}get isActive(){return t=this.parentElement||this,e=":active",(t.matches||t.webkitMatchesSelector||t.msMatchesSelector).call(t,e);var t,e}createAdapter(){return{browserSupportsCssVars:()=>!0,isUnbounded:()=>this.unbounded,isSurfaceActive:()=>this.isActive,isSurfaceDisabled:()=>this.disabled,addClass:t=>{switch(t){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!0;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!0;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!0}},removeClass:t=>{switch(t){case"mdc-ripple-upgraded--background-focused":this.bgFocused=!1;break;case"mdc-ripple-upgraded--foreground-activation":this.fgActivation=!1;break;case"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation=!1}},containsEventTarget:()=>!0,registerInteractionHandler:()=>{},deregisterInteractionHandler:()=>{},registerDocumentInteractionHandler:()=>{},deregisterDocumentInteractionHandler:()=>{},registerResizeHandler:()=>{},deregisterResizeHandler:()=>{},updateCssVariable:(t,e)=>{switch(t){case"--mdc-ripple-fg-scale":this.fgScale=e;break;case"--mdc-ripple-fg-size":this.fgSize=e;break;case"--mdc-ripple-fg-translate-end":this.translateEnd=e;break;case"--mdc-ripple-fg-translate-start":this.translateStart=e;break;case"--mdc-ripple-left":this.leftPos=e;break;case"--mdc-ripple-top":this.topPos=e}},computeBoundingRect:()=>(this.parentElement||this).getBoundingClientRect(),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset})}}startPress(t){this.waitForFoundation((()=>{this.mdcFoundation.activate(t)}))}endPress(){this.waitForFoundation((()=>{this.mdcFoundation.deactivate()}))}startFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleFocus()}))}endFocus(){this.waitForFoundation((()=>{this.mdcFoundation.handleBlur()}))}startHover(){this.hovering=!0}endHover(){this.hovering=!1}waitForFoundation(t){this.mdcFoundation?t():this.updateComplete.then(t)}update(t){t.has("disabled")&&this.disabled&&this.endHover(),super.update(t)}render(){const t=this.activated&&(this.primary||!this.accent),e=this.selected&&(this.primary||!this.accent),i={"mdc-ripple-surface--accent":this.accent,"mdc-ripple-surface--primary--activated":t,"mdc-ripple-surface--accent--activated":this.accent&&this.activated,"mdc-ripple-surface--primary--selected":e,"mdc-ripple-surface--accent--selected":this.accent&&this.selected,"mdc-ripple-surface--disabled":this.disabled,"mdc-ripple-surface--hover":this.hovering,"mdc-ripple-surface--primary":this.primary,"mdc-ripple-surface--selected":this.selected,"mdc-ripple-upgraded--background-focused":this.bgFocused,"mdc-ripple-upgraded--foreground-activation":this.fgActivation,"mdc-ripple-upgraded--foreground-deactivation":this.fgDeactivation,"mdc-ripple-upgraded--unbounded":this.unbounded,"mdc-ripple-surface--internal-use-state-layer-custom-properties":this.internalUseStateLayerCustomProperties};return j`
443
- <div class="mdc-ripple-surface mdc-ripple-upgraded ${Dt(i)}"
444
- style="${ui({"--mdc-ripple-fg-scale":this.fgScale,"--mdc-ripple-fg-size":this.fgSize,"--mdc-ripple-fg-translate-end":this.translateEnd,"--mdc-ripple-fg-translate-start":this.translateStart,"--mdc-ripple-left":this.leftPos,"--mdc-ripple-top":this.topPos})}"></div>`}}Ye([lt(".mdc-ripple-surface")],fi.prototype,"mdcRoot",void 0),Ye([nt({type:Boolean})],fi.prototype,"primary",void 0),Ye([nt({type:Boolean})],fi.prototype,"accent",void 0),Ye([nt({type:Boolean})],fi.prototype,"unbounded",void 0),Ye([nt({type:Boolean})],fi.prototype,"disabled",void 0),Ye([nt({type:Boolean})],fi.prototype,"activated",void 0),Ye([nt({type:Boolean})],fi.prototype,"selected",void 0),Ye([nt({type:Boolean})],fi.prototype,"internalUseStateLayerCustomProperties",void 0),Ye([st()],fi.prototype,"hovering",void 0),Ye([st()],fi.prototype,"bgFocused",void 0),Ye([st()],fi.prototype,"fgActivation",void 0),Ye([st()],fi.prototype,"fgDeactivation",void 0),Ye([st()],fi.prototype,"fgScale",void 0),Ye([st()],fi.prototype,"fgSize",void 0),Ye([st()],fi.prototype,"translateStart",void 0),Ye([st()],fi.prototype,"translateEnd",void 0),Ye([st()],fi.prototype,"leftPos",void 0),Ye([st()],fi.prototype,"topPos",void 0);
445
- /**
446
- * @license
447
- * Copyright 2021 Google LLC
448
- * SPDX-LIcense-Identifier: Apache-2.0
449
- */
450
- const hi=s`.mdc-ripple-surface{--mdc-ripple-fg-size: 0;--mdc-ripple-left: 0;--mdc-ripple-top: 0;--mdc-ripple-fg-scale: 1;--mdc-ripple-fg-translate-end: 0;--mdc-ripple-fg-translate-start: 0;-webkit-tap-highlight-color:rgba(0,0,0,0);will-change:transform,opacity;position:relative;outline:none;overflow:hidden}.mdc-ripple-surface::before,.mdc-ripple-surface::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-ripple-surface::before{transition:opacity 15ms linear,background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-ripple-surface::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-ripple-surface.mdc-ripple-upgraded::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface.mdc-ripple-upgraded::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-ripple-surface.mdc-ripple-upgraded--unbounded::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-activation::after{animation:mdc-ripple-fg-radius-in 225ms forwards,mdc-ripple-fg-opacity-in 75ms forwards}.mdc-ripple-surface.mdc-ripple-upgraded--foreground-deactivation::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-ripple-surface::before,.mdc-ripple-surface::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-ripple-surface.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded],.mdc-ripple-upgraded--unbounded{overflow:visible}.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded]::after,.mdc-ripple-upgraded--unbounded::before,.mdc-ripple-upgraded--unbounded::after{top:calc(50% - 50%);left:calc(50% - 50%);width:100%;height:100%}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::before,.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::before,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{top:var(--mdc-ripple-top, calc(50% - 50%));left:var(--mdc-ripple-left, calc(50% - 50%));width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface[data-mdc-ripple-is-unbounded].mdc-ripple-upgraded::after,.mdc-ripple-upgraded--unbounded.mdc-ripple-upgraded::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-ripple-surface::before,.mdc-ripple-surface::after{background-color:#000;background-color:var(--mdc-ripple-color, #000)}.mdc-ripple-surface:hover::before,.mdc-ripple-surface.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}:host{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;display:block}:host .mdc-ripple-surface{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;will-change:unset}.mdc-ripple-surface--primary::before,.mdc-ripple-surface--primary::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary:hover::before,.mdc-ripple-surface--primary.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--primary.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--primary--activated::before,.mdc-ripple-surface--primary--activated::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--activated:hover::before,.mdc-ripple-surface--primary--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--primary--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--primary--selected::before,.mdc-ripple-surface--primary--selected::after{background-color:#6200ee;background-color:var(--mdc-ripple-color, var(--mdc-theme-primary, #6200ee))}.mdc-ripple-surface--primary--selected:hover::before,.mdc-ripple-surface--primary--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--primary--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--primary--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent::before,.mdc-ripple-surface--accent::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent:hover::before,.mdc-ripple-surface--accent.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-ripple-surface--accent.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before{opacity:0.12;opacity:var(--mdc-ripple-activated-opacity, 0.12)}.mdc-ripple-surface--accent--activated::before,.mdc-ripple-surface--accent--activated::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--activated:hover::before,.mdc-ripple-surface--accent--activated.mdc-ripple-surface--hover::before{opacity:0.16;opacity:var(--mdc-ripple-hover-opacity, 0.16)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-focus-opacity, 0.24)}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--activated:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.24;opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--activated.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.24)}.mdc-ripple-surface--accent--selected::before{opacity:0.08;opacity:var(--mdc-ripple-selected-opacity, 0.08)}.mdc-ripple-surface--accent--selected::before,.mdc-ripple-surface--accent--selected::after{background-color:#018786;background-color:var(--mdc-ripple-color, var(--mdc-theme-secondary, #018786))}.mdc-ripple-surface--accent--selected:hover::before,.mdc-ripple-surface--accent--selected.mdc-ripple-surface--hover::before{opacity:0.12;opacity:var(--mdc-ripple-hover-opacity, 0.12)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-focus-opacity, 0.2)}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--accent--selected:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.2;opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--accent--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.2)}.mdc-ripple-surface--disabled{opacity:0}.mdc-ripple-surface--internal-use-state-layer-custom-properties::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties::after{background-color:#000;background-color:var(--mdc-ripple-hover-state-layer-color, #000)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:hover::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-surface--hover::before{opacity:0.04;opacity:var(--mdc-ripple-hover-state-layer-opacity, 0.04)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded--background-focused::before,.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):focus::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded)::after{transition:opacity 150ms linear}.mdc-ripple-surface--internal-use-state-layer-custom-properties:not(.mdc-ripple-upgraded):active::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}.mdc-ripple-surface--internal-use-state-layer-custom-properties.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-pressed-state-layer-opacity, 0.12)}`
451
- /**
452
- * @license
453
- * Copyright 2018 Google LLC
454
- * SPDX-License-Identifier: Apache-2.0
455
- */;let mi=class extends fi{};mi.styles=[hi],mi=Ye([rt("mwc-ripple")],mi);
456
- /**
457
- * @license
458
- * Copyright 2020 Google LLC
459
- * SPDX-License-Identifier: Apache-2.0
460
- */
461
- class vi{constructor(t){this.startPress=e=>{t().then((t=>{t&&t.startPress(e)}))},this.endPress=()=>{t().then((t=>{t&&t.endPress()}))},this.startFocus=()=>{t().then((t=>{t&&t.startFocus()}))},this.endFocus=()=>{t().then((t=>{t&&t.endFocus()}))},this.startHover=()=>{t().then((t=>{t&&t.startHover()}))},this.endHover=()=>{t().then((t=>{t&&t.endHover()}))}}}var yi=function(t,e,i,r){for(var o,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const bi={color:Et.extend("--ft-ripple-color",zt.colorContent),primaryColor:Et.extend("--ft-ripple-primary-color",Et.extend("--ft-ripple-color",zt.colorPrimary)),secondaryColor:Et.extend("--ft-ripple-secondary-color",Et.extend("--ft-ripple-color",zt.colorSecondary)),opacityContentOnSurfacePressed:Et.external(zt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Et.external(zt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Et.external(zt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Et.external(zt.opacityContentOnSurfaceSelected,"Design system"),opacityContentOnSurfaceDragged:Et.external(zt.opacityContentOnSurfaceDragged,"Design system")};let gi=class extends Nt{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1}getStyles(){return s`
462
- :host {
463
- display: contents;
464
-
465
- --mdc-ripple-color: ${bi.color};
466
- --mdc-ripple-press-opacity: ${bi.opacityContentOnSurfacePressed};
467
- --mdc-ripple-hover-opacity: ${bi.opacityContentOnSurfaceHover};
468
- --mdc-ripple-focus-opacity: ${bi.opacityContentOnSurfaceFocused};
469
- --mdc-ripple-selected-opacity: ${bi.opacityContentOnSurfaceSelected};
470
- --mdc-ripple-activated-opacity: ${bi.opacityContentOnSurfaceDragged};
471
- }
472
-
473
- mwc-ripple.ft-ripple--secondary {
474
- --mdc-ripple-color: ${bi.secondaryColor};
475
- }
476
-
477
- mwc-ripple.ft-ripple--primary {
478
- --mdc-ripple-color: ${bi.primaryColor};
479
- }
480
- `}getTemplate(){return j`
481
- <mwc-ripple
482
- class="${this.primary?"ft-ripple--primary":this.secondary?"ft-ripple--secondary":""}"
483
- ?unbounded=${this.unbounded}
484
- ?activated=${this.activated}
485
- ?selected=${this.selected}
486
- ?disabled=${this.disabled}
487
- ></mwc-ripple>
488
- `}updated(t){super.updated(t),t.has("disabled")&&this.disabled&&this.endRipple()}endRipple(){var t,e,i;null===(t=this.rippleHandlers)||void 0===t||t.endHover(),null===(e=this.rippleHandlers)||void 0===e||e.endFocus(),null===(i=this.rippleHandlers)||void 0===i||i.endPress()}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentNode;if(e){const t=new vi((async()=>this.mwcRipple)),i=(...e)=>i=>{e.forEach((e=>window.addEventListener(e,t.endPress,{once:!0}))),t.startPress(i)},r=i("mouseup"),o=i("touchend","touchcancel"),n=t=>{["Enter"," "].includes(t.key)&&i("keyup")()};e.addEventListener("mouseenter",t.startHover),e.addEventListener("mouseleave",t.endHover),e.addEventListener("mousedown",r),e.addEventListener("touchstart",o),e.addEventListener("keydown",n),e.addEventListener("focus",t.startFocus),e.addEventListener("blur",t.endFocus),this.onDisconnect=()=>{e.removeEventListener("mouseenter",t.startHover),e.removeEventListener("mouseleave",t.endHover),e.removeEventListener("mousedown",r),e.removeEventListener("touchstart",o),e.removeEventListener("keydown",n),e.removeEventListener("focus",t.startFocus),e.removeEventListener("blur",t.endFocus)},this.rippleHandlers=t}}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};gi.elementDefinitions={"mwc-ripple":mi},yi([nt({type:Boolean})],gi.prototype,"primary",void 0),yi([nt({type:Boolean})],gi.prototype,"secondary",void 0),yi([nt({type:Boolean})],gi.prototype,"unbounded",void 0),yi([nt({type:Boolean})],gi.prototype,"activated",void 0),yi([nt({type:Boolean})],gi.prototype,"selected",void 0),yi([nt({type:Boolean})],gi.prototype,"disabled",void 0),yi([lt("mwc-ripple")],gi.prototype,"mwcRipple",void 0),gi=yi([Ct("ft-ripple")],gi);
489
- /**
490
- * @license
491
- * Copyright 2021 Google LLC
492
- * SPDX-LIcense-Identifier: Apache-2.0
493
- */
494
- const xi=s`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}`
495
- /**
496
- * @license
497
- * Copyright 2018 Google LLC
498
- * SPDX-License-Identifier: Apache-2.0
499
- */;let wi=class extends et{render(){return j`<span><slot></slot></span>`}};wi.styles=[xi],wi=Ye([rt("mwc-icon")],wi);var $i=function(t,e,i,r){for(var o,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};let Oi=class extends Nt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}getTemplate(){return j``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Oi.elementDefinitions={},$i([nt({type:String})],Oi.prototype,"label",void 0),$i([nt({type:Object,converter:t=>t})],Oi.prototype,"value",void 0),$i([nt({type:Boolean,reflect:!0})],Oi.prototype,"selected",void 0),Oi=$i([Ct("ft-select-option")],Oi);const Si={labelSize:Et.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:Et.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:Et.create("--ft-select-vertical-spacing","SIZE","4px"),selectedOptionColor:Et.extend("--ft-select-selected-option-color",zt.colorOnSurface),helperColor:Et.extend("--ft-select-helper-color",zt.colorOnSurfaceMedium),optionsColor:Et.extend("--ft-select-options-color",zt.colorOnSurface),optionsZIndex:Et.create("--ft-select-options-z-index","NUMBER","2"),colorSurface:Et.external(zt.colorSurface,"Design system"),colorOnSurfaceDisabled:Et.external(zt.colorOnSurfaceDisabled,"Design system"),colorPrimary:Et.external(zt.colorPrimary,"Design system"),borderRadiusS:Et.external(zt.borderRadiusS,"Design system"),elevation02:Et.external(zt.elevation02,"Design system")};let ki=class extends Nt{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}getStyles(){return[Le,Pe,s`
500
- *:focus {
501
- outline: none;
502
- }
503
-
504
- .ft-select {
505
- display: flex;
506
- flex-direction: column;
507
- align-items: stretch;
508
- }
509
-
510
- .ft-select--main-panel {
511
- position: relative;
512
- display: flex;
513
- height: calc(4 * ${Si.verticalSpacing} + ${Si.labelSize} + ${Si.selectedOptionSize});
514
- }
515
-
516
- .ft-select--input-panel {
517
- flex-grow: 1;
518
- position: relative;
519
- display: flex;
520
- align-items: center;
521
- overflow: hidden;
522
- padding-left: 16px;
523
- padding-right: 8px;
524
- gap: 8px;
525
- color: ${Si.selectedOptionColor};
526
- ${Rt(bi.color,Si.selectedOptionColor)};
527
- }
528
-
529
- .ft-select--input-panel,
530
- .ft-select--option {
531
- ${Rt(bi.opacityContentOnSurfaceHover,"0.08")};
532
- ${Rt(bi.opacityContentOnSurfaceDragged,"0.04")};
533
- }
534
-
535
- .ft-select--disabled .ft-select--input-panel,
536
- .ft-select--disabled .ft-select--option {
537
- color: ${Si.colorOnSurfaceDisabled};
538
- }
539
-
540
- .ft-select:not(.ft-select--disabled) .ft-select--input-panel,
541
- .ft-select:not(.ft-select--disabled) .ft-select--option {
542
- cursor: pointer;
543
- }
544
-
545
- ft-input-label {
546
- ${Rt(qe.fontSize,Si.selectedOptionSize)};
547
- ${Rt(qe.raisedFontSize,Si.labelSize)};
548
- ${Rt(qe.verticalSpacing,Si.verticalSpacing)};
549
- }
550
-
551
- .ft-select:not(.ft-select--disabled):focus-within mwc-icon {
552
- color: ${Si.colorPrimary};
553
- }
554
-
555
- .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
556
- ${Rt(qe.borderColor,Si.colorPrimary)};
557
- ${Rt(qe.textColor,Si.colorPrimary)};
558
- }
559
-
560
- .ft-select--selected-option {
561
- display: block;
562
- flex-grow: 1;
563
- flex-shrink: 1;
564
- overflow: hidden;
565
- white-space: nowrap;
566
- text-overflow: ellipsis;
567
- ${Rt(me.fontSize,Si.selectedOptionSize)};
568
- ${Rt(me.lineHeight,Si.selectedOptionSize)};
569
- }
570
-
571
- mwc-icon {
572
- flex-shrink: 0;
573
- }
574
-
575
- slot {
576
- display: none;
577
- }
578
-
579
- .ft-select--filled .ft-select--input-panel {
580
- border-radius: ${Si.borderRadiusS} ${Si.borderRadiusS} 0 0;
581
- }
582
-
583
- .ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
584
- align-self: stretch;
585
- padding-top: calc(${Si.labelSize} + 2 * ${Si.verticalSpacing});
586
- }
587
-
588
- .ft-select--outlined .ft-select--input-panel {
589
- border-radius: ${Si.borderRadiusS};
590
- }
591
-
592
- .ft-select--options {
593
- display: none;
594
- position: absolute;
595
- top: 100%;
596
- left: 0;
597
- right: 0;
598
- color: ${Si.optionsColor};
599
- background: ${Si.colorSurface};
600
- z-index: ${Si.optionsZIndex};
601
- box-shadow: ${Si.elevation02};
602
- }
603
-
604
- .ft-select--options-displayed .ft-select--options {
605
- display: block;
606
- }
607
-
608
- .ft-select--option {
609
- position: relative;
610
- padding: 4px 16px;
611
- min-height: 32px;
612
- display: flex;
613
- align-items: center;
614
- }
615
-
616
- .ft-select--helper-text {
617
- padding: 0 12px 0 16px;
618
- color: ${Si.helperColor};
619
- }
620
- `]}getTemplate(){var t,e,i,r,o;let n=!this.disabled&&this.optionsDisplayed&&this.hasOptions,s=this.disabled||!this.hasOptions;const a=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(i=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==i?i:"").length>0,l={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":s,"ft-select--options-displayed":n,"ft-select--has-option-selected":a,"ft-select--no-label":!this.label};return j`
621
- <div class="${Dt(l)}" part="container">
446
+ function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r}([(t=>e=>"function"==typeof e?((t,e)=>(window.customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:i,elements:o}=e;return{kind:i,elements:o,finisher(e){window.customElements.define(t,e)}}})(t,e))("mwc-icon")],Qe);var ti=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class ei extends bt{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return W``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}ei.elementDefinitions={},ti([o({type:String})],ei.prototype,"label",void 0),ti([o({type:Object,converter:t=>t})],ei.prototype,"value",void 0),ti([o({type:Boolean,reflect:!0})],ei.prototype,"selected",void 0);const ii={labelSize:ht.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:ht.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:ht.create("--ft-select-vertical-spacing","SIZE","4px"),selectedOptionColor:ht.extend("--ft-select-selected-option-color",ut.colorOnSurface),helperColor:ht.extend("--ft-select-helper-color",ut.colorOnSurfaceMedium),optionsColor:ht.extend("--ft-select-options-color",ut.colorOnSurface),optionsZIndex:ht.create("--ft-select-options-z-index","NUMBER","2"),colorSurface:ht.external(ut.colorSurface,"Design system"),colorOnSurfaceDisabled:ht.external(ut.colorOnSurfaceDisabled,"Design system"),colorPrimary:ht.external(ut.colorPrimary,"Design system"),borderRadiusS:ht.external(ut.borderRadiusS,"Design system"),elevation02:ht.external(ut.elevation02,"Design system")};class oi extends bt{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,e,i,o,n;let s=!this.disabled&&this.optionsDisplayed&&this.hasOptions,r=this.disabled||!this.hasOptions;const l=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(i=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==i?i:"").length>0,a={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":r,"ft-select--options-displayed":s,"ft-select--has-option-selected":l,"ft-select--no-label":!this.label};return W`
447
+ <div class="${Bt(a)}" part="container">
622
448
  <div class="ft-select--main-panel" part="main-panel">
623
449
  <ft-input-label text="${this.label}"
624
450
  part="label"
625
- ?disabled=${s}
451
+ ?disabled=${r}
626
452
  ?outlined=${this.outlined}
627
- ?raised=${a||n}
453
+ ?raised=${l||s}
628
454
  ></ft-input-label>
629
455
  <div class="ft-select--input-panel"
630
456
  part="selected-value"
631
- tabindex="${s?"-1":"0"}"
457
+ tabindex="${r?"-1":"0"}"
632
458
  @click=${()=>{this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=this.optionsDisplayed}}
633
459
  @keydown=${this.onMainPanelKeyDown}
634
460
  aria-label="${this.label}"
635
461
  aria-haspopup="listbox"
636
- aria-expanded="${n}">
637
- <ft-ripple ?disabled=${s} ?activated=${!this.outlined}></ft-ripple>
462
+ aria-expanded="${s}">
463
+ <ft-ripple ?disabled=${r} ?activated=${!this.outlined}></ft-ripple>
638
464
  <ft-typography variant="body1" class="ft-select--selected-option">
639
- ${null!==(o=null===(r=this.selectedOption)||void 0===r?void 0:r.label)&&void 0!==o?o:""}
465
+ ${null!==(n=null===(o=this.selectedOption)||void 0===o?void 0:o.label)&&void 0!==n?n:""}
640
466
  </ft-typography>
641
- <mwc-icon>${n?"expand_less":"expand_more"}</mwc-icon>
467
+ <mwc-icon>${s?"expand_less":"expand_more"}</mwc-icon>
642
468
  </div>
643
469
  <div class="ft-select--options"
644
470
  part="options"
645
471
  @keydown=${this.onOptionsKeyDown}
646
472
  innerrole="listbox">
647
- ${$t(this.options,(t=>t.value),(t=>this.renderOption(t)))}
473
+ ${Ft(this.options,(t=>t.value),(t=>this.renderOption(t)))}
648
474
  </div>
649
475
  </div>
650
- ${this.helper?j`
476
+ ${this.helper?W`
651
477
  <ft-typography class="ft-select--helper-text" variant="caption">${this.helper}
652
478
  </ft-typography>`:void 0}
653
479
  </div>
654
480
  <slot @slotchange=${this.updateOptionsFromSlot}
655
481
  @option-change=${this.updateOptionsFromSlot}
656
482
  ></slot>
657
- `}renderOption(t){let e=this.selectedOption===t;return j`
658
- <div class="${Dt({"ft-select--option":!0,"ft-select--option-selected":e,"ft-typography--body2":!0})}"
483
+ `}renderOption(t){let e=this.selectedOption===t;return W`
484
+ <div class="${Bt({"ft-select--option":!0,"ft-select--option-selected":e,"ft-typography--body2":!0})}"
659
485
  part="option"
660
486
  tabindex="0"
661
487
  @keydown=${e=>this.onOptionKeyDown(e,t)}
@@ -663,98 +489,129 @@ const xi=s`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
663
489
  <ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
664
490
  ${t.label}
665
491
  </div>
666
- `}updated(t){var e;super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1,this.dispatchEvent(new CustomEvent("change",{detail:null===(e=this.selectedOption)||void 0===e?void 0:e.value})))}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,r,o,n;let s;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),s=null!==(r=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==r?r:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),s=null!==(n=null===(o=this.focusedOption)||void 0===o?void 0:o.nextElementSibling)&&void 0!==n?n:this.firstOption}null==s||s.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){this.selectedOption=t;for(let e of this.options)e.selected=e===t}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}};ki.elementDefinitions={"ft-input-label":Ge,"ft-typography":Ze,"ft-ripple":gi,"mwc-icon":wi},$i([nt({type:String})],ki.prototype,"label",void 0),$i([nt({type:String})],ki.prototype,"helper",void 0),$i([nt({type:Boolean})],ki.prototype,"outlined",void 0),$i([nt({type:Boolean})],ki.prototype,"disabled",void 0),$i([nt({type:Array})],ki.prototype,"options",void 0),$i([st()],ki.prototype,"selectedOption",void 0),$i([st()],ki.prototype,"optionsDisplayed",void 0),$i([st()],ki.prototype,"focusOptions",void 0),$i([lt(".ft-select")],ki.prototype,"container",void 0),$i([lt(".ft-select--input-panel")],ki.prototype,"mainPanel",void 0),$i([lt(".ft-select--option:first-child")],ki.prototype,"firstOption",void 0),$i([lt(".ft-select--option:focus")],ki.prototype,"focusedOption",void 0),$i([lt(".ft-select--option.ft-select--option-selected")],ki.prototype,"selectedOptionElement",void 0),$i([lt(".ft-select--option:last-child")],ki.prototype,"lastOption",void 0),$i([lt("slot")],ki.prototype,"optionsSlot",void 0),ki=$i([Ct("ft-select")],ki);var Ci=function(t,e,i,r){for(var o,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const Ei={fontSize:Et.create("--ft-text-field-font-size","SIZE","14px"),labelSize:Et.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:Et.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:Et.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:Et.extend("--ft-text-field-helper-color",zt.colorOnSurfaceMedium),colorPrimary:Et.external(zt.colorPrimary,"Design system"),colorOnSurface:Et.external(zt.colorOnSurface,"Design system"),colorOnSurfaceDisabled:Et.external(zt.colorOnSurfaceDisabled,"Design system"),borderRadiusS:Et.external(zt.borderRadiusS,"Design system")};let Ri=class extends Nt{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.dataList=[],this.focused=!1}getStyles(){return[Ie,s`
667
- *:focus {
668
- outline: none;
669
- }
492
+ `}updated(t){var e;super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1,this.dispatchEvent(new CustomEvent("change",{detail:null===(e=this.selectedOption)||void 0===e?void 0:e.value})))}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,o,n,s;let r;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),r=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),r=null!==(s=null===(n=this.focusedOption)||void 0===n?void 0:n.nextElementSibling)&&void 0!==s?s:this.firstOption}null==r||r.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){this.selectedOption=t;for(let e of this.options)e.selected=e===t}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}oi.elementDefinitions={"ft-input-label":Xe,"ft-typography":Ze,"ft-ripple":Ye,"mwc-icon":Qe},oi.styles=[_e,Ie,b`
493
+ *:focus {
494
+ outline: none;
495
+ }
670
496
 
671
- .ft-text-field {
672
- display: flex;
673
- flex-direction: column;
674
- align-items: stretch;
675
- }
497
+ .ft-select {
498
+ display: flex;
499
+ flex-direction: column;
500
+ align-items: stretch;
501
+ }
676
502
 
677
- ft-input-label {
678
- ${Rt(qe.fontSize,Ei.fontSize)};
679
- ${Rt(qe.raisedFontSize,Ei.labelSize)};
680
- ${Rt(qe.verticalSpacing,Ei.verticalSpacing)};
681
- ${Rt(qe.horizontalSpacing,s`calc(${Ei.horizontalSpacing} - 4px)`)};
682
- }
503
+ .ft-select--main-panel {
504
+ position: relative;
505
+ display: flex;
506
+ height: calc(4 * ${ii.verticalSpacing} + ${ii.labelSize} + ${ii.selectedOptionSize});
507
+ }
683
508
 
684
- .ft-text-field--main-panel {
685
- position: relative;
686
- display: flex;
687
- height: calc(4 * ${Ei.verticalSpacing} + ${Ei.labelSize} + ${Ei.fontSize});
688
- }
509
+ .ft-select--input-panel {
510
+ flex-grow: 1;
511
+ position: relative;
512
+ display: flex;
513
+ align-items: center;
514
+ overflow: hidden;
515
+ padding-left: 16px;
516
+ padding-right: 8px;
517
+ gap: 8px;
518
+ color: ${ii.selectedOptionColor};
519
+ ${ft(Je.color,ii.selectedOptionColor)};
520
+ }
689
521
 
690
- .ft-text-field--input-panel {
691
- flex-grow: 1;
692
- position: relative;
693
- display: flex;
694
- align-items: center;
695
- overflow: hidden;
696
- gap: 8px;
697
- }
522
+ .ft-select--input-panel,
523
+ .ft-select--option {
524
+ ${ft(Je.opacityContentOnSurfaceHover,"0.08")};
525
+ ${ft(Je.opacityContentOnSurfacePressed,"0.04")};
526
+ }
698
527
 
699
- .ft-text-field--input-panel ft-ripple {
700
- ${Rt(bi.opacityContentOnSurfaceHover,"0.08")};
701
- ${Rt(bi.opacityContentOnSurfaceDragged,"0.04")};
702
- }
528
+ .ft-select--disabled .ft-select--input-panel,
529
+ .ft-select--disabled .ft-select--option {
530
+ color: ${ii.colorOnSurfaceDisabled};
531
+ }
703
532
 
704
- .ft-text-field--input {
705
- display: block;
706
- flex-grow: 1;
707
- flex-shrink: 1;
708
- min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
533
+ .ft-select:not(.ft-select--disabled) .ft-select--input-panel,
534
+ .ft-select:not(.ft-select--disabled) .ft-select--option {
535
+ cursor: pointer;
536
+ }
709
537
 
710
- ${Rt(me.fontSize,Ei.fontSize)};
711
- ${Rt(me.lineHeight,Ei.fontSize)};
712
- color: ${Ei.colorOnSurface};
538
+ ft-input-label {
539
+ ${ft(Ve.fontSize,ii.selectedOptionSize)};
540
+ ${ft(Ve.raisedFontSize,ii.labelSize)};
541
+ ${ft(Ve.verticalSpacing,ii.verticalSpacing)};
542
+ }
713
543
 
714
- padding: 0 ${Ei.horizontalSpacing};
544
+ .ft-select:not(.ft-select--disabled):focus-within mwc-icon {
545
+ color: ${ii.colorPrimary};
546
+ }
715
547
 
716
- border: none;
717
- background: none;
718
- }
548
+ .ft-select:not(.ft-select--disabled):focus-within ft-input-label {
549
+ ${ft(Ve.borderColor,ii.colorPrimary)};
550
+ ${ft(Ve.textColor,ii.colorPrimary)};
551
+ }
719
552
 
720
- .ft-text-field--input::-webkit-calendar-picker-indicator,
721
- .ft-text-field--input::-webkit-list-button {
722
- display: none !important;
723
- }
553
+ .ft-select--selected-option {
554
+ display: block;
555
+ flex-grow: 1;
556
+ flex-shrink: 1;
557
+ overflow: hidden;
558
+ white-space: nowrap;
559
+ text-overflow: ellipsis;
560
+ ${ft(ue.fontSize,ii.selectedOptionSize)};
561
+ ${ft(ue.lineHeight,ii.selectedOptionSize)};
562
+ }
724
563
 
725
- .ft-text-field--disabled .ft-text-field--input {
726
- color: ${Ei.colorOnSurfaceDisabled};
727
- }
564
+ mwc-icon {
565
+ flex-shrink: 0;
566
+ }
728
567
 
729
- .ft-text-field:not(.ft-text-field--disabled) .ft-text-field--input-panel {
730
- cursor: pointer;
731
- }
568
+ slot {
569
+ display: none;
570
+ }
732
571
 
733
- .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
734
- ${Rt(qe.borderColor,Ei.colorPrimary)};
735
- ${Rt(qe.textColor,Ei.colorPrimary)};
736
- }
572
+ .ft-select--filled .ft-select--input-panel {
573
+ border-radius: ${ii.borderRadiusS} ${ii.borderRadiusS} 0 0;
574
+ }
737
575
 
738
- .ft-text-field--filled .ft-text-field--input-panel {
739
- border-radius: ${Ei.borderRadiusS} ${Ei.borderRadiusS} 0 0;
740
- }
576
+ .ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
577
+ align-self: stretch;
578
+ padding-top: calc(${ii.labelSize} + 2 * ${ii.verticalSpacing});
579
+ }
741
580
 
742
- .ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input {
743
- align-self: stretch;
744
- padding-bottom: ${Ei.verticalSpacing};
745
- padding-top: calc(${Ei.labelSize} + 2 * ${Ei.verticalSpacing});
746
- }
581
+ .ft-select--outlined .ft-select--input-panel {
582
+ border-radius: ${ii.borderRadiusS};
583
+ }
747
584
 
748
- .ft-text-field--outlined .ft-text-field--input-panel {
749
- border-radius: ${Ei.borderRadiusS};
750
- }
585
+ .ft-select--options {
586
+ display: none;
587
+ position: absolute;
588
+ top: 100%;
589
+ left: 0;
590
+ right: 0;
591
+ color: ${ii.optionsColor};
592
+ background: ${ii.colorSurface};
593
+ z-index: ${ii.optionsZIndex};
594
+ box-shadow: ${ii.elevation02};
595
+ }
751
596
 
752
- .ft-text-field--helper-text {
753
- padding: 0 12px 0 ${Ei.horizontalSpacing};
754
- color: ${Ei.helperColor};
755
- }
756
- `]}getTemplate(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--no-label":!this.label};return j`
757
- <div class="${Dt(t)}">
597
+ .ft-select--options-displayed .ft-select--options {
598
+ display: block;
599
+ }
600
+
601
+ .ft-select--option {
602
+ position: relative;
603
+ padding: 4px 16px;
604
+ min-height: 32px;
605
+ display: flex;
606
+ align-items: center;
607
+ }
608
+
609
+ .ft-select--helper-text {
610
+ padding: 0 12px 0 16px;
611
+ color: ${ii.helperColor};
612
+ }
613
+ `],ti([o({type:String})],oi.prototype,"label",void 0),ti([o({type:String})],oi.prototype,"helper",void 0),ti([o({type:Boolean})],oi.prototype,"outlined",void 0),ti([o({type:Boolean})],oi.prototype,"disabled",void 0),ti([o({type:Array})],oi.prototype,"options",void 0),ti([n()],oi.prototype,"selectedOption",void 0),ti([n()],oi.prototype,"optionsDisplayed",void 0),ti([n()],oi.prototype,"focusOptions",void 0),ti([r(".ft-select")],oi.prototype,"container",void 0),ti([r(".ft-select--input-panel")],oi.prototype,"mainPanel",void 0),ti([r(".ft-select--option:first-child")],oi.prototype,"firstOption",void 0),ti([r(".ft-select--option:focus")],oi.prototype,"focusedOption",void 0),ti([r(".ft-select--option.ft-select--option-selected")],oi.prototype,"selectedOptionElement",void 0),ti([r(".ft-select--option:last-child")],oi.prototype,"lastOption",void 0),ti([r("slot")],oi.prototype,"optionsSlot",void 0),p("ft-select")(oi),p("ft-select-option")(ei);var ni=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const si={fontSize:ht.create("--ft-text-field-font-size","SIZE","14px"),labelSize:ht.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:ht.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:ht.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:ht.extend("--ft-text-field-helper-color",ut.colorOnSurfaceMedium),colorPrimary:ht.external(ut.colorPrimary,"Design system"),colorOnSurface:ht.external(ut.colorOnSurface,"Design system"),colorOnSurfaceDisabled:ht.external(ut.colorOnSurfaceDisabled,"Design system"),borderRadiusS:ht.external(ut.borderRadiusS,"Design system")};class ri extends bt{constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.dataList=[],this.focused=!1}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--no-label":!this.label};return W`
614
+ <div class="${Bt(t)}">
758
615
  <div class="ft-text-field--main-panel">
759
616
  <ft-input-label text="${this.label}"
760
617
  ?disabled=${this.disabled}
@@ -763,7 +620,7 @@ const xi=s`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
763
620
  ></ft-input-label>
764
621
  <div class="ft-text-field--input-panel"
765
622
  aria-label="${this.label}">
766
- ${this.outlined?null:j`
623
+ ${this.outlined?null:W`
767
624
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
768
625
  `}
769
626
  <input type="text"
@@ -778,49 +635,107 @@ const xi=s`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
778
635
  />
779
636
 
780
637
  <datalist id="datalist">
781
- ${this.dataList.map((t=>j`
638
+ ${this.dataList.map((t=>W`
782
639
  <option value="${t}"></option>`))}
783
640
  </datalist>
784
641
 
785
642
  </div>
786
643
  </div>
787
- ${this.helper?j`
644
+ ${this.helper?W`
788
645
  <ft-typography class="ft-text-field--helper-text" variant="caption">${this.helper}
789
646
  </ft-typography>`:void 0}
790
647
  </div>
791
- `}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}updateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||"",this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||""}};Ri.elementDefinitions={"ft-input-label":Ge,"ft-ripple":gi,"ft-typography":Ze},Ci([nt({type:String})],Ri.prototype,"label",void 0),Ci([nt({reflect:!0})],Ri.prototype,"value",void 0),Ci([nt({type:String})],Ri.prototype,"helper",void 0),Ci([nt({type:Boolean})],Ri.prototype,"outlined",void 0),Ci([nt({type:Boolean})],Ri.prototype,"disabled",void 0),Ci([lt(".ft-text-field--input")],Ri.prototype,"input",void 0),Ci([nt({attribute:!1})],Ri.prototype,"dataList",void 0),Ci([st()],Ri.prototype,"focused",void 0),Ri=Ci([Ct("ft-text-field")],Ri);var zi=function(t,e,i,r){for(var o,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const Ni=Et.create("--ft-tooltip-distance","SIZE","4px"),Fi=Et.create("--ft-tooltip-color","COLOR","#FFFFFF"),Ti=Et.create("--ft-tooltip-background-color","COLOR","#666666"),Ai=Et.create("--ft-tooltip-z-index","NUMBER","1"),Mi=Et.external(zt.borderRadiusS,"Design system");let ji=class extends Nt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new kt,this.revealDebouncer=new kt}getStyles(){return s`
792
- .ft-tooltip--container {
793
- display: block;
794
- position: relative;
648
+ `}updated(t){super.updated(t),t.has("value")&&this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}updateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||"",this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.input)||void 0===t?void 0:t.value)||""}}ri.elementDefinitions={"ft-input-label":Xe,"ft-ripple":Ye,"ft-typography":Ze},ri.styles=[je,b`
649
+ *:focus {
650
+ outline: none;
795
651
  }
796
652
 
797
- .ft-tooltip--inline {
798
- display: inline-block;
799
- max-width: 100%;
653
+ .ft-text-field {
654
+ display: flex;
655
+ flex-direction: column;
656
+ align-items: stretch;
800
657
  }
801
658
 
802
- .ft-tooltip {
803
- position: absolute;
804
- box-sizing: border-box;
805
- overflow: hidden;
806
- width: max-content;
807
- max-width: 150px;
808
- text-align: center;
809
- padding: ${Ni};
810
- z-index: ${Ai};
659
+ ft-input-label {
660
+ ${ft(Ve.fontSize,si.fontSize)};
661
+ ${ft(Ve.raisedFontSize,si.labelSize)};
662
+ ${ft(Ve.verticalSpacing,si.verticalSpacing)};
663
+ ${ft(Ve.horizontalSpacing,b`calc(${si.horizontalSpacing} - 4px)`)};
664
+ }
665
+
666
+ .ft-text-field--main-panel {
667
+ position: relative;
668
+ display: flex;
669
+ height: calc(4 * ${si.verticalSpacing} + ${si.labelSize} + ${si.fontSize});
811
670
  }
812
671
 
813
- .ft-tooltip--content {
814
- padding: 4px 8px;
815
- border-radius: ${Mi};
816
- background-color: ${Ti};
817
- color: ${Fi};
818
- top: -500px;
819
- left: -500px;
672
+ .ft-text-field--input-panel {
673
+ flex-grow: 1;
820
674
  position: relative;
821
- word-break: break-word;
675
+ display: flex;
676
+ align-items: center;
677
+ overflow: hidden;
678
+ gap: 8px;
679
+ }
680
+
681
+ .ft-text-field--input-panel ft-ripple {
682
+ ${ft(Je.opacityContentOnSurfaceHover,"0.08")};
683
+ ${ft(Je.opacityContentOnSurfacePressed,"0.04")};
684
+ }
685
+
686
+ .ft-text-field--input {
687
+ display: block;
688
+ flex-grow: 1;
689
+ flex-shrink: 1;
690
+ min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
691
+
692
+ ${ft(ue.fontSize,si.fontSize)};
693
+ ${ft(ue.lineHeight,si.fontSize)};
694
+ color: ${si.colorOnSurface};
695
+
696
+ padding: 0 ${si.horizontalSpacing};
697
+
698
+ border: none;
699
+ background: none;
700
+ }
701
+
702
+ .ft-text-field--input::-webkit-calendar-picker-indicator,
703
+ .ft-text-field--input::-webkit-list-button {
704
+ display: none !important;
705
+ }
706
+
707
+ .ft-text-field--disabled .ft-text-field--input {
708
+ color: ${si.colorOnSurfaceDisabled};
709
+ }
710
+
711
+ .ft-text-field:not(.ft-text-field--disabled) .ft-text-field--input-panel {
712
+ cursor: pointer;
713
+ }
714
+
715
+ .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
716
+ ${ft(Ve.borderColor,si.colorPrimary)};
717
+ ${ft(Ve.textColor,si.colorPrimary)};
718
+ }
719
+
720
+ .ft-text-field--filled .ft-text-field--input-panel {
721
+ border-radius: ${si.borderRadiusS} ${si.borderRadiusS} 0 0;
722
+ }
723
+
724
+ .ft-text-field--filled:not(.ft-text-field--no-label) .ft-text-field--input {
725
+ align-self: stretch;
726
+ padding-bottom: ${si.verticalSpacing};
727
+ padding-top: calc(${si.labelSize} + 2 * ${si.verticalSpacing});
728
+ }
729
+
730
+ .ft-text-field--outlined .ft-text-field--input-panel {
731
+ border-radius: ${si.borderRadiusS};
732
+ }
733
+
734
+ .ft-text-field--helper-text {
735
+ padding: 0 12px 0 ${si.horizontalSpacing};
736
+ color: ${si.helperColor};
822
737
  }
823
- `}getTemplate(){return j`
738
+ `],ni([o({type:String})],ri.prototype,"label",void 0),ni([o({reflect:!0})],ri.prototype,"value",void 0),ni([o({type:String})],ri.prototype,"helper",void 0),ni([o({type:Boolean})],ri.prototype,"outlined",void 0),ni([o({type:Boolean})],ri.prototype,"disabled",void 0),ni([r(".ft-text-field--input")],ri.prototype,"input",void 0),ni([o({attribute:!1})],ri.prototype,"dataList",void 0),ni([n()],ri.prototype,"focused",void 0),p("ft-text-field")(ri);var li=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const ai=ht.create("--ft-tooltip-distance","SIZE","4px"),pi=ht.create("--ft-tooltip-color","COLOR","#FFFFFF"),ci=ht.create("--ft-tooltip-background-color","COLOR","#666666"),di=ht.create("--ft-tooltip-z-index","NUMBER","1"),hi=ht.external(ut.borderRadiusS,"Design system");class fi extends bt{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new e,this.revealDebouncer=new e}render(){return W`
824
739
  <div part="container"
825
740
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
826
741
  @mouseenter=${this.onHover}
@@ -835,13 +750,45 @@ const xi=s`:host{font-family:var(--mdc-icon-font, "Material Icons");font-weight:
835
750
  </div>
836
751
  <slot></slot>
837
752
  </div>
838
- `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,r=(e.width-this.tooltip.clientWidth)/2,o=this.tooltip.style;switch(this.position){case"top":o.top=-this.tooltip.clientHeight+"px",o.left=r+"px";break;case"bottom":o.top=e.height+"px",o.left=r+"px";break;case"left":o.top=i+"px",o.left=-this.tooltip.clientWidth+"px";break;case"right":o.top=i+"px",o.left=e.width+"px"}o.maxWidth=Math.max(e.width,150)+"px"}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}};ji.elementDefinitions={"ft-typography":Ze},zi([nt()],ji.prototype,"text",void 0),zi([nt({type:Boolean})],ji.prototype,"manual",void 0),zi([nt({type:Boolean})],ji.prototype,"inline",void 0),zi([nt({type:Number})],ji.prototype,"delay",void 0),zi([nt()],ji.prototype,"position",void 0),zi([
753
+ `}update(t){t.has("visible")&&!this.visible&&this.resetTooltipContent(),super.update(t)}contentAvailableCallback(t){t.has("visible")&&this.visible&&this.positionTooltip()}show(t){this.visible=!0,null!=t&&this.hideDebounce.run((()=>this.hide()),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.position){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent();const t=this.slottedElement;if(this.tooltip&&t){const e=t.getBoundingClientRect(),i=(e.height-this.tooltip.clientHeight)/2,o=(e.width-this.tooltip.clientWidth)/2,n=this.tooltip.style;switch(this.position){case"top":n.top=-this.tooltip.clientHeight+"px",n.left=o+"px";break;case"bottom":n.top=e.height+"px",n.left=o+"px";break;case"left":n.top=i+"px",n.left=-this.tooltip.clientWidth+"px";break;case"right":n.top=i+"px",n.left=e.width+"px"}n.maxWidth=Math.max(e.width,150)+"px"}this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}}fi.elementDefinitions={"ft-typography":Ze},fi.styles=b`
754
+ .ft-tooltip--container {
755
+ display: block;
756
+ position: relative;
757
+ }
758
+
759
+ .ft-tooltip--inline {
760
+ display: inline-block;
761
+ max-width: 100%;
762
+ }
763
+
764
+ .ft-tooltip {
765
+ position: absolute;
766
+ box-sizing: border-box;
767
+ overflow: hidden;
768
+ width: max-content;
769
+ max-width: 150px;
770
+ text-align: center;
771
+ padding: ${ai};
772
+ z-index: ${di};
773
+ }
774
+
775
+ .ft-tooltip--content {
776
+ padding: 4px 8px;
777
+ border-radius: ${hi};
778
+ background-color: ${ci};
779
+ color: ${pi};
780
+ top: -500px;
781
+ left: -500px;
782
+ position: relative;
783
+ word-break: break-word;
784
+ }
785
+ `,li([o()],fi.prototype,"text",void 0),li([o({type:Boolean})],fi.prototype,"manual",void 0),li([o({type:Boolean})],fi.prototype,"inline",void 0),li([o({type:Number})],fi.prototype,"delay",void 0),li([o()],fi.prototype,"position",void 0),li([
839
786
  /**
840
787
  * @license
841
788
  * Copyright 2017 Google LLC
842
789
  * SPDX-License-Identifier: BSD-3-Clause
843
790
  */
844
- function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return at({descriptor:r=>({get(){var r;const o="slot"+(e?`[name=${e}]`:":not([name])"),n=null===(r=this.renderRoot)||void 0===r?void 0:r.querySelector(o),s=null!=n?pt(n,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:o,flatten:e,selector:i}):at({descriptor:t=>({get(){var t,e;const i="slot"+(o?`[name=${o}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==n?void 0:n.assignedNodes(r))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],ji.prototype,"slotNodes",void 0),zi([lt(".ft-tooltip--container")],ji.prototype,"container",void 0),zi([lt("slot")],ji.prototype,"target",void 0),zi([lt(".ft-tooltip")],ji.prototype,"tooltip",void 0),zi([lt(".ft-tooltip--content")],ji.prototype,"tooltipContent",void 0),zi([st()],ji.prototype,"visible",void 0),ji=zi([Ct("ft-tooltip")],ji);var Di=function(t,e,i,r){for(var o,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const Ui={color:Et.extend("--ft-loader-color",zt.colorPrimary),size:Et.create("--ft-loader-size","SIZE","80px")};let Bi=class extends Nt{getStyles(){return s`
791
+ function(t,e,i){let o,n=t;return"object"==typeof t?(n=t.slot,o=t):o={flatten:e},i?function(t){const{slot:e,selector:i}=null!=t?t:{};return s({descriptor:o=>({get(){var o;const n="slot"+(e?`[name=${e}]`:":not([name])"),s=null===(o=this.renderRoot)||void 0===o?void 0:o.querySelector(n),r=null!=s?a(s,t):[];return i?r.filter((t=>t.matches(i))):r},enumerable:!0,configurable:!0})})}({slot:n,flatten:e,selector:i}):s({descriptor:t=>({get(){var t,e;const i="slot"+(n?`[name=${n}]`:":not([name])"),s=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==s?void 0:s.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}("",!0)],fi.prototype,"slotNodes",void 0),li([r(".ft-tooltip--container")],fi.prototype,"container",void 0),li([r("slot")],fi.prototype,"target",void 0),li([r(".ft-tooltip")],fi.prototype,"tooltip",void 0),li([r(".ft-tooltip--content")],fi.prototype,"tooltipContent",void 0),li([n()],fi.prototype,"visible",void 0),p("ft-tooltip")(fi);const ui={color:ht.extend("--ft-loader-color",ut.colorPrimary),size:ht.create("--ft-loader-size","SIZE","80px")};class bi extends bt{static get styles(){return b`
845
792
  :host {
846
793
  line-height: 0;
847
794
  }
@@ -850,8 +797,8 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
850
797
  display: inline-block;
851
798
  position: relative;
852
799
 
853
- width: ${Ui.size};
854
- height: ${Ui.size};
800
+ width: ${ui.size};
801
+ height: ${ui.size};
855
802
  }
856
803
 
857
804
  .ft-loader div {
@@ -860,7 +807,7 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
860
807
  width: 25%;
861
808
  height: 25%;
862
809
  border-radius: 50%;
863
- background: ${Ui.color};
810
+ background: ${ui.color};
864
811
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
865
812
  }
866
813
 
@@ -907,20 +854,21 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
907
854
  transform: translate(0, 0);
908
855
  }
909
856
  100% {
910
- transform: translate(calc(0.35 * ${Ui.size}), 0);
857
+ transform: translate(calc(0.35 * ${ui.size}), 0);
911
858
  }
912
859
  }
913
- `}getTemplate(){return j`
860
+ `}render(){return W`
914
861
  <div class="ft-loader">
915
862
  <div></div>
916
863
  <div></div>
917
864
  <div></div>
918
865
  <div></div>
919
866
  </div>
920
- `}};Bi=Di([Ct("ft-loader")],Bi);var _i=function(t,e,i,r){for(var o,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};const Ii=Et.extend("--ft-button-color",zt.colorPrimary),Li={backgroundColor:Et.extend("--ft-button-background-color",zt.colorSurface),borderRadius:Et.extend("--ft-button-border-radius",zt.borderRadiusL),color:Ii,fontSize:Et.extend("--ft-button-font-size",je.fontSize),iconSize:Et.create("--ft-button-icon-size","SIZE","24px"),rippleColor:Et.extend("--ft-button-ripple-color",Ii),opacityDisabled:Et.external(zt.colorOpacityDisabled,"Design system")},Pi=Et.extend("--ft-button-primary-color",Et.extend("--ft-button-color",zt.colorOnPrimary)),Hi=Et.extend("--ft-button-primary-background-color",Et.extend("--ft-button-background-color",zt.colorPrimary)),Vi=Pi,Wi=(Et.extend("--ft-button-primary-ripple-color",Pi),Et.extend("--ft-button-dense-border-radius",Et.extend("--ft-button-border-radius",zt.borderRadiusM)));let Zi=class extends Nt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}getStyles(){return[Ft,s`
867
+ `}}p("ft-loader")(bi);var vi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};const yi=ht.extend("--ft-button-color",ut.colorPrimary),gi={backgroundColor:ht.extend("--ft-button-background-color",ut.colorSurface),borderRadius:ht.extend("--ft-button-border-radius",ut.borderRadiusL),color:yi,fontSize:ht.extend("--ft-button-font-size",De.fontSize),iconSize:ht.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ht.extend("--ft-button-ripple-color",yi),opacityDisabled:ht.external(ut.colorOpacityDisabled,"Design system")},xi=ht.extend("--ft-button-primary-color",ht.extend("--ft-button-color",ut.colorOnPrimary)),mi={backgroundColor:ht.extend("--ft-button-primary-background-color",ht.extend("--ft-button-background-color",ut.colorPrimary)),color:xi,rippleColor:ht.extend("--ft-button-primary-ripple-color",xi)},$i=ht.extend("--ft-button-dense-border-radius",ht.extend("--ft-button-border-radius",ut.borderRadiusM));class wi extends bt{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}static get styles(){return[vt,b`
921
868
  :host {
922
869
  display: inline-block;
923
870
  max-width: 100%;
871
+ pointer-events: none;
924
872
  }
925
873
 
926
874
  button {
@@ -953,19 +901,20 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
953
901
  overflow: hidden;
954
902
  box-sizing: border-box;
955
903
  border: none;
904
+ pointer-events: auto;
956
905
 
957
- --ft-button-internal-font-size: ${Li.fontSize};
906
+ --ft-button-internal-font-size: ${gi.fontSize};
958
907
  --ft-button-internal-line-height: calc(var(--ft-button-internal-font-size) + 2px);
959
- --ft-button-internal-color: ${Li.color};
960
- --mdc-icon-size: ${Li.iconSize};
908
+ --ft-button-internal-color: ${gi.color};
909
+ --mdc-icon-size: ${gi.iconSize};
961
910
  --ft-button-internal-vertical-padding: 6px;
962
911
  --ft-button-internal-horizontal-padding: 8px;
963
- ${Rt(bi.color,Li.rippleColor)};
912
+ ${ft(Je.color,gi.rippleColor)};
964
913
  --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), var(--mdc-icon-size));
965
914
 
966
- border-radius: ${Li.borderRadius};
915
+ border-radius: ${gi.borderRadius};
967
916
  padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
968
- background-color: ${Li.backgroundColor};
917
+ background-color: ${gi.backgroundColor};
969
918
  color: var(--ft-button-internal-color);
970
919
  -webkit-mask-image: radial-gradient(white, black);
971
920
  }
@@ -977,7 +926,7 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
977
926
  .ft-button--dense {
978
927
  --ft-button-internal-vertical-padding: 2px;
979
928
  --ft-button-internal-horizontal-padding: 4px;
980
- border-radius: ${Wi};
929
+ border-radius: ${$i};
981
930
  }
982
931
 
983
932
  .ft-button--round {
@@ -986,12 +935,13 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
986
935
 
987
936
  .ft-button[disabled] {
988
937
  filter: grayscale(1);
989
- opacity: ${Li.opacityDisabled};
938
+ opacity: ${gi.opacityDisabled};
990
939
  }
991
940
 
992
941
  .ft-button.ft-button--primary {
993
- background-color: ${Hi};
994
- --ft-button-internal-color: ${Vi};
942
+ background-color: ${mi.backgroundColor};
943
+ --ft-button-internal-color: ${mi.color};
944
+ ${ft(Je.color,mi.rippleColor)};
995
945
  }
996
946
 
997
947
  .ft-button.ft-button--outlined {
@@ -1009,8 +959,8 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
1009
959
  text-overflow: ellipsis;
1010
960
  display: block;
1011
961
  margin: 0 var(--ft-button-internal-horizontal-padding);
1012
- ${Rt(je.fontSize,"var(--ft-button-internal-font-size)")};
1013
- ${Rt(je.lineHeight,"var(--ft-button-internal-content-height)")};
962
+ ${ft(De.fontSize,"var(--ft-button-internal-font-size)")};
963
+ ${ft(De.lineHeight,"var(--ft-button-internal-content-height)")};
1014
964
  }
1015
965
 
1016
966
  .ft-button--safari-fix .ft-button--label {
@@ -1043,12 +993,12 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
1043
993
  }
1044
994
 
1045
995
  ft-loader {
1046
- ${Rt(Ui.size,Li.iconSize)};
1047
- ${Rt(Ui.color,"var(--ft-button-internal-color)")};
996
+ ${ft(ui.size,gi.iconSize)};
997
+ ${ft(ui.color,"var(--ft-button-internal-color)")};
1048
998
  }
1049
- `]}getTemplate(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":jt,"ft-no-text-select":!0};return this.addTooltip(j`
999
+ `]}render(){const t={"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--safari-fix":mt,"ft-no-text-select":!0};return this.addTooltip(W`
1050
1000
  <button part="button"
1051
- class="${Dt(t)}"
1001
+ class="${Bt(t)}"
1052
1002
  aria-label="${this.getLabel()}"
1053
1003
  ?disabled=${this.isDisabled()}>
1054
1004
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
@@ -1060,127 +1010,32 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
1060
1010
  </ft-typography>
1061
1011
  ${this.resolveIcon()}
1062
1012
  </button>
1063
- `)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:j`
1013
+ `)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:W`
1064
1014
  <ft-tooltip part="tooltip"
1065
1015
  text="${this.getLabel()}"
1066
1016
  position="${this.tooltipPosition}">
1067
1017
  ${t}
1068
1018
  </ft-tooltip>
1069
- `}resolveIcon(){return this.loading?j`
1070
- <ft-loader></ft-loader> `:this.icon?j`
1071
- <mwc-icon>${this.icon}</mwc-icon> `:U}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};Zi.elementDefinitions={"ft-ripple":gi,"ft-tooltip":ji,"ft-typography":Ze,"mwc-icon":wi,"ft-loader":Bi},_i([nt({type:Boolean})],Zi.prototype,"primary",void 0),_i([nt({type:Boolean})],Zi.prototype,"outlined",void 0),_i([nt({type:Boolean})],Zi.prototype,"disabled",void 0),_i([nt({type:Boolean})],Zi.prototype,"dense",void 0),_i([nt({type:Boolean})],Zi.prototype,"round",void 0),_i([nt({type:String})],Zi.prototype,"label",void 0),_i([nt({type:String})],Zi.prototype,"icon",void 0),_i([nt({type:Boolean})],Zi.prototype,"trailingIcon",void 0),_i([nt({type:Boolean})],Zi.prototype,"loading",void 0),_i([nt({type:String})],Zi.prototype,"tooltipPosition",void 0),_i([lt(".ft-button")],Zi.prototype,"button",void 0),_i([lt(".ft-button--label slot")],Zi.prototype,"slottedContent",void 0),Zi=_i([Ct("ft-button")],Zi);var Ki=function(t,e,i,r){for(var o,n=arguments.length,s=n<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r,a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,i,s):o(e,i))||s);return n>3&&s&&Object.defineProperty(e,i,s),s};class qi extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const Gi={headerBackground:Et.create("--ft-filterable-table-header-background","COLOR","whitesmoke"),oddRowBackground:Et.create("--ft-filterable-table-odd-row-background","COLOR","#FFFFFF"),evenRowBackground:Et.create("--ft-filterable-table-even-row-background","COLOR","#fdfdfd"),rowHoverBackground:Et.create("--ft-filterable-table-row-hover-background","COLOR","#fafafa"),colorOnSurfaceHigh:Et.external(zt.colorOnSurfaceHigh,"Design system"),titleFont:Et.external(zt.titleFont,"Design system"),contentFont:Et.external(zt.contentFont,"Design system")},Xi=t=>j`${t}`,Ji=(t,e)=>t-e;t.FtFilterableTable=class extends Nt{constructor(){super(...arguments),this.data=[],this.columns=[],this.filters=[],this.selectData=[]}getStyles(){return s`
1072
- :host {
1073
- display: block;
1074
- }
1075
-
1076
- .table {
1077
- display: grid;
1078
- grid-template-columns: repeat(${this.columns.length}, minmax(min-content, auto));
1079
- }
1080
-
1081
- .header, .row {
1082
- display: contents;
1083
- }
1084
-
1085
- .header-cell {
1086
- display: flex;
1087
- flex-direction: column;
1088
- background: ${Gi.headerBackground};
1089
- color: ${Gi.colorOnSurfaceHigh};
1090
- padding: .5rem 1rem;
1091
- font-family: ${Gi.titleFont};
1092
- }
1093
-
1094
- .header-cell:first-of-type {
1095
- border-radius: .5rem 0 0 0;
1096
- }
1097
-
1098
- .header-cell:last-of-type {
1099
- border-radius: 0 .5rem 0 0;
1100
- }
1101
-
1102
- .column-title-container {
1103
- display: flex;
1104
- align-items: center;
1105
- }
1106
-
1107
- .column-title-container ft-button {
1108
- ${Rt(Li.backgroundColor,Gi.headerBackground)};
1109
- ${Rt(Li.color,Gi.colorOnSurfaceHigh)};
1110
- }
1111
-
1112
- .column-title {
1113
- white-space: nowrap;
1114
- text-transform: uppercase;
1115
- margin-right: .5rem;
1116
- }
1117
-
1118
- .column-filter {
1119
- flex-grow: 1;
1120
- flex-shrink: 0;
1121
- }
1122
-
1123
- .column-filter:not(:empty) {
1124
- padding-top: .5rem;
1125
- }
1126
-
1127
- .column-filter ft-text-field,
1128
- .column-filter ft-select {
1129
- width: 150px;
1130
- min-width: 100%;
1131
- }
1132
-
1133
- .cell {
1134
- padding: 1rem;
1135
- border-left: 1px solid ${Gi.headerBackground};
1136
- border-bottom: 1px solid ${Gi.headerBackground};
1137
- overflow-x: auto;
1138
- display: flex;
1139
- align-items: center;
1140
- font-family: ${Gi.contentFont};
1141
- }
1142
-
1143
- /* Even is 2n+1 and odd is 2n because of the header */
1144
- .row:nth-child(2n) > .cell {
1145
- background: ${Gi.oddRowBackground};
1146
- }
1147
-
1148
- .row:nth-child(2n + 1) > .cell {
1149
- background: ${Gi.evenRowBackground};
1150
- }
1151
-
1152
- .row:hover > .cell {
1153
- background: ${Gi.rowHoverBackground};
1154
- }
1155
-
1156
- .cell:last-of-type {
1157
- border-right: 1px solid ${Gi.headerBackground};
1158
- }
1159
-
1160
- .row:last-of-type .cell:first-of-type {
1161
- border-radius: 0 0 0 .5rem;
1162
- }
1163
-
1164
- .row:last-of-type .cell:last-of-type {
1165
- border-radius: 0 0 .5rem 0;
1166
- }
1167
-
1168
- .hidden {
1169
- visibility: hidden;
1170
- }
1171
- `}init(t,e,i){this.data=t,this.columns=e,this.sort=i}getTemplate(){let t=this.sortData(this.filterData());return j`
1019
+ `}resolveIcon(){return this.loading?W`
1020
+ <ft-loader></ft-loader> `:this.icon?W`
1021
+ <mwc-icon>${this.icon}</mwc-icon> `:K}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}wi.elementDefinitions={"ft-ripple":Ye,"ft-tooltip":fi,"ft-typography":Ze,"mwc-icon":Qe,"ft-loader":bi},vi([o({type:Boolean})],wi.prototype,"primary",void 0),vi([o({type:Boolean})],wi.prototype,"outlined",void 0),vi([o({type:Boolean})],wi.prototype,"disabled",void 0),vi([o({type:Boolean})],wi.prototype,"dense",void 0),vi([o({type:Boolean})],wi.prototype,"round",void 0),vi([o({type:String})],wi.prototype,"label",void 0),vi([o({type:String})],wi.prototype,"icon",void 0),vi([o({type:Boolean})],wi.prototype,"trailingIcon",void 0),vi([o({type:Boolean})],wi.prototype,"loading",void 0),vi([o({type:String})],wi.prototype,"tooltipPosition",void 0),vi([r(".ft-button")],wi.prototype,"button",void 0),vi([r(".ft-button--label slot")],wi.prototype,"slottedContent",void 0),p("ft-button")(wi);var Oi=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(n=t[l])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class Si extends CustomEvent{constructor(t){super("row-click",{detail:t})}}const ki={headerBackground:ht.create("--ft-filterable-table-header-background","COLOR","whitesmoke"),oddRowBackground:ht.create("--ft-filterable-table-odd-row-background","COLOR","#FFFFFF"),evenRowBackground:ht.create("--ft-filterable-table-even-row-background","COLOR","#fdfdfd"),rowHoverBackground:ht.create("--ft-filterable-table-row-hover-background","COLOR","#fafafa"),colorOnSurfaceHigh:ht.external(ut.colorOnSurfaceHigh,"Design system"),titleFont:ht.external(ut.titleFont,"Design system"),contentFont:ht.external(ut.contentFont,"Design system")},Ci=t=>W`${t}`,Ei=(t,e)=>t-e;class Ri extends bt{constructor(){super(...arguments),this.data=[],this.columns=[],this.filters=[],this.selectData=[]}init(t,e,i){this.data=t,this.columns=e,this.sort=i}render(){let t=this.sortData(this.filterData());return W`
1022
+ <style>
1023
+ .table {
1024
+ grid-template-columns: repeat(${this.columns.length}, minmax(min-content, auto));
1025
+ }
1026
+ </style>
1172
1027
  <div class="table">
1173
1028
  <div class="header">
1174
- ${$t(this.columns,((t,e)=>"header-cell-"+e),((t,e)=>this.renderHeader(t,e)))}
1029
+ ${Ft(this.columns,((t,e)=>"header-cell-"+e),((t,e)=>this.renderHeader(t,e)))}
1175
1030
  </div>
1176
- ${$t(t,((t,e)=>"row-"+e),((t,e)=>j`
1031
+ ${Ft(t,((t,e)=>"row-"+e),((t,e)=>W`
1177
1032
  <div class="row"
1178
- @click=${()=>this.dispatchEvent(new qi(t))}>
1179
- ${$t(this.columns,((t,i)=>"cell-"+e+" "+i),(i=>this.renderCell(i,t,e)))}
1033
+ @click=${()=>this.dispatchEvent(new Si(t))}>
1034
+ ${Ft(this.columns,((t,i)=>"cell-"+e+" "+i),(i=>this.renderCell(i,t,e)))}
1180
1035
  </div>
1181
1036
  `))}
1182
1037
  </div>
1183
- `}filterData(){let t=[...this.data];return this.filters.forEach(((e,i)=>{var r;const o=this.columns[i];if(e)switch(null!==(r=o.filter)&&void 0!==r?r:"text"){case"text":e.value&&(t=t.filter((t=>this.getValueAsString(o,t,i).toLowerCase().includes(e.value.toLowerCase()))));break;case"select":e.value&&(t=t.filter((t=>this.getValueAsString(o,t,i)===e.value)))}})),t}sortData(t){var e;if(this.currentSort){const i=this.columns[this.currentSort.column],r=null!==(e=i.comparator)&&void 0!==e?e:Ji,o="asc"===this.currentSort.order?r:(t,e)=>-r(t,e);return t.sort(((t,e)=>o(this.getValue(i,t),this.getValue(i,e))))}return t}update(t){super.update(t),t.has("sort")&&(this.currentSort=this.sort),(t.has("data")||t.has("columns"))&&this.updateSelectData()}updateSelectData(){this.selectData=[];const t=this.data,e=this.columns;for(let i in e){const r=e[i];"select"===r.filter&&(this.selectData[i]=[...new Set(t.map(((t,e)=>this.getValueAsString(r,t,e))))].sort(((t,e)=>t.localeCompare(e))))}this.requestUpdate()}renderHeader(t,e){return j`
1038
+ `}filterData(){let t=[...this.data];return this.filters.forEach(((e,i)=>{var o;const n=this.columns[i];if(e)switch(null!==(o=n.filter)&&void 0!==o?o:"text"){case"text":e.value&&(t=t.filter((t=>this.getValueAsString(n,t,i).toLowerCase().includes(e.value.toLowerCase()))));break;case"select":e.value&&(t=t.filter((t=>this.getValueAsString(n,t,i)===e.value)))}})),t}sortData(t){var e;if(this.currentSort){const i=this.columns[this.currentSort.column],o=null!==(e=i.comparator)&&void 0!==e?e:Ei,n="asc"===this.currentSort.order?o:(t,e)=>-o(t,e);return t.sort(((t,e)=>n(this.getValue(i,t),this.getValue(i,e))))}return t}update(t){super.update(t),t.has("sort")&&(this.currentSort=this.sort),(t.has("data")||t.has("columns"))&&this.updateSelectData()}updateSelectData(){this.selectData=[];const t=this.data,e=this.columns;for(let i in e){const o=e[i];"select"===o.filter&&(this.selectData[i]=[...new Set(t.map(((t,e)=>this.getValueAsString(o,t,e))))].sort(((t,e)=>t.localeCompare(e))))}this.requestUpdate()}renderHeader(t,e){return W`
1184
1039
  <div class="header-cell">
1185
1040
  <div class="column-title-container">
1186
1041
  <span class="column-title">${t.title}</span>
@@ -1190,27 +1045,126 @@ function(t,e,i){let r,o=t;return"object"==typeof t?(o=t.slot,r=t):r={flatten:e},
1190
1045
  ${this.renderColumnFilter(t,e)}
1191
1046
  </div>
1192
1047
  </div>
1193
- `}renderColumnSort(t,e){var i;const r=this.currentSort&&this.currentSort.column===e,o=r?"asc"===this.currentSort.order?"expand_more":"expand_less":"unfold_more";return j`
1048
+ `}renderColumnSort(t,e){var i;const o=this.currentSort&&this.currentSort.column===e,n=o?"asc"===this.currentSort.order?"expand_more":"expand_less":"unfold_more";return W`
1194
1049
  <ft-button
1195
1050
  round
1196
1051
  dense
1197
1052
  class="${null===(i=t.sortable)||void 0===i||i?"":"hidden"}"
1198
- icon="${o}"
1053
+ icon="${n}"
1199
1054
  label="Sort ${t.title}"
1200
- @click=${()=>{var t;r?"asc"===(null===(t=this.currentSort)||void 0===t?void 0:t.order)?this.currentSort={column:e,order:"desc"}:this.currentSort=void 0:this.currentSort={column:e,order:"asc"}}}
1055
+ @click=${()=>{var t;o?"asc"===(null===(t=this.currentSort)||void 0===t?void 0:t.order)?this.currentSort={column:e,order:"desc"}:this.currentSort=void 0:this.currentSort={column:e,order:"asc"}}}
1201
1056
  ></ft-button>
1202
- `}renderColumnFilter(t,e){var i,r;const o=t=>{this.filters[e]={value:t.detail},this.requestUpdate()};switch(null!==(i=t.filter)&&void 0!==i?i:"text"){case"text":return j`
1057
+ `}renderColumnFilter(t,e){var i,o;const n=t=>{this.filters[e]={value:t.detail},this.requestUpdate()};switch(null!==(i=t.filter)&&void 0!==i?i:"text"){case"text":return W`
1203
1058
  <ft-text-field
1204
1059
  label="Search ${t.title}"
1205
- @live-change="${o}"
1060
+ @live-change="${n}"
1206
1061
  ></ft-text-field>
1207
- `;case"select":const i=null!==(r=this.selectData[e])&&void 0!==r?r:[];return i.length?j`
1208
- <ft-select label="Filter ${t.title}" @change=${o}>
1062
+ `;case"select":const i=null!==(o=this.selectData[e])&&void 0!==o?o:[];return i.length?W`
1063
+ <ft-select label="Filter ${t.title}" @change=${n}>
1209
1064
  <ft-select-option></ft-select-option>
1210
- ${i.map((t=>j`
1065
+ ${i.map((t=>W`
1211
1066
  <ft-select-option value="${t}" label="${t}"></ft-select-option>
1212
1067
  `))}
1213
1068
  </ft-select>
1214
- `:null}return null}renderCell(t,e,i){var r;const o=null!==(r=t.render)&&void 0!==r?r:Xi;return j`
1215
- <div class="cell">${(t=>{const e=o(t,i);return"string"==typeof e?St(e):e})(this.getValue(t,e))}</div>
1216
- `}getValue(t,e){return"string"==typeof t.getter?e[t.getter]:t.getter(e)}getValueAsString(t,e,i){const r=this.getValue(t,e);return"function"==typeof t.stringify?t.stringify(r,i):(t=>""+t)(r)}},Ki([nt({attribute:!1})],t.FtFilterableTable.prototype,"data",void 0),Ki([nt({attribute:!1})],t.FtFilterableTable.prototype,"columns",void 0),Ki([nt({attribute:!1})],t.FtFilterableTable.prototype,"sort",void 0),Ki([st()],t.FtFilterableTable.prototype,"currentSort",void 0),t.FtFilterableTable=Ki([Ct("ft-filterable-table")],t.FtFilterableTable),t.FtFilterableTableCssVariables=Gi,t.RowClickEvent=qi,Object.defineProperty(t,"t",{value:!0})}({});
1069
+ `:null}return null}renderCell(t,e,i){var o;const n=null!==(o=t.render)&&void 0!==o?o:Ci;return W`
1070
+ <div class="cell">${(t=>{const e=n(t,i);return"string"==typeof e?Dt(e):e})(this.getValue(t,e))}</div>
1071
+ `}getValue(t,e){return"string"==typeof t.getter?e[t.getter]:t.getter(e)}getValueAsString(t,e,i){const o=this.getValue(t,e);return"function"==typeof t.stringify?t.stringify(o,i):(t=>""+t)(o)}}Ri.styles=b`
1072
+ :host {
1073
+ display: block;
1074
+ }
1075
+
1076
+ .table {
1077
+ display: grid;
1078
+ }
1079
+
1080
+ .header, .row {
1081
+ display: contents;
1082
+ }
1083
+
1084
+ .header-cell {
1085
+ display: flex;
1086
+ flex-direction: column;
1087
+ background: ${ki.headerBackground};
1088
+ color: ${ki.colorOnSurfaceHigh};
1089
+ padding: .5rem 1rem;
1090
+ font-family: ${ki.titleFont};
1091
+ }
1092
+
1093
+ .header-cell:first-of-type {
1094
+ border-radius: .5rem 0 0 0;
1095
+ }
1096
+
1097
+ .header-cell:last-of-type {
1098
+ border-radius: 0 .5rem 0 0;
1099
+ }
1100
+
1101
+ .column-title-container {
1102
+ display: flex;
1103
+ align-items: center;
1104
+ }
1105
+
1106
+ .column-title-container ft-button {
1107
+ ${ft(gi.backgroundColor,ki.headerBackground)};
1108
+ ${ft(gi.color,ki.colorOnSurfaceHigh)};
1109
+ }
1110
+
1111
+ .column-title {
1112
+ white-space: nowrap;
1113
+ text-transform: uppercase;
1114
+ margin-right: .5rem;
1115
+ }
1116
+
1117
+ .column-filter {
1118
+ flex-grow: 1;
1119
+ flex-shrink: 0;
1120
+ }
1121
+
1122
+ .column-filter:not(:empty) {
1123
+ padding-top: .5rem;
1124
+ }
1125
+
1126
+ .column-filter ft-text-field,
1127
+ .column-filter ft-select {
1128
+ width: 150px;
1129
+ min-width: 100%;
1130
+ }
1131
+
1132
+ .cell {
1133
+ padding: 1rem;
1134
+ border-left: 1px solid ${ki.headerBackground};
1135
+ border-bottom: 1px solid ${ki.headerBackground};
1136
+ overflow-x: auto;
1137
+ display: flex;
1138
+ align-items: center;
1139
+ font-family: ${ki.contentFont};
1140
+ }
1141
+
1142
+ /* Even is 2n+1 and odd is 2n because of the header */
1143
+ .row:nth-child(2n) > .cell {
1144
+ background: ${ki.oddRowBackground};
1145
+ }
1146
+
1147
+ .row:nth-child(2n + 1) > .cell {
1148
+ background: ${ki.evenRowBackground};
1149
+ }
1150
+
1151
+ .row:hover > .cell {
1152
+ background: ${ki.rowHoverBackground};
1153
+ }
1154
+
1155
+ .cell:last-of-type {
1156
+ border-right: 1px solid ${ki.headerBackground};
1157
+ }
1158
+
1159
+ .row:last-of-type .cell:first-of-type {
1160
+ border-radius: 0 0 0 .5rem;
1161
+ }
1162
+
1163
+ .row:last-of-type .cell:last-of-type {
1164
+ border-radius: 0 0 .5rem 0;
1165
+ }
1166
+
1167
+ .hidden {
1168
+ visibility: hidden;
1169
+ }
1170
+ `,Oi([o({attribute:!1})],Ri.prototype,"data",void 0),Oi([o({attribute:!1})],Ri.prototype,"columns",void 0),Oi([o({attribute:!1})],Ri.prototype,"sort",void 0),Oi([n()],Ri.prototype,"currentSort",void 0),p("ft-filterable-table")(Ri),t.FtFilterableTable=Ri,t.FtFilterableTableCssVariables=ki,t.RowClickEvent=Si,Object.defineProperty(t,"t",{value:!0})}({});