@enhance-eng/sandbox 0.3.21-dev.a1057ef → 0.3.21
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.
- package/dist/assets/enhance-runtime.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1 -1
- package/dist/sw-enhance.js +1 -1
- package/dist/vite/index.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x397525=_0x4977;(function(_0x3e733f,_0x565363){const _0x43459b=_0x4977,_0x11a850=_0x3e733f();while(!![]){try{const _0x9411be=-parseInt(_0x43459b(0x115))/0x1*(-parseInt(_0x43459b(0x193))/0x2)+parseInt(_0x43459b(0x13f))/0x3+-parseInt(_0x43459b(0x157))/0x4+parseInt(_0x43459b(0x138))/0x5+-parseInt(_0x43459b(0x103))/0x6+-parseInt(_0x43459b(0xe6))/0x7+-parseInt(_0x43459b(0x188))/0x8;if(_0x9411be===_0x565363)break;else _0x11a850['push'](_0x11a850['shift']());}catch(_0x422a55){_0x11a850['push'](_0x11a850['shift']());}}}(_0x3c53,0x19b72));var DEFAULT_OVERLAY_PATH=!![]?'https://assets-dev.enhancelabs.ai/overlay.js':_0x397525(0x108),DEFAULT_BACKEND_URL=!![]?'https://enhance-api-dev.enhancelabs.workers.dev':_0x397525(0xec),DEFAULT_OVERLAY_HMR=!![]?![]:![];console[_0x397525(0x126)](_0x397525(0xee),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x3bb6bc){const _0x2d10c2=_0x397525;if(!_0x3bb6bc['publishableKey'])throw new Error(_0x2d10c2(0x183));const _0x38815e=_0x3bb6bc['__development']??{};return{'publishableKey':_0x3bb6bc[_0x2d10c2(0x12b)],'callbackBypass':_0x3bb6bc['callbackBypass']??[],'overlay':{'enabled':!![],'position':_0x2d10c2(0x1a2),'enableViteHmr':_0x38815e['enableOverlayHmr']??DEFAULT_OVERLAY_HMR},'logLevel':_0x2d10c2(0x12e),'swPath':'/sw-enhance.js','overlayPath':_0x38815e[_0x2d10c2(0x117)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':'/assets/enhance-runtime.js','security':_0x38815e[_0x2d10c2(0x14a)]??'permissive','backendUrl':_0x38815e[_0x2d10c2(0x173)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x515f0f=_0x397525;try{const _0x242b6b=new URLSearchParams(window[_0x515f0f(0x125)][_0x515f0f(0x12d)]);return _0x242b6b['get'](_0x515f0f(0x11b))?.[_0x515f0f(0x11f)]()||'';}catch{return'';}}var LOG_PREFIX=_0x397525(0x13a),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x2e2f51){const _0x43590d=_0x397525;console[_0x43590d(0x126)](LOG_PREFIX+_0x43590d(0xf0)),console[_0x43590d(0x126)](LOG_PREFIX+_0x43590d(0x175)+_0x2e2f51['overlayPath']),console['log'](LOG_PREFIX+_0x43590d(0x16b)+_0x2e2f51[_0x43590d(0xf8)]),currentOptions=_0x2e2f51[_0x43590d(0x1a1)],toggleHandler=_0x2e2f51[_0x43590d(0x14b)];if(overlayController){console[_0x43590d(0x126)](LOG_PREFIX+_0x43590d(0x145)),updateOverlay();return;}if(overlayLoadPromise)return console['log'](LOG_PREFIX+'\x20Load\x20already\x20in\x20progress\x20-\x20waiting...'),overlayLoadPromise;console['log'](LOG_PREFIX+_0x43590d(0x11a)),overlayLoadPromise=doLoadOverlay(_0x2e2f51);try{await overlayLoadPromise,console['log'](LOG_PREFIX+_0x43590d(0x141));}catch(_0x24b226){console[_0x43590d(0x165)](LOG_PREFIX+_0x43590d(0x184),_0x24b226);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0xa22d1e){const _0x35e27a=_0x397525;console[_0x35e27a(0x126)](LOG_PREFIX+_0x35e27a(0x150));if(typeof window===_0x35e27a(0x102)){console['log'](LOG_PREFIX+'\x20No\x20window\x20object\x20-\x20skipping');return;}if(window[_0x35e27a(0x154)]){console[_0x35e27a(0x126)](LOG_PREFIX+'\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit'),overlayController=window['__enhanceOverlay'];return;}console[_0x35e27a(0x126)](LOG_PREFIX+_0x35e27a(0x198));try{_0xa22d1e[_0x35e27a(0xf8)]&&(console[_0x35e27a(0x126)](LOG_PREFIX+_0x35e27a(0x162)),await setupRemoteHMR(_0xa22d1e[_0x35e27a(0x117)]));console['log'](LOG_PREFIX+_0x35e27a(0x120)+_0xa22d1e[_0x35e27a(0x117)]);const _0x545e9c=Date[_0x35e27a(0xfa)](),_0x3b5309=await import(_0xa22d1e['overlayPath']);console['log'](LOG_PREFIX+_0x35e27a(0x132)+(Date[_0x35e27a(0xfa)]()-_0x545e9c)+'ms'),console[_0x35e27a(0x126)](LOG_PREFIX+_0x35e27a(0x12c),Object[_0x35e27a(0x118)](_0x3b5309));if(typeof _0x3b5309?.['createOverlay']!==_0x35e27a(0x16c)){console[_0x35e27a(0x165)](LOG_PREFIX+_0x35e27a(0x105)),console['error'](LOG_PREFIX+_0x35e27a(0xf5),Object[_0x35e27a(0x118)](_0x3b5309));return;}console['log'](LOG_PREFIX+_0x35e27a(0x10b));const _0x1071bc=_0x3b5309[_0x35e27a(0x15f)]();console['log'](LOG_PREFIX+'\x20Controller\x20created:',_0x1071bc),overlayController=_0x1071bc,window[_0x35e27a(0x154)]=_0x1071bc,_0x1071bc[_0x35e27a(0x14b)](_0xa22d1e['onToggle']),console[_0x35e27a(0x126)](LOG_PREFIX+'\x20Overlay\x20controller\x20initialized\x20and\x20cached'),console[_0x35e27a(0x126)](LOG_PREFIX+_0x35e27a(0x116)),updateOverlay();}catch(_0x1b6246){console['error'](LOG_PREFIX+_0x35e27a(0x152),_0x1b6246);}}function updateOverlay(){const _0xf67d41=_0x397525;console[_0xf67d41(0x126)](LOG_PREFIX+_0xf67d41(0x179)),console['log'](LOG_PREFIX+_0xf67d41(0x114)+!!overlayController),console[_0xf67d41(0x126)](LOG_PREFIX+_0xf67d41(0xe9)+!!currentOptions);if(!overlayController||!currentOptions){console[_0xf67d41(0x126)](LOG_PREFIX+_0xf67d41(0x186));return;}const _0x315a6a=composeOverlayState(currentOptions);console[_0xf67d41(0x126)](LOG_PREFIX+_0xf67d41(0x12f),JSON[_0xf67d41(0x16e)](_0x315a6a,null,0x2)),overlayController['update'](_0x315a6a),console['log'](LOG_PREFIX+_0xf67d41(0x119));}function composeOverlayState(_0x546aee){const _0x4922e7=_0x397525,_0x5757e2=getEnhancementId();return console['log'](LOG_PREFIX+_0x4922e7(0x178)+_0x5757e2),console[_0x4922e7(0x126)](LOG_PREFIX+_0x4922e7(0x18e)+state['enabled']),console[_0x4922e7(0x126)](LOG_PREFIX+_0x4922e7(0x172)+state[_0x4922e7(0xf2)]),{'enhancementId':_0x5757e2,'enabled':state['enabled'],'controlled':state['controlled'],'overlayPosition':_0x546aee[_0x4922e7(0x19c)][_0x4922e7(0x176)],'securityMode':_0x546aee[_0x4922e7(0x14a)],'backendBaseUrl':_0x546aee[_0x4922e7(0x173)],'appError':state[_0x4922e7(0x158)]};}async function setupRemoteHMR(_0x1c3650){const _0x1498ba=_0x397525;console['log'](LOG_PREFIX+_0x1498ba(0x156)+_0x1c3650);if(typeof window===_0x1498ba(0x102))return;try{const _0x2c1f5e=new URL(_0x1c3650,window[_0x1498ba(0x125)][_0x1498ba(0x107)]),_0x3d711f=_0x2c1f5e[_0x1498ba(0x107)];console[_0x1498ba(0x126)](LOG_PREFIX+_0x1498ba(0x15b)+_0x3d711f+_0x1498ba(0x168)+window[_0x1498ba(0x125)][_0x1498ba(0x107)]);if(_0x3d711f===window[_0x1498ba(0x125)][_0x1498ba(0x107)]){console['log'](LOG_PREFIX+_0x1498ba(0x182));return;}console[_0x1498ba(0x126)](LOG_PREFIX+_0x1498ba(0x16a)),await ensureReactRefreshPreamble(_0x3d711f),await ensureViteClient(_0x3d711f),console[_0x1498ba(0x126)](LOG_PREFIX+'\x20HMR\x20setup\x20complete');}catch(_0x260d83){console[_0x1498ba(0xe7)](LOG_PREFIX+_0x1498ba(0x121),_0x260d83);}}async function ensureReactRefreshPreamble(_0x583b41){const _0x4ab439=_0x397525;window[_0x4ab439(0x1a4)]??(window[_0x4ab439(0x1a4)]=new Set());if(window['__enhanceReactRefreshInstalledOrigins'][_0x4ab439(0xfe)](_0x583b41)){console[_0x4ab439(0x126)](LOG_PREFIX+_0x4ab439(0x18a)+_0x583b41);return;}console[_0x4ab439(0x126)](LOG_PREFIX+'\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20'+_0x583b41+_0x4ab439(0x122));const _0x4fecd3=await import(_0x583b41+_0x4ab439(0x10a)),_0x492ed0=_0x4fecd3&&typeof _0x4fecd3===_0x4ab439(0xef)&&'default'in _0x4fecd3?_0x4fecd3[_0x4ab439(0x169)]:_0x4fecd3;if(!isRefreshRuntime(_0x492ed0)){console[_0x4ab439(0xe7)](LOG_PREFIX+_0x4ab439(0x17c));return;}_0x492ed0[_0x4ab439(0xed)](window),window[_0x4ab439(0x1a0)]=()=>{},window[_0x4ab439(0x1a6)]=()=>_0x2a30ec=>_0x2a30ec,window[_0x4ab439(0x106)]=!![],window[_0x4ab439(0x1a4)][_0x4ab439(0x129)](_0x583b41),console[_0x4ab439(0x126)](LOG_PREFIX+'\x20React\x20Refresh\x20runtime\x20installed\x20for\x20'+_0x583b41);}async function ensureViteClient(_0x461043){const _0x33e7c4=_0x397525;window[_0x33e7c4(0xf7)]??(window['__viteHMRLoaded']=new Set());if(window['__viteHMRLoaded'][_0x33e7c4(0xfe)](_0x461043)){console['log'](LOG_PREFIX+_0x33e7c4(0x14e)+_0x461043);return;}console['log'](LOG_PREFIX+_0x33e7c4(0x19e)+_0x461043+_0x33e7c4(0x122)),await import(_0x461043+'/@vite/client'),window[_0x33e7c4(0xf7)][_0x33e7c4(0x129)](_0x461043),console[_0x33e7c4(0x126)](LOG_PREFIX+_0x33e7c4(0x17d)+_0x461043);}function _0x3c53(){const _0xb14897=['runtimeURL','__enhanceOptions','serviceWorker','reload','https://','\x20Already\x20initialized\x20-\x20returning\x20existing\x20controller','\x20registerServiceWorker()\x20complete','\x20overlayController\x20exists:\x20','173807nFVzvQ','\x20Calling\x20updateOverlay()...','overlayPath','keys','\x20Overlay\x20update\x20complete','\x20Starting\x20fresh\x20overlay\x20load...','enhancement','getItem','disable','enhance.enhancementId','trim','\x20Importing\x20overlay\x20module\x20from:\x20','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','...','querySelector','getRegistration','location','log','ready','\x20Resolved\x20to:\x20','add','string','publishableKey','\x20Module\x20exports:','search','info','\x20Updating\x20overlay\x20with\x20state:','enhance','./dev/index.js','\x20Module\x20imported\x20in\x20','waiting','^4.1.1','^7.2.4','/resolve','./dev/index.d.ts','557505GyTJQY','controller','[Enhance\x20Overlay]','^24.10.1','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','\x20Resolution\x20failed:\x20','href','380367JNlFNh','\x20Calling:\x20','\x20loadOverlay()\x20complete','set','\x20Enhancement\x20mode\x20-\x20ID:\x20','\x20Explicit\x20disable\x20-\x20exiting','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','\x20Sending\x20configuration\x20to\x20SW...','\x20registerServiceWorker()\x20called','installing','\x20No\x20service\x20worker\x20active\x20to\x20configure','security','onToggle','\x20Failed\x20to\x20unregister\x20service\x20worker:','MIT','\x20Vite\x20client\x20already\x20loaded\x20for\x20','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','\x20doLoadOverlay()\x20starting...','module','\x20Failed\x20to\x20import/create\x20overlay:','\x20Persisted\x20enhancement\x20to\x20sessionStorage','__enhanceOverlay','off','\x20setupRemoteHMR()\x20for\x20','56700FoiEZy','appError','replace','get','\x20Overlay\x20origin:\x20','removeItem','cachedUrl','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','createOverlay','./dev/cli.js','version','\x20Setting\x20up\x20remote\x20HMR...','serviceWorkerURL','0.3.21','error','\x20Found\x20cached\x20URL\x20for\x20enhancement\x20ID','operatingPath',',\x20page\x20origin:\x20','default','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','\x20enableViteHmr:\x20','function','err','stringify','scriptURL','searchParams','toString','\x20composeOverlayState\x20-\x20state.controlled:\x20','backendUrl','__enhanceController','\x20overlayPath:\x20','position','bun\x20version\x20patch\x20--no-git-tag-version','\x20composeOverlayState\x20-\x20enhancementId:\x20','\x20updateOverlay()\x20called','./dev/vite/index.d.ts','readyState','\x20Invalid\x20React\x20Refresh\x20runtime','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','/public/enhancements/','\x20Document\x20readyState:\x20','active','enabled','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()','\x20loadOverlay()\x20failed:','\x20unregisterServiceWorker()\x20called','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','\x20Service\x20workers\x20NOT\x20supported','1623240PJgfpl','public','\x20React\x20Refresh\x20already\x20installed\x20for\x20','^8.5.1','replaceState','init','\x20composeOverlayState\x20-\x20state.enabled:\x20','http://','enhance:disable','history','./dev/vite/index.js','2FMlduT','dev/','swPath','/assets/enhance-runtime.js','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','\x20Failed\x20to\x20register\x20service\x20worker:','json','\x20Normal\x20mode\x20-\x20no\x20enhancement','overlay','explicitDisable','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','\x20Sending\x20config\x20to\x20SW:','$RefreshReg$','options','bottom-right','enhance.enhancementUrl','__enhanceReactRefreshInstalledOrigins','[data-enhance-runtime-bootstrap]','$RefreshSig$','vite:error','__enhanceResolvedUrl','[Enhance\x20Runtime]','\x20Failed\x20to\x20resolve\x20enhancement\x20-\x20aborting','startsWith','\x20Page\x20not\x20enhanced\x20-\x20reloading','__enhanceInitialized','356790LksFZb','warn','\x20SW\x20just\x20activated\x20-\x20reloading\x20to\x20enable\x20enhancement','\x20currentOptions\x20exists:\x20','unregister','\x20Resolving\x20enhancement\x20ID:\x20','https://api.enhancelabs.ai','injectIntoGlobalHook','[Enhance\x20Config]\x20Build-time\x20defaults:','object','\x20loadOverlay()\x20called','delete','controlled','\x20Registering\x20SW\x20with\x20enhancement\x20URL...','enhancementId','\x20Available\x20exports:','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','__viteHMRLoaded','enableViteHmr','title','now','sw-enhance','\x20Current\x20URL:\x20','@enhance-eng/sandbox','has','status','\x20Registering\x20SW\x20at\x20','\x20BLOCKING\x20SW\x20detected:\x20','undefined','232302tCrAdD','ENHANCE_OVERLAY_PATH=https://assets-dev.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','\x20Module\x20missing\x20createOverlay\x20export!','__vite_plugin_react_preamble_installed__','origin','https://assets.enhancelabs.ai/overlay.js','^11.1.0','/@react-refresh','\x20Calling\x20createOverlay()...','0.0.0'];_0x3c53=function(){return _0xb14897;};return _0x3c53();}function isRefreshRuntime(_0x790df3){const _0x569450=_0x397525;return typeof _0x790df3==='object'&&_0x790df3!==null&&_0x569450(0xed)in _0x790df3&&typeof _0x790df3[_0x569450(0xed)]===_0x569450(0x16c);}var WORKER_MESSAGE_CONFIG='enhance:configure',WORKER_MESSAGE_DISABLE=_0x397525(0x190),LOG_PREFIX2='[Enhance\x20SW-Client]',registration=null,currentOptions2=null;async function registerServiceWorker(_0x138694){const _0x41ab20=_0x397525;console['log'](LOG_PREFIX2+_0x41ab20(0x147));if(!(_0x41ab20(0x10f)in navigator)){console[_0x41ab20(0xe7)](LOG_PREFIX2+_0x41ab20(0x187));return;}const _0x3a2036=!!navigator[_0x41ab20(0x10f)][_0x41ab20(0x139)];currentOptions2=_0x138694;const _0x8a211=await detectBlockingServiceWorker(_0x138694[_0x41ab20(0x195)]);if(_0x8a211){console[_0x41ab20(0x165)](LOG_PREFIX2+_0x41ab20(0x101)+_0x8a211);return;}try{console[_0x41ab20(0x126)](LOG_PREFIX2+_0x41ab20(0x100)+_0x138694['swPath']+_0x41ab20(0x122)),registration=await navigator[_0x41ab20(0x10f)]['register'](_0x138694[_0x41ab20(0x195)],{'scope':'/'}),console[_0x41ab20(0x126)](LOG_PREFIX2+'\x20Waiting\x20for\x20SW\x20ready...'),await navigator['serviceWorker'][_0x41ab20(0x127)],console[_0x41ab20(0x126)](LOG_PREFIX2+'\x20SW\x20ready'),state[_0x41ab20(0xf2)]=ownsCurrentController(_0x138694['swPath']);if(!_0x3a2036&&!navigator[_0x41ab20(0x10f)]['controller']){console[_0x41ab20(0x126)](LOG_PREFIX2+_0x41ab20(0xe8)),window['location'][_0x41ab20(0x110)]();return;}console[_0x41ab20(0x126)](LOG_PREFIX2+_0x41ab20(0x146)),await sendConfiguration();if(state[_0x41ab20(0x181)]){const _0x5c154c=document[_0x41ab20(0x123)](_0x41ab20(0x1a5))!==null;if(!_0x5c154c){console[_0x41ab20(0x126)](LOG_PREFIX2+_0x41ab20(0xe4)),window[_0x41ab20(0x125)][_0x41ab20(0x110)]();return;}}updateOverlay(),console[_0x41ab20(0x126)](LOG_PREFIX2+_0x41ab20(0x113));}catch(_0x3c29dd){console[_0x41ab20(0x165)](LOG_PREFIX2+_0x41ab20(0x199),_0x3c29dd);}}async function sendConfiguration(){const _0x28c4a2=_0x397525;if(!state[_0x28c4a2(0x181)]||!currentOptions2)return;const _0x47744a=await resolveWorker();if(!_0x47744a){console['warn'](LOG_PREFIX2+_0x28c4a2(0x149));return;}const _0x23bab4=window[_0x28c4a2(0x1a8)]??null,_0x379627={'publishableKey':currentOptions2[_0x28c4a2(0x12b)],'callbackBypass':currentOptions2['callbackBypass'],'securityMode':currentOptions2[_0x28c4a2(0x14a)],'enhancementUrl':_0x23bab4??void 0x0};console[_0x28c4a2(0x126)](LOG_PREFIX2+_0x28c4a2(0x19f),JSON[_0x28c4a2(0x16e)](_0x379627,null,0x2)),_0x47744a['postMessage']({'type':WORKER_MESSAGE_CONFIG,'config':_0x379627});}async function unregisterServiceWorker(_0xc85c5e){const _0x39b9fd=_0x397525;console[_0x39b9fd(0x126)](LOG_PREFIX2+_0x39b9fd(0x185));if(!(_0x39b9fd(0x10f)in navigator))return;try{const _0x6d7adf=registration??await navigator['serviceWorker'][_0x39b9fd(0x124)]('/');if(!_0x6d7adf)return;const _0x25c561=[_0x6d7adf[_0x39b9fd(0x180)]?.[_0x39b9fd(0x16f)],_0x6d7adf[_0x39b9fd(0x133)]?.[_0x39b9fd(0x16f)],_0x6d7adf['installing']?.[_0x39b9fd(0x16f)]],_0x36d4e0=_0x25c561['some'](_0x3d5973=>_0x3d5973&&ownsServiceWorker(_0x3d5973,_0xc85c5e));if(!_0x36d4e0)return;_0x6d7adf[_0x39b9fd(0x180)]&&_0x6d7adf[_0x39b9fd(0x180)]['postMessage']({'type':WORKER_MESSAGE_DISABLE}),await _0x6d7adf[_0x39b9fd(0xea)](),registration=null,currentOptions2=null,console['log'](LOG_PREFIX2+'\x20SW\x20unregistered');}catch(_0xf5f95f){console['error'](LOG_PREFIX2+_0x39b9fd(0x14c),_0xf5f95f);}}function ownsServiceWorker(_0x164c28,_0x43aeb4){const _0xa29d9a=_0x397525,_0x25b829=typeof window!==_0xa29d9a(0x102)?window['location']['origin']:'',_0x66b21c=new URL(_0x43aeb4,_0x25b829||void 0x0)[_0xa29d9a(0x13e)];return _0x164c28===_0x66b21c||_0x164c28['includes'](_0xa29d9a(0xfb));}function ownsCurrentController(_0x1af7d4){const _0x4d319f=_0x397525,_0x4d99a7=navigator[_0x4d319f(0x10f)]?.[_0x4d319f(0x139)];if(!_0x4d99a7)return![];return ownsServiceWorker(_0x4d99a7[_0x4d319f(0x16f)],_0x1af7d4);}async function detectBlockingServiceWorker(_0x22a185){const _0x9f315c=_0x397525;if(!navigator[_0x9f315c(0x10f)])return null;try{const _0x1f87b0=await navigator['serviceWorker'][_0x9f315c(0x124)]('/'),_0x35c533=_0x1f87b0?.[_0x9f315c(0x180)]?.[_0x9f315c(0x16f)];if(!_0x35c533)return null;if(ownsServiceWorker(_0x35c533,_0x22a185))return null;return _0x35c533;}catch{return null;}}async function resolveWorker(){const _0xd8461b=_0x397525,_0x3b7448=registration??await navigator['serviceWorker']?.['getRegistration']('/');return _0x3b7448?.[_0xd8461b(0x180)]??_0x3b7448?.['waiting']??_0x3b7448?.[_0xd8461b(0x148)]??null;}var LOG_PREFIX3=_0x397525(0x1a9),STORAGE_KEY_ENHANCEMENT_ID=_0x397525(0x11e),STORAGE_KEY_ENHANCEMENT_URL=_0x397525(0x1a3);function isInitialized(){const _0x18cd21=_0x397525;return typeof window!==_0x18cd21(0x102)&&window[_0x18cd21(0xe5)]===!![];}function setInitialized(_0x515711){const _0x13aee6=_0x397525;typeof window!=='undefined'&&(window[_0x13aee6(0xe5)]=_0x515711);}function getOptions(){const _0x5377d3=_0x397525;return typeof window!==_0x5377d3(0x102)?window[_0x5377d3(0x10e)]??null:null;}function setOptions(_0x35fcfb){const _0x4197ab=_0x397525;typeof window!==_0x4197ab(0x102)&&(window[_0x4197ab(0x10e)]=_0x35fcfb);}var Enhance={'init'(_0x27abc8){const _0x4cc6a9=_0x397525,_0x33770d=Date['now']();console['log'](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x33770d),console[_0x4cc6a9(0x126)](LOG_PREFIX3+_0x4cc6a9(0xfc)+window[_0x4cc6a9(0x125)][_0x4cc6a9(0x13e)]),console[_0x4cc6a9(0x126)](LOG_PREFIX3+_0x4cc6a9(0x17f)+document[_0x4cc6a9(0x17b)]);if(isInitialized())return console[_0x4cc6a9(0xe7)](LOG_PREFIX3+_0x4cc6a9(0x112)),window[_0x4cc6a9(0x174)]??createController();setInitialized(!![]);const _0x82c9d7=normalizeOptions(_0x27abc8);setOptions(_0x82c9d7);const _0xeeb2f5=parseEnhancementParams();console[_0x4cc6a9(0x126)](LOG_PREFIX3+'\x20Enhancement\x20params:',JSON[_0x4cc6a9(0x16e)](_0xeeb2f5,null,0x2));if(_0xeeb2f5[_0x4cc6a9(0x19d)])return cleanUrlParam(_0x4cc6a9(0x130)),clearPersistedEnhancement(),console[_0x4cc6a9(0x126)](LOG_PREFIX3+_0x4cc6a9(0x144)),createController();if(!_0xeeb2f5[_0x4cc6a9(0xf4)])return console[_0x4cc6a9(0x126)](LOG_PREFIX3+_0x4cc6a9(0x19b)),void unregisterServiceWorker(_0x82c9d7[_0x4cc6a9(0x195)]),setupViteErrorListeners(),createController();return console[_0x4cc6a9(0x126)](LOG_PREFIX3+_0x4cc6a9(0x143)+_0xeeb2f5[_0x4cc6a9(0xf4)]),state[_0x4cc6a9(0x181)]=!![],void initializeEnhancement(_0x82c9d7,_0xeeb2f5[_0x4cc6a9(0xf4)],_0xeeb2f5[_0x4cc6a9(0x15d)]),createController();}};async function initializeEnhancement(_0x5252a2,_0x28ff9c,_0x18cf18){const _0x85d7a4=_0x397525;let _0x363cbb=_0x18cf18;if(!_0x363cbb){console[_0x85d7a4(0x126)](LOG_PREFIX3+_0x85d7a4(0xeb)+_0x28ff9c),_0x363cbb=await resolveEnhancementUrl(_0x5252a2,_0x28ff9c);if(!_0x363cbb){console[_0x85d7a4(0x165)](LOG_PREFIX3+_0x85d7a4(0x1aa)),state['enabled']=![];return;}}else console[_0x85d7a4(0x126)](LOG_PREFIX3+'\x20Using\x20cached\x20enhancement\x20URL:\x20'+_0x363cbb);persistEnhancement(_0x28ff9c,_0x363cbb),window[_0x85d7a4(0x1a8)]=_0x363cbb,console[_0x85d7a4(0x126)](LOG_PREFIX3+_0x85d7a4(0xf3)),await registerServiceWorker(_0x5252a2),console['log'](LOG_PREFIX3+'\x20Loading\x20overlay...'),await loadOverlay({'overlayPath':_0x5252a2[_0x85d7a4(0x117)],'enableViteHmr':_0x5252a2[_0x85d7a4(0x19c)][_0x85d7a4(0xf8)],'options':_0x5252a2,'onToggle':handleToggle}),console[_0x85d7a4(0x126)](LOG_PREFIX3+'\x20Enhancement\x20initialization\x20complete');}async function resolveEnhancementUrl(_0xd36967,_0x25e03b){const _0x201b29=_0x397525,_0x2339f9=_0xd36967[_0x201b29(0x173)]+_0x201b29(0x17e)+_0x25e03b+_0x201b29(0x136);console['log'](LOG_PREFIX3+_0x201b29(0x140)+_0x2339f9);try{const _0x57bbda=await fetch(_0x2339f9,{'headers':{'X-Enhance-Publishable-Key':_0xd36967['publishableKey']}});if(!_0x57bbda['ok']){const _0x3dc7c3=await _0x57bbda['text']();return console[_0x201b29(0x165)](LOG_PREFIX3+_0x201b29(0x13d)+_0x57bbda[_0x201b29(0xff)]+'\x20'+_0x3dc7c3),null;}const _0x301f4d=await _0x57bbda[_0x201b29(0x19a)](),_0x5bda7c=''+_0xd36967['backendUrl']+_0x301f4d[_0x201b29(0x167)];return console[_0x201b29(0x126)](LOG_PREFIX3+_0x201b29(0x128)+_0x5bda7c),_0x5bda7c;}catch(_0x56b464){return console[_0x201b29(0x165)](LOG_PREFIX3+'\x20Resolution\x20error:',_0x56b464),null;}}function parseEnhancementParams(){const _0xa034bf=_0x397525,_0x153676=new URL(window['location'][_0xa034bf(0x13e)]),_0x3078bd=_0x153676[_0xa034bf(0x170)]['get'](_0xa034bf(0x130))?.['toLowerCase'](),_0x1865a3=_0x3078bd==='0'||_0x3078bd==='false'||_0x3078bd===_0xa034bf(0x155);let _0x24d395=_0x153676['searchParams'][_0xa034bf(0x15a)](_0xa034bf(0x11b)),_0x242808=null;if(_0x24d395)try{const _0x220949=sessionStorage[_0xa034bf(0x11c)](STORAGE_KEY_ENHANCEMENT_ID),_0x32f7ad=sessionStorage[_0xa034bf(0x11c)](STORAGE_KEY_ENHANCEMENT_URL);_0x220949===_0x24d395&&_0x32f7ad&&(_0x242808=_0x32f7ad,console[_0xa034bf(0x126)](LOG_PREFIX3+_0xa034bf(0x166)));}catch{}else try{const _0x3e2ad3=sessionStorage['getItem'](STORAGE_KEY_ENHANCEMENT_ID),_0x2fb2dd=sessionStorage['getItem'](STORAGE_KEY_ENHANCEMENT_URL);_0x3e2ad3&&_0x2fb2dd&&(_0x24d395=_0x3e2ad3,_0x242808=_0x2fb2dd,console[_0xa034bf(0x126)](LOG_PREFIX3+'\x20Restored\x20enhancement\x20from\x20sessionStorage'),_0x153676[_0xa034bf(0x170)][_0xa034bf(0x142)](_0xa034bf(0x11b),_0x24d395),window['history'][_0xa034bf(0x18c)](null,document[_0xa034bf(0xf9)],_0x153676['toString']()));}catch{}return{'enhancementId':_0x24d395,'cachedUrl':_0x242808,'explicitDisable':_0x1865a3};}function persistEnhancement(_0x591407,_0x36ae3e){const _0x2308a0=_0x397525;try{sessionStorage['setItem'](STORAGE_KEY_ENHANCEMENT_ID,_0x591407),sessionStorage['setItem'](STORAGE_KEY_ENHANCEMENT_URL,_0x36ae3e),console[_0x2308a0(0x126)](LOG_PREFIX3+_0x2308a0(0x153));}catch{}}function clearPersistedEnhancement(){const _0x1ed708=_0x397525;try{sessionStorage[_0x1ed708(0x15c)](STORAGE_KEY_ENHANCEMENT_ID),sessionStorage[_0x1ed708(0x15c)](STORAGE_KEY_ENHANCEMENT_URL),console[_0x1ed708(0x126)](LOG_PREFIX3+'\x20Cleared\x20persisted\x20enhancement');}catch{}}function createController(){const _0x5db5fe=_0x397525,_0x19e8c6={'enable'(){const _0x4aad01=_0x4977,_0x34ca78=getOptions();if(!_0x34ca78)return;state[_0x4aad01(0x181)]=!![],void registerServiceWorker(_0x34ca78),void sendConfiguration(),updateOverlay();},'disable'(){const _0x393487=_0x4977,_0x5e166f=getOptions();if(!_0x5e166f)return;state[_0x393487(0x181)]=![],state['controlled']=![],clearPersistedEnhancement(),updateOverlay(),void unregisterServiceWorker(_0x5e166f[_0x393487(0x195)]);},'status'(){const _0xff1eae=_0x4977;return{'enabled':state[_0xff1eae(0x181)],'controlled':state[_0xff1eae(0xf2)]};}};return typeof window!==_0x5db5fe(0x102)&&(window[_0x5db5fe(0x174)]=_0x19e8c6),_0x19e8c6;}function handleToggle(){const _0xe83edb=_0x397525,_0x13a00b=createController();state[_0xe83edb(0x181)]?_0x13a00b[_0xe83edb(0x11d)]():_0x13a00b['enable']();}function cleanUrlParam(_0x1768f5){const _0x28d06d=_0x397525,_0x354211=new URL(window['location'][_0x28d06d(0x13e)]);_0x354211['searchParams'][_0x28d06d(0xfe)](_0x1768f5)&&(_0x354211[_0x28d06d(0x170)][_0x28d06d(0xf1)](_0x1768f5),window[_0x28d06d(0x191)]['replaceState'](null,document[_0x28d06d(0xf9)],_0x354211[_0x28d06d(0x171)]()));}function setupViteErrorListeners(){const _0x41d7ee=_0x397525;import.meta.hot&&(import.meta.hot['on'](_0x41d7ee(0x1a7),_0x4b9169=>{const _0x2f0a98=_0x41d7ee;state[_0x2f0a98(0x158)]={'message':_0x4b9169[_0x2f0a98(0x16d)]['message']},updateOverlay();}),import.meta.hot['on']('vite:beforeUpdate',()=>{const _0x45d4b2=_0x41d7ee;state[_0x45d4b2(0x158)]&&(state[_0x45d4b2(0x158)]=null,updateOverlay());}));}var package_default={'name':_0x397525(0xfd),'version':_0x397525(0x164),'type':_0x397525(0x151),'description':_0x397525(0x15e),'license':_0x397525(0x14d),'main':_0x397525(0x131),'module':_0x397525(0x131),'types':_0x397525(0x137),'exports':{'.':{'types':_0x397525(0x137),'import':_0x397525(0x131)},'./vite':{'types':_0x397525(0x17a),'import':_0x397525(0x192)}},'files':[_0x397525(0x194)],'bin':{'enhance-sandbox':_0x397525(0x160)},'scripts':{'typecheck':'tsc\x20--noEmit','dev':_0x397525(0xf6),'dev:build':_0x397525(0x197),'dev:staging':_0x397525(0x13c),'dev:staging:build':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','build':'ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','build:release':_0x397525(0x14f),'build:release:dev':_0x397525(0x104),'version':_0x397525(0x177)},'dependencies':{'commander':_0x397525(0x109),'zod':'^3.22.4'},'devDependencies':{'@types/node':_0x397525(0x13b),'javascript-obfuscator':_0x397525(0x134),'tsup':_0x397525(0x18b),'vite':_0x397525(0x135)},'publishConfig':{'access':_0x397525(0x189)}},DEFAULT_SERVICE_WORKER_PATH='/sw-enhance.js',DEFAULT_RUNTIME_PATH=_0x397525(0x196),PACKAGE_VERSION=typeof package_default['version']===_0x397525(0x12a)?package_default[_0x397525(0x161)]:_0x397525(0x10c);function normalizeAssetPath(_0x482de1){const _0x186df5=_0x397525;if(!_0x482de1)return _0x482de1;if(_0x482de1[_0x186df5(0xe3)](_0x186df5(0x18f))||_0x482de1[_0x186df5(0xe3)](_0x186df5(0x111)))return _0x482de1;const _0xd3fc87=_0x482de1[_0x186df5(0x159)](/^\.\//,'');return _0xd3fc87['startsWith']('/')?_0xd3fc87:'/'+_0xd3fc87;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x475b13){const _0x392871=_0x397525;return Enhance[_0x392871(0x18d)](_0x475b13);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function _0x4977(_0x16e3cd,_0x1f2f3b){_0x16e3cd=_0x16e3cd-0xe3;const _0x3c53c9=_0x3c53();let _0x497712=_0x3c53c9[_0x16e3cd];return _0x497712;}function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function resolveServiceWorkerPath(){return serviceWorkerURL();}function serviceWorkerURL(){const _0x59c04d=_0x397525;return Enhance2[_0x59c04d(0x163)]();}function runtimeURL(){const _0x4f0650=_0x397525;return Enhance2[_0x4f0650(0x10d)]();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
|
|
1
|
+
const _0x1a08ee=_0x7918;(function(_0x19ca46,_0x408113){const _0x5d913c=_0x7918,_0x26030f=_0x19ca46();while(!![]){try{const _0x33f68e=parseInt(_0x5d913c(0x201))/0x1+parseInt(_0x5d913c(0x26e))/0x2*(-parseInt(_0x5d913c(0x249))/0x3)+parseInt(_0x5d913c(0x1e2))/0x4+-parseInt(_0x5d913c(0x215))/0x5*(parseInt(_0x5d913c(0x1cd))/0x6)+-parseInt(_0x5d913c(0x25d))/0x7+-parseInt(_0x5d913c(0x27e))/0x8*(parseInt(_0x5d913c(0x1e6))/0x9)+parseInt(_0x5d913c(0x239))/0xa;if(_0x33f68e===_0x408113)break;else _0x26030f['push'](_0x26030f['shift']());}catch(_0x4a31fe){_0x26030f['push'](_0x26030f['shift']());}}}(_0x12ac,0x73b8b));var DEFAULT_OVERLAY_PATH=!![]?'https://assets.enhancelabs.ai/overlay.js':'https://assets.enhancelabs.ai/overlay.js',DEFAULT_BACKEND_URL=!![]?_0x1a08ee(0x1ae):_0x1a08ee(0x1ae),DEFAULT_OVERLAY_HMR=!![]?![]:![];console[_0x1a08ee(0x1d3)]('[Enhance\x20Config]\x20Build-time\x20defaults:',{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x3c1f1a){const _0x2271c8=_0x1a08ee;if(!_0x3c1f1a[_0x2271c8(0x279)])throw new Error(_0x2271c8(0x1cb));const _0x5657f3=_0x3c1f1a[_0x2271c8(0x1ac)]??{};return{'publishableKey':_0x3c1f1a[_0x2271c8(0x279)],'callbackBypass':_0x3c1f1a[_0x2271c8(0x1be)]??[],'overlay':{'enabled':!![],'position':'bottom-right','enableViteHmr':_0x5657f3['enableOverlayHmr']??DEFAULT_OVERLAY_HMR},'logLevel':_0x2271c8(0x26d),'swPath':_0x2271c8(0x1fe),'overlayPath':_0x5657f3[_0x2271c8(0x27f)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x2271c8(0x256),'security':_0x5657f3[_0x2271c8(0x220)]??_0x2271c8(0x22e),'backendUrl':_0x5657f3[_0x2271c8(0x206)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x58fc6e=_0x1a08ee;try{const _0x3f02b5=new URLSearchParams(window[_0x58fc6e(0x26c)]['search']);return _0x3f02b5[_0x58fc6e(0x25a)](_0x58fc6e(0x217))?.['trim']()||'';}catch{return'';}}var LOG_PREFIX=_0x1a08ee(0x236),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x3fa7a7){const _0x3c7771=_0x1a08ee;console[_0x3c7771(0x1d3)](LOG_PREFIX+_0x3c7771(0x233)),console[_0x3c7771(0x1d3)](LOG_PREFIX+_0x3c7771(0x1f7)+_0x3fa7a7[_0x3c7771(0x27f)]),console[_0x3c7771(0x1d3)](LOG_PREFIX+_0x3c7771(0x20b)+_0x3fa7a7[_0x3c7771(0x1bf)]),currentOptions=_0x3fa7a7[_0x3c7771(0x1d9)],toggleHandler=_0x3fa7a7[_0x3c7771(0x202)];if(overlayController){console[_0x3c7771(0x1d3)](LOG_PREFIX+_0x3c7771(0x221)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x3c7771(0x1d3)](LOG_PREFIX+_0x3c7771(0x22d)),overlayLoadPromise;console['log'](LOG_PREFIX+_0x3c7771(0x25b)),overlayLoadPromise=doLoadOverlay(_0x3fa7a7);try{await overlayLoadPromise,console[_0x3c7771(0x1d3)](LOG_PREFIX+_0x3c7771(0x210));}catch(_0x103a40){console[_0x3c7771(0x1e4)](LOG_PREFIX+_0x3c7771(0x261),_0x103a40);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x36f647){const _0x557504=_0x1a08ee;console[_0x557504(0x1d3)](LOG_PREFIX+'\x20doLoadOverlay()\x20starting...');if(typeof window===_0x557504(0x241)){console[_0x557504(0x1d3)](LOG_PREFIX+_0x557504(0x22c));return;}if(window['__enhanceOverlay']){console[_0x557504(0x1d3)](LOG_PREFIX+_0x557504(0x23f)),overlayController=window[_0x557504(0x1b9)];return;}console[_0x557504(0x1d3)](LOG_PREFIX+'\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module');try{_0x36f647[_0x557504(0x1bf)]&&(console[_0x557504(0x1d3)](LOG_PREFIX+_0x557504(0x262)),await setupRemoteHMR(_0x36f647['overlayPath']));console[_0x557504(0x1d3)](LOG_PREFIX+_0x557504(0x1fa)+_0x36f647['overlayPath']);const _0x429660=Date[_0x557504(0x237)](),_0x3ee60e=await import(_0x36f647[_0x557504(0x27f)]);console['log'](LOG_PREFIX+'\x20Module\x20imported\x20in\x20'+(Date[_0x557504(0x237)]()-_0x429660)+'ms'),console[_0x557504(0x1d3)](LOG_PREFIX+_0x557504(0x274),Object[_0x557504(0x1c4)](_0x3ee60e));if(typeof _0x3ee60e?.[_0x557504(0x1e0)]!==_0x557504(0x1d0)){console['error'](LOG_PREFIX+_0x557504(0x20d)),console[_0x557504(0x1e4)](LOG_PREFIX+_0x557504(0x269),Object[_0x557504(0x1c4)](_0x3ee60e));return;}console[_0x557504(0x1d3)](LOG_PREFIX+_0x557504(0x1d7));const _0x293147=_0x3ee60e[_0x557504(0x1e0)]();console['log'](LOG_PREFIX+_0x557504(0x1c7),_0x293147),overlayController=_0x293147,window['__enhanceOverlay']=_0x293147,_0x293147['onToggle'](_0x36f647['onToggle']),console['log'](LOG_PREFIX+_0x557504(0x247)),console[_0x557504(0x1d3)](LOG_PREFIX+_0x557504(0x253)),updateOverlay();}catch(_0x1afdd9){console['error'](LOG_PREFIX+'\x20Failed\x20to\x20import/create\x20overlay:',_0x1afdd9);}}function updateOverlay(){const _0xdf3863=_0x1a08ee;console[_0xdf3863(0x1d3)](LOG_PREFIX+_0xdf3863(0x1bb)),console[_0xdf3863(0x1d3)](LOG_PREFIX+_0xdf3863(0x211)+!!overlayController),console[_0xdf3863(0x1d3)](LOG_PREFIX+_0xdf3863(0x1ee)+!!currentOptions);if(!overlayController||!currentOptions){console['log'](LOG_PREFIX+_0xdf3863(0x273));return;}const _0x5966f=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+_0xdf3863(0x21b),JSON['stringify'](_0x5966f,null,0x2)),overlayController[_0xdf3863(0x25f)](_0x5966f),console['log'](LOG_PREFIX+_0xdf3863(0x21d));}function _0x12ac(){const _0x398394=['\x20Unregistering\x20SW...','\x20overlayPath:\x20','public','controlled','\x20Importing\x20overlay\x20module\x20from:\x20','\x20detectBlocking\x20-\x20existing\x20registration:',',\x20page\x20origin:\x20','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','/sw-enhance.js','\x20No\x20service\x20worker\x20active\x20to\x20configure','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','702363WyVUMQ','onToggle','explicitDisable','scriptURL','enhance:disable','backendUrl','object','\x20Updating\x20overlay...','controller','enhancementUrl','\x20enableViteHmr:\x20','\x20with\x20scope\x20\x27/\x27...','\x20Module\x20missing\x20createOverlay\x20export!','\x20registerServiceWorker()\x20complete','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','\x20loadOverlay()\x20complete','\x20overlayController\x20exists:\x20','./dev/cli.js','\x20Registration\x20returned:','scope','25MxBbjI','\x20enhancementId:\x20','enhancement','enhance','version','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','\x20Updating\x20overlay\x20with\x20state:','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','\x20Overlay\x20update\x20complete','^24.10.1','add','security','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','err','off','\x20enhancementUrl:\x20','\x20Checking\x20for\x20blocking\x20service\x20worker...','./dev/vite/index.d.ts','\x20Starting\x20overlay\x20load\x20(async)...','runtimeURL','origin','delete','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','\x20No\x20window\x20object\x20-\x20skipping','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','permissive','\x20composeOverlayState\x20-\x20enhancementId:\x20','history','vite:error','ready','\x20loadOverlay()\x20called','\x20Sending\x20customer\x20config\x20to\x20SW:','\x20Enhancement\x20detection:\x20wasEnhanced=','[Enhance\x20Overlay]','now','$RefreshReg$','7317080GqRKgH','\x20Registering\x20SW\x20at\x20','\x20Enhancement\x20mode\x20ENABLED','\x20Config\x20sent\x20to\x20SW','\x20React\x20Refresh\x20already\x20installed\x20for\x20','__enhanceInitialized','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','undefined','position','overlay','\x20Raw\x20options:','\x20Controller\x20state:','getRegistration','\x20Overlay\x20controller\x20initialized\x20and\x20cached','vite:beforeUpdate','19257daCOUj','injectIntoGlobalHook','postMessage','\x20Document\x20readyState:\x20','MIT','\x20Overlay\x20origin:\x20','title','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20',',\x20expected=','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','\x20Calling\x20updateOverlay()...','\x20Failed\x20to\x20register\x20service\x20worker:','startsWith','/assets/enhance-runtime.js','$RefreshSig$','^11.1.0','init','get','\x20Starting\x20fresh\x20overlay\x20load...','...','1948625NfVsPY','swPath','update','\x20No\x20blocking\x20SW\x20found','\x20loadOverlay()\x20failed:','\x20Setting\x20up\x20remote\x20HMR...','replace','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','\x20Invalid\x20React\x20Refresh\x20runtime','includes','^3.22.4','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','\x20Available\x20exports:','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','\x20resolveWorker:','location','info','30GbxkpE','\x20First\x20initialization','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','\x20detectBlocking\x20error:','^8.5.1','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','\x20Module\x20exports:','0.3.21','toLowerCase','warn','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','publishableKey','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','\x20HMR\x20setup\x20complete','searchParams','__vite_plugin_react_preamble_installed__','231848bszEkd','overlayPath','__development','\x20Failed\x20to\x20unregister\x20service\x20worker:','https://api.enhancelabs.ai','disable','href','N/A','\x20init()\x20called\x20at\x20','./dev/index.d.ts','enhance:configure','bun\x20version\x20patch\x20--no-git-tag-version','waiting','register','serviceWorker','__enhanceOverlay','\x20SW\x20unregistered\x20successfully','\x20updateOverlay()\x20called','\x20Found\x20registration:','__enhanceReactRefreshInstalledOrigins','callbackBypass','enableViteHmr','[Enhance\x20Runtime]','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','appError','state:\x20','keys','enabled','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','\x20Controller\x20created:','\x20unregisterServiceWorker()\x20called','\x20Starting\x20SW\x20registration\x20(async)...','hasEnhancement','[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','956874pUTDcV','replaceState','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','function','\x20Unregistering\x20any\x20existing\x20SW...','\x20registerServiceWorker()\x20called','log','has','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','/@react-refresh','\x20Calling\x20createOverlay()...','active','options','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','./dev/index.js','@enhance-eng/sandbox','some','^7.2.4','installing','createOverlay','\x20Current\x20controller\x20after\x20ready:','2123080VfTbaf','stringify','error','\x20Vite\x20client\x20already\x20loaded\x20for\x20','99dyfFVZ','reload','__viteHMRLoaded','\x20Sending\x20customer\x20configuration...','__enhanceController','tsc\x20--noEmit','http://','state','\x20currentOptions\x20exists:\x20',',\x20currentOptions:\x20','enhancementId','readyState','__enhanceOptions','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','\x20ownsServiceWorker?\x20scriptURL=','none'];_0x12ac=function(){return _0x398394;};return _0x12ac();}function composeOverlayState(_0x4c0663){const _0x4ebe5d=_0x1a08ee,_0x35cfe7=getEnhancementId();return console[_0x4ebe5d(0x1d3)](LOG_PREFIX+_0x4ebe5d(0x22f)+_0x35cfe7),console[_0x4ebe5d(0x1d3)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.enabled:\x20'+state[_0x4ebe5d(0x1c5)]),console[_0x4ebe5d(0x1d3)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.controlled:\x20'+state[_0x4ebe5d(0x1f9)]),{'enhancementId':_0x35cfe7,'enabled':state[_0x4ebe5d(0x1c5)],'controlled':state[_0x4ebe5d(0x1f9)],'overlayPosition':_0x4c0663[_0x4ebe5d(0x243)][_0x4ebe5d(0x242)],'securityMode':_0x4c0663['security'],'backendBaseUrl':_0x4c0663[_0x4ebe5d(0x206)],'appError':state[_0x4ebe5d(0x1c2)]};}async function setupRemoteHMR(_0x38a228){const _0x5b2006=_0x1a08ee;console[_0x5b2006(0x1d3)](LOG_PREFIX+'\x20setupRemoteHMR()\x20for\x20'+_0x38a228);if(typeof window===_0x5b2006(0x241))return;try{const _0x1e34ec=new URL(_0x38a228,window[_0x5b2006(0x26c)][_0x5b2006(0x229)]),_0xf12f=_0x1e34ec[_0x5b2006(0x229)];console['log'](LOG_PREFIX+_0x5b2006(0x24e)+_0xf12f+_0x5b2006(0x1fc)+window[_0x5b2006(0x26c)][_0x5b2006(0x229)]);if(_0xf12f===window[_0x5b2006(0x26c)][_0x5b2006(0x229)]){console['log'](LOG_PREFIX+_0x5b2006(0x252));return;}console[_0x5b2006(0x1d3)](LOG_PREFIX+_0x5b2006(0x264)),await ensureReactRefreshPreamble(_0xf12f),await ensureViteClient(_0xf12f),console[_0x5b2006(0x1d3)](LOG_PREFIX+_0x5b2006(0x27b));}catch(_0x3e86a7){console['warn'](LOG_PREFIX+_0x5b2006(0x1cf),_0x3e86a7);}}async function ensureReactRefreshPreamble(_0x33e299){const _0x273161=_0x1a08ee;window[_0x273161(0x1bd)]??(window['__enhanceReactRefreshInstalledOrigins']=new Set());if(window[_0x273161(0x1bd)][_0x273161(0x1d4)](_0x33e299)){console['log'](LOG_PREFIX+_0x273161(0x23d)+_0x33e299);return;}console['log'](LOG_PREFIX+'\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20'+_0x33e299+_0x273161(0x25c));const _0xa3a59c=await import(_0x33e299+_0x273161(0x1d6)),_0x174697=_0xa3a59c&&typeof _0xa3a59c===_0x273161(0x207)&&'default'in _0xa3a59c?_0xa3a59c['default']:_0xa3a59c;if(!isRefreshRuntime(_0x174697)){console[_0x273161(0x277)](LOG_PREFIX+_0x273161(0x265));return;}_0x174697[_0x273161(0x24a)](window),window[_0x273161(0x238)]=()=>{},window[_0x273161(0x257)]=()=>_0x4930da=>_0x4930da,window[_0x273161(0x27d)]=!![],window['__enhanceReactRefreshInstalledOrigins'][_0x273161(0x21f)](_0x33e299),console[_0x273161(0x1d3)](LOG_PREFIX+_0x273161(0x1da)+_0x33e299);}async function ensureViteClient(_0x531dcc){const _0xccee2b=_0x1a08ee;window[_0xccee2b(0x1e8)]??(window['__viteHMRLoaded']=new Set());if(window[_0xccee2b(0x1e8)][_0xccee2b(0x1d4)](_0x531dcc)){console[_0xccee2b(0x1d3)](LOG_PREFIX+_0xccee2b(0x1e5)+_0x531dcc);return;}console['log'](LOG_PREFIX+'\x20Loading\x20Vite\x20HMR\x20client\x20from\x20'+_0x531dcc+'...'),await import(_0x531dcc+'/@vite/client'),window[_0xccee2b(0x1e8)][_0xccee2b(0x21f)](_0x531dcc),console[_0xccee2b(0x1d3)](LOG_PREFIX+_0xccee2b(0x250)+_0x531dcc);}function isRefreshRuntime(_0xe4d28e){const _0x5de84e=_0x1a08ee;return typeof _0xe4d28e===_0x5de84e(0x207)&&_0xe4d28e!==null&&'injectIntoGlobalHook'in _0xe4d28e&&typeof _0xe4d28e[_0x5de84e(0x24a)]===_0x5de84e(0x1d0);}var WORKER_MESSAGE_CONFIG=_0x1a08ee(0x1b4),WORKER_MESSAGE_DISABLE=_0x1a08ee(0x205),LOG_PREFIX2='[Enhance\x20SW-Client]',registration=null,currentOptions2=null;async function registerServiceWorker(_0x583650){const _0x2b2e53=_0x1a08ee;console['log'](LOG_PREFIX2+_0x2b2e53(0x1d2)),console[_0x2b2e53(0x1d3)](LOG_PREFIX2+'\x20swPath:\x20'+_0x583650['swPath']);if(!(_0x2b2e53(0x1b8)in navigator)){console[_0x2b2e53(0x277)](LOG_PREFIX2+'\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser');return;}console[_0x2b2e53(0x1d3)](LOG_PREFIX2+'\x20Service\x20workers\x20supported');const _0x42db9b=navigator[_0x2b2e53(0x1b8)][_0x2b2e53(0x209)];console[_0x2b2e53(0x1d3)](LOG_PREFIX2+'\x20Current\x20controller:',_0x42db9b?.[_0x2b2e53(0x204)]??_0x2b2e53(0x1f5)),console['log'](LOG_PREFIX2+_0x2b2e53(0x245),_0x42db9b?.[_0x2b2e53(0x1ed)]??'N/A');const _0x1836cd=!!_0x42db9b;currentOptions2=_0x583650,console[_0x2b2e53(0x1d3)](LOG_PREFIX2+_0x2b2e53(0x225));const _0x1f978a=await detectBlockingServiceWorker(_0x583650[_0x2b2e53(0x25e)]);if(_0x1f978a){console[_0x2b2e53(0x1e4)](LOG_PREFIX2+'\x20BLOCKING\x20SW\x20detected:\x20'+_0x1f978a),console['error'](LOG_PREFIX2+_0x2b2e53(0x27a));return;}console[_0x2b2e53(0x1d3)](LOG_PREFIX2+_0x2b2e53(0x260));try{console['log'](LOG_PREFIX2+_0x2b2e53(0x23a)+_0x583650[_0x2b2e53(0x25e)]+_0x2b2e53(0x20c)),registration=await navigator[_0x2b2e53(0x1b8)][_0x2b2e53(0x1b7)](_0x583650[_0x2b2e53(0x25e)],{'scope':'/'}),console[_0x2b2e53(0x1d3)](LOG_PREFIX2+_0x2b2e53(0x213),{'scope':registration[_0x2b2e53(0x214)],'active':registration['active']?.[_0x2b2e53(0x204)],'waiting':registration['waiting']?.[_0x2b2e53(0x204)],'installing':registration[_0x2b2e53(0x1df)]?.[_0x2b2e53(0x204)]}),console['log'](LOG_PREFIX2+_0x2b2e53(0x20f));const _0x52b6cc=await navigator[_0x2b2e53(0x1b8)][_0x2b2e53(0x232)];console['log'](LOG_PREFIX2+'\x20SW\x20ready!\x20Active:',_0x52b6cc['active']?.['scriptURL']);const _0x306a51=ownsCurrentController(_0x583650[_0x2b2e53(0x25e)]);state[_0x2b2e53(0x1f9)]=_0x306a51,console[_0x2b2e53(0x1d3)](LOG_PREFIX2+_0x2b2e53(0x1d5)+_0x306a51),console['log'](LOG_PREFIX2+_0x2b2e53(0x1e1),navigator['serviceWorker'][_0x2b2e53(0x209)]?.[_0x2b2e53(0x204)]??_0x2b2e53(0x1f5));if(!_0x1836cd&&!navigator[_0x2b2e53(0x1b8)][_0x2b2e53(0x209)]){console[_0x2b2e53(0x1d3)](LOG_PREFIX2+_0x2b2e53(0x240)),window[_0x2b2e53(0x26c)][_0x2b2e53(0x1e7)]();return;}console[_0x2b2e53(0x1d3)](LOG_PREFIX2+_0x2b2e53(0x1e9)),await sendConfiguration();if(state[_0x2b2e53(0x1c5)]){const _0x430a32=document['querySelector']('[data-enhance-runtime-bootstrap]')!==null;console['log'](LOG_PREFIX2+_0x2b2e53(0x235)+_0x430a32);if(!_0x430a32){console[_0x2b2e53(0x1d3)](LOG_PREFIX2+'\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement'),window[_0x2b2e53(0x26c)][_0x2b2e53(0x1e7)]();return;}}console[_0x2b2e53(0x1d3)](LOG_PREFIX2+_0x2b2e53(0x208)),updateOverlay(),console[_0x2b2e53(0x1d3)](LOG_PREFIX2+_0x2b2e53(0x20e));}catch(_0x42db88){console[_0x2b2e53(0x1e4)](LOG_PREFIX2+_0x2b2e53(0x254),_0x42db88);}}async function sendConfiguration(){const _0x43b1f2=_0x1a08ee;console['log'](LOG_PREFIX2+'\x20sendConfiguration()\x20called'),console[_0x43b1f2(0x1d3)](LOG_PREFIX2+'\x20state.enabled:\x20'+state[_0x43b1f2(0x1c5)]+_0x43b1f2(0x1ef)+!!currentOptions2);if(!state[_0x43b1f2(0x1c5)]||!currentOptions2){console['log'](LOG_PREFIX2+'\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options');return;}const _0x538387=await resolveWorker();if(!_0x538387){console['warn'](LOG_PREFIX2+_0x43b1f2(0x1ff));return;}const _0x5b78b3={'publishableKey':currentOptions2[_0x43b1f2(0x279)],'callbackBypass':currentOptions2[_0x43b1f2(0x1be)],'securityMode':currentOptions2[_0x43b1f2(0x220)]};console[_0x43b1f2(0x1d3)](LOG_PREFIX2+_0x43b1f2(0x234),JSON[_0x43b1f2(0x1e3)](_0x5b78b3,null,0x2)),_0x538387[_0x43b1f2(0x24b)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x5b78b3}),console[_0x43b1f2(0x1d3)](LOG_PREFIX2+_0x43b1f2(0x23c));}async function unregisterServiceWorker(_0x17cdfb){const _0x336a6b=_0x1a08ee;console[_0x336a6b(0x1d3)](LOG_PREFIX2+_0x336a6b(0x1c8));if(!(_0x336a6b(0x1b8)in navigator)){console[_0x336a6b(0x1d3)](LOG_PREFIX2+'\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister');return;}try{const _0x3cf912=registration??await navigator[_0x336a6b(0x1b8)]['getRegistration']('/');if(!_0x3cf912){console[_0x336a6b(0x1d3)](LOG_PREFIX2+_0x336a6b(0x268));return;}console['log'](LOG_PREFIX2+_0x336a6b(0x1bc),{'scope':_0x3cf912[_0x336a6b(0x214)],'active':_0x3cf912[_0x336a6b(0x1d8)]?.[_0x336a6b(0x204)],'waiting':_0x3cf912[_0x336a6b(0x1b6)]?.[_0x336a6b(0x204)],'installing':_0x3cf912[_0x336a6b(0x1df)]?.[_0x336a6b(0x204)]});const _0x1faa48=[_0x3cf912[_0x336a6b(0x1d8)]?.[_0x336a6b(0x204)],_0x3cf912[_0x336a6b(0x1b6)]?.[_0x336a6b(0x204)],_0x3cf912[_0x336a6b(0x1df)]?.[_0x336a6b(0x204)]],_0x399599=_0x1faa48[_0x336a6b(0x1dd)](_0x4a7150=>_0x4a7150&&ownsServiceWorker(_0x4a7150,_0x17cdfb));if(!_0x399599){console[_0x336a6b(0x1d3)](LOG_PREFIX2+_0x336a6b(0x278));return;}_0x3cf912[_0x336a6b(0x1d8)]&&(console['log'](LOG_PREFIX2+_0x336a6b(0x21c)),_0x3cf912['active'][_0x336a6b(0x24b)]({'type':WORKER_MESSAGE_DISABLE})),console[_0x336a6b(0x1d3)](LOG_PREFIX2+_0x336a6b(0x1f6)),await _0x3cf912['unregister'](),registration=null,currentOptions2=null,console[_0x336a6b(0x1d3)](LOG_PREFIX2+_0x336a6b(0x1ba));}catch(_0x10e52e){console[_0x336a6b(0x1e4)](LOG_PREFIX2+_0x336a6b(0x1ad),_0x10e52e);}}function _0x7918(_0x1ce9b4,_0x305fb3){_0x1ce9b4=_0x1ce9b4-0x1ac;const _0x12acba=_0x12ac();let _0x791817=_0x12acba[_0x1ce9b4];return _0x791817;}function ownsServiceWorker(_0x1bcf33,_0x220bc1){const _0x5872b9=_0x1a08ee,_0x55f1eb=typeof window!==_0x5872b9(0x241)?window[_0x5872b9(0x26c)][_0x5872b9(0x229)]:'',_0x2c1da1=new URL(_0x220bc1,_0x55f1eb||void 0x0)[_0x5872b9(0x1b0)],_0x1433ad=_0x1bcf33===_0x2c1da1||_0x1bcf33[_0x5872b9(0x266)]('sw-enhance');return console[_0x5872b9(0x1d3)](LOG_PREFIX2+_0x5872b9(0x1f4)+_0x1bcf33+_0x5872b9(0x251)+_0x2c1da1+',\x20owns='+_0x1433ad),_0x1433ad;}function ownsCurrentController(_0x540a41){const _0x2dd31d=_0x1a08ee;if(typeof navigator===_0x2dd31d(0x241))return![];const _0x11ebfb=navigator[_0x2dd31d(0x1b8)]?.[_0x2dd31d(0x209)];if(!_0x11ebfb)return console[_0x2dd31d(0x1d3)](LOG_PREFIX2+'\x20No\x20current\x20controller'),![];return ownsServiceWorker(_0x11ebfb[_0x2dd31d(0x204)],_0x540a41);}async function detectBlockingServiceWorker(_0x3531ee){const _0x5d4f92=_0x1a08ee;if(!navigator['serviceWorker'])return null;try{const _0xfd0a59=await navigator[_0x5d4f92(0x1b8)][_0x5d4f92(0x246)]('/');console[_0x5d4f92(0x1d3)](LOG_PREFIX2+_0x5d4f92(0x1fb),_0xfd0a59?.[_0x5d4f92(0x1d8)]?.[_0x5d4f92(0x204)]??_0x5d4f92(0x1f5));const _0x2f7800=_0xfd0a59?.[_0x5d4f92(0x1d8)]?.[_0x5d4f92(0x204)];if(!_0x2f7800)return null;if(ownsServiceWorker(_0x2f7800,_0x3531ee))return null;return _0x2f7800;}catch(_0x5e871b){return console[_0x5d4f92(0x1e4)](LOG_PREFIX2+_0x5d4f92(0x271),_0x5e871b),null;}}async function resolveWorker(){const _0x5deac2=_0x1a08ee,_0xa78859=registration??await navigator[_0x5deac2(0x1b8)]?.[_0x5deac2(0x246)]('/'),_0x2db871=_0xa78859?.['active']??_0xa78859?.[_0x5deac2(0x1b6)]??_0xa78859?.['installing']??null;return console[_0x5deac2(0x1d3)](LOG_PREFIX2+_0x5deac2(0x26b),_0x2db871?.[_0x5deac2(0x204)]??_0x5deac2(0x1f5),_0x5deac2(0x1c3)+(_0x2db871?.[_0x5deac2(0x1ed)]??_0x5deac2(0x1b1))),_0x2db871;}var LOG_PREFIX3=_0x1a08ee(0x1c0);function isInitialized(){return typeof window!=='undefined'&&window['__enhanceInitialized']===!![];}function setInitialized(_0x164392){const _0x52039e=_0x1a08ee;typeof window!=='undefined'&&(window[_0x52039e(0x23e)]=_0x164392);}function getOptions(){const _0x22a20a=_0x1a08ee;return typeof window!==_0x22a20a(0x241)?window[_0x22a20a(0x1f2)]??null:null;}function setOptions(_0x2aa541){const _0x865b97=_0x1a08ee;typeof window!==_0x865b97(0x241)&&(window[_0x865b97(0x1f2)]=_0x2aa541);}var Enhance={'init'(_0x77d2f9){const _0x562e38=_0x1a08ee,_0x4696ec=Date[_0x562e38(0x237)]();console[_0x562e38(0x1d3)](LOG_PREFIX3+_0x562e38(0x1b2)+_0x4696ec),console[_0x562e38(0x1d3)](LOG_PREFIX3+'\x20Current\x20URL:\x20'+window['location'][_0x562e38(0x1b0)]),console[_0x562e38(0x1d3)](LOG_PREFIX3+_0x562e38(0x24c)+document[_0x562e38(0x1f1)]),console[_0x562e38(0x1d3)](LOG_PREFIX3+_0x562e38(0x244),JSON[_0x562e38(0x1e3)](_0x77d2f9,null,0x2));if(isInitialized())return console[_0x562e38(0x277)](LOG_PREFIX3+_0x562e38(0x26a)),window['__enhanceController']??createController();setInitialized(!![]),console[_0x562e38(0x1d3)](LOG_PREFIX3+_0x562e38(0x26f));const _0x26e993=normalizeOptions(_0x77d2f9);setOptions(_0x26e993),console[_0x562e38(0x1d3)](LOG_PREFIX3+'\x20Normalized\x20options:',JSON[_0x562e38(0x1e3)](_0x26e993,null,0x2));const _0x4a0ef0=parseUrlParams();console[_0x562e38(0x1d3)](LOG_PREFIX3+'\x20URL\x20params\x20parsed:',JSON[_0x562e38(0x1e3)](_0x4a0ef0,null,0x2));if(_0x4a0ef0[_0x562e38(0x203)])return cleanUrlParam(_0x562e38(0x218)),console[_0x562e38(0x1d3)](LOG_PREFIX3+_0x562e38(0x1f3)),createController();if(_0x4a0ef0[_0x562e38(0x1ca)])return console[_0x562e38(0x1d3)](LOG_PREFIX3+_0x562e38(0x23b)),console[_0x562e38(0x1d3)](LOG_PREFIX3+_0x562e38(0x224)+_0x4a0ef0['enhancementUrl']),console[_0x562e38(0x1d3)](LOG_PREFIX3+_0x562e38(0x216)+_0x4a0ef0[_0x562e38(0x1f0)]),state[_0x562e38(0x1c5)]=!![],console[_0x562e38(0x1d3)](LOG_PREFIX3+_0x562e38(0x227)),void loadOverlay({'overlayPath':_0x26e993[_0x562e38(0x27f)],'enableViteHmr':_0x26e993[_0x562e38(0x243)]['enableViteHmr'],'options':_0x26e993,'onToggle':handleToggle}),console['log'](LOG_PREFIX3+_0x562e38(0x1c9)),void registerServiceWorker(_0x26e993),console[_0x562e38(0x1d3)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20enhancement\x20mode'),createController();return console[_0x562e38(0x1d3)](LOG_PREFIX3+_0x562e38(0x270)),console[_0x562e38(0x1d3)](LOG_PREFIX3+_0x562e38(0x1d1)),void unregisterServiceWorker(_0x26e993[_0x562e38(0x25e)]),console[_0x562e38(0x1d3)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20normal\x20mode'),import.meta.hot&&(console['log'](LOG_PREFIX3+'\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners'),import.meta.hot['on'](_0x562e38(0x231),_0x453547=>{const _0x460729=_0x562e38;console[_0x460729(0x1d3)](LOG_PREFIX3+'\x20Vite\x20error\x20detected:',_0x453547),state[_0x460729(0x1c2)]={'message':_0x453547[_0x460729(0x222)]['message']},updateOverlay();}),import.meta.hot['on'](_0x562e38(0x248),()=>{const _0x5d9991=_0x562e38;state['appError']&&(console[_0x5d9991(0x1d3)](LOG_PREFIX3+_0x5d9991(0x22b)),state[_0x5d9991(0x1c2)]=null,updateOverlay());})),createController();}};function createController(){const _0x179ed0=_0x1a08ee,_0x47551a={'enable'(){const _0x48f3d3=_0x7918,_0xab441a=getOptions();if(!_0xab441a)return;state[_0x48f3d3(0x1c5)]=!![],void loadOverlay({'overlayPath':_0xab441a[_0x48f3d3(0x27f)],'enableViteHmr':_0xab441a[_0x48f3d3(0x243)][_0x48f3d3(0x1bf)],'options':_0xab441a,'onToggle':handleToggle}),void registerServiceWorker(_0xab441a),void sendConfiguration(),updateOverlay();},'disable'(){const _0xfa2c5d=_0x7918,_0x259bc7=getOptions();if(!_0x259bc7)return;state[_0xfa2c5d(0x1c5)]=![],state['controlled']=![],updateOverlay(),void unregisterServiceWorker(_0x259bc7[_0xfa2c5d(0x25e)]);},'status'(){const _0xbaa3ff=_0x7918;return{'enabled':state[_0xbaa3ff(0x1c5)],'controlled':state[_0xbaa3ff(0x1f9)]};}};return typeof window!=='undefined'&&(window[_0x179ed0(0x1ea)]=_0x47551a),_0x47551a;}function handleToggle(){const _0x8b802e=_0x1a08ee,_0x2df107=createController();state[_0x8b802e(0x1c5)]?_0x2df107[_0x8b802e(0x1af)]():_0x2df107['enable']();}function parseUrlParams(){const _0x5dd8f5=_0x1a08ee,_0xce035b=new URL(window[_0x5dd8f5(0x26c)][_0x5dd8f5(0x1b0)]),_0x4de3fe=_0xce035b['searchParams'][_0x5dd8f5(0x25a)](_0x5dd8f5(0x218))?.[_0x5dd8f5(0x276)](),_0x253024=_0xce035b['searchParams'][_0x5dd8f5(0x25a)](_0x5dd8f5(0x20a)),_0x58ece7=_0xce035b[_0x5dd8f5(0x27c)]['get'](_0x5dd8f5(0x217));return{'hasEnhancement':Boolean(_0x253024||_0x58ece7),'explicitDisable':_0x4de3fe==='0'||_0x4de3fe==='false'||_0x4de3fe===_0x5dd8f5(0x223),'enhancementUrl':_0x253024,'enhancementId':_0x58ece7};}function cleanUrlParam(_0x282338){const _0x5e0cfd=_0x1a08ee,_0x46d9a5=new URL(window[_0x5e0cfd(0x26c)][_0x5e0cfd(0x1b0)]);_0x46d9a5[_0x5e0cfd(0x27c)]['has'](_0x282338)&&(_0x46d9a5[_0x5e0cfd(0x27c)][_0x5e0cfd(0x22a)](_0x282338),window[_0x5e0cfd(0x230)][_0x5e0cfd(0x1ce)](null,document[_0x5e0cfd(0x24f)],_0x46d9a5['toString']()));}var package_default={'name':_0x1a08ee(0x1dc),'version':_0x1a08ee(0x275),'type':'module','description':'Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','license':_0x1a08ee(0x24d),'main':_0x1a08ee(0x1db),'module':_0x1a08ee(0x1db),'types':_0x1a08ee(0x1b3),'exports':{'.':{'types':_0x1a08ee(0x1b3),'import':_0x1a08ee(0x1db)},'./vite':{'types':_0x1a08ee(0x226),'import':'./dev/vite/index.js'}},'files':['dev/'],'bin':{'enhance-sandbox':_0x1a08ee(0x212)},'scripts':{'typecheck':_0x1a08ee(0x1eb),'dev':_0x1a08ee(0x1fd),'dev:build':_0x1a08ee(0x21a),'dev:staging':_0x1a08ee(0x1c6),'dev:staging:build':_0x1a08ee(0x1cc),'build':_0x1a08ee(0x200),'build:release':_0x1a08ee(0x1c1),'build:release:dev':'ENHANCE_OVERLAY_PATH=https://assets-dev.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','version':_0x1a08ee(0x1b5)},'dependencies':{'commander':_0x1a08ee(0x258),'zod':_0x1a08ee(0x267)},'devDependencies':{'@types/node':_0x1a08ee(0x21e),'javascript-obfuscator':'^4.1.1','tsup':_0x1a08ee(0x272),'vite':_0x1a08ee(0x1de)},'publishConfig':{'access':_0x1a08ee(0x1f8)}},DEFAULT_SERVICE_WORKER_PATH=_0x1a08ee(0x1fe),DEFAULT_RUNTIME_PATH=_0x1a08ee(0x256),PACKAGE_VERSION=typeof package_default[_0x1a08ee(0x219)]==='string'?package_default['version']:'0.0.0';function normalizeAssetPath(_0x1473e4){const _0x4413d1=_0x1a08ee;if(!_0x1473e4)return _0x1473e4;if(_0x1473e4['startsWith'](_0x4413d1(0x1ec))||_0x1473e4[_0x4413d1(0x255)]('https://'))return _0x1473e4;const _0x5f2045=_0x1473e4[_0x4413d1(0x263)](/^\.\//,'');return _0x5f2045['startsWith']('/')?_0x5f2045:'/'+_0x5f2045;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x2071af){const _0x450e51=_0x1a08ee;return Enhance[_0x450e51(0x259)](_0x2071af);},'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 _0x4f04dc=_0x1a08ee;return Enhance2[_0x4f04dc(0x228)]();}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 _0x1c528e=_0xd9a6;(function(_0x2da2a4,_0xab5ca){const _0xf23dc7=_0xd9a6,_0x1350c4=_0x2da2a4();while(!![]){try{const _0x25455f=-parseInt(_0xf23dc7(0xf7))/0x1*(parseInt(_0xf23dc7(0xe9))/0x2)+-parseInt(_0xf23dc7(0x14f))/0x3*(parseInt(_0xf23dc7(0x185))/0x4)+parseInt(_0xf23dc7(0x100))/0x5+-parseInt(_0xf23dc7(0x106))/0x6*(-parseInt(_0xf23dc7(0xed))/0x7)+-parseInt(_0xf23dc7(0xcf))/0x8*(-parseInt(_0xf23dc7(0x16a))/0x9)+-parseInt(_0xf23dc7(0xd5))/0xa+parseInt(_0xf23dc7(0x13b))/0xb*(parseInt(_0xf23dc7(0x1a1))/0xc);if(_0x25455f===_0xab5ca)break;else _0x1350c4['push'](_0x1350c4['shift']());}catch(_0x3c4f77){_0x1350c4['push'](_0x1350c4['shift']());}}}(_0x382c,0xe0fb4));import{Command}from'commander';import{resolve,relative}from'path';var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x1c528e(0x173)?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x1c528e(0x15d),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x1c528e(0x173)?__ENHANCE_DEFAULT_BACKEND_URL__:_0x1c528e(0x18e),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x1c528e(0x173)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x1c528e(0x134)](_0x1c528e(0x16c),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x57841c){const _0x1a9c50=_0x1c528e;if(!_0x57841c['publishableKey'])throw new Error(_0x1a9c50(0xef));const _0x5afef8=_0x57841c[_0x1a9c50(0xea)]??{};return{'publishableKey':_0x57841c[_0x1a9c50(0xd6)],'callbackBypass':_0x57841c[_0x1a9c50(0x19d)]??[],'overlay':{'enabled':!![],'position':_0x1a9c50(0x14c),'enableViteHmr':_0x5afef8[_0x1a9c50(0x10a)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x1a9c50(0x177),'swPath':_0x1a9c50(0x122),'overlayPath':_0x5afef8[_0x1a9c50(0x18c)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x1a9c50(0x16e),'security':_0x5afef8[_0x1a9c50(0xd7)]??_0x1a9c50(0xce),'backendUrl':_0x5afef8[_0x1a9c50(0x11e)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x4b7b4e=_0x1c528e;try{const _0x4ebc62=new URLSearchParams(window['location'][_0x4b7b4e(0xf1)]);return _0x4ebc62[_0x4b7b4e(0x107)]('enhancement')?.[_0x4b7b4e(0x17c)]()||'';}catch{return'';}}var LOG_PREFIX=_0x1c528e(0xdf),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x2b3709){const _0x3c02cb=_0x1c528e;console['log'](LOG_PREFIX+_0x3c02cb(0x104)),console[_0x3c02cb(0x134)](LOG_PREFIX+_0x3c02cb(0x144)+_0x2b3709['overlayPath']),console[_0x3c02cb(0x134)](LOG_PREFIX+_0x3c02cb(0x180)+_0x2b3709[_0x3c02cb(0x19f)]),currentOptions=_0x2b3709['options'],toggleHandler=_0x2b3709[_0x3c02cb(0x11c)];if(overlayController){console[_0x3c02cb(0x134)](LOG_PREFIX+_0x3c02cb(0x123)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x3c02cb(0x134)](LOG_PREFIX+'\x20Load\x20already\x20in\x20progress\x20-\x20waiting...'),overlayLoadPromise;console['log'](LOG_PREFIX+_0x3c02cb(0x133)),overlayLoadPromise=doLoadOverlay(_0x2b3709);try{await overlayLoadPromise,console[_0x3c02cb(0x134)](LOG_PREFIX+_0x3c02cb(0x131));}catch(_0x884c7e){console[_0x3c02cb(0x117)](LOG_PREFIX+_0x3c02cb(0x19c),_0x884c7e);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x25086e){const _0xe1dfff=_0x1c528e;console[_0xe1dfff(0x134)](LOG_PREFIX+_0xe1dfff(0x121));if(typeof window===_0xe1dfff(0x173)){console[_0xe1dfff(0x134)](LOG_PREFIX+'\x20No\x20window\x20object\x20-\x20skipping');return;}if(window[_0xe1dfff(0x14e)]){console[_0xe1dfff(0x134)](LOG_PREFIX+_0xe1dfff(0x101)),overlayController=window[_0xe1dfff(0x14e)];return;}console[_0xe1dfff(0x134)](LOG_PREFIX+'\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module');try{_0x25086e[_0xe1dfff(0x19f)]&&(console[_0xe1dfff(0x134)](LOG_PREFIX+_0xe1dfff(0xe2)),await setupRemoteHMR(_0x25086e['overlayPath']));console['log'](LOG_PREFIX+_0xe1dfff(0xb4)+_0x25086e[_0xe1dfff(0x18c)]);const _0x1206aa=Date['now'](),_0x37901e=await import(_0x25086e[_0xe1dfff(0x18c)]);console[_0xe1dfff(0x134)](LOG_PREFIX+_0xe1dfff(0x189)+(Date[_0xe1dfff(0xd8)]()-_0x1206aa)+'ms'),console['log'](LOG_PREFIX+'\x20Module\x20exports:',Object['keys'](_0x37901e));if(typeof _0x37901e?.['createOverlay']!=='function'){console[_0xe1dfff(0x117)](LOG_PREFIX+_0xe1dfff(0x120)),console[_0xe1dfff(0x117)](LOG_PREFIX+'\x20Available\x20exports:',Object['keys'](_0x37901e));return;}console[_0xe1dfff(0x134)](LOG_PREFIX+'\x20Calling\x20createOverlay()...');const _0xb75212=_0x37901e['createOverlay']();console['log'](LOG_PREFIX+'\x20Controller\x20created:',_0xb75212),overlayController=_0xb75212,window[_0xe1dfff(0x14e)]=_0xb75212,_0xb75212[_0xe1dfff(0x11c)](_0x25086e[_0xe1dfff(0x11c)]),console[_0xe1dfff(0x134)](LOG_PREFIX+_0xe1dfff(0x126)),console['log'](LOG_PREFIX+_0xe1dfff(0xec)),updateOverlay();}catch(_0xb9d682){console[_0xe1dfff(0x117)](LOG_PREFIX+_0xe1dfff(0xcd),_0xb9d682);}}function updateOverlay(){const _0x512fac=_0x1c528e;console['log'](LOG_PREFIX+_0x512fac(0xf9)),console['log'](LOG_PREFIX+_0x512fac(0x174)+!!overlayController),console['log'](LOG_PREFIX+_0x512fac(0xf2)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x512fac(0x134)](LOG_PREFIX+_0x512fac(0x147));return;}const _0x4f58ad=composeOverlayState(currentOptions);console[_0x512fac(0x134)](LOG_PREFIX+_0x512fac(0x160),JSON[_0x512fac(0x14b)](_0x4f58ad,null,0x2)),overlayController[_0x512fac(0x11b)](_0x4f58ad),console[_0x512fac(0x134)](LOG_PREFIX+'\x20Overlay\x20update\x20complete');}function composeOverlayState(_0x1ba4fd){const _0x286d9b=_0x1c528e,_0x505cb7=getEnhancementId();return console[_0x286d9b(0x134)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20enhancementId:\x20'+_0x505cb7),console[_0x286d9b(0x134)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.enabled:\x20'+state[_0x286d9b(0x116)]),console[_0x286d9b(0x134)](LOG_PREFIX+_0x286d9b(0x110)+state[_0x286d9b(0x13c)]),{'enhancementId':_0x505cb7,'enabled':state['enabled'],'controlled':state[_0x286d9b(0x13c)],'overlayPosition':_0x1ba4fd[_0x286d9b(0x142)][_0x286d9b(0x19b)],'securityMode':_0x1ba4fd[_0x286d9b(0xd7)],'backendBaseUrl':_0x1ba4fd[_0x286d9b(0x11e)],'appError':state[_0x286d9b(0x13f)]};}async function setupRemoteHMR(_0x29084f){const _0x1c9a4b=_0x1c528e;console[_0x1c9a4b(0x134)](LOG_PREFIX+_0x1c9a4b(0xeb)+_0x29084f);if(typeof window===_0x1c9a4b(0x173))return;try{const _0x16851c=new URL(_0x29084f,window[_0x1c9a4b(0x111)]['origin']),_0x16bb94=_0x16851c[_0x1c9a4b(0x18b)];console[_0x1c9a4b(0x134)](LOG_PREFIX+'\x20Overlay\x20origin:\x20'+_0x16bb94+_0x1c9a4b(0x139)+window[_0x1c9a4b(0x111)][_0x1c9a4b(0x18b)]);if(_0x16bb94===window[_0x1c9a4b(0x111)][_0x1c9a4b(0x18b)]){console[_0x1c9a4b(0x134)](LOG_PREFIX+'\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup');return;}console['log'](LOG_PREFIX+_0x1c9a4b(0x108)),await ensureReactRefreshPreamble(_0x16bb94),await ensureViteClient(_0x16bb94),console['log'](LOG_PREFIX+_0x1c9a4b(0x12f));}catch(_0x2a0e67){console[_0x1c9a4b(0xd1)](LOG_PREFIX+'\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):',_0x2a0e67);}}async function ensureReactRefreshPreamble(_0x73adbb){const _0x4ae278=_0x1c528e;window['__enhanceReactRefreshInstalledOrigins']??=new Set();if(window[_0x4ae278(0x196)][_0x4ae278(0xc2)](_0x73adbb)){console[_0x4ae278(0x134)](LOG_PREFIX+_0x4ae278(0x12c)+_0x73adbb);return;}console['log'](LOG_PREFIX+'\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20'+_0x73adbb+'...');const _0x1d7e4f=await import(_0x73adbb+_0x4ae278(0xbf)),_0x23f64b=_0x1d7e4f&&typeof _0x1d7e4f==='object'&&_0x4ae278(0x188)in _0x1d7e4f?_0x1d7e4f[_0x4ae278(0x188)]:_0x1d7e4f;if(!isRefreshRuntime(_0x23f64b)){console['warn'](LOG_PREFIX+_0x4ae278(0x12d));return;}_0x23f64b[_0x4ae278(0x127)](window),window[_0x4ae278(0x184)]=()=>{},window[_0x4ae278(0xb0)]=()=>_0x42cd4f=>_0x42cd4f,window['__vite_plugin_react_preamble_installed__']=!![],window[_0x4ae278(0x196)][_0x4ae278(0x18d)](_0x73adbb),console[_0x4ae278(0x134)](LOG_PREFIX+_0x4ae278(0x103)+_0x73adbb);}async function ensureViteClient(_0x2fa906){const _0x831b8f=_0x1c528e;window[_0x831b8f(0x159)]??=new Set();if(window[_0x831b8f(0x159)]['has'](_0x2fa906)){console[_0x831b8f(0x134)](LOG_PREFIX+'\x20Vite\x20client\x20already\x20loaded\x20for\x20'+_0x2fa906);return;}console['log'](LOG_PREFIX+'\x20Loading\x20Vite\x20HMR\x20client\x20from\x20'+_0x2fa906+_0x831b8f(0x187)),await import(_0x2fa906+_0x831b8f(0x172)),window['__viteHMRLoaded'][_0x831b8f(0x18d)](_0x2fa906),console[_0x831b8f(0x134)](LOG_PREFIX+_0x831b8f(0xe0)+_0x2fa906);}function isRefreshRuntime(_0x4d441){const _0x2a9761=_0x1c528e;return typeof _0x4d441===_0x2a9761(0xf6)&&_0x4d441!==null&&'injectIntoGlobalHook'in _0x4d441&&typeof _0x4d441[_0x2a9761(0x127)]===_0x2a9761(0xc1);}var WORKER_MESSAGE_CONFIG=_0x1c528e(0x176),WORKER_MESSAGE_DISABLE=_0x1c528e(0x118),LOG_PREFIX2='[Enhance\x20SW-Client]',registration=null,currentOptions2=null;async function registerServiceWorker(_0x3c7c4d){const _0x3d645f=_0x1c528e;console[_0x3d645f(0x134)](LOG_PREFIX2+_0x3d645f(0x15c));if(!(_0x3d645f(0x150)in navigator)){console[_0x3d645f(0xd1)](LOG_PREFIX2+'\x20Service\x20workers\x20NOT\x20supported');return;}const _0x64c70a=!!navigator['serviceWorker']['controller'];currentOptions2=_0x3c7c4d;const _0xda92d2=await detectBlockingServiceWorker(_0x3c7c4d[_0x3d645f(0x115)]);if(_0xda92d2){console[_0x3d645f(0x117)](LOG_PREFIX2+'\x20BLOCKING\x20SW\x20detected:\x20'+_0xda92d2);return;}try{console['log'](LOG_PREFIX2+'\x20Registering\x20SW\x20at\x20'+_0x3c7c4d['swPath']+_0x3d645f(0x187)),registration=await navigator[_0x3d645f(0x150)][_0x3d645f(0xe5)](_0x3c7c4d[_0x3d645f(0x115)],{'scope':'/'}),console['log'](LOG_PREFIX2+'\x20Waiting\x20for\x20SW\x20ready...'),await navigator['serviceWorker'][_0x3d645f(0xbe)],console[_0x3d645f(0x134)](LOG_PREFIX2+_0x3d645f(0x186)),state[_0x3d645f(0x13c)]=ownsCurrentController(_0x3c7c4d[_0x3d645f(0x115)]);if(!_0x64c70a&&!navigator[_0x3d645f(0x150)][_0x3d645f(0xee)]){console[_0x3d645f(0x134)](LOG_PREFIX2+_0x3d645f(0x114)),window[_0x3d645f(0x111)][_0x3d645f(0xcc)]();return;}console['log'](LOG_PREFIX2+'\x20Sending\x20configuration\x20to\x20SW...'),await sendConfiguration();if(state['enabled']){const _0x883e8=document[_0x3d645f(0x10c)]('[data-enhance-runtime-bootstrap]')!==null;if(!_0x883e8){console[_0x3d645f(0x134)](LOG_PREFIX2+_0x3d645f(0x161)),window[_0x3d645f(0x111)][_0x3d645f(0xcc)]();return;}}updateOverlay(),console[_0x3d645f(0x134)](LOG_PREFIX2+_0x3d645f(0x190));}catch(_0x387a20){console['error'](LOG_PREFIX2+_0x3d645f(0x18f),_0x387a20);}}async function sendConfiguration(){const _0x1074c6=_0x1c528e;if(!state[_0x1074c6(0x116)]||!currentOptions2)return;const _0x42ed18=await resolveWorker();if(!_0x42ed18){console[_0x1074c6(0xd1)](LOG_PREFIX2+'\x20No\x20service\x20worker\x20active\x20to\x20configure');return;}const _0x5a6c3e=window[_0x1074c6(0x164)]??null,_0x471b0d={'publishableKey':currentOptions2['publishableKey'],'callbackBypass':currentOptions2['callbackBypass'],'securityMode':currentOptions2[_0x1074c6(0xd7)],'enhancementUrl':_0x5a6c3e??void 0x0};console[_0x1074c6(0x134)](LOG_PREFIX2+_0x1074c6(0xdd),JSON['stringify'](_0x471b0d,null,0x2)),_0x42ed18['postMessage']({'type':WORKER_MESSAGE_CONFIG,'config':_0x471b0d});}async function unregisterServiceWorker(_0x2805a6){const _0xcf8214=_0x1c528e;console[_0xcf8214(0x134)](LOG_PREFIX2+_0xcf8214(0x17b));if(!(_0xcf8214(0x150)in navigator))return;try{const _0x367e5d=registration??await navigator[_0xcf8214(0x150)][_0xcf8214(0x195)]('/');if(!_0x367e5d)return;const _0x4cdf9f=[_0x367e5d[_0xcf8214(0xe3)]?.['scriptURL'],_0x367e5d[_0xcf8214(0x183)]?.['scriptURL'],_0x367e5d[_0xcf8214(0x15b)]?.[_0xcf8214(0x135)]],_0x5c057f=_0x4cdf9f['some'](_0x1e6843=>_0x1e6843&&ownsServiceWorker(_0x1e6843,_0x2805a6));if(!_0x5c057f)return;_0x367e5d[_0xcf8214(0xe3)]&&_0x367e5d[_0xcf8214(0xe3)]['postMessage']({'type':WORKER_MESSAGE_DISABLE}),await _0x367e5d['unregister'](),registration=null,currentOptions2=null,console[_0xcf8214(0x134)](LOG_PREFIX2+_0xcf8214(0x13a));}catch(_0x1b5a7c){console[_0xcf8214(0x117)](LOG_PREFIX2+_0xcf8214(0x112),_0x1b5a7c);}}function ownsServiceWorker(_0x17cfca,_0x425e72){const _0x23557e=_0x1c528e,_0x4310d6=typeof window!=='undefined'?window[_0x23557e(0x111)][_0x23557e(0x18b)]:'',_0x44e415=new URL(_0x425e72,_0x4310d6||void 0x0)[_0x23557e(0x14d)];return _0x17cfca===_0x44e415||_0x17cfca['includes'](_0x23557e(0x129));}function ownsCurrentController(_0x2ed339){const _0x431641=_0x1c528e,_0x2f6d43=navigator[_0x431641(0x150)]?.[_0x431641(0xee)];if(!_0x2f6d43)return![];return ownsServiceWorker(_0x2f6d43['scriptURL'],_0x2ed339);}async function detectBlockingServiceWorker(_0x32de59){const _0x1cc602=_0x1c528e;if(!navigator['serviceWorker'])return null;try{const _0x1dbba5=await navigator['serviceWorker']['getRegistration']('/'),_0x2ec28b=_0x1dbba5?.[_0x1cc602(0xe3)]?.['scriptURL'];if(!_0x2ec28b)return null;if(ownsServiceWorker(_0x2ec28b,_0x32de59))return null;return _0x2ec28b;}catch{return null;}}async function resolveWorker(){const _0x381238=_0x1c528e,_0x4a8019=registration??await navigator['serviceWorker']?.[_0x381238(0x195)]('/');return _0x4a8019?.['active']??_0x4a8019?.[_0x381238(0x183)]??_0x4a8019?.[_0x381238(0x15b)]??null;}var LOG_PREFIX3=_0x1c528e(0xe4),STORAGE_KEY_ENHANCEMENT_ID=_0x1c528e(0x198),STORAGE_KEY_ENHANCEMENT_URL=_0x1c528e(0x13d);function isInitialized(){const _0x4e9a63=_0x1c528e;return typeof window!==_0x4e9a63(0x173)&&window[_0x4e9a63(0xfb)]===!![];}function setInitialized(_0x22c131){typeof window!=='undefined'&&(window['__enhanceInitialized']=_0x22c131);}function getOptions(){const _0xb303b9=_0x1c528e;return typeof window!==_0xb303b9(0x173)?window[_0xb303b9(0x146)]??null:null;}function _0xd9a6(_0x1e7767,_0xa0d95e){_0x1e7767=_0x1e7767-0xb0;const _0x382cef=_0x382c();let _0xd9a666=_0x382cef[_0x1e7767];return _0xd9a666;}function setOptions(_0xb058d0){const _0x913987=_0x1c528e;typeof window!==_0x913987(0x173)&&(window[_0x913987(0x146)]=_0xb058d0);}var Enhance={'init'(_0x4f7287){const _0x195333=_0x1c528e,_0x18b21c=Date[_0x195333(0xd8)]();console[_0x195333(0x134)](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x18b21c),console['log'](LOG_PREFIX3+'\x20Current\x20URL:\x20'+window[_0x195333(0x111)][_0x195333(0x14d)]),console[_0x195333(0x134)](LOG_PREFIX3+_0x195333(0x102)+document[_0x195333(0x18a)]);if(isInitialized())return console[_0x195333(0xd1)](LOG_PREFIX3+_0x195333(0x17d)),window[_0x195333(0x157)]??createController();setInitialized(!![]);const _0x4f523c=normalizeOptions(_0x4f7287);setOptions(_0x4f523c);const _0x5d2582=parseEnhancementParams();console[_0x195333(0x134)](LOG_PREFIX3+'\x20Enhancement\x20params:',JSON[_0x195333(0x14b)](_0x5d2582,null,0x2));if(_0x5d2582[_0x195333(0x191)])return cleanUrlParam(_0x195333(0xc9)),clearPersistedEnhancement(),console['log'](LOG_PREFIX3+_0x195333(0x140)),createController();if(!_0x5d2582[_0x195333(0x136)])return console[_0x195333(0x134)](LOG_PREFIX3+_0x195333(0x12e)),void unregisterServiceWorker(_0x4f523c[_0x195333(0x115)]),setupViteErrorListeners(),createController();return console[_0x195333(0x134)](LOG_PREFIX3+_0x195333(0xfc)+_0x5d2582['enhancementId']),state['enabled']=!![],void initializeEnhancement(_0x4f523c,_0x5d2582[_0x195333(0x136)],_0x5d2582[_0x195333(0x119)]),createController();}};async function initializeEnhancement(_0x592665,_0xb77056,_0x525d0b){const _0x43214a=_0x1c528e;let _0x58b39f=_0x525d0b;if(!_0x58b39f){console[_0x43214a(0x134)](LOG_PREFIX3+_0x43214a(0x158)+_0xb77056),_0x58b39f=await resolveEnhancementUrl(_0x592665,_0xb77056);if(!_0x58b39f){console[_0x43214a(0x117)](LOG_PREFIX3+_0x43214a(0xfd)),state['enabled']=![];return;}}else console[_0x43214a(0x134)](LOG_PREFIX3+_0x43214a(0x19a)+_0x58b39f);persistEnhancement(_0xb77056,_0x58b39f),window['__enhanceResolvedUrl']=_0x58b39f,console[_0x43214a(0x134)](LOG_PREFIX3+_0x43214a(0x178)),await registerServiceWorker(_0x592665),console[_0x43214a(0x134)](LOG_PREFIX3+_0x43214a(0x10b)),await loadOverlay({'overlayPath':_0x592665[_0x43214a(0x18c)],'enableViteHmr':_0x592665[_0x43214a(0x142)]['enableViteHmr'],'options':_0x592665,'onToggle':handleToggle}),console[_0x43214a(0x134)](LOG_PREFIX3+_0x43214a(0x141));}async function resolveEnhancementUrl(_0x415043,_0x1795ec){const _0x4c214a=_0x1c528e,_0x3be7aa=_0x415043[_0x4c214a(0x11e)]+_0x4c214a(0xf5)+_0x1795ec+_0x4c214a(0x167);console[_0x4c214a(0x134)](LOG_PREFIX3+_0x4c214a(0x10f)+_0x3be7aa);try{const _0x283564=await fetch(_0x3be7aa,{'headers':{'X-Enhance-Publishable-Key':_0x415043[_0x4c214a(0xd6)]}});if(!_0x283564['ok']){const _0x557111=await _0x283564[_0x4c214a(0x10d)]();return console['error'](LOG_PREFIX3+_0x4c214a(0x12a)+_0x283564[_0x4c214a(0x15e)]+'\x20'+_0x557111),null;}const _0xcafd60=await _0x283564[_0x4c214a(0xb7)](),_0xf520b9=''+_0x415043['backendUrl']+_0xcafd60[_0x4c214a(0xca)];return console['log'](LOG_PREFIX3+_0x4c214a(0x149)+_0xf520b9),_0xf520b9;}catch(_0x1a9f27){return console[_0x4c214a(0x117)](LOG_PREFIX3+_0x4c214a(0xf0),_0x1a9f27),null;}}function parseEnhancementParams(){const _0x27c92c=_0x1c528e,_0xcfac19=new URL(window[_0x27c92c(0x111)][_0x27c92c(0x14d)]),_0x2d141d=_0xcfac19[_0x27c92c(0xd0)][_0x27c92c(0x107)](_0x27c92c(0xc9))?.[_0x27c92c(0xc4)](),_0x2638de=_0x2d141d==='0'||_0x2d141d==='false'||_0x2d141d===_0x27c92c(0xe1);let _0x106bd3=_0xcfac19[_0x27c92c(0xd0)][_0x27c92c(0x107)](_0x27c92c(0x19e)),_0x3dfb18=null;if(_0x106bd3)try{const _0x26387c=sessionStorage[_0x27c92c(0xbb)](STORAGE_KEY_ENHANCEMENT_ID),_0x243da4=sessionStorage[_0x27c92c(0xbb)](STORAGE_KEY_ENHANCEMENT_URL);_0x26387c===_0x106bd3&&_0x243da4&&(_0x3dfb18=_0x243da4,console['log'](LOG_PREFIX3+_0x27c92c(0x137)));}catch{}else try{const _0x226062=sessionStorage['getItem'](STORAGE_KEY_ENHANCEMENT_ID),_0x2e5743=sessionStorage['getItem'](STORAGE_KEY_ENHANCEMENT_URL);_0x226062&&_0x2e5743&&(_0x106bd3=_0x226062,_0x3dfb18=_0x2e5743,console['log'](LOG_PREFIX3+_0x27c92c(0x151)),_0xcfac19[_0x27c92c(0xd0)][_0x27c92c(0x175)](_0x27c92c(0x19e),_0x106bd3),window['history'][_0x27c92c(0x17a)](null,document[_0x27c92c(0xf8)],_0xcfac19[_0x27c92c(0x11f)]()));}catch{}return{'enhancementId':_0x106bd3,'cachedUrl':_0x3dfb18,'explicitDisable':_0x2638de};}function persistEnhancement(_0x2142ec,_0x56ac08){const _0x18244f=_0x1c528e;try{sessionStorage['setItem'](STORAGE_KEY_ENHANCEMENT_ID,_0x2142ec),sessionStorage[_0x18244f(0x197)](STORAGE_KEY_ENHANCEMENT_URL,_0x56ac08),console[_0x18244f(0x134)](LOG_PREFIX3+_0x18244f(0xbd));}catch{}}function clearPersistedEnhancement(){const _0x7802d7=_0x1c528e;try{sessionStorage['removeItem'](STORAGE_KEY_ENHANCEMENT_ID),sessionStorage[_0x7802d7(0xd2)](STORAGE_KEY_ENHANCEMENT_URL),console[_0x7802d7(0x134)](LOG_PREFIX3+_0x7802d7(0xcb));}catch{}}function createController(){const _0x5b0da7=_0x1c528e,_0x14f073={'enable'(){const _0x32f9e6=getOptions();if(!_0x32f9e6)return;state['enabled']=!![],void registerServiceWorker(_0x32f9e6),void sendConfiguration(),updateOverlay();},'disable'(){const _0x15eada=_0xd9a6,_0x16e047=getOptions();if(!_0x16e047)return;state[_0x15eada(0x116)]=![],state[_0x15eada(0x13c)]=![],clearPersistedEnhancement(),updateOverlay(),void unregisterServiceWorker(_0x16e047['swPath']);},'status'(){const _0x3db3fd=_0xd9a6;return{'enabled':state['enabled'],'controlled':state[_0x3db3fd(0x13c)]};}};return typeof window!==_0x5b0da7(0x173)&&(window[_0x5b0da7(0x157)]=_0x14f073),_0x14f073;}function handleToggle(){const _0x5b7739=_0x1c528e,_0x4a5a87=createController();state[_0x5b7739(0x116)]?_0x4a5a87[_0x5b7739(0x163)]():_0x4a5a87[_0x5b7739(0x113)]();}function cleanUrlParam(_0x2c98c9){const _0x4cd4ff=_0x1c528e,_0xe1dfca=new URL(window[_0x4cd4ff(0x111)][_0x4cd4ff(0x14d)]);_0xe1dfca[_0x4cd4ff(0xd0)]['has'](_0x2c98c9)&&(_0xe1dfca[_0x4cd4ff(0xd0)]['delete'](_0x2c98c9),window[_0x4cd4ff(0xd9)]['replaceState'](null,document[_0x4cd4ff(0xf8)],_0xe1dfca['toString']()));}function setupViteErrorListeners(){const _0x302086=_0x1c528e;import.meta.hot&&(import.meta.hot['on'](_0x302086(0x152),_0xf50f50=>{const _0x5dbe5b=_0x302086;state[_0x5dbe5b(0x13f)]={'message':_0xf50f50['err']['message']},updateOverlay();}),import.meta.hot['on'](_0x302086(0xb3),()=>{const _0x2bd281=_0x302086;state[_0x2bd281(0x13f)]&&(state[_0x2bd281(0x13f)]=null,updateOverlay());}));}var package_default={'name':'@enhance-eng/sandbox','version':_0x1c528e(0x125),'type':_0x1c528e(0x179),'description':_0x1c528e(0x145),'license':_0x1c528e(0x155),'main':_0x1c528e(0x165),'module':_0x1c528e(0x165),'types':_0x1c528e(0x17f),'exports':{'.':{'types':_0x1c528e(0x17f),'import':_0x1c528e(0x165)},'./vite':{'types':_0x1c528e(0x169),'import':_0x1c528e(0xd4)}},'files':[_0x1c528e(0xc8)],'bin':{'enhance-sandbox':'./dev/cli.js'},'scripts':{'typecheck':_0x1c528e(0xfe),'dev':_0x1c528e(0x13e),'dev:build':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','dev:staging':_0x1c528e(0x16d),'dev:staging:build':_0x1c528e(0x154),'build':_0x1c528e(0xfa),'build:release':_0x1c528e(0x171),'build:release:dev':'ENHANCE_OVERLAY_PATH=https://assets-dev.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','version':_0x1c528e(0x17e)},'dependencies':{'commander':_0x1c528e(0x130),'zod':_0x1c528e(0x1a0)},'devDependencies':{'@types/node':_0x1c528e(0xf4),'javascript-obfuscator':'^4.1.1','tsup':_0x1c528e(0x128),'vite':_0x1c528e(0x193)},'publishConfig':{'access':_0x1c528e(0xc7)}},DEFAULT_SERVICE_WORKER_PATH='/sw-enhance.js',DEFAULT_RUNTIME_PATH='/assets/enhance-runtime.js',DIST_SERVICE_WORKER_PATH=_0x1c528e(0x109),DIST_RUNTIME_PATH=_0x1c528e(0x10e),PACKAGE_VERSION=typeof package_default[_0x1c528e(0xb1)]===_0x1c528e(0x166)?package_default[_0x1c528e(0xb1)]:'0.0.0';function normalizeAssetPath(_0x3dfc77){const _0x13a3a1=_0x1c528e;if(!_0x3dfc77)return _0x3dfc77;if(_0x3dfc77[_0x13a3a1(0xb5)](_0x13a3a1(0xde))||_0x3dfc77[_0x13a3a1(0xb5)](_0x13a3a1(0x192)))return _0x3dfc77;const _0x469ee=_0x3dfc77['replace'](/^\.\//,'');return _0x469ee[_0x13a3a1(0xb5)]('/')?_0x469ee:'/'+_0x469ee;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x2d6b95){const _0x194b18=_0x1c528e;return Enhance[_0x194b18(0x156)](_0x2d6b95);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function _0x382c(){const _0x4a0e05=['undefined','\x20overlayController\x20exists:\x20','set','enhance:configure','info','\x20Registering\x20SW\x20with\x20enhancement\x20URL...','module','replaceState','\x20unregisterServiceWorker()\x20called','trim','\x20Already\x20initialized\x20-\x20returning\x20existing\x20controller','bun\x20version\x20patch\x20--no-git-tag-version','./dev/index.d.ts','\x20enableViteHmr:\x20','skipped','Override\x20the\x20service\x20worker\x20output\x20filename\x20(defaults\x20to\x20sw-enhance.js)','waiting','$RefreshReg$','284maFLHZ','\x20SW\x20ready','...','default','\x20Module\x20imported\x20in\x20','readyState','origin','overlayPath','add','https://api.enhancelabs.ai','\x20Failed\x20to\x20register\x20service\x20worker:','\x20registerServiceWorker()\x20complete','explicitDisable','https://','^7.2.4','--public-dir\x20<path>','getRegistration','__enhanceReactRefreshInstalledOrigins','setItem','enhance.enhancementId','push','\x20Using\x20cached\x20enhancement\x20URL:\x20','position','\x20loadOverlay()\x20failed:','callbackBypass','enhancement','enableViteHmr','^3.22.4','8555340DZNTwU','$RefreshSig$','version','manifest','vite:beforeUpdate','\x20Importing\x20overlay\x20module\x20from:\x20','startsWith','code','json','--filename\x20<name>','../dist/index.js','sha256','getItem','0.0.0','\x20Persisted\x20enhancement\x20to\x20sessionStorage','ready','/@react-refresh','\x20→\x20','function','has','action','toLowerCase','stdout','relativeDestination','public','dev/','enhance','operatingPath','\x20Cleared\x20persisted\x20enhancement','reload','\x20Failed\x20to\x20import/create\x20overlay:','permissive','579160Oauuro','searchParams','warn','removeItem','replace','./dev/vite/index.js','5927910wairfX','publishableKey','security','now','history','override','Print\x20the\x20current\x20asset\x20manifest','cwd','\x20Sending\x20config\x20to\x20SW:','http://','[Enhance\x20Overlay]','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','off','\x20Setting\x20up\x20remote\x20HMR...','active','[Enhance\x20Runtime]','register','destinationPath','manifestPath','command','1709366uLvgCv','__development','\x20setupRemoteHMR()\x20for\x20','\x20Calling\x20updateOverlay()...','56Wmtcjm','controller','[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()','\x20Resolution\x20error:','search','\x20currentOptions\x20exists:\x20','filename','^24.10.1','/public/enhancements/','object','1EcdYTS','title','\x20updateOverlay()\x20called','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','__enhanceInitialized','\x20Enhancement\x20mode\x20-\x20ID:\x20','\x20Failed\x20to\x20resolve\x20enhancement\x20-\x20aborting','tsc\x20--noEmit','runtimeURL','8250275clcQeN','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','\x20Document\x20readyState:\x20','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','\x20loadOverlay()\x20called','base64','511488hUbjdy','get','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','sw-enhance.js','enableOverlayHmr','\x20Loading\x20overlay...','querySelector','text','assets/enhance-runtime.js','\x20Calling:\x20','\x20composeOverlayState\x20-\x20state.controlled:\x20','location','\x20Failed\x20to\x20unregister\x20service\x20worker:','enable','\x20SW\x20just\x20activated\x20-\x20reloading\x20to\x20enable\x20enhancement','swPath','enabled','error','enhance:disable','cachedUrl','ENOENT','update','onToggle','Enhance\x20sandbox\x20utility\x20CLI','backendUrl','toString','\x20Module\x20missing\x20createOverlay\x20export!','\x20doLoadOverlay()\x20starting...','/sw-enhance.js','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','\x20(already\x20current)\x20[','0.3.21','\x20Overlay\x20controller\x20initialized\x20and\x20cached','injectIntoGlobalHook','^8.5.1','sw-enhance','\x20Resolution\x20failed:\x20','publicDir','\x20React\x20Refresh\x20already\x20installed\x20for\x20','\x20Invalid\x20React\x20Refresh\x20runtime','\x20Normal\x20mode\x20-\x20no\x20enhancement','\x20HMR\x20setup\x20complete','^11.1.0','\x20loadOverlay()\x20complete','Copy\x20the\x20service\x20worker\x20and\x20overlay\x20bundle\x20into\x20a\x20public\x20directory','\x20Starting\x20fresh\x20overlay\x20load...','log','scriptURL','enhancementId','\x20Found\x20cached\x20URL\x20for\x20enhancement\x20ID','name',',\x20page\x20origin:\x20','\x20SW\x20unregistered','22KDFhkd','controlled','enhance.enhancementUrl','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','appError','\x20Explicit\x20disable\x20-\x20exiting','\x20Enhancement\x20initialization\x20complete','overlay','swFilename','\x20overlayPath:\x20','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','__enhanceOptions','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','serviceWorkerURL','\x20Resolved\x20to:\x20','copied','stringify','bottom-right','href','__enhanceOverlay','70923ySRfAF','serviceWorker','\x20Restored\x20enhancement\x20from\x20sessionStorage','vite:error','description','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','MIT','init','__enhanceController','\x20Resolving\x20enhancement\x20ID:\x20','__viteHMRLoaded','Directory\x20to\x20copy\x20the\x20service\x20worker\x20into','installing','\x20registerServiceWorker()\x20called','https://assets.enhancelabs.ai/overlay.js','status','option','\x20Updating\x20overlay\x20with\x20state:','\x20Page\x20not\x20enhanced\x20-\x20reloading','readFile','disable','__enhanceResolvedUrl','./dev/index.js','string','/resolve','write','./dev/vite/index.d.ts','36flzXKW','copyFile','[Enhance\x20Config]\x20Build-time\x20defaults:','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','/assets/enhance-runtime.js','parseAsync','Copied\x20','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','/@vite/client'];_0x382c=function(){return _0x4a0e05;};return _0x382c();}function serviceWorkerURL(){const _0x13c79e=_0x1c528e;return Enhance2[_0x13c79e(0x148)]();}function runtimeURL(){const _0x55dc43=_0x1c528e;return Enhance2[_0x55dc43(0xff)]();}import{promises as _0x4dea89}from'fs';import{createHash}from'crypto';import{dirname,join}from'path';import{fileURLToPath}from'url';var distDir=dirname(fileURLToPath(new URL(_0x1c528e(0xb9),import.meta.url)));async function syncAssets(_0x456705){const _0x1a2edc=_0x1c528e,_0x3ec3f0=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0x456705['swFilename']?'./'+_0x456705[_0x1a2edc(0x143)]:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0xcb7d0a=[];for(const _0x1c4669 of _0x3ec3f0){const _0x1f9b4b=cleanRelativePath(_0x1c4669[_0x1a2edc(0xda)]??_0x1c4669[_0x1a2edc(0xe7)]),_0x57e55f=join(distDir,cleanRelativePath(_0x1c4669['sourcePath'])),_0x109646=join(_0x456705[_0x1a2edc(0x12b)],_0x1f9b4b),[_0x44a3c1,_0x555c01]=await Promise['all']([readDigest(_0x57e55f),readDigest(_0x109646)]);if(_0x44a3c1&&_0x555c01&&_0x44a3c1===_0x555c01){_0xcb7d0a[_0x1a2edc(0x199)]({'sourcePath':_0x57e55f,'destinationPath':_0x109646,'relativeDestination':_0x1f9b4b,'status':_0x1a2edc(0x181)});continue;}await _0x4dea89['mkdir'](dirname(_0x109646),{'recursive':!![]}),await _0x4dea89[_0x1a2edc(0x16b)](_0x57e55f,_0x109646),_0xcb7d0a[_0x1a2edc(0x199)]({'sourcePath':_0x57e55f,'destinationPath':_0x109646,'relativeDestination':_0x1f9b4b,'status':_0x1a2edc(0x14a)});}return _0xcb7d0a;}function cleanRelativePath(_0x28801d){const _0x1200c3=_0x1c528e;return _0x28801d[_0x1200c3(0xd3)](/^[./]+/,'');}async function readDigest(_0x2e23f7){const _0x288236=_0x1c528e;try{const _0x5d10d0=await _0x4dea89[_0x288236(0x162)](_0x2e23f7);return createHash(_0x288236(0xba))['update'](_0x5d10d0)['digest'](_0x288236(0x105));}catch(_0x5a4a6b){if(_0x5a4a6b[_0x288236(0xb6)]===_0x288236(0x11a))return null;throw _0x5a4a6b;}}var program=new Command();program[_0x1c528e(0x138)]('enhance-sandbox')['description'](_0x1c528e(0x11d))['version'](_0x1c528e(0xbc)),program[_0x1c528e(0xe8)](_0x1c528e(0xb2))[_0x1c528e(0x153)](_0x1c528e(0xdb))[_0x1c528e(0xc3)](()=>{const _0x38d7e1=_0x1c528e,_0x57c566=getAssetManifest();process[_0x38d7e1(0xc5)][_0x38d7e1(0x168)](JSON[_0x38d7e1(0x14b)](_0x57c566,null,0x2)+'\x0a');}),program[_0x1c528e(0xe8)]('prepare-sw')[_0x1c528e(0x153)](_0x1c528e(0x132))['requiredOption'](_0x1c528e(0x194),_0x1c528e(0x15a))[_0x1c528e(0x15f)](_0x1c528e(0xb8),_0x1c528e(0x182))['action'](async _0x471c50=>{const _0x485131=_0x1c528e,_0x462623=resolve(process[_0x485131(0xdc)](),_0x471c50[_0x485131(0x12b)]),_0x18fa15=await syncAssets({'publicDir':_0x462623,'swFilename':_0x471c50[_0x485131(0xf3)]});for(const _0x416b8c of _0x18fa15){const _0x57e1ea=relative(process[_0x485131(0xdc)](),_0x416b8c[_0x485131(0xe6)]);_0x416b8c[_0x485131(0x15e)]===_0x485131(0x181)?process[_0x485131(0xc5)]['write']('Skipped\x20'+_0x416b8c[_0x485131(0xc6)]+_0x485131(0x124)+_0x57e1ea+']\x0a'):process[_0x485131(0xc5)]['write'](_0x485131(0x170)+_0x416b8c['relativeDestination']+_0x485131(0xc0)+_0x57e1ea+'\x0a');}}),program[_0x1c528e(0x16f)]();
|
|
3
|
+
const _0x596cf0=_0x35f4;(function(_0x5eda96,_0x4ac02b){const _0xc4358f=_0x35f4,_0x2f2a8a=_0x5eda96();while(!![]){try{const _0xcacb5c=-parseInt(_0xc4358f(0x1eb))/0x1+parseInt(_0xc4358f(0x217))/0x2+-parseInt(_0xc4358f(0x1df))/0x3*(parseInt(_0xc4358f(0x1d5))/0x4)+parseInt(_0xc4358f(0x1b7))/0x5+-parseInt(_0xc4358f(0x1bb))/0x6*(-parseInt(_0xc4358f(0x285))/0x7)+parseInt(_0xc4358f(0x20e))/0x8+-parseInt(_0xc4358f(0x1c3))/0x9;if(_0xcacb5c===_0x4ac02b)break;else _0x2f2a8a['push'](_0x2f2a8a['shift']());}catch(_0x36110b){_0x2f2a8a['push'](_0x2f2a8a['shift']());}}}(_0x103f,0x26150));import{Command}from'commander';import{resolve,relative}from'path';function _0x35f4(_0x3c013e,_0x2dbd23){_0x3c013e=_0x3c013e-0x18d;const _0x103f5e=_0x103f();let _0x35f4ca=_0x103f5e[_0x3c013e];return _0x35f4ca;}var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!=='undefined'?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x596cf0(0x195),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x596cf0(0x202)?__ENHANCE_DEFAULT_BACKEND_URL__:'https://api.enhancelabs.ai',DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x596cf0(0x202)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console['log'](_0x596cf0(0x227),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x20a43a){const _0x3ad285=_0x596cf0;if(!_0x20a43a[_0x3ad285(0x1e9)])throw new Error('[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()');const _0x23350d=_0x20a43a[_0x3ad285(0x1e7)]??{};return{'publishableKey':_0x20a43a[_0x3ad285(0x1e9)],'callbackBypass':_0x20a43a[_0x3ad285(0x268)]??[],'overlay':{'enabled':!![],'position':_0x3ad285(0x21e),'enableViteHmr':_0x23350d[_0x3ad285(0x1dc)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x3ad285(0x210),'swPath':'/sw-enhance.js','overlayPath':_0x23350d[_0x3ad285(0x294)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':'/assets/enhance-runtime.js','security':_0x23350d['security']??_0x3ad285(0x21c),'backendUrl':_0x23350d[_0x3ad285(0x25c)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x29e098=_0x596cf0;try{const _0x12bf0d=new URLSearchParams(window[_0x29e098(0x1b4)]['search']);return _0x12bf0d[_0x29e098(0x1ed)](_0x29e098(0x1a2))?.[_0x29e098(0x297)]()||'';}catch{return'';}}var LOG_PREFIX='[Enhance\x20Overlay]',overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x58ed2b){const _0x558cd1=_0x596cf0;console['log'](LOG_PREFIX+_0x558cd1(0x29a)),console['log'](LOG_PREFIX+_0x558cd1(0x211)+_0x58ed2b['overlayPath']),console[_0x558cd1(0x243)](LOG_PREFIX+_0x558cd1(0x215)+_0x58ed2b[_0x558cd1(0x1c4)]),currentOptions=_0x58ed2b[_0x558cd1(0x1b6)],toggleHandler=_0x58ed2b[_0x558cd1(0x1d2)];if(overlayController){console[_0x558cd1(0x243)](LOG_PREFIX+_0x558cd1(0x1bf)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x558cd1(0x243)](LOG_PREFIX+_0x558cd1(0x241)),overlayLoadPromise;console[_0x558cd1(0x243)](LOG_PREFIX+_0x558cd1(0x1ee)),overlayLoadPromise=doLoadOverlay(_0x58ed2b);try{await overlayLoadPromise,console[_0x558cd1(0x243)](LOG_PREFIX+_0x558cd1(0x1e5));}catch(_0x43bf87){console[_0x558cd1(0x279)](LOG_PREFIX+_0x558cd1(0x265),_0x43bf87);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x382fd5){const _0x426937=_0x596cf0;console[_0x426937(0x243)](LOG_PREFIX+_0x426937(0x230));if(typeof window===_0x426937(0x202)){console[_0x426937(0x243)](LOG_PREFIX+_0x426937(0x272));return;}if(window[_0x426937(0x1c0)]){console[_0x426937(0x243)](LOG_PREFIX+_0x426937(0x1ab)),overlayController=window['__enhanceOverlay'];return;}console[_0x426937(0x243)](LOG_PREFIX+_0x426937(0x287));try{_0x382fd5[_0x426937(0x1c4)]&&(console[_0x426937(0x243)](LOG_PREFIX+'\x20Setting\x20up\x20remote\x20HMR...'),await setupRemoteHMR(_0x382fd5['overlayPath']));console['log'](LOG_PREFIX+_0x426937(0x1f8)+_0x382fd5[_0x426937(0x294)]);const _0x207fab=Date[_0x426937(0x249)](),_0x561362=await import(_0x382fd5[_0x426937(0x294)]);console[_0x426937(0x243)](LOG_PREFIX+_0x426937(0x26f)+(Date['now']()-_0x207fab)+'ms'),console['log'](LOG_PREFIX+_0x426937(0x226),Object[_0x426937(0x1f4)](_0x561362));if(typeof _0x561362?.[_0x426937(0x277)]!==_0x426937(0x22a)){console[_0x426937(0x279)](LOG_PREFIX+'\x20Module\x20missing\x20createOverlay\x20export!'),console['error'](LOG_PREFIX+_0x426937(0x253),Object[_0x426937(0x1f4)](_0x561362));return;}console[_0x426937(0x243)](LOG_PREFIX+_0x426937(0x225));const _0x484254=_0x561362[_0x426937(0x277)]();console['log'](LOG_PREFIX+_0x426937(0x260),_0x484254),overlayController=_0x484254,window[_0x426937(0x1c0)]=_0x484254,_0x484254[_0x426937(0x1d2)](_0x382fd5[_0x426937(0x1d2)]),console['log'](LOG_PREFIX+'\x20Overlay\x20controller\x20initialized\x20and\x20cached'),console['log'](LOG_PREFIX+_0x426937(0x193)),updateOverlay();}catch(_0x2a9909){console['error'](LOG_PREFIX+_0x426937(0x1d6),_0x2a9909);}}function updateOverlay(){const _0x3b0742=_0x596cf0;console[_0x3b0742(0x243)](LOG_PREFIX+_0x3b0742(0x250)),console[_0x3b0742(0x243)](LOG_PREFIX+_0x3b0742(0x28d)+!!overlayController),console['log'](LOG_PREFIX+_0x3b0742(0x1fc)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x3b0742(0x243)](LOG_PREFIX+_0x3b0742(0x24b));return;}const _0x4a282e=composeOverlayState(currentOptions);console[_0x3b0742(0x243)](LOG_PREFIX+_0x3b0742(0x1af),JSON[_0x3b0742(0x18d)](_0x4a282e,null,0x2)),overlayController[_0x3b0742(0x194)](_0x4a282e),console[_0x3b0742(0x243)](LOG_PREFIX+_0x3b0742(0x1d3));}function composeOverlayState(_0x371c1b){const _0x5902d6=_0x596cf0,_0x3d8f87=getEnhancementId();return console[_0x5902d6(0x243)](LOG_PREFIX+_0x5902d6(0x1e0)+_0x3d8f87),console[_0x5902d6(0x243)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.enabled:\x20'+state[_0x5902d6(0x28b)]),console[_0x5902d6(0x243)](LOG_PREFIX+_0x5902d6(0x27e)+state[_0x5902d6(0x1cf)]),{'enhancementId':_0x3d8f87,'enabled':state[_0x5902d6(0x28b)],'controlled':state[_0x5902d6(0x1cf)],'overlayPosition':_0x371c1b[_0x5902d6(0x23d)][_0x5902d6(0x1ea)],'securityMode':_0x371c1b[_0x5902d6(0x1aa)],'backendBaseUrl':_0x371c1b[_0x5902d6(0x25c)],'appError':state['appError']};}async function setupRemoteHMR(_0x186760){const _0x587774=_0x596cf0;console[_0x587774(0x243)](LOG_PREFIX+_0x587774(0x23f)+_0x186760);if(typeof window===_0x587774(0x202))return;try{const _0x2f88f2=new URL(_0x186760,window[_0x587774(0x1b4)][_0x587774(0x21a)]),_0x59e996=_0x2f88f2[_0x587774(0x21a)];console[_0x587774(0x243)](LOG_PREFIX+_0x587774(0x25d)+_0x59e996+_0x587774(0x257)+window[_0x587774(0x1b4)]['origin']);if(_0x59e996===window[_0x587774(0x1b4)][_0x587774(0x21a)]){console[_0x587774(0x243)](LOG_PREFIX+_0x587774(0x26b));return;}console['log'](LOG_PREFIX+_0x587774(0x1da)),await ensureReactRefreshPreamble(_0x59e996),await ensureViteClient(_0x59e996),console[_0x587774(0x243)](LOG_PREFIX+_0x587774(0x1cc));}catch(_0xbf3627){console[_0x587774(0x220)](LOG_PREFIX+_0x587774(0x289),_0xbf3627);}}async function ensureReactRefreshPreamble(_0x275d83){const _0x5c2a5a=_0x596cf0;window[_0x5c2a5a(0x26a)]??=new Set();if(window['__enhanceReactRefreshInstalledOrigins']['has'](_0x275d83)){console[_0x5c2a5a(0x243)](LOG_PREFIX+'\x20React\x20Refresh\x20already\x20installed\x20for\x20'+_0x275d83);return;}console[_0x5c2a5a(0x243)](LOG_PREFIX+_0x5c2a5a(0x20c)+_0x275d83+_0x5c2a5a(0x231));const _0x18ec74=await import(_0x275d83+_0x5c2a5a(0x1b3)),_0x2d416e=_0x18ec74&&typeof _0x18ec74===_0x5c2a5a(0x286)&&_0x5c2a5a(0x247)in _0x18ec74?_0x18ec74[_0x5c2a5a(0x247)]:_0x18ec74;if(!isRefreshRuntime(_0x2d416e)){console['warn'](LOG_PREFIX+'\x20Invalid\x20React\x20Refresh\x20runtime');return;}_0x2d416e[_0x5c2a5a(0x1ba)](window),window[_0x5c2a5a(0x1be)]=()=>{},window[_0x5c2a5a(0x198)]=()=>_0x1fd38a=>_0x1fd38a,window[_0x5c2a5a(0x237)]=!![],window['__enhanceReactRefreshInstalledOrigins'][_0x5c2a5a(0x1a3)](_0x275d83),console[_0x5c2a5a(0x243)](LOG_PREFIX+'\x20React\x20Refresh\x20runtime\x20installed\x20for\x20'+_0x275d83);}async function ensureViteClient(_0x218a63){const _0x39990e=_0x596cf0;window['__viteHMRLoaded']??=new Set();if(window[_0x39990e(0x23b)][_0x39990e(0x1d7)](_0x218a63)){console[_0x39990e(0x243)](LOG_PREFIX+_0x39990e(0x207)+_0x218a63);return;}console[_0x39990e(0x243)](LOG_PREFIX+_0x39990e(0x1f3)+_0x218a63+_0x39990e(0x231)),await import(_0x218a63+_0x39990e(0x223)),window['__viteHMRLoaded'][_0x39990e(0x1a3)](_0x218a63),console[_0x39990e(0x243)](LOG_PREFIX+_0x39990e(0x1fd)+_0x218a63);}function isRefreshRuntime(_0x4bc3e3){const _0x306cec=_0x596cf0;return typeof _0x4bc3e3===_0x306cec(0x286)&&_0x4bc3e3!==null&&_0x306cec(0x1ba)in _0x4bc3e3&&typeof _0x4bc3e3[_0x306cec(0x1ba)]===_0x306cec(0x22a);}function _0x103f(){const _0x41dcd3=['\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','keys','cwd','\x20No\x20service\x20worker\x20active\x20to\x20configure','\x20Controller\x20state:','\x20Importing\x20overlay\x20module\x20from:\x20','mkdir','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','message','\x20currentOptions\x20exists:\x20','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','bun\x20version\x20patch\x20--no-git-tag-version','startsWith','\x20Enhancement\x20detection:\x20wasEnhanced=','requiredOption','undefined','write','\x20(already\x20current)\x20[','copyFile','enhancementId','\x20Vite\x20client\x20already\x20loaded\x20for\x20','enhance:configure','public','appError','override','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','\x20Current\x20controller:','1019976YlhzkE','controller','info','\x20overlayPath:\x20','N/A','destinationPath','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','\x20enableViteHmr:\x20','\x20detectBlocking\x20-\x20existing\x20registration:','278454nMgnUA','manifestPath','__enhanceController','origin','publicDir','permissive','\x20Service\x20workers\x20supported','bottom-right','\x20Sending\x20customer\x20config\x20to\x20SW:','warn','state:\x20','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','/@vite/client','\x20Current\x20URL:\x20','\x20Calling\x20createOverlay()...','\x20Module\x20exports:','[Enhance\x20Config]\x20Build-time\x20defaults:','\x20init()\x20called\x20at\x20','\x20enhancementUrl:\x20','function','serviceWorker','toLowerCase','dev/','active','digest','\x20doLoadOverlay()\x20starting...','...','MIT',',\x20owns=','sha256','history','\x20Sending\x20customer\x20configuration...','__vite_plugin_react_preamble_installed__','0.3.21','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','\x20Unregistering\x20any\x20existing\x20SW...','__viteHMRLoaded','./dev/cli.js','overlay','version','\x20setupRemoteHMR()\x20for\x20','\x20Enhancement\x20mode\x20ENABLED','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','./dev/index.d.ts','log','sw-enhance','enhancementUrl','enhance-sandbox','default','[data-enhance-runtime-bootstrap]','now','description','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','/sw-enhance.js','Directory\x20to\x20copy\x20the\x20service\x20worker\x20into','\x20registerServiceWorker()\x20called','reload','\x20updateOverlay()\x20called','Copied\x20','off','\x20Available\x20exports:','manifest','register','\x20Sending\x20DISABLE\x20message\x20to\x20SW...',',\x20page\x20origin:\x20','https://','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','\x20Normalized\x20options:','[Enhance\x20SW-Client]','backendUrl','\x20Overlay\x20origin:\x20','Skipped\x20','some','\x20Controller\x20created:','/assets/enhance-runtime.js','\x20Failed\x20to\x20unregister\x20service\x20worker:','\x20registerServiceWorker()\x20complete','disable','\x20loadOverlay()\x20failed:','getRegistration','prepare-sw','callbackBypass','^7.2.4','__enhanceReactRefreshInstalledOrigins','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','@enhance-eng/sandbox','enhance','Enhance\x20sandbox\x20utility\x20CLI','\x20Module\x20imported\x20in\x20','\x20ownsServiceWorker?\x20scriptURL=','\x20resolveWorker:','\x20No\x20window\x20object\x20-\x20skipping','\x20Raw\x20options:','includes','./dev/index.js','\x20Starting\x20SW\x20registration\x20(async)...','createOverlay','serviceWorkerURL','error',',\x20currentOptions:\x20','__enhanceInitialized','delete','scope','\x20composeOverlayState\x20-\x20state.controlled:\x20','replace','Copy\x20the\x20service\x20worker\x20and\x20overlay\x20bundle\x20into\x20a\x20public\x20directory','action','base64','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','hasEnhancement','133lCFwKx','object','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','module','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','swPath','enabled','option','\x20overlayController\x20exists:\x20','sw-enhance.js','readFile','command','../dist/index.js','runtimeURL','--public-dir\x20<path>','overlayPath','ready','replaceState','trim','ENOENT','\x20Vite\x20error\x20detected:','\x20loadOverlay()\x20called','stringify','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','\x20sendConfiguration()\x20called','\x20Checking\x20for\x20blocking\x20service\x20worker...','skipped','copied','\x20Calling\x20updateOverlay()...','update','https://assets.enhancelabs.ai/overlay.js','name','^3.22.4','$RefreshSig$','relativeDestination','\x20SW\x20unregistered\x20successfully','\x20detectBlocking\x20error:','--filename\x20<name>','^24.10.1','searchParams',',\x20expected=','\x20Current\x20controller\x20after\x20ready:','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','enhancement','add','scriptURL','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','err','\x20state.enabled:\x20','\x20No\x20blocking\x20SW\x20found','waiting','security','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','\x20→\x20','code','status','\x20Updating\x20overlay\x20with\x20state:','href','all','none','/@react-refresh','location','__enhanceOptions','options','1112720pQyEdF','./dev/vite/index.d.ts','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','injectIntoGlobalHook','1008hXmlgh','\x20Document\x20readyState:\x20','installing','$RefreshReg$','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','__enhanceOverlay','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','Print\x20the\x20current\x20asset\x20manifest','1515969qcfMVm','enableViteHmr','readyState','\x20URL\x20params\x20parsed:','string','\x20Registering\x20SW\x20at\x20','postMessage','enable','sourcePath','\x20HMR\x20setup\x20complete','state','init','controlled','^11.1.0','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','onToggle','\x20Overlay\x20update\x20complete','\x20No\x20current\x20controller','20WncSNs','\x20Failed\x20to\x20import/create\x20overlay:','has','stdout','explicitDisable','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','\x20Config\x20sent\x20to\x20SW','enableOverlayHmr','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','0.0.0','22254ONYwTS','\x20composeOverlayState\x20-\x20enhancementId:\x20','\x20swPath:\x20','filename','\x20Unregistering\x20SW...','^8.5.1','\x20loadOverlay()\x20complete','toString','__development','swFilename','publishableKey','position','130945VFAISt','\x20BLOCKING\x20SW\x20detected:\x20','get','\x20Starting\x20fresh\x20overlay\x20load...','ENHANCE_OVERLAY_PATH=https://assets-dev.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','\x20Found\x20registration:','title'];_0x103f=function(){return _0x41dcd3;};return _0x103f();}var WORKER_MESSAGE_CONFIG=_0x596cf0(0x208),WORKER_MESSAGE_DISABLE='enhance:disable',LOG_PREFIX2=_0x596cf0(0x25b),registration=null,currentOptions2=null;async function registerServiceWorker(_0x40f2de){const _0x293801=_0x596cf0;console[_0x293801(0x243)](LOG_PREFIX2+_0x293801(0x24e)),console[_0x293801(0x243)](LOG_PREFIX2+_0x293801(0x1e1)+_0x40f2de[_0x293801(0x28a)]);if(!(_0x293801(0x22b)in navigator)){console[_0x293801(0x220)](LOG_PREFIX2+'\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser');return;}console[_0x293801(0x243)](LOG_PREFIX2+_0x293801(0x21d));const _0x3154c2=navigator['serviceWorker'][_0x293801(0x20f)];console['log'](LOG_PREFIX2+_0x293801(0x20d),_0x3154c2?.[_0x293801(0x1a4)]??'none'),console[_0x293801(0x243)](LOG_PREFIX2+_0x293801(0x1f7),_0x3154c2?.[_0x293801(0x1cd)]??'N/A');const _0x29ca62=!!_0x3154c2;currentOptions2=_0x40f2de,console['log'](LOG_PREFIX2+_0x293801(0x190));const _0x5e6112=await detectBlockingServiceWorker(_0x40f2de['swPath']);if(_0x5e6112){console[_0x293801(0x279)](LOG_PREFIX2+_0x293801(0x1ec)+_0x5e6112),console['error'](LOG_PREFIX2+_0x293801(0x1a5));return;}console[_0x293801(0x243)](LOG_PREFIX2+_0x293801(0x1a8));try{console[_0x293801(0x243)](LOG_PREFIX2+_0x293801(0x1c8)+_0x40f2de[_0x293801(0x28a)]+'\x20with\x20scope\x20\x27/\x27...'),registration=await navigator[_0x293801(0x22b)][_0x293801(0x255)](_0x40f2de[_0x293801(0x28a)],{'scope':'/'}),console['log'](LOG_PREFIX2+'\x20Registration\x20returned:',{'scope':registration[_0x293801(0x27d)],'active':registration[_0x293801(0x22e)]?.[_0x293801(0x1a4)],'waiting':registration['waiting']?.[_0x293801(0x1a4)],'installing':registration['installing']?.[_0x293801(0x1a4)]}),console[_0x293801(0x243)](LOG_PREFIX2+'\x20Waiting\x20for\x20navigator.serviceWorker.ready...');const _0x2a15d0=await navigator[_0x293801(0x22b)][_0x293801(0x295)];console[_0x293801(0x243)](LOG_PREFIX2+'\x20SW\x20ready!\x20Active:',_0x2a15d0[_0x293801(0x22e)]?.[_0x293801(0x1a4)]);const _0x237521=ownsCurrentController(_0x40f2de[_0x293801(0x28a)]);state['controlled']=_0x237521,console[_0x293801(0x243)](LOG_PREFIX2+_0x293801(0x283)+_0x237521),console['log'](LOG_PREFIX2+_0x293801(0x1a0),navigator['serviceWorker'][_0x293801(0x20f)]?.[_0x293801(0x1a4)]??_0x293801(0x1b2));if(!_0x29ca62&&!navigator[_0x293801(0x22b)][_0x293801(0x20f)]){console[_0x293801(0x243)](LOG_PREFIX2+_0x293801(0x259)),window[_0x293801(0x1b4)][_0x293801(0x24f)]();return;}console[_0x293801(0x243)](LOG_PREFIX2+_0x293801(0x236)),await sendConfiguration();if(state[_0x293801(0x28b)]){const _0x27f891=document['querySelector'](_0x293801(0x248))!==null;console[_0x293801(0x243)](LOG_PREFIX2+_0x293801(0x200)+_0x27f891);if(!_0x27f891){console['log'](LOG_PREFIX2+'\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement'),window[_0x293801(0x1b4)]['reload']();return;}}console[_0x293801(0x243)](LOG_PREFIX2+'\x20Updating\x20overlay...'),updateOverlay(),console['log'](LOG_PREFIX2+_0x293801(0x263));}catch(_0x40f63c){console['error'](LOG_PREFIX2+'\x20Failed\x20to\x20register\x20service\x20worker:',_0x40f63c);}}async function sendConfiguration(){const _0x2fe4dc=_0x596cf0;console[_0x2fe4dc(0x243)](LOG_PREFIX2+_0x2fe4dc(0x18f)),console[_0x2fe4dc(0x243)](LOG_PREFIX2+_0x2fe4dc(0x1a7)+state[_0x2fe4dc(0x28b)]+_0x2fe4dc(0x27a)+!!currentOptions2);if(!state['enabled']||!currentOptions2){console[_0x2fe4dc(0x243)](LOG_PREFIX2+_0x2fe4dc(0x1a1));return;}const _0x17fe33=await resolveWorker();if(!_0x17fe33){console[_0x2fe4dc(0x220)](LOG_PREFIX2+_0x2fe4dc(0x1f6));return;}const _0x5bac2e={'publishableKey':currentOptions2['publishableKey'],'callbackBypass':currentOptions2[_0x2fe4dc(0x268)],'securityMode':currentOptions2['security']};console[_0x2fe4dc(0x243)](LOG_PREFIX2+_0x2fe4dc(0x21f),JSON[_0x2fe4dc(0x18d)](_0x5bac2e,null,0x2)),_0x17fe33[_0x2fe4dc(0x1c9)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x5bac2e}),console[_0x2fe4dc(0x243)](LOG_PREFIX2+_0x2fe4dc(0x1db));}async function unregisterServiceWorker(_0x38f9ad){const _0x2caa2c=_0x596cf0;console['log'](LOG_PREFIX2+'\x20unregisterServiceWorker()\x20called');if(!('serviceWorker'in navigator)){console['log'](LOG_PREFIX2+_0x2caa2c(0x1b9));return;}try{const _0x1355bd=registration??await navigator['serviceWorker'][_0x2caa2c(0x266)]('/');if(!_0x1355bd){console['log'](LOG_PREFIX2+_0x2caa2c(0x239));return;}console[_0x2caa2c(0x243)](LOG_PREFIX2+_0x2caa2c(0x1f1),{'scope':_0x1355bd[_0x2caa2c(0x27d)],'active':_0x1355bd[_0x2caa2c(0x22e)]?.[_0x2caa2c(0x1a4)],'waiting':_0x1355bd[_0x2caa2c(0x1a9)]?.['scriptURL'],'installing':_0x1355bd[_0x2caa2c(0x1bd)]?.[_0x2caa2c(0x1a4)]});const _0x1ca278=[_0x1355bd[_0x2caa2c(0x22e)]?.[_0x2caa2c(0x1a4)],_0x1355bd['waiting']?.[_0x2caa2c(0x1a4)],_0x1355bd[_0x2caa2c(0x1bd)]?.['scriptURL']],_0x34ba90=_0x1ca278[_0x2caa2c(0x25f)](_0x1826b2=>_0x1826b2&&ownsServiceWorker(_0x1826b2,_0x38f9ad));if(!_0x34ba90){console[_0x2caa2c(0x243)](LOG_PREFIX2+_0x2caa2c(0x1f0));return;}_0x1355bd[_0x2caa2c(0x22e)]&&(console[_0x2caa2c(0x243)](LOG_PREFIX2+_0x2caa2c(0x256)),_0x1355bd[_0x2caa2c(0x22e)][_0x2caa2c(0x1c9)]({'type':WORKER_MESSAGE_DISABLE})),console[_0x2caa2c(0x243)](LOG_PREFIX2+_0x2caa2c(0x1e3)),await _0x1355bd['unregister'](),registration=null,currentOptions2=null,console[_0x2caa2c(0x243)](LOG_PREFIX2+_0x2caa2c(0x19a));}catch(_0x553dee){console[_0x2caa2c(0x279)](LOG_PREFIX2+_0x2caa2c(0x262),_0x553dee);}}function ownsServiceWorker(_0x17fce4,_0x40be6d){const _0x466f75=_0x596cf0,_0x1d929e=typeof window!==_0x466f75(0x202)?window[_0x466f75(0x1b4)][_0x466f75(0x21a)]:'',_0x3f9c1c=new URL(_0x40be6d,_0x1d929e||void 0x0)[_0x466f75(0x1b0)],_0x200b35=_0x17fce4===_0x3f9c1c||_0x17fce4[_0x466f75(0x274)](_0x466f75(0x244));return console['log'](LOG_PREFIX2+_0x466f75(0x270)+_0x17fce4+_0x466f75(0x19f)+_0x3f9c1c+_0x466f75(0x233)+_0x200b35),_0x200b35;}function ownsCurrentController(_0x285dcb){const _0x42147d=_0x596cf0;if(typeof navigator===_0x42147d(0x202))return![];const _0x15f80d=navigator[_0x42147d(0x22b)]?.[_0x42147d(0x20f)];if(!_0x15f80d)return console[_0x42147d(0x243)](LOG_PREFIX2+_0x42147d(0x1d4)),![];return ownsServiceWorker(_0x15f80d[_0x42147d(0x1a4)],_0x285dcb);}async function detectBlockingServiceWorker(_0x5d3ba4){const _0x327b18=_0x596cf0;if(!navigator[_0x327b18(0x22b)])return null;try{const _0x740f6b=await navigator['serviceWorker']['getRegistration']('/');console[_0x327b18(0x243)](LOG_PREFIX2+_0x327b18(0x216),_0x740f6b?.[_0x327b18(0x22e)]?.[_0x327b18(0x1a4)]??_0x327b18(0x1b2));const _0x19762f=_0x740f6b?.[_0x327b18(0x22e)]?.[_0x327b18(0x1a4)];if(!_0x19762f)return null;if(ownsServiceWorker(_0x19762f,_0x5d3ba4))return null;return _0x19762f;}catch(_0x430165){return console[_0x327b18(0x279)](LOG_PREFIX2+_0x327b18(0x19b),_0x430165),null;}}async function resolveWorker(){const _0x2d3b76=_0x596cf0,_0x4f921b=registration??await navigator[_0x2d3b76(0x22b)]?.['getRegistration']('/'),_0x2120bd=_0x4f921b?.['active']??_0x4f921b?.[_0x2d3b76(0x1a9)]??_0x4f921b?.[_0x2d3b76(0x1bd)]??null;return console[_0x2d3b76(0x243)](LOG_PREFIX2+_0x2d3b76(0x271),_0x2120bd?.[_0x2d3b76(0x1a4)]??_0x2d3b76(0x1b2),_0x2d3b76(0x221)+(_0x2120bd?.[_0x2d3b76(0x1cd)]??_0x2d3b76(0x212))),_0x2120bd;}var LOG_PREFIX3='[Enhance\x20Runtime]';function isInitialized(){const _0xa8b925=_0x596cf0;return typeof window!=='undefined'&&window[_0xa8b925(0x27b)]===!![];}function setInitialized(_0x3de368){const _0x4b0b85=_0x596cf0;typeof window!==_0x4b0b85(0x202)&&(window[_0x4b0b85(0x27b)]=_0x3de368);}function getOptions(){const _0x4e275b=_0x596cf0;return typeof window!=='undefined'?window[_0x4e275b(0x1b5)]??null:null;}function setOptions(_0x457496){typeof window!=='undefined'&&(window['__enhanceOptions']=_0x457496);}var Enhance={'init'(_0x547958){const _0x3c8a33=_0x596cf0,_0x23e108=Date[_0x3c8a33(0x249)]();console[_0x3c8a33(0x243)](LOG_PREFIX3+_0x3c8a33(0x228)+_0x23e108),console[_0x3c8a33(0x243)](LOG_PREFIX3+_0x3c8a33(0x224)+window[_0x3c8a33(0x1b4)][_0x3c8a33(0x1b0)]),console[_0x3c8a33(0x243)](LOG_PREFIX3+_0x3c8a33(0x1bc)+document[_0x3c8a33(0x1c5)]),console[_0x3c8a33(0x243)](LOG_PREFIX3+_0x3c8a33(0x273),JSON['stringify'](_0x547958,null,0x2));if(isInitialized())return console[_0x3c8a33(0x220)](LOG_PREFIX3+'\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller'),window[_0x3c8a33(0x219)]??createController();setInitialized(!![]),console[_0x3c8a33(0x243)](LOG_PREFIX3+'\x20First\x20initialization');const _0x332764=normalizeOptions(_0x547958);setOptions(_0x332764),console['log'](LOG_PREFIX3+_0x3c8a33(0x25a),JSON['stringify'](_0x332764,null,0x2));const _0x2c94b5=parseUrlParams();console[_0x3c8a33(0x243)](LOG_PREFIX3+_0x3c8a33(0x1c6),JSON[_0x3c8a33(0x18d)](_0x2c94b5,null,0x2));if(_0x2c94b5[_0x3c8a33(0x1d9)])return cleanUrlParam(_0x3c8a33(0x26d)),console[_0x3c8a33(0x243)](LOG_PREFIX3+_0x3c8a33(0x1dd)),createController();if(_0x2c94b5[_0x3c8a33(0x284)])return console[_0x3c8a33(0x243)](LOG_PREFIX3+_0x3c8a33(0x240)),console[_0x3c8a33(0x243)](LOG_PREFIX3+_0x3c8a33(0x229)+_0x2c94b5[_0x3c8a33(0x245)]),console[_0x3c8a33(0x243)](LOG_PREFIX3+'\x20enhancementId:\x20'+_0x2c94b5[_0x3c8a33(0x206)]),state['enabled']=!![],console[_0x3c8a33(0x243)](LOG_PREFIX3+'\x20Starting\x20overlay\x20load\x20(async)...'),void loadOverlay({'overlayPath':_0x332764[_0x3c8a33(0x294)],'enableViteHmr':_0x332764[_0x3c8a33(0x23d)]['enableViteHmr'],'options':_0x332764,'onToggle':handleToggle}),console[_0x3c8a33(0x243)](LOG_PREFIX3+_0x3c8a33(0x276)),void registerServiceWorker(_0x332764),console[_0x3c8a33(0x243)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20enhancement\x20mode'),createController();return console[_0x3c8a33(0x243)](LOG_PREFIX3+_0x3c8a33(0x214)),console[_0x3c8a33(0x243)](LOG_PREFIX3+_0x3c8a33(0x23a)),void unregisterServiceWorker(_0x332764[_0x3c8a33(0x28a)]),console[_0x3c8a33(0x243)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20normal\x20mode'),import.meta.hot&&(console[_0x3c8a33(0x243)](LOG_PREFIX3+'\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners'),import.meta.hot['on']('vite:error',_0x5d0c26=>{const _0x5646c7=_0x3c8a33;console[_0x5646c7(0x243)](LOG_PREFIX3+_0x5646c7(0x299),_0x5d0c26),state[_0x5646c7(0x20a)]={'message':_0x5d0c26[_0x5646c7(0x1a6)][_0x5646c7(0x1fb)]},updateOverlay();}),import.meta.hot['on']('vite:beforeUpdate',()=>{const _0x18392c=_0x3c8a33;state['appError']&&(console[_0x18392c(0x243)](LOG_PREFIX3+_0x18392c(0x1d1)),state[_0x18392c(0x20a)]=null,updateOverlay());})),createController();}};function createController(){const _0x5da081=_0x596cf0,_0xeaeae9={'enable'(){const _0x1d3b0d=_0x35f4,_0x420d23=getOptions();if(!_0x420d23)return;state[_0x1d3b0d(0x28b)]=!![],void loadOverlay({'overlayPath':_0x420d23[_0x1d3b0d(0x294)],'enableViteHmr':_0x420d23['overlay'][_0x1d3b0d(0x1c4)],'options':_0x420d23,'onToggle':handleToggle}),void registerServiceWorker(_0x420d23),void sendConfiguration(),updateOverlay();},'disable'(){const _0x1b34f0=_0x35f4,_0x170066=getOptions();if(!_0x170066)return;state['enabled']=![],state[_0x1b34f0(0x1cf)]=![],updateOverlay(),void unregisterServiceWorker(_0x170066[_0x1b34f0(0x28a)]);},'status'(){const _0x563a63=_0x35f4;return{'enabled':state[_0x563a63(0x28b)],'controlled':state[_0x563a63(0x1cf)]};}};return typeof window!==_0x5da081(0x202)&&(window[_0x5da081(0x219)]=_0xeaeae9),_0xeaeae9;}function handleToggle(){const _0x7fc0a=_0x596cf0,_0x1739b2=createController();state[_0x7fc0a(0x28b)]?_0x1739b2[_0x7fc0a(0x264)]():_0x1739b2[_0x7fc0a(0x1ca)]();}function parseUrlParams(){const _0x301114=_0x596cf0,_0x3865b2=new URL(window[_0x301114(0x1b4)][_0x301114(0x1b0)]),_0x441110=_0x3865b2[_0x301114(0x19e)]['get'](_0x301114(0x26d))?.[_0x301114(0x22c)](),_0x14f2e1=_0x3865b2[_0x301114(0x19e)][_0x301114(0x1ed)]('enhancementUrl'),_0x10c2fe=_0x3865b2['searchParams'][_0x301114(0x1ed)](_0x301114(0x1a2));return{'hasEnhancement':Boolean(_0x14f2e1||_0x10c2fe),'explicitDisable':_0x441110==='0'||_0x441110==='false'||_0x441110===_0x301114(0x252),'enhancementUrl':_0x14f2e1,'enhancementId':_0x10c2fe};}function cleanUrlParam(_0x159fa9){const _0x5bd0e3=_0x596cf0,_0x5c7894=new URL(window[_0x5bd0e3(0x1b4)][_0x5bd0e3(0x1b0)]);_0x5c7894[_0x5bd0e3(0x19e)][_0x5bd0e3(0x1d7)](_0x159fa9)&&(_0x5c7894[_0x5bd0e3(0x19e)][_0x5bd0e3(0x27c)](_0x159fa9),window[_0x5bd0e3(0x235)][_0x5bd0e3(0x296)](null,document[_0x5bd0e3(0x1f2)],_0x5c7894[_0x5bd0e3(0x1e6)]()));}var package_default={'name':_0x596cf0(0x26c),'version':_0x596cf0(0x238),'type':_0x596cf0(0x288),'description':_0x596cf0(0x1c1),'license':_0x596cf0(0x232),'main':_0x596cf0(0x275),'module':_0x596cf0(0x275),'types':'./dev/index.d.ts','exports':{'.':{'types':_0x596cf0(0x242),'import':_0x596cf0(0x275)},'./vite':{'types':_0x596cf0(0x1b8),'import':'./dev/vite/index.js'}},'files':[_0x596cf0(0x22d)],'bin':{'enhance-sandbox':_0x596cf0(0x23c)},'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':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','dev:staging':_0x596cf0(0x1fa),'dev:staging:build':_0x596cf0(0x18e),'build':_0x596cf0(0x222),'build:release':'ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','build:release:dev':_0x596cf0(0x1ef),'version':_0x596cf0(0x1fe)},'dependencies':{'commander':_0x596cf0(0x1d0),'zod':_0x596cf0(0x197)},'devDependencies':{'@types/node':_0x596cf0(0x19d),'javascript-obfuscator':'^4.1.1','tsup':_0x596cf0(0x1e4),'vite':_0x596cf0(0x269)},'publishConfig':{'access':_0x596cf0(0x209)}},DEFAULT_SERVICE_WORKER_PATH=_0x596cf0(0x24c),DEFAULT_RUNTIME_PATH=_0x596cf0(0x261),DIST_SERVICE_WORKER_PATH=_0x596cf0(0x28e),DIST_RUNTIME_PATH='assets/enhance-runtime.js',PACKAGE_VERSION=typeof package_default[_0x596cf0(0x23e)]===_0x596cf0(0x1c7)?package_default[_0x596cf0(0x23e)]:'0.0.0';function normalizeAssetPath(_0x423379){const _0x5a0d1a=_0x596cf0;if(!_0x423379)return _0x423379;if(_0x423379['startsWith']('http://')||_0x423379['startsWith'](_0x5a0d1a(0x258)))return _0x423379;const _0x10ba59=_0x423379['replace'](/^\.\//,'');return _0x10ba59[_0x5a0d1a(0x1ff)]('/')?_0x10ba59:'/'+_0x10ba59;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x45b143){const _0x4304f8=_0x596cf0;return Enhance[_0x4304f8(0x1ce)](_0x45b143);},'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 _0x30cfa3=_0x596cf0;return Enhance2[_0x30cfa3(0x278)]();}function runtimeURL(){const _0x4bb140=_0x596cf0;return Enhance2[_0x4bb140(0x292)]();}import{promises as _0x19cfdb}from'fs';import{createHash}from'crypto';import{dirname,join}from'path';import{fileURLToPath}from'url';var distDir=dirname(fileURLToPath(new URL(_0x596cf0(0x291),import.meta.url)));async function syncAssets(_0x470c1a){const _0x323dd9=_0x596cf0,_0x5e79b5=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0x470c1a[_0x323dd9(0x1e8)]?'./'+_0x470c1a['swFilename']:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0x496963=[];for(const _0xb83ce2 of _0x5e79b5){const _0x11820b=cleanRelativePath(_0xb83ce2[_0x323dd9(0x20b)]??_0xb83ce2[_0x323dd9(0x218)]),_0xb1a776=join(distDir,cleanRelativePath(_0xb83ce2[_0x323dd9(0x1cb)])),_0x454c03=join(_0x470c1a[_0x323dd9(0x21b)],_0x11820b),[_0x490fec,_0x26d5c9]=await Promise[_0x323dd9(0x1b1)]([readDigest(_0xb1a776),readDigest(_0x454c03)]);if(_0x490fec&&_0x26d5c9&&_0x490fec===_0x26d5c9){_0x496963['push']({'sourcePath':_0xb1a776,'destinationPath':_0x454c03,'relativeDestination':_0x11820b,'status':_0x323dd9(0x191)});continue;}await _0x19cfdb[_0x323dd9(0x1f9)](dirname(_0x454c03),{'recursive':!![]}),await _0x19cfdb[_0x323dd9(0x205)](_0xb1a776,_0x454c03),_0x496963['push']({'sourcePath':_0xb1a776,'destinationPath':_0x454c03,'relativeDestination':_0x11820b,'status':_0x323dd9(0x192)});}return _0x496963;}function cleanRelativePath(_0x20803c){const _0x11fa82=_0x596cf0;return _0x20803c[_0x11fa82(0x27f)](/^[./]+/,'');}async function readDigest(_0x31b3b3){const _0x1ddc3a=_0x596cf0;try{const _0x23f421=await _0x19cfdb[_0x1ddc3a(0x28f)](_0x31b3b3);return createHash(_0x1ddc3a(0x234))[_0x1ddc3a(0x194)](_0x23f421)[_0x1ddc3a(0x22f)](_0x1ddc3a(0x282));}catch(_0x9cfa73){if(_0x9cfa73[_0x1ddc3a(0x1ad)]===_0x1ddc3a(0x298))return null;throw _0x9cfa73;}}var program=new Command();program[_0x596cf0(0x196)](_0x596cf0(0x246))['description'](_0x596cf0(0x26e))[_0x596cf0(0x23e)](_0x596cf0(0x1de)),program[_0x596cf0(0x290)](_0x596cf0(0x254))[_0x596cf0(0x24a)](_0x596cf0(0x1c2))[_0x596cf0(0x281)](()=>{const _0x1d71bf=_0x596cf0,_0x20068a=getAssetManifest();process[_0x1d71bf(0x1d8)][_0x1d71bf(0x203)](JSON[_0x1d71bf(0x18d)](_0x20068a,null,0x2)+'\x0a');}),program[_0x596cf0(0x290)](_0x596cf0(0x267))['description'](_0x596cf0(0x280))[_0x596cf0(0x201)](_0x596cf0(0x293),_0x596cf0(0x24d))[_0x596cf0(0x28c)](_0x596cf0(0x19c),'Override\x20the\x20service\x20worker\x20output\x20filename\x20(defaults\x20to\x20sw-enhance.js)')[_0x596cf0(0x281)](async _0x4342f2=>{const _0x25d41e=_0x596cf0,_0x5697f3=resolve(process[_0x25d41e(0x1f5)](),_0x4342f2['publicDir']),_0x1ad0cd=await syncAssets({'publicDir':_0x5697f3,'swFilename':_0x4342f2[_0x25d41e(0x1e2)]});for(const _0x3dcd5d of _0x1ad0cd){const _0x101410=relative(process[_0x25d41e(0x1f5)](),_0x3dcd5d[_0x25d41e(0x213)]);_0x3dcd5d[_0x25d41e(0x1ae)]==='skipped'?process[_0x25d41e(0x1d8)]['write'](_0x25d41e(0x25e)+_0x3dcd5d[_0x25d41e(0x199)]+_0x25d41e(0x204)+_0x101410+']\x0a'):process['stdout'][_0x25d41e(0x203)](_0x25d41e(0x251)+_0x3dcd5d[_0x25d41e(0x199)]+_0x25d41e(0x1ac)+_0x101410+'\x0a');}}),program['parseAsync']();
|
package/dist/index.d.ts
CHANGED
|
@@ -75,9 +75,11 @@ declare global {
|
|
|
75
75
|
__enhanceInitialized?: boolean;
|
|
76
76
|
__enhanceOptions?: NormalizedOptions;
|
|
77
77
|
__enhanceController?: EnhanceController;
|
|
78
|
-
__enhanceResolvedUrl?: string;
|
|
79
78
|
}
|
|
80
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* Main entry point - the only public API.
|
|
82
|
+
*/
|
|
81
83
|
declare const Enhance$1: {
|
|
82
84
|
init(rawOptions: RawOptions): EnhanceController;
|
|
83
85
|
};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x11e49c=_0x14a0;(function(_0xdef4a5,_0x53698c){const _0x205981=_0x14a0,_0x22076b=_0xdef4a5();while(!![]){try{const _0x15c9ed=parseInt(_0x205981(0x114))/0x1+parseInt(_0x205981(0xfd))/0x2+parseInt(_0x205981(0xfc))/0x3*(parseInt(_0x205981(0x11e))/0x4)+-parseInt(_0x205981(0x119))/0x5*(-parseInt(_0x205981(0x154))/0x6)+parseInt(_0x205981(0xe8))/0x7+-parseInt(_0x205981(0x116))/0x8*(-parseInt(_0x205981(0xf9))/0x9)+-parseInt(_0x205981(0x10f))/0xa;if(_0x15c9ed===_0x53698c)break;else _0x22076b['push'](_0x22076b['shift']());}catch(_0x4f7dc1){_0x22076b['push'](_0x22076b['shift']());}}}(_0x1d5f,0x99e36));var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x11e49c(0x148)?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x11e49c(0xf8),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x11e49c(0x148)?__ENHANCE_DEFAULT_BACKEND_URL__:'https://api.enhancelabs.ai',DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!=='undefined'?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console['log']('[Enhance\x20Config]\x20Build-time\x20defaults:',{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x525aa6){const _0x3f06c4=_0x11e49c;if(!_0x525aa6[_0x3f06c4(0x8d)])throw new Error(_0x3f06c4(0x131));const _0x1cea6a=_0x525aa6[_0x3f06c4(0x8a)]??{};return{'publishableKey':_0x525aa6[_0x3f06c4(0x8d)],'callbackBypass':_0x525aa6[_0x3f06c4(0xad)]??[],'overlay':{'enabled':!![],'position':_0x3f06c4(0x12d),'enableViteHmr':_0x1cea6a[_0x3f06c4(0xe5)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x3f06c4(0xd2),'swPath':_0x3f06c4(0x156),'overlayPath':_0x1cea6a[_0x3f06c4(0x109)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':'/assets/enhance-runtime.js','security':_0x1cea6a[_0x3f06c4(0x9c)]??_0x3f06c4(0x13c),'backendUrl':_0x1cea6a[_0x3f06c4(0xab)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x22bbfc=_0x11e49c;try{const _0x21f92c=new URLSearchParams(window[_0x22bbfc(0x14b)][_0x22bbfc(0x133)]);return _0x21f92c['get'](_0x22bbfc(0x13b))?.[_0x22bbfc(0x14c)]()||'';}catch{return'';}}var LOG_PREFIX=_0x11e49c(0xf3),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x9d424a){const _0x4095f2=_0x11e49c;console[_0x4095f2(0x90)](LOG_PREFIX+_0x4095f2(0xa1)),console[_0x4095f2(0x90)](LOG_PREFIX+'\x20overlayPath:\x20'+_0x9d424a[_0x4095f2(0x109)]),console[_0x4095f2(0x90)](LOG_PREFIX+_0x4095f2(0xc5)+_0x9d424a[_0x4095f2(0x145)]),currentOptions=_0x9d424a[_0x4095f2(0x155)],toggleHandler=_0x9d424a[_0x4095f2(0xf5)];if(overlayController){console[_0x4095f2(0x90)](LOG_PREFIX+_0x4095f2(0xfe)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x4095f2(0x90)](LOG_PREFIX+_0x4095f2(0x151)),overlayLoadPromise;console['log'](LOG_PREFIX+_0x4095f2(0x12a)),overlayLoadPromise=doLoadOverlay(_0x9d424a);try{await overlayLoadPromise,console[_0x4095f2(0x90)](LOG_PREFIX+_0x4095f2(0xf1));}catch(_0x2bf8a2){console[_0x4095f2(0x152)](LOG_PREFIX+_0x4095f2(0x12f),_0x2bf8a2);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x4026bd){const _0x11db7a=_0x11e49c;console[_0x11db7a(0x90)](LOG_PREFIX+_0x11db7a(0xa2));if(typeof window==='undefined'){console['log'](LOG_PREFIX+'\x20No\x20window\x20object\x20-\x20skipping');return;}if(window[_0x11db7a(0xc1)]){console[_0x11db7a(0x90)](LOG_PREFIX+_0x11db7a(0x11a)),overlayController=window[_0x11db7a(0xc1)];return;}console[_0x11db7a(0x90)](LOG_PREFIX+_0x11db7a(0xa8));try{_0x4026bd['enableViteHmr']&&(console[_0x11db7a(0x90)](LOG_PREFIX+_0x11db7a(0x11b)),await setupRemoteHMR(_0x4026bd['overlayPath']));console[_0x11db7a(0x90)](LOG_PREFIX+_0x11db7a(0x147)+_0x4026bd[_0x11db7a(0x109)]);const _0x5b6b6e=Date[_0x11db7a(0xc3)](),_0x2fa3d8=await import(_0x4026bd[_0x11db7a(0x109)]);console[_0x11db7a(0x90)](LOG_PREFIX+_0x11db7a(0x95)+(Date[_0x11db7a(0xc3)]()-_0x5b6b6e)+'ms'),console[_0x11db7a(0x90)](LOG_PREFIX+_0x11db7a(0xe0),Object[_0x11db7a(0xd0)](_0x2fa3d8));if(typeof _0x2fa3d8?.[_0x11db7a(0xb4)]!==_0x11db7a(0xa9)){console[_0x11db7a(0x152)](LOG_PREFIX+_0x11db7a(0x117)),console[_0x11db7a(0x152)](LOG_PREFIX+_0x11db7a(0x132),Object['keys'](_0x2fa3d8));return;}console[_0x11db7a(0x90)](LOG_PREFIX+_0x11db7a(0x103));const _0x40b40a=_0x2fa3d8[_0x11db7a(0xb4)]();console['log'](LOG_PREFIX+_0x11db7a(0x106),_0x40b40a),overlayController=_0x40b40a,window['__enhanceOverlay']=_0x40b40a,_0x40b40a['onToggle'](_0x4026bd[_0x11db7a(0xf5)]),console['log'](LOG_PREFIX+_0x11db7a(0xe7)),console[_0x11db7a(0x90)](LOG_PREFIX+_0x11db7a(0x93)),updateOverlay();}catch(_0x3ea082){console[_0x11db7a(0x152)](LOG_PREFIX+_0x11db7a(0x113),_0x3ea082);}}function updateOverlay(){const _0x53da00=_0x11e49c;console['log'](LOG_PREFIX+_0x53da00(0x10a)),console[_0x53da00(0x90)](LOG_PREFIX+_0x53da00(0xd4)+!!overlayController),console['log'](LOG_PREFIX+_0x53da00(0x139)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x53da00(0x90)](LOG_PREFIX+_0x53da00(0x134));return;}const _0x271045=composeOverlayState(currentOptions);console[_0x53da00(0x90)](LOG_PREFIX+_0x53da00(0x150),JSON['stringify'](_0x271045,null,0x2)),overlayController[_0x53da00(0x124)](_0x271045),console['log'](LOG_PREFIX+_0x53da00(0xd5));}function composeOverlayState(_0x34225e){const _0x10445d=_0x11e49c,_0x2c11d1=getEnhancementId();return console[_0x10445d(0x90)](LOG_PREFIX+_0x10445d(0xf0)+_0x2c11d1),console[_0x10445d(0x90)](LOG_PREFIX+_0x10445d(0x129)+state[_0x10445d(0xec)]),console['log'](LOG_PREFIX+_0x10445d(0x123)+state[_0x10445d(0xbd)]),{'enhancementId':_0x2c11d1,'enabled':state[_0x10445d(0xec)],'controlled':state[_0x10445d(0xbd)],'overlayPosition':_0x34225e[_0x10445d(0x14e)]['position'],'securityMode':_0x34225e[_0x10445d(0x9c)],'backendBaseUrl':_0x34225e[_0x10445d(0xab)],'appError':state[_0x10445d(0xb6)]};}async function setupRemoteHMR(_0x30053e){const _0x17606d=_0x11e49c;console[_0x17606d(0x90)](LOG_PREFIX+'\x20setupRemoteHMR()\x20for\x20'+_0x30053e);if(typeof window==='undefined')return;try{const _0x4ebc44=new URL(_0x30053e,window[_0x17606d(0x14b)][_0x17606d(0xd7)]),_0x303f01=_0x4ebc44['origin'];console['log'](LOG_PREFIX+_0x17606d(0xa7)+_0x303f01+_0x17606d(0x107)+window[_0x17606d(0x14b)][_0x17606d(0xd7)]);if(_0x303f01===window['location']['origin']){console['log'](LOG_PREFIX+'\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup');return;}console[_0x17606d(0x90)](LOG_PREFIX+'\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...'),await ensureReactRefreshPreamble(_0x303f01),await ensureViteClient(_0x303f01),console[_0x17606d(0x90)](LOG_PREFIX+'\x20HMR\x20setup\x20complete');}catch(_0x5df5e9){console[_0x17606d(0xfa)](LOG_PREFIX+_0x17606d(0x9a),_0x5df5e9);}}async function ensureReactRefreshPreamble(_0x4af0b1){const _0x121ebd=_0x11e49c;window[_0x121ebd(0x144)]??=new Set();if(window[_0x121ebd(0x144)][_0x121ebd(0x105)](_0x4af0b1)){console[_0x121ebd(0x90)](LOG_PREFIX+'\x20React\x20Refresh\x20already\x20installed\x20for\x20'+_0x4af0b1);return;}console[_0x121ebd(0x90)](LOG_PREFIX+_0x121ebd(0xda)+_0x4af0b1+_0x121ebd(0xeb));const _0x43c7fb=await import(_0x4af0b1+'/@react-refresh'),_0x4ef501=_0x43c7fb&&typeof _0x43c7fb===_0x121ebd(0x14a)&&'default'in _0x43c7fb?_0x43c7fb[_0x121ebd(0xe2)]:_0x43c7fb;if(!isRefreshRuntime(_0x4ef501)){console[_0x121ebd(0xfa)](LOG_PREFIX+_0x121ebd(0xc7));return;}_0x4ef501[_0x121ebd(0x102)](window),window['$RefreshReg$']=()=>{},window[_0x121ebd(0xee)]=()=>_0x42de73=>_0x42de73,window['__vite_plugin_react_preamble_installed__']=!![],window['__enhanceReactRefreshInstalledOrigins']['add'](_0x4af0b1),console[_0x121ebd(0x90)](LOG_PREFIX+_0x121ebd(0x8b)+_0x4af0b1);}function _0x1d5f(){const _0x2ba4c1=['328699YieeEU','\x20Enhancement\x20params:','465280BavvKa','\x20Module\x20missing\x20createOverlay\x20export!','some','121135vOqeVf','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','\x20Setting\x20up\x20remote\x20HMR...','bun\x20version\x20patch\x20--no-git-tag-version','./dev/index.d.ts','1948yEHQVN','getItem','\x20Page\x20not\x20enhanced\x20-\x20reloading','status','[Enhance\x20Runtime]','\x20composeOverlayState\x20-\x20state.controlled:\x20','update','serviceWorker','ready','./dev/vite/index.js','enhance','\x20composeOverlayState\x20-\x20state.enabled:\x20','\x20Starting\x20fresh\x20overlay\x20load...','./dev/cli.js','\x20No\x20service\x20worker\x20active\x20to\x20configure','bottom-right','sw-enhance','\x20loadOverlay()\x20failed:','\x20Registering\x20SW\x20at\x20','[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()','\x20Available\x20exports:','search','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','false','installing','/@vite/client','\x20currentOptions\x20exists:\x20','\x20Current\x20URL:\x20','enhancement','permissive','http://','enhance:disable','./dev/index.js','version','enhancementId','__enhanceController','string','__enhanceReactRefreshInstalledOrigins','enableViteHmr','\x20SW\x20just\x20activated\x20-\x20reloading\x20to\x20enable\x20enhancement','\x20Importing\x20overlay\x20module\x20from:\x20','undefined','disable','object','location','trim','getRegistration','overlay','\x20registerServiceWorker()\x20complete','\x20Updating\x20overlay\x20with\x20state:','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','error','\x20Persisted\x20enhancement\x20to\x20sessionStorage','240YNNIpS','options','/sw-enhance.js','searchParams','toLowerCase','delete','__development','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','toString','publishableKey','unregister','operatingPath','log','__enhanceInitialized','__enhanceResolvedUrl','\x20Calling\x20updateOverlay()...','serviceWorkerURL','\x20Module\x20imported\x20in\x20','^7.2.4','text','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','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','vite:beforeUpdate','security','/assets/enhance-runtime.js','includes','waiting','json','\x20loadOverlay()\x20called','\x20doLoadOverlay()\x20starting...','stringify','enhance:configure','\x20SW\x20ready','0.3.21','\x20Overlay\x20origin:\x20','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','function','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','backendUrl','swPath','callbackBypass','\x20Resolution\x20error:','controller','\x20registerServiceWorker()\x20called','cachedUrl','message','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','createOverlay','\x20Service\x20workers\x20NOT\x20supported','appError','./dev/vite/index.d.ts','history','\x20Resolved\x20to:\x20','/public/enhancements/','\x20Found\x20cached\x20URL\x20for\x20enhancement\x20ID','[data-enhance-runtime-bootstrap]','controlled','setItem','replace','scriptURL','__enhanceOverlay','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','now','href','\x20enableViteHmr:\x20','\x20Vite\x20client\x20already\x20loaded\x20for\x20','\x20Invalid\x20React\x20Refresh\x20runtime','\x20Using\x20cached\x20enhancement\x20URL:\x20','startsWith','\x20Failed\x20to\x20resolve\x20enhancement\x20-\x20aborting','\x20Enhancement\x20mode\x20-\x20ID:\x20','\x20Calling:\x20','replaceState','\x20BLOCKING\x20SW\x20detected:\x20','\x20Already\x20initialized\x20-\x20returning\x20existing\x20controller','keys','__viteHMRLoaded','info','^4.1.1','\x20overlayController\x20exists:\x20','\x20Overlay\x20update\x20complete','^11.1.0','origin','reload','public','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','\x20Enhancement\x20initialization\x20complete','\x20Restored\x20enhancement\x20from\x20sessionStorage','register','title','init','\x20Module\x20exports:','^24.10.1','default','enhance.enhancementId','postMessage','enableOverlayHmr','enhance.enhancementUrl','\x20Overlay\x20controller\x20initialized\x20and\x20cached','1707734MTjWqG','MIT','https://','...','enabled','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','$RefreshSig$','\x20Sending\x20config\x20to\x20SW:','\x20composeOverlayState\x20-\x20enhancementId:\x20','\x20loadOverlay()\x20complete','\x20unregisterServiceWorker()\x20called','[Enhance\x20Overlay]','\x20Document\x20readyState:\x20','onToggle','off','removeItem','https://assets.enhancelabs.ai/overlay.js','126PHTIWG','warn','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','1932kjVOsJ','726748QIcaRF','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','^8.5.1','enable','set','injectIntoGlobalHook','\x20Calling\x20createOverlay()...','readyState','has','\x20Controller\x20created:',',\x20page\x20origin:\x20','err','overlayPath','\x20updateOverlay()\x20called','__enhanceOptions','0.0.0','\x20Resolution\x20failed:\x20','explicitDisable','24026570XpVOLF','active','ENHANCE_OVERLAY_PATH=https://assets-dev.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','\x20Waiting\x20for\x20SW\x20ready...','\x20Failed\x20to\x20import/create\x20overlay:'];_0x1d5f=function(){return _0x2ba4c1;};return _0x1d5f();}async function ensureViteClient(_0x2bedb4){const _0x453227=_0x11e49c;window[_0x453227(0xd1)]??=new Set();if(window[_0x453227(0xd1)][_0x453227(0x105)](_0x2bedb4)){console[_0x453227(0x90)](LOG_PREFIX+_0x453227(0xc6)+_0x2bedb4);return;}console[_0x453227(0x90)](LOG_PREFIX+_0x453227(0x135)+_0x2bedb4+_0x453227(0xeb)),await import(_0x2bedb4+_0x453227(0x138)),window[_0x453227(0xd1)]['add'](_0x2bedb4),console[_0x453227(0x90)](LOG_PREFIX+'\x20Vite\x20HMR\x20client\x20loaded\x20for\x20'+_0x2bedb4);}function isRefreshRuntime(_0x39954c){const _0x597eed=_0x11e49c;return typeof _0x39954c===_0x597eed(0x14a)&&_0x39954c!==null&&_0x597eed(0x102)in _0x39954c&&typeof _0x39954c[_0x597eed(0x102)]===_0x597eed(0xa9);}var WORKER_MESSAGE_CONFIG=_0x11e49c(0xa4),WORKER_MESSAGE_DISABLE=_0x11e49c(0x13e),LOG_PREFIX2='[Enhance\x20SW-Client]',registration=null,currentOptions2=null;async function registerServiceWorker(_0x1d312c){const _0x4be944=_0x11e49c;console[_0x4be944(0x90)](LOG_PREFIX2+_0x4be944(0xb0));if(!('serviceWorker'in navigator)){console[_0x4be944(0xfa)](LOG_PREFIX2+_0x4be944(0xb5));return;}const _0x5214fe=!!navigator['serviceWorker']['controller'];currentOptions2=_0x1d312c;const _0x196899=await detectBlockingServiceWorker(_0x1d312c[_0x4be944(0xac)]);if(_0x196899){console[_0x4be944(0x152)](LOG_PREFIX2+_0x4be944(0xce)+_0x196899);return;}try{console[_0x4be944(0x90)](LOG_PREFIX2+_0x4be944(0x130)+_0x1d312c[_0x4be944(0xac)]+_0x4be944(0xeb)),registration=await navigator[_0x4be944(0x125)][_0x4be944(0xdd)](_0x1d312c[_0x4be944(0xac)],{'scope':'/'}),console['log'](LOG_PREFIX2+_0x4be944(0x112)),await navigator[_0x4be944(0x125)][_0x4be944(0x126)],console['log'](LOG_PREFIX2+_0x4be944(0xa5)),state[_0x4be944(0xbd)]=ownsCurrentController(_0x1d312c[_0x4be944(0xac)]);if(!_0x5214fe&&!navigator['serviceWorker']['controller']){console[_0x4be944(0x90)](LOG_PREFIX2+_0x4be944(0x146)),window['location']['reload']();return;}console[_0x4be944(0x90)](LOG_PREFIX2+'\x20Sending\x20configuration\x20to\x20SW...'),await sendConfiguration();if(state[_0x4be944(0xec)]){const _0x3631bf=document['querySelector'](_0x4be944(0xbc))!==null;if(!_0x3631bf){console[_0x4be944(0x90)](LOG_PREFIX2+_0x4be944(0x120)),window['location'][_0x4be944(0xd8)]();return;}}updateOverlay(),console[_0x4be944(0x90)](LOG_PREFIX2+_0x4be944(0x14f));}catch(_0x269e0c){console[_0x4be944(0x152)](LOG_PREFIX2+'\x20Failed\x20to\x20register\x20service\x20worker:',_0x269e0c);}}async function sendConfiguration(){const _0x3fa8cb=_0x11e49c;if(!state[_0x3fa8cb(0xec)]||!currentOptions2)return;const _0x452a6b=await resolveWorker();if(!_0x452a6b){console[_0x3fa8cb(0xfa)](LOG_PREFIX2+_0x3fa8cb(0x12c));return;}const _0xb8d269=window[_0x3fa8cb(0x92)]??null,_0x3e5f18={'publishableKey':currentOptions2[_0x3fa8cb(0x8d)],'callbackBypass':currentOptions2[_0x3fa8cb(0xad)],'securityMode':currentOptions2[_0x3fa8cb(0x9c)],'enhancementUrl':_0xb8d269??void 0x0};console[_0x3fa8cb(0x90)](LOG_PREFIX2+_0x3fa8cb(0xef),JSON[_0x3fa8cb(0xa3)](_0x3e5f18,null,0x2)),_0x452a6b[_0x3fa8cb(0xe4)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x3e5f18});}async function unregisterServiceWorker(_0x267449){const _0x5ae38f=_0x11e49c;console[_0x5ae38f(0x90)](LOG_PREFIX2+_0x5ae38f(0xf2));if(!(_0x5ae38f(0x125)in navigator))return;try{const _0x1f07f2=registration??await navigator[_0x5ae38f(0x125)][_0x5ae38f(0x14d)]('/');if(!_0x1f07f2)return;const _0x41af07=[_0x1f07f2[_0x5ae38f(0x110)]?.[_0x5ae38f(0xc0)],_0x1f07f2[_0x5ae38f(0x9f)]?.['scriptURL'],_0x1f07f2[_0x5ae38f(0x137)]?.[_0x5ae38f(0xc0)]],_0x7e5d23=_0x41af07[_0x5ae38f(0x118)](_0x17123e=>_0x17123e&&ownsServiceWorker(_0x17123e,_0x267449));if(!_0x7e5d23)return;_0x1f07f2[_0x5ae38f(0x110)]&&_0x1f07f2[_0x5ae38f(0x110)][_0x5ae38f(0xe4)]({'type':WORKER_MESSAGE_DISABLE}),await _0x1f07f2[_0x5ae38f(0x8e)](),registration=null,currentOptions2=null,console[_0x5ae38f(0x90)](LOG_PREFIX2+_0x5ae38f(0x99));}catch(_0x268623){console['error'](LOG_PREFIX2+'\x20Failed\x20to\x20unregister\x20service\x20worker:',_0x268623);}}function ownsServiceWorker(_0x45bb43,_0x4de830){const _0x1f2c25=_0x11e49c,_0x4df3a9=typeof window!==_0x1f2c25(0x148)?window[_0x1f2c25(0x14b)][_0x1f2c25(0xd7)]:'',_0x39527d=new URL(_0x4de830,_0x4df3a9||void 0x0)[_0x1f2c25(0xc4)];return _0x45bb43===_0x39527d||_0x45bb43[_0x1f2c25(0x9e)](_0x1f2c25(0x12e));}function ownsCurrentController(_0x19585a){const _0x33ab58=_0x11e49c,_0x2dd897=navigator['serviceWorker']?.[_0x33ab58(0xaf)];if(!_0x2dd897)return![];return ownsServiceWorker(_0x2dd897[_0x33ab58(0xc0)],_0x19585a);}async function detectBlockingServiceWorker(_0x2a78bb){const _0x3d4228=_0x11e49c;if(!navigator[_0x3d4228(0x125)])return null;try{const _0x4fc45a=await navigator[_0x3d4228(0x125)][_0x3d4228(0x14d)]('/'),_0x48ef53=_0x4fc45a?.[_0x3d4228(0x110)]?.[_0x3d4228(0xc0)];if(!_0x48ef53)return null;if(ownsServiceWorker(_0x48ef53,_0x2a78bb))return null;return _0x48ef53;}catch{return null;}}async function resolveWorker(){const _0x5c47b4=_0x11e49c,_0x22ea7e=registration??await navigator[_0x5c47b4(0x125)]?.[_0x5c47b4(0x14d)]('/');return _0x22ea7e?.['active']??_0x22ea7e?.[_0x5c47b4(0x9f)]??_0x22ea7e?.[_0x5c47b4(0x137)]??null;}var LOG_PREFIX3=_0x11e49c(0x122),STORAGE_KEY_ENHANCEMENT_ID=_0x11e49c(0xe3),STORAGE_KEY_ENHANCEMENT_URL=_0x11e49c(0xe6);function isInitialized(){const _0x41f561=_0x11e49c;return typeof window!==_0x41f561(0x148)&&window[_0x41f561(0x91)]===!![];}function setInitialized(_0x4df62a){typeof window!=='undefined'&&(window['__enhanceInitialized']=_0x4df62a);}function getOptions(){const _0x2ed710=_0x11e49c;return typeof window!==_0x2ed710(0x148)?window[_0x2ed710(0x10b)]??null:null;}function setOptions(_0x197a2c){const _0x4e16eb=_0x11e49c;typeof window!==_0x4e16eb(0x148)&&(window['__enhanceOptions']=_0x197a2c);}var Enhance={'init'(_0x16a04d){const _0x398dad=_0x11e49c,_0x5a0d88=Date['now']();console[_0x398dad(0x90)](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x5a0d88),console[_0x398dad(0x90)](LOG_PREFIX3+_0x398dad(0x13a)+window[_0x398dad(0x14b)][_0x398dad(0xc4)]),console[_0x398dad(0x90)](LOG_PREFIX3+_0x398dad(0xf4)+document[_0x398dad(0x104)]);if(isInitialized())return console['warn'](LOG_PREFIX3+_0x398dad(0xcf)),window[_0x398dad(0x142)]??createController();setInitialized(!![]);const _0x3cd6f8=normalizeOptions(_0x16a04d);setOptions(_0x3cd6f8);const _0xeed907=parseEnhancementParams();console[_0x398dad(0x90)](LOG_PREFIX3+_0x398dad(0x115),JSON[_0x398dad(0xa3)](_0xeed907,null,0x2));if(_0xeed907[_0x398dad(0x10e)])return cleanUrlParam('enhance'),clearPersistedEnhancement(),console[_0x398dad(0x90)](LOG_PREFIX3+'\x20Explicit\x20disable\x20-\x20exiting'),createController();if(!_0xeed907[_0x398dad(0x141)])return console[_0x398dad(0x90)](LOG_PREFIX3+'\x20Normal\x20mode\x20-\x20no\x20enhancement'),void unregisterServiceWorker(_0x3cd6f8[_0x398dad(0xac)]),setupViteErrorListeners(),createController();return console[_0x398dad(0x90)](LOG_PREFIX3+_0x398dad(0xcb)+_0xeed907[_0x398dad(0x141)]),state[_0x398dad(0xec)]=!![],void initializeEnhancement(_0x3cd6f8,_0xeed907[_0x398dad(0x141)],_0xeed907[_0x398dad(0xb1)]),createController();}};async function initializeEnhancement(_0x3e99f0,_0x4dafcc,_0x479055){const _0x1e9898=_0x11e49c;let _0x414daa=_0x479055;if(!_0x414daa){console[_0x1e9898(0x90)](LOG_PREFIX3+'\x20Resolving\x20enhancement\x20ID:\x20'+_0x4dafcc),_0x414daa=await resolveEnhancementUrl(_0x3e99f0,_0x4dafcc);if(!_0x414daa){console[_0x1e9898(0x152)](LOG_PREFIX3+_0x1e9898(0xca)),state[_0x1e9898(0xec)]=![];return;}}else console[_0x1e9898(0x90)](LOG_PREFIX3+_0x1e9898(0xc8)+_0x414daa);persistEnhancement(_0x4dafcc,_0x414daa),window[_0x1e9898(0x92)]=_0x414daa,console[_0x1e9898(0x90)](LOG_PREFIX3+'\x20Registering\x20SW\x20with\x20enhancement\x20URL...'),await registerServiceWorker(_0x3e99f0),console[_0x1e9898(0x90)](LOG_PREFIX3+'\x20Loading\x20overlay...'),await loadOverlay({'overlayPath':_0x3e99f0[_0x1e9898(0x109)],'enableViteHmr':_0x3e99f0[_0x1e9898(0x14e)][_0x1e9898(0x145)],'options':_0x3e99f0,'onToggle':handleToggle}),console['log'](LOG_PREFIX3+_0x1e9898(0xdb));}async function resolveEnhancementUrl(_0xc8476b,_0x3eaea5){const _0x3fbc4f=_0x11e49c,_0xfd723c=_0xc8476b[_0x3fbc4f(0xab)]+_0x3fbc4f(0xba)+_0x3eaea5+'/resolve';console[_0x3fbc4f(0x90)](LOG_PREFIX3+_0x3fbc4f(0xcc)+_0xfd723c);try{const _0x4d5691=await fetch(_0xfd723c,{'headers':{'X-Enhance-Publishable-Key':_0xc8476b[_0x3fbc4f(0x8d)]}});if(!_0x4d5691['ok']){const _0x118c56=await _0x4d5691[_0x3fbc4f(0x97)]();return console[_0x3fbc4f(0x152)](LOG_PREFIX3+_0x3fbc4f(0x10d)+_0x4d5691[_0x3fbc4f(0x121)]+'\x20'+_0x118c56),null;}const _0x5e6ecd=await _0x4d5691[_0x3fbc4f(0xa0)](),_0x2b52eb=''+_0xc8476b[_0x3fbc4f(0xab)]+_0x5e6ecd[_0x3fbc4f(0x8f)];return console[_0x3fbc4f(0x90)](LOG_PREFIX3+_0x3fbc4f(0xb9)+_0x2b52eb),_0x2b52eb;}catch(_0x435650){return console['error'](LOG_PREFIX3+_0x3fbc4f(0xae),_0x435650),null;}}function parseEnhancementParams(){const _0x45f8d0=_0x11e49c,_0x1bb20c=new URL(window[_0x45f8d0(0x14b)][_0x45f8d0(0xc4)]),_0x41d77e=_0x1bb20c[_0x45f8d0(0x157)]['get'](_0x45f8d0(0x128))?.[_0x45f8d0(0x88)](),_0x950e64=_0x41d77e==='0'||_0x41d77e===_0x45f8d0(0x136)||_0x41d77e===_0x45f8d0(0xf6);let _0x5a29cf=_0x1bb20c[_0x45f8d0(0x157)]['get'](_0x45f8d0(0x13b)),_0x147480=null;if(_0x5a29cf)try{const _0x19bfcf=sessionStorage[_0x45f8d0(0x11f)](STORAGE_KEY_ENHANCEMENT_ID),_0x5c57e1=sessionStorage[_0x45f8d0(0x11f)](STORAGE_KEY_ENHANCEMENT_URL);_0x19bfcf===_0x5a29cf&&_0x5c57e1&&(_0x147480=_0x5c57e1,console[_0x45f8d0(0x90)](LOG_PREFIX3+_0x45f8d0(0xbb)));}catch{}else try{const _0x112141=sessionStorage[_0x45f8d0(0x11f)](STORAGE_KEY_ENHANCEMENT_ID),_0x37be13=sessionStorage[_0x45f8d0(0x11f)](STORAGE_KEY_ENHANCEMENT_URL);_0x112141&&_0x37be13&&(_0x5a29cf=_0x112141,_0x147480=_0x37be13,console['log'](LOG_PREFIX3+_0x45f8d0(0xdc)),_0x1bb20c['searchParams'][_0x45f8d0(0x101)](_0x45f8d0(0x13b),_0x5a29cf),window['history'][_0x45f8d0(0xcd)](null,document[_0x45f8d0(0xde)],_0x1bb20c[_0x45f8d0(0x8c)]()));}catch{}return{'enhancementId':_0x5a29cf,'cachedUrl':_0x147480,'explicitDisable':_0x950e64};}function persistEnhancement(_0x543891,_0x3e1b34){const _0x5230fd=_0x11e49c;try{sessionStorage[_0x5230fd(0xbe)](STORAGE_KEY_ENHANCEMENT_ID,_0x543891),sessionStorage[_0x5230fd(0xbe)](STORAGE_KEY_ENHANCEMENT_URL,_0x3e1b34),console['log'](LOG_PREFIX3+_0x5230fd(0x153));}catch{}}function clearPersistedEnhancement(){const _0x1cc5e0=_0x11e49c;try{sessionStorage[_0x1cc5e0(0xf7)](STORAGE_KEY_ENHANCEMENT_ID),sessionStorage['removeItem'](STORAGE_KEY_ENHANCEMENT_URL),console[_0x1cc5e0(0x90)](LOG_PREFIX3+'\x20Cleared\x20persisted\x20enhancement');}catch{}}function _0x14a0(_0x44ecad,_0x25e9d2){_0x44ecad=_0x44ecad-0x88;const _0x1d5f54=_0x1d5f();let _0x14a01e=_0x1d5f54[_0x44ecad];return _0x14a01e;}function createController(){const _0x2d6138=_0x11e49c,_0x4249eb={'enable'(){const _0x2717b1=_0x14a0,_0x1e254c=getOptions();if(!_0x1e254c)return;state[_0x2717b1(0xec)]=!![],void registerServiceWorker(_0x1e254c),void sendConfiguration(),updateOverlay();},'disable'(){const _0x419dfa=_0x14a0,_0x1d6974=getOptions();if(!_0x1d6974)return;state[_0x419dfa(0xec)]=![],state[_0x419dfa(0xbd)]=![],clearPersistedEnhancement(),updateOverlay(),void unregisterServiceWorker(_0x1d6974[_0x419dfa(0xac)]);},'status'(){const _0x410715=_0x14a0;return{'enabled':state[_0x410715(0xec)],'controlled':state['controlled']};}};return typeof window!=='undefined'&&(window[_0x2d6138(0x142)]=_0x4249eb),_0x4249eb;}function handleToggle(){const _0x3cf78d=_0x11e49c,_0x106de2=createController();state['enabled']?_0x106de2[_0x3cf78d(0x149)]():_0x106de2[_0x3cf78d(0x100)]();}function cleanUrlParam(_0x402db2){const _0x1d48d6=_0x11e49c,_0x71ce73=new URL(window['location'][_0x1d48d6(0xc4)]);_0x71ce73[_0x1d48d6(0x157)]['has'](_0x402db2)&&(_0x71ce73[_0x1d48d6(0x157)][_0x1d48d6(0x89)](_0x402db2),window[_0x1d48d6(0xb8)][_0x1d48d6(0xcd)](null,document[_0x1d48d6(0xde)],_0x71ce73['toString']()));}function setupViteErrorListeners(){const _0x294a55=_0x11e49c;import.meta.hot&&(import.meta.hot['on']('vite:error',_0x53e278=>{const _0x3a01d1=_0x14a0;state['appError']={'message':_0x53e278[_0x3a01d1(0x108)][_0x3a01d1(0xb2)]},updateOverlay();}),import.meta.hot['on'](_0x294a55(0x9b),()=>{const _0x178f78=_0x294a55;state[_0x178f78(0xb6)]&&(state[_0x178f78(0xb6)]=null,updateOverlay());}));}var package_default={'name':'@enhance-eng/sandbox','version':_0x11e49c(0xa6),'type':'module','description':_0x11e49c(0xaa),'license':_0x11e49c(0xe9),'main':_0x11e49c(0x13f),'module':_0x11e49c(0x13f),'types':_0x11e49c(0x11d),'exports':{'.':{'types':_0x11e49c(0x11d),'import':_0x11e49c(0x13f)},'./vite':{'types':_0x11e49c(0xb7),'import':_0x11e49c(0x127)}},'files':['dev/'],'bin':{'enhance-sandbox':_0x11e49c(0x12b)},'scripts':{'typecheck':'tsc\x20--noEmit','dev':_0x11e49c(0xed),'dev:build':_0x11e49c(0xc2),'dev:staging':_0x11e49c(0x98),'dev:staging:build':_0x11e49c(0xfb),'build':_0x11e49c(0xb3),'build:release':'ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','build:release:dev':_0x11e49c(0x111),'version':_0x11e49c(0x11c)},'dependencies':{'commander':_0x11e49c(0xd6),'zod':'^3.22.4'},'devDependencies':{'@types/node':_0x11e49c(0xe1),'javascript-obfuscator':_0x11e49c(0xd3),'tsup':_0x11e49c(0xff),'vite':_0x11e49c(0x96)},'publishConfig':{'access':_0x11e49c(0xd9)}},DEFAULT_SERVICE_WORKER_PATH=_0x11e49c(0x156),DEFAULT_RUNTIME_PATH=_0x11e49c(0x9d),PACKAGE_VERSION=typeof package_default[_0x11e49c(0x140)]===_0x11e49c(0x143)?package_default['version']:_0x11e49c(0x10c);function normalizeAssetPath(_0x3a8897){const _0x16345a=_0x11e49c;if(!_0x3a8897)return _0x3a8897;if(_0x3a8897[_0x16345a(0xc9)](_0x16345a(0x13d))||_0x3a8897['startsWith'](_0x16345a(0xea)))return _0x3a8897;const _0x1ea053=_0x3a8897[_0x16345a(0xbf)](/^\.\//,'');return _0x1ea053[_0x16345a(0xc9)]('/')?_0x1ea053:'/'+_0x1ea053;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0xe2d824){const _0x3cafb2=_0x11e49c;return Enhance[_0x3cafb2(0xdf)](_0xe2d824);},'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(){const _0x209ac2=_0x11e49c;return Enhance2[_0x209ac2(0x94)]();}function runtimeURL(){return Enhance2['runtimeURL']();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
|
|
1
|
+
const _0x31cd8b=_0x8f9d;(function(_0x35d82f,_0x472ca1){const _0x3f0baf=_0x8f9d,_0x2f4b44=_0x35d82f();while(!![]){try{const _0x2f802a=parseInt(_0x3f0baf(0x142))/0x1*(parseInt(_0x3f0baf(0xca))/0x2)+-parseInt(_0x3f0baf(0xad))/0x3*(parseInt(_0x3f0baf(0xa2))/0x4)+parseInt(_0x3f0baf(0xde))/0x5+-parseInt(_0x3f0baf(0xb1))/0x6+parseInt(_0x3f0baf(0x99))/0x7+-parseInt(_0x3f0baf(0x128))/0x8+parseInt(_0x3f0baf(0xf8))/0x9;if(_0x2f802a===_0x472ca1)break;else _0x2f4b44['push'](_0x2f4b44['shift']());}catch(_0x5a04eb){_0x2f4b44['push'](_0x2f4b44['shift']());}}}(_0x446e,0x7d528));var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!=='undefined'?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x31cd8b(0x95),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x31cd8b(0x150)?__ENHANCE_DEFAULT_BACKEND_URL__:_0x31cd8b(0x9d),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!=='undefined'?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x31cd8b(0x15b)](_0x31cd8b(0xd0),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x50ea2a){const _0x15e517=_0x31cd8b;if(!_0x50ea2a[_0x15e517(0xa3)])throw new Error(_0x15e517(0x145));const _0x5b7485=_0x50ea2a[_0x15e517(0x9c)]??{};return{'publishableKey':_0x50ea2a['publishableKey'],'callbackBypass':_0x50ea2a['callbackBypass']??[],'overlay':{'enabled':!![],'position':'bottom-right','enableViteHmr':_0x5b7485[_0x15e517(0x9b)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x15e517(0xfd),'swPath':'/sw-enhance.js','overlayPath':_0x5b7485['overlayPath']??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x15e517(0xbd),'security':_0x5b7485[_0x15e517(0xe7)]??'permissive','backendUrl':_0x5b7485['backendUrl']??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x68c09=_0x31cd8b;try{const _0x2d7c38=new URLSearchParams(window['location'][_0x68c09(0x13b)]);return _0x2d7c38[_0x68c09(0x107)](_0x68c09(0x13f))?.[_0x68c09(0xf6)]()||'';}catch{return'';}}var LOG_PREFIX=_0x31cd8b(0x139),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x296753){const _0x137174=_0x31cd8b;console['log'](LOG_PREFIX+_0x137174(0x10b)),console[_0x137174(0x15b)](LOG_PREFIX+_0x137174(0x8d)+_0x296753[_0x137174(0xb3)]),console[_0x137174(0x15b)](LOG_PREFIX+_0x137174(0xc5)+_0x296753['enableViteHmr']),currentOptions=_0x296753['options'],toggleHandler=_0x296753[_0x137174(0xec)];if(overlayController){console[_0x137174(0x15b)](LOG_PREFIX+_0x137174(0x112)),updateOverlay();return;}if(overlayLoadPromise)return console['log'](LOG_PREFIX+_0x137174(0x115)),overlayLoadPromise;console[_0x137174(0x15b)](LOG_PREFIX+_0x137174(0x120)),overlayLoadPromise=doLoadOverlay(_0x296753);try{await overlayLoadPromise,console[_0x137174(0x15b)](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0x1a74c5){console[_0x137174(0xd6)](LOG_PREFIX+_0x137174(0xee),_0x1a74c5);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x28fe78){const _0x158391=_0x31cd8b;console[_0x158391(0x15b)](LOG_PREFIX+'\x20doLoadOverlay()\x20starting...');if(typeof window===_0x158391(0x150)){console[_0x158391(0x15b)](LOG_PREFIX+_0x158391(0xba));return;}if(window[_0x158391(0x11c)]){console[_0x158391(0x15b)](LOG_PREFIX+'\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit'),overlayController=window[_0x158391(0x11c)];return;}console[_0x158391(0x15b)](LOG_PREFIX+_0x158391(0x135));try{_0x28fe78[_0x158391(0xcc)]&&(console[_0x158391(0x15b)](LOG_PREFIX+_0x158391(0xe1)),await setupRemoteHMR(_0x28fe78['overlayPath']));console['log'](LOG_PREFIX+_0x158391(0x148)+_0x28fe78['overlayPath']);const _0x238254=Date['now'](),_0x1984fc=await import(_0x28fe78[_0x158391(0xb3)]);console[_0x158391(0x15b)](LOG_PREFIX+_0x158391(0xe0)+(Date[_0x158391(0x13d)]()-_0x238254)+'ms'),console[_0x158391(0x15b)](LOG_PREFIX+_0x158391(0x10f),Object[_0x158391(0xb9)](_0x1984fc));if(typeof _0x1984fc?.[_0x158391(0x130)]!==_0x158391(0xe9)){console['error'](LOG_PREFIX+_0x158391(0x9a)),console[_0x158391(0xd6)](LOG_PREFIX+_0x158391(0xb8),Object[_0x158391(0xb9)](_0x1984fc));return;}console['log'](LOG_PREFIX+_0x158391(0x149));const _0x27642f=_0x1984fc[_0x158391(0x130)]();console[_0x158391(0x15b)](LOG_PREFIX+_0x158391(0xc8),_0x27642f),overlayController=_0x27642f,window[_0x158391(0x11c)]=_0x27642f,_0x27642f[_0x158391(0xec)](_0x28fe78[_0x158391(0xec)]),console['log'](LOG_PREFIX+_0x158391(0xd4)),console[_0x158391(0x15b)](LOG_PREFIX+_0x158391(0x11b)),updateOverlay();}catch(_0x3cfd88){console['error'](LOG_PREFIX+_0x158391(0x8e),_0x3cfd88);}}function updateOverlay(){const _0x5ec782=_0x31cd8b;console['log'](LOG_PREFIX+_0x5ec782(0x129)),console['log'](LOG_PREFIX+_0x5ec782(0x146)+!!overlayController),console['log'](LOG_PREFIX+'\x20currentOptions\x20exists:\x20'+!!currentOptions);if(!overlayController||!currentOptions){console['log'](LOG_PREFIX+'\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update');return;}const _0x2a1d3e=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+_0x5ec782(0x10a),JSON['stringify'](_0x2a1d3e,null,0x2)),overlayController[_0x5ec782(0xf2)](_0x2a1d3e),console[_0x5ec782(0x15b)](LOG_PREFIX+_0x5ec782(0xed));}function composeOverlayState(_0x15ad09){const _0x50417c=_0x31cd8b,_0x3b7cf2=getEnhancementId();return console['log'](LOG_PREFIX+'\x20composeOverlayState\x20-\x20enhancementId:\x20'+_0x3b7cf2),console['log'](LOG_PREFIX+_0x50417c(0xcd)+state[_0x50417c(0xbb)]),console[_0x50417c(0x15b)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.controlled:\x20'+state[_0x50417c(0x11d)]),{'enhancementId':_0x3b7cf2,'enabled':state[_0x50417c(0xbb)],'controlled':state[_0x50417c(0x11d)],'overlayPosition':_0x15ad09[_0x50417c(0x137)][_0x50417c(0x155)],'securityMode':_0x15ad09['security'],'backendBaseUrl':_0x15ad09['backendUrl'],'appError':state[_0x50417c(0x117)]};}async function setupRemoteHMR(_0x15f10d){const _0x5f3a0b=_0x31cd8b;console[_0x5f3a0b(0x15b)](LOG_PREFIX+'\x20setupRemoteHMR()\x20for\x20'+_0x15f10d);if(typeof window===_0x5f3a0b(0x150))return;try{const _0xae7429=new URL(_0x15f10d,window[_0x5f3a0b(0x13a)][_0x5f3a0b(0x14f)]),_0x5eaa45=_0xae7429[_0x5f3a0b(0x14f)];console['log'](LOG_PREFIX+_0x5f3a0b(0x151)+_0x5eaa45+_0x5f3a0b(0xc4)+window[_0x5f3a0b(0x13a)][_0x5f3a0b(0x14f)]);if(_0x5eaa45===window[_0x5f3a0b(0x13a)][_0x5f3a0b(0x14f)]){console[_0x5f3a0b(0x15b)](LOG_PREFIX+_0x5f3a0b(0xf3));return;}console[_0x5f3a0b(0x15b)](LOG_PREFIX+_0x5f3a0b(0x10e)),await ensureReactRefreshPreamble(_0x5eaa45),await ensureViteClient(_0x5eaa45),console[_0x5f3a0b(0x15b)](LOG_PREFIX+_0x5f3a0b(0xd9));}catch(_0xfe8e73){console[_0x5f3a0b(0xbf)](LOG_PREFIX+'\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):',_0xfe8e73);}}async function ensureReactRefreshPreamble(_0x39dca3){const _0x5df1e4=_0x31cd8b;window[_0x5df1e4(0xdd)]??=new Set();if(window[_0x5df1e4(0xdd)][_0x5df1e4(0x14e)](_0x39dca3)){console['log'](LOG_PREFIX+_0x5df1e4(0xa5)+_0x39dca3);return;}console[_0x5df1e4(0x15b)](LOG_PREFIX+_0x5df1e4(0x102)+_0x39dca3+_0x5df1e4(0x88));const _0x56f3dd=await import(_0x39dca3+_0x5df1e4(0x15d)),_0x179da4=_0x56f3dd&&typeof _0x56f3dd==='object'&&_0x5df1e4(0x12e)in _0x56f3dd?_0x56f3dd[_0x5df1e4(0x12e)]:_0x56f3dd;if(!isRefreshRuntime(_0x179da4)){console[_0x5df1e4(0xbf)](LOG_PREFIX+'\x20Invalid\x20React\x20Refresh\x20runtime');return;}_0x179da4[_0x5df1e4(0xc2)](window),window[_0x5df1e4(0xa9)]=()=>{},window[_0x5df1e4(0x113)]=()=>_0xb10e9e=>_0xb10e9e,window[_0x5df1e4(0x124)]=!![],window[_0x5df1e4(0xdd)][_0x5df1e4(0x152)](_0x39dca3),console[_0x5df1e4(0x15b)](LOG_PREFIX+_0x5df1e4(0xc6)+_0x39dca3);}async function ensureViteClient(_0x480182){const _0x52fe66=_0x31cd8b;window['__viteHMRLoaded']??=new Set();if(window[_0x52fe66(0xd7)]['has'](_0x480182)){console['log'](LOG_PREFIX+'\x20Vite\x20client\x20already\x20loaded\x20for\x20'+_0x480182);return;}console[_0x52fe66(0x15b)](LOG_PREFIX+_0x52fe66(0xd3)+_0x480182+'...'),await import(_0x480182+_0x52fe66(0x127)),window[_0x52fe66(0xd7)]['add'](_0x480182),console['log'](LOG_PREFIX+_0x52fe66(0x12c)+_0x480182);}function isRefreshRuntime(_0x42c398){const _0x142b53=_0x31cd8b;return typeof _0x42c398===_0x142b53(0x132)&&_0x42c398!==null&&_0x142b53(0xc2)in _0x42c398&&typeof _0x42c398[_0x142b53(0xc2)]==='function';}var WORKER_MESSAGE_CONFIG=_0x31cd8b(0xd2),WORKER_MESSAGE_DISABLE=_0x31cd8b(0xe6),LOG_PREFIX2=_0x31cd8b(0xc7),registration=null,currentOptions2=null;async function registerServiceWorker(_0x1ec684){const _0x3564f3=_0x31cd8b;console[_0x3564f3(0x15b)](LOG_PREFIX2+_0x3564f3(0x106)),console['log'](LOG_PREFIX2+_0x3564f3(0xe5)+_0x1ec684[_0x3564f3(0xf7)]);if(!(_0x3564f3(0x90)in navigator)){console[_0x3564f3(0xbf)](LOG_PREFIX2+_0x3564f3(0x14d));return;}console[_0x3564f3(0x15b)](LOG_PREFIX2+_0x3564f3(0xcf));const _0x29f33c=navigator[_0x3564f3(0x90)][_0x3564f3(0xdb)];console[_0x3564f3(0x15b)](LOG_PREFIX2+_0x3564f3(0x15a),_0x29f33c?.[_0x3564f3(0x12b)]??_0x3564f3(0xe3)),console[_0x3564f3(0x15b)](LOG_PREFIX2+_0x3564f3(0x89),_0x29f33c?.['state']??'N/A');const _0x3c83a1=!!_0x29f33c;currentOptions2=_0x1ec684,console['log'](LOG_PREFIX2+_0x3564f3(0xc0));const _0x4ad5ee=await detectBlockingServiceWorker(_0x1ec684['swPath']);if(_0x4ad5ee){console['error'](LOG_PREFIX2+'\x20BLOCKING\x20SW\x20detected:\x20'+_0x4ad5ee),console['error'](LOG_PREFIX2+_0x3564f3(0xef));return;}console[_0x3564f3(0x15b)](LOG_PREFIX2+_0x3564f3(0xb4));try{console['log'](LOG_PREFIX2+'\x20Registering\x20SW\x20at\x20'+_0x1ec684['swPath']+'\x20with\x20scope\x20\x27/\x27...'),registration=await navigator[_0x3564f3(0x90)][_0x3564f3(0x153)](_0x1ec684[_0x3564f3(0xf7)],{'scope':'/'}),console[_0x3564f3(0x15b)](LOG_PREFIX2+_0x3564f3(0x91),{'scope':registration['scope'],'active':registration[_0x3564f3(0x94)]?.[_0x3564f3(0x12b)],'waiting':registration[_0x3564f3(0x105)]?.[_0x3564f3(0x12b)],'installing':registration['installing']?.[_0x3564f3(0x12b)]}),console[_0x3564f3(0x15b)](LOG_PREFIX2+_0x3564f3(0x143));const _0x1d1495=await navigator['serviceWorker'][_0x3564f3(0xd8)];console[_0x3564f3(0x15b)](LOG_PREFIX2+'\x20SW\x20ready!\x20Active:',_0x1d1495[_0x3564f3(0x94)]?.[_0x3564f3(0x12b)]);const _0x55ccad=ownsCurrentController(_0x1ec684[_0x3564f3(0xf7)]);state[_0x3564f3(0x11d)]=_0x55ccad,console[_0x3564f3(0x15b)](LOG_PREFIX2+_0x3564f3(0x11a)+_0x55ccad),console[_0x3564f3(0x15b)](LOG_PREFIX2+_0x3564f3(0x118),navigator[_0x3564f3(0x90)][_0x3564f3(0xdb)]?.[_0x3564f3(0x12b)]??'none');if(!_0x3c83a1&&!navigator[_0x3564f3(0x90)][_0x3564f3(0xdb)]){console['log'](LOG_PREFIX2+_0x3564f3(0x13c)),window[_0x3564f3(0x13a)]['reload']();return;}console[_0x3564f3(0x15b)](LOG_PREFIX2+_0x3564f3(0xe4)),await sendConfiguration();if(state['enabled']){const _0x24024f=document[_0x3564f3(0x100)](_0x3564f3(0xbe))!==null;console['log'](LOG_PREFIX2+_0x3564f3(0xe2)+_0x24024f);if(!_0x24024f){console[_0x3564f3(0x15b)](LOG_PREFIX2+_0x3564f3(0x97)),window[_0x3564f3(0x13a)]['reload']();return;}}console[_0x3564f3(0x15b)](LOG_PREFIX2+'\x20Updating\x20overlay...'),updateOverlay(),console[_0x3564f3(0x15b)](LOG_PREFIX2+_0x3564f3(0x9f));}catch(_0x257a50){console[_0x3564f3(0xd6)](LOG_PREFIX2+_0x3564f3(0x103),_0x257a50);}}async function sendConfiguration(){const _0x5950f8=_0x31cd8b;console[_0x5950f8(0x15b)](LOG_PREFIX2+_0x5950f8(0x136)),console[_0x5950f8(0x15b)](LOG_PREFIX2+_0x5950f8(0xf9)+state['enabled']+_0x5950f8(0x10d)+!!currentOptions2);if(!state[_0x5950f8(0xbb)]||!currentOptions2){console['log'](LOG_PREFIX2+_0x5950f8(0x14c));return;}const _0x8d88b1=await resolveWorker();if(!_0x8d88b1){console['warn'](LOG_PREFIX2+'\x20No\x20service\x20worker\x20active\x20to\x20configure');return;}const _0x29eda3={'publishableKey':currentOptions2[_0x5950f8(0xa3)],'callbackBypass':currentOptions2['callbackBypass'],'securityMode':currentOptions2[_0x5950f8(0xe7)]};console['log'](LOG_PREFIX2+_0x5950f8(0x125),JSON[_0x5950f8(0x158)](_0x29eda3,null,0x2)),_0x8d88b1[_0x5950f8(0x8b)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x29eda3}),console[_0x5950f8(0x15b)](LOG_PREFIX2+_0x5950f8(0x156));}async function unregisterServiceWorker(_0x3ed085){const _0x585690=_0x31cd8b;console[_0x585690(0x15b)](LOG_PREFIX2+_0x585690(0xc3));if(!(_0x585690(0x90)in navigator)){console[_0x585690(0x15b)](LOG_PREFIX2+_0x585690(0xd1));return;}try{const _0x2b7272=registration??await navigator[_0x585690(0x90)][_0x585690(0xa4)]('/');if(!_0x2b7272){console['log'](LOG_PREFIX2+'\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister');return;}console[_0x585690(0x15b)](LOG_PREFIX2+_0x585690(0xaa),{'scope':_0x2b7272[_0x585690(0x15e)],'active':_0x2b7272[_0x585690(0x94)]?.[_0x585690(0x12b)],'waiting':_0x2b7272['waiting']?.['scriptURL'],'installing':_0x2b7272['installing']?.[_0x585690(0x12b)]});const _0x48a87b=[_0x2b7272[_0x585690(0x94)]?.[_0x585690(0x12b)],_0x2b7272['waiting']?.['scriptURL'],_0x2b7272['installing']?.[_0x585690(0x12b)]],_0x2359ff=_0x48a87b[_0x585690(0x14b)](_0x4cf1cb=>_0x4cf1cb&&ownsServiceWorker(_0x4cf1cb,_0x3ed085));if(!_0x2359ff){console['log'](LOG_PREFIX2+_0x585690(0xf1));return;}_0x2b7272['active']&&(console['log'](LOG_PREFIX2+_0x585690(0x10c)),_0x2b7272[_0x585690(0x94)][_0x585690(0x8b)]({'type':WORKER_MESSAGE_DISABLE})),console['log'](LOG_PREFIX2+_0x585690(0x8c)),await _0x2b7272[_0x585690(0xa0)](),registration=null,currentOptions2=null,console['log'](LOG_PREFIX2+_0x585690(0x96));}catch(_0x25e984){console[_0x585690(0xd6)](LOG_PREFIX2+_0x585690(0x86),_0x25e984);}}function ownsServiceWorker(_0x338d1e,_0x3bac6b){const _0x368fb6=_0x31cd8b,_0x3dabcb=typeof window!==_0x368fb6(0x150)?window[_0x368fb6(0x13a)][_0x368fb6(0x14f)]:'',_0x11041d=new URL(_0x3bac6b,_0x3dabcb||void 0x0)[_0x368fb6(0x12f)],_0x35501f=_0x338d1e===_0x11041d||_0x338d1e[_0x368fb6(0x9e)](_0x368fb6(0x93));return console['log'](LOG_PREFIX2+_0x368fb6(0x138)+_0x338d1e+_0x368fb6(0x85)+_0x11041d+_0x368fb6(0x104)+_0x35501f),_0x35501f;}function ownsCurrentController(_0x4566d8){const _0x19780a=_0x31cd8b;if(typeof navigator===_0x19780a(0x150))return![];const _0x554b3a=navigator[_0x19780a(0x90)]?.['controller'];if(!_0x554b3a)return console[_0x19780a(0x15b)](LOG_PREFIX2+_0x19780a(0xaf)),![];return ownsServiceWorker(_0x554b3a[_0x19780a(0x12b)],_0x4566d8);}async function detectBlockingServiceWorker(_0x4cf140){const _0x5c29e0=_0x31cd8b;if(!navigator[_0x5c29e0(0x90)])return null;try{const _0x138c1d=await navigator[_0x5c29e0(0x90)][_0x5c29e0(0xa4)]('/');console['log'](LOG_PREFIX2+'\x20detectBlocking\x20-\x20existing\x20registration:',_0x138c1d?.[_0x5c29e0(0x94)]?.['scriptURL']??'none');const _0x32d0ef=_0x138c1d?.[_0x5c29e0(0x94)]?.[_0x5c29e0(0x12b)];if(!_0x32d0ef)return null;if(ownsServiceWorker(_0x32d0ef,_0x4cf140))return null;return _0x32d0ef;}catch(_0x66a13e){return console[_0x5c29e0(0xd6)](LOG_PREFIX2+_0x5c29e0(0xff),_0x66a13e),null;}}async function resolveWorker(){const _0x5812aa=_0x31cd8b,_0x1dad54=registration??await navigator[_0x5812aa(0x90)]?.[_0x5812aa(0xa4)]('/'),_0x399d6f=_0x1dad54?.[_0x5812aa(0x94)]??_0x1dad54?.['waiting']??_0x1dad54?.[_0x5812aa(0x14a)]??null;return console[_0x5812aa(0x15b)](LOG_PREFIX2+_0x5812aa(0x131),_0x399d6f?.[_0x5812aa(0x12b)]??_0x5812aa(0xe3),_0x5812aa(0xf5)+(_0x399d6f?.[_0x5812aa(0x12a)]??'N/A')),_0x399d6f;}var LOG_PREFIX3=_0x31cd8b(0xb6);function isInitialized(){const _0xe9f4eb=_0x31cd8b;return typeof window!==_0xe9f4eb(0x150)&&window[_0xe9f4eb(0xa8)]===!![];}function setInitialized(_0x178e54){const _0x524360=_0x31cd8b;typeof window!==_0x524360(0x150)&&(window[_0x524360(0xa8)]=_0x178e54);}function getOptions(){const _0x2f1d2a=_0x31cd8b;return typeof window!==_0x2f1d2a(0x150)?window[_0x2f1d2a(0xe8)]??null:null;}function setOptions(_0xa4cb52){const _0x5a517d=_0x31cd8b;typeof window!==_0x5a517d(0x150)&&(window[_0x5a517d(0xe8)]=_0xa4cb52);}function _0x446e(){const _0x407f6a=['state:\x20','trim','swPath','9001539CEbAsU','\x20state.enabled:\x20','enhance','/sw-enhance.js','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','info','version','\x20detectBlocking\x20error:','querySelector','__enhanceController','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','\x20Failed\x20to\x20register\x20service\x20worker:',',\x20owns=','waiting','\x20registerServiceWorker()\x20called','get','bun\x20version\x20patch\x20--no-git-tag-version','history','\x20Updating\x20overlay\x20with\x20state:','\x20loadOverlay()\x20called','\x20Sending\x20DISABLE\x20message\x20to\x20SW...',',\x20currentOptions:\x20','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','\x20Module\x20exports:','\x20Raw\x20options:','^4.1.1','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','$RefreshSig$','./dev/vite/index.js','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','public','appError','\x20Current\x20controller\x20after\x20ready:','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','\x20Calling\x20updateOverlay()...','__enhanceOverlay','controlled','ENHANCE_OVERLAY_PATH=https://assets-dev.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\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\x20--watch','\x20Starting\x20fresh\x20overlay\x20load...','false','0.0.0','vite:error','__vite_plugin_react_preamble_installed__','\x20Sending\x20customer\x20config\x20to\x20SW:','init','/@vite/client','1790336OWYtIA','\x20updateOverlay()\x20called','state','scriptURL','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','\x20Normalized\x20options:','default','href','createOverlay','\x20resolveWorker:','object','startsWith','hasEnhancement','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','\x20sendConfiguration()\x20called','overlay','\x20ownsServiceWorker?\x20scriptURL=','[Enhance\x20Overlay]','location','search','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','now','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','enhancement','enable','\x20Enhancement\x20mode\x20ENABLED','3232PCaEjD','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','off','[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()','\x20overlayController\x20exists:\x20','enhancementId','\x20Importing\x20overlay\x20module\x20from:\x20','\x20Calling\x20createOverlay()...','installing','some','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','has','origin','undefined','\x20Overlay\x20origin:\x20','add','register','^8.5.1','position','\x20Config\x20sent\x20to\x20SW','disable','stringify','^7.2.4','\x20Current\x20controller:','log','module','/@react-refresh','scope','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup',',\x20expected=','\x20Failed\x20to\x20unregister\x20service\x20worker:','\x20enhancementUrl:\x20','...','\x20Controller\x20state:','vite:beforeUpdate','postMessage','\x20Unregistering\x20SW...','\x20overlayPath:\x20','\x20Failed\x20to\x20import/create\x20overlay:','runtimeURL','serviceWorker','\x20Registration\x20returned:','http://','sw-enhance','active','https://assets.enhancelabs.ai/overlay.js','\x20SW\x20unregistered\x20successfully','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','\x20init()\x20complete\x20-\x20normal\x20mode','1182825CFzIKS','\x20Module\x20missing\x20createOverlay\x20export!','enableOverlayHmr','__development','https://api.enhancelabs.ai','includes','\x20registerServiceWorker()\x20complete','unregister','./dev/cli.js','4lXOvva','publishableKey','getRegistration','\x20React\x20Refresh\x20already\x20installed\x20for\x20','\x20init()\x20called\x20at\x20','^3.22.4','__enhanceInitialized','$RefreshReg$','\x20Found\x20registration:','\x20enhancementId:\x20','enhancementUrl','215256vhCDIW','replaceState','\x20No\x20current\x20controller','0.3.21','4719024SnicXq','\x20First\x20initialization','overlayPath','\x20No\x20blocking\x20SW\x20found','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','[Enhance\x20Runtime]','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','\x20Available\x20exports:','keys','\x20No\x20window\x20object\x20-\x20skipping','enabled','\x20Current\x20URL:\x20','/assets/enhance-runtime.js','[data-enhance-runtime-bootstrap]','warn','\x20Checking\x20for\x20blocking\x20service\x20worker...','\x20init()\x20complete\x20-\x20enhancement\x20mode','injectIntoGlobalHook','\x20unregisterServiceWorker()\x20called',',\x20page\x20origin:\x20','\x20enableViteHmr:\x20','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','[Enhance\x20SW-Client]','\x20Controller\x20created:','./dev/index.d.ts','78fLoQMs','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','enableViteHmr','\x20composeOverlayState\x20-\x20state.enabled:\x20','readyState','\x20Service\x20workers\x20supported','[Enhance\x20Config]\x20Build-time\x20defaults:','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','enhance:configure','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','\x20Overlay\x20controller\x20initialized\x20and\x20cached','\x20Vite\x20error\x20detected:','error','__viteHMRLoaded','ready','\x20HMR\x20setup\x20complete','./dev/index.js','controller','@enhance-eng/sandbox','__enhanceReactRefreshInstalledOrigins','1500870CKmdTO','searchParams','\x20Module\x20imported\x20in\x20','\x20Setting\x20up\x20remote\x20HMR...','\x20Enhancement\x20detection:\x20wasEnhanced=','none','\x20Sending\x20customer\x20configuration...','\x20swPath:\x20','enhance:disable','security','__enhanceOptions','function','^11.1.0','err','onToggle','\x20Overlay\x20update\x20complete','\x20loadOverlay()\x20failed:','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','update','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','serviceWorkerURL'];_0x446e=function(){return _0x407f6a;};return _0x446e();}var Enhance={'init'(_0xfe437b){const _0x1e9195=_0x31cd8b,_0x4fbaa4=Date[_0x1e9195(0x13d)]();console['log'](LOG_PREFIX3+_0x1e9195(0xa6)+_0x4fbaa4),console[_0x1e9195(0x15b)](LOG_PREFIX3+_0x1e9195(0xbc)+window[_0x1e9195(0x13a)][_0x1e9195(0x12f)]),console[_0x1e9195(0x15b)](LOG_PREFIX3+'\x20Document\x20readyState:\x20'+document[_0x1e9195(0xce)]),console[_0x1e9195(0x15b)](LOG_PREFIX3+_0x1e9195(0x110),JSON[_0x1e9195(0x158)](_0xfe437b,null,0x2));if(isInitialized())return console[_0x1e9195(0xbf)](LOG_PREFIX3+_0x1e9195(0xb7)),window[_0x1e9195(0x101)]??createController();setInitialized(!![]),console[_0x1e9195(0x15b)](LOG_PREFIX3+_0x1e9195(0xb2));const _0x3f6972=normalizeOptions(_0xfe437b);setOptions(_0x3f6972),console['log'](LOG_PREFIX3+_0x1e9195(0x12d),JSON[_0x1e9195(0x158)](_0x3f6972,null,0x2));const _0x43ab55=parseUrlParams();console[_0x1e9195(0x15b)](LOG_PREFIX3+'\x20URL\x20params\x20parsed:',JSON[_0x1e9195(0x158)](_0x43ab55,null,0x2));if(_0x43ab55['explicitDisable'])return cleanUrlParam(_0x1e9195(0xfa)),console[_0x1e9195(0x15b)](LOG_PREFIX3+_0x1e9195(0xb5)),createController();if(_0x43ab55[_0x1e9195(0x134)])return console['log'](LOG_PREFIX3+_0x1e9195(0x141)),console[_0x1e9195(0x15b)](LOG_PREFIX3+_0x1e9195(0x87)+_0x43ab55[_0x1e9195(0xac)]),console[_0x1e9195(0x15b)](LOG_PREFIX3+_0x1e9195(0xab)+_0x43ab55[_0x1e9195(0x147)]),state[_0x1e9195(0xbb)]=!![],console[_0x1e9195(0x15b)](LOG_PREFIX3+'\x20Starting\x20overlay\x20load\x20(async)...'),void loadOverlay({'overlayPath':_0x3f6972[_0x1e9195(0xb3)],'enableViteHmr':_0x3f6972[_0x1e9195(0x137)][_0x1e9195(0xcc)],'options':_0x3f6972,'onToggle':handleToggle}),console[_0x1e9195(0x15b)](LOG_PREFIX3+'\x20Starting\x20SW\x20registration\x20(async)...'),void registerServiceWorker(_0x3f6972),console[_0x1e9195(0x15b)](LOG_PREFIX3+_0x1e9195(0xc1)),createController();return console['log'](LOG_PREFIX3+_0x1e9195(0xfc)),console[_0x1e9195(0x15b)](LOG_PREFIX3+'\x20Unregistering\x20any\x20existing\x20SW...'),void unregisterServiceWorker(_0x3f6972['swPath']),console[_0x1e9195(0x15b)](LOG_PREFIX3+_0x1e9195(0x98)),import.meta.hot&&(console[_0x1e9195(0x15b)](LOG_PREFIX3+_0x1e9195(0xf0)),import.meta.hot['on'](_0x1e9195(0x123),_0x25077f=>{const _0x534143=_0x1e9195;console[_0x534143(0x15b)](LOG_PREFIX3+_0x534143(0xd5),_0x25077f),state[_0x534143(0x117)]={'message':_0x25077f[_0x534143(0xeb)]['message']},updateOverlay();}),import.meta.hot['on'](_0x1e9195(0x8a),()=>{const _0x37f045=_0x1e9195;state[_0x37f045(0x117)]&&(console[_0x37f045(0x15b)](LOG_PREFIX3+'\x20Vite\x20update\x20pending\x20-\x20clearing\x20error'),state['appError']=null,updateOverlay());})),createController();}};function createController(){const _0x53f31c=_0x31cd8b,_0x15fd9f={'enable'(){const _0x1c99e0=_0x8f9d,_0x506151=getOptions();if(!_0x506151)return;state[_0x1c99e0(0xbb)]=!![],void loadOverlay({'overlayPath':_0x506151[_0x1c99e0(0xb3)],'enableViteHmr':_0x506151[_0x1c99e0(0x137)]['enableViteHmr'],'options':_0x506151,'onToggle':handleToggle}),void registerServiceWorker(_0x506151),void sendConfiguration(),updateOverlay();},'disable'(){const _0x487713=_0x8f9d,_0x3f063c=getOptions();if(!_0x3f063c)return;state[_0x487713(0xbb)]=![],state[_0x487713(0x11d)]=![],updateOverlay(),void unregisterServiceWorker(_0x3f063c[_0x487713(0xf7)]);},'status'(){const _0x375bee=_0x8f9d;return{'enabled':state[_0x375bee(0xbb)],'controlled':state[_0x375bee(0x11d)]};}};return typeof window!==_0x53f31c(0x150)&&(window[_0x53f31c(0x101)]=_0x15fd9f),_0x15fd9f;}function handleToggle(){const _0x2848e6=_0x31cd8b,_0x153dfe=createController();state[_0x2848e6(0xbb)]?_0x153dfe[_0x2848e6(0x157)]():_0x153dfe[_0x2848e6(0x140)]();}function _0x8f9d(_0x56f3f2,_0x579b14){_0x56f3f2=_0x56f3f2-0x84;const _0x446e23=_0x446e();let _0x8f9d22=_0x446e23[_0x56f3f2];return _0x8f9d22;}function parseUrlParams(){const _0x24ccf6=_0x31cd8b,_0x3d6d4d=new URL(window['location'][_0x24ccf6(0x12f)]),_0x3ebb90=_0x3d6d4d['searchParams'][_0x24ccf6(0x107)](_0x24ccf6(0xfa))?.['toLowerCase'](),_0x32174a=_0x3d6d4d[_0x24ccf6(0xdf)]['get'](_0x24ccf6(0xac)),_0x5a81bc=_0x3d6d4d[_0x24ccf6(0xdf)][_0x24ccf6(0x107)](_0x24ccf6(0x13f));return{'hasEnhancement':Boolean(_0x32174a||_0x5a81bc),'explicitDisable':_0x3ebb90==='0'||_0x3ebb90===_0x24ccf6(0x121)||_0x3ebb90===_0x24ccf6(0x144),'enhancementUrl':_0x32174a,'enhancementId':_0x5a81bc};}function cleanUrlParam(_0xa663b9){const _0x52e46b=_0x31cd8b,_0x50ab88=new URL(window[_0x52e46b(0x13a)][_0x52e46b(0x12f)]);_0x50ab88[_0x52e46b(0xdf)][_0x52e46b(0x14e)](_0xa663b9)&&(_0x50ab88[_0x52e46b(0xdf)]['delete'](_0xa663b9),window[_0x52e46b(0x109)][_0x52e46b(0xae)](null,document['title'],_0x50ab88['toString']()));}var package_default={'name':_0x31cd8b(0xdc),'version':_0x31cd8b(0xb0),'type':_0x31cd8b(0x15c),'description':_0x31cd8b(0x13e),'license':'MIT','main':'./dev/index.js','module':_0x31cd8b(0xda),'types':'./dev/index.d.ts','exports':{'.':{'types':_0x31cd8b(0xc9),'import':_0x31cd8b(0xda)},'./vite':{'types':'./dev/vite/index.d.ts','import':_0x31cd8b(0x114)}},'files':['dev/'],'bin':{'enhance-sandbox':_0x31cd8b(0xa1)},'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':_0x31cd8b(0x119),'dev:staging':_0x31cd8b(0x11f),'dev:staging:build':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','build':_0x31cd8b(0x84),'build:release':_0x31cd8b(0xcb),'build:release:dev':_0x31cd8b(0x11e),'version':_0x31cd8b(0x108)},'dependencies':{'commander':_0x31cd8b(0xea),'zod':_0x31cd8b(0xa7)},'devDependencies':{'@types/node':'^24.10.1','javascript-obfuscator':_0x31cd8b(0x111),'tsup':_0x31cd8b(0x154),'vite':_0x31cd8b(0x159)},'publishConfig':{'access':_0x31cd8b(0x116)}},DEFAULT_SERVICE_WORKER_PATH=_0x31cd8b(0xfb),DEFAULT_RUNTIME_PATH='/assets/enhance-runtime.js',PACKAGE_VERSION=typeof package_default['version']==='string'?package_default[_0x31cd8b(0xfe)]:_0x31cd8b(0x122);function normalizeAssetPath(_0x116972){const _0x35c261=_0x31cd8b;if(!_0x116972)return _0x116972;if(_0x116972[_0x35c261(0x133)](_0x35c261(0x92))||_0x116972[_0x35c261(0x133)]('https://'))return _0x116972;const _0x4743f6=_0x116972['replace'](/^\.\//,'');return _0x4743f6['startsWith']('/')?_0x4743f6:'/'+_0x4743f6;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x5ec5ec){const _0x268cfc=_0x31cd8b;return Enhance[_0x268cfc(0x126)](_0x5ec5ec);},'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(){const _0x28c8f0=_0x31cd8b;return Enhance2[_0x28c8f0(0xf4)]();}function runtimeURL(){const _0x4a0974=_0x31cd8b;return Enhance2[_0x4a0974(0x8f)]();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
|
package/dist/sw-enhance.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(_0x889117,_0x40900d){const _0xd954e8=_0x1695,_0x135989=_0x889117();while(!![]){try{const _0xf5a45f=-parseInt(_0xd954e8(0x1a8))/0x1+parseInt(_0xd954e8(0x22d))/0x2*(parseInt(_0xd954e8(0x15e))/0x3)+parseInt(_0xd954e8(0x131))/0x4+-parseInt(_0xd954e8(0x1da))/0x5*(-parseInt(_0xd954e8(0x162))/0x6)+-parseInt(_0xd954e8(0x166))/0x7*(parseInt(_0xd954e8(0x159))/0x8)+parseInt(_0xd954e8(0x1e4))/0x9+-parseInt(_0xd954e8(0x222))/0xa;if(_0xf5a45f===_0x40900d)break;else _0x135989['push'](_0x135989['shift']());}catch(_0x13e535){_0x135989['push'](_0x135989['shift']());}}}(_0x48a2,0xd5f37));function _0x1695(_0x45ece7,_0x5fe7d5){_0x45ece7=_0x45ece7-0x11b;const _0x48a2c9=_0x48a2();let _0x1695d7=_0x48a2c9[_0x45ece7];return _0x1695d7;}var EnhanceSW=((()=>{const _0x1e5c8c=_0x1695;var _0x4dc35f=Object['defineProperty'],_0xccc885=Object[_0x1e5c8c(0x1ab)],_0x5d395c=Object[_0x1e5c8c(0x17d)],_0x169db0=Object[_0x1e5c8c(0x221)][_0x1e5c8c(0x1fb)],_0x54ea04=(_0x3a0c13,_0x4d4884)=>{for(var _0x3377c6 in _0x4d4884)_0x4dc35f(_0x3a0c13,_0x3377c6,{'get':_0x4d4884[_0x3377c6],'enumerable':!![]});},_0x399de6=(_0x879ce5,_0xd605ec,_0x813180,_0x443cd8)=>{const _0x461e15=_0x1e5c8c;if(_0xd605ec&&typeof _0xd605ec===_0x461e15(0x22b)||typeof _0xd605ec===_0x461e15(0x1ca)){for(let _0x49652c of _0x5d395c(_0xd605ec))if(!_0x169db0['call'](_0x879ce5,_0x49652c)&&_0x49652c!==_0x813180)_0x4dc35f(_0x879ce5,_0x49652c,{'get':()=>_0xd605ec[_0x49652c],'enumerable':!(_0x443cd8=_0xccc885(_0xd605ec,_0x49652c))||_0x443cd8[_0x461e15(0x135)]});}return _0x879ce5;},_0x3b66c5=_0x2559c8=>_0x399de6(_0x4dc35f({},_0x1e5c8c(0x215),{'value':!![]}),_0x2559c8),_0x14e69b={};_0x54ea04(_0x14e69b,{'log':()=>_0x57fbd2});var _0x52ee4d='enhance:configure',_0x5ace81=_0x1e5c8c(0x212);function _0x2b1df8(_0x1f1a75){const _0x22fef8=_0x1e5c8c;if(!_0x1f1a75[_0x22fef8(0x1de)]('/'))return'/'+_0x1f1a75;return _0x1f1a75;}function _0x277923(_0x225f31,_0x5a129e){const _0x2b1f6f=_0x1e5c8c,_0x146b5b=new URL(_0x225f31[_0x2b1f6f(0x152)]()),_0x2c201e=_0x146b5b[_0x2b1f6f(0x12a)][_0x2b1f6f(0x143)]('/')?_0x146b5b[_0x2b1f6f(0x12a)][_0x2b1f6f(0x1c3)](0x0,-0x1):_0x146b5b['pathname'],_0x2e6b45=_0x5a129e['pathname'][_0x2b1f6f(0x1de)]('/')?_0x5a129e[_0x2b1f6f(0x12a)]:'/'+_0x5a129e['pathname'];return _0x146b5b[_0x2b1f6f(0x12a)]=(''+_0x2c201e+_0x2e6b45)[_0x2b1f6f(0x177)](/\/+/g,'/'),_0x146b5b['search']=_0x5a129e[_0x2b1f6f(0x1c0)],_0x146b5b[_0x2b1f6f(0x1ce)]='',_0x146b5b;}var _0x3d69a0='[Enhance\x20SW\x20Routing]',_0x869b6b='X-Enhance-Publishable-Key',_0x30f1f1=new Set([_0x1e5c8c(0x126),_0x1e5c8c(0x12c),_0x1e5c8c(0x165),'image','worker',_0x1e5c8c(0x1fe),_0x1e5c8c(0x1f7)]);function _0x14250e(_0x3d80d0){const _0x92f25e=_0x1e5c8c,_0x5347e0=_0x3d80d0['method']==='GET'||_0x3d80d0[_0x92f25e(0x133)]===_0x92f25e(0x1b4);return _0x5347e0;}function _0x2c6607(_0x37b9d4,_0x1f554b){const _0x198095=_0x1e5c8c,_0x217132=_0x2b1df8(_0x1f554b),_0x333cc4=_0x37b9d4[_0x198095(0x15a)][_0x198095(0x158)](_0x5db761=>_0x217132['startsWith'](_0x5db761));return _0x333cc4;}function _0x2ea32e(_0x61429d,_0x4bbeda,_0x43fca5){const _0x154740=_0x1e5c8c,_0x1ec9bd=_0x4bbeda[_0x154740(0x1a3)];if(!_0x1ec9bd||!_0x30f1f1[_0x154740(0x20f)](_0x1ec9bd))return![];if(_0x1e1e04(_0x61429d,_0x43fca5))return console['log'](_0x3d69a0+_0x154740(0x124)+_0x43fca5['pathname']+_0x154740(0x210)),![];if(_0x439581(_0x61429d,_0x43fca5))return console[_0x154740(0x1d5)](_0x3d69a0+_0x154740(0x124)+_0x43fca5[_0x154740(0x12a)]+_0x154740(0x22c)),![];if(_0x43fca5['origin']!==self[_0x154740(0x1e8)][_0x154740(0x132)])return![];return!![];}async function _0x108cd2(_0x1f9d84,_0x256e16,_0x2f7556){const _0x6571bb=_0x1e5c8c;console[_0x6571bb(0x1d5)](_0x3d69a0+_0x6571bb(0x198)+_0x2f7556[_0x6571bb(0x12a)]);if(!_0x1f9d84[_0x6571bb(0x13a)])return console[_0x6571bb(0x1d5)](_0x3d69a0+_0x6571bb(0x1a7)),null;const _0x25f89f=_0x4d5f6b(_0x1f9d84,_0x2f7556);console[_0x6571bb(0x1d5)](_0x3d69a0+'\x20\x20\x20Enhancement\x20URL:\x20'+_0x25f89f[_0x6571bb(0x152)]());const _0x4381e2=new Headers(_0x256e16[_0x6571bb(0x1ba)]);_0x4381e2[_0x6571bb(0x1b2)](_0x6571bb(0x14b),'enhancement'),_0x4381e2[_0x6571bb(0x14e)]('host');_0x1f9d84['publishableKey']&&_0x4381e2[_0x6571bb(0x1b2)](_0x869b6b,_0x1f9d84[_0x6571bb(0x213)]);const _0x1e3493=new Request(_0x25f89f[_0x6571bb(0x152)](),{'method':_0x256e16['method'],'headers':_0x4381e2,'credentials':_0x6571bb(0x214),'redirect':_0x256e16[_0x6571bb(0x1a1)],'cache':_0x6571bb(0x169),'mode':_0x6571bb(0x203)});try{console[_0x6571bb(0x1d5)](_0x3d69a0+_0x6571bb(0x220));const _0x3e45e5=await fetch(_0x1e3493);console[_0x6571bb(0x1d5)](_0x3d69a0+_0x6571bb(0x153)+_0x3e45e5['status']+'\x20'+_0x3e45e5['statusText']+',\x20type:\x20'+_0x3e45e5[_0x6571bb(0x123)]);if(_0x3e45e5[_0x6571bb(0x123)]===_0x6571bb(0x136))return console[_0x6571bb(0x1d5)](_0x3d69a0+_0x6571bb(0x1c8)),_0x57fbd2(_0x6571bb(0x1d0),'Enhancement\x20CORS\x20blocked',_0x25f89f['toString']()),null;if(!_0x3e45e5['ok'])return console[_0x6571bb(0x1d5)](_0x3d69a0+'\x20\x20\x20Not\x20OK\x20('+_0x3e45e5[_0x6571bb(0x1a4)]+_0x6571bb(0x140)),_0x57fbd2(_0x6571bb(0x1d2),_0x6571bb(0x15f)+_0x3e45e5[_0x6571bb(0x1a4)]+_0x6571bb(0x1c9)+_0x25f89f[_0x6571bb(0x12a)]),null;return console[_0x6571bb(0x1d5)](_0x3d69a0+'\x20\x20\x20SUCCESS\x20-\x20returning\x20enhanced\x20response'),_0x31f45a(_0x3e45e5,_0x256e16['method']);}catch(_0x5e5386){return console[_0x6571bb(0x170)](_0x3d69a0+_0x6571bb(0x21e),_0x5e5386),_0x57fbd2(_0x6571bb(0x1d0),_0x6571bb(0x1c4),_0x5e5386),null;}}async function _0x30514(_0x3eb517,_0x6b03f9){const _0x330aa5=_0x1e5c8c,_0x47226b=new URL(_0x6b03f9[_0x330aa5(0x1d1)]);console[_0x330aa5(0x1d5)](_0x3d69a0+'\x20fetchEnhancementDocument:\x20'+_0x47226b[_0x330aa5(0x12a)]+_0x47226b[_0x330aa5(0x1c0)]);if(!_0x3eb517[_0x330aa5(0x13a)])return console['log'](_0x3d69a0+_0x330aa5(0x1e1)),null;const _0xe2278=_0x4d5f6b(_0x3eb517,_0x47226b);console[_0x330aa5(0x1d5)](_0x3d69a0+_0x330aa5(0x1f0)+_0xe2278[_0x330aa5(0x152)]());const _0x16a2f0=new Headers(_0x6b03f9[_0x330aa5(0x1ba)]);_0x16a2f0[_0x330aa5(0x1b2)](_0x330aa5(0x14b),_0x330aa5(0x18c)),_0x16a2f0[_0x330aa5(0x14e)]('host'),_0x16a2f0['delete'](_0x330aa5(0x181));_0x3eb517[_0x330aa5(0x213)]&&_0x16a2f0['set'](_0x869b6b,_0x3eb517[_0x330aa5(0x213)]);const _0x944da5=new Request(_0xe2278['toString'](),{'method':'GET','headers':_0x16a2f0,'credentials':_0x330aa5(0x214),'redirect':_0x330aa5(0x1f6),'cache':_0x330aa5(0x169),'mode':_0x330aa5(0x203)});try{console[_0x330aa5(0x1d5)](_0x3d69a0+'\x20\x20\x20Fetching\x20enhancement\x20document...');const _0x4db547=await fetch(_0x944da5);console[_0x330aa5(0x1d5)](_0x3d69a0+_0x330aa5(0x153)+_0x4db547[_0x330aa5(0x1a4)]+'\x20'+_0x4db547[_0x330aa5(0x120)]+_0x330aa5(0x22a)+_0x4db547[_0x330aa5(0x123)]),console[_0x330aa5(0x1d5)](_0x3d69a0+_0x330aa5(0x1e5)+_0x4db547[_0x330aa5(0x1ba)][_0x330aa5(0x21d)](_0x330aa5(0x1dd)));if(_0x4db547[_0x330aa5(0x123)]==='opaque')return console[_0x330aa5(0x1d5)](_0x3d69a0+_0x330aa5(0x1c8)),_0x57fbd2(_0x330aa5(0x1d0),_0x330aa5(0x155),_0xe2278['toString']()),null;if(!_0x4db547['ok'])return console[_0x330aa5(0x1d5)](_0x3d69a0+_0x330aa5(0x11f)+_0x4db547[_0x330aa5(0x1a4)]+_0x330aa5(0x140)),_0x57fbd2('debug',_0x330aa5(0x12d)+_0x4db547[_0x330aa5(0x1a4)]+_0x330aa5(0x1c9)+_0xe2278['pathname']),null;if(!_0x79f0cb(_0x4db547))return console[_0x330aa5(0x1d5)](_0x3d69a0+_0x330aa5(0x173)),null;return console[_0x330aa5(0x1d5)](_0x3d69a0+_0x330aa5(0x179)),_0x31f45a(_0x4db547,_0x330aa5(0x19f));}catch(_0x2cccdd){return console['error'](_0x3d69a0+'\x20\x20\x20Document\x20fetch\x20error:',_0x2cccdd),_0x57fbd2('info',_0x330aa5(0x16f),_0x2cccdd),null;}}function _0x4d5f6b(_0x14c903,_0x3a1db9){const _0x1ac0fd=_0x1e5c8c;if(!_0x14c903[_0x1ac0fd(0x13a)])throw new Error(_0x1ac0fd(0x154));return _0x277923(_0x14c903[_0x1ac0fd(0x13a)],_0x3a1db9);}function _0x31f45a(_0x1da3e8,_0x431455){const _0xbd84b=_0x1e5c8c,_0x37c32a=_0x1da3e8['clone'](),_0x2ef888=new Headers(_0x37c32a[_0xbd84b(0x1ba)]);_0x2ef888[_0xbd84b(0x14e)](_0xbd84b(0x187)),_0x2ef888[_0xbd84b(0x14e)](_0xbd84b(0x216)),_0x2ef888[_0xbd84b(0x14e)](_0xbd84b(0x12e)),_0x2ef888[_0xbd84b(0x1b2)](_0xbd84b(0x1ae),_0xbd84b(0x16b)),_0xeeff9b(_0x2ef888);const _0x434bba=_0x431455==='HEAD'?null:_0x37c32a['body'];return new Response(_0x434bba,{'status':_0x37c32a[_0xbd84b(0x1a4)],'statusText':_0x37c32a['statusText'],'headers':_0x2ef888});}function _0x79f0cb(_0x541f7e){const _0x39d187=_0x1e5c8c,_0x4eb3d8=_0x541f7e['headers'][_0x39d187(0x21d)](_0x39d187(0x1dd));return _0x4eb3d8!=null&&_0x4eb3d8[_0x39d187(0x16e)](_0x39d187(0x13d));}function _0x1e1e04(_0x2ab9f6,_0x25a55e){const _0x378b26=_0x1e5c8c;return _0x5567cf(_0x25a55e,_0x2ab9f6[_0x378b26(0x228)]);}function _0x439581(_0x2835af,_0x13684d){const _0x29caa0=_0x1e5c8c;return _0x28c738(_0x13684d,_0x2835af[_0x29caa0(0x1a5)]);}function _0x5567cf(_0x5a6381,_0x69c8b3){const _0x270125=_0x1e5c8c;if(!_0x69c8b3)return![];if(_0x69c8b3['startsWith']('http://')||_0x69c8b3[_0x270125(0x1de)]('https://'))return _0x5a6381[_0x270125(0x1b1)]===_0x69c8b3;const _0x215af0=_0x41dfd8(_0x69c8b3);if(!_0x215af0)return![];const _0x6b4447=''+_0x5a6381[_0x270125(0x12a)]+_0x5a6381[_0x270125(0x1c0)];if(_0x6b4447===_0x215af0)return!![];if(_0x5a6381[_0x270125(0x1c0)]===_0x270125(0x129))return _0x5a6381[_0x270125(0x12a)]===_0x215af0;return![];}function _0x28c738(_0x3acf65,_0x3cb41c){const _0x589254=_0x1e5c8c;if(!_0x3cb41c)return![];if(_0x3cb41c[_0x589254(0x1de)]('http://')||_0x3cb41c[_0x589254(0x1de)](_0x589254(0x1df)))return _0x3acf65['href']===_0x3cb41c;const _0x9d27e7=_0x41dfd8(_0x3cb41c);if(!_0x9d27e7)return![];const _0x548bf1=''+_0x3acf65[_0x589254(0x12a)]+_0x3acf65[_0x589254(0x1c0)];return _0x548bf1===_0x9d27e7;}function _0x41dfd8(_0x98302c){const _0x922db2=_0x1e5c8c;if(!_0x98302c)return _0x98302c;if(_0x98302c[_0x922db2(0x1de)](_0x922db2(0x11d))||_0x98302c['startsWith']('https://'))return _0x98302c;const _0x1cb493=_0x98302c['replace'](/^\.\//,'');if(_0x1cb493[_0x922db2(0x1de)]('/'))return _0x1cb493;return'/'+_0x1cb493;}function _0xeeff9b(_0x198989){const _0x50bb69=_0x1e5c8c;_0x198989[_0x50bb69(0x14e)]('set-cookie'),_0x198989[_0x50bb69(0x14e)](_0x50bb69(0x149));}function _0x55989a(_0x3eca5f){const _0x5deaf5=_0x1e5c8c,_0x3789a2=[_0x5deaf5(0x1aa),_0x5deaf5(0x1ef),_0x5deaf5(0x13c),_0x5deaf5(0x208),_0x5deaf5(0x18f),'connect-src\x20*',_0x5deaf5(0x190),_0x5deaf5(0x1d9),_0x5deaf5(0x171)],_0x463da5=_0x3fb90d(_0x3eca5f);return _0x463da5&&_0x3789a2[_0x5deaf5(0x1cd)](_0x463da5),_0x3789a2['join'](';\x20');}function _0x330758(_0x3f4e22){const _0x302c5c=_0x1e5c8c;_0x3f4e22[_0x302c5c(0x14e)](_0x302c5c(0x21b)),_0x3f4e22[_0x302c5c(0x14e)](_0x302c5c(0x149));}function _0x3fb90d(_0x49edb2){const _0x3b3661=_0x1e5c8c;if(!_0x49edb2)return null;const _0x3e2d9b=_0x49edb2[_0x3b3661(0x1f1)](/frame-ancestors\s+([^;]+)/i);if(!_0x3e2d9b)return null;return _0x3b3661(0x1d7)+_0x3e2d9b[0x1][_0x3b3661(0x224)]();}function _0x29ba2c(_0x46f5d2,_0x38c0bb){const _0x4653b0=_0x1e5c8c;if(/<head[^>]*>/i[_0x4653b0(0x1e2)](_0x46f5d2)){const _0x3862f9=_0x46f5d2[_0x4653b0(0x1f1)](/<head[^>]*>/i);if(_0x3862f9){const _0x4ada10=_0x3862f9[0x0];return _0x46f5d2[_0x4653b0(0x177)](_0x4ada10,_0x4ada10+'\x0a'+_0x38c0bb);}}if(/<\/head>/i[_0x4653b0(0x1e2)](_0x46f5d2))return _0x46f5d2[_0x4653b0(0x177)](/<\/head>/i,_0x38c0bb+_0x4653b0(0x21c));if(/<body\b[^>]*>/i[_0x4653b0(0x1e2)](_0x46f5d2))return _0x46f5d2[_0x4653b0(0x177)](/<body\b[^>]*>/i,_0x4653b0(0x201)+_0x38c0bb);if(/<\/body>/i['test'](_0x46f5d2))return _0x46f5d2[_0x4653b0(0x177)](/<\/body>/i,_0x38c0bb+'\x0a</body>');return _0x38c0bb+'\x0a'+_0x46f5d2;}var _0x426502=[_0x1e5c8c(0x15d)],_0x4a4688=[_0x1e5c8c(0x1ec),_0x1e5c8c(0x147),_0x1e5c8c(0x223),'/__vite_ping',_0x1e5c8c(0x20a),_0x1e5c8c(0x168),_0x1e5c8c(0x20c),'/webpackhotmiddleware',_0x1e5c8c(0x18d),_0x1e5c8c(0x1ac),_0x1e5c8c(0x15b),'/parcel-hmr',_0x1e5c8c(0x1ed),_0x1e5c8c(0x1c6),_0x1e5c8c(0x1d6)];function _0x2b8bb7(_0x3013d3,_0x4cb072){const _0x26c83a=_0x527161(_0x3013d3);if(!_0x26c83a)return _0x4cb072;return _0x29ba2c(_0x4cb072,_0x26c83a);}function _0x527161(_0x1de0aa){const _0xa765be=_0x1e5c8c;if(!_0x1de0aa[_0xa765be(0x13a)])return null;const _0x36cab6=_0x1de0aa[_0xa765be(0x13a)][_0xa765be(0x152)](),_0x4457f0=_0x47f62(_0x426502),_0x1f4a3f=_0x47f62(_0x4a4688),_0x45d899=['<script\x20data-enhance-hmr-bridge>',_0xa765be(0x1e7),_0xa765be(0x1bd),_0xa765be(0x1d8)+JSON[_0xa765be(0x16a)](_0x36cab6)+');',_0xa765be(0x18a),'\x20\x20\x20\x20if\x20(!originalWebSocket\x20||\x20originalWebSocket.__enhancePatched)\x20{',_0xa765be(0x1a9),'\x20\x20\x20\x20}',_0xa765be(0x1ea)+JSON[_0xa765be(0x16a)](_0x4457f0)+');',_0xa765be(0x138)+JSON['stringify'](_0x1f4a3f)+';',_0xa765be(0x17f),_0xa765be(0x218),_0xa765be(0x229),_0xa765be(0x182),_0xa765be(0x1b7),'\x20\x20\x20\x20var\x20shouldProxy\x20=\x20function(url,\x20protocols)\x20{',_0xa765be(0x1cb),_0xa765be(0x1c2),_0xa765be(0x1b5),_0xa765be(0x156),_0xa765be(0x1db),_0xa765be(0x17b),_0xa765be(0x1db),_0xa765be(0x193),_0xa765be(0x1c1),_0xa765be(0x1d4),_0xa765be(0x1e0),_0xa765be(0x13b),'\x20\x20\x20\x20\x20\x20for\x20(var\x20i\x20=\x200;\x20i\x20<\x20protoList.length;\x20i++)\x20{',_0xa765be(0x175),'\x20\x20\x20\x20\x20\x20\x20\x20if\x20(typeof\x20proto\x20===\x20\x22string\x22\x20&&\x20knownProtocols.has(proto.toLowerCase()))\x20{',_0xa765be(0x142),'\x20\x20\x20\x20\x20\x20\x20\x20}',_0xa765be(0x1e0),_0xa765be(0x145),_0xa765be(0x1fd),_0xa765be(0x1f9),_0xa765be(0x142),'\x20\x20\x20\x20\x20\x20\x20\x20}',_0xa765be(0x1e0),_0xa765be(0x19e),'\x20\x20\x20\x20};',_0xa765be(0x1a0),'\x20\x20\x20\x20\x20\x20//\x20Always\x20use\x20enhancementBase\x20for\x20HMR\x20WebSocket\x20proxying',_0xa765be(0x12b),'\x20\x20\x20\x20\x20\x20proxied.search\x20=\x20targetUrl.search;',_0xa765be(0x1af),_0xa765be(0x21f),_0xa765be(0x1b7),_0xa765be(0x195),_0xa765be(0x1f5),_0xa765be(0x1b0),_0xa765be(0x20e),'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20rewritten\x20=\x20buildProxiedUrl(resolved);',_0xa765be(0x188),_0xa765be(0x225),_0xa765be(0x18e),_0xa765be(0x157),'\x20\x20\x20\x20\x20\x20}',_0xa765be(0x141),_0xa765be(0x1b7),_0xa765be(0x204),_0xa765be(0x19c),_0xa765be(0x205),_0xa765be(0x1b9),'\x20\x20\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket.prototype,\x20\x22constructor\x22,\x20{\x20value:\x20EnhancedWebSocket\x20});',_0xa765be(0x176),'\x20\x20\x20\x20\x20\x20//\x20ignore\x20if\x20unable\x20to\x20redefine',_0xa765be(0x178),_0xa765be(0x160),_0xa765be(0x1ad),'\x20\x20}\x20catch\x20(error)\x20{','\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20unavailable\x22,\x20error);','\x20\x20}','})();','</script>'];return _0x45d899[_0xa765be(0x139)]('\x0a');}function _0x47f62(_0x3fc5c4){const _0x58dfc8=_0x1e5c8c,_0x31e17=new Set(),_0x300e20=[];for(const _0x5a9436 of _0x3fc5c4){const _0x31d66f=_0x5a9436[_0x58dfc8(0x192)]();if(_0x31e17['has'](_0x31d66f))continue;_0x31e17[_0x58dfc8(0x207)](_0x31d66f),_0x300e20[_0x58dfc8(0x1cd)](_0x31d66f);}return _0x300e20;}var _0x1981af=_0x1e5c8c(0x1ff);function _0x294b15(_0x8fe948,_0x169f6b){const _0x584096=_0x1e5c8c;console[_0x584096(0x1d5)](_0x1981af+'\x20injectRuntimeBootstrap()\x20called'),console[_0x584096(0x1d5)](_0x1981af+'\x20\x20\x20runtimeScriptPath:\x20'+_0x8fe948[_0x584096(0x1a5)]),console['log'](_0x1981af+_0x584096(0x1bc)+_0x8fe948['overlayPath']);if(_0x169f6b[_0x584096(0x16e)](_0x584096(0x184)))return console[_0x584096(0x1d5)](_0x1981af+_0x584096(0x1b3)),_0x169f6b;const _0x485cb2=_0x331bf3(_0x8fe948);if(!_0x485cb2)return console[_0x584096(0x1d5)](_0x1981af+_0x584096(0x19d)),_0x169f6b;console['log'](_0x1981af+'\x20\x20\x20No\x20existing\x20bootstrap\x20-\x20injecting\x20new\x20one\x20('+_0x485cb2['length']+_0x584096(0x1eb));const _0x14148e=_0x29ba2c(_0x169f6b,_0x485cb2);return console['log'](_0x1981af+_0x584096(0x172)),_0x14148e;}function _0x331bf3(_0x9797d5){const _0x34f455=_0x1e5c8c,_0x553428=_0x9797d5[_0x34f455(0x1a5)];if(!_0x553428)return console[_0x34f455(0x1d5)](_0x1981af+_0x34f455(0x186)),null;const _0x22208c=_0x552fe4(_0x9797d5);console[_0x34f455(0x1d5)](_0x1981af+_0x34f455(0x185),JSON['stringify'](_0x22208c,null,0x2));const _0x18acc7=_0x47fe6a(_0x22208c),_0x2bd64b=JSON[_0x34f455(0x16a)](_0x553428),_0x5ae83e=[_0x34f455(0x127),'(async\x20()\x20=>\x20{','\x20\x20try\x20{',_0x34f455(0x227)+_0x2bd64b+';',_0x34f455(0x1f4),'\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20path:\x22,\x20runtimePath);','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Current\x20URL:\x22,\x20window.location.href);','\x20\x20\x20\x20const\x20runtimeModule\x20=\x20await\x20import(runtimePath);','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20module\x20loaded:\x22,\x20Object.keys(runtimeModule));','\x20\x20\x20\x20const\x20Enhance\x20=\x20runtimeModule?.Enhance\x20??\x20runtimeModule?.default?.Enhance\x20??\x20runtimeModule?.default;',_0x34f455(0x11c),'\x20\x20\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20No\x20Enhance.init\x20export\x20found!\x22);',_0x34f455(0x1a9),_0x34f455(0x178),_0x34f455(0x1e3)+_0x18acc7+_0x34f455(0x19b),_0x34f455(0x13e)+_0x18acc7+');',_0x34f455(0x16d),'\x20\x20\x20\x20if\x20(typeof\x20window\x20!==\x20\x22undefined\x22)\x20{',_0x34f455(0x202),'\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Controller\x20attached\x20to\x20window.enhancePreview\x22);',_0x34f455(0x1e6),'\x20\x20\x20\x20\x20\x20window.__enhanceInitialized\x20=\x20true;','\x20\x20\x20\x20\x20\x20window.__enhanceController\x20=\x20controller;',_0x34f455(0x1a2),'\x20\x20\x20\x20}',_0x34f455(0x128),_0x34f455(0x194),_0x34f455(0x200),_0x34f455(0x180),'})();',_0x34f455(0x125)];return _0x5ae83e[_0x34f455(0x139)]('\x0a');}function _0x552fe4(_0x261ea4){const _0x36b3af=_0x1e5c8c,_0x559526={'publishableKey':_0x261ea4[_0x36b3af(0x213)],'callbackBypass':_0x261ea4[_0x36b3af(0x211)],'__development':{'enableOverlayHmr':_0x261ea4[_0x36b3af(0x17c)],'overlayPath':_0x261ea4[_0x36b3af(0x228)],'security':_0x261ea4[_0x36b3af(0x21a)],'backendUrl':_0x261ea4[_0x36b3af(0x130)]}};return _0x559526;}function _0x47fe6a(_0x5bf3b1){const _0x102045=_0x1e5c8c;return JSON['stringify'](_0x5bf3b1)['replace'](/</g,_0x102045(0x17a))[_0x102045(0x177)](/>/g,'\x5cu003e');}function _0x461d09(_0x5445f3,_0x163e1b){const _0x1cdd3d=_0x1e5c8c,_0x329b0a=_0x2ac3c3=>_0x24e9bd(_0x5445f3,_0x2ac3c3),_0x56f808=_0x58db97=>_0x3bf3fd(_0x5445f3,_0x58db97);return _0x163e1b['replace'](/<script\b[^>]*>/gi,_0x329b0a)[_0x1cdd3d(0x177)](/<link\b[^>]*>/gi,_0x56f808);}function _0x3bae03(_0x1aa842){const _0x178236=_0x1e5c8c;return _0x1aa842[_0x178236(0x177)](/\s+integrity\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,'');}function _0x24e9bd(_0x17302a,_0x2378e8){const _0x14b5ec=_0x1e5c8c,_0x552390=_0x3d4a2e(_0x2378e8,'src');if(!_0x552390)return _0x2378e8;const _0x5ba756=_0x21c147(_0x17302a,_0x552390['value']);if(!_0x5ba756||_0x5ba756===_0x552390[_0x14b5ec(0x1f8)])return _0x2378e8;const _0x22287a=_0x552390[_0x14b5ec(0x14f)]['replace'](_0x552390[_0x14b5ec(0x1f8)],_0x5ba756);return _0x2378e8[_0x14b5ec(0x177)](_0x552390[_0x14b5ec(0x14f)],_0x22287a);}function _0x3bf3fd(_0x3a46f5,_0x7ac7a0){const _0x196ca1=_0x1e5c8c,_0x4a4b0c=_0x7ac7a0[_0x196ca1(0x1f1)](/\brel\s*=\s*(['"])([^"']+)\1/i);if(!_0x4a4b0c)return _0x7ac7a0;const _0x7236b3=_0x4a4b0c[0x2][_0x196ca1(0x192)]();if(_0x7236b3!==_0x196ca1(0x1cf)&&_0x7236b3!==_0x196ca1(0x1f7))return _0x7ac7a0;const _0xf8e7d8=_0x3d4a2e(_0x7ac7a0,_0x196ca1(0x1b1));if(!_0xf8e7d8)return _0x7ac7a0;const _0xde204d=_0x21c147(_0x3a46f5,_0xf8e7d8['value']);if(!_0xde204d||_0xde204d===_0xf8e7d8[_0x196ca1(0x1f8)])return _0x7ac7a0;const _0x16d5f3=_0xf8e7d8[_0x196ca1(0x14f)][_0x196ca1(0x177)](_0xf8e7d8[_0x196ca1(0x1f8)],_0xde204d);return _0x7ac7a0[_0x196ca1(0x177)](_0xf8e7d8['full'],_0x16d5f3);}function _0x3d4a2e(_0x332dc7,_0xeb8e6){const _0x2368f9=_0x1e5c8c,_0x3bfd70=new RegExp(_0xeb8e6+_0x2368f9(0x1d3),'i'),_0x109696=_0x332dc7['match'](_0x3bfd70);if(!_0x109696)return null;return{'full':_0x109696[0x0],'value':_0x109696[0x2]};}function _0x21c147(_0x46fb0e,_0x5561fe){const _0x73b426=_0x1e5c8c,_0x3f1449=_0x4fa091(_0x5561fe);if(!_0x3f1449)return null;if(_0x3f1449[_0x73b426(0x132)]===self[_0x73b426(0x1e8)]['origin'])return''+_0x3f1449[_0x73b426(0x12a)]+_0x3f1449[_0x73b426(0x1c0)];return null;}function _0x4fa091(_0x48eb93){const _0x19e51f=_0x1e5c8c;try{return new URL(_0x48eb93,self['location'][_0x19e51f(0x132)]);}catch{return null;}}var _0x3f91be='[Enhance\x20SW\x20Document]';async function _0x258049(_0x1a0cca,_0x38259d,_0x13a16e,_0x3582dd=!![]){const _0x5f3d21=_0x1e5c8c;console[_0x5f3d21(0x1d5)](_0x3f91be+_0x5f3d21(0x1b6)),console[_0x5f3d21(0x1d5)](_0x3f91be+'\x20\x20\x20source:\x20'+_0x13a16e),console[_0x5f3d21(0x1d5)](_0x3f91be+_0x5f3d21(0x20b)+_0x3582dd),console[_0x5f3d21(0x1d5)](_0x3f91be+'\x20\x20\x20securityMode:\x20'+_0x1a0cca[_0x5f3d21(0x21a)]);const _0x499e8b=_0x38259d[_0x5f3d21(0x1f3)](),_0xb8e66e=await _0x499e8b[_0x5f3d21(0x14c)]();console[_0x5f3d21(0x1d5)](_0x3f91be+_0x5f3d21(0x150)+_0xb8e66e[_0x5f3d21(0x19a)]+_0x5f3d21(0x1bf)),console[_0x5f3d21(0x1d5)](_0x3f91be+_0x5f3d21(0x174));const _0x4a8094=_0x3bae03(_0xb8e66e);console[_0x5f3d21(0x1d5)](_0x3f91be+_0x5f3d21(0x13f));let _0x21f964=_0x461d09(_0x1a0cca,_0x4a8094);_0x13a16e==='enhancement'?(console[_0x5f3d21(0x1d5)](_0x3f91be+_0x5f3d21(0x1fa)),_0x21f964=_0x2b8bb7(_0x1a0cca,_0x21f964)):console[_0x5f3d21(0x1d5)](_0x3f91be+_0x5f3d21(0x122));_0x3582dd?(console[_0x5f3d21(0x1d5)](_0x3f91be+_0x5f3d21(0x14a)),_0x21f964=_0x294b15(_0x1a0cca,_0x21f964)):console[_0x5f3d21(0x1d5)](_0x3f91be+_0x5f3d21(0x1bb));console['log'](_0x3f91be+_0x5f3d21(0x1fc)+_0x21f964[_0x5f3d21(0x19a)]+'\x20chars');const _0x3a1622=new Headers(_0x499e8b['headers']);_0x3a1622[_0x5f3d21(0x1b2)](_0x5f3d21(0x1f2),_0x5f3d21(0x217)),_0x3a1622['set']('x-enhance-document',_0x5f3d21(0x196)),_0x3a1622[_0x5f3d21(0x1b2)](_0x5f3d21(0x151),_0x13a16e),_0x330758(_0x3a1622);if(_0x1a0cca['securityMode']!==_0x5f3d21(0x15c)){console[_0x5f3d21(0x1d5)](_0x3f91be+_0x5f3d21(0x12f));const _0x58721b=_0x3a1622['get'](_0x5f3d21(0x183));_0x3a1622[_0x5f3d21(0x1b2)](_0x5f3d21(0x183),_0x55989a(_0x58721b)),_0x3a1622[_0x5f3d21(0x14e)](_0x5f3d21(0x14d)),_0x3a1622[_0x5f3d21(0x14e)]('cross-origin-embedder-policy'),_0x3a1622['delete'](_0x5f3d21(0x197));}else console[_0x5f3d21(0x1d5)](_0x3f91be+_0x5f3d21(0x219));return console[_0x5f3d21(0x1d5)](_0x3f91be+_0x5f3d21(0x16c)),new Response(_0x21f964,{'status':_0x499e8b[_0x5f3d21(0x1a4)],'statusText':_0x499e8b['statusText'],'headers':_0x3a1622});}var _0x362cdd=_0x1e5c8c(0x1be);console['log'](_0x362cdd+_0x1e5c8c(0x134));var _0x5a4d11={'overlayPath':_0x1e5c8c(0x209),'backendUrl':_0x1e5c8c(0x1e9),'overlayEnableViteHmr':![],'runtimeScriptPath':'/assets/enhance-runtime.js','swPath':_0x1e5c8c(0x17e)},_0xad44cb={'publishableKey':'','callbackBypass':[_0x1e5c8c(0x226)],'securityMode':_0x1e5c8c(0x191),'enhancementUrl':null,'enhancementBase':null};function _0x1246b4(){const _0xb28390=_0x1e5c8c;return{..._0x5a4d11,'publishableKey':_0xad44cb[_0xb28390(0x213)],'enhancementUrl':_0xad44cb[_0xb28390(0x1c5)]??'','enhancementBase':_0xad44cb[_0xb28390(0x13a)],'callbackBypass':_0xad44cb[_0xb28390(0x211)],'callbackBypassNormalized':_0xad44cb[_0xb28390(0x211)][_0xb28390(0x144)](_0x19a4cd=>_0x19a4cd[_0xb28390(0x1de)]('/')?_0x19a4cd:'/'+_0x19a4cd),'securityMode':_0xad44cb[_0xb28390(0x21a)]};}function _0x57fbd2(_0x376855,_0x3faee1,..._0x1a9f0d){const _0x435cc0=_0x1e5c8c;_0x376855===_0x435cc0(0x1d0)?console['info'](_0x362cdd,_0x3faee1,..._0x1a9f0d):console[_0x435cc0(0x1d2)](_0x362cdd,_0x3faee1,..._0x1a9f0d);}self[_0x1e5c8c(0x1c7)](_0x1e5c8c(0x167),_0x32b9a6=>{const _0x10ee64=_0x1e5c8c;console[_0x10ee64(0x1d5)](_0x362cdd+_0x10ee64(0x121)),_0x32b9a6['waitUntil'](self['skipWaiting']());}),self[_0x1e5c8c(0x1c7)]('activate',_0x461cd4=>{const _0x1e63a0=_0x1e5c8c;console[_0x1e63a0(0x1d5)](_0x362cdd+_0x1e63a0(0x163)),_0x461cd4['waitUntil'](self['clients']['claim']());}),self[_0x1e5c8c(0x1c7)]('message',_0x58ff64=>{const _0x167b3a=_0x1e5c8c,_0x58116e=_0x58ff64[_0x167b3a(0x1dc)];if(!_0x58116e||typeof _0x58116e!==_0x167b3a(0x22b))return;switch(_0x58116e[_0x167b3a(0x123)]){case _0x52ee4d:{console[_0x167b3a(0x1d5)](_0x362cdd+_0x167b3a(0x161));const _0x2df4b8=_0x58116e[_0x167b3a(0x11b)];_0xad44cb[_0x167b3a(0x213)]=_0x2df4b8[_0x167b3a(0x213)]??'',_0xad44cb[_0x167b3a(0x211)]=_0x2df4b8['callbackBypass']??[_0x167b3a(0x226)],_0xad44cb[_0x167b3a(0x21a)]=_0x2df4b8[_0x167b3a(0x21a)]??_0x167b3a(0x191);if(_0x2df4b8[_0x167b3a(0x1c5)]){_0xad44cb[_0x167b3a(0x1c5)]=_0x2df4b8[_0x167b3a(0x1c5)];try{_0xad44cb[_0x167b3a(0x13a)]=new URL(_0x2df4b8[_0x167b3a(0x1c5)]);}catch{console[_0x167b3a(0x170)](_0x362cdd+_0x167b3a(0x137)+_0x2df4b8['enhancementUrl']),_0xad44cb['enhancementBase']=null;}}else _0xad44cb[_0x167b3a(0x1c5)]=null,_0xad44cb['enhancementBase']=null;console[_0x167b3a(0x1d5)](_0x362cdd+'\x20Config\x20updated:',{'publishableKey':_0xad44cb[_0x167b3a(0x213)]?_0x167b3a(0x146):_0x167b3a(0x1a6),'enhancementUrl':_0xad44cb[_0x167b3a(0x1c5)]??'none'});break;}case _0x5ace81:console['log'](_0x362cdd+'\x20DISABLE\x20received\x20-\x20resetting\x20config'),_0xad44cb={'publishableKey':'','callbackBypass':['/auth/callback'],'securityMode':'permissive','enhancementUrl':null,'enhancementBase':null};break;}}),self[_0x1e5c8c(0x1c7)]('fetch',_0x36d495=>{const _0x92f767=_0x1e5c8c,_0x2064d9=new URL(_0x36d495[_0x92f767(0x164)][_0x92f767(0x1d1)]);if(_0x2064d9[_0x92f767(0x132)]!==self[_0x92f767(0x1e8)][_0x92f767(0x132)])return;_0x36d495['respondWith'](_0x515ad8(_0x36d495));});async function _0x515ad8(_0x4d1c64){const _0x3ec1b2=_0x1e5c8c,{request:_0x5da157}=_0x4d1c64,_0x479260=new URL(_0x5da157[_0x3ec1b2(0x1d1)]),_0x55d22c=_0x5da157[_0x3ec1b2(0x11e)]===_0x3ec1b2(0x18b);console['log'](_0x362cdd+_0x3ec1b2(0x206)+_0x5da157['method']+'\x20'+_0x479260[_0x3ec1b2(0x12a)]+_0x479260[_0x3ec1b2(0x1c0)]+'\x20('+_0x5da157[_0x3ec1b2(0x11e)]+')');if(!_0x14250e(_0x5da157))return fetch(_0x5da157);const _0x14f9b2=_0x1246b4();console[_0x3ec1b2(0x1d5)](_0x362cdd+_0x3ec1b2(0x1b8)+(_0x14f9b2['enhancementUrl']||'none'));if(_0x2c6607(_0x14f9b2,_0x479260[_0x3ec1b2(0x12a)]))return console[_0x3ec1b2(0x1d5)](_0x362cdd+_0x3ec1b2(0x189)+_0x479260[_0x3ec1b2(0x12a)]),fetch(_0x5da157);if(_0x55d22c)return _0x2307a6(_0x5da157,_0x14f9b2);if(!_0x2ea32e(_0x14f9b2,_0x5da157,_0x479260))return fetch(_0x5da157);const _0x4900db=await _0x108cd2(_0x14f9b2,_0x5da157,_0x479260);if(_0x4900db)return console['log'](_0x362cdd+_0x3ec1b2(0x1ee)+_0x479260[_0x3ec1b2(0x12a)]),_0x4900db;return console['log'](_0x362cdd+'\x20\x20\x20Enhancement\x20MISS:\x20'+_0x479260['pathname']),fetch(_0x5da157);}async function _0x2307a6(_0x305a03,_0x398b12){const _0x5f40b2=_0x1e5c8c,_0x1f3fd6=new URL(_0x305a03[_0x5f40b2(0x1d1)]);console['log'](_0x362cdd+'\x20Navigation:\x20'+_0x1f3fd6[_0x5f40b2(0x12a)]+_0x1f3fd6[_0x5f40b2(0x1c0)]);const _0x1fac74=await fetch(_0x305a03);if(!_0x79f0cb(_0x1fac74))return _0x1fac74;const _0x18c281=_0x31f45a(_0x1fac74,_0x5f40b2(0x19f)),_0x479277=await _0x30514(_0x398b12,_0x305a03),_0x4072de=_0x479277?_0x5f40b2(0x148):_0x5f40b2(0x199),_0x53b9a1=_0x479277??_0x18c281,_0x2fe6e6=_0x4072de===_0x5f40b2(0x148)||_0x1f3fd6['searchParams'][_0x5f40b2(0x20f)]('overlay')||_0x1f3fd6[_0x5f40b2(0x1cc)][_0x5f40b2(0x20f)](_0x5f40b2(0x148));try{return await _0x258049(_0x398b12,_0x53b9a1,_0x4072de,_0x2fe6e6);}catch(_0x157b8a){return console[_0x5f40b2(0x170)](_0x362cdd+_0x5f40b2(0x20d),_0x157b8a),_0x53b9a1;}}return _0x3b66c5(_0x14e69b);})());function _0x48a2(){const _0x23a559=['\x20\x20\x20\x20\x20\x20for\x20(var\x20j\x20=\x200;\x20j\x20<\x20knownPathHints.length;\x20j++)\x20{','sharedworker','[Enhance\x20SW\x20Bootstrap]','\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20Failed\x20to\x20bootstrap\x20runtime:\x22,\x20error);','$&\x0a','\x20\x20\x20\x20\x20\x20window.enhancePreview\x20=\x20controller;','cors','\x20\x20\x20\x20Object.assign(EnhancedWebSocket,\x20originalWebSocket);','\x20\x20\x20\x20Object.setPrototypeOf(EnhancedWebSocket,\x20originalWebSocket);','\x20FETCH:\x20','add','img-src\x20*\x20data:\x20blob:','https://assets-dev.enhancelabs.ai/overlay.js','/sockjs-node','\x20\x20\x20shouldInjectOverlay:\x20','/webpack-hmr','\x20Document\x20rewrite\x20failed:','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(shouldProxy(resolved,\x20protocols))\x20{','has','\x20is\x20overlay\x20asset\x20-\x20not\x20routing','callbackBypass','enhance:disable','publishableKey','include','__esModule','access-control-allow-credentials','no-store','\x20\x20\x20\x20var\x20toArray\x20=\x20function(value)\x20{','\x20\x20\x20Custom\x20security\x20mode\x20-\x20preserving\x20original\x20CSP','securityMode','set-cookie','\x0a</head>','get','\x20\x20\x20Fetch\x20error:','\x20\x20\x20\x20\x20\x20return\x20proxied;','\x20\x20\x20Fetching\x20from\x20enhancement...','prototype','15471110ZIeaxw','/vite/client','trim','\x20\x20\x20\x20\x20\x20\x20\x20}','/auth/callback','\x20\x20\x20\x20const\x20runtimePath\x20=\x20','overlayPath','\x20\x20\x20\x20\x20\x20if\x20(!value)\x20return\x20[];',',\x20type:\x20','object','\x20is\x20runtime\x20asset\x20-\x20not\x20routing','2xjYtTf','config','\x20\x20\x20\x20if\x20(!Enhance\x20||\x20typeof\x20Enhance.init\x20!==\x20\x22function\x22)\x20{','http://','mode','\x20\x20\x20Not\x20OK\x20(','statusText','\x20INSTALL','\x20\x20\x20Skipping\x20HMR\x20bridge\x20(production\x20source)','type','\x20shouldRouteAsset:\x20','</script>','script','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Bootstrap\x20complete\x22);','?import','pathname','\x20\x20\x20\x20\x20\x20var\x20proxied\x20=\x20new\x20URL(enhancementBase);','style','Enhancement\x20document\x20miss\x20','access-control-expose-headers','\x20\x20\x20Applying\x20permissive\x20CSP...','backendUrl','5455816SjQkPJ','origin','method','\x20Service\x20Worker\x20loaded','enumerable','opaque','\x20Invalid\x20enhancement\x20URL:\x20','\x20\x20\x20\x20var\x20knownPathHints\x20=\x20','join','enhancementBase','\x20\x20\x20\x20\x20\x20var\x20protoList\x20=\x20toArray(protocols);','style-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20blob:\x20data:\x20https:\x20http:','text/html','\x20\x20\x20\x20const\x20controller\x20=\x20Enhance.init(','\x20\x20\x20Rewriting\x20entry\x20references...',')\x20-\x20returning\x20null','\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(url,\x20protocols);','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;','endsWith','map','\x20\x20\x20\x20\x20\x20var\x20loweredPath\x20=\x20pathname.toLowerCase();','[set]','/__vite/client','enhancement','set-cookie2','\x20\x20\x20Injecting\x20runtime\x20bootstrap...','x-enhance-routing','text','cross-origin-opener-policy','delete','full','\x20\x20\x20Original\x20HTML\x20length:\x20','x-enhance-document-source','toString','\x20\x20\x20Response:\x20','Cannot\x20build\x20enhancement\x20URL\x20without\x20enhancementBase\x20configured','Enhancement\x20document\x20CORS\x20blocked','\x20\x20\x20\x20\x20\x20var\x20isAppHost\x20=\x20url.host\x20===\x20window.location.host;','\x20\x20\x20\x20\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20fallback\x22,\x20error);','some','4105688FDtGWB','callbackBypassNormalized','/_next/webpack-hmr','custom','vite-hmr','1449477DOGfbT','Enhancement\x20miss\x20','\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket,\x20\x22__enhancePatched\x22,\x20{\x20value:\x20true\x20});','\x20CONFIG\x20received','4116534VcNBkL','\x20ACTIVATE','request','font','7sktqnh','install','/webpack-dev-server','default','stringify','hit','\x20\x20\x20Document\x20rewrite\x20complete','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Enhance\x20controller\x20created:\x22,\x20controller);','includes','Enhancement\x20document\x20fetch\x20failed','error','object-src\x20\x27none\x27','\x20\x20\x20Script\x20inserted\x20into\x20document','\x20\x20\x20Not\x20HTML\x20response\x20-\x20returning\x20null','\x20\x20\x20Stripping\x20SRI\x20attributes...','\x20\x20\x20\x20\x20\x20\x20\x20var\x20proto\x20=\x20protoList[i];','\x20\x20\x20\x20}\x20catch\x20(error)\x20{','replace','\x20\x20\x20\x20}','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhancement\x20document','\x5cu003c','\x20\x20\x20\x20\x20\x20if\x20(!isExternalHost\x20&&\x20!isAppHost)\x20return\x20false;','overlayEnableViteHmr','getOwnPropertyNames','/sw-enhance.js','\x20\x20\x20\x20var\x20basePrefix\x20=\x20\x22/__sbx__\x22;','\x20\x20}','content-length','\x20\x20\x20\x20\x20\x20return\x20Array.isArray(value)\x20?\x20value\x20:\x20[value];','content-security-policy','data-enhance-runtime-bootstrap','\x20Bootstrap\x20options:','\x20buildRuntimeBootstrapScript:\x20no\x20runtimePath\x20-\x20returning\x20null','access-control-allow-origin','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(rewritten.toString(),\x20protocols);','\x20\x20\x20BYPASS:\x20','\x20\x20\x20\x20var\x20originalWebSocket\x20=\x20window.WebSocket;','navigate','enhancement-document','/webpack-hot-middleware','\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{','font-src\x20*\x20data:','media-src\x20*\x20data:\x20blob:','permissive','toLowerCase','\x20\x20\x20\x20\x20\x20var\x20pathname\x20=\x20url.pathname\x20||\x20\x22/\x22;','\x20\x20}\x20catch\x20(error)\x20{','\x20\x20\x20\x20var\x20EnhancedWebSocket\x20=\x20function(url,\x20protocols)\x20{','rewritten','cross-origin-resource-policy','\x20fetchFromEnhancement:\x20','production','length',',\x20null,\x202));','\x20\x20\x20\x20EnhancedWebSocket.prototype\x20=\x20originalWebSocket.prototype;','\x20\x20\x20No\x20script\x20generated\x20(missing\x20runtimePath)\x20-\x20returning\x20html\x20unchanged','\x20\x20\x20\x20\x20\x20return\x20false;','GET','\x20\x20\x20\x20var\x20buildProxiedUrl\x20=\x20function(targetUrl)\x20{','redirect','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Set\x20window.__enhanceInitialized\x20=\x20true\x22);','destination','status','runtimeScriptPath','[not\x20set]','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20skipping','848286WvzvCT','\x20\x20\x20\x20\x20\x20return;','default-src\x20\x27self\x27\x20blob:\x20data:','getOwnPropertyDescriptor','/__webpack_hmr','\x20\x20\x20\x20window.WebSocket\x20=\x20EnhancedWebSocket;','x-enhance-enhancement','\x20\x20\x20\x20\x20\x20proxied.hash\x20=\x20\x22\x22;','\x20\x20\x20\x20\x20\x20\x20\x20var\x20resolved\x20=\x20url\x20instanceof\x20URL\x20?\x20url\x20:\x20new\x20URL(String(url),\x20window.location.href);','href','set','\x20\x20\x20Existing\x20bootstrap\x20found\x20-\x20keeping\x20it','HEAD','\x20\x20\x20\x20\x20\x20var\x20isExternalHost\x20=\x20externalHosts.includes(url.host);','\x20rewriteDocument()\x20called','\x20\x20\x20\x20};','\x20\x20\x20enhancementUrl:\x20','\x20\x20\x20\x20try\x20{','headers','\x20\x20\x20Skipping\x20runtime\x20bootstrap\x20injection','\x20\x20\x20overlayPath:\x20','\x20\x20try\x20{','[Enhance\x20SW]','\x20chars','search','\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\x20var\x20externalHosts\x20=\x20[\x22app.enhance.localhost:4450\x22,\x20\x22localhost:5173\x22];','slice','Enhancement\x20fetch\x20failed','enhancementUrl','/__snowpack__','addEventListener','\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)','\x20for\x20','function','\x20\x20\x20\x20\x20\x20//\x20Allow\x20proxying\x20for\x20specific\x20external\x20hosts','searchParams','push','hash','stylesheet','info','url','debug','\x5cs*=\x5cs*([\x27\x22])([^\x22\x27]+)\x5c1','\x20\x20\x20\x20\x20\x20\x20\x20return\x20false;','log','/snowpack/hmr','frame-ancestors\x20','\x20\x20\x20\x20var\x20enhancementBase\x20=\x20new\x20URL(','worker-src\x20\x27self\x27\x20blob:','5HKNkYo','\x20\x20\x20\x20\x20\x20','data','content-type','startsWith','https://','\x20\x20\x20\x20\x20\x20}','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20returning\x20null','test','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Calling\x20Enhance.init()\x20with\x20options:\x22,\x20JSON.stringify(','11265741criFJd','\x20\x20\x20Content-Type:\x20','\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','(function(){','location','https://enhance-api-dev.enhancelabs.workers.dev','\x20\x20\x20\x20var\x20knownProtocols\x20=\x20new\x20Set(','\x20chars)','/@vite/client','/__parcel_hmr','\x20\x20\x20Enhancement\x20HIT:\x20','script-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20\x27unsafe-eval\x27\x20blob:\x20data:\x20https:\x20http:','\x20\x20\x20Enhancement\x20document\x20URL:\x20','match','cache-control','clone','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Starting\x20runtime\x20bootstrap...\x22);','\x20\x20\x20\x20\x20\x20try\x20{','follow','modulepreload','value','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(loweredPath.indexOf(knownPathHints[j])\x20!==\x20-1)\x20{','\x20\x20\x20Injecting\x20HMR\x20bridge\x20(enhancement\x20source)...','hasOwnProperty','\x20\x20\x20Rewritten\x20HTML\x20length:\x20'];_0x48a2=function(){return _0x23a559;};return _0x48a2();}
|
|
1
|
+
'use strict';(function(_0x8f7935,_0x190aab){const _0x4e5d3e=_0x2e89,_0x2a432c=_0x8f7935();while(!![]){try{const _0x15d221=parseInt(_0x4e5d3e(0x1e9))/0x1*(parseInt(_0x4e5d3e(0x1e8))/0x2)+parseInt(_0x4e5d3e(0x176))/0x3+parseInt(_0x4e5d3e(0xda))/0x4*(parseInt(_0x4e5d3e(0x171))/0x5)+-parseInt(_0x4e5d3e(0x179))/0x6+-parseInt(_0x4e5d3e(0x125))/0x7+-parseInt(_0x4e5d3e(0x155))/0x8+-parseInt(_0x4e5d3e(0x1c7))/0x9*(-parseInt(_0x4e5d3e(0x192))/0xa);if(_0x15d221===_0x190aab)break;else _0x2a432c['push'](_0x2a432c['shift']());}catch(_0x3f94c1){_0x2a432c['push'](_0x2a432c['shift']());}}}(_0xa7af,0x9b953));function _0x2e89(_0xea6b3f,_0x16d7ea){_0xea6b3f=_0xea6b3f-0xd8;const _0xa7afc5=_0xa7af();let _0x2e89e1=_0xa7afc5[_0xea6b3f];return _0x2e89e1;}function _0xa7af(){const _0x25e290=['href','navigate','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Current\x20URL:\x22,\x20window.location.href);','\x20\x20\x20\x20var\x20enhancementBase\x20=\x20new\x20URL(','match','\x20CONFIG\x20message\x20-\x20updating\x20customer\x20config','\x20\x20\x20BYPASS:\x20','clear','trim','</script>','skipWaiting','hash','/_next/webpack-hmr','\x20buildRuntimeBootstrapScript:\x20no\x20runtimePath\x20-\x20returning\x20null','\x20is\x20overlay\x20asset\x20-\x20not\x20routing','push','\x20\x20\x20\x20\x20\x20//\x20Allow\x20proxying\x20for\x20specific\x20external\x20hosts','/@vite/client','destination','1604385wDLoih','statusText','cross-origin-resource-policy','\x20Invalid\x20message\x20data\x20-\x20ignoring','search','2018436YlTOPr','get','\x20\x20\x20Enhancement\x20URL:\x20','4789686sXjCph','\x20\x20\x20Fetching\x20production\x20response...','/__webpack_hmr','value','includes','\x20\x20\x20\x20\x20\x20proxied.hash\x20=\x20\x22\x22;','[Enhance\x20SW\x20Routing]','call','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Bootstrap\x20complete\x22);','\x20\x20\x20Rewriting\x20entry\x20references...','\x20Bootstrap\x20options:','[Enhance\x20SW\x20Bootstrap]','https://','\x20\x20\x20Skipping\x20runtime\x20bootstrap\x20injection','/sockjs-node','\x20\x20\x20mode:\x20','pathname','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20rewritten\x20=\x20buildProxiedUrl(resolved);','location','src','\x20\x20\x20\x20\x20\x20proxied.search\x20=\x20targetUrl.search;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;','startsWith','\x20\x20\x20\x20\x20\x20\x20\x20var\x20resolved\x20=\x20url\x20instanceof\x20URL\x20?\x20url\x20:\x20new\x20URL(String(url),\x20window.location.href);','\x20\x20\x20\x20}\x20catch\x20(error)\x20{','359110ygJyGk','\x20\x20\x20enhancementUrl\x20in\x20config:\x20','\x20\x20\x20\x20var\x20toArray\x20=\x20function(value)\x20{','\x20\x20\x20Fetch\x20error:','\x20\x20\x20\x20\x20\x20var\x20externalHosts\x20=\x20[\x22app.enhance.localhost:4450\x22,\x20\x22localhost:5173\x22];','\x20chars)','publishableKey','enhance:disable','object-src\x20\x27none\x27','\x20\x20\x20\x20\x20\x20try\x20{','has','modulepreload','object','\x20\x20\x20Response:\x20','/sw-enhance.js','\x20handleNavigationRequest:\x20','none','\x20\x20\x20\x20\x20\x20for\x20(var\x20j\x20=\x200;\x20j\x20<\x20knownPathHints.length;\x20j++)\x20{','\x20\x20\x20\x20}','\x20\x20\x20Not\x20HTML\x20-\x20returning\x20production\x20response\x20as-is','\x20\x20\x20Not\x20OK\x20(','\x20\x20\x20Skipping\x20HMR\x20bridge\x20(production\x20source)','headers','function','toString','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Enhance\x20controller\x20created:\x22,\x20controller);','connect-src\x20*','Failed\x20to\x20rewrite\x20document','/webpack-dev-server','overlay','\x20\x20\x20\x20\x20\x20var\x20isAppHost\x20=\x20url.host\x20===\x20window.location.host;','\x20\x20\x20\x20\x20\x20window.__enhanceInitialized\x20=\x20true;','[Enhance\x20SW]','\x20Build\x20config:','json','\x20\x20\x20\x20\x20\x20var\x20proxied\x20=\x20new\x20URL(enhancementBase);','debug','x-enhance-routing','replace','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>','full',',\x20null,\x202));','[Enhance\x20SW\x20Document]','log','\x20Error\x20resolving\x20enhancement\x20','HEAD','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(shouldProxy(resolved,\x20protocols))\x20{','redirect','\x20\x20\x20Injecting\x20runtime\x20bootstrap...','no-store','backendUrl','\x20Service\x20Worker\x20script\x20loaded\x20at\x20','\x20\x20\x20runtimeScriptPath:\x20','387iZZTlU','\x20\x20\x20Document\x20rewrite\x20complete','text/html','\x20\x20\x20\x20\x20\x20','host','/parcel-hmr','\x20Config\x20reset','style','\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20unavailable\x22,\x20error);','\x20Cannot\x20resolve\x20enhancement\x20-\x20no\x20publishable\x20key\x20configured','\x20\x20\x20\x20\x20\x20if\x20(!isExternalHost\x20&&\x20!isAppHost)\x20return\x20false;','\x20\x20\x20Document\x20source:\x20','getOwnPropertyNames','\x20\x20\x20Existing\x20bootstrap\x20found\x20-\x20keeping\x20it','\x20\x20\x20\x20\x20\x20var\x20loweredPath\x20=\x20pathname.toLowerCase();',',\x20destination:\x20','waitUntil','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Controller\x20attached\x20to\x20window.enhancePreview\x22);','type','parse','claim','Enhancement\x20document\x20miss\x20','\x20Failed\x20to\x20parse\x20operatingUrl:\x20','/auth/callback','font-src\x20*\x20data:','\x20\x20\x20Original\x20HTML\x20length:\x20','\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{','\x20Customer\x20config\x20updated:','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhancement\x20document','test','\x20\x20\x20Content-Type:\x20','method','\x20shouldRouteAsset:\x20','13686oXdmQt','89RHMjLT','\x20\x20\x20Stripping\x20SRI\x20attributes...','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhanced\x20response','clone','\x5cu003e','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20returning\x20null','rewritten','\x20\x20\x20\x20\x20\x20window.__enhanceController\x20=\x20controller;','\x20\x20\x20\x20var\x20basePrefix\x20=\x20\x22/__sbx__\x22;','\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(url,\x20protocols);','info','\x0a</body>','enhancementUrl','\x20\x20\x20\x20const\x20runtimeModule\x20=\x20await\x20import(runtimePath);','delete','\x20\x20\x20Attempting\x20to\x20fetch\x20from\x20enhancement:\x20','\x20\x20\x20Document\x20rewritten\x20successfully','})();','add','\x0a</head>','content-type','origin','\x20\x20\x20enhancementUrl:\x20','\x20Calling\x20skipWaiting()...','status','\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket,\x20\x22__enhancePatched\x22,\x20{\x20value:\x20true\x20});','\x20\x20\x20\x20const\x20controller\x20=\x20Enhance.init(','$&\x0a','worker','?import','\x20fetchFromEnhancement:\x20','\x20\x20\x20Not\x20HTML\x20response\x20-\x20returning\x20null','\x20\x20\x20Enhancement\x20document\x20URL:\x20','\x20\x20\x20\x20\x20\x20var\x20pathname\x20=\x20url.pathname\x20||\x20\x22/\x22;','length','\x20\x20\x20\x20const\x20Enhance\x20=\x20runtimeModule?.Enhance\x20??\x20runtimeModule?.default?.Enhance\x20??\x20runtimeModule?.default;','8PeMtfo','cache-control','content-security-policy','GET','body','\x20\x20\x20NAVIGATE\x20request\x20-\x20handling\x20navigation','\x20FETCH:\x20','x-enhance-enhancement','\x20resolved\x20to:\x20','Enhancement\x20document\x20CORS\x20blocked','install','\x20\x20\x20\x20var\x20knownPathHints\x20=\x20','\x20\x20\x20\x20var\x20knownProtocols\x20=\x20new\x20Set(','enhancement-document','/__snowpack__','\x20\x20\x20\x20var\x20EnhancedWebSocket\x20=\x20function(url,\x20protocols)\x20{','access-control-allow-credentials','Enhancement\x20miss\x20','callbackBypassNormalized','\x20chars','production','\x20\x20\x20\x20if\x20(typeof\x20window\x20!==\x20\x22undefined\x22)\x20{','set','\x20\x20\x20Not\x20routing\x20asset\x20(not\x20routable\x20or\x20not\x20same-origin)','join','data-enhance-runtime-bootstrap','Enhancement\x20fetch\x20failed','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20path:\x22,\x20runtimePath);','\x20\x20\x20\x20\x20\x20\x20\x20}','\x20fetchEnhancementDocument:\x20','http://','script','\x20\x20\x20\x20var\x20originalWebSocket\x20=\x20window.WebSocket;','\x20\x20\x20Rewriting\x20document...','map','\x20\x20\x20\x20\x20\x20}','cors','cross-origin-opener-policy','toISOString','endsWith','\x20Calling\x20clients.claim()...','Cannot\x20build\x20enhancement\x20URL\x20without\x20enhancementBase\x20configured','default','script-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20\x27unsafe-eval\x27\x20blob:\x20data:\x20https:\x20http:','\x20\x20\x20Enhancement\x20MISS\x20for\x20','callbackBypass','respondWith','sharedworker','Enhancement\x20CORS\x20blocked','text','https://api.enhancelabs.ai',',\x20type:\x20','permissive','activate','defineProperty','style-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20blob:\x20data:\x20https:\x20http:','error','\x20\x20\x20\x20\x20\x20\x20\x20return\x20false;','\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)','clients','\x20\x20\x20\x20\x20\x20return\x20proxied;','\x20\x20\x20\x20};','enhancement','\x20\x20\x20Fetching\x20from\x20enhancement...','\x20\x20\x20\x20const\x20runtimePath\x20=\x20','/snowpack/hmr','access-control-allow-origin','include','addEventListener','runtimeScriptPath','\x20\x20try\x20{','\x20Enhancement\x20','\x20for\x20','\x20Failed\x20to\x20resolve\x20enhancement\x20','\x20\x20\x20\x20if\x20(!originalWebSocket\x20||\x20originalWebSocket.__enhancePatched)\x20{','8380029oZOXqz','\x20\x20\x20Fetching\x20enhancement\x20document...','\x20\x20\x20Enhancement\x20HIT\x20for\x20','/resolve','securityMode','\x20\x20\x20\x20var\x20buildProxiedUrl\x20=\x20function(targetUrl)\x20{','\x20\x20\x20Injecting\x20HMR\x20bridge\x20(enhancement\x20source)...','\x5cs*=\x5cs*([\x27\x22])([^\x22\x27]+)\x5c1','\x20\x20}','\x20\x20\x20\x20\x20\x20return;','vite-hmr','\x20\x20\x20HTML\x20response\x20-\x20processing...','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Set\x20window.__enhanceInitialized\x20=\x20true\x22);','hasOwnProperty','\x20\x20\x20\x20\x20\x20//\x20ignore\x20if\x20unable\x20to\x20redefine','\x20\x20\x20No\x20existing\x20bootstrap\x20-\x20injecting\x20new\x20one\x20(','(async\x20()\x20=>\x20{','\x20\x20\x20Failed\x20to\x20rewrite\x20document:','\x20Enhancement\x20ID\x20from\x20navigation:\x20','mode','\x20is\x20runtime\x20asset\x20-\x20not\x20routing','/public/enhancements/','default-src\x20\x27self\x27\x20blob:\x20data:','stringify','url','\x20\x20\x20Rewritten\x20HTML\x20length:\x20','\x20matches\x20callbackBypass','/webpack-hmr','\x20❌\x20Publishable\x20key\x20validation\x20failed:\x20','toLowerCase',')\x20-\x20returning\x20null','/webpackhotmiddleware','message','\x20\x20\x20\x20\x20\x20var\x20isExternalHost\x20=\x20externalHosts.includes(url.host);','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Calling\x20Enhance.init()\x20with\x20options:\x22,\x20JSON.stringify(','access-control-expose-headers','/assets/enhance-runtime.js','X-Enhance-Publishable-Key','img-src\x20*\x20data:\x20blob:','\x20rewriteDocument()\x20called','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Starting\x20runtime\x20bootstrap...\x22);','fetch','searchParams','/__vite/client','\x20\x20\x20overlayPath:\x20','set-cookie','enhancementBase','overlayEnableViteHmr','6680568VBNgVX','some','\x20\x20\x20shouldInjectOverlay:\x20','enumerable','\x20\x20\x20\x20\x20\x20\x20\x20var\x20proto\x20=\x20protoList[i];','getOwnPropertyDescriptor','\x20\x20\x20\x20Object.setPrototypeOf(EnhancedWebSocket,\x20originalWebSocket);','slice','\x20-\x20falling\x20back\x20to\x20production'];_0xa7af=function(){return _0x25e290;};return _0xa7af();}var EnhanceSW=((()=>{const _0x1213fe=_0x2e89;var _0x19c216=Object[_0x1213fe(0x110)],_0x472205=Object[_0x1213fe(0x15a)],_0x15d1cc=Object[_0x1213fe(0x1d3)],_0x408366=Object['prototype'][_0x1213fe(0x132)],_0x22b1b0=(_0x14a562,_0x3a443f)=>{for(var _0x48546e in _0x3a443f)_0x19c216(_0x14a562,_0x48546e,{'get':_0x3a443f[_0x48546e],'enumerable':!![]});},_0x145afe=(_0x2b55d8,_0x787696,_0x2ff3ec,_0x4d806a)=>{const _0x1252ce=_0x1213fe;if(_0x787696&&typeof _0x787696==='object'||typeof _0x787696===_0x1252ce(0x1a9)){for(let _0x5380e6 of _0x15d1cc(_0x787696))if(!_0x408366[_0x1252ce(0x180)](_0x2b55d8,_0x5380e6)&&_0x5380e6!==_0x2ff3ec)_0x19c216(_0x2b55d8,_0x5380e6,{'get':()=>_0x787696[_0x5380e6],'enumerable':!(_0x4d806a=_0x472205(_0x787696,_0x5380e6))||_0x4d806a[_0x1252ce(0x158)]});}return _0x2b55d8;},_0x3eeff5=_0x1fb89d=>_0x145afe(_0x19c216({},'__esModule',{'value':!![]}),_0x1fb89d),_0x2b6139={};_0x22b1b0(_0x2b6139,{'log':()=>_0x5032a1});var _0x523196='enhance:configure',_0x2918e3=_0x1213fe(0x199);function _0x5af00b(_0xe878b7){const _0x56de92=_0x1213fe;if(!_0xe878b7[_0x56de92(0x18f)]('/'))return'/'+_0xe878b7;return _0xe878b7;}function _0x2c4a54(_0x4b8847,_0x2c6a77){const _0x5f0058=_0x1213fe,_0x413e6c=new URL(_0x4b8847[_0x5f0058(0x1aa)]()),_0xcbb4e4=_0x413e6c[_0x5f0058(0x189)][_0x5f0058(0x101)]('/')?_0x413e6c[_0x5f0058(0x189)][_0x5f0058(0x15c)](0x0,-0x1):_0x413e6c[_0x5f0058(0x189)],_0x15aa80=_0x2c6a77['pathname'][_0x5f0058(0x18f)]('/')?_0x2c6a77['pathname']:'/'+_0x2c6a77['pathname'];return _0x413e6c[_0x5f0058(0x189)]=(''+_0xcbb4e4+_0x15aa80)['replace'](/\/+/g,'/'),_0x413e6c[_0x5f0058(0x175)]=_0x2c6a77['search'],_0x413e6c[_0x5f0058(0x169)]='',_0x413e6c;}var _0x359abe=_0x1213fe(0x17f),_0x162ebe=_0x1213fe(0x14a),_0x596a75=new Set([_0x1213fe(0xf9),_0x1213fe(0x1ce),'font','image',_0x1213fe(0x205),_0x1213fe(0x109),_0x1213fe(0x19d)]);function _0x2950a9(_0xe1997){const _0x465f0f=_0x1213fe,_0x5b87df=_0xe1997[_0x465f0f(0x1e6)]===_0x465f0f(0xdd)||_0xe1997[_0x465f0f(0x1e6)]===_0x465f0f(0x1bf);return _0x5b87df;}function _0x53f932(_0x4fbabc,_0x235f13){const _0x1de4c3=_0x1213fe,_0x197e71=_0x5af00b(_0x235f13),_0x399642=_0x4fbabc[_0x1de4c3(0xec)][_0x1de4c3(0x156)](_0x38333b=>_0x197e71[_0x1de4c3(0x18f)](_0x38333b));return _0x399642;}function _0x13549b(_0x11e185,_0x131401,_0x50af57){const _0x18ce8b=_0x1213fe,_0x5599c8=_0x131401[_0x18ce8b(0x170)];if(!_0x5599c8||!_0x596a75['has'](_0x5599c8))return![];if(_0xba5b78(_0x11e185,_0x50af57))return console[_0x18ce8b(0x1bd)](_0x359abe+_0x18ce8b(0x1e7)+_0x50af57[_0x18ce8b(0x189)]+_0x18ce8b(0x16c)),![];if(_0x2f18b2(_0x11e185,_0x50af57))return console[_0x18ce8b(0x1bd)](_0x359abe+_0x18ce8b(0x1e7)+_0x50af57[_0x18ce8b(0x189)]+_0x18ce8b(0x139)),![];if(_0x50af57[_0x18ce8b(0x1fe)]!==self['location']['origin'])return![];return!![];}async function _0x593a20(_0x1e3b2d,_0x2aed14,_0x1d1b10){const _0x8d8688=_0x1213fe;console['log'](_0x359abe+_0x8d8688(0x207)+_0x1d1b10[_0x8d8688(0x189)]);if(!_0x1e3b2d[_0x8d8688(0x153)])return console[_0x8d8688(0x1bd)](_0x359abe+'\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20skipping'),null;const _0x3ec917=_0x10264e(_0x1e3b2d,_0x1d1b10);console[_0x8d8688(0x1bd)](_0x359abe+_0x8d8688(0x178)+_0x3ec917[_0x8d8688(0x1aa)]());const _0x4522cb=new Headers(_0x2aed14[_0x8d8688(0x1a8)]);_0x4522cb[_0x8d8688(0xf0)](_0x8d8688(0x1b7),_0x8d8688(0x118)),_0x4522cb[_0x8d8688(0x1f7)](_0x8d8688(0x1cb));_0x1e3b2d[_0x8d8688(0x198)]&&_0x4522cb[_0x8d8688(0xf0)](_0x162ebe,_0x1e3b2d[_0x8d8688(0x198)]);const _0x1503f1=new Request(_0x3ec917['toString'](),{'method':_0x2aed14[_0x8d8688(0x1e6)],'headers':_0x4522cb,'credentials':_0x8d8688(0x11d),'redirect':_0x2aed14[_0x8d8688(0x1c1)],'cache':_0x8d8688(0x104),'mode':_0x8d8688(0xfe)});try{console[_0x8d8688(0x1bd)](_0x359abe+_0x8d8688(0x119));const _0x16c47d=await fetch(_0x1503f1);console['log'](_0x359abe+_0x8d8688(0x19f)+_0x16c47d[_0x8d8688(0x201)]+'\x20'+_0x16c47d[_0x8d8688(0x172)]+_0x8d8688(0x10d)+_0x16c47d[_0x8d8688(0x1d9)]);if(_0x16c47d[_0x8d8688(0x1d9)]==='opaque')return console['log'](_0x359abe+_0x8d8688(0x114)),_0x5032a1(_0x8d8688(0x1f3),_0x8d8688(0x10a),_0x3ec917[_0x8d8688(0x1aa)]()),null;if(!_0x16c47d['ok'])return console[_0x8d8688(0x1bd)](_0x359abe+'\x20\x20\x20Not\x20OK\x20('+_0x16c47d[_0x8d8688(0x201)]+_0x8d8688(0x143)),_0x5032a1(_0x8d8688(0x1b6),_0x8d8688(0xeb)+_0x16c47d[_0x8d8688(0x201)]+_0x8d8688(0x122)+_0x3ec917[_0x8d8688(0x189)]),null;return console[_0x8d8688(0x1bd)](_0x359abe+_0x8d8688(0x1eb)),_0x26433b(_0x16c47d,_0x2aed14[_0x8d8688(0x1e6)]);}catch(_0x488c7e){return console[_0x8d8688(0x112)](_0x359abe+_0x8d8688(0x195),_0x488c7e),_0x5032a1(_0x8d8688(0x1f3),_0x8d8688(0xf4),_0x488c7e),null;}}async function _0x4bf64d(_0x5de519,_0xf0bcc7){const _0xa8fa21=_0x1213fe,_0x549410=new URL(_0xf0bcc7[_0xa8fa21(0x13d)]);console[_0xa8fa21(0x1bd)](_0x359abe+_0xa8fa21(0xf7)+_0x549410['pathname']+_0x549410[_0xa8fa21(0x175)]);if(!_0x5de519[_0xa8fa21(0x153)])return console['log'](_0x359abe+_0xa8fa21(0x1ee)),null;const _0x2268bb=_0x10264e(_0x5de519,_0x549410);console[_0xa8fa21(0x1bd)](_0x359abe+_0xa8fa21(0x209)+_0x2268bb[_0xa8fa21(0x1aa)]());const _0x573799=new Headers(_0xf0bcc7['headers']);_0x573799[_0xa8fa21(0xf0)](_0xa8fa21(0x1b7),_0xa8fa21(0xe7)),_0x573799[_0xa8fa21(0x1f7)](_0xa8fa21(0x1cb)),_0x573799[_0xa8fa21(0x1f7)]('content-length');_0x5de519[_0xa8fa21(0x198)]&&_0x573799[_0xa8fa21(0xf0)](_0x162ebe,_0x5de519[_0xa8fa21(0x198)]);const _0x3723ba=new Request(_0x2268bb[_0xa8fa21(0x1aa)](),{'method':_0xa8fa21(0xdd),'headers':_0x573799,'credentials':_0xa8fa21(0x11d),'redirect':'follow','cache':_0xa8fa21(0x104),'mode':_0xa8fa21(0xfe)});try{console[_0xa8fa21(0x1bd)](_0x359abe+_0xa8fa21(0x126));const _0x595475=await fetch(_0x3723ba);console[_0xa8fa21(0x1bd)](_0x359abe+_0xa8fa21(0x19f)+_0x595475[_0xa8fa21(0x201)]+'\x20'+_0x595475['statusText']+_0xa8fa21(0x10d)+_0x595475[_0xa8fa21(0x1d9)]),console[_0xa8fa21(0x1bd)](_0x359abe+_0xa8fa21(0x1e5)+_0x595475[_0xa8fa21(0x1a8)][_0xa8fa21(0x177)](_0xa8fa21(0x1fd)));if(_0x595475[_0xa8fa21(0x1d9)]==='opaque')return console[_0xa8fa21(0x1bd)](_0x359abe+'\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)'),_0x5032a1(_0xa8fa21(0x1f3),_0xa8fa21(0xe3),_0x2268bb[_0xa8fa21(0x1aa)]()),null;if(!_0x595475['ok'])return console['log'](_0x359abe+_0xa8fa21(0x1a6)+_0x595475['status']+_0xa8fa21(0x143)),_0x5032a1(_0xa8fa21(0x1b6),_0xa8fa21(0x1dc)+_0x595475['status']+_0xa8fa21(0x122)+_0x2268bb[_0xa8fa21(0x189)]),null;if(!_0xceac14(_0x595475))return console[_0xa8fa21(0x1bd)](_0x359abe+_0xa8fa21(0x208)),null;return console[_0xa8fa21(0x1bd)](_0x359abe+_0xa8fa21(0x1e3)),_0x26433b(_0x595475,_0xa8fa21(0xdd));}catch(_0x4123c7){return console['error'](_0x359abe+'\x20\x20\x20Document\x20fetch\x20error:',_0x4123c7),_0x5032a1(_0xa8fa21(0x1f3),'Enhancement\x20document\x20fetch\x20failed',_0x4123c7),null;}}function _0x10264e(_0x4476d0,_0xf77d15){const _0x550d3c=_0x1213fe;if(!_0x4476d0[_0x550d3c(0x153)])throw new Error(_0x550d3c(0x103));return _0x2c4a54(_0x4476d0[_0x550d3c(0x153)],_0xf77d15);}function _0x26433b(_0x56bf46,_0x4bf268){const _0x3d1b09=_0x1213fe,_0x1356dc=_0x56bf46[_0x3d1b09(0x1ec)](),_0x5901db=new Headers(_0x1356dc[_0x3d1b09(0x1a8)]);_0x5901db[_0x3d1b09(0x1f7)](_0x3d1b09(0x11c)),_0x5901db[_0x3d1b09(0x1f7)](_0x3d1b09(0xea)),_0x5901db[_0x3d1b09(0x1f7)](_0x3d1b09(0x148)),_0x5901db[_0x3d1b09(0xf0)](_0x3d1b09(0xe1),'hit'),_0x3eb34b(_0x5901db);const _0x540460=_0x4bf268==='HEAD'?null:_0x1356dc[_0x3d1b09(0xde)];return new Response(_0x540460,{'status':_0x1356dc[_0x3d1b09(0x201)],'statusText':_0x1356dc[_0x3d1b09(0x172)],'headers':_0x5901db});}function _0xceac14(_0x13813a){const _0x2bcaa9=_0x1213fe,_0x3066e3=_0x13813a[_0x2bcaa9(0x1a8)][_0x2bcaa9(0x177)](_0x2bcaa9(0x1fd));return _0x3066e3!=null&&_0x3066e3[_0x2bcaa9(0x17d)](_0x2bcaa9(0x1c9));}function _0xba5b78(_0x520373,_0x3fb48e){return _0x343a24(_0x3fb48e,_0x520373['overlayPath']);}function _0x2f18b2(_0x16f90a,_0x40aed2){const _0x440c1d=_0x1213fe;return _0x3567fe(_0x40aed2,_0x16f90a[_0x440c1d(0x11f)]);}function _0x343a24(_0xb7f1a5,_0x158464){const _0x51c7ad=_0x1213fe;if(!_0x158464)return![];if(_0x158464[_0x51c7ad(0x18f)](_0x51c7ad(0xf8))||_0x158464['startsWith']('https://'))return _0xb7f1a5[_0x51c7ad(0x15e)]===_0x158464;const _0x40103a=_0x4d62b5(_0x158464);if(!_0x40103a)return![];const _0x59d211=''+_0xb7f1a5[_0x51c7ad(0x189)]+_0xb7f1a5[_0x51c7ad(0x175)];if(_0x59d211===_0x40103a)return!![];if(_0xb7f1a5['search']===_0x51c7ad(0x206))return _0xb7f1a5['pathname']===_0x40103a;return![];}function _0x3567fe(_0x563b6b,_0x5875d9){const _0x548271=_0x1213fe;if(!_0x5875d9)return![];if(_0x5875d9[_0x548271(0x18f)](_0x548271(0xf8))||_0x5875d9['startsWith']('https://'))return _0x563b6b[_0x548271(0x15e)]===_0x5875d9;const _0x17c14d=_0x4d62b5(_0x5875d9);if(!_0x17c14d)return![];const _0x4ebc7e=''+_0x563b6b[_0x548271(0x189)]+_0x563b6b['search'];return _0x4ebc7e===_0x17c14d;}function _0x4d62b5(_0x40e7c7){const _0x451a80=_0x1213fe;if(!_0x40e7c7)return _0x40e7c7;if(_0x40e7c7[_0x451a80(0x18f)](_0x451a80(0xf8))||_0x40e7c7[_0x451a80(0x18f)](_0x451a80(0x185)))return _0x40e7c7;const _0x24a6b9=_0x40e7c7['replace'](/^\.\//,'');if(_0x24a6b9[_0x451a80(0x18f)]('/'))return _0x24a6b9;return'/'+_0x24a6b9;}function _0x3eb34b(_0x4b724d){const _0x4adcb7=_0x1213fe;_0x4b724d[_0x4adcb7(0x1f7)](_0x4adcb7(0x152)),_0x4b724d[_0x4adcb7(0x1f7)]('set-cookie2');}function _0x1baada(_0x296e3d){const _0x52a814=_0x1213fe,_0x240853=[_0x52a814(0x13b),_0x52a814(0x105),_0x52a814(0x111),_0x52a814(0x14b),_0x52a814(0x1df),_0x52a814(0x1ac),'media-src\x20*\x20data:\x20blob:','worker-src\x20\x27self\x27\x20blob:',_0x52a814(0x19a)],_0x165c53=_0x432c00(_0x296e3d);return _0x165c53&&_0x240853[_0x52a814(0x16d)](_0x165c53),_0x240853[_0x52a814(0xf2)](';\x20');}function _0x1050a9(_0x2e3fd5){const _0x15cac0=_0x1213fe;_0x2e3fd5[_0x15cac0(0x1f7)](_0x15cac0(0x152)),_0x2e3fd5[_0x15cac0(0x1f7)]('set-cookie2');}function _0x432c00(_0x2923e2){const _0x59bab7=_0x1213fe;if(!_0x2923e2)return null;const _0x35e743=_0x2923e2[_0x59bab7(0x162)](/frame-ancestors\s+([^;]+)/i);if(!_0x35e743)return null;return'frame-ancestors\x20'+_0x35e743[0x1][_0x59bab7(0x166)]();}function _0x1a0858(_0x18f77e,_0x23a531){const _0x2d3467=_0x1213fe;if(/<head[^>]*>/i[_0x2d3467(0x1e4)](_0x18f77e)){const _0x4b3b84=_0x18f77e[_0x2d3467(0x162)](/<head[^>]*>/i);if(_0x4b3b84){const _0x5c1df9=_0x4b3b84[0x0];return _0x18f77e['replace'](_0x5c1df9,_0x5c1df9+'\x0a'+_0x23a531);}}if(/<\/head>/i[_0x2d3467(0x1e4)](_0x18f77e))return _0x18f77e[_0x2d3467(0x1b8)](/<\/head>/i,_0x23a531+_0x2d3467(0x1fc));if(/<body\b[^>]*>/i[_0x2d3467(0x1e4)](_0x18f77e))return _0x18f77e['replace'](/<body\b[^>]*>/i,_0x2d3467(0x204)+_0x23a531);if(/<\/body>/i['test'](_0x18f77e))return _0x18f77e[_0x2d3467(0x1b8)](/<\/body>/i,_0x23a531+_0x2d3467(0x1f4));return _0x23a531+'\x0a'+_0x18f77e;}var _0x347704=[_0x1213fe(0x12f)],_0x4b80fa=[_0x1213fe(0x16f),_0x1213fe(0x150),'/vite/client','/__vite_ping',_0x1213fe(0x187),_0x1213fe(0x1ae),_0x1213fe(0x140),_0x1213fe(0x144),'/webpack-hot-middleware',_0x1213fe(0x17b),_0x1213fe(0x16a),_0x1213fe(0x1cc),'/__parcel_hmr',_0x1213fe(0xe8),_0x1213fe(0x11b)];function _0x2aa206(_0xa628c5,_0x6ea5d0){const _0x106cf4=_0x347086(_0xa628c5);if(!_0x106cf4)return _0x6ea5d0;return _0x1a0858(_0x6ea5d0,_0x106cf4);}function _0x347086(_0x71fc80){const _0x9a69a9=_0x1213fe;if(!_0x71fc80['enhancementBase'])return null;const _0x69421d=_0x71fc80[_0x9a69a9(0x153)][_0x9a69a9(0x1aa)](),_0x37083b=_0x1ed9c6(_0x347704),_0x2c5188=_0x1ed9c6(_0x4b80fa),_0x2066d2=['<script\x20data-enhance-hmr-bridge>','(function(){',_0x9a69a9(0x120),_0x9a69a9(0x161)+JSON[_0x9a69a9(0x13c)](_0x69421d)+');',_0x9a69a9(0xfa),_0x9a69a9(0x124),_0x9a69a9(0x12e),'\x20\x20\x20\x20}',_0x9a69a9(0xe6)+JSON[_0x9a69a9(0x13c)](_0x37083b)+');',_0x9a69a9(0xe5)+JSON[_0x9a69a9(0x13c)](_0x2c5188)+';',_0x9a69a9(0x1f1),_0x9a69a9(0x194),'\x20\x20\x20\x20\x20\x20if\x20(!value)\x20return\x20[];','\x20\x20\x20\x20\x20\x20return\x20Array.isArray(value)\x20?\x20value\x20:\x20[value];','\x20\x20\x20\x20};','\x20\x20\x20\x20var\x20shouldProxy\x20=\x20function(url,\x20protocols)\x20{',_0x9a69a9(0x16e),_0x9a69a9(0x196),_0x9a69a9(0x146),_0x9a69a9(0x1b0),'\x20\x20\x20\x20\x20\x20',_0x9a69a9(0x1d1),_0x9a69a9(0x1ca),_0x9a69a9(0x20a),'\x20\x20\x20\x20\x20\x20if\x20(pathname\x20===\x20basePrefix\x20||\x20pathname.indexOf(basePrefix\x20+\x20\x22/\x22)\x20===\x200)\x20{',_0x9a69a9(0x113),'\x20\x20\x20\x20\x20\x20}','\x20\x20\x20\x20\x20\x20var\x20protoList\x20=\x20toArray(protocols);','\x20\x20\x20\x20\x20\x20for\x20(var\x20i\x20=\x200;\x20i\x20<\x20protoList.length;\x20i++)\x20{',_0x9a69a9(0x159),'\x20\x20\x20\x20\x20\x20\x20\x20if\x20(typeof\x20proto\x20===\x20\x22string\x22\x20&&\x20knownProtocols.has(proto.toLowerCase()))\x20{',_0x9a69a9(0x18e),_0x9a69a9(0xf6),_0x9a69a9(0xfd),_0x9a69a9(0x1d5),_0x9a69a9(0x1a3),'\x20\x20\x20\x20\x20\x20\x20\x20if\x20(loweredPath.indexOf(knownPathHints[j])\x20!==\x20-1)\x20{',_0x9a69a9(0x18e),'\x20\x20\x20\x20\x20\x20\x20\x20}',_0x9a69a9(0xfd),'\x20\x20\x20\x20\x20\x20return\x20false;',_0x9a69a9(0x117),_0x9a69a9(0x12a),'\x20\x20\x20\x20\x20\x20//\x20Always\x20use\x20enhancementBase\x20for\x20HMR\x20WebSocket\x20proxying',_0x9a69a9(0x1b5),_0x9a69a9(0x18d),_0x9a69a9(0x17e),_0x9a69a9(0x116),_0x9a69a9(0x117),_0x9a69a9(0xe9),_0x9a69a9(0x19b),_0x9a69a9(0x190),_0x9a69a9(0x1c0),_0x9a69a9(0x18a),'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(rewritten.toString(),\x20protocols);',_0x9a69a9(0xf6),_0x9a69a9(0x1e1),'\x20\x20\x20\x20\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20fallback\x22,\x20error);',_0x9a69a9(0xfd),_0x9a69a9(0x1f2),_0x9a69a9(0x117),'\x20\x20\x20\x20Object.assign(EnhancedWebSocket,\x20originalWebSocket);','\x20\x20\x20\x20EnhancedWebSocket.prototype\x20=\x20originalWebSocket.prototype;',_0x9a69a9(0x15b),'\x20\x20\x20\x20try\x20{','\x20\x20\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket.prototype,\x20\x22constructor\x22,\x20{\x20value:\x20EnhancedWebSocket\x20});',_0x9a69a9(0x191),_0x9a69a9(0x133),'\x20\x20\x20\x20}',_0x9a69a9(0x202),'\x20\x20\x20\x20window.WebSocket\x20=\x20EnhancedWebSocket;','\x20\x20}\x20catch\x20(error)\x20{',_0x9a69a9(0x1cf),_0x9a69a9(0x12d),_0x9a69a9(0x1fa),_0x9a69a9(0x167)];return _0x2066d2['join']('\x0a');}function _0x1ed9c6(_0x1f460b){const _0x1e72d5=_0x1213fe,_0x55a250=new Set(),_0xec39dd=[];for(const _0x176210 of _0x1f460b){const _0x1159c3=_0x176210[_0x1e72d5(0x142)]();if(_0x55a250['has'](_0x1159c3))continue;_0x55a250[_0x1e72d5(0x1fb)](_0x1159c3),_0xec39dd['push'](_0x1159c3);}return _0xec39dd;}var _0x3b6fb9=_0x1213fe(0x184);function _0x1ab1f8(_0x616c33,_0x5db058){const _0x48efa5=_0x1213fe;console[_0x48efa5(0x1bd)](_0x3b6fb9+'\x20injectRuntimeBootstrap()\x20called'),console[_0x48efa5(0x1bd)](_0x3b6fb9+_0x48efa5(0x1c6)+_0x616c33[_0x48efa5(0x11f)]),console['log'](_0x3b6fb9+_0x48efa5(0x151)+_0x616c33['overlayPath']);if(_0x5db058['includes'](_0x48efa5(0xf3)))return console[_0x48efa5(0x1bd)](_0x3b6fb9+_0x48efa5(0x1d4)),_0x5db058;const _0xcd988a=_0x539caf(_0x616c33);if(!_0xcd988a)return console[_0x48efa5(0x1bd)](_0x3b6fb9+'\x20\x20\x20No\x20script\x20generated\x20(missing\x20runtimePath)\x20-\x20returning\x20html\x20unchanged'),_0x5db058;console[_0x48efa5(0x1bd)](_0x3b6fb9+_0x48efa5(0x134)+_0xcd988a[_0x48efa5(0xd8)]+_0x48efa5(0x197));const _0x5c7164=_0x1a0858(_0x5db058,_0xcd988a);return console[_0x48efa5(0x1bd)](_0x3b6fb9+'\x20\x20\x20Script\x20inserted\x20into\x20document'),_0x5c7164;}function _0x539caf(_0x59f022){const _0x1701ad=_0x1213fe,_0x57fb74=_0x59f022[_0x1701ad(0x11f)];if(!_0x57fb74)return console[_0x1701ad(0x1bd)](_0x3b6fb9+_0x1701ad(0x16b)),null;const _0x1bb8a5=_0x260269(_0x59f022);console['log'](_0x3b6fb9+_0x1701ad(0x183),JSON[_0x1701ad(0x13c)](_0x1bb8a5,null,0x2));const _0x3df347=_0x1e42bf(_0x1bb8a5),_0x4bdd59=JSON['stringify'](_0x57fb74),_0x3504ce=[_0x1701ad(0x1b9),_0x1701ad(0x135),'\x20\x20try\x20{',_0x1701ad(0x11a)+_0x4bdd59+';',_0x1701ad(0x14d),_0x1701ad(0xf5),_0x1701ad(0x160),_0x1701ad(0x1f6),'\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20module\x20loaded:\x22,\x20Object.keys(runtimeModule));',_0x1701ad(0xd9),'\x20\x20\x20\x20if\x20(!Enhance\x20||\x20typeof\x20Enhance.init\x20!==\x20\x22function\x22)\x20{','\x20\x20\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20No\x20Enhance.init\x20export\x20found!\x22);',_0x1701ad(0x12e),_0x1701ad(0x1a4),_0x1701ad(0x147)+_0x3df347+_0x1701ad(0x1bb),_0x1701ad(0x203)+_0x3df347+');',_0x1701ad(0x1ab),_0x1701ad(0xef),'\x20\x20\x20\x20\x20\x20window.enhancePreview\x20=\x20controller;',_0x1701ad(0x1d8),'\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',_0x1701ad(0x1b1),_0x1701ad(0x1f0),_0x1701ad(0x131),'\x20\x20\x20\x20}',_0x1701ad(0x181),'\x20\x20}\x20catch\x20(error)\x20{','\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20Failed\x20to\x20bootstrap\x20runtime:\x22,\x20error);',_0x1701ad(0x12d),_0x1701ad(0x1fa),'</script>'];return _0x3504ce[_0x1701ad(0xf2)]('\x0a');}function _0x260269(_0x261fa4){const _0x3b8c45=_0x1213fe,_0x1e2d68={'publishableKey':_0x261fa4['publishableKey'],'callbackBypass':_0x261fa4[_0x3b8c45(0x107)],'__development':{'enableOverlayHmr':_0x261fa4[_0x3b8c45(0x154)],'overlayPath':_0x261fa4['overlayPath'],'security':_0x261fa4['securityMode'],'backendUrl':_0x261fa4[_0x3b8c45(0x1c4)]}};return _0x1e2d68;}function _0x1e42bf(_0x290376){const _0x20cb68=_0x1213fe;return JSON[_0x20cb68(0x13c)](_0x290376)[_0x20cb68(0x1b8)](/</g,'\x5cu003c')[_0x20cb68(0x1b8)](/>/g,_0x20cb68(0x1ed));}function _0x124258(_0x596278,_0x55de87){const _0x126a2c=_0x1213fe,_0x25ddfb=_0x3d2198=>_0x5f144c(_0x596278,_0x3d2198),_0x250a35=_0x48fb8d=>_0x403b36(_0x596278,_0x48fb8d);return _0x55de87[_0x126a2c(0x1b8)](/<script\b[^>]*>/gi,_0x25ddfb)[_0x126a2c(0x1b8)](/<link\b[^>]*>/gi,_0x250a35);}function _0x5e3e45(_0x1454a6){const _0x327d18=_0x1213fe;return _0x1454a6[_0x327d18(0x1b8)](/\s+integrity\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,'');}function _0x5f144c(_0x1a5bea,_0x5b248f){const _0x578330=_0x1213fe,_0x3567ac=_0xc7650d(_0x5b248f,_0x578330(0x18c));if(!_0x3567ac)return _0x5b248f;const _0x5629ab=_0x14d29a(_0x1a5bea,_0x3567ac[_0x578330(0x17c)]);if(!_0x5629ab||_0x5629ab===_0x3567ac['value'])return _0x5b248f;const _0x1ad440=_0x3567ac['full'][_0x578330(0x1b8)](_0x3567ac[_0x578330(0x17c)],_0x5629ab);return _0x5b248f[_0x578330(0x1b8)](_0x3567ac[_0x578330(0x1ba)],_0x1ad440);}function _0x403b36(_0x22e555,_0x17dc67){const _0x234c0e=_0x1213fe,_0x53d0c5=_0x17dc67[_0x234c0e(0x162)](/\brel\s*=\s*(['"])([^"']+)\1/i);if(!_0x53d0c5)return _0x17dc67;const _0x48fd18=_0x53d0c5[0x2]['toLowerCase']();if(_0x48fd18!=='stylesheet'&&_0x48fd18!=='modulepreload')return _0x17dc67;const _0xe69408=_0xc7650d(_0x17dc67,_0x234c0e(0x15e));if(!_0xe69408)return _0x17dc67;const _0x4bbd02=_0x14d29a(_0x22e555,_0xe69408['value']);if(!_0x4bbd02||_0x4bbd02===_0xe69408[_0x234c0e(0x17c)])return _0x17dc67;const _0x5e156d=_0xe69408[_0x234c0e(0x1ba)][_0x234c0e(0x1b8)](_0xe69408['value'],_0x4bbd02);return _0x17dc67[_0x234c0e(0x1b8)](_0xe69408[_0x234c0e(0x1ba)],_0x5e156d);}function _0xc7650d(_0x1b2ac3,_0x39b56e){const _0x5cb161=_0x1213fe,_0x475ba1=new RegExp(_0x39b56e+_0x5cb161(0x12c),'i'),_0x227d3f=_0x1b2ac3[_0x5cb161(0x162)](_0x475ba1);if(!_0x227d3f)return null;return{'full':_0x227d3f[0x0],'value':_0x227d3f[0x2]};}function _0x14d29a(_0x2ceae2,_0xb215b6){const _0x2aadf8=_0x1213fe,_0x311446=_0x591826(_0xb215b6);if(!_0x311446)return null;if(_0x311446[_0x2aadf8(0x1fe)]===self[_0x2aadf8(0x18b)]['origin'])return''+_0x311446['pathname']+_0x311446[_0x2aadf8(0x175)];return null;}function _0x591826(_0xfe316c){const _0x59fad7=_0x1213fe;try{return new URL(_0xfe316c,self[_0x59fad7(0x18b)]['origin']);}catch{return null;}}var _0x328545=_0x1213fe(0x1bc);async function _0x38050f(_0x3c14d4,_0x1c6e50,_0x2b30a9,_0x443ba9=!![]){const _0x595fd0=_0x1213fe;console[_0x595fd0(0x1bd)](_0x328545+_0x595fd0(0x14c)),console[_0x595fd0(0x1bd)](_0x328545+'\x20\x20\x20source:\x20'+_0x2b30a9),console[_0x595fd0(0x1bd)](_0x328545+_0x595fd0(0x157)+_0x443ba9),console[_0x595fd0(0x1bd)](_0x328545+'\x20\x20\x20securityMode:\x20'+_0x3c14d4[_0x595fd0(0x129)]);const _0x2dbf40=_0x1c6e50[_0x595fd0(0x1ec)](),_0x5b096e=await _0x2dbf40['text']();console['log'](_0x328545+_0x595fd0(0x1e0)+_0x5b096e['length']+_0x595fd0(0xed)),console[_0x595fd0(0x1bd)](_0x328545+_0x595fd0(0x1ea));const _0x3ad4ad=_0x5e3e45(_0x5b096e);console[_0x595fd0(0x1bd)](_0x328545+_0x595fd0(0x182));let _0x287b2a=_0x124258(_0x3c14d4,_0x3ad4ad);_0x2b30a9===_0x595fd0(0x118)?(console[_0x595fd0(0x1bd)](_0x328545+_0x595fd0(0x12b)),_0x287b2a=_0x2aa206(_0x3c14d4,_0x287b2a)):console[_0x595fd0(0x1bd)](_0x328545+_0x595fd0(0x1a7));_0x443ba9?(console[_0x595fd0(0x1bd)](_0x328545+_0x595fd0(0x1c2)),_0x287b2a=_0x1ab1f8(_0x3c14d4,_0x287b2a)):console[_0x595fd0(0x1bd)](_0x328545+_0x595fd0(0x186));console[_0x595fd0(0x1bd)](_0x328545+_0x595fd0(0x13e)+_0x287b2a['length']+_0x595fd0(0xed));const _0x314f75=new Headers(_0x2dbf40[_0x595fd0(0x1a8)]);_0x314f75[_0x595fd0(0xf0)](_0x595fd0(0xdb),_0x595fd0(0x1c3)),_0x314f75[_0x595fd0(0xf0)]('x-enhance-document',_0x595fd0(0x1ef)),_0x314f75[_0x595fd0(0xf0)]('x-enhance-document-source',_0x2b30a9),_0x1050a9(_0x314f75);if(_0x3c14d4[_0x595fd0(0x129)]!=='custom'){console['log'](_0x328545+'\x20\x20\x20Applying\x20permissive\x20CSP...');const _0x23b2d2=_0x314f75[_0x595fd0(0x177)](_0x595fd0(0xdc));_0x314f75['set'](_0x595fd0(0xdc),_0x1baada(_0x23b2d2)),_0x314f75['delete'](_0x595fd0(0xff)),_0x314f75[_0x595fd0(0x1f7)]('cross-origin-embedder-policy'),_0x314f75[_0x595fd0(0x1f7)](_0x595fd0(0x173));}else console[_0x595fd0(0x1bd)](_0x328545+'\x20\x20\x20Custom\x20security\x20mode\x20-\x20preserving\x20original\x20CSP');return console['log'](_0x328545+_0x595fd0(0x1c8)),new Response(_0x287b2a,{'status':_0x2dbf40['status'],'statusText':_0x2dbf40[_0x595fd0(0x172)],'headers':_0x314f75});}var _0x34de4d=_0x1213fe(0x1b2);console[_0x1213fe(0x1bd)](_0x34de4d+_0x1213fe(0x1c5)+new Date()[_0x1213fe(0x100)]());var _0x2bbaa7={'overlayPath':'https://assets.enhancelabs.ai/overlay.js','backendUrl':_0x1213fe(0x10c),'overlayEnableViteHmr':![],'runtimeScriptPath':_0x1213fe(0x149),'swPath':_0x1213fe(0x1a0)};console[_0x1213fe(0x1bd)](_0x34de4d+_0x1213fe(0x1b3),JSON[_0x1213fe(0x13c)](_0x2bbaa7,null,0x2));var _0x2ba56a={'publishableKey':'','callbackBypass':['/auth/callback'],'securityMode':_0x1213fe(0x10e)},_0x16acdf=_0x1213fe(0x14a),_0x25a2aa=new Map(),_0x5d5841=null,_0xa6d7ef=null,_0x1b03cd=null;function _0x591723(){const _0x2da590=_0x1213fe,_0x43da09=_0xa6d7ef||'',_0x30bdf1=_0x1b03cd;return{..._0x2bbaa7,..._0x2ba56a,'enhancementUrl':_0x43da09,'enhancementBase':_0x30bdf1,'callbackBypassNormalized':_0x2ba56a[_0x2da590(0x107)][_0x2da590(0xfc)](_0xd5eef9=>_0xd5eef9[_0x2da590(0x18f)]('/')?_0xd5eef9:'/'+_0xd5eef9)};}async function _0x4bbe82(_0x3360d5,_0x372feb){const _0x2fce70=_0x1213fe,_0xdea1f5=_0x3360d5[_0x2fce70(0x14f)][_0x2fce70(0x177)](_0x2fce70(0x118));if(_0x372feb&&_0xdea1f5){console[_0x2fce70(0x1bd)](_0x34de4d+_0x2fce70(0x137)+_0xdea1f5);const _0x3c677d=await _0x2ab4b0(_0xdea1f5);if(_0x3c677d){_0x5d5841=_0xdea1f5,_0xa6d7ef=_0x3c677d;try{_0x1b03cd=new URL(_0x3c677d);}catch{console[_0x2fce70(0x112)](_0x34de4d+_0x2fce70(0x1dd)+_0x3c677d),_0x1b03cd=null;}}else _0x5d5841=null,_0xa6d7ef=null,_0x1b03cd=null;}return _0x372feb&&!_0xdea1f5&&(_0x5d5841&&console[_0x2fce70(0x1bd)](_0x34de4d+'\x20Clearing\x20cached\x20enhancement\x20(navigation\x20without\x20param)'),_0x5d5841=null,_0xa6d7ef=null,_0x1b03cd=null),_0x591723();}function _0x5032a1(_0x1403e1,_0x2bff09,..._0x59a113){const _0xb6b2cb=_0x1213fe;_0x1403e1===_0xb6b2cb(0x1f3)?console[_0xb6b2cb(0x1f3)](_0x34de4d,_0x2bff09,..._0x59a113):console[_0xb6b2cb(0x1b6)](_0x34de4d,_0x2bff09,..._0x59a113);}async function _0x2ab4b0(_0x3257d7){const _0x195a95=_0x1213fe,_0x13521f=_0x25a2aa[_0x195a95(0x177)](_0x3257d7);if(_0x13521f)return console[_0x195a95(0x1bd)](_0x34de4d+_0x195a95(0x121)+_0x3257d7+'\x20resolved\x20from\x20cache:\x20'+_0x13521f),_0x13521f;if(!_0x2ba56a[_0x195a95(0x198)])return console[_0x195a95(0x112)](_0x34de4d+_0x195a95(0x1d0)),null;const _0x598296=_0x2bbaa7[_0x195a95(0x1c4)]+_0x195a95(0x13a)+_0x3257d7+_0x195a95(0x128);console[_0x195a95(0x1bd)](_0x34de4d+'\x20Resolving\x20enhancement\x20'+_0x3257d7+'\x20via\x20'+_0x598296);try{const _0x2cd20c=await fetch(_0x598296,{'headers':{[_0x16acdf]:_0x2ba56a[_0x195a95(0x198)]}});if(!_0x2cd20c['ok']){let _0x40fefd=await _0x2cd20c[_0x195a95(0x10b)]();try{const _0x57907e=JSON[_0x195a95(0x1da)](_0x40fefd);_0x57907e[_0x195a95(0x112)]&&(_0x40fefd=_0x57907e[_0x195a95(0x112)]);}catch{}return _0x2cd20c[_0x195a95(0x201)]===0x193?console['error'](_0x34de4d+_0x195a95(0x141)+_0x40fefd):console[_0x195a95(0x112)](_0x34de4d+_0x195a95(0x123)+_0x3257d7+':\x20'+_0x2cd20c[_0x195a95(0x201)]+'\x20'+_0x40fefd),null;}const _0x4ae374=await _0x2cd20c[_0x195a95(0x1b4)](),_0xad9daf=''+_0x2bbaa7[_0x195a95(0x1c4)]+_0x4ae374['operatingPath'];return console['log'](_0x34de4d+_0x195a95(0x121)+_0x3257d7+_0x195a95(0xe2)+_0xad9daf),_0x25a2aa[_0x195a95(0xf0)](_0x3257d7,_0xad9daf),_0xad9daf;}catch(_0x327e0d){return console[_0x195a95(0x112)](_0x34de4d+_0x195a95(0x1be)+_0x3257d7+':',_0x327e0d),null;}}self[_0x1213fe(0x11e)](_0x1213fe(0xe4),_0x17eb21=>{console['log'](_0x34de4d+'\x20INSTALL\x20event'),_0x17eb21['waitUntil'](((async()=>{const _0x377f42=_0x2e89;console[_0x377f42(0x1bd)](_0x34de4d+_0x377f42(0x200)),await self[_0x377f42(0x168)](),console[_0x377f42(0x1bd)](_0x34de4d+'\x20skipWaiting()\x20complete');})()));}),self[_0x1213fe(0x11e)](_0x1213fe(0x10f),_0x5bee3b=>{const _0x46caa7=_0x1213fe;console[_0x46caa7(0x1bd)](_0x34de4d+'\x20ACTIVATE\x20event'),_0x5bee3b[_0x46caa7(0x1d7)](((async()=>{const _0x463151=_0x46caa7;console[_0x463151(0x1bd)](_0x34de4d+_0x463151(0x102)),await self[_0x463151(0x115)][_0x463151(0x1db)](),console['log'](_0x34de4d+'\x20clients.claim()\x20complete');})()));}),self[_0x1213fe(0x11e)](_0x1213fe(0x145),_0x59adec=>{const _0x49bda4=_0x1213fe,_0x423ce8=_0x59adec['data'];console[_0x49bda4(0x1bd)](_0x34de4d+'\x20MESSAGE\x20received:',_0x423ce8);if(!_0x423ce8||typeof _0x423ce8!==_0x49bda4(0x19e)){console[_0x49bda4(0x1bd)](_0x34de4d+_0x49bda4(0x174));return;}switch(_0x423ce8[_0x49bda4(0x1d9)]){case _0x523196:{console['log'](_0x34de4d+_0x49bda4(0x163));const _0x5ce52e=_0x423ce8['config'];_0x2ba56a={'publishableKey':_0x5ce52e[_0x49bda4(0x198)]??'','callbackBypass':_0x5ce52e[_0x49bda4(0x107)]??['/auth/callback'],'securityMode':_0x5ce52e[_0x49bda4(0x129)]??_0x49bda4(0x10e)},console['log'](_0x34de4d+_0x49bda4(0x1e2),JSON[_0x49bda4(0x13c)](_0x2ba56a,null,0x2));break;}case _0x2918e3:console[_0x49bda4(0x1bd)](_0x34de4d+'\x20DISABLE\x20message\x20-\x20resetting\x20customer\x20config'),_0x2ba56a={'publishableKey':'','callbackBypass':[_0x49bda4(0x1de)],'securityMode':_0x49bda4(0x10e)},_0x5d5841=null,_0xa6d7ef=null,_0x1b03cd=null,_0x25a2aa[_0x49bda4(0x165)](),console[_0x49bda4(0x1bd)](_0x34de4d+_0x49bda4(0x1cd));break;default:console[_0x49bda4(0x1bd)](_0x34de4d+'\x20Unknown\x20message\x20type:\x20'+_0x423ce8[_0x49bda4(0x1d9)]);break;}}),self[_0x1213fe(0x11e)](_0x1213fe(0x14e),_0x4aa3fb=>{const _0x9c9eb7=_0x1213fe;_0x4aa3fb[_0x9c9eb7(0x108)](_0x46db8b(_0x4aa3fb));});async function _0x46db8b(_0x122a67){const _0x245d6f=_0x1213fe,{request:_0x3d555a}=_0x122a67,_0x275c80=new URL(_0x3d555a[_0x245d6f(0x13d)]),_0x935eed=_0x3d555a[_0x245d6f(0x138)]===_0x245d6f(0x15f),_0x3986e3=_0x935eed||_0x275c80[_0x245d6f(0x1fe)]===self[_0x245d6f(0x18b)][_0x245d6f(0x1fe)];_0x3986e3&&(console['log'](_0x34de4d+_0x245d6f(0xe0)+_0x3d555a[_0x245d6f(0x1e6)]+'\x20'+_0x275c80[_0x245d6f(0x189)]+_0x275c80[_0x245d6f(0x175)]),console[_0x245d6f(0x1bd)](_0x34de4d+_0x245d6f(0x188)+_0x3d555a[_0x245d6f(0x138)]+_0x245d6f(0x1d6)+_0x3d555a[_0x245d6f(0x170)]));if(!_0x2950a9(_0x3d555a))return _0x3986e3&&console[_0x245d6f(0x1bd)](_0x34de4d+'\x20\x20\x20Not\x20handling\x20(method\x20not\x20GET/HEAD)'),fetch(_0x3d555a);const _0x1c4b8b=_0x935eed?await _0x4bbe82(_0x275c80,_0x935eed):_0x591723();_0x3986e3&&console[_0x245d6f(0x1bd)](_0x34de4d+_0x245d6f(0x1ff)+(_0x1c4b8b[_0x245d6f(0x1f5)]||'none'));if(_0x53f932(_0x1c4b8b,_0x275c80['pathname']))return _0x3986e3&&console[_0x245d6f(0x1bd)](_0x34de4d+_0x245d6f(0x164)+_0x275c80[_0x245d6f(0x189)]+_0x245d6f(0x13f)),fetch(_0x3d555a);if(_0x935eed)return console[_0x245d6f(0x1bd)](_0x34de4d+_0x245d6f(0xdf)),_0x1698d4(_0x3d555a,_0x1c4b8b);if(!_0x13549b(_0x1c4b8b,_0x3d555a,_0x275c80))return _0x3986e3&&console[_0x245d6f(0x1bd)](_0x34de4d+_0x245d6f(0xf1)),fetch(_0x3d555a);console[_0x245d6f(0x1bd)](_0x34de4d+_0x245d6f(0x1f8)+_0x275c80[_0x245d6f(0x189)]);const _0x264eaf=await _0x593a20(_0x1c4b8b,_0x3d555a,_0x275c80);if(_0x264eaf)return console[_0x245d6f(0x1bd)](_0x34de4d+_0x245d6f(0x127)+_0x275c80['pathname']),_0x264eaf;return console['log'](_0x34de4d+_0x245d6f(0x106)+_0x275c80['pathname']+_0x245d6f(0x15d)),fetch(_0x3d555a);}async function _0x1698d4(_0x537180,_0x35eb48){const _0x52285d=_0x1213fe,_0x502af7=new URL(_0x537180[_0x52285d(0x13d)]);console[_0x52285d(0x1bd)](_0x34de4d+_0x52285d(0x1a1)+_0x502af7[_0x52285d(0x189)]+_0x502af7[_0x52285d(0x175)]),console[_0x52285d(0x1bd)](_0x34de4d+_0x52285d(0x193)+(_0x35eb48['enhancementUrl']||_0x52285d(0x1a2))),console[_0x52285d(0x1bd)](_0x34de4d+_0x52285d(0x17a));const _0x1d079a=await fetch(_0x537180);console['log'](_0x34de4d+'\x20\x20\x20Production\x20response:\x20'+_0x1d079a[_0x52285d(0x201)]+'\x20'+_0x1d079a[_0x52285d(0x172)]),console[_0x52285d(0x1bd)](_0x34de4d+_0x52285d(0x1e5)+_0x1d079a['headers'][_0x52285d(0x177)]('content-type'));if(!_0xceac14(_0x1d079a))return console['log'](_0x34de4d+_0x52285d(0x1a5)),_0x1d079a;console[_0x52285d(0x1bd)](_0x34de4d+_0x52285d(0x130));const _0x165f3e=_0x26433b(_0x1d079a,_0x52285d(0xdd));console[_0x52285d(0x1bd)](_0x34de4d+'\x20\x20\x20Checking\x20for\x20enhancement\x20document...');const _0x37ccdd=await _0x4bf64d(_0x35eb48,_0x537180),_0x213ecf=_0x37ccdd?'enhancement':_0x52285d(0xee);console[_0x52285d(0x1bd)](_0x34de4d+_0x52285d(0x1d2)+_0x213ecf);const _0x11018b=_0x37ccdd??_0x165f3e,_0x460307=_0x213ecf===_0x52285d(0x118)||_0x502af7[_0x52285d(0x14f)][_0x52285d(0x19c)](_0x52285d(0x1af))||_0x502af7[_0x52285d(0x14f)][_0x52285d(0x19c)]('enhancement');console['log'](_0x34de4d+_0x52285d(0x157)+_0x460307);try{console[_0x52285d(0x1bd)](_0x34de4d+_0x52285d(0xfb));const _0x1196e4=await _0x38050f(_0x35eb48,_0x11018b,_0x213ecf,_0x460307);return console[_0x52285d(0x1bd)](_0x34de4d+_0x52285d(0x1f9)),_0x1196e4;}catch(_0x3d4992){return console[_0x52285d(0x112)](_0x34de4d+_0x52285d(0x136),_0x3d4992),_0x5032a1(_0x52285d(0x1f3),_0x52285d(0x1ad),_0x3d4992),_0x11018b;}}return _0x3eeff5(_0x2b6139);})());
|
package/dist/vite/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x3dadc9=_0x530b;function _0x4b98(){var _0x5702ee=['stringify','setHeader','2055654cbMBee','725080EFWttz','replace','<head$1>','asset','/assets/enhance-runtime.js','1154jJCaiO','publishableKey','20930TPoPvW','middlewares','end','32oiJLNG','2976hBtLUd','assets/enhance-runtime.js','\x22;\x0aEnhance.init(','5676594jjnqie','__development','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>\x0aimport\x20{\x20Enhance\x20}\x20from\x20\x22','application/javascript','../assets/enhance-runtime.js','../sw-enhance.js','utf-8','emitFile','enhance-sandbox','callbackBypass','2648751YSAFCq','25cxRPdv','4462570hGKoxc','sw-enhance.js','url'];_0x4b98=function(){return _0x5702ee;};return _0x4b98();}function _0x530b(_0x1b068a,_0x53e5f9){_0x1b068a=_0x1b068a-0x86;var _0x4b9898=_0x4b98();var _0x530b16=_0x4b9898[_0x1b068a];return _0x530b16;}(function(_0x10c1cd,_0x4b2258){var _0x225953=_0x530b,_0x42abe1=_0x10c1cd();while(!![]){try{var _0x2b8910=parseInt(_0x225953(0xa5))/0x1+-parseInt(_0x225953(0xa3))/0x2*(-parseInt(_0x225953(0x89))/0x3)+-parseInt(_0x225953(0x9e))/0x4*(-parseInt(_0x225953(0x97))/0x5)+parseInt(_0x225953(0x8c))/0x6+-parseInt(_0x225953(0x96))/0x7+parseInt(_0x225953(0x88))/0x8*(-parseInt(_0x225953(0x9d))/0x9)+-parseInt(_0x225953(0x98))/0xa;if(_0x2b8910===_0x4b2258)break;else _0x42abe1['push'](_0x42abe1['shift']());}catch(_0x1f179d){_0x42abe1['push'](_0x42abe1['shift']());}}}(_0x4b98,0xacba1));import{fileURLToPath}from'url';import{readFile}from'fs/promises';var runtimePath=fileURLToPath(new URL(_0x3dadc9(0x90),import.meta.url)),swPath=fileURLToPath(new URL(_0x3dadc9(0x91),import.meta.url)),RUNTIME_URL=_0x3dadc9(0xa2),SW_URL='/sw-enhance.js';function buildInitScript(_0x4134b6){var _0x21cd01=_0x3dadc9;const _0x3d0f57={'publishableKey':_0x4134b6[_0x21cd01(0xa4)],'callbackBypass':_0x4134b6[_0x21cd01(0x95)],'__development':_0x4134b6[_0x21cd01(0x8d)]},_0x59e881=JSON[_0x21cd01(0x9b)](_0x3d0f57);return _0x21cd01(0x8e)+RUNTIME_URL+_0x21cd01(0x8b)+_0x59e881+');\x0a</script>';}var enhance=_0x45cf24=>{var _0x24e5cf=_0x3dadc9;let _0x5e63b3=null,_0x21bf39=null;async function _0xd39236(){var _0x218a29=_0x530b;!_0x5e63b3&&(_0x5e63b3=await readFile(runtimePath,'utf-8')),!_0x21bf39&&(_0x21bf39=await readFile(swPath,_0x218a29(0x92)));}return{'name':_0x24e5cf(0x94),'configureServer'(_0x1ace34){var _0x56086d=_0x24e5cf;_0x1ace34[_0x56086d(0x86)]['use'](async(_0x33505e,_0x322267,_0x3d65f9)=>{var _0x2145f2=_0x56086d;if(_0x33505e[_0x2145f2(0x9a)]===RUNTIME_URL||_0x33505e[_0x2145f2(0x9a)]===SW_URL){await _0xd39236(),_0x322267['setHeader']('Content-Type','application/javascript'),_0x322267['end'](_0x33505e[_0x2145f2(0x9a)]===RUNTIME_URL?_0x5e63b3:_0x21bf39);return;}_0x3d65f9();});},'configurePreviewServer'(_0x5925de){var _0x157336=_0x24e5cf;_0x5925de[_0x157336(0x86)]['use'](async(_0x52a6cb,_0xa2d8ad,_0x2b704c)=>{var _0x23b0d5=_0x157336;if(_0x52a6cb['url']===RUNTIME_URL||_0x52a6cb['url']===SW_URL){await _0xd39236(),_0xa2d8ad[_0x23b0d5(0x9c)]('Content-Type',_0x23b0d5(0x8f)),_0xa2d8ad[_0x23b0d5(0x87)](_0x52a6cb[_0x23b0d5(0x9a)]===RUNTIME_URL?_0x5e63b3:_0x21bf39);return;}_0x2b704c();});},async 'generateBundle'(){var _0x5e5449=_0x24e5cf;await _0xd39236(),this['emitFile']({'type':'asset','fileName':_0x5e5449(0x8a),'source':_0x5e63b3}),this[_0x5e5449(0x93)]({'type':_0x5e5449(0xa1),'fileName':_0x5e5449(0x99),'source':_0x21bf39});},'transformIndexHtml'(_0xd4e195){var _0x28df53=_0x24e5cf;const _0x34a238=buildInitScript(_0x45cf24);return _0xd4e195[_0x28df53(0x9f)](/<head([^>]*)>/,_0x28df53(0xa0)+_0x34a238);}};};export{enhance};
|