Files
webcomponentsjs/webcomponents-lite.js
2017-01-31 18:54:49 -08:00

7 lines
94 KiB
JavaScript

(function(){'use strict';function po($r,Br){if(!($r instanceof Br))throw new TypeError('Cannot call a class as a function')}function co($r){return $r=_o($r),ho(uo($r),$r)}function _o($r){return $r.replace(Wo.comments,'').replace(Wo.port,'')}function uo($r){let Br={start:0,end:$r.length},Yr=Br;for(let Gr=0,Xr=$r.length;Gr<Xr;Gr++)if($r[Gr]===qo){Yr.rules||(Yr.rules=[]);let Vr=Yr,Jr=Vr.rules[Vr.rules.length-1];Yr={start:Gr+1,parent:Vr,previous:Jr},Vr.rules.push(Yr)}else $r[Gr]===jo&&(Yr.end=Gr+1,Yr=Yr.parent||Br);return Br}function ho($r,Br){let Yr=Br.substring($r.start,$r.end-1);if($r.parsedCssText=$r.cssText=Yr.trim(),$r.parent){let Xr=$r.previous?$r.previous.end:$r.parent.start;Yr=Br.substring(Xr,$r.start-1),Yr=mo(Yr),Yr=Yr.replace(Wo.multipleSpaces,' '),Yr=Yr.substring(Yr.lastIndexOf(';')+1);let Vr=$r.parsedSelector=$r.selector=Yr.trim();$r.atRule=0===Vr.indexOf('@'),$r.atRule?0===Vr.indexOf('@media')?$r.type=Ho.MEDIA_RULE:Vr.match(Wo.keyframesRule)&&($r.type=Ho.KEYFRAMES_RULE,$r.keyframesName=$r.selector.split(Wo.multipleSpaces).pop()):0===Vr.indexOf(Ko)?$r.type=Ho.MIXIN_RULE:$r.type=Ho.STYLE_RULE}let Gr=$r.rules;if(Gr)for(let Jr,Xr=0,Vr=Gr.length;Xr<Vr&&(Jr=Gr[Xr]);Xr++)ho(Jr,Br);return $r}function mo($r){return $r.replace(/\\([0-9a-f]{1,6})\s/gi,function(){let Br=arguments[1],Yr=6-Br.length;for(;Yr--;)Br='0'+Br;return'\\'+Br})}function yo($r,Br,Yr){Yr=Yr||'';let Gr='';if($r.cssText||$r.rules){let Xr=$r.rules;if(Xr&&!fo(Xr))for(let Zr,Vr=0,Jr=Xr.length;Vr<Jr&&(Zr=Xr[Vr]);Vr++)Gr=yo(Zr,Br,Gr);else Gr=Br?$r.cssText:go($r.cssText),Gr=Gr.trim(),Gr&&(Gr=' '+Gr+'\n')}return Gr&&($r.selector&&(Yr+=$r.selector+' '+qo+'\n'),Yr+=Gr,$r.selector&&(Yr+=jo+'\n\n')),Yr}function fo($r){return 0===$r[0].selector.indexOf(Ko)}function go($r){return $r=vo($r),bo($r)}function vo($r){return $r.replace(Wo.customProp,'').replace(Wo.mixinProp,'')}function bo($r){return $r.replace(Wo.mixinApply,'').replace(Wo.varApply,'')}function Eo($r){$r&&(Go=Go&&!$r.shimcssproperties,Yo=Yo&&!$r.shimshadow)}function So($r,Br){return'string'==typeof $r&&($r=co($r)),Br&&Po($r,Br),yo($r,Go)}function Co($r){return!$r.__cssRules&&$r.textContent&&($r.__cssRules=co($r.textContent)),$r.__cssRules}function To($r){return $r.parent&&$r.parent.type===Ho.KEYFRAMES_RULE}function Po($r,Br,Yr,Gr){if($r){let Xr=!1;if(Gr&&$r.type===Ho.MEDIA_RULE){let Jr=$r.selector.match(Jo.MEDIA_MATCH);Jr&&!window.matchMedia(Jr[1]).matches&&(Xr=!0)}$r.type===Ho.STYLE_RULE?Br($r):Yr&&$r.type===Ho.KEYFRAMES_RULE?Yr($r):$r.type===Ho.MIXIN_RULE&&(Xr=!0);let Vr=$r.rules;if(Vr&&!Xr)for(let zr,Jr=0,Zr=Vr.length;Jr<Zr&&(zr=Vr[Jr]);Jr++)Po(zr,Br,Yr,Gr)}}function Ao($r,Br,Yr,Gr){let Xr=Ro($r,Br);return xo(Xr,Yr,Gr)}function xo($r,Br,Yr){Br=Br||document.head;let Gr=Yr&&Yr.nextSibling||Br.firstChild;return Vo=$r,Br.insertBefore($r,Gr)}function Ro($r,Br){let Yr=document.createElement('style');return Br&&Yr.setAttribute('scope',Br),Yr.textContent=$r,Yr}function Mo($r){let Br=document.createComment(' Shady DOM styles for '+$r+' '),Yr=Vo?Vo.nextSibling:null,Gr=document.head;return Gr.insertBefore(Br,Yr||Gr.firstChild),Vo=Br,Br}function Io($r,Br){let Yr=0;for(let Gr=Br,Xr=$r.length;Gr<Xr;Gr++)if('('===$r[Gr])Yr++;else if(')'===$r[Gr]&&0==--Yr)return Gr;return-1}function Oo($r,Br){let Yr=$r.indexOf('var(');if(-1===Yr)return Br($r,'','','');let Gr=Io($r,Yr+3),Xr=$r.substring(Yr+4,Gr),Vr=$r.substring(0,Yr),Jr=Oo($r.substring(Gr+1),Br),Zr=Xr.indexOf(',');if(-1===Zr)return Br(Vr,Xr.trim(),'',Jr);let zr=Xr.substring(0,Zr).trim(),Qr=Xr.substring(Zr+1).trim();return Br(Vr,zr,Qr,Jr)}function wo($r,Br){window.ShadyDOM?window.ShadyDOM.nativeMethods.setAttribute.call($r,'class',Br):$r.setAttribute('class',Br)}function Do($r,Br){let Yr=parseInt($r/32);Br[Yr]=(Br[Yr]||0)|1<<$r%32}function Lo(){qr||(qr=!0,window.HTMLImports?window.HTMLImports.whenReady(ko):'complete'===document.readyState?ko():document.addEventListener('readystatechange',()=>{'complete'===document.readyState&&ko()}))}function ko(){requestAnimationFrame(()=>{(qr||Hr._elementsHaveApplied)&&Hr.updateStyles(),qr=!1})}(function(){'use strict';var Br=function(){var zr=document.createEvent('Event');return zr.initEvent('foo',!0,!0),zr.preventDefault(),zr.defaultPrevented}();if(!Br){var Yr=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(Yr.call(this),Object.defineProperty(this,'defaultPrevented',{get:function(){return!0},configurable:!0}))}}var Gr=/Trident/.test(navigator.userAgent);if((!window.CustomEvent||Gr&&'function'!=typeof window.CustomEvent)&&(window.CustomEvent=function(zr,Qr){Qr=Qr||{};var es=document.createEvent('CustomEvent');return es.initCustomEvent(zr,!!Qr.bubbles,!!Qr.cancelable,Qr.detail),es},window.CustomEvent.prototype=window.Event.prototype),!window.Event||Gr&&'function'!=typeof window.Event){var Xr=window.Event;if(window.Event=function(zr,Qr){Qr=Qr||{};var es=document.createEvent('Event');return es.initEvent(zr,!!Qr.bubbles,!!Qr.cancelable),es},Xr)for(var Vr in Xr)window.Event[Vr]=Xr[Vr];window.Event.prototype=Xr.prototype}if(!window.MouseEvent||Gr&&'function'!=typeof window.MouseEvent){var Jr=window.MouseEvent;if(window.MouseEvent=function(zr,Qr){Qr=Qr||{};var es=document.createEvent('MouseEvent');return es.initMouseEvent(zr,!!Qr.bubbles,!!Qr.cancelable,Qr.view||window,Qr.detail,Qr.screenX,Qr.screenY,Qr.clientX,Qr.clientY,Qr.ctrlKey,Qr.altKey,Qr.shiftKey,Qr.metaKey,Qr.button,Qr.relatedTarget),es},Jr)for(var Vr in Jr)window.MouseEvent[Vr]=Jr[Vr];window.MouseEvent.prototype=Jr.prototype}if(Array.from||(Array.from=function(zr){return[].slice.call(zr)}),!Object.assign){var Zr=function(zr,Qr){for(var os,es=Object.getOwnPropertyNames(Qr),ts=0;ts<es.length;ts++)os=es[ts],zr[os]=Qr[os]};Object.assign=function(zr){for(var os,es=[].slice.call(arguments,1),ts=0;ts<es.length;ts++)os=es[ts],os&&Zr(zr,os);return zr}}})(window.WebComponents),function($r){'use strict';function Br(ds){return ts[ds]!==void 0}function Yr(){Zr.call(this),this._isInvalid=!0}function Gr(ds){return''==ds&&Yr.call(this),ds.toLowerCase()}function Xr(ds){var ps=ds.charCodeAt(0);return 32<ps&&127>ps&&-1==[34,35,60,62,63,96].indexOf(ps)?ds:encodeURIComponent(ds)}function Vr(ds){var ps=ds.charCodeAt(0);return 32<ps&&127>ps&&-1==[34,35,60,62,96].indexOf(ps)?ds:encodeURIComponent(ds)}function Jr(ds,ps,cs){function _s(As){gs.push(As)}var us=ps||'scheme start',hs=0,ms='',ys=!1,fs=!1,gs=[];loop:for(;(ds[hs-1]!=rs||0==hs)&&!this._isInvalid;){var vs=ds[hs];switch(us){case'scheme start':if(vs&&ns.test(vs))ms+=vs.toLowerCase(),us='scheme';else if(!ps){ms='',us='no scheme';continue}else{_s('Invalid scheme.');break loop}break;case'scheme':if(vs&&as.test(vs))ms+=vs.toLowerCase();else if(':'==vs){if(this._scheme=ms,ms='',ps)break loop;Br(this._scheme)&&(this._isRelative=!0),us='file'==this._scheme?'relative':this._isRelative&&cs&&cs._scheme==this._scheme?'relative or authority':this._isRelative?'authority first slash':'scheme data'}else if(!ps){ms='',hs=0,us='no scheme';continue}else if(rs==vs)break loop;else{_s('Code point not allowed in scheme: '+vs);break loop}break;case'scheme data':'?'==vs?(this._query='?',us='query'):'#'==vs?(this._fragment='#',us='fragment'):rs!=vs&&'\t'!=vs&&'\n'!=vs&&'\r'!=vs&&(this._schemeData+=Xr(vs));break;case'no scheme':if(!cs||!Br(cs._scheme))_s('Missing scheme.'),Yr.call(this);else{us='relative';continue}break;case'relative or authority':if('/'==vs&&'/'==ds[hs+1])us='authority ignore slashes';else{_s('Expected /, got: '+vs),us='relative';continue}break;case'relative':if(this._isRelative=!0,'file'!=this._scheme&&(this._scheme=cs._scheme),rs==vs){this._host=cs._host,this._port=cs._port,this._path=cs._path.slice(),this._query=cs._query,this._username=cs._username,this._password=cs._password;break loop}else if('/'==vs||'\\'==vs)'\\'==vs&&_s('\\ is an invalid code point.'),us='relative slash';else if('?'==vs)this._host=cs._host,this._port=cs._port,this._path=cs._path.slice(),this._query='?',this._username=cs._username,this._password=cs._password,us='query';else if('#'==vs)this._host=cs._host,this._port=cs._port,this._path=cs._path.slice(),this._query=cs._query,this._fragment='#',this._username=cs._username,this._password=cs._password,us='fragment';else{var bs=ds[hs+1],Ns=ds[hs+2];'file'==this._scheme&&ns.test(vs)&&(':'==bs||'|'==bs)&&(rs==Ns||'/'==Ns||'\\'==Ns||'?'==Ns||'#'==Ns)||(this._host=cs._host,this._port=cs._port,this._username=cs._username,this._password=cs._password,this._path=cs._path.slice(),this._path.pop()),us='relative path';continue}break;case'relative slash':if('/'==vs||'\\'==vs)'\\'==vs&&_s('\\ is an invalid code point.'),us='file'==this._scheme?'file host':'authority ignore slashes';else{'file'!=this._scheme&&(this._host=cs._host,this._port=cs._port,this._username=cs._username,this._password=cs._password),us='relative path';continue}break;case'authority first slash':if('/'==vs)us='authority second slash';else{_s('Expected \'/\', got: '+vs),us='authority ignore slashes';continue}break;case'authority second slash':if(us='authority ignore slashes','/'!=vs){_s('Expected \'/\', got: '+vs);continue}break;case'authority ignore slashes':if('/'!=vs&&'\\'!=vs){us='authority';continue}else _s('Expected authority, got: '+vs);break;case'authority':if('@'==vs){ys&&(_s('@ already seen.'),ms+='%40'),ys=!0;for(var Ss,Es=0;Es<ms.length;Es++){if(Ss=ms[Es],'\t'==Ss||'\n'==Ss||'\r'==Ss){_s('Invalid whitespace in authority.');continue}if(':'==Ss&&null===this._password){this._password='';continue}var Cs=Xr(Ss);null===this._password?this._username+=Cs:this._password+=Cs}ms=''}else if(rs==vs||'/'==vs||'\\'==vs||'?'==vs||'#'==vs){hs-=ms.length,ms='',us='host';continue}else ms+=vs;break;case'file host':if(rs==vs||'/'==vs||'\\'==vs||'?'==vs||'#'==vs){2==ms.length&&ns.test(ms[0])&&(':'==ms[1]||'|'==ms[1])?us='relative path':0==ms.length?us='relative path start':(this._host=Gr.call(this,ms),ms='',us='relative path start');continue}else'\t'==vs||'\n'==vs||'\r'==vs?_s('Invalid whitespace in file host.'):ms+=vs;break;case'host':case'hostname':if(':'==vs&&!fs){if(this._host=Gr.call(this,ms),ms='',us='port','hostname'==ps)break loop;}else if(rs==vs||'/'==vs||'\\'==vs||'?'==vs||'#'==vs){if(this._host=Gr.call(this,ms),ms='',us='relative path start',ps)break loop;continue}else'\t'!=vs&&'\n'!=vs&&'\r'!=vs?('['==vs?fs=!0:']'==vs&&(fs=!1),ms+=vs):_s('Invalid code point in host/hostname: '+vs);break;case'port':if(/[0-9]/.test(vs))ms+=vs;else if(rs==vs||'/'==vs||'\\'==vs||'?'==vs||'#'==vs||ps){if(''!=ms){var Ts=parseInt(ms,10);Ts!=ts[this._scheme]&&(this._port=Ts+''),ms=''}if(ps)break loop;us='relative path start';continue}else'\t'==vs||'\n'==vs||'\r'==vs?_s('Invalid code point in port: '+vs):Yr.call(this);break;case'relative path start':if('\\'==vs&&_s('\'\\\' not allowed in path.'),us='relative path','/'!=vs&&'\\'!=vs)continue;break;case'relative path':if(rs==vs||'/'==vs||'\\'==vs||!ps&&('?'==vs||'#'==vs)){'\\'==vs&&_s('\\ not allowed in relative path.');var Ps;(Ps=os[ms.toLowerCase()])&&(ms=Ps),'..'==ms?(this._path.pop(),'/'!=vs&&'\\'!=vs&&this._path.push('')):'.'==ms&&'/'!=vs&&'\\'!=vs?this._path.push(''):'.'!=ms&&('file'==this._scheme&&0==this._path.length&&2==ms.length&&ns.test(ms[0])&&'|'==ms[1]&&(ms=ms[0]+':'),this._path.push(ms)),ms='','?'==vs?(this._query='?',us='query'):'#'==vs&&(this._fragment='#',us='fragment')}else'\t'!=vs&&'\n'!=vs&&'\r'!=vs&&(ms+=Xr(vs));break;case'query':ps||'#'!=vs?rs!=vs&&'\t'!=vs&&'\n'!=vs&&'\r'!=vs&&(this._query+=Vr(vs)):(this._fragment='#',us='fragment');break;case'fragment':rs!=vs&&'\t'!=vs&&'\n'!=vs&&'\r'!=vs&&(this._fragment+=vs);}hs++}}function Zr(){this._scheme='',this._schemeData='',this._username='',this._password=null,this._host='',this._port='',this._path=[],this._query='',this._fragment='',this._isInvalid=!1,this._isRelative=!1}function zr(ds,ps){ps===void 0||ps instanceof zr||(ps=new zr(ps+'')),this._url=ds,Zr.call(this);var cs=ds.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,'');Jr.call(this,cs,null,ps)}var Qr=!1;if(!$r.forceJURL)try{var es=new URL('b','http://a');es.pathname='c%20d',Qr='http://a/c%20d'===es.href}catch(ds){}if(!Qr){var ts=Object.create(null);ts.ftp=21,ts.file=0,ts.gopher=70,ts.http=80,ts.https=443,ts.ws=80,ts.wss=443;var os=Object.create(null);os['%2e']='.',os['.%2e']='..',os['%2e.']='..',os['%2e%2e']='..';var rs,ns=/[a-zA-Z]/,as=/[a-zA-Z0-9\+\-\.]/;zr.prototype={toString:function(){return this.href},get href(){if(this._isInvalid)return this._url;var ds='';return(''!=this._username||null!=this._password)&&(ds=this._username+(null==this._password?'':':'+this._password)+'@'),this.protocol+(this._isRelative?'//'+ds+this.host:'')+this.pathname+this._query+this._fragment},set href(ds){Zr.call(this),Jr.call(this,ds)},get protocol(){return this._scheme+':'},set protocol(ds){this._isInvalid||Jr.call(this,ds+':','scheme start')},get host(){return this._isInvalid?'':this._port?this._host+':'+this._port:this._host},set host(ds){this._isInvalid||!this._isRelative||Jr.call(this,ds,'host')},get hostname(){return this._host},set hostname(ds){this._isInvalid||!this._isRelative||Jr.call(this,ds,'hostname')},get port(){return this._port},set port(ds){this._isInvalid||!this._isRelative||Jr.call(this,ds,'port')},get pathname(){return this._isInvalid?'':this._isRelative?'/'+this._path.join('/'):this._schemeData},set pathname(ds){this._isInvalid||!this._isRelative||(this._path=[],Jr.call(this,ds,'relative path start'))},get search(){return this._isInvalid||!this._query||'?'==this._query?'':this._query},set search(ds){this._isInvalid||!this._isRelative||(this._query='?','?'==ds[0]&&(ds=ds.slice(1)),Jr.call(this,ds,'query'))},get hash(){return this._isInvalid||!this._fragment||'#'==this._fragment?'':this._fragment},set hash(ds){this._isInvalid||(this._fragment='#','#'==ds[0]&&(ds=ds.slice(1)),Jr.call(this,ds,'fragment'))},get origin(){var ds;if(this._isInvalid||!this._scheme)return'';switch(this._scheme){case'data':case'file':case'javascript':case'mailto':return'null';}return ds=this.host,ds?this._scheme+'://'+ds:''}};var ls=$r.URL;ls&&(zr.createObjectURL=function(){return ls.createObjectURL.apply(ls,arguments)},zr.revokeObjectURL=function(ds){ls.revokeObjectURL(ds)}),$r.URL=zr}}(window),function(){var $r='undefined'==typeof HTMLTemplateElement;/Trident/.test(navigator.userAgent)&&function(){var os=document.importNode;document.importNode=function(){var rs=os.apply(document,arguments);if(rs.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var ns=document.createDocumentFragment();return ns.appendChild(rs),ns}return rs}}();var Br=function(){if(!$r){var os=document.createElement('template'),rs=document.createElement('template');rs.content.appendChild(document.createElement('div')),os.content.appendChild(rs);var ns=os.cloneNode(!0);return 0===ns.content.childNodes.length||0===ns.content.firstChild.content.childNodes.length}}(),Yr='template',Gr=function(){};if($r){function os(ns){return'&'===ns?'&amp;':'<'===ns?'&lt;':'>'===ns?'&gt;':'\xA0'===ns?'&nbsp;':void 0}function rs(ns){return ns.replace(Qr,os)}var Xr=document.implementation.createHTMLDocument('template'),Vr=!0,Jr=document.createElement('style');Jr.textContent=Yr+'{display:none;}';var Zr=document.head;Zr.insertBefore(Jr,Zr.firstElementChild),Gr.prototype=Object.create(HTMLElement.prototype),Gr.decorate=function(ns){if(!ns.content){ns.content=Xr.createDocumentFragment();for(var as;as=ns.firstChild;)ns.content.appendChild(as);if(ns.cloneNode=function(ls){return Gr.cloneNode(this,ls)},Vr)try{Object.defineProperty(ns,'innerHTML',{get:function(){for(var ls='',ds=this.content.firstChild;ds;ds=ds.nextSibling)ls+=ds.outerHTML||rs(ds.data);return ls},set:function(ls){for(Xr.body.innerHTML=ls,Gr.bootstrap(Xr);this.content.firstChild;)this.content.removeChild(this.content.firstChild);for(;Xr.body.firstChild;)this.content.appendChild(Xr.body.firstChild)},configurable:!0})}catch(ls){Vr=!1}Gr.bootstrap(ns.content)}},Gr.bootstrap=function(ns){for(var ps,as=ns.querySelectorAll(Yr),ls=0,ds=as.length;ls<ds&&(ps=as[ls]);ls++)Gr.decorate(ps)},document.addEventListener('DOMContentLoaded',function(){Gr.bootstrap(document)});var zr=document.createElement;document.createElement=function(){'use strict';var ns=zr.apply(document,arguments);return'template'===ns.localName&&Gr.decorate(ns),ns};var Qr=/[&\u00A0<>]/g}if($r||Br){var es=Node.prototype.cloneNode;Gr.cloneNode=function(os,rs){var ns=es.call(os,!1);return this.decorate&&this.decorate(ns),rs&&(ns.content.appendChild(es.call(os.content,!0)),this.fixClonedDom(ns.content,os.content)),ns},Gr.fixClonedDom=function(os,rs){if(rs.querySelectorAll)for(var ps,cs,ns=rs.querySelectorAll(Yr),as=os.querySelectorAll(Yr),ls=0,ds=as.length;ls<ds;ls++)cs=ns[ls],ps=as[ls],this.decorate&&this.decorate(cs),ps.parentNode.replaceChild(cs.cloneNode(!0),ps)};var ts=document.importNode;Node.prototype.cloneNode=function(os){var rs=es.call(this,os);return os&&Gr.fixClonedDom(rs,this),rs},document.importNode=function(os,rs){if(os.localName===Yr)return Gr.cloneNode(os,rs);var ns=ts.call(document,os,rs);return rs&&Gr.fixClonedDom(ns,os),ns},Br&&(HTMLTemplateElement.prototype.cloneNode=function(os){return Gr.cloneNode(this,os)})}$r&&(window.HTMLTemplateElement=Gr)}(),!function($r,Br){'object'==typeof exports&&'undefined'!=typeof module?module.exports=Br():'function'==typeof define&&define.amd?define(Br):$r.ES6Promise=Br()}(window,function(){'use strict';function $r(en){return'function'==typeof en||'object'==typeof en&&null!==en}function Br(en){return'function'==typeof en}function Vr(){return'undefined'==typeof Us?zr():function(){Us(Qr)}}function zr(){var en=setTimeout;return function(){return en(Qr,1)}}function Qr(){for(var en=0;en<ks;en+=2){var tn=Bs[en],on=Bs[en+1];tn(on),Bs[en]=void 0,Bs[en+1]=void 0}ks=0}function ts(en,tn){var on=arguments,rn=this,sn=new this.constructor(rs);void 0===sn[Gs]&&Cs(sn);var nn=rn._state;return nn?!function(){var an=on[nn-1];Hs(function(){return Ns(nn,sn,an,rn._result)})}():fs(rn,sn,en,tn),sn}function os(en){var tn=this;if(en&&'object'==typeof en&&en.constructor===tn)return en;var on=new tn(rs);return us(on,en),on}function rs(){}function ns(){return new TypeError('You cannot resolve a promise with itself')}function as(){return new TypeError('A promises callback cannot return that same promise.')}function ls(en){try{return en.then}catch(tn){return Zs.error=tn,Zs}}function ds(en,tn,on,rn){try{en.call(tn,on,rn)}catch(sn){return sn}}function ps(en,tn,on){Hs(function(rn){var sn=!1,nn=ds(on,tn,function(an){sn||(sn=!0,tn===an?ms(rn,an):us(rn,an))},function(an){sn||(sn=!0,ys(rn,an))},'Settle: '+(rn._label||' unknown promise'));!sn&&nn&&(sn=!0,ys(rn,nn))},en)}function cs(en,tn){tn._state===Vs?ms(en,tn._result):tn._state===Js?ys(en,tn._result):fs(tn,void 0,function(on){return us(en,on)},function(on){return ys(en,on)})}function _s(en,tn,on){tn.constructor===en.constructor&&on===ts&&tn.constructor.resolve===os?cs(en,tn):on===Zs?ys(en,Zs.error):void 0===on?ms(en,tn):Br(on)?ps(en,tn,on):ms(en,tn)}function us(en,tn){en===tn?ys(en,ns()):$r(tn)?_s(en,tn,ls(tn)):ms(en,tn)}function hs(en){en._onerror&&en._onerror(en._result),gs(en)}function ms(en,tn){en._state===Xs&&(en._result=tn,en._state=Vs,0!==en._subscribers.length&&Hs(gs,en))}function ys(en,tn){en._state===Xs&&(en._state=Js,en._result=tn,Hs(hs,en))}function fs(en,tn,on,rn){var sn=en._subscribers,nn=sn.length;en._onerror=null,sn[nn]=tn,sn[nn+Vs]=on,sn[nn+Js]=rn,0===nn&&en._state&&Hs(gs,en)}function gs(en){var tn=en._subscribers,on=en._state;if(0!==tn.length){for(var rn=void 0,sn=void 0,nn=en._result,an=0;an<tn.length;an+=3)rn=tn[an],sn=tn[an+on],rn?Ns(on,rn,sn,nn):sn(nn);en._subscribers.length=0}}function vs(){this.error=null}function bs(en,tn){try{return en(tn)}catch(on){return zs.error=on,zs}}function Ns(en,tn,on,rn){var sn=Br(on),nn,an,ln,dn;if(!sn)nn=rn,ln=!0;else if(nn=bs(on,rn),nn===zs?(dn=!0,an=nn.error,nn=null):ln=!0,tn===nn)return void ys(tn,as());tn._state!==Xs||(sn&&ln?us(tn,nn):dn?ys(tn,an):en===Vs?ms(tn,nn):en===Js&&ys(tn,nn))}function Es(en,tn){try{tn(function(on){us(en,on)},function(on){ys(en,on)})}catch(on){ys(en,on)}}function Ss(){return Qs++}function Cs(en){en[Gs]=Qs++,en._state=void 0,en._result=void 0,en._subscribers=[]}function Ts(en,tn){this._instanceConstructor=en,this.promise=new en(rs),this.promise[Gs]||Cs(this.promise),Ls(tn)?(this._input=tn,this.length=tn.length,this._remaining=tn.length,this._result=Array(this.length),0===this.length?ms(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&ms(this.promise,this._result))):ys(this.promise,Ps())}function Ps(){return new Error('Array Methods must be provided an Array')}function Ms(){throw new TypeError('You must pass a resolver function as the first argument to the promise constructor')}function Is(){throw new TypeError('Failed to construct \'Promise\': Please use the \'new\' operator, this object constructor cannot be called as a function.')}function Os(en){this[Gs]=Ss(),this._result=this._state=void 0,this._subscribers=[],rs!==en&&('function'!=typeof en&&Ms(),this instanceof Os?Es(this,en):Is())}var Ds=Array.isArray?Array.isArray:function(en){return'[object Array]'===Object.prototype.toString.call(en)};var Ls=Ds,ks=0,Us=void 0,Fs=void 0,Hs=function(en,tn){Bs[ks]=en,Bs[ks+1]=tn,ks+=2,2==ks&&(Fs?Fs(Qr):Ys())},qs='undefined'==typeof window?void 0:window,js=qs||{},Ws=js.MutationObserver||js.WebKitMutationObserver,Ks='undefined'==typeof self&&'undefined'!=typeof process&&'[object process]'==={}.toString.call(process),$s='undefined'!=typeof Uint8ClampedArray&&'undefined'!=typeof importScripts&&'undefined'!=typeof MessageChannel,Bs=Array(1e3),Ys;Ys=Ks?function(){return function(){return process.nextTick(Qr)}}():Ws?function(){var en=0,tn=new Ws(Qr),on=document.createTextNode('');return tn.observe(on,{characterData:!0}),function(){on.data=en=++en%2}}():$s?function(){var en=new MessageChannel;return en.port1.onmessage=Qr,function(){return en.port2.postMessage(0)}}():void 0===qs&&'function'==typeof require?function(){try{var en=require,tn=en('vertx');return Us=tn.runOnLoop||tn.runOnContext,Vr()}catch(on){return zr()}}():zr();var Gs=Math.random().toString(36).substring(16),Xs,Vs=1,Js=2,Zs=new vs,zs=new vs,Qs=0;return Ts.prototype._enumerate=function(){for(var en=this.length,tn=this._input,on=0;this._state===Xs&&on<en;on++)this._eachEntry(tn[on],on)},Ts.prototype._eachEntry=function(en,tn){var on=this._instanceConstructor,rn=on.resolve;if(rn===os){var sn=ls(en);if(sn===ts&&en._state!==Xs)this._settledAt(en._state,tn,en._result);else if('function'!=typeof sn)this._remaining--,this._result[tn]=en;else if(on===Os){var nn=new on(rs);_s(nn,en,sn),this._willSettleAt(nn,tn)}else this._willSettleAt(new on(function(an){return an(en)}),tn)}else this._willSettleAt(rn(en),tn)},Ts.prototype._settledAt=function(en,tn,on){var rn=this.promise;rn._state===Xs&&(this._remaining--,en===Js?ys(rn,on):this._result[tn]=on),0===this._remaining&&ms(rn,this._result)},Ts.prototype._willSettleAt=function(en,tn){var on=this;fs(en,void 0,function(rn){return on._settledAt(Vs,tn,rn)},function(rn){return on._settledAt(Js,tn,rn)})},Os.all=function(en){return new Ts(this,en).promise},Os.race=function(en){var tn=this;return new tn(Ls(en)?function(on,rn){for(var sn=en.length,nn=0;nn<sn;nn++)tn.resolve(en[nn]).then(on,rn)}:function(on,rn){return rn(new TypeError('You must pass an array to race.'))})},Os.resolve=os,Os.reject=function(en){var tn=this,on=new tn(rs);return ys(on,en),on},Os._setScheduler=function(en){Fs=en},Os._setAsap=function(en){Hs=en},Os._asap=Hs,Os.prototype={constructor:Os,then:ts,'catch':function(en){return this.then(null,en)}},Os.polyfill=function(){var en;if('undefined'!=typeof global)en=global;else if('undefined'!=typeof self)en=self;else try{en=Function('return this')()}catch(rn){throw new Error('polyfill failed because global object is unavailable in this environment')}var tn=en.Promise;if(tn){var on=null;try{on=Object.prototype.toString.call(tn.resolve())}catch(rn){}if('[object Promise]'===on&&!tn.cast)return}en.Promise=Os},Os.Promise=Os,Os}),ES6Promise.polyfill(),($r=>{const Br=!!('import'in document.createElement('link'));let Yr=null;!1=='currentScript'in document&&Object.defineProperty(document,'currentScript',{get(){return Yr||('complete'===document.readyState?null:document.scripts[document.scripts.length-1])},configurable:!0});const Gr=/(^\/)|(^#)|(^[\w-\d]*:)/,Xr=/(url\()([^)]*)(\))/g,Vr=/(@import[\s]+(?!url\())([^;]*)(;)/g,Jr=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,Zr={fixUrls(gs,vs){gs.href&&gs.setAttribute('href',Zr.replaceAttrUrl(gs.getAttribute('href'),vs)),gs.src&&gs.setAttribute('src',Zr.replaceAttrUrl(gs.getAttribute('src'),vs)),'style'===gs.localName&&Zr.resolveUrlsInStyle(gs,vs)},fixUrlAttributes(gs,vs){const bs=['action','src','href','url','style'];for(let Es,Ns=0;Ns<bs.length&&(Es=bs[Ns]);Ns++){const Ss=gs.attributes[Es],Cs=Ss&&Ss.value;Cs&&0>Cs.search(/({{|\[\[)/)&&(Ss.value='style'===Es?Zr.resolveUrlsInCssText(Cs,vs):Zr.replaceAttrUrl(Cs,vs))}},fixUrlsInTemplates(gs,vs){const bs=gs.querySelectorAll('template');for(let Ns=0;Ns<bs.length;Ns++)Zr.fixUrlsInTemplate(bs[Ns],vs)},fixUrlsInTemplate(gs,vs){const bs=gs.content;if(bs){const Ns=bs.querySelectorAll('style, form[action], [src], [href], [url], [style]');for(let Es=0;Es<Ns.length;Es++){const Ss=Ns[Es];'style'==Ss.localName?Zr.resolveUrlsInStyle(Ss,vs):Zr.fixUrlAttributes(Ss,vs)}Zr.fixUrlsInTemplates(bs,vs)}},resolveUrlsInStyle(gs,vs){gs.textContent=Zr.resolveUrlsInCssText(gs.textContent,vs)},resolveUrlsInCssText(gs,vs){let bs=Zr.replaceUrls(gs,vs,Xr);return bs=Zr.replaceUrls(bs,vs,Vr),bs},replaceUrls(gs,vs,bs){return gs.replace(bs,(Ns,Es,Ss,Cs)=>{let Ts=Ss.replace(/["']/g,'');return vs&&(Ts=Zr.resolveUrl(Ts,vs)),Es+'\''+Ts+'\''+Cs})},replaceAttrUrl(gs,vs){return gs&&Gr.test(gs)?gs:Zr.resolveUrl(gs,vs)},resolveUrl(gs,vs){if(void 0===Zr.__workingURL){Zr.__workingURL=!1;try{const Ns=new URL('b','http://a');Ns.pathname='c%20d',Zr.__workingURL='http://a/c%20d'===Ns.href}catch(Ns){}}if(Zr.__workingURL)return new URL(gs,vs).href;let bs=Zr.__tempDoc;return bs||(bs=document.implementation.createHTMLDocument('temp'),Zr.__tempDoc=bs,bs.__base=bs.createElement('base'),bs.head.appendChild(bs.__base),bs.__anchor=bs.createElement('a')),bs.__base.href=vs,bs.__anchor.href=gs,bs.__anchor.href||gs}},zr={async:!0,load(gs){return new Promise((vs,bs)=>{if(!gs)bs({resource:'error: href must be specified'});else if(gs.match(/^data:/)){const Ns=gs.split(','),Es=Ns[0];let Ss=Ns[1];Ss=-1<Es.indexOf(';base64')?atob(Ss):decodeURIComponent(Ss),vs({resource:Ss})}else{const Ns=new XMLHttpRequest;Ns.open('GET',gs,zr.async),Ns.addEventListener('readystatechange',()=>{if(4===Ns.readyState){let Es;try{const Cs=Ns.getResponseHeader('Location');Cs&&(Es='/'===Cs.substr(0,1)?location.origin+Cs:Cs)}catch(Cs){console.error(Cs.message)}const Ss={resource:Ns.response||Ns.responseText,redirectedUrl:Es};304===Ns.status||0===Ns.status||200<=Ns.status&&300>Ns.status?vs(Ss):bs(Ss)}}),Ns.send()}})}},Qr=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent),es='link[rel=import]',ts='import-disable',os=`link[rel=stylesheet][href][type=${ts}]`,rs=`${es}, ${os},
style:not([type]), link[rel=stylesheet][href]:not([type]),
script:not([type]), script[type="application/javascript"],
script[type="text/javascript"]`,ns='import-dependency',as=`${es}:not(${ns})`,ls=`script[${ns}]`,ds=`style[${ns}],
link[rel=stylesheet][${ns}]`,ps=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector;const _s=gs=>{return gs.nodeType===Node.ELEMENT_NODE&&ps.call(gs,es)},us=gs=>{return gs.__loadPromise||(gs.__loadPromise=new Promise(vs=>{'script'!==gs.localName||gs.src?Qr&&'style'===gs.localName?gs.addEventListener('load',vs):(gs.addEventListener('load',vs),gs.addEventListener('error',vs)):vs()}).then(()=>{return gs.__loaded=!0,gs})),gs.__loadPromise},hs=gs=>{ms(()=>ys(()=>gs&&gs()))},ms=gs=>{if('loading'!==document.readyState)gs();else{const vs=()=>{'loading'!==document.readyState&&(document.removeEventListener('readystatechange',vs),gs())};document.addEventListener('readystatechange',vs)}},ys=gs=>{let vs=document.querySelectorAll(as);const bs=[];for(let Ss,Ns=0,Es=vs.length;Ns<Es&&(Ss=vs[Ns]);Ns++)Ss.__loaded||bs.push(us(Ss));bs.length?Promise.all(bs).then(gs):gs()},fs=gs=>{if(Br)return gs.ownerDocument;let vs=gs.__ownerImport;if(!vs){for(vs=gs;(vs=vs.parentNode||vs.host)&&!_s(vs););gs.__ownerImport=vs}return vs};if(hs(()=>document.dispatchEvent(new CustomEvent('HTMLImportsLoaded',{cancelable:!0,bubbles:!0,detail:void 0}))),Br){const gs=vs=>{const bs=vs.target;_s(bs)&&(bs.__loaded=!0)};document.addEventListener('load',gs,!0),document.addEventListener('error',gs,!0)}else new class{constructor(){this.documents={},this.inflight=0,ms(()=>{new MutationObserver(gs=>this.handleMutations(gs)).observe(document.head,{childList:!0,subtree:!0}),this.load()})}load(gs){const vs=gs?this.whenImportLoaded(gs):this.whenImportsLoaded(document);vs&&(this.inflight++,vs.then(()=>{0==--this.inflight&&this.onLoadedAll()}))}whenImportsLoaded(gs){const vs=gs.querySelectorAll(es),bs=[];for(let Ns=0,Es=vs.length;Ns<Es;Ns++){const Ss=this.whenImportLoaded(vs[Ns]);Ss&&bs.push(Ss)}return bs.length?Promise.all(bs).then(()=>gs):null}whenImportLoaded(gs){const vs=gs.href;return void 0===this.documents[vs]?(this.documents[vs]='pending',zr.load(vs).then(bs=>{const Ns=this.makeDocument(bs.resource,bs.redirectedUrl||vs);return this.documents[vs]=Ns,this.whenImportsLoaded(Ns)}).catch(()=>this.documents[vs]=null).then(()=>gs)):null}makeDocument(gs,vs){if(!gs)return document.createDocumentFragment();Qr&&(gs=gs.replace(Jr,(Ps,As,xs)=>{return-1===Ps.indexOf('type=')?`${As} type=${ts} ${xs}`:Ps}));let bs;const Ns=document.createElement('template');if(Ns.innerHTML=gs,Ns.content)bs=Ns.content;else for(bs=document.createDocumentFragment();Ns.firstElementChild;)bs.appendChild(Ns.firstElementChild);const Es=bs.querySelector('base');Es&&(vs=Zr.replaceAttrUrl(Es.getAttribute('href'),vs),Es.removeAttribute('href'));const Ss=bs.querySelectorAll('dom-module');for(let As,Ps=0;Ps<Ss.length&&(As=Ss[Ps]);Ps++)As.setAttribute('assetpath',Zr.replaceAttrUrl(As.getAttribute('assetpath')||'',vs));const Cs=bs.querySelectorAll(rs);let Ts=0;for(let xs,Ps=0,As=Cs.length;Ps<As&&(xs=Cs[Ps]);Ps++)if(us(xs),Zr.fixUrls(xs,vs),xs.setAttribute(ns,''),'script'===xs.localName&&!xs.src&&xs.textContent){const Rs=Ts?`-${Ts}`:'',Ms=xs.textContent+`\n//# sourceURL=${vs}${Rs}.js\n`;xs.setAttribute('src','data:text/javascript;charset=utf-8,'+encodeURIComponent(Ms)),xs.textContent='',Ts++}return Zr.fixUrlsInTemplates(bs,vs),bs}onLoadedAll(){this.flatten(document),Promise.all([this.waitForStyles(),this.runScripts()]).then(()=>this.fireEvents())}flatten(gs){const vs=gs.querySelectorAll(es);for(let Es,bs=0,Ns=vs.length;bs<Ns&&(Es=vs[bs]);bs++){const Ss=this.documents[Es.href];Es.import=Ss,Ss&&Ss.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(this.documents[Es.href]=Es,Es.readyState='loading',Es.import=Es,this.flatten(Ss),Es.appendChild(Ss))}}runScripts(){const gs=document.querySelectorAll(ls);let vs=Promise.resolve();for(let Es,bs=0,Ns=gs.length;bs<Ns&&(Es=gs[bs]);bs++)vs=vs.then(()=>{const Ss=document.createElement('script');Es.removeAttribute(ns);for(let Cs=0,Ts=Es.attributes.length;Cs<Ts;Cs++)Ss.setAttribute(Es.attributes[Cs].name,Es.attributes[Cs].value);return Yr=Ss,Es.parentNode.replaceChild(Ss,Es),us(Ss).then(()=>Yr=null)});return vs}waitForStyles(){const gs=!!document.querySelector(os),vs=document.querySelectorAll(ds),bs=[];for(let Ss,Ns=0,Es=vs.length;Ns<Es&&(Ss=vs[Ns]);Ns++)if(bs.push(us(Ss).then(()=>Ss.removeAttribute(ns))),gs&&Ss.parentNode!==document.head){let Cs=fs(Ss);for(;Cs&&fs(Cs);)Cs=fs(Cs);const Ts=Ss.parentNode,Ps=Ss.nextSibling,As=document.createElement(Ss.localName);As.__appliedElement=Ss,As.setAttribute('type','import-placeholder'),Cs.parentNode===document.head?document.head.insertBefore(Ss,Cs):document.head.appendChild(Ss),Ts.insertBefore(As,Ps),Ss.removeAttribute('type')}return Promise.all(bs)}fireEvents(){const gs=document.querySelectorAll(es);for(let bs,vs=gs.length-1;0<=vs&&(bs=gs[vs]);vs--)this.fireEventIfNeeded(bs)}fireEventIfNeeded(gs){if(!gs.__loaded){gs.__loaded=!0,gs.import&&(gs.import.readyState='complete');const vs=gs.import?'load':'error';gs.dispatchEvent(new CustomEvent(vs,{bubbles:!1,cancelable:!1,detail:void 0}))}}handleMutations(gs){for(let vs=0;vs<gs.length;vs++){const bs=gs[vs];if(bs.addedNodes)for(let Ns=0;Ns<bs.addedNodes.length;Ns++){const Es=bs.addedNodes[Ns];if(Es&&Es.nodeType===Node.ELEMENT_NODE){const Ss=_s(Es)?[Es]:Es.querySelectorAll(es);for(let Cs=0;Cs<Ss.length;Cs++){const Ts=Ss[Cs],Ps=this.documents[Ts.href];void 0===Ps?this.load(Ts):!this.inflight&&(Ts.import=Ps,this.fireEventIfNeeded(Ts))}}}}}};$r.useNative=Br,$r.whenReady=hs,$r.importForElement=fs})(window.HTMLImports=window.HTMLImports||{}),function(){'use strict';window.WebComponents=window.WebComponents||{flags:{}};var Br=document.querySelector('script[src*="'+'webcomponents-lite.js'+'"]'),Yr={};if(!Yr.noOpts){if(location.search.slice(1).split('&').forEach(function(Qr){var ts,es=Qr.split('=');es[0]&&(ts=es[0].match(/wc-(.+)/))&&(Yr[ts[1]]=es[1]||!0)}),Br)for(var Xr,Gr=0;Xr=Br.attributes[Gr];Gr++)'src'!==Xr.name&&(Yr[Xr.name]=Xr.value||!0);if(Yr.log&&Yr.log.split){var Vr=Yr.log.split(',');Yr.log={},Vr.forEach(function(Qr){Yr.log[Qr]=!0})}else Yr.log={}}WebComponents.flags=Yr;var Jr=window.WebComponents,Zr=Jr.flags.shadydom;Zr&&(window.ShadyDOM=window.ShadyDOM||{},ShadyDOM.force=Zr);var zr=Jr.flags.register||Jr.flags.ce;zr&&window.customElements&&(customElements.forcePolyfill=zr)}(),function(){function $r(){this.a=new Map,this.j=new Map,this.h=new Map,this.o=new Set,this.C=new MutationObserver(this.D.bind(this)),this.f=null,this.F=new Set,this.enableFlush=!0,this.s=!1,this.m=null}function Br(){return Jr.customElements}function Yr(as){if(!/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(as)||-1!==Zr.indexOf(as))return Error('The element name \''+as+'\' is not valid.')}function Gr(as,ls,ds,ps){var cs=Br();return as=ds?Qr.call(as,ls,ds):Qr.call(as,ls),(ls=cs.a.get(ls.toLowerCase()))&&cs.u(as,ls,ps),cs.b(as),as}function Xr(as,ls,ds,ps){ls=ls.toLowerCase();var cs=as.getAttribute(ls);ps.call(as,ls,ds),1==as.__$CE_upgraded&&(ps=Br().a.get(as.localName),ds=ps.A,(ps=ps.i)&&0<=ds.indexOf(ls)&&(ds=as.getAttribute(ls),ds!==cs&&ps.call(as,ls,cs,ds,null)))}var Vr=document,Jr=window;if(!(Br()&&(Br().g=function(){},!Br().forcePolyfill))){var Zr='annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph'.split(' ');$r.prototype.L=function(as,ls){function ds(ms){var ys=_s[ms];if(void 0!==ys&&'function'!=typeof ys)throw Error(cs+' \''+ms+'\' is not a Function');return ys}if('function'!=typeof ls)throw new TypeError('constructor must be a Constructor');var ps=Yr(as);if(ps)throw ps;if(this.a.has(as))throw Error('An element with name \''+as+'\' is already defined');if(this.j.has(ls))throw Error('Definition failed for \''+as+'\': The constructor is already used.');var cs=as,_s=ls.prototype;if('object'!=typeof _s)throw new TypeError('Definition failed for \''+as+'\': constructor.prototype must be an object');var ps=ds('connectedCallback'),us=ds('disconnectedCallback'),hs=ds('attributeChangedCallback');this.a.set(cs,{name:as,localName:cs,constructor:ls,v:ps,w:us,i:hs,A:hs&&ls.observedAttributes||[]}),this.j.set(ls,cs),this.K(),(as=this.h.get(cs))&&(as.resolve(void 0),this.h.delete(cs))},$r.prototype.get=function(as){return(as=this.a.get(as))?as.constructor:void 0},$r.prototype.M=function(as){var ls=Yr(as);if(ls)return Promise.reject(ls);if(this.a.has(as))return Promise.resolve();if(ls=this.h.get(as))return ls.N;var ds,ps=new Promise(function(cs){ds=cs}),ls={N:ps,resolve:ds};return this.h.set(as,ls),ps},$r.prototype.g=function(){this.enableFlush&&(this.l(this.m.takeRecords()),this.D(this.C.takeRecords()),this.o.forEach(function(as){this.l(as.takeRecords())},this))},$r.prototype.K=function(){var as=this;if(!this.s){this.s=!0;var ls=function(){as.s=!1,as.m||(as.m=as.b(Vr)),as.c(Vr.childNodes)};window.HTMLImports?window.HTMLImports.whenReady(ls):ls()}},$r.prototype.I=function(as){this.f=as},$r.prototype.b=function(as){return null==as.__$CE_observer?(as.__$CE_observer=new MutationObserver(this.l.bind(this)),as.__$CE_observer.observe(as,{childList:!0,subtree:!0}),this.enableFlush&&this.o.add(as.__$CE_observer),as.__$CE_observer):as.__$CE_observer},$r.prototype.J=function(as){null!=as.__$CE_observer&&(as.__$CE_observer.disconnect(),this.enableFlush&&this.o.delete(as.__$CE_observer),as.__$CE_observer=null)},$r.prototype.l=function(as){for(var ds,ls=0;ls<as.length;ls++)if(ds=as[ls],'childList'===ds.type){var ps=ds.removedNodes;this.c(ds.addedNodes),this.H(ps)}},$r.prototype.c=function(as,ls){ls=ls||new Set;for(var ps,ds=0;ds<as.length;ds++)if(ps=as[ds],ps.nodeType===Node.ELEMENT_NODE){this.J(ps),ps=Vr.createTreeWalker(ps,NodeFilter.SHOW_ELEMENT,null,!1);do this.G(ps.currentNode,ls);while(ps.nextNode())}},$r.prototype.G=function(as,ls){if(!ls.has(as)){ls.add(as);var ds=this.a.get(as.localName);if(ds){as.__$CE_upgraded||this.u(as,ds,!0);var ps;if(ps=as.__$CE_upgraded&&!as.__$CE_attached)a:{ps=as;do{if(ps.__$CE_attached||ps.nodeType===Node.DOCUMENT_NODE){ps=!0;break a}ps=ps.parentNode||ps.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&ps.host}while(ps);ps=!1}ps&&(as.__$CE_attached=!0,ds.v&&ds.v.call(as))}as.shadowRoot&&this.c(as.shadowRoot.childNodes,ls),'LINK'===as.tagName&&as.rel&&-1!==as.rel.toLowerCase().split(' ').indexOf('import')&&this.B(as,ls)}},$r.prototype.B=function(as,ls){var ds=as.import;if(ds)ls.has(ds)||(ls.add(ds),ds.__$CE_observer||this.b(ds),this.c(ds.childNodes,ls));else if(ls=as.href,!this.F.has(ls)){this.F.add(ls);var ps=this,cs=function(){as.removeEventListener('load',cs),as.import.__$CE_observer||ps.b(as.import),ps.c(as.import.childNodes)};as.addEventListener('load',cs)}},$r.prototype.H=function(as){for(var ds,ls=0;ls<as.length;ls++)if(ds=as[ls],ds.nodeType===Node.ELEMENT_NODE){this.b(ds),ds=Vr.createTreeWalker(ds,NodeFilter.SHOW_ELEMENT,null,!1);do{var ps=ds.currentNode;if(ps.__$CE_upgraded&&ps.__$CE_attached){ps.__$CE_attached=!1;var cs=this.a.get(ps.localName);cs&&cs.w&&cs.w.call(ps)}}while(ds.nextNode())}},$r.prototype.u=function(as,ls,ds){if(as.__proto__=ls.constructor.prototype,ds&&(this.I(as),new ls.constructor,as.__$CE_upgraded=!0,console.assert(!this.f)),ds=ls.A,(ls=ls.i)&&0<ds.length){this.C.observe(as,{attributes:!0,attributeOldValue:!0,attributeFilter:ds});for(var cs,ps=0;ps<ds.length;ps++)if(cs=ds[ps],as.hasAttribute(cs)){var _s=as.getAttribute(cs);ls.call(as,cs,null,_s,null)}}},$r.prototype.D=function(as){for(var ds,ls=0;ls<as.length;ls++)if(ds=as[ls],'attributes'===ds.type){var ps=ds.target,cs=this.a.get(ps.localName),_s=ds.attributeName,us=ds.oldValue,hs=ps.getAttribute(_s);hs!==us&&cs.i.call(ps,_s,us,hs,ds.attributeNamespace)}},window.CustomElementRegistry=$r,$r.prototype.define=$r.prototype.L,$r.prototype.get=$r.prototype.get,$r.prototype.whenDefined=$r.prototype.M,$r.prototype.flush=$r.prototype.g,$r.prototype.polyfilled=!0,$r.prototype._observeRoot=$r.prototype.b,$r.prototype._addImport=$r.prototype.B;var zr=Jr.HTMLElement;$r.prototype.nativeHTMLElement=zr,Jr.HTMLElement=function(){var as=Br();if(as.f){var ls=as.f;return as.f=null,ls}if(this.constructor)return as=as.j.get(this.constructor),Gr(Vr,as,void 0,!1);throw Error('Unknown constructor. Did you call customElements.define()?')},Jr.HTMLElement.prototype=zr.prototype;var Qr=Vr.createElement;Vr.createElement=function(as,ls){return Gr(Vr,as,ls,!0)};var es=Vr.createElementNS;Vr.createElementNS=function(as,ls){return'http://www.w3.org/1999/xhtml'===as?Vr.createElement(ls):es.call(Vr,as,ls)};var ts=Element.prototype.attachShadow;ts&&Object.defineProperty(Element.prototype,'attachShadow',{value:function(as){return as=ts.call(this,as),Br().b(as),as}});var os=Vr.importNode;Vr.importNode=function(as,ls){return as=os.call(Vr,as,ls),Br().c(as.nodeType===Node.ELEMENT_NODE?[as]:as.childNodes),as};var rs=Element.prototype.setAttribute;Element.prototype.setAttribute=function(as,ls){Xr(this,as,ls,rs)};var ns=Element.prototype.removeAttribute;Element.prototype.removeAttribute=function(as){Xr(this,as,null,ns)},Object.defineProperty(window,'customElements',{value:new $r,configurable:!0,enumerable:!0}),window.CustomElements={takeRecords:function(){Br().g&&Br().g()}}}}();var Uo='function'==typeof Symbol&&'symbol'==typeof Symbol.iterator?function($r){return typeof $r}:function($r){return $r&&'function'==typeof Symbol&&$r.constructor===Symbol&&$r!==Symbol.prototype?'symbol':typeof $r},Fo=function(){function $r(Br,Yr){for(var Xr,Gr=0;Gr<Yr.length;Gr++)Xr=Yr[Gr],Xr.enumerable=Xr.enumerable||!1,Xr.configurable=!0,'value'in Xr&&(Xr.writable=!0),Object.defineProperty(Br,Xr.key,Xr)}return function(Br,Yr,Gr){return Yr&&$r(Br.prototype,Yr),Gr&&$r(Br,Gr),Br}}();(function(){'use strict';function $r(wa){return'ShadyRoot'===wa.__localName}function Br(wa){var Da=wa.getRootNode();if($r(Da))return Da}function Yr(wa,Da){return En.call(wa,Da)}function Gr(wa,Da,La){var ka=Object.getOwnPropertyDescriptor(Da,wa);ka&&Object.defineProperty(La,wa,ka)}function Xr(wa,Da){if(wa&&Da)for(var ka,La=Object.getOwnPropertyNames(Da),Ua=0;Ua<La.length&&(ka=La[Ua]);Ua++)Gr(ka,Da,wa);return wa||Da}function Vr(wa){for(var Da=arguments.length,La=Array(1<Da?Da-1:0),ka=1;ka<Da;ka++)La[ka-1]=arguments[ka];for(var Ua=0;Ua<La.length;Ua++)Xr(wa,La[Ua]);return wa}function Jr(wa,Da){for(var La in Da)wa[La]=Da[La];return wa}function Zr(wa,Da){var La=Object.getPrototypeOf(wa);if(!La.hasOwnProperty('__patchProto')){var ka=Object.create(La);ka.__sourceProto=La,Xr(ka,Da),La.__patchProto=ka}wa.__proto__=La.__patchProto}function zr(wa){Pn||(Pn=!0,Sn.then(Qr)),Tn.push(wa)}function Qr(){for(Pn=!1,An++;Tn.length;)Tn.shift()();Cn&&Cn.flush&&Cn.flush();var wa=100<An;if(Tn.length&&!wa&&Qr(),An=0,wa)throw new Error('Loop detected in ShadyDOM distribution, aborting.')}function ts(wa){return'&'===wa?'&amp;':'<'===wa?'&lt;':'>'===wa?'&gt;':'"'===wa?'&quot;':'\xA0'===wa?'&nbsp;':void 0}function os(wa){return wa.replace(Jn,ts)}function rs(wa){return wa.replace(Zn,ts)}function ns(wa){for(var Da={},La=0;La<wa.length;La++)Da[wa[La]]=!0;return Da}function as(wa,Da,La){switch(wa.nodeType){case Node.ELEMENT_NODE:{for(var Ha,ka=wa.localName,Ua='<'+ka,Fa=wa.attributes,qa=0;Ha=Fa[qa];qa++)Ua+=' '+Ha.name+'="'+os(Ha.value)+'"';return Ua+='>',zn[ka]?Ua:Ua+ls(wa,La)+'</'+ka+'>'}case Node.TEXT_NODE:{var ja=wa.data;return Da&&Qn[Da.localName]?ja:rs(ja)}case Node.COMMENT_NODE:return'<!--'+wa.data+'-->';default:throw window.console.error(wa),new Error('not implemented');}}function ls(wa,Da){'template'===wa.localName&&(wa=wa.content);for(var Ua,La='',ka=Da?Da(wa):wa.childNodes,Fa=0,Ha=ka.length;Fa<Ha&&(Ua=ka[Fa]);Fa++)La+=as(Ua,wa,Da);return La}function ds(wa){return ea.currentNode=wa,ea.parentNode()}function ps(wa){return ea.currentNode=wa,ea.firstChild()}function cs(wa){return ea.currentNode=wa,ea.lastChild()}function _s(wa){var Da=[];ea.currentNode=wa;for(var La=ea.firstChild();La;)Da.push(La),La=ea.nextSibling();return Da}function us(wa){return ta.currentNode=wa,ta.firstChild()}function hs(wa){return ta.currentNode=wa,ta.lastChild()}function ms(wa){return ta.currentNode=wa,ta.previousSibling()}function ys(wa){return ta.currentNode=wa,ta.nextSibling()}function fs(wa){var Da=[];ta.currentNode=wa;for(var La=ta.firstChild();La;)Da.push(La),La=ta.nextSibling();return Da}function gs(wa){return ls(wa,function(Da){return _s(Da)})}function vs(wa){if(wa.nodeType!==Node.ELEMENT_NODE)return wa.nodeValue;for(var Da,La=document.createTreeWalker(wa,NodeFilter.SHOW_TEXT,null,!1),ka='';Da=La.nextNode();)ka+=Da.nodeValue;return ka}function bs(wa,Da){return wa.__shady&&wa.__shady[Da]}function Ns(wa,Da){return void 0!==bs(wa,Da)}function Es(wa){return{get:function(){var La=bs(this,wa);return void 0===La?oa[wa](this):La},configurable:!0}}function Ss(wa,Da){for(var La=Array.from(Da.childNodes),ka=0;ka<La.length;ka++)wa.appendChild(La[ka])}function Cs(wa){for(;wa.firstChild;)wa.removeChild(wa.firstChild)}function Ts(){return sa&&sa.get?sa.get.call(document):vn.hasDescriptors?void 0:document.activeElement}function Ps(wa){var Da=Ts();if(!Da)return null;var La=!!$r(wa);if(wa!==document){if(!La)return null;if(wa.host===Da||!wa.host.contains(Da))return null}for(var ka=Br(Da);ka&&ka!==wa;)Da=ka.host,ka=Br(Da);return wa===document?ka?null:Da:ka===wa?Da:null}function As(wa,Da,La){for(var ka in Da){var Ua=Object.getOwnPropertyDescriptor(wa,ka);Ua&&Ua.configurable||!Ua&&La?Object.defineProperty(wa,ka,Da[ka]):La&&console.warn('Could not define',ka,'on',wa)}}function xs(wa){As(wa,na),As(wa,aa),As(wa,ia)}function Rs(wa,Da,La){if(pa(Da),Da.__shady=Da.__shady||{},Ns(Da,'firstChild')&&(Da.__shady.childNodes=null),wa.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(var ka=wa.childNodes,Ua=0;Ua<ka.length;Ua++)Ms(ka[Ua],Da,La);wa.__shady=wa.__shady||{};var Fa=Ns(wa,'firstChild')?null:void 0;wa.__shady.firstChild=wa.__shady.lastChild=Fa,wa.__shady.childNodes=Fa}else Ms(wa,Da,La)}function Ms(wa,Da,La){da(wa),La=La||null,wa.__shady=wa.__shady||{},Da.__shady=Da.__shady||{},La&&(La.__shady=La.__shady||{}),wa.__shady.previousSibling=La?La.__shady.previousSibling:Da.lastChild;var ka=wa.__shady.previousSibling;ka&&ka.__shady&&(ka.__shady.nextSibling=wa);var Ua=wa.__shady.nextSibling=La;Ua&&Ua.__shady&&(Ua.__shady.previousSibling=wa),wa.__shady.parentNode=Da,La?La===Da.__shady.firstChild&&(Da.__shady.firstChild=wa):(Da.__shady.lastChild=wa,!Da.__shady.firstChild&&(Da.__shady.firstChild=wa)),Da.__shady.childNodes=null}function Is(wa,Da){wa.__shady=wa.__shady||{},Da.__shady=Da.__shady||{},wa===Da.__shady.firstChild&&(Da.__shady.firstChild=wa.__shady.nextSibling),wa===Da.__shady.lastChild&&(Da.__shady.lastChild=wa.__shady.previousSibling);var La=wa.__shady.previousSibling,ka=wa.__shady.nextSibling;La&&(La.__shady=La.__shady||{},La.__shady.nextSibling=ka),ka&&(ka.__shady=ka.__shady||{},ka.__shady.previousSibling=La),wa.__shady.parentNode=wa.__shady.previousSibling=wa.__shady.nextSibling=void 0,Ns(Da,'childNodes')&&(Da.__shady.childNodes=null)}function Os(wa,Da,La){var Ua,ka=Br(wa);ka&&(Da.__noInsertionPoint&&!ka._changePending&&(ka._skipUpdateInsertionPoints=!0),Ua=Hs(Da,wa,ka),Ua&&(ka._skipUpdateInsertionPoints=!1)),Ns(wa,'firstChild')&&Rs(Da,wa,La);var Fa=Fs(Da,wa,ka,Ua)||wa.shadyRoot;return Fa}function ws(wa){var La,Da=Ns(wa,'parentNode')&&bs(wa,'parentNode'),ka=Br(wa);if(Da||ka){La=Bs(wa),Da&&Is(wa,Da);var Ua=ka&&js(ka,wa),Fa=Da&&ka&&Da.localName===ka.getInsertionPointTag();(Ua||Fa)&&(ka._skipUpdateInsertionPoints=!1,Ys(ka))}return Ks(wa),La}function Ds(wa,Da,La){var ka=wa.__shady&&wa.__shady.observer;ka&&(Da&&ka.addedNodes.push(Da),La&&ka.removedNodes.push(La),ka.schedule())}function Ls(wa,Da){return Da?(Ds(Da,null,wa),ws(wa)):void Ks(wa)}function ks(wa){return void 0!==wa.__ownerShadyRoot}function Us(wa){if(wa&&wa.nodeType){var Da=wa.__ownerShadyRoot;if(void 0===Da){if($r(wa))Da=wa;else{var La=wa.parentNode;Da=La?Us(La):wa}document.documentElement.contains(wa)&&(wa.__ownerShadyRoot=Da)}return Da}}function Fs(wa,Da,La,ka){var Ua=La&&La.getInsertionPointTag()||'',Fa=wa.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&!wa.__noInsertionPoint&&Ua&&wa.querySelector(Ua),Ha=Fa&&Fa.parentNode.nodeType!==Node.DOCUMENT_FRAGMENT_NODE,qa=Fa||wa.localName===Ua;(qa||Da.localName===Ua||ka)&&La&&Ys(La);var ja=qs(Da);return ja&&Ys(Da.shadyRoot),ja||qa&&!Ha}function Hs(wa,Da,La){var ka,Ua=La.getInsertionPointTag();if(wa.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&!wa.__noInsertionPoint)for(var Ha,qa,ja,Fa=wa.querySelectorAll(Ua),Wa=0;Wa<Fa.length&&(Ha=Fa[Wa]);Wa++)qa=Ha.parentNode,qa===wa&&(qa=Da),ja=Hs(Ha,qa,La),ka=ka||ja;else wa.localName===Ua&&(ca(Da),ca(wa),ka=!0);return ka}function qs(wa){return wa&&wa.shadyRoot&&wa.shadyRoot.hasInsertionPoint()}function js(wa,Da){for(var La,Fa,ka=wa._insertionPoints,Ua=0;Ua<ka.length;Ua++)if(Fa=ka[Ua],Ws(Da,Fa))for(var Ha=Fa.assignedNodes({flatten:!0}),qa=0;qa<Ha.length;qa++){La=!0;var ja=Ha[qa],Wa=ds(ja);Wa&&kn.call(Wa,ja)}return La}function Ws(wa,Da){for(;Da;){if(Da==wa)return!0;Da=Da.parentNode}}function Ks(wa){if(ks(wa))for(var La,Da=wa.childNodes,ka=0,Ua=Da.length;ka<Ua&&(La=Da[ka]);ka++)Ks(La);wa.__ownerShadyRoot=void 0}function $s(wa){for(var ka,Da=wa.assignedNodes({flatten:!0}),La=Us(wa),Ua=0,Fa=Da.length;Ua<Fa&&(ka=Da[Ua]);Ua++)if(La.isFinalDestination(wa,ka))return ka}function Bs(wa){var Da=wa.parentNode;if(qs(Da))return Ys(Da.shadyRoot),!0}function Ys(wa){wa._changePending=!0,wa.update()}function Gs(wa,Da){if('slot'===Da)Bs(wa);else if('slot'===wa.localName&&'name'===Da){var La=Br(wa);La&&La.update()}}function Xs(wa,Da,La){var ka=[];return Vs(wa.childNodes,Da,La,ka),ka}function Vs(wa,Da,La,ka){for(var Ua,Fa=0,Ha=wa.length;Fa<Ha&&(Ua=wa[Fa]);Fa++)if(Ua.nodeType===Node.ELEMENT_NODE&&Js(Ua,Da,La,ka))return!0}function Js(wa,Da,La,ka){var Ua=Da(wa);return Ua&&ka.push(wa),La&&La(Ua)?Ua:void Vs(wa.childNodes,Da,La,ka)}function Zs(wa){var Da=wa.getRootNode();$r(Da)&&Da.render()}function zs(wa,Da,La){window.ShadyCSS&&'class'===Da&&wa.ownerDocument===document?window.ShadyCSS.setElementClass(wa,La):(Fn.call(wa,Da,La),Gs(wa,Da))}function Qs(wa,Da){qn.call(wa,Da),Gs(wa,Da)}function en(wa,Da,La){if(La){var ka=bs(La,'parentNode');if(void 0!==ka&&ka!==wa)throw Error('The ref_node to be inserted before is not a child of this node')}if(Da.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var Ua=bs(Da,'parentNode');Ls(Da,Ua)}if(!Os(wa,Da,La)){if(La){var Fa=Br(La);Fa&&(La=La.localName===Fa.getInsertionPointTag()?$s(La):La)}var Ha=$r(wa)?wa.host:wa;La?Dn.call(Ha,Da,La):On.call(Ha,Da)}return Ds(wa,Da),Da}function tn(wa,Da){if(Da.parentNode!==wa)throw Error('The node to be removed is not a child of this node: '+Da);if(!ws(Da)){var La=$r(wa)?wa.host:wa,ka=ds(Da);La===ka&&kn.call(La,Da)}return Ds(wa,null,Da),Da}function on(wa,Da){if('template'==wa.localName)return Wn.call(wa,Da);var La=Wn.call(wa,!1);if(Da)for(var Ua,ka=wa.childNodes,Fa=0;Fa<ka.length;Fa++)Ua=ka[Fa].cloneNode(!0),La.appendChild(Ua);return La}function rn(wa,Da,La){if(La||(La=$n),wa.ownerDocument!==document)return La.call(document,wa,Da);var ka=La.call(document,wa,!1);if(Da)for(var Fa,Ua=wa.childNodes,Ha=0;Ha<Ua.length;Ha++)Fa=rn(Ua[Ha],!0,La),ka.appendChild(Fa);return ka}function sn(wa,Da){for(var La=[],ka=wa,Ua=wa===window?window:wa.getRootNode();ka;)La.push(ka),ka=ka.assignedSlot?ka.assignedSlot:ka.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&ka.host&&(Da||ka!==Ua)?ka.host:ka.parentNode;return La[La.length-1]===document&&La.push(window),La}function nn(wa,Da){if(!$r)return wa;for(var Ua,Fa,Ha,qa,La=sn(wa,!0),ka=Da,ja=0;ja<ka.length;ja++)if(Ua=ka[ja],Ha=Ua===window?window:Ua.getRootNode(),Ha!=Fa&&(qa=La.indexOf(Ha),Fa=Ha),!$r(Ha)||-1<qa)return Ua}function an(wa){var Da=function(ka,Ua){var Fa=new wa(ka,Ua);return Fa.__composed=Ua&&!!Ua.composed,Fa};return Jr(Da,wa),Da.prototype=wa.prototype,Da}function ln(wa,Da,La){var ka=Da.__handlers&&Da.__handlers[wa.type]&&Da.__handlers[wa.type][La];if(ka)for(var Ua,Fa=0;Ua=ka[Fa];Fa++)if(Ua.call(Da,wa),wa.__immediatePropagationStopped)return}function dn(wa){var La,Da=wa.composedPath();Object.defineProperty(wa,'currentTarget',{get:function(){return La},configurable:!0});for(var ka=Da.length-1;0<=ka;ka--)if(La=Da[ka],ln(wa,La,'capture'),wa.__propagationStopped)return;Object.defineProperty(wa,'eventPhase',{value:Event.AT_TARGET});for(var Ua,Fa=0;Fa<Da.length;Fa++)if(La=Da[Fa],(0===Fa||La.shadowRoot&&La.shadowRoot===Ua)&&(ln(wa,La,'bubble'),La!==window&&(Ua=La.getRootNode()),wa.__propagationStopped))return}function cn(){for(var wa in ha)window.addEventListener(wa,function(Da){Da.__target||(Da.__target=Da.target,Da.__relatedTarget=Da.relatedTarget,Zr(Da,ua),dn(Da),Da.stopImmediatePropagation())},!0)}function un(wa,Da,La){return{index:wa,removed:Da,addedCount:La}}function hn(wa,Da){if(!wa)throw'Must provide a host.';if(!Da)throw'Not enough arguments.';var La=document.createDocumentFragment();return La.__proto__=Pa,La._init(wa),La}function mn(wa){return Zs(wa),bs(wa,'assignedSlot')||null}function yn(wa,Da){for(var La=Object.getOwnPropertyNames(Da),ka=0;ka<La.length;ka++){var Ua=La[ka],Fa=Object.getOwnPropertyDescriptor(Da,Ua);Fa.value?wa[Ua]=Fa.value:Object.defineProperty(wa,Ua,Fa)}}var vn=window.ShadyDOM||{};vn.hasNativeShadowDOM=!!(Element.prototype.attachShadow&&Node.prototype.getRootNode);var bn=Object.getOwnPropertyDescriptor(Node.prototype,'firstChild');vn.hasDescriptors=!!(bn&&bn.configurable&&bn.get),vn.inUse=vn.force||!vn.hasNativeShadowDOM;var Sn,Nn=Element.prototype,En=Nn.matches||Nn.matchesSelector||Nn.mozMatchesSelector||Nn.msMatchesSelector||Nn.oMatchesSelector||Nn.webkitMatchesSelector;window.Promise?Sn=Promise.resolve():function(){var wa=document.createTextNode(''),Da=0;Sn={then:function(ka){var Ua=new MutationObserver(function(){Ua.disconnect(),ka()});Ua.observe(wa,{characterData:!0}),wa.textContent=Da++}}}();var Pn,Cn=window.customElements,Tn=[],An=0;Qr.list=Tn;var xn=function(){function wa(){po(this,wa),this._scheduled=!1,this.addedNodes=[],this.removedNodes=[],this.callbacks=new Set}return Fo(wa,[{key:'schedule',value:function(){var La=this;this._scheduled||(this._scheduled=!0,Sn.then(function(){La.flush()}))}},{key:'flush',value:function(){var La=this;this._scheduled&&function(){La._scheduled=!1;var ka=La.takeRecords();ka.length&&La.callbacks.forEach(function(Ua){Ua(ka)})}()}},{key:'takeRecords',value:function(){if(this.addedNodes.length||this.removedNodes.length){var La=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],La}return[]}}]),wa}(),In=Element.prototype.appendChild,On=In,wn=Element.prototype.insertBefore,Dn=wn,Ln=Element.prototype.removeChild,kn=Ln,Un=Element.prototype.setAttribute,Fn=Un,Hn=Element.prototype.removeAttribute,qn=Hn,jn=Element.prototype.cloneNode,Wn=jn,Kn=Document.prototype.importNode,$n=Kn,Bn=Element.prototype.addEventListener,Yn=Bn,Gn=Element.prototype.removeEventListener,Xn=Gn,Vn=Object.freeze({appendChild:On,insertBefore:Dn,removeChild:kn,setAttribute:Fn,removeAttribute:qn,cloneNode:Wn,importNode:$n,addEventListener:Yn,removeEventListener:Xn}),Jn=/[&\u00A0"]/g,Zn=/[&\u00A0<>]/g,zn=ns(['area','base','br','col','command','embed','hr','img','input','keygen','link','meta','param','source','track','wbr']),Qn=ns(['style','script','xmp','iframe','noembed','noframes','plaintext','noscript']),ea=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),ta=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1),oa=Object.freeze({parentNode:ds,firstChild:ps,lastChild:cs,previousSibling:function(Da){return ea.currentNode=Da,ea.previousSibling()},nextSibling:function(Da){return ea.currentNode=Da,ea.nextSibling()},childNodes:_s,parentElement:function(Da){return ta.currentNode=Da,ta.parentNode()},firstElementChild:us,lastElementChild:hs,previousElementSibling:ms,nextElementSibling:ys,children:fs,innerHTML:gs,textContent:vs}),ra=new DOMParser,sa=Object.getOwnPropertyDescriptor(Document.prototype,'activeElement'),na={parentElement:Es('parentElement'),parentNode:Es('parentNode'),nextSibling:Es('nextSibling'),previousSibling:Es('previousSibling'),className:{get:function(){return this.getAttribute('class')},set:function(Da){this.setAttribute('class',Da)},configurable:!0},nextElementSibling:{get:function(){if(Ns(this,'nextSibling')){for(var Da=this.nextSibling;Da&&Da.nodeType!==Node.ELEMENT_NODE;)Da=Da.nextSibling;return Da}return ys(this)},configurable:!0},previousElementSibling:{get:function(){if(Ns(this,'previousSibling')){for(var Da=this.previousSibling;Da&&Da.nodeType!==Node.ELEMENT_NODE;)Da=Da.previousSibling;return Da}return ms(this)},configurable:!0}},aa={childNodes:{get:function(){if(Ns(this,'firstChild')){if(!this.__shady.childNodes){this.__shady.childNodes=[];for(var Da=this.firstChild;Da;Da=Da.nextSibling)this.__shady.childNodes.push(Da)}return this.__shady.childNodes}return _s(this)},configurable:!0},firstChild:Es('firstChild'),lastChild:Es('lastChild'),textContent:{get:function(){if(Ns(this,'firstChild')){for(var La,Da=[],ka=0,Ua=this.childNodes;La=Ua[ka];ka++)La.nodeType!==Node.COMMENT_NODE&&Da.push(La.textContent);return Da.join('')}return vs(this)},set:function(Da){this.nodeType===Node.ELEMENT_NODE?(Cs(this),Da&&this.appendChild(document.createTextNode(Da))):this.nodeValue=Da},configurable:!0},firstElementChild:{get:function(){if(Ns(this,'firstChild')){for(var Da=this.firstChild;Da&&Da.nodeType!==Node.ELEMENT_NODE;)Da=Da.nextSibling;return Da}return us(this)},configurable:!0},lastElementChild:{get:function(){if(Ns(this,'lastChild')){for(var Da=this.lastChild;Da&&Da.nodeType!==Node.ELEMENT_NODE;)Da=Da.previousSibling;return Da}return hs(this)},configurable:!0},children:{get:function(){return Ns(this,'firstChild')?Array.prototype.filter.call(this.childNodes,function(Da){return Da.nodeType===Node.ELEMENT_NODE}):fs(this)},configurable:!0},innerHTML:{get:function(){var Da='template'===this.localName?this.content:this;return Ns(this,'firstChild')?ls(Da):gs(Da)},set:function(Da){var La='template'===this.localName?this.content:this;Cs(La);var ka=ra.parseFromString(Da,'text/html');ka.head&&Ss(La,ka.head),ka.body&&Ss(La,ka.body)},configurable:!0}},la={shadowRoot:{get:function(){return this.shadyRoot},set:function(Da){this.shadyRoot=Da},configurable:!0}},ia={activeElement:{get:function(){return Ps(this)},set:function(){},configurable:!0}},da=vn.hasDescriptors?function(){}:function(wa){wa.__shady&&wa.__shady.__outsideAccessors||(wa.__shady=wa.__shady||{},wa.__shady.__outsideAccessors=!0,As(wa,na,!0))},pa=vn.hasDescriptors?function(){}:function(wa){wa.__shady&&wa.__shady.__insideAccessors||(wa.__shady=wa.__shady||{},wa.__shady.__insideAccessors=!0,As(wa,aa,!0),As(wa,la,!0))},ca=function(Da){if(!Ns(Da,'firstChild')){Da.__shady=Da.__shady||{},Da.__shady.firstChild=ps(Da),Da.__shady.lastChild=cs(Da),pa(Da);for(var ka,La=Da.__shady.childNodes=_s(Da),Ua=0;Ua<La.length&&(ka=La[Ua]);Ua++)ka.__shady=ka.__shady||{},ka.__shady.parentNode=Da,ka.__shady.nextSibling=La[Ua+1]||null,ka.__shady.previousSibling=La[Ua-1]||null,da(ka)}},_a={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},ua={get composed(){return this.isTrusted&&void 0===this.__composed&&(this.__composed=_a[this.type]),this.__composed||!1},composedPath:function(){return this.__composedPath||(this.__composedPath=sn(this.__target,this.composed)),this.__composedPath},get target(){return nn(this.currentTarget,this.composedPath())},get relatedTarget(){return this.__relatedTarget?(this.__relatedTargetComposedPath||(this.__relatedTargetComposedPath=sn(this.__relatedTarget,!0)),nn(this.currentTarget,this.__relatedTargetComposedPath)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.__propagationStopped=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.__immediatePropagationStopped=!0,this.__propagationStopped=!0}},ha={focus:!0,blur:!0},ma=an(window.Event),ya=an(window.CustomEvent),fa=an(window.MouseEvent),ga=0,va=1,ba=2,Na=3,Ea={calcEditDistances:function(Da,La,ka,Ua,Fa,Ha){for(var qa=Ha-Fa+1,ja=ka-La+1,Wa=Array(qa),Ka=0;Ka<qa;Ka++)Wa[Ka]=Array(ja),Wa[Ka][0]=Ka;for(var $a=0;$a<ja;$a++)Wa[0][$a]=$a;for(var Ba=1;Ba<qa;Ba++)for(var Ya=1;Ya<ja;Ya++)if(this.equals(Da[La+Ya-1],Ua[Fa+Ba-1]))Wa[Ba][Ya]=Wa[Ba-1][Ya-1];else{var Ga=Wa[Ba-1][Ya]+1,Xa=Wa[Ba][Ya-1]+1;Wa[Ba][Ya]=Ga<Xa?Ga:Xa}return Wa},spliceOperationsFromEditDistances:function(Da){for(var La=Da.length-1,ka=Da[0].length-1,Ua=Da[La][ka],Fa=[];0<La||0<ka;){if(0==La){Fa.push(ba),ka--;continue}if(0==ka){Fa.push(Na),La--;continue}var Ha=Da[La-1][ka-1],qa=Da[La-1][ka],ja=Da[La][ka-1],Wa=void 0;Wa=qa<ja?qa<Ha?qa:Ha:ja<Ha?ja:Ha,Wa==Ha?(Ha==Ua?Fa.push(ga):(Fa.push(va),Ua=Ha),La--,ka--):Wa==qa?(Fa.push(Na),La--,Ua=qa):(Fa.push(ba),ka--,Ua=ja)}return Fa.reverse(),Fa},calcSplices:function(Da,La,ka,Ua,Fa,Ha){var Wa,qa=0,ja=0,Ka=Math.min(ka-La,Ha-Fa);if(0==La&&0==Fa&&(qa=this.sharedPrefix(Da,Ua,Ka)),ka==Da.length&&Ha==Ua.length&&(ja=this.sharedSuffix(Da,Ua,Ka-qa)),La+=qa,Fa+=qa,ka-=ja,Ha-=ja,0==ka-La&&0==Ha-Fa)return[];if(La==ka){for(Wa=un(La,[],0);Fa<Ha;)Wa.removed.push(Ua[Fa++]);return[Wa]}if(Fa==Ha)return[un(La,[],ka-La)];var $a=this.spliceOperationsFromEditDistances(this.calcEditDistances(Da,La,ka,Ua,Fa,Ha));Wa=void 0;for(var Ba=[],Ya=La,Ga=Fa,Xa=0;Xa<$a.length;Xa++)switch($a[Xa]){case ga:Wa&&(Ba.push(Wa),Wa=void 0),Ya++,Ga++;break;case va:Wa||(Wa=un(Ya,[],0)),Wa.addedCount++,Ya++,Wa.removed.push(Ua[Ga]),Ga++;break;case ba:Wa||(Wa=un(Ya,[],0)),Wa.addedCount++,Ya++;break;case Na:Wa||(Wa=un(Ya,[],0)),Wa.removed.push(Ua[Ga]),Ga++;}return Wa&&Ba.push(Wa),Ba},sharedPrefix:function(Da,La,ka){for(var Ua=0;Ua<ka;Ua++)if(!this.equals(Da[Ua],La[Ua]))return Ua;return ka},sharedSuffix:function(Da,La,ka){for(var Ua=Da.length,Fa=La.length,Ha=0;Ha<ka&&this.equals(Da[--Ua],La[--Fa]);)Ha++;return Ha},calculateSplices:function(Da,La){return this.calcSplices(Da,0,Da.length,La,0,La.length)},equals:function(Da,La){return Da===La}},Sa=function(Da,La){return Ea.calculateSplices(Da,La)},Ca='function'==typeof Event?Event:function(wa,Da){Da=Da||{};var La=document.createEvent('Event');return La.initEvent(wa,!!Da.bubbles,!!Da.cancelable),La},Ta=function(){function wa(Da){po(this,wa),this.root=Da,this.insertionPointTag='slot'}return Fo(wa,[{key:'getInsertionPoints',value:function(){return this.root.querySelectorAll(this.insertionPointTag)}},{key:'hasInsertionPoint',value:function(){return!!(this.root._insertionPoints&&this.root._insertionPoints.length)}},{key:'isInsertionPoint',value:function(La){return La.localName&&La.localName==this.insertionPointTag}},{key:'distribute',value:function(){return this.hasInsertionPoint()?this.distributePool(this.root,this.collectPool()):[]}},{key:'collectPool',value:function(){for(var La=this.root.host,ka=[],Ua=0,Fa=La.firstChild;Fa;Fa=Fa.nextSibling)ka[Ua++]=Fa;return ka}},{key:'distributePool',value:function(La,ka){for(var Ha,Ua=[],Fa=this.root._insertionPoints,qa=0,ja=Fa.length;qa<ja&&(Ha=Fa[qa]);qa++){this.distributeInsertionPoint(Ha,ka);var Wa=Ha.parentNode;Wa&&Wa.shadyRoot&&this.hasInsertionPoint(Wa.shadyRoot)&&Ua.push(Wa.shadyRoot)}for(var $a,Ka=0;Ka<ka.length;Ka++)if($a=ka[Ka],$a){$a.__shady=$a.__shady||{},$a.__shady.assignedSlot=void 0;var Ba=ds($a);Ba&&kn.call(Ba,$a)}return Ua}},{key:'distributeInsertionPoint',value:function(La,ka){var Ua=La.__shady.assignedNodes;Ua&&this.clearAssignedSlots(La,!0),La.__shady.assignedNodes=[];for(var qa,Fa=!1,Ha=!1,ja=0,Wa=ka.length;ja<Wa;ja++)(qa=ka[ja],!!qa)&&this.matchesInsertionPoint(qa,La)&&(qa.__shady._prevAssignedSlot!=La&&(Fa=!0),this.distributeNodeInto(qa,La),ka[ja]=void 0,Ha=!0);if(!Ha)for(var $a,Ka=La.childNodes,Ba=0;Ba<Ka.length;Ba++)$a=Ka[Ba],$a.__shady._prevAssignedSlot!=La&&(Fa=!0),this.distributeNodeInto($a,La);if(Ua){for(var Ya=0;Ya<Ua.length;Ya++)Ua[Ya].__shady._prevAssignedSlot=null;La.__shady.assignedNodes.length<Ua.length&&(Fa=!0)}this.setDistributedNodesOnInsertionPoint(La),Fa&&this._fireSlotChange(La)}},{key:'clearAssignedSlots',value:function(La,ka){var Ua=La.__shady.assignedNodes;if(Ua)for(var Ha,Fa=0;Fa<Ua.length;Fa++)Ha=Ua[Fa],ka&&(Ha.__shady._prevAssignedSlot=Ha.__shady.assignedSlot),Ha.__shady.assignedSlot===La&&(Ha.__shady.assignedSlot=null)}},{key:'matchesInsertionPoint',value:function(La,ka){var Ua=ka.getAttribute('name');Ua=Ua?Ua.trim():'';var Fa=La.getAttribute&&La.getAttribute('slot');return Fa=Fa?Fa.trim():'',Fa==Ua}},{key:'distributeNodeInto',value:function(La,ka){ka.__shady.assignedNodes.push(La),La.__shady.assignedSlot=ka}},{key:'setDistributedNodesOnInsertionPoint',value:function(La){var ka=La.__shady.assignedNodes;La.__shady.distributedNodes=[];for(var Ua,Fa=0;Fa<ka.length&&(Ua=ka[Fa]);Fa++)if(this.isInsertionPoint(Ua)){var Ha=Ua.__shady.distributedNodes;if(Ha)for(var qa=0;qa<Ha.length;qa++)La.__shady.distributedNodes.push(Ha[qa])}else La.__shady.distributedNodes.push(ka[Fa])}},{key:'_fireSlotChange',value:function(La){La.dispatchEvent(new Ca('slotchange')),La.__shady.assignedSlot&&this._fireSlotChange(La.__shady.assignedSlot)}},{key:'isFinalDestination',value:function(La){return!La.__shady.assignedSlot}}]),wa}(),Pa=Object.create(DocumentFragment.prototype);Vr(Pa,{_init:function(Da){this.__localName='ShadyRoot',ca(Da),ca(this),Da.shadowRoot=this,this.host=Da,this._renderPending=!1,this._hasRendered=!1,this._changePending=!1,this._distributor=new Ta(this),this.update()},update:function(){var Da=this;this._renderPending||(this._renderPending=!0,zr(function(){return Da.render()}))},_getRenderRoot:function(){for(var Da=this,La=this;La;)La._renderPending&&(Da=La),La=La._rendererForHost();return Da},_rendererForHost:function(){var Da=this.host.getRootNode();if($r(Da))for(var ka,La=this.host.childNodes,Ua=0;Ua<La.length;Ua++)if(ka=La[Ua],this._distributor.isInsertionPoint(ka))return Da},render:function(){this._renderPending&&this._getRenderRoot()._render()},_render:function(){this._renderPending=!1,this._changePending=!1,this._skipUpdateInsertionPoints?!this._hasRendered&&(this._insertionPoints=[]):this.updateInsertionPoints(),this._skipUpdateInsertionPoints=!1,this.distribute(),this.compose(),this._hasRendered=!0},forceRender:function(){this._renderPending=!0,this.render()},distribute:function(){for(var Da=this._distributor.distribute(),La=0;La<Da.length;La++)Da[La]._render()},updateInsertionPoints:function(){var Da=this.__insertionPoints;if(Da)for(var La,ka=0;ka<Da.length;ka++)La=Da[ka],La.getRootNode()!==this&&this._distributor.clearAssignedSlots(La);Da=this._insertionPoints=this._distributor.getInsertionPoints();for(var Ua,Fa=0;Fa<Da.length;Fa++)Ua=Da[Fa],Ua.__shady=Ua.__shady||{},ca(Ua),ca(Ua.parentNode)},get _insertionPoints(){return this.__insertionPoints||this.updateInsertionPoints(),this.__insertionPoints||(this.__insertionPoints=[])},set _insertionPoints(wa){this.__insertionPoints=wa},hasInsertionPoint:function(){return this._distributor.hasInsertionPoint()},compose:function(){this._composeTree()},_composeTree:function(){this._updateChildNodes(this.host,this._composeNode(this.host));for(var La,ka,Da=this._insertionPoints||[],Ua=0,Fa=Da.length;Ua<Fa&&(La=Da[Ua]);Ua++)ka=La.parentNode,ka!==this.host&&ka!==this&&this._updateChildNodes(ka,this._composeNode(ka))},_composeNode:function(Da){for(var Fa,La=[],ka=(Da.shadyRoot||Da).childNodes,Ua=0;Ua<ka.length;Ua++)if(Fa=ka[Ua],this._distributor.isInsertionPoint(Fa))for(var ja,Ha=Fa.__shady.distributedNodes||(Fa.__shady.distributedNodes=[]),qa=0;qa<Ha.length;qa++)ja=Ha[qa],this.isFinalDestination(Fa,ja)&&La.push(ja);else La.push(Fa);return La},isFinalDestination:function(Da,La){return this._distributor.isFinalDestination(Da,La)},_updateChildNodes:function(Da,La){for(var Fa,ka=_s(Da),Ua=Sa(La,ka),Ha=0,qa=0;Ha<Ua.length&&(Fa=Ua[Ha]);Ha++){for(var ja,Wa=0;Wa<Fa.removed.length&&(ja=Fa.removed[Wa]);Wa++)ds(ja)===Da&&kn.call(Da,ja),ka.splice(Fa.index+qa,1);qa-=Fa.addedCount}for(var Ka,$a,Ba=0;Ba<Ua.length&&(Ka=Ua[Ba]);Ba++){$a=ka[Ka.index];for(var Ya,Ga=Ka.index;Ga<Ka.index+Ka.addedCount;Ga++)Ya=La[Ga],Dn.call(Da,Ya,$a),ka.splice(Ga,0,Ya)}},getInsertionPointTag:function(){return this._distributor.insertionPointTag}}),function(wa){As(wa,aa,!0),As(wa,ia,!0)}(Pa);var Aa={addEventListener:function(Da,La,ka){var Ua=this;if(La){var Fa=function(){var Ha,qa,ja;if('object'==('undefined'==typeof ka?'undefined':Uo(ka))?(Ha=!!ka.capture,qa=!!ka.once,ja=!!ka.passive):(Ha=!!ka,qa=!1,ja=!1),La.__eventWrappers){for(var Wa=0;Wa<La.__eventWrappers.length;Wa++)if(La.__eventWrappers[Wa].node===Ua&&La.__eventWrappers[Wa].type===Da&&La.__eventWrappers[Wa].capture===Ha&&La.__eventWrappers[Wa].once===qa&&La.__eventWrappers[Wa].passive===ja)return{v:void 0};}else La.__eventWrappers=[];var Ka=function(Ba){if(qa&&this.removeEventListener(Da,La,ka),Ba.__target||(Ba.__target=Ba.target,Ba.__relatedTarget=Ba.relatedTarget,Zr(Ba,ua)),Ba.composed||-1<Ba.composedPath().indexOf(this))return Ba.eventPhase===Event.BUBBLING_PHASE&&Ba.target===Ba.relatedTarget?void Ba.stopImmediatePropagation():La(Ba)};La.__eventWrappers.push({node:Ua,type:Da,capture:Ha,once:qa,passive:ja,wrapperFn:Ka}),ha[Da]?(Ua.__handlers=Ua.__handlers||{},Ua.__handlers[Da]=Ua.__handlers[Da]||{capture:[],bubble:[]},Ua.__handlers[Da][Ha?'capture':'bubble'].push(Ka)):Yn.call(Ua,Da,Ka,ka)}();if('object'==('undefined'==typeof Fa?'undefined':Uo(Fa)))return Fa.v}},removeEventListener:function(Da,La,ka){if(La){var Ua,Fa,Ha;'object'==('undefined'==typeof ka?'undefined':Uo(ka))?(Ua=!!ka.capture,Fa=!!ka.once,Ha=!!ka.passive):(Ua=!!ka,Fa=!1,Ha=!1);var qa;if(La.__eventWrappers)for(var ja=0;ja<La.__eventWrappers.length;ja++)if(La.__eventWrappers[ja].node===this&&La.__eventWrappers[ja].type===Da&&La.__eventWrappers[ja].capture===Ua&&La.__eventWrappers[ja].once===Fa&&La.__eventWrappers[ja].passive===Ha){qa=La.__eventWrappers.splice(ja,1)[0].wrapperFn,La.__eventWrappers.length||(La.__eventWrappers=void 0);break}if(Xn.call(this,Da,qa||La,ka),qa&&ha[Da]&&this.__handlers&&this.__handlers[Da]){var Wa=this.__handlers[Da][Ua?'capture':'bubble'],Ka=Wa.indexOf(qa);-1<Ka&&Wa.splice(Ka,1)}}},appendChild:function(Da){return en(this,Da)},insertBefore:function(Da,La){return en(this,Da,La)},removeChild:function(Da){return tn(this,Da)},replaceChild:function(Da,La){return this.insertBefore(Da,La),this.removeChild(La),Da},cloneNode:function(Da){return on(this,Da)},getRootNode:function(Da){return Us(this,Da)},get isConnected(){return document.documentElement.contains(this)}},xa={get assignedSlot(){return mn(this)}},Ra={querySelector:function(Da){var La=Xs(this,function(ka){return Yr(ka,Da)},function(ka){return!!ka})[0];return La||null},querySelectorAll:function(Da){return Xs(this,function(La){return Yr(La,Da)})}},Ma={assignedNodes:function(Da){if('slot'===this.localName)return Zs(this),this.__shady?(Da&&Da.flatten?this.__shady.distributedNodes:this.__shady.assignedNodes)||[]:[]}},Ia=Vr({setAttribute:function(Da,La){zs(this,Da,La)},removeAttribute:function(Da){Qs(this,Da)},attachShadow:function(Da){return hn(this,Da)},get slot(){return this.getAttribute('slot')},set slot(wa){this.setAttribute('slot',wa)},get assignedSlot(){return mn(this)}},Ra,Ma);Object.defineProperties(Ia,la);var Oa=Vr({},Ra);Object.defineProperties(Oa,{_activeElement:ia.activeElement}),vn.inUse&&(window.ShadyDOM={inUse:vn.inUse,patch:function(Da){return Da},isShadyRoot:$r,enqueue:zr,flush:Qr,settings:vn,filterMutations:function(wa,Da){var La=Da.getRootNode();return wa.map(function(ka){var Ua=La===ka.target.getRootNode();if(Ua&&ka.addedNodes){var Fa=Array.from(ka.addedNodes).filter(function(Ha){return La===Ha.getRootNode()});if(Fa.length)return ka=Object.create(ka),Object.defineProperty(ka,'addedNodes',{value:Fa,configurable:!0}),ka}else if(Ua)return ka}).filter(function(ka){return ka})},observeChildren:function(Da,La){Da.__shady=Da.__shady||{},Da.__shady.observer||(Da.__shady.observer=new xn),Da.__shady.observer.callbacks.add(La);var ka=Da.__shady.observer;return{_callback:La,_observer:ka,_node:Da,takeRecords:function(){return ka.takeRecords()}}},unobserveChildren:function(Da){var La=Da&&Da._observer;La&&(La.callbacks.delete(Da._callback),!La.callbacks.size&&(Da._node.__shady.observer=null))},nativeMethods:Vn,nativeTree:oa},function(){window.Event=ma,window.CustomEvent=ya,window.MouseEvent=fa,cn()}(),function(){yn(window.Node.prototype,Aa),yn(window.Text.prototype,xa),yn(window.DocumentFragment.prototype,Ra),yn(window.Element.prototype,Ia),yn(window.Document.prototype,Oa);var wa=document.importNode;if(document.importNode=function(La,ka){return rn(La,ka,wa)},window.HTMLSlotElement&&yn(window.HTMLSlotElement.prototype,Ma),vn.hasDescriptors){xs(window.Node.prototype),xs(window.Text.prototype),xs(window.DocumentFragment.prototype),xs(window.Element.prototype);var Da=window.customElements&&customElements.nativeHTMLElement||HTMLElement;xs(Da.prototype),xs(window.Document.prototype),window.HTMLSlotElement&&xs(window.HTMLSlotElement.prototype)}}())})();let Ho={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},qo='{',jo='}',Wo={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},Ko='--',Yo=!(window.ShadyDOM&&window.ShadyDOM.inUse),Go=!navigator.userAgent.match('AppleWebKit/601')&&window.CSS&&CSS.supports&&CSS.supports('box-shadow','0 0 0 var(--foo)');window.ShadyCSS?Eo(window.ShadyCSS):window.WebComponents&&Eo(window.WebComponents.flags);let Vo=null,Jo={VAR_ASSIGN:/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:([^;{]*)|{([^}]*)})(?:(?=[;\s}])|$)/gi,MIXIN_MATCH:/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,VAR_CONSUMED:/(--[\w-]+)\s*([:,;)]|$)/gi,ANIMATION_MATCH:/(animation\s*:)|(animation-name\s*:)/,MEDIA_MATCH:/@media[^(]*(\([^)]*\))/,IS_VAR:/^--/,BRACKETED:/\{[^}]*\}/g,HOST_PREFIX:'(?:^|[^.#[:])',HOST_SUFFIX:'($|[.:[\\s>+~])'};const Zo='style-scope';class zo{get SCOPE_NAME(){return Zo}dom($r,Br,Yr){$r.__styleScoped?$r.__styleScoped=null:this._transformDom($r,Br||'',Yr)}_transformDom($r,Br,Yr){$r.nodeType===Node.ELEMENT_NODE&&this.element($r,Br,Yr);let Gr='template'===$r.localName?($r.content||$r._content).childNodes:$r.children||$r.childNodes;if(Gr)for(let Xr=0;Xr<Gr.length;Xr++)this._transformDom(Gr[Xr],Br,Yr)}element($r,Br,Yr){if(Br)if($r.classList)Yr?($r.classList.remove(Zo),$r.classList.remove(Br)):($r.classList.add(Zo),$r.classList.add(Br));else if($r.getAttribute){let Gr=$r.getAttribute('class');if(!Yr){let Xr=(Gr?Gr+' ':'')+Zo+' '+Br;wo($r,Xr)}else if(Gr){let Xr=Gr.replace(Zo,'').replace(Br,'');wo($r,Xr)}}}elementStyles($r,Br,Yr){let Gr=$r.__cssBuild,Xr=Yo||'shady'===Gr?So(Br,Yr):this.css(Br,$r.is,$r.extends,Yr)+'\n\n';return Xr.trim()}css($r,Br,Yr,Gr){let Xr=this._calcHostScope(Br,Yr);Br=this._calcElementScope(Br);let Vr=this;return So($r,function(Jr){Jr.isScoped||(Vr.rule(Jr,Br,Xr),Jr.isScoped=!0),Gr&&Gr(Jr,Br,Xr)})}_calcElementScope($r){return $r?'.'+$r:''}_calcHostScope($r,Br){return Br?'[is='+$r+']':$r}rule($r,Br,Yr){this._transformRule($r,this._transformComplexSelector,Br,Yr)}_transformRule($r,Br,Yr,Gr){$r.selector=$r.transformedSelector=this._transformRuleCss($r,Br,Yr,Gr)}_transformRuleCss($r,Br,Yr,Gr){let Xr=$r.selector.split(tr);if(!To($r))for(let Zr,Vr=0,Jr=Xr.length;Vr<Jr&&(Zr=Xr[Vr]);Vr++)Xr[Vr]=Br.call(this,Zr,Yr,Gr);return Xr.join(tr)}_transformComplexSelector($r,Br,Yr){let Gr=!1;return $r=$r.trim(),$r=$r.replace(Qo,(Xr,Vr,Jr)=>`:${Vr}(${Jr.replace(/\s/g,'')})`),$r=$r.replace(lr,`${sr} $1`),$r=$r.replace(or,(Xr,Vr,Jr)=>{if(!Gr){let Zr=this._transformCompoundSelector(Jr,Vr,Br,Yr);Gr=Gr||Zr.stop,Vr=Zr.combinator,Jr=Zr.value}return Vr+Jr}),$r}_transformCompoundSelector($r,Br,Yr,Gr){let Xr=$r.indexOf(ar);0<=$r.indexOf(sr)?$r=this._transformHostSelector($r,Gr):0!==Xr&&($r=Yr?this._transformSimpleSelector($r,Yr):$r);let Vr=!1;0<=Xr&&(Br='',Vr=!0);let Jr;return Vr&&(Jr=!0,Vr&&($r=$r.replace(dr,(Zr,zr)=>` > ${zr}`))),$r=$r.replace(pr,(Zr,zr,Qr)=>`[dir="${Qr}"] ${zr}, ${zr}[dir="${Qr}"]`),{value:$r,combinator:Br,stop:Jr}}_transformSimpleSelector($r,Br){let Yr=$r.split(_r);return Yr[0]+=Br,Yr.join(_r)}_transformHostSelector($r,Br){let Yr=$r.match(ir),Gr=Yr&&Yr[2].trim()||'';if(Gr){if(!Gr[0].match(rr)){let Xr=Gr.split(rr)[0];return Xr===Br?Gr:'should_not_match'}return $r.replace(ir,function(Xr,Vr,Jr){return Br+Jr})}return $r.replace(sr,Br)}documentRule($r){$r.selector=$r.parsedSelector,this.normalizeRootSelector($r),this._transformRule($r,this._transformDocumentSelector)}normalizeRootSelector($r){$r.selector===':root'&&($r.selector='html')}_transformDocumentSelector($r){return $r.match(ar)?this._transformComplexSelector($r,er):this._transformSimpleSelector($r.trim(),er)}}let Qo=/:(nth[-\w]+)\(([^)]+)\)/,er=`:not(.${Zo})`,tr=',',or=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=\[])+)/g,rr=/[[.:#*]/,sr=':host',ar='::slotted',lr=/^(::slotted)/,ir=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,dr=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,pr=/(.*):dir\((?:(ltr|rtl))\)/,_r=':';var mr=new zo,yr={};const fr=Promise.resolve();class gr{static get($r){return $r.__styleInfo}static set($r,Br){return $r.__styleInfo=Br,Br}static invalidate($r){yr[$r]&&(yr[$r]._applyShimInvalid=!0)}static startValidating($r){const Br=yr[$r];Br._validating||(Br._validating=!0,fr.then(()=>{Br._applyShimInvalid=!1,Br._validating=!1}))}constructor($r,Br,Yr,Gr,Xr,Vr){this.styleRules=$r||null,this.placeholder=Br||null,this.ownStylePropertyNames=Yr||[],this.overrideStyleProperties=null,this.elementName=Gr||'',this.cssBuild=Vr||'',this.typeExtension=Xr||'',this.styleProperties=null,this.scopeSelector=null,this.customStyle=null}}const vr=window.Element.prototype,br=vr.matches||vr.matchesSelector||vr.mozMatchesSelector||vr.msMatchesSelector||vr.oMatchesSelector||vr.webkitMatchesSelector,Nr=navigator.userAgent.match('Trident'),Er='x-scope';class Sr{get XSCOPE_NAME(){return Er}decorateStyles($r){let Br=this,Yr={},Gr=[],Xr=0;Po($r,function(Jr){Br.decorateRule(Jr),Jr.index=Xr++,Br.collectPropertiesInCssText(Jr.propertyInfo.cssText,Yr)},function(Zr){Gr.push(Zr)}),$r._keyframes=Gr;let Vr=[];for(let Jr in Yr)Vr.push(Jr);return Vr}decorateRule($r){if($r.propertyInfo)return $r.propertyInfo;let Br={},Yr={},Gr=this.collectProperties($r,Yr);return Gr&&(Br.properties=Yr,$r.rules=null),Br.cssText=this.collectCssText($r),$r.propertyInfo=Br,Br}collectProperties($r,Br){let Yr=$r.propertyInfo;if(!Yr){let Gr,Xr=Jo.VAR_ASSIGN,Vr=$r.parsedCssText,Jr,Zr;for(;Gr=Xr.exec(Vr);)Jr=(Gr[2]||Gr[3]).trim(),('inherit'!==Jr||'unset'!==Jr)&&(Br[Gr[1].trim()]=Jr),Zr=!0;return Zr}else if(Yr.properties)return Object.assign(Br,Yr.properties),!0}collectCssText($r){return this.collectConsumingCssText($r.parsedCssText)}collectConsumingCssText($r){return $r.replace(Jo.BRACKETED,'').replace(Jo.VAR_ASSIGN,'')}collectPropertiesInCssText($r,Br){for(let Yr,Gr;Yr=Jo.VAR_CONSUMED.exec($r);)Gr=Yr[1],':'!==Yr[2]&&(Br[Gr]=!0)}reify($r){let Br=Object.getOwnPropertyNames($r);for(let Gr,Yr=0;Yr<Br.length;Yr++)Gr=Br[Yr],$r[Gr]=this.valueForProperty($r[Gr],$r)}valueForProperty($r,Br){if($r)if(0<=$r.indexOf(';'))$r=this.valueForProperties($r,Br);else{let Yr=this;$r=Oo($r,function(Xr,Vr,Jr,Zr){if(!Vr)return Xr+Zr;let zr=Yr.valueForProperty(Br[Vr],Br);return zr&&'initial'!==zr?'apply-shim-inherit'===zr&&(zr='inherit'):zr=Yr.valueForProperty(Br[Jr]||Jr,Br)||Jr,Xr+(zr||'')+Zr})}return $r&&$r.trim()||''}valueForProperties($r,Br){let Yr=$r.split(';');for(let Xr,Vr,Gr=0;Gr<Yr.length;Gr++)if(Xr=Yr[Gr]){if(Jo.MIXIN_MATCH.lastIndex=0,Vr=Jo.MIXIN_MATCH.exec(Xr),Vr)Xr=this.valueForProperty(Br[Vr[1]],Br);else{let Jr=Xr.indexOf(':');if(-1!==Jr){let Zr=Xr.substring(Jr);Zr=Zr.trim(),Zr=this.valueForProperty(Zr,Br)||Zr,Xr=Xr.substring(0,Jr)+Zr}}Yr[Gr]=Xr&&Xr.lastIndexOf(';')===Xr.length-1?Xr.slice(0,-1):Xr||''}return Yr.join(';')}applyProperties($r,Br){let Yr='';$r.propertyInfo||this.decorateRule($r),$r.propertyInfo.cssText&&(Yr=this.valueForProperties($r.propertyInfo.cssText,Br)),$r.cssText=Yr}applyKeyframeTransforms($r,Br){let Yr=$r.cssText,Gr=$r.cssText;if(null==$r.hasAnimations&&($r.hasAnimations=Jo.ANIMATION_MATCH.test(Yr)),$r.hasAnimations){let Xr;if(null==$r.keyframeNamesToTransform)for(let Vr in $r.keyframeNamesToTransform=[],Br)Xr=Br[Vr],Gr=Xr(Yr),Yr!==Gr&&(Yr=Gr,$r.keyframeNamesToTransform.push(Vr));else{for(let Vr=0;Vr<$r.keyframeNamesToTransform.length;++Vr)Xr=Br[$r.keyframeNamesToTransform[Vr]],Yr=Xr(Yr);Gr=Yr}}$r.cssText=Gr}propertyDataFromStyles($r,Br){let Yr={},Gr=this,Xr=[];return Po($r,function(Vr){Vr.propertyInfo||Gr.decorateRule(Vr);let Jr=Vr.transformedSelector||Vr.parsedSelector;Br&&Vr.propertyInfo.properties&&Jr&&br.call(Br,Jr)&&(Gr.collectProperties(Vr,Yr),Do(Vr.index,Xr))},null,!0),{properties:Yr,key:Xr}}whenHostOrRootRule($r,Br,Yr,Gr){if(Br.propertyInfo||this.decorateRule(Br),!!Br.propertyInfo.properties){let Xr=$r.is?mr._calcHostScope($r.is,$r.extends):'html',Vr=Br.parsedSelector,Jr=':host > *'===Vr||'html'===Vr,Zr=0===Vr.indexOf(':host')&&!Jr;if('shady'===Yr&&(Jr=Vr===Xr+' > *.'+Xr||-1!==Vr.indexOf('html'),Zr=!Jr&&0===Vr.indexOf(Xr)),'shadow'===Yr&&(Jr=':host > *'===Vr||'html'===Vr,Zr=Zr&&!Jr),Jr||Zr){let zr=Xr;Zr&&(Yo&&!Br.transformedSelector&&(Br.transformedSelector=mr._transformRuleCss(Br,mr._transformComplexSelector,mr._calcElementScope($r.is),Xr)),zr=Br.transformedSelector||Xr),Gr({selector:zr,isHost:Zr,isRoot:Jr})}}}hostAndRootPropertiesForScope($r,Br){let Yr={},Gr={},Xr=this,Vr=Br&&Br.__cssBuild;return Po(Br,function(Jr){Xr.whenHostOrRootRule($r,Jr,Vr,function(Zr){let zr=$r._element||$r;br.call(zr,Zr.selector)&&(Zr.isHost?Xr.collectProperties(Jr,Yr):Xr.collectProperties(Jr,Gr))})},null,!0),{rootProps:Gr,hostProps:Yr}}transformStyles($r,Br,Yr){let Gr=this,Xr=mr._calcHostScope($r.is,$r.extends),Vr=$r.extends?'\\'+Xr.slice(0,-1)+'\\]':Xr,Jr=new RegExp(Jo.HOST_PREFIX+Vr+Jo.HOST_SUFFIX),Zr=gr.get($r).styleRules,zr=this._elementKeyframeTransforms($r,Zr,Yr);return mr.elementStyles($r,Zr,function(Qr){Gr.applyProperties(Qr,Br),Yo||To(Qr)||!Qr.cssText||(Gr.applyKeyframeTransforms(Qr,zr),Gr._scopeSelector(Qr,Jr,Xr,Yr))})}_elementKeyframeTransforms($r,Br,Yr){let Gr=Br._keyframes,Xr={};if(!Yo&&Gr)for(let Vr=0,Jr=Gr[Vr];Vr<Gr.length;Jr=Gr[++Vr])this._scopeKeyframes(Jr,Yr),Xr[Jr.keyframesName]=this._keyframesRuleTransformer(Jr);return Xr}_keyframesRuleTransformer($r){return function(Br){return Br.replace($r.keyframesNameRx,$r.transformedKeyframesName)}}_scopeKeyframes($r,Br){$r.keyframesNameRx=new RegExp($r.keyframesName,'g'),$r.transformedKeyframesName=$r.keyframesName+'-'+Br,$r.transformedSelector=$r.transformedSelector||$r.selector,$r.selector=$r.transformedSelector.replace($r.keyframesName,$r.transformedKeyframesName)}_scopeSelector($r,Br,Yr,Gr){$r.transformedSelector=$r.transformedSelector||$r.selector;let Xr=$r.transformedSelector,Vr='.'+Gr,Jr=Xr.split(',');for(let Qr,Zr=0,zr=Jr.length;Zr<zr&&(Qr=Jr[Zr]);Zr++)Jr[Zr]=Qr.match(Br)?Qr.replace(Yr,Vr):Vr+' '+Qr;$r.selector=Jr.join(',')}applyElementScopeSelector($r,Br,Yr){let Gr=$r.getAttribute('class')||'',Xr=Gr;Yr&&(Xr=Gr.replace(new RegExp('\\s*'+Er+'\\s*'+Yr+'\\s*','g'),' ')),Xr+=(Xr?' ':'')+Er+' '+Br,Gr!==Xr&&wo($r,Xr)}applyElementStyle($r,Br,Yr,Gr){let Xr=Gr?Gr.textContent||'':this.transformStyles($r,Br,Yr),Vr=gr.get($r),Jr=Vr.customStyle;return Jr&&!Yo&&Jr!==Gr&&(Jr._useCount--,0>=Jr._useCount&&Jr.parentNode&&Jr.parentNode.removeChild(Jr)),Yo?Vr.customStyle?(Vr.customStyle.textContent=Xr,Gr=Vr.customStyle):Xr&&(Gr=Ao(Xr,Yr,$r.shadowRoot,Vr.placeholder)):Gr?!Gr.parentNode&&xo(Gr,null,Vr.placeholder):Xr&&(Gr=Ao(Xr,Yr,null,Vr.placeholder)),Gr&&(Gr._useCount=Gr._useCount||0,Vr.customStyle!=Gr&&Gr._useCount++,Vr.customStyle=Gr),Nr&&(Gr.textContent=Gr.textContent),Gr}applyCustomStyle($r,Br){let Yr=Co($r),Gr=this;$r.textContent=So(Yr,function(Xr){let Vr=Xr.cssText=Xr.parsedCssText;Xr.propertyInfo&&Xr.propertyInfo.cssText&&(Vr=vo(Vr),Xr.cssText=Gr.valueForProperties(Vr,Br))})}}var Cr=new Sr;let Tr={};const Pr=window.customElements;if(Pr&&!Yo){const $r=Pr.define;Pr.define=function(Br,Yr,Gr){return Tr[Br]=Mo(Br),$r.call(Pr,Br,Yr,Gr)}}let xr=Jo.MIXIN_MATCH,Rr=Jo.VAR_ASSIGN,Mr=/;\s*/m,Ir=/^\s*(initial)|(inherit)\s*$/,Or='_-_';class wr{constructor(){this._map={}}set($r,Br){$r=$r.trim(),this._map[$r]={properties:Br,dependants:{}}}get($r){return $r=$r.trim(),this._map[$r]}}class Dr{constructor(){this._currentTemplate=null,this._measureElement=null,this._map=new wr,this._separator=Or,this._boundProduceCssProperties=($r,Br,Yr,Gr)=>this._produceCssProperties($r,Br,Yr,Gr)}detectMixin($r){const Br=xr.test($r)||Rr.test($r);return xr.lastIndex=0,Rr.lastIndex=0,Br}transformStyle($r,Br){let Yr=Co($r);return this.transformRules(Yr,Br),Yr}transformRules($r,Br){this._currentTemplate=yr[Br],Po($r,Yr=>{this.transformRule(Yr)}),this._currentTemplate=null}transformRule($r){$r.cssText=this.transformCssText($r.parsedCssText),':root'===$r.selector&&($r.selector=':host > *')}transformCssText($r){return $r=$r.replace(Rr,this._boundProduceCssProperties),this._consumeCssProperties($r)}_getInitialValueForProperty($r){return this._measureElement||(this._measureElement=document.createElement('meta'),this._measureElement.style.all='initial',document.head.appendChild(this._measureElement)),window.getComputedStyle(this._measureElement).getPropertyValue($r)}_consumeCssProperties($r){for(let Br;Br=xr.exec($r);){let Yr=Br[0],Gr=Br[1],Xr=Br.index,Vr=Xr+Yr.indexOf('@apply'),Jr=Xr+Yr.length,Zr=$r.slice(0,Vr),zr=$r.slice(Jr),Qr=this._cssTextToMap(Zr),es=this._atApplyToCssProperties(Gr,Qr);$r=[Zr,es,zr].join(''),xr.lastIndex=Xr+es.length}return $r}_atApplyToCssProperties($r,Br){$r=$r.replace(Mr,'');let Yr=[],Gr=this._map.get($r);if(Gr||(this._map.set($r,{}),Gr=this._map.get($r)),Gr){this._currentTemplate&&(Gr.dependants[this._currentTemplate.name]=this._currentTemplate);let Xr,Vr,Jr;for(Xr in Gr.properties)Jr=Br&&Br[Xr],Vr=[Xr,': var(',$r,Or,Xr],Jr&&Vr.push(',',Jr),Vr.push(')'),Yr.push(Vr.join(''))}return Yr.join('; ')}_replaceInitialOrInherit($r,Br){let Yr=Ir.exec(Br);return Yr&&(Yr[1]?Br=Dr._getInitialValueForProperty($r):Br='apply-shim-inherit'),Br}_cssTextToMap($r){let Br=$r.split(';'),Yr,Gr,Xr={};for(let Jr,Zr,Vr=0;Vr<Br.length;Vr++)Jr=Br[Vr],Jr&&(Zr=Jr.split(':'),1<Zr.length&&(Yr=Zr[0].trim(),Gr=this._replaceInitialOrInherit(Yr,Zr.slice(1).join(':')),Xr[Yr]=Gr));return Xr}_invalidateMixinEntry($r){for(let Br in $r.dependants)this._currentTemplate&&Br===this._currentTemplate.name||gr.invalidate(Br)}_produceCssProperties($r,Br,Yr,Gr){if(Yr&&Oo(Yr,(ns,as)=>{as&&this._map.get(as)&&(Gr='@apply '+as+';')}),!Gr)return $r;let Xr=this._consumeCssProperties(Gr),Vr=$r.slice(0,$r.indexOf('--')),Jr=this._cssTextToMap(Xr),Zr=Jr,zr=this._map.get(Br),Qr=zr&&zr.properties;Qr?Zr=Object.assign(Object.create(Qr),Jr):this._map.set(Br,Zr);let ts,os,es=[],rs=!1;for(ts in Zr)os=Jr[ts],void 0==os&&(os='initial'),Qr&&!(ts in Qr)&&(rs=!0),es.push(Br+Or+ts+': '+os);return rs&&this._invalidateMixinEntry(zr),zr&&(zr.properties=Zr),Yr&&(Vr=$r+';'+Vr),Vr+es.join('; ')+';'}}let Lr=new Dr;window.ApplyShim=Lr;let kr=function(){};if(!Yo){let $r=Vr=>{return Vr.classList&&!Vr.classList.contains(mr.SCOPE_NAME)||Vr instanceof SVGElement&&(!Vr.hasAttribute('class')||0>Vr.getAttribute('class').indexOf(mr.SCOPE_NAME))},Br=Vr=>{for(let Zr,Jr=0;Jr<Vr.length;Jr++)if(Zr=Vr[Jr],Zr.target!==document.documentElement&&Zr.target!==document.head){for(let Qr,zr=0;zr<Zr.addedNodes.length;zr++)if(Qr=Zr.addedNodes[zr],$r(Qr)){let es=Qr.getRootNode();if(es.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let ts=es.host;if(ts){let os=ts.is||ts.localName;mr.dom(Qr,os)}}}for(let Qr,zr=0;zr<Zr.removedNodes.length;zr++)if(Qr=Zr.removedNodes[zr],Qr.nodeType===Node.ELEMENT_NODE){let es;if(Qr.classList?es=Array.from(Qr.classList):Qr.hasAttribute('class')&&(es=Qr.getAttribute('class').split(/\s+/)),void 0!=es){let ts=es.indexOf(mr.SCOPE_NAME);if(0<=ts){let os=es[ts+1];os&&mr.dom(Qr,os,!0)}}}}},Yr=new MutationObserver(Br),Gr=Vr=>{Yr.observe(Vr,{childList:!0,subtree:!0})},Xr=window.customElements&&!window.customElements.flush;if(Xr)Gr(document);else{let Vr=()=>{Gr(document.body)};window.HTMLImports?window.HTMLImports.whenReady(Vr):requestAnimationFrame(function(){if('loading'===document.readyState){let Jr=function(){Vr(),document.removeEventListener('readystatechange',Jr)};document.addEventListener('readystatechange',Jr)}else Vr()})}kr=function(){Br(Yr.takeRecords())}}let Ur=new class{constructor($r=100){this.cache={},this.typeMax=$r}_validate($r,Br,Yr){for(let Xr,Gr=0;Gr<Yr.length;Gr++)if(Xr=Yr[Gr],$r.properties[Xr]!==Br[Xr])return!1;return!0}store($r,Br,Yr,Gr){let Xr=this.cache[$r]||[];Xr.push({properties:Br,styleElement:Yr,scopeSelector:Gr}),Xr.length>this.typeMax&&Xr.shift(),this.cache[$r]=Xr}fetch($r,Br,Yr){let Gr=this.cache[$r];if(Gr)for(let Vr,Xr=Gr.length-1;0<=Xr;Xr--)if(Vr=Gr[Xr],this._validate(Vr,Br,Yr))return Vr}};class Fr{constructor(){this._scopeCounter={},this._documentOwner=document.documentElement,this._documentOwnerStyleInfo=gr.set(document.documentElement,new gr({rules:[]})),this._elementsHaveApplied=!1}get nativeShadow(){return Yo}get nativeCss(){return Go}get nativeCssApply(){return!1}flush(){kr()}_generateScopeSelector($r){let Br=this._scopeCounter[$r]=(this._scopeCounter[$r]||0)+1;return`${$r}-${Br}`}getStyleAst($r){return Co($r)}styleAstToString($r){return So($r)}_gatherStyles($r){let Br=$r.content.querySelectorAll('style'),Yr=[];for(let Xr,Gr=0;Gr<Br.length;Gr++)Xr=Br[Gr],Yr.push(Xr.textContent),Xr.parentNode.removeChild(Xr);return Yr.join('').trim()}_getCssBuild($r){let Br=$r.content.querySelector('style');return Br?Br.getAttribute('css-build')||'':''}prepareTemplate($r,Br,Yr){if(!$r._prepared){$r._prepared=!0,$r.name=Br,$r.extends=Yr,yr[Br]=$r;let Gr=this._getCssBuild($r),Xr=this._gatherStyles($r),Vr={is:Br,extends:Yr,__cssBuild:Gr};this.nativeShadow||mr.dom($r.content,Br);let Jr=Lr.detectMixin(Xr),Zr=co(Xr);Jr&&this.nativeCss&&!this.nativeCssApply&&Lr.transformRules(Zr,Br),$r._styleAst=Zr;let zr=[];if(this.nativeCss||(zr=Cr.decorateStyles($r._styleAst,Vr)),!zr.length||this.nativeCss){let Qr=this.nativeShadow?$r.content:null,es=Tr[Br],ts=this._generateStaticStyle(Vr,$r._styleAst,Qr,es);$r._style=ts}$r._ownPropertyNames=zr}}_generateStaticStyle($r,Br,Yr,Gr){let Xr=mr.elementStyles($r,Br);if(Xr.length)return Ao(Xr,$r.is,Yr,Gr)}_prepareHost($r){let Yr,Br=$r.getAttribute('is')||$r.localName;Br!==$r.localName&&(Yr=$r.localName);let Vr,Jr,Zr,Gr=Tr[Br],Xr=yr[Br];return Xr&&(Vr=Xr._styleAst,Jr=Xr._ownPropertyNames,Zr=Xr._cssBuild),gr.set($r,new gr(Vr,Gr,Jr,Br,Yr,Zr))}applyStyle($r,Br){let Yr=$r.getAttribute('is')||$r.localName,Gr=gr.get($r),Xr=!!Gr;if(Gr||(Gr=this._prepareHost($r)),this._isRootOwner($r)||(this._elementsHaveApplied=!0),window.CustomStyle){let Vr=window.CustomStyle;if(Vr._documentDirty){if(Vr.findStyles(),this.nativeCss?!this.nativeCssApply&&Vr._revalidateApplyShim():this._updateProperties(this._documentOwner,this._documentOwnerStyleInfo),Vr.applyStyles(),!this._elementsHaveApplied)return;if(!this.nativeCss&&(this.updateStyles(),Xr))return}}if(Br&&(Gr.overrideStyleProperties=Gr.overrideStyleProperties||{},Object.assign(Gr.overrideStyleProperties,Br)),this.nativeCss){Gr.overrideStyleProperties&&this._updateNativeProperties($r,Gr.overrideStyleProperties);let Vr=yr[Yr];if(!Vr&&!this._isRootOwner($r))return;if(Vr&&Vr._applyShimInvalid&&Vr._style){if(Vr._validating||(Lr.transformRules(Vr._styleAst,Yr),Vr._style.textContent=mr.elementStyles($r,Gr.styleRules),gr.startValidating(Yr)),this.nativeShadow){let Jr=$r.shadowRoot;if(Jr){let Zr=Jr.querySelector('style');Zr.textContent=mr.elementStyles($r,Gr.styleRules)}}Gr.styleRules=Vr._styleAst}}else this._updateProperties($r,Gr),Gr.ownStylePropertyNames&&Gr.ownStylePropertyNames.length&&this._applyStyleProperties($r,Gr);if(Xr){let Vr=this._isRootOwner($r)?$r:$r.shadowRoot;Vr&&this._applyToDescendants(Vr)}}_applyToDescendants($r){let Br=$r.children;for(let Gr,Yr=0;Yr<Br.length;Yr++)Gr=Br[Yr],Gr.shadowRoot&&this.applyStyle(Gr),this._applyToDescendants(Gr)}_styleOwnerForNode($r){let Br=$r.getRootNode(),Yr=Br.host;return Yr?gr.get(Yr)?Yr:this._styleOwnerForNode(Yr):this._documentOwner}_isRootOwner($r){return $r===this._documentOwner}_applyStyleProperties($r,Br){let Yr=$r.getAttribute('is')||$r.localName,Gr=Ur.fetch(Yr,Br.styleProperties,Br.ownStylePropertyNames),Xr=Gr&&Gr.scopeSelector,Vr=Gr?Gr.styleElement:null,Jr=Br.scopeSelector;Br.scopeSelector=Xr||this._generateScopeSelector(Yr);let Zr=Cr.applyElementStyle($r,Br.styleProperties,Br.scopeSelector,Vr);return this.nativeShadow||Cr.applyElementScopeSelector($r,Br.scopeSelector,Jr),Gr||Ur.store(Yr,Br.styleProperties,Zr,Br.scopeSelector),Zr}_updateProperties($r,Br){let Yr=this._styleOwnerForNode($r),Gr=gr.get(Yr),Xr=Gr.styleProperties,Vr=Object.create(Xr||null),Jr=Cr.hostAndRootPropertiesForScope($r,Br.styleRules),Zr=Cr.propertyDataFromStyles(Gr.styleRules,$r),zr=Zr.properties;Object.assign(Vr,Jr.hostProps,zr,Jr.rootProps),this._mixinOverrideStyles(Vr,Br.overrideStyleProperties),Cr.reify(Vr),Br.styleProperties=Vr}_mixinOverrideStyles($r,Br){for(let Yr in Br){let Gr=Br[Yr];(Gr||0===Gr)&&($r[Yr]=Gr)}}_updateNativeProperties($r,Br){for(let Yr in Br)null===Yr?$r.style.removeProperty(Yr):$r.style.setProperty(Yr,Br[Yr])}updateStyles($r){this.applyStyle(this._documentOwner,$r)}_transformCustomStyleForDocument($r){let Br=Co($r);Po(Br,Yr=>{Yo?mr.normalizeRootSelector(Yr):mr.documentRule(Yr),this.nativeCss&&!this.nativeCssApply&&Lr.transformRule(Yr)}),this.nativeCss?$r.textContent=So(Br):this._documentOwnerStyleInfo.styleRules.rules.push(Br)}_revalidateApplyShim($r){if(this.nativeCss&&!this.nativeCssApply){let Br=Co($r);Lr.transformRules(Br),$r.textContent=So(Br)}}_applyCustomStyleToDocument($r){this.nativeCss||Cr.applyCustomStyle($r,this._documentOwnerStyleInfo.styleProperties)}getComputedStyleValue($r,Br){let Yr;if(!this.nativeCss){let Gr=gr.get($r)||gr.get(this._styleOwnerForNode($r));Yr=Gr.styleProperties[Br]}return Yr=Yr||window.getComputedStyle($r).getPropertyValue(Br),Yr.trim()}setElementClass($r,Br){let Yr=$r.getRootNode(),Gr=Br?Br.split(/\s/):[],Xr=Yr.host&&Yr.host.localName;if(!Xr){var Vr=$r.getAttribute('class');if(Vr){let Jr=Vr.split(/\s/);for(let Zr=0;Zr<Jr.length;Zr++)if(Jr[Zr]===mr.SCOPE_NAME){Xr=Jr[Zr+1];break}}}if(Xr&&Gr.push(mr.SCOPE_NAME,Xr),!this.nativeCss){let Jr=gr.get($r);Jr&&Jr.scopeSelector&&Gr.push(Cr.XSCOPE_NAME,Jr.scopeSelector)}wo($r,Gr.join(' '))}_styleInfoForNode($r){return gr.get($r)}}window.ShadyCSS=new Fr;let Hr=window.ShadyCSS,qr=!1,jr=[],Wr=null;class Kr extends HTMLElement{static get _customStyles(){return jr}static get processHook(){return Wr}static set processHook($r){Wr=$r}static get _documentDirty(){return qr}static findStyles(){for(let Br,$r=0;$r<jr.length;$r++)if(Br=jr[$r],!Br._style){let Yr=Br.querySelector('style');if(!Yr)continue;if(Yr.__appliedElement)for(let Xr,Gr=0;Gr<Yr.attributes.length;Gr++)Xr=Yr.attributes[Gr],Yr.__appliedElement.setAttribute(Xr.name,Xr.value);Br._style=Yr.__appliedElement||Yr,Wr&&Wr(Br._style),Hr._transformCustomStyleForDocument(Br._style)}}static _revalidateApplyShim(){for(let Br,$r=0;$r<jr.length;$r++)Br=jr[$r],Br._style&&Hr._revalidateApplyShim(Br._style)}static applyStyles(){for(let Br,$r=0;$r<jr.length;$r++)Br=jr[$r],Br._style&&Hr._applyCustomStyleToDocument(Br._style);qr=!1}constructor(){super(),jr.push(this),Lo()}}window.CustomStyle=Kr,window.customElements.define('custom-style',Kr),function(){'use strict';HTMLImports.whenReady(function(){requestAnimationFrame(function(){window.dispatchEvent(new CustomEvent('WebComponentsReady'))})})}(window.WebComponents),function(){var Br=document.createElement('style');Br.textContent='body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n';var Yr=document.querySelector('head');Yr.insertBefore(Br,Yr.firstChild)}(window.WebComponents)})();
//# sourceMappingURL=webcomponents-lite.js.map