@fluid-topics/ft-switch 0.1.8

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.
@@ -0,0 +1,569 @@
1
+ !function(t){
2
+ /**
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)}))},c=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 p;const l=window.trustedTypes,d=l?l.emptyScript:"",u=window.reactiveElementPolyfillSupport,h={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}},f=(t,e)=>e!==t&&(e==e||t==t),m={attribute:!0,type:String,converter:h,reflect:!1,hasChanged:f};class y 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(c(t))}else void 0!==t&&e.push(c(t));return e}static _$Eh(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}o(){var t;this._$Ep=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Em(),this.requestUpdate(),null===(t=this.constructor.l)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$Eg)&&void 0!==e?e:this._$Eg=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$Eg)||void 0===e||e.splice(this._$Eg.indexOf(t)>>>0,1)}_$Em(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Et.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return 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:h.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,c=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:h.fromAttribute;this._$Ei=s,this[s]=c(e,t.type),this._$Ei=null}}requestUpdate(t,e,i){let r=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||f)(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 v;y.finalized=!0,y.elementProperties=new Map,y.elementStyles=[],y.shadowRootOptions={mode:"open"},null==u||u({ReactiveElement:y}),(null!==(p=globalThis.reactiveElementVersions)&&void 0!==p?p:globalThis.reactiveElementVersions=[]).push("1.2.2");const g=globalThis.trustedTypes,b=g?g.createPolicy("lit-html",{createHTML:t=>t}):void 0,w=`lit$${(Math.random()+"").slice(9)}$`,x="?"+w,$=`<${x}>`,O=document,S=(t="")=>O.createComment(t),k=t=>null===t||"object"!=typeof t&&"function"!=typeof t,C=Array.isArray,R=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,E=/-->/g,N=/>/g,A=/>|[ \n \r](?:([^\s"'>=/]+)([ \n \r]*=[ \n \r]*(?:[^ \n \r"'`<>=]|("|')|))|$)/g,M=/'/g,F=/"/g,T=/^(?:script|style|textarea|title)$/i,U=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),j=Symbol.for("lit-noChange"),z=Symbol.for("lit-nothing"),_=new WeakMap,B=O.createTreeWalker(O,129,null,!1),L=(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,c,p=-1,l=0;for(;l<i.length&&(s.lastIndex=l,c=s.exec(i),null!==c);)l=s.lastIndex,s===R?"!--"===c[1]?s=E:void 0!==c[1]?s=N:void 0!==c[2]?(T.test(c[2])&&(o=RegExp("</"+c[2],"g")),s=A):void 0!==c[3]&&(s=A):s===A?">"===c[0]?(s=null!=o?o:R,p=-1):void 0===c[1]?p=-2:(p=s.lastIndex-c[2].length,a=c[1],s=void 0===c[3]?A:'"'===c[3]?F:M):s===F||s===M?s=A:s===E||s===N?s=R:(s=A,o=void 0);const d=s===A&&t[e+1].startsWith("/>")?" ":"";n+=s===R?i+$:p>=0?(r.push(a),i.slice(0,p)+"$lit$"+i.slice(p)+w+d):i+w+(-2===p?(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!==b?b.createHTML(a):a,r]};class D{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,n=0;const s=t.length-1,a=this.parts,[c,p]=L(t,e);if(this.el=D.createElement(c,i),B.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=B.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(w)){const i=p[n++];if(t.push(e),void 0!==i){const t=r.getAttribute(i.toLowerCase()+"$lit$").split(w),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?V:"?"===e[1]?Z:"@"===e[1]?q:W})}else a.push({type:6,index:o})}for(const e of t)r.removeAttribute(e)}if(T.test(r.tagName)){const t=r.textContent.split(w),e=t.length-1;if(e>0){r.textContent=g?g.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],S()),B.nextNode(),a.push({type:2,index:++o});r.append(t[e],S())}}}else if(8===r.nodeType)if(r.data===x)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(w,t+1));)a.push({type:7,index:o}),t+=w.length-1}o++}}static createElement(t,e){const i=O.createElement("template");return i.innerHTML=t,i}}function I(t,e,i=t,r){var o,n,s,a;if(e===j)return e;let c=void 0!==r?null===(o=i._$Cl)||void 0===o?void 0:o[r]:i._$Cu;const p=k(e)?void 0:e._$litDirective$;return(null==c?void 0:c.constructor)!==p&&(null===(n=null==c?void 0:c._$AO)||void 0===n||n.call(c,!1),void 0===p?c=void 0:(c=new p(t),c._$AT(t,i,r)),void 0!==r?(null!==(s=(a=i)._$Cl)&&void 0!==s?s:a._$Cl=[])[r]=c:i._$Cu=c),void 0!==c&&(e=I(t,c._$AS(t,e.values),c,r)),e}class P{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);B.currentNode=o;let n=B.nextNode(),s=0,a=0,c=r[0];for(;void 0!==c;){if(s===c.index){let e;2===c.type?e=new H(n,n.nextSibling,this,t):1===c.type?e=new c.ctor(n,c.name,c.strings,this,t):6===c.type&&(e=new G(n,this,t)),this.v.push(e),c=r[++a]}s!==(null==c?void 0:c.index)&&(n=B.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 H{constructor(t,e,i,r){var o;this.type=2,this._$AH=z,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=I(this,t,e),k(t)?t===z||null==t||""===t?(this._$AH!==z&&this._$AR(),this._$AH=z):t!==this._$AH&&t!==j&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return C(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==z&&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=D.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 P(o,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=_.get(t.strings);return void 0===e&&_.set(t.strings,e=new D(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 H(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=z,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=z}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=I(this,t,e,0),n=!k(t)||t!==this._$AH&&t!==j,n&&(this._$AH=t);else{const r=t;let s,a;for(t=o[0],s=0;s<o.length-1;s++)a=I(this,r[i+s],e,s),a===j&&(a=this._$AH[s]),n||(n=!k(a)||a!==this._$AH[s]),a===z?t=z:t!==z&&(t+=(null!=a?a:"")+o[s+1]),this._$AH[s]=a}n&&!r&&this.k(t)}k(t){t===z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class V extends W{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===z?void 0:t}}const K=g?g.emptyScript:"";class Z extends W{constructor(){super(...arguments),this.type=4}k(t){t&&t!==z?this.element.setAttribute(this.name,K):this.element.removeAttribute(this.name)}}class q 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=I(this,t,e,0))&&void 0!==i?i:z)===j)return;const r=this._$AH,o=t===z&&r!==z||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,n=t!==z&&(r===z||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 G{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){I(this,t)}}const X=window.litHtmlPolyfillSupport;
19
+ /**
20
+ * @license
21
+ * Copyright 2017 Google LLC
22
+ * SPDX-License-Identifier: BSD-3-Clause
23
+ */
24
+ var J,Y;null==X||X(D,H),(null!==(v=globalThis.litHtmlVersions)&&void 0!==v?v:globalThis.litHtmlVersions=[]).push("2.1.3");class Q extends y{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 H(e.insertBefore(S(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Dt)||void 0===t||t.setConnected(!1)}render(){return j}}Q.finalized=!0,Q._$litElement$=!0,null===(J=globalThis.litElementHydrateSupport)||void 0===J||J.call(globalThis,{LitElement:Q});const tt=globalThis.litElementPolyfillSupport;null==tt||tt({LitElement:Q}),(null!==(Y=globalThis.litElementVersions)&&void 0!==Y?Y:globalThis.litElementVersions=[]).push("3.1.2");
25
+ /**
26
+ * @license
27
+ * Copyright 2017 Google LLC
28
+ * SPDX-License-Identifier: BSD-3-Clause
29
+ */
30
+ const et=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)
31
+ /**
32
+ * @license
33
+ * Copyright 2017 Google LLC
34
+ * SPDX-License-Identifier: BSD-3-Clause
35
+ */,it=(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 rt(t){return(e,i)=>void 0!==i?((t,e,i)=>{e.constructor.createProperty(i,t)})(t,e,i):it(t,e)
36
+ /**
37
+ * @license
38
+ * Copyright 2017 Google LLC
39
+ * SPDX-License-Identifier: BSD-3-Clause
40
+ */}function ot(t){return rt({...t,state:!0})}
41
+ /**
42
+ * @license
43
+ * Copyright 2017 Google LLC
44
+ * SPDX-License-Identifier: BSD-3-Clause
45
+ */const nt=({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)}}
46
+ /**
47
+ * @license
48
+ * Copyright 2017 Google LLC
49
+ * SPDX-License-Identifier: BSD-3-Clause
50
+ */;function st(t,e){return nt({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}})}
51
+ /**
52
+ * @license
53
+ * Copyright 2021 Google LLC
54
+ * SPDX-License-Identifier: BSD-3-Clause
55
+ */var at;const ct=null!=(null===(at=window.HTMLSlotElement)||void 0===at?void 0:at.prototype.assignedElements)?(t,e)=>t.assignedElements(e):(t,e)=>t.assignedNodes(e).filter((t=>t.nodeType===Node.ELEMENT_NODE));var pt,lt=new Uint8Array(16);function dt(){if(!pt&&!(pt="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return pt(lt)}var ut=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function ht(t){return"string"==typeof t&&ut.test(t)}for(var ft=[],mt=0;mt<256;++mt)ft.push((mt+256).toString(16).substr(1));function yt(t,e,i){var r=(t=t||{}).random||(t.rng||dt)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){i=i||0;for(var o=0;o<16;++o)e[i+o]=r[o];return e}return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=(ft[t[e+0]]+ft[t[e+1]]+ft[t[e+2]]+ft[t[e+3]]+"-"+ft[t[e+4]]+ft[t[e+5]]+"-"+ft[t[e+6]]+ft[t[e+7]]+"-"+ft[t[e+8]]+ft[t[e+9]]+"-"+ft[t[e+10]]+ft[t[e+11]]+ft[t[e+12]]+ft[t[e+13]]+ft[t[e+14]]+ft[t[e+15]]).toLowerCase();if(!ht(i))throw TypeError("Stringified UUID is invalid");return i}(r)}(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 c={};try{c.__proto__={a:!0},a=c.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 p=o;if(!ShadowRoot.prototype.createElement){var l,d=window.HTMLElement,u=window.customElements.define,h=window.customElements.get,f=window.customElements,m=new WeakMap,y=new WeakMap,v=new WeakMap,g=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(w(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=h.call(f,t))||(o=b(t),u.call(f,t,o)),this===window.customElements&&(v.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,y.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),f.upgrade.apply(f,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=l;if(t)return l=void 0,t;var e=v.get(this.constructor);if(!e)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return t=Reflect.construct(d,[],e.s),Object.setPrototypeOf(t,this.constructor.prototype),m.set(t,e),t},window.HTMLElement.prototype=d.prototype;var b=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=g.get(i))?void 0:r.getRootNode())||document)}r=i.customElements}return(i=(r=r||window.customElements).j(t))?$(e,i):y.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):y.get(this).m(this,t,!0)},e.prototype.disconnectedCallback=function(){var e=m.get(this);e?e.disconnectedCallback&&e.disconnectedCallback.apply(this,arguments):y.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},w=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)})}},x=function(t){var e=Object.getPrototypeOf(t);if(e!==window.HTMLElement)return e===d?Object.setPrototypeOf(t,window.HTMLElement):x(e)},$=function(t,e,i){i=void 0!==i&&i,Object.setPrototypeOf(t,e.g.prototype),m.set(t,e),l=t;try{new e.g}catch(t){x(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&&g.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 R=new WeakMap,E=HTMLElement.prototype.attachInternals;HTMLElement.prototype.attachInternals=function(t){for(var e=[],r=0;r<arguments.length;++r)e[r]=arguments[r];return e=E.call.apply(E,[this].concat(i(e))),R.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=R.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 N=function(t){var e=s(Array,[].concat(i(t)),this.constructor);return e.h=t,e},A=N,M=Array;if(A.prototype=r(M.prototype),A.prototype.constructor=A,p)p(A,M);else for(var F in M)if("prototype"!=F)if(Object.defineProperties){var T=Object.getOwnPropertyDescriptor(M,F);T&&Object.defineProperty(A,F,T)}else A[F]=M[F];A.u=M.prototype,n.Object.defineProperty(N.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 U=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 N(t))}))};U.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 U(i)}})}}}).call(self);try{window.customElements.define("custom-element",null)}catch(Pt){const t=window.customElements.define;window.customElements.define=(e,i,r)=>{try{t.bind(window.customElements)(e,i,r)}catch(t){console.warn(e,i,r,t)}}}class vt{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 gt=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};class bt{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 bt(t,e,void 0,i)}static extend(t,e,i){return new bt(t,e.category,e,i)}static external(t,e){return new bt(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 wt(t,e){return n(`${t.name}: ${e}`)}const xt={colorPrimary:bt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:bt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:bt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:bt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:bt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:bt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:bt.create("--ft-color-error","COLOR","#B00020"),colorOutline:bt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:bt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:bt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:bt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:bt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:bt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:bt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:bt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:bt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:bt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:bt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:bt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:bt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:bt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:bt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:bt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:bt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:bt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:bt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:bt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:bt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:bt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:bt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:bt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:bt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:bt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:bt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:bt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:bt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:bt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:bt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:bt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:bt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:bt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:bt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:bt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:bt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:bt.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:bt.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:bt.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:bt.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:bt.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:bt.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:bt.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:bt.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:bt.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:bt.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:bt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:bt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:bt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:bt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:bt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:bt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:bt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:bt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
56
+ /**
57
+ * @license
58
+ * Copyright 2021 Google LLC
59
+ * SPDX-License-Identifier: BSD-3-Clause
60
+ */class $t 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}}}(Q)){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]),U`
61
+ ${t.map((t=>U`
62
+ <style>${t}</style>
63
+ `))}
64
+ ${this.getTemplate()}
65
+ `}adoptedCallback(){Object.getPrototypeOf(this)!==this.constructorName&&Object.setPrototypeOf(this,this.proto)}updated(t){super.updated(t),setTimeout((()=>this.contentAvailableCallback(t)),0)}contentAvailableCallback(t){}}var Ot,St;s`
66
+ .ft-no-text-select {
67
+ -webkit-touch-callout: none;
68
+ -webkit-user-select: none;
69
+ -khtml-user-select: none;
70
+ -moz-user-select: none;
71
+ -ms-user-select: none;
72
+ user-select: none;
73
+ }
74
+ `,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(St=null===(Ot=window.safari)||void 0===Ot?void 0:Ot.pushNotification)||void 0===St||St.toString());
75
+ /*! *****************************************************************************
76
+ Copyright (c) Microsoft Corporation.
77
+
78
+ Permission to use, copy, modify, and/or distribute this software for any
79
+ purpose with or without fee is hereby granted.
80
+
81
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
82
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
83
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
84
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
85
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
86
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
87
+ PERFORMANCE OF THIS SOFTWARE.
88
+ ***************************************************************************** */
89
+ var kt=function(t,e){return kt=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])},kt(t,e)};var Ct=function(){return Ct=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},Ct.apply(this,arguments)};function Rt(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 Et(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.")}
90
+ /**
91
+ * @license
92
+ * Copyright 2018 Google Inc.
93
+ *
94
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
95
+ * of this software and associated documentation files (the "Software"), to deal
96
+ * in the Software without restriction, including without limitation the rights
97
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
98
+ * copies of the Software, and to permit persons to whom the Software is
99
+ * furnished to do so, subject to the following conditions:
100
+ *
101
+ * The above copyright notice and this permission notice shall be included in
102
+ * all copies or substantial portions of the Software.
103
+ *
104
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
105
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
106
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
107
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
108
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
109
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
110
+ * THE SOFTWARE.
111
+ */
112
+ /**
113
+ * @license
114
+ * Copyright 2018 Google LLC
115
+ * SPDX-License-Identifier: Apache-2.0
116
+ */
117
+ const Nt=()=>{},At={get passive(){return!1}};document.addEventListener("x",Nt,At),document.removeEventListener("x",Nt);
118
+ /**
119
+ * @license
120
+ * Copyright 2018 Google LLC
121
+ * SPDX-License-Identifier: Apache-2.0
122
+ */
123
+ class Mt extends Q{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()}}
124
+ /**
125
+ * @license
126
+ * Copyright 2016 Google Inc.
127
+ *
128
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
129
+ * of this software and associated documentation files (the "Software"), to deal
130
+ * in the Software without restriction, including without limitation the rights
131
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
132
+ * copies of the Software, and to permit persons to whom the Software is
133
+ * furnished to do so, subject to the following conditions:
134
+ *
135
+ * The above copyright notice and this permission notice shall be included in
136
+ * all copies or substantial portions of the Software.
137
+ *
138
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
139
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
140
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
141
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
142
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
143
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
144
+ * THE SOFTWARE.
145
+ */var Ft=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}(),Tt={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"},Ut={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"},jt={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};
146
+ /**
147
+ * @license
148
+ * Copyright 2016 Google Inc.
149
+ *
150
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
151
+ * of this software and associated documentation files (the "Software"), to deal
152
+ * in the Software without restriction, including without limitation the rights
153
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
154
+ * copies of the Software, and to permit persons to whom the Software is
155
+ * furnished to do so, subject to the following conditions:
156
+ *
157
+ * The above copyright notice and this permission notice shall be included in
158
+ * all copies or substantial portions of the Software.
159
+ *
160
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
161
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
162
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
163
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
164
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
165
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
166
+ * THE SOFTWARE.
167
+ */
168
+ /**
169
+ * @license
170
+ * Copyright 2016 Google Inc.
171
+ *
172
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
173
+ * of this software and associated documentation files (the "Software"), to deal
174
+ * in the Software without restriction, including without limitation the rights
175
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
176
+ * copies of the Software, and to permit persons to whom the Software is
177
+ * furnished to do so, subject to the following conditions:
178
+ *
179
+ * The above copyright notice and this permission notice shall be included in
180
+ * all copies or substantial portions of the Software.
181
+ *
182
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
183
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
184
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
185
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
186
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
187
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
188
+ * THE SOFTWARE.
189
+ */
190
+ var zt=["touchstart","pointerdown","mousedown","keydown"],_t=["touchend","pointerup","mouseup","contextmenu"],Bt=[],Lt=function(t){function e(i){var r=t.call(this,Ct(Ct({},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}kt(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}(e,t),Object.defineProperty(e,"cssClasses",{get:function(){return Tt},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return Ut},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return jt},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=Et(zt),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=Et(_t),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=Et(zt),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=Et(_t),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&&Bt.length>0&&Bt.some((function(t){return e.adapter.containsEventTarget(t)}))?this.resetActivationState():(void 0!==t&&(Bt.push(t.target),this.registerDeactivationHandlers(t)),i.wasElementMadeActive=this.checkElementMadeActive(t),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame((function(){Bt=[],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,c=e.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var p="",l="";if(!this.adapter.isUnbounded()){var d=this.getFgTranslationCoordinates(),u=d.startPoint,h=d.endPoint;p=u.x+"px, "+u.y+"px",l=h.x+"px, "+h.y+"px"}this.adapter.updateCssVariable(r,p),this.adapter.updateCssVariable(o,l),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()}),c)},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,c=s+i.top;if("touchstart"===t.type){var p=t;r=p.changedTouches[0].pageX-a,o=p.changedTouches[0].pageY-c}else{var l=t;r=l.pageX-a,o=l.pageY-c}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)}),jt.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=Ct({},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}(Ft),Dt=Lt;
191
+ /**
192
+ * @license
193
+ * Copyright 2017 Google LLC
194
+ * SPDX-License-Identifier: BSD-3-Clause
195
+ */
196
+ const It=1,Pt=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)}}
197
+ /**
198
+ * @license
199
+ * Copyright 2018 Google LLC
200
+ * SPDX-License-Identifier: BSD-3-Clause
201
+ */const Wt=Pt(class extends Ht{constructor(t){var e;if(super(t),t.type!==It||"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 j}}),Vt=Pt(class extends Ht{constructor(t){var e;if(super(t),t.type!==It||"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 j}});
202
+ /**
203
+ * @license
204
+ * Copyright 2018 Google LLC
205
+ * SPDX-License-Identifier: BSD-3-Clause
206
+ */
207
+ /**
208
+ * @license
209
+ * Copyright 2018 Google LLC
210
+ * SPDX-License-Identifier: Apache-2.0
211
+ */
212
+ class Kt extends Mt{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=Dt}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 U`
213
+ <div class="mdc-ripple-surface mdc-ripple-upgraded ${Wt(i)}"
214
+ style="${Vt({"--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>`}}Rt([st(".mdc-ripple-surface")],Kt.prototype,"mdcRoot",void 0),Rt([rt({type:Boolean})],Kt.prototype,"primary",void 0),Rt([rt({type:Boolean})],Kt.prototype,"accent",void 0),Rt([rt({type:Boolean})],Kt.prototype,"unbounded",void 0),Rt([rt({type:Boolean})],Kt.prototype,"disabled",void 0),Rt([rt({type:Boolean})],Kt.prototype,"activated",void 0),Rt([rt({type:Boolean})],Kt.prototype,"selected",void 0),Rt([rt({type:Boolean})],Kt.prototype,"internalUseStateLayerCustomProperties",void 0),Rt([ot()],Kt.prototype,"hovering",void 0),Rt([ot()],Kt.prototype,"bgFocused",void 0),Rt([ot()],Kt.prototype,"fgActivation",void 0),Rt([ot()],Kt.prototype,"fgDeactivation",void 0),Rt([ot()],Kt.prototype,"fgScale",void 0),Rt([ot()],Kt.prototype,"fgSize",void 0),Rt([ot()],Kt.prototype,"translateStart",void 0),Rt([ot()],Kt.prototype,"translateEnd",void 0),Rt([ot()],Kt.prototype,"leftPos",void 0),Rt([ot()],Kt.prototype,"topPos",void 0);
215
+ /**
216
+ * @license
217
+ * Copyright 2021 Google LLC
218
+ * SPDX-LIcense-Identifier: Apache-2.0
219
+ */
220
+ const Zt=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)}`
221
+ /**
222
+ * @license
223
+ * Copyright 2018 Google LLC
224
+ * SPDX-License-Identifier: Apache-2.0
225
+ */;let qt=class extends Kt{};qt.styles=[Zt],qt=Rt([et("mwc-ripple")],qt);
226
+ /**
227
+ * @license
228
+ * Copyright 2020 Google LLC
229
+ * SPDX-License-Identifier: Apache-2.0
230
+ */
231
+ class Gt{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 Xt=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 Jt={color:bt.extend("--ft-ripple-color",xt.colorContent),primaryColor:bt.extend("--ft-ripple-primary-color",bt.extend("--ft-ripple-color",xt.colorPrimary)),secondaryColor:bt.extend("--ft-ripple-secondary-color",bt.extend("--ft-ripple-color",xt.colorSecondary)),opacityContentOnSurfacePressed:bt.external(xt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:bt.external(xt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:bt.external(xt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:bt.external(xt.opacityContentOnSurfaceSelected,"Design system"),opacityContentOnSurfaceDragged:bt.external(xt.opacityContentOnSurfaceDragged,"Design system")};let Yt=class extends $t{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1}getStyles(){return s`
232
+ :host {
233
+ display: contents;
234
+
235
+ --mdc-ripple-color: ${Jt.color};
236
+ --mdc-ripple-press-opacity: ${Jt.opacityContentOnSurfacePressed};
237
+ --mdc-ripple-hover-opacity: ${Jt.opacityContentOnSurfaceHover};
238
+ --mdc-ripple-focus-opacity: ${Jt.opacityContentOnSurfaceFocused};
239
+ --mdc-ripple-selected-opacity: ${Jt.opacityContentOnSurfaceSelected};
240
+ --mdc-ripple-activated-opacity: ${Jt.opacityContentOnSurfaceDragged};
241
+ }
242
+
243
+ mwc-ripple.ft-ripple--secondary {
244
+ --mdc-ripple-color: ${Jt.secondaryColor};
245
+ }
246
+
247
+ mwc-ripple.ft-ripple--primary {
248
+ --mdc-ripple-color: ${Jt.primaryColor};
249
+ }
250
+ `}getTemplate(){return U`
251
+ <mwc-ripple
252
+ class="${this.primary?"ft-ripple--primary":this.secondary?"ft-ripple--secondary":""}"
253
+ ?unbounded=${this.unbounded}
254
+ ?activated=${this.activated}
255
+ ?selected=${this.selected}
256
+ ?disabled=${this.disabled}
257
+ ></mwc-ripple>
258
+ `}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 Gt((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()}};Yt.elementDefinitions={"mwc-ripple":qt},Xt([rt({type:Boolean})],Yt.prototype,"primary",void 0),Xt([rt({type:Boolean})],Yt.prototype,"secondary",void 0),Xt([rt({type:Boolean})],Yt.prototype,"unbounded",void 0),Xt([rt({type:Boolean})],Yt.prototype,"activated",void 0),Xt([rt({type:Boolean})],Yt.prototype,"selected",void 0),Xt([rt({type:Boolean})],Yt.prototype,"disabled",void 0),Xt([st("mwc-ripple")],Yt.prototype,"mwcRipple",void 0),Yt=Xt([gt("ft-ripple")],Yt);
259
+ /**
260
+ * @license
261
+ * Copyright 2020 Google LLC
262
+ * SPDX-License-Identifier: BSD-3-Clause
263
+ */
264
+ const Qt=t=>({_$litStatic$:t}),te=new Map,ee=(t=>(e,...i)=>{var r;const o=i.length;let n,s;const a=[],c=[];let p,l=0,d=!1;for(;l<o;){for(p=e[l];l<o&&void 0!==(s=i[l],n=null===(r=s)||void 0===r?void 0:r._$litStatic$);)p+=n+e[++l],d=!0;c.push(s),a.push(p),l++}if(l===o&&a.push(e[o]),d){const t=a.join("$$lit$$");void 0===(e=te.get(t))&&(a.raw=a,te.set(t,e=a)),i=c}return t(e,...i)})(U);var ie,re=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"}(ie||(ie={}));const oe=bt.extend("--ft-typography-font-family",xt.titleFont),ne=bt.extend("--ft-typography-font-family",xt.contentFont),se={fontFamily:ne,fontSize:bt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:bt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:bt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:bt.create("--ft-typography-line-height","SIZE","24px"),textTransform:bt.create("--ft-typography-text-transform","UNKNOWN","inherit")},ae=bt.extend("--ft-typography-title-font-family",oe),ce=bt.extend("--ft-typography-title-font-size",se.fontSize,"20px"),pe=bt.extend("--ft-typography-title-font-weight",se.fontWeight,"normal"),le=bt.extend("--ft-typography-title-letter-spacing",se.letterSpacing,"0.15px"),de=bt.extend("--ft-typography-title-line-height",se.lineHeight,"24px"),ue=bt.extend("--ft-typography-title-text-transform",se.textTransform,"inherit"),he=bt.extend("--ft-typography-title-dense-font-family",oe),fe=bt.extend("--ft-typography-title-dense-font-size",se.fontSize,"14px"),me=bt.extend("--ft-typography-title-dense-font-weight",se.fontWeight,"normal"),ye=bt.extend("--ft-typography-title-dense-letter-spacing",se.letterSpacing,"0.105px"),ve=bt.extend("--ft-typography-title-dense-line-height",se.lineHeight,"24px"),ge=bt.extend("--ft-typography-title-dense-text-transform",se.textTransform,"inherit"),be=bt.extend("--ft-typography-subtitle1-font-family",ne),we=bt.extend("--ft-typography-subtitle1-font-size",se.fontSize,"16px"),xe=bt.extend("--ft-typography-subtitle1-font-weight",se.fontWeight,"600"),$e=bt.extend("--ft-typography-subtitle1-letter-spacing",se.letterSpacing,"0.144px"),Oe=bt.extend("--ft-typography-subtitle1-line-height",se.lineHeight,"24px"),Se=bt.extend("--ft-typography-subtitle1-text-transform",se.textTransform,"inherit"),ke=bt.extend("--ft-typography-subtitle2-font-family",ne),Ce=bt.extend("--ft-typography-subtitle2-font-size",se.fontSize,"14px"),Re=bt.extend("--ft-typography-subtitle2-font-weight",se.fontWeight,"normal"),Ee=bt.extend("--ft-typography-subtitle2-letter-spacing",se.letterSpacing,"0.098px"),Ne=bt.extend("--ft-typography-subtitle2-line-height",se.lineHeight,"24px"),Ae=bt.extend("--ft-typography-subtitle2-text-transform",se.textTransform,"inherit"),Me=bt.extend("--ft-typography-body1-font-family",ne),Fe=bt.extend("--ft-typography-body1-font-size",se.fontSize,"16px"),Te=bt.extend("--ft-typography-body1-font-weight",se.fontWeight,"normal"),Ue=bt.extend("--ft-typography-body1-letter-spacing",se.letterSpacing,"0.496px"),je=bt.extend("--ft-typography-body1-line-height",se.lineHeight,"24px"),ze=bt.extend("--ft-typography-body1-text-transform",se.textTransform,"inherit"),_e=bt.extend("--ft-typography-body2-font-family",ne),Be=bt.extend("--ft-typography-body2-font-size",se.fontSize,"14px"),Le=bt.extend("--ft-typography-body2-font-weight",se.fontWeight,"normal"),De=bt.extend("--ft-typography-body2-letter-spacing",se.letterSpacing,"0.252px"),Ie=bt.extend("--ft-typography-body2-line-height",se.lineHeight,"20px"),Pe=bt.extend("--ft-typography-body2-text-transform",se.textTransform,"inherit"),He=bt.extend("--ft-typography-caption-font-family",ne),We=bt.extend("--ft-typography-caption-font-size",se.fontSize,"12px"),Ve=bt.extend("--ft-typography-caption-font-weight",se.fontWeight,"normal"),Ke=bt.extend("--ft-typography-caption-letter-spacing",se.letterSpacing,"0.396px"),Ze=bt.extend("--ft-typography-caption-line-height",se.lineHeight,"16px"),qe=bt.extend("--ft-typography-caption-text-transform",se.textTransform,"inherit"),Ge=bt.extend("--ft-typography-breadcrumb-font-family",ne),Xe=bt.extend("--ft-typography-breadcrumb-font-size",se.fontSize,"10px"),Je=bt.extend("--ft-typography-breadcrumb-font-weight",se.fontWeight,"normal"),Ye=bt.extend("--ft-typography-breadcrumb-letter-spacing",se.letterSpacing,"0.33px"),Qe=bt.extend("--ft-typography-breadcrumb-line-height",se.lineHeight,"16px"),ti=bt.extend("--ft-typography-breadcrumb-text-transform",se.textTransform,"inherit"),ei=bt.extend("--ft-typography-overline-font-family",ne),ii=bt.extend("--ft-typography-overline-font-size",se.fontSize,"10px"),ri=bt.extend("--ft-typography-overline-font-weight",se.fontWeight,"normal"),oi=bt.extend("--ft-typography-overline-letter-spacing",se.letterSpacing,"1.5px"),ni=bt.extend("--ft-typography-overline-line-height",se.lineHeight,"16px"),si=bt.extend("--ft-typography-overline-text-transform",se.textTransform,"uppercase"),ai={fontFamily:bt.extend("--ft-typography-button-font-family",ne),fontSize:bt.extend("--ft-typography-button-font-size",se.fontSize,"14px"),fontWeight:bt.extend("--ft-typography-button-font-weight",se.fontWeight,"600"),letterSpacing:bt.extend("--ft-typography-button-letter-spacing",se.letterSpacing,"1.246px"),lineHeight:bt.extend("--ft-typography-button-line-height",se.lineHeight,"16px"),textTransform:bt.extend("--ft-typography-button-text-transform",se.textTransform,"uppercase")},ci=s`
265
+ .ft-typography--title {
266
+ font-family: ${ae};
267
+ font-size: ${ce};
268
+ font-weight: ${pe};
269
+ letter-spacing: ${le};
270
+ line-height: ${de};
271
+ text-transform: ${ue};
272
+ }
273
+ `,pi=s`
274
+ .ft-typography--title-dense {
275
+ font-family: ${he};
276
+ font-size: ${fe};
277
+ font-weight: ${me};
278
+ letter-spacing: ${ye};
279
+ line-height: ${ve};
280
+ text-transform: ${ge};
281
+ }
282
+ `,li=s`
283
+ .ft-typography--subtitle1 {
284
+ font-family: ${be};
285
+ font-size: ${we};
286
+ font-weight: ${xe};
287
+ letter-spacing: ${$e};
288
+ line-height: ${Oe};
289
+ text-transform: ${Se};
290
+ }
291
+ `,di=s`
292
+ .ft-typography--subtitle2 {
293
+ font-family: ${ke};
294
+ font-size: ${Ce};
295
+ font-weight: ${Re};
296
+ letter-spacing: ${Ee};
297
+ line-height: ${Ne};
298
+ text-transform: ${Ae};
299
+ }
300
+
301
+ `,ui=s`
302
+ .ft-typography--body1 {
303
+ font-family: ${Me};
304
+ font-size: ${Fe};
305
+ font-weight: ${Te};
306
+ letter-spacing: ${Ue};
307
+ line-height: ${je};
308
+ text-transform: ${ze};
309
+ }
310
+ `,hi=s`
311
+ .ft-typography--body2 {
312
+ font-family: ${_e};
313
+ font-size: ${Be};
314
+ font-weight: ${Le};
315
+ letter-spacing: ${De};
316
+ line-height: ${Ie};
317
+ text-transform: ${Pe};
318
+ }
319
+ `,fi=s`
320
+ .ft-typography--caption {
321
+ font-family: ${He};
322
+ font-size: ${We};
323
+ font-weight: ${Ve};
324
+ letter-spacing: ${Ke};
325
+ line-height: ${Ze};
326
+ text-transform: ${qe};
327
+ }
328
+ `,mi=s`
329
+ .ft-typography--breadcrumb {
330
+ font-family: ${Ge};
331
+ font-size: ${Xe};
332
+ font-weight: ${Je};
333
+ letter-spacing: ${Ye};
334
+ line-height: ${Qe};
335
+ text-transform: ${ti};
336
+ }
337
+ `,yi=s`
338
+ .ft-typography--overline {
339
+ font-family: ${ei};
340
+ font-size: ${ii};
341
+ font-weight: ${ri};
342
+ letter-spacing: ${oi};
343
+ line-height: ${ni};
344
+ text-transform: ${si};
345
+ }
346
+ `,vi=s`
347
+ .ft-typography--button {
348
+ font-family: ${ai.fontFamily};
349
+ font-size: ${ai.fontSize};
350
+ font-weight: ${ai.fontWeight};
351
+ letter-spacing: ${ai.letterSpacing};
352
+ line-height: ${ai.lineHeight};
353
+ text-transform: ${ai.textTransform};
354
+ }
355
+ `;let gi=class extends $t{constructor(){super(...arguments),this.variant=ie.body1}getStyles(){return[ci,pi,li,di,ui,hi,fi,mi,yi,vi]}getTemplate(){return this.element?ee`
356
+ <${Qt(this.element)}
357
+ class="ft-typography ft-typography--${this.variant}">
358
+ <slot></slot>
359
+ </${Qt(this.element)}>
360
+ `:ee`
361
+ <slot class="ft-typography ft-typography--${this.variant}"></slot>
362
+ `}};re([rt()],gi.prototype,"element",void 0),re([rt()],gi.prototype,"variant",void 0),gi=re([gt("ft-typography")],gi);
363
+ /**
364
+ * @license
365
+ * Copyright 2021 Google LLC
366
+ * SPDX-LIcense-Identifier: Apache-2.0
367
+ */
368
+ const bi=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"}`
369
+ /**
370
+ * @license
371
+ * Copyright 2018 Google LLC
372
+ * SPDX-License-Identifier: Apache-2.0
373
+ */;let wi=class extends Q{render(){return U`<span><slot></slot></span>`}};wi.styles=[bi],wi=Rt([et("mwc-icon")],wi);var xi=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 $i=bt.create("--ft-tooltip-distance","SIZE","4px"),Oi=bt.create("--ft-tooltip-color","COLOR","#FFFFFF"),Si=bt.create("--ft-tooltip-background-color","COLOR","#666666"),ki=bt.create("--ft-tooltip-z-index","NUMBER","1"),Ci=bt.external(xt.borderRadiusS,"Design system");let Ri=class extends $t{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.hideDebounce=new vt,this.revealDebouncer=new vt}getStyles(){return s`
374
+ .ft-tooltip--container {
375
+ display: block;
376
+ position: relative;
377
+ }
378
+
379
+ .ft-tooltip--inline {
380
+ display: inline-block;
381
+ max-width: 100%;
382
+ }
383
+
384
+ .ft-tooltip {
385
+ position: absolute;
386
+ box-sizing: border-box;
387
+ overflow: hidden;
388
+ width: max-content;
389
+ max-width: 150px;
390
+ text-align: center;
391
+ padding: ${$i};
392
+ z-index: ${ki};
393
+ }
394
+
395
+ .ft-tooltip--content {
396
+ padding: 4px 8px;
397
+ border-radius: ${Ci};
398
+ background-color: ${Si};
399
+ color: ${Oi};
400
+ top: -500px;
401
+ left: -500px;
402
+ position: relative;
403
+ word-break: break-word;
404
+ }
405
+ `}getTemplate(){return U`
406
+ <div part="container"
407
+ class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
408
+ @mouseenter=${this.onHover}
409
+ @mouseleave=${this.onOut}
410
+ @focusin=${this.onHover}
411
+ @focusout=${this.onOut}
412
+ @touchstart=${this.onTouch}>
413
+ <div part="tooltip" class="ft-tooltip ft-tooltip--${this.position}" ?hidden=${!this.visible}>
414
+ <div part="tooltip-content" class="ft-tooltip--content">
415
+ <ft-typography variant="caption">${this.text}</ft-typography>
416
+ </div>
417
+ </div>
418
+ <slot></slot>
419
+ </div>
420
+ `}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())}};Ri.elementDefinitions={"ft-typography":gi},xi([rt()],Ri.prototype,"text",void 0),xi([rt({type:Boolean})],Ri.prototype,"manual",void 0),xi([rt({type:Boolean})],Ri.prototype,"inline",void 0),xi([rt({type:Number})],Ri.prototype,"delay",void 0),xi([rt()],Ri.prototype,"position",void 0),xi([
421
+ /**
422
+ * @license
423
+ * Copyright 2017 Google LLC
424
+ * SPDX-License-Identifier: BSD-3-Clause
425
+ */
426
+ 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 nt({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?ct(n,t):[];return i?s.filter((t=>t.matches(i))):s},enumerable:!0,configurable:!0})})}({slot:o,flatten:e,selector:i}):nt({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)],Ri.prototype,"slotNodes",void 0),xi([st(".ft-tooltip--container")],Ri.prototype,"container",void 0),xi([st("slot")],Ri.prototype,"target",void 0),xi([st(".ft-tooltip")],Ri.prototype,"tooltip",void 0),xi([st(".ft-tooltip--content")],Ri.prototype,"tooltipContent",void 0),xi([ot()],Ri.prototype,"visible",void 0),Ri=xi([gt("ft-tooltip")],Ri);var Ei=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={borderRadiusLeft:bt.extend("--ft-switch-option-border-radius-left",xt.borderRadiusL),borderRadiusRight:bt.extend("--ft-switch-option-border-radius-right",xt.borderRadiusL),borderWidthLeft:bt.create("--ft-switch-option-border-width-left","SIZE","1px"),borderWidthRight:bt.create("--ft-switch-option-border-width-right","SIZE","1px"),borderWidthVertical:bt.create("--ft-switch-option-border-width-vertical","SIZE","1px")};class Ai extends CustomEvent{constructor(){super("selected")}}t.FtSwitchOption=class extends $t{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.name=""}getStyles(){return s`
427
+ .ft-switch-option {
428
+ position: relative;
429
+ display: inline-block;
430
+ }
431
+
432
+ .ft-switch-option--input {
433
+ position: absolute;
434
+ opacity: 0;
435
+ width: 0;
436
+ height: 0;
437
+ }
438
+
439
+ .ft-switch-option--content {
440
+ --ft-switch-option-internal-line-height: calc(${Fi.fontSize} + 2px);
441
+ --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${Fi.iconSize});
442
+
443
+ border-style: solid;
444
+ border-color: ${Fi.borderColor};
445
+ border-width: ${Ni.borderWidthVertical} ${Ni.borderWidthRight} ${Ni.borderWidthVertical} ${Ni.borderWidthLeft};
446
+ border-radius: ${Ni.borderRadiusLeft} ${Ni.borderRadiusRight} ${Ni.borderRadiusRight} ${Ni.borderRadiusLeft};
447
+ display: flex;
448
+ align-items: center;
449
+ justify-content: center;
450
+ overflow: hidden;
451
+
452
+ --mdc-icon-size: ${Fi.iconSize};
453
+ padding: 6px 8px;
454
+ background-color: ${Fi.backgroundColor};
455
+ -webkit-mask-image: radial-gradient(white, black);
456
+ }
457
+
458
+ .ft-switch-option--input:checked + .ft-switch-option--content:before {
459
+ background-color: ${Fi.selectedBackgroundColor};
460
+ border-radius: ${Ni.borderRadiusLeft} ${Ni.borderRadiusRight} ${Ni.borderRadiusRight} ${Ni.borderRadiusLeft};
461
+ position: absolute;
462
+ inset: 0;
463
+ content: "";
464
+ z-index: 1;
465
+ opacity: ${xt.opacityPrimaryOnSurfaceSelected};
466
+ }
467
+
468
+ .ft-switch-option--input:focus + .ft-switch-option--content:before {
469
+ background-color: ${Fi.selectedBackgroundColor};
470
+ border-radius: ${Ni.borderRadiusLeft} ${Ni.borderRadiusRight} ${Ni.borderRadiusRight} ${Ni.borderRadiusLeft};
471
+ position: absolute;
472
+ inset: 0;
473
+ content: "";
474
+ z-index: 1;
475
+ opacity: ${xt.opacityPrimaryOnSurfaceFocused};
476
+ }
477
+
478
+ .ft-switch-option--label {
479
+ color: ${Fi.textColor};
480
+ overflow: hidden;
481
+ white-space: nowrap;
482
+ text-overflow: ellipsis;
483
+ display: block;
484
+ margin: 0 8px;
485
+ ${wt(ai.fontSize,Fi.fontSize)};
486
+ ${wt(ai.lineHeight,"var(--ft-switch-option-internal-content-height)")}
487
+ }
488
+
489
+ .ft-switch-option--input:checked + .ft-switch-option--content .ft-switch-option--label {
490
+ color: ${Fi.selectedTextColor};
491
+ }
492
+
493
+ .ft-switch-option--label[hidden] {
494
+ display: none;
495
+ }
496
+
497
+ .ft-switch-option--ripple {
498
+ ${wt(Jt.color,Fi.rippleColor)};
499
+ }
500
+
501
+ mwc-icon, ft-ripple, ft-typography {
502
+ z-index: 2;
503
+ }
504
+
505
+ .ft-switch-option:not(.ft-switch-option--trailing-icon) mwc-icon {
506
+ order: -1;
507
+ }
508
+
509
+ mwc-icon {
510
+ flex-shrink: 0;
511
+ width: var(--mdc-icon-size);
512
+ color: ${Fi.iconColor};
513
+ }
514
+
515
+ .ft-switch-option--input:checked + .ft-switch-option--content mwc-icon {
516
+ color: ${Fi.selectedTextColor};
517
+ }
518
+ `}focus(){this.input.focus()}getTemplate(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon};return this.addTooltip(U`
519
+ <label for="input" class=${Wt(t)}>
520
+ <input id="input" type="radio" class="ft-switch-option--input"
521
+ .checked=${this.selected}
522
+ .value=${this.value}
523
+ .name=${this.name}
524
+ @change=${this.onChange}>
525
+ <div class="ft-switch-option--content">
526
+ <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
527
+ <ft-typography variant="button" ?hidden=${!this.hasTextContent()}
528
+ class="ft-switch-option--label">
529
+ <slot @slotchange=${this.onSlotchange}></slot>
530
+ </ft-typography>
531
+ ${this.resolveIcon()}
532
+ </div>
533
+ </label>
534
+ `)}addTooltip(t){return this.hasTextContent()||0===this.getLabel().trim().length?t:U`
535
+ <ft-tooltip part="tooltip"
536
+ text="${this.getLabel()}"
537
+ position="${this.tooltipPosition}">
538
+ ${t}
539
+ </ft-tooltip>
540
+ `}onChange(){this.selected=!0,this.dispatchEvent(new Ai)}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?U`
541
+ <mwc-icon>${this.icon}</mwc-icon> `:z}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}},t.FtSwitchOption.elementDefinitions={"ft-ripple":Yt,"ft-typography":gi,"ft-tooltip":Ri,"mwc-icon":wi},t.FtSwitchOption.shadowRootOptions={...Q.shadowRootOptions,delegatesFocus:!0},Ei([rt({type:String})],t.FtSwitchOption.prototype,"value",void 0),Ei([rt({type:String})],t.FtSwitchOption.prototype,"icon",void 0),Ei([rt({type:String})],t.FtSwitchOption.prototype,"label",void 0),Ei([rt({type:String})],t.FtSwitchOption.prototype,"tooltipPosition",void 0),Ei([rt({type:Boolean,reflect:!0})],t.FtSwitchOption.prototype,"selected",void 0),Ei([rt({type:Boolean})],t.FtSwitchOption.prototype,"trailingIcon",void 0),Ei([rt({attribute:!1})],t.FtSwitchOption.prototype,"name",void 0),Ei([st(".ft-switch-option--content slot")],t.FtSwitchOption.prototype,"slottedContent",void 0),Ei([st(".ft-switch-option--input")],t.FtSwitchOption.prototype,"input",void 0),t.FtSwitchOption=Ei([gt("ft-switch-option")],t.FtSwitchOption);var Mi=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 Fi={textColor:bt.extend("--ft-switch-text-color",xt.colorOnSurfaceHigh),backgroundColor:bt.extend("--ft-switch-background-color",xt.colorSurface),selectedTextColor:bt.extend("--ft-switch-selected-text-color",xt.colorPrimary),selectedBackgroundColor:bt.extend("--ft-switch-selected-background-color",xt.colorPrimary),borderColor:bt.extend("--ft-switch-border-color",xt.colorOutline),borderRadius:bt.extend("--ft-switch-border-radius",xt.borderRadiusL),fontSize:bt.extend("--ft-switch-font-size",ai.fontSize),iconSize:bt.create("--ft-switch-icon-size","SIZE","24px"),iconColor:bt.extend("--ft-switch-text-color",xt.colorOnSurfaceMedium),rippleColor:bt.extend("--ft-switch-ripple-color",xt.colorPrimary)};class Ti extends CustomEvent{constructor(t){super("change",{detail:t})}}t.FtSwitch=class extends $t{constructor(){super(),this.options=[],this.groupName=yt(),this.addEventListener("keydown",(t=>this.onKeyDown(t)))}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}getStyles(){return s`
542
+ :host {
543
+ display: inline-block;
544
+ }
545
+
546
+ .ft-switch slot {
547
+ display: flex;
548
+ align-items: center;
549
+ }
550
+
551
+ .ft-switch slot::slotted(ft-switch-option) {
552
+ ${wt(Ni.borderRadiusLeft,"0")};
553
+ ${wt(Ni.borderRadiusRight,"0")};
554
+ ${wt(Ni.borderWidthLeft,"0")};
555
+ }
556
+
557
+ .ft-switch slot::slotted(ft-switch-option:first-child) {
558
+ ${wt(Ni.borderRadiusLeft,Fi.borderRadius)};
559
+ ${wt(Ni.borderWidthLeft,"1px")};
560
+ }
561
+
562
+ .ft-switch slot::slotted(ft-switch-option:last-child) {
563
+ ${wt(Ni.borderRadiusRight,Fi.borderRadius)};
564
+ }
565
+ `}getTemplate(){return U`
566
+ <div class="ft-switch">
567
+ <slot @slotchange=${this.onSlotchange}></slot>
568
+ </div>
569
+ `}onKeyDown(t){let e=this.options.find((t=>t.ownerDocument.activeElement==t));if(e){if("ArrowDown"==t.key||"ArrowRight"==t.key){let i=this.options.indexOf(e);i<this.options.length-1&&i++,t.preventDefault(),this.selectOption(this.options[i])}if("ArrowUp"==t.key||"ArrowLeft"==t.key){let i=this.options.indexOf(e);i>0&&i--,t.preventDefault(),this.selectOption(this.options[i])}}}onFocus(t){this.selectedOption&&this.selectedOption!=t&&this.selectedOption.focus()}onSlotchange(){var e;return this.options=[],null===(e=this.slottedContent)||void 0===e?void 0:e.assignedElements().forEach((e=>{e instanceof t.FtSwitchOption&&this.registerOption(e),this.updateOptions()}))}registerOption(t){t.name=this.groupName,t.addEventListener("selected",(()=>this.selectOption(t))),t.addEventListener("focus",(()=>this.onFocus(t))),t.selected&&(this.selectedOption=t),this.options.push(t)}selectOption(t){this.selectedOption=t,t.focus(),this.dispatchEvent(new Ti(this.selectedOption.value)),this.updateOptions()}updateOptions(){this.options.forEach((t=>{t.selected=t==this.selectedOption}))}},t.FtSwitch.elementDefinitions={},Mi([st(".ft-switch slot")],t.FtSwitch.prototype,"slottedContent",void 0),t.FtSwitch=Mi([gt("ft-switch")],t.FtSwitch),t.FtSwitchChange=Ti,t.FtSwitchCssVariables=Fi,t.FtSwitchOptionCssVariables=Ni,t.SwitchOptionSelected=Ai,Object.defineProperty(t,"t",{value:!0})}({});