@fooloomanzoo/datetime-input
Version:
an input for date and time
1 lines • 228 kB
JavaScript
!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="/demo/dist/",n(n.s=46)}([function(e,t,n){"use strict";n.d(t,"a",function(){return a});n(3);var r=0;function i(){}i.prototype.__mixinApplications,i.prototype.__mixinSet;var a=function(e){var t=e.__mixinApplications;t||(t=new WeakMap,e.__mixinApplications=t);var n=r++;function i(r){var i=r.__mixinSet;if(i&&i[n])return r;var a=t,s=a.get(r);s||(s=e(r),a.set(r,s));var o=Object.create(s.__mixinSet||i||null);return o[n]=!0,s.__mixinSet=o,s}return i}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});n(3);var r=function(){function e(t){babelHelpers.classCallCheck(this,e),this.value=t.toString()}return babelHelpers.createClass(e,[{key:"toString",value:function(){return this.value}}]),e}();function i(e){if(e instanceof r)return e.value;throw new Error("non-literal value passed to Polymer's htmlLiteral function: ".concat(e))}var a=function(e){for(var t=document.createElement("template"),n=arguments.length,a=new Array(n>1?n-1:0),s=1;s<n;s++)a[s-1]=arguments[s];return t.innerHTML=a.reduce(function(t,n,a){return t+function(e){if(e instanceof HTMLTemplateElement)return e.innerHTML;if(e instanceof r)return i(e);throw new Error("non-template value passed to Polymer's html function: ".concat(e))}(n)+e[a+1]},e[0]),t}},function(e,t,n){"use strict";n.d(t,"d",function(){return r}),n.d(t,"g",function(){return i}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return s}),n.d(t,"i",function(){return o}),n.d(t,"e",function(){return l}),n.d(t,"f",function(){return u}),n.d(t,"a",function(){return p}),n.d(t,"h",function(){return h});n(3);function r(e){return e.indexOf(".")>=0}function i(e){var t=e.indexOf(".");return-1===t?e:e.slice(0,t)}function a(e,t){return 0===e.indexOf(t+".")}function s(e,t){return 0===t.indexOf(e+".")}function o(e,t,n){return t+n.slice(e.length)}function l(e,t){return e===t||a(e,t)||s(e,t)}function u(e){if(Array.isArray(e)){for(var t=[],n=0;n<e.length;n++)for(var r=e[n].toString().split("."),i=0;i<r.length;i++)t.push(r[i]);return t.join(".")}return e}function c(e){return Array.isArray(e)?u(e).split("."):e.toString().split(".")}function p(e,t,n){for(var r=e,i=c(t),a=0;a<i.length;a++){if(!r)return;r=r[i[a]]}return n&&(n.path=i.join(".")),r}function h(e,t,n){var r=e,i=c(t),a=i[i.length-1];if(i.length>1){for(var s=0;s<i.length-1;s++){if(!(r=r[i[s]]))return}r[a]=n}else r[t]=n;return i.join(".")}},function(e,t,n){"use strict";window.JSCompiler_renameProperty=function(e,t){return e}},function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"a",function(){return u});n(3);var r=0,i=0,a=[],s=0,o=document.createTextNode("");new window.MutationObserver(function(){for(var e=a.length,t=0;t<e;t++){var n=a[t];if(n)try{n()}catch(e){setTimeout(function(){throw e})}}a.splice(0,e),i+=e}).observe(o,{characterData:!0});var l={after:function(e){return{run:function(t){return window.setTimeout(t,e)},cancel:function(e){window.clearTimeout(e)}}},run:function(e,t){return window.setTimeout(e,t)},cancel:function(e){window.clearTimeout(e)}},u={run:function(e){return o.textContent=s++,a.push(e),r++},cancel:function(e){var t=e-i;if(t>=0){if(!a[t])throw new Error("invalid async handle: "+e);a[t]=null}}}},function(e,t,n){"use strict";n(3),n(6);var r=n(30),i=n(4);function a(e){return"slot"===e.localName}var s=function(){function e(t,n){var r=this;babelHelpers.classCallCheck(this,e),this._shadyChildrenObserver=null,this._nativeChildrenObserver=null,this._connected=!1,this._target=t,this.callback=n,this._effectiveNodes=[],this._observer=null,this._scheduled=!1,this._boundSchedule=function(){r._schedule()},this.connect(),this._schedule()}return babelHelpers.createClass(e,null,[{key:"getFlattenedNodes",value:function(e){return a(e)?(e=e).assignedNodes({flatten:!0}):Array.from(e.childNodes).map(function(e){return a(e)?(e=e).assignedNodes({flatten:!0}):[e]}).reduce(function(e,t){return e.concat(t)},[])}}]),babelHelpers.createClass(e,[{key:"connect",value:function(){var e=this;a(this._target)?this._listenSlots([this._target]):this._target.children&&(this._listenSlots(this._target.children),window.ShadyDOM?this._shadyChildrenObserver=ShadyDOM.observeChildren(this._target,function(t){e._processMutations(t)}):(this._nativeChildrenObserver=new MutationObserver(function(t){e._processMutations(t)}),this._nativeChildrenObserver.observe(this._target,{childList:!0}))),this._connected=!0}},{key:"disconnect",value:function(){a(this._target)?this._unlistenSlots([this._target]):this._target.children&&(this._unlistenSlots(this._target.children),window.ShadyDOM&&this._shadyChildrenObserver?(ShadyDOM.unobserveChildren(this._shadyChildrenObserver),this._shadyChildrenObserver=null):this._nativeChildrenObserver&&(this._nativeChildrenObserver.disconnect(),this._nativeChildrenObserver=null)),this._connected=!1}},{key:"_schedule",value:function(){var e=this;this._scheduled||(this._scheduled=!0,i.a.run(function(){return e.flush()}))}},{key:"_processMutations",value:function(e){this._processSlotMutations(e),this.flush()}},{key:"_processSlotMutations",value:function(e){if(e)for(var t=0;t<e.length;t++){var n=e[t];n.addedNodes&&this._listenSlots(n.addedNodes),n.removedNodes&&this._unlistenSlots(n.removedNodes)}}},{key:"flush",value:function(){if(!this._connected)return!1;window.ShadyDOM&&ShadyDOM.flush(),this._nativeChildrenObserver?this._processSlotMutations(this._nativeChildrenObserver.takeRecords()):this._shadyChildrenObserver&&this._processSlotMutations(this._shadyChildrenObserver.takeRecords()),this._scheduled=!1;for(var e,t={target:this._target,addedNodes:[],removedNodes:[]},n=this.constructor.getFlattenedNodes(this._target),i=Object(r.a)(n,this._effectiveNodes),a=0;a<i.length&&(e=i[a]);a++)for(var s,o=0;o<e.removed.length&&(s=e.removed[o]);o++)t.removedNodes.push(s);for(var l,u=0;u<i.length&&(l=i[u]);u++)for(var c=l.index;c<l.index+l.addedCount;c++)t.addedNodes.push(n[c]);this._effectiveNodes=n;var p=!1;return(t.addedNodes.length||t.removedNodes.length)&&(p=!0,this.callback.call(this._target,t)),p}},{key:"_listenSlots",value:function(e){for(var t=0;t<e.length;t++){var n=e[t];a(n)&&n.addEventListener("slotchange",this._boundSchedule)}}},{key:"_unlistenSlots",value:function(e){for(var t=0;t<e.length;t++){var n=e[t];a(n)&&n.removeEventListener("slotchange",this._boundSchedule)}}}]),e}();n(15),n(13);n.d(t,"b",function(){return u}),n.d(t,"a",function(){return h});var o=Element.prototype,l=o.matches||o.matchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector||o.webkitMatchesSelector,u=function(e,t){return l.call(e,t)},c=function(){function e(t){babelHelpers.classCallCheck(this,e),this.node=t}return babelHelpers.createClass(e,[{key:"observeNodes",value:function(e){return new s(this.node,e)}},{key:"unobserveNodes",value:function(e){e.disconnect()}},{key:"notifyObserver",value:function(){}},{key:"deepContains",value:function(e){if(this.node.contains(e))return!0;for(var t=e,n=e.ownerDocument;t&&t!==n&&t!==this.node;)t=t.parentNode||t.host;return t===this.node}},{key:"getOwnerRoot",value:function(){return this.node.getRootNode()}},{key:"getDistributedNodes",value:function(){return"slot"===this.node.localName?this.node.assignedNodes({flatten:!0}):[]}},{key:"getDestinationInsertionPoints",value:function(){for(var e=[],t=this.node.assignedSlot;t;)e.push(t),t=t.assignedSlot;return e}},{key:"importNode",value:function(e,t){return(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(e,t)}},{key:"getEffectiveChildNodes",value:function(){return s.getFlattenedNodes(this.node)}},{key:"queryDistributedElements",value:function(e){for(var t,n=this.getEffectiveChildNodes(),r=[],i=0,a=n.length;i<a&&(t=n[i]);i++)t.nodeType===Node.ELEMENT_NODE&&u(t,e)&&r.push(t);return r}},{key:"activeElement",get:function(){var e=this.node;return void 0!==e._activeElement?e._activeElement:e.activeElement}}]),e}();var p=function(){function e(t){babelHelpers.classCallCheck(this,e),this.event=t}return babelHelpers.createClass(e,[{key:"rootTarget",get:function(){return this.event.composedPath()[0]}},{key:"localTarget",get:function(){return this.event.target}},{key:"path",get:function(){return this.event.composedPath()}}]),e}();c.prototype.cloneNode,c.prototype.appendChild,c.prototype.insertBefore,c.prototype.removeChild,c.prototype.replaceChild,c.prototype.setAttribute,c.prototype.removeAttribute,c.prototype.querySelector,c.prototype.querySelectorAll,c.prototype.parentNode,c.prototype.firstChild,c.prototype.lastChild,c.prototype.nextSibling,c.prototype.previousSibling,c.prototype.firstElementChild,c.prototype.lastElementChild,c.prototype.nextElementSibling,c.prototype.previousElementSibling,c.prototype.childNodes,c.prototype.children,c.prototype.classList,c.prototype.textContent,c.prototype.innerHTML,function(e,t){for(var n=function(n){var r=t[n];e[r]=function(){return this.node[r].apply(this.node,arguments)}},r=0;r<t.length;r++)n(r)}(c.prototype,["cloneNode","appendChild","insertBefore","removeChild","replaceChild","setAttribute","removeAttribute","querySelector","querySelectorAll"]),function(e,t){for(var n=function(n){var r=t[n];Object.defineProperty(e,r,{get:function(){return this.node[r]},configurable:!0})},r=0;r<t.length;r++)n(r)}(c.prototype,["parentNode","firstChild","lastChild","nextSibling","previousSibling","firstElementChild","lastElementChild","nextElementSibling","previousElementSibling","childNodes","children","classList"]),function(e,t){for(var n=function(n){var r=t[n];Object.defineProperty(e,r,{get:function(){return this.node[r]},set:function(e){this.node[r]=e},configurable:!0})},r=0;r<t.length;r++)n(r)}(c.prototype,["textContent","innerHTML"]);var h=function(e){var t;(e=e||document).__domApi||(t=e instanceof Event?new p(e):new c(e),e.__domApi=t);return e.__domApi}},function(e,t,n){"use strict";n.d(t,"c",function(){return i}),n.d(t,"d",function(){return a}),n.d(t,"b",function(){return s}),n.d(t,"e",function(){return o}),n.d(t,"a",function(){return l});n(3);var r=n(9),i=(window.ShadyDOM,Boolean(!window.ShadyCSS||window.ShadyCSS.nativeCss),window.customElements.polyfillWrapFlushCallback,Object(r.a)(document.baseURI||window.location.href)),a=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,s=!1,o=!1,l=!1},function(e,t,n){"use strict";n.d(t,"c",function(){return r}),n.d(t,"d",function(){return i}),n.d(t,"a",function(){return s}),n.d(t,"b",function(){return o});var r=function(e,t){var n=a(e),r=a(t),i=Math.max(n,r);if(0===i)return e+t;for(var o=Math.round(Math.pow(10,i)*e+Math.pow(10,i)*t),l=s(o)?"-":"",u=(o=""+Math.abs(o)).length;u<i;u++)o="0"+o;return+(l+o.slice(0,o.length-i)+"."+o.slice(o.length-i))},i=function(e,t){var n=a(e),r=a(t),i=n+r;if(0===i)return e*t;var o=(s(e)?!s(t):s(t))?"-":"";e=Math.round(Math.pow(10,n)*Math.abs(e));for(var l=0,u=(t=""+Math.round(Math.pow(10,r)*Math.abs(t))).length-1;u>=0;u--)l+=e*+t[u],e*=10;for(var c=(l=""+l).length;c<i;c++)l="0"+l;return+(o+l.slice(0,l.length-i)+"."+l.slice(l.length-i))},a=function(e){var t=(e||0).toExponential().split("e"),n=-t[1]+(t[0].slice(t[0].indexOf(".")).length-1);return n>0?n:0},s=function(e){return e<0||1/e===-1/0},o=function(e){return 0===e&&1/e===-1/0}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n(21),i=(n(1),Object(r.a)(HTMLElement))},function(e,t,n){"use strict";n.d(t,"c",function(){return o}),n.d(t,"b",function(){return l}),n.d(t,"a",function(){return u});n(3);var r,i,a=/(url\()([^)]*)(\))/g,s=/(^\/)|(^#)|(^[\w-\d]*:)/;function o(e,t){if(e&&s.test(e))return e;if(void 0===r){r=!1;try{var n=new URL("b","http://a");n.pathname="c%20d",r="http://a/c%20d"===n.href}catch(e){}}return t||(t=document.baseURI||window.location.href),r?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 l(e,t){return e.replace(a,function(e,n,r,i){return n+"'"+o(r.replace(/["']/g,""),t)+"'"+i})}function u(e){return e.substring(0,e.lastIndexOf("/")+1)}},function(e,t,n){"use strict";var r=n(26),i={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0};function a(e,t){if(!e)return t=t;t=Object(r.a)(t),Array.isArray(e)||(e=[e]);var n=t.prototype.behaviors;return t=function e(t,n){for(var r=0;r<t.length;r++){var i=t[r];i&&(n=Array.isArray(i)?e(i,n):s(i,n))}return n}(e=function e(t,n,r){n=n||[];for(var i=t.length-1;i>=0;i--){var a=t[i];a?Array.isArray(a)?e(a,n):n.indexOf(a)<0&&(!r||r.indexOf(a)<0)&&n.unshift(a):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 s(e,t){var n=function(t){function n(){return babelHelpers.classCallCheck(this,n),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(n).apply(this,arguments))}return babelHelpers.inherits(n,t),babelHelpers.createClass(n,[{key:"created",value:function(){babelHelpers.get(babelHelpers.getPrototypeOf(n.prototype),"created",this).call(this),e.created&&e.created.call(this)}},{key:"_registered",value:function(){babelHelpers.get(babelHelpers.getPrototypeOf(n.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(babelHelpers.get(babelHelpers.getPrototypeOf(n.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]);babelHelpers.get(babelHelpers.getPrototypeOf(n.prototype),"_ensureAttributes",this).call(this)}},{key:"ready",value:function(){babelHelpers.get(babelHelpers.getPrototypeOf(n.prototype),"ready",this).call(this),e.ready&&e.ready.call(this)}},{key:"attached",value:function(){babelHelpers.get(babelHelpers.getPrototypeOf(n.prototype),"attached",this).call(this),e.attached&&e.attached.call(this)}},{key:"detached",value:function(){babelHelpers.get(babelHelpers.getPrototypeOf(n.prototype),"detached",this).call(this),e.detached&&e.detached.call(this)}},{key:"attributeChanged",value:function(t,r,i){babelHelpers.get(babelHelpers.getPrototypeOf(n.prototype),"attributeChanged",this).call(this,t,r,i),e.attributeChanged&&e.attributeChanged.call(this,t,r,i)}}],[{key:"properties",get:function(){return e.properties}},{key:"observers",get:function(){return e.observers}}]),n}(t);for(var r in n.generatedFrom=e,e)if(!(r in i)){var a=Object.getOwnPropertyDescriptor(e,r);a&&Object.defineProperty(n.prototype,r,a)}return n}n(3);n.d(t,"a",function(){return o});var o=function e(t){var n;return n="function"===typeof t?t:e.Class(t),customElements.define(n.is,n),n};o.Class=function(e,t){e||console.warn("Polymer's Class function requires `info` argument");var n=e.behaviors?a(e.behaviors,HTMLElement):Object(r.a)(HTMLElement),i=s(e,t?t(n):n);return i.is=e.is,i}},function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return s});var r,i=!(window.ShadyDOM&&window.ShadyDOM.inUse);function a(e){r=(!e||!e.shimcssproperties)&&(i||Boolean(!navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)&&window.CSS&&CSS.supports&&CSS.supports("box-shadow","0 0 0 var(--foo)")))}window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?r=window.ShadyCSS.nativeCss:window.ShadyCSS?(a(window.ShadyCSS),window.ShadyCSS=void 0):a(window.WebComponents&&window.WebComponents.flags);var s=r},function(e,t,n){"use strict";n.d(t,"c",function(){return r}),n.d(t,"b",function(){return i}),n.d(t,"a",function(){return a});var r=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,i=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,a=/@media\s(.*)/},function(e,t,n){"use strict";n.d(t,"a",function(){return r});n(3),n(0),n(4);var r=function(){function e(){babelHelpers.classCallCheck(this,e),this._asyncModule=null,this._callback=null,this._timer=null}return babelHelpers.createClass(e,[{key:"setConfig",value:function(e,t){var n=this;this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(function(){n._timer=null,n._callback()})}},{key:"cancel",value:function(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}},{key:"flush",value:function(){this.isActive()&&(this.cancel(),this._callback())}},{key:"isActive",value:function(){return null!=this._timer}}],[{key:"debounce",value:function(t,n,r){return t instanceof e?t.cancel():t=new e,t.setConfig(n,r),t}}]),e}()},function(e,t,n){"use strict";var r=n(26),i=(n(10),n(3),n(22)),a=n(0);function s(e,t,n,r,i){var a;i&&(a="object"===babelHelpers.typeof(n)&&null!==n)&&(r=e.__dataTemp[t]);var s=r!==n&&(r===r||n===n);return a&&s&&(e.__dataTemp[t]=n),s}var o=Object(a.a)(function(e){return function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"_shouldPropertyChange",value:function(e,t,n){return s(this,e,t,n,!0)}}]),t}(e)}),l=Object(a.a)(function(e){return function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"_shouldPropertyChange",value:function(e,t,n){return s(this,e,t,n,this.mutableData)}}],[{key:"properties",get:function(){return{mutableData:Boolean}}}]),t}(e)});o._mutablePropertyChange=s;var u=n(6),c=null;function p(){return c}p.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:p,writable:!0}});var h=Object(i.a)(p),d=o(h);var f=function(e){function t(e){var n;babelHelpers.classCallCheck(this,t),(n=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this)))._configureProperties(e),n.root=n._stampTemplate(n.__dataHost);for(var r=n.children=[],i=n.root.firstChild;i;i=i.nextSibling)r.push(i),i.__templatizeInstance=babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(n));n.__templatizeOwner&&n.__templatizeOwner.__hideTemplateChildren__&&n._showHideChildren(!0);var a=n.__templatizeOptions;return(e&&a.instanceProps||!a.instanceProps)&&n._enableProperties(),n}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"_configureProperties",value:function(e){if(this.__templatizeOptions.forwardHostProp)for(var t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(var n in e)this._setPendingProperty(n,e[n])}},{key:"forwardHostProp",value:function(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}},{key:"_addEventListenerToNode",value:function(e,t,n){var r=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,function(e){e.model=r,n(e)});else{var i=this.__dataHost.__dataHost;i&&i._addEventListenerToNode(e,t,n)}}},{key:"_showHideChildren",value:function(e){for(var t=this.children,n=0;n<t.length;n++){var r=t[n];if(Boolean(e)!=Boolean(r.__hideTemplateChildren__))if(r.nodeType===Node.TEXT_NODE)e?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if("slot"===r.localName)if(e)r.__polymerReplaced__=document.createComment("hidden-slot"),r.parentNode.replaceChild(r.__polymerReplaced__,r);else{var i=r.__polymerReplaced__;i&&i.parentNode.replaceChild(r,i)}else r.style&&(e?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=e,r._showHideChildren&&r._showHideChildren(e)}}},{key:"_setUnmanagedPropertyToNode",value:function(e,n,r){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&"textContent"==n?e.__polymerTextContent__=r:babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"_setUnmanagedPropertyToNode",this).call(this,e,n,r)}},{key:"dispatchEvent",value:function(e){return!0}},{key:"parentModel",get:function(){var e=this.__parentModel;if(!e){var t;e=this;do{e=e.__dataHost.__dataHost}while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}}]),t}(Object(i.a)(function(){return function e(){babelHelpers.classCallCheck(this,e)}}()));f.prototype.__dataHost,f.prototype.__templatizeOptions,f.prototype._methodHost,f.prototype.__templatizeOwner,f.prototype.__hostProps;var m=o(f);function b(e){var t=e.__dataHost;return t&&t._methodHost||t}function y(e,t,n){var r=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}return babelHelpers.inherits(t,e),t}(n.mutableData?m:f);return r.prototype.__templatizeOptions=n,r.prototype._bindTemplate(e),function(e,t,n,r){var i=n.hostProps||{};for(var a in r.instanceProps){delete i[a];var s=r.notifyInstanceProp;s&&e.prototype._addPropertyEffect(a,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:v(a,s)})}if(r.forwardHostProp&&t.__dataHost)for(var o in i)e.prototype._addPropertyEffect(o,e.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(e,t,n){e.__dataHost._setPendingPropertyOrPath("_host_"+t,n[t],!0,!0)}})}(r,e,t,n),r}function _(e,t,n){var r=n.forwardHostProp;if(r){var i=t.templatizeTemplateClass;if(!i){var a=n.mutableData?d:h;i=t.templatizeTemplateClass=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}return babelHelpers.inherits(t,e),t}(a);var s=t.hostProps;for(var o in s)i.prototype._addPropertyEffect("_host_"+o,i.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:g(o,r)}),i.prototype._createNotifyingProperty("_host_"+o)}!function(e,t){c=e,Object.setPrototypeOf(e,t.prototype),new t,c=null}(e,i),e.__dataProto&&Object.assign(e.__data,e.__dataProto),e.__dataTemp={},e.__dataPending=null,e.__dataOld=null,e._enableProperties()}}function g(e,t){return function(e,n,r){t.call(e.__templatizeOwner,n.substring("_host_".length),r[n])}}function v(e,t){return function(e,n,r){t.call(e.__templatizeOwner,e,n,r[n])}}function k(e,t,n){if(u.e&&!b(e))throw new Error("strictTemplatePolicy: template owner not trusted");if(n=n||{},e.__templatizeOwner)throw new Error("A <template> can only be templatized once");e.__templatizeOwner=t;var r=(t?t.constructor:f)._parseTemplate(e),i=r.templatizeInstanceClass;i||(i=y(e,r,n),r.templatizeInstanceClass=i),_(e,r,n);var a=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}return babelHelpers.inherits(t,e),t}(i);return a.prototype._methodHost=b(e),a.prototype.__dataHost=e,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=r.hostProps,a=a}function C(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}var w=n(29),O=function(e){function t(){var e;if(babelHelpers.classCallCheck(this,t),e=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this)),u.e)throw new Error("strictTemplatePolicy: dom-bind not allowed");return e.root=null,e.$=null,e.__children=null,e}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,null,[{key:"observedAttributes",get:function(){return["mutable-data"]}}]),babelHelpers.createClass(t,[{key:"attributeChangedCallback",value:function(){this.mutableData=!0}},{key:"connectedCallback",value:function(){this.style.display="none",this.render()}},{key:"disconnectedCallback",value:function(){this.__removeChildren()}},{key:"__insertChildren",value:function(){this.parentNode.insertBefore(this.root,this)}},{key:"__removeChildren",value:function(){if(this.__children)for(var e=0;e<this.__children.length;e++)this.root.appendChild(this.__children[e])}},{key:"render",value:function(){var e,t=this;if(!this.__children){if(!(e=e||this.querySelector("template"))){var n=new MutationObserver(function(){if(!(e=t.querySelector("template")))throw new Error("dom-bind requires a <template> 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}(Object(w.a)(l(Object(i.a)(HTMLElement))));customElements.define("dom-bind",O);var x=n(8),P=n(13),S=n(15),N=n(2),H=n(4),T=function(e){function t(){var e;return babelHelpers.classCallCheck(this,t),(e=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this))).__instances=[],e.__limit=1/0,e.__pool=[],e.__renderDebouncer=null,e.__itemsIdxToInstIdx={},e.__chunkCount=null,e.__lastChunkTime=null,e.__sortFn=null,e.__filterFn=null,e.__observePaths=null,e.__ctor=null,e.__isDetached=!0,e.template=null,e}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,null,[{key:"is",get:function(){return"dom-repeat"}},{key:"template",get:function(){return null}},{key:"properties",get:function(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!0,readOnly:!0},initialCount:{type:Number,observer:"__initializeChunking"},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"}}}},{key:"observers",get:function(){return["__itemsChanged(items.*)"]}}]),babelHelpers.createClass(t,[{key:"disconnectedCallback",value:function(){babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"disconnectedCallback",this).call(this),this.__isDetached=!0;for(var e=0;e<this.__instances.length;e++)this.__detachInstance(e)}},{key:"connectedCallback",value:function(){if(babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"connectedCallback",this).call(this),this.style.display="none",this.__isDetached){this.__isDetached=!1;for(var e=this.parentNode,n=0;n<this.__instances.length;n++)this.__attachInstance(n,e)}}},{key:"__ensureTemplatized",value:function(){var e=this;if(!this.__ctor){var t=this.template=this.querySelector("template");if(!t){var n=new MutationObserver(function(){if(!e.querySelector("template"))throw new Error("dom-repeat requires a <template> 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=k(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:r,forwardHostProp:function(e,t){for(var n,r=this.__instances,i=0;i<r.length&&(n=r[i]);i++)n.forwardHostProp(e,t)},notifyInstanceProp:function(e,t,n){if(Object(N.e)(this.as,t)){var r=e[this.itemsIndexAs];t==this.as&&(this.items[r]=n);var i=Object(N.i)(this.as,"items."+r,t);this.notifyPath(i,n)}}})}return!0}},{key:"__getMethodHost",value:function(){return this.__dataHost._methodHost||this.__dataHost}},{key:"__functionFromPropertyValue",value:function(e){if("string"===typeof e){var t=e,n=this.__getMethodHost();return function(){return n[t].apply(n,arguments)}}return e}},{key:"__sortChanged",value:function(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}},{key:"__filterChanged",value:function(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}},{key:"__computeFrameTime",value:function(e){return Math.ceil(1e3/e)}},{key:"__initializeChunking",value:function(){this.initialCount&&(this.__limit=this.initialCount,this.__chunkCount=this.initialCount,this.__lastChunkTime=performance.now())}},{key:"__tryRenderChunk",value:function(){this.items&&this.__limit<this.items.length&&this.__debounceRender(this.__requestRenderChunk)}},{key:"__requestRenderChunk",value:function(){var e=this;requestAnimationFrame(function(){return e.__renderChunk()})}},{key:"__renderChunk",value:function(){var e=performance.now(),t=this._targetFrameTime/(e-this.__lastChunkTime);this.__chunkCount=Math.round(this.__chunkCount*t)||1,this.__limit+=this.__chunkCount,this.__lastChunkTime=e,this.__debounceRender(this.__render)}},{key:"__observeChanged",value:function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}},{key:"__itemsChanged",value:function(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||(this.__initializeChunking(),this.__debounceRender(this.__render))}},{key:"__handleObservedPaths",value:function(e){if(this.__sortFn||this.__filterFn)if(e){if(this.__observePaths)for(var t=this.__observePaths,n=0;n<t.length;n++)0===e.indexOf(t[n])&&this.__debounceRender(this.__render,this.delay)}else this.__debounceRender(this.__render,this.delay)}},{key:"__debounceRender",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.__renderDebouncer=P.a.debounce(this.__renderDebouncer,t>0?H.b.after(t):H.a,e.bind(this)),Object(S.a)(this.__renderDebouncer)}},{key:"render",value:function(){this.__debounceRender(this.__render),Object(S.b)()}},{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<t.length;r++)n[r]=r;this.__filterFn&&(n=n.filter(function(n,r,i){return e.__filterFn(t[n],r,i)})),this.__sortFn&&n.sort(function(n,r){return e.__sortFn(t[n],t[r])});for(var i=this.__itemsIdxToInstIdx={},a=0,s=Math.min(n.length,this.__limit);a<s;a++){var o=this.__instances[a],l=n[a],u=t[l];i[l]=a,o?(o._setPendingProperty(this.as,u),o._setPendingProperty(this.indexAs,a),o._setPendingProperty(this.itemsIndexAs,l),o._flushProperties()):this.__insertInstance(u,a,l)}for(var c=this.__instances.length-1;c>=a;c--)this.__detachAndRemoveInstance(c)}},{key:"__detachInstance",value:function(e){for(var t=this.__instances[e],n=0;n<t.children.length;n++){var r=t.children[n];t.root.appendChild(r)}return t}},{key:"__attachInstance",value:function(e,t){var n=this.__instances[e];t.insertBefore(n.root,this)}},{key:"__detachAndRemoveInstance",value:function(e){var t=this.__detachInstance(e);t&&this.__pool.push(t),this.__instances.splice(e,1)}},{key:"__stampInstance",value:function(e,t,n){var r={};return r[this.as]=e,r[this.indexAs]=t,r[this.itemsIndexAs]=n,new this.__ctor(r)}},{key:"__insertInstance",value:function(e,t,n){var r=this.__pool.pop();r?(r._setPendingProperty(this.as,e),r._setPendingProperty(this.indexAs,t),r._setPendingProperty(this.itemsIndexAs,n),r._flushProperties()):r=this.__stampInstance(e,t,n);var i=this.__instances[t+1],a=i?i.children[0]:this;return this.parentNode.insertBefore(r.root,a),this.__instances[t]=r,r}},{key:"_showHideChildren",value:function(e){for(var t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}},{key:"__handleItemPath",value:function(e,t){var n=e.slice(6),r=n.indexOf("."),i=r<0?n:n.substring(0,r);if(i==parseInt(i,10)){var a=r<0?"":n.substring(r+1);this.__handleObservedPaths(a);var s=this.__itemsIdxToInstIdx[i],o=this.__instances[s];if(o){var l=this.as+(a?"."+a:"");o._setPendingPropertyOrPath(l,t,!1,!0),o._flushProperties()}return!0}}},{key:"itemForElement",value:function(e){var t=this.modelForElement(e);return t&&t[this.as]}},{key:"indexForElement",value:function(e){var t=this.modelForElement(e);return t&&t[this.indexAs]}},{key:"modelForElement",value:function(e){return C(this.template,e)}}]),t}(l(x.a));customElements.define(T.is,T);var A=function(e){function t(){var e;return babelHelpers.classCallCheck(this,t),(e=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this))).__renderDebouncer=null,e.__invalidProps=null,e.__instance=null,e._lastIf=!1,e.__ctor=null,e.__hideTemplateChildren__=!1,e}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,null,[{key:"is",get:function(){return"dom-if"}},{key:"template",get:function(){return null}},{key:"properties",get:function(){return{if:{type:Boolean,observer:"__debounceRender"},restamp:{type:Boolean,observer:"__debounceRender"}}}}]),babelHelpers.createClass(t,[{key:"__debounceRender",value:function(){var e=this;this.__renderDebouncer=P.a.debounce(this.__renderDebouncer,H.a,function(){return e.__render()}),Object(S.a)(this.__renderDebouncer)}},{key:"disconnectedCallback",value:function(){babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"disconnectedCallback",this).call(this),this.parentNode&&(this.parentNode.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||this.parentNode.host)||this.__teardownInstance()}},{key:"connectedCallback",value:function(){babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"connectedCallback",this).call(this),this.style.display="none",this.if&&this.__debounceRender()}},{key:"render",value:function(){Object(S.b)()}},{key:"__render",value:function(){if(this.if){if(!this.__ensureInstance())return;this._showHideChildren()}else this.restamp&&this.__teardownInstance();!this.restamp&&this.__instance&&this._showHideChildren(),this.if!=this._lastIf&&(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)}},{key:"__ensureInstance",value:function(){var e=this,t=this.parentNode;if(t){if(!this.__ctor){var n=this.querySelector("template");if(!n){var r=new MutationObserver(function(){if(!e.querySelector("template"))throw new Error("dom-if requires a <template> child");r.disconnect(),e.__render()});return r.observe(this,{childList:!0}),!1}this.__ctor=k(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[Object(N.g)(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 a,s=0;s<i.length&&(a=i[s]);s++)t.insertBefore(a,this)}else this.__instance=new this.__ctor,t.insertBefore(this.__instance.root,this)}return!0}},{key:"__syncHostProperties",value:function(){var e=this.__invalidProps;if(e){for(var t in e)this.__instance._setPendingProperty(t,this.__dataHost[t]);this.__invalidProps=null,this.__instance._flushProperties()}}},{key:"__teardownInstance",value:function(){if(this.__instance){var e=this.__instance.children;if(e&&e.length){var t=e[0].parentNode;if(t)for(var n,r=0;r<e.length&&(n=e[r]);r++)t.removeChild(n)}this.__instance=null,this.__invalidProps=null}}},{key:"_showHideChildren",value:function(){var e=this.__hideTemplateChildren__||!this.if;this.__instance&&this.__instance._showHideChildren(e)}}]),t}(x.a);customElements.define(A.is,A);var E=n(30),M=n(21),D=function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,null,[{key:"is",get:function(){return"array-selector"}}]),t}(Object(a.a)(function(e){return function(e){function t(){var e;return babelHelpers.classCallCheck(this,t),(e=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this))).__lastItems=null,e.__lastMulti=null,e.__selectedMap=null,e}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,null,[{key:"properties",get:function(){return{items:{type:Array},multi:{type:Boolean,value:!1},selected:{type:Object,notify:!0},selectedItem:{type:Object,notify:!0},toggle:{type:Boolean,value:!1}}}},{key:"observers",get:function(){return["__updateSelection(multi, items.*)"]}}]),babelHelpers.createClass(t,[{key:"__updateSelection",value:function(e,t){var n=t.path;if("items"==n){var r=t.base||[],i=this.__lastItems;if(e!==this.__lastMulti&&this.clearSelection(),i){var a=Object(E.a)(r,i);this.__applySplices(a)}this.__lastItems=r,this.__lastMulti=e}else if("items.splices"==t.path)this.__applySplices(t.value.indexSplices);else{var s=n.slice("items.".length),o=parseInt(s,10);s.indexOf(".")<0&&s==o&&this.__deselectChangedIdx(o)}}},{key:"__applySplices",value:function(e){for(var t=this,n=this.__selectedMap,r=function(r){var i=e[r];n.forEach(function(e,t){e<i.index||(e>=i.index+i.removed.length?n.set(t,e+i.addedCount-i.removed.length):n.set(t,-1))});for(var a=0;a<i.addedCount;a++){var s=i.index+a;n.has(t.items[s])&&n.set(t.items[s],s)}},i=0;i<e.length;i++)r(i);this.__updateLinks();var a=0;n.forEach(function(e,r){e<0?(t.multi?t.splice("selected",a,1):t.selected=t.selectedItem=null,n.delete(r)):a++})}},{key:"__updateLinks",value:function(){var e=this;if(this.__dataLinkedPaths={},this.multi){var t=0;this.__selectedMap.forEach(function(n){n>=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)}}]),t}(Object(M.a)(e))})(x.a));customElements.define(D.is,D);var j=n(38),I=n(17),z=n(11),L=new j.a;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(e,t,n){},prepareTemplateDom:function(e,t){},prepareTemplateStyles:function(e,t,n){},styleSubtree:function(e,t){L.processStyles(),Object(I.c)(e,t)},styleElement:function(e){L.processStyles()},styleDocument:function(e){L.processStyles(),Object(I.c)(document.body,e)},getComputedStyleValue:function(e,t){return Object(I.b)(e,t)},flushCustomStyles:function(){},nativeCss:z.a,nativeShadow:z.b}),window.ShadyCSS.CustomStyleInterface=L;var R=n(24),F=window.ShadyCSS.CustomStyleInterface,$=function(e){function t(){var e;return babelHelpers.classCallCheck(this,t),(e=babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).call(this)))._style=null,F.addCustomStyle(babelHelpers.assertThisInitialized(babelHelpers.assertThisInitialized(e))),e}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"getStyle",value:function(){if(this._style)return this._style;var e=this.querySelector("style");if(!e)return null;this._style=e;var t=e.getAttribute("include");return t&&(e.removeAttribute("include"),e.textContent=Object(R.a)(t)+e.textContent),this.ownerDocument!==window.document&&window.document.head.appendChild(this),this._style}}]),t}(babelHelpers.wrapNativeSuper(HTMLElement));window.customElements.define("custom-style",$),o._mutablePropertyChange;Boolean,n(1);n.d(t,"a",function(){return V});var V=Object(r.a)(HTMLElement).prototype},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return s});n(3),n(13);var r=[],i=function(e){r.push(e)};function a(){for(var e=Boolean(r.length);r.length;)try{r.shift().flush()}catch(e){setTimeout(function(){throw e})}return e}var s=function(){var e,t;do{e=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=a()}while(e||t)}},function(e,t,n){"use strict";var r=n(0),i=new Map,a=Object(r.a)(function(e){return function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"_localeChanged",value:function(e){if(e&&Intl.DateTimeFormat&&Intl.DateTimeFormat.supportedLocalesOf(e)){var t=new Intl.DateTimeFormat(e).resolvedOptions();if("gregory"===t.calendar||"iso8601"===t.calendar){if(!i.has(e)){var n=.5.toLocaleString(e,{minimumIntergerDigits:1,maximumIntergerDigits:1,minimumFractionsDigits:1,maximumFractionsDigits:1})[1],r=new Date(Date.UTC(1970,0,22,11,44,55)),a=[r.toLocaleDateString(e,{year:"2-digit",timeZone:"UTC",hour12:!1}).replace(/[\u200E\u200F]/g,"").slice(0,2),r.toLocaleDateString(e,{month:"2-digit",timeZone:"UTC",hour12:!1}).replace(/[\u200E\u200F]/g,"").slice(0,2),r.toLocaleDateString(e,{day:"2-digit",timeZone:"UTC",hour12:!1}).replace(/[\u200E\u200F]/g,"").slice(0,2),r.toLocaleTimeString(e,{hour:"2-digit",timeZone:"UTC",hour12:!1}).replace(/[\u200E\u200F]/g,"").slice(0,2)],s=r.toLocaleString(e,{year:"2-digit",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",timeZone:"UTC",hour12:!1}).replace(/[\u200E\u200F]/g,""),o=a.reduce(function(e,t){return e.replace(t,"").replace(/[\u200E\u200F]/g,"")},r.toLocaleDateString(e,{day:"2-digit",month:"2-digit",year:"2-digit",timeZone:"UTC",hour12:!1}))[0],l={year:s.indexOf(a[0]),month:s.indexOf(a[1]),day:s.indexOf(a[2]),hour:s.indexOf(a[3])},u={parts:[],timeFirst:l.year>l.hour,dateFirst:l.year<l.hour};l.year<l.month?l.year<l.day?(u.parts.push("year"),l.month<l.day?u.parts.push("month","day"):u.parts.push("day","month")):u.parts.push("day","year","month"):l.month<l.day?(u.parts.push("month"),l.year<l.day?u.parts.push("year","day"):u.parts.push("day","year")):u.parts.push("day","month","year");var c=r.toLocaleTimeString(e,{hour:"2-digit",minute:"2-digit",timeZone:"UTC",hour12:!1}).replace(/[\u200E\u200F]/g,""),p=c.replace(/[\u200E\u200F]/g,"")[2],h=c.split(p);h.push(p);var d=h.reduce(function(e,t){return e.replace(t,"").replace(/[\u200E\u200F\s]/g,"")},r.toLocaleTimeString(e,{hour:"2-digit",minute:"2-digit",timeZone:"UTC",hour12:!0,hourCycle:"h12"}));h.push(d),r.setUTCHours(23);var f=h.reduce(function(e,t){return e.replace(t,"").replace(/[\u200E\u200F\s]/g,"")},r.toLocaleTimeString(e,{hour:"2-digit",minute:"2-digit",timeZone:"UTC",hour12:!0,hourCycle:"h12"}));i.set(e,{decimalSeparator:n,dateSeparator:o,timeSeparator:p,amString:d&&"."!==d?d:"AM",pmString:f&&"."!==f?f:"PM",dateOrder:u})}var m=i.get(e);m.hour12Format=void 0===this.hour12Format?Boolean(t.hour12):this.hour12Format,this.setProperties(m,!0)}else{var b;if(-1!==e.indexOf("-u-"))if(-1!==(b=e.indexOf("-ca-"))){var y=e.indexOf("-",b+4);this.locale=-1!==y?e.slice(0,b+4)+"gregory"+e.slice(y):e.slice(0,b+4)+"gregory"}else this.locale=e+"-ca-gregory";else this.locale=e+"-u-ca-gregory"}}else this.locale=navigator.language}}],[{key:"properties",get:function(){return{locale:{type:String,value:navigator.language},decimalSeparator:{type:String,readOnly:!0},dateSeparator:{type:String,readOnly:!0},timeSeparator:{type:String,readOnly:!0},amString:{type:String,readOnly:!0},pmString:{type:String,readOnly:!0},dateOrder:{type:Object,value:function(){return{parts:[],timeFirst:!1,dateFirst:!0}},notify:!0,readOnly:!0}}}},{key:"observers",get:function(){return["_localeChanged(locale)"]}}]),t}(e)}),s=n(7);n.d(t,"c",function(){return h}),n.d(t,"b",function(){return d}),n.d(t,"a",function(){return f});var o=/^([+-]?\d+-?\d\d-?\d\d)?(?:T?(?:(\d\d:?\d\d(?::?\d\d(?:\.?\d\d\d)?)?)([+-]\d\d:?\d\d|Z)?)?)$/,l=/(?:([+-]\d\d):?(\d\d)|Z)$/,u=function(e,t){for(var n=e<0?"-":"",r=""+Math.abs(e);r.length<t;)r="0"+r;return n+r},c=function(e){if(isNaN(e))return{};var t=Object(s.a)(e);if(0===e)return{timezone:"+00:00",offsetMinutes:e,_timeZoneHours:t?0:-0,_timeZoneMinutes:0};var n=(t?1:-1)*Math.floor(Math.abs(e)/60),r=Math.abs(e)%60;return{timezone:(t?"+":"-")+u(Math.abs(n),2)+":"+u(r,2),offsetMinutes:e,_timeZoneHours:n,_timeZoneMinutes:r}},p=function(e){if("Z"===e)return{timezone:"+00:00",offsetMinutes:0,_timeZoneHours:0,_timeZoneMinutes:0};var t=l.exec(e);if(t){var n=+t[1],r=+t[2],i=Object(s.a)(n),a=(i?1:-1)*(60*Math.abs(n)+r);return 0===a?{timezone:"+00:00",offsetMinutes:a,_timeZoneHours:i?-0:0,_timeZoneMinutes:0}:{timezone:e,offsetMinutes:a,_timeZoneHours:n,_timeZoneMinutes:r}}},h=function(e,t){var n=new Date(e,t,0);return isNaN(n)?31:(n.setFullYear(e),n.getDate())},d=function(e,t,n){var r;switch(babelHelpers.typeof(e)){case"object":e&&e.getDate&&(r=new Date(e));break;case"number":isNaN(e)||(r=new Date(e));break;case"string":var i=o.exec(e);i&&(r=new Date("".concat(i[1]||"1970-01-01","T").concat(i[2]||"00:00:00").concat(i[3]||"Z")),i[3]?t=p(i[3]).offsetMinutes:(isNaN(t)&&(t=i[1]||!n?r.getTimezoneOffset():0),r.setMinutes(r.getMinutes()+t)))}return isNaN(r)||isNaN(t)&&(t=r.getTimezoneOffset()),{valueAsDate:r,offsetMinutes:t}},f=Object(r.a)(function(e){return function(e){function t(){return babelHelpers.classCallCheck(this,t),babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(t).apply(this,arguments))}return babelHelpers.inherits(t,e),babelHelpers.createClass(t,[{key:"_shouldPropertyChange",value:function(e,n,r){return 0===n&&0===r?1/n!==1/r:babelHelpers.get(babelHelpers.getPrototypeOf(t.prototype),"_shouldPropertyChange",this).call(this,e,n,r)}},{key:"now",value:function(){var e=new Date;this.timezone||(this._timeOnly&&!this.date?(this.__updatingTimezoneOffset=!0,this.offsetMinutes=0,this.__updatingTimezoneOffset=!1,e.setUTCFullYear(1970),e.setUTCMonth(0),e.setUTCDate(1)):this._checkDefaultTimezone(e)),e.setMinutes(e.getMinutes()-e.getTimezoneOffset()+this.offsetMinutes),this.setDate(e)}},{key:"setDate",value:function(e){if(isNaN(e))isNaN(this._defaultValue)||this.resetDate();else{e=this._checkThreshold(e),this._checkDefaultTimezone(e);var t={},n=+e,r=this._computeTimezoneShift(e);r!==this.offsetMinutes&&(t=c(r)),this.valueAsNumber!==n&&(t.valueAsNumber=n),+this.valueAsDate!==n&&(t.valueAsDate=new Date(n));var i=new Date(n);i.setMinutes(e.getMinutes()-r);var a=(i=this._clampUTCComponents(i,this.clamp)).getUTCFullYear(),s=i.getUTCMonth()+1,o=i.getUTCDate(),l=this._dateLocked?0:i.getUTCHours(),p=this._dateLocked?0:i.getUTCMinutes(),h=this._dateLocked?0:i.getUTCSeconds(),d=this._dateLocked?0:i.getUTCMilliseconds(),f=0===l?12:l>12?l-12:l,m=l<12,b=function(e,t,n){return u(e,e<0?6:4)+"-"+u(t,2)+"-"+u(n,2)}(a,s,o),y=this._dateLocked?"00:00:00.000":function(e,t,n,r){return u(e||0,2)+":"+u(t||0,2)+(void 0!==n?":"+u(n,2)+(void 0!==r?"."+u(r,3):""):"")}(l,p,h,d),_=b+"T"+y+(t.timezone||this.timezone);a===this.year&&s===this.month&&o===this.day&&l===this.hour&&f===this.hour12&&m===this.isAm&&p===this.minute&&h===this.second&&d===this.millisecond||(t.year=a,t.month=s,t.day=o,t.hour=l,t.hour12=f,t.minute=p,t.second=h,t.millisecond=d,t.isAm=m),_===this.datetime&&b===this.date&&y===this.time||(t.date=b,t.time=y,t.datetime=_),this.setProperties(t)}}},{key:"resetDate",value:function(e){e&&e.stopPropagation&&e.stopPropagation(),this.setProperties({valueAsDate:void 0,valueAsNumber:void 0,datetime:void 0,date:void 0,time:void 0,year:void 0,month:void 0,day:void 0,hour:void 0,hour12:void 0,isAm:void 0,minute:void 0,second:void 0,millisecond:void 0,timezone:void 0,offsetMinutes:void 0,_timeZoneHours:void 0,_timeZoneMinutes:void 0,_recentLocalTimezoneOffset:void 0});var t=d(this.default,void 0,this._timeOnly);isNaN(t.valueAsDate)||(this.__updatingTimezoneOffset=!0,this.setProperties(c(t.offsetMinutes)),this._recentLocalTimezoneOffset=t.valueAsDate.getTimezoneOffset(),this.__updatingTimezoneOffset=!1,this.setDate(t.valueAsDate))}},{key:"_defaultChanged",value:function(e){void 0!==e&&(isNaN(this.valueAsDate)||isNaN(this.valueAsNumber))&&this.resetDate()}},{key:"_computeDatetime",value:function(e,t,n,r,i,a,s){if(!this.__updatingTimezoneOffset)if(isNaN(e)&&isNaN(t)&&isNaN(n)&&isNaN(r)&&isNaN(i)&&isNaN(a)&&isNaN(s))void 0!==this.valueAsDate&&this.resetDate();else{var o=new Date(this.valueAsDate);isNaN(o)&&(o=new Date(void 0!==this.valueAsNumber?this.valueAsNumber:this.datetime),isNaN(o)&&(this._timeOnly&&!this.date?(o=this.time?new Date("1970-01-01T"+this.time+"Z"):new Date(0)).setMinutes(o.getMinutes()+o.getTimezoneOffset()):this.date&&(o=new Date(this.date+"T"+(this.time||"00:00")+(this.timezone||"Z")),th