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