/** @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 ea(){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 fa(this)}});ea=function(){}}function fa(a){var b=0;return ha(function(){return b]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,D={ta:function(a,b){a.href&&a.setAttribute("href",D.P(a.getAttribute("href"),b));a.src&&a.setAttribute("src",D.P(a.getAttribute("src"),b));if("style"===a.localName){var c=D.fa(a.textContent,b,Gd);a.textContent=D.fa(c,b,Hd)}},fa:function(a,b,c){return a.replace(c, function(a,c,d,e){a=d.replace(/["']/g,"");b&&(a=D.P(a,b));return c+"'"+a+"'"+e})},P:function(a,b){if(void 0===D.T){D.T=!1;try{var c=new URL("b","http://a");c.pathname="c%20d";D.T="http://a/c%20d"===c.href}catch(af){}}if(D.T)return(new URL(a,b)).href;c=D.ka;c||(c=document.implementation.createHTMLDocument("temp"),D.ka=c,c.$=c.createElement("base"),c.head.appendChild(c.$),c.Z=c.createElement("a"));c.$.href=b;c.Z.href=a;return c.Z.href||a}},Mb={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")}},Oa=/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.w(a)})};k.prototype.w=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",Mb.load(c,function(a,d){a=b.Aa(a,d||c);b.a[c]=a;b.b--;b.loadImports(a);b.B()},function(){b.a[c]=null;b.b--;b.B()})};k.prototype.Aa=function(a,b){if(!a)return document.createDocumentFragment();Oa&&(a=a.replace(Id,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=D.P(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);D.ta(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.B=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.xa()))};this.Ca(function(){c=!0;d()});this.Ba(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.Ba=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.i,Na={querySelector:function(a){return this.__shady_native_querySelector(a)},querySelectorAll:function(a){return this.__shady_native_querySelectorAll(a)}},Ra={};function Sa(a){Ra[a]=function(b){return b["__shady_native_"+a]}}function Ta(a,b){y(a,b,"__shady_native_");for(var c in b)Sa(c)}function A(a,b){b=void 0===b?[]:b;for(var c=0;ce.assignedNodes.length&&(e.M=!0)}e.M&&(e.M=!1,rc(this,c))}c=this.a;b=[];for(e=0;eb.indexOf(d))||b.push(d);for(c=0;c "+b}))}a=a.replace(Wd,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,ra:b,stop:f}} function Ud(a,b){a=a.split(/(\[.+?\])/);for(var c=[],d=0;d+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,Yd=/[[.:#*]/,Qd=/^(::slotted)/,Xd=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Vd=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Wd=/(.*):dir\((?:(ltr|rtl))\)/,Od=/:(?:matches|any|-(?:webkit|moz)-any)/,V=new zd;function $d(a,b,c,d,e){this.s=a||null;this.b=b||null;this.X=c||[];this.j=null;this.cssBuild=e||"";this.G=d||"";this.a=this.l=this.o=null}function X(a){return a?a.__styleInfo:null}function ae(a,b){return a.__styleInfo=b}$d.prototype.c=function(){return this.s};$d.prototype._getStyleRules=$d.prototype.c;function be(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var ce=navigator.userAgent.match("Trident");function de(){}function ee(a){var b={},c=[],d=0;S(a,function(a){fe(a);a.index=d++;a=a.g.cssText;for(var c;c=id.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 fe(a){if(!a.g){var b={},c={};ge(a,c)&&(b.m=c,a.rules=null);b.cssText=a.parsedCssText.replace(ld,"").replace(gd,"");a.g=b}}function ge(a,b){var c=a.g;if(c){if(c.m)return Object.assign(b,c.m),!0}else{c=a.parsedCssText;for(var d;a=gd.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}} function he(a,b,c){b&&(b=0<=b.indexOf(";")?ie(a,b,c):td(b,function(b,e,f,g){if(!e)return b+g;(e=he(a,c[e],c))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=he(a,c[f]||f,c)||f;return b+(e||"")+g}));return b&&b.trim()||""} function ie(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.h||(b.h=Kd(V,b,V.b,a?"."+a:"",e)),c=b.h||e),d({Y:c,ya:h,La:g})}}function le(a,b,c){var d={},e={};S(b,function(b){ke(a,b,c,function(c){be.call(a._element||a,c.Y)&&(c.ya?ge(b,d):ge(b,e))})},null,!0);return{Ea:e,wa:d}} function me(a,b,c,d){var e=U(b),f=Jd(e.is,e.G),g=new RegExp("(?:^|[^.#[:])"+(b.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])"),h=X(b);e=h.s;h=h.cssBuild;var k=ne(e,d);return Ed(b,e,function(b){var e="";b.g||fe(b);b.g.cssText&&(e=ie(a,b.g.cssText,c));b.cssText=e;if(!N&&!od(b)&&b.cssText){var h=e=b.cssText;null==b.ca&&(b.ca=jd.test(e));if(b.ca)if(null==b.N){b.N=[];for(var l in k)h=k[l],h=h(e),e!==h&&(e=h,b.N.push(l))}else{for(l=0;l=l._useCount&&l.parentNode&&l.parentNode.removeChild(l));N?k.a?(k.a.textContent=h,g=k.a):h&&(g=pd(h,f,a.shadowRoot,k.b)):g?g.parentNode||(ce&&-1