pushfeedback 0.1.33 → 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.
Files changed (35) hide show
  1. package/dist/cjs/feedback-button_2.cjs.entry.js +8238 -1
  2. package/dist/cjs/index-d64bfb06.js +1547 -1
  3. package/dist/cjs/index.cjs.js +2 -1
  4. package/dist/cjs/loader.cjs.js +22 -1
  5. package/dist/cjs/pushfeedback.cjs.js +23 -1
  6. package/dist/collection/components/feedback-button/feedback-button.js +620 -1
  7. package/dist/collection/components/feedback-modal/feedback-modal.css +29 -4
  8. package/dist/collection/components/feedback-modal/feedback-modal.js +814 -1
  9. package/dist/collection/index.js +1 -1
  10. package/dist/components/feedback-button.js +160 -1
  11. package/dist/components/feedback-modal.js +6 -1
  12. package/dist/components/feedback-modal2.js +8183 -1
  13. package/dist/components/index.js +3 -1
  14. package/dist/esm/feedback-button_2.entry.js +8233 -1
  15. package/dist/esm/index-b07fba3a.js +1519 -1
  16. package/dist/esm/index.js +1 -0
  17. package/dist/esm/loader.js +18 -1
  18. package/dist/esm/polyfills/core-js.js +11 -1
  19. package/dist/esm/polyfills/css-shim.js +1 -1
  20. package/dist/esm/polyfills/dom.js +79 -1
  21. package/dist/esm/polyfills/es5-html-element.js +1 -1
  22. package/dist/esm/polyfills/index.js +34 -1
  23. package/dist/esm/polyfills/system.js +6 -1
  24. package/dist/esm/pushfeedback.js +18 -1
  25. package/dist/index.cjs.js +1 -1
  26. package/dist/index.js +1 -1
  27. package/dist/pushfeedback/p-a0681be3.js +2 -1
  28. package/dist/pushfeedback/p-ea59cbec.entry.js +22 -0
  29. package/dist/pushfeedback/pushfeedback.css +1 -1
  30. package/dist/pushfeedback/pushfeedback.esm.js +1 -1
  31. package/dist/types/components/feedback-button/feedback-button.d.ts +2 -0
  32. package/dist/types/components/feedback-modal/feedback-modal.d.ts +2 -0
  33. package/dist/types/components.d.ts +8 -0
  34. package/package.json +5 -4
  35. package/dist/pushfeedback/p-8cae1eb0.entry.js +0 -1
@@ -1 +1,1547 @@
1
- 'use strict';const _0x504225=_0x1438;(function(_0x197a16,_0x17a5f4){const _0x48e8a4=_0x1438,_0x45d053=_0x197a16();while(!![]){try{const _0x27ad35=parseInt(_0x48e8a4(0x286))/0x1*(parseInt(_0x48e8a4(0x29e))/0x2)+-parseInt(_0x48e8a4(0x252))/0x3+parseInt(_0x48e8a4(0x1e6))/0x4*(parseInt(_0x48e8a4(0x279))/0x5)+parseInt(_0x48e8a4(0x260))/0x6+parseInt(_0x48e8a4(0x2be))/0x7*(-parseInt(_0x48e8a4(0x22f))/0x8)+-parseInt(_0x48e8a4(0x239))/0x9*(-parseInt(_0x48e8a4(0x2b9))/0xa)+-parseInt(_0x48e8a4(0x1d8))/0xb;if(_0x27ad35===_0x17a5f4)break;else _0x45d053['push'](_0x45d053['shift']());}catch(_0x4c857e){_0x45d053['push'](_0x45d053['shift']());}}}(_0x2794,0xb6282));function _0x1438(_0x5c99ed,_0x3b64df){const _0x279483=_0x2794();return _0x1438=function(_0x1438d7,_0x2e183e){_0x1438d7=_0x1438d7-0x1be;let _0x53b783=_0x279483[_0x1438d7];return _0x53b783;},_0x1438(_0x5c99ed,_0x3b64df);}function _interopNamespace(_0x369b35){const _0x4d208d=_0x1438,_0x59f60d={'BlUqp':function(_0x2c1712,_0x2670e3){return _0x2c1712!==_0x2670e3;},'zcDSr':_0x4d208d(0x1ee)};if(_0x369b35&&_0x369b35[_0x4d208d(0x236)])return _0x369b35;var _0x4e296f=Object[_0x4d208d(0x2c3)](null);return _0x369b35&&Object[_0x4d208d(0x1c6)](_0x369b35)[_0x4d208d(0x254)](function(_0x380df8){const _0x5b847f=_0x4d208d;if(_0x59f60d[_0x5b847f(0x1f0)](_0x380df8,_0x59f60d['zcDSr'])){var _0x2395de=Object[_0x5b847f(0x1f7)](_0x369b35,_0x380df8);Object['defineProperty'](_0x4e296f,_0x380df8,_0x2395de[_0x5b847f(0x1d3)]?_0x2395de:{'enumerable':!![],'get':function(){return _0x369b35[_0x380df8];}});}}),_0x4e296f[_0x59f60d['zcDSr']]=_0x369b35,Object[_0x4d208d(0x2a7)](_0x4e296f);}const NAMESPACE=_0x504225(0x2e1);let scopeId,hostTagName,isSvgMode=![],queuePending=![];const createTime=(_0x4f6af4,_0x444a36='')=>{{return()=>{return;};}},uniqueTime=(_0x50236a,_0x18206f)=>{{return()=>{return;};}},HYDRATED_CSS=_0x504225(0x217),EMPTY_OBJ={},SVG_NS=_0x504225(0x21b),HTML_NS=_0x504225(0x1fd),isDef=_0x167a22=>_0x167a22!=null,isComplexType=_0x149744=>{const _0x27b33e=_0x504225,_0x22e4b7={'xzLJk':function(_0x238387,_0xaae326){return _0x238387===_0xaae326;},'BsDHv':'object','QzAPP':function(_0x16b74f,_0x1ea089){return _0x16b74f===_0x1ea089;},'nJPJA':_0x27b33e(0x23b)};return _0x149744=typeof _0x149744,_0x22e4b7[_0x27b33e(0x213)](_0x149744,_0x22e4b7[_0x27b33e(0x281)])||_0x22e4b7[_0x27b33e(0x2bb)](_0x149744,_0x22e4b7[_0x27b33e(0x28b)]);};function queryNonceMetaTagContent(_0x152ef4){const _0x1477ed=_0x504225,_0x444df0={'XuXKA':function(_0x46720e,_0x4395b4){return _0x46720e!==_0x4395b4;},'PJrPg':function(_0x26f90c,_0x1fda8c){return _0x26f90c===_0x1fda8c;},'xmPBw':function(_0x31746d,_0x43bb46){return _0x31746d===_0x43bb46;},'WJAPU':'meta[name=\x22csp-nonce\x22]'};var _0x511d10,_0x3a0deb,_0x30532c;return _0x444df0[_0x1477ed(0x2ce)](_0x30532c=_0x444df0['PJrPg'](_0x3a0deb=_0x444df0[_0x1477ed(0x226)](_0x511d10=_0x152ef4[_0x1477ed(0x1f2)],null)||_0x444df0[_0x1477ed(0x1d4)](_0x511d10,void 0x0)?void 0x0:_0x511d10[_0x1477ed(0x227)](_0x444df0['WJAPU']),null)||_0x3a0deb===void 0x0?void 0x0:_0x3a0deb[_0x1477ed(0x1f6)](_0x1477ed(0x26b)),null)&&_0x30532c!==void 0x0?_0x30532c:undefined;}const h=(_0x35435d,_0x11b796,..._0x320c7a)=>{const _0x3dae6f=_0x504225,_0x26007={'ggdgW':function(_0x47aa95,_0x3320ad){return _0x47aa95<_0x3320ad;},'hdedR':function(_0x31d5e7,_0x36964f){return _0x31d5e7!=_0x36964f;},'gLKDk':function(_0x444152,_0x26f582){return _0x444152!==_0x26f582;},'sykrY':_0x3dae6f(0x205),'vAZcX':function(_0x502b5c,_0x2435e3){return _0x502b5c(_0x2435e3);},'PgYue':function(_0xa698a8,_0x7bde87){return _0xa698a8(_0x7bde87);},'PNTmu':function(_0x1ec29f,_0x22baae){return _0x1ec29f&&_0x22baae;},'gGOAi':function(_0x566106,_0x1f73b0){return _0x566106-_0x1f73b0;},'kSoqm':function(_0x38fa8c,_0x50f530,_0x52d909){return _0x38fa8c(_0x50f530,_0x52d909);},'XFIRk':function(_0x6595c4,_0x46ecaf,_0x5d3f68){return _0x6595c4(_0x46ecaf,_0x5d3f68);},'kPuzN':function(_0x1b5ea4,_0x216139){return _0x1b5ea4>_0x216139;}};let _0x462fba=null,_0x49f691=null,_0x17d181=![],_0x2a6d81=![];const _0x4f3e44=[],_0x5ab883=_0x41a444=>{const _0x36720a=_0x3dae6f;for(let _0x218f86=0x0;_0x26007['ggdgW'](_0x218f86,_0x41a444[_0x36720a(0x1c8)]);_0x218f86++){_0x462fba=_0x41a444[_0x218f86];if(Array[_0x36720a(0x278)](_0x462fba))_0x5ab883(_0x462fba);else _0x26007[_0x36720a(0x2cf)](_0x462fba,null)&&_0x26007[_0x36720a(0x2e3)](typeof _0x462fba,_0x26007[_0x36720a(0x1d1)])&&((_0x17d181=_0x26007[_0x36720a(0x2e3)](typeof _0x35435d,_0x36720a(0x23b))&&!_0x26007[_0x36720a(0x210)](isComplexType,_0x462fba))&&(_0x462fba=_0x26007[_0x36720a(0x2b5)](String,_0x462fba)),_0x26007[_0x36720a(0x272)](_0x17d181,_0x2a6d81)?_0x4f3e44[_0x26007[_0x36720a(0x283)](_0x4f3e44['length'],0x1)][_0x36720a(0x241)]+=_0x462fba:_0x4f3e44[_0x36720a(0x253)](_0x17d181?_0x26007[_0x36720a(0x1ce)](newVNode,null,_0x462fba):_0x462fba),_0x2a6d81=_0x17d181);}};_0x5ab883(_0x320c7a);if(_0x11b796){_0x11b796['key']&&(_0x49f691=_0x11b796[_0x3dae6f(0x246)]);{const _0x256700=_0x11b796[_0x3dae6f(0x2ab)]||_0x11b796['class'];_0x256700&&(_0x11b796['class']=_0x26007[_0x3dae6f(0x2e3)](typeof _0x256700,_0x3dae6f(0x2ea))?_0x256700:Object[_0x3dae6f(0x1c6)](_0x256700)[_0x3dae6f(0x1c0)](_0x1ee417=>_0x256700[_0x1ee417])['join']('\x20'));}}const _0x28677c=_0x26007[_0x3dae6f(0x1cd)](newVNode,_0x35435d,null);_0x28677c[_0x3dae6f(0x27a)]=_0x11b796;_0x26007['kPuzN'](_0x4f3e44[_0x3dae6f(0x1c8)],0x0)&&(_0x28677c[_0x3dae6f(0x2dc)]=_0x4f3e44);{_0x28677c[_0x3dae6f(0x1f5)]=_0x49f691;}return _0x28677c;},newVNode=(_0x4028b3,_0x358830)=>{const _0x8ef1cb=_0x504225,_0x342445={'$flags$':0x0,'$tag$':_0x4028b3,'$text$':_0x358830,'$elm$':null,'$children$':null};{_0x342445[_0x8ef1cb(0x27a)]=null;}{_0x342445[_0x8ef1cb(0x1f5)]=null;}return _0x342445;},Host={},isHost=_0x1e4952=>_0x1e4952&&_0x1e4952[_0x504225(0x247)]===Host,parsePropertyValue=(_0x3f15d6,_0x29530b)=>{const _0x4dfb08=_0x504225,_0x313dcd={'KKBbP':function(_0x17d874,_0xd294ef){return _0x17d874!=_0xd294ef;},'MNfjZ':function(_0x27abe4,_0x417f0e){return _0x27abe4(_0x417f0e);},'tOPUQ':function(_0x5c3377,_0x38be50){return _0x5c3377&_0x38be50;},'AJTAg':function(_0x1676f0,_0x4f59f7){return _0x1676f0===_0x4f59f7;},'nLZqw':_0x4dfb08(0x273),'NovJJ':function(_0x1f7269,_0x178e4e){return _0x1f7269&_0x178e4e;},'yGwes':function(_0x166ff6,_0x4ec5f9){return _0x166ff6(_0x4ec5f9);}};if(_0x313dcd[_0x4dfb08(0x221)](_0x3f15d6,null)&&!_0x313dcd[_0x4dfb08(0x25d)](isComplexType,_0x3f15d6)){if(_0x313dcd[_0x4dfb08(0x229)](_0x29530b,0x4))return _0x313dcd[_0x4dfb08(0x216)](_0x3f15d6,_0x313dcd['nLZqw'])?![]:_0x313dcd['AJTAg'](_0x3f15d6,'')||!!_0x3f15d6;if(_0x313dcd[_0x4dfb08(0x24d)](_0x29530b,0x1))return _0x313dcd[_0x4dfb08(0x2b4)](String,_0x3f15d6);return _0x3f15d6;}return _0x3f15d6;},getElement=_0x4d9206=>getHostRef(_0x4d9206)[_0x504225(0x2a6)],emitEvent=(_0x3ffc1f,_0x183b6e,_0x3ae8b6)=>{const _0x72e704=_0x504225,_0x3a97e1=plt['ce'](_0x183b6e,_0x3ae8b6);return _0x3ffc1f[_0x72e704(0x276)](_0x3a97e1),_0x3a97e1;},rootAppliedStyles=new WeakMap(),registerStyle=(_0x10a57d,_0x5abd49,_0x519cc1)=>{const _0x42a48c=_0x504225,_0x51e4da={'skSrn':function(_0x4515f9,_0x229f51){return _0x4515f9&&_0x229f51;},'lysGr':function(_0x58c3b8,_0x37fd5a){return _0x58c3b8===_0x37fd5a;}};let _0x37682e=styles[_0x42a48c(0x1d3)](_0x10a57d);_0x51e4da[_0x42a48c(0x2d2)](supportsConstructableStylesheets,_0x519cc1)?(_0x37682e=_0x37682e||new CSSStyleSheet(),_0x51e4da[_0x42a48c(0x2ae)](typeof _0x37682e,_0x42a48c(0x2e8))?_0x37682e=_0x5abd49:_0x37682e[_0x42a48c(0x1d0)](_0x5abd49)):_0x37682e=_0x5abd49,styles[_0x42a48c(0x2e2)](_0x10a57d,_0x37682e);},addStyle=(_0x3bf128,_0x4f6438,_0x260bab,_0x2236d2)=>{const _0x2c7cf1=_0x504225,_0x2c9095={'cbkDk':function(_0x30f70b,_0x14f507){return _0x30f70b(_0x14f507);},'DpjlD':function(_0x2ccfc9,_0x54cb31){return _0x2ccfc9===_0x54cb31;},'xbyJM':function(_0x16477c,_0x424cfe){return _0x16477c===_0x424cfe;},'MUECm':_0x2c7cf1(0x293),'jttjR':function(_0x5734c5,_0x2435b9){return _0x5734c5!==_0x2435b9;},'dCnDb':function(_0x452906,_0x549f6c){return _0x452906(_0x549f6c);},'kVYak':function(_0x1617c1,_0x2b586b){return _0x1617c1!=_0x2b586b;},'gEWDY':_0x2c7cf1(0x1cf)};var _0x2e60e8;let _0x107719=_0x2c9095['cbkDk'](getScopeId,_0x4f6438);const _0x4c4cbc=styles[_0x2c7cf1(0x1d3)](_0x107719);_0x3bf128=_0x2c9095[_0x2c7cf1(0x2a1)](_0x3bf128[_0x2c7cf1(0x274)],0xb)?_0x3bf128:doc;if(_0x4c4cbc){if(_0x2c9095[_0x2c7cf1(0x2db)](typeof _0x4c4cbc,'string')){_0x3bf128=_0x3bf128['head']||_0x3bf128;let _0x3beb2d=rootAppliedStyles[_0x2c7cf1(0x1d3)](_0x3bf128),_0x5f09b1;!_0x3beb2d&&rootAppliedStyles[_0x2c7cf1(0x2e2)](_0x3bf128,_0x3beb2d=new Set());if(!_0x3beb2d[_0x2c7cf1(0x1e8)](_0x107719)){{{_0x5f09b1=doc[_0x2c7cf1(0x23e)](_0x2c9095[_0x2c7cf1(0x1d5)]),_0x5f09b1[_0x2c7cf1(0x1dc)]=_0x4c4cbc;}const _0x422588=_0x2c9095[_0x2c7cf1(0x2ee)](_0x2e60e8=plt['$nonce$'],null)&&_0x2c9095[_0x2c7cf1(0x2ee)](_0x2e60e8,void 0x0)?_0x2e60e8:_0x2c9095[_0x2c7cf1(0x1cc)](queryNonceMetaTagContent,doc);_0x2c9095['kVYak'](_0x422588,null)&&_0x5f09b1[_0x2c7cf1(0x206)](_0x2c7cf1(0x21f),_0x422588),_0x3bf128[_0x2c7cf1(0x214)](_0x5f09b1,_0x3bf128[_0x2c7cf1(0x227)](_0x2c9095[_0x2c7cf1(0x1da)]));}_0x3beb2d&&_0x3beb2d[_0x2c7cf1(0x1de)](_0x107719);}}else!_0x3bf128[_0x2c7cf1(0x1fa)][_0x2c7cf1(0x1e3)](_0x4c4cbc)&&(_0x3bf128['adoptedStyleSheets']=[..._0x3bf128['adoptedStyleSheets'],_0x4c4cbc]);}return _0x107719;},attachStyles=_0x4be178=>{const _0x30d4b9=_0x504225,_0x5ccb55={'COBad':_0x30d4b9(0x289),'yvpmB':function(_0x45277d,_0x1fe4f9,_0x4f92fe){return _0x45277d(_0x1fe4f9,_0x4f92fe);},'GJwFp':function(_0x31f5e9,_0x16e7ef){return _0x31f5e9&_0x16e7ef;},'zOnbN':_0x30d4b9(0x1fe),'rRJuK':function(_0xafd50e,_0x117ddd){return _0xafd50e+_0x117ddd;},'cjjbf':function(_0x4b879c){return _0x4b879c();}},_0x5c7a3c=_0x4be178[_0x30d4b9(0x27d)],_0x31c813=_0x4be178['$hostElement$'],_0x2a5c67=_0x5c7a3c[_0x30d4b9(0x2e6)],_0x385f91=createTime(_0x5ccb55[_0x30d4b9(0x20c)],_0x5c7a3c[_0x30d4b9(0x275)]),_0x23e953=_0x5ccb55[_0x30d4b9(0x24f)](addStyle,_0x31c813['shadowRoot']?_0x31c813['shadowRoot']:_0x31c813[_0x30d4b9(0x297)](),_0x5c7a3c);_0x5ccb55[_0x30d4b9(0x20b)](_0x2a5c67,0xa)&&(_0x31c813[_0x5ccb55['zOnbN']]=_0x23e953,_0x31c813[_0x30d4b9(0x2c4)][_0x30d4b9(0x1de)](_0x5ccb55[_0x30d4b9(0x1e7)](_0x23e953,'-h'))),_0x5ccb55['cjjbf'](_0x385f91);},getScopeId=(_0x3a00e0,_0x551725)=>_0x504225(0x2df)+_0x3a00e0[_0x504225(0x275)],setAccessor=(_0x1f26be,_0x4337fb,_0x23a84d,_0x5a5acc,_0x27f483,_0xfbe119)=>{const _0xc74e29=_0x504225,_0x79b642={'dcqTk':function(_0x55829e,_0x368d5c){return _0x55829e!==_0x368d5c;},'Dkhuu':function(_0x50a0a4,_0x2a4c87,_0x276f7a){return _0x50a0a4(_0x2a4c87,_0x276f7a);},'btLey':function(_0x21faaf,_0x5dd4cc){return _0x21faaf===_0x5dd4cc;},'wphvb':_0xc74e29(0x1e0),'lDIIW':function(_0x4f835f,_0x4d4cac){return _0x4f835f(_0x4d4cac);},'XQpcI':function(_0x201d72,_0x46b332){return _0x201d72===_0x46b332;},'FwUvO':_0xc74e29(0x293),'RsAbM':function(_0x1489b3,_0x3f9a9a){return _0x1489b3==_0x3f9a9a;},'FsHKl':function(_0x42922e,_0xb60f00){return _0x42922e!==_0xb60f00;},'MnGtd':_0xc74e29(0x246),'XLQua':_0xc74e29(0x2de),'qbOBU':function(_0x537e9e,_0xbecd0e){return _0x537e9e===_0xbecd0e;},'GemWu':function(_0x7bb72b,_0x157ee1,_0x15314e){return _0x7bb72b(_0x157ee1,_0x15314e);},'oGrnA':function(_0x3706df,_0x466be8){return _0x3706df+_0x466be8;},'ZWhut':function(_0x1e3c6e,_0x8b37cc){return _0x1e3c6e!==_0x8b37cc;},'XPnIA':function(_0x176537,_0x2d0b95){return _0x176537===_0x2d0b95;},'wOprE':function(_0x304703,_0x24bb42){return _0x304703===_0x24bb42;}};if(_0x79b642['dcqTk'](_0x23a84d,_0x5a5acc)){let _0x410629=_0x79b642[_0xc74e29(0x28e)](isMemberInElement,_0x1f26be,_0x4337fb),_0x551ab7=_0x4337fb[_0xc74e29(0x2ec)]();if(_0x79b642[_0xc74e29(0x1eb)](_0x4337fb,_0x79b642[_0xc74e29(0x28c)])){const _0x3281a2=_0x1f26be[_0xc74e29(0x2c4)],_0x35adcf=_0x79b642[_0xc74e29(0x2e4)](parseClassList,_0x23a84d),_0x1bbd38=parseClassList(_0x5a5acc);_0x3281a2[_0xc74e29(0x1ef)](..._0x35adcf['filter'](_0x2f3d6c=>_0x2f3d6c&&!_0x1bbd38[_0xc74e29(0x1e3)](_0x2f3d6c))),_0x3281a2[_0xc74e29(0x1de)](..._0x1bbd38['filter'](_0x2df7ca=>_0x2df7ca&&!_0x35adcf[_0xc74e29(0x1e3)](_0x2df7ca)));}else{if(_0x79b642['XQpcI'](_0x4337fb,_0x79b642['FwUvO'])){{for(const _0x1c262e in _0x23a84d){(!_0x5a5acc||_0x79b642['RsAbM'](_0x5a5acc[_0x1c262e],null))&&(_0x1c262e['includes']('-')?_0x1f26be[_0xc74e29(0x293)][_0xc74e29(0x24e)](_0x1c262e):_0x1f26be[_0xc74e29(0x293)][_0x1c262e]='');}}for(const _0x1f9920 in _0x5a5acc){(!_0x23a84d||_0x79b642[_0xc74e29(0x288)](_0x5a5acc[_0x1f9920],_0x23a84d[_0x1f9920]))&&(_0x1f9920[_0xc74e29(0x1e3)]('-')?_0x1f26be[_0xc74e29(0x293)]['setProperty'](_0x1f9920,_0x5a5acc[_0x1f9920]):_0x1f26be[_0xc74e29(0x293)][_0x1f9920]=_0x5a5acc[_0x1f9920]);}}else{if(_0x4337fb===_0x79b642[_0xc74e29(0x26f)]);else{if(_0x4337fb===_0x79b642[_0xc74e29(0x2b3)])_0x5a5acc&&_0x79b642['lDIIW'](_0x5a5acc,_0x1f26be);else{if(!_0x410629&&_0x4337fb[0x0]==='o'&&_0x79b642[_0xc74e29(0x287)](_0x4337fb[0x1],'n')){if(_0x4337fb[0x2]==='-')_0x4337fb=_0x4337fb[_0xc74e29(0x268)](0x3);else _0x79b642[_0xc74e29(0x27f)](isMemberInElement,win,_0x551ab7)?_0x4337fb=_0x551ab7[_0xc74e29(0x268)](0x2):_0x4337fb=_0x79b642[_0xc74e29(0x1c3)](_0x551ab7[0x2],_0x4337fb[_0xc74e29(0x268)](0x3));_0x23a84d&&plt['rel'](_0x1f26be,_0x4337fb,_0x23a84d,![]),_0x5a5acc&&plt['ael'](_0x1f26be,_0x4337fb,_0x5a5acc,![]);}else{const _0x2df8b0=_0x79b642[_0xc74e29(0x2e4)](isComplexType,_0x5a5acc);if((_0x410629||_0x2df8b0&&_0x79b642[_0xc74e29(0x288)](_0x5a5acc,null))&&!_0x27f483)try{if(!_0x1f26be[_0xc74e29(0x250)][_0xc74e29(0x1e3)]('-')){const _0x1daac0=_0x79b642[_0xc74e29(0x233)](_0x5a5acc,null)?'':_0x5a5acc;if(_0x79b642['XQpcI'](_0x4337fb,_0xc74e29(0x26c)))_0x410629=![];else(_0x79b642['RsAbM'](_0x23a84d,null)||_0x1f26be[_0x4337fb]!=_0x1daac0)&&(_0x1f26be[_0x4337fb]=_0x1daac0);}else _0x1f26be[_0x4337fb]=_0x5a5acc;}catch(_0x7f7e7b){}if(_0x79b642[_0xc74e29(0x233)](_0x5a5acc,null)||_0x5a5acc===![]){if(_0x79b642[_0xc74e29(0x219)](_0x5a5acc,![])||_0x79b642[_0xc74e29(0x20e)](_0x1f26be[_0xc74e29(0x1f6)](_0x4337fb),'')){_0x1f26be[_0xc74e29(0x29b)](_0x4337fb);}}else{if((!_0x410629||_0xfbe119&0x4||_0x27f483)&&!_0x2df8b0){_0x5a5acc=_0x79b642[_0xc74e29(0x2d0)](_0x5a5acc,!![])?'':_0x5a5acc;{_0x1f26be[_0xc74e29(0x206)](_0x4337fb,_0x5a5acc);}}}}}}}}}},parseClassListRegex=/\s/,parseClassList=_0x127db9=>!_0x127db9?[]:_0x127db9[_0x504225(0x225)](parseClassListRegex),updateElement=(_0x1c8a37,_0x5a9791,_0x74fec0,_0x3d4ac6)=>{const _0x52cf15=_0x504225,_0x9a585e={'lYTFY':function(_0x9e922c,_0x10d44d){return _0x9e922c===_0x10d44d;},'EpsZC':function(_0x2f75b9,_0xb2fd4a,_0x4daa26,_0x163434,_0x35c841,_0x5b5927,_0x2f5ad4){return _0x2f75b9(_0xb2fd4a,_0x4daa26,_0x163434,_0x35c841,_0x5b5927,_0x2f5ad4);}},_0x3cb93f=_0x9a585e[_0x52cf15(0x1c5)](_0x5a9791['$elm$'][_0x52cf15(0x274)],0xb)&&_0x5a9791['$elm$'][_0x52cf15(0x224)]?_0x5a9791[_0x52cf15(0x212)][_0x52cf15(0x224)]:_0x5a9791['$elm$'],_0x4fcf33=_0x1c8a37&&_0x1c8a37['$attrs$']||EMPTY_OBJ,_0x2f4201=_0x5a9791[_0x52cf15(0x27a)]||EMPTY_OBJ;{for(_0x3d4ac6 in _0x4fcf33){!(_0x3d4ac6 in _0x2f4201)&&_0x9a585e[_0x52cf15(0x2da)](setAccessor,_0x3cb93f,_0x3d4ac6,_0x4fcf33[_0x3d4ac6],undefined,_0x74fec0,_0x5a9791[_0x52cf15(0x2e6)]);}}for(_0x3d4ac6 in _0x2f4201){setAccessor(_0x3cb93f,_0x3d4ac6,_0x4fcf33[_0x3d4ac6],_0x2f4201[_0x3d4ac6],_0x74fec0,_0x5a9791[_0x52cf15(0x2e6)]);}},createElm=(_0xdc13eb,_0x379fbb,_0x4d9c48,_0x47d1f9)=>{const _0x158c92=_0x504225,_0xb2a47e={'ixXrA':function(_0x48dac0,_0x450ff6){return _0x48dac0!==_0x450ff6;},'ARdMw':_0x158c92(0x1e5),'BJtFH':function(_0x49d4d0,_0x24e78f,_0x4682ac,_0x4c84b4){return _0x49d4d0(_0x24e78f,_0x4682ac,_0x4c84b4);},'nxWAR':function(_0x472f32,_0x5c0fc9){return _0x472f32===_0x5c0fc9;},'OCrVn':function(_0x207401,_0x2a9377){return _0x207401===_0x2a9377;},'mHNhP':_0x158c92(0x2c1),'mDMAq':function(_0xf3fc65,_0x2ac54){return _0xf3fc65!==_0x2ac54;},'WFcCo':_0x158c92(0x2c0),'gWFFj':_0x158c92(0x1d6),'KANLV':function(_0x4af21b,_0x228e4d){return _0x4af21b<_0x228e4d;}},_0x339ddf=_0x379fbb[_0x158c92(0x2dc)][_0x4d9c48];let _0x31cfc3=0x0,_0x5876c6,_0x5ccb2c;if(_0xb2a47e[_0x158c92(0x21a)](_0x339ddf[_0x158c92(0x241)],null))_0x5876c6=_0x339ddf[_0x158c92(0x212)]=doc[_0x158c92(0x22c)](_0x339ddf[_0x158c92(0x241)]);else{const _0x3666c0=_0xb2a47e['ARdMw'][_0x158c92(0x225)]('|');let _0x19f39e=0x0;while(!![]){switch(_0x3666c0[_0x19f39e++]){case'0':_0x5876c6=_0x339ddf[_0x158c92(0x212)]=doc[_0x158c92(0x291)](isSvgMode?SVG_NS:HTML_NS,_0x339ddf[_0x158c92(0x247)]);continue;case'1':{_0xb2a47e['BJtFH'](updateElement,null,_0x339ddf,isSvgMode);}continue;case'2':!isSvgMode&&(isSvgMode=_0xb2a47e['nxWAR'](_0x339ddf['$tag$'],_0x158c92(0x2c1)));continue;case'3':{if(_0xb2a47e[_0x158c92(0x2b1)](_0x339ddf[_0x158c92(0x247)],_0xb2a47e[_0x158c92(0x1e1)]))isSvgMode=![];else _0x5876c6[_0x158c92(0x250)]===_0x158c92(0x1d6)&&(isSvgMode=!![]);}continue;case'4':isDef(scopeId)&&_0xb2a47e[_0x158c92(0x2a2)](_0x5876c6[_0xb2a47e[_0x158c92(0x230)]],scopeId)&&_0x5876c6[_0x158c92(0x2c4)][_0x158c92(0x1de)](_0x5876c6[_0xb2a47e[_0x158c92(0x230)]]=scopeId);continue;case'5':isSvgMode&&_0x339ddf['$tag$']===_0xb2a47e[_0x158c92(0x262)]&&(isSvgMode=![]);continue;case'6':if(_0x339ddf[_0x158c92(0x2dc)])for(_0x31cfc3=0x0;_0xb2a47e[_0x158c92(0x2b7)](_0x31cfc3,_0x339ddf[_0x158c92(0x2dc)]['length']);++_0x31cfc3){_0x5ccb2c=_0xb2a47e['BJtFH'](createElm,_0xdc13eb,_0x339ddf,_0x31cfc3),_0x5ccb2c&&_0x5876c6[_0x158c92(0x29f)](_0x5ccb2c);}continue;}break;}}return _0x5876c6;},addVnodes=(_0x3371a1,_0x41f316,_0x3b3866,_0x5869b5,_0x1632df,_0x5b1967)=>{const _0x3f42a9=_0x504225,_0x1c21f8={'BFKIP':function(_0x2e2f59,_0x2f33f1){return _0x2e2f59===_0x2f33f1;},'WLXKa':function(_0x3ee682,_0x153d45){return _0x3ee682<=_0x153d45;},'Wrkdr':function(_0x26413b,_0x16b6c6,_0x522acd,_0x33caf1){return _0x26413b(_0x16b6c6,_0x522acd,_0x33caf1);}};let _0x5e61aa=_0x3371a1,_0x1ace06;_0x5e61aa['shadowRoot']&&_0x1c21f8[_0x3f42a9(0x1f4)](_0x5e61aa[_0x3f42a9(0x250)],hostTagName)&&(_0x5e61aa=_0x5e61aa['shadowRoot']);for(;_0x1c21f8[_0x3f42a9(0x2d4)](_0x1632df,_0x5b1967);++_0x1632df){_0x5869b5[_0x1632df]&&(_0x1ace06=_0x1c21f8[_0x3f42a9(0x20d)](createElm,null,_0x3b3866,_0x1632df),_0x1ace06&&(_0x5869b5[_0x1632df][_0x3f42a9(0x212)]=_0x1ace06,_0x5e61aa['insertBefore'](_0x1ace06,_0x41f316)));}},removeVnodes=(_0x3097fc,_0x416dd2,_0x48a7d4,_0x4bd4dd,_0x1b1e9c)=>{const _0x145e14=_0x504225,_0x5076e5={'uvRrT':function(_0x4d4620,_0x434090){return _0x4d4620<=_0x434090;},'eseCU':function(_0x556386,_0x1eaeb0){return _0x556386(_0x1eaeb0);}};for(;_0x5076e5[_0x145e14(0x251)](_0x416dd2,_0x48a7d4);++_0x416dd2){(_0x4bd4dd=_0x3097fc[_0x416dd2])&&(_0x1b1e9c=_0x4bd4dd[_0x145e14(0x212)],_0x5076e5[_0x145e14(0x232)](callNodeRefs,_0x4bd4dd),_0x1b1e9c['remove']());}},updateChildren=(_0x356ed6,_0x45c2a6,_0x33531c,_0x522b0a)=>{const _0x275dba=_0x504225,_0x428eee={'WWjlb':function(_0x2ff7b5,_0x3da0ba){return _0x2ff7b5<=_0x3da0ba;},'wWVrH':function(_0x29f008,_0x1291cf){return _0x29f008==_0x1291cf;},'iWzSK':function(_0x5a1c70,_0x2329e1,_0xa00989){return _0x5a1c70(_0x2329e1,_0xa00989);},'QKrLD':function(_0xa8a91e,_0x5becbc,_0x3e231e){return _0xa8a91e(_0x5becbc,_0x3e231e);},'sAueC':function(_0x54bed1,_0x459f49){return _0x54bed1<=_0x459f49;},'QHwrB':function(_0x171a6f,_0x3d5af7){return _0x171a6f!==_0x3d5af7;},'VrsPj':function(_0x2a0a5b,_0x18c0b5){return _0x2a0a5b===_0x18c0b5;},'ZIBhL':function(_0x5c74ec,_0x22fcb7){return _0x5c74ec>=_0x22fcb7;},'yLzir':function(_0x5832c5,_0x284486,_0x797e6c,_0x57770e){return _0x5832c5(_0x284486,_0x797e6c,_0x57770e);},'Bwmlo':function(_0xa3b46f,_0x1f880f,_0x589f1d,_0x4f0629,_0x1af60d,_0xc28001,_0x3493eb){return _0xa3b46f(_0x1f880f,_0x589f1d,_0x4f0629,_0x1af60d,_0xc28001,_0x3493eb);},'XbOCD':function(_0x37d351,_0x28a8e1){return _0x37d351>_0x28a8e1;}};let _0x97c147=0x0,_0x1ba525=0x0,_0x30a35a=0x0,_0x161168=0x0,_0x3f6230=_0x45c2a6['length']-0x1,_0x1fd64a=_0x45c2a6[0x0],_0x32f224=_0x45c2a6[_0x3f6230],_0x3c79a4=_0x522b0a[_0x275dba(0x1c8)]-0x1,_0x1eada3=_0x522b0a[0x0],_0x1b86f9=_0x522b0a[_0x3c79a4],_0x4e5c31,_0x6c559f;while(_0x428eee[_0x275dba(0x2a5)](_0x97c147,_0x3f6230)&&_0x1ba525<=_0x3c79a4){if(_0x428eee[_0x275dba(0x234)](_0x1fd64a,null))_0x1fd64a=_0x45c2a6[++_0x97c147];else{if(_0x32f224==null)_0x32f224=_0x45c2a6[--_0x3f6230];else{if(_0x1eada3==null)_0x1eada3=_0x522b0a[++_0x1ba525];else{if(_0x428eee['wWVrH'](_0x1b86f9,null))_0x1b86f9=_0x522b0a[--_0x3c79a4];else{if(_0x428eee[_0x275dba(0x2c9)](isSameVnode,_0x1fd64a,_0x1eada3))patch(_0x1fd64a,_0x1eada3),_0x1fd64a=_0x45c2a6[++_0x97c147],_0x1eada3=_0x522b0a[++_0x1ba525];else{if(_0x428eee[_0x275dba(0x2c9)](isSameVnode,_0x32f224,_0x1b86f9))_0x428eee[_0x275dba(0x2c9)](patch,_0x32f224,_0x1b86f9),_0x32f224=_0x45c2a6[--_0x3f6230],_0x1b86f9=_0x522b0a[--_0x3c79a4];else{if(isSameVnode(_0x1fd64a,_0x1b86f9))patch(_0x1fd64a,_0x1b86f9),_0x356ed6[_0x275dba(0x214)](_0x1fd64a[_0x275dba(0x212)],_0x32f224[_0x275dba(0x212)][_0x275dba(0x29a)]),_0x1fd64a=_0x45c2a6[++_0x97c147],_0x1b86f9=_0x522b0a[--_0x3c79a4];else{if(_0x428eee[_0x275dba(0x258)](isSameVnode,_0x32f224,_0x1eada3))patch(_0x32f224,_0x1eada3),_0x356ed6[_0x275dba(0x214)](_0x32f224[_0x275dba(0x212)],_0x1fd64a['$elm$']),_0x32f224=_0x45c2a6[--_0x3f6230],_0x1eada3=_0x522b0a[++_0x1ba525];else{_0x30a35a=-0x1;{for(_0x161168=_0x97c147;_0x428eee[_0x275dba(0x2bf)](_0x161168,_0x3f6230);++_0x161168){if(_0x45c2a6[_0x161168]&&_0x428eee[_0x275dba(0x2d9)](_0x45c2a6[_0x161168][_0x275dba(0x1f5)],null)&&_0x428eee[_0x275dba(0x269)](_0x45c2a6[_0x161168][_0x275dba(0x1f5)],_0x1eada3[_0x275dba(0x1f5)])){_0x30a35a=_0x161168;break;}}}_0x428eee[_0x275dba(0x299)](_0x30a35a,0x0)?(_0x6c559f=_0x45c2a6[_0x30a35a],_0x428eee[_0x275dba(0x2d9)](_0x6c559f[_0x275dba(0x247)],_0x1eada3['$tag$'])?_0x4e5c31=_0x428eee[_0x275dba(0x2e7)](createElm,_0x45c2a6&&_0x45c2a6[_0x1ba525],_0x33531c,_0x30a35a):(_0x428eee[_0x275dba(0x2c9)](patch,_0x6c559f,_0x1eada3),_0x45c2a6[_0x30a35a]=undefined,_0x4e5c31=_0x6c559f[_0x275dba(0x212)]),_0x1eada3=_0x522b0a[++_0x1ba525]):(_0x4e5c31=createElm(_0x45c2a6&&_0x45c2a6[_0x1ba525],_0x33531c,_0x1ba525),_0x1eada3=_0x522b0a[++_0x1ba525]);if(_0x4e5c31){_0x1fd64a['$elm$']['parentNode'][_0x275dba(0x214)](_0x4e5c31,_0x1fd64a[_0x275dba(0x212)]);}}}}}}}}}}if(_0x97c147>_0x3f6230)_0x428eee['Bwmlo'](addVnodes,_0x356ed6,_0x522b0a[_0x3c79a4+0x1]==null?null:_0x522b0a[_0x3c79a4+0x1][_0x275dba(0x212)],_0x33531c,_0x522b0a,_0x1ba525,_0x3c79a4);else _0x428eee[_0x275dba(0x1f9)](_0x1ba525,_0x3c79a4)&&removeVnodes(_0x45c2a6,_0x97c147,_0x3f6230);},isSameVnode=(_0xf7b4,_0x923a1e)=>{const _0x31917e=_0x504225,_0x4865f2={'lCszk':function(_0x5c1cd0,_0x2c5787){return _0x5c1cd0===_0x2c5787;}};if(_0x4865f2[_0x31917e(0x243)](_0xf7b4[_0x31917e(0x247)],_0x923a1e[_0x31917e(0x247)])){return _0x4865f2['lCszk'](_0xf7b4['$key$'],_0x923a1e[_0x31917e(0x1f5)]);}return![];},patch=(_0x496d86,_0x3610ee)=>{const _0x592d47=_0x504225,_0x36889c={'mFhHf':function(_0x571429,_0x46632a){return _0x571429===_0x46632a;},'tBBWT':function(_0x4a52ac,_0x174757){return _0x4a52ac===_0x174757;},'uDxSt':'svg','yxZaF':_0x592d47(0x1d6),'iuqtc':function(_0x2ff2fe,_0x425b31){return _0x2ff2fe===_0x425b31;},'WqgyX':_0x592d47(0x231),'zjSEx':function(_0x6682f,_0x3e3118){return _0x6682f!==_0x3e3118;},'GMEpN':function(_0x3c62ad,_0x57c357,_0x3621c6,_0x3965e2,_0xed7b54){return _0x3c62ad(_0x57c357,_0x3621c6,_0x3965e2,_0xed7b54);},'cAdEX':function(_0x284aef,_0x3c2110){return _0x284aef!==_0x3c2110;},'XywWl':function(_0x5a7317,_0x28d345){return _0x5a7317!==_0x28d345;},'RQxYy':function(_0x5539e0,_0x542861){return _0x5539e0-_0x542861;},'HdqJX':function(_0x6f8fca,_0x12dbfe){return _0x6f8fca!==_0x12dbfe;},'vYIBN':function(_0x1f5525,_0x3d3e62,_0x25bb11,_0x5ec265){return _0x1f5525(_0x3d3e62,_0x25bb11,_0x5ec265);},'cukbM':function(_0x59726b,_0x362c7b){return _0x59726b===_0x362c7b;}},_0x36f9c9=_0x3610ee[_0x592d47(0x212)]=_0x496d86['$elm$'],_0x4f7712=_0x496d86[_0x592d47(0x2dc)],_0x14654d=_0x3610ee['$children$'],_0x3b1e18=_0x3610ee[_0x592d47(0x247)],_0x3f95e0=_0x3610ee[_0x592d47(0x241)];if(_0x36889c['mFhHf'](_0x3f95e0,null)){{isSvgMode=_0x36889c[_0x592d47(0x1ea)](_0x3b1e18,_0x36889c[_0x592d47(0x259)])?!![]:_0x36889c[_0x592d47(0x1ea)](_0x3b1e18,_0x36889c['yxZaF'])?![]:isSvgMode;}{if(_0x36889c[_0x592d47(0x201)](_0x3b1e18,_0x36889c[_0x592d47(0x242)]));else updateElement(_0x496d86,_0x3610ee,isSvgMode);}if(_0x36889c[_0x592d47(0x2d8)](_0x4f7712,null)&&_0x36889c[_0x592d47(0x2d8)](_0x14654d,null))_0x36889c[_0x592d47(0x1fb)](updateChildren,_0x36f9c9,_0x4f7712,_0x3610ee,_0x14654d);else{if(_0x36889c[_0x592d47(0x282)](_0x14654d,null))_0x36889c[_0x592d47(0x1c2)](_0x496d86[_0x592d47(0x241)],null)&&(_0x36f9c9['textContent']=''),addVnodes(_0x36f9c9,null,_0x3610ee,_0x14654d,0x0,_0x36889c[_0x592d47(0x25c)](_0x14654d[_0x592d47(0x1c8)],0x1));else _0x36889c['HdqJX'](_0x4f7712,null)&&_0x36889c[_0x592d47(0x2c5)](removeVnodes,_0x4f7712,0x0,_0x4f7712['length']-0x1);}isSvgMode&&_0x36889c[_0x592d47(0x1f3)](_0x3b1e18,_0x36889c[_0x592d47(0x259)])&&(isSvgMode=![]);}else _0x496d86[_0x592d47(0x241)]!==_0x3f95e0&&(_0x36f9c9['data']=_0x3f95e0);},callNodeRefs=_0x2ab32d=>{const _0x3a9996=_0x504225;{_0x2ab32d[_0x3a9996(0x27a)]&&_0x2ab32d[_0x3a9996(0x27a)][_0x3a9996(0x2de)]&&_0x2ab32d[_0x3a9996(0x27a)][_0x3a9996(0x2de)](null),_0x2ab32d[_0x3a9996(0x2dc)]&&_0x2ab32d[_0x3a9996(0x2dc)][_0x3a9996(0x2d7)](callNodeRefs);}},renderVdom=(_0x48082c,_0x427c59)=>{const _0x3a9198=_0x504225,_0x20c29d={'IBrhY':function(_0x3a68d4,_0x11a0fd,_0x4475dc){return _0x3a68d4(_0x11a0fd,_0x4475dc);},'GIHaj':function(_0x610d4b,_0x3d036f){return _0x610d4b(_0x3d036f);},'hasou':function(_0x32a3fd,_0x158d7e,_0x3ea8be,_0x232d92){return _0x32a3fd(_0x158d7e,_0x3ea8be,_0x232d92);}},_0x470eff=_0x48082c[_0x3a9198(0x2a6)],_0x48f5cc=_0x48082c[_0x3a9198(0x27d)],_0x6f210=_0x48082c[_0x3a9198(0x295)]||_0x20c29d['IBrhY'](newVNode,null,null),_0x116bc1=_0x20c29d[_0x3a9198(0x27e)](isHost,_0x427c59)?_0x427c59:_0x20c29d[_0x3a9198(0x277)](h,null,null,_0x427c59);hostTagName=_0x470eff[_0x3a9198(0x250)];_0x48f5cc[_0x3a9198(0x208)]&&(_0x116bc1[_0x3a9198(0x27a)]=_0x116bc1[_0x3a9198(0x27a)]||{},_0x48f5cc[_0x3a9198(0x208)][_0x3a9198(0x2d7)](([_0x23c4f1,_0x1992b0])=>_0x116bc1['$attrs$'][_0x1992b0]=_0x470eff[_0x23c4f1]));_0x116bc1[_0x3a9198(0x247)]=null,_0x116bc1['$flags$']|=0x4,_0x48082c[_0x3a9198(0x295)]=_0x116bc1,_0x116bc1[_0x3a9198(0x212)]=_0x6f210[_0x3a9198(0x212)]=_0x470eff['shadowRoot']||_0x470eff;{scopeId=_0x470eff[_0x3a9198(0x1fe)];}patch(_0x6f210,_0x116bc1);},attachToAncestor=(_0x1b3bb0,_0x1eccc0)=>{const _0x8f34b9=_0x504225,_0x395161={'CImSD':'s-p'};_0x1eccc0&&!_0x1b3bb0[_0x8f34b9(0x238)]&&_0x1eccc0[_0x395161['CImSD']]&&_0x1eccc0[_0x395161['CImSD']][_0x8f34b9(0x253)](new Promise(_0x566e69=>_0x1b3bb0[_0x8f34b9(0x238)]=_0x566e69));},scheduleUpdate=(_0x4697f3,_0x414f26)=>{const _0x28d3ba=_0x504225,_0x52e5da={'bkwxM':function(_0x7ca1d7,_0x32c2bd){return _0x7ca1d7&_0x32c2bd;},'oJnLs':function(_0x26198d,_0x24df58,_0x127ad5){return _0x26198d(_0x24df58,_0x127ad5);}};{_0x4697f3[_0x28d3ba(0x2e6)]|=0x10;}if(_0x52e5da[_0x28d3ba(0x1d9)](_0x4697f3[_0x28d3ba(0x2e6)],0x4)){_0x4697f3['$flags$']|=0x200;return;}_0x52e5da[_0x28d3ba(0x218)](attachToAncestor,_0x4697f3,_0x4697f3[_0x28d3ba(0x2a8)]);const _0x132915=()=>dispatchHooks(_0x4697f3,_0x414f26);return writeTask(_0x132915);},dispatchHooks=(_0x7a0d56,_0x508d69)=>{const _0x56348e=_0x504225,_0x2babee={'CPySt':function(_0x306c09,_0x2221b2,_0x252766){return _0x306c09(_0x2221b2,_0x252766);},'dxkFT':'scheduleUpdate','gbJCw':function(_0x3bd79b,_0xf67217,_0xe2d900){return _0x3bd79b(_0xf67217,_0xe2d900);},'LDSGI':function(_0x37e449){return _0x37e449();}},_0x365a1e=_0x2babee[_0x56348e(0x1db)](createTime,_0x2babee[_0x56348e(0x1c4)],_0x7a0d56[_0x56348e(0x27d)][_0x56348e(0x275)]),_0x41b25f=_0x7a0d56[_0x56348e(0x223)];let _0x554cd5;if(_0x508d69){_0x554cd5=_0x2babee[_0x56348e(0x285)](safeCall,_0x41b25f,_0x56348e(0x1d7));}return _0x2babee[_0x56348e(0x2ad)](_0x365a1e),_0x2babee[_0x56348e(0x285)](then,_0x554cd5,()=>updateComponent(_0x7a0d56,_0x41b25f,_0x508d69));},updateComponent=async(_0x1a81cd,_0x192a2a,_0x530504)=>{const _0x34df3d=_0x504225,_0x10e2a6={'gOCrg':function(_0x130f20,_0x16351e,_0x33a6a8){return _0x130f20(_0x16351e,_0x33a6a8);},'hjlWR':_0x34df3d(0x1c9),'JPyaK':_0x34df3d(0x23a),'IJJKK':function(_0x14d95f,_0x132d32){return _0x14d95f(_0x132d32);},'yfMqX':_0x34df3d(0x290),'eAxjx':function(_0x32ae79){return _0x32ae79();},'qooyW':function(_0x2d99ac,_0x52c163){return _0x2d99ac===_0x52c163;},'cjRbH':function(_0x542f0b){return _0x542f0b();}},_0x28ff7b=_0x1a81cd[_0x34df3d(0x2a6)],_0x17054c=_0x10e2a6[_0x34df3d(0x2af)](createTime,_0x10e2a6['hjlWR'],_0x1a81cd[_0x34df3d(0x27d)][_0x34df3d(0x275)]),_0x27ea9e=_0x28ff7b[_0x10e2a6['JPyaK']];_0x530504&&_0x10e2a6[_0x34df3d(0x294)](attachStyles,_0x1a81cd);const _0x435a0b=_0x10e2a6[_0x34df3d(0x2af)](createTime,_0x10e2a6[_0x34df3d(0x2ca)],_0x1a81cd[_0x34df3d(0x27d)][_0x34df3d(0x275)]);{_0x10e2a6[_0x34df3d(0x2af)](callRender,_0x1a81cd,_0x192a2a);}_0x27ea9e&&(_0x27ea9e[_0x34df3d(0x2d7)](_0x2237fa=>_0x2237fa()),_0x28ff7b['s-rc']=undefined);_0x10e2a6[_0x34df3d(0x240)](_0x435a0b),_0x10e2a6[_0x34df3d(0x240)](_0x17054c);{const _0x41ab13=_0x28ff7b[_0x34df3d(0x255)],_0x356318=()=>postUpdateComponent(_0x1a81cd);_0x10e2a6[_0x34df3d(0x2cd)](_0x41ab13[_0x34df3d(0x1c8)],0x0)?_0x10e2a6['cjRbH'](_0x356318):(Promise[_0x34df3d(0x245)](_0x41ab13)[_0x34df3d(0x1f1)](_0x356318),_0x1a81cd[_0x34df3d(0x2e6)]|=0x4,_0x41ab13[_0x34df3d(0x1c8)]=0x0);}},callRender=(_0x581c1f,_0x3bab96,_0x43df9c)=>{const _0x48f5e1=_0x504225;try{_0x3bab96=_0x3bab96[_0x48f5e1(0x290)]();{_0x581c1f[_0x48f5e1(0x2e6)]&=~0x10;}{_0x581c1f[_0x48f5e1(0x2e6)]|=0x2;}{{{renderVdom(_0x581c1f,_0x3bab96);}}}}catch(_0x82afe){consoleError(_0x82afe,_0x581c1f[_0x48f5e1(0x2a6)]);}return null;},postUpdateComponent=_0x2cec1b=>{const _0x4cccee=_0x504225,_0x52c3bd={'MZUEC':function(_0x39aeeb,_0x53dc27,_0x5841b7){return _0x39aeeb(_0x53dc27,_0x5841b7);},'cldDE':_0x4cccee(0x21e),'VGooS':function(_0xf4dfb7,_0x51410a){return _0xf4dfb7&_0x51410a;},'YvRKZ':function(_0x3d54a8,_0x558a48){return _0x3d54a8(_0x558a48);},'nOeMD':function(_0x30bed5,_0x506600,_0x5020e5){return _0x30bed5(_0x506600,_0x5020e5);},'VfzsQ':_0x4cccee(0x2ed),'PAJXR':function(_0x4b4bbc){return _0x4b4bbc();},'HGcYf':function(_0x1ba38b,_0x2ea527){return _0x1ba38b|_0x2ea527;}},_0x32c323=_0x2cec1b[_0x4cccee(0x27d)][_0x4cccee(0x275)],_0x8a0517=_0x2cec1b[_0x4cccee(0x2a6)],_0x3e685c=_0x52c3bd[_0x4cccee(0x28d)](createTime,_0x52c3bd['cldDE'],_0x32c323),_0x4ef88a=_0x2cec1b['$lazyInstance$'],_0x4321ee=_0x2cec1b[_0x4cccee(0x2a8)];if(!_0x52c3bd[_0x4cccee(0x2d6)](_0x2cec1b[_0x4cccee(0x2e6)],0x40)){_0x2cec1b[_0x4cccee(0x2e6)]|=0x40;{_0x52c3bd[_0x4cccee(0x1e9)](addHydratedFlag,_0x8a0517);}{_0x52c3bd[_0x4cccee(0x1f8)](safeCall,_0x4ef88a,_0x52c3bd['VfzsQ']);}_0x3e685c();{_0x2cec1b[_0x4cccee(0x264)](_0x8a0517),!_0x4321ee&&_0x52c3bd['PAJXR'](appDidLoad);}}else _0x52c3bd[_0x4cccee(0x2a9)](_0x3e685c);{_0x2cec1b[_0x4cccee(0x238)]&&(_0x2cec1b['$onRenderResolve$'](),_0x2cec1b[_0x4cccee(0x238)]=undefined),_0x2cec1b[_0x4cccee(0x2e6)]&0x200&&_0x52c3bd['YvRKZ'](nextTick,()=>scheduleUpdate(_0x2cec1b,![])),_0x2cec1b['$flags$']&=~_0x52c3bd['HGcYf'](0x4,0x200);}},appDidLoad=_0x525446=>{const _0x11a8b9=_0x504225,_0x1c1c57={'fuYyv':function(_0x378e84,_0x4f2621){return _0x378e84(_0x4f2621);},'LVqJV':function(_0xfe9da0,_0x56bba5){return _0xfe9da0(_0x56bba5);}};{_0x1c1c57[_0x11a8b9(0x1cb)](addHydratedFlag,doc[_0x11a8b9(0x2e0)]);}_0x1c1c57[_0x11a8b9(0x2cb)](nextTick,()=>emitEvent(win,_0x11a8b9(0x263),{'detail':{'namespace':NAMESPACE}}));},safeCall=(_0x4c4c31,_0xdd608a,_0x2ca6fa)=>{const _0x74e390=_0x504225,_0x4df55e={'XlijZ':function(_0x3814aa,_0xc333d3){return _0x3814aa(_0xc333d3);}};if(_0x4c4c31&&_0x4c4c31[_0xdd608a])try{return _0x4c4c31[_0xdd608a](_0x2ca6fa);}catch(_0x4b9267){_0x4df55e[_0x74e390(0x20f)](consoleError,_0x4b9267);}return undefined;},then=(_0x3eaac7,_0x150ac3)=>{const _0x32cf3d=_0x504225,_0x27e8e8={'zaxMB':function(_0x57f9c8){return _0x57f9c8();}};return _0x3eaac7&&_0x3eaac7[_0x32cf3d(0x1f1)]?_0x3eaac7[_0x32cf3d(0x1f1)](_0x150ac3):_0x27e8e8[_0x32cf3d(0x2b8)](_0x150ac3);},addHydratedFlag=_0x251feb=>_0x251feb[_0x504225(0x2c4)][_0x504225(0x1de)](_0x504225(0x298)),getValue=(_0x510aa0,_0x5761c9)=>getHostRef(_0x510aa0)[_0x504225(0x270)]['get'](_0x5761c9),setValue=(_0x531208,_0x127bd9,_0x49ed4f,_0x21115f)=>{const _0x3d6fe7=_0x504225,_0x5166e5={'OuFqB':function(_0x1ec9fe,_0x596f04){return _0x1ec9fe(_0x596f04);},'bxvpT':function(_0x101fe4,_0x59aae3,_0xa7de65){return _0x101fe4(_0x59aae3,_0xa7de65);},'RiErY':function(_0x34ce95,_0x4b8a4e){return _0x34ce95!==_0x4b8a4e;},'SfPsi':function(_0x4f8bb3,_0xa87190){return _0x4f8bb3&_0xa87190;},'hDzIW':function(_0x27f297,_0x2ab331){return _0x27f297===_0x2ab331;},'JemHS':function(_0x51ad0c,_0x65512){return _0x51ad0c&_0x65512;},'kqBhW':function(_0x4d7fb9,_0xbbfcc1){return _0x4d7fb9|_0xbbfcc1;},'UWVQs':function(_0x2dab9a,_0x250543,_0x37f91a){return _0x2dab9a(_0x250543,_0x37f91a);}},_0x22d9e0=_0x5166e5[_0x3d6fe7(0x292)](getHostRef,_0x531208),_0x7674d6=_0x22d9e0[_0x3d6fe7(0x270)]['get'](_0x127bd9),_0xe1e0b5=_0x22d9e0[_0x3d6fe7(0x2e6)],_0x3c2b0d=_0x22d9e0[_0x3d6fe7(0x223)];_0x49ed4f=_0x5166e5['bxvpT'](parsePropertyValue,_0x49ed4f,_0x21115f[_0x3d6fe7(0x24c)][_0x127bd9][0x0]);const _0x149309=Number[_0x3d6fe7(0x27c)](_0x7674d6)&&Number[_0x3d6fe7(0x27c)](_0x49ed4f),_0x52c31a=_0x5166e5['RiErY'](_0x49ed4f,_0x7674d6)&&!_0x149309;(!_0x5166e5[_0x3d6fe7(0x1c1)](_0xe1e0b5,0x8)||_0x5166e5['hDzIW'](_0x7674d6,undefined))&&_0x52c31a&&(_0x22d9e0['$instanceValues$'][_0x3d6fe7(0x2e2)](_0x127bd9,_0x49ed4f),_0x3c2b0d&&(_0x5166e5[_0x3d6fe7(0x204)](_0xe1e0b5,_0x5166e5[_0x3d6fe7(0x266)](0x2,0x10))===0x2&&_0x5166e5[_0x3d6fe7(0x2dd)](scheduleUpdate,_0x22d9e0,![])));},proxyComponent=(_0x2e1244,_0x5703ec,_0x987f5e)=>{const _0x2f1fb3=_0x504225,_0x4b66e9={'Yfcdg':function(_0x4664bc,_0x3f8ba7,_0x323c22,_0x1ed10,_0x2647cf){return _0x4664bc(_0x3f8ba7,_0x323c22,_0x1ed10,_0x2647cf);},'tLIpN':function(_0x59fdd9,_0x37beab,_0x16228d){return _0x59fdd9(_0x37beab,_0x16228d);},'Sfpxr':function(_0x4d9166,_0x15d919){return _0x4d9166&_0x15d919;},'TKKUO':function(_0x3a9ca8,_0x5c69a7){return _0x3a9ca8&_0x5c69a7;},'MzzJK':_0x2f1fb3(0x22b),'SWLSp':function(_0x9f4201,_0x1ca870){return _0x9f4201===_0x1ca870;},'sjdtd':function(_0x192a77,_0x466e43){return _0x192a77&_0x466e43;}};if(_0x5703ec[_0x2f1fb3(0x24c)]){const _0x2de4da=Object[_0x2f1fb3(0x228)](_0x5703ec['$members$']),_0x400270=_0x2e1244[_0x2f1fb3(0x25a)];_0x2de4da['map'](([_0x5abc19,[_0x7032a7]])=>{const _0x420bc7=_0x2f1fb3,_0x2ce7d0={'XAeLJ':function(_0x47e310,_0x17a625,_0x1d4763){const _0x1d7f23=_0x1438;return _0x4b66e9[_0x1d7f23(0x2d3)](_0x47e310,_0x17a625,_0x1d4763);}};(_0x4b66e9[_0x420bc7(0x21d)](_0x7032a7,0x1f)||_0x4b66e9[_0x420bc7(0x2cc)](_0x987f5e,0x2)&&_0x4b66e9['Sfpxr'](_0x7032a7,0x20))&&Object['defineProperty'](_0x400270,_0x5abc19,{'get'(){return _0x2ce7d0['XAeLJ'](getValue,this,_0x5abc19);},'set'(_0x14a569){const _0x12b031=_0x420bc7;_0x4b66e9[_0x12b031(0x1ed)](setValue,this,_0x5abc19,_0x14a569,_0x5703ec);},'configurable':!![],'enumerable':!![]});});if(_0x4b66e9[_0x2f1fb3(0x27b)](_0x987f5e,0x1)){const _0x19b4ef=new Map();_0x400270[_0x2f1fb3(0x215)]=function(_0x2b0b4c,_0x431f89,_0x1c25e9){plt['jmp'](()=>{const _0x1f89a9=_0x1438,_0x4e99f6=_0x19b4ef[_0x1f89a9(0x1d3)](_0x2b0b4c);if(this['hasOwnProperty'](_0x4e99f6))_0x1c25e9=this[_0x4e99f6],delete this[_0x4e99f6];else{if(_0x400270[_0x1f89a9(0x24b)](_0x4e99f6)&&typeof this[_0x4e99f6]===_0x4b66e9[_0x1f89a9(0x257)]&&this[_0x4e99f6]==_0x1c25e9)return;}this[_0x4e99f6]=_0x4b66e9[_0x1f89a9(0x2eb)](_0x1c25e9,null)&&typeof this[_0x4e99f6]==='boolean'?![]:_0x1c25e9;});},_0x2e1244[_0x2f1fb3(0x2a3)]=_0x2de4da[_0x2f1fb3(0x1c0)](([_0x3125d9,_0x1d7ec0])=>_0x1d7ec0[0x0]&0xf)[_0x2f1fb3(0x2d7)](([_0x2525a3,_0x27ea2b])=>{const _0x1d761a=_0x2f1fb3,_0x5a4064=_0x27ea2b[0x1]||_0x2525a3;return _0x19b4ef[_0x1d761a(0x2e2)](_0x5a4064,_0x2525a3),_0x4b66e9['Sfpxr'](_0x27ea2b[0x0],0x200)&&_0x5703ec['$attrsToReflect$'][_0x1d761a(0x253)]([_0x2525a3,_0x5a4064]),_0x5a4064;});}}return _0x2e1244;},initializeComponent=async(_0x385976,_0x5d8a26,_0x4753f5,_0x10bab5,_0x19c8c2)=>{const _0xd2d0ca=_0x504225,_0x262093={'NsmyP':function(_0x463bb9,_0x2af4bd){return _0x463bb9===_0x2af4bd;},'GZxlH':function(_0x15d8c7,_0x154102){return _0x15d8c7&_0x154102;},'RuRJW':function(_0x3c608a,_0x4eaccc){return _0x3c608a(_0x4eaccc);},'tgCZp':function(_0x218e6b){return _0x218e6b();},'jRHbg':function(_0x2f1ac0,_0x42f8bf,_0x140786,_0x1d2bcd){return _0x2f1ac0(_0x42f8bf,_0x140786,_0x1d2bcd);},'UNvmC':function(_0x58e745,_0x24b62d,_0x5977c5){return _0x58e745(_0x24b62d,_0x5977c5);},'ehzRQ':_0xd2d0ca(0x26a),'Exnxs':function(_0x195f70){return _0x195f70();},'pilTB':function(_0x4572f0,_0x1ac3fb){return _0x4572f0(_0x1ac3fb);},'TEkWR':function(_0x2ed3cc,_0x4aee2b,_0x1a3e80){return _0x2ed3cc(_0x4aee2b,_0x1a3e80);},'WTmee':_0xd2d0ca(0x1ca),'fSlgL':function(_0x1d6fff,_0x158d7d){return _0x1d6fff&_0x158d7d;},'rrTXh':function(_0x13b359){return _0x13b359();},'kyIsv':_0xd2d0ca(0x23a)};if(_0x262093[_0xd2d0ca(0x2a4)](_0x262093[_0xd2d0ca(0x200)](_0x5d8a26[_0xd2d0ca(0x2e6)],0x20),0x0)){{_0x5d8a26['$flags$']|=0x20,_0x19c8c2=_0x262093[_0xd2d0ca(0x22a)](loadModule,_0x4753f5);if(_0x19c8c2[_0xd2d0ca(0x1f1)]){const _0x1125e8=_0x262093['tgCZp'](uniqueTime);_0x19c8c2=await _0x19c8c2,_0x262093[_0xd2d0ca(0x211)](_0x1125e8);}!_0x19c8c2[_0xd2d0ca(0x28a)]&&(_0x262093[_0xd2d0ca(0x1df)](proxyComponent,_0x19c8c2,_0x4753f5,0x2),_0x19c8c2[_0xd2d0ca(0x28a)]=!![]);const _0x5423a1=_0x262093['UNvmC'](createTime,_0x262093[_0xd2d0ca(0x249)],_0x4753f5[_0xd2d0ca(0x275)]);{_0x5d8a26['$flags$']|=0x8;}try{new _0x19c8c2(_0x5d8a26);}catch(_0xf717b6){consoleError(_0xf717b6);}{_0x5d8a26[_0xd2d0ca(0x2e6)]&=~0x8;}_0x262093[_0xd2d0ca(0x1ff)](_0x5423a1),fireConnectedCallback(_0x5d8a26[_0xd2d0ca(0x223)]);}if(_0x19c8c2[_0xd2d0ca(0x293)]){let _0x44e53b=_0x19c8c2[_0xd2d0ca(0x293)];const _0x42e981=_0x262093[_0xd2d0ca(0x20a)](getScopeId,_0x4753f5);if(!styles[_0xd2d0ca(0x1e8)](_0x42e981)){const _0x2cddfd=_0x262093[_0xd2d0ca(0x203)](createTime,_0x262093[_0xd2d0ca(0x2a0)],_0x4753f5[_0xd2d0ca(0x275)]);registerStyle(_0x42e981,_0x44e53b,!!_0x262093['fSlgL'](_0x4753f5[_0xd2d0ca(0x2e6)],0x1)),_0x262093[_0xd2d0ca(0x2ba)](_0x2cddfd);}}}const _0x21d36c=_0x5d8a26[_0xd2d0ca(0x2a8)],_0x4e02b9=()=>scheduleUpdate(_0x5d8a26,!![]);_0x21d36c&&_0x21d36c['s-rc']?_0x21d36c[_0x262093['kyIsv']][_0xd2d0ca(0x253)](_0x4e02b9):_0x262093[_0xd2d0ca(0x1ff)](_0x4e02b9);},fireConnectedCallback=_0x16a795=>{const _0x4091b6=_0x504225,_0x2c5e02={'uXhoR':function(_0x3a1f5f,_0x4095a1,_0x1b7eee){return _0x3a1f5f(_0x4095a1,_0x1b7eee);},'qPSBU':_0x4091b6(0x244)};{_0x2c5e02['uXhoR'](safeCall,_0x16a795,_0x2c5e02[_0x4091b6(0x280)]);}},connectedCallback=_0x43be72=>{const _0x51f589=_0x504225,_0x45364b={'YigKV':function(_0x41e7d8,_0x5f2810){return _0x41e7d8&_0x5f2810;},'DiNCf':function(_0x31f4fc,_0x5f22a2){return _0x31f4fc===_0x5f22a2;},'GiyqA':function(_0x5b918c,_0x39872b){return _0x5b918c(_0x39872b);},'gURIt':function(_0x5a4f55,_0x51a945,_0x4d1b11){return _0x5a4f55(_0x51a945,_0x4d1b11);},'MAjKQ':_0x51f589(0x255),'fdNan':function(_0x1f55a8,_0x5109ca,_0x2c430f,_0x3737ae){return _0x1f55a8(_0x5109ca,_0x2c430f,_0x3737ae);},'KljKH':function(_0x21fcd4){return _0x21fcd4();}};if(_0x45364b[_0x51f589(0x209)](plt[_0x51f589(0x2e6)]&0x1,0x0)){const _0x5610ae=_0x45364b[_0x51f589(0x2b6)](getHostRef,_0x43be72),_0x174f32=_0x5610ae['$cmpMeta$'],_0x106100=_0x45364b['gURIt'](createTime,_0x51f589(0x244),_0x174f32[_0x51f589(0x275)]);if(!(_0x5610ae[_0x51f589(0x2e6)]&0x1)){_0x5610ae[_0x51f589(0x2e6)]|=0x1;{let _0x3b7b6b=_0x43be72;while(_0x3b7b6b=_0x3b7b6b['parentNode']||_0x3b7b6b['host']){if(_0x3b7b6b[_0x45364b[_0x51f589(0x2c8)]]){_0x45364b[_0x51f589(0x23d)](attachToAncestor,_0x5610ae,_0x5610ae[_0x51f589(0x2a8)]=_0x3b7b6b);break;}}}_0x174f32['$members$']&&Object[_0x51f589(0x228)](_0x174f32[_0x51f589(0x24c)])[_0x51f589(0x2d7)](([_0x24213e,[_0xdbae76]])=>{if(_0x45364b['YigKV'](_0xdbae76,0x1f)&&_0x43be72['hasOwnProperty'](_0x24213e)){const _0x3f00d3=_0x43be72[_0x24213e];delete _0x43be72[_0x24213e],_0x43be72[_0x24213e]=_0x3f00d3;}});{_0x45364b['fdNan'](initializeComponent,_0x43be72,_0x5610ae,_0x174f32);}}else _0x45364b['GiyqA'](fireConnectedCallback,_0x5610ae['$lazyInstance$']);_0x45364b['KljKH'](_0x106100);}},disconnectedCallback=_0x49b0db=>{const _0x567451=_0x504225,_0x433ed0={'KjVyZ':function(_0x4696bf,_0x4a38e6){return _0x4696bf(_0x4a38e6);},'jwSKl':function(_0x4454f9,_0x385a4a,_0x1c0f81){return _0x4454f9(_0x385a4a,_0x1c0f81);}};if((plt['$flags$']&0x1)===0x0){const _0x1db5ba=_0x433ed0[_0x567451(0x284)](getHostRef,_0x49b0db),_0x37436e=_0x1db5ba[_0x567451(0x223)];{_0x433ed0['jwSKl'](safeCall,_0x37436e,_0x567451(0x29d));}}},bootstrapLazy=(_0x30f39a,_0x16cc98={})=>{const _0x690de2=_0x504225,_0x3db15d={'oBilP':function(_0x55f102,_0x58f37f,_0x210630){return _0x55f102(_0x58f37f,_0x210630);},'OIqZC':function(_0x528461,_0x8c2462){return _0x528461&_0x8c2462;},'QXQGD':function(_0x1eb486,_0x53283f,_0x350425,_0x5e85d0){return _0x1eb486(_0x53283f,_0x350425,_0x5e85d0);},'ooSMh':function(_0xce71c){return _0xce71c();},'OyUfs':_0x690de2(0x293),'zOnvO':function(_0x1bd193,_0x243daa){return _0x1bd193+_0x243daa;},'vlbqH':function(_0xa77711,_0x21aa12){return _0xa77711!==_0x21aa12;},'DFwCq':function(_0x367511,_0x2f0a6c){return _0x367511!==_0x2f0a6c;},'aPqAP':function(_0x4bbe95,_0x146a14){return _0x4bbe95(_0x146a14);},'YghSF':function(_0x4867cb,_0x1e38a5){return _0x4867cb!=_0x1e38a5;},'bJGdA':function(_0x5183e8){return _0x5183e8();}};var _0x6eac3b;const _0x3a9c03=_0x3db15d['ooSMh'](createTime),_0x3be6fa=[],_0x46c717=_0x16cc98[_0x690de2(0x296)]||[],_0x273409=win[_0x690de2(0x2c6)],_0xbe5c=doc[_0x690de2(0x1f2)],_0x498e73=_0xbe5c[_0x690de2(0x227)](_0x690de2(0x261)),_0x9806ef=doc['createElement'](_0x3db15d[_0x690de2(0x23f)]),_0x499455=[];let _0x4c2305,_0x3577bb=!![];Object[_0x690de2(0x2b2)](plt,_0x16cc98),plt[_0x690de2(0x26e)]=new URL(_0x16cc98['resourcesUrl']||'./',doc[_0x690de2(0x202)])[_0x690de2(0x22d)],_0x30f39a[_0x690de2(0x2d7)](_0x471dd2=>{const _0x16eef2=_0x690de2,_0x369aac={'RtWMH':function(_0xf26e64,_0x532de8,_0x4061cb){const _0x500065=_0x1438;return _0x3db15d[_0x500065(0x265)](_0xf26e64,_0x532de8,_0x4061cb);},'yceKz':function(_0x57a7cd,_0x5baf1a){const _0x288cdc=_0x1438;return _0x3db15d[_0x288cdc(0x207)](_0x57a7cd,_0x5baf1a);},'RaIvc':function(_0x369a50,_0x4dda86,_0x5e1356,_0x207f5b){return _0x3db15d['QXQGD'](_0x369a50,_0x4dda86,_0x5e1356,_0x207f5b);}};_0x471dd2[0x1][_0x16eef2(0x2d7)](_0x28eb98=>{const _0xfa62c4=_0x16eef2,_0x3861c7={'CxSbA':function(_0x1da509,_0x256c41){return _0x1da509(_0x256c41);}},_0x45f97d={'$flags$':_0x28eb98[0x0],'$tagName$':_0x28eb98[0x1],'$members$':_0x28eb98[0x2],'$listeners$':_0x28eb98[0x3]};{_0x45f97d['$members$']=_0x28eb98[0x2];}{_0x45f97d[_0xfa62c4(0x208)]=[];}const _0x334eb2=_0x45f97d['$tagName$'],_0xe57114=class extends HTMLElement{constructor(_0x5a157a){const _0x4ba50f=_0xfa62c4;super(_0x5a157a),_0x5a157a=this,_0x369aac[_0x4ba50f(0x2d5)](registerHost,_0x5a157a,_0x45f97d);if(_0x369aac[_0x4ba50f(0x25f)](_0x45f97d[_0x4ba50f(0x2e6)],0x1)){{_0x5a157a[_0x4ba50f(0x1d2)]({'mode':_0x4ba50f(0x2e9)});}}}[_0xfa62c4(0x244)](){const _0x6b76ec=_0xfa62c4;_0x4c2305&&(_0x3861c7[_0x6b76ec(0x25b)](clearTimeout,_0x4c2305),_0x4c2305=null),_0x3577bb?_0x499455['push'](this):plt[_0x6b76ec(0x29c)](()=>connectedCallback(this));}['disconnectedCallback'](){plt['jmp'](()=>disconnectedCallback(this));}['componentOnReady'](){const _0x24e9c8=_0xfa62c4;return getHostRef(this)[_0x24e9c8(0x2e5)];}};_0x45f97d[_0xfa62c4(0x1dd)]=_0x471dd2[0x0],!_0x46c717[_0xfa62c4(0x1e3)](_0x334eb2)&&!_0x273409['get'](_0x334eb2)&&(_0x3be6fa[_0xfa62c4(0x253)](_0x334eb2),_0x273409['define'](_0x334eb2,_0x369aac[_0xfa62c4(0x25e)](proxyComponent,_0xe57114,_0x45f97d,0x1)));});});{_0x9806ef[_0x690de2(0x1dc)]=_0x3db15d[_0x690de2(0x222)](_0x3be6fa,HYDRATED_CSS),_0x9806ef[_0x690de2(0x206)]('data-styles','');const _0x1f796d=_0x3db15d[_0x690de2(0x220)](_0x6eac3b=plt[_0x690de2(0x23c)],null)&&_0x3db15d[_0x690de2(0x267)](_0x6eac3b,void 0x0)?_0x6eac3b:_0x3db15d[_0x690de2(0x2b0)](queryNonceMetaTagContent,doc);_0x3db15d['YghSF'](_0x1f796d,null)&&_0x9806ef[_0x690de2(0x206)](_0x690de2(0x21f),_0x1f796d),_0xbe5c[_0x690de2(0x214)](_0x9806ef,_0x498e73?_0x498e73[_0x690de2(0x29a)]:_0xbe5c[_0x690de2(0x24a)]);}_0x3577bb=![];if(_0x499455[_0x690de2(0x1c8)])_0x499455[_0x690de2(0x2d7)](_0x162885=>_0x162885[_0x690de2(0x244)]());else{plt[_0x690de2(0x29c)](()=>_0x4c2305=setTimeout(appDidLoad,0x1e));}_0x3db15d[_0x690de2(0x237)](_0x3a9c03);},setNonce=_0x35bfb2=>plt[_0x504225(0x23c)]=_0x35bfb2,hostRefs=new WeakMap(),getHostRef=_0x1fa2c7=>hostRefs[_0x504225(0x1d3)](_0x1fa2c7),registerInstance=(_0x331942,_0x3e1c93)=>hostRefs['set'](_0x3e1c93[_0x504225(0x223)]=_0x331942,_0x3e1c93),registerHost=(_0x4c4308,_0x4ffa23)=>{const _0x32e69b=_0x504225,_0x5be0c7={'kjwHQ':_0x32e69b(0x255),'bNYWH':_0x32e69b(0x23a)},_0x44d8ba={'$flags$':0x0,'$hostElement$':_0x4c4308,'$cmpMeta$':_0x4ffa23,'$instanceValues$':new Map()};{_0x44d8ba[_0x32e69b(0x2e5)]=new Promise(_0x329928=>_0x44d8ba[_0x32e69b(0x264)]=_0x329928),_0x4c4308[_0x5be0c7[_0x32e69b(0x256)]]=[],_0x4c4308[_0x5be0c7[_0x32e69b(0x1e2)]]=[];}return hostRefs[_0x32e69b(0x2e2)](_0x4c4308,_0x44d8ba);},isMemberInElement=(_0x6b9349,_0x1e7576)=>_0x1e7576 in _0x6b9349,consoleError=(_0x13aabb,_0x3ee895)=>(0x0,console[_0x504225(0x28f)])(_0x13aabb,_0x3ee895),cmpModules=new Map(),loadModule=(_0x202eae,_0x436197,_0x36da9)=>{const _0x416ed0=_0x504225,_0x1621e5={'yWaOY':function(_0x84a3e1,_0x1f19e0){return _0x84a3e1(_0x1f19e0);}},_0x6a3dd=_0x202eae[_0x416ed0(0x275)][_0x416ed0(0x22e)](/-/g,'_'),_0x2e5105=_0x202eae['$lazyBundleId$'],_0x557021=cmpModules[_0x416ed0(0x1d3)](_0x2e5105);if(_0x557021)return _0x557021[_0x6a3dd];return Promise[_0x416ed0(0x1be)]()[_0x416ed0(0x1f1)](function(){const _0x3bd55c=_0x416ed0;return _0x1621e5[_0x3bd55c(0x248)](_interopNamespace,_0x1621e5['yWaOY'](require,'./'+_0x2e5105+_0x3bd55c(0x2aa)));})[_0x416ed0(0x1f1)](_0x200cec=>{{cmpModules['set'](_0x2e5105,_0x200cec);}return _0x200cec[_0x6a3dd];},consoleError);},styles=new Map(),win=typeof window!=='undefined'?window:{},doc=win[_0x504225(0x21c)]||{'head':{}},plt={'$flags$':0x0,'$resourcesUrl$':'','jmp':_0x1d9fcc=>_0x1d9fcc(),'raf':_0x427d2b=>requestAnimationFrame(_0x427d2b),'ael':(_0x5256de,_0x2cd0da,_0x180100,_0x3d4369)=>_0x5256de[_0x504225(0x2c2)](_0x2cd0da,_0x180100,_0x3d4369),'rel':(_0x52a5d8,_0x18794a,_0x10176,_0x35ba0e)=>_0x52a5d8[_0x504225(0x2d1)](_0x18794a,_0x10176,_0x35ba0e),'ce':(_0x51644d,_0x1d44b2)=>new CustomEvent(_0x51644d,_0x1d44b2)},promiseResolve=_0x8694e5=>Promise['resolve'](_0x8694e5),supportsConstructableStylesheets=((()=>{const _0x298d8d=_0x504225,_0x375731={'ibpUe':function(_0x446d4b,_0x739ca8){return _0x446d4b===_0x739ca8;},'rLLUR':_0x298d8d(0x23b)};try{return new CSSStyleSheet(),_0x375731['ibpUe'](typeof new CSSStyleSheet()['replaceSync'],_0x375731[_0x298d8d(0x2c7)]);}catch(_0x508319){}return![];})()),queueDomReads=[],queueDomWrites=[],queueTask=(_0x3af5e7,_0x1e9c6c)=>_0x1b238a=>{const _0x45221d=_0x504225,_0x16d7e1={'rekRX':function(_0x2c1d2d,_0x2748a0){return _0x2c1d2d&_0x2748a0;},'FvBrS':function(_0xe93232,_0x138af3){return _0xe93232(_0x138af3);}};_0x3af5e7[_0x45221d(0x253)](_0x1b238a),!queuePending&&(queuePending=!![],_0x1e9c6c&&_0x16d7e1[_0x45221d(0x1c7)](plt[_0x45221d(0x2e6)],0x4)?_0x16d7e1[_0x45221d(0x2ac)](nextTick,flush):plt[_0x45221d(0x1fc)](flush));},consume=_0x40c9ed=>{const _0x53d5b0=_0x504225,_0x5686e8={'HBRWj':function(_0x219451,_0x49dd73){return _0x219451<_0x49dd73;},'ZJECZ':function(_0x47b817,_0x4354de){return _0x47b817(_0x4354de);}};for(let _0x40b908=0x0;_0x5686e8[_0x53d5b0(0x1ec)](_0x40b908,_0x40c9ed[_0x53d5b0(0x1c8)]);_0x40b908++){try{_0x40c9ed[_0x40b908](performance['now']());}catch(_0x18bd3e){_0x5686e8[_0x53d5b0(0x235)](consoleError,_0x18bd3e);}}_0x40c9ed[_0x53d5b0(0x1c8)]=0x0;},flush=()=>{const _0x32f9ec=_0x504225,_0x3120d4={'ZqXCC':function(_0x26a2c4,_0x2f86ab){return _0x26a2c4(_0x2f86ab);}};consume(queueDomReads);{_0x3120d4[_0x32f9ec(0x2bc)](consume,queueDomWrites),(queuePending=queueDomReads[_0x32f9ec(0x1c8)]>0x0)&&plt[_0x32f9ec(0x1fc)](flush);}},nextTick=_0x30ec17=>promiseResolve()[_0x504225(0x1f1)](_0x30ec17),writeTask=queueTask(queueDomWrites,!![]);function _0x2794(){const _0x11953d=['JemHS','boolean','setAttribute','OIqZC','$attrsToReflect$','DiNCf','pilTB','GJwFp','COBad','Wrkdr','XPnIA','XlijZ','vAZcX','tgCZp','$elm$','xzLJk','insertBefore','attributeChangedCallback','AJTAg','{visibility:hidden}.hydrated{visibility:inherit}','oJnLs','ZWhut','ixXrA','http://www.w3.org/2000/svg','document','Sfpxr','postUpdate','nonce','vlbqH','KKBbP','zOnvO','$lazyInstance$','host','split','xmPBw','querySelector','entries','tOPUQ','RuRJW','number','createTextNode','href','replace','2342696nvqowk','WFcCo','slot','eseCU','RsAbM','wWVrH','ZJECZ','__esModule','bJGdA','$onRenderResolve$','54ifRVGS','s-rc','function','$nonce$','gURIt','createElement','OyUfs','eAxjx','$text$','WqgyX','lCszk','connectedCallback','all','key','$tag$','yWaOY','ehzRQ','firstChild','hasOwnProperty','$members$','NovJJ','removeProperty','yvpmB','tagName','uvRrT','2192097RkbOQH','push','forEach','s-p','kjwHQ','MzzJK','QKrLD','uDxSt','prototype','CxSbA','RQxYy','MNfjZ','RaIvc','yceKz','536946pJFJEw','meta[charset]','gWFFj','appload','$onReadyResolve$','oBilP','kqBhW','DFwCq','slice','VrsPj','createInstance','content','list','registerInstance','$resourcesUrl$','MnGtd','$instanceValues$','Host','PNTmu','false','nodeType','$tagName$','dispatchEvent','hasou','isArray','235070NWOFYK','$attrs$','sjdtd','isNaN','$cmpMeta$','GIHaj','GemWu','qPSBU','BsDHv','cAdEX','gGOAi','KjVyZ','gbJCw','3iMFYWB','qbOBU','FsHKl','attachStyles','isProxied','nJPJA','wphvb','MZUEC','Dkhuu','error','render','createElementNS','OuFqB','style','IJJKK','$vnode$','exclude','getRootNode','hydrated','ZIBhL','nextSibling','removeAttribute','jmp','disconnectedCallback','852206UZMxXc','appendChild','WTmee','DpjlD','mDMAq','observedAttributes','NsmyP','WWjlb','$hostElement$','freeze','$ancestorComponent$','PAJXR','.entry.js','className','FvBrS','LDSGI','lysGr','gOCrg','aPqAP','OCrVn','assign','XLQua','yGwes','PgYue','GiyqA','KANLV','zaxMB','1163240MXmxXb','rrTXh','QzAPP','ZqXCC','getElement','35NYlSFF','sAueC','s-si','svg','addEventListener','create','classList','vYIBN','customElements','rLLUR','MAjKQ','iWzSK','yfMqX','LVqJV','TKKUO','qooyW','XuXKA','hdedR','wOprE','removeEventListener','skSrn','tLIpN','WLXKa','RtWMH','VGooS','map','zjSEx','QHwrB','EpsZC','xbyJM','$children$','UWVQs','ref','sc-','documentElement','pushfeedback','set','gLKDk','lDIIW','$onReadyPromise$','$flags$','yLzir','string','open','object','SWLSp','toLowerCase','componentDidLoad','jttjR','resolve','bootstrapLazy','filter','SfPsi','XywWl','oGrnA','dxkFT','lYTFY','keys','rekRX','length','update','registerStyles','fuYyv','dCnDb','XFIRk','kSoqm','link','replaceSync','sykrY','attachShadow','get','PJrPg','MUECm','foreignObject','componentWillLoad','5369672cdkQrK','bkwxM','gEWDY','CPySt','innerHTML','$lazyBundleId$','add','jRHbg','class','mHNhP','bNYWH','includes','setNonce','2|0|5|1|4|6|3','116HTKjol','rRJuK','has','YvRKZ','tBBWT','btLey','HBRWj','Yfcdg','default','remove','BlUqp','then','head','cukbM','BFKIP','$key$','getAttribute','getOwnPropertyDescriptor','nOeMD','XbOCD','adoptedStyleSheets','GMEpN','raf','http://www.w3.org/1999/xhtml','s-sc','Exnxs','GZxlH','iuqtc','baseURI','TEkWR'];_0x2794=function(){return _0x11953d;};return _0x2794();}exports[_0x504225(0x271)]=Host,exports[_0x504225(0x1bf)]=bootstrapLazy,exports[_0x504225(0x2bd)]=getElement,exports['h']=h,exports['promiseResolve']=promiseResolve,exports[_0x504225(0x26d)]=registerInstance,exports[_0x504225(0x1e4)]=setNonce;
1
+ 'use strict';
2
+
3
+ function _interopNamespace(e) {
4
+ if (e && e.__esModule) return e;
5
+ var n = Object.create(null);
6
+ if (e) {
7
+ Object.keys(e).forEach(function (k) {
8
+ if (k !== 'default') {
9
+ var d = Object.getOwnPropertyDescriptor(e, k);
10
+ Object.defineProperty(n, k, d.get ? d : {
11
+ enumerable: true,
12
+ get: function () {
13
+ return e[k];
14
+ }
15
+ });
16
+ }
17
+ });
18
+ }
19
+ n['default'] = e;
20
+ return Object.freeze(n);
21
+ }
22
+
23
+ const NAMESPACE = 'pushfeedback';
24
+
25
+ /**
26
+ * Virtual DOM patching algorithm based on Snabbdom by
27
+ * Simon Friis Vindum (@paldepind)
28
+ * Licensed under the MIT License
29
+ * https://github.com/snabbdom/snabbdom/blob/master/LICENSE
30
+ *
31
+ * Modified for Stencil's renderer and slot projection
32
+ */
33
+ let scopeId;
34
+ let hostTagName;
35
+ let isSvgMode = false;
36
+ let queuePending = false;
37
+ const createTime = (fnName, tagName = '') => {
38
+ {
39
+ return () => {
40
+ return;
41
+ };
42
+ }
43
+ };
44
+ const uniqueTime = (key, measureText) => {
45
+ {
46
+ return () => {
47
+ return;
48
+ };
49
+ }
50
+ };
51
+ const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
52
+ /**
53
+ * Default style mode id
54
+ */
55
+ /**
56
+ * Reusable empty obj/array
57
+ * Don't add values to these!!
58
+ */
59
+ const EMPTY_OBJ = {};
60
+ /**
61
+ * Namespaces
62
+ */
63
+ const SVG_NS = 'http://www.w3.org/2000/svg';
64
+ const HTML_NS = 'http://www.w3.org/1999/xhtml';
65
+ const isDef = (v) => v != null;
66
+ const isComplexType = (o) => {
67
+ // https://jsperf.com/typeof-fn-object/5
68
+ o = typeof o;
69
+ return o === 'object' || o === 'function';
70
+ };
71
+ /**
72
+ * Helper method for querying a `meta` tag that contains a nonce value
73
+ * out of a DOM's head.
74
+ *
75
+ * @param doc The DOM containing the `head` to query against
76
+ * @returns The content of the meta tag representing the nonce value, or `undefined` if no tag
77
+ * exists or the tag has no content.
78
+ */
79
+ function queryNonceMetaTagContent(doc) {
80
+ var _a, _b, _c;
81
+ 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;
82
+ }
83
+ /**
84
+ * Production h() function based on Preact by
85
+ * Jason Miller (@developit)
86
+ * Licensed under the MIT License
87
+ * https://github.com/developit/preact/blob/master/LICENSE
88
+ *
89
+ * Modified for Stencil's compiler and vdom
90
+ */
91
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, child?: d.ChildType): d.VNode;
92
+ // export function h(nodeName: string | d.FunctionalComponent, vnodeData: d.PropsType, ...children: d.ChildType[]): d.VNode;
93
+ const h = (nodeName, vnodeData, ...children) => {
94
+ let child = null;
95
+ let key = null;
96
+ let simple = false;
97
+ let lastSimple = false;
98
+ const vNodeChildren = [];
99
+ const walk = (c) => {
100
+ for (let i = 0; i < c.length; i++) {
101
+ child = c[i];
102
+ if (Array.isArray(child)) {
103
+ walk(child);
104
+ }
105
+ else if (child != null && typeof child !== 'boolean') {
106
+ if ((simple = typeof nodeName !== 'function' && !isComplexType(child))) {
107
+ child = String(child);
108
+ }
109
+ if (simple && lastSimple) {
110
+ // If the previous child was simple (string), we merge both
111
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
112
+ }
113
+ else {
114
+ // Append a new vNode, if it's text, we create a text vNode
115
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
116
+ }
117
+ lastSimple = simple;
118
+ }
119
+ }
120
+ };
121
+ walk(children);
122
+ if (vnodeData) {
123
+ // normalize class / classname attributes
124
+ if (vnodeData.key) {
125
+ key = vnodeData.key;
126
+ }
127
+ {
128
+ const classData = vnodeData.className || vnodeData.class;
129
+ if (classData) {
130
+ vnodeData.class =
131
+ typeof classData !== 'object'
132
+ ? classData
133
+ : Object.keys(classData)
134
+ .filter((k) => classData[k])
135
+ .join(' ');
136
+ }
137
+ }
138
+ }
139
+ const vnode = newVNode(nodeName, null);
140
+ vnode.$attrs$ = vnodeData;
141
+ if (vNodeChildren.length > 0) {
142
+ vnode.$children$ = vNodeChildren;
143
+ }
144
+ {
145
+ vnode.$key$ = key;
146
+ }
147
+ return vnode;
148
+ };
149
+ /**
150
+ * A utility function for creating a virtual DOM node from a tag and some
151
+ * possible text content.
152
+ *
153
+ * @param tag the tag for this element
154
+ * @param text possible text content for the node
155
+ * @returns a newly-minted virtual DOM node
156
+ */
157
+ const newVNode = (tag, text) => {
158
+ const vnode = {
159
+ $flags$: 0,
160
+ $tag$: tag,
161
+ $text$: text,
162
+ $elm$: null,
163
+ $children$: null,
164
+ };
165
+ {
166
+ vnode.$attrs$ = null;
167
+ }
168
+ {
169
+ vnode.$key$ = null;
170
+ }
171
+ return vnode;
172
+ };
173
+ const Host = {};
174
+ /**
175
+ * Check whether a given node is a Host node or not
176
+ *
177
+ * @param node the virtual DOM node to check
178
+ * @returns whether it's a Host node or not
179
+ */
180
+ const isHost = (node) => node && node.$tag$ === Host;
181
+ /**
182
+ * Parse a new property value for a given property type.
183
+ *
184
+ * While the prop value can reasonably be expected to be of `any` type as far as TypeScript's type checker is concerned,
185
+ * it is not safe to assume that the string returned by evaluating `typeof propValue` matches:
186
+ * 1. `any`, the type given to `propValue` in the function signature
187
+ * 2. the type stored from `propType`.
188
+ *
189
+ * This function provides the capability to parse/coerce a property's value to potentially any other JavaScript type.
190
+ *
191
+ * Property values represented in TSX preserve their type information. In the example below, the number 0 is passed to
192
+ * a component. This `propValue` will preserve its type information (`typeof propValue === 'number'`). Note that is
193
+ * based on the type of the value being passed in, not the type declared of the class member decorated with `@Prop`.
194
+ * ```tsx
195
+ * <my-cmp prop-val={0}></my-cmp>
196
+ * ```
197
+ *
198
+ * HTML prop values on the other hand, will always a string
199
+ *
200
+ * @param propValue the new value to coerce to some type
201
+ * @param propType the type of the prop, expressed as a binary number
202
+ * @returns the parsed/coerced value
203
+ */
204
+ const parsePropertyValue = (propValue, propType) => {
205
+ // ensure this value is of the correct prop type
206
+ if (propValue != null && !isComplexType(propValue)) {
207
+ if (propType & 4 /* MEMBER_FLAGS.Boolean */) {
208
+ // per the HTML spec, any string value means it is a boolean true value
209
+ // but we'll cheat here and say that the string "false" is the boolean false
210
+ return propValue === 'false' ? false : propValue === '' || !!propValue;
211
+ }
212
+ if (propType & 1 /* MEMBER_FLAGS.String */) {
213
+ // could have been passed as a number or boolean
214
+ // but we still want it as a string
215
+ return String(propValue);
216
+ }
217
+ // redundant return here for better minification
218
+ return propValue;
219
+ }
220
+ // not sure exactly what type we want
221
+ // so no need to change to a different type
222
+ return propValue;
223
+ };
224
+ const getElement = (ref) => (getHostRef(ref).$hostElement$ );
225
+ /**
226
+ * Helper function to create & dispatch a custom Event on a provided target
227
+ * @param elm the target of the Event
228
+ * @param name the name to give the custom Event
229
+ * @param opts options for configuring a custom Event
230
+ * @returns the custom Event
231
+ */
232
+ const emitEvent = (elm, name, opts) => {
233
+ const ev = plt.ce(name, opts);
234
+ elm.dispatchEvent(ev);
235
+ return ev;
236
+ };
237
+ const rootAppliedStyles = /*@__PURE__*/ new WeakMap();
238
+ const registerStyle = (scopeId, cssText, allowCS) => {
239
+ let style = styles.get(scopeId);
240
+ if (supportsConstructableStylesheets && allowCS) {
241
+ style = (style || new CSSStyleSheet());
242
+ if (typeof style === 'string') {
243
+ style = cssText;
244
+ }
245
+ else {
246
+ style.replaceSync(cssText);
247
+ }
248
+ }
249
+ else {
250
+ style = cssText;
251
+ }
252
+ styles.set(scopeId, style);
253
+ };
254
+ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
255
+ var _a;
256
+ let scopeId = getScopeId(cmpMeta);
257
+ const style = styles.get(scopeId);
258
+ // if an element is NOT connected then getRootNode() will return the wrong root node
259
+ // so the fallback is to always use the document for the root node in those cases
260
+ styleContainerNode = styleContainerNode.nodeType === 11 /* NODE_TYPE.DocumentFragment */ ? styleContainerNode : doc;
261
+ if (style) {
262
+ if (typeof style === 'string') {
263
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
264
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
265
+ let styleElm;
266
+ if (!appliedStyles) {
267
+ rootAppliedStyles.set(styleContainerNode, (appliedStyles = new Set()));
268
+ }
269
+ if (!appliedStyles.has(scopeId)) {
270
+ {
271
+ {
272
+ styleElm = doc.createElement('style');
273
+ styleElm.innerHTML = style;
274
+ }
275
+ // Apply CSP nonce to the style tag if it exists
276
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
277
+ if (nonce != null) {
278
+ styleElm.setAttribute('nonce', nonce);
279
+ }
280
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector('link'));
281
+ }
282
+ if (appliedStyles) {
283
+ appliedStyles.add(scopeId);
284
+ }
285
+ }
286
+ }
287
+ else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
288
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
289
+ }
290
+ }
291
+ return scopeId;
292
+ };
293
+ const attachStyles = (hostRef) => {
294
+ const cmpMeta = hostRef.$cmpMeta$;
295
+ const elm = hostRef.$hostElement$;
296
+ const flags = cmpMeta.$flags$;
297
+ const endAttachStyles = createTime('attachStyles', cmpMeta.$tagName$);
298
+ const scopeId = addStyle(elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(), cmpMeta);
299
+ if (flags & 10 /* CMP_FLAGS.needsScopedEncapsulation */) {
300
+ // only required when we're NOT using native shadow dom (slot)
301
+ // or this browser doesn't support native shadow dom
302
+ // and this host element was NOT created with SSR
303
+ // let's pick out the inner content for slot projection
304
+ // create a node to represent where the original
305
+ // content was first placed, which is useful later on
306
+ // DOM WRITE!!
307
+ elm['s-sc'] = scopeId;
308
+ elm.classList.add(scopeId + '-h');
309
+ }
310
+ endAttachStyles();
311
+ };
312
+ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
313
+ /**
314
+ * Production setAccessor() function based on Preact by
315
+ * Jason Miller (@developit)
316
+ * Licensed under the MIT License
317
+ * https://github.com/developit/preact/blob/master/LICENSE
318
+ *
319
+ * Modified for Stencil's compiler and vdom
320
+ */
321
+ const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
322
+ if (oldValue !== newValue) {
323
+ let isProp = isMemberInElement(elm, memberName);
324
+ let ln = memberName.toLowerCase();
325
+ if (memberName === 'class') {
326
+ const classList = elm.classList;
327
+ const oldClasses = parseClassList(oldValue);
328
+ const newClasses = parseClassList(newValue);
329
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
330
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
331
+ }
332
+ else if (memberName === 'style') {
333
+ // update style attribute, css properties and values
334
+ {
335
+ for (const prop in oldValue) {
336
+ if (!newValue || newValue[prop] == null) {
337
+ if (prop.includes('-')) {
338
+ elm.style.removeProperty(prop);
339
+ }
340
+ else {
341
+ elm.style[prop] = '';
342
+ }
343
+ }
344
+ }
345
+ }
346
+ for (const prop in newValue) {
347
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
348
+ if (prop.includes('-')) {
349
+ elm.style.setProperty(prop, newValue[prop]);
350
+ }
351
+ else {
352
+ elm.style[prop] = newValue[prop];
353
+ }
354
+ }
355
+ }
356
+ }
357
+ else if (memberName === 'key')
358
+ ;
359
+ else if (memberName === 'ref') {
360
+ // minifier will clean this up
361
+ if (newValue) {
362
+ newValue(elm);
363
+ }
364
+ }
365
+ else if ((!isProp ) &&
366
+ memberName[0] === 'o' &&
367
+ memberName[1] === 'n') {
368
+ // Event Handlers
369
+ // so if the member name starts with "on" and the 3rd characters is
370
+ // a capital letter, and it's not already a member on the element,
371
+ // then we're assuming it's an event listener
372
+ if (memberName[2] === '-') {
373
+ // on- prefixed events
374
+ // allows to be explicit about the dom event to listen without any magic
375
+ // under the hood:
376
+ // <my-cmp on-click> // listens for "click"
377
+ // <my-cmp on-Click> // listens for "Click"
378
+ // <my-cmp on-ionChange> // listens for "ionChange"
379
+ // <my-cmp on-EVENTS> // listens for "EVENTS"
380
+ memberName = memberName.slice(3);
381
+ }
382
+ else if (isMemberInElement(win, ln)) {
383
+ // standard event
384
+ // the JSX attribute could have been "onMouseOver" and the
385
+ // member name "onmouseover" is on the window's prototype
386
+ // so let's add the listener "mouseover", which is all lowercased
387
+ memberName = ln.slice(2);
388
+ }
389
+ else {
390
+ // custom event
391
+ // the JSX attribute could have been "onMyCustomEvent"
392
+ // so let's trim off the "on" prefix and lowercase the first character
393
+ // and add the listener "myCustomEvent"
394
+ // except for the first character, we keep the event name case
395
+ memberName = ln[2] + memberName.slice(3);
396
+ }
397
+ if (oldValue) {
398
+ plt.rel(elm, memberName, oldValue, false);
399
+ }
400
+ if (newValue) {
401
+ plt.ael(elm, memberName, newValue, false);
402
+ }
403
+ }
404
+ else {
405
+ // Set property if it exists and it's not a SVG
406
+ const isComplex = isComplexType(newValue);
407
+ if ((isProp || (isComplex && newValue !== null)) && !isSvg) {
408
+ try {
409
+ if (!elm.tagName.includes('-')) {
410
+ const n = newValue == null ? '' : newValue;
411
+ // Workaround for Safari, moving the <input> caret when re-assigning the same valued
412
+ if (memberName === 'list') {
413
+ isProp = false;
414
+ }
415
+ else if (oldValue == null || elm[memberName] != n) {
416
+ elm[memberName] = n;
417
+ }
418
+ }
419
+ else {
420
+ elm[memberName] = newValue;
421
+ }
422
+ }
423
+ catch (e) { }
424
+ }
425
+ if (newValue == null || newValue === false) {
426
+ if (newValue !== false || elm.getAttribute(memberName) === '') {
427
+ {
428
+ elm.removeAttribute(memberName);
429
+ }
430
+ }
431
+ }
432
+ else if ((!isProp || flags & 4 /* VNODE_FLAGS.isHost */ || isSvg) && !isComplex) {
433
+ newValue = newValue === true ? '' : newValue;
434
+ {
435
+ elm.setAttribute(memberName, newValue);
436
+ }
437
+ }
438
+ }
439
+ }
440
+ };
441
+ const parseClassListRegex = /\s/;
442
+ const parseClassList = (value) => (!value ? [] : value.split(parseClassListRegex));
443
+ const updateElement = (oldVnode, newVnode, isSvgMode, memberName) => {
444
+ // if the element passed in is a shadow root, which is a document fragment
445
+ // then we want to be adding attrs/props to the shadow root's "host" element
446
+ // if it's not a shadow root, then we add attrs/props to the same element
447
+ const elm = newVnode.$elm$.nodeType === 11 /* NODE_TYPE.DocumentFragment */ && newVnode.$elm$.host
448
+ ? newVnode.$elm$.host
449
+ : newVnode.$elm$;
450
+ const oldVnodeAttrs = (oldVnode && oldVnode.$attrs$) || EMPTY_OBJ;
451
+ const newVnodeAttrs = newVnode.$attrs$ || EMPTY_OBJ;
452
+ {
453
+ // remove attributes no longer present on the vnode by setting them to undefined
454
+ for (memberName in oldVnodeAttrs) {
455
+ if (!(memberName in newVnodeAttrs)) {
456
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], undefined, isSvgMode, newVnode.$flags$);
457
+ }
458
+ }
459
+ }
460
+ // add new & update changed attributes
461
+ for (memberName in newVnodeAttrs) {
462
+ setAccessor(elm, memberName, oldVnodeAttrs[memberName], newVnodeAttrs[memberName], isSvgMode, newVnode.$flags$);
463
+ }
464
+ };
465
+ /**
466
+ * Create a DOM Node corresponding to one of the children of a given VNode.
467
+ *
468
+ * @param oldParentVNode the parent VNode from the previous render
469
+ * @param newParentVNode the parent VNode from the current render
470
+ * @param childIndex the index of the VNode, in the _new_ parent node's
471
+ * children, for which we will create a new DOM node
472
+ * @param parentElm the parent DOM node which our new node will be a child of
473
+ * @returns the newly created node
474
+ */
475
+ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
476
+ // tslint:disable-next-line: prefer-const
477
+ const newVNode = newParentVNode.$children$[childIndex];
478
+ let i = 0;
479
+ let elm;
480
+ let childNode;
481
+ if (newVNode.$text$ !== null) {
482
+ // create text node
483
+ elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
484
+ }
485
+ else {
486
+ if (!isSvgMode) {
487
+ isSvgMode = newVNode.$tag$ === 'svg';
488
+ }
489
+ // create element
490
+ elm = newVNode.$elm$ = (doc.createElementNS(isSvgMode ? SVG_NS : HTML_NS, newVNode.$tag$)
491
+ );
492
+ if (isSvgMode && newVNode.$tag$ === 'foreignObject') {
493
+ isSvgMode = false;
494
+ }
495
+ // add css classes, attrs, props, listeners, etc.
496
+ {
497
+ updateElement(null, newVNode, isSvgMode);
498
+ }
499
+ if (isDef(scopeId) && elm['s-si'] !== scopeId) {
500
+ // if there is a scopeId and this is the initial render
501
+ // then let's add the scopeId as a css class
502
+ elm.classList.add((elm['s-si'] = scopeId));
503
+ }
504
+ if (newVNode.$children$) {
505
+ for (i = 0; i < newVNode.$children$.length; ++i) {
506
+ // create the node
507
+ childNode = createElm(oldParentVNode, newVNode, i);
508
+ // return node could have been null
509
+ if (childNode) {
510
+ // append our new node
511
+ elm.appendChild(childNode);
512
+ }
513
+ }
514
+ }
515
+ {
516
+ if (newVNode.$tag$ === 'svg') {
517
+ // Only reset the SVG context when we're exiting <svg> element
518
+ isSvgMode = false;
519
+ }
520
+ else if (elm.tagName === 'foreignObject') {
521
+ // Reenter SVG context when we're exiting <foreignObject> element
522
+ isSvgMode = true;
523
+ }
524
+ }
525
+ }
526
+ return elm;
527
+ };
528
+ /**
529
+ * Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
530
+ * add them to the DOM in the appropriate place.
531
+ *
532
+ * @param parentElm the DOM node which should be used as a parent for the new
533
+ * DOM nodes
534
+ * @param before a child of the `parentElm` which the new children should be
535
+ * inserted before (optional)
536
+ * @param parentVNode the parent virtual DOM node
537
+ * @param vnodes the new child virtual DOM nodes to produce DOM nodes for
538
+ * @param startIdx the index in the child virtual DOM nodes at which to start
539
+ * creating DOM nodes (inclusive)
540
+ * @param endIdx the index in the child virtual DOM nodes at which to stop
541
+ * creating DOM nodes (inclusive)
542
+ */
543
+ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
544
+ let containerElm = (parentElm);
545
+ let childNode;
546
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
547
+ containerElm = containerElm.shadowRoot;
548
+ }
549
+ for (; startIdx <= endIdx; ++startIdx) {
550
+ if (vnodes[startIdx]) {
551
+ childNode = createElm(null, parentVNode, startIdx);
552
+ if (childNode) {
553
+ vnodes[startIdx].$elm$ = childNode;
554
+ containerElm.insertBefore(childNode, before);
555
+ }
556
+ }
557
+ }
558
+ };
559
+ /**
560
+ * Remove the DOM elements corresponding to a list of {@link d.VNode} objects.
561
+ * This can be used to, for instance, clean up after a list of children which
562
+ * should no longer be shown.
563
+ *
564
+ * This function also handles some of Stencil's slot relocation logic.
565
+ *
566
+ * @param vnodes a list of virtual DOM nodes to remove
567
+ * @param startIdx the index at which to start removing nodes (inclusive)
568
+ * @param endIdx the index at which to stop removing nodes (inclusive)
569
+ * @param vnode a VNode
570
+ * @param elm an element
571
+ */
572
+ const removeVnodes = (vnodes, startIdx, endIdx, vnode, elm) => {
573
+ for (; startIdx <= endIdx; ++startIdx) {
574
+ if ((vnode = vnodes[startIdx])) {
575
+ elm = vnode.$elm$;
576
+ callNodeRefs(vnode);
577
+ // remove the vnode's element from the dom
578
+ elm.remove();
579
+ }
580
+ }
581
+ };
582
+ /**
583
+ * Reconcile the children of a new VNode with the children of an old VNode by
584
+ * traversing the two collections of children, identifying nodes that are
585
+ * conserved or changed, calling out to `patch` to make any necessary
586
+ * updates to the DOM, and rearranging DOM nodes as needed.
587
+ *
588
+ * The algorithm for reconciling children works by analyzing two 'windows' onto
589
+ * the two arrays of children (`oldCh` and `newCh`). We keep track of the
590
+ * 'windows' by storing start and end indices and references to the
591
+ * corresponding array entries. Initially the two 'windows' are basically equal
592
+ * to the entire array, but we progressively narrow the windows until there are
593
+ * no children left to update by doing the following:
594
+ *
595
+ * 1. Skip any `null` entries at the beginning or end of the two arrays, so
596
+ * that if we have an initial array like the following we'll end up dealing
597
+ * only with a window bounded by the highlighted elements:
598
+ *
599
+ * [null, null, VNode1 , ... , VNode2, null, null]
600
+ * ^^^^^^ ^^^^^^
601
+ *
602
+ * 2. Check to see if the elements at the head and tail positions are equal
603
+ * across the windows. This will basically detect elements which haven't
604
+ * been added, removed, or changed position, i.e. if you had the following
605
+ * VNode elements (represented as HTML):
606
+ *
607
+ * oldVNode: `<div><p><span>HEY</span></p></div>`
608
+ * newVNode: `<div><p><span>THERE</span></p></div>`
609
+ *
610
+ * Then when comparing the children of the `<div>` tag we check the equality
611
+ * of the VNodes corresponding to the `<p>` tags and, since they are the
612
+ * same tag in the same position, we'd be able to avoid completely
613
+ * re-rendering the subtree under them with a new DOM element and would just
614
+ * call out to `patch` to handle reconciling their children and so on.
615
+ *
616
+ * 3. Check, for both windows, to see if the element at the beginning of the
617
+ * window corresponds to the element at the end of the other window. This is
618
+ * a heuristic which will let us identify _some_ situations in which
619
+ * elements have changed position, for instance it _should_ detect that the
620
+ * children nodes themselves have not changed but merely moved in the
621
+ * following example:
622
+ *
623
+ * oldVNode: `<div><element-one /><element-two /></div>`
624
+ * newVNode: `<div><element-two /><element-one /></div>`
625
+ *
626
+ * If we find cases like this then we also need to move the concrete DOM
627
+ * elements corresponding to the moved children to write the re-order to the
628
+ * DOM.
629
+ *
630
+ * 4. Finally, if VNodes have the `key` attribute set on them we check for any
631
+ * nodes in the old children which have the same key as the first element in
632
+ * our window on the new children. If we find such a node we handle calling
633
+ * out to `patch`, moving relevant DOM nodes, and so on, in accordance with
634
+ * what we find.
635
+ *
636
+ * Finally, once we've narrowed our 'windows' to the point that either of them
637
+ * collapse (i.e. they have length 0) we then handle any remaining VNode
638
+ * insertion or deletion that needs to happen to get a DOM state that correctly
639
+ * reflects the new child VNodes. If, for instance, after our window on the old
640
+ * children has collapsed we still have more nodes on the new children that
641
+ * we haven't dealt with yet then we need to add them, or if the new children
642
+ * collapse but we still have unhandled _old_ children then we need to make
643
+ * sure the corresponding DOM nodes are removed.
644
+ *
645
+ * @param parentElm the node into which the parent VNode is rendered
646
+ * @param oldCh the old children of the parent node
647
+ * @param newVNode the new VNode which will replace the parent
648
+ * @param newCh the new children of the parent node
649
+ */
650
+ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
651
+ let oldStartIdx = 0;
652
+ let newStartIdx = 0;
653
+ let idxInOld = 0;
654
+ let i = 0;
655
+ let oldEndIdx = oldCh.length - 1;
656
+ let oldStartVnode = oldCh[0];
657
+ let oldEndVnode = oldCh[oldEndIdx];
658
+ let newEndIdx = newCh.length - 1;
659
+ let newStartVnode = newCh[0];
660
+ let newEndVnode = newCh[newEndIdx];
661
+ let node;
662
+ let elmToMove;
663
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
664
+ if (oldStartVnode == null) {
665
+ // VNode might have been moved left
666
+ oldStartVnode = oldCh[++oldStartIdx];
667
+ }
668
+ else if (oldEndVnode == null) {
669
+ oldEndVnode = oldCh[--oldEndIdx];
670
+ }
671
+ else if (newStartVnode == null) {
672
+ newStartVnode = newCh[++newStartIdx];
673
+ }
674
+ else if (newEndVnode == null) {
675
+ newEndVnode = newCh[--newEndIdx];
676
+ }
677
+ else if (isSameVnode(oldStartVnode, newStartVnode)) {
678
+ // if the start nodes are the same then we should patch the new VNode
679
+ // onto the old one, and increment our `newStartIdx` and `oldStartIdx`
680
+ // indices to reflect that. We don't need to move any DOM Nodes around
681
+ // since things are matched up in order.
682
+ patch(oldStartVnode, newStartVnode);
683
+ oldStartVnode = oldCh[++oldStartIdx];
684
+ newStartVnode = newCh[++newStartIdx];
685
+ }
686
+ else if (isSameVnode(oldEndVnode, newEndVnode)) {
687
+ // likewise, if the end nodes are the same we patch new onto old and
688
+ // decrement our end indices, and also likewise in this case we don't
689
+ // need to move any DOM Nodes.
690
+ patch(oldEndVnode, newEndVnode);
691
+ oldEndVnode = oldCh[--oldEndIdx];
692
+ newEndVnode = newCh[--newEndIdx];
693
+ }
694
+ else if (isSameVnode(oldStartVnode, newEndVnode)) {
695
+ patch(oldStartVnode, newEndVnode);
696
+ // We need to move the element for `oldStartVnode` into a position which
697
+ // will be appropriate for `newEndVnode`. For this we can use
698
+ // `.insertBefore` and `oldEndVnode.$elm$.nextSibling`. If there is a
699
+ // sibling for `oldEndVnode.$elm$` then we want to move the DOM node for
700
+ // `oldStartVnode` between `oldEndVnode` and it's sibling, like so:
701
+ //
702
+ // <old-start-node />
703
+ // <some-intervening-node />
704
+ // <old-end-node />
705
+ // <!-- -> <-- `oldStartVnode.$elm$` should be inserted here
706
+ // <next-sibling />
707
+ //
708
+ // If instead `oldEndVnode.$elm$` has no sibling then we just want to put
709
+ // the node for `oldStartVnode` at the end of the children of
710
+ // `parentElm`. Luckily, `Node.nextSibling` will return `null` if there
711
+ // aren't any siblings, and passing `null` to `Node.insertBefore` will
712
+ // append it to the children of the parent element.
713
+ parentElm.insertBefore(oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
714
+ oldStartVnode = oldCh[++oldStartIdx];
715
+ newEndVnode = newCh[--newEndIdx];
716
+ }
717
+ else if (isSameVnode(oldEndVnode, newStartVnode)) {
718
+ patch(oldEndVnode, newStartVnode);
719
+ // We've already checked above if `oldStartVnode` and `newStartVnode` are
720
+ // the same node, so since we're here we know that they are not. Thus we
721
+ // can move the element for `oldEndVnode` _before_ the element for
722
+ // `oldStartVnode`, leaving `oldStartVnode` to be reconciled in the
723
+ // future.
724
+ parentElm.insertBefore(oldEndVnode.$elm$, oldStartVnode.$elm$);
725
+ oldEndVnode = oldCh[--oldEndIdx];
726
+ newStartVnode = newCh[++newStartIdx];
727
+ }
728
+ else {
729
+ // Here we do some checks to match up old and new nodes based on the
730
+ // `$key$` attribute, which is set by putting a `key="my-key"` attribute
731
+ // in the JSX for a DOM element in the implementation of a Stencil
732
+ // component.
733
+ //
734
+ // First we check to see if there are any nodes in the array of old
735
+ // children which have the same key as the first node in the new
736
+ // children.
737
+ idxInOld = -1;
738
+ {
739
+ for (i = oldStartIdx; i <= oldEndIdx; ++i) {
740
+ if (oldCh[i] && oldCh[i].$key$ !== null && oldCh[i].$key$ === newStartVnode.$key$) {
741
+ idxInOld = i;
742
+ break;
743
+ }
744
+ }
745
+ }
746
+ if (idxInOld >= 0) {
747
+ // We found a node in the old children which matches up with the first
748
+ // node in the new children! So let's deal with that
749
+ elmToMove = oldCh[idxInOld];
750
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
751
+ // the tag doesn't match so we'll need a new DOM element
752
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
753
+ }
754
+ else {
755
+ patch(elmToMove, newStartVnode);
756
+ // invalidate the matching old node so that we won't try to update it
757
+ // again later on
758
+ oldCh[idxInOld] = undefined;
759
+ node = elmToMove.$elm$;
760
+ }
761
+ newStartVnode = newCh[++newStartIdx];
762
+ }
763
+ else {
764
+ // We either didn't find an element in the old children that matches
765
+ // the key of the first new child OR the build is not using `key`
766
+ // attributes at all. In either case we need to create a new element
767
+ // for the new node.
768
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
769
+ newStartVnode = newCh[++newStartIdx];
770
+ }
771
+ if (node) {
772
+ // if we created a new node then handle inserting it to the DOM
773
+ {
774
+ oldStartVnode.$elm$.parentNode.insertBefore(node, oldStartVnode.$elm$);
775
+ }
776
+ }
777
+ }
778
+ }
779
+ if (oldStartIdx > oldEndIdx) {
780
+ // we have some more new nodes to add which don't match up with old nodes
781
+ addVnodes(parentElm, newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$, newVNode, newCh, newStartIdx, newEndIdx);
782
+ }
783
+ else if (newStartIdx > newEndIdx) {
784
+ // there are nodes in the `oldCh` array which no longer correspond to nodes
785
+ // in the new array, so lets remove them (which entails cleaning up the
786
+ // relevant DOM nodes)
787
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
788
+ }
789
+ };
790
+ /**
791
+ * Compare two VNodes to determine if they are the same
792
+ *
793
+ * **NB**: This function is an equality _heuristic_ based on the available
794
+ * information set on the two VNodes and can be misleading under certain
795
+ * circumstances. In particular, if the two nodes do not have `key` attrs
796
+ * (available under `$key$` on VNodes) then the function falls back on merely
797
+ * checking that they have the same tag.
798
+ *
799
+ * So, in other words, if `key` attrs are not set on VNodes which may be
800
+ * changing order within a `children` array or something along those lines then
801
+ * we could obtain a false negative and then have to do needless re-rendering
802
+ * (i.e. we'd say two VNodes aren't equal when in fact they should be).
803
+ *
804
+ * @param leftVNode the first VNode to check
805
+ * @param rightVNode the second VNode to check
806
+ * @returns whether they're equal or not
807
+ */
808
+ const isSameVnode = (leftVNode, rightVNode) => {
809
+ // compare if two vnode to see if they're "technically" the same
810
+ // need to have the same element tag, and same key to be the same
811
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
812
+ // this will be set if components in the build have `key` attrs set on them
813
+ {
814
+ return leftVNode.$key$ === rightVNode.$key$;
815
+ }
816
+ }
817
+ return false;
818
+ };
819
+ /**
820
+ * Handle reconciling an outdated VNode with a new one which corresponds to
821
+ * it. This function handles flushing updates to the DOM and reconciling the
822
+ * children of the two nodes (if any).
823
+ *
824
+ * @param oldVNode an old VNode whose DOM element and children we want to update
825
+ * @param newVNode a new VNode representing an updated version of the old one
826
+ */
827
+ const patch = (oldVNode, newVNode) => {
828
+ const elm = (newVNode.$elm$ = oldVNode.$elm$);
829
+ const oldChildren = oldVNode.$children$;
830
+ const newChildren = newVNode.$children$;
831
+ const tag = newVNode.$tag$;
832
+ const text = newVNode.$text$;
833
+ if (text === null) {
834
+ {
835
+ // test if we're rendering an svg element, or still rendering nodes inside of one
836
+ // only add this to the when the compiler sees we're using an svg somewhere
837
+ isSvgMode = tag === 'svg' ? true : tag === 'foreignObject' ? false : isSvgMode;
838
+ }
839
+ {
840
+ if (tag === 'slot')
841
+ ;
842
+ else {
843
+ // either this is the first render of an element OR it's an update
844
+ // AND we already know it's possible it could have changed
845
+ // this updates the element's css classes, attrs, props, listeners, etc.
846
+ updateElement(oldVNode, newVNode, isSvgMode);
847
+ }
848
+ }
849
+ if (oldChildren !== null && newChildren !== null) {
850
+ // looks like there's child vnodes for both the old and new vnodes
851
+ // so we need to call `updateChildren` to reconcile them
852
+ updateChildren(elm, oldChildren, newVNode, newChildren);
853
+ }
854
+ else if (newChildren !== null) {
855
+ // no old child vnodes, but there are new child vnodes to add
856
+ if (oldVNode.$text$ !== null) {
857
+ // the old vnode was text, so be sure to clear it out
858
+ elm.textContent = '';
859
+ }
860
+ // add the new vnode children
861
+ addVnodes(elm, null, newVNode, newChildren, 0, newChildren.length - 1);
862
+ }
863
+ else if (oldChildren !== null) {
864
+ // no new child vnodes, but there are old child vnodes to remove
865
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
866
+ }
867
+ if (isSvgMode && tag === 'svg') {
868
+ isSvgMode = false;
869
+ }
870
+ }
871
+ else if (oldVNode.$text$ !== text) {
872
+ // update the text content for the text only vnode
873
+ // and also only if the text is different than before
874
+ elm.data = text;
875
+ }
876
+ };
877
+ const callNodeRefs = (vNode) => {
878
+ {
879
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
880
+ vNode.$children$ && vNode.$children$.map(callNodeRefs);
881
+ }
882
+ };
883
+ /**
884
+ * The main entry point for Stencil's virtual DOM-based rendering engine
885
+ *
886
+ * Given a {@link d.HostRef} container and some virtual DOM nodes, this
887
+ * function will handle creating a virtual DOM tree with a single root, patching
888
+ * the current virtual DOM tree onto an old one (if any), dealing with slot
889
+ * relocation, and reflecting attributes.
890
+ *
891
+ * @param hostRef data needed to root and render the virtual DOM tree, such as
892
+ * the DOM node into which it should be rendered.
893
+ * @param renderFnResults the virtual DOM nodes to be rendered
894
+ */
895
+ const renderVdom = (hostRef, renderFnResults) => {
896
+ const hostElm = hostRef.$hostElement$;
897
+ const cmpMeta = hostRef.$cmpMeta$;
898
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
899
+ const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
900
+ hostTagName = hostElm.tagName;
901
+ if (cmpMeta.$attrsToReflect$) {
902
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
903
+ cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
904
+ }
905
+ rootVnode.$tag$ = null;
906
+ rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
907
+ hostRef.$vnode$ = rootVnode;
908
+ rootVnode.$elm$ = oldVNode.$elm$ = (hostElm.shadowRoot || hostElm );
909
+ {
910
+ scopeId = hostElm['s-sc'];
911
+ }
912
+ // synchronous patch
913
+ patch(oldVNode, rootVnode);
914
+ };
915
+ const attachToAncestor = (hostRef, ancestorComponent) => {
916
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
917
+ ancestorComponent['s-p'].push(new Promise((r) => (hostRef.$onRenderResolve$ = r)));
918
+ }
919
+ };
920
+ const scheduleUpdate = (hostRef, isInitialLoad) => {
921
+ {
922
+ hostRef.$flags$ |= 16 /* HOST_FLAGS.isQueuedForUpdate */;
923
+ }
924
+ if (hostRef.$flags$ & 4 /* HOST_FLAGS.isWaitingForChildren */) {
925
+ hostRef.$flags$ |= 512 /* HOST_FLAGS.needsRerender */;
926
+ return;
927
+ }
928
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
929
+ // there is no ancestor component or the ancestor component
930
+ // has already fired off its lifecycle update then
931
+ // fire off the initial update
932
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
933
+ return writeTask(dispatch) ;
934
+ };
935
+ const dispatchHooks = (hostRef, isInitialLoad) => {
936
+ const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
937
+ const instance = hostRef.$lazyInstance$ ;
938
+ let promise;
939
+ if (isInitialLoad) {
940
+ {
941
+ promise = safeCall(instance, 'componentWillLoad');
942
+ }
943
+ }
944
+ endSchedule();
945
+ return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
946
+ };
947
+ const updateComponent = async (hostRef, instance, isInitialLoad) => {
948
+ // updateComponent
949
+ const elm = hostRef.$hostElement$;
950
+ const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
951
+ const rc = elm['s-rc'];
952
+ if (isInitialLoad) {
953
+ // DOM WRITE!
954
+ attachStyles(hostRef);
955
+ }
956
+ const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
957
+ {
958
+ callRender(hostRef, instance);
959
+ }
960
+ if (rc) {
961
+ // ok, so turns out there are some child host elements
962
+ // waiting on this parent element to load
963
+ // let's fire off all update callbacks waiting
964
+ rc.map((cb) => cb());
965
+ elm['s-rc'] = undefined;
966
+ }
967
+ endRender();
968
+ endUpdate();
969
+ {
970
+ const childrenPromises = elm['s-p'];
971
+ const postUpdate = () => postUpdateComponent(hostRef);
972
+ if (childrenPromises.length === 0) {
973
+ postUpdate();
974
+ }
975
+ else {
976
+ Promise.all(childrenPromises).then(postUpdate);
977
+ hostRef.$flags$ |= 4 /* HOST_FLAGS.isWaitingForChildren */;
978
+ childrenPromises.length = 0;
979
+ }
980
+ }
981
+ };
982
+ const callRender = (hostRef, instance, elm) => {
983
+ try {
984
+ instance = instance.render() ;
985
+ {
986
+ hostRef.$flags$ &= ~16 /* HOST_FLAGS.isQueuedForUpdate */;
987
+ }
988
+ {
989
+ hostRef.$flags$ |= 2 /* HOST_FLAGS.hasRendered */;
990
+ }
991
+ {
992
+ {
993
+ // looks like we've got child nodes to render into this host element
994
+ // or we need to update the css class/attrs on the host element
995
+ // DOM WRITE!
996
+ {
997
+ renderVdom(hostRef, instance);
998
+ }
999
+ }
1000
+ }
1001
+ }
1002
+ catch (e) {
1003
+ consoleError(e, hostRef.$hostElement$);
1004
+ }
1005
+ return null;
1006
+ };
1007
+ const postUpdateComponent = (hostRef) => {
1008
+ const tagName = hostRef.$cmpMeta$.$tagName$;
1009
+ const elm = hostRef.$hostElement$;
1010
+ const endPostUpdate = createTime('postUpdate', tagName);
1011
+ const instance = hostRef.$lazyInstance$ ;
1012
+ const ancestorComponent = hostRef.$ancestorComponent$;
1013
+ if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
1014
+ hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
1015
+ {
1016
+ // DOM WRITE!
1017
+ addHydratedFlag(elm);
1018
+ }
1019
+ {
1020
+ safeCall(instance, 'componentDidLoad');
1021
+ }
1022
+ endPostUpdate();
1023
+ {
1024
+ hostRef.$onReadyResolve$(elm);
1025
+ if (!ancestorComponent) {
1026
+ appDidLoad();
1027
+ }
1028
+ }
1029
+ }
1030
+ else {
1031
+ endPostUpdate();
1032
+ }
1033
+ // load events fire from bottom to top
1034
+ // the deepest elements load first then bubbles up
1035
+ {
1036
+ if (hostRef.$onRenderResolve$) {
1037
+ hostRef.$onRenderResolve$();
1038
+ hostRef.$onRenderResolve$ = undefined;
1039
+ }
1040
+ if (hostRef.$flags$ & 512 /* HOST_FLAGS.needsRerender */) {
1041
+ nextTick(() => scheduleUpdate(hostRef, false));
1042
+ }
1043
+ hostRef.$flags$ &= ~(4 /* HOST_FLAGS.isWaitingForChildren */ | 512 /* HOST_FLAGS.needsRerender */);
1044
+ }
1045
+ // ( •_•)
1046
+ // ( •_•)>⌐■-■
1047
+ // (⌐■_■)
1048
+ };
1049
+ const appDidLoad = (who) => {
1050
+ // on appload
1051
+ // we have finish the first big initial render
1052
+ {
1053
+ addHydratedFlag(doc.documentElement);
1054
+ }
1055
+ nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
1056
+ };
1057
+ const safeCall = (instance, method, arg) => {
1058
+ if (instance && instance[method]) {
1059
+ try {
1060
+ return instance[method](arg);
1061
+ }
1062
+ catch (e) {
1063
+ consoleError(e);
1064
+ }
1065
+ }
1066
+ return undefined;
1067
+ };
1068
+ const then = (promise, thenFn) => {
1069
+ return promise && promise.then ? promise.then(thenFn) : thenFn();
1070
+ };
1071
+ const addHydratedFlag = (elm) => elm.classList.add('hydrated')
1072
+ ;
1073
+ const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
1074
+ const setValue = (ref, propName, newVal, cmpMeta) => {
1075
+ // check our new property value against our internal value
1076
+ const hostRef = getHostRef(ref);
1077
+ const oldVal = hostRef.$instanceValues$.get(propName);
1078
+ const flags = hostRef.$flags$;
1079
+ const instance = hostRef.$lazyInstance$ ;
1080
+ newVal = parsePropertyValue(newVal, cmpMeta.$members$[propName][0]);
1081
+ // explicitly check for NaN on both sides, as `NaN === NaN` is always false
1082
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
1083
+ const didValueChange = newVal !== oldVal && !areBothNaN;
1084
+ if ((!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) || oldVal === undefined) && didValueChange) {
1085
+ // gadzooks! the property's value has changed!!
1086
+ // set our new value!
1087
+ hostRef.$instanceValues$.set(propName, newVal);
1088
+ if (instance) {
1089
+ if ((flags & (2 /* HOST_FLAGS.hasRendered */ | 16 /* HOST_FLAGS.isQueuedForUpdate */)) === 2 /* HOST_FLAGS.hasRendered */) {
1090
+ // looks like this value actually changed, so we've got work to do!
1091
+ // but only if we've already rendered, otherwise just chill out
1092
+ // queue that we need to do an update, but don't worry about queuing
1093
+ // up millions cuz this function ensures it only runs once
1094
+ scheduleUpdate(hostRef, false);
1095
+ }
1096
+ }
1097
+ }
1098
+ };
1099
+ /**
1100
+ * Attach a series of runtime constructs to a compiled Stencil component
1101
+ * constructor, including getters and setters for the `@Prop` and `@State`
1102
+ * decorators, callbacks for when attributes change, and so on.
1103
+ *
1104
+ * @param Cstr the constructor for a component that we need to process
1105
+ * @param cmpMeta metadata collected previously about the component
1106
+ * @param flags a number used to store a series of bit flags
1107
+ * @returns a reference to the same constructor passed in (but now mutated)
1108
+ */
1109
+ const proxyComponent = (Cstr, cmpMeta, flags) => {
1110
+ if (cmpMeta.$members$) {
1111
+ // It's better to have a const than two Object.entries()
1112
+ const members = Object.entries(cmpMeta.$members$);
1113
+ const prototype = Cstr.prototype;
1114
+ members.map(([memberName, [memberFlags]]) => {
1115
+ if ((memberFlags & 31 /* MEMBER_FLAGS.Prop */ ||
1116
+ ((flags & 2 /* PROXY_FLAGS.proxyState */) && memberFlags & 32 /* MEMBER_FLAGS.State */))) {
1117
+ // proxyComponent - prop
1118
+ Object.defineProperty(prototype, memberName, {
1119
+ get() {
1120
+ // proxyComponent, get value
1121
+ return getValue(this, memberName);
1122
+ },
1123
+ set(newValue) {
1124
+ // proxyComponent, set value
1125
+ setValue(this, memberName, newValue, cmpMeta);
1126
+ },
1127
+ configurable: true,
1128
+ enumerable: true,
1129
+ });
1130
+ }
1131
+ });
1132
+ if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
1133
+ const attrNameToPropName = new Map();
1134
+ prototype.attributeChangedCallback = function (attrName, _oldValue, newValue) {
1135
+ plt.jmp(() => {
1136
+ const propName = attrNameToPropName.get(attrName);
1137
+ // In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
1138
+ // in the case where an attribute was set inline.
1139
+ // ```html
1140
+ // <my-component some-attribute="some-value"></my-component>
1141
+ // ```
1142
+ //
1143
+ // There is an edge case where a developer sets the attribute inline on a custom element and then
1144
+ // programmatically changes it before it has been upgraded as shown below:
1145
+ //
1146
+ // ```html
1147
+ // <!-- this component has _not_ been upgraded yet -->
1148
+ // <my-component id="test" some-attribute="some-value"></my-component>
1149
+ // <script>
1150
+ // // grab non-upgraded component
1151
+ // el = document.querySelector("#test");
1152
+ // el.someAttribute = "another-value";
1153
+ // // upgrade component
1154
+ // customElements.define('my-component', MyComponent);
1155
+ // </script>
1156
+ // ```
1157
+ // In this case if we do not unshadow here and use the value of the shadowing property, attributeChangedCallback
1158
+ // will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
1159
+ // to the value that was set inline i.e. "some-value" from above example. When
1160
+ // the connectedCallback attempts to unshadow it will use "some-value" as the initial value rather than "another-value"
1161
+ //
1162
+ // The case where the attribute was NOT set inline but was not set programmatically shall be handled/unshadowed
1163
+ // by connectedCallback as this attributeChangedCallback will not fire.
1164
+ //
1165
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1166
+ //
1167
+ // TODO(STENCIL-16) we should think about whether or not we actually want to be reflecting the attributes to
1168
+ // properties here given that this goes against best practices outlined here
1169
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#avoid-reentrancy
1170
+ if (this.hasOwnProperty(propName)) {
1171
+ newValue = this[propName];
1172
+ delete this[propName];
1173
+ }
1174
+ else if (prototype.hasOwnProperty(propName) &&
1175
+ typeof this[propName] === 'number' &&
1176
+ this[propName] == newValue) {
1177
+ // if the propName exists on the prototype of `Cstr`, this update may be a result of Stencil using native
1178
+ // APIs to reflect props as attributes. Calls to `setAttribute(someElement, propName)` will result in
1179
+ // `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
1180
+ return;
1181
+ }
1182
+ this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
1183
+ });
1184
+ };
1185
+ // create an array of attributes to observe
1186
+ // and also create a map of html attribute name to js property name
1187
+ Cstr.observedAttributes = members
1188
+ .filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */) // filter to only keep props that should match attributes
1189
+ .map(([propName, m]) => {
1190
+ const attrName = m[1] || propName;
1191
+ attrNameToPropName.set(attrName, propName);
1192
+ if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
1193
+ cmpMeta.$attrsToReflect$.push([propName, attrName]);
1194
+ }
1195
+ return attrName;
1196
+ });
1197
+ }
1198
+ }
1199
+ return Cstr;
1200
+ };
1201
+ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
1202
+ // initializeComponent
1203
+ if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
1204
+ {
1205
+ // we haven't initialized this element yet
1206
+ hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
1207
+ // lazy loaded components
1208
+ // request the component's implementation to be
1209
+ // wired up with the host element
1210
+ Cstr = loadModule(cmpMeta);
1211
+ if (Cstr.then) {
1212
+ // Await creates a micro-task avoid if possible
1213
+ const endLoad = uniqueTime();
1214
+ Cstr = await Cstr;
1215
+ endLoad();
1216
+ }
1217
+ if (!Cstr.isProxied) {
1218
+ proxyComponent(Cstr, cmpMeta, 2 /* PROXY_FLAGS.proxyState */);
1219
+ Cstr.isProxied = true;
1220
+ }
1221
+ const endNewInstance = createTime('createInstance', cmpMeta.$tagName$);
1222
+ // ok, time to construct the instance
1223
+ // but let's keep track of when we start and stop
1224
+ // so that the getters/setters don't incorrectly step on data
1225
+ {
1226
+ hostRef.$flags$ |= 8 /* HOST_FLAGS.isConstructingInstance */;
1227
+ }
1228
+ // construct the lazy-loaded component implementation
1229
+ // passing the hostRef is very important during
1230
+ // construction in order to directly wire together the
1231
+ // host element and the lazy-loaded instance
1232
+ try {
1233
+ new Cstr(hostRef);
1234
+ }
1235
+ catch (e) {
1236
+ consoleError(e);
1237
+ }
1238
+ {
1239
+ hostRef.$flags$ &= ~8 /* HOST_FLAGS.isConstructingInstance */;
1240
+ }
1241
+ endNewInstance();
1242
+ fireConnectedCallback(hostRef.$lazyInstance$);
1243
+ }
1244
+ if (Cstr.style) {
1245
+ // this component has styles but we haven't registered them yet
1246
+ let style = Cstr.style;
1247
+ const scopeId = getScopeId(cmpMeta);
1248
+ if (!styles.has(scopeId)) {
1249
+ const endRegisterStyles = createTime('registerStyles', cmpMeta.$tagName$);
1250
+ registerStyle(scopeId, style, !!(cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */));
1251
+ endRegisterStyles();
1252
+ }
1253
+ }
1254
+ }
1255
+ // we've successfully created a lazy instance
1256
+ const ancestorComponent = hostRef.$ancestorComponent$;
1257
+ const schedule = () => scheduleUpdate(hostRef, true);
1258
+ if (ancestorComponent && ancestorComponent['s-rc']) {
1259
+ // this is the initial load and this component it has an ancestor component
1260
+ // but the ancestor component has NOT fired its will update lifecycle yet
1261
+ // so let's just cool our jets and wait for the ancestor to continue first
1262
+ // this will get fired off when the ancestor component
1263
+ // finally gets around to rendering its lazy self
1264
+ // fire off the initial update
1265
+ ancestorComponent['s-rc'].push(schedule);
1266
+ }
1267
+ else {
1268
+ schedule();
1269
+ }
1270
+ };
1271
+ const fireConnectedCallback = (instance) => {
1272
+ {
1273
+ safeCall(instance, 'connectedCallback');
1274
+ }
1275
+ };
1276
+ const connectedCallback = (elm) => {
1277
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1278
+ const hostRef = getHostRef(elm);
1279
+ const cmpMeta = hostRef.$cmpMeta$;
1280
+ const endConnected = createTime('connectedCallback', cmpMeta.$tagName$);
1281
+ if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
1282
+ // first time this component has connected
1283
+ hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
1284
+ {
1285
+ // find the first ancestor component (if there is one) and register
1286
+ // this component as one of the actively loading child components for its ancestor
1287
+ let ancestorComponent = elm;
1288
+ while ((ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host)) {
1289
+ // climb up the ancestors looking for the first
1290
+ // component that hasn't finished its lifecycle update yet
1291
+ if (ancestorComponent['s-p']) {
1292
+ // we found this components first ancestor component
1293
+ // keep a reference to this component's ancestor component
1294
+ attachToAncestor(hostRef, (hostRef.$ancestorComponent$ = ancestorComponent));
1295
+ break;
1296
+ }
1297
+ }
1298
+ }
1299
+ // Lazy properties
1300
+ // https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
1301
+ if (cmpMeta.$members$) {
1302
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
1303
+ if (memberFlags & 31 /* MEMBER_FLAGS.Prop */ && elm.hasOwnProperty(memberName)) {
1304
+ const value = elm[memberName];
1305
+ delete elm[memberName];
1306
+ elm[memberName] = value;
1307
+ }
1308
+ });
1309
+ }
1310
+ {
1311
+ initializeComponent(elm, hostRef, cmpMeta);
1312
+ }
1313
+ }
1314
+ else {
1315
+ // fire off connectedCallback() on component instance
1316
+ fireConnectedCallback(hostRef.$lazyInstance$);
1317
+ }
1318
+ endConnected();
1319
+ }
1320
+ };
1321
+ const disconnectedCallback = (elm) => {
1322
+ if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
1323
+ const hostRef = getHostRef(elm);
1324
+ const instance = hostRef.$lazyInstance$ ;
1325
+ {
1326
+ safeCall(instance, 'disconnectedCallback');
1327
+ }
1328
+ }
1329
+ };
1330
+ const bootstrapLazy = (lazyBundles, options = {}) => {
1331
+ var _a;
1332
+ const endBootstrap = createTime();
1333
+ const cmpTags = [];
1334
+ const exclude = options.exclude || [];
1335
+ const customElements = win.customElements;
1336
+ const head = doc.head;
1337
+ const metaCharset = /*@__PURE__*/ head.querySelector('meta[charset]');
1338
+ const visibilityStyle = /*@__PURE__*/ doc.createElement('style');
1339
+ const deferredConnectedCallbacks = [];
1340
+ let appLoadFallback;
1341
+ let isBootstrapping = true;
1342
+ Object.assign(plt, options);
1343
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || './', doc.baseURI).href;
1344
+ lazyBundles.map((lazyBundle) => {
1345
+ lazyBundle[1].map((compactMeta) => {
1346
+ const cmpMeta = {
1347
+ $flags$: compactMeta[0],
1348
+ $tagName$: compactMeta[1],
1349
+ $members$: compactMeta[2],
1350
+ $listeners$: compactMeta[3],
1351
+ };
1352
+ {
1353
+ cmpMeta.$members$ = compactMeta[2];
1354
+ }
1355
+ {
1356
+ cmpMeta.$attrsToReflect$ = [];
1357
+ }
1358
+ const tagName = cmpMeta.$tagName$;
1359
+ const HostElement = class extends HTMLElement {
1360
+ // StencilLazyHost
1361
+ constructor(self) {
1362
+ // @ts-ignore
1363
+ super(self);
1364
+ self = this;
1365
+ registerHost(self, cmpMeta);
1366
+ if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
1367
+ // this component is using shadow dom
1368
+ // and this browser supports shadow dom
1369
+ // add the read-only property "shadowRoot" to the host element
1370
+ // adding the shadow root build conditionals to minimize runtime
1371
+ {
1372
+ {
1373
+ self.attachShadow({ mode: 'open' });
1374
+ }
1375
+ }
1376
+ }
1377
+ }
1378
+ connectedCallback() {
1379
+ if (appLoadFallback) {
1380
+ clearTimeout(appLoadFallback);
1381
+ appLoadFallback = null;
1382
+ }
1383
+ if (isBootstrapping) {
1384
+ // connectedCallback will be processed once all components have been registered
1385
+ deferredConnectedCallbacks.push(this);
1386
+ }
1387
+ else {
1388
+ plt.jmp(() => connectedCallback(this));
1389
+ }
1390
+ }
1391
+ disconnectedCallback() {
1392
+ plt.jmp(() => disconnectedCallback(this));
1393
+ }
1394
+ componentOnReady() {
1395
+ return getHostRef(this).$onReadyPromise$;
1396
+ }
1397
+ };
1398
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
1399
+ if (!exclude.includes(tagName) && !customElements.get(tagName)) {
1400
+ cmpTags.push(tagName);
1401
+ customElements.define(tagName, proxyComponent(HostElement, cmpMeta, 1 /* PROXY_FLAGS.isElementConstructor */));
1402
+ }
1403
+ });
1404
+ });
1405
+ {
1406
+ visibilityStyle.innerHTML = cmpTags + HYDRATED_CSS;
1407
+ visibilityStyle.setAttribute('data-styles', '');
1408
+ // Apply CSP nonce to the style tag if it exists
1409
+ const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
1410
+ if (nonce != null) {
1411
+ visibilityStyle.setAttribute('nonce', nonce);
1412
+ }
1413
+ head.insertBefore(visibilityStyle, metaCharset ? metaCharset.nextSibling : head.firstChild);
1414
+ }
1415
+ // Process deferred connectedCallbacks now all components have been registered
1416
+ isBootstrapping = false;
1417
+ if (deferredConnectedCallbacks.length) {
1418
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
1419
+ }
1420
+ else {
1421
+ {
1422
+ plt.jmp(() => (appLoadFallback = setTimeout(appDidLoad, 30)));
1423
+ }
1424
+ }
1425
+ // Fallback appLoad event
1426
+ endBootstrap();
1427
+ };
1428
+ /**
1429
+ * Assigns the given value to the nonce property on the runtime platform object.
1430
+ * During runtime, this value is used to set the nonce attribute on all dynamically created script and style tags.
1431
+ * @param nonce The value to be assigned to the platform nonce property.
1432
+ * @returns void
1433
+ */
1434
+ const setNonce = (nonce) => (plt.$nonce$ = nonce);
1435
+ const hostRefs = /*@__PURE__*/ new WeakMap();
1436
+ const getHostRef = (ref) => hostRefs.get(ref);
1437
+ const registerInstance = (lazyInstance, hostRef) => hostRefs.set((hostRef.$lazyInstance$ = lazyInstance), hostRef);
1438
+ const registerHost = (elm, cmpMeta) => {
1439
+ const hostRef = {
1440
+ $flags$: 0,
1441
+ $hostElement$: elm,
1442
+ $cmpMeta$: cmpMeta,
1443
+ $instanceValues$: new Map(),
1444
+ };
1445
+ {
1446
+ hostRef.$onReadyPromise$ = new Promise((r) => (hostRef.$onReadyResolve$ = r));
1447
+ elm['s-p'] = [];
1448
+ elm['s-rc'] = [];
1449
+ }
1450
+ return hostRefs.set(elm, hostRef);
1451
+ };
1452
+ const isMemberInElement = (elm, memberName) => memberName in elm;
1453
+ const consoleError = (e, el) => (0, console.error)(e, el);
1454
+ const cmpModules = /*@__PURE__*/ new Map();
1455
+ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1456
+ // loadModuleImport
1457
+ const exportName = cmpMeta.$tagName$.replace(/-/g, '_');
1458
+ const bundleId = cmpMeta.$lazyBundleId$;
1459
+ const module = cmpModules.get(bundleId) ;
1460
+ if (module) {
1461
+ return module[exportName];
1462
+ }
1463
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
1464
+ return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(
1465
+ /* @vite-ignore */
1466
+ /* webpackInclude: /\.entry\.js$/ */
1467
+ /* webpackExclude: /\.system\.entry\.js$/ */
1468
+ /* webpackMode: "lazy" */
1469
+ `./${bundleId}.entry.js${''}`)); }).then((importedModule) => {
1470
+ {
1471
+ cmpModules.set(bundleId, importedModule);
1472
+ }
1473
+ return importedModule[exportName];
1474
+ }, consoleError);
1475
+ };
1476
+ const styles = /*@__PURE__*/ new Map();
1477
+ const win = typeof window !== 'undefined' ? window : {};
1478
+ const doc = win.document || { head: {} };
1479
+ const plt = {
1480
+ $flags$: 0,
1481
+ $resourcesUrl$: '',
1482
+ jmp: (h) => h(),
1483
+ raf: (h) => requestAnimationFrame(h),
1484
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
1485
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
1486
+ ce: (eventName, opts) => new CustomEvent(eventName, opts),
1487
+ };
1488
+ const promiseResolve = (v) => Promise.resolve(v);
1489
+ const supportsConstructableStylesheets = /*@__PURE__*/ (() => {
1490
+ try {
1491
+ new CSSStyleSheet();
1492
+ return typeof new CSSStyleSheet().replaceSync === 'function';
1493
+ }
1494
+ catch (e) { }
1495
+ return false;
1496
+ })()
1497
+ ;
1498
+ const queueDomReads = [];
1499
+ const queueDomWrites = [];
1500
+ const queueTask = (queue, write) => (cb) => {
1501
+ queue.push(cb);
1502
+ if (!queuePending) {
1503
+ queuePending = true;
1504
+ if (write && plt.$flags$ & 4 /* PLATFORM_FLAGS.queueSync */) {
1505
+ nextTick(flush);
1506
+ }
1507
+ else {
1508
+ plt.raf(flush);
1509
+ }
1510
+ }
1511
+ };
1512
+ const consume = (queue) => {
1513
+ for (let i = 0; i < queue.length; i++) {
1514
+ try {
1515
+ queue[i](performance.now());
1516
+ }
1517
+ catch (e) {
1518
+ consoleError(e);
1519
+ }
1520
+ }
1521
+ queue.length = 0;
1522
+ };
1523
+ const flush = () => {
1524
+ // always force a bunch of medium callbacks to run, but still have
1525
+ // a throttle on how many can run in a certain time
1526
+ // DOM READS!!!
1527
+ consume(queueDomReads);
1528
+ // DOM WRITES!!!
1529
+ {
1530
+ consume(queueDomWrites);
1531
+ if ((queuePending = queueDomReads.length > 0)) {
1532
+ // still more to do yet, but we've run out of time
1533
+ // let's let this thing cool off and try again in the next tick
1534
+ plt.raf(flush);
1535
+ }
1536
+ }
1537
+ };
1538
+ const nextTick = /*@__PURE__*/ (cb) => promiseResolve().then(cb);
1539
+ const writeTask = /*@__PURE__*/ queueTask(queueDomWrites, true);
1540
+
1541
+ exports.Host = Host;
1542
+ exports.bootstrapLazy = bootstrapLazy;
1543
+ exports.getElement = getElement;
1544
+ exports.h = h;
1545
+ exports.promiseResolve = promiseResolve;
1546
+ exports.registerInstance = registerInstance;
1547
+ exports.setNonce = setNonce;