(function(){/*

 Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
 This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
 The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
 The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
 Code distributed by Google as part of the polymer project is also
 subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var p;function aa(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function ba(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:aa(a)}}function da(a){if(!(a instanceof Array)){a=ba(a);for(var b,c=[];!(b=a.next()).done;)c.push(b.value);a=c}return a}var ha="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;
(function(a){function b(m,r){if("function"===typeof window.CustomEvent)return new CustomEvent(m,r);var q=document.createEvent("CustomEvent");q.initCustomEvent(m,!!r.bubbles,!!r.cancelable,r.detail);return q}function c(m){if(ea)return m.ownerDocument!==document?m.ownerDocument:null;var r=m.__importDoc;if(!r&&m.parentNode){r=m.parentNode;if("function"===typeof r.closest)r=r.closest("link[rel=import]");else for(;!h(r)&&(r=r.parentNode););m.__importDoc=r}return r}function d(m){var r=n(document,"link[rel=import]:not([import-dependency])"),
q=r.length;q?w(r,function(x){return g(x,function(){0===--q&&m()})}):m()}function e(m){function r(){"loading"!==document.readyState&&document.body&&(document.removeEventListener("readystatechange",r),m())}document.addEventListener("readystatechange",r);r()}function f(m){e(function(){return d(function(){return m&&m()})})}function g(m,r){if(m.__loaded)r&&r();else if("script"===m.localName&&!m.src||"style"===m.localName&&!m.firstChild)m.__loaded=!0,r&&r();else{var q=function(x){m.removeEventListener(x.type,
q);m.__loaded=!0;r&&r()};m.addEventListener("load",q);ra&&"style"===m.localName||m.addEventListener("error",q)}}function h(m){return m.nodeType===Node.ELEMENT_NODE&&"link"===m.localName&&"import"===m.rel}function k(){var m=this;this.D={};this.U=0;this.Da=new MutationObserver(function(r){return m.rc(r)});this.Da.observe(document.head,{childList:!0,subtree:!0});this.loadImports(document)}function l(m){w(n(m,"template"),function(r){w(n(r.content,'script:not([type]),script[type="application/javascript"],script[type="text/javascript"],script[type="module"]'),
function(q){var x=document.createElement("script");w(q.attributes,function(v){return x.setAttribute(v.name,v.value)});x.textContent=q.textContent;q.parentNode.replaceChild(x,q)});l(r.content)})}function n(m,r){return m.childNodes.length?m.querySelectorAll(r):vb}function w(m,r,q){var x=m?m.length:0,v=q?-1:1;for(q=q?x-1:0;q<x&&0<=q;q+=v)r(m[q],q)}var E=document.createElement("link"),ea="import"in E,vb=E.querySelectorAll("*"),Ha=null;!1==="currentScript"in document&&Object.defineProperty(document,"currentScript",
{get:function(){return Ha||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null)},configurable:!0});var wb=/(url\()([^)]*)(\))/g,xb=/(@import[\s]+(?!url\())([^;]*)(;)/g,fa=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,Q={pc:function(m,r){m.href&&m.setAttribute("href",Q.la(m.getAttribute("href"),r));m.src&&m.setAttribute("src",Q.la(m.getAttribute("src"),r));if("style"===m.localName){var q=Q.mb(m.textContent,r,wb);m.textContent=Q.mb(q,r,xb)}},mb:function(m,r,q){return m.replace(q,
function(x,v,D,U){x=D.replace(/["']/g,"");r&&(x=Q.la(x,r));return v+"'"+x+"'"+U})},la:function(m,r){if(void 0===Q.na){Q.na=!1;try{var q=new URL("b","http://a");q.pathname="c%20d";Q.na="http://a/c%20d"===q.href}catch(x){}}if(Q.na)return(new URL(m,r)).href;q=Q.vb;q||(q=document.implementation.createHTMLDocument("temp"),Q.vb=q,q.Ja=q.createElement("base"),q.head.appendChild(q.Ja),q.Ia=q.createElement("a"));q.Ja.href=r;q.Ia.href=m;return q.Ia.href||m}},ia={async:!0,load:function(m,r,q){if(m)if(m.match(/^data:/)){m=
m.split(",");var x=m[1];x=-1<m[0].indexOf(";base64")?atob(x):decodeURIComponent(x);r(x)}else{var v=new XMLHttpRequest;v.open("GET",m,ia.async);v.onload=function(){var D=v.responseURL||v.getResponseHeader("Location");D&&0===D.indexOf("/")&&(D=(location.origin||location.protocol+"//"+location.host)+D);var U=v.response||v.responseText;304===v.status||0===v.status||200<=v.status&&300>v.status?r(U,D):q(U)};v.send()}else q("error: href must be specified")}},ra=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);
k.prototype.loadImports=function(m){var r=this;m=n(m,"link[rel=import]");w(m,function(q){return r.ib(q)})};k.prototype.ib=function(m){var r=this,q=m.href;if(void 0!==this.D[q]){var x=this.D[q];x&&x.__loaded&&(m.__import=x,this.gb(m))}else this.U++,this.D[q]="pending",ia.load(q,function(v,D){v=r.xc(v,D||q);r.D[q]=v;r.U--;r.loadImports(v);r.lb()},function(){r.D[q]=null;r.U--;r.lb()})};k.prototype.xc=function(m,r){if(!m)return document.createDocumentFragment();ra&&(m=m.replace(fa,function(v,D,U){return-1===
v.indexOf("type=")?D+" type=import-disable "+U:v}));var q=document.createElement("template");q.innerHTML=m;if(q.content)m=q.content,l(m);else for(m=document.createDocumentFragment();q.firstChild;)m.appendChild(q.firstChild);if(q=m.querySelector("base"))r=Q.la(q.getAttribute("href"),r),q.removeAttribute("href");q=n(m,'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 x=0;w(q,function(v){g(v);Q.pc(v,r);v.setAttribute("import-dependency","");if("script"===v.localName&&!v.src&&v.textContent){if("module"===v.type)throw Error("Inline module scripts are not supported in HTML Imports.");v.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(v.textContent+("\n//# sourceURL="+r+(x?"-"+x:"")+".js\n")));v.textContent="";x++}});return m};k.prototype.lb=function(){var m=this;if(!this.U){this.Da.disconnect();this.flatten(document);var r=!1,q=!1,x=
function(){q&&r&&(m.loadImports(document),m.U||(m.Da.observe(document.head,{childList:!0,subtree:!0}),m.oc()))};this.Mc(function(){q=!0;x()});this.Dc(function(){r=!0;x()})}};k.prototype.flatten=function(m){var r=this;m=n(m,"link[rel=import]");w(m,function(q){var x=r.D[q.href];(q.__import=x)&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(r.D[q.href]=q,q.readyState="loading",q.__import=q,r.flatten(x),q.appendChild(x))})};k.prototype.Dc=function(m){function r(v){if(v<x){var D=q[v],U=document.createElement("script");
D.removeAttribute("import-dependency");w(D.attributes,function(sa){return U.setAttribute(sa.name,sa.value)});Ha=U;D.parentNode.replaceChild(U,D);g(U,function(){Ha=null;r(v+1)})}else m()}var q=n(document,"script[import-dependency]"),x=q.length;r(0)};k.prototype.Mc=function(m){var r=n(document,"style[import-dependency],link[rel=stylesheet][import-dependency]"),q=r.length;if(q){var x=ra&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]");w(r,function(v){g(v,function(){v.removeAttribute("import-dependency");
0===--q&&m()});if(x&&v.parentNode!==document.head){var D=document.createElement(v.localName);D.__appliedElement=v;D.setAttribute("type","import-placeholder");v.parentNode.insertBefore(D,v.nextSibling);for(D=c(v);D&&c(D);)D=c(D);D.parentNode!==document.head&&(D=null);document.head.insertBefore(v,D);v.removeAttribute("type")}})}else m()};k.prototype.oc=function(){var m=this,r=n(document,"link[rel=import]");w(r,function(q){return m.gb(q)},!0)};k.prototype.gb=function(m){m.__loaded||(m.__loaded=!0,m["import"]&&
(m["import"].readyState="complete"),m.dispatchEvent(b(m["import"]?"load":"error",{bubbles:!1,cancelable:!1,detail:void 0})))};k.prototype.rc=function(m){var r=this;w(m,function(q){return w(q.addedNodes,function(x){x&&x.nodeType===Node.ELEMENT_NODE&&(h(x)?r.ib(x):r.loadImports(x))})})};var Ia=null;if(ea)E=n(document,"link[rel=import]"),w(E,function(m){m["import"]&&"loading"===m["import"].readyState||(m.__loaded=!0)}),E=function(m){m=m.target;h(m)&&(m.__loaded=!0)},document.addEventListener("load",
E,!0),document.addEventListener("error",E,!0);else{var la=Object.getOwnPropertyDescriptor(Node.prototype,"baseURI");Object.defineProperty((!la||la.configurable?Node:Element).prototype,"baseURI",{get:function(){var m=h(this)?this:c(this);return m?m.href:la&&la.get?la.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(){Ia=new k})}f(function(){return document.dispatchEvent(b("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))});a.useNative=ea;a.whenReady=f;a.importForElement=c;a.loadImports=function(m){Ia&&Ia.loadImports(m)}})(window.HTMLImports=window.HTMLImports||{});(function(){if(!function(){var f=document.createEvent("Event");f.initEvent("foo",!0,!0);f.preventDefault();return f.defaultPrevented}()){var a=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(a.call(this),Object.defineProperty(this,"defaultPrevented",{get:function(){return!0},configurable:!0}))}}var b=/Trident/.test(navigator.userAgent);if(!window.Event||b&&"function"!==typeof window.Event){var c=window.Event;window.Event=function(f,g){g=g||{};var h=document.createEvent("Event");
h.initEvent(f,!!g.bubbles,!!g.cancelable);return h};if(c){for(var d in c)window.Event[d]=c[d];window.Event.prototype=c.prototype}}if(!window.CustomEvent||b&&"function"!==typeof window.CustomEvent)window.CustomEvent=function(f,g){g=g||{};var h=document.createEvent("CustomEvent");h.initCustomEvent(f,!!g.bubbles,!!g.cancelable,g.detail);return h},window.CustomEvent.prototype=window.Event.prototype;if(!window.MouseEvent||b&&"function"!==typeof window.MouseEvent){b=window.MouseEvent;window.MouseEvent=
function(f,g){g=g||{};var h=document.createEvent("MouseEvent");h.initMouseEvent(f,!!g.bubbles,!!g.cancelable,g.view||window,g.detail,g.screenX,g.screenY,g.clientX,g.clientY,g.ctrlKey,g.altKey,g.shiftKey,g.metaKey,g.button,g.relatedTarget);return h};if(b)for(var e in b)window.MouseEvent[e]=b[e];window.MouseEvent.prototype=b.prototype}})();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=d,g=Object.getOwnPropertyNames(f),h=0;h<g.length;h++)d=g[h],e[d]=f[d];return a});(function(){function a(){}function b(t,u){if(!t.childNodes.length)return[];switch(t.nodeType){case Node.DOCUMENT_NODE:return Ha.call(t,u);case Node.DOCUMENT_FRAGMENT_NODE:return wb.call(t,u);default:return vb.call(t,u)}}var c="undefined"===typeof HTMLTemplateElement,d=!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment),e=!1;/Trident/.test(navigator.userAgent)&&function(){function t(y,L){if(y instanceof DocumentFragment)for(var Qa;Qa=y.firstChild;)C.call(this,Qa,L);else C.call(this,
y,L);return y}e=!0;var u=Node.prototype.cloneNode;Node.prototype.cloneNode=function(y){y=u.call(this,y);this instanceof DocumentFragment&&(y.__proto__=DocumentFragment.prototype);return y};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 C=Node.prototype.insertBefore;Node.prototype.insertBefore=t;var F=Node.prototype.appendChild;Node.prototype.appendChild=function(y){y instanceof DocumentFragment?t.call(this,y,null):F.call(this,y);return y};var V=Node.prototype.removeChild,ca=Node.prototype.replaceChild;Node.prototype.replaceChild=function(y,L){y instanceof DocumentFragment?(t.call(this,y,L),V.call(this,L)):ca.call(this,y,L);return L};Document.prototype.createDocumentFragment=
function(){var y=this.createElement("df");y.__proto__=DocumentFragment.prototype;return y};var ja=Document.prototype.importNode;Document.prototype.importNode=function(y,L){L=ja.call(this,y,L||!1);y instanceof DocumentFragment&&(L.__proto__=DocumentFragment.prototype);return L}}();var f=Node.prototype.cloneNode,g=Document.prototype.createElement,h=Document.prototype.importNode,k=Node.prototype.removeChild,l=Node.prototype.appendChild,n=Node.prototype.replaceChild,w=DOMParser.prototype.parseFromString,
E=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML")||{get:function(){return this.innerHTML},set:function(t){this.innerHTML=t}},ea=Object.getOwnPropertyDescriptor(window.Node.prototype,"childNodes")||{get:function(){return this.childNodes}},vb=Element.prototype.querySelectorAll,Ha=Document.prototype.querySelectorAll,wb=DocumentFragment.prototype.querySelectorAll,xb=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 fa=document.implementation.createHTMLDocument("template"),Q=!0,ia=document.createElement("style");ia.textContent="template{display:none;}";var ra=document.head;ra.insertBefore(ia,ra.firstElementChild);a.prototype=Object.create(HTMLElement.prototype);var Ia=!document.createElement("div").hasOwnProperty("innerHTML");a.N=function(t){if(!t.content&&t.namespaceURI===
document.documentElement.namespaceURI){t.content=fa.createDocumentFragment();for(var u;u=t.firstChild;)l.call(t.content,u);if(Ia)t.__proto__=a.prototype;else if(t.cloneNode=function(C){return a.pa(this,C)},Q)try{m(t),r(t)}catch(C){Q=!1}a.bootstrap(t.content)}};var la={option:["select"],thead:["table"],col:["colgroup","table"],tr:["tbody","table"],th:["tr","tbody","table"],td:["tr","tbody","table"]},m=function(t){Object.defineProperty(t,"innerHTML",{get:function(){return sa(this)},set:function(u){var C=
la[(/<([a-z][^/\0>\x20\t\r\n\f]+)/i.exec(u)||["",""])[1].toLowerCase()];if(C)for(var F=0;F<C.length;F++)u="<"+C[F]+">"+u+"</"+C[F]+">";fa.body.innerHTML=u;for(a.bootstrap(fa);this.content.firstChild;)k.call(this.content,this.content.firstChild);u=fa.body;if(C)for(F=0;F<C.length;F++)u=u.lastChild;for(;u.firstChild;)l.call(this.content,u.firstChild)},configurable:!0})},r=function(t){Object.defineProperty(t,"outerHTML",{get:function(){return"<template>"+this.innerHTML+"</template>"},set:function(u){if(this.parentNode){fa.body.innerHTML=
u;for(u=this.ownerDocument.createDocumentFragment();fa.body.firstChild;)l.call(u,fa.body.firstChild);n.call(this.parentNode,u,this)}else throw Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");},configurable:!0})};m(a.prototype);r(a.prototype);a.bootstrap=function(t){t=b(t,"template");for(var u=0,C=t.length,F;u<C&&(F=t[u]);u++)a.N(F)};document.addEventListener("DOMContentLoaded",function(){a.bootstrap(document)});Document.prototype.createElement=function(){var t=
g.apply(this,arguments);"template"===t.localName&&a.N(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 sa(this)},set:function(t){E.set.call(this,t);a.bootstrap(this)},configurable:!0,enumerable:!0});var q=/[&\u00A0"]/g,x=/[&\u00A0<>]/g,v=function(t){switch(t){case "&":return"&amp;";case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";case "\u00a0":return"&nbsp;"}};
ia=function(t){for(var u={},C=0;C<t.length;C++)u[t[C]]=!0;return u};var D=ia("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),U=ia("style script xmp iframe noembed noframes plaintext noscript".split(" ")),sa=function(t,u){"template"===t.localName&&(t=t.content);for(var C="",F=u?u(t):ea.get.call(t),V=0,ca=F.length,ja;V<ca&&(ja=F[V]);V++){a:{var y=ja;var L=t;var Qa=u;switch(y.nodeType){case Node.ELEMENT_NODE:for(var yb=y.localName,Ra="<"+yb,Qe=y.attributes,
Mc=0;L=Qe[Mc];Mc++)Ra+=" "+L.name+'="'+L.value.replace(q,v)+'"';Ra+=">";y=D[yb]?Ra:Ra+sa(y,Qa)+"</"+yb+">";break a;case Node.TEXT_NODE:y=y.data;y=L&&U[L.localName]?y:y.replace(x,v);break a;case Node.COMMENT_NODE:y="\x3c!--"+y.data+"--\x3e";break a;default:throw window.console.error(y),Error("not implemented");}}C+=y}return C}}if(c||xb){a.pa=function(t,u){var C=f.call(t,!1);this.N&&this.N(C);u&&(l.call(C.content,f.call(t.content,!0)),zb(C.content,t.content));return C};var zb=function(t,u){if(u.querySelectorAll&&
(u=b(u,"template"),0!==u.length)){t=b(t,"template");for(var C=0,F=t.length,V,ca;C<F;C++)ca=u[C],V=t[C],a&&a.N&&a.N(ca),n.call(V.parentNode,Re.call(ca,!0),V)}},Re=Node.prototype.cloneNode=function(t){if(!e&&d&&this instanceof DocumentFragment)if(t)var u=Se.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.pa(this,t):f.call(this,t);
t&&zb(u,this);return u},Se=Document.prototype.importNode=function(t,u){u=u||!1;if("template"===t.localName)return a.pa(t,u);var C=h.call(this,t,u);if(u){zb(C,t);t=b(C,'script:not([type]),script[type="application/javascript"],script[type="text/javascript"]');for(var F,V=0;V<t.length;V++){F=t[V];u=g.call(document,"script");u.textContent=F.textContent;for(var ca=F.attributes,ja=0,y;ja<ca.length;ja++)y=ca[ja],u.setAttribute(y.name,y.value);n.call(F.parentNode,u,F)}}return C}}c&&(window.HTMLTemplateElement=
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 ka=setTimeout;function ma(){}function na(a,b){return function(){a.apply(b,arguments)}}function z(a){if(!(this instanceof z))throw new TypeError("Promises must be constructed via new");if("function"!==typeof a)throw new TypeError("not a function");this.u=0;this.Ra=!1;this.f=void 0;this.R=[];oa(a,this)}
function pa(a,b){for(;3===a.u;)a=a.f;0===a.u?a.R.push(b):(a.Ra=!0,qa(function(){var c=1===a.u?b.yc:b.zc;if(null===c)(1===a.u?ta:ua)(b.Ga,a.f);else{try{var d=c(a.f)}catch(e){ua(b.Ga,e);return}ta(b.Ga,d)}}))}function ta(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 z){a.u=3;a.f=b;va(a);return}if("function"===typeof c){oa(na(c,b),a);return}}a.u=1;a.f=b;va(a)}catch(d){ua(a,d)}}
function ua(a,b){a.u=2;a.f=b;va(a)}function va(a){2===a.u&&0===a.R.length&&qa(function(){a.Ra||"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",a.f)});for(var b=0,c=a.R.length;b<c;b++)pa(a,a.R[b]);a.R=null}function wa(a,b,c){this.yc="function"===typeof a?a:null;this.zc="function"===typeof b?b:null;this.Ga=c}function oa(a,b){var c=!1;try{a(function(d){c||(c=!0,ta(b,d))},function(d){c||(c=!0,ua(b,d))})}catch(d){c||(c=!0,ua(b,d))}}
z.prototype["catch"]=function(a){return this.then(null,a)};z.prototype.then=function(a,b){var c=new this.constructor(ma);pa(this,new wa(a,b,c));return c};z.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 xa(a){return new z(function(b,c){function d(h,k){try{if(k&&("object"===typeof k||"function"===typeof k)){var l=k.then;if("function"===typeof l){l.call(k,function(n){d(h,n)},c);return}}e[h]=k;0===--f&&b(e)}catch(n){c(n)}}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 ya(a){return a&&"object"===typeof a&&a.constructor===z?a:new z(function(b){b(a)})}function za(a){return new z(function(b,c){c(a)})}function Aa(a){return new z(function(b,c){for(var d=0,e=a.length;d<e;d++)a[d].then(b,c)})}var qa="function"===typeof setImmediate&&function(a){setImmediate(a)}||function(a){ka(a,0)};/*

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=z;z.prototype.then=z.prototype.then;z.all=xa;z.race=Aa;z.resolve=ya;z.reject=za;var Ba=document.createTextNode(""),Ca=[];(new MutationObserver(function(){for(var a=Ca.length,b=0;b<a;b++)Ca[b]();Ca.splice(0,a)})).observe(Ba,{characterData:!0});qa=function(a){Ca.push(a);Ba.textContent=0<Ba.textContent.length?"":"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
*/
window.WebComponents=window.WebComponents||{flags:{}};var Da=document.querySelector('script[src*="webcomponents-lite.js"]'),Ea=/wc-(.+)/,A={};if(!A.noOpts){location.search.slice(1).split("&").forEach(function(a){a=a.split("=");var b;a[0]&&(b=a[0].match(Ea))&&(A[b[1]]=a[1]||!0)});if(Da)for(var Fa=0,Ga=void 0;Ga=Da.attributes[Fa];Fa++)"src"!==Ga.name&&(A[Ga.name]=Ga.value||!0);if(A.log&&A.log.split){var Ja=A.log.split(",");A.log={};Ja.forEach(function(a){A.log[a]=!0})}else A.log={}}
window.WebComponents.flags=A;var Ka=A.shadydom;Ka&&(window.ShadyDOM=window.ShadyDOM||{},window.ShadyDOM.force=Ka);var La=A.register||A.ce;La&&window.customElements&&(window.customElements.forcePolyfill=La);/*

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 Ma(){}Ma.prototype.toJSON=function(){return{}};function B(a){a.__shady||(a.__shady=new Ma);return a.__shady}function G(a){return a&&a.__shady};var H=window.ShadyDOM||{};H.sc=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var Na=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");H.l=!!(Na&&Na.configurable&&Na.get);H.Ea=H.force||!H.sc;H.F=H.noPatch||!1;H.kb=H.preferPerformance;var Oa=navigator.userAgent.match("Trident");H.qb=Oa;function Pa(a){return(a=G(a))&&void 0!==a.firstChild}function I(a){return"ShadyRoot"===a.Tb}function Sa(a){return(a=(a=G(a))&&a.root)&&a.Sa()}
var Ta=Element.prototype,Ua=Ta.matches||Ta.matchesSelector||Ta.mozMatchesSelector||Ta.msMatchesSelector||Ta.oMatchesSelector||Ta.webkitMatchesSelector,Va=document.createTextNode(""),Wa=0,Xa=[];(new MutationObserver(function(){for(;Xa.length;)try{Xa.shift()()}catch(a){throw Va.textContent=Wa++,a;}})).observe(Va,{characterData:!0});function Ya(a){Xa.push(a);Va.textContent=Wa++}var Za=!!document.contains;function $a(a,b){for(;b;){if(b==a)return!0;b=b.__shady_parentNode}return!1}
function ab(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=ba(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 bb(a){var b=[];for(a=a.__shady_native_firstChild;a;a=a.__shady_native_nextSibling)b.push(a);return b}
function cb(a){var b=[];for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)b.push(a);return b}function J(a,b,c,d){c=void 0===c?"":c;for(var e in b){var f=b[e];if(!(d&&0<=d.indexOf(e))){f.configurable=!0;var g=c+e;if(f.value)a[g]=f.value;else try{Object.defineProperty(a,g,f)}catch(h){}}}}function K(a){var b={};Object.getOwnPropertyNames(a).forEach(function(c){b[c]=Object.getOwnPropertyDescriptor(a,c)});return b};var db=[],eb;function fb(a){eb||(eb=!0,Ya(gb));db.push(a)}function gb(){eb=!1;for(var a=!!db.length;db.length;)db.shift()();return a}gb.list=db;function hb(){this.ea=!1;this.addedNodes=[];this.removedNodes=[];this.ia=new Set}function ib(a){a.ea||(a.ea=!0,Ya(function(){a.flush()}))}hb.prototype.flush=function(){if(this.ea){this.ea=!1;var a=this.takeRecords();a.length&&this.ia.forEach(function(b){b(a)})}};hb.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 jb(a,b){var c=B(a);c.V||(c.V=new hb);c.V.ia.add(b);var d=c.V;return{yb:b,K:d,Wb:a,takeRecords:function(){return d.takeRecords()}}}function kb(a){var b=a&&a.K;b&&(b.ia["delete"](a.yb),b.ia.size||(B(a.Wb).V=null))}
function lb(a,b){var c=b.getRootNode();return a.map(function(d){var e=c===d.target.getRootNode();if(e&&d.addedNodes){if(e=Array.from(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 mb=/[&\u00A0"]/g,nb=/[&\u00A0<>]/g;function ob(a){switch(a){case "&":return"&amp;";case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";case "\u00a0":return"&nbsp;"}}function pb(a){for(var b={},c=0;c<a.length;c++)b[a[c]]=!0;return b}var qb=pb("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),rb=pb("style script xmp iframe noembed noframes plaintext noscript".split(" "));
function sb(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,l=b;switch(h.nodeType){case Node.ELEMENT_NODE:k=h.localName;for(var n="<"+k,w=h.attributes,E=0,ea;ea=w[E];E++)n+=" "+ea.name+'="'+ea.value.replace(mb,ob)+'"';n+=">";h=qb[k]?n:n+sb(h,l)+"</"+k+">";break a;case Node.TEXT_NODE:h=h.data;h=k&&rb[k.localName]?h:h.replace(nb,ob);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 tb=H.l,ub={querySelector:function(a){return this.__shady_native_querySelector(a)},querySelectorAll:function(a){return this.__shady_native_querySelectorAll(a)}},Ab={};function Bb(a){Ab[a]=function(b){return b["__shady_native_"+a]}}function Cb(a,b){J(a,b,"__shady_native_");for(var c in b)Bb(c)}function M(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?ub[d]||(ub[d]=e.value):Bb(d))}}
var N=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),O=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),Db=document.implementation.createHTMLDocument("inert");function Eb(a){for(var b;b=a.__shady_native_firstChild;)a.__shady_native_removeChild(b)}var Fb=["firstElementChild","lastElementChild","children","childElementCount"],Gb=["querySelector","querySelectorAll"];
function Hb(){var a=["dispatchEvent","addEventListener","removeEventListener"];window.EventTarget?M(window.EventTarget.prototype,a):(M(Node.prototype,a),M(Window.prototype,a));tb?M(Node.prototype,"parentNode firstChild lastChild previousSibling nextSibling childNodes parentElement textContent".split(" ")):Cb(Node.prototype,{parentNode:{get:function(){N.currentNode=this;return N.parentNode()}},firstChild:{get:function(){N.currentNode=this;return N.firstChild()}},lastChild:{get:function(){N.currentNode=
this;return N.lastChild()}},previousSibling:{get:function(){N.currentNode=this;return N.previousSibling()}},nextSibling:{get:function(){N.currentNode=this;return N.nextSibling()}},childNodes:{get:function(){var b=[];N.currentNode=this;for(var c=N.firstChild();c;)b.push(c),c=N.nextSibling();return b}},parentElement:{get:function(){O.currentNode=this;return O.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:Eb(this);(0<b.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_native_insertBefore(document.createTextNode(b),void 0);break;default:this.nodeValue=b}}}});M(Node.prototype,"appendChild insertBefore removeChild replaceChild cloneNode contains".split(" "));
M(HTMLElement.prototype,["parentElement","contains"]);a={firstElementChild:{get:function(){O.currentNode=this;return O.firstChild()}},lastElementChild:{get:function(){O.currentNode=this;return O.lastChild()}},children:{get:function(){var b=[];O.currentNode=this;for(var c=O.firstChild();c;)b.push(c),c=O.nextSibling();return ab(b)}},childElementCount:{get:function(){return this.children?this.children.length:0}}};tb?(M(Element.prototype,Fb),M(Element.prototype,["previousElementSibling","nextElementSibling",
"innerHTML","className"]),M(HTMLElement.prototype,["children","innerHTML","className"])):(Cb(Element.prototype,a),Cb(Element.prototype,{previousElementSibling:{get:function(){O.currentNode=this;return O.previousSibling()}},nextElementSibling:{get:function(){O.currentNode=this;return O.nextSibling()}},innerHTML:{get:function(){return sb(this,bb)},set:function(b){var c="template"===this.localName?this.content:this;Eb(c);var d=this.localName||"div";d=this.namespaceURI&&this.namespaceURI!==Db.namespaceURI?
Db.createElementNS(this.namespaceURI,d):Db.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)}}}));M(Element.prototype,"setAttribute getAttribute hasAttribute removeAttribute focus blur".split(" "));M(Element.prototype,Gb);M(HTMLElement.prototype,["focus","blur"]);window.HTMLTemplateElement&&
M(window.HTMLTemplateElement.prototype,["innerHTML"]);tb?M(DocumentFragment.prototype,Fb):Cb(DocumentFragment.prototype,a);M(DocumentFragment.prototype,Gb);tb?(M(Document.prototype,Fb),M(Document.prototype,["activeElement"])):Cb(Document.prototype,a);M(Document.prototype,["importNode","getElementById"]);M(Document.prototype,Gb)};var Ib=K({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}}),Jb=K({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}}),Kb=K({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 Lb(a){for(var b in a){var c=a[b];c&&(c.enumerable=!1)}}Lb(Ib);Lb(Jb);Lb(Kb);var Mb=H.l||H.F,Nb=Mb?function(){}:function(a){var b=B(a);b.tb||(b.tb=!0,J(a,Kb))},Ob=Mb?function(){}:function(a){var b=B(a);b.sb||(b.sb=!0,J(a,Ib),window.customElements&&!H.F||J(a,Jb))};var Pb="__eventWrappers"+Date.now(),Qb=function(){var a=Object.getOwnPropertyDescriptor(Event.prototype,"composed");return a?function(b){return a.get.call(b)}:null}(),Rb=function(){function a(){}var b=!1,c={get capture(){b=!0}};window.addEventListener("test",a,c);window.removeEventListener("test",a,c);return b}();function Sb(a){if(a&&"object"===typeof a){var b=!!a.capture;var c=!!a.once;var d=!!a.passive;var e=a.H}else b=!!a,d=c=!1;return{nb:e,capture:b,once:c,passive:d,jb:Rb?a:b}}
var Tb={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},Ub={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};function Vb(a){return a instanceof Node?a.__shady_getRootNode():a}
function Wb(a,b){var c=[],d=a;for(a=Vb(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 Xb(a){a.__composedPath||(a.__composedPath=Wb(a.target,!0));return a.__composedPath}function Yb(a,b){if(!I)return a;a=Wb(a,!0);for(var c=0,d,e=void 0,f,g=void 0;c<b.length;c++)if(d=b[c],f=Vb(d),f!==e&&(g=a.indexOf(f),e=f),!I(f)||-1<g)return d}
function Zb(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 $b={focus:!0,blur:!0};function ac(a){return a.__target!==a.target||a.__relatedTarget!==a.relatedTarget}function bc(a,b,c){if(c=b.__handlers&&b.__handlers[a.type]&&b.__handlers[a.type][c])for(var d=0,e;(e=c[d])&&(!ac(a)||a.target!==a.relatedTarget)&&(e.call(b,a),!a.__immediatePropagationStopped);d++);}
function cc(a){var b=a.composedPath();Object.defineProperty(a,"currentTarget",{get:function(){return d},configurable:!0});for(var c=b.length-1;0<=c;c--){var d=b[c];bc(a,d,"capture");if(a.ma)return}Object.defineProperty(a,"eventPhase",{get:function(){return Event.AT_TARGET}});var e;for(c=0;c<b.length;c++){d=b[c];var f=G(d);f=f&&f.root;if(0===c||f&&f===e)if(bc(a,d,"bubble"),d!==window&&(e=d.__shady_getRootNode()),a.ma)break}}
function dc(a,b,c,d,e,f){for(var g=0;g<a.length;g++){var h=a[g],k=h.type,l=h.capture,n=h.once,w=h.passive;if(b===h.node&&c===k&&d===l&&e===n&&f===w)return g}return-1}function ec(a){gb();return this.__shady_native_dispatchEvent(a)}
function fc(a,b,c){var d=Sb(c),e=d.capture,f=d.once,g=d.passive,h=d.nb;d=d.jb;if(b){var k=typeof b;if("function"===k||"object"===k)if("object"!==k||b.handleEvent&&"function"===typeof b.handleEvent){if(Ub[a])return this.__shady_native_addEventListener(a,b,d);var l=h||this;if(h=b[Pb]){if(-1<dc(h,l,a,e,f,g))return}else b[Pb]=[];h=function(n){f&&this.__shady_removeEventListener(a,b,c);n.__target||gc(n);if(l!==this){var w=Object.getOwnPropertyDescriptor(n,"currentTarget");Object.defineProperty(n,"currentTarget",
{get:function(){return l},configurable:!0})}n.__previousCurrentTarget=n.currentTarget;if(!I(l)&&"slot"!==l.localName||-1!=n.composedPath().indexOf(l))if(n.composed||-1<n.composedPath().indexOf(l))if(ac(n)&&n.target===n.relatedTarget)n.eventPhase===Event.BUBBLING_PHASE&&n.stopImmediatePropagation();else if(n.eventPhase===Event.CAPTURING_PHASE||n.bubbles||n.target===l||l instanceof Window){var E="function"===k?b.call(l,n):b.handleEvent&&b.handleEvent(n);l!==this&&(w?(Object.defineProperty(n,"currentTarget",
w),w=null):delete n.currentTarget);return E}};b[Pb].push({node:l,type:a,capture:e,once:f,passive:g,Nc:h});$b[a]?(this.__handlers=this.__handlers||{},this.__handlers[a]=this.__handlers[a]||{capture:[],bubble:[]},this.__handlers[a][e?"capture":"bubble"].push(h)):this.__shady_native_addEventListener(a,h,d)}}}
function hc(a,b,c){if(b){var d=Sb(c);c=d.capture;var e=d.once,f=d.passive,g=d.nb;d=d.jb;if(Ub[a])return this.__shady_native_removeEventListener(a,b,d);var h=g||this;g=void 0;var k=null;try{k=b[Pb]}catch(l){}k&&(e=dc(k,h,a,c,e,f),-1<e&&(g=k.splice(e,1)[0].Nc,k.length||(b[Pb]=void 0)));this.__shady_native_removeEventListener(a,g||b,d);g&&$b[a]&&this.__handlers&&this.__handlers[a]&&(a=this.__handlers[a][c?"capture":"bubble"],b=a.indexOf(g),-1<b&&a.splice(b,1))}}
function ic(){for(var a in $b)window.__shady_native_addEventListener(a,function(b){b.__target||(gc(b),cc(b))},!0)}
var jc=K({get composed(){void 0===this.__composed&&(Qb?this.__composed="focusin"===this.type||"focusout"===this.type||Qb(this):!1!==this.isTrusted&&(this.__composed=Tb[this.type]));return this.__composed||!1},composedPath:function(){this.__composedPath||(this.__composedPath=Wb(this.__target,this.composed));return this.__composedPath},get target(){return Yb(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){if(!this.__relatedTarget)return null;this.__relatedTargetComposedPath||
(this.__relatedTargetComposedPath=Wb(this.__relatedTarget,!0));return Yb(this.currentTarget||this.__previousCurrentTarget,this.__relatedTargetComposedPath)},stopPropagation:function(){Event.prototype.stopPropagation.call(this);this.ma=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this);this.ma=this.__immediatePropagationStopped=!0}});
function gc(a){a.__target=a.target;a.__relatedTarget=a.relatedTarget;if(H.l){var b=Object.getPrototypeOf(a);if(!Object.hasOwnProperty(b,"__shady_patchedProto")){var c=Object.create(b);c.__shady_sourceProto=b;J(c,jc);b.__shady_patchedProto=c}a.__proto__=b.__shady_patchedProto}else J(a,jc)}var kc=Zb(Event),lc=Zb(CustomEvent),mc=Zb(MouseEvent);
function nc(){if(!Qb&&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 oc=Object.getOwnPropertyNames(Document.prototype).filter(function(a){return"on"===a.substring(0,2)});function pc(a,b){return{index:a,W:[],ha:b}}
function qc(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 l=c.length,n=0;n<k-g&&rc(a[--h],c[--l]);)n++;h=n}e+=g;f+=g;b-=h;d-=h;if(0==b-e&&0==d-f)return[];if(e==b){for(b=pc(e,0);f<d;)b.W.push(c[f++]);return[b]}if(f==d)return[pc(e,b-e)];k=e;g=f;d=d-g+1;h=b-k+1;b=Array(d);for(l=0;l<d;l++)b[l]=Array(h),b[l][0]=l;for(l=0;l<h;l++)b[0][l]=l;for(l=1;l<d;l++)for(n=1;n<h;n++)if(a[k+n-1]===c[g+l-1])b[l][n]=
b[l-1][n-1];else{var w=b[l-1][n]+1,E=b[l][n-1]+1;b[l][n]=w<E?w:E}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],l=b[k-1][g],n=b[k][g-1],w=l<n?l<h?l:h:n<h?n:h,w==h?(h==d?a.push(0):(a.push(1),d=h),k--,g--):w==l?(a.push(3),k--,d=l):(a.push(2),g--,d=n));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=pc(e,0));b.ha++;e++;b.W.push(c[f]);f++;break;case 2:b||(b=pc(e,
0));b.ha++;e++;break;case 3:b||(b=pc(e,0)),b.W.push(c[f]),f++}b&&k.push(b);return k}function rc(a,b){return a===b};function sc(a,b,c,d){Nb(a);d=d||null;var e=B(a),f=d?B(d):null;e.previousSibling=d?f.previousSibling:b.__shady_lastChild;if(f=G(e.previousSibling))f.nextSibling=a;if(f=G(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 tc(a,b,c){Ob(b);var d=B(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)sc(a,b,d,c);else sc(a,b,d,c)}
function uc(a,b){var c=B(a);b=B(b);a===b.firstChild&&(b.firstChild=c.nextSibling);a===b.lastChild&&(b.lastChild=c.previousSibling);a=c.previousSibling;var d=c.nextSibling;a&&(B(a).nextSibling=d);d&&(B(d).previousSibling=a);c.parentNode=c.previousSibling=c.nextSibling=void 0;void 0!==b.childNodes&&(b.childNodes=null)}
function vc(a,b){var c=B(a);if(b||void 0===c.firstChild){c.childNodes=null;var d=c.firstChild=a.__shady_native_firstChild;c.lastChild=a.__shady_native_lastChild;Ob(a);c=d;for(d=void 0;c;c=c.__shady_native_nextSibling){var e=B(c);e.parentNode=b||a;e.nextSibling=c.__shady_native_nextSibling;e.previousSibling=d||null;d=c;Nb(c)}}};var wc=null;function xc(){wc||(wc=window.ShadyCSS&&window.ShadyCSS.ScopingShim);return wc||null}function yc(a,b,c){var d=xc();return d&&"class"===b?(d.setElementClass(a,c),!0):!1}function zc(a,b){var c=xc();c&&c.unscopeNode(a,b)}function Ac(a,b){var c=xc();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&&Ac(a,b);return c}return a.nodeType!==Node.ELEMENT_NODE?!0:c.currentScopeForNode(a)===b}
function Bc(a){if(a.nodeType!==Node.ELEMENT_NODE)return"";var b=xc();return b?b.currentScopeForNode(a):""}function Cc(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&&Cc(a,b)};var Dc=window.document,Ec=H.kb,Fc=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),Gc=Fc&&Fc.get;function Hc(a){for(var b;b=a.__shady_firstChild;)a.__shady_removeChild(b)}function Ic(a){var b=G(a);if(b&&void 0!==b.ka)for(b=a.__shady_firstChild;b;b=b.__shady_nextSibling)Ic(b);if(a=G(a))a.ka=void 0}function Jc(a){var b=a;a&&"slot"===a.localName&&(b=(b=(b=G(a))&&b.O)&&b.length?b[0]:Jc(a.__shady_nextSibling));return b}
function Kc(a,b,c){if(a=(a=G(a))&&a.V)b&&(b.nodeType===Node.DOCUMENT_FRAGMENT_NODE?a.addedNodes.push.apply(a.addedNodes,da(b.childNodes)):a.addedNodes.push(b)),c&&a.removedNodes.push(c),ib(a)}
var Nc=K({get parentNode(){var a=G(this);a=a&&a.parentNode;return void 0!==a?a:this.__shady_native_parentNode},get firstChild(){var a=G(this);a=a&&a.firstChild;return void 0!==a?a:this.__shady_native_firstChild},get lastChild(){var a=G(this);a=a&&a.lastChild;return void 0!==a?a:this.__shady_native_lastChild},get nextSibling(){var a=G(this);a=a&&a.nextSibling;return void 0!==a?a:this.__shady_native_nextSibling},get previousSibling(){var a=G(this);a=a&&a.previousSibling;return void 0!==a?a:this.__shady_native_previousSibling},
get childNodes(){if(Pa(this)){var a=G(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=G(this);(a=a&&a.parentNode)&&a.nodeType!==Node.ELEMENT_NODE&&(a=null);return void 0!==a?a:this.__shady_native_parentElement},get isConnected(){if(Gc&&Gc.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;
var a=this.ownerDocument;if(Za){if(a.__shady_native_contains(this))return!0}else if(a.documentElement&&a.documentElement.__shady_native_contains(this))return!0;for(a=this;a&&!(a instanceof Document);)a=a.__shady_parentNode||(I(a)?a.host:void 0);return!!(a&&a instanceof Document)},get textContent(){if(Pa(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(!Pa(this)&&H.l){var b=this.__shady_firstChild;(b!=this.__shady_lastChild||b&&b.nodeType!=Node.TEXT_NODE)&&Hc(this);this.__shady_native_textContent=a}else Hc(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!==Dc&&a.ownerDocument!==Dc)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=G(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;Kc(this,a);var d=[],e=(c=Lc(this))?c.host.localName:Bc(this),f=a.__shady_parentNode;if(f){var g=Bc(a);var h=!!c||!Lc(a)||
Ec&&void 0!==this.__noInsertionPoint;f.__shady_removeChild(a,h)}f=!0;var k=(!Ec||void 0===a.__noInsertionPoint&&void 0===this.__noInsertionPoint)&&!Ac(a,e),l=c&&!a.__noInsertionPoint&&(!Ec||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE);if(l||k)k&&(g=g||Bc(a)),Cc(a,function(n){l&&"slot"===n.localName&&d.push(n);if(k){var w=g;xc()&&(w&&zc(n,w),(w=xc())&&w.scopeNode(n,e))}});d.length&&(c.La(d),c.o());Pa(this)&&(tc(a,this,b),c=G(this),Sa(this)?(c.root.o(),f=!1):c.root&&(f=!1));f?(c=I(this)?this.host:this,
b?(b=Jc(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||!I(a))return this.__shady_insertBefore(a)},removeChild:function(a,b){b=void 0===b?!1:b;if(this.ownerDocument!==Dc)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);Kc(this,null,a);var c=Lc(a),d=c&&c.Zb(a),e=G(this);
if(Pa(this)&&(uc(a,this),Sa(this))){e.root.o();var f=!0}if(xc()&&!b&&c&&a.nodeType!==Node.TEXT_NODE){var g=Bc(a);Cc(a,function(h){zc(h,g)})}Ic(a);c&&((b=this&&"slot"===this.localName)&&(f=!0),(d||b)&&c.o());f||(f=I(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=B(this),c=b.ka;void 0===c&&(I(this)?(c=this,b.ka=c):(c=(c=this.__shady_parentNode)?c.__shady_getRootNode(a):this,document.documentElement.__shady_native_contains(this)&&(b.ka=c)));return c}},contains:function(a){return $a(this,a)}});function Oc(a,b,c){var d=[];Pc(a,b,c,d);return d}function Pc(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:(Pc(e,f,g,h),e=void 0)}if(e)break}}
var Qc=K({get firstElementChild(){var a=G(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=G(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 Pa(this)?ab(Array.prototype.filter.call(cb(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}}),Rc=K({querySelector:function(a){return Oc(this,function(b){return Ua.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 b.filter(function(d){return d.__shady_getRootNode()==c})}return Oc(this,function(d){return Ua.call(d,
a)})}}),Sc=H.kb&&!H.F?Object.assign({},Qc):Qc;Object.assign(Qc,Rc);var Tc=K({getElementById:function(a){return""===a?null:Oc(this,function(b){return b.id==a},function(b){return!!b})[0]||null}});var Uc=K({get activeElement(){var a=H.l?document.__shady_native_activeElement:document.activeElement;if(!a||!a.nodeType)return null;var b=!!I(this);if(!(this===document||b&&this.host!==a&&this.host.__shady_native_contains(a)))return null;for(b=Lc(a);b&&b!==this;)a=b.host,b=Lc(a);return this===document?b?null:a:b===this?a:null}});var Vc=document.implementation.createHTMLDocument("inert"),Wc=K({get innerHTML(){return Pa(this)?sb("template"===this.localName?this.content:this,cb):this.__shady_native_innerHTML},set innerHTML(a){if("template"===this.localName)this.__shady_native_innerHTML=a;else{Hc(this);var b=this.localName||"div";b=this.namespaceURI&&this.namespaceURI!==Vc.namespaceURI?Vc.createElementNS(this.namespaceURI,b):Vc.createElement(b);for(H.l?b.__shady_native_innerHTML=a:b.innerHTML=a;a=b.__shady_firstChild;)this.__shady_insertBefore(a)}}});var Xc=K({addEventListener:function(a,b,c){"object"!==typeof c&&(c={capture:!!c});c.H=c.H||this;this.host.__shady_addEventListener(a,b,c)},removeEventListener:function(a,b,c){"object"!==typeof c&&(c={capture:!!c});c.H=c.H||this;this.host.__shady_removeEventListener(a,b,c)}});function Yc(a,b){J(a,Xc,b);J(a,Uc,b);J(a,Wc,b);J(a,Qc,b);H.F&&!b?(J(a,Nc,b),J(a,Tc,b)):H.l||(J(a,Kb),J(a,Ib),J(a,Jb))};var Zc={},$c=H.deferConnectionCallbacks&&"loading"===document.readyState,ad;function bd(a){var b=[];do b.unshift(a);while(a=a.__shady_parentNode);return b}function cd(a,b,c){if(a!==Zc)throw new TypeError("Illegal constructor");this.a=null;this.Ua(b,c)}p=cd.prototype;
p.Ua=function(a,b){this.Tb="ShadyRoot";this.host=a;this.mode=b&&b.mode;vc(this.host);a=B(this.host);a.root=this;a.Bc="closed"!==this.mode?this:null;a=B(this);a.firstChild=a.lastChild=a.parentNode=a.nextSibling=a.previousSibling=null;if(H.preferPerformance)for(;a=this.host.__shady_native_firstChild;)this.host.__shady_native_removeChild(a);else this.o()};p.o=function(){var a=this;this.L||(this.L=!0,fb(function(){return a.da()}))};p.Nb=function(){for(var a,b=this;b;)b.L&&(a=b),b=b.Mb();return a};
p.Mb=function(){var a=this.host.__shady_getRootNode();if(I(a)){var b=G(this.host);if(b&&0<b.aa)return a}};p.da=function(){var a=this.L&&this.Nb();a&&a._renderSelf()};p.Ib=function(){!this.Ta&&this.L&&this.da()};
p._renderSelf=function(){var a=$c;$c=!0;this.L=!1;this.a&&(this.Cb(),this.Ab());if(!H.preferPerformance&&!this.Ta)for(var b=this.host.__shady_firstChild;b;b=b.__shady_nextSibling){var c=G(b);b.__shady_native_parentNode!==this.host||"slot"!==b.localName&&c.assignedSlot||this.host.__shady_native_removeChild(b)}this.Ta=!0;$c=a;ad&&ad()};
p.Cb=function(){this.ga();for(var a=0,b;a<this.a.length;a++)b=this.a[a],this.zb(b);for(a=this.host.__shady_firstChild;a;a=a.__shady_nextSibling)this.Oa(a);for(a=0;a<this.a.length;a++){b=this.a[a];var c=G(b);if(!c.assignedNodes.length)for(var d=b.__shady_firstChild;d;d=d.__shady_nextSibling)this.Oa(d,b);(d=(d=G(b.__shady_parentNode))&&d.root)&&(d.Sa()||d.L)&&d._renderSelf();this.Ka(c.O,c.assignedNodes);if(d=c.Ya){for(var e=0;e<d.length;e++)G(d[e]).wa=null;c.Ya=null;d.length>c.assignedNodes.length&&
(c.Ca=!0)}c.Ca&&(c.Ca=!1,this.Qa(b))}};p.Oa=function(a,b){var c=B(a),d=c.wa;c.wa=null;b||(b=(b=this.c[a.__shady_slot||"__catchall"])&&b[0]);b?(B(b).assignedNodes.push(a),c.assignedSlot=b):c.assignedSlot=void 0;d!==c.assignedSlot&&c.assignedSlot&&(B(c.assignedSlot).Ca=!0)};p.zb=function(a){var b=G(a),c=b.assignedNodes;b.assignedNodes=[];b.O=[];if(b.Ya=c)for(b=0;b<c.length;b++){var d=G(c[b]);d.wa=d.assignedSlot;d.assignedSlot===a&&(d.assignedSlot=null)}};
p.Ka=function(a,b){for(var c=0,d=void 0;c<b.length&&(d=b[c]);c++)if("slot"==d.localName){var e=G(d).assignedNodes;e&&e.length&&this.Ka(a,e)}else a.push(b[c])};p.Qa=function(a){a.__shady_native_dispatchEvent(new Event("slotchange"));a=G(a);a.assignedSlot&&this.Qa(a.assignedSlot)};p.Ab=function(){for(var a=this.a,b=[],c=0;c<a.length;c++){var d=a[c].__shady_parentNode,e=G(d);e&&e.root||!(0>b.indexOf(d))||b.push(d)}for(a=0;a<b.length;a++)c=b[a],this.jc(c===this?this.host:c,this.Bb(c))};
p.Bb=function(a){var b=[];for(a=a.__shady_firstChild;a;a=a.__shady_nextSibling)if(this.Qb(a))for(var c=G(a).O,d=0;d<c.length;d++)b.push(c[d]);else b.push(a);return b};p.Qb=function(a){return"slot"==a.localName};
p.jc=function(a,b){for(var c=bb(a),d=qc(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.W.length&&(k=g.W[h]);h++)k.__shady_native_parentNode===a&&a.__shady_native_removeChild(k),c.splice(g.index+f,1);f-=g.ha}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.ha;h++)k=b[h],a.__shady_native_insertBefore(k,g),c.splice(h,0,k)};p.Gb=function(){this.C=this.C||[];this.a=this.a||[];this.c=this.c||{}};
p.La=function(a){this.Gb();this.C.push.apply(this.C,da(a))};p.ga=function(){this.C&&this.C.length&&(this.Ub(this.C),this.C=[])};p.Ub=function(a){for(var b,c=0;c<a.length;c++){var d=a[c];vc(d);var e=d.__shady_parentNode;vc(e);e=G(e);e.aa=(e.aa||0)+1;e=this.Wa(d);this.c[e]?(b=b||{},b[e]=!0,this.c[e].push(d)):this.c[e]=[d];this.a.push(d)}if(b)for(var f in b)this.c[f]=this.ab(this.c[f])};p.Wa=function(a){var b=a.name||a.getAttribute("name")||"__catchall";return a.ub=b};
p.ab=function(a){return a.sort(function(b,c){b=bd(b);for(var d=bd(c),e=0;e<b.length;e++){c=b[e];var f=d[e];if(c!==f)return b=cb(c.__shady_parentNode),b.indexOf(c)-b.indexOf(f)}})};p.Zb=function(a){if(this.a){this.ga();var b=this.c,c;for(c in b)for(var d=b[c],e=0;e<d.length;e++){var f=d[e];if($a(a,f)){d.splice(e,1);var g=this.a.indexOf(f);0<=g&&(this.a.splice(g,1),(g=G(f.__shady_parentNode))&&g.aa&&g.aa--);e--;this.$b(f);g=!0}}return g}};
p.kc=function(a){if(this.a){this.ga();var b=a.ub,c=this.Wa(a);if(c!==b){b=this.c[b];var d=b.indexOf(a);0<=d&&b.splice(d,1);b=this.c[c]||(this.c[c]=[]);b.push(a);1<b.length&&(this.c[c]=this.ab(b))}}};p.$b=function(a){a=G(a);var b=a.O;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.O=[];a.assignedNodes=[]};p.Sa=function(){this.ga();return!(!this.a||!this.a.length)};
(function(a){a.__proto__=DocumentFragment.prototype;Yc(a,"__shady_");Yc(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})})})(cd.prototype);
if(window.customElements&&H.Ea&&!H.preferPerformance){var dd=new Map;ad=function(){var a=[];dd.forEach(function(d,e){a.push([e,d])});dd.clear();for(var b=0;b<a.length;b++){var c=a[b][0];a[b][1]?c.__shadydom_connectedCallback():c.__shadydom_disconnectedCallback()}};$c&&document.addEventListener("readystatechange",function(){$c=!1;ad()},{once:!0});var ed=function(a,b,c){var d=0,e="__isConnected"+d++;if(b||c)a.prototype.connectedCallback=a.prototype.__shadydom_connectedCallback=function(){$c?dd.set(this,
!0):this[e]||(this[e]=!0,b&&b.call(this))},a.prototype.disconnectedCallback=a.prototype.__shadydom_disconnectedCallback=function(){$c?this.isConnected||dd.set(this,!1):this[e]&&(this[e]=!1,c&&c.call(this))};return a},fd=window.customElements.define,gd=function(a,b){var c=b.prototype.connectedCallback,d=b.prototype.disconnectedCallback;fd.call(window.customElements,a,ed(b,c,d));b.prototype.connectedCallback=c;b.prototype.disconnectedCallback=d};window.customElements.define=gd;Object.defineProperty(window.CustomElementRegistry.prototype,
"define",{value:gd,configurable:!0})}function Lc(a){a=a.__shady_getRootNode();if(I(a))return a};function hd(a){this.node=a}p=hd.prototype;p.addEventListener=function(a,b,c){return this.node.__shady_addEventListener(a,b,c)};p.removeEventListener=function(a,b,c){return this.node.__shady_removeEventListener(a,b,c)};p.appendChild=function(a){return this.node.__shady_appendChild(a)};p.insertBefore=function(a,b){return this.node.__shady_insertBefore(a,b)};p.removeChild=function(a){return this.node.__shady_removeChild(a)};p.replaceChild=function(a,b){return this.node.__shady_replaceChild(a,b)};
p.cloneNode=function(a){return this.node.__shady_cloneNode(a)};p.getRootNode=function(a){return this.node.__shady_getRootNode(a)};p.contains=function(a){return this.node.__shady_contains(a)};p.dispatchEvent=function(a){return this.node.__shady_dispatchEvent(a)};p.setAttribute=function(a,b){this.node.__shady_setAttribute(a,b)};p.getAttribute=function(a){return this.node.__shady_native_getAttribute(a)};p.hasAttribute=function(a){return this.node.__shady_native_hasAttribute(a)};p.removeAttribute=function(a){this.node.__shady_removeAttribute(a)};
p.attachShadow=function(a){return this.node.__shady_attachShadow(a)};p.focus=function(){this.node.__shady_native_focus()};p.blur=function(){this.node.__shady_blur()};p.importNode=function(a,b){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_importNode(a,b)};p.getElementById=function(a){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_getElementById(a)};p.querySelector=function(a){return this.node.__shady_querySelector(a)};
p.querySelectorAll=function(a,b){return this.node.__shady_querySelectorAll(a,b)};p.assignedNodes=function(a){if("slot"===this.node.localName)return this.node.__shady_assignedNodes(a)};
ha.Object.defineProperties(hd.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){if(I(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(I(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}}});oc.forEach(function(a){Object.defineProperty(hd.prototype,a,{get:function(){return this.node["__shady_"+a]},set:function(b){this.node["__shady_"+a]=b},configurable:!0})});var id=new WeakMap;function jd(a){if(I(a)||a instanceof hd)return a;var b=id.get(a);b||(b=new hd(a),id.set(a,b));return b};var kd=K({dispatchEvent:ec,addEventListener:fc,removeEventListener:hc});var ld=K({get assignedSlot(){var a=this.__shady_parentNode;(a=a&&a.__shady_shadowRoot)&&a.da();return(a=G(this))&&a.assignedSlot||null}});var md=window.document;function nd(a,b){"slot"===b?(a=a.__shady_parentNode,Sa(a)&&G(a).root.o()):"slot"===a.localName&&"name"===b&&(b=Lc(a))&&(b.kc(a),b.o())}
var od=K({get previousElementSibling(){var a=G(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=G(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 shadowRoot(){var a=G(this);return a&&a.Bc||null},get className(){return this.getAttribute("class")||""},set className(a){this.__shady_setAttribute("class",a)},setAttribute:function(a,b){this.ownerDocument!==md?this.__shady_native_setAttribute(a,b):yc(this,a,b)||(this.__shady_native_setAttribute(a,b),nd(this,a))},removeAttribute:function(a){this.ownerDocument!==md?this.__shady_native_removeAttribute(a):yc(this,a,"")?""===this.getAttribute(a)&&this.__shady_native_removeAttribute(a):
(this.__shady_native_removeAttribute(a),nd(this,a))},attachShadow:function(a){if(!this)throw Error("Must provide a host.");if(!a)throw Error("Not enough arguments.");if(a.shadyUpgradeFragment&&!H.qb){var b=a.shadyUpgradeFragment;b.__proto__=ShadowRoot.prototype;b.Ua(this,a);vc(b,b);a=b.__noInsertionPoint?null:b.querySelectorAll("slot");b.__noInsertionPoint=void 0;a&&a.length&&(b.La(a),b.o());b.host.__shady_native_appendChild(b)}else b=new cd(Zc,this,a);return b}});var pd=K({blur:function(){var a=G(this);(a=(a=a&&a.root)&&a.activeElement)?a.__shady_blur():this.__shady_native_blur()}});oc.forEach(function(a){pd[a]={set:function(b){var c=B(this),d=a.substring(2);c.G||(c.G={});c.G[a]&&this.removeEventListener(d,c.G[a]);this.__shady_addEventListener(d,b);c.G[a]=b},get:function(){var b=G(this);return b&&b.G&&b.G[a]},configurable:!0}});var qd=K({assignedNodes:function(a){if("slot"===this.localName){var b=this.__shady_getRootNode();b&&I(b)&&b.da();return(b=G(this))?(a&&a.flatten?b.O:b.assignedNodes)||[]:[]}},addEventListener:function(a,b,c){if("slot"!==this.localName||"slotchange"===a)fc.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.H=this;d.__shady_addEventListener(a,b,c)}},removeEventListener:function(a,
b,c){if("slot"!==this.localName||"slotchange"===a)hc.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.H=this;d.__shady_removeEventListener(a,b,c)}}});var rd=window.document,sd=K({importNode:function(a,b){if(a.ownerDocument!==rd||"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 td=K({dispatchEvent:ec,addEventListener:fc.bind(window),removeEventListener:hc.bind(window)});var ud={};Object.getOwnPropertyDescriptor(HTMLElement.prototype,"parentElement")&&(ud.parentElement=Nc.parentElement);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"contains")&&(ud.contains=Nc.contains);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"children")&&(ud.children=Qc.children);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML")&&(ud.innerHTML=Wc.innerHTML);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"className")&&(ud.className=od.className);
var vd={EventTarget:[kd],Node:[Nc,window.EventTarget?null:kd],Text:[ld],Element:[od,Qc,ld,!H.l||"innerHTML"in Element.prototype?Wc:null,window.HTMLSlotElement?null:qd],HTMLElement:[pd,ud],HTMLSlotElement:[qd],DocumentFragment:[Sc,Tc],Document:[sd,Sc,Tc,Uc],Window:[td]},wd=H.l?null:["innerHTML","textContent"];function xd(a){var b=a?null:wd,c={},d;for(d in vd)c.Y=window[d]&&window[d].prototype,vd[d].forEach(function(e){return function(f){return e.Y&&f&&J(e.Y,f,a,b)}}(c)),c={Y:c.Y}};if(H.Ea){var ShadyDOM={inUse:H.Ea,patch:function(a){Ob(a);Nb(a);return a},isShadyRoot:I,enqueue:fb,flush:gb,flushInitial:function(a){a.Ib()},settings:H,filterMutations:lb,observeChildren:jb,unobserveChildren:kb,deferConnectionCallbacks:H.deferConnectionCallbacks,preferPerformance:H.preferPerformance,handlesDynamicScoping:!0,wrap:H.F?jd:function(a){return a},Wrapper:hd,composedPath:Xb,noPatch:H.F,nativeMethods:ub,nativeTree:Ab};window.ShadyDOM=ShadyDOM;Hb();xd("__shady_");Object.defineProperty(document,
"_activeElement",Uc.activeElement);J(Window.prototype,td,"__shady_");H.F||(xd(),nc());ic();window.Event=kc;window.CustomEvent=lc;window.MouseEvent=mc;window.ShadowRoot=cd};var yd=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function zd(a){var b=yd.has(a);a=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(a);return!b&&a}var Ad=document.contains?document.contains.bind(document):document.documentElement.contains.bind(document.documentElement);
function P(a){var b=a.isConnected;if(void 0!==b)return b;if(Ad(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 Bd(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 Cd(a,b){for(;b&&b!==a&&!b.nextSibling;)b=b.parentNode;return b&&b!==a?b.nextSibling:null}
function Dd(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)Dd(d,b,c);d=Cd(a,e);continue}else if("template"===f){d=Cd(a,e);continue}if(e=e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)Dd(e,b,c)}d=d.firstChild?d.firstChild:Cd(a,d)}}function R(a,b,c){a[b]=c};function Ed(){var a=Fd&&Fd.noDocumentConstructionObserver,b=Fd&&Fd.shadyDomFastWalk;this.s=new Map;this.Na=new Map;this.T=[];this.ua=[];this.J=!1;this.shadyDomFastWalk=b;this.Kc=!a}function Gd(a,b,c){a.s.set(b,c);a.Na.set(c.constructorFunction,c)}function Hd(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 Dd(b,c,d)}
function Id(a,b){a.J=!0;a.T.push(b)}function Jd(a,b){a.J=!0;a.ua.push(b)}function Kd(a,b){a.J&&Hd(a,b,function(c){return Ld(a,c)})}function Ld(a,b){if(a.J&&!b.__CE_patched){b.__CE_patched=!0;for(var c=0;c<a.T.length;c++)a.T[c](b);for(c=0;c<a.ua.length;c++)a.ua[c](b)}}function Md(a,b){var c=[];Hd(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):Nd(a,d)}}
function S(a,b){var c=[];Hd(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 Od(a,b,c){c=void 0===c?{}:c;var d=c.Lc,e=c.upgrade||function(g){return Nd(a,g)},f=[];Hd(a,b,function(g){a.J&&Ld(a,g);if("link"===g.localName&&"import"===g.getAttribute("rel")){var h=g["import"];h instanceof Node&&(h.__CE_isImportDocument=!0,h.__CE_hasRegistry=!0);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 l=new Set(d);l["delete"](k);Od(a,k,{Lc:l,upgrade:e})}})}else f.push(g)},
d);for(b=0;b<f.length;b++)e(f[b])}
function Nd(a,b){if(void 0===b.__CE_state){var c=b.ownerDocument;if(c.defaultView||c.__CE_isImportDocument&&c.__CE_hasRegistry)if(c=a.s.get(b.localName)){c.constructionStack.push(b);var d=c.constructorFunction;try{try{if(new d!==b)throw Error("The custom element constructor did not produce the element being upgraded.");}finally{c.constructionStack.pop()}}catch(g){throw b.__CE_state=2,g;}b.__CE_state=1;b.__CE_definition=c;if(c.attributeChangedCallback&&b.hasAttributes())for(c=c.observedAttributes,
d=0;d<c.length;d++){var e=c[d],f=b.getAttribute(e);null!==f&&a.attributeChangedCallback(b,e,null,f,null)}P(b)&&a.connectedCallback(b)}}}Ed.prototype.connectedCallback=function(a){var b=a.__CE_definition;b.connectedCallback&&b.connectedCallback.call(a)};Ed.prototype.disconnectedCallback=function(a){var b=a.__CE_definition;b.disconnectedCallback&&b.disconnectedCallback.call(a)};
Ed.prototype.attributeChangedCallback=function(a,b,c,d,e){var f=a.__CE_definition;f.attributeChangedCallback&&-1<f.observedAttributes.indexOf(b)&&f.attributeChangedCallback.call(a,b,c,d,e)};function Pd(a){var b=document;this.b=a;this.ba=b;this.K=void 0;Od(this.b,this.ba);"loading"===this.ba.readyState&&(this.K=new MutationObserver(this.Pb.bind(this)),this.K.observe(this.ba,{childList:!0,subtree:!0}))}Pd.prototype.disconnect=function(){this.K&&this.K.disconnect()};Pd.prototype.Pb=function(a){var b=this.ba.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++)Od(this.b,c[d])};function Qd(){var a=this;this.xa=this.f=void 0;this.Za=new Promise(function(b){a.xa=b;a.f&&b(a.f)})}Qd.prototype.resolve=function(a){if(this.f)throw Error("Already resolved.");this.f=a;this.xa&&this.xa(a)};function Rd(a){this.qa=!1;this.b=a;this.Ba=new Map;this.sa=function(b){return b()};this.ca=!1;this.va=[];this.Pa=a.Kc?new Pd(a):void 0}p=Rd.prototype;
p.define=function(a,b){var c=this;if(!(b instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!zd(a))throw new SyntaxError("The element name '"+a+"' is not valid.");if(this.b.s.get(a))throw Error("A custom element with name '"+a+"' has already been defined.");if(this.qa)throw Error("A custom element is already being defined.");this.qa=!0;var d;try{var e=function(n){var w=f[n];if(void 0!==w&&!(w instanceof Function))throw Error("The '"+n+"' callback must be a function.");
return w},f=b.prototype;if(!(f instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var g=e("connectedCallback");var h=e("disconnectedCallback");var k=e("adoptedCallback");var l=(d=e("attributeChangedCallback"))&&b.observedAttributes||[]}catch(n){throw n;}finally{this.qa=!1}b={localName:a,constructorFunction:b,connectedCallback:g,disconnectedCallback:h,adoptedCallback:k,attributeChangedCallback:d,observedAttributes:l,constructionStack:[]};Gd(this.b,
a,b);this.va.push(b);this.ca||(this.ca=!0,this.sa(function(){return c.Hb()}))};p.upgrade=function(a){Od(this.b,a)};
p.Hb=function(){var a=this;if(!1!==this.ca){this.ca=!1;for(var b=this.va,c=[],d=new Map,e=0;e<b.length;e++)d.set(b[e].localName,[]);Od(this.b,document,{upgrade:function(h){if(void 0===h.__CE_state){var k=h.localName,l=d.get(k);l?l.push(h):a.b.s.get(k)&&c.push(h)}}});for(e=0;e<c.length;e++)Nd(this.b,c[e]);for(;0<b.length;){var f=b.shift();e=f.localName;f=d.get(f.localName);for(var g=0;g<f.length;g++)Nd(this.b,f[g]);(e=this.Ba.get(e))&&e.resolve(void 0)}}};p.get=function(a){if(a=this.b.s.get(a))return a.constructorFunction};
p.whenDefined=function(a){if(!zd(a))return Promise.reject(new SyntaxError("'"+a+"' is not a valid custom element name."));var b=this.Ba.get(a);if(b)return b.Za;b=new Qd;this.Ba.set(a,b);this.b.s.get(a)&&!this.va.some(function(c){return c.localName===a})&&b.resolve(void 0);return b.Za};p.polyfillWrapFlushCallback=function(a){this.Pa&&this.Pa.disconnect();var b=this.sa;this.sa=function(c){return a(function(){return b(c)})}};window.CustomElementRegistry=Rd;Rd.prototype.define=Rd.prototype.define;
Rd.prototype.upgrade=Rd.prototype.upgrade;Rd.prototype.get=Rd.prototype.get;Rd.prototype.whenDefined=Rd.prototype.whenDefined;Rd.prototype.polyfillWrapFlushCallback=Rd.prototype.polyfillWrapFlushCallback;var Sd=window.Document.prototype.createElement,Td=window.Document.prototype.createElementNS,Ud=window.Document.prototype.importNode,Vd=window.Document.prototype.prepend,Wd=window.Document.prototype.append,Xd=window.DocumentFragment.prototype.prepend,Yd=window.DocumentFragment.prototype.append,Zd=window.Node.prototype.cloneNode,$d=window.Node.prototype.appendChild,ae=window.Node.prototype.insertBefore,be=window.Node.prototype.removeChild,ce=window.Node.prototype.replaceChild,de=Object.getOwnPropertyDescriptor(window.Node.prototype,
"textContent"),ee=window.Element.prototype.attachShadow,fe=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),ge=window.Element.prototype.getAttribute,he=window.Element.prototype.setAttribute,ie=window.Element.prototype.removeAttribute,je=window.Element.prototype.getAttributeNS,ke=window.Element.prototype.setAttributeNS,le=window.Element.prototype.removeAttributeNS,me=window.Element.prototype.insertAdjacentElement,ne=window.Element.prototype.insertAdjacentHTML,oe=window.Element.prototype.prepend,
pe=window.Element.prototype.append,qe=window.Element.prototype.before,re=window.Element.prototype.after,se=window.Element.prototype.replaceWith,te=window.Element.prototype.remove,ue=window.HTMLElement,ve=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),we=window.HTMLElement.prototype.insertAdjacentElement,xe=window.HTMLElement.prototype.insertAdjacentHTML;var ye=new function(){};function ze(){var a=Ae;window.HTMLElement=function(){function b(){var c=this.constructor,d=a.Na.get(c);if(!d)throw Error("The custom element being constructed was not registered with `customElements`.");var e=d.constructionStack;if(0===e.length)return e=Sd.call(document,d.localName),Object.setPrototypeOf(e,c.prototype),e.__CE_state=1,e.__CE_definition=d,Ld(a,e),e;d=e.length-1;var f=e[d];if(f===ye)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");
e[d]=ye;Object.setPrototypeOf(f,c.prototype);Ld(a,f);return f}b.prototype=ue.prototype;Object.defineProperty(b.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:b});return b}()};function Be(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=[],l=0;l<g.length;l++){var n=g[l];n instanceof Element&&P(n)&&k.push(n);if(n instanceof DocumentFragment)for(n=n.firstChild;n;n=n.nextSibling)h.push(n);else h.push(n)}e.apply(this,g);for(g=0;g<k.length;g++)S(a,k[g]);if(P(this))for(g=0;g<h.length;g++)k=h[g],k instanceof Element&&Md(a,k)}}void 0!==c.prepend&&R(b,"prepend",d(c.prepend));void 0!==c.append&&R(b,"append",d(c.append))}
;function Ce(){var a=Ae;R(Document.prototype,"createElement",function(b){if(this.__CE_hasRegistry){var c=a.s.get(b);if(c)return new c.constructorFunction}b=Sd.call(this,b);Ld(a,b);return b});R(Document.prototype,"importNode",function(b,c){b=Ud.call(this,b,!!c);this.__CE_hasRegistry?Od(a,b):Kd(a,b);return b});R(Document.prototype,"createElementNS",function(b,c){if(this.__CE_hasRegistry&&(null===b||"http://www.w3.org/1999/xhtml"===b)){var d=a.s.get(c);if(d)return new d.constructorFunction}b=Td.call(this,
b,c);Ld(a,b);return b});Be(a,Document.prototype,{prepend:Vd,append:Wd})};function De(){function a(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&&P(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++)S(b,f[e])}}})}var b=Ae;R(Node.prototype,"insertBefore",function(c,d){if(c instanceof DocumentFragment){var e=Bd(c);c=ae.call(this,c,d);if(P(this))for(d=
0;d<e.length;d++)Md(b,e[d]);return c}e=c instanceof Element&&P(c);d=ae.call(this,c,d);e&&S(b,c);P(this)&&Md(b,c);return d});R(Node.prototype,"appendChild",function(c){if(c instanceof DocumentFragment){var d=Bd(c);c=$d.call(this,c);if(P(this))for(var e=0;e<d.length;e++)Md(b,d[e]);return c}d=c instanceof Element&&P(c);e=$d.call(this,c);d&&S(b,c);P(this)&&Md(b,c);return e});R(Node.prototype,"cloneNode",function(c){c=Zd.call(this,!!c);this.ownerDocument.__CE_hasRegistry?Od(b,c):Kd(b,c);return c});R(Node.prototype,
"removeChild",function(c){var d=c instanceof Element&&P(c),e=be.call(this,c);d&&S(b,c);return e});R(Node.prototype,"replaceChild",function(c,d){if(c instanceof DocumentFragment){var e=Bd(c);c=ce.call(this,c,d);if(P(this))for(S(b,d),d=0;d<e.length;d++)Md(b,e[d]);return c}e=c instanceof Element&&P(c);var f=ce.call(this,c,d),g=P(this);g&&S(b,d);e&&S(b,c);g&&Md(b,c);return f});de&&de.get?a(Node.prototype,de):Id(b,function(c){a(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;)be.call(this,this.firstChild);null!=d&&""!==d&&$d.call(this,document.createTextNode(d))}})})};function Ee(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 l=f[k];l instanceof Element&&P(l)&&h.push(l);if(l instanceof DocumentFragment)for(l=l.firstChild;l;l=l.nextSibling)g.push(l);else g.push(l)}d.apply(this,f);for(f=0;f<h.length;f++)S(a,h[f]);if(P(this))for(f=0;f<g.length;f++)h=g[f],h instanceof Element&&Md(a,h)}}var c=Element.prototype;void 0!==qe&&R(c,"before",b(qe));void 0!==re&&R(c,"after",b(re));void 0!==
se&&R(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&&P(k)&&g.push(k);if(k instanceof DocumentFragment)for(k=k.firstChild;k;k=k.nextSibling)f.push(k);else f.push(k)}h=P(this);se.apply(this,e);for(e=0;e<g.length;e++)S(a,g[e]);if(h)for(S(a,this),e=0;e<f.length;e++)g=f[e],g instanceof Element&&Md(a,g)});void 0!==te&&R(c,"remove",function(){var d=P(this);te.call(this);d&&S(a,this)})};function Fe(){function a(e,f){Object.defineProperty(e,"innerHTML",{enumerable:f.enumerable,configurable:!0,get:f.get,set:function(g){var h=this,k=void 0;P(this)&&(k=[],Hd(d,this,function(w){w!==h&&k.push(w)}));f.set.call(this,g);if(k)for(var l=0;l<k.length;l++){var n=k[l];1===n.__CE_state&&d.disconnectedCallback(n)}this.ownerDocument.__CE_hasRegistry?Od(d,this):Kd(d,this);return g}})}function b(e,f){R(e,"insertAdjacentElement",function(g,h){var k=P(h);g=f.call(this,g,h);k&&S(d,h);P(g)&&Md(d,h);return g})}
function c(e,f){function g(h,k){for(var l=[];h!==k;h=h.nextSibling)l.push(h);for(k=0;k<l.length;k++)Od(d,l[k])}R(e,"insertAdjacentHTML",function(h,k){h=h.toLowerCase();if("beforebegin"===h){var l=this.previousSibling;f.call(this,h,k);g(l||this.parentNode.firstChild,this)}else if("afterbegin"===h)l=this.firstChild,f.call(this,h,k),g(this.firstChild,l);else if("beforeend"===h)l=this.lastChild,f.call(this,h,k),g(l||this.firstChild,null);else if("afterend"===h)l=this.nextSibling,f.call(this,h,k),g(this.nextSibling,
l);else throw new SyntaxError("The value provided ("+String(h)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");})}var d=Ae;ee&&R(Element.prototype,"attachShadow",function(e){e=ee.call(this,e);var f=d;if(f.J&&!e.__CE_patched){e.__CE_patched=!0;for(var g=0;g<f.T.length;g++)f.T[g](e)}return this.__CE_shadowRoot=e});fe&&fe.get?a(Element.prototype,fe):ve&&ve.get?a(HTMLElement.prototype,ve):Jd(d,function(e){a(e,{enumerable:!0,configurable:!0,get:function(){return Zd.call(this,
!0).innerHTML},set:function(f){var g="template"===this.localName,h=g?this.content:this,k=Td.call(document,this.namespaceURI,this.localName);for(k.innerHTML=f;0<h.childNodes.length;)be.call(h,h.childNodes[0]);for(f=g?k.content:k;0<f.childNodes.length;)$d.call(h,f.childNodes[0])}})});R(Element.prototype,"setAttribute",function(e,f){if(1!==this.__CE_state)return he.call(this,e,f);var g=ge.call(this,e);he.call(this,e,f);f=ge.call(this,e);d.attributeChangedCallback(this,e,g,f,null)});R(Element.prototype,
"setAttributeNS",function(e,f,g){if(1!==this.__CE_state)return ke.call(this,e,f,g);var h=je.call(this,e,f);ke.call(this,e,f,g);g=je.call(this,e,f);d.attributeChangedCallback(this,f,h,g,e)});R(Element.prototype,"removeAttribute",function(e){if(1!==this.__CE_state)return ie.call(this,e);var f=ge.call(this,e);ie.call(this,e);null!==f&&d.attributeChangedCallback(this,e,f,null,null)});R(Element.prototype,"removeAttributeNS",function(e,f){if(1!==this.__CE_state)return le.call(this,e,f);var g=je.call(this,
e,f);le.call(this,e,f);var h=je.call(this,e,f);g!==h&&d.attributeChangedCallback(this,f,g,h,e)});we?b(HTMLElement.prototype,we):me?b(Element.prototype,me):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");xe?c(HTMLElement.prototype,xe):ne?c(Element.prototype,ne):console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched.");Be(d,Element.prototype,{prepend:oe,append:pe});Ee(d)};var Fd=window.customElements;if(!Fd||Fd.forcePolyfill||"function"!=typeof Fd.define||"function"!=typeof Fd.get){var Ae=new Ed;ze();Ce();Be(Ae,DocumentFragment.prototype,{prepend:Xd,append:Yd});De();Fe();document.__CE_hasRegistry=!0;var customElements=new Rd(Ae);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:customElements})};function Ge(){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 He(a){var b=a=a.replace(Ie,"").replace(Je,""),c=new Ge;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 Ge;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 Ke(c,a)}
function Ke(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(Le," "),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(Me)&&(a.type=7,a.keyframesName=a.selector.split(Le).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++)Ke(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 Ne(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=Ne(h,b,d);else b?b=a.cssText:(b=a.cssText,b=b.replace(Oe,"").replace(Pe,""),b=b.replace(Te,"").replace(Ue,"")),(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 Ie=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,Je=/@import[^;]*;/gim,Oe=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,Pe=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,Te=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,Ue=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,Me=/^@[^\s]*keyframes/,Le=/\s+/g;var T=!(window.ShadyDOM&&window.ShadyDOM.inUse),Ve;function We(a){Ve=a&&a.shimcssproperties?!1:T||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))}var Xe;window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(Xe=window.ShadyCSS.cssBuild);var Ye=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);
window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?Ve=window.ShadyCSS.nativeCss:window.ShadyCSS?(We(window.ShadyCSS),window.ShadyCSS=void 0):We(window.WebComponents&&window.WebComponents.flags);var W=Ve;var Ze=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,$e=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,af=/(--[\w-]+)\s*([:,;)]|$)/gi,bf=/(animation\s*:)|(animation-name\s*:)/,cf=/@media\s(.*)/,df=/\{[^}]*\}/g;var ef=new Set;function ff(a,b){if(!a)return"";"string"===typeof a&&(a=He(a));b&&gf(a,b);return Ne(a,W)}function hf(a){!a.__cssRules&&a.textContent&&(a.__cssRules=He(a.textContent));return a.__cssRules||null}function jf(a){return!!a.parent&&7===a.parent.type}function gf(a,b,c,d){if(a){var e=!1,f=a.type;if(d&&4===f){var g=a.selector.match(cf);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++)gf(g,b,c,d)}}
function kf(a,b,c,d){var e=document.createElement("style");b&&e.setAttribute("scope",b);e.textContent=a;lf(e,c,d);return e}var mf=null;function nf(a){a=document.createComment(" Shady DOM styles for "+a+" ");var b=document.head;b.insertBefore(a,(mf?mf.nextSibling:null)||b.firstChild);return mf=a}function lf(a,b,c){b=b||document.head;b.insertBefore(a,c&&c.nextSibling||b.firstChild);mf?a.compareDocumentPosition(mf)===Node.DOCUMENT_POSITION_PRECEDING&&(mf=a):mf=a}
function of(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 pf(a,b){var c=a.indexOf("var(");if(-1===c)return b(a,"","","");var d=of(a,c+3),e=a.substring(c+4,d);c=a.substring(0,c);a=pf(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 qf(a,b){T?a.setAttribute("class",b):window.ShadyDOM.nativeMethods.setAttribute.call(a,"class",b)}
var rf=window.ShadyDOM&&window.ShadyDOM.wrap||function(a){return a};function sf(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,X:c}}function tf(a){for(var b=[],c="",d=0;0<=d&&d<a.length;d++)if("("===a[d]){var e=of(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 uf(a){if(void 0!==Xe)return Xe;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 vf(a){a=void 0===a?"":a;return""!==a&&W?T?"shadow"===a:"shady"===a:!1};function wf(){}function xf(a,b){var c=X;c.fa(a,function(d){c.element(d,b||"")})}p=wf.prototype;p.fa=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.fa(a[c],b)};
p.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,""),qf(a,b)):qf(a,(d?d+" ":"")+"style-scope "+b)}};function yf(a,b,c){var d=X;d.fa(a,function(e){d.element(e,b,!0);d.element(e,c)})}function zf(a,b){var c=X;c.fa(a,function(d){c.element(d,b||"",!0)})}
function Af(a,b,c,d,e){var f=X;e=void 0===e?"":e;""===e&&(T||"shady"===(void 0===d?"":d)?e=ff(b,c):(a=sf(a),e=Bf(f,b,a.is,a.X,c)+"\n\n"));return e.trim()}function Bf(a,b,c,d,e){var f=a.oa(c,d);c=a.Ma(c);return ff(b,function(g){g.vc||(a.bb(g,a.za,c,f),g.vc=!0);e&&e(g,c,f)})}p.Ma=function(a){return a?"."+a:""};p.oa=function(a,b){return b?"[is="+a+"]":a};p.bb=function(a,b,c,d){a.selector=a.j=this.cb(a,b,c,d)};
p.cb=function(a,b,c,d){var e=tf(a.selector);if(!jf(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(",")};p.fb=function(a){return a.replace(Cf,function(b,c,d){-1<d.indexOf("+")?d=d.replace(/\+/g,"___"):-1<d.indexOf("___")&&(d=d.replace(/___/g,"+"));return":"+c+"("+d+")"})};
p.Yb=function(a){for(var b=[],c;c=a.match(Df);){var d=c.index,e=of(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{Ha:a,matches:b}};p.ac=function(a,b){var c=a.split("\ue000");return b.reduce(function(d,e,f){return d+e+c[f+1]},c[0])};
p.za=function(a,b,c){var d=this,e=!1;a=a.trim();var f=Cf.test(a);f&&(a=a.replace(Cf,function(k,l,n){return":"+l+"("+n.replace(/\s/g,"")+")"}),a=this.fb(a));var g=Df.test(a);if(g){var h=this.Yb(a);a=h.Ha;h=h.matches}a=a.replace(Ef,":host $1");a=a.replace(Ff,function(k,l,n){e||(k=d.gc(n,l,b,c),e=e||k.stop,l=k.mc,n=k.value);return l+n});g&&(a=this.ac(a,h));f&&(a=this.fb(a));return a=a.replace(Gf,function(k,l,n,w){return'[dir="'+n+'"] '+l+w+", "+l+'[dir="'+n+'"]'+w})};
p.gc=function(a,b,c,d){var e=a.indexOf("::slotted");0<=a.indexOf(":host")?a=this.ic(a,d):0!==e&&(a=c?this.eb(a,c):a);c=!1;0<=e&&(b="",c=!0);if(c){var f=!0;c&&(a=a.replace(Hf,function(g,h){return" > "+h}))}return{value:a,mc:b,stop:f}};p.eb=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("")};
p.ic=function(a,b){var c=a.match(If);return(c=c&&c[2].trim()||"")?c[0].match(Jf)?a.replace(If,function(d,e,f){return b+f}):c.split(Jf)[0]===b?c:"should_not_match":a.replace(":host",b)};function Kf(a){":root"===a.selector&&(a.selector="html")}p.hc=function(a){return a.match(":host")?"":a.match("::slotted")?this.za(a,":not(.style-scope)"):this.eb(a.trim(),":not(.style-scope)")};ha.Object.defineProperties(wf.prototype,{Z:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});
var Cf=/:(nth[-\w]+)\(([^)]+)\)/,Ff=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,Jf=/[[.:#*]/,Ef=/^(::slotted)/,If=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Hf=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Gf=/(.*):dir\((?:(ltr|rtl))\)(.*)/,Df=/:(?:matches|any|-(?:webkit|moz)-any)/,X=new wf;function Lf(a,b,c,d,e){this.A=a||null;this.placeholder=b||null;this.Fa=c||[];this.P=null;this.cssBuild=e||"";this.X=d||"";this.M=this.m=this.w=null}function Mf(a){return a?a.__styleInfo:null}function Nf(a,b){return a.__styleInfo=b}Lf.prototype.Ob=function(){return this.A};Lf.prototype._getStyleRules=Lf.prototype.Ob;function Of(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var Pf=/:host\s*>\s*/,Qf=navigator.userAgent.match("Trident");function Rf(){}function Sf(a){var b={},c=[],d=0;gf(a,function(f){Tf(f);f.index=d++;f=f.g.cssText;for(var g;g=af.exec(f);){var h=g[1];":"!==g[2]&&(b[h]=!0)}},function(f){c.push(f)});a.Rb=c;a=[];for(var e in b)a.push(e);return a}
function Tf(a){if(!a.g){var b={},c={};Uf(a,c)&&(b.v=c,a.rules=null);b.cssText=a.parsedCssText.replace(df,"").replace(Ze,"");a.g=b}}function Uf(a,b){var c=a.g;if(c){if(c.v)return Object.assign(b,c.v),!0}else{c=a.parsedCssText;for(var d;a=Ze.exec(c);){d=(a[2]||a[3]).trim();if("inherit"!==d||"unset"!==d)b[a[1].trim()]=d;d=!0}return d}}
function Vf(a,b,c){b&&(b=0<=b.indexOf(";")?Wf(a,b,c):pf(b,function(d,e,f,g){if(!e)return d+g;(e=Vf(a,c[e],c))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=Vf(a,c[f]||f,c)||f;return d+(e||"")+g}));return b&&b.trim()||""}
function Wf(a,b,c){b=b.split(";");for(var d=0,e,f;d<b.length;d++)if(e=b[d]){$e.lastIndex=0;if(f=$e.exec(e))e=Vf(a,c[f[1]],c);else if(f=e.indexOf(":"),-1!==f){var g=e.substring(f);g=g.trim();g=Vf(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 Xf(a,b){var c={},d=[];gf(a,function(e){e.g||Tf(e);var f=e.j||e.parsedSelector;b&&e.g.v&&f&&Of.call(b,f)&&(Uf(e,c),e=e.index,f=parseInt(e/32,10),d[f]=(d[f]||0)|1<<e%32)},null,!0);return{v:c,key:d}}
function Yf(a,b,c,d){b.g||Tf(b);if(b.g.v){var e=sf(a);a=e.is;e=e.X;e=a?X.oa(a,e):"html";var f=b.parsedSelector;var g=!!f.match(Pf)||"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.j||(b.j=X.cb(b,X.za,X.Ma(a),e)),c=b.j||e),g&&"html"===e&&(c=b.j||b.Pc),d({Ha:c,uc:h,Oc:g})}}
function Zf(a,b,c){var d={},e={};gf(b,function(f){Yf(a,f,c,function(g){Of.call(a._element||a,g.Ha)&&(g.uc?Uf(f,d):Uf(f,e))})},null,!0);return{Cc:e,tc:d}}
function $f(a,b,c,d){var e=sf(b),f=X.oa(e.is,e.X),g=new RegExp("(?:^|[^.#[:])"+(b["extends"]?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])"),h=Mf(b);e=h.A;h=h.cssBuild;var k=a.Db(b,e,d);return Af(b,e,function(l){var n="";l.g||Tf(l);l.g.cssText&&(n=Wf(a,l.g.cssText,c));l.cssText=n;if(!T&&!jf(l)&&l.cssText){var w=n=l.cssText;null==l.hb&&(l.hb=bf.test(n));if(l.hb)if(null==l.ja){l.ja=[];for(var E in k)w=k[E],w=w(n),n!==w&&(n=w,l.ja.push(E))}else{for(E=0;E<l.ja.length;++E)w=k[l.ja[E]],n=w(n);w=n}l.cssText=
w;a.ec(l,g,f,d)}},h)}Rf.prototype.Db=function(a,b,c){a=b.Rb;b={};if(!T&&a)for(var d=0,e=a[d];d<a.length;e=a[++d])this.dc(e,c),b[e.keyframesName]=this.Sb(e);return b};Rf.prototype.Sb=function(a){return function(b){return b.replace(a.wc,a.pb)}};Rf.prototype.dc=function(a,b){a.wc=new RegExp("\\b"+a.keyframesName+"(?!\\B|-)","g");a.pb=a.keyframesName+"-"+b;a.j=a.j||a.selector;a.selector=a.j.replace(a.keyframesName,a.pb)};
Rf.prototype.ec=function(a,b,c,d){a.j=a.j||a.selector;d="."+d;for(var e=tf(a.j),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 ag(a,b){var c=bg,d=hf(a);a.textContent=ff(d,function(e){var f=e.cssText=e.parsedCssText;e.g&&e.g.cssText&&(f=f.replace(Oe,"").replace(Pe,""),e.cssText=Wf(c,f,b))})}ha.Object.defineProperties(Rf.prototype,{rb:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var bg=new Rf;var cg={},dg=window.customElements;if(dg&&!T&&!Ye){var eg=dg.define;dg.define=function(a,b,c){cg[a]||(cg[a]=nf(a));eg.call(dg,a,b,c)}};function fg(){this.cache={};this.Ic=100}fg.prototype.lc=function(a,b,c){for(var d=0;d<c.length;d++){var e=c[d];if(a.v[e]!==b[e])return!1}return!0};fg.prototype.store=function(a,b,c,d){var e=this.cache[a]||[];e.push({v:b,styleElement:c,m:d});e.length>this.Ic&&e.shift();this.cache[a]=e};fg.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.lc(e,b,c))return e}};function gg(){}var hg=new RegExp(X.Z+"\\s*([^\\s]*)");function ig(a){return(a=(a.classList&&a.classList.value?a.classList.value:a.getAttribute("class")||"").match(hg))?a[1]:""}function jg(a){var b=rf(a).getRootNode();return b===a||b===a.ownerDocument?"":(a=b.host)?sf(a).is:""}
function kg(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=ig(e);if(g&&f===e.ownerDocument&&("style"!==e.localName&&"template"!==e.localName||""===uf(e)))zf(e,g);else if(f instanceof ShadowRoot)for(f=jg(e),f!==g&&yf(e,g,f),e=window.ShadyDOM.nativeMethods.querySelectorAll.call(e,":not(."+X.Z+")"),g=0;g<e.length;g++){f=e[g];
var h=jg(f);h&&X.element(f,h)}}}}}
if(!(T||window.ShadyDOM&&window.ShadyDOM.handlesDynamicScoping)){var lg=new MutationObserver(kg),mg=function(a){lg.observe(a,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)mg(document);else{var ng=function(){mg(document.body)};window.HTMLImports?window.HTMLImports.whenReady(ng):requestAnimationFrame(function(){if("loading"===document.readyState){var a=function(){ng();document.removeEventListener("readystatechange",a)};document.addEventListener("readystatechange",
a)}else ng()})}gg=function(){kg(lg.takeRecords())}};var og={};var pg=Promise.resolve();function qg(a){if(a=og[a])a._applyShimCurrentVersion=a._applyShimCurrentVersion||0,a._applyShimValidatingVersion=a._applyShimValidatingVersion||0,a._applyShimNextVersion=(a._applyShimNextVersion||0)+1}function rg(a){return a._applyShimCurrentVersion===a._applyShimNextVersion}function sg(a){a._applyShimValidatingVersion=a._applyShimNextVersion;a._validating||(a._validating=!0,pg.then(function(){a._applyShimCurrentVersion=a._applyShimNextVersion;a._validating=!1}))};var tg={},ug=new fg;function Y(){this.$a={};this.I=document.documentElement;var a=new Ge;a.rules=[];this.B=Nf(this.I,new Lf(a));this.ra=!1;this.i=this.h=null}p=Y.prototype;p.flush=function(){gg()};p.Kb=function(a){var b=this.$a[a]=(this.$a[a]||0)+1;return a+"-"+b};p.qc=function(a){return hf(a)};p.Hc=function(a){return ff(a)};
p.Jb=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(!T){var e=d.textContent;ef.has(e)||(ef.add(e),e=d.cloneNode(!0),document.head.appendChild(e));d.parentNode.removeChild(d)}}else b.push(d.textContent),d.parentNode.removeChild(d)}return b.join("").trim()};p.prepareTemplate=function(a,b,c){this.prepareTemplateDom(a,b);this.prepareTemplateStyles(a,b,c)};
p.prepareTemplateStyles=function(a,b,c){if(!a._prepared&&!Ye){T||cg[b]||(cg[b]=nf(b));a._prepared=!0;a.name=b;a["extends"]=c;og[b]=a;var d=uf(a),e=vf(d);c={is:b,"extends":c};var f=this.Jb(a)+(tg[b]||"");this.S();if(!e){var g;if(g=!d)g=$e.test(f)||Ze.test(f),$e.lastIndex=0,Ze.lastIndex=0;var h=He(f);g&&W&&this.h&&this.h.transformRules(h,b);a._styleAst=h}g=[];W||(g=Sf(a._styleAst));if(!g.length||W)b=this.Lb(c,a._styleAst,T?a.content:null,cg[b]||null,d,e?f:""),a._style=b;a.Xb=g}};
p.Ac=function(a,b){tg[b]=a.join(" ")};p.prepareTemplateDom=function(a,b){if(!Ye){var c=uf(a);T||"shady"===c||a._domPrepared||(a._domPrepared=!0,xf(a.content,b))}};p.Lb=function(a,b,c,d,e,f){f=Af(a,b,null,e,f);return f.length?kf(f,a.is,c,d):null};p.Xa=function(a){var b=sf(a),c=b.is;b=b.X;var d=cg[c]||null,e=og[c];if(e){c=e._styleAst;var f=e.Xb;e=uf(e);b=new Lf(c,d,f,b,e);Nf(a,b);return b}};
p.Eb=function(){!this.h&&window.ShadyCSS&&window.ShadyCSS.ApplyShim&&(this.h=window.ShadyCSS.ApplyShim,this.h.invalidCallback=qg)};p.Fb=function(){var a=this;!this.i&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(this.i=window.ShadyCSS.CustomStyleInterface,this.i.transformCallback=function(b){a.ob(b)},this.i.validateCallback=function(){requestAnimationFrame(function(){(a.i.enqueued||a.ra)&&a.flushCustomStyles()})})};p.S=function(){this.Eb();this.Fb()};
p.flushCustomStyles=function(){if(!Ye&&(this.S(),this.i)){var a=this.i.processStyles();this.i.enqueued&&!vf(this.B.cssBuild)&&(W?this.B.cssBuild||this.cc(a):(this.Aa(this.I,this.B),this.wb(a),this.ra&&this.styleDocument()),this.i.enqueued=!1)}};p.styleElement=function(a,b){if(Ye){if(b){Mf(a)||Nf(a,new Lf(null));var c=Mf(a);this.Va(c,b);vg(this,a,c)}}else if(c=Mf(a)||this.Xa(a))this.ta(a)||(this.ra=!0),b&&this.Va(c,b),W?vg(this,a,c):(this.flush(),this.Aa(a,c),c.Fa&&c.Fa.length&&this.xb(a,c))};
p.Va=function(a,b){a.P=a.P||{};Object.assign(a.P,b)};function vg(a,b,c){var d=sf(b).is;if(c.P){var e=c.P,f;for(f in e)null===f?b.style.removeProperty(f):b.style.setProperty(f,e[f])}if(((e=og[d])||a.ta(b))&&(!e||""===uf(e))&&e&&e._style&&!rg(e)){if(rg(e)||e._applyShimValidatingVersion!==e._applyShimNextVersion)a.S(),a.h&&a.h.transformRules(e._styleAst,d),e._style.textContent=Af(b,c.A),sg(e);T&&(a=b.shadowRoot)&&(a=a.querySelector("style"))&&(a.textContent=Af(b,c.A));c.A=e._styleAst}}
p.ya=function(a){return(a=rf(a).getRootNode().host)?Mf(a)||this.Xa(a)?a:this.ya(a):this.I};p.ta=function(a){return a===this.I};
p.xb=function(a,b){var c=sf(a).is,d=ug.fetch(c,b.w,b.Fa),e=d?d.styleElement:null,f=b.m;b.m=d&&d.m||this.Kb(c);var g=b.m;var h=bg;h=e?e.textContent||"":$f(h,a,b.w,g);var k=Mf(a),l=k.M;l&&!T&&l!==e&&(l._useCount--,0>=l._useCount&&l.parentNode&&l.parentNode.removeChild(l));T?k.M?(k.M.textContent=h,e=k.M):h&&(e=kf(h,g,a.shadowRoot,k.placeholder)):e?e.parentNode||(Qf&&-1<h.indexOf("@media")&&(e.textContent=h),lf(e,null,k.placeholder)):h&&(e=kf(h,g,null,k.placeholder));e&&(e._useCount=e._useCount||0,k.M!=
e&&e._useCount++,k.M=e);g=e;T||(e=b.m,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&&qf(a,k));d||ug.store(c,b.w,g,b.m);return g};p.Aa=function(a,b){var c=this.ya(a),d=Mf(c),e=d.w;c===this.I||e||(this.Aa(c,d),e=d.w);c=Object.create(e||null);e=Zf(a,b.A,b.cssBuild);a=Xf(d.A,a).v;Object.assign(c,e.tc,a,e.Cc);this.Vb(c,b.P);a=bg;d=Object.getOwnPropertyNames(c);e=0;for(var f;e<d.length;e++)f=d[e],c[f]=Vf(a,c[f],c);b.w=c};
p.Vb=function(a,b){for(var c in b){var d=b[c];if(d||0===d)a[c]=d}};p.styleDocument=function(a){this.styleSubtree(this.I,a)};p.styleSubtree=function(a,b){var c=rf(a),d=c.shadowRoot;(d||this.ta(a))&&this.styleElement(a,b);if(a=d&&(d.children||d.childNodes))for(c=0;c<a.length;c++)this.styleSubtree(a[c]);else if(c=c.children||c.childNodes)for(a=0;a<c.length;a++)this.styleSubtree(c[a])};p.cc=function(a){for(var b=0;b<a.length;b++){var c=this.i.getStyleForCustomStyle(a[b]);c&&this.bc(c)}};
p.wb=function(a){for(var b=0;b<a.length;b++){var c=this.i.getStyleForCustomStyle(a[b]);c&&ag(c,this.B.w)}};p.ob=function(a){var b=this,c=uf(a);c!==this.B.cssBuild&&(this.B.cssBuild=c);if(!vf(c)){var d=hf(a);gf(d,function(e){if(T)Kf(e);else{var f=X;e.selector=e.parsedSelector;Kf(e);f.bb(e,f.hc)}W&&""===c&&(b.S(),b.h&&b.h.transformRule(e))});W?a.textContent=ff(d):this.B.A.rules.push(d)}};p.bc=function(a){if(W&&this.h){var b=hf(a);this.S();this.h.transformRules(b);a.textContent=ff(b)}};
p.getComputedStyleValue=function(a,b){var c;W||(c=(Mf(a)||Mf(this.ya(a))).w[b]);return(c=c||window.getComputedStyle(a).getPropertyValue(b))?c.trim():""};p.Gc=function(a,b){var c=rf(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.Z){c=d[e+1];break}}}c&&b.push(X.Z,c);W||(c=Mf(a))&&c.m&&b.push(bg.rb,c.m);qf(a,b.join(" "))};p.fc=function(a){return Mf(a)};
p.Fc=function(a,b){X.element(a,b)};p.Jc=function(a,b){X.element(a,b,!0)};p.Ec=function(a){return jg(a)};p.nc=function(a){return ig(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.Gc;
Y.prototype._styleInfoForNode=Y.prototype.fc;Y.prototype.transformCustomStyleForDocument=Y.prototype.ob;Y.prototype.getStyleAst=Y.prototype.qc;Y.prototype.styleAstToString=Y.prototype.Hc;Y.prototype.flushCustomStyles=Y.prototype.flushCustomStyles;Y.prototype.scopeNode=Y.prototype.Fc;Y.prototype.unscopeNode=Y.prototype.Jc;Y.prototype.scopeForNode=Y.prototype.Ec;Y.prototype.currentScopeForNode=Y.prototype.nc;Y.prototype.prepareAdoptedCssText=Y.prototype.Ac;
Object.defineProperties(Y.prototype,{nativeShadow:{get:function(){return T}},nativeCss:{get:function(){return W}}});var Z=new Y,wg,xg;window.ShadyCSS&&(wg=window.ShadyCSS.ApplyShim,xg=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:T,cssBuild:Xe,disableRuntime:Ye};wg&&(window.ShadyCSS.ApplyShim=wg);xg&&(window.ShadyCSS.CustomStyleInterface=xg);var yg=document.createElement("style");yg.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var zg=document.querySelector("head");zg.insertBefore(yg,zg.firstChild);/*

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 Ag=window.customElements,Bg=window.HTMLImports,Cg=!1,Dg=null;Ag.polyfillWrapFlushCallback&&Ag.polyfillWrapFlushCallback(function(a){Dg=a;Cg&&a()});function Eg(){window.HTMLTemplateElement.bootstrap&&window.HTMLTemplateElement.bootstrap(window.document);Bg.whenReady(function(){Dg&&Dg();Cg=!0;window.WebComponents.ready=!0;document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})}
"complete"!==document.readyState?(window.addEventListener("load",Eg),window.addEventListener("DOMContentLoaded",function(){window.removeEventListener("load",Eg);Eg()})):Eg();})();
//# sourceMappingURL=webcomponents-lite.js.map
