UNPKG

iobroker.lovelace

Version:

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

3 lines 28.9 kB
/*! For license information please see chunk.5e3454e47aec4b1c30ee.js.LICENSE.txt */ (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[1479],{43835:function(t,e,n){"use strict";n(65660),n(15495),n(1656),n(54242),n(47686)},21384:function(t,e,n){"use strict";n.d(e,{t:function(){return _}});n(56646);var o=n(42687),r=n(74460);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function c(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){var e="function"==typeof Map?new Map:void 0;return(s=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,o)}function o(){return l(t,arguments,d(this).constructor)}return o.prototype=Object.create(t.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),p(o,t)})(t)}function l(t,e,n){return(l=f()?Reflect.construct:function(t,e,n){var o=[null];o.push.apply(o,e);var r=new(Function.bind.apply(t,o));return n&&p(r,n.prototype),r}).apply(null,arguments)}function f(){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(t){return!1}}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h={},y={};function v(t,e){h[t]=y[t.toLowerCase()]=e}function m(t){return h[t]||y[t.toLowerCase()]}var _=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(y,t);var e,n,i,s,l,h=(e=y,n=f(),function(){var t,o=d(e);if(n){var r=d(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return c(this,t)});function y(){return u(this,y),h.apply(this,arguments)}return i=y,l=[{key:"observedAttributes",get:function(){return["id"]}},{key:"import",value:function(t,e){if(t){var n=m(t);return n&&e?n.querySelector(e):n}return null}}],(s=[{key:"attributeChangedCallback",value:function(t,e,n,o){e!==n&&this.register()}},{key:"assetpath",get:function(){if(!this.__assetpath){var t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=(0,o.Kk)(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=(0,o.iY)(e)}return this.__assetpath}},{key:"register",value:function(t){if(t=t||this.id){if(r.XN&&void 0!==m(t))throw v(t,null),new Error("strictTemplatePolicy: dom-module ".concat(t," re-registered"));this.id=t,v(t,this),(e=this).querySelector("style")&&console.warn("dom-module %s has style outside template",e.id)}var e}}])&&a(i.prototype,s),l&&a(i,l),y}(s(HTMLElement));_.prototype.modules=h,customElements.define("dom-module",_)},33367:function(t,e,n){"use strict";n.d(e,{w:function(){return m}});var o=n(81850);function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function a(t,e,n){return(a="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var o=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=f(t)););return t}(t,e);if(o){var r=Object.getOwnPropertyDescriptor(o,e);return r.get?r.get.call(n):r.value}})(t,e,n||t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=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(t){return!1}}();return function(){var n,o=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0};function d(t,e){if(!t)return e=e;e=(0,o.x)(e),Array.isArray(t)||(t=[t]);var n=e.prototype.behaviors;return e=h(t=y(t,null,n),e),n&&(t=n.concat(t)),e.prototype.behaviors=t,e}function h(t,e){for(var n=0;n<t.length;n++){var o=t[n];o&&(e=Array.isArray(o)?h(o,e):v(o,e))}return e}function y(t,e,n){e=e||[];for(var o=t.length-1;o>=0;o--){var r=t[o];r?Array.isArray(r)?y(r,e):e.indexOf(r)<0&&(!n||n.indexOf(r)<0)&&e.unshift(r):console.warn("behavior is null, check for missing or 404 import")}return e}function v(t,e){var n=function(e){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(p,e);var n,o,r,l=s(p);function p(){return i(this,p),l.apply(this,arguments)}return n=p,r=[{key:"properties",get:function(){return t.properties}},{key:"observers",get:function(){return t.observers}}],(o=[{key:"created",value:function(){a(f(p.prototype),"created",this).call(this),t.created&&t.created.call(this)}},{key:"_registered",value:function(){a(f(p.prototype),"_registered",this).call(this),t.beforeRegister&&t.beforeRegister.call(Object.getPrototypeOf(this)),t.registered&&t.registered.call(Object.getPrototypeOf(this))}},{key:"_applyListeners",value:function(){if(a(f(p.prototype),"_applyListeners",this).call(this),t.listeners)for(var e in t.listeners)this._addMethodEventListenerToNode(this,e,t.listeners[e])}},{key:"_ensureAttributes",value:function(){if(t.hostAttributes)for(var e in t.hostAttributes)this._ensureAttribute(e,t.hostAttributes[e]);a(f(p.prototype),"_ensureAttributes",this).call(this)}},{key:"ready",value:function(){a(f(p.prototype),"ready",this).call(this),t.ready&&t.ready.call(this)}},{key:"attached",value:function(){a(f(p.prototype),"attached",this).call(this),t.attached&&t.attached.call(this)}},{key:"detached",value:function(){a(f(p.prototype),"detached",this).call(this),t.detached&&t.detached.call(this)}},{key:"attributeChanged",value:function(e,n,o){a(f(p.prototype),"attributeChanged",this).call(this,e,n,o),t.attributeChanged&&t.attributeChanged.call(this,e,n,o)}}])&&u(n.prototype,o),r&&u(n,r),p}(e);for(var o in n.generatedFrom=t,t)if(!(o in p)){var r=Object.getOwnPropertyDescriptor(t,o);r&&Object.defineProperty(n.prototype,o,r)}return n}var m=function(t,e){t||console.warn("Polymer's Class function requires `info` argument");var n=t.behaviors?d(t.behaviors,HTMLElement):(0,o.x)(HTMLElement),r=v(t,e?e(n):n);return r.is=t.is,r}},72419:function(t,e,n){"use strict";var o=n(18691);o.E._mutablePropertyChange;Boolean},9672:function(t,e,n){"use strict";var o=n(33367);n(56646);o.w},87156:function(t,e,n){"use strict";n.d(e,{Ku:function(){return s},vz:function(){return p}});n(56646),n(74460);var o=n(20723);n(93252),n(78956);function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function u(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}var a=Element.prototype,c=a.matches||a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector,s=function(t,e){return c.call(t,e)},l=function(){function t(e){r(this,t),this.node=e}return u(t,[{key:"observeNodes",value:function(t){return new o.o(this.node,t)}},{key:"unobserveNodes",value:function(t){t.disconnect()}},{key:"notifyObserver",value:function(){}},{key:"deepContains",value:function(t){if(this.node.contains(t))return!0;for(var e=t,n=t.ownerDocument;e&&e!==n&&e!==this.node;)e=e.parentNode||e.host;return e===this.node}},{key:"getOwnerRoot",value:function(){return this.node.getRootNode()}},{key:"getDistributedNodes",value:function(){return"slot"===this.node.localName?this.node.assignedNodes({flatten:!0}):[]}},{key:"getDestinationInsertionPoints",value:function(){for(var t=[],e=this.node.assignedSlot;e;)t.push(e),e=e.assignedSlot;return t}},{key:"importNode",value:function(t,e){return(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(t,e)}},{key:"getEffectiveChildNodes",value:function(){return o.o.getFlattenedNodes(this.node)}},{key:"queryDistributedElements",value:function(t){for(var e,n=this.getEffectiveChildNodes(),o=[],r=0,i=n.length;r<i&&(e=n[r]);r++)e.nodeType===Node.ELEMENT_NODE&&s(e,t)&&o.push(e);return o}},{key:"activeElement",get:function(){var t=this.node;return void 0!==t._activeElement?t._activeElement:t.activeElement}}]),t}();var f=function(){function t(e){r(this,t),this.event=e}return u(t,[{key:"rootTarget",get:function(){return this.event.composedPath()[0]}},{key:"localTarget",get:function(){return this.event.target}},{key:"path",get:function(){return this.event.composedPath()}}]),t}();l.prototype.cloneNode,l.prototype.appendChild,l.prototype.insertBefore,l.prototype.removeChild,l.prototype.replaceChild,l.prototype.setAttribute,l.prototype.removeAttribute,l.prototype.querySelector,l.prototype.querySelectorAll,l.prototype.parentNode,l.prototype.firstChild,l.prototype.lastChild,l.prototype.nextSibling,l.prototype.previousSibling,l.prototype.firstElementChild,l.prototype.lastElementChild,l.prototype.nextElementSibling,l.prototype.previousElementSibling,l.prototype.childNodes,l.prototype.children,l.prototype.classList,l.prototype.textContent,l.prototype.innerHTML,function(t,e){for(var n=function(n){var o=e[n];t[o]=function(){return this.node[o].apply(this.node,arguments)}},o=0;o<e.length;o++)n(o)}(l.prototype,["cloneNode","appendChild","insertBefore","removeChild","replaceChild","setAttribute","removeAttribute","querySelector","querySelectorAll"]),function(t,e){for(var n=function(n){var o=e[n];Object.defineProperty(t,o,{get:function(){return this.node[o]},configurable:!0})},o=0;o<e.length;o++)n(o)}(l.prototype,["parentNode","firstChild","lastChild","nextSibling","previousSibling","firstElementChild","lastElementChild","nextElementSibling","previousElementSibling","childNodes","children","classList"]),function(t,e){for(var n=function(n){var o=e[n];Object.defineProperty(t,o,{get:function(){return this.node[o]},set:function(t){this.node[o]=t},configurable:!0})},o=0;o<e.length;o++)n(o)}(l.prototype,["textContent","innerHTML"]);var p=function(t){var e;(t=t||document).__domApi||(e=t instanceof Event?new f(t):new l(t),t.__domApi=e);return t.__domApi}},37692:function(t,e,n){"use strict";n(52521)},21683:function(t,e,n){"use strict";n.d(e,{Wc:function(){return c},YA:function(){return s}});n(56646);var o=0,r=0,i=[],u=0,a=document.createTextNode("");new window.MutationObserver((function(){for(var t=i.length,e=0;e<t;e++){var n=i[e];if(n)try{n()}catch(o){setTimeout((function(){throw o}))}}i.splice(0,t),r+=t})).observe(a,{characterData:!0});var c={after:function(t){return{run:function(e){return window.setTimeout(e,t)},cancel:function(t){window.clearTimeout(t)}}},run:function(t,e){return window.setTimeout(t,e)},cancel:function(t){window.clearTimeout(t)}},s={run:function(t){return a.textContent=u++,i.push(t),o++},cancel:function(t){var e=t-r;if(e>=0){if(!i[e])throw new Error("invalid async handle: "+t);i[e]=null}}}},81668:function(t,e,n){"use strict";n.d(e,{NH:function(){return R},ys:function(){return M},BP:function(){return A}});n(56646);var o=n(21683),r=n(78956),i=n(74460),u="string"==typeof document.head.style.touchAction,a="__polymerGestures",c="__polymerGesturesHandled",s="__polymerGesturesTouchAction",l=["mousedown","mousemove","mouseup","click"],f=[0,1,4,2],p=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(t){return!1}}();function d(t){return l.indexOf(t)>-1}var h=!1;function y(t){if(!d(t)&&"touchend"!==t)return u&&h&&i.f6?{passive:!0}:void 0}!function(){try{var t=Object.defineProperty({},"passive",{get:function(){h=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}}();var v=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),m=[],_={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},b={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function g(t){var e=Array.prototype.slice.call(t.labels||[]);if(!e.length){e=[];var n=t.getRootNode();if(t.id)for(var o=n.querySelectorAll("label[for = ".concat(t.id,"]")),r=0;r<o.length;r++)e.push(o[r])}return e}var w=function(t){var e,n=t.sourceCapabilities;if((!n||n.firesTouchEvents)&&(t[c]={skip:!0},"click"===t.type)){var o=!1,r=t.composedPath&&t.composedPath();if(r)for(var i=0;i<r.length;i++){if(r[i].nodeType===Node.ELEMENT_NODE)if("label"===r[i].localName)m.push(r[i]);else if(e=r[i],_[e.localName])for(var u=g(r[i]),a=0;a<u.length;a++)o=o||m.indexOf(u[a])>-1;if(r[i]===O.mouse.target)return}if(o)return;t.preventDefault(),t.stopPropagation()}};function E(t){for(var e,n=v?["click"]:l,o=0;o<n.length;o++)e=n[o],t?(m.length=0,document.addEventListener(e,w,!0)):document.removeEventListener(e,w,!0)}function P(t){var e=t.type;if(!d(e))return!1;if("mousemove"===e){var n=void 0===t.buttons?1:t.buttons;return t instanceof window.MouseEvent&&!p&&(n=f[t.which]||0),Boolean(1&n)}return 0===(void 0===t.button?0:t.button)}var O={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function T(t,e,n){t.movefn=e,t.upfn=n,document.addEventListener("mousemove",e),document.addEventListener("mouseup",n)}function C(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}document.addEventListener("touchend",(function(t){O.mouse.mouseIgnoreJob||E(!0),O.mouse.target=t.composedPath()[0],O.mouse.mouseIgnoreJob=r.d.debounce(O.mouse.mouseIgnoreJob,o.Wc.after(2500),(function(){E(),O.mouse.target=null,O.mouse.mouseIgnoreJob=null}))}),!!h&&{passive:!0});var k={},N=[];function x(t){if(t.composedPath){var e=t.composedPath();return e.length>0?e[0]:t.target}return t.target}function S(t){var e,n=t.type,o=t.currentTarget[a];if(o){var r=o[n];if(r){if(!t[c]&&(t[c]={},"touch"===n.slice(0,5))){var i=(t=t).changedTouches[0];if("touchstart"===n&&1===t.touches.length&&(O.touch.id=i.identifier),O.touch.id!==i.identifier)return;u||"touchstart"!==n&&"touchmove"!==n||function(t){var e=t.changedTouches[0],n=t.type;if("touchstart"===n)O.touch.x=e.clientX,O.touch.y=e.clientY,O.touch.scrollDecided=!1;else if("touchmove"===n){if(O.touch.scrollDecided)return;O.touch.scrollDecided=!0;var o=function(t){var e="auto",n=t.composedPath&&t.composedPath();if(n)for(var o,r=0;r<n.length;r++)if((o=n[r])[s]){e=o[s];break}return e}(t),r=!1,i=Math.abs(O.touch.x-e.clientX),u=Math.abs(O.touch.y-e.clientY);t.cancelable&&("none"===o?r=!0:"pan-x"===o?r=u>i:"pan-y"===o&&(r=i>u)),r?t.preventDefault():j("track")}}(t)}if(!(e=t[c]).skip){for(var l,f=0;f<N.length;f++)r[(l=N[f]).name]&&!e[l.name]&&l.flow&&l.flow.start.indexOf(t.type)>-1&&l.reset&&l.reset();for(var p,d=0;d<N.length;d++)r[(p=N[d]).name]&&!e[p.name]&&(e[p.name]=!0,p[n](t))}}}}function R(t,e,n){return!!k[e]&&(function(t,e,n){var o=k[e],r=o.deps,i=o.name,u=t[a];u||(t[a]=u={});for(var c,s,l=0;l<r.length;l++)c=r[l],v&&d(c)&&"click"!==c||((s=u[c])||(u[c]=s={_count:0}),0===s._count&&t.addEventListener(c,S,y(c)),s[i]=(s[i]||0)+1,s._count=(s._count||0)+1);t.addEventListener(e,n),o.touchAction&&A(t,o.touchAction)}(t,e,n),!0)}function M(t,e,n){return!!k[e]&&(function(t,e,n){var o=k[e],r=o.deps,i=o.name,u=t[a];if(u)for(var c,s,l=0;l<r.length;l++)(s=u[c=r[l]])&&s[i]&&(s[i]=(s[i]||1)-1,s._count=(s._count||1)-1,0===s._count&&t.removeEventListener(c,S,y(c)));t.removeEventListener(e,n)}(t,e,n),!0)}function H(t){N.push(t);for(var e=0;e<t.emits.length;e++)k[t.emits[e]]=t}function A(t,e){u&&t instanceof HTMLElement&&o.YA.run((function(){t.style.touchAction=e})),t[s]=e}function L(t,e,n){var o=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(o.detail=n,t.dispatchEvent(o),o.defaultPrevented){var r=n.preventer||n.sourceEvent;r&&r.preventDefault&&r.preventDefault()}}function j(t){var e=function(t){for(var e,n=0;n<N.length;n++){e=N[n];for(var o=0;o<e.emits.length;o++)if(e.emits[o]===t)return e}return null}(t);e.info&&(e.info.prevent=!0)}function D(t,e,n,o){e&&L(e,t,{x:n.clientX,y:n.clientY,sourceEvent:n,preventer:o,prevent:function(t){return j(t)}})}function Y(t,e,n){if(t.prevent)return!1;if(t.started)return!0;var o=Math.abs(t.x-e),r=Math.abs(t.y-n);return o>=5||r>=5}function z(t,e,n){if(e){var o,r=t.moves[t.moves.length-2],i=t.moves[t.moves.length-1],u=i.x-t.x,a=i.y-t.y,c=0;r&&(o=i.x-r.x,c=i.y-r.y),L(e,"track",{state:t.state,x:n.clientX,y:n.clientY,dx:u,dy:a,ddx:o,ddy:c,sourceEvent:n,hover:function(){return function(t,e){for(var n=document.elementFromPoint(t,e),o=n;o&&o.shadowRoot&&!window.ShadyDOM&&o!==(o=o.shadowRoot.elementFromPoint(t,e));)o&&(n=o);return n}(n.clientX,n.clientY)}})}}function X(t,e,n){var o=Math.abs(e.clientX-t.x),r=Math.abs(e.clientY-t.y),i=x(n||e);!i||b[i.localName]&&i.hasAttribute("disabled")||(isNaN(o)||isNaN(r)||o<=25&&r<=25||function(t){if("click"===t.type){if(0===t.detail)return!0;var e=x(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;var n=e.getBoundingClientRect(),o=t.pageX,r=t.pageY;return!(o>=n.left&&o<=n.right&&r>=n.top&&r<=n.bottom)}return!1}(e))&&(t.prevent||L(i,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:n}))}H({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){C(this.info)},mousedown:function(t){if(P(t)){var e=x(t),n=this;T(this.info,(function(t){P(t)||(D("up",e,t),C(n.info))}),(function(t){P(t)&&D("up",e,t),C(n.info)})),D("down",e,t)}},touchstart:function(t){D("down",x(t),t.changedTouches[0],t)},touchend:function(t){D("up",x(t),t.changedTouches[0],t)}}),H({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove:function(t){this.moves.length>2&&this.moves.shift(),this.moves.push(t)},movefn:null,upfn:null,prevent:!1},reset:function(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,C(this.info)},mousedown:function(t){if(P(t)){var e=x(t),n=this,o=function(t){var o=t.clientX,r=t.clientY;Y(n.info,o,r)&&(n.info.state=n.info.started?"mouseup"===t.type?"end":"track":"start","start"===n.info.state&&j("tap"),n.info.addMove({x:o,y:r}),P(t)||(n.info.state="end",C(n.info)),e&&z(n.info,e,t),n.info.started=!0)};T(this.info,o,(function(t){n.info.started&&o(t),C(n.info)})),this.info.x=t.clientX,this.info.y=t.clientY}},touchstart:function(t){var e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove:function(t){var e=x(t),n=t.changedTouches[0],o=n.clientX,r=n.clientY;Y(this.info,o,r)&&("start"===this.info.state&&j("tap"),this.info.addMove({x:o,y:r}),z(this.info,e,n),this.info.state="track",this.info.started=!0)},touchend:function(t){var e=x(t),n=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:n.clientX,y:n.clientY}),z(this.info,e,n))}}),H({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset:function(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown:function(t){P(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click:function(t){P(t)&&X(this.info,t)},touchstart:function(t){var e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend:function(t){X(this.info,t.changedTouches[0],t)}})},87529:function(t,e,n){"use strict";n(56646)},74460:function(t,e,n){"use strict";n.d(e,{sM:function(){return r},v1:function(){return i},f6:function(){return u},XN:function(){return a},ZN:function(){return c}});n(56646);var o=n(42687),r=(window.ShadyDOM,Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),window.customElements.polyfillWrapFlushCallback,(0,o.iY)(document.baseURI||window.location.href)),i=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,u=!1,a=!1,c=!1},52521:function(t,e,n){"use strict";n.d(e,{Uv:function(){return k},GJ:function(){return N}});n(56646);var o=n(40729),r=n(18691),i=n(74460);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function c(t,e,n){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var o=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=h(t)););return t}(t,e);if(o){var r=Object.getOwnPropertyDescriptor(o,e);return r.get?r.get.call(n):r.value}})(t,e,n||t)}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=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(t){return!1}}();return function(){var n,o=h(t);if(e){var r=h(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?d(t):e}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var v=null;function m(){return v}m.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:m,writable:!0}});var _=(0,o.q)(m),b=(0,r.E)(_);var g=function(t){s(i,t);var e,n,o,r=f(i);function i(t){var e;y(this,i),(e=r.call(this))._configureProperties(t),e.root=e._stampTemplate(e.__dataHost);for(var n=e.children=[],o=e.root.firstChild;o;o=o.nextSibling)n.push(o),o.__templatizeInstance=d(e);e.__templatizeOwner&&e.__templatizeOwner.__hideTemplateChildren__&&e._showHideChildren(!0);var u=e.__templatizeOptions;return(t&&u.instanceProps||!u.instanceProps)&&e._enableProperties(),e}return e=i,(n=[{key:"_configureProperties",value:function(t){if(this.__templatizeOptions.forwardHostProp)for(var e in this.__hostProps)this._setPendingProperty(e,this.__dataHost["_host_"+e]);for(var n in t)this._setPendingProperty(n,t[n])}},{key:"forwardHostProp",value:function(t,e){this._setPendingPropertyOrPath(t,e,!1,!0)&&this.__dataHost._enqueueClient(this)}},{key:"_addEventListenerToNode",value:function(t,e,n){var o=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,e,(function(t){t.model=o,n(t)}));else{var r=this.__dataHost.__dataHost;r&&r._addEventListenerToNode(t,e,n)}}},{key:"_showHideChildren",value:function(t){for(var e=this.children,n=0;n<e.length;n++){var o=e[n];if(Boolean(t)!=Boolean(o.__hideTemplateChildren__))if(o.nodeType===Node.TEXT_NODE)t?(o.__polymerTextContent__=o.textContent,o.textContent=""):o.textContent=o.__polymerTextContent__;else if("slot"===o.localName)if(t)o.__polymerReplaced__=document.createComment("hidden-slot"),o.parentNode.replaceChild(o.__polymerReplaced__,o);else{var r=o.__polymerReplaced__;r&&r.parentNode.replaceChild(o,r)}else o.style&&(t?(o.__polymerDisplay__=o.style.display,o.style.display="none"):o.style.display=o.__polymerDisplay__);o.__hideTemplateChildren__=t,o._showHideChildren&&o._showHideChildren(t)}}},{key:"_setUnmanagedPropertyToNode",value:function(t,e,n){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&"textContent"==e?t.__polymerTextContent__=n:c(h(i.prototype),"_setUnmanagedPropertyToNode",this).call(this,t,e,n)}},{key:"parentModel",get:function(){var t=this.__parentModel;if(!t){var e;t=this;do{t=t.__dataHost.__dataHost}while((e=t.__templatizeOptions)&&!e.parentModel);this.__parentModel=t}return t}},{key:"dispatchEvent",value:function(t){return!0}}])&&a(e.prototype,n),o&&a(e,o),i}((0,o.q)(function(){return function t(){y(this,t)}}()));g.prototype.__dataHost,g.prototype.__templatizeOptions,g.prototype._methodHost,g.prototype.__templatizeOwner,g.prototype.__hostProps;var w=(0,r.E)(g);function E(t){var e=t.__dataHost;return e&&e._methodHost||e}function P(t,e,n){var o=function(t){s(n,t);var e=f(n);function n(){return y(this,n),e.apply(this,arguments)}return n}(n.mutableData?w:g);return o.prototype.__templatizeOptions=n,o.prototype._bindTemplate(t),function(t,e,n,o){var r=n.hostProps||{};for(var i in o.instanceProps){delete r[i];var u=o.notifyInstanceProp;u&&t.prototype._addPropertyEffect(i,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:C(i,u)})}if(o.forwardHostProp&&e.__dataHost)for(var a in r)t.prototype._addPropertyEffect(a,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(t,e,n){t.__dataHost._setPendingPropertyOrPath("_host_"+e,n[e],!0,!0)}})}(o,t,e,n),o}function O(t,e,n){var o=n.forwardHostProp;if(o){var r=e.templatizeTemplateClass;if(!r){var i=n.mutableData?b:_;r=e.templatizeTemplateClass=function(t){s(n,t);var e=f(n);function n(){return y(this,n),e.apply(this,arguments)}return n}(i);var u=e.hostProps;for(var a in u)r.prototype._addPropertyEffect("_host_"+a,r.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:T(a,o)}),r.prototype._createNotifyingProperty("_host_"+a)}!function(t,e){v=t,Object.setPrototypeOf(t,e.prototype),new e,v=null}(t,r),t.__dataProto&&Object.assign(t.__data,t.__dataProto),t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties()}}function T(t,e){return function(t,n,o){e.call(t.__templatizeOwner,n.substring("_host_".length),o[n])}}function C(t,e){return function(t,n,o){e.call(t.__templatizeOwner,t,n,o[n])}}function k(t,e,n){if(i.XN&&!E(t))throw new Error("strictTemplatePolicy: template owner not trusted");if(n=n||{},t.__templatizeOwner)throw new Error("A <template> can only be templatized once");t.__templatizeOwner=e;var o=(e?e.constructor:g)._parseTemplate(t),r=o.templatizeInstanceClass;r||(r=P(t,o,n),o.templatizeInstanceClass=r),O(t,o,n);var u=function(t){s(n,t);var e=f(n);function n(){return y(this,n),e.apply(this,arguments)}return n}(r);return u.prototype._methodHost=E(t),u.prototype.__dataHost=t,u.prototype.__templatizeOwner=e,u.prototype.__hostProps=o.hostProps,u=u}function N(t,e){for(var n;e;)if(n=e.__templatizeInstance){if(n.__dataHost==t)return n;e=n.__dataHost}else e=e.parentNode;return null}},28426:function(t,e,n){"use strict";n.d(e,{H3:function(){return r}});var o=n(36608),r=(n(50856),(0,o.SH)(HTMLElement))},65233:function(t,e,n){"use strict";var o=n(81850);n(9672),n(37692),n(9024),n(42173),n(26047),n(37961),n(5618),n(72419),n(50856),(0,o.x)(HTMLElement).prototype}}]); //# sourceMappingURL=chunk.5e3454e47aec4b1c30ee.js.map