/** @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]/g;function Ia(a){switch(a){case "&":return"&";case "<":return"<";case ">":return">";case '"':return""";case "\u00a0":return" "}}function Ja(a){for(var b={},c=0;c";break a;case Node.TEXT_NODE:h=h.data;h=k&&La[k.localName]?h:h.replace(Ha,Ia);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 Na=t.j,Oa={querySelector:function(a){return this.__shady_native_querySelector(a)},querySelectorAll:function(a){return this.__shady_native_querySelectorAll(a)}},Pa={};function Qa(a){Pa[a]=function(b){return b["__shady_native_"+a]}}function Ra(a,b){y(a,b,"__shady_native_");for(var c in b)Qa(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,pc(this,c))}c=this.a;b=[];for(e=0;eb.indexOf(d))||b.push(d);for(c=0;c "+b}))}a=a.replace(We,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,oa:b,stop:f}} function Ue(a,b){a=a.split(/(\[.+?\])/);for(var c=[],d=0;d+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,Ye=/[[.:#*]/,Qe=/^(::slotted)/,Xe=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Ve=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,We=/(.*):dir\((?:(ltr|rtl))\)/,Oe=/:(?:matches|any|-(?:webkit|moz)-any)/,V=new Ce;function $e(a,b,c,d,e){this.u=a||null;this.b=b||null;this.Y=c||[];this.l=null;this.cssBuild=e||"";this.H=d||"";this.a=this.m=this.s=null}function X(a){return a?a.__styleInfo:null}function af(a,b){return a.__styleInfo=b}$e.prototype.c=function(){return this.u};$e.prototype._getStyleRules=$e.prototype.c;function bf(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var cf=navigator.userAgent.match("Trident");function df(){}function ef(a){var b={},c=[],d=0;pe(a,function(a){ff(a);a.index=d++;a=a.g.cssText;for(var c;c=je.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 ff(a){if(!a.g){var b={},c={};gf(a,c)&&(b.o=c,a.rules=null);b.cssText=a.parsedCssText.replace(me,"").replace(he,"");a.g=b}}function gf(a,b){var c=a.g;if(c){if(c.o)return Object.assign(b,c.o),!0}else{c=a.parsedCssText;for(var d;a=he.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}} function hf(a,b,c){b&&(b=0<=b.indexOf(";")?jf(a,b,c):we(b,function(b,e,f,g){if(!e)return b+g;(e=hf(a,c[e],c))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=hf(a,c[f]||f,c)||f;return b+(e||"")+g}));return b&&b.trim()||""} function jf(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=Ke(V,b,V.b,a?"."+a:"",e)),c=b.h||e),d({Z:c,ua:h,Fa:g})}}function mf(a,b,c){var d={},e={};pe(b,function(b){lf(a,b,c,function(c){bf.call(a._element||a,c.Z)&&(c.ua?gf(b,d):gf(b,e))})},null,!0);return{xa:e,sa:d}} function nf(a,b,c,d){var e=U(b),f=Je(e.is,e.H),g=new RegExp("(?:^|[^.#[:])"+(b.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])"),h=X(b);e=h.u;h=h.cssBuild;var k=of(e,d);return He(b,e,function(b){var e="";b.g||ff(b);b.g.cssText&&(e=jf(a,b.g.cssText,c));b.cssText=e;if(!R&&!re(b)&&b.cssText){var h=e=b.cssText;null==b.ba&&(b.ba=ke.test(e));if(b.ba)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));R?k.a?(k.a.textContent=h,g=k.a):h&&(g=se(h,f,a.shadowRoot,k.b)):g?g.parentNode||(cf&&-1