pushfeedback 0.1.36 → 0.1.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1,1519 @@
1
- const _0x4ba0eb=_0x28aa;(function(_0x18c79c,_0x377aa8){const _0xa23c38=_0x28aa,_0x19b510=_0x18c79c();while(!![]){try{const _0x2f6f3d=parseInt(_0xa23c38(0x26c))/0x1+parseInt(_0xa23c38(0x1e6))/0x2+-parseInt(_0xa23c38(0x1c8))/0x3+parseInt(_0xa23c38(0x1c3))/0x4+parseInt(_0xa23c38(0x257))/0x5+-parseInt(_0xa23c38(0x25d))/0x6+-parseInt(_0xa23c38(0x1b9))/0x7*(parseInt(_0xa23c38(0x1cb))/0x8);if(_0x2f6f3d===_0x377aa8)break;else _0x19b510['push'](_0x19b510['shift']());}catch(_0x3a24e0){_0x19b510['push'](_0x19b510['shift']());}}}(_0x10ad,0x47908));const NAMESPACE=_0x4ba0eb(0x18c);let scopeId,hostTagName,isSvgMode=![],queuePending=![];function _0x10ad(){const _0x2d499b=['xjeWX','GPggL','defineProperty','OUYHZ','zDlDG','key','function','YmpvS','querySelector','rIiOL','$tag$','rBckK','NdvAm','$flags$','meta[name=\x22csp-nonce\x22]','RyhAL','CQXzj','customElements','csKDD','RftQh','nnpub','appload','bZfKW','qNbHm','ioasq','getRootNode','removeAttribute','YzySv','iRGKr','entries','.entry.js','zDLFb','QlnmG','jsJhK','http://www.w3.org/1999/xhtml','$cmpMeta$','sUzoo','BZTIB','$vnode$','data','NTXcd','vnBtP','addEventListener','$members$','attachShadow','VSRkm','length','nBqjt','SGBrN','AeEkN','XZWll','href','zvlPP','WFelc','CUahV','data-styles','componentOnReady','ePBPM','pUzKs','bDuHF','cKxTG','rAFnQ','adoptedStyleSheets','assign','ftBeO','now','replace','setAttribute','{visibility:hidden}.hydrated{visibility:inherit}','hYZfz','$children$','undefined','TSdTT','2019095IrElMh','FCoeE','$attrsToReflect$','TwwNC','xdYOU','sqlPz','761754zMGvqu','ijjxc','$attrs$','EpIwP','insertBefore','AnaAp','$resourcesUrl$','eKGlw','isProxied','ROYHx','ADuaa','aglBs','tqWgc','AVEIm','evHWf','558075KPGDBt','dEcPI','hasOwnProperty','map','AGoTk','foreignObject','$ancestorComponent$','shadowRoot','getAttribute','LvHpX','hcBVO','filter','trFXG','createInstance','s-p','disconnectedCallback','NLlTi','KgqTv','parentNode','lYqyK','UdhYG','xkjow','sEZkm','uzybW','mPZIk','appendChild','number','s-sc','XTRkW','innerHTML','gpyjp','NruUo','componentWillLoad','add','documentElement','ZGnmK','sfQpu','ref','replaceSync','ttDfn','ael','$instanceValues$','RPWoS','tBQyh','KiBYW','THPia','xpLrP','$elm$','IlGVN','aimFW','attributeChangedCallback','RdiDr','DsIBW','ZYYRm','MILDp','isArray','render','raf','document','link','TVxlq','xuFbk','componentDidLoad','mlPFP','fvoZK','pushfeedback','$onRenderResolve$','Xijxr','PtAvg','aKtgc','$hostElement$','bHBtO','classList','Fxvdj','OEtHh','PAoTe','ouIyh','KRCou','PBvbn','zHUZf','hxgFp','resourcesUrl','SDIxI','XJSby','false','vgSeS','FrkcD','get','open','RWztj','nonce','xtCnH','prototype','style','remove','head','gGEAL','vsXUV','join','JJXNu','createElementNS','$key$','keys','set','$onReadyResolve$','davlx','LBGxR','DruwF','tldCw','observedAttributes','11879EPooDL','Ttbru','class','includes','nextSibling','hydrated','slot','error','createTextNode','ymCIu','1021520aYNjzH','sc-','http://www.w3.org/2000/svg','InEnD','JhLVO','319614hZYOHq','s-rc','$tagName$','4264VjZRBk','RRYUf','nodeType','$nonce$','tkBpC','all','toLowerCase','$lazyBundleId$','object','dispatchEvent','PIKbM','xhlaM','MCEFF','slice','split','lXiBc','push','rel','YmlBw','fvOLq','yMseH','connectedCallback','yZOZO','1|3|4|0|2|6|5','jmp','vKXqz','setProperty','427704CcJAsy','wamtP','vpYyK','FavpD','svg','irdda','update','s-si','postUpdate','hHqRL','baseURI','$lazyInstance$','$onReadyPromise$','jNKhT','pGjWK','OKNOs','fLBMw','content','dxrxp','oIdlx','host','fYRIo','$text$','resolve','fiqoj','aBqiR','Mpscx','qGpAq','then','AXoQb','Byjqh','IIMbu','scheduleUpdate','fJXCt','exclude','uzFsD','tagName','boolean','createElement','HtyNm'];_0x10ad=function(){return _0x2d499b;};return _0x10ad();}function _0x28aa(_0x5e1f57,_0x945f4a){const _0x10adb8=_0x10ad();return _0x28aa=function(_0x28aa72,_0x44398f){_0x28aa72=_0x28aa72-0x157;let _0x9d4c5e=_0x10adb8[_0x28aa72];return _0x9d4c5e;},_0x28aa(_0x5e1f57,_0x945f4a);}const createTime=(_0x1b351b,_0x2694e8='')=>{{return()=>{return;};}},uniqueTime=(_0x27ccf3,_0x3d7865)=>{{return()=>{return;};}},HYDRATED_CSS=_0x4ba0eb(0x252),EMPTY_OBJ={},SVG_NS=_0x4ba0eb(0x1c5),HTML_NS=_0x4ba0eb(0x230),isDef=_0x8ae51b=>_0x8ae51b!=null,isComplexType=_0x313147=>{const _0x169c90=_0x4ba0eb,_0x49b962={'sfQpu':_0x169c90(0x1d3),'Mpscx':_0x169c90(0x214)};return _0x313147=typeof _0x313147,_0x313147===_0x49b962[_0x169c90(0x16f)]||_0x313147===_0x49b962[_0x169c90(0x200)];};function queryNonceMetaTagContent(_0x5c9bc3){const _0x210946=_0x4ba0eb,_0x40e437={'THPia':function(_0x31c7fe,_0x2a953b){return _0x31c7fe!==_0x2a953b;},'PIKbM':function(_0x2ebec9,_0x3c1169){return _0x2ebec9===_0x3c1169;},'irdda':function(_0x5961dc,_0x2d0242){return _0x5961dc===_0x2d0242;},'rBckK':function(_0x57ccaa,_0x49e3ce){return _0x57ccaa===_0x49e3ce;},'lxPhE':_0x210946(0x21c),'mlPFP':_0x210946(0x1f7),'fYRIo':function(_0x24476e,_0xfbe18b){return _0x24476e!==_0xfbe18b;}};var _0x5e2032,_0x36e409,_0x4efdd1;return _0x40e437[_0x210946(0x178)](_0x4efdd1=_0x40e437[_0x210946(0x1d5)](_0x36e409=_0x40e437[_0x210946(0x1eb)](_0x5e2032=_0x5c9bc3[_0x210946(0x1aa)],null)||_0x40e437[_0x210946(0x219)](_0x5e2032,void 0x0)?void 0x0:_0x5e2032[_0x210946(0x216)](_0x40e437['lxPhE']),null)||_0x40e437[_0x210946(0x1eb)](_0x36e409,void 0x0)?void 0x0:_0x36e409[_0x210946(0x274)](_0x40e437[_0x210946(0x18a)]),null)&&_0x40e437[_0x210946(0x1fb)](_0x4efdd1,void 0x0)?_0x4efdd1:undefined;}const h=(_0xe2e597,_0x11d4bf,..._0x43c234)=>{const _0xb5380e=_0x4ba0eb,_0x1d51e8={'uzybW':function(_0x1e482c,_0x4f96a4){return _0x1e482c<_0x4f96a4;},'HtyNm':function(_0x1db12b,_0x48ce9d){return _0x1db12b(_0x48ce9d);},'csKDD':function(_0x1db2eb,_0x18a321){return _0x1db2eb!==_0x18a321;},'gRTwK':_0xb5380e(0x20b),'TSdTT':function(_0x7a1a4a,_0x412b7){return _0x7a1a4a(_0x412b7);},'oVcCf':function(_0x46cb3e,_0x49e3f1){return _0x46cb3e&&_0x49e3f1;},'Yyjen':function(_0x33de98,_0x225966){return _0x33de98-_0x225966;},'NTXcd':function(_0x27cbd7,_0xa7f39c,_0xa0e88c){return _0x27cbd7(_0xa7f39c,_0xa0e88c);},'mPZIk':function(_0x232b34,_0x2fc01c){return _0x232b34(_0x2fc01c);},'xtCnH':_0xb5380e(0x1d3)};let _0x3e7009=null,_0x3a4069=null,_0xe43c1f=![],_0x4996f2=![];const _0x1dead1=[],_0x734477=_0x5b4442=>{const _0x4b18e1=_0xb5380e;for(let _0x4467ef=0x0;_0x1d51e8[_0x4b18e1(0x162)](_0x4467ef,_0x5b4442['length']);_0x4467ef++){_0x3e7009=_0x5b4442[_0x4467ef];if(Array[_0x4b18e1(0x182)](_0x3e7009))_0x1d51e8[_0x4b18e1(0x20d)](_0x734477,_0x3e7009);else _0x3e7009!=null&&_0x1d51e8['csKDD'](typeof _0x3e7009,_0x1d51e8['gRTwK'])&&((_0xe43c1f=_0x1d51e8[_0x4b18e1(0x220)](typeof _0xe2e597,_0x4b18e1(0x214))&&!_0x1d51e8['TSdTT'](isComplexType,_0x3e7009))&&(_0x3e7009=_0x1d51e8[_0x4b18e1(0x256)](String,_0x3e7009)),_0x1d51e8['oVcCf'](_0xe43c1f,_0x4996f2)?_0x1dead1[_0x1d51e8['Yyjen'](_0x1dead1['length'],0x1)][_0x4b18e1(0x1fc)]+=_0x3e7009:_0x1dead1[_0x4b18e1(0x1db)](_0xe43c1f?_0x1d51e8[_0x4b18e1(0x236)](newVNode,null,_0x3e7009):_0x3e7009),_0x4996f2=_0xe43c1f);}};_0x1d51e8[_0xb5380e(0x163)](_0x734477,_0x43c234);if(_0x11d4bf){_0x11d4bf['key']&&(_0x3a4069=_0x11d4bf[_0xb5380e(0x213)]);{const _0x1de006=_0x11d4bf['className']||_0x11d4bf['class'];_0x1de006&&(_0x11d4bf[_0xb5380e(0x1bb)]=_0x1d51e8[_0xb5380e(0x220)](typeof _0x1de006,_0x1d51e8[_0xb5380e(0x1a6)])?_0x1de006:Object[_0xb5380e(0x1b1)](_0x1de006)[_0xb5380e(0x277)](_0x466d21=>_0x1de006[_0x466d21])[_0xb5380e(0x1ad)]('\x20'));}}const _0x3c73b6=newVNode(_0xe2e597,null);_0x3c73b6['$attrs$']=_0x11d4bf;_0x1dead1[_0xb5380e(0x23c)]>0x0&&(_0x3c73b6['$children$']=_0x1dead1);{_0x3c73b6[_0xb5380e(0x1b0)]=_0x3a4069;}return _0x3c73b6;},newVNode=(_0x2e3461,_0x1a99d7)=>{const _0x447cec=_0x4ba0eb,_0x5ba5a2={'$flags$':0x0,'$tag$':_0x2e3461,'$text$':_0x1a99d7,'$elm$':null,'$children$':null};{_0x5ba5a2[_0x447cec(0x25f)]=null;}{_0x5ba5a2[_0x447cec(0x1b0)]=null;}return _0x5ba5a2;},Host={},isHost=_0xbf70f6=>_0xbf70f6&&_0xbf70f6[_0x4ba0eb(0x218)]===Host,parsePropertyValue=(_0x4c9f9e,_0x40a42f)=>{const _0x3e41f4=_0x4ba0eb,_0x4ec3b5={'tkBpC':function(_0x70daa2,_0x175e60){return _0x70daa2(_0x175e60);},'yZOZO':function(_0x5c97f7,_0x4c8424){return _0x5c97f7&_0x4c8424;},'iFRXm':function(_0x24679e,_0x1e6a4e){return _0x24679e===_0x1e6a4e;},'mlcIj':function(_0x3fa92b,_0x1da441){return _0x3fa92b&_0x1da441;}};if(_0x4c9f9e!=null&&!_0x4ec3b5['tkBpC'](isComplexType,_0x4c9f9e)){if(_0x4ec3b5[_0x3e41f4(0x1e1)](_0x40a42f,0x4))return _0x4ec3b5['iFRXm'](_0x4c9f9e,_0x3e41f4(0x19f))?![]:_0x4c9f9e===''||!!_0x4c9f9e;if(_0x4ec3b5['mlcIj'](_0x40a42f,0x1))return _0x4ec3b5[_0x3e41f4(0x1cf)](String,_0x4c9f9e);return _0x4c9f9e;}return _0x4c9f9e;},getElement=_0x5641d7=>getHostRef(_0x5641d7)['$hostElement$'],emitEvent=(_0x1ab72d,_0x40493b,_0x21fa29)=>{const _0x887b26=_0x4ba0eb,_0x1f57a3=plt['ce'](_0x40493b,_0x21fa29);return _0x1ab72d[_0x887b26(0x1d4)](_0x1f57a3),_0x1f57a3;},rootAppliedStyles=new WeakMap(),registerStyle=(_0xeff442,_0x8cd076,_0x2521c4)=>{const _0x235939=_0x4ba0eb,_0x526ac2={'Ttbru':function(_0x529fba,_0x5d6758){return _0x529fba&&_0x5d6758;},'tfYgE':function(_0x222ad1,_0x21f4ab){return _0x222ad1===_0x21f4ab;},'nnpub':'string'};let _0x552051=styles['get'](_0xeff442);_0x526ac2[_0x235939(0x1ba)](supportsConstructableStylesheets,_0x2521c4)?(_0x552051=_0x552051||new CSSStyleSheet(),_0x526ac2['tfYgE'](typeof _0x552051,_0x526ac2[_0x235939(0x222)])?_0x552051=_0x8cd076:_0x552051[_0x235939(0x171)](_0x8cd076)):_0x552051=_0x8cd076,styles[_0x235939(0x1b2)](_0xeff442,_0x552051);},addStyle=(_0x429e68,_0x278fdf,_0x63d635,_0x48b4b9)=>{const _0x18e43b=_0x4ba0eb,_0x383388={'pUzKs':function(_0x59da44,_0x17040a){return _0x59da44(_0x17040a);},'aRrfZ':function(_0x3f6cfc,_0x526359){return _0x3f6cfc===_0x526359;},'ioasq':function(_0x4f2785,_0x12fbd8){return _0x4f2785===_0x12fbd8;},'NLlTi':'string','TwwNC':_0x18e43b(0x1a8),'zyKBb':function(_0x1e2715,_0x570833){return _0x1e2715(_0x570833);},'DsIBW':function(_0x1d5470,_0x34ad51){return _0x1d5470!=_0x34ad51;},'Xijxr':_0x18e43b(0x1a5),'vKXqz':_0x18e43b(0x186)};var _0x3c067e;let _0x31e13d=_0x383388[_0x18e43b(0x248)](getScopeId,_0x278fdf);const _0x4e4a60=styles[_0x18e43b(0x1a2)](_0x31e13d);_0x429e68=_0x383388['aRrfZ'](_0x429e68['nodeType'],0xb)?_0x429e68:doc;if(_0x4e4a60){if(_0x383388[_0x18e43b(0x226)](typeof _0x4e4a60,_0x383388[_0x18e43b(0x15b)])){_0x429e68=_0x429e68['head']||_0x429e68;let _0x2f5405=rootAppliedStyles['get'](_0x429e68),_0x5ae260;!_0x2f5405&&rootAppliedStyles[_0x18e43b(0x1b2)](_0x429e68,_0x2f5405=new Set());if(!_0x2f5405['has'](_0x31e13d)){{{_0x5ae260=doc['createElement'](_0x383388[_0x18e43b(0x25a)]),_0x5ae260[_0x18e43b(0x168)]=_0x4e4a60;}const _0x22079c=(_0x3c067e=plt[_0x18e43b(0x1ce)])!==null&&_0x3c067e!==void 0x0?_0x3c067e:_0x383388['zyKBb'](queryNonceMetaTagContent,doc);_0x383388[_0x18e43b(0x17f)](_0x22079c,null)&&_0x5ae260['setAttribute'](_0x383388[_0x18e43b(0x18e)],_0x22079c),_0x429e68[_0x18e43b(0x261)](_0x5ae260,_0x429e68['querySelector'](_0x383388[_0x18e43b(0x1e4)]));}_0x2f5405&&_0x2f5405['add'](_0x31e13d);}}else!_0x429e68[_0x18e43b(0x24c)][_0x18e43b(0x1bc)](_0x4e4a60)&&(_0x429e68[_0x18e43b(0x24c)]=[..._0x429e68[_0x18e43b(0x24c)],_0x4e4a60]);}return _0x31e13d;},attachStyles=_0x59baf7=>{const _0x5be491=_0x4ba0eb,_0x526310={'fLBMw':function(_0x1f562b,_0x327023,_0x1472eb){return _0x1f562b(_0x327023,_0x1472eb);},'JJXNu':'attachStyles','eKGlw':function(_0x4dd0f8,_0xd2b1e6,_0x12e35a){return _0x4dd0f8(_0xd2b1e6,_0x12e35a);},'dxrxp':function(_0x1fecb9,_0x275e90){return _0x1fecb9&_0x275e90;},'vsXUV':function(_0x4deb67,_0x47b3c3){return _0x4deb67+_0x47b3c3;},'trFXG':function(_0x390cef){return _0x390cef();}},_0xf58494=_0x59baf7['$cmpMeta$'],_0x5f2227=_0x59baf7['$hostElement$'],_0x3faa4a=_0xf58494[_0x5be491(0x21b)],_0x42c24f=_0x526310[_0x5be491(0x1f6)](createTime,_0x526310[_0x5be491(0x1ae)],_0xf58494[_0x5be491(0x1ca)]),_0x3176cb=_0x526310[_0x5be491(0x264)](addStyle,_0x5f2227[_0x5be491(0x273)]?_0x5f2227[_0x5be491(0x273)]:_0x5f2227[_0x5be491(0x227)](),_0xf58494);_0x526310[_0x5be491(0x1f8)](_0x3faa4a,0xa)&&(_0x5f2227['s-sc']=_0x3176cb,_0x5f2227[_0x5be491(0x193)]['add'](_0x526310[_0x5be491(0x1ac)](_0x3176cb,'-h'))),_0x526310[_0x5be491(0x157)](_0x42c24f);},getScopeId=(_0x5c582b,_0x43151f)=>_0x4ba0eb(0x1c4)+_0x5c582b[_0x4ba0eb(0x1ca)],setAccessor=(_0x59f19d,_0x27cd63,_0x1662cb,_0x3d7458,_0x7bccbe,_0x18bd6a)=>{const _0x3cd554=_0x4ba0eb,_0x584238={'aBqiR':function(_0x5952ef,_0x1a6ced){return _0x5952ef(_0x1a6ced);},'SDIxI':function(_0x22f38d,_0x3aebf4){return _0x22f38d===_0x3aebf4;},'vpYyK':_0x3cd554(0x1a8),'RWztj':_0x3cd554(0x213),'EpIwP':function(_0xfd0752,_0x1dd0e9){return _0xfd0752===_0x1dd0e9;},'tBQyh':_0x3cd554(0x170),'InEnD':function(_0x2bb9fb,_0x5541ec,_0x12226c){return _0x2bb9fb(_0x5541ec,_0x12226c);},'KFMWl':function(_0x36e760,_0x46740e){return _0x36e760+_0x46740e;},'fRfFR':function(_0x40cad0,_0x179177){return _0x40cad0!==_0x179177;},'XZWll':function(_0x9b98,_0x17eca9){return _0x9b98==_0x17eca9;},'votpU':'list','eQCpD':function(_0x483310,_0x246df5){return _0x483310==_0x246df5;},'JhLVO':function(_0x45875d,_0x1b28eb){return _0x45875d!=_0x1b28eb;},'AXPUN':function(_0x9c905d,_0x216d04){return _0x9c905d===_0x216d04;},'RdiDr':function(_0x83d98b,_0x253cdd){return _0x83d98b&_0x253cdd;}};if(_0x1662cb!==_0x3d7458){let _0x107116=isMemberInElement(_0x59f19d,_0x27cd63),_0x229e3d=_0x27cd63[_0x3cd554(0x1d1)]();if(_0x27cd63==='class'){const _0x8346b0=_0x59f19d[_0x3cd554(0x193)],_0x4f4f0a=parseClassList(_0x1662cb),_0x570e1e=_0x584238[_0x3cd554(0x1ff)](parseClassList,_0x3d7458);_0x8346b0[_0x3cd554(0x1a9)](..._0x4f4f0a[_0x3cd554(0x277)](_0x144c03=>_0x144c03&&!_0x570e1e[_0x3cd554(0x1bc)](_0x144c03))),_0x8346b0[_0x3cd554(0x16c)](..._0x570e1e[_0x3cd554(0x277)](_0xa26074=>_0xa26074&&!_0x4f4f0a['includes'](_0xa26074)));}else{if(_0x584238['SDIxI'](_0x27cd63,_0x584238[_0x3cd554(0x1e8)])){{for(const _0x46dd89 in _0x1662cb){(!_0x3d7458||_0x3d7458[_0x46dd89]==null)&&(_0x46dd89[_0x3cd554(0x1bc)]('-')?_0x59f19d[_0x3cd554(0x1a8)]['removeProperty'](_0x46dd89):_0x59f19d[_0x3cd554(0x1a8)][_0x46dd89]='');}}for(const _0x43c686 in _0x3d7458){(!_0x1662cb||_0x3d7458[_0x43c686]!==_0x1662cb[_0x43c686])&&(_0x43c686[_0x3cd554(0x1bc)]('-')?_0x59f19d[_0x3cd554(0x1a8)][_0x3cd554(0x1e5)](_0x43c686,_0x3d7458[_0x43c686]):_0x59f19d['style'][_0x43c686]=_0x3d7458[_0x43c686]);}}else{if(_0x27cd63===_0x584238[_0x3cd554(0x1a4)]);else{if(_0x584238[_0x3cd554(0x260)](_0x27cd63,_0x584238[_0x3cd554(0x176)]))_0x3d7458&&_0x3d7458(_0x59f19d);else{if(!_0x107116&&_0x27cd63[0x0]==='o'&&_0x584238[_0x3cd554(0x260)](_0x27cd63[0x1],'n')){if(_0x584238[_0x3cd554(0x260)](_0x27cd63[0x2],'-'))_0x27cd63=_0x27cd63[_0x3cd554(0x1d8)](0x3);else _0x584238[_0x3cd554(0x1c6)](isMemberInElement,win,_0x229e3d)?_0x27cd63=_0x229e3d[_0x3cd554(0x1d8)](0x2):_0x27cd63=_0x584238['KFMWl'](_0x229e3d[0x2],_0x27cd63[_0x3cd554(0x1d8)](0x3));_0x1662cb&&plt[_0x3cd554(0x1dc)](_0x59f19d,_0x27cd63,_0x1662cb,![]),_0x3d7458&&plt[_0x3cd554(0x173)](_0x59f19d,_0x27cd63,_0x3d7458,![]);}else{const _0x332e87=_0x584238[_0x3cd554(0x1ff)](isComplexType,_0x3d7458);if((_0x107116||_0x332e87&&_0x584238['fRfFR'](_0x3d7458,null))&&!_0x7bccbe)try{if(!_0x59f19d['tagName'][_0x3cd554(0x1bc)]('-')){const _0x5a0939=_0x584238[_0x3cd554(0x240)](_0x3d7458,null)?'':_0x3d7458;if(_0x584238['SDIxI'](_0x27cd63,_0x584238['votpU']))_0x107116=![];else(_0x584238['eQCpD'](_0x1662cb,null)||_0x584238[_0x3cd554(0x1c7)](_0x59f19d[_0x27cd63],_0x5a0939))&&(_0x59f19d[_0x27cd63]=_0x5a0939);}else _0x59f19d[_0x27cd63]=_0x3d7458;}catch(_0x1eb4f2){}if(_0x3d7458==null||_0x584238[_0x3cd554(0x260)](_0x3d7458,![])){if(_0x3d7458!==![]||_0x584238['AXPUN'](_0x59f19d[_0x3cd554(0x274)](_0x27cd63),'')){_0x59f19d[_0x3cd554(0x228)](_0x27cd63);}}else{if((!_0x107116||_0x584238[_0x3cd554(0x17e)](_0x18bd6a,0x4)||_0x7bccbe)&&!_0x332e87){_0x3d7458=_0x584238[_0x3cd554(0x19d)](_0x3d7458,!![])?'':_0x3d7458;{_0x59f19d[_0x3cd554(0x251)](_0x27cd63,_0x3d7458);}}}}}}}}}},parseClassListRegex=/\s/,parseClassList=_0x3a3eb5=>!_0x3a3eb5?[]:_0x3a3eb5['split'](parseClassListRegex),updateElement=(_0x4b05c2,_0x50bf90,_0xf4c8ec,_0x1719d8)=>{const _0x4de160=_0x4ba0eb,_0x36f28a={'cKxTG':function(_0x25ae0d,_0x27a26b){return _0x25ae0d===_0x27a26b;},'rAFnQ':function(_0x55f923,_0xdfa2f8){return _0x55f923 in _0xdfa2f8;},'LvHpX':function(_0x708992,_0x2b0996,_0xf78458,_0x4a4a8c,_0x2c495f,_0x34c663,_0x197f49){return _0x708992(_0x2b0996,_0xf78458,_0x4a4a8c,_0x2c495f,_0x34c663,_0x197f49);},'NaGUR':function(_0x546d75,_0x2dc822,_0x38631f,_0x53b704,_0x4345aa,_0x3d30ea,_0x2f6df4){return _0x546d75(_0x2dc822,_0x38631f,_0x53b704,_0x4345aa,_0x3d30ea,_0x2f6df4);}},_0x40ff84=_0x36f28a[_0x4de160(0x24a)](_0x50bf90[_0x4de160(0x17a)][_0x4de160(0x1cd)],0xb)&&_0x50bf90[_0x4de160(0x17a)][_0x4de160(0x1fa)]?_0x50bf90[_0x4de160(0x17a)][_0x4de160(0x1fa)]:_0x50bf90[_0x4de160(0x17a)],_0x443bb5=_0x4b05c2&&_0x4b05c2['$attrs$']||EMPTY_OBJ,_0x1c0777=_0x50bf90[_0x4de160(0x25f)]||EMPTY_OBJ;{for(_0x1719d8 in _0x443bb5){!_0x36f28a[_0x4de160(0x24b)](_0x1719d8,_0x1c0777)&&_0x36f28a[_0x4de160(0x275)](setAccessor,_0x40ff84,_0x1719d8,_0x443bb5[_0x1719d8],undefined,_0xf4c8ec,_0x50bf90[_0x4de160(0x21b)]);}}for(_0x1719d8 in _0x1c0777){_0x36f28a['NaGUR'](setAccessor,_0x40ff84,_0x1719d8,_0x443bb5[_0x1719d8],_0x1c0777[_0x1719d8],_0xf4c8ec,_0x50bf90[_0x4de160(0x21b)]);}},createElm=(_0xa1724a,_0x5b6ab2,_0x399de2,_0x592c67)=>{const _0x29421f=_0x4ba0eb,_0x5428a1={'AeEkN':_0x29421f(0x1e2),'bDuHF':function(_0x568a61,_0x22309c,_0x3f5040,_0x1e286e){return _0x568a61(_0x22309c,_0x3f5040,_0x1e286e);},'YmpvS':_0x29421f(0x1ea),'oIdlx':function(_0x173e5e,_0x343985){return _0x173e5e(_0x343985);},'zvlPP':_0x29421f(0x1ed),'TVxlq':_0x29421f(0x271),'NruUo':function(_0x3fc43f,_0x38e104){return _0x3fc43f===_0x38e104;}},_0x31831f=_0x5b6ab2[_0x29421f(0x254)][_0x399de2];let _0x3d0649=0x0,_0x212f16,_0x417627;if(_0x31831f[_0x29421f(0x1fc)]!==null)_0x212f16=_0x31831f['$elm$']=doc[_0x29421f(0x1c1)](_0x31831f[_0x29421f(0x1fc)]);else{const _0x43a9fc=_0x5428a1[_0x29421f(0x23f)][_0x29421f(0x1d9)]('|');let _0x326d74=0x0;while(!![]){switch(_0x43a9fc[_0x326d74++]){case'0':{_0x5428a1[_0x29421f(0x249)](updateElement,null,_0x31831f,isSvgMode);}continue;case'1':!isSvgMode&&(isSvgMode=_0x31831f[_0x29421f(0x218)]===_0x5428a1[_0x29421f(0x215)]);continue;case'2':_0x5428a1[_0x29421f(0x1f9)](isDef,scopeId)&&_0x212f16[_0x5428a1[_0x29421f(0x242)]]!==scopeId&&_0x212f16['classList'][_0x29421f(0x16c)](_0x212f16[_0x5428a1[_0x29421f(0x242)]]=scopeId);continue;case'3':_0x212f16=_0x31831f[_0x29421f(0x17a)]=doc[_0x29421f(0x1af)](isSvgMode?SVG_NS:HTML_NS,_0x31831f[_0x29421f(0x218)]);continue;case'4':isSvgMode&&_0x31831f[_0x29421f(0x218)]===_0x5428a1['TVxlq']&&(isSvgMode=![]);continue;case'5':{if(_0x31831f[_0x29421f(0x218)]===_0x5428a1[_0x29421f(0x215)])isSvgMode=![];else _0x5428a1[_0x29421f(0x16a)](_0x212f16[_0x29421f(0x20a)],_0x5428a1[_0x29421f(0x187)])&&(isSvgMode=!![]);}continue;case'6':if(_0x31831f[_0x29421f(0x254)])for(_0x3d0649=0x0;_0x3d0649<_0x31831f['$children$'][_0x29421f(0x23c)];++_0x3d0649){_0x417627=createElm(_0xa1724a,_0x31831f,_0x3d0649),_0x417627&&_0x212f16[_0x29421f(0x164)](_0x417627);}continue;}break;}}return _0x212f16;},addVnodes=(_0x1564c0,_0x33fad1,_0x7b66e1,_0x27ddc4,_0x28e17d,_0x89301f)=>{const _0x4516e9=_0x4ba0eb,_0x13589b={'tldCw':function(_0x597124,_0x42de3d){return _0x597124<=_0x42de3d;},'NdvAm':function(_0x4b93b6,_0x62ce39,_0x25050d,_0x3bc5b3){return _0x4b93b6(_0x62ce39,_0x25050d,_0x3bc5b3);}};let _0x47fd1a=_0x1564c0,_0x2815b0;_0x47fd1a[_0x4516e9(0x273)]&&_0x47fd1a[_0x4516e9(0x20a)]===hostTagName&&(_0x47fd1a=_0x47fd1a[_0x4516e9(0x273)]);for(;_0x13589b[_0x4516e9(0x1b7)](_0x28e17d,_0x89301f);++_0x28e17d){_0x27ddc4[_0x28e17d]&&(_0x2815b0=_0x13589b[_0x4516e9(0x21a)](createElm,null,_0x7b66e1,_0x28e17d),_0x2815b0&&(_0x27ddc4[_0x28e17d][_0x4516e9(0x17a)]=_0x2815b0,_0x47fd1a['insertBefore'](_0x2815b0,_0x33fad1)));}},removeVnodes=(_0x351a48,_0x113d32,_0x58f5da,_0x2af9ba,_0x29927d)=>{const _0x4e7d74=_0x4ba0eb,_0x31d909={'zDLFb':function(_0x46896d,_0x52d647){return _0x46896d<=_0x52d647;},'jNKhT':function(_0x32ffaa,_0x4b52b8){return _0x32ffaa(_0x4b52b8);}};for(;_0x31d909[_0x4e7d74(0x22d)](_0x113d32,_0x58f5da);++_0x113d32){(_0x2af9ba=_0x351a48[_0x113d32])&&(_0x29927d=_0x2af9ba[_0x4e7d74(0x17a)],_0x31d909[_0x4e7d74(0x1f3)](callNodeRefs,_0x2af9ba),_0x29927d[_0x4e7d74(0x1a9)]());}},updateChildren=(_0x73e342,_0x38247f,_0x234192,_0x1c7b3b)=>{const _0x5ad7b8=_0x4ba0eb,_0x34c3ca={'MVzrL':function(_0x22eb5c,_0x33be59){return _0x22eb5c-_0x33be59;},'FCoeE':function(_0xc4c158,_0x5aefd0){return _0xc4c158<=_0x5aefd0;},'SGBrN':function(_0x5d5da6,_0x2ae1b3){return _0x5d5da6<=_0x2ae1b3;},'sqlPz':function(_0x31dde3,_0x42685d){return _0x31dde3==_0x42685d;},'xkjow':function(_0x46bb46,_0x330078){return _0x46bb46==_0x330078;},'AGoTk':function(_0x4ea7c6,_0x2a738d){return _0x4ea7c6==_0x2a738d;},'lYqyK':function(_0x105306,_0x2d3675,_0x388622){return _0x105306(_0x2d3675,_0x388622);},'vnBtP':function(_0x1dd58b,_0x3d8512,_0x364e81){return _0x1dd58b(_0x3d8512,_0x364e81);},'bHBtO':function(_0x50411c,_0x34ec32,_0x2312f0){return _0x50411c(_0x34ec32,_0x2312f0);},'ABWiT':function(_0x43411b,_0xad833c,_0x4d828e){return _0x43411b(_0xad833c,_0x4d828e);},'gpyjp':function(_0x4b0849,_0x298ac3,_0x58118b){return _0x4b0849(_0x298ac3,_0x58118b);},'VQDEt':function(_0x1408a7,_0x152b6f,_0x436047){return _0x1408a7(_0x152b6f,_0x436047);},'yMseH':function(_0x9517c,_0x5392b6){return _0x9517c<=_0x5392b6;},'xpLrP':function(_0x3741a5,_0x2fd36d){return _0x3741a5!==_0x2fd36d;},'tqWgc':function(_0x2a5a74,_0x68edf8){return _0x2a5a74===_0x68edf8;},'CQXzj':function(_0x3d09cd,_0x1dd9ba){return _0x3d09cd>=_0x1dd9ba;},'zHUZf':function(_0x17d897,_0x2b0bcc,_0x3db372,_0x174315){return _0x17d897(_0x2b0bcc,_0x3db372,_0x174315);},'KNnpO':function(_0x2f6d73,_0x3cc60c,_0x5b6115,_0x299883){return _0x2f6d73(_0x3cc60c,_0x5b6115,_0x299883);},'RPWoS':function(_0x3bfda8,_0x3d6bc8){return _0x3bfda8>_0x3d6bc8;},'DruwF':function(_0x41f7a6,_0x49793f){return _0x41f7a6+_0x49793f;},'UQPVS':function(_0x448edb,_0x4576fb){return _0x448edb+_0x4576fb;},'fvOLq':function(_0x281bc5,_0x4aee02){return _0x281bc5>_0x4aee02;}};let _0x11eb4c=0x0,_0x185acb=0x0,_0x70150f=0x0,_0x320f57=0x0,_0x44647d=_0x38247f['length']-0x1,_0x5df5d5=_0x38247f[0x0],_0x25fcce=_0x38247f[_0x44647d],_0x3338bc=_0x34c3ca['MVzrL'](_0x1c7b3b[_0x5ad7b8(0x23c)],0x1),_0x54b613=_0x1c7b3b[0x0],_0x2d871b=_0x1c7b3b[_0x3338bc],_0x43e712,_0x4b6c35;while(_0x34c3ca[_0x5ad7b8(0x258)](_0x11eb4c,_0x44647d)&&_0x34c3ca[_0x5ad7b8(0x23e)](_0x185acb,_0x3338bc)){if(_0x34c3ca[_0x5ad7b8(0x25c)](_0x5df5d5,null))_0x5df5d5=_0x38247f[++_0x11eb4c];else{if(_0x34c3ca[_0x5ad7b8(0x25c)](_0x25fcce,null))_0x25fcce=_0x38247f[--_0x44647d];else{if(_0x34c3ca[_0x5ad7b8(0x160)](_0x54b613,null))_0x54b613=_0x1c7b3b[++_0x185acb];else{if(_0x34c3ca[_0x5ad7b8(0x270)](_0x2d871b,null))_0x2d871b=_0x1c7b3b[--_0x3338bc];else{if(_0x34c3ca[_0x5ad7b8(0x15e)](isSameVnode,_0x5df5d5,_0x54b613))_0x34c3ca[_0x5ad7b8(0x237)](patch,_0x5df5d5,_0x54b613),_0x5df5d5=_0x38247f[++_0x11eb4c],_0x54b613=_0x1c7b3b[++_0x185acb];else{if(_0x34c3ca[_0x5ad7b8(0x15e)](isSameVnode,_0x25fcce,_0x2d871b))_0x34c3ca[_0x5ad7b8(0x192)](patch,_0x25fcce,_0x2d871b),_0x25fcce=_0x38247f[--_0x44647d],_0x2d871b=_0x1c7b3b[--_0x3338bc];else{if(_0x34c3ca['ABWiT'](isSameVnode,_0x5df5d5,_0x2d871b))_0x34c3ca[_0x5ad7b8(0x169)](patch,_0x5df5d5,_0x2d871b),_0x73e342[_0x5ad7b8(0x261)](_0x5df5d5['$elm$'],_0x25fcce['$elm$'][_0x5ad7b8(0x1bd)]),_0x5df5d5=_0x38247f[++_0x11eb4c],_0x2d871b=_0x1c7b3b[--_0x3338bc];else{if(isSameVnode(_0x25fcce,_0x54b613))_0x34c3ca['VQDEt'](patch,_0x25fcce,_0x54b613),_0x73e342['insertBefore'](_0x25fcce['$elm$'],_0x5df5d5[_0x5ad7b8(0x17a)]),_0x25fcce=_0x38247f[--_0x44647d],_0x54b613=_0x1c7b3b[++_0x185acb];else{_0x70150f=-0x1;{for(_0x320f57=_0x11eb4c;_0x34c3ca[_0x5ad7b8(0x1df)](_0x320f57,_0x44647d);++_0x320f57){if(_0x38247f[_0x320f57]&&_0x34c3ca[_0x5ad7b8(0x179)](_0x38247f[_0x320f57]['$key$'],null)&&_0x34c3ca[_0x5ad7b8(0x269)](_0x38247f[_0x320f57]['$key$'],_0x54b613[_0x5ad7b8(0x1b0)])){_0x70150f=_0x320f57;break;}}}_0x34c3ca[_0x5ad7b8(0x21e)](_0x70150f,0x0)?(_0x4b6c35=_0x38247f[_0x70150f],_0x34c3ca[_0x5ad7b8(0x179)](_0x4b6c35[_0x5ad7b8(0x218)],_0x54b613['$tag$'])?_0x43e712=_0x34c3ca[_0x5ad7b8(0x19a)](createElm,_0x38247f&&_0x38247f[_0x185acb],_0x234192,_0x70150f):(_0x34c3ca[_0x5ad7b8(0x192)](patch,_0x4b6c35,_0x54b613),_0x38247f[_0x70150f]=undefined,_0x43e712=_0x4b6c35[_0x5ad7b8(0x17a)]),_0x54b613=_0x1c7b3b[++_0x185acb]):(_0x43e712=_0x34c3ca['KNnpO'](createElm,_0x38247f&&_0x38247f[_0x185acb],_0x234192,_0x185acb),_0x54b613=_0x1c7b3b[++_0x185acb]);if(_0x43e712){_0x5df5d5[_0x5ad7b8(0x17a)]['parentNode'][_0x5ad7b8(0x261)](_0x43e712,_0x5df5d5['$elm$']);}}}}}}}}}}if(_0x34c3ca[_0x5ad7b8(0x175)](_0x11eb4c,_0x44647d))addVnodes(_0x73e342,_0x34c3ca[_0x5ad7b8(0x25c)](_0x1c7b3b[_0x34c3ca[_0x5ad7b8(0x1b6)](_0x3338bc,0x1)],null)?null:_0x1c7b3b[_0x34c3ca['UQPVS'](_0x3338bc,0x1)][_0x5ad7b8(0x17a)],_0x234192,_0x1c7b3b,_0x185acb,_0x3338bc);else _0x34c3ca[_0x5ad7b8(0x1de)](_0x185acb,_0x3338bc)&&_0x34c3ca[_0x5ad7b8(0x19a)](removeVnodes,_0x38247f,_0x11eb4c,_0x44647d);},isSameVnode=(_0x53c23e,_0xf0039a)=>{const _0x45a314=_0x4ba0eb,_0x400fc9={'mpIDY':function(_0x10bdcb,_0x50b556){return _0x10bdcb===_0x50b556;},'RftQh':function(_0x51d7bd,_0xd61ed4){return _0x51d7bd===_0xd61ed4;}};if(_0x400fc9['mpIDY'](_0x53c23e['$tag$'],_0xf0039a[_0x45a314(0x218)])){return _0x400fc9[_0x45a314(0x221)](_0x53c23e[_0x45a314(0x1b0)],_0xf0039a[_0x45a314(0x1b0)]);}return![];},patch=(_0x2a87b7,_0x54a270)=>{const _0x130763=_0x4ba0eb,_0x61e3b8={'sUzoo':function(_0xc88a8c,_0x5bd13c){return _0xc88a8c===_0x5bd13c;},'xjeWX':function(_0x2e375e,_0x452b03){return _0x2e375e===_0x452b03;},'MILDp':function(_0x15a142,_0xd3fbd){return _0x15a142!==_0xd3fbd;},'IlGVN':function(_0x45405c,_0x1b8a29,_0x379e3e,_0x3a495f,_0x424b39,_0x57f771,_0x5cd9fc){return _0x45405c(_0x1b8a29,_0x379e3e,_0x3a495f,_0x424b39,_0x57f771,_0x5cd9fc);},'evHWf':function(_0x50f049,_0x523ff9){return _0x50f049-_0x523ff9;},'RRYUf':function(_0x411e54,_0x2eda21,_0xddf0fe,_0x2ae118){return _0x411e54(_0x2eda21,_0xddf0fe,_0x2ae118);},'aimFW':function(_0x1d3dcd,_0x425be1){return _0x1d3dcd-_0x425be1;},'YzySv':function(_0x27e84e,_0x2e8721){return _0x27e84e!==_0x2e8721;}},_0x1b6e1e=_0x54a270['$elm$']=_0x2a87b7[_0x130763(0x17a)],_0xf66b8d=_0x2a87b7[_0x130763(0x254)],_0x97c54=_0x54a270['$children$'],_0x55eea3=_0x54a270[_0x130763(0x218)],_0xe9d95b=_0x54a270['$text$'];if(_0xe9d95b===null){{isSvgMode=_0x61e3b8[_0x130763(0x232)](_0x55eea3,_0x130763(0x1ea))?!![]:_0x61e3b8[_0x130763(0x232)](_0x55eea3,_0x130763(0x271))?![]:isSvgMode;}{if(_0x61e3b8[_0x130763(0x20e)](_0x55eea3,_0x130763(0x1bf)));else updateElement(_0x2a87b7,_0x54a270,isSvgMode);}if(_0x61e3b8[_0x130763(0x181)](_0xf66b8d,null)&&_0x61e3b8[_0x130763(0x181)](_0x97c54,null))updateChildren(_0x1b6e1e,_0xf66b8d,_0x54a270,_0x97c54);else{if(_0x97c54!==null)_0x61e3b8[_0x130763(0x181)](_0x2a87b7[_0x130763(0x1fc)],null)&&(_0x1b6e1e['textContent']=''),_0x61e3b8[_0x130763(0x17b)](addVnodes,_0x1b6e1e,null,_0x54a270,_0x97c54,0x0,_0x61e3b8[_0x130763(0x26b)](_0x97c54[_0x130763(0x23c)],0x1));else _0x61e3b8[_0x130763(0x181)](_0xf66b8d,null)&&_0x61e3b8[_0x130763(0x1cc)](removeVnodes,_0xf66b8d,0x0,_0x61e3b8[_0x130763(0x17c)](_0xf66b8d['length'],0x1));}isSvgMode&&_0x61e3b8['sUzoo'](_0x55eea3,_0x130763(0x1ea))&&(isSvgMode=![]);}else _0x61e3b8[_0x130763(0x229)](_0x2a87b7[_0x130763(0x1fc)],_0xe9d95b)&&(_0x1b6e1e[_0x130763(0x235)]=_0xe9d95b);},callNodeRefs=_0x40daed=>{const _0x4f0f4d=_0x4ba0eb;{_0x40daed[_0x4f0f4d(0x25f)]&&_0x40daed[_0x4f0f4d(0x25f)][_0x4f0f4d(0x170)]&&_0x40daed[_0x4f0f4d(0x25f)][_0x4f0f4d(0x170)](null),_0x40daed[_0x4f0f4d(0x254)]&&_0x40daed['$children$'][_0x4f0f4d(0x26f)](callNodeRefs);}},renderVdom=(_0x95412a,_0x5e6491)=>{const _0x4046ea=_0x4ba0eb,_0x1d97a8={'AnaAp':function(_0x2a5629,_0x52a253,_0x46a7d7){return _0x2a5629(_0x52a253,_0x46a7d7);},'LsJrd':function(_0x268be5,_0x574419){return _0x268be5(_0x574419);},'ijjxc':function(_0x453a45,_0x2ba5fd,_0x309d2b,_0xb6bb62){return _0x453a45(_0x2ba5fd,_0x309d2b,_0xb6bb62);},'PAoTe':_0x4046ea(0x166),'fiqoj':function(_0x283a4a,_0x4ea26b,_0x375b4f){return _0x283a4a(_0x4ea26b,_0x375b4f);}},_0xad4ffa=_0x95412a[_0x4046ea(0x191)],_0xa44ef7=_0x95412a[_0x4046ea(0x231)],_0x152f45=_0x95412a['$vnode$']||_0x1d97a8[_0x4046ea(0x262)](newVNode,null,null),_0x5387fe=_0x1d97a8['LsJrd'](isHost,_0x5e6491)?_0x5e6491:_0x1d97a8[_0x4046ea(0x25e)](h,null,null,_0x5e6491);hostTagName=_0xad4ffa[_0x4046ea(0x20a)];_0xa44ef7['$attrsToReflect$']&&(_0x5387fe[_0x4046ea(0x25f)]=_0x5387fe['$attrs$']||{},_0xa44ef7[_0x4046ea(0x259)]['map'](([_0x395b1d,_0x85eb23])=>_0x5387fe['$attrs$'][_0x85eb23]=_0xad4ffa[_0x395b1d]));_0x5387fe['$tag$']=null,_0x5387fe[_0x4046ea(0x21b)]|=0x4,_0x95412a[_0x4046ea(0x234)]=_0x5387fe,_0x5387fe[_0x4046ea(0x17a)]=_0x152f45[_0x4046ea(0x17a)]=_0xad4ffa[_0x4046ea(0x273)]||_0xad4ffa;{scopeId=_0xad4ffa[_0x1d97a8[_0x4046ea(0x196)]];}_0x1d97a8[_0x4046ea(0x1fe)](patch,_0x152f45,_0x5387fe);},attachToAncestor=(_0x584c3f,_0x55ab71)=>{const _0x17fd49=_0x4ba0eb,_0xa6eb8d={'Byjqh':'s-p'};_0x55ab71&&!_0x584c3f[_0x17fd49(0x18d)]&&_0x55ab71[_0xa6eb8d[_0x17fd49(0x204)]]&&_0x55ab71[_0xa6eb8d['Byjqh']][_0x17fd49(0x1db)](new Promise(_0x5e0da6=>_0x584c3f[_0x17fd49(0x18d)]=_0x5e0da6));},scheduleUpdate=(_0x1c9e99,_0xf6ee48)=>{const _0x404240=_0x4ba0eb,_0x337c6c={'YmlBw':function(_0x13db2a,_0x4c5d26){return _0x13db2a&_0x4c5d26;},'AVEIm':function(_0x1e27e5,_0x462982,_0x235ea7){return _0x1e27e5(_0x462982,_0x235ea7);},'MCEFF':function(_0x596051,_0x5ed29f){return _0x596051(_0x5ed29f);}};{_0x1c9e99['$flags$']|=0x10;}if(_0x337c6c[_0x404240(0x1dd)](_0x1c9e99[_0x404240(0x21b)],0x4)){_0x1c9e99[_0x404240(0x21b)]|=0x200;return;}_0x337c6c[_0x404240(0x26a)](attachToAncestor,_0x1c9e99,_0x1c9e99['$ancestorComponent$']);const _0x207f26=()=>dispatchHooks(_0x1c9e99,_0xf6ee48);return _0x337c6c[_0x404240(0x1d7)](writeTask,_0x207f26);},dispatchHooks=(_0xa04752,_0x25cf26)=>{const _0x3a3caf=_0x4ba0eb,_0x50b7f9={'OsGeg':function(_0x29ace1,_0x9b95eb,_0x5224d8){return _0x29ace1(_0x9b95eb,_0x5224d8);},'RyhAL':_0x3a3caf(0x206),'ByEWM':function(_0x341cd5,_0x5577ff,_0x2fc51c){return _0x341cd5(_0x5577ff,_0x2fc51c);},'FrkcD':_0x3a3caf(0x16b),'wamtP':function(_0x3f7851,_0x27739d,_0x1040c4){return _0x3f7851(_0x27739d,_0x1040c4);}},_0x461b16=_0x50b7f9['OsGeg'](createTime,_0x50b7f9[_0x3a3caf(0x21d)],_0xa04752[_0x3a3caf(0x231)][_0x3a3caf(0x1ca)]),_0x519988=_0xa04752[_0x3a3caf(0x1f1)];let _0x48b20d;if(_0x25cf26){_0x48b20d=_0x50b7f9['ByEWM'](safeCall,_0x519988,_0x50b7f9[_0x3a3caf(0x1a1)]);}return _0x461b16(),_0x50b7f9[_0x3a3caf(0x1e7)](then,_0x48b20d,()=>updateComponent(_0xa04752,_0x519988,_0x25cf26));},updateComponent=async(_0x135549,_0x241e8e,_0xa71e77)=>{const _0x8e2474=_0x4ba0eb,_0xb615e4={'UdhYG':function(_0x49bb54,_0x2899a2,_0x2339de){return _0x49bb54(_0x2899a2,_0x2339de);},'KRCou':_0x8e2474(0x1c9),'xuFbk':function(_0x5d8be4,_0x13aa2c){return _0x5d8be4(_0x13aa2c);},'KjIZk':function(_0x44010b,_0x1344d6,_0x13beab){return _0x44010b(_0x1344d6,_0x13beab);},'vTEqs':function(_0x240c08){return _0x240c08();},'iRGKr':function(_0x182c6e){return _0x182c6e();},'hcBVO':function(_0x10f0a1,_0x43dfb5){return _0x10f0a1===_0x43dfb5;},'QlnmG':function(_0x3ca8ed){return _0x3ca8ed();}},_0xcd8e90=_0x135549[_0x8e2474(0x191)],_0x16a96c=_0xb615e4[_0x8e2474(0x15f)](createTime,_0x8e2474(0x1ec),_0x135549['$cmpMeta$']['$tagName$']),_0x29f931=_0xcd8e90[_0xb615e4[_0x8e2474(0x198)]];_0xa71e77&&_0xb615e4[_0x8e2474(0x188)](attachStyles,_0x135549);const _0x4185d6=_0xb615e4['KjIZk'](createTime,_0x8e2474(0x183),_0x135549[_0x8e2474(0x231)][_0x8e2474(0x1ca)]);{_0xb615e4[_0x8e2474(0x15f)](callRender,_0x135549,_0x241e8e);}_0x29f931&&(_0x29f931[_0x8e2474(0x26f)](_0x2de7a8=>_0x2de7a8()),_0xcd8e90[_0xb615e4['KRCou']]=undefined);_0xb615e4['vTEqs'](_0x4185d6),_0xb615e4[_0x8e2474(0x22a)](_0x16a96c);{const _0x30312c=_0xcd8e90['s-p'],_0x12cfdb=()=>postUpdateComponent(_0x135549);_0xb615e4[_0x8e2474(0x276)](_0x30312c[_0x8e2474(0x23c)],0x0)?_0xb615e4[_0x8e2474(0x22e)](_0x12cfdb):(Promise[_0x8e2474(0x1d0)](_0x30312c)[_0x8e2474(0x202)](_0x12cfdb),_0x135549[_0x8e2474(0x21b)]|=0x4,_0x30312c[_0x8e2474(0x23c)]=0x0);}},callRender=(_0x121cf0,_0x504c6e,_0x419b2e)=>{const _0x1ebf8a=_0x4ba0eb,_0x11e57e={'OEtHh':function(_0xcbbeb,_0x575e22,_0x58caa9){return _0xcbbeb(_0x575e22,_0x58caa9);}};try{_0x504c6e=_0x504c6e[_0x1ebf8a(0x183)]();{_0x121cf0['$flags$']&=~0x10;}{_0x121cf0[_0x1ebf8a(0x21b)]|=0x2;}{{{renderVdom(_0x121cf0,_0x504c6e);}}}}catch(_0x493314){_0x11e57e[_0x1ebf8a(0x195)](consoleError,_0x493314,_0x121cf0['$hostElement$']);}return null;},postUpdateComponent=_0x491bce=>{const _0x473a69=_0x4ba0eb,_0x138aca={'sEZkm':function(_0x5f2e4a,_0x2273a9,_0x3dd043){return _0x5f2e4a(_0x2273a9,_0x3dd043);},'ftBeO':function(_0x25640a,_0x4f809d){return _0x25640a&_0x4f809d;},'XTRkW':'2|1|3|4|0','aKtgc':function(_0x1f2b97){return _0x1f2b97();},'GQWvz':function(_0x30222a,_0x38cfe5){return _0x30222a(_0x38cfe5);},'XJSby':function(_0x399d49,_0x714063,_0x37054a){return _0x399d49(_0x714063,_0x37054a);},'aglBs':function(_0x2a8b5d){return _0x2a8b5d();},'QnvIx':function(_0x5ea63c,_0x4698de){return _0x5ea63c(_0x4698de);},'qHUtq':function(_0x3a182f,_0x596608){return _0x3a182f|_0x596608;}},_0xe8bd0c=_0x491bce['$cmpMeta$'][_0x473a69(0x1ca)],_0x3cc48e=_0x491bce[_0x473a69(0x191)],_0x4eb4ee=_0x138aca[_0x473a69(0x161)](createTime,_0x473a69(0x1ee),_0xe8bd0c),_0x3593ed=_0x491bce[_0x473a69(0x1f1)],_0x55e4ae=_0x491bce['$ancestorComponent$'];if(!_0x138aca[_0x473a69(0x24e)](_0x491bce[_0x473a69(0x21b)],0x40)){const _0x46a44b=_0x138aca[_0x473a69(0x167)][_0x473a69(0x1d9)]('|');let _0xc4b82e=0x0;while(!![]){switch(_0x46a44b[_0xc4b82e++]){case'0':{_0x491bce[_0x473a69(0x1b3)](_0x3cc48e),!_0x55e4ae&&_0x138aca[_0x473a69(0x190)](appDidLoad);}continue;case'1':{_0x138aca['GQWvz'](addHydratedFlag,_0x3cc48e);}continue;case'2':_0x491bce['$flags$']|=0x40;continue;case'3':{_0x138aca[_0x473a69(0x19e)](safeCall,_0x3593ed,_0x473a69(0x189));}continue;case'4':_0x138aca[_0x473a69(0x268)](_0x4eb4ee);continue;}break;}}else _0x138aca['aglBs'](_0x4eb4ee);{_0x491bce[_0x473a69(0x18d)]&&(_0x491bce[_0x473a69(0x18d)](),_0x491bce[_0x473a69(0x18d)]=undefined),_0x138aca[_0x473a69(0x24e)](_0x491bce[_0x473a69(0x21b)],0x200)&&_0x138aca['QnvIx'](nextTick,()=>scheduleUpdate(_0x491bce,![])),_0x491bce['$flags$']&=~_0x138aca['qHUtq'](0x4,0x200);}},appDidLoad=_0x238395=>{const _0x4ae955=_0x4ba0eb,_0x185dc2={'vgSeS':function(_0x19d138,_0x28dd25){return _0x19d138(_0x28dd25);}};{_0x185dc2['vgSeS'](addHydratedFlag,doc[_0x4ae955(0x16d)]);}_0x185dc2[_0x4ae955(0x1a0)](nextTick,()=>emitEvent(win,_0x4ae955(0x223),{'detail':{'namespace':NAMESPACE}}));},safeCall=(_0x2a6bbb,_0x40c9f2,_0xa6585d)=>{if(_0x2a6bbb&&_0x2a6bbb[_0x40c9f2])try{return _0x2a6bbb[_0x40c9f2](_0xa6585d);}catch(_0x4b464f){consoleError(_0x4b464f);}return undefined;},then=(_0x3c76be,_0x28458)=>{const _0x4af356=_0x4ba0eb,_0x54daa5={'fJXCt':function(_0x30316c){return _0x30316c();}};return _0x3c76be&&_0x3c76be[_0x4af356(0x202)]?_0x3c76be[_0x4af356(0x202)](_0x28458):_0x54daa5[_0x4af356(0x207)](_0x28458);},addHydratedFlag=_0x2009d9=>_0x2009d9[_0x4ba0eb(0x193)][_0x4ba0eb(0x16c)](_0x4ba0eb(0x1be)),getValue=(_0xeffed3,_0x2b1e5b)=>getHostRef(_0xeffed3)[_0x4ba0eb(0x174)][_0x4ba0eb(0x1a2)](_0x2b1e5b),setValue=(_0x1aee13,_0xbbd17c,_0x304707,_0x3e58e4)=>{const _0x46de48=_0x4ba0eb,_0xf5142f={'UglVW':function(_0x5c119c,_0x509b26){return _0x5c119c(_0x509b26);},'PBvbn':function(_0xb62bfc,_0x143e8d,_0x10ecdf){return _0xb62bfc(_0x143e8d,_0x10ecdf);},'BZTIB':function(_0x2ed197,_0x30f4af){return _0x2ed197!==_0x30f4af;},'OKNOs':function(_0x1bf930,_0x1cec24){return _0x1bf930===_0x1cec24;},'blOnX':function(_0x1d0ec9,_0xbfaaf9){return _0x1d0ec9|_0xbfaaf9;},'jsJhK':function(_0x14704d,_0x2a01b9,_0x427923){return _0x14704d(_0x2a01b9,_0x427923);}},_0x448075=_0xf5142f['UglVW'](getHostRef,_0x1aee13),_0x49c752=_0x448075[_0x46de48(0x174)][_0x46de48(0x1a2)](_0xbbd17c),_0x6ac0bf=_0x448075[_0x46de48(0x21b)],_0x25ff09=_0x448075[_0x46de48(0x1f1)];_0x304707=_0xf5142f[_0x46de48(0x199)](parsePropertyValue,_0x304707,_0x3e58e4[_0x46de48(0x239)][_0xbbd17c][0x0]);const _0x448c59=Number['isNaN'](_0x49c752)&&Number['isNaN'](_0x304707),_0x814299=_0xf5142f[_0x46de48(0x233)](_0x304707,_0x49c752)&&!_0x448c59;(!(_0x6ac0bf&0x8)||_0xf5142f[_0x46de48(0x1f5)](_0x49c752,undefined))&&_0x814299&&(_0x448075[_0x46de48(0x174)][_0x46de48(0x1b2)](_0xbbd17c,_0x304707),_0x25ff09&&(_0xf5142f[_0x46de48(0x1f5)](_0x6ac0bf&_0xf5142f['blOnX'](0x2,0x10),0x2)&&_0xf5142f[_0x46de48(0x22f)](scheduleUpdate,_0x448075,![])));},proxyComponent=(_0x3041cb,_0x23ba44,_0x4f351d)=>{const _0x4181f5=_0x4ba0eb,_0x6b61fd={'IIMbu':function(_0x8c6121,_0x2beaa8,_0x195356){return _0x8c6121(_0x2beaa8,_0x195356);},'rIiOL':function(_0x43bfb9,_0x552c94){return _0x43bfb9&_0x552c94;},'fvoZK':function(_0x48cef3,_0x7c3a4e){return _0x48cef3==_0x7c3a4e;},'EZczv':function(_0x2658c2,_0x1cae07){return _0x2658c2===_0x1cae07;},'LSYxL':function(_0x335501,_0x663693){return _0x335501&_0x663693;}};if(_0x23ba44['$members$']){const _0x326b17=Object[_0x4181f5(0x22b)](_0x23ba44[_0x4181f5(0x239)]),_0x4288a6=_0x3041cb[_0x4181f5(0x1a7)];_0x326b17['map'](([_0x3f44a5,[_0x6be608]])=>{const _0x379327=_0x4181f5;(_0x6b61fd['rIiOL'](_0x6be608,0x1f)||_0x6b61fd[_0x379327(0x217)](_0x4f351d,0x2)&&_0x6b61fd[_0x379327(0x217)](_0x6be608,0x20))&&Object[_0x379327(0x210)](_0x4288a6,_0x3f44a5,{'get'(){const _0x1f87bd=_0x379327;return _0x6b61fd[_0x1f87bd(0x205)](getValue,this,_0x3f44a5);},'set'(_0x5f0055){setValue(this,_0x3f44a5,_0x5f0055,_0x23ba44);},'configurable':!![],'enumerable':!![]});});if(_0x6b61fd['LSYxL'](_0x4f351d,0x1)){const _0x3367ab=new Map();_0x4288a6[_0x4181f5(0x17d)]=function(_0x1623b3,_0x3aaa3d,_0xa02129){const _0x4fbf8b={'AXoQb':function(_0x40703f,_0x3bd65e){const _0x316c81=_0x28aa;return _0x6b61fd[_0x316c81(0x18b)](_0x40703f,_0x3bd65e);},'ymCIu':function(_0x19fec8,_0x2eedaa){return _0x6b61fd['EZczv'](_0x19fec8,_0x2eedaa);}};plt['jmp'](()=>{const _0x2e1805=_0x28aa,_0x2e3366=_0x3367ab['get'](_0x1623b3);if(this[_0x2e1805(0x26e)](_0x2e3366))_0xa02129=this[_0x2e3366],delete this[_0x2e3366];else{if(_0x4288a6[_0x2e1805(0x26e)](_0x2e3366)&&typeof this[_0x2e3366]===_0x2e1805(0x165)&&_0x4fbf8b[_0x2e1805(0x203)](this[_0x2e3366],_0xa02129))return;}this[_0x2e3366]=_0xa02129===null&&_0x4fbf8b[_0x2e1805(0x1c2)](typeof this[_0x2e3366],_0x2e1805(0x20b))?![]:_0xa02129;});},_0x3041cb[_0x4181f5(0x1b8)]=_0x326b17['filter'](([_0xf99df0,_0x46868e])=>_0x46868e[0x0]&0xf)['map'](([_0x4d81ce,_0x5bafc4])=>{const _0x269c62=_0x4181f5,_0x3dc95a=_0x5bafc4[0x1]||_0x4d81ce;return _0x3367ab[_0x269c62(0x1b2)](_0x3dc95a,_0x4d81ce),_0x5bafc4[0x0]&0x200&&_0x23ba44[_0x269c62(0x259)][_0x269c62(0x1db)]([_0x4d81ce,_0x3dc95a]),_0x3dc95a;});}}return _0x3041cb;},initializeComponent=async(_0x2c8ee3,_0x3d1988,_0x305d3e,_0x579a8d,_0x49dc3f)=>{const _0x23f91c=_0x4ba0eb,_0x4b2bc9={'XeUwN':function(_0xe7ea15,_0x26904b){return _0xe7ea15===_0x26904b;},'FavpD':function(_0x4659d1,_0x24e88c){return _0x4659d1&_0x24e88c;},'OUYHZ':function(_0x5e3d97,_0x23046f){return _0x5e3d97(_0x23046f);},'TRpkj':function(_0x50e6a2){return _0x50e6a2();},'hxgFp':function(_0x4dfca8){return _0x4dfca8();},'pGjWK':function(_0xadb298,_0x45270f,_0x1a6ce6){return _0xadb298(_0x45270f,_0x1a6ce6);},'dvXjJ':function(_0x5c7e89){return _0x5c7e89();},'ADuaa':function(_0xa57b4b,_0x450a9b,_0x31574b){return _0xa57b4b(_0x450a9b,_0x31574b);},'qGpAq':'registerStyles','ivAIi':function(_0x5a29bb,_0x4b05ab,_0x58f2a5,_0x2c1125){return _0x5a29bb(_0x4b05ab,_0x58f2a5,_0x2c1125);},'ROYHx':'s-rc'};if(_0x4b2bc9['XeUwN'](_0x4b2bc9['FavpD'](_0x3d1988[_0x23f91c(0x21b)],0x20),0x0)){{_0x3d1988[_0x23f91c(0x21b)]|=0x20,_0x49dc3f=_0x4b2bc9[_0x23f91c(0x211)](loadModule,_0x305d3e);if(_0x49dc3f[_0x23f91c(0x202)]){const _0x1fbc09=_0x4b2bc9['TRpkj'](uniqueTime);_0x49dc3f=await _0x49dc3f,_0x4b2bc9[_0x23f91c(0x19b)](_0x1fbc09);}!_0x49dc3f[_0x23f91c(0x265)]&&(proxyComponent(_0x49dc3f,_0x305d3e,0x2),_0x49dc3f[_0x23f91c(0x265)]=!![]);const _0x58e293=_0x4b2bc9[_0x23f91c(0x1f4)](createTime,_0x23f91c(0x158),_0x305d3e[_0x23f91c(0x1ca)]);{_0x3d1988[_0x23f91c(0x21b)]|=0x8;}try{new _0x49dc3f(_0x3d1988);}catch(_0xb409e8){consoleError(_0xb409e8);}{_0x3d1988['$flags$']&=~0x8;}_0x4b2bc9['dvXjJ'](_0x58e293),_0x4b2bc9[_0x23f91c(0x211)](fireConnectedCallback,_0x3d1988[_0x23f91c(0x1f1)]);}if(_0x49dc3f[_0x23f91c(0x1a8)]){let _0x5a60d9=_0x49dc3f[_0x23f91c(0x1a8)];const _0x31af5f=_0x4b2bc9[_0x23f91c(0x211)](getScopeId,_0x305d3e);if(!styles['has'](_0x31af5f)){const _0x272e25=_0x4b2bc9[_0x23f91c(0x267)](createTime,_0x4b2bc9[_0x23f91c(0x201)],_0x305d3e[_0x23f91c(0x1ca)]);_0x4b2bc9['ivAIi'](registerStyle,_0x31af5f,_0x5a60d9,!!_0x4b2bc9[_0x23f91c(0x1e9)](_0x305d3e[_0x23f91c(0x21b)],0x1)),_0x272e25();}}}const _0x3a84a4=_0x3d1988[_0x23f91c(0x272)],_0x5d657e=()=>scheduleUpdate(_0x3d1988,!![]);_0x3a84a4&&_0x3a84a4[_0x4b2bc9[_0x23f91c(0x266)]]?_0x3a84a4[_0x4b2bc9['ROYHx']][_0x23f91c(0x1db)](_0x5d657e):_0x5d657e();},fireConnectedCallback=_0x22c6d9=>{const _0x4effc7=_0x4ba0eb,_0x452f31={'nBqjt':function(_0x2df191,_0x387e97,_0x563cab){return _0x2df191(_0x387e97,_0x563cab);}};{_0x452f31[_0x4effc7(0x23d)](safeCall,_0x22c6d9,'connectedCallback');}},connectedCallback=_0x2ebfe6=>{const _0x33dbc6=_0x4ba0eb,_0x42fe49={'SbyIy':function(_0x49a9db,_0x1dcf6e){return _0x49a9db&_0x1dcf6e;},'qNbHm':function(_0x3e3e66,_0x2db328){return _0x3e3e66===_0x2db328;},'CUahV':function(_0x21e8be,_0x38c0f5){return _0x21e8be&_0x38c0f5;},'EzTJT':function(_0x5ab246,_0x4323cc,_0x480d89){return _0x5ab246(_0x4323cc,_0x480d89);},'acQfI':_0x33dbc6(0x1e0),'gGEAL':function(_0x4ca1b5,_0x106cf2){return _0x4ca1b5&_0x106cf2;},'uXSUJ':_0x33dbc6(0x159),'ouIyh':function(_0x134799,_0x199eee,_0x30acf6){return _0x134799(_0x199eee,_0x30acf6);},'FRhbj':function(_0x5e9fd9,_0x271865,_0x13ae17,_0x304ff6){return _0x5e9fd9(_0x271865,_0x13ae17,_0x304ff6);},'WFelc':function(_0x2727fa){return _0x2727fa();}};if(_0x42fe49[_0x33dbc6(0x225)](_0x42fe49[_0x33dbc6(0x244)](plt[_0x33dbc6(0x21b)],0x1),0x0)){const _0x28e4e0=getHostRef(_0x2ebfe6),_0x273fb7=_0x28e4e0[_0x33dbc6(0x231)],_0x17009e=_0x42fe49['EzTJT'](createTime,_0x42fe49['acQfI'],_0x273fb7['$tagName$']);if(!_0x42fe49[_0x33dbc6(0x1ab)](_0x28e4e0[_0x33dbc6(0x21b)],0x1)){_0x28e4e0[_0x33dbc6(0x21b)]|=0x1;{let _0x88c171=_0x2ebfe6;while(_0x88c171=_0x88c171[_0x33dbc6(0x15d)]||_0x88c171['host']){if(_0x88c171[_0x42fe49['uXSUJ']]){_0x42fe49[_0x33dbc6(0x197)](attachToAncestor,_0x28e4e0,_0x28e4e0[_0x33dbc6(0x272)]=_0x88c171);break;}}}_0x273fb7[_0x33dbc6(0x239)]&&Object[_0x33dbc6(0x22b)](_0x273fb7['$members$'])[_0x33dbc6(0x26f)](([_0x121149,[_0xbc32da]])=>{const _0x449b8f=_0x33dbc6;if(_0x42fe49['SbyIy'](_0xbc32da,0x1f)&&_0x2ebfe6[_0x449b8f(0x26e)](_0x121149)){const _0x3a3749=_0x2ebfe6[_0x121149];delete _0x2ebfe6[_0x121149],_0x2ebfe6[_0x121149]=_0x3a3749;}});{_0x42fe49['FRhbj'](initializeComponent,_0x2ebfe6,_0x28e4e0,_0x273fb7);}}else fireConnectedCallback(_0x28e4e0[_0x33dbc6(0x1f1)]);_0x42fe49[_0x33dbc6(0x243)](_0x17009e);}},disconnectedCallback=_0x3631fd=>{const _0x74e7a2=_0x4ba0eb,_0x307d90={'ePBPM':function(_0x95faf1,_0x39d595){return _0x95faf1===_0x39d595;},'UmFWo':function(_0x444924,_0x444d85){return _0x444924&_0x444d85;},'xdYOU':function(_0x42bece,_0x2e010a,_0x171481){return _0x42bece(_0x2e010a,_0x171481);}};if(_0x307d90[_0x74e7a2(0x247)](_0x307d90['UmFWo'](plt[_0x74e7a2(0x21b)],0x1),0x0)){const _0x5788fa=getHostRef(_0x3631fd),_0x17e811=_0x5788fa[_0x74e7a2(0x1f1)];{_0x307d90[_0x74e7a2(0x25b)](safeCall,_0x17e811,_0x74e7a2(0x15a));}}},bootstrapLazy=(_0x3a8306,_0x4db56e={})=>{const _0x1af83d=_0x4ba0eb,_0x94536e={'ZYYRm':function(_0x1c2325,_0x4dd0dd){return _0x1c2325(_0x4dd0dd);},'lXiBc':function(_0x4a2e5f,_0xebb42e){return _0x4a2e5f(_0xebb42e);},'uzFsD':function(_0x32c249,_0x472688,_0x3c13d5,_0x5e5815){return _0x32c249(_0x472688,_0x3c13d5,_0x5e5815);},'hHqRL':function(_0x21eeac,_0x43ba4c,_0x5edd18){return _0x21eeac(_0x43ba4c,_0x5edd18);},'xhlaM':function(_0x2c96a1,_0x533550){return _0x2c96a1&_0x533550;},'zDlDG':_0x1af83d(0x1a3),'hYZfz':function(_0xa89357,_0xe404f1){return _0xa89357+_0xe404f1;},'KgqTv':_0x1af83d(0x245),'davlx':function(_0x2a98d0,_0x402547){return _0x2a98d0!==_0x402547;},'dEcPI':function(_0x3a07f3,_0x2db68c){return _0x3a07f3(_0x2db68c);},'yQOZL':function(_0x3c1be5){return _0x3c1be5();}};var _0x45a225;const _0x43beeb=createTime(),_0x2aeb2e=[],_0x2afa1a=_0x4db56e[_0x1af83d(0x208)]||[],_0x1433da=win[_0x1af83d(0x21f)],_0x30543e=doc[_0x1af83d(0x1aa)],_0x2c3cbc=_0x30543e[_0x1af83d(0x216)]('meta[charset]'),_0x2225b2=doc[_0x1af83d(0x20c)]('style'),_0xd87bee=[];let _0x166c8a,_0x2c702e=!![];Object[_0x1af83d(0x24d)](plt,_0x4db56e),plt[_0x1af83d(0x263)]=new URL(_0x4db56e[_0x1af83d(0x19c)]||'./',doc[_0x1af83d(0x1f0)])[_0x1af83d(0x241)],_0x3a8306['map'](_0x50b494=>{const _0x2e7a08=_0x1af83d,_0xa1a550={'bZfKW':function(_0x43d77b,_0x576ff0,_0x3aa665){const _0x1bc733=_0x28aa;return _0x94536e[_0x1bc733(0x1ef)](_0x43d77b,_0x576ff0,_0x3aa665);},'Fxvdj':function(_0x343410,_0x541de6){const _0x539427=_0x28aa;return _0x94536e[_0x539427(0x1d6)](_0x343410,_0x541de6);},'ZGnmK':_0x94536e[_0x2e7a08(0x212)]};_0x50b494[0x1][_0x2e7a08(0x26f)](_0x48308d=>{const _0x80eae6=_0x2e7a08,_0x2d6cb6={'GPggL':function(_0x2e4393,_0x8fa265){const _0x55bb95=_0x28aa;return _0x94536e[_0x55bb95(0x180)](_0x2e4393,_0x8fa265);},'VSRkm':function(_0x5e2d7b,_0x3aab54){const _0x2dc65e=_0x28aa;return _0x94536e[_0x2dc65e(0x1da)](_0x5e2d7b,_0x3aab54);}},_0x2f4234={'$flags$':_0x48308d[0x0],'$tagName$':_0x48308d[0x1],'$members$':_0x48308d[0x2],'$listeners$':_0x48308d[0x3]};{_0x2f4234[_0x80eae6(0x239)]=_0x48308d[0x2];}{_0x2f4234[_0x80eae6(0x259)]=[];}const _0x467717=_0x2f4234['$tagName$'],_0x416ffa=class extends HTMLElement{constructor(_0x5ecc4e){const _0x2bb6bf=_0x80eae6;super(_0x5ecc4e),_0x5ecc4e=this,_0xa1a550[_0x2bb6bf(0x224)](registerHost,_0x5ecc4e,_0x2f4234);if(_0xa1a550[_0x2bb6bf(0x194)](_0x2f4234[_0x2bb6bf(0x21b)],0x1)){{_0x5ecc4e[_0x2bb6bf(0x23a)]({'mode':_0xa1a550[_0x2bb6bf(0x16e)]});}}}[_0x80eae6(0x1e0)](){const _0x4d46a1=_0x80eae6;_0x166c8a&&(_0x2d6cb6[_0x4d46a1(0x20f)](clearTimeout,_0x166c8a),_0x166c8a=null),_0x2c702e?_0xd87bee[_0x4d46a1(0x1db)](this):plt[_0x4d46a1(0x1e3)](()=>connectedCallback(this));}[_0x80eae6(0x15a)](){const _0x37091d=_0x80eae6;plt[_0x37091d(0x1e3)](()=>disconnectedCallback(this));}[_0x80eae6(0x246)](){const _0x42a238=_0x80eae6;return _0x2d6cb6[_0x42a238(0x23b)](getHostRef,this)['$onReadyPromise$'];}};_0x2f4234[_0x80eae6(0x1d2)]=_0x50b494[0x0],!_0x2afa1a['includes'](_0x467717)&&!_0x1433da['get'](_0x467717)&&(_0x2aeb2e['push'](_0x467717),_0x1433da['define'](_0x467717,_0x94536e[_0x80eae6(0x209)](proxyComponent,_0x416ffa,_0x2f4234,0x1)));});});{_0x2225b2[_0x1af83d(0x168)]=_0x94536e[_0x1af83d(0x253)](_0x2aeb2e,HYDRATED_CSS),_0x2225b2[_0x1af83d(0x251)](_0x94536e[_0x1af83d(0x15c)],'');const _0x4b8f1a=(_0x45a225=plt[_0x1af83d(0x1ce)])!==null&&_0x94536e[_0x1af83d(0x1b4)](_0x45a225,void 0x0)?_0x45a225:_0x94536e[_0x1af83d(0x26d)](queryNonceMetaTagContent,doc);_0x4b8f1a!=null&&_0x2225b2[_0x1af83d(0x251)](_0x1af83d(0x1a5),_0x4b8f1a),_0x30543e[_0x1af83d(0x261)](_0x2225b2,_0x2c3cbc?_0x2c3cbc[_0x1af83d(0x1bd)]:_0x30543e['firstChild']);}_0x2c702e=![];if(_0xd87bee['length'])_0xd87bee[_0x1af83d(0x26f)](_0x3e7a58=>_0x3e7a58[_0x1af83d(0x1e0)]());else{plt[_0x1af83d(0x1e3)](()=>_0x166c8a=setTimeout(appDidLoad,0x1e));}_0x94536e['yQOZL'](_0x43beeb);},setNonce=_0x401998=>plt[_0x4ba0eb(0x1ce)]=_0x401998,hostRefs=new WeakMap(),getHostRef=_0x347c97=>hostRefs[_0x4ba0eb(0x1a2)](_0x347c97),registerInstance=(_0x4c6796,_0x922063)=>hostRefs[_0x4ba0eb(0x1b2)](_0x922063[_0x4ba0eb(0x1f1)]=_0x4c6796,_0x922063),registerHost=(_0x30432f,_0x4a20ec)=>{const _0x1d8c45=_0x4ba0eb,_0x17b579={'LBGxR':_0x1d8c45(0x159),'RAeUw':_0x1d8c45(0x1c9)},_0x46e385={'$flags$':0x0,'$hostElement$':_0x30432f,'$cmpMeta$':_0x4a20ec,'$instanceValues$':new Map()};{_0x46e385[_0x1d8c45(0x1f2)]=new Promise(_0x392c59=>_0x46e385[_0x1d8c45(0x1b3)]=_0x392c59),_0x30432f[_0x17b579[_0x1d8c45(0x1b5)]]=[],_0x30432f[_0x17b579['RAeUw']]=[];}return hostRefs[_0x1d8c45(0x1b2)](_0x30432f,_0x46e385);},isMemberInElement=(_0x5d3fca,_0x3c2170)=>_0x3c2170 in _0x5d3fca,consoleError=(_0xea3e33,_0x519112)=>(0x0,console[_0x4ba0eb(0x1c0)])(_0xea3e33,_0x519112),cmpModules=new Map(),loadModule=(_0x2b7811,_0x14d54b,_0x20c030)=>{const _0x51b512=_0x4ba0eb,_0x2c0845=_0x2b7811[_0x51b512(0x1ca)][_0x51b512(0x250)](/-/g,'_'),_0x3b7bc9=_0x2b7811[_0x51b512(0x1d2)],_0x40f061=cmpModules[_0x51b512(0x1a2)](_0x3b7bc9);if(_0x40f061)return _0x40f061[_0x2c0845];return import('./'+_0x3b7bc9+_0x51b512(0x22c))[_0x51b512(0x202)](_0x8a3c97=>{const _0x170122=_0x51b512;{cmpModules[_0x170122(0x1b2)](_0x3b7bc9,_0x8a3c97);}return _0x8a3c97[_0x2c0845];},consoleError);},styles=new Map(),win=typeof window!==_0x4ba0eb(0x255)?window:{},doc=win[_0x4ba0eb(0x185)]||{'head':{}},plt={'$flags$':0x0,'$resourcesUrl$':'','jmp':_0x534b73=>_0x534b73(),'raf':_0x2e10ba=>requestAnimationFrame(_0x2e10ba),'ael':(_0x500c68,_0x231707,_0x4a025e,_0x5d5671)=>_0x500c68[_0x4ba0eb(0x238)](_0x231707,_0x4a025e,_0x5d5671),'rel':(_0x542eba,_0x2a3819,_0x24af24,_0x3bdbfb)=>_0x542eba['removeEventListener'](_0x2a3819,_0x24af24,_0x3bdbfb),'ce':(_0x28cbff,_0x4adb87)=>new CustomEvent(_0x28cbff,_0x4adb87)},promiseResolve=_0x3739de=>Promise[_0x4ba0eb(0x1fd)](_0x3739de),supportsConstructableStylesheets=((()=>{try{return new CSSStyleSheet(),typeof new CSSStyleSheet()['replaceSync']==='function';}catch(_0x4d62d4){}return![];})()),queueDomReads=[],queueDomWrites=[],queueTask=(_0x4feaca,_0xdb8d7c)=>_0xb49ab6=>{const _0x21091a=_0x4ba0eb,_0x5af5d6={'pxUXZ':function(_0x514187,_0x1641ec){return _0x514187&_0x1641ec;},'KiBYW':function(_0x1d23fc,_0x447bc1){return _0x1d23fc(_0x447bc1);}};_0x4feaca[_0x21091a(0x1db)](_0xb49ab6),!queuePending&&(queuePending=!![],_0xdb8d7c&&_0x5af5d6['pxUXZ'](plt['$flags$'],0x4)?_0x5af5d6[_0x21091a(0x177)](nextTick,flush):plt[_0x21091a(0x184)](flush));},consume=_0x10639c=>{const _0x207128=_0x4ba0eb,_0x4a5d5c={'PtAvg':function(_0x5792fc,_0x165d96){return _0x5792fc<_0x165d96;}};for(let _0x2eb2c9=0x0;_0x4a5d5c[_0x207128(0x18f)](_0x2eb2c9,_0x10639c[_0x207128(0x23c)]);_0x2eb2c9++){try{_0x10639c[_0x2eb2c9](performance[_0x207128(0x24f)]());}catch(_0x155c5f){consoleError(_0x155c5f);}}_0x10639c['length']=0x0;},flush=()=>{const _0x5b41e0=_0x4ba0eb,_0x1729f7={'ttDfn':function(_0x4d2e55,_0x25a397){return _0x4d2e55(_0x25a397);},'zSuhT':function(_0x43e6de,_0x57a164){return _0x43e6de>_0x57a164;}};_0x1729f7[_0x5b41e0(0x172)](consume,queueDomReads);{_0x1729f7[_0x5b41e0(0x172)](consume,queueDomWrites),(queuePending=_0x1729f7['zSuhT'](queueDomReads['length'],0x0))&&plt[_0x5b41e0(0x184)](flush);}},nextTick=_0x35981c=>promiseResolve()['then'](_0x35981c),writeTask=queueTask(queueDomWrites,!![]);export{Host as H,bootstrapLazy as b,getElement as g,h,promiseResolve as p,registerInstance as r,setNonce as s};
1
+ const NAMESPACE = 'pushfeedback';
2
+
3
+ /**
4
+ * Virtual DOM patching algorithm based on Snabbdom by
5
+ * Simon Friis Vindum (@paldepind)
6
+ * Licensed under the MIT License
7
+ * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
8
+ *
9
+ * Modified for Stencil's renderer and slot projection
10
+ */
11
+ let scopeId;
12
+ let hostTagName;
13
+ let isSvgMode = false;
14
+ let queuePending = false;
15
+ const createTime = (fnName, tagName = '') => {
16
+ {
17
+ return () => {
18
+ return;
19
+ };
20
+ }
21
+ };
22
+ const uniqueTime = (key, measureText) => {
23
+ {
24
+ return () => {
25
+ return;
26
+ };
27
+ }
28
+ };
29
+ const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
30
+ /**
31
+ * Default style mode id
32
+ */
33
+ /**
34
+ * Reusable empty obj/array
35
+ * Don't add values to these!!
36
+ */
37
+ const EMPTY_OBJ = {};
38
+ /**
39
+ * Namespaces
40
+ */
41
+ const SVG_NS = 'http://www.w3.org/2000/svg';
42
+ const HTML_NS = 'http://www.w3.org/1999/xhtml';
43
+ const isDef = (v) => v != null;
44
+ const isComplexType = (o) => {
45
+ // https://jsperf.com/typeof-fn-object/5
46
+ o = typeof o;
47
+ return o === 'object' || o === 'function';
48
+ };
49
+ /**
50
+ * Helper method for querying a `meta` tag that contains a nonce value
51
+ * out of a DOM's head.
52
+ *
53
+ * @param doc The DOM containing the `head` to query against
54
+ * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
55
+ * exists or the tag has no content.
56
+ */
57
+ function queryNonceMetaTagContent(doc) {
58
+ var _a, _b, _c;
59
+ return (_c = (_b = (_a = doc.head) === null || _a === void 0 ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) === null || _b === void 0 ? void 0 : _b.getAttribute('content')) !== null && _c !== void 0 ? _c : undefined;
60
+ }
61
+ /**
62
+ * Production h() function based on Preact by
63
+ * Jason Miller (@developit)
64
+ * Licensed under the MIT License
65
+ * https://github.com/developit/preact/blob/master/LICENSE
66
+ *
67
+ * Modified for Stencil's compiler and vdom
68
+ */
69
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
70
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
71
+ const h = (nodeName, vnodeData, ...children) => {
72
+ let child = null;
73
+ let key = null;
74
+ let simple = false;
75
+ let lastSimple = false;
76
+ const vNodeChildren = [];
77
+ const walk = (c) => {
78
+ for (let i = 0; i < c.length; i++) {
79
+ child = c[i];
80
+ if (Array.isArray(child)) {
81
+ walk(child);
82
+ }
83
+ else if (child != null && typeof child !== 'boolean') {
84
+ if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
85
+ child = String(child);
86
+ }
87
+ if (simple && lastSimple) {
88
+ // If the previous child was simple (string), we merge both
89
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
90
+ }
91
+ else {
92
+ // Append a new vNode, if it's text, we create a text vNode
93
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
94
+ }
95
+ lastSimple = simple;
96
+ }
97
+ }
98
+ };
99
+ walk(children);
100
+ if (vnodeData) {
101
+ // normalize class / classname attributes
102
+ if (vnodeData.key) {
103
+ key = vnodeData.key;
104
+ }
105
+ {
106
+ const classData = vnodeData.className || vnodeData.class;
107
+ if (classData) {
108
+ vnodeData.class =
109
+ typeof classData !== 'object'
110
+ ? classData
111
+ : Object.keys(classData)
112
+ .filter((k) => classData[k])
113
+ .join(' ');
114
+ }
115
+ }
116
+ }
117
+ const vnode = newVNode(nodeName, null);
118
+ vnode.$attrs$ = vnodeData;
119
+ if (vNodeChildren.length > 0) {
120
+ vnode.$children$ = vNodeChildren;
121
+ }
122
+ {
123
+ vnode.$key$ = key;
124
+ }
125
+ return vnode;
126
+ };
127
+ /**
128
+ * A utility function for creating a virtual DOM node from a tag and some
129
+ * possible text content.
130
+ *
131
+ * @param tag the tag for this element
132
+ * @param text possible text content for the node
133
+ * @returns a newly-minted virtual DOM node
134
+ */
135
+ const newVNode = (tag, text) => {
136
+ const vnode = {
137
+ $flags$: 0,
138
+ $tag$: tag,
139
+ $text$: text,
140
+ $elm$: null,
141
+ $children$: null,
142
+ };
143
+ {
144
+ vnode.$attrs$ = null;
145
+ }
146
+ {
147
+ vnode.$key$ = null;
148
+ }
149
+ return vnode;
150
+ };
151
+ const Host = {};
152
+ /**
153
+ * Check whether a given node is a Host node or not
154
+ *
155
+ * @param node the virtual DOM node to check
156
+ * @returns whether it's a Host node or not
157
+ */
158
+ const isHost = (node) => node && node.$tag$ === Host;
159
+ /**
160
+ * Parse a new property value for a given property type.
161
+ *
162
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
163
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
164
+ * 1. `any`, the type given to `propValue` in the function signature
165
+ * 2. the type stored from `propType`.
166
+ *
167
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
168
+ *
169
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
170
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
171
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
172
+ * ```tsx
173
+ * <my-cmp prop-val={0}></my-cmp>
174
+ * ```
175
+ *
176
+ * HTML prop values on the other hand, will always a string
177
+ *
178
+ * @param propValue the new value to coerce to some type
179
+ * @param propType the type of the prop, expressed as a binary number
180
+ * @returns the parsed/coerced value
181
+ */
182
+ const parsePropertyValue = (propValue, propType) => {
183
+ // ensure this value is of the correct prop type
184
+ if (propValue != null && !isComplexType(propValue)) {
185
+ if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
186
+ // per the HTML spec, any string value means it is a boolean true value
187
+ // but we'll cheat here and say that the string "false" is the boolean false
188
+ return propValue === 'false' ? false : propValue === '' || !!propValue;
189
+ }
190
+ if (propType & 1 /* MEMBER_FLAGS.String */) {
191
+ // could have been passed as a number or boolean
192
+ // but we still want it as a string
193
+ return String(propValue);
194
+ }
195
+ // redundant return here for better minification
196
+ return propValue;
197
+ }
198
+ // not sure exactly what type we want
199
+ // so no need to change to a different type
200
+ return propValue;
201
+ };
202
+ const getElement = (ref) => (getHostRef(ref).$hostElement$ );
203
+ /**
204
+ * Helper function to create & dispatch a custom Event on a provided target
205
+ * @param elm the target of the Event
206
+ * @param name the name to give the custom Event
207
+ * @param opts options for configuring a custom Event
208
+ * @returns the custom Event
209
+ */
210
+ const emitEvent = (elm, name, opts) => {
211
+ const ev = plt.ce(name, opts);
212
+ elm.dispatchEvent(ev);
213
+ return ev;
214
+ };
215
+ const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
216
+ const registerStyle = (scopeId, cssText, allowCS) => {
217
+ let style = styles.get(scopeId);
218
+ if (supportsConstructableStylesheets && allowCS) {
219
+ style = (style || new CSSStyleSheet());
220
+ if (typeof style === 'string') {
221
+ style = cssText;
222
+ }
223
+ else {
224
+ style.replaceSync(cssText);
225
+ }
226
+ }
227
+ else {
228
+ style = cssText;
229
+ }
230
+ styles.set(scopeId, style);
231
+ };
232
+ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
233
+ var _a;
234
+ let scopeId = getScopeId(cmpMeta);
235
+ const style = styles.get(scopeId);
236
+ // if an element is NOT connected then getRootNode() will return the wrong root node
237
+ // so the fallback is to always use the document for the root node in those cases
238
+ styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
239
+ if (style) {
240
+ if (typeof style === 'string') {
241
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
242
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
243
+ let styleElm;
244
+ if (!appliedStyles) {
245
+ rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
246
+ }
247
+ if (!appliedStyles.has(scopeId)) {
248
+ {
249
+ {
250
+ styleElm = doc.createElement('style');
251
+ styleElm.innerHTML = style;
252
+ }
253
+ // Apply CSP nonce to the style tag if it exists
254
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
255
+ if (nonce != null) {
256
+ styleElm.setAttribute('nonce', nonce);
257
+ }
258
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
259
+ }
260
+ if (appliedStyles) {
261
+ appliedStyles.add(scopeId);
262
+ }
263
+ }
264
+ }
265
+ else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
266
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
267
+ }
268
+ }
269
+ return scopeId;
270
+ };
271
+ const attachStyles = (hostRef) => {
272
+ const cmpMeta = hostRef.$cmpMeta$;
273
+ const elm = hostRef.$hostElement$;
274
+ const flags = cmpMeta.$flags$;
275
+ const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
276
+ const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
277
+ if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
278
+ // only required when we're NOT using native shadow dom (slot)
279
+ // or this browser doesn't support native shadow dom
280
+ // and this host element was NOT created with SSR
281
+ // let's pick out the inner content for slot projection
282
+ // create a node to represent where the original
283
+ // content was first placed, which is useful later on
284
+ // DOM WRITE!!
285
+ elm['s-sc'] = scopeId;
286
+ elm.classList.add(scopeId + '-h');
287
+ }
288
+ endAttachStyles();
289
+ };
290
+ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
291
+ /**
292
+ * Production setAccessor() function based on Preact by
293
+ * Jason Miller (@developit)
294
+ * Licensed under the MIT License
295
+ * https://github.com/developit/preact/blob/master/LICENSE
296
+ *
297
+ * Modified for Stencil's compiler and vdom
298
+ */
299
+ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
300
+ if (oldValue !== newValue) {
301
+ let isProp = isMemberInElement(elm, memberName);
302
+ let ln = memberName.toLowerCase();
303
+ if (memberName === 'class') {
304
+ const classList = elm.classList;
305
+ const oldClasses = parseClassList(oldValue);
306
+ const newClasses = parseClassList(newValue);
307
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
308
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
309
+ }
310
+ else if (memberName === 'style') {
311
+ // update style attribute, css properties and values
312
+ {
313
+ for (const prop in oldValue) {
314
+ if (!newValue || newValue[prop] == null) {
315
+ if (prop.includes('-')) {
316
+ elm.style.removeProperty(prop);
317
+ }
318
+ else {
319
+ elm.style[prop] = '';
320
+ }
321
+ }
322
+ }
323
+ }
324
+ for (const prop in newValue) {
325
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
326
+ if (prop.includes('-')) {
327
+ elm.style.setProperty(prop, newValue[prop]);
328
+ }
329
+ else {
330
+ elm.style[prop] = newValue[prop];
331
+ }
332
+ }
333
+ }
334
+ }
335
+ else if (memberName === 'key')
336
+ ;
337
+ else if (memberName === 'ref') {
338
+ // minifier will clean this up
339
+ if (newValue) {
340
+ newValue(elm);
341
+ }
342
+ }
343
+ else if ((!isProp ) &&
344
+ memberName[0] === 'o' &&
345
+ memberName[1] === 'n') {
346
+ // Event Handlers
347
+ // so if the member name starts with "on" and the 3rd characters is
348
+ // a capital letter, and it's not already a member on the element,
349
+ // then we're assuming it's an event listener
350
+ if (memberName[2] === '-') {
351
+ // on- prefixed events
352
+ // allows to be explicit about the dom event to listen without any magic
353
+ // under the hood:
354
+ // <my-cmp on-click> // listens for "click"
355
+ // <my-cmp on-Click> // listens for "Click"
356
+ // <my-cmp on-ionChange> // listens for "ionChange"
357
+ // <my-cmp on-EVENTS> // listens for "EVENTS"
358
+ memberName = memberName.slice(3);
359
+ }
360
+ else if (isMemberInElement(win, ln)) {
361
+ // standard event
362
+ // the JSX attribute could have been "onMouseOver" and the
363
+ // member name "onmouseover" is on the window's prototype
364
+ // so let's add the listener "mouseover", which is all lowercased
365
+ memberName = ln.slice(2);
366
+ }
367
+ else {
368
+ // custom event
369
+ // the JSX attribute could have been "onMyCustomEvent"
370
+ // so let's trim off the "on" prefix and lowercase the first character
371
+ // and add the listener "myCustomEvent"
372
+ // except for the first character, we keep the event name case
373
+ memberName = ln[2] + memberName.slice(3);
374
+ }
375
+ if (oldValue) {
376
+ plt.rel(elm, memberName, oldValue, false);
377
+ }
378
+ if (newValue) {
379
+ plt.ael(elm, memberName, newValue, false);
380
+ }
381
+ }
382
+ else {
383
+ // Set property if it exists and it's not a SVG
384
+ const isComplex = isComplexType(newValue);
385
+ if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
386
+ try {
387
+ if (!elm.tagName.includes('-')) {
388
+ const n = newValue == null ? '' : newValue;
389
+ // Workaround for Safari, moving the <input> caret when re-assigning the same valued
390
+ if (memberName === 'list') {
391
+ isProp = false;
392
+ }
393
+ else if (oldValue == null || elm[memberName] != n) {
394
+ elm[memberName] = n;
395
+ }
396
+ }
397
+ else {
398
+ elm[memberName] = newValue;
399
+ }
400
+ }
401
+ catch (e) { }
402
+ }
403
+ if (newValue == null || newValue === false) {
404
+ if (newValue !== false || elm.getAttribute(memberName) === '') {
405
+ {
406
+ elm.removeAttribute(memberName);
407
+ }
408
+ }
409
+ }
410
+ else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
411
+ newValue = newValue === true ? '' : newValue;
412
+ {
413
+ elm.setAttribute(memberName, newValue);
414
+ }
415
+ }
416
+ }
417
+ }
418
+ };
419
+ const parseClassListRegex = /\s/;
420
+ const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
421
+ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
422
+ // if the element passed in is a shadow root, which is a document fragment
423
+ // then we want to be adding attrs/props to the shadow root's "host" element
424
+ // if it's not a shadow root, then we add attrs/props to the same element
425
+ const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
426
+ ? newVnode.$elm$.host
427
+ : newVnode.$elm$;
428
+ const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
429
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
430
+ {
431
+ // remove attributes no longer present on the vnode by setting them to undefined
432
+ for (memberName in oldVnodeAttrs) {
433
+ if (!(memberName in newVnodeAttrs)) {
434
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
435
+ }
436
+ }
437
+ }
438
+ // add new & update changed attributes
439
+ for (memberName in newVnodeAttrs) {
440
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
441
+ }
442
+ };
443
+ /**
444
+ * Create a DOM Node corresponding to one of the children of a given VNode.
445
+ *
446
+ * @param oldParentVNode the parent VNode from the previous render
447
+ * @param newParentVNode the parent VNode from the current render
448
+ * @param childIndex the index of the VNode, in the _new_ parent node's
449
+ * children, for which we will create a new DOM node
450
+ * @param parentElm the parent DOM node which our new node will be a child of
451
+ * @returns the newly created node
452
+ */
453
+ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
454
+ // tslint:disable-next-line: prefer-const
455
+ const newVNode = newParentVNode.$children$[childIndex];
456
+ let i = 0;
457
+ let elm;
458
+ let childNode;
459
+ if (newVNode.$text$ !== null) {
460
+ // create text node
461
+ elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
462
+ }
463
+ else {
464
+ if (!isSvgMode) {
465
+ isSvgMode = newVNode.$tag$ === 'svg';
466
+ }
467
+ // create element
468
+ elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$tag$)
469
+ );
470
+ if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
471
+ isSvgMode = false;
472
+ }
473
+ // add css classes, attrs, props, listeners, etc.
474
+ {
475
+ updateElement(null, newVNode, isSvgMode);
476
+ }
477
+ if (isDef(scopeId) && elm['s-si'] !== scopeId) {
478
+ // if there is a scopeId and this is the initial render
479
+ // then let's add the scopeId as a css class
480
+ elm.classList.add((elm['s-si'] = scopeId));
481
+ }
482
+ if (newVNode.$children$) {
483
+ for (i = 0; i < newVNode.$children$.length; ++i) {
484
+ // create the node
485
+ childNode = createElm(oldParentVNode, newVNode, i);
486
+ // return node could have been null
487
+ if (childNode) {
488
+ // append our new node
489
+ elm.appendChild(childNode);
490
+ }
491
+ }
492
+ }
493
+ {
494
+ if (newVNode.$tag$ === 'svg') {
495
+ // Only reset the SVG context when we're exiting <svg> element
496
+ isSvgMode = false;
497
+ }
498
+ else if (elm.tagName === 'foreignObject') {
499
+ // Reenter SVG context when we're exiting <foreignObject> element
500
+ isSvgMode = true;
501
+ }
502
+ }
503
+ }
504
+ return elm;
505
+ };
506
+ /**
507
+ * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
508
+ * add them to the DOM in the appropriate place.
509
+ *
510
+ * @param parentElm the DOM node which should be used as a parent for the new
511
+ * DOM nodes
512
+ * @param before a child of the `parentElm` which the new children should be
513
+ * inserted before (optional)
514
+ * @param parentVNode the parent virtual DOM node
515
+ * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
516
+ * @param startIdx the index in the child virtual DOM nodes at which to start
517
+ * creating DOM nodes (inclusive)
518
+ * @param endIdx the index in the child virtual DOM nodes at which to stop
519
+ * creating DOM nodes (inclusive)
520
+ */
521
+ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
522
+ let containerElm = (parentElm);
523
+ let childNode;
524
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
525
+ containerElm = containerElm.shadowRoot;
526
+ }
527
+ for (; startIdx <= endIdx; ++startIdx) {
528
+ if (vnodes[startIdx]) {
529
+ childNode = createElm(null, parentVNode, startIdx);
530
+ if (childNode) {
531
+ vnodes[startIdx].$elm$ = childNode;
532
+ containerElm.insertBefore(childNode, before);
533
+ }
534
+ }
535
+ }
536
+ };
537
+ /**
538
+ * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
539
+ * This can be used to, for instance, clean up after a list of children which
540
+ * should no longer be shown.
541
+ *
542
+ * This function also handles some of Stencil's slot relocation logic.
543
+ *
544
+ * @param vnodes a list of virtual DOM nodes to remove
545
+ * @param startIdx the index at which to start removing nodes (inclusive)
546
+ * @param endIdx the index at which to stop removing nodes (inclusive)
547
+ * @param vnode a VNode
548
+ * @param elm an element
549
+ */
550
+ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
551
+ for (; startIdx <= endIdx; ++startIdx) {
552
+ if ((vnode = vnodes[startIdx])) {
553
+ elm = vnode.$elm$;
554
+ callNodeRefs(vnode);
555
+ // remove the vnode's element from the dom
556
+ elm.remove();
557
+ }
558
+ }
559
+ };
560
+ /**
561
+ * Reconcile the children of a new VNode with the children of an old VNode by
562
+ * traversing the two collections of children, identifying nodes that are
563
+ * conserved or changed, calling out to `patch` to make any necessary
564
+ * updates to the DOM, and rearranging DOM nodes as needed.
565
+ *
566
+ * The algorithm for reconciling children works by analyzing two 'windows' onto
567
+ * the two arrays of children (`oldCh` and `newCh`). We keep track of the
568
+ * 'windows' by storing start and end indices and references to the
569
+ * corresponding array entries. Initially the two 'windows' are basically equal
570
+ * to the entire array, but we progressively narrow the windows until there are
571
+ * no children left to update by doing the following:
572
+ *
573
+ * 1. Skip any `null` entries at the beginning or end of the two arrays, so
574
+ * that if we have an initial array like the following we'll end up dealing
575
+ * only with a window bounded by the highlighted elements:
576
+ *
577
+ * [null, null, VNode1 , ... , VNode2, null, null]
578
+ * ^^^^^^ ^^^^^^
579
+ *
580
+ * 2. Check to see if the elements at the head and tail positions are equal
581
+ * across the windows. This will basically detect elements which haven't
582
+ * been added, removed, or changed position, i.e. if you had the following
583
+ * VNode elements (represented as HTML):
584
+ *
585
+ * oldVNode: `<div><p><span>HEY</span></p></div>`
586
+ * newVNode: `<div><p><span>THERE</span></p></div>`
587
+ *
588
+ * Then when comparing the children of the `<div>` tag we check the equality
589
+ * of the VNodes corresponding to the `<p>` tags and, since they are the
590
+ * same tag in the same position, we'd be able to avoid completely
591
+ * re-rendering the subtree under them with a new DOM element and would just
592
+ * call out to `patch` to handle reconciling their children and so on.
593
+ *
594
+ * 3. Check, for both windows, to see if the element at the beginning of the
595
+ * window corresponds to the element at the end of the other window. This is
596
+ * a heuristic which will let us identify _some_ situations in which
597
+ * elements have changed position, for instance it _should_ detect that the
598
+ * children nodes themselves have not changed but merely moved in the
599
+ * following example:
600
+ *
601
+ * oldVNode: `<div><element-one /><element-two /></div>`
602
+ * newVNode: `<div><element-two /><element-one /></div>`
603
+ *
604
+ * If we find cases like this then we also need to move the concrete DOM
605
+ * elements corresponding to the moved children to write the re-order to the
606
+ * DOM.
607
+ *
608
+ * 4. Finally, if VNodes have the `key` attribute set on them we check for any
609
+ * nodes in the old children which have the same key as the first element in
610
+ * our window on the new children. If we find such a node we handle calling
611
+ * out to `patch`, moving relevant DOM nodes, and so on, in accordance with
612
+ * what we find.
613
+ *
614
+ * Finally, once we've narrowed our 'windows' to the point that either of them
615
+ * collapse (i.e. they have length 0) we then handle any remaining VNode
616
+ * insertion or deletion that needs to happen to get a DOM state that correctly
617
+ * reflects the new child VNodes. If, for instance, after our window on the old
618
+ * children has collapsed we still have more nodes on the new children that
619
+ * we haven't dealt with yet then we need to add them, or if the new children
620
+ * collapse but we still have unhandled _old_ children then we need to make
621
+ * sure the corresponding DOM nodes are removed.
622
+ *
623
+ * @param parentElm the node into which the parent VNode is rendered
624
+ * @param oldCh the old children of the parent node
625
+ * @param newVNode the new VNode which will replace the parent
626
+ * @param newCh the new children of the parent node
627
+ */
628
+ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
629
+ let oldStartIdx = 0;
630
+ let newStartIdx = 0;
631
+ let idxInOld = 0;
632
+ let i = 0;
633
+ let oldEndIdx = oldCh.length - 1;
634
+ let oldStartVnode = oldCh[0];
635
+ let oldEndVnode = oldCh[oldEndIdx];
636
+ let newEndIdx = newCh.length - 1;
637
+ let newStartVnode = newCh[0];
638
+ let newEndVnode = newCh[newEndIdx];
639
+ let node;
640
+ let elmToMove;
641
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
642
+ if (oldStartVnode == null) {
643
+ // VNode might have been moved left
644
+ oldStartVnode = oldCh[++oldStartIdx];
645
+ }
646
+ else if (oldEndVnode == null) {
647
+ oldEndVnode = oldCh[--oldEndIdx];
648
+ }
649
+ else if (newStartVnode == null) {
650
+ newStartVnode = newCh[++newStartIdx];
651
+ }
652
+ else if (newEndVnode == null) {
653
+ newEndVnode = newCh[--newEndIdx];
654
+ }
655
+ else if (isSameVnode(oldStartVnode, newStartVnode)) {
656
+ // if the start nodes are the same then we should patch the new VNode
657
+ // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
658
+ // indices to reflect that. We don't need to move any DOM Nodes around
659
+ // since things are matched up in order.
660
+ patch(oldStartVnode, newStartVnode);
661
+ oldStartVnode = oldCh[++oldStartIdx];
662
+ newStartVnode = newCh[++newStartIdx];
663
+ }
664
+ else if (isSameVnode(oldEndVnode, newEndVnode)) {
665
+ // likewise, if the end nodes are the same we patch new onto old and
666
+ // decrement our end indices, and also likewise in this case we don't
667
+ // need to move any DOM Nodes.
668
+ patch(oldEndVnode, newEndVnode);
669
+ oldEndVnode = oldCh[--oldEndIdx];
670
+ newEndVnode = newCh[--newEndIdx];
671
+ }
672
+ else if (isSameVnode(oldStartVnode, newEndVnode)) {
673
+ patch(oldStartVnode, newEndVnode);
674
+ // We need to move the element for `oldStartVnode` into a position which
675
+ // will be appropriate for `newEndVnode`. For this we can use
676
+ // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
677
+ // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
678
+ // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
679
+ //
680
+ // <old-start-node />
681
+ // <some-intervening-node />
682
+ // <old-end-node />
683
+ // <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
684
+ // <next-sibling />
685
+ //
686
+ // If instead `oldEndVnode.$elm$` has no sibling then we just want to put
687
+ // the node for `oldStartVnode` at the end of the children of
688
+ // `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
689
+ // aren't any siblings, and passing `null` to `Node.insertBefore` will
690
+ // append it to the children of the parent element.
691
+ parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
692
+ oldStartVnode = oldCh[++oldStartIdx];
693
+ newEndVnode = newCh[--newEndIdx];
694
+ }
695
+ else if (isSameVnode(oldEndVnode, newStartVnode)) {
696
+ patch(oldEndVnode, newStartVnode);
697
+ // We've already checked above if `oldStartVnode` and `newStartVnode` are
698
+ // the same node, so since we're here we know that they are not. Thus we
699
+ // can move the element for `oldEndVnode` _before_ the element for
700
+ // `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
701
+ // future.
702
+ parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
703
+ oldEndVnode = oldCh[--oldEndIdx];
704
+ newStartVnode = newCh[++newStartIdx];
705
+ }
706
+ else {
707
+ // Here we do some checks to match up old and new nodes based on the
708
+ // `$key$` attribute, which is set by putting a `key="my-key"` attribute
709
+ // in the JSX for a DOM element in the implementation of a Stencil
710
+ // component.
711
+ //
712
+ // First we check to see if there are any nodes in the array of old
713
+ // children which have the same key as the first node in the new
714
+ // children.
715
+ idxInOld = -1;
716
+ {
717
+ for (i = oldStartIdx; i <= oldEndIdx; ++i) {
718
+ if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
719
+ idxInOld = i;
720
+ break;
721
+ }
722
+ }
723
+ }
724
+ if (idxInOld >= 0) {
725
+ // We found a node in the old children which matches up with the first
726
+ // node in the new children! So let's deal with that
727
+ elmToMove = oldCh[idxInOld];
728
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
729
+ // the tag doesn't match so we'll need a new DOM element
730
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
731
+ }
732
+ else {
733
+ patch(elmToMove, newStartVnode);
734
+ // invalidate the matching old node so that we won't try to update it
735
+ // again later on
736
+ oldCh[idxInOld] = undefined;
737
+ node = elmToMove.$elm$;
738
+ }
739
+ newStartVnode = newCh[++newStartIdx];
740
+ }
741
+ else {
742
+ // We either didn't find an element in the old children that matches
743
+ // the key of the first new child OR the build is not using `key`
744
+ // attributes at all. In either case we need to create a new element
745
+ // for the new node.
746
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
747
+ newStartVnode = newCh[++newStartIdx];
748
+ }
749
+ if (node) {
750
+ // if we created a new node then handle inserting it to the DOM
751
+ {
752
+ oldStartVnode.$elm$.parentNode.insertBefore(node, oldStartVnode.$elm$);
753
+ }
754
+ }
755
+ }
756
+ }
757
+ if (oldStartIdx > oldEndIdx) {
758
+ // we have some more new nodes to add which don't match up with old nodes
759
+ addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
760
+ }
761
+ else if (newStartIdx > newEndIdx) {
762
+ // there are nodes in the `oldCh` array which no longer correspond to nodes
763
+ // in the new array, so lets remove them (which entails cleaning up the
764
+ // relevant DOM nodes)
765
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
766
+ }
767
+ };
768
+ /**
769
+ * Compare two VNodes to determine if they are the same
770
+ *
771
+ * **NB**: This function is an equality _heuristic_ based on the available
772
+ * information set on the two VNodes and can be misleading under certain
773
+ * circumstances. In particular, if the two nodes do not have `key` attrs
774
+ * (available under `$key$` on VNodes) then the function falls back on merely
775
+ * checking that they have the same tag.
776
+ *
777
+ * So, in other words, if `key` attrs are not set on VNodes which may be
778
+ * changing order within a `children` array or something along those lines then
779
+ * we could obtain a false negative and then have to do needless re-rendering
780
+ * (i.e. we'd say two VNodes aren't equal when in fact they should be).
781
+ *
782
+ * @param leftVNode the first VNode to check
783
+ * @param rightVNode the second VNode to check
784
+ * @returns whether they're equal or not
785
+ */
786
+ const isSameVnode = (leftVNode, rightVNode) => {
787
+ // compare if two vnode to see if they're "technically" the same
788
+ // need to have the same element tag, and same key to be the same
789
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
790
+ // this will be set if components in the build have `key` attrs set on them
791
+ {
792
+ return leftVNode.$key$ === rightVNode.$key$;
793
+ }
794
+ }
795
+ return false;
796
+ };
797
+ /**
798
+ * Handle reconciling an outdated VNode with a new one which corresponds to
799
+ * it. This function handles flushing updates to the DOM and reconciling the
800
+ * children of the two nodes (if any).
801
+ *
802
+ * @param oldVNode an old VNode whose DOM element and children we want to update
803
+ * @param newVNode a new VNode representing an updated version of the old one
804
+ */
805
+ const patch = (oldVNode, newVNode) => {
806
+ const elm = (newVNode.$elm$ = oldVNode.$elm$);
807
+ const oldChildren = oldVNode.$children$;
808
+ const newChildren = newVNode.$children$;
809
+ const tag = newVNode.$tag$;
810
+ const text = newVNode.$text$;
811
+ if (text === null) {
812
+ {
813
+ // test if we're rendering an svg element, or still rendering nodes inside of one
814
+ // only add this to the when the compiler sees we're using an svg somewhere
815
+ isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
816
+ }
817
+ {
818
+ if (tag === 'slot')
819
+ ;
820
+ else {
821
+ // either this is the first render of an element OR it's an update
822
+ // AND we already know it's possible it could have changed
823
+ // this updates the element's css classes, attrs, props, listeners, etc.
824
+ updateElement(oldVNode, newVNode, isSvgMode);
825
+ }
826
+ }
827
+ if (oldChildren !== null && newChildren !== null) {
828
+ // looks like there's child vnodes for both the old and new vnodes
829
+ // so we need to call `updateChildren` to reconcile them
830
+ updateChildren(elm, oldChildren, newVNode, newChildren);
831
+ }
832
+ else if (newChildren !== null) {
833
+ // no old child vnodes, but there are new child vnodes to add
834
+ if (oldVNode.$text$ !== null) {
835
+ // the old vnode was text, so be sure to clear it out
836
+ elm.textContent = '';
837
+ }
838
+ // add the new vnode children
839
+ addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
840
+ }
841
+ else if (oldChildren !== null) {
842
+ // no new child vnodes, but there are old child vnodes to remove
843
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
844
+ }
845
+ if (isSvgMode && tag === 'svg') {
846
+ isSvgMode = false;
847
+ }
848
+ }
849
+ else if (oldVNode.$text$ !== text) {
850
+ // update the text content for the text only vnode
851
+ // and also only if the text is different than before
852
+ elm.data = text;
853
+ }
854
+ };
855
+ const callNodeRefs = (vNode) => {
856
+ {
857
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
858
+ vNode.$children$ && vNode.$children$.map(callNodeRefs);
859
+ }
860
+ };
861
+ /**
862
+ * The main entry point for Stencil's virtual DOM-based rendering engine
863
+ *
864
+ * Given a {@link d.HostRef} container and some virtual DOM nodes, this
865
+ * function will handle creating a virtual DOM tree with a single root, patching
866
+ * the current virtual DOM tree onto an old one (if any), dealing with slot
867
+ * relocation, and reflecting attributes.
868
+ *
869
+ * @param hostRef data needed to root and render the virtual DOM tree, such as
870
+ * the DOM node into which it should be rendered.
871
+ * @param renderFnResults the virtual DOM nodes to be rendered
872
+ */
873
+ const renderVdom = (hostRef, renderFnResults) => {
874
+ const hostElm = hostRef.$hostElement$;
875
+ const cmpMeta = hostRef.$cmpMeta$;
876
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
877
+ const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
878
+ hostTagName = hostElm.tagName;
879
+ if (cmpMeta.$attrsToReflect$) {
880
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
881
+ cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
882
+ }
883
+ rootVnode.$tag$ = null;
884
+ rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
885
+ hostRef.$vnode$ = rootVnode;
886
+ rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
887
+ {
888
+ scopeId = hostElm['s-sc'];
889
+ }
890
+ // synchronous patch
891
+ patch(oldVNode, rootVnode);
892
+ };
893
+ const attachToAncestor = (hostRef, ancestorComponent) => {
894
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
895
+ ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
896
+ }
897
+ };
898
+ const scheduleUpdate = (hostRef, isInitialLoad) => {
899
+ {
900
+ hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
901
+ }
902
+ if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
903
+ hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
904
+ return;
905
+ }
906
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
907
+ // there is no ancestor component or the ancestor component
908
+ // has already fired off its lifecycle update then
909
+ // fire off the initial update
910
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
911
+ return writeTask(dispatch) ;
912
+ };
913
+ const dispatchHooks = (hostRef, isInitialLoad) => {
914
+ const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
915
+ const instance = hostRef.$lazyInstance$ ;
916
+ let promise;
917
+ if (isInitialLoad) {
918
+ {
919
+ promise = safeCall(instance, 'componentWillLoad');
920
+ }
921
+ }
922
+ endSchedule();
923
+ return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
924
+ };
925
+ const updateComponent = async (hostRef, instance, isInitialLoad) => {
926
+ // updateComponent
927
+ const elm = hostRef.$hostElement$;
928
+ const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
929
+ const rc = elm['s-rc'];
930
+ if (isInitialLoad) {
931
+ // DOM WRITE!
932
+ attachStyles(hostRef);
933
+ }
934
+ const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
935
+ {
936
+ callRender(hostRef, instance);
937
+ }
938
+ if (rc) {
939
+ // ok, so turns out there are some child host elements
940
+ // waiting on this parent element to load
941
+ // let's fire off all update callbacks waiting
942
+ rc.map((cb) => cb());
943
+ elm['s-rc'] = undefined;
944
+ }
945
+ endRender();
946
+ endUpdate();
947
+ {
948
+ const childrenPromises = elm['s-p'];
949
+ const postUpdate = () => postUpdateComponent(hostRef);
950
+ if (childrenPromises.length === 0) {
951
+ postUpdate();
952
+ }
953
+ else {
954
+ Promise.all(childrenPromises).then(postUpdate);
955
+ hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
956
+ childrenPromises.length = 0;
957
+ }
958
+ }
959
+ };
960
+ const callRender = (hostRef, instance, elm) => {
961
+ try {
962
+ instance = instance.render() ;
963
+ {
964
+ hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
965
+ }
966
+ {
967
+ hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
968
+ }
969
+ {
970
+ {
971
+ // looks like we've got child nodes to render into this host element
972
+ // or we need to update the css class/attrs on the host element
973
+ // DOM WRITE!
974
+ {
975
+ renderVdom(hostRef, instance);
976
+ }
977
+ }
978
+ }
979
+ }
980
+ catch (e) {
981
+ consoleError(e, hostRef.$hostElement$);
982
+ }
983
+ return null;
984
+ };
985
+ const postUpdateComponent = (hostRef) => {
986
+ const tagName = hostRef.$cmpMeta$.$tagName$;
987
+ const elm = hostRef.$hostElement$;
988
+ const endPostUpdate = createTime('postUpdate', tagName);
989
+ const instance = hostRef.$lazyInstance$ ;
990
+ const ancestorComponent = hostRef.$ancestorComponent$;
991
+ if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
992
+ hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
993
+ {
994
+ // DOM WRITE!
995
+ addHydratedFlag(elm);
996
+ }
997
+ {
998
+ safeCall(instance, 'componentDidLoad');
999
+ }
1000
+ endPostUpdate();
1001
+ {
1002
+ hostRef.$onReadyResolve$(elm);
1003
+ if (!ancestorComponent) {
1004
+ appDidLoad();
1005
+ }
1006
+ }
1007
+ }
1008
+ else {
1009
+ endPostUpdate();
1010
+ }
1011
+ // load events fire from bottom to top
1012
+ // the deepest elements load first then bubbles up
1013
+ {
1014
+ if (hostRef.$onRenderResolve$) {
1015
+ hostRef.$onRenderResolve$();
1016
+ hostRef.$onRenderResolve$ = undefined;
1017
+ }
1018
+ if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
1019
+ nextTick(() => scheduleUpdate(hostRef, false));
1020
+ }
1021
+ hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
1022
+ }
1023
+ // ( •_•)
1024
+ // ( •_•)>⌐■-■
1025
+ // (⌐■_■)
1026
+ };
1027
+ const appDidLoad = (who) => {
1028
+ // on appload
1029
+ // we have finish the first big initial render
1030
+ {
1031
+ addHydratedFlag(doc.documentElement);
1032
+ }
1033
+ nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1034
+ };
1035
+ const safeCall = (instance, method, arg) => {
1036
+ if (instance && instance[method]) {
1037
+ try {
1038
+ return instance[method](arg);
1039
+ }
1040
+ catch (e) {
1041
+ consoleError(e);
1042
+ }
1043
+ }
1044
+ return undefined;
1045
+ };
1046
+ const then = (promise, thenFn) => {
1047
+ return promise && promise.then ? promise.then(thenFn) : thenFn();
1048
+ };
1049
+ const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1050
+ ;
1051
+ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1052
+ const setValue = (ref, propName, newVal, cmpMeta) => {
1053
+ // check our new property value against our internal value
1054
+ const hostRef = getHostRef(ref);
1055
+ const oldVal = hostRef.$instanceValues$.get(propName);
1056
+ const flags = hostRef.$flags$;
1057
+ const instance = hostRef.$lazyInstance$ ;
1058
+ newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1059
+ // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1060
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1061
+ const didValueChange = newVal !== oldVal && !areBothNaN;
1062
+ if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1063
+ // gadzooks! the property's value has changed!!
1064
+ // set our new value!
1065
+ hostRef.$instanceValues$.set(propName, newVal);
1066
+ if (instance) {
1067
+ if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1068
+ // looks like this value actually changed, so we've got work to do!
1069
+ // but only if we've already rendered, otherwise just chill out
1070
+ // queue that we need to do an update, but don't worry about queuing
1071
+ // up millions cuz this function ensures it only runs once
1072
+ scheduleUpdate(hostRef, false);
1073
+ }
1074
+ }
1075
+ }
1076
+ };
1077
+ /**
1078
+ * Attach a series of runtime constructs to a compiled Stencil component
1079
+ * constructor, including getters and setters for the `@Prop` and `@State`
1080
+ * decorators, callbacks for when attributes change, and so on.
1081
+ *
1082
+ * @param Cstr the constructor for a component that we need to process
1083
+ * @param cmpMeta metadata collected previously about the component
1084
+ * @param flags a number used to store a series of bit flags
1085
+ * @returns a reference to the same constructor passed in (but now mutated)
1086
+ */
1087
+ const proxyComponent = (Cstr, cmpMeta, flags) => {
1088
+ if (cmpMeta.$members$) {
1089
+ // It's better to have a const than two Object.entries()
1090
+ const members = Object.entries(cmpMeta.$members$);
1091
+ const prototype = Cstr.prototype;
1092
+ members.map(([memberName, [memberFlags]]) => {
1093
+ if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1094
+ ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1095
+ // proxyComponent - prop
1096
+ Object.defineProperty(prototype, memberName, {
1097
+ get() {
1098
+ // proxyComponent, get value
1099
+ return getValue(this, memberName);
1100
+ },
1101
+ set(newValue) {
1102
+ // proxyComponent, set value
1103
+ setValue(this, memberName, newValue, cmpMeta);
1104
+ },
1105
+ configurable: true,
1106
+ enumerable: true,
1107
+ });
1108
+ }
1109
+ });
1110
+ if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1111
+ const attrNameToPropName = new Map();
1112
+ prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1113
+ plt.jmp(() => {
1114
+ const propName = attrNameToPropName.get(attrName);
1115
+ // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1116
+ // in the case where an attribute was set inline.
1117
+ // ```html
1118
+ // <my-component some-attribute="some-value"></my-component>
1119
+ // ```
1120
+ //
1121
+ // There is an edge case where a developer sets the attribute inline on a custom element and then
1122
+ // programmatically changes it before it has been upgraded as shown below:
1123
+ //
1124
+ // ```html
1125
+ // <!-- this component has _not_ been upgraded yet -->
1126
+ // <my-component id="test" some-attribute="some-value"></my-component>
1127
+ // <script>
1128
+ // // grab non-upgraded component
1129
+ // el = document.querySelector("#test");
1130
+ // el.someAttribute = "another-value";
1131
+ // // upgrade component
1132
+ // customElements.define('my-component', MyComponent);
1133
+ // </script>
1134
+ // ```
1135
+ // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
1136
+ // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1137
+ // to the value that was set inline i.e. "some-value" from above example. When
1138
+ // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
1139
+ //
1140
+ // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
1141
+ // by connectedCallback as this attributeChangedCallback will not fire.
1142
+ //
1143
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1144
+ //
1145
+ // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1146
+ // properties here given that this goes against best practices outlined here
1147
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1148
+ if (this.hasOwnProperty(propName)) {
1149
+ newValue = this[propName];
1150
+ delete this[propName];
1151
+ }
1152
+ else if (prototype.hasOwnProperty(propName) &&
1153
+ typeof this[propName] === 'number' &&
1154
+ this[propName] == newValue) {
1155
+ // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1156
+ // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1157
+ // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1158
+ return;
1159
+ }
1160
+ this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1161
+ });
1162
+ };
1163
+ // create an array of attributes to observe
1164
+ // and also create a map of html attribute name to js property name
1165
+ Cstr.observedAttributes = members
1166
+ .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
1167
+ .map(([propName, m]) => {
1168
+ const attrName = m[1] || propName;
1169
+ attrNameToPropName.set(attrName, propName);
1170
+ if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1171
+ cmpMeta.$attrsToReflect$.push([propName, attrName]);
1172
+ }
1173
+ return attrName;
1174
+ });
1175
+ }
1176
+ }
1177
+ return Cstr;
1178
+ };
1179
+ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1180
+ // initializeComponent
1181
+ if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1182
+ {
1183
+ // we haven't initialized this element yet
1184
+ hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1185
+ // lazy loaded components
1186
+ // request the component's implementation to be
1187
+ // wired up with the host element
1188
+ Cstr = loadModule(cmpMeta);
1189
+ if (Cstr.then) {
1190
+ // Await creates a micro-task avoid if possible
1191
+ const endLoad = uniqueTime();
1192
+ Cstr = await Cstr;
1193
+ endLoad();
1194
+ }
1195
+ if (!Cstr.isProxied) {
1196
+ proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1197
+ Cstr.isProxied = true;
1198
+ }
1199
+ const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
1200
+ // ok, time to construct the instance
1201
+ // but let's keep track of when we start and stop
1202
+ // so that the getters/setters don't incorrectly step on data
1203
+ {
1204
+ hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
1205
+ }
1206
+ // construct the lazy-loaded component implementation
1207
+ // passing the hostRef is very important during
1208
+ // construction in order to directly wire together the
1209
+ // host element and the lazy-loaded instance
1210
+ try {
1211
+ new Cstr(hostRef);
1212
+ }
1213
+ catch (e) {
1214
+ consoleError(e);
1215
+ }
1216
+ {
1217
+ hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1218
+ }
1219
+ endNewInstance();
1220
+ fireConnectedCallback(hostRef.$lazyInstance$);
1221
+ }
1222
+ if (Cstr.style) {
1223
+ // this component has styles but we haven't registered them yet
1224
+ let style = Cstr.style;
1225
+ const scopeId = getScopeId(cmpMeta);
1226
+ if (!styles.has(scopeId)) {
1227
+ const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1228
+ registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
1229
+ endRegisterStyles();
1230
+ }
1231
+ }
1232
+ }
1233
+ // we've successfully created a lazy instance
1234
+ const ancestorComponent = hostRef.$ancestorComponent$;
1235
+ const schedule = () => scheduleUpdate(hostRef, true);
1236
+ if (ancestorComponent && ancestorComponent['s-rc']) {
1237
+ // this is the initial load and this component it has an ancestor component
1238
+ // but the ancestor component has NOT fired its will update lifecycle yet
1239
+ // so let's just cool our jets and wait for the ancestor to continue first
1240
+ // this will get fired off when the ancestor component
1241
+ // finally gets around to rendering its lazy self
1242
+ // fire off the initial update
1243
+ ancestorComponent['s-rc'].push(schedule);
1244
+ }
1245
+ else {
1246
+ schedule();
1247
+ }
1248
+ };
1249
+ const fireConnectedCallback = (instance) => {
1250
+ {
1251
+ safeCall(instance, 'connectedCallback');
1252
+ }
1253
+ };
1254
+ const connectedCallback = (elm) => {
1255
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1256
+ const hostRef = getHostRef(elm);
1257
+ const cmpMeta = hostRef.$cmpMeta$;
1258
+ const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1259
+ if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
1260
+ // first time this component has connected
1261
+ hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
1262
+ {
1263
+ // find the first ancestor component (if there is one) and register
1264
+ // this component as one of the actively loading child components for its ancestor
1265
+ let ancestorComponent = elm;
1266
+ while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
1267
+ // climb up the ancestors looking for the first
1268
+ // component that hasn't finished its lifecycle update yet
1269
+ if (ancestorComponent['s-p']) {
1270
+ // we found this components first ancestor component
1271
+ // keep a reference to this component's ancestor component
1272
+ attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
1273
+ break;
1274
+ }
1275
+ }
1276
+ }
1277
+ // Lazy properties
1278
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1279
+ if (cmpMeta.$members$) {
1280
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1281
+ if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
1282
+ const value = elm[memberName];
1283
+ delete elm[memberName];
1284
+ elm[memberName] = value;
1285
+ }
1286
+ });
1287
+ }
1288
+ {
1289
+ initializeComponent(elm, hostRef, cmpMeta);
1290
+ }
1291
+ }
1292
+ else {
1293
+ // fire off connectedCallback() on component instance
1294
+ fireConnectedCallback(hostRef.$lazyInstance$);
1295
+ }
1296
+ endConnected();
1297
+ }
1298
+ };
1299
+ const disconnectedCallback = (elm) => {
1300
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1301
+ const hostRef = getHostRef(elm);
1302
+ const instance = hostRef.$lazyInstance$ ;
1303
+ {
1304
+ safeCall(instance, 'disconnectedCallback');
1305
+ }
1306
+ }
1307
+ };
1308
+ const bootstrapLazy = (lazyBundles, options = {}) => {
1309
+ var _a;
1310
+ const endBootstrap = createTime();
1311
+ const cmpTags = [];
1312
+ const exclude = options.exclude || [];
1313
+ const customElements = win.customElements;
1314
+ const head = doc.head;
1315
+ const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1316
+ const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
1317
+ const deferredConnectedCallbacks = [];
1318
+ let appLoadFallback;
1319
+ let isBootstrapping = true;
1320
+ Object.assign(plt, options);
1321
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1322
+ lazyBundles.map((lazyBundle) => {
1323
+ lazyBundle[1].map((compactMeta) => {
1324
+ const cmpMeta = {
1325
+ $flags$: compactMeta[0],
1326
+ $tagName$: compactMeta[1],
1327
+ $members$: compactMeta[2],
1328
+ $listeners$: compactMeta[3],
1329
+ };
1330
+ {
1331
+ cmpMeta.$members$ = compactMeta[2];
1332
+ }
1333
+ {
1334
+ cmpMeta.$attrsToReflect$ = [];
1335
+ }
1336
+ const tagName = cmpMeta.$tagName$;
1337
+ const HostElement = class extends HTMLElement {
1338
+ // StencilLazyHost
1339
+ constructor(self) {
1340
+ // @ts-ignore
1341
+ super(self);
1342
+ self = this;
1343
+ registerHost(self, cmpMeta);
1344
+ if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
1345
+ // this component is using shadow dom
1346
+ // and this browser supports shadow dom
1347
+ // add the read-only property "shadowRoot" to the host element
1348
+ // adding the shadow root build conditionals to minimize runtime
1349
+ {
1350
+ {
1351
+ self.attachShadow({ mode: 'open' });
1352
+ }
1353
+ }
1354
+ }
1355
+ }
1356
+ connectedCallback() {
1357
+ if (appLoadFallback) {
1358
+ clearTimeout(appLoadFallback);
1359
+ appLoadFallback = null;
1360
+ }
1361
+ if (isBootstrapping) {
1362
+ // connectedCallback will be processed once all components have been registered
1363
+ deferredConnectedCallbacks.push(this);
1364
+ }
1365
+ else {
1366
+ plt.jmp(() => connectedCallback(this));
1367
+ }
1368
+ }
1369
+ disconnectedCallback() {
1370
+ plt.jmp(() => disconnectedCallback(this));
1371
+ }
1372
+ componentOnReady() {
1373
+ return getHostRef(this).$onReadyPromise$;
1374
+ }
1375
+ };
1376
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
1377
+ if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1378
+ cmpTags.push(tagName);
1379
+ customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
1380
+ }
1381
+ });
1382
+ });
1383
+ {
1384
+ visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1385
+ visibilityStyle.setAttribute('data-styles', '');
1386
+ // Apply CSP nonce to the style tag if it exists
1387
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1388
+ if (nonce != null) {
1389
+ visibilityStyle.setAttribute('nonce', nonce);
1390
+ }
1391
+ head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1392
+ }
1393
+ // Process deferred connectedCallbacks now all components have been registered
1394
+ isBootstrapping = false;
1395
+ if (deferredConnectedCallbacks.length) {
1396
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
1397
+ }
1398
+ else {
1399
+ {
1400
+ plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
1401
+ }
1402
+ }
1403
+ // Fallback appLoad event
1404
+ endBootstrap();
1405
+ };
1406
+ /**
1407
+ * Assigns the given value to the nonce property on the runtime platform object.
1408
+ * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
1409
+ * @param nonce The value to be assigned to the platform nonce property.
1410
+ * @returns void
1411
+ */
1412
+ const setNonce = (nonce) => (plt.$nonce$ = nonce);
1413
+ const hostRefs = /*@__PURE__*/ new WeakMap();
1414
+ const getHostRef = (ref) => hostRefs.get(ref);
1415
+ const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1416
+ const registerHost = (elm, cmpMeta) => {
1417
+ const hostRef = {
1418
+ $flags$: 0,
1419
+ $hostElement$: elm,
1420
+ $cmpMeta$: cmpMeta,
1421
+ $instanceValues$: new Map(),
1422
+ };
1423
+ {
1424
+ hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1425
+ elm['s-p'] = [];
1426
+ elm['s-rc'] = [];
1427
+ }
1428
+ return hostRefs.set(elm, hostRef);
1429
+ };
1430
+ const isMemberInElement = (elm, memberName) => memberName in elm;
1431
+ const consoleError = (e, el) => (0, console.error)(e, el);
1432
+ const cmpModules = /*@__PURE__*/ new Map();
1433
+ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1434
+ // loadModuleImport
1435
+ const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
1436
+ const bundleId = cmpMeta.$lazyBundleId$;
1437
+ const module = cmpModules.get(bundleId) ;
1438
+ if (module) {
1439
+ return module[exportName];
1440
+ }
1441
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
1442
+ return import(
1443
+ /* @vite-ignore */
1444
+ /* webpackInclude: /\.entry\.js$/ */
1445
+ /* webpackExclude: /\.system\.entry\.js$/ */
1446
+ /* webpackMode: "lazy" */
1447
+ `./${bundleId}.entry.js${''}`).then((importedModule) => {
1448
+ {
1449
+ cmpModules.set(bundleId, importedModule);
1450
+ }
1451
+ return importedModule[exportName];
1452
+ }, consoleError);
1453
+ };
1454
+ const styles = /*@__PURE__*/ new Map();
1455
+ const win = typeof window !== 'undefined' ? window : {};
1456
+ const doc = win.document || { head: {} };
1457
+ const plt = {
1458
+ $flags$: 0,
1459
+ $resourcesUrl$: '',
1460
+ jmp: (h) => h(),
1461
+ raf: (h) => requestAnimationFrame(h),
1462
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
1463
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
1464
+ ce: (eventName, opts) => new CustomEvent(eventName, opts),
1465
+ };
1466
+ const promiseResolve = (v) => Promise.resolve(v);
1467
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
1468
+ try {
1469
+ new CSSStyleSheet();
1470
+ return typeof new CSSStyleSheet().replaceSync === 'function';
1471
+ }
1472
+ catch (e) { }
1473
+ return false;
1474
+ })()
1475
+ ;
1476
+ const queueDomReads = [];
1477
+ const queueDomWrites = [];
1478
+ const queueTask = (queue, write) => (cb) => {
1479
+ queue.push(cb);
1480
+ if (!queuePending) {
1481
+ queuePending = true;
1482
+ if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
1483
+ nextTick(flush);
1484
+ }
1485
+ else {
1486
+ plt.raf(flush);
1487
+ }
1488
+ }
1489
+ };
1490
+ const consume = (queue) => {
1491
+ for (let i = 0; i < queue.length; i++) {
1492
+ try {
1493
+ queue[i](performance.now());
1494
+ }
1495
+ catch (e) {
1496
+ consoleError(e);
1497
+ }
1498
+ }
1499
+ queue.length = 0;
1500
+ };
1501
+ const flush = () => {
1502
+ // always force a bunch of medium callbacks to run, but still have
1503
+ // a throttle on how many can run in a certain time
1504
+ // DOM READS!!!
1505
+ consume(queueDomReads);
1506
+ // DOM WRITES!!!
1507
+ {
1508
+ consume(queueDomWrites);
1509
+ if ((queuePending = queueDomReads.length > 0)) {
1510
+ // still more to do yet, but we've run out of time
1511
+ // let's let this thing cool off and try again in the next tick
1512
+ plt.raf(flush);
1513
+ }
1514
+ }
1515
+ };
1516
+ const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1517
+ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1518
+
1519
+ export { Host as H, bootstrapLazy as b, getElement as g, h, promiseResolve as p, registerInstance as r, setNonce as s };