cas-ds-web-components 1.2.52 → 1.2.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,36 +1,42 @@
1
- (function(I,S){typeof exports=="object"&&typeof module<"u"?S(exports):typeof define=="function"&&define.amd?define(["exports"],S):(I=typeof globalThis<"u"?globalThis:I||self,S(I["cas-radio-button"]={}))})(this,function(I){"use strict";/**
1
+ (function(F,S){typeof exports=="object"&&typeof module<"u"?S(exports):typeof define=="function"&&define.amd?define(["exports"],S):(F=typeof globalThis<"u"?globalThis:F||self,S(F["cas-radio-button"]={}))})(this,function(F){"use strict";/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const S=window,Tt=S.ShadowRoot&&(S.ShadyCSS===void 0||S.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,St=Symbol(),me=new WeakMap;class dt{constructor(t,e,r){if(this._$cssResult$=!0,r!==St)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Tt&&t===void 0){const r=e!==void 0&&e.length===1;r&&(t=me.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&me.set(e,t))}return t}toString(){return this.cssText}}const Xi=i=>new dt(typeof i=="string"?i:i+"",void 0,St),A=(i,...t)=>{const e=i.length===1?i[0]:t.reduce((r,s,o)=>r+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+i[o+1],i[0]);return new dt(e,i,St)},Wi=(i,t)=>{Tt?i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const r=document.createElement("style"),s=S.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=e.cssText,i.appendChild(r)})},ge=Tt?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return Xi(e)})(i):i;/**
5
+ */const S=window,Wt=S.ShadowRoot&&(S.ShadyCSS===void 0||S.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ke=Symbol(),Xe=new WeakMap;class tr{constructor(t,e,r){if(this._$cssResult$=!0,r!==Ke)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Wt&&t===void 0){const r=e!==void 0&&e.length===1;r&&(t=Xe.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&Xe.set(e,t))}return t}toString(){return this.cssText}}const er=i=>new tr(typeof i=="string"?i:i+"",void 0,Ke),ir=(i,t)=>{Wt?i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const r=document.createElement("style"),s=S.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=e.cssText,i.appendChild(r)})},Ze=Wt?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return er(e)})(i):i;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */var Nt;const ct=window,ye=ct.trustedTypes,Ki=ye?ye.emptyScript:"",be=ct.reactiveElementPolyfillSupport,Ot={toAttribute(i,t){switch(t){case Boolean:i=i?Ki:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},ve=(i,t)=>t!==i&&(t==t||i==i),$t={attribute:!0,type:String,converter:Ot,reflect:!1,hasChanged:ve};class R extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,r)=>{const s=this._$Ep(r,e);s!==void 0&&(this._$Ev.set(s,r),t.push(s))}),t}static createProperty(t,e=$t){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const r=typeof t=="symbol"?Symbol():"__"+t,s=this.getPropertyDescriptor(t,r,e);s!==void 0&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,r){return{get(){return this[e]},set(s){const o=this[t];this[e]=s,this.requestUpdate(t,o,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||$t}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,r=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const s of r)this.createProperty(s,e[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const s of r)e.unshift(ge(s))}else t!==void 0&&e.push(ge(t));return e}static _$Ep(t,e){const r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,r;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((r=t.hostConnected)===null||r===void 0||r.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return Wi(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var r;return(r=e.hostConnected)===null||r===void 0?void 0:r.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var r;return(r=e.hostDisconnected)===null||r===void 0?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EO(t,e,r=$t){var s;const o=this.constructor._$Ep(t,r);if(o!==void 0&&r.reflect===!0){const n=(((s=r.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?r.converter:Ot).toAttribute(e,r.type);this._$El=t,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$El=null}}_$AK(t,e){var r;const s=this.constructor,o=s._$Ev.get(t);if(o!==void 0&&this._$El!==o){const n=s.getPropertyOptions(o),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((r=n.converter)===null||r===void 0?void 0:r.fromAttribute)!==void 0?n.converter:Ot;this._$El=o,this[o]=a.fromAttribute(e,n.type),this._$El=null}}requestUpdate(t,e,r){let s=!0;t!==void 0&&(((r=r||this.constructor.getPropertyOptions(t)).hasChanged||ve)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,r))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((s,o)=>this[o]=s),this._$Ei=void 0);let e=!1;const r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),(t=this._$ES)===null||t===void 0||t.forEach(s=>{var o;return(o=s.hostUpdate)===null||o===void 0?void 0:o.call(s)}),this.update(r)):this._$Ek()}catch(s){throw e=!1,this._$Ek(),s}e&&this._$AE(r)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(r=>{var s;return(s=r.hostUpdated)===null||s===void 0?void 0:s.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,r)=>this._$EO(r,this[r],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}R.finalized=!0,R.elementProperties=new Map,R.elementStyles=[],R.shadowRootOptions={mode:"open"},be?.({ReactiveElement:R}),((Nt=ct.reactiveElementVersions)!==null&&Nt!==void 0?Nt:ct.reactiveElementVersions=[]).push("1.4.2");/**
9
+ */var Gt;const Ct=window,Qe=Ct.trustedTypes,sr=Qe?Qe.emptyScript:"",ti=Ct.reactiveElementPolyfillSupport,Jt={toAttribute(i,t){switch(t){case Boolean:i=i?sr:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},ei=(i,t)=>t!==i&&(t==t||i==i),Kt={attribute:!0,type:String,converter:Jt,reflect:!1,hasChanged:ei},Xt="finalized";class it extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,r)=>{const s=this._$Ep(r,e);s!==void 0&&(this._$Ev.set(s,r),t.push(s))}),t}static createProperty(t,e=Kt){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const r=typeof t=="symbol"?Symbol():"__"+t,s=this.getPropertyDescriptor(t,r,e);s!==void 0&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,r){return{get(){return this[e]},set(s){const o=this[t];this[e]=s,this.requestUpdate(t,o,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Kt}static finalize(){if(this.hasOwnProperty(Xt))return!1;this[Xt]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,r=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const s of r)this.createProperty(s,e[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const s of r)e.unshift(Ze(s))}else t!==void 0&&e.push(Ze(t));return e}static _$Ep(t,e){const r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,r;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((r=t.hostConnected)===null||r===void 0||r.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return ir(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var r;return(r=e.hostConnected)===null||r===void 0?void 0:r.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var r;return(r=e.hostDisconnected)===null||r===void 0?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EO(t,e,r=Kt){var s;const o=this.constructor._$Ep(t,r);if(o!==void 0&&r.reflect===!0){const n=(((s=r.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?r.converter:Jt).toAttribute(e,r.type);this._$El=t,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$El=null}}_$AK(t,e){var r;const s=this.constructor,o=s._$Ev.get(t);if(o!==void 0&&this._$El!==o){const n=s.getPropertyOptions(o),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((r=n.converter)===null||r===void 0?void 0:r.fromAttribute)!==void 0?n.converter:Jt;this._$El=o,this[o]=a.fromAttribute(e,n.type),this._$El=null}}requestUpdate(t,e,r){let s=!0;t!==void 0&&(((r=r||this.constructor.getPropertyOptions(t)).hasChanged||ei)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,r))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((s,o)=>this[o]=s),this._$Ei=void 0);let e=!1;const r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),(t=this._$ES)===null||t===void 0||t.forEach(s=>{var o;return(o=s.hostUpdate)===null||o===void 0?void 0:o.call(s)}),this.update(r)):this._$Ek()}catch(s){throw e=!1,this._$Ek(),s}e&&this._$AE(r)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(r=>{var s;return(s=r.hostUpdated)===null||s===void 0?void 0:s.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,r)=>this._$EO(r,this[r],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}it[Xt]=!0,it.elementProperties=new Map,it.elementStyles=[],it.shadowRootOptions={mode:"open"},ti?.({ReactiveElement:it}),((Gt=Ct.reactiveElementVersions)!==null&&Gt!==void 0?Gt:Ct.reactiveElementVersions=[]).push("1.6.3");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */var kt;const ht=window,D=ht.trustedTypes,we=D?D.createPolicy("lit-html",{createHTML:i=>i}):void 0,N=`lit$${(Math.random()+"").slice(9)}$`,Ce="?"+N,Zi=`<${Ce}>`,H=document,J=(i="")=>H.createComment(i),X=i=>i===null||typeof i!="object"&&typeof i!="function",Ee=Array.isArray,Qi=i=>Ee(i)||typeof i?.[Symbol.iterator]=="function",W=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Pe=/-->/g,Ae=/>/g,$=RegExp(`>|[
14
- \f\r](?:([^\\s"'>=/]+)([
15
- \f\r]*=[
16
- \f\r]*(?:[^
17
- \f\r"'\`<>=]|("|')|))|$)`,"g"),xe=/'/g,Te=/"/g,Se=/^(?:script|style|textarea|title)$/i,z=Symbol.for("lit-noChange"),m=Symbol.for("lit-nothing"),Ne=new WeakMap,B=H.createTreeWalker(H,129,null,!1),ts=(i,t)=>{const e=i.length-1,r=[];let s,o=t===2?"<svg>":"",n=W;for(let l=0;l<e;l++){const d=i[l];let c,h,u=-1,f=0;for(;f<d.length&&(n.lastIndex=f,h=n.exec(d),h!==null);)f=n.lastIndex,n===W?h[1]==="!--"?n=Pe:h[1]!==void 0?n=Ae:h[2]!==void 0?(Se.test(h[2])&&(s=RegExp("</"+h[2],"g")),n=$):h[3]!==void 0&&(n=$):n===$?h[0]===">"?(n=s??W,u=-1):h[1]===void 0?u=-2:(u=n.lastIndex-h[2].length,c=h[1],n=h[3]===void 0?$:h[3]==='"'?Te:xe):n===Te||n===xe?n=$:n===Pe||n===Ae?n=W:(n=$,s=void 0);const _=n===$&&i[l+1].startsWith("/>")?" ":"";o+=n===W?d+Zi:u>=0?(r.push(c),d.slice(0,u)+"$lit$"+d.slice(u)+N+_):d+N+(u===-2?(r.push(void 0),l):_)}const a=o+(i[e]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return[we!==void 0?we.createHTML(a):a,r]};class K{constructor({strings:t,_$litType$:e},r){let s;this.parts=[];let o=0,n=0;const a=t.length-1,l=this.parts,[d,c]=ts(t,e);if(this.el=K.createElement(d,r),B.currentNode=this.el.content,e===2){const h=this.el.content,u=h.firstChild;u.remove(),h.append(...u.childNodes)}for(;(s=B.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes()){const h=[];for(const u of s.getAttributeNames())if(u.endsWith("$lit$")||u.startsWith(N)){const f=c[n++];if(h.push(u),f!==void 0){const _=s.getAttribute(f.toLowerCase()+"$lit$").split(N),y=/([.?@])?(.*)/.exec(f);l.push({type:1,index:o,name:y[2],strings:_,ctor:y[1]==="."?is:y[1]==="?"?rs:y[1]==="@"?os:ut})}else l.push({type:6,index:o})}for(const u of h)s.removeAttribute(u)}if(Se.test(s.tagName)){const h=s.textContent.split(N),u=h.length-1;if(u>0){s.textContent=D?D.emptyScript:"";for(let f=0;f<u;f++)s.append(h[f],J()),B.nextNode(),l.push({type:2,index:++o});s.append(h[u],J())}}}else if(s.nodeType===8)if(s.data===Ce)l.push({type:2,index:o});else{let h=-1;for(;(h=s.data.indexOf(N,h+1))!==-1;)l.push({type:7,index:o}),h+=N.length-1}o++}}static createElement(t,e){const r=H.createElement("template");return r.innerHTML=t,r}}function F(i,t,e=i,r){var s,o,n,a;if(t===z)return t;let l=r!==void 0?(s=e._$Co)===null||s===void 0?void 0:s[r]:e._$Cl;const d=X(t)?void 0:t._$litDirective$;return l?.constructor!==d&&((o=l?._$AO)===null||o===void 0||o.call(l,!1),d===void 0?l=void 0:(l=new d(i),l._$AT(i,e,r)),r!==void 0?((n=(a=e)._$Co)!==null&&n!==void 0?n:a._$Co=[])[r]=l:e._$Cl=l),l!==void 0&&(t=F(i,l._$AS(i,t.values),l,r)),t}class es{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:r},parts:s}=this._$AD,o=((e=t?.creationScope)!==null&&e!==void 0?e:H).importNode(r,!0);B.currentNode=o;let n=B.nextNode(),a=0,l=0,d=s[0];for(;d!==void 0;){if(a===d.index){let c;d.type===2?c=new Z(n,n.nextSibling,this,t):d.type===1?c=new d.ctor(n,d.name,d.strings,this,t):d.type===6&&(c=new ns(n,this,t)),this.u.push(c),d=s[++l]}a!==d?.index&&(n=B.nextNode(),a++)}return o}p(t){let e=0;for(const r of this.u)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class Z{constructor(t,e,r,s){var o;this.type=2,this._$AH=m,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=s,this._$Cm=(o=s?.isConnected)===null||o===void 0||o}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&t.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=F(this,t,e),X(t)?t===m||t==null||t===""?(this._$AH!==m&&this._$AR(),this._$AH=m):t!==this._$AH&&t!==z&&this.g(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Qi(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==m&&X(this._$AH)?this._$AA.nextSibling.data=t:this.T(H.createTextNode(t)),this._$AH=t}$(t){var e;const{values:r,_$litType$:s}=t,o=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=K.createElement(s.h,this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===o)this._$AH.p(r);else{const n=new es(o,this),a=n.v(this.options);n.p(r),this.T(a),this._$AH=n}}_$AC(t){let e=Ne.get(t.strings);return e===void 0&&Ne.set(t.strings,e=new K(t)),e}k(t){Ee(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,s=0;for(const o of t)s===e.length?e.push(r=new Z(this.O(J()),this.O(J()),this,this.options)):r=e[s],r._$AI(o),s++;s<e.length&&(this._$AR(r&&r._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var r;for((r=this._$AP)===null||r===void 0||r.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cm=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class ut{constructor(t,e,r,s,o){this.type=1,this._$AH=m,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=m}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,r,s){const o=this.strings;let n=!1;if(o===void 0)t=F(this,t,e,0),n=!X(t)||t!==this._$AH&&t!==z,n&&(this._$AH=t);else{const a=t;let l,d;for(t=o[0],l=0;l<o.length-1;l++)d=F(this,a[r+l],e,l),d===z&&(d=this._$AH[l]),n||(n=!X(d)||d!==this._$AH[l]),d===m?t=m:t!==m&&(t+=(d??"")+o[l+1]),this._$AH[l]=d}n&&!s&&this.j(t)}j(t){t===m?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class is extends ut{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===m?void 0:t}}const ss=D?D.emptyScript:"";class rs extends ut{constructor(){super(...arguments),this.type=4}j(t){t&&t!==m?this.element.setAttribute(this.name,ss):this.element.removeAttribute(this.name)}}class os extends ut{constructor(t,e,r,s,o){super(t,e,r,s,o),this.type=5}_$AI(t,e=this){var r;if((t=(r=F(this,t,e,0))!==null&&r!==void 0?r:m)===z)return;const s=this._$AH,o=t===m&&s!==m||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==m&&(s===m||o);o&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,r;typeof this._$AH=="function"?this._$AH.call((r=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&r!==void 0?r:this.element,t):this._$AH.handleEvent(t)}}class ns{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){F(this,t)}}const Oe=ht.litHtmlPolyfillSupport;Oe?.(K,Z),((kt=ht.litHtmlVersions)!==null&&kt!==void 0?kt:ht.litHtmlVersions=[]).push("2.4.0");const as=(i,t,e)=>{var r,s;const o=(r=e?.renderBefore)!==null&&r!==void 0?r:t;let n=o._$litPart$;if(n===void 0){const a=(s=e?.renderBefore)!==null&&s!==void 0?s:null;o._$litPart$=n=new Z(t.insertBefore(J(),a),a,void 0,e??{})}return n._$AI(i),n};/**
13
+ */var Zt;const $t=window,j=$t.trustedTypes,ii=j?j.createPolicy("lit-html",{createHTML:i=>i}):void 0,Qt="$lit$",T=`lit$${(Math.random()+"").slice(9)}$`,si="?"+T,rr=`<${si}>`,M=document,st=()=>M.createComment(""),rt=i=>i===null||typeof i!="object"&&typeof i!="function",ri=Array.isArray,or=i=>ri(i)||typeof i?.[Symbol.iterator]=="function",te=`[
14
+ \f\r]`,ot=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,oi=/-->/g,ni=/>/g,R=RegExp(`>|${te}(?:([^\\s"'>=/]+)(${te}*=${te}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ai=/'/g,li=/"/g,di=/^(?:script|style|textarea|title)$/i,V=Symbol.for("lit-noChange"),m=Symbol.for("lit-nothing"),ci=new WeakMap,L=M.createTreeWalker(M,129,null,!1);function hi(i,t){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return ii!==void 0?ii.createHTML(t):t}const nr=(i,t)=>{const e=i.length-1,r=[];let s,o=t===2?"<svg>":"",n=ot;for(let a=0;a<e;a++){const l=i[a];let d,c,h=-1,u=0;for(;u<l.length&&(n.lastIndex=u,c=n.exec(l),c!==null);)u=n.lastIndex,n===ot?c[1]==="!--"?n=oi:c[1]!==void 0?n=ni:c[2]!==void 0?(di.test(c[2])&&(s=RegExp("</"+c[2],"g")),n=R):c[3]!==void 0&&(n=R):n===R?c[0]===">"?(n=s??ot,h=-1):c[1]===void 0?h=-2:(h=n.lastIndex-c[2].length,d=c[1],n=c[3]===void 0?R:c[3]==='"'?li:ai):n===li||n===ai?n=R:n===oi||n===ni?n=ot:(n=R,s=void 0);const p=n===R&&i[a+1].startsWith("/>")?" ":"";o+=n===ot?l+rr:h>=0?(r.push(d),l.slice(0,h)+Qt+l.slice(h)+T+p):l+T+(h===-2?(r.push(void 0),a):p)}return[hi(i,o+(i[e]||"<?>")+(t===2?"</svg>":"")),r]};class nt{constructor({strings:t,_$litType$:e},r){let s;this.parts=[];let o=0,n=0;const a=t.length-1,l=this.parts,[d,c]=nr(t,e);if(this.el=nt.createElement(d,r),L.currentNode=this.el.content,e===2){const h=this.el.content,u=h.firstChild;u.remove(),h.append(...u.childNodes)}for(;(s=L.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes()){const h=[];for(const u of s.getAttributeNames())if(u.endsWith(Qt)||u.startsWith(T)){const p=c[n++];if(h.push(u),p!==void 0){const _=s.getAttribute(p.toLowerCase()+Qt).split(T),v=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:v[2],strings:_,ctor:v[1]==="."?lr:v[1]==="?"?cr:v[1]==="@"?hr:Pt})}else l.push({type:6,index:o})}for(const u of h)s.removeAttribute(u)}if(di.test(s.tagName)){const h=s.textContent.split(T),u=h.length-1;if(u>0){s.textContent=j?j.emptyScript:"";for(let p=0;p<u;p++)s.append(h[p],st()),L.nextNode(),l.push({type:2,index:++o});s.append(h[u],st())}}}else if(s.nodeType===8)if(s.data===si)l.push({type:2,index:o});else{let h=-1;for(;(h=s.data.indexOf(T,h+1))!==-1;)l.push({type:7,index:o}),h+=T.length-1}o++}}static createElement(t,e){const r=M.createElement("template");return r.innerHTML=t,r}}function q(i,t,e=i,r){var s,o,n,a;if(t===V)return t;let l=r!==void 0?(s=e._$Co)===null||s===void 0?void 0:s[r]:e._$Cl;const d=rt(t)?void 0:t._$litDirective$;return l?.constructor!==d&&((o=l?._$AO)===null||o===void 0||o.call(l,!1),d===void 0?l=void 0:(l=new d(i),l._$AT(i,e,r)),r!==void 0?((n=(a=e)._$Co)!==null&&n!==void 0?n:a._$Co=[])[r]=l:e._$Cl=l),l!==void 0&&(t=q(i,l._$AS(i,t.values),l,r)),t}class ar{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:r},parts:s}=this._$AD,o=((e=t?.creationScope)!==null&&e!==void 0?e:M).importNode(r,!0);L.currentNode=o;let n=L.nextNode(),a=0,l=0,d=s[0];for(;d!==void 0;){if(a===d.index){let c;d.type===2?c=new at(n,n.nextSibling,this,t):d.type===1?c=new d.ctor(n,d.name,d.strings,this,t):d.type===6&&(c=new ur(n,this,t)),this._$AV.push(c),d=s[++l]}a!==d?.index&&(n=L.nextNode(),a++)}return L.currentNode=M,o}v(t){let e=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class at{constructor(t,e,r,s){var o;this.type=2,this._$AH=m,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=s,this._$Cp=(o=s?.isConnected)===null||o===void 0||o}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=q(this,t,e),rt(t)?t===m||t==null||t===""?(this._$AH!==m&&this._$AR(),this._$AH=m):t!==this._$AH&&t!==V&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):or(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==m&&rt(this._$AH)?this._$AA.nextSibling.data=t:this.$(M.createTextNode(t)),this._$AH=t}g(t){var e;const{values:r,_$litType$:s}=t,o=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=nt.createElement(hi(s.h,s.h[0]),this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===o)this._$AH.v(r);else{const n=new ar(o,this),a=n.u(this.options);n.v(r),this.$(a),this._$AH=n}}_$AC(t){let e=ci.get(t.strings);return e===void 0&&ci.set(t.strings,e=new nt(t)),e}T(t){ri(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,s=0;for(const o of t)s===e.length?e.push(r=new at(this.k(st()),this.k(st()),this,this.options)):r=e[s],r._$AI(o),s++;s<e.length&&(this._$AR(r&&r._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var r;for((r=this._$AP)===null||r===void 0||r.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class Pt{constructor(t,e,r,s,o){this.type=1,this._$AH=m,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=m}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,r,s){const o=this.strings;let n=!1;if(o===void 0)t=q(this,t,e,0),n=!rt(t)||t!==this._$AH&&t!==V,n&&(this._$AH=t);else{const a=t;let l,d;for(t=o[0],l=0;l<o.length-1;l++)d=q(this,a[r+l],e,l),d===V&&(d=this._$AH[l]),n||(n=!rt(d)||d!==this._$AH[l]),d===m?t=m:t!==m&&(t+=(d??"")+o[l+1]),this._$AH[l]=d}n&&!s&&this.j(t)}j(t){t===m?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class lr extends Pt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===m?void 0:t}}const dr=j?j.emptyScript:"";class cr extends Pt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==m?this.element.setAttribute(this.name,dr):this.element.removeAttribute(this.name)}}class hr extends Pt{constructor(t,e,r,s,o){super(t,e,r,s,o),this.type=5}_$AI(t,e=this){var r;if((t=(r=q(this,t,e,0))!==null&&r!==void 0?r:m)===V)return;const s=this._$AH,o=t===m&&s!==m||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==m&&(s===m||o);o&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,r;typeof this._$AH=="function"?this._$AH.call((r=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&r!==void 0?r:this.element,t):this._$AH.handleEvent(t)}}class ur{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){q(this,t)}}const ui=$t.litHtmlPolyfillSupport;ui?.(nt,at),((Zt=$t.litHtmlVersions)!==null&&Zt!==void 0?Zt:$t.litHtmlVersions=[]).push("2.8.0");const pr=(i,t,e)=>{var r,s;const o=(r=e?.renderBefore)!==null&&r!==void 0?r:t;let n=o._$litPart$;if(n===void 0){const a=(s=e?.renderBefore)!==null&&s!==void 0?s:null;o._$litPart$=n=new at(t.insertBefore(st(),a),a,void 0,e??{})}return n._$AI(i),n};/**
16
+ * @license
17
+ * Copyright 2019 Google LLC
18
+ * SPDX-License-Identifier: BSD-3-Clause
19
+ */const xt=window,ee=xt.ShadowRoot&&(xt.ShadyCSS===void 0||xt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ie=Symbol(),pi=new WeakMap;class se{constructor(t,e,r){if(this._$cssResult$=!0,r!==ie)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(ee&&t===void 0){const r=e!==void 0&&e.length===1;r&&(t=pi.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&pi.set(e,t))}return t}toString(){return this.cssText}}const fr=i=>new se(typeof i=="string"?i:i+"",void 0,ie),fi=(i,...t)=>{const e=i.length===1?i[0]:t.reduce((r,s,o)=>r+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+i[o+1],i[0]);return new se(e,i,ie)},_r=(i,t)=>{ee?i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const r=document.createElement("style"),s=xt.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=e.cssText,i.appendChild(r)})},_i=ee?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return fr(e)})(i):i;/**
18
20
  * @license
19
21
  * Copyright 2017 Google LLC
20
22
  * SPDX-License-Identifier: BSD-3-Clause
21
- */var Mt,Lt;class ft extends R{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const r=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=r.firstChild),r}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=as(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return z}}ft.finalized=!0,ft._$litElement$=!0,(Mt=globalThis.litElementHydrateSupport)===null||Mt===void 0||Mt.call(globalThis,{LitElement:ft});const $e=globalThis.litElementPolyfillSupport;$e?.({LitElement:ft}),((Lt=globalThis.litElementVersions)!==null&&Lt!==void 0?Lt:globalThis.litElementVersions=[]).push("3.2.2");/**
23
+ */var re;const St=window,mi=St.trustedTypes,mr=mi?mi.emptyScript:"",gi=St.reactiveElementPolyfillSupport,oe={toAttribute(i,t){switch(t){case Boolean:i=i?mr:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},yi=(i,t)=>t!==i&&(t==t||i==i),ne={attribute:!0,type:String,converter:oe,reflect:!1,hasChanged:yi},ae="finalized";class Y extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,r)=>{const s=this._$Ep(r,e);s!==void 0&&(this._$Ev.set(s,r),t.push(s))}),t}static createProperty(t,e=ne){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const r=typeof t=="symbol"?Symbol():"__"+t,s=this.getPropertyDescriptor(t,r,e);s!==void 0&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,r){return{get(){return this[e]},set(s){const o=this[t];this[e]=s,this.requestUpdate(t,o,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||ne}static finalize(){if(this.hasOwnProperty(ae))return!1;this[ae]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,r=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const s of r)this.createProperty(s,e[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const s of r)e.unshift(_i(s))}else t!==void 0&&e.push(_i(t));return e}static _$Ep(t,e){const r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,r;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((r=t.hostConnected)===null||r===void 0||r.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])})}createRenderRoot(){var t;const e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return _r(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var r;return(r=e.hostConnected)===null||r===void 0?void 0:r.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var r;return(r=e.hostDisconnected)===null||r===void 0?void 0:r.call(e)})}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EO(t,e,r=ne){var s;const o=this.constructor._$Ep(t,r);if(o!==void 0&&r.reflect===!0){const n=(((s=r.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?r.converter:oe).toAttribute(e,r.type);this._$El=t,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$El=null}}_$AK(t,e){var r;const s=this.constructor,o=s._$Ev.get(t);if(o!==void 0&&this._$El!==o){const n=s.getPropertyOptions(o),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((r=n.converter)===null||r===void 0?void 0:r.fromAttribute)!==void 0?n.converter:oe;this._$El=o,this[o]=a.fromAttribute(e,n.type),this._$El=null}}requestUpdate(t,e,r){let s=!0;t!==void 0&&(((r=r||this.constructor.getPropertyOptions(t)).hasChanged||yi)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,r))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((s,o)=>this[o]=s),this._$Ei=void 0);let e=!1;const r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),(t=this._$ES)===null||t===void 0||t.forEach(s=>{var o;return(o=s.hostUpdate)===null||o===void 0?void 0:o.call(s)}),this.update(r)):this._$Ek()}catch(s){throw e=!1,this._$Ek(),s}e&&this._$AE(r)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(r=>{var s;return(s=r.hostUpdated)===null||s===void 0?void 0:s.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){this._$EC!==void 0&&(this._$EC.forEach((e,r)=>this._$EO(r,this[r],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}Y[ae]=!0,Y.elementProperties=new Map,Y.elementStyles=[],Y.shadowRootOptions={mode:"open"},gi?.({ReactiveElement:Y}),((re=St.reactiveElementVersions)!==null&&re!==void 0?re:St.reactiveElementVersions=[]).push("1.6.3");/**
24
+ * @license
25
+ * Copyright 2017 Google LLC
26
+ * SPDX-License-Identifier: BSD-3-Clause
27
+ */var le,de;class Tt extends Y{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const r=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=r.firstChild),r}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=pr(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return V}}Tt.finalized=!0,Tt._$litElement$=!0,(le=globalThis.litElementHydrateSupport)===null||le===void 0||le.call(globalThis,{LitElement:Tt});const vi=globalThis.litElementPolyfillSupport;vi?.({LitElement:Tt}),((de=globalThis.litElementVersions)!==null&&de!==void 0?de:globalThis.litElementVersions=[]).push("3.3.3");/**
22
28
  * @license
23
29
  * Copyright (c) 2017 - 2022 Vaadin Ltd.
24
30
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
25
- */const ls=i=>class extends i{static get properties(){return{theme:{type:String,reflectToAttribute:!0,observer:"__deprecatedThemePropertyChanged"},_theme:{type:String,readOnly:!0}}}__deprecatedThemePropertyChanged(e){this._set_theme(e)}};/**
31
+ */const gr=i=>class extends i{static get properties(){return{theme:{type:String,reflectToAttribute:!0,observer:"__deprecatedThemePropertyChanged"},_theme:{type:String,readOnly:!0}}}__deprecatedThemePropertyChanged(e){this._set_theme(e)}};/**
26
32
  * @license
27
33
  * Copyright (c) 2017 - 2022 Vaadin Ltd.
28
34
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
29
- */const ke=[];function Me(i,t,e={}){i&&ps(i)&&console.warn(`The custom element definition for "${i}"
35
+ */const bi=[];function wi(i,t,e={}){i&&Ar(i)&&console.warn(`The custom element definition for "${i}"
30
36
  was finalized before a style module was registered.
31
37
  Make sure to add component specific style modules before
32
- importing the corresponding custom element.`),t=hs(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,t,e):ke.push({themeFor:i,styles:t,include:e.include,moduleId:e.moduleId})}function It(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():ke}function ds(i,t){return(i||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`).test(t))}function cs(i=""){let t=0;return i.indexOf("lumo-")===0||i.indexOf("material-")===0?t=1:i.indexOf("vaadin-")===0&&(t=2),t}function hs(i=[]){return[i].flat(1/0).filter(t=>t instanceof dt?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Le(i){const t=[];return i.include&&[].concat(i.include).forEach(e=>{const r=It().find(s=>s.moduleId===e);r?t.push(...Le(r),...r.styles):console.warn(`Included moduleId ${e} not found in style registry`)},i.styles),t}function us(i,t){const e=document.createElement("style");e.innerHTML=i.map(r=>r.cssText).join(`
33
- `),t.content.appendChild(e)}function fs(i){const t=`${i}-default-theme`,e=It().filter(r=>r.moduleId!==t&&ds(r.themeFor,i)).map(r=>({...r,styles:[...Le(r),...r.styles],includePriority:cs(r.moduleId)})).sort((r,s)=>s.includePriority-r.includePriority);return e.length>0?e:It().filter(r=>r.moduleId===t)}function ps(i){return Ie(customElements.get(i))}function Ie(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}const Re=i=>class extends ls(i){static finalize(){if(super.finalize(),this.elementStyles)return;const e=this.prototype._template;!e||Ie(this)||us(this.getStylesForThis(),e)}static finalizeStyles(e){const r=this.getStylesForThis();return e?[...super.finalizeStyles(e),...r]:r}static getStylesForThis(){const e=Object.getPrototypeOf(this.prototype),r=(e?e.constructor.__themes:[])||[];this.__themes=[...r,...fs(this.is)];const s=this.__themes.flatMap(o=>o.styles);return s.filter((o,n)=>n===s.lastIndexOf(o))}};Me("cas-radio-button",A`
38
+ importing the corresponding custom element.`),t=br(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,t,e):bi.push({themeFor:i,styles:t,include:e.include,moduleId:e.moduleId})}function ce(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():bi}function yr(i,t){return(i||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`).test(t))}function vr(i=""){let t=0;return i.startsWith("lumo-")||i.startsWith("material-")?t=1:i.startsWith("vaadin-")&&(t=2),t}function br(i=[]){return[i].flat(1/0).filter(t=>t instanceof se?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Ei(i){const t=[];return i.include&&[].concat(i.include).forEach(e=>{const r=ce().find(s=>s.moduleId===e);r?t.push(...Ei(r),...r.styles):console.warn(`Included moduleId ${e} not found in style registry`)},i.styles),t}function wr(i,t){const e=document.createElement("style");e.innerHTML=i.map(r=>r.cssText).join(`
39
+ `),t.content.appendChild(e)}function Er(i){const t=`${i}-default-theme`,e=ce().filter(r=>r.moduleId!==t&&yr(r.themeFor,i)).map(r=>({...r,styles:[...Ei(r),...r.styles],includePriority:vr(r.moduleId)})).sort((r,s)=>s.includePriority-r.includePriority);return e.length>0?e:ce().filter(r=>r.moduleId===t)}function Ar(i){return Ai(customElements.get(i))}function Ai(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}const Ci=i=>class extends gr(i){static finalize(){if(super.finalize(),this.elementStyles)return;const e=this.prototype._template;!e||Ai(this)||wr(this.getStylesForThis(),e)}static finalizeStyles(e){const r=this.getStylesForThis();return e?[...super.finalizeStyles(e),...r]:r}static getStylesForThis(){const e=Object.getPrototypeOf(this.prototype),r=(e?e.constructor.__themes:[])||[];this.__themes=[...r,...Er(this.is)];const s=this.__themes.flatMap(o=>o.styles);return s.filter((o,n)=>n===s.lastIndexOf(o))}};wi("cas-radio-button",fi`
34
40
  @import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&family=Rubik:wght@300;400;500;600;700;800;900&display=swap');
35
41
  :host {
36
42
  --cas-radio-button-size: 20px;
@@ -164,7 +170,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
164
170
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
165
171
  Code distributed by Google as part of the polymer project is also
166
172
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
167
- */let _s=/(url\()([^)]*)(\))/g,ms=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,pt,v;function Q(i,t){if(i&&ms.test(i)||i==="//")return i;if(pt===void 0){pt=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",pt=e.href==="http://a/c%20d"}catch{}}if(t||(t=document.baseURI||window.location.href),pt)try{return new URL(i,t).href}catch{return i}return v||(v=document.implementation.createHTMLDocument("temp"),v.base=v.createElement("base"),v.head.appendChild(v.base),v.anchor=v.createElement("a"),v.body.appendChild(v.anchor)),v.base.href=t,v.anchor.href=i,v.anchor.href||i}function Rt(i,t){return i.replace(_s,function(e,r,s,o){return r+"'"+Q(s.replace(/["']/g,""),t)+"'"+o})}function Dt(i){return i.substring(0,i.lastIndexOf("/")+1)}/**
173
+ */let Cr=/(url\()([^)]*)(\))/g,$r=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Ot,w;function lt(i,t){if(i&&$r.test(i)||i==="//")return i;if(Ot===void 0){Ot=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",Ot=e.href==="http://a/c%20d"}catch{}}if(t||(t=document.baseURI||window.location.href),Ot)try{return new URL(i,t).href}catch{return i}return w||(w=document.implementation.createHTMLDocument("temp"),w.base=w.createElement("base"),w.head.appendChild(w.base),w.anchor=w.createElement("a"),w.body.appendChild(w.anchor)),w.base.href=t,w.anchor.href=i,w.anchor.href||i}function he(i,t){return i.replace(Cr,function(e,r,s,o){return r+"'"+lt(s.replace(/["']/g,""),t)+"'"+o})}function ue(i){return i.substring(0,i.lastIndexOf("/")+1)}/**
168
174
  @license
169
175
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
170
176
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -172,7 +178,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
172
178
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
173
179
  Code distributed by Google as part of the polymer project is also
174
180
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
175
- */const gs=!window.ShadyDOM||!window.ShadyDOM.inUse;Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss);const ys=gs&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const i=new CSSStyleSheet;i.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[i],t.shadowRoot.adoptedStyleSheets[0]===i}catch{return!1}})();let bs=window.Polymer&&window.Polymer.rootPath||Dt(document.baseURI||window.location.href),_t=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let Ht=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,vs=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,ws=window.Polymer&&window.Polymer.legacyOptimizations||!1,Cs=window.Polymer&&window.Polymer.legacyWarnings||!1,Es=window.Polymer&&window.Polymer.syncInitialRender||!1,zt=window.Polymer&&window.Polymer.legacyUndefined||!1,Ps=window.Polymer&&window.Polymer.orderedComputed||!1,De=window.Polymer&&window.Polymer.removeNestedTemplates||!1,As=window.Polymer&&window.Polymer.fastDomIf||!1;window.Polymer&&window.Polymer.suppressTemplateNotifications,window.Polymer&&window.Polymer.legacyNoObservedAttributes;let xs=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
181
+ */const Pr=!window.ShadyDOM||!window.ShadyDOM.inUse;Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss);const xr=Pr&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const i=new CSSStyleSheet;i.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[i],t.shadowRoot.adoptedStyleSheets[0]===i}catch{return!1}})();let Sr=window.Polymer&&window.Polymer.rootPath||ue(document.baseURI||window.location.href),Nt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let pe=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Tr=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Or=window.Polymer&&window.Polymer.legacyOptimizations||!1,Nr=window.Polymer&&window.Polymer.legacyWarnings||!1,kr=window.Polymer&&window.Polymer.syncInitialRender||!1,fe=window.Polymer&&window.Polymer.legacyUndefined||!1,Mr=window.Polymer&&window.Polymer.orderedComputed||!1,$i=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Rr=window.Polymer&&window.Polymer.fastDomIf||!1;window.Polymer&&window.Polymer.suppressTemplateNotifications,window.Polymer&&window.Polymer.legacyNoObservedAttributes;let Lr=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
176
182
  @license
177
183
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
178
184
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -180,7 +186,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
180
186
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
181
187
  Code distributed by Google as part of the polymer project is also
182
188
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
183
- */let Ts=0;const g=function(i){let t=i.__mixinApplications;t||(t=new WeakMap,i.__mixinApplications=t);let e=Ts++;function r(s){let o=s.__mixinSet;if(o&&o[e])return s;let n=t,a=n.get(s);if(!a){a=i(s),n.set(s,a);let l=Object.create(a.__mixinSet||o||null);l[e]=!0,a.__mixinSet=l}return a}return r};/**
189
+ */let Ir=0;const g=function(i){let t=i.__mixinApplications;t||(t=new WeakMap,i.__mixinApplications=t);let e=Ir++;function r(s){let o=s.__mixinSet;if(o&&o[e])return s;let n=t,a=n.get(s);if(!a){a=i(s),n.set(s,a);let l=Object.create(a.__mixinSet||o||null);l[e]=!0,a.__mixinSet=l}return a}return r};/**
184
190
  @license
185
191
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
186
192
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -188,7 +194,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
188
194
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
189
195
  Code distributed by Google as part of the polymer project is also
190
196
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
191
- */let Bt={},He={};function ze(i,t){Bt[i]=He[i.toLowerCase()]=t}function Be(i){return Bt[i]||He[i.toLowerCase()]}function Ss(i){i.querySelector("style")&&console.warn("dom-module %s has style outside template",i.id)}class tt extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let r=Be(t);return r&&e?r.querySelector(e):r}return null}attributeChangedCallback(t,e,r,s){e!==r&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Q(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=Dt(e)}return this.__assetpath}register(t){if(t=t||this.id,t){if(Ht&&Be(t)!==void 0)throw ze(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,ze(t,this),Ss(this)}}}tt.prototype.modules=Bt,customElements.define("dom-module",tt);/**
197
+ */let _e={},Pi={};function xi(i,t){_e[i]=Pi[i.toLowerCase()]=t}function Si(i){return _e[i]||Pi[i.toLowerCase()]}function Dr(i){i.querySelector("style")&&console.warn("dom-module %s has style outside template",i.id)}class dt extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let r=Si(t);return r&&e?r.querySelector(e):r}return null}attributeChangedCallback(t,e,r,s){e!==r&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=lt(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=ue(e)}return this.__assetpath}register(t){if(t=t||this.id,t){if(pe&&Si(t)!==void 0)throw xi(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,xi(t,this),Dr(this)}}}dt.prototype.modules=_e,customElements.define("dom-module",dt);/**
192
198
  @license
193
199
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
194
200
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -196,7 +202,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
196
202
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
197
203
  Code distributed by Google as part of the polymer project is also
198
204
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
199
- */const Ns="link[rel=import][type~=css]",Os="include",Fe="shady-unscoped";function Ue(i){return tt.import(i)}function je(i){let t=i.body?i.body:i;const e=Rt(t.textContent,i.baseURI),r=document.createElement("style");return r.textContent=e,r}function $s(i){const t=i.trim().split(/\s+/),e=[];for(let r=0;r<t.length;r++)e.push(...ks(t[r]));return e}function ks(i){const t=Ue(i);if(!t)return console.warn("Could not find style data in module named",i),[];if(t._styles===void 0){const e=[];e.push(...qe(t));const r=t.querySelector("template");r&&e.push(...Ve(r,t.assetpath)),t._styles=e}return t._styles}function Ve(i,t){if(!i._styles){const e=[],r=i.content.querySelectorAll("style");for(let s=0;s<r.length;s++){let o=r[s],n=o.getAttribute(Os);n&&e.push(...$s(n).filter(function(a,l,d){return d.indexOf(a)===l})),t&&(o.textContent=Rt(o.textContent,t)),e.push(o)}i._styles=e}return i._styles}function Ms(i){let t=Ue(i);return t?qe(t):[]}function qe(i){const t=[],e=i.querySelectorAll(Ns);for(let r=0;r<e.length;r++){let s=e[r];if(s.import){const o=s.import,n=s.hasAttribute(Fe);if(n&&!o._unscopedStyle){const a=je(o);a.setAttribute(Fe,""),o._unscopedStyle=a}else o._style||(o._style=je(o));t.push(n?o._unscopedStyle:o._style)}}return t}/**
205
+ */const Hr="link[rel=import][type~=css]",zr="include",Ti="shady-unscoped";function Oi(i){return dt.import(i)}function Ni(i){let t=i.body?i.body:i;const e=he(t.textContent,i.baseURI),r=document.createElement("style");return r.textContent=e,r}function Ur(i){const t=i.trim().split(/\s+/),e=[];for(let r=0;r<t.length;r++)e.push(...Br(t[r]));return e}function Br(i){const t=Oi(i);if(!t)return console.warn("Could not find style data in module named",i),[];if(t._styles===void 0){const e=[];e.push(...Mi(t));const r=t.querySelector("template");r&&e.push(...ki(r,t.assetpath)),t._styles=e}return t._styles}function ki(i,t){if(!i._styles){const e=[],r=i.content.querySelectorAll("style");for(let s=0;s<r.length;s++){let o=r[s],n=o.getAttribute(zr);n&&e.push(...Ur(n).filter(function(a,l,d){return d.indexOf(a)===l})),t&&(o.textContent=he(o.textContent,t)),e.push(o)}i._styles=e}return i._styles}function Fr(i){let t=Oi(i);return t?Mi(t):[]}function Mi(i){const t=[],e=i.querySelectorAll(Hr);for(let r=0;r<e.length;r++){let s=e[r];if(s.import){const o=s.import,n=s.hasAttribute(Ti);if(n&&!o._unscopedStyle){const a=Ni(o);a.setAttribute(Ti,""),o._unscopedStyle=a}else o._style||(o._style=Ni(o));t.push(n?o._unscopedStyle:o._style)}}return t}/**
200
206
  @license
201
207
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
202
208
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -204,7 +210,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
204
210
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
205
211
  Code distributed by Google as part of the polymer project is also
206
212
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
207
- */const w=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?i=>ShadyDOM.patch(i):i=>i;/**
213
+ */const E=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?i=>ShadyDOM.patch(i):i=>i;/**
208
214
  @license
209
215
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
210
216
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -212,7 +218,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
212
218
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
213
219
  Code distributed by Google as part of the polymer project is also
214
220
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
215
- */function Ft(i){return i.indexOf(".")>=0}function k(i){let t=i.indexOf(".");return t===-1?i:i.slice(0,t)}function Ls(i,t){return i.indexOf(t+".")===0}function mt(i,t){return t.indexOf(i+".")===0}function gt(i,t,e){return t+e.slice(i.length)}function et(i){if(Array.isArray(i)){let t=[];for(let e=0;e<i.length;e++){let r=i[e].toString().split(".");for(let s=0;s<r.length;s++)t.push(r[s])}return t.join(".")}else return i}function Ye(i){return Array.isArray(i)?et(i).split("."):i.toString().split(".")}function b(i,t,e){let r=i,s=Ye(t);for(let o=0;o<s.length;o++){if(!r)return;let n=s[o];r=r[n]}return e&&(e.path=s.join(".")),r}function Ge(i,t,e){let r=i,s=Ye(t),o=s[s.length-1];if(s.length>1){for(let n=0;n<s.length-1;n++){let a=s[n];if(r=r[a],!r)return}r[o]=e}else r[t]=e;return s.join(".")}/**
221
+ */function me(i){return i.indexOf(".")>=0}function I(i){let t=i.indexOf(".");return t===-1?i:i.slice(0,t)}function jr(i,t){return i.indexOf(t+".")===0}function kt(i,t){return t.indexOf(i+".")===0}function Mt(i,t,e){return t+e.slice(i.length)}function ct(i){if(Array.isArray(i)){let t=[];for(let e=0;e<i.length;e++){let r=i[e].toString().split(".");for(let s=0;s<r.length;s++)t.push(r[s])}return t.join(".")}else return i}function Ri(i){return Array.isArray(i)?ct(i).split("."):i.toString().split(".")}function b(i,t,e){let r=i,s=Ri(t);for(let o=0;o<s.length;o++){if(!r)return;let n=s[o];r=r[n]}return e&&(e.path=s.join(".")),r}function Li(i,t,e){let r=i,s=Ri(t),o=s[s.length-1];if(s.length>1){for(let n=0;n<s.length-1;n++){let a=s[n];if(r=r[a],!r)return}r[o]=e}else r[t]=e;return s.join(".")}/**
216
222
  @license
217
223
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
218
224
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -220,7 +226,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
220
226
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
221
227
  Code distributed by Google as part of the polymer project is also
222
228
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
223
- */const yt={},Is=/-[a-z]/g,Rs=/([A-Z])/g;function Ut(i){return yt[i]||(yt[i]=i.indexOf("-")<0?i:i.replace(Is,t=>t[1].toUpperCase()))}function bt(i){return yt[i]||(yt[i]=i.replace(Rs,"-$1").toLowerCase())}/**
229
+ */const Rt={},Vr=/-[a-z]/g,qr=/([A-Z])/g;function Ii(i){return Rt[i]||(Rt[i]=i.indexOf("-")<0?i:i.replace(Vr,t=>t[1].toUpperCase()))}function Lt(i){return Rt[i]||(Rt[i]=i.replace(qr,"-$1").toLowerCase())}/**
224
230
  @license
225
231
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
226
232
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -228,7 +234,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
228
234
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
229
235
  Code distributed by Google as part of the polymer project is also
230
236
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
231
- */let Ds=0,Je=0,U=[],Hs=0,jt=!1,Xe=document.createTextNode("");new window.MutationObserver(zs).observe(Xe,{characterData:!0});function zs(){jt=!1;const i=U.length;for(let t=0;t<i;t++){let e=U[t];if(e)try{e()}catch(r){setTimeout(()=>{throw r})}}U.splice(0,i),Je+=i}const We={run(i){return jt||(jt=!0,Xe.textContent=Hs++),U.push(i),Ds++},cancel(i){const t=i-Je;if(t>=0){if(!U[t])throw new Error("invalid async handle: "+i);U[t]=null}}};/**
237
+ */let Yr=0,Di=0,W=[],Wr=0,ge=!1,Hi=document.createTextNode("");new window.MutationObserver(Gr).observe(Hi,{characterData:!0});function Gr(){ge=!1;const i=W.length;for(let t=0;t<i;t++){let e=W[t];if(e)try{e()}catch(r){setTimeout(()=>{throw r})}}W.splice(0,i),Di+=i}const zi={run(i){return ge||(ge=!0,Hi.textContent=Wr++),W.push(i),Yr++},cancel(i){const t=i-Di;if(t>=0){if(!W[t])throw new Error("invalid async handle: "+i);W[t]=null}}};/**
232
238
  @license
233
239
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
234
240
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -236,7 +242,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
236
242
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
237
243
  Code distributed by Google as part of the polymer project is also
238
244
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
239
- */const Bs=We,Ke=g(i=>{class t extends i{static createProperties(r){const s=this.prototype;for(let o in r)o in s||s._createPropertyAccessor(o)}static attributeNameForProperty(r){return r.toLowerCase()}static typeForProperty(r){}_createPropertyAccessor(r,s){this._addPropertyToAttributeMap(r),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[r]||(this.__dataHasAccessor[r]=!0,this._definePropertyAccessor(r,s))}_addPropertyToAttributeMap(r){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let s=this.__dataAttributes[r];return s||(s=this.constructor.attributeNameForProperty(r),this.__dataAttributes[s]=r),s}_definePropertyAccessor(r,s){Object.defineProperty(this,r,{get(){return this.__data[r]},set:s?function(){}:function(o){this._setPendingProperty(r,o,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let r in this.__dataHasAccessor)this.hasOwnProperty(r)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[r]=this[r],delete this[r])}_initializeInstanceProperties(r){Object.assign(this,r)}_setProperty(r,s){this._setPendingProperty(r,s)&&this._invalidateProperties()}_getProperty(r){return this.__data[r]}_setPendingProperty(r,s,o){let n=this.__data[r],a=this._shouldPropertyChange(r,s,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(r in this.__dataOld)&&(this.__dataOld[r]=n),this.__data[r]=s,this.__dataPending[r]=s),a}_isPropertyPending(r){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(r))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Bs.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const r=this.__data,s=this.__dataPending,o=this.__dataOld;this._shouldPropertiesChange(r,s,o)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(r,s,o)),this.__dataCounter--}_shouldPropertiesChange(r,s,o){return Boolean(s)}_propertiesChanged(r,s,o){}_shouldPropertyChange(r,s,o){return o!==s&&(o===o||s===s)}attributeChangedCallback(r,s,o,n){s!==o&&this._attributeToProperty(r,o),super.attributeChangedCallback&&super.attributeChangedCallback(r,s,o,n)}_attributeToProperty(r,s,o){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[r]||r;this[a]=this._deserializeValue(s,o||this.constructor.typeForProperty(a))}}_propertyToAttribute(r,s,o){this.__serializing=!0,o=arguments.length<3?this[r]:o,this._valueToNodeAttribute(this,o,s||this.constructor.attributeNameForProperty(r)),this.__serializing=!1}_valueToNodeAttribute(r,s,o){const n=this._serializeValue(s);(o==="class"||o==="name"||o==="slot")&&(r=w(r)),n===void 0?r.removeAttribute(o):r.setAttribute(o,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(r){switch(typeof r){case"boolean":return r?"":void 0;default:return r?.toString()}}_deserializeValue(r,s){switch(s){case Boolean:return r!==null;case Number:return Number(r);default:return r}}}return t});/**
245
+ */const Jr=zi,Ui=g(i=>{class t extends i{static createProperties(r){const s=this.prototype;for(let o in r)o in s||s._createPropertyAccessor(o)}static attributeNameForProperty(r){return r.toLowerCase()}static typeForProperty(r){}_createPropertyAccessor(r,s){this._addPropertyToAttributeMap(r),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[r]||(this.__dataHasAccessor[r]=!0,this._definePropertyAccessor(r,s))}_addPropertyToAttributeMap(r){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let s=this.__dataAttributes[r];return s||(s=this.constructor.attributeNameForProperty(r),this.__dataAttributes[s]=r),s}_definePropertyAccessor(r,s){Object.defineProperty(this,r,{get(){return this.__data[r]},set:s?function(){}:function(o){this._setPendingProperty(r,o,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let r in this.__dataHasAccessor)this.hasOwnProperty(r)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[r]=this[r],delete this[r])}_initializeInstanceProperties(r){Object.assign(this,r)}_setProperty(r,s){this._setPendingProperty(r,s)&&this._invalidateProperties()}_getProperty(r){return this.__data[r]}_setPendingProperty(r,s,o){let n=this.__data[r],a=this._shouldPropertyChange(r,s,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(r in this.__dataOld)&&(this.__dataOld[r]=n),this.__data[r]=s,this.__dataPending[r]=s),a}_isPropertyPending(r){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(r))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Jr.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const r=this.__data,s=this.__dataPending,o=this.__dataOld;this._shouldPropertiesChange(r,s,o)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(r,s,o)),this.__dataCounter--}_shouldPropertiesChange(r,s,o){return Boolean(s)}_propertiesChanged(r,s,o){}_shouldPropertyChange(r,s,o){return o!==s&&(o===o||s===s)}attributeChangedCallback(r,s,o,n){s!==o&&this._attributeToProperty(r,o),super.attributeChangedCallback&&super.attributeChangedCallback(r,s,o,n)}_attributeToProperty(r,s,o){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[r]||r;this[a]=this._deserializeValue(s,o||this.constructor.typeForProperty(a))}}_propertyToAttribute(r,s,o){this.__serializing=!0,o=arguments.length<3?this[r]:o,this._valueToNodeAttribute(this,o,s||this.constructor.attributeNameForProperty(r)),this.__serializing=!1}_valueToNodeAttribute(r,s,o){const n=this._serializeValue(s);(o==="class"||o==="name"||o==="slot")&&(r=E(r)),n===void 0?r.removeAttribute(o):r.setAttribute(o,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(r){switch(typeof r){case"boolean":return r?"":void 0;default:return r?.toString()}}_deserializeValue(r,s){switch(s){case Boolean:return r!==null;case Number:return Number(r);default:return r}}}return t});/**
240
246
  @license
241
247
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
242
248
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -244,7 +250,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
244
250
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
245
251
  Code distributed by Google as part of the polymer project is also
246
252
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
247
- */const Ze={};let vt=HTMLElement.prototype;for(;vt;){let i=Object.getOwnPropertyNames(vt);for(let t=0;t<i.length;t++)Ze[i[t]]=!0;vt=Object.getPrototypeOf(vt)}const Fs=(()=>window.trustedTypes?i=>trustedTypes.isHTML(i)||trustedTypes.isScript(i)||trustedTypes.isScriptURL(i):()=>!1)();function Us(i,t){if(!Ze[t]){let e=i[t];e!==void 0&&(i.__data?i._setPendingProperty(t,e):(i.__dataProto?i.hasOwnProperty(JSCompiler_renameProperty("__dataProto",i))||(i.__dataProto=Object.create(i.__dataProto)):i.__dataProto={},i.__dataProto[t]=e))}}const js=g(i=>{const t=Ke(i);class e extends t{static createPropertiesForAttributes(){let s=this.observedAttributes;for(let o=0;o<s.length;o++)this.prototype._createPropertyAccessor(Ut(s[o]))}static attributeNameForProperty(s){return bt(s)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(s){for(let o in s)this._setProperty(o,s[o])}_ensureAttribute(s,o){const n=this;n.hasAttribute(s)||this._valueToNodeAttribute(n,o,s)}_serializeValue(s){switch(typeof s){case"object":if(s instanceof Date)return s.toString();if(s){if(Fs(s))return s;try{return JSON.stringify(s)}catch{return""}}default:return super._serializeValue(s)}}_deserializeValue(s,o){let n;switch(o){case Object:try{n=JSON.parse(s)}catch{n=s}break;case Array:try{n=JSON.parse(s)}catch{n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${s}`)}break;case Date:n=isNaN(s)?String(s):Number(s),n=new Date(n);break;default:n=super._deserializeValue(s,o);break}return n}_definePropertyAccessor(s,o){Us(this,s),super._definePropertyAccessor(s,o)}_hasAccessor(s){return this.__dataHasAccessor&&this.__dataHasAccessor[s]}_isPropertyPending(s){return Boolean(this.__dataPending&&s in this.__dataPending)}}return e});/**
253
+ */const Bi={};let It=HTMLElement.prototype;for(;It;){let i=Object.getOwnPropertyNames(It);for(let t=0;t<i.length;t++)Bi[i[t]]=!0;It=Object.getPrototypeOf(It)}const Kr=(()=>window.trustedTypes?i=>trustedTypes.isHTML(i)||trustedTypes.isScript(i)||trustedTypes.isScriptURL(i):()=>!1)();function Xr(i,t){if(!Bi[t]){let e=i[t];e!==void 0&&(i.__data?i._setPendingProperty(t,e):(i.__dataProto?i.hasOwnProperty(JSCompiler_renameProperty("__dataProto",i))||(i.__dataProto=Object.create(i.__dataProto)):i.__dataProto={},i.__dataProto[t]=e))}}const Zr=g(i=>{const t=Ui(i);class e extends t{static createPropertiesForAttributes(){let s=this.observedAttributes;for(let o=0;o<s.length;o++)this.prototype._createPropertyAccessor(Ii(s[o]))}static attributeNameForProperty(s){return Lt(s)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(s){for(let o in s)this._setProperty(o,s[o])}_ensureAttribute(s,o){const n=this;n.hasAttribute(s)||this._valueToNodeAttribute(n,o,s)}_serializeValue(s){switch(typeof s){case"object":if(s instanceof Date)return s.toString();if(s){if(Kr(s))return s;try{return JSON.stringify(s)}catch{return""}}default:return super._serializeValue(s)}}_deserializeValue(s,o){let n;switch(o){case Object:try{n=JSON.parse(s)}catch{n=s}break;case Array:try{n=JSON.parse(s)}catch{n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${s}`)}break;case Date:n=isNaN(s)?String(s):Number(s),n=new Date(n);break;default:n=super._deserializeValue(s,o);break}return n}_definePropertyAccessor(s,o){Xr(this,s),super._definePropertyAccessor(s,o)}_hasAccessor(s){return this.__dataHasAccessor&&this.__dataHasAccessor[s]}_isPropertyPending(s){return Boolean(this.__dataPending&&s in this.__dataPending)}}return e});/**
248
254
  @license
249
255
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
250
256
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -252,7 +258,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
252
258
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
253
259
  Code distributed by Google as part of the polymer project is also
254
260
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
255
- */const Vs={"dom-if":!0,"dom-repeat":!0};let Qe=!1,ti=!1;function qs(){if(!Qe){Qe=!0;const i=document.createElement("textarea");i.placeholder="a",ti=i.placeholder===i.textContent}return ti}function Ys(i){qs()&&i.localName==="textarea"&&i.placeholder&&i.placeholder===i.textContent&&(i.textContent=null)}const Gs=(()=>{const i=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,e,r)=>{const s=e.getAttribute(r);if(i&&r.startsWith("on-")){t.setAttribute(r,i.createScript(s,r));return}t.setAttribute(r,s)}})();function Js(i){let t=i.getAttribute("is");if(t&&Vs[t]){let e=i;for(e.removeAttribute("is"),i=e.ownerDocument.createElement(t),e.parentNode.replaceChild(i,e),i.appendChild(e);e.attributes.length;){const{name:r}=e.attributes[0];Gs(i,e,r),e.removeAttribute(r)}}return i}function ei(i,t){let e=t.parentInfo&&ei(i,t.parentInfo);if(e){for(let r=e.firstChild,s=0;r;r=r.nextSibling)if(t.parentIndex===s++)return r}else return i}function Xs(i,t,e,r){r.id&&(t[r.id]=e)}function Ws(i,t,e){if(e.events&&e.events.length)for(let r=0,s=e.events,o;r<s.length&&(o=s[r]);r++)i._addMethodEventListenerToNode(t,o.name,o.value,i)}function Ks(i,t,e,r){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=r)}function Zs(i,t,e){return i=i._methodHost||i,function(s){i[e]?i[e](s,s.detail):console.warn("listener method `"+e+"` not defined")}}const Qs=g(i=>{class t extends i{static _parseTemplate(r,s){if(!r._templateInfo){let o=r._templateInfo={};o.nodeInfoList=[],o.nestedTemplate=Boolean(s),o.stripWhiteSpace=s&&s.stripWhiteSpace||r.hasAttribute&&r.hasAttribute("strip-whitespace"),this._parseTemplateContent(r,o,{parent:null})}return r._templateInfo}static _parseTemplateContent(r,s,o){return this._parseTemplateNode(r.content,s,o)}static _parseTemplateNode(r,s,o){let n=!1,a=r;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,s,o)||n:a.localName==="slot"&&(s.hasInsertionPoint=!0),Ys(a),a.firstChild&&this._parseTemplateChildNodes(a,s,o),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,s,o)||n),n||o.noted}static _parseTemplateChildNodes(r,s,o){if(!(r.localName==="script"||r.localName==="style"))for(let n=r.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=Js(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let c=l;for(;c&&c.nodeType===Node.TEXT_NODE;)n.textContent+=c.textContent,l=c.nextSibling,r.removeChild(c),c=l;if(s.stripWhiteSpace&&!n.textContent.trim()){r.removeChild(n);continue}}let d={parentIndex:a,parentInfo:o};this._parseTemplateNode(n,s,d)&&(d.infoIndex=s.nodeInfoList.push(d)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(r,s,o){let n=r,a=this._parseTemplate(n,s);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),o.templateInfo=a,!0}static _parseTemplateNodeAttributes(r,s,o){let n=!1,a=Array.from(r.attributes);for(let l=a.length-1,d;d=a[l];l--)n=this._parseTemplateNodeAttribute(r,s,o,d.name,d.value)||n;return n}static _parseTemplateNodeAttribute(r,s,o,n,a){return n.slice(0,3)==="on-"?(r.removeAttribute(n),o.events=o.events||[],o.events.push({name:n.slice(3),value:a}),!0):n==="id"?(o.id=a,!0):!1}static _contentForTemplate(r){let s=r._templateInfo;return s&&s.content||r.content}_stampTemplate(r,s){r&&!r.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(r),s=s||this.constructor._parseTemplate(r);let o=s.nodeInfoList,n=s.content||r.content,a=document.importNode(n,!0);a.__noInsertionPoint=!s.hasInsertionPoint;let l=a.nodeList=new Array(o.length);a.$={};for(let d=0,c=o.length,h;d<c&&(h=o[d]);d++){let u=l[d]=ei(a,h);Xs(this,a.$,u,h),Ks(this,u,h,s),Ws(this,u,h)}return a=a,a}_addMethodEventListenerToNode(r,s,o,n){n=n||r;let a=Zs(n,s,o);return this._addEventListenerToNode(r,s,a),a}_addEventListenerToNode(r,s,o){r.addEventListener(s,o)}_removeEventListenerFromNode(r,s,o){r.removeEventListener(s,o)}}return t});/**
261
+ */const Qr={"dom-if":!0,"dom-repeat":!0};let Fi=!1,ji=!1;function to(){if(!Fi){Fi=!0;const i=document.createElement("textarea");i.placeholder="a",ji=i.placeholder===i.textContent}return ji}function eo(i){to()&&i.localName==="textarea"&&i.placeholder&&i.placeholder===i.textContent&&(i.textContent=null)}const io=(()=>{const i=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,e,r)=>{const s=e.getAttribute(r);if(i&&r.startsWith("on-")){t.setAttribute(r,i.createScript(s,r));return}t.setAttribute(r,s)}})();function so(i){let t=i.getAttribute("is");if(t&&Qr[t]){let e=i;for(e.removeAttribute("is"),i=e.ownerDocument.createElement(t),e.parentNode.replaceChild(i,e),i.appendChild(e);e.attributes.length;){const{name:r}=e.attributes[0];io(i,e,r),e.removeAttribute(r)}}return i}function Vi(i,t){let e=t.parentInfo&&Vi(i,t.parentInfo);if(e){for(let r=e.firstChild,s=0;r;r=r.nextSibling)if(t.parentIndex===s++)return r}else return i}function ro(i,t,e,r){r.id&&(t[r.id]=e)}function oo(i,t,e){if(e.events&&e.events.length)for(let r=0,s=e.events,o;r<s.length&&(o=s[r]);r++)i._addMethodEventListenerToNode(t,o.name,o.value,i)}function no(i,t,e,r){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=r)}function ao(i,t,e){return i=i._methodHost||i,function(s){i[e]?i[e](s,s.detail):console.warn("listener method `"+e+"` not defined")}}const lo=g(i=>{class t extends i{static _parseTemplate(r,s){if(!r._templateInfo){let o=r._templateInfo={};o.nodeInfoList=[],o.nestedTemplate=Boolean(s),o.stripWhiteSpace=s&&s.stripWhiteSpace||r.hasAttribute&&r.hasAttribute("strip-whitespace"),this._parseTemplateContent(r,o,{parent:null})}return r._templateInfo}static _parseTemplateContent(r,s,o){return this._parseTemplateNode(r.content,s,o)}static _parseTemplateNode(r,s,o){let n=!1,a=r;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,s,o)||n:a.localName==="slot"&&(s.hasInsertionPoint=!0),eo(a),a.firstChild&&this._parseTemplateChildNodes(a,s,o),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,s,o)||n),n||o.noted}static _parseTemplateChildNodes(r,s,o){if(!(r.localName==="script"||r.localName==="style"))for(let n=r.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=so(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let c=l;for(;c&&c.nodeType===Node.TEXT_NODE;)n.textContent+=c.textContent,l=c.nextSibling,r.removeChild(c),c=l;if(s.stripWhiteSpace&&!n.textContent.trim()){r.removeChild(n);continue}}let d={parentIndex:a,parentInfo:o};this._parseTemplateNode(n,s,d)&&(d.infoIndex=s.nodeInfoList.push(d)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(r,s,o){let n=r,a=this._parseTemplate(n,s);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),o.templateInfo=a,!0}static _parseTemplateNodeAttributes(r,s,o){let n=!1,a=Array.from(r.attributes);for(let l=a.length-1,d;d=a[l];l--)n=this._parseTemplateNodeAttribute(r,s,o,d.name,d.value)||n;return n}static _parseTemplateNodeAttribute(r,s,o,n,a){return n.slice(0,3)==="on-"?(r.removeAttribute(n),o.events=o.events||[],o.events.push({name:n.slice(3),value:a}),!0):n==="id"?(o.id=a,!0):!1}static _contentForTemplate(r){let s=r._templateInfo;return s&&s.content||r.content}_stampTemplate(r,s){r&&!r.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(r),s=s||this.constructor._parseTemplate(r);let o=s.nodeInfoList,n=s.content||r.content,a=document.importNode(n,!0);a.__noInsertionPoint=!s.hasInsertionPoint;let l=a.nodeList=new Array(o.length);a.$={};for(let d=0,c=o.length,h;d<c&&(h=o[d]);d++){let u=l[d]=Vi(a,h);ro(this,a.$,u,h),no(this,u,h,s),oo(this,u,h)}return a=a,a}_addMethodEventListenerToNode(r,s,o,n){n=n||r;let a=ao(n,s,o);return this._addEventListenerToNode(r,s,a),a}_addEventListenerToNode(r,s,o){r.addEventListener(s,o)}_removeEventListenerFromNode(r,s,o){r.removeEventListener(s,o)}}return t});/**
256
262
  * @fileoverview
257
263
  * @suppress {checkPrototypalTypes}
258
264
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -262,7 +268,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
262
268
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
263
269
  * Google as part of the polymer project is also subject to an additional IP
264
270
  * rights grant found at http://polymer.github.io/PATENTS.txt
265
- */let it=0;const st=[],p={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},ii="__computeInfo",tr=/[A-Z]/;function Vt(i,t,e){let r=i[t];if(!r)r=i[t]={};else if(!i.hasOwnProperty(t)&&(r=i[t]=Object.create(i[t]),e))for(let s in r){let o=r[s],n=r[s]=Array(o.length);for(let a=0;a<o.length;a++)n[a]=o[a]}return r}function rt(i,t,e,r,s,o){if(t){let n=!1;const a=it++;for(let l in e){let d=s?k(l):l,c=t[d];if(c)for(let h=0,u=c.length,f;h<u&&(f=c[h]);h++)(!f.info||f.info.lastRun!==a)&&(!s||qt(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(i,l,e,r,f.info,s,o),n=!0)}return n}return!1}function er(i,t,e,r,s,o,n,a){let l=!1,d=n?k(r):r,c=t[d];if(c)for(let h=0,u=c.length,f;h<u&&(f=c[h]);h++)(!f.info||f.info.lastRun!==e)&&(!n||qt(r,f.trigger))&&(f.info&&(f.info.lastRun=e),f.fn(i,r,s,o,f.info,n,a),l=!0);return l}function qt(i,t){if(t){let e=t.name;return e==i||!!(t.structured&&Ls(e,i))||!!(t.wildcard&&mt(e,i))}else return!0}function si(i,t,e,r,s){let o=typeof s.method=="string"?i[s.method]:s.method,n=s.property;o?o.call(i,i.__data[n],r[n]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function ir(i,t,e,r,s){let o=i[p.NOTIFY],n,a=it++;for(let d in t)t[d]&&(o&&er(i,o,a,d,e,r,s)||s&&sr(i,d,e))&&(n=!0);let l;n&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function sr(i,t,e){let r=k(t);if(r!==t){let s=bt(r)+"-changed";return ri(i,s,e[t],t),!0}return!1}function ri(i,t,e,r){let s={value:e,queueProperty:!0};r&&(s.path=r),w(i).dispatchEvent(new CustomEvent(t,{detail:s}))}function rr(i,t,e,r,s,o){let a=(o?k(t):t)!=t?t:null,l=a?b(i,a):i.__data[t];a&&l===void 0&&(l=e[t]),ri(i,s.eventName,l,a)}function or(i,t,e,r,s){let o,n=i.detail,a=n&&n.path;a?(r=gt(e,r,a),o=n&&n.value):o=i.currentTarget[e],o=s?!o:o,(!t[p.READ_ONLY]||!t[p.READ_ONLY][r])&&t._setPendingPropertyOrPath(r,o,!0,Boolean(a))&&(!n||!n.queueProperty)&&t._invalidateProperties()}function nr(i,t,e,r,s){let o=i.__data[t];_t&&(o=_t(o,s.attrName,"attribute",i)),i._propertyToAttribute(t,s.attrName,o)}function ar(i,t,e,r){let s=i[p.COMPUTE];if(s)if(Ps){it++;const o=dr(i),n=[];for(let l in t)oi(l,s,n,o,r);let a;for(;a=n.shift();)ni(i,"",t,e,a)&&oi(a.methodInfo,s,n,o,r);Object.assign(e,i.__dataOld),Object.assign(t,i.__dataPending),i.__dataPending=null}else{let o=t;for(;rt(i,s,o,e,r);)Object.assign(e,i.__dataOld),Object.assign(t,i.__dataPending),o=i.__dataPending,i.__dataPending=null}}const lr=(i,t,e)=>{let r=0,s=t.length-1,o=-1;for(;r<=s;){const n=r+s>>1,a=e.get(t[n].methodInfo)-e.get(i.methodInfo);if(a<0)r=n+1;else if(a>0)s=n-1;else{o=n;break}}o<0&&(o=s+1),t.splice(o,0,i)},oi=(i,t,e,r,s)=>{const o=s?k(i):i,n=t[o];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==it&&(!s||qt(i,l.trigger))&&(l.info.lastRun=it,lr(l.info,e,r))}};function dr(i){let t=i.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=i[p.COMPUTE];let{counts:r,ready:s,total:o}=cr(i),n;for(;n=s.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const d=l.info.methodInfo;--o,--r[d]===0&&s.push(d)})}o!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=t}return t}function cr(i){const t=i[ii],e={},r=i[p.COMPUTE],s=[];let o=0;for(let n in t){const a=t[n];o+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in r)t[n]||s.push(n);return{counts:e,ready:s,total:o}}function ni(i,t,e,r,s){let o=Gt(i,t,e,r,s);if(o===st)return!1;let n=s.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[n]?i._setPendingProperty(n,o,!0):(i[n]=o,!1)}function hr(i,t,e){let r=i.__dataLinkedPaths;if(r){let s;for(let o in r){let n=r[o];mt(o,t)?(s=gt(o,n,t),i._setPendingPropertyOrPath(s,e,!0,!0)):mt(n,t)&&(s=gt(n,o,t),i._setPendingPropertyOrPath(s,e,!0,!0))}}}function Yt(i,t,e,r,s,o,n){e.bindings=e.bindings||[];let a={kind:r,target:s,parts:o,literal:n,isCompound:o.length!==1};if(e.bindings.push(a),mr(a)){let{event:d,negate:c}=a.parts[0];a.listenerEvent=d||bt(s)+"-changed",a.listenerNegate=c}let l=t.nodeInfoList.length;for(let d=0;d<a.parts.length;d++){let c=a.parts[d];c.compoundIndex=d,ur(i,t,a,c,l)}}function ur(i,t,e,r,s){if(!r.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{let o=r.dependencies,n={index:s,binding:e,part:r,evaluator:i};for(let a=0;a<o.length;a++){let l=o[a];typeof l=="string"&&(l=ui(l),l.wildcard=!0),i._addTemplatePropertyEffect(t,l.rootProperty,{fn:fr,info:n,trigger:l})}}}function fr(i,t,e,r,s,o,n){let a=n[s.index],l=s.binding,d=s.part;if(o&&d.source&&t.length>d.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let c=e[t];t=gt(d.source,l.target,t),a._setPendingPropertyOrPath(t,c,!1,!0)&&i._enqueueClient(a)}else{let c=s.evaluator._evaluateBinding(i,d,t,e,r,o);c!==st&&pr(i,a,l,d,c)}}function pr(i,t,e,r,s){if(s=_r(t,s,e,r),_t&&(s=_t(s,e.target,e.kind,t)),e.kind=="attribute")i._valueToNodeAttribute(t,s,e.target);else{let o=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[o]?(!t[p.READ_ONLY]||!t[p.READ_ONLY][o])&&t._setPendingProperty(o,s)&&i._enqueueClient(t):i._setUnmanagedPropertyToNode(t,o,s)}}function _r(i,t,e,r){if(e.isCompound){let s=i.__dataCompoundStorage[e.target];s[r.compoundIndex]=t,t=s.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(i.localName==="input"||i.localName==="textarea"))&&(t=t??""),t}function mr(i){return Boolean(i.target)&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function gr(i,t){let{nodeList:e,nodeInfoList:r}=t;if(r.length)for(let s=0;s<r.length;s++){let o=r[s],n=e[s],a=o.bindings;if(a)for(let l=0;l<a.length;l++){let d=a[l];yr(n,d),br(n,i,d)}n.__dataHost=i}}function yr(i,t){if(t.isCompound){let e=i.__dataCompoundStorage||(i.__dataCompoundStorage={}),r=t.parts,s=new Array(r.length);for(let n=0;n<r.length;n++)s[n]=r[n].literal;let o=t.target;e[o]=s,t.literal&&t.kind=="property"&&(o==="className"&&(i=w(i)),i[o]=t.literal)}}function br(i,t,e){if(e.listenerEvent){let r=e.parts[0];i.addEventListener(e.listenerEvent,function(s){or(s,t,e.target,r.source,r.negate)})}}function ai(i,t,e,r,s,o){o=t.static||o&&(typeof o!="object"||o[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:s,dynamicFn:o};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||i._addPropertyEffect(l.rootProperty,e,{fn:r,info:n,trigger:l});return o&&i._addPropertyEffect(t.methodName,e,{fn:r,info:n}),n}function Gt(i,t,e,r,s){let o=i._methodHost||i,n=o[s.methodName];if(n){let a=i._marshalArgs(s.args,t,e);return a===st?st:n.apply(o,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const vr=[],li="(?:[a-zA-Z_$][\\w.:$\\-*]*)",wr="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Cr="(?:'(?:[^'\\\\]|\\\\.)*')",Er='(?:"(?:[^"\\\\]|\\\\.)*")',Pr="(?:"+Cr+"|"+Er+")",di="(?:("+li+"|"+wr+"|"+Pr+")\\s*)",Ar="(?:"+di+"(?:,\\s*"+di+")*)",xr="(?:\\(\\s*(?:"+Ar+"?)\\)\\s*)",Tr="("+li+"\\s*"+xr+"?)",Sr="(\\[\\[|{{)\\s*",Nr="(?:]]|}})",Or=Sr+"(?:(!)\\s*)?"+Tr+Nr,ci=new RegExp(Or,"g");function hi(i){let t="";for(let e=0;e<i.length;e++)t+=i[e].literal||"";return t}function Jt(i){let t=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let r={methodName:t[1],static:!0,args:vr};if(t[2].trim()){let s=t[2].replace(/\\,/g,"&comma;").split(",");return $r(s,r)}else return r}return null}function $r(i,t){return t.args=i.map(function(e){let r=ui(e);return r.literal||(t.static=!1),r},this),t}function ui(i){let t=i.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},r=t[0];switch(r==="-"&&(r=t[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':e.value=t.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(t),e.literal=!0;break}return e.literal||(e.rootProperty=k(t),e.structured=Ft(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function fi(i,t,e){let r=b(i,e);return r===void 0&&(r=t[e]),r}function pi(i,t,e,r){const s={indexSplices:r};zt&&!i._overrideLegacyUndefined&&(t.splices=s),i.notifyPath(e+".splices",s),i.notifyPath(e+".length",t.length),zt&&!i._overrideLegacyUndefined&&(s.indexSplices=[])}function ot(i,t,e,r,s,o){pi(i,t,e,[{index:r,addedCount:s,removed:o,object:t,type:"splice"}])}function kr(i){return i[0].toUpperCase()+i.substring(1)}const Mr=g(i=>{const t=Qs(js(i));class e extends t{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return p}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(nt.length){let s=nt[nt.length-1];s._enqueueClient(this),this.__dataHost=s}}_initializeProtoProperties(s){this.__data=Object.create(s),this.__dataPending=Object.create(s),this.__dataOld={}}_initializeInstanceProperties(s){let o=this[p.READ_ONLY];for(let n in s)(!o||!o[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=s[n])}_addPropertyEffect(s,o,n){this._createPropertyAccessor(s,o==p.READ_ONLY);let a=Vt(this,o,!0)[s];a||(a=this[o][s]=[]),a.push(n)}_removePropertyEffect(s,o,n){let a=Vt(this,o,!0)[s],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(s,o){let n=this[o];return Boolean(n&&n[s])}_hasReadOnlyEffect(s){return this._hasPropertyEffect(s,p.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,p.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,p.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,p.COMPUTE)}_setPendingPropertyOrPath(s,o,n,a){if(a||k(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=b(this,s);if(s=Ge(this,s,o),!s||!super._shouldPropertyChange(s,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,o,n))return hr(this,s,o),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[s])return this._setPendingProperty(s,o,n);this[s]=o}return!1}_setUnmanagedPropertyToNode(s,o,n){(n!==s[o]||typeof n=="object")&&(o==="className"&&(s=w(s)),s[o]=n)}_setPendingProperty(s,o,n){let a=this.__dataHasPaths&&Ft(s),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(s,o,l[s])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),s in this.__dataOld||(this.__dataOld[s]=this.__data[s]),a?this.__dataTemp[s]=o:this.__data[s]=o,this.__dataPending[s]=o,(a||this[p.NOTIFY]&&this[p.NOTIFY][s])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[s]=n),!0):!1}_setProperty(s,o){this._setPendingProperty(s,o,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(s){this.__dataPendingClients=this.__dataPendingClients||[],s!==this&&this.__dataPendingClients.push(s)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let s=this.__dataPendingClients;if(s){this.__dataPendingClients=null;for(let o=0;o<s.length;o++){let n=s[o];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(s,o){for(let n in s)(o||!this[p.READ_ONLY]||!this[p.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,s[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(s,o,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;ar(this,o,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,n,a),this._flushClients(),rt(this,this[p.REFLECT],o,n,a),rt(this,this[p.OBSERVE],o,n,a),l&&ir(this,l,o,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,o,n){this[p.PROPAGATE]&&rt(this,this[p.PROPAGATE],s,o,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,o,n)}_runEffectsForTemplate(s,o,n,a){const l=(d,c)=>{rt(this,s.propertyEffects,d,n,c,s.nodeList);for(let h=s.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,d,n,c)};s.runEffects?s.runEffects(l,o,a):l(o,a)}linkPaths(s,o){s=et(s),o=et(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=o}unlinkPaths(s){s=et(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,o){let n={path:""},a=b(this,s,n);pi(this,a,n.path,o)}get(s,o){return b(o||this,s)}set(s,o,n){n?Ge(n,s,o):(!this[p.READ_ONLY]||!this[p.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,o,!0)&&this._invalidateProperties()}push(s,...o){let n={path:""},a=b(this,s,n),l=a.length,d=a.push(...o);return o.length&&ot(this,a,n.path,l,o.length,[]),d}pop(s){let o={path:""},n=b(this,s,o),a=Boolean(n.length),l=n.pop();return a&&ot(this,n,o.path,n.length,0,[l]),l}splice(s,o,n,...a){let l={path:""},d=b(this,s,l);o<0?o=d.length-Math.floor(-o):o&&(o=Math.floor(o));let c;return arguments.length===2?c=d.splice(o):c=d.splice(o,n,...a),(a.length||c.length)&&ot(this,d,l.path,o,a.length,c),c}shift(s){let o={path:""},n=b(this,s,o),a=Boolean(n.length),l=n.shift();return a&&ot(this,n,o.path,0,0,[l]),l}unshift(s,...o){let n={path:""},a=b(this,s,n),l=a.unshift(...o);return o.length&&ot(this,a,n.path,0,o.length,[]),l}notifyPath(s,o){let n;if(arguments.length==1){let a={path:""};o=b(this,s,a),n=a.path}else Array.isArray(s)?n=et(s):n=s;this._setPendingPropertyOrPath(n,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,o){this._addPropertyEffect(s,p.READ_ONLY),o&&(this["_set"+kr(s)]=function(n){this._setProperty(s,n)})}_createPropertyObserver(s,o,n){let a={property:s,method:o,dynamicFn:Boolean(n)};this._addPropertyEffect(s,p.OBSERVE,{fn:si,info:a,trigger:{name:s}}),n&&this._addPropertyEffect(o,p.OBSERVE,{fn:si,info:a,trigger:{name:o}})}_createMethodObserver(s,o){let n=Jt(s);if(!n)throw new Error("Malformed observer expression '"+s+"'");ai(this,n,p.OBSERVE,Gt,null,o)}_createNotifyingProperty(s){this._addPropertyEffect(s,p.NOTIFY,{fn:rr,info:{eventName:bt(s)+"-changed",property:s}})}_createReflectedProperty(s){let o=this.constructor.attributeNameForProperty(s);o[0]==="-"?console.warn("Property "+s+" cannot be reflected to attribute "+o+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(s,p.REFLECT,{fn:nr,info:{attrName:o}})}_createComputedProperty(s,o,n){let a=Jt(o);if(!a)throw new Error("Malformed computed expression '"+o+"'");const l=ai(this,a,p.COMPUTE,ni,s,n);Vt(this,ii)[s]=l}_marshalArgs(s,o,n){const a=this.__data,l=[];for(let d=0,c=s.length;d<c;d++){let{name:h,structured:u,wildcard:f,value:_,literal:y}=s[d];if(!y)if(f){const P=mt(h,o),C=fi(a,n,P?o:h);_={path:P?o:h,value:C,base:P?b(a,h):C}}else _=u?fi(a,n,h):a[h];if(zt&&!this._overrideLegacyUndefined&&_===void 0&&s.length>1)return st;l[d]=_}return l}static addPropertyEffect(s,o,n){this.prototype._addPropertyEffect(s,o,n)}static createPropertyObserver(s,o,n){this.prototype._createPropertyObserver(s,o,n)}static createMethodObserver(s,o){this.prototype._createMethodObserver(s,o)}static createNotifyingProperty(s){this.prototype._createNotifyingProperty(s)}static createReadOnlyProperty(s,o){this.prototype._createReadOnlyProperty(s,o)}static createReflectedProperty(s){this.prototype._createReflectedProperty(s)}static createComputedProperty(s,o,n){this.prototype._createComputedProperty(s,o,n)}static bindTemplate(s){return this.prototype._bindTemplate(s)}_bindTemplate(s,o){let n=this.constructor._parseTemplate(s),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(o)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=s._parentTemplateInfo||this.__templateInfo,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(s,o,n){let a=s.hostProps=s.hostProps||{};a[o]=!0;let l=s.propertyEffects=s.propertyEffects||{};(l[o]=l[o]||[]).push(n)}_stampTemplate(s,o){o=o||this._bindTemplate(s,!0),nt.push(this);let n=super._stampTemplate(s,o);if(nt.pop(),o.nodeList=n.nodeList,!o.wasPreBound){let a=o.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=o,gr(this,o),this.__dataClientsReady&&(this._runEffectsForTemplate(o,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(s){const o=s.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=o;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),o.nextSibling=o.previousSibling=null;let d=o.childNodes;for(let c=0;c<d.length;c++){let h=d[c];w(w(h).parentNode).removeChild(h)}}static _parseTemplateNode(s,o,n){let a=t._parseTemplateNode.call(this,s,o,n);if(s.nodeType===Node.TEXT_NODE){let l=this._parseBindings(s.textContent,o);l&&(s.textContent=hi(l)||" ",Yt(this,o,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(s,o,n,a,l){let d=this._parseBindings(l,o);if(d){let c=a,h="property";tr.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let u=hi(d);return u&&h=="attribute"&&(a=="class"&&s.hasAttribute("class")&&(u+=" "+s.getAttribute(a)),s.setAttribute(a,u)),h=="attribute"&&c=="disable-upgrade$"&&s.setAttribute(a,""),s.localName==="input"&&c==="value"&&s.setAttribute(c,""),s.removeAttribute(c),h==="property"&&(a=Ut(a)),Yt(this,o,n,h,a,d,u),!0}else return t._parseTemplateNodeAttribute.call(this,s,o,n,a,l)}static _parseTemplateNestedTemplate(s,o,n){let a=t._parseTemplateNestedTemplate.call(this,s,o,n);const l=s.parentNode,d=n.templateInfo,c=l.localName==="dom-if",h=l.localName==="dom-repeat";De&&(c||h)&&(l.removeChild(s),n=n.parentInfo,n.templateInfo=d,n.noted=!0,a=!1);let u=d.hostProps;if(As&&c)u&&(o.hostProps=Object.assign(o.hostProps||{},u),De||(n.parentInfo.noted=!0));else{let f="{";for(let _ in u){let y=[{mode:f,source:_,dependencies:[_],hostProp:!0}];Yt(this,o,n,"property","_host_"+_,y)}}return a}static _parseBindings(s,o){let n=[],a=0,l;for(;(l=ci.exec(s))!==null;){l.index>a&&n.push({literal:s.slice(a,l.index)});let d=l[1][0],c=Boolean(l[2]),h=l[3].trim(),u=!1,f="",_=-1;d=="{"&&(_=h.indexOf("::"))>0&&(f=h.substring(_+2),h=h.substring(0,_),u=!0);let y=Jt(h),P=[];if(y){let{args:C,methodName:E}=y;for(let _e=0;_e<C.length;_e++){let Ji=C[_e];Ji.literal||P.push(Ji)}let G=o.dynamicFns;(G&&G[E]||y.static)&&(P.push(E),y.dynamicFn=!0)}else P.push(h);n.push({source:h,mode:d,negate:c,customEvent:u,signature:y,dependencies:P,event:f}),a=ci.lastIndex}if(a&&a<s.length){let d=s.substring(a);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(s,o,n,a,l,d){let c;return o.signature?c=Gt(s,n,a,l,o.signature):n!=o.source?c=b(s,o.source):d&&Ft(n)?c=b(s,n):c=s.__data[n],o.negate&&(c=!c),c}}return e}),nt=[];/**
271
+ */let ht=0;const ut=[],f={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},qi="__computeInfo",co=/[A-Z]/;function ye(i,t,e){let r=i[t];if(!r)r=i[t]={};else if(!i.hasOwnProperty(t)&&(r=i[t]=Object.create(i[t]),e))for(let s in r){let o=r[s],n=r[s]=Array(o.length);for(let a=0;a<o.length;a++)n[a]=o[a]}return r}function pt(i,t,e,r,s,o){if(t){let n=!1;const a=ht++;for(let l in e){let d=s?I(l):l,c=t[d];if(c)for(let h=0,u=c.length,p;h<u&&(p=c[h]);h++)(!p.info||p.info.lastRun!==a)&&(!s||ve(l,p.trigger))&&(p.info&&(p.info.lastRun=a),p.fn(i,l,e,r,p.info,s,o),n=!0)}return n}return!1}function ho(i,t,e,r,s,o,n,a){let l=!1,d=n?I(r):r,c=t[d];if(c)for(let h=0,u=c.length,p;h<u&&(p=c[h]);h++)(!p.info||p.info.lastRun!==e)&&(!n||ve(r,p.trigger))&&(p.info&&(p.info.lastRun=e),p.fn(i,r,s,o,p.info,n,a),l=!0);return l}function ve(i,t){if(t){let e=t.name;return e==i||!!(t.structured&&jr(e,i))||!!(t.wildcard&&kt(e,i))}else return!0}function Yi(i,t,e,r,s){let o=typeof s.method=="string"?i[s.method]:s.method,n=s.property;o?o.call(i,i.__data[n],r[n]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function uo(i,t,e,r,s){let o=i[f.NOTIFY],n,a=ht++;for(let d in t)t[d]&&(o&&ho(i,o,a,d,e,r,s)||s&&po(i,d,e))&&(n=!0);let l;n&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function po(i,t,e){let r=I(t);if(r!==t){let s=Lt(r)+"-changed";return Wi(i,s,e[t],t),!0}return!1}function Wi(i,t,e,r){let s={value:e,queueProperty:!0};r&&(s.path=r),E(i).dispatchEvent(new CustomEvent(t,{detail:s}))}function fo(i,t,e,r,s,o){let a=(o?I(t):t)!=t?t:null,l=a?b(i,a):i.__data[t];a&&l===void 0&&(l=e[t]),Wi(i,s.eventName,l,a)}function _o(i,t,e,r,s){let o,n=i.detail,a=n&&n.path;a?(r=Mt(e,r,a),o=n&&n.value):o=i.currentTarget[e],o=s?!o:o,(!t[f.READ_ONLY]||!t[f.READ_ONLY][r])&&t._setPendingPropertyOrPath(r,o,!0,Boolean(a))&&(!n||!n.queueProperty)&&t._invalidateProperties()}function mo(i,t,e,r,s){let o=i.__data[t];Nt&&(o=Nt(o,s.attrName,"attribute",i)),i._propertyToAttribute(t,s.attrName,o)}function go(i,t,e,r){let s=i[f.COMPUTE];if(s)if(Mr){ht++;const o=vo(i),n=[];for(let l in t)Gi(l,s,n,o,r);let a;for(;a=n.shift();)Ji(i,"",t,e,a)&&Gi(a.methodInfo,s,n,o,r);Object.assign(e,i.__dataOld),Object.assign(t,i.__dataPending),i.__dataPending=null}else{let o=t;for(;pt(i,s,o,e,r);)Object.assign(e,i.__dataOld),Object.assign(t,i.__dataPending),o=i.__dataPending,i.__dataPending=null}}const yo=(i,t,e)=>{let r=0,s=t.length-1,o=-1;for(;r<=s;){const n=r+s>>1,a=e.get(t[n].methodInfo)-e.get(i.methodInfo);if(a<0)r=n+1;else if(a>0)s=n-1;else{o=n;break}}o<0&&(o=s+1),t.splice(o,0,i)},Gi=(i,t,e,r,s)=>{const o=s?I(i):i,n=t[o];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==ht&&(!s||ve(i,l.trigger))&&(l.info.lastRun=ht,yo(l.info,e,r))}};function vo(i){let t=i.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=i[f.COMPUTE];let{counts:r,ready:s,total:o}=bo(i),n;for(;n=s.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const d=l.info.methodInfo;--o,--r[d]===0&&s.push(d)})}o!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=t}return t}function bo(i){const t=i[qi],e={},r=i[f.COMPUTE],s=[];let o=0;for(let n in t){const a=t[n];o+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in r)t[n]||s.push(n);return{counts:e,ready:s,total:o}}function Ji(i,t,e,r,s){let o=we(i,t,e,r,s);if(o===ut)return!1;let n=s.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[n]?i._setPendingProperty(n,o,!0):(i[n]=o,!1)}function wo(i,t,e){let r=i.__dataLinkedPaths;if(r){let s;for(let o in r){let n=r[o];kt(o,t)?(s=Mt(o,n,t),i._setPendingPropertyOrPath(s,e,!0,!0)):kt(n,t)&&(s=Mt(n,o,t),i._setPendingPropertyOrPath(s,e,!0,!0))}}}function be(i,t,e,r,s,o,n){e.bindings=e.bindings||[];let a={kind:r,target:s,parts:o,literal:n,isCompound:o.length!==1};if(e.bindings.push(a),Po(a)){let{event:d,negate:c}=a.parts[0];a.listenerEvent=d||Lt(s)+"-changed",a.listenerNegate=c}let l=t.nodeInfoList.length;for(let d=0;d<a.parts.length;d++){let c=a.parts[d];c.compoundIndex=d,Eo(i,t,a,c,l)}}function Eo(i,t,e,r,s){if(!r.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{let o=r.dependencies,n={index:s,binding:e,part:r,evaluator:i};for(let a=0;a<o.length;a++){let l=o[a];typeof l=="string"&&(l=es(l),l.wildcard=!0),i._addTemplatePropertyEffect(t,l.rootProperty,{fn:Ao,info:n,trigger:l})}}}function Ao(i,t,e,r,s,o,n){let a=n[s.index],l=s.binding,d=s.part;if(o&&d.source&&t.length>d.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let c=e[t];t=Mt(d.source,l.target,t),a._setPendingPropertyOrPath(t,c,!1,!0)&&i._enqueueClient(a)}else{let c=s.evaluator._evaluateBinding(i,d,t,e,r,o);c!==ut&&Co(i,a,l,d,c)}}function Co(i,t,e,r,s){if(s=$o(t,s,e,r),Nt&&(s=Nt(s,e.target,e.kind,t)),e.kind=="attribute")i._valueToNodeAttribute(t,s,e.target);else{let o=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[o]?(!t[f.READ_ONLY]||!t[f.READ_ONLY][o])&&t._setPendingProperty(o,s)&&i._enqueueClient(t):i._setUnmanagedPropertyToNode(t,o,s)}}function $o(i,t,e,r){if(e.isCompound){let s=i.__dataCompoundStorage[e.target];s[r.compoundIndex]=t,t=s.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(i.localName==="input"||i.localName==="textarea"))&&(t=t??""),t}function Po(i){return Boolean(i.target)&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function xo(i,t){let{nodeList:e,nodeInfoList:r}=t;if(r.length)for(let s=0;s<r.length;s++){let o=r[s],n=e[s],a=o.bindings;if(a)for(let l=0;l<a.length;l++){let d=a[l];So(n,d),To(n,i,d)}n.__dataHost=i}}function So(i,t){if(t.isCompound){let e=i.__dataCompoundStorage||(i.__dataCompoundStorage={}),r=t.parts,s=new Array(r.length);for(let n=0;n<r.length;n++)s[n]=r[n].literal;let o=t.target;e[o]=s,t.literal&&t.kind=="property"&&(o==="className"&&(i=E(i)),i[o]=t.literal)}}function To(i,t,e){if(e.listenerEvent){let r=e.parts[0];i.addEventListener(e.listenerEvent,function(s){_o(s,t,e.target,r.source,r.negate)})}}function Ki(i,t,e,r,s,o){o=t.static||o&&(typeof o!="object"||o[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:s,dynamicFn:o};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||i._addPropertyEffect(l.rootProperty,e,{fn:r,info:n,trigger:l});return o&&i._addPropertyEffect(t.methodName,e,{fn:r,info:n}),n}function we(i,t,e,r,s){let o=i._methodHost||i,n=o[s.methodName];if(n){let a=i._marshalArgs(s.args,t,e);return a===ut?ut:n.apply(o,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const Oo=[],Xi="(?:[a-zA-Z_$][\\w.:$\\-*]*)",No="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",ko="(?:'(?:[^'\\\\]|\\\\.)*')",Mo='(?:"(?:[^"\\\\]|\\\\.)*")',Ro="(?:"+ko+"|"+Mo+")",Zi="(?:("+Xi+"|"+No+"|"+Ro+")\\s*)",Lo="(?:"+Zi+"(?:,\\s*"+Zi+")*)",Io="(?:\\(\\s*(?:"+Lo+"?)\\)\\s*)",Do="("+Xi+"\\s*"+Io+"?)",Ho="(\\[\\[|{{)\\s*",zo="(?:]]|}})",Uo=Ho+"(?:(!)\\s*)?"+Do+zo,Qi=new RegExp(Uo,"g");function ts(i){let t="";for(let e=0;e<i.length;e++)t+=i[e].literal||"";return t}function Ee(i){let t=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let r={methodName:t[1],static:!0,args:Oo};if(t[2].trim()){let s=t[2].replace(/\\,/g,"&comma;").split(",");return Bo(s,r)}else return r}return null}function Bo(i,t){return t.args=i.map(function(e){let r=es(e);return r.literal||(t.static=!1),r},this),t}function es(i){let t=i.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},r=t[0];switch(r==="-"&&(r=t[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':e.value=t.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(t),e.literal=!0;break}return e.literal||(e.rootProperty=I(t),e.structured=me(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function is(i,t,e){let r=b(i,e);return r===void 0&&(r=t[e]),r}function ss(i,t,e,r){const s={indexSplices:r};fe&&!i._overrideLegacyUndefined&&(t.splices=s),i.notifyPath(e+".splices",s),i.notifyPath(e+".length",t.length),fe&&!i._overrideLegacyUndefined&&(s.indexSplices=[])}function ft(i,t,e,r,s,o){ss(i,t,e,[{index:r,addedCount:s,removed:o,object:t,type:"splice"}])}function Fo(i){return i[0].toUpperCase()+i.substring(1)}const jo=g(i=>{const t=lo(Zr(i));class e extends t{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return f}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(_t.length){let s=_t[_t.length-1];s._enqueueClient(this),this.__dataHost=s}}_initializeProtoProperties(s){this.__data=Object.create(s),this.__dataPending=Object.create(s),this.__dataOld={}}_initializeInstanceProperties(s){let o=this[f.READ_ONLY];for(let n in s)(!o||!o[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=s[n])}_addPropertyEffect(s,o,n){this._createPropertyAccessor(s,o==f.READ_ONLY);let a=ye(this,o,!0)[s];a||(a=this[o][s]=[]),a.push(n)}_removePropertyEffect(s,o,n){let a=ye(this,o,!0)[s],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(s,o){let n=this[o];return Boolean(n&&n[s])}_hasReadOnlyEffect(s){return this._hasPropertyEffect(s,f.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,f.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,f.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,f.COMPUTE)}_setPendingPropertyOrPath(s,o,n,a){if(a||I(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=b(this,s);if(s=Li(this,s,o),!s||!super._shouldPropertyChange(s,o,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,o,n))return wo(this,s,o),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[s])return this._setPendingProperty(s,o,n);this[s]=o}return!1}_setUnmanagedPropertyToNode(s,o,n){(n!==s[o]||typeof n=="object")&&(o==="className"&&(s=E(s)),s[o]=n)}_setPendingProperty(s,o,n){let a=this.__dataHasPaths&&me(s),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(s,o,l[s])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),s in this.__dataOld||(this.__dataOld[s]=this.__data[s]),a?this.__dataTemp[s]=o:this.__data[s]=o,this.__dataPending[s]=o,(a||this[f.NOTIFY]&&this[f.NOTIFY][s])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[s]=n),!0):!1}_setProperty(s,o){this._setPendingProperty(s,o,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(s){this.__dataPendingClients=this.__dataPendingClients||[],s!==this&&this.__dataPendingClients.push(s)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let s=this.__dataPendingClients;if(s){this.__dataPendingClients=null;for(let o=0;o<s.length;o++){let n=s[o];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(s,o){for(let n in s)(o||!this[f.READ_ONLY]||!this[f.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,s[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(s,o,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;go(this,o,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(o,n,a),this._flushClients(),pt(this,this[f.REFLECT],o,n,a),pt(this,this[f.OBSERVE],o,n,a),l&&uo(this,l,o,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,o,n){this[f.PROPAGATE]&&pt(this,this[f.PROPAGATE],s,o,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,o,n)}_runEffectsForTemplate(s,o,n,a){const l=(d,c)=>{pt(this,s.propertyEffects,d,n,c,s.nodeList);for(let h=s.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,d,n,c)};s.runEffects?s.runEffects(l,o,a):l(o,a)}linkPaths(s,o){s=ct(s),o=ct(o),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=o}unlinkPaths(s){s=ct(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,o){let n={path:""},a=b(this,s,n);ss(this,a,n.path,o)}get(s,o){return b(o||this,s)}set(s,o,n){n?Li(n,s,o):(!this[f.READ_ONLY]||!this[f.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,o,!0)&&this._invalidateProperties()}push(s,...o){let n={path:""},a=b(this,s,n),l=a.length,d=a.push(...o);return o.length&&ft(this,a,n.path,l,o.length,[]),d}pop(s){let o={path:""},n=b(this,s,o),a=Boolean(n.length),l=n.pop();return a&&ft(this,n,o.path,n.length,0,[l]),l}splice(s,o,n,...a){let l={path:""},d=b(this,s,l);o<0?o=d.length-Math.floor(-o):o&&(o=Math.floor(o));let c;return arguments.length===2?c=d.splice(o):c=d.splice(o,n,...a),(a.length||c.length)&&ft(this,d,l.path,o,a.length,c),c}shift(s){let o={path:""},n=b(this,s,o),a=Boolean(n.length),l=n.shift();return a&&ft(this,n,o.path,0,0,[l]),l}unshift(s,...o){let n={path:""},a=b(this,s,n),l=a.unshift(...o);return o.length&&ft(this,a,n.path,0,o.length,[]),l}notifyPath(s,o){let n;if(arguments.length==1){let a={path:""};o=b(this,s,a),n=a.path}else Array.isArray(s)?n=ct(s):n=s;this._setPendingPropertyOrPath(n,o,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,o){this._addPropertyEffect(s,f.READ_ONLY),o&&(this["_set"+Fo(s)]=function(n){this._setProperty(s,n)})}_createPropertyObserver(s,o,n){let a={property:s,method:o,dynamicFn:Boolean(n)};this._addPropertyEffect(s,f.OBSERVE,{fn:Yi,info:a,trigger:{name:s}}),n&&this._addPropertyEffect(o,f.OBSERVE,{fn:Yi,info:a,trigger:{name:o}})}_createMethodObserver(s,o){let n=Ee(s);if(!n)throw new Error("Malformed observer expression '"+s+"'");Ki(this,n,f.OBSERVE,we,null,o)}_createNotifyingProperty(s){this._addPropertyEffect(s,f.NOTIFY,{fn:fo,info:{eventName:Lt(s)+"-changed",property:s}})}_createReflectedProperty(s){let o=this.constructor.attributeNameForProperty(s);o[0]==="-"?console.warn("Property "+s+" cannot be reflected to attribute "+o+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(s,f.REFLECT,{fn:mo,info:{attrName:o}})}_createComputedProperty(s,o,n){let a=Ee(o);if(!a)throw new Error("Malformed computed expression '"+o+"'");const l=Ki(this,a,f.COMPUTE,Ji,s,n);ye(this,qi)[s]=l}_marshalArgs(s,o,n){const a=this.__data,l=[];for(let d=0,c=s.length;d<c;d++){let{name:h,structured:u,wildcard:p,value:_,literal:v}=s[d];if(!v)if(p){const $=kt(h,o),A=is(a,n,$?o:h);_={path:$?o:h,value:A,base:$?b(a,h):A}}else _=u?is(a,n,h):a[h];if(fe&&!this._overrideLegacyUndefined&&_===void 0&&s.length>1)return ut;l[d]=_}return l}static addPropertyEffect(s,o,n){this.prototype._addPropertyEffect(s,o,n)}static createPropertyObserver(s,o,n){this.prototype._createPropertyObserver(s,o,n)}static createMethodObserver(s,o){this.prototype._createMethodObserver(s,o)}static createNotifyingProperty(s){this.prototype._createNotifyingProperty(s)}static createReadOnlyProperty(s,o){this.prototype._createReadOnlyProperty(s,o)}static createReflectedProperty(s){this.prototype._createReflectedProperty(s)}static createComputedProperty(s,o,n){this.prototype._createComputedProperty(s,o,n)}static bindTemplate(s){return this.prototype._bindTemplate(s)}_bindTemplate(s,o){let n=this.constructor._parseTemplate(s),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(o)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=s._parentTemplateInfo||this.__templateInfo,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(s,o,n){let a=s.hostProps=s.hostProps||{};a[o]=!0;let l=s.propertyEffects=s.propertyEffects||{};(l[o]=l[o]||[]).push(n)}_stampTemplate(s,o){o=o||this._bindTemplate(s,!0),_t.push(this);let n=super._stampTemplate(s,o);if(_t.pop(),o.nodeList=n.nodeList,!o.wasPreBound){let a=o.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=o,xo(this,o),this.__dataClientsReady&&(this._runEffectsForTemplate(o,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(s){const o=s.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=o;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),o.nextSibling=o.previousSibling=null;let d=o.childNodes;for(let c=0;c<d.length;c++){let h=d[c];E(E(h).parentNode).removeChild(h)}}static _parseTemplateNode(s,o,n){let a=t._parseTemplateNode.call(this,s,o,n);if(s.nodeType===Node.TEXT_NODE){let l=this._parseBindings(s.textContent,o);l&&(s.textContent=ts(l)||" ",be(this,o,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(s,o,n,a,l){let d=this._parseBindings(l,o);if(d){let c=a,h="property";co.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let u=ts(d);return u&&h=="attribute"&&(a=="class"&&s.hasAttribute("class")&&(u+=" "+s.getAttribute(a)),s.setAttribute(a,u)),h=="attribute"&&c=="disable-upgrade$"&&s.setAttribute(a,""),s.localName==="input"&&c==="value"&&s.setAttribute(c,""),s.removeAttribute(c),h==="property"&&(a=Ii(a)),be(this,o,n,h,a,d,u),!0}else return t._parseTemplateNodeAttribute.call(this,s,o,n,a,l)}static _parseTemplateNestedTemplate(s,o,n){let a=t._parseTemplateNestedTemplate.call(this,s,o,n);const l=s.parentNode,d=n.templateInfo,c=l.localName==="dom-if",h=l.localName==="dom-repeat";$i&&(c||h)&&(l.removeChild(s),n=n.parentInfo,n.templateInfo=d,n.noted=!0,a=!1);let u=d.hostProps;if(Rr&&c)u&&(o.hostProps=Object.assign(o.hostProps||{},u),$i||(n.parentInfo.noted=!0));else{let p="{";for(let _ in u){let v=[{mode:p,source:_,dependencies:[_],hostProp:!0}];be(this,o,n,"property","_host_"+_,v)}}return a}static _parseBindings(s,o){let n=[],a=0,l;for(;(l=Qi.exec(s))!==null;){l.index>a&&n.push({literal:s.slice(a,l.index)});let d=l[1][0],c=Boolean(l[2]),h=l[3].trim(),u=!1,p="",_=-1;d=="{"&&(_=h.indexOf("::"))>0&&(p=h.substring(_+2),h=h.substring(0,_),u=!0);let v=Ee(h),$=[];if(v){let{args:A,methodName:C}=v;for(let Je=0;Je<A.length;Je++){let Qs=A[Je];Qs.literal||$.push(Qs)}let et=o.dynamicFns;(et&&et[C]||v.static)&&($.push(C),v.dynamicFn=!0)}else $.push(h);n.push({source:h,mode:d,negate:c,customEvent:u,signature:v,dependencies:$,event:p}),a=Qi.lastIndex}if(a&&a<s.length){let d=s.substring(a);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(s,o,n,a,l,d){let c;return o.signature?c=we(s,n,a,l,o.signature):n!=o.source?c=b(s,o.source):d&&me(n)?c=b(s,n):c=s.__data[n],o.negate&&(c=!c),c}}return e}),_t=[];/**
266
272
  @license
267
273
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
268
274
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -270,7 +276,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
270
276
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
271
277
  Code distributed by Google as part of the polymer project is also
272
278
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
273
- */function cn(i){}/**
279
+ */function ja(i){}/**
274
280
  @license
275
281
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
276
282
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -278,7 +284,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
278
284
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
279
285
  Code distributed by Google as part of the polymer project is also
280
286
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
281
- */function Lr(i){const t={};for(let e in i){const r=i[e];t[e]=typeof r=="function"?{type:r}:r}return t}const Ir=g(i=>{const t=Ke(i);function e(o){const n=Object.getPrototypeOf(o);return n.prototype instanceof s?n:null}function r(o){if(!o.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",o))){let n=null;if(o.hasOwnProperty(JSCompiler_renameProperty("properties",o))){const a=o.properties;a&&(n=Lr(a))}o.__ownProperties=n}return o.__ownProperties}class s extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=e(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=r(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=e(this);this.__properties=Object.assign({},n&&n._properties,r(this))}return this.__properties}static typeForProperty(n){const a=this._properties[n];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return s});/**
287
+ */function Vo(i){const t={};for(let e in i){const r=i[e];t[e]=typeof r=="function"?{type:r}:r}return t}const qo=g(i=>{const t=Ui(i);function e(o){const n=Object.getPrototypeOf(o);return n.prototype instanceof s?n:null}function r(o){if(!o.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",o))){let n=null;if(o.hasOwnProperty(JSCompiler_renameProperty("properties",o))){const a=o.properties;a&&(n=Vo(a))}o.__ownProperties=n}return o.__ownProperties}class s extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=e(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=r(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=e(this);this.__properties=Object.assign({},n&&n._properties,r(this))}return this.__properties}static typeForProperty(n){const a=this._properties[n];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return s});/**
282
288
  * @fileoverview
283
289
  * @suppress {checkPrototypalTypes}
284
290
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -288,7 +294,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
288
294
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
289
295
  * Google as part of the polymer project is also subject to an additional IP
290
296
  * rights grant found at http://polymer.github.io/PATENTS.txt
291
- */const Rr="3.5.1",_i=window.ShadyCSS&&window.ShadyCSS.cssBuild,Dr=g(i=>{const t=Ir(Mr(i));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let c in d){let h=d[c];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[c]=h)}}return l.__propertyDefaults}function r(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function s(l,d,c,h){c.computed&&(c.readOnly=!0),c.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,c.computed,h)),c.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!c.computed):c.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),c.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):c.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),c.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):c.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),c.observer&&l._createPropertyObserver(d,c.observer,h[c.observer]),l._addPropertyToAttributeMap(d)}function o(l,d,c,h){if(!_i){const u=d.content.querySelectorAll("style"),f=Ve(d),_=Ms(c),y=d.content.firstElementChild;for(let C=0;C<_.length;C++){let E=_[C];E.textContent=l._processStyleText(E.textContent,h),d.content.insertBefore(E,y)}let P=0;for(let C=0;C<f.length;C++){let E=f[C],G=u[P];G!==E?(E=E.cloneNode(!0),G.parentNode.insertBefore(E,G)):P++,E.textContent=l._processStyleText(E.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,c),xs&&_i&&ys){const u=d.content.querySelectorAll("style");if(u){let f="";Array.from(u).forEach(_=>{f+=_.textContent,_.parentNode.removeChild(_)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(f)}}}function n(l){let d=null;if(l&&(!Ht||vs)&&(d=tt.import(l,"template"),Ht&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class a extends t{static get polymerElementVersion(){return Rr}static _finalizeClass(){t._finalizeClass.call(this);const d=r(this);d&&this.createObservers(d,this._properties),this._prepareTemplate()}static _prepareTemplate(){let d=this.template;d&&(typeof d=="string"?(console.error("template getter must return HTMLTemplateElement"),d=null):ws||(d=d.cloneNode(!0))),this.prototype._template=d}static createProperties(d){for(let c in d)s(this.prototype,c,d[c],d)}static createObservers(d,c){const h=this.prototype;for(let u=0;u<d.length;u++)h._createMethodObserver(d[u],c)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(d){this._template=d}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=Dt(d.url);else{const c=tt.import(this.is);this._importPath=c&&c.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=bs,this.importPath=this.constructor.importPath;let d=e(this.constructor);if(!!d)for(let c in d){let h=d[c];if(this._canApplyPropertyDefault(c)){let u=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(c)?this._setPendingProperty(c,u,!0):this[c]=u}}}_canApplyPropertyDefault(d){return!this.hasOwnProperty(d)}static _processStyleText(d,c){return Rt(d,c)}static _finalizeTemplate(d){const c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;const h=this.importPath,u=h?Q(h):"";o(this,c,d,u),this.prototype._bindTemplate(c)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(d){const c=w(this);if(c.attachShadow)return d?(c.shadowRoot||(c.attachShadow({mode:"open",shadyUpgradeFragment:d}),c.shadowRoot.appendChild(d),this.constructor._styleSheet&&(c.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Es&&window.ShadyDOM&&window.ShadyDOM.flushInitial(c.shadowRoot),c.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d)}resolveUrl(d,c){return!c&&this.importPath&&(c=Q(this.importPath)),Q(d,c)}static _parseTemplateContent(d,c,h){return c.dynamicFns=c.dynamicFns||this._properties,t._parseTemplateContent.call(this,d,c,h)}static _addTemplatePropertyEffect(d,c,h){return Cs&&!(c in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${c}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,d,c,h)}}return a});/**
297
+ */const Yo="3.5.1",rs=window.ShadyCSS&&window.ShadyCSS.cssBuild,Wo=g(i=>{const t=qo(jo(i));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let c in d){let h=d[c];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[c]=h)}}return l.__propertyDefaults}function r(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function s(l,d,c,h){c.computed&&(c.readOnly=!0),c.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,c.computed,h)),c.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!c.computed):c.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),c.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):c.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),c.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):c.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),c.observer&&l._createPropertyObserver(d,c.observer,h[c.observer]),l._addPropertyToAttributeMap(d)}function o(l,d,c,h){if(!rs){const u=d.content.querySelectorAll("style"),p=ki(d),_=Fr(c),v=d.content.firstElementChild;for(let A=0;A<_.length;A++){let C=_[A];C.textContent=l._processStyleText(C.textContent,h),d.content.insertBefore(C,v)}let $=0;for(let A=0;A<p.length;A++){let C=p[A],et=u[$];et!==C?(C=C.cloneNode(!0),et.parentNode.insertBefore(C,et)):$++,C.textContent=l._processStyleText(C.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,c),Lr&&rs&&xr){const u=d.content.querySelectorAll("style");if(u){let p="";Array.from(u).forEach(_=>{p+=_.textContent,_.parentNode.removeChild(_)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(p)}}}function n(l){let d=null;if(l&&(!pe||Tr)&&(d=dt.import(l,"template"),pe&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class a extends t{static get polymerElementVersion(){return Yo}static _finalizeClass(){t._finalizeClass.call(this);const d=r(this);d&&this.createObservers(d,this._properties),this._prepareTemplate()}static _prepareTemplate(){let d=this.template;d&&(typeof d=="string"?(console.error("template getter must return HTMLTemplateElement"),d=null):Or||(d=d.cloneNode(!0))),this.prototype._template=d}static createProperties(d){for(let c in d)s(this.prototype,c,d[c],d)}static createObservers(d,c){const h=this.prototype;for(let u=0;u<d.length;u++)h._createMethodObserver(d[u],c)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(d){this._template=d}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=ue(d.url);else{const c=dt.import(this.is);this._importPath=c&&c.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Sr,this.importPath=this.constructor.importPath;let d=e(this.constructor);if(!!d)for(let c in d){let h=d[c];if(this._canApplyPropertyDefault(c)){let u=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(c)?this._setPendingProperty(c,u,!0):this[c]=u}}}_canApplyPropertyDefault(d){return!this.hasOwnProperty(d)}static _processStyleText(d,c){return he(d,c)}static _finalizeTemplate(d){const c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;const h=this.importPath,u=h?lt(h):"";o(this,c,d,u),this.prototype._bindTemplate(c)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(d){const c=E(this);if(c.attachShadow)return d?(c.shadowRoot||(c.attachShadow({mode:"open",shadyUpgradeFragment:d}),c.shadowRoot.appendChild(d),this.constructor._styleSheet&&(c.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),kr&&window.ShadyDOM&&window.ShadyDOM.flushInitial(c.shadowRoot),c.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d)}resolveUrl(d,c){return!c&&this.importPath&&(c=lt(this.importPath)),lt(d,c)}static _parseTemplateContent(d,c,h){return c.dynamicFns=c.dynamicFns||this._properties,t._parseTemplateContent.call(this,d,c,h)}static _addTemplatePropertyEffect(d,c,h){return Nr&&!(c in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${c}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,d,c,h)}}return a});/**
292
298
  @license
293
299
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
294
300
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -296,7 +302,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
296
302
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
297
303
  Code distributed by Google as part of the polymer project is also
298
304
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
299
- */const mi=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:i=>i});class gi{constructor(t,e){vi(t,e);const r=e.reduce((s,o,n)=>s+yi(o)+t[n+1],t[0]);this.value=r.toString()}toString(){return this.value}}function yi(i){if(i instanceof gi)return i.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${i}`)}function Hr(i){if(i instanceof HTMLTemplateElement)return i.innerHTML;if(i instanceof gi)return yi(i);throw new Error(`non-template value passed to Polymer's html function: ${i}`)}const bi=function(t,...e){vi(t,e);const r=document.createElement("template");let s=e.reduce((o,n,a)=>o+Hr(n)+t[a+1],t[0]);return mi&&(s=mi.createHTML(s)),r.innerHTML=s,r},vi=(i,t)=>{if(!Array.isArray(i)||!Array.isArray(i.raw)||t.length!==i.length-1)throw new TypeError("Invalid call to the html template tag")};/**
305
+ */const os=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:i=>i});class ns{constructor(t,e){ds(t,e);const r=e.reduce((s,o,n)=>s+as(o)+t[n+1],t[0]);this.value=r.toString()}toString(){return this.value}}function as(i){if(i instanceof ns)return i.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${i}`)}function Go(i){if(i instanceof HTMLTemplateElement)return i.innerHTML;if(i instanceof ns)return as(i);throw new Error(`non-template value passed to Polymer's html function: ${i}`)}const ls=function(t,...e){ds(t,e);const r=document.createElement("template");let s=e.reduce((o,n,a)=>o+Go(n)+t[a+1],t[0]);return os&&(s=os.createHTML(s)),r.innerHTML=s,r},ds=(i,t)=>{if(!Array.isArray(i)||!Array.isArray(i.raw)||t.length!==i.length-1)throw new TypeError("Invalid call to the html template tag")};/**
300
306
  @license
301
307
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
302
308
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -304,7 +310,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
304
310
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
305
311
  Code distributed by Google as part of the polymer project is also
306
312
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
307
- */const wi=Dr(HTMLElement);/**
313
+ */const cs=Wo(HTMLElement);/**
308
314
  * @license
309
315
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
310
316
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -312,7 +318,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
312
318
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
313
319
  * Code distributed by Google as part of the polymer project is also
314
320
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
315
- */let Ci=0,Ei=0;const j=[];let Xt=!1;function zr(){Xt=!1;const i=j.length;for(let t=0;t<i;t++){const e=j[t];if(e)try{e()}catch(r){setTimeout(()=>{throw r})}}j.splice(0,i),Ei+=i}const Br={run(i){Xt||(Xt=!0,queueMicrotask(()=>zr())),j.push(i);const t=Ci;return Ci+=1,t},cancel(i){const t=i-Ei;if(t>=0){if(!j[t])throw new Error(`invalid async handle: ${i}`);j[t]=null}}};/**
321
+ */let hs=0,us=0;const G=[];let Ae=!1;function Jo(){Ae=!1;const i=G.length;for(let t=0;t<i;t++){const e=G[t];if(e)try{e()}catch(r){setTimeout(()=>{throw r})}}G.splice(0,i),us+=i}const Ko={run(i){Ae||(Ae=!0,queueMicrotask(()=>Jo())),G.push(i);const t=hs;return hs+=1,t},cancel(i){const t=i-us;if(t>=0){if(!G[t])throw new Error(`invalid async handle: ${i}`);G[t]=null}}};/**
316
322
  @license
317
323
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
318
324
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -320,43 +326,43 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
320
326
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
321
327
  Code distributed by Google as part of the polymer project is also
322
328
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
323
- */const Fr=!1,Ur=i=>i,Wt=typeof document.head.style.touchAction=="string",Kt="__polymerGestures",Zt="__polymerGesturesHandled",Qt="__polymerGesturesTouchAction",Pi=25,Ai=5,jr=2,Vr=["mousedown","mousemove","mouseup","click"],qr=[0,1,4,2],Yr=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch{return!1}}();function te(i){return Vr.indexOf(i)>-1}let xi=!1;(function(){try{const i=Object.defineProperty({},"passive",{get(){xi=!0}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch{}})();function Gr(i){if(!(te(i)||i==="touchend")&&Wt&&xi&&Fr)return{passive:!0}}const Jr=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Xr={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function M(i){const t=i.type;if(!te(t))return!1;if(t==="mousemove"){let r=i.buttons===void 0?1:i.buttons;return i instanceof window.MouseEvent&&!Yr&&(r=qr[i.which]||0),Boolean(r&1)}return(i.button===void 0?0:i.button)===0}function Wr(i){if(i.type==="click"){if(i.detail===0)return!0;const t=O(i);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const e=t.getBoundingClientRect(),r=i.pageX,s=i.pageY;return!(r>=e.left&&r<=e.right&&s>=e.top&&s<=e.bottom)}return!1}const x={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Kr(i){let t="auto";const e=Si(i);for(let r=0,s;r<e.length;r++)if(s=e[r],s[Qt]){t=s[Qt];break}return t}function Ti(i,t,e){i.movefn=t,i.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e)}function V(i){document.removeEventListener("mousemove",i.movefn),document.removeEventListener("mouseup",i.upfn),i.movefn=null,i.upfn=null}const Si=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:i=>i.composedPath&&i.composedPath()||[],ee={},L=[];function Zr(i,t){let e=document.elementFromPoint(i,t),r=e;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const s=r;if(r=r.shadowRoot.elementFromPoint(i,t),s===r)break;r&&(e=r)}return e}function O(i){const t=Si(i);return t.length>0?t[0]:i.target}function Qr(i){const t=i.type,r=i.currentTarget[Kt];if(!r)return;const s=r[t];if(!s)return;if(!i[Zt]&&(i[Zt]={},t.startsWith("touch"))){const n=i.changedTouches[0];if(t==="touchstart"&&i.touches.length===1&&(x.touch.id=n.identifier),x.touch.id!==n.identifier)return;Wt||(t==="touchstart"||t==="touchmove")&&to(i)}const o=i[Zt];if(!o.skip){for(let n=0,a;n<L.length;n++)a=L[n],s[a.name]&&!o[a.name]&&a.flow&&a.flow.start.indexOf(i.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<L.length;n++)a=L[n],s[a.name]&&!o[a.name]&&(o[a.name]=!0,a[t](i))}}function to(i){const t=i.changedTouches[0],e=i.type;if(e==="touchstart")x.touch.x=t.clientX,x.touch.y=t.clientY,x.touch.scrollDecided=!1;else if(e==="touchmove"){if(x.touch.scrollDecided)return;x.touch.scrollDecided=!0;const r=Kr(i);let s=!1;const o=Math.abs(x.touch.x-t.clientX),n=Math.abs(x.touch.y-t.clientY);i.cancelable&&(r==="none"?s=!0:r==="pan-x"?s=n>o:r==="pan-y"&&(s=o>n)),s?i.preventDefault():wt("track")}}function Ni(i,t,e){return ee[t]?(eo(i,t,e),!0):!1}function eo(i,t,e){const r=ee[t],s=r.deps,o=r.name;let n=i[Kt];n||(i[Kt]=n={});for(let a=0,l,d;a<s.length;a++)l=s[a],!(Jr&&te(l)&&l!=="click")&&(d=n[l],d||(n[l]=d={_count:0}),d._count===0&&i.addEventListener(l,Qr,Gr(l)),d[o]=(d[o]||0)+1,d._count=(d._count||0)+1);i.addEventListener(t,e),r.touchAction&&so(i,r.touchAction)}function ie(i){L.push(i),i.emits.forEach(t=>{ee[t]=i})}function io(i){for(let t=0,e;t<L.length;t++){e=L[t];for(let r=0,s;r<e.emits.length;r++)if(s=e.emits[r],s===i)return e}return null}function so(i,t){Wt&&i instanceof HTMLElement&&Br.run(()=>{i.style.touchAction=t}),i[Qt]=t}function se(i,t,e){const r=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=e,Ur(i).dispatchEvent(r),r.defaultPrevented){const s=e.preventer||e.sourceEvent;s&&s.preventDefault&&s.preventDefault()}}function wt(i){const t=io(i);t.info&&(t.info.prevent=!0)}ie({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){V(this.info)},mousedown(i){if(!M(i))return;const t=O(i),e=this,r=o=>{M(o)||(at("up",t,o),V(e.info))},s=o=>{M(o)&&at("up",t,o),V(e.info)};Ti(this.info,r,s),at("down",t,i)},touchstart(i){at("down",O(i),i.changedTouches[0],i)},touchend(i){at("up",O(i),i.changedTouches[0],i)}});function at(i,t,e,r){!t||se(t,i,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:r,prevent(s){return wt(s)}})}ie({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(i){this.moves.length>jr&&this.moves.shift(),this.moves.push(i)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,V(this.info)},mousedown(i){if(!M(i))return;const t=O(i),e=this,r=o=>{const n=o.clientX,a=o.clientY;Oi(e.info,n,a)&&(e.info.state=e.info.started?o.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&wt("tap"),e.info.addMove({x:n,y:a}),M(o)||(e.info.state="end",V(e.info)),t&&re(e.info,t,o),e.info.started=!0)},s=o=>{e.info.started&&r(o),V(e.info)};Ti(this.info,r,s),this.info.x=i.clientX,this.info.y=i.clientY},touchstart(i){const t=i.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(i){const t=O(i),e=i.changedTouches[0],r=e.clientX,s=e.clientY;Oi(this.info,r,s)&&(this.info.state==="start"&&wt("tap"),this.info.addMove({x:r,y:s}),re(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(i){const t=O(i),e=i.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),re(this.info,t,e))}});function Oi(i,t,e){if(i.prevent)return!1;if(i.started)return!0;const r=Math.abs(i.x-t),s=Math.abs(i.y-e);return r>=Ai||s>=Ai}function re(i,t,e){if(!t)return;const r=i.moves[i.moves.length-2],s=i.moves[i.moves.length-1],o=s.x-i.x,n=s.y-i.y;let a,l=0;r&&(a=s.x-r.x,l=s.y-r.y),se(t,"track",{state:i.state,x:e.clientX,y:e.clientY,dx:o,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return Zr(e.clientX,e.clientY)}})}ie({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(i){M(i)&&(this.info.x=i.clientX,this.info.y=i.clientY)},click(i){M(i)&&$i(this.info,i)},touchstart(i){const t=i.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(i){$i(this.info,i.changedTouches[0],i)}});function $i(i,t,e){const r=Math.abs(t.clientX-i.x),s=Math.abs(t.clientY-i.y),o=O(e||t);!o||Xr[o.localName]&&o.hasAttribute("disabled")||(isNaN(r)||isNaN(s)||r<=Pi&&s<=Pi||Wr(t))&&(i.prevent||se(o,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:e}))}/**
329
+ */const Xo=!1,Zo=i=>i,Ce=typeof document.head.style.touchAction=="string",$e="__polymerGestures",Pe="__polymerGesturesHandled",xe="__polymerGesturesTouchAction",ps=25,fs=5,Qo=2,tn=["mousedown","mousemove","mouseup","click"],en=[0,1,4,2],sn=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch{return!1}}();function Se(i){return tn.indexOf(i)>-1}let _s=!1;(function(){try{const i=Object.defineProperty({},"passive",{get(){_s=!0}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch{}})();function rn(i){if(!(Se(i)||i==="touchend")&&Ce&&_s&&Xo)return{passive:!0}}const on=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),nn={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function D(i){const t=i.type;if(!Se(t))return!1;if(t==="mousemove"){let r=i.buttons===void 0?1:i.buttons;return i instanceof window.MouseEvent&&!sn&&(r=en[i.which]||0),Boolean(r&1)}return(i.button===void 0?0:i.button)===0}function an(i){if(i.type==="click"){if(i.detail===0)return!0;const t=O(i);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const e=t.getBoundingClientRect(),r=i.pageX,s=i.pageY;return!(r>=e.left&&r<=e.right&&s>=e.top&&s<=e.bottom)}return!1}const P={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function ln(i){let t="auto";const e=gs(i);for(let r=0,s;r<e.length;r++)if(s=e[r],s[xe]){t=s[xe];break}return t}function ms(i,t,e){i.movefn=t,i.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e)}function J(i){document.removeEventListener("mousemove",i.movefn),document.removeEventListener("mouseup",i.upfn),i.movefn=null,i.upfn=null}const gs=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:i=>i.composedPath&&i.composedPath()||[],Te={},H=[];function dn(i,t){let e=document.elementFromPoint(i,t),r=e;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const s=r;if(r=r.shadowRoot.elementFromPoint(i,t),s===r)break;r&&(e=r)}return e}function O(i){const t=gs(i);return t.length>0?t[0]:i.target}function cn(i){const t=i.type,r=i.currentTarget[$e];if(!r)return;const s=r[t];if(!s)return;if(!i[Pe]&&(i[Pe]={},t.startsWith("touch"))){const n=i.changedTouches[0];if(t==="touchstart"&&i.touches.length===1&&(P.touch.id=n.identifier),P.touch.id!==n.identifier)return;Ce||(t==="touchstart"||t==="touchmove")&&hn(i)}const o=i[Pe];if(!o.skip){for(let n=0,a;n<H.length;n++)a=H[n],s[a.name]&&!o[a.name]&&a.flow&&a.flow.start.indexOf(i.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<H.length;n++)a=H[n],s[a.name]&&!o[a.name]&&(o[a.name]=!0,a[t](i))}}function hn(i){const t=i.changedTouches[0],e=i.type;if(e==="touchstart")P.touch.x=t.clientX,P.touch.y=t.clientY,P.touch.scrollDecided=!1;else if(e==="touchmove"){if(P.touch.scrollDecided)return;P.touch.scrollDecided=!0;const r=ln(i);let s=!1;const o=Math.abs(P.touch.x-t.clientX),n=Math.abs(P.touch.y-t.clientY);i.cancelable&&(r==="none"?s=!0:r==="pan-x"?s=n>o:r==="pan-y"&&(s=o>n)),s?i.preventDefault():Dt("track")}}function ys(i,t,e){return Te[t]?(un(i,t,e),!0):!1}function un(i,t,e){const r=Te[t],s=r.deps,o=r.name;let n=i[$e];n||(i[$e]=n={});for(let a=0,l,d;a<s.length;a++)l=s[a],!(on&&Se(l)&&l!=="click")&&(d=n[l],d||(n[l]=d={_count:0}),d._count===0&&i.addEventListener(l,cn,rn(l)),d[o]=(d[o]||0)+1,d._count=(d._count||0)+1);i.addEventListener(t,e),r.touchAction&&fn(i,r.touchAction)}function Oe(i){H.push(i),i.emits.forEach(t=>{Te[t]=i})}function pn(i){for(let t=0,e;t<H.length;t++){e=H[t];for(let r=0,s;r<e.emits.length;r++)if(s=e.emits[r],s===i)return e}return null}function fn(i,t){Ce&&i instanceof HTMLElement&&Ko.run(()=>{i.style.touchAction=t}),i[xe]=t}function Ne(i,t,e){const r=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=e,Zo(i).dispatchEvent(r),r.defaultPrevented){const s=e.preventer||e.sourceEvent;s&&s.preventDefault&&s.preventDefault()}}function Dt(i){const t=pn(i);t.info&&(t.info.prevent=!0)}Oe({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){J(this.info)},mousedown(i){if(!D(i))return;const t=O(i),e=this,r=o=>{D(o)||(mt("up",t,o),J(e.info))},s=o=>{D(o)&&mt("up",t,o),J(e.info)};ms(this.info,r,s),mt("down",t,i)},touchstart(i){mt("down",O(i),i.changedTouches[0],i)},touchend(i){mt("up",O(i),i.changedTouches[0],i)}});function mt(i,t,e,r){!t||Ne(t,i,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:r,prevent(s){return Dt(s)}})}Oe({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(i){this.moves.length>Qo&&this.moves.shift(),this.moves.push(i)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,J(this.info)},mousedown(i){if(!D(i))return;const t=O(i),e=this,r=o=>{const n=o.clientX,a=o.clientY;vs(e.info,n,a)&&(e.info.state=e.info.started?o.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&Dt("tap"),e.info.addMove({x:n,y:a}),D(o)||(e.info.state="end",J(e.info)),t&&ke(e.info,t,o),e.info.started=!0)},s=o=>{e.info.started&&r(o),J(e.info)};ms(this.info,r,s),this.info.x=i.clientX,this.info.y=i.clientY},touchstart(i){const t=i.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(i){const t=O(i),e=i.changedTouches[0],r=e.clientX,s=e.clientY;vs(this.info,r,s)&&(this.info.state==="start"&&Dt("tap"),this.info.addMove({x:r,y:s}),ke(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(i){const t=O(i),e=i.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),ke(this.info,t,e))}});function vs(i,t,e){if(i.prevent)return!1;if(i.started)return!0;const r=Math.abs(i.x-t),s=Math.abs(i.y-e);return r>=fs||s>=fs}function ke(i,t,e){if(!t)return;const r=i.moves[i.moves.length-2],s=i.moves[i.moves.length-1],o=s.x-i.x,n=s.y-i.y;let a,l=0;r&&(a=s.x-r.x,l=s.y-r.y),Ne(t,"track",{state:i.state,x:e.clientX,y:e.clientY,dx:o,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return dn(e.clientX,e.clientY)}})}Oe({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(i){D(i)&&(this.info.x=i.clientX,this.info.y=i.clientY)},click(i){D(i)&&bs(this.info,i)},touchstart(i){const t=i.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(i){bs(this.info,i.changedTouches[0],i)}});function bs(i,t,e){const r=Math.abs(t.clientX-i.x),s=Math.abs(t.clientY-i.y),o=O(e||t);!o||nn[o.localName]&&o.hasAttribute("disabled")||(isNaN(r)||isNaN(s)||r<=ps&&s<=ps||an(t))&&(i.prevent||Ne(o,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:e}))}/**
324
330
  * @license
325
331
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
326
332
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
327
- */const oe=g(i=>class extends i{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
333
+ */const Me=g(i=>class extends i{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
328
334
  * @license
329
335
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
330
336
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
331
- */const ki=g(i=>class extends i{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
337
+ */const ws=g(i=>class extends i{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
332
338
  * @license
333
339
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
334
340
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
335
- */const ro=i=>class extends oe(ki(i)){get _activeKeys(){return[" "]}ready(){super.ready(),Ni(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),Ni(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",r=>{this._activeKeys.includes(r.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
341
+ */const _n=i=>class extends Me(ws(i)){get _activeKeys(){return[" "]}ready(){super.ready(),ys(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),ys(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",r=>{this._activeKeys.includes(r.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
336
342
  * @license
337
343
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
338
344
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
339
- */let ne=!1;window.addEventListener("keydown",()=>{ne=!0},{capture:!0}),window.addEventListener("mousedown",()=>{ne=!1},{capture:!0});function oo(){return ne}/**
345
+ */let Re=!1;window.addEventListener("keydown",()=>{Re=!0},{capture:!0}),window.addEventListener("mousedown",()=>{Re=!1},{capture:!0});function mn(){return Re}/**
340
346
  * @license
341
347
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
342
348
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
343
- */const Mi=g(i=>class extends i{get _keyboardActive(){return oo()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
349
+ */const Es=g(i=>class extends i{get _keyboardActive(){return mn()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
344
350
  * @license
345
351
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
346
352
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
347
- */const no=i=>class extends oe(i){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,r){super._disabledChanged(e,r),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):r&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
353
+ */const gn=i=>class extends Me(i){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,r){super._disabledChanged(e,r),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):r&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
348
354
  * @license
349
355
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
350
356
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
351
- */const ao=g(i=>class extends Mi(no(i)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){!this.focusElement||this.disabled||(this.focusElement.focus(),this._setFocused(!0))}blur(){!this.focusElement||(this.focusElement.blur(),this._setFocused(!1))}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,r){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):r&&this._removeFocusListeners(r)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,r){super._disabledChanged(e,r),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
357
+ */const yn=g(i=>class extends Es(gn(i)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,r){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):r&&this._removeFocusListeners(r)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,r){super._disabledChanged(e,r),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
352
358
  * @license
353
359
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
354
360
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
355
- */const lo=g(i=>typeof i.prototype.addController=="function"?i:class extends i{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}});/**
361
+ */const vn=g(i=>typeof i.prototype.addController=="function"?i:class extends i{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}});/**
356
362
  * @license
357
363
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
358
364
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
359
- */function Li(i){const t=customElements.get(i.is);if(!t)Object.defineProperty(i,"version",{get(){return"24.3.0-alpha2"}}),customElements.define(i.is,i);else{const e=t.version;e&&i.version&&e===i.version?console.warn(`The component ${i.is} has been loaded twice`):console.error(`Tried to define ${i.is} version ${i.version} when version ${t.version} is already in use. Something will probably break.`)}}const co=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Ct=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function ho(){function i(){return!0}return Ii(i)}function uo(){try{return fo()?!0:po()?Ct?!_o():!ho():!1}catch{return!1}}function fo(){return localStorage.getItem("vaadin.developmentmode.force")}function po(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function _o(){return!!(Ct&&Object.keys(Ct).map(t=>Ct[t]).filter(t=>t.productionMode).length>0)}function Ii(i,t){if(typeof i!="function")return;const e=co.exec(i.toString());if(e)try{i=new Function(e[1])}catch(r){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",r)}return i(t)}window.Vaadin=window.Vaadin||{};const Ri=function(i,t){if(window.Vaadin.developmentMode)return Ii(i,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=uo());function mo(){}const go=function(){if(typeof Ri=="function")return Ri(mo)};/**
365
+ */function As(i){const t=customElements.get(i.is);if(!t)Object.defineProperty(i,"version",{get(){return"24.3.0-alpha2"}}),customElements.define(i.is,i);else{const e=t.version;e&&i.version&&e===i.version?console.warn(`The component ${i.is} has been loaded twice`):console.error(`Tried to define ${i.is} version ${i.version} when version ${t.version} is already in use. Something will probably break.`)}}const bn=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Ht=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function wn(){function i(){return!0}return Cs(i)}function En(){try{return An()?!0:Cn()?Ht?!$n():!wn():!1}catch{return!1}}function An(){return localStorage.getItem("vaadin.developmentmode.force")}function Cn(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function $n(){return!!(Ht&&Object.keys(Ht).map(t=>Ht[t]).filter(t=>t.productionMode).length>0)}function Cs(i,t){if(typeof i!="function")return;const e=bn.exec(i.toString());if(e)try{i=new Function(e[1])}catch(r){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",r)}return i(t)}window.Vaadin=window.Vaadin||{};const $s=function(i,t){if(window.Vaadin.developmentMode)return Cs(i,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=En());function Pn(){}const xn=function(){if(typeof $s=="function")return $s(Pn)};/**
360
366
  * @license
361
367
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
362
368
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -364,7 +370,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
364
370
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
365
371
  * Code distributed by Google as part of the polymer project is also
366
372
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
367
- */const yo={run(i){return window.requestIdleCallback?window.requestIdleCallback(i):window.setTimeout(i,16)},cancel(i){window.cancelIdleCallback?window.cancelIdleCallback(i):window.clearTimeout(i)}};/**
373
+ */const Sn={run(i){return window.requestIdleCallback?window.requestIdleCallback(i):window.setTimeout(i,16)},cancel(i){window.cancelIdleCallback?window.cancelIdleCallback(i):window.clearTimeout(i)}};/**
368
374
  @license
369
375
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
370
376
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -372,35 +378,35 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
372
378
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
373
379
  Code distributed by Google as part of the polymer project is also
374
380
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
375
- */const ae=new Set;class Et{static debounce(t,e,r){return t instanceof Et?t._cancelAsync():t=new Et,t.setConfig(e,r),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,ae.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),ae.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}}function bo(i){ae.add(i)}/**
381
+ */const Le=new Set;class zt{static debounce(t,e,r){return t instanceof zt?t._cancelAsync():t=new zt,t.setConfig(e,r),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,Le.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Le.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}}function Tn(i){Le.add(i)}/**
376
382
  * @license
377
383
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
378
384
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
379
- */const T=[];function le(i,t,e=i.getAttribute("dir")){t?i.setAttribute("dir",t):e!=null&&i.removeAttribute("dir")}function de(){return document.documentElement.getAttribute("dir")}function vo(){const i=de();T.forEach(t=>{le(t,i)})}new MutationObserver(vo).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const wo=i=>class extends i{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),le(this,de(),null))}attributeChangedCallback(e,r,s){if(super.attributeChangedCallback(e,r,s),e!=="dir")return;const o=de(),n=s===o&&T.indexOf(this)===-1,a=!s&&r&&T.indexOf(this)===-1;n||a?(this.__subscribe(),le(this,o,s)):s!==o&&r===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=T.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,r,s){s==="dir"&&r===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,r,s)}_attributeToProperty(e,r,s){e==="dir"&&!r?this.dir="":super._attributeToProperty(e,r,s)}__subscribe(){T.includes(this)||T.push(this)}__unsubscribe(){T.includes(this)&&T.splice(T.indexOf(this),1)}};/**
385
+ */const x=[];function Ie(i,t,e=i.getAttribute("dir")){t?i.setAttribute("dir",t):e!=null&&i.removeAttribute("dir")}function De(){return document.documentElement.getAttribute("dir")}function On(){const i=De();x.forEach(t=>{Ie(t,i)})}new MutationObserver(On).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Nn=i=>class extends i{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),Ie(this,De(),null))}attributeChangedCallback(e,r,s){if(super.attributeChangedCallback(e,r,s),e!=="dir")return;const o=De(),n=s===o&&x.indexOf(this)===-1,a=!s&&r&&x.indexOf(this)===-1;n||a?(this.__subscribe(),Ie(this,o,s)):s!==o&&r===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=x.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,r,s){s==="dir"&&r===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,r,s)}_attributeToProperty(e,r,s){e==="dir"&&!r?this.dir="":super._attributeToProperty(e,r,s)}__subscribe(){x.includes(this)||x.push(this)}__unsubscribe(){x.includes(this)&&x.splice(x.indexOf(this),1)}};/**
380
386
  * @license
381
387
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
382
388
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
383
- */window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){go()};let ce;const Di=new Set,Hi=i=>class extends wo(i){static finalize(){super.finalize();const{is:e}=this;e&&!Di.has(e)&&(window.Vaadin.registrations.push(this),Di.add(e),window.Vaadin.developmentModeCallback&&(ce=Et.debounce(ce,yo,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),bo(ce)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
389
+ */window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){xn()};let He;const Ps=new Set,xs=i=>class extends Nn(i){static finalize(){super.finalize();const{is:e}=this;e&&!Ps.has(e)&&(window.Vaadin.registrations.push(this),Ps.add(e),window.Vaadin.developmentModeCallback&&(He=zt.debounce(He,Sn,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Tn(He)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
384
390
  * @license
385
391
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
386
392
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
387
- */const Co=g(i=>class extends i{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
393
+ */const kn=g(i=>class extends i{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
388
394
  * @license
389
395
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
390
396
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
391
- */function Eo(i){return i.getRootNode().activeElement===i}/**
397
+ */window.addEventListener("keydown",()=>{},{capture:!0}),window.addEventListener("mousedown",()=>{},{capture:!0});function Mn(i){return i.getRootNode().activeElement===i}/**
392
398
  * @license
393
399
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
394
400
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
395
- */const Po=g(i=>class extends i{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((r,s)=>{this._delegateAttribute(r,e[s])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((r,s)=>{this._delegateProperty(r,e[s])})}_delegateAttribute(e,r){!this.stateTarget||(e==="invalid"&&this._delegateAttribute("aria-invalid",r?"true":!1),typeof r=="boolean"?this.stateTarget.toggleAttribute(e,r):r?this.stateTarget.setAttribute(e,r):this.stateTarget.removeAttribute(e))}_delegateProperty(e,r){!this.stateTarget||(this.stateTarget[e]=r)}});/**
401
+ */const Rn=g(i=>class extends i{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((r,s)=>{this._delegateAttribute(r,e[s])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((r,s)=>{this._delegateProperty(r,e[s])})}_delegateAttribute(e,r){!this.stateTarget||(e==="invalid"&&this._delegateAttribute("aria-invalid",r?"true":!1),typeof r=="boolean"?this.stateTarget.toggleAttribute(e,r):r?this.stateTarget.setAttribute(e,r):this.stateTarget.removeAttribute(e))}_delegateProperty(e,r){!this.stateTarget||(this.stateTarget[e]=r)}});/**
396
402
  * @license
397
403
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
398
404
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
399
- */const Ao=g(i=>class extends i{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0}}}constructor(){super(),this._boundOnInput=this._onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}clear(){this.value=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){!this.inputElement||(e!=null?this.inputElement.value=e:this.inputElement.value="")}_inputElementChanged(e,r){e?this._addInputListeners(e):r&&this._removeInputListeners(r)}_onInput(e){this.__userInput=e.isTrusted,this.value=e.target.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,r){this._toggleHasValue(e!==""&&e!=null),!(e===""&&r===void 0)&&(this.__userInput||this._forwardInputValue(e))}});/**
405
+ */const Ln=g(i=>class extends i{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}clear(){this.value=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){!this.inputElement||(e!=null?this.inputElement.value=e:this.inputElement.value="")}_inputElementChanged(e,r){e?this._addInputListeners(e):r&&this._removeInputListeners(r)}_hasInputValueChanged(e,r){(e||r)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const r=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=r.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,r){this._toggleHasValue(this._hasValue),!(e===""&&r===void 0)&&(this.__userInput||this._forwardInputValue(e))}get _hasValue(){return this.value!=null&&this.value!==""}_setHasInputValue(e){const r=e.composedPath()[0];this._hasInputValue=r.value.length>0}});/**
400
406
  * @license
401
407
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
402
408
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
403
- */const xo=g(i=>class extends Po(Co(Ao(i))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(e){const r=e.target;this._toggleChecked(r.checked),Eo(r)||r.focus()}_toggleChecked(e){this.checked=e}});/**
409
+ */const In=g(i=>class extends Rn(kn(Ln(i))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(e){const r=e.target;this._toggleChecked(r.checked),Mn(r)||r.focus()}_toggleChecked(e){this.checked=e}});/**
404
410
  @license
405
411
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
406
412
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -408,7 +414,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
408
414
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
409
415
  Code distributed by Google as part of the polymer project is also
410
416
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
411
- */function lt(i,t,e){return{index:i,removed:t,addedCount:e}}const zi=0,Bi=1,he=2,ue=3;function To(i,t,e,r,s,o){let n=o-s+1,a=e-t+1,l=new Array(n);for(let d=0;d<n;d++)l[d]=new Array(a),l[d][0]=d;for(let d=0;d<a;d++)l[0][d]=d;for(let d=1;d<n;d++)for(let c=1;c<a;c++)if(fe(i[t+c-1],r[s+d-1]))l[d][c]=l[d-1][c-1];else{let h=l[d-1][c]+1,u=l[d][c-1]+1;l[d][c]=h<u?h:u}return l}function So(i){let t=i.length-1,e=i[0].length-1,r=i[t][e],s=[];for(;t>0||e>0;){if(t==0){s.push(he),e--;continue}if(e==0){s.push(ue),t--;continue}let o=i[t-1][e-1],n=i[t-1][e],a=i[t][e-1],l;n<a?l=n<o?n:o:l=a<o?a:o,l==o?(o==r?s.push(zi):(s.push(Bi),r=o),t--,e--):l==n?(s.push(ue),t--,r=n):(s.push(he),e--,r=a)}return s.reverse(),s}function No(i,t,e,r,s,o){let n=0,a=0,l,d=Math.min(e-t,o-s);if(t==0&&s==0&&(n=Oo(i,r,d)),e==i.length&&o==r.length&&(a=$o(i,r,d-n)),t+=n,s+=n,e-=a,o-=a,e-t==0&&o-s==0)return[];if(t==e){for(l=lt(t,[],0);s<o;)l.removed.push(r[s++]);return[l]}else if(s==o)return[lt(t,[],e-t)];let c=So(To(i,t,e,r,s,o));l=void 0;let h=[],u=t,f=s;for(let _=0;_<c.length;_++)switch(c[_]){case zi:l&&(h.push(l),l=void 0),u++,f++;break;case Bi:l||(l=lt(u,[],0)),l.addedCount++,u++,l.removed.push(r[f]),f++;break;case he:l||(l=lt(u,[],0)),l.addedCount++,u++;break;case ue:l||(l=lt(u,[],0)),l.removed.push(r[f]),f++;break}return l&&h.push(l),h}function Oo(i,t,e){for(let r=0;r<e;r++)if(!fe(i[r],t[r]))return r;return e}function $o(i,t,e){let r=i.length,s=t.length,o=0;for(;o<e&&fe(i[--r],t[--s]);)o++;return o}function ko(i,t){return No(i,0,i.length,t,0,t.length)}function fe(i,t){return i===t}/**
417
+ */function gt(i,t,e){return{index:i,removed:t,addedCount:e}}const Ss=0,Ts=1,ze=2,Ue=3;function Dn(i,t,e,r,s,o){let n=o-s+1,a=e-t+1,l=new Array(n);for(let d=0;d<n;d++)l[d]=new Array(a),l[d][0]=d;for(let d=0;d<a;d++)l[0][d]=d;for(let d=1;d<n;d++)for(let c=1;c<a;c++)if(Be(i[t+c-1],r[s+d-1]))l[d][c]=l[d-1][c-1];else{let h=l[d-1][c]+1,u=l[d][c-1]+1;l[d][c]=h<u?h:u}return l}function Hn(i){let t=i.length-1,e=i[0].length-1,r=i[t][e],s=[];for(;t>0||e>0;){if(t==0){s.push(ze),e--;continue}if(e==0){s.push(Ue),t--;continue}let o=i[t-1][e-1],n=i[t-1][e],a=i[t][e-1],l;n<a?l=n<o?n:o:l=a<o?a:o,l==o?(o==r?s.push(Ss):(s.push(Ts),r=o),t--,e--):l==n?(s.push(Ue),t--,r=n):(s.push(ze),e--,r=a)}return s.reverse(),s}function zn(i,t,e,r,s,o){let n=0,a=0,l,d=Math.min(e-t,o-s);if(t==0&&s==0&&(n=Un(i,r,d)),e==i.length&&o==r.length&&(a=Bn(i,r,d-n)),t+=n,s+=n,e-=a,o-=a,e-t==0&&o-s==0)return[];if(t==e){for(l=gt(t,[],0);s<o;)l.removed.push(r[s++]);return[l]}else if(s==o)return[gt(t,[],e-t)];let c=Hn(Dn(i,t,e,r,s,o));l=void 0;let h=[],u=t,p=s;for(let _=0;_<c.length;_++)switch(c[_]){case Ss:l&&(h.push(l),l=void 0),u++,p++;break;case Ts:l||(l=gt(u,[],0)),l.addedCount++,u++,l.removed.push(r[p]),p++;break;case ze:l||(l=gt(u,[],0)),l.addedCount++,u++;break;case Ue:l||(l=gt(u,[],0)),l.removed.push(r[p]),p++;break}return l&&h.push(l),h}function Un(i,t,e){for(let r=0;r<e;r++)if(!Be(i[r],t[r]))return r;return e}function Bn(i,t,e){let r=i.length,s=t.length,o=0;for(;o<e&&Be(i[--r],t[--s]);)o++;return o}function Fn(i,t){return zn(i,0,i.length,t,0,t.length)}function Be(i,t){return i===t}/**
412
418
  @license
413
419
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
414
420
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -416,55 +422,77 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
416
422
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
417
423
  Code distributed by Google as part of the polymer project is also
418
424
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
419
- */function q(i){return i.localName==="slot"}let Mo=class{static getFlattenedNodes(i){const t=w(i);return q(i)?(i=i,t.assignedNodes({flatten:!0})):Array.from(t.childNodes).map(e=>q(e)?(e=e,w(e).assignedNodes({flatten:!0})):[e]).reduce((e,r)=>e.concat(r),[])}constructor(i,t){this._shadyChildrenObserver=null,this._nativeChildrenObserver=null,this._connected=!1,this._target=i,this.callback=t,this._effectiveNodes=[],this._observer=null,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){q(this._target)?this._listenSlots([this._target]):w(this._target).children&&(this._listenSlots(w(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,i=>{this._processMutations(i)}):(this._nativeChildrenObserver=new MutationObserver(i=>{this._processMutations(i)}),this._nativeChildrenObserver.observe(this._target,{childList:!0}))),this._connected=!0}disconnect(){q(this._target)?this._unlistenSlots([this._target]):w(this._target).children&&(this._unlistenSlots(w(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null)),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,We.run(()=>this.flush()))}_processMutations(i){this._processSlotMutations(i),this.flush()}_processSlotMutations(i){if(i)for(let t=0;t<i.length;t++){let e=i[t];e.addedNodes&&this._listenSlots(e.addedNodes),e.removedNodes&&this._unlistenSlots(e.removedNodes)}}flush(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush(),this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords()),this._scheduled=!1;let i={target:this._target,addedNodes:[],removedNodes:[]},t=this.constructor.getFlattenedNodes(this._target),e=ko(t,this._effectiveNodes);for(let s=0,o;s<e.length&&(o=e[s]);s++)for(let n=0,a;n<o.removed.length&&(a=o.removed[n]);n++)i.removedNodes.push(a);for(let s=0,o;s<e.length&&(o=e[s]);s++)for(let n=o.index;n<o.index+o.addedCount;n++)i.addedNodes.push(t[n]);this._effectiveNodes=t;let r=!1;return(i.addedNodes.length||i.removedNodes.length)&&(r=!0,this.callback.call(this._target,i)),r}_listenSlots(i){for(let t=0;t<i.length;t++){let e=i[t];q(e)&&e.addEventListener("slotchange",this._boundSchedule)}}_unlistenSlots(i){for(let t=0;t<i.length;t++){let e=i[t];q(e)&&e.removeEventListener("slotchange",this._boundSchedule)}}};/**
425
+ */function K(i){return i.localName==="slot"}let jn=class{static getFlattenedNodes(i){const t=E(i);return K(i)?(i=i,t.assignedNodes({flatten:!0})):Array.from(t.childNodes).map(e=>K(e)?(e=e,E(e).assignedNodes({flatten:!0})):[e]).reduce((e,r)=>e.concat(r),[])}constructor(i,t){this._shadyChildrenObserver=null,this._nativeChildrenObserver=null,this._connected=!1,this._target=i,this.callback=t,this._effectiveNodes=[],this._observer=null,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){K(this._target)?this._listenSlots([this._target]):E(this._target).children&&(this._listenSlots(E(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,i=>{this._processMutations(i)}):(this._nativeChildrenObserver=new MutationObserver(i=>{this._processMutations(i)}),this._nativeChildrenObserver.observe(this._target,{childList:!0}))),this._connected=!0}disconnect(){K(this._target)?this._unlistenSlots([this._target]):E(this._target).children&&(this._unlistenSlots(E(this._target).children),window.ShadyDOM&&this._shadyChildrenObserver?(window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null)),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,zi.run(()=>this.flush()))}_processMutations(i){this._processSlotMutations(i),this.flush()}_processSlotMutations(i){if(i)for(let t=0;t<i.length;t++){let e=i[t];e.addedNodes&&this._listenSlots(e.addedNodes),e.removedNodes&&this._unlistenSlots(e.removedNodes)}}flush(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush(),this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords()),this._scheduled=!1;let i={target:this._target,addedNodes:[],removedNodes:[]},t=this.constructor.getFlattenedNodes(this._target),e=Fn(t,this._effectiveNodes);for(let s=0,o;s<e.length&&(o=e[s]);s++)for(let n=0,a;n<o.removed.length&&(a=o.removed[n]);n++)i.removedNodes.push(a);for(let s=0,o;s<e.length&&(o=e[s]);s++)for(let n=o.index;n<o.index+o.addedCount;n++)i.addedNodes.push(t[n]);this._effectiveNodes=t;let r=!1;return(i.addedNodes.length||i.removedNodes.length)&&(r=!0,this.callback.call(this._target,i)),r}_listenSlots(i){for(let t=0;t<i.length;t++){let e=i[t];K(e)&&e.addEventListener("slotchange",this._boundSchedule)}}_unlistenSlots(i){for(let t=0;t<i.length;t++){let e=i[t];K(e)&&e.removeEventListener("slotchange",this._boundSchedule)}}};/**
426
+ * @license
427
+ * Copyright (c) 2021 - 2022 Vaadin Ltd.
428
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
429
+ */let Vn=0;function qn(){return Vn++}/**
420
430
  * @license
421
431
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
422
432
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
423
- */class Y extends EventTarget{static generateId(t,e){const r=t||"default",s=`${Ut(r)}Id`;return this[s]=1+this[s]||0,`${r}-${e.localName}-${this[s]}`}constructor(t,e,r,s){super(),this.host=t,this.slotName=e,this.slotFactory=r,this.slotInitializer=s,this.defaultId=Y.generateId(e,t)}hostConnected(){if(!this.initialized){let t=this.getSlotChild();t?(this.node=t,this.initCustomNode(t)):t=this.attachDefaultNode(),this.initNode(t),this.observe(),this.initialized=!0}}attachDefaultNode(){const{host:t,slotName:e,slotFactory:r}=this;let s=this.defaultNode;return!s&&r&&(s=r(t),s instanceof Element&&(e!==""&&s.setAttribute("slot",e),this.node=s,this.defaultNode=s)),s&&t.appendChild(s),s}getSlotChild(){const{slotName:t}=this;return Array.from(this.host.childNodes).find(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&t==="")}initNode(t){const{slotInitializer:e}=this;e&&e(this.host,t)}initCustomNode(t){}teardownNode(t){}observe(){const{slotName:t}=this,e=t===""?"slot:not([name])":`slot[name=${t}]`,r=this.host.shadowRoot.querySelector(e);this.__slotObserver=new Mo(r,s=>{const o=this.node,n=s.addedNodes.find(a=>a!==o);s.removedNodes.length&&s.removedNodes.forEach(a=>{this.teardownNode(a)}),n&&(o&&o.isConnected&&this.host.removeChild(o),this.node=n,n!==this.defaultNode&&(this.initCustomNode(n),this.initNode(n)))})}}/**
433
+ */class X extends EventTarget{static generateId(t,e){return`${t||"default"}-${e.localName}-${qn()}`}constructor(t,e,r,s,o){super(),this.host=t,this.slotName=e,this.slotFactory=r,this.slotInitializer=s,o&&(this.defaultId=X.generateId(e,t))}hostConnected(){if(!this.initialized){let t=this.getSlotChild();t?(this.node=t,this.initCustomNode(t)):t=this.attachDefaultNode(),this.initNode(t),this.observe(),this.initialized=!0}}attachDefaultNode(){const{host:t,slotName:e,slotFactory:r}=this;let s=this.defaultNode;return!s&&r&&(s=r(t),s instanceof Element&&(e!==""&&s.setAttribute("slot",e),this.node=s,this.defaultNode=s)),s&&t.appendChild(s),s}getSlotChild(){const{slotName:t}=this;return Array.from(this.host.childNodes).find(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&t==="")}initNode(t){const{slotInitializer:e}=this;e&&e(this.host,t)}initCustomNode(t){}teardownNode(t){}observe(){const{slotName:t}=this,e=t===""?"slot:not([name])":`slot[name=${t}]`,r=this.host.shadowRoot.querySelector(e);this.__slotObserver=new jn(r,s=>{const o=this.node,n=s.addedNodes.find(a=>a!==o);s.removedNodes.length&&s.removedNodes.forEach(a=>{this.teardownNode(a)}),n&&(o&&o.isConnected&&this.host.removeChild(o),this.node=n,n!==this.defaultNode&&(this.initCustomNode(n),this.initNode(n)))})}}/**
424
434
  * @license
425
435
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
426
436
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
427
- */class Pt extends Y{constructor(t,e){super(t,"input",()=>document.createElement("input"),(r,s)=>{r.value&&s.setAttribute("value",r.value),r.type&&s.setAttribute("type",r.type);const o=Pt._uniqueInputId=1+Pt._uniqueInputId||0;r._inputId=`${r.localName}-${o}`,s.id=r._inputId,typeof e=="function"&&e(s)})}}/**
437
+ */class Yn extends X{constructor(t,e){super(t,"input",()=>document.createElement("input"),(r,s)=>{r.value&&(s.value=r.value),r.type&&s.setAttribute("type",r.type),s.id=this.defaultId,typeof e=="function"&&e(s)},!0)}}/**
428
438
  * @license
429
439
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
430
440
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
431
- */const Fi=g(i=>class extends i{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}});/**
441
+ */const Os=g(i=>class extends i{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}});/**
432
442
  * @license
433
443
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
434
444
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
435
- */class Lo extends Y{constructor(t){super(t,"label",()=>document.createElement("label"),(e,r)=>{this.__updateLabelId(r),this.__updateDefaultLabel(this.label),this.__observeLabel(r)})}get labelId(){return this.node.id}initCustomNode(t){this.__updateLabelId(t);const e=this.__hasLabel(t);this.__toggleHasLabel(e)}teardownNode(t){this.__labelObserver&&this.__labelObserver.disconnect();let e=this.getSlotChild();!e&&t!==this.defaultNode&&(e=this.attachDefaultNode(),this.initNode(e));const r=this.__hasLabel(e);this.__toggleHasLabel(r)}setLabel(t){this.label=t,this.__updateDefaultLabel(t)}__hasLabel(t){return t?t.children.length>0||this.__isNotEmpty(t.textContent):!1}__isNotEmpty(t){return Boolean(t&&t.trim()!=="")}__observeLabel(t){this.__labelObserver=new MutationObserver(e=>{e.forEach(r=>{const s=r.target,o=s===this.node;if(r.type==="attributes")o&&s.id!==this.defaultId&&this.__updateLabelId(s);else if(o||s.parentElement===this.node){const n=this.__hasLabel(this.node);this.__toggleHasLabel(n)}})}),this.__labelObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__toggleHasLabel(t){this.host.toggleAttribute("has-label",t),this.dispatchEvent(new CustomEvent("label-changed",{detail:{hasLabel:t,node:this.node}}))}__updateDefaultLabel(t){if(this.defaultNode&&(this.defaultNode.textContent=t,this.defaultNode===this.node)){const e=this.__isNotEmpty(t);this.__toggleHasLabel(e)}}__updateLabelId(t){t.id||(t.id=this.defaultId)}}/**
445
+ */class Wn extends X{constructor(t){super(t,"label",()=>document.createElement("label"),(e,r)=>{this.__updateLabelId(r),this.__updateDefaultLabel(this.label),this.__observeLabel(r)},!0)}get labelId(){return this.node.id}initCustomNode(t){this.__updateLabelId(t);const e=this.__hasLabel(t);this.__toggleHasLabel(e)}teardownNode(t){this.__labelObserver&&this.__labelObserver.disconnect();let e=this.getSlotChild();!e&&t!==this.defaultNode&&(e=this.attachDefaultNode(),this.initNode(e));const r=this.__hasLabel(e);this.__toggleHasLabel(r)}setLabel(t){this.label=t,this.__updateDefaultLabel(t)}__hasLabel(t){return t?t.children.length>0||this.__isNotEmpty(t.textContent):!1}__isNotEmpty(t){return Boolean(t&&t.trim()!=="")}__observeLabel(t){this.__labelObserver=new MutationObserver(e=>{e.forEach(r=>{const s=r.target,o=s===this.node;if(r.type==="attributes")o&&s.id!==this.defaultId&&this.__updateLabelId(s);else if(o||s.parentElement===this.node){const n=this.__hasLabel(this.node);this.__toggleHasLabel(n)}})}),this.__labelObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__toggleHasLabel(t){this.host.toggleAttribute("has-label",t),this.dispatchEvent(new CustomEvent("label-changed",{detail:{hasLabel:t,node:this.node}}))}__updateDefaultLabel(t){if(this.defaultNode&&(this.defaultNode.textContent=t,this.defaultNode===this.node)){const e=this.__isNotEmpty(t);this.__toggleHasLabel(e)}}__updateLabelId(t){t.id||(t.id=this.defaultId)}}/**
436
446
  * @license
437
447
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
438
448
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
439
- */const Ui=g(i=>class extends Fi(i){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}get _labelId(){return this._labelController.labelId}get _labelNode(){return this._labelController.node}constructor(){super(),this._labelController=new Lo(this),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
449
+ */const Ns=g(i=>class extends Os(i){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}get _labelId(){return this._labelController.labelId}get _labelNode(){return this._labelController.node}constructor(){super(),this._labelController=new Wn(this)}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
440
450
  * @license
441
451
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
442
452
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
443
- */class Io{constructor(t,e){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("label-changed",r=>{this.__initLabel(r.detail.node)}),this.__initLabel(e.node)}__initLabel(t){t&&(t.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&t.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}/**
453
+ */class Gn{constructor(t,e){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("label-changed",r=>{this.__initLabel(r.detail.node)}),this.__initLabel(e.node)}__initLabel(t){t&&(t.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&t.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}/**
444
454
  * @license
445
455
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
446
456
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
447
- */function Ro(i){const t=customElements.get(i.is);if(!t)customElements.define(i.is,i);else{const e=t.version;e&&i.version&&e===i.version?console.warn(`The component ${i.is} has been loaded twice`):console.error(`Tried to define ${i.is} version ${i.version} when version ${t.version} is already in use. Something will probably break.`)}}/**
457
+ */function Jn(i){const t=customElements.get(i.is);if(!t)Object.defineProperty(i,"version",{get(){return"24.3.7"}}),customElements.define(i.is,i);else{const e=t.version;e&&i.version&&e===i.version?console.warn(`The component ${i.is} has been loaded twice`):console.error(`Tried to define ${i.is} version ${i.version} when version ${t.version} is already in use. Something will probably break.`)}}/**
448
458
  * @license
449
459
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
450
460
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
451
- */class Do extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.0"}}Ro(Do);/**
461
+ */class Kn extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}Jn(Kn);/**
462
+ * @license
463
+ * Copyright 2019 Google LLC
464
+ * SPDX-License-Identifier: BSD-3-Clause
465
+ */const Ut=globalThis,Fe=Ut.ShadowRoot&&(Ut.ShadyCSS===void 0||Ut.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,je=Symbol(),ks=new WeakMap;class Ve{constructor(t,e,r){if(this._$cssResult$=!0,r!==je)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Fe&&t===void 0){const r=e!==void 0&&e.length===1;r&&(t=ks.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),r&&ks.set(e,t))}return t}toString(){return this.cssText}}const Xn=i=>new Ve(typeof i=="string"?i:i+"",void 0,je),N=(i,...t)=>{const e=i.length===1?i[0]:t.reduce((r,s,o)=>r+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+i[o+1],i[0]);return new Ve(e,i,je)},Zn=(i,t)=>{if(Fe)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const r=document.createElement("style"),s=Ut.litNonce;s!==void 0&&r.setAttribute("nonce",s),r.textContent=e.cssText,i.appendChild(r)}},Ms=Fe?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const r of t.cssRules)e+=r.cssText;return Xn(e)})(i):i;/**
466
+ * @license
467
+ * Copyright 2017 Google LLC
468
+ * SPDX-License-Identifier: BSD-3-Clause
469
+ */const{is:Qn,defineProperty:ta,getOwnPropertyDescriptor:ea,getOwnPropertyNames:ia,getOwnPropertySymbols:sa,getPrototypeOf:ra}=Object,Bt=globalThis,Rs=Bt.trustedTypes,oa=Rs?Rs.emptyScript:"",na=Bt.reactiveElementPolyfillSupport,yt=(i,t)=>i,qe={toAttribute(i,t){switch(t){case Boolean:i=i?oa:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},Ls=(i,t)=>!Qn(i,t),Is={attribute:!0,type:String,converter:qe,reflect:!1,hasChanged:Ls};Symbol.metadata??=Symbol("metadata"),Bt.litPropertyMetadata??=new WeakMap;class Z extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Is){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const r=Symbol(),s=this.getPropertyDescriptor(t,r,e);s!==void 0&&ta(this.prototype,t,s)}}static getPropertyDescriptor(t,e,r){const{get:s,set:o}=ea(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get(){return s?.call(this)},set(n){const a=s?.call(this);o.call(this,n),this.requestUpdate(t,a,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Is}static _$Ei(){if(this.hasOwnProperty(yt("elementProperties")))return;const t=ra(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(yt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(yt("properties"))){const e=this.properties,r=[...ia(e),...sa(e)];for(const s of r)this.createProperty(s,e[s])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[r,s]of e)this.elementProperties.set(r,s)}this._$Eh=new Map;for(const[e,r]of this.elementProperties){const s=this._$Eu(e,r);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const r=new Set(t.flat(1/0).reverse());for(const s of r)e.unshift(Ms(s))}else t!==void 0&&e.push(Ms(t));return e}static _$Eu(t,e){const r=e.attribute;return r===!1?void 0:typeof r=="string"?r:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const r of e.keys())this.hasOwnProperty(r)&&(t.set(r,this[r]),delete this[r]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Zn(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,r){this._$AK(t,r)}_$EC(t,e){const r=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,r);if(s!==void 0&&r.reflect===!0){const o=(r.converter?.toAttribute!==void 0?r.converter:qe).toAttribute(e,r.type);this._$Em=t,o==null?this.removeAttribute(s):this.setAttribute(s,o),this._$Em=null}}_$AK(t,e){const r=this.constructor,s=r._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const o=r.getPropertyOptions(s),n=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:qe;this._$Em=s,this[s]=n.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,r){if(t!==void 0){if(r??=this.constructor.getPropertyOptions(t),!(r.hasChanged??Ls)(this[t],e))return;this.P(t,e,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,r){this._$AL.has(t)||this._$AL.set(t,e),r.reflect===!0&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[s,o]of this._$Ep)this[s]=o;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[s,o]of r)o.wrapped!==!0||this._$AL.has(s)||this[s]===void 0||this.P(s,this[s],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(r=>r.hostUpdate?.()),this.update(e)):this._$EU()}catch(r){throw t=!1,this._$EU(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),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._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach(e=>this._$EC(e,this[e])),this._$EU()}updated(t){}firstUpdated(t){}}Z.elementStyles=[],Z.shadowRootOptions={mode:"open"},Z[yt("elementProperties")]=new Map,Z[yt("finalized")]=new Map,na?.({ReactiveElement:Z}),(Bt.reactiveElementVersions??=[]).push("2.0.4");/**
470
+ * @license
471
+ * Copyright 2017 Google LLC
472
+ * SPDX-License-Identifier: BSD-3-Clause
473
+ */const Ye=globalThis,Ft=Ye.trustedTypes,Ds=Ft?Ft.createPolicy("lit-html",{createHTML:i=>i}):void 0,Hs="$lit$",k=`lit$${(Math.random()+"").slice(9)}$`,zs="?"+k,aa=`<${zs}>`,z=document,vt=()=>z.createComment(""),bt=i=>i===null||typeof i!="object"&&typeof i!="function",Us=Array.isArray,la=i=>Us(i)||typeof i?.[Symbol.iterator]=="function",We=`[
474
+ \f\r]`,wt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Bs=/-->/g,Fs=/>/g,U=RegExp(`>|${We}(?:([^\\s"'>=/]+)(${We}*=${We}*(?:[^
475
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),js=/'/g,Vs=/"/g,qs=/^(?:script|style|textarea|title)$/i,Q=Symbol.for("lit-noChange"),y=Symbol.for("lit-nothing"),Ys=new WeakMap,B=z.createTreeWalker(z,129);function Ws(i,t){if(!Array.isArray(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ds!==void 0?Ds.createHTML(t):t}const da=(i,t)=>{const e=i.length-1,r=[];let s,o=t===2?"<svg>":"",n=wt;for(let a=0;a<e;a++){const l=i[a];let d,c,h=-1,u=0;for(;u<l.length&&(n.lastIndex=u,c=n.exec(l),c!==null);)u=n.lastIndex,n===wt?c[1]==="!--"?n=Bs:c[1]!==void 0?n=Fs:c[2]!==void 0?(qs.test(c[2])&&(s=RegExp("</"+c[2],"g")),n=U):c[3]!==void 0&&(n=U):n===U?c[0]===">"?(n=s??wt,h=-1):c[1]===void 0?h=-2:(h=n.lastIndex-c[2].length,d=c[1],n=c[3]===void 0?U:c[3]==='"'?Vs:js):n===Vs||n===js?n=U:n===Bs||n===Fs?n=wt:(n=U,s=void 0);const p=n===U&&i[a+1].startsWith("/>")?" ":"";o+=n===wt?l+aa:h>=0?(r.push(d),l.slice(0,h)+Hs+l.slice(h)+k+p):l+k+(h===-2?a:p)}return[Ws(i,o+(i[e]||"<?>")+(t===2?"</svg>":"")),r]};class Et{constructor({strings:t,_$litType$:e},r){let s;this.parts=[];let o=0,n=0;const a=t.length-1,l=this.parts,[d,c]=da(t,e);if(this.el=Et.createElement(d,r),B.currentNode=this.el.content,e===2){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(s=B.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(const h of s.getAttributeNames())if(h.endsWith(Hs)){const u=c[n++],p=s.getAttribute(h).split(k),_=/([.?@])?(.*)/.exec(u);l.push({type:1,index:o,name:_[2],strings:p,ctor:_[1]==="."?ha:_[1]==="?"?ua:_[1]==="@"?pa:jt}),s.removeAttribute(h)}else h.startsWith(k)&&(l.push({type:6,index:o}),s.removeAttribute(h));if(qs.test(s.tagName)){const h=s.textContent.split(k),u=h.length-1;if(u>0){s.textContent=Ft?Ft.emptyScript:"";for(let p=0;p<u;p++)s.append(h[p],vt()),B.nextNode(),l.push({type:2,index:++o});s.append(h[u],vt())}}}else if(s.nodeType===8)if(s.data===zs)l.push({type:2,index:o});else{let h=-1;for(;(h=s.data.indexOf(k,h+1))!==-1;)l.push({type:7,index:o}),h+=k.length-1}o++}}static createElement(t,e){const r=z.createElement("template");return r.innerHTML=t,r}}function tt(i,t,e=i,r){if(t===Q)return t;let s=r!==void 0?e._$Co?.[r]:e._$Cl;const o=bt(t)?void 0:t._$litDirective$;return s?.constructor!==o&&(s?._$AO?.(!1),o===void 0?s=void 0:(s=new o(i),s._$AT(i,e,r)),r!==void 0?(e._$Co??=[])[r]=s:e._$Cl=s),s!==void 0&&(t=tt(i,s._$AS(i,t.values),s,r)),t}class ca{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:r}=this._$AD,s=(t?.creationScope??z).importNode(e,!0);B.currentNode=s;let o=B.nextNode(),n=0,a=0,l=r[0];for(;l!==void 0;){if(n===l.index){let d;l.type===2?d=new At(o,o.nextSibling,this,t):l.type===1?d=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(d=new fa(o,this,t)),this._$AV.push(d),l=r[++a]}n!==l?.index&&(o=B.nextNode(),n++)}return B.currentNode=z,s}p(t){let e=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(t,r,e),e+=r.strings.length-2):r._$AI(t[e])),e++}}class At{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,r,s){this.type=2,this._$AH=y,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=r,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=tt(this,t,e),bt(t)?t===y||t==null||t===""?(this._$AH!==y&&this._$AR(),this._$AH=y):t!==this._$AH&&t!==Q&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):la(t)?this.k(t):this._(t)}S(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}_(t){this._$AH!==y&&bt(this._$AH)?this._$AA.nextSibling.data=t:this.T(z.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:r}=t,s=typeof r=="number"?this._$AC(t):(r.el===void 0&&(r.el=Et.createElement(Ws(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===s)this._$AH.p(e);else{const o=new ca(s,this),n=o.u(this.options);o.p(e),this.T(n),this._$AH=o}}_$AC(t){let e=Ys.get(t.strings);return e===void 0&&Ys.set(t.strings,e=new Et(t)),e}k(t){Us(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let r,s=0;for(const o of t)s===e.length?e.push(r=new At(this.S(vt()),this.S(vt()),this,this.options)):r=e[s],r._$AI(o),s++;s<e.length&&(this._$AR(r&&r._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}}class jt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,r,s,o){this.type=1,this._$AH=y,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=y}_$AI(t,e=this,r,s){const o=this.strings;let n=!1;if(o===void 0)t=tt(this,t,e,0),n=!bt(t)||t!==this._$AH&&t!==Q,n&&(this._$AH=t);else{const a=t;let l,d;for(t=o[0],l=0;l<o.length-1;l++)d=tt(this,a[r+l],e,l),d===Q&&(d=this._$AH[l]),n||=!bt(d)||d!==this._$AH[l],d===y?t=y:t!==y&&(t+=(d??"")+o[l+1]),this._$AH[l]=d}n&&!s&&this.j(t)}j(t){t===y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ha extends jt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===y?void 0:t}}class ua extends jt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==y)}}class pa extends jt{constructor(t,e,r,s,o){super(t,e,r,s,o),this.type=5}_$AI(t,e=this){if((t=tt(this,t,e,0)??y)===Q)return;const r=this._$AH,s=t===y&&r!==y||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,o=t!==y&&(r===y||s);s&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class fa{constructor(t,e,r){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(t){tt(this,t)}}const _a=Ye.litHtmlPolyfillSupport;_a?.(Et,At),(Ye.litHtmlVersions??=[]).push("3.1.2");const ma=(i,t,e)=>{const r=e?.renderBefore??t;let s=r._$litPart$;if(s===void 0){const o=e?.renderBefore??null;r._$litPart$=s=new At(t.insertBefore(vt(),o),o,void 0,e??{})}return s._$AI(i),s};/**
476
+ * @license
477
+ * Copyright 2017 Google LLC
478
+ * SPDX-License-Identifier: BSD-3-Clause
479
+ */class Vt extends Z{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ma(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Q}}Vt._$litElement$=!0,Vt.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Vt});const ga=globalThis.litElementPolyfillSupport;ga?.({LitElement:Vt}),(globalThis.litElementVersions??=[]).push("4.0.4");/**
452
480
  * @license
453
481
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
454
482
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
455
- */const Ho=[];function zo(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function Bo(i){return zo(customElements.get(i))}function Fo(i=[]){return[i].flat(1/0).filter(t=>t instanceof dt?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function pe(i,t,e={}){i&&Bo(i)&&console.warn(`The custom element definition for "${i}"
483
+ */const ya=[];function va(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function ba(i){return va(customElements.get(i))}function wa(i=[]){return[i].flat(1/0).filter(t=>t instanceof Ve?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Ge(i,t,e={}){i&&ba(i)&&console.warn(`The custom element definition for "${i}"
456
484
  was finalized before a style module was registered.
457
485
  Make sure to add component specific style modules before
458
- importing the corresponding custom element.`),t=Fo(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,t,e):Ho.push({themeFor:i,styles:t,include:e.include,moduleId:e.moduleId})}/**
486
+ importing the corresponding custom element.`),t=wa(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,t,e):ya.push({themeFor:i,styles:t,include:e.include,moduleId:e.moduleId})}/**
459
487
  * @license
460
488
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
461
489
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
462
- */const Uo=(i,...t)=>{const e=document.createElement("style");e.id=i,e.textContent=t.map(r=>r.toString()).join(`
463
- `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e)},At=(i,...t)=>{Uo(`lumo-${i}`,t)};/**
490
+ */const Ea=(i,...t)=>{const e=document.createElement("style");e.id=i,e.textContent=t.map(r=>r.toString()).join(`
491
+ `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e)},qt=(i,...t)=>{Ea(`lumo-${i}`,t)};/**
464
492
  * @license
465
493
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
466
494
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
467
- */const jo=A`
495
+ */const Aa=N`
468
496
  :host {
469
497
  /* Base (background) */
470
498
  --lumo-base-color: #fff;
@@ -549,7 +577,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
549
577
  --lumo-disabled-text-color: GrayText;
550
578
  }
551
579
  }
552
- `;At("color-props",jo);const Vo=A`
580
+ `;qt("color-props",Aa);const Ca=N`
553
581
  [theme~='dark'] {
554
582
  /* Base (background) */
555
583
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -664,11 +692,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
664
692
  background-color: var(--lumo-contrast-10pct);
665
693
  border-radius: var(--lumo-border-radius-m);
666
694
  }
667
- `;pe("",Vo,{moduleId:"lumo-color"});/**
695
+ `;Ge("",Ca,{moduleId:"lumo-color"});/**
668
696
  * @license
669
697
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
670
698
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
671
- */const qo=A`
699
+ */const $a=N`
672
700
  :host {
673
701
  /* Square */
674
702
  --lumo-space-xs: 0.25rem;
@@ -691,11 +719,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
691
719
  --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
692
720
  --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
693
721
  }
694
- `;At("spacing-props",qo);/**
722
+ `;qt("spacing-props",$a);/**
695
723
  * @license
696
724
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
697
725
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
698
- */const Yo=A`
726
+ */const Pa=N`
699
727
  :host {
700
728
  /* Border radius */
701
729
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -712,17 +740,88 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
712
740
  /* Clickable element cursor */
713
741
  --lumo-clickable-cursor: default;
714
742
  }
715
- `;A`
743
+ `;N`
716
744
  html {
745
+ /* Button */
746
+ --vaadin-button-background: var(--lumo-contrast-5pct);
747
+ --vaadin-button-border: none;
748
+ --vaadin-button-border-radius: var(--lumo-border-radius-m);
749
+ --vaadin-button-font-size: var(--lumo-font-size-m);
750
+ --vaadin-button-font-weight: 500;
751
+ --vaadin-button-height: var(--lumo-size-m);
752
+ --vaadin-button-margin: var(--lumo-space-xs) 0;
753
+ --vaadin-button-min-width: calc(var(--vaadin-button-height) * 2);
754
+ --vaadin-button-padding: 0 calc(var(--vaadin-button-height) / 3 + var(--lumo-border-radius-m) / 2);
755
+ --vaadin-button-text-color: var(--lumo-primary-text-color);
756
+ --vaadin-button-primary-background: var(--lumo-primary-color);
757
+ --vaadin-button-primary-border: none;
758
+ --vaadin-button-primary-font-weight: 600;
759
+ --vaadin-button-primary-text-color: var(--lumo-primary-contrast-color);
760
+ --vaadin-button-tertiary-background: transparent !important;
761
+ --vaadin-button-tertiary-text-color: var(--lumo-primary-text-color);
762
+ --vaadin-button-tertiary-font-weight: 500;
763
+ --vaadin-button-tertiary-padding: 0 calc(var(--vaadin-button-height) / 6);
764
+ /* Checkbox */
765
+ --vaadin-checkbox-background: var(--lumo-contrast-20pct);
766
+ --vaadin-checkbox-background-hover: var(--lumo-contrast-30pct);
767
+ --vaadin-checkbox-border-radius: var(--lumo-border-radius-s);
768
+ --vaadin-checkbox-checkmark-char: var(--lumo-icons-checkmark);
769
+ --vaadin-checkbox-checkmark-char-indeterminate: '';
770
+ --vaadin-checkbox-checkmark-color: var(--lumo-primary-contrast-color);
771
+ --vaadin-checkbox-checkmark-size: calc(var(--vaadin-checkbox-size) + 2px);
772
+ --vaadin-checkbox-label-color: var(--lumo-body-text-color);
773
+ --vaadin-checkbox-label-font-size: var(--lumo-font-size-m);
774
+ --vaadin-checkbox-label-padding: var(--lumo-space-xs) var(--lumo-space-s) var(--lumo-space-xs) var(--lumo-space-xs);
717
775
  --vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
776
+ /* Radio button */
777
+ --vaadin-radio-button-background: var(--lumo-contrast-20pct);
778
+ --vaadin-radio-button-background-hover: var(--lumo-contrast-30pct);
779
+ --vaadin-radio-button-dot-color: var(--lumo-primary-contrast-color);
780
+ --vaadin-radio-button-dot-size: 3px;
781
+ --vaadin-radio-button-label-color: var(--lumo-body-text-color);
782
+ --vaadin-radio-button-label-font-size: var(--lumo-font-size-m);
783
+ --vaadin-radio-button-label-padding: var(--lumo-space-xs) var(--lumo-space-s) var(--lumo-space-xs)
784
+ var(--lumo-space-xs);
718
785
  --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
786
+ --vaadin-selection-color: var(--lumo-primary-color);
787
+ --vaadin-selection-color-text: var(--lumo-primary-text-color);
719
788
  --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
789
+ --vaadin-focus-ring-color: var(--lumo-primary-color-50pct);
790
+ --vaadin-focus-ring-width: 2px;
791
+ /* Label */
792
+ --vaadin-input-field-label-color: var(--lumo-secondary-text-color);
793
+ --vaadin-input-field-focused-label-color: var(--lumo-primary-text-color);
794
+ --vaadin-input-field-hovered-label-color: var(--lumo-body-text-color);
795
+ --vaadin-input-field-label-font-size: var(--lumo-font-size-s);
796
+ --vaadin-input-field-label-font-weight: 500;
797
+ /* Helper */
798
+ --vaadin-input-field-helper-color: var(--lumo-secondary-text-color);
799
+ --vaadin-input-field-helper-font-size: var(--lumo-font-size-xs);
800
+ --vaadin-input-field-helper-font-weight: 400;
801
+ --vaadin-input-field-helper-spacing: 0.4em;
802
+ /* Error message */
803
+ --vaadin-input-field-error-color: var(--lumo-error-text-color);
804
+ --vaadin-input-field-error-font-size: var(--lumo-font-size-xs);
805
+ --vaadin-input-field-error-font-weight: 400;
806
+ /* Input field */
807
+ --vaadin-input-field-background: var(--lumo-contrast-10pct);
808
+ --vaadin-input-field-icon-color: var(--lumo-contrast-60pct);
809
+ --vaadin-input-field-icon-size: var(--lumo-icon-size-m);
810
+ --vaadin-input-field-invalid-background: var(--lumo-error-color-10pct);
811
+ --vaadin-input-field-invalid-hover-highlight: var(--lumo-error-color-50pct);
812
+ --vaadin-input-field-height: var(--lumo-size-m);
813
+ --vaadin-input-field-hover-highlight: var(--lumo-contrast-50pct);
814
+ --vaadin-input-field-placeholder-color: var(--lumo-secondary-text-color);
815
+ --vaadin-input-field-readonly-border: 1px dashed var(--lumo-contrast-30pct);
816
+ --vaadin-input-field-value-color: var(--lumo-body-text-color);
817
+ --vaadin-input-field-value-font-size: var(--lumo-font-size-m);
818
+ --vaadin-input-field-value-font-weight: 400;
720
819
  }
721
- `,At("style-props",Yo);/**
820
+ `,qt("style-props",Pa);/**
722
821
  * @license
723
822
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
724
823
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
725
- */const Go=A`
824
+ */const xa=N`
726
825
  :host {
727
826
  /* prettier-ignore */
728
827
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -742,7 +841,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
742
841
  --lumo-line-height-s: 1.375;
743
842
  --lumo-line-height-m: 1.625;
744
843
  }
745
- `,Jo=A`
844
+ `,Sa=N`
746
845
  body,
747
846
  :host {
748
847
  font-family: var(--lumo-font-family);
@@ -834,22 +933,22 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
834
933
  border-left: none;
835
934
  border-right: 2px solid var(--lumo-contrast-30pct);
836
935
  }
837
- `;pe("",Jo,{moduleId:"lumo-typography"}),At("typography-props",Go);/**
936
+ `;Ge("",Sa,{moduleId:"lumo-typography"}),qt("typography-props",xa);/**
838
937
  * @license
839
938
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
840
939
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
841
- */const ji=A`
940
+ */const Gs=N`
842
941
  [part='label'] {
843
942
  align-self: flex-start;
844
- color: var(--lumo-secondary-text-color);
845
- font-weight: 500;
846
- font-size: var(--lumo-font-size-s);
943
+ color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
944
+ font-weight: var(--vaadin-input-field-label-font-weight, 500);
945
+ font-size: var(--vaadin-input-field-label-font-size, var(--lumo-font-size-s));
847
946
  margin-left: calc(var(--lumo-border-radius-m) / 4);
848
947
  transition: color 0.2s;
849
948
  line-height: 1;
850
949
  padding-right: 1em;
851
950
  padding-bottom: 0.5em;
852
- /* As a workaround for diacritics being cut off, add a top padding and a
951
+ /* As a workaround for diacritics being cut off, add a top padding and a
853
952
  negative margin to compensate */
854
953
  padding-top: 0.25em;
855
954
  margin-top: -0.25em;
@@ -861,6 +960,21 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
861
960
  box-sizing: border-box;
862
961
  }
863
962
 
963
+ :host([focused]:not([readonly])) [part='label'] {
964
+ color: var(--vaadin-input-field-focused-label-color, var(--lumo-primary-text-color));
965
+ }
966
+
967
+ :host(:hover:not([readonly]):not([focused])) [part='label'] {
968
+ color: var(--vaadin-input-field-hovered-label-color, var(--lumo-body-text-color));
969
+ }
970
+
971
+ /* Touch device adjustment */
972
+ @media (pointer: coarse) {
973
+ :host(:hover:not([readonly]):not([focused])) [part='label'] {
974
+ color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
975
+ }
976
+ }
977
+
864
978
  :host([has-label])::before {
865
979
  margin-top: calc(var(--lumo-font-size-s) * 1.5);
866
980
  }
@@ -893,9 +1007,10 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
893
1007
 
894
1008
  [part='error-message'] {
895
1009
  margin-left: calc(var(--lumo-border-radius-m) / 4);
896
- font-size: var(--lumo-font-size-xs);
1010
+ font-size: var(--vaadin-input-field-error-font-size, var(--lumo-font-size-xs));
897
1011
  line-height: var(--lumo-line-height-xs);
898
- color: var(--lumo-error-text-color);
1012
+ font-weight: var(--vaadin-input-field-error-font-weight, 400);
1013
+ color: var(--vaadin-input-field-error-color, var(--lumo-error-text-color));
899
1014
  will-change: max-height;
900
1015
  transition: 0.4s max-height;
901
1016
  max-height: 5em;
@@ -934,7 +1049,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
934
1049
  margin-left: 0;
935
1050
  margin-right: calc(var(--lumo-border-radius-m) / 4);
936
1051
  }
937
- `;pe("",ji,{moduleId:"lumo-required-field"});const Xo=A`
1052
+ `;Ge("",Gs,{moduleId:"lumo-required-field"});const Ta=fi`
938
1053
  :host {
939
1054
  color: var(--lumo-body-text-color);
940
1055
  font-size: var(--lumo-font-size-m);
@@ -972,51 +1087,51 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
972
1087
  color: var(--lumo-secondary-text-color);
973
1088
  }
974
1089
  }
975
- `;Me("cas-radio-button-group",[ji,Xo],{moduleId:"lumo-radio-group"});/**
1090
+ `;wi("cas-radio-button-group",[Gs,Ta],{moduleId:"lumo-radio-group"});/**
976
1091
  * @license
977
1092
  * Copyright (c) 2023 Vaadin Ltd.
978
1093
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
979
- */class Vi{constructor(t,e){this.slot=t,this.callback=e,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){!this._connected||(this._scheduled=!1,this._processNodes())}_processNodes(){const t=this.slot.assignedNodes({flatten:!0});let e=[];const r=[],s=[];t.length&&(e=t.filter(o=>!this._storedNodes.includes(o))),this._storedNodes.length&&this._storedNodes.forEach((o,n)=>{const a=t.indexOf(o);a===-1?r.push(o):a!==n&&s.push(o)}),(e.length||r.length||s.length)&&this.callback({addedNodes:e,movedNodes:s,removedNodes:r}),this._storedNodes=t}}/**
1094
+ */class Js{constructor(t,e){this.slot=t,this.callback=e,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){!this._connected||(this._scheduled=!1,this._processNodes())}_processNodes(){const t=this.slot.assignedNodes({flatten:!0});let e=[];const r=[],s=[];t.length&&(e=t.filter(o=>!this._storedNodes.includes(o))),this._storedNodes.length&&this._storedNodes.forEach((o,n)=>{const a=t.indexOf(o);a===-1?r.push(o):a!==n&&s.push(o)}),(e.length||r.length||s.length)&&this.callback({addedNodes:e,movedNodes:s,removedNodes:r}),this._storedNodes=t}}/**
980
1095
  * @license
981
1096
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
982
1097
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
983
- */function Wo(i){return i.nodeType===Node.TEXT_NODE&&i.textContent.trim()===""}/**
1098
+ */function Oa(i){return i.nodeType===Node.TEXT_NODE&&i.textContent.trim()===""}/**
984
1099
  * @license
985
1100
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
986
1101
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
987
- */let Ko=0;function qi(){return Ko++}/**
1102
+ */let Na=0;function Ks(){return Na++}/**
988
1103
  * @license
989
1104
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
990
1105
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
991
- */class Zo extends EventTarget{static generateId(t,e){return`${e||"default"}-${t.localName}-${qi()}`}constructor(t,e,r,s={}){super();const{initializer:o,multiple:n,observe:a,useUniqueId:l}=s;this.host=t,this.slotName=e,this.tagName=r,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=o,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(t,e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=t,t.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){const{host:t,slotName:e,tagName:r}=this;let s=this.defaultNode;return!s&&r&&(s=document.createElement(r),s instanceof Element&&(e!==""&&s.setAttribute("slot",e),this.node=s,this.defaultNode=s)),s&&t.appendChild(s),s}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&t==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,e=t===""?"slot:not([name])":`slot[name=${t}]`,r=this.host.shadowRoot.querySelector(e);this.__slotObserver=new Vi(r,({addedNodes:s,removedNodes:o})=>{const n=this.multiple?this.nodes:[this.node],a=s.filter(l=>!Wo(l)&&!n.includes(l));o.length&&(this.nodes=n.filter(l=>!o.includes(l)),o.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)))})}}/**
1106
+ */class ka extends EventTarget{static generateId(t,e){return`${e||"default"}-${t.localName}-${Ks()}`}constructor(t,e,r,s={}){super();const{initializer:o,multiple:n,observe:a,useUniqueId:l}=s;this.host=t,this.slotName=e,this.tagName=r,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=o,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(t,e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=t,t.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){const{host:t,slotName:e,tagName:r}=this;let s=this.defaultNode;return!s&&r&&(s=document.createElement(r),s instanceof Element&&(e!==""&&s.setAttribute("slot",e),this.node=s,this.defaultNode=s)),s&&t.appendChild(s),s}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&t==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,e=t===""?"slot:not([name])":`slot[name=${t}]`,r=this.host.shadowRoot.querySelector(e);this.__slotObserver=new Js(r,({addedNodes:s,removedNodes:o})=>{const n=this.multiple?this.nodes:[this.node],a=s.filter(l=>!Oa(l)&&!n.includes(l));o.length&&(this.nodes=n.filter(l=>!o.includes(l)),o.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)))})}}/**
992
1107
  * @license
993
1108
  * Copyright (c) 2022 - 2023 Vaadin Ltd.
994
1109
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
995
- */class Qo extends Zo{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,this.ariaTarget!==void 0&&(t.ariaTarget=this.ariaTarget),this.context!==void 0&&(t.context=this.context),this.manual!==void 0&&(t.manual=this.manual),this.opened!==void 0&&(t.opened=this.opened),this.position!==void 0&&(t._position=this.position),this.shouldShow!==void 0&&(t.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;const e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;const e=this.node;e&&(e.manual=t)}setOpened(t){this.opened=t;const e=this.node;e&&(e.opened=t)}setPosition(t){this.position=t;const e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;const e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;const e=this.node;e&&(e.target=t)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
1110
+ */class Ma extends ka{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,this.ariaTarget!==void 0&&(t.ariaTarget=this.ariaTarget),this.context!==void 0&&(t.context=this.context),this.manual!==void 0&&(t.manual=this.manual),this.opened!==void 0&&(t.opened=this.opened),this.position!==void 0&&(t._position=this.position),this.shouldShow!==void 0&&(t.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;const e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;const e=this.node;e&&(e.manual=t)}setOpened(t){this.opened=t;const e=this.node;e&&(e.opened=t)}setPosition(t){this.position=t;const e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;const e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;const e=this.node;e&&(e.target=t)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
996
1111
  * @license
997
1112
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
998
1113
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
999
- */class tn extends Y{constructor(t){super(t,"error-message",()=>document.createElement("div"),(e,r)=>{this.__updateErrorId(r),this.__updateHasError()})}get errorId(){return this.node&&this.node.id}setErrorMessage(t){this.errorMessage=t,this.__updateHasError()}setInvalid(t){this.invalid=t,this.__updateHasError()}initCustomNode(t){this.__updateErrorId(t),t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),this.__updateHasError()}teardownNode(t){let e=this.getSlotChild();!e&&t!==this.defaultNode&&(e=this.attachDefaultNode(),this.initNode(e)),this.__updateHasError()}__isNotEmpty(t){return Boolean(t&&t.trim()!=="")}__updateHasError(){const t=this.node,e=Boolean(this.invalid&&this.__isNotEmpty(this.errorMessage));t&&(t.textContent=e?this.errorMessage:"",t.hidden=!e,e?t.setAttribute("role","alert"):t.removeAttribute("role")),this.host.toggleAttribute("has-error-message",e)}__updateErrorId(t){t.id||(t.id=this.defaultId)}}/**
1114
+ */class Ra extends X{constructor(t){super(t,"error-message",()=>document.createElement("div"),(e,r)=>{this.__updateErrorId(r),this.__updateHasError()},!0)}get errorId(){return this.node&&this.node.id}setErrorMessage(t){this.errorMessage=t,this.__updateHasError()}setInvalid(t){this.invalid=t,this.__updateHasError()}initCustomNode(t){this.__updateErrorId(t),t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),this.__updateHasError()}teardownNode(t){let e=this.getSlotChild();!e&&t!==this.defaultNode&&(e=this.attachDefaultNode(),this.initNode(e)),this.__updateHasError()}__isNotEmpty(t){return Boolean(t&&t.trim()!=="")}__updateHasError(){const t=this.node,e=Boolean(this.invalid&&this.__isNotEmpty(this.errorMessage));t&&(t.textContent=e?this.errorMessage:"",t.hidden=!e,e?t.setAttribute("role","alert"):t.removeAttribute("role")),this.host.toggleAttribute("has-error-message",e)}__updateErrorId(t){t.id||(t.id=this.defaultId)}}/**
1000
1115
  * @license
1001
1116
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
1002
1117
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1003
- */function Yi(i){return i?new Set(i.split(" ")):new Set}function Gi(i){return[...i].join(" ")}function en(i,t,e){const r=Yi(i.getAttribute(t));r.add(e),i.setAttribute(t,Gi(r))}function sn(i,t,e){const r=Yi(i.getAttribute(t));if(r.delete(e),r.size===0){i.removeAttribute(t);return}i.setAttribute(t,Gi(r))}/**
1118
+ */function Xs(i){return i?new Set(i.split(" ")):new Set}function Zs(i){return[...i].join(" ")}function La(i,t,e){const r=Xs(i.getAttribute(t));r.add(e),i.setAttribute(t,Zs(r))}function Ia(i,t,e){const r=Xs(i.getAttribute(t));if(r.delete(e),r.size===0){i.removeAttribute(t);return}i.setAttribute(t,Zs(r))}/**
1004
1119
  * @license
1005
1120
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
1006
1121
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1007
- */class rn{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId)}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t}setLabelId(t){this.__setLabelIdToAriaAttribute(t,this.__labelId),this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}get __isGroupField(){return this.__target===this.host}__setLabelIdToAriaAttribute(t,e){this.__setAriaAttributeId("aria-labelledby",t,e)}__setErrorIdToAriaAttribute(t,e){this.__isGroupField?this.__setAriaAttributeId("aria-labelledby",t,e):this.__setAriaAttributeId("aria-describedby",t,e)}__setHelperIdToAriaAttribute(t,e){this.__isGroupField?this.__setAriaAttributeId("aria-labelledby",t,e):this.__setAriaAttributeId("aria-describedby",t,e)}__setAriaRequiredAttribute(t){!this.__target||["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required"))}__setAriaAttributeId(t,e,r){!this.__target||(r&&sn(this.__target,t,r),e&&en(this.__target,t,e))}}/**
1122
+ */class Da{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId)}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t}setLabelId(t){this.__setLabelIdToAriaAttribute(t,this.__labelId),this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}get __isGroupField(){return this.__target===this.host}__setLabelIdToAriaAttribute(t,e){this.__setAriaAttributeId("aria-labelledby",t,e)}__setErrorIdToAriaAttribute(t,e){this.__isGroupField?this.__setAriaAttributeId("aria-labelledby",t,e):this.__setAriaAttributeId("aria-describedby",t,e)}__setHelperIdToAriaAttribute(t,e){this.__isGroupField?this.__setAriaAttributeId("aria-labelledby",t,e):this.__setAriaAttributeId("aria-describedby",t,e)}__setAriaRequiredAttribute(t){!this.__target||["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required"))}__setAriaAttributeId(t,e,r){!this.__target||(r&&Ia(this.__target,t,r),e&&La(this.__target,t,e))}}/**
1008
1123
  * @license
1009
- * Copyright (c) 2021 Vaadin Ltd.
1124
+ * Copyright (c) 2021 - 2022 Vaadin Ltd.
1010
1125
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1011
- */class on extends Y{constructor(t){super(t,"helper")}get helperId(){return this.node&&this.node.id}initCustomNode(t){this.__updateHelperId(t),this.__observeHelper(t);const e=this.__hasHelper(t);this.__toggleHasHelper(e)}teardownNode(t){this.__helperIdObserver&&this.__helperIdObserver.disconnect();const e=this.getSlotChild();if(e&&e!==this.defaultNode){const r=this.__hasHelper(e);this.__toggleHasHelper(r)}else this.__applyDefaultHelper(this.helperText,e)}setHelperText(t){this.helperText=t;const e=this.getSlotChild();(!e||e===this.defaultNode)&&this.__applyDefaultHelper(t,e)}__hasHelper(t){return t?t.children.length>0||t.nodeType===Node.ELEMENT_NODE&&customElements.get(t.localName)||this.__isNotEmpty(t.textContent):!1}__isNotEmpty(t){return t&&t.trim()!==""}__applyDefaultHelper(t,e){const r=this.__isNotEmpty(t);r&&!e&&(this.slotFactory=()=>document.createElement("div"),e=this.attachDefaultNode(),this.__updateHelperId(e),this.__observeHelper(e)),e&&(e.textContent=t),this.__toggleHasHelper(r)}__observeHelper(t){this.__helperObserver=new MutationObserver(e=>{e.forEach(r=>{const s=r.target,o=s===this.node;if(r.type==="attributes")o&&s.id!==this.defaultId&&this.__updateHelperId(s);else if(o||s.parentElement===this.node){const n=this.__hasHelper(this.node);this.__toggleHasHelper(n)}})}),this.__helperObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__toggleHasHelper(t){this.host.toggleAttribute("has-helper",t),this.dispatchEvent(new CustomEvent("helper-changed",{detail:{hasHelper:t,node:this.node}}))}__updateHelperId(t){t.id||(t.id=this.defaultId)}}/**
1126
+ */class Ha extends X{constructor(t){super(t,"helper",null,null,!0)}get helperId(){return this.node&&this.node.id}initCustomNode(t){this.__updateHelperId(t),this.__observeHelper(t);const e=this.__hasHelper(t);this.__toggleHasHelper(e)}teardownNode(t){this.__helperIdObserver&&this.__helperIdObserver.disconnect();const e=this.getSlotChild();if(e&&e!==this.defaultNode){const r=this.__hasHelper(e);this.__toggleHasHelper(r)}else this.__applyDefaultHelper(this.helperText,e)}setHelperText(t){this.helperText=t;const e=this.getSlotChild();(!e||e===this.defaultNode)&&this.__applyDefaultHelper(t,e)}__hasHelper(t){return t?t.children.length>0||t.nodeType===Node.ELEMENT_NODE&&customElements.get(t.localName)||this.__isNotEmpty(t.textContent):!1}__isNotEmpty(t){return t&&t.trim()!==""}__applyDefaultHelper(t,e){const r=this.__isNotEmpty(t);r&&!e&&(this.slotFactory=()=>document.createElement("div"),e=this.attachDefaultNode(),this.__updateHelperId(e),this.__observeHelper(e)),e&&(e.textContent=t),this.__toggleHasHelper(r)}__observeHelper(t){this.__helperObserver=new MutationObserver(e=>{e.forEach(r=>{const s=r.target,o=s===this.node;if(r.type==="attributes")o&&s.id!==this.defaultId&&this.__updateHelperId(s);else if(o||s.parentElement===this.node){const n=this.__hasHelper(this.node);this.__toggleHasHelper(n)}})}),this.__helperObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__toggleHasHelper(t){this.host.toggleAttribute("has-helper",t),this.dispatchEvent(new CustomEvent("helper-changed",{detail:{hasHelper:t,node:this.node}}))}__updateHelperId(t){t.id||(t.id=this.defaultId)}}/**
1012
1127
  * @license
1013
1128
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
1014
1129
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1015
- */const nn=g(i=>class extends i{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){return!(this.invalid=!this.checkValidity())}checkValidity(){return!this.required||!!this.value}});/**
1130
+ */const za=g(i=>class extends i{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}});/**
1016
1131
  * @license
1017
1132
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
1018
1133
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1019
- */const an=i=>class extends nn(Ui(Fi(i))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}get _errorId(){return this._errorController.errorId}get _errorNode(){return this._errorController.node}get _helperId(){return this._helperController.helperId}get _helperNode(){return this._helperController.node}constructor(){super(),this._fieldAriaController=new rn(this),this._helperController=new on(this),this._errorController=new tn(this),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController),this._labelController.addEventListener("label-changed",e=>{const{hasLabel:r,node:s}=e.detail;this.__labelChanged(r,s)}),this._helperController.addEventListener("helper-changed",e=>{const{hasHelper:r,node:s}=e.detail;this.__helperChanged(r,s)})}__helperChanged(e,r){e?this._fieldAriaController.setHelperId(r.id):this._fieldAriaController.setHelperId(null)}__labelChanged(e,r){e?this._fieldAriaController.setLabelId(r.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{e?this._fieldAriaController.setErrorId(this._errorController.errorId):this._fieldAriaController.setErrorId(null)})}};class ln extends an(Mi(oe(ki(Hi(Re(wi)))))){static get is(){return"cas-radio-button-group"}static get template(){return bi`
1134
+ */const Ua=i=>class extends za(Ns(Os(i))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}get _errorId(){return this._errorController.errorId}get _errorNode(){return this._errorController.node}get _helperId(){return this._helperController.helperId}get _helperNode(){return this._helperController.node}constructor(){super(),this._fieldAriaController=new Da(this),this._helperController=new Ha(this),this._errorController=new Ra(this),this._labelController.addEventListener("label-changed",e=>{const{hasLabel:r,node:s}=e.detail;this.__labelChanged(r,s)}),this._helperController.addEventListener("helper-changed",e=>{const{hasHelper:r,node:s}=e.detail;this.__helperChanged(r,s)})}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(e,r){e?this._fieldAriaController.setHelperId(r.id):this._fieldAriaController.setHelperId(null)}__labelChanged(e,r){e?this._fieldAriaController.setLabelId(r.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{e?this._fieldAriaController.setErrorId(this._errorController.errorId):this._fieldAriaController.setErrorId(null)})}};class Ba extends Ua(Es(Me(ws(xs(Ci(cs)))))){static get is(){return"cas-radio-button-group"}static get template(){return ls`
1020
1135
  <style>
1021
1136
  :host {
1022
1137
  display: inline-flex;
@@ -1067,7 +1182,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1067
1182
  </div>
1068
1183
 
1069
1184
  <slot name="tooltip"></slot>
1070
- `}static get properties(){return{value:{type:String,notify:!0,value:"",observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"},_fieldName:{type:String}}}constructor(){super(),this.__registerRadioButton=this.__registerRadioButton.bind(this),this.__unregisterRadioButton=this.__unregisterRadioButton.bind(this),this.__onRadioButtonCheckedChange=this.__onRadioButtonCheckedChange.bind(this),this._tooltipController=new Qo(this),this._tooltipController.addEventListener("tooltip-changed",t=>{const e=t.detail.node;if(e&&e.isConnected){const r=this.__radioButtons.map(s=>s.inputElement);this._tooltipController.setAriaTarget(r)}else this._tooltipController.setAriaTarget([])})}get __radioButtons(){return this.__filterRadioButtons([...this.children])}get __selectedRadioButton(){return this.__radioButtons.find(t=>t.checked)}get isHorizontalRTL(){return this.__isRTL&&this._theme!=="vertical"}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","radiogroup"),this._fieldName=`${this.localName}-${qi()}`;const t=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Vi(t,({addedNodes:e,removedNodes:r})=>{this.__filterRadioButtons(e).reverse().forEach(this.__registerRadioButton),this.__filterRadioButtons(r).forEach(this.__unregisterRadioButton);const s=this.__radioButtons.map(o=>o.inputElement);this._tooltipController.setAriaTarget(s)}),this.addController(this._tooltipController)}__filterRadioButtons(t){return t.filter(e=>e instanceof xt)}_onKeyDown(t){super._onKeyDown(t);const e=t.composedPath().find(r=>r instanceof xt);["ArrowLeft","ArrowUp"].includes(t.key)&&(t.preventDefault(),this.__selectNextRadioButton(e)),["ArrowRight","ArrowDown"].includes(t.key)&&(t.preventDefault(),this.__selectPrevRadioButton(e))}_invalidChanged(t){super._invalidChanged(t),t?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")}__selectNextRadioButton(t){const e=this.__radioButtons.indexOf(t);this.__selectIncRadioButton(e,this.isHorizontalRTL?1:-1)}__selectPrevRadioButton(t){const e=this.__radioButtons.indexOf(t);this.__selectIncRadioButton(e,this.isHorizontalRTL?-1:1)}__selectIncRadioButton(t,e){const r=(this.__radioButtons.length+t+e)%this.__radioButtons.length,s=this.__radioButtons[r];s.disabled?this.__selectIncRadioButton(r,e):(s.focusElement.focus(),s.focusElement.click())}__registerRadioButton(t){t.name=this._fieldName,t.addEventListener("checked-changed",this.__onRadioButtonCheckedChange),(this.disabled||this.readonly)&&(t.disabled=!0),t.checked&&this.__selectRadioButton(t)}__unregisterRadioButton(t){t.removeEventListener("checked-changed",this.__onRadioButtonCheckedChange),t.value===this.value&&this.__selectRadioButton(null)}__onRadioButtonCheckedChange(t){t.target.checked&&this.__selectRadioButton(t.target)}__valueChanged(t,e){if(!(e===void 0&&t==="")){if(t){const r=this.__radioButtons.find(s=>s.value===t);r?(this.__selectRadioButton(r),this.toggleAttribute("has-value",!0)):console.warn(`The radio button with the value "${t}" was not found.`)}else this.__selectRadioButton(null),this.removeAttribute("has-value");e!==void 0&&this.validate()}}__readonlyChanged(t,e){!t&&e===void 0||e!==t&&this.__updateRadioButtonsDisabledProperty()}_disabledChanged(t,e){super._disabledChanged(t,e),!(!t&&e===void 0)&&e!==t&&this.__updateRadioButtonsDisabledProperty()}_shouldRemoveFocus(t){return!this.contains(t.relatedTarget)}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.validate()}__selectRadioButton(t){t?this.value=t.value:this.value="",this.__radioButtons.forEach(e=>{e.checked=e===t}),this.readonly&&this.__updateRadioButtonsDisabledProperty()}__updateRadioButtonsDisabledProperty(){this.__radioButtons.forEach(t=>{this.readonly?t.disabled=t!==this.__selectedRadioButton:t.disabled=this.disabled})}}Li(ln);class xt extends Ui(xo(ao(ro(Hi(Re(lo(wi))))))){static get is(){return"cas-radio-button"}static get template(){return bi`
1185
+ `}static get properties(){return{value:{type:String,notify:!0,value:"",observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"},_fieldName:{type:String}}}constructor(){super(),this.__registerRadioButton=this.__registerRadioButton.bind(this),this.__unregisterRadioButton=this.__unregisterRadioButton.bind(this),this.__onRadioButtonCheckedChange=this.__onRadioButtonCheckedChange.bind(this),this._tooltipController=new Ma(this),this._tooltipController.addEventListener("tooltip-changed",t=>{const e=t.detail.node;if(e&&e.isConnected){const r=this.__radioButtons.map(s=>s.inputElement);this._tooltipController.setAriaTarget(r)}else this._tooltipController.setAriaTarget([])})}get __radioButtons(){return this.__filterRadioButtons([...this.children])}get __selectedRadioButton(){return this.__radioButtons.find(t=>t.checked)}get isHorizontalRTL(){return this.__isRTL&&this._theme!=="vertical"}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","radiogroup"),this._fieldName=`${this.localName}-${Ks()}`;const t=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Js(t,({addedNodes:e,removedNodes:r})=>{this.__filterRadioButtons(e).reverse().forEach(this.__registerRadioButton),this.__filterRadioButtons(r).forEach(this.__unregisterRadioButton);const s=this.__radioButtons.map(o=>o.inputElement);this._tooltipController.setAriaTarget(s)}),this.addController(this._tooltipController)}__filterRadioButtons(t){return t.filter(e=>e instanceof Yt)}_onKeyDown(t){super._onKeyDown(t);const e=t.composedPath().find(r=>r instanceof Yt);["ArrowLeft","ArrowUp"].includes(t.key)&&(t.preventDefault(),this.__selectNextRadioButton(e)),["ArrowRight","ArrowDown"].includes(t.key)&&(t.preventDefault(),this.__selectPrevRadioButton(e))}_invalidChanged(t){super._invalidChanged(t),t?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")}__selectNextRadioButton(t){const e=this.__radioButtons.indexOf(t);this.__selectIncRadioButton(e,this.isHorizontalRTL?1:-1)}__selectPrevRadioButton(t){const e=this.__radioButtons.indexOf(t);this.__selectIncRadioButton(e,this.isHorizontalRTL?-1:1)}__selectIncRadioButton(t,e){const r=(this.__radioButtons.length+t+e)%this.__radioButtons.length,s=this.__radioButtons[r];s.disabled?this.__selectIncRadioButton(r,e):(s.focusElement.focus(),s.focusElement.click())}__registerRadioButton(t){t.name=this._fieldName,t.addEventListener("checked-changed",this.__onRadioButtonCheckedChange),(this.disabled||this.readonly)&&(t.disabled=!0),t.checked&&this.__selectRadioButton(t)}__unregisterRadioButton(t){t.removeEventListener("checked-changed",this.__onRadioButtonCheckedChange),t.value===this.value&&this.__selectRadioButton(null)}__onRadioButtonCheckedChange(t){t.target.checked&&this.__selectRadioButton(t.target)}__valueChanged(t,e){if(!(e===void 0&&t==="")){if(t){const r=this.__radioButtons.find(s=>s.value===t);r?(this.__selectRadioButton(r),this.toggleAttribute("has-value",!0)):console.warn(`The radio button with the value "${t}" was not found.`)}else this.__selectRadioButton(null),this.removeAttribute("has-value");e!==void 0&&this.validate()}}__readonlyChanged(t,e){!t&&e===void 0||e!==t&&this.__updateRadioButtonsDisabledProperty()}_disabledChanged(t,e){super._disabledChanged(t,e),!(!t&&e===void 0)&&e!==t&&this.__updateRadioButtonsDisabledProperty()}_shouldRemoveFocus(t){return!this.contains(t.relatedTarget)}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.validate()}__selectRadioButton(t){t?this.value=t.value:this.value="",this.__radioButtons.forEach(e=>{e.checked=e===t}),this.readonly&&this.__updateRadioButtonsDisabledProperty()}__updateRadioButtonsDisabledProperty(){this.__radioButtons.forEach(t=>{this.readonly?t.disabled=t!==this.__selectedRadioButton:t.disabled=this.disabled})}}As(Ba);class Yt extends Ns(In(yn(_n(xs(Ci(vn(cs))))))){static get is(){return"cas-radio-button"}static get template(){return ls`
1071
1186
  <style>
1072
1187
  @import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&family=Rubik:wght@300;400;500;600;700;800;900&display=swap');
1073
1188
  :host * {
@@ -1147,4 +1262,4 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1147
1262
  <slot name="input"></slot>
1148
1263
  <slot name="label"></slot>
1149
1264
  </div>
1150
- `}static get properties(){return{name:{type:String,value:""}}}static get delegateAttrs(){return[...super.delegateAttrs,"name"]}constructor(){super(),this._setType("radio"),this.value="on"}ready(){super.ready(),this.addController(new Pt(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t})),this.addController(new Io(this.inputElement,this._labelController))}}Li(xt),I.RadioButton=xt,Object.defineProperties(I,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
1265
+ `}static get properties(){return{name:{type:String,value:""}}}static get delegateAttrs(){return[...super.delegateAttrs,"name"]}constructor(){super(),this._setType("radio"),this.value="on"}ready(){super.ready(),this.addController(new Yn(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t})),this.addController(new Gn(this.inputElement,this._labelController))}}As(Yt),F.RadioButton=Yt,Object.defineProperties(F,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});