mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-11-09 10:59:43 +00:00
2 lines
196 KiB
JavaScript
2 lines
196 KiB
JavaScript
/*! For license information please see 991beab2.js.LICENSE.txt */
|
|
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[247],{89833:function(e,t,n){n.d(t,{O:function(){return g}});var r,o,i=n(87480),a=n(86251),u=n(37500),l=n(63550),s=n(8636),c=n(51346),f=n(71260);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function d(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _(this,n)}}function _(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(l,e);var t,n,i,a=b(l);function l(){var e;return p(this,l),(e=a.apply(this,arguments)).rows=2,e.cols=20,e.charCounter=!1,e}return t=l,(n=[{key:"render",value:function(){var e=this.charCounter&&-1!==this.maxLength,t=e&&"internal"===this.charCounter,n=e&&!t,o=!!this.helper||!!this.validationMessage||n,i={"mdc-text-field--disabled":this.disabled,"mdc-text-field--no-label":!this.label,"mdc-text-field--filled":!this.outlined,"mdc-text-field--outlined":this.outlined,"mdc-text-field--end-aligned":this.endAligned,"mdc-text-field--with-internal-counter":t};return(0,u.dy)(r||(r=d(['\n <label class="mdc-text-field mdc-text-field--textarea ','">\n ',"\n ","\n ","\n ","\n ","\n </label>\n ","\n "])),(0,s.$)(i),this.renderRipple(),this.outlined?this.renderOutline():this.renderLabel(),this.renderInput(),this.renderCharCounter(t),this.renderLineRipple(),this.renderHelperText(o,n))}},{key:"renderInput",value:function(){var e=this.label?"label":void 0,t=-1===this.minLength?void 0:this.minLength,n=-1===this.maxLength?void 0:this.maxLength,r=this.autocapitalize?this.autocapitalize:void 0;return(0,u.dy)(o||(o=d(["\n <textarea\n aria-labelledby=",'\n class="mdc-text-field__input"\n .value="','"\n rows="','"\n cols="','"\n ?disabled="','"\n placeholder="','"\n ?required="','"\n ?readonly="','"\n minlength="','"\n maxlength="','"\n name="','"\n inputmode="','"\n autocapitalize="','"\n @input="','"\n @blur="','">\n </textarea>'])),(0,c.o)(e),(0,f.a)(this.value),this.rows,this.cols,this.disabled,this.placeholder,this.required,this.readOnly,(0,c.o)(t),(0,c.o)(n),(0,c.o)(""===this.name?void 0:this.name),(0,c.o)(this.inputMode),(0,c.o)(r),this.handleInputChange,this.onInputBlur)}}])&&y(t.prototype,n),i&&y(t,i),l}(a.P);(0,i.__decorate)([(0,l.IO)("textarea")],g.prototype,"formElement",void 0),(0,i.__decorate)([(0,l.Cb)({type:Number})],g.prototype,"rows",void 0),(0,i.__decorate)([(0,l.Cb)({type:Number})],g.prototype,"cols",void 0),(0,i.__decorate)([(0,l.Cb)({converter:{fromAttribute:function(e){return null!==e&&(""===e||e)},toAttribute:function(e){return"boolean"==typeof e?e?"":null:e}}})],g.prototype,"charCounter",void 0)},96791:function(e,t,n){var r;n.d(t,{W:function(){return a}});var o,i,a=(0,n(37500).iv)(r||(o=[".mdc-text-field{height:100%}.mdc-text-field__input{resize:none}"],i||(i=o.slice(0)),r=Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(i)}}))))},84912:function(e,t,n){function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){var t="function"==typeof Map?new Map:void 0;return u=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return l(e,arguments,f(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),c(r,e)},u(e)}function l(e,t,n){return l=s()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&c(o,n.prototype),o},l.apply(null,arguments)}function s(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(d,e);var t,n,r,u,l,h=(t=d,n=s(),function(){var e,r=f(t);if(n){var o=f(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return a(this,e)});function d(){return o(this,d),h.apply(this,arguments)}return r=d,l=[{key:"version",get:function(){return"23.1.5"}}],(u=null)&&i(r.prototype,u),l&&i(r,l),d}(u(HTMLElement));customElements.define("vaadin-material-styles",h);var d,p,y,v=n(70620);function b(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var _=(0,v.iv)(d||(d=b(["\n :host {\n /* Text colors */\n --material-body-text-color: var(--light-theme-text-color, rgba(0, 0, 0, 0.87));\n --material-secondary-text-color: var(--light-theme-secondary-color, rgba(0, 0, 0, 0.54));\n --material-disabled-text-color: var(--light-theme-disabled-color, rgba(0, 0, 0, 0.38));\n\n /* Primary colors */\n --material-primary-color: var(--primary-color, #6200ee);\n --material-primary-contrast-color: var(--dark-theme-base-color, #fff);\n --material-primary-text-color: var(--material-primary-color);\n\n /* Error colors */\n --material-error-color: var(--error-color, #b00020);\n --material-error-text-color: var(--material-error-color);\n\n /* Background colors */\n --material-background-color: var(--light-theme-background-color, #fff);\n --material-secondary-background-color: var(--light-theme-secondary-background-color, #f5f5f5);\n --material-disabled-color: rgba(0, 0, 0, 0.26);\n\n /* Divider colors */\n --material-divider-color: rgba(0, 0, 0, 0.12);\n\n /* Undocumented internal properties (prefixed with three dashes) */\n\n /* Text field tweaks */\n --_material-text-field-input-line-background-color: initial;\n --_material-text-field-input-line-opacity: initial;\n --_material-text-field-input-line-hover-opacity: initial;\n --_material-text-field-focused-label-opacity: initial;\n\n /* Button tweaks */\n --_material-button-raised-background-color: initial;\n --_material-button-outline-color: initial;\n\n /* Grid tweaks */\n --_material-grid-row-hover-background-color: initial;\n\n /* Split layout tweaks */\n --_material-split-layout-splitter-background-color: initial;\n\n background-color: var(--material-background-color);\n color: var(--material-body-text-color);\n }\n\n [theme~='dark'] {\n /* Text colors */\n --material-body-text-color: var(--dark-theme-text-color, rgba(255, 255, 255, 1));\n --material-secondary-text-color: var(--dark-theme-secondary-color, rgba(255, 255, 255, 0.7));\n --material-disabled-text-color: var(--dark-theme-disabled-color, rgba(255, 255, 255, 0.5));\n\n /* Primary colors */\n --material-primary-color: var(--light-primary-color, #7e3ff2);\n --material-primary-text-color: #b794f6;\n\n /* Error colors */\n --material-error-color: var(--error-color, #de2839);\n --material-error-text-color: var(--material-error-color);\n\n /* Background colors */\n --material-background-color: var(--dark-theme-background-color, #303030);\n --material-secondary-background-color: var(--dark-theme-secondary-background-color, #3b3b3b);\n --material-disabled-color: rgba(255, 255, 255, 0.3);\n\n /* Divider colors */\n --material-divider-color: rgba(255, 255, 255, 0.12);\n\n /* Undocumented internal properties (prefixed with three dashes) */\n\n /* Text field tweaks */\n --_material-text-field-input-line-background-color: #fff;\n --_material-text-field-input-line-opacity: 0.7;\n --_material-text-field-input-line-hover-opacity: 1;\n --_material-text-field-focused-label-opacity: 1;\n\n /* Button tweaks */\n --_material-button-raised-background-color: rgba(255, 255, 255, 0.08);\n --_material-button-outline-color: rgba(255, 255, 255, 0.2);\n\n /* Grid tweaks */\n --_material-grid-row-hover-background-color: rgba(255, 255, 255, 0.08);\n --_material-grid-row-selected-overlay-opacity: 0.16;\n\n /* Split layout tweaks */\n --_material-split-layout-splitter-background-color: rgba(255, 255, 255, 0.8);\n\n background-color: var(--material-background-color);\n color: var(--material-body-text-color);\n }\n\n a {\n color: inherit;\n }\n"])));(0,v.hC)("",_,{moduleId:"material-color-light"});var m=(0,v.iv)(p||(p=b(["\n :host {\n /* Text colors */\n --material-body-text-color: var(--dark-theme-text-color, rgba(255, 255, 255, 1));\n --material-secondary-text-color: var(--dark-theme-secondary-color, rgba(255, 255, 255, 0.7));\n --material-disabled-text-color: var(--dark-theme-disabled-color, rgba(255, 255, 255, 0.5));\n\n /* Primary colors */\n --material-primary-color: var(--light-primary-color, #7e3ff2);\n --material-primary-text-color: #b794f6;\n\n /* Error colors */\n --material-error-color: var(--error-color, #de2839);\n --material-error-text-color: var(--material-error-color);\n\n /* Background colors */\n --material-background-color: var(--dark-theme-background-color, #303030);\n --material-secondary-background-color: var(--dark-theme-secondary-background-color, #3b3b3b);\n --material-disabled-color: rgba(255, 255, 255, 0.3);\n\n /* Divider colors */\n --material-divider-color: rgba(255, 255, 255, 0.12);\n\n /* Undocumented internal properties (prefixed with three dashes) */\n\n /* Text field tweaks */\n --_material-text-field-input-line-background-color: #fff;\n --_material-text-field-input-line-opacity: 0.7;\n --_material-text-field-input-line-hover-opacity: 1;\n --_material-text-field-focused-label-opacity: 1;\n\n /* Button tweaks */\n --_material-button-raised-background-color: rgba(255, 255, 255, 0.08);\n --_material-button-outline-color: rgba(255, 255, 255, 0.2);\n\n /* Grid tweaks */\n --_material-grid-row-hover-background-color: rgba(255, 255, 255, 0.08);\n --_material-grid-row-selected-overlay-opacity: 0.16;\n\n /* Split layout tweaks */\n --_material-split-layout-splitter-background-color: rgba(255, 255, 255, 0.8);\n\n background-color: var(--material-background-color);\n color: var(--material-body-text-color);\n }\n"])));(0,v.hC)("",m,{moduleId:"material-color-dark"});var g,w=(0,v.iv)(y||(y=b(["\n :host {\n /* Text colors */\n --material-body-text-color: var(--light-theme-text-color, rgba(0, 0, 0, 0.87));\n --material-secondary-text-color: var(--light-theme-secondary-color, rgba(0, 0, 0, 0.54));\n --material-disabled-text-color: var(--light-theme-disabled-color, rgba(0, 0, 0, 0.38));\n\n /* Primary colors */\n --material-primary-color: var(--primary-color, #6200ee);\n --material-primary-contrast-color: var(--dark-theme-base-color, #fff);\n --material-primary-text-color: var(--material-primary-color);\n\n /* Error colors */\n --material-error-color: var(--error-color, #b00020);\n --material-error-text-color: var(--material-error-color);\n\n /* Background colors */\n --material-background-color: var(--light-theme-background-color, #fff);\n --material-secondary-background-color: var(--light-theme-secondary-background-color, #f5f5f5);\n --material-disabled-color: rgba(0, 0, 0, 0.26);\n\n /* Divider colors */\n --material-divider-color: rgba(0, 0, 0, 0.12);\n }\n"]))),O=document.createElement("template");O.innerHTML="<style>".concat(w.toString().replace(":host","html"),"</style>"),document.head.appendChild(O.content);var k,x,S,C=(0,v.iv)(g||(k=["\n /* prettier-ignore */\n :host {\n /* from http://codepen.io/shyndman/pen/c5394ddf2e8b2a5c9185904b57421cdb */\n --material-shadow-elevation-2dp: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);\n --material-shadow-elevation-3dp: 0 3px 4px 0 rgba(0, 0, 0, 0.14), 0 1px 8px 0 rgba(0, 0, 0, 0.12), 0 3px 3px -2px rgba(0, 0, 0, 0.4);\n --material-shadow-elevation-4dp: 0 4px 5px 0 rgba(0, 0, 0, 0.14), 0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.4);\n --material-shadow-elevation-6dp: 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 3px 5px -1px rgba(0, 0, 0, 0.4);\n --material-shadow-elevation-8dp: 0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.4);\n --material-shadow-elevation-12dp: 0 12px 16px 1px rgba(0, 0, 0, 0.14), 0 4px 22px 3px rgba(0, 0, 0, 0.12), 0 6px 7px -4px rgba(0, 0, 0, 0.4);\n --material-shadow-elevation-16dp: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.4);\n --material-shadow-elevation-24dp: 0 24px 38px 3px rgba(0, 0, 0, 0.14), 0 9px 46px 8px rgba(0, 0, 0, 0.12), 0 11px 15px -7px rgba(0, 0, 0, 0.4);\n }\n"],x||(x=k.slice(0)),g=Object.freeze(Object.defineProperties(k,{raw:{value:Object.freeze(x)}})))),E=document.createElement("template");E.innerHTML="<style>".concat(C.toString().replace(":host","html"),"</style>"),document.head.appendChild(E.content);var P=(0,v.iv)(S||(S=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n :host {\n top: 16px;\n right: 16px;\n /* TODO (@jouni): remove unnecessary multiplication after https://github.com/vaadin/vaadin-overlay/issues/90 is fixed */\n bottom: calc(1px * var(--vaadin-overlay-viewport-bottom) + 16px);\n left: 16px;\n }\n\n [part='overlay'] {\n background-color: var(--material-background-color);\n border-radius: 4px;\n box-shadow: var(--material-shadow-elevation-4dp);\n color: var(--material-body-text-color);\n font-family: var(--material-font-family);\n font-size: var(--material-body-font-size);\n font-weight: 400;\n }\n\n [part='content'] {\n padding: 8px 0;\n }\n\n [part='backdrop'] {\n opacity: 0.2;\n animation: 0.2s vaadin-overlay-backdrop-enter;\n will-change: opacity;\n }\n\n @keyframes vaadin-overlay-backdrop-enter {\n 0% {\n opacity: 0;\n }\n }\n"])));(0,v.hC)("",P,{moduleId:"material-overlay"}),(0,v.hC)("vaadin-overlay",P,{moduleId:"material-vaadin-overlay"});var I=n(20723),j=n(87529),R=n(52521),T=n(28426),A=function(e){return e.test(navigator.userAgent)},V=function(e){return e.test(navigator.platform)},L=(A(/Android/),A(/Chrome/)&&/Google Inc/.test(navigator.vendor),A(/Firefox/),V(/^iPad/)||V(/^Mac/)&&navigator.maxTouchPoints>1),z=V(/^iPhone/)||L,B=A(/^((?!chrome|android).)*safari/i),D=function(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}(),N=n(76389);function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}function $(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function H(e,t,n){return H="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=W(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},H(e,t,n||e)}function F(e,t){return F=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},F(e,t)}function q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=W(e);if(t){var o=W(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return U(this,n)}}function U(e,t){if(t&&("object"===M(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function W(e){return W=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},W(e)}var Y=(0,N.o)((function(e){return function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&F(e,t)}(i,e);var t,n,r,o=q(i);function i(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this)).__controllers=new Set,e}return t=i,(n=[{key:"connectedCallback",value:function(){H(W(i.prototype),"connectedCallback",this).call(this),this.__controllers.forEach((function(e){e.hostConnected&&e.hostConnected()}))}},{key:"disconnectedCallback",value:function(){H(W(i.prototype),"disconnectedCallback",this).call(this),this.__controllers.forEach((function(e){e.hostDisconnected&&e.hostDisconnected()}))}},{key:"addController",value:function(e){this.__controllers.add(e),void 0!==this.$&&this.isConnected&&e.hostConnected&&e.hostConnected()}},{key:"removeController",value:function(e){this.__controllers.delete(e)}}])&&$(t.prototype,n),r&&$(t,r),i}(e)}));function K(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var G=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,r=[{key:"detectScrollType",value:function(){var e=document.createElement("div");e.textContent="ABCD",e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e);var t="reverse";return e.scrollLeft>0?t="default":(e.scrollLeft=2,e.scrollLeft<2&&(t="negative")),document.body.removeChild(e),t}},{key:"getNormalizedScrollLeft",value:function(e,t,n){var r=n.scrollLeft;if("rtl"!==t||!e)return r;switch(e){case"negative":return n.scrollWidth-n.clientWidth+r;case"reverse":return n.scrollWidth-n.clientWidth-r;default:return r}}},{key:"setNormalizedScrollLeft",value:function(e,t,n,r){if("rtl"===t&&e)switch(e){case"negative":n.scrollLeft=n.clientWidth-n.scrollWidth+r;break;case"reverse":n.scrollLeft=n.scrollWidth-n.clientWidth-r;break;default:n.scrollLeft=r}else n.scrollLeft=r}}],(n=null)&&K(t.prototype,n),r&&K(t,r),e}();function X(e){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},X(e)}function Q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Z(e,t,n){return Z="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=re(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},Z(e,t,n||e)}function ee(e,t){return ee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ee(e,t)}function te(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=re(e);if(t){var o=re(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ne(this,n)}}function ne(e,t){if(t&&("object"===X(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function re(e){return re=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},re(e)}var oe,ie=[];function ae(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.getAttribute("dir");t?e.setAttribute("dir",t):null!=n&&e.removeAttribute("dir")}function ue(){return document.documentElement.getAttribute("dir")}new MutationObserver((function(){var e=ue();ie.forEach((function(t){ae(t,e)}))})).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});var le=function(e){return function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ee(e,t)}(i,e);var t,n,r,o=te(i);function i(){return Q(this,i),o.apply(this,arguments)}return t=i,n=[{key:"connectedCallback",value:function(){Z(re(i.prototype),"connectedCallback",this).call(this),this.hasAttribute("dir")||(this.__subscribe(),ae(this,ue(),null))}},{key:"attributeChangedCallback",value:function(e,t,n){if(Z(re(i.prototype),"attributeChangedCallback",this).call(this,e,t,n),"dir"===e){var r=ue(),o=n===r&&-1===ie.indexOf(this),a=!n&&t&&-1===ie.indexOf(this),u=n!==r&&t===r;o||a?(this.__subscribe(),ae(this,r,n)):u&&this.__subscribe(!1)}}},{key:"disconnectedCallback",value:function(){Z(re(i.prototype),"disconnectedCallback",this).call(this),this.__subscribe(!1),this.removeAttribute("dir")}},{key:"_valueToNodeAttribute",value:function(e,t,n){("dir"!==n||""!==t||e.hasAttribute("dir"))&&Z(re(i.prototype),"_valueToNodeAttribute",this).call(this,e,t,n)}},{key:"_attributeToProperty",value:function(e,t,n){"dir"!==e||t?Z(re(i.prototype),"_attributeToProperty",this).call(this,e,t,n):this.dir=""}},{key:"__subscribe",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];e?ie.includes(this)||ie.push(this):ie.includes(this)&&ie.splice(ie.indexOf(this),1)}},{key:"__getNormalizedScrollLeft",value:function(e){return G.getNormalizedScrollLeft(oe,this.getAttribute("dir")||"ltr",e)}},{key:"__setNormalizedScrollLeft",value:function(e,t){return G.setNormalizedScrollLeft(oe,this.getAttribute("dir")||"ltr",e,t)}}],r=[{key:"properties",get:function(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:function(e){return e||""},toAttribute:function(e){return""===e?null:e}}}}}},{key:"finalize",value:function(){Z(re(i),"finalize",this).call(this),oe||(oe=G.detectScrollType())}}],n&&J(t.prototype,n),r&&J(t,r),i}(e)};function se(e){return function(e){if(Array.isArray(e))return ce(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ce(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ce(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fe(e){var t=e.style;if("hidden"===t.visibility||"none"===t.display)return!0;var n=window.getComputedStyle(e);return"hidden"===n.visibility||"none"===n.display}function he(e){var t=e.length;if(t<2)return e;var n=Math.ceil(t/2);return function(e,t){for(var n,r,o,i,a=[];e.length>0&&t.length>0;)n=e[0],r=t[0],o=void 0,i=void 0,o=Math.max(n.tabIndex,0),i=Math.max(r.tabIndex,0),(0===o||0===i?i>o:o>i)?a.push(t.shift()):a.push(e.shift());return a.concat(e,t)}(he(e.slice(0,n)),he(e.slice(n)))}function de(e,t){if(e.nodeType!==Node.ELEMENT_NODE||fe(e))return!1;var n=e,r=function(e){if(!function(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]"))}(e))return-1;var t=e.getAttribute("tabindex")||0;return Number(t)}(n),o=r>0;r>=0&&t.push(n);return se("slot"===n.localName?n.assignedNodes({flatten:!0}):(n.shadowRoot||n).children).forEach((function(e){o=de(e,t)||o})),o}function pe(e){return e.getRootNode().activeElement===e}function ye(e){var t=[];return de(e,t)?he(t):t}function ve(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var be,_e=[],me=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}var t,n,r;return t=e,n=[{key:"hostConnected",value:function(){document.addEventListener("keydown",this.__onKeyDown)}},{key:"hostDisconnected",value:function(){document.removeEventListener("keydown",this.__onKeyDown)}},{key:"trapFocus",value:function(e){if(this.__trapNode=e,0===this.__focusableElements.length)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");_e.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus()}},{key:"releaseFocus",value:function(){this.__trapNode=null,_e.pop()}},{key:"__onKeyDown",value:function(e){if(this.__trapNode&&this===Array.from(_e).pop()&&"Tab"===e.key){e.preventDefault();var t=e.shiftKey;this.__focusNextElement(t)}}},{key:"__focusNextElement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.__focusableElements,n=e?-1:1,r=this.__focusedElementIndex,o=(t.length+r+n)%t.length,i=t[o];i.focus(),"input"===i.localName&&i.select()}},{key:"__focusableElements",get:function(){return ye(this.__trapNode)}},{key:"__focusedElementIndex",get:function(){var e=this.__focusableElements;return e.indexOf(e.filter(pe).pop())}}],n&&ve(t.prototype,n),r&&ve(t,r),e}();function ge(e){return ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ge(e)}function we(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Oe(e,t,n){return Oe="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ee(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},Oe(e,t,n||e)}function ke(e,t){return ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},ke(e,t)}function xe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ee(e);if(t){var o=Ee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Se(this,n)}}function Se(e,t){if(t&&("object"===ge(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ce(e)}function Ce(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ee(e){return Ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ee(e)}var Pe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ke(e,t)}(i,e);var t,n,r,o=xe(i);function i(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this))._boundMouseDownListener=e._mouseDownListener.bind(Ce(e)),e._boundMouseUpListener=e._mouseUpListener.bind(Ce(e)),e._boundOutsideClickListener=e._outsideClickListener.bind(Ce(e)),e._boundKeydownListener=e._keydownListener.bind(Ce(e)),e._observer=new I.o(Ce(e),(function(t){e._setTemplateFromNodes(t.addedNodes)})),e._boundIronOverlayCanceledListener=e._ironOverlayCanceled.bind(Ce(e)),z&&(e._boundIosResizeListener=function(){return e._detectIosNavbar()}),e.__focusTrapController=new me(Ce(e)),e}return t=i,n=[{key:"ready",value:function(){Oe(Ee(i.prototype),"ready",this).call(this),this._observer.flush(),this.addEventListener("click",(function(){})),this.$.backdrop.addEventListener("click",(function(){})),this.addController(this.__focusTrapController)}},{key:"_detectIosNavbar",value:function(){if(this.opened){var e=window.innerHeight,t=window.innerWidth>e,n=document.documentElement.clientHeight;t&&n>e?this.style.setProperty("--vaadin-overlay-viewport-bottom","".concat(n-e,"px")):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}}},{key:"_setTemplateFromNodes",value:function(e){this.template=e.filter((function(e){return e.localName&&"template"===e.localName}))[0]||this.template}},{key:"close",value:function(e){var t=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),t.defaultPrevented||(this.opened=!1)}},{key:"connectedCallback",value:function(){Oe(Ee(i.prototype),"connectedCallback",this).call(this),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}},{key:"disconnectedCallback",value:function(){Oe(Ee(i.prototype),"disconnectedCallback",this).call(this),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}},{key:"requestContentUpdate",value:function(){this.renderer&&this.renderer.call(this.owner,this.content,this.owner,this.model)}},{key:"_ironOverlayCanceled",value:function(e){e.preventDefault()}},{key:"_mouseDownListener",value:function(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}},{key:"_mouseUpListener",value:function(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}},{key:"_outsideClickListener",value:function(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside)return this._mouseDownInside=!1,void(this._mouseUpInside=!1);if(this._last){var t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}}},{key:"_keydownListener",value:function(e){if(this._last&&(!this.modeless||e.composedPath().includes(this.$.overlay))&&"Escape"===e.key){var t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}}},{key:"_ensureTemplatized",value:function(){this._setTemplateFromNodes(Array.from(this.children))}},{key:"_openedChanged",value:function(e,t){var n=this;this._instance||this._ensureTemplatized(),e?(this.__restoreFocusNode=this._getActiveElement(),this._animatedOpening(),(0,j.T8)(this,(function(){n.focusTrap&&n.__focusTrapController.trapFocus(n.$.overlay);var e=new CustomEvent("vaadin-overlay-open",{bubbles:!0});n.dispatchEvent(e)})),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):t&&(this.focusTrap&&this.__focusTrapController.releaseFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}},{key:"_hiddenChanged",value:function(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}},{key:"_shouldAnimate",value:function(){var e=getComputedStyle(this).getPropertyValue("animation-name");return!("none"===getComputedStyle(this).getPropertyValue("display"))&&e&&"none"!==e}},{key:"_enqueueAnimation",value:function(e,t){var n=this,r="__".concat(e,"Handler"),o=function e(o){o&&o.target!==n||(t(),n.removeEventListener("animationend",e),delete n[r])};this[r]=o,this.addEventListener("animationend",o)}},{key:"_flushAnimation",value:function(e){var t="__".concat(e,"Handler");"function"==typeof this[t]&&this[t]()}},{key:"_animatedOpening",value:function(){var e=this;this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",(function(){e._finishOpening()})):this._finishOpening()}},{key:"_attachOverlay",value:function(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}},{key:"_finishOpening",value:function(){document.addEventListener("iron-overlay-canceled",this._boundIronOverlayCanceledListener),this.removeAttribute("opening")}},{key:"_finishClosing",value:function(){document.removeEventListener("iron-overlay-canceled",this._boundIronOverlayCanceledListener),this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing")}},{key:"_animatedClosing",value:function(){var e=this;if(this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder){this._exitModalState();var t=this.restoreFocusNode||this.__restoreFocusNode;if(this.restoreFocusOnClose&&t){var n=this._getActiveElement();(n===document.body||this._deepContains(n))&&setTimeout((function(){return t.focus()})),this.__restoreFocusNode=null}this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",(function(){e._finishClosing()})):this._finishClosing()}}},{key:"_detachOverlay",value:function(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}},{key:"_last",get:function(){return this===i.__attachedInstances.pop()}},{key:"_modelessChanged",value:function(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}},{key:"_addGlobalListeners",value:function(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}},{key:"_enterModalState",value:function(){var e=this;"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),i.__attachedInstances.forEach((function(t){t!==e&&(t.shadowRoot.querySelector('[part="overlay"]').style.pointerEvents="none")}))}},{key:"_removeGlobalListeners",value:function(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}},{key:"_exitModalState",value:function(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);for(var e,t=i.__attachedInstances;(e=t.pop())&&(e===this||(e.shadowRoot.querySelector('[part="overlay"]').style.removeProperty("pointer-events"),e.modeless)););}},{key:"_removeOldContent",value:function(){var e=this;this.content&&this._contentNodes&&(this._observer.disconnect(),this._contentNodes.forEach((function(t){t.parentNode===e.content&&e.content.removeChild(t)})),this._originalContentPart&&(this.$.content.parentNode.replaceChild(this._originalContentPart,this.$.content),this.$.content=this._originalContentPart,this._originalContentPart=void 0),this._observer.connect(),this._contentNodes=void 0,this.content=void 0)}},{key:"_stampOverlayTemplate",value:function(e){this._removeOldContent(),e._Templatizer||(e._Templatizer=(0,R.Uv)(e,this,{forwardHostProp:function(e,t){this._instance&&this._instance.forwardHostProp(e,t)}})),this._instance=new e._Templatizer({}),this._contentNodes=Array.from(this._instance.root.childNodes);var t=e._templateRoot||(e._templateRoot=e.getRootNode());if(t!==document){this.$.content.shadowRoot||this.$.content.attachShadow({mode:"open"});var n=Array.from(t.querySelectorAll("style")).reduce((function(e,t){return e+t.textContent}),"");if(n=n.replace(/:host/g,":host-nomatch")){var r=document.createElement("style");r.textContent=n,this.$.content.shadowRoot.appendChild(r),this._contentNodes.unshift(r)}this.$.content.shadowRoot.appendChild(this._instance.root),this.content=this.$.content.shadowRoot}else this.appendChild(this._instance.root),this.content=this}},{key:"_removeNewRendererOrTemplate",value:function(e,t,n,r){e!==t?this.template=void 0:n!==r&&(this.renderer=void 0)}},{key:"_templateOrRendererChanged",value:function(e,t,n,r,o){if(e&&t)throw this._removeNewRendererOrTemplate(e,this._oldTemplate,t,this._oldRenderer),new Error("You should only use either a renderer or a template for overlay content");var i=this._oldOwner!==n||this._oldModel!==r;this._oldModel=r,this._oldOwner=n;var a=this._oldTemplate!==e;this._oldTemplate=e;var u=this._oldRenderer!==t;this._oldRenderer=t;var l=this._oldOpened!==o;this._oldOpened=o,u&&(this.content=this,this.content.innerHTML="",delete this.content._$litPart$),e&&a?this._stampOverlayTemplate(e):t&&(u||l||i)&&o&&this.requestContentUpdate()}},{key:"_getActiveElement",value:function(){for(var e=document.activeElement||document.body;e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}},{key:"_deepContains",value:function(e){if(this.contains(e))return!0;for(var t=e,n=e.ownerDocument;t&&t!==n&&t!==this;)t=t.parentNode||t.host;return t===this}},{key:"bringToFront",value:function(){var e=this,t="",n=i.__attachedInstances.filter((function(t){return t!==e})).pop();n&&(t=n.__zIndex+1),this.style.zIndex=t,this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}}],r=[{key:"template",get:function(){return(0,T.dy)(be||(be=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n <style>\n :host {\n z-index: 200;\n position: fixed;\n\n /* Despite of what the names say, <vaadin-overlay> is just a container\n for position/sizing/alignment. The actual overlay is the overlay part. */\n\n /* Default position constraints: the entire viewport. Note: themes can\n override this to introduce gaps between the overlay and the viewport. */\n top: 0;\n right: 0;\n bottom: var(--vaadin-overlay-viewport-bottom);\n left: 0;\n\n /* Use flexbox alignment for the overlay part. */\n display: flex;\n flex-direction: column; /* makes dropdowns sizing easier */\n /* Align to center by default. */\n align-items: center;\n justify-content: center;\n\n /* Allow centering when max-width/max-height applies. */\n margin: auto;\n\n /* The host is not clickable, only the overlay part is. */\n pointer-events: none;\n\n /* Remove tap highlight on touch devices. */\n -webkit-tap-highlight-color: transparent;\n\n /* CSS API for host */\n --vaadin-overlay-viewport-bottom: 0;\n }\n\n :host([hidden]),\n :host(:not([opened]):not([closing])) {\n display: none !important;\n }\n\n [part=\'overlay\'] {\n -webkit-overflow-scrolling: touch;\n overflow: auto;\n pointer-events: auto;\n\n /* Prevent overflowing the host in MSIE 11 */\n max-width: 100%;\n box-sizing: border-box;\n\n -webkit-tap-highlight-color: initial; /* reenable tap highlight inside */\n }\n\n [part=\'backdrop\'] {\n z-index: -1;\n content: \'\';\n background: rgba(0, 0, 0, 0.5);\n position: fixed;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n pointer-events: auto;\n }\n </style>\n\n <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>\n <div part="overlay" id="overlay" tabindex="0">\n <div part="content" id="content">\n <slot></slot>\n </div>\n </div>\n '])))}},{key:"is",get:function(){return"vaadin-overlay"}},{key:"properties",get:function(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:Element,renderer:Function,template:{type:Object,notify:!0},content:{type:Object,notify:!0},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0},model:Object,modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement},_mouseDownInside:{type:Boolean},_mouseUpInside:{type:Boolean},_instance:{type:Object},_originalContentPart:Object,_contentNodes:Array,_oldOwner:Element,_oldModel:Object,_oldTemplate:Object,_oldRenderer:Object,_oldOpened:Boolean}}},{key:"observers",get:function(){return["_templateOrRendererChanged(template, renderer, owner, model, opened)"]}},{key:"__attachedInstances",get:function(){return Array.from(document.body.children).filter((function(e){return e instanceof i&&!e.hasAttribute("closing")})).sort((function(e,t){return e.__zIndex-t.__zIndex||0}))}}],n&&we(t.prototype,n),r&&we(t,r),i}((0,v.Tb)(le(Y(T.H3))));customElements.define(Pe.is,Pe);var Ie,je=P;(0,v.hC)("",je,{moduleId:"material-menu-overlay"});var Re,Te=(0,v.iv)(Ie||(Ie=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n :host {\n --_vaadin-combo-box-items-container-border-width: 8px 0;\n --_vaadin-combo-box-items-container-border-style: solid;\n --_vaadin-combo-box-items-container-border-color: transparent;\n }\n\n [part='overlay'] {\n position: relative;\n overflow: visible;\n border-top-left-radius: 0;\n border-top-right-radius: 0;\n }\n\n [part='content'] {\n padding: 0;\n }\n\n :host([loading]) [part='loader'] {\n height: 2px;\n position: absolute;\n z-index: 1;\n top: -2px;\n left: 0;\n right: 0;\n background: var(--material-background-color)\n linear-gradient(\n 90deg,\n transparent 0%,\n transparent 20%,\n var(--material-primary-color) 20%,\n var(--material-primary-color) 40%,\n transparent 40%,\n transparent 60%,\n var(--material-primary-color) 60%,\n var(--material-primary-color) 80%,\n transparent 80%,\n transparent 100%\n )\n 0 0 / 400% 100% repeat-x;\n opacity: 0;\n animation: 3s linear infinite material-combo-box-loader-progress, 0.3s 0.1s both material-combo-box-loader-fade-in;\n }\n\n [part='loader']::before {\n content: '';\n display: block;\n height: 100%;\n opacity: 0.16;\n background: var(--material-primary-color);\n }\n\n @keyframes material-combo-box-loader-fade-in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n }\n\n @keyframes material-combo-box-loader-progress {\n 0% {\n background-position: 0 0;\n background-size: 300% 100%;\n }\n\n 33% {\n background-position: -100% 0;\n background-size: 400% 100%;\n }\n\n 67% {\n background-position: -200% 0;\n background-size: 250% 100%;\n }\n\n 100% {\n background-position: -300% 0;\n background-size: 300% 100%;\n }\n }\n\n /* RTL specific styles */\n\n @keyframes material-combo-box-loader-progress-rtl {\n 0% {\n background-position: 100% 0;\n background-size: 300% 100%;\n }\n\n 33% {\n background-position: 200% 0;\n background-size: 400% 100%;\n }\n\n 67% {\n background-position: 300% 0;\n background-size: 250% 100%;\n }\n\n 100% {\n background-position: 400% 0;\n background-size: 300% 100%;\n }\n }\n\n :host([loading][dir='rtl']) [part='loader'] {\n animation: 3s linear infinite material-combo-box-loader-progress-rtl,\n 0.3s 0.1s both material-combo-box-loader-fade-in;\n }\n"])));(0,v.hC)("vaadin-combo-box-overlay",[je,Te],{moduleId:"material-combo-box-overlay"});var Ae,Ve=(0,v.iv)(Re||(Re=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n :host {\n display: flex;\n align-items: center;\n box-sizing: border-box;\n min-height: 36px;\n padding: 8px 32px 8px 10px;\n overflow: hidden;\n font-family: var(--material-font-family);\n font-size: var(--material-small-font-size);\n line-height: 24px;\n }\n\n /* It's the list-box's responsibility to add the focus style */\n :host([focused]) {\n outline: none;\n }\n\n /* Checkmark */\n [part='checkmark']::before {\n display: var(--_material-item-selected-icon-display, none);\n content: '';\n font-family: material-icons;\n font-size: 24px;\n line-height: 1;\n font-weight: 400;\n width: 24px;\n text-align: center;\n margin-right: 10px;\n color: var(--material-secondary-text-color);\n flex: none;\n }\n\n :host([selected]) [part='checkmark']::before {\n content: var(--material-icons-check);\n }\n\n @media (any-hover: hover) {\n :host(:hover:not([disabled])) {\n background-color: var(--material-secondary-background-color);\n }\n\n :host([focused]:not([disabled])) {\n background-color: var(--material-divider-color);\n }\n }\n\n /* Disabled */\n :host([disabled]) {\n color: var(--material-disabled-text-color);\n cursor: default;\n pointer-events: none;\n }\n\n /* RTL specific styles */\n :host([dir='rtl']) {\n padding: 8px 10px 8px 32px;\n }\n\n :host([dir='rtl']) [part='checkmark']::before {\n margin-right: 0;\n margin-left: 10px;\n }\n"])));(0,v.hC)("vaadin-item",Ve,{moduleId:"material-item"});var Le,ze=(0,v.iv)(Ae||(Ae=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n :host {\n cursor: pointer;\n -webkit-tap-highlight-color: transparent;\n padding: 4px 10px;\n --_material-item-selected-icon-display: block;\n }\n"])));function Be(e){return Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Be(e)}function De(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Me(e,t,n){return Me="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=qe(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},Me(e,t,n||e)}function $e(e,t){return $e=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$e(e,t)}function He(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qe(e);if(t){var o=qe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fe(this,n)}}function Fe(e,t){if(t&&("object"===Be(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function qe(e){return qe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},qe(e)}(0,v.hC)("vaadin-combo-box-item",[Ve,ze],{moduleId:"material-combo-box-item"});var Ue=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$e(e,t)}(i,e);var t,n,r,o=He(i);function i(){return De(this,i),o.apply(this,arguments)}return t=i,n=[{key:"connectedCallback",value:function(){Me(qe(i.prototype),"connectedCallback",this).call(this),this._comboBox=this.parentNode.comboBox;var e=this._comboBox.getAttribute("dir");e&&this.setAttribute("dir",e)}},{key:"requestContentUpdate",value:function(){if(this.renderer){var e={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._comboBox,e)}}},{key:"__rendererOrItemChanged",value:function(e,t,n){void 0!==n&&void 0!==t&&(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()))}},{key:"__updateLabel",value:function(e,t){t||(this.textContent=e)}}],r=[{key:"template",get:function(){return(0,T.dy)(Le||(Le=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n <style>\n :host {\n display: block;\n }\n\n :host([hidden]) {\n display: none;\n }\n </style>\n <span part="checkmark" aria-hidden="true"></span>\n <div part="content">\n <slot></slot>\n </div>\n '])))}},{key:"is",get:function(){return"vaadin-combo-box-item"}},{key:"properties",get:function(){return{index:Number,item:Object,label:String,selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:Function,_oldRenderer:Function}}},{key:"observers",get:function(){return["__rendererOrItemChanged(renderer, index, item.*, selected, focused)","__updateLabel(label, renderer)"]}}],n&&Ne(t.prototype,n),r&&Ne(t,r),i}((0,v.Tb)(le(T.H3)));function We(e){return We="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},We(e)}function Ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ge(e,t,n){return Ge="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=et(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},Ge(e,t,n||e)}function Xe(e,t){return Xe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Xe(e,t)}function Qe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=et(e);if(t){var o=et(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Je(this,n)}}function Je(e,t){if(t&&("object"===We(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Ze(e)}function Ze(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function et(e){return et=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},et(e)}customElements.define(Ue.is,Ue);var tt,nt,rt={start:"top",end:"bottom"},ot={start:"left",end:"right"};function it(e){return it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},it(e)}function at(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ut(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function lt(e,t,n){return lt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ht(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},lt(e,t,n||e)}function st(e,t){return st=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},st(e,t)}function ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ht(e);if(t){var o=ht(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ft(this,n)}}function ft(e,t){if(t&&("object"===it(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ht(e){return ht=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ht(e)}(0,v.hC)("vaadin-combo-box-overlay",(0,v.iv)(tt||(tt=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n #overlay {\n width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));\n }\n\n [part='content'] {\n display: flex;\n flex-direction: column;\n height: 100%;\n }\n "]))),{moduleId:"vaadin-combo-box-overlay-styles"});var dt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&st(e,t)}(i,e);var t,n,r,o=ct(i);function i(){return at(this,i),o.apply(this,arguments)}return t=i,r=[{key:"is",get:function(){return"vaadin-combo-box-overlay"}},{key:"template",get:function(){return nt||(nt=lt(ht(i),"template",this).cloneNode(!0)).content.querySelector('[part~="overlay"]').removeAttribute("tabindex"),nt}},{key:"observers",get:function(){return["_setOverlayWidth(positionTarget, opened)"]}}],(n=[{key:"connectedCallback",value:function(){lt(ht(i.prototype),"connectedCallback",this).call(this);var e=this.__dataHost,t=e&&e.getRootNode().host;this._comboBox=t;var n=t&&t.getAttribute("dir");n&&this.setAttribute("dir",n)}},{key:"ready",value:function(){lt(ht(i.prototype),"ready",this).call(this);var e=document.createElement("div");e.setAttribute("part","loader");var t=this.shadowRoot.querySelector('[part~="content"]');t.parentNode.insertBefore(e,t)}},{key:"_outsideClickListener",value:function(e){var t=e.composedPath();t.includes(this.positionTarget)||t.includes(this)||this.close()}},{key:"_setOverlayWidth",value:function(e,t){if(e&&t){var n=this.localName;this.style.setProperty("--_".concat(n,"-default-width"),"".concat(e.clientWidth,"px"));var r=getComputedStyle(this._comboBox).getPropertyValue("--".concat(n,"-width"));""===r?this.style.removeProperty("--".concat(n,"-width")):this.style.setProperty("--".concat(n,"-width"),r),this._updatePosition()}}}])&&ut(t.prototype,n),r&&ut(t,r),i}(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xe(e,t)}(i,e);var t,n,r,o=Qe(i);function i(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this))._updatePosition=e._updatePosition.bind(Ze(e)),e}return t=i,n=[{key:"connectedCallback",value:function(){Ge(et(i.prototype),"connectedCallback",this).call(this),this.opened&&this.__addUpdatePositionEventListeners()}},{key:"disconnectedCallback",value:function(){Ge(et(i.prototype),"disconnectedCallback",this).call(this),this.__removeUpdatePositionEventListeners()}},{key:"__addUpdatePositionEventListeners",value:function(){var e=this;window.addEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes=function(e){for(var t=[];e;){if(e.nodeType===Node.DOCUMENT_NODE){t.push(e);break}e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?e=e.assignedSlot?e.assignedSlot:e.parentNode:(t.push(e),e=e.host)}return t}(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach((function(t){t.addEventListener("scroll",e._updatePosition,!0)}))}},{key:"__removeUpdatePositionEventListeners",value:function(){var e=this;window.removeEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach((function(t){t.removeEventListener("scroll",e._updatePosition,!0)})),this.__positionTargetAncestorRootNodes=null)}},{key:"__overlayOpenedChanged",value:function(e,t){var n=this;if(this.__removeUpdatePositionEventListeners(),e&&t&&this.__addUpdatePositionEventListeners(),e){var r=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach((function(e){n.__margins[e]=parseInt(r[e],10)}))),this.setAttribute("dir",r.direction),this._updatePosition(),requestAnimationFrame((function(){return n._updatePosition()}))}}},{key:"__isRTL",get:function(){return"rtl"===this.getAttribute("dir")}},{key:"__positionSettingsChanged",value:function(){this._updatePosition()}},{key:"_updatePosition",value:function(){if(this.positionTarget&&this.opened){var e=this.positionTarget.getBoundingClientRect(),t=this.__shouldAlignStartVertically(e);this.style.justifyContent=t?"flex-start":"flex-end";var n=this.__shouldAlignStartHorizontally(e,this.__isRTL),r=!this.__isRTL&&n||this.__isRTL&&!n;this.style.alignItems=r?"flex-start":"flex-end";var o=this.getBoundingClientRect(),i=this.__calculatePositionInOneDimension(e,o,this.noVerticalOverlap,rt,this,t),a=this.__calculatePositionInOneDimension(e,o,this.noHorizontalOverlap,ot,this,n);Object.assign(this.style,i,a),this.toggleAttribute("bottom-aligned",!t),this.toggleAttribute("top-aligned",t),this.toggleAttribute("end-aligned",!r),this.toggleAttribute("start-aligned",r)}}},{key:"__shouldAlignStartHorizontally",value:function(e,t){var n=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;var r=Math.min(window.innerWidth,document.documentElement.clientWidth),o=!t&&"start"===this.horizontalAlign||t&&"end"===this.horizontalAlign;return this.__shouldAlignStart(e,n,r,this.__margins,o,this.noHorizontalOverlap,ot)}},{key:"__shouldAlignStartVertically",value:function(e){var t=Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;var n=Math.min(window.innerHeight,document.documentElement.clientHeight),r="top"===this.verticalAlign;return this.__shouldAlignStart(e,t,n,this.__margins,r,this.noVerticalOverlap,rt)}},{key:"__shouldAlignStart",value:function(e,t,n,r,o,i,a){var u=n-e[i?a.end:a.start]-r[a.end],l=e[i?a.start:a.end]-r[a.start],s=o?u:l;return o===(s>(o?l:u)||s>t)}},{key:"__calculatePositionInOneDimension",value:function(e,t,n,r,o,i){var a,u=i?r.start:r.end,l=i?r.end:r.start,s=parseFloat(o.style[u]||getComputedStyle(o)[u]),c=t[i?r.start:r.end]-e[n===i?r.end:r.start];return Ye(a={},u,"".concat(s+c*(i?-1:1),"px")),Ye(a,l,""),a}}],r=[{key:"properties",get:function(){return{positionTarget:{type:Object,value:null},horizontalAlign:{type:String,value:"start"},verticalAlign:{type:String,value:"top"},noHorizontalOverlap:{type:Boolean,value:!1},noVerticalOverlap:{type:Boolean,value:!1}}}},{key:"observers",get:function(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap)","__overlayOpenedChanged(opened, positionTarget)"]}}],n&&Ke(t.prototype,n),r&&Ke(t,r),i}(Pe));customElements.define(dt.is,dt);var pt=0,yt=0,vt=[],bt=0,_t=!1,mt=document.createTextNode("");new window.MutationObserver((function(){_t=!1;for(var e=vt.length,t=0;t<e;t++){var n=vt[t];if(n)try{n()}catch(r){setTimeout((function(){throw r}))}}vt.splice(0,e),yt+=e})).observe(mt,{characterData:!0});var gt=function(e){return{run:function(t){return window.setTimeout(t,e)},cancel:function(e){window.clearTimeout(e)}}},wt={run:function(e){return window.requestAnimationFrame(e)},cancel:function(e){window.cancelAnimationFrame(e)}},Ot={run:function(e){return window.requestIdleCallback?window.requestIdleCallback(e):window.setTimeout(e,16)},cancel:function(e){window.cancelIdleCallback?window.cancelIdleCallback(e):window.clearTimeout(e)}},kt={run:function(e){_t||(_t=!0,mt.textContent=bt,bt+=1),vt.push(e);var t=pt;return pt+=1,t},cancel:function(e){var t=e-yt;if(t>=0){if(!vt[t])throw new Error("invalid async handle: ".concat(e));vt[t]=null}}};function xt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var St=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._asyncModule=null,this._callback=null,this._timer=null}var t,n,r;return t=e,r=[{key:"debounce",value:function(t,n,r){return t instanceof e?t._cancelAsync():t=new e,t.setConfig(n,r),t}}],(n=[{key:"setConfig",value:function(e,t){var n=this;this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run((function(){n._timer=null,Ct.delete(n),n._callback()}))}},{key:"cancel",value:function(){this.isActive()&&(this._cancelAsync(),Ct.delete(this))}},{key:"_cancelAsync",value:function(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}},{key:"flush",value:function(){this.isActive()&&(this.cancel(),this._callback())}},{key:"isActive",value:function(){return null!=this._timer}}])&&xt(t.prototype,n),r&&xt(t,r),e}(),Ct=new Set;var Et=function(){var e,t;do{t=void 0,t=Boolean(Ct.size),Ct.forEach((function(e){try{e.flush()}catch(t){setTimeout((function(){throw t}))}})),e=t}while(e)},Pt=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),It=Pt&&Pt[1]>=8,jt={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var e=this._virtualCount;return Math.max(0,e-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(e){e=this._clamp(e,0,this._maxVirtualStart),this._virtualStartVal=e},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(e){(e%=this._physicalCount)<0&&(e=this._physicalCount+e),this._physicalStartVal=e},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(e){this._physicalCountVal=e},get _optPhysicalSize(){return 0===this._viewportHeight?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return Boolean(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){var e=this,t=this._firstVisibleIndexVal;if(null==t){var n=this._physicalTop+this._scrollOffset;t=this._iterateItems((function(t,r){if((n+=e._getPhysicalSizeIncrement(t))>e._scrollPosition)return r}))||0,this._firstVisibleIndexVal=t}return t},get lastVisibleIndex(){var e=this,t=this._lastVisibleIndexVal;if(null==t){var n=this._physicalTop+this._scrollOffset;this._iterateItems((function(r,o){n<e._scrollBottom&&(t=o),n+=e._getPhysicalSizeIncrement(r)})),this._lastVisibleIndexVal=t}return t},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler:function(){var e=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),t=e-this._scrollPosition,n=t>=0;if(this._scrollPosition=e,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(t)>this._physicalSize&&this._physicalSize>0){t-=this._scrollOffset;var r=Math.round(t/this._physicalAverage);this._virtualStart+=r,this._physicalStart+=r,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){var o=this._getReusables(n);n?(this._physicalTop=o.physicalTop,this._virtualStart+=o.indexes.length,this._physicalStart+=o.indexes.length):(this._virtualStart-=o.indexes.length,this._physicalStart-=o.indexes.length),this._update(o.indexes,n?null:o.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),kt)}},_getReusables:function(e){var t,n,r,o=[],i=this._hiddenContentSize*this._ratio,a=this._virtualStart,u=this._virtualEnd,l=this._physicalCount,s=this._physicalTop+this._scrollOffset,c=this._physicalBottom+this._scrollOffset,f=this._scrollPosition,h=this._scrollBottom;for(e?(t=this._physicalStart,n=f-s):(t=this._physicalEnd,n=c-h);n-=r=this._getPhysicalSizeIncrement(t),!(o.length>=l||n<=i);)if(e){if(u+o.length+1>=this._virtualCount)break;if(s+r>=f-this._scrollOffset)break;o.push(t),s+=r,t=(t+1)%l}else{if(a-o.length<=0)break;if(s+this._physicalSize-r<=h)break;o.push(t),s-=r,t=0===t?l-1:t-1}return{indexes:o,physicalTop:s-this._scrollOffset}},_update:function(e,t){if(!(e&&0===e.length||0===this._physicalCount)){if(this._assignModels(e),this._updateMetrics(e),t)for(;t.length;){var n=t.pop();this._physicalTop-=this._getPhysicalSizeIncrement(n)}this._positionItems(),this._updateScrollerSize()}},_isClientFull:function(){return 0!==this._scrollBottom&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded:function(e){var t=this._clamp(this._physicalCount+e,3,this._virtualCount-this._virtualStart)-this._physicalCount,n=Math.round(.5*this._physicalCount);if(!(t<0)){if(t>0){var r=window.performance.now();[].push.apply(this._physicalItems,this._createPool(t));for(var o=0;o<t;o++)this._physicalSizes.push(0);this._physicalCount+=t,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=t),this._update(),this._templateCost=(window.performance.now()-r)/t,n=Math.round(.5*this._physicalCount)}this._virtualEnd>=this._virtualCount-1||0===n||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,n)),Ot):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,n),kt))}},_render:function(){if(this.isAttached&&this._isVisible)if(0!==this._physicalCount){var e=this._getReusables(!0);this._physicalTop=e.physicalTop,this._virtualStart+=e.indexes.length,this._physicalStart+=e.indexes.length,this._update(e.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(3))},_itemsChanged:function(e){"items"===e.path&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalCount=this._physicalCount||0,this._physicalItems=this._physicalItems||[],this._physicalSizes=this._physicalSizes||[],this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,wt))},_iterateItems:function(e,t){var n,r,o,i;if(2===arguments.length&&t){for(i=0;i<t.length;i++)if(n=t[i],r=this._computeVidx(n),null!=(o=e.call(this,n,r)))return o}else{for(n=this._physicalStart,r=this._virtualStart;n<this._physicalCount;n++,r++)if(null!=(o=e.call(this,n,r)))return o;for(n=0;n<this._physicalStart;n++,r++)if(null!=(o=e.call(this,n,r)))return o}},_computeVidx:function(e){return e>=this._physicalStart?this._virtualStart+(e-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+e},_updateMetrics:function(e){var t=this;Et();var n=0,r=0,o=this._physicalAverageCount,i=this._physicalAverage;this._iterateItems((function(e,o){r+=t._physicalSizes[e],t._physicalSizes[e]=t._physicalItems[e].offsetHeight,n+=t._physicalSizes[e],t._physicalAverageCount+=t._physicalSizes[e]?1:0}),e),this._physicalSize=this._physicalSize+n-r,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((i*o+n)/this._physicalAverageCount))},_positionItems:function(){var e=this;this._adjustScrollPosition();var t=this._physicalTop;this._iterateItems((function(n){e.translate3d(0,"".concat(t,"px"),0,e._physicalItems[n]),t+=e._physicalSizes[n]}))},_getPhysicalSizeIncrement:function(e){return this._physicalSizes[e]},_adjustScrollPosition:function(){var e=0===this._virtualStart?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(0!==e){this._physicalTop-=e;var t=this._scrollPosition;!It&&t>0&&this._resetScrollPosition(t-e)}},_resetScrollPosition:function(e){this.scrollTarget&&e>=0&&(this._scrollTop=e,this._scrollPosition=this._scrollTop)},_updateScrollerSize:function(e){this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage,((e=(e=e||0===this._scrollHeight)||this._scrollPosition>=this._estScrollHeight-this._physicalSize)||Math.abs(this._estScrollHeight-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height="".concat(this._estScrollHeight,"px"),this._scrollHeight=this._estScrollHeight)},scrollToIndex:function(e){if(!("number"!=typeof e||e<0||e>this.items.length-1)&&(Et(),0!==this._physicalCount)){e=this._clamp(e,0,this._virtualCount-1),(!this._isIndexRendered(e)||e>=this._maxVirtualStart)&&(this._virtualStart=e-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;for(var t=this._physicalStart,n=this._virtualStart,r=0,o=this._hiddenContentSize;n<e&&r<=o;)r+=this._getPhysicalSizeIncrement(t),t=(t+1)%this._physicalCount,n+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+r),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null}},_resetAverage:function(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler:function(){var e=this;this._debounce("_render",(function(){e._firstVisibleIndexVal=null,e._lastVisibleIndexVal=null,e._isVisible?(e.updateViewportBoundaries(),e.toggleScrollListener(!0),e._resetAverage(),e._render()):e.toggleScrollListener(!1)}),wt)},_isIndexRendered:function(e){return e>=this._virtualStart&&e<=this._virtualEnd},_getPhysicalIndex:function(e){return(this._physicalStart+(e-this._virtualStart))%this._physicalCount},_clamp:function(e,t,n){return Math.min(n,Math.max(t,e))},_debounce:function(e,t,n){var r;this._debouncers=this._debouncers||{},this._debouncers[e]=St.debounce(this._debouncers[e],n,t.bind(this)),r=this._debouncers[e],Ct.add(r)}};function Rt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Tt(e,t,n){return Tt="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=At(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},Tt(e,t,n||e)}function At(e){return At=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},At(e)}var Vt=1e3,Lt=function(){function e(t){var n=this,r=t.createElements,o=t.updateElement,i=t.scrollTarget,a=t.scrollContainer,u=t.elementsContainer,l=t.reorderElements;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isAttached=!0,this._vidxOffset=0,this.createElements=r,this.updateElement=o,this.scrollTarget=i,this.scrollContainer=a,this.elementsContainer=u||a,this.reorderElements=l,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500},this.__resizeObserver=new ResizeObserver((function(){return n._resizeHandler()})),"visible"===getComputedStyle(this.scrollTarget).overflow&&(this.scrollTarget.style.overflow="auto"),"static"===getComputedStyle(this.scrollContainer).position&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",(function(){return n._scrollHandler()})),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",(function(e){return n.__onWheel(e)})),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",(function(){return n.__mouseDown=!0})),this.scrollTarget.addEventListener("mouseup",(function(){n.__mouseDown=!1,n.__pendingReorder&&n.__reorderElements()})))}var t,n,r;return t=e,n=[{key:"scrollOffset",get:function(){return 0}},{key:"adjustedFirstVisibleIndex",get:function(){return this.firstVisibleIndex+this._vidxOffset}},{key:"adjustedLastVisibleIndex",get:function(){return this.lastVisibleIndex+this._vidxOffset}},{key:"scrollToIndex",value:function(t){if("number"==typeof t&&!isNaN(t)&&0!==this.size&&this.scrollTarget.offsetHeight){t=this._clamp(t,0,this.size-1);var n=this.__getVisibleElements().length,r=Math.floor(t/this.size*this._virtualCount);this._virtualCount-r<n?(r=this._virtualCount-(this.size-t),this._vidxOffset=this.size-this._virtualCount):r<n?t<Vt?(r=t,this._vidxOffset=0):(r=Vt,this._vidxOffset=t-r):this._vidxOffset=t-r,this.__skipNextVirtualIndexAdjust=!0,Tt(At(e.prototype),"scrollToIndex",this).call(this,r),this.adjustedFirstVisibleIndex!==t&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(t)||0),this._scrollHandler()}}},{key:"flush",value:function(){0!==this.scrollTarget.offsetHeight&&(this._resizeHandler(),Et(),this._scrollHandler(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}},{key:"update",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.size-1;this.__getVisibleElements().forEach((function(r){r.__virtualIndex>=t&&r.__virtualIndex<=n&&e.__updateElement(r,r.__virtualIndex,!0)}))}},{key:"__updateElement",value:function(e,t,n){e.style.paddingTop&&(e.style.paddingTop=""),this.__preventElementUpdates||e.__lastUpdatedIndex===t&&!n||(this.updateElement(e,t),e.__lastUpdatedIndex=t);var r=e.offsetHeight;if(0===r)e.style.paddingTop="".concat(this.__placeholderHeight,"px");else{this.__elementHeightQueue.push(r),this.__elementHeightQueue.shift();var o=this.__elementHeightQueue.filter((function(e){return void 0!==e}));this.__placeholderHeight=Math.round(o.reduce((function(e,t){return e+t}),0)/o.length)}}},{key:"__getIndexScrollOffset",value:function(e){var t=this.__getVisibleElements().find((function(t){return t.__virtualIndex===e}));return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}},{key:"size",get:function(){return this.__size},set:function(e){var t=this;if(e!==this.size){var n,r;if(this.__preventElementUpdates=!0,e>0&&(n=this.adjustedFirstVisibleIndex,r=this.__getIndexScrollOffset(n)),this.__size=e,Et(),this._itemsChanged({path:"items"}),Et(),e>0){n=Math.min(n,e-1),this.scrollToIndex(n);var o=this.__getIndexScrollOffset(n);void 0!==r&&void 0!==o&&(this._scrollTop+=r-o)}this.elementsContainer.children.length||requestAnimationFrame((function(){return t._resizeHandler()})),this.__preventElementUpdates=!1,this._resizeHandler(),Et()}}},{key:"_scrollTop",get:function(){return this.scrollTarget.scrollTop},set:function(e){this.scrollTarget.scrollTop=e}},{key:"items",get:function(){return{length:Math.min(this.size,1e5)}}},{key:"offsetHeight",get:function(){return this.scrollTarget.offsetHeight}},{key:"$",get:function(){return{items:this.scrollContainer}}},{key:"updateViewportBoundaries",value:function(){var e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL=Boolean("rtl"===e.direction),this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}},{key:"setAttribute",value:function(){}},{key:"_createPool",value:function(e){var t=this,n=this.createElements(e),r=document.createDocumentFragment();return n.forEach((function(e){e.style.position="absolute",r.appendChild(e),t.__resizeObserver.observe(e)})),this.elementsContainer.appendChild(r),n}},{key:"_assignModels",value:function(e){var t=this;this._iterateItems((function(e,n){var r=t._physicalItems[e];r.hidden=n>=t.size,r.hidden?delete r.__lastUpdatedIndex:(r.__virtualIndex=n+(t._vidxOffset||0),t.__updateElement(r,r.__virtualIndex))}),e)}},{key:"_isClientFull",value:function(){var t=this;return setTimeout((function(){return t.__clientFull=!0})),this.__clientFull||Tt(At(e.prototype),"_isClientFull",this).call(this)}},{key:"translate3d",value:function(e,t,n,r){r.style.transform="translateY(".concat(t,")")}},{key:"toggleScrollListener",value:function(){}},{key:"_scrollHandler",value:function(){var t=this;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));var n=this.scrollTarget.scrollTop-this._scrollPosition;if(Tt(At(e.prototype),"_scrollHandler",this).call(this),0!==this._physicalCount){var r=n>=0,o=this._getReusables(!r);o.indexes.length&&(this._physicalTop=o.physicalTop,r?(this._virtualStart-=o.indexes.length,this._physicalStart-=o.indexes.length):(this._virtualStart+=o.indexes.length,this._physicalStart+=o.indexes.length),this._resizeHandler())}this.reorderElements&&(this.__scrollReorderDebouncer=St.debounce(this.__scrollReorderDebouncer,gt(this.timeouts.SCROLL_REORDER),(function(){return t.__reorderElements()}))),this.__previousScrollTop=this._scrollTop}},{key:"__onWheel",value:function(e){var t=this;if(!e.ctrlKey&&!this._hasScrolledAncestor(e.target,e.deltaX,e.deltaY)){var n=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?n*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(n*=this._scrollPageHeight),this._deltaYAcc=this._deltaYAcc||0,this._wheelAnimationFrame)return this._deltaYAcc+=n,void e.preventDefault();n+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=St.debounce(this.__debouncerWheelAnimationFrame,wt,(function(){return t._wheelAnimationFrame=!1}));var r=Math.abs(e.deltaX)+Math.abs(n);this._canScroll(this.scrollTarget,e.deltaX,n)?(e.preventDefault(),this.scrollTarget.scrollTop+=n,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=St.debounce(this._debouncerIgnoreNewWheel,gt(this.timeouts.IGNORE_WHEEL),(function(){return t._ignoreNewWheel=!1}))):this._hasResidualMomentum&&r<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():r>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=r}}},{key:"_hasScrolledAncestor",value:function(e,t,n){return e!==this.scrollTarget&&e!==this.scrollTarget.getRootNode().host&&(!(!this._canScroll(e,t,n)||-1===["auto","scroll"].indexOf(getComputedStyle(e).overflow))||(e!==this&&e.parentElement?this._hasScrolledAncestor(e.parentElement,t,n):void 0))}},{key:"_canScroll",value:function(e,t,n){return n>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||n<0&&e.scrollTop>0||t>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||t<0&&e.scrollLeft>0}},{key:"_getScrollLineHeight",value:function(){var e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);var t=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),t?window.parseInt(t):void 0}},{key:"__getVisibleElements",value:function(){return Array.from(this.elementsContainer.children).filter((function(e){return!e.hidden}))}},{key:"__reorderElements",value:function(){var e=this;if(this.__mouseDown)this.__pendingReorder=!0;else{this.__pendingReorder=!1;var t=this._virtualStart+(this._vidxOffset||0),n=this.__getVisibleElements(),r=n.find((function(t){return t.contains(e.elementsContainer.getRootNode().activeElement)||t.contains(e.scrollTarget.getRootNode().activeElement)}))||n[0];if(r){var o=r.__virtualIndex-t,i=n.indexOf(r)-o;if(i>0)for(var a=0;a<i;a++)this.elementsContainer.appendChild(n[a]);else if(i<0)for(var u=n.length+i;u<n.length;u++)this.elementsContainer.insertBefore(n[u],n[0]);if(B){var l=this.scrollTarget.style.transform;this.scrollTarget.style.transform="translateZ(0)",setTimeout((function(){return e.scrollTarget.style.transform=l}))}}}}},{key:"_adjustVirtualIndexOffset",value:function(t){if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(t)>1e4){var n=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.offsetHeight),r=n*this.size;this._vidxOffset=Math.round(r-n*this._virtualCount)}else{var o=this._vidxOffset;0===this._scrollTop?(this._vidxOffset=0,o!==this._vidxOffset&&Tt(At(e.prototype),"scrollToIndex",this).call(this,0)):this.firstVisibleIndex<1e3&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,100),Tt(At(e.prototype),"scrollToIndex",this).call(this,this.firstVisibleIndex+(o-this._vidxOffset)));var i=this.size-this._virtualCount;this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=i,o!==this._vidxOffset&&Tt(At(e.prototype),"scrollToIndex",this).call(this,this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-1e3&&this._vidxOffset<i&&(this._vidxOffset+=Math.min(i-this._vidxOffset,100),Tt(At(e.prototype),"scrollToIndex",this).call(this,this.firstVisibleIndex-(this._vidxOffset-o)))}}}],n&&Rt(t.prototype,n),r&&Rt(t,r),e}();function zt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}Object.setPrototypeOf(Lt.prototype,jt);var Bt=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.__adapter=new Lt(t)}var t,n,r;return t=e,n=[{key:"size",get:function(){return this.__adapter.size},set:function(e){this.__adapter.size=e}},{key:"scrollToIndex",value:function(e){this.__adapter.scrollToIndex(e)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.size-1;this.__adapter.update(e,t)}},{key:"flush",value:function(){this.__adapter.flush()}},{key:"firstVisibleIndex",get:function(){return this.__adapter.adjustedFirstVisibleIndex}},{key:"lastVisibleIndex",get:function(){return this.__adapter.adjustedLastVisibleIndex}}],n&&zt(t.prototype,n),r&&zt(t,r),e}();function Dt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Nt,Mt=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"toString",value:function(){return""}}])&&Dt(t.prototype,n),r&&Dt(t,r),e}();function $t(e){return $t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$t(e)}function Ht(e){return function(e){if(Array.isArray(e))return Ft(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ft(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ft(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ut(e,t,n){return Ut="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Xt(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},Ut(e,t,n||e)}function Wt(e,t){return Wt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Wt(e,t)}function Yt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Xt(e);if(t){var o=Xt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Kt(this,n)}}function Kt(e,t){if(t&&("object"===$t(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Gt(e)}function Gt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xt(e){return Xt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xt(e)}var Qt,Jt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Wt(e,t)}(i,e);var t,n,r,o=Yt(i);function i(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this)).__boundOnItemClick=e.__onItemClick.bind(Gt(e)),e}return t=i,n=[{key:"__openedChanged",value:function(e){e&&this.requestContentUpdate()}},{key:"ready",value:function(){Ut(Xt(i.prototype),"ready",this).call(this),this.__hostTagName=this.constructor.is.replace("-scroller",""),this.setAttribute("role","listbox"),this.addEventListener("click",(function(e){return e.stopPropagation()})),this.__patchWheelOverScrolling(),this.__virtualizer=new Bt({createElements:this.__createElements.bind(this),updateElement:this.__updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector})}},{key:"requestContentUpdate",value:function(){this.__virtualizer&&this.__virtualizer.update()}},{key:"scrollIntoView",value:function(e){var t=this;if(this.opened&&e>=0){var n=this._visibleItemsCount(),r=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),r=e-n+1):e>this.__virtualizer.firstVisibleIndex&&(r=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,r));var o=Ht(this.children).find((function(e){return!e.hidden&&e.index===t.__virtualizer.lastVisibleIndex}));if(o&&e===o.index){var i=o.getBoundingClientRect(),a=this.getBoundingClientRect(),u=i.bottom-a.bottom+this._viewportTotalPaddingBottom;u>0&&(this.scrollTop+=u)}}}},{key:"__getAriaRole",value:function(e){return void 0!==e&&"option"}},{key:"__getAriaSelected",value:function(e,t){return this.__isItemFocused(e,t).toString()}},{key:"__isItemFocused",value:function(e,t){return e===t}},{key:"__isItemSelected",value:function(e,t,n){return!(e instanceof Mt)&&(n&&void 0!==e&&void 0!==t?this.get(n,e)===this.get(n,t):e===t)}},{key:"__itemsChanged",value:function(e){this.__virtualizer&&e&&(this.__virtualizer.size=e.length,this.__virtualizer.flush(),this.setAttribute("aria-setsize",e.length),this.requestContentUpdate())}},{key:"__loadingChanged",value:function(e){var t=this;this.__virtualizer&&!e&&setTimeout((function(){return t.requestContentUpdate()}))}},{key:"__focusedIndexChanged",value:function(e,t){this.__virtualizer&&(e!==t&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e))}},{key:"__rendererChanged",value:function(e,t){(e||t)&&this.requestContentUpdate()}},{key:"__createElements",value:function(e){var t=this;return Ht(Array(e)).map((function(){var e=document.createElement("".concat(t.__hostTagName,"-item"));return e.addEventListener("click",t.__boundOnItemClick),e.tabIndex="-1",e.style.width="100%",e}))}},{key:"__updateElement",value:function(e,t){var n=this.items[t],r=this.focusedIndex;e.setProperties({item:n,index:this.__requestItemByIndex(n,t),label:this.getItemLabel(n),selected:this.__isItemSelected(n,this.selectedItem,this.itemIdPath),renderer:this.renderer,focused:this.__isItemFocused(r,t)}),e.id="".concat(this.__hostTagName,"-item-").concat(t),e.setAttribute("role",this.__getAriaRole(t)),e.setAttribute("aria-selected",this.__getAriaSelected(r,t)),e.setAttribute("aria-posinset",t+1),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme")}},{key:"__onItemClick",value:function(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}},{key:"__patchWheelOverScrolling",value:function(){var e=this;this.$.selector.addEventListener("wheel",(function(t){var n=0===e.scrollTop,r=e.scrollHeight-e.scrollTop-e.clientHeight<=1;(n&&t.deltaY<0||r&&t.deltaY>0)&&t.preventDefault()}))}},{key:"_viewportTotalPaddingBottom",get:function(){if(void 0===this._cachedViewportTotalPaddingBottom){var e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map((function(e){return parseInt(e,10)})).reduce((function(e,t){return e+t}))}return this._cachedViewportTotalPaddingBottom}},{key:"__requestItemByIndex",value:function(e,t){return e instanceof Mt&&void 0!==t&&this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:t,currentScrollerPos:this._oldScrollerPosition}})),t}},{key:"_visibleItemsCount",value:function(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}}],r=[{key:"is",get:function(){return"vaadin-combo-box-scroller"}},{key:"template",get:function(){return(0,T.dy)(Nt||(Nt=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(["\n <style>\n :host {\n display: block;\n min-height: 1px;\n overflow: auto;\n\n /* Fixes item background from getting on top of scrollbars on Safari */\n transform: translate3d(0, 0, 0);\n\n /* Enable momentum scrolling on iOS */\n -webkit-overflow-scrolling: touch;\n\n /* Fixes scrollbar disappearing when 'Show scroll bars: Always' enabled in Safari */\n box-shadow: 0 0 0 white;\n }\n\n #selector {\n border-width: var(--_vaadin-combo-box-items-container-border-width);\n border-style: var(--_vaadin-combo-box-items-container-border-style);\n border-color: var(--_vaadin-combo-box-items-container-border-color);\n }\n </style>\n <div id=\"selector\">\n <slot></slot>\n </div>\n "])))}},{key:"properties",get:function(){return{items:{type:Array,observer:"__itemsChanged"},focusedIndex:{type:Number,observer:"__focusedIndexChanged"},loading:{type:Boolean,observer:"__loadingChanged"},opened:{type:Boolean,observer:"__openedChanged"},selectedItem:{type:Object},itemIdPath:{type:String},comboBox:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,observer:"__rendererChanged"},theme:{type:String}}}}],n&&qt(t.prototype,n),r&&qt(t,r),i}(T.H3);function Zt(e){return Zt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zt(e)}function en(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tn(e,t,n){return tn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=an(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},tn(e,t,n||e)}function nn(e,t){return nn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},nn(e,t)}function rn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=an(e);if(t){var o=an(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return on(this,n)}}function on(e,t){if(t&&("object"===Zt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function an(e){return an=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},an(e)}customElements.define(Jt.is,Jt);var un=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nn(e,t)}(i,e);var t,n,r,o=rn(i);function i(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),e=o.call(this);var t=i._uniqueId=1+i._uniqueId||0;return e.scrollerId="".concat(e.localName,"-scroller-").concat(t),e}return t=i,n=[{key:"ready",value:function(){var e=this;tn(an(i.prototype),"ready",this).call(this),this.__hostTagName=this.constructor.is.replace("-dropdown","");var t=this.$.overlay,n="".concat(this.__hostTagName,"-scroller");t.renderer=function(e){if(!e.firstChild){var t=document.createElement(n);e.appendChild(t)}},t.requestContentUpdate(),this._scroller=t.content.querySelector(n),this._scroller.id=this.scrollerId,this._scroller.getItemLabel=this.getItemLabel.bind(this),this._scroller.comboBox=this.getRootNode().host,this._scroller.addEventListener("selection-changed",(function(t){return e._forwardScrollerEvent(t)})),this._scroller.addEventListener("index-requested",(function(t){return e._forwardScrollerEvent(t)})),t.addEventListener("touchend",(function(t){return e._fireTouchAction(t)})),t.addEventListener("touchmove",(function(t){return e._fireTouchAction(t)})),t.addEventListener("mousedown",(function(e){return e.preventDefault()})),t.addEventListener("vaadin-overlay-outside-click",(function(e){e.preventDefault()}))}},{key:"disconnectedCallback",value:function(){tn(an(i.prototype),"disconnectedCallback",this).call(this),this._overlayOpened=!1}},{key:"_fireTouchAction",value:function(e){this.dispatchEvent(new CustomEvent("vaadin-overlay-touch-action",{detail:{sourceEvent:e}}))}},{key:"_forwardScrollerEvent",value:function(e){this.dispatchEvent(new CustomEvent(e.type,{detail:e.detail}))}},{key:"_openedChanged",value:function(e,t){e?(this._scroller.style.maxHeight=getComputedStyle(this).getPropertyValue("--".concat(this.__hostTagName,"-overlay-max-height"))||"65vh",this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0}))):t&&!this.__emptyItems&&this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0}))}},{key:"_openedOrItemsChanged",value:function(e,t,n){var r=t&&t.length;r||(this.__emptyItems=!0),this._overlayOpened=!(!e||!n&&!r),this.__emptyItems=!1}},{key:"_getFocusedItem",value:function(e){if(e>=0)return this._items[e]}},{key:"indexOfLabel",value:function(e){if(this._items&&e)for(var t=0;t<this._items.length;t++)if(this.getItemLabel(this._items[t]).toString().toLowerCase()===e.toString().toLowerCase())return t;return-1}},{key:"getItemLabel",value:function(e,t){t=t||this._itemLabelPath;var n=e&&t?this.get(t,e):void 0;return null==n&&(n=e?e.toString():""),n}},{key:"_scrollIntoView",value:function(e){this._scroller&&this._scroller.scrollIntoView(e)}},{key:"adjustScrollPosition",value:function(){this.opened&&this._items&&this._scrollIntoView(this._focusedIndex)}},{key:"__updateScroller",value:function(e,t,n,r,o,i,a,u,l){e&&e.setProperties({items:n?t:[],opened:n,loading:r,selectedItem:o,itemIdPath:i,focusedIndex:a,renderer:u,theme:l})}},{key:"_isOverlayHidden",value:function(){return!(this.loading||this._items&&this._items.length)}}],r=[{key:"is",get:function(){return"vaadin-combo-box-dropdown"}},{key:"template",get:function(){return(0,T.dy)(Qt||(Qt=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n <vaadin-combo-box-overlay\n id="overlay"\n hidden$="[[_isOverlayHidden(_items.*, loading)]]"\n loading$="[[loading]]"\n opened="{{_overlayOpened}}"\n theme$="[[theme]]"\n position-target="[[positionTarget]]"\n no-vertical-overlap\n restore-focus-on-close="[[restoreFocusOnClose]]"\n restore-focus-node="[[restoreFocusNode]]"\n ></vaadin-combo-box-overlay>\n '])))}},{key:"properties",get:function(){return{opened:Boolean,positionTarget:{type:Object},renderer:Function,loading:{type:Boolean,value:!1,reflectToAttribute:!0},theme:String,_selectedItem:{type:Object},_items:{type:Array},_focusedIndex:{type:Number,value:-1},focusedItem:{type:String,computed:"_getFocusedItem(_focusedIndex)"},_itemLabelPath:{type:String,value:"label"},_itemValuePath:{type:String,value:"value"},_scroller:Object,_itemIdPath:String,_overlayOpened:{type:Boolean,observer:"_openedChanged"}}}},{key:"observers",get:function(){return["_openedOrItemsChanged(opened, _items, loading)","__updateScroller(_scroller, _items, opened, loading, _selectedItem, _itemIdPath, _focusedIndex, renderer, theme)"]}}],n&&en(t.prototype,n),r&&en(t,r),i}(T.H3);customElements.define(un.is,un);var ln=n(67130);function sn(e){return sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sn(e)}function cn(e){return function(e){if(Array.isArray(e))return fn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return fn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fn(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pn(e,t,n){return pn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_n(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},pn(e,t,n||e)}function yn(e,t){return yn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},yn(e,t)}function vn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_n(e);if(t){var o=_n(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return bn(this,n)}}function bn(e,t){if(t&&("object"===sn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _n(e){return _n=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},_n(e)}function mn(e){return mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},mn(e)}function gn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function On(e,t,n){return On="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Cn(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},On(e,t,n||e)}function kn(e,t){return kn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},kn(e,t)}function xn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Cn(e);if(t){var o=Cn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Sn(this,n)}}function Sn(e,t){if(t&&("object"===mn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Cn(e){return Cn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Cn(e)}var En=(0,N.o)((function(e){return function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&kn(e,t)}(i,e);var t,n,r,o=xn(i);function i(){return gn(this,i),o.apply(this,arguments)}return t=i,r=[{key:"properties",get:function(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}}],(n=[{key:"_disabledChanged",value:function(e){this._setAriaDisabled(e)}},{key:"_setAriaDisabled",value:function(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}},{key:"click",value:function(){this.disabled||On(Cn(i.prototype),"click",this).call(this)}}])&&wn(t.prototype,n),r&&wn(t,r),i}(e)}));function Pn(e){return Pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pn(e)}function In(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rn(e,t,n){return Rn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ln(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},Rn(e,t,n||e)}function Tn(e,t){return Tn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Tn(e,t)}function An(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ln(e);if(t){var o=Ln(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vn(this,n)}}function Vn(e,t){if(t&&("object"===Pn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ln(e){return Ln=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ln(e)}var zn=(0,N.o)((function(e){return function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Tn(e,t)}(i,e);var t,n,r,o=An(i);function i(){return In(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"ready",value:function(){var e=this;Rn(Ln(i.prototype),"ready",this).call(this),this.addEventListener("keydown",(function(t){e._onKeyDown(t)})),this.addEventListener("keyup",(function(t){e._onKeyUp(t)}))}},{key:"_onKeyDown",value:function(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e)}}},{key:"_onKeyUp",value:function(e){}},{key:"_onEnter",value:function(e){}},{key:"_onEscape",value:function(e){}}])&&jn(t.prototype,n),r&&jn(t,r),i}(e)}));function Bn(e){return Bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Bn(e)}function Dn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Nn(e,t){return Nn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Nn(e,t)}function Mn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fn(e);if(t){var o=Fn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $n(this,n)}}function $n(e,t){if(t&&("object"===Bn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Hn(e)}function Hn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fn(e){return Fn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Fn(e)}var qn=(0,N.o)((function(e){return function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Nn(e,t)}(i,e);var t,n,r,o=Mn(i);function i(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this))._boundOnInput=e._onInput.bind(Hn(e)),e._boundOnChange=e._onChange.bind(Hn(e)),e}return t=i,r=[{key:"properties",get:function(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0}}}}],(n=[{key:"clear",value:function(){this.value=""}},{key:"_addInputListeners",value:function(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}},{key:"_removeInputListeners",value:function(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}},{key:"_forwardInputValue",value:function(e){this.inputElement&&(this.inputElement.value=null!=e?e:"")}},{key:"_inputElementChanged",value:function(e,t){e?this._addInputListeners(e):t&&this._removeInputListeners(t)}},{key:"_onInput",value:function(e){this.__userInput=e.isTrusted,this.value=e.target.value,this.__userInput=!1}},{key:"_onChange",value:function(e){}},{key:"_toggleHasValue",value:function(e){this.toggleAttribute("has-value",e)}},{key:"_valueChanged",value:function(e,t){this._toggleHasValue(""!==e&&null!=e),""===e&&void 0===t||this.__userInput||this._forwardInputValue(e)}}])&&Dn(t.prototype,n),r&&Dn(t,r),i}(e)}));function Un(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Wn=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.host=t,t.addEventListener("opened-changed",(function(){t.opened||n.__setVirtualKeyboardEnabled(!1)})),t.addEventListener("blur",(function(){return n.__setVirtualKeyboardEnabled(!0)})),t.addEventListener("touchstart",(function(){return n.__setVirtualKeyboardEnabled(!0)}))}var t,n,r;return t=e,(n=[{key:"__setVirtualKeyboardEnabled",value:function(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}])&&Un(t.prototype,n),r&&Un(t,r),e}();function Yn(e){return Yn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Yn(e)}function Kn(e){return function(e){if(Array.isArray(e))return Gn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Gn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gn(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Gn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Xn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qn(e,t,n){return Qn="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=nr(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},Qn(e,t,n||e)}function Jn(e,t){return Jn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Jn(e,t)}function Zn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nr(e);if(t){var o=nr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return er(this,n)}}function er(e,t){if(t&&("object"===Yn(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return tr(e)}function tr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nr(e){return nr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},nr(e)}var rr;function or(e){return or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},or(e)}function ir(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ar(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ur(e,t,n){return ur="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=fr(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},ur(e,t,n||e)}function lr(e,t){return lr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},lr(e,t)}function sr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=fr(e);if(t){var o=fr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cr(this,n)}}function cr(e,t){if(t&&("object"===or(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function fr(e){return fr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},fr(e)}var hr,dr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&lr(e,t)}(i,e);var t,n,r,o=sr(i);function i(){return ir(this,i),o.apply(this,arguments)}return t=i,r=[{key:"is",get:function(){return"vaadin-combo-box-light"}},{key:"template",get:function(){return(0,T.dy)(rr||(rr=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n <style>\n :host([opened]) {\n pointer-events: auto;\n }\n </style>\n\n <slot></slot>\n\n <vaadin-combo-box-dropdown\n id="dropdown"\n opened="[[opened]]"\n position-target="[[inputElement]]"\n restore-focus-on-close="[[__restoreFocusOnClose]]"\n restore-focus-node="[[inputElement]]"\n renderer="[[renderer]]"\n _focused-index="[[_focusedIndex]]"\n _item-id-path="[[itemIdPath]]"\n _item-label-path="[[itemLabelPath]]"\n loading="[[loading]]"\n theme="[[_theme]]"\n ></vaadin-combo-box-dropdown>\n '])))}},{key:"properties",get:function(){return{attrForValue:{type:String,value:"value"}}}}],(n=[{key:"clearElement",get:function(){return this.querySelector(".clear-button")}},{key:"ready",value:function(){var e=this;ur(fr(i.prototype),"ready",this).call(this),this._toggleElement=this.querySelector(".toggle-button"),(0,j.T8)(this,(function(){e._setInputElement(e.querySelector("vaadin-text-field,.input")),e._revertInputValue()}))}},{key:"checkValidity",value:function(){return this.inputElement.validate?this.inputElement.validate():ur(fr(i.prototype),"checkValidity",this).call(this)}},{key:"_propertyForValue",get:function(){return(0,ln.z)(this.attrForValue)}},{key:"_nativeInput",get:function(){var e=this.inputElement;if(e){if(e instanceof HTMLInputElement)return e;var t=e.querySelector("input");if(t)return t;if(e.shadowRoot){var n=e.shadowRoot.querySelector("input");if(n)return n}}}},{key:"_isClearButton",value:function(e){return ur(fr(i.prototype),"_isClearButton",this).call(this,e)||"input"===e.type&&!e.isTrusted||"clear-button"===e.composedPath()[0].getAttribute("part")}},{key:"_onChange",value:function(e){ur(fr(i.prototype),"_onChange",this).call(this,e),this._isClearButton(e)&&this._clear()}}])&&ar(t.prototype,n),r&&ar(t,r),i}(function(e){return function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&yn(e,t)}(i,e);var t,n,r,o=vn(i);function i(){return hn(this,i),o.apply(this,arguments)}return t=i,n=[{key:"ready",value:function(){var e=this;pn(_n(i.prototype),"ready",this).call(this),this.$.dropdown.addEventListener("index-requested",(function(t){var n=t.detail.index,r=t.detail.currentScrollerPos,o=Math.floor(1.5*e.pageSize);if(!e._shouldSkipIndex(n,o,r)&&void 0!==n){var i=e._getPageForIndex(n);e._shouldLoadPage(i)&&e._loadPage(i)}}))}},{key:"_dataProviderFilterChanged",value:function(e){void 0!==this.__previousDataProviderFilter||""!==e?this.__previousDataProviderFilter!==e&&(this.__previousDataProviderFilter=e,this._pendingRequests={},this.loading=this._shouldFetchData(),this.size=void 0,this.clearCache()):this.__previousDataProviderFilter=e}},{key:"_shouldFetchData",value:function(){return!!this.dataProvider&&(this.opened||this.filter&&this.filter.length)}},{key:"_ensureFirstPage",value:function(e){e&&this._shouldLoadPage(0)&&this._loadPage(0)}},{key:"_shouldSkipIndex",value:function(e,t,n){return 0!==n&&e>=n-t&&e<=n+t}},{key:"_shouldLoadPage",value:function(e){if(!this.filteredItems||this._forceNextRequest)return this._forceNextRequest=!1,!0;var t=this.filteredItems[e*this.pageSize];return void 0!==t?t instanceof Mt:void 0===this.size}},{key:"_loadPage",value:function(e){var t=this;if(!this._pendingRequests[e]&&this.dataProvider){this.loading=!0;var n={page:e,pageSize:this.pageSize,filter:this.filter},r=function r(o,i){if(t._pendingRequests[e]===r){var a=t.filteredItems?cn(t.filteredItems):[];a.splice.apply(a,[n.page*n.pageSize,o.length].concat(cn(o))),t.filteredItems=a,t._isValidValue(t.value)&&t._getItemValue(t.selectedItem)!==t.value&&t._selectItemForValue(t.value),t.opened||t.hasAttribute("focused")||t._commitValue(),t.size=i,delete t._pendingRequests[e],0===Object.keys(t._pendingRequests).length&&(t.loading=!1)}};this._pendingRequests[e]||(this._pendingRequests[e]=r,this.dataProvider(n,r))}}},{key:"_getPageForIndex",value:function(e){return Math.floor(e/this.pageSize)}},{key:"clearCache",value:function(){if(this.dataProvider){this._pendingRequests={};for(var e=[],t=0;t<(this.size||0);t++)e.push(this.__placeHolder);this.filteredItems=e,this._shouldFetchData()?(this._forceNextRequest=!1,this._loadPage(0)):this._forceNextRequest=!0}}},{key:"_sizeChanged",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=(this.filteredItems||[]).slice(0,e),n=0;n<e;n++)t[n]=void 0!==t[n]?t[n]:this.__placeHolder;this.filteredItems=t,this._flushPendingRequests(e)}},{key:"_pageSizeChanged",value:function(e,t){if(Math.floor(e)!==e||e<1)throw this.pageSize=t,new Error("`pageSize` value must be an integer > 0");this.clearCache()}},{key:"_dataProviderChanged",value:function(e,t){var n=this;this._ensureItemsOrDataProvider((function(){n.dataProvider=t})),this.clearCache()}},{key:"_ensureItemsOrDataProvider",value:function(e){if(void 0!==this.items&&void 0!==this.dataProvider)throw e(),new Error("Using `items` and `dataProvider` together is not supported");this.dataProvider&&!this.filteredItems&&(this.filteredItems=[])}},{key:"_warnDataProviderValue",value:function(e,t){if(e&&""!==t&&(void 0===this.selectedItem||null===this.selectedItem)){var n=this._indexOfValue(t,this.filteredItems);(n<0||!this._getItemLabel(this.filteredItems[n]))&&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`")}}},{key:"_flushPendingRequests",value:function(e){if(this._pendingRequests)for(var t=Math.ceil(e/this.pageSize),n=Object.keys(this._pendingRequests),r=0;r<n.length;r++){var o=parseInt(n[r]);o>=t&&this._pendingRequests[o]([],e)}}}],r=[{key:"properties",get:function(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged"},size:{type:Number,observer:"_sizeChanged"},dataProvider:{type:Object,observer:"_dataProviderChanged"},_pendingRequests:{value:function(){return{}}},__placeHolder:{value:new Mt},__previousDataProviderFilter:{type:String}}}},{key:"observers",get:function(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}}],n&&dn(t.prototype,n),r&&dn(t,r),i}(e)}((hr=(0,v.Tb)(T.H3),function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Jn(e,t)}(i,e);var t,n,r,o=Zn(i);function i(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(e=o.call(this))._boundOnFocusout=e._onFocusout.bind(tr(e)),e._boundOverlaySelectedItemChanged=e._overlaySelectedItemChanged.bind(tr(e)),e._boundOnClearButtonMouseDown=e.__onClearButtonMouseDown.bind(tr(e)),e._boundClose=e.close.bind(tr(e)),e._boundOnOpened=e._onOpened.bind(tr(e)),e._boundOnClick=e._onClick.bind(tr(e)),e._boundOnOverlayTouchAction=e._onOverlayTouchAction.bind(tr(e)),e._boundOnTouchend=e._onTouchend.bind(tr(e)),e}return t=i,n=[{key:"_inputElementValue",get:function(){return this.inputElement?this.inputElement[this._propertyForValue]:void 0},set:function(e){this.inputElement&&(this.inputElement[this._propertyForValue]=e)}},{key:"_nativeInput",get:function(){return this.inputElement}},{key:"_inputElementChanged",value:function(e){Qn(nr(i.prototype),"_inputElementChanged",this).call(this,e);var 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))}},{key:"ready",value:function(){var e=this;Qn(nr(i.prototype),"ready",this).call(this),this.addEventListener("focusout",this._boundOnFocusout),this._lastCommittedValue=this.value,this.$.dropdown.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged),this.addEventListener("vaadin-combo-box-dropdown-closed",this._boundClose),this.addEventListener("vaadin-combo-box-dropdown-opened",this._boundOnOpened),this.addEventListener("click",this._boundOnClick),this.$.dropdown.addEventListener("vaadin-overlay-touch-action",this._boundOnOverlayTouchAction),this.addEventListener("touchend",this._boundOnTouchend);var t,n=function(){requestAnimationFrame((function(){e.$.dropdown.$.overlay.bringToFront()}))};this.addEventListener("mousedown",n),this.addEventListener("touchstart",n),t=this,window.Vaadin&&window.Vaadin.templateRendererCallback?window.Vaadin.templateRendererCallback(t):t.querySelector("template")&&console.warn("WARNING: <template> inside <".concat(t.localName,"> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.")),this.addController(new Wn(this))}},{key:"requestContentUpdate",value:function(){this.$.dropdown._scroller&&(this.$.dropdown._scroller.requestContentUpdate(),this._getItemElements().forEach((function(e){e.requestContentUpdate()})))}},{key:"open",value:function(){this.disabled||this.readonly||(this.opened=!0)}},{key:"close",value:function(){this.opened=!1}},{key:"_focusedIndexChanged",value:function(e,t){void 0!==t&&this._updateActiveDescendant(e)}},{key:"_updateActiveDescendant",value:function(e){var t=this._nativeInput;if(t){var n=this._getItemElements().find((function(t){return t.index===e}));n?t.setAttribute("aria-activedescendant",n.id):t.removeAttribute("aria-activedescendant")}}},{key:"_openedChanged",value:function(e,t){if(void 0!==t){e?(this._openedWithFocusRing=this.hasAttribute("focus-ring"),this.hasAttribute("focused")||D||this.focus(),this.__restoreFocusOnClose=!0):(this._onClosed(),this._openedWithFocusRing&&this.hasAttribute("focused")&&this.setAttribute("focus-ring",""));var n=this._nativeInput;n&&(n.setAttribute("aria-expanded",!!e),e?n.setAttribute("aria-controls",this.$.dropdown.scrollerId):n.removeAttribute("aria-controls"))}}},{key:"_onOverlayTouchAction",value:function(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}},{key:"_isClearButton",value:function(e){return e.composedPath()[0]===this.clearElement}},{key:"_handleClearButtonClick",value:function(e){e.preventDefault(),this._clear(),this.opened&&this.requestContentUpdate()}},{key:"_onToggleButtonClick",value:function(e){e.preventDefault(),this.opened?this.close():this.open()}},{key:"_onHostClick",value:function(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}},{key:"_onClick",value:function(e){this._closeOnBlurIsPrevented=!0;var t=e.composedPath();this._isClearButton(e)?this._handleClearButtonClick(e):t.indexOf(this._toggleElement)>-1?this._onToggleButtonClick(e):this._onHostClick(e),this._closeOnBlurIsPrevented=!1}},{key:"_onKeyDown",value:function(e){Qn(nr(i.prototype),"_onKeyDown",this).call(this,e),"Tab"===e.key?this.__restoreFocusOnClose=!1:"ArrowDown"===e.key?(this._closeOnBlurIsPrevented=!0,this._onArrowDown(),this._closeOnBlurIsPrevented=!1,e.preventDefault()):"ArrowUp"===e.key&&(this._closeOnBlurIsPrevented=!0,this._onArrowUp(),this._closeOnBlurIsPrevented=!1,e.preventDefault())}},{key:"_getItemLabel",value:function(e){return this.$.dropdown.getItemLabel(e)}},{key:"_getItemValue",value:function(e){var t=e&&this.itemValuePath?this.get(this.itemValuePath,e):void 0;return void 0===t&&(t=e?e.toString():""),t}},{key:"_onArrowDown",value:function(){if(this.opened){var e=this._getOverlayItems();e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}},{key:"_onArrowUp",value:function(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{var e=this._getOverlayItems();e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}},{key:"_prefillFocusedItemLabel",value:function(){this._focusedIndex>-1&&(this._inputElementValue=this._getItemLabel(this.$.dropdown.focusedItem),this._markAllSelectionRange())}},{key:"_setSelectionRange",value:function(e,t){this.hasAttribute("focused")&&this.inputElement.setSelectionRange(e,t)}},{key:"_markAllSelectionRange",value:function(){void 0!==this._inputElementValue&&this._setSelectionRange(0,this._inputElementValue.length)}},{key:"_clearSelectionRange",value:function(){if(void 0!==this._inputElementValue){var e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}},{key:"_closeOrCommit",value:function(){this.opened||this.loading?this.close():this._commitValue()}},{key:"_onEnter",value:function(e){if(!this.allowCustomValue&&""!==this._inputElementValue&&this._focusedIndex<0)return e.preventDefault(),void e.stopPropagation();this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}},{key:"_onEscape",value:function(e){this.autoOpenDisabled?this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.clearButtonVisible&&!this.opened&&this.value&&(e.stopPropagation(),this._clear()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&(e.stopPropagation(),this._clear())}},{key:"_toggleElementChanged",value:function(e){var t=this;e&&(e.addEventListener("mousedown",(function(e){return e.preventDefault()})),e.addEventListener("click",(function(){D&&!t.hasAttribute("focused")&&document.activeElement.blur()})))}},{key:"_clear",value:function(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}},{key:"cancel",value:function(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}},{key:"_onOpened",value:function(){var e=this;requestAnimationFrame((function(){e.$.dropdown.adjustScrollPosition(),e._updateActiveDescendant(e._focusedIndex)})),this._lastCommittedValue=this.value}},{key:"_onClosed",value:function(){this.loading&&!this.allowCustomValue||this._commitValue()}},{key:"_commitValue",value:function(){var e=this,t=this._getOverlayItems();if(t&&this._focusedIndex>-1){var n=t[this._focusedIndex];this.selectedItem!==n&&(this.selectedItem=n),this._inputElementValue=this._getItemLabel(this.selectedItem)}else if(""===this._inputElementValue||void 0===this._inputElementValue)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{var r=function(e){return e&&e.toLowerCase&&e.toLowerCase()},o=[].concat(Kn(this.filteredItems||[]),[this.selectedItem]).find((function(t){return r(e._getItemLabel(t))===r(e._inputElementValue)}));if(this.allowCustomValue&&!o){var i=this._inputElementValue;this._lastCustomValue=i;var a=new CustomEvent("custom-value-set",{detail:i,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(a),a.defaultPrevented||(this._selectItemForValue(i),this.value=i)}else this.allowCustomValue||this.opened||!o?this._inputElementValue=this.selectedItem?this._getItemLabel(this.selectedItem):this.value||"":this.value=this._getItemValue(o)}this._detectAndDispatchChange(),this._clearSelectionRange(),this.filter=""}},{key:"_propertyForValue",get:function(){return"value"}},{key:"_onInput",value:function(e){this.opened||this._isClearButton(e)||this.autoOpenDisabled||this.open();var t=this._inputElementValue;this.filter===t?this._filterChanged(this.filter,this.itemValuePath,this.itemLabelPath):this.filter=t}},{key:"_onChange",value:function(e){e.stopPropagation()}},{key:"_itemLabelPathChanged",value:function(e){"string"!=typeof e&&console.error("You should set itemLabelPath to a valid string")}},{key:"_filterChanged",value:function(e,t,n){void 0!==e&&(this.$.dropdown._scrollIntoView(0),this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems))}},{key:"_loadingChanged",value:function(e){e&&(this._focusedIndex=-1)}},{key:"_revertInputValue",value:function(){""!==this.filter?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}},{key:"_revertInputValueToValue",value:function(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}},{key:"_selectedItemChanged",value:function(e){if(null==e)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(""!==this.value),this._inputElementValue=this.value);else{var t=this._getItemValue(e);if(this.value!==t&&(this.value=t,this.value!==t))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}this.$.dropdown._selectedItem=e;var n=this._getOverlayItems();this.filteredItems&&n&&(this._focusedIndex=this.filteredItems.indexOf(e))}},{key:"_valueChanged",value:function(e,t){""===e&&void 0===t||(this._isValidValue(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(""!==this.value)):this.selectedItem=null,this.filter="",this._lastCommittedValue=void 0)}},{key:"_detectAndDispatchChange",value:function(){this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}},{key:"_itemsChanged",value:function(e,t){var n=this;this._ensureItemsOrDataProvider((function(){n.items=t})),e?this.filteredItems=e.slice(0):this.__previousItems&&(this.filteredItems=null);var r=this._indexOfValue(this.value,e);this._focusedIndex=r;var o=r>-1&&e[r];o&&(this.selectedItem=o),this.__previousItems=e}},{key:"_filteredItemsChanged",value:function(e,t,n){this._setOverlayItems(e);var r=this._indexOfValue(this.value,e);null===this.selectedItem&&r>=0&&this._selectItemForValue(this.value);var o=this._inputElementValue;void 0===o||o===this._getItemLabel(this.selectedItem)?this._focusedIndex=this.$.dropdown.indexOfLabel(this._getItemLabel(this.selectedItem)):this._focusedIndex=this.$.dropdown.indexOfLabel(this.filter)}},{key:"_filterItems",value:function(e,t){var n=this;if(!e)return e;var r=e.filter((function(e){return t=t?t.toString().toLowerCase():"",n._getItemLabel(e).toString().toLowerCase().indexOf(t)>-1}));return r}},{key:"_selectItemForValue",value:function(e){var t=this._indexOfValue(e,this.filteredItems),n=this.selectedItem;t>=0?this.selectedItem=this.filteredItems[t]:this.dataProvider&&void 0===this.selectedItem?this.selectedItem=void 0:this.selectedItem=null,null===this.selectedItem&&null===n&&this._selectedItemChanged(this.selectedItem)}},{key:"_getItemElements",value:function(){return Array.from(this.$.dropdown._scroller.querySelectorAll("vaadin-combo-box-item"))}},{key:"_getOverlayItems",value:function(){return this.$.dropdown._items}},{key:"_setOverlayItems",value:function(e){this.$.dropdown.set("_items",e)}},{key:"_indexOfValue",value:function(e,t){var n=this;return t&&this._isValidValue(e)?t.findIndex((function(t){return!(t instanceof Mt)&&n._getItemValue(t)===e})):-1}},{key:"_isValidValue",value:function(e){return null!=e}},{key:"_overlaySelectedItemChanged",value:function(e){e.stopPropagation(),e.detail.item instanceof Mt||(this.opened?(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close()):this.selectedItem!==e.detail.item&&(this.selectedItem=e.detail.item,this._detectAndDispatchChange()))}},{key:"__onClearButtonMouseDown",value:function(e){e.preventDefault(),this.inputElement.focus()}},{key:"_onFocusout",value:function(e){if(!e.relatedTarget||!this._getItemElements().includes(e.relatedTarget))if(e.relatedTarget!==this.$.dropdown.$.overlay){if(!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue)return void delete this._lastCustomValue;this._closeOrCommit()}}else e.composedPath()[0].focus()}},{key:"_onTouchend",value:function(e){this.clearElement&&e.composedPath()[0]===this.clearElement&&(e.preventDefault(),this._clear())}},{key:"validate",value:function(){return!(this.invalid=!this.checkValidity())}},{key:"checkValidity",value:function(){return Qn(nr(i.prototype),"checkValidity",this)?Qn(nr(i.prototype),"checkValidity",this).call(this):!this.required||!!this.value}}],r=[{key:"properties",get:function(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:Function,items:{type:Array,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_loadingChanged"},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1},filter:{type:String,value:"",notify:!0},selectedItem:{type:Object,notify:!0},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged"},itemValuePath:{type:String,value:"value"},itemIdPath:String,_toggleElement:{type:Object,observer:"_toggleElementChanged"},_closeOnBlurIsPrevented:Boolean,__restoreFocusOnClose:Boolean}}},{key:"observers",get:function(){return["_filterChanged(filter, itemValuePath, itemLabelPath)","_filteredItemsChanged(filteredItems)","_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)"]}}],n&&Xn(t.prototype,n),r&&Xn(t,r),i}(Y(zn(qn(En(hr))))))));customElements.define(dr.is,dr)},53947:function(e,t,n){n.d(t,{hC:function(){return r.hC}});var r=n(70620)},70620:function(e,t,n){n.d(t,{Tb:function(){return R},iv:function(){return r.iv},hC:function(){return k}});var r=n(37500);function o(e){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var f=function(e){return function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(s,e);var t,n,r,o=l(s);function s(){return i(this,s),o.apply(this,arguments)}return t=s,r=[{key:"properties",get:function(){return{theme:{type:String,reflectToAttribute:!0,observer:"__deprecatedThemePropertyChanged"},_theme:{type:String,readOnly:!0}}}}],(n=[{key:"__deprecatedThemePropertyChanged",value:function(e){this._set_theme(e)}}])&&a(t.prototype,n),r&&a(t,r),s}(e)};function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t,n){return y="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},y(e,t,n||e)}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _(this,n)}}function _(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function g(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var O=[];function k(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};e&&I(e)&&console.warn('The custom element definition for "'.concat(e,'"\n was finalized before a style module was registered.\n Make sure to add component specific style modules before\n importing the corresponding custom element.')),t=C(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(e,t,n):O.push({themeFor:e,styles:t,include:n.include,moduleId:n.moduleId})}function x(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():O}function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=0;return 0===e.indexOf("lumo-")||0===e.indexOf("material-")?t=1:0===e.indexOf("vaadin-")&&(t=2),t}function C(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return[e].flat(1/0).filter((function(e){return e instanceof r.c3||(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1)}))}function E(e){var t=[];return e.include&&[].concat(e.include).forEach((function(e){var n=x().find((function(t){return t.moduleId===e}));n?t.push.apply(t,g(E(n)).concat(g(n.styles))):console.warn("Included moduleId ".concat(e," not found in style registry"))}),e.styles),t}function P(e){var t="".concat(e,"-default-theme"),n=x().filter((function(n){return n.moduleId!==t&&function(e,t){return(e||"").split(" ").some((function(e){return new RegExp("^".concat(e.split("*").join(".*"),"$")).test(t)}))}(n.themeFor,e)})).map((function(e){return Object.assign({},e,{styles:[].concat(g(E(e)),g(e.styles)),includePriority:S(e.moduleId)})})).sort((function(e,t){return t.includePriority-e.includePriority}));return n.length>0?n:x().filter((function(e){return e.moduleId===t}))}function I(e){return j(customElements.get(e))}function j(e){return e&&Object.prototype.hasOwnProperty.call(e,"__themes")}var R=function(e){return function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(i,e);var t,n,r,o=b(i);function i(){return d(this,i),o.apply(this,arguments)}return t=i,r=[{key:"finalize",value:function(){if(y(m(i),"finalize",this).call(this),!this.elementStyles){var e=this.prototype._template;e&&!j(this)&&function(e,t){var n=document.createElement("style");n.innerHTML=e.map((function(e){return e.cssText})).join("\n"),t.content.appendChild(n)}(this.getStylesForThis(),e)}}},{key:"finalizeStyles",value:function(e){var t=this.getStylesForThis();return e?[].concat(g(y(m(i),"finalizeStyles",this).call(this,e)),g(t)):t}},{key:"getStylesForThis",value:function(){var e=Object.getPrototypeOf(this.prototype),t=(e?e.constructor.__themes:[])||[];this.__themes=[].concat(g(t),g(P(this.is)));var n=this.__themes.flatMap((function(e){return e.styles}));return n.filter((function(e,t){return t===n.lastIndexOf(e)}))}}],(n=null)&&p(t.prototype,n),r&&p(t,r),i}(f(e))}},19596:function(e,t,n){n.d(t,{s:function(){return O}});var r=n(81563),o=n(38941);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||p(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=d(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}},s(e,t,n||e)}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(v){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){if(e){if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var v=function e(t,n){var r,o,i=t._$AN;if(void 0===i)return!1;var a,u=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=p(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}(i);try{for(u.s();!(a=u.n()).done;){var l=a.value;null===(o=(r=l)._$AO)||void 0===o||o.call(r,n,!1),e(l,n)}}catch(s){u.e(s)}finally{u.f()}return!0},b=function(e){var t,n;do{if(void 0===(t=e._$AM))break;(n=t._$AN).delete(e),e=t}while(0===(null==n?void 0:n.size))},_=function(e){for(var t;t=e._$AM;e=t){var n=t._$AN;if(void 0===n)t._$AN=n=new Set;else if(n.has(e))break;n.add(e),w(t)}};function m(e){void 0!==this._$AN?(b(this),this._$AM=e,_(this)):this._$AM=e}function g(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this._$AH,o=this._$AN;if(void 0!==o&&0!==o.size)if(t)if(Array.isArray(r))for(var i=n;i<r.length;i++)v(r[i],!1),b(r[i]);else null!=r&&(v(r,!1),b(r));else v(this,e)}var w=function(e){var t,n,r,i;e.type==o.pX.CHILD&&(null!==(t=(r=e)._$AP)&&void 0!==t||(r._$AP=g),null!==(n=(i=e)._$AQ)&&void 0!==n||(i._$AQ=m))},O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(h,e);var t,n,o,i=f(h);function h(){var e;return u(this,h),(e=i.apply(this,arguments))._$AN=void 0,e}return t=h,n=[{key:"_$AT",value:function(e,t,n){s(d(h.prototype),"_$AT",this).call(this,e,t,n),_(this),this.isConnected=e._$AU}},{key:"_$AO",value:function(e){var t,n,r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e!==this.isConnected&&(this.isConnected=e,e?null===(t=this.reconnected)||void 0===t||t.call(this):null===(n=this.disconnected)||void 0===n||n.call(this)),r&&(v(this,e),b(this))}},{key:"setValue",value:function(e){if((0,r.OR)(this._$Ct))this._$Ct._$AI(e,this);else{var t=a(this._$Ct._$AH);t[this._$Ci]=e,this._$Ct._$AI(t,this,0)}}},{key:"disconnected",value:function(){}},{key:"reconnected",value:function(){}}],n&&l(t.prototype,n),o&&l(t,o),h}(o.Xe)},76902:function(e,t,n){n.d(t,{t7:function(){return x}});var r=n(37500),o=n(57835);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(l){u=!0,o=l}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var d={},p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(f,e);var t,n,i,u=c(f);function f(e){var t;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=u.call(this,e)).previousValue=d,e.type!==o.pX.ELEMENT)throw new Error("renderer only supports binding to element");return t}return t=f,(n=[{key:"render",value:function(e,t){return r.Ld}},{key:"update",value:function(e,t){var n,o=a(t,2),i=o[0],u=o[1],l=this.previousValue===d;if(!this.hasChanged(u))return r.Ld;this.previousValue=Array.isArray(u)?Array.from(u):u;var s=e.element;if(l){var c=null===(n=e.options)||void 0===n?void 0:n.host;this.addRenderer(s,i,{host:c})}else this.runRenderer(s);return r.Ld}},{key:"hasChanged",value:function(e){var t=this,n=!0;return Array.isArray(e)?Array.isArray(this.previousValue)&&this.previousValue.length===e.length&&e.every((function(e,n){return e===t.previousValue[n]}))&&(n=!1):this.previousValue===e&&(n=!1),n}}])&&l(t.prototype,n),i&&l(t,i),f}(o.Xe);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function v(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e,t){return _=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},_(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=w(e);if(t){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_(e,t)}(a,e);var t,n,o,i=m(a);function a(){return v(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"addRenderer",value:function(e,t,n){e.renderer=function(e,o,i){(0,r.sY)(t.call(n.host,i.item,i,o),e,n)}}},{key:"runRenderer",value:function(e){e.requestContentUpdate()}}])&&b(t.prototype,n),o&&b(t,o),a}(p),k=(0,o.XM)(O),x=function(e,t){return k(e,t)};function S(e){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(e)}function C(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function P(e,t){return P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},P(e,t)}function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=R(e);if(t){var o=R(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j(this,n)}}function j(e,t){if(t&&("object"===S(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},R(e)}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&P(e,t)}(a,e);var t,n,o,i=I(a);function a(){return C(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"addRenderer",value:function(e,t,n){e.renderer=function(e,o,i){(0,r.sY)(t.call(n.host,i,o),e,n)}}},{key:"runRenderer",value:function(e){e.requestContentUpdate()}}])&&E(t.prototype,n),o&&E(t,o),a}(p);(0,o.XM)(T);function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function V(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function z(e,t){return z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},z(e,t)}function B(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=N(e);if(t){var o=N(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return D(this,n)}}function D(e,t){if(t&&("object"===A(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function N(e){return N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},N(e)}var M=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&z(e,t)}(a,e);var t,n,o,i=B(a);function a(){return V(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"addRenderer",value:function(e,t,n){e.renderer=function(e,o){(0,r.sY)(t.call(n.host,o),e,n)}}},{key:"runRenderer",value:function(e){e.requestContentUpdate()}}])&&L(t.prototype,n),o&&L(t,o),a}(p),$=((0,o.XM)(M),n(78956)),H=n(21683);function F(e,t){var n=e;n._debounceLitRender=$.dx.debounce(n._debounceLitRender,H.YA,t)}function q(e){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q(e)}function U(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Y(e,t){return Y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Y(e,t)}function K(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=X(e);if(t){var o=X(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return G(this,n)}}function G(e,t){if(t&&("object"===q(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function X(e){return X=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},X(e)}var Q=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Y(e,t)}(i,e);var t,n,r,o=K(i);function i(){return U(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"runRenderer",value:function(e){var t=e._grid;t&&F(t,(function(){t.requestContentUpdate()}))}}])&&W(t.prototype,n),r&&W(t,r),i}(p);function J(e){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J(e)}function Z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function te(e,t){return te=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},te(e,t)}function ne(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=oe(e);if(t){var o=oe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return re(this,n)}}function re(e,t){if(t&&("object"===J(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function oe(e){return oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},oe(e)}var ie=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&te(e,t)}(a,e);var t,n,o,i=ne(a);function a(){return Z(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"addRenderer",value:function(e,t,n){e.renderer=function(e,o,i){i&&(0,r.sY)(t.call(n.host,i.item,i,o),e,n)}}}])&&ee(t.prototype,n),o&&ee(t,o),a}(Q);(0,o.XM)(ie);function ae(e){return ae="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ae(e)}function ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function le(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function se(e,t){return se=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},se(e,t)}function ce(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=he(e);if(t){var o=he(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fe(this,n)}}function fe(e,t){if(t&&("object"===ae(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function he(e){return he=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},he(e)}var de=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&se(e,t)}(a,e);var t,n,o,i=ce(a);function a(){return ue(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"addRenderer",value:function(e,t,n){e.headerRenderer=function(e,o){(0,r.sY)(t.call(n.host,o),e,n)}}}])&&le(t.prototype,n),o&&le(t,o),a}(Q);(0,o.XM)(de);function pe(e){return pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pe(e)}function ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ve(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function be(e,t){return be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},be(e,t)}function _e(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ge(e);if(t){var o=ge(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return me(this,n)}}function me(e,t){if(t&&("object"===pe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ge(e){return ge=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ge(e)}var we=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&be(e,t)}(a,e);var t,n,o,i=_e(a);function a(){return ye(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"addRenderer",value:function(e,t,n){e.footerRenderer=function(e,o){(0,r.sY)(t.call(n.host,o),e,n)}}}])&&ve(t.prototype,n),o&&ve(t,o),a}(Q);(0,o.XM)(we);function Oe(e){return Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oe(e)}function ke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Se(e,t){return Se=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Se(e,t)}function Ce(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pe(e);if(t){var o=Pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ee(this,n)}}function Ee(e,t){if(t&&("object"===Oe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Pe(e){return Pe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Pe(e)}var Ie=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Se(e,t)}(a,e);var t,n,o,i=Ce(a);function a(){return ke(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"addRenderer",value:function(e,t,n){e.rowDetailsRenderer=function(e,o,i){if(i){var a=i.item;(0,r.sY)(t.call(n.host,a,i,o),e,n)}}}},{key:"runRenderer",value:function(e){F(e,(function(){e.requestContentUpdate()}))}}])&&xe(t.prototype,n),o&&xe(t,o),a}(p);(0,o.XM)(Ie);function je(e){return je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je(e)}function Re(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Te(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ae(e,t){return Ae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ae(e,t)}function Ve(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ze(e);if(t){var o=ze(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Le(this,n)}}function Le(e,t){if(t&&("object"===je(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ze(e){return ze=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},ze(e)}var Be=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ae(e,t)}(a,e);var t,n,o,i=Ve(a);function a(){return Re(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"addRenderer",value:function(e,t,n){e.renderer=function(e,o){(0,r.sY)(t.call(n.host,o),e,n)}}},{key:"runRenderer",value:function(e){e.requestContentUpdate()}}])&&Te(t.prototype,n),o&&Te(t,o),a}(p);(0,o.XM)(Be);function De(e){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}function Ne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Me(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $e(e,t){return $e=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},$e(e,t)}function He(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=qe(e);if(t){var o=qe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fe(this,n)}}function Fe(e,t){if(t&&("object"===De(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function qe(e){return qe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},qe(e)}var Ue=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$e(e,t)}(a,e);var t,n,o,i=He(a);function a(){return Ne(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"addRenderer",value:function(e,t,n){e.renderer=function(e,o){(0,r.sY)(t.call(n.host,o),e,n)}}},{key:"runRenderer",value:function(e){e.requestContentUpdate()}}])&&Me(t.prototype,n),o&&Me(t,o),a}(p);(0,o.XM)(Ue)},1460:function(e,t,n){n.d(t,{l:function(){return y}});var r=n(15304),o=n(38941);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(l){u=!0,o=l}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},c(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(p){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var p={},y=(0,o.XM)(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(u,e);var t,n,o,i=f(u);function u(){var e;return l(this,u),(e=i.apply(this,arguments)).nt=p,e}return t=u,n=[{key:"render",value:function(e,t){return t()}},{key:"update",value:function(e,t){var n=this,o=a(t,2),i=o[0],u=o[1];if(Array.isArray(i)){if(Array.isArray(this.nt)&&this.nt.length===i.length&&i.every((function(e,t){return e===n.nt[t]})))return r.Jb}else if(this.nt===i)return r.Jb;return this.nt=Array.isArray(i)?Array.from(i):i,this.render(i,u)}}],n&&s(t.prototype,n),o&&s(t,o),u}(o.Xe))},22142:function(e,t,n){n.d(t,{C:function(){return k}});var r=n(15304),o=n(38941),i=n(81563),a=n(19596);function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}var c=function(){function e(t){u(this,e),this.U=t}return s(e,[{key:"disconnect",value:function(){this.U=void 0}},{key:"reconnect",value:function(e){this.U=e}},{key:"deref",value:function(){return this.U}}]),e}(),f=function(){function e(){u(this,e),this.Y=void 0,this.q=void 0}return s(e,[{key:"get",value:function(){return this.Y}},{key:"pause",value:function(){var e,t=this;null!==(e=this.Y)&&void 0!==e||(this.Y=new Promise((function(e){return t.q=e})))}},{key:"resume",value:function(){var e;null===(e=this.q)||void 0===e||e.call(this),this.Y=this.q=void 0}}]),e}();function h(e,t,n,r,o,i,a){try{var u=e[i](a),l=u.value}catch(s){return void n(s)}u.done?t(l):Promise.resolve(l).then(r,o)}function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},v(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _(this,n)}}function _(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var w=function(e){return!(0,i.pt)(e)&&"function"==typeof e.then},O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(a,e);var t,n,o,i=b(a);function a(){var e;return p(this,a),(e=i.apply(this,arguments))._$Cft=1073741823,e._$Cwt=[],e._$CG=new c(m(e)),e._$CK=new f,e}return t=a,n=[{key:"render",value:function(){for(var e,t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];return null!==(e=n.find((function(e){return!w(e)})))&&void 0!==e?e:r.Jb}},{key:"update",value:function(e,t){var n=this,o=this._$Cwt,i=o.length;this._$Cwt=t;var a=this._$CG,u=this._$CK;this.isConnected||this.disconnected();for(var l=function(e){var r=t[e];if(!w(r))return{v:(n._$Cft=e,r)};e<i&&r===o[e]||(n._$Cft=1073741823,i=0,Promise.resolve(r).then(function(){var e=function(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){h(i,r,o,a,u,"next",e)}function u(e){h(i,r,o,a,u,"throw",e)}a(void 0)}))}}(regeneratorRuntime.mark((function e(t){var n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!u.get()){e.next=5;break}return e.next=3,u.get();case 3:e.next=0;break;case 5:void 0!==(n=a.deref())&&(o=n._$Cwt.indexOf(r))>-1&&o<n._$Cft&&(n._$Cft=o,n.setValue(t));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()))},s=0;s<t.length&&!(s>this._$Cft);s++){var c=l(s);if("object"===d(c))return c.v}return r.Jb}},{key:"disconnected",value:function(){this._$CG.disconnect(),this._$CK.pause()}},{key:"reconnected",value:function(){this._$CG.reconnect(this),this._$CK.resume()}}],n&&y(t.prototype,n),o&&y(t,o),a}(a.s),k=(0,o.XM)(O)},69505:function(e,t,n){n.d(t,{DD:function(){return S},Yj:function(){return D},IX:function(){return N},hu:function(){return A},f0:function(){return z},O7:function(){return M},is:function(){return V},i0:function(){return $},Rx:function(){return F},Ry:function(){return q},jt:function(){return U},lF:function(){return X},Z_:function(){return W},G0:function(){return K}});var r=["message"];function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function i(e,t){return u(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null==n)return;var r,o,i=[],a=!0,u=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(l){u=!0,o=l}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}(e,t)||d(e,t)||a()}function a(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e){if(Array.isArray(e))return e}var l=regeneratorRuntime.mark(j),s=regeneratorRuntime.mark(R);function c(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=d(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){u=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function h(e){return function(e){if(Array.isArray(e))return y(e)}(e)||p(e)||d(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){if(e){if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}function p(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e){var t="function"==typeof Map?new Map:void 0;return g=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return w(e,arguments,x(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),k(r,e)},g(e)}function w(e,t,n){return w=O()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&k(o,n.prototype),o},w.apply(null,arguments)}function O(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function k(e,t){return k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},k(e,t)}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(i,e);var t,n,o=(t=i,n=O(),function(){var e,r=x(t);if(n){var o=x(this).constructor;e=Reflect.construct(r,arguments,o)}else e=r.apply(this,arguments);return _(this,e)});function i(e,t){var n,a;b(this,i);var u=e.message,l=v(e,r),s=e.path,c=0===s.length?u:"At path: "+s.join(".")+" -- "+u;return n=o.call(this,c),Object.assign(m(n),l),n.name=n.constructor.name,n.failures=function(){var n;return null!=(n=a)?n:a=[e].concat(h(t()))},n}return i}(g(TypeError));function C(e){return"object"===f(e)&&null!=e}function E(e){return"string"==typeof e?JSON.stringify(e):""+e}function P(e){var t=e.next(),n=t.done,r=t.value;return n?void 0:r}function I(e,t,n,r){if(!0!==e){!1===e?e={}:"string"==typeof e&&(e={message:e});var o=t.path,i=t.branch,a=n.type,u=e,l=u.refinement,s=u.message,c=void 0===s?"Expected a value of type `"+a+"`"+(l?" with refinement `"+l+"`":"")+", but received: `"+E(r)+"`":s;return Object.assign({value:r,type:a,refinement:l,key:o[o.length-1],path:o,branch:i},e,{message:c})}}function j(e,t,n,r){var o,i,a,u;return regeneratorRuntime.wrap((function(l){for(;;)switch(l.prev=l.next){case 0:C(s=e)&&"function"==typeof s[Symbol.iterator]||(e=[e]),o=c(e),l.prev=2,o.s();case 4:if((i=o.n()).done){l.next=12;break}if(a=i.value,!(u=I(a,t,n,r))){l.next=10;break}return l.next=10,u;case 10:l.next=4;break;case 12:l.next=17;break;case 14:l.prev=14,l.t0=l.catch(2),o.e(l.t0);case 17:return l.prev=17,o.f(),l.finish(17);case 20:case"end":return l.stop()}var s}),l,null,[[2,14,17,20]])}function R(e,t){var n,r,o,a,u,l,f,d,p,y,v,b,_,m,g,w,O,k,x,S,E,P,I,j,T,A,V,L,z=arguments;return regeneratorRuntime.wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(n=z.length>2&&void 0!==z[2]?z[2]:{},r=n.path,o=void 0===r?[]:r,a=n.branch,u=void 0===a?[e]:a,l=n.coerce,f=void 0!==l&&l,d=n.mask,p=void 0!==d&&d,y={path:o,branch:u},f&&(e=t.coercer(e,y),p&&"type"!==t.type&&C(t.schema)&&C(e)&&!Array.isArray(e)))for(v in e)void 0===t.schema[v]&&delete e[v];b=!0,_=c(t.validator(e,y)),s.prev=6,_.s();case 8:if((m=_.n()).done){s.next=15;break}return g=m.value,b=!1,s.next=13,[g,void 0];case 13:s.next=8;break;case 15:s.next=20;break;case 17:s.prev=17,s.t0=s.catch(6),_.e(s.t0);case 20:return s.prev=20,_.f(),s.finish(20);case 23:w=c(t.entries(e,y)),s.prev=24,w.s();case 26:if((O=w.n()).done){s.next=53;break}k=i(O.value,3),x=k[0],S=k[1],E=k[2],P=R(S,E,{path:void 0===x?o:[].concat(h(o),[x]),branch:void 0===x?u:[].concat(h(u),[S]),coerce:f,mask:p}),I=c(P),s.prev=30,I.s();case 32:if((j=I.n()).done){s.next=43;break}if(!(T=j.value)[0]){s.next=40;break}return b=!1,s.next=38,[T[0],void 0];case 38:s.next=41;break;case 40:f&&(S=T[1],void 0===x?e=S:e instanceof Map?e.set(x,S):e instanceof Set?e.add(S):C(e)&&(e[x]=S));case 41:s.next=32;break;case 43:s.next=48;break;case 45:s.prev=45,s.t1=s.catch(30),I.e(s.t1);case 48:return s.prev=48,I.f(),s.finish(48);case 51:s.next=26;break;case 53:s.next=58;break;case 55:s.prev=55,s.t2=s.catch(24),w.e(s.t2);case 58:return s.prev=58,w.f(),s.finish(58);case 61:if(!b){s.next=80;break}A=c(t.refiner(e,y)),s.prev=63,A.s();case 65:if((V=A.n()).done){s.next=72;break}return L=V.value,b=!1,s.next=70,[L,void 0];case 70:s.next=65;break;case 72:s.next=77;break;case 74:s.prev=74,s.t3=s.catch(63),A.e(s.t3);case 77:return s.prev=77,A.f(),s.finish(77);case 80:if(!b){s.next=83;break}return s.next=83,[void 0,e];case 83:case"end":return s.stop()}}),s,null,[[6,17,20,23],[24,55,58,61],[30,45,48,51],[63,74,77,80]])}var T=function(){function e(t){var n=this;b(this,e);var r=t.type,o=t.schema,i=t.validator,a=t.refiner,u=t.coercer,l=void 0===u?function(e){return e}:u,s=t.entries,c=void 0===s?regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})):s;this.type=r,this.schema=o,this.entries=c,this.coercer=l,this.validator=i?function(e,t){return j(i(e,t),t,n,e)}:function(){return[]},this.refiner=a?function(e,t){return j(a(e,t),t,n,e)}:function(){return[]}}var t,n,r;return t=e,n=[{key:"assert",value:function(e){return A(e,this)}},{key:"create",value:function(e){return function(e,t){var n=L(e,t,{coerce:!0});if(n[0])throw n[0];return n[1]}(e,this)}},{key:"is",value:function(e){return V(e,this)}},{key:"mask",value:function(e){return function(e,t){var n=L(e,t,{coerce:!0,mask:!0});if(n[0])throw n[0];return n[1]}(e,this)}},{key:"validate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return L(e,this,t)}}],n&&o(t.prototype,n),r&&o(t,r),e}();function A(e,t){var n=L(e,t);if(n[0])throw n[0]}function V(e,t){return!L(e,t)[0]}function L(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=R(e,t,n),o=P(r);if(o[0]){var i=new S(o[0],regeneratorRuntime.mark((function e(){var t,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=c(r),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=10;break}if(!(o=n.value)[0]){e.next=8;break}return e.next=8,o[0];case 8:e.next=3;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(1),t.e(e.t0);case 15:return e.prev=15,t.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[1,12,15,18]])})));return[i,void 0]}var a=o[1];return[void 0,a]}function z(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r="type"===t[0].type,o=t.map((function(e){return e.schema})),i=Object.assign.apply(Object,[{}].concat(h(o)));return r?Y(i):q(i)}function B(e,t){return new T({type:e,schema:null,validator:t})}function D(){return B("any",(function(){return!0}))}function N(e){return new T({type:"array",schema:e,entries:regeneratorRuntime.mark((function t(n){var r,o,a,u,l;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e||!Array.isArray(n)){t.next=18;break}r=c(n.entries()),t.prev=2,r.s();case 4:if((o=r.n()).done){t.next=10;break}return a=i(o.value,2),u=a[0],l=a[1],t.next=8,[u,l,e];case 8:t.next=4;break;case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(2),r.e(t.t0);case 15:return t.prev=15,r.f(),t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[2,12,15,18]])})),coercer:function(e){return Array.isArray(e)?e.slice():e},validator:function(e){return Array.isArray(e)||"Expected an array value, but received: "+E(e)}})}function M(){return B("boolean",(function(e){return"boolean"==typeof e}))}function $(e){var t=E(e),n=f(e);return new T({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?e:null,validator:function(n){return n===e||"Expected the literal `"+t+"`, but received: "+E(n)}})}function H(){return B("never",(function(){return!1}))}function F(){return B("number",(function(e){return"number"==typeof e&&!isNaN(e)||"Expected a number, but received: "+E(e)}))}function q(e){var t=e?Object.keys(e):[],n=H();return new T({type:"object",schema:e||null,entries:regeneratorRuntime.mark((function r(o){var i,a,u,l,s,f,h;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!e||!C(o)){r.next=37;break}i=new Set(Object.keys(o)),a=c(t),r.prev=3,a.s();case 5:if((u=a.n()).done){r.next=12;break}return l=u.value,i.delete(l),r.next=10,[l,o[l],e[l]];case 10:r.next=5;break;case 12:r.next=17;break;case 14:r.prev=14,r.t0=r.catch(3),a.e(r.t0);case 17:return r.prev=17,a.f(),r.finish(17);case 20:s=c(i),r.prev=21,s.s();case 23:if((f=s.n()).done){r.next=29;break}return h=f.value,r.next=27,[h,o[h],n];case 27:r.next=23;break;case 29:r.next=34;break;case 31:r.prev=31,r.t1=r.catch(21),s.e(r.t1);case 34:return r.prev=34,s.f(),r.finish(34);case 37:case"end":return r.stop()}}),r,null,[[3,14,17,20],[21,31,34,37]])})),validator:function(e){return C(e)||"Expected an object, but received: "+E(e)},coercer:function(e){return C(e)?Object.assign({},e):e}})}function U(e){return new T(Object.assign({},e,{validator:function(t,n){return void 0===t||e.validator(t,n)},refiner:function(t,n){return void 0===t||e.refiner(t,n)}}))}function W(){return B("string",(function(e){return"string"==typeof e||"Expected a string, but received: "+E(e)}))}function Y(e){var t=Object.keys(e);return new T({type:"type",schema:e,entries:regeneratorRuntime.mark((function n(r){var o,i,a;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!C(r)){n.next=18;break}o=c(t),n.prev=2,o.s();case 4:if((i=o.n()).done){n.next=10;break}return a=i.value,n.next=8,[a,r[a],e[a]];case 8:n.next=4;break;case 10:n.next=15;break;case 12:n.prev=12,n.t0=n.catch(2),o.e(n.t0);case 15:return n.prev=15,o.f(),n.finish(15);case 18:case"end":return n.stop()}}),n,null,[[2,12,15,18]])})),validator:function(e){return C(e)||"Expected an object, but received: "+E(e)}})}function K(e){var t=e.map((function(e){return e.type})).join(" | ");return new T({type:"union",schema:null,coercer:function(t,n){return(e.find((function(e){return!i(e.validate(t,{coerce:!0}),1)[0]}))||G()).coercer(t,n)},validator:function(n,r){var o,l,s=[],f=c(e);try{for(f.s();!(o=f.n()).done;){var h=R(n,o.value,r),y=(u(l=h)||p(l)||d(l)||a()).slice(0);if(!i(y,1)[0][0])return[];var v,b=c(y);try{for(b.s();!(v=b.n()).done;){var _=i(v.value,1)[0];_&&s.push(_)}}catch(m){b.e(m)}finally{b.f()}}}catch(m){f.e(m)}finally{f.f()}return["Expected the value to satisfy a union of `"+t+"`, but received: "+E(n)].concat(s)}})}function G(){return B("unknown",(function(){return!0}))}function X(e,t,n){return new T(Object.assign({},e,{refiner:function(e){var t=regeneratorRuntime.mark(n);function n(n,r){var o=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(e.apply(this,o),"t0",1);case 1:return t.abrupt("return",t.t0);case 2:case"end":return t.stop()}}),t,this)}return n.toString=function(){return e.toString()},n}(regeneratorRuntime.mark((function r(o,i){var a,u,l,s,f;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.delegateYield(e.refiner(o,i),"t0",1);case 1:a=n(o,i),u=j(a,i,e,o),l=c(u),r.prev=4,l.s();case 6:if((s=l.n()).done){r.next=12;break}return f=s.value,r.next=10,Object.assign({},f,{refinement:t});case 10:r.next=6;break;case 12:r.next=17;break;case 14:r.prev=14,r.t1=r.catch(4),l.e(r.t1);case 17:return r.prev=17,l.f(),r.finish(17);case 20:case"end":return r.stop()}}),r,null,[[4,14,17,20]])})))}))}}}]); |