!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=10)}([function(e,t){ /** @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ window.JSCompiler_renameProperty=function(e){return e}},function(e,t,n){"use strict";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})(e)}function i(e,t){return e===t}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i,n=null,r=null;return function(){return function(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,i=0;i1?t-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:s;if("object"!==r(e))throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+r(e));var n=Object.keys(e);return t(n.map(function(t){return e[t]}),function(){for(var e=arguments.length,t=Array(e),r=0;r=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:N(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),v}}}function w(e,t,n,r){var i=t&&t.prototype instanceof O?t:O,o=Object.create(i.prototype),a=new j(r||[]);return o._invoke=function(e,t,n){var r=f;return function(i,o){if(r===d)throw new Error("Generator is already running");if(r===y){if("throw"===i)throw o;return R()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var l=k(e,t,n);if("normal"===l.type){if(r=n.done?y:h,l.arg===v)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=y,n.method="throw",n.arg=l.arg)}}}(e,n,a),o}function k(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function O(){}function x(){}function S(){}function P(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function C(e){var n;this._invoke=function(r,i){function a(){return new Promise(function(n,a){!function n(r,i,a,s){var l=k(e[r],e,i);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"===t(c)&&o.call(c,"__await")?Promise.resolve(c.__await).then(function(e){n("next",e,a,s)},function(e){n("throw",e,a,s)}):Promise.resolve(c).then(function(e){u.value=e,a(u)},s)}s(l.arg)}(r,i,n,a)})}return n=n?n.then(a,a):a()}}function E(e,t){var n=e.iterator[t.method];if(n===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=r,E(e,t),"throw"===t.method))return v;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=k(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,v;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,v):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n2&&void 0!==arguments[2]?arguments[2]:null,r=t;r!==n;){var i=r.nextSibling;e.removeChild(r),r=i}},u={},c={}; /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ var p="{{lit-".concat(String(Math.random()).slice(2),"}}"),f="\x3c!--".concat(p,"--\x3e"),h=new RegExp("".concat(p,"|").concat(f)),d=function e(t,n){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.parts=[],this.element=n;var i=-1,o=0,a=[];!function e(n){for(var s=n.content,l=document.createTreeWalker(s,133,null,!1),u=0;l.nextNode();){i++;var c=l.currentNode;if(1===c.nodeType){if(c.hasAttributes()){for(var f=c.attributes,d=0,y=0;y=0&&d++;for(;d-- >0;){var b=t.strings[o],_=m.exec(b)[2],g=_.toLowerCase()+"$lit$",w=c.getAttribute(g).split(h);r.parts.push({type:"attribute",index:i,name:_,strings:w}),c.removeAttribute(g),o+=w.length-1}}"TEMPLATE"===c.tagName&&e(c)}else if(3===c.nodeType){var k=c.data;if(k.indexOf(p)>=0){for(var O=c.parentNode,x=k.split(h),S=x.length-1,P=0;P=\/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function b(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:this.startNode;l(this.startNode.parentNode,e.nextSibling,this.endNode)}}]),e}(),D=function(){function e(t,n,r){if(A(this,e),this.value=void 0,this._pendingValue=void 0,2!==r.length||""!==r[0]||""!==r[1])throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=n,this.strings=r}return N(e,[{key:"setValue",value:function(e){this._pendingValue=e}},{key:"commit",value:function(){for(;a(this._pendingValue);){var e=this._pendingValue;this._pendingValue=u,e(this)}if(this._pendingValue!==u){var t=!!this._pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name)),this.value=t,this._pendingValue=u}}}]),e}(),F=function(e){function t(e,n,r){var i;return A(this,t),(i=S(this,C(t).call(this,e,n,r))).single=2===r.length&&""===r[0]&&""===r[1],i}return E(t,z),N(t,[{key:"_createPart",value:function(){return new B(this)}},{key:"_getValue",value:function(){return this.single?this.parts[0].value:P(C(t.prototype),"_getValue",this).call(this)}},{key:"commit",value:function(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}]),t}(),B=function(e){function t(){return A(this,t),S(this,C(t).apply(this,arguments))}return E(t,L),t}(),H=!1;try{var K={get capture(){return H=!0,!1}};window.addEventListener("test",K,K),window.removeEventListener("test",K,K)}catch(e){}var V=function(){function e(t,n,r){var i=this;A(this,e),this.value=void 0,this._pendingValue=void 0,this.element=t,this.eventName=n,this.eventContext=r,this._boundHandleEvent=function(e){return i.handleEvent(e)}}return N(e,[{key:"setValue",value:function(e){this._pendingValue=e}},{key:"commit",value:function(){for(;a(this._pendingValue);){var e=this._pendingValue;this._pendingValue=u,e(this)}if(this._pendingValue!==u){var t=this._pendingValue,n=this.value,r=null==t||null!=n&&(t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive),i=null!=t&&(null==n||r);r&&this.element.removeEventListener(this.eventName,this._boundHandleEvent,this._options),i&&(this._options=U(t),this.element.addEventListener(this.eventName,this._boundHandleEvent,this._options)),this.value=t,this._pendingValue=u}}},{key:"handleEvent",value:function(e){"function"==typeof this.value?this.value.call(this.eventContext||this.element,e):this.value.handleEvent(e)}}]),e}(),U=function(e){return e&&(H?{capture:e.capture,passive:e.passive,once:e.once}:e.capture)};function q(e,t){for(var n=0;n1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:-1)+1;t2&&void 0!==arguments[2]?arguments[2]:null,r=e.element.content,i=e.parts;if(null!=n)for(var o=document.createTreeWalker(r,J,null,!1),a=ee(i),s=0,l=-1;o.nextNode();)for(l++,o.currentNode===n&&(s=Q(t),n.parentNode.insertBefore(t,n));-1!==a&&i[a].index===l;){if(s>0){for(;-1!==a;)i[a].index+=s,a=ee(i,a);return}a=ee(i,a)}else r.appendChild(t)}(t,i,t.element.content.firstChild),window.ShadyCSS.prepareTemplateStyles(t.element,n),window.ShadyCSS.nativeShadow){var s=t.element.content.querySelector("style");e.insertBefore(s.cloneNode(!0),e.firstChild)}else{t.element.content.insertBefore(i,t.element.content.firstChild);var l=new Set;l.add(i),Z(t,l)}}else window.ShadyCSS.prepareTemplateStyles(t.element,n)};function se(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t2&&void 0!==arguments[2]?arguments[2]:be,r=this.constructor,i=r._attributeNameForProperty(e,n);if(void 0!==i){var o=r._propertyValueToAttribute(t,n);if(void 0===o)return;this._updateState=8|this._updateState,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._updateState=-9&this._updateState}}},{key:"_attributeToProperty",value:function(e,t){if(!(8&this._updateState)){var n=this.constructor,r=n._attributeToPropertyMap.get(e);if(void 0!==r){var i=n._classProperties.get(r)||be;this._updateState=16|this._updateState,this[r]=n._propertyValueFromAttribute(t,i),this._updateState=-17&this._updateState}}}},{key:"requestUpdate",value:function(e,t){var n=!0;if(void 0!==e&&!this._changedProperties.has(e)){var r=this.constructor,i=r._classProperties.get(e)||be;r._valueHasChanged(this[e],t,i.hasChanged)?(this._changedProperties.set(e,t),!0!==i.reflect||16&this._updateState||(void 0===this._reflectingProperties&&(this._reflectingProperties=new Map),this._reflectingProperties.set(e,i))):n=!1}return!this._hasRequestedUpdate&&n&&this._enqueueUpdate(),this.updateComplete}},{key:"_enqueueUpdate",value:function(){var e,t=(e=regeneratorRuntime.mark(function e(){var t,n,r,i=this;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this._updateState=4|this._updateState,n=this._updatePromise,this._updatePromise=new Promise(function(e){return t=e}),e.next=5,n;case 5:if(this._hasConnected){e.next=8;break}return e.next=8,new Promise(function(e){return i._hasConnectedResolver=e});case 8:if(null==(r=this.performUpdate())||"function"!=typeof r.then){e.next=12;break}return e.next=12,r;case 12:t(!this._hasRequestedUpdate);case 13:case"end":return e.stop()}},e,this)}),function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){ue(o,r,i,a,s,"next",e)}function s(e){ue(o,r,i,a,s,"throw",e)}a(void 0)})});return function(){return t.apply(this,arguments)}}()},{key:"performUpdate",value:function(){if(this._instanceProperties&&this._applyInstanceProperties(),this.shouldUpdate(this._changedProperties)){var e=this._changedProperties;this.update(e),this._markUpdated(),1&this._updateState||(this._updateState=1|this._updateState,this.firstUpdated(e)),this.updated(e)}else this._markUpdated()}},{key:"_markUpdated",value:function(){this._changedProperties=new Map,this._updateState=-5&this._updateState}},{key:"shouldUpdate",value:function(e){return!0}},{key:"update",value:function(e){var t=this;void 0!==this._reflectingProperties&&this._reflectingProperties.size>0&&(this._reflectingProperties.forEach(function(e,n){return t._propertyToAttribute(n,t[n],e)}),this._reflectingProperties=void 0)}},{key:"updated",value:function(e){}},{key:"firstUpdated",value:function(e){}},{key:"_hasConnected",get:function(){return 32&this._updateState}},{key:"_hasRequestedUpdate",get:function(){return 4&this._updateState}},{key:"hasUpdated",get:function(){return 1&this._updateState}},{key:"updateComplete",get:function(){return this._updatePromise}}],i=[{key:"_ensureClassProperties",value:function(){var e=this;if(!this.hasOwnProperty(JSCompiler_renameProperty("_classProperties",this))){this._classProperties=new Map;var t=Object.getPrototypeOf(this)._classProperties;void 0!==t&&t.forEach(function(t,n){return e._classProperties.set(n,t)})}}},{key:"createProperty",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:be;if(this._ensureClassProperties(),this._classProperties.set(e,t),!t.noAccessor&&!this.prototype.hasOwnProperty(e)){var n="symbol"===le(e)?Symbol():"__".concat(e);Object.defineProperty(this.prototype,e,{get:function(){return this[n]},set:function(t){var r=this[e];this[n]=t,this.requestUpdate(e,r)},configurable:!0,enumerable:!0})}}},{key:"finalize",value:function(){if(!this.hasOwnProperty(JSCompiler_renameProperty("finalized",this))||!this.finalized){var e=Object.getPrototypeOf(this);if("function"==typeof e.finalize&&e.finalize(),this.finalized=!0,this._ensureClassProperties(),this._attributeToPropertyMap=new Map,this.hasOwnProperty(JSCompiler_renameProperty("properties",this))){var t=this.properties,n=se(Object.getOwnPropertyNames(t)).concat(se("function"==typeof Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[])),r=!0,i=!1,o=void 0;try{for(var a,s=n[Symbol.iterator]();!(r=(a=s.next()).done);r=!0){var l=a.value;this.createProperty(l,t[l])}}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}}}}},{key:"_attributeNameForProperty",value:function(e,t){var n=t.attribute;return!1===n?void 0:"string"==typeof n?n:"string"==typeof e?e.toLowerCase():void 0}},{key:"_valueHasChanged",value:function(e,t){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:me)(e,t)}},{key:"_propertyValueFromAttribute",value:function(e,t){var n=t.type,r=t.converter||ve,i="function"==typeof r?r:r.fromAttribute;return i?i(e,n):e}},{key:"_propertyValueToAttribute",value:function(e,t){if(void 0!==t.reflect){var n=t.type,r=t.converter;return(r&&r.toAttribute||ve.toAttribute)(e,n)}}},{key:"observedAttributes",get:function(){var e=this;this.finalize();var t=[];return this._classProperties.forEach(function(n,r){var i=e._attributeNameForProperty(r,n);void 0!==i&&(e._attributeToPropertyMap.set(i,r),t.push(i))}),t}}],r&&ce(n.prototype,r),i&&ce(n,i),t}();ge.finalized=!0;Oe(function(e,t){return e.querySelector(t)}),Oe(function(e,t){return e.querySelectorAll(t)});var we=function(e,t,n){Object.defineProperty(t,n,e)},ke=function(e,t){return{kind:"method",placement:"prototype",key:t.key,descriptor:e}};function Oe(e){return function(t){return function(n,r){var i={get:function(){return e(this.renderRoot,t)},enumerable:!0,configurable:!0};return void 0!==r?we(i,n,r):ke(i,n)}}} /** @license Copyright (c) 2019 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ var xe="adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;Symbol();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 Pe(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:[],r=0,i=t.length;r2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=t;i!==n;){var o=i.nextSibling;e.insertBefore(i,r),i=o}},Me=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=t;r!==n;){var i=r.nextSibling;e.removeChild(r),r=i}},De={},Fe={}; /** * @license * Copyright (c) 2017 The Polymer Project Authors. All rights reserved. * This code may only be used under the BSD style license found at * http://polymer.github.io/LICENSE.txt * The complete set of authors may be found at * http://polymer.github.io/AUTHORS.txt * The complete set of contributors may be found at * http://polymer.github.io/CONTRIBUTORS.txt * Code distributed by Google as part of the polymer project is also * subject to an additional IP rights grant found at * http://polymer.github.io/PATENTS.txt */ var Be="{{lit-".concat(String(Math.random()).slice(2),"}}"),He="\x3c!--".concat(Be,"--\x3e"),Ke=(new RegExp("".concat(Be,"|").concat(He)),function(e){return-1!==e.index}),Ve=function(){return document.createComment("")},Ue=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F \x09\x0a\x0c\x0d"'>=\/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;function qe(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:this.startNode;Me(this.startNode.parentNode,e.nextSibling,this.endNode)}}]),e}(),pt=function(){function e(t,n,r){if(rt(this,e),this.value=void 0,this._pendingValue=void 0,2!==r.length||""!==r[0]||""!==r[1])throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=n,this.strings=r}return ot(e,[{key:"setValue",value:function(e){this._pendingValue=e}},{key:"commit",value:function(){for(;Ie(this._pendingValue);){var e=this._pendingValue;this._pendingValue=De,e(this)}if(this._pendingValue!==De){var t=!!this._pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name)),this.value=t,this._pendingValue=De}}}]),e}(),ft=function(e){function t(e,n,r){var i;return rt(this,t),(i=Ze(this,et(t).call(this,e,n,r))).single=2===r.length&&""===r[0]&&""===r[1],i}return tt(t,lt),ot(t,[{key:"_createPart",value:function(){return new ht(this)}},{key:"_getValue",value:function(){return this.single?this.parts[0].value:Qe(et(t.prototype),"_getValue",this).call(this)}},{key:"commit",value:function(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}]),t}(),ht=function(e){function t(){return rt(this,t),Ze(this,et(t).apply(this,arguments))}return tt(t,ut),t}(),dt=!1;try{var yt={get capture(){return dt=!0,!1}};window.addEventListener("test",yt,yt),window.removeEventListener("test",yt,yt)}catch(e){}var vt=function(){function e(t,n,r){var i=this;rt(this,e),this.value=void 0,this._pendingValue=void 0,this.element=t,this.eventName=n,this.eventContext=r,this._boundHandleEvent=function(e){return i.handleEvent(e)}}return ot(e,[{key:"setValue",value:function(e){this._pendingValue=e}},{key:"commit",value:function(){for(;Ie(this._pendingValue);){var e=this._pendingValue;this._pendingValue=De,e(this)}if(this._pendingValue!==De){var t=this._pendingValue,n=this.value,r=null==t||null!=n&&(t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive),i=null!=t&&(null==n||r);r&&this.element.removeEventListener(this.eventName,this._boundHandleEvent,this._options),i&&(this._options=mt(t),this.element.addEventListener(this.eventName,this._boundHandleEvent,this._options)),this.value=t,this._pendingValue=De}}},{key:"handleEvent",value:function(e){"function"==typeof this.value?this.value.call(this.eventContext||this.element,e):this.value.handleEvent(e)}}]),e}(),mt=function(e){return e&&(dt?{capture:e.capture,passive:e.passive,once:e.once}:e.capture)};function bt(e,t){for(var n=0;n']);return Ct=function(){return e},e}function Et(){var e=Mt(['']);return Et=function(){return e},e}function Tt(){var e=Mt(['']);return Tt=function(){return e},e}function At(){var e=Mt([' image/svg+xml ']);return At=function(){return e},e}function jt(){var e=Mt([' image/svg+xml ']);return jt=function(){return e},e}function Nt(){var e=Mt(['']);return Nt=function(){return e},e}function Rt(){var e=Mt(['']);return Rt=function(){return e},e}function It(){var e=Mt(['']);return It=function(){return e},e}function zt(){var e=Mt(['']);return zt=function(){return e},e}function Lt(){var e=Mt(['']);return Lt=function(){return e},e}function Mt(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}$(Lt()),$(zt()),$(It()),$(Rt()),$(Nt());var Dt=$(jt()),Ft=$(At()),Bt=($(Tt()),$(Et()),$(Ct()),n(2));function Ht(e){return(Ht="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)}var Kt=function(){return Math.random().toString(36).substring(7).split("").join(".")},Vt={INIT:"@@redux/INIT"+Kt(),REPLACE:"@@redux/REPLACE"+Kt(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Kt()}};function Ut(e){if("object"!==Ht(e)||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function qt(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function Yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wt(){for(var e=arguments.length,t=new Array(e),n=0;n1&&Android.print(" [Copy #"+s.receiptCount+"]\n"),null!=t&&null!=t&&""!=t&&Android.print(" "+t+"\n\n"),Android.printL(r.name+"\n"),Android.print("--------------------------------------------\n"),Android.print(r.address+"\n"),Android.print(r.phones+"\n"),Android.print(i+"\n"),Android.print("--------------------------------------------\n"),Android.print("Car Plate:"+s.carNumber+"\n"),Android.print("Receipt#:"+s.receiptNumber+"\n"),Android.print("Cashier:"+s.salePerson+"\n"),Android.print("MOP:"+s.mop+"\n"),"Credit"==s.mop&&Android.print("Customer:"+s.CustomerName+"\n"),Android.print("--------------------------------------------\n"),Android.print("Item Pump Price Volume Amount\n"),Android.print("--------------------------------------------\n");var l=0;n.forEach(function(e){var t=e.product.trim();Android.print(t+" P"+e.fpId+" "+e.price/o+" "+(e.volume/a).toFixed(3)+" "+e.amount/o+"\n"),l+=parseInt(e.amount)}),Android.print("--------------------------------------------\n"),Android.print("Total: "+l/o+"\n"),Android.printL("\n\n Thank you! \n\n"),Android.cut()}else console.log("Printing receipt");else alert("zero transactions")}function nn(e){var t="";"undefined"!=e&&null!=e&&(t=JSON.stringify(e)),"undefined"!=typeof Android&&Android&&null!==Android?Android.saveData(t):localStorage.setItem("data",t)}var rn=window.host,on=window.port,an=function(e){return function(t,n){var r=n();if(r.app.isLogin){var i=window.hostUrl+"/api/pos/lockTran/"+r.app.user.id+"/"+e.FpId+"/"+e.TranSeq;fetch(i,{headers:{Accept:"application/json","Content-Type":"application/json"},method:"GET"}).then(function(e){return e.json()}).then(function(){t(dn(e)),t(Qt("Successfully lock tran "))}).catch(function(e){return t(Qt("Error:"+e.message))})}else t(Qt("Error: No login"))}},sn=function(e,t){return function(n,r){if(r().app.isLogin){var i=window.hostUrl+"/api/pos/unlockTran/"+e+"/"+t;fetch(i,{headers:{Accept:"application/json","Content-Type":"application/json"},method:"GET"}).then(function(e){return e.json()}).then(function(){n(yn(t)),n(Qt("Successfully unlock tran "))}).catch(function(e){return n(Qt("Error:"+e.message))})}else n(Qt("Error: No login"))}},ln=null,un=function(){return window.alert("Error loading fps!"),{type:"ERROR"}},cn=function(e){return function(t,n){if("Ok"!=e.status||"FPS"!=e.type)return windows.alert("Error loading fueling points:"+e.message),{type:"RECEIVE_FPS",fps:[]};var r=e.data;r.sort(function(e,t){return e.FpId>t.FpId?1:-1}),r=r.reduce(function(e,t){return e[t.FpId]=t,e},{}),pn(t,n),t({type:"RECEIVE_FPS",fps:r})}},pn=function e(t,n){window.WebSocket?((ln=new WebSocket("ws://"+rn+":"+on+"/ws")).onclose=function(r){setTimeout(function(){e(t,n)},5e3)},ln.onmessage=function(e){for(var r=e.data.split("\n"),i=0;iYour browser does not support WebSockets.")},fn=function(e){return{type:"UPDATE_FP",fp:e}},hn=function(e){return{type:"ADD_SALE",sale:e}},dn=function(e){return function(t,n){t({type:"ADD_TRAN",tran:e})}},yn=function(e){return function(t,n){t({type:"REMOVE_TRAN",TranSeq:e})}},vn=function(){return function(e,t){e({type:"CLEAR_TRAN"})}},mn=n(1);function bn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:gn,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"ADD_TRAN":case"REMOVE_TRAN":return bn({},e,{trans:wn(e.trans,t)});case"CLEAR_TRAN":return bn({},e,{trans:{}});default:return e}},On=function(e){return e.transactions.trans},xn=Object(mn.createSelector)(On,function(e){var t=0;return e?(Object.keys(e).map(function(n){var r=e[n];t+=r.Money}),t):0}),Sn=Object(mn.createSelector)(On,function(e){return e?Object.keys(e).reduce(function(e,t){0},0):0});function Pn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:En,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"RECEIVE_FPS":return Pn({},e,{fps:t.fps});case"UPDATE_FP":return Pn({},e,{fps:Tn(e.fps,t)});case"SELECT_FP":return Pn({},e,{fpId:t.fpId});case"RECEIVE_SALES":return Pn({},e,{sales:t.sales});case"ADD_SALE":return Pn({},e,{sales:sales(e.sales,t)});case"RECEIVE_OLD_TRANS":return Pn({},e,{oldsales:t.data.data});case"ADD_TO_CART":case"REMOVE_FROM_CART":case"CHECKOUT_SUCCESS":return Pn({},e,{products:products(e.products,t),cart:cart(e.cart,t),error:""});case"CHECKOUT_FAILURE":return Pn({},e,{error:"Checkout failed. Please try again"});case"PRINT_RECEIPT":return Pn({},e,{printData:t.receiptData});case"OPEN_PRINT_RECEIPT_DIALOG":return Pn({},e,{receiptDialog:!0});case"CLOSE_PRINT_RECEIPT_DIALOG":return Pn({},e,{receiptDialog:!1});default:return e}},jn=Object(mn.createSelector)(function(e){return e.pumps.fps},function(e){return e.app.user},function(e){return e.app.isLogin},function(e,t,n){if(1==n){var r=t.pump_list;if(""==r)return e;var i={};return Object.keys(e).map(function(t){var n=e[t].FpId;r.split(",").map(Number).indexOf(n)>-1&&(i[t]=e[t])}),i}return e});function Nn(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:In,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"STATION":return Nn({},e,{station:t.station});case"LOGIN":return Nn({},e,{isLogin:t.isLogin,user:t.user,station:t.station});case"LOGOUT":return Nn({},e,{isLogin:!1,user:null});case"OPEN_CUSTOMER_DIALOG":return Nn({},e,{customerDialog:!0});case"CLOSE_CUSTOMER_DIALOG":return Nn({},e,{customerDialog:!1});case"UPDATE_OFFLINE":return Nn({},e,{offline:t.offline});case"OPEN_SNACKBAR":return Nn({},e,{snackbarOpened:!0,msg:t.msg});case"CLOSE_SNACKBAR":return Nn({},e,{snackbarOpened:!1});case"CREDIT_CUSTOMER":return Nn({},e,{customer:t.customer});case"RESET_PASSCODE":return Nn({},e,{user:t.user});default:return e}},Ln=function e(t,n,r){var i;if("function"==typeof n&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function");if("function"==typeof n&&void 0===r&&(r=n,n=void 0),void 0!==r){if("function"!=typeof r)throw new Error("Expected the enhancer to be a function.");return r(e)(t,n)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var o=t,a=n,s=[],l=s,u=!1;function c(){l===s&&(l=s.slice())}function p(){if(u)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function f(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(u)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return c(),l.push(e),function(){if(t){if(u)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,c();var n=l.indexOf(e);l.splice(n,1)}}}function h(e){if(!Ut(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(u)throw new Error("Reducers may not dispatch actions.");try{u=!0,a=o(a,e)}finally{u=!1}for(var t=s=l,n=0;n'," \n "]);return qn=function(){return e},e}function Yn(){var e=fr(['\n '," "]);return Yn=function(){return e},e}function Wn(){var e=fr([""]);return Wn=function(){return e},e}function Gn(){var e=fr(['']);return Gn=function(){return e},e}function Xn(){var e=fr([""]);return Xn=function(){return e},e}function $n(){var e=fr(['']);return $n=function(){return e},e}function Jn(){var e=fr([""]);return Jn=function(){return e},e}function Zn(){var e=fr(['']);return Zn=function(){return e},e}function Qn(){var e=fr([""]);return Qn=function(){return e},e}function er(){var e=fr(['']);return er=function(){return e},e}function tr(){var e=fr([""]);return tr=function(){return e},e}function nr(){var e=fr(['']);return nr=function(){return e},e}function rr(){var e=fr([""]);return rr=function(){return e},e}function ir(){var e=fr(['']);return ir=function(){return e},e}function or(){var e=fr(["",""]);return or=function(){return e},e}function ar(){var e=fr(["",""]);return ar=function(){return e},e}function sr(){var e=fr([""]);return sr=function(){return e},e}function lr(){var e=fr(['']);return lr=function(){return e},e}function ur(){var e=fr([""]);return ur=function(){return e},e}function cr(){var e=fr(['']);return cr=function(){return e},e}function pr(){var e=fr(['\n \n \n \n \n \n \n
\n
\n
\n \n \n '," \n \n
\n ","\n ",'\n
\n
\n
\n
\n ',"\n
\n ","\n ","\n ","\n "," \n ","\n ",'\n
\n
\n
\n
\n $\n ',"\n ","\n
\n
\n "]);return pr=function(){return e},e}function fr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function hr(e,t){return!t||"object"!==Un(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 dr(e){return(dr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yr(e,t){for(var n=0;n1?$(Yn(),t):null,1==t?$(qn(),n[0].Money):null)}}}],[{key:"properties",get:function(){return{pump:{type:Object},trans:{type:Array},station:{type:Object}}}}]),vr(t,[{key:"getClassName",value:function(e){return"Calling"==e?"calling":"Idle"==e?"idle":"Unavailable"==e?"unavailable":"Closed"==e?"close":""}},{key:"stateChanged",value:function(e){e.transactions&&(this.saleTrans=e.transactions.trans,this.requestUpdate()),this.isLogin=e.app.isLogin,this.station=e.app.station}},{key:"clickItem",value:function(){if(this.isLogin){Ln.dispatch({type:"SELECT_FP",fpId:this.pump.FpId});var e=new CustomEvent("click-detail-event",{detail:{fpId:this.pump.FpId}});this.dispatchEvent(e)}else Ln.dispatch(Qt("Error: No login"))}},{key:"clickItemMoney",value:function(){this.isLogin?(this.pump.Trans&&1==this.pump.Trans.length&&Ln.dispatch(an(this.pump.Trans[0])),this.pump.Trans&&this.pump.Trans.length>1&&this.clickItem()):Ln.dispatch(Qt("Error: No login"))}},{key:"authorize",value:function(){}}]),t}();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})(e)}function gr(){var e=kr(["\n \n \n ","\n \n \n Pump "," - ","\n \n \n ","\n \n \n ","\n \n \n ",'\n \n \n \n \n \n \n \n ']);return gr=function(){return e},e}function wr(){var e=kr(['\n \n \n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ","\n \n
#ItemVolumePriceAmountRemove
Total:',"
\n "]);return wr=function(){return e},e}function kr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Or(e,t){return!t||"object"!==_r(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 xr(e){return(xr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Sr(e,t){for(var n=0;n\n ","\n ","\n ","\n ","\n ",'\n \n \n \n \n ']);return Ar=function(){return e},e}function jr(){var e=Nr([' \n \n \n\n
\n
\n \n
\n
\n
\n
\n \n
\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ','\n \n
TranIdItemVolumePriceAmountSelect
TranIdItemVolumePriceAmountSelect
\n
\n
\n
\n
\n\n
\n
\n
\n
\n
\n \n \n \n \n
\n
\n
\n
\n
\n\n\n\n ']);return jr=function(){return e},e}function Nr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Rr(e,t){return!t||"object"!==Tr(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 Ir(e){return(Ir=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function zr(e,t){for(var n=0;n2&&void 0!==arguments[2]?arguments[2]:"",r="";if(e.cssText||e.rules){var i=e.rules;if(i&&!function(e){var t=e[0];return Boolean(t)&&Boolean(t.selector)&&0===t.selector.indexOf(Jr)}(i))for(var o,a=0,s=i.length;a1&&void 0!==arguments[1]?arguments[1]:"",n=li(e);return this.transformRules(n,t),e.textContent=si(n),n}},{key:"transformCustomStyle",value:function(e){var t=this,n=li(e);return ui(n,function(e){":root"===e.selector&&(e.selector="html"),t.transformRule(e)}),e.textContent=si(n),n}},{key:"transformRules",value:function(e,t){var n=this;this._currentElement=t,ui(e,function(e){n.transformRule(e)}),this._currentElement=null}},{key:"transformRule",value:function(e){e.cssText=this.transformCssText(e.parsedCssText,e),":root"===e.selector&&(e.selector=":host > *")}},{key:"transformCssText",value:function(e,t){var n=this;return e=e.replace(ei,function(e,r,i,o){return n._produceCssProperties(e,r,i,o,t)}),this._consumeCssProperties(e,t)}},{key:"_getInitialValueForProperty",value:function(e){return this._measureElement||(this._measureElement=document.createElement("meta"),this._measureElement.setAttribute("apply-shim-measure",""),this._measureElement.style.all="initial",document.head.appendChild(this._measureElement)),window.getComputedStyle(this._measureElement).getPropertyValue(e)}},{key:"_fallbacksFromPreviousRules",value:function(e){for(var t=this,n=e;n.parent;)n=n.parent;var r={},i=!1;return ui(n,function(n){(i=i||n===e)||n.selector===e.selector&&Object.assign(r,t._cssTextToMap(n.parsedCssText))}),r}},{key:"_consumeCssProperties",value:function(e,t){for(var n=null;n=ti.exec(e);){var r=n[0],i=n[1],o=n.index,a=o+r.indexOf("@apply"),s=o+r.length,l=e.slice(0,a),u=e.slice(s),c=t?this._fallbacksFromPreviousRules(t):{};Object.assign(c,this._cssTextToMap(l));var p=this._atApplyToCssProperties(i,c);e="".concat(l).concat(p).concat(u),ti.lastIndex=o+p.length}return e}},{key:"_atApplyToCssProperties",value:function(e,t){e=e.replace(_i,"");var n=[],r=this._map.get(e);if(r||(this._map.set(e,{}),r=this._map.get(e)),r){var i,o,a;this._currentElement&&(r.dependants[this._currentElement]=!0);var s=r.properties;for(i in s)o=[i,": var(",e,"_-_",i],(a=t&&t[i])&&o.push(",",a.replace(wi,"")),o.push(")"),wi.test(s[i])&&o.push(" !important"),n.push(o.join(""))}return n.join("; ")}},{key:"_replaceInitialOrInherit",value:function(e,t){var n=gi.exec(t);return n&&(t=n[1]?this._getInitialValueForProperty(e):"apply-shim-inherit"),t}},{key:"_cssTextToMap",value:function(e){for(var t,n,r,i,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=e.split(";"),s={},l=0;l1&&(t=i[0].trim(),n=i.slice(1).join(":"),o&&(n=this._replaceInitialOrInherit(t,n)),s[t]=n);return s}},{key:"_invalidateMixinEntry",value:function(e){if(Oi)for(var t in e.dependants)t!==this._currentElement&&Oi(t)}},{key:"_produceCssProperties",value:function(e,t,n,r,i){var o=this;if(n&&function e(t,n){var r=t.indexOf("var(");if(-1===r)return n(t,"","","");var i=ci(t,r+3),o=t.substring(r+4,i),a=t.substring(0,r),s=e(t.substring(i+1),n),l=o.indexOf(",");return-1===l?n(a,o.trim(),"",s):n(a,o.substring(0,l).trim(),o.substring(l+1).trim(),s)}(n,function(e,t){t&&o._map.get(t)&&(r="@apply ".concat(t,";"))}),!r)return e;var a=this._consumeCssProperties(""+r,i),s=e.slice(0,e.indexOf("--")),l=this._cssTextToMap(a,!0),u=l,c=this._map.get(t),p=c&&c.properties;p?u=Object.assign(Object.create(p),l):this._map.set(t,u);var f,h,d=[],y=!1;for(f in u)void 0===(h=l[f])&&(h="initial"),!p||f in p||(y=!0),d.push("".concat(t).concat("_-_").concat(f,": ").concat(h));return y&&this._invalidateMixinEntry(c),c&&(c.properties=u),n&&(s="".concat(e,";").concat(s)),"".concat(s).concat(d.join("; "),";")}}]),e}();xi.prototype.detectMixin=xi.prototype.detectMixin,xi.prototype.transformStyle=xi.prototype.transformStyle,xi.prototype.transformCustomStyle=xi.prototype.transformCustomStyle,xi.prototype.transformRules=xi.prototype.transformRules,xi.prototype.transformRule=xi.prototype.transformRule,xi.prototype.transformTemplate=xi.prototype.transformTemplate,xi.prototype._separator="_-_",Object.defineProperty(xi.prototype,"invalidCallback",{get:function(){return Oi},set:function(e){Oi=e}});var Si=xi,Pi={},Ci="_applyShimCurrentVersion",Ei="_applyShimNextVersion",Ti="_applyShimValidatingVersion",Ai=Promise.resolve(); /** @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */function ji(e){var t=Pi[e];t&&function(e){e[Ci]=e[Ci]||0,e[Ti]=e[Ti]||0,e[Ei]=(e[Ei]||0)+1}(t)}function Ni(e){return e[Ci]===e[Ei]}function Ri(e){return!Ni(e)&&e[Ti]===e[Ei]}function Ii(e){e[Ti]=e[Ei],e._validating||(e._validating=!0,Ai.then(function(){e[Ci]=e[Ei],e._validating=!1}))} /** @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ var zi,Li=null,Mi=window.HTMLImports&&window.HTMLImports.whenReady||null;function Di(e){requestAnimationFrame(function(){Mi?Mi(e):(Li||(Li=new Promise(function(e){zi=e}),"complete"===document.readyState?zi():document.addEventListener("readystatechange",function(){"complete"===document.readyState&&zi()})),Li.then(function(){e&&e()}))})} /** @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */function Fi(e,t){for(var n=0;n-1?n=t:(r=t,n=e.getAttribute&&e.getAttribute("is")||""):(n=e.is,r=e.extends),{is:n,typeExtension:r}}(e).is,n=Pi[t];if((!n||!hi(n))&&n&&!Ni(n)){Ri(n)||(this.prepareTemplate(n,t),Ii(n));var r=e.shadowRoot;if(r){var i=r.querySelector("style");i&&(i.__cssRules=n._styleAst,i.textContent=si(n._styleAst))}}}},{key:"styleDocument",value:function(e){this.ensure(),this.styleSubtree(document.body,e)}}])&&Ui(t.prototype,n),r&&Ui(t,r),e}();if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var Wi=new Yi,Gi=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(e,t,n){Wi.flushCustomStyles(),Wi.prepareTemplate(e,t)},prepareTemplateStyles:function(e,t,n){window.ShadyCSS.prepareTemplate(e,t,n)},prepareTemplateDom:function(e,t){},styleSubtree:function(e,t){Wi.flushCustomStyles(),Wi.styleSubtree(e,t)},styleElement:function(e){Wi.flushCustomStyles(),Wi.styleElement(e)},styleDocument:function(e){Wi.flushCustomStyles(),Wi.styleDocument(e)},getComputedStyleValue:function(e,t){return yi(e,t)},flushCustomStyles:function(){Wi.flushCustomStyles()},nativeCss:Vr,nativeShadow:Hr,cssBuild:Br},Gi&&(window.ShadyCSS.CustomStyleInterface=Gi)}window.ShadyCSS.ApplyShim=qi;n(0); /** @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */var Xi,$i,Ji=/(url\()([^)]*)(\))/g,Zi=/(^\/)|(^#)|(^[\w-\d]*:)/;function Qi(e,t){if(e&&Zi.test(e))return e;if(void 0===Xi){Xi=!1;try{var n=new URL("b","http://a");n.pathname="c%20d",Xi="http://a/c%20d"===n.href}catch(e){}}return t||(t=document.baseURI||window.location.href),Xi?new URL(e,t).href:($i||(($i=document.implementation.createHTMLDocument("temp")).base=$i.createElement("base"),$i.head.appendChild($i.base),$i.anchor=$i.createElement("a"),$i.body.appendChild($i.anchor)),$i.base.href=t,$i.anchor.href=e,$i.anchor.href||e)}function eo(e,t){return e.replace(Ji,function(e,n,r,i){return n+"'"+Qi(r.replace(/["']/g,""),t)+"'"+i})}function to(e){return e.substring(0,e.lastIndexOf("/")+1)} /** @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */var no=!window.ShadyDOM,ro=(Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),window.customElements.polyfillWrapFlushCallback,to(document.baseURI||window.location.href)),io=void 0,oo=!1,ao=0;function so(){}so.prototype.__mixinApplications,so.prototype.__mixinSet;var lo=function(e){var t=e.__mixinApplications;t||(t=new WeakMap,e.__mixinApplications=t);var n=ao++;function r(r){var i=r.__mixinSet;if(i&&i[n])return r;var o=t,a=o.get(r);a||(a=e(r),o.set(r,a));var s=Object.create(a.__mixinSet||i||null);return s[n]=!0,a.__mixinSet=s,a}return r};function uo(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0}function Ro(e){var t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function Io(e,t){return 0===e.indexOf(t+".")}function zo(e,t){return 0===t.indexOf(e+".")}function Lo(e,t,n){return t+n.slice(e.length)}function Mo(e){if(Array.isArray(e)){for(var t=[],n=0;n1){for(var a=0;a=0){if(!Go[t])throw new Error("invalid async handle: "+e);Go[t]=null}}};function Qo(e){return(Qo="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 ea(e,t){return!t||"object"!==Qo(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 ta(e,t,n){return(ta="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=na(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function na(e){return(na=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ra(e,t){for(var n=0;nu.source.length&&"property"==l.kind&&!l.isCompound&&s.__isPropertyEffectsClient&&s.__dataHasAccessor&&s.__dataHasAccessor[l.target]){var c=n[t];t=Lo(u.source,l.target,t),s._setPendingPropertyOrPath(t,c,!1,!0)&&e._enqueueClient(s)}else{!function(e,t,n,r,i){i=function(e,t,n,r){if(n.isCompound){var i=e.__dataCompoundStorage[n.target];i[r.compoundIndex]=t,t=i.join("")}return"attribute"!==n.kind&&("textContent"!==n.target&&("value"!==n.target||"input"!==e.localName&&"textarea"!==e.localName)||(t=null==t?"":t)),t}(t,i,n,r),io&&(i=io(i,n.target,n.kind,t));if("attribute"==n.kind)e._valueToNodeAttribute(t,i,n.target);else{var o=n.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[o]?t[Ba.READ_ONLY]&&t[Ba.READ_ONLY][o]||t._setPendingProperty(o,i)&&e._enqueueClient(t):e._setUnmanagedPropertyToNode(t,o,i)}}(e,s,l,u,i.evaluator._evaluateBinding(e,u,t,n,r,o))}}function ts(e,t){if(t.isCompound){for(var n=e.__dataCompoundStorage||(e.__dataCompoundStorage={}),r=t.parts,i=new Array(r.length),o=0;o="0"&&r<="9"&&(r="#"),r){case"'":case'"':n.value=t.slice(1,-1),n.literal=!0;break;case"#":n.value=Number(t),n.literal=!0}return n.literal||(n.rootProperty=Ro(t),n.structured=No(t),n.structured&&(n.wildcard=".*"==t.slice(-2),n.wildcard&&(n.name=t.slice(0,-2)))),n}function cs(e,t,n,r){var i=n+".splices";e.notifyPath(i,{indexSplices:r}),e.notifyPath(n+".length",t.length),e.__data[i]={indexSplices:null}}function ps(e,t,n,r,i,o){cs(e,t,n,[{index:r,addedCount:i,removed:o,object:t,type:"splice"}])}var fs=lo(function(e){var t=ja(_a(e)),n=function(e){function n(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(e=Ra(this,za(n).call(this))).__isPropertyEffectsClient=!0,e.__dataCounter=0,e.__dataClientsReady,e.__dataPendingClients,e.__dataToNotify,e.__dataLinkedPaths,e.__dataHasPaths,e.__dataCompoundStorage,e.__dataHost,e.__dataTemp,e.__dataClientsInitialized,e.__data,e.__dataPending,e.__dataOld,e.__computeEffects,e.__reflectEffects,e.__notifyEffects,e.__propagateEffects,e.__observeEffects,e.__readOnly,e.__templateInfo,e}var r,i,o;return 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&&La(e,t)}(n,t),r=n,o=[{key:"addPropertyEffect",value:function(e,t,n){this.prototype._addPropertyEffect(e,t,n)}},{key:"createPropertyObserver",value:function(e,t,n){this.prototype._createPropertyObserver(e,t,n)}},{key:"createMethodObserver",value:function(e,t){this.prototype._createMethodObserver(e,t)}},{key:"createNotifyingProperty",value:function(e){this.prototype._createNotifyingProperty(e)}},{key:"createReadOnlyProperty",value:function(e,t){this.prototype._createReadOnlyProperty(e,t)}},{key:"createReflectedProperty",value:function(e){this.prototype._createReflectedProperty(e)}},{key:"createComputedProperty",value:function(e,t,n){this.prototype._createComputedProperty(e,t,n)}},{key:"bindTemplate",value:function(e){return this.prototype._bindTemplate(e)}},{key:"_addTemplatePropertyEffect",value:function(e,t,n){(e.hostProps=e.hostProps||{})[t]=!0;var r=e.propertyEffects=e.propertyEffects||{};(r[t]=r[t]||[]).push(n)}},{key:"_parseTemplateNode",value:function(e,t,r){var i=Ia(za(n),"_parseTemplateNode",this).call(this,e,t,r);if(e.nodeType===Node.TEXT_NODE){var o=this._parseBindings(e.textContent,t);o&&(e.textContent=ss(o)||" ",Za(this,t,r,"text","textContent",o),i=!0)}return i}},{key:"_parseTemplateNodeAttribute",value:function(e,t,r,i,o){var a=this._parseBindings(o,t);if(a){var s=i,l="property";Ha.test(i)?l="attribute":"$"==i[i.length-1]&&(i=i.slice(0,-1),l="attribute");var u=ss(a);return u&&"attribute"==l&&e.setAttribute(i,u),"input"===e.localName&&"value"===s&&e.setAttribute(s,""),e.removeAttribute(s),"property"===l&&(i=Uo(i)),Za(this,t,r,l,i,a,u),!0}return Ia(za(n),"_parseTemplateNodeAttribute",this).call(this,e,t,r,i,o)}},{key:"_parseTemplateNestedTemplate",value:function(e,t,r){var i=Ia(za(n),"_parseTemplateNestedTemplate",this).call(this,e,t,r),o=r.templateInfo.hostProps;for(var a in o){Za(this,t,r,"property","_host_"+a,[{mode:"{",source:a,dependencies:[a]}])}return i}},{key:"_parseBindings",value:function(e,t){for(var n,r=[],i=0;null!==(n=as.exec(e));){n.index>i&&r.push({literal:e.slice(i,n.index)});var o=n[1][0],a=Boolean(n[2]),s=n[3].trim(),l=!1,u="",c=-1;"{"==o&&(c=s.indexOf("::"))>0&&(u=s.substring(c+2),s=s.substring(0,c),l=!0);var p=ls(s),f=[];if(p){for(var h=p.args,d=p.methodName,y=0;y=0&&r.splice(i,1)}},{key:"_hasPropertyEffect",value:function(e,t){var n=this[t];return Boolean(n&&n[e])}},{key:"_hasReadOnlyEffect",value:function(e){return this._hasPropertyEffect(e,Ba.READ_ONLY)}},{key:"_hasNotifyEffect",value:function(e){return this._hasPropertyEffect(e,Ba.NOTIFY)}},{key:"_hasReflectEffect",value:function(e){return this._hasPropertyEffect(e,Ba.REFLECT)}},{key:"_hasComputedEffect",value:function(e){return this._hasPropertyEffect(e,Ba.COMPUTE)}},{key:"_setPendingPropertyOrPath",value:function(e,t,r,i){if(i||Ro(Array.isArray(e)?e[0]:e)!==e){if(!i){var o=Fo(this,e);if(!(e=Bo(this,e,t))||!Ia(za(n.prototype),"_shouldPropertyChange",this).call(this,e,t,o))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(e,t,r))return function(e,t,n){var r,i=e.__dataLinkedPaths;if(i)for(var o in i){var a=i[o];zo(o,t)?(r=Lo(o,a,t),e._setPendingPropertyOrPath(r,n,!0,!0)):zo(a,t)&&(r=Lo(a,o,t),e._setPendingPropertyOrPath(r,n,!0,!0))}}(this,e,t),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[e])return this._setPendingProperty(e,t,r);this[e]=t}return!1}},{key:"_setUnmanagedPropertyToNode",value:function(e,t,n){n===e[t]&&"object"!=Ma(n)||(e[t]=n)}},{key:"_setPendingProperty",value:function(e,t,n){var r=this.__dataHasPaths&&No(e),i=r?this.__dataTemp:this.__data;return!!this._shouldPropertyChange(e,t,i[e])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),e in this.__dataOld||(this.__dataOld[e]=this.__data[e]),r?this.__dataTemp[e]=t:this.__data[e]=t,this.__dataPending[e]=t,(r||this[Ba.NOTIFY]&&this[Ba.NOTIFY][e])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[e]=n),!0)}},{key:"_setProperty",value:function(e,t){this._setPendingProperty(e,t,!0)&&this._invalidateProperties()}},{key:"_invalidateProperties",value:function(){this.__dataReady&&this._flushProperties()}},{key:"_enqueueClient",value:function(e){this.__dataPendingClients=this.__dataPendingClients||[],e!==this&&this.__dataPendingClients.push(e)}},{key:"_flushProperties",value:function(){this.__dataCounter++,Ia(za(n.prototype),"_flushProperties",this).call(this),this.__dataCounter--}},{key:"_flushClients",value:function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}},{key:"__enableOrFlushClients",value:function(){var e=this.__dataPendingClients;if(e){this.__dataPendingClients=null;for(var t=0;t1?i-1:0),a=1;a3?r-3:0),o=3;o1?r-1:0),o=1;o-1}var Hs=!1;function Ks(e){if(!Bs(e)&&"touchend"!==e)return Ns&&Hs&&oo?{passive:!0}:void 0}!function(){try{var e=Object.defineProperty({},"passive",{get:function(){Hs=!0}});window.addEventListener("test",null,e),window.removeEventListener("test",null,e)}catch(e){}}();var Vs=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),Us=function(){};Us.prototype.reset,Us.prototype.mousedown,Us.prototype.mousemove,Us.prototype.mouseup,Us.prototype.touchstart,Us.prototype.touchmove,Us.prototype.touchend,Us.prototype.click;var qs=[],Ys={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0};function Ws(e){var t=Array.prototype.slice.call(e.labels||[]);if(!t.length){t=[];var n=e.getRootNode();if(e.id)for(var r=n.querySelectorAll("label[for = ".concat(e.id,"]")),i=0;i-1;if(i[o]===Js.mouse.target)return}if(r)return;e.preventDefault(),e.stopPropagation()}};function Xs(e){for(var t,n=Vs?["click"]:Ms,r=0;r0?t[0]:e.target}return e.target}function il(e){var t,n=e.type,r=e.currentTarget[Rs];if(r){var i=r[n];if(i){if(!e[Is]&&(e[Is]={},"touch"===n.slice(0,5))){var o=(e=e).changedTouches[0];if("touchstart"===n&&1===e.touches.length&&(Js.touch.id=o.identifier),Js.touch.id!==o.identifier)return;Ns||"touchstart"!==n&&"touchmove"!==n||function(e){var t=e.changedTouches[0],n=e.type;if("touchstart"===n)Js.touch.x=t.clientX,Js.touch.y=t.clientY,Js.touch.scrollDecided=!1;else if("touchmove"===n){if(Js.touch.scrollDecided)return;Js.touch.scrollDecided=!0;var r=function(e){var t="auto",n=e.composedPath&&e.composedPath();if(n)for(var r,i=0;io:"pan-y"===r&&(i=o>a)),i?e.preventDefault():i("track")}}(e)}if(!(t=e[Is]).skip){for(var a,s=0;s-1&&a.reset&&a.reset();for(var l,u=0;u2&&this.moves.shift(),this.moves.push(e)},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,Qs(this.info)},hasMovedEnough:function(e,t){if(this.info.prevent)return!1;if(this.info.started)return!0;var n=Math.abs(this.info.x-e),r=Math.abs(this.info.y-t);return n>=5||r>=5},mousedown:function(e){if($s(e)){var t=rl(e),n=this,r=function(e){var r=e.clientX,i=e.clientY;n.hasMovedEnough(r,i)&&(n.info.state=n.info.started?"mouseup"===e.type?"end":"track":"start","start"===n.info.state&&cl("tap"),n.info.addMove({x:r,y:i}),$s(e)||(n.info.state="end",Qs(n.info)),n._fire(t,e),n.info.started=!0)};Zs(this.info,r,function(e){n.info.started&&r(e),Qs(n.info)}),this.info.x=e.clientX,this.info.y=e.clientY}},touchstart:function(e){var t=e.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove:function(e){var t=rl(e),n=e.changedTouches[0],r=n.clientX,i=n.clientY;this.hasMovedEnough(r,i)&&("start"===this.info.state&&cl("tap"),this.info.addMove({x:r,y:i}),this._fire(t,n),this.info.state="track",this.info.started=!0)},touchend:function(e){var t=rl(e),n=e.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:n.clientX,y:n.clientY}),this._fire(t,n,e))},_fire:function(e,t){var n,r=this.info.moves[this.info.moves.length-2],i=this.info.moves[this.info.moves.length-1],o=i.x-this.info.x,a=i.y-this.info.y,s=0;r&&(n=i.x-r.x,s=i.y-r.y),ul(e,"track",{state:this.info.state,x:t.clientX,y:t.clientY,dx:o,dy:a,ddx:n,ddy:s,sourceEvent:t,hover:function(){return nl(t.clientX,t.clientY)}})}}),sl({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},save:function(e){this.info.x=e.clientX,this.info.y=e.clientY},mousedown:function(e){$s(e)&&this.save(e)},click:function(e){$s(e)&&this.forward(e)},touchstart:function(e){this.save(e.changedTouches[0],e)},touchend:function(e){this.forward(e.changedTouches[0],e)},forward:function(e,t){var n=Math.abs(e.clientX-this.info.x),r=Math.abs(e.clientY-this.info.y),i=rl(t||e);i&&!i.disabled&&(isNaN(n)||isNaN(r)||n<=25&&r<=25||function(e){if("click"===e.type){if(0===e.detail)return!0;var t=rl(e);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;var n=t.getBoundingClientRect(),r=e.pageX,i=e.pageY;return!(r>=n.left&&r<=n.right&&i>=n.top&&i<=n.bottom)}return!1}(e))&&(this.info.prevent||ul(i,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}});var fl=rl,hl=ol,dl=al;function yl(e){return(yl="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 vl(e,t){for(var n=0;n-1&&Nl.splice(e,1)}}}]),n}();return n.__activateDir=!1,n}); /** @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */function Fl(e){window.HTMLImports?HTMLImports.whenReady(e):e()}n(9); /** @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */function Bl(e,t,n){return{index:e,removed:t,addedCount:n}}var Hl=0,Kl=1,Vl=2,Ul=3;function ql(e,t,n,r,i,o){var a,s=0,l=0,u=Math.min(n-t,o-i);if(0==t&&0==i&&(s=function(e,t,n){for(var r=0;r0||n>0;)if(0!=t)if(0!=n){var o=e[t-1][n-1],a=e[t-1][n],s=e[t][n-1],l=void 0;(l=a0?Jo.after(n):Zo,t.bind(this))}},{key:"isDebouncerActive",value:function(e){this._debouncers=this._debouncers||{};var t=this._debouncers[e];return!(!t||!t.isActive())}},{key:"flushDebouncer",value:function(e){this._debouncers=this._debouncers||{};var t=this._debouncers[e];t&&t.flush()}},{key:"cancelDebouncer",value:function(e){this._debouncers=this._debouncers||{};var t=this._debouncers[e];t&&t.cancel()}},{key:"async",value:function(e,t){return t>0?Jo.run(e.bind(this),t):~Zo.run(e.bind(this))}},{key:"cancelAsync",value:function(e){e<0?Zo.cancel(~e):Jo.cancel(e)}},{key:"create",value:function(e,t){var n=document.createElement(e);if(t)if(n.setProperties)n.setProperties(t);else for(var r in t)n[r]=t[r];return n}},{key:"importHref",value:function(e,t,n,r){return function(e,t,n,r){var i=document.head.querySelector('link[href="'+e+'"][import-href]');i||((i=document.createElement("link")).rel="import",i.href=e,i.setAttribute("import-href","")),r&&i.setAttribute("async","");var o=function(){i.removeEventListener("load",a),i.removeEventListener("error",s)},a=function(e){o(),i.__dynamicImportLoaded=!0,t&&Fl(function(){t(e)})},s=function(e){o(),i.parentNode&&i.parentNode.removeChild(i),n&&Fl(function(){n(e)})};return i.addEventListener("load",a),i.addEventListener("error",s),null==i.parentNode?document.head.appendChild(i):i.__dynamicImportLoaded&&i.dispatchEvent(new Event("load")),i}(e,t?t.bind(this):null,n?n.bind(this):null,r)}},{key:"elementMatches",value:function(e,t){return su(t||this,e)}},{key:"toggleAttribute",value:function(e,t,n){n=n||this,1==arguments.length&&(t=!n.hasAttribute(e)),t?n.setAttribute(e,""):n.removeAttribute(e)}},{key:"toggleClass",value:function(e,t,n){n=n||this,1==arguments.length&&(t=!n.classList.contains(e)),t?n.classList.add(e):n.classList.remove(e)}},{key:"transform",value:function(e,t){(t=t||this).style.webkitTransform=e,t.style.transform=e}},{key:"translate3d",value:function(e,t,n,r){r=r||this,this.transform("translate3d("+e+","+t+","+n+")",r)}},{key:"arrayDelete",value:function(e,t){var n;if(Array.isArray(e)){if((n=e.indexOf(t))>=0)return e.splice(n,1)}else if((n=Fo(this,e).indexOf(t))>=0)return this.splice(e,n,1);return null}},{key:"_logger",value:function(e,t){var n;switch(Array.isArray(t)&&1===t.length&&Array.isArray(t[0])&&(t=t[0]),e){case"log":case"warn":case"error":(n=console)[e].apply(n,fu(t))}}},{key:"_log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r=0;i--){var o=t[i];o?Array.isArray(o)?e(o,n):n.indexOf(o)<0&&(!r||r.indexOf(o)<0)&&n.unshift(o):console.warn("behavior is null, check for missing or 404 import")}return n}(e,null,n),t),n&&(e=n.concat(e)),t.prototype.behaviors=e,t}function Eu(e,t){var n=function(n){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),ku(this,xu(r).apply(this,arguments))}var i,o,a;return 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&&Su(e,t)}(r,t),i=r,a=[{key:"properties",get:function(){return e.properties}},{key:"observers",get:function(){return e.observers}},{key:"template",get:function(){return e._template||jo&&jo.import(this.is,"template")||t.template||this.prototype._template||null}}],(o=[{key:"created",value:function(){Ou(xu(r.prototype),"created",this).call(this),e.created&&e.created.call(this)}},{key:"_registered",value:function(){Ou(xu(r.prototype),"_registered",this).call(this),e.beforeRegister&&e.beforeRegister.call(Object.getPrototypeOf(this)),e.registered&&e.registered.call(Object.getPrototypeOf(this))}},{key:"_applyListeners",value:function(){if(Ou(xu(r.prototype),"_applyListeners",this).call(this),e.listeners)for(var t in e.listeners)this._addMethodEventListenerToNode(this,t,e.listeners[t])}},{key:"_ensureAttributes",value:function(){if(e.hostAttributes)for(var t in e.hostAttributes)this._ensureAttribute(t,e.hostAttributes[t]);Ou(xu(r.prototype),"_ensureAttributes",this).call(this)}},{key:"ready",value:function(){Ou(xu(r.prototype),"ready",this).call(this),e.ready&&e.ready.call(this)}},{key:"attached",value:function(){Ou(xu(r.prototype),"attached",this).call(this),e.attached&&e.attached.call(this)}},{key:"detached",value:function(){Ou(xu(r.prototype),"detached",this).call(this),e.detached&&e.detached.call(this)}},{key:"attributeChanged",value:function(t,n,i){Ou(xu(r.prototype),"attributeChanged",this).call(this,t,n,i),e.attributeChanged&&e.attributeChanged.call(this,t,n,i)}}])&&wu(i.prototype,o),a&&wu(i,a),r}();for(var r in n.generatedFrom=e,e)if(!(r in Pu)){var i=Object.getOwnPropertyDescriptor(e,r);i&&Object.defineProperty(n.prototype,r,i)}return n}var Tu=function e(t){var n;return n="function"==typeof t?t:e.Class(t),customElements.define(n.is,n),n}; /** @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */function Au(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ju(e,t){for(var n=0;n can only be templatized once");e.__templatizeOwner=t;var r=(t?t.constructor:tc)._parseTemplate(e),i=r.templatizeInstanceClass;i||(i=rc(e,r,n),r.templatizeInstanceClass=i),ic(e,r,n);var o=function(e){function t(){return Xu(this,t),Vu(this,qu(t).apply(this,arguments))}return Yu(t,i),t}();return o.prototype._methodHost=function(e){var t=e.__dataHost;return t&&t._methodHost||t}(e),o.prototype.__dataHost=e,o.prototype.__templatizeOwner=t,o.prototype.__hostProps=r.hostProps,o=o}function lc(e,t){for(var n;t;)if(n=t.__templatizeInstance){if(n.__dataHost==e)return n;t=n.__dataHost}else t=t.parentNode;return null} /** @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */function uc(e){return(uc="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 cc(e,t){return!t||"object"!==uc(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 pc(e){return(pc=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fc(e,t){for(var n=0;n child");n.disconnect(),t.render()});return void n.observe(this,{childList:!0})}this.root=this._stampTemplate(e),this.$=this.root.$,this.__children=[];for(var r=this.root.firstChild;r;r=r.nextSibling)this.__children[this.__children.length]=r;this._enableProperties()}this.__insertChildren(),this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}}]),t}();function mc(e,t){for(var n=0;n1?n-1:0),i=1;i child");n.disconnect(),e.__render()});return n.observe(this,{childList:!0}),!1}var r={};r[this.as]=!0,r[this.indexAs]=!0,r[this.itemsIndexAs]=!0,this.__ctor=sc(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:r,forwardHostProp:function(e,t){for(var n,r=this.__instances,i=0;i1&&void 0!==arguments[1]?arguments[1]:0;this.__renderDebouncer=js.debounce(this.__renderDebouncer,t>0?Jo.after(t):Zo,e.bind(this)),Ql(this.__renderDebouncer)}},{key:"render",value:function(){this.__debounceRender(this.__render),tu()}},{key:"__render",value:function(){this.__ensureTemplatized()&&(this.__applyFullRefresh(),this.__pool.length=0,this._setRenderedItemCount(this.__instances.length),this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this.__tryRenderChunk())}},{key:"__applyFullRefresh",value:function(){for(var e=this,t=this.items||[],n=new Array(t.length),r=0;r=o;c--)this.__detachAndRemoveInstance(c)}},{key:"__detachInstance",value:function(e){for(var t=this.__instances[e],n=0;n child");r.disconnect(),e.__render()});return r.observe(this,{childList:!0}),!1}this.__ctor=sc(n,this,{mutableData:!0,forwardHostProp:function(e,t){this.__instance&&(this.if?this.__instance.forwardHostProp(e,t):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[Ro(e)]=!0))}})}if(this.__instance){this.__syncHostProperties();var i=this.__instance.children;if(i&&i.length)if(this.previousSibling!==i[i.length-1])for(var o,a=0;a=i.index+i.removed.length?n.set(t,e+i.addedCount-i.removed.length):n.set(t,-1))});for(var o=0;o=0&&e.linkPaths("items."+n,"selected."+t++)})}else this.__selectedMap.forEach(function(t){e.linkPaths("selected","items."+t),e.linkPaths("selectedItem","items."+t)})}},{key:"clearSelection",value:function(){this.__dataLinkedPaths={},this.__selectedMap=new Map,this.selected=this.multi?[]:null,this.selectedItem=null}},{key:"isSelected",value:function(e){return this.__selectedMap.has(e)}},{key:"isIndexSelected",value:function(e){return this.isSelected(this.items[e])}},{key:"__deselectChangedIdx",value:function(e){var t=this,n=this.__selectedIndexForItemIndex(e);if(n>=0){var r=0;this.__selectedMap.forEach(function(e,i){n==r++&&t.deselect(i)})}}},{key:"__selectedIndexForItemIndex",value:function(e){var t=this.__dataLinkedPaths["items."+e];if(t)return parseInt(t.slice("selected.".length),10)}},{key:"deselect",value:function(e){var t,n=this.__selectedMap.get(e);n>=0&&(this.__selectedMap.delete(e),this.multi&&(t=this.__selectedIndexForItemIndex(n)),this.__updateLinks(),this.multi?this.splice("selected",t,1):this.selected=this.selectedItem=null)}},{key:"deselectIndex",value:function(e){this.deselect(this.items[e])}},{key:"select",value:function(e){this.selectIndex(this.items.indexOf(e))}},{key:"selectIndex",value:function(e){var t=this.items[e];this.isSelected(t)?this.toggle&&this.deselectIndex(e):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(t,e),this.__updateLinks(),this.multi?this.push("selected",t):this.selected=this.selectedItem=t)}}]),n}()})(wc),Gc=function(e){function t(){return Bc(this,t),Hc(this,Kc(t).apply(this,arguments))}return qc(t,Wc),Uc(t,null,[{key:"is",get:function(){return"array-selector"}}]),t}();customElements.define(Gc.is,Gc); /** @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ var Xc=new Vi;function $c(e){return($c="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 Jc(e,t){for(var n=0;n\n \n\n\n \n']);return ap=function(){return e},e}var sp=gc(ap());sp.setAttribute("style","display: none;"),document.head.appendChild(sp.content);var lp=document.createElement("style");function up(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))} /** @license Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */(['\n\n \n\n']);return up=function(){return e},e}lp.textContent="[hidden] { display: none !important; }",document.head.appendChild(lp);var cp=gc(up());function pp(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))} /** @license Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */(['\n\n \n'],['\n\n \n']);return pp=function(){return e},e}cp.setAttribute("style","display: none;"),document.head.appendChild(cp.content);var fp=gc(pp()); /** @license Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ if(fp.setAttribute("style","display: none;"),document.head.appendChild(fp.content),!window.polymerSkipLoadingFontRoboto){var hp=document.createElement("link");hp.rel="stylesheet",hp.type="text/css",hp.crossOrigin="anonymous",hp.href="https://fonts.googleapis.com/css?family=Roboto+Mono:400,700|Roboto:400,300,300italic,400italic,500,500italic,700,700italic",document.head.appendChild(hp)}function dp(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))} /** @license Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */(["\n \n"]);return dp=function(){return e},e}var yp=gc(dp());function vp(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))} /** @license Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */(['\n\n \n']);return vp=function(){return e},e}yp.setAttribute("style","display: none;"),document.head.appendChild(yp.content);var mp=gc(vp());mp.setAttribute("style","display: none;"),document.head.appendChild(mp.content); /** @license Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ var bp=document.createElement("template");bp.setAttribute("style","display: none;"),bp.innerHTML='\n \n',document.head.appendChild(bp.content); /** @license Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ var _p=[{properties:{animationConfig:{type:Object},entryAnimation:{observer:"_entryAnimationChanged",type:String},exitAnimation:{observer:"_exitAnimationChanged",type:String}},_entryAnimationChanged:function(){this.animationConfig=this.animationConfig||{},this.animationConfig.entry=[{name:this.entryAnimation,node:this}]},_exitAnimationChanged:function(){this.animationConfig=this.animationConfig||{},this.animationConfig.exit=[{name:this.exitAnimation,node:this}]},_copyProperties:function(e,t){for(var n in t)e[n]=t[n]},_cloneConfig:function(e){var t={isClone:!0};return this._copyProperties(t,e),t},_getAnimationConfigRecursive:function(e,t,n){var r;if(this.animationConfig)if(this.animationConfig.value&&"function"==typeof this.animationConfig.value)this._warn(this._logf("playAnimation","Please put 'animationConfig' inside of your components 'properties' object instead of outside of it."));else if(r=e?this.animationConfig[e]:this.animationConfig,Array.isArray(r)||(r=[r]),r)for(var i,o=0;i=r[o];o++)if(i.animatable)i.animatable._getAnimationConfigRecursive(i.type||e,t,n);else if(i.id){var a=t[i.id];a?(a.isClone||(t[i.id]=this._cloneConfig(a),a=t[i.id]),this._copyProperties(a,i)):t[i.id]=i}else n.push(i)},getAnimationConfig:function(e){var t={},n=[];for(var r in this._getAnimationConfigRecursive(e,t,n),t)n.push(t[r]);return n}},{_configureAnimations:function(e){var t=[],n=[];if(e.length>0)for(var r,i=0;r=e[i];i++){var o=document.createElement(r.name);if(o.isNeonAnimation){var a;o.configure||(o.configure=function(e){return null}),a=o.configure(r),n.push({result:a,config:r,neonAnimation:o})}else console.warn(this.is+":",r.name,"not found!")}for(var s=0;s-1&&(this._interestedResizables.splice(t,1),this._unsubscribeIronResize(e))},_subscribeIronResize:function(e){e.addEventListener("iron-resize",this._boundOnDescendantIronResize)},_unsubscribeIronResize:function(e){e.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},resizerShouldNotify:function(e){return!0},_onDescendantIronResize:function(e){this._notifyingDescendant?e.stopPropagation():no||this._fireResize()},_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},_onIronRequestResizeNotifications:function(e){var t=cu(e).rootTarget;t!==this&&(t.assignParentResizable(this),this._notifyDescendant(t),e.stopPropagation())},_parentResizableChanged:function(e){e&&window.removeEventListener("resize",this._boundNotifyResize)},_notifyDescendant:function(e){this.isAttached&&(this._notifyingDescendant=!0,e.notifyResize(),this._notifyingDescendant=!1)},_requestResizeNotifications:function(){if(this.isAttached)if("loading"===document.readyState){var e=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function t(){document.removeEventListener("readystatechange",t),e()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(e){e!==this&&e._findParent()},this):(wp.forEach(function(e){e!==this&&e._findParent()},this),window.addEventListener("resize",this._boundNotifyResize),this.notifyResize())},_findParent:function(){this.assignParentResizable(null),this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0}),this._parentResizable?wp.delete(this):wp.add(this)}},Op=Element.prototype,xp=Op.matches||Op.matchesSelector||Op.mozMatchesSelector||Op.msMatchesSelector||Op.oMatchesSelector||Op.webkitMatchesSelector,Sp={getTabbableNodes:function(e){var t=[];return this._collectTabbableNodes(e,t)?this._sortByTabIndex(t):t},isFocusable:function(e){return xp.call(e,"input, select, textarea, button, object")?xp.call(e,":not([disabled])"):xp.call(e,"a[href], area[href], iframe, [tabindex], [contentEditable]")},isTabbable:function(e){return this.isFocusable(e)&&xp.call(e,':not([tabindex="-1"])')&&this._isVisible(e)},_normalizedTabIndex:function(e){if(this.isFocusable(e)){var t=e.getAttribute("tabindex")||0;return Number(t)}return-1},_collectTabbableNodes:function(e,t){if(e.nodeType!==Node.ELEMENT_NODE||!this._isVisible(e))return!1;var n,r=e,i=this._normalizedTabIndex(r),o=i>0;i>=0&&t.push(r),n="content"===r.localName||"slot"===r.localName?cu(r).getDistributedNodes():cu(r.root||r).children;for(var a=0;a0&&t.length>0;)this._hasLowerTabOrder(e[0],t[0])?n.push(t.shift()):n.push(e.shift());return n.concat(e,t)},_hasLowerTabOrder:function(e,t){var n=Math.max(e.tabIndex,0),r=Math.max(t.tabIndex,0);return 0===n||0===r?r>n:n>r}}; /** @license Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */function Pp(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))} /** @license Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */(["\n \n\n \n"]);return Pp=function(){return e},e}Tu({_template:gc(Pp()),is:"iron-overlay-backdrop",properties:{opened:{reflectToAttribute:!0,type:Boolean,value:!1,observer:"_openedChanged"}},listeners:{transitionend:"_onTransitionend"},created:function(){this.__openedRaf=null},attached:function(){this.opened&&this._openedChanged(this.opened)},prepare:function(){this.opened&&!this.parentNode&&cu(document.body).appendChild(this)},open:function(){this.opened=!0},close:function(){this.opened=!1},complete:function(){this.opened||this.parentNode!==document.body||cu(this.parentNode).removeChild(this)},_onTransitionend:function(e){e&&e.target===this&&this.complete()},_openedChanged:function(e){if(e)this.prepare();else{var t=window.getComputedStyle(this);"0s"!==t.transitionDuration&&0!=t.opacity||this.complete()}this.isAttached&&(this.__openedRaf&&(window.cancelAnimationFrame(this.__openedRaf),this.__openedRaf=null),this.scrollTop=this.scrollTop,this.__openedRaf=window.requestAnimationFrame(function(){this.__openedRaf=null,this.toggleClass("opened",this.opened)}.bind(this)))}}); /** @license Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ var Cp={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"},Ep={8:"backspace",9:"tab",13:"enter",27:"esc",33:"pageup",34:"pagedown",35:"end",36:"home",32:"space",37:"left",38:"up",39:"right",40:"down",46:"del",106:"*"},Tp={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"},Ap=/[a-z0-9*]/,jp=/U\+/,Np=/^arrow/,Rp=/^space(bar)?/,Ip=/^escape$/;function zp(e,t){var n="";if(e){var r=e.toLowerCase();" "===r||Rp.test(r)?n="space":Ip.test(r)?n="esc":1==r.length?t&&!Ap.test(r)||(n=r):n=Np.test(r)?r.replace("arrow",""):"multiply"==r?"*":r}return n}function Lp(e,t){return e.key?zp(e.key,t):e.detail&&e.detail.key?zp(e.detail.key,t):(n=e.keyIdentifier,r="",n&&(n in Cp?r=Cp[n]:jp.test(n)?(n=parseInt(n.replace("U+","0x"),16),r=String.fromCharCode(n).toLowerCase()):r=n.toLowerCase()),r||function(e){var t="";return Number(e)&&(t=e>=65&&e<=90?String.fromCharCode(32+e):e>=112&&e<=123?"f"+(e-112+1):e>=48&&e<=57?String(e-48):e>=96&&e<=105?String(e-96):Ep[e]),t}(e.keyCode)||"");var n,r}function Mp(e,t){return Lp(t,e.hasModifiers)===e.key&&(!e.hasModifiers||!!t.shiftKey==!!e.shiftKey&&!!t.ctrlKey==!!e.ctrlKey&&!!t.altKey==!!e.altKey&&!!t.metaKey==!!e.metaKey)}function Dp(e){return e.trim().split(" ").map(function(e){return function(e){return 1===e.length?{combo:e,key:e,event:"keydown"}:e.split("+").reduce(function(e,t){var n=t.split(":"),r=n[0],i=n[1];return r in Tp?(e[Tp[r]]=!0,e.hasModifiers=!0):(e.key=r,e.event=i||"keydown"),e},{combo:e.split(":").shift()})}(e)})}var Fp={properties:{keyEventTarget:{type:Object,value:function(){return this}},stopKeyboardEventPropagation:{type:Boolean,value:!1},_boundKeyHandlers:{type:Array,value:function(){return[]}},_imperativeKeyBindings:{type:Object,value:function(){return{}}}},observers:["_resetKeyEventListeners(keyEventTarget, _boundKeyHandlers)"],keyBindings:{},registered:function(){this._prepKeyBindings()},attached:function(){this._listenKeyEventListeners()},detached:function(){this._unlistenKeyEventListeners()},addOwnKeyBinding:function(e,t){this._imperativeKeyBindings[e]=t,this._prepKeyBindings(),this._resetKeyEventListeners()},removeOwnKeyBindings:function(){this._imperativeKeyBindings={},this._prepKeyBindings(),this._resetKeyEventListeners()},keyboardEventMatchesKeys:function(e,t){for(var n=Dp(t),r=0;r=n)){var i=Math.max(this.currentOverlayZ(),this._minimumZ);for(this._getZ(t)<=i&&this._applyOverlayZ(t,i);e=0)return this._bringOverlayAtIndexToFront(t),void this.trackBackdrop();var n=this._overlays.length,r=this._overlays[n-1],i=Math.max(this._getZ(r),this._minimumZ),o=this._getZ(e);if(r&&this._shouldBeBehindOverlay(e,r)){this._applyOverlayZ(r,i),n--;var a=this._overlays[n-1];i=Math.max(this._getZ(a),this._minimumZ)}o<=i&&this._applyOverlayZ(e,i),this._overlays.splice(n,0,e),this.trackBackdrop()},removeOverlay:function(e){var t=this._overlays.indexOf(e);-1!==t&&(this._overlays.splice(t,1),this.trackBackdrop())},currentOverlay:function(){var e=this._overlays.length-1;return this._overlays[e]},currentOverlayZ:function(){return this._getZ(this.currentOverlay())},ensureMinimumZ:function(e){this._minimumZ=Math.max(this._minimumZ,e)},focusOverlay:function(){var e=this.currentOverlay();e&&e._applyFocus()},trackBackdrop:function(){var e=this._overlayWithBackdrop();(e||this._backdropElement)&&(this.backdropElement.style.zIndex=this._getZ(e)-1,this.backdropElement.opened=!!e,this.backdropElement.prepare())},getBackdrops:function(){for(var e=[],t=0;t=0;e--)if(this._overlays[e].withBackdrop)return this._overlays[e]},_getZ:function(e){var t=this._minimumZ;if(e){var n=Number(e.style.zIndex||window.getComputedStyle(e).zIndex);n==n&&(t=n)}return t},_setZ:function(e,t){e.style.zIndex=t},_applyOverlayZ:function(e,t){this._setZ(e,t+2)},_overlayInPath:function(e){e=e||[];for(var t=0;t=0||(0===$p.length&&function(){Hp=Hp||function(e){e.cancelable&&function(e){var t=cu(e).rootTarget;"touchmove"!==e.type&&qp!==t&&(qp=t,Yp=function(e){for(var t=[],n=e.indexOf(Kp),r=0;r<=n;r++)if(e[r].nodeType===Node.ELEMENT_NODE){var i=e[r],o=i.style;"scroll"!==o.overflow&&"auto"!==o.overflow&&(o=window.getComputedStyle(i)),"scroll"!==o.overflow&&"auto"!==o.overflow||t.push(i)}return t}(cu(e).path));if(!Yp.length)return!0;if("touchstart"===e.type)return!1;var n=function(e){var t={deltaX:e.deltaX,deltaY:e.deltaY};if("deltaX"in e);else if("wheelDeltaX"in e&&"wheelDeltaY"in e)t.deltaX=-e.wheelDeltaX,t.deltaY=-e.wheelDeltaY;else if("wheelDelta"in e)t.deltaX=0,t.deltaY=-e.wheelDelta;else if("axis"in e)t.deltaX=1===e.axis?e.detail:0,t.deltaY=2===e.axis?e.detail:0;else if(e.targetTouches){var n=e.targetTouches[0];t.deltaX=Up.pageX-n.pageX,t.deltaY=Up.pageY-n.pageY}return t} /** @license Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */(e);return!function(e,t,n){if(!t&&!n)return;for(var r=Math.abs(n)>=Math.abs(t),i=0;i0:o.scrollTop0:o.scrollLeft=0))switch(this.scrollAction){case"lock":this.__restoreScrollPosition();break;case"refit":this.__deraf("refit",this.refit);break;case"cancel":this.cancel(e)}},__saveScrollPosition:function(){document.scrollingElement?(this.__scrollTop=document.scrollingElement.scrollTop,this.__scrollLeft=document.scrollingElement.scrollLeft):(this.__scrollTop=Math.max(document.documentElement.scrollTop,document.body.scrollTop),this.__scrollLeft=Math.max(document.documentElement.scrollLeft,document.body.scrollLeft))},__restoreScrollPosition:function(){document.scrollingElement?(document.scrollingElement.scrollTop=this.__scrollTop,document.scrollingElement.scrollLeft=this.__scrollLeft):(document.documentElement.scrollTop=document.body.scrollTop=this.__scrollTop,document.documentElement.scrollLeft=document.body.scrollLeft=this.__scrollLeft)}}],{hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)"],listeners:{tap:"_onDialogClick"},ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.__readied=!0},_modalChanged:function(e,t){t&&(e?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.noCancelOnOutsideClick=!0,this.noCancelOnEscKey=!0,this.withBackdrop=!0):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&this.__prevWithBackdrop))},_updateClosingReasonConfirmed:function(e){this.closingReason=this.closingReason||{},this.closingReason.confirmed=e},_onDialogClick:function(e){for(var t=cu(e).path,n=0,r=t.indexOf(this);n\n \n']);return Zp=function(){return e},e}function Qp(e){return(Qp="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 ef(){var e=rf(['\n
  • \n
    \n
  • \n ']);return ef=function(){return e},e}function tf(){var e=rf(['\n
  • \n \n
  • \n ']);return tf=function(){return e},e}function nf(){var e=rf(['\n \n \n
    \n
      \n ',"\n\n ",'\n
    \n
    \n \n \n \n ']);return nf=function(){return e},e}function rf(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function of(e,t){for(var n=0;n0&&(r=!0),"Calling"==i.StateName&&(n=!0)}),"undefined"!=typeof Android&&Android&&null!==Android&&(n?Android.playHorn():Android.stopHorn(),r?Android.playBell():Android.stopBell())}}}])&&of(n.prototype,r),i&&of(n,i),t}();function cf(e){return(cf="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 pf(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n \n
    \n \n \n \n
    \n ']);return pf=function(){return e},e}function ff(e,t){for(var n=0;n\n ","\n "," ","\n ","\n ","\n ","\n ","\n ","\n ",'\n \n \n \n \n ']);return bf=function(){return e},e}function _f(){var e=gf([' \n \n \n\n
    \n
    \n \n
    \n
    \n
    \n
    \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ',"\n \n
    Ref NoDatePumpProductVolumePriceAmountCar NoPrint
    \n
    \n
    \n
    \n
    \n "]);return _f=function(){return e},e}function gf(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function wf(e,t){return!t||"object"!==mf(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 kf(e){return(kf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Of(e,t){for(var n=0;nt.id?-1:e.id\n \n \n\n
    \n
    \n \n
    \n
    \n
    \n

    \n \n

    \n
    \n
    \n
    \n \n
    \n
    \n \n
    \n
    \n
    \n

    \n \n

    \n
    \n
    \n
    \n\n
    \n
    \n \n
    \n
    \n
    \n

    \n \n \n \n

    \n
    \n
    \n
    \n\n
    \n \n
    \n \n
    \n \n

    Reset PassCode?

    \n
    \n Yes\n No\n
    \n
    \n
    \n\n ']);return Ef=function(){return e},e}function Tf(e,t){return!t||"object"!==Cf(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 Af(e){return(Af=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function jf(e,t){for(var n=0;n\n :host{\n display:block;\n -webkit-user-select: none; /* Chrome all / Safari all */\n -moz-user-select: none; /* Firefox all */\n -ms-user-select: none; /* IE 10+ */\n user-select: none; /* Likely future */ \n }\n .keyboard {\n display: inline-flex;\n padding: 0.75em 1.5em;\n text-align: center;\n }\n .item{\n width: 61em;\n }\n \n .number-panel{\n width: 15em;\n display: block;\n }\n .number-row {\n width: 15em;\n display: block;\n }\n .key{\n height: 5em;\n width: 5em;\n margin: 0.4em 0;\n }\n .number-key {\n width: 30px;\n height: 30px;\n border: solid 1px black;\n display: inline-block;\n }\n #text{\n width: 10em;\n height: 2em;\n }\n #task{\n width: 20em;\n height: 2em;\n }\n #space {\n width: 15em;\n }\n #back {\n font-weight: bold;\n height: 5em;\n width: 9em;\n }\n #enter{\n width: 6em;\n height: 6em;\n }\n label{\n margin-left: 1em;\n }\n .money{\n margin-left: 10px;\n }\n \n\n
    \n \n \n
    \n\n \n
    \n :\n \n
    \n
    \n
    \n \n \n \n \n \n \n \n \n \n \n\n \n\n \n \n \n \n \n \n \n \n \n\n
    \n\n \n \n \n \n \n \n \n\n
    \n\n \n \n \n \n
    \n
    \n
    \n \n \n \n
    \n
    \n \n \n \n
    \n
    \n \n \n \n
    \n
    \n \n \n \n
    \n
    \n
    \n
    \n ']);return Lf=function(){return e},e}function Mf(e,t){return!t||"object"!==zf(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 Df(e){return(Df=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ff(e,t){for(var n=0;n\n :host {\n @apply --layout-inline;\n @apply --layout-center-center;\n position: relative;\n\n vertical-align: middle;\n\n fill: var(--iron-icon-fill-color, currentcolor);\n stroke: var(--iron-icon-stroke-color, none);\n\n width: var(--iron-icon-width, 24px);\n height: var(--iron-icon-height, 24px);\n @apply --iron-icon;\n }\n\n :host([hidden]) {\n display: none;\n }\n \n"]);return Yf=function(){return e},e}Tu({is:"iron-meta",properties:{type:{type:String,value:"default"},key:{type:String},value:{type:String,notify:!0},self:{type:Boolean,observer:"_selfChanged"},__meta:{type:Boolean,computed:"__computeMeta(type, key, value)"}},hostAttributes:{hidden:!0},__computeMeta:function(e,t,n){var r=new Uf({type:e,key:t});return void 0!==n&&n!==r.value?r.value=n:this.value!==r.value&&(this.value=r.value),r},get list(){return this.__meta&&this.__meta.list},_selfChanged:function(e){e&&(this.value=this)},byKey:function(e){return new Uf({type:this.type,key:e}).value}}),Tu({_template:gc(Yf()),is:"iron-icon",properties:{icon:{type:String},theme:{type:String},src:{type:String},_meta:{value:op.create("iron-meta",{type:"iconset"})}},observers:["_updateIcon(_meta, isAttached)","_updateIcon(theme, isAttached)","_srcChanged(src, isAttached)","_iconChanged(icon, isAttached)"],_DEFAULT_ICONSET:"icons",_iconChanged:function(e){var t=(e||"").split(":");this._iconName=t.pop(),this._iconsetName=t.pop()||this._DEFAULT_ICONSET,this._updateIcon()},_srcChanged:function(e){this._updateIcon()},_usesIconset:function(){return this.icon||!this.src},_updateIcon:function(){this._usesIconset()?(this._img&&this._img.parentNode&&cu(this.root).removeChild(this._img),""===this._iconName?this._iconset&&this._iconset.removeIcon(this):this._iconsetName&&this._meta&&(this._iconset=this._meta.byKey(this._iconsetName),this._iconset?(this._iconset.applyIcon(this,this._iconName,this.theme),this.unlisten(window,"iron-iconset-added","_updateIcon")):this.listen(window,"iron-iconset-added","_updateIcon"))):(this._iconset&&this._iconset.removeIcon(this),this._img||(this._img=document.createElement("img"),this._img.style.width="100%",this._img.style.height="100%",this._img.draggable=!1),this._img.src=this.src,cu(this.root).appendChild(this._img))}}); /** @license Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */ var Wf={properties:{focused:{type:Boolean,value:!1,notify:!0,readOnly:!0,reflectToAttribute:!0},disabled:{type:Boolean,value:!1,notify:!0,observer:"_disabledChanged",reflectToAttribute:!0},_oldTabIndex:{type:String},_boundFocusBlurHandler:{type:Function,value:function(){return this._focusBlurHandler.bind(this)}}},observers:["_changedControlState(focused, disabled)"],ready:function(){this.addEventListener("focus",this._boundFocusBlurHandler,!0),this.addEventListener("blur",this._boundFocusBlurHandler,!0)},_focusBlurHandler:function(e){this._setFocused("focus"===e.type)},_disabledChanged:function(e,t){this.setAttribute("aria-disabled",e?"true":"false"),this.style.pointerEvents=e?"none":"",e?(this._oldTabIndex=this.getAttribute("tabindex"),this._setFocused(!1),this.tabIndex=-1,this.blur()):void 0!==this._oldTabIndex&&(null===this._oldTabIndex?this.removeAttribute("tabindex"):this.setAttribute("tabindex",this._oldTabIndex))},_changedControlState:function(){this._controlStateChanged&&this._controlStateChanged()}},Gf={properties:{pressed:{type:Boolean,readOnly:!0,value:!1,reflectToAttribute:!0,observer:"_pressedChanged"},toggles:{type:Boolean,value:!1,reflectToAttribute:!0},active:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0},pointerDown:{type:Boolean,readOnly:!0,value:!1},receivedFocusFromKeyboard:{type:Boolean,readOnly:!0},ariaActiveAttribute:{type:String,value:"aria-pressed",observer:"_ariaActiveAttributeChanged"}},listeners:{down:"_downHandler",up:"_upHandler",tap:"_tapHandler"},observers:["_focusChanged(focused)","_activeChanged(active, ariaActiveAttribute)"],keyBindings:{"enter:keydown":"_asyncClick","space:keydown":"_spaceKeyDownHandler","space:keyup":"_spaceKeyUpHandler"},_mouseEventRe:/^mouse/,_tapHandler:function(){this.toggles?this._userActivate(!this.active):this.active=!1},_focusChanged:function(e){this._detectKeyboardFocus(e),e||this._setPressed(!1)},_detectKeyboardFocus:function(e){this._setReceivedFocusFromKeyboard(!this.pointerDown&&e)},_userActivate:function(e){this.active!==e&&(this.active=e,this.fire("change"))},_downHandler:function(e){this._setPointerDown(!0),this._setPressed(!0),this._setReceivedFocusFromKeyboard(!1)},_upHandler:function(){this._setPointerDown(!1),this._setPressed(!1)},_spaceKeyDownHandler:function(e){var t=e.detail.keyboardEvent,n=cu(t).localTarget;this.isLightDescendant(n)||(t.preventDefault(),t.stopImmediatePropagation(),this._setPressed(!0))},_spaceKeyUpHandler:function(e){var t=e.detail.keyboardEvent,n=cu(t).localTarget;this.isLightDescendant(n)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},_asyncClick:function(){this.async(function(){this.click()},1)},_pressedChanged:function(e){this._changedButtonState()},_ariaActiveAttributeChanged:function(e,t){t&&t!=e&&this.hasAttribute(t)&&this.removeAttribute(t)},_activeChanged:function(e,t){this.toggles?this.setAttribute(this.ariaActiveAttribute,e?"true":"false"):this.removeAttribute(this.ariaActiveAttribute),this._changedButtonState()},_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},Xf=[Fp,Gf]; /** @license Copyright (c) 2015 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */function $f(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))} /** @license Copyright (c) 2014 The Polymer Project Authors. All rights reserved. This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as part of the polymer project is also subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt */(['\n \n\n
    \n
    \n']);return $f=function(){return e},e}var Jf={distance:function(e,t,n,r){var i=e-n,o=t-r;return Math.sqrt(i*i+o*o)},now:window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now};function Zf(e){this.element=e,this.width=this.boundingRect.width,this.height=this.boundingRect.height,this.size=Math.max(this.width,this.height)}function Qf(e){this.element=e,this.color=window.getComputedStyle(e).color,this.wave=document.createElement("div"),this.waveContainer=document.createElement("div"),this.wave.style.backgroundColor=this.color,this.wave.classList.add("wave"),this.waveContainer.classList.add("wave-container"),cu(this.waveContainer).appendChild(this.wave),this.resetInteractionState()}Zf.prototype={get boundingRect(){return this.element.getBoundingClientRect()},furthestCornerDistanceFrom:function(e,t){var n=Jf.distance(e,t,0,0),r=Jf.distance(e,t,this.width,0),i=Jf.distance(e,t,0,this.height),o=Jf.distance(e,t,this.width,this.height);return Math.max(n,r,i,o)}},Qf.MAX_RADIUS=300,Qf.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){var e;return this.mouseDownStart?(e=Jf.now()-this.mouseDownStart,this.mouseUpStart&&(e-=this.mouseUpElapsed),e):0},get mouseUpElapsed(){return this.mouseUpStart?Jf.now()-this.mouseUpStart:0},get mouseDownElapsedSeconds(){return this.mouseDownElapsed/1e3},get mouseUpElapsedSeconds(){return this.mouseUpElapsed/1e3},get mouseInteractionSeconds(){return this.mouseDownElapsedSeconds+this.mouseUpElapsedSeconds},get initialOpacity(){return this.element.initialOpacity},get opacityDecayVelocity(){return this.element.opacityDecayVelocity},get radius(){var e=this.containerMetrics.width*this.containerMetrics.width,t=this.containerMetrics.height*this.containerMetrics.height,n=1.1*Math.min(Math.sqrt(e+t),Qf.MAX_RADIUS)+5,r=1.1-n/Qf.MAX_RADIUS*.2,i=this.mouseInteractionSeconds/r,o=n*(1-Math.pow(80,-i));return Math.abs(o)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){var e=.3*this.mouseUpElapsedSeconds,t=this.opacity;return Math.max(0,Math.min(e,t))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,Qf.MAX_RADIUS)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,Qf.MAX_RADIUS)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},resetInteractionState:function(){this.maxRadius=0,this.mouseDownStart=0,this.mouseUpStart=0,this.xStart=0,this.yStart=0,this.xEnd=0,this.yEnd=0,this.slideDistance=0,this.containerMetrics=new Zf(this.element)},draw:function(){var e,t,n;this.wave.style.opacity=this.opacity,e=this.radius/(this.containerMetrics.size/2),t=this.xNow-this.containerMetrics.width/2,n=this.yNow-this.containerMetrics.height/2,this.waveContainer.style.webkitTransform="translate("+t+"px, "+n+"px)",this.waveContainer.style.transform="translate3d("+t+"px, "+n+"px, 0)",this.wave.style.webkitTransform="scale("+e+","+e+")",this.wave.style.transform="scale3d("+e+","+e+",1)"},downAction:function(e){var t=this.containerMetrics.width/2,n=this.containerMetrics.height/2;this.resetInteractionState(),this.mouseDownStart=Jf.now(),this.center?(this.xStart=t,this.yStart=n,this.slideDistance=Jf.distance(this.xStart,this.yStart,this.xEnd,this.yEnd)):(this.xStart=e?e.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=e?e.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2),this.recenters&&(this.xEnd=t,this.yEnd=n,this.slideDistance=Jf.distance(this.xStart,this.yStart,this.xEnd,this.yEnd)),this.maxRadius=this.containerMetrics.furthestCornerDistanceFrom(this.xStart,this.yStart),this.waveContainer.style.top=(this.containerMetrics.height-this.containerMetrics.size)/2+"px",this.waveContainer.style.left=(this.containerMetrics.width-this.containerMetrics.size)/2+"px",this.waveContainer.style.width=this.containerMetrics.size+"px",this.waveContainer.style.height=this.containerMetrics.size+"px"},upAction:function(e){this.isMouseDown&&(this.mouseUpStart=Jf.now())},remove:function(){cu(this.waveContainer.parentNode).removeChild(this.waveContainer)}},Tu({_template:gc($f()),is:"paper-ripple",behaviors:[Fp],properties:{initialOpacity:{type:Number,value:.25},opacityDecayVelocity:{type:Number,value:.8},recenters:{type:Boolean,value:!1},center:{type:Boolean,value:!1},ripples:{type:Array,value:function(){return[]}},animating:{type:Boolean,readOnly:!0,reflectToAttribute:!0,value:!1},holdDown:{type:Boolean,value:!1,observer:"_holdDownChanged"},noink:{type:Boolean,value:!1},_animating:{type:Boolean},_boundAnimate:{type:Function,value:function(){return this.animate.bind(this)}}},get target(){return this.keyEventTarget},keyBindings:{"enter:keydown":"_onEnterKeydown","space:keydown":"_onSpaceKeydown","space:keyup":"_onSpaceKeyup"},attached:function(){11==this.parentNode.nodeType?this.keyEventTarget=cu(this).getOwnerRoot().host:this.keyEventTarget=this.parentNode;var e=this.keyEventTarget;this.listen(e,"up","uiUpAction"),this.listen(e,"down","uiDownAction")},detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction"),this.unlisten(this.keyEventTarget,"down","uiDownAction"),this.keyEventTarget=null},get shouldKeepAnimating(){for(var e=0;e0||(this.addRipple().downAction(e),this._animating||(this._animating=!0,this.animate()))},uiUpAction:function(e){this.noink||this.upAction(e)},upAction:function(e){this.holdDown||(this.ripples.forEach(function(t){t.upAction(e)}),this._animating=!0,this.animate())},onAnimationComplete:function(){this._animating=!1,this.$.background.style.backgroundColor=null,this.fire("transitionend")},addRipple:function(){var e=new Qf(this);return cu(this.$.waves).appendChild(e.waveContainer),this.$.background.style.backgroundColor=e.color,this.ripples.push(e),this._setAnimating(!0),e},removeRipple:function(e){var t=this.ripples.indexOf(e);t<0||(this.ripples.splice(t,1),e.remove(),this.ripples.length||this._setAnimating(!1))},animate:function(){if(this._animating){var e,t;for(e=0;e\n :host {\n display: inline-block;\n position: relative;\n padding: 8px;\n outline: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n cursor: pointer;\n z-index: 0;\n line-height: 1;\n\n width: 40px;\n height: 40px;\n\n /*\n NOTE: Both values are needed, since some phones require the value to\n be `transparent`.\n */\n -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n -webkit-tap-highlight-color: transparent;\n\n /* Because of polymer/2558, this style has lower specificity than * */\n box-sizing: border-box !important;\n\n @apply --paper-icon-button;\n }\n\n :host #ink {\n color: var(--paper-icon-button-ink-color, var(--primary-text-color));\n opacity: 0.6;\n }\n\n :host([disabled]) {\n color: var(--paper-icon-button-disabled-text, var(--disabled-text-color));\n pointer-events: none;\n cursor: auto;\n\n @apply --paper-icon-button-disabled;\n }\n\n :host([hidden]) {\n display: none !important;\n }\n\n :host(:hover) {\n @apply --paper-icon-button-hover;\n }\n\n iron-icon {\n --iron-icon-width: 100%;\n --iron-icon-height: 100%;\n }\n \n\n \n '],['\n \n\n \n ']);return rh=function(){return e},e}function ih(e){return(ih="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 oh(){var e=function(e,t){t||(t=e.slice(0));return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}(['\n \n \n \n \n \n ']);return oh=function(){return e},e}function ah(e,t){for(var n=0;n\n :host {\n display: block;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n padding: 12px;\n background-color: #3f51b5;\n color: white;\n box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);\n text-align: center;\n will-change: transform;\n transform: translate3d(0, -100%, 0);\n transition-property: visibility, transform;\n transition-duration: 0.2s;\n visibility: hidden;\n line-height: 1; \n z-index:1000;\n }\n :host([active]) {\n visibility: visible;\n transform: translate3d(0, 0, 0);\n }\n @media (min-width: 460px) {\n :host {\n width: 320px;\n margin: auto;\n }\n }\n \n \n "]);return fh=function(){return e},e}function hh(e,t){for(var n=0;n\n \n\n\n
    \n \n \n
    \n
    \n
    \n \n \n \n
    \n
    \n \n \n \n
    \n
    \n \n \n \n
    \n
    \n \n
    \n
    \n
    \n
    \n
    \n
    \n \n ']);return _h=function(){return e},e}function gh(e,t){return!t||"object"!==bh(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 wh(e){return(wh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function kh(e,t){for(var n=0;n\n ","\n "," \n \n "]);return Ch=function(){return e},e}function Eh(){var e=jh([' \n \n Login\n \n ']);return Eh=function(){return e},e}function Th(){var e=jh(['\n \n Logout\n ']);return Th=function(){return e},e}function Ah(){var e=jh(['\n \n \n\n\n\n \n \n \n
    \n\n\n \n \n
    \n \n \n \n \n
    \n Car Plate Number: \n
    \n \n
    \n
    \n
    \n\n\n\n \n \n \n \n \n \n \n\n ','\n \n
    CustomerCar Plate
    \n
    \n Ok\n Cancel\n
    \n
    \n\n\n\n \n\n\n\n \n\n\n\n\n\n
    \n
    \n

    Successfully clear transactions.

    \n

    Print receipt?

    \n
    \n\n
    \n Yes\n No\n
    \n
    \n
    \n\n\n \n\n\n\n',".\n\n\n"]);return Ah=function(){return e},e}function jh(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function Nh(e,t){return!t||"object"!==Ph(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 Rh(e){return(Rh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ih(e,t){for(var n=0;n