Files
webcomponentsjs/webcomponents-lite.js
Steven Orvell 1a0ab4dfc1 update builds.
2017-02-24 12:09:29 -08:00

7 lines
96 KiB
JavaScript

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