UNPKG

iobroker.lovelace

Version:

With this adapter you can build visualization for ioBroker with Home Assistant Lovelace UI

2 lines 104 kB
/*! For license information please see chunk.ddda6513c233f15c8366.js.LICENSE.txt */ (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[8911,3098,1139,5713,2946,2887],{38323:function(e,t,n){"use strict";n(65233);(0,n(9672).k)({is:"iron-media-query",properties:{queryMatches:{type:Boolean,value:!1,readOnly:!0,notify:!0},query:{type:String,observer:"queryChanged"},full:{type:Boolean,value:!1},_boundMQHandler:{value:function(){return this.queryHandler.bind(this)}},_mq:{value:null}},attached:function(){this.style.display="none",this.queryChanged()},detached:function(){this._remove()},_add:function(){this._mq&&this._mq.addListener(this._boundMQHandler)},_remove:function(){this._mq&&this._mq.removeListener(this._boundMQHandler),this._mq=null},queryChanged:function(){this._remove();var e=this.query;e&&(this.full||"("===e[0]||(e="("+e+")"),this._mq=window.matchMedia(e),this._add(),this.queryHandler(this._mq))},queryHandler:function(e){this._setQueryMatches(e.matches)}})},8878:function(e,t,n){"use strict";n(65233),n(8621),n(63207),n(30879),n(78814),n(60748),n(1656),n(57548),n(73962);var o,i,r,a=n(51644),s=n(26110),l=n(21006),u=n(98235),c=n(9672),d=n(87156),h=n(81668),f=n(50856);(0,c.k)({_template:(0,f.d)(o||(i=['\n <style include="paper-dropdown-menu-shared-styles"></style>\n\n \x3c!-- this div fulfills an a11y requirement for combobox, do not remove --\x3e\n <span role="button"></span>\n <paper-menu-button id="menuButton" vertical-align="[[verticalAlign]]" horizontal-align="[[horizontalAlign]]" dynamic-align="[[dynamicAlign]]" vertical-offset="[[_computeMenuVerticalOffset(noLabelFloat, verticalOffset)]]" disabled="[[disabled]]" no-animations="[[noAnimations]]" on-iron-select="_onIronSelect" on-iron-deselect="_onIronDeselect" opened="{{opened}}" close-on-activate allow-outside-scroll="[[allowOutsideScroll]]" restore-focus-on-close="[[restoreFocusOnClose]]">\n \x3c!-- support hybrid mode: user might be using paper-menu-button 1.x which distributes via <content> --\x3e\n <div class="dropdown-trigger" slot="dropdown-trigger">\n <paper-ripple></paper-ripple>\n \x3c!-- paper-input has type="text" for a11y, do not remove --\x3e\n <paper-input type="text" invalid="[[invalid]]" readonly disabled="[[disabled]]" value="[[value]]" placeholder="[[placeholder]]" error-message="[[errorMessage]]" always-float-label="[[alwaysFloatLabel]]" no-label-float="[[noLabelFloat]]" label="[[label]]">\n \x3c!-- support hybrid mode: user might be using paper-input 1.x which distributes via <content> --\x3e\n <iron-icon icon="paper-dropdown-menu:arrow-drop-down" suffix slot="suffix"></iron-icon>\n </paper-input>\n </div>\n <slot id="content" name="dropdown-content" slot="dropdown-content"></slot>\n </paper-menu-button>\n'],r||(r=i.slice(0)),o=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(r)}})))),is:"paper-dropdown-menu",behaviors:[a.P,s.a,l.V,u.x],properties:{selectedItemLabel:{type:String,notify:!0,readOnly:!0},selectedItem:{type:Object,notify:!0,readOnly:!0},value:{type:String,notify:!0},label:{type:String},placeholder:{type:String},errorMessage:{type:String},opened:{type:Boolean,notify:!0,value:!1,observer:"_openedChanged"},allowOutsideScroll:{type:Boolean,value:!1},noLabelFloat:{type:Boolean,value:!1,reflectToAttribute:!0},alwaysFloatLabel:{type:Boolean,value:!1},noAnimations:{type:Boolean,value:!1},horizontalAlign:{type:String,value:"right"},verticalAlign:{type:String,value:"top"},verticalOffset:Number,dynamicAlign:{type:Boolean},restoreFocusOnClose:{type:Boolean,value:!0}},listeners:{tap:"_onTap"},keyBindings:{"up down":"open",esc:"close"},hostAttributes:{role:"combobox","aria-autocomplete":"none","aria-haspopup":"true"},observers:["_selectedItemChanged(selectedItem)"],attached:function(){var e=this.contentElement;e&&e.selectedItem&&this._setSelectedItem(e.selectedItem)},get contentElement(){for(var e=(0,d.vz)(this.$.content).getDistributedNodes(),t=0,n=e.length;t<n;t++)if(e[t].nodeType===Node.ELEMENT_NODE)return e[t]},open:function(){this.$.menuButton.open()},close:function(){this.$.menuButton.close()},_onIronSelect:function(e){this._setSelectedItem(e.detail.item)},_onIronDeselect:function(e){this._setSelectedItem(null)},_onTap:function(e){h.nJ(e)===this&&this.open()},_selectedItemChanged:function(e){var t="";t=e?e.label||e.getAttribute("label")||e.textContent.trim():"",this.value=t,this._setSelectedItemLabel(t)},_computeMenuVerticalOffset:function(e,t){return t||(e?-4:8)},_getValidity:function(e){return this.disabled||!this.required||this.required&&!!this.value},_openedChanged:function(){var e=this.opened?"true":"false",t=this.contentElement;t&&t.setAttribute("aria-expanded",e)}})},33760:function(e,t,n){"use strict";n.d(t,{U:function(){return r}});n(65233);var o=n(51644),i=n(26110),r=[o.P,i.a,{hostAttributes:{role:"option",tabindex:"0"}}]},97968:function(e,t,n){"use strict";n(65660),n(15495),n(1656),n(47686);var o=document.createElement("template");o.setAttribute("style","display: none;"),o.innerHTML="<dom-module id=\"paper-item-shared-styles\">\n <template>\n <style>\n :host, .paper-item {\n display: block;\n position: relative;\n min-height: var(--paper-item-min-height, 48px);\n padding: 0px 16px;\n }\n\n .paper-item {\n @apply --paper-font-subhead;\n border:none;\n outline: none;\n background: white;\n width: 100%;\n text-align: left;\n }\n\n :host([hidden]), .paper-item[hidden] {\n display: none !important;\n }\n\n :host(.iron-selected), .paper-item.iron-selected {\n font-weight: var(--paper-item-selected-weight, bold);\n\n @apply --paper-item-selected;\n }\n\n :host([disabled]), .paper-item[disabled] {\n color: var(--paper-item-disabled-color, var(--disabled-text-color));\n\n @apply --paper-item-disabled;\n }\n\n :host(:focus), .paper-item:focus {\n position: relative;\n outline: 0;\n\n @apply --paper-item-focused;\n }\n\n :host(:focus):before, .paper-item:focus:before {\n @apply --layout-fit;\n\n background: currentColor;\n content: '';\n opacity: var(--dark-divider-opacity);\n pointer-events: none;\n\n @apply --paper-item-focused-before;\n }\n </style>\n </template>\n</dom-module>",document.head.appendChild(o.content)},53973:function(e,t,n){"use strict";n(65233),n(65660),n(97968);var o,i,r,a=n(9672),s=n(50856),l=n(33760);(0,a.k)({_template:(0,s.d)(o||(i=['\n <style include="paper-item-shared-styles">\n :host {\n @apply --layout-horizontal;\n @apply --layout-center;\n @apply --paper-font-subhead;\n\n @apply --paper-item;\n }\n </style>\n <slot></slot>\n'],r||(r=i.slice(0)),o=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(r)}})))),is:"paper-item",behaviors:[l.U]})},51095:function(e,t,n){"use strict";n(65233),n(1656);var o,i,r,a=n(78161),s=n(9672),l=n(50856);(0,s.k)({_template:(0,l.d)(o||(i=["\n <style>\n :host {\n display: block;\n padding: 8px 0;\n\n background: var(--paper-listbox-background-color, var(--primary-background-color));\n color: var(--paper-listbox-color, var(--primary-text-color));\n\n @apply --paper-listbox;\n }\n </style>\n\n <slot></slot>\n"],r||(r=i.slice(0)),o=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(r)}})))),is:"paper-listbox",behaviors:[a.i],hostAttributes:{role:"listbox"}})},80325:function(e,t,n){"use strict";n(85408);var o,i=n(50856);var r,a,s=(0,i.d)(o||(r=['<dom-module id="material-date-picker-overlay" theme-for="vaadin-date-picker-overlay">\n <template>\n <style include="material-overlay">\n :host([fullscreen]) {\n top: 0 !important;\n right: 0 !important;\n bottom: var(--vaadin-overlay-viewport-bottom) !important;\n left: 0 !important;\n align-items: stretch;\n justify-content: stretch;\n }\n\n [part="overlay"] {\n overflow: hidden;\n -webkit-overflow-scrolling: auto;\n }\n\n :host(:not([fullscreen])) [part="overlay"] {\n width: 360px;\n max-height: 500px;\n border-radius: 0 4px 4px;\n }\n\n :host(:not([fullscreen])[right-aligned]) [part="overlay"] {\n border-radius: 4px 0 4px 4px;\n }\n\n :host(:not([fullscreen])[bottom-aligned]) [part="overlay"] {\n border-radius: 4px;\n }\n\n :host(:not([fullscreen])[show-week-numbers]) [part="overlay"] {\n width: 396px;\n }\n\n [part="content"] {\n padding: 0;\n }\n </style>\n </template>\n</dom-module>'],a||(a=r.slice(0)),o=Object.freeze(Object.defineProperties(r,{raw:{value:Object.freeze(a)}}))));document.head.appendChild(s.content);var l=n(1335);function u(e){return(u="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})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(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(e){return!1}}();return function(){var n,o=y(e);if(t){var i=y(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=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&&h(e,t)}(r,e);var t,n,o,i=f(r);function r(){return c(this,r),i.apply(this,arguments)}return t=r,o=[{key:"is",get:function(){return"vaadin-date-picker-overlay"}}],(n=null)&&d(t.prototype,n),o&&d(t,o),r}((0,n(16777).f)(l.G));customElements.define(v.is,v);var m;n(85466),n(23799),n(8542),n(37365);var b=(0,i.d)(m||(m=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['<dom-module id="material-button" theme-for="vaadin-button">\n <template>\n <style>\n :host {\n padding: 8px;\n min-width: 64px;\n box-sizing: border-box;\n display: inline-flex;\n align-items: baseline;\n justify-content: center;\n border-radius: 4px;\n color: var(--material-primary-text-color);\n font-family: var(--material-font-family);\n text-transform: uppercase;\n font-size: var(--material-button-font-size);\n line-height: 20px;\n font-weight: 500;\n letter-spacing: 0.05em;\n white-space: nowrap;\n overflow: hidden;\n transition: box-shadow 0.2s;\n -webkit-tap-highlight-color: transparent;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n @-moz-document url-prefix() {\n :host {\n vertical-align: -13px;\n }\n }\n\n :host::before,\n :host::after {\n content: "";\n pointer-events: none;\n position: absolute;\n border-radius: inherit;\n opacity: 0;\n background-color: currentColor;\n }\n\n :host::before {\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n transition: opacity 0.5s;\n }\n\n :host::after {\n border-radius: 50%;\n width: 320px;\n height: 320px;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n transition: all 0.9s;\n }\n\n [part="label"] ::slotted(*) {\n vertical-align: middle;\n }\n\n :host(:hover)::before,\n :host([focus-ring])::before {\n opacity: 0.08;\n transition-duration: 0.2s;\n }\n\n :host([active])::before {\n opacity: 0.16;\n transition: opacity 0.4s;\n }\n\n :host([active])::after {\n transform: translate(-50%, -50%) scale(0.0000001); /* animation works weirdly with scale(0) */\n opacity: 0.1;\n transition: 0s;\n }\n\n :host(:hover:not([active]))::after {\n transform: translate(-50%, -50%) scale(1);\n opacity: 0;\n }\n\n :host([disabled]) {\n pointer-events: none;\n color: var(--material-disabled-text-color);\n }\n\n /* Contained and outline variants */\n :host([theme~="contained"]),\n :host([theme~="outlined"]) {\n padding: 8px 16px;\n }\n\n :host([theme~="outlined"]) {\n box-shadow: inset 0 0 0 1px var(--_material-button-outline-color, rgba(0, 0, 0, 0.2));\n }\n\n :host([theme~="contained"]:not([disabled])) {\n background-color: var(--material-primary-color);\n color: var(--material-primary-contrast-color);\n box-shadow: var(--material-shadow-elevation-2dp);\n }\n\n :host([theme~="contained"][disabled]) {\n background-color: var(--material-secondary-background-color);\n }\n\n :host([theme~="contained"]:hover) {\n box-shadow: var(--material-shadow-elevation-4dp);\n }\n\n :host([theme~="contained"][active]) {\n box-shadow: var(--material-shadow-elevation-8dp);\n }\n\n /* Icon alignment */\n\n [part] ::slotted(iron-icon) {\n display: block;\n width: 18px;\n height: 18px;\n }\n\n [part="prefix"] ::slotted(iron-icon) {\n margin-right: 8px;\n margin-left: -4px;\n }\n\n [part="suffix"] ::slotted(iron-icon) {\n margin-left: 8px;\n margin-right: -4px;\n }\n </style>\n </template>\n</dom-module>'])));document.head.appendChild(b.content);var _=n(28426),g=n(60995),w=n(15520);function k(e){return(k="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})(e)}function x(e,t,n){return(x="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=M(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function D(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function S(e,t,n){return t&&O(e.prototype,t),n&&O(e,n),e}function C(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)}function E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function P(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,o=M(e);if(t){var i=M(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return T(this,n)}}function T(e,t){return!t||"object"!==k(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var A=n(21683),j=n(78956),I=n(93252),F=/\/\*\*\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,$=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function z(e,t){if("function"==typeof e){var n=F.exec(e.toString());if(n)try{e=new Function(n[1])}catch(o){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",o)}return e(t)}}window.Vaadin=window.Vaadin||{};var R=function(e,t){if(window.Vaadin.developmentMode)return z(e,t)};function Y(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{return!!localStorage.getItem("vaadin.developmentmode.force")||["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0&&($?!($&&Object.keys($).map((function(e){return $[e]})).filter((function(e){return e.productionMode})).length>0):!z((function(){return!0})))}catch(e){return!1}}());var B,W=function(){return R(Y)};function V(e){return(V="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})(e)}function L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function N(e,t,n){return(N="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=U(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function H(e,t){return(H=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(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,o=U(e);if(t){var i=U(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return X(this,n)}}function X(e,t){return!t||"object"!==V(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations=window.Vaadin.registrations||[],window.Vaadin.developmentModeCallback=window.Vaadin.developmentModeCallback||{},window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){W&&W()};var G,Q=n(81668);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})(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 o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function te(e,t,n){return(te="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=re(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function ne(e,t){return(ne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function oe(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,o=re(e);if(t){var i=re(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return ie(this,n)}}function ie(e,t){return!t||"object"!==J(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function re(e){return(re=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ae,se=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&&ne(e,t)}(a,e);var t,n,o,r=oe(a);function a(){return Z(this,a),r.apply(this,arguments)}return t=a,o=[{key:"template",get:function(){return(0,i.d)(G||(G=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: inline-block;\n position: relative;\n outline: none;\n white-space: nowrap;\n }\n\n :host([hidden]) {\n display: none !important;\n }\n\n /* Ensure the button is always aligned on the baseline */\n .vaadin-button-container::before {\n content: "\\2003";\n display: inline-block;\n width: 0;\n }\n\n .vaadin-button-container {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n width: 100%;\n height: 100%;\n min-height: inherit;\n text-shadow: inherit;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n }\n\n [part="prefix"],\n [part="suffix"] {\n flex: none;\n }\n\n [part="label"] {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n #button {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n opacity: 0;\n cursor: inherit;\n }\n </style>\n <div class="vaadin-button-container">\n <div part="prefix">\n <slot name="prefix"></slot>\n </div>\n <div part="label">\n <slot></slot>\n </div>\n <div part="suffix">\n <slot name="suffix"></slot>\n </div>\n </div>\n <button id="button" type="button"></button>\n'],['\n <style>\n :host {\n display: inline-block;\n position: relative;\n outline: none;\n white-space: nowrap;\n }\n\n :host([hidden]) {\n display: none !important;\n }\n\n /* Ensure the button is always aligned on the baseline */\n .vaadin-button-container::before {\n content: "\\\\2003";\n display: inline-block;\n width: 0;\n }\n\n .vaadin-button-container {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n width: 100%;\n height: 100%;\n min-height: inherit;\n text-shadow: inherit;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n }\n\n [part="prefix"],\n [part="suffix"] {\n flex: none;\n }\n\n [part="label"] {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n #button {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n opacity: 0;\n cursor: inherit;\n }\n </style>\n <div class="vaadin-button-container">\n <div part="prefix">\n <slot name="prefix"></slot>\n </div>\n <div part="label">\n <slot></slot>\n </div>\n <div part="suffix">\n <slot name="suffix"></slot>\n </div>\n </div>\n <button id="button" type="button"></button>\n'])))}},{key:"is",get:function(){return"vaadin-button"}},{key:"version",get:function(){return"2.2.1"}}],(n=[{key:"ready",value:function(){te(re(a.prototype),"ready",this).call(this),this.setAttribute("role","button"),this.$.button.setAttribute("role","presentation"),this._addActiveListeners()}},{key:"disconnectedCallback",value:function(){te(re(a.prototype),"disconnectedCallback",this).call(this),this.hasAttribute("active")&&this.removeAttribute("active")}},{key:"_addActiveListeners",value:function(){var e=this;(0,Q.NH)(this,"down",(function(){return!e.disabled&&e.setAttribute("active","")})),(0,Q.NH)(this,"up",(function(){return e.removeAttribute("active")})),this.addEventListener("keydown",(function(t){return!e.disabled&&[13,32].indexOf(t.keyCode)>=0&&e.setAttribute("active","")})),this.addEventListener("keyup",(function(){return e.removeAttribute("active")})),this.addEventListener("blur",(function(){return e.removeAttribute("active")}))}},{key:"focusElement",get:function(){return this.$.button}}])&&ee(t.prototype,n),o&&ee(t,o),a}(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&&H(e,t)}(r,e);var t,n,o,i=K(r);function r(){return L(this,r),i.apply(this,arguments)}return t=r,o=[{key:"_finalizeClass",value:function(){N(U(r),"_finalizeClass",this).call(this),this.is&&(window.Vaadin.registrations.push(this),window.Vaadin.developmentModeCallback&&(B=j.d.debounce(B,A.t$,(function(){window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()})),(0,I.E)(B)))}}],(n=[{key:"ready",value:function(){N(U(r.prototype),"ready",this).call(this),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}}])&&q(t.prototype,n),o&&q(t,o),r}(e)}(function(e){C(n,e);var t=P(n);function n(){return D(this,n),t.apply(this,arguments)}return S(n,[{key:"ready",value:function(){var e=this;this.addEventListener("focusin",(function(t){t.composedPath()[0]===e?e._focus(t):-1===t.composedPath().indexOf(e.focusElement)||e.disabled||e._setFocused(!0)})),this.addEventListener("focusout",(function(t){return e._setFocused(!1)})),x(M(n.prototype),"ready",this).call(this);var t=function(e){e.composed||e.target.dispatchEvent(new CustomEvent(e.type,{bubbles:!0,composed:!0,cancelable:!1}))};this.shadowRoot.addEventListener("focusin",t),this.shadowRoot.addEventListener("focusout",t),this.addEventListener("keydown",(function(t){if(!t.defaultPrevented&&9===t.keyCode)if(t.shiftKey)e._isShiftTabbing=!0,HTMLElement.prototype.focus.apply(e),e._setFocused(!1),setTimeout((function(){return e._isShiftTabbing=!1}),0);else{var n=window.navigator.userAgent.match(/Firefox\/(\d\d\.\d)/);if(n&&parseFloat(n[1])>=63&&parseFloat(n[1])<66&&e.parentNode&&e.nextSibling){var o=document.createElement("input");o.style.position="absolute",o.style.opacity=0,o.tabIndex=e.tabIndex,e.parentNode.insertBefore(o,e.nextSibling),o.focus(),o.addEventListener("focusout",(function(){return e.parentNode.removeChild(o)}))}}})),!this.autofocus||this.focused||this.disabled||window.requestAnimationFrame((function(){e._focus(),e._setFocused(!0),e.setAttribute("focus-ring","")})),this._boundKeydownListener=this._bodyKeydownListener.bind(this),this._boundKeyupListener=this._bodyKeyupListener.bind(this)}},{key:"connectedCallback",value:function(){x(M(n.prototype),"connectedCallback",this).call(this),document.body.addEventListener("keydown",this._boundKeydownListener,!0),document.body.addEventListener("keyup",this._boundKeyupListener,!0)}},{key:"disconnectedCallback",value:function(){x(M(n.prototype),"disconnectedCallback",this).call(this),document.body.removeEventListener("keydown",this._boundKeydownListener,!0),document.body.removeEventListener("keyup",this._boundKeyupListener,!0),this.hasAttribute("focused")&&this._setFocused(!1)}},{key:"_setFocused",value:function(e){e?this.setAttribute("focused",""):this.removeAttribute("focused"),e&&this._tabPressed?this.setAttribute("focus-ring",""):this.removeAttribute("focus-ring")}},{key:"_bodyKeydownListener",value:function(e){this._tabPressed=9===e.keyCode}},{key:"_bodyKeyupListener",value:function(){this._tabPressed=!1}},{key:"focusElement",get:function(){return window.console.warn("Please implement the 'focusElement' property in <".concat(this.localName,">")),this}},{key:"_focus",value:function(e){this._isShiftTabbing||(this.focusElement.focus(),this._setFocused(!0))}},{key:"focus",value:function(){this.focusElement&&!this.disabled&&(this.focusElement.focus(),this._setFocused(!0))}},{key:"blur",value:function(){this.focusElement.blur(),this._setFocused(!1)}},{key:"_disabledChanged",value:function(e){this.focusElement.disabled=e,e?(this.blur(),this._previousTabIndex=this.tabindex,this.tabindex=-1,this.setAttribute("aria-disabled","true")):(void 0!==this._previousTabIndex&&(this.tabindex=this._previousTabIndex),this.removeAttribute("aria-disabled"))}},{key:"_tabindexChanged",value:function(e){void 0!==e&&(this.focusElement.tabIndex=e),this.disabled&&this.tabindex&&(-1!==this.tabindex&&(this._previousTabIndex=this.tabindex),this.tabindex=e=void 0),window.ShadyDOM&&this.setProperties({tabIndex:e,tabindex:e})}},{key:"click",value:function(){this.disabled||x(M(n.prototype),"click",this).call(this)}}],[{key:"properties",get:function(){return{autofocus:{type:Boolean},_previousTabIndex:{type:Number},disabled:{type:Boolean,observer:"_disabledChanged",reflectToAttribute:!0},_isShiftTabbing:{type:Boolean}}}}]),n}(function(e){return function(e){C(n,e);var t=P(n);function n(){return D(this,n),t.apply(this,arguments)}return S(n,null,[{key:"properties",get:function(){var e={tabindex:{type:Number,value:0,reflectToAttribute:!0,observer:"_tabindexChanged"}};return window.ShadyDOM&&(e.tabIndex=e.tabindex),e}}]),n}(e)}((0,w.T)((0,g._)(_.H3))))));customElements.define(se.is,se);var le=(0,i.d)(ae||(ae=function(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['<dom-module id="material-date-picker-overlay-content" theme-for="vaadin-date-picker-overlay-content">\n <template>\n <style>\n :host {\n font-family: var(--material-font-family);\n font-size: var(--material-body-font-size);\n -webkit-text-size-adjust: 100%;\n line-height: 1.4;\n\n /* FIXME(platosha): fix the core styles and remove this override. */\n background: transparent;\n }\n\n :host([fullscreen]) {\n position: absolute;\n }\n\n /* Fullscreen Toolbar */\n\n [part="overlay-header"] {\n display: flex;\n align-items: baseline;\n position: relative;\n z-index: 2;\n color: var(--material-body-text-color);\n background: var(--material-secondary-background-color);\n border-bottom: 2px solid var(--material-primary-color);\n padding: 8px;\n box-shadow: var(--material-shadow-elevation-4dp);\n }\n\n /* FIXME(platosha): fix the core styles and remove this override. */\n [part="overlay-header"]:not([desktop]) {\n padding-bottom: 8px;\n }\n\n [part="label"] {\n padding: 0 8px;\n flex: auto;\n }\n\n [part="clear-button"],\n [part="toggle-button"] {\n font-family: \'material-icons\';\n font-size: var(--material-icon-font-size);\n line-height: 24px;\n width: 24px;\n height: 24px;\n text-align: center;\n }\n\n [part="clear-button"],\n [part="toggle-button"],\n [part="years-toggle-button"] {\n padding: 8px;\n color: var(--material-secondary-text-color);\n }\n\n [part="clear-button"]:hover,\n [part="toggle-button"]:hover,\n [part="years-toggle-button"]:hover {\n color: inherit;\n }\n\n [part="clear-button"]::before {\n content: var(--material-icons-clear);\n }\n\n [part="toggle-button"]::before {\n content: var(--material-icons-calendar);\n }\n\n [part="years-toggle-button"] {\n position: static;\n padding: 4px 8px;\n font-size: var(--material-body-font-size);\n font-weight: 500;\n line-height: 24px;\n letter-spacing: 0.05em;\n color: var(--material-secondary-text-color);\n }\n\n [part="years-toggle-button"]::before {\n content: \'\';\n display: none;\n }\n\n [part="years-toggle-button"]::after {\n content: var(--material-icons-play);\n display: inline-block;\n width: 24px;\n font-family: \'material-icons\';\n font-size: var(--material-icon-font-size);\n line-height: 24px;\n text-align: center;\n transition: transform 100ms cubic-bezier(.4, 0, .2, 1);\n }\n\n :host([years-visible]) [part="years-toggle-button"]::after {\n transform: rotate(90deg);\n }\n\n /* Month scroller */\n\n [part="months"] {\n --vaadin-infinite-scroller-item-height: 320px;\n text-align: center;\n }\n\n /* Year scroller */\n\n [part="years"] {\n z-index: 1;\n background: var(--material-secondary-text-color);\n color: var(--material-background-color);\n text-align: center;\n }\n\n [part="years"]::before {\n z-index: 2;\n border: 0;\n width: 8px;\n height: 8px;\n transform: translateX(-50%) rotate(-45deg);\n background: var(--material-background-color);\n }\n\n :host([years-visible]) [part="years"]::after {\n top: calc(20px + 16px);\n height: calc(100% - 20px - 16px);\n }\n\n [part="year-number"] {\n font-size: var(--material-small-font-size);\n line-height: 10px; /* NOTE(platosha): chosen to align years to months */\n }\n\n [part="year-separator"] {\n background-color: currentColor;\n width: 4px;\n height: 4px;\n border-radius: 50%;\n margin: calc(0.5 * var(--vaadin-infinite-scroller-item-height, 80px) - 0.5 * 10px - 0.5 * 4px) auto;\n }\n\n /* Bottom Bar */\n\n [part="toolbar"] {\n display: flex;\n justify-content: flex-end;\n padding: 8px 4px;\n border-top: 1px solid var(--material-divider-color);\n }\n\n [part="cancel-button"] {\n order: 1;\n }\n\n [part="today-button"] {\n order: 2;\n }\n\n [part="today-button"],\n [part="cancel-button"] {\n margin: 0 4px;\n }\n </style>\n </template>\n</dom-module>'])));document.head.appendChild(le.content);n(38323);var ue=n(8621),ce=n(23916),de=n(62305);n(42173);function he(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var fe,pe=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,o;return t=e,o=[{key:"_getISOWeekNumber",value:function(e){var t=e.getDay();0===t&&(t=7);var n=4-t,o=new Date(e.getTime()+24*n*3600*1e3),i=new Date(0,0);i.setFullYear(o.getFullYear());var r=o.getTime()-i.getTime(),a=Math.round(r/864e5);return Math.floor(a/7+1)}},{key:"_dateEquals",value:function(e,t){return e instanceof Date&&t instanceof Date&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate()}},{key:"_dateAllowed",value:function(e,t,n){return(!t||e>=t)&&(!n||e<=n)}},{key:"_getClosestDate",value:function(e,t){return t.filter((function(e){return void 0!==e})).reduce((function(t,n){return n?t?Math.abs(e.getTime()-n.getTime())<Math.abs(t.getTime()-e.getTime())?n:t:n:t}))}},{key:"_extractDateParts",value:function(e){return{day:e.getDate(),month:e.getMonth(),year:e.getFullYear()}}}],(n=null)&&he(t.prototype,n),o&&he(t,o),e}();function ye(e){return(ye="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})(e)}function ve(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 o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function be(e,t){return(be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(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,o=we(e);if(t){var i=we(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return ge(this,n)}}function ge(e,t){return!t||"object"!==ye(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function we(e){return(we=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ke=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,r=_e(a);function a(){return ve(this,a),r.apply(this,arguments)}return t=a,o=[{key:"template",get:function(){return(0,i.d)(fe||(fe=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 [part="weekdays"],\n #days {\n display: flex;\n flex-wrap: wrap;\n flex-grow: 1;\n }\n\n #days-container,\n #weekdays-container {\n display: flex;\n }\n\n [part="week-numbers"] {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n flex-shrink: 0;\n }\n\n [part="week-numbers"][hidden],\n [part="weekday"][hidden] {\n display: none;\n }\n\n [part="weekday"],\n [part="date"] {\n /* Would use calc(100% / 7) but it doesn\'t work nice on IE */\n width: 14.285714286%;\n }\n\n [part="weekday"]:empty,\n [part="week-numbers"] {\n width: 12.5%;\n flex-shrink: 0;\n }\n </style>\n\n <div part="month-header" role="heading">[[_getTitle(month, i18n.monthNames)]]</div>\n <div id="monthGrid" on-tap="_handleTap" on-touchend="_preventDefault" on-touchstart="_onMonthGridTouchStart">\n <div id="weekdays-container">\n <div hidden="[[!_showWeekSeparator(showWeekNumbers, i18n.firstDayOfWeek)]]" part="weekday"></div>\n <div part="weekdays">\n <template is="dom-repeat" items="[[_getWeekDayNames(i18n.weekdays, i18n.weekdaysShort, showWeekNumbers, i18n.firstDayOfWeek)]]">\n <div part="weekday" role="heading" aria-label$="[[item.weekDay]]">[[item.weekDayShort]]</div>\n </template>\n </div>\n </div>\n <div id="days-container">\n <div part="week-numbers" hidden="[[!_showWeekSeparator(showWeekNumbers, i18n.firstDayOfWeek)]]">\n <template is="dom-repeat" items="[[_getWeekNumbers(_days)]]">\n <div part="week-number" role="heading" aria-label$="[[i18n.week]] [[item]]">[[item]]</div>\n </template>\n </div>\n <div id="days">\n <template is="dom-repeat" items="[[_days]]">\n <div part="date" today$="[[_isToday(item)]]" selected$="[[_dateEquals(item, selectedDate)]]" focused$="[[_dateEquals(item, focusedDate)]]" date="[[item]]" disabled$="[[!_dateAllowed(item, minDate, maxDate)]]" role$="[[_getRole(item)]]" aria-label$="[[_getAriaLabel(item)]]" aria-disabled$="[[_getAriaDisabled(item, minDate, maxDate)]]">[[_getDate(item)]]</div>\n </template>\n </div>\n </div>\n </div>\n'],['\n <style>\n :host {\n display: block;\n }\n\n [part="weekdays"],\n #days {\n display: flex;\n flex-wrap: wrap;\n flex-grow: 1;\n }\n\n #days-container,\n #weekdays-container {\n display: flex;\n }\n\n [part="week-numbers"] {\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n flex-shrink: 0;\n }\n\n [part="week-numbers"][hidden],\n [part="weekday"][hidden] {\n display: none;\n }\n\n [part="weekday"],\n [part="date"] {\n /* Would use calc(100% / 7) but it doesn\'t work nice on IE */\n width: 14.285714286%;\n }\n\n [part="weekday"]:empty,\n [part="week-numbers"] {\n width: 12.5%;\n flex-shrink: 0;\n }\n </style>\n\n <div part="month-header" role="heading">[[_getTitle(month, i18n.monthNames)]]</div>\n <div id="monthGrid" on-tap="_handleTap" on-touchend="_preventDefault" on-touchstart="_onMonthGridTouchStart">\n <div id="weekdays-container">\n <div hidden="[[!_showWeekSeparator(showWeekNumbers, i18n.firstDayOfWeek)]]" part="weekday"></div>\n <div part="weekdays">\n <template is="dom-repeat" items="[[_getWeekDayNames(i18n.weekdays, i18n.weekdaysShort, showWeekNumbers, i18n.firstDayOfWeek)]]">\n <div part="weekday" role="heading" aria-label\\$="[[item.weekDay]]">[[item.weekDayShort]]</div>\n </template>\n </div>\n </div>\n <div id="days-container">\n <div part="week-numbers" hidden="[[!_showWeekSeparator(showWeekNumbers, i18n.firstDayOfWeek)]]">\n <template is="dom-repeat" items="[[_getWeekNumbers(_days)]]">\n <div part="week-number" role="heading" aria-label\\$="[[i18n.week]] [[item]]">[[item]]</div>\n </template>\n </div>\n <div id="days">\n <template is="dom-repeat" items="[[_days]]">\n <div part="date" today\\$="[[_isToday(item)]]" selected\\$="[[_dateEquals(item, selectedDate)]]" focused\\$="[[_dateEquals(item, focusedDate)]]" date="[[item]]" disabled\\$="[[!_dateAllowed(item, minDate, maxDate)]]" role\\$="[[_getRole(item)]]" aria-label\\$="[[_getAriaLabel(item)]]" aria-disabled\\$="[[_getAriaDisabled(item, minDate, maxDate)]]">[[_getDate(item)]]</div>\n </template>\n </div>\n </div>\n </div>\n'])))}},{key:"is",get:function(){return"vaadin-month-calendar"}},{key:"properties",get:function(){return{month:{type:Date,value:new Date},selectedDate:{type:Date,notify:!0},focusedDate:Date,showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Date,value:null},maxDate:{type:Date,value:null},_days:{type:Array,computed:"_getDays(month, i18n.firstDayOfWeek, minDate, maxDate)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}},{key:"observers",get:function(){return["_showWeekNumbersChanged(showWeekNumbers, i18n.firstDayOfWeek)"]}}],(n=[{key:"_dateEquals",value:function(e,t){return pe._dateEquals(e,t)}},{key:"_dateAllowed",value:function(e,t,n){return pe._dateAllowed(e,t,n)}},{key:"_isDisabled",value:function(e,t,n){var o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);var i=new Date(0,0);return i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()+1),i.setDate(0),!(t&&n&&t.getMonth()===n.getMonth()&&t.getMonth()===e.getMonth()&&n.getDate()-t.getDate()>=0||this._dateAllowed(o,t,n)||this._dateAllowed(i,t,n))}},{key:"_getTitle",value:function(e,t){if(void 0!==e&&void 0!==t)return this.i18n.formatTitle(t[e.getMonth()],e.getFullYear())}},{key:"_onMonthGridTouchStart",value:function(){var e=this;this._notTapping=!1,setTimeout((function(){return e._notTapping=!0}),300)}},{key:"_dateAdd",value:function(e,t){e.setDate(e.getDate()+t)}},{key:"_applyFirstDayOfWeek",value:function(e,t){if(void 0!==e&&void 0!==t)return e.slice(t).concat(e.slice(0,t))}},{key:"_getWeekDayNames",value:function(e,t,n,o){if(void 0!==e&&void 0!==t&&void 0!==n&&void 0!==o)return e=this._applyFirstDayOfWeek(e,o),t=this._applyFirstDayOfWeek(t,o),e=e.map((function(e,n){return{weekDay:e,weekDayShort:t[n]}}))}},{key:"_getDate",value:function(e){return e?e.getDate():""}},{key:"_showWeekNumbersChanged",value:function(e,t){e&&1===t?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}},{key:"_showWeekSeparator",value:function(e,t){return e&&1===t}},{key:"_isToday",value:function(e){return this._dateEquals(new Date,e)}},{key:"_getDays",value:function(e,t){if(void 0!==e&&void 0!==t){var n=new Date(0,0);for(n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()),n.setDate(1);n.getDay()!==t;)this._dateAdd(n,-1);for(var o=[],i=n.getMonth(),r=e.getMonth();n.getMonth()===r||n.getMonth()===i;)o.push(n.getMonth()===r?new Date(n.getTime()):null),this._dateAdd(n,1);return o}}},{key:"_getWeekNumber",value:function(e,t){if(void 0!==e&&void 0!==t)return e||(e=t.reduce((function(e,t){return!e&&t?t:e}))),pe._getISOWeekNumber(e)}},{key:"_getWeekNumbers",value:function(e){var t=this;return e.map((function(n){return t._getWeekNumber(n,e)})).filter((function(e,t,n){return n.indexOf(e)===t}))}},{key:"_handleTap",value:function(e){this.ignoreTaps||this._notTapping||!e.target.date||e.target.hasAttribute("disabled")||(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{bubbles:!0,composed:!0})))}},{key:"_preventDefault",value:function(e){e.preventDefault()}},{key:"_getRole",value:function(e){return e?"button":"presentation"}},{key:"_getAriaLabel",value:function(e){if(!e)return"";var t=this._getDate(e)+" "+this.i18n.monthNames[e.getMonth()]+" "+e.getFullYear()+", "+this.i18n.weekdays[e.getDay()];return this._isToday(e)&&(t+=", "+this.i18n.today),t}},{key:"_getAriaDisabled",value:function(e,t,n){if(void 0!==e&&void 0!==t&&void 0!==n)return this._dateAllowed(e,t,n)?"false":"true"}}])&&me(t.prototype,n),o&&me(t,o),a}((0,w.T)((0,g._)(_.H3)));customElements.define(ke.is,ke);var xe,De=n(52521),Oe=n(87529);function Se(e){return(Se="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})(e)}function Ce(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 o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Pe(e,t,n){return(Pe="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=je(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function Te(e,t){return(Te=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Me(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,o=je(e);if(t){var i=je(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Ae(this,n)}}function Ae(e,t){return!t||"object"!==Se(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function je(e){return(je=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(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,r=Me(a);function a(){return Ce(this,a),r.apply(this,arguments)}return t=a,o=[{key:"template",get:function(){return(0,i.d)(xe||(xe=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 overflow: hidden;\n height: 500px;\n }\n\n #scroller {\n position: relative;\n height: 100%;\n overflow: auto;\n outline: none;\n margin-right: -40px;\n -webkit-overflow-scrolling: touch;\n -ms-overflow-style: none;\n overflow-x: hidden;\n }\n\n #scroller.notouchscroll {\n -webkit-overflow-scrolling: auto;\n }\n\n #scroller::-webkit-scrollbar {\n display: none;\n }\n\n .buffer {\n position: absolute;\n width: var(--vaadin-infinite-scroller-buffer-width, 100%);\n box-sizing: border-box;\n padding-right: 40px;\n top: var(--vaadin-infinite-scroller-buffer-offset, 0);\n animation: fadein 0.2s;\n }\n\n @keyframes fadein {\n from { opacity: 0; }\n to { opacity: 1; }\n }\n </style>\n\n <div id="scroll