c9ea3197adcfa88ee1ed8de3bdb963c3c90a9cd58100bb809f899888339d518f

Source Code:

(function(){/*

 Copyright The Closure Library Authors.
 SPDX-License-Identifier: Apache-2.0
*/
var n;function ba(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function ca(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:ba(a)}}function y(a){if(!(a instanceof Array)){a=ca(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}
function da(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");}var fa=da(this);/*

 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
*/
(function(a){function b(l,q){if("function"===typeof window.CustomEvent)return new CustomEvent(l,q);var r=document.createEvent("CustomEvent");r.initCustomEvent(l,!!q.bubbles,!!q.cancelable,q.detail);return r}function c(l){if(aa)return l.ownerDocument!==document?l.ownerDocument:null;var q=l.__importDoc;if(!q&&l.parentNode){q=l.parentNode;if("function"===typeof q.closest)q=q.closest("link[rel=import]");else for(;!h(q)&&(q=q.parentNode););l.__importDoc=q}return q}function d(l){var q=p(document,"link[rel=import]:not([import-dependency])"),
r=q.length;r?w(q,function(v){return g(v,function(){0===--r&&l()})}):l()}function e(l){function q(){"loading"!==document.readyState&&document.body&&(document.removeEventListener("readystatechange",q),l())}document.addEventListener("readystatechange",q);q()}function f(l){e(function(){return d(function(){return l&&l()})})}function g(l,q){if(l.__loaded)q&&q();else if("script"===l.localName&&!l.src||"style"===l.localName&&!l.firstChild||"style"===l.localName&&"http://www.w3.org/2000/svg"===l.namespaceURI)l.__loaded=
!0,q&&q();else{var r=function(v){l.removeEventListener(v.type,r);l.__loaded=!0;q&&q()};l.addEventListener("load",r);"style"===l.localName&&(wa||xa)||l.addEventListener("error",r)}}function h(l){return l.nodeType===Node.ELEMENT_NODE&&"link"===l.localName&&"import"===l.rel}function k(){var l=this;this.J={};this.Z=0;this.Ia=new MutationObserver(function(q){return l.Ac(q)});this.Ia.observe(document.head,{childList:!0,subtree:!0});this.loadImports(document)}function m(l){w(p(l,"template"),function(q){w(p(q.content,
'script:not([type]),script[type="application/javascript"],script[type="text/javascript"],script[type="module"]'),function(r){var v=document.createElement("script");w(r.attributes,function(C){return v.setAttribute(C.name,C.value)});v.textContent=r.textContent;r.parentNode.replaceChild(v,r)});m(q.content)})}function p(l,q){return l.childNodes.length?l.querySelectorAll(q):Jb}function w(l,q,r){var v=l?l.length:0,C=r?-1:1;for(r=r?v-1:0;r<v&&0<=r;r+=C)q(l[r],r)}var F=document.createElement("link"),aa="import"in
F,Jb=F.querySelectorAll("*"),Na=null;!1==="currentScript"in document&&Object.defineProperty(document,"currentScript",{get:function(){return Na||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null)},configurable:!0});var Kb=/(url\()([^)]*)(\))/g,Lb=/(@import[\s]+(?!url\())([^;]*)(;)/g,ja=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,Q={yc:function(l,q){l.href&&l.setAttribute("href",Q.ta(l.getAttribute("href"),q));l.src&&l.setAttribute("src",Q.ta(l.getAttribute("src"),
q));if("style"===l.localName){var r=Q.qb(l.textContent,q,Kb);l.textContent=Q.qb(r,q,Lb)}},qb:function(l,q,r){return l.replace(r,function(v,C,x,E){v=x.replace(/["']/g,"");q&&(v=Q.ta(v,q));return C+"'"+v+"'"+E})},ta:function(l,q){if(void 0===Q.va){Q.va=!1;try{var r=new URL("b","http://a");r.pathname="c%20d";Q.va="http://a/c%20d"===r.href}catch(v){}}if(Q.va)return(new URL(l,q)).href;r=Q.Ab;r||(r=document.implementation.createHTMLDocument("temp"),Q.Ab=r,r.Na=r.createElement("base"),r.head.appendChild(r.Na),
r.Ma=r.createElement("a"));r.Na.href=q;r.Ma.href=l;return r.Ma.href||l}},ma={async:!0,load:function(l,q,r){if(l)if(l.match(/^data:/)){l=l.split(",");var v=l[1];v=-1<l[0].indexOf(";base64")?atob(v):decodeURIComponent(v);q(v)}else{var C=new XMLHttpRequest;C.open("GET",l,ma.async);C.onload=function(){var x,E=null!=(x=C.responseURL||C.getResponseHeader("Location"))?x:void 0;E&&0===E.indexOf("/")&&(E=(location.origin||location.protocol+"//"+location.host)+E);x=C.response||C.responseText;304===C.status||
0===C.status||200<=C.status&&300>C.status?q(x,E):r(x)};C.send()}else r("error: href must be specified")}},wa=/Trident/.test(navigator.userAgent),xa=/Edge\/\d./i.test(navigator.userAgent);k.prototype.loadImports=function(l){var q=this;l=p(l,"link[rel=import]");w(l,function(r){return q.nb(r)})};k.prototype.nb=function(l){var q=this,r=l.href;if(void 0!==this.J[r]){var v=this.J[r];v&&v.__loaded&&(l.__import=v,this.lb(l))}else this.Z++,this.J[r]="pending",ma.load(r,function(C,x){C=q.Gc(C,x||r);q.J[r]=
C;q.Z--;q.loadImports(C);q.pb()},function(){q.J[r]=null;q.Z--;q.pb()})};k.prototype.Gc=function(l,q){var r=this;if(!l)return document.createDocumentFragment();if(wa||xa)l=l.replace(ja,function(x,E,na){return-1===x.indexOf("type=")?E+" type=import-disable "+na:x});var v=document.createElement("template");v.innerHTML=l;if(v.content)l=v.content,m(l);else for(l=document.createDocumentFragment();v.firstChild;)l.appendChild(v.firstChild);if(v=l.querySelector("base"))q=Q.ta(v.getAttribute("href"),q),v.removeAttribute("href");
v=p(l,'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 C=0;w(v,function(x){g(x);Q.yc(x,q);if("style"===x.localName&&r.sb(x)){var E=r.uc(x);g(E);x.parentNode.replaceChild(E,x);x=E}x.setAttribute("import-dependency","");if("script"===x.localName&&!x.src&&x.textContent){if("module"===x.type)throw Error("Inline module scripts are not supported in HTML Imports.");
x.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(x.textContent+("\n//# sourceURL="+q+(C?"-"+C:"")+".js\n")));x.textContent="";C++}});return l};k.prototype.sb=function(l){return xa&&-1<l.textContent.indexOf("@import")};k.prototype.uc=function(l){var q=l.ownerDocument.createElement("style");q.textContent=l.textContent;w(l.attributes,function(r){return q.setAttribute(r.name,r.value)});return q};k.prototype.pb=function(){var l=this;if(!this.Z){this.Ia.disconnect();this.flatten(document);
var q=!1,r=!1,v=function(){r&&q&&(l.loadImports(document),l.Z||(l.Ia.observe(document.head,{childList:!0,subtree:!0}),l.xc()))};this.Wc(function(){r=!0;v()});this.Nc(function(){q=!0;v()})}};k.prototype.flatten=function(l){var q=this;l=p(l,"link[rel=import]");w(l,function(r){var v=q.J[r.href];(r.__import=v)&&v.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(q.J[r.href]=r,r.readyState="loading",r.__import=r,q.flatten(v),r.appendChild(v))})};k.prototype.Nc=function(l){function q(C){if(C<v){var x=r[C],E=document.createElement("script");
x.removeAttribute("import-dependency");w(x.attributes,function(na){return E.setAttribute(na.name,na.value)});Na=E;x.parentNode.replaceChild(E,x);g(E,function(){Na=null;q(C+1)})}else l()}var r=p(document,"script[import-dependency]"),v=r.length;q(0)};k.prototype.Wc=function(l){var q=this,r=p(document,"style[import-dependency],link[rel=stylesheet][import-dependency]"),v=r.length;if(v){var C=(wa||xa)&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]");w(r,function(x){C&&q.sb(x)&&
x.ownerDocument.defaultView!==window.top&&(x.__loaded=!0);g(x,function(){x.removeAttribute("import-dependency");0===--v&&l()});if(C&&x.parentNode!==document.head){var E=document.createElement(x.localName);E.__appliedElement=x;E.setAttribute("type","import-placeholder");x.parentNode.insertBefore(E,x.nextSibling);for(E=c(x);E&&c(E);)E=c(E);E.parentNode!==document.head&&(E=null);document.head.insertBefore(x,E);x.removeAttribute("type")}})}else l()};k.prototype.xc=function(){var l=this,q=p(document,"link[rel=import]");
w(q,function(r){return l.lb(r)},!0)};k.prototype.lb=function(l){l.__loaded||(l.__loaded=!0,l.import&&(l.import.readyState="complete"),l.dispatchEvent(b(l.import?"load":"error",{bubbles:!1,cancelable:!1,detail:void 0})))};k.prototype.Ac=function(l){var q=this;w(l,function(r){return w(r.addedNodes,function(v){v&&v.nodeType===Node.ELEMENT_NODE&&(h(v)?q.nb(v):q.loadImports(v))})})};var Oa=null;if(aa)F=p(document,"link[rel=import]"),w(F,function(l){l.import&&"loading"===l.import.readyState||(l.__loaded=
!0)}),F=function(l){l=l.target;h(l)&&(l.__loaded=!0)},document.addEventListener("load",F,!0),document.addEventListener("error",F,!0);else{var oa=Object.getOwnPropertyDescriptor(Node.prototype,"baseURI");Object.defineProperty((!oa||oa.configurable?Node:Element).prototype,"baseURI",{get:function(){var l=h(this)?this:c(this);return l?l.href:oa&&oa.get?oa.get.call(this):(document.querySelector("base")||window.location).href},configurable:!0,enumerable:!0});Object.defineProperty(HTMLLinkElement.prototype,
"import",{get:function(){return this.__import||null},configurable:!0,enumerable:!0});e(function(){Oa=new k})}f(function(){return document.dispatchEvent(b("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))});a.useNative=aa;a.whenReady=f;a.importForElement=c;a.loadImports=function(l){Oa&&Oa.loadImports(l)}})(window.HTMLImports=window.HTMLImports||{});/*

 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
*/
var ha=document.createEvent("Event");ha.initEvent("foo",!0,!0);ha.preventDefault();if(!ha.defaultPrevented){var ia=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(ia.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var ka=/Trident/.test(navigator.userAgent);
if(!window.Event||ka&&"function"!==typeof window.Event){var la=window.Event;window.Event=function(a,b){b=b||{};var c=document.createEvent("Event");c.initEvent(a,!!b.bubbles,!!b.cancelable);return c};if(la){for(var qa in la)window.Event[qa]=la[qa];window.Event.prototype=la.prototype}}
if(!window.CustomEvent||ka&&"function"!==typeof window.CustomEvent)window.CustomEvent=function(a,b){b=b||{};var c=document.createEvent("CustomEvent");c.initCustomEvent(a,!!b.bubbles,!!b.cancelable,b.detail);return c},window.CustomEvent.prototype=window.Event.prototype;
if(!window.MouseEvent||ka&&"function"!==typeof window.MouseEvent){var ra=window.MouseEvent;window.MouseEvent=function(a,b){b=b||{};var c=document.createEvent("MouseEvent");c.initMouseEvent(a,!!b.bubbles,!!b.cancelable,b.view||window,b.detail,b.screenX,b.screenY,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget);return c};if(ra)for(var sa in ra)window.MouseEvent[sa]=ra[sa];window.MouseEvent.prototype=ra.prototype};/*

Copyright (c) 2020 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
*/
var ta,ua,va=Element.prototype,ya=null!==(ta=Object.getOwnPropertyDescriptor(va,"attributes"))&&void 0!==ta?ta:Object.getOwnPropertyDescriptor(Node.prototype,"attributes"),za=null!==(ua=null===ya||void 0===ya?void 0:ya.get)&&void 0!==ua?ua:function(){return this.attributes},Aa=Array.prototype.map;va.hasOwnProperty("getAttributeNames")||(va.getAttributeNames=function(){return Aa.call(za.call(this),function(a){return a.name})});var Ba,Ca=Element.prototype;Ca.hasOwnProperty("matches")||(Ca.matches=null!==(Ba=Ca.webkitMatchesSelector)&&void 0!==Ba?Ba:Ca.msMatchesSelector);/*

Copyright (c) 2020 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
*/
var Da=Node.prototype.appendChild;function Ea(a){a=a.prototype;a.hasOwnProperty("append")||Object.defineProperty(a,"append",{configurable:!0,enumerable:!0,writable:!0,value:function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];c=ca(c);for(d=c.next();!d.done;d=c.next())d=d.value,Da.call(this,"string"===typeof d?document.createTextNode(d):d)}})}Ea(Document);Ea(DocumentFragment);Ea(Element);var Fa,Ga,Ha=Node.prototype.insertBefore,Ia=null!==(Ga=null===(Fa=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild"))||void 0===Fa?void 0:Fa.get)&&void 0!==Ga?Ga:function(){return this.firstChild};
function Ja(a){a=a.prototype;a.hasOwnProperty("prepend")||Object.defineProperty(a,"prepend",{configurable:!0,enumerable:!0,writable:!0,value:function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];d=Ia.call(this);c=ca(c);for(var e=c.next();!e.done;e=c.next())e=e.value,Ha.call(this,"string"===typeof e?document.createTextNode(e):e,d)}})}Ja(Document);Ja(DocumentFragment);Ja(Element);var Ka,La,Ma=Node.prototype.appendChild,Pa=Node.prototype.removeChild,Qa=null!==(La=null===(Ka=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild"))||void 0===Ka?void 0:Ka.get)&&void 0!==La?La:function(){return this.firstChild};
function Ra(a){a=a.prototype;a.hasOwnProperty("replaceChildren")||Object.defineProperty(a,"replaceChildren",{configurable:!0,enumerable:!0,writable:!0,value:function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];for(;null!==(d=Qa.call(this));)Pa.call(this,d);c=ca(c);for(d=c.next();!d.done;d=c.next())d=d.value,Ma.call(this,"string"===typeof d?document.createTextNode(d):d)}})}Ra(Document);Ra(DocumentFragment);Ra(Element);var Sa,Ta,Ua,Va,Wa=Node.prototype.insertBefore,Xa=null!==(Ta=null===(Sa=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===Sa?void 0:Sa.get)&&void 0!==Ta?Ta:function(){return this.parentNode},Ya=null!==(Va=null===(Ua=Object.getOwnPropertyDescriptor(Node.prototype,"nextSibling"))||void 0===Ua?void 0:Ua.get)&&void 0!==Va?Va:function(){return this.nextSibling};
function Za(a){a=a.prototype;a.hasOwnProperty("after")||Object.defineProperty(a,"after",{configurable:!0,enumerable:!0,writable:!0,value:function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];d=Xa.call(this);if(null!==d){var e=Ya.call(this);c=ca(c);for(var f=c.next();!f.done;f=c.next())f=f.value,Wa.call(d,"string"===typeof f?document.createTextNode(f):f,e)}}})}Za(CharacterData);Za(Element);var $a,ab,bb=Node.prototype.insertBefore,eb=null!==(ab=null===($a=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===$a?void 0:$a.get)&&void 0!==ab?ab:function(){return this.parentNode};
function fb(a){a=a.prototype;a.hasOwnProperty("before")||Object.defineProperty(a,"before",{configurable:!0,enumerable:!0,writable:!0,value:function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];d=eb.call(this);if(null!==d){c=ca(c);for(var e=c.next();!e.done;e=c.next())e=e.value,bb.call(d,"string"===typeof e?document.createTextNode(e):e,this)}}})}fb(CharacterData);fb(Element);var gb,hb,ib=Node.prototype.removeChild,jb=null!==(hb=null===(gb=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===gb?void 0:gb.get)&&void 0!==hb?hb:function(){return this.parentNode};function kb(a){a=a.prototype;a.hasOwnProperty("remove")||Object.defineProperty(a,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){var b=jb.call(this);b&&ib.call(b,this)}})}kb(CharacterData);kb(Element);var lb,mb,nb=Node.prototype.insertBefore,ob=Node.prototype.removeChild,pb=null!==(mb=null===(lb=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode"))||void 0===lb?void 0:lb.get)&&void 0!==mb?mb:function(){return this.parentNode};
function qb(a){a=a.prototype;a.hasOwnProperty("replaceWith")||Object.defineProperty(a,"replaceWith",{configurable:!0,enumerable:!0,writable:!0,value:function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];d=pb.call(this);if(null!==d){c=ca(c);for(var e=c.next();!e.done;e=c.next())e=e.value,nb.call(d,"string"===typeof e?document.createTextNode(e):e,this);ob.call(d,this)}}})}qb(CharacterData);qb(Element);var rb=window.Element.prototype,sb=window.HTMLElement.prototype,tb=window.SVGElement.prototype;!sb.hasOwnProperty("classList")||rb.hasOwnProperty("classList")||tb.hasOwnProperty("classList")||Object.defineProperty(rb,"classList",Object.getOwnPropertyDescriptor(sb,"classList"));Array.from||(Array.from=function(a){return[].slice.call(a)});Object.assign||(Object.assign=function(a){for(var b=[].slice.call(arguments,1),c=0,d;c<b.length;c++)if(d=b[c])for(var e=a,f=Object.keys(d),g=0;g<f.length;g++){var h=f[g];e[h]=d[h]}return a});/*


 Copyright (c) 2014 Taylor Hakes
 Copyright (c) 2014 Forbes Lindesay

 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
 in the Software without restriction, including without limitation the rights
 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 copies of the Software, and to permit persons to whom the Software is
 furnished to do so, subject to the following conditions:

 The above copyright notice and this permission notice shall be included in
 all copies or substantial portions of the Software.

 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 THE SOFTWARE.
*/
var ub=setTimeout;function vb(){}function wb(a,b){return function(){a.apply(b,arguments)}}function A(a){if(!(this instanceof A))throw new TypeError("Promises must be constructed via new");if("function"!==typeof a)throw new TypeError("not a function");this.D=0;this.Wa=!1;this.s=void 0;this.W=[];xb(a,this)}
function yb(a,b){for(;3===a.D;)a=a.s;0===a.D?a.W.push(b):(a.Wa=!0,zb(function(){var c=1===a.D?b.Hc:b.Ic;if(null===c)(1===a.D?Ab:Bb)(b.promise,a.s);else{try{var d=c(a.s)}catch(e){Bb(b.promise,e);return}Ab(b.promise,d)}}))}
function Ab(a,b){try{if(b===a)throw new TypeError("A promise cannot be resolved with itself.");if(b&&("object"===typeof b||"function"===typeof b)){var c=b.then;if(b instanceof A){a.D=3;a.s=b;Cb(a);return}if("function"===typeof c){xb(wb(c,b),a);return}}a.D=1;a.s=b;Cb(a)}catch(d){Bb(a,d)}}function Bb(a,b){a.D=2;a.s=b;Cb(a)}
function Cb(a){2===a.D&&0===a.W.length&&zb(function(){a.Wa||"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",a.s)});for(var b=0,c=a.W.length;b<c;b++)yb(a,a.W[b]);a.W=null}function Db(a,b,c){this.Hc="function"===typeof a?a:null;this.Ic="function"===typeof b?b:null;this.promise=c}function xb(a,b){var c=!1;try{a(function(d){c||(c=!0,Ab(b,d))},function(d){c||(c=!0,Bb(b,d))})}catch(d){c||(c=!0,Bb(b,d))}}A.prototype["catch"]=function(a){return this.then(null,a)};
A.prototype.then=function(a,b){var c=new this.constructor(vb);yb(this,new Db(a,b,c));return c};A.prototype["finally"]=function(a){var b=this.constructor;return this.then(function(c){return b.resolve(a()).then(function(){return c})},function(c){return b.resolve(a()).then(function(){return b.reject(c)})})};
function Eb(a){return new A(function(b,c){function d(h,k){try{if(k&&("object"===typeof k||"function"===typeof k)){var m=k.then;if("function"===typeof m){m.call(k,function(p){d(h,p)},c);return}}e[h]=k;0===--f&&b(e)}catch(p){c(p)}}if(!a||"undefined"===typeof a.length)throw new TypeError("Promise.all accepts an array");var e=Array.prototype.slice.call(a);if(0===e.length)return b([]);for(var f=e.length,g=0;g<e.length;g++)d(g,e[g])})}
function Fb(a){return a&&"object"===typeof a&&a.constructor===A?a:new A(function(b){b(a)})}function Gb(a){return new A(function(b,c){c(a)})}function Hb(a){return new A(function(b,c){for(var d=0,e=a.length;d<e;d++)a[d].then(b,c)})}var zb="function"===typeof setImmediate&&function(a){setImmediate(a)}||function(a){ub(a,0)};/*

 Copyright (c) 2020 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
*/
if(!window.Promise){window.Promise=A;A.prototype.then=A.prototype.then;A.all=Eb;A.race=Hb;A.resolve=Fb;A.reject=Gb;var Ib=document.createTextNode(""),Mb=[];(new MutationObserver(function(){for(var a=Mb.length,b=0;b<a;b++)Mb[b]();Mb.splice(0,a)})).observe(Ib,{characterData:!0});zb=function(a){Mb.push(a);Ib.textContent=0<Ib.textContent.length?"":"a"}};(function(){function a(){}function b(t,u){if(!t.childNodes.length)return[];switch(t.nodeType){case Node.DOCUMENT_NODE:return Na.call(t,u);case Node.DOCUMENT_FRAGMENT_NODE:return Kb.call(t,u);default:return Jb.call(t,u)}}var c="undefined"===typeof HTMLTemplateElement,d=!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment),e=!1;/Trident/.test(navigator.userAgent)&&function(){function t(z,M){if(z instanceof DocumentFragment)for(var cb;cb=z.firstChild;)D.call(this,cb,M);else D.call(this,
z,M);return z}e=!0;var u=Node.prototype.cloneNode;Node.prototype.cloneNode=function(z){z=u.call(this,z);this instanceof DocumentFragment&&(z.__proto__=DocumentFragment.prototype);return z};DocumentFragment.prototype.querySelectorAll=HTMLElement.prototype.querySelectorAll;DocumentFragment.prototype.querySelector=HTMLElement.prototype.querySelector;Object.defineProperties(DocumentFragment.prototype,{nodeType:{get:function(){return Node.DOCUMENT_FRAGMENT_NODE},configurable:!0},localName:{get:function(){},
configurable:!0},nodeName:{get:function(){return"#document-fragment"},configurable:!0}});var D=Node.prototype.insertBefore;Node.prototype.insertBefore=t;var G=Node.prototype.appendChild;Node.prototype.appendChild=function(z){z instanceof DocumentFragment?t.call(this,z,null):G.call(this,z);return z};var V=Node.prototype.removeChild,ea=Node.prototype.replaceChild;Node.prototype.replaceChild=function(z,M){z instanceof DocumentFragment?(t.call(this,z,M),V.call(this,M)):ea.call(this,z,M);return M};Document.prototype.createDocumentFragment=
function(){var z=this.createElement("df");z.__proto__=DocumentFragment.prototype;return z};var pa=Document.prototype.importNode;Document.prototype.importNode=function(z,M){M=pa.call(this,z,M||!1);z instanceof DocumentFragment&&(M.__proto__=DocumentFragment.prototype);return M}}();var f=Node.prototype.cloneNode,g=Document.prototype.createElement,h=Document.prototype.importNode,k=Node.prototype.removeChild,m=Node.prototype.appendChild,p=Node.prototype.replaceChild,w=DOMParser.prototype.parseFromString,
F=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML")||{get:function(){return this.innerHTML},set:function(t){this.innerHTML=t}},aa=Object.getOwnPropertyDescriptor(window.Node.prototype,"childNodes")||{get:function(){return this.childNodes}},Jb=Element.prototype.querySelectorAll,Na=Document.prototype.querySelectorAll,Kb=DocumentFragment.prototype.querySelectorAll,Lb=function(){if(!c){var t=document.createElement("template"),u=document.createElement("template");u.content.appendChild(document.createElement("div"));
t.content.appendChild(u);t=t.cloneNode(!0);return 0===t.content.childNodes.length||0===t.content.firstChild.content.childNodes.length||d}}();if(c){var ja=document.implementation.createHTMLDocument("template"),Q=!0,ma=document.createElement("style");ma.textContent="template{display:none;}";var wa=document.head;wa.insertBefore(ma,wa.firstElementChild);a.prototype=Object.create(HTMLElement.prototype);var xa=!document.createElement("div").hasOwnProperty("innerHTML");a.T=function(t){if(!t.content&&t.namespaceURI===
document.documentElement.namespaceURI){t.content=ja.createDocumentFragment();for(var u;u=t.firstChild;)m.call(t.content,u);if(xa)t.__proto__=a.prototype;else if(t.cloneNode=function(D){return a.xa(this,D)},Q)try{oa(t),l(t)}catch(D){Q=!1}a.bootstrap(t.content)}};var Oa={option:["select"],thead:["table"],col:["colgroup","table"],tr:["tbody","table"],th:["tr","tbody","table"],td:["tr","tbody","table"]},oa=function(t){Object.defineProperty(t,"innerHTML",{get:function(){return E(this)},set:function(u){var D=
Oa[(/<([a-z][^/\0>\x20\t\r\n\f]+)/i.exec(u)||["",""])[1].toLowerCase()];if(D)for(var G=0;G<D.length;G++)u="<"+D[G]+">"+u+"</"+D[G]+">";ja.body.innerHTML=u;for(a.bootstrap(ja);this.content.firstChild;)k.call(this.content,this.content.firstChild);u=ja.body;if(D)for(G=0;G<D.length;G++)u=u.lastChild;for(;u.firstChild;)m.call(this.content,u.firstChild)},configurable:!0})},l=function(t){Object.defineProperty(t,"outerHTML",{get:function(){return"<template>"+this.innerHTML+"</template>"},set:function(u){if(this.parentNode){ja.body.innerHTML=
u;for(u=this.ownerDocument.createDocumentFragment();ja.body.firstChild;)m.call(u,ja.body.firstChild);p.call(this.parentNode,u,this)}else throw Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");},configurable:!0})};oa(a.prototype);l(a.prototype);a.bootstrap=function(t){t=b(t,"template");for(var u=0,D=t.length,G;u<D&&(G=t[u]);u++)a.T(G)};document.addEventListener("DOMContentLoaded",function(){a.bootstrap(document)});Document.prototype.createElement=function(){var t=
g.apply(this,arguments);"template"===t.localName&&a.T(t);return t};DOMParser.prototype.parseFromString=function(){var t=w.apply(this,arguments);a.bootstrap(t);return t};Object.defineProperty(HTMLElement.prototype,"innerHTML",{get:function(){return E(this)},set:function(t){F.set.call(this,t);a.bootstrap(this)},configurable:!0,enumerable:!0});var q=/[&\u00A0"]/g,r=/[&\u00A0<>]/g,v=function(t){switch(t){case "&":return"&";case "<":return"<";case ">":return">";case '"':return""";case "\u00a0":return" "}};
ma=function(t){for(var u={},D=0;D<t.length;D++)u[t[D]]=!0;return u};var C=ma("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),x=ma("style script xmp iframe noembed noframes plaintext noscript".split(" ")),E=function(t,u){"template"===t.localName&&(t=t.content);for(var D="",G=u?u(t):aa.get.call(t),V=0,ea=G.length,pa;V<ea&&(pa=G[V]);V++){a:{var z=pa;var M=t;var cb=u;switch(z.nodeType){case Node.ELEMENT_NODE:for(var nc=z.localName,db="<"+nc,zg=z.attributes,
Hd=0;M=zg[Hd];Hd++)db+=" "+M.name+'="'+M.value.replace(q,v)+'"';db+=">";z=C[nc]?db:db+E(z,cb)+"</"+nc+">";break a;case Node.TEXT_NODE:z=z.data;z=M&&x[M.localName]?z:z.replace(r,v);break a;case Node.COMMENT_NODE:z="\x3c!--"+z.data+"--\x3e";break a;default:throw window.console.error(z),Error("not implemented");}}D+=z}return D}}if(c||Lb){a.xa=function(t,u){var D=f.call(t,!1);this.T&&this.T(D);u&&(m.call(D.content,f.call(t.content,!0)),na(D.content,t.content));return D};var na=function(t,u){if(u.querySelectorAll&&
(u=b(u,"template"),0!==u.length)){t=b(t,"template");for(var D=0,G=t.length,V,ea;D<G;D++)ea=u[D],V=t[D],a&&a.T&&a.T(ea),p.call(V.parentNode,Ag.call(ea,!0),V)}},Ag=Node.prototype.cloneNode=function(t){if(!e&&d&&this instanceof DocumentFragment)if(t)var u=Bg.call(this.ownerDocument,this,!0);else return this.ownerDocument.createDocumentFragment();else u=this.nodeType===Node.ELEMENT_NODE&&"template"===this.localName&&this.namespaceURI==document.documentElement.namespaceURI?a.xa(this,t):f.call(this,t);
t&&na(u,this);return u},Bg=Document.prototype.importNode=function(t,u){u=u||!1;if("template"===t.localName)return a.xa(t,u);var D=h.call(this,t,u);if(u){na(D,t);t=b(D,'script:not([type]),script[type="application/javascript"],script[type="text/javascript"]');for(var G,V=0;V<t.length;V++){G=t[V];u=g.call(document,"script");u.textContent=G.textContent;for(var ea=G.attributes,pa=0,z;pa<ea.length;pa++)z=ea[pa],u.setAttribute(z.name,z.value);p.call(G.parentNode,u,G)}}return D}}c&&(window.HTMLTemplateElement=
a)})();/*

 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
*/
var Nb=window;Nb.WebComponents=Nb.WebComponents||{flags:{}};var Ob=document.querySelector('script[src*="webcomponents-lite.js"]'),Pb=/wc-(.+)/,Qb={};if(!Qb.noOpts){location.search.slice(1).split("&").forEach(function(a){a=a.split("=");var b;a[0]&&(b=a[0].match(Pb))&&(Qb[b[1]]=a[1]||!0)});if(Ob)for(var Rb=0,Sb=void 0;Sb=Ob.attributes[Rb];Rb++)"src"!==Sb.name&&(Qb[Sb.name]=Sb.value||!0);var Tb={};Qb.log&&Qb.log.split&&Qb.log.split(",").forEach(function(a){Tb[a]=!0});Qb.log=Tb}
Nb.WebComponents.flags=Qb;var Ub=Qb.shadydom;Ub&&(Nb.ShadyDOM=Nb.ShadyDOM||{},Nb.ShadyDOM.force=Ub);var Vb=Qb.register||Qb.ce;Vb&&window.customElements&&(Nb.customElements.forcePolyfill=Vb);var Wb=document.createElement("style");Wb.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var Xb=document.querySelector("head");Xb.insertBefore(Wb,Xb.firstChild);var Yb=window.Document.prototype.createElement,Zb=window.Document.prototype.createElementNS,$b=window.Document.prototype.importNode,ac=window.Document.prototype.prepend,bc=window.Document.prototype.append,cc=window.DocumentFragment.prototype.prepend,dc=window.DocumentFragment.prototype.append,ec=window.Node.prototype.cloneNode,fc=window.Node.prototype.appendChild,gc=window.Node.prototype.insertBefore,hc=window.Node.prototype.removeChild,ic=window.Node.prototype.replaceChild,jc=Object.getOwnPropertyDescriptor(window.Node.prototype,
"textContent"),kc=window.Element.prototype.attachShadow,lc=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),mc=window.Element.prototype.getAttribute,oc=window.Element.prototype.setAttribute,pc=window.Element.prototype.removeAttribute,qc=window.Element.prototype.getAttributeNS,rc=window.Element.prototype.setAttributeNS,sc=window.Element.prototype.removeAttributeNS,tc=window.Element.prototype.insertAdjacentElement,uc=window.Element.prototype.insertAdjacentHTML,vc=window.Element.prototype.prepend,
wc=window.Element.prototype.append,xc=window.Element.prototype.before,yc=window.Element.prototype.after,zc=window.Element.prototype.replaceWith,Ac=window.Element.prototype.remove,Bc=window.HTMLElement,Cc=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Dc=window.HTMLElement.prototype.insertAdjacentElement,Ec=window.HTMLElement.prototype.insertAdjacentHTML;var Fc=function(){var a=new Set;"annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" ").forEach(function(b){return a.add(b)});return a}();function Gc(a){var b=Fc.has(a);a=/^[a-z][.0-9_a-z]*-[-.0-9_a-z]*$/.test(a);return!b&&a}var Hc=document.contains?document.contains.bind(document):document.documentElement.contains.bind(document.documentElement);
function B(a){var b=a.isConnected;if(void 0!==b)return b;if(Hc(a))return!0;for(;a&&!(a.__CE_isImportDocument||a instanceof Document);)a=a.parentNode||(window.ShadowRoot&&a instanceof ShadowRoot?a.host:void 0);return!(!a||!(a.__CE_isImportDocument||a instanceof Document))}function Ic(a){var b=a.children;if(b)return Array.prototype.slice.call(b);b=[];for(a=a.firstChild;a;a=a.nextSibling)a.nodeType===Node.ELEMENT_NODE&&b.push(a);return b}
function Jc(a,b){for(;b&&b!==a&&!b.nextSibling;)b=b.parentNode;return b&&b!==a?b.nextSibling:null}
function Kc(a,b,c){for(var d=a;d;){if(d.nodeType===Node.ELEMENT_NODE){var e=d;b(e);var f=e.localName;if("link"===f&&"import"===e.getAttribute("rel")){d=e.import;void 0===c&&(c=new Set);if(d instanceof Node&&!c.has(d))for(c.add(d),d=d.firstChild;d;d=d.nextSibling)Kc(d,b,c);d=Jc(a,e);continue}else if("template"===f){d=Jc(a,e);continue}if(e=e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)Kc(e,b,c)}d=d.firstChild?d.firstChild:Jc(a,d)}};function Lc(){var a=!(null===Mc||void 0===Mc||!Mc.noDocumentConstructionObserver),b=!(null===Mc||void 0===Mc||!Mc.shadyDomFastWalk);this.Y=[];this.Ba=[];this.O=!1;this.shadyDomFastWalk=b;this.Uc=!a}function Nc(a,b,c,d){var e=window.ShadyDom;if(a.shadyDomFastWalk&&e&&e.inUse){if(b.nodeType===Node.ELEMENT_NODE&&c(b),b.querySelectorAll)for(a=e.nativeMethods.querySelectorAll.call(b,"*"),b=0;b<a.length;b++)c(a[b])}else Kc(b,c,d)}function Oc(a,b){a.O=!0;a.Y.push(b)}
function Pc(a,b){a.O=!0;a.Ba.push(b)}function Qc(a,b){a.O&&Nc(a,b,function(c){return Rc(a,c)})}function Rc(a,b){if(a.O&&!b.__CE_patched){b.__CE_patched=!0;for(var c=0;c<a.Y.length;c++)a.Y[c](b);for(c=0;c<a.Ba.length;c++)a.Ba[c](b)}}function Sc(a,b){var c=[];Nc(a,b,function(e){return c.push(e)});for(b=0;b<c.length;b++){var d=c[b];1===d.__CE_state?a.connectedCallback(d):Tc(a,d)}}
function H(a,b){var c=[];Nc(a,b,function(e){return c.push(e)});for(b=0;b<c.length;b++){var d=c[b];1===d.__CE_state&&a.disconnectedCallback(d)}}
function Uc(a,b,c){c=void 0===c?{}:c;var d=c.Vc,e=c.upgrade||function(g){return Tc(a,g)},f=[];Nc(a,b,function(g){a.O&&Rc(a,g);if("link"===g.localName&&"import"===g.getAttribute("rel")){var h=g.import;h instanceof Node&&(h.__CE_isImportDocument=!0,h.__CE_registry=document.__CE_registry);h&&"complete"===h.readyState?h.__CE_documentLoadHandled=!0:g.addEventListener("load",function(){var k=g.import;if(!k.__CE_documentLoadHandled){k.__CE_documentLoadHandled=!0;var m=new Set;d&&(d.forEach(function(p){return m.add(p)}),
m.delete(k));Uc(a,k,{Vc:m,upgrade:e})}})}else f.push(g)},d);for(b=0;b<f.length;b++)e(f[b])}function Tc(a,b){try{var c=a.Xb(b.ownerDocument,b.localName);c&&a.sc(b,c)}catch(d){Vc(d)}}n=Lc.prototype;
n.sc=function(a,b){if(void 0===a.__CE_state){b.constructionStack.push(a);try{try{if(new b.constructorFunction!==a)throw Error("The custom element constructor did not produce the element being upgraded.");}finally{b.constructionStack.pop()}}catch(f){throw a.__CE_state=2,f;}a.__CE_state=1;a.__CE_definition=b;if(b.attributeChangedCallback&&a.hasAttributes()){b=b.observedAttributes;for(var c=0;c<b.length;c++){var d=b[c],e=a.getAttribute(d);null!==e&&this.attributeChangedCallback(a,d,null,e,null)}}B(a)&&
this.connectedCallback(a)}};n.connectedCallback=function(a){var b=a.__CE_definition;if(b.connectedCallback)try{b.connectedCallback.call(a)}catch(c){Vc(c)}};n.disconnectedCallback=function(a){var b=a.__CE_definition;if(b.disconnectedCallback)try{b.disconnectedCallback.call(a)}catch(c){Vc(c)}};n.attributeChangedCallback=function(a,b,c,d,e){var f=a.__CE_definition;if(f.attributeChangedCallback&&-1<f.observedAttributes.indexOf(b))try{f.attributeChangedCallback.call(a,b,c,d,e)}catch(g){Vc(g)}};
n.Xb=function(a,b){var c=a.__CE_registry;if(c&&(a.defaultView||a.__CE_isImportDocument))return Wc(c,b)};
function Xc(a,b,c,d){var e=b.__CE_registry;if(e&&(null===d||"http://www.w3.org/1999/xhtml"===d)&&(e=Wc(e,c)))try{var f=new e.constructorFunction;if(void 0===f.__CE_state||void 0===f.__CE_definition)throw Error("Failed to construct '"+c+"': The returned value was not constructed with the HTMLElement constructor.");if("http://www.w3.org/1999/xhtml"!==f.namespaceURI)throw Error("Failed to construct '"+c+"': The constructed element's namespace must be the HTML namespace.");if(f.hasAttributes())throw Error("Failed to construct '"+
c+"': The constructed element must not have any attributes.");if(null!==f.firstChild)throw Error("Failed to construct '"+c+"': The constructed element must not have any children.");if(null!==f.parentNode)throw Error("Failed to construct '"+c+"': The constructed element must not have a parent node.");if(f.ownerDocument!==b)throw Error("Failed to construct '"+c+"': The constructed element's owner document is incorrect.");if(f.localName!==c)throw Error("Failed to construct '"+c+"': The constructed element's local name is incorrect.");
return f}catch(g){return Vc(g),b=null===d?Yb.call(b,c):Zb.call(b,d,c),Object.setPrototypeOf(b,HTMLUnknownElement.prototype),b.__CE_state=2,b.__CE_definition=void 0,Rc(a,b),b}b=null===d?Yb.call(b,c):Zb.call(b,d,c);Rc(a,b);return b}
function Vc(a){var b=a.message,c=a.sourceURL||a.fileName||"",d=a.line||a.lineNumber||0,e=a.column||a.columnNumber||0,f=void 0;void 0===ErrorEvent.prototype.initErrorEvent?f=new ErrorEvent("error",{cancelable:!0,message:b,filename:c,lineno:d,colno:e,error:a}):(f=document.createEvent("ErrorEvent"),f.initErrorEvent("error",!1,!0,b,c,d),f.preventDefault=function(){Object.defineProperty(this,"defaultPrevented",{configurable:!0,get:function(){return!0}})});void 0===f.error&&Object.defineProperty(f,"error",
{configurable:!0,enumerable:!0,get:function(){return a}});window.dispatchEvent(f);f.defaultPrevented||console.error(a)};function Yc(){var a=this;this.s=void 0;this.eb=new Promise(function(b){a.hc=b})}Yc.prototype.resolve=function(a){if(this.s)throw Error("Already resolved.");this.s=a;this.hc(a)};function Zc(a){var b=document;this.P=void 0;this.H=a;this.ga=b;Uc(this.H,this.ga);"loading"===this.ga.readyState&&(this.P=new MutationObserver(this.Tb.bind(this)),this.P.observe(this.ga,{childList:!0,subtree:!0}))}Zc.prototype.disconnect=function(){this.P&&this.P.disconnect()};Zc.prototype.Tb=function(a){var b=this.ga.readyState;"interactive"!==b&&"complete"!==b||this.disconnect();for(b=0;b<a.length;b++)for(var c=a[b].addedNodes,d=0;d<c.length;d++)Uc(this.H,c[d])};function I(a){this.ia=new Map;this.ja=new Map;this.Ra=new Map;this.ya=!1;this.Ga=new Map;this.ha=function(b){return b()};this.N=!1;this.na=[];this.H=a;this.Ta=a.Uc?new Zc(a):void 0}n=I.prototype;n.Jc=function(a,b){var c=this;if(!(b instanceof Function))throw new TypeError("Custom element constructor getters must be functions.");$c(this,a);this.ia.set(a,b);this.na.push(a);this.N||(this.N=!0,this.ha(function(){return c.Va()}))};
n.define=function(a,b){var c=this;if(!(b instanceof Function))throw new TypeError("Custom element constructors must be functions.");$c(this,a);ad(this,a,b);this.na.push(a);this.N||(this.N=!0,this.ha(function(){return c.Va()}))};function $c(a,b){if(!Gc(b))throw new SyntaxError("The element name '"+b+"' is not valid.");if(Wc(a,b))throw Error("A custom element with name '"+(b+"' has already been defined."));if(a.ya)throw Error("A custom element is already being defined.");}
function ad(a,b,c){a.ya=!0;var d;try{var e=c.prototype;if(!(e instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var f=function(p){var w=e[p];if(void 0!==w&&!(w instanceof Function))throw Error("The '"+p+"' callback must be a function.");return w};var g=f("connectedCallback");var h=f("disconnectedCallback");var k=f("adoptedCallback");var m=(d=f("attributeChangedCallback"))&&c.observedAttributes||[]}catch(p){throw p;}finally{a.ya=!1}c={localName:b,
constructorFunction:c,connectedCallback:g,disconnectedCallback:h,adoptedCallback:k,attributeChangedCallback:d,observedAttributes:m,constructionStack:[]};a.ja.set(b,c);a.Ra.set(c.constructorFunction,c);return c}n.upgrade=function(a){Uc(this.H,a)};
n.Va=function(){var a=this;if(!1!==this.N){this.N=!1;for(var b=[],c=this.na,d=new Map,e=0;e<c.length;e++)d.set(c[e],[]);Uc(this.H,document,{upgrade:function(k){if(void 0===k.__CE_state){var m=k.localName,p=d.get(m);p?p.push(k):a.ja.has(m)&&b.push(k)}}});for(e=0;e<b.length;e++)Tc(this.H,b[e]);for(e=0;e<c.length;e++){for(var f=c[e],g=d.get(f),h=0;h<g.length;h++)Tc(this.H,g[h]);(f=this.Ga.get(f))&&f.resolve(void 0)}c.length=0}};n.get=function(a){if(a=Wc(this,a))return a.constructorFunction};
n.whenDefined=function(a){if(!Gc(a))return Promise.reject(new SyntaxError("'"+a+"' is not a valid custom element name."));var b=this.Ga.get(a);if(b)return b.eb;b=new Yc;this.Ga.set(a,b);var c=this.ja.has(a)||this.ia.has(a);a=-1===this.na.indexOf(a);c&&a&&b.resolve(void 0);return b.eb};n.polyfillWrapFlushCallback=function(a){this.Ta&&this.Ta.disconnect();var b=this.ha;this.ha=function(c){return a(function(){return b(c)})}};
function Wc(a,b){var c=a.ja.get(b);if(c)return c;if(c=a.ia.get(b)){a.ia.delete(b);try{return ad(a,b,c())}catch(d){Vc(d)}}}window.CustomElementRegistry=I;I.prototype.define=I.prototype.define;I.prototype.upgrade=I.prototype.upgrade;I.prototype.get=I.prototype.get;I.prototype.whenDefined=I.prototype.whenDefined;I.prototype.polyfillDefineLazy=I.prototype.Jc;I.prototype.polyfillWrapFlushCallback=I.prototype.polyfillWrapFlushCallback;function bd(a,b,c){function d(e){return function(f){for(var g=[],h=0;h<arguments.length;++h)g[h-0]=arguments[h];h=[];for(var k=[],m=0;m<g.length;m++){var p=g[m];p instanceof Element&&B(p)&&k.push(p);if(p instanceof DocumentFragment)for(p=p.firstChild;p;p=p.nextSibling)h.push(p);else h.push(p)}e.apply(this,g);for(g=0;g<k.length;g++)H(a,k[g]);if(B(this))for(g=0;g<h.length;g++)k=h[g],k instanceof Element&&Sc(a,k)}}void 0!==c.prepend&&(b.prepend=d(c.prepend));void 0!==c.append&&(b.append=d(c.append))}
;function cd(a){Document.prototype.createElement=function(b){return Xc(a,this,b,null)};Document.prototype.importNode=function(b,c){b=$b.call(this,b,!!c);this.__CE_registry?Uc(a,b):Qc(a,b);return b};Document.prototype.createElementNS=function(b,c){return Xc(a,this,c,b)};bd(a,Document.prototype,{prepend:ac,append:bc})};function dd(a){function b(d){return function(e){for(var f=[],g=0;g<arguments.length;++g)f[g-0]=arguments[g];g=[];for(var h=[],k=0;k<f.length;k++){var m=f[k];m instanceof Element&&B(m)&&h.push(m);if(m instanceof DocumentFragment)for(m=m.firstChild;m;m=m.nextSibling)g.push(m);else g.push(m)}d.apply(this,f);for(f=0;f<h.length;f++)H(a,h[f]);if(B(this))for(f=0;f<g.length;f++)h=g[f],h instanceof Element&&Sc(a,h)}}var c=Element.prototype;void 0!==xc&&(c.before=b(xc));void 0!==yc&&(c.after=b(yc));void 0!==
zc&&(c.replaceWith=function(d){for(var e=[],f=0;f<arguments.length;++f)e[f-0]=arguments[f];f=[];for(var g=[],h=0;h<e.length;h++){var k=e[h];k instanceof Element&&B(k)&&g.push(k);if(k instanceof DocumentFragment)for(k=k.firstChild;k;k=k.nextSibling)f.push(k);else f.push(k)}h=B(this);zc.apply(this,e);for(e=0;e<g.length;e++)H(a,g[e]);if(h)for(H(a,this),e=0;e<f.length;e++)g=f[e],g instanceof Element&&Sc(a,g)});void 0!==Ac&&(c.remove=function(){var d=B(this);Ac.call(this);d&&H(a,this)})};function ed(a){function b(e,f){Object.defineProperty(e,"innerHTML",{enumerable:f.enumerable,configurable:!0,get:f.get,set:function(g){var h=this,k=void 0;B(this)&&(k=[],Nc(a,this,function(w){w!==h&&k.push(w)}));f.set.call(this,g);if(k)for(var m=0;m<k.length;m++){var p=k[m];1===p.__CE_state&&a.disconnectedCallback(p)}this.ownerDocument.__CE_registry?Uc(a,this):Qc(a,this);return g}})}function c(e,f){e.insertAdjacentElement=function(g,h){var k=B(h);g=f.call(this,g,h);k&&H(a,h);B(g)&&Sc(a,h);return g}}
function d(e,f){function g(h,k){for(var m=[];h!==k;h=h.nextSibling)m.push(h);for(k=0;k<m.length;k++)Uc(a,m[k])}e.insertAdjacentHTML=function(h,k){h=h.toLowerCase();if("beforebegin"===h){var m=this.previousSibling;f.call(this,h,k);g(m||this.parentNode.firstChild,this)}else if("afterbegin"===h)m=this.firstChild,f.call(this,h,k),g(this.firstChild,m);else if("beforeend"===h)m=this.lastChild,f.call(this,h,k),g(m||this.firstChild,null);else if("afterend"===h)m=this.nextSibling,f.call(this,h,k),g(this.nextSibling,
m);else throw new SyntaxError("The value provided ("+String(h)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");}}kc&&(Element.prototype.attachShadow=function(e){e=kc.call(this,e);if(a.O&&!e.__CE_patched){e.__CE_patched=!0;for(var f=0;f<a.Y.length;f++)a.Y[f](e)}return this.__CE_shadowRoot=e});lc&&lc.get?b(Element.prototype,lc):Cc&&Cc.get?b(HTMLElement.prototype,Cc):Pc(a,function(e){b(e,{enumerable:!0,configurable:!0,get:function(){return ec.call(this,!0).innerHTML},set:function(f){var g=
"template"===this.localName,h=g?this.content:this,k=Zb.call(document,this.namespaceURI,this.localName);for(k.innerHTML=f;0<h.childNodes.length;)hc.call(h,h.childNodes[0]);for(f=g?k.content:k;0<f.childNodes.length;)fc.call(h,f.childNodes[0])}})});Element.prototype.setAttribute=function(e,f){if(1!==this.__CE_state)return oc.call(this,e,f);var g=mc.call(this,e);oc.call(this,e,f);f=mc.call(this,e);a.attributeChangedCallback(this,e,g,f,null)};Element.prototype.setAttributeNS=function(e,f,g){if(1!==this.__CE_state)return rc.call(this,
e,f,g);var h=qc.call(this,e,f);rc.call(this,e,f,g);g=qc.call(this,e,f);a.attributeChangedCallback(this,f,h,g,e)};Element.prototype.removeAttribute=function(e){if(1!==this.__CE_state)return pc.call(this,e);var f=mc.call(this,e);pc.call(this,e);null!==f&&a.attributeChangedCallback(this,e,f,null,null)};Element.prototype.removeAttributeNS=function(e,f){if(1!==this.__CE_state)return sc.call(this,e,f);var g=qc.call(this,e,f);sc.call(this,e,f);var h=qc.call(this,e,f);g!==h&&a.attributeChangedCallback(this,
f,g,h,e)};Dc?c(HTMLElement.prototype,Dc):tc&&c(Element.prototype,tc);Ec?d(HTMLElement.prototype,Ec):uc&&d(Element.prototype,uc);bd(a,Element.prototype,{prepend:vc,append:wc});dd(a)};var fd={};function gd(a){function b(){var c=this.constructor;var d=document.__CE_registry.Ra.get(c);if(!d)throw Error("Failed to construct a custom element: The constructor was not registered with `customElements`.");var e=d.constructionStack;if(0===e.length)return e=Yb.call(document,d.localName),Object.setPrototypeOf(e,c.prototype),e.__CE_state=1,e.__CE_definition=d,Rc(a,e),e;var f=e.length-1,g=e[f];if(g===fd)throw Error("Failed to construct '"+d.localName+"': This element was already constructed.");e[f]=
fd;Object.setPrototypeOf(g,c.prototype);Rc(a,g);return g}b.prototype=Bc.prototype;Object.defineProperty(HTMLElement.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:b});window.HTMLElement=b};function hd(a){function b(c,d){Object.defineProperty(c,"textContent",{enumerable:d.enumerable,configurable:!0,get:d.get,set:function(e){if(this.nodeType===Node.TEXT_NODE)d.set.call(this,e);else{var f=void 0;if(this.firstChild){var g=this.childNodes,h=g.length;if(0<h&&B(this)){f=Array(h);for(var k=0;k<h;k++)f[k]=g[k]}}d.set.call(this,e);if(f)for(e=0;e<f.length;e++)H(a,f[e])}}})}Node.prototype.insertBefore=function(c,d){if(c instanceof DocumentFragment){var e=Ic(c);c=gc.call(this,c,d);if(B(this))for(d=
0;d<e.length;d++)Sc(a,e[d]);return c}e=c instanceof Element&&B(c);d=gc.call(this,c,d);e&&H(a,c);B(this)&&Sc(a,c);return d};Node.prototype.appendChild=function(c){if(c instanceof DocumentFragment){var d=Ic(c);c=fc.call(this,c);if(B(this))for(var e=0;e<d.length;e++)Sc(a,d[e]);return c}d=c instanceof Element&&B(c);e=fc.call(this,c);d&&H(a,c);B(this)&&Sc(a,c);return e};Node.prototype.cloneNode=function(c){c=ec.call(this,!!c);this.ownerDocument.__CE_registry?Uc(a,c):Qc(a,c);return c};Node.prototype.removeChild=
function(c){var d=c instanceof Element&&B(c),e=hc.call(this,c);d&&H(a,c);return e};Node.prototype.replaceChild=function(c,d){if(c instanceof DocumentFragment){var e=Ic(c);c=ic.call(this,c,d);if(B(this))for(H(a,d),d=0;d<e.length;d++)Sc(a,e[d]);return c}e=c instanceof Element&&B(c);var f=ic.call(this,c,d),g=B(this);g&&H(a,d);e&&H(a,c);g&&Sc(a,c);return f};jc&&jc.get?b(Node.prototype,jc):Oc(a,function(c){b(c,{enumerable:!0,configurable:!0,get:function(){for(var d=[],e=this.firstChild;e;e=e.nextSibling)e.nodeType!==
Node.COMMENT_NODE&&d.push(e.textContent);return d.join("")},set:function(d){for(;this.firstChild;)hc.call(this,this.firstChild);null!=d&&""!==d&&fc.call(this,document.createTextNode(d))}})})};var Mc=window.customElements;function id(){var a=new Lc;gd(a);cd(a);bd(a,DocumentFragment.prototype,{prepend:cc,append:dc});hd(a);ed(a);a=new I(a);document.__CE_registry=a;Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:a})}Mc&&!Mc.forcePolyfill&&"function"==typeof Mc.define&&"function"==typeof Mc.get||id();window.__CE_installPolyfill=id;/*

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
*/
function jd(){}jd.prototype.toJSON=function(){return{}};function J(a){a.__shady||(a.__shady=new jd);return a.__shady}function K(a){return a&&a.__shady};var L=window.ShadyDOM||{};L.Bc=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var kd=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");L.m=!!(kd&&kd.configurable&&kd.get);L.inUse=L.force||!L.Bc;L.v=L.noPatch||!1;L.ba=L.preferPerformance;L.Ka="on-demand"===L.v;var ld=navigator.userAgent.match("Trident");L.vb=ld;function md(a){return(a=K(a))&&void 0!==a.firstChild}function N(a){return a instanceof ShadowRoot}function nd(a){return(a=(a=K(a))&&a.root)&&a.Xa()}
var od=Element.prototype,pd=od.matches||od.matchesSelector||od.mozMatchesSelector||od.msMatchesSelector||od.oMatchesSelector||od.webkitMatchesSelector,qd=document.createTextNode(""),rd=0,sd=[];(new MutationObserver(function(){for(;sd.length;)try{sd.shift()()}catch(a){throw qd.textContent=rd++,a;}})).observe(qd,{characterData:!0});function td(a){sd.push(a);qd.textContent=rd++}
var ud=document.contains?function(a,b){return a.__shady_native_contains(b)}:function(a,b){return a===b||a.documentElement&&a.documentElement.__shady_native_contains(b)};function vd(a,b){for(;b;){if(b==a)return!0;b=b.__shady_parentNode}return!1}
function wd(a){for(var b=a.length-1;0<=b;b--){var c=a[b],d=c.getAttribute("id")||c.getAttribute("name");d&&"length"!==d&&isNaN(d)&&(a[d]=c)}a.item=function(e){return a[e]};a.namedItem=function(e){if("length"!==e&&isNaN(e)&&a[e])return a[e];for(var f=ca(a),g=f.next();!g.done;g=f.next())if(g=g.value,(g.getAttribute("id")||g.getAttribute("name"))==e)return g;return null};return a}function xd(a){var b=[];for(a=a.__shady_native_firstChild;a;a=a.__shady_native_nextSibling)b.push(a);return b}
function yd(a){var b=[];for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)b.push(a);return b}function zd(a,b,c){c.configurable=!0;if(c.value)a[b]=c.value;else try{Object.defineProperty(a,b,c)}catch(d){}}function O(a,b,c,d){c=void 0===c?"":c;for(var e in b)d&&0<=d.indexOf(e)||zd(a,c+e,b[e])}function Ad(a,b){for(var c in b)c in a&&zd(a,c,b[c])}function P(a){var b={};Object.getOwnPropertyNames(a).forEach(function(c){b[c]=Object.getOwnPropertyDescriptor(a,c)});return b}
function Bd(a,b){for(var c=Object.getOwnPropertyNames(b),d=0,e;d<c.length;d++)e=c[d],a[e]=b[e]}function Cd(a){return a instanceof Node?a:document.createTextNode(""+a)}function Dd(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];if(1===b.length)return Cd(b[0]);c=document.createDocumentFragment();b=ca(b);for(var d=b.next();!d.done;d=b.next())c.appendChild(Cd(d.value));return c};var Ed=[],Fd;function Gd(a){Fd||(Fd=!0,td(Id));Ed.push(a)}function Id(){Fd=!1;for(var a=!!Ed.length;Ed.length;)Ed.shift()();return a}Id.list=Ed;function Jd(){this.la=!1;this.addedNodes=[];this.removedNodes=[];this.qa=new Set}function Kd(a){a.la||(a.la=!0,td(function(){a.flush()}))}Jd.prototype.flush=function(){if(this.la){this.la=!1;var a=this.takeRecords();a.length&&this.qa.forEach(function(b){b(a)})}};Jd.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var a=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];this.addedNodes=[];this.removedNodes=[];return a}return[]};
function Ld(a,b){var c=J(a);c.aa||(c.aa=new Jd);c.aa.qa.add(b);var d=c.aa;return{Db:b,P:d,$b:a,takeRecords:function(){return d.takeRecords()}}}function Md(a){var b=a&&a.P;b&&(b.qa.delete(a.Db),b.qa.size||(J(a.$b).aa=null))}
function Nd(a,b){var c=b.getRootNode();return a.map(function(d){var e=c===d.target.getRootNode();if(e&&d.addedNodes){if(e=[].slice.call(d.addedNodes).filter(function(f){return c===f.getRootNode()}),e.length)return d=Object.create(d),Object.defineProperty(d,"addedNodes",{value:e,configurable:!0}),d}else if(e)return d}).filter(function(d){return d})};var Od=/[&\u00A0"]/g,Pd=/[&\u00A0<>]/g;function Qd(a){switch(a){case "&":return"&";case "<":return"<";case ">":return">";case '"':return""";case "\u00a0":return" "}}function Rd(a){for(var b={},c=0;c<a.length;c++)b[a[c]]=!0;return b}var Sd=Rd("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),Td=Rd("style script xmp iframe noembed noframes plaintext noscript".split(" "));
function Ud(a,b){"template"===a.localName&&(a=a.content);for(var c="",d=b?b(a):a.childNodes,e=0,f=d.length,g=void 0;e<f&&(g=d[e]);e++){a:{var h=g;var k=a,m=b;switch(h.nodeType){case Node.ELEMENT_NODE:k=h.localName;for(var p="<"+k,w=h.attributes,F=0,aa;aa=w[F];F++)p+=" "+aa.name+'="'+aa.value.replace(Od,Qd)+'"';p+=">";h=Sd[k]?p:p+Ud(h,m)+"</"+k+">";break a;case Node.TEXT_NODE:h=h.data;h=k&&Td[k.localName]?h:h.replace(Pd,Qd);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 Vd=L.m,Wd={querySelector:function(a){return this.__shady_native_querySelector(a)},querySelectorAll:function(a){return this.__shady_native_querySelectorAll(a)}},Xd={};function Yd(a){Xd[a]=function(b){return b["__shady_native_"+a]}}function Zd(a,b){O(a,b,"__shady_native_");for(var c in b)Yd(c)}function R(a,b){b=void 0===b?[]:b;for(var c=0;c<b.length;c++){var d=b[c],e=Object.getOwnPropertyDescriptor(a,d);e&&(Object.defineProperty(a,"__shady_native_"+d,e),e.value?Wd[d]||(Wd[d]=e.value):Yd(d))}}
var S=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),T=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),$d=document.implementation.createHTMLDocument("inert");function ae(a){for(var b;b=a.__shady_native_firstChild;)a.__shady_native_removeChild(b)}var be=["firstElementChild","lastElementChild","children","childElementCount"],ce=["querySelector","querySelectorAll","append","prepend","replaceChildren"];
function de(){var a=["dispatchEvent","addEventListener","removeEventListener"];window.EventTarget?R(window.EventTarget.prototype,a):(R(Node.prototype,a),R(Window.prototype,a));Vd?R(Node.prototype,"parentNode firstChild lastChild previousSibling nextSibling childNodes parentElement textContent".split(" ")):Zd(Node.prototype,{parentNode:{get:function(){S.currentNode=this;return S.parentNode()}},firstChild:{get:function(){S.currentNode=this;return S.firstChild()}},lastChild:{get:function(){S.currentNode=
this;return S.lastChild()}},previousSibling:{get:function(){S.currentNode=this;return S.previousSibling()}},nextSibling:{get:function(){S.currentNode=this;return S.nextSibling()}},childNodes:{get:function(){var b=[];S.currentNode=this;for(var c=S.firstChild();c;)b.push(c),c=S.nextSibling();return b}},parentElement:{get:function(){T.currentNode=this;return T.parentNode()}},textContent:{get:function(){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(var b=document.createTreeWalker(this,
NodeFilter.SHOW_TEXT,null,!1),c="",d;d=b.nextNode();)c+=d.nodeValue;return c;default:return this.nodeValue}},set:function(b){if("undefined"===typeof b||null===b)b="";switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:ae(this);(0<b.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_native_insertBefore(document.createTextNode(b),void 0);break;default:this.nodeValue=b}}}});R(Node.prototype,"appendChild insertBefore removeChild replaceChild cloneNode contains".split(" "));
R(HTMLElement.prototype,["parentElement","contains"]);a={firstElementChild:{get:function(){T.currentNode=this;return T.firstChild()}},lastElementChild:{get:function(){T.currentNode=this;return T.lastChild()}},children:{get:function(){var b=[];T.currentNode=this;for(var c=T.firstChild();c;)b.push(c),c=T.nextSibling();return wd(b)}},childElementCount:{get:function(){return this.children?this.children.length:0}}};Vd?(R(Element.prototype,be),R(Element.prototype,["previousElementSibling","nextElementSibling",
"innerHTML","className"]),R(HTMLElement.prototype,["children","innerHTML","className"])):(Zd(Element.prototype,a),Zd(Element.prototype,{previousElementSibling:{get:function(){T.currentNode=this;return T.previousSibling()}},nextElementSibling:{get:function(){T.currentNode=this;return T.nextSibling()}},innerHTML:{get:function(){return Ud(this,xd)},set:function(b){var c="template"===this.localName?this.content:this;ae(c);var d=this.localName||"div";d=this.namespaceURI&&this.namespaceURI!==$d.namespaceURI?
$d.createElementNS(this.namespaceURI,d):$d.createElement(d);d.innerHTML=b;for(b="template"===this.localName?d.content:d;d=b.__shady_native_firstChild;)c.__shady_native_insertBefore(d,void 0)}},className:{get:function(){return this.getAttribute("class")||""},set:function(b){this.setAttribute("class",b)}}}));R(Element.prototype,"setAttribute getAttribute hasAttribute removeAttribute focus blur".split(" "));R(Element.prototype,ce);R(HTMLElement.prototype,["focus","blur"]);window.HTMLTemplateElement&&
R(window.HTMLTemplateElement.prototype,["innerHTML"]);Vd?R(DocumentFragment.prototype,be):Zd(DocumentFragment.prototype,a);R(DocumentFragment.prototype,ce);Vd?(R(Document.prototype,be),R(Document.prototype,["activeElement"])):Zd(Document.prototype,a);R(Document.prototype,["importNode","getElementById"]);R(Document.prototype,ce)};var ee=P({get childNodes(){return this.__shady_childNodes},get firstChild(){return this.__shady_firstChild},get lastChild(){return this.__shady_lastChild},get childElementCount(){return this.__shady_childElementCount},get children(){return this.__shady_children},get firstElementChild(){return this.__shady_firstElementChild},get lastElementChild(){return this.__shady_lastElementChild},get shadowRoot(){return this.__shady_shadowRoot}}),fe=P({get textContent(){return this.__shady_textContent},set textContent(a){this.__shady_textContent=
a},get innerHTML(){return this.__shady_innerHTML},set innerHTML(a){return this.__shady_innerHTML=a}}),ge=P({get parentElement(){return this.__shady_parentElement},get parentNode(){return this.__shady_parentNode},get nextSibling(){return this.__shady_nextSibling},get previousSibling(){return this.__shady_previousSibling},get nextElementSibling(){return this.__shady_nextElementSibling},get previousElementSibling(){return this.__shady_previousElementSibling},get className(){return this.__shady_className},
set className(a){return this.__shady_className=a}});function he(a){for(var b in a){var c=a[b];c&&(c.enumerable=!1)}}he(ee);he(fe);he(ge);var ie=L.m||!0===L.v,je=ie?function(){}:function(a){var b=J(a);b.yb||(b.yb=!0,Ad(a,ge))},ke=ie?function(){}:function(a){var b=J(a);b.xb||(b.xb=!0,Ad(a,ee),window.customElements&&window.customElements.polyfillWrapFlushCallback&&!L.v||Ad(a,fe))};var le="__eventWrappers"+Date.now(),me=function(){var a=Object.getOwnPropertyDescriptor(Event.prototype,"composed");return a?function(b){return a.get.call(b)}:null}(),ne=function(){function a(){}var b=!1,c={get capture(){b=!0;return!1}};window.addEventListener("test",a,c);window.removeEventListener("test",a,c);return b}();function oe(a){if(a&&"object"===typeof a){var b=!!a.capture;var c=!!a.once;var d=!!a.passive;var e=a.L}else b=!!a,d=c=!1;return{rb:e,capture:b,once:c,passive:d,ob:ne?a:b}}
var pe={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},qe={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function re(a){return a instanceof Node?a.__shady_getRootNode():a}
function se(a,b){var c=[],d=a;for(a=re(a);d;)c.push(d),d=d.__shady_assignedSlot?d.__shady_assignedSlot:d.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&d.host&&(b||d!==a)?d.host:d.__shady_parentNode;c[c.length-1]===document&&c.push(window);return c}function te(a){a.__composedPath||(a.__composedPath=se(a.target,!0));return a.__composedPath}function ue(a,b){if(!N)return a;a=se(a,!0);for(var c=0,d,e=void 0,f,g=void 0;c<b.length;c++)if(d=b[c],f=re(d),f!==e&&(g=a.indexOf(f),e=f),!N(f)||-1<g)return d}
function ve(a){function b(c,d){c=new a(c,d);c.__composed=d&&!!d.composed;return c}b.__proto__=a;b.prototype=a.prototype;return b}var we={focus:!0,blur:!0};function xe(a){return a.__target!==a.target||a.__relatedTarget!==a.relatedTarget}function ye(a,b,c){if(c=b.__handlers&&b.__handlers[a.type]&&b.__handlers[a.type][c])for(var d=0,e;(e=c[d])&&(!xe(a)||a.target!==a.relatedTarget)&&(e.call(b,a),!a.__immediatePropagationStopped);d++);}
function ze(a){var b=a.composedPath(),c=b.map(function(k){return ue(k,b)}),d=a.bubbles;Object.defineProperty(a,"currentTarget",{configurable:!0,enumerable:!0,get:function(){return g}});var e=Event.CAPTURING_PHASE;Object.defineProperty(a,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return e}});for(var f=b.length-1;0<=f;f--){var g=b[f];e=g===c[f]?Event.AT_TARGET:Event.CAPTURING_PHASE;ye(a,g,"capture");if(a.ua)return}for(f=0;f<b.length;f++){g=b[f];var h=g===c[f];if(h||d)if(e=h?Event.AT_TARGET:
Event.BUBBLING_PHASE,ye(a,g,"bubble"),a.ua)return}e=0;g=null}function Ae(a,b,c,d,e,f){for(var g=0;g<a.length;g++){var h=a[g],k=h.type,m=h.capture,p=h.once,w=h.passive;if(b===h.node&&c===k&&d===m&&e===p&&f===w)return g}return-1}function Be(a){Id();return!L.ba&&this instanceof Node&&!ud(document,this)?(a.__target||Ce(a,this),ze(a)):this.__shady_native_dispatchEvent(a)}
function De(a,b,c){var d=oe(c),e=d.capture,f=d.once,g=d.passive,h=d.rb;d=d.ob;if(b){var k=typeof b;if("function"===k||"object"===k)if("object"!==k||b.handleEvent&&"function"===typeof b.handleEvent){if(qe[a])return this.__shady_native_addEventListener(a,b,d);var m=h||this;if(h=b[le]){if(-1<Ae(h,m,a,e,f,g))return}else b[le]=[];h=function(p){f&&this.__shady_removeEventListener(a,b,c);p.__target||Ce(p);if(m!==this){var w=Object.getOwnPropertyDescriptor(p,"currentTarget");Object.defineProperty(p,"currentTarget",
{get:function(){return m},configurable:!0});var F=Object.getOwnPropertyDescriptor(p,"eventPhase");Object.defineProperty(p,"eventPhase",{configurable:!0,enumerable:!0,get:function(){return e?Event.CAPTURING_PHASE:Event.BUBBLING_PHASE}})}p.__previousCurrentTarget=p.currentTarget;if(!N(m)&&"slot"!==m.localName||-1!=p.composedPath().indexOf(m))if(p.composed||-1<p.composedPath().indexOf(m))if(xe(p)&&p.target===p.relatedTarget)p.eventPhase===Event.BUBBLING_PHASE&&p.stopImmediatePropagation();else if(p.eventPhase===
Event.CAPTURING_PHASE||p.bubbles||p.target===m||m instanceof Window){var aa="function"===k?b.call(m,p):b.handleEvent&&b.handleEvent(p);m!==this&&(w?(Object.defineProperty(p,"currentTarget",w),w=null):delete p.currentTarget,F?(Object.defineProperty(p,"eventPhase",F),F=null):delete p.eventPhase);return aa}};b[le].push({node:m,type:a,capture:e,once:f,passive:g,Xc:h});this.__handlers=this.__handlers||{};this.__handlers[a]=this.__handlers[a]||{capture:[],bubble:[]};this.__handlers[a][e?"capture":"bubble"].push(h);
we[a]||this.__shady_native_addEventListener(a,h,d)}}}
function Ee(a,b,c){if(b){var d=oe(c);c=d.capture;var e=d.once,f=d.passive,g=d.rb;d=d.ob;if(qe[a])return this.__shady_native_removeEventListener(a,b,d);var h=g||this;g=void 0;var k=null;try{k=b[le]}catch(m){}k&&(e=Ae(k,h,a,c,e,f),-1<e&&(g=k.splice(e,1)[0].Xc,k.length||(b[le]=void 0)));this.__shady_native_removeEventListener(a,g||b,d);g&&this.__handlers&&this.__handlers[a]&&(a=this.__handlers[a][c?"capture":"bubble"],b=a.indexOf(g),-1<b&&a.splice(b,1))}}
function Fe(){for(var a in we)window.__shady_native_addEventListener(a,function(b){b.__target||(Ce(b),ze(b))},!0)}
var Ge=P({get composed(){void 0===this.__composed&&(me?this.__composed="focusin"===this.type||"focusout"===this.type||me(this):!1!==this.isTrusted&&(this.__composed=pe[this.type]));return this.__composed||!1},composedPath:function(){this.__composedPath||(this.__composedPath=se(this.__target,this.composed));return this.__composedPath},get target(){return ue(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){if(!this.__relatedTarget)return null;this.__relatedTargetComposedPath||
(this.__relatedTargetComposedPath=se(this.__relatedTarget,!0));return ue(this.currentTarget||this.__previousCurrentTarget,this.__relatedTargetComposedPath)},stopPropagation:function(){Event.prototype.stopPropagation.call(this);this.ua=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this);this.ua=this.__immediatePropagationStopped=!0}});
function Ce(a,b){b=void 0===b?a.target:b;a.__target=b;a.__relatedTarget=a.relatedTarget;if(L.m){b=Object.getPrototypeOf(a);if(!b.hasOwnProperty("__shady_patchedProto")){var c=Object.create(b);c.__shady_sourceProto=b;O(c,Ge);b.__shady_patchedProto=c}a.__proto__=b.__shady_patchedProto}else O(a,Ge)}var He=ve(Event),Ie=ve(CustomEvent),Je=ve(MouseEvent);
function Ke(){if(!me&&Object.getOwnPropertyDescriptor(Event.prototype,"isTrusted")){var a=function(){var b=new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0});this.__shady_dispatchEvent(b)};Element.prototype.click?Element.prototype.click=a:HTMLElement.prototype.click&&(HTMLElement.prototype.click=a)}}
var Le=Object.getOwnPropertyNames(Element.prototype).filter(function(a){return"on"===a.substring(0,2)}),Me=Object.getOwnPropertyNames(HTMLElement.prototype).filter(function(a){return"on"===a.substring(0,2)});function Ne(a){return{set:function(b){var c=J(this),d=a.substring(2);c.K||(c.K={});c.K[a]&&this.removeEventListener(d,c.K[a]);this.__shady_addEventListener(d,b);c.K[a]=b},get:function(){var b=K(this);return b&&b.K&&b.K[a]},configurable:!0}};function Oe(a,b){return{index:a,ca:[],pa:b}}
function Pe(a,b,c,d){var e=0,f=0,g=0,h=0,k=Math.min(b-e,d-f);if(0==e&&0==f)a:{for(g=0;g<k;g++)if(a[g]!==c[g])break a;g=k}if(b==a.length&&d==c.length){h=a.length;for(var m=c.length,p=0;p<k-g&&Qe(a[--h],c[--m]);)p++;h=p}e+=g;f+=g;b-=h;d-=h;if(0==b-e&&0==d-f)return[];if(e==b){for(b=Oe(e,0);f<d;)b.ca.push(c[f++]);return[b]}if(f==d)return[Oe(e,b-e)];k=e;g=f;d=d-g+1;h=b-k+1;b=Array(d);for(m=0;m<d;m++)b[m]=Array(h),b[m][0]=m;for(m=0;m<h;m++)b[0][m]=m;for(m=1;m<d;m++)for(p=1;p<h;p++)if(a[k+p-1]===c[g+m-1])b[m][p]=
b[m-1][p-1];else{var w=b[m-1][p]+1,F=b[m][p-1]+1;b[m][p]=w<F?w:F}k=b.length-1;g=b[0].length-1;d=b[k][g];for(a=[];0<k||0<g;)0==k?(a.push(2),g--):0==g?(a.push(3),k--):(h=b[k-1][g-1],m=b[k-1][g],p=b[k][g-1],w=m<p?m<h?m:h:p<h?p:h,w==h?(h==d?a.push(0):(a.push(1),d=h),k--,g--):w==m?(a.push(3),k--,d=m):(a.push(2),g--,d=p));a.reverse();b=void 0;k=[];for(g=0;g<a.length;g++)switch(a[g]){case 0:b&&(k.push(b),b=void 0);e++;f++;break;case 1:b||(b=Oe(e,0));b.pa++;e++;b.ca.push(c[f]);f++;break;case 2:b||(b=Oe(e,
0));b.pa++;e++;break;case 3:b||(b=Oe(e,0)),b.ca.push(c[f]),f++}b&&k.push(b);return k}function Qe(a,b){return a===b};var Re=P({dispatchEvent:Be,addEventListener:De,removeEventListener:Ee});var Se=null;function Te(){Se||(Se=window.ShadyCSS&&window.ShadyCSS.ScopingShim);return Se||null}function Ue(a,b,c){var d=Te();return d&&"class"===b?(d.setElementClass(a,c),!0):!1}function Ve(a,b){var c=Te();c&&c.unscopeNode(a,b)}function We(a,b){var c=Te();if(!c)return!0;if(a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){c=!0;for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)c=c&&We(a,b);return c}return a.nodeType!==Node.ELEMENT_NODE?!0:c.currentScopeForNode(a)===b}
function Xe(a){if(a.nodeType!==Node.ELEMENT_NODE)return"";var b=Te();return b?b.currentScopeForNode(a):""}function Ye(a,b){if(a)for(a.nodeType===Node.ELEMENT_NODE&&b(a),a=a.__shady_firstChild;a;a=a.__shady_nextSibling)a.nodeType===Node.ELEMENT_NODE&&Ye(a,b)};var Ze=window.document,$e=L.ba,af=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),bf=af&&af.get;function cf(a){for(var b;b=a.__shady_firstChild;)a.__shady_removeChild(b)}function df(a){var b=K(a);if(b&&void 0!==b.sa)for(b=a.__shady_firstChild;b;b=b.__shady_nextSibling)df(b);if(a=K(a))a.sa=void 0}function ef(a){var b=a;if(a&&"slot"===a.localName){var c=K(a);(c=c&&c.U)&&(b=c.length?c[0]:ef(a.__shady_nextSibling))}return b}
function ff(a,b,c){if(a=(a=K(a))&&a.aa){if(b)if(b.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(var d=0,e=b.childNodes.length;d<e;d++)a.addedNodes.push(b.childNodes[d]);else a.addedNodes.push(b);c&&a.removedNodes.push(c);Kd(a)}}
var kf=P({get parentNode(){var a=K(this);a=a&&a.parentNode;return void 0!==a?a:this.__shady_native_parentNode},get firstChild(){var a=K(this);a=a&&a.firstChild;return void 0!==a?a:this.__shady_native_firstChild},get lastChild(){var a=K(this);a=a&&a.lastChild;return void 0!==a?a:this.__shady_native_lastChild},get nextSibling(){var a=K(this);a=a&&a.nextSibling;return void 0!==a?a:this.__shady_native_nextSibling},get previousSibling(){var a=K(this);a=a&&a.previousSibling;return void 0!==a?a:this.__shady_native_previousSibling},
get childNodes(){if(md(this)){var a=K(this);if(!a.childNodes){a.childNodes=[];for(var b=this.__shady_firstChild;b;b=b.__shady_nextSibling)a.childNodes.push(b)}var c=a.childNodes}else c=this.__shady_native_childNodes;c.item=function(d){return c[d]};return c},get parentElement(){var a=K(this);(a=a&&a.parentNode)&&a.nodeType!==Node.ELEMENT_NODE&&(a=null);return void 0!==a?a:this.__shady_native_parentElement},get isConnected(){if(bf&&bf.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;
var a=this.ownerDocument;if(null===a||ud(a,this))return!0;for(a=this;a&&!(a instanceof Document);)a=a.__shady_parentNode||(N(a)?a.host:void 0);return!!(a&&a instanceof Document)},get textContent(){if(md(this)){for(var a=[],b=this.__shady_firstChild;b;b=b.__shady_nextSibling)b.nodeType!==Node.COMMENT_NODE&&a.push(b.__shady_textContent);return a.join("")}return this.__shady_native_textContent},set textContent(a){if("undefined"===typeof a||null===a)a="";switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:if(!md(this)&&
L.m){var b=this.__shady_firstChild;(b!=this.__shady_lastChild||b&&b.nodeType!=Node.TEXT_NODE)&&cf(this);this.__shady_native_textContent=a}else cf(this),(0<a.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_insertBefore(document.createTextNode(a));break;default:this.nodeValue=a}},insertBefore:function(a,b){if(this.ownerDocument!==Ze&&a.ownerDocument!==Ze)return this.__shady_native_insertBefore(a,b),a;if(a===this)throw Error("Failed to execute 'appendChild' on 'Node': The new child element contains the parent.");
if(b){var c=K(b);c=c&&c.parentNode;if(void 0!==c&&c!==this||void 0===c&&b.__shady_native_parentNode!==this)throw Error("Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.");}if(b===a)return a;ff(this,a);var d=[],e=(c=gf(this))?c.host.localName:Xe(this),f=a.__shady_parentNode;if(f){var g=Xe(a);var h=!!c||!gf(a)||$e&&void 0!==this.__noInsertionPoint;f.__shady_removeChild(a,h)}f=!0;var k=(!$e||void 0===a.__noInsertionPoint&&void 0===
this.__noInsertionPoint)&&!We(a,e),m=c&&!a.__noInsertionPoint&&(!$e||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE);if(m||k)k&&(g=g||Xe(a)),Ye(a,function(p){m&&"slot"===p.localName&&d.push(p);if(k){var w=g;Te()&&(w&&Ve(p,w),(w=Te())&&w.scopeNode(p,e))}});d.length&&(c.Pa(d),c.u());md(this)&&(hf(a,this,b),h=K(this),h.root?(f=!1,nd(this)&&h.root.u()):c&&"slot"===this.localName&&(f=!1,c.u()));f?(c=N(this)?this.host:this,b?(b=ef(b),c.__shady_native_insertBefore(a,b)):c.__shady_native_appendChild(a)):a.ownerDocument!==
this.ownerDocument&&this.ownerDocument.adoptNode(a);return a},appendChild:function(a){if(this!=a||!N(a))return this.__shady_insertBefore(a)},removeChild:function(a,b){b=void 0===b?!1:b;if(this.ownerDocument!==Ze)return this.__shady_native_removeChild(a);if(a.__shady_parentNode!==this)throw Error("The node to be removed is not a child of this node: "+a);ff(this,null,a);var c=gf(a),d=c&&c.cc(a),e=K(this);if(md(this)&&(jf(a,this),nd(this))){e.root.u();var f=!0}if(Te()&&!b&&c&&a.nodeType!==Node.TEXT_NODE){var g=
Xe(a);Ye(a,function(h){Ve(h,g)})}df(a);c&&((b="slot"===this.localName)&&(f=!0),(d||b)&&c.u());f||(f=N(this)?this.host:this,(!e.root&&"slot"!==a.localName||f===a.__shady_native_parentNode)&&f.__shady_native_removeChild(a));return a},replaceChild:function(a,b){this.__shady_insertBefore(a,b);this.__shady_removeChild(b);return a},cloneNode:function(a){if("template"==this.localName)return this.__shady_native_cloneNode(a);var b=this.__shady_native_cloneNode(!1);if(a&&b.nodeType!==Node.ATTRIBUTE_NODE){a=
this.__shady_firstChild;for(var c;a;a=a.__shady_nextSibling)c=a.__shady_cloneNode(!0),b.__shady_appendChild(c)}return b},getRootNode:function(a){if(this&&this.nodeType){var b=J(this),c=b.sa;void 0===c&&(N(this)?(c=this,b.sa=c):(c=(c=this.__shady_parentNode)?c.__shady_getRootNode(a):this,document.documentElement.__shady_native_contains(this)&&(b.sa=c)));return c}},contains:function(a){return vd(this,a)}});var lf=P({get assignedSlot(){var a=this.__shady_parentNode;(a=a&&a.__shady_shadowRoot)&&a.ka();return(a=K(this))&&a.assignedSlot||null}});function mf(a,b,c){var d=[];nf(a,b,c,d);return d}function nf(a,b,c,d){for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling){var e;if(e=a.nodeType===Node.ELEMENT_NODE){e=a;var f=b,g=c,h=d,k=f(e);k&&h.push(e);g&&g(k)?e=k:(nf(e,f,g,h),e=void 0)}if(e)break}}
var of={get firstElementChild(){var a=K(this);if(a&&void 0!==a.firstChild){for(a=this.__shady_firstChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_nextSibling;return a}return this.__shady_native_firstElementChild},get lastElementChild(){var a=K(this);if(a&&void 0!==a.lastChild){for(a=this.__shady_lastChild;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_previousSibling;return a}return this.__shady_native_lastElementChild},get children(){return md(this)?wd(Array.prototype.filter.call(yd(this),
function(a){return a.nodeType===Node.ELEMENT_NODE})):this.__shady_native_children},get childElementCount(){var a=this.__shady_children;return a?a.length:0}},pf=P((of.append=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];this.__shady_insertBefore(Dd.apply(null,y(b)),null)},of.prepend=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];this.__shady_insertBefore(Dd.apply(null,y(b)),this.__shady_firstChild)},of.replaceChildren=function(a){for(var b=[],c=0;c<
arguments.length;++c)b[c-0]=arguments[c];for(;null!==(c=this.__shady_firstChild);)this.__shady_removeChild(c);this.__shady_insertBefore(Dd.apply(null,y(b)),null)},of)),qf=P({querySelector:function(a){return mf(this,function(b){return pd.call(b,a)},function(b){return!!b})[0]||null},querySelectorAll:function(a,b){if(b){b=Array.prototype.slice.call(this.__shady_native_querySelectorAll(a));var c=this.__shady_getRootNode();return wd(b.filter(function(d){return d.__shady_getRootNode()==c}))}return wd(mf(this,
function(d){return pd.call(d,a)}))}}),rf=L.ba&&!L.v?Bd({},pf):pf;Bd(pf,qf);var sf=P({after:function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];c=this.__shady_parentNode;if(null!==c){var d=this.__shady_nextSibling;c.__shady_insertBefore(Dd.apply(null,y(b)),d)}},before:function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];c=this.__shady_parentNode;null!==c&&c.__shady_insertBefore(Dd.apply(null,y(b)),this)},remove:function(){var a=this.__shady_parentNode;null!==a&&a.__shady_removeChild(this)},replaceWith:function(a){for(var b=[],c=0;c<
arguments.length;++c)b[c-0]=arguments[c];c=this.__shady_parentNode;if(null!==c){var d=this.__shady_nextSibling;c.__shady_removeChild(this);c.__shady_insertBefore(Dd.apply(null,y(b)),d)}}});var tf=window.document;function uf(a,b){"slot"===b?(a=a.__shady_parentNode,nd(a)&&K(a).root.u()):"slot"===a.localName&&"name"===b&&(b=gf(a))&&(b.rc(a),b.u())}
var vf=P({get previousElementSibling(){var a=K(this);if(a&&void 0!==a.previousSibling){for(a=this.__shady_previousSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_previousSibling;return a}return this.__shady_native_previousElementSibling},get nextElementSibling(){var a=K(this);if(a&&void 0!==a.nextSibling){for(a=this.__shady_nextSibling;a&&a.nodeType!==Node.ELEMENT_NODE;)a=a.__shady_nextSibling;return a}return this.__shady_native_nextElementSibling},get slot(){return this.getAttribute("slot")},
set slot(a){this.__shady_setAttribute("slot",a)},get className(){return this.getAttribute("class")||""},set className(a){this.__shady_setAttribute("class",a)},setAttribute:function(a,b){this.ownerDocument!==tf?this.__shady_native_setAttribute(a,b):Ue(this,a,b)||(this.__shady_native_setAttribute(a,b),uf(this,a))},removeAttribute:function(a){this.ownerDocument!==tf?this.__shady_native_removeAttribute(a):Ue(this,a,"")?""===this.getAttribute(a)&&this.__shady_native_removeAttribute(a):(this.__shady_native_removeAttribute(a),
uf(this,a))}});L.ba||Le.forEach(function(a){vf[a]=Ne(a)});
var zf=P({attachShadow:function(a){if(!this)throw Error("Must provide a host.");if(!a)throw Error("Not enough arguments.");if(a.shadyUpgradeFragment&&!L.vb){var b=a.shadyUpgradeFragment;b.__proto__=ShadowRoot.prototype;b.Za(this,a);wf(b,b);a=b.__noInsertionPoint?null:b.querySelectorAll("slot");b.__noInsertionPoint=void 0;a&&a.length&&(b.Pa(a),b.u());b.host.__shady_native_appendChild(b)}else b=new xf(yf,this,a);return this.__CE_shadowRoot=b},get shadowRoot(){var a=K(this);return a&&a.Lc||null}});
Bd(vf,zf);var Af=document.implementation.createHTMLDocument("inert"),Bf=P({get innerHTML(){return md(this)?Ud("template"===this.localName?this.content:this,yd):this.__shady_native_innerHTML},set innerHTML(a){if("template"===this.localName)this.__shady_native_innerHTML=a;else{cf(this);var b=this.localName||"div";b=this.namespaceURI&&this.namespaceURI!==Af.namespaceURI?Af.createElementNS(this.namespaceURI,b):Af.createElement(b);for(L.m?b.__shady_native_innerHTML=a:b.innerHTML=a;a=b.__shady_firstChild;)this.__shady_insertBefore(a)}}});var Cf=P({blur:function(){var a=K(this);(a=(a=a&&a.root)&&a.activeElement)?a.__shady_blur():this.__shady_native_blur()}});L.ba||Me.forEach(function(a){Cf[a]=Ne(a)});var Df=P({assignedNodes:function(a){if("slot"===this.localName){var b=this.__shady_getRootNode();b&&N(b)&&b.ka();return(b=K(this))?(a&&a.flatten?b.U:b.assignedNodes)||[]:[]}},addEventListener:function(a,b,c){if("slot"!==this.localName||"slotchange"===a)De.call(this,a,b,c);else{"object"!==typeof c&&(c={capture:!!c});var d=this.__shady_parentNode;if(!d)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");c.L=this;d.__shady_addEventListener(a,b,c)}},removeEventListener:function(a,
b,c){if("slot"!==this.localName||"slotchange"===a)Ee.call(this,a,b,c);else{"object"!==typeof c&&(c={capture:!!c});var d=this.__shady_parentNode;if(!d)throw Error("ShadyDOM cannot attach event to slot unless it has a `parentNode`");c.L=this;d.__shady_removeEventListener(a,b,c)}}});var Ef=P({getElementById:function(a){return""===a?null:mf(this,function(b){return b.id==a},function(b){return!!b})[0]||null}});var Ff=P({get activeElement(){var a=L.m?document.__shady_native_activeElement:document.activeElement;if(!a||!a.nodeType)return null;var b=!!N(this);if(!(this===document||b&&this.host!==a&&this.host.__shady_native_contains(a)))return null;for(b=gf(a);b&&b!==this;)a=b.host,b=gf(a);return this===document?b?null:a:b===this?a:null}});var Gf=window.document,Hf=P({importNode:function(a,b){if(a.ownerDocument!==Gf||"template"===a.localName)return this.__shady_native_importNode(a,b);var c=this.__shady_native_importNode(a,!1);if(b)for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)b=this.__shady_importNode(a,!0),c.__shady_appendChild(b);return c}});var If=P({dispatchEvent:Be,addEventListener:De.bind(window),removeEventListener:Ee.bind(window)});var Jf={};Object.getOwnPropertyDescriptor(HTMLElement.prototype,"parentElement")&&(Jf.parentElement=kf.parentElement);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"contains")&&(Jf.contains=kf.contains);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"children")&&(Jf.children=pf.children);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML")&&(Jf.innerHTML=Bf.innerHTML);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"className")&&(Jf.className=vf.className);
var Kf={EventTarget:[Re],Node:[kf,window.EventTarget?null:Re],Text:[lf],Comment:[lf],CDATASection:[lf],ProcessingInstruction:[lf],Element:[vf,pf,sf,lf,!L.m||"innerHTML"in Element.prototype?Bf:null,window.HTMLSlotElement?null:Df],HTMLElement:[Cf,Jf],HTMLSlotElement:[Df],DocumentFragment:[rf,Ef],Document:[Hf,rf,Ef,Ff],Window:[If],CharacterData:[sf]},Lf=L.m?null:["innerHTML","textContent"];function Mf(a,b,c,d){b.forEach(function(e){return a&&e&&O(a,e,c,d)})}
function Nf(a){var b=a?null:Lf,c;for(c in Kf)Mf(window[c]&&window[c].prototype,Kf[c],a,b)}["Text","Comment","CDATASection","ProcessingInstruction"].forEach(function(a){var b=window[a],c=Object.create(b.prototype);c.__shady_protoIsPatched=!0;Mf(c,Kf.EventTarget);Mf(c,Kf.Node);Kf[a]&&Mf(c,Kf[a]);b.prototype.__shady_patchedProto=c});function Of(a){a.__shady_protoIsPatched=!0;Mf(a,Kf.EventTarget);Mf(a,Kf.Node);Mf(a,Kf.Element);Mf(a,Kf.HTMLElement);Mf(a,Kf.HTMLSlotElement);return a};var Pf=L.Ka,Qf=L.m;function Rf(a,b){if(Pf&&!a.__shady_protoIsPatched&&!N(a)){var c=Object.getPrototypeOf(a),d=c.hasOwnProperty("__shady_patchedProto")&&c.__shady_patchedProto;d||(d=Object.create(c),Of(d),c.__shady_patchedProto=d);Object.setPrototypeOf(a,d)}Qf||(1===b?je(a):2===b&&ke(a))}
function Sf(a,b,c,d){Rf(a,1);d=d||null;var e=J(a),f=d?J(d):null;e.previousSibling=d?f.previousSibling:b.__shady_lastChild;if(f=K(e.previousSibling))f.nextSibling=a;if(f=K(e.nextSibling=d))f.previousSibling=a;e.parentNode=b;d?d===c.firstChild&&(c.firstChild=a):(c.lastChild=a,c.firstChild||(c.firstChild=a));c.childNodes=null}
function hf(a,b,c){Rf(b,2);var d=J(b);void 0!==d.firstChild&&(d.childNodes=null);if(a.nodeType===Node.DOCUMENT_FRAGMENT_NODE)for(a=a.__shady_native_firstChild;a;a=a.__shady_native_nextSibling)Sf(a,b,d,c);else Sf(a,b,d,c)}
function jf(a,b){var c=J(a);b=J(b);a===b.firstChild&&(b.firstChild=c.nextSibling);a===b.lastChild&&(b.lastChild=c.previousSibling);a=c.previousSibling;var d=c.nextSibling;a&&(J(a).nextSibling=d);d&&(J(d).previousSibling=a);c.parentNode=c.previousSibling=c.nextSibling=void 0;void 0!==b.childNodes&&(b.childNodes=null)}
function wf(a,b){var c=J(a);if(b||void 0===c.firstChild){c.childNodes=null;var d=c.firstChild=a.__shady_native_firstChild;c.lastChild=a.__shady_native_lastChild;Rf(a,2);c=d;for(d=void 0;c;c=c.__shady_native_nextSibling){var e=J(c);e.parentNode=b||a;e.nextSibling=c.__shady_native_nextSibling;e.previousSibling=d||null;d=c;Rf(c,1)}}};var Tf=P({addEventListener:function(a,b,c){"object"!==typeof c&&(c={capture:!!c});c.L=c.L||this;this.host.__shady_addEventListener(a,b,c)},removeEventListener:function(a,b,c){"object"!==typeof c&&(c={capture:!!c});c.L=c.L||this;this.host.__shady_removeEventListener(a,b,c)}});function Uf(a,b){O(a,Tf,b);O(a,Ff,b);O(a,Bf,b);O(a,pf,b);L.v&&!b?(O(a,kf,b),O(a,Ef,b)):L.m||(O(a,ge),O(a,ee),O(a,fe))};var yf={},Vf=L.deferConnectionCallbacks&&"loading"===document.readyState,Wf;function Xf(a){var b=[];do b.unshift(a);while(a=a.__shady_parentNode);return b}function xf(a,b,c){if(a!==yf)throw new TypeError("Illegal constructor");this.g=null;this.Za(b,c)}n=xf.prototype;
n.Za=function(a,b){this.host=a;this.mode=b&&b.mode;wf(this.host);a=J(this.host);a.root=this;a.Lc="closed"!==this.mode?this:null;a=J(this);a.firstChild=a.lastChild=a.parentNode=a.nextSibling=a.previousSibling=null;if(L.preferPerformance)for(;a=this.host.__shady_native_firstChild;)this.host.__shady_native_removeChild(a);else this.u()};n.u=function(){var a=this;this.R||(this.R=!0,Gd(function(){return a.ka()}))};n.Rb=function(){for(var a,b=this;b;)b.R&&(a=b),b=b.Qb();return a};
n.Qb=function(){var a=this.host.__shady_getRootNode();if(N(a)){var b=K(this.host);if(b&&0<b.fa)return a}};n.ka=function(){var a=this.R&&this.Rb();a&&a._renderSelf()};n.Mb=function(){!this.Ya&&this.R&&this.ka()};
n._renderSelf=function(){var a=Vf;Vf=!0;this.R=!1;this.g&&(this.Hb(),this.Fb());if(!L.preferPerformance&&!this.Ya)for(var b=this.host.__shady_firstChild;b;b=b.__shady_nextSibling){var c=K(b);b.__shady_native_parentNode!==this.host||"slot"!==b.localName&&c.assignedSlot||this.host.__shady_native_removeChild(b)}this.Ya=!0;Vf=a;Wf&&Wf()};
n.Hb=function(){this.oa();for(var a=0,b;a<this.g.length;a++)b=this.g[a],this.Eb(b);for(a=this.host.__shady_firstChild;a;a=a.__shady_nextSibling)this.Sa(a);for(a=0;a<this.g.length;a++){b=this.g[a];var c=K(b);if(!c.assignedNodes.length)for(var d=b.__shady_firstChild;d;d=d.__shady_nextSibling)this.Sa(d,b);(d=(d=K(b.__shady_parentNode))&&d.root)&&(d.Xa()||d.R)&&d._renderSelf();this.Oa(c.U,c.assignedNodes);if(d=c.cb){for(var e=0;e<d.length;e++)K(d[e]).Ca=null;c.cb=null;d.length>c.assignedNodes.length&&
(c.Ha=!0)}c.Ha&&(c.Ha=!1,this.Ua(b))}};n.Sa=function(a,b){var c=J(a),d=c.Ca;c.Ca=null;b||(b=(b=this.i[a.__shady_slot||"__catchall"])&&b[0]);b?(J(b).assignedNodes.push(a),c.assignedSlot=b):c.assignedSlot=void 0;d!==c.assignedSlot&&c.assignedSlot&&(J(c.assignedSlot).Ha=!0)};n.Eb=function(a){var b=K(a),c=b.assignedNodes;b.assignedNodes=[];b.U=[];if(b.cb=c)for(b=0;b<c.length;b++){var d=K(c[b]);d.Ca=d.assignedSlot;d.assignedSlot===a&&(d.assignedSlot=null)}};
n.Oa=function(a,b){for(var c=0,d=void 0;c<b.length&&(d=b[c]);c++)if("slot"==d.localName){var e=K(d).assignedNodes;e&&e.length&&this.Oa(a,e)}else a.push(b[c])};n.Ua=function(a){a.__shady_native_dispatchEvent(new Event("slotchange"));a=K(a);a.assignedSlot&&this.Ua(a.assignedSlot)};n.Fb=function(){for(var a=this.g,b=[],c=0;c<a.length;c++){var d=a[c].__shady_parentNode,e=K(d);e&&e.root||!(0>b.indexOf(d))||b.push(d)}for(a=0;a<b.length;a++)c=b[a],this.qc(c===this?this.host:c,this.Gb(c))};
n.Gb=function(a){var b=[];for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)if(this.Ub(a))for(var c=K(a).U,d=0;d<c.length;d++)b.push(c[d]);else b.push(a);return b};n.Ub=function(a){return"slot"==a.localName};
n.qc=function(a,b){for(var c=xd(a),d=Pe(b,b.length,c,c.length),e=0,f=0,g=void 0;e<d.length&&(g=d[e]);e++){for(var h=0,k=void 0;h<g.ca.length&&(k=g.ca[h]);h++)k.__shady_native_parentNode===a&&a.__shady_native_removeChild(k),c.splice(g.index+f,1);f-=g.pa}e=0;for(f=void 0;e<d.length&&(f=d[e]);e++)for(g=c[f.index],h=f.index;h<f.index+f.pa;h++)k=b[h],a.__shady_native_insertBefore(k,g),c.splice(h,0,k)};n.Lb=function(){this.I=this.I||[];this.g=this.g||[];this.i=this.i||{}};
n.Pa=function(a){this.Lb();this.I.push.apply(this.I,y(a))};n.oa=function(){this.I&&this.I.length&&(this.Yb(this.I),this.I=[])};n.Yb=function(a){for(var b,c=0;c<a.length;c++){var d=a[c];wf(d);var e=d.__shady_parentNode;wf(e);e=K(e);e.fa=(e.fa||0)+1;e=this.ab(d);this.i[e]?(b=b||{},b[e]=!0,this.i[e].push(d)):this.i[e]=[d];this.g.push(d)}if(b)for(var f in b)this.i[f]=this.gb(this.i[f])};n.ab=function(a){var b=a.name||a.getAttribute("name")||"__catchall";return a.zb=b};
n.gb=function(a){return a.sort(function(b,c){b=Xf(b);for(var d=Xf(c),e=0;e<b.length;e++){c=b[e];var f=d[e];if(c!==f)return b=yd(c.__shady_parentNode),b.indexOf(c)-b.indexOf(f)}})};n.cc=function(a){if(this.g){this.oa();var b=this.i,c;for(c in b)for(var d=b[c],e=0;e<d.length;e++){var f=d[e];if(vd(a,f)){d.splice(e,1);var g=this.g.indexOf(f);0<=g&&(this.g.splice(g,1),(g=K(f.__shady_parentNode))&&g.fa&&g.fa--);e--;this.dc(f);g=!0}}return g}};
n.rc=function(a){if(this.g){this.oa();var b=a.zb,c=this.ab(a);if(c!==b){b=this.i[b];var d=b.indexOf(a);0<=d&&b.splice(d,1);b=this.i[c]||(this.i[c]=[]);b.push(a);1<b.length&&(this.i[c]=this.gb(b))}}};n.dc=function(a){a=K(a);var b=a.U;if(b)for(var c=0;c<b.length;c++){var d=b[c],e=d.__shady_native_parentNode;e&&e.__shady_native_removeChild(d)}a.U=[];a.assignedNodes=[]};n.Xa=function(){this.oa();return!(!this.g||!this.g.length)};
(function(a){a.__proto__=DocumentFragment.prototype;Uf(a,"__shady_");Uf(a);Object.defineProperties(a,{nodeType:{value:Node.DOCUMENT_FRAGMENT_NODE,configurable:!0},nodeName:{value:"#document-fragment",configurable:!0},nodeValue:{value:null,configurable:!0}});["localName","namespaceURI","prefix"].forEach(function(b){Object.defineProperty(a,b,{value:void 0,configurable:!0})});["ownerDocument","baseURI","isConnected"].forEach(function(b){Object.defineProperty(a,b,{get:function(){return this.host[b]},
configurable:!0})})})(xf.prototype);
if(window.customElements&&window.customElements.define&&L.inUse&&!L.preferPerformance){var Yf=new Map;Wf=function(){var a=[];Yf.forEach(function(d,e){a.push([e,d])});Yf.clear();for(var b=0;b<a.length;b++){var c=a[b][0];a[b][1]?c.__shadydom_connectedCallback():c.__shadydom_disconnectedCallback()}};Vf&&document.addEventListener("readystatechange",function(){Vf=!1;Wf()},{once:!0});var Zf=function(a,b,c){var d=0,e="__isConnected"+d++;if(b||c)a.prototype.connectedCallback=a.prototype.__shadydom_connectedCallback=
function(){Vf?Yf.set(this,!0):this[e]||(this[e]=!0,b&&b.call(this))},a.prototype.disconnectedCallback=a.prototype.__shadydom_disconnectedCallback=function(){Vf?this.isConnected||Yf.set(this,!1):this[e]&&(this[e]=!1,c&&c.call(this))};return a},$f=window.customElements.define,ag=function(a,b){var c=b.prototype.connectedCallback,d=b.prototype.disconnectedCallback;$f.call(window.customElements,a,Zf(b,c,d));b.prototype.connectedCallback=c;b.prototype.disconnectedCallback=d};window.customElements.define=
ag;Object.defineProperty(window.CustomElementRegistry.prototype,"define",{value:ag,configurable:!0})}function gf(a){a=a.__shady_getRootNode();if(N(a))return a};function bg(a){this.node=a}n=bg.prototype;n.addEventListener=function(a,b,c){return this.node.__shady_addEventListener(a,b,c)};n.removeEventListener=function(a,b,c){return this.node.__shady_removeEventListener(a,b,c)};n.appendChild=function(a){return this.node.__shady_appendChild(a)};n.insertBefore=function(a,b){return this.node.__shady_insertBefore(a,b)};n.removeChild=function(a){return this.node.__shady_removeChild(a)};n.replaceChild=function(a,b){return this.node.__shady_replaceChild(a,b)};
n.cloneNode=function(a){return this.node.__shady_cloneNode(a)};n.getRootNode=function(a){return this.node.__shady_getRootNode(a)};n.contains=function(a){return this.node.__shady_contains(a)};n.dispatchEvent=function(a){return this.node.__shady_dispatchEvent(a)};n.setAttribute=function(a,b){this.node.__shady_setAttribute(a,b)};n.getAttribute=function(a){return this.node.__shady_native_getAttribute(a)};n.hasAttribute=function(a){return this.node.__shady_native_hasAttribute(a)};n.removeAttribute=function(a){this.node.__shady_removeAttribute(a)};
n.attachShadow=function(a){return this.node.__shady_attachShadow(a)};n.focus=function(){this.node.__shady_native_focus()};n.blur=function(){this.node.__shady_blur()};n.importNode=function(a,b){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_importNode(a,b)};n.getElementById=function(a){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_getElementById(a)};n.querySelector=function(a){return this.node.__shady_querySelector(a)};
n.querySelectorAll=function(a,b){return this.node.__shady_querySelectorAll(a,b)};n.assignedNodes=function(a){if("slot"===this.node.localName)return this.node.__shady_assignedNodes(a)};n.append=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return this.node.__shady_append.apply(this.node,y(b))};n.prepend=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return this.node.__shady_prepend.apply(this.node,y(b))};
n.after=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return this.node.__shady_after.apply(this.node,y(b))};n.before=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return this.node.__shady_before.apply(this.node,y(b))};n.remove=function(){return this.node.__shady_remove()};n.replaceWith=function(a){for(var b=[],c=0;c<arguments.length;++c)b[c-0]=arguments[c];return this.node.__shady_replaceWith.apply(this.node,y(b))};
fa.Object.defineProperties(bg.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){if(N(this.node)||this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_activeElement}},_activeElement:{configurable:!0,enumerable:!0,get:function(){return this.activeElement}},host:{configurable:!0,enumerable:!0,get:function(){if(N(this.node))return this.node.host}},parentNode:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_parentNode}},firstChild:{configurable:!0,
enumerable:!0,get:function(){return this.node.__shady_firstChild}},lastChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_lastChild}},nextSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_nextSibling}},previousSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_previousSibling}},childNodes:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_childNodes}},parentElement:{configurable:!0,enumerable:!0,
get:function(){return this.node.__shady_parentElement}},firstElementChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_firstElementChild}},lastElementChild:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_lastElementChild}},nextElementSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_nextElementSibling}},previousElementSibling:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_previousElementSibling}},
children:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_children}},childElementCount:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_childElementCount}},shadowRoot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_shadowRoot}},assignedSlot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_assignedSlot}},isConnected:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_isConnected}},innerHTML:{configurable:!0,
enumerable:!0,get:function(){return this.node.__shady_innerHTML},set:function(a){this.node.__shady_innerHTML=a}},textContent:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_textContent},set:function(a){this.node.__shady_textContent=a}},slot:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_slot},set:function(a){this.node.__shady_slot=a}},className:{configurable:!0,enumerable:!0,get:function(){return this.node.__shady_className},set:function(a){return this.node.__shady_className=
a}}});function cg(a){Object.defineProperty(bg.prototype,a,{get:function(){return this.node["__shady_"+a]},set:function(b){this.node["__shady_"+a]=b},configurable:!0})}Le.forEach(function(a){return cg(a)});Me.forEach(function(a){return cg(a)});var dg=new WeakMap;function eg(a){if(N(a)||a instanceof bg)return a;var b=dg.get(a);b||(b=new bg(a),dg.set(a,b));return b};if(L.inUse){var fg=L.m?function(a){return a}:function(a){ke(a);je(a);return a},ShadyDOM={inUse:L.inUse,patch:fg,isShadyRoot:N,enqueue:Gd,flush:Id,flushInitial:function(a){a.Mb()},settings:L,filterMutations:Nd,observeChildren:Ld,unobserveChildren:Md,deferConnectionCallbacks:L.deferConnectionCallbacks,preferPerformance:L.preferPerformance,handlesDynamicScoping:!0,wrap:L.v?eg:fg,wrapIfNeeded:!0===L.v?eg:function(a){return a},Wrapper:bg,composedPath:te,noPatch:L.v,patchOnDemand:L.Ka,nativeMethods:Wd,
nativeTree:Xd,patchElementProto:Of};window.ShadyDOM=ShadyDOM;de();Nf("__shady_");Object.defineProperty(document,"_activeElement",Ff.activeElement);O(Window.prototype,If,"__shady_");L.v?L.Ka&&O(Element.prototype,zf):(Nf(),Ke());Fe();window.Event=He;window.CustomEvent=Ie;window.MouseEvent=Je;window.ShadowRoot=xf};/*

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
*/
function gg(){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 hg(a){var b=a=a.replace(ig,"").replace(jg,""),c=new gg;c.start=0;c.end=b.length;for(var d=c,e=0,f=b.length;e<f;e++)if("{"===b[e]){d.rules||(d.rules=[]);var g=d,h=g.rules[g.rules.length-1]||null;d=new gg;d.start=e+1;d.parent=g;d.previous=h;g.rules.push(d)}else"}"===b[e]&&(d.end=e+1,d=d.parent||c);return kg(c,a)}
function kg(a,b){var c=b.substring(a.start,a.end-1);a.parsedCssText=a.cssText=c.trim();a.parent&&(c=b.substring(a.previous?a.previous.end:a.parent.start,a.start-1),c=_expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(c),c=c.replace(lg," "),c=c.substring(c.lastIndexOf(";")+1),c=a.parsedSelector=a.selector=c.trim(),a.atRule=0===c.indexOf("@"),a.atRule?0===c.indexOf("@media")?a.type=4:c.match(mg)&&(a.type=7,a.keyframesName=a.selector.split(lg).pop()):a.type=0===c.indexOf("--")?
1E3:1);if(c=a.rules)for(var d=0,e=c.length,f=void 0;d<e&&(f=c[d]);d++)kg(f,b);return a}function _expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(a){return a.replace(/\\([0-9a-f]{1,6})\s/gi,function(b,c){b=c;for(c=6-b.length;c--;)b="0"+b;return"\\"+b})}
function ng(a,b,c){c=void 0===c?"":c;var d="";if(a.cssText||a.rules){var e=a.rules;if(e&&!_hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(e))for(var f=0,g=e.length,h=void 0;f<g&&(h=e[f]);f++)d=ng(h,b,d);else b?b=a.cssText:(b=a.cssText,b=b.replace(og,"").replace(pg,""),b=b.replace(qg,"").replace(rg,"")),(d=b.trim())&&(d="  "+d+"\n")}d&&(a.selector&&(c+=a.selector+" {\n"),c+=d,a.selector&&(c+="}\n\n"));return c}
function _hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(a){a=a[0];return!!a&&!!a.selector&&0===a.selector.indexOf("--")}var ig=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,jg=/@import[^;]*;/gim,og=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,pg=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,qg=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,rg=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,mg=/^@[^\s]*keyframes/,lg=/\s+/g;var U=!(window.ShadyDOM&&window.ShadyDOM.inUse),sg;function tg(a){sg=a&&a.shimcssproperties?!1:U||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))}var ug;window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(ug=window.ShadyCSS.cssBuild);var vg=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);
window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?sg=window.ShadyCSS.nativeCss:window.ShadyCSS?(tg(window.ShadyCSS),window.ShadyCSS=void 0):tg(window.WebComponents&&window.WebComponents.flags);var W=sg;var wg=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,xg=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,yg=/(--[\w-]+)\s*([:,;)]|$)/gi,Cg=/(animation\s*:)|(animation-name\s*:)/,Dg=/@media\s(.*)/,Eg=/\{[^}]*\}/g;var Fg=new Set;function Gg(a,b){if(!a)return"";"string"===typeof a&&(a=hg(a));b&&Hg(a,b);return ng(a,W)}function Ig(a){!a.__cssRules&&a.textContent&&(a.__cssRules=hg(a.textContent));return a.__cssRules||null}function Jg(a){return!!a.parent&&7===a.parent.type}function Hg(a,b,c,d){if(a){var e=!1,f=a.type;if(d&&4===f){var g=a.selector.match(Dg);g&&(window.matchMedia(g[1]).matches||(e=!0))}1===f?b(a):c&&7===f?c(a):1E3===f&&(e=!0);if((a=a.rules)&&!e)for(e=0,f=a.length,g=void 0;e<f&&(g=a[e]);e++)Hg(g,b,c,d)}}
function Kg(a,b,c,d){var e=document.createElement("style");b&&e.setAttribute("scope",b);e.textContent=a;Lg(e,c,d);return e}var Mg=null;function Ng(a){a=document.createComment(" Shady DOM styles for "+a+" ");var b=document.head;b.insertBefore(a,(Mg?Mg.nextSibling:null)||b.firstChild);return Mg=a}function Lg(a,b,c){b=b||document.head;b.insertBefore(a,c&&c.nextSibling||b.firstChild);Mg?a.compareDocumentPosition(Mg)===Node.DOCUMENT_POSITION_PRECEDING&&(Mg=a):Mg=a}
function Og(a,b){for(var c=0,d=a.length;b<d;b++)if("("===a[b])c++;else if(")"===a[b]&&0===--c)return b;return-1}function Pg(a,b){var c=a.indexOf("var(");if(-1===c)return b(a,"","","");var d=Og(a,c+3),e=a.substring(c+4,d);c=a.substring(0,c);a=Pg(a.substring(d+1),b);d=e.indexOf(",");return-1===d?b(c,e.trim(),"",a):b(c,e.substring(0,d).trim(),e.substring(d+1).trim(),a)}function Qg(a,b){U?a.setAttribute("class",b):window.ShadyDOM.nativeMethods.setAttribute.call(a,"class",b)}
var Rg=window.ShadyDOM&&window.ShadyDOM.wrap||function(a){return a};function Sg(a){var b=a.localName,c="";b?-1<b.indexOf("-")||(c=b,b=a.getAttribute&&a.getAttribute("is")||""):(b=a.is,c=a.extends);return{is:b,da:c}}function Tg(a){for(var b=[],c="",d=0;0<=d&&d<a.length;d++)if("("===a[d]){var e=Og(a,d);c+=a.slice(d,e+1);d=e}else","===a[d]?(b.push(c),c=""):c+=a[d];c&&b.push(c);return b}
function Ug(a){if(void 0!==ug)return ug;if(void 0===a.__cssBuild){var b=a.getAttribute("css-build");if(b)a.__cssBuild=b;else{a:{b="template"===a.localName?a.content.firstChild:a.firstChild;if(b instanceof Comment&&(b=b.textContent.trim().split(":"),"css-build"===b[0])){b=b[1];break a}b=""}if(""!==b){var c="template"===a.localName?a.content.firstChild:a.firstChild;c.parentNode.removeChild(c)}a.__cssBuild=b}}return a.__cssBuild||""}
function Vg(a){a=void 0===a?"":a;return""!==a&&W?U?"shadow"===a:"shady"===a:!1};function Wg(){}function Xg(a,b){var c=X;c.ma(a,function(d){c.element(d,b||"")})}n=Wg.prototype;n.ma=function(a,b){a.nodeType===Node.ELEMENT_NODE&&b(a);if(a="template"===a.localName?(a.content||a._content||a).childNodes:a.children||a.childNodes)for(var c=0;c<a.length;c++)this.ma(a[c],b)};
n.element=function(a,b,c){if(b)if(a.classList)c?(a.classList.remove("style-scope"),a.classList.remove(b)):(a.classList.add("style-scope"),a.classList.add(b));else if(a.getAttribute){var d=a.getAttribute("class");c?d&&(b=d.replace("style-scope","").replace(b,""),Qg(a,b)):Qg(a,(d?d+" ":"")+"style-scope "+b)}};function Yg(a,b,c){var d=X;d.ma(a,function(e){d.element(e,b,!0);d.element(e,c)})}function Zg(a,b){var c=X;c.ma(a,function(d){c.element(d,b||"",!0)})}
function $g(a,b,c,d,e){var f=X;e=void 0===e?"":e;""===e&&(U||"shady"===(void 0===d?"":d)?e=Gg(b,c):(a=Sg(a),e=ah(f,b,a.is,a.da,c)+"\n\n"));return e.trim()}function ah(a,b,c,d,e){var f=a.wa(c,d);c=a.Qa(c);return Gg(b,function(g){g.Ec||(a.hb(g,a.Ea,c,f),g.Ec=!0);e&&e(g,c,f)})}n.Qa=function(a){return a?"."+a:""};n.wa=function(a,b){return b?"[is="+a+"]":a};n.hb=function(a,b,c,d){a.selector=a.o=this.ib(a,b,c,d)};
n.ib=function(a,b,c,d){var e=Tg(a.selector);if(!Jg(a)){a=0;for(var f=e.length,g=void 0;a<f&&(g=e[a]);a++)e[a]=b.call(this,g,c,d)}return e.filter(function(h){return!!h}).join(",")};n.kb=function(a){return a.replace(bh,function(b,c,d){-1<d.indexOf("+")?d=d.replace(/\+/g,"___"):-1<d.indexOf("___")&&(d=d.replace(/___/g,"+"));return":"+c+"("+d+")"})};
n.bc=function(a){for(var b=[],c;c=a.match(ch);){var d=c.index,e=Og(a,d);if(-1===e)throw Error(c.input+" selector missing ')'");c=a.slice(d,e+1);a=a.replace(c,"\ue000");b.push(c)}return{La:a,matches:b}};n.fc=function(a,b){var c=a.split("\ue000");return b.reduce(function(d,e,f){return d+e+c[f+1]},c[0])};
n.Ea=function(a,b,c){var d=this,e=!1;a=a.trim();var f=bh.test(a);f&&(a=a.replace(bh,function(k,m,p){return":"+m+"("+p.replace(/\s/g,"")+")"}),a=this.kb(a));var g=ch.test(a);if(g){var h=this.bc(a);a=h.La;h=h.matches}a=a.replace(dh,":host $1");a=a.replace(eh,function(k,m,p){e||(k=d.nc(p,m,b,c),e=e||k.stop,m=k.vc,p=k.value);return m+p});g&&(a=this.fc(a,h));f&&(a=this.kb(a));return a=a.replace(fh,function(k,m,p,w){return'[dir="'+p+'"] '+m+w+", "+m+'[dir="'+p+'"]'+w})};
n.nc=function(a,b,c,d){var e=a.indexOf("::slotted");0<=a.indexOf(":host")?a=this.pc(a,d):0!==e&&(a=c?this.jb(a,c):a);c=!1;0<=e&&(b="",c=!0);if(c){var f=!0;c&&(a=a.replace(gh,function(g,h){return" > "+h}))}return{value:a,vc:b,stop:f}};n.jb=function(a,b){a=a.split(/(\[.+?\])/);for(var c=[],d=0;d<a.length;d++)if(1===d%2)c.push(a[d]);else{var e=a[d];if(""!==e||d!==a.length-1)e=e.split(":"),e[0]+=b,c.push(e.join(":"))}return c.join("")};
n.pc=function(a,b){var c=a.match(hh);return(c=c&&c[2].trim()||"")?c[0].match(ih)?a.replace(hh,function(d,e,f){return b+f}):c.split(ih)[0]===b?c:"should_not_match":a.replace(":host",b)};function jh(a){":root"===a.selector&&(a.selector="html")}n.oc=function(a){return a.match(":host")?"":a.match("::slotted")?this.Ea(a,":not(.style-scope)"):this.jb(a.trim(),":not(.style-scope)")};fa.Object.defineProperties(Wg.prototype,{ea:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});
var bh=/:(nth[-\w]+)\(([^)]+)\)/,eh=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,ih=/[[.:#*]/,dh=/^(::slotted)/,hh=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,gh=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,fh=/(.*):dir\((?:(ltr|rtl))\)(.*)/,ch=/:(?:matches|any|-(?:webkit|moz)-any)/,X=new Wg;function kh(a,b,c,d,e){this.B=a||null;this.placeholder=b||null;this.Ja=c||[];this.V=null;this.cssBuild=e||"";this.da=d||"";this.S=this.A=this.G=null}function lh(a){return a?a.__styleInfo:null}function mh(a,b){return a.__styleInfo=b}kh.prototype.Sb=function(){return this.B};kh.prototype._getStyleRules=kh.prototype.Sb;function nh(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var oh=/:host\s*>\s*/,ph=navigator.userAgent.match("Trident");function qh(){}function rh(a){var b={},c=[],d=0;Hg(a,function(f){sh(f);f.index=d++;f=f.j.cssText;for(var g;g=yg.exec(f);){var h=g[1];":"!==g[2]&&(b[h]=!0)}},function(f){c.push(f)});a.Vb=c;a=[];for(var e in b)a.push(e);return a}
function sh(a){if(!a.j){var b={},c={};th(a,c)&&(b.F=c,a.rules=null);b.cssText=a.parsedCssText.replace(Eg,"").replace(wg,"");a.j=b}}function th(a,b){var c=a.j;if(c){if(c.F)return Object.assign(b,c.F),!0}else{c=a.parsedCssText;for(var d;a=wg.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}}
function uh(a,b,c){b&&(b=0<=b.indexOf(";")?vh(a,b,c):Pg(b,function(d,e,f,g){if(!e)return d+g;(e=uh(a,c[e],c))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=uh(a,c[f]||f,c)||f;return d+(e||"")+g}));return b&&b.trim()||""}
function vh(a,b,c){b=b.split(";");for(var d=0,e,f;d<b.length;d++)if(e=b[d]){xg.lastIndex=0;if(f=xg.exec(e))e=uh(a,c[f[1]],c);else if(f=e.indexOf(":"),-1!==f){var g=e.substring(f);g=g.trim();g=uh(a,g,c)||g;e=e.substring(0,f)+g}b[d]=e&&e.lastIndexOf(";")===e.length-1?e.slice(0,-1):e||""}return b.join(";")}
function wh(a,b){var c={},d=[];Hg(a,function(e){e.j||sh(e);var f=e.o||e.parsedSelector;b&&e.j.F&&f&&nh.call(b,f)&&(th(e,c),e=e.index,f=parseInt(e/32,10),d[f]=(d[f]||0)|1<<e%32)},null,!0);return{F:c,key:d}}
function xh(a,b,c,d){b.j||sh(b);if(b.j.F){var e=Sg(a);a=e.is;e=e.da;e=a?X.wa(a,e):"html";var f=b.parsedSelector;var g=!!f.match(oh)||"html"===e&&-1<f.indexOf("html");var 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.o||(b.o=X.ib(b,X.Ea,X.Qa(a),e)),c=b.o||e),g&&"html"===e&&(c=b.o||b.Zc),d({La:c,Dc:h,Yc:g})}}
function yh(a,b,c){var d={},e={};Hg(b,function(f){xh(a,f,c,function(g){nh.call(a._element||a,g.La)&&(g.Dc?th(f,d):th(f,e))})},null,!0);return{Mc:e,Cc:d}}
function zh(a,b,c,d){var e=Sg(b),f=X.wa(e.is,e.da),g=new RegExp("(?:^|[^.#[:])"+(b.extends?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])"),h=lh(b);e=h.B;h=h.cssBuild;var k=a.Ib(b,e,d);return $g(b,e,function(m){var p="";m.j||sh(m);m.j.cssText&&(p=vh(a,m.j.cssText,c));m.cssText=p;if(!U&&!Jg(m)&&m.cssText){var w=p=m.cssText;null==m.mb&&(m.mb=Cg.test(p));if(m.mb)if(null==m.ra){m.ra=[];for(var F in k)w=k[F],w=w(p),p!==w&&(p=w,m.ra.push(F))}else{for(F=0;F<m.ra.length;++F)w=k[m.ra[F]],p=w(p);w=p}m.cssText=
w;a.lc(m,g,f,d)}},h)}qh.prototype.Ib=function(a,b,c){a=b.Vb;b={};if(!U&&a)for(var d=0,e=a[d];d<a.length;e=a[++d])this.kc(e,c),b[e.keyframesName]=this.Wb(e);return b};qh.prototype.Wb=function(a){return function(b){return b.replace(a.Fc,a.ub)}};qh.prototype.kc=function(a,b){a.Fc=new RegExp("\\b"+a.keyframesName+"(?!\\B|-)","g");a.ub=a.keyframesName+"-"+b;a.o=a.o||a.selector;a.selector=a.o.replace(a.keyframesName,a.ub)};
qh.prototype.lc=function(a,b,c,d){a.o=a.o||a.selector;d="."+d;for(var e=Tg(a.o),f=0,g=e.length,h=void 0;f<g&&(h=e[f]);f++)e[f]=h.match(b)?h.replace(c,d):d+" "+h;a.selector=e.join(",")};function Ah(a,b){var c=Bh,d=Ig(a);a.textContent=Gg(d,function(e){var f=e.cssText=e.parsedCssText;e.j&&e.j.cssText&&(f=f.replace(og,"").replace(pg,""),e.cssText=vh(c,f,b))})}fa.Object.defineProperties(qh.prototype,{wb:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var Bh=new qh;var Ch={},Dh=window.customElements;if(Dh&&!U&&!vg){var Eh=Dh.define;Dh.define=function(a,b,c){Ch[a]||(Ch[a]=Ng(a));Eh.call(Dh,a,b,c)}};function Fh(){this.cache={};this.Sc=100}Fh.prototype.tc=function(a,b,c){for(var d=0;d<c.length;d++){var e=c[d];if(a.F[e]!==b[e])return!1}return!0};Fh.prototype.store=function(a,b,c,d){var e=this.cache[a]||[];e.push({F:b,styleElement:c,A:d});e.length>this.Sc&&e.shift();this.cache[a]=e};Fh.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.tc(e,b,c))return e}};function Gh(){}var Hh=new RegExp(X.ea+"\\s*([^\\s]*)");function Ih(a){return(a=(a.classList&&a.classList.value?a.classList.value:a.getAttribute("class")||"").match(Hh))?a[1]:""}function Jh(a){var b=Rg(a).getRootNode();return b===a||b===a.ownerDocument?"":(a=b.host)?Sg(a).is:""}
function Kh(a){for(var b=0;b<a.length;b++){var c=a[b];if(c.target!==document.documentElement&&c.target!==document.head)for(var d=0;d<c.addedNodes.length;d++){var e=c.addedNodes[d];if(e.nodeType===Node.ELEMENT_NODE){var f=e.getRootNode(),g=Ih(e);if(g&&f===e.ownerDocument&&("style"!==e.localName&&"template"!==e.localName||""===Ug(e)))Zg(e,g);else if(f instanceof ShadowRoot)for(f=Jh(e),f!==g&&Yg(e,g,f),e=window.ShadyDOM.nativeMethods.querySelectorAll.call(e,":not(."+X.ea+")"),g=0;g<e.length;g++){f=e[g];
var h=Jh(f);h&&X.element(f,h)}}}}}
if(!(U||window.ShadyDOM&&window.ShadyDOM.handlesDynamicScoping)){var Lh=new MutationObserver(Kh),Mh=function(a){Lh.observe(a,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)Mh(document);else{var Nh=function(){Mh(document.body)};window.HTMLImports?window.HTMLImports.whenReady(Nh):requestAnimationFrame(function(){if("loading"===document.readyState){var a=function(){Nh();document.removeEventListener("readystatechange",a)};document.addEventListener("readystatechange",
a)}else Nh()})}Gh=function(){Kh(Lh.takeRecords())}};var Oh={};var Ph=Promise.resolve();function Qh(a){if(a=Oh[a])a._applyShimCurrentVersion=a._applyShimCurrentVersion||0,a._applyShimValidatingVersion=a._applyShimValidatingVersion||0,a._applyShimNextVersion=(a._applyShimNextVersion||0)+1}function Rh(a){return a._applyShimCurrentVersion===a._applyShimNextVersion}function Sh(a){a._applyShimValidatingVersion=a._applyShimNextVersion;a._validating||(a._validating=!0,Ph.then(function(){a._applyShimCurrentVersion=a._applyShimNextVersion;a._validating=!1}))};var Th={},Uh=new Fh;function Y(){this.fb={};this.M=document.documentElement;var a=new gg;a.rules=[];this.C=mh(this.M,new kh(a));this.za=!1;this.h=this.l=null}n=Y.prototype;n.flush=function(){Gh()};n.Ob=function(a){var b=this.fb[a]=(this.fb[a]||0)+1;return a+"-"+b};n.zc=function(a){return Ig(a)};n.Rc=function(a){return Gg(a)};
n.Nb=function(a){var b=[];a=a.content.querySelectorAll("style");for(var c=0;c<a.length;c++){var d=a[c];if(d.hasAttribute("shady-unscoped")){if(!U){var e=d.textContent;if(!Fg.has(e)){Fg.add(e);var f=document.createElement("style");f.setAttribute("shady-unscoped","");f.textContent=e;document.head.appendChild(f)}d.parentNode.removeChild(d)}}else b.push(d.textContent),d.parentNode.removeChild(d)}return b.join("").trim()};
n.prepareTemplate=function(a,b,c){this.prepareTemplateDom(a,b);this.prepareTemplateStyles(a,b,c)};
n.prepareTemplateStyles=function(a,b,c){if(!a._prepared&&!vg){U||Ch[b]||(Ch[b]=Ng(b));a._prepared=!0;a.name=b;a.extends=c;Oh[b]=a;var d=Ug(a),e=Vg(d);c={is:b,extends:c};var f=this.Nb(a)+(Th[b]||"");this.X();if(!e){var g;if(g=!d)g=xg.test(f)||wg.test(f),xg.lastIndex=0,wg.lastIndex=0;var h=hg(f);g&&W&&this.l&&this.l.transformRules(h,b);a._styleAst=h}g=[];W||(g=rh(a._styleAst));if(!g.length||W)b=this.Pb(c,a._styleAst,U?a.content:null,Ch[b]||null,d,e?f:""),a._style=b;a.ac=g}};
n.Kc=function(a,b){Th[b]=a.join(" ")};n.prepareTemplateDom=function(a,b){if(!vg){var c=Ug(a);U||"shady"===c||a._domPrepared||(a._domPrepared=!0,Xg(a.content,b))}};n.Pb=function(a,b,c,d,e,f){f=$g(a,b,null,e,f);return f.length?Kg(f,a.is,c,d):null};n.bb=function(a){var b=Sg(a),c=b.is;b=b.da;var d=Ch[c]||null,e=Oh[c];if(e){c=e._styleAst;var f=e.ac;e=Ug(e);b=new kh(c,d,f,b,e);mh(a,b);return b}};
n.Jb=function(){return!this.l&&window.ShadyCSS&&window.ShadyCSS.ApplyShim?(this.l=window.ShadyCSS.ApplyShim,this.l.invalidCallback=Qh,!0):!1};n.Kb=function(){var a=this;!this.h&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(this.h=window.ShadyCSS.CustomStyleInterface,this.h.transformCallback=function(b){a.tb(b)},this.h.validateCallback=function(){requestAnimationFrame(function(){(a.h.enqueued||a.za)&&a.flushCustomStyles()})})};n.X=function(){var a=this.Jb();this.Kb();return a};
n.flushCustomStyles=function(){if(!vg){var a=this.X();if(this.h){var b=this.h.processStyles();!a&&!this.h.enqueued||Vg(this.C.cssBuild)||(W?this.C.cssBuild||this.jc(b):(this.ec(b),this.Fa(this.M,this.C),this.Bb(b),this.za&&this.styleDocument()),this.h.enqueued=!1)}}};
n.ec=function(a){var b=this;a=a.map(function(c){return b.h.getStyleForCustomStyle(c)}).filter(function(c){return!!c});a.sort(function(c,d){c=d.compareDocumentPosition(c);return c&Node.DOCUMENT_POSITION_FOLLOWING?1:c&Node.DOCUMENT_POSITION_PRECEDING?-1:0});this.C.B.rules=a.map(function(c){return Ig(c)})};
n.styleElement=function(a,b){if(vg){if(b){lh(a)||mh(a,new kh(null));var c=lh(a);this.$a(c,b);Vh(this,a,c)}}else if(c=lh(a)||this.bb(a))this.Aa(a)||(this.za=!0),b&&this.$a(c,b),W?Vh(this,a,c):(this.flush(),this.Fa(a,c),c.Ja&&c.Ja.length&&this.Cb(a,c))};n.$a=function(a,b){a.V=a.V||{};Object.assign(a.V,b)};
function Vh(a,b,c){var d=Sg(b).is;if(c.V){var e=c.V,f;for(f in e)null===f?b.style.removeProperty(f):b.style.setProperty(f,e[f])}if(((e=Oh[d])||a.Aa(b))&&(!e||""===Ug(e))&&e&&e._style&&!Rh(e)){if(Rh(e)||e._applyShimValidatingVersion!==e._applyShimNextVersion)a.X(),a.l&&a.l.transformRules(e._styleAst,d),e._style.textContent=$g(b,c.B),Sh(e);U&&(a=b.shadowRoot)&&(a=a.querySelector("style"))&&(a.textContent=$g(b,c.B));c.B=e._styleAst}}
n.Da=function(a){return(a=Rg(a).getRootNode().host)?lh(a)||this.bb(a)?a:this.Da(a):this.M};n.Aa=function(a){return a===this.M};
n.Cb=function(a,b){var c=Sg(a).is,d=Uh.fetch(c,b.G,b.Ja),e=d?d.styleElement:null,f=b.A;b.A=d&&d.A||this.Ob(c);var g=b.A;var h=Bh;h=e?e.textContent||"":zh(h,a,b.G,g);var k=lh(a),m=k.S;m&&!U&&m!==e&&(m._useCount--,0>=m._useCount&&m.parentNode&&m.parentNode.removeChild(m));U?k.S?(k.S.textContent=h,e=k.S):h&&(e=Kg(h,g,a.shadowRoot,k.placeholder)):e?e.parentNode||(ph&&-1<h.indexOf("@media")&&(e.textContent=h),Lg(e,null,k.placeholder)):h&&(e=Kg(h,g,null,k.placeholder));e&&(e._useCount=e._useCount||0,k.S!=
e&&e._useCount++,k.S=e);g=e;U||(e=b.A,k=h=a.getAttribute("class")||"",f&&(k=h.replace(new RegExp("\\s*x-scope\\s*"+f+"\\s*","g")," ")),k+=(k?" ":"")+"x-scope "+e,h!==k&&Qg(a,k));d||Uh.store(c,b.G,g,b.A);return g};n.Fa=function(a,b){var c=this.Da(a),d=lh(c),e=d.G;c===this.M||e||(this.Fa(c,d),e=d.G);c=Object.create(e||null);e=yh(a,b.B,b.cssBuild);a=wh(d.B,a).F;Object.assign(c,e.Cc,a,e.Mc);this.Zb(c,b.V);a=Bh;d=Object.getOwnPropertyNames(c);e=0;for(var f;e<d.length;e++)f=d[e],c[f]=uh(a,c[f],c);b.G=c};
n.Zb=function(a,b){for(var c in b){var d=b[c];if(d||0===d)a[c]=d}};n.styleDocument=function(a){this.styleSubtree(this.M,a)};n.styleSubtree=function(a,b){var c=Rg(a),d=c.shadowRoot,e=this.Aa(a);(d||e)&&this.styleElement(a,b);if(a=e?c:d)for(a=Array.from(a.querySelectorAll("*")).filter(function(f){return Rg(f).shadowRoot}),b=0;b<a.length;b++)this.styleSubtree(a[b])};n.jc=function(a){for(var b=0;b<a.length;b++){var c=this.h.getStyleForCustomStyle(a[b]);c&&this.ic(c)}};
n.Bb=function(a){for(var b=0;b<a.length;b++){var c=this.h.getStyleForCustomStyle(a[b]);c&&Ah(c,this.C.G)}};n.tb=function(a){var b=this,c=Ug(a);c!==this.C.cssBuild&&(this.C.cssBuild=c);if(!Vg(c)){var d=Ig(a);Hg(d,function(e){if(U)jh(e);else{var f=X;e.selector=e.parsedSelector;jh(e);f.hb(e,f.oc)}W&&""===c&&(b.X(),b.l&&b.l.transformRule(e))});W?a.textContent=Gg(d):this.C.B.rules.push(d)}};n.ic=function(a){if(W&&this.l){var b=Ig(a);this.X();this.l.transformRules(b);a.textContent=Gg(b)}};
n.getComputedStyleValue=function(a,b){var c;W||(c=(lh(a)||lh(this.Da(a))).G[b]);return(c=c||window.getComputedStyle(a).getPropertyValue(b))?c.trim():""};n.Qc=function(a,b){var c=Rg(a).getRootNode();b=b?("string"===typeof b?b:String(b)).split(/\s/):[];c=c.host&&c.host.localName;if(!c){var d=a.getAttribute("class");if(d){d=d.split(/\s/);for(var e=0;e<d.length;e++)if(d[e]===X.ea){c=d[e+1];break}}}c&&b.push(X.ea,c);W||(c=lh(a))&&c.A&&b.push(Bh.wb,c.A);Qg(a,b.join(" "))};n.mc=function(a){return lh(a)};
n.Pc=function(a,b){X.element(a,b)};n.Tc=function(a,b){X.element(a,b,!0)};n.Oc=function(a){return Jh(a)};n.wc=function(a){return Ih(a)};Y.prototype.flush=Y.prototype.flush;Y.prototype.prepareTemplate=Y.prototype.prepareTemplate;Y.prototype.styleElement=Y.prototype.styleElement;Y.prototype.styleDocument=Y.prototype.styleDocument;Y.prototype.styleSubtree=Y.prototype.styleSubtree;Y.prototype.getComputedStyleValue=Y.prototype.getComputedStyleValue;Y.prototype.setElementClass=Y.prototype.Qc;
Y.prototype._styleInfoForNode=Y.prototype.mc;Y.prototype.transformCustomStyleForDocument=Y.prototype.tb;Y.prototype.getStyleAst=Y.prototype.zc;Y.prototype.styleAstToString=Y.prototype.Rc;Y.prototype.flushCustomStyles=Y.prototype.flushCustomStyles;Y.prototype.scopeNode=Y.prototype.Pc;Y.prototype.unscopeNode=Y.prototype.Tc;Y.prototype.scopeForNode=Y.prototype.Oc;Y.prototype.currentScopeForNode=Y.prototype.wc;Y.prototype.prepareAdoptedCssText=Y.prototype.Kc;
Object.defineProperties(Y.prototype,{nativeShadow:{get:function(){return U}},nativeCss:{get:function(){return W}}});var Z=new Y,Wh,Xh;window.ShadyCSS&&(Wh=window.ShadyCSS.ApplyShim,Xh=window.ShadyCSS.CustomStyleInterface);
window.ShadyCSS={ScopingShim:Z,prepareTemplate:function(a,b,c){Z.flushCustomStyles();Z.prepareTemplate(a,b,c)},prepareTemplateDom:function(a,b){Z.prepareTemplateDom(a,b)},prepareTemplateStyles:function(a,b,c){Z.flushCustomStyles();Z.prepareTemplateStyles(a,b,c)},styleSubtree:function(a,b){Z.flushCustomStyles();Z.styleSubtree(a,b)},styleElement:function(a){Z.flushCustomStyles();Z.styleElement(a)},styleDocument:function(a){Z.flushCustomStyles();Z.styleDocument(a)},flushCustomStyles:function(){Z.flushCustomStyles()},
getComputedStyleValue:function(a,b){return Z.getComputedStyleValue(a,b)},nativeCss:W,nativeShadow:U,cssBuild:ug,disableRuntime:vg};Wh&&(window.ShadyCSS.ApplyShim=Wh);Xh&&(window.ShadyCSS.CustomStyleInterface=Xh);/*

Copyright (c) 2019 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
*/
var Yh=window.customElements,Zh=window.HTMLImports,$h=!1,ai=null;Yh.polyfillWrapFlushCallback&&Yh.polyfillWrapFlushCallback(function(a){ai=a;$h&&a()});function bi(){window.HTMLTemplateElement.bootstrap&&window.HTMLTemplateElement.bootstrap(window.document);Zh.whenReady(function(){ai&&ai();$h=!0;window.WebComponents.ready=!0;document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})}
"complete"!==document.readyState?(window.addEventListener("load",bi),window.addEventListener("DOMContentLoaded",function(){window.removeEventListener("load",bi);bi()})):bi();})();
//# sourceMappingURL=webcomponents-lite-noPatch.js.map