(function(){ /* Copyright (c) 2016 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 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 Copyright (c) 2016 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 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 */ 'use strict';var ob="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this; (function(){function k(){var a=this;this.s={};this.g=document.documentElement;var b=new xa;b.rules=[];this.h=v.set(this.g,new v(b));this.i=!1;this.a=this.b=null;pb(function(){a.c()})}function L(){this.customStyles=[];this.enqueued=!1}function qb(){}function ja(a){this.cache={};this.c=void 0===a?100:a}function n(){}function v(a,b,c,d,e){this.I=a||null;this.b=b||null;this.Ba=c||[];this.S=null;this.aa=e||"";this.a=this.F=this.K=null}function w(){}function xa(){this.end=this.start=0;this.rules=this.parent= this.previous=null;this.cssText=this.parsedCssText="";this.atRule=!1;this.type=0;this.parsedSelector=this.selector=this.keyframesName=""}function Zc(a){function b(b,c){Object.defineProperty(b,"innerHTML",{enumerable:c.enumerable,configurable:!0,get:c.get,set:function(b){var d=this,e=void 0;m(this)&&(e=[],Q(this,function(a){a!==d&&e.push(a)}));c.set.call(this,b);if(e)for(var f=0;f":return">";case '"':return""";case "\u00a0":return" "}}function Lb(a){for(var b={},c=0;c";break a;case Node.TEXT_NODE:h=h.data;h=l&&ud[l.localName]?h:h.replace(vd,Kb);break a;case Node.COMMENT_NODE:h="\x3c!--"+h.data+"--\x3e";break a;default:throw window.console.error(h),Error("not implemented");}}c+=h}return c}function R(a){x.currentNode=a;return x.parentNode()}function Fa(a){x.currentNode= a;return x.firstChild()}function Ga(a){x.currentNode=a;return x.lastChild()}function Mb(a){x.currentNode=a;return x.previousSibling()}function Nb(a){x.currentNode=a;return x.nextSibling()}function da(a){var b=[];x.currentNode=a;for(a=x.firstChild();a;)b.push(a),a=x.nextSibling();return b}function Ob(a){E.currentNode=a;return E.parentNode()}function Pb(a){E.currentNode=a;return E.firstChild()}function Qb(a){E.currentNode=a;return E.lastChild()}function Rb(a){E.currentNode=a;return E.previousSibling()} function Sb(a){E.currentNode=a;return E.nextSibling()}function Tb(a){var b=[];E.currentNode=a;for(a=E.firstChild();a;)b.push(a),a=E.nextSibling();return b}function Ub(a){return Ma(a,function(a){return da(a)})}function Vb(a){if(a.nodeType!==Node.ELEMENT_NODE)return a.nodeValue;a=document.createTreeWalker(a,NodeFilter.SHOW_TEXT,null,!1);for(var b="",c;c=a.nextNode();)b+=c.nodeValue;return b}function M(a,b,c){for(var d in b){var e=Object.getOwnPropertyDescriptor(a,d);e&&e.configurable||!e&&c?Object.defineProperty(a, d,b[d]):c&&console.warn("Could not define",d,"on",a)}}function S(a){M(a,Wb);M(a,Na);M(a,Oa)}function Xb(a,b,c){Gb(a);c=c||null;a.__shady=a.__shady||{};b.__shady=b.__shady||{};c&&(c.__shady=c.__shady||{});a.__shady.previousSibling=c?c.__shady.previousSibling:b.lastChild;var d=a.__shady.previousSibling;d&&d.__shady&&(d.__shady.nextSibling=a);(d=a.__shady.nextSibling=c)&&d.__shady&&(d.__shady.previousSibling=a);a.__shady.parentNode=b;c?c===b.__shady.firstChild&&(b.__shady.firstChild=a):(b.__shady.lastChild= a,b.__shady.firstChild||(b.__shady.firstChild=a));b.__shady.childNodes=null}function Yb(a){var b=a.__shady&&a.__shady.parentNode,c,d=W(a);if(b||d){c=Zb(a);if(b){a.__shady=a.__shady||{};b.__shady=b.__shady||{};a===b.__shady.firstChild&&(b.__shady.firstChild=a.__shady.nextSibling);a===b.__shady.lastChild&&(b.__shady.lastChild=a.__shady.previousSibling);var e=a.__shady.previousSibling,f=a.__shady.nextSibling;e&&(e.__shady=e.__shady||{},e.__shady.nextSibling=f);f&&(f.__shady=f.__shady||{},f.__shady.previousSibling= e);a.__shady.parentNode=a.__shady.previousSibling=a.__shady.nextSibling=void 0;void 0!==b.__shady.childNodes&&(b.__shady.childNodes=null)}if(e=d){for(var g,e=d.ta(),f=0;f":return">";case "\u00a0":return" "}},h=function(b){Object.defineProperty(b,"innerHTML",{get:function(){for(var a="",b=this.content.firstChild;b;b=b.nextSibling)a+=b.outerHTML||b.data.replace(q,g);return a},set:function(b){l.body.innerHTML=b;for(a.b(l);this.content.firstChild;)this.content.removeChild(this.content.firstChild); for(;l.body.firstChild;)this.content.appendChild(l.body.firstChild)},configurable:!0})},l=document.implementation.createHTMLDocument("template"),k=!0,B=document.createElement("style");B.textContent="template{display:none;}";var m=document.head;m.insertBefore(B,m.firstElementChild);a.prototype=Object.create(HTMLElement.prototype);var n=!document.createElement("div").hasOwnProperty("innerHTML");a.P=function(b){if(!b.content){b.content=l.createDocumentFragment();for(var c;c=b.firstChild;)b.content.appendChild(c); if(n)b.__proto__=a.prototype;else if(b.cloneNode=function(b){return a.a(this,b)},k)try{h(b)}catch(me){k=!1}a.b(b.content)}};h(a.prototype);a.b=function(b){b=b.querySelectorAll("template");for(var c=0,d=b.length,e;c]/g}if(b||f)a.a=function(a,b){var d=c.call(a,!1);this.P&& this.P(d);b&&(d.content.appendChild(c.call(a.content,!0)),this.ya(d.content,a.content));return d},a.prototype.cloneNode=function(b){return a.a(this,b)},a.ya=function(a,b){if(b.querySelectorAll){b=b.querySelectorAll("template");a=a.querySelectorAll("template");for(var c=0,d=a.length,e,f;c]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,p={sb:function(a,b){a.href&&a.setAttribute("href",p.Da(a.getAttribute("href"), b));a.src&&a.setAttribute("src",p.Da(a.getAttribute("src"),b));if("style"===a.localName){var c=p.Ua(a.textContent,b,r);a.textContent=p.Ua(c,b,t)}},Ua:function(a,b,c){return a.replace(c,function(a,c,d,e){a=d.replace(/["']/g,"");b&&(a=p.Va(a,b));return c+"'"+a+"'"+e})},Da:function(a,b){return a&&q.test(a)?a:p.Va(a,b)},Va:function(a,b){if(void 0===p.ra){p.ra=!1;try{var c=new URL("b","http://a");c.pathname="c%20d";p.ra="http://a/c%20d"===c.href}catch(ba){}}if(p.ra)return(new URL(a,b)).href;c=p.gb;c|| (c=document.implementation.createHTMLDocument("temp"),p.gb=c,c.Ga=c.createElement("base"),c.head.appendChild(c.Ga),c.Fa=c.createElement("a"));c.Ga.href=b;c.Fa.href=a;return c.Fa.href||a}},v={async:!0,load:function(a,b,c){if(a)if(a.match(/^data:/)){a=a.split(",");var d=a[1],d=-1e.status?b(d,a):c(d)};e.send()}else c("error: href must be specified")}},z=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);k.prototype.c=function(a){a=a.querySelectorAll("link[rel=import]");for(var b=0,c=a.length;b]/g,td=Lb("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),ud=Lb("style script xmp iframe noembed noframes plaintext noscript".split(" ")),x=document.createTreeWalker(document,NodeFilter.SHOW_ALL, null,!1),E=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),Rd=Object.freeze({parentNode:R,firstChild:Fa,lastChild:Ga,previousSibling:Mb,nextSibling:Nb,childNodes:da,parentElement:Ob,firstElementChild:Pb,lastElementChild:Qb,previousElementSibling:Rb,nextElementSibling:Sb,children:Tb,innerHTML:Ub,textContent:Vb}),gb=Object.getOwnPropertyDescriptor(Element.prototype,"innerHTML")||Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML"),sa=document.implementation.createHTMLDocument("inert").createElement("div"), hb=Object.getOwnPropertyDescriptor(Document.prototype,"activeElement"),Wb={parentElement:{get:function(){var a=this.__shady&&this.__shady.parentNode;a&&a.nodeType!==Node.ELEMENT_NODE&&(a=null);return void 0!==a?a:Ob(this)},configurable:!0},parentNode:{get:function(){var a=this.__shady&&this.__shady.parentNode;return void 0!==a?a:R(this)},configurable:!0},nextSibling:{get:function(){var a=this.__shady&&this.__shady.nextSibling;return void 0!==a?a:Nb(this)},configurable:!0},previousSibling:{get:function(){var a= this.__shady&&this.__shady.previousSibling;return void 0!==a?a:Mb(this)},configurable:!0},className:{get:function(){return this.getAttribute("class")||""},set:function(a){this.setAttribute("class",a)},configurable:!0},nextElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.nextSibling){for(var a=this.nextSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;return a}return Sb(this)},configurable:!0},previousElementSibling:{get:function(){if(this.__shady&&void 0!==this.__shady.previousSibling){for(var a= this.previousSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.previousSibling;return a}return Rb(this)},configurable:!0}},Na={childNodes:{get:function(){var a;if(this.__shady&&void 0!==this.__shady.firstChild){if(!this.__shady.childNodes){this.__shady.childNodes=[];for(var b=this.firstChild;b;b=b.nextSibling)this.__shady.childNodes.push(b)}a=this.__shady.childNodes}else a=da(this);a.item=function(b){return a[b]};return a},configurable:!0},childElementCount:{get:function(){return this.children.length}, configurable:!0},firstChild:{get:function(){var a=this.__shady&&this.__shady.firstChild;return void 0!==a?a:Fa(this)},configurable:!0},lastChild:{get:function(){var a=this.__shady&&this.__shady.lastChild;return void 0!==a?a:Ga(this)},configurable:!0},textContent:{get:function(){if(this.__shady&&void 0!==this.__shady.firstChild){for(var a=[],b=0,c=this.childNodes,d;d=c[b];b++)d.nodeType!==Node.COMMENT_NODE&&a.push(d.textContent);return a.join("")}return Vb(this)},set:function(a){if(this.nodeType!== Node.ELEMENT_NODE)this.nodeValue=a;else{for(;this.firstChild;)this.removeChild(this.firstChild);this.appendChild(document.createTextNode(a))}},configurable:!0},firstElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.firstChild){for(var a=this.firstChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.nextSibling;return a}return Pb(this)},configurable:!0},lastElementChild:{get:function(){if(this.__shady&&void 0!==this.__shady.lastChild){for(var a=this.lastChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a= a.previousSibling;return a}return Qb(this)},configurable:!0},children:{get:function(){var a;this.__shady&&void 0!==this.__shady.firstChild?a=Array.prototype.filter.call(this.childNodes,function(a){return a.nodeType===Node.ELEMENT_NODE}):a=Tb(this);a.item=function(b){return a[b]};return a},configurable:!0},innerHTML:{get:function(){var a="template"===this.localName?this.content:this;return this.__shady&&void 0!==this.__shady.firstChild?Ma(a):Ub(a)},set:function(a){for(var b="template"===this.localName? this.content:this;b.firstChild;)b.removeChild(b.firstChild);for(gb&&gb.set?gb.set.call(sa,a):sa.innerHTML=a;sa.firstChild;)b.appendChild(sa.firstChild)},configurable:!0}},Nc={shadowRoot:{get:function(){return this.__shady&&this.__shady.root||null},set:function(a){this.__shady=this.__shady||{};this.__shady.root=a},configurable:!0}},Oa={activeElement:{get:function(){var a;a=hb&&hb.get?hb.get.call(document):C.Y?void 0:document.activeElement;if(a&&a.nodeType){var b=!!A(this);if(this===document||b&&this.host!== a&&this.host.contains(a)){for(b=W(a);b&&b!==this;)a=b.host,b=W(a);a=this===document?b?null:a:b===this?a:null}else a=null}else a=null;return a},set:function(){},configurable:!0}},Gb=C.Y?function(){}:function(a){a.__shady&&a.__shady.fb||(a.__shady=a.__shady||{},a.__shady.fb=!0,M(a,Wb,!0))},Fb=C.Y?function(){}:function(a){a.__shady&&a.__shady.cb||(a.__shady=a.__shady||{},a.__shady.cb=!0,M(a,Na,!0),M(a,Nc,!0))},ta=null,Sd={blur:!0,focus:!0,focusin:!0,focusout:!0,click:!0,dblclick:!0,mousedown:!0,mouseenter:!0, mouseleave:!0,mousemove:!0,mouseout:!0,mouseover:!0,mouseup:!0,wheel:!0,beforeinput:!0,input:!0,keydown:!0,keyup:!0,compositionstart:!0,compositionupdate:!0,compositionend:!0,touchstart:!0,touchend:!0,touchmove:!0,touchcancel:!0,pointerover:!0,pointerenter:!0,pointerdown:!0,pointermove:!0,pointerup:!0,pointercancel:!0,pointerout:!0,pointerleave:!0,gotpointercapture:!0,lostpointercapture:!0,dragstart:!0,drag:!0,dragenter:!0,dragleave:!0,dragover:!0,drop:!0,dragend:!0,DOMActivate:!0,DOMFocusIn:!0,DOMFocusOut:!0, keypress:!0},sc={get composed(){!1!==this.isTrusted&&void 0===this.oa&&(this.oa=Sd[this.type]);return this.oa||!1},composedPath:function(){this.Ha||(this.Ha=Ua(this.__target,this.composed));return this.Ha},get target(){return ic(this.currentTarget,this.composedPath())},get relatedTarget(){if(!this.Ia)return null;this.Ja||(this.Ja=Ua(this.Ia,!0));return ic(this.currentTarget,this.Ja)},stopPropagation:function(){Event.prototype.stopPropagation.call(this);this.pa=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this); this.pa=this.bb=!0}},Wa={focus:!0,blur:!0},Td=Va(window.Event),Ud=Va(window.CustomEvent),Vd=Va(window.MouseEvent),Wd="function"===typeof Event?Event:function(a,b){b=b||{};var c=document.createEvent("Event");c.initEvent(a,!!b.bubbles,!!b.cancelable);return c};H.prototype.tb=function(){return this.root.querySelectorAll("slot")};H.prototype.Aa=function(a){return a.localName&&"slot"==a.localName};H.prototype.xa=function(){return this.root.za()?this.g(this.c()):[]};H.prototype.c=function(){for(var a=[], b=0,c=this.root.host.firstChild;c;c=c.nextSibling)a[b++]=c;return a};H.prototype.g=function(a){for(var b=[],c=this.root.ta(),d=0,e=c.length,f;d "+b})));a=a.replace(he,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,qb:b,stop:f}};w.prototype.s=function(a,b){a=a.split(Rc);a[0]+=b;return a.join(Rc)};w.prototype.T=function(a, b){var c=a.match(Sc);return(c=c&&c[2].trim()||"")?c[0].match(Tc)?a.replace(Sc,function(a,c,f){return b+f}):c.split(Tc)[0]===b?c:ie:a.replace(ib,b)};w.prototype.V=function(a){a.selector=a.parsedSelector;this.u(a);this.j(a,this.M)};w.prototype.u=function(a){a.selector===je&&(a.selector="html")};w.prototype.M=function(a){return a.match(jb)?this.g(a,Uc):this.s(a.trim(),Uc)};ob.Object.defineProperties(w.prototype,{c:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});var de=/:(nth[-\w]+)\(([^)]+)\)/, Uc=":not(.style-scope)",Qc=",",fe=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=\[])+)/g,Tc=/[[.:#*]/,ib=":host",je=":root",jb="::slotted",ee=new RegExp("^("+jb+")"),Sc=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,ge=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,he=/(.*):dir\((?:(ltr|rtl))\)/,ce=".",Rc=":",be="class",ie="should_not_match",t=new w;v.get=function(a){return a?a.__styleInfo:null};v.set=function(a,b){return a.__styleInfo=b};v.prototype.c=function(){return this.I};v.prototype._getStyleRules=v.prototype.c; var Vc=function(a){return a.matches||a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}(window.Element.prototype),ke=navigator.userAgent.match("Trident");n.prototype.W=function(a){var b=this,c={},d=[],e=0;Z(a,function(a){b.c(a);a.index=e++;b.V(a.v.cssText,c)},function(a){d.push(a)});a.b=d;a=[];for(var f in c)a.push(f);return a};n.prototype.c=function(a){if(!a.v){var b={},c={};this.b(a,c)&&(b.H=c,a.rules=null);b.cssText=this.U(a);a.v=b}};n.prototype.b= function(a,b){var c=a.v;if(c){if(c.H)return Object.assign(b,c.H),!0}else{for(var c=a.parsedCssText,d;a=Oc.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}};n.prototype.U=function(a){return this.T(a.parsedCssText)};n.prototype.T=function(a){return a.replace(ae,"").replace(Oc,"")};n.prototype.V=function(a,b){for(var c;c=Zd.exec(a);){var d=c[1];":"!==c[2]&&(b[d]=!0)}};n.prototype.ka=function(a){for(var b=Object.getOwnPropertyNames(a),c=0,d;c *"===f||"html"===f,h=0===f.indexOf(":host")&&!g;"shady"===c&&(g=f===e+" > *."+e||-1!==f.indexOf("html"),h=!g&&0===f.indexOf(e));"shadow"===c&&(g=":host > *"===f||"html"===f,h=h&&!g);if(g||h)c= e,h&&(p&&!b.D&&(b.D=t.o(b,t.g,t.h(a),e)),c=b.D||e),d({Cb:c,wb:h,Lb:g})}};n.prototype.ia=function(a,b){var c={},d={},e=this,f=b&&b.__cssBuild;Z(b,function(b){e.ma(a,b,f,function(f){Vc.call(a.Ib||a,f.Cb)&&(f.wb?e.b(b,c):e.b(b,d))})},null,!0);return{Ab:d,vb:c}};n.prototype.la=function(a,b,c){var d=this,e=U(a),f=t.f(e.is,e.aa),g=new RegExp("(?:^|[^.#[:])"+(a.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])"),e=v.get(a).I,h=this.h(e,c);return t.b(a,e,function(a){d.M(a,b);p||Bc(a)||!a.cssText||(d.L(a, h),d.o(a,g,f,c))})};n.prototype.h=function(a,b){a=a.b;var c={};if(!p&&a)for(var d=0,e=a[d];d=f._useCount&&f.parentNode&&f.parentNode.removeChild(f));p?e.a?(e.a.textContent=b,d=e.a):b&&(d=$a(b,c,a.shadowRoot,e.b)):d?d.parentNode||(ke&&-1this.c&&e.shift();this.cache[a]=e};ja.prototype.fetch=function(a,b,c){if(a=this.cache[a])for(var d=a.length-1;0<= d;d--){var e=a[d];if(this.a(e,b,c))return e}};if(!p){var Wc=new MutationObserver(Ec),Xc=function(a){Wc.observe(a,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)Xc(document);else{var lb=function(){Xc(document.body)};window.HTMLImports?window.HTMLImports.whenReady(lb):requestAnimationFrame(function(){if("loading"===document.readyState){var a=function(){lb();document.removeEventListener("readystatechange",a)};document.addEventListener("readystatechange", a)}else lb()})}qb=function(){Ec(Wc.takeRecords())}}var ra={},Kd=Promise.resolve(),ab=null,Gc=window.HTMLImports&&window.HTMLImports.whenReady||null,bb,wa=null,ia=null;L.prototype.Na=function(){!this.enqueued&&ia&&(this.enqueued=!0,pb(ia))};L.prototype.b=function(a){a.__seenByShadyCSS||(a.__seenByShadyCSS=!0,this.customStyles.push(a),this.Na())};L.prototype.a=function(a){return a.__shadyCSSCachedStyle?a.__shadyCSSCachedStyle:a.getStyle?a.getStyle():a};L.prototype.c=function(){for(var a=this.customStyles, b=0;b