/** @license @nocompile Copyright (c) 2018 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(){/* 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 */ 'use strict';var n,p="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this,aa="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)};function ba(){ba=function(){};p.Symbol||(p.Symbol=ca)}var ca=function(){var a=0;return function(b){return"jscomp_symbol_"+(b||"")+a++}}(); function da(){ba();var a=p.Symbol.iterator;a||(a=p.Symbol.iterator=p.Symbol("iterator"));"function"!=typeof Array.prototype[a]&&aa(Array.prototype,a,{configurable:!0,writable:!0,value:function(){return ea(this)}});da=function(){}}function ea(a){var b=0;return fa(function(){return b]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,F={ya:function(a,b){a.href&&a.setAttribute("href",F.S(a.getAttribute("href"),b));a.src&&a.setAttribute("src",F.S(a.getAttribute("src"),b));if("style"===a.localName){var c=F.ja(a.textContent,b,xe);a.textContent=F.ja(c,b,ye)}},ja:function(a,b,c){return a.replace(c, function(a,c,d,e){a=d.replace(/["']/g,"");b&&(a=F.S(a,b));return c+"'"+a+"'"+e})},S:function(a,b){if(void 0===F.W){F.W=!1;try{var c=new URL("b","http://a");c.pathname="c%20d";F.W="http://a/c%20d"===c.href}catch(kg){}}if(F.W)return(new URL(a,b)).href;c=F.qa;c||(c=document.implementation.createHTMLDocument("temp"),F.qa=c,c.da=c.createElement("base"),c.head.appendChild(c.da),c.ca=c.createElement("a"));c.da.href=b;c.ca.href=a;return c.ca.href||a}},hc={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")}},ab=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent); k.prototype.loadImports=function(a){var b=this;a=m(a,"link[rel=import]");t(a,function(a){return b.g(a)})};k.prototype.g=function(a){var b=this,c=a.href;if(void 0!==this.a[c]){var d=this.a[c];d&&d.__loaded&&(a.__import=d,this.f(a))}else this.b++,this.a[c]="pending",hc.load(c,function(a,d){a=b.Ea(a,d||c);b.a[c]=a;b.b--;b.loadImports(a);b.j()},function(){b.a[c]=null;b.b--;b.j()})};k.prototype.Ea=function(a,b){if(!a)return document.createDocumentFragment();ab&&(a=a.replace(ze,function(a,b,c){return-1=== a.indexOf("type=")?b+" type=import-disable "+c:a}));var c=document.createElement("template");c.innerHTML=a;if(c.content)a=c.content,l(a);else for(a=document.createDocumentFragment();c.firstChild;)a.appendChild(c.firstChild);if(c=a.querySelector("base"))b=F.S(c.getAttribute("href"),b),c.removeAttribute("href");c=m(a,'link[rel=import],link[rel=stylesheet][href][type=import-disable],style:not([type]),link[rel=stylesheet][href]:not([type]),script:not([type]),script[type="application/javascript"],script[type="text/javascript"],script[type="module"]'); var d=0;t(c,function(a){g(a);F.ya(a,b);a.setAttribute("import-dependency","");if("script"===a.localName&&!a.src&&a.textContent){if("module"===a.type)throw Error("Inline module scripts are not supported in HTML Imports.");a.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(a.textContent+("\n//# sourceURL="+b+(d?"-"+d:"")+".js\n")));a.textContent="";d++}});return a};k.prototype.j=function(){var a=this;if(!this.b){this.c.disconnect();this.flatten(document);var b=!1,c=!1,d=function(){c&& b&&(a.loadImports(document),a.b||(a.c.observe(document.head,{childList:!0,subtree:!0}),a.Z()))};this.Ga(function(){c=!0;d()});this.Fa(function(){b=!0;d()})}};k.prototype.flatten=function(a){var b=this;a=m(a,"link[rel=import]");t(a,function(a){var c=b.a[a.href];(a.__import=c)&&c.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(b.a[a.href]=a,a.readyState="loading",a.__import=a,b.flatten(c),a.appendChild(c))})};k.prototype.Fa=function(a){function b(e){if(e]/g;function Ha(a){switch(a){case "&":return"&";case "<":return"<";case ">":return">";case '"':return""";case "\u00a0":return" "}}function Ia(a){for(var b={},c=0;c";break a;case Node.TEXT_NODE:h=h.data;h=k&&Ka[k.localName]?h:h.replace(Ga,Ha);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};var Ma=u.l,Na={querySelector:function(a){return this.__shady_native_querySelector(a)},querySelectorAll:function(a){return this.__shady_native_querySelectorAll(a)}},Oa={};function Pa(a){Oa[a]=function(b){return b["__shady_native_"+a]}}function Qa(a,b){y(a,b,"__shady_native_");for(var c in b)Pa(c)}function A(a,b){b=void 0===b?[]:b;for(var c=0;ce.assignedNodes.length&&(e.N=!0)}e.N&&(e.N=!1,tc(this,c))}c=this.a;b=[];for(e=0;eb.indexOf(d))||b.push(d);for(c=0;c "+b}))}a=a.replace(ef,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,wa:b,stop:f}} function cf(a,b){a=a.split(/(\[.+?\])/);for(var c=[],d=0;d+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,gf=/[[.:#*]/,Ze=/^(::slotted)/,ff=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,df=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,ef=/(.*):dir\((?:(ltr|rtl))\)/,Xe=/:(?:matches|any|-(?:webkit|moz)-any)/,U=new Le;function jf(a,b,c,d,e){this.v=a||null;this.b=b||null;this.aa=c||[];this.m=null;this.cssBuild=e||"";this.H=d||"";this.a=this.o=this.u=null}function W(a){return a?a.__styleInfo:null}function kf(a,b){return a.__styleInfo=b}jf.prototype.c=function(){return this.v};jf.prototype._getStyleRules=jf.prototype.c;function lf(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var mf=navigator.userAgent.match("Trident");function nf(){}function of(a){var b={},c=[],d=0;ve(a,function(a){pf(a);a.index=d++;a=a.h.cssText;for(var c;c=pe.exec(a);){var e=c[1];":"!==c[2]&&(b[e]=!0)}},function(a){c.push(a)});a.b=c;a=[];for(var e in b)a.push(e);return a} function pf(a){if(!a.h){var b={},c={};qf(a,c)&&(b.s=c,a.rules=null);b.cssText=a.parsedCssText.replace(se,"").replace(ne,"");a.h=b}}function qf(a,b){var c=a.h;if(c){if(c.s)return Object.assign(b,c.s),!0}else{c=a.parsedCssText;for(var d;a=ne.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}} function rf(a,b,c){b&&(b=0<=b.indexOf(";")?sf(a,b,c):Fe(b,function(b,e,f,g){if(!e)return b+g;(e=rf(a,c[e],c))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=rf(a,c[f]||f,c)||f;return b+(e||"")+g}));return b&&b.trim()||""} function sf(a,b,c){b=b.split(";");for(var d=0,e,f;d *"===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));if(g||h)c=e,h&&(b.i||(b.i=Te(U,b,U.b,a?"."+a:"",e)),c=b.i||e),d({ba:c,Ca:h,Ra:g})}}function vf(a,b,c){var d={},e={};ve(b,function(b){uf(a,b,c,function(c){lf.call(a._element||a,c.ba)&&(c.Ca?qf(b,d):qf(b,e))})},null,!0);return{Ja:e,Ba:d}} function wf(a,b,c,d){var e=T(b),f=Se(e.is,e.H),g=new RegExp("(?:^|[^.#[:])"+(b.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])"),h=W(b);e=h.v;h=h.cssBuild;var k=xf(e,d);return Qe(b,e,function(b){var e="";b.h||pf(b);b.h.cssText&&(e=sf(a,b.h.cssText,c));b.cssText=e;if(!Q&&!Ae(b)&&b.cssText){var h=e=b.cssText;null==b.ga&&(b.ga=qe.test(e));if(b.ga)if(null==b.O){b.O=[];for(var l in k)h=k[l],h=h(e),e!==h&&(e=h,b.O.push(l))}else{for(l=0;l=l._useCount&&l.parentNode&&l.parentNode.removeChild(l));Q?k.a?(k.a.textContent=h,g=k.a):h&&(g=Be(h,f,a.shadowRoot,k.b)):g?g.parentNode||(mf&&-1