@enhance-eng/sandbox 0.3.16 → 0.3.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- const _0x342511=_0x3436;(function(_0x15343a,_0x5258b5){const _0x5422c0=_0x3436,_0x5b7ad5=_0x15343a();while(!![]){try{const _0x9f5a0e=-parseInt(_0x5422c0(0x1f1))/0x1*(-parseInt(_0x5422c0(0x282))/0x2)+-parseInt(_0x5422c0(0x228))/0x3*(-parseInt(_0x5422c0(0x296))/0x4)+-parseInt(_0x5422c0(0x234))/0x5+-parseInt(_0x5422c0(0x254))/0x6+-parseInt(_0x5422c0(0x2b1))/0x7+parseInt(_0x5422c0(0x299))/0x8*(-parseInt(_0x5422c0(0x260))/0x9)+parseInt(_0x5422c0(0x247))/0xa;if(_0x9f5a0e===_0x5258b5)break;else _0x5b7ad5['push'](_0x5b7ad5['shift']());}catch(_0x260a31){_0x5b7ad5['push'](_0x5b7ad5['shift']());}}}(_0x3a8c,0xb5bcf));function normalizeOptions(_0x3cc3c7){const _0x4c63c6=_0x3436,_0x4d590a=_0x3cc3c7[_0x4c63c6(0x29c)]??{};return{'callbackBypass':_0x3cc3c7[_0x4c63c6(0x241)],'overlay':{'enabled':!![],'position':_0x4c63c6(0x222),'enableViteHmr':_0x4d590a[_0x4c63c6(0x20c)]??![]},'logLevel':_0x4c63c6(0x28d),'swPath':_0x4c63c6(0x218),'overlayPath':_0x4d590a[_0x4c63c6(0x264)]??_0x4c63c6(0x1fc),'runtimeScriptPath':_0x4c63c6(0x245),'security':_0x4d590a[_0x4c63c6(0x20a)]??_0x4c63c6(0x2b3),'backendUrl':_0x4d590a['backendUrl']??_0x4c63c6(0x283)};}var state={'enabled':![],'controlled':![]};function getEnhancementUrl(){const _0x471030=_0x3436;try{const _0x535805=new URLSearchParams(window[_0x471030(0x28f)][_0x471030(0x27f)]);return _0x535805[_0x471030(0x1f2)]('enhancementUrl')?.['trim']()||'';}catch{return'';}}var LOG_PREFIX=_0x342511(0x24c),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x27080b){const _0x3593b4=_0x342511;console[_0x3593b4(0x29e)](LOG_PREFIX+_0x3593b4(0x1fe)),console[_0x3593b4(0x29e)](LOG_PREFIX+_0x3593b4(0x225)+_0x27080b[_0x3593b4(0x264)]),console[_0x3593b4(0x29e)](LOG_PREFIX+_0x3593b4(0x268)+_0x27080b[_0x3593b4(0x27b)]),currentOptions=_0x27080b['options'],toggleHandler=_0x27080b[_0x3593b4(0x258)];if(overlayController){console['log'](LOG_PREFIX+_0x3593b4(0x22d)),updateOverlay();return;}if(overlayLoadPromise)return console['log'](LOG_PREFIX+_0x3593b4(0x253)),overlayLoadPromise;console[_0x3593b4(0x29e)](LOG_PREFIX+_0x3593b4(0x279)),overlayLoadPromise=doLoadOverlay(_0x27080b);try{await overlayLoadPromise,console[_0x3593b4(0x29e)](LOG_PREFIX+_0x3593b4(0x1ed));}catch(_0x3147b9){console[_0x3593b4(0x250)](LOG_PREFIX+'\x20loadOverlay()\x20failed:',_0x3147b9);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x10ee8a){const _0x364537=_0x342511;console[_0x364537(0x29e)](LOG_PREFIX+'\x20doLoadOverlay()\x20starting...');if(typeof window===_0x364537(0x226)){console[_0x364537(0x29e)](LOG_PREFIX+'\x20No\x20window\x20object\x20-\x20skipping');return;}if(window[_0x364537(0x1fb)]){console[_0x364537(0x29e)](LOG_PREFIX+_0x364537(0x255)),overlayController=window[_0x364537(0x1fb)],overlayController[_0x364537(0x258)](_0x10ee8a[_0x364537(0x258)]),updateOverlay();return;}console[_0x364537(0x29e)](LOG_PREFIX+'\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module');try{_0x10ee8a['enableViteHmr']&&(console[_0x364537(0x29e)](LOG_PREFIX+_0x364537(0x28a)),await setupRemoteHMR(_0x10ee8a[_0x364537(0x264)]));console['log'](LOG_PREFIX+_0x364537(0x1f6)+_0x10ee8a[_0x364537(0x264)]);const _0x4e1111=Date['now'](),_0x3f3bb1=await import(_0x10ee8a[_0x364537(0x264)]);console['log'](LOG_PREFIX+_0x364537(0x220)+(Date['now']()-_0x4e1111)+'ms'),console[_0x364537(0x29e)](LOG_PREFIX+_0x364537(0x259),Object[_0x364537(0x22f)](_0x3f3bb1));if(typeof _0x3f3bb1?.[_0x364537(0x27a)]!==_0x364537(0x21b)){console[_0x364537(0x250)](LOG_PREFIX+_0x364537(0x1ec)),console['error'](LOG_PREFIX+_0x364537(0x26b),Object[_0x364537(0x22f)](_0x3f3bb1));return;}console['log'](LOG_PREFIX+_0x364537(0x25b));const _0x4f5e59=_0x3f3bb1[_0x364537(0x27a)]();console[_0x364537(0x29e)](LOG_PREFIX+_0x364537(0x269),_0x4f5e59),overlayController=_0x4f5e59,window[_0x364537(0x1fb)]=_0x4f5e59,_0x4f5e59['onToggle'](_0x10ee8a[_0x364537(0x258)]),console[_0x364537(0x29e)](LOG_PREFIX+_0x364537(0x295)),console[_0x364537(0x29e)](LOG_PREFIX+_0x364537(0x205)),updateOverlay();}catch(_0x3f60b9){console[_0x364537(0x250)](LOG_PREFIX+_0x364537(0x2a5),_0x3f60b9);}}function updateOverlay(){const _0x5e3f95=_0x342511;console['log'](LOG_PREFIX+_0x5e3f95(0x1e8)),console[_0x5e3f95(0x29e)](LOG_PREFIX+'\x20overlayController\x20exists:\x20'+!!overlayController),console['log'](LOG_PREFIX+_0x5e3f95(0x20e)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x5e3f95(0x29e)](LOG_PREFIX+_0x5e3f95(0x23d));return;}const _0x34e329=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+'\x20Updating\x20overlay\x20with\x20state:',JSON[_0x5e3f95(0x243)](_0x34e329,null,0x2)),overlayController[_0x5e3f95(0x286)](_0x34e329),console[_0x5e3f95(0x29e)](LOG_PREFIX+'\x20Overlay\x20update\x20complete');}function composeOverlayState(_0x2618e4){const _0x32dfaa=_0x342511,_0x401a5f=getEnhancementUrl();return console[_0x32dfaa(0x29e)](LOG_PREFIX+_0x32dfaa(0x20f)+_0x401a5f),console[_0x32dfaa(0x29e)](LOG_PREFIX+_0x32dfaa(0x209)+state[_0x32dfaa(0x276)]),console['log'](LOG_PREFIX+_0x32dfaa(0x232)+state[_0x32dfaa(0x285)]),{'enhancementUrl':_0x401a5f,'enabled':state['enabled'],'controlled':state[_0x32dfaa(0x285)],'overlayPosition':_0x2618e4[_0x32dfaa(0x27d)][_0x32dfaa(0x216)],'securityMode':_0x2618e4[_0x32dfaa(0x20a)],'backendBaseUrl':_0x2618e4[_0x32dfaa(0x214)]};}async function setupRemoteHMR(_0x546ed9){const _0x40ae93=_0x342511;console[_0x40ae93(0x29e)](LOG_PREFIX+_0x40ae93(0x25d)+_0x546ed9);if(typeof window===_0x40ae93(0x226))return;try{const _0x2901c9=new URL(_0x546ed9,window[_0x40ae93(0x28f)][_0x40ae93(0x22e)]),_0xbf9ee4=_0x2901c9['origin'];console['log'](LOG_PREFIX+'\x20Overlay\x20origin:\x20'+_0xbf9ee4+_0x40ae93(0x203)+window[_0x40ae93(0x28f)]['origin']);if(_0xbf9ee4===window[_0x40ae93(0x28f)][_0x40ae93(0x22e)]){console[_0x40ae93(0x29e)](LOG_PREFIX+'\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup');return;}console['log'](LOG_PREFIX+_0x40ae93(0x287)),await ensureReactRefreshPreamble(_0xbf9ee4),await ensureViteClient(_0xbf9ee4),console['log'](LOG_PREFIX+_0x40ae93(0x2aa));}catch(_0x41b339){console[_0x40ae93(0x20d)](LOG_PREFIX+_0x40ae93(0x246),_0x41b339);}}async function ensureReactRefreshPreamble(_0x29de09){const _0x455bf8=_0x342511;window[_0x455bf8(0x1e6)]??(window[_0x455bf8(0x1e6)]=new Set());if(window[_0x455bf8(0x1e6)][_0x455bf8(0x25f)](_0x29de09)){console[_0x455bf8(0x29e)](LOG_PREFIX+'\x20React\x20Refresh\x20already\x20installed\x20for\x20'+_0x29de09);return;}console[_0x455bf8(0x29e)](LOG_PREFIX+_0x455bf8(0x221)+_0x29de09+_0x455bf8(0x24d));const _0x46f3df=await import(_0x29de09+_0x455bf8(0x2a6)),_0x4efa0a=_0x46f3df&&typeof _0x46f3df===_0x455bf8(0x256)&&_0x455bf8(0x248)in _0x46f3df?_0x46f3df[_0x455bf8(0x248)]:_0x46f3df;if(!isRefreshRuntime(_0x4efa0a)){console[_0x455bf8(0x20d)](LOG_PREFIX+_0x455bf8(0x266));return;}_0x4efa0a[_0x455bf8(0x1ea)](window),window[_0x455bf8(0x236)]=()=>{},window[_0x455bf8(0x292)]=()=>_0x1fdc1e=>_0x1fdc1e,window['__vite_plugin_react_preamble_installed__']=!![],window[_0x455bf8(0x1e6)]['add'](_0x29de09),console[_0x455bf8(0x29e)](LOG_PREFIX+_0x455bf8(0x290)+_0x29de09);}async function ensureViteClient(_0x1b6c8d){const _0x892529=_0x342511;window[_0x892529(0x289)]??(window[_0x892529(0x289)]=new Set());if(window['__viteHMRLoaded'][_0x892529(0x25f)](_0x1b6c8d)){console[_0x892529(0x29e)](LOG_PREFIX+_0x892529(0x244)+_0x1b6c8d);return;}console[_0x892529(0x29e)](LOG_PREFIX+_0x892529(0x278)+_0x1b6c8d+_0x892529(0x24d)),await import(_0x1b6c8d+_0x892529(0x204)),window['__viteHMRLoaded'][_0x892529(0x1f8)](_0x1b6c8d),console[_0x892529(0x29e)](LOG_PREFIX+_0x892529(0x2a9)+_0x1b6c8d);}function isRefreshRuntime(_0x1e8fba){const _0x3a75d2=_0x342511;return typeof _0x1e8fba==='object'&&_0x1e8fba!==null&&_0x3a75d2(0x1ea)in _0x1e8fba&&typeof _0x1e8fba[_0x3a75d2(0x1ea)]==='function';}var WORKER_MESSAGE_CONFIG=_0x342511(0x20b),WORKER_MESSAGE_DISABLE=_0x342511(0x235),WORKER_MESSAGE_REQUEST_CONFIG=_0x342511(0x242),LOG_PREFIX2=_0x342511(0x212),registration=null,messageListener=null,currentOptions2=null,configGetter=null;async function registerServiceWorker(_0x798642){const _0x22412b=_0x342511;console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x23a)),console[_0x22412b(0x29e)](LOG_PREFIX2+'\x20swPath:\x20'+_0x798642[_0x22412b(0x21a)]);if(!(_0x22412b(0x23f)in navigator)){console['warn'](LOG_PREFIX2+'\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser');return;}console[_0x22412b(0x29e)](LOG_PREFIX2+'\x20Service\x20workers\x20supported');const _0x5e3135=navigator[_0x22412b(0x23f)][_0x22412b(0x2b2)];console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x227),_0x5e3135?.[_0x22412b(0x206)]??_0x22412b(0x2ac)),console[_0x22412b(0x29e)](LOG_PREFIX2+'\x20Controller\x20state:',_0x5e3135?.[_0x22412b(0x2a1)]??'N/A');const _0x2862b4=!!_0x5e3135;currentOptions2=_0x798642,configGetter=()=>buildWorkerConfiguration(_0x798642),console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x21f));const _0x48dc52=await detectBlockingServiceWorker(_0x798642[_0x22412b(0x21a)]);if(_0x48dc52){console[_0x22412b(0x250)](LOG_PREFIX2+_0x22412b(0x1ee)+_0x48dc52),console[_0x22412b(0x250)](LOG_PREFIX2+_0x22412b(0x231));return;}console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x21e));try{console['log'](LOG_PREFIX2+'\x20Registering\x20SW\x20at\x20'+_0x798642[_0x22412b(0x21a)]+'\x20with\x20scope\x20\x27/\x27...'),registration=await navigator[_0x22412b(0x23f)][_0x22412b(0x272)](_0x798642[_0x22412b(0x21a)],{'scope':'/'}),console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x1e5),{'scope':registration['scope'],'active':registration[_0x22412b(0x219)]?.[_0x22412b(0x206)],'waiting':registration['waiting']?.[_0x22412b(0x206)],'installing':registration[_0x22412b(0x277)]?.[_0x22412b(0x206)]}),console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x293));const _0x2842d4=await navigator['serviceWorker']['ready'];console[_0x22412b(0x29e)](LOG_PREFIX2+'\x20SW\x20ready!\x20Active:',_0x2842d4[_0x22412b(0x219)]?.[_0x22412b(0x206)]);const _0x3949ab=ownsCurrentController(_0x798642[_0x22412b(0x21a)]);state[_0x22412b(0x285)]=_0x3949ab,console['log'](LOG_PREFIX2+_0x22412b(0x233)+_0x3949ab),console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x26d),navigator[_0x22412b(0x23f)][_0x22412b(0x2b2)]?.[_0x22412b(0x206)]??_0x22412b(0x2ac));if(!_0x2862b4&&!navigator[_0x22412b(0x23f)][_0x22412b(0x2b2)]){console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x229)),window['location'][_0x22412b(0x297)]();return;}console['log'](LOG_PREFIX2+_0x22412b(0x23c)),attachMessageListener(),console['log'](LOG_PREFIX2+'\x20Sending\x20initial\x20configuration...'),await sendConfiguration();if(state['enabled']){const _0x53e38c=document[_0x22412b(0x26e)](_0x22412b(0x21d))!==null;console['log'](LOG_PREFIX2+'\x20Enhancement\x20detection:\x20wasEnhanced='+_0x53e38c);if(!_0x53e38c){console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x207)),window[_0x22412b(0x28f)][_0x22412b(0x297)]();return;}}console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x29f)),updateOverlay(),console[_0x22412b(0x29e)](LOG_PREFIX2+_0x22412b(0x26a));}catch(_0x14566e){console[_0x22412b(0x250)](LOG_PREFIX2+_0x22412b(0x2b0),_0x14566e);}}async function sendConfiguration(){const _0xe6306b=_0x342511;console[_0xe6306b(0x29e)](LOG_PREFIX2+_0xe6306b(0x22b)),console[_0xe6306b(0x29e)](LOG_PREFIX2+_0xe6306b(0x2a0)+state[_0xe6306b(0x276)]+_0xe6306b(0x1f0)+!!configGetter);if(!state[_0xe6306b(0x276)]||!configGetter){console[_0xe6306b(0x29e)](LOG_PREFIX2+_0xe6306b(0x24a));return;}const _0x22106b=await resolveWorker();if(!_0x22106b){console[_0xe6306b(0x20d)](LOG_PREFIX2+_0xe6306b(0x298));return;}const _0x348c44=configGetter();console[_0xe6306b(0x29e)](LOG_PREFIX2+_0xe6306b(0x29b),JSON[_0xe6306b(0x243)](_0x348c44,null,0x2)),_0x22106b[_0xe6306b(0x211)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x348c44}),console[_0xe6306b(0x29e)](LOG_PREFIX2+_0xe6306b(0x1fa));}function _0x3a8c(){const _0x251f9c=['\x20Invalid\x20React\x20Refresh\x20runtime','searchParams','\x20enableViteHmr:\x20','\x20Controller\x20created:','\x20registerServiceWorker()\x20complete','\x20Available\x20exports:','MIT','\x20Current\x20controller\x20after\x20ready:','querySelector','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','public','scope','register','replaceState','\x20detectBlocking\x20error:','dist','enabled','installing','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','\x20Starting\x20fresh\x20overlay\x20load...','createOverlay','enableViteHmr','./dist/index.cjs','overlay',',\x20owns=','search','\x20detectBlocking\x20-\x20existing\x20registration:','\x20Document\x20readyState:\x20','2DHNnty','https://api.enhancelabs.ai','bin/enhance-sandbox.js','controlled','update','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','\x20enhancementUrl:\x20','__viteHMRLoaded','\x20Setting\x20up\x20remote\x20HMR...','\x20Unregistering\x20SW...','waiting','info','module','location','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','$RefreshSig$','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','^24.10.1','\x20Overlay\x20controller\x20initialized\x20and\x20cached','1704292cdngYX','reload','\x20No\x20service\x20worker\x20active\x20to\x20configure','64mNzvGx','\x20Message\x20listener\x20detached','\x20Sending\x20config\x20to\x20SW:','__development','href','log','\x20Updating\x20overlay...','\x20state.enabled:\x20','state','\x20resolveWorker:','sw-enhance','0.3.16','\x20Failed\x20to\x20import/create\x20overlay:','/@react-refresh','delete','startsWith','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','\x20HMR\x20setup\x20complete','data','none','type','readyState','enhancement','\x20Failed\x20to\x20register\x20service\x20worker:','4986345LFAfte','controller','permissive','\x20Registration\x20returned:','__enhanceReactRefreshInstalledOrigins','./dist/vite/index.js','\x20updateOverlay()\x20called','removeEventListener','injectIntoGlobalHook','state:\x20','\x20Module\x20missing\x20createOverlay\x20export!','\x20loadOverlay()\x20complete','\x20BLOCKING\x20SW\x20detected:\x20','enhancementUrl',',\x20configGetter:\x20','320359bATfUA','get','explicitDisable','\x20No\x20current\x20controller','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','\x20Importing\x20overlay\x20module\x20from:\x20','runtimeScriptPath','add','\x20buildWorkerConfiguration\x20-\x20enhancementUrl:\x20','\x20Config\x20sent\x20to\x20SW','__enhanceOverlay','https://assets.enhancelabs.ai/overlay.js','./dist/index.d.ts','\x20loadOverlay()\x20called','\x20Current\x20URL:\x20','\x20Message\x20listener\x20already\x20attached\x20or\x20no\x20SW\x20support','\x20URL\x20params\x20parsed:','message',',\x20page\x20origin:\x20','/@vite/client','\x20Calling\x20updateOverlay()...','scriptURL','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','^4.1.1','\x20composeOverlayState\x20-\x20state.enabled:\x20','security','enhance:configure','enableOverlayHmr','warn','\x20currentOptions\x20exists:\x20','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','N/A','postMessage','[Enhance\x20SW-Client]','off','backendUrl','^3.22.4','position','\x20SW\x20requested\x20config\x20-\x20sending...','/sw-enhance.js','active','swPath','function','[Enhance\x20Runtime]','[data-enhance-runtime-bootstrap]','\x20No\x20blocking\x20SW\x20found','\x20Checking\x20for\x20blocking\x20service\x20worker...','\x20Module\x20imported\x20in\x20','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','bottom-right','./dist/index.js','some','\x20overlayPath:\x20','undefined','\x20Current\x20controller:','3ecFhuX','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','^11.1.0','\x20sendConfiguration()\x20called','https://','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','origin','keys','enable','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','\x20composeOverlayState\x20-\x20state.controlled:\x20','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','4023085DsEMsz','enhance:disable','$RefreshReg$','enhance','\x20Raw\x20options:','bin','\x20registerServiceWorker()\x20called','\x20ownsServiceWorker?\x20scriptURL=','\x20Attaching\x20message\x20listener...','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','^7.2.4','serviceWorker','\x20Unregistering\x20any\x20existing\x20SW...','callbackBypass','enhance:request-config','stringify','\x20Vite\x20client\x20already\x20loaded\x20for\x20','/assets/enhance-runtime.js','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','19182760HBAlqg','default','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20configGetter','history','[Enhance\x20Overlay]','...','includes','enhancementId','error','unregister','\x20Starting\x20overlay\x20load\x20(async)...','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','1792782FmECzf','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay','object','\x20Enhancement\x20mode\x20ENABLED','onToggle','\x20Module\x20exports:','false','\x20Calling\x20createOverlay()...','disable','\x20setupRemoteHMR()\x20for\x20','\x20Message\x20listener\x20attached','has','117630FHHchi','getRegistration','init','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','overlayPath','addEventListener'];_0x3a8c=function(){return _0x251f9c;};return _0x3a8c();}async function unregisterServiceWorker(_0x460ab0){const _0x4b5d57=_0x342511;console[_0x4b5d57(0x29e)](LOG_PREFIX2+'\x20unregisterServiceWorker()\x20called');if(!(_0x4b5d57(0x23f)in navigator)){console[_0x4b5d57(0x29e)](LOG_PREFIX2+'\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister');return;}detachMessageListener();try{const _0x19cc8d=registration??await navigator[_0x4b5d57(0x23f)]['getRegistration']('/');if(!_0x19cc8d){console[_0x4b5d57(0x29e)](LOG_PREFIX2+_0x4b5d57(0x249));return;}console[_0x4b5d57(0x29e)](LOG_PREFIX2+'\x20Found\x20registration:',{'scope':_0x19cc8d[_0x4b5d57(0x271)],'active':_0x19cc8d[_0x4b5d57(0x219)]?.[_0x4b5d57(0x206)],'waiting':_0x19cc8d[_0x4b5d57(0x28c)]?.['scriptURL'],'installing':_0x19cc8d['installing']?.[_0x4b5d57(0x206)]});const _0x62a986=[_0x19cc8d[_0x4b5d57(0x219)]?.[_0x4b5d57(0x206)],_0x19cc8d[_0x4b5d57(0x28c)]?.[_0x4b5d57(0x206)],_0x19cc8d[_0x4b5d57(0x277)]?.[_0x4b5d57(0x206)]],_0x21aec5=_0x62a986[_0x4b5d57(0x224)](_0x4f2c41=>_0x4f2c41&&ownsServiceWorker(_0x4f2c41,_0x460ab0));if(!_0x21aec5){console[_0x4b5d57(0x29e)](LOG_PREFIX2+_0x4b5d57(0x1f5));return;}_0x19cc8d[_0x4b5d57(0x219)]&&(console['log'](LOG_PREFIX2+_0x4b5d57(0x291)),_0x19cc8d[_0x4b5d57(0x219)][_0x4b5d57(0x211)]({'type':WORKER_MESSAGE_DISABLE})),console[_0x4b5d57(0x29e)](LOG_PREFIX2+_0x4b5d57(0x28b)),await _0x19cc8d[_0x4b5d57(0x251)](),registration=null,console['log'](LOG_PREFIX2+'\x20SW\x20unregistered\x20successfully');}catch(_0x36c796){console[_0x4b5d57(0x250)](LOG_PREFIX2+'\x20Failed\x20to\x20unregister\x20service\x20worker:',_0x36c796);}}function attachMessageListener(){const _0x2a5631=_0x342511;if(!navigator[_0x2a5631(0x23f)]||messageListener){console[_0x2a5631(0x29e)](LOG_PREFIX2+_0x2a5631(0x200));return;}messageListener=_0x49d81c=>{const _0x1501ab=_0x2a5631,_0x199312=_0x49d81c[_0x1501ab(0x2ab)];console[_0x1501ab(0x29e)](LOG_PREFIX2+'\x20Received\x20message\x20from\x20SW:',_0x199312);if(!_0x199312||typeof _0x199312!==_0x1501ab(0x256))return;_0x199312[_0x1501ab(0x2ad)]===WORKER_MESSAGE_REQUEST_CONFIG&&(console[_0x1501ab(0x29e)](LOG_PREFIX2+_0x1501ab(0x217)),void sendConfiguration());},navigator[_0x2a5631(0x23f)][_0x2a5631(0x265)](_0x2a5631(0x202),messageListener),console[_0x2a5631(0x29e)](LOG_PREFIX2+_0x2a5631(0x25e));}function _0x3436(_0x3a1671,_0x35ef75){const _0x3a8c39=_0x3a8c();return _0x3436=function(_0x3436e3,_0xcd27d0){_0x3436e3=_0x3436e3-0x1e5;let _0x3118fb=_0x3a8c39[_0x3436e3];return _0x3118fb;},_0x3436(_0x3a1671,_0x35ef75);}function detachMessageListener(){const _0x15b31f=_0x342511;navigator[_0x15b31f(0x23f)]&&messageListener&&(navigator[_0x15b31f(0x23f)][_0x15b31f(0x1e9)]('message',messageListener),messageListener=null,console[_0x15b31f(0x29e)](LOG_PREFIX2+_0x15b31f(0x29a)));}function ownsServiceWorker(_0x25815f,_0x366bb7){const _0x462168=_0x342511,_0x1076f4=typeof window!=='undefined'?window[_0x462168(0x28f)][_0x462168(0x22e)]:'',_0x397283=new URL(_0x366bb7,_0x1076f4||void 0x0)['href'],_0x377007=_0x25815f===_0x397283||_0x25815f[_0x462168(0x24e)](_0x462168(0x2a3));return console[_0x462168(0x29e)](LOG_PREFIX2+_0x462168(0x23b)+_0x25815f+',\x20expected='+_0x397283+_0x462168(0x27e)+_0x377007),_0x377007;}function ownsCurrentController(_0x3e160c){const _0x1a0281=_0x342511;if(typeof navigator==='undefined')return![];const _0x537951=navigator[_0x1a0281(0x23f)]?.[_0x1a0281(0x2b2)];if(!_0x537951)return console[_0x1a0281(0x29e)](LOG_PREFIX2+_0x1a0281(0x1f4)),![];return ownsServiceWorker(_0x537951[_0x1a0281(0x206)],_0x3e160c);}async function detectBlockingServiceWorker(_0x16ca23){const _0x11a41a=_0x342511;if(!navigator[_0x11a41a(0x23f)])return null;try{const _0x21a74a=await navigator['serviceWorker'][_0x11a41a(0x261)]('/');console[_0x11a41a(0x29e)](LOG_PREFIX2+_0x11a41a(0x280),_0x21a74a?.['active']?.[_0x11a41a(0x206)]??_0x11a41a(0x2ac));const _0x2260a6=_0x21a74a?.[_0x11a41a(0x219)]?.['scriptURL'];if(!_0x2260a6)return null;if(ownsServiceWorker(_0x2260a6,_0x16ca23))return null;return _0x2260a6;}catch(_0x3e4dc8){return console['error'](LOG_PREFIX2+_0x11a41a(0x274),_0x3e4dc8),null;}}async function resolveWorker(){const _0x294b07=_0x342511,_0xb983fc=registration??await navigator[_0x294b07(0x23f)]?.[_0x294b07(0x261)]('/'),_0x79f3cf=_0xb983fc?.[_0x294b07(0x219)]??_0xb983fc?.[_0x294b07(0x28c)]??_0xb983fc?.[_0x294b07(0x277)]??null;return console[_0x294b07(0x29e)](LOG_PREFIX2+_0x294b07(0x2a2),_0x79f3cf?.['scriptURL']??'none',_0x294b07(0x1eb)+(_0x79f3cf?.[_0x294b07(0x2a1)]??_0x294b07(0x210))),_0x79f3cf;}function buildWorkerConfiguration(_0x3b0849){const _0x191640=_0x342511,_0x4f18ca=getEnhancementUrl();return console[_0x191640(0x29e)](LOG_PREFIX2+_0x191640(0x1f9)+_0x4f18ca),{'enhancementUrl':_0x4f18ca,'callbackBypass':_0x3b0849['callbackBypass'],'overlayPath':_0x3b0849[_0x191640(0x264)],'overlayEnableViteHmr':_0x3b0849[_0x191640(0x27d)]['enableViteHmr'],'runtimeScriptPath':_0x3b0849[_0x191640(0x1f7)],'swPath':_0x3b0849[_0x191640(0x21a)],'securityMode':_0x3b0849['security'],'backendUrl':_0x3b0849[_0x191640(0x214)]};}var LOG_PREFIX3=_0x342511(0x21c),initialized=![],options=null,Enhance={'init'(_0x337ed7){const _0x15368d=_0x342511,_0x397383=Date['now']();console[_0x15368d(0x29e)](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x397383),console[_0x15368d(0x29e)](LOG_PREFIX3+_0x15368d(0x1ff)+window[_0x15368d(0x28f)][_0x15368d(0x29d)]),console['log'](LOG_PREFIX3+_0x15368d(0x281)+document[_0x15368d(0x2ae)]),console['log'](LOG_PREFIX3+_0x15368d(0x238),JSON[_0x15368d(0x243)](_0x337ed7,null,0x2));if(initialized)return console[_0x15368d(0x20d)](LOG_PREFIX3+'\x20Already\x20initialized\x20-\x20returning\x20existing\x20controller'),createController();initialized=!![],console[_0x15368d(0x29e)](LOG_PREFIX3+'\x20First\x20initialization'),options=normalizeOptions(_0x337ed7),console[_0x15368d(0x29e)](LOG_PREFIX3+'\x20Normalized\x20options:',JSON['stringify'](options,null,0x2));const _0x2620bf=parseUrlParams();console[_0x15368d(0x29e)](LOG_PREFIX3+_0x15368d(0x201),JSON[_0x15368d(0x243)](_0x2620bf,null,0x2));if(_0x2620bf[_0x15368d(0x1f3)])return cleanUrlParam(_0x15368d(0x237)),console['log'](LOG_PREFIX3+'\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting'),createController();if(_0x2620bf['hasEnhancement'])return console[_0x15368d(0x29e)](LOG_PREFIX3+_0x15368d(0x257)),console[_0x15368d(0x29e)](LOG_PREFIX3+_0x15368d(0x288)+_0x2620bf[_0x15368d(0x1ef)]),console[_0x15368d(0x29e)](LOG_PREFIX3+'\x20enhancementId:\x20'+_0x2620bf[_0x15368d(0x24f)]),state[_0x15368d(0x276)]=!![],console[_0x15368d(0x29e)](LOG_PREFIX3+_0x15368d(0x252)),void loadOverlay({'overlayPath':options[_0x15368d(0x264)],'enableViteHmr':options[_0x15368d(0x27d)]['enableViteHmr'],'options':options,'onToggle':handleToggle}),console[_0x15368d(0x29e)](LOG_PREFIX3+'\x20Starting\x20SW\x20registration\x20(async)...'),void registerServiceWorker(options),console['log'](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20enhancement\x20mode'),createController();return console['log'](LOG_PREFIX3+_0x15368d(0x26f)),console['log'](LOG_PREFIX3+_0x15368d(0x240)),void unregisterServiceWorker(options[_0x15368d(0x21a)]),console[_0x15368d(0x29e)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20normal\x20mode'),createController();}};function createController(){return{'enable'(){const _0x40bbdb=_0x3436;if(!options)return;state[_0x40bbdb(0x276)]=!![],void loadOverlay({'overlayPath':options[_0x40bbdb(0x264)],'enableViteHmr':options['overlay'][_0x40bbdb(0x27b)],'options':options,'onToggle':handleToggle}),void registerServiceWorker(options),void sendConfiguration(),updateOverlay();},'disable'(){const _0x50c0cf=_0x3436;if(!options)return;state[_0x50c0cf(0x276)]=![],state[_0x50c0cf(0x285)]=![],updateOverlay(),void unregisterServiceWorker(options['swPath']);},'status'(){const _0x4763cb=_0x3436;return{'enabled':state[_0x4763cb(0x276)],'controlled':state[_0x4763cb(0x285)]};}};}function handleToggle(){const _0x5ca225=_0x342511,_0xf869ea=createController();state[_0x5ca225(0x276)]?_0xf869ea[_0x5ca225(0x25c)]():_0xf869ea[_0x5ca225(0x230)]();}function parseUrlParams(){const _0x366d18=_0x342511,_0x4cf7ca=new URL(window[_0x366d18(0x28f)][_0x366d18(0x29d)]),_0x1f2bd8=_0x4cf7ca['searchParams']['get'](_0x366d18(0x237))?.['toLowerCase'](),_0x6d8e43=_0x4cf7ca[_0x366d18(0x267)][_0x366d18(0x1f2)](_0x366d18(0x1ef)),_0xdd4c49=_0x4cf7ca[_0x366d18(0x267)]['get'](_0x366d18(0x2af));return{'hasEnhancement':Boolean(_0x6d8e43||_0xdd4c49),'explicitDisable':_0x1f2bd8==='0'||_0x1f2bd8===_0x366d18(0x25a)||_0x1f2bd8===_0x366d18(0x213),'enhancementUrl':_0x6d8e43,'enhancementId':_0xdd4c49};}function cleanUrlParam(_0xacce9b){const _0x31a4f8=_0x342511,_0x21243d=new URL(window['location']['href']);_0x21243d['searchParams']['has'](_0xacce9b)&&(_0x21243d['searchParams'][_0x31a4f8(0x2a7)](_0xacce9b),window[_0x31a4f8(0x24b)][_0x31a4f8(0x273)](null,document['title'],_0x21243d['toString']()));}var package_default={'name':'@enhance-eng/sandbox','version':_0x342511(0x2a4),'type':_0x342511(0x28e),'description':'Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','license':_0x342511(0x26c),'main':_0x342511(0x27c),'module':'./dist/index.js','types':_0x342511(0x1fd),'exports':{'.':{'types':_0x342511(0x1fd),'import':_0x342511(0x223),'require':_0x342511(0x27c)},'./vite':{'types':'./dist/vite/index.d.ts','import':_0x342511(0x1e7)}},'files':[_0x342511(0x275),_0x342511(0x239),'enhance.config.sample.json'],'bin':{'enhance-sandbox':_0x342511(0x284)},'scripts':{'typecheck':'tsc\x20--noEmit','dev':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=http://localhost:8787\x20tsup\x20--watch','dev:staging':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','build':_0x342511(0x263),'build:release':'ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','version':'pnpm\x20version\x20patch\x20--no-git-tag-version'},'dependencies':{'commander':_0x342511(0x22a),'zod':_0x342511(0x215)},'devDependencies':{'@types/node':_0x342511(0x294),'javascript-obfuscator':_0x342511(0x208),'tsup':'^8.5.1','vite':_0x342511(0x23e)},'publishConfig':{'access':_0x342511(0x270)}},DEFAULT_SERVICE_WORKER_PATH=_0x342511(0x218),DEFAULT_RUNTIME_PATH=_0x342511(0x245),PACKAGE_VERSION=typeof package_default['version']==='string'?package_default['version']:'0.0.0';function normalizeAssetPath(_0x1a9653){const _0x8db22a=_0x342511;if(!_0x1a9653)return _0x1a9653;if(_0x1a9653[_0x8db22a(0x2a8)]('http://')||_0x1a9653[_0x8db22a(0x2a8)](_0x8db22a(0x22c)))return _0x1a9653;const _0x3256bc=_0x1a9653['replace'](/^\.\//,'');return _0x3256bc[_0x8db22a(0x2a8)]('/')?_0x3256bc:'/'+_0x3256bc;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x416e2f){const _0xf67fb1=_0x342511;return Enhance[_0xf67fb1(0x262)](_0x416e2f);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function resolveServiceWorkerPath(){return serviceWorkerURL();}function serviceWorkerURL(){return Enhance2['serviceWorkerURL']();}function runtimeURL(){return Enhance2['runtimeURL']();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
1
+ const _0x2dd179=_0x5506;(function(_0x164057,_0xe92a03){const _0x59c488=_0x5506,_0x47556f=_0x164057();while(!![]){try{const _0xc59887=-parseInt(_0x59c488(0x191))/0x1+parseInt(_0x59c488(0x253))/0x2+-parseInt(_0x59c488(0x1df))/0x3*(parseInt(_0x59c488(0x239))/0x4)+parseInt(_0x59c488(0x1d5))/0x5+parseInt(_0x59c488(0x1e6))/0x6*(-parseInt(_0x59c488(0x250))/0x7)+-parseInt(_0x59c488(0x1ce))/0x8*(-parseInt(_0x59c488(0x208))/0x9)+parseInt(_0x59c488(0x1dd))/0xa;if(_0xc59887===_0xe92a03)break;else _0x47556f['push'](_0x47556f['shift']());}catch(_0x765764){_0x47556f['push'](_0x47556f['shift']());}}}(_0x1c08,0x1b580));var DEFAULT_OVERLAY_PATH=!![]?_0x2dd179(0x206):_0x2dd179(0x206),DEFAULT_BACKEND_URL=!![]?'https://api.enhancelabs.ai':_0x2dd179(0x197),DEFAULT_OVERLAY_HMR=!![]?![]:![];console[_0x2dd179(0x1fc)](_0x2dd179(0x1b6),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x2c79b3){const _0x2eb8e0=_0x2dd179,_0xe3fcc9=_0x2c79b3[_0x2eb8e0(0x25d)]??{};return{'callbackBypass':_0x2c79b3[_0x2eb8e0(0x1e9)],'overlay':{'enabled':!![],'position':_0x2eb8e0(0x261),'enableViteHmr':_0xe3fcc9[_0x2eb8e0(0x238)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x2eb8e0(0x21d),'swPath':_0x2eb8e0(0x1c0),'overlayPath':_0xe3fcc9['overlayPath']??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x2eb8e0(0x1d9),'security':_0xe3fcc9[_0x2eb8e0(0x20c)]??'permissive','backendUrl':_0xe3fcc9[_0x2eb8e0(0x24c)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementUrl(){const _0xcaa045=_0x2dd179;try{const _0x4cb02f=new URLSearchParams(window['location']['search']);return _0x4cb02f[_0xcaa045(0x214)](_0xcaa045(0x1d1))?.[_0xcaa045(0x1e4)]()||'';}catch{return'';}}var LOG_PREFIX=_0x2dd179(0x221),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x57f78c){const _0x110aa9=_0x2dd179;console[_0x110aa9(0x1fc)](LOG_PREFIX+'\x20loadOverlay()\x20called'),console[_0x110aa9(0x1fc)](LOG_PREFIX+_0x110aa9(0x265)+_0x57f78c[_0x110aa9(0x190)]),console[_0x110aa9(0x1fc)](LOG_PREFIX+_0x110aa9(0x19f)+_0x57f78c['enableViteHmr']),currentOptions=_0x57f78c[_0x110aa9(0x235)],toggleHandler=_0x57f78c[_0x110aa9(0x1f6)];if(overlayController){console[_0x110aa9(0x1fc)](LOG_PREFIX+_0x110aa9(0x19e)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x110aa9(0x1fc)](LOG_PREFIX+_0x110aa9(0x210)),overlayLoadPromise;console[_0x110aa9(0x1fc)](LOG_PREFIX+_0x110aa9(0x209)),overlayLoadPromise=doLoadOverlay(_0x57f78c);try{await overlayLoadPromise,console[_0x110aa9(0x1fc)](LOG_PREFIX+_0x110aa9(0x1c6));}catch(_0x15361e){console[_0x110aa9(0x248)](LOG_PREFIX+'\x20loadOverlay()\x20failed:',_0x15361e);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x296ca4){const _0x4638a0=_0x2dd179;console[_0x4638a0(0x1fc)](LOG_PREFIX+_0x4638a0(0x223));if(typeof window===_0x4638a0(0x260)){console[_0x4638a0(0x1fc)](LOG_PREFIX+_0x4638a0(0x1bb));return;}if(window['__enhanceOverlay']){console[_0x4638a0(0x1fc)](LOG_PREFIX+_0x4638a0(0x24f)),overlayController=window[_0x4638a0(0x1a4)];return;}console['log'](LOG_PREFIX+_0x4638a0(0x1c4));try{_0x296ca4['enableViteHmr']&&(console[_0x4638a0(0x1fc)](LOG_PREFIX+_0x4638a0(0x22c)),await setupRemoteHMR(_0x296ca4[_0x4638a0(0x190)]));console[_0x4638a0(0x1fc)](LOG_PREFIX+_0x4638a0(0x247)+_0x296ca4[_0x4638a0(0x190)]);const _0x45409a=Date[_0x4638a0(0x1b3)](),_0xe19f21=await import(_0x296ca4[_0x4638a0(0x190)]);console[_0x4638a0(0x1fc)](LOG_PREFIX+_0x4638a0(0x1a9)+(Date[_0x4638a0(0x1b3)]()-_0x45409a)+'ms'),console[_0x4638a0(0x1fc)](LOG_PREFIX+_0x4638a0(0x1fe),Object['keys'](_0xe19f21));if(typeof _0xe19f21?.[_0x4638a0(0x1c7)]!==_0x4638a0(0x20e)){console['error'](LOG_PREFIX+_0x4638a0(0x22d)),console['error'](LOG_PREFIX+_0x4638a0(0x1b5),Object[_0x4638a0(0x25b)](_0xe19f21));return;}console['log'](LOG_PREFIX+_0x4638a0(0x20d));const _0x298537=_0xe19f21['createOverlay']();console[_0x4638a0(0x1fc)](LOG_PREFIX+'\x20Controller\x20created:',_0x298537),overlayController=_0x298537,window[_0x4638a0(0x1a4)]=_0x298537,_0x298537['onToggle'](_0x296ca4[_0x4638a0(0x1f6)]),console[_0x4638a0(0x1fc)](LOG_PREFIX+_0x4638a0(0x252)),console[_0x4638a0(0x1fc)](LOG_PREFIX+_0x4638a0(0x1d0)),updateOverlay();}catch(_0x4a2348){console[_0x4638a0(0x248)](LOG_PREFIX+_0x4638a0(0x21c),_0x4a2348);}}function updateOverlay(){const _0xe923a=_0x2dd179;console[_0xe923a(0x1fc)](LOG_PREFIX+'\x20updateOverlay()\x20called'),console[_0xe923a(0x1fc)](LOG_PREFIX+'\x20overlayController\x20exists:\x20'+!!overlayController),console['log'](LOG_PREFIX+_0xe923a(0x268)+!!currentOptions);if(!overlayController||!currentOptions){console[_0xe923a(0x1fc)](LOG_PREFIX+_0xe923a(0x1f5));return;}const _0x2b2603=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+_0xe923a(0x1cd),JSON[_0xe923a(0x1b9)](_0x2b2603,null,0x2)),overlayController[_0xe923a(0x1e7)](_0x2b2603),console['log'](LOG_PREFIX+'\x20Overlay\x20update\x20complete');}function composeOverlayState(_0x17c085){const _0x4ce671=_0x2dd179,_0x1a6204=getEnhancementUrl();return console['log'](LOG_PREFIX+_0x4ce671(0x1b1)+_0x1a6204),console[_0x4ce671(0x1fc)](LOG_PREFIX+_0x4ce671(0x23b)+state['enabled']),console[_0x4ce671(0x1fc)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.controlled:\x20'+state[_0x4ce671(0x19b)]),{'enhancementUrl':_0x1a6204,'enabled':state[_0x4ce671(0x200)],'controlled':state[_0x4ce671(0x19b)],'overlayPosition':_0x17c085[_0x4ce671(0x211)]['position'],'securityMode':_0x17c085[_0x4ce671(0x20c)],'backendBaseUrl':_0x17c085[_0x4ce671(0x24c)],'appError':state['appError']};}async function setupRemoteHMR(_0x50c492){const _0x236358=_0x2dd179;console['log'](LOG_PREFIX+'\x20setupRemoteHMR()\x20for\x20'+_0x50c492);if(typeof window==='undefined')return;try{const _0x31029a=new URL(_0x50c492,window['location']['origin']),_0x1b318d=_0x31029a['origin'];console[_0x236358(0x1fc)](LOG_PREFIX+_0x236358(0x18f)+_0x1b318d+_0x236358(0x1de)+window[_0x236358(0x1d7)][_0x236358(0x220)]);if(_0x1b318d===window[_0x236358(0x1d7)]['origin']){console[_0x236358(0x1fc)](LOG_PREFIX+_0x236358(0x21e));return;}console[_0x236358(0x1fc)](LOG_PREFIX+_0x236358(0x1f1)),await ensureReactRefreshPreamble(_0x1b318d),await ensureViteClient(_0x1b318d),console[_0x236358(0x1fc)](LOG_PREFIX+'\x20HMR\x20setup\x20complete');}catch(_0x67c2c3){console[_0x236358(0x231)](LOG_PREFIX+_0x236358(0x202),_0x67c2c3);}}async function ensureReactRefreshPreamble(_0x58a904){const _0x481fd5=_0x2dd179;window[_0x481fd5(0x259)]??(window[_0x481fd5(0x259)]=new Set());if(window['__enhanceReactRefreshInstalledOrigins'][_0x481fd5(0x1fa)](_0x58a904)){console[_0x481fd5(0x1fc)](LOG_PREFIX+_0x481fd5(0x264)+_0x58a904);return;}console[_0x481fd5(0x1fc)](LOG_PREFIX+_0x481fd5(0x1ec)+_0x58a904+_0x481fd5(0x25c));const _0x4c1058=await import(_0x58a904+_0x481fd5(0x1a8)),_0x173e44=_0x4c1058&&typeof _0x4c1058===_0x481fd5(0x20a)&&_0x481fd5(0x233)in _0x4c1058?_0x4c1058[_0x481fd5(0x233)]:_0x4c1058;if(!isRefreshRuntime(_0x173e44)){console[_0x481fd5(0x231)](LOG_PREFIX+_0x481fd5(0x193));return;}_0x173e44[_0x481fd5(0x262)](window),window['$RefreshReg$']=()=>{},window[_0x481fd5(0x257)]=()=>_0x1d3cc8=>_0x1d3cc8,window[_0x481fd5(0x229)]=!![],window[_0x481fd5(0x259)][_0x481fd5(0x1e2)](_0x58a904),console[_0x481fd5(0x1fc)](LOG_PREFIX+_0x481fd5(0x204)+_0x58a904);}async function ensureViteClient(_0x5e3737){const _0x537b79=_0x2dd179;window[_0x537b79(0x1bf)]??(window[_0x537b79(0x1bf)]=new Set());if(window[_0x537b79(0x1bf)][_0x537b79(0x1fa)](_0x5e3737)){console[_0x537b79(0x1fc)](LOG_PREFIX+'\x20Vite\x20client\x20already\x20loaded\x20for\x20'+_0x5e3737);return;}console[_0x537b79(0x1fc)](LOG_PREFIX+_0x537b79(0x225)+_0x5e3737+_0x537b79(0x25c)),await import(_0x5e3737+_0x537b79(0x1f3)),window[_0x537b79(0x1bf)][_0x537b79(0x1e2)](_0x5e3737),console['log'](LOG_PREFIX+_0x537b79(0x1f0)+_0x5e3737);}function isRefreshRuntime(_0x13ffda){const _0x310a76=_0x2dd179;return typeof _0x13ffda===_0x310a76(0x20a)&&_0x13ffda!==null&&'injectIntoGlobalHook'in _0x13ffda&&typeof _0x13ffda[_0x310a76(0x262)]==='function';}var WORKER_MESSAGE_CONFIG=_0x2dd179(0x1ba),WORKER_MESSAGE_DISABLE=_0x2dd179(0x23a),LOG_PREFIX2=_0x2dd179(0x1cb),registration=null,currentOptions2=null;async function registerServiceWorker(_0x56b66c){const _0x3583d2=_0x2dd179;console['log'](LOG_PREFIX2+_0x3583d2(0x1b0)),console[_0x3583d2(0x1fc)](LOG_PREFIX2+_0x3583d2(0x219)+_0x56b66c[_0x3583d2(0x22f)]);if(!(_0x3583d2(0x18e)in navigator)){console[_0x3583d2(0x231)](LOG_PREFIX2+_0x3583d2(0x1ff));return;}console[_0x3583d2(0x1fc)](LOG_PREFIX2+'\x20Service\x20workers\x20supported');const _0x51a9a2=navigator[_0x3583d2(0x18e)]['controller'];console[_0x3583d2(0x1fc)](LOG_PREFIX2+_0x3583d2(0x22e),_0x51a9a2?.[_0x3583d2(0x23c)]??_0x3583d2(0x199)),console[_0x3583d2(0x1fc)](LOG_PREFIX2+_0x3583d2(0x1fd),_0x51a9a2?.[_0x3583d2(0x23f)]??_0x3583d2(0x215));const _0x53dedb=!!_0x51a9a2;currentOptions2=_0x56b66c,console[_0x3583d2(0x1fc)](LOG_PREFIX2+_0x3583d2(0x1be));const _0x5df65b=await detectBlockingServiceWorker(_0x56b66c[_0x3583d2(0x22f)]);if(_0x5df65b){console[_0x3583d2(0x248)](LOG_PREFIX2+_0x3583d2(0x1ef)+_0x5df65b),console[_0x3583d2(0x248)](LOG_PREFIX2+_0x3583d2(0x205));return;}console[_0x3583d2(0x1fc)](LOG_PREFIX2+_0x3583d2(0x224));try{console['log'](LOG_PREFIX2+_0x3583d2(0x1d3)+_0x56b66c[_0x3583d2(0x22f)]+_0x3583d2(0x21a)),registration=await navigator['serviceWorker']['register'](_0x56b66c['swPath'],{'scope':'/'}),console[_0x3583d2(0x1fc)](LOG_PREFIX2+_0x3583d2(0x1eb),{'scope':registration[_0x3583d2(0x26c)],'active':registration[_0x3583d2(0x1bd)]?.['scriptURL'],'waiting':registration[_0x3583d2(0x1ea)]?.['scriptURL'],'installing':registration['installing']?.[_0x3583d2(0x23c)]}),console[_0x3583d2(0x1fc)](LOG_PREFIX2+'\x20Waiting\x20for\x20navigator.serviceWorker.ready...');const _0x5a184a=await navigator[_0x3583d2(0x18e)][_0x3583d2(0x1bc)];console[_0x3583d2(0x1fc)](LOG_PREFIX2+_0x3583d2(0x1e0),_0x5a184a[_0x3583d2(0x1bd)]?.[_0x3583d2(0x23c)]);const _0x55b6a3=ownsCurrentController(_0x56b66c[_0x3583d2(0x22f)]);state['controlled']=_0x55b6a3,console[_0x3583d2(0x1fc)](LOG_PREFIX2+'\x20Page\x20controlled\x20by\x20our\x20SW:\x20'+_0x55b6a3),console['log'](LOG_PREFIX2+_0x3583d2(0x21f),navigator[_0x3583d2(0x18e)]['controller']?.[_0x3583d2(0x23c)]??'none');if(!_0x53dedb&&!navigator['serviceWorker'][_0x3583d2(0x242)]){console['log'](LOG_PREFIX2+_0x3583d2(0x18d)),window['location'][_0x3583d2(0x23e)]();return;}console[_0x3583d2(0x1fc)](LOG_PREFIX2+'\x20Sending\x20customer\x20configuration...'),await sendConfiguration();if(state[_0x3583d2(0x200)]){const _0x26dacd=document[_0x3583d2(0x267)]('[data-enhance-runtime-bootstrap]')!==null;console['log'](LOG_PREFIX2+_0x3583d2(0x1a6)+_0x26dacd);if(!_0x26dacd){console[_0x3583d2(0x1fc)](LOG_PREFIX2+_0x3583d2(0x19d)),window[_0x3583d2(0x1d7)][_0x3583d2(0x23e)]();return;}}console[_0x3583d2(0x1fc)](LOG_PREFIX2+'\x20Updating\x20overlay...'),updateOverlay(),console[_0x3583d2(0x1fc)](LOG_PREFIX2+_0x3583d2(0x1f9));}catch(_0xfef0c3){console[_0x3583d2(0x248)](LOG_PREFIX2+'\x20Failed\x20to\x20register\x20service\x20worker:',_0xfef0c3);}}async function sendConfiguration(){const _0x2da854=_0x2dd179;console[_0x2da854(0x1fc)](LOG_PREFIX2+_0x2da854(0x1b2)),console['log'](LOG_PREFIX2+_0x2da854(0x1d8)+state[_0x2da854(0x200)]+_0x2da854(0x258)+!!currentOptions2);if(!state['enabled']||!currentOptions2){console[_0x2da854(0x1fc)](LOG_PREFIX2+'\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options');return;}const _0xbc51bf=await resolveWorker();if(!_0xbc51bf){console['warn'](LOG_PREFIX2+_0x2da854(0x1a7));return;}const _0x5980fe={'callbackBypass':currentOptions2[_0x2da854(0x1e9)],'securityMode':currentOptions2[_0x2da854(0x20c)]};console[_0x2da854(0x1fc)](LOG_PREFIX2+_0x2da854(0x1f8),JSON[_0x2da854(0x1b9)](_0x5980fe,null,0x2)),_0xbc51bf[_0x2da854(0x1ca)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x5980fe}),console['log'](LOG_PREFIX2+_0x2da854(0x1ae));}async function unregisterServiceWorker(_0x3c3f24){const _0x976cf8=_0x2dd179;console['log'](LOG_PREFIX2+_0x976cf8(0x194));if(!('serviceWorker'in navigator)){console[_0x976cf8(0x1fc)](LOG_PREFIX2+_0x976cf8(0x1e5));return;}try{const _0x5e5e01=registration??await navigator[_0x976cf8(0x18e)][_0x976cf8(0x234)]('/');if(!_0x5e5e01){console[_0x976cf8(0x1fc)](LOG_PREFIX2+'\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister');return;}console['log'](LOG_PREFIX2+_0x976cf8(0x1f4),{'scope':_0x5e5e01['scope'],'active':_0x5e5e01[_0x976cf8(0x1bd)]?.[_0x976cf8(0x23c)],'waiting':_0x5e5e01['waiting']?.[_0x976cf8(0x23c)],'installing':_0x5e5e01[_0x976cf8(0x269)]?.[_0x976cf8(0x23c)]});const _0x197a8d=[_0x5e5e01['active']?.[_0x976cf8(0x23c)],_0x5e5e01[_0x976cf8(0x1ea)]?.[_0x976cf8(0x23c)],_0x5e5e01['installing']?.[_0x976cf8(0x23c)]],_0x46f86e=_0x197a8d['some'](_0x2397dd=>_0x2397dd&&ownsServiceWorker(_0x2397dd,_0x3c3f24));if(!_0x46f86e){console['log'](LOG_PREFIX2+_0x976cf8(0x25e));return;}_0x5e5e01['active']&&(console[_0x976cf8(0x1fc)](LOG_PREFIX2+_0x976cf8(0x24b)),_0x5e5e01[_0x976cf8(0x1bd)][_0x976cf8(0x1ca)]({'type':WORKER_MESSAGE_DISABLE})),console[_0x976cf8(0x1fc)](LOG_PREFIX2+_0x976cf8(0x1c1)),await _0x5e5e01[_0x976cf8(0x1aa)](),registration=null,currentOptions2=null,console[_0x976cf8(0x1fc)](LOG_PREFIX2+'\x20SW\x20unregistered\x20successfully');}catch(_0x1068e1){console[_0x976cf8(0x248)](LOG_PREFIX2+'\x20Failed\x20to\x20unregister\x20service\x20worker:',_0x1068e1);}}function ownsServiceWorker(_0x2b63a9,_0x32bbeb){const _0x1a0b5d=_0x2dd179,_0x56ad95=typeof window!==_0x1a0b5d(0x260)?window[_0x1a0b5d(0x1d7)][_0x1a0b5d(0x220)]:'',_0x3aa297=new URL(_0x32bbeb,_0x56ad95||void 0x0)[_0x1a0b5d(0x218)],_0x407951=_0x2b63a9===_0x3aa297||_0x2b63a9[_0x1a0b5d(0x22b)](_0x1a0b5d(0x1e1));return console[_0x1a0b5d(0x1fc)](LOG_PREFIX2+_0x1a0b5d(0x23d)+_0x2b63a9+_0x1a0b5d(0x1a3)+_0x3aa297+',\x20owns='+_0x407951),_0x407951;}function ownsCurrentController(_0x15895f){const _0x24c191=_0x2dd179;if(typeof navigator===_0x24c191(0x260))return![];const _0x92c39e=navigator['serviceWorker']?.[_0x24c191(0x242)];if(!_0x92c39e)return console[_0x24c191(0x1fc)](LOG_PREFIX2+_0x24c191(0x1fb)),![];return ownsServiceWorker(_0x92c39e[_0x24c191(0x23c)],_0x15895f);}async function detectBlockingServiceWorker(_0x458081){const _0x43053f=_0x2dd179;if(!navigator[_0x43053f(0x18e)])return null;try{const _0x42120=await navigator[_0x43053f(0x18e)][_0x43053f(0x234)]('/');console[_0x43053f(0x1fc)](LOG_PREFIX2+_0x43053f(0x240),_0x42120?.[_0x43053f(0x1bd)]?.['scriptURL']??_0x43053f(0x199));const _0x35f85f=_0x42120?.['active']?.[_0x43053f(0x23c)];if(!_0x35f85f)return null;if(ownsServiceWorker(_0x35f85f,_0x458081))return null;return _0x35f85f;}catch(_0xe72ba1){return console[_0x43053f(0x248)](LOG_PREFIX2+_0x43053f(0x1cc),_0xe72ba1),null;}}async function resolveWorker(){const _0x77e99b=_0x2dd179,_0x1857f2=registration??await navigator['serviceWorker']?.[_0x77e99b(0x234)]('/'),_0x268f46=_0x1857f2?.['active']??_0x1857f2?.[_0x77e99b(0x1ea)]??_0x1857f2?.[_0x77e99b(0x269)]??null;return console[_0x77e99b(0x1fc)](LOG_PREFIX2+_0x77e99b(0x216),_0x268f46?.['scriptURL']??'none',_0x77e99b(0x228)+(_0x268f46?.[_0x77e99b(0x23f)]??_0x77e99b(0x215))),_0x268f46;}var LOG_PREFIX3=_0x2dd179(0x226);function isInitialized(){return typeof window!=='undefined'&&window['__enhanceInitialized']===!![];}function setInitialized(_0x29994d){const _0x42e63f=_0x2dd179;typeof window!==_0x42e63f(0x260)&&(window[_0x42e63f(0x1b4)]=_0x29994d);}function getOptions(){const _0x110d13=_0x2dd179;return typeof window!==_0x110d13(0x260)?window[_0x110d13(0x24a)]??null:null;}function setOptions(_0x53f1a0){const _0x26d6d3=_0x2dd179;typeof window!=='undefined'&&(window[_0x26d6d3(0x24a)]=_0x53f1a0);}var Enhance={'init'(_0x30c037){const _0x52f1c6=_0x2dd179,_0x263502=Date[_0x52f1c6(0x1b3)]();console[_0x52f1c6(0x1fc)](LOG_PREFIX3+_0x52f1c6(0x1ab)+_0x263502),console[_0x52f1c6(0x1fc)](LOG_PREFIX3+_0x52f1c6(0x20f)+window['location'][_0x52f1c6(0x218)]),console['log'](LOG_PREFIX3+_0x52f1c6(0x1ed)+document[_0x52f1c6(0x232)]),console[_0x52f1c6(0x1fc)](LOG_PREFIX3+_0x52f1c6(0x227),JSON[_0x52f1c6(0x1b9)](_0x30c037,null,0x2));if(isInitialized())return console['warn'](LOG_PREFIX3+'\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller'),window['__enhanceController']??createController();setInitialized(!![]),console[_0x52f1c6(0x1fc)](LOG_PREFIX3+_0x52f1c6(0x196));const _0x535940=normalizeOptions(_0x30c037);setOptions(_0x535940),console['log'](LOG_PREFIX3+_0x52f1c6(0x217),JSON[_0x52f1c6(0x1b9)](_0x535940,null,0x2));const _0x1aaa31=parseUrlParams();console[_0x52f1c6(0x1fc)](LOG_PREFIX3+_0x52f1c6(0x198),JSON[_0x52f1c6(0x1b9)](_0x1aaa31,null,0x2));if(_0x1aaa31['explicitDisable'])return cleanUrlParam(_0x52f1c6(0x251)),console[_0x52f1c6(0x1fc)](LOG_PREFIX3+_0x52f1c6(0x212)),createController();if(_0x1aaa31['hasEnhancement'])return console[_0x52f1c6(0x1fc)](LOG_PREFIX3+_0x52f1c6(0x1e8)),console[_0x52f1c6(0x1fc)](LOG_PREFIX3+_0x52f1c6(0x213)+_0x1aaa31[_0x52f1c6(0x1d1)]),console['log'](LOG_PREFIX3+_0x52f1c6(0x1db)+_0x1aaa31[_0x52f1c6(0x249)]),state[_0x52f1c6(0x200)]=!![],console[_0x52f1c6(0x1fc)](LOG_PREFIX3+_0x52f1c6(0x1a1)),void loadOverlay({'overlayPath':_0x535940[_0x52f1c6(0x190)],'enableViteHmr':_0x535940['overlay'][_0x52f1c6(0x1dc)],'options':_0x535940,'onToggle':handleToggle}),console[_0x52f1c6(0x1fc)](LOG_PREFIX3+_0x52f1c6(0x1d2)),void registerServiceWorker(_0x535940),console[_0x52f1c6(0x1fc)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20enhancement\x20mode'),createController();return console[_0x52f1c6(0x1fc)](LOG_PREFIX3+'\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params'),console[_0x52f1c6(0x1fc)](LOG_PREFIX3+_0x52f1c6(0x230)),void unregisterServiceWorker(_0x535940['swPath']),console[_0x52f1c6(0x1fc)](LOG_PREFIX3+_0x52f1c6(0x1a0)),import.meta[_0x52f1c6(0x21b)]&&(console['log'](LOG_PREFIX3+_0x52f1c6(0x18b)),import.meta[_0x52f1c6(0x21b)]['on'](_0x52f1c6(0x1ac),_0x5bd57f=>{const _0x4b1e13=_0x52f1c6;console[_0x4b1e13(0x1fc)](LOG_PREFIX3+_0x4b1e13(0x1c5),_0x5bd57f),state[_0x4b1e13(0x203)]={'message':_0x5bd57f[_0x4b1e13(0x192)][_0x4b1e13(0x1c2)]},updateOverlay();}),import.meta[_0x52f1c6(0x21b)]['on'](_0x52f1c6(0x22a),()=>{const _0xbdb393=_0x52f1c6;state['appError']&&(console[_0xbdb393(0x1fc)](LOG_PREFIX3+_0xbdb393(0x1d6)),state[_0xbdb393(0x203)]=null,updateOverlay());})),createController();}};function createController(){const _0x38752f=_0x2dd179,_0xd68bb7={'enable'(){const _0x1aafa0=_0x5506,_0x5993f4=getOptions();if(!_0x5993f4)return;state[_0x1aafa0(0x200)]=!![],void loadOverlay({'overlayPath':_0x5993f4[_0x1aafa0(0x190)],'enableViteHmr':_0x5993f4[_0x1aafa0(0x211)]['enableViteHmr'],'options':_0x5993f4,'onToggle':handleToggle}),void registerServiceWorker(_0x5993f4),void sendConfiguration(),updateOverlay();},'disable'(){const _0x58621a=_0x5506,_0x90b8fe=getOptions();if(!_0x90b8fe)return;state['enabled']=![],state[_0x58621a(0x19b)]=![],updateOverlay(),void unregisterServiceWorker(_0x90b8fe[_0x58621a(0x22f)]);},'status'(){const _0x2e1d52=_0x5506;return{'enabled':state[_0x2e1d52(0x200)],'controlled':state[_0x2e1d52(0x19b)]};}};return typeof window!==_0x38752f(0x260)&&(window[_0x38752f(0x207)]=_0xd68bb7),_0xd68bb7;}function handleToggle(){const _0x5882eb=_0x2dd179,_0x11a1ba=createController();state['enabled']?_0x11a1ba['disable']():_0x11a1ba[_0x5882eb(0x1c8)]();}function parseUrlParams(){const _0x5ebe96=_0x2dd179,_0x1d02a5=new URL(window[_0x5ebe96(0x1d7)]['href']),_0xd12da2=_0x1d02a5[_0x5ebe96(0x1f7)]['get'](_0x5ebe96(0x251))?.['toLowerCase'](),_0x5465a2=_0x1d02a5['searchParams']['get'](_0x5ebe96(0x1d1)),_0x433693=_0x1d02a5[_0x5ebe96(0x1f7)]['get'](_0x5ebe96(0x195));return{'hasEnhancement':Boolean(_0x5465a2||_0x433693),'explicitDisable':_0xd12da2==='0'||_0xd12da2===_0x5ebe96(0x222)||_0xd12da2===_0x5ebe96(0x255),'enhancementUrl':_0x5465a2,'enhancementId':_0x433693};}function _0x5506(_0x2a1eae,_0x1a9280){const _0x1c080c=_0x1c08();return _0x5506=function(_0x550628,_0x363150){_0x550628=_0x550628-0x18b;let _0x3971b2=_0x1c080c[_0x550628];return _0x3971b2;},_0x5506(_0x2a1eae,_0x1a9280);}function cleanUrlParam(_0x2cc932){const _0x2a315e=_0x2dd179,_0x44f714=new URL(window[_0x2a315e(0x1d7)][_0x2a315e(0x218)]);_0x44f714[_0x2a315e(0x1f7)]['has'](_0x2cc932)&&(_0x44f714[_0x2a315e(0x1f7)]['delete'](_0x2cc932),window[_0x2a315e(0x24d)][_0x2a315e(0x26a)](null,document[_0x2a315e(0x19a)],_0x44f714[_0x2a315e(0x18c)]()));}var package_default={'name':_0x2dd179(0x1da),'version':_0x2dd179(0x256),'type':_0x2dd179(0x1ee),'description':_0x2dd179(0x1c3),'license':_0x2dd179(0x26b),'main':_0x2dd179(0x24e),'module':_0x2dd179(0x243),'types':'./dist/index.d.ts','exports':{'.':{'types':_0x2dd179(0x1ad),'import':_0x2dd179(0x243),'require':'./dist/index.cjs'},'./vite':{'types':_0x2dd179(0x1b7),'import':_0x2dd179(0x246)}},'files':[_0x2dd179(0x19c),_0x2dd179(0x25a),'enhance.config.sample.json'],'bin':{'enhance-sandbox':_0x2dd179(0x244)},'scripts':{'typecheck':'tsc\x20--noEmit','dev':_0x2dd179(0x1b8),'dev:build':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','dev:staging':_0x2dd179(0x1f2),'dev:staging:build':_0x2dd179(0x263),'build':_0x2dd179(0x254),'build:release':_0x2dd179(0x245),'version':'pnpm\x20version\x20patch\x20--no-git-tag-version'},'dependencies':{'commander':_0x2dd179(0x266),'zod':'^3.22.4'},'devDependencies':{'@types/node':_0x2dd179(0x241),'javascript-obfuscator':_0x2dd179(0x1a5),'tsup':_0x2dd179(0x1a2),'vite':_0x2dd179(0x25f)},'publishConfig':{'access':_0x2dd179(0x1af)}},DEFAULT_SERVICE_WORKER_PATH=_0x2dd179(0x1c0),DEFAULT_RUNTIME_PATH='/assets/enhance-runtime.js',PACKAGE_VERSION=typeof package_default[_0x2dd179(0x236)]===_0x2dd179(0x201)?package_default['version']:_0x2dd179(0x1cf);function normalizeAssetPath(_0xb6a685){const _0x5d342d=_0x2dd179;if(!_0xb6a685)return _0xb6a685;if(_0xb6a685[_0x5d342d(0x1d4)](_0x5d342d(0x237))||_0xb6a685[_0x5d342d(0x1d4)](_0x5d342d(0x1e3)))return _0xb6a685;const _0x45bf97=_0xb6a685['replace'](/^\.\//,'');return _0x45bf97[_0x5d342d(0x1d4)]('/')?_0x45bf97:'/'+_0x45bf97;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x282b1d){const _0x55b14d=_0x2dd179;return Enhance[_0x55b14d(0x20b)](_0x282b1d);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function _0x1c08(){const _0x44cd6e=['bin/enhance-sandbox.js','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','./dist/vite/index.js','\x20Importing\x20overlay\x20module\x20from:\x20','error','enhancementId','__enhanceOptions','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','backendUrl','history','./dist/index.cjs','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','84SgjKpO','enhance','\x20Overlay\x20controller\x20initialized\x20and\x20cached','38670SaTKsH','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','off','0.3.18','$RefreshSig$',',\x20currentOptions:\x20','__enhanceReactRefreshInstalledOrigins','bin','keys','...','__development','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','^7.2.4','undefined','bottom-right','injectIntoGlobalHook','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','\x20React\x20Refresh\x20already\x20installed\x20for\x20','\x20overlayPath:\x20','^11.1.0','querySelector','\x20currentOptions\x20exists:\x20','installing','replaceState','MIT','scope','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','toString','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','serviceWorker','\x20Overlay\x20origin:\x20','overlayPath','147115vFZEEA','err','\x20Invalid\x20React\x20Refresh\x20runtime','\x20unregisterServiceWorker()\x20called','enhancement','\x20First\x20initialization','https://api.enhancelabs.ai','\x20URL\x20params\x20parsed:','none','title','controlled','dist','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','\x20enableViteHmr:\x20','\x20init()\x20complete\x20-\x20normal\x20mode','\x20Starting\x20overlay\x20load\x20(async)...','^8.5.1',',\x20expected=','__enhanceOverlay','^4.1.1','\x20Enhancement\x20detection:\x20wasEnhanced=','\x20No\x20service\x20worker\x20active\x20to\x20configure','/@react-refresh','\x20Module\x20imported\x20in\x20','unregister','\x20init()\x20called\x20at\x20','vite:error','./dist/index.d.ts','\x20Config\x20sent\x20to\x20SW','public','\x20registerServiceWorker()\x20called','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','\x20sendConfiguration()\x20called','now','__enhanceInitialized','\x20Available\x20exports:','[Enhance\x20Config]\x20Build-time\x20defaults:','./dist/vite/index.d.ts','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','stringify','enhance:configure','\x20No\x20window\x20object\x20-\x20skipping','ready','active','\x20Checking\x20for\x20blocking\x20service\x20worker...','__viteHMRLoaded','/sw-enhance.js','\x20Unregistering\x20SW...','message','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','\x20Vite\x20error\x20detected:','\x20loadOverlay()\x20complete','createOverlay','enable','runtimeURL','postMessage','[Enhance\x20SW-Client]','\x20detectBlocking\x20error:','\x20Updating\x20overlay\x20with\x20state:','8WIGLsq','0.0.0','\x20Calling\x20updateOverlay()...','enhancementUrl','\x20Starting\x20SW\x20registration\x20(async)...','\x20Registering\x20SW\x20at\x20','startsWith','603165LLPHKO','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','location','\x20state.enabled:\x20','/assets/enhance-runtime.js','@enhance-eng/sandbox','\x20enhancementId:\x20','enableViteHmr','681450okTHhb',',\x20page\x20origin:\x20','48EqYJag','\x20SW\x20ready!\x20Active:','sw-enhance','add','https://','trim','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','31794piBmQx','update','\x20Enhancement\x20mode\x20ENABLED','callbackBypass','waiting','\x20Registration\x20returned:','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','\x20Document\x20readyState:\x20','module','\x20BLOCKING\x20SW\x20detected:\x20','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','/@vite/client','\x20Found\x20registration:','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','onToggle','searchParams','\x20Sending\x20customer\x20config\x20to\x20SW:','\x20registerServiceWorker()\x20complete','has','\x20No\x20current\x20controller','log','\x20Controller\x20state:','\x20Module\x20exports:','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','enabled','string','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','appError','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','https://assets.enhancelabs.ai/overlay.js','__enhanceController','1155006KKZZSW','\x20Starting\x20fresh\x20overlay\x20load...','object','init','security','\x20Calling\x20createOverlay()...','function','\x20Current\x20URL:\x20','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','overlay','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','\x20enhancementUrl:\x20','get','N/A','\x20resolveWorker:','\x20Normalized\x20options:','href','\x20swPath:\x20','\x20with\x20scope\x20\x27/\x27...','hot','\x20Failed\x20to\x20import/create\x20overlay:','info','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','\x20Current\x20controller\x20after\x20ready:','origin','[Enhance\x20Overlay]','false','\x20doLoadOverlay()\x20starting...','\x20No\x20blocking\x20SW\x20found','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','[Enhance\x20Runtime]','\x20Raw\x20options:','state:\x20','__vite_plugin_react_preamble_installed__','vite:beforeUpdate','includes','\x20Setting\x20up\x20remote\x20HMR...','\x20Module\x20missing\x20createOverlay\x20export!','\x20Current\x20controller:','swPath','\x20Unregistering\x20any\x20existing\x20SW...','warn','readyState','default','getRegistration','options','version','http://','enableOverlayHmr','3436qGkeBb','enhance:disable','\x20composeOverlayState\x20-\x20state.enabled:\x20','scriptURL','\x20ownsServiceWorker?\x20scriptURL=','reload','state','\x20detectBlocking\x20-\x20existing\x20registration:','^24.10.1','controller','./dist/index.js'];_0x1c08=function(){return _0x44cd6e;};return _0x1c08();}function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function resolveServiceWorkerPath(){return serviceWorkerURL();}function serviceWorkerURL(){return Enhance2['serviceWorkerURL']();}function runtimeURL(){const _0x3e3b4f=_0x2dd179;return Enhance2[_0x3e3b4f(0x1c9)]();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
package/dist/cli.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- const _0x146bdc=_0x375c;(function(_0x526dfd,_0x2c24bc){const _0x5c1948=_0x375c,_0x523eed=_0x526dfd();while(!![]){try{const _0xc900c7=-parseInt(_0x5c1948(0x22b))/0x1*(parseInt(_0x5c1948(0x1f6))/0x2)+-parseInt(_0x5c1948(0x23a))/0x3+parseInt(_0x5c1948(0x240))/0x4+-parseInt(_0x5c1948(0x1bf))/0x5+parseInt(_0x5c1948(0x23d))/0x6+parseInt(_0x5c1948(0x1af))/0x7+parseInt(_0x5c1948(0x210))/0x8;if(_0xc900c7===_0x2c24bc)break;else _0x523eed['push'](_0x523eed['shift']());}catch(_0x1df68f){_0x523eed['push'](_0x523eed['shift']());}}}(_0x9fdd,0x2481e));import{Command}from'commander';import{resolve,relative}from'path';function normalizeOptions(_0x586e2d){const _0x4aea2c=_0x375c,_0x2a5c2b=_0x586e2d[_0x4aea2c(0x18c)]??{};return{'callbackBypass':_0x586e2d[_0x4aea2c(0x261)],'overlay':{'enabled':!![],'position':_0x4aea2c(0x1d9),'enableViteHmr':_0x2a5c2b[_0x4aea2c(0x19d)]??![]},'logLevel':_0x4aea2c(0x207),'swPath':_0x4aea2c(0x16a),'overlayPath':_0x2a5c2b[_0x4aea2c(0x1ac)]??_0x4aea2c(0x191),'runtimeScriptPath':_0x4aea2c(0x225),'security':_0x2a5c2b[_0x4aea2c(0x190)]??'permissive','backendUrl':_0x2a5c2b[_0x4aea2c(0x1a3)]??_0x4aea2c(0x1d0)};}var state={'enabled':![],'controlled':![]};function _0x9fdd(){const _0x41eb65=['\x20Updating\x20overlay...','data','swFilename','option','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','overlay','replaceState','info','\x20Updating\x20overlay\x20with\x20state:','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','toString','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=http://localhost:8787\x20tsup\x20--watch','^8.5.1','search','all','...','2498944jXkwvT','get','serviceWorkerURL','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','/@react-refresh','waiting','publicDir','reload','unregister','command','\x20Unregistering\x20any\x20existing\x20SW...','./dist/vite/index.d.ts','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','\x20Starting\x20overlay\x20load\x20(async)...','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','href','https://','\x20Registering\x20SW\x20at\x20','stringify','./dist/index.cjs','\x20detectBlocking\x20-\x20existing\x20registration:','/assets/enhance-runtime.js','searchParams','\x20Starting\x20SW\x20registration\x20(async)...','^4.1.1','off','\x20Failed\x20to\x20register\x20service\x20worker:','1samSFM','--filename\x20<name>','\x20detectBlocking\x20error:','\x20SW\x20unregistered\x20successfully','init','enhance-sandbox','ready','\x20URL\x20params\x20parsed:','\x20buildWorkerConfiguration\x20-\x20enhancementUrl:\x20','runtimeURL','\x20init()\x20complete\x20-\x20normal\x20mode','getRegistration',',\x20configGetter:\x20','enhancement','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','365379daVEDH',',\x20page\x20origin:\x20','write','602574zMVfwD','\x20setupRemoteHMR()\x20for\x20','stdout','1112276bmXcfw','\x20doLoadOverlay()\x20starting...','filename','cwd','\x20Module\x20exports:','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','\x20registerServiceWorker()\x20complete','\x20currentOptions\x20exists:\x20','__viteHMRLoaded','Print\x20the\x20current\x20asset\x20manifest','active','removeEventListener','\x20First\x20initialization','\x20composeOverlayState\x20-\x20state.enabled:\x20','controlled','enhance.config.sample.json','/@vite/client','\x20No\x20current\x20controller','./dist/index.js','enableViteHmr','enable','\x20overlayPath:\x20','\x20Failed\x20to\x20import/create\x20overlay:','none','addEventListener','\x20Module\x20missing\x20createOverlay\x20export!','toLowerCase','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','^24.10.1','sw-enhance','[Enhance\x20SW-Client]','string','\x20Failed\x20to\x20unregister\x20service\x20worker:','callbackBypass','replace','ENOENT','\x20Enhancement\x20detection:\x20wasEnhanced=','\x20with\x20scope\x20\x27/\x27...','\x20unregisterServiceWorker()\x20called','swPath','update','scope','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','\x20Starting\x20fresh\x20overlay\x20load...','/sw-enhance.js','options','\x20Attaching\x20message\x20listener...','\x20HMR\x20setup\x20complete','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','\x20sendConfiguration()\x20called','\x20state.enabled:\x20','\x20→\x20','N/A','\x20Document\x20readyState:\x20','\x20Current\x20URL:\x20','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','sha256','hasEnhancement','\x20Available\x20exports:','runtimeScriptPath','public','enhance','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','\x20Normalized\x20options:','querySelector','../dist/index.js','\x20resolveWorker:','^3.22.4','[data-enhance-runtime-bootstrap]','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','enabled','location','object','has','__enhanceOverlay','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20configGetter','\x20enhancementUrl:\x20','__development','__vite_plugin_react_preamble_installed__','disable','$RefreshSig$','security','https://assets.enhancelabs.ai/overlay.js','\x20SW\x20ready!\x20Active:','http://','\x20Already\x20initialized\x20-\x20returning\x20existing\x20controller','\x20Unregistering\x20SW...','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','version','Skipped\x20','./dist/index.d.ts','dist','bin/enhance-sandbox.js','\x20init()\x20complete\x20-\x20enhancement\x20mode','enableOverlayHmr','\x20React\x20Refresh\x20already\x20installed\x20for\x20','manifestPath','\x20enhancementId:\x20','\x20(already\x20current)\x20[','readyState','backendUrl','\x20No\x20window\x20object\x20-\x20skipping','\x20Importing\x20overlay\x20module\x20from:\x20','\x20Overlay\x20controller\x20initialized\x20and\x20cached','serviceWorker','state','\x20loadOverlay()\x20called','log','now','overlayPath','\x20composeOverlayState\x20-\x20state.controlled:\x20','position','323015eZhjIB','includes','createOverlay','\x20Checking\x20for\x20blocking\x20service\x20worker...','copied','skipped','\x20Current\x20controller\x20after\x20ready:','module','status','\x20Enhancement\x20mode\x20ENABLED','sw-enhance.js','controller','add','onToggle','0.0.0','postMessage','1350865lwyyzJ','Copied\x20','push','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','message','0.3.16','assets/enhance-runtime.js','action','function','\x20Sending\x20initial\x20configuration...','\x20Found\x20registration:','installing','\x20Vite\x20client\x20already\x20loaded\x20for\x20','relativeDestination','state:\x20','\x20Calling\x20createOverlay()...','__enhanceReactRefreshInstalledOrigins','https://api.enhancelabs.ai','description','sourcePath','override','\x20Service\x20workers\x20supported','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','enhance:request-config','Copy\x20the\x20service\x20worker\x20and\x20overlay\x20bundle\x20into\x20a\x20public\x20directory','startsWith','bottom-right','\x20Message\x20listener\x20already\x20attached\x20or\x20no\x20SW\x20support','code','\x20updateOverlay()\x20called','\x20Current\x20controller:','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay','scriptURL','enhancementUrl','delete','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','Override\x20the\x20service\x20worker\x20output\x20filename\x20(defaults\x20to\x20sw-enhance.js)','injectIntoGlobalHook','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','warn','parseAsync','Directory\x20to\x20copy\x20the\x20service\x20worker\x20into','bin','^7.2.4','keys','\x20No\x20blocking\x20SW\x20found','\x20BLOCKING\x20SW\x20detected:\x20','error','manifest','@enhance-eng/sandbox','MIT','undefined','requiredOption','name','destinationPath','391022LxLpky','copyFile','enhance:disable','trim','\x20Setting\x20up\x20remote\x20HMR...','[Enhance\x20Overlay]','enhancementId','origin','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch',',\x20owns='];_0x9fdd=function(){return _0x41eb65;};return _0x9fdd();}function getEnhancementUrl(){const _0x5c2101=_0x375c;try{const _0x429673=new URLSearchParams(window[_0x5c2101(0x186)][_0x5c2101(0x20d)]);return _0x429673[_0x5c2101(0x211)]('enhancementUrl')?.[_0x5c2101(0x1f9)]()||'';}catch{return'';}}var LOG_PREFIX=_0x146bdc(0x1fb),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x43681a){const _0x239c36=_0x146bdc;console['log'](LOG_PREFIX+_0x239c36(0x1a9)),console[_0x239c36(0x1aa)](LOG_PREFIX+_0x239c36(0x255)+_0x43681a['overlayPath']),console['log'](LOG_PREFIX+'\x20enableViteHmr:\x20'+_0x43681a[_0x239c36(0x253)]),currentOptions=_0x43681a[_0x239c36(0x16b)],toggleHandler=_0x43681a[_0x239c36(0x1bc)];if(overlayController){console['log'](LOG_PREFIX+_0x239c36(0x25b)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x239c36(0x1aa)](LOG_PREFIX+_0x239c36(0x1d5)),overlayLoadPromise;console[_0x239c36(0x1aa)](LOG_PREFIX+_0x239c36(0x169)),overlayLoadPromise=doLoadOverlay(_0x43681a);try{await overlayLoadPromise,console[_0x239c36(0x1aa)](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0x41f2b3){console[_0x239c36(0x1ee)](LOG_PREFIX+'\x20loadOverlay()\x20failed:',_0x41f2b3);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x2c12e3){const _0x4ff8d5=_0x146bdc;console[_0x4ff8d5(0x1aa)](LOG_PREFIX+_0x4ff8d5(0x241));if(typeof window==='undefined'){console[_0x4ff8d5(0x1aa)](LOG_PREFIX+_0x4ff8d5(0x1a4));return;}if(window['__enhanceOverlay']){console['log'](LOG_PREFIX+_0x4ff8d5(0x1de)),overlayController=window[_0x4ff8d5(0x189)],overlayController[_0x4ff8d5(0x1bc)](_0x2c12e3[_0x4ff8d5(0x1bc)]),updateOverlay();return;}console['log'](LOG_PREFIX+_0x4ff8d5(0x183));try{_0x2c12e3[_0x4ff8d5(0x253)]&&(console['log'](LOG_PREFIX+_0x4ff8d5(0x1fa)),await setupRemoteHMR(_0x2c12e3[_0x4ff8d5(0x1ac)]));console[_0x4ff8d5(0x1aa)](LOG_PREFIX+_0x4ff8d5(0x1a5)+_0x2c12e3['overlayPath']);const _0x48ee17=Date[_0x4ff8d5(0x1ab)](),_0x2d762c=await import(_0x2c12e3[_0x4ff8d5(0x1ac)]);console['log'](LOG_PREFIX+'\x20Module\x20imported\x20in\x20'+(Date['now']()-_0x48ee17)+'ms'),console['log'](LOG_PREFIX+_0x4ff8d5(0x244),Object[_0x4ff8d5(0x1eb)](_0x2d762c));if(typeof _0x2d762c?.[_0x4ff8d5(0x1b1)]!==_0x4ff8d5(0x1c7)){console['error'](LOG_PREFIX+_0x4ff8d5(0x259)),console[_0x4ff8d5(0x1ee)](LOG_PREFIX+_0x4ff8d5(0x178),Object[_0x4ff8d5(0x1eb)](_0x2d762c));return;}console[_0x4ff8d5(0x1aa)](LOG_PREFIX+_0x4ff8d5(0x1ce));const _0x52b678=_0x2d762c[_0x4ff8d5(0x1b1)]();console[_0x4ff8d5(0x1aa)](LOG_PREFIX+'\x20Controller\x20created:',_0x52b678),overlayController=_0x52b678,window[_0x4ff8d5(0x189)]=_0x52b678,_0x52b678[_0x4ff8d5(0x1bc)](_0x2c12e3['onToggle']),console[_0x4ff8d5(0x1aa)](LOG_PREFIX+_0x4ff8d5(0x1a6)),console['log'](LOG_PREFIX+'\x20Calling\x20updateOverlay()...'),updateOverlay();}catch(_0x58169a){console[_0x4ff8d5(0x1ee)](LOG_PREFIX+_0x4ff8d5(0x256),_0x58169a);}}function updateOverlay(){const _0x5a44d6=_0x146bdc;console[_0x5a44d6(0x1aa)](LOG_PREFIX+_0x5a44d6(0x1dc)),console[_0x5a44d6(0x1aa)](LOG_PREFIX+'\x20overlayController\x20exists:\x20'+!!overlayController),console['log'](LOG_PREFIX+_0x5a44d6(0x247)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x5a44d6(0x1aa)](LOG_PREFIX+_0x5a44d6(0x184));return;}const _0x1f5ea6=composeOverlayState(currentOptions);console[_0x5a44d6(0x1aa)](LOG_PREFIX+_0x5a44d6(0x208),JSON[_0x5a44d6(0x222)](_0x1f5ea6,null,0x2)),overlayController['update'](_0x1f5ea6),console[_0x5a44d6(0x1aa)](LOG_PREFIX+'\x20Overlay\x20update\x20complete');}function composeOverlayState(_0x284c69){const _0x3a8c9e=_0x146bdc,_0x1bd9b6=getEnhancementUrl();return console[_0x3a8c9e(0x1aa)](LOG_PREFIX+_0x3a8c9e(0x175)+_0x1bd9b6),console['log'](LOG_PREFIX+_0x3a8c9e(0x24d)+state[_0x3a8c9e(0x185)]),console[_0x3a8c9e(0x1aa)](LOG_PREFIX+_0x3a8c9e(0x1ad)+state[_0x3a8c9e(0x24e)]),{'enhancementUrl':_0x1bd9b6,'enabled':state[_0x3a8c9e(0x185)],'controlled':state[_0x3a8c9e(0x24e)],'overlayPosition':_0x284c69['overlay'][_0x3a8c9e(0x1ae)],'securityMode':_0x284c69[_0x3a8c9e(0x190)],'backendBaseUrl':_0x284c69[_0x3a8c9e(0x1a3)]};}async function setupRemoteHMR(_0x20c3db){const _0x39e7b6=_0x146bdc;console[_0x39e7b6(0x1aa)](LOG_PREFIX+_0x39e7b6(0x23e)+_0x20c3db);if(typeof window===_0x39e7b6(0x1f2))return;try{const _0x27a8ff=new URL(_0x20c3db,window['location'][_0x39e7b6(0x1fd)]),_0x36f620=_0x27a8ff[_0x39e7b6(0x1fd)];console[_0x39e7b6(0x1aa)](LOG_PREFIX+'\x20Overlay\x20origin:\x20'+_0x36f620+_0x39e7b6(0x23b)+window[_0x39e7b6(0x186)][_0x39e7b6(0x1fd)]);if(_0x36f620===window[_0x39e7b6(0x186)][_0x39e7b6(0x1fd)]){console[_0x39e7b6(0x1aa)](LOG_PREFIX+_0x39e7b6(0x196));return;}console['log'](LOG_PREFIX+_0x39e7b6(0x213)),await ensureReactRefreshPreamble(_0x36f620),await ensureViteClient(_0x36f620),console[_0x39e7b6(0x1aa)](LOG_PREFIX+_0x39e7b6(0x16d));}catch(_0x540603){console[_0x39e7b6(0x1e6)](LOG_PREFIX+_0x39e7b6(0x1e2),_0x540603);}}async function ensureReactRefreshPreamble(_0x50d17e){const _0x8497af=_0x146bdc;window[_0x8497af(0x1cf)]??=new Set();if(window['__enhanceReactRefreshInstalledOrigins'][_0x8497af(0x188)](_0x50d17e)){console[_0x8497af(0x1aa)](LOG_PREFIX+_0x8497af(0x19e)+_0x50d17e);return;}console[_0x8497af(0x1aa)](LOG_PREFIX+'\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20'+_0x50d17e+_0x8497af(0x20f));const _0x3e4d68=await import(_0x50d17e+_0x8497af(0x214)),_0x4ea87f=_0x3e4d68&&typeof _0x3e4d68===_0x8497af(0x187)&&'default'in _0x3e4d68?_0x3e4d68['default']:_0x3e4d68;if(!isRefreshRuntime(_0x4ea87f)){console[_0x8497af(0x1e6)](LOG_PREFIX+'\x20Invalid\x20React\x20Refresh\x20runtime');return;}_0x4ea87f['injectIntoGlobalHook'](window),window['$RefreshReg$']=()=>{},window[_0x8497af(0x18f)]=()=>_0x2bd5c9=>_0x2bd5c9,window[_0x8497af(0x18d)]=!![],window[_0x8497af(0x1cf)]['add'](_0x50d17e),console[_0x8497af(0x1aa)](LOG_PREFIX+_0x8497af(0x17c)+_0x50d17e);}async function ensureViteClient(_0x44ac9f){const _0x1c7f17=_0x146bdc;window[_0x1c7f17(0x248)]??=new Set();if(window[_0x1c7f17(0x248)][_0x1c7f17(0x188)](_0x44ac9f)){console[_0x1c7f17(0x1aa)](LOG_PREFIX+_0x1c7f17(0x1cb)+_0x44ac9f);return;}console['log'](LOG_PREFIX+'\x20Loading\x20Vite\x20HMR\x20client\x20from\x20'+_0x44ac9f+_0x1c7f17(0x20f)),await import(_0x44ac9f+_0x1c7f17(0x250)),window[_0x1c7f17(0x248)][_0x1c7f17(0x1bb)](_0x44ac9f),console['log'](LOG_PREFIX+'\x20Vite\x20HMR\x20client\x20loaded\x20for\x20'+_0x44ac9f);}function isRefreshRuntime(_0x1ee225){const _0x1da44f=_0x146bdc;return typeof _0x1ee225===_0x1da44f(0x187)&&_0x1ee225!==null&&_0x1da44f(0x1e4)in _0x1ee225&&typeof _0x1ee225[_0x1da44f(0x1e4)]==='function';}var WORKER_MESSAGE_CONFIG='enhance:configure',WORKER_MESSAGE_DISABLE=_0x146bdc(0x1f8),WORKER_MESSAGE_REQUEST_CONFIG=_0x146bdc(0x1d6),LOG_PREFIX2=_0x146bdc(0x25e),registration=null,messageListener=null,currentOptions2=null,configGetter=null;async function registerServiceWorker(_0x9fb112){const _0x50433b=_0x146bdc;console[_0x50433b(0x1aa)](LOG_PREFIX2+'\x20registerServiceWorker()\x20called'),console['log'](LOG_PREFIX2+'\x20swPath:\x20'+_0x9fb112[_0x50433b(0x164)]);if(!(_0x50433b(0x1a7)in navigator)){console['warn'](LOG_PREFIX2+_0x50433b(0x21e));return;}console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x1d4));const _0x3bd5b2=navigator[_0x50433b(0x1a7)][_0x50433b(0x1ba)];console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x1dd),_0x3bd5b2?.[_0x50433b(0x1df)]??_0x50433b(0x257)),console[_0x50433b(0x1aa)](LOG_PREFIX2+'\x20Controller\x20state:',_0x3bd5b2?.[_0x50433b(0x1a8)]??_0x50433b(0x172));const _0x3cb6d7=!!_0x3bd5b2;currentOptions2=_0x9fb112,configGetter=()=>buildWorkerConfiguration(_0x9fb112),console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x1b2));const _0x35f157=await detectBlockingServiceWorker(_0x9fb112[_0x50433b(0x164)]);if(_0x35f157){console[_0x50433b(0x1ee)](LOG_PREFIX2+_0x50433b(0x1ed)+_0x35f157),console['error'](LOG_PREFIX2+_0x50433b(0x204));return;}console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x1ec));try{console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x221)+_0x9fb112[_0x50433b(0x164)]+_0x50433b(0x265)),registration=await navigator[_0x50433b(0x1a7)]['register'](_0x9fb112[_0x50433b(0x164)],{'scope':'/'}),console[_0x50433b(0x1aa)](LOG_PREFIX2+'\x20Registration\x20returned:',{'scope':registration['scope'],'active':registration[_0x50433b(0x24a)]?.[_0x50433b(0x1df)],'waiting':registration[_0x50433b(0x215)]?.[_0x50433b(0x1df)],'installing':registration[_0x50433b(0x1ca)]?.[_0x50433b(0x1df)]}),console['log'](LOG_PREFIX2+'\x20Waiting\x20for\x20navigator.serviceWorker.ready...');const _0xc8e820=await navigator['serviceWorker'][_0x50433b(0x231)];console['log'](LOG_PREFIX2+_0x50433b(0x192),_0xc8e820[_0x50433b(0x24a)]?.[_0x50433b(0x1df)]);const _0x402dec=ownsCurrentController(_0x9fb112[_0x50433b(0x164)]);state[_0x50433b(0x24e)]=_0x402dec,console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x1c2)+_0x402dec),console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x1b5),navigator[_0x50433b(0x1a7)][_0x50433b(0x1ba)]?.[_0x50433b(0x1df)]??_0x50433b(0x257));if(!_0x3cb6d7&&!navigator[_0x50433b(0x1a7)][_0x50433b(0x1ba)]){console['log'](LOG_PREFIX2+_0x50433b(0x168)),window[_0x50433b(0x186)][_0x50433b(0x217)]();return;}console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x16c)),attachMessageListener(),console['log'](LOG_PREFIX2+_0x50433b(0x1c8)),await sendConfiguration();if(state[_0x50433b(0x185)]){const _0x30582=document[_0x50433b(0x17e)](_0x50433b(0x182))!==null;console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x264)+_0x30582);if(!_0x30582){console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x245)),window[_0x50433b(0x186)][_0x50433b(0x217)]();return;}}console['log'](LOG_PREFIX2+_0x50433b(0x200)),updateOverlay(),console[_0x50433b(0x1aa)](LOG_PREFIX2+_0x50433b(0x246));}catch(_0xc14890){console[_0x50433b(0x1ee)](LOG_PREFIX2+_0x50433b(0x22a),_0xc14890);}}async function sendConfiguration(){const _0x24caf5=_0x146bdc;console['log'](LOG_PREFIX2+_0x24caf5(0x16f)),console[_0x24caf5(0x1aa)](LOG_PREFIX2+_0x24caf5(0x170)+state[_0x24caf5(0x185)]+_0x24caf5(0x237)+!!configGetter);if(!state[_0x24caf5(0x185)]||!configGetter){console[_0x24caf5(0x1aa)](LOG_PREFIX2+_0x24caf5(0x18a));return;}const _0x3658a6=await resolveWorker();if(!_0x3658a6){console[_0x24caf5(0x1e6)](LOG_PREFIX2+'\x20No\x20service\x20worker\x20active\x20to\x20configure');return;}const _0x18316b=configGetter();console[_0x24caf5(0x1aa)](LOG_PREFIX2+'\x20Sending\x20config\x20to\x20SW:',JSON[_0x24caf5(0x222)](_0x18316b,null,0x2)),_0x3658a6['postMessage']({'type':WORKER_MESSAGE_CONFIG,'config':_0x18316b}),console[_0x24caf5(0x1aa)](LOG_PREFIX2+'\x20Config\x20sent\x20to\x20SW');}async function unregisterServiceWorker(_0x432d55){const _0x91b9b9=_0x146bdc;console[_0x91b9b9(0x1aa)](LOG_PREFIX2+_0x91b9b9(0x266));if(!('serviceWorker'in navigator)){console[_0x91b9b9(0x1aa)](LOG_PREFIX2+'\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister');return;}detachMessageListener();try{const _0x19dee9=registration??await navigator[_0x91b9b9(0x1a7)]['getRegistration']('/');if(!_0x19dee9){console[_0x91b9b9(0x1aa)](LOG_PREFIX2+_0x91b9b9(0x209));return;}console[_0x91b9b9(0x1aa)](LOG_PREFIX2+_0x91b9b9(0x1c9),{'scope':_0x19dee9[_0x91b9b9(0x166)],'active':_0x19dee9['active']?.[_0x91b9b9(0x1df)],'waiting':_0x19dee9[_0x91b9b9(0x215)]?.[_0x91b9b9(0x1df)],'installing':_0x19dee9[_0x91b9b9(0x1ca)]?.[_0x91b9b9(0x1df)]});const _0x131098=[_0x19dee9[_0x91b9b9(0x24a)]?.['scriptURL'],_0x19dee9[_0x91b9b9(0x215)]?.[_0x91b9b9(0x1df)],_0x19dee9[_0x91b9b9(0x1ca)]?.[_0x91b9b9(0x1df)]],_0x9fa264=_0x131098['some'](_0x14e6d8=>_0x14e6d8&&ownsServiceWorker(_0x14e6d8,_0x432d55));if(!_0x9fa264){console[_0x91b9b9(0x1aa)](LOG_PREFIX2+'\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering');return;}_0x19dee9[_0x91b9b9(0x24a)]&&(console[_0x91b9b9(0x1aa)](LOG_PREFIX2+_0x91b9b9(0x16e)),_0x19dee9[_0x91b9b9(0x24a)][_0x91b9b9(0x1be)]({'type':WORKER_MESSAGE_DISABLE})),console['log'](LOG_PREFIX2+_0x91b9b9(0x195)),await _0x19dee9[_0x91b9b9(0x218)](),registration=null,console[_0x91b9b9(0x1aa)](LOG_PREFIX2+_0x91b9b9(0x22e));}catch(_0x1bc5b4){console[_0x91b9b9(0x1ee)](LOG_PREFIX2+_0x91b9b9(0x260),_0x1bc5b4);}}function attachMessageListener(){const _0x261107=_0x146bdc;if(!navigator[_0x261107(0x1a7)]||messageListener){console[_0x261107(0x1aa)](LOG_PREFIX2+_0x261107(0x1da));return;}messageListener=_0x49a4f3=>{const _0x1b6602=_0x261107,_0x545340=_0x49a4f3[_0x1b6602(0x201)];console['log'](LOG_PREFIX2+'\x20Received\x20message\x20from\x20SW:',_0x545340);if(!_0x545340||typeof _0x545340!=='object')return;_0x545340['type']===WORKER_MESSAGE_REQUEST_CONFIG&&(console[_0x1b6602(0x1aa)](LOG_PREFIX2+'\x20SW\x20requested\x20config\x20-\x20sending...'),void sendConfiguration());},navigator[_0x261107(0x1a7)][_0x261107(0x258)]('message',messageListener),console[_0x261107(0x1aa)](LOG_PREFIX2+'\x20Message\x20listener\x20attached');}function detachMessageListener(){const _0x573bf4=_0x146bdc;navigator['serviceWorker']&&messageListener&&(navigator[_0x573bf4(0x1a7)][_0x573bf4(0x24b)](_0x573bf4(0x1c3),messageListener),messageListener=null,console[_0x573bf4(0x1aa)](LOG_PREFIX2+'\x20Message\x20listener\x20detached'));}function ownsServiceWorker(_0xec49ab,_0x2091ea){const _0x36f63e=_0x146bdc,_0x2a91ae=typeof window!==_0x36f63e(0x1f2)?window[_0x36f63e(0x186)][_0x36f63e(0x1fd)]:'',_0x182c61=new URL(_0x2091ea,_0x2a91ae||void 0x0)[_0x36f63e(0x21f)],_0x1e2b6d=_0xec49ab===_0x182c61||_0xec49ab[_0x36f63e(0x1b0)](_0x36f63e(0x25d));return console[_0x36f63e(0x1aa)](LOG_PREFIX2+'\x20ownsServiceWorker?\x20scriptURL='+_0xec49ab+',\x20expected='+_0x182c61+_0x36f63e(0x1ff)+_0x1e2b6d),_0x1e2b6d;}function ownsCurrentController(_0xb52035){const _0x5196ea=_0x146bdc;if(typeof navigator==='undefined')return![];const _0x2f1fc6=navigator[_0x5196ea(0x1a7)]?.[_0x5196ea(0x1ba)];if(!_0x2f1fc6)return console[_0x5196ea(0x1aa)](LOG_PREFIX2+_0x5196ea(0x251)),![];return ownsServiceWorker(_0x2f1fc6[_0x5196ea(0x1df)],_0xb52035);}async function detectBlockingServiceWorker(_0xbccda1){const _0x2a6d65=_0x146bdc;if(!navigator[_0x2a6d65(0x1a7)])return null;try{const _0x25cbc5=await navigator[_0x2a6d65(0x1a7)][_0x2a6d65(0x236)]('/');console[_0x2a6d65(0x1aa)](LOG_PREFIX2+_0x2a6d65(0x224),_0x25cbc5?.[_0x2a6d65(0x24a)]?.['scriptURL']??_0x2a6d65(0x257));const _0x413910=_0x25cbc5?.[_0x2a6d65(0x24a)]?.['scriptURL'];if(!_0x413910)return null;if(ownsServiceWorker(_0x413910,_0xbccda1))return null;return _0x413910;}catch(_0xff67a9){return console[_0x2a6d65(0x1ee)](LOG_PREFIX2+_0x2a6d65(0x22d),_0xff67a9),null;}}async function resolveWorker(){const _0x512667=_0x146bdc,_0x1db6fa=registration??await navigator['serviceWorker']?.[_0x512667(0x236)]('/'),_0x4206cb=_0x1db6fa?.[_0x512667(0x24a)]??_0x1db6fa?.[_0x512667(0x215)]??_0x1db6fa?.[_0x512667(0x1ca)]??null;return console[_0x512667(0x1aa)](LOG_PREFIX2+_0x512667(0x180),_0x4206cb?.[_0x512667(0x1df)]??_0x512667(0x257),_0x512667(0x1cd)+(_0x4206cb?.[_0x512667(0x1a8)]??_0x512667(0x172))),_0x4206cb;}function buildWorkerConfiguration(_0x15f8ac){const _0x2c9eec=_0x146bdc,_0x988472=getEnhancementUrl();return console[_0x2c9eec(0x1aa)](LOG_PREFIX2+_0x2c9eec(0x233)+_0x988472),{'enhancementUrl':_0x988472,'callbackBypass':_0x15f8ac[_0x2c9eec(0x261)],'overlayPath':_0x15f8ac[_0x2c9eec(0x1ac)],'overlayEnableViteHmr':_0x15f8ac[_0x2c9eec(0x205)][_0x2c9eec(0x253)],'runtimeScriptPath':_0x15f8ac[_0x2c9eec(0x179)],'swPath':_0x15f8ac['swPath'],'securityMode':_0x15f8ac[_0x2c9eec(0x190)],'backendUrl':_0x15f8ac[_0x2c9eec(0x1a3)]};}var LOG_PREFIX3='[Enhance\x20Runtime]',initialized=![],options=null,Enhance={'init'(_0x6c2f83){const _0x42d9ee=_0x146bdc,_0x1863a0=Date['now']();console[_0x42d9ee(0x1aa)](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x1863a0),console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x174)+window['location'][_0x42d9ee(0x21f)]),console['log'](LOG_PREFIX3+_0x42d9ee(0x173)+document[_0x42d9ee(0x1a2)]),console[_0x42d9ee(0x1aa)](LOG_PREFIX3+'\x20Raw\x20options:',JSON[_0x42d9ee(0x222)](_0x6c2f83,null,0x2));if(initialized)return console[_0x42d9ee(0x1e6)](LOG_PREFIX3+_0x42d9ee(0x194)),createController();initialized=!![],console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x24c)),options=normalizeOptions(_0x6c2f83),console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x17d),JSON['stringify'](options,null,0x2));const _0x567bbd=parseUrlParams();console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x232),JSON[_0x42d9ee(0x222)](_0x567bbd,null,0x2));if(_0x567bbd['explicitDisable'])return cleanUrlParam(_0x42d9ee(0x17b)),console['log'](LOG_PREFIX3+_0x42d9ee(0x21c)),createController();if(_0x567bbd[_0x42d9ee(0x177)])return console['log'](LOG_PREFIX3+_0x42d9ee(0x1b8)),console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x18b)+_0x567bbd[_0x42d9ee(0x1e0)]),console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x1a0)+_0x567bbd[_0x42d9ee(0x1fc)]),state['enabled']=!![],console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x21d)),void loadOverlay({'overlayPath':options[_0x42d9ee(0x1ac)],'enableViteHmr':options[_0x42d9ee(0x205)]['enableViteHmr'],'options':options,'onToggle':handleToggle}),console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x227)),void registerServiceWorker(options),console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x19c)),createController();return console[_0x42d9ee(0x1aa)](LOG_PREFIX3+'\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params'),console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x21a)),void unregisterServiceWorker(options[_0x42d9ee(0x164)]),console[_0x42d9ee(0x1aa)](LOG_PREFIX3+_0x42d9ee(0x235)),createController();}};function createController(){return{'enable'(){const _0xee9c59=_0x375c;if(!options)return;state['enabled']=!![],void loadOverlay({'overlayPath':options[_0xee9c59(0x1ac)],'enableViteHmr':options['overlay'][_0xee9c59(0x253)],'options':options,'onToggle':handleToggle}),void registerServiceWorker(options),void sendConfiguration(),updateOverlay();},'disable'(){const _0xce9f=_0x375c;if(!options)return;state['enabled']=![],state[_0xce9f(0x24e)]=![],updateOverlay(),void unregisterServiceWorker(options[_0xce9f(0x164)]);},'status'(){const _0x197a4b=_0x375c;return{'enabled':state[_0x197a4b(0x185)],'controlled':state['controlled']};}};}function handleToggle(){const _0x436f14=_0x146bdc,_0x567472=createController();state[_0x436f14(0x185)]?_0x567472[_0x436f14(0x18e)]():_0x567472[_0x436f14(0x254)]();}function _0x375c(_0x4a8986,_0x1e811d){const _0x9fdd80=_0x9fdd();return _0x375c=function(_0x375c59,_0xd4ae91){_0x375c59=_0x375c59-0x164;let _0x32f9e2=_0x9fdd80[_0x375c59];return _0x32f9e2;},_0x375c(_0x4a8986,_0x1e811d);}function parseUrlParams(){const _0x21a435=_0x146bdc,_0x431e6e=new URL(window[_0x21a435(0x186)]['href']),_0x58781a=_0x431e6e['searchParams']['get'](_0x21a435(0x17b))?.[_0x21a435(0x25a)](),_0x228eb5=_0x431e6e['searchParams'][_0x21a435(0x211)](_0x21a435(0x1e0)),_0x2ebae3=_0x431e6e[_0x21a435(0x226)]['get'](_0x21a435(0x238));return{'hasEnhancement':Boolean(_0x228eb5||_0x2ebae3),'explicitDisable':_0x58781a==='0'||_0x58781a==='false'||_0x58781a===_0x21a435(0x229),'enhancementUrl':_0x228eb5,'enhancementId':_0x2ebae3};}function cleanUrlParam(_0x304556){const _0x3e247b=_0x146bdc,_0x5806d7=new URL(window[_0x3e247b(0x186)][_0x3e247b(0x21f)]);_0x5806d7[_0x3e247b(0x226)][_0x3e247b(0x188)](_0x304556)&&(_0x5806d7[_0x3e247b(0x226)][_0x3e247b(0x1e1)](_0x304556),window['history'][_0x3e247b(0x206)](null,document['title'],_0x5806d7[_0x3e247b(0x20a)]()));}var package_default={'name':_0x146bdc(0x1f0),'version':_0x146bdc(0x1c4),'type':_0x146bdc(0x1b6),'description':_0x146bdc(0x1e5),'license':_0x146bdc(0x1f1),'main':_0x146bdc(0x223),'module':_0x146bdc(0x252),'types':'./dist/index.d.ts','exports':{'.':{'types':_0x146bdc(0x199),'import':_0x146bdc(0x252),'require':_0x146bdc(0x223)},'./vite':{'types':_0x146bdc(0x21b),'import':'./dist/vite/index.js'}},'files':[_0x146bdc(0x19a),_0x146bdc(0x1e9),_0x146bdc(0x24f)],'bin':{'enhance-sandbox':_0x146bdc(0x19b)},'scripts':{'typecheck':'tsc\x20--noEmit','dev':_0x146bdc(0x20b),'dev:staging':_0x146bdc(0x1fe),'build':_0x146bdc(0x239),'build:release':_0x146bdc(0x167),'version':'pnpm\x20version\x20patch\x20--no-git-tag-version'},'dependencies':{'commander':'^11.1.0','zod':_0x146bdc(0x181)},'devDependencies':{'@types/node':_0x146bdc(0x25c),'javascript-obfuscator':_0x146bdc(0x228),'tsup':_0x146bdc(0x20c),'vite':_0x146bdc(0x1ea)},'publishConfig':{'access':_0x146bdc(0x17a)}},DEFAULT_SERVICE_WORKER_PATH=_0x146bdc(0x16a),DEFAULT_RUNTIME_PATH='/assets/enhance-runtime.js',DIST_SERVICE_WORKER_PATH=_0x146bdc(0x1b9),DIST_RUNTIME_PATH=_0x146bdc(0x1c5),PACKAGE_VERSION=typeof package_default[_0x146bdc(0x197)]===_0x146bdc(0x25f)?package_default[_0x146bdc(0x197)]:_0x146bdc(0x1bd);function normalizeAssetPath(_0x18f25a){const _0x436171=_0x146bdc;if(!_0x18f25a)return _0x18f25a;if(_0x18f25a['startsWith'](_0x436171(0x193))||_0x18f25a[_0x436171(0x1d8)](_0x436171(0x220)))return _0x18f25a;const _0xb7cb82=_0x18f25a[_0x436171(0x262)](/^\.\//,'');return _0xb7cb82[_0x436171(0x1d8)]('/')?_0xb7cb82:'/'+_0xb7cb82;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x58abdb){const _0x103b79=_0x146bdc;return Enhance[_0x103b79(0x22f)](_0x58abdb);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function serviceWorkerURL(){const _0x3e382f=_0x146bdc;return Enhance2[_0x3e382f(0x212)]();}function runtimeURL(){const _0x4f3555=_0x146bdc;return Enhance2[_0x4f3555(0x234)]();}import{promises as _0x24f58a}from'fs';import{createHash}from'crypto';import{dirname,join}from'path';import{fileURLToPath}from'url';var distDir=dirname(fileURLToPath(new URL(_0x146bdc(0x17f),import.meta['url'])));async function syncAssets(_0x32359a){const _0x1c8603=_0x146bdc,_0x48fca7=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0x32359a[_0x1c8603(0x202)]?'./'+_0x32359a[_0x1c8603(0x202)]:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0x2b2164=[];for(const _0x2b80b7 of _0x48fca7){const _0x4b2896=cleanRelativePath(_0x2b80b7[_0x1c8603(0x1d3)]??_0x2b80b7[_0x1c8603(0x19f)]),_0x5c96a6=join(distDir,cleanRelativePath(_0x2b80b7[_0x1c8603(0x1d2)])),_0x38a9b8=join(_0x32359a[_0x1c8603(0x216)],_0x4b2896),[_0x4f19a9,_0x47a4cb]=await Promise[_0x1c8603(0x20e)]([readDigest(_0x5c96a6),readDigest(_0x38a9b8)]);if(_0x4f19a9&&_0x47a4cb&&_0x4f19a9===_0x47a4cb){_0x2b2164['push']({'sourcePath':_0x5c96a6,'destinationPath':_0x38a9b8,'relativeDestination':_0x4b2896,'status':_0x1c8603(0x1b4)});continue;}await _0x24f58a['mkdir'](dirname(_0x38a9b8),{'recursive':!![]}),await _0x24f58a[_0x1c8603(0x1f7)](_0x5c96a6,_0x38a9b8),_0x2b2164[_0x1c8603(0x1c1)]({'sourcePath':_0x5c96a6,'destinationPath':_0x38a9b8,'relativeDestination':_0x4b2896,'status':_0x1c8603(0x1b3)});}return _0x2b2164;}function cleanRelativePath(_0x4316fb){return _0x4316fb['replace'](/^[./]+/,'');}async function readDigest(_0x1c88c4){const _0x2cac38=_0x146bdc;try{const _0x25564=await _0x24f58a['readFile'](_0x1c88c4);return createHash(_0x2cac38(0x176))[_0x2cac38(0x165)](_0x25564)['digest']('base64');}catch(_0xd65dbf){if(_0xd65dbf[_0x2cac38(0x1db)]===_0x2cac38(0x263))return null;throw _0xd65dbf;}}var program=new Command();program[_0x146bdc(0x1f4)](_0x146bdc(0x230))[_0x146bdc(0x1d1)]('Enhance\x20sandbox\x20utility\x20CLI')[_0x146bdc(0x197)]('0.0.0'),program[_0x146bdc(0x219)](_0x146bdc(0x1ef))['description'](_0x146bdc(0x249))[_0x146bdc(0x1c6)](()=>{const _0x5d752e=_0x146bdc,_0x533200=getAssetManifest();process[_0x5d752e(0x23f)][_0x5d752e(0x23c)](JSON['stringify'](_0x533200,null,0x2)+'\x0a');}),program[_0x146bdc(0x219)]('prepare-sw')[_0x146bdc(0x1d1)](_0x146bdc(0x1d7))[_0x146bdc(0x1f3)]('--public-dir\x20<path>',_0x146bdc(0x1e8))[_0x146bdc(0x203)](_0x146bdc(0x22c),_0x146bdc(0x1e3))[_0x146bdc(0x1c6)](async _0x4202c8=>{const _0x3d6fa8=_0x146bdc,_0x5966db=resolve(process[_0x3d6fa8(0x243)](),_0x4202c8['publicDir']),_0x391a55=await syncAssets({'publicDir':_0x5966db,'swFilename':_0x4202c8[_0x3d6fa8(0x242)]});for(const _0x5248ea of _0x391a55){const _0x401505=relative(process['cwd'](),_0x5248ea[_0x3d6fa8(0x1f5)]);_0x5248ea[_0x3d6fa8(0x1b7)]==='skipped'?process[_0x3d6fa8(0x23f)][_0x3d6fa8(0x23c)](_0x3d6fa8(0x198)+_0x5248ea['relativeDestination']+_0x3d6fa8(0x1a1)+_0x401505+']\x0a'):process[_0x3d6fa8(0x23f)][_0x3d6fa8(0x23c)](_0x3d6fa8(0x1c0)+_0x5248ea[_0x3d6fa8(0x1cc)]+_0x3d6fa8(0x171)+_0x401505+'\x0a');}}),program[_0x146bdc(0x1e7)]();
3
+ const _0x10da16=_0x858b;(function(_0xb8a3b8,_0x14f4c9){const _0x233ddd=_0x858b,_0x3063b1=_0xb8a3b8();while(!![]){try{const _0x1e7f5e=-parseInt(_0x233ddd(0x1a2))/0x1*(-parseInt(_0x233ddd(0x1a6))/0x2)+parseInt(_0x233ddd(0x1c5))/0x3+-parseInt(_0x233ddd(0x1b0))/0x4*(parseInt(_0x233ddd(0x196))/0x5)+parseInt(_0x233ddd(0x1db))/0x6+parseInt(_0x233ddd(0x1e5))/0x7+parseInt(_0x233ddd(0x1eb))/0x8+parseInt(_0x233ddd(0x106))/0x9*(-parseInt(_0x233ddd(0x1ee))/0xa);if(_0x1e7f5e===_0x14f4c9)break;else _0x3063b1['push'](_0x3063b1['shift']());}catch(_0x189801){_0x3063b1['push'](_0x3063b1['shift']());}}}(_0xe4ca,0xbad0f));import{Command}from'commander';import{resolve,relative}from'path';var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x10da16(0x17c)?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x10da16(0x160),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x10da16(0x17c)?__ENHANCE_DEFAULT_BACKEND_URL__:_0x10da16(0x198),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x10da16(0x17c)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x10da16(0x15f)](_0x10da16(0x1f6),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x44fa44){const _0x2c1ef3=_0x10da16,_0x52003d=_0x44fa44[_0x2c1ef3(0x101)]??{};return{'callbackBypass':_0x44fa44[_0x2c1ef3(0x11e)],'overlay':{'enabled':!![],'position':_0x2c1ef3(0x1a3),'enableViteHmr':_0x52003d[_0x2c1ef3(0x1e0)]??DEFAULT_OVERLAY_HMR},'logLevel':'info','swPath':_0x2c1ef3(0x185),'overlayPath':_0x52003d[_0x2c1ef3(0x16e)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x2c1ef3(0x100),'security':_0x52003d[_0x2c1ef3(0x133)]??_0x2c1ef3(0x1fc),'backendUrl':_0x52003d[_0x2c1ef3(0x1d4)]??DEFAULT_BACKEND_URL};}function _0xe4ca(){const _0x13385a=['enabled','\x20registerServiceWorker()\x20called','Copied\x20','none','\x20detectBlocking\x20error:','Enhance\x20sandbox\x20utility\x20CLI','\x20enhancementUrl:\x20','\x20Calling\x20createOverlay()...','sourcePath','\x20No\x20window\x20object\x20-\x20skipping','\x20Registering\x20SW\x20at\x20','\x20Module\x20exports:','vite:error','sw-enhance.js','searchParams','runtimeURL','--public-dir\x20<path>','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','\x20No\x20service\x20worker\x20active\x20to\x20configure','\x20Available\x20exports:','createOverlay','log','https://assets.enhancelabs.ai/overlay.js','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','search','swFilename','^3.22.4','./dist/index.d.ts','relativeDestination','string','\x20Module\x20imported\x20in\x20','__enhanceOptions','vite:beforeUpdate','installing','has','overlayPath','update','__enhanceReactRefreshInstalledOrigins','skipped','sha256','enhancementId','cwd','\x20Raw\x20options:','MIT','status','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','\x20First\x20initialization','\x20Updating\x20overlay...','origin','undefined','\x20Found\x20registration:','__enhanceInitialized','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','\x20enhancementId:\x20','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','\x20Setting\x20up\x20remote\x20HMR...','description','\x20Document\x20readyState:\x20','/sw-enhance.js','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','\x20overlayController\x20exists:\x20','swPath','\x20ownsServiceWorker?\x20scriptURL=','[Enhance\x20Runtime]','trim','querySelector','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','code','stdout','\x20Failed\x20to\x20register\x20service\x20worker:','\x20swPath:\x20','./dist/vite/index.d.ts','\x20sendConfiguration()\x20called','some','\x20Calling\x20updateOverlay()...','10CWwdKu','object','https://api.enhancelabs.ai','copyFile','[Enhance\x20Overlay]','enhancementUrl','dist','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','push','/@react-refresh',',\x20owns=','1CneAZe','bottom-right','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','\x20Vite\x20client\x20already\x20loaded\x20for\x20','2117606LCXODo','postMessage','injectIntoGlobalHook','N/A','keys','\x20React\x20Refresh\x20already\x20installed\x20for\x20','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','\x20Updating\x20overlay\x20with\x20state:','./dist/index.cjs','0.3.18','2918236wIRkWl','option','init','\x20Enhancement\x20detection:\x20wasEnhanced=','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','startsWith','\x20Checking\x20for\x20blocking\x20service\x20worker...','copied','controller','\x20doLoadOverlay()\x20starting...','\x20Current\x20URL:\x20','\x20state.enabled:\x20','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','reload','\x20detectBlocking\x20-\x20existing\x20registration:','error','\x20with\x20scope\x20\x27/\x27...','\x20HMR\x20setup\x20complete','toLowerCase','serviceWorkerURL','2551125LyxpxW','enhance','enhance:configure','\x20loadOverlay()\x20failed:','__enhanceOverlay','__viteHMRLoaded','controlled','onToggle','serviceWorker','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','^11.1.0','url','appError','\x20Starting\x20SW\x20registration\x20(async)...','\x20Overlay\x20controller\x20initialized\x20and\x20cached','backendUrl','\x20composeOverlayState\x20-\x20state.enabled:\x20','$RefreshReg$','bin/enhance-sandbox.js','enhance:disable','mkdir','off','2923446ZsnUhH','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','warn','options','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','enableOverlayHmr','\x20Unregistering\x20any\x20existing\x20SW...','scope','Copy\x20the\x20service\x20worker\x20and\x20overlay\x20bundle\x20into\x20a\x20public\x20directory','function','110439CTnJMf','\x20Module\x20missing\x20createOverlay\x20export!',',\x20expected=','overlay','public','scriptURL','7598072oCZRqq','location','override','18290IhOoEy','/@vite/client','enable','\x20Enhancement\x20mode\x20ENABLED','readFile','\x20init()\x20called\x20at\x20','title','all','[Enhance\x20Config]\x20Build-time\x20defaults:','\x20Controller\x20created:','publicDir','^7.2.4','history','enableViteHmr','permissive','waiting','includes','err','Print\x20the\x20current\x20asset\x20manifest','now','http://','state:\x20','^24.10.1','Skipped\x20','\x20Starting\x20fresh\x20overlay\x20load...',',\x20page\x20origin:\x20','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','prepare-sw',',\x20currentOptions:\x20','\x20Config\x20sent\x20to\x20SW','ENOENT','^8.5.1','\x20Starting\x20overlay\x20load\x20(async)...','/assets/enhance-runtime.js','__development','getRegistration','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','../dist/index.js','unregister','5598qoSXty','\x20unregisterServiceWorker()\x20called','filename','\x20No\x20current\x20controller','hot','add','\x20overlayPath:\x20','\x20resolveWorker:','pnpm\x20version\x20patch\x20--no-git-tag-version','\x20BLOCKING\x20SW\x20detected:\x20','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','enhancement','$RefreshSig$','\x20SW\x20unregistered\x20successfully','active','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','./dist/index.js','\x20SW\x20ready!\x20Active:','__vite_plugin_react_preamble_installed__','[Enhance\x20SW-Client]','message','^4.1.1','https://','readyState','callbackBypass','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','digest','stringify','--filename\x20<name>','tsc\x20--noEmit','ready','default','0.0.0','...','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','version','sw-enhance','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','enhance-sandbox','command','\x20Failed\x20to\x20import/create\x20overlay:','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','__enhanceController','\x20loadOverlay()\x20called','security','href','\x20Failed\x20to\x20unregister\x20service\x20worker:','\x20setupRemoteHMR()\x20for\x20','destinationPath','\x20No\x20blocking\x20SW\x20found','hasEnhancement','replaceState','toString','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','get','\x20Overlay\x20origin:\x20','requiredOption','\x20URL\x20params\x20parsed:','action','enhance.config.sample.json','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','state','\x20enableViteHmr:\x20','disable','module','write'];_0xe4ca=function(){return _0x13385a;};return _0xe4ca();}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementUrl(){const _0x36748a=_0x10da16;try{const _0x3458cb=new URLSearchParams(window['location'][_0x36748a(0x163)]);return _0x3458cb[_0x36748a(0x13d)](_0x36748a(0x19b))?.[_0x36748a(0x18b)]()||'';}catch{return'';}}var LOG_PREFIX=_0x10da16(0x19a),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x7db93){const _0x31e64d=_0x10da16;console['log'](LOG_PREFIX+_0x31e64d(0x132)),console['log'](LOG_PREFIX+_0x31e64d(0x10c)+_0x7db93[_0x31e64d(0x16e)]),console[_0x31e64d(0x15f)](LOG_PREFIX+_0x31e64d(0x145)+_0x7db93[_0x31e64d(0x1fb)]),currentOptions=_0x7db93[_0x31e64d(0x1de)],toggleHandler=_0x7db93[_0x31e64d(0x1cc)];if(overlayController){console['log'](LOG_PREFIX+'\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay'),updateOverlay();return;}if(overlayLoadPromise)return console[_0x31e64d(0x15f)](LOG_PREFIX+_0x31e64d(0xf9)),overlayLoadPromise;console[_0x31e64d(0x15f)](LOG_PREFIX+_0x31e64d(0x206)),overlayLoadPromise=doLoadOverlay(_0x7db93);try{await overlayLoadPromise,console['log'](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0xd274b7){console['error'](LOG_PREFIX+_0x31e64d(0x1c8),_0xd274b7);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x38ba53){const _0x316721=_0x10da16;console['log'](LOG_PREFIX+_0x316721(0x1ba));if(typeof window===_0x316721(0x17c)){console['log'](LOG_PREFIX+_0x316721(0x152));return;}if(window[_0x316721(0x1c9)]){console[_0x316721(0x15f)](LOG_PREFIX+_0x316721(0x12c)),overlayController=window['__enhanceOverlay'];return;}console[_0x316721(0x15f)](LOG_PREFIX+_0x316721(0x1dc));try{_0x38ba53[_0x316721(0x1fb)]&&(console[_0x316721(0x15f)](LOG_PREFIX+_0x316721(0x182)),await setupRemoteHMR(_0x38ba53[_0x316721(0x16e)]));console['log'](LOG_PREFIX+'\x20Importing\x20overlay\x20module\x20from:\x20'+_0x38ba53[_0x316721(0x16e)]);const _0x3358c1=Date['now'](),_0x5a054d=await import(_0x38ba53[_0x316721(0x16e)]);console['log'](LOG_PREFIX+_0x316721(0x169)+(Date[_0x316721(0x201)]()-_0x3358c1)+'ms'),console[_0x316721(0x15f)](LOG_PREFIX+_0x316721(0x154),Object[_0x316721(0x1aa)](_0x5a054d));if(typeof _0x5a054d?.['createOverlay']!==_0x316721(0x1e4)){console[_0x316721(0x1c0)](LOG_PREFIX+_0x316721(0x1e6)),console[_0x316721(0x1c0)](LOG_PREFIX+_0x316721(0x15d),Object['keys'](_0x5a054d));return;}console[_0x316721(0x15f)](LOG_PREFIX+_0x316721(0x150));const _0x258a66=_0x5a054d[_0x316721(0x15e)]();console[_0x316721(0x15f)](LOG_PREFIX+_0x316721(0x1f7),_0x258a66),overlayController=_0x258a66,window[_0x316721(0x1c9)]=_0x258a66,_0x258a66['onToggle'](_0x38ba53[_0x316721(0x1cc)]),console[_0x316721(0x15f)](LOG_PREFIX+_0x316721(0x1d3)),console[_0x316721(0x15f)](LOG_PREFIX+_0x316721(0x195)),updateOverlay();}catch(_0x4f3e84){console[_0x316721(0x1c0)](LOG_PREFIX+_0x316721(0x12f),_0x4f3e84);}}function updateOverlay(){const _0x3b452a=_0x10da16;console[_0x3b452a(0x15f)](LOG_PREFIX+'\x20updateOverlay()\x20called'),console[_0x3b452a(0x15f)](LOG_PREFIX+_0x3b452a(0x187)+!!overlayController),console['log'](LOG_PREFIX+'\x20currentOptions\x20exists:\x20'+!!currentOptions);if(!overlayController||!currentOptions){console[_0x3b452a(0x15f)](LOG_PREFIX+'\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update');return;}const _0x294b7d=composeOverlayState(currentOptions);console[_0x3b452a(0x15f)](LOG_PREFIX+_0x3b452a(0x1ad),JSON[_0x3b452a(0x122)](_0x294b7d,null,0x2)),overlayController[_0x3b452a(0x16f)](_0x294b7d),console[_0x3b452a(0x15f)](LOG_PREFIX+'\x20Overlay\x20update\x20complete');}function _0x858b(_0x5a4174,_0x33f7f9){const _0xe4ca9b=_0xe4ca();return _0x858b=function(_0x858b42,_0x16ca67){_0x858b42=_0x858b42-0xf8;let _0x4feb92=_0xe4ca9b[_0x858b42];return _0x4feb92;},_0x858b(_0x5a4174,_0x33f7f9);}function composeOverlayState(_0xb978c7){const _0x31ed78=_0x10da16,_0xcaf78b=getEnhancementUrl();return console['log'](LOG_PREFIX+_0x31ed78(0x1a4)+_0xcaf78b),console[_0x31ed78(0x15f)](LOG_PREFIX+_0x31ed78(0x1d5)+state[_0x31ed78(0x149)]),console[_0x31ed78(0x15f)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.controlled:\x20'+state['controlled']),{'enhancementUrl':_0xcaf78b,'enabled':state[_0x31ed78(0x149)],'controlled':state[_0x31ed78(0x1cb)],'overlayPosition':_0xb978c7[_0x31ed78(0x1e8)]['position'],'securityMode':_0xb978c7['security'],'backendBaseUrl':_0xb978c7[_0x31ed78(0x1d4)],'appError':state['appError']};}async function setupRemoteHMR(_0x3d2fa1){const _0x5e47f4=_0x10da16;console[_0x5e47f4(0x15f)](LOG_PREFIX+_0x5e47f4(0x136)+_0x3d2fa1);if(typeof window==='undefined')return;try{const _0x2b7335=new URL(_0x3d2fa1,window[_0x5e47f4(0x1ec)][_0x5e47f4(0x17b)]),_0x19da91=_0x2b7335['origin'];console[_0x5e47f4(0x15f)](LOG_PREFIX+_0x5e47f4(0x13e)+_0x19da91+_0x5e47f4(0xf8)+window[_0x5e47f4(0x1ec)][_0x5e47f4(0x17b)]);if(_0x19da91===window['location']['origin']){console[_0x5e47f4(0x15f)](LOG_PREFIX+_0x5e47f4(0x143));return;}console['log'](LOG_PREFIX+'\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...'),await ensureReactRefreshPreamble(_0x19da91),await ensureViteClient(_0x19da91),console['log'](LOG_PREFIX+_0x5e47f4(0x1c2));}catch(_0x16be7b){console[_0x5e47f4(0x1dd)](LOG_PREFIX+'\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):',_0x16be7b);}}async function ensureReactRefreshPreamble(_0x26eb28){const _0xa812a8=_0x10da16;window[_0xa812a8(0x170)]??=new Set();if(window[_0xa812a8(0x170)][_0xa812a8(0x16d)](_0x26eb28)){console['log'](LOG_PREFIX+_0xa812a8(0x1ab)+_0x26eb28);return;}console[_0xa812a8(0x15f)](LOG_PREFIX+_0xa812a8(0x161)+_0x26eb28+'...');const _0xde6f2=await import(_0x26eb28+_0xa812a8(0x1a0)),_0x5f5af7=_0xde6f2&&typeof _0xde6f2===_0xa812a8(0x197)&&_0xa812a8(0x126)in _0xde6f2?_0xde6f2[_0xa812a8(0x126)]:_0xde6f2;if(!isRefreshRuntime(_0x5f5af7)){console['warn'](LOG_PREFIX+'\x20Invalid\x20React\x20Refresh\x20runtime');return;}_0x5f5af7[_0xa812a8(0x1a8)](window),window[_0xa812a8(0x1d6)]=()=>{},window[_0xa812a8(0x112)]=()=>_0x4187e8=>_0x4187e8,window[_0xa812a8(0x118)]=!![],window['__enhanceReactRefreshInstalledOrigins'][_0xa812a8(0x10b)](_0x26eb28),console[_0xa812a8(0x15f)](LOG_PREFIX+_0xa812a8(0x13c)+_0x26eb28);}async function ensureViteClient(_0x33c82e){const _0x34ee56=_0x10da16;window[_0x34ee56(0x1ca)]??=new Set();if(window[_0x34ee56(0x1ca)][_0x34ee56(0x16d)](_0x33c82e)){console[_0x34ee56(0x15f)](LOG_PREFIX+_0x34ee56(0x1a5)+_0x33c82e);return;}console[_0x34ee56(0x15f)](LOG_PREFIX+_0x34ee56(0x1b5)+_0x33c82e+_0x34ee56(0x128)),await import(_0x33c82e+_0x34ee56(0x1ef)),window[_0x34ee56(0x1ca)]['add'](_0x33c82e),console[_0x34ee56(0x15f)](LOG_PREFIX+_0x34ee56(0x1bd)+_0x33c82e);}function isRefreshRuntime(_0x16ac40){const _0x50b0f3=_0x10da16;return typeof _0x16ac40===_0x50b0f3(0x197)&&_0x16ac40!==null&&'injectIntoGlobalHook'in _0x16ac40&&typeof _0x16ac40[_0x50b0f3(0x1a8)]===_0x50b0f3(0x1e4);}var WORKER_MESSAGE_CONFIG=_0x10da16(0x1c7),WORKER_MESSAGE_DISABLE=_0x10da16(0x1d8),LOG_PREFIX2=_0x10da16(0x119),registration=null,currentOptions2=null;async function registerServiceWorker(_0x2b705c){const _0x4f6a75=_0x10da16;console['log'](LOG_PREFIX2+_0x4f6a75(0x14a)),console[_0x4f6a75(0x15f)](LOG_PREFIX2+_0x4f6a75(0x191)+_0x2b705c['swPath']);if(!(_0x4f6a75(0x1cd)in navigator)){console[_0x4f6a75(0x1dd)](LOG_PREFIX2+_0x4f6a75(0x178));return;}console[_0x4f6a75(0x15f)](LOG_PREFIX2+'\x20Service\x20workers\x20supported');const _0x12a482=navigator['serviceWorker']['controller'];console[_0x4f6a75(0x15f)](LOG_PREFIX2+'\x20Current\x20controller:',_0x12a482?.[_0x4f6a75(0x1ea)]??_0x4f6a75(0x14c)),console[_0x4f6a75(0x15f)](LOG_PREFIX2+'\x20Controller\x20state:',_0x12a482?.[_0x4f6a75(0x144)]??'N/A');const _0x77ab39=!!_0x12a482;currentOptions2=_0x2b705c,console[_0x4f6a75(0x15f)](LOG_PREFIX2+_0x4f6a75(0x1b7));const _0x34931b=await detectBlockingServiceWorker(_0x2b705c[_0x4f6a75(0x188)]);if(_0x34931b){console['error'](LOG_PREFIX2+_0x4f6a75(0x10f)+_0x34931b),console[_0x4f6a75(0x1c0)](LOG_PREFIX2+_0x4f6a75(0x1ac));return;}console[_0x4f6a75(0x15f)](LOG_PREFIX2+_0x4f6a75(0x138));try{console[_0x4f6a75(0x15f)](LOG_PREFIX2+_0x4f6a75(0x153)+_0x2b705c[_0x4f6a75(0x188)]+_0x4f6a75(0x1c1)),registration=await navigator['serviceWorker']['register'](_0x2b705c[_0x4f6a75(0x188)],{'scope':'/'}),console[_0x4f6a75(0x15f)](LOG_PREFIX2+'\x20Registration\x20returned:',{'scope':registration[_0x4f6a75(0x1e2)],'active':registration[_0x4f6a75(0x114)]?.[_0x4f6a75(0x1ea)],'waiting':registration[_0x4f6a75(0x1fd)]?.[_0x4f6a75(0x1ea)],'installing':registration[_0x4f6a75(0x16c)]?.[_0x4f6a75(0x1ea)]}),console['log'](LOG_PREFIX2+_0x4f6a75(0x15a));const _0x38c662=await navigator[_0x4f6a75(0x1cd)][_0x4f6a75(0x125)];console[_0x4f6a75(0x15f)](LOG_PREFIX2+_0x4f6a75(0x117),_0x38c662['active']?.[_0x4f6a75(0x1ea)]);const _0x32d26a=ownsCurrentController(_0x2b705c[_0x4f6a75(0x188)]);state[_0x4f6a75(0x1cb)]=_0x32d26a,console[_0x4f6a75(0x15f)](LOG_PREFIX2+_0x4f6a75(0x186)+_0x32d26a),console[_0x4f6a75(0x15f)](LOG_PREFIX2+'\x20Current\x20controller\x20after\x20ready:',navigator['serviceWorker'][_0x4f6a75(0x1b9)]?.['scriptURL']??_0x4f6a75(0x14c));if(!_0x77ab39&&!navigator['serviceWorker'][_0x4f6a75(0x1b9)]){console['log'](LOG_PREFIX2+_0x4f6a75(0x120)),window[_0x4f6a75(0x1ec)]['reload']();return;}console[_0x4f6a75(0x15f)](LOG_PREFIX2+'\x20Sending\x20customer\x20configuration...'),await sendConfiguration();if(state[_0x4f6a75(0x149)]){const _0x1aa6c0=document[_0x4f6a75(0x18c)]('[data-enhance-runtime-bootstrap]')!==null;console[_0x4f6a75(0x15f)](LOG_PREFIX2+_0x4f6a75(0x1b3)+_0x1aa6c0);if(!_0x1aa6c0){console['log'](LOG_PREFIX2+_0x4f6a75(0x1df)),window[_0x4f6a75(0x1ec)][_0x4f6a75(0x1be)]();return;}}console['log'](LOG_PREFIX2+_0x4f6a75(0x17a)),updateOverlay(),console[_0x4f6a75(0x15f)](LOG_PREFIX2+'\x20registerServiceWorker()\x20complete');}catch(_0x197278){console['error'](LOG_PREFIX2+_0x4f6a75(0x190),_0x197278);}}async function sendConfiguration(){const _0x290e80=_0x10da16;console[_0x290e80(0x15f)](LOG_PREFIX2+_0x290e80(0x193)),console['log'](LOG_PREFIX2+_0x290e80(0x1bc)+state[_0x290e80(0x149)]+_0x290e80(0xfb)+!!currentOptions2);if(!state[_0x290e80(0x149)]||!currentOptions2){console[_0x290e80(0x15f)](LOG_PREFIX2+_0x290e80(0x181));return;}const _0x8e8bf1=await resolveWorker();if(!_0x8e8bf1){console['warn'](LOG_PREFIX2+_0x290e80(0x15c));return;}const _0x3a1a69={'callbackBypass':currentOptions2['callbackBypass'],'securityMode':currentOptions2[_0x290e80(0x133)]};console[_0x290e80(0x15f)](LOG_PREFIX2+'\x20Sending\x20customer\x20config\x20to\x20SW:',JSON['stringify'](_0x3a1a69,null,0x2)),_0x8e8bf1[_0x290e80(0x1a7)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x3a1a69}),console[_0x290e80(0x15f)](LOG_PREFIX2+_0x290e80(0xfc));}async function unregisterServiceWorker(_0x52d445){const _0xc30e33=_0x10da16;console[_0xc30e33(0x15f)](LOG_PREFIX2+_0xc30e33(0x107));if(!('serviceWorker'in navigator)){console[_0xc30e33(0x15f)](LOG_PREFIX2+_0xc30e33(0x17f));return;}try{const _0x422495=registration??await navigator[_0xc30e33(0x1cd)][_0xc30e33(0x102)]('/');if(!_0x422495){console['log'](LOG_PREFIX2+_0xc30e33(0x162));return;}console[_0xc30e33(0x15f)](LOG_PREFIX2+_0xc30e33(0x17d),{'scope':_0x422495[_0xc30e33(0x1e2)],'active':_0x422495[_0xc30e33(0x114)]?.[_0xc30e33(0x1ea)],'waiting':_0x422495['waiting']?.['scriptURL'],'installing':_0x422495['installing']?.[_0xc30e33(0x1ea)]});const _0x4763ad=[_0x422495['active']?.['scriptURL'],_0x422495[_0xc30e33(0x1fd)]?.['scriptURL'],_0x422495[_0xc30e33(0x16c)]?.[_0xc30e33(0x1ea)]],_0x11b239=_0x4763ad[_0xc30e33(0x194)](_0x577aae=>_0x577aae&&ownsServiceWorker(_0x577aae,_0x52d445));if(!_0x11b239){console[_0xc30e33(0x15f)](LOG_PREFIX2+'\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering');return;}_0x422495[_0xc30e33(0x114)]&&(console[_0xc30e33(0x15f)](LOG_PREFIX2+_0xc30e33(0x19e)),_0x422495[_0xc30e33(0x114)][_0xc30e33(0x1a7)]({'type':WORKER_MESSAGE_DISABLE})),console['log'](LOG_PREFIX2+'\x20Unregistering\x20SW...'),await _0x422495[_0xc30e33(0x105)](),registration=null,currentOptions2=null,console[_0xc30e33(0x15f)](LOG_PREFIX2+_0xc30e33(0x113));}catch(_0x1e43d8){console[_0xc30e33(0x1c0)](LOG_PREFIX2+_0xc30e33(0x135),_0x1e43d8);}}function ownsServiceWorker(_0x3109a8,_0x25c65e){const _0x2b184d=_0x10da16,_0x48254b=typeof window!=='undefined'?window[_0x2b184d(0x1ec)][_0x2b184d(0x17b)]:'',_0x5ac730=new URL(_0x25c65e,_0x48254b||void 0x0)[_0x2b184d(0x134)],_0x50f844=_0x3109a8===_0x5ac730||_0x3109a8[_0x2b184d(0x1fe)](_0x2b184d(0x12b));return console[_0x2b184d(0x15f)](LOG_PREFIX2+_0x2b184d(0x189)+_0x3109a8+_0x2b184d(0x1e7)+_0x5ac730+_0x2b184d(0x1a1)+_0x50f844),_0x50f844;}function ownsCurrentController(_0x368f7a){const _0x774f45=_0x10da16;if(typeof navigator===_0x774f45(0x17c))return![];const _0x11c6e3=navigator['serviceWorker']?.['controller'];if(!_0x11c6e3)return console[_0x774f45(0x15f)](LOG_PREFIX2+_0x774f45(0x109)),![];return ownsServiceWorker(_0x11c6e3['scriptURL'],_0x368f7a);}async function detectBlockingServiceWorker(_0x6b273f){const _0x1d921d=_0x10da16;if(!navigator['serviceWorker'])return null;try{const _0x327be9=await navigator[_0x1d921d(0x1cd)][_0x1d921d(0x102)]('/');console[_0x1d921d(0x15f)](LOG_PREFIX2+_0x1d921d(0x1bf),_0x327be9?.[_0x1d921d(0x114)]?.[_0x1d921d(0x1ea)]??_0x1d921d(0x14c));const _0x3ad091=_0x327be9?.[_0x1d921d(0x114)]?.['scriptURL'];if(!_0x3ad091)return null;if(ownsServiceWorker(_0x3ad091,_0x6b273f))return null;return _0x3ad091;}catch(_0x5954d4){return console[_0x1d921d(0x1c0)](LOG_PREFIX2+_0x1d921d(0x14d),_0x5954d4),null;}}async function resolveWorker(){const _0x4a6b73=_0x10da16,_0x20644a=registration??await navigator[_0x4a6b73(0x1cd)]?.[_0x4a6b73(0x102)]('/'),_0x55ca60=_0x20644a?.['active']??_0x20644a?.[_0x4a6b73(0x1fd)]??_0x20644a?.['installing']??null;return console[_0x4a6b73(0x15f)](LOG_PREFIX2+_0x4a6b73(0x10d),_0x55ca60?.[_0x4a6b73(0x1ea)]??'none',_0x4a6b73(0x203)+(_0x55ca60?.['state']??_0x4a6b73(0x1a9))),_0x55ca60;}var LOG_PREFIX3=_0x10da16(0x18a);function isInitialized(){const _0x1c04a9=_0x10da16;return typeof window!=='undefined'&&window[_0x1c04a9(0x17e)]===!![];}function setInitialized(_0x219367){const _0x41292d=_0x10da16;typeof window!==_0x41292d(0x17c)&&(window['__enhanceInitialized']=_0x219367);}function getOptions(){const _0x33daef=_0x10da16;return typeof window!==_0x33daef(0x17c)?window[_0x33daef(0x16a)]??null:null;}function setOptions(_0x4db11a){const _0x436c70=_0x10da16;typeof window!==_0x436c70(0x17c)&&(window[_0x436c70(0x16a)]=_0x4db11a);}var Enhance={'init'(_0x29fe70){const _0x1b6bdb=_0x10da16,_0x5a8116=Date[_0x1b6bdb(0x201)]();console['log'](LOG_PREFIX3+_0x1b6bdb(0x1f3)+_0x5a8116),console['log'](LOG_PREFIX3+_0x1b6bdb(0x1bb)+window[_0x1b6bdb(0x1ec)]['href']),console[_0x1b6bdb(0x15f)](LOG_PREFIX3+_0x1b6bdb(0x184)+document[_0x1b6bdb(0x11d)]),console[_0x1b6bdb(0x15f)](LOG_PREFIX3+_0x1b6bdb(0x175),JSON[_0x1b6bdb(0x122)](_0x29fe70,null,0x2));if(isInitialized())return console[_0x1b6bdb(0x1dd)](LOG_PREFIX3+_0x1b6bdb(0x18d)),window[_0x1b6bdb(0x131)]??createController();setInitialized(!![]),console[_0x1b6bdb(0x15f)](LOG_PREFIX3+_0x1b6bdb(0x179));const _0x3250fe=normalizeOptions(_0x29fe70);setOptions(_0x3250fe),console[_0x1b6bdb(0x15f)](LOG_PREFIX3+'\x20Normalized\x20options:',JSON['stringify'](_0x3250fe,null,0x2));const _0x28e256=parseUrlParams();console[_0x1b6bdb(0x15f)](LOG_PREFIX3+_0x1b6bdb(0x140),JSON[_0x1b6bdb(0x122)](_0x28e256,null,0x2));if(_0x28e256['explicitDisable'])return cleanUrlParam(_0x1b6bdb(0x1c6)),console['log'](LOG_PREFIX3+_0x1b6bdb(0x103)),createController();if(_0x28e256[_0x1b6bdb(0x139)])return console[_0x1b6bdb(0x15f)](LOG_PREFIX3+_0x1b6bdb(0x1f1)),console['log'](LOG_PREFIX3+_0x1b6bdb(0x14f)+_0x28e256[_0x1b6bdb(0x19b)]),console[_0x1b6bdb(0x15f)](LOG_PREFIX3+_0x1b6bdb(0x180)+_0x28e256[_0x1b6bdb(0x173)]),state[_0x1b6bdb(0x149)]=!![],console[_0x1b6bdb(0x15f)](LOG_PREFIX3+_0x1b6bdb(0xff)),void loadOverlay({'overlayPath':_0x3250fe[_0x1b6bdb(0x16e)],'enableViteHmr':_0x3250fe['overlay'][_0x1b6bdb(0x1fb)],'options':_0x3250fe,'onToggle':handleToggle}),console[_0x1b6bdb(0x15f)](LOG_PREFIX3+_0x1b6bdb(0x1d2)),void registerServiceWorker(_0x3250fe),console[_0x1b6bdb(0x15f)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20enhancement\x20mode'),createController();return console[_0x1b6bdb(0x15f)](LOG_PREFIX3+'\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params'),console[_0x1b6bdb(0x15f)](LOG_PREFIX3+_0x1b6bdb(0x1e1)),void unregisterServiceWorker(_0x3250fe[_0x1b6bdb(0x188)]),console['log'](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20normal\x20mode'),import.meta['hot']&&(console['log'](LOG_PREFIX3+_0x1b6bdb(0x115)),import.meta[_0x1b6bdb(0x10a)]['on'](_0x1b6bdb(0x155),_0x46ce06=>{const _0x50b039=_0x1b6bdb;console[_0x50b039(0x15f)](LOG_PREFIX3+'\x20Vite\x20error\x20detected:',_0x46ce06),state['appError']={'message':_0x46ce06[_0x50b039(0x1ff)][_0x50b039(0x11a)]},updateOverlay();}),import.meta[_0x1b6bdb(0x10a)]['on'](_0x1b6bdb(0x16b),()=>{const _0x4fcbde=_0x1b6bdb;state[_0x4fcbde(0x1d1)]&&(console['log'](LOG_PREFIX3+_0x4fcbde(0x129)),state['appError']=null,updateOverlay());})),createController();}};function createController(){const _0x3188fa=_0x10da16,_0x5953fa={'enable'(){const _0x5ecee2=_0x858b,_0x584e35=getOptions();if(!_0x584e35)return;state[_0x5ecee2(0x149)]=!![],void loadOverlay({'overlayPath':_0x584e35['overlayPath'],'enableViteHmr':_0x584e35[_0x5ecee2(0x1e8)][_0x5ecee2(0x1fb)],'options':_0x584e35,'onToggle':handleToggle}),void registerServiceWorker(_0x584e35),void sendConfiguration(),updateOverlay();},'disable'(){const _0xb4b6cc=_0x858b,_0x3a8a62=getOptions();if(!_0x3a8a62)return;state[_0xb4b6cc(0x149)]=![],state[_0xb4b6cc(0x1cb)]=![],updateOverlay(),void unregisterServiceWorker(_0x3a8a62[_0xb4b6cc(0x188)]);},'status'(){const _0x2409f2=_0x858b;return{'enabled':state[_0x2409f2(0x149)],'controlled':state[_0x2409f2(0x1cb)]};}};return typeof window!=='undefined'&&(window[_0x3188fa(0x131)]=_0x5953fa),_0x5953fa;}function handleToggle(){const _0x194bee=_0x10da16,_0x375c80=createController();state[_0x194bee(0x149)]?_0x375c80[_0x194bee(0x146)]():_0x375c80[_0x194bee(0x1f0)]();}function parseUrlParams(){const _0x5507f4=_0x10da16,_0x830c5a=new URL(window[_0x5507f4(0x1ec)][_0x5507f4(0x134)]),_0x30c16d=_0x830c5a['searchParams'][_0x5507f4(0x13d)](_0x5507f4(0x1c6))?.[_0x5507f4(0x1c3)](),_0x20925f=_0x830c5a[_0x5507f4(0x157)][_0x5507f4(0x13d)]('enhancementUrl'),_0x331288=_0x830c5a[_0x5507f4(0x157)]['get'](_0x5507f4(0x111));return{'hasEnhancement':Boolean(_0x20925f||_0x331288),'explicitDisable':_0x30c16d==='0'||_0x30c16d==='false'||_0x30c16d===_0x5507f4(0x1da),'enhancementUrl':_0x20925f,'enhancementId':_0x331288};}function cleanUrlParam(_0x4d4087){const _0x43e573=_0x10da16,_0x56102b=new URL(window[_0x43e573(0x1ec)][_0x43e573(0x134)]);_0x56102b['searchParams'][_0x43e573(0x16d)](_0x4d4087)&&(_0x56102b[_0x43e573(0x157)]['delete'](_0x4d4087),window[_0x43e573(0x1fa)][_0x43e573(0x13a)](null,document[_0x43e573(0x1f4)],_0x56102b[_0x43e573(0x13b)]()));}var package_default={'name':'@enhance-eng/sandbox','version':_0x10da16(0x1af),'type':_0x10da16(0x147),'description':_0x10da16(0x110),'license':_0x10da16(0x176),'main':_0x10da16(0x1ae),'module':_0x10da16(0x116),'types':_0x10da16(0x166),'exports':{'.':{'types':_0x10da16(0x166),'import':'./dist/index.js','require':_0x10da16(0x1ae)},'./vite':{'types':_0x10da16(0x192),'import':'./dist/vite/index.js'}},'files':[_0x10da16(0x19c),'bin',_0x10da16(0x142)],'bin':{'enhance-sandbox':_0x10da16(0x1d7)},'scripts':{'typecheck':_0x10da16(0x124),'dev':_0x10da16(0x1ce),'dev:build':_0x10da16(0x11f),'dev:staging':_0x10da16(0x130),'dev:staging:build':_0x10da16(0x19d),'build':_0x10da16(0x1b4),'build:release':_0x10da16(0x15b),'version':_0x10da16(0x10e)},'dependencies':{'commander':_0x10da16(0x1cf),'zod':_0x10da16(0x165)},'devDependencies':{'@types/node':_0x10da16(0x204),'javascript-obfuscator':_0x10da16(0x11b),'tsup':_0x10da16(0xfe),'vite':_0x10da16(0x1f9)},'publishConfig':{'access':_0x10da16(0x1e9)}},DEFAULT_SERVICE_WORKER_PATH=_0x10da16(0x185),DEFAULT_RUNTIME_PATH=_0x10da16(0x100),DIST_SERVICE_WORKER_PATH=_0x10da16(0x156),DIST_RUNTIME_PATH='assets/enhance-runtime.js',PACKAGE_VERSION=typeof package_default[_0x10da16(0x12a)]===_0x10da16(0x168)?package_default[_0x10da16(0x12a)]:_0x10da16(0x127);function normalizeAssetPath(_0x32b66a){const _0x17a148=_0x10da16;if(!_0x32b66a)return _0x32b66a;if(_0x32b66a[_0x17a148(0x1b6)](_0x17a148(0x202))||_0x32b66a[_0x17a148(0x1b6)](_0x17a148(0x11c)))return _0x32b66a;const _0x30342b=_0x32b66a['replace'](/^\.\//,'');return _0x30342b[_0x17a148(0x1b6)]('/')?_0x30342b:'/'+_0x30342b;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x2fc198){const _0x3d3c80=_0x10da16;return Enhance[_0x3d3c80(0x1b2)](_0x2fc198);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function serviceWorkerURL(){const _0x5392ac=_0x10da16;return Enhance2[_0x5392ac(0x1c4)]();}function runtimeURL(){const _0x6a4b9b=_0x10da16;return Enhance2[_0x6a4b9b(0x158)]();}import{promises as _0xfa62d6}from'fs';import{createHash}from'crypto';import{dirname,join}from'path';import{fileURLToPath}from'url';var distDir=dirname(fileURLToPath(new URL(_0x10da16(0x104),import.meta[_0x10da16(0x1d0)])));async function syncAssets(_0x1d6b9f){const _0x5969ac=_0x10da16,_0x13a51c=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0x1d6b9f[_0x5969ac(0x164)]?'./'+_0x1d6b9f[_0x5969ac(0x164)]:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0xa61a5=[];for(const _0x57b55a of _0x13a51c){const _0x42b571=cleanRelativePath(_0x57b55a[_0x5969ac(0x1ed)]??_0x57b55a['manifestPath']),_0x2b6452=join(distDir,cleanRelativePath(_0x57b55a[_0x5969ac(0x151)])),_0x478276=join(_0x1d6b9f['publicDir'],_0x42b571),[_0x3a021e,_0x2f0b7c]=await Promise[_0x5969ac(0x1f5)]([readDigest(_0x2b6452),readDigest(_0x478276)]);if(_0x3a021e&&_0x2f0b7c&&_0x3a021e===_0x2f0b7c){_0xa61a5['push']({'sourcePath':_0x2b6452,'destinationPath':_0x478276,'relativeDestination':_0x42b571,'status':_0x5969ac(0x171)});continue;}await _0xfa62d6[_0x5969ac(0x1d9)](dirname(_0x478276),{'recursive':!![]}),await _0xfa62d6[_0x5969ac(0x199)](_0x2b6452,_0x478276),_0xa61a5[_0x5969ac(0x19f)]({'sourcePath':_0x2b6452,'destinationPath':_0x478276,'relativeDestination':_0x42b571,'status':_0x5969ac(0x1b8)});}return _0xa61a5;}function cleanRelativePath(_0x1964c0){return _0x1964c0['replace'](/^[./]+/,'');}async function readDigest(_0x3910fe){const _0xbc7059=_0x10da16;try{const _0xeb437=await _0xfa62d6[_0xbc7059(0x1f2)](_0x3910fe);return createHash(_0xbc7059(0x172))[_0xbc7059(0x16f)](_0xeb437)[_0xbc7059(0x121)]('base64');}catch(_0x5be0ec){if(_0x5be0ec[_0xbc7059(0x18e)]===_0xbc7059(0xfd))return null;throw _0x5be0ec;}}var program=new Command();program['name'](_0x10da16(0x12d))[_0x10da16(0x183)](_0x10da16(0x14e))[_0x10da16(0x12a)](_0x10da16(0x127)),program[_0x10da16(0x12e)]('manifest')[_0x10da16(0x183)](_0x10da16(0x200))[_0x10da16(0x141)](()=>{const _0x65d2f6=_0x10da16,_0x316166=getAssetManifest();process[_0x65d2f6(0x18f)][_0x65d2f6(0x148)](JSON['stringify'](_0x316166,null,0x2)+'\x0a');}),program[_0x10da16(0x12e)](_0x10da16(0xfa))[_0x10da16(0x183)](_0x10da16(0x1e3))[_0x10da16(0x13f)](_0x10da16(0x159),'Directory\x20to\x20copy\x20the\x20service\x20worker\x20into')[_0x10da16(0x1b1)](_0x10da16(0x123),'Override\x20the\x20service\x20worker\x20output\x20filename\x20(defaults\x20to\x20sw-enhance.js)')[_0x10da16(0x141)](async _0x18799f=>{const _0x1a2eca=_0x10da16,_0x1b5b10=resolve(process[_0x1a2eca(0x174)](),_0x18799f[_0x1a2eca(0x1f8)]),_0x189896=await syncAssets({'publicDir':_0x1b5b10,'swFilename':_0x18799f[_0x1a2eca(0x108)]});for(const _0x29ba42 of _0x189896){const _0x105225=relative(process['cwd'](),_0x29ba42[_0x1a2eca(0x137)]);_0x29ba42[_0x1a2eca(0x177)]===_0x1a2eca(0x171)?process[_0x1a2eca(0x18f)][_0x1a2eca(0x148)](_0x1a2eca(0x205)+_0x29ba42[_0x1a2eca(0x167)]+'\x20(already\x20current)\x20['+_0x105225+']\x0a'):process[_0x1a2eca(0x18f)][_0x1a2eca(0x148)](_0x1a2eca(0x14b)+_0x29ba42[_0x1a2eca(0x167)]+'\x20→\x20'+_0x105225+'\x0a');}}),program['parseAsync']();
package/dist/index.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ type SecurityMode$1 = "permissive" | "custom";
2
+
1
3
  type RawOptions = {
2
4
  callbackBypass: string[];
3
5
  __development?: {
@@ -7,6 +9,20 @@ type RawOptions = {
7
9
  backendUrl?: string;
8
10
  };
9
11
  };
12
+ type NormalizedOptions = {
13
+ callbackBypass: string[];
14
+ overlay: {
15
+ enabled: true;
16
+ position: 'bottom-right';
17
+ enableViteHmr: boolean;
18
+ };
19
+ logLevel: 'info';
20
+ swPath: '/sw-enhance.js';
21
+ overlayPath: string;
22
+ runtimeScriptPath: '/assets/enhance-runtime.js';
23
+ security: SecurityMode$1;
24
+ backendUrl: string;
25
+ };
10
26
 
11
27
  type OverlayPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
12
28
  type SecurityMode = 'permissive' | 'custom';
@@ -17,11 +33,19 @@ interface OverlayState {
17
33
  overlayPosition: OverlayPosition;
18
34
  securityMode: SecurityMode;
19
35
  backendBaseUrl?: string;
36
+ appError: {
37
+ message: string;
38
+ } | null;
39
+ /** Debug flag to force "Working" state */
40
+ forceWorking?: boolean;
20
41
  }
21
42
  interface OverlayController {
22
43
  update(state: OverlayState): void;
23
44
  onToggle(handler: () => void): void;
24
45
  destroy(): void;
46
+ open(): void;
47
+ close(): void;
48
+ isOpen(): boolean;
25
49
  }
26
50
  interface EnhanceStatus {
27
51
  enabled: boolean;
@@ -44,6 +68,13 @@ declare global {
44
68
  }
45
69
  }
46
70
 
71
+ declare global {
72
+ interface Window {
73
+ __enhanceInitialized?: boolean;
74
+ __enhanceOptions?: NormalizedOptions;
75
+ __enhanceController?: EnhanceController;
76
+ }
77
+ }
47
78
  /**
48
79
  * Main entry point - the only public API.
49
80
  */
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- const _0x447c3c=_0x2c38;(function(_0xe6adc8,_0x2f7b78){const _0x2c617d=_0x2c38,_0x596d81=_0xe6adc8();while(!![]){try{const _0x38cbdc=parseInt(_0x2c617d(0x19a))/0x1+parseInt(_0x2c617d(0x199))/0x2*(-parseInt(_0x2c617d(0x175))/0x3)+-parseInt(_0x2c617d(0x21a))/0x4+-parseInt(_0x2c617d(0x168))/0x5*(parseInt(_0x2c617d(0x1b7))/0x6)+-parseInt(_0x2c617d(0x1e9))/0x7*(parseInt(_0x2c617d(0x187))/0x8)+parseInt(_0x2c617d(0x1e0))/0x9+parseInt(_0x2c617d(0x1b8))/0xa*(parseInt(_0x2c617d(0x1f3))/0xb);if(_0x38cbdc===_0x2f7b78)break;else _0x596d81['push'](_0x596d81['shift']());}catch(_0x1887af){_0x596d81['push'](_0x596d81['shift']());}}}(_0x5842,0x4b112));function normalizeOptions(_0x5cc7ee){const _0x38d0aa=_0x2c38,_0x2b62f0=_0x5cc7ee[_0x38d0aa(0x1a9)]??{};return{'callbackBypass':_0x5cc7ee[_0x38d0aa(0x1f9)],'overlay':{'enabled':!![],'position':'bottom-right','enableViteHmr':_0x2b62f0[_0x38d0aa(0x167)]??![]},'logLevel':'info','swPath':_0x38d0aa(0x158),'overlayPath':_0x2b62f0['overlayPath']??'https://assets.enhancelabs.ai/overlay.js','runtimeScriptPath':_0x38d0aa(0x219),'security':_0x2b62f0[_0x38d0aa(0x1b5)]??_0x38d0aa(0x17e),'backendUrl':_0x2b62f0[_0x38d0aa(0x201)]??'https://api.enhancelabs.ai'};}var state={'enabled':![],'controlled':![]};function getEnhancementUrl(){const _0x26968b=_0x2c38;try{const _0x509967=new URLSearchParams(window[_0x26968b(0x17b)]['search']);return _0x509967['get'](_0x26968b(0x1ea))?.[_0x26968b(0x1d8)]()||'';}catch{return'';}}var LOG_PREFIX=_0x447c3c(0x16a),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x31044f){const _0x6341c9=_0x447c3c;console['log'](LOG_PREFIX+'\x20loadOverlay()\x20called'),console[_0x6341c9(0x1b2)](LOG_PREFIX+'\x20overlayPath:\x20'+_0x31044f['overlayPath']),console[_0x6341c9(0x1b2)](LOG_PREFIX+_0x6341c9(0x1ec)+_0x31044f[_0x6341c9(0x20d)]),currentOptions=_0x31044f[_0x6341c9(0x1ae)],toggleHandler=_0x31044f[_0x6341c9(0x224)];if(overlayController){console[_0x6341c9(0x1b2)](LOG_PREFIX+_0x6341c9(0x1cb)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x6341c9(0x1b2)](LOG_PREFIX+'\x20Load\x20already\x20in\x20progress\x20-\x20waiting...'),overlayLoadPromise;console[_0x6341c9(0x1b2)](LOG_PREFIX+'\x20Starting\x20fresh\x20overlay\x20load...'),overlayLoadPromise=doLoadOverlay(_0x31044f);try{await overlayLoadPromise,console[_0x6341c9(0x1b2)](LOG_PREFIX+_0x6341c9(0x15a));}catch(_0x506b37){console[_0x6341c9(0x1f6)](LOG_PREFIX+_0x6341c9(0x185),_0x506b37);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x121e42){const _0x566dfc=_0x447c3c;console[_0x566dfc(0x1b2)](LOG_PREFIX+'\x20doLoadOverlay()\x20starting...');if(typeof window===_0x566dfc(0x188)){console[_0x566dfc(0x1b2)](LOG_PREFIX+_0x566dfc(0x1c0));return;}if(window[_0x566dfc(0x1bb)]){console['log'](LOG_PREFIX+_0x566dfc(0x1af)),overlayController=window[_0x566dfc(0x1bb)],overlayController['onToggle'](_0x121e42[_0x566dfc(0x224)]),updateOverlay();return;}console[_0x566dfc(0x1b2)](LOG_PREFIX+_0x566dfc(0x19e));try{_0x121e42['enableViteHmr']&&(console['log'](LOG_PREFIX+_0x566dfc(0x156)),await setupRemoteHMR(_0x121e42[_0x566dfc(0x177)]));console[_0x566dfc(0x1b2)](LOG_PREFIX+'\x20Importing\x20overlay\x20module\x20from:\x20'+_0x121e42['overlayPath']);const _0x1e4021=Date[_0x566dfc(0x17f)](),_0x46904a=await import(_0x121e42[_0x566dfc(0x177)]);console[_0x566dfc(0x1b2)](LOG_PREFIX+_0x566dfc(0x221)+(Date[_0x566dfc(0x17f)]()-_0x1e4021)+'ms'),console[_0x566dfc(0x1b2)](LOG_PREFIX+_0x566dfc(0x22b),Object[_0x566dfc(0x15b)](_0x46904a));if(typeof _0x46904a?.[_0x566dfc(0x171)]!=='function'){console['error'](LOG_PREFIX+'\x20Module\x20missing\x20createOverlay\x20export!'),console[_0x566dfc(0x1f6)](LOG_PREFIX+'\x20Available\x20exports:',Object[_0x566dfc(0x15b)](_0x46904a));return;}console[_0x566dfc(0x1b2)](LOG_PREFIX+_0x566dfc(0x182));const _0x214b46=_0x46904a[_0x566dfc(0x171)]();console[_0x566dfc(0x1b2)](LOG_PREFIX+'\x20Controller\x20created:',_0x214b46),overlayController=_0x214b46,window[_0x566dfc(0x1bb)]=_0x214b46,_0x214b46[_0x566dfc(0x224)](_0x121e42[_0x566dfc(0x224)]),console['log'](LOG_PREFIX+'\x20Overlay\x20controller\x20initialized\x20and\x20cached'),console[_0x566dfc(0x1b2)](LOG_PREFIX+'\x20Calling\x20updateOverlay()...'),updateOverlay();}catch(_0x4bd65b){console[_0x566dfc(0x1f6)](LOG_PREFIX+_0x566dfc(0x1ff),_0x4bd65b);}}function updateOverlay(){const _0xf07ed=_0x447c3c;console[_0xf07ed(0x1b2)](LOG_PREFIX+_0xf07ed(0x170)),console[_0xf07ed(0x1b2)](LOG_PREFIX+_0xf07ed(0x1c2)+!!overlayController),console[_0xf07ed(0x1b2)](LOG_PREFIX+_0xf07ed(0x1b1)+!!currentOptions);if(!overlayController||!currentOptions){console[_0xf07ed(0x1b2)](LOG_PREFIX+_0xf07ed(0x1e8));return;}const _0xf8a48=composeOverlayState(currentOptions);console[_0xf07ed(0x1b2)](LOG_PREFIX+_0xf07ed(0x228),JSON[_0xf07ed(0x1cf)](_0xf8a48,null,0x2)),overlayController[_0xf07ed(0x195)](_0xf8a48),console[_0xf07ed(0x1b2)](LOG_PREFIX+'\x20Overlay\x20update\x20complete');}function composeOverlayState(_0x4575a9){const _0x47752b=_0x447c3c,_0x2da3c9=getEnhancementUrl();return console[_0x47752b(0x1b2)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20enhancementUrl:\x20'+_0x2da3c9),console['log'](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.enabled:\x20'+state[_0x47752b(0x181)]),console[_0x47752b(0x1b2)](LOG_PREFIX+_0x47752b(0x16c)+state['controlled']),{'enhancementUrl':_0x2da3c9,'enabled':state[_0x47752b(0x181)],'controlled':state[_0x47752b(0x1d2)],'overlayPosition':_0x4575a9['overlay'][_0x47752b(0x222)],'securityMode':_0x4575a9[_0x47752b(0x1b5)],'backendBaseUrl':_0x4575a9[_0x47752b(0x201)]};}async function setupRemoteHMR(_0x575f08){const _0x57314d=_0x447c3c;console['log'](LOG_PREFIX+'\x20setupRemoteHMR()\x20for\x20'+_0x575f08);if(typeof window===_0x57314d(0x188))return;try{const _0x39d0cc=new URL(_0x575f08,window[_0x57314d(0x17b)]['origin']),_0x19fe7d=_0x39d0cc[_0x57314d(0x194)];console[_0x57314d(0x1b2)](LOG_PREFIX+_0x57314d(0x17c)+_0x19fe7d+_0x57314d(0x1d9)+window[_0x57314d(0x17b)]['origin']);if(_0x19fe7d===window[_0x57314d(0x17b)]['origin']){console[_0x57314d(0x1b2)](LOG_PREFIX+_0x57314d(0x16f));return;}console['log'](LOG_PREFIX+_0x57314d(0x192)),await ensureReactRefreshPreamble(_0x19fe7d),await ensureViteClient(_0x19fe7d),console[_0x57314d(0x1b2)](LOG_PREFIX+_0x57314d(0x1c3));}catch(_0x4cb35d){console[_0x57314d(0x1e5)](LOG_PREFIX+_0x57314d(0x1df),_0x4cb35d);}}async function ensureReactRefreshPreamble(_0x3b1574){const _0x40b422=_0x447c3c;window[_0x40b422(0x19d)]??=new Set();if(window[_0x40b422(0x19d)][_0x40b422(0x17d)](_0x3b1574)){console[_0x40b422(0x1b2)](LOG_PREFIX+'\x20React\x20Refresh\x20already\x20installed\x20for\x20'+_0x3b1574);return;}console[_0x40b422(0x1b2)](LOG_PREFIX+_0x40b422(0x1ce)+_0x3b1574+_0x40b422(0x1ad));const _0x3b7b75=await import(_0x3b1574+_0x40b422(0x16d)),_0x3307ee=_0x3b7b75&&typeof _0x3b7b75===_0x40b422(0x1f2)&&_0x40b422(0x1a3)in _0x3b7b75?_0x3b7b75['default']:_0x3b7b75;if(!isRefreshRuntime(_0x3307ee)){console['warn'](LOG_PREFIX+_0x40b422(0x1ba));return;}_0x3307ee['injectIntoGlobalHook'](window),window['$RefreshReg$']=()=>{},window[_0x40b422(0x15e)]=()=>_0x1c219e=>_0x1c219e,window['__vite_plugin_react_preamble_installed__']=!![],window[_0x40b422(0x19d)][_0x40b422(0x21d)](_0x3b1574),console[_0x40b422(0x1b2)](LOG_PREFIX+_0x40b422(0x1b0)+_0x3b1574);}async function ensureViteClient(_0x3cb3a0){const _0x38fa02=_0x447c3c;window[_0x38fa02(0x215)]??=new Set();if(window[_0x38fa02(0x215)][_0x38fa02(0x17d)](_0x3cb3a0)){console['log'](LOG_PREFIX+_0x38fa02(0x179)+_0x3cb3a0);return;}console[_0x38fa02(0x1b2)](LOG_PREFIX+'\x20Loading\x20Vite\x20HMR\x20client\x20from\x20'+_0x3cb3a0+_0x38fa02(0x1ad)),await import(_0x3cb3a0+_0x38fa02(0x162)),window['__viteHMRLoaded']['add'](_0x3cb3a0),console[_0x38fa02(0x1b2)](LOG_PREFIX+'\x20Vite\x20HMR\x20client\x20loaded\x20for\x20'+_0x3cb3a0);}function isRefreshRuntime(_0x2406db){const _0x103be9=_0x447c3c;return typeof _0x2406db===_0x103be9(0x1f2)&&_0x2406db!==null&&_0x103be9(0x159)in _0x2406db&&typeof _0x2406db[_0x103be9(0x159)]===_0x103be9(0x205);}var WORKER_MESSAGE_CONFIG=_0x447c3c(0x1b3),WORKER_MESSAGE_DISABLE='enhance:disable',WORKER_MESSAGE_REQUEST_CONFIG=_0x447c3c(0x208),LOG_PREFIX2=_0x447c3c(0x202),registration=null,messageListener=null,currentOptions2=null,configGetter=null;async function registerServiceWorker(_0x1b4377){const _0x471eac=_0x447c3c;console[_0x471eac(0x1b2)](LOG_PREFIX2+'\x20registerServiceWorker()\x20called'),console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x1aa)+_0x1b4377[_0x471eac(0x1e2)]);if(!(_0x471eac(0x225)in navigator)){console[_0x471eac(0x1e5)](LOG_PREFIX2+_0x471eac(0x200));return;}console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x190));const _0x533101=navigator[_0x471eac(0x225)][_0x471eac(0x21b)];console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x18f),_0x533101?.[_0x471eac(0x173)]??_0x471eac(0x1fc)),console['log'](LOG_PREFIX2+'\x20Controller\x20state:',_0x533101?.['state']??_0x471eac(0x193));const _0x3fc05f=!!_0x533101;currentOptions2=_0x1b4377,configGetter=()=>buildWorkerConfiguration(_0x1b4377),console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x183));const _0x534937=await detectBlockingServiceWorker(_0x1b4377[_0x471eac(0x1e2)]);if(_0x534937){console['error'](LOG_PREFIX2+_0x471eac(0x198)+_0x534937),console['error'](LOG_PREFIX2+'\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered');return;}console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x1a8));try{console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x1db)+_0x1b4377['swPath']+_0x471eac(0x21e)),registration=await navigator['serviceWorker'][_0x471eac(0x217)](_0x1b4377['swPath'],{'scope':'/'}),console['log'](LOG_PREFIX2+_0x471eac(0x1c1),{'scope':registration['scope'],'active':registration[_0x471eac(0x1d6)]?.['scriptURL'],'waiting':registration[_0x471eac(0x1b6)]?.[_0x471eac(0x173)],'installing':registration[_0x471eac(0x1f0)]?.[_0x471eac(0x173)]}),console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x209));const _0x36a772=await navigator[_0x471eac(0x225)][_0x471eac(0x21c)];console['log'](LOG_PREFIX2+'\x20SW\x20ready!\x20Active:',_0x36a772[_0x471eac(0x1d6)]?.[_0x471eac(0x173)]);const _0x3dd053=ownsCurrentController(_0x1b4377[_0x471eac(0x1e2)]);state[_0x471eac(0x1d2)]=_0x3dd053,console[_0x471eac(0x1b2)](LOG_PREFIX2+'\x20Page\x20controlled\x20by\x20our\x20SW:\x20'+_0x3dd053),console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x1cc),navigator[_0x471eac(0x225)][_0x471eac(0x21b)]?.['scriptURL']??_0x471eac(0x1fc));if(!_0x3fc05f&&!navigator[_0x471eac(0x225)][_0x471eac(0x21b)]){console[_0x471eac(0x1b2)](LOG_PREFIX2+'\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...'),window['location'][_0x471eac(0x220)]();return;}console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x1a6)),attachMessageListener(),console['log'](LOG_PREFIX2+_0x471eac(0x20a)),await sendConfiguration();if(state['enabled']){const _0x1412fc=document['querySelector'](_0x471eac(0x203))!==null;console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x1a5)+_0x1412fc);if(!_0x1412fc){console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x1fe)),window[_0x471eac(0x17b)][_0x471eac(0x220)]();return;}}console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x15f)),updateOverlay(),console[_0x471eac(0x1b2)](LOG_PREFIX2+_0x471eac(0x1b9));}catch(_0x4085b5){console[_0x471eac(0x1f6)](LOG_PREFIX2+_0x471eac(0x155),_0x4085b5);}}async function sendConfiguration(){const _0x351027=_0x447c3c;console['log'](LOG_PREFIX2+_0x351027(0x164)),console[_0x351027(0x1b2)](LOG_PREFIX2+_0x351027(0x20e)+state['enabled']+',\x20configGetter:\x20'+!!configGetter);if(!state[_0x351027(0x181)]||!configGetter){console[_0x351027(0x1b2)](LOG_PREFIX2+_0x351027(0x1fd));return;}const _0x47e260=await resolveWorker();if(!_0x47e260){console[_0x351027(0x1e5)](LOG_PREFIX2+'\x20No\x20service\x20worker\x20active\x20to\x20configure');return;}const _0x4fdd1f=configGetter();console[_0x351027(0x1b2)](LOG_PREFIX2+_0x351027(0x1a0),JSON[_0x351027(0x1cf)](_0x4fdd1f,null,0x2)),_0x47e260[_0x351027(0x1fb)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x4fdd1f}),console[_0x351027(0x1b2)](LOG_PREFIX2+_0x351027(0x1d0));}async function unregisterServiceWorker(_0x358f96){const _0x28ef05=_0x447c3c;console[_0x28ef05(0x1b2)](LOG_PREFIX2+_0x28ef05(0x226));if(!(_0x28ef05(0x225)in navigator)){console[_0x28ef05(0x1b2)](LOG_PREFIX2+_0x28ef05(0x1c9));return;}detachMessageListener();try{const _0x3440a7=registration??await navigator['serviceWorker'][_0x28ef05(0x1d1)]('/');if(!_0x3440a7){console[_0x28ef05(0x1b2)](LOG_PREFIX2+_0x28ef05(0x19b));return;}console[_0x28ef05(0x1b2)](LOG_PREFIX2+'\x20Found\x20registration:',{'scope':_0x3440a7[_0x28ef05(0x1f4)],'active':_0x3440a7[_0x28ef05(0x1d6)]?.[_0x28ef05(0x173)],'waiting':_0x3440a7[_0x28ef05(0x1b6)]?.[_0x28ef05(0x173)],'installing':_0x3440a7[_0x28ef05(0x1f0)]?.[_0x28ef05(0x173)]});const _0x48ab2d=[_0x3440a7['active']?.[_0x28ef05(0x173)],_0x3440a7[_0x28ef05(0x1b6)]?.[_0x28ef05(0x173)],_0x3440a7['installing']?.[_0x28ef05(0x173)]],_0x1b0e78=_0x48ab2d['some'](_0x48103b=>_0x48103b&&ownsServiceWorker(_0x48103b,_0x358f96));if(!_0x1b0e78){console[_0x28ef05(0x1b2)](LOG_PREFIX2+_0x28ef05(0x1d7));return;}_0x3440a7[_0x28ef05(0x1d6)]&&(console[_0x28ef05(0x1b2)](LOG_PREFIX2+_0x28ef05(0x1f8)),_0x3440a7[_0x28ef05(0x1d6)][_0x28ef05(0x1fb)]({'type':WORKER_MESSAGE_DISABLE})),console['log'](LOG_PREFIX2+_0x28ef05(0x1e7)),await _0x3440a7[_0x28ef05(0x20b)](),registration=null,console[_0x28ef05(0x1b2)](LOG_PREFIX2+_0x28ef05(0x1bf));}catch(_0x326a4b){console[_0x28ef05(0x1f6)](LOG_PREFIX2+_0x28ef05(0x1d3),_0x326a4b);}}function attachMessageListener(){const _0x2ab9eb=_0x447c3c;if(!navigator[_0x2ab9eb(0x225)]||messageListener){console['log'](LOG_PREFIX2+_0x2ab9eb(0x16b));return;}messageListener=_0x2eea4a=>{const _0x112ba2=_0x2ab9eb,_0x2c4d9a=_0x2eea4a[_0x112ba2(0x229)];console[_0x112ba2(0x1b2)](LOG_PREFIX2+_0x112ba2(0x196),_0x2c4d9a);if(!_0x2c4d9a||typeof _0x2c4d9a!==_0x112ba2(0x1f2))return;_0x2c4d9a[_0x112ba2(0x18c)]===WORKER_MESSAGE_REQUEST_CONFIG&&(console[_0x112ba2(0x1b2)](LOG_PREFIX2+_0x112ba2(0x1c5)),void sendConfiguration());},navigator['serviceWorker'][_0x2ab9eb(0x18d)]('message',messageListener),console[_0x2ab9eb(0x1b2)](LOG_PREFIX2+_0x2ab9eb(0x178));}function detachMessageListener(){const _0x23c3c4=_0x447c3c;navigator['serviceWorker']&&messageListener&&(navigator[_0x23c3c4(0x225)][_0x23c3c4(0x184)](_0x23c3c4(0x1ab),messageListener),messageListener=null,console['log'](LOG_PREFIX2+_0x23c3c4(0x207)));}function ownsServiceWorker(_0x1aa89e,_0x4dc2c7){const _0x34834f=_0x447c3c,_0x165b3b=typeof window!=='undefined'?window['location']['origin']:'',_0x130741=new URL(_0x4dc2c7,_0x165b3b||void 0x0)[_0x34834f(0x1da)],_0x3ab00d=_0x1aa89e===_0x130741||_0x1aa89e[_0x34834f(0x1c8)](_0x34834f(0x1a7));return console['log'](LOG_PREFIX2+_0x34834f(0x20c)+_0x1aa89e+_0x34834f(0x216)+_0x130741+',\x20owns='+_0x3ab00d),_0x3ab00d;}function ownsCurrentController(_0x35da83){const _0x265edd=_0x447c3c;if(typeof navigator===_0x265edd(0x188))return![];const _0x4502c5=navigator[_0x265edd(0x225)]?.[_0x265edd(0x21b)];if(!_0x4502c5)return console[_0x265edd(0x1b2)](LOG_PREFIX2+_0x265edd(0x163)),![];return ownsServiceWorker(_0x4502c5[_0x265edd(0x173)],_0x35da83);}async function detectBlockingServiceWorker(_0x1d42e7){const _0xaeff2e=_0x447c3c;if(!navigator[_0xaeff2e(0x225)])return null;try{const _0x46d55c=await navigator[_0xaeff2e(0x225)][_0xaeff2e(0x1d1)]('/');console[_0xaeff2e(0x1b2)](LOG_PREFIX2+_0xaeff2e(0x189),_0x46d55c?.[_0xaeff2e(0x1d6)]?.[_0xaeff2e(0x173)]??_0xaeff2e(0x1fc));const _0x1ad8c5=_0x46d55c?.[_0xaeff2e(0x1d6)]?.['scriptURL'];if(!_0x1ad8c5)return null;if(ownsServiceWorker(_0x1ad8c5,_0x1d42e7))return null;return _0x1ad8c5;}catch(_0x5cfbf4){return console[_0xaeff2e(0x1f6)](LOG_PREFIX2+'\x20detectBlocking\x20error:',_0x5cfbf4),null;}}async function resolveWorker(){const _0x489739=_0x447c3c,_0x5aa5e5=registration??await navigator['serviceWorker']?.[_0x489739(0x1d1)]('/'),_0x34c9d4=_0x5aa5e5?.[_0x489739(0x1d6)]??_0x5aa5e5?.[_0x489739(0x1b6)]??_0x5aa5e5?.[_0x489739(0x1f0)]??null;return console[_0x489739(0x1b2)](LOG_PREFIX2+_0x489739(0x223),_0x34c9d4?.[_0x489739(0x173)]??_0x489739(0x1fc),'state:\x20'+(_0x34c9d4?.['state']??_0x489739(0x193))),_0x34c9d4;}function buildWorkerConfiguration(_0x1537e2){const _0x26a9c5=_0x447c3c,_0x3f23fe=getEnhancementUrl();return console[_0x26a9c5(0x1b2)](LOG_PREFIX2+_0x26a9c5(0x169)+_0x3f23fe),{'enhancementUrl':_0x3f23fe,'callbackBypass':_0x1537e2['callbackBypass'],'overlayPath':_0x1537e2[_0x26a9c5(0x177)],'overlayEnableViteHmr':_0x1537e2[_0x26a9c5(0x1eb)][_0x26a9c5(0x20d)],'runtimeScriptPath':_0x1537e2['runtimeScriptPath'],'swPath':_0x1537e2[_0x26a9c5(0x1e2)],'securityMode':_0x1537e2[_0x26a9c5(0x1b5)],'backendUrl':_0x1537e2[_0x26a9c5(0x201)]};}var LOG_PREFIX3=_0x447c3c(0x197),initialized=![],options=null,Enhance={'init'(_0x5c03b2){const _0x3b0887=_0x447c3c,_0x27d64e=Date[_0x3b0887(0x17f)]();console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x1e3)+_0x27d64e),console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x212)+window[_0x3b0887(0x17b)][_0x3b0887(0x1da)]),console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x1d5)+document[_0x3b0887(0x1ed)]),console['log'](LOG_PREFIX3+_0x3b0887(0x22a),JSON[_0x3b0887(0x1cf)](_0x5c03b2,null,0x2));if(initialized)return console[_0x3b0887(0x1e5)](LOG_PREFIX3+'\x20Already\x20initialized\x20-\x20returning\x20existing\x20controller'),createController();initialized=!![],console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x1f1)),options=normalizeOptions(_0x5c03b2),console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x1a4),JSON[_0x3b0887(0x1cf)](options,null,0x2));const _0x4f9aa4=parseUrlParams();console[_0x3b0887(0x1b2)](LOG_PREFIX3+'\x20URL\x20params\x20parsed:',JSON[_0x3b0887(0x1cf)](_0x4f9aa4,null,0x2));if(_0x4f9aa4[_0x3b0887(0x1ca)])return cleanUrlParam(_0x3b0887(0x19c)),console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x191)),createController();if(_0x4f9aa4[_0x3b0887(0x1cd)])return console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x160)),console['log'](LOG_PREFIX3+_0x3b0887(0x157)+_0x4f9aa4[_0x3b0887(0x1ea)]),console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x206)+_0x4f9aa4[_0x3b0887(0x210)]),state[_0x3b0887(0x181)]=!![],console['log'](LOG_PREFIX3+_0x3b0887(0x1c6)),void loadOverlay({'overlayPath':options['overlayPath'],'enableViteHmr':options[_0x3b0887(0x1eb)][_0x3b0887(0x20d)],'options':options,'onToggle':handleToggle}),console[_0x3b0887(0x1b2)](LOG_PREFIX3+'\x20Starting\x20SW\x20registration\x20(async)...'),void registerServiceWorker(options),console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x18e)),createController();return console[_0x3b0887(0x1b2)](LOG_PREFIX3+'\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params'),console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x165)),void unregisterServiceWorker(options['swPath']),console[_0x3b0887(0x1b2)](LOG_PREFIX3+_0x3b0887(0x18a)),createController();}};function createController(){return{'enable'(){const _0x283446=_0x2c38;if(!options)return;state['enabled']=!![],void loadOverlay({'overlayPath':options[_0x283446(0x177)],'enableViteHmr':options[_0x283446(0x1eb)][_0x283446(0x20d)],'options':options,'onToggle':handleToggle}),void registerServiceWorker(options),void sendConfiguration(),updateOverlay();},'disable'(){const _0x130160=_0x2c38;if(!options)return;state[_0x130160(0x181)]=![],state[_0x130160(0x1d2)]=![],updateOverlay(),void unregisterServiceWorker(options[_0x130160(0x1e2)]);},'status'(){const _0x490959=_0x2c38;return{'enabled':state[_0x490959(0x181)],'controlled':state[_0x490959(0x1d2)]};}};}function handleToggle(){const _0x17793d=_0x447c3c,_0x399b3f=createController();state[_0x17793d(0x181)]?_0x399b3f[_0x17793d(0x16e)]():_0x399b3f[_0x17793d(0x19f)]();}function parseUrlParams(){const _0x6740d8=_0x447c3c,_0x53172a=new URL(window['location'][_0x6740d8(0x1da)]),_0x3a5bc8=_0x53172a[_0x6740d8(0x20f)][_0x6740d8(0x186)](_0x6740d8(0x19c))?.[_0x6740d8(0x218)](),_0x1613c6=_0x53172a[_0x6740d8(0x20f)][_0x6740d8(0x186)](_0x6740d8(0x1ea)),_0x2d2d51=_0x53172a[_0x6740d8(0x20f)][_0x6740d8(0x186)](_0x6740d8(0x176));return{'hasEnhancement':Boolean(_0x1613c6||_0x2d2d51),'explicitDisable':_0x3a5bc8==='0'||_0x3a5bc8===_0x6740d8(0x214)||_0x3a5bc8===_0x6740d8(0x1a2),'enhancementUrl':_0x1613c6,'enhancementId':_0x2d2d51};}function _0x2c38(_0xc900e2,_0x49d823){const _0x5842ff=_0x5842();return _0x2c38=function(_0x2c38c4,_0x2f0466){_0x2c38c4=_0x2c38c4-0x155;let _0x5ecd43=_0x5842ff[_0x2c38c4];return _0x5ecd43;},_0x2c38(_0xc900e2,_0x49d823);}function cleanUrlParam(_0x1441f0){const _0x5090a1=_0x447c3c,_0x1d61d5=new URL(window[_0x5090a1(0x17b)][_0x5090a1(0x1da)]);_0x1d61d5['searchParams'][_0x5090a1(0x17d)](_0x1441f0)&&(_0x1d61d5[_0x5090a1(0x20f)][_0x5090a1(0x1e6)](_0x1441f0),window[_0x5090a1(0x1bc)][_0x5090a1(0x1ee)](null,document[_0x5090a1(0x21f)],_0x1d61d5[_0x5090a1(0x174)]()));}var package_default={'name':_0x447c3c(0x1b4),'version':_0x447c3c(0x1f7),'type':_0x447c3c(0x1bd),'description':_0x447c3c(0x166),'license':_0x447c3c(0x1e4),'main':_0x447c3c(0x161),'module':_0x447c3c(0x180),'types':_0x447c3c(0x172),'exports':{'.':{'types':_0x447c3c(0x172),'import':'./dist/index.js','require':'./dist/index.cjs'},'./vite':{'types':'./dist/vite/index.d.ts','import':_0x447c3c(0x15c)}},'files':[_0x447c3c(0x227),_0x447c3c(0x1a1),'enhance.config.sample.json'],'bin':{'enhance-sandbox':_0x447c3c(0x1c7)},'scripts':{'typecheck':_0x447c3c(0x1de),'dev':_0x447c3c(0x1dd),'dev:staging':_0x447c3c(0x1be),'build':'ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','build:release':_0x447c3c(0x1e1),'version':'pnpm\x20version\x20patch\x20--no-git-tag-version'},'dependencies':{'commander':'^11.1.0','zod':_0x447c3c(0x1c4)},'devDependencies':{'@types/node':_0x447c3c(0x18b),'javascript-obfuscator':_0x447c3c(0x213),'tsup':_0x447c3c(0x17a),'vite':_0x447c3c(0x15d)},'publishConfig':{'access':_0x447c3c(0x1d4)}},DEFAULT_SERVICE_WORKER_PATH='/sw-enhance.js',DEFAULT_RUNTIME_PATH=_0x447c3c(0x219),PACKAGE_VERSION=typeof package_default[_0x447c3c(0x1ac)]===_0x447c3c(0x1dc)?package_default[_0x447c3c(0x1ac)]:_0x447c3c(0x211);function _0x5842(){const _0x177510=['[data-enhance-runtime-bootstrap]','replace','function','\x20enhancementId:\x20','\x20Message\x20listener\x20detached','enhance:request-config','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','\x20Sending\x20initial\x20configuration...','unregister','\x20ownsServiceWorker?\x20scriptURL=','enableViteHmr','\x20state.enabled:\x20','searchParams','enhancementId','0.0.0','\x20Current\x20URL:\x20','^4.1.1','false','__viteHMRLoaded',',\x20expected=','register','toLowerCase','/assets/enhance-runtime.js','245512hkOjXF','controller','ready','add','\x20with\x20scope\x20\x27/\x27...','title','reload','\x20Module\x20imported\x20in\x20','position','\x20resolveWorker:','onToggle','serviceWorker','\x20unregisterServiceWorker()\x20called','dist','\x20Updating\x20overlay\x20with\x20state:','data','\x20Raw\x20options:','\x20Module\x20exports:','\x20Failed\x20to\x20register\x20service\x20worker:','\x20Setting\x20up\x20remote\x20HMR...','\x20enhancementUrl:\x20','/sw-enhance.js','injectIntoGlobalHook','\x20loadOverlay()\x20complete','keys','./dist/vite/index.js','^7.2.4','$RefreshSig$','\x20Updating\x20overlay...','\x20Enhancement\x20mode\x20ENABLED','./dist/index.cjs','/@vite/client','\x20No\x20current\x20controller','\x20sendConfiguration()\x20called','\x20Unregistering\x20any\x20existing\x20SW...','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','enableOverlayHmr','8005cxAnmh','\x20buildWorkerConfiguration\x20-\x20enhancementUrl:\x20','[Enhance\x20Overlay]','\x20Message\x20listener\x20already\x20attached\x20or\x20no\x20SW\x20support','\x20composeOverlayState\x20-\x20state.controlled:\x20','/@react-refresh','disable','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','\x20updateOverlay()\x20called','createOverlay','./dist/index.d.ts','scriptURL','toString','954kHprwT','enhancement','overlayPath','\x20Message\x20listener\x20attached','\x20Vite\x20client\x20already\x20loaded\x20for\x20','^8.5.1','location','\x20Overlay\x20origin:\x20','has','permissive','now','./dist/index.js','enabled','\x20Calling\x20createOverlay()...','\x20Checking\x20for\x20blocking\x20service\x20worker...','removeEventListener','\x20loadOverlay()\x20failed:','get','6424hutHZP','undefined','\x20detectBlocking\x20-\x20existing\x20registration:','\x20init()\x20complete\x20-\x20normal\x20mode','^24.10.1','type','addEventListener','\x20init()\x20complete\x20-\x20enhancement\x20mode','\x20Current\x20controller:','\x20Service\x20workers\x20supported','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','N/A','origin','update','\x20Received\x20message\x20from\x20SW:','[Enhance\x20Runtime]','\x20BLOCKING\x20SW\x20detected:\x20','2762OEbcMG','488588UIrhHF','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','enhance','__enhanceReactRefreshInstalledOrigins','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','enable','\x20Sending\x20config\x20to\x20SW:','bin','off','default','\x20Normalized\x20options:','\x20Enhancement\x20detection:\x20wasEnhanced=','\x20Attaching\x20message\x20listener...','sw-enhance','\x20No\x20blocking\x20SW\x20found','__development','\x20swPath:\x20','message','version','...','options','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','\x20currentOptions\x20exists:\x20','log','enhance:configure','@enhance-eng/sandbox','security','waiting','1500ZCLaup','91150MhoLUh','\x20registerServiceWorker()\x20complete','\x20Invalid\x20React\x20Refresh\x20runtime','__enhanceOverlay','history','module','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','\x20SW\x20unregistered\x20successfully','\x20No\x20window\x20object\x20-\x20skipping','\x20Registration\x20returned:','\x20overlayController\x20exists:\x20','\x20HMR\x20setup\x20complete','^3.22.4','\x20SW\x20requested\x20config\x20-\x20sending...','\x20Starting\x20overlay\x20load\x20(async)...','bin/enhance-sandbox.js','includes','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','explicitDisable','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','\x20Current\x20controller\x20after\x20ready:','hasEnhancement','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','stringify','\x20Config\x20sent\x20to\x20SW','getRegistration','controlled','\x20Failed\x20to\x20unregister\x20service\x20worker:','public','\x20Document\x20readyState:\x20','active','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','trim',',\x20page\x20origin:\x20','href','\x20Registering\x20SW\x20at\x20','string','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=http://localhost:8787\x20tsup\x20--watch','tsc\x20--noEmit','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','4232250WcVubU','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','swPath','\x20init()\x20called\x20at\x20','MIT','warn','delete','\x20Unregistering\x20SW...','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','2037PzJWof','enhancementUrl','overlay','\x20enableViteHmr:\x20','readyState','replaceState','https://','installing','\x20First\x20initialization','object','583CqWaoJ','scope','init','error','0.3.16','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','callbackBypass','startsWith','postMessage','none','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20configGetter','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','\x20Failed\x20to\x20import/create\x20overlay:','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','backendUrl','[Enhance\x20SW-Client]'];_0x5842=function(){return _0x177510;};return _0x5842();}function normalizeAssetPath(_0x2eb819){const _0x5e2ba7=_0x447c3c;if(!_0x2eb819)return _0x2eb819;if(_0x2eb819[_0x5e2ba7(0x1fa)]('http://')||_0x2eb819[_0x5e2ba7(0x1fa)](_0x5e2ba7(0x1ef)))return _0x2eb819;const _0xbd5e67=_0x2eb819[_0x5e2ba7(0x204)](/^\.\//,'');return _0xbd5e67[_0x5e2ba7(0x1fa)]('/')?_0xbd5e67:'/'+_0xbd5e67;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x1f8f53){const _0x486f3b=_0x447c3c;return Enhance[_0x486f3b(0x1f5)](_0x1f8f53);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function resolveServiceWorkerPath(){return serviceWorkerURL();}function serviceWorkerURL(){return Enhance2['serviceWorkerURL']();}function runtimeURL(){return Enhance2['runtimeURL']();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
1
+ const _0x52068d=_0xaac0;(function(_0x5a22c7,_0x4b29a9){const _0x163b51=_0xaac0,_0x2b9c5d=_0x5a22c7();while(!![]){try{const _0x377e71=parseInt(_0x163b51(0x204))/0x1*(parseInt(_0x163b51(0x173))/0x2)+-parseInt(_0x163b51(0x203))/0x3*(-parseInt(_0x163b51(0x1ab))/0x4)+-parseInt(_0x163b51(0x220))/0x5+-parseInt(_0x163b51(0x1e5))/0x6+-parseInt(_0x163b51(0x19f))/0x7+parseInt(_0x163b51(0x1bc))/0x8*(-parseInt(_0x163b51(0x20b))/0x9)+parseInt(_0x163b51(0x206))/0xa*(parseInt(_0x163b51(0x183))/0xb);if(_0x377e71===_0x4b29a9)break;else _0x2b9c5d['push'](_0x2b9c5d['shift']());}catch(_0xb66699){_0x2b9c5d['push'](_0x2b9c5d['shift']());}}}(_0x238f,0xa3774));var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!=='undefined'?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x52068d(0x1f5),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x52068d(0x1bf)?__ENHANCE_DEFAULT_BACKEND_URL__:_0x52068d(0x158),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x52068d(0x1bf)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x52068d(0x14d)](_0x52068d(0x1aa),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x191c5f){const _0x67b597=_0x52068d,_0x20b2fa=_0x191c5f[_0x67b597(0x205)]??{};return{'callbackBypass':_0x191c5f[_0x67b597(0x1f4)],'overlay':{'enabled':!![],'position':'bottom-right','enableViteHmr':_0x20b2fa[_0x67b597(0x14f)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x67b597(0x208),'swPath':_0x67b597(0x152),'overlayPath':_0x20b2fa[_0x67b597(0x1b6)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x67b597(0x15f),'security':_0x20b2fa[_0x67b597(0x198)]??_0x67b597(0x224),'backendUrl':_0x20b2fa[_0x67b597(0x1b5)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementUrl(){const _0xb08de9=_0x52068d;try{const _0x2daa14=new URLSearchParams(window[_0xb08de9(0x1a1)][_0xb08de9(0x170)]);return _0x2daa14[_0xb08de9(0x21f)](_0xb08de9(0x182))?.[_0xb08de9(0x166)]()||'';}catch{return'';}}var LOG_PREFIX=_0x52068d(0x160),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x146de2){const _0x5a1cd6=_0x52068d;console[_0x5a1cd6(0x14d)](LOG_PREFIX+_0x5a1cd6(0x14e)),console['log'](LOG_PREFIX+_0x5a1cd6(0x189)+_0x146de2[_0x5a1cd6(0x1b6)]),console[_0x5a1cd6(0x14d)](LOG_PREFIX+_0x5a1cd6(0x1c9)+_0x146de2[_0x5a1cd6(0x157)]),currentOptions=_0x146de2[_0x5a1cd6(0x199)],toggleHandler=_0x146de2[_0x5a1cd6(0x18b)];if(overlayController){console[_0x5a1cd6(0x14d)](LOG_PREFIX+_0x5a1cd6(0x16e)),updateOverlay();return;}if(overlayLoadPromise)return console['log'](LOG_PREFIX+_0x5a1cd6(0x223)),overlayLoadPromise;console[_0x5a1cd6(0x14d)](LOG_PREFIX+_0x5a1cd6(0x1b0)),overlayLoadPromise=doLoadOverlay(_0x146de2);try{await overlayLoadPromise,console[_0x5a1cd6(0x14d)](LOG_PREFIX+_0x5a1cd6(0x16a));}catch(_0x489636){console[_0x5a1cd6(0x1c3)](LOG_PREFIX+_0x5a1cd6(0x191),_0x489636);}finally{overlayLoadPromise=null;}}function _0xaac0(_0x554986,_0x4f22fe){const _0x238f02=_0x238f();return _0xaac0=function(_0xaac07a,_0x31dc2e){_0xaac07a=_0xaac07a-0x14c;let _0x22c413=_0x238f02[_0xaac07a];return _0x22c413;},_0xaac0(_0x554986,_0x4f22fe);}async function doLoadOverlay(_0x1b3220){const _0xc5ad19=_0x52068d;console[_0xc5ad19(0x14d)](LOG_PREFIX+_0xc5ad19(0x15d));if(typeof window===_0xc5ad19(0x1bf)){console[_0xc5ad19(0x14d)](LOG_PREFIX+_0xc5ad19(0x164));return;}if(window['__enhanceOverlay']){console[_0xc5ad19(0x14d)](LOG_PREFIX+_0xc5ad19(0x1dd)),overlayController=window[_0xc5ad19(0x1ec)];return;}console[_0xc5ad19(0x14d)](LOG_PREFIX+_0xc5ad19(0x1f2));try{_0x1b3220[_0xc5ad19(0x157)]&&(console['log'](LOG_PREFIX+_0xc5ad19(0x1f9)),await setupRemoteHMR(_0x1b3220[_0xc5ad19(0x1b6)]));console[_0xc5ad19(0x14d)](LOG_PREFIX+'\x20Importing\x20overlay\x20module\x20from:\x20'+_0x1b3220[_0xc5ad19(0x1b6)]);const _0x5ba087=Date['now'](),_0xc77c03=await import(_0x1b3220['overlayPath']);console[_0xc5ad19(0x14d)](LOG_PREFIX+'\x20Module\x20imported\x20in\x20'+(Date[_0xc5ad19(0x14c)]()-_0x5ba087)+'ms'),console['log'](LOG_PREFIX+'\x20Module\x20exports:',Object[_0xc5ad19(0x1cd)](_0xc77c03));if(typeof _0xc77c03?.['createOverlay']!==_0xc5ad19(0x1a2)){console[_0xc5ad19(0x1c3)](LOG_PREFIX+'\x20Module\x20missing\x20createOverlay\x20export!'),console[_0xc5ad19(0x1c3)](LOG_PREFIX+_0xc5ad19(0x18f),Object[_0xc5ad19(0x1cd)](_0xc77c03));return;}console[_0xc5ad19(0x14d)](LOG_PREFIX+'\x20Calling\x20createOverlay()...');const _0x1b79f1=_0xc77c03[_0xc5ad19(0x192)]();console['log'](LOG_PREFIX+_0xc5ad19(0x195),_0x1b79f1),overlayController=_0x1b79f1,window[_0xc5ad19(0x1ec)]=_0x1b79f1,_0x1b79f1[_0xc5ad19(0x18b)](_0x1b3220['onToggle']),console[_0xc5ad19(0x14d)](LOG_PREFIX+'\x20Overlay\x20controller\x20initialized\x20and\x20cached'),console['log'](LOG_PREFIX+_0xc5ad19(0x207)),updateOverlay();}catch(_0x2abe51){console[_0xc5ad19(0x1c3)](LOG_PREFIX+'\x20Failed\x20to\x20import/create\x20overlay:',_0x2abe51);}}function updateOverlay(){const _0x5ee0f7=_0x52068d;console['log'](LOG_PREFIX+_0x5ee0f7(0x1ef)),console[_0x5ee0f7(0x14d)](LOG_PREFIX+_0x5ee0f7(0x1a9)+!!overlayController),console[_0x5ee0f7(0x14d)](LOG_PREFIX+_0x5ee0f7(0x150)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x5ee0f7(0x14d)](LOG_PREFIX+_0x5ee0f7(0x1c1));return;}const _0x26bde1=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+'\x20Updating\x20overlay\x20with\x20state:',JSON['stringify'](_0x26bde1,null,0x2)),overlayController[_0x5ee0f7(0x210)](_0x26bde1),console[_0x5ee0f7(0x14d)](LOG_PREFIX+_0x5ee0f7(0x1f3));}function composeOverlayState(_0x35065c){const _0x28e0f8=_0x52068d,_0x1a2507=getEnhancementUrl();return console[_0x28e0f8(0x14d)](LOG_PREFIX+_0x28e0f8(0x168)+_0x1a2507),console[_0x28e0f8(0x14d)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.enabled:\x20'+state[_0x28e0f8(0x186)]),console[_0x28e0f8(0x14d)](LOG_PREFIX+_0x28e0f8(0x1b2)+state['controlled']),{'enhancementUrl':_0x1a2507,'enabled':state['enabled'],'controlled':state[_0x28e0f8(0x1d2)],'overlayPosition':_0x35065c[_0x28e0f8(0x1d1)][_0x28e0f8(0x15e)],'securityMode':_0x35065c[_0x28e0f8(0x198)],'backendBaseUrl':_0x35065c[_0x28e0f8(0x1b5)],'appError':state[_0x28e0f8(0x1b7)]};}async function setupRemoteHMR(_0x1e0567){const _0x10be87=_0x52068d;console['log'](LOG_PREFIX+'\x20setupRemoteHMR()\x20for\x20'+_0x1e0567);if(typeof window==='undefined')return;try{const _0x4eb482=new URL(_0x1e0567,window[_0x10be87(0x1a1)][_0x10be87(0x17b)]),_0x3a4936=_0x4eb482['origin'];console[_0x10be87(0x14d)](LOG_PREFIX+_0x10be87(0x196)+_0x3a4936+_0x10be87(0x161)+window[_0x10be87(0x1a1)][_0x10be87(0x17b)]);if(_0x3a4936===window['location'][_0x10be87(0x17b)]){console[_0x10be87(0x14d)](LOG_PREFIX+_0x10be87(0x1e6));return;}console['log'](LOG_PREFIX+_0x10be87(0x1d7)),await ensureReactRefreshPreamble(_0x3a4936),await ensureViteClient(_0x3a4936),console[_0x10be87(0x14d)](LOG_PREFIX+'\x20HMR\x20setup\x20complete');}catch(_0x30d95b){console[_0x10be87(0x16f)](LOG_PREFIX+_0x10be87(0x162),_0x30d95b);}}async function ensureReactRefreshPreamble(_0x1db696){const _0x258b54=_0x52068d;window[_0x258b54(0x1b3)]??=new Set();if(window['__enhanceReactRefreshInstalledOrigins']['has'](_0x1db696)){console['log'](LOG_PREFIX+_0x258b54(0x202)+_0x1db696);return;}console[_0x258b54(0x14d)](LOG_PREFIX+_0x258b54(0x19e)+_0x1db696+_0x258b54(0x1d8));const _0x26f987=await import(_0x1db696+_0x258b54(0x20f)),_0x4c3d18=_0x26f987&&typeof _0x26f987===_0x258b54(0x153)&&_0x258b54(0x1af)in _0x26f987?_0x26f987[_0x258b54(0x1af)]:_0x26f987;if(!isRefreshRuntime(_0x4c3d18)){console[_0x258b54(0x16f)](LOG_PREFIX+_0x258b54(0x211));return;}_0x4c3d18[_0x258b54(0x1f6)](window),window['$RefreshReg$']=()=>{},window['$RefreshSig$']=()=>_0x2ced93=>_0x2ced93,window[_0x258b54(0x21e)]=!![],window[_0x258b54(0x1b3)]['add'](_0x1db696),console[_0x258b54(0x14d)](LOG_PREFIX+_0x258b54(0x216)+_0x1db696);}async function ensureViteClient(_0x55c6c5){const _0x569edf=_0x52068d;window['__viteHMRLoaded']??=new Set();if(window[_0x569edf(0x214)][_0x569edf(0x169)](_0x55c6c5)){console[_0x569edf(0x14d)](LOG_PREFIX+'\x20Vite\x20client\x20already\x20loaded\x20for\x20'+_0x55c6c5);return;}console[_0x569edf(0x14d)](LOG_PREFIX+_0x569edf(0x17f)+_0x55c6c5+_0x569edf(0x1d8)),await import(_0x55c6c5+_0x569edf(0x1a7)),window[_0x569edf(0x214)][_0x569edf(0x1fc)](_0x55c6c5),console[_0x569edf(0x14d)](LOG_PREFIX+_0x569edf(0x221)+_0x55c6c5);}function isRefreshRuntime(_0x58cb73){const _0x2b5ff4=_0x52068d;return typeof _0x58cb73==='object'&&_0x58cb73!==null&&_0x2b5ff4(0x1f6)in _0x58cb73&&typeof _0x58cb73[_0x2b5ff4(0x1f6)]==='function';}var WORKER_MESSAGE_CONFIG='enhance:configure',WORKER_MESSAGE_DISABLE=_0x52068d(0x188),LOG_PREFIX2='[Enhance\x20SW-Client]',registration=null,currentOptions2=null;async function registerServiceWorker(_0x2de1f3){const _0x2697ea=_0x52068d;console[_0x2697ea(0x14d)](LOG_PREFIX2+_0x2697ea(0x18d)),console['log'](LOG_PREFIX2+_0x2697ea(0x1ca)+_0x2de1f3['swPath']);if(!(_0x2697ea(0x1b9)in navigator)){console[_0x2697ea(0x16f)](LOG_PREFIX2+'\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser');return;}console['log'](LOG_PREFIX2+_0x2697ea(0x1a0));const _0x41dc66=navigator[_0x2697ea(0x1b9)][_0x2697ea(0x1c5)];console[_0x2697ea(0x14d)](LOG_PREFIX2+_0x2697ea(0x1c8),_0x41dc66?.['scriptURL']??'none'),console['log'](LOG_PREFIX2+_0x2697ea(0x163),_0x41dc66?.[_0x2697ea(0x1ed)]??_0x2697ea(0x181));const _0x3fc567=!!_0x41dc66;currentOptions2=_0x2de1f3,console['log'](LOG_PREFIX2+_0x2697ea(0x178));const _0x4c3b38=await detectBlockingServiceWorker(_0x2de1f3[_0x2697ea(0x175)]);if(_0x4c3b38){console['error'](LOG_PREFIX2+_0x2697ea(0x1ac)+_0x4c3b38),console[_0x2697ea(0x1c3)](LOG_PREFIX2+_0x2697ea(0x200));return;}console[_0x2697ea(0x14d)](LOG_PREFIX2+_0x2697ea(0x194));try{console[_0x2697ea(0x14d)](LOG_PREFIX2+_0x2697ea(0x159)+_0x2de1f3[_0x2697ea(0x175)]+_0x2697ea(0x1d6)),registration=await navigator[_0x2697ea(0x1b9)][_0x2697ea(0x17c)](_0x2de1f3[_0x2697ea(0x175)],{'scope':'/'}),console[_0x2697ea(0x14d)](LOG_PREFIX2+_0x2697ea(0x15b),{'scope':registration['scope'],'active':registration[_0x2697ea(0x1a4)]?.['scriptURL'],'waiting':registration[_0x2697ea(0x1c4)]?.['scriptURL'],'installing':registration['installing']?.[_0x2697ea(0x172)]}),console['log'](LOG_PREFIX2+'\x20Waiting\x20for\x20navigator.serviceWorker.ready...');const _0x2d4642=await navigator[_0x2697ea(0x1b9)][_0x2697ea(0x1ea)];console[_0x2697ea(0x14d)](LOG_PREFIX2+_0x2697ea(0x201),_0x2d4642['active']?.[_0x2697ea(0x172)]);const _0x59bcde=ownsCurrentController(_0x2de1f3[_0x2697ea(0x175)]);state[_0x2697ea(0x1d2)]=_0x59bcde,console['log'](LOG_PREFIX2+_0x2697ea(0x1a6)+_0x59bcde),console[_0x2697ea(0x14d)](LOG_PREFIX2+_0x2697ea(0x16c),navigator[_0x2697ea(0x1b9)][_0x2697ea(0x1c5)]?.['scriptURL']??_0x2697ea(0x1ba));if(!_0x3fc567&&!navigator[_0x2697ea(0x1b9)]['controller']){console[_0x2697ea(0x14d)](LOG_PREFIX2+_0x2697ea(0x1fe)),window[_0x2697ea(0x1a1)][_0x2697ea(0x179)]();return;}console['log'](LOG_PREFIX2+_0x2697ea(0x1c2)),await sendConfiguration();if(state['enabled']){const _0x4870c9=document[_0x2697ea(0x1da)]('[data-enhance-runtime-bootstrap]')!==null;console[_0x2697ea(0x14d)](LOG_PREFIX2+_0x2697ea(0x17d)+_0x4870c9);if(!_0x4870c9){console[_0x2697ea(0x14d)](LOG_PREFIX2+_0x2697ea(0x17a)),window[_0x2697ea(0x1a1)]['reload']();return;}}console['log'](LOG_PREFIX2+_0x2697ea(0x1e2)),updateOverlay(),console[_0x2697ea(0x14d)](LOG_PREFIX2+_0x2697ea(0x21c));}catch(_0x278d29){console[_0x2697ea(0x1c3)](LOG_PREFIX2+_0x2697ea(0x1e3),_0x278d29);}}async function sendConfiguration(){const _0xb844e5=_0x52068d;console['log'](LOG_PREFIX2+_0xb844e5(0x225)),console['log'](LOG_PREFIX2+_0xb844e5(0x16d)+state[_0xb844e5(0x186)]+_0xb844e5(0x1cb)+!!currentOptions2);if(!state[_0xb844e5(0x186)]||!currentOptions2){console[_0xb844e5(0x14d)](LOG_PREFIX2+_0xb844e5(0x1c0));return;}const _0x3e5840=await resolveWorker();if(!_0x3e5840){console[_0xb844e5(0x16f)](LOG_PREFIX2+_0xb844e5(0x174));return;}const _0x709b65={'callbackBypass':currentOptions2['callbackBypass'],'securityMode':currentOptions2[_0xb844e5(0x198)]};console['log'](LOG_PREFIX2+_0xb844e5(0x19c),JSON[_0xb844e5(0x1d0)](_0x709b65,null,0x2)),_0x3e5840[_0xb844e5(0x212)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x709b65}),console['log'](LOG_PREFIX2+'\x20Config\x20sent\x20to\x20SW');}async function unregisterServiceWorker(_0x2c8456){const _0x124234=_0x52068d;console[_0x124234(0x14d)](LOG_PREFIX2+'\x20unregisterServiceWorker()\x20called');if(!('serviceWorker'in navigator)){console[_0x124234(0x14d)](LOG_PREFIX2+'\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister');return;}try{const _0x3a63af=registration??await navigator[_0x124234(0x1b9)][_0x124234(0x155)]('/');if(!_0x3a63af){console['log'](LOG_PREFIX2+_0x124234(0x1f0));return;}console[_0x124234(0x14d)](LOG_PREFIX2+_0x124234(0x1d5),{'scope':_0x3a63af[_0x124234(0x1c6)],'active':_0x3a63af[_0x124234(0x1a4)]?.[_0x124234(0x172)],'waiting':_0x3a63af[_0x124234(0x1c4)]?.[_0x124234(0x172)],'installing':_0x3a63af[_0x124234(0x217)]?.[_0x124234(0x172)]});const _0x469579=[_0x3a63af[_0x124234(0x1a4)]?.[_0x124234(0x172)],_0x3a63af[_0x124234(0x1c4)]?.['scriptURL'],_0x3a63af[_0x124234(0x217)]?.['scriptURL']],_0x251529=_0x469579[_0x124234(0x18e)](_0x7a0e9c=>_0x7a0e9c&&ownsServiceWorker(_0x7a0e9c,_0x2c8456));if(!_0x251529){console['log'](LOG_PREFIX2+_0x124234(0x185));return;}_0x3a63af[_0x124234(0x1a4)]&&(console[_0x124234(0x14d)](LOG_PREFIX2+_0x124234(0x20a)),_0x3a63af['active'][_0x124234(0x212)]({'type':WORKER_MESSAGE_DISABLE})),console[_0x124234(0x14d)](LOG_PREFIX2+_0x124234(0x184)),await _0x3a63af[_0x124234(0x171)](),registration=null,currentOptions2=null,console[_0x124234(0x14d)](LOG_PREFIX2+_0x124234(0x209));}catch(_0x24c85a){console[_0x124234(0x1c3)](LOG_PREFIX2+_0x124234(0x1cc),_0x24c85a);}}function ownsServiceWorker(_0x4c667a,_0x5556ae){const _0x72e564=_0x52068d,_0x232f45=typeof window!==_0x72e564(0x1bf)?window['location'][_0x72e564(0x17b)]:'',_0x18903c=new URL(_0x5556ae,_0x232f45||void 0x0)['href'],_0x449521=_0x4c667a===_0x18903c||_0x4c667a[_0x72e564(0x177)](_0x72e564(0x187));return console[_0x72e564(0x14d)](LOG_PREFIX2+_0x72e564(0x16b)+_0x4c667a+_0x72e564(0x151)+_0x18903c+_0x72e564(0x1be)+_0x449521),_0x449521;}function ownsCurrentController(_0x4cf3fa){const _0x1bea5d=_0x52068d;if(typeof navigator===_0x1bea5d(0x1bf))return![];const _0x145c4e=navigator[_0x1bea5d(0x1b9)]?.[_0x1bea5d(0x1c5)];if(!_0x145c4e)return console['log'](LOG_PREFIX2+'\x20No\x20current\x20controller'),![];return ownsServiceWorker(_0x145c4e[_0x1bea5d(0x172)],_0x4cf3fa);}async function detectBlockingServiceWorker(_0x33a187){const _0x19d186=_0x52068d;if(!navigator[_0x19d186(0x1b9)])return null;try{const _0x2962cb=await navigator['serviceWorker'][_0x19d186(0x155)]('/');console[_0x19d186(0x14d)](LOG_PREFIX2+_0x19d186(0x17e),_0x2962cb?.['active']?.['scriptURL']??_0x19d186(0x1ba));const _0x17ab0d=_0x2962cb?.[_0x19d186(0x1a4)]?.[_0x19d186(0x172)];if(!_0x17ab0d)return null;if(ownsServiceWorker(_0x17ab0d,_0x33a187))return null;return _0x17ab0d;}catch(_0x82d837){return console[_0x19d186(0x1c3)](LOG_PREFIX2+_0x19d186(0x19a),_0x82d837),null;}}async function resolveWorker(){const _0x26f931=_0x52068d,_0x554561=registration??await navigator[_0x26f931(0x1b9)]?.[_0x26f931(0x155)]('/'),_0x206144=_0x554561?.[_0x26f931(0x1a4)]??_0x554561?.[_0x26f931(0x1c4)]??_0x554561?.['installing']??null;return console[_0x26f931(0x14d)](LOG_PREFIX2+'\x20resolveWorker:',_0x206144?.[_0x26f931(0x172)]??_0x26f931(0x1ba),_0x26f931(0x154)+(_0x206144?.[_0x26f931(0x1ed)]??_0x26f931(0x181))),_0x206144;}var LOG_PREFIX3='[Enhance\x20Runtime]';function isInitialized(){const _0x395810=_0x52068d;return typeof window!==_0x395810(0x1bf)&&window['__enhanceInitialized']===!![];}function setInitialized(_0x1d47e8){const _0x13e56a=_0x52068d;typeof window!==_0x13e56a(0x1bf)&&(window[_0x13e56a(0x213)]=_0x1d47e8);}function getOptions(){const _0x32a48f=_0x52068d;return typeof window!==_0x32a48f(0x1bf)?window['__enhanceOptions']??null:null;}function setOptions(_0x2555aa){const _0x2de2b3=_0x52068d;typeof window!==_0x2de2b3(0x1bf)&&(window[_0x2de2b3(0x176)]=_0x2555aa);}var Enhance={'init'(_0x3d52da){const _0x273188=_0x52068d,_0x3ea7ed=Date[_0x273188(0x14c)]();console[_0x273188(0x14d)](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x3ea7ed),console['log'](LOG_PREFIX3+_0x273188(0x215)+window[_0x273188(0x1a1)][_0x273188(0x1d9)]),console[_0x273188(0x14d)](LOG_PREFIX3+'\x20Document\x20readyState:\x20'+document[_0x273188(0x18a)]),console[_0x273188(0x14d)](LOG_PREFIX3+'\x20Raw\x20options:',JSON['stringify'](_0x3d52da,null,0x2));if(isInitialized())return console['warn'](LOG_PREFIX3+_0x273188(0x1ee)),window[_0x273188(0x1eb)]??createController();setInitialized(!![]),console[_0x273188(0x14d)](LOG_PREFIX3+'\x20First\x20initialization');const _0x3f53df=normalizeOptions(_0x3d52da);setOptions(_0x3f53df),console[_0x273188(0x14d)](LOG_PREFIX3+_0x273188(0x1e9),JSON['stringify'](_0x3f53df,null,0x2));const _0x5cca61=parseUrlParams();console[_0x273188(0x14d)](LOG_PREFIX3+_0x273188(0x1a8),JSON[_0x273188(0x1d0)](_0x5cca61,null,0x2));if(_0x5cca61[_0x273188(0x1bb)])return cleanUrlParam(_0x273188(0x1f8)),console[_0x273188(0x14d)](LOG_PREFIX3+_0x273188(0x180)),createController();if(_0x5cca61['hasEnhancement'])return console[_0x273188(0x14d)](LOG_PREFIX3+'\x20Enhancement\x20mode\x20ENABLED'),console[_0x273188(0x14d)](LOG_PREFIX3+_0x273188(0x1e0)+_0x5cca61['enhancementUrl']),console['log'](LOG_PREFIX3+_0x273188(0x1df)+_0x5cca61['enhancementId']),state['enabled']=!![],console[_0x273188(0x14d)](LOG_PREFIX3+_0x273188(0x1fd)),void loadOverlay({'overlayPath':_0x3f53df[_0x273188(0x1b6)],'enableViteHmr':_0x3f53df[_0x273188(0x1d1)][_0x273188(0x157)],'options':_0x3f53df,'onToggle':handleToggle}),console['log'](LOG_PREFIX3+_0x273188(0x1e7)),void registerServiceWorker(_0x3f53df),console[_0x273188(0x14d)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20enhancement\x20mode'),createController();return console[_0x273188(0x14d)](LOG_PREFIX3+_0x273188(0x197)),console[_0x273188(0x14d)](LOG_PREFIX3+_0x273188(0x222)),void unregisterServiceWorker(_0x3f53df['swPath']),console[_0x273188(0x14d)](LOG_PREFIX3+_0x273188(0x218)),import.meta['hot']&&(console['log'](LOG_PREFIX3+'\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners'),import.meta[_0x273188(0x1de)]['on']('vite:error',_0x450337=>{const _0x436efb=_0x273188;console['log'](LOG_PREFIX3+_0x436efb(0x1c7),_0x450337),state[_0x436efb(0x1b7)]={'message':_0x450337[_0x436efb(0x1b1)][_0x436efb(0x227)]},updateOverlay();}),import.meta[_0x273188(0x1de)]['on']('vite:beforeUpdate',()=>{const _0xcb2ad3=_0x273188;state[_0xcb2ad3(0x1b7)]&&(console[_0xcb2ad3(0x14d)](LOG_PREFIX3+'\x20Vite\x20update\x20pending\x20-\x20clearing\x20error'),state['appError']=null,updateOverlay());})),createController();}};function createController(){const _0x117293=_0x52068d,_0x272ff6={'enable'(){const _0x554da0=_0xaac0,_0x572a2b=getOptions();if(!_0x572a2b)return;state[_0x554da0(0x186)]=!![],void loadOverlay({'overlayPath':_0x572a2b[_0x554da0(0x1b6)],'enableViteHmr':_0x572a2b[_0x554da0(0x1d1)]['enableViteHmr'],'options':_0x572a2b,'onToggle':handleToggle}),void registerServiceWorker(_0x572a2b),void sendConfiguration(),updateOverlay();},'disable'(){const _0x46dcbe=_0xaac0,_0x2f5726=getOptions();if(!_0x2f5726)return;state[_0x46dcbe(0x186)]=![],state[_0x46dcbe(0x1d2)]=![],updateOverlay(),void unregisterServiceWorker(_0x2f5726[_0x46dcbe(0x175)]);},'status'(){const _0x423a7=_0xaac0;return{'enabled':state[_0x423a7(0x186)],'controlled':state[_0x423a7(0x1d2)]};}};return typeof window!=='undefined'&&(window[_0x117293(0x1eb)]=_0x272ff6),_0x272ff6;}function handleToggle(){const _0x3dab73=createController();state['enabled']?_0x3dab73['disable']():_0x3dab73['enable']();}function parseUrlParams(){const _0x98011=_0x52068d,_0x3d369d=new URL(window[_0x98011(0x1a1)]['href']),_0x466f1f=_0x3d369d['searchParams'][_0x98011(0x21f)](_0x98011(0x1f8))?.['toLowerCase'](),_0x2f5163=_0x3d369d[_0x98011(0x165)][_0x98011(0x21f)]('enhancementUrl'),_0x484d03=_0x3d369d[_0x98011(0x165)][_0x98011(0x21f)]('enhancement');return{'hasEnhancement':Boolean(_0x2f5163||_0x484d03),'explicitDisable':_0x466f1f==='0'||_0x466f1f===_0x98011(0x1cf)||_0x466f1f===_0x98011(0x20d),'enhancementUrl':_0x2f5163,'enhancementId':_0x484d03};}function cleanUrlParam(_0x443b51){const _0x596942=_0x52068d,_0x83eeeb=new URL(window['location']['href']);_0x83eeeb[_0x596942(0x165)][_0x596942(0x169)](_0x443b51)&&(_0x83eeeb['searchParams'][_0x596942(0x1bd)](_0x443b51),window[_0x596942(0x1b8)][_0x596942(0x15c)](null,document[_0x596942(0x1b4)],_0x83eeeb[_0x596942(0x1d4)]()));}var package_default={'name':_0x52068d(0x1ad),'version':_0x52068d(0x20e),'type':_0x52068d(0x15a),'description':'Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','license':_0x52068d(0x193),'main':'./dist/index.cjs','module':_0x52068d(0x156),'types':_0x52068d(0x21a),'exports':{'.':{'types':_0x52068d(0x21a),'import':_0x52068d(0x156),'require':_0x52068d(0x1db)},'./vite':{'types':'./dist/vite/index.d.ts','import':'./dist/vite/index.js'}},'files':[_0x52068d(0x18c),_0x52068d(0x20c),_0x52068d(0x1dc)],'bin':{'enhance-sandbox':_0x52068d(0x21b)},'scripts':{'typecheck':'tsc\x20--noEmit','dev':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','dev:build':_0x52068d(0x1ff),'dev:staging':_0x52068d(0x1ce),'dev:staging:build':_0x52068d(0x1f7),'build':_0x52068d(0x1f1),'build:release':_0x52068d(0x1d3),'version':_0x52068d(0x1a5)},'dependencies':{'commander':_0x52068d(0x19d),'zod':_0x52068d(0x19b)},'devDependencies':{'@types/node':_0x52068d(0x1a3),'javascript-obfuscator':_0x52068d(0x219),'tsup':_0x52068d(0x21d),'vite':_0x52068d(0x226)},'publishConfig':{'access':_0x52068d(0x1e4)}},DEFAULT_SERVICE_WORKER_PATH=_0x52068d(0x152),DEFAULT_RUNTIME_PATH=_0x52068d(0x15f),PACKAGE_VERSION=typeof package_default['version']==='string'?package_default[_0x52068d(0x1e1)]:'0.0.0';function normalizeAssetPath(_0x36c9c4){const _0x42c933=_0x52068d;if(!_0x36c9c4)return _0x36c9c4;if(_0x36c9c4[_0x42c933(0x1fa)](_0x42c933(0x1e8))||_0x36c9c4['startsWith'](_0x42c933(0x1fb)))return _0x36c9c4;const _0x4a1072=_0x36c9c4[_0x42c933(0x190)](/^\.\//,'');return _0x4a1072['startsWith']('/')?_0x4a1072:'/'+_0x4a1072;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x2c6c14){const _0x1f0428=_0x52068d;return Enhance[_0x1f0428(0x1ae)](_0x2c6c14);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function resolveServiceWorkerPath(){return serviceWorkerURL();}function serviceWorkerURL(){return Enhance2['serviceWorkerURL']();}function runtimeURL(){const _0x26a35f=_0x52068d;return Enhance2[_0x26a35f(0x167)]();}function _0x238f(){const _0x2fc4eb=['active','pnpm\x20version\x20patch\x20--no-git-tag-version','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','/@vite/client','\x20URL\x20params\x20parsed:','\x20overlayController\x20exists:\x20','[Enhance\x20Config]\x20Build-time\x20defaults:','17648xrJLwH','\x20BLOCKING\x20SW\x20detected:\x20','@enhance-eng/sandbox','init','default','\x20Starting\x20fresh\x20overlay\x20load...','err','\x20composeOverlayState\x20-\x20state.controlled:\x20','__enhanceReactRefreshInstalledOrigins','title','backendUrl','overlayPath','appError','history','serviceWorker','none','explicitDisable','8ycJdWI','delete',',\x20owns=','undefined','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','\x20Sending\x20customer\x20configuration...','error','waiting','controller','scope','\x20Vite\x20error\x20detected:','\x20Current\x20controller:','\x20enableViteHmr:\x20','\x20swPath:\x20',',\x20currentOptions:\x20','\x20Failed\x20to\x20unregister\x20service\x20worker:','keys','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','false','stringify','overlay','controlled','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','toString','\x20Found\x20registration:','\x20with\x20scope\x20\x27/\x27...','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','...','href','querySelector','./dist/index.cjs','enhance.config.sample.json','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','hot','\x20enhancementId:\x20','\x20enhancementUrl:\x20','version','\x20Updating\x20overlay...','\x20Failed\x20to\x20register\x20service\x20worker:','public','1112256wmdqim','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','\x20Starting\x20SW\x20registration\x20(async)...','http://','\x20Normalized\x20options:','ready','__enhanceController','__enhanceOverlay','state','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','\x20updateOverlay()\x20called','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','\x20Overlay\x20update\x20complete','callbackBypass','https://assets.enhancelabs.ai/overlay.js','injectIntoGlobalHook','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','enhance','\x20Setting\x20up\x20remote\x20HMR...','startsWith','https://','add','\x20Starting\x20overlay\x20load\x20(async)...','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','\x20SW\x20ready!\x20Active:','\x20React\x20Refresh\x20already\x20installed\x20for\x20','111LjoeAY','400wnTriC','__development','2110WNeUUL','\x20Calling\x20updateOverlay()...','info','\x20SW\x20unregistered\x20successfully','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','3214665iJaUOK','bin','off','0.3.18','/@react-refresh','update','\x20Invalid\x20React\x20Refresh\x20runtime','postMessage','__enhanceInitialized','__viteHMRLoaded','\x20Current\x20URL:\x20','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','installing','\x20init()\x20complete\x20-\x20normal\x20mode','^4.1.1','./dist/index.d.ts','bin/enhance-sandbox.js','\x20registerServiceWorker()\x20complete','^8.5.1','__vite_plugin_react_preamble_installed__','get','309415tRaJjL','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','\x20Unregistering\x20any\x20existing\x20SW...','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','permissive','\x20sendConfiguration()\x20called','^7.2.4','message','now','log','\x20loadOverlay()\x20called','enableOverlayHmr','\x20currentOptions\x20exists:\x20',',\x20expected=','/sw-enhance.js','object','state:\x20','getRegistration','./dist/index.js','enableViteHmr','https://api.enhancelabs.ai','\x20Registering\x20SW\x20at\x20','module','\x20Registration\x20returned:','replaceState','\x20doLoadOverlay()\x20starting...','position','/assets/enhance-runtime.js','[Enhance\x20Overlay]',',\x20page\x20origin:\x20','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','\x20Controller\x20state:','\x20No\x20window\x20object\x20-\x20skipping','searchParams','trim','runtimeURL','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','has','\x20loadOverlay()\x20complete','\x20ownsServiceWorker?\x20scriptURL=','\x20Current\x20controller\x20after\x20ready:','\x20state.enabled:\x20','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','warn','search','unregister','scriptURL','4630RFYdGj','\x20No\x20service\x20worker\x20active\x20to\x20configure','swPath','__enhanceOptions','includes','\x20Checking\x20for\x20blocking\x20service\x20worker...','reload','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','origin','register','\x20Enhancement\x20detection:\x20wasEnhanced=','\x20detectBlocking\x20-\x20existing\x20registration:','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','N/A','enhancementUrl','44418sBGLiH','\x20Unregistering\x20SW...','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','enabled','sw-enhance','enhance:disable','\x20overlayPath:\x20','readyState','onToggle','dist','\x20registerServiceWorker()\x20called','some','\x20Available\x20exports:','replace','\x20loadOverlay()\x20failed:','createOverlay','MIT','\x20No\x20blocking\x20SW\x20found','\x20Controller\x20created:','\x20Overlay\x20origin:\x20','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','security','options','\x20detectBlocking\x20error:','^3.22.4','\x20Sending\x20customer\x20config\x20to\x20SW:','^11.1.0','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','4670834kuQstG','\x20Service\x20workers\x20supported','location','function','^24.10.1'];_0x238f=function(){return _0x2fc4eb;};return _0x238f();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
@@ -1 +1 @@
1
- const _0x27a53e=_0x29f3;(function(_0xa7cb77,_0xe71b8){const _0x1fdec4=_0x29f3,_0x20f184=_0xa7cb77();while(!![]){try{const _0x119db2=parseInt(_0x1fdec4(0x14e))/0x1+parseInt(_0x1fdec4(0x141))/0x2*(-parseInt(_0x1fdec4(0x13a))/0x3)+parseInt(_0x1fdec4(0x150))/0x4*(parseInt(_0x1fdec4(0x131))/0x5)+parseInt(_0x1fdec4(0x169))/0x6+-parseInt(_0x1fdec4(0x16d))/0x7*(parseInt(_0x1fdec4(0x172))/0x8)+-parseInt(_0x1fdec4(0x140))/0x9+-parseInt(_0x1fdec4(0x179))/0xa*(-parseInt(_0x1fdec4(0x145))/0xb);if(_0x119db2===_0xe71b8)break;else _0x20f184['push'](_0x20f184['shift']());}catch(_0x2aad90){_0x20f184['push'](_0x20f184['shift']());}}}(_0x364c,0x6c6e1));import{relative,resolve}from'path';import{promises as _0x5802da}from'fs';import{join}from'path';function _0x364c(){const _0x20d386=['3321mGAWmd','startsWith','\x20(already\x20current)\x20[','code','\x20is\x20missing\x20a\x20non-empty\x20\x22publicDir\x22\x20string','string','6536664rNYSwB','968YnAnzq','error','0.0.0','enhance.config.json','1649615VRRqzC','digest','public','bin/enhance-sandbox.js','object','catch','Failed\x20to\x20read\x20','all','https://','373947xuOKuA','update','544AUYAOh','[enhance-sandbox]\x20','dist','^7.2.4','assets/enhance-runtime.js','skipped','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','http://','@enhance-eng/sandbox','destinationPath','parse','^4.1.1','base64','publicDir','version','utf8','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=http://localhost:8787\x20tsup\x20--watch','trim','tsc\x20--noEmit','exit','enhance.config.sample.json','status','\x20not\x20found;\x20skipping\x20asset\x20sync','sourcePath','./dist/index.cjs','1369866Rpikhk','message','pnpm\x20version\x20patch\x20--no-git-tag-version','^11.1.0','1743987BjYVpn','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','\x20has\x20an\x20invalid\x20\x22swFilename\x22;\x20expected\x20a\x20non-empty\x20string','info','^3.22.4','16QXBuRA','\x20must\x20contain\x20an\x20object','ENOENT','sha256','../dist/index.js','[enhance-sandbox]\x20Copied\x20','Invalid\x20JSON\x20in\x20','90fjFJbM','./dist/index.js','readFile','swFilename','override','copyFile','^8.5.1','MIT','copied','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','url','push','^24.10.1','[enhance-sandbox]\x20Failed\x20to\x20sync\x20assets\x20during\x20postinstall','9285QqzWGs','/assets/enhance-runtime.js','[enhance-sandbox]\x20Skipped\x20','cwd','/sw-enhance.js','./dist/vite/index.js','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','mkdir','relativeDestination'];_0x364c=function(){return _0x20d386;};return _0x364c();}var CONFIG_FILENAME=_0x27a53e(0x144);async function loadEnhanceConfig(_0x4fb751=process['cwd']()){const _0x1dbc4b=_0x27a53e,_0x2de07e=join(_0x4fb751,CONFIG_FILENAME);let _0x469064;try{_0x469064=await _0x5802da[_0x1dbc4b(0x17b)](_0x2de07e,_0x1dbc4b(0x15f));}catch(_0x5db385){if(_0x5db385[_0x1dbc4b(0x13d)]===_0x1dbc4b(0x174))return null;throw new Error(_0x1dbc4b(0x14b)+CONFIG_FILENAME+':\x20'+_0x5db385['message']);}let _0x41551a;try{_0x41551a=JSON[_0x1dbc4b(0x15a)](_0x469064);}catch(_0xf5320c){throw new Error(_0x1dbc4b(0x178)+CONFIG_FILENAME+':\x20'+_0xf5320c[_0x1dbc4b(0x16a)]);}if(!_0x41551a||typeof _0x41551a!==_0x1dbc4b(0x149))throw new Error(CONFIG_FILENAME+_0x1dbc4b(0x173));const {publicDir:_0x17c0c5,swFilename:_0x49db56}=_0x41551a;if(typeof _0x17c0c5!=='string'||_0x17c0c5[_0x1dbc4b(0x161)]()['length']===0x0)throw new Error(CONFIG_FILENAME+_0x1dbc4b(0x13e));if(_0x49db56!=null&&(typeof _0x49db56!==_0x1dbc4b(0x13f)||_0x49db56[_0x1dbc4b(0x161)]()['length']===0x0))throw new Error(CONFIG_FILENAME+_0x1dbc4b(0x16f));return{'publicDir':_0x17c0c5[_0x1dbc4b(0x161)](),'swFilename':typeof _0x49db56===_0x1dbc4b(0x13f)?_0x49db56[_0x1dbc4b(0x161)]():void 0x0};}import{promises as _0x4086b1}from'fs';import{createHash}from'crypto';import{dirname,join as _0x4bb59d}from'path';import{fileURLToPath}from'url';var package_default={'name':_0x27a53e(0x158),'version':'0.3.16','type':'module','description':_0x27a53e(0x156),'license':_0x27a53e(0x180),'main':'./dist/index.cjs','module':_0x27a53e(0x17a),'types':'./dist/index.d.ts','exports':{'.':{'types':'./dist/index.d.ts','import':'./dist/index.js','require':_0x27a53e(0x168)},'./vite':{'types':'./dist/vite/index.d.ts','import':_0x27a53e(0x136)}},'files':[_0x27a53e(0x152),'bin',_0x27a53e(0x164)],'bin':{'enhance-sandbox':_0x27a53e(0x148)},'scripts':{'typecheck':_0x27a53e(0x162),'dev':_0x27a53e(0x160),'dev:staging':_0x27a53e(0x182),'build':_0x27a53e(0x16e),'build:release':_0x27a53e(0x137),'version':_0x27a53e(0x16b)},'dependencies':{'commander':_0x27a53e(0x16c),'zod':_0x27a53e(0x171)},'devDependencies':{'@types/node':_0x27a53e(0x12f),'javascript-obfuscator':_0x27a53e(0x15b),'tsup':_0x27a53e(0x17f),'vite':_0x27a53e(0x153)},'publishConfig':{'access':_0x27a53e(0x147)}},DEFAULT_SERVICE_WORKER_PATH=_0x27a53e(0x135),DEFAULT_RUNTIME_PATH=_0x27a53e(0x132),DIST_SERVICE_WORKER_PATH='sw-enhance.js',DIST_RUNTIME_PATH=_0x27a53e(0x154),PACKAGE_VERSION=typeof package_default[_0x27a53e(0x15e)]===_0x27a53e(0x13f)?package_default[_0x27a53e(0x15e)]:_0x27a53e(0x143);function normalizeAssetPath(_0x1ee25d){const _0x51f1eb=_0x27a53e;if(!_0x1ee25d)return _0x1ee25d;if(_0x1ee25d[_0x51f1eb(0x13b)](_0x51f1eb(0x157))||_0x1ee25d[_0x51f1eb(0x13b)](_0x51f1eb(0x14d)))return _0x1ee25d;const _0x32fe05=_0x1ee25d['replace'](/^\.\//,'');return _0x32fe05['startsWith']('/')?_0x32fe05:'/'+_0x32fe05;}var distDir=dirname(fileURLToPath(new URL(_0x27a53e(0x176),import.meta[_0x27a53e(0x12d)])));async function syncAssets(_0x4f1122){const _0x143e07=_0x27a53e,_0x1da9dc=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0x4f1122[_0x143e07(0x17c)]?'./'+_0x4f1122[_0x143e07(0x17c)]:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0x5856a2=[];for(const _0x545b2e of _0x1da9dc){const _0x4cc6ce=cleanRelativePath(_0x545b2e[_0x143e07(0x17d)]??_0x545b2e['manifestPath']),_0x2d9a95=_0x4bb59d(distDir,cleanRelativePath(_0x545b2e[_0x143e07(0x167)])),_0xdcc863=_0x4bb59d(_0x4f1122[_0x143e07(0x15d)],_0x4cc6ce),[_0x5b786e,_0x124f69]=await Promise[_0x143e07(0x14c)]([readDigest(_0x2d9a95),readDigest(_0xdcc863)]);if(_0x5b786e&&_0x124f69&&_0x5b786e===_0x124f69){_0x5856a2[_0x143e07(0x12e)]({'sourcePath':_0x2d9a95,'destinationPath':_0xdcc863,'relativeDestination':_0x4cc6ce,'status':_0x143e07(0x155)});continue;}await _0x4086b1[_0x143e07(0x138)](dirname(_0xdcc863),{'recursive':!![]}),await _0x4086b1[_0x143e07(0x17e)](_0x2d9a95,_0xdcc863),_0x5856a2[_0x143e07(0x12e)]({'sourcePath':_0x2d9a95,'destinationPath':_0xdcc863,'relativeDestination':_0x4cc6ce,'status':_0x143e07(0x181)});}return _0x5856a2;}function cleanRelativePath(_0x5db03f){return _0x5db03f['replace'](/^[./]+/,'');}function _0x29f3(_0x29465e,_0x29c63a){const _0x364c87=_0x364c();return _0x29f3=function(_0x29f35d,_0x17e4d6){_0x29f35d=_0x29f35d-0x12d;let _0x330387=_0x364c87[_0x29f35d];return _0x330387;},_0x29f3(_0x29465e,_0x29c63a);}async function readDigest(_0x264044){const _0x51ea11=_0x27a53e;try{const _0x3d035c=await _0x4086b1[_0x51ea11(0x17b)](_0x264044);return createHash(_0x51ea11(0x175))[_0x51ea11(0x14f)](_0x3d035c)[_0x51ea11(0x146)](_0x51ea11(0x15c));}catch(_0x4ddc3c){if(_0x4ddc3c[_0x51ea11(0x13d)]===_0x51ea11(0x174))return null;throw _0x4ddc3c;}}async function main(){const _0x1e7d1d=_0x27a53e,_0x5e8113=await loadEnhanceConfig();if(!_0x5e8113){console[_0x1e7d1d(0x170)](_0x1e7d1d(0x151)+CONFIG_FILENAME+_0x1e7d1d(0x166));return;}const _0x2f39ec=resolve(process[_0x1e7d1d(0x134)](),_0x5e8113[_0x1e7d1d(0x15d)]),_0x1e0539=await syncAssets({'publicDir':_0x2f39ec,'swFilename':_0x5e8113[_0x1e7d1d(0x17c)]});for(const _0x52db00 of _0x1e0539){const _0x30b6d8=relative(process[_0x1e7d1d(0x134)](),_0x52db00[_0x1e7d1d(0x159)]);_0x52db00[_0x1e7d1d(0x165)]===_0x1e7d1d(0x155)?console[_0x1e7d1d(0x170)](_0x1e7d1d(0x133)+_0x52db00['relativeDestination']+_0x1e7d1d(0x13c)+_0x30b6d8+']'):console['info'](_0x1e7d1d(0x177)+_0x52db00[_0x1e7d1d(0x139)]+'\x20→\x20'+_0x30b6d8);}}main()[_0x27a53e(0x14a)](_0x1b46de=>{const _0x51f812=_0x27a53e;console[_0x51f812(0x142)](_0x51f812(0x130)),console['error'](_0x1b46de),process[_0x51f812(0x163)](0x1);});
1
+ const _0x3f0af6=_0x3eab;(function(_0x48e4e1,_0x56cabb){const _0x25a708=_0x3eab,_0x4356b1=_0x48e4e1();while(!![]){try{const _0x55f1a2=parseInt(_0x25a708(0x1c1))/0x1+parseInt(_0x25a708(0x1d0))/0x2*(parseInt(_0x25a708(0x1de))/0x3)+parseInt(_0x25a708(0x1dd))/0x4*(parseInt(_0x25a708(0x1d8))/0x5)+parseInt(_0x25a708(0x1fa))/0x6+parseInt(_0x25a708(0x1e8))/0x7*(-parseInt(_0x25a708(0x1d5))/0x8)+-parseInt(_0x25a708(0x1ff))/0x9+parseInt(_0x25a708(0x1ee))/0xa*(-parseInt(_0x25a708(0x1eb))/0xb);if(_0x55f1a2===_0x56cabb)break;else _0x4356b1['push'](_0x4356b1['shift']());}catch(_0x571d73){_0x4356b1['push'](_0x4356b1['shift']());}}}(_0x5b91,0xbab16));import{relative,resolve}from'path';function _0x3eab(_0x542201,_0x46c676){const _0x5b91ec=_0x5b91();return _0x3eab=function(_0x3eab3d,_0x471604){_0x3eab3d=_0x3eab3d-0x1b6;let _0x41b5e8=_0x5b91ec[_0x3eab3d];return _0x41b5e8;},_0x3eab(_0x542201,_0x46c676);}import{promises as _0x105c1a}from'fs';import{join}from'path';var CONFIG_FILENAME='enhance.config.json';async function loadEnhanceConfig(_0x5ee500=process['cwd']()){const _0x3d3572=_0x3eab,_0x2e5a6b=join(_0x5ee500,CONFIG_FILENAME);let _0x7e7bff;try{_0x7e7bff=await _0x105c1a['readFile'](_0x2e5a6b,_0x3d3572(0x1c0));}catch(_0x3b8afe){if(_0x3b8afe[_0x3d3572(0x1e9)]==='ENOENT')return null;throw new Error(_0x3d3572(0x1ca)+CONFIG_FILENAME+':\x20'+_0x3b8afe[_0x3d3572(0x1cc)]);}let _0x514581;try{_0x514581=JSON[_0x3d3572(0x1db)](_0x7e7bff);}catch(_0xb7f702){throw new Error(_0x3d3572(0x1d3)+CONFIG_FILENAME+':\x20'+_0xb7f702['message']);}if(!_0x514581||typeof _0x514581!=='object')throw new Error(CONFIG_FILENAME+'\x20must\x20contain\x20an\x20object');const {publicDir:_0xa66b2c,swFilename:_0x15936b}=_0x514581;if(typeof _0xa66b2c!==_0x3d3572(0x1c5)||_0xa66b2c[_0x3d3572(0x1f1)]()[_0x3d3572(0x1c3)]===0x0)throw new Error(CONFIG_FILENAME+_0x3d3572(0x1df));if(_0x15936b!=null&&(typeof _0x15936b!==_0x3d3572(0x1c5)||_0x15936b[_0x3d3572(0x1f1)]()[_0x3d3572(0x1c3)]===0x0))throw new Error(CONFIG_FILENAME+_0x3d3572(0x1c6));return{'publicDir':_0xa66b2c[_0x3d3572(0x1f1)](),'swFilename':typeof _0x15936b===_0x3d3572(0x1c5)?_0x15936b['trim']():void 0x0};}import{promises as _0x2a79cd}from'fs';import{createHash}from'crypto';import{dirname,join as _0xdbc77c}from'path';import{fileURLToPath}from'url';var package_default={'name':'@enhance-eng/sandbox','version':_0x3f0af6(0x1dc),'type':_0x3f0af6(0x1cd),'description':_0x3f0af6(0x1cb),'license':'MIT','main':_0x3f0af6(0x1f2),'module':'./dist/index.js','types':_0x3f0af6(0x1f4),'exports':{'.':{'types':_0x3f0af6(0x1f4),'import':'./dist/index.js','require':_0x3f0af6(0x1f2)},'./vite':{'types':_0x3f0af6(0x1e0),'import':_0x3f0af6(0x1c9)}},'files':[_0x3f0af6(0x1bc),_0x3f0af6(0x1f0),'enhance.config.sample.json'],'bin':{'enhance-sandbox':_0x3f0af6(0x1d2)},'scripts':{'typecheck':_0x3f0af6(0x1d6),'dev':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','dev:build':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','dev:staging':_0x3f0af6(0x1f9),'dev:staging:build':_0x3f0af6(0x1e5),'build':_0x3f0af6(0x1c4),'build:release':_0x3f0af6(0x1e4),'version':'pnpm\x20version\x20patch\x20--no-git-tag-version'},'dependencies':{'commander':_0x3f0af6(0x1e1),'zod':'^3.22.4'},'devDependencies':{'@types/node':_0x3f0af6(0x200),'javascript-obfuscator':'^4.1.1','tsup':_0x3f0af6(0x1c2),'vite':_0x3f0af6(0x1d1)},'publishConfig':{'access':'public'}},DEFAULT_SERVICE_WORKER_PATH=_0x3f0af6(0x1ba),DEFAULT_RUNTIME_PATH='/assets/enhance-runtime.js',DIST_SERVICE_WORKER_PATH=_0x3f0af6(0x1e6),DIST_RUNTIME_PATH=_0x3f0af6(0x1bd),PACKAGE_VERSION=typeof package_default['version']==='string'?package_default[_0x3f0af6(0x1fc)]:_0x3f0af6(0x1fb);function normalizeAssetPath(_0x16693b){const _0x486035=_0x3f0af6;if(!_0x16693b)return _0x16693b;if(_0x16693b[_0x486035(0x1e3)](_0x486035(0x1fe))||_0x16693b[_0x486035(0x1e3)](_0x486035(0x1f6)))return _0x16693b;const _0x3bf163=_0x16693b[_0x486035(0x1bf)](/^\.\//,'');return _0x3bf163[_0x486035(0x1e3)]('/')?_0x3bf163:'/'+_0x3bf163;}var distDir=dirname(fileURLToPath(new URL(_0x3f0af6(0x1d4),import.meta[_0x3f0af6(0x1cf)])));async function syncAssets(_0x3b66a5){const _0x2e2466=_0x3f0af6,_0x1b17e8=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0x3b66a5[_0x2e2466(0x1e2)]?'./'+_0x3b66a5['swFilename']:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0x40db8b=[];for(const _0x1c3963 of _0x1b17e8){const _0x164565=cleanRelativePath(_0x1c3963[_0x2e2466(0x1b7)]??_0x1c3963['manifestPath']),_0x377953=_0xdbc77c(distDir,cleanRelativePath(_0x1c3963['sourcePath'])),_0x1b0abb=_0xdbc77c(_0x3b66a5[_0x2e2466(0x1da)],_0x164565),[_0x15f454,_0x502bc9]=await Promise[_0x2e2466(0x1b9)]([readDigest(_0x377953),readDigest(_0x1b0abb)]);if(_0x15f454&&_0x502bc9&&_0x15f454===_0x502bc9){_0x40db8b['push']({'sourcePath':_0x377953,'destinationPath':_0x1b0abb,'relativeDestination':_0x164565,'status':_0x2e2466(0x1c7)});continue;}await _0x2a79cd[_0x2e2466(0x1ef)](dirname(_0x1b0abb),{'recursive':!![]}),await _0x2a79cd['copyFile'](_0x377953,_0x1b0abb),_0x40db8b['push']({'sourcePath':_0x377953,'destinationPath':_0x1b0abb,'relativeDestination':_0x164565,'status':'copied'});}return _0x40db8b;}function cleanRelativePath(_0x456fb6){const _0x5be8f0=_0x3f0af6;return _0x456fb6[_0x5be8f0(0x1bf)](/^[./]+/,'');}async function readDigest(_0x49c23e){const _0x58aee0=_0x3f0af6;try{const _0x40547d=await _0x2a79cd[_0x58aee0(0x1e7)](_0x49c23e);return createHash(_0x58aee0(0x1d9))['update'](_0x40547d)[_0x58aee0(0x1f3)](_0x58aee0(0x1be));}catch(_0x5503b9){if(_0x5503b9['code']===_0x58aee0(0x1ed))return null;throw _0x5503b9;}}async function main(){const _0x277951=_0x3f0af6,_0xef1dc3=await loadEnhanceConfig();if(!_0xef1dc3){console[_0x277951(0x1d7)](_0x277951(0x1bb)+CONFIG_FILENAME+_0x277951(0x1ec));return;}const _0xf40daa=resolve(process[_0x277951(0x1b6)](),_0xef1dc3[_0x277951(0x1da)]),_0x18c55e=await syncAssets({'publicDir':_0xf40daa,'swFilename':_0xef1dc3[_0x277951(0x1e2)]});for(const _0x4f0e4b of _0x18c55e){const _0x477af7=relative(process[_0x277951(0x1b6)](),_0x4f0e4b[_0x277951(0x1ea)]);_0x4f0e4b[_0x277951(0x1c8)]==='skipped'?console['info']('[enhance-sandbox]\x20Skipped\x20'+_0x4f0e4b[_0x277951(0x1ce)]+_0x277951(0x1f7)+_0x477af7+']'):console['info']('[enhance-sandbox]\x20Copied\x20'+_0x4f0e4b[_0x277951(0x1ce)]+_0x277951(0x1f8)+_0x477af7);}}main()[_0x3f0af6(0x1f5)](_0x286ba4=>{const _0x1e41c2=_0x3f0af6;console[_0x1e41c2(0x1fd)]('[enhance-sandbox]\x20Failed\x20to\x20sync\x20assets\x20during\x20postinstall'),console[_0x1e41c2(0x1fd)](_0x286ba4),process[_0x1e41c2(0x1b8)](0x1);});function _0x5b91(){const _0xdd71b2=['1357636SkUCOE','3sgMQmI','\x20is\x20missing\x20a\x20non-empty\x20\x22publicDir\x22\x20string','./dist/vite/index.d.ts','^11.1.0','swFilename','startsWith','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','sw-enhance.js','readFile','2100826ePOYSp','code','destinationPath','132ehDMzB','\x20not\x20found;\x20skipping\x20asset\x20sync','ENOENT','1536180hatVBv','mkdir','bin','trim','./dist/index.cjs','digest','./dist/index.d.ts','catch','https://','\x20(already\x20current)\x20[','\x20→\x20','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','5204340nqzudt','0.0.0','version','error','http://','5982417Szslwr','^24.10.1','cwd','override','exit','all','/sw-enhance.js','[enhance-sandbox]\x20','dist','assets/enhance-runtime.js','base64','replace','utf8','587601fGBboA','^8.5.1','length','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','string','\x20has\x20an\x20invalid\x20\x22swFilename\x22;\x20expected\x20a\x20non-empty\x20string','skipped','status','./dist/vite/index.js','Failed\x20to\x20read\x20','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','message','module','relativeDestination','url','1520628GFmLov','^7.2.4','bin/enhance-sandbox.js','Invalid\x20JSON\x20in\x20','../dist/index.js','8ovIdoF','tsc\x20--noEmit','info','20rcvMwJ','sha256','publicDir','parse','0.3.18'];_0x5b91=function(){return _0xdd71b2;};return _0x5b91();}
@@ -1 +1 @@
1
- const _0x3fccef=_0x31ea;(function(_0x3c8a2b,_0x37a1ef){const _0x2ba27b=_0x31ea,_0x1bad27=_0x3c8a2b();while(!![]){try{const _0x43b9d7=-parseInt(_0x2ba27b(0x1e3))/0x1*(parseInt(_0x2ba27b(0x11c))/0x2)+-parseInt(_0x2ba27b(0x190))/0x3*(-parseInt(_0x2ba27b(0x13c))/0x4)+parseInt(_0x2ba27b(0xb7))/0x5+parseInt(_0x2ba27b(0x1d2))/0x6+parseInt(_0x2ba27b(0x1bf))/0x7*(parseInt(_0x2ba27b(0x1c8))/0x8)+-parseInt(_0x2ba27b(0x178))/0x9+parseInt(_0x2ba27b(0x163))/0xa;if(_0x43b9d7===_0x37a1ef)break;else _0x1bad27['push'](_0x1bad27['shift']());}catch(_0x341485){_0x1bad27['push'](_0x1bad27['shift']());}}}(_0x35fb,0x6fc2c));var WORKER_MESSAGE_CONFIG=_0x3fccef(0xe0),WORKER_MESSAGE_DISABLE='enhance:disable',WORKER_MESSAGE_REQUEST_CONFIG=_0x3fccef(0x15f);function ensureLeadingSlash(_0x21a5ca){if(!_0x21a5ca['startsWith']('/'))return'/'+_0x21a5ca;return _0x21a5ca;}function appendRequestToEnhancementBase(_0x2bc306,_0x110ea1){const _0x3ebd34=_0x3fccef,_0x1a712d=new URL(_0x2bc306[_0x3ebd34(0x1d9)]()),_0x284a11=_0x1a712d[_0x3ebd34(0x1df)][_0x3ebd34(0xb6)]('/')?_0x1a712d['pathname'][_0x3ebd34(0xf8)](0x0,-0x1):_0x1a712d[_0x3ebd34(0x1df)],_0x289a3c=_0x110ea1['pathname']['startsWith']('/')?_0x110ea1[_0x3ebd34(0x1df)]:'/'+_0x110ea1[_0x3ebd34(0x1df)];return _0x1a712d[_0x3ebd34(0x1df)]=(''+_0x284a11+_0x289a3c)[_0x3ebd34(0x19e)](/\/+/g,'/'),_0x1a712d[_0x3ebd34(0xf7)]=_0x110ea1[_0x3ebd34(0xf7)],_0x1a712d['hash']='',_0x1a712d;}var LOG_PREFIX=_0x3fccef(0x18a),CONFIG_REQUEST_INTERVAL_MS=0x1f4,activeConfig=null,lastConfigRequest=0x0;function getActiveConfig(){return activeConfig;}function setActiveConfig(_0x55886a){const _0x3bb867=_0x3fccef;console[_0x3bb867(0x18c)](LOG_PREFIX+_0x3bb867(0x1de)),console['log'](LOG_PREFIX+_0x3bb867(0xd2),JSON[_0x3bb867(0x121)](_0x55886a,null,0x2));const _0x528c50=normalizeConfig(_0x55886a);return activeConfig=_0x528c50,lastConfigRequest=Date['now'](),console[_0x3bb867(0x18c)](LOG_PREFIX+'\x20Normalized\x20config\x20set'),console['log'](LOG_PREFIX+_0x3bb867(0x13f)+(_0x528c50['enhancementBase']?.[_0x3bb867(0x1d9)]()??_0x3bb867(0x107))),console['log'](LOG_PREFIX+'\x20callbackBypassNormalized:',_0x528c50[_0x3bb867(0x195)]),_0x528c50;}function clearActiveConfig(){const _0x3f2942=_0x3fccef;console[_0x3f2942(0x18c)](LOG_PREFIX+_0x3f2942(0x1b1)),activeConfig=null;}async function requestConfiguration(_0xfcddee=![]){const _0x2be6dc=_0x3fccef,_0x40d9cb=Date[_0x2be6dc(0x1d1)](),_0x59c045=_0x40d9cb-lastConfigRequest;console[_0x2be6dc(0x18c)](LOG_PREFIX+_0x2be6dc(0x1cc)+_0xfcddee+')'),console[_0x2be6dc(0x18c)](LOG_PREFIX+'\x20Time\x20since\x20last\x20request:\x20'+_0x59c045+'ms');if(!_0xfcddee&&_0x59c045<CONFIG_REQUEST_INTERVAL_MS){console[_0x2be6dc(0x18c)](LOG_PREFIX+_0x2be6dc(0x194));return;}lastConfigRequest=_0x40d9cb,console['log'](LOG_PREFIX+_0x2be6dc(0x120));const _0xc26a=await self['clients']['matchAll']({'type':'window','includeUncontrolled':!![]});console[_0x2be6dc(0x18c)](LOG_PREFIX+_0x2be6dc(0xc1)+_0xc26a[_0x2be6dc(0xc8)]+_0x2be6dc(0x134));for(let _0x2d01c4=0x0;_0x2d01c4<_0xc26a[_0x2be6dc(0xc8)];_0x2d01c4++){const _0x3fc625=_0xc26a[_0x2d01c4];console['log'](LOG_PREFIX+'\x20\x20\x20Client\x20'+_0x2d01c4+':\x20'+_0x3fc625['url']),_0x3fc625[_0x2be6dc(0x146)]({'type':WORKER_MESSAGE_REQUEST_CONFIG});}console[_0x2be6dc(0x18c)](LOG_PREFIX+_0x2be6dc(0x1a1));}function log(_0x28759a,_0x2c6ead,..._0x2820ac){const _0x351be2=_0x3fccef,_0x3eae7a='[Enhance\x20SW]';_0x28759a==='info'?console[_0x351be2(0x161)](_0x3eae7a,_0x2c6ead,..._0x2820ac):console[_0x351be2(0x133)](_0x3eae7a,_0x2c6ead,..._0x2820ac);}function _0x35fb(){const _0x181e5c=['/sockjs-node','/snowpack/hmr','replace','\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20Failed\x20to\x20bootstrap\x20runtime:\x22,\x20error);','body','\x20Config\x20request\x20sent\x20to\x20all\x20clients','\x20\x20\x20Rewriting\x20document...','none','includes','set','get','runtimeScriptPath','waitUntil','destination','\x20\x20\x20Bootstrap\x20script\x20generated\x20(','https://','startsWith','\x20MESSAGE\x20received:','object','redirect','\x20tryRestoreConfigFromUrl:\x20failed\x20to\x20parse\x20enhancementUrl','\x20clearActiveConfig()\x20called','x-enhance-routing','clients','location','/_next/webpack-hmr','addEventListener','x-enhance-document','\x20\x20\x20Skipping\x20HMR\x20bridge\x20(production\x20source)','overlay','\x20\x20\x20Not\x20HTML\x20-\x20returning\x20production\x20response\x20as-is','\x20Configuration\x20request\x20sent','\x20\x20\x20\x20var\x20shouldProxy\x20=\x20function(url,\x20protocols)\x20{','</script>','\x20\x20\x20\x20\x20-\x20has\x20enhancement\x20param:\x20','14GQDjDa','set-cookie','\x20\x20\x20securityMode:\x20','stylesheet','\x20\x20\x20\x20\x20\x20var\x20externalHosts\x20=\x20[\x22app.enhance.localhost:4450\x22,\x20\x22localhost:5173\x22];','\x20\x20\x20\x20\x20\x20//\x20ignore\x20if\x20unable\x20to\x20redefine','/webpackhotmiddleware','content-security-policy','\x5cs*=\x5cs*([\x27\x22])([^\x22\x27]+)\x5c1','1809448xHUKXm','font','follow','type','\x20requestConfiguration(force=','\x20\x20\x20\x20var\x20buildProxiedUrl\x20=\x20function(targetUrl)\x20{','method','enhancement-document','\x20ACTIVATE\x20event','now','1496130XqxLMM','\x20\x20\x20Enhancement\x20document\x20URL:\x20','\x20\x20\x20Fetching\x20from\x20enhancement...','claim','\x20\x20\x20No\x20script\x20generated\x20(missing\x20runtimePath)\x20-\x20returning\x20html\x20unchanged','\x20\x20\x20Document\x20source:\x20','test','toString','\x20skipWaiting()\x20complete','\x20shouldRouteAsset:\x20','\x20\x20\x20\x20\x20\x20if\x20(pathname\x20===\x20basePrefix\x20||\x20pathname.indexOf(basePrefix\x20+\x20\x22/\x22)\x20===\x200)\x20{','\x20\x20try\x20{','\x20setActiveConfig()\x20called','pathname','\x20\x20\x20\x20\x20-\x20has\x20overlay\x20param:\x20','Cannot\x20build\x20enhancement\x20URL\x20without\x20enhancementBase\x20configured','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Controller\x20attached\x20to\x20window.enhancePreview\x22);','288872WajpEW','overlayEnableViteHmr','set-cookie2','\x20\x20\x20\x20\x20\x20if\x20(!value)\x20return\x20[];','endsWith','2123530lLueAt','access-control-allow-credentials','/sw-enhance.js','include','\x20\x20\x20\x20if\x20(!Enhance\x20||\x20typeof\x20Enhance.init\x20!==\x20\x22function\x22)\x20{','\x5c1[^>]*>\x5cs*</script>','[Enhance\x20SW\x20Document]','\x20\x20\x20\x20\x20\x20return;','\x20\x20\x20\x20\x20\x20var\x20loweredPath\x20=\x20pathname.toLowerCase();','status','\x20Found\x20','\x20\x20\x20\x20\x20\x20var\x20isAppHost\x20=\x20url.host\x20===\x20window.location.host;','navigate','\x20\x20\x20Stripped\x20existing\x20bootstraps,\x20inserting\x20new\x20script...','overlayPath','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>','(async\x20()\x20=>\x20{','length','\x20\x20\x20mode:\x20','\x20\x20\x20\x20\x20\x20for\x20(var\x20j\x20=\x200;\x20j\x20<\x20knownPathHints.length;\x20j++)\x20{','href','\x20\x20\x20Applying\x20permissive\x20CSP...','\x20\x20\x20\x20}\x20catch\x20(error)\x20{','\x20fetchEnhancementDocument:\x20','\x20\x20\x20\x20const\x20Enhance\x20=\x20runtimeModule?.Enhance\x20??\x20runtimeModule?.default?.Enhance\x20??\x20runtimeModule?.default;','\x20chars','url','\x20Input\x20config:','\x20\x20\x20\x20\x20-\x20has\x20enhancementUrl\x20param:\x20','\x20\x20\x20\x20var\x20originalWebSocket\x20=\x20window.WebSocket;','\x20\x20\x20\x20\x20\x20','clone','\x20\x20\x20\x20var\x20enhancementBase\x20=\x20new\x20URL(','rewritten','\x20\x20\x20Not\x20OK\x20(','<script\x5cb[^>]*src\x5cs*=\x5cs*([\x27\x22])','\x20\x20\x20\x20var\x20knownProtocols\x20=\x20new\x20Set(','statusText','match','\x20\x20\x20\x20\x20\x20var\x20proxied\x20=\x20new\x20URL(enhancementBase);','})();','enhance:configure','value','push','style-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20blob:\x20data:\x20https:\x20http:','/assets/enhance-runtime.js','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20returning\x20null',',\x20destination:\x20','Enhancement\x20document\x20CORS\x20blocked','/__vite_ping','\x20buildRuntimeBootstrapScript:\x20no\x20runtimePath\x20-\x20returning\x20null','\x20\x20\x20Document\x20rewritten\x20successfully','\x20\x20\x20Document\x20fetch\x20error:','\x20No\x20enhancementUrl\x20in\x20config','cross-origin-resource-policy','\x20Calling\x20clients.claim()...','\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket,\x20\x22__enhancePatched\x22,\x20{\x20value:\x20true\x20});','cache-control','\x20\x20\x20Original\x20HTML\x20length:\x20','\x20\x20\x20Failed\x20to\x20rewrite\x20document:','\x20\x20\x20\x20\x20\x20if\x20(!isExternalHost\x20&&\x20!isAppHost)\x20return\x20false;','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(shouldProxy(resolved,\x20protocols))\x20{','\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)','font-src\x20*\x20data:','search','slice','\x20\x20\x20Rewritten\x20HTML\x20length:\x20','\x20\x20\x20\x20\x20\x20return\x20false;','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20skipping','?import','\x20Config\x20cleared','\x20\x20\x20\x20const\x20controller\x20=\x20Enhance.init(','securityMode','\x20\x20\x20\x20}','http://','\x20chars)','text/html','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhancement\x20document','x-enhance-document-source','\x20\x20\x20\x20var\x20basePrefix\x20=\x20\x22/__sbx__\x22;','null','no-store','\x20\x20\x20\x20\x20\x20window.enhancePreview\x20=\x20controller;','\x20\x20\x20NAVIGATE\x20request\x20-\x20handling\x20navigation','\x20tryRestoreConfigFromUrl:\x20found\x20enhancementUrl=','\x20\x20\x20Skipping\x20runtime\x20bootstrap\x20injection','\x20Requesting\x20configuration\x20from\x20clients...','error','\x20for\x20','Enhancement\x20fetch\x20failed','delete','host','\x20\x20}\x20catch\x20(error)\x20{','\x20\x20\x20HTML\x20response\x20-\x20processing...','sharedworker','$&\x0a','image','\x20\x20\x20Response:\x20','x-enhance-enhancement','modulepreload',')\x20-\x20returning\x20null','4qrtMgO','fetch','\x20\x20\x20\x20\x20\x20//\x20Always\x20use\x20enhancementBase\x20for\x20HMR\x20WebSocket\x20proxying','\x20\x20\x20BYPASS:\x20','\x20Fetching\x20all\x20window\x20clients...','stringify','install','\x20\x20\x20\x20\x20-\x20source\x20===\x20enhancement:\x20','hit','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;','/parcel-hmr','\x20\x20\x20\x20var\x20toArray\x20=\x20function(value)\x20{','\x20\x20\x20Fetching\x20production\x20response...','text','\x20\x20\x20\x20\x20\x20proxied.search\x20=\x20targetUrl.search;','\x20\x20\x20Checking\x20for\x20enhancement\x20document...','src','headers','\x20\x20\x20\x20var\x20EnhancedWebSocket\x20=\x20function(url,\x20protocols)\x20{','\x20matches\x20callbackBypass','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20rewritten\x20=\x20buildProxiedUrl(resolved);','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20module\x20loaded:\x22,\x20Object.keys(runtimeModule));','\x5c$&','debug','\x20client(s)','permissive','/__vite/client','\x20\x20\x20Not\x20routing\x20asset\x20(not\x20routable\x20or\x20not\x20same-origin)','\x20\x20\x20\x20};','\x20\x20\x20\x20var\x20knownPathHints\x20=\x20','GET','/__snowpack__','172BcUONY','\x20\x20\x20Enhancement\x20HIT\x20for\x20','\x20\x20\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket.prototype,\x20\x22constructor\x22,\x20{\x20value:\x20EnhancedWebSocket\x20});','\x20enhancementBase:\x20','\x20Calling\x20skipWaiting()...','\x20\x20\x20\x20\x20\x20for\x20(var\x20i\x20=\x200;\x20i\x20<\x20protoList.length;\x20i++)\x20{','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Starting\x20runtime\x20bootstrap...\x22);','\x0a</body>','\x20Unknown\x20message\x20type:\x20','toISOString','postMessage','img-src\x20*\x20data:\x20blob:','\x20\x20\x20shouldInjectOverlay:\x20','\x20\x20\x20\x20Object.setPrototypeOf(EnhancedWebSocket,\x20originalWebSocket);','\x20\x20\x20\x20\x20\x20return\x20Array.isArray(value)\x20?\x20value\x20:\x20[value];','\x20-\x20falling\x20back\x20to\x20production','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Bootstrap\x20complete\x22);','\x20\x20\x20\x20\x20\x20var\x20isExternalHost\x20=\x20externalHosts.includes(url.host);','full','join','\x20\x20\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20No\x20Enhance.init\x20export\x20found!\x22);','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20path:\x22,\x20runtimePath);','\x20\x20\x20\x20\x20\x20return\x20proxied;','/vite/client','\x20\x20\x20Not\x20HTML\x20response\x20-\x20returning\x20null','message','\x20\x20\x20Script\x20inserted\x20into\x20document','\x20\x20\x20Injecting\x20runtime\x20bootstrap...','\x20fetchFromEnhancement:\x20','vite-hmr','\x20\x20\x20\x20\x20\x20\x20\x20}','has','<script\x20data-enhance-hmr-bridge>','config','\x20Bootstrap\x20options:','enhance:request-config','\x20handleNavigationRequest:\x20','info','content-type','954720bGiQuu','backendUrl','\x0a</head>','enhancementUrl','\x20\x20\x20NO\x20CONFIG\x20-\x20requesting\x20config\x20and\x20passing\x20through','[Enhance\x20SW\x20Bootstrap]','https://assets.enhancelabs.ai/overlay.js','HEAD','\x20\x20\x20\x20if\x20(!originalWebSocket\x20||\x20originalWebSocket.__enhancePatched)\x20{','trim','style',',\x20type:\x20','script-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20\x27unsafe-eval\x27\x20blob:\x20data:\x20https:\x20http:','\x20Config\x20data:','cors','callbackBypass','\x20clients.claim()\x20complete','\x20\x20\x20\x20\x20\x20var\x20pathname\x20=\x20url.pathname\x20||\x20\x22/\x22;','enhancement','some','\x20\x20\x20Production\x20response:\x20','5519547nJnnPl','enhancementBase','\x20\x20\x20Injecting\x20HMR\x20bridge\x20(enhancement\x20source)...','origin','\x20\x20\x20Not\x20handling\x20(method\x20not\x20GET/HEAD)','\x20FETCH:\x20','\x20\x20\x20\x20\x20\x20var\x20protoList\x20=\x20toArray(protocols);','access-control-expose-headers','\x20INSTALL\x20event',',\x20null,\x202));','Enhancement\x20document\x20miss\x20','\x20\x20\x20Fetching\x20enhancement\x20document...','toLowerCase','opaque','\x20\x20\x20enhancementUrl\x20in\x20config:\x20','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Calling\x20Enhance.init()\x20with\x20options:\x22,\x20JSON.stringify(','\x20Invalid\x20message\x20data\x20-\x20ignoring','map','[Enhance\x20SW\x20Config]','\x20Service\x20Worker\x20script\x20loaded\x20at\x20','log','\x20\x20\x20\x20\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20fallback\x22,\x20error);','searchParams','\x20\x20\x20\x20\x20\x20}','29784gdwFgc','\x20\x20\x20Enhancement\x20URL:\x20','Enhancement\x20CORS\x20blocked','\x20\x20\x20overlayPath:\x20','\x20Throttled\x20-\x20not\x20requesting','callbackBypassNormalized','\x20\x20\x20Content-Type:\x20','[Enhance\x20SW\x20Routing]','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(rewritten.toString(),\x20protocols);','add','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(typeof\x20proto\x20===\x20\x22string\x22\x20&&\x20knownProtocols.has(proto.toLowerCase()))\x20{','connect-src\x20*'];_0x35fb=function(){return _0x181e5c;};return _0x35fb();}function normalizeConfig(_0x2ef8a7){const _0xee6dea=_0x3fccef;console['log'](LOG_PREFIX+'\x20normalizeConfig()\x20called');let _0x35a4e9=null;if(_0x2ef8a7[_0xee6dea(0x166)]&&_0x2ef8a7['enhancementUrl'][_0xee6dea(0xc8)]>0x0)try{_0x35a4e9=new URL(_0x2ef8a7[_0xee6dea(0x166)]),console[_0xee6dea(0x18c)](LOG_PREFIX+'\x20Parsed\x20enhancementUrl:\x20'+_0x35a4e9['toString']());}catch(_0x4e28fc){console[_0xee6dea(0x10e)](LOG_PREFIX+'\x20Failed\x20to\x20parse\x20enhancementUrl\x20\x22'+_0x2ef8a7[_0xee6dea(0x166)]+'\x22:',_0x4e28fc);}else console[_0xee6dea(0x18c)](LOG_PREFIX+_0xee6dea(0xec));const _0x45af83=(_0x2ef8a7[_0xee6dea(0x172)]??[])[_0xee6dea(0x189)](_0x278f2b=>ensureLeadingSlash(_0x278f2b));return{..._0x2ef8a7,'enhancementBase':_0x35a4e9,'callbackBypassNormalized':_0x45af83};}var LOG_PREFIX2=_0x3fccef(0x197),ROUTABLE_DESTINATIONS=new Set(['script',_0x3fccef(0x16d),_0x3fccef(0x1c9),_0x3fccef(0x117),'worker',_0x3fccef(0x115),_0x3fccef(0x11a)]);function shouldHandleRequest(_0x3e886f){const _0x529204=_0x3fccef,_0x19bca1=_0x3e886f[_0x529204(0x1ce)]===_0x529204(0x13a)||_0x3e886f[_0x529204(0x1ce)]===_0x529204(0x16a);return _0x19bca1;}function shouldBypass(_0x3c8e29,_0x642617){const _0x3d2897=_0x3fccef,_0x3f6a36=ensureLeadingSlash(_0x642617),_0x3e4004=_0x3c8e29[_0x3d2897(0x195)][_0x3d2897(0x176)](_0x300f7d=>_0x3f6a36[_0x3d2897(0x1ac)](_0x300f7d));return _0x3e4004;}function shouldRouteAsset(_0x5d315d,_0x5c40ad,_0x502c95){const _0xd7a7eb=_0x3fccef,_0xce4814=_0x5c40ad[_0xd7a7eb(0x1a9)];if(!_0xce4814||!ROUTABLE_DESTINATIONS[_0xd7a7eb(0x15b)](_0xce4814))return![];if(isOverlayAsset(_0x5d315d,_0x502c95))return console['log'](LOG_PREFIX2+_0xd7a7eb(0x1db)+_0x502c95[_0xd7a7eb(0x1df)]+'\x20is\x20overlay\x20asset\x20-\x20not\x20routing'),![];if(isRuntimeAsset(_0x5d315d,_0x502c95))return console['log'](LOG_PREFIX2+_0xd7a7eb(0x1db)+_0x502c95[_0xd7a7eb(0x1df)]+'\x20is\x20runtime\x20asset\x20-\x20not\x20routing'),![];if(_0x502c95[_0xd7a7eb(0x17b)]!==self[_0xd7a7eb(0x1b4)][_0xd7a7eb(0x17b)])return![];return!![];}async function fetchFromEnhancement(_0x42b6b7,_0xbe4197,_0x4d077e){const _0xcfe292=_0x3fccef;console[_0xcfe292(0x18c)](LOG_PREFIX2+_0xcfe292(0x158)+_0x4d077e[_0xcfe292(0x1df)]);if(!_0x42b6b7[_0xcfe292(0x179)])return console[_0xcfe292(0x18c)](LOG_PREFIX2+_0xcfe292(0xfb)),null;const _0x448038=buildEnhancementUrl(_0x42b6b7,_0x4d077e);console[_0xcfe292(0x18c)](LOG_PREFIX2+_0xcfe292(0x191)+_0x448038[_0xcfe292(0x1d9)]());const _0xc0e9bf=new Headers(_0xbe4197[_0xcfe292(0x12d)]);_0xc0e9bf[_0xcfe292(0x1a5)](_0xcfe292(0x1b2),_0xcfe292(0x175)),_0xc0e9bf[_0xcfe292(0x111)](_0xcfe292(0x112));const _0x5a7f39=new Request(_0x448038[_0xcfe292(0x1d9)](),{'method':_0xbe4197['method'],'headers':_0xc0e9bf,'credentials':_0xcfe292(0xba),'redirect':_0xbe4197[_0xcfe292(0x1af)],'cache':_0xcfe292(0x108),'mode':_0xcfe292(0x171)});try{console[_0xcfe292(0x18c)](LOG_PREFIX2+_0xcfe292(0x1d4));const _0x1f8990=await fetch(_0x5a7f39);console[_0xcfe292(0x18c)](LOG_PREFIX2+_0xcfe292(0x118)+_0x1f8990[_0xcfe292(0xc0)]+'\x20'+_0x1f8990[_0xcfe292(0xdc)]+',\x20type:\x20'+_0x1f8990[_0xcfe292(0x1cb)]);if(_0x1f8990[_0xcfe292(0x1cb)]==='opaque')return console['log'](LOG_PREFIX2+_0xcfe292(0xf5)),log(_0xcfe292(0x161),_0xcfe292(0x192),_0x448038[_0xcfe292(0x1d9)]()),null;if(!_0x1f8990['ok'])return console[_0xcfe292(0x18c)](LOG_PREFIX2+_0xcfe292(0xd9)+_0x1f8990[_0xcfe292(0xc0)]+_0xcfe292(0x11b)),log('debug','Enhancement\x20miss\x20'+_0x1f8990['status']+_0xcfe292(0x10f)+_0x448038[_0xcfe292(0x1df)]),null;return console[_0xcfe292(0x18c)](LOG_PREFIX2+'\x20\x20\x20SUCCESS\x20-\x20returning\x20enhanced\x20response'),toSameOriginResponse(_0x1f8990,_0xbe4197[_0xcfe292(0x1ce)]);}catch(_0x1958d8){return console[_0xcfe292(0x10e)](LOG_PREFIX2+'\x20\x20\x20Fetch\x20error:',_0x1958d8),log('info',_0xcfe292(0x110),_0x1958d8),null;}}async function fetchEnhancementDocument(_0x627647,_0x5d1d4d){const _0x2fefc5=_0x3fccef,_0x5f468e=new URL(_0x5d1d4d[_0x2fefc5(0xd1)]);console[_0x2fefc5(0x18c)](LOG_PREFIX2+_0x2fefc5(0xce)+_0x5f468e['pathname']+_0x5f468e[_0x2fefc5(0xf7)]);if(!_0x627647[_0x2fefc5(0x179)])return console['log'](LOG_PREFIX2+_0x2fefc5(0xe5)),null;const _0x35159e=buildEnhancementUrl(_0x627647,_0x5f468e);console[_0x2fefc5(0x18c)](LOG_PREFIX2+_0x2fefc5(0x1d3)+_0x35159e[_0x2fefc5(0x1d9)]());const _0x8bd122=new Headers(_0x5d1d4d['headers']);_0x8bd122[_0x2fefc5(0x1a5)](_0x2fefc5(0x1b2),_0x2fefc5(0x1cf)),_0x8bd122[_0x2fefc5(0x111)](_0x2fefc5(0x112)),_0x8bd122[_0x2fefc5(0x111)]('content-length');const _0x7d5c5d=new Request(_0x35159e[_0x2fefc5(0x1d9)](),{'method':'GET','headers':_0x8bd122,'credentials':_0x2fefc5(0xba),'redirect':_0x2fefc5(0x1ca),'cache':_0x2fefc5(0x108),'mode':'cors'});try{console[_0x2fefc5(0x18c)](LOG_PREFIX2+_0x2fefc5(0x183));const _0x5e370e=await fetch(_0x7d5c5d);console[_0x2fefc5(0x18c)](LOG_PREFIX2+_0x2fefc5(0x118)+_0x5e370e[_0x2fefc5(0xc0)]+'\x20'+_0x5e370e[_0x2fefc5(0xdc)]+_0x2fefc5(0x16e)+_0x5e370e[_0x2fefc5(0x1cb)]),console['log'](LOG_PREFIX2+_0x2fefc5(0x196)+_0x5e370e[_0x2fefc5(0x12d)][_0x2fefc5(0x1a6)]('content-type'));if(_0x5e370e[_0x2fefc5(0x1cb)]===_0x2fefc5(0x185))return console['log'](LOG_PREFIX2+_0x2fefc5(0xf5)),log('info',_0x2fefc5(0xe7),_0x35159e[_0x2fefc5(0x1d9)]()),null;if(!_0x5e370e['ok'])return console[_0x2fefc5(0x18c)](LOG_PREFIX2+_0x2fefc5(0xd9)+_0x5e370e[_0x2fefc5(0xc0)]+_0x2fefc5(0x11b)),log(_0x2fefc5(0x133),_0x2fefc5(0x182)+_0x5e370e['status']+_0x2fefc5(0x10f)+_0x35159e[_0x2fefc5(0x1df)]),null;if(!isHtmlResponse(_0x5e370e))return console[_0x2fefc5(0x18c)](LOG_PREFIX2+_0x2fefc5(0x154)),null;return console[_0x2fefc5(0x18c)](LOG_PREFIX2+_0x2fefc5(0x104)),toSameOriginResponse(_0x5e370e,_0x2fefc5(0x13a));}catch(_0x54cac9){return console[_0x2fefc5(0x10e)](LOG_PREFIX2+_0x2fefc5(0xeb),_0x54cac9),log(_0x2fefc5(0x161),'Enhancement\x20document\x20fetch\x20failed',_0x54cac9),null;}}function buildEnhancementUrl(_0x582cb4,_0x31f248){const _0x441a65=_0x3fccef;if(!_0x582cb4[_0x441a65(0x179)])throw new Error(_0x441a65(0x1e1));return appendRequestToEnhancementBase(_0x582cb4[_0x441a65(0x179)],_0x31f248);}function toSameOriginResponse(_0x15742c,_0x2c8e00){const _0x5e0371=_0x3fccef,_0x3fcda0=_0x15742c[_0x5e0371(0xd6)](),_0x6d6654=new Headers(_0x3fcda0[_0x5e0371(0x12d)]);_0x6d6654['delete']('access-control-allow-origin'),_0x6d6654['delete'](_0x5e0371(0xb8)),_0x6d6654[_0x5e0371(0x111)](_0x5e0371(0x17f)),_0x6d6654[_0x5e0371(0x1a5)](_0x5e0371(0xf0),_0x5e0371(0x108)),_0x6d6654[_0x5e0371(0x1a5)](_0x5e0371(0x119),_0x5e0371(0x124)),stripCookies(_0x6d6654);const _0x22e1da=_0x2c8e00==='HEAD'?null:_0x3fcda0[_0x5e0371(0x1a0)];return new Response(_0x22e1da,{'status':_0x3fcda0[_0x5e0371(0xc0)],'statusText':_0x3fcda0['statusText'],'headers':_0x6d6654});}function isHtmlResponse(_0x228a8f){const _0x4fb26b=_0x3fccef,_0x5eabd7=_0x228a8f[_0x4fb26b(0x12d)][_0x4fb26b(0x1a6)](_0x4fb26b(0x162));return _0x5eabd7!=null&&_0x5eabd7[_0x4fb26b(0x1a4)](_0x4fb26b(0x103));}function isOverlayAsset(_0x430a03,_0x47ee57){return matchesOverlayAsset(_0x47ee57,_0x430a03['overlayPath']);}function isRuntimeAsset(_0x1764f7,_0x268d9d){const _0x50d5c2=_0x3fccef;return matchesRuntimeAsset(_0x268d9d,_0x1764f7[_0x50d5c2(0x1a7)]);}function matchesOverlayAsset(_0x2a6d2d,_0x30da64){const _0x61bea3=_0x3fccef;if(!_0x30da64)return![];if(_0x30da64[_0x61bea3(0x1ac)](_0x61bea3(0x101))||_0x30da64[_0x61bea3(0x1ac)](_0x61bea3(0x1ab)))return _0x2a6d2d['href']===_0x30da64;const _0x2c93a4=normalizeAssetPathForDocument(_0x30da64);if(!_0x2c93a4)return![];const _0x2d4299=''+_0x2a6d2d['pathname']+_0x2a6d2d[_0x61bea3(0xf7)];if(_0x2d4299===_0x2c93a4)return!![];if(_0x2a6d2d[_0x61bea3(0xf7)]===_0x61bea3(0xfc))return _0x2a6d2d['pathname']===_0x2c93a4;return![];}function matchesRuntimeAsset(_0x567a1b,_0x4e046d){const _0x3802f5=_0x3fccef;if(!_0x4e046d)return![];if(_0x4e046d[_0x3802f5(0x1ac)]('http://')||_0x4e046d[_0x3802f5(0x1ac)](_0x3802f5(0x1ab)))return _0x567a1b[_0x3802f5(0xcb)]===_0x4e046d;const _0x1071b5=normalizeAssetPathForDocument(_0x4e046d);if(!_0x1071b5)return![];const _0x10c9f8=''+_0x567a1b[_0x3802f5(0x1df)]+_0x567a1b['search'];return _0x10c9f8===_0x1071b5;}function normalizeAssetPathForDocument(_0x123fa4){const _0x41bb58=_0x3fccef;if(!_0x123fa4)return _0x123fa4;if(_0x123fa4['startsWith'](_0x41bb58(0x101))||_0x123fa4['startsWith']('https://'))return _0x123fa4;const _0x12a52a=_0x123fa4[_0x41bb58(0x19e)](/^\.\//,'');if(_0x12a52a[_0x41bb58(0x1ac)]('/'))return _0x12a52a;return'/'+_0x12a52a;}function stripCookies(_0x128cec){const _0xf796a6=_0x3fccef;_0x128cec[_0xf796a6(0x111)](_0xf796a6(0x1c0)),_0x128cec[_0xf796a6(0x111)](_0xf796a6(0x1e5));}function buildPreviewCsp(_0x59df7a){const _0x3412f1=_0x3fccef,_0xbbde29=['default-src\x20\x27self\x27\x20blob:\x20data:',_0x3412f1(0x16f),_0x3412f1(0xe3),_0x3412f1(0x147),_0x3412f1(0xf6),_0x3412f1(0x19b),'media-src\x20*\x20data:\x20blob:','worker-src\x20\x27self\x27\x20blob:','object-src\x20\x27none\x27'],_0x129f97=extractFrameAncestors(_0x59df7a);return _0x129f97&&_0xbbde29[_0x3412f1(0xe2)](_0x129f97),_0xbbde29[_0x3412f1(0x14f)](';\x20');}function stripCookies2(_0x5b3a20){const _0x281325=_0x3fccef;_0x5b3a20[_0x281325(0x111)](_0x281325(0x1c0)),_0x5b3a20['delete']('set-cookie2');}function extractFrameAncestors(_0x165834){const _0x68396b=_0x3fccef;if(!_0x165834)return null;const _0x2a92e5=_0x165834[_0x68396b(0xdd)](/frame-ancestors\s+([^;]+)/i);if(!_0x2a92e5)return null;return'frame-ancestors\x20'+_0x2a92e5[0x1][_0x68396b(0x16c)]();}function insertScript(_0x2b271c,_0x3a5263){const _0x12d142=_0x3fccef;if(/<head[^>]*>/i[_0x12d142(0x1d8)](_0x2b271c)){const _0x30b041=_0x2b271c[_0x12d142(0xdd)](/<head[^>]*>/i);if(_0x30b041){const _0x578cb5=_0x30b041[0x0];return _0x2b271c[_0x12d142(0x19e)](_0x578cb5,_0x578cb5+'\x0a'+_0x3a5263);}}if(/<\/head>/i[_0x12d142(0x1d8)](_0x2b271c))return _0x2b271c[_0x12d142(0x19e)](/<\/head>/i,_0x3a5263+_0x12d142(0x165));if(/<body\b[^>]*>/i[_0x12d142(0x1d8)](_0x2b271c))return _0x2b271c[_0x12d142(0x19e)](/<body\b[^>]*>/i,_0x12d142(0x116)+_0x3a5263);if(/<\/body>/i[_0x12d142(0x1d8)](_0x2b271c))return _0x2b271c[_0x12d142(0x19e)](/<\/body>/i,_0x3a5263+_0x12d142(0x143));return _0x3a5263+'\x0a'+_0x2b271c;}var DEFAULT_HMR_PROTOCOLS=[_0x3fccef(0x159)],DEFAULT_HMR_PATH_HINTS=['/@vite/client',_0x3fccef(0x136),_0x3fccef(0x153),_0x3fccef(0xe8),_0x3fccef(0x19c),'/webpack-dev-server','/webpack-hmr',_0x3fccef(0x1c5),'/webpack-hot-middleware','/__webpack_hmr',_0x3fccef(0x1b5),_0x3fccef(0x126),'/__parcel_hmr',_0x3fccef(0x13b),_0x3fccef(0x19d)];function injectHmrBridge(_0x5168b1,_0x3840c3){const _0x54e098=buildHmrBridgeScript(_0x5168b1);if(!_0x54e098)return _0x3840c3;return insertScript(_0x3840c3,_0x54e098);}function _0x31ea(_0x3447da,_0x3cfa4a){const _0x35fb0b=_0x35fb();return _0x31ea=function(_0x31eadf,_0x31960c){_0x31eadf=_0x31eadf-0xb5;let _0x5630c1=_0x35fb0b[_0x31eadf];return _0x5630c1;},_0x31ea(_0x3447da,_0x3cfa4a);}function buildHmrBridgeScript(_0x322ba7){const _0x15613a=_0x3fccef;if(!_0x322ba7[_0x15613a(0x179)])return null;const _0x23a709=_0x322ba7[_0x15613a(0x179)][_0x15613a(0x1d9)](),_0x2d4433=toLowerCaseUnique(DEFAULT_HMR_PROTOCOLS),_0x8c81d0=toLowerCaseUnique(DEFAULT_HMR_PATH_HINTS),_0x8cffa4=[_0x15613a(0x15c),'(function(){','\x20\x20try\x20{',_0x15613a(0xd7)+JSON['stringify'](_0x23a709)+');',_0x15613a(0xd4),_0x15613a(0x16b),_0x15613a(0xbe),_0x15613a(0x100),_0x15613a(0xdb)+JSON[_0x15613a(0x121)](_0x2d4433)+');',_0x15613a(0x139)+JSON[_0x15613a(0x121)](_0x8c81d0)+';',_0x15613a(0x106),_0x15613a(0x127),_0x15613a(0xb5),_0x15613a(0x14a),_0x15613a(0x138),_0x15613a(0x1bc),'\x20\x20\x20\x20\x20\x20//\x20Allow\x20proxying\x20for\x20specific\x20external\x20hosts',_0x15613a(0x1c3),_0x15613a(0x14d),_0x15613a(0xc2),_0x15613a(0xd5),_0x15613a(0xf3),_0x15613a(0xd5),_0x15613a(0x174),_0x15613a(0x1dc),'\x20\x20\x20\x20\x20\x20\x20\x20return\x20false;',_0x15613a(0x18f),_0x15613a(0x17e),_0x15613a(0x141),'\x20\x20\x20\x20\x20\x20\x20\x20var\x20proto\x20=\x20protoList[i];',_0x15613a(0x19a),_0x15613a(0x125),_0x15613a(0x15a),'\x20\x20\x20\x20\x20\x20}',_0x15613a(0xbf),_0x15613a(0xca),'\x20\x20\x20\x20\x20\x20\x20\x20if\x20(loweredPath.indexOf(knownPathHints[j])\x20!==\x20-1)\x20{','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;',_0x15613a(0x15a),_0x15613a(0x18f),_0x15613a(0xfa),_0x15613a(0x138),_0x15613a(0x1cd),_0x15613a(0x11e),_0x15613a(0xde),_0x15613a(0x12a),'\x20\x20\x20\x20\x20\x20proxied.hash\x20=\x20\x22\x22;',_0x15613a(0x152),_0x15613a(0x138),_0x15613a(0x12e),'\x20\x20\x20\x20\x20\x20try\x20{','\x20\x20\x20\x20\x20\x20\x20\x20var\x20resolved\x20=\x20url\x20instanceof\x20URL\x20?\x20url\x20:\x20new\x20URL(String(url),\x20window.location.href);',_0x15613a(0xf4),_0x15613a(0x130),_0x15613a(0x198),'\x20\x20\x20\x20\x20\x20\x20\x20}','\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{',_0x15613a(0x18d),'\x20\x20\x20\x20\x20\x20}','\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(url,\x20protocols);',_0x15613a(0x138),'\x20\x20\x20\x20Object.assign(EnhancedWebSocket,\x20originalWebSocket);','\x20\x20\x20\x20EnhancedWebSocket.prototype\x20=\x20originalWebSocket.prototype;',_0x15613a(0x149),'\x20\x20\x20\x20try\x20{',_0x15613a(0x13e),_0x15613a(0xcd),_0x15613a(0x1c4),_0x15613a(0x100),_0x15613a(0xef),'\x20\x20\x20\x20window.WebSocket\x20=\x20EnhancedWebSocket;',_0x15613a(0x113),'\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20unavailable\x22,\x20error);','\x20\x20}',_0x15613a(0xdf),_0x15613a(0x1bd)];return _0x8cffa4[_0x15613a(0x14f)]('\x0a');}function toLowerCaseUnique(_0x545b26){const _0x4e9597=_0x3fccef,_0x13f9a0=new Set(),_0x1af3ae=[];for(const _0x2c8e8b of _0x545b26){const _0x1a6cc8=_0x2c8e8b[_0x4e9597(0x184)]();if(_0x13f9a0['has'](_0x1a6cc8))continue;_0x13f9a0[_0x4e9597(0x199)](_0x1a6cc8),_0x1af3ae[_0x4e9597(0xe2)](_0x1a6cc8);}return _0x1af3ae;}var LOG_PREFIX3=_0x3fccef(0x168);function injectRuntimeBootstrap(_0xcd035b,_0x36cbcb){const _0x16c992=_0x3fccef;console['log'](LOG_PREFIX3+'\x20injectRuntimeBootstrap()\x20called'),console[_0x16c992(0x18c)](LOG_PREFIX3+'\x20\x20\x20runtimeScriptPath:\x20'+_0xcd035b[_0x16c992(0x1a7)]),console[_0x16c992(0x18c)](LOG_PREFIX3+_0x16c992(0x193)+_0xcd035b[_0x16c992(0xc5)]);const _0x1d6521=buildRuntimeBootstrapScript(_0xcd035b);if(!_0x1d6521)return console[_0x16c992(0x18c)](LOG_PREFIX3+_0x16c992(0x1d6)),_0x36cbcb;console['log'](LOG_PREFIX3+_0x16c992(0x1aa)+_0x1d6521[_0x16c992(0xc8)]+_0x16c992(0x102));const _0x4db5f1=stripExistingRuntimeBootstraps(_0x36cbcb,_0xcd035b[_0x16c992(0x1a7)]);console[_0x16c992(0x18c)](LOG_PREFIX3+_0x16c992(0xc4));const _0x1c25b1=insertScript(_0x4db5f1,_0x1d6521);return console[_0x16c992(0x18c)](LOG_PREFIX3+_0x16c992(0x156)),_0x1c25b1;}function buildRuntimeBootstrapScript(_0x28ea4f){const _0x3cfda4=_0x3fccef,_0x35d006=_0x28ea4f[_0x3cfda4(0x1a7)];if(!_0x35d006)return console[_0x3cfda4(0x18c)](LOG_PREFIX3+_0x3cfda4(0xe9)),null;const _0x51fe8a=buildRuntimeBootstrapOptions(_0x28ea4f);console[_0x3cfda4(0x18c)](LOG_PREFIX3+_0x3cfda4(0x15e),JSON[_0x3cfda4(0x121)](_0x51fe8a,null,0x2));const _0x5b23fd=serializeForScript(_0x51fe8a),_0x495767=JSON['stringify'](_0x35d006),_0x5c97bf=[_0x3cfda4(0xc6),_0x3cfda4(0xc7),_0x3cfda4(0x1dd),'\x20\x20\x20\x20const\x20runtimePath\x20=\x20'+_0x495767+';',_0x3cfda4(0x142),_0x3cfda4(0x151),'\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Current\x20URL:\x22,\x20window.location.href);','\x20\x20\x20\x20const\x20runtimeModule\x20=\x20await\x20import(runtimePath);',_0x3cfda4(0x131),_0x3cfda4(0xcf),_0x3cfda4(0xbb),_0x3cfda4(0x150),_0x3cfda4(0xbe),'\x20\x20\x20\x20}',_0x3cfda4(0x187)+_0x5b23fd+_0x3cfda4(0x181),_0x3cfda4(0xfe)+_0x5b23fd+');','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Enhance\x20controller\x20created:\x22,\x20controller);','\x20\x20\x20\x20if\x20(typeof\x20window\x20!==\x20\x22undefined\x22)\x20{',_0x3cfda4(0x109),_0x3cfda4(0x1e2),_0x3cfda4(0x100),_0x3cfda4(0x14c),_0x3cfda4(0x113),_0x3cfda4(0x19f),'\x20\x20}',_0x3cfda4(0xdf),'</script>'];return _0x5c97bf['join']('\x0a');}function buildRuntimeBootstrapOptions(_0x55454c){const _0x502f3b=_0x3fccef,_0x447434={'callbackBypass':_0x55454c[_0x502f3b(0x172)],'__development':{'enableOverlayHmr':_0x55454c[_0x502f3b(0x1e4)],'overlayPath':_0x55454c[_0x502f3b(0xc5)],'security':_0x55454c[_0x502f3b(0xff)],'backendUrl':_0x55454c[_0x502f3b(0x164)]}};return _0x447434;}function serializeForScript(_0x4a3237){const _0x363c84=_0x3fccef;return JSON[_0x363c84(0x121)](_0x4a3237)[_0x363c84(0x19e)](/</g,'\x5cu003c')[_0x363c84(0x19e)](/>/g,'\x5cu003e');}function stripExistingRuntimeBootstraps(_0x2f042c,_0x1099d7){const _0x66bdd7=_0x3fccef,_0x4fbeeb=/<script\b[^>]*data-enhance-runtime-bootstrap[^>]*>[\s\S]*?<\/script>/gi;let _0x4361a5=_0x2f042c[_0x66bdd7(0x19e)](_0x4fbeeb,'');if(_0x1099d7){const _0x4fb23b=escapeRegExp(_0x1099d7),_0x593a5b=new RegExp(_0x66bdd7(0xda)+_0x4fb23b+_0x66bdd7(0xbc),'gi');_0x4361a5=_0x4361a5['replace'](_0x593a5b,'');}return _0x4361a5;}function escapeRegExp(_0xf85174){const _0x1178f6=_0x3fccef;return _0xf85174[_0x1178f6(0x19e)](/[-/\\^$*+?.()|[\]{}]/g,_0x1178f6(0x132));}function rewriteEntryReferences(_0xd26740,_0x33993e){const _0x527de6=_0x3fccef,_0x23bd45=_0x3077de=>rewriteScriptTag(_0xd26740,_0x3077de),_0x22de48=_0x567d03=>rewriteLinkTag(_0xd26740,_0x567d03);return _0x33993e[_0x527de6(0x19e)](/<script\b[^>]*>/gi,_0x23bd45)[_0x527de6(0x19e)](/<link\b[^>]*>/gi,_0x22de48);}function stripSri(_0x57e0ba){const _0x568f9f=_0x3fccef;return _0x57e0ba[_0x568f9f(0x19e)](/\s+integrity\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,'');}function rewriteScriptTag(_0x2cdb71,_0x4395f9){const _0x34cb39=_0x3fccef,_0x157d93=extractAttribute(_0x4395f9,_0x34cb39(0x12c));if(!_0x157d93)return _0x4395f9;const _0x28512e=normalizeAssetReference(_0x2cdb71,_0x157d93[_0x34cb39(0xe1)]);if(!_0x28512e||_0x28512e===_0x157d93['value'])return _0x4395f9;const _0x5783e4=_0x157d93[_0x34cb39(0x14e)][_0x34cb39(0x19e)](_0x157d93[_0x34cb39(0xe1)],_0x28512e);return _0x4395f9[_0x34cb39(0x19e)](_0x157d93['full'],_0x5783e4);}function rewriteLinkTag(_0x28e8e1,_0x42f20e){const _0x3fd4cf=_0x3fccef,_0x2340f8=_0x42f20e[_0x3fd4cf(0xdd)](/\brel\s*=\s*(['"])([^"']+)\1/i);if(!_0x2340f8)return _0x42f20e;const _0xa79843=_0x2340f8[0x2][_0x3fd4cf(0x184)]();if(_0xa79843!==_0x3fd4cf(0x1c2)&&_0xa79843!==_0x3fd4cf(0x11a))return _0x42f20e;const _0x671b1a=extractAttribute(_0x42f20e,'href');if(!_0x671b1a)return _0x42f20e;const _0x4f5dab=normalizeAssetReference(_0x28e8e1,_0x671b1a[_0x3fd4cf(0xe1)]);if(!_0x4f5dab||_0x4f5dab===_0x671b1a[_0x3fd4cf(0xe1)])return _0x42f20e;const _0x5f1268=_0x671b1a[_0x3fd4cf(0x14e)][_0x3fd4cf(0x19e)](_0x671b1a['value'],_0x4f5dab);return _0x42f20e[_0x3fd4cf(0x19e)](_0x671b1a['full'],_0x5f1268);}function extractAttribute(_0x35cedd,_0x3a0d9b){const _0x4d6638=_0x3fccef,_0x49f981=new RegExp(_0x3a0d9b+_0x4d6638(0x1c7),'i'),_0x3a46a5=_0x35cedd['match'](_0x49f981);if(!_0x3a46a5)return null;return{'full':_0x3a46a5[0x0],'value':_0x3a46a5[0x2]};}function normalizeAssetReference(_0x1253ad,_0x3b7e0f){const _0x46edbc=_0x3fccef,_0xd0e94d=parseDocumentUrl(_0x3b7e0f);if(!_0xd0e94d)return null;if(_0xd0e94d[_0x46edbc(0x17b)]===self[_0x46edbc(0x1b4)]['origin'])return''+_0xd0e94d['pathname']+_0xd0e94d[_0x46edbc(0xf7)];return null;}function parseDocumentUrl(_0xe7b268){const _0x2830f3=_0x3fccef;try{return new URL(_0xe7b268,self['location'][_0x2830f3(0x17b)]);}catch{return null;}}var LOG_PREFIX4=_0x3fccef(0xbd);async function rewriteDocument(_0x29ace5,_0x1b77c4,_0x1c674,_0x8143a8=!![]){const _0x386165=_0x3fccef;console['log'](LOG_PREFIX4+'\x20rewriteDocument()\x20called'),console[_0x386165(0x18c)](LOG_PREFIX4+'\x20\x20\x20source:\x20'+_0x1c674),console[_0x386165(0x18c)](LOG_PREFIX4+'\x20\x20\x20shouldInjectOverlay:\x20'+_0x8143a8),console[_0x386165(0x18c)](LOG_PREFIX4+_0x386165(0x1c1)+_0x29ace5[_0x386165(0xff)]);const _0x2feddb=_0x1b77c4['clone'](),_0x4ba32e=await _0x2feddb[_0x386165(0x129)]();console[_0x386165(0x18c)](LOG_PREFIX4+_0x386165(0xf1)+_0x4ba32e[_0x386165(0xc8)]+_0x386165(0xd0)),console[_0x386165(0x18c)](LOG_PREFIX4+'\x20\x20\x20Stripping\x20SRI\x20attributes...');const _0x102f6f=stripSri(_0x4ba32e);console[_0x386165(0x18c)](LOG_PREFIX4+'\x20\x20\x20Rewriting\x20entry\x20references...');let _0x54fbab=rewriteEntryReferences(_0x29ace5,_0x102f6f);_0x1c674===_0x386165(0x175)?(console[_0x386165(0x18c)](LOG_PREFIX4+_0x386165(0x17a)),_0x54fbab=injectHmrBridge(_0x29ace5,_0x54fbab)):console[_0x386165(0x18c)](LOG_PREFIX4+_0x386165(0x1b8));_0x8143a8?(console['log'](LOG_PREFIX4+_0x386165(0x157)),_0x54fbab=injectRuntimeBootstrap(_0x29ace5,_0x54fbab)):console[_0x386165(0x18c)](LOG_PREFIX4+_0x386165(0x10c));console['log'](LOG_PREFIX4+_0x386165(0xf9)+_0x54fbab[_0x386165(0xc8)]+_0x386165(0xd0));const _0x533e88=new Headers(_0x2feddb[_0x386165(0x12d)]);_0x533e88[_0x386165(0x1a5)]('cache-control',_0x386165(0x108)),_0x533e88[_0x386165(0x1a5)](_0x386165(0x1b7),_0x386165(0xd8)),_0x533e88[_0x386165(0x1a5)](_0x386165(0x105),_0x1c674),stripCookies2(_0x533e88);if(_0x29ace5[_0x386165(0xff)]!=='custom'){console['log'](LOG_PREFIX4+_0x386165(0xcc));const _0x5b968c=_0x533e88['get'](_0x386165(0x1c6));_0x533e88[_0x386165(0x1a5)](_0x386165(0x1c6),buildPreviewCsp(_0x5b968c)),_0x533e88['delete']('cross-origin-opener-policy'),_0x533e88[_0x386165(0x111)]('cross-origin-embedder-policy'),_0x533e88[_0x386165(0x111)](_0x386165(0xed));}else console[_0x386165(0x18c)](LOG_PREFIX4+'\x20\x20\x20Custom\x20security\x20mode\x20-\x20preserving\x20original\x20CSP');return console[_0x386165(0x18c)](LOG_PREFIX4+'\x20\x20\x20Document\x20rewrite\x20complete'),new Response(_0x54fbab,{'status':_0x2feddb[_0x386165(0xc0)],'statusText':_0x2feddb[_0x386165(0xdc)],'headers':_0x533e88});}var LOG_PREFIX5='[Enhance\x20SW]';console['log'](LOG_PREFIX5+_0x3fccef(0x18b)+new Date()[_0x3fccef(0x145)]());function tryRestoreConfigFromUrl(_0x3aeb29){const _0x2b57e7=_0x3fccef,_0x16f05e=_0x3aeb29[_0x2b57e7(0x18e)]['get']('enhancementUrl');if(!_0x16f05e)return console[_0x2b57e7(0x18c)](LOG_PREFIX5+'\x20tryRestoreConfigFromUrl:\x20no\x20enhancementUrl\x20in\x20URL'),null;console['log'](LOG_PREFIX5+_0x2b57e7(0x10b)+_0x16f05e);let _0x2781e7=null;try{_0x2781e7=new URL(_0x16f05e);}catch(_0x32e9dd){return console[_0x2b57e7(0x10e)](LOG_PREFIX5+_0x2b57e7(0x1b0),_0x32e9dd),null;}const _0x494df8={'enhancementUrl':_0x16f05e,'callbackBypass':[],'overlayPath':_0x2b57e7(0x169),'overlayEnableViteHmr':![],'runtimeScriptPath':_0x2b57e7(0xe4),'swPath':_0x2b57e7(0xb9),'securityMode':_0x2b57e7(0x135),'backendUrl':'https://api.enhancelabs.ai'},_0xceab08=setActiveConfig(_0x494df8);return _0xceab08;}self['addEventListener'](_0x3fccef(0x122),_0x5406b6=>{const _0x2f9f88=_0x3fccef;console[_0x2f9f88(0x18c)](LOG_PREFIX5+_0x2f9f88(0x180)),_0x5406b6[_0x2f9f88(0x1a8)](((async()=>{const _0x36c807=_0x2f9f88;console[_0x36c807(0x18c)](LOG_PREFIX5+_0x36c807(0x140)),await self['skipWaiting'](),console[_0x36c807(0x18c)](LOG_PREFIX5+_0x36c807(0x1da));})()));}),self['addEventListener']('activate',_0x3b5e3d=>{const _0x3cd9a4=_0x3fccef;console[_0x3cd9a4(0x18c)](LOG_PREFIX5+_0x3cd9a4(0x1d0)),_0x3b5e3d['waitUntil'](((async()=>{const _0x17eef3=_0x3cd9a4;console[_0x17eef3(0x18c)](LOG_PREFIX5+_0x17eef3(0xee)),await self[_0x17eef3(0x1b3)][_0x17eef3(0x1d5)](),console[_0x17eef3(0x18c)](LOG_PREFIX5+_0x17eef3(0x173)),console[_0x17eef3(0x18c)](LOG_PREFIX5+_0x17eef3(0x10d)),await requestConfiguration(),console[_0x17eef3(0x18c)](LOG_PREFIX5+_0x17eef3(0x1bb));})()));}),self[_0x3fccef(0x1b6)](_0x3fccef(0x155),_0x2568f0=>{const _0x3319a5=_0x3fccef,_0x4840fd=_0x2568f0['data'];console[_0x3319a5(0x18c)](LOG_PREFIX5+_0x3319a5(0x1ad),_0x4840fd);if(!_0x4840fd||typeof _0x4840fd!==_0x3319a5(0x1ae)){console[_0x3319a5(0x18c)](LOG_PREFIX5+_0x3319a5(0x188));return;}switch(_0x4840fd['type']){case WORKER_MESSAGE_CONFIG:console['log'](LOG_PREFIX5+'\x20CONFIG\x20message\x20-\x20setting\x20active\x20config'),console[_0x3319a5(0x18c)](LOG_PREFIX5+_0x3319a5(0x170),JSON[_0x3319a5(0x121)](_0x4840fd[_0x3319a5(0x15d)],null,0x2)),setActiveConfig(_0x4840fd[_0x3319a5(0x15d)]),console[_0x3319a5(0x18c)](LOG_PREFIX5+'\x20Active\x20config\x20set');break;case WORKER_MESSAGE_DISABLE:console[_0x3319a5(0x18c)](LOG_PREFIX5+'\x20DISABLE\x20message\x20-\x20clearing\x20config'),clearActiveConfig(),console[_0x3319a5(0x18c)](LOG_PREFIX5+_0x3319a5(0xfd));break;default:console[_0x3319a5(0x18c)](LOG_PREFIX5+_0x3319a5(0x144)+_0x4840fd[_0x3319a5(0x1cb)]);break;}}),self[_0x3fccef(0x1b6)](_0x3fccef(0x11d),_0x3c7ac7=>{_0x3c7ac7['respondWith'](handleFetch(_0x3c7ac7));});async function handleFetch(_0x4b84d9){const _0x45cb8d=_0x3fccef,{request:_0x188138}=_0x4b84d9,_0x37cb9e=new URL(_0x188138[_0x45cb8d(0xd1)]),_0x2add00=_0x188138['mode']===_0x45cb8d(0xc3),_0x25bb69=_0x2add00||_0x37cb9e[_0x45cb8d(0x17b)]===self[_0x45cb8d(0x1b4)][_0x45cb8d(0x17b)];_0x25bb69&&(console['log'](LOG_PREFIX5+_0x45cb8d(0x17d)+_0x188138['method']+'\x20'+_0x37cb9e[_0x45cb8d(0x1df)]+_0x37cb9e[_0x45cb8d(0xf7)]),console['log'](LOG_PREFIX5+_0x45cb8d(0xc9)+_0x188138['mode']+_0x45cb8d(0xe6)+_0x188138['destination']));let _0x5ccccc=getActiveConfig();if(!_0x5ccccc&&_0x2add00){const _0x3e97fd=tryRestoreConfigFromUrl(_0x37cb9e);_0x3e97fd&&(console[_0x45cb8d(0x18c)](LOG_PREFIX5+'\x20\x20\x20Restored\x20config\x20from\x20URL\x20params'),_0x5ccccc=_0x3e97fd);}if(!_0x5ccccc)return _0x25bb69&&console[_0x45cb8d(0x18c)](LOG_PREFIX5+_0x45cb8d(0x167)),void requestConfiguration(),fetch(_0x188138);_0x25bb69&&console[_0x45cb8d(0x18c)](LOG_PREFIX5+'\x20\x20\x20Config\x20exists,\x20enhancementUrl:\x20'+(_0x5ccccc['enhancementUrl']||_0x45cb8d(0x1a3)));if(!shouldHandleRequest(_0x188138))return _0x25bb69&&console['log'](LOG_PREFIX5+_0x45cb8d(0x17c)),fetch(_0x188138);if(shouldBypass(_0x5ccccc,_0x37cb9e[_0x45cb8d(0x1df)]))return _0x25bb69&&console[_0x45cb8d(0x18c)](LOG_PREFIX5+_0x45cb8d(0x11f)+_0x37cb9e[_0x45cb8d(0x1df)]+_0x45cb8d(0x12f)),fetch(_0x188138);if(_0x2add00)return console[_0x45cb8d(0x18c)](LOG_PREFIX5+_0x45cb8d(0x10a)),handleNavigationRequest(_0x188138,_0x5ccccc);if(!shouldRouteAsset(_0x5ccccc,_0x188138,_0x37cb9e))return _0x25bb69&&console[_0x45cb8d(0x18c)](LOG_PREFIX5+_0x45cb8d(0x137)),fetch(_0x188138);console['log'](LOG_PREFIX5+'\x20\x20\x20Attempting\x20to\x20fetch\x20from\x20enhancement:\x20'+_0x37cb9e['pathname']);const _0x5edcb7=await fetchFromEnhancement(_0x5ccccc,_0x188138,_0x37cb9e);if(_0x5edcb7)return console[_0x45cb8d(0x18c)](LOG_PREFIX5+_0x45cb8d(0x13d)+_0x37cb9e['pathname']),_0x5edcb7;return console[_0x45cb8d(0x18c)](LOG_PREFIX5+'\x20\x20\x20Enhancement\x20MISS\x20for\x20'+_0x37cb9e[_0x45cb8d(0x1df)]+_0x45cb8d(0x14b)),fetch(_0x188138);}async function handleNavigationRequest(_0x5bb3e9,_0x53d031){const _0x26e803=_0x3fccef,_0x78baff=new URL(_0x5bb3e9[_0x26e803(0xd1)]);console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0x160)+_0x78baff[_0x26e803(0x1df)]+_0x78baff[_0x26e803(0xf7)]),console['log'](LOG_PREFIX5+_0x26e803(0x186)+(_0x53d031['enhancementUrl']||_0x26e803(0x1a3))),console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0x128));const _0xeb7771=await fetch(_0x5bb3e9);console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0x177)+_0xeb7771[_0x26e803(0xc0)]+'\x20'+_0xeb7771[_0x26e803(0xdc)]),console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0x196)+_0xeb7771[_0x26e803(0x12d)][_0x26e803(0x1a6)]('content-type'));if(!isHtmlResponse(_0xeb7771))return console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0x1ba)),_0xeb7771;console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0x114));const _0x3db369=toSameOriginResponse(_0xeb7771,'GET');console['log'](LOG_PREFIX5+_0x26e803(0x12b));const _0x41bc13=await fetchEnhancementDocument(_0x53d031,_0x5bb3e9),_0xfa1af8=_0x41bc13?'enhancement':'production';console['log'](LOG_PREFIX5+_0x26e803(0x1d7)+_0xfa1af8);const _0x233136=_0x41bc13??_0x3db369,_0x21d48e=_0xfa1af8===_0x26e803(0x175)||_0x78baff[_0x26e803(0x18e)][_0x26e803(0x15b)](_0x26e803(0x1b9))||_0x78baff['searchParams']['has']('enhancement')||_0x78baff[_0x26e803(0x18e)][_0x26e803(0x15b)](_0x26e803(0x166));console['log'](LOG_PREFIX5+_0x26e803(0x148)+_0x21d48e),console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0x123)+(_0xfa1af8===_0x26e803(0x175))),console['log'](LOG_PREFIX5+_0x26e803(0x1e0)+_0x78baff['searchParams'][_0x26e803(0x15b)](_0x26e803(0x1b9))),console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0x1be)+_0x78baff[_0x26e803(0x18e)][_0x26e803(0x15b)]('enhancement')),console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0xd3)+_0x78baff[_0x26e803(0x18e)]['has']('enhancementUrl'));try{console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0x1a2));const _0x1662ec=await rewriteDocument(_0x53d031,_0x233136,_0xfa1af8,_0x21d48e);return console[_0x26e803(0x18c)](LOG_PREFIX5+_0x26e803(0xea)),_0x1662ec;}catch(_0x588f4c){return console[_0x26e803(0x10e)](LOG_PREFIX5+_0x26e803(0xf2),_0x588f4c),log(_0x26e803(0x161),'Failed\x20to\x20rewrite\x20document',_0x588f4c),_0x233136;}}
1
+ 'use strict';function _0x36a8(_0x29775d,_0x193ae9){const _0x2d177e=_0x2d17();return _0x36a8=function(_0x36a875,_0x4d048b){_0x36a875=_0x36a875-0x137;let _0x2b43b8=_0x2d177e[_0x36a875];return _0x2b43b8;},_0x36a8(_0x29775d,_0x193ae9);}(function(_0x3c8621,_0x4b27a5){const _0x1ef3f5=_0x36a8,_0x17dae1=_0x3c8621();while(!![]){try{const _0x593777=parseInt(_0x1ef3f5(0x177))/0x1+-parseInt(_0x1ef3f5(0x1cd))/0x2*(parseInt(_0x1ef3f5(0x13e))/0x3)+-parseInt(_0x1ef3f5(0x174))/0x4*(-parseInt(_0x1ef3f5(0x201))/0x5)+parseInt(_0x1ef3f5(0x176))/0x6*(-parseInt(_0x1ef3f5(0x22f))/0x7)+parseInt(_0x1ef3f5(0x215))/0x8+-parseInt(_0x1ef3f5(0x21e))/0x9*(parseInt(_0x1ef3f5(0x1dc))/0xa)+-parseInt(_0x1ef3f5(0x1ba))/0xb*(-parseInt(_0x1ef3f5(0x1e3))/0xc);if(_0x593777===_0x4b27a5)break;else _0x17dae1['push'](_0x17dae1['shift']());}catch(_0x53a979){_0x17dae1['push'](_0x17dae1['shift']());}}}(_0x2d17,0x5dbc8));function _0x2d17(){const _0x37a805=['overlay','/sw-enhance.js','install','\x20\x20\x20BYPASS:\x20','Enhancement\x20miss\x20','\x20\x20\x20Not\x20routing\x20asset\x20(not\x20routable\x20or\x20not\x20same-origin)','\x20\x20\x20\x20\x20\x20for\x20(var\x20i\x20=\x200;\x20i\x20<\x20protoList.length;\x20i++)\x20{','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Current\x20URL:\x22,\x20window.location.href);','\x5cu003c','type','\x20chars','\x20\x20\x20Enhancement\x20HIT\x20for\x20','\x20Failed\x20to\x20parse\x20enhancementUrl:\x20','20ixMMTb','\x20\x20\x20\x20try\x20{','/__webpack_hmr','\x20\x20\x20\x20\x20\x20window.__enhanceController\x20=\x20controller;','\x20injectRuntimeBootstrap()\x20called','toLowerCase','object','168648kRseig','defineProperty','/webpack-hmr','\x20\x20\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket.prototype,\x20\x22constructor\x22,\x20{\x20value:\x20EnhancedWebSocket\x20});','\x20\x20}\x20catch\x20(error)\x20{','addEventListener','image','waitUntil','\x20\x20\x20NAVIGATE\x20request\x20-\x20handling\x20navigation','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhancement\x20document','vite-hmr','\x20is\x20overlay\x20asset\x20-\x20not\x20routing','img-src\x20*\x20data:\x20blob:','\x20\x20\x20Fetching\x20enhancement\x20document...','searchParams','\x20fetchEnhancementDocument:\x20','\x20rewriteDocument()\x20called','})();','includes','\x20\x20\x20\x20var\x20enhancementBase\x20=\x20new\x20URL(','permissive','\x20DISABLE\x20message\x20-\x20resetting\x20customer\x20config','\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20Failed\x20to\x20bootstrap\x20runtime:\x22,\x20error);','destination','/assets/enhance-runtime.js','toString','toISOString','\x20\x20\x20HTML\x20response\x20-\x20processing...','access-control-expose-headers','href','158035uMlhfo','\x20\x20\x20Stripping\x20SRI\x20attributes...','production','replace',',\x20null,\x202));','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>','enhancementBase','origin','\x20\x20\x20Rewriting\x20entry\x20references...','\x20\x20\x20Skipping\x20runtime\x20bootstrap\x20injection','statusText','\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20const\x20runtimePath\x20=\x20','\x20\x20\x20\x20\x20\x20if\x20(!isExternalHost\x20&&\x20!isAppHost)\x20return\x20false;','\x20chars)','delete','\x20\x20\x20Fetch\x20error:','enhance:disable','enhancementUrl','method','2762496rsJyPg','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Calling\x20Enhance.init()\x20with\x20options:\x22,\x20JSON.stringify(','\x20\x20\x20Fetching\x20production\x20response...','\x20\x20\x20Not\x20OK\x20(','\x20\x20\x20securityMode:\x20','activate','slice','\x20\x20\x20\x20\x20\x20var\x20proxied\x20=\x20new\x20URL(enhancementBase);','\x20\x20\x20Injecting\x20runtime\x20bootstrap...','1723374MNFjcq','callbackBypassNormalized','message','debug','\x20\x20\x20Failed\x20to\x20rewrite\x20document:','\x20Clearing\x20cached\x20enhancementUrl\x20(navigation\x20without\x20param)','\x20\x20\x20Document\x20rewrite\x20complete','\x20\x20\x20Document\x20source:\x20','clone','\x20\x20\x20runtimeScriptPath:\x20','search','map','HEAD','font','\x0a</head>','\x20\x20\x20Enhancement\x20MISS\x20for\x20','\x20\x20\x20Attempting\x20to\x20fetch\x20from\x20enhancement:\x20','1631CaZYVB','font-src\x20*\x20data:','/auth/callback','__esModule','frame-ancestors\x20','\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)','stringify','\x20\x20\x20\x20\x20\x20return\x20proxied;','\x20\x20\x20Custom\x20security\x20mode\x20-\x20preserving\x20original\x20CSP','data','url','\x20\x20\x20\x20\x20\x20return\x20false;','Enhancement\x20document\x20fetch\x20failed','cross-origin-opener-policy','\x20\x20\x20\x20var\x20basePrefix\x20=\x20\x22/__sbx__\x22;','\x20\x20\x20\x20\x20\x20var\x20loweredPath\x20=\x20pathname.toLowerCase();','x-enhance-routing','\x20\x20\x20\x20\x20\x20var\x20protoList\x20=\x20toArray(protocols);','\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{','cors','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;','\x20handleNavigationRequest:\x20','add','\x20buildRuntimeBootstrapScript:\x20no\x20runtimePath\x20-\x20returning\x20null','\x20Invalid\x20message\x20data\x20-\x20ignoring','has','Enhancement\x20CORS\x20blocked','\x20\x20\x20\x20}','\x20for\x20','enhancement','worker','\x20Calling\x20clients.claim()...','\x20\x20\x20\x20\x20\x20proxied.hash\x20=\x20\x22\x22;','config','\x20\x20\x20Rewritten\x20HTML\x20length:\x20','script','test','join','\x20\x20\x20\x20\x20\x20\x20\x20var\x20proto\x20=\x20protoList[i];','\x20\x20\x20Bootstrap\x20script\x20generated\x20(','opaque','default-src\x20\x27self\x27\x20blob:\x20data:','http://','\x20\x20}','\x20\x20\x20\x20\x20\x20return\x20Array.isArray(value)\x20?\x20value\x20:\x20[value];','/webpackhotmiddleware','\x20\x20\x20Fetching\x20from\x20enhancement...','custom','\x20Config\x20reset','\x20\x20\x20Not\x20HTML\x20response\x20-\x20returning\x20null','/snowpack/hmr','log','none','set-cookie2','set','\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20unavailable\x22,\x20error);','/webpack-hot-middleware','set-cookie','\x20\x20\x20\x20\x20\x20var\x20isExternalHost\x20=\x20externalHosts.includes(url.host);','\x20\x20\x20\x20}\x20catch\x20(error)\x20{','\x20Customer\x20config\x20updated:','value','text','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20skipping','hash','731727cFMPWO','overlayPath','\x5cs*=\x5cs*([\x27\x22])([^\x22\x27]+)\x5c1','\x20\x20\x20\x20const\x20runtimeModule\x20=\x20await\x20import(runtimePath);','\x20Service\x20Worker\x20script\x20loaded\x20at\x20','style','\x20\x20\x20\x20\x20\x20var\x20isAppHost\x20=\x20url.host\x20===\x20window.location.host;','\x20\x20\x20Response:\x20',')\x20-\x20returning\x20null','\x20Unknown\x20message\x20type:\x20','\x20\x20\x20enhancementUrl\x20in\x20config:\x20','startsWith','\x20\x20\x20\x20\x20\x20}','runtimeScriptPath','\x20\x20\x20\x20\x20\x20proxied.search\x20=\x20targetUrl.search;','\x20shouldRouteAsset:\x20','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Controller\x20attached\x20to\x20window.enhancePreview\x22);','\x20\x20\x20\x20\x20\x20if\x20(!value)\x20return\x20[];','host','media-src\x20*\x20data:\x20blob:','rewritten','\x20\x20\x20\x20\x20\x20//\x20Allow\x20proxying\x20for\x20specific\x20external\x20hosts','x-enhance-document-source','no-store','content-type','\x20\x20\x20\x20\x20\x20//\x20ignore\x20if\x20unable\x20to\x20redefine','stylesheet','redirect','get','\x20\x20\x20source:\x20','cache-control','\x20-\x20falling\x20back\x20to\x20production','navigate','\x20\x20\x20\x20\x20\x20for\x20(var\x20j\x20=\x200;\x20j\x20<\x20knownPathHints.length;\x20j++)\x20{','\x20\x20\x20\x20\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20fallback\x22,\x20error);','\x20Build\x20config:','location','<script\x5cb[^>]*src\x5cs*=\x5cs*([\x27\x22])','overlayEnableViteHmr','(function(){','script-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20\x27unsafe-eval\x27\x20blob:\x20data:\x20https:\x20http:','\x20\x20\x20\x20};','GET','\x20\x20\x20\x20\x20\x20window.__enhanceInitialized\x20=\x20true;','\x5cu003e','length','$&\x0a','\x20\x20\x20\x20var\x20toArray\x20=\x20function(value)\x20{','</script>','securityMode','\x20\x20\x20\x20const\x20Enhance\x20=\x20runtimeModule?.Enhance\x20??\x20runtimeModule?.default?.Enhance\x20??\x20runtimeModule?.default;','content-security-policy','sharedworker','hit','8HGPfOV','\x20\x20try\x20{','18510HiBLEx','632458dHYWDa','\x20\x20\x20\x20\x20\x20var\x20pathname\x20=\x20url.pathname\x20||\x20\x22/\x22;','info','some','enhance:configure','\x20ACTIVATE\x20event','pathname','\x20\x20\x20\x20Object.assign(EnhancedWebSocket,\x20originalWebSocket);','\x20\x20\x20Script\x20inserted\x20into\x20document','/_next/webpack-hmr','\x20\x20\x20\x20if\x20(!Enhance\x20||\x20typeof\x20Enhance.init\x20!==\x20\x22function\x22)\x20{','\x20\x20\x20\x20var\x20knownPathHints\x20=\x20','access-control-allow-origin','error','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20returning\x20null','\x5c1[^>]*>\x5cs*</script>','/webpack-dev-server','\x20Bootstrap\x20options:','\x20\x20\x20\x20if\x20(!originalWebSocket\x20||\x20originalWebSocket.__enhancePatched)\x20{','src','function','modulepreload','status','\x20\x20\x20Enhancement\x20URL:\x20','\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(url,\x20protocols);','\x20INSTALL\x20event','call','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(loweredPath.indexOf(knownPathHints[j])\x20!==\x20-1)\x20{','\x20\x20\x20\x20if\x20(typeof\x20window\x20!==\x20\x22undefined\x22)\x20{','<script\x20data-enhance-hmr-bridge>','/__vite_ping','clients','/parcel-hmr','\x20\x20\x20shouldInjectOverlay:\x20','full','\x20\x20\x20Document\x20fetch\x20error:','/vite/client','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20rewritten\x20=\x20buildProxiedUrl(resolved);','(async\x20()\x20=>\x20{','worker-src\x20\x27self\x27\x20blob:','\x20\x20\x20overlayPath:\x20','cross-origin-resource-policy','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Starting\x20runtime\x20bootstrap...\x22);','claim','?import','x-enhance-enhancement','/__parcel_hmr','\x20fetchFromEnhancement:\x20','https://','access-control-allow-credentials','endsWith','\x20\x20\x20\x20\x20\x20\x20\x20}','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20path:\x22,\x20runtimePath);','Enhancement\x20fetch\x20failed','\x20CONFIG\x20message\x20-\x20updating\x20customer\x20config','headers','\x20\x20\x20\x20\x20\x20try\x20{','\x20\x20\x20\x20\x20\x20//\x20Always\x20use\x20enhancementBase\x20for\x20HMR\x20WebSocket\x20proxying','/sockjs-node','Enhancement\x20document\x20miss\x20','text/html','\x20\x20\x20\x20var\x20EnhancedWebSocket\x20=\x20function(url,\x20protocols)\x20{','\x20\x20\x20\x20Object.setPrototypeOf(EnhancedWebSocket,\x20originalWebSocket);','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhanced\x20response','\x20\x20\x20Not\x20handling\x20(method\x20not\x20GET/HEAD)','\x20\x20\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20No\x20Enhance.init\x20export\x20found!\x22);','\x20\x20\x20\x20\x20\x20var\x20externalHosts\x20=\x20[\x22app.enhance.localhost:4450\x22,\x20\x22localhost:5173\x22];','539EddIPV','\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket,\x20\x22__enhancePatched\x22,\x20{\x20value:\x20true\x20});','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Bootstrap\x20complete\x22);','respondWith','cross-origin-embedder-policy','\x20\x20\x20\x20const\x20controller\x20=\x20Enhance.init(','/__vite/client','\x20\x20\x20\x20\x20\x20window.enhancePreview\x20=\x20controller;','https://assets.enhancelabs.ai/overlay.js','match','\x20\x20\x20\x20\x20\x20\x20\x20var\x20resolved\x20=\x20url\x20instanceof\x20URL\x20?\x20url\x20:\x20new\x20URL(String(url),\x20window.location.href);','mode','content-length','include','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(rewritten.toString(),\x20protocols);','\x20is\x20runtime\x20asset\x20-\x20not\x20routing','\x20\x20\x20Checking\x20for\x20enhancement\x20document...','\x20Calling\x20skipWaiting()...','\x20\x20\x20Injecting\x20HMR\x20bridge\x20(enhancement\x20source)...','2amMfEv','\x20\x20\x20Content-Type:\x20'];_0x2d17=function(){return _0x37a805;};return _0x2d17();}var EnhanceSW=((()=>{const _0x108936=_0x36a8;var _0x2a3329=Object[_0x108936(0x1e4)],_0x5ba117=Object['getOwnPropertyDescriptor'],_0x2342f9=Object['getOwnPropertyNames'],_0x442a9a=Object['prototype']['hasOwnProperty'],_0x31e4d5=(_0x405963,_0x49fb41)=>{for(var _0xf90279 in _0x49fb41)_0x2a3329(_0x405963,_0xf90279,{'get':_0x49fb41[_0xf90279],'enumerable':!![]});},_0x4793ac=(_0x21a850,_0x259b9a,_0x11f627,_0x2d9ae8)=>{const _0x355a15=_0x108936;if(_0x259b9a&&typeof _0x259b9a===_0x355a15(0x1e2)||typeof _0x259b9a===_0x355a15(0x18b)){for(let _0x5a6823 of _0x2342f9(_0x259b9a))if(!_0x442a9a[_0x355a15(0x191)](_0x21a850,_0x5a6823)&&_0x5a6823!==_0x11f627)_0x2a3329(_0x21a850,_0x5a6823,{'get':()=>_0x259b9a[_0x5a6823],'enumerable':!(_0x2d9ae8=_0x5ba117(_0x259b9a,_0x5a6823))||_0x2d9ae8['enumerable']});}return _0x21a850;},_0x343a87=_0x3d7a17=>_0x4793ac(_0x2a3329({},_0x108936(0x232),{'value':!![]}),_0x3d7a17),_0x28aaed={};_0x31e4d5(_0x28aaed,{'log':()=>_0x23577c});var _0x251c98=_0x108936(0x17b),_0x5f42c8=_0x108936(0x212);function _0x26601a(_0x111a43){const _0x23bf9b=_0x108936;if(!_0x111a43[_0x23bf9b(0x149)]('/'))return'/'+_0x111a43;return _0x111a43;}function _0x402cbf(_0x4e1063,_0x33c1b0){const _0x237d30=_0x108936,_0x5a03c6=new URL(_0x4e1063[_0x237d30(0x1fc)]()),_0x4884fa=_0x5a03c6[_0x237d30(0x17d)][_0x237d30(0x1a9)]('/')?_0x5a03c6[_0x237d30(0x17d)][_0x237d30(0x21b)](0x0,-0x1):_0x5a03c6[_0x237d30(0x17d)],_0x51b9cb=_0x33c1b0[_0x237d30(0x17d)][_0x237d30(0x149)]('/')?_0x33c1b0['pathname']:'/'+_0x33c1b0[_0x237d30(0x17d)];return _0x5a03c6['pathname']=(''+_0x4884fa+_0x51b9cb)[_0x237d30(0x204)](/\/+/g,'/'),_0x5a03c6[_0x237d30(0x228)]=_0x33c1b0[_0x237d30(0x228)],_0x5a03c6[_0x237d30(0x13d)]='',_0x5a03c6;}var _0x1e51b4='[Enhance\x20SW\x20Routing]',_0x2bab86=new Set([_0x108936(0x252),_0x108936(0x143),_0x108936(0x22b),_0x108936(0x1e9),_0x108936(0x24d),_0x108936(0x172),_0x108936(0x18c)]);function _0x14d370(_0x12ecda){const _0xcf1376=_0x108936,_0x5d1605=_0x12ecda[_0xcf1376(0x214)]===_0xcf1376(0x168)||_0x12ecda[_0xcf1376(0x214)]===_0xcf1376(0x22a);return _0x5d1605;}function _0xa6cdfe(_0x15255b,_0x23d54d){const _0x26d290=_0x108936,_0x1f5576=_0x26601a(_0x23d54d),_0x470949=_0x15255b[_0x26d290(0x21f)][_0x26d290(0x17a)](_0x25b0dc=>_0x1f5576[_0x26d290(0x149)](_0x25b0dc));return _0x470949;}function _0x337824(_0x5cb755,_0xb3557c,_0x11f386){const _0x55fbdd=_0x108936,_0x1dca83=_0xb3557c[_0x55fbdd(0x1fa)];if(!_0x1dca83||!_0x2bab86[_0x55fbdd(0x248)](_0x1dca83))return![];if(_0x481f51(_0x5cb755,_0x11f386))return console[_0x55fbdd(0x262)](_0x1e51b4+_0x55fbdd(0x14d)+_0x11f386[_0x55fbdd(0x17d)]+_0x55fbdd(0x1ee)),![];if(_0x3aa8f3(_0x5cb755,_0x11f386))return console[_0x55fbdd(0x262)](_0x1e51b4+_0x55fbdd(0x14d)+_0x11f386[_0x55fbdd(0x17d)]+_0x55fbdd(0x1c9)),![];if(_0x11f386[_0x55fbdd(0x208)]!==self[_0x55fbdd(0x162)][_0x55fbdd(0x208)])return![];return!![];}async function _0x37d2f6(_0x284c69,_0x2948de,_0x62265){const _0x31d871=_0x108936;console[_0x31d871(0x262)](_0x1e51b4+_0x31d871(0x1a6)+_0x62265[_0x31d871(0x17d)]);if(!_0x284c69['enhancementBase'])return console[_0x31d871(0x262)](_0x1e51b4+_0x31d871(0x13c)),null;const _0xf6417d=_0xe300f3(_0x284c69,_0x62265);console[_0x31d871(0x262)](_0x1e51b4+_0x31d871(0x18e)+_0xf6417d[_0x31d871(0x1fc)]());const _0x38f552=new Headers(_0x2948de[_0x31d871(0x1ae)]);_0x38f552['set'](_0x31d871(0x23f),'enhancement'),_0x38f552[_0x31d871(0x210)](_0x31d871(0x150));const _0x39c378=new Request(_0xf6417d[_0x31d871(0x1fc)](),{'method':_0x2948de[_0x31d871(0x214)],'headers':_0x38f552,'credentials':_0x31d871(0x1c7),'redirect':_0x2948de[_0x31d871(0x159)],'cache':'default','mode':_0x31d871(0x242)});try{console[_0x31d871(0x262)](_0x1e51b4+_0x31d871(0x25d));const _0x53f690=await fetch(_0x39c378);console[_0x31d871(0x262)](_0x1e51b4+_0x31d871(0x145)+_0x53f690['status']+'\x20'+_0x53f690[_0x31d871(0x20b)]+',\x20type:\x20'+_0x53f690[_0x31d871(0x1d8)]);if(_0x53f690[_0x31d871(0x1d8)]===_0x31d871(0x257))return console['log'](_0x1e51b4+_0x31d871(0x234)),_0x23577c('info',_0x31d871(0x249),_0xf6417d[_0x31d871(0x1fc)]()),null;if(!_0x53f690['ok'])return console[_0x31d871(0x262)](_0x1e51b4+_0x31d871(0x218)+_0x53f690[_0x31d871(0x18d)]+_0x31d871(0x146)),_0x23577c('debug',_0x31d871(0x1d3)+_0x53f690[_0x31d871(0x18d)]+_0x31d871(0x24b)+_0xf6417d[_0x31d871(0x17d)]),null;return console[_0x31d871(0x262)](_0x1e51b4+_0x31d871(0x1b6)),_0x2ea914(_0x53f690,_0x2948de[_0x31d871(0x214)]);}catch(_0x487fd2){return console[_0x31d871(0x184)](_0x1e51b4+_0x31d871(0x211),_0x487fd2),_0x23577c(_0x31d871(0x179),_0x31d871(0x1ac),_0x487fd2),null;}}async function _0x512841(_0x44a97f,_0x2c7870){const _0x29c97c=_0x108936,_0x2fc311=new URL(_0x2c7870[_0x29c97c(0x239)]);console[_0x29c97c(0x262)](_0x1e51b4+_0x29c97c(0x1f2)+_0x2fc311[_0x29c97c(0x17d)]+_0x2fc311[_0x29c97c(0x228)]);if(!_0x44a97f[_0x29c97c(0x207)])return console[_0x29c97c(0x262)](_0x1e51b4+_0x29c97c(0x185)),null;const _0x2052d5=_0xe300f3(_0x44a97f,_0x2fc311);console[_0x29c97c(0x262)](_0x1e51b4+'\x20\x20\x20Enhancement\x20document\x20URL:\x20'+_0x2052d5[_0x29c97c(0x1fc)]());const _0x105a89=new Headers(_0x2c7870[_0x29c97c(0x1ae)]);_0x105a89['set'](_0x29c97c(0x23f),'enhancement-document'),_0x105a89[_0x29c97c(0x210)](_0x29c97c(0x150)),_0x105a89[_0x29c97c(0x210)](_0x29c97c(0x1c6));const _0x562fe3=new Request(_0x2052d5[_0x29c97c(0x1fc)](),{'method':'GET','headers':_0x105a89,'credentials':_0x29c97c(0x1c7),'redirect':'follow','cache':'default','mode':_0x29c97c(0x242)});try{console[_0x29c97c(0x262)](_0x1e51b4+_0x29c97c(0x1f0));const _0x3183fc=await fetch(_0x562fe3);console[_0x29c97c(0x262)](_0x1e51b4+_0x29c97c(0x145)+_0x3183fc['status']+'\x20'+_0x3183fc[_0x29c97c(0x20b)]+',\x20type:\x20'+_0x3183fc['type']),console[_0x29c97c(0x262)](_0x1e51b4+_0x29c97c(0x1ce)+_0x3183fc[_0x29c97c(0x1ae)]['get'](_0x29c97c(0x156)));if(_0x3183fc[_0x29c97c(0x1d8)]===_0x29c97c(0x257))return console[_0x29c97c(0x262)](_0x1e51b4+_0x29c97c(0x234)),_0x23577c('info','Enhancement\x20document\x20CORS\x20blocked',_0x2052d5[_0x29c97c(0x1fc)]()),null;if(!_0x3183fc['ok'])return console[_0x29c97c(0x262)](_0x1e51b4+_0x29c97c(0x218)+_0x3183fc['status']+_0x29c97c(0x146)),_0x23577c(_0x29c97c(0x221),_0x29c97c(0x1b2)+_0x3183fc[_0x29c97c(0x18d)]+_0x29c97c(0x24b)+_0x2052d5['pathname']),null;if(!_0x161ec1(_0x3183fc))return console['log'](_0x1e51b4+_0x29c97c(0x260)),null;return console[_0x29c97c(0x262)](_0x1e51b4+_0x29c97c(0x1ec)),_0x2ea914(_0x3183fc,_0x29c97c(0x168));}catch(_0xc97e05){return console['error'](_0x1e51b4+_0x29c97c(0x19a),_0xc97e05),_0x23577c(_0x29c97c(0x179),_0x29c97c(0x23b),_0xc97e05),null;}}function _0xe300f3(_0x43d12c,_0x2dd440){const _0x30ae4f=_0x108936;if(!_0x43d12c[_0x30ae4f(0x207)])throw new Error('Cannot\x20build\x20enhancement\x20URL\x20without\x20enhancementBase\x20configured');return _0x402cbf(_0x43d12c[_0x30ae4f(0x207)],_0x2dd440);}function _0x2ea914(_0x1276f2,_0x501355){const _0x45ef54=_0x108936,_0x18226a=_0x1276f2['clone'](),_0x440db4=new Headers(_0x18226a[_0x45ef54(0x1ae)]);_0x440db4[_0x45ef54(0x210)](_0x45ef54(0x183)),_0x440db4[_0x45ef54(0x210)](_0x45ef54(0x1a8)),_0x440db4[_0x45ef54(0x210)](_0x45ef54(0x1ff)),_0x440db4[_0x45ef54(0x265)](_0x45ef54(0x1a4),_0x45ef54(0x173)),_0x4fc443(_0x440db4);const _0x4177ef=_0x501355===_0x45ef54(0x22a)?null:_0x18226a['body'];return new Response(_0x4177ef,{'status':_0x18226a['status'],'statusText':_0x18226a[_0x45ef54(0x20b)],'headers':_0x440db4});}function _0x161ec1(_0x5cd9f8){const _0x1ec003=_0x108936,_0x18f8a6=_0x5cd9f8[_0x1ec003(0x1ae)][_0x1ec003(0x15a)]('content-type');return _0x18f8a6!=null&&_0x18f8a6[_0x1ec003(0x1f5)](_0x1ec003(0x1b3));}function _0x481f51(_0x204066,_0x8971db){const _0x1516f9=_0x108936;return _0x2df8e3(_0x8971db,_0x204066[_0x1516f9(0x13f)]);}function _0x3aa8f3(_0x29dfa9,_0x4648a2){const _0x58a557=_0x108936;return _0x2a3202(_0x4648a2,_0x29dfa9[_0x58a557(0x14b)]);}function _0x2df8e3(_0x13f390,_0x41d71e){const _0x24d52d=_0x108936;if(!_0x41d71e)return![];if(_0x41d71e['startsWith'](_0x24d52d(0x259))||_0x41d71e['startsWith'](_0x24d52d(0x1a7)))return _0x13f390[_0x24d52d(0x200)]===_0x41d71e;const _0x472006=_0x9e0d5a(_0x41d71e);if(!_0x472006)return![];const _0x4f606c=''+_0x13f390[_0x24d52d(0x17d)]+_0x13f390[_0x24d52d(0x228)];if(_0x4f606c===_0x472006)return!![];if(_0x13f390[_0x24d52d(0x228)]===_0x24d52d(0x1a3))return _0x13f390[_0x24d52d(0x17d)]===_0x472006;return![];}function _0x2a3202(_0x5afcda,_0x42196d){const _0x1c8995=_0x108936;if(!_0x42196d)return![];if(_0x42196d[_0x1c8995(0x149)](_0x1c8995(0x259))||_0x42196d['startsWith'](_0x1c8995(0x1a7)))return _0x5afcda[_0x1c8995(0x200)]===_0x42196d;const _0x2a2c96=_0x9e0d5a(_0x42196d);if(!_0x2a2c96)return![];const _0x325a37=''+_0x5afcda['pathname']+_0x5afcda['search'];return _0x325a37===_0x2a2c96;}function _0x9e0d5a(_0x5d90c2){const _0x142171=_0x108936;if(!_0x5d90c2)return _0x5d90c2;if(_0x5d90c2[_0x142171(0x149)](_0x142171(0x259))||_0x5d90c2[_0x142171(0x149)](_0x142171(0x1a7)))return _0x5d90c2;const _0x548566=_0x5d90c2[_0x142171(0x204)](/^\.\//,'');if(_0x548566['startsWith']('/'))return _0x548566;return'/'+_0x548566;}function _0x4fc443(_0x49dbff){const _0x1d8f3a=_0x108936;_0x49dbff[_0x1d8f3a(0x210)](_0x1d8f3a(0x268)),_0x49dbff[_0x1d8f3a(0x210)](_0x1d8f3a(0x264));}function _0x33889b(_0x464fa7){const _0x2cc30d=_0x108936,_0x583a73=[_0x2cc30d(0x258),_0x2cc30d(0x166),'style-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20blob:\x20data:\x20https:\x20http:',_0x2cc30d(0x1ef),_0x2cc30d(0x230),'connect-src\x20*',_0x2cc30d(0x151),_0x2cc30d(0x19e),'object-src\x20\x27none\x27'],_0x1a16de=_0x5d3392(_0x464fa7);return _0x1a16de&&_0x583a73['push'](_0x1a16de),_0x583a73[_0x2cc30d(0x254)](';\x20');}function _0x2e81d(_0x43ca2a){const _0xd5ac2d=_0x108936;_0x43ca2a[_0xd5ac2d(0x210)](_0xd5ac2d(0x268)),_0x43ca2a[_0xd5ac2d(0x210)]('set-cookie2');}function _0x5d3392(_0xf9420a){const _0x524ec8=_0x108936;if(!_0xf9420a)return null;const _0x13f20b=_0xf9420a[_0x524ec8(0x1c3)](/frame-ancestors\s+([^;]+)/i);if(!_0x13f20b)return null;return _0x524ec8(0x233)+_0x13f20b[0x1]['trim']();}function _0x5d1503(_0x5930a9,_0x33a5ad){const _0xd127cf=_0x108936;if(/<head[^>]*>/i[_0xd127cf(0x253)](_0x5930a9)){const _0x440b2e=_0x5930a9[_0xd127cf(0x1c3)](/<head[^>]*>/i);if(_0x440b2e){const _0x3523d9=_0x440b2e[0x0];return _0x5930a9[_0xd127cf(0x204)](_0x3523d9,_0x3523d9+'\x0a'+_0x33a5ad);}}if(/<\/head>/i[_0xd127cf(0x253)](_0x5930a9))return _0x5930a9['replace'](/<\/head>/i,_0x33a5ad+_0xd127cf(0x22c));if(/<body\b[^>]*>/i[_0xd127cf(0x253)](_0x5930a9))return _0x5930a9[_0xd127cf(0x204)](/<body\b[^>]*>/i,_0xd127cf(0x16c)+_0x33a5ad);if(/<\/body>/i[_0xd127cf(0x253)](_0x5930a9))return _0x5930a9['replace'](/<\/body>/i,_0x33a5ad+'\x0a</body>');return _0x33a5ad+'\x0a'+_0x5930a9;}var _0x3d9ada=[_0x108936(0x1ed)],_0x23d9b0=['/@vite/client',_0x108936(0x1c0),_0x108936(0x19b),_0x108936(0x195),_0x108936(0x1b1),_0x108936(0x187),_0x108936(0x1e5),_0x108936(0x25c),_0x108936(0x267),_0x108936(0x1de),_0x108936(0x180),_0x108936(0x197),_0x108936(0x1a5),'/__snowpack__',_0x108936(0x261)];function _0x25fe87(_0x367ccb,_0x4902b5){const _0x24e91b=_0x34a526(_0x367ccb);if(!_0x24e91b)return _0x4902b5;return _0x5d1503(_0x4902b5,_0x24e91b);}function _0x34a526(_0x522336){const _0xb111de=_0x108936;if(!_0x522336[_0xb111de(0x207)])return null;const _0x9644f4=_0x522336[_0xb111de(0x207)][_0xb111de(0x1fc)](),_0x3fc0b3=_0x4e6388(_0x3d9ada),_0x143b7c=_0x4e6388(_0x23d9b0),_0x2557a6=[_0xb111de(0x194),_0xb111de(0x165),_0xb111de(0x175),_0xb111de(0x1f6)+JSON[_0xb111de(0x235)](_0x9644f4)+');','\x20\x20\x20\x20var\x20originalWebSocket\x20=\x20window.WebSocket;',_0xb111de(0x189),'\x20\x20\x20\x20\x20\x20return;',_0xb111de(0x24a),'\x20\x20\x20\x20var\x20knownProtocols\x20=\x20new\x20Set('+JSON[_0xb111de(0x235)](_0x3fc0b3)+');',_0xb111de(0x182)+JSON[_0xb111de(0x235)](_0x143b7c)+';',_0xb111de(0x23d),_0xb111de(0x16d),_0xb111de(0x14f),_0xb111de(0x25b),_0xb111de(0x167),'\x20\x20\x20\x20var\x20shouldProxy\x20=\x20function(url,\x20protocols)\x20{',_0xb111de(0x153),_0xb111de(0x1b9),_0xb111de(0x137),_0xb111de(0x144),_0xb111de(0x20c),_0xb111de(0x20e),_0xb111de(0x20c),_0xb111de(0x178),'\x20\x20\x20\x20\x20\x20if\x20(pathname\x20===\x20basePrefix\x20||\x20pathname.indexOf(basePrefix\x20+\x20\x22/\x22)\x20===\x200)\x20{','\x20\x20\x20\x20\x20\x20\x20\x20return\x20false;',_0xb111de(0x14a),_0xb111de(0x240),_0xb111de(0x1d5),_0xb111de(0x255),'\x20\x20\x20\x20\x20\x20\x20\x20if\x20(typeof\x20proto\x20===\x20\x22string\x22\x20&&\x20knownProtocols.has(proto.toLowerCase()))\x20{',_0xb111de(0x243),'\x20\x20\x20\x20\x20\x20\x20\x20}',_0xb111de(0x14a),_0xb111de(0x23e),_0xb111de(0x15f),_0xb111de(0x192),'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;',_0xb111de(0x1aa),_0xb111de(0x14a),_0xb111de(0x23a),_0xb111de(0x167),'\x20\x20\x20\x20var\x20buildProxiedUrl\x20=\x20function(targetUrl)\x20{',_0xb111de(0x1b0),_0xb111de(0x21c),_0xb111de(0x14c),_0xb111de(0x24f),_0xb111de(0x236),_0xb111de(0x167),_0xb111de(0x1b4),_0xb111de(0x1af),_0xb111de(0x1c4),'\x20\x20\x20\x20\x20\x20\x20\x20if\x20(shouldProxy(resolved,\x20protocols))\x20{',_0xb111de(0x19c),_0xb111de(0x1c8),_0xb111de(0x1aa),_0xb111de(0x241),_0xb111de(0x160),_0xb111de(0x14a),_0xb111de(0x18f),'\x20\x20\x20\x20};',_0xb111de(0x17e),'\x20\x20\x20\x20EnhancedWebSocket.prototype\x20=\x20originalWebSocket.prototype;',_0xb111de(0x1b5),_0xb111de(0x1dd),_0xb111de(0x1e6),_0xb111de(0x138),_0xb111de(0x157),'\x20\x20\x20\x20}',_0xb111de(0x1bb),'\x20\x20\x20\x20window.WebSocket\x20=\x20EnhancedWebSocket;',_0xb111de(0x1e7),_0xb111de(0x266),_0xb111de(0x25a),_0xb111de(0x1f4),'</script>'];return _0x2557a6[_0xb111de(0x254)]('\x0a');}function _0x4e6388(_0xa0ada7){const _0x3def0b=_0x108936,_0x2bffef=new Set(),_0x5e5e2b=[];for(const _0x499cd7 of _0xa0ada7){const _0x607213=_0x499cd7[_0x3def0b(0x1e1)]();if(_0x2bffef[_0x3def0b(0x248)](_0x607213))continue;_0x2bffef[_0x3def0b(0x245)](_0x607213),_0x5e5e2b['push'](_0x607213);}return _0x5e5e2b;}var _0x14ef6d='[Enhance\x20SW\x20Bootstrap]';function _0xce380b(_0x1b4878,_0x2f4297){const _0x11b4cd=_0x108936;console[_0x11b4cd(0x262)](_0x14ef6d+_0x11b4cd(0x1e0)),console['log'](_0x14ef6d+_0x11b4cd(0x227)+_0x1b4878[_0x11b4cd(0x14b)]),console['log'](_0x14ef6d+_0x11b4cd(0x19f)+_0x1b4878[_0x11b4cd(0x13f)]);const _0x38057e=_0xa284eb(_0x1b4878);if(!_0x38057e)return console['log'](_0x14ef6d+'\x20\x20\x20No\x20script\x20generated\x20(missing\x20runtimePath)\x20-\x20returning\x20html\x20unchanged'),_0x2f4297;console['log'](_0x14ef6d+_0x11b4cd(0x256)+_0x38057e[_0x11b4cd(0x16b)]+_0x11b4cd(0x20f));const _0x15e5fc=_0x400188(_0x2f4297,_0x1b4878['runtimeScriptPath']);console['log'](_0x14ef6d+'\x20\x20\x20Stripped\x20existing\x20bootstraps,\x20inserting\x20new\x20script...');const _0x350107=_0x5d1503(_0x15e5fc,_0x38057e);return console[_0x11b4cd(0x262)](_0x14ef6d+_0x11b4cd(0x17f)),_0x350107;}function _0xa284eb(_0x297845){const _0xe7fd59=_0x108936,_0x556f01=_0x297845[_0xe7fd59(0x14b)];if(!_0x556f01)return console['log'](_0x14ef6d+_0xe7fd59(0x246)),null;const _0x28d3ba=_0x361931(_0x297845);console[_0xe7fd59(0x262)](_0x14ef6d+_0xe7fd59(0x188),JSON[_0xe7fd59(0x235)](_0x28d3ba,null,0x2));const _0x5889d0=_0x21cafb(_0x28d3ba),_0x177059=JSON[_0xe7fd59(0x235)](_0x556f01),_0x324806=[_0xe7fd59(0x206),_0xe7fd59(0x19d),_0xe7fd59(0x175),_0xe7fd59(0x20d)+_0x177059+';',_0xe7fd59(0x1a1),_0xe7fd59(0x1ab),_0xe7fd59(0x1d6),_0xe7fd59(0x141),'\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20module\x20loaded:\x22,\x20Object.keys(runtimeModule));',_0xe7fd59(0x170),_0xe7fd59(0x181),_0xe7fd59(0x1b8),'\x20\x20\x20\x20\x20\x20return;',_0xe7fd59(0x24a),_0xe7fd59(0x216)+_0x5889d0+_0xe7fd59(0x205),_0xe7fd59(0x1bf)+_0x5889d0+');','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Enhance\x20controller\x20created:\x22,\x20controller);',_0xe7fd59(0x193),_0xe7fd59(0x1c1),_0xe7fd59(0x14e),'\x20\x20\x20\x20\x20\x20//\x20Mark\x20as\x20initialized\x20globally\x20so\x20other\x20module\x20instances\x20(e.g.\x20enhanced\x20app\x27s\x20bundled\x20copy)\x20skip\x20re-init',_0xe7fd59(0x169),_0xe7fd59(0x1df),'\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Set\x20window.__enhanceInitialized\x20=\x20true\x22);',_0xe7fd59(0x24a),_0xe7fd59(0x1bc),_0xe7fd59(0x1e7),_0xe7fd59(0x1f9),_0xe7fd59(0x25a),'})();',_0xe7fd59(0x16e)];return _0x324806[_0xe7fd59(0x254)]('\x0a');}function _0x361931(_0x1a1e75){const _0x2d5807=_0x108936,_0x378ba2={'callbackBypass':_0x1a1e75['callbackBypass'],'__development':{'enableOverlayHmr':_0x1a1e75[_0x2d5807(0x164)],'overlayPath':_0x1a1e75[_0x2d5807(0x13f)],'security':_0x1a1e75['securityMode'],'backendUrl':_0x1a1e75['backendUrl']}};return _0x378ba2;}function _0x21cafb(_0x1b1ec5){const _0x4d1374=_0x108936;return JSON[_0x4d1374(0x235)](_0x1b1ec5)['replace'](/</g,_0x4d1374(0x1d7))[_0x4d1374(0x204)](/>/g,_0x4d1374(0x16a));}function _0x400188(_0x57a050,_0x276619){const _0x5f3210=_0x108936,_0x583e7a=/<script\b[^>]*data-enhance-runtime-bootstrap[^>]*>[\s\S]*?<\/script>/gi;let _0x11ee94=_0x57a050[_0x5f3210(0x204)](_0x583e7a,'');if(_0x276619){const _0x1379dd=_0x4301cb(_0x276619),_0x14721b=new RegExp(_0x5f3210(0x163)+_0x1379dd+_0x5f3210(0x186),'gi');_0x11ee94=_0x11ee94[_0x5f3210(0x204)](_0x14721b,'');}return _0x11ee94;}function _0x4301cb(_0x3f6fab){const _0x17364c=_0x108936;return _0x3f6fab[_0x17364c(0x204)](/[-/\\^$*+?.()|[\]{}]/g,'\x5c$&');}function _0x123499(_0x2efcad,_0x17d557){const _0x2cd185=_0x108936,_0xc26be8=_0x55a17a=>_0x4410af(_0x2efcad,_0x55a17a),_0x355e72=_0x3ff5b5=>_0x2224df(_0x2efcad,_0x3ff5b5);return _0x17d557['replace'](/<script\b[^>]*>/gi,_0xc26be8)[_0x2cd185(0x204)](/<link\b[^>]*>/gi,_0x355e72);}function _0x44c561(_0x2a2776){const _0x481e1e=_0x108936;return _0x2a2776[_0x481e1e(0x204)](/\s+integrity\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,'');}function _0x4410af(_0x191d96,_0x43e4e9){const _0x5a1245=_0x108936,_0x478bb8=_0x5ee09c(_0x43e4e9,_0x5a1245(0x18a));if(!_0x478bb8)return _0x43e4e9;const _0x2f3b57=_0x3d7a23(_0x191d96,_0x478bb8[_0x5a1245(0x13a)]);if(!_0x2f3b57||_0x2f3b57===_0x478bb8['value'])return _0x43e4e9;const _0x35b089=_0x478bb8[_0x5a1245(0x199)][_0x5a1245(0x204)](_0x478bb8[_0x5a1245(0x13a)],_0x2f3b57);return _0x43e4e9[_0x5a1245(0x204)](_0x478bb8['full'],_0x35b089);}function _0x2224df(_0x234e45,_0x309e0c){const _0x340af4=_0x108936,_0x547994=_0x309e0c[_0x340af4(0x1c3)](/\brel\s*=\s*(['"])([^"']+)\1/i);if(!_0x547994)return _0x309e0c;const _0x4bac3f=_0x547994[0x2][_0x340af4(0x1e1)]();if(_0x4bac3f!==_0x340af4(0x158)&&_0x4bac3f!==_0x340af4(0x18c))return _0x309e0c;const _0x45b720=_0x5ee09c(_0x309e0c,_0x340af4(0x200));if(!_0x45b720)return _0x309e0c;const _0x33d4c5=_0x3d7a23(_0x234e45,_0x45b720[_0x340af4(0x13a)]);if(!_0x33d4c5||_0x33d4c5===_0x45b720[_0x340af4(0x13a)])return _0x309e0c;const _0x208aa5=_0x45b720['full'][_0x340af4(0x204)](_0x45b720[_0x340af4(0x13a)],_0x33d4c5);return _0x309e0c[_0x340af4(0x204)](_0x45b720[_0x340af4(0x199)],_0x208aa5);}function _0x5ee09c(_0x28626e,_0x1fdd4a){const _0x388555=_0x108936,_0x3ff9d6=new RegExp(_0x1fdd4a+_0x388555(0x140),'i'),_0x53e50c=_0x28626e[_0x388555(0x1c3)](_0x3ff9d6);if(!_0x53e50c)return null;return{'full':_0x53e50c[0x0],'value':_0x53e50c[0x2]};}function _0x3d7a23(_0x2e1e8e,_0x549e13){const _0x8e4843=_0x108936,_0x418a63=_0x4853f5(_0x549e13);if(!_0x418a63)return null;if(_0x418a63[_0x8e4843(0x208)]===self[_0x8e4843(0x162)][_0x8e4843(0x208)])return''+_0x418a63['pathname']+_0x418a63['search'];return null;}function _0x4853f5(_0x2a6d71){const _0x2a251d=_0x108936;try{return new URL(_0x2a6d71,self[_0x2a251d(0x162)][_0x2a251d(0x208)]);}catch{return null;}}var _0x185223='[Enhance\x20SW\x20Document]';async function _0x153364(_0x5789f1,_0x3b8781,_0xa5c28b,_0x443815=!![]){const _0xc82930=_0x108936;console[_0xc82930(0x262)](_0x185223+_0xc82930(0x1f3)),console[_0xc82930(0x262)](_0x185223+_0xc82930(0x15b)+_0xa5c28b),console[_0xc82930(0x262)](_0x185223+'\x20\x20\x20shouldInjectOverlay:\x20'+_0x443815),console['log'](_0x185223+_0xc82930(0x219)+_0x5789f1[_0xc82930(0x16f)]);const _0x504d96=_0x3b8781[_0xc82930(0x226)](),_0x961d75=await _0x504d96[_0xc82930(0x13b)]();console[_0xc82930(0x262)](_0x185223+'\x20\x20\x20Original\x20HTML\x20length:\x20'+_0x961d75[_0xc82930(0x16b)]+_0xc82930(0x1d9)),console[_0xc82930(0x262)](_0x185223+_0xc82930(0x202));const _0x459ee3=_0x44c561(_0x961d75);console[_0xc82930(0x262)](_0x185223+_0xc82930(0x209));let _0x2f3c1d=_0x123499(_0x5789f1,_0x459ee3);_0xa5c28b===_0xc82930(0x24c)?(console[_0xc82930(0x262)](_0x185223+_0xc82930(0x1cc)),_0x2f3c1d=_0x25fe87(_0x5789f1,_0x2f3c1d)):console[_0xc82930(0x262)](_0x185223+'\x20\x20\x20Skipping\x20HMR\x20bridge\x20(production\x20source)');_0x443815?(console[_0xc82930(0x262)](_0x185223+_0xc82930(0x21d)),_0x2f3c1d=_0xce380b(_0x5789f1,_0x2f3c1d)):console['log'](_0x185223+_0xc82930(0x20a));console[_0xc82930(0x262)](_0x185223+_0xc82930(0x251)+_0x2f3c1d[_0xc82930(0x16b)]+_0xc82930(0x1d9));const _0x78c986=new Headers(_0x504d96[_0xc82930(0x1ae)]);_0x78c986[_0xc82930(0x265)](_0xc82930(0x15c),_0xc82930(0x155)),_0x78c986['set']('x-enhance-document',_0xc82930(0x152)),_0x78c986[_0xc82930(0x265)](_0xc82930(0x154),_0xa5c28b),_0x2e81d(_0x78c986);if(_0x5789f1[_0xc82930(0x16f)]!==_0xc82930(0x25e)){console['log'](_0x185223+'\x20\x20\x20Applying\x20permissive\x20CSP...');const _0x4643c9=_0x78c986[_0xc82930(0x15a)](_0xc82930(0x171));_0x78c986[_0xc82930(0x265)]('content-security-policy',_0x33889b(_0x4643c9)),_0x78c986[_0xc82930(0x210)](_0xc82930(0x23c)),_0x78c986['delete'](_0xc82930(0x1be)),_0x78c986[_0xc82930(0x210)](_0xc82930(0x1a0));}else console[_0xc82930(0x262)](_0x185223+_0xc82930(0x237));return console[_0xc82930(0x262)](_0x185223+_0xc82930(0x224)),new Response(_0x2f3c1d,{'status':_0x504d96[_0xc82930(0x18d)],'statusText':_0x504d96[_0xc82930(0x20b)],'headers':_0x78c986});}var _0x2b9751='[Enhance\x20SW]';console['log'](_0x2b9751+_0x108936(0x142)+new Date()[_0x108936(0x1fd)]());var _0x2f8c07={'overlayPath':_0x108936(0x1c2),'backendUrl':'https://api.enhancelabs.ai','overlayEnableViteHmr':![],'runtimeScriptPath':_0x108936(0x1fb),'swPath':_0x108936(0x1d0)};console['log'](_0x2b9751+_0x108936(0x161),JSON[_0x108936(0x235)](_0x2f8c07,null,0x2));var _0x4ebb35={'callbackBypass':[_0x108936(0x231)],'securityMode':_0x108936(0x1f7)},_0x3b2551=null,_0x50e090=null;function _0x39d392(_0x39a868,_0x54643d){const _0x440da4=_0x108936,_0x2efb81=_0x39a868['searchParams']['get'](_0x440da4(0x213));if(_0x54643d&&_0x2efb81){console[_0x440da4(0x262)](_0x2b9751+'\x20Caching\x20enhancementUrl\x20from\x20navigation:\x20'+_0x2efb81),_0x3b2551=_0x2efb81;try{_0x50e090=new URL(_0x2efb81);}catch{console['error'](_0x2b9751+_0x440da4(0x1db)+_0x2efb81),_0x50e090=null;}}_0x54643d&&!_0x2efb81&&(_0x3b2551&&console[_0x440da4(0x262)](_0x2b9751+_0x440da4(0x223)),_0x3b2551=null,_0x50e090=null);const _0x6f06db=_0x2efb81||_0x3b2551||'',_0x5bcf34=_0x2efb81?((()=>{if(_0x2efb81===_0x3b2551)return _0x50e090;try{return new URL(_0x2efb81);}catch{return null;}})()):_0x50e090;return{..._0x2f8c07,..._0x4ebb35,'enhancementUrl':_0x6f06db,'enhancementBase':_0x5bcf34,'callbackBypassNormalized':_0x4ebb35['callbackBypass'][_0x440da4(0x229)](_0x4dd528=>_0x4dd528[_0x440da4(0x149)]('/')?_0x4dd528:'/'+_0x4dd528)};}function _0x23577c(_0x5dc578,_0x3838fe,..._0x5dd7b0){const _0x4bc514=_0x108936;_0x5dc578==='info'?console['info'](_0x2b9751,_0x3838fe,..._0x5dd7b0):console[_0x4bc514(0x221)](_0x2b9751,_0x3838fe,..._0x5dd7b0);}self[_0x108936(0x1e8)](_0x108936(0x1d1),_0x455792=>{const _0x587a4b=_0x108936;console[_0x587a4b(0x262)](_0x2b9751+_0x587a4b(0x190)),_0x455792[_0x587a4b(0x1ea)](((async()=>{const _0x3523ca=_0x587a4b;console[_0x3523ca(0x262)](_0x2b9751+_0x3523ca(0x1cb)),await self['skipWaiting'](),console[_0x3523ca(0x262)](_0x2b9751+'\x20skipWaiting()\x20complete');})()));}),self['addEventListener'](_0x108936(0x21a),_0x2d4583=>{const _0x313a12=_0x108936;console[_0x313a12(0x262)](_0x2b9751+_0x313a12(0x17c)),_0x2d4583[_0x313a12(0x1ea)](((async()=>{const _0x3a85fa=_0x313a12;console[_0x3a85fa(0x262)](_0x2b9751+_0x3a85fa(0x24e)),await self[_0x3a85fa(0x196)][_0x3a85fa(0x1a2)](),console[_0x3a85fa(0x262)](_0x2b9751+'\x20clients.claim()\x20complete');})()));}),self[_0x108936(0x1e8)](_0x108936(0x220),_0x420482=>{const _0x4cd5ee=_0x108936,_0x59f2fc=_0x420482[_0x4cd5ee(0x238)];console[_0x4cd5ee(0x262)](_0x2b9751+'\x20MESSAGE\x20received:',_0x59f2fc);if(!_0x59f2fc||typeof _0x59f2fc!==_0x4cd5ee(0x1e2)){console[_0x4cd5ee(0x262)](_0x2b9751+_0x4cd5ee(0x247));return;}switch(_0x59f2fc[_0x4cd5ee(0x1d8)]){case _0x251c98:{console['log'](_0x2b9751+_0x4cd5ee(0x1ad));const _0x26680c=_0x59f2fc[_0x4cd5ee(0x250)];_0x4ebb35={'callbackBypass':_0x26680c['callbackBypass']??[_0x4cd5ee(0x231)],'securityMode':_0x26680c[_0x4cd5ee(0x16f)]??_0x4cd5ee(0x1f7)},console['log'](_0x2b9751+_0x4cd5ee(0x139),JSON[_0x4cd5ee(0x235)](_0x4ebb35,null,0x2));break;}case _0x5f42c8:console['log'](_0x2b9751+_0x4cd5ee(0x1f8)),_0x4ebb35={'callbackBypass':['/auth/callback'],'securityMode':_0x4cd5ee(0x1f7)},_0x3b2551=null,_0x50e090=null,console['log'](_0x2b9751+_0x4cd5ee(0x25f));break;default:console[_0x4cd5ee(0x262)](_0x2b9751+_0x4cd5ee(0x147)+_0x59f2fc['type']);break;}}),self[_0x108936(0x1e8)]('fetch',_0x1a4364=>{const _0x3ca4ff=_0x108936;_0x1a4364[_0x3ca4ff(0x1bd)](_0x2e7e56(_0x1a4364));});async function _0x2e7e56(_0x2cde58){const _0x20bca8=_0x108936,{request:_0x28eba9}=_0x2cde58,_0x3af311=new URL(_0x28eba9[_0x20bca8(0x239)]),_0x2c31be=_0x28eba9[_0x20bca8(0x1c5)]===_0x20bca8(0x15e),_0x3aa815=_0x2c31be||_0x3af311[_0x20bca8(0x208)]===self[_0x20bca8(0x162)][_0x20bca8(0x208)];_0x3aa815&&(console[_0x20bca8(0x262)](_0x2b9751+'\x20FETCH:\x20'+_0x28eba9[_0x20bca8(0x214)]+'\x20'+_0x3af311['pathname']+_0x3af311['search']),console[_0x20bca8(0x262)](_0x2b9751+'\x20\x20\x20mode:\x20'+_0x28eba9['mode']+',\x20destination:\x20'+_0x28eba9[_0x20bca8(0x1fa)]));const _0x1b73c0=_0x39d392(_0x3af311,_0x2c31be);_0x3aa815&&console[_0x20bca8(0x262)](_0x2b9751+'\x20\x20\x20enhancementUrl:\x20'+(_0x1b73c0['enhancementUrl']||_0x20bca8(0x263)));if(!_0x14d370(_0x28eba9))return _0x3aa815&&console[_0x20bca8(0x262)](_0x2b9751+_0x20bca8(0x1b7)),fetch(_0x28eba9);if(_0xa6cdfe(_0x1b73c0,_0x3af311[_0x20bca8(0x17d)]))return _0x3aa815&&console[_0x20bca8(0x262)](_0x2b9751+_0x20bca8(0x1d2)+_0x3af311[_0x20bca8(0x17d)]+'\x20matches\x20callbackBypass'),fetch(_0x28eba9);if(_0x2c31be)return console[_0x20bca8(0x262)](_0x2b9751+_0x20bca8(0x1eb)),_0x5e0dc1(_0x28eba9,_0x1b73c0);if(!_0x337824(_0x1b73c0,_0x28eba9,_0x3af311))return _0x3aa815&&console[_0x20bca8(0x262)](_0x2b9751+_0x20bca8(0x1d4)),fetch(_0x28eba9);console[_0x20bca8(0x262)](_0x2b9751+_0x20bca8(0x22e)+_0x3af311[_0x20bca8(0x17d)]);const _0x378be4=await _0x37d2f6(_0x1b73c0,_0x28eba9,_0x3af311);if(_0x378be4)return console[_0x20bca8(0x262)](_0x2b9751+_0x20bca8(0x1da)+_0x3af311[_0x20bca8(0x17d)]),_0x378be4;return console[_0x20bca8(0x262)](_0x2b9751+_0x20bca8(0x22d)+_0x3af311[_0x20bca8(0x17d)]+_0x20bca8(0x15d)),fetch(_0x28eba9);}async function _0x5e0dc1(_0x35a6d3,_0x4f2fe7){const _0xdc6d50=_0x108936,_0x29bede=new URL(_0x35a6d3[_0xdc6d50(0x239)]);console[_0xdc6d50(0x262)](_0x2b9751+_0xdc6d50(0x244)+_0x29bede[_0xdc6d50(0x17d)]+_0x29bede[_0xdc6d50(0x228)]),console['log'](_0x2b9751+_0xdc6d50(0x148)+(_0x4f2fe7[_0xdc6d50(0x213)]||_0xdc6d50(0x263))),console['log'](_0x2b9751+_0xdc6d50(0x217));const _0x264dc5=await fetch(_0x35a6d3);console[_0xdc6d50(0x262)](_0x2b9751+'\x20\x20\x20Production\x20response:\x20'+_0x264dc5[_0xdc6d50(0x18d)]+'\x20'+_0x264dc5[_0xdc6d50(0x20b)]),console[_0xdc6d50(0x262)](_0x2b9751+_0xdc6d50(0x1ce)+_0x264dc5[_0xdc6d50(0x1ae)][_0xdc6d50(0x15a)](_0xdc6d50(0x156)));if(!_0x161ec1(_0x264dc5))return console[_0xdc6d50(0x262)](_0x2b9751+'\x20\x20\x20Not\x20HTML\x20-\x20returning\x20production\x20response\x20as-is'),_0x264dc5;console['log'](_0x2b9751+_0xdc6d50(0x1fe));const _0x68a688=_0x2ea914(_0x264dc5,_0xdc6d50(0x168));console[_0xdc6d50(0x262)](_0x2b9751+_0xdc6d50(0x1ca));const _0x240d3f=await _0x512841(_0x4f2fe7,_0x35a6d3),_0x66070c=_0x240d3f?_0xdc6d50(0x24c):_0xdc6d50(0x203);console[_0xdc6d50(0x262)](_0x2b9751+_0xdc6d50(0x225)+_0x66070c);const _0x122d2c=_0x240d3f??_0x68a688,_0x233679=_0x66070c===_0xdc6d50(0x24c)||_0x29bede[_0xdc6d50(0x1f1)]['has'](_0xdc6d50(0x1cf))||_0x29bede[_0xdc6d50(0x1f1)][_0xdc6d50(0x248)](_0xdc6d50(0x24c))||_0x29bede['searchParams'][_0xdc6d50(0x248)](_0xdc6d50(0x213));console[_0xdc6d50(0x262)](_0x2b9751+_0xdc6d50(0x198)+_0x233679);try{console[_0xdc6d50(0x262)](_0x2b9751+'\x20\x20\x20Rewriting\x20document...');const _0x12cb02=await _0x153364(_0x4f2fe7,_0x122d2c,_0x66070c,_0x233679);return console[_0xdc6d50(0x262)](_0x2b9751+'\x20\x20\x20Document\x20rewritten\x20successfully'),_0x12cb02;}catch(_0x46850d){return console['error'](_0x2b9751+_0xdc6d50(0x222),_0x46850d),_0x23577c('info','Failed\x20to\x20rewrite\x20document',_0x46850d),_0x122d2c;}}return _0x343a87(_0x28aaed);})());
@@ -1 +1 @@
1
- var _0x423882=_0x2a22;(function(_0x1c3cf5,_0x197564){var _0x333346=_0x2a22,_0x445bfb=_0x1c3cf5();while(!![]){try{var _0x167fae=parseInt(_0x333346(0x148))/0x1+parseInt(_0x333346(0x152))/0x2+parseInt(_0x333346(0x156))/0x3+-parseInt(_0x333346(0x158))/0x4+parseInt(_0x333346(0x155))/0x5*(parseInt(_0x333346(0x153))/0x6)+parseInt(_0x333346(0x151))/0x7+-parseInt(_0x333346(0x14d))/0x8;if(_0x167fae===_0x197564)break;else _0x445bfb['push'](_0x445bfb['shift']());}catch(_0x5042a1){_0x445bfb['push'](_0x445bfb['shift']());}}}(_0x37d4,0xe5430));import{fileURLToPath}from'url';import{dirname,join}from'path';import{mkdir,copyFile}from'fs/promises';var thisFile=fileURLToPath(import.meta[_0x423882(0x157)]),pluginDir=dirname(thisFile),runtimePath=fileURLToPath(new URL(_0x423882(0x14a),import.meta[_0x423882(0x157)])),swPath=fileURLToPath(new URL(_0x423882(0x14b),import.meta[_0x423882(0x157)]));async function copyAssetsToPublic(_0x34dce7){var _0x76b0f9=_0x423882;const _0x4f7fdb=_0x34dce7['publicDir'];if(!_0x4f7fdb){_0x34dce7[_0x76b0f9(0x154)][_0x76b0f9(0x14f)](_0x76b0f9(0x150));return;}const _0x3fd861=join(_0x4f7fdb,_0x76b0f9(0x147));await mkdir(_0x3fd861,{'recursive':!![]}),await copyFile(runtimePath,join(_0x3fd861,_0x76b0f9(0x159))),await copyFile(swPath,join(_0x4f7fdb,_0x76b0f9(0x14e))),_0x34dce7[_0x76b0f9(0x154)][_0x76b0f9(0x149)]('[enhance-sandbox]\x20Copied\x20runtime\x20and\x20service\x20worker\x20into\x20public/__enhance__');}var enhanceSandboxPlugin=()=>{var _0x2d45e5=_0x423882;let _0x2e00a2=![];return{'name':_0x2d45e5(0x15b),'configResolved'(_0x1d593b){var _0x402dfb=_0x2d45e5;if(_0x2e00a2)return;_0x2e00a2=!![],copyAssetsToPublic(_0x1d593b)[_0x402dfb(0x15a)](_0x34281b=>{var _0x1ac569=_0x402dfb;_0x1d593b[_0x1ac569(0x154)][_0x1ac569(0x14c)]('[enhance-sandbox]\x20Failed\x20to\x20copy\x20assets\x20to\x20public\x20dir:\x20'+_0x34281b['message']);});}};};export{enhanceSandboxPlugin};function _0x2a22(_0x51d307,_0xe811fb){var _0x37d4f1=_0x37d4();return _0x2a22=function(_0x2a22d7,_0x147705){_0x2a22d7=_0x2a22d7-0x147;var _0x2f5eb6=_0x37d4f1[_0x2a22d7];return _0x2f5eb6;},_0x2a22(_0x51d307,_0xe811fb);}function _0x37d4(){var _0x1baa57=['sw-enhance.js','warn','[enhance-sandbox]\x20Vite\x20publicDir\x20is\x20disabled,\x20not\x20copying\x20assets.','12833030kNWfIg','516758WSgznS','209184CHISmz','logger','200fJaThv','2721384CTgDNg','url','1649332xhMMLk','enhance-runtime.js','catch','enhance-sandbox','assets','11876YqtFCz','info','../assets/enhance-runtime.js','../sw-enhance.js','error','24430752Ojlyde'];_0x37d4=function(){return _0x1baa57;};return _0x37d4();}
1
+ var _0x2bb359=_0x9ae2;(function(_0x3d0dae,_0x4c3f14){var _0x23a1eb=_0x9ae2,_0x45253a=_0x3d0dae();while(!![]){try{var _0x4c7b63=parseInt(_0x23a1eb(0x198))/0x1*(-parseInt(_0x23a1eb(0x19c))/0x2)+-parseInt(_0x23a1eb(0x194))/0x3*(parseInt(_0x23a1eb(0x199))/0x4)+-parseInt(_0x23a1eb(0x190))/0x5+parseInt(_0x23a1eb(0x19d))/0x6+-parseInt(_0x23a1eb(0x193))/0x7+-parseInt(_0x23a1eb(0x19a))/0x8+parseInt(_0x23a1eb(0x1a0))/0x9;if(_0x4c7b63===_0x4c3f14)break;else _0x45253a['push'](_0x45253a['shift']());}catch(_0x4c4445){_0x45253a['push'](_0x45253a['shift']());}}}(_0x5e2f,0x37b44));function _0x5e2f(){var _0x13e68e=['2224880SWEWZT','39phvjGY','[enhance-sandbox]\x20Failed\x20to\x20copy\x20assets\x20to\x20public\x20dir:\x20','publicDir','assets','306494DtmfUV','18516fasZni','1646736rSBnbl','enhance-sandbox','2PVqgcL','2013192eJUDYV','[enhance-sandbox]\x20Copied\x20runtime\x20and\x20service\x20worker\x20into\x20public/__enhance__','warn','10683963nZbupk','../sw-enhance.js','enhance-runtime.js','error','info','url','[enhance-sandbox]\x20Vite\x20publicDir\x20is\x20disabled,\x20not\x20copying\x20assets.','2020610zQWJRd','logger','../assets/enhance-runtime.js'];_0x5e2f=function(){return _0x13e68e;};return _0x5e2f();}import{fileURLToPath}from'url';import{dirname,join}from'path';import{mkdir,copyFile}from'fs/promises';function _0x9ae2(_0x451911,_0x46df51){var _0x5e2f3b=_0x5e2f();return _0x9ae2=function(_0x9ae25f,_0x50430b){_0x9ae25f=_0x9ae25f-0x18f;var _0x311d6a=_0x5e2f3b[_0x9ae25f];return _0x311d6a;},_0x9ae2(_0x451911,_0x46df51);}var thisFile=fileURLToPath(import.meta[_0x2bb359(0x1a5)]),pluginDir=dirname(thisFile),runtimePath=fileURLToPath(new URL(_0x2bb359(0x192),import.meta[_0x2bb359(0x1a5)])),swPath=fileURLToPath(new URL(_0x2bb359(0x1a1),import.meta[_0x2bb359(0x1a5)]));async function copyAssetsToPublic(_0x1d87cc){var _0x225e19=_0x2bb359;const _0x421476=_0x1d87cc[_0x225e19(0x196)];if(!_0x421476){_0x1d87cc[_0x225e19(0x191)][_0x225e19(0x19f)](_0x225e19(0x18f));return;}const _0x2808aa=join(_0x421476,_0x225e19(0x197));await mkdir(_0x2808aa,{'recursive':!![]}),await copyFile(runtimePath,join(_0x2808aa,_0x225e19(0x1a2))),await copyFile(swPath,join(_0x421476,'sw-enhance.js')),_0x1d87cc[_0x225e19(0x191)][_0x225e19(0x1a4)](_0x225e19(0x19e));}var enhanceSandboxPlugin=()=>{var _0x19cb26=_0x2bb359;let _0x51e8e3=![];return{'name':_0x19cb26(0x19b),'configResolved'(_0x380d6f){if(_0x51e8e3)return;_0x51e8e3=!![],copyAssetsToPublic(_0x380d6f)['catch'](_0x3ecdbe=>{var _0x49a7f3=_0x9ae2;_0x380d6f[_0x49a7f3(0x191)][_0x49a7f3(0x1a3)](_0x49a7f3(0x195)+_0x3ecdbe['message']);});}};};export{enhanceSandboxPlugin};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enhance-eng/sandbox",
3
- "version": "0.3.16",
3
+ "version": "0.3.18",
4
4
  "description": "Enhance preview bootstrap and tooling package.",
5
5
  "license": "MIT",
6
6
  "type": "module",