Files
webcomponentsjs/webcomponents-hi.js
2017-01-31 18:54:49 -08:00

7 lines
35 KiB
JavaScript

(function(){'use strict';function d(ze){return ze=y(ze),_(h(ze),ze)}function y(ze){return ze.replace(G.comments,'').replace(G.port,'')}function h(ze){let $e={start:0,end:ze.length},Je=$e;for(let Ze=0,Qe=ze.length;Ze<Qe;Ze++)if(ze[Ze]===X){Je.rules||(Je.rules=[]);let et=Je,tt=et.rules[et.rules.length-1];Je={start:Ze+1,parent:et,previous:tt},et.rules.push(Je)}else ze[Ze]===V&&(Je.end=Ze+1,Je=Je.parent||$e);return $e}function _(ze,$e){let Je=$e.substring(ze.start,ze.end-1);if(ze.parsedCssText=ze.cssText=Je.trim(),ze.parent){let Qe=ze.previous?ze.previous.end:ze.parent.start;Je=$e.substring(Qe,ze.start-1),Je=S(Je),Je=Je.replace(G.multipleSpaces,' '),Je=Je.substring(Je.lastIndexOf(';')+1);let et=ze.parsedSelector=ze.selector=Je.trim();ze.atRule=0===et.indexOf('@'),ze.atRule?0===et.indexOf('@media')?ze.type=K.MEDIA_RULE:et.match(G.keyframesRule)&&(ze.type=K.KEYFRAMES_RULE,ze.keyframesName=ze.selector.split(G.multipleSpaces).pop()):0===et.indexOf(Y)?ze.type=K.MIXIN_RULE:ze.type=K.STYLE_RULE}let Ze=ze.rules;if(Ze)for(let tt,Qe=0,et=Ze.length;Qe<et&&(tt=Ze[Qe]);Qe++)_(tt,$e);return ze}function S(ze){return ze.replace(/\\([0-9a-f]{1,6})\s/gi,function(){let $e=arguments[1],Je=6-$e.length;for(;Je--;)$e='0'+$e;return'\\'+$e})}function g(ze,$e,Je){Je=Je||'';let Ze='';if(ze.cssText||ze.rules){let Qe=ze.rules;if(Qe&&!E(Qe))for(let rt,et=0,tt=Qe.length;et<tt&&(rt=Qe[et]);et++)Ze=g(rt,$e,Ze);else Ze=$e?ze.cssText:A(ze.cssText),Ze=Ze.trim(),Ze&&(Ze=' '+Ze+'\n')}return Ze&&(ze.selector&&(Je+=ze.selector+' '+X+'\n'),Je+=Ze,ze.selector&&(Je+=V+'\n\n')),Je}function E(ze){return 0===ze[0].selector.indexOf(Y)}function A(ze){return ze=C(ze),N(ze)}function C(ze){return ze.replace(G.customProp,'').replace(G.mixinProp,'')}function N(ze){return ze.replace(G.mixinApply,'').replace(G.varApply,'')}function b(ze){ze&&(J=J&&!ze.shimcssproperties,$=$&&!ze.shimshadow)}function R(ze,$e){return'string'==typeof ze&&(ze=d(ze)),$e&&M(ze,$e),g(ze,J)}function I(ze){return!ze.__cssRules&&ze.textContent&&(ze.__cssRules=d(ze.textContent)),ze.__cssRules}function P(ze){return ze.parent&&ze.parent.type===K.KEYFRAMES_RULE}function M(ze,$e,Je,Ze){if(ze){let Qe=!1;if(Ze&&ze.type===K.MEDIA_RULE){let tt=ze.selector.match(ee.MEDIA_MATCH);tt&&!window.matchMedia(tt[1]).matches&&(Qe=!0)}ze.type===K.STYLE_RULE?$e(ze):Je&&ze.type===K.KEYFRAMES_RULE?Je(ze):ze.type===K.MIXIN_RULE&&(Qe=!0);let et=ze.rules;if(et&&!Qe)for(let st,tt=0,rt=et.length;tt<rt&&(st=et[tt]);tt++)M(st,$e,Je,Ze)}}function O(ze,$e,Je,Ze){let Qe=w(ze,$e);return L(Qe,Je,Ze)}function L(ze,$e,Je){$e=$e||document.head;let Ze=Je&&Je.nextSibling||$e.firstChild;return Q=ze,$e.insertBefore(ze,Ze)}function w(ze,$e){let Je=document.createElement('style');return $e&&Je.setAttribute('scope',$e),Je.textContent=ze,Je}function U(ze){let $e=document.createComment(' Shady DOM styles for '+ze+' '),Je=Q?Q.nextSibling:null,Ze=document.head;return Ze.insertBefore($e,Je||Ze.firstChild),Q=$e,$e}function D(ze,$e){let Je=0;for(let Ze=$e,Qe=ze.length;Ze<Qe;Ze++)if('('===ze[Ze])Je++;else if(')'===ze[Ze]&&0==--Je)return Ze;return-1}function H(ze,$e){let Je=ze.indexOf('var(');if(-1===Je)return $e(ze,'','','');let Ze=D(ze,Je+3),Qe=ze.substring(Je+4,Ze),et=ze.substring(0,Je),tt=H(ze.substring(Ze+1),$e),rt=Qe.indexOf(',');if(-1===rt)return $e(et,Qe.trim(),'',tt);let st=Qe.substring(0,rt).trim(),nt=Qe.substring(rt+1).trim();return $e(et,st,nt,tt)}function F(ze,$e){window.ShadyDOM?window.ShadyDOM.nativeMethods.setAttribute.call(ze,'class',$e):ze.setAttribute('class',$e)}function k(ze,$e){let Je=parseInt(ze/32);$e[Je]=($e[Je]||0)|1<<ze%32}function q(){Ve||(Ve=!0,window.HTMLImports?window.HTMLImports.whenReady(B):'complete'===document.readyState?B():document.addEventListener('readystatechange',()=>{'complete'===document.readyState&&B()}))}function B(){requestAnimationFrame(()=>{(Ve||Xe._elementsHaveApplied)&&Xe.updateStyles(),Ve=!1})}(ze=>{const $e=!!('import'in document.createElement('link'));let Je=null;!1=='currentScript'in document&&Object.defineProperty(document,'currentScript',{get(){return Je||('complete'===document.readyState?null:document.scripts[document.scripts.length-1])},configurable:!0});const Ze=/(^\/)|(^#)|(^[\w-\d]*:)/,Qe=/(url\()([^)]*)(\))/g,et=/(@import[\s]+(?!url\())([^;]*)(;)/g,tt=/(<link[^>]*)(rel=['|"]?stylesheet['|"]?[^>]*>)/g,rt={fixUrls(Ct,xt){Ct.href&&Ct.setAttribute('href',rt.replaceAttrUrl(Ct.getAttribute('href'),xt)),Ct.src&&Ct.setAttribute('src',rt.replaceAttrUrl(Ct.getAttribute('src'),xt)),'style'===Ct.localName&&rt.resolveUrlsInStyle(Ct,xt)},fixUrlAttributes(Ct,xt){const vt=['action','src','href','url','style'];for(let Tt,Nt=0;Nt<vt.length&&(Tt=vt[Nt]);Nt++){const bt=Ct.attributes[Tt],Rt=bt&&bt.value;Rt&&0>Rt.search(/({{|\[\[)/)&&(bt.value='style'===Tt?rt.resolveUrlsInCssText(Rt,xt):rt.replaceAttrUrl(Rt,xt))}},fixUrlsInTemplates(Ct,xt){const vt=Ct.querySelectorAll('template');for(let Nt=0;Nt<vt.length;Nt++)rt.fixUrlsInTemplate(vt[Nt],xt)},fixUrlsInTemplate(Ct,xt){const vt=Ct.content;if(vt){const Nt=vt.querySelectorAll('style, form[action], [src], [href], [url], [style]');for(let Tt=0;Tt<Nt.length;Tt++){const bt=Nt[Tt];'style'==bt.localName?rt.resolveUrlsInStyle(bt,xt):rt.fixUrlAttributes(bt,xt)}rt.fixUrlsInTemplates(vt,xt)}},resolveUrlsInStyle(Ct,xt){Ct.textContent=rt.resolveUrlsInCssText(Ct.textContent,xt)},resolveUrlsInCssText(Ct,xt){let vt=rt.replaceUrls(Ct,xt,Qe);return vt=rt.replaceUrls(vt,xt,et),vt},replaceUrls(Ct,xt,vt){return Ct.replace(vt,(Nt,Tt,bt,Rt)=>{let It=bt.replace(/["']/g,'');return xt&&(It=rt.resolveUrl(It,xt)),Tt+'\''+It+'\''+Rt})},replaceAttrUrl(Ct,xt){return Ct&&Ze.test(Ct)?Ct:rt.resolveUrl(Ct,xt)},resolveUrl(Ct,xt){if(void 0===rt.__workingURL){rt.__workingURL=!1;try{const Nt=new URL('b','http://a');Nt.pathname='c%20d',rt.__workingURL='http://a/c%20d'===Nt.href}catch(Nt){}}if(rt.__workingURL)return new URL(Ct,xt).href;let vt=rt.__tempDoc;return vt||(vt=document.implementation.createHTMLDocument('temp'),rt.__tempDoc=vt,vt.__base=vt.createElement('base'),vt.head.appendChild(vt.__base),vt.__anchor=vt.createElement('a')),vt.__base.href=xt,vt.__anchor.href=Ct,vt.__anchor.href||Ct}},st={async:!0,load(Ct){return new Promise((xt,vt)=>{if(!Ct)vt({resource:'error: href must be specified'});else if(Ct.match(/^data:/)){const Nt=Ct.split(','),Tt=Nt[0];let bt=Nt[1];bt=-1<Tt.indexOf(';base64')?atob(bt):decodeURIComponent(bt),xt({resource:bt})}else{const Nt=new XMLHttpRequest;Nt.open('GET',Ct,st.async),Nt.addEventListener('readystatechange',()=>{if(4===Nt.readyState){let Tt;try{const Rt=Nt.getResponseHeader('Location');Rt&&(Tt='/'===Rt.substr(0,1)?location.origin+Rt:Rt)}catch(Rt){console.error(Rt.message)}const bt={resource:Nt.response||Nt.responseText,redirectedUrl:Tt};304===Nt.status||0===Nt.status||200<=Nt.status&&300>Nt.status?xt(bt):vt(bt)}}),Nt.send()}})}},nt=/Trident/.test(navigator.userAgent)||/Edge\/\d./i.test(navigator.userAgent),lt='link[rel=import]',ot='import-disable',it=`link[rel=stylesheet][href][type=${ot}]`,dt=`${lt}, ${it},
style:not([type]), link[rel=stylesheet][href]:not([type]),
script:not([type]), script[type="application/javascript"],
script[type="text/javascript"]`,pt='import-dependency',ct=`${lt}:not(${pt})`,mt=`script[${pt}]`,ut=`style[${pt}],
link[rel=stylesheet][${pt}]`,yt=Element.prototype.matches||Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector;const ht=Ct=>{return Ct.nodeType===Node.ELEMENT_NODE&&yt.call(Ct,lt)},_t=Ct=>{return Ct.__loadPromise||(Ct.__loadPromise=new Promise(xt=>{'script'!==Ct.localName||Ct.src?nt&&'style'===Ct.localName?Ct.addEventListener('load',xt):(Ct.addEventListener('load',xt),Ct.addEventListener('error',xt)):xt()}).then(()=>{return Ct.__loaded=!0,Ct})),Ct.__loadPromise},St=Ct=>{gt(()=>Et(()=>Ct&&Ct()))},gt=Ct=>{if('loading'!==document.readyState)Ct();else{const xt=()=>{'loading'!==document.readyState&&(document.removeEventListener('readystatechange',xt),Ct())};document.addEventListener('readystatechange',xt)}},Et=Ct=>{let xt=document.querySelectorAll(ct);const vt=[];for(let bt,Nt=0,Tt=xt.length;Nt<Tt&&(bt=xt[Nt]);Nt++)bt.__loaded||vt.push(_t(bt));vt.length?Promise.all(vt).then(Ct):Ct()},At=Ct=>{if($e)return Ct.ownerDocument;let xt=Ct.__ownerImport;if(!xt){for(xt=Ct;(xt=xt.parentNode||xt.host)&&!ht(xt););Ct.__ownerImport=xt}return xt};if(St(()=>document.dispatchEvent(new CustomEvent('HTMLImportsLoaded',{cancelable:!0,bubbles:!0,detail:void 0}))),$e){const Ct=xt=>{const vt=xt.target;ht(vt)&&(vt.__loaded=!0)};document.addEventListener('load',Ct,!0),document.addEventListener('error',Ct,!0)}else new class{constructor(){this.documents={},this.inflight=0,gt(()=>{new MutationObserver(Ct=>this.handleMutations(Ct)).observe(document.head,{childList:!0,subtree:!0}),this.load()})}load(Ct){const xt=Ct?this.whenImportLoaded(Ct):this.whenImportsLoaded(document);xt&&(this.inflight++,xt.then(()=>{0==--this.inflight&&this.onLoadedAll()}))}whenImportsLoaded(Ct){const xt=Ct.querySelectorAll(lt),vt=[];for(let Nt=0,Tt=xt.length;Nt<Tt;Nt++){const bt=this.whenImportLoaded(xt[Nt]);bt&&vt.push(bt)}return vt.length?Promise.all(vt).then(()=>Ct):null}whenImportLoaded(Ct){const xt=Ct.href;return void 0===this.documents[xt]?(this.documents[xt]='pending',st.load(xt).then(vt=>{const Nt=this.makeDocument(vt.resource,vt.redirectedUrl||xt);return this.documents[xt]=Nt,this.whenImportsLoaded(Nt)}).catch(()=>this.documents[xt]=null).then(()=>Ct)):null}makeDocument(Ct,xt){if(!Ct)return document.createDocumentFragment();nt&&(Ct=Ct.replace(tt,(Pt,Mt,Ot)=>{return-1===Pt.indexOf('type=')?`${Mt} type=${ot} ${Ot}`:Pt}));let vt;const Nt=document.createElement('template');if(Nt.innerHTML=Ct,Nt.content)vt=Nt.content;else for(vt=document.createDocumentFragment();Nt.firstElementChild;)vt.appendChild(Nt.firstElementChild);const Tt=vt.querySelector('base');Tt&&(xt=rt.replaceAttrUrl(Tt.getAttribute('href'),xt),Tt.removeAttribute('href'));const bt=vt.querySelectorAll('dom-module');for(let Mt,Pt=0;Pt<bt.length&&(Mt=bt[Pt]);Pt++)Mt.setAttribute('assetpath',rt.replaceAttrUrl(Mt.getAttribute('assetpath')||'',xt));const Rt=vt.querySelectorAll(dt);let It=0;for(let Ot,Pt=0,Mt=Rt.length;Pt<Mt&&(Ot=Rt[Pt]);Pt++)if(_t(Ot),rt.fixUrls(Ot,xt),Ot.setAttribute(pt,''),'script'===Ot.localName&&!Ot.src&&Ot.textContent){const Lt=It?`-${It}`:'',wt=Ot.textContent+`\n//# sourceURL=${xt}${Lt}.js\n`;Ot.setAttribute('src','data:text/javascript;charset=utf-8,'+encodeURIComponent(wt)),Ot.textContent='',It++}return rt.fixUrlsInTemplates(vt,xt),vt}onLoadedAll(){this.flatten(document),Promise.all([this.waitForStyles(),this.runScripts()]).then(()=>this.fireEvents())}flatten(Ct){const xt=Ct.querySelectorAll(lt);for(let Tt,vt=0,Nt=xt.length;vt<Nt&&(Tt=xt[vt]);vt++){const bt=this.documents[Tt.href];Tt.import=bt,bt&&bt.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(this.documents[Tt.href]=Tt,Tt.readyState='loading',Tt.import=Tt,this.flatten(bt),Tt.appendChild(bt))}}runScripts(){const Ct=document.querySelectorAll(mt);let xt=Promise.resolve();for(let Tt,vt=0,Nt=Ct.length;vt<Nt&&(Tt=Ct[vt]);vt++)xt=xt.then(()=>{const bt=document.createElement('script');Tt.removeAttribute(pt);for(let Rt=0,It=Tt.attributes.length;Rt<It;Rt++)bt.setAttribute(Tt.attributes[Rt].name,Tt.attributes[Rt].value);return Je=bt,Tt.parentNode.replaceChild(bt,Tt),_t(bt).then(()=>Je=null)});return xt}waitForStyles(){const Ct=!!document.querySelector(it),xt=document.querySelectorAll(ut),vt=[];for(let bt,Nt=0,Tt=xt.length;Nt<Tt&&(bt=xt[Nt]);Nt++)if(vt.push(_t(bt).then(()=>bt.removeAttribute(pt))),Ct&&bt.parentNode!==document.head){let Rt=At(bt);for(;Rt&&At(Rt);)Rt=At(Rt);const It=bt.parentNode,Pt=bt.nextSibling,Mt=document.createElement(bt.localName);Mt.__appliedElement=bt,Mt.setAttribute('type','import-placeholder'),Rt.parentNode===document.head?document.head.insertBefore(bt,Rt):document.head.appendChild(bt),It.insertBefore(Mt,Pt),bt.removeAttribute('type')}return Promise.all(vt)}fireEvents(){const Ct=document.querySelectorAll(lt);for(let vt,xt=Ct.length-1;0<=xt&&(vt=Ct[xt]);xt--)this.fireEventIfNeeded(vt)}fireEventIfNeeded(Ct){if(!Ct.__loaded){Ct.__loaded=!0,Ct.import&&(Ct.import.readyState='complete');const xt=Ct.import?'load':'error';Ct.dispatchEvent(new CustomEvent(xt,{bubbles:!1,cancelable:!1,detail:void 0}))}}handleMutations(Ct){for(let xt=0;xt<Ct.length;xt++){const vt=Ct[xt];if(vt.addedNodes)for(let Nt=0;Nt<vt.addedNodes.length;Nt++){const Tt=vt.addedNodes[Nt];if(Tt&&Tt.nodeType===Node.ELEMENT_NODE){const bt=ht(Tt)?[Tt]:Tt.querySelectorAll(lt);for(let Rt=0;Rt<bt.length;Rt++){const It=bt[Rt],Pt=this.documents[It.href];void 0===Pt?this.load(It):!this.inflight&&(It.import=Pt,this.fireEventIfNeeded(It))}}}}}};ze.useNative=$e,ze.whenReady=St,ze.importForElement=At})(window.HTMLImports=window.HTMLImports||{});let K={STYLE_RULE:1,KEYFRAMES_RULE:7,MEDIA_RULE:4,MIXIN_RULE:1e3},X='{',V='}',G={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},Y='--',$=!(window.ShadyDOM&&window.ShadyDOM.inUse),J=!navigator.userAgent.match('AppleWebKit/601')&&window.CSS&&CSS.supports&&CSS.supports('box-shadow','0 0 0 var(--foo)');window.ShadyCSS?b(window.ShadyCSS):window.WebComponents&&b(window.WebComponents.flags);let Q=null,ee={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 te='style-scope';class re{get SCOPE_NAME(){return te}dom(ze,$e,Je){ze.__styleScoped?ze.__styleScoped=null:this._transformDom(ze,$e||'',Je)}_transformDom(ze,$e,Je){ze.nodeType===Node.ELEMENT_NODE&&this.element(ze,$e,Je);let Ze='template'===ze.localName?(ze.content||ze._content).childNodes:ze.children||ze.childNodes;if(Ze)for(let Qe=0;Qe<Ze.length;Qe++)this._transformDom(Ze[Qe],$e,Je)}element(ze,$e,Je){if($e)if(ze.classList)Je?(ze.classList.remove(te),ze.classList.remove($e)):(ze.classList.add(te),ze.classList.add($e));else if(ze.getAttribute){let Ze=ze.getAttribute('class');if(!Je){let Qe=(Ze?Ze+' ':'')+te+' '+$e;F(ze,Qe)}else if(Ze){let Qe=Ze.replace(te,'').replace($e,'');F(ze,Qe)}}}elementStyles(ze,$e,Je){let Ze=ze.__cssBuild,Qe=$||'shady'===Ze?R($e,Je):this.css($e,ze.is,ze.extends,Je)+'\n\n';return Qe.trim()}css(ze,$e,Je,Ze){let Qe=this._calcHostScope($e,Je);$e=this._calcElementScope($e);let et=this;return R(ze,function(tt){tt.isScoped||(et.rule(tt,$e,Qe),tt.isScoped=!0),Ze&&Ze(tt,$e,Qe)})}_calcElementScope(ze){return ze?'.'+ze:''}_calcHostScope(ze,$e){return $e?'[is='+ze+']':ze}rule(ze,$e,Je){this._transformRule(ze,this._transformComplexSelector,$e,Je)}_transformRule(ze,$e,Je,Ze){ze.selector=ze.transformedSelector=this._transformRuleCss(ze,$e,Je,Ze)}_transformRuleCss(ze,$e,Je,Ze){let Qe=ze.selector.split(le);if(!P(ze))for(let rt,et=0,tt=Qe.length;et<tt&&(rt=Qe[et]);et++)Qe[et]=$e.call(this,rt,Je,Ze);return Qe.join(le)}_transformComplexSelector(ze,$e,Je){let Ze=!1;return ze=ze.trim(),ze=ze.replace(se,(Qe,et,tt)=>`:${et}(${tt.replace(/\s/g,'')})`),ze=ze.replace(me,`${ie} $1`),ze=ze.replace(oe,(Qe,et,tt)=>{if(!Ze){let rt=this._transformCompoundSelector(tt,et,$e,Je);Ze=Ze||rt.stop,et=rt.combinator,tt=rt.value}return et+tt}),ze}_transformCompoundSelector(ze,$e,Je,Ze){let Qe=ze.indexOf(pe);0<=ze.indexOf(ie)?ze=this._transformHostSelector(ze,Ze):0!==Qe&&(ze=Je?this._transformSimpleSelector(ze,Je):ze);let et=!1;0<=Qe&&($e='',et=!0);let tt;return et&&(tt=!0,et&&(ze=ze.replace(ye,(rt,st)=>` > ${st}`))),ze=ze.replace(fe,(rt,st,nt)=>`[dir="${nt}"] ${st}, ${st}[dir="${nt}"]`),{value:ze,combinator:$e,stop:tt}}_transformSimpleSelector(ze,$e){let Je=ze.split(_e);return Je[0]+=$e,Je.join(_e)}_transformHostSelector(ze,$e){let Je=ze.match(ue),Ze=Je&&Je[2].trim()||'';if(Ze){if(!Ze[0].match(ae)){let Qe=Ze.split(ae)[0];return Qe===$e?Ze:'should_not_match'}return ze.replace(ue,function(Qe,et,tt){return $e+tt})}return ze.replace(ie,$e)}documentRule(ze){ze.selector=ze.parsedSelector,this.normalizeRootSelector(ze),this._transformRule(ze,this._transformDocumentSelector)}normalizeRootSelector(ze){ze.selector===':root'&&(ze.selector='html')}_transformDocumentSelector(ze){return ze.match(pe)?this._transformComplexSelector(ze,ne):this._transformSimpleSelector(ze.trim(),ne)}}let se=/:(nth[-\w]+)\(([^)]+)\)/,ne=`:not(.${te})`,le=',',oe=/(^|[\s>+~]+)((?:\[.+?\]|[^\s>+~=\[])+)/g,ae=/[[.:#*]/,ie=':host',pe='::slotted',me=/^(::slotted)/,ue=/(:host)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,ye=/(?:::slotted)(?:\(((?:\([^)(]*\)|[^)(]*)+?)\))/,fe=/(.*):dir\((?:(ltr|rtl))\)/,_e=':';var Ee=new re,Ae={};const Ce=Promise.resolve();class xe{static get(ze){return ze.__styleInfo}static set(ze,$e){return ze.__styleInfo=$e,$e}static invalidate(ze){Ae[ze]&&(Ae[ze]._applyShimInvalid=!0)}static startValidating(ze){const $e=Ae[ze];$e._validating||($e._validating=!0,Ce.then(()=>{$e._applyShimInvalid=!1,$e._validating=!1}))}constructor(ze,$e,Je,Ze,Qe,et){this.styleRules=ze||null,this.placeholder=$e||null,this.ownStylePropertyNames=Je||[],this.overrideStyleProperties=null,this.elementName=Ze||'',this.cssBuild=et||'',this.typeExtension=Qe||'',this.styleProperties=null,this.scopeSelector=null,this.customStyle=null}}const ve=window.Element.prototype,Ne=ve.matches||ve.matchesSelector||ve.mozMatchesSelector||ve.msMatchesSelector||ve.oMatchesSelector||ve.webkitMatchesSelector,Te=navigator.userAgent.match('Trident'),be='x-scope';class Re{get XSCOPE_NAME(){return be}decorateStyles(ze){let $e=this,Je={},Ze=[],Qe=0;M(ze,function(tt){$e.decorateRule(tt),tt.index=Qe++,$e.collectPropertiesInCssText(tt.propertyInfo.cssText,Je)},function(rt){Ze.push(rt)}),ze._keyframes=Ze;let et=[];for(let tt in Je)et.push(tt);return et}decorateRule(ze){if(ze.propertyInfo)return ze.propertyInfo;let $e={},Je={},Ze=this.collectProperties(ze,Je);return Ze&&($e.properties=Je,ze.rules=null),$e.cssText=this.collectCssText(ze),ze.propertyInfo=$e,$e}collectProperties(ze,$e){let Je=ze.propertyInfo;if(!Je){let Ze,Qe=ee.VAR_ASSIGN,et=ze.parsedCssText,tt,rt;for(;Ze=Qe.exec(et);)tt=(Ze[2]||Ze[3]).trim(),('inherit'!==tt||'unset'!==tt)&&($e[Ze[1].trim()]=tt),rt=!0;return rt}else if(Je.properties)return Object.assign($e,Je.properties),!0}collectCssText(ze){return this.collectConsumingCssText(ze.parsedCssText)}collectConsumingCssText(ze){return ze.replace(ee.BRACKETED,'').replace(ee.VAR_ASSIGN,'')}collectPropertiesInCssText(ze,$e){for(let Je,Ze;Je=ee.VAR_CONSUMED.exec(ze);)Ze=Je[1],':'!==Je[2]&&($e[Ze]=!0)}reify(ze){let $e=Object.getOwnPropertyNames(ze);for(let Ze,Je=0;Je<$e.length;Je++)Ze=$e[Je],ze[Ze]=this.valueForProperty(ze[Ze],ze)}valueForProperty(ze,$e){if(ze)if(0<=ze.indexOf(';'))ze=this.valueForProperties(ze,$e);else{let Je=this;ze=H(ze,function(Qe,et,tt,rt){if(!et)return Qe+rt;let st=Je.valueForProperty($e[et],$e);return st&&'initial'!==st?'apply-shim-inherit'===st&&(st='inherit'):st=Je.valueForProperty($e[tt]||tt,$e)||tt,Qe+(st||'')+rt})}return ze&&ze.trim()||''}valueForProperties(ze,$e){let Je=ze.split(';');for(let Qe,et,Ze=0;Ze<Je.length;Ze++)if(Qe=Je[Ze]){if(ee.MIXIN_MATCH.lastIndex=0,et=ee.MIXIN_MATCH.exec(Qe),et)Qe=this.valueForProperty($e[et[1]],$e);else{let tt=Qe.indexOf(':');if(-1!==tt){let rt=Qe.substring(tt);rt=rt.trim(),rt=this.valueForProperty(rt,$e)||rt,Qe=Qe.substring(0,tt)+rt}}Je[Ze]=Qe&&Qe.lastIndexOf(';')===Qe.length-1?Qe.slice(0,-1):Qe||''}return Je.join(';')}applyProperties(ze,$e){let Je='';ze.propertyInfo||this.decorateRule(ze),ze.propertyInfo.cssText&&(Je=this.valueForProperties(ze.propertyInfo.cssText,$e)),ze.cssText=Je}applyKeyframeTransforms(ze,$e){let Je=ze.cssText,Ze=ze.cssText;if(null==ze.hasAnimations&&(ze.hasAnimations=ee.ANIMATION_MATCH.test(Je)),ze.hasAnimations){let Qe;if(null==ze.keyframeNamesToTransform)for(let et in ze.keyframeNamesToTransform=[],$e)Qe=$e[et],Ze=Qe(Je),Je!==Ze&&(Je=Ze,ze.keyframeNamesToTransform.push(et));else{for(let et=0;et<ze.keyframeNamesToTransform.length;++et)Qe=$e[ze.keyframeNamesToTransform[et]],Je=Qe(Je);Ze=Je}}ze.cssText=Ze}propertyDataFromStyles(ze,$e){let Je={},Ze=this,Qe=[];return M(ze,function(et){et.propertyInfo||Ze.decorateRule(et);let tt=et.transformedSelector||et.parsedSelector;$e&&et.propertyInfo.properties&&tt&&Ne.call($e,tt)&&(Ze.collectProperties(et,Je),k(et.index,Qe))},null,!0),{properties:Je,key:Qe}}whenHostOrRootRule(ze,$e,Je,Ze){if($e.propertyInfo||this.decorateRule($e),!!$e.propertyInfo.properties){let Qe=ze.is?Ee._calcHostScope(ze.is,ze.extends):'html',et=$e.parsedSelector,tt=':host > *'===et||'html'===et,rt=0===et.indexOf(':host')&&!tt;if('shady'===Je&&(tt=et===Qe+' > *.'+Qe||-1!==et.indexOf('html'),rt=!tt&&0===et.indexOf(Qe)),'shadow'===Je&&(tt=':host > *'===et||'html'===et,rt=rt&&!tt),tt||rt){let st=Qe;rt&&($&&!$e.transformedSelector&&($e.transformedSelector=Ee._transformRuleCss($e,Ee._transformComplexSelector,Ee._calcElementScope(ze.is),Qe)),st=$e.transformedSelector||Qe),Ze({selector:st,isHost:rt,isRoot:tt})}}}hostAndRootPropertiesForScope(ze,$e){let Je={},Ze={},Qe=this,et=$e&&$e.__cssBuild;return M($e,function(tt){Qe.whenHostOrRootRule(ze,tt,et,function(rt){let st=ze._element||ze;Ne.call(st,rt.selector)&&(rt.isHost?Qe.collectProperties(tt,Je):Qe.collectProperties(tt,Ze))})},null,!0),{rootProps:Ze,hostProps:Je}}transformStyles(ze,$e,Je){let Ze=this,Qe=Ee._calcHostScope(ze.is,ze.extends),et=ze.extends?'\\'+Qe.slice(0,-1)+'\\]':Qe,tt=new RegExp(ee.HOST_PREFIX+et+ee.HOST_SUFFIX),rt=xe.get(ze).styleRules,st=this._elementKeyframeTransforms(ze,rt,Je);return Ee.elementStyles(ze,rt,function(nt){Ze.applyProperties(nt,$e),$||P(nt)||!nt.cssText||(Ze.applyKeyframeTransforms(nt,st),Ze._scopeSelector(nt,tt,Qe,Je))})}_elementKeyframeTransforms(ze,$e,Je){let Ze=$e._keyframes,Qe={};if(!$&&Ze)for(let et=0,tt=Ze[et];et<Ze.length;tt=Ze[++et])this._scopeKeyframes(tt,Je),Qe[tt.keyframesName]=this._keyframesRuleTransformer(tt);return Qe}_keyframesRuleTransformer(ze){return function($e){return $e.replace(ze.keyframesNameRx,ze.transformedKeyframesName)}}_scopeKeyframes(ze,$e){ze.keyframesNameRx=new RegExp(ze.keyframesName,'g'),ze.transformedKeyframesName=ze.keyframesName+'-'+$e,ze.transformedSelector=ze.transformedSelector||ze.selector,ze.selector=ze.transformedSelector.replace(ze.keyframesName,ze.transformedKeyframesName)}_scopeSelector(ze,$e,Je,Ze){ze.transformedSelector=ze.transformedSelector||ze.selector;let Qe=ze.transformedSelector,et='.'+Ze,tt=Qe.split(',');for(let nt,rt=0,st=tt.length;rt<st&&(nt=tt[rt]);rt++)tt[rt]=nt.match($e)?nt.replace(Je,et):et+' '+nt;ze.selector=tt.join(',')}applyElementScopeSelector(ze,$e,Je){let Ze=ze.getAttribute('class')||'',Qe=Ze;Je&&(Qe=Ze.replace(new RegExp('\\s*'+be+'\\s*'+Je+'\\s*','g'),' ')),Qe+=(Qe?' ':'')+be+' '+$e,Ze!==Qe&&F(ze,Qe)}applyElementStyle(ze,$e,Je,Ze){let Qe=Ze?Ze.textContent||'':this.transformStyles(ze,$e,Je),et=xe.get(ze),tt=et.customStyle;return tt&&!$&&tt!==Ze&&(tt._useCount--,0>=tt._useCount&&tt.parentNode&&tt.parentNode.removeChild(tt)),$?et.customStyle?(et.customStyle.textContent=Qe,Ze=et.customStyle):Qe&&(Ze=O(Qe,Je,ze.shadowRoot,et.placeholder)):Ze?!Ze.parentNode&&L(Ze,null,et.placeholder):Qe&&(Ze=O(Qe,Je,null,et.placeholder)),Ze&&(Ze._useCount=Ze._useCount||0,et.customStyle!=Ze&&Ze._useCount++,et.customStyle=Ze),Te&&(Ze.textContent=Ze.textContent),Ze}applyCustomStyle(ze,$e){let Je=I(ze),Ze=this;ze.textContent=R(Je,function(Qe){let et=Qe.cssText=Qe.parsedCssText;Qe.propertyInfo&&Qe.propertyInfo.cssText&&(et=C(et),Qe.cssText=Ze.valueForProperties(et,$e))})}}var Ie=new Re;let Pe={};const Me=window.customElements;if(Me&&!$){const ze=Me.define;Me.define=function($e,Je,Ze){return Pe[$e]=U($e),ze.call(Me,$e,Je,Ze)}}let Le=ee.MIXIN_MATCH,we=ee.VAR_ASSIGN,Ue=/;\s*/m,De=/^\s*(initial)|(inherit)\s*$/,He='_-_';class Fe{constructor(){this._map={}}set(ze,$e){ze=ze.trim(),this._map[ze]={properties:$e,dependants:{}}}get(ze){return ze=ze.trim(),this._map[ze]}}class ke{constructor(){this._currentTemplate=null,this._measureElement=null,this._map=new Fe,this._separator=He,this._boundProduceCssProperties=(ze,$e,Je,Ze)=>this._produceCssProperties(ze,$e,Je,Ze)}detectMixin(ze){const $e=Le.test(ze)||we.test(ze);return Le.lastIndex=0,we.lastIndex=0,$e}transformStyle(ze,$e){let Je=I(ze);return this.transformRules(Je,$e),Je}transformRules(ze,$e){this._currentTemplate=Ae[$e],M(ze,Je=>{this.transformRule(Je)}),this._currentTemplate=null}transformRule(ze){ze.cssText=this.transformCssText(ze.parsedCssText),':root'===ze.selector&&(ze.selector=':host > *')}transformCssText(ze){return ze=ze.replace(we,this._boundProduceCssProperties),this._consumeCssProperties(ze)}_getInitialValueForProperty(ze){return this._measureElement||(this._measureElement=document.createElement('meta'),this._measureElement.style.all='initial',document.head.appendChild(this._measureElement)),window.getComputedStyle(this._measureElement).getPropertyValue(ze)}_consumeCssProperties(ze){for(let $e;$e=Le.exec(ze);){let Je=$e[0],Ze=$e[1],Qe=$e.index,et=Qe+Je.indexOf('@apply'),tt=Qe+Je.length,rt=ze.slice(0,et),st=ze.slice(tt),nt=this._cssTextToMap(rt),lt=this._atApplyToCssProperties(Ze,nt);ze=[rt,lt,st].join(''),Le.lastIndex=Qe+lt.length}return ze}_atApplyToCssProperties(ze,$e){ze=ze.replace(Ue,'');let Je=[],Ze=this._map.get(ze);if(Ze||(this._map.set(ze,{}),Ze=this._map.get(ze)),Ze){this._currentTemplate&&(Ze.dependants[this._currentTemplate.name]=this._currentTemplate);let Qe,et,tt;for(Qe in Ze.properties)tt=$e&&$e[Qe],et=[Qe,': var(',ze,He,Qe],tt&&et.push(',',tt),et.push(')'),Je.push(et.join(''))}return Je.join('; ')}_replaceInitialOrInherit(ze,$e){let Je=De.exec($e);return Je&&(Je[1]?$e=ke._getInitialValueForProperty(ze):$e='apply-shim-inherit'),$e}_cssTextToMap(ze){let $e=ze.split(';'),Je,Ze,Qe={};for(let tt,rt,et=0;et<$e.length;et++)tt=$e[et],tt&&(rt=tt.split(':'),1<rt.length&&(Je=rt[0].trim(),Ze=this._replaceInitialOrInherit(Je,rt.slice(1).join(':')),Qe[Je]=Ze));return Qe}_invalidateMixinEntry(ze){for(let $e in ze.dependants)this._currentTemplate&&$e===this._currentTemplate.name||xe.invalidate($e)}_produceCssProperties(ze,$e,Je,Ze){if(Je&&H(Je,(pt,ct)=>{ct&&this._map.get(ct)&&(Ze='@apply '+ct+';')}),!Ze)return ze;let Qe=this._consumeCssProperties(Ze),et=ze.slice(0,ze.indexOf('--')),tt=this._cssTextToMap(Qe),rt=tt,st=this._map.get($e),nt=st&&st.properties;nt?rt=Object.assign(Object.create(nt),tt):this._map.set($e,rt);let ot,it,lt=[],dt=!1;for(ot in rt)it=tt[ot],void 0==it&&(it='initial'),nt&&!(ot in nt)&&(dt=!0),lt.push($e+He+ot+': '+it);return dt&&this._invalidateMixinEntry(st),st&&(st.properties=rt),Je&&(et=ze+';'+et),et+lt.join('; ')+';'}}let qe=new ke;window.ApplyShim=qe;let je=function(){};if(!$){let ze=et=>{return et.classList&&!et.classList.contains(Ee.SCOPE_NAME)||et instanceof SVGElement&&(!et.hasAttribute('class')||0>et.getAttribute('class').indexOf(Ee.SCOPE_NAME))},$e=et=>{for(let rt,tt=0;tt<et.length;tt++)if(rt=et[tt],rt.target!==document.documentElement&&rt.target!==document.head){for(let nt,st=0;st<rt.addedNodes.length;st++)if(nt=rt.addedNodes[st],ze(nt)){let lt=nt.getRootNode();if(lt.nodeType===Node.DOCUMENT_FRAGMENT_NODE){let ot=lt.host;if(ot){let it=ot.is||ot.localName;Ee.dom(nt,it)}}}for(let nt,st=0;st<rt.removedNodes.length;st++)if(nt=rt.removedNodes[st],nt.nodeType===Node.ELEMENT_NODE){let lt;if(nt.classList?lt=Array.from(nt.classList):nt.hasAttribute('class')&&(lt=nt.getAttribute('class').split(/\s+/)),void 0!=lt){let ot=lt.indexOf(Ee.SCOPE_NAME);if(0<=ot){let it=lt[ot+1];it&&Ee.dom(nt,it,!0)}}}}},Je=new MutationObserver($e),Ze=et=>{Je.observe(et,{childList:!0,subtree:!0})},Qe=window.customElements&&!window.customElements.flush;if(Qe)Ze(document);else{let et=()=>{Ze(document.body)};window.HTMLImports?window.HTMLImports.whenReady(et):requestAnimationFrame(function(){if('loading'===document.readyState){let tt=function(){et(),document.removeEventListener('readystatechange',tt)};document.addEventListener('readystatechange',tt)}else et()})}je=function(){$e(Je.takeRecords())}}let Be=new class{constructor(ze=100){this.cache={},this.typeMax=ze}_validate(ze,$e,Je){for(let Qe,Ze=0;Ze<Je.length;Ze++)if(Qe=Je[Ze],ze.properties[Qe]!==$e[Qe])return!1;return!0}store(ze,$e,Je,Ze){let Qe=this.cache[ze]||[];Qe.push({properties:$e,styleElement:Je,scopeSelector:Ze}),Qe.length>this.typeMax&&Qe.shift(),this.cache[ze]=Qe}fetch(ze,$e,Je){let Ze=this.cache[ze];if(Ze)for(let et,Qe=Ze.length-1;0<=Qe;Qe--)if(et=Ze[Qe],this._validate(et,$e,Je))return et}};class Ke{constructor(){this._scopeCounter={},this._documentOwner=document.documentElement,this._documentOwnerStyleInfo=xe.set(document.documentElement,new xe({rules:[]})),this._elementsHaveApplied=!1}get nativeShadow(){return $}get nativeCss(){return J}get nativeCssApply(){return!1}flush(){je()}_generateScopeSelector(ze){let $e=this._scopeCounter[ze]=(this._scopeCounter[ze]||0)+1;return`${ze}-${$e}`}getStyleAst(ze){return I(ze)}styleAstToString(ze){return R(ze)}_gatherStyles(ze){let $e=ze.content.querySelectorAll('style'),Je=[];for(let Qe,Ze=0;Ze<$e.length;Ze++)Qe=$e[Ze],Je.push(Qe.textContent),Qe.parentNode.removeChild(Qe);return Je.join('').trim()}_getCssBuild(ze){let $e=ze.content.querySelector('style');return $e?$e.getAttribute('css-build')||'':''}prepareTemplate(ze,$e,Je){if(!ze._prepared){ze._prepared=!0,ze.name=$e,ze.extends=Je,Ae[$e]=ze;let Ze=this._getCssBuild(ze),Qe=this._gatherStyles(ze),et={is:$e,extends:Je,__cssBuild:Ze};this.nativeShadow||Ee.dom(ze.content,$e);let tt=qe.detectMixin(Qe),rt=d(Qe);tt&&this.nativeCss&&!this.nativeCssApply&&qe.transformRules(rt,$e),ze._styleAst=rt;let st=[];if(this.nativeCss||(st=Ie.decorateStyles(ze._styleAst,et)),!st.length||this.nativeCss){let nt=this.nativeShadow?ze.content:null,lt=Pe[$e],ot=this._generateStaticStyle(et,ze._styleAst,nt,lt);ze._style=ot}ze._ownPropertyNames=st}}_generateStaticStyle(ze,$e,Je,Ze){let Qe=Ee.elementStyles(ze,$e);if(Qe.length)return O(Qe,ze.is,Je,Ze)}_prepareHost(ze){let Je,$e=ze.getAttribute('is')||ze.localName;$e!==ze.localName&&(Je=ze.localName);let et,tt,rt,Ze=Pe[$e],Qe=Ae[$e];return Qe&&(et=Qe._styleAst,tt=Qe._ownPropertyNames,rt=Qe._cssBuild),xe.set(ze,new xe(et,Ze,tt,$e,Je,rt))}applyStyle(ze,$e){let Je=ze.getAttribute('is')||ze.localName,Ze=xe.get(ze),Qe=!!Ze;if(Ze||(Ze=this._prepareHost(ze)),this._isRootOwner(ze)||(this._elementsHaveApplied=!0),window.CustomStyle){let et=window.CustomStyle;if(et._documentDirty){if(et.findStyles(),this.nativeCss?!this.nativeCssApply&&et._revalidateApplyShim():this._updateProperties(this._documentOwner,this._documentOwnerStyleInfo),et.applyStyles(),!this._elementsHaveApplied)return;if(!this.nativeCss&&(this.updateStyles(),Qe))return}}if($e&&(Ze.overrideStyleProperties=Ze.overrideStyleProperties||{},Object.assign(Ze.overrideStyleProperties,$e)),this.nativeCss){Ze.overrideStyleProperties&&this._updateNativeProperties(ze,Ze.overrideStyleProperties);let et=Ae[Je];if(!et&&!this._isRootOwner(ze))return;if(et&&et._applyShimInvalid&&et._style){if(et._validating||(qe.transformRules(et._styleAst,Je),et._style.textContent=Ee.elementStyles(ze,Ze.styleRules),xe.startValidating(Je)),this.nativeShadow){let tt=ze.shadowRoot;if(tt){let rt=tt.querySelector('style');rt.textContent=Ee.elementStyles(ze,Ze.styleRules)}}Ze.styleRules=et._styleAst}}else this._updateProperties(ze,Ze),Ze.ownStylePropertyNames&&Ze.ownStylePropertyNames.length&&this._applyStyleProperties(ze,Ze);if(Qe){let et=this._isRootOwner(ze)?ze:ze.shadowRoot;et&&this._applyToDescendants(et)}}_applyToDescendants(ze){let $e=ze.children;for(let Ze,Je=0;Je<$e.length;Je++)Ze=$e[Je],Ze.shadowRoot&&this.applyStyle(Ze),this._applyToDescendants(Ze)}_styleOwnerForNode(ze){let $e=ze.getRootNode(),Je=$e.host;return Je?xe.get(Je)?Je:this._styleOwnerForNode(Je):this._documentOwner}_isRootOwner(ze){return ze===this._documentOwner}_applyStyleProperties(ze,$e){let Je=ze.getAttribute('is')||ze.localName,Ze=Be.fetch(Je,$e.styleProperties,$e.ownStylePropertyNames),Qe=Ze&&Ze.scopeSelector,et=Ze?Ze.styleElement:null,tt=$e.scopeSelector;$e.scopeSelector=Qe||this._generateScopeSelector(Je);let rt=Ie.applyElementStyle(ze,$e.styleProperties,$e.scopeSelector,et);return this.nativeShadow||Ie.applyElementScopeSelector(ze,$e.scopeSelector,tt),Ze||Be.store(Je,$e.styleProperties,rt,$e.scopeSelector),rt}_updateProperties(ze,$e){let Je=this._styleOwnerForNode(ze),Ze=xe.get(Je),Qe=Ze.styleProperties,et=Object.create(Qe||null),tt=Ie.hostAndRootPropertiesForScope(ze,$e.styleRules),rt=Ie.propertyDataFromStyles(Ze.styleRules,ze),st=rt.properties;Object.assign(et,tt.hostProps,st,tt.rootProps),this._mixinOverrideStyles(et,$e.overrideStyleProperties),Ie.reify(et),$e.styleProperties=et}_mixinOverrideStyles(ze,$e){for(let Je in $e){let Ze=$e[Je];(Ze||0===Ze)&&(ze[Je]=Ze)}}_updateNativeProperties(ze,$e){for(let Je in $e)null===Je?ze.style.removeProperty(Je):ze.style.setProperty(Je,$e[Je])}updateStyles(ze){this.applyStyle(this._documentOwner,ze)}_transformCustomStyleForDocument(ze){let $e=I(ze);M($e,Je=>{$?Ee.normalizeRootSelector(Je):Ee.documentRule(Je),this.nativeCss&&!this.nativeCssApply&&qe.transformRule(Je)}),this.nativeCss?ze.textContent=R($e):this._documentOwnerStyleInfo.styleRules.rules.push($e)}_revalidateApplyShim(ze){if(this.nativeCss&&!this.nativeCssApply){let $e=I(ze);qe.transformRules($e),ze.textContent=R($e)}}_applyCustomStyleToDocument(ze){this.nativeCss||Ie.applyCustomStyle(ze,this._documentOwnerStyleInfo.styleProperties)}getComputedStyleValue(ze,$e){let Je;if(!this.nativeCss){let Ze=xe.get(ze)||xe.get(this._styleOwnerForNode(ze));Je=Ze.styleProperties[$e]}return Je=Je||window.getComputedStyle(ze).getPropertyValue($e),Je.trim()}setElementClass(ze,$e){let Je=ze.getRootNode(),Ze=$e?$e.split(/\s/):[],Qe=Je.host&&Je.host.localName;if(!Qe){var et=ze.getAttribute('class');if(et){let tt=et.split(/\s/);for(let rt=0;rt<tt.length;rt++)if(tt[rt]===Ee.SCOPE_NAME){Qe=tt[rt+1];break}}}if(Qe&&Ze.push(Ee.SCOPE_NAME,Qe),!this.nativeCss){let tt=xe.get(ze);tt&&tt.scopeSelector&&Ze.push(Ie.XSCOPE_NAME,tt.scopeSelector)}F(ze,Ze.join(' '))}_styleInfoForNode(ze){return xe.get(ze)}}window.ShadyCSS=new Ke;let Xe=window.ShadyCSS,Ve=!1,Ge=[],Ye=null;class We extends HTMLElement{static get _customStyles(){return Ge}static get processHook(){return Ye}static set processHook(ze){Ye=ze}static get _documentDirty(){return Ve}static findStyles(){for(let $e,ze=0;ze<Ge.length;ze++)if($e=Ge[ze],!$e._style){let Je=$e.querySelector('style');if(!Je)continue;if(Je.__appliedElement)for(let Qe,Ze=0;Ze<Je.attributes.length;Ze++)Qe=Je.attributes[Ze],Je.__appliedElement.setAttribute(Qe.name,Qe.value);$e._style=Je.__appliedElement||Je,Ye&&Ye($e._style),Xe._transformCustomStyleForDocument($e._style)}}static _revalidateApplyShim(){for(let $e,ze=0;ze<Ge.length;ze++)$e=Ge[ze],$e._style&&Xe._revalidateApplyShim($e._style)}static applyStyles(){for(let $e,ze=0;ze<Ge.length;ze++)$e=Ge[ze],$e._style&&Xe._applyCustomStyleToDocument($e._style);Ve=!1}constructor(){super(),Ge.push(this),q()}}window.CustomStyle=We,window.customElements.define('custom-style',We),function(){'use strict';HTMLImports.whenReady(function(){requestAnimationFrame(function(){window.dispatchEvent(new CustomEvent('WebComponentsReady'))})})}(window.WebComponents),function(){var $e=document.createElement('style');$e.textContent='body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n';var Je=document.querySelector('head');Je.insertBefore($e,Je.firstChild)}(window.WebComponents)})();
//# sourceMappingURL=webcomponents-hi.js.map