mirror of
https://github.com/jlengrand/webcomponentsjs.git
synced 2026-03-10 08:51:22 +00:00
7 lines
104 KiB
JavaScript
7 lines
104 KiB
JavaScript
(function(){'use strict';function ee(jt){return jt=te(jt),re(oe(jt),jt)}function te(jt){return jt.replace(we.comments,'').replace(we.port,'')}function oe(jt){let Wt={start:0,end:jt.length},Bt=Wt;for(let Kt=0,Gt=jt.length;Kt<Gt;Kt++)if(jt[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 jt[Kt]===xe&&(Bt.end=Kt+1,Bt=Bt.parent||Wt);return Wt}function re(jt,Wt){let Bt=Wt.substring(jt.start,jt.end-1);if(jt.parsedCssText=jt.cssText=Bt.trim(),jt.parent){let Gt=jt.previous?jt.previous.end:jt.parent.start;Bt=Wt.substring(Gt,jt.start-1),Bt=ne(Bt),Bt=Bt.replace(we.multipleSpaces,' '),Bt=Bt.substring(Bt.lastIndexOf(';')+1);let Xt=jt.parsedSelector=jt.selector=Bt.trim();jt.atRule=0===Xt.indexOf('@'),jt.atRule?0===Xt.indexOf('@media')?jt.type=Pe.MEDIA_RULE:Xt.match(we.keyframesRule)&&(jt.type=Pe.KEYFRAMES_RULE,jt.keyframesName=jt.selector.split(we.multipleSpaces).pop()):0===Xt.indexOf(Me)?jt.type=Pe.MIXIN_RULE:jt.type=Pe.STYLE_RULE}let Kt=jt.rules;if(Kt)for(let Vt,Gt=0,Xt=Kt.length;Gt<Xt&&(Vt=Kt[Gt]);Gt++)re(Vt,Wt);return jt}function ne(jt){return jt.replace(/\\([0-9a-f]{1,6})\s/gi,function(){let Wt=arguments[1],Bt=6-Wt.length;for(;Bt--;)Wt='0'+Wt;return'\\'+Wt})}function se(jt,Wt,Bt){Bt=Bt||'';let Kt='';if(jt.cssText||jt.rules){let Gt=jt.rules;if(Gt&&!ae(Gt))for(let Yt,Xt=0,Vt=Gt.length;Xt<Vt&&(Yt=Gt[Xt]);Xt++)Kt=se(Yt,Wt,Kt);else Kt=Wt?jt.cssText:le(jt.cssText),Kt=Kt.trim(),Kt&&(Kt=' '+Kt+'\n')}return Kt&&(jt.selector&&(Bt+=jt.selector+' '+Re+'\n'),Bt+=Kt,jt.selector&&(Bt+=xe+'\n\n')),Bt}function ae(jt){return 0===jt[0].selector.indexOf(Me)}function le(jt){return jt=ie(jt),de(jt)}function ie(jt){return jt.replace(we.customProp,'').replace(we.mixinProp,'')}function de(jt){return jt.replace(we.mixinApply,'').replace(we.varApply,'')}function he(jt){jt&&(Le=Le&&!jt.shimcssproperties,De=De&&!jt.shimshadow)}function _e(jt,Wt){return'string'==typeof jt&&(jt=ee(jt)),Wt&&ye(jt,Wt),se(jt,Le)}function ue(jt){return!jt.__cssRules&&jt.textContent&&(jt.__cssRules=ee(jt.textContent)),jt.__cssRules}function me(jt){return jt.parent&&jt.parent.type===Pe.KEYFRAMES_RULE}function ye(jt,Wt,Bt,Kt){if(jt){let Gt=!1;if(Kt&&jt.type===Pe.MEDIA_RULE){let Vt=jt.selector.match(Fe.MEDIA_MATCH);Vt&&!window.matchMedia(Vt[1]).matches&&(Gt=!0)}jt.type===Pe.STYLE_RULE?Wt(jt):Bt&&jt.type===Pe.KEYFRAMES_RULE?Bt(jt):jt.type===Pe.MIXIN_RULE&&(Gt=!0);let Xt=jt.rules;if(Xt&&!Gt)for(let zt,Vt=0,Yt=Xt.length;Vt<Yt&&(zt=Xt[Vt]);Vt++)ye(zt,Wt,Bt,Kt)}}function ge(jt,Wt,Bt,Kt){let Gt=be(jt,Wt);return fe(Gt,Bt,Kt)}function fe(jt,Wt,Bt){Wt=Wt||document.head;let Kt=Bt&&Bt.nextSibling||Wt.firstChild;return He=jt,Wt.insertBefore(jt,Kt)}function be(jt,Wt){let Bt=document.createElement('style');return Wt&&Bt.setAttribute('scope',Wt),Bt.textContent=jt,Bt}function ve(jt){let Wt=document.createComment(' Shady DOM styles for '+jt+' '),Bt=He?He.nextSibling:null,Kt=document.head;return Kt.insertBefore(Wt,Bt||Kt.firstChild),He=Wt,Wt}function Ne(jt,Wt){let Bt=0;for(let Kt=Wt,Gt=jt.length;Kt<Gt;Kt++)if('('===jt[Kt])Bt++;else if(')'===jt[Kt]&&0==--Bt)return Kt;return-1}function Se(jt,Wt){let Bt=jt.indexOf('var(');if(-1===Bt)return Wt(jt,'','','');let Kt=Ne(jt,Bt+3),Gt=jt.substring(Bt+4,Kt),Xt=jt.substring(0,Bt),Vt=Se(jt.substring(Kt+1),Wt),Yt=Gt.indexOf(',');if(-1===Yt)return Wt(Xt,Gt.trim(),'',Vt);let zt=Gt.substring(0,Yt).trim(),Jt=Gt.substring(Yt+1).trim();return Wt(Xt,zt,Jt,Vt)}function Ee(jt,Wt){window.ShadyDOM?window.ShadyDOM.nativeMethods.setAttribute.call(jt,'class',Wt):jt.setAttribute('class',Wt)}function Ce(jt,Wt){let Bt=parseInt(jt/32);Wt[Bt]=(Wt[Bt]||0)|1<<jt%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 Wt=function(){var zt=document.createEvent('Event');return zt.initEvent('foo',!0,!0),zt.preventDefault(),zt.defaultPrevented}();if(!Wt){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(jt){'use strict';function Wt(no){return Qt[no]!==void 0}function Bt(){Yt.call(this),this._isInvalid=!0}function Kt(no){return''==no&&Bt.call(this),no.toLowerCase()}function Gt(no){var so=no.charCodeAt(0);return 32<so&&127>so&&-1==[34,35,60,62,63,96].indexOf(so)?no:encodeURIComponent(no)}function Xt(no){var so=no.charCodeAt(0);return 32<so&&127>so&&-1==[34,35,60,62,96].indexOf(so)?no:encodeURIComponent(no)}function Vt(no,so,ao){function lo(Eo){uo.push(Eo)}var io=so||'scheme start',po=0,co='',ho=!1,_o=!1,uo=[];loop:for(;(no[po-1]!=eo||0==po)&&!this._isInvalid;){var mo=no[po];switch(io){case'scheme start':if(mo&&to.test(mo))co+=mo.toLowerCase(),io='scheme';else if(!so){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='',so)break loop;Wt(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(!so){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||!Wt(ao._scheme))lo('Missing scheme.'),Bt.call(this);else{io='relative';continue}break;case'relative or authority':if('/'==mo&&'/'==no[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=no[po+1],go=no[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'==so)break loop;}else if(eo==mo||'/'==mo||'\\'==mo||'?'==mo||'#'==mo){if(this._host=Kt.call(this,co),co='',io='relative path start',so)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||so){if(''!=co){var No=parseInt(co,10);No!=Qt[this._scheme]&&(this._port=No+''),co=''}if(so)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||!so&&('?'==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':so||'#'!=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(no,so){so===void 0||so instanceof zt||(so=new zt(so+'')),this._url=no,Yt.call(this);var ao=no.replace(/^[ \t\r\n\f]+|[ \t\r\n\f]+$/g,'');Vt.call(this,ao,null,so)}var Jt=!1;if(!jt.forceJURL)try{var $t=new URL('b','http://a');$t.pathname='c%20d',Jt='http://a/c%20d'===$t.href}catch(no){}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 no='';return(''!=this._username||null!=this._password)&&(no=this._username+(null==this._password?'':':'+this._password)+'@'),this.protocol+(this._isRelative?'//'+no+this.host:'')+this.pathname+this._query+this._fragment},set href(no){Yt.call(this),Vt.call(this,no)},get protocol(){return this._scheme+':'},set protocol(no){this._isInvalid||Vt.call(this,no+':','scheme start')},get host(){return this._isInvalid?'':this._port?this._host+':'+this._port:this._host},set host(no){this._isInvalid||!this._isRelative||Vt.call(this,no,'host')},get hostname(){return this._host},set hostname(no){this._isInvalid||!this._isRelative||Vt.call(this,no,'hostname')},get port(){return this._port},set port(no){this._isInvalid||!this._isRelative||Vt.call(this,no,'port')},get pathname(){return this._isInvalid?'':this._isRelative?'/'+this._path.join('/'):this._schemeData},set pathname(no){this._isInvalid||!this._isRelative||(this._path=[],Vt.call(this,no,'relative path start'))},get search(){return this._isInvalid||!this._query||'?'==this._query?'':this._query},set search(no){this._isInvalid||!this._isRelative||(this._query='?','?'==no[0]&&(no=no.slice(1)),Vt.call(this,no,'query'))},get hash(){return this._isInvalid||!this._fragment||'#'==this._fragment?'':this._fragment},set hash(no){this._isInvalid||(this._fragment='#','#'==no[0]&&(no=no.slice(1)),Vt.call(this,no,'fragment'))},get origin(){var no;if(this._isInvalid||!this._scheme)return'';switch(this._scheme){case'data':case'file':case'javascript':case'mailto':return'null';}return no=this.host,no?this._scheme+'://'+no:''}};var ro=jt.URL;ro&&(zt.createObjectURL=function(){return ro.createObjectURL.apply(ro,arguments)},zt.revokeObjectURL=function(no){ro.revokeObjectURL(no)}),jt.URL=zt}}(window),function(){var jt=Node.prototype.cloneNode,Wt=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||!(document.createDocumentFragment().cloneNode()instanceof DocumentFragment)}}(),Xt='template',Vt=function(){};if(Kt){function eo(ro){Object.defineProperty(ro,'innerHTML',{get:function(){for(var no='',so=this.content.firstChild;so;so=so.nextSibling)no+=so.outerHTML||oo(so.data);return no},set:function(no){for(Yt.body.innerHTML=no,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?'&':'<'===ro?'<':'>'===ro?'>':'\xA0'===ro?' ':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 no;no=ro.firstChild;)ro.content.appendChild(no);if(Qt)ro.__proto__=Vt.prototype;else if(ro.cloneNode=function(so){return Vt._cloneNode(this,so)},zt)try{eo(ro)}catch(so){zt=!1}Vt.bootstrap(ro.content)}},eo(Vt.prototype),Vt.bootstrap=function(ro){for(var lo,no=ro.querySelectorAll(Xt),so=0,ao=no.length;so<ao&&(lo=no[so]);so++)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=jt.call(eo,!1);return this.decorate&&this.decorate(oo),to&&(oo.content.appendChild(jt.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),no=0,so=ro.length;no<so;no++)lo=oo[no],ao=ro[no],this.decorate&&this.decorate(lo),ao.parentNode.replaceChild(lo.cloneNode(!0),ao)},Node.prototype.cloneNode=function(eo){var to;if(this instanceof DocumentFragment){if(!eo)return this.ownerDocument.createDocumentFragment();to=this.ownerDocument.importNode(this,!0)}else to=jt.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=Wt.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(jt,Wt){'object'==typeof exports&&'undefined'!=typeof module?module.exports=Wt():'function'==typeof define&&define.amd?define(Wt):jt.ES6Promise=Wt()}(window,function(){'use strict';function jt(Jo){return'function'==typeof Jo||'object'==typeof Jo&&null!==Jo}function Wt(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<Io;Jo+=2){var $o=jo[Jo],Qo=jo[Jo+1];$o(Qo),jo[Jo]=void 0,jo[Jo+1]=void 0}Io=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];Lo(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 no(Jo,$o,Qo,Zo){try{Jo.call($o,Qo,Zo)}catch(er){return er}}function so(Jo,$o,Qo){Lo(function(Zo){var er=!1,tr=no(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):Wt(Qo)?so(Jo,$o,Qo):co(Jo,$o)}function io(Jo,$o){Jo===$o?ho(Jo,to()):jt($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&&Lo(uo,Jo))}function ho(Jo,$o){Jo._state===Ko&&(Jo._state=Xo,Jo._result=$o,Lo(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&&Lo(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=Wt(Qo),tr,or,rr,nr;if(!er)tr=Zo,rr=!0;else if(tr=yo(Qo,Zo),tr===Yo?(nr=!0,or=tr.error,tr=null):rr=!0,$o===tr)return void ho($o,oo());$o._state!==Ko||(er&&rr?io($o,tr):nr?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),Mo($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 wo=Array.isArray?Array.isArray:function(Jo){return'[object Array]'===Object.prototype.toString.call(Jo)};var Mo=wo,Io=0,Oo=void 0,Do=void 0,Lo=function(Jo,$o){jo[Io]=Jo,jo[Io+1]=$o,Io+=2,2==Io&&(Do?Do(Jt):Wo())},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,jo=Array(1e3),Wo;Wo=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(Mo(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){Do=Jo},Ro._setAsap=function(Jo){Lo=Jo},Ro._asap=Lo,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(),(jt=>{const Wt=!!('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(uo,mo){uo.href&&uo.setAttribute('href',Yt.replaceAttrUrl(uo.getAttribute('href'),mo)),uo.src&&uo.setAttribute('src',Yt.replaceAttrUrl(uo.getAttribute('src'),mo)),'style'===uo.localName&&Yt.resolveUrlsInStyle(uo,mo)},fixUrlAttributes(uo,mo){const yo=['action','src','href','url','style'];for(let fo,go=0;go<yo.length&&(fo=yo[go]);go++){const bo=uo.attributes[fo],vo=bo&&bo.value;vo&&0>vo.search(/({{|\[\[)/)&&(bo.value='style'===fo?Yt.resolveUrlsInCssText(vo,mo):Yt.replaceAttrUrl(vo,mo))}},fixUrlsInTemplates(uo,mo){const yo=uo.querySelectorAll('template');for(let go=0;go<yo.length;go++)Yt.fixUrlsInTemplate(yo[go],mo)},fixUrlsInTemplate(uo,mo){const yo=uo.content||uo,go=yo.querySelectorAll('style, form[action], [src], [href], [url], [style]');for(let fo=0;fo<go.length;fo++){const bo=go[fo];'style'==bo.localName?Yt.resolveUrlsInStyle(bo,mo):Yt.fixUrlAttributes(bo,mo)}Yt.fixUrlsInTemplates(yo,mo)},resolveUrlsInStyle(uo,mo){uo.textContent=Yt.resolveUrlsInCssText(uo.textContent,mo)},resolveUrlsInCssText(uo,mo){let yo=Yt.replaceUrls(uo,mo,Gt);return yo=Yt.replaceUrls(yo,mo,Xt),yo},replaceUrls(uo,mo,yo){return uo.replace(yo,(go,fo,bo,vo)=>{let No=bo.replace(/["']/g,'');return mo&&(No=Yt.resolveUrl(No,mo)),fo+'\''+No+'\''+vo})},replaceAttrUrl(uo,mo){return uo&&Kt.test(uo)?uo:Yt.resolveUrl(uo,mo)},resolveUrl(uo,mo){if(void 0===Yt.__workingURL){Yt.__workingURL=!1;try{const go=new URL('b','http://a');go.pathname='c%20d',Yt.__workingURL='http://a/c%20d'===go.href}catch(go){}}if(Yt.__workingURL)return new URL(uo,mo).href;let yo=Yt.__tempDoc;return yo||(yo=document.implementation.createHTMLDocument('temp'),Yt.__tempDoc=yo,yo.__base=yo.createElement('base'),yo.head.appendChild(yo.__base),yo.__anchor=yo.createElement('a')),yo.__base.href=mo,yo.__anchor.href=uo,yo.__anchor.href||uo}},zt={async:!0,load(uo){return new Promise((mo,yo)=>{if(!uo)yo({resource:'error: href must be specified'});else if(uo.match(/^data:/)){const go=uo.split(','),fo=go[0];let bo=go[1];bo=-1<fo.indexOf(';base64')?atob(bo):decodeURIComponent(bo),mo({resource:bo})}else{const go=new XMLHttpRequest;go.open('GET',uo,zt.async),go.addEventListener('readystatechange',()=>{if(4===go.readyState){let fo;try{const vo=go.getResponseHeader('Location');vo&&(fo='/'===vo.substr(0,1)?location.origin+vo:vo)}catch(vo){console.error(vo.message)}const bo={resource:go.response||go.responseText,redirectedUrl:fo};304===go.status||0===go.status||200<=go.status&&300>go.status?mo(bo):yo(bo)}}),go.send()}})}},Jt=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent),$t='onunhandledrejection'in window,Qt='link[rel=import]',Zt='import-disable',eo=`link[rel=stylesheet][href][type=${Zt}]`,to=`${Qt}, ${eo},
|
|
style:not([type]), link[rel=stylesheet][href]:not([type]),
|
|
script:not([type]), script[type="application/javascript"],
|
|
script[type="text/javascript"]`,oo='import-dependency',ro=`${Qt}:not(${oo})`,no=`script[${oo}]`,so=`style[${oo}],
|
|
link[rel=stylesheet][${oo}]`;const lo=uo=>{return uo.nodeType===Node.ELEMENT_NODE&&'link'===uo.localName&&'import'===uo.rel},io=uo=>{return uo.__loadPromise||(uo.__loadPromise=new Promise(mo=>{'script'!==uo.localName||uo.src?Jt&&'style'===uo.localName?uo.addEventListener('load',mo):(uo.addEventListener('load',mo),uo.addEventListener('error',mo)):mo()}).then(()=>{return uo.__loaded=!0,uo})),uo.__loadPromise},po=uo=>{co(()=>ho(()=>uo&&uo()))},co=uo=>{if('loading'!==document.readyState)uo();else{const mo=()=>{'loading'!==document.readyState&&(document.removeEventListener('readystatechange',mo),uo())};document.addEventListener('readystatechange',mo)}},ho=uo=>{let mo=document.querySelectorAll(ro);const yo=[];for(let bo,go=0,fo=mo.length;go<fo&&(bo=mo[go]);go++)bo.__loaded||yo.push(io(bo));if(yo.length){let go=Promise.all(yo).then(uo);$t||go.catch(fo=>{throw console.error(fo.stack),setTimeout(()=>{throw fo}),'unhandledrejection'})}else uo()},_o=uo=>{if(Wt)return uo.ownerDocument;let mo=uo.__ownerImport;if(!mo){for(mo=uo;(mo=mo.parentNode||mo.host)&&!lo(mo););uo.__ownerImport=mo}return mo};if(Wt){const uo=document.querySelectorAll(Qt);for(let fo,yo=0,go=uo.length;yo<go&&(fo=uo[yo]);yo++)fo.import&&'loading'===fo.import.readyState||(fo.__loaded=!0);const mo=yo=>{const go=yo.target;lo(go)&&(go.__loaded=!0)};document.addEventListener('load',mo,!0),document.addEventListener('error',mo,!0)}else new class{constructor(){this.documents={},this.inflight=0,co(()=>{new MutationObserver(uo=>this.handleMutations(uo)).observe(document.head,{childList:!0,subtree:!0}),this.load()})}load(uo){let mo=uo?this.whenImportLoaded(uo):this.whenImportsLoaded(document);return mo&&(this.inflight++,mo=mo.then(()=>{if(0==--this.inflight)return this.onLoadedAll()}),!$t&&(mo=mo.catch(yo=>{throw console.error(yo.stack),setTimeout(()=>{throw yo}),'unhandledrejection'}))),mo}whenImportsLoaded(uo){const mo=uo.querySelectorAll(Qt),yo=[];for(let go=0,fo=mo.length;go<fo;go++){const bo=this.whenImportLoaded(mo[go]);bo&&yo.push(bo)}return yo.length?Promise.all(yo).then(()=>uo):null}whenImportLoaded(uo){const mo=uo.href;return void 0===this.documents[mo]?(this.documents[mo]='pending',zt.load(mo).then(yo=>{const go=this.makeDocument(yo.resource,yo.redirectedUrl||mo);return this.documents[mo]=go,this.whenImportsLoaded(go)},()=>this.documents[mo]=null).then(()=>uo)):null}makeDocument(uo,mo){if(!uo)return document.createDocumentFragment();Jt&&(uo=uo.replace(Vt,(So,Eo,Co)=>{return-1===So.indexOf('type=')?`${Eo} type=${Zt} ${Co}`:So}));let yo;const go=document.createElement('template');if(go.innerHTML=uo,go.content)yo=go.content;else for(yo=document.createDocumentFragment();go.firstChild;)yo.appendChild(go.firstChild);const fo=yo.querySelector('base');fo&&(mo=Yt.replaceAttrUrl(fo.getAttribute('href'),mo),fo.removeAttribute('href'));const bo=yo.querySelectorAll('dom-module');for(let Eo,So=0;So<bo.length&&(Eo=bo[So]);So++)Eo.setAttribute('assetpath',Yt.replaceAttrUrl(Eo.getAttribute('assetpath')||'',mo));const vo=yo.querySelectorAll(to);let No=0;for(let Co,So=0,Eo=vo.length;So<Eo&&(Co=vo[So]);So++)if(io(Co),Yt.fixUrls(Co,mo),Co.setAttribute(oo,''),'script'===Co.localName&&!Co.src&&Co.textContent){const Ao=No?`-${No}`:'',To=Co.textContent+`\n//# sourceURL=${mo}${Ao}.js\n`;Co.setAttribute('src','data:text/javascript;charset=utf-8,'+encodeURIComponent(To)),Co.textContent='',No++}return Yt.fixUrlsInTemplates(yo,mo),yo}onLoadedAll(){return this.flatten(document),Promise.all([this.waitForStyles(),this.runScripts()]).then(()=>this.fireEvents())}flatten(uo){const mo=uo.querySelectorAll(Qt);for(let fo,yo=0,go=mo.length;yo<go&&(fo=mo[yo]);yo++){const bo=this.documents[fo.href];fo.import=bo,bo&&bo.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(this.documents[fo.href]=fo,fo.readyState='loading',fo.import=fo,this.flatten(bo),fo.appendChild(bo))}}runScripts(){const uo=document.querySelectorAll(no);let mo=Promise.resolve();for(let fo,yo=0,go=uo.length;yo<go&&(fo=uo[yo]);yo++)mo=mo.then(()=>{const bo=document.createElement('script');fo.removeAttribute(oo);for(let vo=0,No=fo.attributes.length;vo<No;vo++)bo.setAttribute(fo.attributes[vo].name,fo.attributes[vo].value);return Bt=bo,fo.parentNode.replaceChild(bo,fo),io(bo).then(()=>Bt=null)});return mo}waitForStyles(){const uo=!!document.querySelector(eo),mo=document.querySelectorAll(so),yo=[];for(let bo,go=0,fo=mo.length;go<fo&&(bo=mo[go]);go++)if(yo.push(io(bo).then(()=>bo.removeAttribute(oo))),uo&&bo.parentNode!==document.head){let vo=_o(bo);for(;vo&&_o(vo);)vo=_o(vo);const No=bo.parentNode,So=bo.nextSibling,Eo=document.createElement(bo.localName);Eo.__appliedElement=bo,Eo.setAttribute('type','import-placeholder'),vo.parentNode===document.head?document.head.insertBefore(bo,vo):document.head.appendChild(bo),No.insertBefore(Eo,So),bo.removeAttribute('type')}return Promise.all(yo)}fireEvents(){const uo=document.querySelectorAll(Qt);for(let yo,mo=uo.length-1;0<=mo&&(yo=uo[mo]);mo--)this.fireEventIfNeeded(yo)}fireEventIfNeeded(uo){if(!uo.__loaded){uo.__loaded=!0,uo.import&&(uo.import.readyState='complete');const mo=uo.import?'load':'error';uo.dispatchEvent(new CustomEvent(mo,{bubbles:!1,cancelable:!1,detail:void 0}))}}handleMutations(uo){for(let mo=0;mo<uo.length;mo++){const yo=uo[mo];if(yo.addedNodes)for(let go=0;go<yo.addedNodes.length;go++){const fo=yo.addedNodes[go];if(fo&&fo.nodeType===Node.ELEMENT_NODE){const bo=lo(fo)?[fo]:fo.querySelectorAll(Qt);for(let vo=0;vo<bo.length;vo++){const No=bo[vo],So=this.documents[No.href];void 0===So?this.load(No):!this.inflight&&(No.import=So,this.fireEventIfNeeded(No))}}}}}};po(()=>document.dispatchEvent(new CustomEvent('HTMLImportsLoaded',{cancelable:!0,bubbles:!0,detail:void 0}))),jt.useNative=Wt,jt.whenReady=po,jt.importForElement=_o})(window.HTMLImports=window.HTMLImports||{}),function(){'use strict';window.WebComponents=window.WebComponents||{flags:{}};var Wt=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)}),Wt)for(var Gt,Kt=0;Gt=Wt.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 jt(Gn,Xn,Vn){return{index:Gn,removed:Xn,addedCount:Vn}}function Wt(Gn){return'ShadyRoot'===Gn.__localName}function Gt(Gn,Xn,Vn){(Xn=Object.getOwnPropertyDescriptor(Xn,Gn))&&Object.defineProperty(Vn,Gn,Xn)}function Xt(Gn,Xn){if(Gn&&Xn)for(var zn,Vn=Object.getOwnPropertyNames(Xn),Yn=0;Yn<Vn.length&&(zn=Vn[Yn]);Yn++)Gt(zn,Xn,Gn);return Gn||Xn}function $t(){for(kr=!1,Hr++;Lr.length;)Lr.shift()();Dr&&Dr.flush&&Dr.flush();var Gn=Hr>100;if(Lr.length&&!Gn&&$t(),Hr=0,Gn)throw Error('Loop detected in ShadyDOM distribution, aborting.')}function Qt(Gn,Xn){return Gn.__shady&&Gn.__shady[Xn]}function eo(Gn){return'&'===Gn?'&':'<'===Gn?'<':'>'===Gn?'>':'"'===Gn?'"':'\xA0'===Gn?' ':void 0}function to(Gn){return Gn.replace(jr,eo)}function oo(Gn){return Gn.replace(Wr,eo)}function ro(Gn){for(var Xn={},Vn=0;Vn<Gn.length;Vn++)Xn[Gn[Vn]]=!0;return Xn}function no(Gn,Xn,Vn){switch(Gn.nodeType){case Node.ELEMENT_NODE:Xn=Gn.localName;for(var $n,Yn='<'+Xn,zn=Gn.attributes,Jn=0;$n=zn[Jn];Jn++)Yn+=' '+$n.name+'="'+to($n.value)+'"';return Yn+='>',Br[Xn]?Yn:Yn+so(Gn,Vn)+'</'+Xn+'>';case Node.TEXT_NODE:return Gn=Gn.data,Xn&&Kr[Xn.localName]?Gn:oo(Gn);case Node.COMMENT_NODE:return'<!--'+Gn.data+'-->';default:throw window.console.error(Gn),Error('not implemented');}}function so(Gn,Xn){'template'===Gn.localName&&(Gn=Gn.content);for(var $n,Vn='',Yn=Xn?Xn(Gn):Gn.childNodes,zn=0,Jn=Yn.length;zn<Jn&&($n=Yn[zn]);zn++)Vn+=no($n,Gn,Xn);return Vn}function ho(Gn){var Xn=[];for(Xr.currentNode=Gn,Gn=Xr.firstChild();Gn;)Xn.push(Gn),Gn=Xr.nextSibling();return Xn}function No(Gn){return{get:function(){var Xn=Ur.getProperty(this,Gn);return void 0===Xn?Gr[Gn](this):Xn},configurable:!0}}function So(Gn){for(;Gn.firstChild;)Gn.removeChild(Gn.firstChild)}function Eo(){return Qr&&Qr.get?Qr.get.call(document):Ar.settings.hasDescriptors?void 0:document.activeElement}function Co(Gn){var Xn=Eo();if(!Xn)return null;var Vn=!!Ar.isShadyRoot(Gn);if(!(Gn===document||Vn&&Gn.host!==Xn&&Gn.host.contains(Xn)))return null;for(Vn=Ar.ownerShadyRootForNode(Xn);Vn&&Vn!==Gn;)Xn=Vn.host,Vn=Ar.ownerShadyRootForNode(Xn);return Gn===document?Vn?null:Xn:Vn===Gn?Xn:null}function Ao(Gn,Xn,Vn){for(var Yn in Xn){var zn=Object.getOwnPropertyDescriptor(Gn,Yn);zn&&zn.configurable||!zn&&Vn?Object.defineProperty(Gn,Yn,Xn[Yn]):Vn&&console.warn('Could not define',Yn,'on',Gn)}}function xo(Gn,Xn,Vn){Yr.patchOutsideElementAccessors(Gn),Vn=Vn||null,Gn.__shady=Gn.__shady||{},Xn.__shady=Xn.__shady||{},Vn&&(Vn.__shady=Vn.__shady||{}),Gn.__shady.previousSibling=Vn?Vn.__shady.previousSibling:Xn.lastChild;var Yn=Gn.__shady.previousSibling;Yn&&Yn.__shady&&(Yn.__shady.nextSibling=Gn),(Yn=Gn.__shady.nextSibling=Vn)&&Yn.__shady&&(Yn.__shady.previousSibling=Gn),Gn.__shady.parentNode=Xn,Vn?Vn===Xn.__shady.firstChild&&(Xn.__shady.firstChild=Gn):(Xn.__shady.lastChild=Gn,Xn.__shady.firstChild||(Xn.__shady.firstChild=Gn)),Xn.__shady.childNodes=null}function Oo(Gn,Xn,Vn){var zn,Yn=Ar.ownerShadyRootForNode(Gn);return Yn&&(Xn.__noInsertionPoint&&!Yn._changePending&&(Yn._skipUpdateInsertionPoints=!0),zn=qo(Xn,Gn,Yn))&&(Yn._skipUpdateInsertionPoints=!1),Ur.hasProperty(Gn,'firstChild')&&sn.recordInsertBefore(Xn,Gn,Vn),Uo(Xn,Gn,Yn,zn)||Gn.shadyRoot}function Do(Gn){var Vn,Xn=Ur.hasProperty(Gn,'parentNode')&&Ur.getProperty(Gn,'parentNode'),Yn=Ar.ownerShadyRootForNode(Gn);if(Xn||Yn){Vn=Xo(Gn),Xn&&sn.recordRemoveChild(Gn,Xn);var zn=Yn&&Wo(Yn,Gn),Xn=Xn&&Yn&&Xn.localName===Yn.getInsertionPointTag();(zn||Xn)&&(Yn._skipUpdateInsertionPoints=!1,Vo(Yn))}return Ko(Gn),Vn}function Lo(Gn,Xn,Vn){(Gn=Gn.__shady&&Gn.__shady.observer)&&(Xn&&Gn.addedNodes.push(Xn),Vn&&Gn.removedNodes.push(Vn),Gn.schedule())}function ko(Gn,Xn){return Xn?(Lo(Xn,null,Gn),Do(Gn)):void(Gn.parentNode&&ln.removeChild.call(Gn.parentNode,Gn),Ko(Gn))}function Ho(Gn){return void 0!==Gn.__ownerShadyRoot}function Fo(Gn){if(Gn&&Gn.nodeType){var Xn=Gn.__ownerShadyRoot;return void 0===Xn&&(Xn=Ar.isShadyRoot(Gn)?Gn:(Xn=Gn.parentNode)?Fo(Xn):Gn,document.documentElement.contains(Gn)&&(Gn.__ownerShadyRoot=Xn)),Xn}}function Uo(Gn,Xn,Vn,Yn){var zn=Vn&&Vn.getInsertionPointTag()||'',Jn=Gn.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&!Gn.__noInsertionPoint&&zn&&Gn.querySelector(zn),$n=Jn&&Jn.parentNode.nodeType!==Node.DOCUMENT_FRAGMENT_NODE;return((Gn=Jn||Gn.localName===zn)||Xn.localName===zn||Yn)&&Vn&&Vo(Vn),(Vn=jo(Xn))&&Vo(Xn.shadyRoot),Vn||Gn&&!$n}function qo(Gn,Xn,Vn){var Yn,zn=Vn.getInsertionPointTag();if(Gn.nodeType!==Node.DOCUMENT_FRAGMENT_NODE||Gn.__noInsertionPoint)Gn.localName===zn&&(sn.recordChildNodes(Xn),sn.recordChildNodes(Gn),Yn=!0);else for(var $n,Qn,zn=Gn.querySelectorAll(zn),Jn=0;Jn<zn.length&&($n=zn[Jn]);Jn++)Qn=$n.parentNode,Qn===Gn&&(Qn=Xn),Qn=qo($n,Qn,Vn),Yn=Yn||Qn;return Yn}function jo(Gn){return Gn&&Gn.shadyRoot&&Gn.shadyRoot.hasInsertionPoint()}function Wo(Gn,Xn){var Vn;Gn=Gn._insertionPoints;for(var zn,Yn=0;Yn<Gn.length;Yn++)if(zn=Gn[Yn],Bo(Xn,zn))for(var zn=zn.assignedNodes({flatten:!0}),Jn=0;Jn<zn.length;Jn++){Vn=!0;var $n=zn[Jn],Qn=Gr.parentNode($n);Qn&&ln.removeChild.call(Qn,$n)}return Vn}function Bo(Gn,Xn){for(;Xn;){if(Xn==Gn)return!0;Xn=Xn.parentNode}}function Ko(Gn){if(Ho(Gn))for(var zn,Xn=Gn.childNodes,Vn=0,Yn=Xn.length;Vn<Yn&&(zn=Xn[Vn]);Vn++)Ko(zn);Gn.__ownerShadyRoot=void 0}function Go(Gn){for(var Jn,Xn=Gn.assignedNodes({flatten:!0}),Vn=Fo(Gn),Yn=0,zn=Xn.length;Yn<zn&&(Jn=Xn[Yn]);Yn++)if(Vn.isFinalDestination(Gn,Jn))return Jn}function Xo(Gn){if(Gn=Gn.parentNode,jo(Gn))return Vo(Gn.shadyRoot),!0}function Vo(Gn){Gn._changePending=!0,Gn.update()}function Yo(Gn,Xn){'slot'===Xn?Xo(Gn):'slot'===Gn.localName&&'name'==Xn&&(Gn=Ar.ownerShadyRootForNode(Gn))&&Gn.update()}function Jo(Gn,Xn,Vn,Yn){for(var $n,zn=0,Jn=Gn.length;zn<Jn&&($n=Gn[zn]);zn++)if($n.nodeType===Node.ELEMENT_NODE&&$o($n,Xn,Vn,Yn))return!0}function $o(Gn,Xn,Vn,Yn){var zn=Xn(Gn);return zn&&Yn.push(Gn),Vn&&Vn(zn)?zn:void Jo(Gn.childNodes,Xn,Vn,Yn)}function nr(Gn,Xn){if(Gn.ownerDocument!==document)return ln.importNode.call(document,Gn,Xn);var Vn=ln.importNode.call(document,Gn,!1);if(Xn){Gn=Gn.childNodes,Xn=0;for(var Yn;Xn<Gn.length;Xn++)Yn=nr(Gn[Xn],!0),Vn.appendChild(Yn)}return Vn}function sr(Gn,Xn){var Vn=[],Yn=Gn;for(Gn=Gn===window?window:Gn.getRootNode();Yn;)Vn.push(Yn),Yn=Yn.assignedSlot?Yn.assignedSlot:Yn.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&Yn.host&&(Xn||Yn!==Gn)?Yn.host:Yn.parentNode;return Vn[Vn.length-1]===document&&Vn.push(window),Vn}function ar(Gn,Xn){if(!Ar.isShadyRoot)return Gn;Gn=sr(Gn,!0);for(var Yn,zn,Jn,$n,Vn=0;Vn<Xn.length;Vn++)if(Yn=Xn[Vn],Jn=Yn===window?window:Yn.getRootNode(),Jn!==zn&&($n=Gn.indexOf(Jn),zn=Jn),!Ar.isShadyRoot(Jn)||-1<$n)return Yn}function lr(Gn){var Xn=function(Vn,Yn){return Vn=new Gn(Vn,Yn),Vn.__composed=Yn&&!!Yn.composed,Vn};return Ar.mixin(Xn,Gn),Xn.prototype=Gn.prototype,Xn}function ir(Gn,Xn,Vn){if(Vn=Xn.__handlers&&Xn.__handlers[Gn.type]&&Xn.__handlers[Gn.type][Vn])for(var zn,Yn=0;(zn=Vn[Yn])&&(zn.call(Xn,Gn),!Gn.__immediatePropagationStopped);Yn++);}function dr(Gn){var Vn,Xn=Gn.composedPath();Object.defineProperty(Gn,'currentTarget',{get:function(){return Vn},configurable:!0});for(var Yn=Xn.length-1;0<=Yn;Yn--)if(Vn=Xn[Yn],ir(Gn,Vn,'capture'),Gn.__propagationStopped)return;Object.defineProperty(Gn,'eventPhase',{value:Event.AT_TARGET});for(var zn,Yn=0;Yn<Xn.length&&!((Vn=Xn[Yn],0===Yn||Vn.shadowRoot&&Vn.shadowRoot===zn)&&(ir(Gn,Vn,'bubble'),Vn!==window&&(zn=Vn.getRootNode()),Gn.__propagationStopped));Yn++);}function hr(){for(var Gn in Dn)window.addEventListener(Gn,function(Xn){Xn.__target||(_r(Xn),dr(Xn),Xn.stopImmediatePropagation())},!0)}function _r(Gn){Gn.__target=Gn.target,Gn.__relatedTarget=Gn.relatedTarget,Ar.settings.hasDescriptors?Ar.patchPrototype(Gn,On):Ar.extend(Gn,On)}function mr(Gn){return wn.renderRootNode(Gn),Ur.getProperty(Gn,'assignedSlot')||null}function yr(Gn,Xn){for(var Vn=Object.getOwnPropertyNames(Xn),Yn=0;Yn<Vn.length;Yn++){var zn=Vn[Yn],Jn=Object.getOwnPropertyDescriptor(Xn,zn);Jn.value?Gn[zn]=Jn.value:Object.defineProperty(Gn,zn,Jn)}}var fr={},br=0,vr=1,Nr=2,Sr=3,Er={calcEditDistances:function(Gn,Xn,Vn,Yn,zn,Jn){Jn=Jn-zn+1,Vn=Vn-Xn+1;for(var $n=Array(Jn),Qn=0;Qn<Jn;Qn++)$n[Qn]=Array(Vn),$n[Qn][0]=Qn;for(Qn=0;Qn<Vn;Qn++)$n[0][Qn]=Qn;for(Qn=1;Qn<Jn;Qn++)for(var Zn=1;Zn<Vn;Zn++)if(this.equals(Gn[Xn+Zn-1],Yn[zn+Qn-1]))$n[Qn][Zn]=$n[Qn-1][Zn-1];else{var es=$n[Qn-1][Zn]+1,ts=$n[Qn][Zn-1]+1;$n[Qn][Zn]=es<ts?es:ts}return $n},spliceOperationsFromEditDistances:function(Gn){for(var Xn=Gn.length-1,Vn=Gn[0].length-1,Yn=Gn[Xn][Vn],zn=[];0<Xn||0<Vn;)if(0==Xn)zn.push(Nr),Vn--;else if(0==Vn)zn.push(Sr),Xn--;else{var Zn,Jn=Gn[Xn-1][Vn-1],$n=Gn[Xn-1][Vn],Qn=Gn[Xn][Vn-1];Zn=$n<Qn?$n<Jn?$n:Jn:Qn<Jn?Qn:Jn,Zn==Jn?(Jn==Yn?zn.push(br):(zn.push(vr),Yn=Jn),Xn--,Vn--):Zn==$n?(zn.push(Sr),Xn--,Yn=$n):(zn.push(Nr),Vn--,Yn=Qn)}return zn.reverse(),zn},calcSplices:function(Gn,Xn,Vn,Yn,zn,Jn){var $n=0,Qn=0,Zn=Math.min(Vn-Xn,Jn-zn);if(0==Xn&&0==zn&&($n=this.sharedPrefix(Gn,Yn,Zn)),Vn==Gn.length&&Jn==Yn.length&&(Qn=this.sharedSuffix(Gn,Yn,Zn-$n)),Xn+=$n,zn+=$n,Vn-=Qn,Jn-=Qn,0==Vn-Xn&&0==Jn-zn)return[];if(Xn==Vn){for(Gn=jt(Xn,[],0);zn<Jn;)Gn.removed.push(Yn[zn++]);return[Gn]}if(zn==Jn)return[jt(Xn,[],Vn-Xn)];for(Jn=this.spliceOperationsFromEditDistances(this.calcEditDistances(Gn,Xn,Vn,Yn,zn,Jn)),Gn=void 0,Vn=[],$n=0;$n<Jn.length;$n++)switch(Jn[$n]){case br:Gn&&(Vn.push(Gn),Gn=void 0),Xn++,zn++;break;case vr:Gn||(Gn=jt(Xn,[],0)),Gn.addedCount++,Xn++,Gn.removed.push(Yn[zn]),zn++;break;case Nr:Gn||(Gn=jt(Xn,[],0)),Gn.addedCount++,Xn++;break;case Sr:Gn||(Gn=jt(Xn,[],0)),Gn.removed.push(Yn[zn]),zn++;}return Gn&&Vn.push(Gn),Vn},sharedPrefix:function(Gn,Xn,Vn){for(var Yn=0;Yn<Vn;Yn++)if(!this.equals(Gn[Yn],Xn[Yn]))return Yn;return Vn},sharedSuffix:function(Gn,Xn,Vn){for(var Yn=Gn.length,zn=Xn.length,Jn=0;Jn<Vn&&this.equals(Gn[--Yn],Xn[--zn]);)Jn++;return Jn},calculateSplices:function(Gn,Xn){return this.calcSplices(Gn,0,Gn.length,Xn,0,Xn.length)},equals:function(Gn,Xn){return Gn===Xn}};fr.calculateSplices=function(Gn,Xn){return Er.calculateSplices(Gn,Xn)};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,wr,Mr=document.createTextNode(''),Ir=0;wr={then:function(Gn){var Xn=new MutationObserver(function(){Xn.disconnect(),Gn()});Xn.observe(Mr,{characterData:!0}),Mr.textContent=Ir++}},Ar.settings=Tr,Ar.isShadyRoot=Wt,Ar.ownerShadyRootForNode=function(Gn){if(Gn=Gn.getRootNode(),Wt(Gn))return Gn},Ar.matchesSelector=function(Gn,Xn){return xr.call(Gn,Xn)},Ar.extend=Xt,Ar.extendAll=function(Gn){for(var Vn=[],Yn=1;Yn<arguments.length;++Yn)Vn[Yn-1]=arguments[Yn];for(Yn=0;Yn<Vn.length;Yn++)Xt(Gn,Vn[Yn]);return Gn},Ar.mixin=function(Gn,Xn){for(var Vn in Xn)Gn[Vn]=Xn[Vn];return Gn},Ar.patchPrototype=function(Gn,Xn){var Vn=Object.getPrototypeOf(Gn);if(!Vn.hasOwnProperty('__patchProto')){var Yn=Object.create(Vn);Yn.__sourceProto=Vn,Xt(Yn,Xn),Vn.__patchProto=Yn}Gn.__proto__=Vn.__patchProto},Ar.promish=wr;var kr,Or={},Dr=window.customElements,Lr=[],Hr=0;$t.list=Lr,Or.enqueue=function(Gn){kr||(kr=!0,Ar.promish.then($t)),Lr.push(Gn)},Or.flush=$t;var Ur={};Ur.getProperty=Qt,Ur.hasProperty=function(Gn,Xn){return void 0!==Qt(Gn,Xn)};var qr={},jr=/[&\u00A0"]/g,Wr=/[&\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=no,qr.getInnerHTML=so;var Gr={},Xr=document.createTreeWalker(document,NodeFilter.SHOW_ALL,null,!1),Vr=document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT,null,!1);Gr.parentNode=function(Gn){return Xr.currentNode=Gn,Xr.parentNode()},Gr.firstChild=function(Gn){return Xr.currentNode=Gn,Xr.firstChild()},Gr.lastChild=function(Gn){return Xr.currentNode=Gn,Xr.lastChild()},Gr.previousSibling=function(Gn){return Xr.currentNode=Gn,Xr.previousSibling()},Gr.nextSibling=function(Gn){return Xr.currentNode=Gn,Xr.nextSibling()},Gr.childNodes=ho,Gr.parentElement=function(Gn){return Vr.currentNode=Gn,Vr.parentNode()},Gr.firstElementChild=function(Gn){return Vr.currentNode=Gn,Vr.firstChild()},Gr.lastElementChild=function(Gn){return Vr.currentNode=Gn,Vr.lastChild()},Gr.previousElementSibling=function(Gn){return Vr.currentNode=Gn,Vr.previousSibling()},Gr.nextElementSibling=function(Gn){return Vr.currentNode=Gn,Vr.nextSibling()},Gr.children=function(Gn){var Xn=[];for(Vr.currentNode=Gn,Gn=Vr.firstChild();Gn;)Xn.push(Gn),Gn=Vr.nextSibling();return Xn},Gr.innerHTML=function(Gn){return qr.getInnerHTML(Gn,function(Xn){return ho(Xn)})},Gr.textContent=function(Gn){if(Gn.nodeType!==Node.ELEMENT_NODE)return Gn.nodeValue;Gn=document.createTreeWalker(Gn,NodeFilter.SHOW_TEXT,null,!1);for(var Vn,Xn='';Vn=Gn.nextNode();)Xn+=Vn.nodeValue;return Xn};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(Gn){this.setAttribute('class',Gn)},configurable:!0},nextElementSibling:{get:function(){if(Ur.hasProperty(this,'nextSibling')){for(var Gn=this.nextSibling;Gn&&Gn.nodeType!==Node.ELEMENT_NODE;)Gn=Gn.nextSibling;return Gn}return Gr.nextElementSibling(this)},configurable:!0},previousElementSibling:{get:function(){if(Ur.hasProperty(this,'previousSibling')){for(var Gn=this.previousSibling;Gn&&Gn.nodeType!==Node.ELEMENT_NODE;)Gn=Gn.previousSibling;return Gn}return Gr.previousElementSibling(this)},configurable:!0}},en={childNodes:{get:function(){if(Ur.hasProperty(this,'firstChild')){if(!this.__shady.childNodes){this.__shady.childNodes=[];for(var Gn=this.firstChild;Gn;Gn=Gn.nextSibling)this.__shady.childNodes.push(Gn)}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 Yn,Gn=[],Xn=0,Vn=this.childNodes;Yn=Vn[Xn];Xn++)Yn.nodeType!==Node.COMMENT_NODE&&Gn.push(Yn.textContent);return Gn.join('')}return Gr.textContent(this)},set:function(Gn){this.nodeType===Node.ELEMENT_NODE?(So(this),Gn&&this.appendChild(document.createTextNode(Gn))):this.nodeValue=Gn},configurable:!0},firstElementChild:{get:function(){if(Ur.hasProperty(this,'firstChild')){for(var Gn=this.firstChild;Gn&&Gn.nodeType!==Node.ELEMENT_NODE;)Gn=Gn.nextSibling;return Gn}return Gr.firstElementChild(this)},configurable:!0},lastElementChild:{get:function(){if(Ur.hasProperty(this,'lastChild')){for(var Gn=this.lastChild;Gn&&Gn.nodeType!==Node.ELEMENT_NODE;)Gn=Gn.previousSibling;return Gn}return Gr.lastElementChild(this)},configurable:!0},children:{get:function(){return Ur.hasProperty(this,'firstChild')?Array.prototype.filter.call(this.childNodes,function(Gn){return Gn.nodeType===Node.ELEMENT_NODE}):Gr.children(this)},configurable:!0},innerHTML:{get:function(){var Gn='template'===this.localName?this.content:this;return Ur.hasProperty(this,'firstChild')?qr.getInnerHTML(Gn):Gr.innerHTML(Gn)},set:function(Gn){var Xn='template'===this.localName?this.content:this;for(So(Xn),zr&&zr.set?zr.set.call($r,Gn):$r.innerHTML=Gn;$r.firstChild;)Xn.appendChild($r.firstChild)},configurable:!0}},tn={shadowRoot:{get:function(){return this.shadyRoot},set:function(Gn){this.shadyRoot=Gn},configurable:!0}},on={activeElement:{get:function(){return Co(this)},set:function(){},configurable:!0}},rn=Ar.settings.hasDescriptors?function(){}:function(Gn){Gn.__shady&&Gn.__shady.__outsideAccessors||(Gn.__shady=Gn.__shady||{},Gn.__shady.__outsideAccessors=!0,Ao(Gn,Zr,!0))},nn=Ar.settings.hasDescriptors?function(){}:function(Gn){Gn.__shady&&Gn.__shady.__insideAccessors||(Gn.__shady=Gn.__shady||{},Gn.__shady.__insideAccessors=!0,Ao(Gn,en,!0),Ao(Gn,tn,!0))};Yr.ShadowRootAccessor=tn,Yr.ActiveElementAccessor=on,Yr.patchAccessors=function(Gn){Ao(Gn,Zr),Ao(Gn,en),Ao(Gn,on)},Yr.patchShadowRootAccessors=function(Gn){Ao(Gn,en,!0),Ao(Gn,on,!0)},Yr.patchOutsideElementAccessors=rn,Yr.patchInsideElementAccessors=nn;var sn={};sn.recordInsertBefore=function(Gn,Xn,Vn){if(Yr.patchInsideElementAccessors(Xn),Xn.__shady=Xn.__shady||{},Ur.hasProperty(Xn,'firstChild')&&(Xn.__shady.childNodes=null),Gn.nodeType===Node.DOCUMENT_FRAGMENT_NODE){for(var Yn=Gn.childNodes,zn=0;zn<Yn.length;zn++)xo(Yn[zn],Xn,Vn);Gn.__shady=Gn.__shady||{},Xn=Ur.hasProperty(Gn,'firstChild')?null:void 0,Gn.__shady.firstChild=Gn.__shady.lastChild=Xn,Gn.__shady.childNodes=Xn}else xo(Gn,Xn,Vn)},sn.recordRemoveChild=function(Gn,Xn){Gn.__shady=Gn.__shady||{},Xn.__shady=Xn.__shady||{},Gn===Xn.__shady.firstChild&&(Xn.__shady.firstChild=Gn.__shady.nextSibling),Gn===Xn.__shady.lastChild&&(Xn.__shady.lastChild=Gn.__shady.previousSibling);var Vn=Gn.__shady.previousSibling,Yn=Gn.__shady.nextSibling;Vn&&(Vn.__shady=Vn.__shady||{},Vn.__shady.nextSibling=Yn),Yn&&(Yn.__shady=Yn.__shady||{},Yn.__shady.previousSibling=Vn),Gn.__shady.parentNode=Gn.__shady.previousSibling=Gn.__shady.nextSibling=void 0,Ur.hasProperty(Xn,'childNodes')&&(Xn.__shady.childNodes=null)},sn.recordChildNodes=function(Gn){if(!Ur.hasProperty(Gn,'firstChild')){Gn.__shady=Gn.__shady||{},Gn.__shady.firstChild=Gr.firstChild(Gn),Gn.__shady.lastChild=Gr.lastChild(Gn),Yr.patchInsideElementAccessors(Gn);for(var Yn,Xn=Gn.__shady.childNodes=Gr.childNodes(Gn),Vn=0;Vn<Xn.length&&(Yn=Xn[Vn]);Vn++)Yn.__shady=Yn.__shady||{},Yn.__shady.parentNode=Gn,Yn.__shady.nextSibling=Xn[Vn+1]||null,Yn.__shady.previousSibling=Xn[Vn-1]||null,Yr.patchOutsideElementAccessors(Yn)}};var ln={},dn=Element.prototype.appendChild,cn=Element.prototype.insertBefore,hn=Element.prototype.removeChild,_n=Element.prototype.setAttribute,un=Element.prototype.removeAttribute,mn=Element.prototype.cloneNode,yn=Document.prototype.importNode,gn=Element.prototype.addEventListener,bn=Element.prototype.removeEventListener;ln.appendChild=dn,ln.insertBefore=cn,ln.removeChild=hn,ln.setAttribute=_n,ln.removeAttribute=un,ln.cloneNode=mn,ln.importNode=yn,ln.addEventListener=gn,ln.removeEventListener=bn;var vn={},Nn='function'==typeof Event?Event:function(Gn,Xn){Xn=Xn||{};var Vn=document.createEvent('Event');return Vn.initEvent(Gn,!!Xn.bubbles,!!Xn.cancelable),Vn},Sn=function(Gn){this.root=Gn,this.insertionPointTag='slot'};Sn.prototype.getInsertionPoints=function(){return this.root.querySelectorAll(this.insertionPointTag)},Sn.prototype.hasInsertionPoint=function(){return this.root._insertionPoints&&this.root._insertionPoints.length},Sn.prototype.isInsertionPoint=function(Gn){return Gn.localName&&Gn.localName==this.insertionPointTag},Sn.prototype.distribute=function(){return this.hasInsertionPoint()?this.distributePool(this.root,this.collectPool()):[]},Sn.prototype.collectPool=function(){for(var Gn=[],Xn=0,Vn=this.root.host.firstChild;Vn;Vn=Vn.nextSibling)Gn[Xn++]=Vn;return Gn},Sn.prototype.distributePool=function(Gn,Xn){Gn=[];for(var Jn,Vn=this.root._insertionPoints,Yn=0,zn=Vn.length;Yn<zn&&(Jn=Vn[Yn]);Yn++){this.distributeInsertionPoint(Jn,Xn);var $n=Jn.parentNode;$n&&$n.shadyRoot&&this.hasInsertionPoint($n.shadyRoot)&&Gn.push($n.shadyRoot)}for(Vn=0;Vn<Xn.length;Vn++)(Jn=Xn[Vn])&&(Jn.__shady=Jn.__shady||{},Jn.__shady.assignedSlot=void 0,(Yn=Gr.parentNode(Jn))&&ln.removeChild.call(Yn,Jn));return Gn},Sn.prototype.distributeInsertionPoint=function(Gn,Xn){var Vn=Gn.__shady.assignedNodes;Vn&&this.clearAssignedSlots(Gn,!0),Gn.__shady.assignedNodes=[];for(var Qn,Yn=!1,zn=!1,Jn=0,$n=Xn.length;Jn<$n;Jn++)(Qn=Xn[Jn])&&this.matchesInsertionPoint(Qn,Gn)&&(Qn.__shady._prevAssignedSlot!=Gn&&(Yn=!0),this.distributeNodeInto(Qn,Gn),Xn[Jn]=void 0,zn=!0);if(!zn)for(Xn=Gn.childNodes,zn=0;zn<Xn.length;zn++)Qn=Xn[zn],Qn.__shady._prevAssignedSlot!=Gn&&(Yn=!0),this.distributeNodeInto(Qn,Gn);if(Vn){for(Qn=0;Qn<Vn.length;Qn++)Vn[Qn].__shady._prevAssignedSlot=null;Gn.__shady.assignedNodes.length<Vn.length&&(Yn=!0)}this.setDistributedNodesOnInsertionPoint(Gn),Yn&&this._fireSlotChange(Gn)},Sn.prototype.clearAssignedSlots=function(Gn,Xn){var Vn=Gn.__shady.assignedNodes;if(Vn)for(var zn,Yn=0;Yn<Vn.length;Yn++)zn=Vn[Yn],Xn&&(zn.__shady._prevAssignedSlot=zn.__shady.assignedSlot),zn.__shady.assignedSlot===Gn&&(zn.__shady.assignedSlot=null)},Sn.prototype.matchesInsertionPoint=function(Gn,Xn){return Xn=(Xn=Xn.getAttribute('name'))?Xn.trim():'',Gn=(Gn=Gn.getAttribute&&Gn.getAttribute('slot'))?Gn.trim():'',Gn==Xn},Sn.prototype.distributeNodeInto=function(Gn,Xn){Xn.__shady.assignedNodes.push(Gn),Gn.__shady.assignedSlot=Xn},Sn.prototype.setDistributedNodesOnInsertionPoint=function(Gn){var Xn=Gn.__shady.assignedNodes;Gn.__shady.distributedNodes=[];for(var Yn,Vn=0;Vn<Xn.length&&(Yn=Xn[Vn]);Vn++)if(this.isInsertionPoint(Yn)){var zn=Yn.__shady.distributedNodes;if(zn)for(var Jn=0;Jn<zn.length;Jn++)Gn.__shady.distributedNodes.push(zn[Jn])}else Gn.__shady.distributedNodes.push(Xn[Vn])},Sn.prototype._fireSlotChange=function(Gn){Gn.dispatchEvent(new Nn('slotchange')),Gn.__shady.assignedSlot&&this._fireSlotChange(Gn.__shady.assignedSlot)},Sn.prototype.isFinalDestination=function(Gn){return!Gn.__shady.assignedSlot},vn.default=Sn;var En={},Cn={},An=function(Gn,Xn){if(Gn!==Cn)throw new TypeError('Illegal constructor');return Gn=document.createDocumentFragment(),Gn.__proto__=An.prototype,Gn._init(Xn),Gn};An.prototype=Object.create(DocumentFragment.prototype),Ar.extendAll(An.prototype,{_init:function(Gn){this.__localName='ShadyRoot',sn.recordChildNodes(Gn),sn.recordChildNodes(this),Gn.shadowRoot=this,this.host=Gn,this._changePending=this._hasRendered=this._renderPending=!1,this._distributor=new vn.default(this),this.update()},update:function(){var Gn=this;this._renderPending||(this._renderPending=!0,Or.enqueue(function(){return Gn.render()}))},_getRenderRoot:function(){for(var Gn=this,Xn=this;Xn;)Xn._renderPending&&(Gn=Xn),Xn=Xn._rendererForHost();return Gn},_rendererForHost:function(){var Gn=this.host.getRootNode();if(Ar.isShadyRoot(Gn))for(var Yn,Xn=this.host.childNodes,Vn=0;Vn<Xn.length;Vn++)if(Yn=Xn[Vn],this._distributor.isInsertionPoint(Yn))return Gn},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 Gn=this._distributor.distribute(),Xn=0;Xn<Gn.length;Xn++)Gn[Xn]._render()},updateInsertionPoints:function(){var Gn=this.__insertionPoints;if(Gn)for(var Vn,Xn=0;Xn<Gn.length;Xn++)Vn=Gn[Xn],Vn.getRootNode()!==this&&this._distributor.clearAssignedSlots(Vn);for(Gn=this._insertionPoints=this._distributor.getInsertionPoints(),Xn=0;Xn<Gn.length;Xn++)Vn=Gn[Xn],Vn.__shady=Vn.__shady||{},sn.recordChildNodes(Vn),sn.recordChildNodes(Vn.parentNode)},get _insertionPoints(){return this.__insertionPoints||this.updateInsertionPoints(),this.__insertionPoints||(this.__insertionPoints=[])},set _insertionPoints(Gn){this.__insertionPoints=Gn},hasInsertionPoint:function(){return this._distributor.hasInsertionPoint()},compose:function(){this._composeTree()},_composeTree:function(){this._updateChildNodes(this.host,this._composeNode(this.host));for(var Yn,zn,Gn=this._insertionPoints||[],Xn=0,Vn=Gn.length;Xn<Vn&&(Yn=Gn[Xn]);Xn++)zn=Yn.parentNode,zn!==this.host&&zn!==this&&this._updateChildNodes(zn,this._composeNode(zn))},_composeNode:function(Gn){var Xn=[];Gn=(Gn.shadyRoot||Gn).childNodes;for(var Yn,Vn=0;Vn<Gn.length;Vn++)if(Yn=Gn[Vn],this._distributor.isInsertionPoint(Yn))for(var $n,zn=Yn.__shady.distributedNodes||(Yn.__shady.distributedNodes=[]),Jn=0;Jn<zn.length;Jn++)$n=zn[Jn],this.isFinalDestination(Yn,$n)&&Xn.push($n);else Xn.push(Yn);return Xn},isFinalDestination:function(Gn,Xn){return this._distributor.isFinalDestination(Gn,Xn)},_updateChildNodes:function(Gn,Xn){for(var $n,Vn=Gr.childNodes(Gn),Yn=fr.calculateSplices(Xn,Vn),zn=0,Jn=0;zn<Yn.length&&($n=Yn[zn]);zn++){for(var Zn,Qn=0;Qn<$n.removed.length&&(Zn=$n.removed[Qn]);Qn++)Gr.parentNode(Zn)===Gn&&ln.removeChild.call(Gn,Zn),Vn.splice($n.index+Jn,1);Jn-=$n.addedCount}for(zn=0;zn<Yn.length&&($n=Yn[zn]);zn++)for(Jn=Vn[$n.index],Qn=$n.index;Qn<$n.index+$n.addedCount;Qn++)Zn=Xn[Qn],ln.insertBefore.call(Gn,Zn,Jn),Vn.splice(Qn,0,Zn)},getInsertionPointTag:function(){return this._distributor.insertionPointTag}}),Yr.patchShadowRootAccessors(An.prototype),En.ShadyRoot=An,En.attachShadow=function(Gn,Xn){if(!Gn)throw'Must provide a host.';if(!Xn)throw'Not enough arguments.';return new An(Cn,Gn)};var Tn={},Pn=function(){this._scheduled=!1,this.addedNodes=[],this.removedNodes=[],this.callbacks=new Set};Pn.prototype.schedule=function(){var Gn=this;this._scheduled||(this._scheduled=!0,Ar.promish.then(function(){Gn.flush()}))},Pn.prototype.flush=function(){if(this._scheduled){this._scheduled=!1;var Gn=this.takeRecords();Gn.length&&this.callbacks.forEach(function(Xn){Xn(Gn)})}},Pn.prototype.takeRecords=function(){if(this.addedNodes.length||this.removedNodes.length){var Gn=[{addedNodes:this.addedNodes,removedNodes:this.removedNodes}];return this.addedNodes=[],this.removedNodes=[],Gn}return[]};Tn.observeChildren=function(Gn,Xn){Gn.__shady=Gn.__shady||{},Gn.__shady.observer||(Gn.__shady.observer=new Pn),Gn.__shady.observer.callbacks.add(Xn);var Vn=Gn.__shady.observer;return{_callback:Xn,_observer:Vn,_node:Gn,takeRecords:function(){return Vn.takeRecords()}}},Tn.unobserveChildren=function(Gn){var Xn=Gn&&Gn._observer;Xn&&(Xn.callbacks.delete(Gn._callback),Xn.callbacks.size||(Gn._node.__shady.observer=null))},Tn.filterMutations=function(Gn,Xn){var Vn=Xn.getRootNode();return Gn.map(function(Yn){var zn=Vn===Yn.target.getRootNode();if(zn&&Yn.addedNodes){if(zn=Array.from(Yn.addedNodes).filter(function(Jn){return Vn===Jn.getRootNode()}),zn.length)return Yn=Object.create(Yn),Object.defineProperty(Yn,'addedNodes',{value:zn,configurable:!0}),Yn;}else if(zn)return Yn}).filter(function(Yn){return Yn})};var wn={};wn.getRootNode=Fo,wn.query=function(Gn,Xn,Vn){var Yn=[];return Jo(Gn.childNodes,Xn,Vn,Yn),Yn},wn.renderRootNode=function(Gn){Gn=Gn.getRootNode(),Ar.isShadyRoot(Gn)&&Gn.render()},wn.setAttribute=function(Gn,Xn,Vn){window.ShadyCSS&&'class'===Xn&&Gn.ownerDocument===document?window.ShadyCSS.setElementClass(Gn,Vn):(ln.setAttribute.call(Gn,Xn,Vn),Yo(Gn,Xn))},wn.removeAttribute=function(Gn,Xn){ln.removeAttribute.call(Gn,Xn),Yo(Gn,Xn)},wn.insertBefore=function(Gn,Xn,Vn){if(Vn){var Yn=Ur.getProperty(Vn,'parentNode');if(void 0!==Yn&&Yn!==Gn)throw Error('The ref_node to be inserted before is not a child of this node')}return Xn.nodeType!==Node.DOCUMENT_FRAGMENT_NODE&&(Yn=Ur.getProperty(Xn,'parentNode'),ko(Xn,Yn)),Oo(Gn,Xn,Vn)||(Vn&&(Yn=Ar.ownerShadyRootForNode(Vn))&&(Vn=Vn.localName===Yn.getInsertionPointTag()?Go(Vn):Vn),Yn=Ar.isShadyRoot(Gn)?Gn.host:Gn,Vn?ln.insertBefore.call(Yn,Xn,Vn):ln.appendChild.call(Yn,Xn)),Lo(Gn,Xn),Xn},wn.removeChild=function(Gn,Xn){if(Xn.parentNode!==Gn)throw Error('The node to be removed is not a child of this node: '+Xn);if(!Do(Xn)){var Vn=Ar.isShadyRoot(Gn)?Gn.host:Gn,Yn=Gr.parentNode(Xn);Vn===Yn&&ln.removeChild.call(Vn,Xn)}return Lo(Gn,null,Xn),Xn},wn.cloneNode=function(Gn,Xn){if('template'==Gn.localName)return ln.cloneNode.call(Gn,Xn);var Vn=ln.cloneNode.call(Gn,!1);if(Xn){Gn=Gn.childNodes,Xn=0;for(var Yn;Xn<Gn.length;Xn++)Yn=Gn[Xn].cloneNode(!0),Vn.appendChild(Yn)}return Vn},wn.importNode=nr;var Mn={},In={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},On={get composed(){return this.isTrusted&&void 0===this.__composed&&(this.__composed=In[this.type]),this.__composed||!1},composedPath:function(){return this.__composedPath||(this.__composedPath=sr(this.__target,this.composed)),this.__composedPath},get target(){return ar(this.currentTarget,this.composedPath())},get relatedTarget(){return this.__relatedTarget?(this.__relatedTargetComposedPath||(this.__relatedTargetComposedPath=sr(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}},Dn={focus:!0,blur:!0},Ln=lr(window.Event),kn=lr(window.CustomEvent),Hn=lr(window.MouseEvent);Mn.addEventListener=function(Gn,Xn,Vn){if(Xn){var Yn,zn,Jn;if('object'==typeof Vn?(Yn=!!Vn.capture,zn=!!Vn.once,Jn=!!Vn.passive):(Yn=!!Vn,Jn=zn=!1),Xn.__eventWrappers){for(var $n=0;$n<Xn.__eventWrappers.length;$n++)if(Xn.__eventWrappers[$n].node===this&&Xn.__eventWrappers[$n].type===Gn&&Xn.__eventWrappers[$n].capture===Yn&&Xn.__eventWrappers[$n].once===zn&&Xn.__eventWrappers[$n].passive===Jn)return;}else Xn.__eventWrappers=[];$n=function(Qn){if(zn&&this.removeEventListener(Gn,Xn,Vn),Qn.__target||_r(Qn),Qn.composed||-1<Qn.composedPath().indexOf(this))if(Qn.eventPhase===Event.BUBBLING_PHASE&&Qn.target===Qn.relatedTarget)Qn.stopImmediatePropagation();else return Xn(Qn)},Xn.__eventWrappers.push({node:this,type:Gn,capture:Yn,once:zn,passive:Jn,wrapperFn:$n}),Dn[Gn]?(this.__handlers=this.__handlers||{},this.__handlers[Gn]=this.__handlers[Gn]||{capture:[],bubble:[]},this.__handlers[Gn][Yn?'capture':'bubble'].push($n)):ln.addEventListener.call(this,Gn,$n,Vn)}},Mn.removeEventListener=function(Gn,Xn,Vn){if(Xn){var Yn,zn,Jn;'object'==typeof Vn?(Yn=!!Vn.capture,zn=!!Vn.once,Jn=!!Vn.passive):(Yn=!!Vn,Jn=zn=!1);var $n;if(Xn.__eventWrappers)for(var Qn=0;Qn<Xn.__eventWrappers.length;Qn++)if(Xn.__eventWrappers[Qn].node===this&&Xn.__eventWrappers[Qn].type===Gn&&Xn.__eventWrappers[Qn].capture===Yn&&Xn.__eventWrappers[Qn].once===zn&&Xn.__eventWrappers[Qn].passive===Jn){$n=Xn.__eventWrappers.splice(Qn,1)[0].wrapperFn,Xn.__eventWrappers.length||(Xn.__eventWrappers=void 0);break}ln.removeEventListener.call(this,Gn,$n||Xn,Vn),$n&&Dn[Gn]&&this.__handlers&&this.__handlers[Gn]&&(Gn=this.__handlers[Gn][Yn?'capture':'bubble'],$n=Gn.indexOf($n),-1<$n&&Gn.splice($n,1))}},Mn.patchEvents=function(){window.Event=Ln,window.CustomEvent=kn,window.MouseEvent=Hn,hr()};var Fn={},Un={addEventListener:Mn.addEventListener,removeEventListener:Mn.removeEventListener,appendChild:function(Gn){return wn.insertBefore(this,Gn)},insertBefore:function(Gn,Xn){return wn.insertBefore(this,Gn,Xn)},removeChild:function(Gn){return wn.removeChild(this,Gn)},replaceChild:function(Gn,Xn){return this.insertBefore(Gn,Xn),this.removeChild(Xn),Gn},cloneNode:function(Gn){return wn.cloneNode(this,Gn)},getRootNode:function(Gn){return wn.getRootNode(this,Gn)},get isConnected(){var Gn=this.ownerDocument;if(Gn&&Gn.contains&&Gn.contains(this)||(Gn=Gn.documentElement)&&Gn.contains&&Gn.contains(this))return!0;for(Gn=this;Gn&&!(Gn instanceof Document);)Gn=Gn.parentNode||(Gn instanceof En.ShadyRoot?Gn.host:void 0);return!!(Gn&&Gn instanceof Document)}},qn={get assignedSlot(){return mr(this)}},jn={querySelector:function(Gn){return wn.query(this,function(Xn){return Ar.matchesSelector(Xn,Gn)},function(Xn){return!!Xn})[0]||null},querySelectorAll:function(Gn){return wn.query(this,function(Xn){return Ar.matchesSelector(Xn,Gn)})}},Wn={assignedNodes:function(Gn){if('slot'===this.localName)return wn.renderRootNode(this),this.__shady?(Gn&&Gn.flatten?this.__shady.distributedNodes:this.__shady.assignedNodes)||[]:[]}},Bn=Ar.extendAll({setAttribute:function(Gn,Xn){wn.setAttribute(this,Gn,Xn)},removeAttribute:function(Gn){wn.removeAttribute(this,Gn)},attachShadow:function(Gn){return En.attachShadow(this,Gn)},get slot(){return this.getAttribute('slot')},set slot(Gn){this.setAttribute('slot',Gn)},get assignedSlot(){return mr(this)}},jn,Wn);Object.defineProperties(Bn,Yr.ShadowRootAccessor);var Kn=Ar.extendAll({importNode:function(Gn,Xn){return wn.importNode(Gn,Xn)}},jn);Object.defineProperties(Kn,{_activeElement:Yr.ActiveElementAccessor.activeElement}),Fn.patchBuiltins=function(){yr(window.Node.prototype,Un),yr(window.Text.prototype,qn),yr(window.DocumentFragment.prototype,jn),yr(window.Element.prototype,Bn),yr(window.Document.prototype,Kn),window.HTMLSlotElement&&yr(window.HTMLSlotElement.prototype,Wn),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(Gn){return Gn},isShadyRoot:Ar.isShadyRoot,enqueue:Or.enqueue,flush:Or.flush,settings:Ar.settings,filterMutations:Tn.filterMutations,observeChildren:Tn.observeChildren,unobserveChildren:Tn.unobserveChildren,nativeMethods:ln,nativeTree:Gr},Mn.patchEvents(),Fn.patchBuiltins(),window.ShadowRoot=En.ShadyRoot)}.call(window),function(){'use strict';function jt(Vo){var Yo=uo.has(Vo);return Vo=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(Vo),!Yo&&Vo}function Wt(Vo){var Yo=Vo.isConnected;if(void 0!==Yo)return Yo;for(;Vo&&!(Vo.__CE_isImportDocument||Vo instanceof Document);)Vo=Vo.parentNode||(window.ShadowRoot&&Vo instanceof ShadowRoot?Vo.host:void 0);return Vo&&(Vo.__CE_isImportDocument||Vo instanceof Document)}function Bt(Vo,Yo){for(;Yo&&Yo!==Vo&&!Yo.nextSibling;)Yo=Yo.parentNode;return Yo&&Yo!==Vo?Yo.nextSibling:null}function Kt(Vo,Yo,zo){zo=zo?zo:new Set;for(var Jo=Vo;Jo;){if(Jo.nodeType===Node.ELEMENT_NODE){var $o=Jo;Yo($o);var Qo=$o.localName;if('link'===Qo&&'import'===$o.getAttribute('rel')){if(Jo=$o.import,Jo instanceof Node&&!zo.has(Jo))for(zo.add(Jo),Jo=Jo.firstChild;Jo;Jo=Jo.nextSibling)Kt(Jo,Yo,zo);Jo=Bt(Vo,$o);continue}else if('template'===Qo){Jo=Bt(Vo,$o);continue}if($o=$o.__CE_shadowRoot)for($o=$o.firstChild;$o;$o=$o.nextSibling)Kt($o,Yo,zo)}Jo=Jo.firstChild?Jo.firstChild:Bt(Vo,Jo)}}function Gt(Vo,Yo,zo){Vo[Yo]=zo}function Xt(){this.a=new Map,this.f=new Map,this.c=[],this.b=!1}function Vt(Vo,Yo,zo){Vo.a.set(Yo,zo),Vo.f.set(zo.constructor,zo)}function Yt(Vo,Yo){Vo.b=!0,Vo.c.push(Yo)}function zt(Vo,Yo){Vo.b&&Kt(Yo,function(zo){return Jt(Vo,zo)})}function Jt(Vo,Yo){if(Vo.b&&!Yo.__CE_patched){Yo.__CE_patched=!0;for(var zo=0;zo<Vo.c.length;zo++)Vo.c[zo](Yo)}}function $t(Vo,Yo){var zo=[];for(Kt(Yo,function($o){return zo.push($o)}),Yo=0;Yo<zo.length;Yo++){var Jo=zo[Yo];1===Jo.__CE_state?Vo.connectedCallback(Jo):eo(Vo,Jo)}}function Qt(Vo,Yo){var zo=[];for(Kt(Yo,function($o){return zo.push($o)}),Yo=0;Yo<zo.length;Yo++){var Jo=zo[Yo];1===Jo.__CE_state&&Vo.disconnectedCallback(Jo)}}function Zt(Vo,Yo,zo){zo=zo?zo:new Set;var Jo=[];if(Kt(Yo,function($o){if('link'===$o.localName&&'import'===$o.getAttribute('rel')){var Qo=$o.import;Qo instanceof Node&&'complete'===Qo.readyState?(Qo.__CE_isImportDocument=!0,Qo.__CE_hasRegistry=!0):$o.addEventListener('load',function(){var Zo=$o.import;Zo.__CE_documentLoadHandled||(Zo.__CE_documentLoadHandled=!0,Zo.__CE_isImportDocument=!0,Zo.__CE_hasRegistry=!0,new Set(zo),zo.delete(Zo),Zt(Vo,Zo,zo))})}else Jo.push($o)},zo),Vo.b)for(Yo=0;Yo<Jo.length;Yo++)Jt(Vo,Jo[Yo]);for(Yo=0;Yo<Jo.length;Yo++)eo(Vo,Jo[Yo])}function eo(Vo,Yo){if(void 0===Yo.__CE_state){var zo=Vo.a.get(Yo.localName);if(zo){zo.constructionStack.push(Yo);var Jo=zo.constructor;try{try{if(new Jo!==Yo)throw Error('The custom element constructor did not produce the element being upgraded.')}finally{zo.constructionStack.pop()}}catch(Zo){throw Yo.__CE_state=2,Zo}if(Yo.__CE_state=1,Yo.__CE_definition=zo,zo.attributeChangedCallback)for(zo=zo.observedAttributes,Jo=0;Jo<zo.length;Jo++){var $o=zo[Jo],Qo=Yo.getAttribute($o);null!==Qo&&Vo.attributeChangedCallback(Yo,$o,null,Qo,null)}Wt(Yo)&&Vo.connectedCallback(Yo)}}}function to(Vo,Yo){this.c=Vo,this.a=Yo,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(Vo){Vo.b&&Vo.b.disconnect()}function ro(){var Vo=this;this.b=this.a=void 0,this.c=new Promise(function(Yo){Vo.b=Yo,Vo.a&&Yo(Vo.a)})}function no(Vo){if(Vo.a)throw Error('Already resolved.');Vo.a=void 0,Vo.b&&Vo.b(void 0)}function so(Vo){this.f=!1,this.a=Vo,this.h=new Map,this.g=function(Yo){return Yo()},this.b=!1,this.c=[],this.j=new to(Vo,document)}function ao(){var Vo=Go;window.HTMLElement=function(){function Yo(){var zo=this.constructor,Jo=Vo.f.get(zo);if(!Jo)throw Error('The custom element being constructed was not registered with `customElements`.');var $o=Jo.constructionStack;if(!$o.length)return $o=mo.call(document,Jo.localName),Object.setPrototypeOf($o,zo.prototype),$o.__CE_state=1,$o.__CE_definition=Jo,Jt(Vo,$o),$o;var Jo=$o.length-1,Qo=$o[Jo];if(Qo===_o)throw Error('The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.');return $o[Jo]=_o,Object.setPrototypeOf(Qo,zo.prototype),Jt(Vo,Qo),Qo}return Yo.prototype=jo.prototype,Yo}()}function lo(Vo,Yo,zo){Yo.prepend=function(){for(var $o=[],Qo=0;Qo<arguments.length;++Qo)$o[Qo-0]=arguments[Qo];Qo=$o.filter(function(er){return er instanceof Node&&Wt(er)}),zo.i.apply(this,$o);for(var Zo=0;Zo<Qo.length;Zo++)Qt(Vo,Qo[Zo]);if(Wt(this))for(Qo=0;Qo<$o.length;Qo++)Zo=$o[Qo],Zo instanceof Element&&$t(Vo,Zo)},Yo.append=function(){for(var $o=[],Qo=0;Qo<arguments.length;++Qo)$o[Qo-0]=arguments[Qo];Qo=$o.filter(function(er){return er instanceof Node&&Wt(er)}),zo.append.apply(this,$o);for(var Zo=0;Zo<Qo.length;Zo++)Qt(Vo,Qo[Zo]);if(Wt(this))for(Qo=0;Qo<$o.length;Qo++)Zo=$o[Qo],Zo instanceof Element&&$t(Vo,Zo)}}function io(){var Vo=Go;Gt(Document.prototype,'createElement',function(Yo){if(this.__CE_hasRegistry){var zo=Vo.a.get(Yo);if(zo)return new zo.constructor}return Yo=mo.call(this,Yo),Jt(Vo,Yo),Yo}),Gt(Document.prototype,'importNode',function(Yo,zo){return Yo=go.call(this,Yo,zo),this.__CE_hasRegistry?Zt(Vo,Yo):zt(Vo,Yo),Yo}),Gt(Document.prototype,'createElementNS',function(Yo,zo){if(this.__CE_hasRegistry&&(null===Yo||'http://www.w3.org/1999/xhtml'===Yo)){var Jo=Vo.a.get(zo);if(Jo)return new Jo.constructor}return Yo=yo.call(this,Yo,zo),Jt(Vo,Yo),Yo}),lo(Vo,Document.prototype,{i:fo,append:bo})}function po(){function Vo(zo,Jo){Object.defineProperty(zo,'textContent',{enumerable:Jo.enumerable,configurable:!0,get:Jo.get,set:function($o){if(this.nodeType===Node.TEXT_NODE)Jo.set.call(this,$o);else{var Qo;if(this.firstChild){var Zo=this.childNodes,er=Zo.length;if(0<er&&Wt(this))for(var Qo=Array(er),tr=0;tr<er;tr++)Qo[tr]=Zo[tr]}if(Jo.set.call(this,$o),Qo)for($o=0;$o<Qo.length;$o++)Qt(Yo,Qo[$o])}}})}var Yo=Go;Gt(Node.prototype,'insertBefore',function(zo,Jo){if(zo instanceof DocumentFragment){var $o=Array.prototype.slice.apply(zo.childNodes);if(zo=So.call(this,zo,Jo),Wt(this))for(Jo=0;Jo<$o.length;Jo++)$t(Yo,$o[Jo]);return zo}return $o=Wt(zo),Jo=So.call(this,zo,Jo),$o&&Qt(Yo,zo),Wt(this)&&$t(Yo,zo),Jo}),Gt(Node.prototype,'appendChild',function(zo){if(zo instanceof DocumentFragment){var Jo=Array.prototype.slice.apply(zo.childNodes);if(zo=No.call(this,zo),Wt(this))for(var $o=0;$o<Jo.length;$o++)$t(Yo,Jo[$o]);return zo}return Jo=Wt(zo),$o=No.call(this,zo),Jo&&Qt(Yo,zo),Wt(this)&&$t(Yo,zo),$o}),Gt(Node.prototype,'cloneNode',function(zo){return zo=vo.call(this,zo),this.ownerDocument.__CE_hasRegistry?Zt(Yo,zo):zt(Yo,zo),zo}),Gt(Node.prototype,'removeChild',function(zo){var Jo=Wt(zo),$o=Eo.call(this,zo);return Jo&&Qt(Yo,zo),$o}),Gt(Node.prototype,'replaceChild',function(zo,Jo){if(zo instanceof DocumentFragment){var $o=Array.prototype.slice.apply(zo.childNodes);if(zo=Co.call(this,zo,Jo),Wt(this))for(Qt(Yo,Jo),Jo=0;Jo<$o.length;Jo++)$t(Yo,$o[Jo]);return zo}var $o=Wt(zo),Qo=Co.call(this,zo,Jo),Zo=Wt(this);return Zo&&Qt(Yo,Jo),$o&&Qt(Yo,zo),Zo&&$t(Yo,zo),Qo}),Ao&&Ao.get?Vo(Node.prototype,Ao):Yt(Yo,function(zo){Vo(zo,{enumerable:!0,configurable:!0,get:function(){for(var Jo=[],$o=0;$o<this.childNodes.length;$o++)Jo.push(this.childNodes[$o].textContent);return Jo.join('')},set:function(Jo){for(;this.firstChild;)Eo.call(this,this.firstChild);No.call(this,document.createTextNode(Jo))}})})}function co(Vo){var Yo=Element.prototype;Yo.before=function(){for(var Jo=[],$o=0;$o<arguments.length;++$o)Jo[$o-0]=arguments[$o];$o=Jo.filter(function(Zo){return Zo instanceof Node&&Wt(Zo)}),Ho.apply(this,Jo);for(var Qo=0;Qo<$o.length;Qo++)Qt(Vo,$o[Qo]);if(Wt(this))for($o=0;$o<Jo.length;$o++)Qo=Jo[$o],Qo instanceof Element&&$t(Vo,Qo)},Yo.after=function(){for(var Jo=[],$o=0;$o<arguments.length;++$o)Jo[$o-0]=arguments[$o];$o=Jo.filter(function(Zo){return Zo instanceof Node&&Wt(Zo)}),Fo.apply(this,Jo);for(var Qo=0;Qo<$o.length;Qo++)Qt(Vo,$o[Qo]);if(Wt(this))for($o=0;$o<Jo.length;$o++)Qo=Jo[$o],Qo instanceof Element&&$t(Vo,Qo)},Yo.replaceWith=function(){for(var Jo=[],$o=0;$o<arguments.length;++$o)Jo[$o-0]=arguments[$o];var $o=Jo.filter(function(er){return er instanceof Node&&Wt(er)}),Qo=Wt(this);Uo.apply(this,Jo);for(var Zo=0;Zo<$o.length;Zo++)Qt(Vo,$o[Zo]);if(Qo)for(Qt(Vo,this),$o=0;$o<Jo.length;$o++)Qo=Jo[$o],Qo instanceof Element&&$t(Vo,Qo)},Yo.remove=function(){var zo=Wt(this);qo.call(this),zo&&Qt(Vo,this)}}function ho(){function Vo($o,Qo){Object.defineProperty($o,'innerHTML',{enumerable:Qo.enumerable,configurable:!0,get:Qo.get,set:function(Zo){var tr,er=this;if(Wt(this)&&(tr=[],Kt(this,function(nr){nr!==er&&tr.push(nr)})),Qo.set.call(this,Zo),tr)for(var rr,or=0;or<tr.length;or++)rr=tr[or],1===rr.__CE_state&&zo.disconnectedCallback(rr);return this.ownerDocument.__CE_hasRegistry?Zt(zo,this):zt(zo,this),Zo}})}function Yo($o,Qo){Gt($o,'insertAdjacentElement',function(Zo,er){var tr=Wt(er);return Zo=Qo.call(this,Zo,er),tr&&Qt(zo,er),Wt(Zo)&&$t(zo,er),Zo})}var zo=Go;if(To?Gt(Element.prototype,'attachShadow',function($o){return this.__CE_shadowRoot=$o=To.call(this,$o)}):console.warn('Custom Elements: `Element#attachShadow` was not patched.'),Po&&Po.get)Vo(Element.prototype,Po);else if(Wo&&Wo.get)Vo(HTMLElement.prototype,Wo);else{var Jo=mo.call(document,'div');Yt(zo,function($o){Vo($o,{enumerable:!0,configurable:!0,get:function(){return vo.call(this,!0).innerHTML},set:function(Qo){var Zo='template'===this.localName?this.content:this;for(Jo.innerHTML=Qo;0<Zo.childNodes.length;)Eo.call(Zo,Zo.childNodes[0]);for(;0<Jo.childNodes.length;)No.call(Zo,Jo.childNodes[0])}})})}Gt(Element.prototype,'setAttribute',function($o,Qo){if(1!==this.__CE_state)return xo.call(this,$o,Qo);var Zo=Ro.call(this,$o);xo.call(this,$o,Qo),Qo=Ro.call(this,$o),Zo!==Qo&&zo.attributeChangedCallback(this,$o,Zo,Qo,null)}),Gt(Element.prototype,'setAttributeNS',function($o,Qo,Zo){if(1!==this.__CE_state)return Io.call(this,$o,Qo,Zo);var er=Mo.call(this,$o,Qo);Io.call(this,$o,Qo,Zo),Zo=Mo.call(this,$o,Qo),er!==Zo&&zo.attributeChangedCallback(this,Qo,er,Zo,$o)}),Gt(Element.prototype,'removeAttribute',function($o){if(1!==this.__CE_state)return wo.call(this,$o);var Qo=Ro.call(this,$o);wo.call(this,$o),null!==Qo&&zo.attributeChangedCallback(this,$o,Qo,null,null)}),Gt(Element.prototype,'removeAttributeNS',function($o,Qo){if(1!==this.__CE_state)return Oo.call(this,$o,Qo);var Zo=Mo.call(this,$o,Qo);Oo.call(this,$o,Qo);var er=Mo.call(this,$o,Qo);Zo!==er&&zo.attributeChangedCallback(this,Qo,Zo,er,$o)}),Bo?Yo(HTMLElement.prototype,Bo):Do?Yo(Element.prototype,Do):console.warn('Custom Elements: `Element#insertAdjacentElement` was not patched.'),lo(zo,Element.prototype,{i:Lo,append:ko}),co(zo)}var _o=new function(){},uo=new Set('annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph'.split(' '));Xt.prototype.connectedCallback=function(Vo){var Yo=Vo.__CE_definition;Yo.connectedCallback&&Yo.connectedCallback.call(Vo)},Xt.prototype.disconnectedCallback=function(Vo){var Yo=Vo.__CE_definition;Yo.disconnectedCallback&&Yo.disconnectedCallback.call(Vo)},Xt.prototype.attributeChangedCallback=function(Vo,Yo,zo,Jo,$o){var Qo=Vo.__CE_definition;Qo.attributeChangedCallback&&-1<Qo.observedAttributes.indexOf(Yo)&&Qo.attributeChangedCallback.call(Vo,Yo,zo,Jo,$o)},to.prototype.f=function(Vo){var Yo=this.a.readyState;for('interactive'!==Yo&&'complete'!==Yo||oo(this),Yo=0;Yo<Vo.length;Yo++)for(var zo=Vo[Yo].addedNodes,Jo=0;Jo<zo.length;Jo++)Zt(this.c,zo[Jo])},so.prototype.l=function(Vo,Yo){var zo=this;if(!(Yo instanceof Function))throw new TypeError('Custom element constructors must be functions.');if(!jt(Vo))throw new SyntaxError('The element name \''+Vo+'\' is not valid.');if(this.a.a.get(Vo))throw Error('A custom element with name \''+Vo+'\' has already been defined.');if(this.f)throw Error('A custom element is already being defined.');this.f=!0;var Jo,$o,Qo,Zo,er;try{var tr=function(rr){var nr=or[rr];if(void 0!==nr&&!(nr instanceof Function))throw Error('The \''+rr+'\' callback must be a function.');return nr},or=Yo.prototype;if(!(or instanceof Object))throw new TypeError('The custom element constructor\'s prototype is not an object.');Jo=tr('connectedCallback'),$o=tr('disconnectedCallback'),Qo=tr('adoptedCallback'),Zo=tr('attributeChangedCallback'),er=Yo.observedAttributes||[]}catch(rr){return}finally{this.f=!1}Vt(this.a,Vo,{localName:Vo,constructor:Yo,connectedCallback:Jo,disconnectedCallback:$o,adoptedCallback:Qo,attributeChangedCallback:Zo,observedAttributes:er,constructionStack:[]}),this.c.push(Vo),this.b||(this.b=!0,this.g(function(){if(!1!==zo.b)for(zo.b=!1,Zt(zo.a,document);0<zo.c.length;){var rr=zo.c.shift();(rr=zo.h.get(rr))&&no(rr)}}))},so.prototype.get=function(Vo){if(Vo=this.a.a.get(Vo))return Vo.constructor},so.prototype.o=function(Vo){if(!jt(Vo))return Promise.reject(new SyntaxError('\''+Vo+'\' is not a valid custom element name.'));var Yo=this.h.get(Vo);return Yo?Yo.c:(Yo=new ro,this.h.set(Vo,Yo),this.a.a.get(Vo)&&-1===this.c.indexOf(Vo)&&no(Yo),Yo.c)},so.prototype.m=function(Vo){oo(this.j);var Yo=this.g;this.g=function(zo){return Vo(function(){return Yo(zo)})}},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,wo=window.Element.prototype.removeAttribute,Mo=window.Element.prototype.getAttributeNS,Io=window.Element.prototype.setAttributeNS,Oo=window.Element.prototype.removeAttributeNS,Do=window.Element.prototype.insertAdjacentElement,Lo=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,jo=window.HTMLElement,Wo=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,'innerHTML'),Bo=window.HTMLElement.prototype.insertAdjacentElement,Ko=window.customElements;if(!Ko||Ko.forcePolyfill||'function'!=typeof Ko.define||'function'!=typeof Ko.get){var Go=new Xt;ao(),io(),po(),ho(),document.__CE_hasRegistry=!0;var Xo=new so(Go);Object.defineProperty(window,'customElements',{configurable:!0,enumerable:!0,value:Xo})}}.call(self);let Pe={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},Re='{',xe='}',we={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},Me='--',De=!(window.ShadyDOM&&window.ShadyDOM.inUse),Le=!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(jt,Wt,Bt){jt.__styleScoped?jt.__styleScoped=null:this._transformDom(jt,Wt||'',Bt)}_transformDom(jt,Wt,Bt){jt.nodeType===Node.ELEMENT_NODE&&this.element(jt,Wt,Bt);let Kt='template'===jt.localName?(jt.content||jt._content).childNodes:jt.children||jt.childNodes;if(Kt)for(let Gt=0;Gt<Kt.length;Gt++)this._transformDom(Kt[Gt],Wt,Bt)}element(jt,Wt,Bt){if(Wt)if(jt.classList)Bt?(jt.classList.remove(Ue),jt.classList.remove(Wt)):(jt.classList.add(Ue),jt.classList.add(Wt));else if(jt.getAttribute){let Kt=jt.getAttribute('class');if(!Bt){let Gt=(Kt?Kt+' ':'')+Ue+' '+Wt;Ee(jt,Gt)}else if(Kt){let Gt=Kt.replace(Ue,'').replace(Wt,'');Ee(jt,Gt)}}}elementStyles(jt,Wt,Bt){let Kt=jt.__cssBuild,Gt=De||'shady'===Kt?_e(Wt,Bt):this.css(Wt,jt.is,jt.extends,Bt)+'\n\n';return Gt.trim()}css(jt,Wt,Bt,Kt){let Gt=this._calcHostScope(Wt,Bt);Wt=this._calcElementScope(Wt);let Xt=this;return _e(jt,function(Vt){Vt.isScoped||(Xt.rule(Vt,Wt,Gt),Vt.isScoped=!0),Kt&&Kt(Vt,Wt,Gt)})}_calcElementScope(jt){return jt?'.'+jt:''}_calcHostScope(jt,Wt){return Wt?'[is='+jt+']':jt}rule(jt,Wt,Bt){this._transformRule(jt,this._transformComplexSelector,Wt,Bt)}_transformRule(jt,Wt,Bt,Kt){jt.selector=jt.transformedSelector=this._transformRuleCss(jt,Wt,Bt,Kt)}_transformRuleCss(jt,Wt,Bt,Kt){let Gt=jt.selector.split(Be);if(!me(jt))for(let Yt,Xt=0,Vt=Gt.length;Xt<Vt&&(Yt=Gt[Xt]);Xt++)Gt[Xt]=Wt.call(this,Yt,Bt,Kt);return Gt.join(Be)}_transformComplexSelector(jt,Wt,Bt){let Kt=!1;return jt=jt.trim(),jt=jt.replace(je,(Gt,Xt,Vt)=>`:${Xt}(${Vt.replace(/\s/g,'')})`),jt=jt.replace(ze,`${Xe} $1`),jt=jt.replace(Ke,(Gt,Xt,Vt)=>{if(!Kt){let Yt=this._transformCompoundSelector(Vt,Xt,Wt,Bt);Kt=Kt||Yt.stop,Xt=Yt.combinator,Vt=Yt.value}return Xt+Vt}),jt}_transformCompoundSelector(jt,Wt,Bt,Kt){let Gt=jt.indexOf(Ye);0<=jt.indexOf(Xe)?jt=this._transformHostSelector(jt,Kt):0!==Gt&&(jt=Bt?this._transformSimpleSelector(jt,Bt):jt);let Xt=!1;0<=Gt&&(Wt='',Xt=!0);let Vt;return Xt&&(Vt=!0,Xt&&(jt=jt.replace($e,(Yt,zt)=>` > ${zt}`))),jt=jt.replace(Qe,(Yt,zt,Jt)=>`[dir="${Jt}"] ${zt}, ${zt}[dir="${Jt}"]`),{value:jt,combinator:Wt,stop:Vt}}_transformSimpleSelector(jt,Wt){let Bt=jt.split(lt);return Bt[0]+=Wt,Bt.join(lt)}_transformHostSelector(jt,Wt){let Bt=jt.match(Je),Kt=Bt&&Bt[2].trim()||'';if(Kt){if(!Kt[0].match(Ge)){let Gt=Kt.split(Ge)[0];return Gt===Wt?Kt:'should_not_match'}return jt.replace(Je,function(Gt,Xt,Vt){return Wt+Vt})}return jt.replace(Xe,Wt)}documentRule(jt){jt.selector=jt.parsedSelector,this.normalizeRootSelector(jt),this._transformRule(jt,this._transformDocumentSelector)}normalizeRootSelector(jt){jt.selector===':root'&&(jt.selector='html')}_transformDocumentSelector(jt){return jt.match(Ye)?this._transformComplexSelector(jt,We):this._transformSimpleSelector(jt.trim(),We)}}let je=/:(nth[-\w]+)\(([^)]+)\)/,We=`: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(jt){return jt.__styleInfo}static set(jt,Wt){return jt.__styleInfo=Wt,Wt}static invalidate(jt){ht[jt]&&(ht[jt]._applyShimInvalid=!0)}static startValidating(jt){const Wt=ht[jt];Wt._validating||(Wt._validating=!0,_t.then(()=>{Wt._applyShimInvalid=!1,Wt._validating=!1}))}constructor(jt,Wt,Bt,Kt,Gt,Xt){this.styleRules=jt||null,this.placeholder=Wt||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(jt){let Wt=this,Bt={},Kt=[],Gt=0;ye(jt,function(Vt){Wt.decorateRule(Vt),Vt.index=Gt++,Wt.collectPropertiesInCssText(Vt.propertyInfo.cssText,Bt)},function(Yt){Kt.push(Yt)}),jt._keyframes=Kt;let Xt=[];for(let Vt in Bt)Xt.push(Vt);return Xt}decorateRule(jt){if(jt.propertyInfo)return jt.propertyInfo;let Wt={},Bt={},Kt=this.collectProperties(jt,Bt);return Kt&&(Wt.properties=Bt,jt.rules=null),Wt.cssText=this.collectCssText(jt),jt.propertyInfo=Wt,Wt}collectProperties(jt,Wt){let Bt=jt.propertyInfo;if(!Bt){let Kt,Gt=Fe.VAR_ASSIGN,Xt=jt.parsedCssText,Vt,Yt;for(;Kt=Gt.exec(Xt);)Vt=(Kt[2]||Kt[3]).trim(),('inherit'!==Vt||'unset'!==Vt)&&(Wt[Kt[1].trim()]=Vt),Yt=!0;return Yt}else if(Bt.properties)return Object.assign(Wt,Bt.properties),!0}collectCssText(jt){return this.collectConsumingCssText(jt.parsedCssText)}collectConsumingCssText(jt){return jt.replace(Fe.BRACKETED,'').replace(Fe.VAR_ASSIGN,'')}collectPropertiesInCssText(jt,Wt){for(let Bt,Kt;Bt=Fe.VAR_CONSUMED.exec(jt);)Kt=Bt[1],':'!==Bt[2]&&(Wt[Kt]=!0)}reify(jt){let Wt=Object.getOwnPropertyNames(jt);for(let Kt,Bt=0;Bt<Wt.length;Bt++)Kt=Wt[Bt],jt[Kt]=this.valueForProperty(jt[Kt],jt)}valueForProperty(jt,Wt){if(jt)if(0<=jt.indexOf(';'))jt=this.valueForProperties(jt,Wt);else{let Bt=this;jt=Se(jt,function(Gt,Xt,Vt,Yt){if(!Xt)return Gt+Yt;let zt=Bt.valueForProperty(Wt[Xt],Wt);return zt&&'initial'!==zt?'apply-shim-inherit'===zt&&(zt='inherit'):zt=Bt.valueForProperty(Wt[Vt]||Vt,Wt)||Vt,Gt+(zt||'')+Yt})}return jt&&jt.trim()||''}valueForProperties(jt,Wt){let Bt=jt.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(Wt[Xt[1]],Wt);else{let Vt=Gt.indexOf(':');if(-1!==Vt){let Yt=Gt.substring(Vt);Yt=Yt.trim(),Yt=this.valueForProperty(Yt,Wt)||Yt,Gt=Gt.substring(0,Vt)+Yt}}Bt[Kt]=Gt&&Gt.lastIndexOf(';')===Gt.length-1?Gt.slice(0,-1):Gt||''}return Bt.join(';')}applyProperties(jt,Wt){let Bt='';jt.propertyInfo||this.decorateRule(jt),jt.propertyInfo.cssText&&(Bt=this.valueForProperties(jt.propertyInfo.cssText,Wt)),jt.cssText=Bt}applyKeyframeTransforms(jt,Wt){let Bt=jt.cssText,Kt=jt.cssText;if(null==jt.hasAnimations&&(jt.hasAnimations=Fe.ANIMATION_MATCH.test(Bt)),jt.hasAnimations){let Gt;if(null==jt.keyframeNamesToTransform)for(let Xt in jt.keyframeNamesToTransform=[],Wt)Gt=Wt[Xt],Kt=Gt(Bt),Bt!==Kt&&(Bt=Kt,jt.keyframeNamesToTransform.push(Xt));else{for(let Xt=0;Xt<jt.keyframeNamesToTransform.length;++Xt)Gt=Wt[jt.keyframeNamesToTransform[Xt]],Bt=Gt(Bt);Kt=Bt}}jt.cssText=Kt}propertyDataFromStyles(jt,Wt){let Bt={},Kt=this,Gt=[];return ye(jt,function(Xt){Xt.propertyInfo||Kt.decorateRule(Xt);let Vt=Xt.transformedSelector||Xt.parsedSelector;Wt&&Xt.propertyInfo.properties&&Vt&>.call(Wt,Vt)&&(Kt.collectProperties(Xt,Bt),Ce(Xt.index,Gt))},null,!0),{properties:Bt,key:Gt}}whenHostOrRootRule(jt,Wt,Bt,Kt){if(Wt.propertyInfo||this.decorateRule(Wt),!!Wt.propertyInfo.properties){let Gt=jt.is?ct._calcHostScope(jt.is,jt.extends):'html',Xt=Wt.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&&(De&&!Wt.transformedSelector&&(Wt.transformedSelector=ct._transformRuleCss(Wt,ct._transformComplexSelector,ct._calcElementScope(jt.is),Gt)),zt=Wt.transformedSelector||Gt),Kt({selector:zt,isHost:Yt,isRoot:Vt})}}}hostAndRootPropertiesForScope(jt,Wt){let Bt={},Kt={},Gt=this,Xt=Wt&&Wt.__cssBuild;return ye(Wt,function(Vt){Gt.whenHostOrRootRule(jt,Vt,Xt,function(Yt){let zt=jt._element||jt;gt.call(zt,Yt.selector)&&(Yt.isHost?Gt.collectProperties(Vt,Bt):Gt.collectProperties(Vt,Kt))})},null,!0),{rootProps:Kt,hostProps:Bt}}transformStyles(jt,Wt,Bt){let Kt=this,Gt=ct._calcHostScope(jt.is,jt.extends),Xt=jt.extends?'\\'+Gt.slice(0,-1)+'\\]':Gt,Vt=new RegExp(Fe.HOST_PREFIX+Xt+Fe.HOST_SUFFIX),Yt=mt.get(jt).styleRules,zt=this._elementKeyframeTransforms(jt,Yt,Bt);return ct.elementStyles(jt,Yt,function(Jt){Kt.applyProperties(Jt,Wt),De||me(Jt)||!Jt.cssText||(Kt.applyKeyframeTransforms(Jt,zt),Kt._scopeSelector(Jt,Vt,Gt,Bt))})}_elementKeyframeTransforms(jt,Wt,Bt){let Kt=Wt._keyframes,Gt={};if(!De&&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(jt){return function(Wt){return Wt.replace(jt.keyframesNameRx,jt.transformedKeyframesName)}}_scopeKeyframes(jt,Wt){jt.keyframesNameRx=new RegExp(jt.keyframesName,'g'),jt.transformedKeyframesName=jt.keyframesName+'-'+Wt,jt.transformedSelector=jt.transformedSelector||jt.selector,jt.selector=jt.transformedSelector.replace(jt.keyframesName,jt.transformedKeyframesName)}_scopeSelector(jt,Wt,Bt,Kt){jt.transformedSelector=jt.transformedSelector||jt.selector;let Gt=jt.transformedSelector,Xt='.'+Kt,Vt=Gt.split(',');for(let Jt,Yt=0,zt=Vt.length;Yt<zt&&(Jt=Vt[Yt]);Yt++)Vt[Yt]=Jt.match(Wt)?Jt.replace(Bt,Xt):Xt+' '+Jt;jt.selector=Vt.join(',')}applyElementScopeSelector(jt,Wt,Bt){let Kt=jt.getAttribute('class')||'',Gt=Kt;Bt&&(Gt=Kt.replace(new RegExp('\\s*'+bt+'\\s*'+Bt+'\\s*','g'),' ')),Gt+=(Gt?' ':'')+bt+' '+Wt,Kt!==Gt&&Ee(jt,Gt)}applyElementStyle(jt,Wt,Bt,Kt){let Gt=Kt?Kt.textContent||'':this.transformStyles(jt,Wt,Bt),Xt=mt.get(jt),Vt=Xt.customStyle;return Vt&&!De&&Vt!==Kt&&(Vt._useCount--,0>=Vt._useCount&&Vt.parentNode&&Vt.parentNode.removeChild(Vt)),De?Xt.customStyle?(Xt.customStyle.textContent=Gt,Kt=Xt.customStyle):Gt&&(Kt=ge(Gt,Bt,jt.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(jt,Wt){let Bt=ue(jt),Kt=this;jt.textContent=_e(Bt,function(Gt){let Xt=Gt.cssText=Gt.parsedCssText;Gt.propertyInfo&&Gt.propertyInfo.cssText&&(Xt=ie(Xt),Gt.cssText=Kt.valueForProperties(Xt,Wt))})}}var Nt=new vt;let St={};const Et=window.customElements;if(Et&&!De){const jt=Et.define;Et.define=function(Wt,Bt,Kt){return St[Wt]=ve(Wt),jt.call(Et,Wt,Bt,Kt)}}let At=Fe.MIXIN_MATCH,Tt=Fe.VAR_ASSIGN,Pt=/;\s*/m,Rt=/^\s*(initial)|(inherit)\s*$/,xt='_-_';class wt{constructor(){this._map={}}set(jt,Wt){jt=jt.trim(),this._map[jt]={properties:Wt,dependants:{}}}get(jt){return jt=jt.trim(),this._map[jt]}}class Mt{constructor(){this._currentTemplate=null,this._measureElement=null,this._map=new wt,this._separator=xt,this._boundProduceCssProperties=(jt,Wt,Bt,Kt)=>this._produceCssProperties(jt,Wt,Bt,Kt)}detectMixin(jt){const Wt=At.test(jt)||Tt.test(jt);return At.lastIndex=0,Tt.lastIndex=0,Wt}transformStyle(jt,Wt){let Bt=ue(jt);return this.transformRules(Bt,Wt),Bt}transformRules(jt,Wt){this._currentTemplate=ht[Wt],ye(jt,Bt=>{this.transformRule(Bt)}),this._currentTemplate=null}transformRule(jt){jt.cssText=this.transformCssText(jt.parsedCssText),':root'===jt.selector&&(jt.selector=':host > *')}transformCssText(jt){return jt=jt.replace(Tt,this._boundProduceCssProperties),this._consumeCssProperties(jt)}_getInitialValueForProperty(jt){return this._measureElement||(this._measureElement=document.createElement('meta'),this._measureElement.style.all='initial',document.head.appendChild(this._measureElement)),window.getComputedStyle(this._measureElement).getPropertyValue(jt)}_consumeCssProperties(jt){for(let Wt;Wt=At.exec(jt);){let Bt=Wt[0],Kt=Wt[1],Gt=Wt.index,Xt=Gt+Bt.indexOf('@apply'),Vt=Gt+Bt.length,Yt=jt.slice(0,Xt),zt=jt.slice(Vt),Jt=this._cssTextToMap(Yt),$t=this._atApplyToCssProperties(Kt,Jt);jt=[Yt,$t,zt].join(''),At.lastIndex=Gt+$t.length}return jt}_atApplyToCssProperties(jt,Wt){jt=jt.replace(Pt,'');let Bt=[],Kt=this._map.get(jt);if(Kt||(this._map.set(jt,{}),Kt=this._map.get(jt)),Kt){this._currentTemplate&&(Kt.dependants[this._currentTemplate.name]=this._currentTemplate);let Gt,Xt,Vt;for(Gt in Kt.properties)Vt=Wt&&Wt[Gt],Xt=[Gt,': var(',jt,xt,Gt],Vt&&Xt.push(',',Vt),Xt.push(')'),Bt.push(Xt.join(''))}return Bt.join('; ')}_replaceInitialOrInherit(jt,Wt){let Bt=Rt.exec(Wt);return Bt&&(Bt[1]?Wt=Mt._getInitialValueForProperty(jt):Wt='apply-shim-inherit'),Wt}_cssTextToMap(jt){let Wt=jt.split(';'),Bt,Kt,Gt={};for(let Vt,Yt,Xt=0;Xt<Wt.length;Xt++)Vt=Wt[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(jt){for(let Wt in jt.dependants)this._currentTemplate&&Wt===this._currentTemplate.name||mt.invalidate(Wt)}_produceCssProperties(jt,Wt,Bt,Kt){if(Bt&&Se(Bt,(to,oo)=>{oo&&this._map.get(oo)&&(Kt='@apply '+oo+';')}),!Kt)return jt;let Gt=this._consumeCssProperties(Kt),Xt=jt.slice(0,jt.indexOf('--')),Vt=this._cssTextToMap(Gt),Yt=Vt,zt=this._map.get(Wt),Jt=zt&&zt.properties;Jt?Yt=Object.assign(Object.create(Jt),Vt):this._map.set(Wt,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(Wt+xt+Qt+': '+Zt);return eo&&this._invalidateMixinEntry(zt),zt&&(zt.properties=Yt),Bt&&(Xt=jt+';'+Xt),Xt+$t.join('; ')+';'}}let It=new Mt;window.ApplyShim=It;let Ot=function(){};if(!De){let jt=Xt=>{return Xt.classList&&!Xt.classList.contains(ct.SCOPE_NAME)||Xt instanceof SVGElement&&(!Xt.hasAttribute('class')||0>Xt.getAttribute('class').indexOf(ct.SCOPE_NAME))},Wt=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],jt(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(Wt),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(){Wt(Bt.takeRecords())}}let Dt=new class{constructor(jt=100){this.cache={},this.typeMax=jt}_validate(jt,Wt,Bt){for(let Gt,Kt=0;Kt<Bt.length;Kt++)if(Gt=Bt[Kt],jt.properties[Gt]!==Wt[Gt])return!1;return!0}store(jt,Wt,Bt,Kt){let Gt=this.cache[jt]||[];Gt.push({properties:Wt,styleElement:Bt,scopeSelector:Kt}),Gt.length>this.typeMax&&Gt.shift(),this.cache[jt]=Gt}fetch(jt,Wt,Bt){let Kt=this.cache[jt];if(Kt)for(let Xt,Gt=Kt.length-1;0<=Gt;Gt--)if(Xt=Kt[Gt],this._validate(Xt,Wt,Bt))return Xt}};class Lt{constructor(){this._scopeCounter={},this._documentOwner=document.documentElement,this._documentOwnerStyleInfo=mt.set(document.documentElement,new mt({rules:[]})),this._elementsHaveApplied=!1}get nativeShadow(){return De}get nativeCss(){return Le}get nativeCssApply(){return!1}flush(){Ot()}_generateScopeSelector(jt){let Wt=this._scopeCounter[jt]=(this._scopeCounter[jt]||0)+1;return`${jt}-${Wt}`}getStyleAst(jt){return ue(jt)}styleAstToString(jt){return _e(jt)}_gatherStyles(jt){let Wt=jt.content.querySelectorAll('style'),Bt=[];for(let Gt,Kt=0;Kt<Wt.length;Kt++)Gt=Wt[Kt],Bt.push(Gt.textContent),Gt.parentNode.removeChild(Gt);return Bt.join('').trim()}_getCssBuild(jt){let Wt=jt.content.querySelector('style');return Wt?Wt.getAttribute('css-build')||'':''}prepareTemplate(jt,Wt,Bt){if(!jt._prepared){jt._prepared=!0,jt.name=Wt,jt.extends=Bt,ht[Wt]=jt;let Kt=this._getCssBuild(jt),Gt=this._gatherStyles(jt),Xt={is:Wt,extends:Bt,__cssBuild:Kt};this.nativeShadow||ct.dom(jt.content,Wt);let Vt=It.detectMixin(Gt),Yt=ee(Gt);Vt&&this.nativeCss&&!this.nativeCssApply&&It.transformRules(Yt,Wt),jt._styleAst=Yt;let zt=[];if(this.nativeCss||(zt=Nt.decorateStyles(jt._styleAst,Xt)),!zt.length||this.nativeCss){let Jt=this.nativeShadow?jt.content:null,$t=St[Wt],Qt=this._generateStaticStyle(Xt,jt._styleAst,Jt,$t);jt._style=Qt}jt._ownPropertyNames=zt}}_generateStaticStyle(jt,Wt,Bt,Kt){let Gt=ct.elementStyles(jt,Wt);if(Gt.length)return ge(Gt,jt.is,Bt,Kt)}_prepareHost(jt){let Bt,Wt=jt.getAttribute('is')||jt.localName;Wt!==jt.localName&&(Bt=jt.localName);let Xt,Vt,Yt,Kt=St[Wt],Gt=ht[Wt];return Gt&&(Xt=Gt._styleAst,Vt=Gt._ownPropertyNames,Yt=Gt._cssBuild),mt.set(jt,new mt(Xt,Kt,Vt,Wt,Bt,Yt))}applyStyle(jt,Wt){let Bt=jt.getAttribute('is')||jt.localName,Kt=mt.get(jt),Gt=!!Kt;if(Kt||(Kt=this._prepareHost(jt)),this._isRootOwner(jt)||(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(Wt&&(Kt.overrideStyleProperties=Kt.overrideStyleProperties||{},Object.assign(Kt.overrideStyleProperties,Wt)),this.nativeCss){Kt.overrideStyleProperties&&this._updateNativeProperties(jt,Kt.overrideStyleProperties);let Xt=ht[Bt];if(!Xt&&!this._isRootOwner(jt))return;if(Xt&&Xt._applyShimInvalid&&Xt._style){if(Xt._validating||(It.transformRules(Xt._styleAst,Bt),Xt._style.textContent=ct.elementStyles(jt,Kt.styleRules),mt.startValidating(Bt)),this.nativeShadow){let Vt=jt.shadowRoot;if(Vt){let Yt=Vt.querySelector('style');Yt.textContent=ct.elementStyles(jt,Kt.styleRules)}}Kt.styleRules=Xt._styleAst}}else this._updateProperties(jt,Kt),Kt.ownStylePropertyNames&&Kt.ownStylePropertyNames.length&&this._applyStyleProperties(jt,Kt);if(Gt){let Xt=this._isRootOwner(jt)?jt:jt.shadowRoot;Xt&&this._applyToDescendants(Xt)}}_applyToDescendants(jt){let Wt=jt.children||jt.childNodes;for(let Kt,Bt=0;Bt<Wt.length;Bt++)Kt=Wt[Bt],Kt.shadowRoot&&this.applyStyle(Kt),this._applyToDescendants(Kt)}_styleOwnerForNode(jt){let Wt=jt.getRootNode(),Bt=Wt.host;return Bt?mt.get(Bt)?Bt:this._styleOwnerForNode(Bt):this._documentOwner}_isRootOwner(jt){return jt===this._documentOwner}_applyStyleProperties(jt,Wt){let Bt=jt.getAttribute('is')||jt.localName,Kt=Dt.fetch(Bt,Wt.styleProperties,Wt.ownStylePropertyNames),Gt=Kt&&Kt.scopeSelector,Xt=Kt?Kt.styleElement:null,Vt=Wt.scopeSelector;Wt.scopeSelector=Gt||this._generateScopeSelector(Bt);let Yt=Nt.applyElementStyle(jt,Wt.styleProperties,Wt.scopeSelector,Xt);return this.nativeShadow||Nt.applyElementScopeSelector(jt,Wt.scopeSelector,Vt),Kt||Dt.store(Bt,Wt.styleProperties,Yt,Wt.scopeSelector),Yt}_updateProperties(jt,Wt){let Bt=this._styleOwnerForNode(jt),Kt=mt.get(Bt),Gt=Kt.styleProperties,Xt=Object.create(Gt||null),Vt=Nt.hostAndRootPropertiesForScope(jt,Wt.styleRules),Yt=Nt.propertyDataFromStyles(Kt.styleRules,jt),zt=Yt.properties;Object.assign(Xt,Vt.hostProps,zt,Vt.rootProps),this._mixinOverrideStyles(Xt,Wt.overrideStyleProperties),Nt.reify(Xt),Wt.styleProperties=Xt}_mixinOverrideStyles(jt,Wt){for(let Bt in Wt){let Kt=Wt[Bt];(Kt||0===Kt)&&(jt[Bt]=Kt)}}_updateNativeProperties(jt,Wt){for(let Bt in Wt)null===Bt?jt.style.removeProperty(Bt):jt.style.setProperty(Bt,Wt[Bt])}updateStyles(jt){this.applyStyle(this._documentOwner,jt)}_transformCustomStyleForDocument(jt){let Wt=ue(jt);ye(Wt,Bt=>{De?ct.normalizeRootSelector(Bt):ct.documentRule(Bt),this.nativeCss&&!this.nativeCssApply&&It.transformRule(Bt)}),this.nativeCss?jt.textContent=_e(Wt):this._documentOwnerStyleInfo.styleRules.rules.push(Wt)}_revalidateApplyShim(jt){if(this.nativeCss&&!this.nativeCssApply){let Wt=ue(jt);It.transformRules(Wt),jt.textContent=_e(Wt)}}_applyCustomStyleToDocument(jt){this.nativeCss||Nt.applyCustomStyle(jt,this._documentOwnerStyleInfo.styleProperties)}getComputedStyleValue(jt,Wt){let Bt;if(!this.nativeCss){let Kt=mt.get(jt)||mt.get(this._styleOwnerForNode(jt));Bt=Kt.styleProperties[Wt]}return Bt=Bt||window.getComputedStyle(jt).getPropertyValue(Wt),Bt.trim()}setElementClass(jt,Wt){let Bt=jt.getRootNode(),Kt=Wt?Wt.split(/\s/):[],Gt=Bt.host&&Bt.host.localName;if(!Gt){var Xt=jt.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(jt);Vt&&Vt.scopeSelector&&Kt.push(Nt.XSCOPE_NAME,Vt.scopeSelector)}Ee(jt,Kt.join(' '))}_styleInfoForNode(jt){return mt.get(jt)}}window.ShadyCSS=new Lt;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(jt){Ut=jt}static get _documentDirty(){return Ht}static findStyles(){for(let Wt,jt=0;jt<Ft.length;jt++)if(Wt=Ft[jt],!Wt._style){let Bt=Wt.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);Wt._style=Bt.__appliedElement||Bt,Ut&&Ut(Wt._style),kt._transformCustomStyleForDocument(Wt._style)}}static _revalidateApplyShim(){for(let Wt,jt=0;jt<Ft.length;jt++)Wt=Ft[jt],Wt._style&&kt._revalidateApplyShim(Wt._style)}static applyStyles(){for(let Wt,jt=0;jt<Ft.length;jt++)Wt=Ft[jt],Wt._style&&kt._applyCustomStyleToDocument(Wt._style);Ht=!1}constructor(){super(),Ft.push(this),Ae()}}window.CustomStyle=qt,window.customElements.define('custom-style',qt),function(){'use strict';if(customElements&&customElements.polyfillWrapFlushCallback){function Wt(){if(Bt){let Gt=Bt;Bt=null,Gt()}}let Bt,Kt=HTMLImports.whenReady;customElements.polyfillWrapFlushCallback(function(Gt){Bt=Gt,Kt(Wt)}),HTMLImports.whenReady=function(Gt){Kt(function(){Wt(),Gt()})}}HTMLImports.whenReady(function(){requestAnimationFrame(function(){window.dispatchEvent(new CustomEvent('WebComponentsReady'))})})}(window.WebComponents),function(){var Wt=document.createElement('style');Wt.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(Wt,Bt.firstChild)}(window.WebComponents)})();
|
|
//# sourceMappingURL=webcomponents-lite.js.map
|