Files
webcomponentsjs/webcomponents-lite.js
Steven Orvell 9f7b0f67df Update builds!
2017-02-06 11:29:31 -08:00

7 lines
104 KiB
JavaScript

(function(){'use strict';function ee(Wt){return Wt=te(Wt),re(oe(Wt),Wt)}function te(Wt){return Wt.replace(Me.comments,'').replace(Me.port,'')}function oe(Wt){let jt={start:0,end:Wt.length},Bt=jt;for(let Kt=0,Gt=Wt.length;Kt<Gt;Kt++)if(Wt[Kt]===Re){Bt.rules||(Bt.rules=[]);let Xt=Bt,Vt=Xt.rules[Xt.rules.length-1];Bt={start:Kt+1,parent:Xt,previous:Vt},Xt.rules.push(Bt)}else Wt[Kt]===xe&&(Bt.end=Kt+1,Bt=Bt.parent||jt);return jt}function re(Wt,jt){let Bt=jt.substring(Wt.start,Wt.end-1);if(Wt.parsedCssText=Wt.cssText=Bt.trim(),Wt.parent){let Gt=Wt.previous?Wt.previous.end:Wt.parent.start;Bt=jt.substring(Gt,Wt.start-1),Bt=se(Bt),Bt=Bt.replace(Me.multipleSpaces,' '),Bt=Bt.substring(Bt.lastIndexOf(';')+1);let Xt=Wt.parsedSelector=Wt.selector=Bt.trim();Wt.atRule=0===Xt.indexOf('@'),Wt.atRule?0===Xt.indexOf('@media')?Wt.type=Pe.MEDIA_RULE:Xt.match(Me.keyframesRule)&&(Wt.type=Pe.KEYFRAMES_RULE,Wt.keyframesName=Wt.selector.split(Me.multipleSpaces).pop()):0===Xt.indexOf(Ie)?Wt.type=Pe.MIXIN_RULE:Wt.type=Pe.STYLE_RULE}let Kt=Wt.rules;if(Kt)for(let Vt,Gt=0,Xt=Kt.length;Gt<Xt&&(Vt=Kt[Gt]);Gt++)re(Vt,jt);return Wt}function se(Wt){return Wt.replace(/\\([0-9a-f]{1,6})\s/gi,function(){let jt=arguments[1],Bt=6-jt.length;for(;Bt--;)jt='0'+jt;return'\\'+jt})}function ne(Wt,jt,Bt){Bt=Bt||'';let Kt='';if(Wt.cssText||Wt.rules){let Gt=Wt.rules;if(Gt&&!ae(Gt))for(let Yt,Xt=0,Vt=Gt.length;Xt<Vt&&(Yt=Gt[Xt]);Xt++)Kt=ne(Yt,jt,Kt);else Kt=jt?Wt.cssText:le(Wt.cssText),Kt=Kt.trim(),Kt&&(Kt=' '+Kt+'\n')}return Kt&&(Wt.selector&&(Bt+=Wt.selector+' '+Re+'\n'),Bt+=Kt,Wt.selector&&(Bt+=xe+'\n\n')),Bt}function ae(Wt){return 0===Wt[0].selector.indexOf(Ie)}function le(Wt){return Wt=ie(Wt),de(Wt)}function ie(Wt){return Wt.replace(Me.customProp,'').replace(Me.mixinProp,'')}function de(Wt){return Wt.replace(Me.mixinApply,'').replace(Me.varApply,'')}function he(Wt){Wt&&(De=De&&!Wt.shimcssproperties,Le=Le&&!Wt.shimshadow)}function _e(Wt,jt){return'string'==typeof Wt&&(Wt=ee(Wt)),jt&&ye(Wt,jt),ne(Wt,De)}function ue(Wt){return!Wt.__cssRules&&Wt.textContent&&(Wt.__cssRules=ee(Wt.textContent)),Wt.__cssRules}function me(Wt){return Wt.parent&&Wt.parent.type===Pe.KEYFRAMES_RULE}function ye(Wt,jt,Bt,Kt){if(Wt){let Gt=!1;if(Kt&&Wt.type===Pe.MEDIA_RULE){let Vt=Wt.selector.match(Fe.MEDIA_MATCH);Vt&&!window.matchMedia(Vt[1]).matches&&(Gt=!0)}Wt.type===Pe.STYLE_RULE?jt(Wt):Bt&&Wt.type===Pe.KEYFRAMES_RULE?Bt(Wt):Wt.type===Pe.MIXIN_RULE&&(Gt=!0);let Xt=Wt.rules;if(Xt&&!Gt)for(let zt,Vt=0,Yt=Xt.length;Vt<Yt&&(zt=Xt[Vt]);Vt++)ye(zt,jt,Bt,Kt)}}function ge(Wt,jt,Bt,Kt){let Gt=be(Wt,jt);return fe(Gt,Bt,Kt)}function fe(Wt,jt,Bt){jt=jt||document.head;let Kt=Bt&&Bt.nextSibling||jt.firstChild;return He=Wt,jt.insertBefore(Wt,Kt)}function be(Wt,jt){let Bt=document.createElement('style');return jt&&Bt.setAttribute('scope',jt),Bt.textContent=Wt,Bt}function ve(Wt){let jt=document.createComment(' Shady DOM styles for '+Wt+' '),Bt=He?He.nextSibling:null,Kt=document.head;return Kt.insertBefore(jt,Bt||Kt.firstChild),He=jt,jt}function Ne(Wt,jt){let Bt=0;for(let Kt=jt,Gt=Wt.length;Kt<Gt;Kt++)if('('===Wt[Kt])Bt++;else if(')'===Wt[Kt]&&0==--Bt)return Kt;return-1}function Se(Wt,jt){let Bt=Wt.indexOf('var(');if(-1===Bt)return jt(Wt,'','','');let Kt=Ne(Wt,Bt+3),Gt=Wt.substring(Bt+4,Kt),Xt=Wt.substring(0,Bt),Vt=Se(Wt.substring(Kt+1),jt),Yt=Gt.indexOf(',');if(-1===Yt)return jt(Xt,Gt.trim(),'',Vt);let zt=Gt.substring(0,Yt).trim(),Jt=Gt.substring(Yt+1).trim();return jt(Xt,zt,Jt,Vt)}function Ee(Wt,jt){window.ShadyDOM?window.ShadyDOM.nativeMethods.setAttribute.call(Wt,'class',jt):Wt.setAttribute('class',jt)}function Ce(Wt,jt){let Bt=parseInt(Wt/32);jt[Bt]=(jt[Bt]||0)|1<<Wt%32}function Ae(){Ht||(Ht=!0,window.HTMLImports?window.HTMLImports.whenReady(Te):'complete'===document.readyState?Te():document.addEventListener('readystatechange',()=>{'complete'===document.readyState&&Te()}))}function Te(){requestAnimationFrame(()=>{(Ht||kt._elementsHaveApplied)&&kt.updateStyles(),Ht=!1})}(function(){'use strict';var jt=function(){var zt=document.createEvent('Event');return zt.initEvent('foo',!0,!0),zt.preventDefault(),zt.defaultPrevented}();if(!jt){var Bt=Event.prototype.preventDefault;Event.prototype.preventDefault=function(){this.cancelable&&(Bt.call(this),Object.defineProperty(this,'defaultPrevented',{get:function(){return!0},configurable:!0}))}}var Kt=/Trident/.test(navigator.userAgent);if((!window.CustomEvent||Kt&&'function'!=typeof window.CustomEvent)&&(window.CustomEvent=function(zt,Jt){Jt=Jt||{};var $t=document.createEvent('CustomEvent');return $t.initCustomEvent(zt,!!Jt.bubbles,!!Jt.cancelable,Jt.detail),$t},window.CustomEvent.prototype=window.Event.prototype),!window.Event||Kt&&'function'!=typeof window.Event){var Gt=window.Event;if(window.Event=function(zt,Jt){Jt=Jt||{};var $t=document.createEvent('Event');return $t.initEvent(zt,!!Jt.bubbles,!!Jt.cancelable),$t},Gt)for(var Xt in Gt)window.Event[Xt]=Gt[Xt];window.Event.prototype=Gt.prototype}if(!window.MouseEvent||Kt&&'function'!=typeof window.MouseEvent){var Vt=window.MouseEvent;if(window.MouseEvent=function(zt,Jt){Jt=Jt||{};var $t=document.createEvent('MouseEvent');return $t.initMouseEvent(zt,!!Jt.bubbles,!!Jt.cancelable,Jt.view||window,Jt.detail,Jt.screenX,Jt.screenY,Jt.clientX,Jt.clientY,Jt.ctrlKey,Jt.altKey,Jt.shiftKey,Jt.metaKey,Jt.button,Jt.relatedTarget),$t},Vt)for(var Xt in Vt)window.MouseEvent[Xt]=Vt[Xt];window.MouseEvent.prototype=Vt.prototype}if(Array.from||(Array.from=function(zt){return[].slice.call(zt)}),!Object.assign){var Yt=function(zt,Jt){for(var Zt,$t=Object.getOwnPropertyNames(Jt),Qt=0;Qt<$t.length;Qt++)Zt=$t[Qt],zt[Zt]=Jt[Zt]};Object.assign=function(zt){for(var Zt,$t=[].slice.call(arguments,1),Qt=0;Qt<$t.length;Qt++)Zt=$t[Qt],Zt&&Yt(zt,Zt);return zt}}})(window.WebComponents),function(Wt){'use strict';function jt(so){return Qt[so]!==void 0}function Bt(){Yt.call(this),this._isInvalid=!0}function Kt(so){return''==so&&Bt.call(this),so.toLowerCase()}function Gt(so){var no=so.charCodeAt(0);return 32<no&&127>no&&-1==[34,35,60,62,63,96].indexOf(no)?so:encodeURIComponent(so)}function Xt(so){var no=so.charCodeAt(0);return 32<no&&127>no&&-1==[34,35,60,62,96].indexOf(no)?so:encodeURIComponent(so)}function Vt(so,no,ao){function lo(Eo){uo.push(Eo)}var io=no||'scheme start',po=0,co='',ho=!1,_o=!1,uo=[];loop:for(;(so[po-1]!=eo||0==po)&&!this._isInvalid;){var mo=so[po];switch(io){case'scheme start':if(mo&&to.test(mo))co+=mo.toLowerCase(),io='scheme';else if(!no){co='',io='no scheme';continue}else{lo('Invalid scheme.');break loop}break;case'scheme':if(mo&&oo.test(mo))co+=mo.toLowerCase();else if(':'==mo){if(this._scheme=co,co='',no)break loop;jt(this._scheme)&&(this._isRelative=!0),io='file'==this._scheme?'relative':this._isRelative&&ao&&ao._scheme==this._scheme?'relative or authority':this._isRelative?'authority first slash':'scheme data'}else if(!no){co='',po=0,io='no scheme';continue}else if(eo==mo)break loop;else{lo('Code point not allowed in scheme: '+mo);break loop}break;case'scheme data':'?'==mo?(this._query='?',io='query'):'#'==mo?(this._fragment='#',io='fragment'):eo!=mo&&'\t'!=mo&&'\n'!=mo&&'\r'!=mo&&(this._schemeData+=Gt(mo));break;case'no scheme':if(!ao||!jt(ao._scheme))lo('Missing scheme.'),Bt.call(this);else{io='relative';continue}break;case'relative or authority':if('/'==mo&&'/'==so[po+1])io='authority ignore slashes';else{lo('Expected /, got: '+mo),io='relative';continue}break;case'relative':if(this._isRelative=!0,'file'!=this._scheme&&(this._scheme=ao._scheme),eo==mo){this._host=ao._host,this._port=ao._port,this._path=ao._path.slice(),this._query=ao._query,this._username=ao._username,this._password=ao._password;break loop}else if('/'==mo||'\\'==mo)'\\'==mo&&lo('\\ is an invalid code point.'),io='relative slash';else if('?'==mo)this._host=ao._host,this._port=ao._port,this._path=ao._path.slice(),this._query='?',this._username=ao._username,this._password=ao._password,io='query';else if('#'==mo)this._host=ao._host,this._port=ao._port,this._path=ao._path.slice(),this._query=ao._query,this._fragment='#',this._username=ao._username,this._password=ao._password,io='fragment';else{var yo=so[po+1],go=so[po+2];'file'==this._scheme&&to.test(mo)&&(':'==yo||'|'==yo)&&(eo==go||'/'==go||'\\'==go||'?'==go||'#'==go)||(this._host=ao._host,this._port=ao._port,this._username=ao._username,this._password=ao._password,this._path=ao._path.slice(),this._path.pop()),io='relative path';continue}break;case'relative slash':if('/'==mo||'\\'==mo)'\\'==mo&&lo('\\ is an invalid code point.'),io='file'==this._scheme?'file host':'authority ignore slashes';else{'file'!=this._scheme&&(this._host=ao._host,this._port=ao._port,this._username=ao._username,this._password=ao._password),io='relative path';continue}break;case'authority first slash':if('/'==mo)io='authority second slash';else{lo('Expected \'/\', got: '+mo),io='authority ignore slashes';continue}break;case'authority second slash':if(io='authority ignore slashes','/'!=mo){lo('Expected \'/\', got: '+mo);continue}break;case'authority ignore slashes':if('/'!=mo&&'\\'!=mo){io='authority';continue}else lo('Expected authority, got: '+mo);break;case'authority':if('@'==mo){ho&&(lo('@ already seen.'),co+='%40'),ho=!0;for(var bo,fo=0;fo<co.length;fo++){if(bo=co[fo],'\t'==bo||'\n'==bo||'\r'==bo){lo('Invalid whitespace in authority.');continue}if(':'==bo&&null===this._password){this._password='';continue}var vo=Gt(bo);null===this._password?this._username+=vo:this._password+=vo}co=''}else if(eo==mo||'/'==mo||'\\'==mo||'?'==mo||'#'==mo){po-=co.length,co='',io='host';continue}else co+=mo;break;case'file host':if(eo==mo||'/'==mo||'\\'==mo||'?'==mo||'#'==mo){2==co.length&&to.test(co[0])&&(':'==co[1]||'|'==co[1])?io='relative path':0==co.length?io='relative path start':(this._host=Kt.call(this,co),co='',io='relative path start');continue}else'\t'==mo||'\n'==mo||'\r'==mo?lo('Invalid whitespace in file host.'):co+=mo;break;case'host':case'hostname':if(':'==mo&&!_o){if(this._host=Kt.call(this,co),co='',io='port','hostname'==no)break loop;}else if(eo==mo||'/'==mo||'\\'==mo||'?'==mo||'#'==mo){if(this._host=Kt.call(this,co),co='',io='relative path start',no)break loop;continue}else'\t'!=mo&&'\n'!=mo&&'\r'!=mo?('['==mo?_o=!0:']'==mo&&(_o=!1),co+=mo):lo('Invalid code point in host/hostname: '+mo);break;case'port':if(/[0-9]/.test(mo))co+=mo;else if(eo==mo||'/'==mo||'\\'==mo||'?'==mo||'#'==mo||no){if(''!=co){var No=parseInt(co,10);No!=Qt[this._scheme]&&(this._port=No+''),co=''}if(no)break loop;io='relative path start';continue}else'\t'==mo||'\n'==mo||'\r'==mo?lo('Invalid code point in port: '+mo):Bt.call(this);break;case'relative path start':if('\\'==mo&&lo('\'\\\' not allowed in path.'),io='relative path','/'!=mo&&'\\'!=mo)continue;break;case'relative path':if(eo==mo||'/'==mo||'\\'==mo||!no&&('?'==mo||'#'==mo)){'\\'==mo&&lo('\\ not allowed in relative path.');var So;(So=Zt[co.toLowerCase()])&&(co=So),'..'==co?(this._path.pop(),'/'!=mo&&'\\'!=mo&&this._path.push('')):'.'==co&&'/'!=mo&&'\\'!=mo?this._path.push(''):'.'!=co&&('file'==this._scheme&&0==this._path.length&&2==co.length&&to.test(co[0])&&'|'==co[1]&&(co=co[0]+':'),this._path.push(co)),co='','?'==mo?(this._query='?',io='query'):'#'==mo&&(this._fragment='#',io='fragment')}else'\t'!=mo&&'\n'!=mo&&'\r'!=mo&&(co+=Gt(mo));break;case'query':no||'#'!=mo?eo!=mo&&'\t'!=mo&&'\n'!=mo&&'\r'!=mo&&(this._query+=Xt(mo)):(this._fragment='#',io='fragment');break;case'fragment':eo!=mo&&'\t'!=mo&&'\n'!=mo&&'\r'!=mo&&(this._fragment+=mo);}po++}}function Yt(){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 zt(so,no){no===void 0||no instanceof zt||(no=new zt(no+'')),this._url=so,Yt.call(this);var ao=so.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,'');Vt.call(this,ao,null,no)}var Jt=!1;if(!Wt.forceJURL)try{var $t=new URL('b','http://a');$t.pathname='c%20d',Jt='http://a/c%20d'===$t.href}catch(so){}if(!Jt){var Qt=Object.create(null);Qt.ftp=21,Qt.file=0,Qt.gopher=70,Qt.http=80,Qt.https=443,Qt.ws=80,Qt.wss=443;var Zt=Object.create(null);Zt['%2e']='.',Zt['.%2e']='..',Zt['%2e.']='..',Zt['%2e%2e']='..';var eo,to=/[a-zA-Z]/,oo=/[a-zA-Z0-9\+\-\.]/;zt.prototype={toString:function(){return this.href},get href(){if(this._isInvalid)return this._url;var so='';return(''!=this._username||null!=this._password)&&(so=this._username+(null==this._password?'':':'+this._password)+'@'),this.protocol+(this._isRelative?'//'+so+this.host:'')+this.pathname+this._query+this._fragment},set href(so){Yt.call(this),Vt.call(this,so)},get protocol(){return this._scheme+':'},set protocol(so){this._isInvalid||Vt.call(this,so+':','scheme start')},get host(){return this._isInvalid?'':this._port?this._host+':'+this._port:this._host},set host(so){this._isInvalid||!this._isRelative||Vt.call(this,so,'host')},get hostname(){return this._host},set hostname(so){this._isInvalid||!this._isRelative||Vt.call(this,so,'hostname')},get port(){return this._port},set port(so){this._isInvalid||!this._isRelative||Vt.call(this,so,'port')},get pathname(){return this._isInvalid?'':this._isRelative?'/'+this._path.join('/'):this._schemeData},set pathname(so){this._isInvalid||!this._isRelative||(this._path=[],Vt.call(this,so,'relative path start'))},get search(){return this._isInvalid||!this._query||'?'==this._query?'':this._query},set search(so){this._isInvalid||!this._isRelative||(this._query='?','?'==so[0]&&(so=so.slice(1)),Vt.call(this,so,'query'))},get hash(){return this._isInvalid||!this._fragment||'#'==this._fragment?'':this._fragment},set hash(so){this._isInvalid||(this._fragment='#','#'==so[0]&&(so=so.slice(1)),Vt.call(this,so,'fragment'))},get origin(){var so;if(this._isInvalid||!this._scheme)return'';switch(this._scheme){case'data':case'file':case'javascript':case'mailto':return'null';}return so=this.host,so?this._scheme+'://'+so:''}};var ro=Wt.URL;ro&&(zt.createObjectURL=function(){return ro.createObjectURL.apply(ro,arguments)},zt.revokeObjectURL=function(so){ro.revokeObjectURL(so)}),Wt.URL=zt}}(window),function(){var Wt=Node.prototype.cloneNode,jt=Document.prototype.importNode,Bt=Document.prototype.createElement,Kt='undefined'==typeof HTMLTemplateElement,Gt=function(){if(!Kt){var eo=document.createElement('template'),to=document.createElement('template');to.content.appendChild(document.createElement('div')),eo.content.appendChild(to);var oo=eo.cloneNode(!0);return 0===oo.content.childNodes.length||0===oo.content.firstChild.content.childNodes.length}}(),Xt='template',Vt=function(){};if(Kt){function eo(ro){Object.defineProperty(ro,'innerHTML',{get:function(){for(var so='',no=this.content.firstChild;no;no=no.nextSibling)so+=no.outerHTML||oo(no.data);return so},set:function(so){for(Yt.body.innerHTML=so,Vt.bootstrap(Yt);this.content.firstChild;)this.content.removeChild(this.content.firstChild);for(;Yt.body.firstChild;)this.content.appendChild(Yt.body.firstChild)},configurable:!0})}function to(ro){return'&'===ro?'&amp;':'<'===ro?'&lt;':'>'===ro?'&gt;':'\xA0'===ro?'&nbsp;':void 0}function oo(ro){return ro.replace(Zt,to)}var Yt=document.implementation.createHTMLDocument('template'),zt=!0,Jt=document.createElement('style');Jt.textContent=Xt+'{display:none;}';var $t=document.head;$t.insertBefore(Jt,$t.firstElementChild),Vt.prototype=Object.create(HTMLElement.prototype);var Qt=!document.createElement('div').hasOwnProperty('innerHTML');Vt.decorate=function(ro){if(!ro.content){ro.content=Yt.createDocumentFragment();for(var so;so=ro.firstChild;)ro.content.appendChild(so);if(Qt)ro.__proto__=Vt.prototype;else if(ro.cloneNode=function(no){return Vt._cloneNode(this,no)},zt)try{eo(ro)}catch(no){zt=!1}Vt.bootstrap(ro.content)}},eo(Vt.prototype),Vt.bootstrap=function(ro){for(var lo,so=ro.querySelectorAll(Xt),no=0,ao=so.length;no<ao&&(lo=so[no]);no++)Vt.decorate(lo)},document.addEventListener('DOMContentLoaded',function(){Vt.bootstrap(document)}),Document.prototype.createElement=function(){'use strict';var ro=Bt.apply(this,arguments);return'template'===ro.localName&&Vt.decorate(ro),ro};var Zt=/[&\u00A0<>]/g}(Kt||Gt)&&(Vt._cloneNode=function(eo,to){var oo=Wt.call(eo,!1);return this.decorate&&this.decorate(oo),to&&(oo.content.appendChild(Wt.call(eo.content,!0)),this.fixClonedDom(oo.content,eo.content)),oo},Vt.prototype.cloneNode=function(eo){return Vt._cloneNode(this,eo)},Vt.fixClonedDom=function(eo,to){if(to.querySelectorAll)for(var ao,lo,oo=to.querySelectorAll(Xt),ro=eo.querySelectorAll(Xt),so=0,no=ro.length;so<no;so++)lo=oo[so],ao=ro[so],this.decorate&&this.decorate(lo),ao.parentNode.replaceChild(lo.cloneNode(!0),ao)},Node.prototype.cloneNode=function(eo){var to=Wt.call(this,eo);return eo&&Vt.fixClonedDom(to,this),to},Document.prototype.importNode=function(eo,to){if(eo.localName===Xt)return Vt._cloneNode(eo,to);var oo=jt.call(this,eo,to);return to&&Vt.fixClonedDom(oo,eo),oo},Gt&&(HTMLTemplateElement.prototype.cloneNode=function(eo){return Vt._cloneNode(this,eo)})),/Trident/.test(navigator.userAgent)&&function(){var eo=Document.prototype.importNode;Document.prototype.importNode=function(){var to=eo.apply(this,arguments);if(to.nodeType===Node.DOCUMENT_FRAGMENT_NODE){var oo=this.createDocumentFragment();return oo.appendChild(to),oo}return to}}(),Kt&&(window.HTMLTemplateElement=Vt)}(),!function(Wt,jt){'object'==typeof exports&&'undefined'!=typeof module?module.exports=jt():'function'==typeof define&&define.amd?define(jt):Wt.ES6Promise=jt()}(window,function(){'use strict';function Wt(Jo){return'function'==typeof Jo||'object'==typeof Jo&&null!==Jo}function jt(Jo){return'function'==typeof Jo}function Xt(){return'undefined'==typeof Oo?zt():function(){Oo(Jt)}}function zt(){var Jo=setTimeout;return function(){return Jo(Jt,1)}}function Jt(){for(var Jo=0;Jo<wo;Jo+=2){var $o=Wo[Jo],Qo=Wo[Jo+1];$o(Qo),Wo[Jo]=void 0,Wo[Jo+1]=void 0}wo=0}function Qt(Jo,$o){var Qo=arguments,Zo=this,er=new this.constructor(eo);void 0===er[Bo]&&vo(er);var tr=Zo._state;return tr?!function(){var or=Qo[tr-1];Do(function(){return go(tr,er,or,Zo._result)})}():_o(Zo,er,Jo,$o),er}function Zt(Jo){var $o=this;if(Jo&&'object'==typeof Jo&&Jo.constructor===$o)return Jo;var Qo=new $o(eo);return io(Qo,Jo),Qo}function eo(){}function to(){return new TypeError('You cannot resolve a promise with itself')}function oo(){return new TypeError('A promises callback cannot return that same promise.')}function ro(Jo){try{return Jo.then}catch($o){return Vo.error=$o,Vo}}function so(Jo,$o,Qo,Zo){try{Jo.call($o,Qo,Zo)}catch(er){return er}}function no(Jo,$o,Qo){Do(function(Zo){var er=!1,tr=so(Qo,$o,function(or){er||(er=!0,$o===or?co(Zo,or):io(Zo,or))},function(or){er||(er=!0,ho(Zo,or))},'Settle: '+(Zo._label||' unknown promise'));!er&&tr&&(er=!0,ho(Zo,tr))},Jo)}function ao(Jo,$o){$o._state===Go?co(Jo,$o._result):$o._state===Xo?ho(Jo,$o._result):_o($o,void 0,function(Qo){return io(Jo,Qo)},function(Qo){return ho(Jo,Qo)})}function lo(Jo,$o,Qo){$o.constructor===Jo.constructor&&Qo===Qt&&$o.constructor.resolve===Zt?ao(Jo,$o):Qo===Vo?ho(Jo,Vo.error):void 0===Qo?co(Jo,$o):jt(Qo)?no(Jo,$o,Qo):co(Jo,$o)}function io(Jo,$o){Jo===$o?ho(Jo,to()):Wt($o)?lo(Jo,$o,ro($o)):co(Jo,$o)}function po(Jo){Jo._onerror&&Jo._onerror(Jo._result),uo(Jo)}function co(Jo,$o){Jo._state===Ko&&(Jo._result=$o,Jo._state=Go,0!==Jo._subscribers.length&&Do(uo,Jo))}function ho(Jo,$o){Jo._state===Ko&&(Jo._state=Xo,Jo._result=$o,Do(po,Jo))}function _o(Jo,$o,Qo,Zo){var er=Jo._subscribers,tr=er.length;Jo._onerror=null,er[tr]=$o,er[tr+Go]=Qo,er[tr+Xo]=Zo,0===tr&&Jo._state&&Do(uo,Jo)}function uo(Jo){var $o=Jo._subscribers,Qo=Jo._state;if(0!==$o.length){for(var Zo=void 0,er=void 0,tr=Jo._result,or=0;or<$o.length;or+=3)Zo=$o[or],er=$o[or+Qo],Zo?go(Qo,Zo,er,tr):er(tr);Jo._subscribers.length=0}}function mo(){this.error=null}function yo(Jo,$o){try{return Jo($o)}catch(Qo){return Yo.error=Qo,Yo}}function go(Jo,$o,Qo,Zo){var er=jt(Qo),tr,or,rr,sr;if(!er)tr=Zo,rr=!0;else if(tr=yo(Qo,Zo),tr===Yo?(sr=!0,or=tr.error,tr=null):rr=!0,$o===tr)return void ho($o,oo());$o._state!==Ko||(er&&rr?io($o,tr):sr?ho($o,or):Jo===Go?co($o,tr):Jo===Xo&&ho($o,tr))}function fo(Jo,$o){try{$o(function(Qo){io(Jo,Qo)},function(Qo){ho(Jo,Qo)})}catch(Qo){ho(Jo,Qo)}}function bo(){return zo++}function vo(Jo){Jo[Bo]=zo++,Jo._state=void 0,Jo._result=void 0,Jo._subscribers=[]}function No(Jo,$o){this._instanceConstructor=Jo,this.promise=new Jo(eo),this.promise[Bo]||vo(this.promise),Io($o)?(this._input=$o,this.length=$o.length,this._remaining=$o.length,this._result=Array(this.length),0===this.length?co(this.promise,this._result):(this.length=this.length||0,this._enumerate(),0===this._remaining&&co(this.promise,this._result))):ho(this.promise,So())}function So(){return new Error('Array Methods must be provided an Array')}function To(){throw new TypeError('You must pass a resolver function as the first argument to the promise constructor')}function Po(){throw new TypeError('Failed to construct \'Promise\': Please use the \'new\' operator, this object constructor cannot be called as a function.')}function Ro(Jo){this[Bo]=bo(),this._result=this._state=void 0,this._subscribers=[],eo!==Jo&&('function'!=typeof Jo&&To(),this instanceof Ro?fo(this,Jo):Po())}var Mo=Array.isArray?Array.isArray:function(Jo){return'[object Array]'===Object.prototype.toString.call(Jo)};var Io=Mo,wo=0,Oo=void 0,Lo=void 0,Do=function(Jo,$o){Wo[wo]=Jo,Wo[wo+1]=$o,wo+=2,2==wo&&(Lo?Lo(Jt):jo())},ko='undefined'==typeof window?void 0:window,Ho=ko||{},Fo=Ho.MutationObserver||Ho.WebKitMutationObserver,Uo='undefined'==typeof self&&'undefined'!=typeof process&&'[object process]'==={}.toString.call(process),qo='undefined'!=typeof Uint8ClampedArray&&'undefined'!=typeof importScripts&&'undefined'!=typeof MessageChannel,Wo=Array(1e3),jo;jo=Uo?function(){return function(){return process.nextTick(Jt)}}():Fo?function(){var Jo=0,$o=new Fo(Jt),Qo=document.createTextNode('');return $o.observe(Qo,{characterData:!0}),function(){Qo.data=Jo=++Jo%2}}():qo?function(){var Jo=new MessageChannel;return Jo.port1.onmessage=Jt,function(){return Jo.port2.postMessage(0)}}():void 0===ko&&'function'==typeof require?function(){try{var Jo=require,$o=Jo('vertx');return Oo=$o.runOnLoop||$o.runOnContext,Xt()}catch(Qo){return zt()}}():zt();var Bo=Math.random().toString(36).substring(16),Ko,Go=1,Xo=2,Vo=new mo,Yo=new mo,zo=0;return No.prototype._enumerate=function(){for(var Jo=this.length,$o=this._input,Qo=0;this._state===Ko&&Qo<Jo;Qo++)this._eachEntry($o[Qo],Qo)},No.prototype._eachEntry=function(Jo,$o){var Qo=this._instanceConstructor,Zo=Qo.resolve;if(Zo===Zt){var er=ro(Jo);if(er===Qt&&Jo._state!==Ko)this._settledAt(Jo._state,$o,Jo._result);else if('function'!=typeof er)this._remaining--,this._result[$o]=Jo;else if(Qo===Ro){var tr=new Qo(eo);lo(tr,Jo,er),this._willSettleAt(tr,$o)}else this._willSettleAt(new Qo(function(or){return or(Jo)}),$o)}else this._willSettleAt(Zo(Jo),$o)},No.prototype._settledAt=function(Jo,$o,Qo){var Zo=this.promise;Zo._state===Ko&&(this._remaining--,Jo===Xo?ho(Zo,Qo):this._result[$o]=Qo),0===this._remaining&&co(Zo,this._result)},No.prototype._willSettleAt=function(Jo,$o){var Qo=this;_o(Jo,void 0,function(Zo){return Qo._settledAt(Go,$o,Zo)},function(Zo){return Qo._settledAt(Xo,$o,Zo)})},Ro.all=function(Jo){return new No(this,Jo).promise},Ro.race=function(Jo){var $o=this;return new $o(Io(Jo)?function(Qo,Zo){for(var er=Jo.length,tr=0;tr<er;tr++)$o.resolve(Jo[tr]).then(Qo,Zo)}:function(Qo,Zo){return Zo(new TypeError('You must pass an array to race.'))})},Ro.resolve=Zt,Ro.reject=function(Jo){var $o=this,Qo=new $o(eo);return ho(Qo,Jo),Qo},Ro._setScheduler=function(Jo){Lo=Jo},Ro._setAsap=function(Jo){Do=Jo},Ro._asap=Do,Ro.prototype={constructor:Ro,then:Qt,'catch':function(Jo){return this.then(null,Jo)}},Ro.polyfill=function(){var Jo;if('undefined'!=typeof global)Jo=global;else if('undefined'!=typeof self)Jo=self;else try{Jo=Function('return this')()}catch(Zo){throw new Error('polyfill failed because global object is unavailable in this environment')}var $o=Jo.Promise;if($o){var Qo=null;try{Qo=Object.prototype.toString.call($o.resolve())}catch(Zo){}if('[object Promise]'===Qo&&!$o.cast)return}Jo.Promise=Ro},Ro.Promise=Ro,Ro}),ES6Promise.polyfill(),(Wt=>{const jt=!!('import'in document.createElement('link'));let Bt=null;!1=='currentScript'in document&&Object.defineProperty(document,'currentScript',{get(){return Bt||('complete'===document.readyState?null:document.scripts[document.scripts.length-1])},configurable:!0});const Kt=/(^\/)|(^#)|(^[\w-\d]*:)/,Gt=/(url\()([^)]*)(\))/g,Xt=/(@import[\s]+(?!url\())([^;]*)(;)/g,Vt=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,Yt={fixUrls(mo,yo){mo.href&&mo.setAttribute('href',Yt.replaceAttrUrl(mo.getAttribute('href'),yo)),mo.src&&mo.setAttribute('src',Yt.replaceAttrUrl(mo.getAttribute('src'),yo)),'style'===mo.localName&&Yt.resolveUrlsInStyle(mo,yo)},fixUrlAttributes(mo,yo){const go=['action','src','href','url','style'];for(let bo,fo=0;fo<go.length&&(bo=go[fo]);fo++){const vo=mo.attributes[bo],No=vo&&vo.value;No&&0>No.search(/({{|\[\[)/)&&(vo.value='style'===bo?Yt.resolveUrlsInCssText(No,yo):Yt.replaceAttrUrl(No,yo))}},fixUrlsInTemplates(mo,yo){const go=mo.querySelectorAll('template');for(let fo=0;fo<go.length;fo++)Yt.fixUrlsInTemplate(go[fo],yo)},fixUrlsInTemplate(mo,yo){const go=mo.content;if(go){const fo=go.querySelectorAll('style, form[action], [src], [href], [url], [style]');for(let bo=0;bo<fo.length;bo++){const vo=fo[bo];'style'==vo.localName?Yt.resolveUrlsInStyle(vo,yo):Yt.fixUrlAttributes(vo,yo)}Yt.fixUrlsInTemplates(go,yo)}},resolveUrlsInStyle(mo,yo){mo.textContent=Yt.resolveUrlsInCssText(mo.textContent,yo)},resolveUrlsInCssText(mo,yo){let go=Yt.replaceUrls(mo,yo,Gt);return go=Yt.replaceUrls(go,yo,Xt),go},replaceUrls(mo,yo,go){return mo.replace(go,(fo,bo,vo,No)=>{let So=vo.replace(/["']/g,'');return yo&&(So=Yt.resolveUrl(So,yo)),bo+'\''+So+'\''+No})},replaceAttrUrl(mo,yo){return mo&&Kt.test(mo)?mo:Yt.resolveUrl(mo,yo)},resolveUrl(mo,yo){if(void 0===Yt.__workingURL){Yt.__workingURL=!1;try{const fo=new URL('b','http://a');fo.pathname='c%20d',Yt.__workingURL='http://a/c%20d'===fo.href}catch(fo){}}if(Yt.__workingURL)return new URL(mo,yo).href;let go=Yt.__tempDoc;return go||(go=document.implementation.createHTMLDocument('temp'),Yt.__tempDoc=go,go.__base=go.createElement('base'),go.head.appendChild(go.__base),go.__anchor=go.createElement('a')),go.__base.href=yo,go.__anchor.href=mo,go.__anchor.href||mo}},zt={async:!0,load(mo){return new Promise((yo,go)=>{if(!mo)go({resource:'error: href must be specified'});else if(mo.match(/^data:/)){const fo=mo.split(','),bo=fo[0];let vo=fo[1];vo=-1<bo.indexOf(';base64')?atob(vo):decodeURIComponent(vo),yo({resource:vo})}else{const fo=new XMLHttpRequest;fo.open('GET',mo,zt.async),fo.addEventListener('readystatechange',()=>{if(4===fo.readyState){let bo;try{const No=fo.getResponseHeader('Location');No&&(bo='/'===No.substr(0,1)?location.origin+No:No)}catch(No){console.error(No.message)}const vo={resource:fo.response||fo.responseText,redirectedUrl:bo};304===fo.status||0===fo.status||200<=fo.status&&300>fo.status?yo(vo):go(vo)}}),fo.send()}})}},Jt=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent),$t='link[rel=import]',Qt='import-disable',Zt=`link[rel=stylesheet][href][type=${Qt}]`,eo=`${$t}, ${Zt},
style:not([type]), link[rel=stylesheet][href]:not([type]),
script:not([type]), script[type="application/javascript"],
script[type="text/javascript"]`,to='import-dependency',oo=`${$t}:not(${to})`,ro=`script[${to}]`,so=`style[${to}],
link[rel=stylesheet][${to}]`,no=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector;const lo=mo=>{return mo.nodeType===Node.ELEMENT_NODE&&no.call(mo,$t)},io=mo=>{return mo.__loadPromise||(mo.__loadPromise=new Promise(yo=>{'script'!==mo.localName||mo.src?Jt&&'style'===mo.localName?mo.addEventListener('load',yo):(mo.addEventListener('load',yo),mo.addEventListener('error',yo)):yo()}).then(()=>{return mo.__loaded=!0,mo})),mo.__loadPromise},po=mo=>{co(()=>ho(()=>mo&&mo()))},co=mo=>{if('loading'!==document.readyState)mo();else{const yo=()=>{'loading'!==document.readyState&&(document.removeEventListener('readystatechange',yo),mo())};document.addEventListener('readystatechange',yo)}},ho=mo=>{let yo=document.querySelectorAll(oo);const go=[];for(let vo,fo=0,bo=yo.length;fo<bo&&(vo=yo[fo]);fo++)vo.__loaded||go.push(io(vo));go.length?Promise.all(go).then(mo):mo()},_o=mo=>{if(jt)return mo.ownerDocument;let yo=mo.__ownerImport;if(!yo){for(yo=mo;(yo=yo.parentNode||yo.host)&&!lo(yo););mo.__ownerImport=yo}return yo};let uo;if(window.customElements?uo=window.customElements.polyfillFlushCallback:window.customElements={},window.customElements.polyfillFlushCallback=uo?mo=>po(()=>uo(mo)):po,jt){const mo=document.querySelectorAll($t);for(let bo,go=0,fo=mo.length;go<fo&&(bo=mo[go]);go++)bo.import&&'loading'===bo.import.readyState||(bo.__loaded=!0);const yo=go=>{const fo=go.target;lo(fo)&&(fo.__loaded=!0)};document.addEventListener('load',yo,!0),document.addEventListener('error',yo,!0)}else new class{constructor(){this.documents={},this.inflight=0,co(()=>{new MutationObserver(mo=>this.handleMutations(mo)).observe(document.head,{childList:!0,subtree:!0}),this.load()})}load(mo){const yo=mo?this.whenImportLoaded(mo):this.whenImportsLoaded(document);yo&&(this.inflight++,yo.then(()=>{0==--this.inflight&&this.onLoadedAll()}))}whenImportsLoaded(mo){const yo=mo.querySelectorAll($t),go=[];for(let fo=0,bo=yo.length;fo<bo;fo++){const vo=this.whenImportLoaded(yo[fo]);vo&&go.push(vo)}return go.length?Promise.all(go).then(()=>mo):null}whenImportLoaded(mo){const yo=mo.href;return void 0===this.documents[yo]?(this.documents[yo]='pending',zt.load(yo).then(go=>{const fo=this.makeDocument(go.resource,go.redirectedUrl||yo);return this.documents[yo]=fo,this.whenImportsLoaded(fo)},()=>this.documents[yo]=null).then(()=>mo)):null}makeDocument(mo,yo){if(!mo)return document.createDocumentFragment();Jt&&(mo=mo.replace(Vt,(Eo,Co,Ao)=>{return-1===Eo.indexOf('type=')?`${Co} type=${Qt} ${Ao}`:Eo}));let go;const fo=document.createElement('template');if(fo.innerHTML=mo,fo.content)go=fo.content;else for(go=document.createDocumentFragment();fo.firstElementChild;)go.appendChild(fo.firstElementChild);const bo=go.querySelector('base');bo&&(yo=Yt.replaceAttrUrl(bo.getAttribute('href'),yo),bo.removeAttribute('href'));const vo=go.querySelectorAll('dom-module');for(let Co,Eo=0;Eo<vo.length&&(Co=vo[Eo]);Eo++)Co.setAttribute('assetpath',Yt.replaceAttrUrl(Co.getAttribute('assetpath')||'',yo));const No=go.querySelectorAll(eo);let So=0;for(let Ao,Eo=0,Co=No.length;Eo<Co&&(Ao=No[Eo]);Eo++)if(io(Ao),Yt.fixUrls(Ao,yo),Ao.setAttribute(to,''),'script'===Ao.localName&&!Ao.src&&Ao.textContent){const To=So?`-${So}`:'',Po=Ao.textContent+`\n//# sourceURL=${yo}${To}.js\n`;Ao.setAttribute('src','data:text/javascript;charset=utf-8,'+encodeURIComponent(Po)),Ao.textContent='',So++}return Yt.fixUrlsInTemplates(go,yo),go}onLoadedAll(){this.flatten(document),Promise.all([this.waitForStyles(),this.runScripts()]).then(()=>this.fireEvents())}flatten(mo){const yo=mo.querySelectorAll($t);for(let bo,go=0,fo=yo.length;go<fo&&(bo=yo[go]);go++){const vo=this.documents[bo.href];bo.import=vo,vo&&vo.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(this.documents[bo.href]=bo,bo.readyState='loading',bo.import=bo,this.flatten(vo),bo.appendChild(vo))}}runScripts(){const mo=document.querySelectorAll(ro);let yo=Promise.resolve();for(let bo,go=0,fo=mo.length;go<fo&&(bo=mo[go]);go++)yo=yo.then(()=>{const vo=document.createElement('script');bo.removeAttribute(to);for(let No=0,So=bo.attributes.length;No<So;No++)vo.setAttribute(bo.attributes[No].name,bo.attributes[No].value);return Bt=vo,bo.parentNode.replaceChild(vo,bo),io(vo).then(()=>Bt=null)});return yo}waitForStyles(){const mo=!!document.querySelector(Zt),yo=document.querySelectorAll(so),go=[];for(let vo,fo=0,bo=yo.length;fo<bo&&(vo=yo[fo]);fo++)if(go.push(io(vo).then(()=>vo.removeAttribute(to))),mo&&vo.parentNode!==document.head){let No=_o(vo);for(;No&&_o(No);)No=_o(No);const So=vo.parentNode,Eo=vo.nextSibling,Co=document.createElement(vo.localName);Co.__appliedElement=vo,Co.setAttribute('type','import-placeholder'),No.parentNode===document.head?document.head.insertBefore(vo,No):document.head.appendChild(vo),So.insertBefore(Co,Eo),vo.removeAttribute('type')}return Promise.all(go)}fireEvents(){const mo=document.querySelectorAll($t);for(let go,yo=mo.length-1;0<=yo&&(go=mo[yo]);yo--)this.fireEventIfNeeded(go)}fireEventIfNeeded(mo){if(!mo.__loaded){mo.__loaded=!0,mo.import&&(mo.import.readyState='complete');const yo=mo.import?'load':'error';mo.dispatchEvent(new CustomEvent(yo,{bubbles:!1,cancelable:!1,detail:void 0}))}}handleMutations(mo){for(let yo=0;yo<mo.length;yo++){const go=mo[yo];if(go.addedNodes)for(let fo=0;fo<go.addedNodes.length;fo++){const bo=go.addedNodes[fo];if(bo&&bo.nodeType===Node.ELEMENT_NODE){const vo=lo(bo)?[bo]:bo.querySelectorAll($t);for(let No=0;No<vo.length;No++){const So=vo[No],Eo=this.documents[So.href];void 0===Eo?this.load(So):!this.inflight&&(So.import=Eo,this.fireEventIfNeeded(So))}}}}}};po(()=>document.dispatchEvent(new CustomEvent('HTMLImportsLoaded',{cancelable:!0,bubbles:!0,detail:void 0}))),Wt.useNative=jt,Wt.whenReady=po,Wt.importForElement=_o})(window.HTMLImports=window.HTMLImports||{}),function(){'use strict';window.WebComponents=window.WebComponents||{flags:{}};var jt=document.querySelector('script[src*="'+'webcomponents-lite.js'+'"]'),Bt={};if(!Bt.noOpts){if(location.search.slice(1).split('&').forEach(function(Jt){var Qt,$t=Jt.split('=');$t[0]&&(Qt=$t[0].match(/wc-(.+)/))&&(Bt[Qt[1]]=$t[1]||!0)}),jt)for(var Gt,Kt=0;Gt=jt.attributes[Kt];Kt++)'src'!==Gt.name&&(Bt[Gt.name]=Gt.value||!0);if(Bt.log&&Bt.log.split){var Xt=Bt.log.split(',');Bt.log={},Xt.forEach(function(Jt){Bt.log[Jt]=!0})}else Bt.log={}}WebComponents.flags=Bt;var Vt=window.WebComponents,Yt=Vt.flags.shadydom;Yt&&(window.ShadyDOM=window.ShadyDOM||{},ShadyDOM.force=Yt);var zt=Vt.flags.register||Vt.flags.ce;zt&&window.customElements&&(customElements.forcePolyfill=zt)}(),function(){'use strict';function Wt(Ks,Gs,Xs){return{index:Ks,removed:Gs,addedCount:Xs}}function jt(Ks){return'ShadyRoot'===Ks.__localName}function Gt(Ks,Gs,Xs){(Gs=Object.getOwnPropertyDescriptor(Gs,Ks))&&Object.defineProperty(Xs,Ks,Gs)}function Xt(Ks,Gs){if(Ks&&Gs)for(var Ys,Xs=Object.getOwnPropertyNames(Gs),Vs=0;Vs<Xs.length&&(Ys=Xs[Vs]);Vs++)Gt(Ys,Gs,Ks);return Ks||Gs}function $t(){for(kr=!1,Hr++;Dr.length;)Dr.shift()();Lr&&Lr.flush&&Lr.flush();var Ks=Hr>100;if(Dr.length&&!Ks&&$t(),Hr=0,Ks)throw Error('Loop detected in ShadyDOM distribution, aborting.')}function Qt(Ks,Gs){return Ks.__shady&&Ks.__shady[Gs]}function eo(Ks){return'&'===Ks?'&amp;':'<'===Ks?'&lt;':'>'===Ks?'&gt;':'"'===Ks?'&quot;':'\xA0'===Ks?'&nbsp;':void 0}function to(Ks){return Ks.replace(Wr,eo)}function oo(Ks){return Ks.replace(jr,eo)}function ro(Ks){for(var Gs={},Xs=0;Xs<Ks.length;Xs++)Gs[Ks[Xs]]=!0;return Gs}function so(Ks,Gs,Xs){switch(Ks.nodeType){case Node.ELEMENT_NODE:Gs=Ks.localName;for(var Js,Vs='<'+Gs,Ys=Ks.attributes,zs=0;Js=Ys[zs];zs++)Vs+=' '+Js.name+'="'+to(Js.value)+'"';return Vs+='>',Br[Gs]?Vs:Vs+no(Ks,Xs)+'</'+Gs+'>';case Node.TEXT_NODE:return Ks=Ks.data,Gs&&Kr[Gs.localName]?Ks:oo(Ks);case Node.COMMENT_NODE:return'<!--'+Ks.data+'-->';default:throw window.console.error(Ks),Error('not implemented');}}function no(Ks,Gs){'template'===Ks.localName&&(Ks=Ks.content);for(var Js,Xs='',Vs=Gs?Gs(Ks):Ks.childNodes,Ys=0,zs=Vs.length;Ys<zs&&(Js=Vs[Ys]);Ys++)Xs+=so(Js,Ks,Gs);return Xs}function ho(Ks){var Gs=[];for(Xr.currentNode=Ks,Ks=Xr.firstChild();Ks;)Gs.push(Ks),Ks=Xr.nextSibling();return Gs}function No(Ks){return{get:function(){var Gs=Ur.getProperty(this,Ks);return void 0===Gs?Gr[Ks](this):Gs},configurable:!0}}function So(Ks){for(;Ks.firstChild;)Ks.removeChild(Ks.firstChild)}function Eo(){return Qr&&Qr.get?Qr.get.call(document):Ar.settings.hasDescriptors?void 0:document.activeElement}function Co(Ks){var Gs=Eo();if(!Gs)return null;var Xs=!!Ar.isShadyRoot(Ks);if(!(Ks===document||Xs&&Ks.host!==Gs&&Ks.host.contains(Gs)))return null;for(Xs=Ar.ownerShadyRootForNode(Gs);Xs&&Xs!==Ks;)Gs=Xs.host,Xs=Ar.ownerShadyRootForNode(Gs);return Ks===document?Xs?null:Gs:Xs===Ks?Gs:null}function Ao(Ks,Gs,Xs){for(var Vs in Gs){var Ys=Object.getOwnPropertyDescriptor(Ks,Vs);Ys&&Ys.configurable||!Ys&&Xs?Object.defineProperty(Ks,Vs,Gs[Vs]):Xs&&console.warn('Could not define',Vs,'on',Ks)}}function xo(Ks,Gs,Xs){Yr.patchOutsideElementAccessors(Ks),Xs=Xs||null,Ks.__shady=Ks.__shady||{},Gs.__shady=Gs.__shady||{},Xs&&(Xs.__shady=Xs.__shady||{}),Ks.__shady.previousSibling=Xs?Xs.__shady.previousSibling:Gs.lastChild;var Vs=Ks.__shady.previousSibling;Vs&&Vs.__shady&&(Vs.__shady.nextSibling=Ks),(Vs=Ks.__shady.nextSibling=Xs)&&Vs.__shady&&(Vs.__shady.previousSibling=Ks),Ks.__shady.parentNode=Gs,Xs?Xs===Gs.__shady.firstChild&&(Gs.__shady.firstChild=Ks):(Gs.__shady.lastChild=Ks,Gs.__shady.firstChild||(Gs.__shady.firstChild=Ks)),Gs.__shady.childNodes=null}function Oo(Ks,Gs,Xs){var Ys,Vs=Ar.ownerShadyRootForNode(Ks);return Vs&&(Gs.__noInsertionPoint&&!Vs._changePending&&(Vs._skipUpdateInsertionPoints=!0),Ys=qo(Gs,Ks,Vs))&&(Vs._skipUpdateInsertionPoints=!1),Ur.hasProperty(Ks,'firstChild')&&as.recordInsertBefore(Gs,Ks,Xs),Uo(Gs,Ks,Vs,Ys)||Ks.shadyRoot}function Lo(Ks){var Xs,Gs=Ur.hasProperty(Ks,'parentNode')&&Ur.getProperty(Ks,'parentNode'),Vs=Ar.ownerShadyRootForNode(Ks);if(Gs||Vs){Xs=Xo(Ks),Gs&&as.recordRemoveChild(Ks,Gs);var Ys=Vs&&jo(Vs,Ks),Gs=Gs&&Vs&&Gs.localName===Vs.getInsertionPointTag();(Ys||Gs)&&(Vs._skipUpdateInsertionPoints=!1,Vo(Vs))}return Ko(Ks),Xs}function Do(Ks,Gs,Xs){(Ks=Ks.__shady&&Ks.__shady.observer)&&(Gs&&Ks.addedNodes.push(Gs),Xs&&Ks.removedNodes.push(Xs),Ks.schedule())}function ko(Ks,Gs){return Gs?(Do(Gs,null,Ks),Lo(Ks)):void(Ks.parentNode&&ds.removeChild.call(Ks.parentNode,Ks),Ko(Ks))}function Ho(Ks){return void 0!==Ks.__ownerShadyRoot}function Fo(Ks){if(Ks&&Ks.nodeType){var Gs=Ks.__ownerShadyRoot;return void 0===Gs&&(Gs=Ar.isShadyRoot(Ks)?Ks:(Gs=Ks.parentNode)?Fo(Gs):Ks,document.documentElement.contains(Ks)&&(Ks.__ownerShadyRoot=Gs)),Gs}}function Uo(Ks,Gs,Xs,Vs){var Ys=Xs&&Xs.getInsertionPointTag()||'',zs=Ks.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&!Ks.__noInsertionPoint&&Ys&&Ks.querySelector(Ys),Js=zs&&zs.parentNode.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;return((Ks=zs||Ks.localName===Ys)||Gs.localName===Ys||Vs)&&Xs&&Vo(Xs),(Xs=Wo(Gs))&&Vo(Gs.shadyRoot),Xs||Ks&&!Js}function qo(Ks,Gs,Xs){var Vs,Ys=Xs.getInsertionPointTag();if(Ks.nodeType!==Node.DOCUMENT_FRAGMENT_NODE||Ks.__noInsertionPoint)Ks.localName===Ys&&(as.recordChildNodes(Gs),as.recordChildNodes(Ks),Vs=!0);else for(var Js,$s,Ys=Ks.querySelectorAll(Ys),zs=0;zs<Ys.length&&(Js=Ys[zs]);zs++)$s=Js.parentNode,$s===Ks&&($s=Gs),$s=qo(Js,$s,Xs),Vs=Vs||$s;return Vs}function Wo(Ks){return Ks&&Ks.shadyRoot&&Ks.shadyRoot.hasInsertionPoint()}function jo(Ks,Gs){var Xs;Ks=Ks._insertionPoints;for(var Ys,Vs=0;Vs<Ks.length;Vs++)if(Ys=Ks[Vs],Bo(Gs,Ys))for(var Ys=Ys.assignedNodes({flatten:!0}),zs=0;zs<Ys.length;zs++){Xs=!0;var Js=Ys[zs],$s=Gr.parentNode(Js);$s&&ds.removeChild.call($s,Js)}return Xs}function Bo(Ks,Gs){for(;Gs;){if(Gs==Ks)return!0;Gs=Gs.parentNode}}function Ko(Ks){if(Ho(Ks))for(var Ys,Gs=Ks.childNodes,Xs=0,Vs=Gs.length;Xs<Vs&&(Ys=Gs[Xs]);Xs++)Ko(Ys);Ks.__ownerShadyRoot=void 0}function Go(Ks){for(var zs,Gs=Ks.assignedNodes({flatten:!0}),Xs=Fo(Ks),Vs=0,Ys=Gs.length;Vs<Ys&&(zs=Gs[Vs]);Vs++)if(Xs.isFinalDestination(Ks,zs))return zs}function Xo(Ks){if(Ks=Ks.parentNode,Wo(Ks))return Vo(Ks.shadyRoot),!0}function Vo(Ks){Ks._changePending=!0,Ks.update()}function Yo(Ks,Gs){'slot'===Gs?Xo(Ks):'slot'===Ks.localName&&'name'==Gs&&(Ks=Ar.ownerShadyRootForNode(Ks))&&Ks.update()}function Jo(Ks,Gs,Xs,Vs){for(var Js,Ys=0,zs=Ks.length;Ys<zs&&(Js=Ks[Ys]);Ys++)if(Js.nodeType===Node.ELEMENT_NODE&&$o(Js,Gs,Xs,Vs))return!0}function $o(Ks,Gs,Xs,Vs){var Ys=Gs(Ks);return Ys&&Vs.push(Ks),Xs&&Xs(Ys)?Ys:void Jo(Ks.childNodes,Gs,Xs,Vs)}function sr(Ks,Gs){if(Ks.ownerDocument!==document)return ds.importNode.call(document,Ks,Gs);var Xs=ds.importNode.call(document,Ks,!1);if(Gs){Ks=Ks.childNodes,Gs=0;for(var Vs;Gs<Ks.length;Gs++)Vs=sr(Ks[Gs],!0),Xs.appendChild(Vs)}return Xs}function nr(Ks,Gs){var Xs=[],Vs=Ks;for(Ks=Ks===window?window:Ks.getRootNode();Vs;)Xs.push(Vs),Vs=Vs.assignedSlot?Vs.assignedSlot:Vs.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&Vs.host&&(Gs||Vs!==Ks)?Vs.host:Vs.parentNode;return Xs[Xs.length-1]===document&&Xs.push(window),Xs}function ar(Ks,Gs){if(!Ar.isShadyRoot)return Ks;Ks=nr(Ks,!0);for(var Vs,Ys,zs,Js,Xs=0;Xs<Gs.length;Xs++)if(Vs=Gs[Xs],zs=Vs===window?window:Vs.getRootNode(),zs!==Ys&&(Js=Ks.indexOf(zs),Ys=zs),!Ar.isShadyRoot(zs)||-1<Js)return Vs}function lr(Ks){var Gs=function(Xs,Vs){return Xs=new Ks(Xs,Vs),Xs.__composed=Vs&&!!Vs.composed,Xs};return Ar.mixin(Gs,Ks),Gs.prototype=Ks.prototype,Gs}function ir(Ks,Gs,Xs){if(Xs=Gs.__handlers&&Gs.__handlers[Ks.type]&&Gs.__handlers[Ks.type][Xs])for(var Ys,Vs=0;(Ys=Xs[Vs])&&(Ys.call(Gs,Ks),!Ks.__immediatePropagationStopped);Vs++);}function dr(Ks){var Xs,Gs=Ks.composedPath();Object.defineProperty(Ks,'currentTarget',{get:function(){return Xs},configurable:!0});for(var Vs=Gs.length-1;0<=Vs;Vs--)if(Xs=Gs[Vs],ir(Ks,Xs,'capture'),Ks.__propagationStopped)return;Object.defineProperty(Ks,'eventPhase',{value:Event.AT_TARGET});for(var Ys,Vs=0;Vs<Gs.length&&!((Xs=Gs[Vs],0===Vs||Xs.shadowRoot&&Xs.shadowRoot===Ys)&&(ir(Ks,Xs,'bubble'),Xs!==window&&(Ys=Xs.getRootNode()),Ks.__propagationStopped));Vs++);}function hr(){for(var Ks in Os)window.addEventListener(Ks,function(Gs){Gs.__target||(_r(Gs),dr(Gs),Gs.stopImmediatePropagation())},!0)}function _r(Ks){Ks.__target=Ks.target,Ks.__relatedTarget=Ks.relatedTarget,Ar.settings.hasDescriptors?Ar.patchPrototype(Ks,ws):Ar.extend(Ks,ws)}function mr(Ks){return xs.renderRootNode(Ks),Ur.getProperty(Ks,'assignedSlot')||null}function yr(Ks,Gs){for(var Xs=Object.getOwnPropertyNames(Gs),Vs=0;Vs<Xs.length;Vs++){var Ys=Xs[Vs],zs=Object.getOwnPropertyDescriptor(Gs,Ys);zs.value?Ks[Ys]=zs.value:Object.defineProperty(Ks,Ys,zs)}}var fr={},br=0,vr=1,Nr=2,Sr=3,Er={calcEditDistances:function(Ks,Gs,Xs,Vs,Ys,zs){zs=zs-Ys+1,Xs=Xs-Gs+1;for(var Js=Array(zs),$s=0;$s<zs;$s++)Js[$s]=Array(Xs),Js[$s][0]=$s;for($s=0;$s<Xs;$s++)Js[0][$s]=$s;for($s=1;$s<zs;$s++)for(var Qs=1;Qs<Xs;Qs++)if(this.equals(Ks[Gs+Qs-1],Vs[Ys+$s-1]))Js[$s][Qs]=Js[$s-1][Qs-1];else{var Zs=Js[$s-1][Qs]+1,en=Js[$s][Qs-1]+1;Js[$s][Qs]=Zs<en?Zs:en}return Js},spliceOperationsFromEditDistances:function(Ks){for(var Gs=Ks.length-1,Xs=Ks[0].length-1,Vs=Ks[Gs][Xs],Ys=[];0<Gs||0<Xs;)if(0==Gs)Ys.push(Nr),Xs--;else if(0==Xs)Ys.push(Sr),Gs--;else{var Qs,zs=Ks[Gs-1][Xs-1],Js=Ks[Gs-1][Xs],$s=Ks[Gs][Xs-1];Qs=Js<$s?Js<zs?Js:zs:$s<zs?$s:zs,Qs==zs?(zs==Vs?Ys.push(br):(Ys.push(vr),Vs=zs),Gs--,Xs--):Qs==Js?(Ys.push(Sr),Gs--,Vs=Js):(Ys.push(Nr),Xs--,Vs=$s)}return Ys.reverse(),Ys},calcSplices:function(Ks,Gs,Xs,Vs,Ys,zs){var Js=0,$s=0,Qs=Math.min(Xs-Gs,zs-Ys);if(0==Gs&&0==Ys&&(Js=this.sharedPrefix(Ks,Vs,Qs)),Xs==Ks.length&&zs==Vs.length&&($s=this.sharedSuffix(Ks,Vs,Qs-Js)),Gs+=Js,Ys+=Js,Xs-=$s,zs-=$s,0==Xs-Gs&&0==zs-Ys)return[];if(Gs==Xs){for(Ks=Wt(Gs,[],0);Ys<zs;)Ks.removed.push(Vs[Ys++]);return[Ks]}if(Ys==zs)return[Wt(Gs,[],Xs-Gs)];for(zs=this.spliceOperationsFromEditDistances(this.calcEditDistances(Ks,Gs,Xs,Vs,Ys,zs)),Ks=void 0,Xs=[],Js=0;Js<zs.length;Js++)switch(zs[Js]){case br:Ks&&(Xs.push(Ks),Ks=void 0),Gs++,Ys++;break;case vr:Ks||(Ks=Wt(Gs,[],0)),Ks.addedCount++,Gs++,Ks.removed.push(Vs[Ys]),Ys++;break;case Nr:Ks||(Ks=Wt(Gs,[],0)),Ks.addedCount++,Gs++;break;case Sr:Ks||(Ks=Wt(Gs,[],0)),Ks.removed.push(Vs[Ys]),Ys++;}return Ks&&Xs.push(Ks),Xs},sharedPrefix:function(Ks,Gs,Xs){for(var Vs=0;Vs<Xs;Vs++)if(!this.equals(Ks[Vs],Gs[Vs]))return Vs;return Xs},sharedSuffix:function(Ks,Gs,Xs){for(var Vs=Ks.length,Ys=Gs.length,zs=0;zs<Xs&&this.equals(Ks[--Vs],Gs[--Ys]);)zs++;return zs},calculateSplices:function(Ks,Gs){return this.calcSplices(Ks,0,Ks.length,Gs,0,Gs.length)},equals:function(Ks,Gs){return Ks===Gs}};fr.calculateSplices=function(Ks,Gs){return Er.calculateSplices(Ks,Gs)};var Ar={},Tr=window.ShadyDOM||{};Tr.hasNativeShadowDOM=Element.prototype.attachShadow&&Node.prototype.getRootNode;var Pr=Object.getOwnPropertyDescriptor(Node.prototype,'firstChild');Tr.hasDescriptors=!!(Pr&&Pr.configurable&&Pr.get),Tr.inUse=Tr.force||!Tr.hasNativeShadowDOM;var Rr=Element.prototype,xr=Rr.matches||Rr.matchesSelector||Rr.mozMatchesSelector||Rr.msMatchesSelector||Rr.oMatchesSelector||Rr.webkitMatchesSelector,Mr;if(window.Promise)Mr=Promise.resolve();else{var Ir=document.createTextNode(''),wr=0;Mr={then:function(Ks){var Gs=new MutationObserver(function(){Gs.disconnect(),Ks()});Gs.observe(Ir,{characterData:!0}),Ir.textContent=wr++}}}Ar.settings=Tr,Ar.isShadyRoot=jt,Ar.ownerShadyRootForNode=function(Ks){if(Ks=Ks.getRootNode(),jt(Ks))return Ks},Ar.matchesSelector=function(Ks,Gs){return xr.call(Ks,Gs)},Ar.extend=Xt,Ar.extendAll=function(Ks){for(var Xs=[],Vs=1;Vs<arguments.length;++Vs)Xs[Vs-1]=arguments[Vs];for(Vs=0;Vs<Xs.length;Vs++)Xt(Ks,Xs[Vs]);return Ks},Ar.mixin=function(Ks,Gs){for(var Xs in Gs)Ks[Xs]=Gs[Xs];return Ks},Ar.patchPrototype=function(Ks,Gs){var Xs=Object.getPrototypeOf(Ks);if(!Xs.hasOwnProperty('__patchProto')){var Vs=Object.create(Xs);Vs.__sourceProto=Xs,Xt(Vs,Gs),Xs.__patchProto=Vs}Ks.__proto__=Xs.__patchProto},Ar.promish=Mr;var kr,Or={},Lr=window.customElements,Dr=[],Hr=0;$t.list=Dr,Or.enqueue=function(Ks){kr||(kr=!0,Ar.promish.then($t)),Dr.push(Ks)},Or.flush=$t;var Ur={};Ur.getProperty=Qt,Ur.hasProperty=function(Ks,Gs){return void 0!==Qt(Ks,Gs)};var qr={},Wr=/[&\u00A0"]/g,jr=/[&\u00A0<>]/g,Br=ro('area base br col command embed hr img input keygen link meta param source track wbr'.split(' ')),Kr=ro('style script xmp iframe noembed noframes plaintext noscript'.split(' '));qr.getOuterHTML=so,qr.getInnerHTML=no;var Gr={},Xr=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),Vr=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);Gr.parentNode=function(Ks){return Xr.currentNode=Ks,Xr.parentNode()},Gr.firstChild=function(Ks){return Xr.currentNode=Ks,Xr.firstChild()},Gr.lastChild=function(Ks){return Xr.currentNode=Ks,Xr.lastChild()},Gr.previousSibling=function(Ks){return Xr.currentNode=Ks,Xr.previousSibling()},Gr.nextSibling=function(Ks){return Xr.currentNode=Ks,Xr.nextSibling()},Gr.childNodes=ho,Gr.parentElement=function(Ks){return Vr.currentNode=Ks,Vr.parentNode()},Gr.firstElementChild=function(Ks){return Vr.currentNode=Ks,Vr.firstChild()},Gr.lastElementChild=function(Ks){return Vr.currentNode=Ks,Vr.lastChild()},Gr.previousElementSibling=function(Ks){return Vr.currentNode=Ks,Vr.previousSibling()},Gr.nextElementSibling=function(Ks){return Vr.currentNode=Ks,Vr.nextSibling()},Gr.children=function(Ks){var Gs=[];for(Vr.currentNode=Ks,Ks=Vr.firstChild();Ks;)Gs.push(Ks),Ks=Vr.nextSibling();return Gs},Gr.innerHTML=function(Ks){return qr.getInnerHTML(Ks,function(Gs){return ho(Gs)})},Gr.textContent=function(Ks){if(Ks.nodeType!==Node.ELEMENT_NODE)return Ks.nodeValue;Ks=document.createTreeWalker(Ks,NodeFilter.SHOW_TEXT,null,!1);for(var Xs,Gs='';Xs=Ks.nextNode();)Gs+=Xs.nodeValue;return Gs};var Yr={},zr=Object.getOwnPropertyDescriptor(Element.prototype,'innerHTML')||Object.getOwnPropertyDescriptor(HTMLElement.prototype,'innerHTML'),Jr=document.implementation.createHTMLDocument('inert'),$r=Jr.createElement('div'),Qr=Object.getOwnPropertyDescriptor(Document.prototype,'activeElement'),Zr={parentElement:No('parentElement'),parentNode:No('parentNode'),nextSibling:No('nextSibling'),previousSibling:No('previousSibling'),className:{get:function(){return this.getAttribute('class')},set:function(Ks){this.setAttribute('class',Ks)},configurable:!0},nextElementSibling:{get:function(){if(Ur.hasProperty(this,'nextSibling')){for(var Ks=this.nextSibling;Ks&&Ks.nodeType!==Node.ELEMENT_NODE;)Ks=Ks.nextSibling;return Ks}return Gr.nextElementSibling(this)},configurable:!0},previousElementSibling:{get:function(){if(Ur.hasProperty(this,'previousSibling')){for(var Ks=this.previousSibling;Ks&&Ks.nodeType!==Node.ELEMENT_NODE;)Ks=Ks.previousSibling;return Ks}return Gr.previousElementSibling(this)},configurable:!0}},es={childNodes:{get:function(){if(Ur.hasProperty(this,'firstChild')){if(!this.__shady.childNodes){this.__shady.childNodes=[];for(var Ks=this.firstChild;Ks;Ks=Ks.nextSibling)this.__shady.childNodes.push(Ks)}return this.__shady.childNodes}return Gr.childNodes(this)},configurable:!0},firstChild:No('firstChild'),lastChild:No('lastChild'),textContent:{get:function(){if(Ur.hasProperty(this,'firstChild')){for(var Vs,Ks=[],Gs=0,Xs=this.childNodes;Vs=Xs[Gs];Gs++)Vs.nodeType!==Node.COMMENT_NODE&&Ks.push(Vs.textContent);return Ks.join('')}return Gr.textContent(this)},set:function(Ks){this.nodeType===Node.ELEMENT_NODE?(So(this),Ks&&this.appendChild(document.createTextNode(Ks))):this.nodeValue=Ks},configurable:!0},firstElementChild:{get:function(){if(Ur.hasProperty(this,'firstChild')){for(var Ks=this.firstChild;Ks&&Ks.nodeType!==Node.ELEMENT_NODE;)Ks=Ks.nextSibling;return Ks}return Gr.firstElementChild(this)},configurable:!0},lastElementChild:{get:function(){if(Ur.hasProperty(this,'lastChild')){for(var Ks=this.lastChild;Ks&&Ks.nodeType!==Node.ELEMENT_NODE;)Ks=Ks.previousSibling;return Ks}return Gr.lastElementChild(this)},configurable:!0},children:{get:function(){return Ur.hasProperty(this,'firstChild')?Array.prototype.filter.call(this.childNodes,function(Ks){return Ks.nodeType===Node.ELEMENT_NODE}):Gr.children(this)},configurable:!0},innerHTML:{get:function(){var Ks='template'===this.localName?this.content:this;return Ur.hasProperty(this,'firstChild')?qr.getInnerHTML(Ks):Gr.innerHTML(Ks)},set:function(Ks){var Gs='template'===this.localName?this.content:this;for(So(Gs),zr&&zr.set?zr.set.call($r,Ks):$r.innerHTML=Ks;$r.firstChild;)Gs.appendChild($r.firstChild)},configurable:!0}},ts={shadowRoot:{get:function(){return this.shadyRoot},set:function(Ks){this.shadyRoot=Ks},configurable:!0}},os={activeElement:{get:function(){return Co(this)},set:function(){},configurable:!0}},rs=Ar.settings.hasDescriptors?function(){}:function(Ks){Ks.__shady&&Ks.__shady.__outsideAccessors||(Ks.__shady=Ks.__shady||{},Ks.__shady.__outsideAccessors=!0,Ao(Ks,Zr,!0))},ns=Ar.settings.hasDescriptors?function(){}:function(Ks){Ks.__shady&&Ks.__shady.__insideAccessors||(Ks.__shady=Ks.__shady||{},Ks.__shady.__insideAccessors=!0,Ao(Ks,es,!0),Ao(Ks,ts,!0))};Yr.ShadowRootAccessor=ts,Yr.ActiveElementAccessor=os,Yr.patchAccessors=function(Ks){Ao(Ks,Zr),Ao(Ks,es),Ao(Ks,os)},Yr.patchShadowRootAccessors=function(Ks){Ao(Ks,es,!0),Ao(Ks,os,!0)},Yr.patchOutsideElementAccessors=rs,Yr.patchInsideElementAccessors=ns;var as={};as.recordInsertBefore=function(Ks,Gs,Xs){if(Yr.patchInsideElementAccessors(Gs),Gs.__shady=Gs.__shady||{},Ur.hasProperty(Gs,'firstChild')&&(Gs.__shady.childNodes=null),Ks.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(var Vs=Ks.childNodes,Ys=0;Ys<Vs.length;Ys++)xo(Vs[Ys],Gs,Xs);Ks.__shady=Ks.__shady||{},Gs=Ur.hasProperty(Ks,'firstChild')?null:void 0,Ks.__shady.firstChild=Ks.__shady.lastChild=Gs,Ks.__shady.childNodes=Gs}else xo(Ks,Gs,Xs)},as.recordRemoveChild=function(Ks,Gs){Ks.__shady=Ks.__shady||{},Gs.__shady=Gs.__shady||{},Ks===Gs.__shady.firstChild&&(Gs.__shady.firstChild=Ks.__shady.nextSibling),Ks===Gs.__shady.lastChild&&(Gs.__shady.lastChild=Ks.__shady.previousSibling);var Xs=Ks.__shady.previousSibling,Vs=Ks.__shady.nextSibling;Xs&&(Xs.__shady=Xs.__shady||{},Xs.__shady.nextSibling=Vs),Vs&&(Vs.__shady=Vs.__shady||{},Vs.__shady.previousSibling=Xs),Ks.__shady.parentNode=Ks.__shady.previousSibling=Ks.__shady.nextSibling=void 0,Ur.hasProperty(Gs,'childNodes')&&(Gs.__shady.childNodes=null)},as.recordChildNodes=function(Ks){if(!Ur.hasProperty(Ks,'firstChild')){Ks.__shady=Ks.__shady||{},Ks.__shady.firstChild=Gr.firstChild(Ks),Ks.__shady.lastChild=Gr.lastChild(Ks),Yr.patchInsideElementAccessors(Ks);for(var Vs,Gs=Ks.__shady.childNodes=Gr.childNodes(Ks),Xs=0;Xs<Gs.length&&(Vs=Gs[Xs]);Xs++)Vs.__shady=Vs.__shady||{},Vs.__shady.parentNode=Ks,Vs.__shady.nextSibling=Gs[Xs+1]||null,Vs.__shady.previousSibling=Gs[Xs-1]||null,Yr.patchOutsideElementAccessors(Vs)}};var ds={},ps=Element.prototype.appendChild,cs=Element.prototype.insertBefore,hs=Element.prototype.removeChild,_s=Element.prototype.setAttribute,us=Element.prototype.removeAttribute,ms=Element.prototype.cloneNode,ys=Document.prototype.importNode,gs=Element.prototype.addEventListener,fs=Element.prototype.removeEventListener;ds.appendChild=ps,ds.insertBefore=cs,ds.removeChild=hs,ds.setAttribute=_s,ds.removeAttribute=us,ds.cloneNode=ms,ds.importNode=ys,ds.addEventListener=gs,ds.removeEventListener=fs;var bs={},vs='function'==typeof Event?Event:function(Ks,Gs){Gs=Gs||{};var Xs=document.createEvent('Event');return Xs.initEvent(Ks,!!Gs.bubbles,!!Gs.cancelable),Xs},Ns=function(Ks){this.root=Ks,this.insertionPointTag='slot'};Ns.prototype.getInsertionPoints=function(){return this.root.querySelectorAll(this.insertionPointTag)},Ns.prototype.hasInsertionPoint=function(){return this.root._insertionPoints&&this.root._insertionPoints.length},Ns.prototype.isInsertionPoint=function(Ks){return Ks.localName&&Ks.localName==this.insertionPointTag},Ns.prototype.distribute=function(){return this.hasInsertionPoint()?this.distributePool(this.root,this.collectPool()):[]},Ns.prototype.collectPool=function(){for(var Ks=[],Gs=0,Xs=this.root.host.firstChild;Xs;Xs=Xs.nextSibling)Ks[Gs++]=Xs;return Ks},Ns.prototype.distributePool=function(Ks,Gs){Ks=[];for(var zs,Xs=this.root._insertionPoints,Vs=0,Ys=Xs.length;Vs<Ys&&(zs=Xs[Vs]);Vs++){this.distributeInsertionPoint(zs,Gs);var Js=zs.parentNode;Js&&Js.shadyRoot&&this.hasInsertionPoint(Js.shadyRoot)&&Ks.push(Js.shadyRoot)}for(Xs=0;Xs<Gs.length;Xs++)(zs=Gs[Xs])&&(zs.__shady=zs.__shady||{},zs.__shady.assignedSlot=void 0,(Vs=Gr.parentNode(zs))&&ds.removeChild.call(Vs,zs));return Ks},Ns.prototype.distributeInsertionPoint=function(Ks,Gs){var Xs=Ks.__shady.assignedNodes;Xs&&this.clearAssignedSlots(Ks,!0),Ks.__shady.assignedNodes=[];for(var $s,Vs=!1,Ys=!1,zs=0,Js=Gs.length;zs<Js;zs++)($s=Gs[zs])&&this.matchesInsertionPoint($s,Ks)&&($s.__shady._prevAssignedSlot!=Ks&&(Vs=!0),this.distributeNodeInto($s,Ks),Gs[zs]=void 0,Ys=!0);if(!Ys)for(Gs=Ks.childNodes,Ys=0;Ys<Gs.length;Ys++)$s=Gs[Ys],$s.__shady._prevAssignedSlot!=Ks&&(Vs=!0),this.distributeNodeInto($s,Ks);if(Xs){for($s=0;$s<Xs.length;$s++)Xs[$s].__shady._prevAssignedSlot=null;Ks.__shady.assignedNodes.length<Xs.length&&(Vs=!0)}this.setDistributedNodesOnInsertionPoint(Ks),Vs&&this._fireSlotChange(Ks)},Ns.prototype.clearAssignedSlots=function(Ks,Gs){var Xs=Ks.__shady.assignedNodes;if(Xs)for(var Ys,Vs=0;Vs<Xs.length;Vs++)Ys=Xs[Vs],Gs&&(Ys.__shady._prevAssignedSlot=Ys.__shady.assignedSlot),Ys.__shady.assignedSlot===Ks&&(Ys.__shady.assignedSlot=null)},Ns.prototype.matchesInsertionPoint=function(Ks,Gs){return Gs=(Gs=Gs.getAttribute('name'))?Gs.trim():'',Ks=(Ks=Ks.getAttribute&&Ks.getAttribute('slot'))?Ks.trim():'',Ks==Gs},Ns.prototype.distributeNodeInto=function(Ks,Gs){Gs.__shady.assignedNodes.push(Ks),Ks.__shady.assignedSlot=Gs},Ns.prototype.setDistributedNodesOnInsertionPoint=function(Ks){var Gs=Ks.__shady.assignedNodes;Ks.__shady.distributedNodes=[];for(var Vs,Xs=0;Xs<Gs.length&&(Vs=Gs[Xs]);Xs++)if(this.isInsertionPoint(Vs)){var Ys=Vs.__shady.distributedNodes;if(Ys)for(var zs=0;zs<Ys.length;zs++)Ks.__shady.distributedNodes.push(Ys[zs])}else Ks.__shady.distributedNodes.push(Gs[Xs])},Ns.prototype._fireSlotChange=function(Ks){Ks.dispatchEvent(new vs('slotchange')),Ks.__shady.assignedSlot&&this._fireSlotChange(Ks.__shady.assignedSlot)},Ns.prototype.isFinalDestination=function(Ks){return!Ks.__shady.assignedSlot},bs.default=Ns;var Ss={},Es={},Cs=function(Ks,Gs){if(Ks!==Es)throw new TypeError('Illegal constructor');return Ks=document.createDocumentFragment(),Ks.__proto__=Cs.prototype,Ks._init(Gs),Ks};Cs.prototype=Object.create(DocumentFragment.prototype),Ar.extendAll(Cs.prototype,{_init:function(Ks){this.__localName='ShadyRoot',as.recordChildNodes(Ks),as.recordChildNodes(this),Ks.shadowRoot=this,this.host=Ks,this._changePending=this._hasRendered=this._renderPending=!1,this._distributor=new bs.default(this),this.update()},update:function(){var Ks=this;this._renderPending||(this._renderPending=!0,Or.enqueue(function(){return Ks.render()}))},_getRenderRoot:function(){for(var Ks=this,Gs=this;Gs;)Gs._renderPending&&(Ks=Gs),Gs=Gs._rendererForHost();return Ks},_rendererForHost:function(){var Ks=this.host.getRootNode();if(Ar.isShadyRoot(Ks))for(var Vs,Gs=this.host.childNodes,Xs=0;Xs<Gs.length;Xs++)if(Vs=Gs[Xs],this._distributor.isInsertionPoint(Vs))return Ks},render:function(){this._renderPending&&this._getRenderRoot()._render()},_render:function(){this._changePending=this._renderPending=!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 Ks=this._distributor.distribute(),Gs=0;Gs<Ks.length;Gs++)Ks[Gs]._render()},updateInsertionPoints:function(){var Ks=this.__insertionPoints;if(Ks)for(var Xs,Gs=0;Gs<Ks.length;Gs++)Xs=Ks[Gs],Xs.getRootNode()!==this&&this._distributor.clearAssignedSlots(Xs);for(Ks=this._insertionPoints=this._distributor.getInsertionPoints(),Gs=0;Gs<Ks.length;Gs++)Xs=Ks[Gs],Xs.__shady=Xs.__shady||{},as.recordChildNodes(Xs),as.recordChildNodes(Xs.parentNode)},get _insertionPoints(){return this.__insertionPoints||this.updateInsertionPoints(),this.__insertionPoints||(this.__insertionPoints=[])},set _insertionPoints(Ks){this.__insertionPoints=Ks},hasInsertionPoint:function(){return this._distributor.hasInsertionPoint()},compose:function(){this._composeTree()},_composeTree:function(){this._updateChildNodes(this.host,this._composeNode(this.host));for(var Vs,Ys,Ks=this._insertionPoints||[],Gs=0,Xs=Ks.length;Gs<Xs&&(Vs=Ks[Gs]);Gs++)Ys=Vs.parentNode,Ys!==this.host&&Ys!==this&&this._updateChildNodes(Ys,this._composeNode(Ys))},_composeNode:function(Ks){var Gs=[];Ks=(Ks.shadyRoot||Ks).childNodes;for(var Vs,Xs=0;Xs<Ks.length;Xs++)if(Vs=Ks[Xs],this._distributor.isInsertionPoint(Vs))for(var Js,Ys=Vs.__shady.distributedNodes||(Vs.__shady.distributedNodes=[]),zs=0;zs<Ys.length;zs++)Js=Ys[zs],this.isFinalDestination(Vs,Js)&&Gs.push(Js);else Gs.push(Vs);return Gs},isFinalDestination:function(Ks,Gs){return this._distributor.isFinalDestination(Ks,Gs)},_updateChildNodes:function(Ks,Gs){for(var Js,Xs=Gr.childNodes(Ks),Vs=fr.calculateSplices(Gs,Xs),Ys=0,zs=0;Ys<Vs.length&&(Js=Vs[Ys]);Ys++){for(var Qs,$s=0;$s<Js.removed.length&&(Qs=Js.removed[$s]);$s++)Gr.parentNode(Qs)===Ks&&ds.removeChild.call(Ks,Qs),Xs.splice(Js.index+zs,1);zs-=Js.addedCount}for(Ys=0;Ys<Vs.length&&(Js=Vs[Ys]);Ys++)for(zs=Xs[Js.index],$s=Js.index;$s<Js.index+Js.addedCount;$s++)Qs=Gs[$s],ds.insertBefore.call(Ks,Qs,zs),Xs.splice($s,0,Qs)},getInsertionPointTag:function(){return this._distributor.insertionPointTag}}),Yr.patchShadowRootAccessors(Cs.prototype),Ss.ShadyRoot=Cs,Ss.attachShadow=function(Ks,Gs){if(!Ks)throw'Must provide a host.';if(!Gs)throw'Not enough arguments.';return new Cs(Es,Ks)};var As={},Ts=function(){this._scheduled=!1,this.addedNodes=[],this.removedNodes=[],this.callbacks=new Set};Ts.prototype.schedule=function(){var Ks=this;this._scheduled||(this._scheduled=!0,Ar.promish.then(function(){Ks.flush()}))},Ts.prototype.flush=function(){if(this._scheduled){this._scheduled=!1;var Ks=this.takeRecords();Ks.length&&this.callbacks.forEach(function(Gs){Gs(Ks)})}},Ts.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var Ks=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],Ks}return[]};As.observeChildren=function(Ks,Gs){Ks.__shady=Ks.__shady||{},Ks.__shady.observer||(Ks.__shady.observer=new Ts),Ks.__shady.observer.callbacks.add(Gs);var Xs=Ks.__shady.observer;return{_callback:Gs,_observer:Xs,_node:Ks,takeRecords:function(){return Xs.takeRecords()}}},As.unobserveChildren=function(Ks){var Gs=Ks&&Ks._observer;Gs&&(Gs.callbacks.delete(Ks._callback),Gs.callbacks.size||(Ks._node.__shady.observer=null))},As.filterMutations=function(Ks,Gs){var Xs=Gs.getRootNode();return Ks.map(function(Vs){var Ys=Xs===Vs.target.getRootNode();if(Ys&&Vs.addedNodes){if(Ys=Array.from(Vs.addedNodes).filter(function(zs){return Xs===zs.getRootNode()}),Ys.length)return Vs=Object.create(Vs),Object.defineProperty(Vs,'addedNodes',{value:Ys,configurable:!0}),Vs;}else if(Ys)return Vs}).filter(function(Vs){return Vs})};var xs={};xs.getRootNode=Fo,xs.query=function(Ks,Gs,Xs){var Vs=[];return Jo(Ks.childNodes,Gs,Xs,Vs),Vs},xs.renderRootNode=function(Ks){Ks=Ks.getRootNode(),Ar.isShadyRoot(Ks)&&Ks.render()},xs.setAttribute=function(Ks,Gs,Xs){window.ShadyCSS&&'class'===Gs&&Ks.ownerDocument===document?window.ShadyCSS.setElementClass(Ks,Xs):(ds.setAttribute.call(Ks,Gs,Xs),Yo(Ks,Gs))},xs.removeAttribute=function(Ks,Gs){ds.removeAttribute.call(Ks,Gs),Yo(Ks,Gs)},xs.insertBefore=function(Ks,Gs,Xs){if(Xs){var Vs=Ur.getProperty(Xs,'parentNode');if(void 0!==Vs&&Vs!==Ks)throw Error('The ref_node to be inserted before is not a child of this node')}return Gs.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&(Vs=Ur.getProperty(Gs,'parentNode'),ko(Gs,Vs)),Oo(Ks,Gs,Xs)||(Xs&&(Vs=Ar.ownerShadyRootForNode(Xs))&&(Xs=Xs.localName===Vs.getInsertionPointTag()?Go(Xs):Xs),Vs=Ar.isShadyRoot(Ks)?Ks.host:Ks,Xs?ds.insertBefore.call(Vs,Gs,Xs):ds.appendChild.call(Vs,Gs)),Do(Ks,Gs),Gs},xs.removeChild=function(Ks,Gs){if(Gs.parentNode!==Ks)throw Error('The node to be removed is not a child of this node: '+Gs);if(!Lo(Gs)){var Xs=Ar.isShadyRoot(Ks)?Ks.host:Ks,Vs=Gr.parentNode(Gs);Xs===Vs&&ds.removeChild.call(Xs,Gs)}return Do(Ks,null,Gs),Gs},xs.cloneNode=function(Ks,Gs){if('template'==Ks.localName)return ds.cloneNode.call(Ks,Gs);var Xs=ds.cloneNode.call(Ks,!1);if(Gs){Ks=Ks.childNodes,Gs=0;for(var Vs;Gs<Ks.length;Gs++)Vs=Ks[Gs].cloneNode(!0),Xs.appendChild(Vs)}return Xs},xs.importNode=sr;var Ms={},Is={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},ws={get composed(){return this.isTrusted&&void 0===this.__composed&&(this.__composed=Is[this.type]),this.__composed||!1},composedPath:function(){return this.__composedPath||(this.__composedPath=nr(this.__target,this.composed)),this.__composedPath},get target(){return ar(this.currentTarget,this.composedPath())},get relatedTarget(){return this.__relatedTarget?(this.__relatedTargetComposedPath||(this.__relatedTargetComposedPath=nr(this.__relatedTarget,!0)),ar(this.currentTarget,this.__relatedTargetComposedPath)):null},stopPropagation:function(){Event.prototype.stopPropagation.call(this),this.__propagationStopped=!0},stopImmediatePropagation:function(){Event.prototype.stopImmediatePropagation.call(this),this.__propagationStopped=this.__immediatePropagationStopped=!0}},Os={focus:!0,blur:!0},Ls=lr(window.Event),Ds=lr(window.CustomEvent),ks=lr(window.MouseEvent);Ms.addEventListener=function(Ks,Gs,Xs){if(Gs){var Vs,Ys,zs;if('object'==typeof Xs?(Vs=!!Xs.capture,Ys=!!Xs.once,zs=!!Xs.passive):(Vs=!!Xs,zs=Ys=!1),Gs.__eventWrappers){for(var Js=0;Js<Gs.__eventWrappers.length;Js++)if(Gs.__eventWrappers[Js].node===this&&Gs.__eventWrappers[Js].type===Ks&&Gs.__eventWrappers[Js].capture===Vs&&Gs.__eventWrappers[Js].once===Ys&&Gs.__eventWrappers[Js].passive===zs)return;}else Gs.__eventWrappers=[];Js=function($s){if(Ys&&this.removeEventListener(Ks,Gs,Xs),$s.__target||_r($s),$s.composed||-1<$s.composedPath().indexOf(this))if($s.eventPhase===Event.BUBBLING_PHASE&&$s.target===$s.relatedTarget)$s.stopImmediatePropagation();else return Gs($s)},Gs.__eventWrappers.push({node:this,type:Ks,capture:Vs,once:Ys,passive:zs,wrapperFn:Js}),Os[Ks]?(this.__handlers=this.__handlers||{},this.__handlers[Ks]=this.__handlers[Ks]||{capture:[],bubble:[]},this.__handlers[Ks][Vs?'capture':'bubble'].push(Js)):ds.addEventListener.call(this,Ks,Js,Xs)}},Ms.removeEventListener=function(Ks,Gs,Xs){if(Gs){var Vs,Ys,zs;'object'==typeof Xs?(Vs=!!Xs.capture,Ys=!!Xs.once,zs=!!Xs.passive):(Vs=!!Xs,zs=Ys=!1);var Js;if(Gs.__eventWrappers)for(var $s=0;$s<Gs.__eventWrappers.length;$s++)if(Gs.__eventWrappers[$s].node===this&&Gs.__eventWrappers[$s].type===Ks&&Gs.__eventWrappers[$s].capture===Vs&&Gs.__eventWrappers[$s].once===Ys&&Gs.__eventWrappers[$s].passive===zs){Js=Gs.__eventWrappers.splice($s,1)[0].wrapperFn,Gs.__eventWrappers.length||(Gs.__eventWrappers=void 0);break}ds.removeEventListener.call(this,Ks,Js||Gs,Xs),Js&&Os[Ks]&&this.__handlers&&this.__handlers[Ks]&&(Ks=this.__handlers[Ks][Vs?'capture':'bubble'],Js=Ks.indexOf(Js),-1<Js&&Ks.splice(Js,1))}},Ms.patchEvents=function(){window.Event=Ls,window.CustomEvent=Ds,window.MouseEvent=ks,hr()};var Hs={},Fs={addEventListener:Ms.addEventListener,removeEventListener:Ms.removeEventListener,appendChild:function(Ks){return xs.insertBefore(this,Ks)},insertBefore:function(Ks,Gs){return xs.insertBefore(this,Ks,Gs)},removeChild:function(Ks){return xs.removeChild(this,Ks)},replaceChild:function(Ks,Gs){return this.insertBefore(Ks,Gs),this.removeChild(Gs),Ks},cloneNode:function(Ks){return xs.cloneNode(this,Ks)},getRootNode:function(Ks){return xs.getRootNode(this,Ks)},get isConnected(){var Ks=this.ownerDocument;if(Ks&&Ks.contains&&Ks.contains(this)||(Ks=Ks.documentElement)&&Ks.contains&&Ks.contains(this))return!0;for(Ks=this;Ks&&!(Ks instanceof Document);)Ks=Ks.parentNode||(Ks instanceof Ss.ShadyRoot?Ks.host:void 0);return!!(Ks&&Ks instanceof Document)}},Us={get assignedSlot(){return mr(this)}},qs={querySelector:function(Ks){return xs.query(this,function(Gs){return Ar.matchesSelector(Gs,Ks)},function(Gs){return!!Gs})[0]||null},querySelectorAll:function(Ks){return xs.query(this,function(Gs){return Ar.matchesSelector(Gs,Ks)})}},Ws={assignedNodes:function(Ks){if('slot'===this.localName)return xs.renderRootNode(this),this.__shady?(Ks&&Ks.flatten?this.__shady.distributedNodes:this.__shady.assignedNodes)||[]:[]}},js=Ar.extendAll({setAttribute:function(Ks,Gs){xs.setAttribute(this,Ks,Gs)},removeAttribute:function(Ks){xs.removeAttribute(this,Ks)},attachShadow:function(Ks){return Ss.attachShadow(this,Ks)},get slot(){return this.getAttribute('slot')},set slot(Ks){this.setAttribute('slot',Ks)},get assignedSlot(){return mr(this)}},qs,Ws);Object.defineProperties(js,Yr.ShadowRootAccessor);var Bs=Ar.extendAll({importNode:function(Ks,Gs){return xs.importNode(Ks,Gs)}},qs);Object.defineProperties(Bs,{_activeElement:Yr.ActiveElementAccessor.activeElement}),Hs.patchBuiltins=function(){yr(window.Node.prototype,Fs),yr(window.Text.prototype,Us),yr(window.DocumentFragment.prototype,qs),yr(window.Element.prototype,js),yr(window.Document.prototype,Bs),window.HTMLSlotElement&&yr(window.HTMLSlotElement.prototype,Ws),Ar.settings.hasDescriptors&&(Yr.patchAccessors(window.Node.prototype),Yr.patchAccessors(window.Text.prototype),Yr.patchAccessors(window.DocumentFragment.prototype),Yr.patchAccessors(window.Element.prototype),Yr.patchAccessors((window.customElements&&customElements.nativeHTMLElement||HTMLElement).prototype),Yr.patchAccessors(window.Document.prototype),window.HTMLSlotElement&&Yr.patchAccessors(window.HTMLSlotElement.prototype))},Ar.settings.inUse&&(window.ShadyDOM={inUse:Ar.settings.inUse,patch:function(Ks){return Ks},isShadyRoot:Ar.isShadyRoot,enqueue:Or.enqueue,flush:Or.flush,settings:Ar.settings,filterMutations:As.filterMutations,observeChildren:As.observeChildren,unobserveChildren:As.unobserveChildren,nativeMethods:ds,nativeTree:Gr},Ms.patchEvents(),Hs.patchBuiltins(),window.ShadowRoot=Ss.ShadyRoot)}.call(window),function(){'use strict';function Wt(Xo){var Vo=_o.has(Xo);return Xo=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(Xo),!Vo&&Xo}function jt(Xo){var Vo=Xo.isConnected;if(void 0!==Vo)return Vo;for(;Xo&&!(Xo.__CE_isImportDocument||Xo instanceof Document);)Xo=Xo.parentNode||(Xo instanceof ShadowRoot?Xo.host:void 0);return Xo&&(Xo.__CE_isImportDocument||Xo instanceof Document)}function Bt(Xo,Vo){for(;Vo&&Vo!==Xo&&!Vo.nextSibling;)Vo=Vo.parentNode;return Vo&&Vo!==Xo?Vo.nextSibling:null}function Kt(Xo,Vo,Yo){Yo=Yo?Yo:new Set;for(var zo=Xo;zo;){if(zo.nodeType===Node.ELEMENT_NODE){var Jo=zo;if(Vo(Jo),'link'===Jo.localName&&'import'===Jo.getAttribute('rel')){if(zo=Jo.import,zo instanceof Node&&!Yo.has(zo))for(Yo.add(zo),zo=zo.firstChild;zo;zo=zo.nextSibling)Kt(zo,Vo,Yo);zo=Bt(Xo,Jo);continue}if(Jo=Jo.__CE_shadowRoot)for(Jo=Jo.firstChild;Jo;Jo=Jo.nextSibling)Kt(Jo,Vo,Yo)}zo=zo.firstChild?zo.firstChild:Bt(Xo,zo)}}function Gt(Xo,Vo,Yo){Xo[Vo]=Yo}function Xt(){this.a=new Map,this.f=new Map,this.c=[],this.b=!1}function Vt(Xo,Vo,Yo){Xo.a.set(Vo,Yo),Xo.f.set(Yo.constructor,Yo)}function Yt(Xo,Vo){Xo.b=!0,Xo.c.push(Vo)}function zt(Xo,Vo){Xo.b&&Kt(Vo,function(Yo){return Jt(Xo,Yo)})}function Jt(Xo,Vo){if(Xo.b&&!Vo.__CE_patched){Vo.__CE_patched=!0;for(var Yo=0;Yo<Xo.c.length;Yo++)Xo.c[Yo](Vo)}}function $t(Xo,Vo){var Yo=[];for(Kt(Vo,function(Jo){return Yo.push(Jo)}),Vo=0;Vo<Yo.length;Vo++){var zo=Yo[Vo];zo.__CE_state===uo.custom?Xo.connectedCallback(zo):eo(Xo,zo)}}function Qt(Xo,Vo){var Yo=[];for(Kt(Vo,function(Jo){return Yo.push(Jo)}),Vo=0;Vo<Yo.length;Vo++){var zo=Yo[Vo];zo.__CE_state===uo.custom&&Xo.disconnectedCallback(zo)}}function Zt(Xo,Vo,Yo){Yo=Yo?Yo:new Set;var zo=[];if(Kt(Vo,function(Jo){if('link'===Jo.localName&&'import'===Jo.getAttribute('rel')){var $o=Jo.import;$o instanceof Node&&'complete'===$o.readyState?($o.__CE_isImportDocument=!0,$o.__CE_hasRegistry=!0):Jo.addEventListener('load',function(){var Qo=Jo.import;Qo.__CE_documentLoadHandled||(Qo.__CE_documentLoadHandled=!0,Qo.__CE_isImportDocument=!0,Qo.__CE_hasRegistry=!0,new Set(Yo),Yo.delete(Qo),Zt(Xo,Qo,Yo))})}else zo.push(Jo)},Yo),Xo.b)for(Vo=0;Vo<zo.length;Vo++)Jt(Xo,zo[Vo]);for(Vo=0;Vo<zo.length;Vo++)eo(Xo,zo[Vo])}function eo(Xo,Vo){if(void 0===Vo.__CE_state){var Yo=Xo.a.get(Vo.localName);if(Yo){Yo.constructionStack.push(Vo);var zo=Yo.constructor;try{try{if(new zo!==Vo)throw Error('The custom element constructor did not produce the element being upgraded.')}finally{Yo.constructionStack.pop()}}catch(Qo){throw Vo.__CE_state=uo.failed,Qo}if(Vo.__CE_state=uo.custom,Vo.__CE_definition=Yo,Yo.attributeChangedCallback)for(Yo=Yo.observedAttributes,zo=0;zo<Yo.length;zo++){var Jo=Yo[zo],$o=Vo.getAttribute(Jo);null!==$o&&Xo.attributeChangedCallback(Vo,Jo,null,$o,null)}jt(Vo)&&Xo.connectedCallback(Vo)}}}function to(Xo,Vo){this.c=Xo,this.a=Vo,this.b=void 0,Zt(this.c,this.a),'loading'===this.a.readyState&&(this.b=new MutationObserver(this.f.bind(this)),this.b.observe(this.a,{childList:!0,subtree:!0}))}function oo(){var Xo=this;this.b=this.a=void 0,this.c=new Promise(function(Vo){Xo.b=Vo,Xo.a&&Vo(Xo.a)})}function ro(Xo){if(Xo.a)throw Error('Already resolved.');Xo.a=void 0,Xo.b&&Xo.b(void 0)}function so(Xo){this.c=!1,this.a=Xo,this.h=new Map,this.f=function(Vo){return Vo()},this.b=!1,this.g=[],this.j=new to(Xo,document)}function no(){var Xo=Ko;window.HTMLElement=function(){function Vo(){var Yo=this.constructor,zo=Xo.f.get(Yo);if(!zo)throw Error('The custom element being constructed was not registered with `customElements`.');var Jo=zo.constructionStack;if(!Jo.length)return Jo=mo.call(document,zo.localName),Object.setPrototypeOf(Jo,Yo.prototype),Jo.__CE_state=uo.custom,Jo.__CE_definition=zo,Jt(Xo,Jo),Jo;var zo=Jo.length-1,$o=Jo[zo];if($o===ho)throw Error('The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.');return Jo[zo]=ho,Object.setPrototypeOf($o,Yo.prototype),Jt(Xo,$o),$o}return Vo.prototype=Wo.prototype,Vo}()}function ao(Xo,Vo,Yo){Vo.prepend=function(){for(var Jo=[],$o=0;$o<arguments.length;++$o)Jo[$o-0]=arguments[$o];$o=Jo.filter(function(Zo){return Zo instanceof Node&&jt(Zo)}),Yo.i.apply(this,Jo);for(var Qo=0;Qo<$o.length;Qo++)Qt(Xo,$o[Qo]);if(jt(this))for($o=0;$o<Jo.length;$o++)Qo=Jo[$o],Qo instanceof Element&&$t(Xo,Qo)},Vo.append=function(){for(var Jo=[],$o=0;$o<arguments.length;++$o)Jo[$o-0]=arguments[$o];$o=Jo.filter(function(Zo){return Zo instanceof Node&&jt(Zo)}),Yo.append.apply(this,Jo);for(var Qo=0;Qo<$o.length;Qo++)Qt(Xo,$o[Qo]);if(jt(this))for($o=0;$o<Jo.length;$o++)Qo=Jo[$o],Qo instanceof Element&&$t(Xo,Qo)}}function lo(){var Xo=Ko;Gt(Document.prototype,'createElement',function(Vo){if(this.__CE_hasRegistry){var Yo=Xo.a.get(Vo);if(Yo)return new Yo.constructor}return Vo=mo.call(this,Vo),Jt(Xo,Vo),Vo}),Gt(Document.prototype,'importNode',function(Vo,Yo){return Vo=go.call(this,Vo,Yo),this.__CE_hasRegistry?Zt(Xo,Vo):zt(Xo,Vo),Vo}),Gt(Document.prototype,'createElementNS',function(Vo,Yo){if(this.__CE_hasRegistry&&(null===Vo||'http://www.w3.org/1999/xhtml'===Vo)){var zo=Xo.a.get(Yo);if(zo)return new zo.constructor}return Vo=yo.call(this,Vo,Yo),Jt(Xo,Vo),Vo}),ao(Xo,Document.prototype,{i:fo,append:bo})}function io(){function Xo(Yo,zo){Object.defineProperty(Yo,'textContent',{enumerable:zo.enumerable,configurable:!0,get:zo.get,set:function(Jo){if(this.nodeType===Node.TEXT_NODE)zo.set.call(this,Jo);else{var $o;if(this.firstChild){var Qo=this.childNodes,Zo=Qo.length;if(0<Zo&&jt(this))for(var $o=Array(Zo),er=0;er<Zo;er++)$o[er]=Qo[er]}if(zo.set.call(this,Jo),$o)for(Jo=0;Jo<$o.length;Jo++)Qt(Vo,$o[Jo])}}})}var Vo=Ko;Gt(Node.prototype,'insertBefore',function(Yo,zo){if(Yo instanceof DocumentFragment){var Jo=Array.prototype.slice.apply(Yo.childNodes);if(Yo=So.call(this,Yo,zo),jt(this))for(zo=0;zo<Jo.length;zo++)$t(Vo,Jo[zo]);return Yo}return Jo=jt(Yo),zo=So.call(this,Yo,zo),Jo&&Qt(Vo,Yo),jt(this)&&$t(Vo,Yo),zo}),Gt(Node.prototype,'appendChild',function(Yo){if(Yo instanceof DocumentFragment){var zo=Array.prototype.slice.apply(Yo.childNodes);if(Yo=No.call(this,Yo),jt(this))for(var Jo=0;Jo<zo.length;Jo++)$t(Vo,zo[Jo]);return Yo}return zo=jt(Yo),Jo=No.call(this,Yo),zo&&Qt(Vo,Yo),jt(this)&&$t(Vo,Yo),Jo}),Gt(Node.prototype,'cloneNode',function(Yo){return Yo=vo.call(this,Yo),this.ownerDocument.__CE_hasRegistry?Zt(Vo,Yo):zt(Vo,Yo),Yo}),Gt(Node.prototype,'removeChild',function(Yo){var zo=jt(Yo),Jo=Eo.call(this,Yo);return zo&&Qt(Vo,Yo),Jo}),Gt(Node.prototype,'replaceChild',function(Yo,zo){if(Yo instanceof DocumentFragment){var Jo=Array.prototype.slice.apply(Yo.childNodes);if(Yo=Co.call(this,Yo,zo),jt(this))for(Qt(Vo,zo),zo=0;zo<Jo.length;zo++)$t(Vo,Jo[zo]);return Yo}var Jo=jt(Yo),$o=Co.call(this,Yo,zo),Qo=jt(this);return Qo&&Qt(Vo,zo),Jo&&Qt(Vo,Yo),Qo&&$t(Vo,Yo),$o}),Ao&&Ao.get?Xo(Node.prototype,Ao):Yt(Vo,function(Yo){Xo(Yo,{enumerable:!0,configurable:!0,get:function(){for(var zo=[],Jo=0;Jo<this.childNodes.length;Jo++)zo.push(this.childNodes[Jo].textContent);return zo.join('')},set:function(zo){for(;this.firstChild;)Eo.call(this,this.firstChild);No.call(this,document.createTextNode(zo))}})})}function po(Xo){var Vo=Element.prototype;Vo.before=function(){for(var zo=[],Jo=0;Jo<arguments.length;++Jo)zo[Jo-0]=arguments[Jo];Jo=zo.filter(function(Qo){return Qo instanceof Node&&jt(Qo)}),Ho.apply(this,zo);for(var $o=0;$o<Jo.length;$o++)Qt(Xo,Jo[$o]);if(jt(this))for(Jo=0;Jo<zo.length;Jo++)$o=zo[Jo],$o instanceof Element&&$t(Xo,$o)},Vo.after=function(){for(var zo=[],Jo=0;Jo<arguments.length;++Jo)zo[Jo-0]=arguments[Jo];Jo=zo.filter(function(Qo){return Qo instanceof Node&&jt(Qo)}),Fo.apply(this,zo);for(var $o=0;$o<Jo.length;$o++)Qt(Xo,Jo[$o]);if(jt(this))for(Jo=0;Jo<zo.length;Jo++)$o=zo[Jo],$o instanceof Element&&$t(Xo,$o)},Vo.replaceWith=function(){for(var zo=[],Jo=0;Jo<arguments.length;++Jo)zo[Jo-0]=arguments[Jo];var Jo=zo.filter(function(Zo){return Zo instanceof Node&&jt(Zo)}),$o=jt(this);Uo.apply(this,zo);for(var Qo=0;Qo<Jo.length;Qo++)Qt(Xo,Jo[Qo]);if($o)for(Qt(Xo,this),Jo=0;Jo<zo.length;Jo++)$o=zo[Jo],$o instanceof Element&&$t(Xo,$o)},Vo.remove=function(){var Yo=jt(this);qo.call(this),Yo&&Qt(Xo,this)}}function co(){function Xo(zo,Jo){Object.defineProperty(zo,'innerHTML',{enumerable:Jo.enumerable,configurable:!0,get:Jo.get,set:function($o){var Qo=Array.prototype.slice.apply(this.childNodes);if(Jo.set.call(this,$o),jt(this))for(var Zo=0;Zo<Qo.length;Zo++)Qt(Vo,Qo[Zo]);return this.ownerDocument.__CE_hasRegistry?Zt(Vo,this):zt(Vo,this),$o}})}var Vo=Ko;if(To?Gt(Element.prototype,'attachShadow',function(zo){return this.__CE_shadowRoot=zo=To.call(this,zo)}):console.warn('Custom Elements: `Element#attachShadow` was not patched.'),Po&&Po.get)Xo(Element.prototype,Po);else if(jo&&jo.get)Xo(HTMLElement.prototype,jo);else{var Yo=mo.call(document,'div');Yt(Vo,function(zo){Xo(zo,{enumerable:!0,configurable:!0,get:function(){return vo.call(this,!0).innerHTML},set:function(Jo){var $o='template'===this.localName?this.content:this;for(Yo.innerHTML=Jo;0<$o.childNodes.length;)Eo.call($o,$o.childNodes[0]);for(;0<Yo.childNodes.length;)No.call($o,Yo.childNodes[0])}})})}Gt(Element.prototype,'setAttribute',function(zo,Jo){if(this.__CE_state!==uo.custom)return xo.call(this,zo,Jo);var $o=Ro.call(this,zo);xo.call(this,zo,Jo),Jo=Ro.call(this,zo),$o!==Jo&&Vo.attributeChangedCallback(this,zo,$o,Jo,null)}),Gt(Element.prototype,'setAttributeNS',function(zo,Jo,$o){if(this.__CE_state!==uo.custom)return wo.call(this,zo,Jo,$o);var Qo=Io.call(this,zo,Jo);wo.call(this,zo,Jo,$o),$o=Io.call(this,zo,Jo),Qo!==$o&&Vo.attributeChangedCallback(this,Jo,Qo,$o,zo)}),Gt(Element.prototype,'removeAttribute',function(zo){if(this.__CE_state!==uo.custom)return Mo.call(this,zo);var Jo=Ro.call(this,zo);Mo.call(this,zo),null!==Jo&&Vo.attributeChangedCallback(this,zo,Jo,null,null)}),Gt(Element.prototype,'remoteAttributeNS',function(zo,Jo){if(this.__CE_state!==uo.custom)return Oo.call(this,zo,Jo);var $o=Io.call(this,zo,Jo);Oo.call(this,zo,Jo),null!==$o&&Vo.attributeChangedCallback(this,Jo,$o,null,zo)}),Gt(Element.prototype,'insertAdjacentElement',function(zo,Jo){var $o=jt(Jo);return zo=Lo.call(this,zo,Jo),$o&&Qt(Vo,Jo),jt(zo)&&$t(Vo,Jo),zo}),ao(Vo,Element.prototype,{i:Do,append:ko}),po(Vo)}var ho=new function(){},_o=new Set('annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph'.split(' ')),uo={custom:1,failed:2};Xt.prototype.connectedCallback=function(Xo){var Vo=Xo.__CE_definition;Vo.connectedCallback&&Vo.connectedCallback.call(Xo)},Xt.prototype.disconnectedCallback=function(Xo){var Vo=Xo.__CE_definition;Vo.disconnectedCallback&&Vo.disconnectedCallback.call(Xo)},Xt.prototype.attributeChangedCallback=function(Xo,Vo,Yo,zo,Jo){var $o=Xo.__CE_definition;$o.attributeChangedCallback&&-1<$o.observedAttributes.indexOf(Vo)&&$o.attributeChangedCallback.call(Xo,Vo,Yo,zo,Jo)},to.prototype.f=function(Xo){var Vo=this.a.readyState;for('interactive'!==Vo&&'complete'!==Vo||this.b.disconnect(),Vo=0;Vo<Xo.length;Vo++)for(var Yo=Xo[Vo].addedNodes,zo=0;zo<Yo.length;zo++)Zt(this.c,Yo[zo])},so.prototype.l=function(Xo,Vo){var Yo=this;if(!(Vo instanceof Function))throw new TypeError('Custom element constructors must be functions.');if(!Wt(Xo))throw new SyntaxError('The element name \''+Xo+'\' is not valid.');if(this.a.a.get(Xo))throw Error('A custom element with name \''+Xo+'\' has already been defined.');if(this.c)throw Error('A custom element is already being defined.');this.c=!0;var zo,Jo,$o,Qo,Zo;try{var er=function(or){var rr=tr[or];if(void 0!==rr&&!(rr instanceof Function))throw Error('The \''+or+'\' callback must be a function.');return rr},tr=Vo.prototype;if(!(tr instanceof Object))throw new TypeError('The custom element constructor\'s prototype is not an object.');zo=er('connectedCallback'),Jo=er('disconnectedCallback'),$o=er('adoptedCallback'),Qo=er('attributeChangedCallback'),Zo=Vo.observedAttributes||[]}catch(or){return}finally{this.c=!1}Vt(this.a,Xo,{localName:Xo,constructor:Vo,connectedCallback:zo,disconnectedCallback:Jo,adoptedCallback:$o,attributeChangedCallback:Qo,observedAttributes:Zo,constructionStack:[]}),this.g.push(Xo),this.b||(this.b=!0,this.f(function(){if(!1!==Yo.b)for(Yo.b=!1,Zt(Yo.a,document);0<Yo.g.length;){var or=Yo.g.shift();(or=Yo.h.get(or))&&ro(or)}}))},so.prototype.get=function(Xo){if(Xo=this.a.a.get(Xo))return Xo.constructor},so.prototype.o=function(Xo){if(!Wt(Xo))return Promise.reject(new SyntaxError('\''+Xo+'\' is not a valid custom element name.'));var Vo=this.h.get(Xo);return Vo?Vo.c:(Vo=new oo,this.h.set(Xo,Vo),this.a.a.get(Xo)&&ro(Vo),Vo.c)},so.prototype.m=function(Xo){this.j.b.disconnect();var Vo=this.f;this.f=function(Yo){return Xo(function(){return Vo(Yo)})}},window.CustomElementRegistry=so,so.prototype.define=so.prototype.l,so.prototype.get=so.prototype.get,so.prototype.whenDefined=so.prototype.o,so.prototype.polyfillWrapFlushCallback=so.prototype.m;var mo=window.Document.prototype.createElement,yo=window.Document.prototype.createElementNS,go=window.Document.prototype.importNode,fo=window.Document.prototype.prepend,bo=window.Document.prototype.append,vo=window.Node.prototype.cloneNode,No=window.Node.prototype.appendChild,So=window.Node.prototype.insertBefore,Eo=window.Node.prototype.removeChild,Co=window.Node.prototype.replaceChild,Ao=Object.getOwnPropertyDescriptor(window.Node.prototype,'textContent'),To=window.Element.prototype.attachShadow,Po=Object.getOwnPropertyDescriptor(window.Element.prototype,'innerHTML'),Ro=window.Element.prototype.getAttribute,xo=window.Element.prototype.setAttribute,Mo=window.Element.prototype.removeAttribute,Io=window.Element.prototype.getAttributeNS,wo=window.Element.prototype.setAttributeNS,Oo=window.Element.prototype.removeAttributeNS,Lo=window.Element.prototype.insertAdjacentElement,Do=window.Element.prototype.prepend,ko=window.Element.prototype.append,Ho=window.Element.prototype.before,Fo=window.Element.prototype.after,Uo=window.Element.prototype.replaceWith,qo=window.Element.prototype.remove,Wo=window.HTMLElement,jo=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,'innerHTML'),Bo=window.customElements;if(!Bo||Bo.forcePolyfill||'function'!=typeof Bo.define||'function'!=typeof Bo.get){var Ko=new Xt;no(),lo(),io(),co(),document.__CE_hasRegistry=!0;var Go=new so(Ko);Object.defineProperty(window,'customElements',{configurable:!0,enumerable:!0,value:Go})}}.call(self);let Pe={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},Re='{',xe='}',Me={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},Ie='--',Le=!(window.ShadyDOM&&window.ShadyDOM.inUse),De=!navigator.userAgent.match('AppleWebKit/601')&&window.CSS&&CSS.supports&&CSS.supports('box-shadow','0 0 0 var(--foo)');window.ShadyCSS?he(window.ShadyCSS):window.WebComponents&&he(window.WebComponents.flags);let He=null,Fe={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 Ue='style-scope';class qe{get SCOPE_NAME(){return Ue}dom(Wt,jt,Bt){Wt.__styleScoped?Wt.__styleScoped=null:this._transformDom(Wt,jt||'',Bt)}_transformDom(Wt,jt,Bt){Wt.nodeType===Node.ELEMENT_NODE&&this.element(Wt,jt,Bt);let Kt='template'===Wt.localName?(Wt.content||Wt._content).childNodes:Wt.children||Wt.childNodes;if(Kt)for(let Gt=0;Gt<Kt.length;Gt++)this._transformDom(Kt[Gt],jt,Bt)}element(Wt,jt,Bt){if(jt)if(Wt.classList)Bt?(Wt.classList.remove(Ue),Wt.classList.remove(jt)):(Wt.classList.add(Ue),Wt.classList.add(jt));else if(Wt.getAttribute){let Kt=Wt.getAttribute('class');if(!Bt){let Gt=(Kt?Kt+' ':'')+Ue+' '+jt;Ee(Wt,Gt)}else if(Kt){let Gt=Kt.replace(Ue,'').replace(jt,'');Ee(Wt,Gt)}}}elementStyles(Wt,jt,Bt){let Kt=Wt.__cssBuild,Gt=Le||'shady'===Kt?_e(jt,Bt):this.css(jt,Wt.is,Wt.extends,Bt)+'\n\n';return Gt.trim()}css(Wt,jt,Bt,Kt){let Gt=this._calcHostScope(jt,Bt);jt=this._calcElementScope(jt);let Xt=this;return _e(Wt,function(Vt){Vt.isScoped||(Xt.rule(Vt,jt,Gt),Vt.isScoped=!0),Kt&&Kt(Vt,jt,Gt)})}_calcElementScope(Wt){return Wt?'.'+Wt:''}_calcHostScope(Wt,jt){return jt?'[is='+Wt+']':Wt}rule(Wt,jt,Bt){this._transformRule(Wt,this._transformComplexSelector,jt,Bt)}_transformRule(Wt,jt,Bt,Kt){Wt.selector=Wt.transformedSelector=this._transformRuleCss(Wt,jt,Bt,Kt)}_transformRuleCss(Wt,jt,Bt,Kt){let Gt=Wt.selector.split(Be);if(!me(Wt))for(let Yt,Xt=0,Vt=Gt.length;Xt<Vt&&(Yt=Gt[Xt]);Xt++)Gt[Xt]=jt.call(this,Yt,Bt,Kt);return Gt.join(Be)}_transformComplexSelector(Wt,jt,Bt){let Kt=!1;return Wt=Wt.trim(),Wt=Wt.replace(We,(Gt,Xt,Vt)=>`:${Xt}(${Vt.replace(/\s/g,'')})`),Wt=Wt.replace(ze,`${Xe} $1`),Wt=Wt.replace(Ke,(Gt,Xt,Vt)=>{if(!Kt){let Yt=this._transformCompoundSelector(Vt,Xt,jt,Bt);Kt=Kt||Yt.stop,Xt=Yt.combinator,Vt=Yt.value}return Xt+Vt}),Wt}_transformCompoundSelector(Wt,jt,Bt,Kt){let Gt=Wt.indexOf(Ye);0<=Wt.indexOf(Xe)?Wt=this._transformHostSelector(Wt,Kt):0!==Gt&&(Wt=Bt?this._transformSimpleSelector(Wt,Bt):Wt);let Xt=!1;0<=Gt&&(jt='',Xt=!0);let Vt;return Xt&&(Vt=!0,Xt&&(Wt=Wt.replace($e,(Yt,zt)=>` > ${zt}`))),Wt=Wt.replace(Qe,(Yt,zt,Jt)=>`[dir="${Jt}"] ${zt}, ${zt}[dir="${Jt}"]`),{value:Wt,combinator:jt,stop:Vt}}_transformSimpleSelector(Wt,jt){let Bt=Wt.split(lt);return Bt[0]+=jt,Bt.join(lt)}_transformHostSelector(Wt,jt){let Bt=Wt.match(Je),Kt=Bt&&Bt[2].trim()||'';if(Kt){if(!Kt[0].match(Ge)){let Gt=Kt.split(Ge)[0];return Gt===jt?Kt:'should_not_match'}return Wt.replace(Je,function(Gt,Xt,Vt){return jt+Vt})}return Wt.replace(Xe,jt)}documentRule(Wt){Wt.selector=Wt.parsedSelector,this.normalizeRootSelector(Wt),this._transformRule(Wt,this._transformDocumentSelector)}normalizeRootSelector(Wt){Wt.selector===':root'&&(Wt.selector='html')}_transformDocumentSelector(Wt){return Wt.match(Ye)?this._transformComplexSelector(Wt,je):this._transformSimpleSelector(Wt.trim(),je)}}let We=/:(nth[-\w]+)\(([^)]+)\)/,je=`:not(.${Ue})`,Be=',',Ke=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=\[])+)/g,Ge=/[[.:#*]/,Xe=':host',Ye='::slotted',ze=/^(::slotted)/,Je=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,$e=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,Qe=/(.*):dir\((?:(ltr|rtl))\)/,lt=':';var ct=new qe,ht={};const _t=Promise.resolve();class mt{static get(Wt){return Wt.__styleInfo}static set(Wt,jt){return Wt.__styleInfo=jt,jt}static invalidate(Wt){ht[Wt]&&(ht[Wt]._applyShimInvalid=!0)}static startValidating(Wt){const jt=ht[Wt];jt._validating||(jt._validating=!0,_t.then(()=>{jt._applyShimInvalid=!1,jt._validating=!1}))}constructor(Wt,jt,Bt,Kt,Gt,Xt){this.styleRules=Wt||null,this.placeholder=jt||null,this.ownStylePropertyNames=Bt||[],this.overrideStyleProperties=null,this.elementName=Kt||'',this.cssBuild=Xt||'',this.typeExtension=Gt||'',this.styleProperties=null,this.scopeSelector=null,this.customStyle=null}}const yt=window.Element.prototype,gt=yt.matches||yt.matchesSelector||yt.mozMatchesSelector||yt.msMatchesSelector||yt.oMatchesSelector||yt.webkitMatchesSelector,ft=navigator.userAgent.match('Trident'),bt='x-scope';class vt{get XSCOPE_NAME(){return bt}decorateStyles(Wt){let jt=this,Bt={},Kt=[],Gt=0;ye(Wt,function(Vt){jt.decorateRule(Vt),Vt.index=Gt++,jt.collectPropertiesInCssText(Vt.propertyInfo.cssText,Bt)},function(Yt){Kt.push(Yt)}),Wt._keyframes=Kt;let Xt=[];for(let Vt in Bt)Xt.push(Vt);return Xt}decorateRule(Wt){if(Wt.propertyInfo)return Wt.propertyInfo;let jt={},Bt={},Kt=this.collectProperties(Wt,Bt);return Kt&&(jt.properties=Bt,Wt.rules=null),jt.cssText=this.collectCssText(Wt),Wt.propertyInfo=jt,jt}collectProperties(Wt,jt){let Bt=Wt.propertyInfo;if(!Bt){let Kt,Gt=Fe.VAR_ASSIGN,Xt=Wt.parsedCssText,Vt,Yt;for(;Kt=Gt.exec(Xt);)Vt=(Kt[2]||Kt[3]).trim(),('inherit'!==Vt||'unset'!==Vt)&&(jt[Kt[1].trim()]=Vt),Yt=!0;return Yt}else if(Bt.properties)return Object.assign(jt,Bt.properties),!0}collectCssText(Wt){return this.collectConsumingCssText(Wt.parsedCssText)}collectConsumingCssText(Wt){return Wt.replace(Fe.BRACKETED,'').replace(Fe.VAR_ASSIGN,'')}collectPropertiesInCssText(Wt,jt){for(let Bt,Kt;Bt=Fe.VAR_CONSUMED.exec(Wt);)Kt=Bt[1],':'!==Bt[2]&&(jt[Kt]=!0)}reify(Wt){let jt=Object.getOwnPropertyNames(Wt);for(let Kt,Bt=0;Bt<jt.length;Bt++)Kt=jt[Bt],Wt[Kt]=this.valueForProperty(Wt[Kt],Wt)}valueForProperty(Wt,jt){if(Wt)if(0<=Wt.indexOf(';'))Wt=this.valueForProperties(Wt,jt);else{let Bt=this;Wt=Se(Wt,function(Gt,Xt,Vt,Yt){if(!Xt)return Gt+Yt;let zt=Bt.valueForProperty(jt[Xt],jt);return zt&&'initial'!==zt?'apply-shim-inherit'===zt&&(zt='inherit'):zt=Bt.valueForProperty(jt[Vt]||Vt,jt)||Vt,Gt+(zt||'')+Yt})}return Wt&&Wt.trim()||''}valueForProperties(Wt,jt){let Bt=Wt.split(';');for(let Gt,Xt,Kt=0;Kt<Bt.length;Kt++)if(Gt=Bt[Kt]){if(Fe.MIXIN_MATCH.lastIndex=0,Xt=Fe.MIXIN_MATCH.exec(Gt),Xt)Gt=this.valueForProperty(jt[Xt[1]],jt);else{let Vt=Gt.indexOf(':');if(-1!==Vt){let Yt=Gt.substring(Vt);Yt=Yt.trim(),Yt=this.valueForProperty(Yt,jt)||Yt,Gt=Gt.substring(0,Vt)+Yt}}Bt[Kt]=Gt&&Gt.lastIndexOf(';')===Gt.length-1?Gt.slice(0,-1):Gt||''}return Bt.join(';')}applyProperties(Wt,jt){let Bt='';Wt.propertyInfo||this.decorateRule(Wt),Wt.propertyInfo.cssText&&(Bt=this.valueForProperties(Wt.propertyInfo.cssText,jt)),Wt.cssText=Bt}applyKeyframeTransforms(Wt,jt){let Bt=Wt.cssText,Kt=Wt.cssText;if(null==Wt.hasAnimations&&(Wt.hasAnimations=Fe.ANIMATION_MATCH.test(Bt)),Wt.hasAnimations){let Gt;if(null==Wt.keyframeNamesToTransform)for(let Xt in Wt.keyframeNamesToTransform=[],jt)Gt=jt[Xt],Kt=Gt(Bt),Bt!==Kt&&(Bt=Kt,Wt.keyframeNamesToTransform.push(Xt));else{for(let Xt=0;Xt<Wt.keyframeNamesToTransform.length;++Xt)Gt=jt[Wt.keyframeNamesToTransform[Xt]],Bt=Gt(Bt);Kt=Bt}}Wt.cssText=Kt}propertyDataFromStyles(Wt,jt){let Bt={},Kt=this,Gt=[];return ye(Wt,function(Xt){Xt.propertyInfo||Kt.decorateRule(Xt);let Vt=Xt.transformedSelector||Xt.parsedSelector;jt&&Xt.propertyInfo.properties&&Vt&&gt.call(jt,Vt)&&(Kt.collectProperties(Xt,Bt),Ce(Xt.index,Gt))},null,!0),{properties:Bt,key:Gt}}whenHostOrRootRule(Wt,jt,Bt,Kt){if(jt.propertyInfo||this.decorateRule(jt),!!jt.propertyInfo.properties){let Gt=Wt.is?ct._calcHostScope(Wt.is,Wt.extends):'html',Xt=jt.parsedSelector,Vt=':host > *'===Xt||'html'===Xt,Yt=0===Xt.indexOf(':host')&&!Vt;if('shady'===Bt&&(Vt=Xt===Gt+' > *.'+Gt||-1!==Xt.indexOf('html'),Yt=!Vt&&0===Xt.indexOf(Gt)),'shadow'===Bt&&(Vt=':host > *'===Xt||'html'===Xt,Yt=Yt&&!Vt),Vt||Yt){let zt=Gt;Yt&&(Le&&!jt.transformedSelector&&(jt.transformedSelector=ct._transformRuleCss(jt,ct._transformComplexSelector,ct._calcElementScope(Wt.is),Gt)),zt=jt.transformedSelector||Gt),Kt({selector:zt,isHost:Yt,isRoot:Vt})}}}hostAndRootPropertiesForScope(Wt,jt){let Bt={},Kt={},Gt=this,Xt=jt&&jt.__cssBuild;return ye(jt,function(Vt){Gt.whenHostOrRootRule(Wt,Vt,Xt,function(Yt){let zt=Wt._element||Wt;gt.call(zt,Yt.selector)&&(Yt.isHost?Gt.collectProperties(Vt,Bt):Gt.collectProperties(Vt,Kt))})},null,!0),{rootProps:Kt,hostProps:Bt}}transformStyles(Wt,jt,Bt){let Kt=this,Gt=ct._calcHostScope(Wt.is,Wt.extends),Xt=Wt.extends?'\\'+Gt.slice(0,-1)+'\\]':Gt,Vt=new RegExp(Fe.HOST_PREFIX+Xt+Fe.HOST_SUFFIX),Yt=mt.get(Wt).styleRules,zt=this._elementKeyframeTransforms(Wt,Yt,Bt);return ct.elementStyles(Wt,Yt,function(Jt){Kt.applyProperties(Jt,jt),Le||me(Jt)||!Jt.cssText||(Kt.applyKeyframeTransforms(Jt,zt),Kt._scopeSelector(Jt,Vt,Gt,Bt))})}_elementKeyframeTransforms(Wt,jt,Bt){let Kt=jt._keyframes,Gt={};if(!Le&&Kt)for(let Xt=0,Vt=Kt[Xt];Xt<Kt.length;Vt=Kt[++Xt])this._scopeKeyframes(Vt,Bt),Gt[Vt.keyframesName]=this._keyframesRuleTransformer(Vt);return Gt}_keyframesRuleTransformer(Wt){return function(jt){return jt.replace(Wt.keyframesNameRx,Wt.transformedKeyframesName)}}_scopeKeyframes(Wt,jt){Wt.keyframesNameRx=new RegExp(Wt.keyframesName,'g'),Wt.transformedKeyframesName=Wt.keyframesName+'-'+jt,Wt.transformedSelector=Wt.transformedSelector||Wt.selector,Wt.selector=Wt.transformedSelector.replace(Wt.keyframesName,Wt.transformedKeyframesName)}_scopeSelector(Wt,jt,Bt,Kt){Wt.transformedSelector=Wt.transformedSelector||Wt.selector;let Gt=Wt.transformedSelector,Xt='.'+Kt,Vt=Gt.split(',');for(let Jt,Yt=0,zt=Vt.length;Yt<zt&&(Jt=Vt[Yt]);Yt++)Vt[Yt]=Jt.match(jt)?Jt.replace(Bt,Xt):Xt+' '+Jt;Wt.selector=Vt.join(',')}applyElementScopeSelector(Wt,jt,Bt){let Kt=Wt.getAttribute('class')||'',Gt=Kt;Bt&&(Gt=Kt.replace(new RegExp('\\s*'+bt+'\\s*'+Bt+'\\s*','g'),' ')),Gt+=(Gt?' ':'')+bt+' '+jt,Kt!==Gt&&Ee(Wt,Gt)}applyElementStyle(Wt,jt,Bt,Kt){let Gt=Kt?Kt.textContent||'':this.transformStyles(Wt,jt,Bt),Xt=mt.get(Wt),Vt=Xt.customStyle;return Vt&&!Le&&Vt!==Kt&&(Vt._useCount--,0>=Vt._useCount&&Vt.parentNode&&Vt.parentNode.removeChild(Vt)),Le?Xt.customStyle?(Xt.customStyle.textContent=Gt,Kt=Xt.customStyle):Gt&&(Kt=ge(Gt,Bt,Wt.shadowRoot,Xt.placeholder)):Kt?!Kt.parentNode&&fe(Kt,null,Xt.placeholder):Gt&&(Kt=ge(Gt,Bt,null,Xt.placeholder)),Kt&&(Kt._useCount=Kt._useCount||0,Xt.customStyle!=Kt&&Kt._useCount++,Xt.customStyle=Kt),ft&&(Kt.textContent=Kt.textContent),Kt}applyCustomStyle(Wt,jt){let Bt=ue(Wt),Kt=this;Wt.textContent=_e(Bt,function(Gt){let Xt=Gt.cssText=Gt.parsedCssText;Gt.propertyInfo&&Gt.propertyInfo.cssText&&(Xt=ie(Xt),Gt.cssText=Kt.valueForProperties(Xt,jt))})}}var Nt=new vt;let St={};const Et=window.customElements;if(Et&&!Le){const Wt=Et.define;Et.define=function(jt,Bt,Kt){return St[jt]=ve(jt),Wt.call(Et,jt,Bt,Kt)}}let At=Fe.MIXIN_MATCH,Tt=Fe.VAR_ASSIGN,Pt=/;\s*/m,Rt=/^\s*(initial)|(inherit)\s*$/,xt='_-_';class Mt{constructor(){this._map={}}set(Wt,jt){Wt=Wt.trim(),this._map[Wt]={properties:jt,dependants:{}}}get(Wt){return Wt=Wt.trim(),this._map[Wt]}}class It{constructor(){this._currentTemplate=null,this._measureElement=null,this._map=new Mt,this._separator=xt,this._boundProduceCssProperties=(Wt,jt,Bt,Kt)=>this._produceCssProperties(Wt,jt,Bt,Kt)}detectMixin(Wt){const jt=At.test(Wt)||Tt.test(Wt);return At.lastIndex=0,Tt.lastIndex=0,jt}transformStyle(Wt,jt){let Bt=ue(Wt);return this.transformRules(Bt,jt),Bt}transformRules(Wt,jt){this._currentTemplate=ht[jt],ye(Wt,Bt=>{this.transformRule(Bt)}),this._currentTemplate=null}transformRule(Wt){Wt.cssText=this.transformCssText(Wt.parsedCssText),':root'===Wt.selector&&(Wt.selector=':host > *')}transformCssText(Wt){return Wt=Wt.replace(Tt,this._boundProduceCssProperties),this._consumeCssProperties(Wt)}_getInitialValueForProperty(Wt){return this._measureElement||(this._measureElement=document.createElement('meta'),this._measureElement.style.all='initial',document.head.appendChild(this._measureElement)),window.getComputedStyle(this._measureElement).getPropertyValue(Wt)}_consumeCssProperties(Wt){for(let jt;jt=At.exec(Wt);){let Bt=jt[0],Kt=jt[1],Gt=jt.index,Xt=Gt+Bt.indexOf('@apply'),Vt=Gt+Bt.length,Yt=Wt.slice(0,Xt),zt=Wt.slice(Vt),Jt=this._cssTextToMap(Yt),$t=this._atApplyToCssProperties(Kt,Jt);Wt=[Yt,$t,zt].join(''),At.lastIndex=Gt+$t.length}return Wt}_atApplyToCssProperties(Wt,jt){Wt=Wt.replace(Pt,'');let Bt=[],Kt=this._map.get(Wt);if(Kt||(this._map.set(Wt,{}),Kt=this._map.get(Wt)),Kt){this._currentTemplate&&(Kt.dependants[this._currentTemplate.name]=this._currentTemplate);let Gt,Xt,Vt;for(Gt in Kt.properties)Vt=jt&&jt[Gt],Xt=[Gt,': var(',Wt,xt,Gt],Vt&&Xt.push(',',Vt),Xt.push(')'),Bt.push(Xt.join(''))}return Bt.join('; ')}_replaceInitialOrInherit(Wt,jt){let Bt=Rt.exec(jt);return Bt&&(Bt[1]?jt=It._getInitialValueForProperty(Wt):jt='apply-shim-inherit'),jt}_cssTextToMap(Wt){let jt=Wt.split(';'),Bt,Kt,Gt={};for(let Vt,Yt,Xt=0;Xt<jt.length;Xt++)Vt=jt[Xt],Vt&&(Yt=Vt.split(':'),1<Yt.length&&(Bt=Yt[0].trim(),Kt=this._replaceInitialOrInherit(Bt,Yt.slice(1).join(':')),Gt[Bt]=Kt));return Gt}_invalidateMixinEntry(Wt){for(let jt in Wt.dependants)this._currentTemplate&&jt===this._currentTemplate.name||mt.invalidate(jt)}_produceCssProperties(Wt,jt,Bt,Kt){if(Bt&&Se(Bt,(to,oo)=>{oo&&this._map.get(oo)&&(Kt='@apply '+oo+';')}),!Kt)return Wt;let Gt=this._consumeCssProperties(Kt),Xt=Wt.slice(0,Wt.indexOf('--')),Vt=this._cssTextToMap(Gt),Yt=Vt,zt=this._map.get(jt),Jt=zt&&zt.properties;Jt?Yt=Object.assign(Object.create(Jt),Vt):this._map.set(jt,Yt);let Qt,Zt,$t=[],eo=!1;for(Qt in Yt)Zt=Vt[Qt],void 0==Zt&&(Zt='initial'),Jt&&!(Qt in Jt)&&(eo=!0),$t.push(jt+xt+Qt+': '+Zt);return eo&&this._invalidateMixinEntry(zt),zt&&(zt.properties=Yt),Bt&&(Xt=Wt+';'+Xt),Xt+$t.join('; ')+';'}}let wt=new It;window.ApplyShim=wt;let Ot=function(){};if(!Le){let Wt=Xt=>{return Xt.classList&&!Xt.classList.contains(ct.SCOPE_NAME)||Xt instanceof SVGElement&&(!Xt.hasAttribute('class')||0>Xt.getAttribute('class').indexOf(ct.SCOPE_NAME))},jt=Xt=>{for(let Yt,Vt=0;Vt<Xt.length;Vt++)if(Yt=Xt[Vt],Yt.target!==document.documentElement&&Yt.target!==document.head){for(let Jt,zt=0;zt<Yt.addedNodes.length;zt++)if(Jt=Yt.addedNodes[zt],Wt(Jt)){let $t=Jt.getRootNode();if($t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let Qt=$t.host;if(Qt){let Zt=Qt.is||Qt.localName;ct.dom(Jt,Zt)}}}for(let Jt,zt=0;zt<Yt.removedNodes.length;zt++)if(Jt=Yt.removedNodes[zt],Jt.nodeType===Node.ELEMENT_NODE){let $t;if(Jt.classList?$t=Array.from(Jt.classList):Jt.hasAttribute('class')&&($t=Jt.getAttribute('class').split(/\s+/)),void 0!=$t){let Qt=$t.indexOf(ct.SCOPE_NAME);if(0<=Qt){let Zt=$t[Qt+1];Zt&&ct.dom(Jt,Zt,!0)}}}}},Bt=new MutationObserver(jt),Kt=Xt=>{Bt.observe(Xt,{childList:!0,subtree:!0})},Gt=window.customElements&&!window.customElements.flush;if(Gt)Kt(document);else{let Xt=()=>{Kt(document.body)};window.HTMLImports?window.HTMLImports.whenReady(Xt):requestAnimationFrame(function(){if('loading'===document.readyState){let Vt=function(){Xt(),document.removeEventListener('readystatechange',Vt)};document.addEventListener('readystatechange',Vt)}else Xt()})}Ot=function(){jt(Bt.takeRecords())}}let Lt=new class{constructor(Wt=100){this.cache={},this.typeMax=Wt}_validate(Wt,jt,Bt){for(let Gt,Kt=0;Kt<Bt.length;Kt++)if(Gt=Bt[Kt],Wt.properties[Gt]!==jt[Gt])return!1;return!0}store(Wt,jt,Bt,Kt){let Gt=this.cache[Wt]||[];Gt.push({properties:jt,styleElement:Bt,scopeSelector:Kt}),Gt.length>this.typeMax&&Gt.shift(),this.cache[Wt]=Gt}fetch(Wt,jt,Bt){let Kt=this.cache[Wt];if(Kt)for(let Xt,Gt=Kt.length-1;0<=Gt;Gt--)if(Xt=Kt[Gt],this._validate(Xt,jt,Bt))return Xt}};class Dt{constructor(){this._scopeCounter={},this._documentOwner=document.documentElement,this._documentOwnerStyleInfo=mt.set(document.documentElement,new mt({rules:[]})),this._elementsHaveApplied=!1}get nativeShadow(){return Le}get nativeCss(){return De}get nativeCssApply(){return!1}flush(){Ot()}_generateScopeSelector(Wt){let jt=this._scopeCounter[Wt]=(this._scopeCounter[Wt]||0)+1;return`${Wt}-${jt}`}getStyleAst(Wt){return ue(Wt)}styleAstToString(Wt){return _e(Wt)}_gatherStyles(Wt){let jt=Wt.content.querySelectorAll('style'),Bt=[];for(let Gt,Kt=0;Kt<jt.length;Kt++)Gt=jt[Kt],Bt.push(Gt.textContent),Gt.parentNode.removeChild(Gt);return Bt.join('').trim()}_getCssBuild(Wt){let jt=Wt.content.querySelector('style');return jt?jt.getAttribute('css-build')||'':''}prepareTemplate(Wt,jt,Bt){if(!Wt._prepared){Wt._prepared=!0,Wt.name=jt,Wt.extends=Bt,ht[jt]=Wt;let Kt=this._getCssBuild(Wt),Gt=this._gatherStyles(Wt),Xt={is:jt,extends:Bt,__cssBuild:Kt};this.nativeShadow||ct.dom(Wt.content,jt);let Vt=wt.detectMixin(Gt),Yt=ee(Gt);Vt&&this.nativeCss&&!this.nativeCssApply&&wt.transformRules(Yt,jt),Wt._styleAst=Yt;let zt=[];if(this.nativeCss||(zt=Nt.decorateStyles(Wt._styleAst,Xt)),!zt.length||this.nativeCss){let Jt=this.nativeShadow?Wt.content:null,$t=St[jt],Qt=this._generateStaticStyle(Xt,Wt._styleAst,Jt,$t);Wt._style=Qt}Wt._ownPropertyNames=zt}}_generateStaticStyle(Wt,jt,Bt,Kt){let Gt=ct.elementStyles(Wt,jt);if(Gt.length)return ge(Gt,Wt.is,Bt,Kt)}_prepareHost(Wt){let Bt,jt=Wt.getAttribute('is')||Wt.localName;jt!==Wt.localName&&(Bt=Wt.localName);let Xt,Vt,Yt,Kt=St[jt],Gt=ht[jt];return Gt&&(Xt=Gt._styleAst,Vt=Gt._ownPropertyNames,Yt=Gt._cssBuild),mt.set(Wt,new mt(Xt,Kt,Vt,jt,Bt,Yt))}applyStyle(Wt,jt){let Bt=Wt.getAttribute('is')||Wt.localName,Kt=mt.get(Wt),Gt=!!Kt;if(Kt||(Kt=this._prepareHost(Wt)),this._isRootOwner(Wt)||(this._elementsHaveApplied=!0),window.CustomStyle){let Xt=window.CustomStyle;if(Xt._documentDirty){if(Xt.findStyles(),this.nativeCss?!this.nativeCssApply&&Xt._revalidateApplyShim():this._updateProperties(this._documentOwner,this._documentOwnerStyleInfo),Xt.applyStyles(),!this._elementsHaveApplied)return;if(!this.nativeCss&&(this.updateStyles(),Gt))return}}if(jt&&(Kt.overrideStyleProperties=Kt.overrideStyleProperties||{},Object.assign(Kt.overrideStyleProperties,jt)),this.nativeCss){Kt.overrideStyleProperties&&this._updateNativeProperties(Wt,Kt.overrideStyleProperties);let Xt=ht[Bt];if(!Xt&&!this._isRootOwner(Wt))return;if(Xt&&Xt._applyShimInvalid&&Xt._style){if(Xt._validating||(wt.transformRules(Xt._styleAst,Bt),Xt._style.textContent=ct.elementStyles(Wt,Kt.styleRules),mt.startValidating(Bt)),this.nativeShadow){let Vt=Wt.shadowRoot;if(Vt){let Yt=Vt.querySelector('style');Yt.textContent=ct.elementStyles(Wt,Kt.styleRules)}}Kt.styleRules=Xt._styleAst}}else this._updateProperties(Wt,Kt),Kt.ownStylePropertyNames&&Kt.ownStylePropertyNames.length&&this._applyStyleProperties(Wt,Kt);if(Gt){let Xt=this._isRootOwner(Wt)?Wt:Wt.shadowRoot;Xt&&this._applyToDescendants(Xt)}}_applyToDescendants(Wt){let jt=Wt.children||Wt.childNodes;for(let Kt,Bt=0;Bt<jt.length;Bt++)Kt=jt[Bt],Kt.shadowRoot&&this.applyStyle(Kt),this._applyToDescendants(Kt)}_styleOwnerForNode(Wt){let jt=Wt.getRootNode(),Bt=jt.host;return Bt?mt.get(Bt)?Bt:this._styleOwnerForNode(Bt):this._documentOwner}_isRootOwner(Wt){return Wt===this._documentOwner}_applyStyleProperties(Wt,jt){let Bt=Wt.getAttribute('is')||Wt.localName,Kt=Lt.fetch(Bt,jt.styleProperties,jt.ownStylePropertyNames),Gt=Kt&&Kt.scopeSelector,Xt=Kt?Kt.styleElement:null,Vt=jt.scopeSelector;jt.scopeSelector=Gt||this._generateScopeSelector(Bt);let Yt=Nt.applyElementStyle(Wt,jt.styleProperties,jt.scopeSelector,Xt);return this.nativeShadow||Nt.applyElementScopeSelector(Wt,jt.scopeSelector,Vt),Kt||Lt.store(Bt,jt.styleProperties,Yt,jt.scopeSelector),Yt}_updateProperties(Wt,jt){let Bt=this._styleOwnerForNode(Wt),Kt=mt.get(Bt),Gt=Kt.styleProperties,Xt=Object.create(Gt||null),Vt=Nt.hostAndRootPropertiesForScope(Wt,jt.styleRules),Yt=Nt.propertyDataFromStyles(Kt.styleRules,Wt),zt=Yt.properties;Object.assign(Xt,Vt.hostProps,zt,Vt.rootProps),this._mixinOverrideStyles(Xt,jt.overrideStyleProperties),Nt.reify(Xt),jt.styleProperties=Xt}_mixinOverrideStyles(Wt,jt){for(let Bt in jt){let Kt=jt[Bt];(Kt||0===Kt)&&(Wt[Bt]=Kt)}}_updateNativeProperties(Wt,jt){for(let Bt in jt)null===Bt?Wt.style.removeProperty(Bt):Wt.style.setProperty(Bt,jt[Bt])}updateStyles(Wt){this.applyStyle(this._documentOwner,Wt)}_transformCustomStyleForDocument(Wt){let jt=ue(Wt);ye(jt,Bt=>{Le?ct.normalizeRootSelector(Bt):ct.documentRule(Bt),this.nativeCss&&!this.nativeCssApply&&wt.transformRule(Bt)}),this.nativeCss?Wt.textContent=_e(jt):this._documentOwnerStyleInfo.styleRules.rules.push(jt)}_revalidateApplyShim(Wt){if(this.nativeCss&&!this.nativeCssApply){let jt=ue(Wt);wt.transformRules(jt),Wt.textContent=_e(jt)}}_applyCustomStyleToDocument(Wt){this.nativeCss||Nt.applyCustomStyle(Wt,this._documentOwnerStyleInfo.styleProperties)}getComputedStyleValue(Wt,jt){let Bt;if(!this.nativeCss){let Kt=mt.get(Wt)||mt.get(this._styleOwnerForNode(Wt));Bt=Kt.styleProperties[jt]}return Bt=Bt||window.getComputedStyle(Wt).getPropertyValue(jt),Bt.trim()}setElementClass(Wt,jt){let Bt=Wt.getRootNode(),Kt=jt?jt.split(/\s/):[],Gt=Bt.host&&Bt.host.localName;if(!Gt){var Xt=Wt.getAttribute('class');if(Xt){let Vt=Xt.split(/\s/);for(let Yt=0;Yt<Vt.length;Yt++)if(Vt[Yt]===ct.SCOPE_NAME){Gt=Vt[Yt+1];break}}}if(Gt&&Kt.push(ct.SCOPE_NAME,Gt),!this.nativeCss){let Vt=mt.get(Wt);Vt&&Vt.scopeSelector&&Kt.push(Nt.XSCOPE_NAME,Vt.scopeSelector)}Ee(Wt,Kt.join(' '))}_styleInfoForNode(Wt){return mt.get(Wt)}}window.ShadyCSS=new Dt;let kt=window.ShadyCSS,Ht=!1,Ft=[],Ut=null;class qt extends HTMLElement{static get _customStyles(){return Ft}static get processHook(){return Ut}static set processHook(Wt){Ut=Wt}static get _documentDirty(){return Ht}static findStyles(){for(let jt,Wt=0;Wt<Ft.length;Wt++)if(jt=Ft[Wt],!jt._style){let Bt=jt.querySelector('style');if(!Bt)continue;if(Bt.__appliedElement)for(let Gt,Kt=0;Kt<Bt.attributes.length;Kt++)Gt=Bt.attributes[Kt],Bt.__appliedElement.setAttribute(Gt.name,Gt.value);jt._style=Bt.__appliedElement||Bt,Ut&&Ut(jt._style),kt._transformCustomStyleForDocument(jt._style)}}static _revalidateApplyShim(){for(let jt,Wt=0;Wt<Ft.length;Wt++)jt=Ft[Wt],jt._style&&kt._revalidateApplyShim(jt._style)}static applyStyles(){for(let jt,Wt=0;Wt<Ft.length;Wt++)jt=Ft[Wt],jt._style&&kt._applyCustomStyleToDocument(jt._style);Ht=!1}constructor(){super(),Ft.push(this),Ae()}}window.CustomStyle=qt,window.customElements.define('custom-style',qt),function(){'use strict';if(HTMLImports.whenReady(function(){requestAnimationFrame(function(){window.dispatchEvent(new CustomEvent('WebComponentsReady'))})}),customElements&&customElements.polyfillWrapFlushCallback){function jt(){if(Bt){let Gt=Bt;Bt=null,Gt()}}let Bt,Kt=HTMLImports.whenReady;customElements.polyfillWrapFlushCallback(function(Gt){Bt=Gt,Kt(jt)}),HTMLImports.whenReady=function(Gt){Kt(function(){jt(),Gt()})}}}(window.WebComponents),function(){var jt=document.createElement('style');jt.textContent='body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n';var Bt=document.querySelector('head');Bt.insertBefore(jt,Bt.firstChild)}(window.WebComponents)})();
//# sourceMappingURL=webcomponents-lite.js.map