You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

269 lines
103 KiB

5 years ago
(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 l;function ba(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}}function ca(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];return b?b.call(a):{next:ba(a)}}function da(a){for(var b,c=[];!(b=a.next()).done;)c.push(b.value);return c}var ea="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;
(function(a){function b(a,b){if("function"===typeof window.CustomEvent)return new CustomEvent(a,b);var c=document.createEvent("CustomEvent");c.initCustomEvent(a,!!b.bubbles,!!b.cancelable,b.detail);return c}function c(a){if(P)return a.ownerDocument!==document?a.ownerDocument:null;var b=a.__importDoc;if(!b&&a.parentNode){b=a.parentNode;if("function"===typeof b.closest)b=b.closest("link[rel=import]");else for(;!g(b)&&(b=b.parentNode););a.__importDoc=b}return b}function d(a){var b=n(document,"link[rel=import]:not([import-dependency])"),
c=b.length;c?q(b,function(b){return h(b,function(){0===--c&&a()})}):a()}function e(a){function b(){"loading"!==document.readyState&&document.body&&(document.removeEventListener("readystatechange",b),a())}document.addEventListener("readystatechange",b);b()}function f(a){e(function(){return d(function(){return a&&a()})})}function h(a,b){if(a.__loaded)b&&b();else if("script"===a.localName&&!a.src||"style"===a.localName&&!a.firstChild)a.__loaded=!0,b&&b();else{var c=function(d){a.removeEventListener(d.type,
c);a.__loaded=!0;b&&b()};a.addEventListener("load",c);aa&&"style"===a.localName||a.addEventListener("error",c)}}function g(a){return a.nodeType===Node.ELEMENT_NODE&&"link"===a.localName&&"import"===a.rel}function k(){var a=this;this.F={};this.R=0;this.Da=new MutationObserver(function(b){return a.oc(b)});this.Da.observe(document.head,{childList:!0,subtree:!0});this.loadImports(document)}function m(a){q(n(a,"template"),function(a){q(n(a.content,'script:not([type]),script[type="application/javascript"],script[type="text/javascript"],script[type="module"]'),
function(a){var b=document.createElement("script");q(a.attributes,function(a){return b.setAttribute(a.name,a.value)});b.textContent=a.textContent;a.parentNode.replaceChild(b,a)});m(a.content)})}function n(a,b){return a.childNodes.length?a.querySelectorAll(b):cb}function q(a,b,c){var d=a?a.length:0,e=c?-1:1;for(c=c?d-1:0;c<d&&0<=c;c+=e)b(a[c],c)}var u=document.createElement("link"),P="import"in u,cb=u.querySelectorAll("*"),qa=null;!1==="currentScript"in document&&Object.defineProperty(document,"currentScript",
{get:function(){return qa||("complete"!==document.readyState?document.scripts[document.scripts.length-1]:null)},configurable:!0});var db=/(url\()([^)]*)(\))/g,eb=/(@import[\s]+(?!url\())([^;]*)(;)/g,Q=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,D={mc:function(a,b){a.href&&a.setAttribute("href",D.ka(a.getAttribute("href"),b));a.src&&a.setAttribute("src",D.ka(a.getAttribute("src"),b));if("style"===a.localName){var c=D.jb(a.textContent,b,db);a.textContent=D.jb(c,b,eb)}},jb:function(a,b,c){return a.replace(c,
function(a,c,d,e){a=d.replace(/["']/g,"");b&&(a=D.ka(a,b));return c+"'"+a+"'"+e})},ka:function(a,b){if(void 0===D.na){D.na=!1;try{var c=new URL("b","http://a");c.pathname="c%20d";D.na="http://a/c%20d"===c.href}catch(oc){}}if(D.na)return(new URL(a,b)).href;c=D.qb;c||(c=document.implementation.createHTMLDocument("temp"),D.qb=c,c.Ja=c.createElement("base"),c.head.appendChild(c.Ja),c.Ia=c.createElement("a"));c.Ja.href=b;c.Ia.href=a;return c.Ia.href||a}},S={async:!0,load:function(a,b,c){if(a)if(a.match(/^data:/)){a=
a.split(",");var d=a[1];d=-1<a[0].indexOf(";base64")?atob(d):decodeURIComponent(d);b(d)}else{var e=new XMLHttpRequest;e.open("GET",a,S.async);e.onload=function(){var a=e.responseURL||e.getResponseHeader("Location");a&&0===a.indexOf("/")&&(a=(location.origin||location.protocol+"//"+location.host)+a);var d=e.response||e.responseText;304===e.status||0===e.status||200<=e.status&&300>e.status?b(d,a):c(d)};e.send()}else c("error: href must be specified")}},aa=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent);
k.prototype.loadImports=function(a){var b=this;a=n(a,"link[rel=import]");q(a,function(a){return b.fb(a)})};k.prototype.fb=function(a){var b=this,c=a.href;if(void 0!==this.F[c]){var d=this.F[c];d&&d.__loaded&&(a.__import=d,this.cb(a))}else this.R++,this.F[c]="pending",S.load(c,function(a,d){a=b.uc(a,d||c);b.F[c]=a;b.R--;b.loadImports(a);b.hb()},function(){b.F[c]=null;b.R--;b.hb()})};k.prototype.uc=function(a,b){if(!a)return document.createDocumentFragment();aa&&(a=a.replace(Q,function(a,b,c){return-1===
a.indexOf("type=")?b+" type=import-disable "+c:a}));var c=document.createElement("template");c.innerHTML=a;if(c.content)a=c.content,m(a);else for(a=document.createDocumentFragment();c.firstChild;)a.appendChild(c.firstChild);if(c=a.querySelector("base"))b=D.ka(c.getAttribute("href"),b),c.removeAttribute("href");c=n(a,'link[rel=import],link[rel=stylesheet][href][type=import-disable],style:not([type]),link[rel=stylesheet][href]:not([type]),script:not([type]),script[type="application/javascript"],script[type="text/javascript"],script[type="module"]');
var d=0;q(c,function(a){h(a);D.mc(a,b);a.setAttribute("import-dependency","");if("script"===a.localName&&!a.src&&a.textContent){if("module"===a.type)throw Error("Inline module scripts are not supported in HTML Imports.");a.setAttribute("src","data:text/javascript;charset=utf-8,"+encodeURIComponent(a.textContent+("\n//# sourceURL="+b+(d?"-"+d:"")+".js\n")));a.textContent="";d++}});return a};k.prototype.hb=function(){var a=this;if(!this.R){this.Da.disconnect();this.flatten(document);var b=!1,c=!1,d=
function(){c&&b&&(a.loadImports(document),a.R||(a.Da.observe(document.head,{childList:!0,subtree:!0}),a.lc()))};this.Ic(function(){c=!0;d()});this.Ac(function(){b=!0;d()})}};k.prototype.flatten=function(a){var b=this;a=n(a,"link[rel=import]");q(a,function(a){var c=b.F[a.href];(a.__import=c)&&c.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(b.F[a.href]=a,a.readyState="loading",a.__import=a,b.flatten(c),a.appendChild(c))})};k.prototype.Ac=function(a){function b(e){if(e<d){var f=c[e],g=document.createElement("script");
f.removeAttribute("import-dependency");q(f.attributes,function(a){return g.setAttribute(a.name,a.value)});qa=g;f.parentNode.replaceChild(g,f);h(g,function(){qa=null;b(e+1)})}else a()}var c=n(document,"script[import-dependency]"),d=c.length;b(0)};k.prototype.Ic=function(a){var b=n(document,"style[import-dependency],link[rel=stylesheet][import-dependency]"),d=b.length;if(d){var e=aa&&!!document.querySelector("link[rel=stylesheet][href][type=import-disable]");q(b,function(b){h(b,function(){b.removeAttribute("import-dependency");
0===--d&&a()});if(e&&b.parentNode!==document.head){var f=document.createElement(b.localName);f.__appliedElement=b;f.setAttribute("type","import-placeholder");b.parentNode.insertBefore(f,b.nextSibling);for(f=c(b);f&&c(f);)f=c(f);f.parentNode!==document.head&&(f=null);document.head.insertBefore(b,f);b.removeAttribute("type")}})}else a()};k.prototype.lc=function(){var a=this,b=n(document,"link[rel=import]");q(b,function(b){return a.cb(b)},!0)};k.prototype.cb=function(a){a.__loaded||(a.__loaded=!0,a["import"]&&
(a["import"].readyState="complete"),a.dispatchEvent(b(a["import"]?"load":"error",{bubbles:!1,cancelable:!1,detail:void 0})))};k.prototype.oc=function(a){var b=this;q(a,function(a){return q(a.addedNodes,function(a){a&&a.nodeType===Node.ELEMENT_NODE&&(g(a)?b.fb(a):b.loadImports(a))})})};var ra=null;if(P)u=n(document,"link[rel=import]"),q(u,function(a){a["import"]&&"loading"===a["import"].readyState||(a.__loaded=!0)}),u=function(a){a=a.target;g(a)&&(a.__loaded=!0)},document.addEventListener("load",u,
!0),document.addEventListener("error",u,!0);else{var T=Object.getOwnPropertyDescriptor(Node.prototype,"baseURI");Object.defineProperty((!T||T.configurable?Node:Element).prototype,"baseURI",{get:function(){var a=g(this)?this:c(this);return a?a.href:T&&T.get?T.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(){ra=
new k})}f(function(){return document.dispatchEvent(b("HTMLImportsLoaded",{cancelable:!0,bubbles:!0,detail:void 0}))});a.useNative=P;a.whenReady=f;a.importForElement=c;a.loadImports=function(a){ra&&ra.loadImports(a)}})(window.HTMLImports=window.HTMLImports||{});(function(){function a(){}function b(a,b){if(!a.childNodes.length)return[];switch(a.nodeType){case Node.DOCUMENT_NODE:return qa.call(a,b);case Node.DOCUMENT_FRAGMENT_NODE:return db.call(a,b);default:return cb.call(a,b)}}var c="undefined"===typeof HTMLTemplateElement,d=!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment),e=!1;/Trident/.test(navigator.userAgent)&&function(){function a(a,b){if(a instanceof DocumentFragment)for(var d;d=a.firstChild;)c.call(this,d,b);else c.call(this,
a,b);return a}e=!0;var b=Node.prototype.cloneNode;Node.prototype.cloneNode=function(a){a=b.call(this,a);this instanceof DocumentFragment&&(a.__proto__=DocumentFragment.prototype);return a};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=a;var d=Node.prototype.appendChild;Node.prototype.appendChild=function(b){b instanceof DocumentFragment?a.call(this,b,null):d.call(this,b);return b};var f=Node.prototype.removeChild,h=Node.prototype.replaceChild;Node.prototype.replaceChild=function(b,c){b instanceof DocumentFragment?(a.call(this,b,c),f.call(this,c)):h.call(this,b,c);return c};Document.prototype.createDocumentFragment=
function(){var a=this.createElement("df");a.__proto__=DocumentFragment.prototype;return a};var g=Document.prototype.importNode;Document.prototype.importNode=function(a,b){b=g.call(this,a,b||!1);a instanceof DocumentFragment&&(b.__proto__=DocumentFragment.prototype);return b}}();var f=Node.prototype.cloneNode,h=Document.prototype.createElement,g=Document.prototype.importNode,k=Node.prototype.removeChild,m=Node.prototype.appendChild,n=Node.prototype.replaceChild,q=DOMParser.prototype.parseFromString,
u=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML")||{get:function(){return this.innerHTML},set:function(a){this.innerHTML=a}},P=Object.getOwnPropertyDescriptor(window.Node.prototype,"childNodes")||{get:function(){return this.childNodes}},cb=Element.prototype.querySelectorAll,qa=Document.prototype.querySelectorAll,db=DocumentFragment.prototype.querySelectorAll,eb=function(){if(!c){var a=document.createElement("template"),b=document.createElement("template");b.content.appendChild(document.createElement("div"));
a.content.appendChild(b);a=a.cloneNode(!0);return 0===a.content.childNodes.length||0===a.content.firstChild.content.childNodes.length||d}}();if(c){var Q=document.implementation.createHTMLDocument("template"),D=!0,S=document.createElement("style");S.textContent="template{display:none;}";var aa=document.head;aa.insertBefore(S,aa.firstElementChild);a.prototype=Object.create(HTMLElement.prototype);var ra=!document.createElement("div").hasOwnProperty("innerHTML");a.K=function(b){if(!b.content&&b.namespaceURI===
document.documentElement.namespaceURI){b.content=Q.createDocumentFragment();for(var c;c=b.firstChild;)m.call(b.content,c);if(ra)b.__proto__=a.prototype;else if(b.cloneNode=function(b){return a.pa(this,b)},D)try{mc(b),nc(b)}catch(gg){D=!1}a.bootstrap(b.content)}};var T={option:["select"],thead:["table"],col:["colgroup","table"],tr:["tbody","table"],th:["tr","tbody","table"],td:["tr","tbody","table"]},mc=function(b){Object.defineProperty(b,"innerHTML",{get:function(){return fb(this)},set:function(b){var c=
T[(/<([a-z][^/\0>\x20\t\r\n\f]+)/i.exec(b)||["",""])[1].toLowerCase()];if(c)for(var d=0;d<c.length;d++)b="<"+c[d]+">"+b+"</"+c[d]+">";Q.body.innerHTML=b;for(a.bootstrap(Q);this.content.firstChild;)k.call(this.content,this.content.firstChild);b=Q.body;if(c)for(d=0;d<c.length;d++)b=b.lastChild;for(;b.firstChild;)m.call(this.content,b.firstChild)},configurable:!0})},nc=function(a){Object.defineProperty(a,"outerHTML",{get:function(){return"<template>"+this.innerHTML+"</template>"},set:function(a){if(this.parentNode){Q.body.innerHTML=
a;for(a=this.ownerDocument.createDocumentFragment();Q.body.firstChild;)m.call(a,Q.body.firstChild);n.call(this.parentNode,a,this)}else throw Error("Failed to set the 'outerHTML' property on 'Element': This element has no parent node.");},configurable:!0})};mc(a.prototype);nc(a.prototype);a.bootstrap=function(c){c=b(c,"template");for(var d=0,e=c.length,f;d<e&&(f=c[d]);d++)a.K(f)};document.addEventListener("DOMContentLoaded",function(){a.bootstrap(document)});Document.prototype.createElement=function(){var b=
h.apply(this,arguments);"template"===b.localName&&a.K(b);return b};DOMParser.prototype.parseFromString=function(){var b=q.apply(this,arguments);a.bootstrap(b);return b};Object.defineProperty(HTMLElement.prototype,"innerHTML",{get:function(){return fb(this)},set:function(b){u.set.call(this,b);a.bootstrap(this)},configurable:!0,enumerable:!0});var se=/[&\u00A0"]/g,oc=/[&\u00A0<>]/g,pc=function(a){switch(a){case "&":return"&amp;";case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";case "\u00a0":return"&nbsp;"}};
S=function(a){for(var b={},c=0;c<a.length;c++)b[a[c]]=!0;return b};var te=S("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),ue=S("style script xmp iframe noembed noframes plaintext noscript".split(" ")),fb=function(a,b){"template"===a.localName&&(a=a.content);for(var c="",d=b?b(a):P.get.call(a),e=0,f=d.length,h;e<f&&(h=d[e]);e++){a:{var g=h;var k=a;var m=b;switch(g.nodeType){case Node.ELEMENT_NODE:for(var n=g.localName,q="<"+n,u=g.attributes,qc=0;k=
u[qc];qc++)q+=" "+k.name+'="'+k.value.replace(se,pc)+'"';q+=">";g=te[n]?q:q+fb(g,m)+"</"+n+">";break a;case Node.TEXT_NODE:g=g.data;g=k&&ue[k.localName]?g:g.replace(oc,pc);break a;case Node.COMMENT_NODE:g="\x3c!--"+g.data+"--\x3e";break a;default:throw window.console.error(g),Error("not implemented");}}c+=g}return c}}if(c||eb){a.pa=function(a,b){var c=f.call(a,!1);this.K&&this.K(c);b&&(m.call(c.content,f.call(a.content,!0)),gb(c.content,a.content));return c};var gb=function(c,d){if(d.querySelectorAll&&
(d=b(d,"template"),0!==d.length)){c=b(c,"template");for(var e=0,f=c.length,h,g;e<f;e++)g=d[e],h=c[e],a&&a.K&&a.K(g),n.call(h.parentNode,ve.call(g,!0),h)}},ve=Node.prototype.cloneNode=function(b){if(!e&&d&&this instanceof DocumentFragment)if(b)var c=we.call(this.ownerDocument,this,!0);else return this.ownerDocument.createDocumentFragment();else c=this.nodeType===Node.ELEMENT_NODE&&"template"===this.localName&&this.namespaceURI==document.documentElement.namespaceURI?a.pa(this,b):f.call(this,b);b&&gb(c,
this);return c},we=Document.prototype.importNode=function(c,d){d=d||!1;if("template"===c.localName)return a.pa(c,d);var e=g.call(this,c,d);if(d){gb(e,c);c=b(e,'script:not([type]),script[type="application/javascript"],script[type="text/javascript"]');for(var f,k=0;k<c.length;k++){f=c[k];d=h.call(document,"script");d.textContent=f.textContent;for(var m=f.attributes,q=0,u;q<m.length;q++)u=m[q],d.setAttribute(u.name,u.value);n.call(f.parentNode,d,f)}}return e}}c&&(window.HTMLTemplateElement=a)})();(function(){if(!function(){var a=document.createEvent("Event");a.initEvent("foo",!0,!0);a.preventDefault();return a.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(a,b){b=b||{};var c=document.createEvent("Event");
c.initEvent(a,!!b.bubbles,!!b.cancelable);return c};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(a,b){b=b||{};var c=document.createEvent("CustomEvent");c.initCustomEvent(a,!!b.bubbles,!!b.cancelable,b.detail);return c},window.CustomEvent.prototype=window.Event.prototype;if(!window.MouseEvent||b&&"function"!==typeof window.MouseEvent){b=window.MouseEvent;window.MouseEvent=
function(a,b){b=b||{};var c=document.createEvent("MouseEvent");c.initMouseEvent(a,!!b.bubbles,!!b.cancelable,b.view||window,b.detail,b.screenX,b.screenY,b.clientX,b.clientY,b.ctrlKey,b.altKey,b.shiftKey,b.metaKey,b.button,b.relatedTarget);return c};if(b)for(d in b)window.MouseEvent[d]=b[d];window.MouseEvent.prototype=b.prototype}Array.from||(Array.from=function(a){return[].slice.call(a)});Object.assign||(Object.assign=function(a,b){for(var c=[].slice.call(arguments,1),d=0,e;d<c.length;d++)if(e=c[d])for(var f=
a,n=e,q=Object.getOwnPropertyNames(n),u=0;u<q.length;u++)e=q[u],f[e]=n[e];return a})})();/*
Copyright (c) 2014 Taylor Hakes
Copyright (c) 2014 Forbes Lindesay
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
var fa=setTimeout;function ha(){}function ia(a,b){return function(){a.apply(b,arguments)}}function p(a){if(!(this instanceof p))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.O=[];ja(a,this)}
function ka(a,b){for(;3===a.u;)a=a.f;0===a.u?a.O.push(b):(a.Ra=!0,la(function(){var c=1===a.u?b.vc:b.wc;if(null===c)(1===a.u?ma:na)(b.Ga,a.f);else{try{var d=c(a.f)}catch(e){na(b.Ga,e);return}ma(b.Ga,d)}}))}function ma(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 p){a.u=3;a.f=b;oa(a);return}if("function"===typeof c){ja(ia(c,b),a);return}}a.u=1;a.f=b;oa(a)}catch(d){na(a,d)}}
function na(a,b){a.u=2;a.f=b;oa(a)}function oa(a){2===a.u&&0===a.O.length&&la(function(){a.Ra||"undefined"!==typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",a.f)});for(var b=0,c=a.O.length;b<c;b++)ka(a,a.O[b]);a.O=null}function pa(a,b,c){this.vc="function"===typeof a?a:null;this.wc="function"===typeof b?b:null;this.Ga=c}function ja(a,b){var c=!1;try{a(function(a){c||(c=!0,ma(b,a))},function(a){c||(c=!0,na(b,a))})}catch(d){c||(c=!0,na(b,d))}}
p.prototype["catch"]=function(a){return this.then(null,a)};p.prototype.then=function(a,b){var c=new this.constructor(ha);ka(this,new pa(a,b,c));return c};p.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 sa(a){return new p(function(b,c){function d(a,h){try{if(h&&("object"===typeof h||"function"===typeof h)){var g=h.then;if("function"===typeof g){g.call(h,function(b){d(a,b)},c);return}}e[a]=h;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,h=0;h<e.length;h++)d(h,e[h])})}
function ta(a){return a&&"object"===typeof a&&a.constructor===p?a:new p(function(b){b(a)})}function ua(a){return new p(function(b,c){c(a)})}function va(a){return new p(function(b,c){for(var d=0,e=a.length;d<e;d++)a[d].then(b,c)})}var la="function"===typeof setImmediate&&function(a){setImmediate(a)}||function(a){fa(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=p;p.prototype.then=p.prototype.then;p.all=sa;p.race=va;p.resolve=ta;p.reject=ua;var wa=document.createTextNode(""),xa=[];(new MutationObserver(function(){for(var a=xa.length,b=0;b<a;b++)xa[b]();xa.splice(0,a)})).observe(wa,{characterData:!0});la=function(a){xa.push(a);wa.textContent=0<wa.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 ya=document.querySelector('script[src*="webcomponents-lite.js"]'),za=/wc-(.+)/,r={};if(!r.noOpts){location.search.slice(1).split("&").forEach(function(a){a=a.split("=");var b;a[0]&&(b=a[0].match(za))&&(r[b[1]]=a[1]||!0)});if(ya)for(var Aa=0,Ba=void 0;Ba=ya.attributes[Aa];Aa++)"src"!==Ba.name&&(r[Ba.name]=Ba.value||!0);if(r.log&&r.log.split){var Ca=r.log.split(",");r.log={};Ca.forEach(function(a){r.log[a]=!0})}else r.log={}}
window.WebComponents.flags=r;var Da=r.shadydom;Da&&(window.ShadyDOM=window.ShadyDOM||{},window.ShadyDOM.force=Da);var Ea=r.register||r.ce;Ea&&window.customElements&&(window.customElements.forcePolyfill=Ea);/*
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 Fa(){this.ib=this.root=null;this.ia=!1;this.G=this.ba=this.xa=this.assignedSlot=this.assignedNodes=this.M=null;this.childNodes=this.nextSibling=this.previousSibling=this.lastChild=this.firstChild=this.parentNode=this.S=void 0;this.Ka=this.La=!1;this.Y={}}Fa.prototype.toJSON=function(){return{}};function t(a){a.__shady||(a.__shady=new Fa);return a.__shady}function v(a){return a&&a.__shady};var w=window.ShadyDOM||{};w.pc=!(!Element.prototype.attachShadow||!Node.prototype.getRootNode);var Ga=Object.getOwnPropertyDescriptor(Node.prototype,"firstChild");w.l=!!(Ga&&Ga.configurable&&Ga.get);w.Ea=w.force||!w.pc;w.L=w.noPatch||!1;w.gb=w.preferPerformance;function x(a){return(a=v(a))&&void 0!==a.firstChild}function y(a){return"ShadyRoot"===a.Qb}function Ha(a){return(a=(a=v(a))&&a.root)&&a.Sa()}
var Ia=Element.prototype,Ja=Ia.matches||Ia.matchesSelector||Ia.mozMatchesSelector||Ia.msMatchesSelector||Ia.oMatchesSelector||Ia.webkitMatchesSelector,Ka=document.createTextNode(""),La=0,Ma=[];(new MutationObserver(function(){for(;Ma.length;)try{Ma.shift()()}catch(a){throw Ka.textContent=La++,a;}})).observe(Ka,{characterData:!0});function Na(a){Ma.push(a);Ka.textContent=La++}var Oa=!!document.contains;function Pa(a,b){for(;b;){if(b==a)return!0;b=b.__shady_parentNode}return!1}
function Qa(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(b){return a[b]};a.namedItem=function(b){if("length"!==b&&isNaN(b)&&a[b])return a[b];for(var c=ca(a),d=c.next();!d.done;d=c.next())if(d=d.value,(d.getAttribute("id")||d.getAttribute("name"))==b)return d;return null};return a}
function z(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 h=c+e;if(f.value)a[h]=f.value;else try{Object.defineProperty(a,h,f)}catch(g){}}}}function A(a){var b={};Object.getOwnPropertyNames(a).forEach(function(c){b[c]=Object.getOwnPropertyDescriptor(a,c)});return b};var Ra=[],Sa;function Ta(a){Sa||(Sa=!0,Na(Ua));Ra.push(a)}function Ua(){Sa=!1;for(var a=!!Ra.length;Ra.length;)Ra.shift()();return a}Ua.list=Ra;function Va(){this.da=!1;this.addedNodes=[];this.removedNodes=[];this.ha=new Set}function Wa(a){a.da||(a.da=!0,Na(function(){a.flush()}))}Va.prototype.flush=function(){if(this.da){this.da=!1;var a=this.takeRecords();a.length&&this.ha.forEach(function(b){b(a)})}};Va.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 Xa(a,b){var c=t(a);c.M||(c.M=new Va);c.M.ha.add(b);var d=c.M;return{ub:b,I:d,Tb:a,takeRecords:function(){return d.takeRecords()}}}function Ya(a){var b=a&&a.I;b&&(b.ha["delete"](a.ub),b.ha.size||(t(a.Tb).M=null))}
function Za(a,b){var c=b.getRootNode();return a.map(function(a){var b=c===a.target.getRootNode();if(b&&a.addedNodes){if(b=Array.from(a.addedNodes).filter(function(a){return c===a.getRootNode()}),b.length)return a=Object.create(a),Object.defineProperty(a,"addedNodes",{value:b,configurable:!0}),a}else if(b)return a}).filter(function(a){return a})};var $a=/[&\u00A0"]/g,ab=/[&\u00A0<>]/g;function bb(a){switch(a){case "&":return"&amp;";case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";case "\u00a0":return"&nbsp;"}}function hb(a){for(var b={},c=0;c<a.length;c++)b[a[c]]=!0;return b}var ib=hb("area base br col command embed hr img input keygen link meta param source track wbr".split(" ")),jb=hb("style script xmp iframe noembed noframes plaintext noscript".split(" "));
function kb(a,b){"template"===a.localName&&(a=a.content);for(var c="",d=b?b(a):a.childNodes,e=0,f=d.length,h=void 0;e<f&&(h=d[e]);e++){a:{var g=h;var k=a,m=b;switch(g.nodeType){case Node.ELEMENT_NODE:k=g.localName;for(var n="<"+k,q=g.attributes,u=0,P;P=q[u];u++)n+=" "+P.name+'="'+P.value.replace($a,bb)+'"';n+=">";g=ib[k]?n:n+kb(g,m)+"</"+k+">";break a;case Node.TEXT_NODE:g=g.data;g=k&&jb[k.localName]?g:g.replace(ab,bb);break a;case Node.COMMENT_NODE:g="\x3c!--"+g.data+"--\x3e";break a;default:throw window.console.error(g),
Error("not implemented");}}c+=g}return c};var lb=w.l,mb={querySelector:function(a){return this.__shady_native_querySelector(a)},querySelectorAll:function(a){return this.__shady_native_querySelectorAll(a)}},nb={};function ob(a){nb[a]=function(b){return b["__shady_native_"+a]}}function pb(a,b){z(a,b,"__shady_native_");for(var c in b)ob(c)}function B(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?mb[d]||(mb[d]=e.value):ob(d))}}
var C=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),E=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),qb=document.implementation.createHTMLDocument("inert");function rb(a){for(var b;b=a.__shady_native_firstChild;)a.__shady_native_removeChild(b)}var sb=["firstElementChild","lastElementChild","children","childElementCount"],tb=["querySelector","querySelectorAll"];
function ub(){var a=["dispatchEvent","addEventListener","removeEventListener"];window.EventTarget?B(window.EventTarget.prototype,a):(B(Node.prototype,a),B(Window.prototype,a));lb?B(Node.prototype,"parentNode firstChild lastChild previousSibling nextSibling childNodes parentElement textContent".split(" ")):pb(Node.prototype,{parentNode:{get:function(){C.currentNode=this;return C.parentNode()}},firstChild:{get:function(){C.currentNode=this;return C.firstChild()}},lastChild:{get:function(){C.currentNode=
this;return C.lastChild()}},previousSibling:{get:function(){C.currentNode=this;return C.previousSibling()}},nextSibling:{get:function(){C.currentNode=this;return C.nextSibling()}},childNodes:{get:function(){var a=[];C.currentNode=this;for(var c=C.firstChild();c;)a.push(c),c=C.nextSibling();return a}},parentElement:{get:function(){E.currentNode=this;return E.parentNode()}},textContent:{get:function(){switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:for(var a=document.createTreeWalker(this,
NodeFilter.SHOW_TEXT,null,!1),c="",d;d=a.nextNode();)c+=d.nodeValue;return c;default:return this.nodeValue}},set:function(a){if("undefined"===typeof a||null===a)a="";switch(this.nodeType){case Node.ELEMENT_NODE:case Node.DOCUMENT_FRAGMENT_NODE:rb(this);(0<a.length||this.nodeType===Node.ELEMENT_NODE)&&this.__shady_native_insertBefore(document.createTextNode(a),void 0);break;default:this.nodeValue=a}}}});B(Node.prototype,"appendChild insertBefore removeChild replaceChild cloneNode contains".split(" "));
a={firstElementChild:{get:function(){E.currentNode=this;return E.firstChild()}},lastElementChild:{get:function(){E.currentNode=this;return E.lastChild()}},children:{get:function(){var a=[];E.currentNode=this;for(var c=E.firstChild();c;)a.push(c),c=E.nextSibling();return Qa(a)}},childElementCount:{get:function(){return this.children?this.children.length:0}}};lb?(B(Element.prototype,sb),B(Element.prototype,["previousElementSibling","nextElementSibling","innerHTML"]),Object.getOwnPropertyDescriptor(HTMLElement.prototype,
"children")&&B(HTMLElement.prototype,["children"]),Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML")&&B(HTMLElement.prototype,["innerHTML"])):(pb(Element.prototype,a),pb(Element.prototype,{previousElementSibling:{get:function(){E.currentNode=this;return E.previousSibling()}},nextElementSibling:{get:function(){E.currentNode=this;return E.nextSibling()}},innerHTML:{get:function(){return kb(this,function(a){return a.__shady_native_childNodes})},set:function(a){var b="template"===this.localName?
this.content:this;rb(b);var d=this.localName||"div";d=this.namespaceURI&&this.namespaceURI!==qb.namespaceURI?qb.createElementNS(this.namespaceURI,d):qb.createElement(d);d.innerHTML=a;for(a="template"===this.localName?d.content:d;d=a.__shady_native_firstChild;)b.__shady_native_insertBefore(d,void 0)}}}));B(Element.prototype,"setAttribute getAttribute hasAttribute removeAttribute focus blur".split(" "));B(Element.prototype,tb);B(HTMLElement.prototype,["focus","blur","contains"]);lb&&B(HTMLElement.prototype,
["parentElement","children","innerHTML"]);window.HTMLTemplateElement&&B(window.HTMLTemplateElement.prototype,["innerHTML"]);lb?B(DocumentFragment.prototype,sb):pb(DocumentFragment.prototype,a);B(DocumentFragment.prototype,tb);lb?(B(Document.prototype,sb),B(Document.prototype,["activeElement"])):pb(Document.prototype,a);B(Document.prototype,["importNode","getElementById"]);B(Document.prototype,tb)};var vb=A({get childNodes(){return this.__shady_childNodes},get firstChild(){return this.__shady_firstChild},get lastChild(){return this.__shady_lastChild},get textContent(){return this.__shady_textContent},set textContent(a){this.__shady_textContent=a},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 innerHTML(){return this.__shady_innerHTML},
set innerHTML(a){return this.__shady_innerHTML=a},get shadowRoot(){return this.__shady_shadowRoot}}),wb=A({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}}),xb;for(xb in vb)vb[xb].enumerable=!1;for(var yb in wb)wb[yb].enumerable=!1;var zb=w.l||w.L,Ab=zb?function(){}:function(a){var b=t(a);b.La||(b.La=!0,z(a,wb))},Bb=zb?function(){}:function(a){var b=t(a);b.Ka||(b.Ka=!0,z(a,vb))};var Cb="__eventWrappers"+Date.now(),Db=function(){var a=Object.getOwnPropertyDescriptor(Event.prototype,"composed");return a?function(b){return a.get.call(b)}:null}(),Eb={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},Fb={DOMAttrModified:!0,DOMAttributeNameChanged:!0,DOMCharacterDataModified:!0,DOMElementNameChanged:!0,DOMNodeInserted:!0,DOMNodeInsertedIntoDocument:!0,DOMNodeRemoved:!0,DOMNodeRemovedFromDocument:!0,DOMSubtreeModified:!0};
function Gb(a){return a instanceof Node?a.__shady_getRootNode():a}function Hb(a,b){var c=[],d=a;for(a=Gb(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 Ib(a){a.__composedPath||(a.__composedPath=Hb(a.target,!0));return a.__composedPath}
function Jb(a,b){if(!y)return a;a=Hb(a,!0);for(var c=0,d,e=void 0,f,h=void 0;c<b.length;c++)if(d=b[c],f=Gb(d),f!==e&&(h=a.indexOf(f),e=f),!y(f)||-1<h)return d}function Kb(a){function b(b,d){b=new a(b,d);b.__composed=d&&!!d.composed;return b}b.__proto__=a;b.prototype=a.prototype;return b}var Lb={focus:!0,blur:!0};function Mb(a){return a.__target!==a.target||a.__relatedTarget!==a.relatedTarget}
function Nb(a,b,c){if(c=b.__handlers&&b.__handlers[a.type]&&b.__handlers[a.type][c])for(var d=0,e;(e=c[d])&&(!Mb(a)||a.target!==a.relatedTarget)&&(e.call(b,a),!a.__immediatePropagationStopped);d++);}
function Ob(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];Nb(a,d,"capture");if(a.la)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=v(d);f=f&&f.root;if(0===c||f&&f===e)if(Nb(a,d,"bubble"),d!==window&&(e=d.__shady_getRootNode()),a.la)break}}
function Pb(a,b,c,d,e,f){for(var h=0;h<a.length;h++){var g=a[h],k=g.type,m=g.capture,n=g.once,q=g.passive;if(b===g.node&&c===k&&d===m&&e===n&&f===q)return h}return-1}
function Qb(a,b,c){if(b){var d=typeof b;if("function"===d||"object"===d)if("object"!==d||b.handleEvent&&"function"===typeof b.handleEvent){if(Fb[a])return this.__shady_native_addEventListener(a,b,c);if(c&&"object"===typeof c){var e=!!c.capture;var f=!!c.once;var h=!!c.passive}else e=!!c,h=f=!1;var g=c&&c.ma||this,k=b[Cb];if(k){if(-1<Pb(k,g,a,e,f,h))return}else b[Cb]=[];k=function(e){f&&this.__shady_removeEventListener(a,b,c);e.__target||Rb(e);if(g!==this){var h=Object.getOwnPropertyDescriptor(e,"currentTarget");
Object.defineProperty(e,"currentTarget",{get:function(){return g},configurable:!0})}e.__previousCurrentTarget=e.currentTarget;if(!y(g)||-1!=e.composedPath().indexOf(g))if(e.composed||-1<e.composedPath().indexOf(g))if(Mb(e)&&e.target===e.relatedTarget)e.eventPhase===Event.BUBBLING_PHASE&&e.stopImmediatePropagation();else if(e.eventPhase===Event.CAPTURING_PHASE||e.bubbles||e.target===g||g instanceof Window){var k="function"===d?b.call(g,e):b.handleEvent&&b.handleEvent(e);g!==this&&(h?(Object.defineProperty(e,
"currentTarget",h),h=null):delete e.currentTarget);return k}};b[Cb].push({node:g,type:a,capture:e,once:f,passive:h,Jc:k});Lb[a]?(this.__handlers=this.__handlers||{},this.__handlers[a]=this.__handlers[a]||{capture:[],bubble:[]},this.__handlers[a][e?"capture":"bubble"].push(k)):this.__shady_native_addEventListener(a,k,c)}}}
function Sb(a,b,c){if(b){if(Fb[a])return this.__shady_native_removeEventListener(a,b,c);if(c&&"object"===typeof c){var d=!!c.capture;var e=!!c.once;var f=!!c.passive}else d=!!c,f=e=!1;var h=c&&c.ma||this,g=void 0;var k=null;try{k=b[Cb]}catch(m){}k&&(e=Pb(k,h,a,d,e,f),-1<e&&(g=k.splice(e,1)[0].Jc,k.length||(b[Cb]=void 0)));this.__shady_native_removeEventListener(a,g||b,c);g&&Lb[a]&&this.__handlers&&this.__handlers[a]&&(a=this.__handlers[a][d?"capture":"bubble"],g=a.indexOf(g),-1<g&&a.splice(g,1))}}
function Tb(){for(var a in Lb)window.__shady_native_addEventListener(a,function(a){a.__target||(Rb(a),Ob(a))},!0)}
var Ub=A({get composed(){void 0===this.__composed&&(Db?this.__composed="focusin"===this.type||"focusout"===this.type||Db(this):!1!==this.isTrusted&&(this.__composed=Eb[this.type]));return this.__composed||!1},composedPath:function(){this.__composedPath||(this.__composedPath=Hb(this.__target,this.composed));return this.__composedPath},get target(){return Jb(this.currentTarget||this.__previousCurrentTarget,this.composedPath())},get relatedTarget(){if(!this.__relatedTarget)return null;this.__relatedTargetComposedPath||
(this.__relatedTargetComposedPath=Hb(this.__relatedTarget,!0));return Jb(this.currentTarget||this.__previousCurrentTarget,this.__relatedTargetComposedPath)},stopPropagation:function(){Event.prototype.stopPropagation.call(this);this.la=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this);this.la=this.__immediatePropagationStopped=!0}});
function Rb(a){a.__target=a.target;a.__relatedTarget=a.relatedTarget;if(w.l){var b=Object.getPrototypeOf(a);if(!Object.hasOwnProperty(b,"__shady_patchedProto")){var c=Object.create(b);c.__shady_sourceProto=b;z(c,Ub);b.__shady_patchedProto=c}a.__proto__=b.__shady_patchedProto}else z(a,Ub)}var Vb=Kb(Event),Wb=Kb(CustomEvent),Xb=Kb(MouseEvent);
function Yb(){if(!Db&&Object.getOwnPropertyDescriptor(Event.prototype,"isTrusted")){var a=function(){var a=new MouseEvent("click",{bubbles:!0,cancelable:!0,composed:!0});this.__shady_dispatchEvent(a)};Element.prototype.click?Element.prototype.click=a:HTMLElement.prototype.click&&(HTMLElement.prototype.click=a)}}var Zb=Object.getOwnPropertyNames(Document.prototype).filter(function(a){return"on"===a.substring(0,2)});function $b(a,b){return{index:a,T:[],ga:b}}
function ac(a,b,c,d){var e=0,f=0,h=0,g=0,k=Math.min(b-e,d-f);if(0==e&&0==f)a:{for(h=0;h<k;h++)if(a[h]!==c[h])break a;h=k}if(b==a.length&&d==c.length){g=a.length;for(var m=c.length,n=0;n<k-h&&bc(a[--g],c[--m]);)n++;g=n}e+=h;f+=h;b-=g;d-=g;if(0==b-e&&0==d-f)return[];if(e==b){for(b=$b(e,0);f<d;)b.T.push(c[f++]);return[b]}if(f==d)return[$b(e,b-e)];k=e;h=f;d=d-h+1;g=b-k+1;b=Array(d);for(m=0;m<d;m++)b[m]=Array(g),b[m][0]=m;for(m=0;m<g;m++)b[0][m]=m;for(m=1;m<d;m++)for(n=1;n<g;n++)if(a[k+n-1]===c[h+m-1])b[m][n]=
b[m-1][n-1];else{var q=b[m-1][n]+1,u=b[m][n-1]+1;b[m][n]=q<u?q:u}k=b.length-1;h=b[0].length-1;d=b[k][h];for(a=[];0<k||0<h;)0==k?(a.push(2),h--):0==h?(a.push(3),k--):(g=b[k-1][h-1],m=b[k-1][h],n=b[k][h-1],q=m<n?m<g?m:g:n<g?n:g,q==g?(g==d?a.push(0):(a.push(1),d=g),k--,h--):q==m?(a.push(3),k--,d=m):(a.push(2),h--,d=n));a.reverse();b=void 0;k=[];for(h=0;h<a.length;h++)switch(a[h]){case 0:b&&(k.push(b),b=void 0);e++;f++;break;case 1:b||(b=$b(e,0));b.ga++;e++;b.T.push(c[f]);f++;break;case 2:b||(b=$b(e,
0));b.ga++;e++;break;case 3:b||(b=$b(e,0)),b.T.push(c[f]),f++}b&&k.push(b);return k}function bc(a,b){return a===b};function cc(a,b,c){Ab(a);c=c||null;var d=t(a),e=t(b),f=c?t(c):null;d.previousSibling=c?f.previousSibling:b.__shady_lastChild;if(f=v(d.previousSibling))f.nextSibling=a;if(f=v(d.nextSibling=c))f.previousSibling=a;d.parentNode=b;c?c===e.firstChild&&(e.firstChild=a):(e.lastChild=a,e.firstChild||(e.firstChild=a));e.childNodes=null}
function dc(a,b,c){Bb(b);var d=t(b);void 0!==d.firstChild&&(d.childNodes=null);if(a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){d=a.__shady_childNodes;for(var e=0;e<d.length;e++)cc(d[e],b,c);a=t(a);b=void 0!==a.firstChild?null:void 0;a.firstChild=a.lastChild=b;a.childNodes=b}else cc(a,b,c)}
function ec(a,b){var c=t(a);b=t(b);a===b.firstChild&&(b.firstChild=c.nextSibling);a===b.lastChild&&(b.lastChild=c.previousSibling);a=c.previousSibling;var d=c.nextSibling;a&&(t(a).nextSibling=d);d&&(t(d).previousSibling=a);c.parentNode=c.previousSibling=c.nextSibling=void 0;void 0!==b.childNodes&&(b.childNodes=null)}
function fc(a){var b=t(a);if(void 0===b.firstChild){b.childNodes=null;var c=b.firstChild=a.__shady_native_firstChild||null;b.lastChild=a.__shady_native_lastChild||null;Bb(a);b=c;for(c=void 0;b;b=b.__shady_native_nextSibling){var d=t(b);d.parentNode=a;d.nextSibling=b.__shady_native_nextSibling||null;d.previousSibling=c||null;c=b;Ab(b)}}};var gc=null;function F(){gc||(gc=window.ShadyCSS&&window.ShadyCSS.ScopingShim);return gc||null}function hc(a,b){var c=F();c&&c.unscopeNode(a,b)}function ic(a,b){var c=F();if(!c)return!0;if(a.nodeType===Node.DOCUMENT_FRAGMENT_NODE){c=!0;a=a.__shady_childNodes;for(var d=0;c&&d<a.length;d++)c=c&&ic(a[d],b);return c}return a.nodeType!==Node.ELEMENT_NODE?!0:c.currentScopeForNode(a)===b}function jc(a){if(a.nodeType!==Node.ELEMENT_NODE)return"";var b=F();return b?b.currentScopeForNode(a):""}
function kc(a,b){if(a){a.nodeType===Node.ELEMENT_NODE&&b(a);a=a.__shady_childNodes;for(var c=0,d;c<a.length;c++)d=a[c],d.nodeType===Node.ELEMENT_NODE&&kc(d,b)}};var lc=window.document,rc=w.gb,sc=Object.getOwnPropertyDescriptor(Node.prototype,"isConnected"),tc=sc&&sc.get;function uc(a){for(var b;b=a.__shady_firstChild;)a.__shady_removeChild(b)}function vc(a){var b=v(a);if(b&&void 0!==b.S){b=a.__shady_childNodes;for(var c=0,d=b.length,e=void 0;c<d&&(e=b[c]);c++)vc(e)}if(a=v(a))a.S=void 0}function wc(a){var b=a;a&&"slot"===a.localName&&(b=(b=(b=v(a))&&b.G)&&b.length?b[0]:wc(a.__shady_nextSibling));return b}
function xc(a,b,c){if(a=(a=v(a))&&a.M)b&&a.addedNodes.push(b),c&&a.removedNodes.push(c),Wa(a)}
var zc=A({get parentNode(){var a=v(this);a=a&&a.parentNode;return void 0!==a?a:this.__shady_native_parentNode},get firstChild(){var a=v(this);a=a&&a.firstChild;return void 0!==a?a:this.__shady_native_firstChild},get lastChild(){var a=v(this);a=a&&a.lastChild;return void 0!==a?a:this.__shady_native_lastChild},get nextSibling(){var a=v(this);a=a&&a.nextSibling;return void 0!==a?a:this.__shady_native_nextSibling},get previousSibling(){var a=v(this);a=a&&a.previousSibling;return void 0!==a?a:this.__shady_native_previousSibling},
get childNodes(){if(x(this)){var a=v(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(a){return c[a]};return c},get parentElement(){var a=v(this);(a=a&&a.parentNode)&&a.nodeType!==Node.ELEMENT_NODE&&(a=null);return void 0!==a?a:this.__shady_native_parentElement},get isConnected(){if(tc&&tc.call(this))return!0;if(this.nodeType==Node.DOCUMENT_FRAGMENT_NODE)return!1;
var a=this.ownerDocument;if(Oa){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||(y(a)?a.host:void 0);return!!(a&&a instanceof Document)},get textContent(){if(x(this)){for(var a=[],b=0,c=this.__shady_childNodes,d;d=c[b];b++)d.nodeType!==Node.COMMENT_NODE&&a.push(d.__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(!x(this)&&w.l){var b=this.__shady_firstChild;(b!=this.__shady_lastChild||b&&b.nodeType!=Node.TEXT_NODE)&&uc(this);this.__shady_native_textContent=a}else uc(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!==lc&&a.ownerDocument!==lc)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=v(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;var d=[],e=(c=yc(this))?c.host.localName:jc(this),f=a.__shady_parentNode;if(f){var h=jc(a);var g=!!c||!yc(a)||rc&&void 0!==
this.__noInsertionPoint;f.__shady_removeChild(a,g)}f=!0;var k=(!rc||void 0===a.__noInsertionPoint&&void 0===this.__noInsertionPoint)&&!ic(a,e),m=c&&!a.__noInsertionPoint&&(!rc||a.nodeType===Node.DOCUMENT_FRAGMENT_NODE);if(m||k)k&&(h=h||jc(a)),kc(a,function(a){m&&"slot"===a.localName&&d.push(a);if(k){var b=h;F()&&(b&&hc(a,b),(b=F())&&b.scopeNode(a,e))}});if("slot"===this.localName||d.length)d.length&&c.rb(d),c&&c.B();x(this)&&(dc(a,this,b),c=v(this),Ha(this)?(c.root.B(),f=!1):c.root&&(f=!1));f?(c=
y(this)?this.host:this,b?(b=wc(b),c.__shady_native_insertBefore(a,b)):c.__shady_native_appendChild(a)):a.ownerDocument!==this.ownerDocument&&this.ownerDocument.adoptNode(a);xc(this,a);return a},appendChild:function(a){return this.__shady_insertBefore(a)},removeChild:function(a,b){b=void 0===b?!1:b;if(this.ownerDocument!==lc)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);var c=yc(a),d=c&&c.Wb(a),e=v(this);
if(x(this)&&(ec(a,this),Ha(this))){e.root.B();var f=!0}if(F()&&!b&&c){var h=jc(a);kc(a,function(a){hc(a,h)})}vc(a);c&&((b=this&&"slot"===this.localName)&&(f=!0),(d||b)&&c.B());f||(f=y(this)?this.host:this,(!e.root&&"slot"!==a.localName||f===a.__shady_native_parentNode)&&f.__shady_native_removeChild(a));xc(this,null,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_childNodes;for(var c=0,d;c<a.length;c++)d=a[c].__shady_cloneNode(!0),b.__shady_appendChild(d)}return b},getRootNode:function(a){if(this&&this.nodeType){var b=t(this),c=b.S;void 0===c&&(y(this)?(c=this,b.S=c):(c=(c=this.__shady_parentNode)?c.__shady_getRootNode(a):this,document.documentElement.__shady_native_contains(this)&&(b.S=c)));return c}},contains:function(a){return Pa(this,a)}});function Ac(a,b,c){var d=[];Bc(a.__shady_childNodes,b,c,d);return d}function Bc(a,b,c,d){for(var e=0,f=a.length,h=void 0;e<f&&(h=a[e]);e++){var g;if(g=h.nodeType===Node.ELEMENT_NODE){g=h;var k=b,m=c,n=d,q=k(g);q&&n.push(g);m&&m(q)?g=q:(Bc(g.__shady_childNodes,k,m,n),g=void 0)}if(g)break}}
var Cc=A({get firstElementChild(){var a=v(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=v(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 x(this)?Qa(Array.prototype.filter.call(this.__shady_childNodes,
function(a){return a.nodeType===Node.ELEMENT_NODE})):this.__shady_native_children},get childElementCount(){var a=this.__shady_children;return a?a.length:0}}),Dc=A({querySelector:function(a){return Ac(this,function(b){return Ja.call(b,a)},function(a){return!!a})[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(a){return a.__shady_getRootNode()==c})}return Ac(this,function(b){return Ja.call(b,
a)})}}),Ec=w.gb&&!w.L?Object.assign({},Cc):Cc;Object.assign(Cc,Dc);var Fc=A({getElementById:function(a){return""===a?null:Ac(this,function(b){return b.id==a},function(a){return!!a})[0]||null}});var Gc=A({get activeElement(){var a=w.l?document.__shady_native_activeElement:document.activeElement;if(!a||!a.nodeType)return null;var b=!!y(this);if(!(this===document||b&&this.host!==a&&this.host.__shady_native_contains(a)))return null;for(b=yc(a);b&&b!==this;)a=b.host,b=yc(a);return this===document?b?null:a:b===this?a:null}});var Hc=document.implementation.createHTMLDocument("inert"),Ic=A({get innerHTML(){return x(this)?kb("template"===this.localName?this.content:this,function(a){return a.__shady_childNodes}):this.__shady_native_innerHTML},set innerHTML(a){if("template"===this.localName)this.__shady_native_innerHTML=a;else{uc(this);var b=this.localName||"div";b=this.namespaceURI&&this.namespaceURI!==Hc.namespaceURI?Hc.createElementNS(this.namespaceURI,b):Hc.createElement(b);for(w.l?b.__shady_native_innerHTML=a:b.innerHTML=
a;a=b.__shady_firstChild;)this.__shady_insertBefore(a)}}});var Jc=A({addEventListener:function(a,b,c){"object"!==typeof c&&(c={capture:!!c});c.ma=this;this.host.__shady_addEventListener(a,b,c)},removeEventListener:function(a,b,c){"object"!==typeof c&&(c={capture:!!c});c.ma=this;this.host.__shady_removeEventListener(a,b,c)}});function Kc(a,b){z(a,Jc,b);z(a,Gc,b);z(a,Ic,b);z(a,Cc,b);w.L&&!b?(z(a,zc,b),z(a,Fc,b)):w.l||(z(a,wb),z(a,vb))};var Lc={},G=w.deferConnectionCallbacks&&"loading"===document.readyState,Mc;function Nc(a){var b=[];do b.unshift(a);while(a=a.__shady_parentNode);return b}
function Oc(a,b,c){if(a!==Lc)throw new TypeError("Illegal constructor");this.Qb="ShadyRoot";this.host=b;this.mode=c&&c.mode;fc(b);a=t(b);a.root=this;a.ib="closed"!==this.mode?this:null;a=t(this);a.firstChild=a.lastChild=a.parentNode=a.nextSibling=a.previousSibling=null;a.childNodes=[];this.ta=this.D=!1;this.s=this.b=this.a=null;if(w.preferPerformance)for(;a=b.__shady_native_firstChild;)b.__shady_native_removeChild(a);else this.B()}l=Oc.prototype;l.B=function(){var a=this;this.D||(this.D=!0,Ta(function(){return a.ca()}))};
l.Kb=function(){for(var a,b=this;b;)b.D&&(a=b),b=b.Jb();return a};l.Jb=function(){var a=this.host.__shady_getRootNode();if(y(a)){var b=v(this.host);if(b&&0<b.X)return a}};l.ca=function(){var a=this.D&&this.Kb();a&&a._renderSelf()};l.Fb=function(){!this.ta&&this.D&&this.ca()};
l._renderSelf=function(){var a=G;G=!0;this.D=!1;this.a&&(this.yb(),this.wb());if(!w.preferPerformance&&!this.ta)for(var b=this.host.__shady_childNodes,c=0,d=b.length;c<d;c++){var e=b[c],f=v(e);e.__shady_native_parentNode!==this.host||"slot"!==e.localName&&f.assignedSlot||this.host.__shady_native_removeChild(e)}this.ta=!0;G=a;Mc&&Mc()};
l.yb=function(){this.fa();for(var a=0,b;a<this.a.length;a++)b=this.a[a],this.vb(b);for(a=this.host.__shady_firstChild;a;a=a.__shady_nextSibling)this.Pa(a);for(a=0;a<this.a.length;a++){b=this.a[a];var c=v(b);if(!c.assignedNodes.length)for(var d=b.__shady_firstChild;d;d=d.__shady_nextSibling)this.Pa(d,b);(d=(d=v(b.__shady_parentNode))&&d.root)&&(d.Sa()||d.D)&&d._renderSelf();this.Ma(c.G,c.assignedNodes);if(d=c.xa){for(var e=0;e<d.length;e++)v(d[e]).ba=null;c.xa=null;d.length>c.assignedNodes.length&&
(c.ia=!0)}c.ia&&(c.ia=!1,this.Qa(b))}};l.Pa=function(a,b){var c=t(a),d=c.ba;c.ba=null;b||(b=(b=this.b[a.__shady_slot||"__catchall"])&&b[0]);b?(t(b).assignedNodes.push(a),c.assignedSlot=b):c.assignedSlot=void 0;d!==c.assignedSlot&&c.assignedSlot&&(t(c.assignedSlot).ia=!0)};l.vb=function(a){var b=v(a),c=b.assignedNodes;b.assignedNodes=[];b.G=[];if(b.xa=c)for(b=0;b<c.length;b++){var d=v(c[b]);d.ba=d.assignedSlot;d.assignedSlot===a&&(d.assignedSlot=null)}};
l.Ma=function(a,b){for(var c=0,d=void 0;c<b.length&&(d=b[c]);c++)if("slot"==d.localName){var e=v(d).assignedNodes;e&&e.length&&this.Ma(a,e)}else a.push(b[c])};l.Qa=function(a){a.__shady_native_dispatchEvent(new Event("slotchange"));a=v(a);a.assignedSlot&&this.Qa(a.assignedSlot)};l.wb=function(){for(var a=this.a,b=[],c=0;c<a.length;c++){var d=a[c].__shady_parentNode,e=v(d);e&&e.root||!(0>b.indexOf(d))||b.push(d)}for(a=0;a<b.length;a++)c=b[a],this.gc(c===this?this.host:c,this.xb(c))};
l.xb=function(a){var b=[];a=a.__shady_childNodes;for(var c=0;c<a.length;c++){var d=a[c];if(this.Nb(d)){d=v(d).G;for(var e=0;e<d.length;e++)b.push(d[e])}else b.push(d)}return b};l.Nb=function(a){return"slot"==a.localName};
l.gc=function(a,b){for(var c=Array.prototype.slice.call(a.__shady_native_childNodes),d=ac(b,b.length,c,c.length),e=0,f=0,h=void 0;e<d.length&&(h=d[e]);e++){for(var g=0,k=void 0;g<h.T.length&&(k=h.T[g]);g++)k.__shady_native_parentNode===a&&a.__shady_native_removeChild(k),c.splice(h.index+f,1);f-=h.ga}e=0;for(f=void 0;e<d.length&&(f=d[e]);e++)for(h=c[f.index],g=f.index;g<f.index+f.ga;g++)k=b[g],a.__shady_native_insertBefore(k,h),c.splice(g,0,k)};
l.Db=function(){this.s=this.s||[];this.a=this.a||[];this.b=this.b||{}};l.rb=function(a){this.Db();this.s.push.apply(this.s,a instanceof Array?a:da(ca(a)))};l.fa=function(){this.s&&this.s.length&&(this.Rb(this.s),this.s=[])};l.Rb=function(a){for(var b,c=0;c<a.length;c++){var d=a[c];fc(d);var e=d.__shady_parentNode;fc(e);e=v(e);e.X=(e.X||0)+1;e=this.Ua(d);this.b[e]?(b=b||{},b[e]=!0,this.b[e].push(d)):this.b[e]=[d];this.a.push(d)}if(b)for(var f in b)this.b[f]=this.Ya(this.b[f])};
l.Ua=function(a){var b=a.name||a.getAttribute("name")||"__catchall";return a.pb=b};l.Ya=function(a){return a.sort(function(a,c){a=Nc(a);for(var b=Nc(c),e=0;e<a.length;e++){c=a[e];var f=b[e];if(c!==f)return a=Array.from(c.__shady_parentNode.__shady_childNodes),a.indexOf(c)-a.indexOf(f)}})};
l.Wb=function(a){if(this.a){this.fa();var b=this.b,c;for(c in b)for(var d=b[c],e=0;e<d.length;e++){var f=d[e];if(Pa(a,f)){d.splice(e,1);var h=this.a.indexOf(f);0<=h&&(this.a.splice(h,1),(h=v(f.__shady_parentNode))&&h.X&&h.X--);e--;this.Xb(f);h=!0}}return h}};l.hc=function(a){if(this.a){this.fa();var b=a.pb,c=this.Ua(a);if(c!==b){b=this.b[b];var d=b.indexOf(a);0<=d&&b.splice(d,1);b=this.b[c]||(this.b[c]=[]);b.push(a);1<b.length&&(this.b[c]=this.Ya(b))}}};
l.Xb=function(a){a=v(a);var b=a.G;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.G=[];a.assignedNodes=[]};l.Sa=function(){this.fa();return!(!this.a||!this.a.length)};
(function(a){a.__proto__=DocumentFragment.prototype;Kc(a,"__shady_");Kc(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})})})(Oc.prototype);
if(window.customElements&&w.Ea&&!w.preferPerformance){var Pc=new Map;Mc=function(){var a=[];Pc.forEach(function(b,c){a.push([c,b])});Pc.clear();for(var b=0;b<a.length;b++){var c=a[b][0];a[b][1]?c.nb():c.ob()}};G&&document.addEventListener("readystatechange",function(){G=!1;Mc()},{once:!0});var Qc=function(a,b,c){var d=0,e="__isConnected"+d++;if(b||c)a.prototype.connectedCallback=a.prototype.nb=function(){G?Pc.set(this,!0):this[e]||(this[e]=!0,b&&b.call(this))},a.prototype.disconnectedCallback=a.prototype.ob=
function(){G?this.isConnected||Pc.set(this,!1):this[e]&&(this[e]=!1,c&&c.call(this))};return a},define=window.customElements.define;Object.defineProperty(window.CustomElementRegistry.prototype,"define",{value:function(a,b){var c=b.prototype.connectedCallback,d=b.prototype.disconnectedCallback;define.call(window.customElements,a,Qc(b,c,d));b.prototype.connectedCallback=c;b.prototype.disconnectedCallback=d}})}function yc(a){a=a.__shady_getRootNode();if(y(a))return a};function Rc(a){this.node=a}l=Rc.prototype;l.addEventListener=function(a,b,c){return this.node.__shady_addEventListener(a,b,c)};l.removeEventListener=function(a,b,c){return this.node.__shady_removeEventListener(a,b,c)};l.appendChild=function(a){return this.node.__shady_appendChild(a)};l.insertBefore=function(a,b){return this.node.__shady_insertBefore(a,b)};l.removeChild=function(a){return this.node.__shady_removeChild(a)};l.replaceChild=function(a,b){return this.node.__shady_replaceChild(a,b)};
l.cloneNode=function(a){return this.node.__shady_cloneNode(a)};l.getRootNode=function(a){return this.node.__shady_getRootNode(a)};l.contains=function(a){return this.node.__shady_contains(a)};l.dispatchEvent=function(a){return this.node.__shady_dispatchEvent(a)};l.setAttribute=function(a,b){this.node.__shady_setAttribute(a,b)};l.getAttribute=function(a){return this.node.__shady_native_getAttribute(a)};l.hasAttribute=function(a){return this.node.__shady_native_hasAttribute(a)};l.removeAttribute=function(a){this.node.__shady_removeAttribute(a)};
l.attachShadow=function(a){return this.node.__shady_attachShadow(a)};l.focus=function(){this.node.__shady_native_focus()};l.blur=function(){this.node.__shady_blur()};l.importNode=function(a,b){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_importNode(a,b)};l.getElementById=function(a){if(this.node.nodeType===Node.DOCUMENT_NODE)return this.node.__shady_getElementById(a)};l.querySelector=function(a){return this.node.__shady_querySelector(a)};
l.querySelectorAll=function(a,b){return this.node.__shady_querySelectorAll(a,b)};l.assignedNodes=function(a){if("slot"===this.node.localName)return this.node.__shady_assignedNodes(a)};
ea.Object.defineProperties(Rc.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){if(y(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(y(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}}});
Zb.forEach(function(a){Object.defineProperty(Rc.prototype,a,{get:function(){return this.node["__shady_"+a]},set:function(b){this.node["__shady_"+a]=b},configurable:!0})});var Sc=new WeakMap;function Tc(a){if(y(a)||a instanceof Rc)return a;var b=Sc.get(a);b||(b=new Rc(a),Sc.set(a,b));return b};var Uc=A({dispatchEvent:function(a){Ua();return this.__shady_native_dispatchEvent(a)},addEventListener:Qb,removeEventListener:Sb});var Vc=A({get assignedSlot(){var a=this.__shady_parentNode;(a=a&&a.__shady_shadowRoot)&&a.ca();return(a=v(this))&&a.assignedSlot||null}});var Wc=window.document;function Xc(a,b){"slot"===b?(a=a.__shady_parentNode,Ha(a)&&v(a).root.B()):"slot"===a.localName&&"name"===b&&(b=yc(a))&&(b.hc(a),b.B())}
var Yc=A({get previousElementSibling(){var a=v(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=v(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=v(this);return a&&a.ib||null},get className(){return this.getAttribute("class")||""},set className(a){this.__shady_setAttribute("class",a)},setAttribute:function(a,b){if(this.ownerDocument!==Wc)this.__shady_native_setAttribute(a,b);else{var c;(c=F())&&"class"===a?(c.setElementClass(this,b),c=!0):c=!1;c||(this.__shady_native_setAttribute(a,b),Xc(this,a))}},removeAttribute:function(a){this.__shady_native_removeAttribute(a);Xc(this,
a)},attachShadow:function(a){if(!this)throw Error("Must provide a host.");if(!a)throw Error("Not enough arguments.");return new Oc(Lc,this,a)}});var Zc=A({blur:function(){var a=v(this);(a=(a=a&&a.root)&&a.activeElement)?a.__shady_blur():this.__shady_native_blur()}});Zb.forEach(function(a){Zc[a]={set:function(b){var c=t(this),d=a.substring(2);c.Y[a]&&this.removeEventListener(d,c.Y[a]);this.__shady_addEventListener(d,b);c.Y[a]=b},get:function(){var b=v(this);return b&&b.Y[a]},configurable:!0}});var $c=A({assignedNodes:function(a){if("slot"===this.localName){var b=this.__shady_getRootNode();b&&y(b)&&b.ca();return(b=v(this))?(a&&a.flatten?b.G:b.assignedNodes)||[]:[]}}});var ad=window.document,bd=A({importNode:function(a,b){if(a.ownerDocument!==ad||"template"===a.localName)return this.__shady_native_importNode(a,b);var c=this.__shady_native_importNode(a,!1);if(b){a=a.__shady_childNodes;b=0;for(var d;b<a.length;b++)d=this.__shady_importNode(a[b],!0),c.__shady_appendChild(d)}return c}});var cd=A({addEventListener:Qb.bind(window),removeEventListener:Sb.bind(window)});var dd={};Object.getOwnPropertyDescriptor(HTMLElement.prototype,"parentElement")&&(dd.parentElement=zc.parentElement);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"contains")&&(dd.contains=zc.contains);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"children")&&(dd.children=Cc.children);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerHTML")&&(dd.innerHTML=Ic.innerHTML);Object.getOwnPropertyDescriptor(HTMLElement.prototype,"className")&&(dd.className=Yc.className);
var ed={EventTarget:[Uc],Node:[zc,window.EventTarget?null:Uc],Text:[Vc],Element:[Yc,Cc,Vc,!w.l||"innerHTML"in Element.prototype?Ic:null,window.HTMLSlotElement?null:$c],HTMLElement:[Zc,dd],HTMLSlotElement:[$c],DocumentFragment:[Ec,Fc],Document:[bd,Ec,Fc,Gc],Window:[cd]},fd=w.l?null:["innerHTML","textContent"];function gd(a){var b=a?null:fd,c={},d;for(d in ed)c.V=window[d]&&window[d].prototype,ed[d].forEach(function(c){return function(d){return c.V&&d&&z(c.V,d,a,b)}}(c)),c={V:c.V}};if(w.Ea){var ShadyDOM={inUse:w.Ea,patch:function(a){Bb(a);Ab(a);return a},isShadyRoot:y,enqueue:Ta,flush:Ua,flushInitial:function(a){a.Fb()},settings:w,filterMutations:Za,observeChildren:Xa,unobserveChildren:Ya,deferConnectionCallbacks:w.deferConnectionCallbacks,preferPerformance:w.preferPerformance,handlesDynamicScoping:!0,wrap:w.L?Tc:function(a){return a},Wrapper:Rc,composedPath:Ib,noPatch:w.L,nativeMethods:mb,nativeTree:nb};window.ShadyDOM=ShadyDOM;ub();gd("__shady_");Object.defineProperty(document,
"_activeElement",Gc.activeElement);z(Window.prototype,cd,"__shady_");w.L||(gd(),Yb());Tb();window.Event=Vb;window.CustomEvent=Wb;window.MouseEvent=Xb;window.ShadowRoot=Oc};var hd=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function id(a){var b=hd.has(a);a=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(a);return!b&&a}function H(a){var b=a.isConnected;if(void 0!==b)return b;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 jd(a,b){for(;b&&b!==a&&!b.nextSibling;)b=b.parentNode;return b&&b!==a?b.nextSibling:null}
function I(a,b,c){c=void 0===c?new Set: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"];if(d instanceof Node&&!c.has(d))for(c.add(d),d=d.firstChild;d;d=d.nextSibling)I(d,b,c);d=jd(a,e);continue}else if("template"===f){d=jd(a,e);continue}if(e=e.__CE_shadowRoot)for(e=e.firstChild;e;e=e.nextSibling)I(e,b,c)}d=d.firstChild?d.firstChild:jd(a,d)}}function J(a,b,c){a[b]=c};function kd(){this.o=new Map;this.Oa=new Map;this.va=[];this.aa=!1}function ld(a,b,c){a.o.set(b,c);a.Oa.set(c.constructorFunction,c)}function md(a,b){a.aa=!0;a.va.push(b)}function nd(a,b){a.aa&&I(b,function(b){return od(a,b)})}function od(a,b){if(a.aa&&!b.__CE_patched){b.__CE_patched=!0;for(var c=0;c<a.va.length;c++)a.va[c](b)}}function K(a,b){var c=[];I(b,function(a){return c.push(a)});for(b=0;b<c.length;b++){var d=c[b];1===d.__CE_state?a.connectedCallback(d):pd(a,d)}}
function L(a,b){var c=[];I(b,function(a){return c.push(a)});for(b=0;b<c.length;b++){var d=c[b];1===d.__CE_state&&a.disconnectedCallback(d)}}
function M(a,b,c){c=void 0===c?{}:c;var d=c.Hc||new Set,e=c.upgrade||function(b){return pd(a,b)},f=[];I(b,function(b){if("link"===b.localName&&"import"===b.getAttribute("rel")){var c=b["import"];c instanceof Node&&(c.__CE_isImportDocument=!0,c.__CE_hasRegistry=!0);c&&"complete"===c.readyState?c.__CE_documentLoadHandled=!0:b.addEventListener("load",function(){var c=b["import"];if(!c.__CE_documentLoadHandled){c.__CE_documentLoadHandled=!0;var f=new Set(d);f["delete"](c);M(a,c,{Hc:f,upgrade:e})}})}else f.push(b)},
d);if(a.aa)for(b=0;b<f.length;b++)od(a,f[b]);for(b=0;b<f.length;b++)e(f[b])}
function pd(a,b){if(void 0===b.__CE_state){var c=b.ownerDocument;if(c.defaultView||c.__CE_isImportDocument&&c.__CE_hasRegistry)if(c=a.o.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(h){throw b.__CE_state=2,h;}b.__CE_state=1;b.__CE_definition=c;if(c.attributeChangedCallback)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)}H(b)&&a.connectedCallback(b)}}}kd.prototype.connectedCallback=function(a){var b=a.__CE_definition;b.connectedCallback&&b.connectedCallback.call(a)};kd.prototype.disconnectedCallback=function(a){var b=a.__CE_definition;b.disconnectedCallback&&b.disconnectedCallback.call(a)};
kd.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 qd(a){var b=document;this.c=a;this.Z=b;this.I=void 0;M(this.c,this.Z);"loading"===this.Z.readyState&&(this.I=new MutationObserver(this.Mb.bind(this)),this.I.observe(this.Z,{childList:!0,subtree:!0}))}qd.prototype.disconnect=function(){this.I&&this.I.disconnect()};qd.prototype.Mb=function(a){var b=this.Z.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++)M(this.c,c[d])};function rd(){var a=this;this.ya=this.f=void 0;this.Wa=new Promise(function(b){a.ya=b;a.f&&b(a.f)})}rd.prototype.resolve=function(a){if(this.f)throw Error("Already resolved.");this.f=a;this.ya&&this.ya(a)};function N(a){this.qa=!1;this.c=a;this.Ca=new Map;this.sa=function(a){return a()};this.$=!1;this.wa=[];this.zb=new qd(a)}l=N.prototype;
l.define=function(a,b){var c=this;if(!(b instanceof Function))throw new TypeError("Custom element constructors must be functions.");if(!id(a))throw new SyntaxError("The element name '"+a+"' is not valid.");if(this.c.o.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;try{var d=function(a){var b=e[a];if(void 0!==b&&!(b instanceof Function))throw Error("The '"+a+"' callback must be a function.");
return b},e=b.prototype;if(!(e instanceof Object))throw new TypeError("The custom element constructor's prototype is not an object.");var f=d("connectedCallback");var h=d("disconnectedCallback");var g=d("adoptedCallback");var k=d("attributeChangedCallback");var m=b.observedAttributes||[]}catch(n){return}finally{this.qa=!1}b={localName:a,constructorFunction:b,connectedCallback:f,disconnectedCallback:h,adoptedCallback:g,attributeChangedCallback:k,observedAttributes:m,constructionStack:[]};ld(this.c,
a,b);this.wa.push(b);this.$||(this.$=!0,this.sa(function(){return c.Eb()}))};l.upgrade=function(a){M(this.c,a)};
l.Eb=function(){var a=this;if(!1!==this.$){this.$=!1;for(var b=this.wa,c=[],d=new Map,e=0;e<b.length;e++)d.set(b[e].localName,[]);M(this.c,document,{upgrade:function(b){if(void 0===b.__CE_state){var e=b.localName,f=d.get(e);f?f.push(b):a.c.o.get(e)&&c.push(b)}}});for(e=0;e<c.length;e++)pd(this.c,c[e]);for(;0<b.length;){var f=b.shift();e=f.localName;f=d.get(f.localName);for(var h=0;h<f.length;h++)pd(this.c,f[h]);(e=this.Ca.get(e))&&e.resolve(void 0)}}};l.get=function(a){if(a=this.c.o.get(a))return a.constructorFunction};
l.whenDefined=function(a){if(!id(a))return Promise.reject(new SyntaxError("'"+a+"' is not a valid custom element name."));var b=this.Ca.get(a);if(b)return b.Wa;b=new rd;this.Ca.set(a,b);this.c.o.get(a)&&!this.wa.some(function(b){return b.localName===a})&&b.resolve(void 0);return b.Wa};l.xc=function(a){this.zb.disconnect();var b=this.sa;this.sa=function(c){return a(function(){return b(c)})}};window.CustomElementRegistry=N;N.prototype.define=N.prototype.define;N.prototype.upgrade=N.prototype.upgrade;
N.prototype.get=N.prototype.get;N.prototype.whenDefined=N.prototype.whenDefined;N.prototype.polyfillWrapFlushCallback=N.prototype.xc;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,Ad=window.Node.prototype.appendChild,Bd=window.Node.prototype.insertBefore,Cd=window.Node.prototype.removeChild,Dd=window.Node.prototype.replaceChild,Ed=Object.getOwnPropertyDescriptor(window.Node.prototype,
"textContent"),Fd=window.Element.prototype.attachShadow,Gd=Object.getOwnPropertyDescriptor(window.Element.prototype,"innerHTML"),Hd=window.Element.prototype.getAttribute,Id=window.Element.prototype.setAttribute,Jd=window.Element.prototype.removeAttribute,Kd=window.Element.prototype.getAttributeNS,Ld=window.Element.prototype.setAttributeNS,Md=window.Element.prototype.removeAttributeNS,Nd=window.Element.prototype.insertAdjacentElement,Od=window.Element.prototype.insertAdjacentHTML,Pd=window.Element.prototype.prepend,
Qd=window.Element.prototype.append,Rd=window.Element.prototype.before,Sd=window.Element.prototype.after,Td=window.Element.prototype.replaceWith,Ud=window.Element.prototype.remove,Vd=window.HTMLElement,Wd=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,"innerHTML"),Xd=window.HTMLElement.prototype.insertAdjacentElement,Yd=window.HTMLElement.prototype.insertAdjacentHTML;var Zd=new function(){};function $d(){var a=ae;window.HTMLElement=function(){function b(){var b=this.constructor,d=a.Oa.get(b);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,b.prototype),e.__CE_state=1,e.__CE_definition=d,od(a,e),e;d=e.length-1;var f=e[d];if(f===Zd)throw Error("The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.");
e[d]=Zd;Object.setPrototypeOf(f,b.prototype);od(a,f);return f}b.prototype=Vd.prototype;Object.defineProperty(b.prototype,"constructor",{writable:!0,configurable:!0,enumerable:!1,value:b});return b}()};function be(a,b,c){function d(b){return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];e=[];for(var f=[],m=0;m<d.length;m++){var n=d[m];n instanceof Element&&H(n)&&f.push(n);if(n instanceof DocumentFragment)for(n=n.firstChild;n;n=n.nextSibling)e.push(n);else e.push(n)}b.apply(this,d);for(d=0;d<f.length;d++)L(a,f[d]);if(H(this))for(d=0;d<e.length;d++)f=e[d],f instanceof Element&&K(a,f)}}void 0!==c.prepend&&(b.prepend=d(c.prepend));void 0!==c.append&&(b.append=d(c.append))}
;function ce(){var a=ae;J(Document.prototype,"createElement",function(b){if(this.__CE_hasRegistry){var c=a.o.get(b);if(c)return new c.constructorFunction}b=sd.call(this,b);od(a,b);return b});J(Document.prototype,"importNode",function(b,c){b=ud.call(this,b,!!c);this.__CE_hasRegistry?M(a,b):nd(a,b);return b});J(Document.prototype,"createElementNS",function(b,c){if(this.__CE_hasRegistry&&(null===b||"http://www.w3.org/1999/xhtml"===b)){var d=a.o.get(c);if(d)return new d.constructorFunction}b=td.call(this,
b,c);od(a,b);return b});be(a,Document.prototype,{prepend:vd,append:wd})};function de(){function a(a,d){Object.defineProperty(a,"textContent",{enumerable:d.enumerable,configurable:!0,get:d.get,set:function(a){if(this.nodeType===Node.TEXT_NODE)d.set.call(this,a);else{var c=void 0;if(this.firstChild){var e=this.childNodes,g=e.length;if(0<g&&H(this)){c=Array(g);for(var k=0;k<g;k++)c[k]=e[k]}}d.set.call(this,a);if(c)for(a=0;a<c.length;a++)L(b,c[a])}}})}var b=ae;J(Node.prototype,"insertBefore",function(a,d){if(a instanceof DocumentFragment){var c=Array.prototype.slice.apply(a.childNodes);
a=Bd.call(this,a,d);if(H(this))for(d=0;d<c.length;d++)K(b,c[d]);return a}c=H(a);d=Bd.call(this,a,d);c&&L(b,a);H(this)&&K(b,a);return d});J(Node.prototype,"appendChild",function(a){if(a instanceof DocumentFragment){var c=Array.prototype.slice.apply(a.childNodes);a=Ad.call(this,a);if(H(this))for(var e=0;e<c.length;e++)K(b,c[e]);return a}c=H(a);e=Ad.call(this,a);c&&L(b,a);H(this)&&K(b,a);return e});J(Node.prototype,"cloneNode",function(a){a=zd.call(this,!!a);this.ownerDocument.__CE_hasRegistry?M(b,a):
nd(b,a);return a});J(Node.prototype,"removeChild",function(a){var c=H(a),e=Cd.call(this,a);c&&L(b,a);return e});J(Node.prototype,"replaceChild",function(a,d){if(a instanceof DocumentFragment){var c=Array.prototype.slice.apply(a.childNodes);a=Dd.call(this,a,d);if(H(this))for(L(b,d),d=0;d<c.length;d++)K(b,c[d]);return a}c=H(a);var f=Dd.call(this,a,d),h=H(this);h&&L(b,d);c&&L(b,a);h&&K(b,a);return f});Ed&&Ed.get?a(Node.prototype,Ed):md(b,function(b){a(b,{enumerable:!0,configurable:!0,get:function(){for(var a=
[],b=0;b<this.childNodes.length;b++)a.push(this.childNodes[b].textContent);return a.join("")},set:function(a){for(;this.firstChild;)Cd.call(this,this.firstChild);Ad.call(this,document.createTextNode(a))}})})};function ee(a){function b(b){return function(c){for(var d=[],e=0;e<arguments.length;++e)d[e-0]=arguments[e];e=[];for(var g=[],k=0;k<d.length;k++){var m=d[k];m instanceof Element&&H(m)&&g.push(m);if(m instanceof DocumentFragment)for(m=m.firstChild;m;m=m.nextSibling)e.push(m);else e.push(m)}b.apply(this,d);for(d=0;d<g.length;d++)L(a,g[d]);if(H(this))for(d=0;d<e.length;d++)g=e[d],g instanceof Element&&K(a,g)}}var c=Element.prototype;void 0!==Rd&&(c.before=b(Rd));void 0!==Rd&&(c.after=b(Sd));void 0!==
Td&&J(c,"replaceWith",function(b){for(var c=[],d=0;d<arguments.length;++d)c[d-0]=arguments[d];d=[];for(var h=[],g=0;g<c.length;g++){var k=c[g];k instanceof Element&&H(k)&&h.push(k);if(k instanceof DocumentFragment)for(k=k.firstChild;k;k=k.nextSibling)d.push(k);else d.push(k)}g=H(this);Td.apply(this,c);for(c=0;c<h.length;c++)L(a,h[c]);if(g)for(L(a,this),c=0;c<d.length;c++)h=d[c],h instanceof Element&&K(a,h)});void 0!==Ud&&J(c,"remove",function(){var b=H(this);Ud.call(this);b&&L(a,this)})};function fe(){function a(a,b){Object.defineProperty(a,"innerHTML",{enumerable:b.enumerable,configurable:!0,get:b.get,set:function(a){var c=this,e=void 0;H(this)&&(e=[],I(this,function(a){a!==c&&e.push(a)}));b.set.call(this,a);if(e)for(var f=0;f<e.length;f++){var h=e[f];1===h.__CE_state&&d.disconnectedCallback(h)}this.ownerDocument.__CE_hasRegistry?M(d,this):nd(d,this);return a}})}function b(a,b){J(a,"insertAdjacentElement",function(a,c){var e=H(c);a=b.call(this,a,c);e&&L(d,c);H(a)&&K(d,c);return a})}
function c(a,b){function c(a,b){for(var c=[];a!==b;a=a.nextSibling)c.push(a);for(b=0;b<c.length;b++)M(d,c[b])}J(a,"insertAdjacentHTML",function(a,d){a=a.toLowerCase();if("beforebegin"===a){var e=this.previousSibling;b.call(this,a,d);c(e||this.parentNode.firstChild,this)}else if("afterbegin"===a)e=this.firstChild,b.call(this,a,d),c(this.firstChild,e);else if("beforeend"===a)e=this.lastChild,b.call(this,a,d),c(e||this.firstChild,null);else if("afterend"===a)e=this.nextSibling,b.call(this,a,d),c(this.nextSibling,
e);else throw new SyntaxError("The value provided ("+String(a)+") is not one of 'beforebegin', 'afterbegin', 'beforeend', or 'afterend'.");})}var d=ae;Fd&&J(Element.prototype,"attachShadow",function(a){return this.__CE_shadowRoot=a=Fd.call(this,a)});Gd&&Gd.get?a(Element.prototype,Gd):Wd&&Wd.get?a(HTMLElement.prototype,Wd):md(d,function(b){a(b,{enumerable:!0,configurable:!0,get:function(){return zd.call(this,!0).innerHTML},set:function(a){var b="template"===this.localName,c=b?this.content:this,d=td.call(document,
this.namespaceURI,this.localName);for(d.innerHTML=a;0<c.childNodes.length;)Cd.call(c,c.childNodes[0]);for(a=b?d.content:d;0<a.childNodes.length;)Ad.call(c,a.childNodes[0])}})});J(Element.prototype,"setAttribute",function(a,b){if(1!==this.__CE_state)return Id.call(this,a,b);var c=Hd.call(this,a);Id.call(this,a,b);b=Hd.call(this,a);d.attributeChangedCallback(this,a,c,b,null)});J(Element.prototype,"setAttributeNS",function(a,b,c){if(1!==this.__CE_state)return Ld.call(this,a,b,c);var e=Kd.call(this,a,
b);Ld.call(this,a,b,c);c=Kd.call(this,a,b);d.attributeChangedCallback(this,b,e,c,a)});J(Element.prototype,"removeAttribute",function(a){if(1!==this.__CE_state)return Jd.call(this,a);var b=Hd.call(this,a);Jd.call(this,a);null!==b&&d.attributeChangedCallback(this,a,b,null,null)});J(Element.prototype,"removeAttributeNS",function(a,b){if(1!==this.__CE_state)return Md.call(this,a,b);var c=Kd.call(this,a,b);Md.call(this,a,b);var e=Kd.call(this,a,b);c!==e&&d.attributeChangedCallback(this,b,c,e,a)});Xd?b(HTMLElement.prototype,
Xd):Nd?b(Element.prototype,Nd):console.warn("Custom Elements: `Element#insertAdjacentElement` was not patched.");Yd?c(HTMLElement.prototype,Yd):Od?c(Element.prototype,Od):console.warn("Custom Elements: `Element#insertAdjacentHTML` was not patched.");be(d,Element.prototype,{prepend:Pd,append:Qd});ee(d)};var ge=window.customElements;if(!ge||ge.forcePolyfill||"function"!=typeof ge.define||"function"!=typeof ge.get){var ae=new kd;$d();ce();be(ae,DocumentFragment.prototype,{prepend:xd,append:yd});de();fe();document.__CE_hasRegistry=!0;var customElements=new N(ae);Object.defineProperty(window,"customElements",{configurable:!0,enumerable:!0,value:customElements})};function he(){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 ie(a){a=a.replace(je,"").replace(ke,"");var b=le,c=a,d=new he;d.start=0;d.end=c.length;for(var e=d,f=0,h=c.length;f<h;f++)if("{"===c[f]){e.rules||(e.rules=[]);var g=e,k=g.rules[g.rules.length-1]||null;e=new he;e.start=f+1;e.parent=g;e.previous=k;g.rules.push(e)}else"}"===c[f]&&(e.end=f+1,e=e.parent||d);return b(d,a)}
function le(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(me," "),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(ne)&&(a.type=7,a.keyframesName=a.selector.split(me).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++)le(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(a,c){a=c;for(c=6-a.length;c--;)a="0"+a;return"\\"+a})}
function oe(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,h=e.length,g=void 0;f<h&&(g=e[f]);f++)d=oe(g,b,d);else b?b=a.cssText:(b=a.cssText,b=b.replace(pe,"").replace(qe,""),b=b.replace(re,"").replace(xe,"")),(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 je=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,ke=/@import[^;]*;/gim,pe=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,qe=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,re=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,xe=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,ne=/^@[^\s]*keyframes/,me=/\s+/g;var O=!(window.ShadyDOM&&window.ShadyDOM.inUse),ye;function ze(a){ye=a&&a.shimcssproperties?!1:O||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))}var Ae;window.ShadyCSS&&void 0!==window.ShadyCSS.cssBuild&&(Ae=window.ShadyCSS.cssBuild);var Be=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);
window.ShadyCSS&&void 0!==window.ShadyCSS.nativeCss?ye=window.ShadyCSS.nativeCss:window.ShadyCSS?(ze(window.ShadyCSS),window.ShadyCSS=void 0):ze(window.WebComponents&&window.WebComponents.flags);var R=ye,Ce=Ae;var De=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,Ee=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,Fe=/(--[\w-]+)\s*([:,;)]|$)/gi,Ge=/(animation\s*:)|(animation-name\s*:)/,He=/@media\s(.*)/,Ie=/\{[^}]*\}/g;var Je=new Set;function Ke(a,b){if(!a)return"";"string"===typeof a&&(a=ie(a));b&&Le(a,b);return oe(a,R)}function Me(a){!a.__cssRules&&a.textContent&&(a.__cssRules=ie(a.textContent));return a.__cssRules||null}function Ne(a){return!!a.parent&&7===a.parent.type}function Le(a,b,c,d){if(a){var e=!1,f=a.type;if(d&&4===f){var h=a.selector.match(He);h&&(window.matchMedia(h[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,h=void 0;e<f&&(h=a[e]);e++)Le(h,b,c,d)}}
function Oe(a,b,c,d){var e=document.createElement("style");b&&e.setAttribute("scope",b);e.textContent=a;Pe(e,c,d);return e}var U=null;function Qe(a){a=document.createComment(" Shady DOM styles for "+a+" ");var b=document.head;b.insertBefore(a,(U?U.nextSibling:null)||b.firstChild);return U=a}function Pe(a,b,c){b=b||document.head;b.insertBefore(a,c&&c.nextSibling||b.firstChild);U?a.compareDocumentPosition(U)===Node.DOCUMENT_POSITION_PRECEDING&&(U=a):U=a}
function Re(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 Se(a,b){var c=a.indexOf("var(");if(-1===c)return b(a,"","","");var d=Re(a,c+3),e=a.substring(c+4,d);c=a.substring(0,c);a=Se(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 Te(a,b){O?a.setAttribute("class",b):window.ShadyDOM.nativeMethods.setAttribute.call(a,"class",b)}
var Ue=window.ShadyDOM&&window.ShadyDOM.wrap||function(a){return a};function V(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,U:c}}function Ve(a){for(var b=[],c="",d=0;0<=d&&d<a.length;d++)if("("===a[d]){var e=Re(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 We(a){if(void 0!==Ce)return Ce;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 Xe(a){a=void 0===a?"":a;return""!==a&&R?O?"shadow"===a:"shady"===a:!1};function Ye(){}function Ze(a,b){var c=W;c.ea(a,function(a){c.element(a,b||"")})}l=Ye.prototype;l.ea=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.ea(a[c],b)};
l.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,""),Te(a,b)):Te(a,(d?d+" ":"")+"style-scope "+b)}};function $e(a,b,c){var d=W;d.ea(a,function(a){d.element(a,b,!0);d.element(a,c)})}function af(a,b){var c=W;c.ea(a,function(a){c.element(a,b||"",!0)})}
function bf(a,b,c,d,e){var f=W;e=void 0===e?"":e;""===e&&(O||"shady"===(void 0===d?"":d)?e=Ke(b,c):(a=V(a),e=cf(f,b,a.is,a.U,c)+"\n\n"));return e.trim()}function cf(a,b,c,d,e){var f=a.oa(c,d);c=a.Na(c);return Ke(b,function(b){b.sc||(a.Za(b,a.Aa,c,f),b.sc=!0);e&&e(b,c,f)})}l.Na=function(a){return a?"."+a:""};l.oa=function(a,b){return b?"[is="+a+"]":a};l.Za=function(a,b,c,d){a.selector=a.j=this.$a(a,b,c,d)};
l.$a=function(a,b,c,d){var e=Ve(a.selector);if(!Ne(a)){a=0;for(var f=e.length,h=void 0;a<f&&(h=e[a]);a++)e[a]=b.call(this,h,c,d)}return e.filter(function(a){return!!a}).join(",")};l.bb=function(a){return a.replace(df,function(a,c,d){-1<d.indexOf("+")?d=d.replace(/\+/g,"___"):-1<d.indexOf("___")&&(d=d.replace(/___/g,"+"));return":"+c+"("+d+")"})};
l.Vb=function(a){for(var b=[],c;c=a.match(ef);){var d=c.index,e=Re(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}};l.Yb=function(a,b){var c=a.split("\ue000");return b.reduce(function(a,b,f){return a+b+c[f+1]},c[0])};
l.Aa=function(a,b,c){var d=this,e=!1;a=a.trim();var f=df.test(a);f&&(a=a.replace(df,function(a,b,c){return":"+b+"("+c.replace(/\s/g,"")+")"}),a=this.bb(a));var h=ef.test(a);if(h){var g=this.Vb(a);a=g.Ha;g=g.matches}a=a.replace(ff,":host $1");a=a.replace(gf,function(a,f,h){e||(a=d.dc(h,f,b,c),e=e||a.stop,f=a.jc,h=a.value);return f+h});h&&(a=this.Yb(a,g));f&&(a=this.bb(a));return a};
l.dc=function(a,b,c,d){var e=a.indexOf("::slotted");0<=a.indexOf(":host")?a=this.fc(a,d):0!==e&&(a=c?this.ab(a,c):a);c=!1;0<=e&&(b="",c=!0);if(c){var f=!0;c&&(a=a.replace(hf,function(a,b){return" > "+b}))}a=a.replace(jf,function(a,b,c){return'[dir="'+c+'"] '+b+", "+b+'[dir="'+c+'"]'});return{value:a,jc:b,stop:f}};l.ab=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("")};
l.fc=function(a,b){var c=a.match(kf);return(c=c&&c[2].trim()||"")?c[0].match(lf)?a.replace(kf,function(a,c,f){return b+f}):c.split(lf)[0]===b?c:"should_not_match":a.replace(":host",b)};function mf(a){":root"===a.selector&&(a.selector="html")}l.ec=function(a){return a.match(":host")?"":a.match("::slotted")?this.Aa(a,":not(.style-scope)"):this.ab(a.trim(),":not(.style-scope)")};ea.Object.defineProperties(Ye.prototype,{W:{configurable:!0,enumerable:!0,get:function(){return"style-scope"}}});
var df=/:(nth[-\w]+)\(([^)]+)\)/,gf=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=[])+)/g,lf=/[[.:#*]/,ff=/^(::slotted)/,kf=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,hf=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,jf=/(.*):dir\((?:(ltr|rtl))\)/,ef=/:(?:matches|any|-(?:webkit|moz)-any)/,W=new Ye;function nf(a,b,c,d,e){this.A=a||null;this.placeholder=b||null;this.Fa=c||[];this.N=null;this.cssBuild=e||"";this.U=d||"";this.J=this.m=this.w=null}function X(a){return a?a.__styleInfo:null}function of(a,b){return a.__styleInfo=b}nf.prototype.Lb=function(){return this.A};nf.prototype._getStyleRules=nf.prototype.Lb;function pf(a){var b=this.matches||this.matchesSelector||this.mozMatchesSelector||this.msMatchesSelector||this.oMatchesSelector||this.webkitMatchesSelector;return b&&b.call(this,a)}var qf=navigator.userAgent.match("Trident");function rf(){}function sf(a){var b={},c=[],d=0;Le(a,function(a){tf(a);a.index=d++;a=a.g.cssText;for(var c;c=Fe.exec(a);){var e=c[1];":"!==c[2]&&(b[e]=!0)}},function(a){c.push(a)});a.Ob=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(Ie,"").replace(De,"");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=De.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):Se(b,function(b,e,f,h){if(!e)return b+h;(e=vf(a,c[e],c))&&"initial"!==e?"apply-shim-inherit"===e&&(e="inherit"):e=vf(a,c[f]||f,c)||f;return b+(e||"")+h}));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]){Ee.lastIndex=0;if(f=Ee.exec(e))e=vf(a,c[f[1]],c);else if(f=e.indexOf(":"),-1!==f){var h=e.substring(f);h=h.trim();h=vf(a,h,c)||h;e=e.substring(0,f)+h}b[d]=e&&e.lastIndexOf(";")===e.length-1?e.slice(0,-1):e||""}return b.join(";")}
function xf(a,b){var c={},d=[];Le(a,function(a){a.g||tf(a);var e=a.j||a.parsedSelector;b&&a.g.v&&e&&pf.call(b,e)&&(uf(a,c),a=a.index,e=parseInt(a/32,10),d[e]=(d[e]||0)|1<<a%32)},null,!0);return{v:c,key:d}}
function yf(a,b,c,d){b.g||tf(b);if(b.g.v){var e=V(a);a=e.is;e=e.U;e=a?W.oa(a,e):"html";var f=b.parsedSelector,h=":host > *"===f||"html"===f,g=0===f.indexOf(":host")&&!h;"shady"===c&&(h=f===e+" > *."+e||-1!==f.indexOf("html"),g=!h&&0===f.indexOf(e));if(h||g)c=e,g&&(b.j||(b.j=W.$a(b,W.Aa,W.Na(a),e)),c=b.j||e),d({Ha:c,rc:g,Kc:h})}}function zf(a,b,c){var d={},e={};Le(b,function(b){yf(a,b,c,function(c){pf.call(a._element||a,c.Ha)&&(c.rc?uf(b,d):uf(b,e))})},null,!0);return{zc:e,qc:d}}
function Af(a,b,c,d){var e=V(b),f=W.oa(e.is,e.U),h=new RegExp("(?:^|[^.#[:])"+(b["extends"]?"\\"+f.slice(0,-1)+"\\]":f)+"($|[.:[\\s>+~])"),g=X(b);e=g.A;g=g.cssBuild;var k=a.Ab(b,e,d);return bf(b,e,function(b){var e="";b.g||tf(b);b.g.cssText&&(e=wf(a,b.g.cssText,c));b.cssText=e;if(!O&&!Ne(b)&&b.cssText){var g=e=b.cssText;null==b.eb&&(b.eb=Ge.test(e));if(b.eb)if(null==b.ja){b.ja=[];for(var m in k)g=k[m],g=g(e),e!==g&&(e=g,b.ja.push(m))}else{for(m=0;m<b.ja.length;++m)g=k[b.ja[m]],e=g(e);g=e}b.cssText=
g;a.bc(b,h,f,d)}},g)}rf.prototype.Ab=function(a,b,c){a=b.Ob;b={};if(!O&&a)for(var d=0,e=a[d];d<a.length;e=a[++d])this.ac(e,c),b[e.keyframesName]=this.Pb(e);return b};rf.prototype.Pb=function(a){return function(b){return b.replace(a.tc,a.lb)}};rf.prototype.ac=function(a,b){a.tc=new RegExp("\\b"+a.keyframesName+"(?!\\B|-)","g");a.lb=a.keyframesName+"-"+b;a.j=a.j||a.selector;a.selector=a.j.replace(a.keyframesName,a.lb)};
rf.prototype.bc=function(a,b,c,d){a.j=a.j||a.selector;d="."+d;for(var e=Ve(a.j),f=0,h=e.length,g=void 0;f<h&&(g=e[f]);f++)e[f]=g.match(b)?g.replace(c,d):d+" "+g;a.selector=e.join(",")};function Bf(a,b){var c=Cf,d=Me(a);a.textContent=Ke(d,function(a){var d=a.cssText=a.parsedCssText;a.g&&a.g.cssText&&(d=d.replace(pe,"").replace(qe,""),a.cssText=wf(c,d,b))})}ea.Object.defineProperties(rf.prototype,{mb:{configurable:!0,enumerable:!0,get:function(){return"x-scope"}}});var Cf=new rf;var Df={},Ef=window.customElements;if(Ef&&!O&&!Be){var Ff=Ef.define;Ef.define=function(a,b,c){Df[a]||(Df[a]=Qe(a));Ff.call(Ef,a,b,c)}};function Gf(){this.cache={};this.Fc=100}Gf.prototype.ic=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};Gf.prototype.store=function(a,b,c,d){var e=this.cache[a]||[];e.push({v:b,styleElement:c,m:d});e.length>this.Fc&&e.shift();this.cache[a]=e};Gf.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.ic(e,b,c))return e}};function Hf(){}var If=new RegExp(W.W+"\\s*([^\\s]*)");function Jf(a){return(a=(a.classList&&a.classList.value?a.classList.value:a.getAttribute("class")||"").match(If))?a[1]:""}function Kf(a){var b=Ue(a).getRootNode();return b===a||b===a.ownerDocument?"":(a=b.host)?V(a).is:""}
function Lf(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(),h=Jf(e);if(h&&f===e.ownerDocument&&("style"!==e.localName&&"template"!==e.localName||""===We(e)))af(e,h);else if(f instanceof ShadowRoot)for(f=Kf(e),f!==h&&$e(e,h,f),e=window.ShadyDOM.nativeMethods.querySelectorAll.call(e,":not(."+W.W+")"),h=0;h<e.length;h++){f=e[h];
var g=Kf(f);g&&W.element(f,g)}}}}}
if(!(O||window.ShadyDOM&&window.ShadyDOM.handlesDynamicScoping)){var Mf=new MutationObserver(Lf),Nf=function(a){Mf.observe(a,{childList:!0,subtree:!0})};if(window.customElements&&!window.customElements.polyfillWrapFlushCallback)Nf(document);else{var Of=function(){Nf(document.body)};window.HTMLImports?window.HTMLImports.whenReady(Of):requestAnimationFrame(function(){if("loading"===document.readyState){var a=function(){Of();document.removeEventListener("readystatechange",a)};document.addEventListener("readystatechange",
a)}else Of()})}Hf=function(){Lf(Mf.takeRecords())}}var Pf=Hf;var Qf={};var Rf=Promise.resolve();function Sf(a){if(a=Qf[a])a._applyShimCurrentVersion=a._applyShimCurrentVersion||0,a._applyShimValidatingVersion=a._applyShimValidatingVersion||0,a._applyShimNextVersion=(a._applyShimNextVersion||0)+1}function Tf(a){return a._applyShimCurrentVersion===a._applyShimNextVersion}function Uf(a){a._applyShimValidatingVersion=a._applyShimNextVersion;a._validating||(a._validating=!0,Rf.then(function(){a._applyShimCurrentVersion=a._applyShimNextVersion;a._validating=!1}))};var Vf={},Wf=new Gf;function Y(){this.Xa={};this.H=document.documentElement;var a=new he;a.rules=[];this.C=of(this.H,new nf(a));this.ra=!1;this.i=this.h=null}l=Y.prototype;l.flush=function(){Pf()};l.Hb=function(a){var b=this.Xa[a]=(this.Xa[a]||0)+1;return a+"-"+b};l.nc=function(a){return Me(a)};l.Ec=function(a){return Ke(a)};
l.Gb=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(!O){var e=d.textContent;Je.has(e)||(Je.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()};l.prepareTemplate=function(a,b,c){this.prepareTemplateDom(a,b);this.prepareTemplateStyles(a,b,c)};
l.prepareTemplateStyles=function(a,b,c){if(!a._prepared&&!Be){O||Df[b]||(Df[b]=Qe(b));a._prepared=!0;a.name=b;a["extends"]=c;Qf[b]=a;var d=We(a),e=Xe(d);c={is:b,"extends":c};var f=this.Gb(a)+(Vf[b]||"");this.P();if(!e){var h;if(h=!d)h=Ee.test(f)||De.test(f),Ee.lastIndex=0,De.lastIndex=0;var g=ie(f);h&&R&&this.h&&this.h.transformRules(g,b);a._styleAst=g}h=[];R||(h=sf(a._styleAst));if(!h.length||R)b=this.Ib(c,a._styleAst,O?a.content:null,Df[b]||null,d,e?f:""),a._style=b;a.Ub=h}};
l.yc=function(a,b){Vf[b]=a.join(" ")};l.prepareTemplateDom=function(a,b){if(!Be){var c=We(a);O||"shady"===c||a._domPrepared||(a._domPrepared=!0,Ze(a.content,b))}};l.Ib=function(a,b,c,d,e,f){f=bf(a,b,null,e,f);return f.length?Oe(f,a.is,c,d):null};l.Va=function(a){var b=V(a),c=b.is;b=b.U;var d=Df[c]||null,e=Qf[c];if(e){c=e._styleAst;var f=e.Ub;e=We(e);b=new nf(c,d,f,b,e);of(a,b);return b}};
l.Bb=function(){!this.h&&window.ShadyCSS&&window.ShadyCSS.ApplyShim&&(this.h=window.ShadyCSS.ApplyShim,this.h.invalidCallback=Sf)};l.Cb=function(){var a=this;!this.i&&window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface&&(this.i=window.ShadyCSS.CustomStyleInterface,this.i.transformCallback=function(b){a.kb(b)},this.i.validateCallback=function(){requestAnimationFrame(function(){(a.i.enqueued||a.ra)&&a.flushCustomStyles()})})};l.P=function(){this.Bb();this.Cb()};
l.flushCustomStyles=function(){if(!Be&&(this.P(),this.i)){var a=this.i.processStyles();this.i.enqueued&&!Xe(this.C.cssBuild)&&(R?this.C.cssBuild||this.$b(a):(this.Ba(this.H,this.C),this.sb(a),this.ra&&this.styleDocument()),this.i.enqueued=!1)}};l.styleElement=function(a,b){if(Be){if(b){X(a)||of(a,new nf(null));var c=X(a);this.Ta(c,b);Xf(this,a,c)}}else if(c=X(a)||this.Va(a))this.ua(a)||(this.ra=!0),b&&this.Ta(c,b),R?Xf(this,a,c):(this.flush(),this.Ba(a,c),c.Fa&&c.Fa.length&&this.tb(a,c))};
l.Ta=function(a,b){a.N=a.N||{};Object.assign(a.N,b)};function Xf(a,b,c){var d=V(b).is;if(c.N){var e=c.N,f;for(f in e)null===f?b.style.removeProperty(f):b.style.setProperty(f,e[f])}if(((e=Qf[d])||a.ua(b))&&(!e||""===We(e))&&e&&e._style&&!Tf(e)){if(Tf(e)||e._applyShimValidatingVersion!==e._applyShimNextVersion)a.P(),a.h&&a.h.transformRules(e._styleAst,d),e._style.textContent=bf(b,c.A),Uf(e);O&&(a=b.shadowRoot)&&(a=a.querySelector("style"))&&(a.textContent=bf(b,c.A));c.A=e._styleAst}}
l.za=function(a){return(a=Ue(a).getRootNode().host)?X(a)||this.Va(a)?a:this.za(a):this.H};l.ua=function(a){return a===this.H};
l.tb=function(a,b){var c=V(a).is,d=Wf.fetch(c,b.w,b.Fa),e=d?d.styleElement:null,f=b.m;b.m=d&&d.m||this.Hb(c);var h=b.m;var g=Cf;g=e?e.textContent||"":Af(g,a,b.w,h);var k=X(a),m=k.J;m&&!O&&m!==e&&(m._useCount--,0>=m._useCount&&m.parentNode&&m.parentNode.removeChild(m));O?k.J?(k.J.textContent=g,e=k.J):g&&(e=Oe(g,h,a.shadowRoot,k.placeholder)):e?e.parentNode||(qf&&-1<g.indexOf("@media")&&(e.textContent=g),Pe(e,null,k.placeholder)):g&&(e=Oe(g,h,null,k.placeholder));e&&(e._useCount=e._useCount||0,k.J!=
e&&e._useCount++,k.J=e);h=e;O||(e=b.m,k=g=a.getAttribute("class")||"",f&&(k=g.replace(new RegExp("\\s*x-scope\\s*"+f+"\\s*","g")," ")),k+=(k?" ":"")+"x-scope "+e,g!==k&&Te(a,k));d||Wf.store(c,b.w,h,b.m);return h};l.Ba=function(a,b){var c=this.za(a),d=X(c),e=d.w;c===this.H||e||(this.Ba(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.qc,a,e.zc);this.Sb(c,b.N);a=Cf;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};
l.Sb=function(a,b){for(var c in b){var d=b[c];if(d||0===d)a[c]=d}};l.styleDocument=function(a){this.styleSubtree(this.H,a)};l.styleSubtree=function(a,b){var c=Ue(a),d=c.shadowRoot;(d||this.ua(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])};l.$b=function(a){for(var b=0;b<a.length;b++){var c=this.i.getStyleForCustomStyle(a[b]);c&&this.Zb(c)}};
l.sb=function(a){for(var b=0;b<a.length;b++){var c=this.i.getStyleForCustomStyle(a[b]);c&&Bf(c,this.C.w)}};l.kb=function(a){var b=this,c=We(a);c!==this.C.cssBuild&&(this.C.cssBuild=c);if(!Xe(c)){var d=Me(a);Le(d,function(a){if(O)mf(a);else{var d=W;a.selector=a.parsedSelector;mf(a);d.Za(a,d.ec)}R&&""===c&&(b.P(),b.h&&b.h.transformRule(a))});R?a.textContent=Ke(d):this.C.A.rules.push(d)}};l.Zb=function(a){if(R&&this.h){var b=Me(a);this.P();this.h.transformRules(b);a.textContent=Ke(b)}};
l.getComputedStyleValue=function(a,b){var c;R||(c=(X(a)||X(this.za(a))).w[b]);return(c=c||window.getComputedStyle(a).getPropertyValue(b))?c.trim():""};l.Dc=function(a,b){var c=Ue(a).getRootNode();b=b?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]===W.W){c=d[e+1];break}}}c&&b.push(W.W,c);R||(c=X(a))&&c.m&&b.push(Cf.mb,c.m);Te(a,b.join(" "))};l.cc=function(a){return X(a)};l.Cc=function(a,b){W.element(a,b)};
l.Gc=function(a,b){W.element(a,b,!0)};l.Bc=function(a){return Kf(a)};l.kc=function(a){return Jf(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.Dc;Y.prototype._styleInfoForNode=Y.prototype.cc;
Y.prototype.transformCustomStyleForDocument=Y.prototype.kb;Y.prototype.getStyleAst=Y.prototype.nc;Y.prototype.styleAstToString=Y.prototype.Ec;Y.prototype.flushCustomStyles=Y.prototype.flushCustomStyles;Y.prototype.scopeNode=Y.prototype.Cc;Y.prototype.unscopeNode=Y.prototype.Gc;Y.prototype.scopeForNode=Y.prototype.Bc;Y.prototype.currentScopeForNode=Y.prototype.kc;Y.prototype.prepareAdoptedCssText=Y.prototype.yc;Object.defineProperties(Y.prototype,{nativeShadow:{get:function(){return O}},nativeCss:{get:function(){return R}}});var Z=new Y,Yf,Zf;window.ShadyCSS&&(Yf=window.ShadyCSS.ApplyShim,Zf=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:R,nativeShadow:O,cssBuild:Ce,disableRuntime:Be};Yf&&(window.ShadyCSS.ApplyShim=Yf);Zf&&(window.ShadyCSS.CustomStyleInterface=Zf);var $f=document.createElement("style");$f.textContent="body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n";var ag=document.querySelector("head");ag.insertBefore($f,ag.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 bg=window.customElements,cg=window.HTMLImports,dg=!1,eg=null;bg.polyfillWrapFlushCallback&&bg.polyfillWrapFlushCallback(function(a){eg=a;dg&&a()});function fg(){window.HTMLTemplateElement.bootstrap&&window.HTMLTemplateElement.bootstrap(window.document);cg.whenReady(function(){eg&&eg();dg=!0;window.WebComponents.ready=!0;document.dispatchEvent(new CustomEvent("WebComponentsReady",{bubbles:!0}))})}
"complete"!==document.readyState?(window.addEventListener("load",fg),window.addEventListener("DOMContentLoaded",function(){window.removeEventListener("load",fg);fg()})):fg();})();
//# sourceMappingURL=webcomponents-lite.js.map