@enhance-eng/sandbox 0.3.20-beta.e89bf24 → 0.3.20
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.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 _0x5cfe8c=_0x3719;(function(_0xe8a2e7,_0x23b09e){const _0x1a0828=_0x3719,_0x567342=_0xe8a2e7();while(!![]){try{const _0x4499cb=parseInt(_0x1a0828(0x151))/0x1+-parseInt(_0x1a0828(0xe4))/0x2*(parseInt(_0x1a0828(0x13a))/0x3)+-parseInt(_0x1a0828(0xce))/0x4*(parseInt(_0x1a0828(0x120))/0x5)+-parseInt(_0x1a0828(0xe0))/0x6+-parseInt(_0x1a0828(0x118))/0x7+-parseInt(_0x1a0828(0x14d))/0x8*(-parseInt(_0x1a0828(0x17d))/0x9)+parseInt(_0x1a0828(0x147))/0xa;if(_0x4499cb===_0x23b09e)break;else _0x567342['push'](_0x567342['shift']());}catch(_0x160400){_0x567342['push'](_0x567342['shift']());}}}(_0x2021,0x448f5));var DEFAULT_OVERLAY_PATH=!![]?_0x5cfe8c(0x157):_0x5cfe8c(0x157),DEFAULT_BACKEND_URL=!![]?_0x5cfe8c(0x108):_0x5cfe8c(0x108),DEFAULT_OVERLAY_HMR=!![]?![]:![];console[_0x5cfe8c(0x179)]('[Enhance\x20Config]\x20Build-time\x20defaults:',{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x461665){const _0x55a62e=_0x5cfe8c,_0x513434=_0x461665['__development']??{};return{'callbackBypass':_0x461665['callbackBypass']??[],'overlay':{'enabled':!![],'position':_0x55a62e(0x100),'enableViteHmr':_0x513434[_0x55a62e(0xb3)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x55a62e(0x172),'swPath':_0x55a62e(0x154),'overlayPath':_0x513434['overlayPath']??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x55a62e(0x11b),'security':_0x513434[_0x55a62e(0xcf)]??'permissive','backendUrl':_0x513434[_0x55a62e(0xf6)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementUrl(){const _0x198b3a=_0x5cfe8c;try{const _0x58bfa6=new URLSearchParams(window[_0x198b3a(0x131)]['search']);return _0x58bfa6[_0x198b3a(0xc1)](_0x198b3a(0xc6))?.[_0x198b3a(0x11d)]()||'';}catch{return'';}}var LOG_PREFIX='[Enhance\x20Overlay]',overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x316956){const _0x3221b2=_0x5cfe8c;console[_0x3221b2(0x179)](LOG_PREFIX+_0x3221b2(0x137)),console[_0x3221b2(0x179)](LOG_PREFIX+_0x3221b2(0xcc)+_0x316956['overlayPath']),console[_0x3221b2(0x179)](LOG_PREFIX+_0x3221b2(0x12a)+_0x316956['enableViteHmr']),currentOptions=_0x316956[_0x3221b2(0xfe)],toggleHandler=_0x316956[_0x3221b2(0x125)];if(overlayController){console[_0x3221b2(0x179)](LOG_PREFIX+_0x3221b2(0x141)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x3221b2(0x179)](LOG_PREFIX+'\x20Load\x20already\x20in\x20progress\x20-\x20waiting...'),overlayLoadPromise;console[_0x3221b2(0x179)](LOG_PREFIX+_0x3221b2(0x102)),overlayLoadPromise=doLoadOverlay(_0x316956);try{await overlayLoadPromise,console[_0x3221b2(0x179)](LOG_PREFIX+_0x3221b2(0x106));}catch(_0x75d41f){console[_0x3221b2(0xf4)](LOG_PREFIX+'\x20loadOverlay()\x20failed:',_0x75d41f);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x4627d7){const _0x5573ae=_0x5cfe8c;console[_0x5573ae(0x179)](LOG_PREFIX+_0x5573ae(0x17e));if(typeof window===_0x5573ae(0x133)){console[_0x5573ae(0x179)](LOG_PREFIX+_0x5573ae(0xe2));return;}if(window['__enhanceOverlay']){console['log'](LOG_PREFIX+_0x5573ae(0x101)),overlayController=window['__enhanceOverlay'];return;}console[_0x5573ae(0x179)](LOG_PREFIX+_0x5573ae(0xe6));try{_0x4627d7[_0x5573ae(0xf2)]&&(console[_0x5573ae(0x179)](LOG_PREFIX+_0x5573ae(0x17a)),await setupRemoteHMR(_0x4627d7['overlayPath']));console['log'](LOG_PREFIX+_0x5573ae(0xc8)+_0x4627d7[_0x5573ae(0xdf)]);const _0x33bbd3=Date['now'](),_0x351304=await import(_0x4627d7[_0x5573ae(0xdf)]);console[_0x5573ae(0x179)](LOG_PREFIX+'\x20Module\x20imported\x20in\x20'+(Date[_0x5573ae(0x13f)]()-_0x33bbd3)+'ms'),console['log'](LOG_PREFIX+'\x20Module\x20exports:',Object[_0x5573ae(0xc0)](_0x351304));if(typeof _0x351304?.[_0x5573ae(0xe8)]!==_0x5573ae(0x12e)){console['error'](LOG_PREFIX+_0x5573ae(0xf1)),console[_0x5573ae(0xf4)](LOG_PREFIX+_0x5573ae(0x163),Object[_0x5573ae(0xc0)](_0x351304));return;}console['log'](LOG_PREFIX+_0x5573ae(0x14b));const _0x5617d8=_0x351304[_0x5573ae(0xe8)]();console[_0x5573ae(0x179)](LOG_PREFIX+_0x5573ae(0x123),_0x5617d8),overlayController=_0x5617d8,window['__enhanceOverlay']=_0x5617d8,_0x5617d8[_0x5573ae(0x125)](_0x4627d7[_0x5573ae(0x125)]),console[_0x5573ae(0x179)](LOG_PREFIX+'\x20Overlay\x20controller\x20initialized\x20and\x20cached'),console['log'](LOG_PREFIX+'\x20Calling\x20updateOverlay()...'),updateOverlay();}catch(_0x321f6d){console[_0x5573ae(0xf4)](LOG_PREFIX+'\x20Failed\x20to\x20import/create\x20overlay:',_0x321f6d);}}function updateOverlay(){const _0x43322b=_0x5cfe8c;console[_0x43322b(0x179)](LOG_PREFIX+_0x43322b(0x176)),console[_0x43322b(0x179)](LOG_PREFIX+_0x43322b(0xb4)+!!overlayController),console[_0x43322b(0x179)](LOG_PREFIX+_0x43322b(0x13e)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x43322b(0x179)](LOG_PREFIX+_0x43322b(0xc4));return;}const _0x19a282=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+'\x20Updating\x20overlay\x20with\x20state:',JSON[_0x43322b(0x132)](_0x19a282,null,0x2)),overlayController['update'](_0x19a282),console[_0x43322b(0x179)](LOG_PREFIX+_0x43322b(0xca));}function composeOverlayState(_0x11da82){const _0x1a3f93=_0x5cfe8c,_0x182d22=getEnhancementUrl();return console[_0x1a3f93(0x179)](LOG_PREFIX+_0x1a3f93(0x11f)+_0x182d22),console[_0x1a3f93(0x179)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.enabled:\x20'+state[_0x1a3f93(0xd2)]),console[_0x1a3f93(0x179)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.controlled:\x20'+state[_0x1a3f93(0xe3)]),{'enhancementUrl':_0x182d22,'enabled':state[_0x1a3f93(0xd2)],'controlled':state[_0x1a3f93(0xe3)],'overlayPosition':_0x11da82[_0x1a3f93(0x11e)]['position'],'securityMode':_0x11da82[_0x1a3f93(0xcf)],'backendBaseUrl':_0x11da82[_0x1a3f93(0xf6)],'appError':state['appError']};}async function setupRemoteHMR(_0x339af0){const _0x7d0895=_0x5cfe8c;console[_0x7d0895(0x179)](LOG_PREFIX+'\x20setupRemoteHMR()\x20for\x20'+_0x339af0);if(typeof window===_0x7d0895(0x133))return;try{const _0x404cb5=new URL(_0x339af0,window[_0x7d0895(0x131)][_0x7d0895(0x16b)]),_0x37ea71=_0x404cb5['origin'];console[_0x7d0895(0x179)](LOG_PREFIX+_0x7d0895(0x180)+_0x37ea71+_0x7d0895(0xf7)+window[_0x7d0895(0x131)][_0x7d0895(0x16b)]);if(_0x37ea71===window[_0x7d0895(0x131)]['origin']){console[_0x7d0895(0x179)](LOG_PREFIX+_0x7d0895(0x14e));return;}console[_0x7d0895(0x179)](LOG_PREFIX+_0x7d0895(0x17f)),await ensureReactRefreshPreamble(_0x37ea71),await ensureViteClient(_0x37ea71),console['log'](LOG_PREFIX+_0x7d0895(0x155));}catch(_0x2a0be2){console[_0x7d0895(0x10c)](LOG_PREFIX+'\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):',_0x2a0be2);}}async function ensureReactRefreshPreamble(_0x38d519){const _0x1f66e1=_0x5cfe8c;window[_0x1f66e1(0xff)]??(window[_0x1f66e1(0xff)]=new Set());if(window[_0x1f66e1(0xff)]['has'](_0x38d519)){console[_0x1f66e1(0x179)](LOG_PREFIX+_0x1f66e1(0xef)+_0x38d519);return;}console[_0x1f66e1(0x179)](LOG_PREFIX+'\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20'+_0x38d519+_0x1f66e1(0xb9));const _0x3d3c77=await import(_0x38d519+_0x1f66e1(0x162)),_0x1b0cfc=_0x3d3c77&&typeof _0x3d3c77===_0x1f66e1(0x110)&&_0x1f66e1(0x161)in _0x3d3c77?_0x3d3c77[_0x1f66e1(0x161)]:_0x3d3c77;if(!isRefreshRuntime(_0x1b0cfc)){console[_0x1f66e1(0x10c)](LOG_PREFIX+_0x1f66e1(0x150));return;}_0x1b0cfc['injectIntoGlobalHook'](window),window[_0x1f66e1(0x12b)]=()=>{},window[_0x1f66e1(0x10b)]=()=>_0x1882df=>_0x1882df,window[_0x1f66e1(0xda)]=!![],window['__enhanceReactRefreshInstalledOrigins'][_0x1f66e1(0xd7)](_0x38d519),console['log'](LOG_PREFIX+_0x1f66e1(0xcd)+_0x38d519);}async function ensureViteClient(_0x4ab867){const _0x48a7ce=_0x5cfe8c;window[_0x48a7ce(0xee)]??(window['__viteHMRLoaded']=new Set());if(window[_0x48a7ce(0xee)][_0x48a7ce(0xc3)](_0x4ab867)){console[_0x48a7ce(0x179)](LOG_PREFIX+'\x20Vite\x20client\x20already\x20loaded\x20for\x20'+_0x4ab867);return;}console['log'](LOG_PREFIX+_0x48a7ce(0x171)+_0x4ab867+_0x48a7ce(0xb9)),await import(_0x4ab867+'/@vite/client'),window['__viteHMRLoaded'][_0x48a7ce(0xd7)](_0x4ab867),console[_0x48a7ce(0x179)](LOG_PREFIX+_0x48a7ce(0xdd)+_0x4ab867);}function _0x3719(_0xeac9c9,_0x18545a){_0xeac9c9=_0xeac9c9-0xb3;const _0x20210b=_0x2021();let _0x371906=_0x20210b[_0xeac9c9];return _0x371906;}function isRefreshRuntime(_0x2589f4){const _0x4ebd12=_0x5cfe8c;return typeof _0x2589f4===_0x4ebd12(0x110)&&_0x2589f4!==null&&_0x4ebd12(0x15a)in _0x2589f4&&typeof _0x2589f4['injectIntoGlobalHook']===_0x4ebd12(0x12e);}function _0x2021(){const _0x17f987=['./dev/index.js','scope','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','info','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\x20Runtime]','replaceState','\x20updateOverlay()\x20called','^8.5.1','http://','log','\x20Setting\x20up\x20remote\x20HMR...','readyState','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','3970503xJyrJI','\x20doLoadOverlay()\x20starting...','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','\x20Overlay\x20origin:\x20','enableOverlayHmr','\x20overlayController\x20exists:\x20','^11.1.0','__enhanceOptions','href','\x20Failed\x20to\x20register\x20service\x20worker:','...','none','\x20Starting\x20SW\x20registration\x20(async)...','enable','__enhanceController','history','./dev/index.d.ts','keys','get','./dev/cli.js','has','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','enhancementUrl','controller','\x20Importing\x20overlay\x20module\x20from:\x20','\x20Updating\x20overlay...','\x20Overlay\x20update\x20complete','^4.1.1','\x20overlayPath:\x20','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','556624urQPQZ','security','__enhanceInitialized','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','enabled','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','bun\x20version\x20patch\x20--no-git-tag-version','installing','delete','add','0.0.0','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','__vite_plugin_react_preamble_installed__','runtimeURL','includes','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','searchParams','overlayPath','323184pykDTr','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','\x20No\x20window\x20object\x20-\x20skipping','controlled','100bZkpLW','string','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','appError','createOverlay','toLowerCase','\x20enhancementId:\x20','err','tsc\x20--noEmit','sw-enhance','__viteHMRLoaded','\x20React\x20Refresh\x20already\x20installed\x20for\x20','\x20swPath:\x20','\x20Module\x20missing\x20createOverlay\x20export!','enableViteHmr','reload','error','scriptURL','backendUrl',',\x20page\x20origin:\x20','\x20Starting\x20overlay\x20load\x20(async)...','\x20No\x20blocking\x20SW\x20found','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','\x20Current\x20URL:\x20','\x20ownsServiceWorker?\x20scriptURL=','module','options','__enhanceReactRefreshInstalledOrigins','bottom-right','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','\x20Starting\x20fresh\x20overlay\x20load...','enhance:disable','title','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','\x20loadOverlay()\x20complete','\x20registerServiceWorker()\x20complete','https://api.enhancelabs.ai','ready','\x20Registering\x20SW\x20at\x20','$RefreshSig$','warn','https://','toString','\x20Enhancement\x20detection:\x20wasEnhanced=','object','vite:error','startsWith','dev/','\x20Unregistering\x20SW...','waiting','\x20Current\x20controller\x20after\x20ready:','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','3106502InnOWL','serviceWorkerURL','getRegistration','/assets/enhance-runtime.js','postMessage','trim','overlay','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','5dHPqHU','[data-enhance-runtime-bootstrap]','\x20Unregistering\x20any\x20existing\x20SW...','\x20Controller\x20created:','public','onToggle','init','\x20Sending\x20customer\x20configuration...','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup',',\x20owns=','\x20enableViteHmr:\x20','$RefreshReg$','\x20Enhancement\x20mode\x20ENABLED','hasEnhancement','function','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','\x20sendConfiguration()\x20called','location','stringify','undefined','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','\x20BLOCKING\x20SW\x20detected:\x20','\x20Controller\x20state:','\x20loadOverlay()\x20called','enhance','\x20Normalized\x20options:','8022HspiPJ','off','\x20unregisterServiceWorker()\x20called','MIT','\x20currentOptions\x20exists:\x20','now','@enhance-eng/sandbox','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','\x20enhancementUrl:\x20','\x20SW\x20unregistered\x20successfully','swPath','active','\x20with\x20scope\x20\x27/\x27...','4699580AciHsR','version','\x20init()\x20complete\x20-\x20normal\x20mode','\x20state.enabled:\x20','\x20Calling\x20createOverlay()...','disable','8NhIwgZ','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','state','\x20Invalid\x20React\x20Refresh\x20runtime','140202pZPUwq','N/A','enhancementId','/sw-enhance.js','\x20HMR\x20setup\x20complete','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','https://assets.enhancelabs.ai/overlay.js','serviceWorker','state:\x20','injectIntoGlobalHook','enhancement','\x20Config\x20sent\x20to\x20SW','vite:beforeUpdate','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','\x20Registration\x20returned:',',\x20currentOptions:\x20','default','/@react-refresh','\x20Available\x20exports:','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','[Enhance\x20SW-Client]','\x20detectBlocking\x20-\x20existing\x20registration:','unregister','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','\x20init()\x20called\x20at\x20','\x20registerServiceWorker()\x20called','origin','^24.10.1','\x20SW\x20ready!\x20Active:','^7.2.4'];_0x2021=function(){return _0x17f987;};return _0x2021();}var WORKER_MESSAGE_CONFIG='enhance:configure',WORKER_MESSAGE_DISABLE=_0x5cfe8c(0x103),LOG_PREFIX2=_0x5cfe8c(0x165),registration=null,currentOptions2=null;async function registerServiceWorker(_0x5be44c){const _0xbfb06d=_0x5cfe8c;console[_0xbfb06d(0x179)](LOG_PREFIX2+_0xbfb06d(0x16a)),console[_0xbfb06d(0x179)](LOG_PREFIX2+_0xbfb06d(0xf0)+_0x5be44c[_0xbfb06d(0x144)]);if(!(_0xbfb06d(0x158)in navigator)){console['warn'](LOG_PREFIX2+_0xbfb06d(0x134));return;}console[_0xbfb06d(0x179)](LOG_PREFIX2+'\x20Service\x20workers\x20supported');const _0x261e17=navigator[_0xbfb06d(0x158)][_0xbfb06d(0xc7)];console[_0xbfb06d(0x179)](LOG_PREFIX2+'\x20Current\x20controller:',_0x261e17?.[_0xbfb06d(0xf5)]??'none'),console[_0xbfb06d(0x179)](LOG_PREFIX2+_0xbfb06d(0x136),_0x261e17?.[_0xbfb06d(0x14f)]??_0xbfb06d(0x152));const _0x13eca9=!!_0x261e17;currentOptions2=_0x5be44c,console[_0xbfb06d(0x179)](LOG_PREFIX2+'\x20Checking\x20for\x20blocking\x20service\x20worker...');const _0x12d459=await detectBlockingServiceWorker(_0x5be44c[_0xbfb06d(0x144)]);if(_0x12d459){console[_0xbfb06d(0xf4)](LOG_PREFIX2+_0xbfb06d(0x135)+_0x12d459),console['error'](LOG_PREFIX2+'\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered');return;}console[_0xbfb06d(0x179)](LOG_PREFIX2+_0xbfb06d(0xf9));try{console[_0xbfb06d(0x179)](LOG_PREFIX2+_0xbfb06d(0x10a)+_0x5be44c['swPath']+_0xbfb06d(0x146)),registration=await navigator[_0xbfb06d(0x158)]['register'](_0x5be44c[_0xbfb06d(0x144)],{'scope':'/'}),console[_0xbfb06d(0x179)](LOG_PREFIX2+_0xbfb06d(0x15f),{'scope':registration['scope'],'active':registration[_0xbfb06d(0x145)]?.['scriptURL'],'waiting':registration[_0xbfb06d(0x115)]?.[_0xbfb06d(0xf5)],'installing':registration['installing']?.[_0xbfb06d(0xf5)]}),console['log'](LOG_PREFIX2+_0xbfb06d(0x105));const _0x461606=await navigator[_0xbfb06d(0x158)][_0xbfb06d(0x109)];console[_0xbfb06d(0x179)](LOG_PREFIX2+_0xbfb06d(0x16d),_0x461606['active']?.['scriptURL']);const _0xcf5d63=ownsCurrentController(_0x5be44c[_0xbfb06d(0x144)]);state[_0xbfb06d(0xe3)]=_0xcf5d63,console['log'](LOG_PREFIX2+'\x20Page\x20controlled\x20by\x20our\x20SW:\x20'+_0xcf5d63),console[_0xbfb06d(0x179)](LOG_PREFIX2+_0xbfb06d(0x116),navigator[_0xbfb06d(0x158)][_0xbfb06d(0xc7)]?.['scriptURL']??_0xbfb06d(0xba));if(!_0x13eca9&&!navigator['serviceWorker'][_0xbfb06d(0xc7)]){console['log'](LOG_PREFIX2+_0xbfb06d(0xd3)),window[_0xbfb06d(0x131)]['reload']();return;}console['log'](LOG_PREFIX2+_0xbfb06d(0x127)),await sendConfiguration();if(state[_0xbfb06d(0xd2)]){const _0x44785c=document['querySelector'](_0xbfb06d(0x121))!==null;console[_0xbfb06d(0x179)](LOG_PREFIX2+_0xbfb06d(0x10f)+_0x44785c);if(!_0x44785c){console['log'](LOG_PREFIX2+'\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement'),window[_0xbfb06d(0x131)][_0xbfb06d(0xf3)]();return;}}console[_0xbfb06d(0x179)](LOG_PREFIX2+_0xbfb06d(0xc9)),updateOverlay(),console['log'](LOG_PREFIX2+_0xbfb06d(0x107));}catch(_0x488b7a){console[_0xbfb06d(0xf4)](LOG_PREFIX2+_0xbfb06d(0xb8),_0x488b7a);}}async function sendConfiguration(){const _0x32c525=_0x5cfe8c;console[_0x32c525(0x179)](LOG_PREFIX2+_0x32c525(0x130)),console[_0x32c525(0x179)](LOG_PREFIX2+_0x32c525(0x14a)+state[_0x32c525(0xd2)]+_0x32c525(0x160)+!!currentOptions2);if(!state['enabled']||!currentOptions2){console[_0x32c525(0x179)](LOG_PREFIX2+'\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options');return;}const _0x51228a=await resolveWorker();if(!_0x51228a){console[_0x32c525(0x10c)](LOG_PREFIX2+'\x20No\x20service\x20worker\x20active\x20to\x20configure');return;}const _0x2cdcd8={'callbackBypass':currentOptions2['callbackBypass'],'securityMode':currentOptions2[_0x32c525(0xcf)]};console['log'](LOG_PREFIX2+'\x20Sending\x20customer\x20config\x20to\x20SW:',JSON[_0x32c525(0x132)](_0x2cdcd8,null,0x2)),_0x51228a['postMessage']({'type':WORKER_MESSAGE_CONFIG,'config':_0x2cdcd8}),console[_0x32c525(0x179)](LOG_PREFIX2+_0x32c525(0x15c));}async function unregisterServiceWorker(_0x22eba0){const _0x3be97a=_0x5cfe8c;console[_0x3be97a(0x179)](LOG_PREFIX2+_0x3be97a(0x13c));if(!(_0x3be97a(0x158)in navigator)){console[_0x3be97a(0x179)](LOG_PREFIX2+_0x3be97a(0xfa));return;}try{const _0x3feeb1=registration??await navigator[_0x3be97a(0x158)][_0x3be97a(0x11a)]('/');if(!_0x3feeb1){console[_0x3be97a(0x179)](LOG_PREFIX2+'\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister');return;}console['log'](LOG_PREFIX2+'\x20Found\x20registration:',{'scope':_0x3feeb1[_0x3be97a(0x170)],'active':_0x3feeb1[_0x3be97a(0x145)]?.['scriptURL'],'waiting':_0x3feeb1[_0x3be97a(0x115)]?.[_0x3be97a(0xf5)],'installing':_0x3feeb1[_0x3be97a(0xd5)]?.[_0x3be97a(0xf5)]});const _0x598884=[_0x3feeb1[_0x3be97a(0x145)]?.[_0x3be97a(0xf5)],_0x3feeb1[_0x3be97a(0x115)]?.[_0x3be97a(0xf5)],_0x3feeb1['installing']?.[_0x3be97a(0xf5)]],_0x14be96=_0x598884['some'](_0x4dfca1=>_0x4dfca1&&ownsServiceWorker(_0x4dfca1,_0x22eba0));if(!_0x14be96){console[_0x3be97a(0x179)](LOG_PREFIX2+_0x3be97a(0x156));return;}_0x3feeb1[_0x3be97a(0x145)]&&(console[_0x3be97a(0x179)](LOG_PREFIX2+_0x3be97a(0xd1)),_0x3feeb1['active'][_0x3be97a(0x11c)]({'type':WORKER_MESSAGE_DISABLE})),console[_0x3be97a(0x179)](LOG_PREFIX2+_0x3be97a(0x114)),await _0x3feeb1[_0x3be97a(0x167)](),registration=null,currentOptions2=null,console[_0x3be97a(0x179)](LOG_PREFIX2+_0x3be97a(0x143));}catch(_0x1bbd3f){console[_0x3be97a(0xf4)](LOG_PREFIX2+'\x20Failed\x20to\x20unregister\x20service\x20worker:',_0x1bbd3f);}}function ownsServiceWorker(_0x51266a,_0x3f2665){const _0x3fa9a6=_0x5cfe8c,_0x12fdda=typeof window!==_0x3fa9a6(0x133)?window['location']['origin']:'',_0x1056e5=new URL(_0x3f2665,_0x12fdda||void 0x0)[_0x3fa9a6(0xb7)],_0x2ffb82=_0x51266a===_0x1056e5||_0x51266a[_0x3fa9a6(0xdc)](_0x3fa9a6(0xed));return console[_0x3fa9a6(0x179)](LOG_PREFIX2+_0x3fa9a6(0xfc)+_0x51266a+',\x20expected='+_0x1056e5+_0x3fa9a6(0x129)+_0x2ffb82),_0x2ffb82;}function ownsCurrentController(_0x1ff644){const _0x3ec43d=_0x5cfe8c;if(typeof navigator===_0x3ec43d(0x133))return![];const _0xb2675=navigator[_0x3ec43d(0x158)]?.[_0x3ec43d(0xc7)];if(!_0xb2675)return console[_0x3ec43d(0x179)](LOG_PREFIX2+'\x20No\x20current\x20controller'),![];return ownsServiceWorker(_0xb2675[_0x3ec43d(0xf5)],_0x1ff644);}async function detectBlockingServiceWorker(_0x223a0d){const _0xb2bea8=_0x5cfe8c;if(!navigator[_0xb2bea8(0x158)])return null;try{const _0xd6ed0c=await navigator[_0xb2bea8(0x158)][_0xb2bea8(0x11a)]('/');console['log'](LOG_PREFIX2+_0xb2bea8(0x166),_0xd6ed0c?.[_0xb2bea8(0x145)]?.[_0xb2bea8(0xf5)]??_0xb2bea8(0xba));const _0x5798e3=_0xd6ed0c?.[_0xb2bea8(0x145)]?.[_0xb2bea8(0xf5)];if(!_0x5798e3)return null;if(ownsServiceWorker(_0x5798e3,_0x223a0d))return null;return _0x5798e3;}catch(_0x1a8e2f){return console[_0xb2bea8(0xf4)](LOG_PREFIX2+'\x20detectBlocking\x20error:',_0x1a8e2f),null;}}async function resolveWorker(){const _0x1b21c8=_0x5cfe8c,_0x8b471a=registration??await navigator[_0x1b21c8(0x158)]?.[_0x1b21c8(0x11a)]('/'),_0x441e03=_0x8b471a?.[_0x1b21c8(0x145)]??_0x8b471a?.[_0x1b21c8(0x115)]??_0x8b471a?.['installing']??null;return console[_0x1b21c8(0x179)](LOG_PREFIX2+'\x20resolveWorker:',_0x441e03?.[_0x1b21c8(0xf5)]??_0x1b21c8(0xba),_0x1b21c8(0x159)+(_0x441e03?.['state']??_0x1b21c8(0x152))),_0x441e03;}var LOG_PREFIX3=_0x5cfe8c(0x174);function isInitialized(){const _0x4574ab=_0x5cfe8c;return typeof window!==_0x4574ab(0x133)&&window[_0x4574ab(0xd0)]===!![];}function setInitialized(_0x108873){const _0x133029=_0x5cfe8c;typeof window!==_0x133029(0x133)&&(window[_0x133029(0xd0)]=_0x108873);}function getOptions(){const _0x4233c6=_0x5cfe8c;return typeof window!==_0x4233c6(0x133)?window[_0x4233c6(0xb6)]??null:null;}function setOptions(_0x17a26d){const _0x43aa94=_0x5cfe8c;typeof window!==_0x43aa94(0x133)&&(window[_0x43aa94(0xb6)]=_0x17a26d);}var Enhance={'init'(_0x19a9ad={}){const _0x5e0d95=_0x5cfe8c,_0x471057=Date[_0x5e0d95(0x13f)]();console[_0x5e0d95(0x179)](LOG_PREFIX3+_0x5e0d95(0x169)+_0x471057),console[_0x5e0d95(0x179)](LOG_PREFIX3+_0x5e0d95(0xfb)+window[_0x5e0d95(0x131)][_0x5e0d95(0xb7)]),console['log'](LOG_PREFIX3+'\x20Document\x20readyState:\x20'+document[_0x5e0d95(0x17b)]),console[_0x5e0d95(0x179)](LOG_PREFIX3+'\x20Raw\x20options:',JSON[_0x5e0d95(0x132)](_0x19a9ad,null,0x2));if(isInitialized())return console['warn'](LOG_PREFIX3+_0x5e0d95(0xe1)),window[_0x5e0d95(0xbd)]??createController();setInitialized(!![]),console[_0x5e0d95(0x179)](LOG_PREFIX3+'\x20First\x20initialization');const _0x4a29d0=normalizeOptions(_0x19a9ad);setOptions(_0x4a29d0),console[_0x5e0d95(0x179)](LOG_PREFIX3+_0x5e0d95(0x139),JSON['stringify'](_0x4a29d0,null,0x2));const _0x53b056=parseUrlParams();console[_0x5e0d95(0x179)](LOG_PREFIX3+'\x20URL\x20params\x20parsed:',JSON[_0x5e0d95(0x132)](_0x53b056,null,0x2));if(_0x53b056['explicitDisable'])return cleanUrlParam(_0x5e0d95(0x138)),console['log'](LOG_PREFIX3+'\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting'),createController();if(_0x53b056[_0x5e0d95(0x12d)])return console[_0x5e0d95(0x179)](LOG_PREFIX3+_0x5e0d95(0x12c)),console['log'](LOG_PREFIX3+_0x5e0d95(0x142)+_0x53b056['enhancementUrl']),console['log'](LOG_PREFIX3+_0x5e0d95(0xea)+_0x53b056[_0x5e0d95(0x153)]),state[_0x5e0d95(0xd2)]=!![],console['log'](LOG_PREFIX3+_0x5e0d95(0xf8)),void loadOverlay({'overlayPath':_0x4a29d0['overlayPath'],'enableViteHmr':_0x4a29d0['overlay']['enableViteHmr'],'options':_0x4a29d0,'onToggle':handleToggle}),console[_0x5e0d95(0x179)](LOG_PREFIX3+_0x5e0d95(0xbb)),void registerServiceWorker(_0x4a29d0),console[_0x5e0d95(0x179)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20enhancement\x20mode'),createController();return console['log'](LOG_PREFIX3+_0x5e0d95(0x117)),console[_0x5e0d95(0x179)](LOG_PREFIX3+_0x5e0d95(0x122)),void unregisterServiceWorker(_0x4a29d0[_0x5e0d95(0x144)]),console['log'](LOG_PREFIX3+_0x5e0d95(0x149)),import.meta.hot&&(console[_0x5e0d95(0x179)](LOG_PREFIX3+_0x5e0d95(0xc5)),import.meta.hot['on'](_0x5e0d95(0x111),_0x4594e2=>{const _0x2fb4fe=_0x5e0d95;console[_0x2fb4fe(0x179)](LOG_PREFIX3+'\x20Vite\x20error\x20detected:',_0x4594e2),state[_0x2fb4fe(0xe7)]={'message':_0x4594e2[_0x2fb4fe(0xeb)]['message']},updateOverlay();}),import.meta.hot['on'](_0x5e0d95(0x15d),()=>{const _0x4a2989=_0x5e0d95;state[_0x4a2989(0xe7)]&&(console['log'](LOG_PREFIX3+_0x4a2989(0x12f)),state[_0x4a2989(0xe7)]=null,updateOverlay());})),createController();}};function createController(){const _0x151c26=_0x5cfe8c,_0x24a344={'enable'(){const _0x2d227d=_0x3719,_0x147d7a=getOptions();if(!_0x147d7a)return;state[_0x2d227d(0xd2)]=!![],void loadOverlay({'overlayPath':_0x147d7a[_0x2d227d(0xdf)],'enableViteHmr':_0x147d7a[_0x2d227d(0x11e)][_0x2d227d(0xf2)],'options':_0x147d7a,'onToggle':handleToggle}),void registerServiceWorker(_0x147d7a),void sendConfiguration(),updateOverlay();},'disable'(){const _0x3de7f6=_0x3719,_0x163515=getOptions();if(!_0x163515)return;state[_0x3de7f6(0xd2)]=![],state[_0x3de7f6(0xe3)]=![],updateOverlay(),void unregisterServiceWorker(_0x163515[_0x3de7f6(0x144)]);},'status'(){const _0x21d461=_0x3719;return{'enabled':state[_0x21d461(0xd2)],'controlled':state[_0x21d461(0xe3)]};}};return typeof window!==_0x151c26(0x133)&&(window['__enhanceController']=_0x24a344),_0x24a344;}function handleToggle(){const _0x3d5f48=_0x5cfe8c,_0x29d55f=createController();state[_0x3d5f48(0xd2)]?_0x29d55f[_0x3d5f48(0x14c)]():_0x29d55f[_0x3d5f48(0xbc)]();}function parseUrlParams(){const _0x1a0abe=_0x5cfe8c,_0x352cf2=new URL(window[_0x1a0abe(0x131)]['href']),_0x11008f=_0x352cf2[_0x1a0abe(0xde)][_0x1a0abe(0xc1)](_0x1a0abe(0x138))?.[_0x1a0abe(0xe9)](),_0x48208d=_0x352cf2['searchParams']['get'](_0x1a0abe(0xc6)),_0x1a6589=_0x352cf2[_0x1a0abe(0xde)][_0x1a0abe(0xc1)](_0x1a0abe(0x15b));return{'hasEnhancement':Boolean(_0x48208d||_0x1a6589),'explicitDisable':_0x11008f==='0'||_0x11008f==='false'||_0x11008f===_0x1a0abe(0x13b),'enhancementUrl':_0x48208d,'enhancementId':_0x1a6589};}function cleanUrlParam(_0x30cf9f){const _0x970dbb=_0x5cfe8c,_0x496a17=new URL(window[_0x970dbb(0x131)][_0x970dbb(0xb7)]);_0x496a17[_0x970dbb(0xde)]['has'](_0x30cf9f)&&(_0x496a17['searchParams'][_0x970dbb(0xd6)](_0x30cf9f),window[_0x970dbb(0xbe)][_0x970dbb(0x175)](null,document[_0x970dbb(0x104)],_0x496a17[_0x970dbb(0x10e)]()));}var package_default={'name':_0x5cfe8c(0x140),'version':'0.3.20','type':_0x5cfe8c(0xfd),'description':_0x5cfe8c(0x17c),'license':_0x5cfe8c(0x13d),'main':'./dev/index.js','module':_0x5cfe8c(0x16f),'types':_0x5cfe8c(0xbf),'exports':{'.':{'types':'./dev/index.d.ts','import':_0x5cfe8c(0x16f)},'./vite':{'types':'./dev/vite/index.d.ts','import':'./dev/vite/index.js'}},'files':[_0x5cfe8c(0x113)],'bin':{'enhance-sandbox':_0x5cfe8c(0xc2)},'scripts':{'typecheck':_0x5cfe8c(0xec),'dev':_0x5cfe8c(0x15e),'dev:build':_0x5cfe8c(0x164),'dev:staging':_0x5cfe8c(0xd9),'dev:staging:build':_0x5cfe8c(0x128),'build':_0x5cfe8c(0x168),'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':_0x5cfe8c(0x173),'version':_0x5cfe8c(0xd4)},'dependencies':{'commander':_0x5cfe8c(0xb5),'zod':'^3.22.4'},'devDependencies':{'@types/node':_0x5cfe8c(0x16c),'javascript-obfuscator':_0x5cfe8c(0xcb),'tsup':_0x5cfe8c(0x177),'vite':_0x5cfe8c(0x16e)},'publishConfig':{'access':_0x5cfe8c(0x124)}},DEFAULT_SERVICE_WORKER_PATH=_0x5cfe8c(0x154),DEFAULT_RUNTIME_PATH=_0x5cfe8c(0x11b),PACKAGE_VERSION=typeof package_default[_0x5cfe8c(0x148)]===_0x5cfe8c(0xe5)?package_default[_0x5cfe8c(0x148)]:_0x5cfe8c(0xd8);function normalizeAssetPath(_0x2d7f02){const _0x5bd472=_0x5cfe8c;if(!_0x2d7f02)return _0x2d7f02;if(_0x2d7f02[_0x5bd472(0x112)](_0x5bd472(0x178))||_0x2d7f02[_0x5bd472(0x112)](_0x5bd472(0x10d)))return _0x2d7f02;const _0x45e4c7=_0x2d7f02['replace'](/^\.\//,'');return _0x45e4c7[_0x5bd472(0x112)]('/')?_0x45e4c7:'/'+_0x45e4c7;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x3140e7){const _0x4828ac=_0x5cfe8c;return Enhance[_0x4828ac(0x126)](_0x3140e7);},'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 _0x26d63d=_0x5cfe8c;return Enhance2[_0x26d63d(0x119)]();}function runtimeURL(){const _0x19b7e8=_0x5cfe8c;return Enhance2[_0x19b7e8(0xdb)]();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
|
|
1
|
+
const _0x26212c=_0x483c;(function(_0x15e3c4,_0x117a55){const _0x48dd30=_0x483c,_0x30992d=_0x15e3c4();while(!![]){try{const _0x19eb21=parseInt(_0x48dd30(0x15d))/0x1*(-parseInt(_0x48dd30(0x1e7))/0x2)+parseInt(_0x48dd30(0x1fe))/0x3*(parseInt(_0x48dd30(0x215))/0x4)+parseInt(_0x48dd30(0x191))/0x5+-parseInt(_0x48dd30(0x157))/0x6*(parseInt(_0x48dd30(0x21d))/0x7)+parseInt(_0x48dd30(0x1a2))/0x8*(-parseInt(_0x48dd30(0x1cc))/0x9)+-parseInt(_0x48dd30(0x21e))/0xa+parseInt(_0x48dd30(0x1e0))/0xb*(parseInt(_0x48dd30(0x218))/0xc);if(_0x19eb21===_0x117a55)break;else _0x30992d['push'](_0x30992d['shift']());}catch(_0x330cee){_0x30992d['push'](_0x30992d['shift']());}}}(_0x2e61,0x2f8fe));var DEFAULT_OVERLAY_PATH=!![]?_0x26212c(0x1da):'https://assets.enhancelabs.ai/overlay.js',DEFAULT_BACKEND_URL=!![]?_0x26212c(0x1b0):_0x26212c(0x1b0),DEFAULT_OVERLAY_HMR=!![]?![]:![];console['log'](_0x26212c(0x18f),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x5f2f18){const _0x53e79d=_0x26212c,_0x5d45c8=_0x5f2f18[_0x53e79d(0x1e4)]??{};return{'callbackBypass':_0x5f2f18[_0x53e79d(0x184)]??[],'overlay':{'enabled':!![],'position':_0x53e79d(0x1cd),'enableViteHmr':_0x5d45c8[_0x53e79d(0x194)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x53e79d(0x1fa),'swPath':_0x53e79d(0x192),'overlayPath':_0x5d45c8[_0x53e79d(0x15e)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x53e79d(0x174),'security':_0x5d45c8['security']??_0x53e79d(0x16c),'backendUrl':_0x5d45c8[_0x53e79d(0x214)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementUrl(){const _0x20b2cc=_0x26212c;try{const _0x52acd8=new URLSearchParams(window[_0x20b2cc(0x1d6)]['search']);return _0x52acd8['get'](_0x20b2cc(0x1db))?.[_0x20b2cc(0x1ad)]()||'';}catch{return'';}}var LOG_PREFIX=_0x26212c(0x163),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x38bb67){const _0x792650=_0x26212c;console[_0x792650(0x22c)](LOG_PREFIX+_0x792650(0x201)),console['log'](LOG_PREFIX+_0x792650(0x17c)+_0x38bb67[_0x792650(0x15e)]),console['log'](LOG_PREFIX+'\x20enableViteHmr:\x20'+_0x38bb67['enableViteHmr']),currentOptions=_0x38bb67[_0x792650(0x19e)],toggleHandler=_0x38bb67[_0x792650(0x1a6)];if(overlayController){console['log'](LOG_PREFIX+_0x792650(0x1bc)),updateOverlay();return;}if(overlayLoadPromise)return console['log'](LOG_PREFIX+_0x792650(0x196)),overlayLoadPromise;console[_0x792650(0x22c)](LOG_PREFIX+_0x792650(0x221)),overlayLoadPromise=doLoadOverlay(_0x38bb67);try{await overlayLoadPromise,console[_0x792650(0x22c)](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0x1c17fd){console[_0x792650(0x229)](LOG_PREFIX+_0x792650(0x207),_0x1c17fd);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x5dc681){const _0x359f30=_0x26212c;console[_0x359f30(0x22c)](LOG_PREFIX+_0x359f30(0x1a7));if(typeof window==='undefined'){console[_0x359f30(0x22c)](LOG_PREFIX+_0x359f30(0x158));return;}if(window[_0x359f30(0x227)]){console['log'](LOG_PREFIX+_0x359f30(0x1e2)),overlayController=window[_0x359f30(0x227)];return;}console[_0x359f30(0x22c)](LOG_PREFIX+'\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module');try{_0x5dc681[_0x359f30(0x1d0)]&&(console[_0x359f30(0x22c)](LOG_PREFIX+_0x359f30(0x19f)),await setupRemoteHMR(_0x5dc681[_0x359f30(0x15e)]));console[_0x359f30(0x22c)](LOG_PREFIX+_0x359f30(0x22b)+_0x5dc681[_0x359f30(0x15e)]);const _0x2beae8=Date[_0x359f30(0x195)](),_0x589ddc=await import(_0x5dc681[_0x359f30(0x15e)]);console['log'](LOG_PREFIX+_0x359f30(0x216)+(Date[_0x359f30(0x195)]()-_0x2beae8)+'ms'),console[_0x359f30(0x22c)](LOG_PREFIX+'\x20Module\x20exports:',Object[_0x359f30(0x1eb)](_0x589ddc));if(typeof _0x589ddc?.[_0x359f30(0x190)]!==_0x359f30(0x1af)){console[_0x359f30(0x229)](LOG_PREFIX+_0x359f30(0x18e)),console['error'](LOG_PREFIX+_0x359f30(0x1bd),Object[_0x359f30(0x1eb)](_0x589ddc));return;}console[_0x359f30(0x22c)](LOG_PREFIX+_0x359f30(0x1ab));const _0x25a6af=_0x589ddc[_0x359f30(0x190)]();console[_0x359f30(0x22c)](LOG_PREFIX+_0x359f30(0x22d),_0x25a6af),overlayController=_0x25a6af,window['__enhanceOverlay']=_0x25a6af,_0x25a6af[_0x359f30(0x1a6)](_0x5dc681[_0x359f30(0x1a6)]),console['log'](LOG_PREFIX+'\x20Overlay\x20controller\x20initialized\x20and\x20cached'),console['log'](LOG_PREFIX+_0x359f30(0x1d1)),updateOverlay();}catch(_0x283ea3){console['error'](LOG_PREFIX+'\x20Failed\x20to\x20import/create\x20overlay:',_0x283ea3);}}function updateOverlay(){const _0x115c8c=_0x26212c;console['log'](LOG_PREFIX+'\x20updateOverlay()\x20called'),console[_0x115c8c(0x22c)](LOG_PREFIX+_0x115c8c(0x162)+!!overlayController),console[_0x115c8c(0x22c)](LOG_PREFIX+_0x115c8c(0x21f)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x115c8c(0x22c)](LOG_PREFIX+_0x115c8c(0x20f));return;}const _0x7debf8=composeOverlayState(currentOptions);console[_0x115c8c(0x22c)](LOG_PREFIX+_0x115c8c(0x231),JSON['stringify'](_0x7debf8,null,0x2)),overlayController['update'](_0x7debf8),console[_0x115c8c(0x22c)](LOG_PREFIX+_0x115c8c(0x21b));}function composeOverlayState(_0x5d661d){const _0x4e177f=_0x26212c,_0x46fed2=getEnhancementUrl();return console[_0x4e177f(0x22c)](LOG_PREFIX+_0x4e177f(0x1b3)+_0x46fed2),console['log'](LOG_PREFIX+_0x4e177f(0x1b2)+state[_0x4e177f(0x209)]),console['log'](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.controlled:\x20'+state[_0x4e177f(0x1f4)]),{'enhancementUrl':_0x46fed2,'enabled':state['enabled'],'controlled':state[_0x4e177f(0x1f4)],'overlayPosition':_0x5d661d[_0x4e177f(0x1d2)][_0x4e177f(0x15f)],'securityMode':_0x5d661d[_0x4e177f(0x1e3)],'backendBaseUrl':_0x5d661d['backendUrl'],'appError':state['appError']};}async function setupRemoteHMR(_0x48899e){const _0x58e5b3=_0x26212c;console[_0x58e5b3(0x22c)](LOG_PREFIX+_0x58e5b3(0x206)+_0x48899e);if(typeof window===_0x58e5b3(0x1e9))return;try{const _0x14fbc9=new URL(_0x48899e,window[_0x58e5b3(0x1d6)][_0x58e5b3(0x21c)]),_0x4cd2fb=_0x14fbc9[_0x58e5b3(0x21c)];console[_0x58e5b3(0x22c)](LOG_PREFIX+_0x58e5b3(0x18a)+_0x4cd2fb+_0x58e5b3(0x1b1)+window[_0x58e5b3(0x1d6)][_0x58e5b3(0x21c)]);if(_0x4cd2fb===window[_0x58e5b3(0x1d6)]['origin']){console[_0x58e5b3(0x22c)](LOG_PREFIX+_0x58e5b3(0x1c8));return;}console[_0x58e5b3(0x22c)](LOG_PREFIX+'\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...'),await ensureReactRefreshPreamble(_0x4cd2fb),await ensureViteClient(_0x4cd2fb),console['log'](LOG_PREFIX+_0x58e5b3(0x1d4));}catch(_0xcacae4){console[_0x58e5b3(0x17e)](LOG_PREFIX+_0x58e5b3(0x165),_0xcacae4);}}async function ensureReactRefreshPreamble(_0x3f2bcb){const _0xc533b5=_0x26212c;window['__enhanceReactRefreshInstalledOrigins']??(window[_0xc533b5(0x186)]=new Set());if(window[_0xc533b5(0x186)][_0xc533b5(0x18b)](_0x3f2bcb)){console[_0xc533b5(0x22c)](LOG_PREFIX+_0xc533b5(0x224)+_0x3f2bcb);return;}console[_0xc533b5(0x22c)](LOG_PREFIX+_0xc533b5(0x1cf)+_0x3f2bcb+_0xc533b5(0x160));const _0x422718=await import(_0x3f2bcb+'/@react-refresh'),_0x1d53a5=_0x422718&&typeof _0x422718===_0xc533b5(0x16b)&&_0xc533b5(0x1e6)in _0x422718?_0x422718[_0xc533b5(0x1e6)]:_0x422718;if(!isRefreshRuntime(_0x1d53a5)){console[_0xc533b5(0x17e)](LOG_PREFIX+_0xc533b5(0x1c9));return;}_0x1d53a5[_0xc533b5(0x226)](window),window[_0xc533b5(0x17d)]=()=>{},window[_0xc533b5(0x21a)]=()=>_0x280eb8=>_0x280eb8,window['__vite_plugin_react_preamble_installed__']=!![],window[_0xc533b5(0x186)][_0xc533b5(0x225)](_0x3f2bcb),console[_0xc533b5(0x22c)](LOG_PREFIX+_0xc533b5(0x178)+_0x3f2bcb);}async function ensureViteClient(_0x3b2e0e){const _0x5a4725=_0x26212c;window[_0x5a4725(0x1f9)]??(window['__viteHMRLoaded']=new Set());if(window[_0x5a4725(0x1f9)][_0x5a4725(0x18b)](_0x3b2e0e)){console['log'](LOG_PREFIX+_0x5a4725(0x1dc)+_0x3b2e0e);return;}console[_0x5a4725(0x22c)](LOG_PREFIX+_0x5a4725(0x161)+_0x3b2e0e+'...'),await import(_0x3b2e0e+_0x5a4725(0x1f6)),window[_0x5a4725(0x1f9)][_0x5a4725(0x225)](_0x3b2e0e),console[_0x5a4725(0x22c)](LOG_PREFIX+_0x5a4725(0x1cb)+_0x3b2e0e);}function isRefreshRuntime(_0x5efcea){const _0x1c4c08=_0x26212c;return typeof _0x5efcea===_0x1c4c08(0x16b)&&_0x5efcea!==null&&_0x1c4c08(0x226)in _0x5efcea&&typeof _0x5efcea[_0x1c4c08(0x226)]===_0x1c4c08(0x1af);}var WORKER_MESSAGE_CONFIG=_0x26212c(0x19d),WORKER_MESSAGE_DISABLE=_0x26212c(0x1fb),LOG_PREFIX2='[Enhance\x20SW-Client]',registration=null,currentOptions2=null;async function registerServiceWorker(_0x53fe0a){const _0x287eb0=_0x26212c;console[_0x287eb0(0x22c)](LOG_PREFIX2+'\x20registerServiceWorker()\x20called'),console[_0x287eb0(0x22c)](LOG_PREFIX2+_0x287eb0(0x166)+_0x53fe0a[_0x287eb0(0x197)]);if(!(_0x287eb0(0x1d8)in navigator)){console[_0x287eb0(0x17e)](LOG_PREFIX2+_0x287eb0(0x1de));return;}console[_0x287eb0(0x22c)](LOG_PREFIX2+_0x287eb0(0x1ed));const _0x511360=navigator[_0x287eb0(0x1d8)][_0x287eb0(0x220)];console[_0x287eb0(0x22c)](LOG_PREFIX2+_0x287eb0(0x17b),_0x511360?.['scriptURL']??_0x287eb0(0x1f0)),console['log'](LOG_PREFIX2+_0x287eb0(0x181),_0x511360?.[_0x287eb0(0x200)]??_0x287eb0(0x16f));const _0x404bcd=!!_0x511360;currentOptions2=_0x53fe0a,console['log'](LOG_PREFIX2+_0x287eb0(0x1d3));const _0x567aff=await detectBlockingServiceWorker(_0x53fe0a[_0x287eb0(0x197)]);if(_0x567aff){console[_0x287eb0(0x229)](LOG_PREFIX2+_0x287eb0(0x168)+_0x567aff),console[_0x287eb0(0x229)](LOG_PREFIX2+_0x287eb0(0x1ea));return;}console[_0x287eb0(0x22c)](LOG_PREFIX2+'\x20No\x20blocking\x20SW\x20found');try{console[_0x287eb0(0x22c)](LOG_PREFIX2+'\x20Registering\x20SW\x20at\x20'+_0x53fe0a[_0x287eb0(0x197)]+_0x287eb0(0x1a8)),registration=await navigator[_0x287eb0(0x1d8)][_0x287eb0(0x1c3)](_0x53fe0a['swPath'],{'scope':'/'}),console['log'](LOG_PREFIX2+_0x287eb0(0x182),{'scope':registration[_0x287eb0(0x177)],'active':registration[_0x287eb0(0x183)]?.[_0x287eb0(0x1d5)],'waiting':registration[_0x287eb0(0x164)]?.['scriptURL'],'installing':registration['installing']?.[_0x287eb0(0x1d5)]}),console[_0x287eb0(0x22c)](LOG_PREFIX2+_0x287eb0(0x1d7));const _0x47a47e=await navigator['serviceWorker'][_0x287eb0(0x1e8)];console[_0x287eb0(0x22c)](LOG_PREFIX2+_0x287eb0(0x1aa),_0x47a47e['active']?.[_0x287eb0(0x1d5)]);const _0x47f68d=ownsCurrentController(_0x53fe0a[_0x287eb0(0x197)]);state['controlled']=_0x47f68d,console[_0x287eb0(0x22c)](LOG_PREFIX2+_0x287eb0(0x15c)+_0x47f68d),console['log'](LOG_PREFIX2+_0x287eb0(0x212),navigator['serviceWorker'][_0x287eb0(0x220)]?.[_0x287eb0(0x1d5)]??_0x287eb0(0x1f0));if(!_0x404bcd&&!navigator[_0x287eb0(0x1d8)]['controller']){console[_0x287eb0(0x22c)](LOG_PREFIX2+_0x287eb0(0x20d)),window['location'][_0x287eb0(0x22f)]();return;}console[_0x287eb0(0x22c)](LOG_PREFIX2+_0x287eb0(0x203)),await sendConfiguration();if(state[_0x287eb0(0x209)]){const _0x8a6dd2=document[_0x287eb0(0x1c2)](_0x287eb0(0x1ee))!==null;console['log'](LOG_PREFIX2+_0x287eb0(0x1f5)+_0x8a6dd2);if(!_0x8a6dd2){console[_0x287eb0(0x22c)](LOG_PREFIX2+_0x287eb0(0x172)),window[_0x287eb0(0x1d6)][_0x287eb0(0x22f)]();return;}}console['log'](LOG_PREFIX2+_0x287eb0(0x16e)),updateOverlay(),console[_0x287eb0(0x22c)](LOG_PREFIX2+'\x20registerServiceWorker()\x20complete');}catch(_0x29c7ba){console[_0x287eb0(0x229)](LOG_PREFIX2+_0x287eb0(0x1f7),_0x29c7ba);}}async function sendConfiguration(){const _0x50ded0=_0x26212c;console[_0x50ded0(0x22c)](LOG_PREFIX2+_0x50ded0(0x173)),console['log'](LOG_PREFIX2+_0x50ded0(0x1a3)+state[_0x50ded0(0x209)]+_0x50ded0(0x1ef)+!!currentOptions2);if(!state[_0x50ded0(0x209)]||!currentOptions2){console[_0x50ded0(0x22c)](LOG_PREFIX2+'\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options');return;}const _0x392c8b=await resolveWorker();if(!_0x392c8b){console[_0x50ded0(0x17e)](LOG_PREFIX2+'\x20No\x20service\x20worker\x20active\x20to\x20configure');return;}const _0xe5b610={'callbackBypass':currentOptions2[_0x50ded0(0x184)],'securityMode':currentOptions2[_0x50ded0(0x1e3)]};console[_0x50ded0(0x22c)](LOG_PREFIX2+_0x50ded0(0x223),JSON['stringify'](_0xe5b610,null,0x2)),_0x392c8b['postMessage']({'type':WORKER_MESSAGE_CONFIG,'config':_0xe5b610}),console['log'](LOG_PREFIX2+'\x20Config\x20sent\x20to\x20SW');}async function unregisterServiceWorker(_0x40c3eb){const _0x36588d=_0x26212c;console[_0x36588d(0x22c)](LOG_PREFIX2+_0x36588d(0x1b6));if(!('serviceWorker'in navigator)){console['log'](LOG_PREFIX2+_0x36588d(0x230));return;}try{const _0x122775=registration??await navigator[_0x36588d(0x1d8)][_0x36588d(0x1bf)]('/');if(!_0x122775){console[_0x36588d(0x22c)](LOG_PREFIX2+_0x36588d(0x213));return;}console[_0x36588d(0x22c)](LOG_PREFIX2+_0x36588d(0x198),{'scope':_0x122775['scope'],'active':_0x122775[_0x36588d(0x183)]?.[_0x36588d(0x1d5)],'waiting':_0x122775[_0x36588d(0x164)]?.[_0x36588d(0x1d5)],'installing':_0x122775[_0x36588d(0x176)]?.['scriptURL']});const _0x36ab14=[_0x122775['active']?.[_0x36588d(0x1d5)],_0x122775[_0x36588d(0x164)]?.['scriptURL'],_0x122775[_0x36588d(0x176)]?.[_0x36588d(0x1d5)]],_0x1d2129=_0x36ab14[_0x36588d(0x18d)](_0x49c134=>_0x49c134&&ownsServiceWorker(_0x49c134,_0x40c3eb));if(!_0x1d2129){console[_0x36588d(0x22c)](LOG_PREFIX2+_0x36588d(0x22a));return;}_0x122775[_0x36588d(0x183)]&&(console[_0x36588d(0x22c)](LOG_PREFIX2+_0x36588d(0x19b)),_0x122775[_0x36588d(0x183)]['postMessage']({'type':WORKER_MESSAGE_DISABLE})),console['log'](LOG_PREFIX2+'\x20Unregistering\x20SW...'),await _0x122775[_0x36588d(0x1ce)](),registration=null,currentOptions2=null,console[_0x36588d(0x22c)](LOG_PREFIX2+_0x36588d(0x1b9));}catch(_0x2a46cc){console['error'](LOG_PREFIX2+_0x36588d(0x202),_0x2a46cc);}}function ownsServiceWorker(_0x1c9e2d,_0x5c258e){const _0x2b880a=_0x26212c,_0x165062=typeof window!==_0x2b880a(0x1e9)?window[_0x2b880a(0x1d6)]['origin']:'',_0x1e6fb2=new URL(_0x5c258e,_0x165062||void 0x0)['href'],_0xd83535=_0x1c9e2d===_0x1e6fb2||_0x1c9e2d[_0x2b880a(0x1ac)]('sw-enhance');return console[_0x2b880a(0x22c)](LOG_PREFIX2+'\x20ownsServiceWorker?\x20scriptURL='+_0x1c9e2d+_0x2b880a(0x16d)+_0x1e6fb2+_0x2b880a(0x1f2)+_0xd83535),_0xd83535;}function ownsCurrentController(_0x2bc7da){const _0x1ccb43=_0x26212c;if(typeof navigator===_0x1ccb43(0x1e9))return![];const _0x5592a1=navigator[_0x1ccb43(0x1d8)]?.[_0x1ccb43(0x220)];if(!_0x5592a1)return console['log'](LOG_PREFIX2+_0x1ccb43(0x1ec)),![];return ownsServiceWorker(_0x5592a1['scriptURL'],_0x2bc7da);}async function detectBlockingServiceWorker(_0x1304a7){const _0x242fba=_0x26212c;if(!navigator[_0x242fba(0x1d8)])return null;try{const _0x32fcf9=await navigator[_0x242fba(0x1d8)][_0x242fba(0x1bf)]('/');console[_0x242fba(0x22c)](LOG_PREFIX2+'\x20detectBlocking\x20-\x20existing\x20registration:',_0x32fcf9?.['active']?.['scriptURL']??'none');const _0xa3129e=_0x32fcf9?.[_0x242fba(0x183)]?.['scriptURL'];if(!_0xa3129e)return null;if(ownsServiceWorker(_0xa3129e,_0x1304a7))return null;return _0xa3129e;}catch(_0x2a1ba0){return console['error'](LOG_PREFIX2+_0x242fba(0x1c0),_0x2a1ba0),null;}}async function resolveWorker(){const _0x334e3f=_0x26212c,_0x2b79e=registration??await navigator[_0x334e3f(0x1d8)]?.[_0x334e3f(0x1bf)]('/'),_0x3f6e8c=_0x2b79e?.[_0x334e3f(0x183)]??_0x2b79e?.[_0x334e3f(0x164)]??_0x2b79e?.[_0x334e3f(0x176)]??null;return console['log'](LOG_PREFIX2+_0x334e3f(0x1e1),_0x3f6e8c?.['scriptURL']??_0x334e3f(0x1f0),'state:\x20'+(_0x3f6e8c?.['state']??_0x334e3f(0x16f))),_0x3f6e8c;}var LOG_PREFIX3=_0x26212c(0x208);function isInitialized(){const _0x25f986=_0x26212c;return typeof window!==_0x25f986(0x1e9)&&window[_0x25f986(0x204)]===!![];}function _0x483c(_0x25a742,_0x241d2f){_0x25a742=_0x25a742-0x157;const _0x2e61f7=_0x2e61();let _0x483cd9=_0x2e61f7[_0x25a742];return _0x483cd9;}function setInitialized(_0x24d095){const _0x4f2c29=_0x26212c;typeof window!==_0x4f2c29(0x1e9)&&(window[_0x4f2c29(0x204)]=_0x24d095);}function getOptions(){const _0x5b3d76=_0x26212c;return typeof window!==_0x5b3d76(0x1e9)?window[_0x5b3d76(0x1b8)]??null:null;}function setOptions(_0x28e0e2){const _0x58265b=_0x26212c;typeof window!==_0x58265b(0x1e9)&&(window[_0x58265b(0x1b8)]=_0x28e0e2);}var Enhance={'init'(_0x4e7b35={}){const _0x40c60f=_0x26212c,_0x22aa57=Date['now']();console[_0x40c60f(0x22c)](LOG_PREFIX3+_0x40c60f(0x179)+_0x22aa57),console[_0x40c60f(0x22c)](LOG_PREFIX3+_0x40c60f(0x17f)+window[_0x40c60f(0x1d6)][_0x40c60f(0x1d9)]),console['log'](LOG_PREFIX3+_0x40c60f(0x15a)+document['readyState']),console['log'](LOG_PREFIX3+_0x40c60f(0x1fc),JSON[_0x40c60f(0x20b)](_0x4e7b35,null,0x2));if(isInitialized())return console['warn'](LOG_PREFIX3+_0x40c60f(0x1f1)),window[_0x40c60f(0x22e)]??createController();setInitialized(!![]),console[_0x40c60f(0x22c)](LOG_PREFIX3+_0x40c60f(0x1a0));const _0x221fd9=normalizeOptions(_0x4e7b35);setOptions(_0x221fd9),console['log'](LOG_PREFIX3+_0x40c60f(0x1dd),JSON[_0x40c60f(0x20b)](_0x221fd9,null,0x2));const _0x599664=parseUrlParams();console[_0x40c60f(0x22c)](LOG_PREFIX3+_0x40c60f(0x17a),JSON[_0x40c60f(0x20b)](_0x599664,null,0x2));if(_0x599664['explicitDisable'])return cleanUrlParam(_0x40c60f(0x193)),console[_0x40c60f(0x22c)](LOG_PREFIX3+_0x40c60f(0x1a5)),createController();if(_0x599664[_0x40c60f(0x205)])return console['log'](LOG_PREFIX3+_0x40c60f(0x18c)),console[_0x40c60f(0x22c)](LOG_PREFIX3+'\x20enhancementUrl:\x20'+_0x599664[_0x40c60f(0x1db)]),console[_0x40c60f(0x22c)](LOG_PREFIX3+_0x40c60f(0x211)+_0x599664[_0x40c60f(0x185)]),state['enabled']=!![],console[_0x40c60f(0x22c)](LOG_PREFIX3+_0x40c60f(0x217)),void loadOverlay({'overlayPath':_0x221fd9[_0x40c60f(0x15e)],'enableViteHmr':_0x221fd9['overlay'][_0x40c60f(0x1d0)],'options':_0x221fd9,'onToggle':handleToggle}),console[_0x40c60f(0x22c)](LOG_PREFIX3+_0x40c60f(0x1ca)),void registerServiceWorker(_0x221fd9),console[_0x40c60f(0x22c)](LOG_PREFIX3+_0x40c60f(0x1df)),createController();return console['log'](LOG_PREFIX3+_0x40c60f(0x199)),console[_0x40c60f(0x22c)](LOG_PREFIX3+'\x20Unregistering\x20any\x20existing\x20SW...'),void unregisterServiceWorker(_0x221fd9['swPath']),console[_0x40c60f(0x22c)](LOG_PREFIX3+_0x40c60f(0x16a)),import.meta.hot&&(console[_0x40c60f(0x22c)](LOG_PREFIX3+'\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners'),import.meta.hot['on'](_0x40c60f(0x180),_0x56abe9=>{const _0x821e9a=_0x40c60f;console[_0x821e9a(0x22c)](LOG_PREFIX3+_0x821e9a(0x175),_0x56abe9),state[_0x821e9a(0x1e5)]={'message':_0x56abe9['err']['message']},updateOverlay();}),import.meta.hot['on']('vite:beforeUpdate',()=>{const _0x8a3e7=_0x40c60f;state[_0x8a3e7(0x1e5)]&&(console[_0x8a3e7(0x22c)](LOG_PREFIX3+_0x8a3e7(0x228)),state[_0x8a3e7(0x1e5)]=null,updateOverlay());})),createController();}};function createController(){const _0x30682d=_0x26212c,_0x319311={'enable'(){const _0x376709=_0x483c,_0x268d52=getOptions();if(!_0x268d52)return;state[_0x376709(0x209)]=!![],void loadOverlay({'overlayPath':_0x268d52[_0x376709(0x15e)],'enableViteHmr':_0x268d52[_0x376709(0x1d2)][_0x376709(0x1d0)],'options':_0x268d52,'onToggle':handleToggle}),void registerServiceWorker(_0x268d52),void sendConfiguration(),updateOverlay();},'disable'(){const _0x2d6a0d=_0x483c,_0x22653b=getOptions();if(!_0x22653b)return;state[_0x2d6a0d(0x209)]=![],state['controlled']=![],updateOverlay(),void unregisterServiceWorker(_0x22653b['swPath']);},'status'(){const _0x199aa7=_0x483c;return{'enabled':state[_0x199aa7(0x209)],'controlled':state[_0x199aa7(0x1f4)]};}};return typeof window!==_0x30682d(0x1e9)&&(window[_0x30682d(0x22e)]=_0x319311),_0x319311;}function handleToggle(){const _0x45796e=_0x26212c,_0x253318=createController();state[_0x45796e(0x209)]?_0x253318[_0x45796e(0x1ff)]():_0x253318[_0x45796e(0x1b7)]();}function parseUrlParams(){const _0x2e0dc7=_0x26212c,_0x149472=new URL(window[_0x2e0dc7(0x1d6)]['href']),_0x52361e=_0x149472[_0x2e0dc7(0x1a9)][_0x2e0dc7(0x15b)](_0x2e0dc7(0x193))?.[_0x2e0dc7(0x167)](),_0x55e945=_0x149472[_0x2e0dc7(0x1a9)][_0x2e0dc7(0x15b)](_0x2e0dc7(0x1db)),_0x3f23db=_0x149472[_0x2e0dc7(0x1a9)]['get'](_0x2e0dc7(0x20c));return{'hasEnhancement':Boolean(_0x55e945||_0x3f23db),'explicitDisable':_0x52361e==='0'||_0x52361e===_0x2e0dc7(0x1fd)||_0x52361e==='off','enhancementUrl':_0x55e945,'enhancementId':_0x3f23db};}function cleanUrlParam(_0x2b1196){const _0x54f1cf=_0x26212c,_0x243d3c=new URL(window[_0x54f1cf(0x1d6)][_0x54f1cf(0x1d9)]);_0x243d3c[_0x54f1cf(0x1a9)][_0x54f1cf(0x18b)](_0x2b1196)&&(_0x243d3c[_0x54f1cf(0x1a9)]['delete'](_0x2b1196),window[_0x54f1cf(0x159)]['replaceState'](null,document[_0x54f1cf(0x219)],_0x243d3c[_0x54f1cf(0x1f8)]()));}var package_default={'name':_0x26212c(0x170),'version':'0.3.20','type':_0x26212c(0x1a4),'description':_0x26212c(0x187),'license':_0x26212c(0x1ae),'main':_0x26212c(0x1c1),'module':_0x26212c(0x1c1),'types':'./dev/index.d.ts','exports':{'.':{'types':'./dev/index.d.ts','import':_0x26212c(0x1c1)},'./vite':{'types':_0x26212c(0x188),'import':_0x26212c(0x19a)}},'files':[_0x26212c(0x20e)],'bin':{'enhance-sandbox':_0x26212c(0x1c7)},'scripts':{'typecheck':_0x26212c(0x19c),'dev':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','dev:build':_0x26212c(0x210),'dev:staging':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','dev:staging:build':_0x26212c(0x1b5),'build':'ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','build:release':_0x26212c(0x1c4),'version':'bun\x20version\x20patch\x20--no-git-tag-version'},'dependencies':{'commander':_0x26212c(0x1be),'zod':_0x26212c(0x1ba)},'devDependencies':{'@types/node':'^24.10.1','javascript-obfuscator':_0x26212c(0x1b4),'tsup':'^8.5.1','vite':_0x26212c(0x171)},'publishConfig':{'access':_0x26212c(0x20a)}},DEFAULT_SERVICE_WORKER_PATH=_0x26212c(0x192),DEFAULT_RUNTIME_PATH=_0x26212c(0x174),PACKAGE_VERSION=typeof package_default[_0x26212c(0x169)]===_0x26212c(0x189)?package_default['version']:_0x26212c(0x1c6);function normalizeAssetPath(_0x2b6c17){const _0x36afdb=_0x26212c;if(!_0x2b6c17)return _0x2b6c17;if(_0x2b6c17[_0x36afdb(0x1a1)](_0x36afdb(0x1bb))||_0x2b6c17[_0x36afdb(0x1a1)](_0x36afdb(0x1c5)))return _0x2b6c17;const _0x174520=_0x2b6c17[_0x36afdb(0x222)](/^\.\//,'');return _0x174520[_0x36afdb(0x1a1)]('/')?_0x174520:'/'+_0x174520;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x474d6b){return Enhance['init'](_0x474d6b);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function _0x2e61(){const _0x1f2e84=['searchParams','\x20SW\x20ready!\x20Active:','\x20Calling\x20createOverlay()...','includes','trim','MIT','function','https://api.enhancelabs.ai',',\x20page\x20origin:\x20','\x20composeOverlayState\x20-\x20state.enabled:\x20','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','^4.1.1','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','\x20unregisterServiceWorker()\x20called','enable','__enhanceOptions','\x20SW\x20unregistered\x20successfully','^3.22.4','http://','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','\x20Available\x20exports:','^11.1.0','getRegistration','\x20detectBlocking\x20error:','./dev/index.js','querySelector','register','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','https://','0.0.0','./dev/cli.js','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','\x20Invalid\x20React\x20Refresh\x20runtime','\x20Starting\x20SW\x20registration\x20(async)...','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','1143GFFCBD','bottom-right','unregister','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','enableViteHmr','\x20Calling\x20updateOverlay()...','overlay','\x20Checking\x20for\x20blocking\x20service\x20worker...','\x20HMR\x20setup\x20complete','scriptURL','location','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','serviceWorker','href','https://assets.enhancelabs.ai/overlay.js','enhancementUrl','\x20Vite\x20client\x20already\x20loaded\x20for\x20','\x20Normalized\x20options:','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','\x20init()\x20complete\x20-\x20enhancement\x20mode','11aVYrAC','\x20resolveWorker:','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','security','__development','appError','default','2FIQOhm','ready','undefined','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','keys','\x20No\x20current\x20controller','\x20Service\x20workers\x20supported','[data-enhance-runtime-bootstrap]',',\x20currentOptions:\x20','none','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller',',\x20owns=','runtimeURL','controlled','\x20Enhancement\x20detection:\x20wasEnhanced=','/@vite/client','\x20Failed\x20to\x20register\x20service\x20worker:','toString','__viteHMRLoaded','info','enhance:disable','\x20Raw\x20options:','false','3QEgJMN','disable','state','\x20loadOverlay()\x20called','\x20Failed\x20to\x20unregister\x20service\x20worker:','\x20Sending\x20customer\x20configuration...','__enhanceInitialized','hasEnhancement','\x20setupRemoteHMR()\x20for\x20','\x20loadOverlay()\x20failed:','[Enhance\x20Runtime]','enabled','public','stringify','enhancement','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','dev/','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','\x20enhancementId:\x20','\x20Current\x20controller\x20after\x20ready:','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','backendUrl','1496816uHsxZY','\x20Module\x20imported\x20in\x20','\x20Starting\x20overlay\x20load\x20(async)...','7342452jPXcdV','title','$RefreshSig$','\x20Overlay\x20update\x20complete','origin','7vgcZqq','3629300nreYbg','\x20currentOptions\x20exists:\x20','controller','\x20Starting\x20fresh\x20overlay\x20load...','replace','\x20Sending\x20customer\x20config\x20to\x20SW:','\x20React\x20Refresh\x20already\x20installed\x20for\x20','add','injectIntoGlobalHook','__enhanceOverlay','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','error','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','\x20Importing\x20overlay\x20module\x20from:\x20','log','\x20Controller\x20created:','__enhanceController','reload','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','\x20Updating\x20overlay\x20with\x20state:','1546752fufEwM','\x20No\x20window\x20object\x20-\x20skipping','history','\x20Document\x20readyState:\x20','get','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','237347mBQKVH','overlayPath','position','...','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','\x20overlayController\x20exists:\x20','[Enhance\x20Overlay]','waiting','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','\x20swPath:\x20','toLowerCase','\x20BLOCKING\x20SW\x20detected:\x20','version','\x20init()\x20complete\x20-\x20normal\x20mode','object','permissive',',\x20expected=','\x20Updating\x20overlay...','N/A','@enhance-eng/sandbox','^7.2.4','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','\x20sendConfiguration()\x20called','/assets/enhance-runtime.js','\x20Vite\x20error\x20detected:','installing','scope','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','\x20init()\x20called\x20at\x20','\x20URL\x20params\x20parsed:','\x20Current\x20controller:','\x20overlayPath:\x20','$RefreshReg$','warn','\x20Current\x20URL:\x20','vite:error','\x20Controller\x20state:','\x20Registration\x20returned:','active','callbackBypass','enhancementId','__enhanceReactRefreshInstalledOrigins','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','./dev/vite/index.d.ts','string','\x20Overlay\x20origin:\x20','has','\x20Enhancement\x20mode\x20ENABLED','some','\x20Module\x20missing\x20createOverlay\x20export!','[Enhance\x20Config]\x20Build-time\x20defaults:','createOverlay','471835MUUYTa','/sw-enhance.js','enhance','enableOverlayHmr','now','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','swPath','\x20Found\x20registration:','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','./dev/vite/index.js','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','tsc\x20--noEmit','enhance:configure','options','\x20Setting\x20up\x20remote\x20HMR...','\x20First\x20initialization','startsWith','1736jHiBCl','\x20state.enabled:\x20','module','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','onToggle','\x20doLoadOverlay()\x20starting...','\x20with\x20scope\x20\x27/\x27...'];_0x2e61=function(){return _0x1f2e84;};return _0x2e61();}function resolveServiceWorkerPath(){return serviceWorkerURL();}function serviceWorkerURL(){return Enhance2['serviceWorkerURL']();}function runtimeURL(){const _0x4b7440=_0x26212c;return Enhance2[_0x4b7440(0x1f3)]();}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 _0x12de1d=_0x3b28;(function(_0x589b3f,_0x36c6f8){const _0x4f6420=_0x3b28,_0x13b2a0=_0x589b3f();while(!![]){try{const _0x68bef3=-parseInt(_0x4f6420(0x13c))/0x1*(-parseInt(_0x4f6420(0x11e))/0x2)+-parseInt(_0x4f6420(0xf5))/0x3+parseInt(_0x4f6420(0xbf))/0x4*(parseInt(_0x4f6420(0xc5))/0x5)+-parseInt(_0x4f6420(0x137))/0x6*(-parseInt(_0x4f6420(0x193))/0x7)+-parseInt(_0x4f6420(0x145))/0x8*(parseInt(_0x4f6420(0x108))/0x9)+parseInt(_0x4f6420(0x172))/0xa*(parseInt(_0x4f6420(0xcc))/0xb)+parseInt(_0x4f6420(0xc7))/0xc*(-parseInt(_0x4f6420(0x136))/0xd);if(_0x68bef3===_0x36c6f8)break;else _0x13b2a0['push'](_0x13b2a0['shift']());}catch(_0x2d37ee){_0x13b2a0['push'](_0x13b2a0['shift']());}}}(_0x2ef8,0x62e2e));import{Command}from'commander';import{resolve,relative}from'path';var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!=='undefined'?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x12de1d(0x92),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!=='undefined'?__ENHANCE_DEFAULT_BACKEND_URL__:_0x12de1d(0x194),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x12de1d(0xdb)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x12de1d(0xcb)](_0x12de1d(0x9c),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x2bafbb){const _0x595623=_0x12de1d,_0x364b10=_0x2bafbb['__development']??{};return{'callbackBypass':_0x2bafbb[_0x595623(0x10f)]??[],'overlay':{'enabled':!![],'position':_0x595623(0x107),'enableViteHmr':_0x364b10[_0x595623(0xf6)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x595623(0xa3),'swPath':'/sw-enhance.js','overlayPath':_0x364b10['overlayPath']??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x595623(0x186),'security':_0x364b10[_0x595623(0x148)]??_0x595623(0x132),'backendUrl':_0x364b10[_0x595623(0x14f)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementUrl(){const _0xf717a2=_0x12de1d;try{const _0x475f2c=new URLSearchParams(window[_0xf717a2(0x13d)][_0xf717a2(0x112)]);return _0x475f2c[_0xf717a2(0x16b)](_0xf717a2(0xfd))?.[_0xf717a2(0x181)]()||'';}catch{return'';}}var LOG_PREFIX=_0x12de1d(0xd4),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;function _0x2ef8(){const _0x55f3c0=['\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','\x20currentOptions\x20exists:\x20','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','assets/enhance-runtime.js','delete','\x20detectBlocking\x20-\x20existing\x20registration:','permissive','default','scriptURL','\x20swPath:\x20','1157Hwvjcn','234AjYgfc','\x20No\x20blocking\x20SW\x20found','/sw-enhance.js','err','__enhanceOverlay','17dZgoTU','location',',\x20page\x20origin:\x20','filename','write','option','tsc\x20--noEmit','includes','\x20Starting\x20SW\x20registration\x20(async)...','56izOEbX','copied','\x20Sending\x20customer\x20config\x20to\x20SW:','security','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','\x20SW\x20unregistered\x20successfully','getRegistration','https://','state','init','backendUrl','\x20Current\x20controller:','has','publicDir','\x20init()\x20complete\x20-\x20enhancement\x20mode','\x20Unregistering\x20any\x20existing\x20SW...','update','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','enhancementId','runtimeURL','href','relativeDestination','replace','\x20Module\x20missing\x20createOverlay\x20export!','options','scope','ENOENT','skipped','none','\x20Enhancement\x20detection:\x20wasEnhanced=','__enhanceInitialized','add','^3.22.4','\x20HMR\x20setup\x20complete','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','enable','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','Print\x20the\x20current\x20asset\x20manifest','get','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup',',\x20expected=','\x20Vite\x20client\x20already\x20loaded\x20for\x20','\x20overlayController\x20exists:\x20','base64','\x20Starting\x20fresh\x20overlay\x20load...','290GHCylG','hasEnhancement','\x20with\x20scope\x20\x27/\x27...','--filename\x20<name>','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','enhancement','\x20Registration\x20returned:','enhance','\x20Current\x20URL:\x20','name','--public-dir\x20<path>','origin','\x20Current\x20controller\x20after\x20ready:','\x20Service\x20workers\x20supported','sw-enhance.js','trim','N/A','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','digest','/assets/enhance-runtime.js','disable','\x20(already\x20current)\x20[','sourcePath','stringify','postMessage','false','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','\x20registerServiceWorker()\x20called','Enhance\x20sandbox\x20utility\x20CLI',',\x20currentOptions:\x20','command','description','62671LNqGay','https://api.enhancelabs.ai','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','cwd','\x20state.enabled:\x20','enableViteHmr','./dev/index.d.ts','\x20Checking\x20for\x20blocking\x20service\x20worker...','serviceWorkerURL','copyFile','https://assets.enhancelabs.ai/overlay.js','parseAsync','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','\x20Overlay\x20origin:\x20','code','^4.1.1','[Enhance\x20SW-Client]','@enhance-eng/sandbox','\x20Sending\x20customer\x20configuration...','[Enhance\x20Config]\x20Build-time\x20defaults:','[data-enhance-runtime-bootstrap]','\x20init()\x20called\x20at\x20','\x20Raw\x20options:','all','./dev/vite/index.js','\x20loadOverlay()\x20complete','info','\x20doLoadOverlay()\x20starting...','\x20No\x20service\x20worker\x20active\x20to\x20configure','onToggle','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','readFile','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','swFilename','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','\x20resolveWorker:','explicitDisable','prepare-sw','replaceState','serviceWorker','...','\x20Starting\x20overlay\x20load\x20(async)...','\x20updateOverlay()\x20called','\x20Found\x20registration:','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','installing','createOverlay','action','__vite_plugin_react_preamble_installed__','stdout','sha256','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','some','20GPaJKo','\x20Module\x20imported\x20in\x20','\x20Controller\x20created:','\x20Module\x20exports:','requiredOption','__viteHMRLoaded','439195YRlTlx','string','47784ZwMyfo','\x20Controller\x20state:','0.0.0','enhance:disable','log','18854fImyjz','object','position','enhance-sandbox','\x20Normalized\x20options:','\x20No\x20window\x20object\x20-\x20skipping','\x20No\x20current\x20controller','\x20Calling\x20createOverlay()...','[Enhance\x20Overlay]','keys','http://','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','\x20composeOverlayState\x20-\x20state.enabled:\x20','active','MIT','undefined','injectIntoGlobalHook','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','\x20enhancementUrl:\x20','\x20composeOverlayState\x20-\x20state.controlled:\x20','state:\x20','reload','/@vite/client','waiting','toLowerCase','searchParams','history','vite:error','startsWith','Directory\x20to\x20copy\x20the\x20service\x20worker\x20into','version','/@react-refresh','0.3.20','enabled','\x20detectBlocking\x20error:','\x20init()\x20complete\x20-\x20normal\x20mode','enhance:configure','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','\x20Calling\x20updateOverlay()...','push','./dev/index.js','411882VudWdJ','enableOverlayHmr','__enhanceController','mkdir','swPath','manifest','overlay','now','enhancementUrl','unregister','readyState',',\x20owns=','\x20Vite\x20error\x20detected:','^11.1.0','\x20Failed\x20to\x20register\x20service\x20worker:','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','\x20loadOverlay()\x20called','controlled','bottom-right','112680OVGzJM','__enhanceReactRefreshInstalledOrigins','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','\x20setupRemoteHMR()\x20for\x20','manifestPath','\x20Updating\x20overlay\x20with\x20state:','warn','callbackBypass','../dist/index.js','overlayPath','search','\x20Overlay\x20update\x20complete','controller','toString','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','ready','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','\x20ownsServiceWorker?\x20scriptURL=','^24.10.1','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','\x20URL\x20params\x20parsed:','\x20Failed\x20to\x20import/create\x20overlay:','17212oMcGjU','appError','dev/','./dev/vite/index.d.ts','$RefreshReg$','\x20SW\x20ready!\x20Active:','\x20loadOverlay()\x20failed:','message','\x20unregisterServiceWorker()\x20called','off','error','\x20Document\x20readyState:\x20','\x20BLOCKING\x20SW\x20detected:\x20','status'];_0x2ef8=function(){return _0x55f3c0;};return _0x2ef8();}async function loadOverlay(_0x31f757){const _0x3c3851=_0x12de1d;console[_0x3c3851(0xcb)](LOG_PREFIX+_0x3c3851(0x105)),console['log'](LOG_PREFIX+'\x20overlayPath:\x20'+_0x31f757[_0x3c3851(0x111)]),console[_0x3c3851(0xcb)](LOG_PREFIX+'\x20enableViteHmr:\x20'+_0x31f757[_0x3c3851(0x198)]),currentOptions=_0x31f757[_0x3c3851(0x15d)],toggleHandler=_0x31f757[_0x3c3851(0xa6)];if(overlayController){console[_0x3c3851(0xcb)](LOG_PREFIX+_0x3c3851(0x176)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x3c3851(0xcb)](LOG_PREFIX+_0x3c3851(0x167)),overlayLoadPromise;console['log'](LOG_PREFIX+_0x3c3851(0x171)),overlayLoadPromise=doLoadOverlay(_0x31f757);try{await overlayLoadPromise,console['log'](LOG_PREFIX+_0x3c3851(0xa2));}catch(_0x3bb1e0){console['error'](LOG_PREFIX+_0x3c3851(0x124),_0x3bb1e0);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x38cc81){const _0x9905e7=_0x12de1d;console[_0x9905e7(0xcb)](LOG_PREFIX+_0x9905e7(0xa4));if(typeof window==='undefined'){console[_0x9905e7(0xcb)](LOG_PREFIX+_0x9905e7(0xd1));return;}if(window['__enhanceOverlay']){console[_0x9905e7(0xcb)](LOG_PREFIX+_0x9905e7(0x11b)),overlayController=window[_0x9905e7(0x13b)];return;}console[_0x9905e7(0xcb)](LOG_PREFIX+_0x9905e7(0xa9));try{_0x38cc81[_0x9905e7(0x198)]&&(console[_0x9905e7(0xcb)](LOG_PREFIX+'\x20Setting\x20up\x20remote\x20HMR...'),await setupRemoteHMR(_0x38cc81[_0x9905e7(0x111)]));console['log'](LOG_PREFIX+'\x20Importing\x20overlay\x20module\x20from:\x20'+_0x38cc81['overlayPath']);const _0x27af00=Date['now'](),_0x3683c7=await import(_0x38cc81[_0x9905e7(0x111)]);console[_0x9905e7(0xcb)](LOG_PREFIX+_0x9905e7(0xc0)+(Date[_0x9905e7(0xfc)]()-_0x27af00)+'ms'),console[_0x9905e7(0xcb)](LOG_PREFIX+_0x9905e7(0xc2),Object[_0x9905e7(0xd5)](_0x3683c7));if(typeof _0x3683c7?.[_0x9905e7(0xb8)]!=='function'){console[_0x9905e7(0x128)](LOG_PREFIX+_0x9905e7(0x15c)),console[_0x9905e7(0x128)](LOG_PREFIX+'\x20Available\x20exports:',Object[_0x9905e7(0xd5)](_0x3683c7));return;}console[_0x9905e7(0xcb)](LOG_PREFIX+_0x9905e7(0xd3));const _0xa08241=_0x3683c7['createOverlay']();console[_0x9905e7(0xcb)](LOG_PREFIX+_0x9905e7(0xc1),_0xa08241),overlayController=_0xa08241,window[_0x9905e7(0x13b)]=_0xa08241,_0xa08241[_0x9905e7(0xa6)](_0x38cc81['onToggle']),console[_0x9905e7(0xcb)](LOG_PREFIX+'\x20Overlay\x20controller\x20initialized\x20and\x20cached'),console[_0x9905e7(0xcb)](LOG_PREFIX+_0x9905e7(0xf2)),updateOverlay();}catch(_0x10b052){console[_0x9905e7(0x128)](LOG_PREFIX+_0x9905e7(0x11d),_0x10b052);}}function updateOverlay(){const _0x4eb822=_0x12de1d;console['log'](LOG_PREFIX+_0x4eb822(0xb4)),console[_0x4eb822(0xcb)](LOG_PREFIX+_0x4eb822(0x16f)+!!overlayController),console[_0x4eb822(0xcb)](LOG_PREFIX+_0x4eb822(0x12d)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x4eb822(0xcb)](LOG_PREFIX+'\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update');return;}const _0x146354=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+_0x4eb822(0x10d),JSON['stringify'](_0x146354,null,0x2)),overlayController[_0x4eb822(0x155)](_0x146354),console['log'](LOG_PREFIX+_0x4eb822(0x113));}function composeOverlayState(_0x13b48f){const _0xe76360=_0x12de1d,_0xcab298=getEnhancementUrl();return console['log'](LOG_PREFIX+_0xe76360(0x149)+_0xcab298),console[_0xe76360(0xcb)](LOG_PREFIX+_0xe76360(0xd8)+state[_0xe76360(0xed)]),console[_0xe76360(0xcb)](LOG_PREFIX+_0xe76360(0xdf)+state['controlled']),{'enhancementUrl':_0xcab298,'enabled':state[_0xe76360(0xed)],'controlled':state[_0xe76360(0x106)],'overlayPosition':_0x13b48f['overlay'][_0xe76360(0xce)],'securityMode':_0x13b48f['security'],'backendBaseUrl':_0x13b48f['backendUrl'],'appError':state[_0xe76360(0x11f)]};}async function setupRemoteHMR(_0x3d8526){const _0x4a76c5=_0x12de1d;console['log'](LOG_PREFIX+_0x4a76c5(0x10b)+_0x3d8526);if(typeof window==='undefined')return;try{const _0x3807c1=new URL(_0x3d8526,window[_0x4a76c5(0x13d)][_0x4a76c5(0x17d)]),_0x24b457=_0x3807c1[_0x4a76c5(0x17d)];console[_0x4a76c5(0xcb)](LOG_PREFIX+_0x4a76c5(0x96)+_0x24b457+_0x4a76c5(0x13e)+window[_0x4a76c5(0x13d)]['origin']);if(_0x24b457===window[_0x4a76c5(0x13d)][_0x4a76c5(0x17d)]){console[_0x4a76c5(0xcb)](LOG_PREFIX+_0x4a76c5(0x95));return;}console[_0x4a76c5(0xcb)](LOG_PREFIX+'\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...'),await ensureReactRefreshPreamble(_0x24b457),await ensureViteClient(_0x24b457),console[_0x4a76c5(0xcb)](LOG_PREFIX+_0x4a76c5(0x166));}catch(_0x4034c4){console[_0x4a76c5(0x10e)](LOG_PREFIX+_0x4a76c5(0x116),_0x4034c4);}}async function ensureReactRefreshPreamble(_0x477666){const _0xd806f4=_0x12de1d;window[_0xd806f4(0x109)]??=new Set();if(window[_0xd806f4(0x109)][_0xd806f4(0x151)](_0x477666)){console[_0xd806f4(0xcb)](LOG_PREFIX+'\x20React\x20Refresh\x20already\x20installed\x20for\x20'+_0x477666);return;}console[_0xd806f4(0xcb)](LOG_PREFIX+_0xd806f4(0x104)+_0x477666+_0xd806f4(0xb2));const _0x30280f=await import(_0x477666+_0xd806f4(0xeb)),_0x571f09=_0x30280f&&typeof _0x30280f===_0xd806f4(0xcd)&&_0xd806f4(0x133)in _0x30280f?_0x30280f[_0xd806f4(0x133)]:_0x30280f;if(!isRefreshRuntime(_0x571f09)){console[_0xd806f4(0x10e)](LOG_PREFIX+'\x20Invalid\x20React\x20Refresh\x20runtime');return;}_0x571f09[_0xd806f4(0xdc)](window),window[_0xd806f4(0x122)]=()=>{},window['$RefreshSig$']=()=>_0x267947=>_0x267947,window[_0xd806f4(0xba)]=!![],window[_0xd806f4(0x109)]['add'](_0x477666),console[_0xd806f4(0xcb)](LOG_PREFIX+'\x20React\x20Refresh\x20runtime\x20installed\x20for\x20'+_0x477666);}async function ensureViteClient(_0x4af030){const _0x5dbea2=_0x12de1d;window['__viteHMRLoaded']??=new Set();if(window[_0x5dbea2(0xc4)][_0x5dbea2(0x151)](_0x4af030)){console[_0x5dbea2(0xcb)](LOG_PREFIX+_0x5dbea2(0x16e)+_0x4af030);return;}console['log'](LOG_PREFIX+_0x5dbea2(0xdd)+_0x4af030+_0x5dbea2(0xb2)),await import(_0x4af030+_0x5dbea2(0xe2)),window[_0x5dbea2(0xc4)][_0x5dbea2(0x164)](_0x4af030),console[_0x5dbea2(0xcb)](LOG_PREFIX+'\x20Vite\x20HMR\x20client\x20loaded\x20for\x20'+_0x4af030);}function isRefreshRuntime(_0x43a5c2){const _0x4c840f=_0x12de1d;return typeof _0x43a5c2===_0x4c840f(0xcd)&&_0x43a5c2!==null&&_0x4c840f(0xdc)in _0x43a5c2&&typeof _0x43a5c2[_0x4c840f(0xdc)]==='function';}var WORKER_MESSAGE_CONFIG=_0x12de1d(0xf0),WORKER_MESSAGE_DISABLE=_0x12de1d(0xca),LOG_PREFIX2=_0x12de1d(0x99),registration=null,currentOptions2=null;async function registerServiceWorker(_0x3ac1d2){const _0x17c5c2=_0x12de1d;console[_0x17c5c2(0xcb)](LOG_PREFIX2+_0x17c5c2(0x18e)),console[_0x17c5c2(0xcb)](LOG_PREFIX2+_0x17c5c2(0x135)+_0x3ac1d2[_0x17c5c2(0xf9)]);if(!(_0x17c5c2(0xb1)in navigator)){console['warn'](LOG_PREFIX2+_0x17c5c2(0x94));return;}console[_0x17c5c2(0xcb)](LOG_PREFIX2+_0x17c5c2(0x17f));const _0x494ff1=navigator['serviceWorker'][_0x17c5c2(0x114)];console[_0x17c5c2(0xcb)](LOG_PREFIX2+_0x17c5c2(0x150),_0x494ff1?.['scriptURL']??_0x17c5c2(0x161)),console[_0x17c5c2(0xcb)](LOG_PREFIX2+_0x17c5c2(0xc8),_0x494ff1?.[_0x17c5c2(0x14d)]??'N/A');const _0x1851b7=!!_0x494ff1;currentOptions2=_0x3ac1d2,console[_0x17c5c2(0xcb)](LOG_PREFIX2+_0x17c5c2(0x19a));const _0x4d26e6=await detectBlockingServiceWorker(_0x3ac1d2[_0x17c5c2(0xf9)]);if(_0x4d26e6){console[_0x17c5c2(0x128)](LOG_PREFIX2+_0x17c5c2(0x12a)+_0x4d26e6),console[_0x17c5c2(0x128)](LOG_PREFIX2+_0x17c5c2(0xd7));return;}console[_0x17c5c2(0xcb)](LOG_PREFIX2+_0x17c5c2(0x138));try{console['log'](LOG_PREFIX2+'\x20Registering\x20SW\x20at\x20'+_0x3ac1d2[_0x17c5c2(0xf9)]+_0x17c5c2(0x174)),registration=await navigator['serviceWorker']['register'](_0x3ac1d2[_0x17c5c2(0xf9)],{'scope':'/'}),console[_0x17c5c2(0xcb)](LOG_PREFIX2+_0x17c5c2(0x178),{'scope':registration[_0x17c5c2(0x15e)],'active':registration[_0x17c5c2(0xd9)]?.[_0x17c5c2(0x134)],'waiting':registration[_0x17c5c2(0xe3)]?.[_0x17c5c2(0x134)],'installing':registration['installing']?.[_0x17c5c2(0x134)]}),console[_0x17c5c2(0xcb)](LOG_PREFIX2+'\x20Waiting\x20for\x20navigator.serviceWorker.ready...');const _0x5158ba=await navigator[_0x17c5c2(0xb1)][_0x17c5c2(0x117)];console['log'](LOG_PREFIX2+_0x17c5c2(0x123),_0x5158ba[_0x17c5c2(0xd9)]?.[_0x17c5c2(0x134)]);const _0x18e093=ownsCurrentController(_0x3ac1d2[_0x17c5c2(0xf9)]);state[_0x17c5c2(0x106)]=_0x18e093,console['log'](LOG_PREFIX2+_0x17c5c2(0x183)+_0x18e093),console[_0x17c5c2(0xcb)](LOG_PREFIX2+_0x17c5c2(0x17e),navigator[_0x17c5c2(0xb1)][_0x17c5c2(0x114)]?.[_0x17c5c2(0x134)]??_0x17c5c2(0x161));if(!_0x1851b7&&!navigator[_0x17c5c2(0xb1)]['controller']){console[_0x17c5c2(0xcb)](LOG_PREFIX2+_0x17c5c2(0x118)),window['location'][_0x17c5c2(0xe1)]();return;}console[_0x17c5c2(0xcb)](LOG_PREFIX2+_0x17c5c2(0x9b)),await sendConfiguration();if(state[_0x17c5c2(0xed)]){const _0x5d16ee=document['querySelector'](_0x17c5c2(0x9d))!==null;console[_0x17c5c2(0xcb)](LOG_PREFIX2+_0x17c5c2(0x162)+_0x5d16ee);if(!_0x5d16ee){console[_0x17c5c2(0xcb)](LOG_PREFIX2+_0x17c5c2(0x12e)),window[_0x17c5c2(0x13d)]['reload']();return;}}console[_0x17c5c2(0xcb)](LOG_PREFIX2+'\x20Updating\x20overlay...'),updateOverlay(),console[_0x17c5c2(0xcb)](LOG_PREFIX2+'\x20registerServiceWorker()\x20complete');}catch(_0x2405b2){console[_0x17c5c2(0x128)](LOG_PREFIX2+_0x17c5c2(0x103),_0x2405b2);}}async function sendConfiguration(){const _0x35cda8=_0x12de1d;console[_0x35cda8(0xcb)](LOG_PREFIX2+'\x20sendConfiguration()\x20called'),console[_0x35cda8(0xcb)](LOG_PREFIX2+_0x35cda8(0x197)+state['enabled']+_0x35cda8(0x190)+!!currentOptions2);if(!state[_0x35cda8(0xed)]||!currentOptions2){console[_0x35cda8(0xcb)](LOG_PREFIX2+_0x35cda8(0x169));return;}const _0x59a9cd=await resolveWorker();if(!_0x59a9cd){console[_0x35cda8(0x10e)](LOG_PREFIX2+_0x35cda8(0xa5));return;}const _0x101aef={'callbackBypass':currentOptions2[_0x35cda8(0x10f)],'securityMode':currentOptions2['security']};console[_0x35cda8(0xcb)](LOG_PREFIX2+_0x35cda8(0x147),JSON[_0x35cda8(0x18a)](_0x101aef,null,0x2)),_0x59a9cd[_0x35cda8(0x18b)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x101aef}),console[_0x35cda8(0xcb)](LOG_PREFIX2+'\x20Config\x20sent\x20to\x20SW');}async function unregisterServiceWorker(_0x5ed2ca){const _0x2149d5=_0x12de1d;console['log'](LOG_PREFIX2+_0x2149d5(0x126));if(!(_0x2149d5(0xb1)in navigator)){console[_0x2149d5(0xcb)](LOG_PREFIX2+_0x2149d5(0xa7));return;}try{const _0x38fcf3=registration??await navigator[_0x2149d5(0xb1)][_0x2149d5(0x14b)]('/');if(!_0x38fcf3){console['log'](LOG_PREFIX2+'\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister');return;}console[_0x2149d5(0xcb)](LOG_PREFIX2+_0x2149d5(0xb5),{'scope':_0x38fcf3[_0x2149d5(0x15e)],'active':_0x38fcf3['active']?.['scriptURL'],'waiting':_0x38fcf3[_0x2149d5(0xe3)]?.[_0x2149d5(0x134)],'installing':_0x38fcf3[_0x2149d5(0xb7)]?.[_0x2149d5(0x134)]});const _0x2f1b89=[_0x38fcf3[_0x2149d5(0xd9)]?.[_0x2149d5(0x134)],_0x38fcf3['waiting']?.['scriptURL'],_0x38fcf3[_0x2149d5(0xb7)]?.['scriptURL']],_0x3ef5b8=_0x2f1b89[_0x2149d5(0xbe)](_0x37ece6=>_0x37ece6&&ownsServiceWorker(_0x37ece6,_0x5ed2ca));if(!_0x3ef5b8){console['log'](LOG_PREFIX2+'\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering');return;}_0x38fcf3[_0x2149d5(0xd9)]&&(console['log'](LOG_PREFIX2+_0x2149d5(0x195)),_0x38fcf3[_0x2149d5(0xd9)][_0x2149d5(0x18b)]({'type':WORKER_MESSAGE_DISABLE})),console['log'](LOG_PREFIX2+'\x20Unregistering\x20SW...'),await _0x38fcf3[_0x2149d5(0xfe)](),registration=null,currentOptions2=null,console[_0x2149d5(0xcb)](LOG_PREFIX2+_0x2149d5(0x14a));}catch(_0xf411ed){console[_0x2149d5(0x128)](LOG_PREFIX2+'\x20Failed\x20to\x20unregister\x20service\x20worker:',_0xf411ed);}}function ownsServiceWorker(_0x14abdb,_0x91a10e){const _0x33b2b9=_0x12de1d,_0x5e03f4=typeof window!==_0x33b2b9(0xdb)?window[_0x33b2b9(0x13d)]['origin']:'',_0x1c45a9=new URL(_0x91a10e,_0x5e03f4||void 0x0)[_0x33b2b9(0x159)],_0xef7d86=_0x14abdb===_0x1c45a9||_0x14abdb[_0x33b2b9(0x143)]('sw-enhance');return console[_0x33b2b9(0xcb)](LOG_PREFIX2+_0x33b2b9(0x119)+_0x14abdb+_0x33b2b9(0x16d)+_0x1c45a9+_0x33b2b9(0x100)+_0xef7d86),_0xef7d86;}function ownsCurrentController(_0x3b5dc8){const _0x344b5e=_0x12de1d;if(typeof navigator===_0x344b5e(0xdb))return![];const _0xce155f=navigator[_0x344b5e(0xb1)]?.[_0x344b5e(0x114)];if(!_0xce155f)return console[_0x344b5e(0xcb)](LOG_PREFIX2+_0x344b5e(0xd2)),![];return ownsServiceWorker(_0xce155f[_0x344b5e(0x134)],_0x3b5dc8);}async function detectBlockingServiceWorker(_0x3370c6){const _0xf87297=_0x12de1d;if(!navigator[_0xf87297(0xb1)])return null;try{const _0x5e9108=await navigator[_0xf87297(0xb1)]['getRegistration']('/');console[_0xf87297(0xcb)](LOG_PREFIX2+_0xf87297(0x131),_0x5e9108?.[_0xf87297(0xd9)]?.['scriptURL']??_0xf87297(0x161));const _0x352240=_0x5e9108?.[_0xf87297(0xd9)]?.[_0xf87297(0x134)];if(!_0x352240)return null;if(ownsServiceWorker(_0x352240,_0x3370c6))return null;return _0x352240;}catch(_0x44a8dc){return console[_0xf87297(0x128)](LOG_PREFIX2+_0xf87297(0xee),_0x44a8dc),null;}}async function resolveWorker(){const _0xbc4aba=_0x12de1d,_0x404c7b=registration??await navigator[_0xbc4aba(0xb1)]?.[_0xbc4aba(0x14b)]('/'),_0x2ddab2=_0x404c7b?.['active']??_0x404c7b?.[_0xbc4aba(0xe3)]??_0x404c7b?.['installing']??null;return console[_0xbc4aba(0xcb)](LOG_PREFIX2+_0xbc4aba(0xad),_0x2ddab2?.['scriptURL']??'none',_0xbc4aba(0xe0)+(_0x2ddab2?.[_0xbc4aba(0x14d)]??_0xbc4aba(0x182))),_0x2ddab2;}var LOG_PREFIX3='[Enhance\x20Runtime]';function isInitialized(){const _0x7d2dbc=_0x12de1d;return typeof window!==_0x7d2dbc(0xdb)&&window[_0x7d2dbc(0x163)]===!![];}function setInitialized(_0x2a92af){const _0x434515=_0x12de1d;typeof window!==_0x434515(0xdb)&&(window[_0x434515(0x163)]=_0x2a92af);}function getOptions(){const _0x16222e=_0x12de1d;return typeof window!==_0x16222e(0xdb)?window['__enhanceOptions']??null:null;}function setOptions(_0x553dac){const _0x39a050=_0x12de1d;typeof window!==_0x39a050(0xdb)&&(window['__enhanceOptions']=_0x553dac);}var Enhance={'init'(_0x3b1ff5={}){const _0x493a22=_0x12de1d,_0x4d82ed=Date['now']();console['log'](LOG_PREFIX3+_0x493a22(0x9e)+_0x4d82ed),console[_0x493a22(0xcb)](LOG_PREFIX3+_0x493a22(0x17a)+window[_0x493a22(0x13d)][_0x493a22(0x159)]),console[_0x493a22(0xcb)](LOG_PREFIX3+_0x493a22(0x129)+document[_0x493a22(0xff)]),console[_0x493a22(0xcb)](LOG_PREFIX3+_0x493a22(0x9f),JSON[_0x493a22(0x18a)](_0x3b1ff5,null,0x2));if(isInitialized())return console[_0x493a22(0x10e)](LOG_PREFIX3+_0x493a22(0xf1)),window[_0x493a22(0xf7)]??createController();setInitialized(!![]),console[_0x493a22(0xcb)](LOG_PREFIX3+'\x20First\x20initialization');const _0x2812c3=normalizeOptions(_0x3b1ff5);setOptions(_0x2812c3),console[_0x493a22(0xcb)](LOG_PREFIX3+_0x493a22(0xd0),JSON['stringify'](_0x2812c3,null,0x2));const _0x263857=parseUrlParams();console[_0x493a22(0xcb)](LOG_PREFIX3+_0x493a22(0x11c),JSON[_0x493a22(0x18a)](_0x263857,null,0x2));if(_0x263857[_0x493a22(0xae)])return cleanUrlParam(_0x493a22(0x179)),console['log'](LOG_PREFIX3+_0x493a22(0x18d)),createController();if(_0x263857[_0x493a22(0x173)])return console[_0x493a22(0xcb)](LOG_PREFIX3+'\x20Enhancement\x20mode\x20ENABLED'),console['log'](LOG_PREFIX3+_0x493a22(0xde)+_0x263857[_0x493a22(0xfd)]),console[_0x493a22(0xcb)](LOG_PREFIX3+'\x20enhancementId:\x20'+_0x263857[_0x493a22(0x157)]),state['enabled']=!![],console[_0x493a22(0xcb)](LOG_PREFIX3+_0x493a22(0xb3)),void loadOverlay({'overlayPath':_0x2812c3[_0x493a22(0x111)],'enableViteHmr':_0x2812c3['overlay'][_0x493a22(0x198)],'options':_0x2812c3,'onToggle':handleToggle}),console[_0x493a22(0xcb)](LOG_PREFIX3+_0x493a22(0x144)),void registerServiceWorker(_0x2812c3),console[_0x493a22(0xcb)](LOG_PREFIX3+_0x493a22(0x153)),createController();return console[_0x493a22(0xcb)](LOG_PREFIX3+_0x493a22(0xac)),console[_0x493a22(0xcb)](LOG_PREFIX3+_0x493a22(0x154)),void unregisterServiceWorker(_0x2812c3[_0x493a22(0xf9)]),console[_0x493a22(0xcb)](LOG_PREFIX3+_0x493a22(0xef)),import.meta.hot&&(console[_0x493a22(0xcb)](LOG_PREFIX3+_0x493a22(0x156)),import.meta.hot['on'](_0x493a22(0xe7),_0x1f7084=>{const _0x24beb9=_0x493a22;console[_0x24beb9(0xcb)](LOG_PREFIX3+_0x24beb9(0x101),_0x1f7084),state[_0x24beb9(0x11f)]={'message':_0x1f7084[_0x24beb9(0x13a)][_0x24beb9(0x125)]},updateOverlay();}),import.meta.hot['on']('vite:beforeUpdate',()=>{const _0x3017af=_0x493a22;state[_0x3017af(0x11f)]&&(console[_0x3017af(0xcb)](LOG_PREFIX3+_0x3017af(0x12c)),state[_0x3017af(0x11f)]=null,updateOverlay());})),createController();}};function createController(){const _0x2acb70={'enable'(){const _0x2f241c=_0x3b28,_0x4e5ab9=getOptions();if(!_0x4e5ab9)return;state[_0x2f241c(0xed)]=!![],void loadOverlay({'overlayPath':_0x4e5ab9[_0x2f241c(0x111)],'enableViteHmr':_0x4e5ab9[_0x2f241c(0xfb)]['enableViteHmr'],'options':_0x4e5ab9,'onToggle':handleToggle}),void registerServiceWorker(_0x4e5ab9),void sendConfiguration(),updateOverlay();},'disable'(){const _0x462a43=_0x3b28,_0x9a3c3d=getOptions();if(!_0x9a3c3d)return;state[_0x462a43(0xed)]=![],state[_0x462a43(0x106)]=![],updateOverlay(),void unregisterServiceWorker(_0x9a3c3d['swPath']);},'status'(){const _0x2990f8=_0x3b28;return{'enabled':state[_0x2990f8(0xed)],'controlled':state['controlled']};}};return typeof window!=='undefined'&&(window['__enhanceController']=_0x2acb70),_0x2acb70;}function handleToggle(){const _0x2e8366=_0x12de1d,_0x5795ee=createController();state['enabled']?_0x5795ee[_0x2e8366(0x187)]():_0x5795ee[_0x2e8366(0x168)]();}function parseUrlParams(){const _0x52102d=_0x12de1d,_0x25051d=new URL(window['location'][_0x52102d(0x159)]),_0x565e1d=_0x25051d[_0x52102d(0xe5)][_0x52102d(0x16b)](_0x52102d(0x179))?.[_0x52102d(0xe4)](),_0x334f20=_0x25051d['searchParams']['get'](_0x52102d(0xfd)),_0x450fe6=_0x25051d[_0x52102d(0xe5)]['get'](_0x52102d(0x177));return{'hasEnhancement':Boolean(_0x334f20||_0x450fe6),'explicitDisable':_0x565e1d==='0'||_0x565e1d===_0x52102d(0x18c)||_0x565e1d===_0x52102d(0x127),'enhancementUrl':_0x334f20,'enhancementId':_0x450fe6};}function cleanUrlParam(_0x497bca){const _0x214498=_0x12de1d,_0x33b7c1=new URL(window[_0x214498(0x13d)]['href']);_0x33b7c1['searchParams'][_0x214498(0x151)](_0x497bca)&&(_0x33b7c1['searchParams'][_0x214498(0x130)](_0x497bca),window[_0x214498(0xe6)][_0x214498(0xb0)](null,document['title'],_0x33b7c1[_0x214498(0x115)]()));}var package_default={'name':_0x12de1d(0x9a),'version':_0x12de1d(0xec),'type':'module','description':_0x12de1d(0xab),'license':_0x12de1d(0xda),'main':'./dev/index.js','module':'./dev/index.js','types':_0x12de1d(0x199),'exports':{'.':{'types':_0x12de1d(0x199),'import':_0x12de1d(0xf4)},'./vite':{'types':_0x12de1d(0x121),'import':_0x12de1d(0xa1)}},'files':[_0x12de1d(0x120)],'bin':{'enhance-sandbox':'./dev/cli.js'},'scripts':{'typecheck':_0x12de1d(0x142),'dev':_0x12de1d(0x10a),'dev:build':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','dev:staging':_0x12de1d(0x184),'dev:staging:build':_0x12de1d(0xb6),'build':_0x12de1d(0x16c),'build:release':_0x12de1d(0xbd),'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':'bun\x20version\x20patch\x20--no-git-tag-version'},'dependencies':{'commander':_0x12de1d(0x102),'zod':_0x12de1d(0x165)},'devDependencies':{'@types/node':_0x12de1d(0x11a),'javascript-obfuscator':_0x12de1d(0x98),'tsup':'^8.5.1','vite':'^7.2.4'},'publishConfig':{'access':'public'}},DEFAULT_SERVICE_WORKER_PATH=_0x12de1d(0x139),DEFAULT_RUNTIME_PATH=_0x12de1d(0x186),DIST_SERVICE_WORKER_PATH=_0x12de1d(0x180),DIST_RUNTIME_PATH=_0x12de1d(0x12f),PACKAGE_VERSION=typeof package_default['version']===_0x12de1d(0xc6)?package_default['version']:_0x12de1d(0xc9);function normalizeAssetPath(_0x3a9e1b){const _0x522f63=_0x12de1d;if(!_0x3a9e1b)return _0x3a9e1b;if(_0x3a9e1b[_0x522f63(0xe8)](_0x522f63(0xd6))||_0x3a9e1b[_0x522f63(0xe8)](_0x522f63(0x14c)))return _0x3a9e1b;const _0x112ba8=_0x3a9e1b[_0x522f63(0x15b)](/^\.\//,'');return _0x112ba8['startsWith']('/')?_0x112ba8:'/'+_0x112ba8;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x5216ab){const _0x4bd573=_0x12de1d;return Enhance[_0x4bd573(0x14e)](_0x5216ab);},'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 _0x5993fd=_0x12de1d;return Enhance2[_0x5993fd(0x19b)]();}function runtimeURL(){const _0x4a7b67=_0x12de1d;return Enhance2[_0x4a7b67(0x158)]();}import{promises as _0x2ed4dd}from'fs';import{createHash}from'crypto';import{dirname,join}from'path';function _0x3b28(_0xced40e,_0x46baa5){_0xced40e=_0xced40e-0x91;const _0x2ef89f=_0x2ef8();let _0x3b2852=_0x2ef89f[_0xced40e];return _0x3b2852;}import{fileURLToPath}from'url';var distDir=dirname(fileURLToPath(new URL(_0x12de1d(0x110),import.meta.url)));async function syncAssets(_0xc2c103){const _0x3bbd99=_0x12de1d,_0x23a0f8=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0xc2c103[_0x3bbd99(0xaa)]?'./'+_0xc2c103[_0x3bbd99(0xaa)]:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0x585b09=[];for(const _0xc97b0f of _0x23a0f8){const _0x105fcc=cleanRelativePath(_0xc97b0f['override']??_0xc97b0f[_0x3bbd99(0x10c)]),_0x359ff3=join(distDir,cleanRelativePath(_0xc97b0f[_0x3bbd99(0x189)])),_0x24199b=join(_0xc2c103[_0x3bbd99(0x152)],_0x105fcc),[_0xebf987,_0x8244db]=await Promise[_0x3bbd99(0xa0)]([readDigest(_0x359ff3),readDigest(_0x24199b)]);if(_0xebf987&&_0x8244db&&_0xebf987===_0x8244db){_0x585b09[_0x3bbd99(0xf3)]({'sourcePath':_0x359ff3,'destinationPath':_0x24199b,'relativeDestination':_0x105fcc,'status':_0x3bbd99(0x160)});continue;}await _0x2ed4dd[_0x3bbd99(0xf8)](dirname(_0x24199b),{'recursive':!![]}),await _0x2ed4dd[_0x3bbd99(0x91)](_0x359ff3,_0x24199b),_0x585b09[_0x3bbd99(0xf3)]({'sourcePath':_0x359ff3,'destinationPath':_0x24199b,'relativeDestination':_0x105fcc,'status':_0x3bbd99(0x146)});}return _0x585b09;}function cleanRelativePath(_0x5a1f7b){const _0x49a5f2=_0x12de1d;return _0x5a1f7b[_0x49a5f2(0x15b)](/^[./]+/,'');}async function readDigest(_0x2758bf){const _0x31c1b9=_0x12de1d;try{const _0x1d7cf7=await _0x2ed4dd[_0x31c1b9(0xa8)](_0x2758bf);return createHash(_0x31c1b9(0xbc))['update'](_0x1d7cf7)[_0x31c1b9(0x185)](_0x31c1b9(0x170));}catch(_0x5490ce){if(_0x5490ce[_0x31c1b9(0x97)]===_0x31c1b9(0x15f))return null;throw _0x5490ce;}}var program=new Command();program[_0x12de1d(0x17b)](_0x12de1d(0xcf))[_0x12de1d(0x192)](_0x12de1d(0x18f))[_0x12de1d(0xea)](_0x12de1d(0xc9)),program[_0x12de1d(0x191)](_0x12de1d(0xfa))['description'](_0x12de1d(0x16a))['action'](()=>{const _0x101d1f=_0x12de1d,_0xf09956=getAssetManifest();process['stdout'][_0x101d1f(0x140)](JSON['stringify'](_0xf09956,null,0x2)+'\x0a');}),program['command'](_0x12de1d(0xaf))[_0x12de1d(0x192)]('Copy\x20the\x20service\x20worker\x20and\x20overlay\x20bundle\x20into\x20a\x20public\x20directory')[_0x12de1d(0xc3)](_0x12de1d(0x17c),_0x12de1d(0xe9))[_0x12de1d(0x141)](_0x12de1d(0x175),'Override\x20the\x20service\x20worker\x20output\x20filename\x20(defaults\x20to\x20sw-enhance.js)')[_0x12de1d(0xb9)](async _0x2eaabf=>{const _0x2a18c4=_0x12de1d,_0x2d633f=resolve(process[_0x2a18c4(0x196)](),_0x2eaabf['publicDir']),_0x5d16a7=await syncAssets({'publicDir':_0x2d633f,'swFilename':_0x2eaabf[_0x2a18c4(0x13f)]});for(const _0x3f6e26 of _0x5d16a7){const _0x4fcdab=relative(process[_0x2a18c4(0x196)](),_0x3f6e26['destinationPath']);_0x3f6e26[_0x2a18c4(0x12b)]===_0x2a18c4(0x160)?process[_0x2a18c4(0xbb)][_0x2a18c4(0x140)]('Skipped\x20'+_0x3f6e26[_0x2a18c4(0x15a)]+_0x2a18c4(0x188)+_0x4fcdab+']\x0a'):process[_0x2a18c4(0xbb)][_0x2a18c4(0x140)]('Copied\x20'+_0x3f6e26['relativeDestination']+'\x20→\x20'+_0x4fcdab+'\x0a');}}),program[_0x12de1d(0x93)]();
|
|
3
|
+
const _0x47ebb2=_0x33ba;(function(_0x2e80f7,_0x5dd7d3){const _0x271576=_0x33ba,_0x47cfdb=_0x2e80f7();while(!![]){try{const _0x110d53=-parseInt(_0x271576(0x125))/0x1+-parseInt(_0x271576(0xec))/0x2+parseInt(_0x271576(0xef))/0x3*(-parseInt(_0x271576(0x9e))/0x4)+parseInt(_0x271576(0xe2))/0x5+parseInt(_0x271576(0xde))/0x6*(parseInt(_0x271576(0xb6))/0x7)+parseInt(_0x271576(0x12b))/0x8*(parseInt(_0x271576(0xd8))/0x9)+-parseInt(_0x271576(0x141))/0xa*(-parseInt(_0x271576(0xb7))/0xb);if(_0x110d53===_0x5dd7d3)break;else _0x47cfdb['push'](_0x47cfdb['shift']());}catch(_0x9f1051){_0x47cfdb['push'](_0x47cfdb['shift']());}}}(_0x1d0b,0x548d2));import{Command}from'commander';import{resolve,relative}from'path';var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x47ebb2(0x12a)?__ENHANCE_DEFAULT_OVERLAY_PATH__:'https://assets.enhancelabs.ai/overlay.js',DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!=='undefined'?__ENHANCE_DEFAULT_BACKEND_URL__:_0x47ebb2(0x132),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x47ebb2(0x12a)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x47ebb2(0xd4)](_0x47ebb2(0x145),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x2ac9c7){const _0x3d4f34=_0x47ebb2,_0x426c3c=_0x2ac9c7[_0x3d4f34(0xfe)]??{};return{'callbackBypass':_0x2ac9c7['callbackBypass']??[],'overlay':{'enabled':!![],'position':'bottom-right','enableViteHmr':_0x426c3c[_0x3d4f34(0x11d)]??DEFAULT_OVERLAY_HMR},'logLevel':'info','swPath':_0x3d4f34(0x16a),'overlayPath':_0x426c3c[_0x3d4f34(0x117)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x3d4f34(0xdf),'security':_0x426c3c['security']??_0x3d4f34(0x98),'backendUrl':_0x426c3c[_0x3d4f34(0xe3)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementUrl(){const _0x1da93f=_0x47ebb2;try{const _0x17666e=new URLSearchParams(window[_0x1da93f(0xf0)]['search']);return _0x17666e['get']('enhancementUrl')?.['trim']()||'';}catch{return'';}}var LOG_PREFIX=_0x47ebb2(0x7e),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x11aa49){const _0x35e2c6=_0x47ebb2;console[_0x35e2c6(0xd4)](LOG_PREFIX+'\x20loadOverlay()\x20called'),console[_0x35e2c6(0xd4)](LOG_PREFIX+'\x20overlayPath:\x20'+_0x11aa49[_0x35e2c6(0x117)]),console[_0x35e2c6(0xd4)](LOG_PREFIX+_0x35e2c6(0x166)+_0x11aa49['enableViteHmr']),currentOptions=_0x11aa49[_0x35e2c6(0xd6)],toggleHandler=_0x11aa49[_0x35e2c6(0x74)];if(overlayController){console[_0x35e2c6(0xd4)](LOG_PREFIX+_0x35e2c6(0xd2)),updateOverlay();return;}if(overlayLoadPromise)return console['log'](LOG_PREFIX+_0x35e2c6(0xf2)),overlayLoadPromise;console['log'](LOG_PREFIX+'\x20Starting\x20fresh\x20overlay\x20load...'),overlayLoadPromise=doLoadOverlay(_0x11aa49);try{await overlayLoadPromise,console['log'](LOG_PREFIX+_0x35e2c6(0xc5));}catch(_0x46ceb4){console[_0x35e2c6(0x152)](LOG_PREFIX+_0x35e2c6(0x8e),_0x46ceb4);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0xb5c2c2){const _0x4c57b8=_0x47ebb2;console[_0x4c57b8(0xd4)](LOG_PREFIX+_0x4c57b8(0xb4));if(typeof window===_0x4c57b8(0x12a)){console[_0x4c57b8(0xd4)](LOG_PREFIX+_0x4c57b8(0x147));return;}if(window[_0x4c57b8(0xbc)]){console['log'](LOG_PREFIX+_0x4c57b8(0x11a)),overlayController=window[_0x4c57b8(0xbc)];return;}console[_0x4c57b8(0xd4)](LOG_PREFIX+_0x4c57b8(0xf7));try{_0xb5c2c2['enableViteHmr']&&(console[_0x4c57b8(0xd4)](LOG_PREFIX+_0x4c57b8(0xcf)),await setupRemoteHMR(_0xb5c2c2[_0x4c57b8(0x117)]));console['log'](LOG_PREFIX+'\x20Importing\x20overlay\x20module\x20from:\x20'+_0xb5c2c2[_0x4c57b8(0x117)]);const _0x42f3e1=Date[_0x4c57b8(0xcd)](),_0x48a560=await import(_0xb5c2c2[_0x4c57b8(0x117)]);console[_0x4c57b8(0xd4)](LOG_PREFIX+_0x4c57b8(0x9f)+(Date[_0x4c57b8(0xcd)]()-_0x42f3e1)+'ms'),console[_0x4c57b8(0xd4)](LOG_PREFIX+_0x4c57b8(0x130),Object[_0x4c57b8(0x128)](_0x48a560));if(typeof _0x48a560?.['createOverlay']!==_0x4c57b8(0x13a)){console[_0x4c57b8(0x152)](LOG_PREFIX+_0x4c57b8(0x153)),console[_0x4c57b8(0x152)](LOG_PREFIX+'\x20Available\x20exports:',Object[_0x4c57b8(0x128)](_0x48a560));return;}console[_0x4c57b8(0xd4)](LOG_PREFIX+_0x4c57b8(0xc8));const _0x342edb=_0x48a560[_0x4c57b8(0x127)]();console[_0x4c57b8(0xd4)](LOG_PREFIX+_0x4c57b8(0x158),_0x342edb),overlayController=_0x342edb,window[_0x4c57b8(0xbc)]=_0x342edb,_0x342edb['onToggle'](_0xb5c2c2[_0x4c57b8(0x74)]),console[_0x4c57b8(0xd4)](LOG_PREFIX+_0x4c57b8(0xdb)),console[_0x4c57b8(0xd4)](LOG_PREFIX+'\x20Calling\x20updateOverlay()...'),updateOverlay();}catch(_0xff1186){console['error'](LOG_PREFIX+_0x4c57b8(0xe5),_0xff1186);}}function updateOverlay(){const _0x361d4b=_0x47ebb2;console[_0x361d4b(0xd4)](LOG_PREFIX+'\x20updateOverlay()\x20called'),console[_0x361d4b(0xd4)](LOG_PREFIX+'\x20overlayController\x20exists:\x20'+!!overlayController),console[_0x361d4b(0xd4)](LOG_PREFIX+_0x361d4b(0xd3)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x361d4b(0xd4)](LOG_PREFIX+_0x361d4b(0x114));return;}const _0x51c932=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+_0x361d4b(0x95),JSON[_0x361d4b(0x100)](_0x51c932,null,0x2)),overlayController[_0x361d4b(0x88)](_0x51c932),console[_0x361d4b(0xd4)](LOG_PREFIX+'\x20Overlay\x20update\x20complete');}function composeOverlayState(_0xd6e33c){const _0x530ec=_0x47ebb2,_0x2bb85e=getEnhancementUrl();return console[_0x530ec(0xd4)](LOG_PREFIX+_0x530ec(0x6f)+_0x2bb85e),console['log'](LOG_PREFIX+_0x530ec(0xc4)+state[_0x530ec(0x97)]),console[_0x530ec(0xd4)](LOG_PREFIX+_0x530ec(0xce)+state[_0x530ec(0x8b)]),{'enhancementUrl':_0x2bb85e,'enabled':state[_0x530ec(0x97)],'controlled':state[_0x530ec(0x8b)],'overlayPosition':_0xd6e33c[_0x530ec(0x14a)][_0x530ec(0x164)],'securityMode':_0xd6e33c['security'],'backendBaseUrl':_0xd6e33c[_0x530ec(0xe3)],'appError':state[_0x530ec(0xf8)]};}async function setupRemoteHMR(_0xb36b41){const _0x197ce0=_0x47ebb2;console['log'](LOG_PREFIX+_0x197ce0(0x10f)+_0xb36b41);if(typeof window===_0x197ce0(0x12a))return;try{const _0x5e5498=new URL(_0xb36b41,window[_0x197ce0(0xf0)][_0x197ce0(0x10c)]),_0x241373=_0x5e5498['origin'];console[_0x197ce0(0xd4)](LOG_PREFIX+'\x20Overlay\x20origin:\x20'+_0x241373+',\x20page\x20origin:\x20'+window[_0x197ce0(0xf0)][_0x197ce0(0x10c)]);if(_0x241373===window[_0x197ce0(0xf0)]['origin']){console[_0x197ce0(0xd4)](LOG_PREFIX+_0x197ce0(0xa0));return;}console[_0x197ce0(0xd4)](LOG_PREFIX+_0x197ce0(0x15b)),await ensureReactRefreshPreamble(_0x241373),await ensureViteClient(_0x241373),console[_0x197ce0(0xd4)](LOG_PREFIX+_0x197ce0(0x137));}catch(_0x49cf98){console['warn'](LOG_PREFIX+_0x197ce0(0x118),_0x49cf98);}}async function ensureReactRefreshPreamble(_0xd0b8e7){const _0x5d564d=_0x47ebb2;window['__enhanceReactRefreshInstalledOrigins']??=new Set();if(window['__enhanceReactRefreshInstalledOrigins'][_0x5d564d(0x149)](_0xd0b8e7)){console['log'](LOG_PREFIX+_0x5d564d(0x7a)+_0xd0b8e7);return;}console[_0x5d564d(0xd4)](LOG_PREFIX+_0x5d564d(0xa9)+_0xd0b8e7+'...');const _0x1516a9=await import(_0xd0b8e7+'/@react-refresh'),_0x57864c=_0x1516a9&&typeof _0x1516a9===_0x5d564d(0x138)&&_0x5d564d(0xa1)in _0x1516a9?_0x1516a9[_0x5d564d(0xa1)]:_0x1516a9;if(!isRefreshRuntime(_0x57864c)){console['warn'](LOG_PREFIX+'\x20Invalid\x20React\x20Refresh\x20runtime');return;}_0x57864c[_0x5d564d(0xd7)](window),window[_0x5d564d(0x134)]=()=>{},window[_0x5d564d(0xbd)]=()=>_0x706ed=>_0x706ed,window['__vite_plugin_react_preamble_installed__']=!![],window[_0x5d564d(0xba)][_0x5d564d(0xe1)](_0xd0b8e7),console['log'](LOG_PREFIX+_0x5d564d(0xb8)+_0xd0b8e7);}async function ensureViteClient(_0x3d494d){const _0x555f6d=_0x47ebb2;window[_0x555f6d(0x13c)]??=new Set();if(window[_0x555f6d(0x13c)][_0x555f6d(0x149)](_0x3d494d)){console[_0x555f6d(0xd4)](LOG_PREFIX+_0x555f6d(0x73)+_0x3d494d);return;}console[_0x555f6d(0xd4)](LOG_PREFIX+_0x555f6d(0x169)+_0x3d494d+_0x555f6d(0xd5)),await import(_0x3d494d+_0x555f6d(0x12c)),window['__viteHMRLoaded'][_0x555f6d(0xe1)](_0x3d494d),console[_0x555f6d(0xd4)](LOG_PREFIX+'\x20Vite\x20HMR\x20client\x20loaded\x20for\x20'+_0x3d494d);}function isRefreshRuntime(_0x6eba71){const _0x5289d7=_0x47ebb2;return typeof _0x6eba71==='object'&&_0x6eba71!==null&&_0x5289d7(0xd7)in _0x6eba71&&typeof _0x6eba71[_0x5289d7(0xd7)]===_0x5289d7(0x13a);}var WORKER_MESSAGE_CONFIG=_0x47ebb2(0x106),WORKER_MESSAGE_DISABLE=_0x47ebb2(0xab),LOG_PREFIX2=_0x47ebb2(0x91),registration=null,currentOptions2=null;async function registerServiceWorker(_0x2817ab){const _0x1ece52=_0x47ebb2;console[_0x1ece52(0xd4)](LOG_PREFIX2+'\x20registerServiceWorker()\x20called'),console[_0x1ece52(0xd4)](LOG_PREFIX2+_0x1ece52(0x99)+_0x2817ab[_0x1ece52(0x15e)]);if(!('serviceWorker'in navigator)){console[_0x1ece52(0x15d)](LOG_PREFIX2+_0x1ece52(0xe7));return;}console[_0x1ece52(0xd4)](LOG_PREFIX2+_0x1ece52(0xeb));const _0x561450=navigator[_0x1ece52(0xfa)][_0x1ece52(0x96)];console[_0x1ece52(0xd4)](LOG_PREFIX2+'\x20Current\x20controller:',_0x561450?.[_0x1ece52(0x10a)]??_0x1ece52(0x155)),console[_0x1ece52(0xd4)](LOG_PREFIX2+_0x1ece52(0x123),_0x561450?.[_0x1ece52(0xb3)]??_0x1ece52(0x13f));const _0x4e6966=!!_0x561450;currentOptions2=_0x2817ab,console[_0x1ece52(0xd4)](LOG_PREFIX2+_0x1ece52(0xb2));const _0xbe7d63=await detectBlockingServiceWorker(_0x2817ab[_0x1ece52(0x15e)]);if(_0xbe7d63){console[_0x1ece52(0x152)](LOG_PREFIX2+_0x1ece52(0x15a)+_0xbe7d63),console[_0x1ece52(0x152)](LOG_PREFIX2+_0x1ece52(0xdd));return;}console[_0x1ece52(0xd4)](LOG_PREFIX2+'\x20No\x20blocking\x20SW\x20found');try{console[_0x1ece52(0xd4)](LOG_PREFIX2+'\x20Registering\x20SW\x20at\x20'+_0x2817ab[_0x1ece52(0x15e)]+_0x1ece52(0xb0)),registration=await navigator[_0x1ece52(0xfa)]['register'](_0x2817ab['swPath'],{'scope':'/'}),console[_0x1ece52(0xd4)](LOG_PREFIX2+'\x20Registration\x20returned:',{'scope':registration[_0x1ece52(0x156)],'active':registration[_0x1ece52(0x71)]?.[_0x1ece52(0x10a)],'waiting':registration['waiting']?.[_0x1ece52(0x10a)],'installing':registration['installing']?.['scriptURL']}),console[_0x1ece52(0xd4)](LOG_PREFIX2+'\x20Waiting\x20for\x20navigator.serviceWorker.ready...');const _0x59c417=await navigator[_0x1ece52(0xfa)]['ready'];console[_0x1ece52(0xd4)](LOG_PREFIX2+_0x1ece52(0x84),_0x59c417[_0x1ece52(0x71)]?.['scriptURL']);const _0x2bcd7b=ownsCurrentController(_0x2817ab[_0x1ece52(0x15e)]);state[_0x1ece52(0x8b)]=_0x2bcd7b,console['log'](LOG_PREFIX2+'\x20Page\x20controlled\x20by\x20our\x20SW:\x20'+_0x2bcd7b),console['log'](LOG_PREFIX2+_0x1ece52(0x104),navigator[_0x1ece52(0xfa)][_0x1ece52(0x96)]?.[_0x1ece52(0x10a)]??_0x1ece52(0x155));if(!_0x4e6966&&!navigator['serviceWorker'][_0x1ece52(0x96)]){console[_0x1ece52(0xd4)](LOG_PREFIX2+_0x1ece52(0x93)),window['location'][_0x1ece52(0xda)]();return;}console[_0x1ece52(0xd4)](LOG_PREFIX2+_0x1ece52(0x94)),await sendConfiguration();if(state[_0x1ece52(0x97)]){const _0x39900f=document[_0x1ece52(0x135)](_0x1ece52(0x131))!==null;console['log'](LOG_PREFIX2+_0x1ece52(0x10b)+_0x39900f);if(!_0x39900f){console[_0x1ece52(0xd4)](LOG_PREFIX2+'\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement'),window[_0x1ece52(0xf0)][_0x1ece52(0xda)]();return;}}console[_0x1ece52(0xd4)](LOG_PREFIX2+_0x1ece52(0xa6)),updateOverlay(),console[_0x1ece52(0xd4)](LOG_PREFIX2+_0x1ece52(0x9b));}catch(_0x49b64f){console[_0x1ece52(0x152)](LOG_PREFIX2+_0x1ece52(0xca),_0x49b64f);}}async function sendConfiguration(){const _0x419dbc=_0x47ebb2;console[_0x419dbc(0xd4)](LOG_PREFIX2+_0x419dbc(0xaf)),console[_0x419dbc(0xd4)](LOG_PREFIX2+_0x419dbc(0x81)+state[_0x419dbc(0x97)]+_0x419dbc(0x15c)+!!currentOptions2);if(!state[_0x419dbc(0x97)]||!currentOptions2){console[_0x419dbc(0xd4)](LOG_PREFIX2+_0x419dbc(0xe9));return;}const _0x5977f4=await resolveWorker();if(!_0x5977f4){console[_0x419dbc(0x15d)](LOG_PREFIX2+_0x419dbc(0xbb));return;}const _0x2c8eff={'callbackBypass':currentOptions2[_0x419dbc(0x108)],'securityMode':currentOptions2[_0x419dbc(0xb5)]};console[_0x419dbc(0xd4)](LOG_PREFIX2+_0x419dbc(0xd9),JSON[_0x419dbc(0x100)](_0x2c8eff,null,0x2)),_0x5977f4[_0x419dbc(0x154)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x2c8eff}),console[_0x419dbc(0xd4)](LOG_PREFIX2+_0x419dbc(0xae));}async function unregisterServiceWorker(_0x35be89){const _0x29a6d3=_0x47ebb2;console[_0x29a6d3(0xd4)](LOG_PREFIX2+_0x29a6d3(0xea));if(!('serviceWorker'in navigator)){console[_0x29a6d3(0xd4)](LOG_PREFIX2+_0x29a6d3(0xf5));return;}try{const _0xdfde79=registration??await navigator[_0x29a6d3(0xfa)]['getRegistration']('/');if(!_0xdfde79){console['log'](LOG_PREFIX2+_0x29a6d3(0x11f));return;}console['log'](LOG_PREFIX2+'\x20Found\x20registration:',{'scope':_0xdfde79[_0x29a6d3(0x156)],'active':_0xdfde79[_0x29a6d3(0x71)]?.[_0x29a6d3(0x10a)],'waiting':_0xdfde79[_0x29a6d3(0x14c)]?.[_0x29a6d3(0x10a)],'installing':_0xdfde79['installing']?.[_0x29a6d3(0x10a)]});const _0x4ec4c3=[_0xdfde79[_0x29a6d3(0x71)]?.[_0x29a6d3(0x10a)],_0xdfde79[_0x29a6d3(0x14c)]?.[_0x29a6d3(0x10a)],_0xdfde79[_0x29a6d3(0xe4)]?.[_0x29a6d3(0x10a)]],_0x44da4e=_0x4ec4c3[_0x29a6d3(0x9d)](_0x3ff95d=>_0x3ff95d&&ownsServiceWorker(_0x3ff95d,_0x35be89));if(!_0x44da4e){console[_0x29a6d3(0xd4)](LOG_PREFIX2+_0x29a6d3(0x163));return;}_0xdfde79['active']&&(console[_0x29a6d3(0xd4)](LOG_PREFIX2+_0x29a6d3(0x79)),_0xdfde79['active'][_0x29a6d3(0x154)]({'type':WORKER_MESSAGE_DISABLE})),console[_0x29a6d3(0xd4)](LOG_PREFIX2+_0x29a6d3(0x115)),await _0xdfde79[_0x29a6d3(0x162)](),registration=null,currentOptions2=null,console['log'](LOG_PREFIX2+_0x29a6d3(0xfd));}catch(_0x25eb6c){console[_0x29a6d3(0x152)](LOG_PREFIX2+_0x29a6d3(0xf6),_0x25eb6c);}}function ownsServiceWorker(_0x450cc8,_0x396992){const _0x5332ec=_0x47ebb2,_0x47eb9a=typeof window!=='undefined'?window['location'][_0x5332ec(0x10c)]:'',_0x5d3b5b=new URL(_0x396992,_0x47eb9a||void 0x0)['href'],_0x5a4c0d=_0x450cc8===_0x5d3b5b||_0x450cc8[_0x5332ec(0x160)](_0x5332ec(0x8c));return console[_0x5332ec(0xd4)](LOG_PREFIX2+_0x5332ec(0x139)+_0x450cc8+',\x20expected='+_0x5d3b5b+',\x20owns='+_0x5a4c0d),_0x5a4c0d;}function ownsCurrentController(_0x53e6af){const _0x5005d3=_0x47ebb2;if(typeof navigator===_0x5005d3(0x12a))return![];const _0x3aa980=navigator[_0x5005d3(0xfa)]?.[_0x5005d3(0x96)];if(!_0x3aa980)return console[_0x5005d3(0xd4)](LOG_PREFIX2+_0x5005d3(0xe6)),![];return ownsServiceWorker(_0x3aa980[_0x5005d3(0x10a)],_0x53e6af);}function _0x1d0b(){const _0x25a8d8=['base64','copyFile','explicitDisable','^24.10.1','./dev/index.d.ts','vite:beforeUpdate','\x20composeOverlayState\x20-\x20state.enabled:\x20','\x20loadOverlay()\x20complete','\x20Unregistering\x20any\x20existing\x20SW...','cwd','\x20Calling\x20createOverlay()...','searchParams','\x20Failed\x20to\x20register\x20service\x20worker:','publicDir','err','now','\x20composeOverlayState\x20-\x20state.controlled:\x20','\x20Setting\x20up\x20remote\x20HMR...','\x20Normalized\x20options:','\x20(already\x20current)\x20[','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','\x20currentOptions\x20exists:\x20','log','...','options','injectIntoGlobalHook','374202vzHtnR','\x20Sending\x20customer\x20config\x20to\x20SW:','reload','\x20Overlay\x20controller\x20initialized\x20and\x20cached','assets/enhance-runtime.js','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','22746stnLHQ','/assets/enhance-runtime.js','Skipped\x20','add','3267900GECxzP','backendUrl','installing','\x20Failed\x20to\x20import/create\x20overlay:','\x20No\x20current\x20controller','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','message','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','\x20unregisterServiceWorker()\x20called','\x20Service\x20workers\x20supported','628094ZmxrvO','\x20Document\x20readyState:\x20','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','75990BaCkHI','location','parseAsync','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','enableViteHmr','readyState','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','\x20Failed\x20to\x20unregister\x20service\x20worker:','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','appError','getRegistration','serviceWorker','dev/','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','\x20SW\x20unregistered\x20successfully','__development','\x20enhancementId:\x20','stringify','sw-enhance.js','__enhanceController','Print\x20the\x20current\x20asset\x20manifest','\x20Current\x20controller\x20after\x20ready:','replace','enhance:configure','delete','callbackBypass','relativeDestination','scriptURL','\x20Enhancement\x20detection:\x20wasEnhanced=','origin','enhancementUrl','all','\x20setupRemoteHMR()\x20for\x20','sourcePath','init','history','bun\x20version\x20patch\x20--no-git-tag-version','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','\x20Unregistering\x20SW...','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','overlayPath','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','manifestPath','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','https://','write','enableOverlayHmr','^3.22.4','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','__enhanceOptions','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','startsWith','\x20Controller\x20state:','--filename\x20<name>','343441KMuSba','code','createOverlay','keys','tsc\x20--noEmit','undefined','24WFzFnb','/@vite/client','enable','\x20detectBlocking\x20error:','get','\x20Module\x20exports:','[data-enhance-runtime-bootstrap]','https://api.enhancelabs.ai','copied','$RefreshReg$','querySelector','requiredOption','\x20HMR\x20setup\x20complete','object','\x20ownsServiceWorker?\x20scriptURL=','function','module','__viteHMRLoaded','Enhance\x20sandbox\x20utility\x20CLI','ENOENT','N/A','serviceWorkerURL','2630XfVwPP','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','../dist/index.js','Directory\x20to\x20copy\x20the\x20service\x20worker\x20into','[Enhance\x20Config]\x20Build-time\x20defaults:','\x20detectBlocking\x20-\x20existing\x20registration:','\x20No\x20window\x20object\x20-\x20skipping','^11.1.0','has','overlay','command','waiting','enhancementId','sha256','./dev/cli.js','public','^8.5.1','error','\x20Module\x20missing\x20createOverlay\x20export!','postMessage','none','scope','\x20Vite\x20error\x20detected:','\x20Controller\x20created:','manifest','\x20BLOCKING\x20SW\x20detected:\x20','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...',',\x20currentOptions:\x20','warn','swPath','MIT','includes','title','unregister','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','position','./dev/vite/index.js','\x20enableViteHmr:\x20','state:\x20','\x20→\x20','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','/sw-enhance.js','\x20Starting\x20overlay\x20load\x20(async)...','href','\x20init()\x20complete\x20-\x20normal\x20mode','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','enhancement','active','@enhance-eng/sandbox','\x20Vite\x20client\x20already\x20loaded\x20for\x20','onToggle','[Enhance\x20Runtime]','off','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','__enhanceInitialized','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','\x20React\x20Refresh\x20already\x20installed\x20for\x20','\x20enhancementUrl:\x20','string','vite:error','[Enhance\x20Overlay]','./dev/index.js','status','\x20state.enabled:\x20','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','\x20Current\x20URL:\x20','\x20SW\x20ready!\x20Active:','--public-dir\x20<path>','readFile','\x20resolveWorker:','update','^7.2.4','swFilename','controlled','sw-enhance','name','\x20loadOverlay()\x20failed:','stdout','push','[Enhance\x20SW-Client]','hasEnhancement','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','\x20Sending\x20customer\x20configuration...','\x20Updating\x20overlay\x20with\x20state:','controller','enabled','permissive','\x20swPath:\x20','0.0.0','\x20registerServiceWorker()\x20complete','enhance-sandbox','some','52zWCepb','\x20Module\x20imported\x20in\x20','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','default','http://','./dev/vite/index.d.ts','\x20Enhancement\x20mode\x20ENABLED','description','\x20Updating\x20overlay...','Copy\x20the\x20service\x20worker\x20and\x20overlay\x20bundle\x20into\x20a\x20public\x20directory','prepare-sw','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','Override\x20the\x20service\x20worker\x20output\x20filename\x20(defaults\x20to\x20sw-enhance.js)','enhance:disable','digest','\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','\x20Config\x20sent\x20to\x20SW','\x20sendConfiguration()\x20called','\x20with\x20scope\x20\x27/\x27...','^4.1.1','\x20Checking\x20for\x20blocking\x20service\x20worker...','state','\x20doLoadOverlay()\x20starting...','security','413XBMeDs','13849JOgyKR','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','version','__enhanceReactRefreshInstalledOrigins','\x20No\x20service\x20worker\x20active\x20to\x20configure','__enhanceOverlay','$RefreshSig$'];_0x1d0b=function(){return _0x25a8d8;};return _0x1d0b();}async function detectBlockingServiceWorker(_0x9d463){const _0xa783b0=_0x47ebb2;if(!navigator['serviceWorker'])return null;try{const _0x1c0145=await navigator[_0xa783b0(0xfa)]['getRegistration']('/');console[_0xa783b0(0xd4)](LOG_PREFIX2+_0xa783b0(0x146),_0x1c0145?.['active']?.[_0xa783b0(0x10a)]??_0xa783b0(0x155));const _0x1e7044=_0x1c0145?.[_0xa783b0(0x71)]?.[_0xa783b0(0x10a)];if(!_0x1e7044)return null;if(ownsServiceWorker(_0x1e7044,_0x9d463))return null;return _0x1e7044;}catch(_0x538baf){return console[_0xa783b0(0x152)](LOG_PREFIX2+_0xa783b0(0x12e),_0x538baf),null;}}async function resolveWorker(){const _0x4b65f2=_0x47ebb2,_0x163170=registration??await navigator['serviceWorker']?.[_0x4b65f2(0xf9)]('/'),_0x5e0c0b=_0x163170?.[_0x4b65f2(0x71)]??_0x163170?.[_0x4b65f2(0x14c)]??_0x163170?.[_0x4b65f2(0xe4)]??null;return console[_0x4b65f2(0xd4)](LOG_PREFIX2+_0x4b65f2(0x87),_0x5e0c0b?.[_0x4b65f2(0x10a)]??'none',_0x4b65f2(0x167)+(_0x5e0c0b?.[_0x4b65f2(0xb3)]??_0x4b65f2(0x13f))),_0x5e0c0b;}var LOG_PREFIX3=_0x47ebb2(0x75);function isInitialized(){const _0x3544df=_0x47ebb2;return typeof window!=='undefined'&&window[_0x3544df(0x78)]===!![];}function setInitialized(_0x5d1dee){const _0x50347=_0x47ebb2;typeof window!==_0x50347(0x12a)&&(window[_0x50347(0x78)]=_0x5d1dee);}function getOptions(){const _0x1ce52d=_0x47ebb2;return typeof window!==_0x1ce52d(0x12a)?window[_0x1ce52d(0x120)]??null:null;}function setOptions(_0x8cbae9){const _0x1f46da=_0x47ebb2;typeof window!=='undefined'&&(window[_0x1f46da(0x120)]=_0x8cbae9);}var Enhance={'init'(_0x1ce40f={}){const _0x77773a=_0x47ebb2,_0x3f309a=Date[_0x77773a(0xcd)]();console[_0x77773a(0xd4)](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x3f309a),console['log'](LOG_PREFIX3+_0x77773a(0x83)+window[_0x77773a(0xf0)][_0x77773a(0x6d)]),console['log'](LOG_PREFIX3+_0x77773a(0xed)+document[_0x77773a(0xf4)]),console[_0x77773a(0xd4)](LOG_PREFIX3+'\x20Raw\x20options:',JSON[_0x77773a(0x100)](_0x1ce40f,null,0x2));if(isInitialized())return console[_0x77773a(0x15d)](LOG_PREFIX3+_0x77773a(0x77)),window[_0x77773a(0x102)]??createController();setInitialized(!![]),console['log'](LOG_PREFIX3+'\x20First\x20initialization');const _0x5bd044=normalizeOptions(_0x1ce40f);setOptions(_0x5bd044),console[_0x77773a(0xd4)](LOG_PREFIX3+_0x77773a(0xd0),JSON[_0x77773a(0x100)](_0x5bd044,null,0x2));const _0x5ab53f=parseUrlParams();console[_0x77773a(0xd4)](LOG_PREFIX3+'\x20URL\x20params\x20parsed:',JSON[_0x77773a(0x100)](_0x5ab53f,null,0x2));if(_0x5ab53f[_0x77773a(0xc0)])return cleanUrlParam('enhance'),console[_0x77773a(0xd4)](LOG_PREFIX3+_0x77773a(0xad)),createController();if(_0x5ab53f[_0x77773a(0x92)])return console[_0x77773a(0xd4)](LOG_PREFIX3+_0x77773a(0xa4)),console[_0x77773a(0xd4)](LOG_PREFIX3+_0x77773a(0x7b)+_0x5ab53f[_0x77773a(0x10d)]),console['log'](LOG_PREFIX3+_0x77773a(0xff)+_0x5ab53f[_0x77773a(0x14d)]),state[_0x77773a(0x97)]=!![],console[_0x77773a(0xd4)](LOG_PREFIX3+_0x77773a(0x16b)),void loadOverlay({'overlayPath':_0x5bd044[_0x77773a(0x117)],'enableViteHmr':_0x5bd044[_0x77773a(0x14a)][_0x77773a(0xf3)],'options':_0x5bd044,'onToggle':handleToggle}),console[_0x77773a(0xd4)](LOG_PREFIX3+'\x20Starting\x20SW\x20registration\x20(async)...'),void registerServiceWorker(_0x5bd044),console['log'](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20enhancement\x20mode'),createController();return console[_0x77773a(0xd4)](LOG_PREFIX3+_0x77773a(0x121)),console[_0x77773a(0xd4)](LOG_PREFIX3+_0x77773a(0xc6)),void unregisterServiceWorker(_0x5bd044[_0x77773a(0x15e)]),console[_0x77773a(0xd4)](LOG_PREFIX3+_0x77773a(0x6e)),import.meta.hot&&(console['log'](LOG_PREFIX3+_0x77773a(0x82)),import.meta.hot['on'](_0x77773a(0x7d),_0x4bebb5=>{const _0x37943c=_0x77773a;console[_0x37943c(0xd4)](LOG_PREFIX3+_0x37943c(0x157),_0x4bebb5),state[_0x37943c(0xf8)]={'message':_0x4bebb5[_0x37943c(0xcc)][_0x37943c(0xe8)]},updateOverlay();}),import.meta.hot['on'](_0x77773a(0xc3),()=>{const _0x21b717=_0x77773a;state[_0x21b717(0xf8)]&&(console['log'](LOG_PREFIX3+'\x20Vite\x20update\x20pending\x20-\x20clearing\x20error'),state[_0x21b717(0xf8)]=null,updateOverlay());})),createController();}};function createController(){const _0x3b6939=_0x47ebb2,_0x7b0da4={'enable'(){const _0x508c3f=_0x33ba,_0x3e45bf=getOptions();if(!_0x3e45bf)return;state['enabled']=!![],void loadOverlay({'overlayPath':_0x3e45bf[_0x508c3f(0x117)],'enableViteHmr':_0x3e45bf['overlay'][_0x508c3f(0xf3)],'options':_0x3e45bf,'onToggle':handleToggle}),void registerServiceWorker(_0x3e45bf),void sendConfiguration(),updateOverlay();},'disable'(){const _0x47bdbb=_0x33ba,_0x449ccb=getOptions();if(!_0x449ccb)return;state['enabled']=![],state[_0x47bdbb(0x8b)]=![],updateOverlay(),void unregisterServiceWorker(_0x449ccb[_0x47bdbb(0x15e)]);},'status'(){return{'enabled':state['enabled'],'controlled':state['controlled']};}};return typeof window!==_0x3b6939(0x12a)&&(window['__enhanceController']=_0x7b0da4),_0x7b0da4;}function handleToggle(){const _0x48a4c6=_0x47ebb2,_0x3b3ca2=createController();state[_0x48a4c6(0x97)]?_0x3b3ca2['disable']():_0x3b3ca2[_0x48a4c6(0x12d)]();}function parseUrlParams(){const _0x23fae6=_0x47ebb2,_0xb99144=new URL(window['location']['href']),_0x1827f0=_0xb99144[_0x23fae6(0xc9)][_0x23fae6(0x12f)]('enhance')?.['toLowerCase'](),_0x28f9de=_0xb99144[_0x23fae6(0xc9)]['get'](_0x23fae6(0x10d)),_0x558de1=_0xb99144[_0x23fae6(0xc9)]['get'](_0x23fae6(0x70));return{'hasEnhancement':Boolean(_0x28f9de||_0x558de1),'explicitDisable':_0x1827f0==='0'||_0x1827f0==='false'||_0x1827f0===_0x23fae6(0x76),'enhancementUrl':_0x28f9de,'enhancementId':_0x558de1};}function cleanUrlParam(_0x52a7db){const _0x5c3bd0=_0x47ebb2,_0x11f331=new URL(window[_0x5c3bd0(0xf0)][_0x5c3bd0(0x6d)]);_0x11f331['searchParams'][_0x5c3bd0(0x149)](_0x52a7db)&&(_0x11f331[_0x5c3bd0(0xc9)][_0x5c3bd0(0x107)](_0x52a7db),window[_0x5c3bd0(0x112)]['replaceState'](null,document[_0x5c3bd0(0x161)],_0x11f331['toString']()));}var package_default={'name':_0x47ebb2(0x72),'version':'0.3.20','type':_0x47ebb2(0x13b),'description':'Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','license':_0x47ebb2(0x15f),'main':_0x47ebb2(0x7f),'module':'./dev/index.js','types':_0x47ebb2(0xc2),'exports':{'.':{'types':_0x47ebb2(0xc2),'import':'./dev/index.js'},'./vite':{'types':_0x47ebb2(0xa3),'import':_0x47ebb2(0x165)}},'files':[_0x47ebb2(0xfb)],'bin':{'enhance-sandbox':_0x47ebb2(0x14f)},'scripts':{'typecheck':_0x47ebb2(0x129),'dev':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','dev:build':_0x47ebb2(0xfc),'dev:staging':_0x47ebb2(0x116),'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':_0x47ebb2(0x142),'build:release':_0x47ebb2(0xee),'version':_0x47ebb2(0x113)},'dependencies':{'commander':_0x47ebb2(0x148),'zod':_0x47ebb2(0x11e)},'devDependencies':{'@types/node':_0x47ebb2(0xc1),'javascript-obfuscator':_0x47ebb2(0xb1),'tsup':_0x47ebb2(0x151),'vite':_0x47ebb2(0x89)},'publishConfig':{'access':_0x47ebb2(0x150)}},DEFAULT_SERVICE_WORKER_PATH=_0x47ebb2(0x16a),DEFAULT_RUNTIME_PATH='/assets/enhance-runtime.js',DIST_SERVICE_WORKER_PATH=_0x47ebb2(0x101),DIST_RUNTIME_PATH=_0x47ebb2(0xdc),PACKAGE_VERSION=typeof package_default[_0x47ebb2(0xb9)]===_0x47ebb2(0x7c)?package_default[_0x47ebb2(0xb9)]:'0.0.0';function normalizeAssetPath(_0x32b427){const _0x1518ea=_0x47ebb2;if(!_0x32b427)return _0x32b427;if(_0x32b427['startsWith'](_0x1518ea(0xa2))||_0x32b427[_0x1518ea(0x122)](_0x1518ea(0x11b)))return _0x32b427;const _0x15d272=_0x32b427[_0x1518ea(0x105)](/^\.\//,'');return _0x15d272[_0x1518ea(0x122)]('/')?_0x15d272:'/'+_0x15d272;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x552e30){const _0x5e526e=_0x47ebb2;return Enhance[_0x5e526e(0x111)](_0x552e30);},'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 _0x2ac485=_0x47ebb2;return Enhance2[_0x2ac485(0x140)]();}function _0x33ba(_0x2cb84b,_0x378867){_0x2cb84b=_0x2cb84b-0x6d;const _0x1d0b17=_0x1d0b();let _0x33ba1f=_0x1d0b17[_0x2cb84b];return _0x33ba1f;}function runtimeURL(){return Enhance2['runtimeURL']();}import{promises as _0xc8fbd1}from'fs';import{createHash}from'crypto';import{dirname,join}from'path';import{fileURLToPath}from'url';var distDir=dirname(fileURLToPath(new URL(_0x47ebb2(0x143),import.meta.url)));async function syncAssets(_0x45631a){const _0x165216=_0x47ebb2,_0x23f975=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0x45631a[_0x165216(0x8a)]?'./'+_0x45631a['swFilename']:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0xae99a=[];for(const _0x2ccbc7 of _0x23f975){const _0x37bcb3=cleanRelativePath(_0x2ccbc7['override']??_0x2ccbc7[_0x165216(0x119)]),_0x32434c=join(distDir,cleanRelativePath(_0x2ccbc7[_0x165216(0x110)])),_0x101a1f=join(_0x45631a[_0x165216(0xcb)],_0x37bcb3),[_0xf141e6,_0x49a943]=await Promise[_0x165216(0x10e)]([readDigest(_0x32434c),readDigest(_0x101a1f)]);if(_0xf141e6&&_0x49a943&&_0xf141e6===_0x49a943){_0xae99a[_0x165216(0x90)]({'sourcePath':_0x32434c,'destinationPath':_0x101a1f,'relativeDestination':_0x37bcb3,'status':'skipped'});continue;}await _0xc8fbd1['mkdir'](dirname(_0x101a1f),{'recursive':!![]}),await _0xc8fbd1[_0x165216(0xbf)](_0x32434c,_0x101a1f),_0xae99a[_0x165216(0x90)]({'sourcePath':_0x32434c,'destinationPath':_0x101a1f,'relativeDestination':_0x37bcb3,'status':_0x165216(0x133)});}return _0xae99a;}function cleanRelativePath(_0x150760){const _0x833c35=_0x47ebb2;return _0x150760[_0x833c35(0x105)](/^[./]+/,'');}async function readDigest(_0x3df5ab){const _0x5446c3=_0x47ebb2;try{const _0xa238df=await _0xc8fbd1[_0x5446c3(0x86)](_0x3df5ab);return createHash(_0x5446c3(0x14e))['update'](_0xa238df)[_0x5446c3(0xac)](_0x5446c3(0xbe));}catch(_0x1813b5){if(_0x1813b5[_0x5446c3(0x126)]===_0x5446c3(0x13e))return null;throw _0x1813b5;}}var program=new Command();program[_0x47ebb2(0x8d)](_0x47ebb2(0x9c))[_0x47ebb2(0xa5)](_0x47ebb2(0x13d))[_0x47ebb2(0xb9)](_0x47ebb2(0x9a)),program['command'](_0x47ebb2(0x159))[_0x47ebb2(0xa5)](_0x47ebb2(0x103))['action'](()=>{const _0x158cbb=_0x47ebb2,_0x3a3e3b=getAssetManifest();process['stdout'][_0x158cbb(0x11c)](JSON['stringify'](_0x3a3e3b,null,0x2)+'\x0a');}),program[_0x47ebb2(0x14b)](_0x47ebb2(0xa8))[_0x47ebb2(0xa5)](_0x47ebb2(0xa7))[_0x47ebb2(0x136)](_0x47ebb2(0x85),_0x47ebb2(0x144))['option'](_0x47ebb2(0x124),_0x47ebb2(0xaa))['action'](async _0x10a0df=>{const _0x1393a6=_0x47ebb2,_0x5dd61b=resolve(process[_0x1393a6(0xc7)](),_0x10a0df[_0x1393a6(0xcb)]),_0x221707=await syncAssets({'publicDir':_0x5dd61b,'swFilename':_0x10a0df['filename']});for(const _0x4a1d25 of _0x221707){const _0x291407=relative(process['cwd'](),_0x4a1d25['destinationPath']);_0x4a1d25[_0x1393a6(0x80)]==='skipped'?process[_0x1393a6(0x8f)]['write'](_0x1393a6(0xe0)+_0x4a1d25[_0x1393a6(0x109)]+_0x1393a6(0xd1)+_0x291407+']\x0a'):process[_0x1393a6(0x8f)][_0x1393a6(0x11c)]('Copied\x20'+_0x4a1d25[_0x1393a6(0x109)]+_0x1393a6(0x168)+_0x291407+'\x0a');}}),program[_0x47ebb2(0xf1)]();
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x215ad0=_0x5e61;(function(_0x261d52,_0x43ecda){const _0x3a58cc=_0x5e61,_0x486d92=_0x261d52();while(!![]){try{const _0xdbabaf=parseInt(_0x3a58cc(0x175))/0x1+-parseInt(_0x3a58cc(0x19a))/0x2*(-parseInt(_0x3a58cc(0x14a))/0x3)+parseInt(_0x3a58cc(0x180))/0x4*(parseInt(_0x3a58cc(0x154))/0x5)+parseInt(_0x3a58cc(0x20b))/0x6+-parseInt(_0x3a58cc(0x218))/0x7+parseInt(_0x3a58cc(0x18b))/0x8*(parseInt(_0x3a58cc(0x192))/0x9)+parseInt(_0x3a58cc(0x1b0))/0xa*(-parseInt(_0x3a58cc(0x1cf))/0xb);if(_0xdbabaf===_0x43ecda)break;else _0x486d92['push'](_0x486d92['shift']());}catch(_0x2e17e2){_0x486d92['push'](_0x486d92['shift']());}}}(_0x1c28,0xb00f2));function _0x5e61(_0x488722,_0x3d5204){_0x488722=_0x488722-0x14a;const _0x1c2833=_0x1c28();let _0x5e61ef=_0x1c2833[_0x488722];return _0x5e61ef;}var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x215ad0(0x179)?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x215ad0(0x14e),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x215ad0(0x179)?__ENHANCE_DEFAULT_BACKEND_URL__:'https://api.enhancelabs.ai',DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x215ad0(0x179)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x215ad0(0x188)](_0x215ad0(0x15b),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x3155f3){const _0x59b91e=_0x215ad0,_0x539db8=_0x3155f3[_0x59b91e(0x216)]??{};return{'callbackBypass':_0x3155f3[_0x59b91e(0x1bc)]??[],'overlay':{'enabled':!![],'position':_0x59b91e(0x208),'enableViteHmr':_0x539db8['enableOverlayHmr']??DEFAULT_OVERLAY_HMR},'logLevel':_0x59b91e(0x16e),'swPath':_0x59b91e(0x1ee),'overlayPath':_0x539db8[_0x59b91e(0x162)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':'/assets/enhance-runtime.js','security':_0x539db8[_0x59b91e(0x1a7)]??_0x59b91e(0x1f9),'backendUrl':_0x539db8['backendUrl']??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementUrl(){const _0x4d4b00=_0x215ad0;try{const _0x337d5b=new URLSearchParams(window[_0x4d4b00(0x171)][_0x4d4b00(0x1cd)]);return _0x337d5b['get'](_0x4d4b00(0x18a))?.['trim']()||'';}catch{return'';}}var LOG_PREFIX=_0x215ad0(0x204),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x579c59){const _0x341d2b=_0x215ad0;console[_0x341d2b(0x188)](LOG_PREFIX+'\x20loadOverlay()\x20called'),console[_0x341d2b(0x188)](LOG_PREFIX+'\x20overlayPath:\x20'+_0x579c59[_0x341d2b(0x162)]),console[_0x341d2b(0x188)](LOG_PREFIX+_0x341d2b(0x15c)+_0x579c59[_0x341d2b(0x207)]),currentOptions=_0x579c59[_0x341d2b(0x17e)],toggleHandler=_0x579c59[_0x341d2b(0x1c4)];if(overlayController){console[_0x341d2b(0x188)](LOG_PREFIX+'\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay'),updateOverlay();return;}if(overlayLoadPromise)return console[_0x341d2b(0x188)](LOG_PREFIX+_0x341d2b(0x1d6)),overlayLoadPromise;console[_0x341d2b(0x188)](LOG_PREFIX+_0x341d2b(0x19d)),overlayLoadPromise=doLoadOverlay(_0x579c59);try{await overlayLoadPromise,console[_0x341d2b(0x188)](LOG_PREFIX+_0x341d2b(0x151));}catch(_0x3464f6){console[_0x341d2b(0x186)](LOG_PREFIX+_0x341d2b(0x1c9),_0x3464f6);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x4500a6){const _0x895d75=_0x215ad0;console[_0x895d75(0x188)](LOG_PREFIX+_0x895d75(0x1c7));if(typeof window===_0x895d75(0x179)){console[_0x895d75(0x188)](LOG_PREFIX+_0x895d75(0x1d4));return;}if(window[_0x895d75(0x1c1)]){console[_0x895d75(0x188)](LOG_PREFIX+_0x895d75(0x1cc)),overlayController=window[_0x895d75(0x1c1)];return;}console[_0x895d75(0x188)](LOG_PREFIX+_0x895d75(0x1c8));try{_0x4500a6['enableViteHmr']&&(console['log'](LOG_PREFIX+_0x895d75(0x1b2)),await setupRemoteHMR(_0x4500a6[_0x895d75(0x162)]));console[_0x895d75(0x188)](LOG_PREFIX+_0x895d75(0x219)+_0x4500a6[_0x895d75(0x162)]);const _0x144c98=Date[_0x895d75(0x161)](),_0x500b57=await import(_0x4500a6['overlayPath']);console[_0x895d75(0x188)](LOG_PREFIX+_0x895d75(0x185)+(Date[_0x895d75(0x161)]()-_0x144c98)+'ms'),console['log'](LOG_PREFIX+'\x20Module\x20exports:',Object['keys'](_0x500b57));if(typeof _0x500b57?.['createOverlay']!==_0x895d75(0x18c)){console[_0x895d75(0x186)](LOG_PREFIX+_0x895d75(0x1da)),console[_0x895d75(0x186)](LOG_PREFIX+_0x895d75(0x15a),Object[_0x895d75(0x1ef)](_0x500b57));return;}console[_0x895d75(0x188)](LOG_PREFIX+'\x20Calling\x20createOverlay()...');const _0x10df9a=_0x500b57[_0x895d75(0x178)]();console[_0x895d75(0x188)](LOG_PREFIX+'\x20Controller\x20created:',_0x10df9a),overlayController=_0x10df9a,window[_0x895d75(0x1c1)]=_0x10df9a,_0x10df9a[_0x895d75(0x1c4)](_0x4500a6[_0x895d75(0x1c4)]),console[_0x895d75(0x188)](LOG_PREFIX+_0x895d75(0x157)),console['log'](LOG_PREFIX+'\x20Calling\x20updateOverlay()...'),updateOverlay();}catch(_0x437d59){console[_0x895d75(0x186)](LOG_PREFIX+'\x20Failed\x20to\x20import/create\x20overlay:',_0x437d59);}}function updateOverlay(){const _0xc32d76=_0x215ad0;console[_0xc32d76(0x188)](LOG_PREFIX+_0xc32d76(0x1f4)),console['log'](LOG_PREFIX+_0xc32d76(0x1d1)+!!overlayController),console[_0xc32d76(0x188)](LOG_PREFIX+'\x20currentOptions\x20exists:\x20'+!!currentOptions);if(!overlayController||!currentOptions){console[_0xc32d76(0x188)](LOG_PREFIX+'\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update');return;}const _0x14366b=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+_0xc32d76(0x1f1),JSON['stringify'](_0x14366b,null,0x2)),overlayController[_0xc32d76(0x1a2)](_0x14366b),console[_0xc32d76(0x188)](LOG_PREFIX+_0xc32d76(0x19b));}function composeOverlayState(_0x563541){const _0x175b13=_0x215ad0,_0x3fd5a1=getEnhancementUrl();return console[_0x175b13(0x188)](LOG_PREFIX+_0x175b13(0x1ad)+_0x3fd5a1),console[_0x175b13(0x188)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.enabled:\x20'+state[_0x175b13(0x165)]),console[_0x175b13(0x188)](LOG_PREFIX+_0x175b13(0x1e0)+state[_0x175b13(0x1aa)]),{'enhancementUrl':_0x3fd5a1,'enabled':state[_0x175b13(0x165)],'controlled':state[_0x175b13(0x1aa)],'overlayPosition':_0x563541['overlay'][_0x175b13(0x214)],'securityMode':_0x563541['security'],'backendBaseUrl':_0x563541[_0x175b13(0x181)],'appError':state[_0x175b13(0x1fb)]};}async function setupRemoteHMR(_0x470381){const _0x58bc51=_0x215ad0;console[_0x58bc51(0x188)](LOG_PREFIX+'\x20setupRemoteHMR()\x20for\x20'+_0x470381);if(typeof window===_0x58bc51(0x179))return;try{const _0x1ccbf1=new URL(_0x470381,window[_0x58bc51(0x171)]['origin']),_0x32d17c=_0x1ccbf1[_0x58bc51(0x1f3)];console[_0x58bc51(0x188)](LOG_PREFIX+'\x20Overlay\x20origin:\x20'+_0x32d17c+_0x58bc51(0x1df)+window['location'][_0x58bc51(0x1f3)]);if(_0x32d17c===window[_0x58bc51(0x171)]['origin']){console[_0x58bc51(0x188)](LOG_PREFIX+'\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup');return;}console['log'](LOG_PREFIX+'\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...'),await ensureReactRefreshPreamble(_0x32d17c),await ensureViteClient(_0x32d17c),console[_0x58bc51(0x188)](LOG_PREFIX+_0x58bc51(0x18d));}catch(_0x3301f9){console[_0x58bc51(0x1b7)](LOG_PREFIX+_0x58bc51(0x1a9),_0x3301f9);}}async function ensureReactRefreshPreamble(_0x1f4abc){const _0x2b9e71=_0x215ad0;window['__enhanceReactRefreshInstalledOrigins']??=new Set();if(window['__enhanceReactRefreshInstalledOrigins'][_0x2b9e71(0x1de)](_0x1f4abc)){console[_0x2b9e71(0x188)](LOG_PREFIX+_0x2b9e71(0x1a6)+_0x1f4abc);return;}console['log'](LOG_PREFIX+_0x2b9e71(0x19f)+_0x1f4abc+_0x2b9e71(0x17a));const _0x24f872=await import(_0x1f4abc+'/@react-refresh'),_0x53f4c8=_0x24f872&&typeof _0x24f872==='object'&&'default'in _0x24f872?_0x24f872[_0x2b9e71(0x15d)]:_0x24f872;if(!isRefreshRuntime(_0x53f4c8)){console[_0x2b9e71(0x1b7)](LOG_PREFIX+_0x2b9e71(0x199));return;}_0x53f4c8[_0x2b9e71(0x1d2)](window),window[_0x2b9e71(0x20f)]=()=>{},window['$RefreshSig$']=()=>_0x3e27b0=>_0x3e27b0,window['__vite_plugin_react_preamble_installed__']=!![],window['__enhanceReactRefreshInstalledOrigins'][_0x2b9e71(0x202)](_0x1f4abc),console['log'](LOG_PREFIX+_0x2b9e71(0x1ac)+_0x1f4abc);}async function ensureViteClient(_0x153aaf){const _0x5524fd=_0x215ad0;window['__viteHMRLoaded']??=new Set();if(window['__viteHMRLoaded'][_0x5524fd(0x1de)](_0x153aaf)){console[_0x5524fd(0x188)](LOG_PREFIX+_0x5524fd(0x203)+_0x153aaf);return;}console[_0x5524fd(0x188)](LOG_PREFIX+'\x20Loading\x20Vite\x20HMR\x20client\x20from\x20'+_0x153aaf+_0x5524fd(0x17a)),await import(_0x153aaf+_0x5524fd(0x1ce)),window[_0x5524fd(0x14b)][_0x5524fd(0x202)](_0x153aaf),console[_0x5524fd(0x188)](LOG_PREFIX+_0x5524fd(0x1e4)+_0x153aaf);}function isRefreshRuntime(_0x5669d5){const _0x565e27=_0x215ad0;return typeof _0x5669d5==='object'&&_0x5669d5!==null&&_0x565e27(0x1d2)in _0x5669d5&&typeof _0x5669d5['injectIntoGlobalHook']===_0x565e27(0x18c);}var WORKER_MESSAGE_CONFIG=_0x215ad0(0x16f),WORKER_MESSAGE_DISABLE=_0x215ad0(0x1f0),LOG_PREFIX2=_0x215ad0(0x1a4),registration=null,currentOptions2=null;async function registerServiceWorker(_0x3cabb4){const _0x23d12f=_0x215ad0;console['log'](LOG_PREFIX2+_0x23d12f(0x150)),console['log'](LOG_PREFIX2+_0x23d12f(0x1ab)+_0x3cabb4[_0x23d12f(0x15e)]);if(!(_0x23d12f(0x1bb)in navigator)){console['warn'](LOG_PREFIX2+_0x23d12f(0x1ae));return;}console['log'](LOG_PREFIX2+'\x20Service\x20workers\x20supported');const _0xa82643=navigator[_0x23d12f(0x1bb)][_0x23d12f(0x187)];console[_0x23d12f(0x188)](LOG_PREFIX2+_0x23d12f(0x1c3),_0xa82643?.[_0x23d12f(0x197)]??_0x23d12f(0x1be)),console['log'](LOG_PREFIX2+_0x23d12f(0x206),_0xa82643?.[_0x23d12f(0x172)]??_0x23d12f(0x191));const _0x51370e=!!_0xa82643;currentOptions2=_0x3cabb4,console[_0x23d12f(0x188)](LOG_PREFIX2+'\x20Checking\x20for\x20blocking\x20service\x20worker...');const _0x1cc553=await detectBlockingServiceWorker(_0x3cabb4[_0x23d12f(0x15e)]);if(_0x1cc553){console[_0x23d12f(0x186)](LOG_PREFIX2+'\x20BLOCKING\x20SW\x20detected:\x20'+_0x1cc553),console[_0x23d12f(0x186)](LOG_PREFIX2+_0x23d12f(0x1c2));return;}console[_0x23d12f(0x188)](LOG_PREFIX2+_0x23d12f(0x1ca));try{console[_0x23d12f(0x188)](LOG_PREFIX2+_0x23d12f(0x1b3)+_0x3cabb4[_0x23d12f(0x15e)]+_0x23d12f(0x1a1)),registration=await navigator['serviceWorker'][_0x23d12f(0x1fe)](_0x3cabb4[_0x23d12f(0x15e)],{'scope':'/'}),console[_0x23d12f(0x188)](LOG_PREFIX2+_0x23d12f(0x1e2),{'scope':registration[_0x23d12f(0x217)],'active':registration[_0x23d12f(0x16b)]?.[_0x23d12f(0x197)],'waiting':registration[_0x23d12f(0x19e)]?.['scriptURL'],'installing':registration['installing']?.['scriptURL']}),console['log'](LOG_PREFIX2+'\x20Waiting\x20for\x20navigator.serviceWorker.ready...');const _0x416594=await navigator['serviceWorker']['ready'];console[_0x23d12f(0x188)](LOG_PREFIX2+_0x23d12f(0x1dd),_0x416594[_0x23d12f(0x16b)]?.[_0x23d12f(0x197)]);const _0x588876=ownsCurrentController(_0x3cabb4[_0x23d12f(0x15e)]);state[_0x23d12f(0x1aa)]=_0x588876,console[_0x23d12f(0x188)](LOG_PREFIX2+'\x20Page\x20controlled\x20by\x20our\x20SW:\x20'+_0x588876),console[_0x23d12f(0x188)](LOG_PREFIX2+_0x23d12f(0x1a8),navigator[_0x23d12f(0x1bb)][_0x23d12f(0x187)]?.[_0x23d12f(0x197)]??_0x23d12f(0x1be));if(!_0x51370e&&!navigator[_0x23d12f(0x1bb)][_0x23d12f(0x187)]){console[_0x23d12f(0x188)](LOG_PREFIX2+'\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...'),window[_0x23d12f(0x171)][_0x23d12f(0x176)]();return;}console[_0x23d12f(0x188)](LOG_PREFIX2+_0x23d12f(0x17f)),await sendConfiguration();if(state[_0x23d12f(0x165)]){const _0x3d2148=document[_0x23d12f(0x21a)](_0x23d12f(0x1b8))!==null;console[_0x23d12f(0x188)](LOG_PREFIX2+_0x23d12f(0x189)+_0x3d2148);if(!_0x3d2148){console[_0x23d12f(0x188)](LOG_PREFIX2+_0x23d12f(0x19c)),window[_0x23d12f(0x171)][_0x23d12f(0x176)]();return;}}console['log'](LOG_PREFIX2+_0x23d12f(0x1b5)),updateOverlay(),console[_0x23d12f(0x188)](LOG_PREFIX2+'\x20registerServiceWorker()\x20complete');}catch(_0x451853){console[_0x23d12f(0x186)](LOG_PREFIX2+_0x23d12f(0x1d3),_0x451853);}}async function sendConfiguration(){const _0x197de8=_0x215ad0;console[_0x197de8(0x188)](LOG_PREFIX2+_0x197de8(0x164)),console[_0x197de8(0x188)](LOG_PREFIX2+'\x20state.enabled:\x20'+state[_0x197de8(0x165)]+_0x197de8(0x158)+!!currentOptions2);if(!state[_0x197de8(0x165)]||!currentOptions2){console[_0x197de8(0x188)](LOG_PREFIX2+_0x197de8(0x1f7));return;}const _0x357711=await resolveWorker();if(!_0x357711){console[_0x197de8(0x1b7)](LOG_PREFIX2+'\x20No\x20service\x20worker\x20active\x20to\x20configure');return;}const _0x22c75f={'callbackBypass':currentOptions2[_0x197de8(0x1bc)],'securityMode':currentOptions2[_0x197de8(0x1a7)]};console[_0x197de8(0x188)](LOG_PREFIX2+_0x197de8(0x200),JSON[_0x197de8(0x194)](_0x22c75f,null,0x2)),_0x357711[_0x197de8(0x1f2)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x22c75f}),console[_0x197de8(0x188)](LOG_PREFIX2+_0x197de8(0x1b1));}async function unregisterServiceWorker(_0x437706){const _0x53fb21=_0x215ad0;console[_0x53fb21(0x188)](LOG_PREFIX2+_0x53fb21(0x183));if(!(_0x53fb21(0x1bb)in navigator)){console[_0x53fb21(0x188)](LOG_PREFIX2+_0x53fb21(0x1b9));return;}try{const _0x3ec722=registration??await navigator[_0x53fb21(0x1bb)][_0x53fb21(0x201)]('/');if(!_0x3ec722){console[_0x53fb21(0x188)](LOG_PREFIX2+_0x53fb21(0x1fd));return;}console[_0x53fb21(0x188)](LOG_PREFIX2+_0x53fb21(0x17d),{'scope':_0x3ec722[_0x53fb21(0x217)],'active':_0x3ec722[_0x53fb21(0x16b)]?.[_0x53fb21(0x197)],'waiting':_0x3ec722[_0x53fb21(0x19e)]?.['scriptURL'],'installing':_0x3ec722[_0x53fb21(0x1c5)]?.['scriptURL']});const _0x2bb640=[_0x3ec722[_0x53fb21(0x16b)]?.['scriptURL'],_0x3ec722[_0x53fb21(0x19e)]?.[_0x53fb21(0x197)],_0x3ec722[_0x53fb21(0x1c5)]?.[_0x53fb21(0x197)]],_0x5c1c4d=_0x2bb640[_0x53fb21(0x20d)](_0x5401c1=>_0x5401c1&&ownsServiceWorker(_0x5401c1,_0x437706));if(!_0x5c1c4d){console[_0x53fb21(0x188)](LOG_PREFIX2+_0x53fb21(0x17c));return;}_0x3ec722[_0x53fb21(0x16b)]&&(console[_0x53fb21(0x188)](LOG_PREFIX2+_0x53fb21(0x18e)),_0x3ec722['active'][_0x53fb21(0x1f2)]({'type':WORKER_MESSAGE_DISABLE})),console['log'](LOG_PREFIX2+_0x53fb21(0x1f8)),await _0x3ec722[_0x53fb21(0x1a3)](),registration=null,currentOptions2=null,console[_0x53fb21(0x188)](LOG_PREFIX2+'\x20SW\x20unregistered\x20successfully');}catch(_0x134e53){console[_0x53fb21(0x186)](LOG_PREFIX2+_0x53fb21(0x16c),_0x134e53);}}function ownsServiceWorker(_0x14353f,_0x375bd4){const _0x1aa082=_0x215ad0,_0x37a1d7=typeof window!==_0x1aa082(0x179)?window[_0x1aa082(0x171)][_0x1aa082(0x1f3)]:'',_0x234ce6=new URL(_0x375bd4,_0x37a1d7||void 0x0)['href'],_0x56629a=_0x14353f===_0x234ce6||_0x14353f[_0x1aa082(0x163)](_0x1aa082(0x1cb));return console[_0x1aa082(0x188)](LOG_PREFIX2+'\x20ownsServiceWorker?\x20scriptURL='+_0x14353f+',\x20expected='+_0x234ce6+_0x1aa082(0x20c)+_0x56629a),_0x56629a;}function _0x1c28(){const _0xf99a9=['overlay','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','\x20Found\x20registration:','options','\x20Sending\x20customer\x20configuration...','632fbnIzY','backendUrl','hasEnhancement','\x20unregisterServiceWorker()\x20called','^24.10.1','\x20Module\x20imported\x20in\x20','error','controller','log','\x20Enhancement\x20detection:\x20wasEnhanced=','enhancementUrl','16WQRZsQ','function','\x20HMR\x20setup\x20complete','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','\x20Raw\x20options:','./dev/index.d.ts','N/A','1366821CVwxLP','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','stringify','\x20detectBlocking\x20error:','module','scriptURL','explicitDisable','\x20Invalid\x20React\x20Refresh\x20runtime','399842EgkRfu','\x20Overlay\x20update\x20complete','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','\x20Starting\x20fresh\x20overlay\x20load...','waiting','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','./dev/vite/index.d.ts','\x20with\x20scope\x20\x27/\x27...','update','unregister','[Enhance\x20SW-Client]','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','\x20React\x20Refresh\x20already\x20installed\x20for\x20','security','\x20Current\x20controller\x20after\x20ready:','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','controlled','\x20swPath:\x20','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','[Enhance\x20Runtime]','100MSeJWu','\x20Config\x20sent\x20to\x20SW','\x20Setting\x20up\x20remote\x20HMR...','\x20Registering\x20SW\x20at\x20','\x20Unregistering\x20any\x20existing\x20SW...','\x20Updating\x20overlay...','\x20Normalized\x20options:','warn','[data-enhance-runtime-bootstrap]','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','serviceWorker','callbackBypass','enhancement','none','\x20Starting\x20overlay\x20load\x20(async)...','__enhanceOptions','__enhanceOverlay','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','\x20Current\x20controller:','onToggle','installing','href','\x20doLoadOverlay()\x20starting...','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','\x20loadOverlay()\x20failed:','\x20No\x20blocking\x20SW\x20found','sw-enhance','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','search','/@vite/client','1887677Ucbjea','0.0.0','\x20overlayController\x20exists:\x20','injectIntoGlobalHook','\x20Failed\x20to\x20register\x20service\x20worker:','\x20No\x20window\x20object\x20-\x20skipping','\x20enhancementUrl:\x20','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','\x20resolveWorker:','off','vite:error','\x20Module\x20missing\x20createOverlay\x20export!','^3.22.4','init','\x20SW\x20ready!\x20Active:','has',',\x20page\x20origin:\x20','\x20composeOverlayState\x20-\x20state.controlled:\x20','runtimeURL','\x20Registration\x20returned:','false','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','\x20URL\x20params\x20parsed:','^4.1.1','\x20First\x20initialization','MIT','enable','0.3.20','\x20init()\x20complete\x20-\x20enhancement\x20mode','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','searchParams','/sw-enhance.js','keys','enhance:disable','\x20Updating\x20overlay\x20with\x20state:','postMessage','origin','\x20updateOverlay()\x20called','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','https://','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','\x20Unregistering\x20SW...','permissive','./dev/vite/index.js','appError','serviceWorkerURL','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','register','disable','\x20Sending\x20customer\x20config\x20to\x20SW:','getRegistration','add','\x20Vite\x20client\x20already\x20loaded\x20for\x20','[Enhance\x20Overlay]','string','\x20Controller\x20state:','enableViteHmr','bottom-right','\x20Vite\x20error\x20detected:','state:\x20','6357330kIGnQU',',\x20owns=','some','version','$RefreshReg$','@enhance-eng/sandbox','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','__enhanceController','\x20Document\x20readyState:\x20','position','public','__development','scope','7413315GBGcBp','\x20Importing\x20overlay\x20module\x20from:\x20','querySelector','15JCTwkm','__viteHMRLoaded','^7.2.4','./dev/index.js','https://assets.enhancelabs.ai/overlay.js','get','\x20registerServiceWorker()\x20called','\x20loadOverlay()\x20complete','\x20init()\x20complete\x20-\x20normal\x20mode','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','13345exEEAo','title','__enhanceInitialized','\x20Overlay\x20controller\x20initialized\x20and\x20cached',',\x20currentOptions:\x20','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','\x20Available\x20exports:','[Enhance\x20Config]\x20Build-time\x20defaults:','\x20enableViteHmr:\x20','default','swPath','bun\x20version\x20patch\x20--no-git-tag-version','dev/','now','overlayPath','includes','\x20sendConfiguration()\x20called','enabled','replace','\x20Current\x20URL:\x20','startsWith','\x20detectBlocking\x20-\x20existing\x20registration:','\x20No\x20current\x20controller','active','\x20Failed\x20to\x20unregister\x20service\x20worker:','toLowerCase','info','enhance:configure','enhance','location','state','tsc\x20--noEmit','\x20enhancementId:\x20','711653TgoxKe','reload','^11.1.0','createOverlay','undefined','...'];_0x1c28=function(){return _0xf99a9;};return _0x1c28();}function ownsCurrentController(_0x51e70f){const _0x19dd09=_0x215ad0;if(typeof navigator===_0x19dd09(0x179))return![];const _0x5e26ac=navigator[_0x19dd09(0x1bb)]?.[_0x19dd09(0x187)];if(!_0x5e26ac)return console[_0x19dd09(0x188)](LOG_PREFIX2+_0x19dd09(0x16a)),![];return ownsServiceWorker(_0x5e26ac[_0x19dd09(0x197)],_0x51e70f);}async function detectBlockingServiceWorker(_0xa14b7e){const _0x41ad60=_0x215ad0;if(!navigator[_0x41ad60(0x1bb)])return null;try{const _0x5be574=await navigator[_0x41ad60(0x1bb)]['getRegistration']('/');console[_0x41ad60(0x188)](LOG_PREFIX2+_0x41ad60(0x169),_0x5be574?.['active']?.[_0x41ad60(0x197)]??_0x41ad60(0x1be));const _0xf61fe4=_0x5be574?.['active']?.['scriptURL'];if(!_0xf61fe4)return null;if(ownsServiceWorker(_0xf61fe4,_0xa14b7e))return null;return _0xf61fe4;}catch(_0x304b23){return console[_0x41ad60(0x186)](LOG_PREFIX2+_0x41ad60(0x195),_0x304b23),null;}}async function resolveWorker(){const _0x58caca=_0x215ad0,_0x38095a=registration??await navigator[_0x58caca(0x1bb)]?.['getRegistration']('/'),_0x347588=_0x38095a?.[_0x58caca(0x16b)]??_0x38095a?.[_0x58caca(0x19e)]??_0x38095a?.['installing']??null;return console[_0x58caca(0x188)](LOG_PREFIX2+_0x58caca(0x1d7),_0x347588?.[_0x58caca(0x197)]??_0x58caca(0x1be),_0x58caca(0x20a)+(_0x347588?.['state']??_0x58caca(0x191))),_0x347588;}var LOG_PREFIX3=_0x215ad0(0x1af);function isInitialized(){const _0xe40a7e=_0x215ad0;return typeof window!==_0xe40a7e(0x179)&&window[_0xe40a7e(0x156)]===!![];}function setInitialized(_0x40582e){const _0x6d8f70=_0x215ad0;typeof window!==_0x6d8f70(0x179)&&(window[_0x6d8f70(0x156)]=_0x40582e);}function getOptions(){const _0x50fb47=_0x215ad0;return typeof window!=='undefined'?window[_0x50fb47(0x1c0)]??null:null;}function setOptions(_0xa89ee4){const _0x2e57fd=_0x215ad0;typeof window!==_0x2e57fd(0x179)&&(window[_0x2e57fd(0x1c0)]=_0xa89ee4);}var Enhance={'init'(_0x3b6710={}){const _0x24fedb=_0x215ad0,_0xca36dd=Date[_0x24fedb(0x161)]();console[_0x24fedb(0x188)](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0xca36dd),console[_0x24fedb(0x188)](LOG_PREFIX3+_0x24fedb(0x167)+window[_0x24fedb(0x171)][_0x24fedb(0x1c6)]),console[_0x24fedb(0x188)](LOG_PREFIX3+_0x24fedb(0x213)+document['readyState']),console[_0x24fedb(0x188)](LOG_PREFIX3+_0x24fedb(0x18f),JSON[_0x24fedb(0x194)](_0x3b6710,null,0x2));if(isInitialized())return console[_0x24fedb(0x1b7)](LOG_PREFIX3+_0x24fedb(0x1ba)),window['__enhanceController']??createController();setInitialized(!![]),console[_0x24fedb(0x188)](LOG_PREFIX3+_0x24fedb(0x1e7));const _0x32ad16=normalizeOptions(_0x3b6710);setOptions(_0x32ad16),console[_0x24fedb(0x188)](LOG_PREFIX3+_0x24fedb(0x1b6),JSON[_0x24fedb(0x194)](_0x32ad16,null,0x2));const _0x1e5955=parseUrlParams();console[_0x24fedb(0x188)](LOG_PREFIX3+_0x24fedb(0x1e5),JSON[_0x24fedb(0x194)](_0x1e5955,null,0x2));if(_0x1e5955[_0x24fedb(0x198)])return cleanUrlParam(_0x24fedb(0x170)),console[_0x24fedb(0x188)](LOG_PREFIX3+'\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting'),createController();if(_0x1e5955[_0x24fedb(0x182)])return console[_0x24fedb(0x188)](LOG_PREFIX3+'\x20Enhancement\x20mode\x20ENABLED'),console['log'](LOG_PREFIX3+_0x24fedb(0x1d5)+_0x1e5955[_0x24fedb(0x18a)]),console[_0x24fedb(0x188)](LOG_PREFIX3+_0x24fedb(0x174)+_0x1e5955['enhancementId']),state[_0x24fedb(0x165)]=!![],console['log'](LOG_PREFIX3+_0x24fedb(0x1bf)),void loadOverlay({'overlayPath':_0x32ad16[_0x24fedb(0x162)],'enableViteHmr':_0x32ad16['overlay'][_0x24fedb(0x207)],'options':_0x32ad16,'onToggle':handleToggle}),console['log'](LOG_PREFIX3+'\x20Starting\x20SW\x20registration\x20(async)...'),void registerServiceWorker(_0x32ad16),console[_0x24fedb(0x188)](LOG_PREFIX3+_0x24fedb(0x1eb)),createController();return console[_0x24fedb(0x188)](LOG_PREFIX3+_0x24fedb(0x1f5)),console[_0x24fedb(0x188)](LOG_PREFIX3+_0x24fedb(0x1b4)),void unregisterServiceWorker(_0x32ad16[_0x24fedb(0x15e)]),console[_0x24fedb(0x188)](LOG_PREFIX3+_0x24fedb(0x152)),import.meta.hot&&(console[_0x24fedb(0x188)](LOG_PREFIX3+'\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners'),import.meta.hot['on'](_0x24fedb(0x1d9),_0x200d3e=>{const _0x357efa=_0x24fedb;console[_0x357efa(0x188)](LOG_PREFIX3+_0x357efa(0x209),_0x200d3e),state[_0x357efa(0x1fb)]={'message':_0x200d3e['err']['message']},updateOverlay();}),import.meta.hot['on']('vite:beforeUpdate',()=>{const _0x5e23b7=_0x24fedb;state['appError']&&(console[_0x5e23b7(0x188)](LOG_PREFIX3+_0x5e23b7(0x1a5)),state[_0x5e23b7(0x1fb)]=null,updateOverlay());})),createController();}};function createController(){const _0x11a17a=_0x215ad0,_0x4b3342={'enable'(){const _0x37a1b7=_0x5e61,_0x28ca13=getOptions();if(!_0x28ca13)return;state[_0x37a1b7(0x165)]=!![],void loadOverlay({'overlayPath':_0x28ca13[_0x37a1b7(0x162)],'enableViteHmr':_0x28ca13[_0x37a1b7(0x17b)][_0x37a1b7(0x207)],'options':_0x28ca13,'onToggle':handleToggle}),void registerServiceWorker(_0x28ca13),void sendConfiguration(),updateOverlay();},'disable'(){const _0xdcc283=_0x5e61,_0x1ac94a=getOptions();if(!_0x1ac94a)return;state[_0xdcc283(0x165)]=![],state[_0xdcc283(0x1aa)]=![],updateOverlay(),void unregisterServiceWorker(_0x1ac94a[_0xdcc283(0x15e)]);},'status'(){const _0x30268e=_0x5e61;return{'enabled':state[_0x30268e(0x165)],'controlled':state['controlled']};}};return typeof window!==_0x11a17a(0x179)&&(window[_0x11a17a(0x212)]=_0x4b3342),_0x4b3342;}function handleToggle(){const _0x33452d=_0x215ad0,_0x425145=createController();state[_0x33452d(0x165)]?_0x425145[_0x33452d(0x1ff)]():_0x425145[_0x33452d(0x1e9)]();}function parseUrlParams(){const _0x507c3a=_0x215ad0,_0x44a45d=new URL(window[_0x507c3a(0x171)]['href']),_0x30023e=_0x44a45d[_0x507c3a(0x1ed)]['get']('enhance')?.[_0x507c3a(0x16d)](),_0x10c32d=_0x44a45d[_0x507c3a(0x1ed)][_0x507c3a(0x14f)](_0x507c3a(0x18a)),_0x323da2=_0x44a45d['searchParams'][_0x507c3a(0x14f)](_0x507c3a(0x1bd));return{'hasEnhancement':Boolean(_0x10c32d||_0x323da2),'explicitDisable':_0x30023e==='0'||_0x30023e===_0x507c3a(0x1e3)||_0x30023e===_0x507c3a(0x1d8),'enhancementUrl':_0x10c32d,'enhancementId':_0x323da2};}function cleanUrlParam(_0x24701e){const _0x23f67e=_0x215ad0,_0x119aae=new URL(window[_0x23f67e(0x171)][_0x23f67e(0x1c6)]);_0x119aae[_0x23f67e(0x1ed)][_0x23f67e(0x1de)](_0x24701e)&&(_0x119aae[_0x23f67e(0x1ed)]['delete'](_0x24701e),window['history']['replaceState'](null,document[_0x23f67e(0x155)],_0x119aae['toString']()));}var package_default={'name':_0x215ad0(0x210),'version':_0x215ad0(0x1ea),'type':_0x215ad0(0x196),'description':'Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','license':_0x215ad0(0x1e8),'main':_0x215ad0(0x14d),'module':_0x215ad0(0x14d),'types':_0x215ad0(0x190),'exports':{'.':{'types':_0x215ad0(0x190),'import':_0x215ad0(0x14d)},'./vite':{'types':_0x215ad0(0x1a0),'import':_0x215ad0(0x1fa)}},'files':[_0x215ad0(0x160)],'bin':{'enhance-sandbox':'./dev/cli.js'},'scripts':{'typecheck':_0x215ad0(0x173),'dev':_0x215ad0(0x193),'dev:build':_0x215ad0(0x159),'dev:staging':_0x215ad0(0x211),'dev:staging:build':_0x215ad0(0x153),'build':_0x215ad0(0x1ec),'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':'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':_0x215ad0(0x15f)},'dependencies':{'commander':_0x215ad0(0x177),'zod':_0x215ad0(0x1db)},'devDependencies':{'@types/node':_0x215ad0(0x184),'javascript-obfuscator':_0x215ad0(0x1e6),'tsup':'^8.5.1','vite':_0x215ad0(0x14c)},'publishConfig':{'access':_0x215ad0(0x215)}},DEFAULT_SERVICE_WORKER_PATH=_0x215ad0(0x1ee),DEFAULT_RUNTIME_PATH='/assets/enhance-runtime.js',PACKAGE_VERSION=typeof package_default[_0x215ad0(0x20e)]===_0x215ad0(0x205)?package_default['version']:_0x215ad0(0x1d0);function normalizeAssetPath(_0x4eeff3){const _0x51c9be=_0x215ad0;if(!_0x4eeff3)return _0x4eeff3;if(_0x4eeff3[_0x51c9be(0x168)]('http://')||_0x4eeff3[_0x51c9be(0x168)](_0x51c9be(0x1f6)))return _0x4eeff3;const _0x2b983b=_0x4eeff3[_0x51c9be(0x166)](/^\.\//,'');return _0x2b983b[_0x51c9be(0x168)]('/')?_0x2b983b:'/'+_0x2b983b;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x31f766){const _0x525cc2=_0x215ad0;return Enhance[_0x525cc2(0x1dc)](_0x31f766);},'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 _0x12bfc2=_0x215ad0;return Enhance2[_0x12bfc2(0x1fc)]();}function runtimeURL(){const _0xab3f53=_0x215ad0;return Enhance2[_0xab3f53(0x1e1)]();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
|
|
1
|
+
const _0x31768b=_0x4f8f;(function(_0xee6c9,_0x343c90){const _0x10f87f=_0x4f8f,_0x45cbcc=_0xee6c9();while(!![]){try{const _0x4084a3=parseInt(_0x10f87f(0x178))/0x1+parseInt(_0x10f87f(0xdc))/0x2*(-parseInt(_0x10f87f(0x117))/0x3)+-parseInt(_0x10f87f(0x157))/0x4+parseInt(_0x10f87f(0x100))/0x5+parseInt(_0x10f87f(0xc9))/0x6+-parseInt(_0x10f87f(0xeb))/0x7*(-parseInt(_0x10f87f(0x106))/0x8)+-parseInt(_0x10f87f(0x105))/0x9*(parseInt(_0x10f87f(0x177))/0xa);if(_0x4084a3===_0x343c90)break;else _0x45cbcc['push'](_0x45cbcc['shift']());}catch(_0x49c80f){_0x45cbcc['push'](_0x45cbcc['shift']());}}}(_0x2a95,0x7cb05));var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x31768b(0x108)?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x31768b(0xc1),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x31768b(0x108)?__ENHANCE_DEFAULT_BACKEND_URL__:_0x31768b(0x149),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x31768b(0x108)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x31768b(0xd0)](_0x31768b(0xf2),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x20f188){const _0x4052b2=_0x31768b,_0x5e179c=_0x20f188[_0x4052b2(0x140)]??{};return{'callbackBypass':_0x20f188[_0x4052b2(0xe6)]??[],'overlay':{'enabled':!![],'position':'bottom-right','enableViteHmr':_0x5e179c[_0x4052b2(0x143)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x4052b2(0x14e),'swPath':'/sw-enhance.js','overlayPath':_0x5e179c[_0x4052b2(0x13c)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x4052b2(0x103),'security':_0x5e179c[_0x4052b2(0x156)]??_0x4052b2(0x126),'backendUrl':_0x5e179c['backendUrl']??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementUrl(){const _0x491c75=_0x31768b;try{const _0x54afbe=new URLSearchParams(window[_0x491c75(0xb2)][_0x491c75(0xc3)]);return _0x54afbe[_0x491c75(0x125)](_0x491c75(0xe9))?.[_0x491c75(0xe2)]()||'';}catch{return'';}}var LOG_PREFIX='[Enhance\x20Overlay]',overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0xd67095){const _0x4d7b51=_0x31768b;console[_0x4d7b51(0xd0)](LOG_PREFIX+_0x4d7b51(0x14c)),console['log'](LOG_PREFIX+_0x4d7b51(0xf3)+_0xd67095[_0x4d7b51(0x13c)]),console[_0x4d7b51(0xd0)](LOG_PREFIX+_0x4d7b51(0xe1)+_0xd67095[_0x4d7b51(0x104)]),currentOptions=_0xd67095[_0x4d7b51(0x10f)],toggleHandler=_0xd67095['onToggle'];if(overlayController){console[_0x4d7b51(0xd0)](LOG_PREFIX+_0x4d7b51(0x13d)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x4d7b51(0xd0)](LOG_PREFIX+_0x4d7b51(0x175)),overlayLoadPromise;console[_0x4d7b51(0xd0)](LOG_PREFIX+_0x4d7b51(0x150)),overlayLoadPromise=doLoadOverlay(_0xd67095);try{await overlayLoadPromise,console[_0x4d7b51(0xd0)](LOG_PREFIX+_0x4d7b51(0xc7));}catch(_0x34e9d9){console[_0x4d7b51(0x17c)](LOG_PREFIX+'\x20loadOverlay()\x20failed:',_0x34e9d9);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x428830){const _0x3a26ab=_0x31768b;console[_0x3a26ab(0xd0)](LOG_PREFIX+_0x3a26ab(0xcd));if(typeof window==='undefined'){console[_0x3a26ab(0xd0)](LOG_PREFIX+_0x3a26ab(0x10a));return;}if(window[_0x3a26ab(0x148)]){console['log'](LOG_PREFIX+'\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit'),overlayController=window[_0x3a26ab(0x148)];return;}console[_0x3a26ab(0xd0)](LOG_PREFIX+_0x3a26ab(0xdf));try{_0x428830['enableViteHmr']&&(console[_0x3a26ab(0xd0)](LOG_PREFIX+'\x20Setting\x20up\x20remote\x20HMR...'),await setupRemoteHMR(_0x428830[_0x3a26ab(0x13c)]));console[_0x3a26ab(0xd0)](LOG_PREFIX+_0x3a26ab(0x155)+_0x428830[_0x3a26ab(0x13c)]);const _0x23c4d4=Date[_0x3a26ab(0x134)](),_0x3f511d=await import(_0x428830[_0x3a26ab(0x13c)]);console[_0x3a26ab(0xd0)](LOG_PREFIX+_0x3a26ab(0x158)+(Date[_0x3a26ab(0x134)]()-_0x23c4d4)+'ms'),console['log'](LOG_PREFIX+_0x3a26ab(0x133),Object['keys'](_0x3f511d));if(typeof _0x3f511d?.[_0x3a26ab(0xd7)]!==_0x3a26ab(0x179)){console[_0x3a26ab(0x17c)](LOG_PREFIX+_0x3a26ab(0x164)),console[_0x3a26ab(0x17c)](LOG_PREFIX+_0x3a26ab(0x101),Object['keys'](_0x3f511d));return;}console['log'](LOG_PREFIX+_0x3a26ab(0x115));const _0x4cf32e=_0x3f511d[_0x3a26ab(0xd7)]();console['log'](LOG_PREFIX+_0x3a26ab(0x16b),_0x4cf32e),overlayController=_0x4cf32e,window[_0x3a26ab(0x148)]=_0x4cf32e,_0x4cf32e[_0x3a26ab(0xff)](_0x428830[_0x3a26ab(0xff)]),console['log'](LOG_PREFIX+_0x3a26ab(0xe4)),console['log'](LOG_PREFIX+'\x20Calling\x20updateOverlay()...'),updateOverlay();}catch(_0x276aa5){console[_0x3a26ab(0x17c)](LOG_PREFIX+_0x3a26ab(0xef),_0x276aa5);}}function updateOverlay(){const _0x182ec8=_0x31768b;console[_0x182ec8(0xd0)](LOG_PREFIX+_0x182ec8(0xf5)),console[_0x182ec8(0xd0)](LOG_PREFIX+_0x182ec8(0x12d)+!!overlayController),console[_0x182ec8(0xd0)](LOG_PREFIX+_0x182ec8(0xed)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x182ec8(0xd0)](LOG_PREFIX+_0x182ec8(0x15a));return;}const _0x51e311=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+'\x20Updating\x20overlay\x20with\x20state:',JSON[_0x182ec8(0x10b)](_0x51e311,null,0x2)),overlayController['update'](_0x51e311),console[_0x182ec8(0xd0)](LOG_PREFIX+_0x182ec8(0x16a));}function composeOverlayState(_0x5617d9){const _0x258be3=_0x31768b,_0x37fa48=getEnhancementUrl();return console[_0x258be3(0xd0)](LOG_PREFIX+_0x258be3(0xca)+_0x37fa48),console['log'](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.enabled:\x20'+state[_0x258be3(0x11e)]),console['log'](LOG_PREFIX+_0x258be3(0xb9)+state[_0x258be3(0x152)]),{'enhancementUrl':_0x37fa48,'enabled':state[_0x258be3(0x11e)],'controlled':state[_0x258be3(0x152)],'overlayPosition':_0x5617d9[_0x258be3(0xe8)][_0x258be3(0xf4)],'securityMode':_0x5617d9[_0x258be3(0x156)],'backendBaseUrl':_0x5617d9[_0x258be3(0x132)],'appError':state[_0x258be3(0x17e)]};}async function setupRemoteHMR(_0x13d88e){const _0x146df8=_0x31768b;console[_0x146df8(0xd0)](LOG_PREFIX+_0x146df8(0x116)+_0x13d88e);if(typeof window==='undefined')return;try{const _0x556c7e=new URL(_0x13d88e,window[_0x146df8(0xb2)][_0x146df8(0xb5)]),_0x1c2375=_0x556c7e[_0x146df8(0xb5)];console[_0x146df8(0xd0)](LOG_PREFIX+'\x20Overlay\x20origin:\x20'+_0x1c2375+_0x146df8(0x14f)+window[_0x146df8(0xb2)][_0x146df8(0xb5)]);if(_0x1c2375===window[_0x146df8(0xb2)][_0x146df8(0xb5)]){console['log'](LOG_PREFIX+_0x146df8(0xad));return;}console['log'](LOG_PREFIX+_0x146df8(0xbb)),await ensureReactRefreshPreamble(_0x1c2375),await ensureViteClient(_0x1c2375),console[_0x146df8(0xd0)](LOG_PREFIX+'\x20HMR\x20setup\x20complete');}catch(_0x262dc4){console[_0x146df8(0xcb)](LOG_PREFIX+_0x146df8(0x10c),_0x262dc4);}}async function ensureReactRefreshPreamble(_0x533194){const _0xc67a27=_0x31768b;window[_0xc67a27(0xd4)]??=new Set();if(window[_0xc67a27(0xd4)][_0xc67a27(0xab)](_0x533194)){console[_0xc67a27(0xd0)](LOG_PREFIX+_0xc67a27(0x163)+_0x533194);return;}console[_0xc67a27(0xd0)](LOG_PREFIX+'\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20'+_0x533194+'...');const _0x4ab456=await import(_0x533194+_0xc67a27(0x12b)),_0x49da01=_0x4ab456&&typeof _0x4ab456===_0xc67a27(0x162)&&'default'in _0x4ab456?_0x4ab456[_0xc67a27(0xf9)]:_0x4ab456;if(!isRefreshRuntime(_0x49da01)){console[_0xc67a27(0xcb)](LOG_PREFIX+_0xc67a27(0xd1));return;}_0x49da01[_0xc67a27(0xea)](window),window[_0xc67a27(0x112)]=()=>{},window['$RefreshSig$']=()=>_0x312ebd=>_0x312ebd,window[_0xc67a27(0xbd)]=!![],window[_0xc67a27(0xd4)][_0xc67a27(0x12f)](_0x533194),console['log'](LOG_PREFIX+_0xc67a27(0x107)+_0x533194);}async function ensureViteClient(_0x1740bb){const _0x45fbdd=_0x31768b;window['__viteHMRLoaded']??=new Set();if(window[_0x45fbdd(0x12e)][_0x45fbdd(0xab)](_0x1740bb)){console[_0x45fbdd(0xd0)](LOG_PREFIX+'\x20Vite\x20client\x20already\x20loaded\x20for\x20'+_0x1740bb);return;}console[_0x45fbdd(0xd0)](LOG_PREFIX+_0x45fbdd(0xf7)+_0x1740bb+_0x45fbdd(0xfe)),await import(_0x1740bb+_0x45fbdd(0xba)),window['__viteHMRLoaded'][_0x45fbdd(0x12f)](_0x1740bb),console[_0x45fbdd(0xd0)](LOG_PREFIX+_0x45fbdd(0x170)+_0x1740bb);}function isRefreshRuntime(_0x2f69bd){const _0x1437f9=_0x31768b;return typeof _0x2f69bd===_0x1437f9(0x162)&&_0x2f69bd!==null&&_0x1437f9(0xea)in _0x2f69bd&&typeof _0x2f69bd[_0x1437f9(0xea)]===_0x1437f9(0x179);}var WORKER_MESSAGE_CONFIG=_0x31768b(0xb7),WORKER_MESSAGE_DISABLE=_0x31768b(0x144),LOG_PREFIX2='[Enhance\x20SW-Client]',registration=null,currentOptions2=null;async function registerServiceWorker(_0x5d512b){const _0x22aec1=_0x31768b;console[_0x22aec1(0xd0)](LOG_PREFIX2+'\x20registerServiceWorker()\x20called'),console[_0x22aec1(0xd0)](LOG_PREFIX2+_0x22aec1(0x124)+_0x5d512b['swPath']);if(!(_0x22aec1(0x153)in navigator)){console[_0x22aec1(0xcb)](LOG_PREFIX2+_0x22aec1(0xaf));return;}console[_0x22aec1(0xd0)](LOG_PREFIX2+'\x20Service\x20workers\x20supported');const _0x593af6=navigator['serviceWorker'][_0x22aec1(0xcf)];console['log'](LOG_PREFIX2+_0x22aec1(0xb6),_0x593af6?.['scriptURL']??_0x22aec1(0x181)),console[_0x22aec1(0xd0)](LOG_PREFIX2+_0x22aec1(0x127),_0x593af6?.['state']??_0x22aec1(0x16f));const _0x1d5bb7=!!_0x593af6;currentOptions2=_0x5d512b,console[_0x22aec1(0xd0)](LOG_PREFIX2+_0x22aec1(0x121));const _0x2eb49f=await detectBlockingServiceWorker(_0x5d512b[_0x22aec1(0x13e)]);if(_0x2eb49f){console[_0x22aec1(0x17c)](LOG_PREFIX2+_0x22aec1(0xd8)+_0x2eb49f),console[_0x22aec1(0x17c)](LOG_PREFIX2+'\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered');return;}console[_0x22aec1(0xd0)](LOG_PREFIX2+'\x20No\x20blocking\x20SW\x20found');try{console[_0x22aec1(0xd0)](LOG_PREFIX2+'\x20Registering\x20SW\x20at\x20'+_0x5d512b[_0x22aec1(0x13e)]+'\x20with\x20scope\x20\x27/\x27...'),registration=await navigator[_0x22aec1(0x153)][_0x22aec1(0x114)](_0x5d512b['swPath'],{'scope':'/'}),console[_0x22aec1(0xd0)](LOG_PREFIX2+'\x20Registration\x20returned:',{'scope':registration[_0x22aec1(0xd9)],'active':registration['active']?.[_0x22aec1(0x118)],'waiting':registration[_0x22aec1(0xac)]?.['scriptURL'],'installing':registration[_0x22aec1(0x13a)]?.[_0x22aec1(0x118)]}),console[_0x22aec1(0xd0)](LOG_PREFIX2+'\x20Waiting\x20for\x20navigator.serviceWorker.ready...');const _0xd4394b=await navigator[_0x22aec1(0x153)][_0x22aec1(0x151)];console[_0x22aec1(0xd0)](LOG_PREFIX2+_0x22aec1(0xd3),_0xd4394b[_0x22aec1(0xe5)]?.['scriptURL']);const _0x2372d4=ownsCurrentController(_0x5d512b[_0x22aec1(0x13e)]);state[_0x22aec1(0x152)]=_0x2372d4,console['log'](LOG_PREFIX2+_0x22aec1(0xde)+_0x2372d4),console['log'](LOG_PREFIX2+_0x22aec1(0x10d),navigator[_0x22aec1(0x153)]['controller']?.[_0x22aec1(0x118)]??_0x22aec1(0x181));if(!_0x1d5bb7&&!navigator[_0x22aec1(0x153)][_0x22aec1(0xcf)]){console[_0x22aec1(0xd0)](LOG_PREFIX2+_0x22aec1(0xd2)),window['location'][_0x22aec1(0xf0)]();return;}console[_0x22aec1(0xd0)](LOG_PREFIX2+_0x22aec1(0x123)),await sendConfiguration();if(state['enabled']){const _0x5eff05=document[_0x22aec1(0x110)](_0x22aec1(0x11f))!==null;console[_0x22aec1(0xd0)](LOG_PREFIX2+_0x22aec1(0xb3)+_0x5eff05);if(!_0x5eff05){console[_0x22aec1(0xd0)](LOG_PREFIX2+_0x22aec1(0xfb)),window[_0x22aec1(0xb2)][_0x22aec1(0xf0)]();return;}}console[_0x22aec1(0xd0)](LOG_PREFIX2+_0x22aec1(0x16c)),updateOverlay(),console[_0x22aec1(0xd0)](LOG_PREFIX2+_0x22aec1(0x12a));}catch(_0x312eb9){console[_0x22aec1(0x17c)](LOG_PREFIX2+_0x22aec1(0x11d),_0x312eb9);}}async function sendConfiguration(){const _0xb6580d=_0x31768b;console[_0xb6580d(0xd0)](LOG_PREFIX2+'\x20sendConfiguration()\x20called'),console[_0xb6580d(0xd0)](LOG_PREFIX2+_0xb6580d(0x146)+state[_0xb6580d(0x11e)]+_0xb6580d(0xc6)+!!currentOptions2);if(!state[_0xb6580d(0x11e)]||!currentOptions2){console[_0xb6580d(0xd0)](LOG_PREFIX2+_0xb6580d(0x11c));return;}const _0x1bf5db=await resolveWorker();if(!_0x1bf5db){console[_0xb6580d(0xcb)](LOG_PREFIX2+_0xb6580d(0x13f));return;}const _0x21b2f3={'callbackBypass':currentOptions2[_0xb6580d(0xe6)],'securityMode':currentOptions2[_0xb6580d(0x156)]};console[_0xb6580d(0xd0)](LOG_PREFIX2+_0xb6580d(0x17a),JSON[_0xb6580d(0x10b)](_0x21b2f3,null,0x2)),_0x1bf5db[_0xb6580d(0xbe)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x21b2f3}),console[_0xb6580d(0xd0)](LOG_PREFIX2+_0xb6580d(0x15d));}async function unregisterServiceWorker(_0x3a68f5){const _0xf5e9bd=_0x31768b;console['log'](LOG_PREFIX2+_0xf5e9bd(0xe3));if(!(_0xf5e9bd(0x153)in navigator)){console[_0xf5e9bd(0xd0)](LOG_PREFIX2+'\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister');return;}try{const _0x51a90c=registration??await navigator[_0xf5e9bd(0x153)][_0xf5e9bd(0xfd)]('/');if(!_0x51a90c){console[_0xf5e9bd(0xd0)](LOG_PREFIX2+_0xf5e9bd(0xdd));return;}console[_0xf5e9bd(0xd0)](LOG_PREFIX2+_0xf5e9bd(0x142),{'scope':_0x51a90c[_0xf5e9bd(0xd9)],'active':_0x51a90c['active']?.[_0xf5e9bd(0x118)],'waiting':_0x51a90c[_0xf5e9bd(0xac)]?.[_0xf5e9bd(0x118)],'installing':_0x51a90c[_0xf5e9bd(0x13a)]?.[_0xf5e9bd(0x118)]});const _0x5635ca=[_0x51a90c[_0xf5e9bd(0xe5)]?.['scriptURL'],_0x51a90c[_0xf5e9bd(0xac)]?.['scriptURL'],_0x51a90c[_0xf5e9bd(0x13a)]?.[_0xf5e9bd(0x118)]],_0x452fef=_0x5635ca[_0xf5e9bd(0x12c)](_0x3641d6=>_0x3641d6&&ownsServiceWorker(_0x3641d6,_0x3a68f5));if(!_0x452fef){console[_0xf5e9bd(0xd0)](LOG_PREFIX2+_0xf5e9bd(0x165));return;}_0x51a90c[_0xf5e9bd(0xe5)]&&(console[_0xf5e9bd(0xd0)](LOG_PREFIX2+_0xf5e9bd(0x135)),_0x51a90c[_0xf5e9bd(0xe5)]['postMessage']({'type':WORKER_MESSAGE_DISABLE})),console[_0xf5e9bd(0xd0)](LOG_PREFIX2+'\x20Unregistering\x20SW...'),await _0x51a90c[_0xf5e9bd(0x128)](),registration=null,currentOptions2=null,console[_0xf5e9bd(0xd0)](LOG_PREFIX2+'\x20SW\x20unregistered\x20successfully');}catch(_0x1db47f){console['error'](LOG_PREFIX2+_0xf5e9bd(0x11a),_0x1db47f);}}function ownsServiceWorker(_0x29a64f,_0x183d24){const _0x3713c9=_0x31768b,_0x1c671e=typeof window!==_0x3713c9(0x108)?window['location']['origin']:'',_0x4d73f0=new URL(_0x183d24,_0x1c671e||void 0x0)[_0x3713c9(0x102)],_0x39a296=_0x29a64f===_0x4d73f0||_0x29a64f['includes'](_0x3713c9(0xda));return console[_0x3713c9(0xd0)](LOG_PREFIX2+_0x3713c9(0x139)+_0x29a64f+',\x20expected='+_0x4d73f0+',\x20owns='+_0x39a296),_0x39a296;}function ownsCurrentController(_0x23dc1c){const _0x424276=_0x31768b;if(typeof navigator===_0x424276(0x108))return![];const _0x4363d9=navigator[_0x424276(0x153)]?.[_0x424276(0xcf)];if(!_0x4363d9)return console['log'](LOG_PREFIX2+_0x424276(0x13b)),![];return ownsServiceWorker(_0x4363d9[_0x424276(0x118)],_0x23dc1c);}async function detectBlockingServiceWorker(_0x4c97fb){const _0x54df9f=_0x31768b;if(!navigator['serviceWorker'])return null;try{const _0x2adc89=await navigator[_0x54df9f(0x153)]['getRegistration']('/');console['log'](LOG_PREFIX2+_0x54df9f(0xc2),_0x2adc89?.['active']?.[_0x54df9f(0x118)]??_0x54df9f(0x181));const _0x31cb50=_0x2adc89?.[_0x54df9f(0xe5)]?.['scriptURL'];if(!_0x31cb50)return null;if(ownsServiceWorker(_0x31cb50,_0x4c97fb))return null;return _0x31cb50;}catch(_0x5ea23b){return console['error'](LOG_PREFIX2+_0x54df9f(0x129),_0x5ea23b),null;}}async function resolveWorker(){const _0x59039a=_0x31768b,_0x3e0830=registration??await navigator[_0x59039a(0x153)]?.[_0x59039a(0xfd)]('/'),_0x2eb794=_0x3e0830?.['active']??_0x3e0830?.[_0x59039a(0xac)]??_0x3e0830?.['installing']??null;return console['log'](LOG_PREFIX2+'\x20resolveWorker:',_0x2eb794?.[_0x59039a(0x118)]??_0x59039a(0x181),_0x59039a(0x120)+(_0x2eb794?.[_0x59039a(0x154)]??_0x59039a(0x16f))),_0x2eb794;}var LOG_PREFIX3='[Enhance\x20Runtime]';function isInitialized(){const _0x3b57fd=_0x31768b;return typeof window!=='undefined'&&window[_0x3b57fd(0x15e)]===!![];}function setInitialized(_0x57cf6c){const _0x1fd78b=_0x31768b;typeof window!==_0x1fd78b(0x108)&&(window[_0x1fd78b(0x15e)]=_0x57cf6c);}function getOptions(){const _0x48b1e4=_0x31768b;return typeof window!==_0x48b1e4(0x108)?window[_0x48b1e4(0xbc)]??null:null;}function setOptions(_0x12737b){const _0x1f4bba=_0x31768b;typeof window!=='undefined'&&(window[_0x1f4bba(0xbc)]=_0x12737b);}var Enhance={'init'(_0x5ab378={}){const _0xec596=_0x31768b,_0x421c4a=Date[_0xec596(0x134)]();console['log'](LOG_PREFIX3+_0xec596(0xc0)+_0x421c4a),console[_0xec596(0xd0)](LOG_PREFIX3+_0xec596(0xd6)+window['location']['href']),console[_0xec596(0xd0)](LOG_PREFIX3+_0xec596(0x180)+document[_0xec596(0x137)]),console['log'](LOG_PREFIX3+_0xec596(0x17f),JSON['stringify'](_0x5ab378,null,0x2));if(isInitialized())return console[_0xec596(0xcb)](LOG_PREFIX3+_0xec596(0x16e)),window['__enhanceController']??createController();setInitialized(!![]),console[_0xec596(0xd0)](LOG_PREFIX3+_0xec596(0x160));const _0x2101a0=normalizeOptions(_0x5ab378);setOptions(_0x2101a0),console[_0xec596(0xd0)](LOG_PREFIX3+_0xec596(0x169),JSON['stringify'](_0x2101a0,null,0x2));const _0x174e8e=parseUrlParams();console[_0xec596(0xd0)](LOG_PREFIX3+_0xec596(0x113),JSON[_0xec596(0x10b)](_0x174e8e,null,0x2));if(_0x174e8e['explicitDisable'])return cleanUrlParam(_0xec596(0xce)),console['log'](LOG_PREFIX3+_0xec596(0x136)),createController();if(_0x174e8e[_0xec596(0xc8)])return console[_0xec596(0xd0)](LOG_PREFIX3+_0xec596(0xc5)),console[_0xec596(0xd0)](LOG_PREFIX3+'\x20enhancementUrl:\x20'+_0x174e8e[_0xec596(0xe9)]),console[_0xec596(0xd0)](LOG_PREFIX3+_0xec596(0xfa)+_0x174e8e[_0xec596(0x147)]),state[_0xec596(0x11e)]=!![],console[_0xec596(0xd0)](LOG_PREFIX3+'\x20Starting\x20overlay\x20load\x20(async)...'),void loadOverlay({'overlayPath':_0x2101a0[_0xec596(0x13c)],'enableViteHmr':_0x2101a0['overlay'][_0xec596(0x104)],'options':_0x2101a0,'onToggle':handleToggle}),console[_0xec596(0xd0)](LOG_PREFIX3+'\x20Starting\x20SW\x20registration\x20(async)...'),void registerServiceWorker(_0x2101a0),console[_0xec596(0xd0)](LOG_PREFIX3+_0xec596(0xe7)),createController();return console[_0xec596(0xd0)](LOG_PREFIX3+_0xec596(0xdb)),console[_0xec596(0xd0)](LOG_PREFIX3+_0xec596(0x17d)),void unregisterServiceWorker(_0x2101a0[_0xec596(0x13e)]),console['log'](LOG_PREFIX3+_0xec596(0x15c)),import.meta.hot&&(console[_0xec596(0xd0)](LOG_PREFIX3+_0xec596(0x167)),import.meta.hot['on'](_0xec596(0x11b),_0x1ac8f6=>{const _0x2ffe73=_0xec596;console[_0x2ffe73(0xd0)](LOG_PREFIX3+'\x20Vite\x20error\x20detected:',_0x1ac8f6),state['appError']={'message':_0x1ac8f6[_0x2ffe73(0xb4)][_0x2ffe73(0xbf)]},updateOverlay();}),import.meta.hot['on'](_0xec596(0xf1),()=>{const _0x3c7ce7=_0xec596;state[_0x3c7ce7(0x17e)]&&(console['log'](LOG_PREFIX3+_0x3c7ce7(0xb0)),state[_0x3c7ce7(0x17e)]=null,updateOverlay());})),createController();}};function createController(){const _0x26fa30=_0x31768b,_0x238adc={'enable'(){const _0x5abcd7=_0x4f8f,_0x1816a4=getOptions();if(!_0x1816a4)return;state[_0x5abcd7(0x11e)]=!![],void loadOverlay({'overlayPath':_0x1816a4[_0x5abcd7(0x13c)],'enableViteHmr':_0x1816a4['overlay'][_0x5abcd7(0x104)],'options':_0x1816a4,'onToggle':handleToggle}),void registerServiceWorker(_0x1816a4),void sendConfiguration(),updateOverlay();},'disable'(){const _0x2c7d02=_0x4f8f,_0x3e6d85=getOptions();if(!_0x3e6d85)return;state[_0x2c7d02(0x11e)]=![],state[_0x2c7d02(0x152)]=![],updateOverlay(),void unregisterServiceWorker(_0x3e6d85[_0x2c7d02(0x13e)]);},'status'(){const _0xaef11f=_0x4f8f;return{'enabled':state[_0xaef11f(0x11e)],'controlled':state[_0xaef11f(0x152)]};}};return typeof window!==_0x26fa30(0x108)&&(window[_0x26fa30(0x176)]=_0x238adc),_0x238adc;}function handleToggle(){const _0x47f49c=_0x31768b,_0x25700c=createController();state['enabled']?_0x25700c['disable']():_0x25700c[_0x47f49c(0x166)]();}function parseUrlParams(){const _0x33d657=_0x31768b,_0x542861=new URL(window['location']['href']),_0x3dea0f=_0x542861[_0x33d657(0x17b)]['get'](_0x33d657(0xce))?.[_0x33d657(0x174)](),_0x34fb12=_0x542861[_0x33d657(0x17b)][_0x33d657(0x125)](_0x33d657(0xe9)),_0x3d6040=_0x542861[_0x33d657(0x17b)]['get'](_0x33d657(0x14b));return{'hasEnhancement':Boolean(_0x34fb12||_0x3d6040),'explicitDisable':_0x3dea0f==='0'||_0x3dea0f==='false'||_0x3dea0f===_0x33d657(0x122),'enhancementUrl':_0x34fb12,'enhancementId':_0x3d6040};}function _0x4f8f(_0x5385d4,_0xdfb9b9){_0x5385d4=_0x5385d4-0xaa;const _0x2a9535=_0x2a95();let _0x4f8f8e=_0x2a9535[_0x5385d4];return _0x4f8f8e;}function cleanUrlParam(_0x1f97f4){const _0xd3445b=_0x31768b,_0x303aeb=new URL(window['location'][_0xd3445b(0x102)]);_0x303aeb[_0xd3445b(0x17b)][_0xd3445b(0xab)](_0x1f97f4)&&(_0x303aeb[_0xd3445b(0x17b)]['delete'](_0x1f97f4),window[_0xd3445b(0xf6)][_0xd3445b(0x15b)](null,document[_0xd3445b(0xb1)],_0x303aeb[_0xd3445b(0x172)]()));}function _0x2a95(){const _0x309dba=['\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting','readyState','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','\x20ownsServiceWorker?\x20scriptURL=','installing','\x20No\x20current\x20controller','overlayPath','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','swPath','\x20No\x20service\x20worker\x20active\x20to\x20configure','__development','./dev/vite/index.d.ts','\x20Found\x20registration:','enableOverlayHmr','enhance:disable','^24.10.1','\x20state.enabled:\x20','enhancementId','__enhanceOverlay','https://api.enhancelabs.ai','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','enhancement','\x20loadOverlay()\x20called','tsc\x20--noEmit','info',',\x20page\x20origin:\x20','\x20Starting\x20fresh\x20overlay\x20load...','ready','controlled','serviceWorker','state','\x20Importing\x20overlay\x20module\x20from:\x20','security','333628hOCxgj','\x20Module\x20imported\x20in\x20','^3.22.4','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','replaceState','\x20init()\x20complete\x20-\x20normal\x20mode','\x20Config\x20sent\x20to\x20SW','__enhanceInitialized','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','\x20First\x20initialization','^7.2.4','object','\x20React\x20Refresh\x20already\x20installed\x20for\x20','\x20Module\x20missing\x20createOverlay\x20export!','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','enable','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','./dev/vite/index.js','\x20Normalized\x20options:','\x20Overlay\x20update\x20complete','\x20Controller\x20created:','\x20Updating\x20overlay...','./dev/index.d.ts','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','N/A','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','string','toString','^8.5.1','toLowerCase','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','__enhanceController','5010FBrZUs','275095QKZbMD','function','\x20Sending\x20customer\x20config\x20to\x20SW:','searchParams','error','\x20Unregistering\x20any\x20existing\x20SW...','appError','\x20Raw\x20options:','\x20Document\x20readyState:\x20','none','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','bun\x20version\x20patch\x20--no-git-tag-version','has','waiting','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','startsWith','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','title','location','\x20Enhancement\x20detection:\x20wasEnhanced=','err','origin','\x20Current\x20controller:','enhance:configure','/sw-enhance.js','\x20composeOverlayState\x20-\x20state.controlled:\x20','/@vite/client','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','__enhanceOptions','__vite_plugin_react_preamble_installed__','postMessage','message','\x20init()\x20called\x20at\x20','https://assets.enhancelabs.ai/overlay.js','\x20detectBlocking\x20-\x20existing\x20registration:','search','./dev/cli.js','\x20Enhancement\x20mode\x20ENABLED',',\x20currentOptions:\x20','\x20loadOverlay()\x20complete','hasEnhancement','1133538gasAOI','\x20composeOverlayState\x20-\x20enhancementUrl:\x20','warn','0.3.20','\x20doLoadOverlay()\x20starting...','enhance','controller','log','\x20Invalid\x20React\x20Refresh\x20runtime','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','\x20SW\x20ready!\x20Active:','__enhanceReactRefreshInstalledOrigins','runtimeURL','\x20Current\x20URL:\x20','createOverlay','\x20BLOCKING\x20SW\x20detected:\x20','scope','sw-enhance','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','668798DxCyjj','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','version','\x20enableViteHmr:\x20','trim','\x20unregisterServiceWorker()\x20called','\x20Overlay\x20controller\x20initialized\x20and\x20cached','active','callbackBypass','\x20init()\x20complete\x20-\x20enhancement\x20mode','overlay','enhancementUrl','injectIntoGlobalHook','573377Lcihol','MIT','\x20currentOptions\x20exists:\x20','http://','\x20Failed\x20to\x20import/create\x20overlay:','reload','vite:beforeUpdate','[Enhance\x20Config]\x20Build-time\x20defaults:','\x20overlayPath:\x20','position','\x20updateOverlay()\x20called','history','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','default','\x20enhancementId:\x20','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','^4.1.1','getRegistration','...','onToggle','2781030kggWCW','\x20Available\x20exports:','href','/assets/enhance-runtime.js','enableViteHmr','7533Mkurav','32huyzbZ','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','undefined','./dev/index.js','\x20No\x20window\x20object\x20-\x20skipping','stringify','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','\x20Current\x20controller\x20after\x20ready:','public','options','querySelector','dev/','$RefreshReg$','\x20URL\x20params\x20parsed:','register','\x20Calling\x20createOverlay()...','\x20setupRemoteHMR()\x20for\x20','3YIlkPw','scriptURL','^11.1.0','\x20Failed\x20to\x20unregister\x20service\x20worker:','vite:error','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','\x20Failed\x20to\x20register\x20service\x20worker:','enabled','[data-enhance-runtime-bootstrap]','state:\x20','\x20Checking\x20for\x20blocking\x20service\x20worker...','off','\x20Sending\x20customer\x20configuration...','\x20swPath:\x20','get','permissive','\x20Controller\x20state:','unregister','\x20detectBlocking\x20error:','\x20registerServiceWorker()\x20complete','/@react-refresh','some','\x20overlayController\x20exists:\x20','__viteHMRLoaded','add','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','https://','backendUrl','\x20Module\x20exports:','now','\x20Sending\x20DISABLE\x20message\x20to\x20SW...'];_0x2a95=function(){return _0x309dba;};return _0x2a95();}var package_default={'name':'@enhance-eng/sandbox','version':_0x31768b(0xcc),'type':'module','description':'Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','license':_0x31768b(0xec),'main':_0x31768b(0x109),'module':_0x31768b(0x109),'types':_0x31768b(0x16d),'exports':{'.':{'types':_0x31768b(0x16d),'import':_0x31768b(0x109)},'./vite':{'types':_0x31768b(0x141),'import':_0x31768b(0x168)}},'files':[_0x31768b(0x111)],'bin':{'enhance-sandbox':_0x31768b(0xc4)},'scripts':{'typecheck':_0x31768b(0x14d),'dev':_0x31768b(0xf8),'dev:build':_0x31768b(0x130),'dev:staging':_0x31768b(0x182),'dev:staging:build':_0x31768b(0x15f),'build':_0x31768b(0x138),'build:release':_0x31768b(0x14a),'version':_0x31768b(0xaa)},'dependencies':{'commander':_0x31768b(0x119),'zod':_0x31768b(0x159)},'devDependencies':{'@types/node':_0x31768b(0x145),'javascript-obfuscator':_0x31768b(0xfc),'tsup':_0x31768b(0x173),'vite':_0x31768b(0x161)},'publishConfig':{'access':_0x31768b(0x10e)}},DEFAULT_SERVICE_WORKER_PATH=_0x31768b(0xb8),DEFAULT_RUNTIME_PATH='/assets/enhance-runtime.js',PACKAGE_VERSION=typeof package_default['version']===_0x31768b(0x171)?package_default[_0x31768b(0xe0)]:'0.0.0';function normalizeAssetPath(_0x486778){const _0x59131c=_0x31768b;if(!_0x486778)return _0x486778;if(_0x486778[_0x59131c(0xae)](_0x59131c(0xee))||_0x486778[_0x59131c(0xae)](_0x59131c(0x131)))return _0x486778;const _0x226ae2=_0x486778['replace'](/^\.\//,'');return _0x226ae2['startsWith']('/')?_0x226ae2:'/'+_0x226ae2;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x286e4e){return Enhance['init'](_0x286e4e);},'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 _0x59232f=_0x31768b;return Enhance2[_0x59232f(0xd5)]();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
|
package/dist/sw-enhance.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';(function(_0x178f26,_0x35d590){const _0x53087b=_0x9689,_0x1b1e1a=_0x178f26();while(!![]){try{const _0x495ec6=parseInt(_0x53087b(0x149))/0x1*(parseInt(_0x53087b(0x15e))/0x2)+-parseInt(_0x53087b(0x1a0))/0x3*(-parseInt(_0x53087b(0xda))/0x4)+parseInt(_0x53087b(0xc7))/0x5*(parseInt(_0x53087b(0x88))/0x6)+-parseInt(_0x53087b(0x109))/0x7+parseInt(_0x53087b(0xa0))/0x8+-parseInt(_0x53087b(0xe2))/0x9+-parseInt(_0x53087b(0x16f))/0xa;if(_0x495ec6===_0x35d590)break;else _0x1b1e1a['push'](_0x1b1e1a['shift']());}catch(_0xdac5aa){_0x1b1e1a['push'](_0x1b1e1a['shift']());}}}(_0x40c9,0x72faf));function _0x9689(_0x46c792,_0x2f9a32){_0x46c792=_0x46c792-0x6b;const _0x40c963=_0x40c9();let _0x9689dd=_0x40c963[_0x46c792];return _0x9689dd;}function _0x40c9(){const _0x1ad0f3=['defineProperty','\x20chars','\x20\x20\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket.prototype,\x20\x22constructor\x22,\x20{\x20value:\x20EnhancedWebSocket\x20});','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20path:\x22,\x20runtimePath);','\x20shouldRouteAsset:\x20','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Calling\x20Enhance.init()\x20with\x20options:\x22,\x20JSON.stringify(','backendUrl','3915776jXTLbx','log','font-src\x20*\x20data:','\x20\x20\x20Content-Type:\x20','\x20\x20\x20Document\x20rewrite\x20complete','http://','\x20\x20\x20HTML\x20response\x20-\x20processing...','\x20\x20\x20\x20}','has','\x20\x20\x20\x20if\x20(typeof\x20window\x20!==\x20\x22undefined\x22)\x20{','message','\x20\x20\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20No\x20Enhance.init\x20export\x20found!\x22);','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(shouldProxy(resolved,\x20protocols))\x20{','object','permissive','\x20\x20\x20\x20\x20\x20var\x20isExternalHost\x20=\x20externalHosts.includes(url.host);','\x20\x20\x20\x20const\x20runtimePath\x20=\x20','map','enhance:disable','\x20CONFIG\x20message\x20-\x20updating\x20customer\x20config','slice','\x20\x20\x20\x20\x20\x20window.__enhanceController\x20=\x20controller;','some','https://assets.enhancelabs.ai/overlay.js','\x20\x20\x20\x20\x20\x20}','\x20\x20\x20shouldInjectOverlay:\x20','\x20\x20\x20\x20const\x20controller\x20=\x20Enhance.init(','(function(){','\x20\x20\x20\x20\x20\x20for\x20(var\x20j\x20=\x200;\x20j\x20<\x20knownPathHints.length;\x20j++)\x20{','media-src\x20*\x20data:\x20blob:','\x20chars)','type','\x20MESSAGE\x20received:','script-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20\x27unsafe-eval\x27\x20blob:\x20data:\x20https:\x20http:','\x5cu003c','\x20ACTIVATE\x20event','Enhancement\x20CORS\x20blocked','statusText','\x20\x20\x20\x20\x20\x20\x20\x20}','15dAspFT','enhancement','cross-origin-resource-policy','set','\x20\x20\x20Enhancement\x20HIT\x20for\x20','status','getOwnPropertyDescriptor','content-type','clone','\x20\x20\x20\x20\x20\x20return;','[Enhance\x20SW]','hasOwnProperty','\x20\x20\x20\x20EnhancedWebSocket.prototype\x20=\x20originalWebSocket.prototype;','\x20\x20\x20\x20var\x20knownProtocols\x20=\x20new\x20Set(','replace','\x0a</body>','Enhancement\x20document\x20miss\x20','\x20Config\x20reset','?import','11888YWOQEI','\x20\x20\x20Enhancement\x20MISS\x20for\x20','/@vite/client','/parcel-hmr','waitUntil','\x20\x20\x20Production\x20response:\x20','toISOString','\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20unavailable\x22,\x20error);','4877883gJSOtz','\x20\x20\x20Not\x20OK\x20(','\x20\x20\x20Failed\x20to\x20rewrite\x20document:','\x20fetchFromEnhancement:\x20','\x20\x20\x20Fetching\x20production\x20response...','config','get','securityMode','destination','\x20\x20\x20Rewriting\x20document...','fetch','script','x-enhance-enhancement','error','\x20\x20\x20Stripped\x20existing\x20bootstraps,\x20inserting\x20new\x20script...','\x20\x20\x20\x20\x20\x20proxied.hash\x20=\x20\x22\x22;','href','[Enhance\x20SW\x20Document]','Enhancement\x20fetch\x20failed','\x20\x20\x20\x20}\x20catch\x20(error)\x20{','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhanced\x20response','src','/assets/enhance-runtime.js','callbackBypassNormalized','\x20\x20\x20Not\x20routing\x20asset\x20(not\x20routable\x20or\x20not\x20same-origin)','image','getOwnPropertyNames','style','\x20\x20\x20\x20\x20\x20var\x20pathname\x20=\x20url.pathname\x20||\x20\x22/\x22;','/__parcel_hmr','\x20\x20\x20Injecting\x20runtime\x20bootstrap...','\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','pathname','\x20\x20\x20\x20\x20\x20var\x20proxied\x20=\x20new\x20URL(enhancementBase);','stringify','\x20\x20\x20\x20\x20\x20var\x20protoList\x20=\x20toArray(protocols);','enhancementBase','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>','__esModule','1114379TNvitU','\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket,\x20\x22__enhancePatched\x22,\x20{\x20value:\x20true\x20});','\x20\x20\x20\x20var\x20knownPathHints\x20=\x20','mode','\x20\x20\x20\x20\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20fallback\x22,\x20error);','img-src\x20*\x20data:\x20blob:','\x20rewriteDocument()\x20called','\x20\x20\x20\x20\x20\x20var\x20isAppHost\x20=\x20url.host\x20===\x20window.location.host;','/__vite/client','/__vite_ping','url','prototype','<script\x20data-enhance-hmr-bridge>','\x20\x20\x20\x20try\x20{','toString','toLowerCase','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(rewritten.toString(),\x20protocols);','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;','worker-src\x20\x27self\x27\x20blob:','Enhancement\x20miss\x20','\x5c$&','stylesheet','\x20skipWaiting()\x20complete','\x20\x20}','join','\x20\x20\x20Document\x20rewritten\x20successfully','/webpack-dev-server','\x20\x20\x20Attempting\x20to\x20fetch\x20from\x20enhancement:\x20','\x20Invalid\x20message\x20data\x20-\x20ignoring','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Current\x20URL:\x22,\x20window.location.href);','\x20\x20\x20\x20\x20\x20//\x20Always\x20use\x20enhancementBase\x20for\x20HMR\x20WebSocket\x20proxying','\x20\x20\x20Document\x20source:\x20','push','\x0a</head>','\x20\x20\x20overlayPath:\x20','\x20\x20\x20\x20\x20\x20','install',',\x20null,\x202));','\x20for\x20','[Enhance\x20SW\x20Routing]','delete','connect-src\x20*','\x20\x20\x20\x20const\x20Enhance\x20=\x20runtimeModule?.Enhance\x20??\x20runtimeModule?.default?.Enhance\x20??\x20runtimeModule?.default;','Cannot\x20build\x20enhancement\x20URL\x20without\x20enhancementBase\x20configured','method','/webpackhotmiddleware','\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(url,\x20protocols);','modulepreload','\x20Customer\x20config\x20updated:','\x20\x20\x20\x20\x20\x20//\x20Allow\x20proxying\x20for\x20specific\x20external\x20hosts','\x20fetchEnhancementDocument:\x20','})();','\x20\x20\x20\x20};','\x20\x20\x20enhancementUrl\x20in\x20config:\x20','host','headers',')\x20-\x20returning\x20null','\x5cu003e','\x20\x20\x20\x20\x20\x20\x20\x20return\x20false;','\x20\x20\x20\x20if\x20(!Enhance\x20||\x20typeof\x20Enhance.init\x20!==\x20\x22function\x22)\x20{','\x20Unknown\x20message\x20type:\x20','/__webpack_hmr','\x20\x20\x20Fetching\x20from\x20enhancement...','/auth/callback','67377ejLSfy','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20skipping','hash','style-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20blob:\x20data:\x20https:\x20http:','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Enhance\x20controller\x20created:\x22,\x20controller);','GET','\x20\x20\x20runtimeScriptPath:\x20','(async\x20()\x20=>\x20{','navigate','info','\x20handleNavigationRequest:\x20','worker','add','\x20\x20\x20\x20\x20\x20var\x20externalHosts\x20=\x20[\x22app.enhance.localhost:4450\x22,\x20\x22localhost:5173\x22];','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Bootstrap\x20complete\x22);','\x20\x20\x20mode:\x20','https://','\x20Bootstrap\x20options:','function','enhancement-document','sharedworker','18CUPkGp','\x20\x20\x20Rewriting\x20entry\x20references...','\x20\x20\x20Checking\x20for\x20enhancement\x20document...','\x20\x20\x20Fetch\x20error:','/_next/webpack-hmr','\x20\x20\x20No\x20script\x20generated\x20(missing\x20runtimePath)\x20-\x20returning\x20html\x20unchanged','</script>','HEAD','x-enhance-document-source','\x20\x20\x20Original\x20HTML\x20length:\x20','\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20Failed\x20to\x20bootstrap\x20runtime:\x22,\x20error);','opaque','\x20\x20\x20Enhancement\x20document\x20URL:\x20','vite-hmr','\x20\x20}\x20catch\x20(error)\x20{','cache-control','cross-origin-embedder-policy','4499450hHeqyJ','full','\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{','\x20\x20\x20source:\x20','origin','\x20\x20\x20\x20\x20\x20return\x20Array.isArray(value)\x20?\x20value\x20:\x20[value];','\x20Clearing\x20cached\x20enhancementUrl\x20(navigation\x20without\x20param)','/webpack-hot-middleware','production','\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)','activate','\x20\x20\x20BYPASS:\x20','runtimeScriptPath','enhancementUrl','match','overlay','default','default-src\x20\x27self\x27\x20blob:\x20data:','\x5cs*=\x5cs*([\x27\x22])([^\x22\x27]+)\x5c1','\x20matches\x20callbackBypass','debug','access-control-expose-headers','\x20\x20\x20\x20Object.setPrototypeOf(EnhancedWebSocket,\x20originalWebSocket);','/sw-enhance.js','\x20injectRuntimeBootstrap()\x20called','[Enhance\x20SW\x20Bootstrap]','content-security-policy','Failed\x20to\x20rewrite\x20document','\x20\x20\x20Applying\x20permissive\x20CSP...','\x20\x20\x20\x20\x20\x20var\x20loweredPath\x20=\x20pathname.toLowerCase();','\x20\x20\x20\x20\x20\x20\x20\x20var\x20resolved\x20=\x20url\x20instanceof\x20URL\x20?\x20url\x20:\x20new\x20URL(String(url),\x20window.location.href);','set-cookie2','\x20\x20\x20\x20const\x20runtimeModule\x20=\x20await\x20import(runtimePath);','\x20Calling\x20clients.claim()...','hit','\x20\x20\x20Not\x20HTML\x20-\x20returning\x20production\x20response\x20as-is','\x20buildRuntimeBootstrapScript:\x20no\x20runtimePath\x20-\x20returning\x20null','\x20\x20\x20\x20Object.assign(EnhancedWebSocket,\x20originalWebSocket);','\x20\x20\x20Document\x20fetch\x20error:','https://api.enhancelabs.ai','searchParams','\x20\x20\x20Not\x20handling\x20(method\x20not\x20GET/HEAD)','endsWith','call','\x20\x20try\x20{','frame-ancestors\x20','x-enhance-document','\x20\x20\x20Rewritten\x20HTML\x20length:\x20','\x20Build\x20config:','390EALqCi','redirect',',\x20destination:\x20','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(typeof\x20proto\x20===\x20\x22string\x22\x20&&\x20knownProtocols.has(proto.toLowerCase()))\x20{','value','\x20\x20\x20\x20\x20\x20if\x20(pathname\x20===\x20basePrefix\x20||\x20pathname.indexOf(basePrefix\x20+\x20\x22/\x22)\x20===\x200)\x20{','\x20\x20\x20Skipping\x20HMR\x20bridge\x20(production\x20source)','length','startsWith','search','cors','cross-origin-opener-policy','addEventListener','claim','\x20\x20\x20\x20\x20\x20for\x20(var\x20i\x20=\x200;\x20i\x20<\x20protoList.length;\x20i++)\x20{','\x20\x20\x20\x20\x20\x20if\x20(!value)\x20return\x20[];','text','includes','\x20\x20\x20\x20var\x20originalWebSocket\x20=\x20window.WebSocket;','set-cookie','location','\x20\x20\x20Injecting\x20HMR\x20bridge\x20(enhancement\x20source)...','include','\x20\x20\x20\x20var\x20enhancementBase\x20=\x20new\x20URL(','callbackBypass','content-length','none','test','/sockjs-node','\x20\x20\x20\x20\x20\x20window.__enhanceInitialized\x20=\x20true;','\x20Service\x20Worker\x20script\x20loaded\x20at\x20','279726PsviFQ','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(loweredPath.indexOf(knownPathHints[j])\x20!==\x20-1)\x20{','follow','\x20\x20\x20\x20var\x20basePrefix\x20=\x20\x22/__sbx__\x22;','data','Enhancement\x20document\x20fetch\x20failed','custom','text/html','\x20\x20\x20enhancementUrl:\x20','no-store','\x20\x20\x20\x20window.WebSocket\x20=\x20EnhancedWebSocket;','overlayPath','\x20\x20\x20\x20\x20\x20if\x20(!isExternalHost\x20&&\x20!isAppHost)\x20return\x20false;',',\x20type:\x20','/__snowpack__','clients','\x20FETCH:\x20'];_0x40c9=function(){return _0x1ad0f3;};return _0x40c9();}var EnhanceSW=((()=>{const _0x1f429a=_0x9689;var _0x54d745=Object[_0x1f429a(0x99)],_0x2de4d0=Object[_0x1f429a(0xcd)],_0xfe4e11=Object[_0x1f429a(0xfc)],_0x36eae6=Object[_0x1f429a(0x114)][_0x1f429a(0xd2)],_0x450a27=(_0x55737d,_0x54dd64)=>{for(var _0x18c3da in _0x54dd64)_0x54d745(_0x55737d,_0x18c3da,{'get':_0x54dd64[_0x18c3da],'enumerable':!![]});},_0x1c8043=(_0x3c95a2,_0xfe7bc4,_0x194d73,_0x5eb884)=>{const _0x26e1cd=_0x1f429a;if(_0xfe7bc4&&typeof _0xfe7bc4===_0x26e1cd(0xad)||typeof _0xfe7bc4===_0x26e1cd(0x15b)){for(let _0x378a67 of _0xfe4e11(_0xfe7bc4))if(!_0x36eae6[_0x26e1cd(0x19a)](_0x3c95a2,_0x378a67)&&_0x378a67!==_0x194d73)_0x54d745(_0x3c95a2,_0x378a67,{'get':()=>_0xfe7bc4[_0x378a67],'enumerable':!(_0x5eb884=_0x2de4d0(_0xfe7bc4,_0x378a67))||_0x5eb884['enumerable']});}return _0x3c95a2;},_0x508592=_0x62ba66=>_0x1c8043(_0x54d745({},_0x1f429a(0x108),{'value':!![]}),_0x62ba66),_0x540050={};_0x450a27(_0x540050,{'log':()=>_0x3b4854});var _0x5dbfc0='enhance:configure',_0x4305ed=_0x1f429a(0xb2);function _0x405f1c(_0x2b7d72){const _0x404a66=_0x1f429a;if(!_0x2b7d72[_0x404a66(0x71)]('/'))return'/'+_0x2b7d72;return _0x2b7d72;}function _0x1e4030(_0x5c836d,_0x3e116e){const _0xc4b354=_0x1f429a,_0x25dd35=new URL(_0x5c836d['toString']()),_0x4e0384=_0x25dd35[_0xc4b354(0x102)][_0xc4b354(0x199)]('/')?_0x25dd35[_0xc4b354(0x102)][_0xc4b354(0xb4)](0x0,-0x1):_0x25dd35['pathname'],_0x5b305=_0x3e116e['pathname']['startsWith']('/')?_0x3e116e[_0xc4b354(0x102)]:'/'+_0x3e116e[_0xc4b354(0x102)];return _0x25dd35['pathname']=(''+_0x4e0384+_0x5b305)[_0xc4b354(0xd5)](/\/+/g,'/'),_0x25dd35['search']=_0x3e116e[_0xc4b354(0x72)],_0x25dd35[_0xc4b354(0x14b)]='',_0x25dd35;}var _0x16848c=_0x1f429a(0x130),_0x51b7ad=new Set([_0x1f429a(0xed),_0x1f429a(0xfd),'font',_0x1f429a(0xfb),_0x1f429a(0x154),_0x1f429a(0x15d),_0x1f429a(0x138)]);function _0x10bfb3(_0x5a9a41){const _0x47cfe5=_0x1f429a,_0x282447=_0x5a9a41[_0x47cfe5(0x135)]===_0x47cfe5(0x14e)||_0x5a9a41[_0x47cfe5(0x135)]===_0x47cfe5(0x165);return _0x282447;}function _0x55d7f8(_0x1924f4,_0x2d4f48){const _0x254f3c=_0x1f429a,_0x1d8ed4=_0x405f1c(_0x2d4f48),_0x5c88d3=_0x1924f4[_0x254f3c(0xf9)][_0x254f3c(0xb6)](_0x55e814=>_0x1d8ed4[_0x254f3c(0x71)](_0x55e814));return _0x5c88d3;}function _0x45ed91(_0x4c5e8b,_0x240590,_0x4e20bd){const _0x25047f=_0x1f429a,_0x2fb9c5=_0x240590['destination'];if(!_0x2fb9c5||!_0x51b7ad[_0x25047f(0xa8)](_0x2fb9c5))return![];if(_0x5b879f(_0x4c5e8b,_0x4e20bd))return console[_0x25047f(0xa1)](_0x16848c+'\x20shouldRouteAsset:\x20'+_0x4e20bd[_0x25047f(0x102)]+'\x20is\x20overlay\x20asset\x20-\x20not\x20routing'),![];if(_0x38202a(_0x4c5e8b,_0x4e20bd))return console[_0x25047f(0xa1)](_0x16848c+_0x25047f(0x9d)+_0x4e20bd[_0x25047f(0x102)]+'\x20is\x20runtime\x20asset\x20-\x20not\x20routing'),![];if(_0x4e20bd[_0x25047f(0x173)]!==self[_0x25047f(0x7d)][_0x25047f(0x173)])return![];return!![];}async function _0x1945fd(_0x2b8842,_0x3e3ef0,_0x1ecdf7){const _0x36f9e6=_0x1f429a;console[_0x36f9e6(0xa1)](_0x16848c+_0x36f9e6(0xe5)+_0x1ecdf7[_0x36f9e6(0x102)]);if(!_0x2b8842[_0x36f9e6(0x106)])return console[_0x36f9e6(0xa1)](_0x16848c+_0x36f9e6(0x14a)),null;const _0x201b05=_0x12befe(_0x2b8842,_0x1ecdf7);console[_0x36f9e6(0xa1)](_0x16848c+'\x20\x20\x20Enhancement\x20URL:\x20'+_0x201b05[_0x36f9e6(0x117)]());const _0x3af8db=new Headers(_0x3e3ef0[_0x36f9e6(0x140)]);_0x3af8db[_0x36f9e6(0xca)]('x-enhance-routing',_0x36f9e6(0xc8)),_0x3af8db[_0x36f9e6(0x131)]('host');const _0x5d1653=new Request(_0x201b05[_0x36f9e6(0x117)](),{'method':_0x3e3ef0[_0x36f9e6(0x135)],'headers':_0x3af8db,'credentials':_0x36f9e6(0x7f),'redirect':_0x3e3ef0[_0x36f9e6(0x1a1)],'cache':_0x36f9e6(0x17f),'mode':_0x36f9e6(0x73)});try{console[_0x36f9e6(0xa1)](_0x16848c+_0x36f9e6(0x147));const _0x4af3b8=await fetch(_0x5d1653);console[_0x36f9e6(0xa1)](_0x16848c+'\x20\x20\x20Response:\x20'+_0x4af3b8[_0x36f9e6(0xcc)]+'\x20'+_0x4af3b8[_0x36f9e6(0xc5)]+_0x36f9e6(0x95)+_0x4af3b8['type']);if(_0x4af3b8[_0x36f9e6(0xbf)]===_0x36f9e6(0x169))return console[_0x36f9e6(0xa1)](_0x16848c+_0x36f9e6(0x178)),_0x3b4854(_0x36f9e6(0x152),_0x36f9e6(0xc4),_0x201b05[_0x36f9e6(0x117)]()),null;if(!_0x4af3b8['ok'])return console[_0x36f9e6(0xa1)](_0x16848c+_0x36f9e6(0xe3)+_0x4af3b8[_0x36f9e6(0xcc)]+')\x20-\x20returning\x20null'),_0x3b4854(_0x36f9e6(0x183),_0x36f9e6(0x11c)+_0x4af3b8['status']+_0x36f9e6(0x12f)+_0x201b05['pathname']),null;return console['log'](_0x16848c+_0x36f9e6(0xf6)),_0x13925d(_0x4af3b8,_0x3e3ef0[_0x36f9e6(0x135)]);}catch(_0x4bd3ec){return console['error'](_0x16848c+_0x36f9e6(0x161),_0x4bd3ec),_0x3b4854(_0x36f9e6(0x152),_0x36f9e6(0xf4),_0x4bd3ec),null;}}async function _0x458f08(_0x5980a3,_0x2360a1){const _0x3ca3a2=_0x1f429a,_0x3b3eb4=new URL(_0x2360a1['url']);console['log'](_0x16848c+_0x3ca3a2(0x13b)+_0x3b3eb4[_0x3ca3a2(0x102)]+_0x3b3eb4[_0x3ca3a2(0x72)]);if(!_0x5980a3[_0x3ca3a2(0x106)])return console['log'](_0x16848c+'\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20returning\x20null'),null;const _0x5f5a5=_0x12befe(_0x5980a3,_0x3b3eb4);console[_0x3ca3a2(0xa1)](_0x16848c+_0x3ca3a2(0x16a)+_0x5f5a5[_0x3ca3a2(0x117)]());const _0x28e8e5=new Headers(_0x2360a1[_0x3ca3a2(0x140)]);_0x28e8e5['set']('x-enhance-routing',_0x3ca3a2(0x15c)),_0x28e8e5[_0x3ca3a2(0x131)](_0x3ca3a2(0x13f)),_0x28e8e5['delete'](_0x3ca3a2(0x82));const _0x26569b=new Request(_0x5f5a5['toString'](),{'method':_0x3ca3a2(0x14e),'headers':_0x28e8e5,'credentials':'include','redirect':_0x3ca3a2(0x8a),'cache':_0x3ca3a2(0x17f),'mode':'cors'});try{console['log'](_0x16848c+'\x20\x20\x20Fetching\x20enhancement\x20document...');const _0x57aa88=await fetch(_0x26569b);console[_0x3ca3a2(0xa1)](_0x16848c+'\x20\x20\x20Response:\x20'+_0x57aa88[_0x3ca3a2(0xcc)]+'\x20'+_0x57aa88[_0x3ca3a2(0xc5)]+_0x3ca3a2(0x95)+_0x57aa88[_0x3ca3a2(0xbf)]),console['log'](_0x16848c+_0x3ca3a2(0xa3)+_0x57aa88[_0x3ca3a2(0x140)]['get']('content-type'));if(_0x57aa88['type']==='opaque')return console['log'](_0x16848c+'\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)'),_0x3b4854(_0x3ca3a2(0x152),'Enhancement\x20document\x20CORS\x20blocked',_0x5f5a5['toString']()),null;if(!_0x57aa88['ok'])return console['log'](_0x16848c+_0x3ca3a2(0xe3)+_0x57aa88['status']+_0x3ca3a2(0x141)),_0x3b4854(_0x3ca3a2(0x183),_0x3ca3a2(0xd7)+_0x57aa88[_0x3ca3a2(0xcc)]+'\x20for\x20'+_0x5f5a5['pathname']),null;if(!_0x1d1d4d(_0x57aa88))return console[_0x3ca3a2(0xa1)](_0x16848c+'\x20\x20\x20Not\x20HTML\x20response\x20-\x20returning\x20null'),null;return console[_0x3ca3a2(0xa1)](_0x16848c+'\x20\x20\x20SUCCESS\x20-\x20returning\x20enhancement\x20document'),_0x13925d(_0x57aa88,_0x3ca3a2(0x14e));}catch(_0x42d496){return console[_0x3ca3a2(0xef)](_0x16848c+_0x3ca3a2(0x195),_0x42d496),_0x3b4854('info',_0x3ca3a2(0x8d),_0x42d496),null;}}function _0x12befe(_0xd57e40,_0x25371e){const _0x231d07=_0x1f429a;if(!_0xd57e40[_0x231d07(0x106)])throw new Error(_0x231d07(0x134));return _0x1e4030(_0xd57e40[_0x231d07(0x106)],_0x25371e);}function _0x13925d(_0x2504a4,_0xa83158){const _0x58f2c6=_0x1f429a,_0x7495a4=_0x2504a4[_0x58f2c6(0xcf)](),_0x380d53=new Headers(_0x7495a4[_0x58f2c6(0x140)]);_0x380d53[_0x58f2c6(0x131)]('access-control-allow-origin'),_0x380d53['delete']('access-control-allow-credentials'),_0x380d53[_0x58f2c6(0x131)](_0x58f2c6(0x184)),_0x380d53[_0x58f2c6(0xca)](_0x58f2c6(0xee),_0x58f2c6(0x191)),_0x527873(_0x380d53);const _0x331567=_0xa83158===_0x58f2c6(0x165)?null:_0x7495a4['body'];return new Response(_0x331567,{'status':_0x7495a4['status'],'statusText':_0x7495a4[_0x58f2c6(0xc5)],'headers':_0x380d53});}function _0x1d1d4d(_0x30dea9){const _0x9c789a=_0x1f429a,_0x1209ec=_0x30dea9['headers'][_0x9c789a(0xe8)](_0x9c789a(0xce));return _0x1209ec!=null&&_0x1209ec[_0x9c789a(0x7a)](_0x9c789a(0x8f));}function _0x5b879f(_0x1edce2,_0x589a4c){const _0x327418=_0x1f429a;return _0x1b447f(_0x589a4c,_0x1edce2[_0x327418(0x93)]);}function _0x38202a(_0x5e2f5d,_0x15b6ed){return _0x578792(_0x15b6ed,_0x5e2f5d['runtimeScriptPath']);}function _0x1b447f(_0x4b1e7d,_0x5c8758){const _0x2c1302=_0x1f429a;if(!_0x5c8758)return![];if(_0x5c8758[_0x2c1302(0x71)]('http://')||_0x5c8758[_0x2c1302(0x71)](_0x2c1302(0x159)))return _0x4b1e7d[_0x2c1302(0xf2)]===_0x5c8758;const _0x283051=_0x19036d(_0x5c8758);if(!_0x283051)return![];const _0x5a30a7=''+_0x4b1e7d[_0x2c1302(0x102)]+_0x4b1e7d[_0x2c1302(0x72)];if(_0x5a30a7===_0x283051)return!![];if(_0x4b1e7d[_0x2c1302(0x72)]===_0x2c1302(0xd9))return _0x4b1e7d[_0x2c1302(0x102)]===_0x283051;return![];}function _0x578792(_0x2048cb,_0x8c8ee9){const _0x5e2b0d=_0x1f429a;if(!_0x8c8ee9)return![];if(_0x8c8ee9['startsWith'](_0x5e2b0d(0xa5))||_0x8c8ee9[_0x5e2b0d(0x71)](_0x5e2b0d(0x159)))return _0x2048cb['href']===_0x8c8ee9;const _0xca8335=_0x19036d(_0x8c8ee9);if(!_0xca8335)return![];const _0x3c7b2d=''+_0x2048cb[_0x5e2b0d(0x102)]+_0x2048cb[_0x5e2b0d(0x72)];return _0x3c7b2d===_0xca8335;}function _0x19036d(_0x522acb){const _0x31840d=_0x1f429a;if(!_0x522acb)return _0x522acb;if(_0x522acb[_0x31840d(0x71)]('http://')||_0x522acb[_0x31840d(0x71)](_0x31840d(0x159)))return _0x522acb;const _0x2cfe48=_0x522acb[_0x31840d(0xd5)](/^\.\//,'');if(_0x2cfe48[_0x31840d(0x71)]('/'))return _0x2cfe48;return'/'+_0x2cfe48;}function _0x527873(_0x35e68a){const _0xda6d58=_0x1f429a;_0x35e68a[_0xda6d58(0x131)](_0xda6d58(0x7c)),_0x35e68a[_0xda6d58(0x131)](_0xda6d58(0x18e));}function _0x299596(_0x1c2c61){const _0x11ca7f=_0x1f429a,_0x47fa54=[_0x11ca7f(0x180),_0x11ca7f(0xc1),_0x11ca7f(0x14c),_0x11ca7f(0x10e),_0x11ca7f(0xa2),_0x11ca7f(0x132),_0x11ca7f(0xbd),_0x11ca7f(0x11b),'object-src\x20\x27none\x27'],_0x4e3be8=_0x219ca1(_0x1c2c61);return _0x4e3be8&&_0x47fa54[_0x11ca7f(0x129)](_0x4e3be8),_0x47fa54[_0x11ca7f(0x121)](';\x20');}function _0x1dabb2(_0x51b3d5){const _0x73c5ed=_0x1f429a;_0x51b3d5['delete'](_0x73c5ed(0x7c)),_0x51b3d5[_0x73c5ed(0x131)]('set-cookie2');}function _0x219ca1(_0x2c0341){const _0x410dc0=_0x1f429a;if(!_0x2c0341)return null;const _0x8d1d44=_0x2c0341['match'](/frame-ancestors\s+([^;]+)/i);if(!_0x8d1d44)return null;return _0x410dc0(0x19c)+_0x8d1d44[0x1]['trim']();}function _0x52df8e(_0x5e4d51,_0x423cb5){const _0x119b2b=_0x1f429a;if(/<head[^>]*>/i[_0x119b2b(0x84)](_0x5e4d51)){const _0x30a7f7=_0x5e4d51[_0x119b2b(0x17d)](/<head[^>]*>/i);if(_0x30a7f7){const _0x1be23c=_0x30a7f7[0x0];return _0x5e4d51['replace'](_0x1be23c,_0x1be23c+'\x0a'+_0x423cb5);}}if(/<\/head>/i[_0x119b2b(0x84)](_0x5e4d51))return _0x5e4d51[_0x119b2b(0xd5)](/<\/head>/i,_0x423cb5+_0x119b2b(0x12a));if(/<body\b[^>]*>/i[_0x119b2b(0x84)](_0x5e4d51))return _0x5e4d51[_0x119b2b(0xd5)](/<body\b[^>]*>/i,'$&\x0a'+_0x423cb5);if(/<\/body>/i[_0x119b2b(0x84)](_0x5e4d51))return _0x5e4d51[_0x119b2b(0xd5)](/<\/body>/i,_0x423cb5+_0x119b2b(0xd6));return _0x423cb5+'\x0a'+_0x5e4d51;}var _0x335056=[_0x1f429a(0x16b)],_0x2fbecb=[_0x1f429a(0xdc),_0x1f429a(0x111),'/vite/client',_0x1f429a(0x112),_0x1f429a(0x85),_0x1f429a(0x123),'/webpack-hmr',_0x1f429a(0x136),_0x1f429a(0x176),_0x1f429a(0x146),_0x1f429a(0x162),_0x1f429a(0xdd),_0x1f429a(0xff),_0x1f429a(0x96),'/snowpack/hmr'];function _0x454362(_0x3a312c,_0x5205ea){const _0x21f04c=_0x19f051(_0x3a312c);if(!_0x21f04c)return _0x5205ea;return _0x52df8e(_0x5205ea,_0x21f04c);}function _0x19f051(_0x2ca43d){const _0x1a2de1=_0x1f429a;if(!_0x2ca43d[_0x1a2de1(0x106)])return null;const _0x2698ed=_0x2ca43d['enhancementBase'][_0x1a2de1(0x117)](),_0x3de595=_0x1e1d20(_0x335056),_0xbf1bac=_0x1e1d20(_0x2fbecb),_0x3663db=[_0x1a2de1(0x115),_0x1a2de1(0xbb),_0x1a2de1(0x19b),_0x1a2de1(0x80)+JSON[_0x1a2de1(0x104)](_0x2698ed)+');',_0x1a2de1(0x7b),'\x20\x20\x20\x20if\x20(!originalWebSocket\x20||\x20originalWebSocket.__enhancePatched)\x20{',_0x1a2de1(0xd0),_0x1a2de1(0xa7),_0x1a2de1(0xd4)+JSON[_0x1a2de1(0x104)](_0x3de595)+');',_0x1a2de1(0x10b)+JSON[_0x1a2de1(0x104)](_0xbf1bac)+';',_0x1a2de1(0x8b),'\x20\x20\x20\x20var\x20toArray\x20=\x20function(value)\x20{',_0x1a2de1(0x78),_0x1a2de1(0x174),_0x1a2de1(0x13d),'\x20\x20\x20\x20var\x20shouldProxy\x20=\x20function(url,\x20protocols)\x20{',_0x1a2de1(0x13a),_0x1a2de1(0x156),_0x1a2de1(0xaf),_0x1a2de1(0x110),_0x1a2de1(0x12c),_0x1a2de1(0x94),_0x1a2de1(0x12c),_0x1a2de1(0xfe),_0x1a2de1(0x6e),_0x1a2de1(0x143),_0x1a2de1(0xb8),_0x1a2de1(0x105),_0x1a2de1(0x77),'\x20\x20\x20\x20\x20\x20\x20\x20var\x20proto\x20=\x20protoList[i];',_0x1a2de1(0x6c),_0x1a2de1(0x11a),_0x1a2de1(0xc6),'\x20\x20\x20\x20\x20\x20}',_0x1a2de1(0x18c),_0x1a2de1(0xbc),_0x1a2de1(0x89),'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;',_0x1a2de1(0xc6),_0x1a2de1(0xb8),'\x20\x20\x20\x20\x20\x20return\x20false;',_0x1a2de1(0x13d),'\x20\x20\x20\x20var\x20buildProxiedUrl\x20=\x20function(targetUrl)\x20{',_0x1a2de1(0x127),_0x1a2de1(0x103),'\x20\x20\x20\x20\x20\x20proxied.search\x20=\x20targetUrl.search;',_0x1a2de1(0xf1),'\x20\x20\x20\x20\x20\x20return\x20proxied;',_0x1a2de1(0x13d),'\x20\x20\x20\x20var\x20EnhancedWebSocket\x20=\x20function(url,\x20protocols)\x20{','\x20\x20\x20\x20\x20\x20try\x20{',_0x1a2de1(0x18d),_0x1a2de1(0xac),'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20rewritten\x20=\x20buildProxiedUrl(resolved);',_0x1a2de1(0x119),_0x1a2de1(0xc6),_0x1a2de1(0x171),_0x1a2de1(0x10d),_0x1a2de1(0xb8),_0x1a2de1(0x137),'\x20\x20\x20\x20};',_0x1a2de1(0x194),_0x1a2de1(0xd3),_0x1a2de1(0x185),_0x1a2de1(0x116),_0x1a2de1(0x9b),_0x1a2de1(0xf5),'\x20\x20\x20\x20\x20\x20//\x20ignore\x20if\x20unable\x20to\x20redefine',_0x1a2de1(0xa7),_0x1a2de1(0x10a),_0x1a2de1(0x92),_0x1a2de1(0x16c),_0x1a2de1(0xe1),_0x1a2de1(0x120),_0x1a2de1(0x13c),_0x1a2de1(0x164)];return _0x3663db['join']('\x0a');}function _0x1e1d20(_0x59975e){const _0x478524=_0x1f429a,_0x452b6d=new Set(),_0x9b53a1=[];for(const _0x425b9c of _0x59975e){const _0x4043fd=_0x425b9c[_0x478524(0x118)]();if(_0x452b6d[_0x478524(0xa8)](_0x4043fd))continue;_0x452b6d[_0x478524(0x155)](_0x4043fd),_0x9b53a1['push'](_0x4043fd);}return _0x9b53a1;}var _0x591211=_0x1f429a(0x188);function _0x1acea7(_0x10fa94,_0x4c2eae){const _0xc41e70=_0x1f429a;console['log'](_0x591211+_0xc41e70(0x187)),console[_0xc41e70(0xa1)](_0x591211+_0xc41e70(0x14f)+_0x10fa94[_0xc41e70(0x17b)]),console[_0xc41e70(0xa1)](_0x591211+_0xc41e70(0x12b)+_0x10fa94[_0xc41e70(0x93)]);const _0x4453b9=_0x2990b0(_0x10fa94);if(!_0x4453b9)return console[_0xc41e70(0xa1)](_0x591211+_0xc41e70(0x163)),_0x4c2eae;console[_0xc41e70(0xa1)](_0x591211+'\x20\x20\x20Bootstrap\x20script\x20generated\x20('+_0x4453b9['length']+_0xc41e70(0xbe));const _0x312f0c=_0x36097a(_0x4c2eae,_0x10fa94[_0xc41e70(0x17b)]);console[_0xc41e70(0xa1)](_0x591211+_0xc41e70(0xf0));const _0x33ea84=_0x52df8e(_0x312f0c,_0x4453b9);return console['log'](_0x591211+'\x20\x20\x20Script\x20inserted\x20into\x20document'),_0x33ea84;}function _0x2990b0(_0x2ede64){const _0x1f1a15=_0x1f429a,_0x77b846=_0x2ede64[_0x1f1a15(0x17b)];if(!_0x77b846)return console[_0x1f1a15(0xa1)](_0x591211+_0x1f1a15(0x193)),null;const _0x54dc8b=_0x13c208(_0x2ede64);console['log'](_0x591211+_0x1f1a15(0x15a),JSON['stringify'](_0x54dc8b,null,0x2));const _0x2a6351=_0x1d9b4d(_0x54dc8b),_0x191d84=JSON[_0x1f1a15(0x104)](_0x77b846),_0xe33b4a=[_0x1f1a15(0x107),_0x1f1a15(0x150),'\x20\x20try\x20{',_0x1f1a15(0xb0)+_0x191d84+';','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Starting\x20runtime\x20bootstrap...\x22);',_0x1f1a15(0x9c),_0x1f1a15(0x126),_0x1f1a15(0x18f),'\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20module\x20loaded:\x22,\x20Object.keys(runtimeModule));',_0x1f1a15(0x133),_0x1f1a15(0x144),_0x1f1a15(0xab),_0x1f1a15(0xd0),_0x1f1a15(0xa7),_0x1f1a15(0x9e)+_0x2a6351+_0x1f1a15(0x12e),_0x1f1a15(0xba)+_0x2a6351+');',_0x1f1a15(0x14d),_0x1f1a15(0xa9),'\x20\x20\x20\x20\x20\x20window.enhancePreview\x20=\x20controller;','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Controller\x20attached\x20to\x20window.enhancePreview\x22);',_0x1f1a15(0x101),_0x1f1a15(0x86),_0x1f1a15(0xb5),'\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Set\x20window.__enhanceInitialized\x20=\x20true\x22);',_0x1f1a15(0xa7),_0x1f1a15(0x157),_0x1f1a15(0x16c),_0x1f1a15(0x168),_0x1f1a15(0x120),_0x1f1a15(0x13c),_0x1f1a15(0x164)];return _0xe33b4a['join']('\x0a');}function _0x13c208(_0x348d80){const _0x4eedd6=_0x1f429a,_0x3af71b={'callbackBypass':_0x348d80[_0x4eedd6(0x81)],'__development':{'enableOverlayHmr':_0x348d80['overlayEnableViteHmr'],'overlayPath':_0x348d80[_0x4eedd6(0x93)],'security':_0x348d80['securityMode'],'backendUrl':_0x348d80[_0x4eedd6(0x9f)]}};return _0x3af71b;}function _0x1d9b4d(_0x598681){const _0x3a55eb=_0x1f429a;return JSON[_0x3a55eb(0x104)](_0x598681)[_0x3a55eb(0xd5)](/</g,_0x3a55eb(0xc2))[_0x3a55eb(0xd5)](/>/g,_0x3a55eb(0x142));}function _0x36097a(_0x5d64e7,_0xbb6d5d){const _0x5821cb=_0x1f429a,_0x168088=/<script\b[^>]*data-enhance-runtime-bootstrap[^>]*>[\s\S]*?<\/script>/gi;let _0x4c4bac=_0x5d64e7['replace'](_0x168088,'');if(_0xbb6d5d){const _0x35687e=_0x55d1b1(_0xbb6d5d),_0x54d16a=new RegExp('<script\x5cb[^>]*src\x5cs*=\x5cs*([\x27\x22])'+_0x35687e+'\x5c1[^>]*>\x5cs*</script>','gi');_0x4c4bac=_0x4c4bac[_0x5821cb(0xd5)](_0x54d16a,'');}return _0x4c4bac;}function _0x55d1b1(_0x497c74){const _0x4aa056=_0x1f429a;return _0x497c74[_0x4aa056(0xd5)](/[-/\\^$*+?.()|[\]{}]/g,_0x4aa056(0x11d));}function _0x36f4a7(_0x4ec22a,_0x12d21b){const _0x42d027=_0x3c21aa=>_0x38e80c(_0x4ec22a,_0x3c21aa),_0x418fd8=_0x434258=>_0xa86aae(_0x4ec22a,_0x434258);return _0x12d21b['replace'](/<script\b[^>]*>/gi,_0x42d027)['replace'](/<link\b[^>]*>/gi,_0x418fd8);}function _0x30b104(_0x27aeb9){const _0x374bbe=_0x1f429a;return _0x27aeb9[_0x374bbe(0xd5)](/\s+integrity\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,'');}function _0x38e80c(_0x105dd3,_0x385d0c){const _0x22ab0f=_0x1f429a,_0x368676=_0x7a92c3(_0x385d0c,_0x22ab0f(0xf7));if(!_0x368676)return _0x385d0c;const _0x5c36ee=_0x2361de(_0x105dd3,_0x368676[_0x22ab0f(0x6d)]);if(!_0x5c36ee||_0x5c36ee===_0x368676[_0x22ab0f(0x6d)])return _0x385d0c;const _0x9a7cde=_0x368676[_0x22ab0f(0x170)][_0x22ab0f(0xd5)](_0x368676['value'],_0x5c36ee);return _0x385d0c[_0x22ab0f(0xd5)](_0x368676[_0x22ab0f(0x170)],_0x9a7cde);}function _0xa86aae(_0xe85982,_0x490e72){const _0x459c25=_0x1f429a,_0x3f25ce=_0x490e72['match'](/\brel\s*=\s*(['"])([^"']+)\1/i);if(!_0x3f25ce)return _0x490e72;const _0x540f93=_0x3f25ce[0x2][_0x459c25(0x118)]();if(_0x540f93!==_0x459c25(0x11e)&&_0x540f93!==_0x459c25(0x138))return _0x490e72;const _0x21189a=_0x7a92c3(_0x490e72,'href');if(!_0x21189a)return _0x490e72;const _0x4c3884=_0x2361de(_0xe85982,_0x21189a[_0x459c25(0x6d)]);if(!_0x4c3884||_0x4c3884===_0x21189a[_0x459c25(0x6d)])return _0x490e72;const _0xa9bda3=_0x21189a[_0x459c25(0x170)][_0x459c25(0xd5)](_0x21189a[_0x459c25(0x6d)],_0x4c3884);return _0x490e72[_0x459c25(0xd5)](_0x21189a[_0x459c25(0x170)],_0xa9bda3);}function _0x7a92c3(_0x1e4bd0,_0x138d18){const _0x900ac5=_0x1f429a,_0x3dbef0=new RegExp(_0x138d18+_0x900ac5(0x181),'i'),_0x329657=_0x1e4bd0[_0x900ac5(0x17d)](_0x3dbef0);if(!_0x329657)return null;return{'full':_0x329657[0x0],'value':_0x329657[0x2]};}function _0x2361de(_0x4d8b50,_0x4fdc24){const _0x12b170=_0x1f429a,_0x4f44fe=_0x216d84(_0x4fdc24);if(!_0x4f44fe)return null;if(_0x4f44fe[_0x12b170(0x173)]===self[_0x12b170(0x7d)][_0x12b170(0x173)])return''+_0x4f44fe[_0x12b170(0x102)]+_0x4f44fe['search'];return null;}function _0x216d84(_0x7ad621){const _0x15d7b5=_0x1f429a;try{return new URL(_0x7ad621,self[_0x15d7b5(0x7d)]['origin']);}catch{return null;}}var _0x26c7ca=_0x1f429a(0xf3);async function _0xe4db64(_0x42c2b5,_0x1ad294,_0x2d8c70,_0x4c41c8=!![]){const _0xcadc3=_0x1f429a;console['log'](_0x26c7ca+_0xcadc3(0x10f)),console[_0xcadc3(0xa1)](_0x26c7ca+_0xcadc3(0x172)+_0x2d8c70),console[_0xcadc3(0xa1)](_0x26c7ca+_0xcadc3(0xb9)+_0x4c41c8),console['log'](_0x26c7ca+'\x20\x20\x20securityMode:\x20'+_0x42c2b5['securityMode']);const _0x397882=_0x1ad294['clone'](),_0x3b44f2=await _0x397882[_0xcadc3(0x79)]();console[_0xcadc3(0xa1)](_0x26c7ca+_0xcadc3(0x167)+_0x3b44f2['length']+'\x20chars'),console[_0xcadc3(0xa1)](_0x26c7ca+'\x20\x20\x20Stripping\x20SRI\x20attributes...');const _0x253e77=_0x30b104(_0x3b44f2);console[_0xcadc3(0xa1)](_0x26c7ca+_0xcadc3(0x15f));let _0x54d1fb=_0x36f4a7(_0x42c2b5,_0x253e77);_0x2d8c70===_0xcadc3(0xc8)?(console[_0xcadc3(0xa1)](_0x26c7ca+_0xcadc3(0x7e)),_0x54d1fb=_0x454362(_0x42c2b5,_0x54d1fb)):console['log'](_0x26c7ca+_0xcadc3(0x6f));_0x4c41c8?(console['log'](_0x26c7ca+_0xcadc3(0x100)),_0x54d1fb=_0x1acea7(_0x42c2b5,_0x54d1fb)):console[_0xcadc3(0xa1)](_0x26c7ca+'\x20\x20\x20Skipping\x20runtime\x20bootstrap\x20injection');console[_0xcadc3(0xa1)](_0x26c7ca+_0xcadc3(0x19e)+_0x54d1fb[_0xcadc3(0x70)]+_0xcadc3(0x9a));const _0x59eab2=new Headers(_0x397882[_0xcadc3(0x140)]);_0x59eab2[_0xcadc3(0xca)](_0xcadc3(0x16d),_0xcadc3(0x91)),_0x59eab2[_0xcadc3(0xca)](_0xcadc3(0x19d),'rewritten'),_0x59eab2[_0xcadc3(0xca)](_0xcadc3(0x166),_0x2d8c70),_0x1dabb2(_0x59eab2);if(_0x42c2b5[_0xcadc3(0xe9)]!==_0xcadc3(0x8e)){console[_0xcadc3(0xa1)](_0x26c7ca+_0xcadc3(0x18b));const _0xc7cac7=_0x59eab2[_0xcadc3(0xe8)](_0xcadc3(0x189));_0x59eab2[_0xcadc3(0xca)](_0xcadc3(0x189),_0x299596(_0xc7cac7)),_0x59eab2[_0xcadc3(0x131)](_0xcadc3(0x74)),_0x59eab2[_0xcadc3(0x131)](_0xcadc3(0x16e)),_0x59eab2[_0xcadc3(0x131)](_0xcadc3(0xc9));}else console[_0xcadc3(0xa1)](_0x26c7ca+'\x20\x20\x20Custom\x20security\x20mode\x20-\x20preserving\x20original\x20CSP');return console[_0xcadc3(0xa1)](_0x26c7ca+_0xcadc3(0xa4)),new Response(_0x54d1fb,{'status':_0x397882['status'],'statusText':_0x397882[_0xcadc3(0xc5)],'headers':_0x59eab2});}var _0x275ac8=_0x1f429a(0xd1);console['log'](_0x275ac8+_0x1f429a(0x87)+new Date()[_0x1f429a(0xe0)]());var _0x505d42={'overlayPath':_0x1f429a(0xb7),'backendUrl':_0x1f429a(0x196),'overlayEnableViteHmr':![],'runtimeScriptPath':_0x1f429a(0xf8),'swPath':_0x1f429a(0x186)};console['log'](_0x275ac8+_0x1f429a(0x19f),JSON[_0x1f429a(0x104)](_0x505d42,null,0x2));var _0x10778f={'callbackBypass':[_0x1f429a(0x148)],'securityMode':_0x1f429a(0xae)},_0x3132b=null,_0x210bf2=null;function _0x596555(_0x3a1dd5,_0x43231a){const _0x4d10a2=_0x1f429a,_0x2cfb94=_0x3a1dd5[_0x4d10a2(0x197)][_0x4d10a2(0xe8)](_0x4d10a2(0x17c));if(_0x43231a&&_0x2cfb94){console[_0x4d10a2(0xa1)](_0x275ac8+'\x20Caching\x20enhancementUrl\x20from\x20navigation:\x20'+_0x2cfb94),_0x3132b=_0x2cfb94;try{_0x210bf2=new URL(_0x2cfb94);}catch{console['error'](_0x275ac8+'\x20Failed\x20to\x20parse\x20enhancementUrl:\x20'+_0x2cfb94),_0x210bf2=null;}}_0x43231a&&!_0x2cfb94&&(_0x3132b&&console['log'](_0x275ac8+_0x4d10a2(0x175)),_0x3132b=null,_0x210bf2=null);const _0x3aa23f=_0x2cfb94||_0x3132b||'',_0x104e52=_0x2cfb94?((()=>{if(_0x2cfb94===_0x3132b)return _0x210bf2;try{return new URL(_0x2cfb94);}catch{return null;}})()):_0x210bf2;return{..._0x505d42,..._0x10778f,'enhancementUrl':_0x3aa23f,'enhancementBase':_0x104e52,'callbackBypassNormalized':_0x10778f[_0x4d10a2(0x81)][_0x4d10a2(0xb1)](_0x3a6837=>_0x3a6837[_0x4d10a2(0x71)]('/')?_0x3a6837:'/'+_0x3a6837)};}function _0x3b4854(_0x3a4853,_0x27dd07,..._0x1a5d59){const _0x397a64=_0x1f429a;_0x3a4853===_0x397a64(0x152)?console[_0x397a64(0x152)](_0x275ac8,_0x27dd07,..._0x1a5d59):console[_0x397a64(0x183)](_0x275ac8,_0x27dd07,..._0x1a5d59);}self[_0x1f429a(0x75)](_0x1f429a(0x12d),_0x1eff06=>{const _0x71be9b=_0x1f429a;console[_0x71be9b(0xa1)](_0x275ac8+'\x20INSTALL\x20event'),_0x1eff06[_0x71be9b(0xde)](((async()=>{const _0x4699b0=_0x71be9b;console[_0x4699b0(0xa1)](_0x275ac8+'\x20Calling\x20skipWaiting()...'),await self['skipWaiting'](),console[_0x4699b0(0xa1)](_0x275ac8+_0x4699b0(0x11f));})()));}),self[_0x1f429a(0x75)](_0x1f429a(0x179),_0x1fcbd3=>{const _0x2a30e6=_0x1f429a;console[_0x2a30e6(0xa1)](_0x275ac8+_0x2a30e6(0xc3)),_0x1fcbd3['waitUntil'](((async()=>{const _0x34d333=_0x2a30e6;console['log'](_0x275ac8+_0x34d333(0x190)),await self[_0x34d333(0x97)][_0x34d333(0x76)](),console['log'](_0x275ac8+'\x20clients.claim()\x20complete');})()));}),self['addEventListener'](_0x1f429a(0xaa),_0x809059=>{const _0x745502=_0x1f429a,_0x20d428=_0x809059[_0x745502(0x8c)];console[_0x745502(0xa1)](_0x275ac8+_0x745502(0xc0),_0x20d428);if(!_0x20d428||typeof _0x20d428!==_0x745502(0xad)){console[_0x745502(0xa1)](_0x275ac8+_0x745502(0x125));return;}switch(_0x20d428[_0x745502(0xbf)]){case _0x5dbfc0:{console['log'](_0x275ac8+_0x745502(0xb3));const _0x51d006=_0x20d428[_0x745502(0xe7)];_0x10778f={'callbackBypass':_0x51d006['callbackBypass']??['/auth/callback'],'securityMode':_0x51d006['securityMode']??_0x745502(0xae)},console['log'](_0x275ac8+_0x745502(0x139),JSON[_0x745502(0x104)](_0x10778f,null,0x2));break;}case _0x4305ed:console[_0x745502(0xa1)](_0x275ac8+'\x20DISABLE\x20message\x20-\x20resetting\x20customer\x20config'),_0x10778f={'callbackBypass':['/auth/callback'],'securityMode':_0x745502(0xae)},_0x3132b=null,_0x210bf2=null,console[_0x745502(0xa1)](_0x275ac8+_0x745502(0xd8));break;default:console['log'](_0x275ac8+_0x745502(0x145)+_0x20d428['type']);break;}}),self[_0x1f429a(0x75)](_0x1f429a(0xec),_0x5bcebf=>{_0x5bcebf['respondWith'](_0x5e550e(_0x5bcebf));});async function _0x5e550e(_0xd99eff){const _0x54381e=_0x1f429a,{request:_0x1a4a50}=_0xd99eff,_0x488fbc=new URL(_0x1a4a50[_0x54381e(0x113)]),_0x440456=_0x1a4a50[_0x54381e(0x10c)]===_0x54381e(0x151),_0x3744ca=_0x440456||_0x488fbc[_0x54381e(0x173)]===self[_0x54381e(0x7d)][_0x54381e(0x173)];_0x3744ca&&(console[_0x54381e(0xa1)](_0x275ac8+_0x54381e(0x98)+_0x1a4a50[_0x54381e(0x135)]+'\x20'+_0x488fbc[_0x54381e(0x102)]+_0x488fbc[_0x54381e(0x72)]),console['log'](_0x275ac8+_0x54381e(0x158)+_0x1a4a50['mode']+_0x54381e(0x6b)+_0x1a4a50[_0x54381e(0xea)]));const _0x29444e=_0x596555(_0x488fbc,_0x440456);_0x3744ca&&console[_0x54381e(0xa1)](_0x275ac8+_0x54381e(0x90)+(_0x29444e[_0x54381e(0x17c)]||_0x54381e(0x83)));if(!_0x10bfb3(_0x1a4a50))return _0x3744ca&&console[_0x54381e(0xa1)](_0x275ac8+_0x54381e(0x198)),fetch(_0x1a4a50);if(_0x55d7f8(_0x29444e,_0x488fbc[_0x54381e(0x102)]))return _0x3744ca&&console[_0x54381e(0xa1)](_0x275ac8+_0x54381e(0x17a)+_0x488fbc[_0x54381e(0x102)]+_0x54381e(0x182)),fetch(_0x1a4a50);if(_0x440456)return console[_0x54381e(0xa1)](_0x275ac8+'\x20\x20\x20NAVIGATE\x20request\x20-\x20handling\x20navigation'),_0x4b66f8(_0x1a4a50,_0x29444e);if(!_0x45ed91(_0x29444e,_0x1a4a50,_0x488fbc))return _0x3744ca&&console[_0x54381e(0xa1)](_0x275ac8+_0x54381e(0xfa)),fetch(_0x1a4a50);console[_0x54381e(0xa1)](_0x275ac8+_0x54381e(0x124)+_0x488fbc['pathname']);const _0x950ed2=await _0x1945fd(_0x29444e,_0x1a4a50,_0x488fbc);if(_0x950ed2)return console[_0x54381e(0xa1)](_0x275ac8+_0x54381e(0xcb)+_0x488fbc[_0x54381e(0x102)]),_0x950ed2;return console[_0x54381e(0xa1)](_0x275ac8+_0x54381e(0xdb)+_0x488fbc['pathname']+'\x20-\x20falling\x20back\x20to\x20production'),fetch(_0x1a4a50);}async function _0x4b66f8(_0x344ef8,_0x175271){const _0x9a9f54=_0x1f429a,_0x1a0c84=new URL(_0x344ef8[_0x9a9f54(0x113)]);console['log'](_0x275ac8+_0x9a9f54(0x153)+_0x1a0c84[_0x9a9f54(0x102)]+_0x1a0c84[_0x9a9f54(0x72)]),console[_0x9a9f54(0xa1)](_0x275ac8+_0x9a9f54(0x13e)+(_0x175271[_0x9a9f54(0x17c)]||'none')),console[_0x9a9f54(0xa1)](_0x275ac8+_0x9a9f54(0xe6));const _0x5e7442=await fetch(_0x344ef8);console[_0x9a9f54(0xa1)](_0x275ac8+_0x9a9f54(0xdf)+_0x5e7442['status']+'\x20'+_0x5e7442[_0x9a9f54(0xc5)]),console[_0x9a9f54(0xa1)](_0x275ac8+_0x9a9f54(0xa3)+_0x5e7442[_0x9a9f54(0x140)][_0x9a9f54(0xe8)](_0x9a9f54(0xce)));if(!_0x1d1d4d(_0x5e7442))return console[_0x9a9f54(0xa1)](_0x275ac8+_0x9a9f54(0x192)),_0x5e7442;console[_0x9a9f54(0xa1)](_0x275ac8+_0x9a9f54(0xa6));const _0x43642a=_0x13925d(_0x5e7442,_0x9a9f54(0x14e));console[_0x9a9f54(0xa1)](_0x275ac8+_0x9a9f54(0x160));const _0x22d38b=await _0x458f08(_0x175271,_0x344ef8),_0x140d13=_0x22d38b?_0x9a9f54(0xc8):_0x9a9f54(0x177);console[_0x9a9f54(0xa1)](_0x275ac8+_0x9a9f54(0x128)+_0x140d13);const _0x3168fb=_0x22d38b??_0x43642a,_0x519b82=_0x140d13===_0x9a9f54(0xc8)||_0x1a0c84[_0x9a9f54(0x197)][_0x9a9f54(0xa8)](_0x9a9f54(0x17e))||_0x1a0c84[_0x9a9f54(0x197)]['has'](_0x9a9f54(0xc8))||_0x1a0c84['searchParams'][_0x9a9f54(0xa8)](_0x9a9f54(0x17c));console[_0x9a9f54(0xa1)](_0x275ac8+_0x9a9f54(0xb9)+_0x519b82);try{console[_0x9a9f54(0xa1)](_0x275ac8+_0x9a9f54(0xeb));const _0x1502f9=await _0xe4db64(_0x175271,_0x3168fb,_0x140d13,_0x519b82);return console['log'](_0x275ac8+_0x9a9f54(0x122)),_0x1502f9;}catch(_0x55bc48){return console[_0x9a9f54(0xef)](_0x275ac8+_0x9a9f54(0xe4),_0x55bc48),_0x3b4854('info',_0x9a9f54(0x18a),_0x55bc48),_0x3168fb;}}return _0x508592(_0x540050);})());
|
|
1
|
+
'use strict';function _0x2a14(){const _0x5a0885=['production','54MZoaRt','\x20\x20\x20Script\x20inserted\x20into\x20document','backendUrl','\x0a</body>','\x20Build\x20config:','message','\x5cs*=\x5cs*([\x27\x22])([^\x22\x27]+)\x5c1','\x20chars)','overlayPath','Failed\x20to\x20rewrite\x20document','\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket,\x20\x22__enhancePatched\x22,\x20{\x20value:\x20true\x20});','replace','join','419157htvMUF','install','\x20\x20\x20\x20}\x20catch\x20(error)\x20{','claim','cross-origin-opener-policy','Enhancement\x20document\x20CORS\x20blocked','type','[Enhance\x20SW\x20Document]','script-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20\x27unsafe-eval\x27\x20blob:\x20data:\x20https:\x20http:','prototype','/webpack-hmr','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Set\x20window.__enhanceInitialized\x20=\x20true\x22);','5285658FqwPoB','\x20\x20\x20\x20const\x20controller\x20=\x20Enhance.init(','\x20\x20\x20\x20\x20\x20//\x20Allow\x20proxying\x20for\x20specific\x20external\x20hosts','\x20\x20\x20Failed\x20to\x20rewrite\x20document:','push','\x20Unknown\x20message\x20type:\x20','/snowpack/hmr','hasOwnProperty','\x20\x20\x20Skipping\x20runtime\x20bootstrap\x20injection','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>','\x20\x20\x20Rewritten\x20HTML\x20length:\x20','\x20skipWaiting()\x20complete','\x20clients.claim()\x20complete','\x20\x20\x20\x20\x20\x20//\x20Always\x20use\x20enhancementBase\x20for\x20HMR\x20WebSocket\x20proxying','/@vite/client','Enhancement\x20miss\x20','get',',\x20type:\x20','/__parcel_hmr','object','\x20\x20\x20Production\x20response:\x20','permissive','\x20\x20\x20Document\x20source:\x20','\x20\x20\x20\x20window.WebSocket\x20=\x20EnhancedWebSocket;','securityMode','cache-control','enhancementUrl','config','\x20\x20\x20Response:\x20','\x0a</head>','\x20\x20\x20Fetch\x20error:','\x20\x20\x20Bootstrap\x20script\x20generated\x20(','content-security-policy','\x20\x20\x20Enhancement\x20HIT\x20for\x20','\x20\x20\x20Content-Type:\x20','status','value','18Adpota','endsWith','\x20\x20\x20Checking\x20for\x20enhancement\x20document...','pathname','/webpackhotmiddleware','\x20\x20\x20\x20\x20\x20if\x20(!value)\x20return\x20[];','\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)','\x20\x20\x20\x20\x20\x20for\x20(var\x20i\x20=\x200;\x20i\x20<\x20protoList.length;\x20i++)\x20{','\x20\x20\x20\x20\x20\x20\x20\x20var\x20resolved\x20=\x20url\x20instanceof\x20URL\x20?\x20url\x20:\x20new\x20URL(String(url),\x20window.location.href);','(async\x20()\x20=>\x20{','\x20\x20\x20Fetching\x20from\x20enhancement...','/webpack-hot-middleware','<script\x20data-enhance-hmr-bridge>','map','\x20\x20\x20Document\x20fetch\x20error:','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Enhance\x20controller\x20created:\x22,\x20controller);','\x20\x20\x20mode:\x20','</script>','worker','cors','\x20\x20\x20\x20const\x20runtimeModule\x20=\x20await\x20import(runtimePath);','content-length','/sockjs-node','\x20ACTIVATE\x20event','add','\x20\x20\x20Stripped\x20existing\x20bootstraps,\x20inserting\x20new\x20script...','\x20\x20\x20\x20\x20\x20}','search','\x20\x20\x20\x20}','custom','/__vite/client','\x20\x20\x20\x20Object.setPrototypeOf(EnhancedWebSocket,\x20originalWebSocket);','redirect','enhancement','https://','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(typeof\x20proto\x20===\x20\x22string\x22\x20&&\x20knownProtocols.has(proto.toLowerCase()))\x20{','\x20\x20\x20Not\x20OK\x20(','src','image','img-src\x20*\x20data:\x20blob:','\x20\x20\x20\x20\x20\x20try\x20{','method','\x20Clearing\x20cached\x20enhancementUrl\x20(navigation\x20without\x20param)','\x20Config\x20reset','clients','modulepreload','worker-src\x20\x27self\x27\x20blob:','enumerable','\x20\x20\x20Rewriting\x20entry\x20references...','\x20\x20\x20Attempting\x20to\x20fetch\x20from\x20enhancement:\x20','\x20\x20\x20\x20\x20\x20proxied.search\x20=\x20targetUrl.search;','\x20\x20\x20Enhancement\x20MISS\x20for\x20','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20skipping','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(shouldProxy(resolved,\x20protocols))\x20{','\x20\x20\x20source:\x20','\x20chars','Cannot\x20build\x20enhancement\x20URL\x20without\x20enhancementBase\x20configured','waitUntil','\x20DISABLE\x20message\x20-\x20resetting\x20customer\x20config','\x5cu003e','\x20\x20try\x20{','\x20Invalid\x20message\x20data\x20-\x20ignoring','connect-src\x20*','\x5cu003c','callbackBypassNormalized','\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','\x20\x20\x20Document\x20rewrite\x20complete','match','mode','some','destination','/webpack-dev-server','/__webpack_hmr','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Calling\x20Enhance.init()\x20with\x20options:\x22,\x20JSON.stringify(','vite-hmr','rewritten','\x20\x20}','toISOString','opaque','has','\x20\x20\x20\x20\x20\x20\x20\x20}','\x20\x20\x20Not\x20routing\x20asset\x20(not\x20routable\x20or\x20not\x20same-origin)','set-cookie2','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20returning\x20null','\x20\x20\x20\x20var\x20enhancementBase\x20=\x20new\x20URL(','\x20\x20\x20\x20\x20\x20proxied.hash\x20=\x20\x22\x22;','\x20handleNavigationRequest:\x20','includes','set','\x20\x20\x20\x20\x20\x20var\x20isAppHost\x20=\x20url.host\x20===\x20window.location.host;','\x20\x20\x20No\x20script\x20generated\x20(missing\x20runtimePath)\x20-\x20returning\x20html\x20unchanged','\x5c$&','\x20\x20\x20\x20var\x20knownPathHints\x20=\x20','statusText','x-enhance-routing','test','__esModule','fetch','script','\x20\x20\x20\x20\x20\x20','call','\x20\x20\x20Custom\x20security\x20mode\x20-\x20preserving\x20original\x20CSP','text','\x20\x20\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20No\x20Enhance.init\x20export\x20found!\x22);','default','runtimeScriptPath','content-type','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Starting\x20runtime\x20bootstrap...\x22);','delete','\x20fetchEnhancementDocument:\x20','full','\x20\x20\x20\x20if\x20(typeof\x20window\x20!==\x20\x22undefined\x22)\x20{','cross-origin-embedder-policy','getOwnPropertyNames','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhancement\x20document','\x20\x20\x20\x20\x20\x20if\x20(pathname\x20===\x20basePrefix\x20||\x20pathname.indexOf(basePrefix\x20+\x20\x22/\x22)\x20===\x200)\x20{','startsWith','\x20\x20\x20\x20var\x20knownProtocols\x20=\x20new\x20Set(','[Enhance\x20SW\x20Bootstrap]','\x20\x20\x20runtimeScriptPath:\x20','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Controller\x20attached\x20to\x20window.enhancePreview\x22);','addEventListener','\x20\x20\x20HTML\x20response\x20-\x20processing...','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20rewritten\x20=\x20buildProxiedUrl(resolved);','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(loweredPath.indexOf(knownPathHints[j])\x20!==\x20-1)\x20{','\x20\x20\x20Document\x20rewritten\x20successfully','\x20\x20\x20Enhancement\x20URL:\x20','\x20\x20\x20\x20const\x20Enhance\x20=\x20runtimeModule?.Enhance\x20??\x20runtimeModule?.default?.Enhance\x20??\x20runtimeModule?.default;','\x20FETCH:\x20','log','\x20Calling\x20skipWaiting()...','\x20fetchFromEnhancement:\x20','\x20\x20\x20Injecting\x20HMR\x20bridge\x20(enhancement\x20source)...','\x20\x20\x20\x20\x20\x20var\x20pathname\x20=\x20url.pathname\x20||\x20\x22/\x22;','host','include','1379464CXlDbX','\x20\x20\x20Stripping\x20SRI\x20attributes...','HEAD','\x20\x20\x20BYPASS:\x20','/vite/client','overlayEnableViteHmr','debug','\x20\x20\x20Enhancement\x20document\x20URL:\x20','\x20-\x20falling\x20back\x20to\x20production','defineProperty','overlay','\x20rewriteDocument()\x20called','\x20\x20\x20Fetching\x20enhancement\x20document...','enhancementBase','sharedworker','\x20\x20\x20\x20EnhancedWebSocket.prototype\x20=\x20originalWebSocket.prototype;','access-control-allow-credentials','\x20CONFIG\x20message\x20-\x20updating\x20customer\x20config','/__snowpack__','585413qFktcE','cross-origin-resource-policy','\x20\x20\x20shouldInjectOverlay:\x20','\x20shouldRouteAsset:\x20','\x20\x20\x20\x20\x20\x20var\x20protoList\x20=\x20toArray(protocols);','\x20\x20\x20\x20\x20\x20var\x20isExternalHost\x20=\x20externalHosts.includes(url.host);','toString','157385wUpHwH','})();','data','stringify','\x20\x20\x20\x20\x20\x20var\x20externalHosts\x20=\x20[\x22app.enhance.localhost:4450\x22,\x20\x22localhost:5173\x22];','x-enhance-document','toLowerCase','/auth/callback',',\x20null,\x202));','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(rewritten.toString(),\x20protocols);','\x20\x20\x20\x20\x20\x20window.__enhanceController\x20=\x20controller;','\x20\x20\x20Not\x20HTML\x20-\x20returning\x20production\x20response\x20as-is','\x20\x20\x20Original\x20HTML\x20length:\x20','\x20\x20\x20Rewriting\x20document...','27049iqbIQF','/__vite_ping','x-enhance-enhancement','follow','\x5c1[^>]*>\x5cs*</script>','stylesheet','\x20\x20\x20enhancementUrl\x20in\x20config:\x20','\x20\x20\x20\x20var\x20originalWebSocket\x20=\x20window.WebSocket;','error','\x20\x20}\x20catch\x20(error)\x20{','\x20Bootstrap\x20options:','GET','\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20Failed\x20to\x20bootstrap\x20runtime:\x22,\x20error);','style','\x20Calling\x20clients.claim()...','20SOpWpt','\x20\x20\x20\x20\x20\x20var\x20proxied\x20=\x20new\x20URL(enhancementBase);','\x20\x20\x20\x20var\x20shouldProxy\x20=\x20function(url,\x20protocols)\x20{','clone','length','href','\x20for\x20','\x20\x20\x20\x20};','\x20\x20\x20Applying\x20permissive\x20CSP...','\x20\x20\x20\x20\x20\x20//\x20ignore\x20if\x20unable\x20to\x20redefine','\x20\x20\x20\x20if\x20(!Enhance\x20||\x20typeof\x20Enhance.init\x20!==\x20\x22function\x22)\x20{','\x20\x20\x20\x20\x20\x20return;','\x20\x20\x20Skipping\x20HMR\x20bridge\x20(production\x20source)','771070TWfwTM','hit','\x20is\x20overlay\x20asset\x20-\x20not\x20routing','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Current\x20URL:\x22,\x20window.location.href);','enhance:disable','location','navigate','https://assets.enhancelabs.ai/overlay.js','info','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;','slice','http://','origin','url','skipWaiting',')\x20-\x20returning\x20null','searchParams','callbackBypass','headers','default-src\x20\x27self\x27\x20blob:\x20data:','x-enhance-document-source','$&\x0a','(function(){','https://api.enhancelabs.ai','4750wRYzPT'];_0x2a14=function(){return _0x5a0885;};return _0x2a14();}function _0x1396(_0x45c16d,_0x489fa1){_0x45c16d=_0x45c16d-0x84;const _0x2a14ad=_0x2a14();let _0x139650=_0x2a14ad[_0x45c16d];return _0x139650;}(function(_0x366ea1,_0x45bb1b){const _0x37116b=_0x1396,_0x8b0170=_0x366ea1();while(!![]){try{const _0x43b25f=-parseInt(_0x37116b(0x121))/0x1+parseInt(_0x37116b(0x152))/0x2+parseInt(_0x37116b(0x179))/0x3*(-parseInt(_0x37116b(0x145))/0x4)+-parseInt(_0x37116b(0x128))/0x5*(parseInt(_0x37116b(0x16c))/0x6)+parseInt(_0x37116b(0x185))/0x7+-parseInt(_0x37116b(0x10e))/0x8*(parseInt(_0x37116b(0x86))/0x9)+parseInt(_0x37116b(0x16a))/0xa*(parseInt(_0x37116b(0x136))/0xb);if(_0x43b25f===_0x45bb1b)break;else _0x8b0170['push'](_0x8b0170['shift']());}catch(_0x233eda){_0x8b0170['push'](_0x8b0170['shift']());}}}(_0x2a14,0x60cc7));var EnhanceSW=((()=>{const _0x33bfcb=_0x1396;var _0x1c47d1=Object[_0x33bfcb(0x117)],_0x577d7c=Object['getOwnPropertyDescriptor'],_0x3e8c1d=Object[_0x33bfcb(0xf7)],_0x4b1cc8=Object[_0x33bfcb(0x182)][_0x33bfcb(0x18c)],_0x1f8d4c=(_0x3a8ae6,_0x46ad84)=>{for(var _0x4bd15e in _0x46ad84)_0x1c47d1(_0x3a8ae6,_0x4bd15e,{'get':_0x46ad84[_0x4bd15e],'enumerable':!![]});},_0x4db26c=(_0x35a776,_0x4ab804,_0x5da4ce,_0x464919)=>{const _0x54bc08=_0x33bfcb;if(_0x4ab804&&typeof _0x4ab804===_0x54bc08(0x198)||typeof _0x4ab804==='function'){for(let _0x3bf309 of _0x3e8c1d(_0x4ab804))if(!_0x4b1cc8[_0x54bc08(0xea)](_0x35a776,_0x3bf309)&&_0x3bf309!==_0x5da4ce)_0x1c47d1(_0x35a776,_0x3bf309,{'get':()=>_0x4ab804[_0x3bf309],'enumerable':!(_0x464919=_0x577d7c(_0x4ab804,_0x3bf309))||_0x464919[_0x54bc08(0xb5)]});}return _0x35a776;},_0x3a7968=_0x4fcd4a=>_0x4db26c(_0x1c47d1({},_0x33bfcb(0xe6),{'value':!![]}),_0x4fcd4a),_0x44f851={};_0x1f8d4c(_0x44f851,{'log':()=>_0x5270b8});var _0x575cfe='enhance:configure',_0x572156=_0x33bfcb(0x156);function _0x43c0bb(_0x2b90fc){const _0x1def27=_0x33bfcb;if(!_0x2b90fc[_0x1def27(0xfa)]('/'))return'/'+_0x2b90fc;return _0x2b90fc;}function _0x17ead5(_0x564b48,_0x47d280){const _0x597173=_0x33bfcb,_0x1c6707=new URL(_0x564b48['toString']()),_0x7960c0=_0x1c6707['pathname'][_0x597173(0x87)]('/')?_0x1c6707[_0x597173(0x89)][_0x597173(0x15c)](0x0,-0x1):_0x1c6707[_0x597173(0x89)],_0x4b7511=_0x47d280[_0x597173(0x89)][_0x597173(0xfa)]('/')?_0x47d280[_0x597173(0x89)]:'/'+_0x47d280[_0x597173(0x89)];return _0x1c6707['pathname']=(''+_0x7960c0+_0x4b7511)[_0x597173(0x177)](/\/+/g,'/'),_0x1c6707[_0x597173(0xa1)]=_0x47d280[_0x597173(0xa1)],_0x1c6707['hash']='',_0x1c6707;}var _0x1b6ec8='[Enhance\x20SW\x20Routing]',_0x1d1ae1=new Set([_0x33bfcb(0xe8),_0x33bfcb(0x143),'font',_0x33bfcb(0xac),_0x33bfcb(0x98),_0x33bfcb(0x11c),'modulepreload']);function _0x3f9444(_0x2a9938){const _0x2ec82a=_0x33bfcb,_0x21fa0f=_0x2a9938[_0x2ec82a(0xaf)]===_0x2ec82a(0x141)||_0x2a9938[_0x2ec82a(0xaf)]===_0x2ec82a(0x110);return _0x21fa0f;}function _0x143ce1(_0x1f12eb,_0x139023){const _0x2ddf2f=_0x33bfcb,_0x5bb2bb=_0x43c0bb(_0x139023),_0x5c2ddc=_0x1f12eb[_0x2ddf2f(0xc6)][_0x2ddf2f(0xcb)](_0x408801=>_0x5bb2bb[_0x2ddf2f(0xfa)](_0x408801));return _0x5c2ddc;}function _0x3bacee(_0x2e095e,_0x101b8e,_0x1e112e){const _0x44a766=_0x33bfcb,_0x4c62e5=_0x101b8e['destination'];if(!_0x4c62e5||!_0x1d1ae1['has'](_0x4c62e5))return![];if(_0x4b76f4(_0x2e095e,_0x1e112e))return console[_0x44a766(0x107)](_0x1b6ec8+_0x44a766(0x124)+_0x1e112e[_0x44a766(0x89)]+_0x44a766(0x154)),![];if(_0x446dbc(_0x2e095e,_0x1e112e))return console[_0x44a766(0x107)](_0x1b6ec8+_0x44a766(0x124)+_0x1e112e[_0x44a766(0x89)]+'\x20is\x20runtime\x20asset\x20-\x20not\x20routing'),![];if(_0x1e112e[_0x44a766(0x15e)]!==self[_0x44a766(0x157)]['origin'])return![];return!![];}async function _0x43f761(_0x2bf417,_0x434f54,_0x2223d3){const _0x2fb87f=_0x33bfcb;console[_0x2fb87f(0x107)](_0x1b6ec8+_0x2fb87f(0x109)+_0x2223d3[_0x2fb87f(0x89)]);if(!_0x2bf417[_0x2fb87f(0x11b)])return console[_0x2fb87f(0x107)](_0x1b6ec8+_0x2fb87f(0xba)),null;const _0x1de483=_0x2a7b83(_0x2bf417,_0x2223d3);console[_0x2fb87f(0x107)](_0x1b6ec8+_0x2fb87f(0x104)+_0x1de483[_0x2fb87f(0x127)]());const _0x591366=new Headers(_0x434f54['headers']);_0x591366[_0x2fb87f(0xde)](_0x2fb87f(0xe4),_0x2fb87f(0xa7)),_0x591366[_0x2fb87f(0xf2)](_0x2fb87f(0x10c));const _0x25bb1f=new Request(_0x1de483['toString'](),{'method':_0x434f54[_0x2fb87f(0xaf)],'headers':_0x591366,'credentials':_0x2fb87f(0x10d),'redirect':_0x434f54[_0x2fb87f(0xa6)],'cache':'default','mode':_0x2fb87f(0x99)});try{console[_0x2fb87f(0x107)](_0x1b6ec8+_0x2fb87f(0x90));const _0x45c3fd=await fetch(_0x25bb1f);console[_0x2fb87f(0x107)](_0x1b6ec8+_0x2fb87f(0x1a1)+_0x45c3fd['status']+'\x20'+_0x45c3fd['statusText']+_0x2fb87f(0x196)+_0x45c3fd['type']);if(_0x45c3fd[_0x2fb87f(0x17f)]==='opaque')return console['log'](_0x1b6ec8+_0x2fb87f(0x8c)),_0x5270b8('info','Enhancement\x20CORS\x20blocked',_0x1de483[_0x2fb87f(0x127)]()),null;if(!_0x45c3fd['ok'])return console[_0x2fb87f(0x107)](_0x1b6ec8+_0x2fb87f(0xaa)+_0x45c3fd[_0x2fb87f(0x84)]+_0x2fb87f(0x161)),_0x5270b8(_0x2fb87f(0x114),_0x2fb87f(0x194)+_0x45c3fd[_0x2fb87f(0x84)]+_0x2fb87f(0x14b)+_0x1de483['pathname']),null;return console[_0x2fb87f(0x107)](_0x1b6ec8+'\x20\x20\x20SUCCESS\x20-\x20returning\x20enhanced\x20response'),_0x29f213(_0x45c3fd,_0x434f54[_0x2fb87f(0xaf)]);}catch(_0x29aaa3){return console['error'](_0x1b6ec8+_0x2fb87f(0x1a3),_0x29aaa3),_0x5270b8('info','Enhancement\x20fetch\x20failed',_0x29aaa3),null;}}async function _0x4b0554(_0x26e452,_0x3e3658){const _0x3e1d91=_0x33bfcb,_0xdb454e=new URL(_0x3e3658['url']);console[_0x3e1d91(0x107)](_0x1b6ec8+_0x3e1d91(0xf3)+_0xdb454e[_0x3e1d91(0x89)]+_0xdb454e[_0x3e1d91(0xa1)]);if(!_0x26e452[_0x3e1d91(0x11b)])return console[_0x3e1d91(0x107)](_0x1b6ec8+_0x3e1d91(0xd9)),null;const _0x70c161=_0x2a7b83(_0x26e452,_0xdb454e);console[_0x3e1d91(0x107)](_0x1b6ec8+_0x3e1d91(0x115)+_0x70c161[_0x3e1d91(0x127)]());const _0x30f165=new Headers(_0x3e3658[_0x3e1d91(0x164)]);_0x30f165['set'](_0x3e1d91(0xe4),'enhancement-document'),_0x30f165[_0x3e1d91(0xf2)](_0x3e1d91(0x10c)),_0x30f165[_0x3e1d91(0xf2)](_0x3e1d91(0x9b));const _0x226773=new Request(_0x70c161[_0x3e1d91(0x127)](),{'method':_0x3e1d91(0x141),'headers':_0x30f165,'credentials':_0x3e1d91(0x10d),'redirect':_0x3e1d91(0x139),'cache':_0x3e1d91(0xee),'mode':'cors'});try{console[_0x3e1d91(0x107)](_0x1b6ec8+_0x3e1d91(0x11a));const _0xa167e8=await fetch(_0x226773);console[_0x3e1d91(0x107)](_0x1b6ec8+_0x3e1d91(0x1a1)+_0xa167e8[_0x3e1d91(0x84)]+'\x20'+_0xa167e8['statusText']+_0x3e1d91(0x196)+_0xa167e8[_0x3e1d91(0x17f)]),console['log'](_0x1b6ec8+_0x3e1d91(0x1a7)+_0xa167e8[_0x3e1d91(0x164)][_0x3e1d91(0x195)]('content-type'));if(_0xa167e8[_0x3e1d91(0x17f)]===_0x3e1d91(0xd4))return console[_0x3e1d91(0x107)](_0x1b6ec8+_0x3e1d91(0x8c)),_0x5270b8(_0x3e1d91(0x15a),_0x3e1d91(0x17e),_0x70c161['toString']()),null;if(!_0xa167e8['ok'])return console['log'](_0x1b6ec8+_0x3e1d91(0xaa)+_0xa167e8['status']+')\x20-\x20returning\x20null'),_0x5270b8(_0x3e1d91(0x114),'Enhancement\x20document\x20miss\x20'+_0xa167e8[_0x3e1d91(0x84)]+_0x3e1d91(0x14b)+_0x70c161['pathname']),null;if(!_0x23a7c4(_0xa167e8))return console[_0x3e1d91(0x107)](_0x1b6ec8+'\x20\x20\x20Not\x20HTML\x20response\x20-\x20returning\x20null'),null;return console[_0x3e1d91(0x107)](_0x1b6ec8+_0x3e1d91(0xf8)),_0x29f213(_0xa167e8,_0x3e1d91(0x141));}catch(_0x38d58f){return console[_0x3e1d91(0x13e)](_0x1b6ec8+_0x3e1d91(0x94),_0x38d58f),_0x5270b8(_0x3e1d91(0x15a),'Enhancement\x20document\x20fetch\x20failed',_0x38d58f),null;}}function _0x2a7b83(_0x26cf4d,_0x17c813){const _0x236fb0=_0x33bfcb;if(!_0x26cf4d['enhancementBase'])throw new Error(_0x236fb0(0xbe));return _0x17ead5(_0x26cf4d[_0x236fb0(0x11b)],_0x17c813);}function _0x29f213(_0x321762,_0x4b2ecd){const _0x3994fc=_0x33bfcb,_0xef6a9e=_0x321762['clone'](),_0x5d69c9=new Headers(_0xef6a9e[_0x3994fc(0x164)]);_0x5d69c9['delete']('access-control-allow-origin'),_0x5d69c9[_0x3994fc(0xf2)](_0x3994fc(0x11e)),_0x5d69c9[_0x3994fc(0xf2)]('access-control-expose-headers'),_0x5d69c9['set'](_0x3994fc(0x138),_0x3994fc(0x153)),_0x287c6f(_0x5d69c9);const _0x37a16=_0x4b2ecd===_0x3994fc(0x110)?null:_0xef6a9e['body'];return new Response(_0x37a16,{'status':_0xef6a9e['status'],'statusText':_0xef6a9e[_0x3994fc(0xe3)],'headers':_0x5d69c9});}function _0x23a7c4(_0x48bda6){const _0x15b28c=_0x33bfcb,_0x6dc085=_0x48bda6[_0x15b28c(0x164)][_0x15b28c(0x195)](_0x15b28c(0xf0));return _0x6dc085!=null&&_0x6dc085[_0x15b28c(0xdd)]('text/html');}function _0x4b76f4(_0x4730d7,_0x6bb90c){const _0x3c5fcf=_0x33bfcb;return _0x1b3502(_0x6bb90c,_0x4730d7[_0x3c5fcf(0x174)]);}function _0x446dbc(_0x419cf4,_0x2afde5){return _0x1e3fe1(_0x2afde5,_0x419cf4['runtimeScriptPath']);}function _0x1b3502(_0x4829e7,_0xa2c82b){const _0x4971d0=_0x33bfcb;if(!_0xa2c82b)return![];if(_0xa2c82b['startsWith'](_0x4971d0(0x15d))||_0xa2c82b[_0x4971d0(0xfa)](_0x4971d0(0xa8)))return _0x4829e7[_0x4971d0(0x14a)]===_0xa2c82b;const _0x152f30=_0x2a1c1c(_0xa2c82b);if(!_0x152f30)return![];const _0x4872f8=''+_0x4829e7[_0x4971d0(0x89)]+_0x4829e7[_0x4971d0(0xa1)];if(_0x4872f8===_0x152f30)return!![];if(_0x4829e7[_0x4971d0(0xa1)]==='?import')return _0x4829e7[_0x4971d0(0x89)]===_0x152f30;return![];}function _0x1e3fe1(_0x3ab8e1,_0x40a8dc){const _0xcdfe3e=_0x33bfcb;if(!_0x40a8dc)return![];if(_0x40a8dc[_0xcdfe3e(0xfa)](_0xcdfe3e(0x15d))||_0x40a8dc['startsWith']('https://'))return _0x3ab8e1['href']===_0x40a8dc;const _0x5ee942=_0x2a1c1c(_0x40a8dc);if(!_0x5ee942)return![];const _0x59b13a=''+_0x3ab8e1['pathname']+_0x3ab8e1[_0xcdfe3e(0xa1)];return _0x59b13a===_0x5ee942;}function _0x2a1c1c(_0x7dea08){const _0x3ce010=_0x33bfcb;if(!_0x7dea08)return _0x7dea08;if(_0x7dea08[_0x3ce010(0xfa)]('http://')||_0x7dea08[_0x3ce010(0xfa)](_0x3ce010(0xa8)))return _0x7dea08;const _0x3b19a2=_0x7dea08[_0x3ce010(0x177)](/^\.\//,'');if(_0x3b19a2['startsWith']('/'))return _0x3b19a2;return'/'+_0x3b19a2;}function _0x287c6f(_0x4aa86f){const _0x56d527=_0x33bfcb;_0x4aa86f[_0x56d527(0xf2)]('set-cookie'),_0x4aa86f[_0x56d527(0xf2)](_0x56d527(0xd8));}function _0x123018(_0x3d1b77){const _0x1e3eeb=_0x33bfcb,_0x5dc8d2=[_0x1e3eeb(0x165),_0x1e3eeb(0x181),'style-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20blob:\x20data:\x20https:\x20http:',_0x1e3eeb(0xad),'font-src\x20*\x20data:',_0x1e3eeb(0xc4),'media-src\x20*\x20data:\x20blob:',_0x1e3eeb(0xb4),'object-src\x20\x27none\x27'],_0x134b32=_0x64150a(_0x3d1b77);return _0x134b32&&_0x5dc8d2[_0x1e3eeb(0x189)](_0x134b32),_0x5dc8d2['join'](';\x20');}function _0x53cd3a(_0x2ed73b){const _0x6c753f=_0x33bfcb;_0x2ed73b[_0x6c753f(0xf2)]('set-cookie'),_0x2ed73b[_0x6c753f(0xf2)](_0x6c753f(0xd8));}function _0x64150a(_0xe96ea0){const _0x39a7ab=_0x33bfcb;if(!_0xe96ea0)return null;const _0x50c24d=_0xe96ea0[_0x39a7ab(0xc9)](/frame-ancestors\s+([^;]+)/i);if(!_0x50c24d)return null;return'frame-ancestors\x20'+_0x50c24d[0x1]['trim']();}function _0x34314c(_0x1c6999,_0x4ff172){const _0x1ddf0c=_0x33bfcb;if(/<head[^>]*>/i['test'](_0x1c6999)){const _0x1039ca=_0x1c6999[_0x1ddf0c(0xc9)](/<head[^>]*>/i);if(_0x1039ca){const _0x42b1af=_0x1039ca[0x0];return _0x1c6999[_0x1ddf0c(0x177)](_0x42b1af,_0x42b1af+'\x0a'+_0x4ff172);}}if(/<\/head>/i[_0x1ddf0c(0xe5)](_0x1c6999))return _0x1c6999[_0x1ddf0c(0x177)](/<\/head>/i,_0x4ff172+_0x1ddf0c(0x1a2));if(/<body\b[^>]*>/i[_0x1ddf0c(0xe5)](_0x1c6999))return _0x1c6999[_0x1ddf0c(0x177)](/<body\b[^>]*>/i,_0x1ddf0c(0x167)+_0x4ff172);if(/<\/body>/i[_0x1ddf0c(0xe5)](_0x1c6999))return _0x1c6999[_0x1ddf0c(0x177)](/<\/body>/i,_0x4ff172+_0x1ddf0c(0x16f));return _0x4ff172+'\x0a'+_0x1c6999;}var _0x4a6bae=[_0x33bfcb(0xd0)],_0x4f9fc4=[_0x33bfcb(0x193),_0x33bfcb(0xa4),_0x33bfcb(0x112),_0x33bfcb(0x137),_0x33bfcb(0x9c),_0x33bfcb(0xcd),_0x33bfcb(0x183),_0x33bfcb(0x8a),_0x33bfcb(0x91),_0x33bfcb(0xce),'/_next/webpack-hmr','/parcel-hmr',_0x33bfcb(0x197),_0x33bfcb(0x120),_0x33bfcb(0x18b)];function _0x2a036c(_0xc0ca5b,_0x57625e){const _0x43239e=_0x462c8e(_0xc0ca5b);if(!_0x43239e)return _0x57625e;return _0x34314c(_0x57625e,_0x43239e);}function _0x462c8e(_0x11652d){const _0xe94eac=_0x33bfcb;if(!_0x11652d['enhancementBase'])return null;const _0x25565f=_0x11652d[_0xe94eac(0x11b)]['toString'](),_0x25e611=_0x30e7e1(_0x4a6bae),_0x9d5eab=_0x30e7e1(_0x4f9fc4),_0x44d79c=[_0xe94eac(0x92),_0xe94eac(0x168),_0xe94eac(0xc2),_0xe94eac(0xda)+JSON[_0xe94eac(0x12b)](_0x25565f)+');',_0xe94eac(0x13d),'\x20\x20\x20\x20if\x20(!originalWebSocket\x20||\x20originalWebSocket.__enhancePatched)\x20{',_0xe94eac(0x150),'\x20\x20\x20\x20}',_0xe94eac(0xfb)+JSON['stringify'](_0x25e611)+');',_0xe94eac(0xe2)+JSON[_0xe94eac(0x12b)](_0x9d5eab)+';','\x20\x20\x20\x20var\x20basePrefix\x20=\x20\x22/__sbx__\x22;','\x20\x20\x20\x20var\x20toArray\x20=\x20function(value)\x20{',_0xe94eac(0x8b),'\x20\x20\x20\x20\x20\x20return\x20Array.isArray(value)\x20?\x20value\x20:\x20[value];','\x20\x20\x20\x20};',_0xe94eac(0x147),_0xe94eac(0x187),_0xe94eac(0x12c),_0xe94eac(0x126),_0xe94eac(0xdf),'\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20\x20\x20if\x20(!isExternalHost\x20&&\x20!isAppHost)\x20return\x20false;',_0xe94eac(0xe9),_0xe94eac(0x10b),_0xe94eac(0xf9),'\x20\x20\x20\x20\x20\x20\x20\x20return\x20false;','\x20\x20\x20\x20\x20\x20}',_0xe94eac(0x125),_0xe94eac(0x8d),'\x20\x20\x20\x20\x20\x20\x20\x20var\x20proto\x20=\x20protoList[i];',_0xe94eac(0xa9),'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;',_0xe94eac(0xd6),_0xe94eac(0xa0),'\x20\x20\x20\x20\x20\x20var\x20loweredPath\x20=\x20pathname.toLowerCase();','\x20\x20\x20\x20\x20\x20for\x20(var\x20j\x20=\x200;\x20j\x20<\x20knownPathHints.length;\x20j++)\x20{',_0xe94eac(0x102),_0xe94eac(0x15b),_0xe94eac(0xd6),'\x20\x20\x20\x20\x20\x20}','\x20\x20\x20\x20\x20\x20return\x20false;',_0xe94eac(0x14c),'\x20\x20\x20\x20var\x20buildProxiedUrl\x20=\x20function(targetUrl)\x20{',_0xe94eac(0x192),_0xe94eac(0x146),_0xe94eac(0xb8),_0xe94eac(0xdb),'\x20\x20\x20\x20\x20\x20return\x20proxied;',_0xe94eac(0x14c),'\x20\x20\x20\x20var\x20EnhancedWebSocket\x20=\x20function(url,\x20protocols)\x20{',_0xe94eac(0xae),_0xe94eac(0x8e),_0xe94eac(0xbb),_0xe94eac(0x101),_0xe94eac(0x131),_0xe94eac(0xd6),'\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{','\x20\x20\x20\x20\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20fallback\x22,\x20error);','\x20\x20\x20\x20\x20\x20}','\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(url,\x20protocols);',_0xe94eac(0x14c),'\x20\x20\x20\x20Object.assign(EnhancedWebSocket,\x20originalWebSocket);',_0xe94eac(0x11d),_0xe94eac(0xa5),'\x20\x20\x20\x20try\x20{','\x20\x20\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket.prototype,\x20\x22constructor\x22,\x20{\x20value:\x20EnhancedWebSocket\x20});',_0xe94eac(0x17b),_0xe94eac(0x14e),_0xe94eac(0xa2),_0xe94eac(0x176),_0xe94eac(0x19c),_0xe94eac(0x13f),'\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20unavailable\x22,\x20error);',_0xe94eac(0xd2),'})();',_0xe94eac(0x97)];return _0x44d79c[_0xe94eac(0x178)]('\x0a');}function _0x30e7e1(_0x2321c6){const _0x3a4142=_0x33bfcb,_0x17c5da=new Set(),_0x5de596=[];for(const _0x1825a9 of _0x2321c6){const _0x203b40=_0x1825a9[_0x3a4142(0x12e)]();if(_0x17c5da[_0x3a4142(0xd5)](_0x203b40))continue;_0x17c5da[_0x3a4142(0x9e)](_0x203b40),_0x5de596[_0x3a4142(0x189)](_0x203b40);}return _0x5de596;}var _0x7b5543=_0x33bfcb(0xfc);function _0x47df6a(_0x1151bf,_0x47dc17){const _0x3aa881=_0x33bfcb;console[_0x3aa881(0x107)](_0x7b5543+'\x20injectRuntimeBootstrap()\x20called'),console[_0x3aa881(0x107)](_0x7b5543+_0x3aa881(0xfd)+_0x1151bf[_0x3aa881(0xef)]),console[_0x3aa881(0x107)](_0x7b5543+'\x20\x20\x20overlayPath:\x20'+_0x1151bf[_0x3aa881(0x174)]);const _0x1c406a=_0x3fb87c(_0x1151bf);if(!_0x1c406a)return console[_0x3aa881(0x107)](_0x7b5543+_0x3aa881(0xe0)),_0x47dc17;console[_0x3aa881(0x107)](_0x7b5543+_0x3aa881(0x1a4)+_0x1c406a[_0x3aa881(0x149)]+_0x3aa881(0x173));const _0x11d9c6=_0x50a02f(_0x47dc17,_0x1151bf[_0x3aa881(0xef)]);console[_0x3aa881(0x107)](_0x7b5543+_0x3aa881(0x9f));const _0x1ace48=_0x34314c(_0x11d9c6,_0x1c406a);return console[_0x3aa881(0x107)](_0x7b5543+_0x3aa881(0x16d)),_0x1ace48;}function _0x3fb87c(_0x4109ef){const _0x2da8d9=_0x33bfcb,_0x2a9e7e=_0x4109ef[_0x2da8d9(0xef)];if(!_0x2a9e7e)return console[_0x2da8d9(0x107)](_0x7b5543+'\x20buildRuntimeBootstrapScript:\x20no\x20runtimePath\x20-\x20returning\x20null'),null;const _0x3d3397=_0x5b0d9d(_0x4109ef);console[_0x2da8d9(0x107)](_0x7b5543+_0x2da8d9(0x140),JSON[_0x2da8d9(0x12b)](_0x3d3397,null,0x2));const _0x2474dd=_0x39324a(_0x3d3397),_0x2846f0=JSON['stringify'](_0x2a9e7e),_0x2b8781=[_0x2da8d9(0x18e),_0x2da8d9(0x8f),'\x20\x20try\x20{','\x20\x20\x20\x20const\x20runtimePath\x20=\x20'+_0x2846f0+';',_0x2da8d9(0xf1),'\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20path:\x22,\x20runtimePath);',_0x2da8d9(0x155),_0x2da8d9(0x9a),'\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20module\x20loaded:\x22,\x20Object.keys(runtimeModule));',_0x2da8d9(0x105),_0x2da8d9(0x14f),_0x2da8d9(0xed),'\x20\x20\x20\x20\x20\x20return;',_0x2da8d9(0xa2),_0x2da8d9(0xcf)+_0x2474dd+_0x2da8d9(0x130),_0x2da8d9(0x186)+_0x2474dd+');',_0x2da8d9(0x95),_0x2da8d9(0xf5),'\x20\x20\x20\x20\x20\x20window.enhancePreview\x20=\x20controller;',_0x2da8d9(0xfe),_0x2da8d9(0xc7),'\x20\x20\x20\x20\x20\x20window.__enhanceInitialized\x20=\x20true;',_0x2da8d9(0x132),_0x2da8d9(0x184),_0x2da8d9(0xa2),'\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Bootstrap\x20complete\x22);',_0x2da8d9(0x13f),_0x2da8d9(0x142),'\x20\x20}',_0x2da8d9(0x129),_0x2da8d9(0x97)];return _0x2b8781[_0x2da8d9(0x178)]('\x0a');}function _0x5b0d9d(_0x345d00){const _0x6d7694=_0x33bfcb,_0x3b8ff0={'callbackBypass':_0x345d00[_0x6d7694(0x163)],'__development':{'enableOverlayHmr':_0x345d00[_0x6d7694(0x113)],'overlayPath':_0x345d00[_0x6d7694(0x174)],'security':_0x345d00[_0x6d7694(0x19d)],'backendUrl':_0x345d00[_0x6d7694(0x16e)]}};return _0x3b8ff0;}function _0x39324a(_0x208fb9){const _0x1b2e90=_0x33bfcb;return JSON[_0x1b2e90(0x12b)](_0x208fb9)[_0x1b2e90(0x177)](/</g,_0x1b2e90(0xc5))[_0x1b2e90(0x177)](/>/g,_0x1b2e90(0xc1));}function _0x50a02f(_0x275ce6,_0xd5ebf4){const _0x4264e6=_0x33bfcb,_0x532cc9=/<script\b[^>]*data-enhance-runtime-bootstrap[^>]*>[\s\S]*?<\/script>/gi;let _0x2fbd04=_0x275ce6[_0x4264e6(0x177)](_0x532cc9,'');if(_0xd5ebf4){const _0x14a784=_0x153981(_0xd5ebf4),_0x3308e8=new RegExp('<script\x5cb[^>]*src\x5cs*=\x5cs*([\x27\x22])'+_0x14a784+_0x4264e6(0x13a),'gi');_0x2fbd04=_0x2fbd04['replace'](_0x3308e8,'');}return _0x2fbd04;}function _0x153981(_0x29f6c7){const _0x3732cf=_0x33bfcb;return _0x29f6c7[_0x3732cf(0x177)](/[-/\\^$*+?.()|[\]{}]/g,_0x3732cf(0xe1));}function _0x517ccb(_0x3471f1,_0x57e859){const _0x184edc=_0x33bfcb,_0x219c3c=_0xe4e9b6=>_0x17860e(_0x3471f1,_0xe4e9b6),_0x2e9a81=_0x476f10=>_0x177d0d(_0x3471f1,_0x476f10);return _0x57e859[_0x184edc(0x177)](/<script\b[^>]*>/gi,_0x219c3c)['replace'](/<link\b[^>]*>/gi,_0x2e9a81);}function _0x4023d8(_0x4a7361){const _0x4bd56b=_0x33bfcb;return _0x4a7361[_0x4bd56b(0x177)](/\s+integrity\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,'');}function _0x17860e(_0x369c80,_0x3f7b7e){const _0x5cea37=_0x33bfcb,_0x579300=_0x21d530(_0x3f7b7e,_0x5cea37(0xab));if(!_0x579300)return _0x3f7b7e;const _0x59d45e=_0x4a0761(_0x369c80,_0x579300[_0x5cea37(0x85)]);if(!_0x59d45e||_0x59d45e===_0x579300[_0x5cea37(0x85)])return _0x3f7b7e;const _0x2ac044=_0x579300[_0x5cea37(0xf4)]['replace'](_0x579300[_0x5cea37(0x85)],_0x59d45e);return _0x3f7b7e[_0x5cea37(0x177)](_0x579300[_0x5cea37(0xf4)],_0x2ac044);}function _0x177d0d(_0x27455d,_0x4bc03a){const _0x403eed=_0x33bfcb,_0x1e6234=_0x4bc03a[_0x403eed(0xc9)](/\brel\s*=\s*(['"])([^"']+)\1/i);if(!_0x1e6234)return _0x4bc03a;const _0x1657b6=_0x1e6234[0x2]['toLowerCase']();if(_0x1657b6!==_0x403eed(0x13b)&&_0x1657b6!==_0x403eed(0xb3))return _0x4bc03a;const _0x1e3dab=_0x21d530(_0x4bc03a,'href');if(!_0x1e3dab)return _0x4bc03a;const _0x33f2c1=_0x4a0761(_0x27455d,_0x1e3dab[_0x403eed(0x85)]);if(!_0x33f2c1||_0x33f2c1===_0x1e3dab[_0x403eed(0x85)])return _0x4bc03a;const _0x5b7d53=_0x1e3dab[_0x403eed(0xf4)]['replace'](_0x1e3dab[_0x403eed(0x85)],_0x33f2c1);return _0x4bc03a[_0x403eed(0x177)](_0x1e3dab['full'],_0x5b7d53);}function _0x21d530(_0x10671e,_0x53d36e){const _0x4e7a06=_0x33bfcb,_0x58f60b=new RegExp(_0x53d36e+_0x4e7a06(0x172),'i'),_0x150700=_0x10671e[_0x4e7a06(0xc9)](_0x58f60b);if(!_0x150700)return null;return{'full':_0x150700[0x0],'value':_0x150700[0x2]};}function _0x4a0761(_0x3f68d0,_0x32fdda){const _0x3f7855=_0x33bfcb,_0x176057=_0x5e089e(_0x32fdda);if(!_0x176057)return null;if(_0x176057[_0x3f7855(0x15e)]===self[_0x3f7855(0x157)][_0x3f7855(0x15e)])return''+_0x176057['pathname']+_0x176057[_0x3f7855(0xa1)];return null;}function _0x5e089e(_0xbca754){const _0x32e1f0=_0x33bfcb;try{return new URL(_0xbca754,self[_0x32e1f0(0x157)][_0x32e1f0(0x15e)]);}catch{return null;}}var _0x29e11c=_0x33bfcb(0x180);async function _0x3ac8fd(_0x13441f,_0x1d028,_0x2498bd,_0x3ac6ca=!![]){const _0x432e5b=_0x33bfcb;console[_0x432e5b(0x107)](_0x29e11c+_0x432e5b(0x119)),console[_0x432e5b(0x107)](_0x29e11c+_0x432e5b(0xbc)+_0x2498bd),console['log'](_0x29e11c+_0x432e5b(0x123)+_0x3ac6ca),console[_0x432e5b(0x107)](_0x29e11c+'\x20\x20\x20securityMode:\x20'+_0x13441f[_0x432e5b(0x19d)]);const _0x5b903b=_0x1d028[_0x432e5b(0x148)](),_0x2aec04=await _0x5b903b[_0x432e5b(0xec)]();console[_0x432e5b(0x107)](_0x29e11c+_0x432e5b(0x134)+_0x2aec04[_0x432e5b(0x149)]+_0x432e5b(0xbd)),console[_0x432e5b(0x107)](_0x29e11c+_0x432e5b(0x10f));const _0x41962c=_0x4023d8(_0x2aec04);console[_0x432e5b(0x107)](_0x29e11c+_0x432e5b(0xb6));let _0x58980b=_0x517ccb(_0x13441f,_0x41962c);_0x2498bd===_0x432e5b(0xa7)?(console['log'](_0x29e11c+_0x432e5b(0x10a)),_0x58980b=_0x2a036c(_0x13441f,_0x58980b)):console[_0x432e5b(0x107)](_0x29e11c+_0x432e5b(0x151));_0x3ac6ca?(console[_0x432e5b(0x107)](_0x29e11c+'\x20\x20\x20Injecting\x20runtime\x20bootstrap...'),_0x58980b=_0x47df6a(_0x13441f,_0x58980b)):console[_0x432e5b(0x107)](_0x29e11c+_0x432e5b(0x18d));console[_0x432e5b(0x107)](_0x29e11c+_0x432e5b(0x18f)+_0x58980b[_0x432e5b(0x149)]+_0x432e5b(0xbd));const _0x47fdae=new Headers(_0x5b903b[_0x432e5b(0x164)]);_0x47fdae['set'](_0x432e5b(0x19e),'no-store'),_0x47fdae[_0x432e5b(0xde)](_0x432e5b(0x12d),_0x432e5b(0xd1)),_0x47fdae[_0x432e5b(0xde)](_0x432e5b(0x166),_0x2498bd),_0x53cd3a(_0x47fdae);if(_0x13441f['securityMode']!==_0x432e5b(0xa3)){console['log'](_0x29e11c+_0x432e5b(0x14d));const _0x33803f=_0x47fdae[_0x432e5b(0x195)](_0x432e5b(0x1a5));_0x47fdae[_0x432e5b(0xde)](_0x432e5b(0x1a5),_0x123018(_0x33803f)),_0x47fdae['delete'](_0x432e5b(0x17d)),_0x47fdae[_0x432e5b(0xf2)](_0x432e5b(0xf6)),_0x47fdae['delete'](_0x432e5b(0x122));}else console['log'](_0x29e11c+_0x432e5b(0xeb));return console[_0x432e5b(0x107)](_0x29e11c+_0x432e5b(0xc8)),new Response(_0x58980b,{'status':_0x5b903b[_0x432e5b(0x84)],'statusText':_0x5b903b[_0x432e5b(0xe3)],'headers':_0x47fdae});}var _0x3afa00='[Enhance\x20SW]';console[_0x33bfcb(0x107)](_0x3afa00+'\x20Service\x20Worker\x20script\x20loaded\x20at\x20'+new Date()[_0x33bfcb(0xd3)]());var _0x14b9a3={'overlayPath':_0x33bfcb(0x159),'backendUrl':_0x33bfcb(0x169),'overlayEnableViteHmr':![],'runtimeScriptPath':'/assets/enhance-runtime.js','swPath':'/sw-enhance.js'};console[_0x33bfcb(0x107)](_0x3afa00+_0x33bfcb(0x170),JSON[_0x33bfcb(0x12b)](_0x14b9a3,null,0x2));var _0x1ded89={'callbackBypass':[_0x33bfcb(0x12f)],'securityMode':'permissive'},_0x22b908=null,_0x32c805=null;function _0x48dd47(_0x564121,_0x4de1d1){const _0x5deef7=_0x33bfcb,_0x462c99=_0x564121['searchParams'][_0x5deef7(0x195)](_0x5deef7(0x19f));if(_0x4de1d1&&_0x462c99){console[_0x5deef7(0x107)](_0x3afa00+'\x20Caching\x20enhancementUrl\x20from\x20navigation:\x20'+_0x462c99),_0x22b908=_0x462c99;try{_0x32c805=new URL(_0x462c99);}catch{console[_0x5deef7(0x13e)](_0x3afa00+'\x20Failed\x20to\x20parse\x20enhancementUrl:\x20'+_0x462c99),_0x32c805=null;}}_0x4de1d1&&!_0x462c99&&(_0x22b908&&console['log'](_0x3afa00+_0x5deef7(0xb0)),_0x22b908=null,_0x32c805=null);const _0x4f67c9=_0x462c99||_0x22b908||'',_0x1228a1=_0x462c99?((()=>{if(_0x462c99===_0x22b908)return _0x32c805;try{return new URL(_0x462c99);}catch{return null;}})()):_0x32c805;return{..._0x14b9a3,..._0x1ded89,'enhancementUrl':_0x4f67c9,'enhancementBase':_0x1228a1,'callbackBypassNormalized':_0x1ded89[_0x5deef7(0x163)][_0x5deef7(0x93)](_0x135e08=>_0x135e08[_0x5deef7(0xfa)]('/')?_0x135e08:'/'+_0x135e08)};}function _0x5270b8(_0x1e1905,_0x71e7b4,..._0x4973db){const _0x20ccc3=_0x33bfcb;_0x1e1905===_0x20ccc3(0x15a)?console[_0x20ccc3(0x15a)](_0x3afa00,_0x71e7b4,..._0x4973db):console[_0x20ccc3(0x114)](_0x3afa00,_0x71e7b4,..._0x4973db);}self[_0x33bfcb(0xff)](_0x33bfcb(0x17a),_0x5c8145=>{const _0x2c4ceb=_0x33bfcb;console[_0x2c4ceb(0x107)](_0x3afa00+'\x20INSTALL\x20event'),_0x5c8145[_0x2c4ceb(0xbf)](((async()=>{const _0x20c1d2=_0x2c4ceb;console[_0x20c1d2(0x107)](_0x3afa00+_0x20c1d2(0x108)),await self[_0x20c1d2(0x160)](),console['log'](_0x3afa00+_0x20c1d2(0x190));})()));}),self['addEventListener']('activate',_0x2e07ec=>{const _0x4468a6=_0x33bfcb;console[_0x4468a6(0x107)](_0x3afa00+_0x4468a6(0x9d)),_0x2e07ec[_0x4468a6(0xbf)](((async()=>{const _0x263fa4=_0x4468a6;console['log'](_0x3afa00+_0x263fa4(0x144)),await self[_0x263fa4(0xb2)][_0x263fa4(0x17c)](),console[_0x263fa4(0x107)](_0x3afa00+_0x263fa4(0x191));})()));}),self[_0x33bfcb(0xff)](_0x33bfcb(0x171),_0x365ee5=>{const _0x495dc1=_0x33bfcb,_0x437431=_0x365ee5[_0x495dc1(0x12a)];console[_0x495dc1(0x107)](_0x3afa00+'\x20MESSAGE\x20received:',_0x437431);if(!_0x437431||typeof _0x437431!==_0x495dc1(0x198)){console[_0x495dc1(0x107)](_0x3afa00+_0x495dc1(0xc3));return;}switch(_0x437431[_0x495dc1(0x17f)]){case _0x575cfe:{console[_0x495dc1(0x107)](_0x3afa00+_0x495dc1(0x11f));const _0x5f2c7b=_0x437431[_0x495dc1(0x1a0)];_0x1ded89={'callbackBypass':_0x5f2c7b[_0x495dc1(0x163)]??[_0x495dc1(0x12f)],'securityMode':_0x5f2c7b[_0x495dc1(0x19d)]??_0x495dc1(0x19a)},console[_0x495dc1(0x107)](_0x3afa00+'\x20Customer\x20config\x20updated:',JSON['stringify'](_0x1ded89,null,0x2));break;}case _0x572156:console[_0x495dc1(0x107)](_0x3afa00+_0x495dc1(0xc0)),_0x1ded89={'callbackBypass':[_0x495dc1(0x12f)],'securityMode':_0x495dc1(0x19a)},_0x22b908=null,_0x32c805=null,console['log'](_0x3afa00+_0x495dc1(0xb1));break;default:console['log'](_0x3afa00+_0x495dc1(0x18a)+_0x437431['type']);break;}}),self[_0x33bfcb(0xff)](_0x33bfcb(0xe7),_0x8aa6ed=>{_0x8aa6ed['respondWith'](_0x5f5dfc(_0x8aa6ed));});async function _0x5f5dfc(_0x1ec608){const _0x1adb65=_0x33bfcb,{request:_0x1aaa76}=_0x1ec608,_0x39ebf0=new URL(_0x1aaa76[_0x1adb65(0x15f)]),_0x3313d8=_0x1aaa76[_0x1adb65(0xca)]===_0x1adb65(0x158),_0x2c818d=_0x3313d8||_0x39ebf0[_0x1adb65(0x15e)]===self[_0x1adb65(0x157)]['origin'];_0x2c818d&&(console[_0x1adb65(0x107)](_0x3afa00+_0x1adb65(0x106)+_0x1aaa76['method']+'\x20'+_0x39ebf0[_0x1adb65(0x89)]+_0x39ebf0[_0x1adb65(0xa1)]),console[_0x1adb65(0x107)](_0x3afa00+_0x1adb65(0x96)+_0x1aaa76[_0x1adb65(0xca)]+',\x20destination:\x20'+_0x1aaa76[_0x1adb65(0xcc)]));const _0x289d93=_0x48dd47(_0x39ebf0,_0x3313d8);_0x2c818d&&console[_0x1adb65(0x107)](_0x3afa00+'\x20\x20\x20enhancementUrl:\x20'+(_0x289d93[_0x1adb65(0x19f)]||'none'));if(!_0x3f9444(_0x1aaa76))return _0x2c818d&&console[_0x1adb65(0x107)](_0x3afa00+'\x20\x20\x20Not\x20handling\x20(method\x20not\x20GET/HEAD)'),fetch(_0x1aaa76);if(_0x143ce1(_0x289d93,_0x39ebf0['pathname']))return _0x2c818d&&console[_0x1adb65(0x107)](_0x3afa00+_0x1adb65(0x111)+_0x39ebf0['pathname']+'\x20matches\x20callbackBypass'),fetch(_0x1aaa76);if(_0x3313d8)return console['log'](_0x3afa00+'\x20\x20\x20NAVIGATE\x20request\x20-\x20handling\x20navigation'),_0x5a2207(_0x1aaa76,_0x289d93);if(!_0x3bacee(_0x289d93,_0x1aaa76,_0x39ebf0))return _0x2c818d&&console[_0x1adb65(0x107)](_0x3afa00+_0x1adb65(0xd7)),fetch(_0x1aaa76);console[_0x1adb65(0x107)](_0x3afa00+_0x1adb65(0xb7)+_0x39ebf0[_0x1adb65(0x89)]);const _0x40bfd1=await _0x43f761(_0x289d93,_0x1aaa76,_0x39ebf0);if(_0x40bfd1)return console[_0x1adb65(0x107)](_0x3afa00+_0x1adb65(0x1a6)+_0x39ebf0[_0x1adb65(0x89)]),_0x40bfd1;return console['log'](_0x3afa00+_0x1adb65(0xb9)+_0x39ebf0[_0x1adb65(0x89)]+_0x1adb65(0x116)),fetch(_0x1aaa76);}async function _0x5a2207(_0x3818ee,_0x5d7b60){const _0x450f44=_0x33bfcb,_0x16145d=new URL(_0x3818ee[_0x450f44(0x15f)]);console[_0x450f44(0x107)](_0x3afa00+_0x450f44(0xdc)+_0x16145d[_0x450f44(0x89)]+_0x16145d['search']),console[_0x450f44(0x107)](_0x3afa00+_0x450f44(0x13c)+(_0x5d7b60[_0x450f44(0x19f)]||'none')),console[_0x450f44(0x107)](_0x3afa00+'\x20\x20\x20Fetching\x20production\x20response...');const _0x227360=await fetch(_0x3818ee);console[_0x450f44(0x107)](_0x3afa00+_0x450f44(0x199)+_0x227360[_0x450f44(0x84)]+'\x20'+_0x227360[_0x450f44(0xe3)]),console[_0x450f44(0x107)](_0x3afa00+'\x20\x20\x20Content-Type:\x20'+_0x227360[_0x450f44(0x164)]['get'](_0x450f44(0xf0)));if(!_0x23a7c4(_0x227360))return console[_0x450f44(0x107)](_0x3afa00+_0x450f44(0x133)),_0x227360;console[_0x450f44(0x107)](_0x3afa00+_0x450f44(0x100));const _0x43dc30=_0x29f213(_0x227360,_0x450f44(0x141));console['log'](_0x3afa00+_0x450f44(0x88));const _0xc1d49a=await _0x4b0554(_0x5d7b60,_0x3818ee),_0x20ceb3=_0xc1d49a?'enhancement':_0x450f44(0x16b);console['log'](_0x3afa00+_0x450f44(0x19b)+_0x20ceb3);const _0x1117bf=_0xc1d49a??_0x43dc30,_0x51beb4=_0x20ceb3===_0x450f44(0xa7)||_0x16145d[_0x450f44(0x162)][_0x450f44(0xd5)](_0x450f44(0x118))||_0x16145d[_0x450f44(0x162)][_0x450f44(0xd5)](_0x450f44(0xa7))||_0x16145d[_0x450f44(0x162)][_0x450f44(0xd5)](_0x450f44(0x19f));console[_0x450f44(0x107)](_0x3afa00+_0x450f44(0x123)+_0x51beb4);try{console['log'](_0x3afa00+_0x450f44(0x135));const _0x2d99d0=await _0x3ac8fd(_0x5d7b60,_0x1117bf,_0x20ceb3,_0x51beb4);return console[_0x450f44(0x107)](_0x3afa00+_0x450f44(0x103)),_0x2d99d0;}catch(_0x2d0167){return console[_0x450f44(0x13e)](_0x3afa00+_0x450f44(0x188),_0x2d0167),_0x5270b8(_0x450f44(0x15a),_0x450f44(0x175),_0x2d0167),_0x1117bf;}}return _0x3a7968(_0x44f851);})());
|
package/dist/vite/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var _0x183af7=_0x459f;(function(_0x10d2ca,_0xba1f87){var _0x3e07a2=_0x459f,_0x2fe9bf=_0x10d2ca();while(!![]){try{var _0x3cfd54=-parseInt(_0x3e07a2(0x1d3))/0x1+parseInt(_0x3e07a2(0x1d8))/0x2*(-parseInt(_0x3e07a2(0x1c7))/0x3)+parseInt(_0x3e07a2(0x1ce))/0x4+-parseInt(_0x3e07a2(0x1c4))/0x5+parseInt(_0x3e07a2(0x1d4))/0x6+-parseInt(_0x3e07a2(0x1d2))/0x7+parseInt(_0x3e07a2(0x1d5))/0x8*(parseInt(_0x3e07a2(0x1c6))/0x9);if(_0x3cfd54===_0xba1f87)break;else _0x2fe9bf['push'](_0x2fe9bf['shift']());}catch(_0x170f86){_0x2fe9bf['push'](_0x2fe9bf['shift']());}}}(_0x1dde,0xc1a71));function _0x1dde(){var _0x14b72d=['\x22;\x0aEnhance.init(','utf-8','application/javascript','assets/enhance-runtime.js','middlewares','7296660JMDmUy','emitFile','6327kpEnPe','3AcNNHN','../assets/enhance-runtime.js','Content-Type','setHeader','/sw-enhance.js','/assets/enhance-runtime.js','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>\x0aimport\x20{\x20Enhance\x20}\x20from\x20\x22','3477908sffSdp','stringify','end','enhance-sandbox','9583910vdnDNV','190679tGhWNK','3916638AMHLqW','33848gMgWRu','use','../sw-enhance.js','1368602tvUOYT','asset','url','callbackBypass'];_0x1dde=function(){return _0x14b72d;};return _0x1dde();}function _0x459f(_0x1c3aae,_0x241db7){_0x1c3aae=_0x1c3aae-0x1bf;var _0x1dde6a=_0x1dde();var _0x459feb=_0x1dde6a[_0x1c3aae];return _0x459feb;}import{fileURLToPath}from'url';import{readFile}from'fs/promises';var runtimePath=fileURLToPath(new URL(_0x183af7(0x1c8),import.meta.url)),swPath=fileURLToPath(new URL(_0x183af7(0x1d7),import.meta.url)),RUNTIME_URL=_0x183af7(0x1cc),SW_URL=_0x183af7(0x1cb);function buildInitScript(_0x40519e){var _0x2e663b=_0x183af7;const _0xf5a888={'callbackBypass':_0x40519e[_0x2e663b(0x1db)],'__development':_0x40519e['__development']},_0x11cda3=JSON[_0x2e663b(0x1cf)](_0xf5a888);return _0x2e663b(0x1cd)+RUNTIME_URL+_0x2e663b(0x1bf)+_0x11cda3+');\x0a</script>';}var enhance=(_0x5e5102={})=>{var _0x359988=_0x183af7;let _0xb80394=null,_0x5a8f4e=null;async function _0x4e52ec(){var _0x1ec096=_0x459f;!_0xb80394&&(_0xb80394=await readFile(runtimePath,_0x1ec096(0x1c0))),!_0x5a8f4e&&(_0x5a8f4e=await readFile(swPath,_0x1ec096(0x1c0)));}return{'name':_0x359988(0x1d1),'configureServer'(_0x2270c4){var _0x48afd4=_0x359988;_0x2270c4[_0x48afd4(0x1c3)][_0x48afd4(0x1d6)](async(_0x28662c,_0x3d2dbd,_0x52a4b0)=>{var _0x4a522d=_0x48afd4;if(_0x28662c[_0x4a522d(0x1da)]===RUNTIME_URL||_0x28662c[_0x4a522d(0x1da)]===SW_URL){await _0x4e52ec(),_0x3d2dbd[_0x4a522d(0x1ca)]('Content-Type',_0x4a522d(0x1c1)),_0x3d2dbd[_0x4a522d(0x1d0)](_0x28662c[_0x4a522d(0x1da)]===RUNTIME_URL?_0xb80394:_0x5a8f4e);return;}_0x52a4b0();});},'configurePreviewServer'(_0x52a1e0){var _0x1f9861=_0x359988;_0x52a1e0[_0x1f9861(0x1c3)][_0x1f9861(0x1d6)](async(_0x367408,_0x1a4eae,_0x57aad2)=>{var _0x48a771=_0x1f9861;if(_0x367408[_0x48a771(0x1da)]===RUNTIME_URL||_0x367408[_0x48a771(0x1da)]===SW_URL){await _0x4e52ec(),_0x1a4eae['setHeader'](_0x48a771(0x1c9),'application/javascript'),_0x1a4eae[_0x48a771(0x1d0)](_0x367408[_0x48a771(0x1da)]===RUNTIME_URL?_0xb80394:_0x5a8f4e);return;}_0x57aad2();});},async 'generateBundle'(){var _0x44a9bf=_0x359988;await _0x4e52ec(),this[_0x44a9bf(0x1c5)]({'type':'asset','fileName':_0x44a9bf(0x1c2),'source':_0xb80394}),this['emitFile']({'type':_0x44a9bf(0x1d9),'fileName':'sw-enhance.js','source':_0x5a8f4e});},'transformIndexHtml'(_0x5ccf0d){const _0x5be706=buildInitScript(_0x5e5102);return _0x5ccf0d['replace'](/<head([^>]*)>/,'<head$1>'+_0x5be706);}};};export{enhance};
|