/*! For license information please see 6931.6e4eddca80c27864.js.LICENSE.txt */ "use strict";(self.webpackChunkhacs_frontend=self.webpackChunkhacs_frontend||[]).push([["6931"],{70176:function(){window.JSCompiler_renameProperty=function(e,t){return e}},44223:function(e,t,i){i.d(t,{n:function(){return a},z:function(){return o}});i(19134),i(97003),i(70176);const s={},n=/-[a-z]/g,r=/([A-Z])/g;function o(e){return s[e]||(s[e]=e.indexOf("-")<0?e:e.replace(n,(e=>e[1].toUpperCase())))}function a(e){return s[e]||(s[e]=e.replace(r,"-$1").toLowerCase())}},19883:function(e,t,i){i.d(t,{o:function(){return r}});i(71695),i(46692),i(47021),i(70176);let s=0;function n(){}n.prototype.__mixinApplications,n.prototype.__mixinSet;const r=function(e){let t=e.__mixinApplications;t||(t=new WeakMap,e.__mixinApplications=t);let i=s++;function n(s){let n=s.__mixinSet;if(n&&n[i])return s;let r=t,o=r.get(s);if(!o){o=e(s),r.set(s,o);let t=Object.create(o.__mixinSet||n||null);t[i]=!0,o.__mixinSet=t}return o}return n}},85695:function(e,t,i){i.d(t,{T8:function(){return d}});i(92745),i(70176);let s=!1,n=[],r=[];function o(){s=!0,requestAnimationFrame((function(){s=!1,a(n),setTimeout((function(){!function(e){for(let t=0,i=e.length;t{throw n}))}}function d(e,t,i){s||o(),r.push([e,t,i])}},97333:function(e,t,i){i.d(t,{Kk:function(){return a},Rq:function(){return l},iY:function(){return d}});i(71695),i(19134),i(5740),i(97003),i(47021),i(72700),i(8038),i(71513),i(75656),i(50100),i(18084),i(70176);let s,n,r=/(url\()([^)]*)(\))/g,o=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function a(e,t){if(e&&o.test(e))return e;if("//"===e)return e;if(void 0===s){s=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",s="http://a/c%20d"===e.href}catch(i){}}if(t||(t=document.baseURI||window.location.href),s)try{return new URL(e,t).href}catch(i){return e}return n||(n=document.implementation.createHTMLDocument("temp"),n.base=n.createElement("base"),n.head.appendChild(n.base),n.anchor=n.createElement("a"),n.body.appendChild(n.anchor)),n.base.href=t,n.anchor.href=e,n.anchor.href||e}function l(e,t){return e.replace(r,(function(e,i,s,n){return i+"'"+a(s.replace(/["']/g,""),t)+"'"+n}))}function d(e){return e.substring(0,e.lastIndexOf("/")+1)}},70617:function(e,t,i){i.r(t),i.d(t,{allowTemplateFromDomModule:function(){return g},cancelSyntheticClickEvents:function(){return O},fastDomIf:function(){return k},getSanitizeDOMValue:function(){return u},legacyNoObservedAttributes:function(){return F},legacyOptimizations:function(){return v},legacyUndefined:function(){return I},legacyWarnings:function(){return C},orderedComputed:function(){return S},passiveTouchGestures:function(){return _},removeNestedTemplates:function(){return V},rootPath:function(){return l},sanitizeDOMValue:function(){return h},setAllowTemplateFromDomModule:function(){return y},setCancelSyntheticClickEvents:function(){return A},setFastDomIf:function(){return L},setLegacyNoObservedAttributes:function(){return M},setLegacyOptimizations:function(){return b},setLegacyUndefined:function(){return E},setLegacyWarnings:function(){return w},setOrderedComputed:function(){return T},setPassiveTouchGestures:function(){return p},setRemoveNestedTemplates:function(){return z},setRootPath:function(){return d},setSanitizeDOMValue:function(){return c},setStrictTemplatePolicy:function(){return f},setSuppressTemplateNotifications:function(){return R},setSyncInitialRender:function(){return P},setUseAdoptedStyleSheetsWithBuiltCSS:function(){return B},strictTemplatePolicy:function(){return m},supportsAdoptingStyleSheets:function(){return a},suppressTemplateNotifications:function(){return N},syncInitialRender:function(){return x},useAdoptedStyleSheetsWithBuiltCSS:function(){return D},useNativeCSSProperties:function(){return r},useNativeCustomElements:function(){return o},useShadow:function(){return n}});i(70176);var s=i(97333);const n=!window.ShadyDOM||!window.ShadyDOM.inUse,r=Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),o=!window.customElements.polyfillWrapFlushCallback,a=n&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const e=new CSSStyleSheet;e.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[e],t.shadowRoot.adoptedStyleSheets[0]===e}catch(e){return!1}})();let l=window.Polymer&&window.Polymer.rootPath||(0,s.iY)(document.baseURI||window.location.href);const d=function(e){l=e};let h=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;const c=function(e){h=e},u=function(){return h};let _=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1;const p=function(e){_=e};let m=window.Polymer&&window.Polymer.strictTemplatePolicy||!1;const f=function(e){m=e};let g=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1;const y=function(e){g=e};let v=window.Polymer&&window.Polymer.legacyOptimizations||!1;const b=function(e){v=e};let C=window.Polymer&&window.Polymer.legacyWarnings||!1;const w=function(e){C=e};let x=window.Polymer&&window.Polymer.syncInitialRender||!1;const P=function(e){x=e};let I=window.Polymer&&window.Polymer.legacyUndefined||!1;const E=function(e){I=e};let S=window.Polymer&&window.Polymer.orderedComputed||!1;const T=function(e){S=e};let O=!0;const A=function(e){O=e};let V=window.Polymer&&window.Polymer.removeNestedTemplates||!1;const z=function(e){V=e};let k=window.Polymer&&window.Polymer.fastDomIf||!1;const L=function(e){k=e};let N=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;const R=function(e){N=e};let F=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1;const M=function(e){F=e};let D=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;const B=function(e){D=e}},11709:function(e,t,i){i.d(t,{dy:()=>$e,H3:()=>je});i("52247"),i("39527"),i("41360"),i("70176");var s=i("70617"),n=i("19883"),r=(i("71695"),i("92745"),i("19134"),i("32114"),i("81804"),i("99790"),i("47021"),i("97333"));let o={},a={};function l(e,t){o[e]=a[e.toLowerCase()]=t}function d(e){return o[e]||a[e.toLowerCase()]}class h extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let i=d(e);return i&&t?i.querySelector(t):i}return null}attributeChangedCallback(e,t,i,s){t!==i&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=(0,r.Kk)(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=(0,r.iY)(t)}return this.__assetpath}register(e){if(e=e||this.id){if(s.strictTemplatePolicy&&void 0!==d(e))throw l(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,l(e,this),(t=this).querySelector("style")&&console.warn("dom-module %s has style outside template",t.id)}var t}}h.prototype.modules=o,customElements.define("dom-module",h);const c="shady-unscoped";function u(e){return h.import(e)}function _(e){let t=e.body?e.body:e;const i=(0,r.Rq)(t.textContent,e.baseURI),s=document.createElement("style");return s.textContent=i,s}function p(e){const t=e.trim().split(/\s+/),i=[];for(let s=0;sShadyDOM.patch(e):e=>e;function v(e){return e.indexOf(".")>=0}function b(e){let t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function C(e,t){return 0===e.indexOf(t+".")}function w(e,t){return 0===t.indexOf(e+".")}function x(e,t,i){return t+i.slice(e.length)}function P(e){if(Array.isArray(e)){let t=[];for(let i=0;i1){for(let e=0;e{throw t}))}}V.splice(0,e),A+=e})).observe(L,{characterData:!0});const N={run(e){return k||(k=!0,L.textContent=z++),V.push(e),O++},cancel(e){const t=e-A;if(t>=0){if(!V[t])throw new Error("invalid async handle: "+e);V[t]=null}}},R=(0,n.o)((e=>class extends e{static createProperties(e){const t=this.prototype;for(let i in e)i in t||t._createPropertyAccessor(i)}static attributeNameForProperty(e){return e.toLowerCase()}static typeForProperty(e){}_createPropertyAccessor(e,t){this._addPropertyToAttributeMap(e),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[e]||(this.__dataHasAccessor[e]=!0,this._definePropertyAccessor(e,t))}_addPropertyToAttributeMap(e){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let t=this.__dataAttributes[e];return t||(t=this.constructor.attributeNameForProperty(e),this.__dataAttributes[t]=e),t}_definePropertyAccessor(e,t){Object.defineProperty(this,e,{get(){return this.__data[e]},set:t?function(){}:function(t){this._setPendingProperty(e,t,!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 e in this.__dataHasAccessor)this.hasOwnProperty(e)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[e]=this[e],delete this[e])}_initializeInstanceProperties(e){Object.assign(this,e)}_setProperty(e,t){this._setPendingProperty(e,t)&&this._invalidateProperties()}_getProperty(e){return this.__data[e]}_setPendingProperty(e,t,i){let s=this.__data[e],n=this._shouldPropertyChange(e,t,s);return n&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(e in this.__dataOld)&&(this.__dataOld[e]=s),this.__data[e]=t,this.__dataPending[e]=t),n}_isPropertyPending(e){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(e))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,N.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 e=this.__data,t=this.__dataPending,i=this.__dataOld;this._shouldPropertiesChange(e,t,i)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(e,t,i)),this.__dataCounter--}_shouldPropertiesChange(e,t,i){return Boolean(t)}_propertiesChanged(e,t,i){}_shouldPropertyChange(e,t,i){return i!==t&&(i==i||t==t)}attributeChangedCallback(e,t,i,s){t!==i&&this._attributeToProperty(e,i),super.attributeChangedCallback&&super.attributeChangedCallback(e,t,i,s)}_attributeToProperty(e,t,i){if(!this.__serializing){const s=this.__dataAttributes,n=s&&s[e]||e;this[n]=this._deserializeValue(t,i||this.constructor.typeForProperty(n))}}_propertyToAttribute(e,t,i){this.__serializing=!0,i=arguments.length<3?this[e]:i,this._valueToNodeAttribute(this,i,t||this.constructor.attributeNameForProperty(e)),this.__serializing=!1}_valueToNodeAttribute(e,t,i){const s=this._serializeValue(t);"class"!==i&&"name"!==i&&"slot"!==i||(e=y(e)),void 0===s?e.removeAttribute(i):e.setAttribute(i,""===s&&window.trustedTypes?window.trustedTypes.emptyScript:s)}_serializeValue(e){return"boolean"==typeof e?e?"":void 0:null!=e?e.toString():void 0}_deserializeValue(e,t){switch(t){case Boolean:return null!==e;case Number:return Number(e);default:return e}}})),F={};let M=HTMLElement.prototype;for(;M;){let e=Object.getOwnPropertyNames(M);for(let t=0;ttrustedTypes.isHTML(e)||trustedTypes.isScript(e)||trustedTypes.isScriptURL(e):()=>!1;const B=(0,n.o)((e=>{const t=R(e);return class extends t{static createPropertiesForAttributes(){let e=this.observedAttributes;for(let t=0;t{const e=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(t,i,s)=>{const n=i.getAttribute(s);e&&s.startsWith("on-")?t.setAttribute(s,e.createScript(n,s)):t.setAttribute(s,n)}})();function W(e){let t=e.getAttribute("is");if(t&&H[t]){let i=e;for(i.removeAttribute("is"),e=i.ownerDocument.createElement(t),i.parentNode.replaceChild(e,i),e.appendChild(i);i.attributes.length;){const{name:t}=i.attributes[0];q(e,i,t),i.removeAttribute(t)}}return e}function G(e,t){let i=t.parentInfo&&G(e,t.parentInfo);if(!i)return e;for(let s=i.firstChild,n=0;s;s=s.nextSibling)if(t.parentIndex===n++)return s}function Y(e,t,i,s){s.id&&(t[s.id]=i)}function K(e,t,i){if(i.events&&i.events.length)for(let s,n=0,r=i.events;nclass extends e{static _parseTemplate(e,t){if(!e._templateInfo){let i=e._templateInfo={};i.nodeInfoList=[],i.nestedTemplate=Boolean(t),i.stripWhiteSpace=t&&t.stripWhiteSpace||e.hasAttribute&&e.hasAttribute("strip-whitespace"),this._parseTemplateContent(e,i,{parent:null})}return e._templateInfo}static _parseTemplateContent(e,t,i){return this._parseTemplateNode(e.content,t,i)}static _parseTemplateNode(e,t,i){let s=!1,n=e;return"template"!=n.localName||n.hasAttribute("preserve-content")?"slot"===n.localName&&(t.hasInsertionPoint=!0):s=this._parseTemplateNestedTemplate(n,t,i)||s,j(n),n.firstChild&&this._parseTemplateChildNodes(n,t,i),n.hasAttributes&&n.hasAttributes()&&(s=this._parseTemplateNodeAttributes(n,t,i)||s),s||i.noted}static _parseTemplateChildNodes(e,t,i){if("script"!==e.localName&&"style"!==e.localName)for(let s,n=e.firstChild,r=0;n;n=s){if("template"==n.localName&&(n=W(n)),s=n.nextSibling,n.nodeType===Node.TEXT_NODE){let i=s;for(;i&&i.nodeType===Node.TEXT_NODE;)n.textContent+=i.textContent,s=i.nextSibling,e.removeChild(i),i=s;if(t.stripWhiteSpace&&!n.textContent.trim()){e.removeChild(n);continue}}let o={parentIndex:r,parentInfo:i};this._parseTemplateNode(n,t,o)&&(o.infoIndex=t.nodeInfoList.push(o)-1),n.parentNode&&r++}}static _parseTemplateNestedTemplate(e,t,i){let s=e,n=this._parseTemplate(s,t);return(n.content=s.content.ownerDocument.createDocumentFragment()).appendChild(s.content),i.templateInfo=n,!0}static _parseTemplateNodeAttributes(e,t,i){let s=!1,n=Array.from(e.attributes);for(let r,o=n.length-1;r=n[o];o--)s=this._parseTemplateNodeAttribute(e,t,i,r.name,r.value)||s;return s}static _parseTemplateNodeAttribute(e,t,i,s,n){return"on-"===s.slice(0,3)?(e.removeAttribute(s),i.events=i.events||[],i.events.push({name:s.slice(3),value:n}),!0):"id"===s&&(i.id=n,!0)}static _contentForTemplate(e){let t=e._templateInfo;return t&&t.content||e.content}_stampTemplate(e,t){e&&!e.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(e);let i=(t=t||this.constructor._parseTemplate(e)).nodeInfoList,s=t.content||e.content,n=document.importNode(s,!0);n.__noInsertionPoint=!t.hasInsertionPoint;let r=n.nodeList=new Array(i.length);n.$={};for(let o,a=0,l=i.length;a!e.literal)).length+(e.dynamicFn?1:0)}for(let o in s)t[o]||n.push(o);return{counts:i,ready:n,total:r}}(e);for(;s=r.shift();){t.set(s,t.size);const e=i[s];e&&e.forEach((e=>{const t=e.info.methodInfo;--o,0==--n[t]&&r.push(t)}))}if(0!==o){const t=e;console.warn(`Computed graph for ${t.localName} incomplete; circular?`)}e.constructor.__orderedComputedDeps=t}return t}(e),o=[];for(let e in t)pe(e,r,o,s,n);let a;for(;a=o.shift();)me(e,"",t,i,a)&&pe(a.methodInfo,r,o,s,n);Object.assign(i,e.__dataOld),Object.assign(t,e.__dataPending),e.__dataPending=null}else{let s=t;for(;ne(e,r,s,i,n);)Object.assign(i,e.__dataOld),Object.assign(t,e.__dataPending),s=e.__dataPending,e.__dataPending=null}}const _e=(e,t,i)=>{let s=0,n=t.length-1,r=-1;for(;s<=n;){const o=s+n>>1,a=i.get(t[o].methodInfo)-i.get(e.methodInfo);if(a<0)s=o+1;else{if(!(a>0)){r=o;break}n=o-1}}r<0&&(r=n+1),t.splice(r,0,e)},pe=(e,t,i,s,n)=>{const r=t[n?b(e):e];if(r)for(let o=0;oh.source.length&&"property"==d.kind&&!d.isCompound&&l.__isPropertyEffectsClient&&l.__dataHasAccessor&&l.__dataHasAccessor[d.target]){let s=i[t];t=x(h.source,d.target,t),l._setPendingPropertyOrPath(t,s,!1,!0)&&e._enqueueClient(l)}else{let a=r.evaluator._evaluateBinding(e,h,t,i,n,o);a!==Z&&function(e,t,i,n,r){r=function(e,t,i,s){if(i.isCompound){let n=e.__dataCompoundStorage[i.target];n[s.compoundIndex]=t,t=n.join("")}"attribute"!==i.kind&&("textContent"!==i.target&&("value"!==i.target||"input"!==e.localName&&"textarea"!==e.localName)||(t=null==t?"":t));return t}(t,r,i,n),s.sanitizeDOMValue&&(r=(0,s.sanitizeDOMValue)(r,i.target,i.kind,t));if("attribute"==i.kind)e._valueToNodeAttribute(t,r,i.target);else{let s=i.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[s]?t[ee.READ_ONLY]&&t[ee.READ_ONLY][s]||t._setPendingProperty(s,r)&&e._enqueueClient(t):e._setUnmanagedPropertyToNode(t,s,r)}}(e,l,d,h,a)}}function ve(e,t){if(t.isCompound){let i=e.__dataCompoundStorage||(e.__dataCompoundStorage={}),s=t.parts,n=new Array(s.length);for(let e=0;e="0"&&s<="9"&&(s="#"),s){case"'":case'"':i.value=t.slice(1,-1),i.literal=!0;break;case"#":i.value=Number(t),i.literal=!0}return i.literal||(i.rootProperty=b(t),i.structured=v(t),i.structured&&(i.wildcard=".*"==t.slice(-2),i.wildcard&&(i.name=t.slice(0,-2)))),i}function Ae(e,t,i){let s=E(e,i);return void 0===s&&(s=t[i]),s}function Ve(e,t,i,n){const r={indexSplices:n};s.legacyUndefined&&!e._overrideLegacyUndefined&&(t.splices=r),e.notifyPath(i+".splices",r),e.notifyPath(i+".length",t.length),s.legacyUndefined&&!e._overrideLegacyUndefined&&(r.indexSplices=[])}function ze(e,t,i,s,n,r){Ve(e,t,i,[{index:s,addedCount:n,removed:r,object:t,type:"splice"}])}const ke=(0,n.o)((e=>{const t=Q(B(e));return class 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 ee}_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(Le.length){let e=Le[Le.length-1];e._enqueueClient(this),this.__dataHost=e}}_initializeProtoProperties(e){this.__data=Object.create(e),this.__dataPending=Object.create(e),this.__dataOld={}}_initializeInstanceProperties(e){let t=this[ee.READ_ONLY];for(let i in e)t&&t[i]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[i]=this.__dataPending[i]=e[i])}_addPropertyEffect(e,t,i){this._createPropertyAccessor(e,t==ee.READ_ONLY);let s=se(this,t,!0)[e];s||(s=this[t][e]=[]),s.push(i)}_removePropertyEffect(e,t,i){let s=se(this,t,!0)[e],n=s.indexOf(i);n>=0&&s.splice(n,1)}_hasPropertyEffect(e,t){let i=this[t];return Boolean(i&&i[e])}_hasReadOnlyEffect(e){return this._hasPropertyEffect(e,ee.READ_ONLY)}_hasNotifyEffect(e){return this._hasPropertyEffect(e,ee.NOTIFY)}_hasReflectEffect(e){return this._hasPropertyEffect(e,ee.REFLECT)}_hasComputedEffect(e){return this._hasPropertyEffect(e,ee.COMPUTE)}_setPendingPropertyOrPath(e,t,i,s){if(s||b(Array.isArray(e)?e[0]:e)!==e){if(!s){let i=E(this,e);if(!(e=S(this,e,t))||!super._shouldPropertyChange(e,t,i))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,i))return function(e,t,i){let s=e.__dataLinkedPaths;if(s){let n;for(let r in s){let o=s[r];w(r,t)?(n=x(r,o,t),e._setPendingPropertyOrPath(n,i,!0,!0)):w(o,t)&&(n=x(o,r,t),e._setPendingPropertyOrPath(n,i,!0,!0))}}}(this,e,t),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[e])return this._setPendingProperty(e,t,i);this[e]=t}return!1}_setUnmanagedPropertyToNode(e,t,i){i===e[t]&&"object"!=typeof i||("className"===t&&(e=y(e)),e[t]=i)}_setPendingProperty(e,t,i){let s=this.__dataHasPaths&&v(e),n=s?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(e,t,n[e])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),e in this.__dataOld||(this.__dataOld[e]=this.__data[e]),s?this.__dataTemp[e]=t:this.__data[e]=t,this.__dataPending[e]=t,(s||this[ee.NOTIFY]&&this[ee.NOTIFY][e])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[e]=i),!0)}_setProperty(e,t){this._setPendingProperty(e,t,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(e){this.__dataPendingClients=this.__dataPendingClients||[],e!==this&&this.__dataPendingClients.push(e)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let e=this.__dataPendingClients;if(e){this.__dataPendingClients=null;for(let t=0;t{ne(this,e.propertyEffects,t,i,s,e.nodeList);for(let n=e.firstChild;n;n=n.nextSibling)this._runEffectsForTemplate(n,t,i,s)};e.runEffects?e.runEffects(n,t,s):n(t,s)}linkPaths(e,t){e=P(e),t=P(t),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[e]=t}unlinkPaths(e){e=P(e),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[e]}notifySplices(e,t){let i={path:""};Ve(this,E(this,e,i),i.path,t)}get(e,t){return E(t||this,e)}set(e,t,i){i?S(i,e,t):this[ee.READ_ONLY]&&this[ee.READ_ONLY][e]||this._setPendingPropertyOrPath(e,t,!0)&&this._invalidateProperties()}push(e,...t){let i={path:""},s=E(this,e,i),n=s.length,r=s.push(...t);return t.length&&ze(this,s,i.path,n,t.length,[]),r}pop(e){let t={path:""},i=E(this,e,t),s=Boolean(i.length),n=i.pop();return s&&ze(this,i,t.path,i.length,0,[n]),n}splice(e,t,i,...s){let n,r={path:""},o=E(this,e,r);return t<0?t=o.length-Math.floor(-t):t&&(t=Math.floor(t)),n=2===arguments.length?o.splice(t):o.splice(t,i,...s),(s.length||n.length)&&ze(this,o,r.path,t,s.length,n),n}shift(e){let t={path:""},i=E(this,e,t),s=Boolean(i.length),n=i.shift();return s&&ze(this,i,t.path,0,0,[n]),n}unshift(e,...t){let i={path:""},s=E(this,e,i),n=s.unshift(...t);return t.length&&ze(this,s,i.path,0,t.length,[]),n}notifyPath(e,t){let i;if(1==arguments.length){let s={path:""};t=E(this,e,s),i=s.path}else i=Array.isArray(e)?P(e):e;this._setPendingPropertyOrPath(i,t,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(e,t){var i;this._addPropertyEffect(e,ee.READ_ONLY),t&&(this["_set"+(i=e,i[0].toUpperCase()+i.substring(1))]=function(t){this._setProperty(e,t)})}_createPropertyObserver(e,t,i){let s={property:e,method:t,dynamicFn:Boolean(i)};this._addPropertyEffect(e,ee.OBSERVE,{fn:ae,info:s,trigger:{name:e}}),i&&this._addPropertyEffect(t,ee.OBSERVE,{fn:ae,info:s,trigger:{name:t}})}_createMethodObserver(e,t){let i=Te(e);if(!i)throw new Error("Malformed observer expression '"+e+"'");Ce(this,i,ee.OBSERVE,we,null,t)}_createNotifyingProperty(e){this._addPropertyEffect(e,ee.NOTIFY,{fn:he,info:{eventName:(0,T.n)(e)+"-changed",property:e}})}_createReflectedProperty(e){let t=this.constructor.attributeNameForProperty(e);"-"===t[0]?console.warn("Property "+e+" cannot be reflected to attribute "+t+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(e,ee.REFLECT,{fn:ce,info:{attrName:t}})}_createComputedProperty(e,t,i){let s=Te(t);if(!s)throw new Error("Malformed computed expression '"+t+"'");const n=Ce(this,s,ee.COMPUTE,me,e,i);se(this,te)[e]=n}_marshalArgs(e,t,i){const n=this.__data,r=[];for(let o=0,a=e.length;o1)return Z;r[o]=h}return r}static addPropertyEffect(e,t,i){this.prototype._addPropertyEffect(e,t,i)}static createPropertyObserver(e,t,i){this.prototype._createPropertyObserver(e,t,i)}static createMethodObserver(e,t){this.prototype._createMethodObserver(e,t)}static createNotifyingProperty(e){this.prototype._createNotifyingProperty(e)}static createReadOnlyProperty(e,t){this.prototype._createReadOnlyProperty(e,t)}static createReflectedProperty(e){this.prototype._createReflectedProperty(e)}static createComputedProperty(e,t,i){this.prototype._createComputedProperty(e,t,i)}static bindTemplate(e){return this.prototype._bindTemplate(e)}_bindTemplate(e,t){let i=this.constructor._parseTemplate(e),s=this.__preBoundTemplateInfo==i;if(!s)for(let n in i.propertyEffects)this._createPropertyAccessor(n);if(t)if(i=Object.create(i),i.wasPreBound=s,this.__templateInfo){const t=e._parentTemplateInfo||this.__templateInfo,s=t.lastChild;i.parent=t,t.lastChild=i,i.previousSibling=s,s?s.nextSibling=i:t.firstChild=i}else this.__templateInfo=i;else this.__preBoundTemplateInfo=i;return i}static _addTemplatePropertyEffect(e,t,i){(e.hostProps=e.hostProps||{})[t]=!0;let s=e.propertyEffects=e.propertyEffects||{};(s[t]=s[t]||[]).push(i)}_stampTemplate(e,t){t=t||this._bindTemplate(e,!0),Le.push(this);let i=super._stampTemplate(e,t);if(Le.pop(),t.nodeList=i.nodeList,!t.wasPreBound){let e=t.childNodes=[];for(let t=i.firstChild;t;t=t.nextSibling)e.push(t)}return i.templateInfo=t,function(e,t){let{nodeList:i,nodeInfoList:s}=t;if(s.length)for(let n=0;nn&&s.push({literal:e.slice(n,i.index)});let r=i[1][0],o=Boolean(i[2]),a=i[3].trim(),l=!1,d="",h=-1;"{"==r&&(h=a.indexOf("::"))>0&&(d=a.substring(h+2),a=a.substring(0,h),l=!0);let c=Te(a),u=[];if(c){let{args:e,methodName:i}=c;for(let t=0;t{const t=R(e);function i(e){const t=Object.getPrototypeOf(e);return t.prototype instanceof n?t:null}function s(e){if(!e.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",e))){let t=null;if(e.hasOwnProperty(JSCompiler_renameProperty("properties",e))){const i=e.properties;i&&(t=function(e){const t={};for(let i in e){const s=e[i];t[i]="function"==typeof s?{type:s}:s}return t}(i))}e.__ownProperties=t}return e.__ownProperties}class n extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){e=this.prototype,Ne.push(e);const t=this._properties;this.__observedAttributes=t?Object.keys(t).map((e=>this.prototype._addPropertyToAttributeMap(e))):[]}var e;return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const e=i(this);e&&e.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const e=s(this);e&&this.createProperties(e)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const e=i(this);this.__properties=Object.assign({},e&&e._properties,s(this))}return this.__properties}static typeForProperty(e){const t=this._properties[e];return t&&t.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return n})),Fe=window.ShadyCSS&&window.ShadyCSS.cssBuild,Me=(0,n.o)((e=>{const t=Re(ke(e));function i(e,t,i,n){if(!Fe){const s=t.content.querySelectorAll("style"),r=f(t),o=function(e){let t=u(e);return t?g(t):[]}(i),a=t.content.firstElementChild;for(let i=0;i{t+=e.textContent,e.parentNode.removeChild(e)})),e._styleSheet=new CSSStyleSheet,e._styleSheet.replaceSync(t)}}}return class extends t{static get polymerElementVersion(){return"3.5.2"}static _finalizeClass(){t._finalizeClass.call(this);const e=((i=this).hasOwnProperty(JSCompiler_renameProperty("__ownObservers",i))||(i.__ownObservers=i.hasOwnProperty(JSCompiler_renameProperty("observers",i))?i.observers:null),i.__ownObservers);var i;e&&this.createObservers(e,this._properties),this._prepareTemplate()}static _prepareTemplate(){let e=this.template;e&&("string"==typeof e?(console.error("template getter must return HTMLTemplateElement"),e=null):s.legacyOptimizations||(e=e.cloneNode(!0))),this.prototype._template=e}static createProperties(e){for(let r in e)t=this.prototype,i=r,s=e[r],n=e,s.computed&&(s.readOnly=!0),s.computed&&(t._hasReadOnlyEffect(i)?console.warn(`Cannot redefine computed property '${i}'.`):t._createComputedProperty(i,s.computed,n)),s.readOnly&&!t._hasReadOnlyEffect(i)?t._createReadOnlyProperty(i,!s.computed):!1===s.readOnly&&t._hasReadOnlyEffect(i)&&console.warn(`Cannot make readOnly property '${i}' non-readOnly.`),s.reflectToAttribute&&!t._hasReflectEffect(i)?t._createReflectedProperty(i):!1===s.reflectToAttribute&&t._hasReflectEffect(i)&&console.warn(`Cannot make reflected property '${i}' non-reflected.`),s.notify&&!t._hasNotifyEffect(i)?t._createNotifyingProperty(i):!1===s.notify&&t._hasNotifyEffect(i)&&console.warn(`Cannot make notify property '${i}' non-notify.`),s.observer&&t._createPropertyObserver(i,s.observer,n[s.observer]),t._addPropertyToAttributeMap(i);var t,i,s,n}static createObservers(e,t){const i=this.prototype;for(let s=0;se});class Be{constructor(e,t){Ue(e,t);const i=t.reduce(((t,i,s)=>t+He(i)+e[s+1]),e[0]);this.value=i.toString()}toString(){return this.value}}function He(e){if(e instanceof Be)return e.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${e}`)}const $e=function(e,...t){Ue(e,t);const i=document.createElement("template");let s=t.reduce(((t,i,s)=>t+function(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(e instanceof Be)return He(e);throw new Error(`non-template value passed to Polymer's html function: ${e}`)}(i)+e[s+1]),e[0]);return De&&(s=De.createHTML(s)),i.innerHTML=s,i},Ue=(e,t)=>{if(!Array.isArray(e)||!Array.isArray(e.raw)||t.length!==e.length-1)throw new TypeError("Invalid call to the html template tag")},je=Me(HTMLElement)},96526:function(e,t,i){var s=i(1569),n=i(29660),r=i(72878),o=i(72616),a=i(36888).trim,l=i(91430),d=r("".charAt),h=s.parseFloat,c=s.Symbol,u=c&&c.iterator,_=1/h(l+"-0")!=-1/0||u&&!n((function(){h(Object(u))}));e.exports=_?function(e){var t=a(o(e)),i=h(t);return 0===i&&"-"===d(t,0)?-0:i}:h},95078:function(e,t,i){var s=i(40810),n=i(96526);s({global:!0,forced:parseFloat!==n},{parseFloat:n})},85664:function(e,t,i){var s=i(40810),n=i(1569),r=i(61785),o=i(63983),a=i(1451),l=i(29660),d=i(85779);s({global:!0,enumerable:!0,dontCallGetSet:!0,forced:l((function(){return d&&1!==Object.getOwnPropertyDescriptor(n,"queueMicrotask").value.length}))},{queueMicrotask:function(e){a(arguments.length,1),r(o(e))}})},73072:function(e,t,i){i.d(t,{GO:function(){return u},Gf:function(){return n},LQ:function(){return r},Qu:function(){return d},Qw:function(){return h}});i(71695),i(92745),i(39527),i(41360),i(47021);let s=!1;function n(){let e=document.activeElement||document.body;for(;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function r(){return s}function o(e){const t=e.style;if("hidden"===t.visibility||"none"===t.display)return!0;const i=window.getComputedStyle(e);return"hidden"===i.visibility||"none"===i.display}function a(e,t){const i=Math.max(e.tabIndex,0),s=Math.max(t.tabIndex,0);return 0===i||0===s?s>i:i>s}function l(e){const t=e.length;if(t<2)return e;const i=Math.ceil(t/2);return function(e,t){const i=[];for(;e.length>0&&t.length>0;)a(e[0],t[0])?i.push(t.shift()):i.push(e.shift());return i.concat(e,t)}(l(e.slice(0,i)),l(e.slice(i)))}function d(e){return!e.matches('[tabindex="-1"]')&&(e.matches("input, select, textarea, button, object")?e.matches(":not([disabled])"):e.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))}function h(e){return e.getRootNode().activeElement===e}function c(e,t){if(e.nodeType!==Node.ELEMENT_NODE||o(e))return!1;const i=e,s=function(e){if(!d(e))return-1;const t=e.getAttribute("tabindex")||0;return Number(t)}(i);let n=s>0;s>=0&&t.push(i);let r=[];return r="slot"===i.localName?i.assignedNodes({flatten:!0}):(i.shadowRoot||i).children,[...r].forEach((e=>{n=c(e,t)||n})),n}function u(e){const t=[];return c(e,t)?l(t):t}window.addEventListener("keydown",(()=>{s=!0}),{capture:!0}),window.addEventListener("mousedown",(()=>{s=!1}),{capture:!0})},2394:function(e,t,i){i.d(t,{t:()=>l});var s=i("92903"),n=(i("63721"),i("52247"),i("71695"),i("39527"),i("36993"),i("47021"),i("57243")),r=i("67753");const o=Symbol("valueNotInitialized");class a extends r.sR{constructor(e){if(super(e),e.type!==s.pX.ELEMENT)throw new Error(`\`${this.constructor.name}\` must be bound to an element.`);this.previousValue=o}render(e,t){return n.Ld}update(e,[t,i]){if(!this.hasChanged(i))return n.Ld;this.host=e.options&&e.options.host,this.element=e.element,this.renderer=t;return this.previousValue===o?this.addRenderer():this.runRenderer(),this.previousValue=Array.isArray(i)?[...i]:i,n.Ld}reconnected(){this.addRenderer()}disconnected(){this.removeRenderer()}addRenderer(){throw new Error("The `addRenderer` method must be implemented.")}runRenderer(){throw new Error("The `runRenderer` method must be implemented.")}removeRenderer(){throw new Error("The `removeRenderer` method must be implemented.")}renderRenderer(e,...t){const i=this.renderer.call(this.host,...t);(0,n.sY)(i,e,{host:this.host})}hasChanged(e){return Array.isArray(e)?!Array.isArray(this.previousValue)||(this.previousValue.length!==e.length||e.some(((e,t)=>e!==this.previousValue[t]))):this.previousValue!==e}}const l=(0,s.XM)(class extends a{addRenderer(){this.element.renderer=(e,t,i)=>{this.renderRenderer(e,i.item,i,t)}}runRenderer(){this.element.requestContentUpdate()}removeRenderer(){this.element.renderer=null}})},20087:function(e,t,i){i.d(t,{iv:()=>s.iv,hC:()=>p,Tb:()=>v});i("28457"),i("21414"),i("71695"),i("92745"),i("61893"),i("5509"),i("32126"),i("19423"),i("69235"),i("12385"),i("19134"),i("5740"),i("11740"),i("92519"),i("42179"),i("89256"),i("24931"),i("88463"),i("57449"),i("19814"),i("88044"),i("39527"),i("99790"),i("67670"),i("34810"),i("41360"),i("13334"),i("36993"),i("47021");var s=i("57243");const n=e=>class extends e{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),"theme"===e&&this._set_theme(i)}},r=[],o=new Set,a=new Set;function l(e){return e&&Object.prototype.hasOwnProperty.call(e,"__themes")}function d(e,t){return(e||"").split(" ").some((e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t)))}function h(e){return e.map((e=>e.cssText)).join("\n")}const c="vaadin-themable-mixin-style";function u(e){o.forEach((t=>{const i=t.deref();i instanceof e?function(e){if(!e.shadowRoot)return;const t=e.constructor;if(e instanceof s.oi)[...e.shadowRoot.querySelectorAll("style")].forEach((e=>e.remove())),(0,s.ec)(e.shadowRoot,t.elementStyles);else{const i=e.shadowRoot.getElementById(c),s=t.prototype._template;i.textContent=s.content.getElementById(c).textContent}}(i):i||o.delete(t)}))}function _(e){if(e.prototype instanceof s.oi)e.elementStyles=e.finalizeStyles(e.styles);else{e.prototype._template.content.getElementById(c).textContent=h(e.getStylesForThis())}a.forEach((t=>{const i=customElements.get(t);i!==e&&i.prototype instanceof e&&_(i)}))}function p(e,t,i={}){t=function(e=[]){return[e].flat(1/0).filter((e=>e instanceof s.c3||(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1)))}(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(e,t,i):r.push({themeFor:e,styles:t,include:i.include,moduleId:i.moduleId}),e&&a.forEach((i=>{if(d(e,i)&&function(e){return l(customElements.get(e))}(i)){const e=customElements.get(i);!function(e,t){const i=e.__themes;return!(!i||!t)&&i.some((e=>e.styles.some((e=>t.some((t=>t.cssText===e.cssText))))))}(e,t)?window.Vaadin&&window.Vaadin.suppressPostFinalizeStylesWarning||console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`):console.warn(`Registering styles that already exist for ${i}`),_(e),u(e)}}))}function m(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():r}function f(e=""){let t=0;return e.startsWith("lumo-")||e.startsWith("material-")?t=1:e.startsWith("vaadin-")&&(t=2),t}function g(e){const t=[];return e.include&&[].concat(e.include).forEach((e=>{const i=m().find((t=>t.moduleId===e));i?t.push(...g(i),...i.styles):console.warn(`Included moduleId ${e} not found in style registry`)}),e.styles),t}function y(e){const t=`${e}-default-theme`,i=m().filter((i=>i.moduleId!==t&&d(i.themeFor,e))).map((e=>Object.assign(Object.assign({},e),{},{styles:[...g(e),...e.styles],includePriority:f(e.moduleId)}))).sort(((e,t)=>t.includePriority-e.includePriority));return i.length>0?i:m().filter((e=>e.moduleId===t))}const v=e=>class extends(n(e)){constructor(){super(),o.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&a.add(this.is),this.elementStyles)return;const e=this.prototype._template;e&&!l(this)&&function(e,t){const i=document.createElement("style");i.id=c,i.textContent=h(e),t.content.appendChild(i)}(this.getStylesForThis(),e)}static finalizeStyles(e){const t=this.getStylesForThis();return e?[...[e].flat(1/0),...t]:t}static getStylesForThis(){const t=e.__themes||[],i=Object.getPrototypeOf(this.prototype),s=(i?i.constructor.__themes:[])||[];this.__themes=[...t,...s,...y(this.is)];const n=this.__themes.flatMap((e=>e.styles));return n.filter(((e,t)=>t===n.lastIndexOf(e)))}}},53684:function(e,t,i){var s=i("11709"),n=i("40701"),r=i("8058"),o=i("20087");i("71695"),i("47021");const a=e=>class extends e{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(e,t,i){"hidden"===e&&null!==i?this.index=void 0:super.attributeChangedCallback(e,t,i)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const e=this._owner.getAttribute("dir");e&&this.setAttribute("dir",e)}requestContentUpdate(){if(!this.renderer||this.hidden)return;const e={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,e)}__rendererOrItemChanged(e,t,i){void 0!==i&&void 0!==t&&(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()))}__updateLabel(e,t){t||(this.textContent=e)}};let l,d=e=>e;class h extends(a((0,o.Tb)((0,r.U)(s.H3)))){static get template(){return(0,s.dy)(l||(l=d`
`))}static get is(){return"vaadin-combo-box-item"}}(0,n.M)(h)},10210:function(e,t,i){i.d(t,{z:()=>S});var s=i("44223"),n=i("85695"),r=i("19883");const o=(0,r.o)((e=>class extends e{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},manualValidation:{type:Boolean,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}_requestValidation(){this.manualValidation||this.validate()}}));i("52247"),i("71695"),i("39527"),i("99790"),i("47021"),i("19423"),i("52805"),i("23669"),i("41360"),i("34595"),i("36993");function a(e,t,i=0){let s=t;for(const n of e.subCaches){const e=n.parentCacheIndex;if(s<=e)break;if(s<=e+n.flatSize)return a(n,s-e-1,i+1);s-=n.flatSize}return{cache:e,item:e.items[s],index:s,page:Math.floor(s/e.pageSize),level:i}}function l({getItemId:e},t,i,s=0,n=0){for(let r=0;r0&&i.length?d(r,i,s+n+1):s+n}class h{constructor(e,t,i,s,n){this.context=void 0,this.pageSize=void 0,this.items=[],this.pendingRequests={},this.__subCacheByIndex={},this.__size=0,this.__flatSize=0,this.context=e,this.pageSize=t,this.size=i,this.parentCache=s,this.parentCacheIndex=n,this.__flatSize=i||0}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0||this.subCaches.some((e=>e.isLoading))}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn(" The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(e){if(this.__size!==e){if(this.__size=e,void 0!==this.context.placeholder){this.items.length=e||0;for(let s=0;s{parseInt(e)*this.pageSize>=this.size&&delete this.pendingRequests[e]}))}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce(((e,t)=>(t.recalculateFlatSize(),e+t.flatSize)),0):0}setPage(e,t){const i=e*this.pageSize;t.forEach(((e,t)=>{const s=i+t;(void 0===this.size||s{const s=i.parentCacheIndex;return t>s?e+i.flatSize:e}),t)}getItemForIndex(e){console.warn(" The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:t}=a(this,e);return t}getCacheAndIndex(e){console.warn(" The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:t,index:i}=a(this,e);return{cache:t,scaledIndex:i}}updateSize(){console.warn(" The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(e){if(console.warn(" The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(e)){const t=this.createSubCache(e);this.context.__controller.__loadCachePage(t,0)}}get grid(){return console.warn(" The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn(" The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex}}class c extends EventTarget{constructor(e,{size:t,pageSize:i,isExpanded:s,getItemId:n,isPlaceholder:r,placeholder:o,dataProvider:a,dataProviderParams:l}){super(),this.host=void 0,this.dataProvider=void 0,this.dataProviderParams=void 0,this.pageSize=void 0,this.isExpanded=void 0,this.getItemId=void 0,this.rootCache=void 0,this.placeholder=void 0,this.isPlaceholder=void 0,this.host=e,this.pageSize=i,this.getItemId=n,this.isExpanded=s,this.placeholder=o,this.isPlaceholder=r,this.dataProvider=a,this.dataProviderParams=l,this.rootCache=this.__createRootCache(t)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache()}setDataProvider(e){this.dataProvider=e,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(e){return a(this.rootCache,e)}getItemContext(e){return l({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return d(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:t,page:i,item:s}=this.getFlatIndexContext(e);this.__isItemLoaded(s)||this.__loadCachePage(t,i)}ensureFlatIndexHierarchy(e){const{cache:t,item:i,index:s}=this.getFlatIndexContext(e);if(this.__isItemLoaded(i)&&this.isExpanded(i)&&!t.getSubCache(s)){const e=t.createSubCache(s);this.__loadCachePage(e,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(e){return new h(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,t){if(!this.dataProvider||e.pendingRequests[t])return;let i={page:t,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(i=Object.assign(Object.assign({},i),this.dataProviderParams()));const s=(n,r)=>{e.pendingRequests[t]===s&&(void 0!==r?e.size=r:i.parentItem&&(e.size=n.length),e.setPage(t,n),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[t],this.dispatchEvent(new CustomEvent("page-loaded")))};e.pendingRequests[t]=s,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(i,s)}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}var u=i("72373");const _=e=>class extends e{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged",sync:!0},size:{type:Number,observer:"_sizeChanged",sync:!0},dataProvider:{type:Object,observer:"_dataProviderChanged",sync:!0},__dataProviderInitialized:{type:Boolean,value:!1},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}constructor(){super(),this.__dataProviderController=new c(this,{placeholder:new u.h,isPlaceholder:e=>e instanceof u.h,dataProviderParams:()=>({filter:this.filter})}),this.__dataProviderController.addEventListener("page-requested",this.__onDataProviderPageRequested.bind(this)),this.__dataProviderController.addEventListener("page-loaded",this.__onDataProviderPageLoaded.bind(this))}ready(){super.ready(),this._scroller.addEventListener("index-requested",(e=>{if(!this._shouldFetchData())return;const t=e.detail.index;void 0!==t&&this.__dataProviderController.ensureFlatIndexLoaded(t)})),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(e){void 0!==this.__previousDataProviderFilter||""!==e?this.__previousDataProviderFilter!==e&&(this.__previousDataProviderFilter=e,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1):this.__previousDataProviderFilter=e}_shouldFetchData(){return!!this.dataProvider&&(this.opened||this.filter&&this.filter.length)}_ensureFirstPage(e){this._shouldFetchData()&&e&&(this._forceNextRequest||void 0===this.size?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0))}__onDataProviderPageRequested(){this.loading=!0}__onDataProviderPageLoaded(){const{rootCache:e}=this.__dataProviderController;e.items=[...e.items],this.__synchronizeControllerState(),this.opened||this._isInputFocused()||this._commitValue()}clearCache(){this.dataProvider&&(this.__dataProviderController.clearCache(),this.__synchronizeControllerState(),this._shouldFetchData()?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this._forceNextRequest=!0)}_sizeChanged(e){const{rootCache:t}=this.__dataProviderController;t.size!==e&&(t.size=e,t.items=[...t.items],this.__synchronizeControllerState())}_filteredItemsChanged(e){if(super._filteredItemsChanged(e),this.dataProvider&&e){const{rootCache:t}=this.__dataProviderController;t.items!==e&&(t.items=e,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:e}=this.__dataProviderController;this.size=e.size,this.filteredItems=e.items,this.loading=this.__dataProviderController.isLoading()}}_pageSizeChanged(e,t){if(Math.floor(e)!==e||e<1)throw this.pageSize=t,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(e),this.clearCache()}_dataProviderChanged(e,t){this._ensureItemsOrDataProvider((()=>{this.dataProvider=t})),this.__dataProviderController.setDataProvider(e),this.clearCache()}_ensureItemsOrDataProvider(e){if(void 0!==this.items&&void 0!==this.dataProvider)throw e(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(e,t){if(e&&""!==t&&(void 0===this.selectedItem||null===this.selectedItem)){const e=this.__getItemIndexByValue(this.filteredItems,t);(e<0||!this._getItemLabel(this.filteredItems[e]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`")}}};i("19083"),i("11740"),i("61006"),i("67670");const p=(0,r.o)((e=>class extends e{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0,sync:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}}));i("22152");var m=i("73072");const f=(0,r.o)((e=>class extends e{get _keyboardActive(){return(0,m.LQ)()}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}})),g=(0,r.o)((e=>class extends e{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)}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}}));var y=i("90850"),v=i("48001");i("92519"),i("42179"),i("89256"),i("24931"),i("88463"),i("57449"),i("19814");const b=e=>class extends e{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,t){if(!t)return;if(void 0===e)return;const{classList:i}=t;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const e=this.__previousClasses.filter((e=>!this.__initialClasses.has(e)));e.length>0&&i.remove(...e)}const s="string"==typeof e?e.split(" ").filter(Boolean):[];s.length>0&&i.add(...s),this.__previousClasses=s}};var C=i("94146");const w=(0,r.o)((e=>class extends e{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return null!=this.value&&""!==this.value}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e),this._hasInputValue=e&&e.length>0}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_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&&(this._inputElementValue=null!=e?e:"")}_inputElementChanged(e,t){e?this._addInputListeners(e):t&&this._removeInputListeners(t)}_hasInputValueChanged(e,t){(e||t)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const t=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=t.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,t){this._toggleHasValue(this._hasValue),""===e&&void 0===t||this.__userInput||this._forwardInputValue(e)}_setHasInputValue(e){const t=e.composedPath()[0];this._hasInputValue=t.value.length>0}}));class x{constructor(e){this.host=e,e.addEventListener("opened-changed",(()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)})),e.addEventListener("blur",(()=>this.__setVirtualKeyboardEnabled(!0))),e.addEventListener("touchstart",(()=>this.__setVirtualKeyboardEnabled(!0)))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}function P(e){return null!=e}function I(e,t){return e.findIndex((e=>!(e instanceof u.h)&&t(e)))}const E=e=>class extends(b((0,v.k)(o(f(g(w(p(e)))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const t=this._nativeInput;t&&(t.autocomplete="off",t.autocapitalize="off",t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded",!!this.opened),t.setAttribute("spellcheck","false"),t.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame((()=>{this._overlayElement.bringToFront()}))};var t;this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),t=this,window.Vaadin&&window.Vaadin.templateRendererCallback?window.Vaadin.templateRendererCallback(t):t.querySelector("template")&&console.warn(`WARNING: