mirror of
https://github.com/jlengrand/webcomponentsjs.git
synced 2026-03-10 08:51:22 +00:00
7 lines
50 KiB
JavaScript
7 lines
50 KiB
JavaScript
(function(){'use strict';function _(Ot){return Ot=$(Ot),te(ee(Ot),Ot)}function $(Ot){return Ot.replace(Re.comments,'').replace(Re.port,'')}function ee(Ot){let Pt={start:0,end:Ot.length},Lt=Pt;for(let wt=0,kt=Ot.length;wt<kt;wt++)if(Ot[wt]===xe){Lt.rules||(Lt.rules=[]);let Dt=Lt,Ht=Dt.rules[Dt.rules.length-1];Lt={start:wt+1,parent:Dt,previous:Ht},Dt.rules.push(Lt)}else Ot[wt]===Te&&(Lt.end=wt+1,Lt=Lt.parent||Pt);return Pt}function te(Ot,Pt){let Lt=Pt.substring(Ot.start,Ot.end-1);if(Ot.parsedCssText=Ot.cssText=Lt.trim(),Ot.parent){let kt=Ot.previous?Ot.previous.end:Ot.parent.start;Lt=Pt.substring(kt,Ot.start-1),Lt=re(Lt),Lt=Lt.replace(Re.multipleSpaces,' '),Lt=Lt.substring(Lt.lastIndexOf(';')+1);let Dt=Ot.parsedSelector=Ot.selector=Lt.trim();Ot.atRule=0===Dt.indexOf('@'),Ot.atRule?0===Dt.indexOf('@media')?Ot.type=ve.MEDIA_RULE:Dt.match(Re.keyframesRule)&&(Ot.type=ve.KEYFRAMES_RULE,Ot.keyframesName=Ot.selector.split(Re.multipleSpaces).pop()):0===Dt.indexOf(Ie)?Ot.type=ve.MIXIN_RULE:Ot.type=ve.STYLE_RULE}let wt=Ot.rules;if(wt)for(let Ht,kt=0,Dt=wt.length;kt<Dt&&(Ht=wt[kt]);kt++)te(Ht,Pt);return Ot}function re(Ot){return Ot.replace(/\\([0-9a-f]{1,6})\s/gi,function(){let Pt=arguments[1],Lt=6-Pt.length;for(;Lt--;)Pt='0'+Pt;return'\\'+Pt})}function oe(Ot,Pt,Lt){Lt=Lt||'';let wt='';if(Ot.cssText||Ot.rules){let kt=Ot.rules;if(kt&&!ne(kt))for(let Ut,Dt=0,Ht=kt.length;Dt<Ht&&(Ut=kt[Dt]);Dt++)wt=oe(Ut,Pt,wt);else wt=Pt?Ot.cssText:le(Ot.cssText),wt=wt.trim(),wt&&(wt=' '+wt+'\n')}return wt&&(Ot.selector&&(Lt+=Ot.selector+' '+xe+'\n'),Lt+=wt,Ot.selector&&(Lt+=Te+'\n\n')),Lt}function ne(Ot){return 0===Ot[0].selector.indexOf(Ie)}function le(Ot){return Ot=se(Ot),ae(Ot)}function se(Ot){return Ot.replace(Re.customProp,'').replace(Re.mixinProp,'')}function ae(Ot){return Ot.replace(Re.mixinApply,'').replace(Re.varApply,'')}function pe(Ot){Ot&&(Le=Le&&!Ot.shimcssproperties,Pe=Pe&&!Ot.shimshadow)}function de(Ot,Pt){return'string'==typeof Ot&&(Ot=_(Ot)),Pt&&ye(Ot,Pt),oe(Ot,Le)}function me(Ot){return!Ot.__cssRules&&Ot.textContent&&(Ot.__cssRules=_(Ot.textContent)),Ot.__cssRules}function ue(Ot){return Ot.parent&&Ot.parent.type===ve.KEYFRAMES_RULE}function ye(Ot,Pt,Lt,wt){if(Ot){let kt=!1;if(wt&&Ot.type===ve.MEDIA_RULE){let Ht=Ot.selector.match(De.MEDIA_MATCH);Ht&&!window.matchMedia(Ht[1]).matches&&(kt=!0)}Ot.type===ve.STYLE_RULE?Pt(Ot):Lt&&Ot.type===ve.KEYFRAMES_RULE?Lt(Ot):Ot.type===ve.MIXIN_RULE&&(kt=!0);let Dt=Ot.rules;if(Dt&&!kt)for(let Ft,Ht=0,Ut=Dt.length;Ht<Ut&&(Ft=Dt[Ht]);Ht++)ye(Ft,Pt,Lt,wt)}}function he(Ot,Pt,Lt,wt){let kt=_e(Ot,Pt);return fe(kt,Lt,wt)}function fe(Ot,Pt,Lt){Pt=Pt||document.head;let wt=Lt&&Lt.nextSibling||Pt.firstChild;return ke=Ot,Pt.insertBefore(Ot,wt)}function _e(Ot,Pt){let Lt=document.createElement('style');return Pt&&Lt.setAttribute('scope',Pt),Lt.textContent=Ot,Lt}function ge(Ot){let Pt=document.createComment(' Shady DOM styles for '+Ot+' '),Lt=ke?ke.nextSibling:null,wt=document.head;return wt.insertBefore(Pt,Lt||wt.firstChild),ke=Pt,Pt}function Se(Ot,Pt){let Lt=0;for(let wt=Pt,kt=Ot.length;wt<kt;wt++)if('('===Ot[wt])Lt++;else if(')'===Ot[wt]&&0==--Lt)return wt;return-1}function Ce(Ot,Pt){let Lt=Ot.indexOf('var(');if(-1===Lt)return Pt(Ot,'','','');let wt=Se(Ot,Lt+3),kt=Ot.substring(Lt+4,wt),Dt=Ot.substring(0,Lt),Ht=Ce(Ot.substring(wt+1),Pt),Ut=kt.indexOf(',');if(-1===Ut)return Pt(Dt,kt.trim(),'',Ht);let Ft=kt.substring(0,Ut).trim(),jt=kt.substring(Ut+1).trim();return Pt(Dt,Ft,jt,Ht)}function be(Ot,Pt){window.ShadyDOM?window.ShadyDOM.nativeMethods.setAttribute.call(Ot,'class',Pt):Ot.setAttribute('class',Pt)}function Ee(Ot,Pt){let Lt=parseInt(Ot/32);Pt[Lt]=(Pt[Lt]||0)|1<<Ot%32}function Ne(){Tt||(Tt=!0,window.HTMLImports?window.HTMLImports.whenReady(Ae):'complete'===document.readyState?Ae():document.addEventListener('readystatechange',()=>{'complete'===document.readyState&&Ae()}))}function Ae(){requestAnimationFrame(()=>{(Tt||xt._elementsHaveApplied)&&xt.updateStyles(),Tt=!1})}(Ot=>{const Pt=!!('import'in document.createElement('link'));let Lt=null;!1=='currentScript'in document&&Object.defineProperty(document,'currentScript',{get(){return Lt||('complete'===document.readyState?null:document.scripts[document.scripts.length-1])},configurable:!0});const wt=/(^\/)|(^#)|(^[\w-\d]*:)/,kt=/(url\()([^)]*)(\))/g,Dt=/(@import[\s]+(?!url\())([^;]*)(;)/g,Ht=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,Ut={fixUrls(or,nr){or.href&&or.setAttribute('href',Ut.replaceAttrUrl(or.getAttribute('href'),nr)),or.src&&or.setAttribute('src',Ut.replaceAttrUrl(or.getAttribute('src'),nr)),'style'===or.localName&&Ut.resolveUrlsInStyle(or,nr)},fixUrlAttributes(or,nr){const lr=['action','src','href','url','style'];for(let ar,sr=0;sr<lr.length&&(ar=lr[sr]);sr++){const ir=or.attributes[ar],pr=ir&&ir.value;pr&&0>pr.search(/({{|\[\[)/)&&(ir.value='style'===ar?Ut.resolveUrlsInCssText(pr,nr):Ut.replaceAttrUrl(pr,nr))}},fixUrlsInTemplates(or,nr){const lr=or.querySelectorAll('template');for(let sr=0;sr<lr.length;sr++)Ut.fixUrlsInTemplate(lr[sr],nr)},fixUrlsInTemplate(or,nr){const lr=or.content||or,sr=lr.querySelectorAll('style, form[action], [src], [href], [url], [style]');for(let ar=0;ar<sr.length;ar++){const ir=sr[ar];'style'==ir.localName?Ut.resolveUrlsInStyle(ir,nr):Ut.fixUrlAttributes(ir,nr)}Ut.fixUrlsInTemplates(lr,nr)},resolveUrlsInStyle(or,nr){or.textContent=Ut.resolveUrlsInCssText(or.textContent,nr)},resolveUrlsInCssText(or,nr){let lr=Ut.replaceUrls(or,nr,kt);return lr=Ut.replaceUrls(lr,nr,Dt),lr},replaceUrls(or,nr,lr){return or.replace(lr,(sr,ar,ir,pr)=>{let dr=ir.replace(/["']/g,'');return nr&&(dr=Ut.resolveUrl(dr,nr)),ar+'\''+dr+'\''+pr})},replaceAttrUrl(or,nr){return or&&wt.test(or)?or:Ut.resolveUrl(or,nr)},resolveUrl(or,nr){if(void 0===Ut.__workingURL){Ut.__workingURL=!1;try{const sr=new URL('b','http://a');sr.pathname='c%20d',Ut.__workingURL='http://a/c%20d'===sr.href}catch(sr){}}if(Ut.__workingURL)return new URL(or,nr).href;let lr=Ut.__tempDoc;return lr||(lr=document.implementation.createHTMLDocument('temp'),Ut.__tempDoc=lr,lr.__base=lr.createElement('base'),lr.head.appendChild(lr.__base),lr.__anchor=lr.createElement('a')),lr.__base.href=nr,lr.__anchor.href=or,lr.__anchor.href||or}},Ft={async:!0,load(or,nr,lr){if(!or)lr('error: href must be specified');else if(or.match(/^data:/)){const sr=or.split(','),ar=sr[0];let ir=sr[1];ir=-1<ar.indexOf(';base64')?atob(ir):decodeURIComponent(ir),nr(ir)}else{const sr=new XMLHttpRequest;sr.open('GET',or,Ft.async),sr.onload=()=>{let ar=sr.getResponseHeader('Location');if(ar&&0===ar.indexOf('/')){const pr=location.origin||location.protocol+'//'+location.host;ar=pr+ar}const ir=sr.response||sr.responseText;304===sr.status||0===sr.status||200<=sr.status&&300>sr.status?nr(ir,ar):lr(ir)},sr.send()}}},jt=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent),qt='link[rel=import]',Bt='import-disable',Kt=`link[rel=stylesheet][href][type=${Bt}]`,Xt=`${qt}, ${Kt},
|
|
style:not([type]), link[rel=stylesheet][href]:not([type]),
|
|
script:not([type]), script[type="application/javascript"],
|
|
script[type="text/javascript"]`,Wt='import-dependency',Vt=`${qt}:not(${Wt})`,Gt=`script[${Wt}]`,Yt=`style[${Wt}],
|
|
link[rel=stylesheet][${Wt}]`;const $t=or=>{return or.nodeType===Node.ELEMENT_NODE&&'link'===or.localName&&'import'===or.rel},Jt=(or,nr)=>{if(or.__loaded)nr&&nr();else if('script'===or.localName&&!or.src)or.__loaded=!0,nr&&nr();else{const lr=sr=>{or.removeEventListener(sr.type,lr),or.__loaded=!0,nr&&nr()};or.addEventListener('load',lr),jt&&'style'===or.localName||or.addEventListener('error',lr)}},Zt=or=>{Qt(()=>er(()=>or&&or()))},Qt=or=>{if('loading'!==document.readyState)or();else{const nr=()=>{'loading'!==document.readyState&&(document.removeEventListener('readystatechange',nr),or())};document.addEventListener('readystatechange',nr)}},er=or=>{let nr=document.querySelectorAll(Vt),lr=nr.length;if(!lr)return void or();for(let ir,sr=0,ar=nr.length;sr<ar&&(ir=nr[sr]);sr++)Jt(ir,()=>{0==--lr&&or()})},tr=or=>{if(Pt)return or.ownerDocument;let nr=or.__ownerImport;if(!nr){for(nr=or;(nr=nr.parentNode||nr.host)&&!$t(nr););or.__ownerImport=nr}return nr},rr=(or,nr)=>{if('function'==typeof window.CustomEvent)return new CustomEvent(or,nr);const lr=document.createEvent('CustomEvent');return lr.initCustomEvent(or,!!nr.bubbles,!!nr.cancelable,nr.detail),lr};if(Pt){const or=document.querySelectorAll(qt);for(let ar,lr=0,sr=or.length;lr<sr&&(ar=or[lr]);lr++)ar.import&&'loading'===ar.import.readyState||(ar.__loaded=!0);const nr=lr=>{const sr=lr.target;$t(sr)&&(sr.__loaded=!0)};document.addEventListener('load',nr,!0),document.addEventListener('error',nr,!0)}else new class{constructor(){this.documents={},this.inflight=0,this.dynamicImportsMO=new MutationObserver(or=>this.handleMutations(or)),Qt(()=>{this.dynamicImportsMO.observe(document.head,{childList:!0,subtree:!0}),this.loadImports(document)})}loadImports(or){const nr=or.querySelectorAll(qt);for(let lr=0,sr=nr.length;lr<sr;lr++)this.loadImport(nr[lr]);this.processImportsIfLoadingDone()}loadImport(or){const nr=or.href;if(void 0!==this.documents[nr]){const lr=this.documents[nr];return void(lr&&lr.__loaded&&(or.import=lr,this.fireEventIfNeeded(or)))}this.inflight++,this.documents[nr]='pending',Ft.load(nr,(lr,sr)=>{const ar=this.makeDocument(lr,sr||nr);this.documents[nr]=ar,this.inflight--,this.loadImports(ar)},()=>{this.documents[nr]=null,this.inflight--,this.processImportsIfLoadingDone()})}makeDocument(or,nr){if(!or)return document.createDocumentFragment();jt&&(or=or.replace(Ht,(cr,mr,ur)=>{return-1===cr.indexOf('type=')?`${mr} type=${Bt} ${ur}`:cr}));let lr;const sr=document.createElement('template');if(sr.innerHTML=or,sr.content)lr=sr.content;else for(lr=document.createDocumentFragment();sr.firstChild;)lr.appendChild(sr.firstChild);const ar=lr.querySelector('base');ar&&(nr=Ut.replaceAttrUrl(ar.getAttribute('href'),nr),ar.removeAttribute('href'));const ir=lr.querySelectorAll('dom-module');for(let mr,cr=0;cr<ir.length&&(mr=ir[cr]);cr++)mr.setAttribute('assetpath',Ut.replaceAttrUrl(mr.getAttribute('assetpath')||'',nr));const pr=lr.querySelectorAll(Xt);let dr=0;for(let ur,cr=0,mr=pr.length;cr<mr&&(ur=pr[cr]);cr++)if(Jt(ur),Ut.fixUrls(ur,nr),ur.setAttribute(Wt,''),'script'===ur.localName&&!ur.src&&ur.textContent){const yr=dr?`-${dr}`:'',hr=ur.textContent+`\n//# sourceURL=${nr}${yr}.js\n`;ur.setAttribute('src','data:text/javascript;charset=utf-8,'+encodeURIComponent(hr)),ur.textContent='',dr++}return Ut.fixUrlsInTemplates(lr,nr),lr}processImportsIfLoadingDone(){if(!this.inflight){this.dynamicImportsMO.disconnect(),this.flatten(document);let or=!1,nr=!1;const lr=()=>{nr&&or&&(this.dynamicImportsMO.observe(document.head,{childList:!0,subtree:!0}),this.fireEvents())};this.waitForStyles(()=>{nr=!0,lr()}),this.runScripts(()=>{or=!0,lr()})}}flatten(or){const nr=or.querySelectorAll(qt);for(let ar,lr=0,sr=nr.length;lr<sr&&(ar=nr[lr]);lr++){const ir=this.documents[ar.href];ar.import=ir,ir&&ir.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(this.documents[ar.href]=ar,ar.readyState='loading',ar.import=ar,this.flatten(ir),ar.appendChild(ir))}}runScripts(or){const nr=document.querySelectorAll(Gt),lr=nr.length,sr=ar=>{if(ar<lr){const ir=nr[ar],pr=document.createElement('script');ir.removeAttribute(Wt);for(let dr=0,cr=ir.attributes.length;dr<cr;dr++)pr.setAttribute(ir.attributes[dr].name,ir.attributes[dr].value);Lt=pr,ir.parentNode.replaceChild(pr,ir),Jt(pr,()=>{Lt=null,sr(ar+1)})}else or()};sr(0)}waitForStyles(or){const nr=document.querySelectorAll(Yt);let lr=nr.length;if(!lr)return void or();const sr=jt&&!!document.querySelector(Kt);for(let pr,ar=0,ir=nr.length;ar<ir&&(pr=nr[ar]);ar++)if(Jt(pr,()=>{pr.removeAttribute(Wt),0==--lr&&or()}),sr&&pr.parentNode!==document.head){let dr=tr(pr);for(;dr&&tr(dr);)dr=tr(dr);const cr=pr.parentNode,mr=pr.nextSibling,ur=document.createElement(pr.localName);ur.__appliedElement=pr,ur.setAttribute('type','import-placeholder'),dr.parentNode===document.head?document.head.insertBefore(pr,dr):document.head.appendChild(pr),cr.insertBefore(ur,mr),pr.removeAttribute('type')}}fireEvents(){const or=document.querySelectorAll(qt);for(let lr,nr=or.length-1;0<=nr&&(lr=or[nr]);nr--)this.fireEventIfNeeded(lr)}fireEventIfNeeded(or){if(!or.__loaded){or.__loaded=!0,or.import&&(or.import.readyState='complete');const nr=or.import?'load':'error';or.dispatchEvent(rr(nr,{bubbles:!1,cancelable:!1,detail:void 0}))}}handleMutations(or){for(let nr=0;nr<or.length;nr++){const lr=or[nr];if(lr.addedNodes)for(let sr=0;sr<lr.addedNodes.length;sr++){const ar=lr.addedNodes[sr];ar&&ar.nodeType===Node.ELEMENT_NODE&&($t(ar)?this.loadImport(ar):this.loadImports(ar))}}}};Zt(()=>document.dispatchEvent(rr('HTMLImportsLoaded',{cancelable:!0,bubbles:!0,detail:void 0}))),Ot.useNative=Pt,Ot.whenReady=Zt,Ot.importForElement=tr})(window.HTMLImports=window.HTMLImports||{}),function(){'use strict';function Ot(Dr){var Hr=or.has(Dr);return Dr=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(Dr),!Hr&&Dr}function Pt(Dr){var Hr=Dr.isConnected;if(void 0!==Hr)return Hr;for(;Dr&&!(Dr.__CE_isImportDocument||Dr instanceof Document);)Dr=Dr.parentNode||(window.ShadowRoot&&Dr instanceof ShadowRoot?Dr.host:void 0);return Dr&&(Dr.__CE_isImportDocument||Dr instanceof Document)}function Lt(Dr,Hr){for(;Hr&&Hr!==Dr&&!Hr.nextSibling;)Hr=Hr.parentNode;return Hr&&Hr!==Dr?Hr.nextSibling:null}function wt(Dr,Hr,Ur){Ur=Ur?Ur:new Set;for(var Fr=Dr;Fr;){if(Fr.nodeType===Node.ELEMENT_NODE){var jr=Fr;Hr(jr);var qr=jr.localName;if('link'===qr&&'import'===jr.getAttribute('rel')){if(Fr=jr.import,Fr instanceof Node&&!Ur.has(Fr))for(Ur.add(Fr),Fr=Fr.firstChild;Fr;Fr=Fr.nextSibling)wt(Fr,Hr,Ur);Fr=Lt(Dr,jr);continue}else if('template'===qr){Fr=Lt(Dr,jr);continue}if(jr=jr.__CE_shadowRoot)for(jr=jr.firstChild;jr;jr=jr.nextSibling)wt(jr,Hr,Ur)}Fr=Fr.firstChild?Fr.firstChild:Lt(Dr,Fr)}}function kt(Dr,Hr,Ur){Dr[Hr]=Ur}function Dt(){this.a=new Map,this.f=new Map,this.c=[],this.b=!1}function Ht(Dr,Hr,Ur){Dr.a.set(Hr,Ur),Dr.f.set(Ur.constructor,Ur)}function Ut(Dr,Hr){Dr.b=!0,Dr.c.push(Hr)}function Ft(Dr,Hr){Dr.b&&wt(Hr,function(Ur){return jt(Dr,Ur)})}function jt(Dr,Hr){if(Dr.b&&!Hr.__CE_patched){Hr.__CE_patched=!0;for(var Ur=0;Ur<Dr.c.length;Ur++)Dr.c[Ur](Hr)}}function qt(Dr,Hr){var Ur=[];for(wt(Hr,function(jr){return Ur.push(jr)}),Hr=0;Hr<Ur.length;Hr++){var Fr=Ur[Hr];1===Fr.__CE_state?Dr.connectedCallback(Fr):Xt(Dr,Fr)}}function Bt(Dr,Hr){var Ur=[];for(wt(Hr,function(jr){return Ur.push(jr)}),Hr=0;Hr<Ur.length;Hr++){var Fr=Ur[Hr];1===Fr.__CE_state&&Dr.disconnectedCallback(Fr)}}function Kt(Dr,Hr,Ur){Ur=Ur?Ur:new Set;var Fr=[];if(wt(Hr,function(jr){if('link'===jr.localName&&'import'===jr.getAttribute('rel')){var qr=jr.import;qr instanceof Node&&'complete'===qr.readyState?(qr.__CE_isImportDocument=!0,qr.__CE_hasRegistry=!0):jr.addEventListener('load',function(){var Br=jr.import;Br.__CE_documentLoadHandled||(Br.__CE_documentLoadHandled=!0,Br.__CE_isImportDocument=!0,Br.__CE_hasRegistry=!0,new Set(Ur),Ur.delete(Br),Kt(Dr,Br,Ur))})}else Fr.push(jr)},Ur),Dr.b)for(Hr=0;Hr<Fr.length;Hr++)jt(Dr,Fr[Hr]);for(Hr=0;Hr<Fr.length;Hr++)Xt(Dr,Fr[Hr])}function Xt(Dr,Hr){if(void 0===Hr.__CE_state){var Ur=Dr.a.get(Hr.localName);if(Ur){Ur.constructionStack.push(Hr);var Fr=Ur.constructor;try{try{if(new Fr!==Hr)throw Error('The custom element constructor did not produce the element being upgraded.')}finally{Ur.constructionStack.pop()}}catch(Br){throw Hr.__CE_state=2,Br}if(Hr.__CE_state=1,Hr.__CE_definition=Ur,Ur.attributeChangedCallback)for(Ur=Ur.observedAttributes,Fr=0;Fr<Ur.length;Fr++){var jr=Ur[Fr],qr=Hr.getAttribute(jr);null!==qr&&Dr.attributeChangedCallback(Hr,jr,null,qr,null)}Pt(Hr)&&Dr.connectedCallback(Hr)}}}function Wt(Dr,Hr){this.c=Dr,this.a=Hr,this.b=void 0,Kt(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 Vt(Dr){Dr.b&&Dr.b.disconnect()}function Gt(){var Dr=this;this.b=this.a=void 0,this.c=new Promise(function(Hr){Dr.b=Hr,Dr.a&&Hr(Dr.a)})}function Yt(Dr){if(Dr.a)throw Error('Already resolved.');Dr.a=void 0,Dr.b&&Dr.b(void 0)}function zt(Dr){this.f=!1,this.a=Dr,this.h=new Map,this.g=function(Hr){return Hr()},this.b=!1,this.c=[],this.j=new Wt(Dr,document)}function $t(){var Dr=wr;window.HTMLElement=function(){function Hr(){var Ur=this.constructor,Fr=Dr.f.get(Ur);if(!Fr)throw Error('The custom element being constructed was not registered with `customElements`.');var jr=Fr.constructionStack;if(!jr.length)return jr=nr.call(document,Fr.localName),Object.setPrototypeOf(jr,Ur.prototype),jr.__CE_state=1,jr.__CE_definition=Fr,jt(Dr,jr),jr;var Fr=jr.length-1,qr=jr[Fr];if(qr===rr)throw Error('The HTMLElement constructor was either called reentrantly for this constructor or called multiple times.');return jr[Fr]=rr,Object.setPrototypeOf(qr,Ur.prototype),jt(Dr,qr),qr}return Hr.prototype=Mr.prototype,Hr}()}function Jt(Dr,Hr,Ur){Hr.prepend=function(){for(var jr=[],qr=0;qr<arguments.length;++qr)jr[qr-0]=arguments[qr];qr=jr.filter(function(Kr){return Kr instanceof Node&&Pt(Kr)}),Ur.i.apply(this,jr);for(var Br=0;Br<qr.length;Br++)Bt(Dr,qr[Br]);if(Pt(this))for(qr=0;qr<jr.length;qr++)Br=jr[qr],Br instanceof Element&&qt(Dr,Br)},Hr.append=function(){for(var jr=[],qr=0;qr<arguments.length;++qr)jr[qr-0]=arguments[qr];qr=jr.filter(function(Kr){return Kr instanceof Node&&Pt(Kr)}),Ur.append.apply(this,jr);for(var Br=0;Br<qr.length;Br++)Bt(Dr,qr[Br]);if(Pt(this))for(qr=0;qr<jr.length;qr++)Br=jr[qr],Br instanceof Element&&qt(Dr,Br)}}function Zt(){var Dr=wr;kt(Document.prototype,'createElement',function(Hr){if(this.__CE_hasRegistry){var Ur=Dr.a.get(Hr);if(Ur)return new Ur.constructor}return Hr=nr.call(this,Hr),jt(Dr,Hr),Hr}),kt(Document.prototype,'importNode',function(Hr,Ur){return Hr=sr.call(this,Hr,Ur),this.__CE_hasRegistry?Kt(Dr,Hr):Ft(Dr,Hr),Hr}),kt(Document.prototype,'createElementNS',function(Hr,Ur){if(this.__CE_hasRegistry&&(null===Hr||'http://www.w3.org/1999/xhtml'===Hr)){var Fr=Dr.a.get(Ur);if(Fr)return new Fr.constructor}return Hr=lr.call(this,Hr,Ur),jt(Dr,Hr),Hr}),Jt(Dr,Document.prototype,{i:ar,append:ir})}function Qt(){function Dr(Ur,Fr){Object.defineProperty(Ur,'textContent',{enumerable:Fr.enumerable,configurable:!0,get:Fr.get,set:function(jr){if(this.nodeType===Node.TEXT_NODE)Fr.set.call(this,jr);else{var qr;if(this.firstChild){var Br=this.childNodes,Kr=Br.length;if(0<Kr&&Pt(this))for(var qr=Array(Kr),Xr=0;Xr<Kr;Xr++)qr[Xr]=Br[Xr]}if(Fr.set.call(this,jr),qr)for(jr=0;jr<qr.length;jr++)Bt(Hr,qr[jr])}}})}var Hr=wr;kt(Node.prototype,'insertBefore',function(Ur,Fr){if(Ur instanceof DocumentFragment){var jr=Array.prototype.slice.apply(Ur.childNodes);if(Ur=cr.call(this,Ur,Fr),Pt(this))for(Fr=0;Fr<jr.length;Fr++)qt(Hr,jr[Fr]);return Ur}return jr=Pt(Ur),Fr=cr.call(this,Ur,Fr),jr&&Bt(Hr,Ur),Pt(this)&&qt(Hr,Ur),Fr}),kt(Node.prototype,'appendChild',function(Ur){if(Ur instanceof DocumentFragment){var Fr=Array.prototype.slice.apply(Ur.childNodes);if(Ur=dr.call(this,Ur),Pt(this))for(var jr=0;jr<Fr.length;jr++)qt(Hr,Fr[jr]);return Ur}return Fr=Pt(Ur),jr=dr.call(this,Ur),Fr&&Bt(Hr,Ur),Pt(this)&&qt(Hr,Ur),jr}),kt(Node.prototype,'cloneNode',function(Ur){return Ur=pr.call(this,Ur),this.ownerDocument.__CE_hasRegistry?Kt(Hr,Ur):Ft(Hr,Ur),Ur}),kt(Node.prototype,'removeChild',function(Ur){var Fr=Pt(Ur),jr=mr.call(this,Ur);return Fr&&Bt(Hr,Ur),jr}),kt(Node.prototype,'replaceChild',function(Ur,Fr){if(Ur instanceof DocumentFragment){var jr=Array.prototype.slice.apply(Ur.childNodes);if(Ur=ur.call(this,Ur,Fr),Pt(this))for(Bt(Hr,Fr),Fr=0;Fr<jr.length;Fr++)qt(Hr,jr[Fr]);return Ur}var jr=Pt(Ur),qr=ur.call(this,Ur,Fr),Br=Pt(this);return Br&&Bt(Hr,Fr),jr&&Bt(Hr,Ur),Br&&qt(Hr,Ur),qr}),yr&&yr.get?Dr(Node.prototype,yr):Ut(Hr,function(Ur){Dr(Ur,{enumerable:!0,configurable:!0,get:function(){for(var Fr=[],jr=0;jr<this.childNodes.length;jr++)Fr.push(this.childNodes[jr].textContent);return Fr.join('')},set:function(Fr){for(;this.firstChild;)mr.call(this,this.firstChild);dr.call(this,document.createTextNode(Fr))}})})}function er(Dr){var Hr=Element.prototype;Hr.before=function(){for(var Fr=[],jr=0;jr<arguments.length;++jr)Fr[jr-0]=arguments[jr];jr=Fr.filter(function(Br){return Br instanceof Node&&Pt(Br)}),xr.apply(this,Fr);for(var qr=0;qr<jr.length;qr++)Bt(Dr,jr[qr]);if(Pt(this))for(jr=0;jr<Fr.length;jr++)qr=Fr[jr],qr instanceof Element&&qt(Dr,qr)},Hr.after=function(){for(var Fr=[],jr=0;jr<arguments.length;++jr)Fr[jr-0]=arguments[jr];jr=Fr.filter(function(Br){return Br instanceof Node&&Pt(Br)}),Tr.apply(this,Fr);for(var qr=0;qr<jr.length;qr++)Bt(Dr,jr[qr]);if(Pt(this))for(jr=0;jr<Fr.length;jr++)qr=Fr[jr],qr instanceof Element&&qt(Dr,qr)},Hr.replaceWith=function(){for(var Fr=[],jr=0;jr<arguments.length;++jr)Fr[jr-0]=arguments[jr];var jr=Fr.filter(function(Kr){return Kr instanceof Node&&Pt(Kr)}),qr=Pt(this);Rr.apply(this,Fr);for(var Br=0;Br<jr.length;Br++)Bt(Dr,jr[Br]);if(qr)for(Bt(Dr,this),jr=0;jr<Fr.length;jr++)qr=Fr[jr],qr instanceof Element&&qt(Dr,qr)},Hr.remove=function(){var Ur=Pt(this);Ir.call(this),Ur&&Bt(Dr,this)}}function tr(){function Dr(jr,qr){Object.defineProperty(jr,'innerHTML',{enumerable:qr.enumerable,configurable:!0,get:qr.get,set:function(Br){var Xr,Kr=this;if(Pt(this)&&(Xr=[],wt(this,function(Gr){Gr!==Kr&&Xr.push(Gr)})),qr.set.call(this,Br),Xr)for(var Vr,Wr=0;Wr<Xr.length;Wr++)Vr=Xr[Wr],1===Vr.__CE_state&&Ur.disconnectedCallback(Vr);return this.ownerDocument.__CE_hasRegistry?Kt(Ur,this):Ft(Ur,this),Br}})}function Hr(jr,qr){kt(jr,'insertAdjacentElement',function(Br,Kr){var Xr=Pt(Kr);return Br=qr.call(this,Br,Kr),Xr&&Bt(Ur,Kr),Pt(Br)&&qt(Ur,Kr),Br})}var Ur=wr;if(hr?kt(Element.prototype,'attachShadow',function(jr){return this.__CE_shadowRoot=jr=hr.call(this,jr)}):console.warn('Custom Elements: `Element#attachShadow` was not patched.'),fr&&fr.get)Dr(Element.prototype,fr);else if(Or&&Or.get)Dr(HTMLElement.prototype,Or);else{var Fr=nr.call(document,'div');Ut(Ur,function(jr){Dr(jr,{enumerable:!0,configurable:!0,get:function(){return pr.call(this,!0).innerHTML},set:function(qr){var Br='template'===this.localName?this.content:this;for(Fr.innerHTML=qr;0<Br.childNodes.length;)mr.call(Br,Br.childNodes[0]);for(;0<Fr.childNodes.length;)dr.call(Br,Fr.childNodes[0])}})})}kt(Element.prototype,'setAttribute',function(jr,qr){if(1!==this.__CE_state)return gr.call(this,jr,qr);var Br=_r.call(this,jr);gr.call(this,jr,qr),qr=_r.call(this,jr),Br!==qr&&Ur.attributeChangedCallback(this,jr,Br,qr,null)}),kt(Element.prototype,'setAttributeNS',function(jr,qr,Br){if(1!==this.__CE_state)return br.call(this,jr,qr,Br);var Kr=Cr.call(this,jr,qr);br.call(this,jr,qr,Br),Br=Cr.call(this,jr,qr),Kr!==Br&&Ur.attributeChangedCallback(this,qr,Kr,Br,jr)}),kt(Element.prototype,'removeAttribute',function(jr){if(1!==this.__CE_state)return Sr.call(this,jr);var qr=_r.call(this,jr);Sr.call(this,jr),null!==qr&&Ur.attributeChangedCallback(this,jr,qr,null,null)}),kt(Element.prototype,'removeAttributeNS',function(jr,qr){if(1!==this.__CE_state)return Er.call(this,jr,qr);var Br=Cr.call(this,jr,qr);Er.call(this,jr,qr);var Kr=Cr.call(this,jr,qr);Br!==Kr&&Ur.attributeChangedCallback(this,qr,Br,Kr,jr)}),Pr?Hr(HTMLElement.prototype,Pr):Nr?Hr(Element.prototype,Nr):console.warn('Custom Elements: `Element#insertAdjacentElement` was not patched.'),Jt(Ur,Element.prototype,{i:Ar,append:vr}),er(Ur)}var rr=new function(){},or=new Set('annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph'.split(' '));Dt.prototype.connectedCallback=function(Dr){var Hr=Dr.__CE_definition;Hr.connectedCallback&&Hr.connectedCallback.call(Dr)},Dt.prototype.disconnectedCallback=function(Dr){var Hr=Dr.__CE_definition;Hr.disconnectedCallback&&Hr.disconnectedCallback.call(Dr)},Dt.prototype.attributeChangedCallback=function(Dr,Hr,Ur,Fr,jr){var qr=Dr.__CE_definition;qr.attributeChangedCallback&&-1<qr.observedAttributes.indexOf(Hr)&&qr.attributeChangedCallback.call(Dr,Hr,Ur,Fr,jr)},Wt.prototype.f=function(Dr){var Hr=this.a.readyState;for('interactive'!==Hr&&'complete'!==Hr||Vt(this),Hr=0;Hr<Dr.length;Hr++)for(var Ur=Dr[Hr].addedNodes,Fr=0;Fr<Ur.length;Fr++)Kt(this.c,Ur[Fr])},zt.prototype.l=function(Dr,Hr){var Ur=this;if(!(Hr instanceof Function))throw new TypeError('Custom element constructors must be functions.');if(!Ot(Dr))throw new SyntaxError('The element name \''+Dr+'\' is not valid.');if(this.a.a.get(Dr))throw Error('A custom element with name \''+Dr+'\' has already been defined.');if(this.f)throw Error('A custom element is already being defined.');this.f=!0;var Fr,jr,qr,Br,Kr;try{var Xr=function(Vr){var Gr=Wr[Vr];if(void 0!==Gr&&!(Gr instanceof Function))throw Error('The \''+Vr+'\' callback must be a function.');return Gr},Wr=Hr.prototype;if(!(Wr instanceof Object))throw new TypeError('The custom element constructor\'s prototype is not an object.');Fr=Xr('connectedCallback'),jr=Xr('disconnectedCallback'),qr=Xr('adoptedCallback'),Br=Xr('attributeChangedCallback'),Kr=Hr.observedAttributes||[]}catch(Vr){return}finally{this.f=!1}Ht(this.a,Dr,{localName:Dr,constructor:Hr,connectedCallback:Fr,disconnectedCallback:jr,adoptedCallback:qr,attributeChangedCallback:Br,observedAttributes:Kr,constructionStack:[]}),this.c.push(Dr),this.b||(this.b=!0,this.g(function(){if(!1!==Ur.b)for(Ur.b=!1,Kt(Ur.a,document);0<Ur.c.length;){var Vr=Ur.c.shift();(Vr=Ur.h.get(Vr))&&Yt(Vr)}}))},zt.prototype.get=function(Dr){if(Dr=this.a.a.get(Dr))return Dr.constructor},zt.prototype.o=function(Dr){if(!Ot(Dr))return Promise.reject(new SyntaxError('\''+Dr+'\' is not a valid custom element name.'));var Hr=this.h.get(Dr);return Hr?Hr.c:(Hr=new Gt,this.h.set(Dr,Hr),this.a.a.get(Dr)&&-1===this.c.indexOf(Dr)&&Yt(Hr),Hr.c)},zt.prototype.m=function(Dr){Vt(this.j);var Hr=this.g;this.g=function(Ur){return Dr(function(){return Hr(Ur)})}},window.CustomElementRegistry=zt,zt.prototype.define=zt.prototype.l,zt.prototype.get=zt.prototype.get,zt.prototype.whenDefined=zt.prototype.o,zt.prototype.polyfillWrapFlushCallback=zt.prototype.m;var nr=window.Document.prototype.createElement,lr=window.Document.prototype.createElementNS,sr=window.Document.prototype.importNode,ar=window.Document.prototype.prepend,ir=window.Document.prototype.append,pr=window.Node.prototype.cloneNode,dr=window.Node.prototype.appendChild,cr=window.Node.prototype.insertBefore,mr=window.Node.prototype.removeChild,ur=window.Node.prototype.replaceChild,yr=Object.getOwnPropertyDescriptor(window.Node.prototype,'textContent'),hr=window.Element.prototype.attachShadow,fr=Object.getOwnPropertyDescriptor(window.Element.prototype,'innerHTML'),_r=window.Element.prototype.getAttribute,gr=window.Element.prototype.setAttribute,Sr=window.Element.prototype.removeAttribute,Cr=window.Element.prototype.getAttributeNS,br=window.Element.prototype.setAttributeNS,Er=window.Element.prototype.removeAttributeNS,Nr=window.Element.prototype.insertAdjacentElement,Ar=window.Element.prototype.prepend,vr=window.Element.prototype.append,xr=window.Element.prototype.before,Tr=window.Element.prototype.after,Rr=window.Element.prototype.replaceWith,Ir=window.Element.prototype.remove,Mr=window.HTMLElement,Or=Object.getOwnPropertyDescriptor(window.HTMLElement.prototype,'innerHTML'),Pr=window.HTMLElement.prototype.insertAdjacentElement,Lr=window.customElements;if(!Lr||Lr.forcePolyfill||'function'!=typeof Lr.define||'function'!=typeof Lr.get){var wr=new Dt;$t(),Zt(),Qt(),tr(),document.__CE_hasRegistry=!0;var kr=new zt(wr);Object.defineProperty(window,'customElements',{configurable:!0,enumerable:!0,value:kr})}}.call(self);let ve={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},xe='{',Te='}',Re={comments:/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,port:/@import[^;]*;/gim,customProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,mixinProp:/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,mixinApply:/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,varApply:/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,keyframesRule:/^@[^\s]*keyframes/,multipleSpaces:/\s+/g},Ie='--',Pe=!(window.ShadyDOM&&window.ShadyDOM.inUse),Le=!navigator.userAgent.match('AppleWebKit/601')&&window.CSS&&CSS.supports&&CSS.supports('box-shadow','0 0 0 var(--foo)');window.ShadyCSS?pe(window.ShadyCSS):window.WebComponents&&pe(window.WebComponents.flags);let ke=null,De={VAR_ASSIGN:/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:([^;{]*)|{([^}]*)})(?:(?=[;\s}])|$)/gi,MIXIN_MATCH:/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,VAR_CONSUMED:/(--[\w-]+)\s*([:,;)]|$)/gi,ANIMATION_MATCH:/(animation\s*:)|(animation-name\s*:)/,MEDIA_MATCH:/@media[^(]*(\([^)]*\))/,IS_VAR:/^--/,BRACKETED:/\{[^}]*\}/g,HOST_PREFIX:'(?:^|[^.#[:])',HOST_SUFFIX:'($|[.:[\\s>+~])'};const He='style-scope';class Ue{get SCOPE_NAME(){return He}dom(Ot,Pt,Lt){Ot.__styleScoped?Ot.__styleScoped=null:this._transformDom(Ot,Pt||'',Lt)}_transformDom(Ot,Pt,Lt){Ot.nodeType===Node.ELEMENT_NODE&&this.element(Ot,Pt,Lt);let wt='template'===Ot.localName?(Ot.content||Ot._content).childNodes:Ot.children||Ot.childNodes;if(wt)for(let kt=0;kt<wt.length;kt++)this._transformDom(wt[kt],Pt,Lt)}element(Ot,Pt,Lt){if(Pt)if(Ot.classList)Lt?(Ot.classList.remove(He),Ot.classList.remove(Pt)):(Ot.classList.add(He),Ot.classList.add(Pt));else if(Ot.getAttribute){let wt=Ot.getAttribute('class');if(!Lt){let kt=(wt?wt+' ':'')+He+' '+Pt;be(Ot,kt)}else if(wt){let kt=wt.replace(He,'').replace(Pt,'');be(Ot,kt)}}}elementStyles(Ot,Pt,Lt){let wt=Ot.__cssBuild,kt=Pe||'shady'===wt?de(Pt,Lt):this.css(Pt,Ot.is,Ot.extends,Lt)+'\n\n';return kt.trim()}css(Ot,Pt,Lt,wt){let kt=this._calcHostScope(Pt,Lt);Pt=this._calcElementScope(Pt);let Dt=this;return de(Ot,function(Ht){Ht.isScoped||(Dt.rule(Ht,Pt,kt),Ht.isScoped=!0),wt&&wt(Ht,Pt,kt)})}_calcElementScope(Ot){return Ot?'.'+Ot:''}_calcHostScope(Ot,Pt){return Pt?'[is='+Ot+']':Ot}rule(Ot,Pt,Lt){this._transformRule(Ot,this._transformComplexSelector,Pt,Lt)}_transformRule(Ot,Pt,Lt,wt){Ot.selector=Ot.transformedSelector=this._transformRuleCss(Ot,Pt,Lt,wt)}_transformRuleCss(Ot,Pt,Lt,wt){let kt=Ot.selector.split(qe);if(!ue(Ot))for(let Ut,Dt=0,Ht=kt.length;Dt<Ht&&(Ut=kt[Dt]);Dt++)kt[Dt]=Pt.call(this,Ut,Lt,wt);return kt.join(qe)}_transformComplexSelector(Ot,Pt,Lt){let wt=!1;return Ot=Ot.trim(),Ot=Ot.replace(Fe,(kt,Dt,Ht)=>`:${Dt}(${Ht.replace(/\s/g,'')})`),Ot=Ot.replace(Ge,`${Xe} $1`),Ot=Ot.replace(Be,(kt,Dt,Ht)=>{if(!wt){let Ut=this._transformCompoundSelector(Ht,Dt,Pt,Lt);wt=wt||Ut.stop,Dt=Ut.combinator,Ht=Ut.value}return Dt+Ht}),Ot}_transformCompoundSelector(Ot,Pt,Lt,wt){let kt=Ot.indexOf(Ve);0<=Ot.indexOf(Xe)?Ot=this._transformHostSelector(Ot,wt):0!==kt&&(Ot=Lt?this._transformSimpleSelector(Ot,Lt):Ot);let Dt=!1;0<=kt&&(Pt='',Dt=!0);let Ht;return Dt&&(Ht=!0,Dt&&(Ot=Ot.replace(ze,(Ut,Ft)=>` > ${Ft}`))),Ot=Ot.replace($e,(Ut,Ft,jt)=>`[dir="${jt}"] ${Ft}, ${Ft}[dir="${jt}"]`),{value:Ot,combinator:Pt,stop:Ht}}_transformSimpleSelector(Ot,Pt){let Lt=Ot.split(Ze);return Lt[0]+=Pt,Lt.join(Ze)}_transformHostSelector(Ot,Pt){let Lt=Ot.match(Ye),wt=Lt&&Lt[2].trim()||'';if(wt){if(!wt[0].match(Ke)){let kt=wt.split(Ke)[0];return kt===Pt?wt:'should_not_match'}return Ot.replace(Ye,function(kt,Dt,Ht){return Pt+Ht})}return Ot.replace(Xe,Pt)}documentRule(Ot){Ot.selector=Ot.parsedSelector,this.normalizeRootSelector(Ot),this._transformRule(Ot,this._transformDocumentSelector)}normalizeRootSelector(Ot){Ot.selector===':root'&&(Ot.selector='html')}_transformDocumentSelector(Ot){return Ot.match(Ve)?this._transformComplexSelector(Ot,je):this._transformSimpleSelector(Ot.trim(),je)}}let Fe=/:(nth[-\w]+)\(([^)]+)\)/,je=`:not(.${He})`,qe=',',Be=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=\[])+)/g,Ke=/[[.:#*]/,Xe=':host',Ve='::slotted',Ge=/^(::slotted)/,Ye=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,ze=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,$e=/(.*):dir\((?:(ltr|rtl))\)/,Ze=':';var tt=new Ue,rt={};const ot=Promise.resolve();class nt{static get(Ot){return Ot.__styleInfo}static set(Ot,Pt){return Ot.__styleInfo=Pt,Pt}static invalidate(Ot){rt[Ot]&&(rt[Ot]._applyShimInvalid=!0)}static startValidating(Ot){const Pt=rt[Ot];Pt._validating||(Pt._validating=!0,ot.then(()=>{Pt._applyShimInvalid=!1,Pt._validating=!1}))}constructor(Ot,Pt,Lt,wt,kt,Dt){this.styleRules=Ot||null,this.placeholder=Pt||null,this.ownStylePropertyNames=Lt||[],this.overrideStyleProperties=null,this.elementName=wt||'',this.cssBuild=Dt||'',this.typeExtension=kt||'',this.styleProperties=null,this.scopeSelector=null,this.customStyle=null}}const lt=window.Element.prototype,st=lt.matches||lt.matchesSelector||lt.mozMatchesSelector||lt.msMatchesSelector||lt.oMatchesSelector||lt.webkitMatchesSelector,it=navigator.userAgent.match('Trident'),pt='x-scope';class dt{get XSCOPE_NAME(){return pt}decorateStyles(Ot){let Pt=this,Lt={},wt=[],kt=0;ye(Ot,function(Ht){Pt.decorateRule(Ht),Ht.index=kt++,Pt.collectPropertiesInCssText(Ht.propertyInfo.cssText,Lt)},function(Ut){wt.push(Ut)}),Ot._keyframes=wt;let Dt=[];for(let Ht in Lt)Dt.push(Ht);return Dt}decorateRule(Ot){if(Ot.propertyInfo)return Ot.propertyInfo;let Pt={},Lt={},wt=this.collectProperties(Ot,Lt);return wt&&(Pt.properties=Lt,Ot.rules=null),Pt.cssText=this.collectCssText(Ot),Ot.propertyInfo=Pt,Pt}collectProperties(Ot,Pt){let Lt=Ot.propertyInfo;if(!Lt){let wt,kt=De.VAR_ASSIGN,Dt=Ot.parsedCssText,Ht,Ut;for(;wt=kt.exec(Dt);)Ht=(wt[2]||wt[3]).trim(),('inherit'!==Ht||'unset'!==Ht)&&(Pt[wt[1].trim()]=Ht),Ut=!0;return Ut}else if(Lt.properties)return Object.assign(Pt,Lt.properties),!0}collectCssText(Ot){return this.collectConsumingCssText(Ot.parsedCssText)}collectConsumingCssText(Ot){return Ot.replace(De.BRACKETED,'').replace(De.VAR_ASSIGN,'')}collectPropertiesInCssText(Ot,Pt){for(let Lt,wt;Lt=De.VAR_CONSUMED.exec(Ot);)wt=Lt[1],':'!==Lt[2]&&(Pt[wt]=!0)}reify(Ot){let Pt=Object.getOwnPropertyNames(Ot);for(let wt,Lt=0;Lt<Pt.length;Lt++)wt=Pt[Lt],Ot[wt]=this.valueForProperty(Ot[wt],Ot)}valueForProperty(Ot,Pt){if(Ot)if(0<=Ot.indexOf(';'))Ot=this.valueForProperties(Ot,Pt);else{let Lt=this;Ot=Ce(Ot,function(kt,Dt,Ht,Ut){if(!Dt)return kt+Ut;let Ft=Lt.valueForProperty(Pt[Dt],Pt);return Ft&&'initial'!==Ft?'apply-shim-inherit'===Ft&&(Ft='inherit'):Ft=Lt.valueForProperty(Pt[Ht]||Ht,Pt)||Ht,kt+(Ft||'')+Ut})}return Ot&&Ot.trim()||''}valueForProperties(Ot,Pt){let Lt=Ot.split(';');for(let kt,Dt,wt=0;wt<Lt.length;wt++)if(kt=Lt[wt]){if(De.MIXIN_MATCH.lastIndex=0,Dt=De.MIXIN_MATCH.exec(kt),Dt)kt=this.valueForProperty(Pt[Dt[1]],Pt);else{let Ht=kt.indexOf(':');if(-1!==Ht){let Ut=kt.substring(Ht);Ut=Ut.trim(),Ut=this.valueForProperty(Ut,Pt)||Ut,kt=kt.substring(0,Ht)+Ut}}Lt[wt]=kt&&kt.lastIndexOf(';')===kt.length-1?kt.slice(0,-1):kt||''}return Lt.join(';')}applyProperties(Ot,Pt){let Lt='';Ot.propertyInfo||this.decorateRule(Ot),Ot.propertyInfo.cssText&&(Lt=this.valueForProperties(Ot.propertyInfo.cssText,Pt)),Ot.cssText=Lt}applyKeyframeTransforms(Ot,Pt){let Lt=Ot.cssText,wt=Ot.cssText;if(null==Ot.hasAnimations&&(Ot.hasAnimations=De.ANIMATION_MATCH.test(Lt)),Ot.hasAnimations){let kt;if(null==Ot.keyframeNamesToTransform)for(let Dt in Ot.keyframeNamesToTransform=[],Pt)kt=Pt[Dt],wt=kt(Lt),Lt!==wt&&(Lt=wt,Ot.keyframeNamesToTransform.push(Dt));else{for(let Dt=0;Dt<Ot.keyframeNamesToTransform.length;++Dt)kt=Pt[Ot.keyframeNamesToTransform[Dt]],Lt=kt(Lt);wt=Lt}}Ot.cssText=wt}propertyDataFromStyles(Ot,Pt){let Lt={},wt=this,kt=[];return ye(Ot,function(Dt){Dt.propertyInfo||wt.decorateRule(Dt);let Ht=Dt.transformedSelector||Dt.parsedSelector;Pt&&Dt.propertyInfo.properties&&Ht&&st.call(Pt,Ht)&&(wt.collectProperties(Dt,Lt),Ee(Dt.index,kt))},null,!0),{properties:Lt,key:kt}}whenHostOrRootRule(Ot,Pt,Lt,wt){if(Pt.propertyInfo||this.decorateRule(Pt),!!Pt.propertyInfo.properties){let kt=Ot.is?tt._calcHostScope(Ot.is,Ot.extends):'html',Dt=Pt.parsedSelector,Ht=':host > *'===Dt||'html'===Dt,Ut=0===Dt.indexOf(':host')&&!Ht;if('shady'===Lt&&(Ht=Dt===kt+' > *.'+kt||-1!==Dt.indexOf('html'),Ut=!Ht&&0===Dt.indexOf(kt)),'shadow'===Lt&&(Ht=':host > *'===Dt||'html'===Dt,Ut=Ut&&!Ht),Ht||Ut){let Ft=kt;Ut&&(Pe&&!Pt.transformedSelector&&(Pt.transformedSelector=tt._transformRuleCss(Pt,tt._transformComplexSelector,tt._calcElementScope(Ot.is),kt)),Ft=Pt.transformedSelector||kt),wt({selector:Ft,isHost:Ut,isRoot:Ht})}}}hostAndRootPropertiesForScope(Ot,Pt){let Lt={},wt={},kt=this,Dt=Pt&&Pt.__cssBuild;return ye(Pt,function(Ht){kt.whenHostOrRootRule(Ot,Ht,Dt,function(Ut){let Ft=Ot._element||Ot;st.call(Ft,Ut.selector)&&(Ut.isHost?kt.collectProperties(Ht,Lt):kt.collectProperties(Ht,wt))})},null,!0),{rootProps:wt,hostProps:Lt}}transformStyles(Ot,Pt,Lt){let wt=this,kt=tt._calcHostScope(Ot.is,Ot.extends),Dt=Ot.extends?'\\'+kt.slice(0,-1)+'\\]':kt,Ht=new RegExp(De.HOST_PREFIX+Dt+De.HOST_SUFFIX),Ut=nt.get(Ot).styleRules,Ft=this._elementKeyframeTransforms(Ot,Ut,Lt);return tt.elementStyles(Ot,Ut,function(jt){wt.applyProperties(jt,Pt),Pe||ue(jt)||!jt.cssText||(wt.applyKeyframeTransforms(jt,Ft),wt._scopeSelector(jt,Ht,kt,Lt))})}_elementKeyframeTransforms(Ot,Pt,Lt){let wt=Pt._keyframes,kt={};if(!Pe&&wt)for(let Dt=0,Ht=wt[Dt];Dt<wt.length;Ht=wt[++Dt])this._scopeKeyframes(Ht,Lt),kt[Ht.keyframesName]=this._keyframesRuleTransformer(Ht);return kt}_keyframesRuleTransformer(Ot){return function(Pt){return Pt.replace(Ot.keyframesNameRx,Ot.transformedKeyframesName)}}_scopeKeyframes(Ot,Pt){Ot.keyframesNameRx=new RegExp(Ot.keyframesName,'g'),Ot.transformedKeyframesName=Ot.keyframesName+'-'+Pt,Ot.transformedSelector=Ot.transformedSelector||Ot.selector,Ot.selector=Ot.transformedSelector.replace(Ot.keyframesName,Ot.transformedKeyframesName)}_scopeSelector(Ot,Pt,Lt,wt){Ot.transformedSelector=Ot.transformedSelector||Ot.selector;let kt=Ot.transformedSelector,Dt='.'+wt,Ht=kt.split(',');for(let jt,Ut=0,Ft=Ht.length;Ut<Ft&&(jt=Ht[Ut]);Ut++)Ht[Ut]=jt.match(Pt)?jt.replace(Lt,Dt):Dt+' '+jt;Ot.selector=Ht.join(',')}applyElementScopeSelector(Ot,Pt,Lt){let wt=Ot.getAttribute('class')||'',kt=wt;Lt&&(kt=wt.replace(new RegExp('\\s*'+pt+'\\s*'+Lt+'\\s*','g'),' ')),kt+=(kt?' ':'')+pt+' '+Pt,wt!==kt&&be(Ot,kt)}applyElementStyle(Ot,Pt,Lt,wt){let kt=wt?wt.textContent||'':this.transformStyles(Ot,Pt,Lt),Dt=nt.get(Ot),Ht=Dt.customStyle;return Ht&&!Pe&&Ht!==wt&&(Ht._useCount--,0>=Ht._useCount&&Ht.parentNode&&Ht.parentNode.removeChild(Ht)),Pe?Dt.customStyle?(Dt.customStyle.textContent=kt,wt=Dt.customStyle):kt&&(wt=he(kt,Lt,Ot.shadowRoot,Dt.placeholder)):wt?!wt.parentNode&&fe(wt,null,Dt.placeholder):kt&&(wt=he(kt,Lt,null,Dt.placeholder)),wt&&(wt._useCount=wt._useCount||0,Dt.customStyle!=wt&&wt._useCount++,Dt.customStyle=wt),it&&(wt.textContent=wt.textContent),wt}applyCustomStyle(Ot,Pt){let Lt=me(Ot),wt=this;Ot.textContent=de(Lt,function(kt){let Dt=kt.cssText=kt.parsedCssText;kt.propertyInfo&&kt.propertyInfo.cssText&&(Dt=se(Dt),kt.cssText=wt.valueForProperties(Dt,Pt))})}}var ct=new dt;let mt={};const ut=window.customElements;if(ut&&!Pe){const Ot=ut.define;ut.define=function(Pt,Lt,wt){return mt[Pt]=ge(Pt),Ot.call(ut,Pt,Lt,wt)}}let ht=De.MIXIN_MATCH,ft=De.VAR_ASSIGN,_t=/;\s*/m,gt=/^\s*(initial)|(inherit)\s*$/,St='_-_';class Ct{constructor(){this._map={}}set(Ot,Pt){Ot=Ot.trim(),this._map[Ot]={properties:Pt,dependants:{}}}get(Ot){return Ot=Ot.trim(),this._map[Ot]}}class bt{constructor(){this._currentTemplate=null,this._measureElement=null,this._map=new Ct,this._separator=St,this._boundProduceCssProperties=(Ot,Pt,Lt,wt)=>this._produceCssProperties(Ot,Pt,Lt,wt)}detectMixin(Ot){const Pt=ht.test(Ot)||ft.test(Ot);return ht.lastIndex=0,ft.lastIndex=0,Pt}transformStyle(Ot,Pt){let Lt=me(Ot);return this.transformRules(Lt,Pt),Lt}transformRules(Ot,Pt){this._currentTemplate=rt[Pt],ye(Ot,Lt=>{this.transformRule(Lt)}),this._currentTemplate=null}transformRule(Ot){Ot.cssText=this.transformCssText(Ot.parsedCssText),':root'===Ot.selector&&(Ot.selector=':host > *')}transformCssText(Ot){return Ot=Ot.replace(ft,this._boundProduceCssProperties),this._consumeCssProperties(Ot)}_getInitialValueForProperty(Ot){return this._measureElement||(this._measureElement=document.createElement('meta'),this._measureElement.style.all='initial',document.head.appendChild(this._measureElement)),window.getComputedStyle(this._measureElement).getPropertyValue(Ot)}_consumeCssProperties(Ot){for(let Pt;Pt=ht.exec(Ot);){let Lt=Pt[0],wt=Pt[1],kt=Pt.index,Dt=kt+Lt.indexOf('@apply'),Ht=kt+Lt.length,Ut=Ot.slice(0,Dt),Ft=Ot.slice(Ht),jt=this._cssTextToMap(Ut),qt=this._atApplyToCssProperties(wt,jt);Ot=[Ut,qt,Ft].join(''),ht.lastIndex=kt+qt.length}return Ot}_atApplyToCssProperties(Ot,Pt){Ot=Ot.replace(_t,'');let Lt=[],wt=this._map.get(Ot);if(wt||(this._map.set(Ot,{}),wt=this._map.get(Ot)),wt){this._currentTemplate&&(wt.dependants[this._currentTemplate.name]=this._currentTemplate);let kt,Dt,Ht;for(kt in wt.properties)Ht=Pt&&Pt[kt],Dt=[kt,': var(',Ot,St,kt],Ht&&Dt.push(',',Ht),Dt.push(')'),Lt.push(Dt.join(''))}return Lt.join('; ')}_replaceInitialOrInherit(Ot,Pt){let Lt=gt.exec(Pt);return Lt&&(Lt[1]?Pt=bt._getInitialValueForProperty(Ot):Pt='apply-shim-inherit'),Pt}_cssTextToMap(Ot){let Pt=Ot.split(';'),Lt,wt,kt={};for(let Ht,Ut,Dt=0;Dt<Pt.length;Dt++)Ht=Pt[Dt],Ht&&(Ut=Ht.split(':'),1<Ut.length&&(Lt=Ut[0].trim(),wt=this._replaceInitialOrInherit(Lt,Ut.slice(1).join(':')),kt[Lt]=wt));return kt}_invalidateMixinEntry(Ot){for(let Pt in Ot.dependants)this._currentTemplate&&Pt===this._currentTemplate.name||nt.invalidate(Pt)}_produceCssProperties(Ot,Pt,Lt,wt){if(Lt&&Ce(Lt,(Wt,Vt)=>{Vt&&this._map.get(Vt)&&(wt='@apply '+Vt+';')}),!wt)return Ot;let kt=this._consumeCssProperties(wt),Dt=Ot.slice(0,Ot.indexOf('--')),Ht=this._cssTextToMap(kt),Ut=Ht,Ft=this._map.get(Pt),jt=Ft&&Ft.properties;jt?Ut=Object.assign(Object.create(jt),Ht):this._map.set(Pt,Ut);let Bt,Kt,qt=[],Xt=!1;for(Bt in Ut)Kt=Ht[Bt],void 0==Kt&&(Kt='initial'),jt&&!(Bt in jt)&&(Xt=!0),qt.push(Pt+St+Bt+': '+Kt);return Xt&&this._invalidateMixinEntry(Ft),Ft&&(Ft.properties=Ut),Lt&&(Dt=Ot+';'+Dt),Dt+qt.join('; ')+';'}}let Et=new bt;window.ApplyShim=Et;let Nt=function(){};if(!Pe){let Ot=Dt=>{return Dt.classList&&!Dt.classList.contains(tt.SCOPE_NAME)||Dt instanceof SVGElement&&(!Dt.hasAttribute('class')||0>Dt.getAttribute('class').indexOf(tt.SCOPE_NAME))},Pt=Dt=>{for(let Ut,Ht=0;Ht<Dt.length;Ht++)if(Ut=Dt[Ht],Ut.target!==document.documentElement&&Ut.target!==document.head){for(let jt,Ft=0;Ft<Ut.addedNodes.length;Ft++)if(jt=Ut.addedNodes[Ft],Ot(jt)){let qt=jt.getRootNode();if(qt.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let Bt=qt.host;if(Bt){let Kt=Bt.is||Bt.localName;tt.dom(jt,Kt)}}}for(let jt,Ft=0;Ft<Ut.removedNodes.length;Ft++)if(jt=Ut.removedNodes[Ft],jt.nodeType===Node.ELEMENT_NODE){let qt;if(jt.classList?qt=Array.from(jt.classList):jt.hasAttribute('class')&&(qt=jt.getAttribute('class').split(/\s+/)),void 0!=qt){let Bt=qt.indexOf(tt.SCOPE_NAME);if(0<=Bt){let Kt=qt[Bt+1];Kt&&tt.dom(jt,Kt,!0)}}}}},Lt=new MutationObserver(Pt),wt=Dt=>{Lt.observe(Dt,{childList:!0,subtree:!0})},kt=window.customElements&&!window.customElements.flush;if(kt)wt(document);else{let Dt=()=>{wt(document.body)};window.HTMLImports?window.HTMLImports.whenReady(Dt):requestAnimationFrame(function(){if('loading'===document.readyState){let Ht=function(){Dt(),document.removeEventListener('readystatechange',Ht)};document.addEventListener('readystatechange',Ht)}else Dt()})}Nt=function(){Pt(Lt.takeRecords())}}let At=new class{constructor(Ot=100){this.cache={},this.typeMax=Ot}_validate(Ot,Pt,Lt){for(let kt,wt=0;wt<Lt.length;wt++)if(kt=Lt[wt],Ot.properties[kt]!==Pt[kt])return!1;return!0}store(Ot,Pt,Lt,wt){let kt=this.cache[Ot]||[];kt.push({properties:Pt,styleElement:Lt,scopeSelector:wt}),kt.length>this.typeMax&&kt.shift(),this.cache[Ot]=kt}fetch(Ot,Pt,Lt){let wt=this.cache[Ot];if(wt)for(let Dt,kt=wt.length-1;0<=kt;kt--)if(Dt=wt[kt],this._validate(Dt,Pt,Lt))return Dt}};class vt{constructor(){this._scopeCounter={},this._documentOwner=document.documentElement,this._documentOwnerStyleInfo=nt.set(document.documentElement,new nt({rules:[]})),this._elementsHaveApplied=!1}get nativeShadow(){return Pe}get nativeCss(){return Le}get nativeCssApply(){return!1}flush(){Nt()}_generateScopeSelector(Ot){let Pt=this._scopeCounter[Ot]=(this._scopeCounter[Ot]||0)+1;return`${Ot}-${Pt}`}getStyleAst(Ot){return me(Ot)}styleAstToString(Ot){return de(Ot)}_gatherStyles(Ot){let Pt=Ot.content.querySelectorAll('style'),Lt=[];for(let kt,wt=0;wt<Pt.length;wt++)kt=Pt[wt],Lt.push(kt.textContent),kt.parentNode.removeChild(kt);return Lt.join('').trim()}_getCssBuild(Ot){let Pt=Ot.content.querySelector('style');return Pt?Pt.getAttribute('css-build')||'':''}prepareTemplate(Ot,Pt,Lt){if(!Ot._prepared){Ot._prepared=!0,Ot.name=Pt,Ot.extends=Lt,rt[Pt]=Ot;let wt=this._getCssBuild(Ot),kt=this._gatherStyles(Ot),Dt={is:Pt,extends:Lt,__cssBuild:wt};this.nativeShadow||tt.dom(Ot.content,Pt);let Ht=Et.detectMixin(kt),Ut=_(kt);Ht&&this.nativeCss&&!this.nativeCssApply&&Et.transformRules(Ut,Pt),Ot._styleAst=Ut;let Ft=[];if(this.nativeCss||(Ft=ct.decorateStyles(Ot._styleAst,Dt)),!Ft.length||this.nativeCss){let jt=this.nativeShadow?Ot.content:null,qt=mt[Pt],Bt=this._generateStaticStyle(Dt,Ot._styleAst,jt,qt);Ot._style=Bt}Ot._ownPropertyNames=Ft}}_generateStaticStyle(Ot,Pt,Lt,wt){let kt=tt.elementStyles(Ot,Pt);if(kt.length)return he(kt,Ot.is,Lt,wt)}_prepareHost(Ot){let Lt,Pt=Ot.getAttribute('is')||Ot.localName;Pt!==Ot.localName&&(Lt=Ot.localName);let Dt,Ht,Ut,wt=mt[Pt],kt=rt[Pt];return kt&&(Dt=kt._styleAst,Ht=kt._ownPropertyNames,Ut=kt._cssBuild),nt.set(Ot,new nt(Dt,wt,Ht,Pt,Lt,Ut))}applyStyle(Ot,Pt){let Lt=Ot.getAttribute('is')||Ot.localName,wt=nt.get(Ot),kt=!!wt;if(wt||(wt=this._prepareHost(Ot)),this._isRootOwner(Ot)||(this._elementsHaveApplied=!0),window.CustomStyle){let Dt=window.CustomStyle;if(Dt._documentDirty){if(Dt.findStyles(),this.nativeCss?!this.nativeCssApply&&Dt._revalidateApplyShim():this._updateProperties(this._documentOwner,this._documentOwnerStyleInfo),Dt.applyStyles(),!this._elementsHaveApplied)return;if(!this.nativeCss&&(this.updateStyles(),kt))return}}if(Pt&&(wt.overrideStyleProperties=wt.overrideStyleProperties||{},Object.assign(wt.overrideStyleProperties,Pt)),this.nativeCss){wt.overrideStyleProperties&&this._updateNativeProperties(Ot,wt.overrideStyleProperties);let Dt=rt[Lt];if(!Dt&&!this._isRootOwner(Ot))return;if(Dt&&Dt._applyShimInvalid&&Dt._style){if(Dt._validating||(Et.transformRules(Dt._styleAst,Lt),Dt._style.textContent=tt.elementStyles(Ot,wt.styleRules),nt.startValidating(Lt)),this.nativeShadow){let Ht=Ot.shadowRoot;if(Ht){let Ut=Ht.querySelector('style');Ut.textContent=tt.elementStyles(Ot,wt.styleRules)}}wt.styleRules=Dt._styleAst}}else this._updateProperties(Ot,wt),wt.ownStylePropertyNames&&wt.ownStylePropertyNames.length&&this._applyStyleProperties(Ot,wt);if(kt){let Dt=this._isRootOwner(Ot)?Ot:Ot.shadowRoot;Dt&&this._applyToDescendants(Dt)}}_applyToDescendants(Ot){let Pt=Ot.children||Ot.childNodes;for(let wt,Lt=0;Lt<Pt.length;Lt++)wt=Pt[Lt],wt.shadowRoot&&this.applyStyle(wt),this._applyToDescendants(wt)}_styleOwnerForNode(Ot){let Pt=Ot.getRootNode(),Lt=Pt.host;return Lt?nt.get(Lt)?Lt:this._styleOwnerForNode(Lt):this._documentOwner}_isRootOwner(Ot){return Ot===this._documentOwner}_applyStyleProperties(Ot,Pt){let Lt=Ot.getAttribute('is')||Ot.localName,wt=At.fetch(Lt,Pt.styleProperties,Pt.ownStylePropertyNames),kt=wt&&wt.scopeSelector,Dt=wt?wt.styleElement:null,Ht=Pt.scopeSelector;Pt.scopeSelector=kt||this._generateScopeSelector(Lt);let Ut=ct.applyElementStyle(Ot,Pt.styleProperties,Pt.scopeSelector,Dt);return this.nativeShadow||ct.applyElementScopeSelector(Ot,Pt.scopeSelector,Ht),wt||At.store(Lt,Pt.styleProperties,Ut,Pt.scopeSelector),Ut}_updateProperties(Ot,Pt){let Lt=this._styleOwnerForNode(Ot),wt=nt.get(Lt),kt=wt.styleProperties,Dt=Object.create(kt||null),Ht=ct.hostAndRootPropertiesForScope(Ot,Pt.styleRules),Ut=ct.propertyDataFromStyles(wt.styleRules,Ot),Ft=Ut.properties;Object.assign(Dt,Ht.hostProps,Ft,Ht.rootProps),this._mixinOverrideStyles(Dt,Pt.overrideStyleProperties),ct.reify(Dt),Pt.styleProperties=Dt}_mixinOverrideStyles(Ot,Pt){for(let Lt in Pt){let wt=Pt[Lt];(wt||0===wt)&&(Ot[Lt]=wt)}}_updateNativeProperties(Ot,Pt){for(let Lt in Pt)null===Lt?Ot.style.removeProperty(Lt):Ot.style.setProperty(Lt,Pt[Lt])}updateStyles(Ot){this.applyStyle(this._documentOwner,Ot)}_transformCustomStyleForDocument(Ot){let Pt=me(Ot);ye(Pt,Lt=>{Pe?tt.normalizeRootSelector(Lt):tt.documentRule(Lt),this.nativeCss&&!this.nativeCssApply&&Et.transformRule(Lt)}),this.nativeCss?Ot.textContent=de(Pt):this._documentOwnerStyleInfo.styleRules.rules.push(Pt)}_revalidateApplyShim(Ot){if(this.nativeCss&&!this.nativeCssApply){let Pt=me(Ot);Et.transformRules(Pt),Ot.textContent=de(Pt)}}_applyCustomStyleToDocument(Ot){this.nativeCss||ct.applyCustomStyle(Ot,this._documentOwnerStyleInfo.styleProperties)}getComputedStyleValue(Ot,Pt){let Lt;if(!this.nativeCss){let wt=nt.get(Ot)||nt.get(this._styleOwnerForNode(Ot));Lt=wt.styleProperties[Pt]}return Lt=Lt||window.getComputedStyle(Ot).getPropertyValue(Pt),Lt.trim()}setElementClass(Ot,Pt){let Lt=Ot.getRootNode(),wt=Pt?Pt.split(/\s/):[],kt=Lt.host&&Lt.host.localName;if(!kt){var Dt=Ot.getAttribute('class');if(Dt){let Ht=Dt.split(/\s/);for(let Ut=0;Ut<Ht.length;Ut++)if(Ht[Ut]===tt.SCOPE_NAME){kt=Ht[Ut+1];break}}}if(kt&&wt.push(tt.SCOPE_NAME,kt),!this.nativeCss){let Ht=nt.get(Ot);Ht&&Ht.scopeSelector&&wt.push(ct.XSCOPE_NAME,Ht.scopeSelector)}be(Ot,wt.join(' '))}_styleInfoForNode(Ot){return nt.get(Ot)}}window.ShadyCSS=new vt;let xt=window.ShadyCSS,Tt=!1,Rt=[],It=null;class Mt extends HTMLElement{static get _customStyles(){return Rt}static get processHook(){return It}static set processHook(Ot){It=Ot}static get _documentDirty(){return Tt}static findStyles(){for(let Pt,Ot=0;Ot<Rt.length;Ot++)if(Pt=Rt[Ot],!Pt._style){let Lt=Pt.querySelector('style');if(!Lt)continue;if(Lt.__appliedElement)for(let kt,wt=0;wt<Lt.attributes.length;wt++)kt=Lt.attributes[wt],Lt.__appliedElement.setAttribute(kt.name,kt.value);Pt._style=Lt.__appliedElement||Lt,It&&It(Pt._style),xt._transformCustomStyleForDocument(Pt._style)}}static _revalidateApplyShim(){for(let Pt,Ot=0;Ot<Rt.length;Ot++)Pt=Rt[Ot],Pt._style&&xt._revalidateApplyShim(Pt._style)}static applyStyles(){for(let Pt,Ot=0;Ot<Rt.length;Ot++)Pt=Rt[Ot],Pt._style&&xt._applyCustomStyleToDocument(Pt._style);Tt=!1}constructor(){super(),Rt.push(this),Ne()}}window.CustomStyle=Mt,window.customElements.define('custom-style',Mt),function(){'use strict';if(customElements&&customElements.polyfillWrapFlushCallback){function Pt(){if(Lt){let kt=Lt;Lt=null,kt()}}let Lt,wt=HTMLImports.whenReady;customElements.polyfillWrapFlushCallback(function(kt){Lt=kt,wt(Pt)}),HTMLImports.whenReady=function(kt){wt(function(){Pt(),kt()})}}HTMLImports.whenReady(function(){requestAnimationFrame(function(){window.dispatchEvent(new CustomEvent('WebComponentsReady'))})})}(window.WebComponents),function(){var Pt=document.createElement('style');Pt.textContent='body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n';var Lt=document.querySelector('head');Lt.insertBefore(Pt,Lt.firstChild)}(window.WebComponents)})();
|
|
//# sourceMappingURL=webcomponents-hi-ce.js.map
|