@enhance-eng/sandbox 0.3.21-beta.a1057ef → 0.3.21-dev.0fac791

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- const _0x2d96e4=_0x16ac;(function(_0x3b6916,_0x5b86a5){const _0x3cd9dd=_0x16ac,_0x3e7e71=_0x3b6916();while(!![]){try{const _0x208feb=-parseInt(_0x3cd9dd(0x9d))/0x1+parseInt(_0x3cd9dd(0xbc))/0x2+-parseInt(_0x3cd9dd(0xff))/0x3+parseInt(_0x3cd9dd(0xfe))/0x4+-parseInt(_0x3cd9dd(0xa6))/0x5*(-parseInt(_0x3cd9dd(0xe1))/0x6)+parseInt(_0x3cd9dd(0x10f))/0x7*(-parseInt(_0x3cd9dd(0xee))/0x8)+-parseInt(_0x3cd9dd(0x91))/0x9*(-parseInt(_0x3cd9dd(0x128))/0xa);if(_0x208feb===_0x5b86a5)break;else _0x3e7e71['push'](_0x3e7e71['shift']());}catch(_0x128da9){_0x3e7e71['push'](_0x3e7e71['shift']());}}}(_0x5845,0x58dbd));var DEFAULT_OVERLAY_PATH=!![]?_0x2d96e4(0x99):_0x2d96e4(0x99),DEFAULT_BACKEND_URL=!![]?_0x2d96e4(0xd3):_0x2d96e4(0xd3),DEFAULT_OVERLAY_HMR=!![]?![]:![];console[_0x2d96e4(0x10c)](_0x2d96e4(0x79),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x8900b6){const _0x2cc32e=_0x2d96e4;if(!_0x8900b6['publishableKey'])throw new Error(_0x2cc32e(0xe7));const _0x2aa07e=_0x8900b6[_0x2cc32e(0x118)]??{};return{'publishableKey':_0x8900b6[_0x2cc32e(0x86)],'callbackBypass':_0x8900b6[_0x2cc32e(0xab)]??[],'overlay':{'enabled':!![],'position':_0x2cc32e(0xa0),'enableViteHmr':_0x2aa07e[_0x2cc32e(0xfc)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x2cc32e(0xe2),'swPath':'/sw-enhance.js','overlayPath':_0x2aa07e[_0x2cc32e(0xcd)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x2cc32e(0xb3),'security':_0x2aa07e['security']??_0x2cc32e(0x119),'backendUrl':_0x2aa07e['backendUrl']??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x1be307=_0x2d96e4;try{const _0x44b034=new URLSearchParams(window['location'][_0x1be307(0xe6)]);return _0x44b034[_0x1be307(0x116)](_0x1be307(0x10b))?.[_0x1be307(0xea)]()||'';}catch{return'';}}var LOG_PREFIX='[Enhance\x20Overlay]',overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x586863){const _0x3397d3=_0x2d96e4;console[_0x3397d3(0x10c)](LOG_PREFIX+_0x3397d3(0xbb)),console[_0x3397d3(0x10c)](LOG_PREFIX+_0x3397d3(0xce)+_0x586863[_0x3397d3(0xcd)]),console['log'](LOG_PREFIX+_0x3397d3(0xa7)+_0x586863[_0x3397d3(0xd9)]),currentOptions=_0x586863[_0x3397d3(0xfd)],toggleHandler=_0x586863[_0x3397d3(0xc4)];if(overlayController){console[_0x3397d3(0x10c)](LOG_PREFIX+_0x3397d3(0xde)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x3397d3(0x10c)](LOG_PREFIX+_0x3397d3(0x7a)),overlayLoadPromise;console[_0x3397d3(0x10c)](LOG_PREFIX+_0x3397d3(0x101)),overlayLoadPromise=doLoadOverlay(_0x586863);try{await overlayLoadPromise,console[_0x3397d3(0x10c)](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0x503918){console[_0x3397d3(0xa4)](LOG_PREFIX+_0x3397d3(0x9e),_0x503918);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x55af9b){const _0x1d68b8=_0x2d96e4;console[_0x1d68b8(0x10c)](LOG_PREFIX+_0x1d68b8(0x77));if(typeof window===_0x1d68b8(0x94)){console[_0x1d68b8(0x10c)](LOG_PREFIX+_0x1d68b8(0x125));return;}if(window['__enhanceOverlay']){console[_0x1d68b8(0x10c)](LOG_PREFIX+_0x1d68b8(0xdc)),overlayController=window['__enhanceOverlay'];return;}console[_0x1d68b8(0x10c)](LOG_PREFIX+_0x1d68b8(0x113));try{_0x55af9b[_0x1d68b8(0xd9)]&&(console['log'](LOG_PREFIX+_0x1d68b8(0x7f)),await setupRemoteHMR(_0x55af9b['overlayPath']));console['log'](LOG_PREFIX+_0x1d68b8(0xc7)+_0x55af9b[_0x1d68b8(0xcd)]);const _0x4d3b7b=Date[_0x1d68b8(0xf5)](),_0x354179=await import(_0x55af9b['overlayPath']);console[_0x1d68b8(0x10c)](LOG_PREFIX+_0x1d68b8(0x111)+(Date[_0x1d68b8(0xf5)]()-_0x4d3b7b)+'ms'),console['log'](LOG_PREFIX+_0x1d68b8(0x107),Object['keys'](_0x354179));if(typeof _0x354179?.['createOverlay']!==_0x1d68b8(0x83)){console[_0x1d68b8(0xa4)](LOG_PREFIX+_0x1d68b8(0x104)),console[_0x1d68b8(0xa4)](LOG_PREFIX+_0x1d68b8(0x127),Object[_0x1d68b8(0xb2)](_0x354179));return;}console[_0x1d68b8(0x10c)](LOG_PREFIX+'\x20Calling\x20createOverlay()...');const _0x5b099a=_0x354179['createOverlay']();console[_0x1d68b8(0x10c)](LOG_PREFIX+_0x1d68b8(0xeb),_0x5b099a),overlayController=_0x5b099a,window[_0x1d68b8(0x11c)]=_0x5b099a,_0x5b099a[_0x1d68b8(0xc4)](_0x55af9b[_0x1d68b8(0xc4)]),console[_0x1d68b8(0x10c)](LOG_PREFIX+_0x1d68b8(0xb5)),console[_0x1d68b8(0x10c)](LOG_PREFIX+_0x1d68b8(0xec)),updateOverlay();}catch(_0x1578c0){console[_0x1d68b8(0xa4)](LOG_PREFIX+_0x1d68b8(0x76),_0x1578c0);}}function updateOverlay(){const _0x20ebbb=_0x2d96e4;console[_0x20ebbb(0x10c)](LOG_PREFIX+'\x20updateOverlay()\x20called'),console[_0x20ebbb(0x10c)](LOG_PREFIX+_0x20ebbb(0x132)+!!overlayController),console[_0x20ebbb(0x10c)](LOG_PREFIX+_0x20ebbb(0x12e)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x20ebbb(0x10c)](LOG_PREFIX+_0x20ebbb(0xd1));return;}const _0x56b048=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+'\x20Updating\x20overlay\x20with\x20state:',JSON[_0x20ebbb(0xc0)](_0x56b048,null,0x2)),overlayController['update'](_0x56b048),console[_0x20ebbb(0x10c)](LOG_PREFIX+_0x20ebbb(0x117));}function composeOverlayState(_0x587028){const _0x26bd49=_0x2d96e4,_0x9a52bd=getEnhancementId();return console[_0x26bd49(0x10c)](LOG_PREFIX+_0x26bd49(0x84)+_0x9a52bd),console[_0x26bd49(0x10c)](LOG_PREFIX+_0x26bd49(0x10d)+state[_0x26bd49(0xc5)]),console[_0x26bd49(0x10c)](LOG_PREFIX+_0x26bd49(0x12c)+state['controlled']),{'enhancementId':_0x9a52bd,'enabled':state[_0x26bd49(0xc5)],'controlled':state[_0x26bd49(0x8b)],'overlayPosition':_0x587028[_0x26bd49(0x72)][_0x26bd49(0xf9)],'securityMode':_0x587028[_0x26bd49(0x8a)],'backendBaseUrl':_0x587028[_0x26bd49(0x123)],'appError':state[_0x26bd49(0x105)]};}async function setupRemoteHMR(_0x307b87){const _0x46680c=_0x2d96e4;console[_0x46680c(0x10c)](LOG_PREFIX+_0x46680c(0xef)+_0x307b87);if(typeof window===_0x46680c(0x94))return;try{const _0x4a8382=new URL(_0x307b87,window[_0x46680c(0x9a)][_0x46680c(0xc6)]),_0x20f2d4=_0x4a8382['origin'];console[_0x46680c(0x10c)](LOG_PREFIX+'\x20Overlay\x20origin:\x20'+_0x20f2d4+',\x20page\x20origin:\x20'+window[_0x46680c(0x9a)][_0x46680c(0xc6)]);if(_0x20f2d4===window[_0x46680c(0x9a)][_0x46680c(0xc6)]){console[_0x46680c(0x10c)](LOG_PREFIX+_0x46680c(0xd5));return;}console[_0x46680c(0x10c)](LOG_PREFIX+'\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...'),await ensureReactRefreshPreamble(_0x20f2d4),await ensureViteClient(_0x20f2d4),console['log'](LOG_PREFIX+_0x46680c(0xb6));}catch(_0x4e7a99){console[_0x46680c(0xba)](LOG_PREFIX+'\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):',_0x4e7a99);}}async function ensureReactRefreshPreamble(_0x5bbb17){const _0x516918=_0x2d96e4;window[_0x516918(0xe9)]??(window[_0x516918(0xe9)]=new Set());if(window['__enhanceReactRefreshInstalledOrigins']['has'](_0x5bbb17)){console[_0x516918(0x10c)](LOG_PREFIX+'\x20React\x20Refresh\x20already\x20installed\x20for\x20'+_0x5bbb17);return;}console[_0x516918(0x10c)](LOG_PREFIX+'\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20'+_0x5bbb17+_0x516918(0xe0));const _0xdfd3f8=await import(_0x5bbb17+'/@react-refresh'),_0x3a21f2=_0xdfd3f8&&typeof _0xdfd3f8===_0x516918(0xbf)&&_0x516918(0x120)in _0xdfd3f8?_0xdfd3f8[_0x516918(0x120)]:_0xdfd3f8;if(!isRefreshRuntime(_0x3a21f2)){console[_0x516918(0xba)](LOG_PREFIX+_0x516918(0xa2));return;}_0x3a21f2[_0x516918(0x93)](window),window[_0x516918(0xbd)]=()=>{},window[_0x516918(0xf2)]=()=>_0x46170b=>_0x46170b,window[_0x516918(0x11f)]=!![],window[_0x516918(0xe9)][_0x516918(0x114)](_0x5bbb17),console[_0x516918(0x10c)](LOG_PREFIX+'\x20React\x20Refresh\x20runtime\x20installed\x20for\x20'+_0x5bbb17);}async function ensureViteClient(_0x3761d3){const _0x5369c1=_0x2d96e4;window[_0x5369c1(0xf4)]??(window[_0x5369c1(0xf4)]=new Set());if(window['__viteHMRLoaded'][_0x5369c1(0xb0)](_0x3761d3)){console['log'](LOG_PREFIX+_0x5369c1(0xaa)+_0x3761d3);return;}console[_0x5369c1(0x10c)](LOG_PREFIX+_0x5369c1(0x122)+_0x3761d3+_0x5369c1(0xe0)),await import(_0x3761d3+'/@vite/client'),window['__viteHMRLoaded']['add'](_0x3761d3),console['log'](LOG_PREFIX+_0x5369c1(0xe5)+_0x3761d3);}function isRefreshRuntime(_0x43dfe9){const _0x5ab6b7=_0x2d96e4;return typeof _0x43dfe9===_0x5ab6b7(0xbf)&&_0x43dfe9!==null&&_0x5ab6b7(0x93)in _0x43dfe9&&typeof _0x43dfe9[_0x5ab6b7(0x93)]===_0x5ab6b7(0x83);}var WORKER_MESSAGE_CONFIG=_0x2d96e4(0x103),WORKER_MESSAGE_DISABLE=_0x2d96e4(0xb4),LOG_PREFIX2=_0x2d96e4(0xa5),registration=null,currentOptions2=null;async function registerServiceWorker(_0x3acae9){const _0x431fa0=_0x2d96e4;console[_0x431fa0(0x10c)](LOG_PREFIX2+_0x431fa0(0xdb));if(!(_0x431fa0(0xa8)in navigator)){console[_0x431fa0(0xba)](LOG_PREFIX2+_0x431fa0(0xd2));return;}const _0x9652e0=!!navigator[_0x431fa0(0xa8)][_0x431fa0(0x102)];currentOptions2=_0x3acae9;const _0xdf4d7d=await detectBlockingServiceWorker(_0x3acae9['swPath']);if(_0xdf4d7d){console[_0x431fa0(0xa4)](LOG_PREFIX2+'\x20BLOCKING\x20SW\x20detected:\x20'+_0xdf4d7d);return;}try{console[_0x431fa0(0x10c)](LOG_PREFIX2+_0x431fa0(0xc2)+_0x3acae9[_0x431fa0(0x112)]+'...'),registration=await navigator[_0x431fa0(0xa8)][_0x431fa0(0x82)](_0x3acae9[_0x431fa0(0x112)],{'scope':'/'}),console['log'](LOG_PREFIX2+_0x431fa0(0xf0)),await navigator[_0x431fa0(0xa8)][_0x431fa0(0x135)],console['log'](LOG_PREFIX2+'\x20SW\x20ready'),state[_0x431fa0(0x8b)]=ownsCurrentController(_0x3acae9[_0x431fa0(0x112)]);if(!_0x9652e0&&!navigator[_0x431fa0(0xa8)][_0x431fa0(0x102)]){console[_0x431fa0(0x10c)](LOG_PREFIX2+_0x431fa0(0xc9)),window[_0x431fa0(0x9a)][_0x431fa0(0x106)]();return;}console[_0x431fa0(0x10c)](LOG_PREFIX2+_0x431fa0(0xcf)),await sendConfiguration();if(state[_0x431fa0(0xc5)]){const _0x1ba187=document[_0x431fa0(0x97)](_0x431fa0(0xac))!==null;if(!_0x1ba187){console[_0x431fa0(0x10c)](LOG_PREFIX2+'\x20Page\x20not\x20enhanced\x20-\x20reloading'),window[_0x431fa0(0x9a)][_0x431fa0(0x106)]();return;}}updateOverlay(),console[_0x431fa0(0x10c)](LOG_PREFIX2+'\x20registerServiceWorker()\x20complete');}catch(_0x343aa5){console['error'](LOG_PREFIX2+_0x431fa0(0x98),_0x343aa5);}}async function sendConfiguration(){const _0x435417=_0x2d96e4;if(!state['enabled']||!currentOptions2)return;const _0x3f3086=await resolveWorker();if(!_0x3f3086){console['warn'](LOG_PREFIX2+_0x435417(0x81));return;}const _0x4ba507=window['__enhanceResolvedUrl']??null,_0x128d6e={'publishableKey':currentOptions2['publishableKey'],'callbackBypass':currentOptions2[_0x435417(0xab)],'securityMode':currentOptions2[_0x435417(0x8a)],'enhancementUrl':_0x4ba507??void 0x0};console[_0x435417(0x10c)](LOG_PREFIX2+_0x435417(0x136),JSON[_0x435417(0xc0)](_0x128d6e,null,0x2)),_0x3f3086[_0x435417(0xf1)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x128d6e});}async function unregisterServiceWorker(_0x2379ae){const _0x34c847=_0x2d96e4;console['log'](LOG_PREFIX2+_0x34c847(0x95));if(!(_0x34c847(0xa8)in navigator))return;try{const _0x2594a2=registration??await navigator['serviceWorker']['getRegistration']('/');if(!_0x2594a2)return;const _0x20346f=[_0x2594a2[_0x34c847(0xb8)]?.[_0x34c847(0xc3)],_0x2594a2[_0x34c847(0xe4)]?.['scriptURL'],_0x2594a2[_0x34c847(0x126)]?.['scriptURL']],_0x1b347b=_0x20346f[_0x34c847(0x12d)](_0x774ddc=>_0x774ddc&&ownsServiceWorker(_0x774ddc,_0x2379ae));if(!_0x1b347b)return;_0x2594a2[_0x34c847(0xb8)]&&_0x2594a2[_0x34c847(0xb8)][_0x34c847(0xf1)]({'type':WORKER_MESSAGE_DISABLE}),await _0x2594a2['unregister'](),registration=null,currentOptions2=null,console['log'](LOG_PREFIX2+_0x34c847(0x8d));}catch(_0x526762){console['error'](LOG_PREFIX2+'\x20Failed\x20to\x20unregister\x20service\x20worker:',_0x526762);}}function ownsServiceWorker(_0x2de9d9,_0x29f3c7){const _0x523e49=_0x2d96e4,_0x3565ed=typeof window!==_0x523e49(0x94)?window[_0x523e49(0x9a)][_0x523e49(0xc6)]:'',_0x549563=new URL(_0x29f3c7,_0x3565ed||void 0x0)[_0x523e49(0x115)];return _0x2de9d9===_0x549563||_0x2de9d9['includes'](_0x523e49(0xca));}function ownsCurrentController(_0x295659){const _0x2c3b11=_0x2d96e4,_0x486ab9=navigator[_0x2c3b11(0xa8)]?.['controller'];if(!_0x486ab9)return![];return ownsServiceWorker(_0x486ab9[_0x2c3b11(0xc3)],_0x295659);}async function detectBlockingServiceWorker(_0x2d6bc2){const _0xaf3efa=_0x2d96e4;if(!navigator['serviceWorker'])return null;try{const _0x1a568d=await navigator[_0xaf3efa(0xa8)][_0xaf3efa(0xaf)]('/'),_0x5e39b3=_0x1a568d?.[_0xaf3efa(0xb8)]?.['scriptURL'];if(!_0x5e39b3)return null;if(ownsServiceWorker(_0x5e39b3,_0x2d6bc2))return null;return _0x5e39b3;}catch{return null;}}async function resolveWorker(){const _0x46d12c=_0x2d96e4,_0x531c15=registration??await navigator[_0x46d12c(0xa8)]?.['getRegistration']('/');return _0x531c15?.[_0x46d12c(0xb8)]??_0x531c15?.['waiting']??_0x531c15?.[_0x46d12c(0x126)]??null;}var LOG_PREFIX3=_0x2d96e4(0xc8),STORAGE_KEY_ENHANCEMENT_ID='enhance.enhancementId',STORAGE_KEY_ENHANCEMENT_URL=_0x2d96e4(0xed);function isInitialized(){const _0x3b8eb8=_0x2d96e4;return typeof window!==_0x3b8eb8(0x94)&&window[_0x3b8eb8(0x75)]===!![];}function setInitialized(_0x4114cd){const _0x94ed50=_0x2d96e4;typeof window!=='undefined'&&(window[_0x94ed50(0x75)]=_0x4114cd);}function getOptions(){const _0x59a7cd=_0x2d96e4;return typeof window!==_0x59a7cd(0x94)?window[_0x59a7cd(0xda)]??null:null;}function setOptions(_0x2fd1b3){const _0x10e7e7=_0x2d96e4;typeof window!==_0x10e7e7(0x94)&&(window[_0x10e7e7(0xda)]=_0x2fd1b3);}var Enhance={'init'(_0x1aa5e3){const _0xb5e559=_0x2d96e4,_0x2888a8=Date['now']();console[_0xb5e559(0x10c)](LOG_PREFIX3+_0xb5e559(0x121)+_0x2888a8),console[_0xb5e559(0x10c)](LOG_PREFIX3+_0xb5e559(0x9f)+window[_0xb5e559(0x9a)]['href']),console['log'](LOG_PREFIX3+_0xb5e559(0x78)+document[_0xb5e559(0xd7)]);if(isInitialized())return console[_0xb5e559(0xba)](LOG_PREFIX3+_0xb5e559(0x100)),window[_0xb5e559(0x12f)]??createController();setInitialized(!![]);const _0x17ed52=normalizeOptions(_0x1aa5e3);setOptions(_0x17ed52);const _0x19b26c=parseEnhancementParams();console[_0xb5e559(0x10c)](LOG_PREFIX3+_0xb5e559(0x7d),JSON[_0xb5e559(0xc0)](_0x19b26c,null,0x2));if(_0x19b26c[_0xb5e559(0x88)])return cleanUrlParam(_0xb5e559(0x9b)),clearPersistedEnhancement(),console[_0xb5e559(0x10c)](LOG_PREFIX3+_0xb5e559(0x92)),createController();if(!_0x19b26c[_0xb5e559(0xdf)])return console[_0xb5e559(0x10c)](LOG_PREFIX3+_0xb5e559(0x7b)),void unregisterServiceWorker(_0x17ed52['swPath']),setupViteErrorListeners(),createController();return console['log'](LOG_PREFIX3+_0xb5e559(0xae)+_0x19b26c[_0xb5e559(0xdf)]),state[_0xb5e559(0xc5)]=!![],void initializeEnhancement(_0x17ed52,_0x19b26c['enhancementId'],_0x19b26c['cachedUrl']),createController();}};async function initializeEnhancement(_0x332886,_0x5654a1,_0x4c81f9){const _0x50dd12=_0x2d96e4;let _0x3f4575=_0x4c81f9;if(!_0x3f4575){console['log'](LOG_PREFIX3+_0x50dd12(0xcb)+_0x5654a1),_0x3f4575=await resolveEnhancementUrl(_0x332886,_0x5654a1);if(!_0x3f4575){console[_0x50dd12(0xa4)](LOG_PREFIX3+'\x20Failed\x20to\x20resolve\x20enhancement\x20-\x20aborting'),state[_0x50dd12(0xc5)]=![];return;}}else console[_0x50dd12(0x10c)](LOG_PREFIX3+'\x20Using\x20cached\x20enhancement\x20URL:\x20'+_0x3f4575);persistEnhancement(_0x5654a1,_0x3f4575),window['__enhanceResolvedUrl']=_0x3f4575,console[_0x50dd12(0x10c)](LOG_PREFIX3+_0x50dd12(0x85)),await registerServiceWorker(_0x332886),console[_0x50dd12(0x10c)](LOG_PREFIX3+_0x50dd12(0x10e)),await loadOverlay({'overlayPath':_0x332886['overlayPath'],'enableViteHmr':_0x332886[_0x50dd12(0x72)]['enableViteHmr'],'options':_0x332886,'onToggle':handleToggle}),console[_0x50dd12(0x10c)](LOG_PREFIX3+_0x50dd12(0xd6));}async function resolveEnhancementUrl(_0x360df6,_0x2d1127){const _0x43fc7d=_0x2d96e4,_0x283c76=_0x360df6[_0x43fc7d(0x123)]+'/public/enhancements/'+_0x2d1127+_0x43fc7d(0xfa);console[_0x43fc7d(0x10c)](LOG_PREFIX3+_0x43fc7d(0x80)+_0x283c76);try{const _0x417f54=await fetch(_0x283c76,{'headers':{'X-Enhance-Publishable-Key':_0x360df6[_0x43fc7d(0x86)]}});if(!_0x417f54['ok']){const _0x4efff0=await _0x417f54['text']();return console[_0x43fc7d(0xa4)](LOG_PREFIX3+_0x43fc7d(0xb9)+_0x417f54[_0x43fc7d(0x89)]+'\x20'+_0x4efff0),null;}const _0x39c9a1=await _0x417f54['json'](),_0x1b397e=''+_0x360df6[_0x43fc7d(0x123)]+_0x39c9a1['operatingPath'];return console[_0x43fc7d(0x10c)](LOG_PREFIX3+'\x20Resolved\x20to:\x20'+_0x1b397e),_0x1b397e;}catch(_0x162f34){return console[_0x43fc7d(0xa4)](LOG_PREFIX3+'\x20Resolution\x20error:',_0x162f34),null;}}function parseEnhancementParams(){const _0x148d29=_0x2d96e4,_0x3da37a=new URL(window[_0x148d29(0x9a)][_0x148d29(0x115)]),_0x2bd889=_0x3da37a['searchParams']['get']('enhance')?.[_0x148d29(0x9c)](),_0x1fce0a=_0x2bd889==='0'||_0x2bd889===_0x148d29(0xcc)||_0x2bd889===_0x148d29(0xe3);let _0x54d6cc=_0x3da37a[_0x148d29(0xf6)][_0x148d29(0x116)]('enhancement'),_0x88aca7=null;if(_0x54d6cc)try{const _0x4a17ba=sessionStorage[_0x148d29(0x108)](STORAGE_KEY_ENHANCEMENT_ID),_0x51536d=sessionStorage[_0x148d29(0x108)](STORAGE_KEY_ENHANCEMENT_URL);_0x4a17ba===_0x54d6cc&&_0x51536d&&(_0x88aca7=_0x51536d,console[_0x148d29(0x10c)](LOG_PREFIX3+'\x20Found\x20cached\x20URL\x20for\x20enhancement\x20ID'));}catch{}else try{const _0x9d2ecc=sessionStorage[_0x148d29(0x108)](STORAGE_KEY_ENHANCEMENT_ID),_0x947a09=sessionStorage[_0x148d29(0x108)](STORAGE_KEY_ENHANCEMENT_URL);_0x9d2ecc&&_0x947a09&&(_0x54d6cc=_0x9d2ecc,_0x88aca7=_0x947a09,console[_0x148d29(0x10c)](LOG_PREFIX3+_0x148d29(0xdd)),_0x3da37a['searchParams'][_0x148d29(0x8f)]('enhancement',_0x54d6cc),window[_0x148d29(0xa1)]['replaceState'](null,document[_0x148d29(0x11e)],_0x3da37a[_0x148d29(0x130)]()));}catch{}return{'enhancementId':_0x54d6cc,'cachedUrl':_0x88aca7,'explicitDisable':_0x1fce0a};}function persistEnhancement(_0x2a832b,_0x469c2e){const _0x253226=_0x2d96e4;try{sessionStorage[_0x253226(0xc1)](STORAGE_KEY_ENHANCEMENT_ID,_0x2a832b),sessionStorage[_0x253226(0xc1)](STORAGE_KEY_ENHANCEMENT_URL,_0x469c2e),console['log'](LOG_PREFIX3+'\x20Persisted\x20enhancement\x20to\x20sessionStorage');}catch{}}function _0x16ac(_0x4861ef,_0x5aa3d3){_0x4861ef=_0x4861ef-0x72;const _0x58457=_0x5845();let _0x16ac2d=_0x58457[_0x4861ef];return _0x16ac2d;}function clearPersistedEnhancement(){const _0x2f3289=_0x2d96e4;try{sessionStorage[_0x2f3289(0x8c)](STORAGE_KEY_ENHANCEMENT_ID),sessionStorage[_0x2f3289(0x8c)](STORAGE_KEY_ENHANCEMENT_URL),console[_0x2f3289(0x10c)](LOG_PREFIX3+_0x2f3289(0xf7));}catch{}}function createController(){const _0x11c825=_0x2d96e4,_0x4f882e={'enable'(){const _0x7ed24b=getOptions();if(!_0x7ed24b)return;state['enabled']=!![],void registerServiceWorker(_0x7ed24b),void sendConfiguration(),updateOverlay();},'disable'(){const _0x1c641f=_0x16ac,_0x25d76d=getOptions();if(!_0x25d76d)return;state['enabled']=![],state[_0x1c641f(0x8b)]=![],clearPersistedEnhancement(),updateOverlay(),void unregisterServiceWorker(_0x25d76d[_0x1c641f(0x112)]);},'status'(){const _0x3dd844=_0x16ac;return{'enabled':state[_0x3dd844(0xc5)],'controlled':state[_0x3dd844(0x8b)]};}};return typeof window!==_0x11c825(0x94)&&(window[_0x11c825(0x12f)]=_0x4f882e),_0x4f882e;}function handleToggle(){const _0xc97fbc=_0x2d96e4,_0x1a1bc2=createController();state[_0xc97fbc(0xc5)]?_0x1a1bc2[_0xc97fbc(0xf8)]():_0x1a1bc2[_0xc97fbc(0x7c)]();}function cleanUrlParam(_0x140010){const _0x2d3115=_0x2d96e4,_0x4798f1=new URL(window[_0x2d3115(0x9a)]['href']);_0x4798f1['searchParams'][_0x2d3115(0xb0)](_0x140010)&&(_0x4798f1['searchParams'][_0x2d3115(0x131)](_0x140010),window[_0x2d3115(0xa1)][_0x2d3115(0xd4)](null,document[_0x2d3115(0x11e)],_0x4798f1[_0x2d3115(0x130)]()));}function setupViteErrorListeners(){const _0x3cffc6=_0x2d96e4;import.meta.hot&&(import.meta.hot['on'](_0x3cffc6(0xfb),_0x3ed5c2=>{const _0xd17e62=_0x3cffc6;state[_0xd17e62(0x105)]={'message':_0x3ed5c2[_0xd17e62(0xad)]['message']},updateOverlay();}),import.meta.hot['on']('vite:beforeUpdate',()=>{state['appError']&&(state['appError']=null,updateOverlay());}));}var package_default={'name':'@enhance-eng/sandbox','version':_0x2d96e4(0xa9),'type':_0x2d96e4(0x109),'description':_0x2d96e4(0x134),'license':_0x2d96e4(0x12b),'main':_0x2d96e4(0x8e),'module':'./dev/index.js','types':_0x2d96e4(0x11d),'exports':{'.':{'types':_0x2d96e4(0x11d),'import':'./dev/index.js'},'./vite':{'types':_0x2d96e4(0x7e),'import':_0x2d96e4(0x96)}},'files':[_0x2d96e4(0x11b)],'bin':{'enhance-sandbox':_0x2d96e4(0xf3)},'scripts':{'typecheck':_0x2d96e4(0x129),'dev':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','dev:build':_0x2d96e4(0x87),'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':_0x2d96e4(0x11a),'build':'ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','build:release':_0x2d96e4(0xb7),'build:release:dev':_0x2d96e4(0x110),'version':_0x2d96e4(0xbe)},'dependencies':{'commander':_0x2d96e4(0xd0),'zod':_0x2d96e4(0x133)},'devDependencies':{'@types/node':'^24.10.1','javascript-obfuscator':_0x2d96e4(0x74),'tsup':'^8.5.1','vite':_0x2d96e4(0xa3)},'publishConfig':{'access':_0x2d96e4(0x124)}},DEFAULT_SERVICE_WORKER_PATH='/sw-enhance.js',DEFAULT_RUNTIME_PATH=_0x2d96e4(0xb3),PACKAGE_VERSION=typeof package_default[_0x2d96e4(0x12a)]===_0x2d96e4(0x90)?package_default['version']:'0.0.0';function normalizeAssetPath(_0x3d407c){const _0x137833=_0x2d96e4;if(!_0x3d407c)return _0x3d407c;if(_0x3d407c['startsWith'](_0x137833(0xd8))||_0x3d407c['startsWith']('https://'))return _0x3d407c;const _0x41800a=_0x3d407c[_0x137833(0x10a)](/^\.\//,'');return _0x41800a[_0x137833(0x73)]('/')?_0x41800a:'/'+_0x41800a;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x5174c4){const _0x2abd78=_0x2d96e4;return Enhance[_0x2abd78(0xb1)](_0x5174c4);},'serviceWorkerURL'(){return defaultSwPath;},'runtimeURL'(){return defaultRuntimePath;},'assetManifest'(){return getAssetManifest();}};function getAssetManifest(){return{'version':PACKAGE_VERSION,'serviceWorker':serviceWorkerURL(),'runtime':runtimeURL(),'serviceWorkerDigest':null,'runtimeDigest':null};}function _0x5845(){const _0x40017d=['\x20enableViteHmr:\x20','serviceWorker','0.3.21','\x20Vite\x20client\x20already\x20loaded\x20for\x20','callbackBypass','[data-enhance-runtime-bootstrap]','err','\x20Enhancement\x20mode\x20-\x20ID:\x20','getRegistration','has','init','keys','/assets/enhance-runtime.js','enhance:disable','\x20Overlay\x20controller\x20initialized\x20and\x20cached','\x20HMR\x20setup\x20complete','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','active','\x20Resolution\x20failed:\x20','warn','\x20loadOverlay()\x20called','432292zWslZa','$RefreshReg$','bun\x20version\x20patch\x20--no-git-tag-version','object','stringify','setItem','\x20Registering\x20SW\x20at\x20','scriptURL','onToggle','enabled','origin','\x20Importing\x20overlay\x20module\x20from:\x20','[Enhance\x20Runtime]','\x20SW\x20just\x20activated\x20-\x20reloading\x20to\x20enable\x20enhancement','sw-enhance','\x20Resolving\x20enhancement\x20ID:\x20','false','overlayPath','\x20overlayPath:\x20','\x20Sending\x20configuration\x20to\x20SW...','^11.1.0','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','\x20Service\x20workers\x20NOT\x20supported','https://api.enhancelabs.ai','replaceState','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','\x20Enhancement\x20initialization\x20complete','readyState','http://','enableViteHmr','__enhanceOptions','\x20registerServiceWorker()\x20called','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','\x20Restored\x20enhancement\x20from\x20sessionStorage','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','enhancementId','...','186cNdOum','info','off','waiting','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','search','[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()','serviceWorkerURL','__enhanceReactRefreshInstalledOrigins','trim','\x20Controller\x20created:','\x20Calling\x20updateOverlay()...','enhance.enhancementUrl','152ywFysJ','\x20setupRemoteHMR()\x20for\x20','\x20Waiting\x20for\x20SW\x20ready...','postMessage','$RefreshSig$','./dev/cli.js','__viteHMRLoaded','now','searchParams','\x20Cleared\x20persisted\x20enhancement','disable','position','/resolve','vite:error','enableOverlayHmr','options','2121060JpcUWF','459162uysblu','\x20Already\x20initialized\x20-\x20returning\x20existing\x20controller','\x20Starting\x20fresh\x20overlay\x20load...','controller','enhance:configure','\x20Module\x20missing\x20createOverlay\x20export!','appError','reload','\x20Module\x20exports:','getItem','module','replace','enhancement','log','\x20composeOverlayState\x20-\x20state.enabled:\x20','\x20Loading\x20overlay...','240989rFXHNb','ENHANCE_OVERLAY_PATH=https://assets-dev.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','\x20Module\x20imported\x20in\x20','swPath','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','add','href','get','\x20Overlay\x20update\x20complete','__development','permissive','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','dev/','__enhanceOverlay','./dev/index.d.ts','title','__vite_plugin_react_preamble_installed__','default','\x20init()\x20called\x20at\x20','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','backendUrl','public','\x20No\x20window\x20object\x20-\x20skipping','installing','\x20Available\x20exports:','1810YxWLTW','tsc\x20--noEmit','version','MIT','\x20composeOverlayState\x20-\x20state.controlled:\x20','some','\x20currentOptions\x20exists:\x20','__enhanceController','toString','delete','\x20overlayController\x20exists:\x20','^3.22.4','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','ready','\x20Sending\x20config\x20to\x20SW:','overlay','startsWith','^4.1.1','__enhanceInitialized','\x20Failed\x20to\x20import/create\x20overlay:','\x20doLoadOverlay()\x20starting...','\x20Document\x20readyState:\x20','[Enhance\x20Config]\x20Build-time\x20defaults:','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','\x20Normal\x20mode\x20-\x20no\x20enhancement','enable','\x20Enhancement\x20params:','./dev/vite/index.d.ts','\x20Setting\x20up\x20remote\x20HMR...','\x20Calling:\x20','\x20No\x20service\x20worker\x20active\x20to\x20configure','register','function','\x20composeOverlayState\x20-\x20enhancementId:\x20','\x20Registering\x20SW\x20with\x20enhancement\x20URL...','publishableKey','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','explicitDisable','status','security','controlled','removeItem','\x20SW\x20unregistered','./dev/index.js','set','string','19737ObXQwL','\x20Explicit\x20disable\x20-\x20exiting','injectIntoGlobalHook','undefined','\x20unregisterServiceWorker()\x20called','./dev/vite/index.js','querySelector','\x20Failed\x20to\x20register\x20service\x20worker:','https://assets.enhancelabs.ai/overlay.js','location','enhance','toLowerCase','111681WMmEzf','\x20loadOverlay()\x20failed:','\x20Current\x20URL:\x20','bottom-right','history','\x20Invalid\x20React\x20Refresh\x20runtime','^7.2.4','error','[Enhance\x20SW-Client]','22495LpoQPU'];_0x5845=function(){return _0x40017d;};return _0x5845();}function resolveServiceWorkerPath(){return serviceWorkerURL();}function serviceWorkerURL(){const _0xa081c1=_0x2d96e4;return Enhance2[_0xa081c1(0xe8)]();}function runtimeURL(){return Enhance2['runtimeURL']();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
1
+ const _0x4dbb83=_0x49de;(function(_0x4b3622,_0x32bb90){const _0x35f5aa=_0x49de,_0x149615=_0x4b3622();while(!![]){try{const _0x26d6a7=parseInt(_0x35f5aa(0x214))/0x1+-parseInt(_0x35f5aa(0x24d))/0x2*(-parseInt(_0x35f5aa(0x1e3))/0x3)+-parseInt(_0x35f5aa(0x1d8))/0x4+parseInt(_0x35f5aa(0x1a9))/0x5+-parseInt(_0x35f5aa(0x1c7))/0x6*(-parseInt(_0x35f5aa(0x1ff))/0x7)+-parseInt(_0x35f5aa(0x23e))/0x8+-parseInt(_0x35f5aa(0x1b3))/0x9;if(_0x26d6a7===_0x32bb90)break;else _0x149615['push'](_0x149615['shift']());}catch(_0x173e2d){_0x149615['push'](_0x149615['shift']());}}}(_0x2654,0x6b765));var DEFAULT_OVERLAY_PATH=!![]?_0x4dbb83(0x251):_0x4dbb83(0x205),DEFAULT_BACKEND_URL=!![]?_0x4dbb83(0x21d):'https://api.enhancelabs.ai',DEFAULT_OVERLAY_HMR=!![]?![]:![];function _0x2654(){const _0x4bd0e7=['https://assets.enhancelabs.ai/overlay.js','querySelector','__vite_plugin_react_preamble_installed__','MIT','scriptURL','enhancementId','false','enableViteHmr','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','[Enhance\x20Runtime]','[Enhance\x20Overlay]','\x20composeOverlayState\x20-\x20state.enabled:\x20','off','vite:error','$RefreshSig$','546670etiZPW','history','/assets/enhance-runtime.js','\x20enhancementId:\x20','\x20Vite\x20error\x20detected:','runtimeURL','undefined','\x20Document\x20readyState:\x20','default','https://enhance-api-dev.enhancelabs.workers.dev','update','swPath','scope','\x20Unregistering\x20SW...','origin','\x20doLoadOverlay()\x20starting...','/@react-refresh','\x20init()\x20complete\x20-\x20enhancement\x20mode','\x20overlayPath:\x20','\x20Current\x20URL:\x20','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','security','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','state','\x20enhancementUrl:\x20','^8.5.1','getRegistration','public','\x20Failed\x20to\x20import/create\x20overlay:','injectIntoGlobalHook','http://','\x20Current\x20controller\x20after\x20ready:','active','startsWith','\x20loadOverlay()\x20failed:','\x20Overlay\x20controller\x20initialized\x20and\x20cached','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','\x20unregisterServiceWorker()\x20called','./dev/cli.js','version','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','\x20Service\x20workers\x20supported','3778008xJlSmF','^24.10.1','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','enableOverlayHmr','enhance','\x20No\x20blocking\x20SW\x20found',',\x20currentOptions:\x20','overlayPath','trim','\x20Current\x20controller:','publishableKey','\x20detectBlocking\x20-\x20existing\x20registration:','object','[Enhance\x20SW-Client]','/sw-enhance.js','1528ShTdfi','add','explicitDisable','toLowerCase','https://assets-dev.enhancelabs.ai/overlay.js','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','\x20sendConfiguration()\x20called','__enhanceOptions','title','\x20detectBlocking\x20error:','callbackBypass','\x20Overlay\x20update\x20complete','some','\x20swPath:\x20','unregister','position','replace','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','\x20No\x20service\x20worker\x20active\x20to\x20configure','string','\x20composeOverlayState\x20-\x20enhancementId:\x20','info','^3.22.4','\x20composeOverlayState\x20-\x20state.controlled:\x20','err','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','\x20Setting\x20up\x20remote\x20HMR...','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','postMessage','hasEnhancement','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','\x20Registration\x20returned:','installing','serviceWorker','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners',',\x20page\x20origin:\x20','\x20Importing\x20overlay\x20module\x20from:\x20','[data-enhance-runtime-bootstrap]','./dev/index.js','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','error','\x20enableViteHmr:\x20','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','\x20Controller\x20created:','backendUrl','\x20Raw\x20options:','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','\x20Vite\x20client\x20already\x20loaded\x20for\x20','\x20Found\x20registration:','\x20init()\x20complete\x20-\x20normal\x20mode','searchParams','694940sSEfSm','controlled','$RefreshReg$','href','\x20Module\x20imported\x20in\x20','\x20setupRemoteHMR()\x20for\x20','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','\x20No\x20current\x20controller','search','dev/','1476423fEhABf','\x20Unregistering\x20any\x20existing\x20SW...','__enhanceController','toString','/@vite/client','__viteHMRLoaded','reload','location','has','\x20Calling\x20createOverlay()...','[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()','enhancement','none','\x20Starting\x20overlay\x20load\x20(async)...','\x20First\x20initialization','\x20SW\x20ready!\x20Active:','\x20registerServiceWorker()\x20complete','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','waiting','\x20ownsServiceWorker?\x20scriptURL=','2922666abRvXi','\x20Updating\x20overlay...','get','\x20loadOverlay()\x20called','enhance:disable','warn','delete','\x20updateOverlay()\x20called','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','controller','enabled','__enhanceOverlay','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','\x20registerServiceWorker()\x20called','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','serviceWorkerURL','\x20loadOverlay()\x20complete','3114232QuvBKk','\x20Sending\x20customer\x20config\x20to\x20SW:','\x20Checking\x20for\x20blocking\x20service\x20worker...','\x20Sending\x20DISABLE\x20message\x20to\x20SW...','^7.2.4','\x20Enhancement\x20mode\x20ENABLED','[Enhance\x20Config]\x20Build-time\x20defaults:','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','\x20Registering\x20SW\x20at\x20','./dev/index.d.ts','options','2679awPLDC','\x20HMR\x20setup\x20complete','vite:beforeUpdate','function','\x20overlayController\x20exists:\x20','__enhanceReactRefreshInstalledOrigins','enhance:configure','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','overlay','stringify','\x20state.enabled:\x20','\x20Normalized\x20options:','createOverlay','readyState','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','./dev/vite/index.js','includes','N/A','https://','log','__development','\x20React\x20Refresh\x20already\x20installed\x20for\x20','^11.1.0','__enhanceInitialized','enhancementUrl','\x20URL\x20params\x20parsed:','onToggle','\x20Starting\x20SW\x20registration\x20(async)...','7fHwiap','appError','keys','\x20Starting\x20fresh\x20overlay\x20load...','now','\x20Invalid\x20React\x20Refresh\x20runtime'];_0x2654=function(){return _0x4bd0e7;};return _0x2654();}console[_0x4dbb83(0x1f6)](_0x4dbb83(0x1de),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function _0x49de(_0x1ae1a7,_0x398916){_0x1ae1a7=_0x1ae1a7-0x19d;const _0x265417=_0x2654();let _0x49def0=_0x265417[_0x1ae1a7];return _0x49def0;}function normalizeOptions(_0x5ede9c){const _0x9ac6d0=_0x4dbb83;if(!_0x5ede9c[_0x9ac6d0(0x248)])throw new Error(_0x9ac6d0(0x1bd));const _0x49388a=_0x5ede9c[_0x9ac6d0(0x1f7)]??{};return{'publishableKey':_0x5ede9c[_0x9ac6d0(0x248)],'callbackBypass':_0x5ede9c['callbackBypass']??[],'overlay':{'enabled':!![],'position':'bottom-right','enableViteHmr':_0x49388a[_0x9ac6d0(0x241)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x9ac6d0(0x263),'swPath':_0x9ac6d0(0x24c),'overlayPath':_0x49388a[_0x9ac6d0(0x245)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':'/assets/enhance-runtime.js','security':_0x49388a['security']??'permissive','backendUrl':_0x49388a[_0x9ac6d0(0x1a2)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x3ae0fd=_0x4dbb83;try{const _0x17a31f=new URLSearchParams(window['location'][_0x3ae0fd(0x1b1)]);return _0x17a31f[_0x3ae0fd(0x1c9)](_0x3ae0fd(0x1be))?.[_0x3ae0fd(0x246)]()||'';}catch{return'';}}var LOG_PREFIX=_0x4dbb83(0x20f),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x588e80){const _0x1a6ddb=_0x4dbb83;console[_0x1a6ddb(0x1f6)](LOG_PREFIX+_0x1a6ddb(0x1ca)),console[_0x1a6ddb(0x1f6)](LOG_PREFIX+_0x1a6ddb(0x226)+_0x588e80[_0x1a6ddb(0x245)]),console['log'](LOG_PREFIX+_0x1a6ddb(0x19e)+_0x588e80['enableViteHmr']),currentOptions=_0x588e80[_0x1a6ddb(0x1e2)],toggleHandler=_0x588e80[_0x1a6ddb(0x1fd)];if(overlayController){console[_0x1a6ddb(0x1f6)](LOG_PREFIX+_0x1a6ddb(0x22a)),updateOverlay();return;}if(overlayLoadPromise)return console['log'](LOG_PREFIX+_0x1a6ddb(0x275)),overlayLoadPromise;console[_0x1a6ddb(0x1f6)](LOG_PREFIX+_0x1a6ddb(0x202)),overlayLoadPromise=doLoadOverlay(_0x588e80);try{await overlayLoadPromise,console[_0x1a6ddb(0x1f6)](LOG_PREFIX+_0x1a6ddb(0x1d7));}catch(_0x5139d1){console[_0x1a6ddb(0x19d)](LOG_PREFIX+_0x1a6ddb(0x236),_0x5139d1);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x2c6baf){const _0x56fa9b=_0x4dbb83;console['log'](LOG_PREFIX+_0x56fa9b(0x223));if(typeof window===_0x56fa9b(0x21a)){console[_0x56fa9b(0x1f6)](LOG_PREFIX+'\x20No\x20window\x20object\x20-\x20skipping');return;}if(window['__enhanceOverlay']){console['log'](LOG_PREFIX+'\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit'),overlayController=window[_0x56fa9b(0x1d2)];return;}console[_0x56fa9b(0x1f6)](LOG_PREFIX+'\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module');try{_0x2c6baf[_0x56fa9b(0x20c)]&&(console['log'](LOG_PREFIX+_0x56fa9b(0x268)),await setupRemoteHMR(_0x2c6baf[_0x56fa9b(0x245)]));console['log'](LOG_PREFIX+_0x56fa9b(0x272)+_0x2c6baf[_0x56fa9b(0x245)]);const _0x115a00=Date['now'](),_0x80358b=await import(_0x2c6baf['overlayPath']);console[_0x56fa9b(0x1f6)](LOG_PREFIX+_0x56fa9b(0x1ad)+(Date[_0x56fa9b(0x203)]()-_0x115a00)+'ms'),console[_0x56fa9b(0x1f6)](LOG_PREFIX+'\x20Module\x20exports:',Object[_0x56fa9b(0x201)](_0x80358b));if(typeof _0x80358b?.['createOverlay']!==_0x56fa9b(0x1e6)){console[_0x56fa9b(0x19d)](LOG_PREFIX+'\x20Module\x20missing\x20createOverlay\x20export!'),console['error'](LOG_PREFIX+'\x20Available\x20exports:',Object[_0x56fa9b(0x201)](_0x80358b));return;}console['log'](LOG_PREFIX+_0x56fa9b(0x1bc));const _0x23cc28=_0x80358b[_0x56fa9b(0x1ef)]();console[_0x56fa9b(0x1f6)](LOG_PREFIX+_0x56fa9b(0x1a1),_0x23cc28),overlayController=_0x23cc28,window['__enhanceOverlay']=_0x23cc28,_0x23cc28['onToggle'](_0x2c6baf[_0x56fa9b(0x1fd)]),console[_0x56fa9b(0x1f6)](LOG_PREFIX+_0x56fa9b(0x237)),console[_0x56fa9b(0x1f6)](LOG_PREFIX+'\x20Calling\x20updateOverlay()...'),updateOverlay();}catch(_0x49bcfb){console['error'](LOG_PREFIX+_0x56fa9b(0x230),_0x49bcfb);}}function updateOverlay(){const _0x1175a4=_0x4dbb83;console[_0x1175a4(0x1f6)](LOG_PREFIX+_0x1175a4(0x1ce)),console[_0x1175a4(0x1f6)](LOG_PREFIX+_0x1175a4(0x1e7)+!!overlayController),console['log'](LOG_PREFIX+'\x20currentOptions\x20exists:\x20'+!!currentOptions);if(!overlayController||!currentOptions){console[_0x1175a4(0x1f6)](LOG_PREFIX+_0x1175a4(0x25f));return;}const _0x45f2ea=composeOverlayState(currentOptions);console[_0x1175a4(0x1f6)](LOG_PREFIX+'\x20Updating\x20overlay\x20with\x20state:',JSON[_0x1175a4(0x1ec)](_0x45f2ea,null,0x2)),overlayController[_0x1175a4(0x21e)](_0x45f2ea),console[_0x1175a4(0x1f6)](LOG_PREFIX+_0x1175a4(0x259));}function composeOverlayState(_0x13ba4f){const _0xe0fcd5=_0x4dbb83,_0x139884=getEnhancementId();return console[_0xe0fcd5(0x1f6)](LOG_PREFIX+_0xe0fcd5(0x262)+_0x139884),console[_0xe0fcd5(0x1f6)](LOG_PREFIX+_0xe0fcd5(0x210)+state['enabled']),console[_0xe0fcd5(0x1f6)](LOG_PREFIX+_0xe0fcd5(0x265)+state['controlled']),{'enhancementId':_0x139884,'enabled':state[_0xe0fcd5(0x1d1)],'controlled':state[_0xe0fcd5(0x1aa)],'overlayPosition':_0x13ba4f[_0xe0fcd5(0x1eb)][_0xe0fcd5(0x25d)],'securityMode':_0x13ba4f[_0xe0fcd5(0x229)],'backendBaseUrl':_0x13ba4f['backendUrl'],'appError':state['appError']};}async function setupRemoteHMR(_0x4624f7){const _0x25c4ba=_0x4dbb83;console[_0x25c4ba(0x1f6)](LOG_PREFIX+_0x25c4ba(0x1ae)+_0x4624f7);if(typeof window===_0x25c4ba(0x21a))return;try{const _0xc08e7f=new URL(_0x4624f7,window[_0x25c4ba(0x1ba)][_0x25c4ba(0x222)]),_0x4b916f=_0xc08e7f['origin'];console[_0x25c4ba(0x1f6)](LOG_PREFIX+'\x20Overlay\x20origin:\x20'+_0x4b916f+_0x25c4ba(0x271)+window['location'][_0x25c4ba(0x222)]);if(_0x4b916f===window[_0x25c4ba(0x1ba)][_0x25c4ba(0x222)]){console['log'](LOG_PREFIX+_0x25c4ba(0x20d));return;}console[_0x25c4ba(0x1f6)](LOG_PREFIX+_0x25c4ba(0x1d5)),await ensureReactRefreshPreamble(_0x4b916f),await ensureViteClient(_0x4b916f),console[_0x25c4ba(0x1f6)](LOG_PREFIX+_0x25c4ba(0x1e4));}catch(_0x41436e){console[_0x25c4ba(0x1cc)](LOG_PREFIX+_0x25c4ba(0x269),_0x41436e);}}async function ensureReactRefreshPreamble(_0x484025){const _0x5a4e8b=_0x4dbb83;window[_0x5a4e8b(0x1e8)]??(window['__enhanceReactRefreshInstalledOrigins']=new Set());if(window[_0x5a4e8b(0x1e8)]['has'](_0x484025)){console[_0x5a4e8b(0x1f6)](LOG_PREFIX+_0x5a4e8b(0x1f8)+_0x484025);return;}console[_0x5a4e8b(0x1f6)](LOG_PREFIX+'\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20'+_0x484025+'...');const _0x3d037d=await import(_0x484025+_0x5a4e8b(0x224)),_0x10b380=_0x3d037d&&typeof _0x3d037d===_0x5a4e8b(0x24a)&&_0x5a4e8b(0x21c)in _0x3d037d?_0x3d037d[_0x5a4e8b(0x21c)]:_0x3d037d;if(!isRefreshRuntime(_0x10b380)){console[_0x5a4e8b(0x1cc)](LOG_PREFIX+_0x5a4e8b(0x204));return;}_0x10b380[_0x5a4e8b(0x231)](window),window[_0x5a4e8b(0x1ab)]=()=>{},window[_0x5a4e8b(0x213)]=()=>_0x4e426a=>_0x4e426a,window[_0x5a4e8b(0x207)]=!![],window['__enhanceReactRefreshInstalledOrigins']['add'](_0x484025),console[_0x5a4e8b(0x1f6)](LOG_PREFIX+'\x20React\x20Refresh\x20runtime\x20installed\x20for\x20'+_0x484025);}async function ensureViteClient(_0x5990e3){const _0x178b8f=_0x4dbb83;window['__viteHMRLoaded']??(window[_0x178b8f(0x1b8)]=new Set());if(window[_0x178b8f(0x1b8)][_0x178b8f(0x1bb)](_0x5990e3)){console[_0x178b8f(0x1f6)](LOG_PREFIX+_0x178b8f(0x1a5)+_0x5990e3);return;}console[_0x178b8f(0x1f6)](LOG_PREFIX+_0x178b8f(0x252)+_0x5990e3+'...'),await import(_0x5990e3+_0x178b8f(0x1b7)),window[_0x178b8f(0x1b8)][_0x178b8f(0x24e)](_0x5990e3),console[_0x178b8f(0x1f6)](LOG_PREFIX+_0x178b8f(0x23c)+_0x5990e3);}function isRefreshRuntime(_0x2c106f){const _0x5bdb92=_0x4dbb83;return typeof _0x2c106f===_0x5bdb92(0x24a)&&_0x2c106f!==null&&_0x5bdb92(0x231)in _0x2c106f&&typeof _0x2c106f[_0x5bdb92(0x231)]===_0x5bdb92(0x1e6);}var WORKER_MESSAGE_CONFIG=_0x4dbb83(0x1e9),WORKER_MESSAGE_DISABLE=_0x4dbb83(0x1cb),LOG_PREFIX2=_0x4dbb83(0x24b),registration=null,currentOptions2=null;async function registerServiceWorker(_0x1f1d3d){const _0x541d52=_0x4dbb83;console[_0x541d52(0x1f6)](LOG_PREFIX2+_0x541d52(0x1d4)),console[_0x541d52(0x1f6)](LOG_PREFIX2+_0x541d52(0x25b)+_0x1f1d3d[_0x541d52(0x21f)]);if(!(_0x541d52(0x26f)in navigator)){console[_0x541d52(0x1cc)](LOG_PREFIX2+_0x541d52(0x1a4));return;}console[_0x541d52(0x1f6)](LOG_PREFIX2+_0x541d52(0x23d));const _0x3f38db=navigator['serviceWorker']['controller'];console['log'](LOG_PREFIX2+_0x541d52(0x247),_0x3f38db?.['scriptURL']??_0x541d52(0x1bf)),console[_0x541d52(0x1f6)](LOG_PREFIX2+'\x20Controller\x20state:',_0x3f38db?.[_0x541d52(0x22b)]??_0x541d52(0x1f4));const _0x65bdf7=!!_0x3f38db;currentOptions2=_0x1f1d3d,console[_0x541d52(0x1f6)](LOG_PREFIX2+_0x541d52(0x1da));const _0x690cea=await detectBlockingServiceWorker(_0x1f1d3d['swPath']);if(_0x690cea){console[_0x541d52(0x19d)](LOG_PREFIX2+'\x20BLOCKING\x20SW\x20detected:\x20'+_0x690cea),console[_0x541d52(0x19d)](LOG_PREFIX2+'\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered');return;}console['log'](LOG_PREFIX2+_0x541d52(0x243));try{console[_0x541d52(0x1f6)](LOG_PREFIX2+_0x541d52(0x1e0)+_0x1f1d3d[_0x541d52(0x21f)]+'\x20with\x20scope\x20\x27/\x27...'),registration=await navigator['serviceWorker']['register'](_0x1f1d3d[_0x541d52(0x21f)],{'scope':'/'}),console[_0x541d52(0x1f6)](LOG_PREFIX2+_0x541d52(0x26d),{'scope':registration[_0x541d52(0x220)],'active':registration[_0x541d52(0x234)]?.['scriptURL'],'waiting':registration[_0x541d52(0x1c5)]?.['scriptURL'],'installing':registration[_0x541d52(0x26e)]?.[_0x541d52(0x209)]}),console['log'](LOG_PREFIX2+_0x541d52(0x267));const _0x554c84=await navigator[_0x541d52(0x26f)]['ready'];console[_0x541d52(0x1f6)](LOG_PREFIX2+_0x541d52(0x1c2),_0x554c84[_0x541d52(0x234)]?.[_0x541d52(0x209)]);const _0x1a5f08=ownsCurrentController(_0x1f1d3d[_0x541d52(0x21f)]);state[_0x541d52(0x1aa)]=_0x1a5f08,console['log'](LOG_PREFIX2+'\x20Page\x20controlled\x20by\x20our\x20SW:\x20'+_0x1a5f08),console[_0x541d52(0x1f6)](LOG_PREFIX2+_0x541d52(0x233),navigator[_0x541d52(0x26f)][_0x541d52(0x1d0)]?.[_0x541d52(0x209)]??_0x541d52(0x1bf));if(!_0x65bdf7&&!navigator[_0x541d52(0x26f)][_0x541d52(0x1d0)]){console[_0x541d52(0x1f6)](LOG_PREFIX2+_0x541d52(0x1ea)),window['location'][_0x541d52(0x1b9)]();return;}console[_0x541d52(0x1f6)](LOG_PREFIX2+'\x20Sending\x20customer\x20configuration...'),await sendConfiguration();if(state[_0x541d52(0x1d1)]){const _0x2be53b=document[_0x541d52(0x206)](_0x541d52(0x273))!==null;console[_0x541d52(0x1f6)](LOG_PREFIX2+'\x20Enhancement\x20detection:\x20wasEnhanced='+_0x2be53b);if(!_0x2be53b){console[_0x541d52(0x1f6)](LOG_PREFIX2+_0x541d52(0x1cf)),window[_0x541d52(0x1ba)][_0x541d52(0x1b9)]();return;}}console['log'](LOG_PREFIX2+_0x541d52(0x1c8)),updateOverlay(),console[_0x541d52(0x1f6)](LOG_PREFIX2+_0x541d52(0x1c3));}catch(_0x478722){console['error'](LOG_PREFIX2+'\x20Failed\x20to\x20register\x20service\x20worker:',_0x478722);}}async function sendConfiguration(){const _0x1984ca=_0x4dbb83;console[_0x1984ca(0x1f6)](LOG_PREFIX2+_0x1984ca(0x254)),console[_0x1984ca(0x1f6)](LOG_PREFIX2+_0x1984ca(0x1ed)+state[_0x1984ca(0x1d1)]+_0x1984ca(0x244)+!!currentOptions2);if(!state[_0x1984ca(0x1d1)]||!currentOptions2){console[_0x1984ca(0x1f6)](LOG_PREFIX2+_0x1984ca(0x1af));return;}const _0x51a7e4=await resolveWorker();if(!_0x51a7e4){console[_0x1984ca(0x1cc)](LOG_PREFIX2+_0x1984ca(0x260));return;}const _0x47d4bb={'publishableKey':currentOptions2[_0x1984ca(0x248)],'callbackBypass':currentOptions2[_0x1984ca(0x258)],'securityMode':currentOptions2[_0x1984ca(0x229)]};console[_0x1984ca(0x1f6)](LOG_PREFIX2+_0x1984ca(0x1d9),JSON[_0x1984ca(0x1ec)](_0x47d4bb,null,0x2)),_0x51a7e4[_0x1984ca(0x26a)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x47d4bb}),console[_0x1984ca(0x1f6)](LOG_PREFIX2+'\x20Config\x20sent\x20to\x20SW');}async function unregisterServiceWorker(_0x4d038a){const _0x4d74c2=_0x4dbb83;console[_0x4d74c2(0x1f6)](LOG_PREFIX2+_0x4d74c2(0x239));if(!(_0x4d74c2(0x26f)in navigator)){console[_0x4d74c2(0x1f6)](LOG_PREFIX2+_0x4d74c2(0x1c4));return;}try{const _0x432e09=registration??await navigator[_0x4d74c2(0x26f)][_0x4d74c2(0x22e)]('/');if(!_0x432e09){console['log'](LOG_PREFIX2+_0x4d74c2(0x1d3));return;}console[_0x4d74c2(0x1f6)](LOG_PREFIX2+_0x4d74c2(0x1a6),{'scope':_0x432e09['scope'],'active':_0x432e09['active']?.[_0x4d74c2(0x209)],'waiting':_0x432e09['waiting']?.[_0x4d74c2(0x209)],'installing':_0x432e09[_0x4d74c2(0x26e)]?.[_0x4d74c2(0x209)]});const _0x31a8b5=[_0x432e09[_0x4d74c2(0x234)]?.['scriptURL'],_0x432e09[_0x4d74c2(0x1c5)]?.['scriptURL'],_0x432e09[_0x4d74c2(0x26e)]?.[_0x4d74c2(0x209)]],_0x538491=_0x31a8b5[_0x4d74c2(0x25a)](_0xcae31e=>_0xcae31e&&ownsServiceWorker(_0xcae31e,_0x4d038a));if(!_0x538491){console[_0x4d74c2(0x1f6)](LOG_PREFIX2+_0x4d74c2(0x1a0));return;}_0x432e09[_0x4d74c2(0x234)]&&(console[_0x4d74c2(0x1f6)](LOG_PREFIX2+_0x4d74c2(0x1db)),_0x432e09['active'][_0x4d74c2(0x26a)]({'type':WORKER_MESSAGE_DISABLE})),console[_0x4d74c2(0x1f6)](LOG_PREFIX2+_0x4d74c2(0x221)),await _0x432e09[_0x4d74c2(0x25c)](),registration=null,currentOptions2=null,console['log'](LOG_PREFIX2+'\x20SW\x20unregistered\x20successfully');}catch(_0x4aa3b2){console['error'](LOG_PREFIX2+'\x20Failed\x20to\x20unregister\x20service\x20worker:',_0x4aa3b2);}}function ownsServiceWorker(_0x59309a,_0x28d1d1){const _0x322313=_0x4dbb83,_0xfdd068=typeof window!==_0x322313(0x21a)?window[_0x322313(0x1ba)][_0x322313(0x222)]:'',_0x387022=new URL(_0x28d1d1,_0xfdd068||void 0x0)[_0x322313(0x1ac)],_0x1499ff=_0x59309a===_0x387022||_0x59309a[_0x322313(0x1f3)]('sw-enhance');return console[_0x322313(0x1f6)](LOG_PREFIX2+_0x322313(0x1c6)+_0x59309a+',\x20expected='+_0x387022+',\x20owns='+_0x1499ff),_0x1499ff;}function ownsCurrentController(_0x2dfb57){const _0x3a0e51=_0x4dbb83;if(typeof navigator===_0x3a0e51(0x21a))return![];const _0x5c8769=navigator[_0x3a0e51(0x26f)]?.[_0x3a0e51(0x1d0)];if(!_0x5c8769)return console[_0x3a0e51(0x1f6)](LOG_PREFIX2+_0x3a0e51(0x1b0)),![];return ownsServiceWorker(_0x5c8769[_0x3a0e51(0x209)],_0x2dfb57);}async function detectBlockingServiceWorker(_0x1f99f){const _0x495131=_0x4dbb83;if(!navigator['serviceWorker'])return null;try{const _0x23af88=await navigator[_0x495131(0x26f)][_0x495131(0x22e)]('/');console['log'](LOG_PREFIX2+_0x495131(0x249),_0x23af88?.[_0x495131(0x234)]?.[_0x495131(0x209)]??_0x495131(0x1bf));const _0x3d7167=_0x23af88?.[_0x495131(0x234)]?.['scriptURL'];if(!_0x3d7167)return null;if(ownsServiceWorker(_0x3d7167,_0x1f99f))return null;return _0x3d7167;}catch(_0x57b6ee){return console[_0x495131(0x19d)](LOG_PREFIX2+_0x495131(0x257),_0x57b6ee),null;}}async function resolveWorker(){const _0x2151b0=_0x4dbb83,_0x187b02=registration??await navigator['serviceWorker']?.['getRegistration']('/'),_0x496dca=_0x187b02?.[_0x2151b0(0x234)]??_0x187b02?.[_0x2151b0(0x1c5)]??_0x187b02?.[_0x2151b0(0x26e)]??null;return console[_0x2151b0(0x1f6)](LOG_PREFIX2+'\x20resolveWorker:',_0x496dca?.[_0x2151b0(0x209)]??_0x2151b0(0x1bf),'state:\x20'+(_0x496dca?.[_0x2151b0(0x22b)]??_0x2151b0(0x1f4))),_0x496dca;}var LOG_PREFIX3=_0x4dbb83(0x20e);function isInitialized(){const _0x2064a8=_0x4dbb83;return typeof window!==_0x2064a8(0x21a)&&window[_0x2064a8(0x1fa)]===!![];}function setInitialized(_0x595367){const _0x8bd3f3=_0x4dbb83;typeof window!==_0x8bd3f3(0x21a)&&(window[_0x8bd3f3(0x1fa)]=_0x595367);}function getOptions(){const _0x305555=_0x4dbb83;return typeof window!=='undefined'?window[_0x305555(0x255)]??null:null;}function setOptions(_0x453145){const _0x4a5dc8=_0x4dbb83;typeof window!==_0x4a5dc8(0x21a)&&(window[_0x4a5dc8(0x255)]=_0x453145);}var Enhance={'init'(_0x2d4464){const _0x5d78c5=_0x4dbb83,_0x52b8a2=Date['now']();console[_0x5d78c5(0x1f6)](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x52b8a2),console['log'](LOG_PREFIX3+_0x5d78c5(0x227)+window[_0x5d78c5(0x1ba)][_0x5d78c5(0x1ac)]),console[_0x5d78c5(0x1f6)](LOG_PREFIX3+_0x5d78c5(0x21b)+document[_0x5d78c5(0x1f0)]),console[_0x5d78c5(0x1f6)](LOG_PREFIX3+_0x5d78c5(0x1a3),JSON[_0x5d78c5(0x1ec)](_0x2d4464,null,0x2));if(isInitialized())return console[_0x5d78c5(0x1cc)](LOG_PREFIX3+_0x5d78c5(0x228)),window[_0x5d78c5(0x1b5)]??createController();setInitialized(!![]),console[_0x5d78c5(0x1f6)](LOG_PREFIX3+_0x5d78c5(0x1c1));const _0x3de91c=normalizeOptions(_0x2d4464);setOptions(_0x3de91c),console[_0x5d78c5(0x1f6)](LOG_PREFIX3+_0x5d78c5(0x1ee),JSON['stringify'](_0x3de91c,null,0x2));const _0x1b8c3b=parseUrlParams();console['log'](LOG_PREFIX3+_0x5d78c5(0x1fc),JSON['stringify'](_0x1b8c3b,null,0x2));if(_0x1b8c3b[_0x5d78c5(0x24f)])return cleanUrlParam(_0x5d78c5(0x242)),console[_0x5d78c5(0x1f6)](LOG_PREFIX3+'\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting'),createController();if(_0x1b8c3b[_0x5d78c5(0x26b)])return console['log'](LOG_PREFIX3+_0x5d78c5(0x1dd)),console[_0x5d78c5(0x1f6)](LOG_PREFIX3+_0x5d78c5(0x22c)+_0x1b8c3b[_0x5d78c5(0x1fb)]),console['log'](LOG_PREFIX3+_0x5d78c5(0x217)+_0x1b8c3b[_0x5d78c5(0x20a)]),state[_0x5d78c5(0x1d1)]=!![],console[_0x5d78c5(0x1f6)](LOG_PREFIX3+_0x5d78c5(0x1c0)),void loadOverlay({'overlayPath':_0x3de91c[_0x5d78c5(0x245)],'enableViteHmr':_0x3de91c[_0x5d78c5(0x1eb)]['enableViteHmr'],'options':_0x3de91c,'onToggle':handleToggle}),console[_0x5d78c5(0x1f6)](LOG_PREFIX3+_0x5d78c5(0x1fe)),void registerServiceWorker(_0x3de91c),console[_0x5d78c5(0x1f6)](LOG_PREFIX3+_0x5d78c5(0x225)),createController();return console[_0x5d78c5(0x1f6)](LOG_PREFIX3+_0x5d78c5(0x1df)),console[_0x5d78c5(0x1f6)](LOG_PREFIX3+_0x5d78c5(0x1b4)),void unregisterServiceWorker(_0x3de91c[_0x5d78c5(0x21f)]),console[_0x5d78c5(0x1f6)](LOG_PREFIX3+_0x5d78c5(0x1a7)),import.meta.hot&&(console[_0x5d78c5(0x1f6)](LOG_PREFIX3+_0x5d78c5(0x270)),import.meta.hot['on'](_0x5d78c5(0x212),_0xaa272c=>{const _0x236dea=_0x5d78c5;console[_0x236dea(0x1f6)](LOG_PREFIX3+_0x236dea(0x218),_0xaa272c),state[_0x236dea(0x200)]={'message':_0xaa272c[_0x236dea(0x266)]['message']},updateOverlay();}),import.meta.hot['on'](_0x5d78c5(0x1e5),()=>{const _0x12d3b3=_0x5d78c5;state[_0x12d3b3(0x200)]&&(console[_0x12d3b3(0x1f6)](LOG_PREFIX3+'\x20Vite\x20update\x20pending\x20-\x20clearing\x20error'),state[_0x12d3b3(0x200)]=null,updateOverlay());})),createController();}};function createController(){const _0x2a14b1=_0x4dbb83,_0x34b52c={'enable'(){const _0x8d7a42=_0x49de,_0x367616=getOptions();if(!_0x367616)return;state['enabled']=!![],void loadOverlay({'overlayPath':_0x367616[_0x8d7a42(0x245)],'enableViteHmr':_0x367616['overlay'][_0x8d7a42(0x20c)],'options':_0x367616,'onToggle':handleToggle}),void registerServiceWorker(_0x367616),void sendConfiguration(),updateOverlay();},'disable'(){const _0x22b251=_0x49de,_0x793266=getOptions();if(!_0x793266)return;state[_0x22b251(0x1d1)]=![],state['controlled']=![],updateOverlay(),void unregisterServiceWorker(_0x793266[_0x22b251(0x21f)]);},'status'(){const _0x1ced0b=_0x49de;return{'enabled':state['enabled'],'controlled':state[_0x1ced0b(0x1aa)]};}};return typeof window!=='undefined'&&(window[_0x2a14b1(0x1b5)]=_0x34b52c),_0x34b52c;}function handleToggle(){const _0x4ace47=_0x4dbb83,_0x49dc8c=createController();state[_0x4ace47(0x1d1)]?_0x49dc8c['disable']():_0x49dc8c['enable']();}function parseUrlParams(){const _0x51a8c9=_0x4dbb83,_0x3a6d13=new URL(window['location'][_0x51a8c9(0x1ac)]),_0x52134d=_0x3a6d13['searchParams'][_0x51a8c9(0x1c9)]('enhance')?.[_0x51a8c9(0x250)](),_0x5829ab=_0x3a6d13[_0x51a8c9(0x1a8)][_0x51a8c9(0x1c9)]('enhancementUrl'),_0x10dd66=_0x3a6d13['searchParams'][_0x51a8c9(0x1c9)](_0x51a8c9(0x1be));return{'hasEnhancement':Boolean(_0x5829ab||_0x10dd66),'explicitDisable':_0x52134d==='0'||_0x52134d===_0x51a8c9(0x20b)||_0x52134d===_0x51a8c9(0x211),'enhancementUrl':_0x5829ab,'enhancementId':_0x10dd66};}function cleanUrlParam(_0x12cb94){const _0x3965c9=_0x4dbb83,_0x4ffc2f=new URL(window[_0x3965c9(0x1ba)][_0x3965c9(0x1ac)]);_0x4ffc2f[_0x3965c9(0x1a8)]['has'](_0x12cb94)&&(_0x4ffc2f[_0x3965c9(0x1a8)][_0x3965c9(0x1cd)](_0x12cb94),window[_0x3965c9(0x215)]['replaceState'](null,document[_0x3965c9(0x256)],_0x4ffc2f[_0x3965c9(0x1b6)]()));}var package_default={'name':'@enhance-eng/sandbox','version':'0.3.21','type':'module','description':_0x4dbb83(0x253),'license':_0x4dbb83(0x208),'main':_0x4dbb83(0x274),'module':_0x4dbb83(0x274),'types':_0x4dbb83(0x1e1),'exports':{'.':{'types':_0x4dbb83(0x1e1),'import':_0x4dbb83(0x274)},'./vite':{'types':'./dev/vite/index.d.ts','import':_0x4dbb83(0x1f2)}},'files':[_0x4dbb83(0x1b2)],'bin':{'enhance-sandbox':_0x4dbb83(0x23a)},'scripts':{'typecheck':'tsc\x20--noEmit','dev':_0x4dbb83(0x238),'dev:build':'ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','dev:staging':_0x4dbb83(0x1f1),'dev:staging:build':_0x4dbb83(0x240),'build':_0x4dbb83(0x19f),'build:release':_0x4dbb83(0x26c),'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':_0x4dbb83(0x1f9),'zod':_0x4dbb83(0x264)},'devDependencies':{'@types/node':_0x4dbb83(0x23f),'javascript-obfuscator':'^4.1.1','tsup':_0x4dbb83(0x22d),'vite':_0x4dbb83(0x1dc)},'publishConfig':{'access':_0x4dbb83(0x22f)}},DEFAULT_SERVICE_WORKER_PATH=_0x4dbb83(0x24c),DEFAULT_RUNTIME_PATH=_0x4dbb83(0x216),PACKAGE_VERSION=typeof package_default['version']===_0x4dbb83(0x261)?package_default[_0x4dbb83(0x23b)]:'0.0.0';function normalizeAssetPath(_0x5b4f97){const _0x2d875a=_0x4dbb83;if(!_0x5b4f97)return _0x5b4f97;if(_0x5b4f97[_0x2d875a(0x235)](_0x2d875a(0x232))||_0x5b4f97[_0x2d875a(0x235)](_0x2d875a(0x1f5)))return _0x5b4f97;const _0x5c8d3d=_0x5b4f97[_0x2d875a(0x25e)](/^\.\//,'');return _0x5c8d3d['startsWith']('/')?_0x5c8d3d:'/'+_0x5c8d3d;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x14366c){return Enhance['init'](_0x14366c);},'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 _0xb2d511=_0x4dbb83;return Enhance2[_0xb2d511(0x1d6)]();}function runtimeURL(){const _0x3b1e2c=_0x4dbb83;return Enhance2[_0x3b1e2c(0x219)]();}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 _0x48fec9=_0xf62a;(function(_0x3d6c72,_0x4be075){const _0x18f3d4=_0xf62a,_0x31b068=_0x3d6c72();while(!![]){try{const _0xc9cbda=parseInt(_0x18f3d4(0x9f))/0x1*(-parseInt(_0x18f3d4(0xe0))/0x2)+parseInt(_0x18f3d4(0xf2))/0x3+-parseInt(_0x18f3d4(0x8f))/0x4+-parseInt(_0x18f3d4(0x119))/0x5+-parseInt(_0x18f3d4(0x83))/0x6*(parseInt(_0x18f3d4(0x11f))/0x7)+parseInt(_0x18f3d4(0x122))/0x8+-parseInt(_0x18f3d4(0xd1))/0x9*(-parseInt(_0x18f3d4(0x128))/0xa);if(_0xc9cbda===_0x4be075)break;else _0x31b068['push'](_0x31b068['shift']());}catch(_0x20f2d8){_0x31b068['push'](_0x31b068['shift']());}}}(_0x10c0,0xc3072));import{Command}from'commander';import{resolve,relative}from'path';var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x48fec9(0xf6)?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x48fec9(0x109),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x48fec9(0xf6)?__ENHANCE_DEFAULT_BACKEND_URL__:_0x48fec9(0xff),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!=='undefined'?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x48fec9(0x10c)]('[Enhance\x20Config]\x20Build-time\x20defaults:',{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x56ab3f){const _0x3d28bf=_0x48fec9;if(!_0x56ab3f['publishableKey'])throw new Error('[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()');const _0x38175f=_0x56ab3f['__development']??{};return{'publishableKey':_0x56ab3f[_0x3d28bf(0xd4)],'callbackBypass':_0x56ab3f[_0x3d28bf(0xd8)]??[],'overlay':{'enabled':!![],'position':_0x3d28bf(0x9d),'enableViteHmr':_0x38175f['enableOverlayHmr']??DEFAULT_OVERLAY_HMR},'logLevel':_0x3d28bf(0x158),'swPath':_0x3d28bf(0x107),'overlayPath':_0x38175f[_0x3d28bf(0xcb)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x3d28bf(0x160),'security':_0x38175f[_0x3d28bf(0xe1)]??_0x3d28bf(0xce),'backendUrl':_0x38175f[_0x3d28bf(0xba)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x487e03=_0x48fec9;try{const _0x259cbc=new URLSearchParams(window[_0x487e03(0xd7)][_0x487e03(0xa5)]);return _0x259cbc[_0x487e03(0x14b)](_0x487e03(0xd2))?.[_0x487e03(0xae)]()||'';}catch{return'';}}function _0xf62a(_0x353e8a,_0x5eadad){_0x353e8a=_0x353e8a-0x7b;const _0x10c066=_0x10c0();let _0xf62a31=_0x10c066[_0x353e8a];return _0xf62a31;}var LOG_PREFIX=_0x48fec9(0x134),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x36d06e){const _0x4d5fbd=_0x48fec9;console['log'](LOG_PREFIX+_0x4d5fbd(0x90)),console[_0x4d5fbd(0x10c)](LOG_PREFIX+_0x4d5fbd(0xc3)+_0x36d06e[_0x4d5fbd(0xcb)]),console[_0x4d5fbd(0x10c)](LOG_PREFIX+_0x4d5fbd(0x11e)+_0x36d06e[_0x4d5fbd(0x124)]),currentOptions=_0x36d06e[_0x4d5fbd(0x14d)],toggleHandler=_0x36d06e[_0x4d5fbd(0xf0)];if(overlayController){console['log'](LOG_PREFIX+'\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay'),updateOverlay();return;}if(overlayLoadPromise)return console[_0x4d5fbd(0x10c)](LOG_PREFIX+_0x4d5fbd(0x120)),overlayLoadPromise;console[_0x4d5fbd(0x10c)](LOG_PREFIX+_0x4d5fbd(0xd6)),overlayLoadPromise=doLoadOverlay(_0x36d06e);try{await overlayLoadPromise,console['log'](LOG_PREFIX+_0x4d5fbd(0x101));}catch(_0x4dd7a9){console[_0x4d5fbd(0xb0)](LOG_PREFIX+'\x20loadOverlay()\x20failed:',_0x4dd7a9);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x6a7a7a){const _0x181127=_0x48fec9;console[_0x181127(0x10c)](LOG_PREFIX+_0x181127(0x133));if(typeof window===_0x181127(0xf6)){console['log'](LOG_PREFIX+_0x181127(0x135));return;}if(window[_0x181127(0xc2)]){console[_0x181127(0x10c)](LOG_PREFIX+'\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit'),overlayController=window['__enhanceOverlay'];return;}console['log'](LOG_PREFIX+_0x181127(0x159));try{_0x6a7a7a[_0x181127(0x124)]&&(console[_0x181127(0x10c)](LOG_PREFIX+_0x181127(0xe4)),await setupRemoteHMR(_0x6a7a7a['overlayPath']));console['log'](LOG_PREFIX+'\x20Importing\x20overlay\x20module\x20from:\x20'+_0x6a7a7a[_0x181127(0xcb)]);const _0x2ca66b=Date[_0x181127(0x102)](),_0x19e485=await import(_0x6a7a7a[_0x181127(0xcb)]);console[_0x181127(0x10c)](LOG_PREFIX+_0x181127(0xb9)+(Date[_0x181127(0x102)]()-_0x2ca66b)+'ms'),console[_0x181127(0x10c)](LOG_PREFIX+_0x181127(0x8b),Object[_0x181127(0xa6)](_0x19e485));if(typeof _0x19e485?.[_0x181127(0x106)]!==_0x181127(0xbc)){console[_0x181127(0xb0)](LOG_PREFIX+_0x181127(0x157)),console[_0x181127(0xb0)](LOG_PREFIX+_0x181127(0x144),Object['keys'](_0x19e485));return;}console[_0x181127(0x10c)](LOG_PREFIX+_0x181127(0x11b));const _0x2080d4=_0x19e485[_0x181127(0x106)]();console[_0x181127(0x10c)](LOG_PREFIX+_0x181127(0xea),_0x2080d4),overlayController=_0x2080d4,window[_0x181127(0xc2)]=_0x2080d4,_0x2080d4['onToggle'](_0x6a7a7a[_0x181127(0xf0)]),console[_0x181127(0x10c)](LOG_PREFIX+_0x181127(0x11c)),console[_0x181127(0x10c)](LOG_PREFIX+_0x181127(0x13d)),updateOverlay();}catch(_0xc27856){console['error'](LOG_PREFIX+_0x181127(0xef),_0xc27856);}}function updateOverlay(){const _0x305078=_0x48fec9;console[_0x305078(0x10c)](LOG_PREFIX+_0x305078(0x86)),console[_0x305078(0x10c)](LOG_PREFIX+_0x305078(0x88)+!!overlayController),console['log'](LOG_PREFIX+_0x305078(0x12b)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x305078(0x10c)](LOG_PREFIX+_0x305078(0x12f));return;}const _0x1ebfbc=composeOverlayState(currentOptions);console[_0x305078(0x10c)](LOG_PREFIX+'\x20Updating\x20overlay\x20with\x20state:',JSON['stringify'](_0x1ebfbc,null,0x2)),overlayController['update'](_0x1ebfbc),console[_0x305078(0x10c)](LOG_PREFIX+_0x305078(0x148));}function composeOverlayState(_0x7406c5){const _0x349171=_0x48fec9,_0x106e61=getEnhancementId();return console[_0x349171(0x10c)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20enhancementId:\x20'+_0x106e61),console[_0x349171(0x10c)](LOG_PREFIX+_0x349171(0xb5)+state[_0x349171(0x14c)]),console[_0x349171(0x10c)](LOG_PREFIX+_0x349171(0xc5)+state['controlled']),{'enhancementId':_0x106e61,'enabled':state[_0x349171(0x14c)],'controlled':state[_0x349171(0x162)],'overlayPosition':_0x7406c5['overlay'][_0x349171(0xb8)],'securityMode':_0x7406c5[_0x349171(0xe1)],'backendBaseUrl':_0x7406c5[_0x349171(0xba)],'appError':state[_0x349171(0xdc)]};}async function setupRemoteHMR(_0xda3e8f){const _0x47a228=_0x48fec9;console[_0x47a228(0x10c)](LOG_PREFIX+_0x47a228(0xa0)+_0xda3e8f);if(typeof window===_0x47a228(0xf6))return;try{const _0x3cfbf8=new URL(_0xda3e8f,window[_0x47a228(0xd7)]['origin']),_0x3ecda1=_0x3cfbf8[_0x47a228(0x92)];console[_0x47a228(0x10c)](LOG_PREFIX+_0x47a228(0x94)+_0x3ecda1+_0x47a228(0xcf)+window[_0x47a228(0xd7)][_0x47a228(0x92)]);if(_0x3ecda1===window[_0x47a228(0xd7)][_0x47a228(0x92)]){console[_0x47a228(0x10c)](LOG_PREFIX+_0x47a228(0xb4));return;}console[_0x47a228(0x10c)](LOG_PREFIX+_0x47a228(0x130)),await ensureReactRefreshPreamble(_0x3ecda1),await ensureViteClient(_0x3ecda1),console['log'](LOG_PREFIX+_0x47a228(0x125));}catch(_0x57b9d5){console[_0x47a228(0x8e)](LOG_PREFIX+_0x47a228(0x126),_0x57b9d5);}}async function ensureReactRefreshPreamble(_0x5a2ef4){const _0x2e40b1=_0x48fec9;window['__enhanceReactRefreshInstalledOrigins']??=new Set();if(window['__enhanceReactRefreshInstalledOrigins']['has'](_0x5a2ef4)){console[_0x2e40b1(0x10c)](LOG_PREFIX+'\x20React\x20Refresh\x20already\x20installed\x20for\x20'+_0x5a2ef4);return;}console[_0x2e40b1(0x10c)](LOG_PREFIX+_0x2e40b1(0x117)+_0x5a2ef4+'...');const _0x28c4d6=await import(_0x5a2ef4+_0x2e40b1(0xd5)),_0x242fcb=_0x28c4d6&&typeof _0x28c4d6===_0x2e40b1(0xaa)&&_0x2e40b1(0x93)in _0x28c4d6?_0x28c4d6[_0x2e40b1(0x93)]:_0x28c4d6;if(!isRefreshRuntime(_0x242fcb)){console['warn'](LOG_PREFIX+_0x2e40b1(0x97));return;}_0x242fcb[_0x2e40b1(0xf7)](window),window[_0x2e40b1(0x113)]=()=>{},window['$RefreshSig$']=()=>_0x28fb68=>_0x28fb68,window[_0x2e40b1(0x104)]=!![],window['__enhanceReactRefreshInstalledOrigins'][_0x2e40b1(0x136)](_0x5a2ef4),console[_0x2e40b1(0x10c)](LOG_PREFIX+_0x2e40b1(0x10e)+_0x5a2ef4);}async function ensureViteClient(_0x2c4dc4){const _0x6f95cb=_0x48fec9;window[_0x6f95cb(0xbe)]??=new Set();if(window[_0x6f95cb(0xbe)]['has'](_0x2c4dc4)){console[_0x6f95cb(0x10c)](LOG_PREFIX+_0x6f95cb(0x118)+_0x2c4dc4);return;}console[_0x6f95cb(0x10c)](LOG_PREFIX+_0x6f95cb(0x95)+_0x2c4dc4+_0x6f95cb(0xe5)),await import(_0x2c4dc4+_0x6f95cb(0x121)),window[_0x6f95cb(0xbe)][_0x6f95cb(0x136)](_0x2c4dc4),console[_0x6f95cb(0x10c)](LOG_PREFIX+_0x6f95cb(0xbd)+_0x2c4dc4);}function isRefreshRuntime(_0x53609e){const _0x433724=_0x48fec9;return typeof _0x53609e==='object'&&_0x53609e!==null&&_0x433724(0xf7)in _0x53609e&&typeof _0x53609e[_0x433724(0xf7)]===_0x433724(0xbc);}var WORKER_MESSAGE_CONFIG='enhance:configure',WORKER_MESSAGE_DISABLE=_0x48fec9(0x167),LOG_PREFIX2=_0x48fec9(0x114),registration=null,currentOptions2=null;async function registerServiceWorker(_0x2cf96a){const _0x5844a7=_0x48fec9;console[_0x5844a7(0x10c)](LOG_PREFIX2+'\x20registerServiceWorker()\x20called');if(!(_0x5844a7(0x80)in navigator)){console['warn'](LOG_PREFIX2+'\x20Service\x20workers\x20NOT\x20supported');return;}const _0x1bf166=!!navigator[_0x5844a7(0x80)][_0x5844a7(0x7b)];currentOptions2=_0x2cf96a;const _0x26faa8=await detectBlockingServiceWorker(_0x2cf96a[_0x5844a7(0xe7)]);if(_0x26faa8){console[_0x5844a7(0xb0)](LOG_PREFIX2+_0x5844a7(0xde)+_0x26faa8);return;}try{console[_0x5844a7(0x10c)](LOG_PREFIX2+_0x5844a7(0x9e)+_0x2cf96a[_0x5844a7(0xe7)]+_0x5844a7(0xe5)),registration=await navigator[_0x5844a7(0x80)][_0x5844a7(0xe3)](_0x2cf96a[_0x5844a7(0xe7)],{'scope':'/'}),console[_0x5844a7(0x10c)](LOG_PREFIX2+_0x5844a7(0xec)),await navigator['serviceWorker'][_0x5844a7(0x12c)],console['log'](LOG_PREFIX2+_0x5844a7(0xa2)),state[_0x5844a7(0x162)]=ownsCurrentController(_0x2cf96a['swPath']);if(!_0x1bf166&&!navigator['serviceWorker']['controller']){console[_0x5844a7(0x10c)](LOG_PREFIX2+_0x5844a7(0x116)),window[_0x5844a7(0xd7)][_0x5844a7(0x89)]();return;}console['log'](LOG_PREFIX2+_0x5844a7(0xab)),await sendConfiguration();if(state['enabled']){const _0x306d85=document['querySelector'](_0x5844a7(0x7d))!==null;if(!_0x306d85){console['log'](LOG_PREFIX2+_0x5844a7(0x15e)),window[_0x5844a7(0xd7)][_0x5844a7(0x89)]();return;}}updateOverlay(),console[_0x5844a7(0x10c)](LOG_PREFIX2+_0x5844a7(0xda));}catch(_0x766656){console[_0x5844a7(0xb0)](LOG_PREFIX2+_0x5844a7(0x10b),_0x766656);}}async function sendConfiguration(){const _0xb2a0=_0x48fec9;if(!state[_0xb2a0(0x14c)]||!currentOptions2)return;const _0x4b01b6=await resolveWorker();if(!_0x4b01b6){console[_0xb2a0(0x8e)](LOG_PREFIX2+_0xb2a0(0xb7));return;}const _0x3066f9=window[_0xb2a0(0x13e)]??null,_0x2658a1={'publishableKey':currentOptions2[_0xb2a0(0xd4)],'callbackBypass':currentOptions2[_0xb2a0(0xd8)],'securityMode':currentOptions2[_0xb2a0(0xe1)],'enhancementUrl':_0x3066f9??void 0x0};console[_0xb2a0(0x10c)](LOG_PREFIX2+_0xb2a0(0x161),JSON[_0xb2a0(0xe2)](_0x2658a1,null,0x2)),_0x4b01b6['postMessage']({'type':WORKER_MESSAGE_CONFIG,'config':_0x2658a1});}async function unregisterServiceWorker(_0x2d2104){const _0xae26ff=_0x48fec9;console[_0xae26ff(0x10c)](LOG_PREFIX2+_0xae26ff(0x138));if(!(_0xae26ff(0x80)in navigator))return;try{const _0x29ceee=registration??await navigator['serviceWorker'][_0xae26ff(0xbf)]('/');if(!_0x29ceee)return;const _0x485100=[_0x29ceee[_0xae26ff(0xd3)]?.[_0xae26ff(0xf4)],_0x29ceee[_0xae26ff(0xc0)]?.[_0xae26ff(0xf4)],_0x29ceee[_0xae26ff(0xfa)]?.['scriptURL']],_0xd8a29a=_0x485100[_0xae26ff(0xcd)](_0x29a1c5=>_0x29a1c5&&ownsServiceWorker(_0x29a1c5,_0x2d2104));if(!_0xd8a29a)return;_0x29ceee[_0xae26ff(0xd3)]&&_0x29ceee['active'][_0xae26ff(0x127)]({'type':WORKER_MESSAGE_DISABLE}),await _0x29ceee[_0xae26ff(0x123)](),registration=null,currentOptions2=null,console['log'](LOG_PREFIX2+_0xae26ff(0xc1));}catch(_0x2fc6d2){console[_0xae26ff(0xb0)](LOG_PREFIX2+_0xae26ff(0x13f),_0x2fc6d2);}}function ownsServiceWorker(_0x320f98,_0x1e7156){const _0x4a016e=_0x48fec9,_0x484a9f=typeof window!==_0x4a016e(0xf6)?window[_0x4a016e(0xd7)]['origin']:'',_0x313a80=new URL(_0x1e7156,_0x484a9f||void 0x0)[_0x4a016e(0x112)];return _0x320f98===_0x313a80||_0x320f98['includes']('sw-enhance');}function ownsCurrentController(_0x28d57e){const _0x7517a9=_0x48fec9,_0x3f3345=navigator['serviceWorker']?.[_0x7517a9(0x7b)];if(!_0x3f3345)return![];return ownsServiceWorker(_0x3f3345[_0x7517a9(0xf4)],_0x28d57e);}async function detectBlockingServiceWorker(_0x3f2e97){const _0x3c6d13=_0x48fec9;if(!navigator[_0x3c6d13(0x80)])return null;try{const _0x2d3a21=await navigator[_0x3c6d13(0x80)]['getRegistration']('/'),_0x467709=_0x2d3a21?.[_0x3c6d13(0xd3)]?.['scriptURL'];if(!_0x467709)return null;if(ownsServiceWorker(_0x467709,_0x3f2e97))return null;return _0x467709;}catch{return null;}}async function resolveWorker(){const _0x1110ec=_0x48fec9,_0x4fd506=registration??await navigator['serviceWorker']?.['getRegistration']('/');return _0x4fd506?.[_0x1110ec(0xd3)]??_0x4fd506?.[_0x1110ec(0xc0)]??_0x4fd506?.['installing']??null;}var LOG_PREFIX3='[Enhance\x20Runtime]',STORAGE_KEY_ENHANCEMENT_ID=_0x48fec9(0xa8),STORAGE_KEY_ENHANCEMENT_URL=_0x48fec9(0x16a);function isInitialized(){const _0x3f2fb1=_0x48fec9;return typeof window!==_0x3f2fb1(0xf6)&&window['__enhanceInitialized']===!![];}function setInitialized(_0x118577){const _0x460b67=_0x48fec9;typeof window!==_0x460b67(0xf6)&&(window[_0x460b67(0x137)]=_0x118577);}function getOptions(){const _0x3262b3=_0x48fec9;return typeof window!==_0x3262b3(0xf6)?window[_0x3262b3(0x14a)]??null:null;}function setOptions(_0x2bdef6){const _0xe826e2=_0x48fec9;typeof window!==_0xe826e2(0xf6)&&(window[_0xe826e2(0x14a)]=_0x2bdef6);}var Enhance={'init'(_0x52210d){const _0xe829cc=_0x48fec9,_0xc9bcab=Date[_0xe829cc(0x102)]();console[_0xe829cc(0x10c)](LOG_PREFIX3+_0xe829cc(0x169)+_0xc9bcab),console['log'](LOG_PREFIX3+_0xe829cc(0x99)+window['location'][_0xe829cc(0x112)]),console[_0xe829cc(0x10c)](LOG_PREFIX3+_0xe829cc(0x91)+document['readyState']);if(isInitialized())return console[_0xe829cc(0x8e)](LOG_PREFIX3+_0xe829cc(0xf5)),window[_0xe829cc(0x87)]??createController();setInitialized(!![]);const _0x5d946e=normalizeOptions(_0x52210d);setOptions(_0x5d946e);const _0x8591e3=parseEnhancementParams();console['log'](LOG_PREFIX3+_0xe829cc(0xb1),JSON['stringify'](_0x8591e3,null,0x2));if(_0x8591e3['explicitDisable'])return cleanUrlParam(_0xe829cc(0xfb)),clearPersistedEnhancement(),console['log'](LOG_PREFIX3+_0xe829cc(0x110)),createController();if(!_0x8591e3[_0xe829cc(0xee)])return console[_0xe829cc(0x10c)](LOG_PREFIX3+_0xe829cc(0x103)),void unregisterServiceWorker(_0x5d946e[_0xe829cc(0xe7)]),setupViteErrorListeners(),createController();return console[_0xe829cc(0x10c)](LOG_PREFIX3+'\x20Enhancement\x20mode\x20-\x20ID:\x20'+_0x8591e3['enhancementId']),state['enabled']=!![],void initializeEnhancement(_0x5d946e,_0x8591e3[_0xe829cc(0xee)],_0x8591e3[_0xe829cc(0xc7)]),createController();}};async function initializeEnhancement(_0x3b1a29,_0x134346,_0x49a3a0){const _0x47def0=_0x48fec9;let _0x553305=_0x49a3a0;if(!_0x553305){console[_0x47def0(0x10c)](LOG_PREFIX3+'\x20Resolving\x20enhancement\x20ID:\x20'+_0x134346),_0x553305=await resolveEnhancementUrl(_0x3b1a29,_0x134346);if(!_0x553305){console[_0x47def0(0xb0)](LOG_PREFIX3+_0x47def0(0xe8)),state[_0x47def0(0x14c)]=![];return;}}else console[_0x47def0(0x10c)](LOG_PREFIX3+'\x20Using\x20cached\x20enhancement\x20URL:\x20'+_0x553305);persistEnhancement(_0x134346,_0x553305),window[_0x47def0(0x13e)]=_0x553305,console[_0x47def0(0x10c)](LOG_PREFIX3+_0x47def0(0xed)),await registerServiceWorker(_0x3b1a29),console[_0x47def0(0x10c)](LOG_PREFIX3+_0x47def0(0x15a)),await loadOverlay({'overlayPath':_0x3b1a29['overlayPath'],'enableViteHmr':_0x3b1a29['overlay'][_0x47def0(0x124)],'options':_0x3b1a29,'onToggle':handleToggle}),console['log'](LOG_PREFIX3+'\x20Enhancement\x20initialization\x20complete');}async function resolveEnhancementUrl(_0x395fb9,_0x2bd551){const _0x222b6d=_0x48fec9,_0x4cd64b=_0x395fb9['backendUrl']+_0x222b6d(0x153)+_0x2bd551+_0x222b6d(0x13b);console[_0x222b6d(0x10c)](LOG_PREFIX3+_0x222b6d(0x15b)+_0x4cd64b);try{const _0x59cea7=await fetch(_0x4cd64b,{'headers':{'X-Enhance-Publishable-Key':_0x395fb9[_0x222b6d(0xd4)]}});if(!_0x59cea7['ok']){const _0x239d16=await _0x59cea7[_0x222b6d(0x13c)]();return console[_0x222b6d(0xb0)](LOG_PREFIX3+_0x222b6d(0x150)+_0x59cea7['status']+'\x20'+_0x239d16),null;}const _0x176ee3=await _0x59cea7[_0x222b6d(0x9c)](),_0x538b59=''+_0x395fb9[_0x222b6d(0xba)]+_0x176ee3[_0x222b6d(0x115)];return console[_0x222b6d(0x10c)](LOG_PREFIX3+_0x222b6d(0x11d)+_0x538b59),_0x538b59;}catch(_0x1dee80){return console[_0x222b6d(0xb0)](LOG_PREFIX3+_0x222b6d(0xc9),_0x1dee80),null;}}function parseEnhancementParams(){const _0x397dc5=_0x48fec9,_0x5c46cd=new URL(window[_0x397dc5(0xd7)]['href']),_0x16beab=_0x5c46cd[_0x397dc5(0x15f)][_0x397dc5(0x14b)]('enhance')?.[_0x397dc5(0xa3)](),_0x5525ef=_0x16beab==='0'||_0x16beab==='false'||_0x16beab===_0x397dc5(0xc8);let _0x3e978b=_0x5c46cd[_0x397dc5(0x15f)][_0x397dc5(0x14b)](_0x397dc5(0xd2)),_0x5e4e02=null;if(_0x3e978b)try{const _0x54b1a6=sessionStorage[_0x397dc5(0x141)](STORAGE_KEY_ENHANCEMENT_ID),_0x1f161a=sessionStorage[_0x397dc5(0x141)](STORAGE_KEY_ENHANCEMENT_URL);_0x54b1a6===_0x3e978b&&_0x1f161a&&(_0x5e4e02=_0x1f161a,console[_0x397dc5(0x10c)](LOG_PREFIX3+'\x20Found\x20cached\x20URL\x20for\x20enhancement\x20ID'));}catch{}else try{const _0x540fb7=sessionStorage[_0x397dc5(0x141)](STORAGE_KEY_ENHANCEMENT_ID),_0x5f4a5b=sessionStorage[_0x397dc5(0x141)](STORAGE_KEY_ENHANCEMENT_URL);_0x540fb7&&_0x5f4a5b&&(_0x3e978b=_0x540fb7,_0x5e4e02=_0x5f4a5b,console[_0x397dc5(0x10c)](LOG_PREFIX3+'\x20Restored\x20enhancement\x20from\x20sessionStorage'),_0x5c46cd[_0x397dc5(0x15f)][_0x397dc5(0x12a)](_0x397dc5(0xd2),_0x3e978b),window[_0x397dc5(0x143)][_0x397dc5(0x139)](null,document['title'],_0x5c46cd[_0x397dc5(0xfe)]()));}catch{}return{'enhancementId':_0x3e978b,'cachedUrl':_0x5e4e02,'explicitDisable':_0x5525ef};}function persistEnhancement(_0x56bdc6,_0x211178){const _0x41737c=_0x48fec9;try{sessionStorage[_0x41737c(0xc6)](STORAGE_KEY_ENHANCEMENT_ID,_0x56bdc6),sessionStorage[_0x41737c(0xc6)](STORAGE_KEY_ENHANCEMENT_URL,_0x211178),console[_0x41737c(0x10c)](LOG_PREFIX3+'\x20Persisted\x20enhancement\x20to\x20sessionStorage');}catch{}}function clearPersistedEnhancement(){const _0x2ec11b=_0x48fec9;try{sessionStorage[_0x2ec11b(0x11a)](STORAGE_KEY_ENHANCEMENT_ID),sessionStorage[_0x2ec11b(0x11a)](STORAGE_KEY_ENHANCEMENT_URL),console[_0x2ec11b(0x10c)](LOG_PREFIX3+_0x2ec11b(0xdb));}catch{}}function createController(){const _0x8b4b3e=_0x48fec9,_0x2e725b={'enable'(){const _0x49c3d4=_0xf62a,_0x34dc78=getOptions();if(!_0x34dc78)return;state[_0x49c3d4(0x14c)]=!![],void registerServiceWorker(_0x34dc78),void sendConfiguration(),updateOverlay();},'disable'(){const _0xbaca6e=_0xf62a,_0x18da1e=getOptions();if(!_0x18da1e)return;state[_0xbaca6e(0x14c)]=![],state['controlled']=![],clearPersistedEnhancement(),updateOverlay(),void unregisterServiceWorker(_0x18da1e[_0xbaca6e(0xe7)]);},'status'(){const _0x1e1722=_0xf62a;return{'enabled':state['enabled'],'controlled':state[_0x1e1722(0x162)]};}};return typeof window!==_0x8b4b3e(0xf6)&&(window['__enhanceController']=_0x2e725b),_0x2e725b;}function handleToggle(){const _0x2fd619=_0x48fec9,_0x39094b=createController();state[_0x2fd619(0x14c)]?_0x39094b[_0x2fd619(0x96)]():_0x39094b['enable']();}function _0x10c0(){const _0x5c20bb=['override','\x20BLOCKING\x20SW\x20detected:\x20','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','11282WNTiET','security','stringify','register','\x20Setting\x20up\x20remote\x20HMR...','...','push','swPath','\x20Failed\x20to\x20resolve\x20enhancement\x20-\x20aborting','./dev/vite/index.d.ts','\x20Controller\x20created:','public','\x20Waiting\x20for\x20SW\x20ready...','\x20Registering\x20SW\x20with\x20enhancement\x20URL...','enhancementId','\x20Failed\x20to\x20import/create\x20overlay:','onToggle','--filename\x20<name>','2208189MpkWwh','destinationPath','scriptURL','\x20Already\x20initialized\x20-\x20returning\x20existing\x20controller','undefined','injectIntoGlobalHook','requiredOption','all','installing','enhance','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','\x20(already\x20current)\x20[','toString','https://api.enhancelabs.ai','sw-enhance.js','\x20loadOverlay()\x20complete','now','\x20Normal\x20mode\x20-\x20no\x20enhancement','__vite_plugin_react_preamble_installed__','relativeDestination','createOverlay','/sw-enhance.js','https://','https://assets.enhancelabs.ai/overlay.js','action','\x20Failed\x20to\x20register\x20service\x20worker:','log','title','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','option','\x20Explicit\x20disable\x20-\x20exiting','sourcePath','href','$RefreshReg$','[Enhance\x20SW-Client]','operatingPath','\x20SW\x20just\x20activated\x20-\x20reloading\x20to\x20enable\x20enhancement','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','\x20Vite\x20client\x20already\x20loaded\x20for\x20','4466335gKqyVB','removeItem','\x20Calling\x20createOverlay()...','\x20Overlay\x20controller\x20initialized\x20and\x20cached','\x20Resolved\x20to:\x20','\x20enableViteHmr:\x20','21CBAnMx','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','/@vite/client','10250936dRFBmC','unregister','enableViteHmr','\x20HMR\x20setup\x20complete','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','postMessage','4377700lrmhRT','update','set','\x20currentOptions\x20exists:\x20','ready','Enhance\x20sandbox\x20utility\x20CLI','cwd','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','write','\x20→\x20','\x20doLoadOverlay()\x20starting...','[Enhance\x20Overlay]','\x20No\x20window\x20object\x20-\x20skipping','add','__enhanceInitialized','\x20unregisterServiceWorker()\x20called','replaceState','runtimeURL','/resolve','text','\x20Calling\x20updateOverlay()...','__enhanceResolvedUrl','\x20Failed\x20to\x20unregister\x20service\x20worker:','sha256','getItem','0.0.0','history','\x20Available\x20exports:','./dev/vite/index.js','Copied\x20','mkdir','\x20Overlay\x20update\x20complete','skipped','__enhanceOptions','get','enabled','options','filename','./dev/index.d.ts','\x20Resolution\x20failed:\x20','http://','module','/public/enhancements/','assets/enhance-runtime.js','dev/','name','\x20Module\x20missing\x20createOverlay\x20export!','info','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','\x20Loading\x20overlay...','\x20Calling:\x20','replace','description','\x20Page\x20not\x20enhanced\x20-\x20reloading','searchParams','/assets/enhance-runtime.js','\x20Sending\x20config\x20to\x20SW:','controlled','code','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','Print\x20the\x20current\x20asset\x20manifest','delete','enhance:disable','err','\x20init()\x20called\x20at\x20','enhance.enhancementUrl','controller','readFile','[data-enhance-runtime-bootstrap]','bun\x20version\x20patch\x20--no-git-tag-version','./dev/cli.js','serviceWorker','Directory\x20to\x20copy\x20the\x20service\x20worker\x20into','@enhance-eng/sandbox','3142446eAUSAz','--public-dir\x20<path>','../dist/index.js','\x20updateOverlay()\x20called','__enhanceController','\x20overlayController\x20exists:\x20','reload','^8.5.1','\x20Module\x20exports:','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','Skipped\x20','warn','6046616fYENxK','\x20loadOverlay()\x20called','\x20Document\x20readyState:\x20','origin','default','\x20Overlay\x20origin:\x20','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','disable','\x20Invalid\x20React\x20Refresh\x20runtime','swFilename','\x20Current\x20URL:\x20','prepare-sw','Override\x20the\x20service\x20worker\x20output\x20filename\x20(defaults\x20to\x20sw-enhance.js)','json','bottom-right','\x20Registering\x20SW\x20at\x20','132jiorfU','\x20setupRemoteHMR()\x20for\x20','0.3.21','\x20SW\x20ready','toLowerCase','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','search','keys','manifest','enhance.enhancementId','enhance-sandbox','object','\x20Sending\x20configuration\x20to\x20SW...','stdout','publicDir','trim','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','error','\x20Enhancement\x20params:','./dev/index.js','digest','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','\x20composeOverlayState\x20-\x20state.enabled:\x20','MIT','\x20No\x20service\x20worker\x20active\x20to\x20configure','position','\x20Module\x20imported\x20in\x20','backendUrl','^7.2.4','function','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','__viteHMRLoaded','getRegistration','waiting','\x20SW\x20unregistered','__enhanceOverlay','\x20overlayPath:\x20','version','\x20composeOverlayState\x20-\x20state.controlled:\x20','setItem','cachedUrl','off','\x20Resolution\x20error:','message','overlayPath','serviceWorkerURL','some','permissive',',\x20page\x20origin:\x20','ENOENT','72CTcfYv','enhancement','active','publishableKey','/@react-refresh','\x20Starting\x20fresh\x20overlay\x20load...','location','callbackBypass','startsWith','\x20registerServiceWorker()\x20complete','\x20Cleared\x20persisted\x20enhancement','appError'];_0x10c0=function(){return _0x5c20bb;};return _0x10c0();}function cleanUrlParam(_0x34b9e2){const _0x59eabc=_0x48fec9,_0xa2a1b2=new URL(window['location'][_0x59eabc(0x112)]);_0xa2a1b2[_0x59eabc(0x15f)]['has'](_0x34b9e2)&&(_0xa2a1b2[_0x59eabc(0x15f)][_0x59eabc(0x166)](_0x34b9e2),window['history'][_0x59eabc(0x139)](null,document[_0x59eabc(0x10d)],_0xa2a1b2['toString']()));}function setupViteErrorListeners(){import.meta.hot&&(import.meta.hot['on']('vite:error',_0x405700=>{const _0x269b13=_0xf62a;state[_0x269b13(0xdc)]={'message':_0x405700[_0x269b13(0x168)][_0x269b13(0xca)]},updateOverlay();}),import.meta.hot['on']('vite:beforeUpdate',()=>{const _0x4e05bf=_0xf62a;state[_0x4e05bf(0xdc)]&&(state['appError']=null,updateOverlay());}));}var package_default={'name':_0x48fec9(0x82),'version':_0x48fec9(0xa1),'type':_0x48fec9(0x152),'description':_0x48fec9(0xa4),'license':_0x48fec9(0xb6),'main':_0x48fec9(0xb2),'module':_0x48fec9(0xb2),'types':'./dev/index.d.ts','exports':{'.':{'types':_0x48fec9(0x14f),'import':_0x48fec9(0xb2)},'./vite':{'types':_0x48fec9(0xe9),'import':_0x48fec9(0x145)}},'files':[_0x48fec9(0x155)],'bin':{'enhance-sandbox':_0x48fec9(0x7f)},'scripts':{'typecheck':'tsc\x20--noEmit','dev':_0x48fec9(0x164),'dev:build':_0x48fec9(0xaf),'dev:staging':_0x48fec9(0x8c),'dev:staging:build':_0x48fec9(0xfc),'build':_0x48fec9(0xdf),'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':_0x48fec9(0x7e)},'dependencies':{'commander':'^11.1.0','zod':'^3.22.4'},'devDependencies':{'@types/node':'^24.10.1','javascript-obfuscator':'^4.1.1','tsup':_0x48fec9(0x8a),'vite':_0x48fec9(0xbb)},'publishConfig':{'access':_0x48fec9(0xeb)}},DEFAULT_SERVICE_WORKER_PATH='/sw-enhance.js',DEFAULT_RUNTIME_PATH='/assets/enhance-runtime.js',DIST_SERVICE_WORKER_PATH=_0x48fec9(0x100),DIST_RUNTIME_PATH=_0x48fec9(0x154),PACKAGE_VERSION=typeof package_default[_0x48fec9(0xc4)]==='string'?package_default[_0x48fec9(0xc4)]:_0x48fec9(0x142);function normalizeAssetPath(_0x131ae7){const _0x11d800=_0x48fec9;if(!_0x131ae7)return _0x131ae7;if(_0x131ae7[_0x11d800(0xd9)](_0x11d800(0x151))||_0x131ae7['startsWith'](_0x11d800(0x108)))return _0x131ae7;const _0x35912a=_0x131ae7[_0x11d800(0x15c)](/^\.\//,'');return _0x35912a['startsWith']('/')?_0x35912a:'/'+_0x35912a;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x23ac8e){return Enhance['init'](_0x23ac8e);},'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 _0x5ae88c=_0x48fec9;return Enhance2[_0x5ae88c(0xcc)]();}function runtimeURL(){const _0x41374f=_0x48fec9;return Enhance2[_0x41374f(0x13a)]();}import{promises as _0x1e0e1f}from'fs';import{createHash}from'crypto';import{dirname,join}from'path';import{fileURLToPath}from'url';var distDir=dirname(fileURLToPath(new URL(_0x48fec9(0x85),import.meta.url)));async function syncAssets(_0x5dab46){const _0xc51b6c=_0x48fec9,_0x1f9191=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0x5dab46[_0xc51b6c(0x98)]?'./'+_0x5dab46[_0xc51b6c(0x98)]:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0x5712af=[];for(const _0x2d99c0 of _0x1f9191){const _0x2134f0=cleanRelativePath(_0x2d99c0[_0xc51b6c(0xdd)]??_0x2d99c0['manifestPath']),_0x37052a=join(distDir,cleanRelativePath(_0x2d99c0[_0xc51b6c(0x111)])),_0x481130=join(_0x5dab46['publicDir'],_0x2134f0),[_0x5649ff,_0x21afbf]=await Promise[_0xc51b6c(0xf9)]([readDigest(_0x37052a),readDigest(_0x481130)]);if(_0x5649ff&&_0x21afbf&&_0x5649ff===_0x21afbf){_0x5712af['push']({'sourcePath':_0x37052a,'destinationPath':_0x481130,'relativeDestination':_0x2134f0,'status':_0xc51b6c(0x149)});continue;}await _0x1e0e1f[_0xc51b6c(0x147)](dirname(_0x481130),{'recursive':!![]}),await _0x1e0e1f['copyFile'](_0x37052a,_0x481130),_0x5712af[_0xc51b6c(0xe6)]({'sourcePath':_0x37052a,'destinationPath':_0x481130,'relativeDestination':_0x2134f0,'status':'copied'});}return _0x5712af;}function cleanRelativePath(_0x3b1051){const _0x16ea82=_0x48fec9;return _0x3b1051[_0x16ea82(0x15c)](/^[./]+/,'');}async function readDigest(_0x342ba2){const _0x4cf3fe=_0x48fec9;try{const _0x410ea5=await _0x1e0e1f[_0x4cf3fe(0x7c)](_0x342ba2);return createHash(_0x4cf3fe(0x140))[_0x4cf3fe(0x129)](_0x410ea5)[_0x4cf3fe(0xb3)]('base64');}catch(_0x4a551d){if(_0x4a551d[_0x4cf3fe(0x163)]===_0x4cf3fe(0xd0))return null;throw _0x4a551d;}}var program=new Command();program[_0x48fec9(0x156)](_0x48fec9(0xa9))[_0x48fec9(0x15d)](_0x48fec9(0x12d))[_0x48fec9(0xc4)]('0.0.0'),program['command'](_0x48fec9(0xa7))[_0x48fec9(0x15d)](_0x48fec9(0x165))['action'](()=>{const _0x335969=_0x48fec9,_0x14c4a9=getAssetManifest();process[_0x335969(0xac)][_0x335969(0x131)](JSON[_0x335969(0xe2)](_0x14c4a9,null,0x2)+'\x0a');}),program['command'](_0x48fec9(0x9a))[_0x48fec9(0x15d)]('Copy\x20the\x20service\x20worker\x20and\x20overlay\x20bundle\x20into\x20a\x20public\x20directory')[_0x48fec9(0xf8)](_0x48fec9(0x84),_0x48fec9(0x81))[_0x48fec9(0x10f)](_0x48fec9(0xf1),_0x48fec9(0x9b))[_0x48fec9(0x10a)](async _0xbb8701=>{const _0x42a50b=_0x48fec9,_0x2a8bb1=resolve(process[_0x42a50b(0x12e)](),_0xbb8701[_0x42a50b(0xad)]),_0xf3fc9e=await syncAssets({'publicDir':_0x2a8bb1,'swFilename':_0xbb8701[_0x42a50b(0x14e)]});for(const _0x394d71 of _0xf3fc9e){const _0x8d242d=relative(process['cwd'](),_0x394d71[_0x42a50b(0xf3)]);_0x394d71['status']===_0x42a50b(0x149)?process['stdout']['write'](_0x42a50b(0x8d)+_0x394d71[_0x42a50b(0x105)]+_0x42a50b(0xfd)+_0x8d242d+']\x0a'):process[_0x42a50b(0xac)][_0x42a50b(0x131)](_0x42a50b(0x146)+_0x394d71['relativeDestination']+_0x42a50b(0x132)+_0x8d242d+'\x0a');}}),program['parseAsync']();
3
+ const _0x45599d=_0x3eb6;(function(_0x4878d1,_0x5c768d){const _0x3aab9c=_0x3eb6,_0x26678b=_0x4878d1();while(!![]){try{const _0x40ee58=-parseInt(_0x3aab9c(0x1c7))/0x1*(parseInt(_0x3aab9c(0x1a1))/0x2)+-parseInt(_0x3aab9c(0x163))/0x3*(-parseInt(_0x3aab9c(0x1da))/0x4)+parseInt(_0x3aab9c(0x1f5))/0x5+parseInt(_0x3aab9c(0x215))/0x6*(parseInt(_0x3aab9c(0x230))/0x7)+parseInt(_0x3aab9c(0x1e2))/0x8*(-parseInt(_0x3aab9c(0x192))/0x9)+parseInt(_0x3aab9c(0x237))/0xa*(-parseInt(_0x3aab9c(0x196))/0xb)+parseInt(_0x3aab9c(0x228))/0xc*(parseInt(_0x3aab9c(0x1eb))/0xd);if(_0x40ee58===_0x5c768d)break;else _0x26678b['push'](_0x26678b['shift']());}catch(_0x2144f2){_0x26678b['push'](_0x26678b['shift']());}}}(_0x1319,0xb7a1b));import{Command}from'commander';import{resolve,relative}from'path';var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!=='undefined'?__ENHANCE_DEFAULT_OVERLAY_PATH__:'https://assets.enhancelabs.ai/overlay.js',DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x45599d(0x19f)?__ENHANCE_DEFAULT_BACKEND_URL__:_0x45599d(0x211),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x45599d(0x19f)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x45599d(0x22d)]('[Enhance\x20Config]\x20Build-time\x20defaults:',{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x3d1710){const _0x50bb2c=_0x45599d;if(!_0x3d1710[_0x50bb2c(0x1e9)])throw new Error('[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()');const _0x20c173=_0x3d1710[_0x50bb2c(0x243)]??{};return{'publishableKey':_0x3d1710[_0x50bb2c(0x1e9)],'callbackBypass':_0x3d1710[_0x50bb2c(0x1af)]??[],'overlay':{'enabled':!![],'position':_0x50bb2c(0x1a4),'enableViteHmr':_0x20c173['enableOverlayHmr']??DEFAULT_OVERLAY_HMR},'logLevel':_0x50bb2c(0x186),'swPath':_0x50bb2c(0x20e),'overlayPath':_0x20c173[_0x50bb2c(0x205)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x50bb2c(0x19e),'security':_0x20c173['security']??_0x50bb2c(0x18f),'backendUrl':_0x20c173[_0x50bb2c(0x1ad)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x32ab78=_0x45599d;try{const _0x47074c=new URLSearchParams(window[_0x32ab78(0x247)][_0x32ab78(0x259)]);return _0x47074c['get'](_0x32ab78(0x16a))?.[_0x32ab78(0x19a)]()||'';}catch{return'';}}var LOG_PREFIX=_0x45599d(0x1f1),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x1fb504){const _0x252278=_0x45599d;console[_0x252278(0x22d)](LOG_PREFIX+_0x252278(0x1c4)),console[_0x252278(0x22d)](LOG_PREFIX+_0x252278(0x223)+_0x1fb504[_0x252278(0x205)]),console['log'](LOG_PREFIX+_0x252278(0x20f)+_0x1fb504[_0x252278(0x235)]),currentOptions=_0x1fb504['options'],toggleHandler=_0x1fb504[_0x252278(0x165)];if(overlayController){console[_0x252278(0x22d)](LOG_PREFIX+_0x252278(0x24c)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x252278(0x22d)](LOG_PREFIX+_0x252278(0x1f0)),overlayLoadPromise;console[_0x252278(0x22d)](LOG_PREFIX+'\x20Starting\x20fresh\x20overlay\x20load...'),overlayLoadPromise=doLoadOverlay(_0x1fb504);try{await overlayLoadPromise,console[_0x252278(0x22d)](LOG_PREFIX+_0x252278(0x1a0));}catch(_0x2266fa){console[_0x252278(0x1ef)](LOG_PREFIX+_0x252278(0x1c5),_0x2266fa);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x139a33){const _0xe99ea0=_0x45599d;console['log'](LOG_PREFIX+_0xe99ea0(0x1be));if(typeof window===_0xe99ea0(0x19f)){console[_0xe99ea0(0x22d)](LOG_PREFIX+'\x20No\x20window\x20object\x20-\x20skipping');return;}if(window[_0xe99ea0(0x1ed)]){console[_0xe99ea0(0x22d)](LOG_PREFIX+_0xe99ea0(0x1bb)),overlayController=window[_0xe99ea0(0x1ed)];return;}console[_0xe99ea0(0x22d)](LOG_PREFIX+_0xe99ea0(0x16b));try{_0x139a33[_0xe99ea0(0x235)]&&(console[_0xe99ea0(0x22d)](LOG_PREFIX+_0xe99ea0(0x22b)),await setupRemoteHMR(_0x139a33[_0xe99ea0(0x205)]));console['log'](LOG_PREFIX+_0xe99ea0(0x1c6)+_0x139a33[_0xe99ea0(0x205)]);const _0x3f4537=Date[_0xe99ea0(0x170)](),_0xacd37=await import(_0x139a33[_0xe99ea0(0x205)]);console[_0xe99ea0(0x22d)](LOG_PREFIX+'\x20Module\x20imported\x20in\x20'+(Date[_0xe99ea0(0x170)]()-_0x3f4537)+'ms'),console['log'](LOG_PREFIX+_0xe99ea0(0x22c),Object[_0xe99ea0(0x1fc)](_0xacd37));if(typeof _0xacd37?.[_0xe99ea0(0x209)]!==_0xe99ea0(0x21e)){console[_0xe99ea0(0x1ef)](LOG_PREFIX+_0xe99ea0(0x22a)),console[_0xe99ea0(0x1ef)](LOG_PREFIX+_0xe99ea0(0x185),Object[_0xe99ea0(0x1fc)](_0xacd37));return;}console[_0xe99ea0(0x22d)](LOG_PREFIX+_0xe99ea0(0x1de));const _0x543f5c=_0xacd37[_0xe99ea0(0x209)]();console[_0xe99ea0(0x22d)](LOG_PREFIX+_0xe99ea0(0x24a),_0x543f5c),overlayController=_0x543f5c,window[_0xe99ea0(0x1ed)]=_0x543f5c,_0x543f5c[_0xe99ea0(0x165)](_0x139a33[_0xe99ea0(0x165)]),console[_0xe99ea0(0x22d)](LOG_PREFIX+_0xe99ea0(0x1ca)),console[_0xe99ea0(0x22d)](LOG_PREFIX+_0xe99ea0(0x1cb)),updateOverlay();}catch(_0x2b90aa){console['error'](LOG_PREFIX+_0xe99ea0(0x1a5),_0x2b90aa);}}function updateOverlay(){const _0x5ed6c5=_0x45599d;console[_0x5ed6c5(0x22d)](LOG_PREFIX+_0x5ed6c5(0x256)),console[_0x5ed6c5(0x22d)](LOG_PREFIX+_0x5ed6c5(0x1b7)+!!overlayController),console[_0x5ed6c5(0x22d)](LOG_PREFIX+_0x5ed6c5(0x1ae)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x5ed6c5(0x22d)](LOG_PREFIX+_0x5ed6c5(0x1a6));return;}const _0x2778ea=composeOverlayState(currentOptions);console['log'](LOG_PREFIX+_0x5ed6c5(0x18b),JSON[_0x5ed6c5(0x17c)](_0x2778ea,null,0x2)),overlayController[_0x5ed6c5(0x1e0)](_0x2778ea),console['log'](LOG_PREFIX+_0x5ed6c5(0x255));}function composeOverlayState(_0x251295){const _0xeb1a59=_0x45599d,_0x3527f8=getEnhancementId();return console[_0xeb1a59(0x22d)](LOG_PREFIX+_0xeb1a59(0x1bc)+_0x3527f8),console[_0xeb1a59(0x22d)](LOG_PREFIX+_0xeb1a59(0x1e1)+state[_0xeb1a59(0x187)]),console[_0xeb1a59(0x22d)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.controlled:\x20'+state[_0xeb1a59(0x16c)]),{'enhancementId':_0x3527f8,'enabled':state[_0xeb1a59(0x187)],'controlled':state[_0xeb1a59(0x16c)],'overlayPosition':_0x251295[_0xeb1a59(0x18c)]['position'],'securityMode':_0x251295[_0xeb1a59(0x1ac)],'backendBaseUrl':_0x251295[_0xeb1a59(0x1ad)],'appError':state[_0xeb1a59(0x1b0)]};}async function setupRemoteHMR(_0x1ac923){const _0x310a97=_0x45599d;console[_0x310a97(0x22d)](LOG_PREFIX+_0x310a97(0x200)+_0x1ac923);if(typeof window===_0x310a97(0x19f))return;try{const _0x45177d=new URL(_0x1ac923,window['location'][_0x310a97(0x23c)]),_0x45a4a1=_0x45177d[_0x310a97(0x23c)];console[_0x310a97(0x22d)](LOG_PREFIX+_0x310a97(0x1fb)+_0x45a4a1+_0x310a97(0x22e)+window['location'][_0x310a97(0x23c)]);if(_0x45a4a1===window[_0x310a97(0x247)][_0x310a97(0x23c)]){console[_0x310a97(0x22d)](LOG_PREFIX+_0x310a97(0x241));return;}console[_0x310a97(0x22d)](LOG_PREFIX+_0x310a97(0x182)),await ensureReactRefreshPreamble(_0x45a4a1),await ensureViteClient(_0x45a4a1),console[_0x310a97(0x22d)](LOG_PREFIX+_0x310a97(0x1cd));}catch(_0x16127a){console[_0x310a97(0x240)](LOG_PREFIX+_0x310a97(0x242),_0x16127a);}}async function ensureReactRefreshPreamble(_0x93fbde){const _0x14f75c=_0x45599d;window['__enhanceReactRefreshInstalledOrigins']??=new Set();if(window[_0x14f75c(0x213)][_0x14f75c(0x19b)](_0x93fbde)){console[_0x14f75c(0x22d)](LOG_PREFIX+_0x14f75c(0x1d6)+_0x93fbde);return;}console[_0x14f75c(0x22d)](LOG_PREFIX+_0x14f75c(0x1db)+_0x93fbde+_0x14f75c(0x24e));const _0xf29ac7=await import(_0x93fbde+_0x14f75c(0x180)),_0x344a3e=_0xf29ac7&&typeof _0xf29ac7===_0x14f75c(0x1d0)&&'default'in _0xf29ac7?_0xf29ac7[_0x14f75c(0x202)]:_0xf29ac7;if(!isRefreshRuntime(_0x344a3e)){console[_0x14f75c(0x240)](LOG_PREFIX+_0x14f75c(0x1b2));return;}_0x344a3e[_0x14f75c(0x184)](window),window['$RefreshReg$']=()=>{},window[_0x14f75c(0x190)]=()=>_0x476980=>_0x476980,window[_0x14f75c(0x162)]=!![],window[_0x14f75c(0x213)][_0x14f75c(0x168)](_0x93fbde),console[_0x14f75c(0x22d)](LOG_PREFIX+'\x20React\x20Refresh\x20runtime\x20installed\x20for\x20'+_0x93fbde);}async function ensureViteClient(_0x58df40){const _0xf53422=_0x45599d;window[_0xf53422(0x1ab)]??=new Set();if(window[_0xf53422(0x1ab)]['has'](_0x58df40)){console[_0xf53422(0x22d)](LOG_PREFIX+'\x20Vite\x20client\x20already\x20loaded\x20for\x20'+_0x58df40);return;}console[_0xf53422(0x22d)](LOG_PREFIX+_0xf53422(0x20d)+_0x58df40+_0xf53422(0x24e)),await import(_0x58df40+_0xf53422(0x20c)),window['__viteHMRLoaded'][_0xf53422(0x168)](_0x58df40),console['log'](LOG_PREFIX+_0xf53422(0x1d9)+_0x58df40);}function isRefreshRuntime(_0x7753ed){const _0x1b31e1=_0x45599d;return typeof _0x7753ed===_0x1b31e1(0x1d0)&&_0x7753ed!==null&&_0x1b31e1(0x184)in _0x7753ed&&typeof _0x7753ed[_0x1b31e1(0x184)]===_0x1b31e1(0x21e);}var WORKER_MESSAGE_CONFIG='enhance:configure',WORKER_MESSAGE_DISABLE=_0x45599d(0x239),LOG_PREFIX2=_0x45599d(0x21c),registration=null,currentOptions2=null;async function registerServiceWorker(_0xa0341){const _0x16c3fb=_0x45599d;console['log'](LOG_PREFIX2+_0x16c3fb(0x1f6)),console[_0x16c3fb(0x22d)](LOG_PREFIX2+_0x16c3fb(0x20a)+_0xa0341[_0x16c3fb(0x221)]);if(!(_0x16c3fb(0x225)in navigator)){console[_0x16c3fb(0x240)](LOG_PREFIX2+_0x16c3fb(0x193));return;}console[_0x16c3fb(0x22d)](LOG_PREFIX2+_0x16c3fb(0x1d4));const _0x5986c5=navigator[_0x16c3fb(0x225)]['controller'];console[_0x16c3fb(0x22d)](LOG_PREFIX2+_0x16c3fb(0x1c1),_0x5986c5?.['scriptURL']??_0x16c3fb(0x17e)),console[_0x16c3fb(0x22d)](LOG_PREFIX2+_0x16c3fb(0x1cf),_0x5986c5?.[_0x16c3fb(0x222)]??_0x16c3fb(0x207));const _0x18a7ec=!!_0x5986c5;currentOptions2=_0xa0341,console[_0x16c3fb(0x22d)](LOG_PREFIX2+_0x16c3fb(0x18a));const _0x4fceb8=await detectBlockingServiceWorker(_0xa0341[_0x16c3fb(0x221)]);if(_0x4fceb8){console[_0x16c3fb(0x1ef)](LOG_PREFIX2+_0x16c3fb(0x167)+_0x4fceb8),console[_0x16c3fb(0x1ef)](LOG_PREFIX2+'\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered');return;}console[_0x16c3fb(0x22d)](LOG_PREFIX2+_0x16c3fb(0x161));try{console['log'](LOG_PREFIX2+_0x16c3fb(0x183)+_0xa0341[_0x16c3fb(0x221)]+_0x16c3fb(0x1fd)),registration=await navigator[_0x16c3fb(0x225)][_0x16c3fb(0x1df)](_0xa0341[_0x16c3fb(0x221)],{'scope':'/'}),console[_0x16c3fb(0x22d)](LOG_PREFIX2+'\x20Registration\x20returned:',{'scope':registration[_0x16c3fb(0x17d)],'active':registration[_0x16c3fb(0x231)]?.['scriptURL'],'waiting':registration['waiting']?.['scriptURL'],'installing':registration[_0x16c3fb(0x245)]?.['scriptURL']}),console[_0x16c3fb(0x22d)](LOG_PREFIX2+_0x16c3fb(0x1c9));const _0x73c026=await navigator[_0x16c3fb(0x225)][_0x16c3fb(0x208)];console[_0x16c3fb(0x22d)](LOG_PREFIX2+_0x16c3fb(0x178),_0x73c026['active']?.['scriptURL']);const _0xf97afb=ownsCurrentController(_0xa0341['swPath']);state['controlled']=_0xf97afb,console[_0x16c3fb(0x22d)](LOG_PREFIX2+_0x16c3fb(0x1ff)+_0xf97afb),console['log'](LOG_PREFIX2+_0x16c3fb(0x1d3),navigator[_0x16c3fb(0x225)][_0x16c3fb(0x251)]?.[_0x16c3fb(0x1a2)]??_0x16c3fb(0x17e));if(!_0x18a7ec&&!navigator[_0x16c3fb(0x225)][_0x16c3fb(0x251)]){console[_0x16c3fb(0x22d)](LOG_PREFIX2+_0x16c3fb(0x18d)),window[_0x16c3fb(0x247)]['reload']();return;}console[_0x16c3fb(0x22d)](LOG_PREFIX2+_0x16c3fb(0x254)),await sendConfiguration();if(state[_0x16c3fb(0x187)]){const _0xb67fa6=document[_0x16c3fb(0x1e6)](_0x16c3fb(0x16d))!==null;console['log'](LOG_PREFIX2+'\x20Enhancement\x20detection:\x20wasEnhanced='+_0xb67fa6);if(!_0xb67fa6){console['log'](LOG_PREFIX2+_0x16c3fb(0x1d1)),window['location'][_0x16c3fb(0x203)]();return;}}console['log'](LOG_PREFIX2+_0x16c3fb(0x1c8)),updateOverlay(),console[_0x16c3fb(0x22d)](LOG_PREFIX2+_0x16c3fb(0x194));}catch(_0xfd5bbb){console[_0x16c3fb(0x1ef)](LOG_PREFIX2+_0x16c3fb(0x166),_0xfd5bbb);}}async function sendConfiguration(){const _0x2a8296=_0x45599d;console[_0x2a8296(0x22d)](LOG_PREFIX2+_0x2a8296(0x17f)),console[_0x2a8296(0x22d)](LOG_PREFIX2+'\x20state.enabled:\x20'+state[_0x2a8296(0x187)]+_0x2a8296(0x201)+!!currentOptions2);if(!state[_0x2a8296(0x187)]||!currentOptions2){console[_0x2a8296(0x22d)](LOG_PREFIX2+_0x2a8296(0x1dc));return;}const _0x760a21=await resolveWorker();if(!_0x760a21){console[_0x2a8296(0x240)](LOG_PREFIX2+_0x2a8296(0x25a));return;}const _0x37c825={'publishableKey':currentOptions2['publishableKey'],'callbackBypass':currentOptions2['callbackBypass'],'securityMode':currentOptions2[_0x2a8296(0x1ac)]};console[_0x2a8296(0x22d)](LOG_PREFIX2+'\x20Sending\x20customer\x20config\x20to\x20SW:',JSON[_0x2a8296(0x17c)](_0x37c825,null,0x2)),_0x760a21[_0x2a8296(0x250)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x37c825}),console[_0x2a8296(0x22d)](LOG_PREFIX2+_0x2a8296(0x248));}async function unregisterServiceWorker(_0x585e41){const _0x49ad44=_0x45599d;console[_0x49ad44(0x22d)](LOG_PREFIX2+_0x49ad44(0x17b));if(!(_0x49ad44(0x225)in navigator)){console['log'](LOG_PREFIX2+'\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister');return;}try{const _0x5bd6b1=registration??await navigator['serviceWorker']['getRegistration']('/');if(!_0x5bd6b1){console[_0x49ad44(0x22d)](LOG_PREFIX2+_0x49ad44(0x1a8));return;}console[_0x49ad44(0x22d)](LOG_PREFIX2+_0x49ad44(0x246),{'scope':_0x5bd6b1[_0x49ad44(0x17d)],'active':_0x5bd6b1['active']?.['scriptURL'],'waiting':_0x5bd6b1[_0x49ad44(0x16f)]?.[_0x49ad44(0x1a2)],'installing':_0x5bd6b1[_0x49ad44(0x245)]?.[_0x49ad44(0x1a2)]});const _0x434268=[_0x5bd6b1[_0x49ad44(0x231)]?.[_0x49ad44(0x1a2)],_0x5bd6b1[_0x49ad44(0x16f)]?.[_0x49ad44(0x1a2)],_0x5bd6b1[_0x49ad44(0x245)]?.[_0x49ad44(0x1a2)]],_0x4d6661=_0x434268[_0x49ad44(0x24d)](_0x551aca=>_0x551aca&&ownsServiceWorker(_0x551aca,_0x585e41));if(!_0x4d6661){console[_0x49ad44(0x22d)](LOG_PREFIX2+'\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering');return;}_0x5bd6b1[_0x49ad44(0x231)]&&(console[_0x49ad44(0x22d)](LOG_PREFIX2+'\x20Sending\x20DISABLE\x20message\x20to\x20SW...'),_0x5bd6b1[_0x49ad44(0x231)][_0x49ad44(0x250)]({'type':WORKER_MESSAGE_DISABLE})),console['log'](LOG_PREFIX2+_0x49ad44(0x1e5)),await _0x5bd6b1['unregister'](),registration=null,currentOptions2=null,console[_0x49ad44(0x22d)](LOG_PREFIX2+'\x20SW\x20unregistered\x20successfully');}catch(_0x440fb3){console[_0x49ad44(0x1ef)](LOG_PREFIX2+'\x20Failed\x20to\x20unregister\x20service\x20worker:',_0x440fb3);}}function ownsServiceWorker(_0x449593,_0x151fa2){const _0x43fe23=_0x45599d,_0x47277c=typeof window!==_0x43fe23(0x19f)?window[_0x43fe23(0x247)][_0x43fe23(0x23c)]:'',_0x434323=new URL(_0x151fa2,_0x47277c||void 0x0)['href'],_0x2d818f=_0x449593===_0x434323||_0x449593['includes'](_0x43fe23(0x206));return console[_0x43fe23(0x22d)](LOG_PREFIX2+'\x20ownsServiceWorker?\x20scriptURL='+_0x449593+_0x43fe23(0x1e3)+_0x434323+_0x43fe23(0x234)+_0x2d818f),_0x2d818f;}function ownsCurrentController(_0x33026e){const _0x115bee=_0x45599d;if(typeof navigator===_0x115bee(0x19f))return![];const _0x9f1648=navigator[_0x115bee(0x225)]?.[_0x115bee(0x251)];if(!_0x9f1648)return console[_0x115bee(0x22d)](LOG_PREFIX2+'\x20No\x20current\x20controller'),![];return ownsServiceWorker(_0x9f1648[_0x115bee(0x1a2)],_0x33026e);}async function detectBlockingServiceWorker(_0x3fffe1){const _0x292493=_0x45599d;if(!navigator['serviceWorker'])return null;try{const _0x372c96=await navigator[_0x292493(0x225)]['getRegistration']('/');console['log'](LOG_PREFIX2+'\x20detectBlocking\x20-\x20existing\x20registration:',_0x372c96?.[_0x292493(0x231)]?.[_0x292493(0x1a2)]??_0x292493(0x17e));const _0x2c0962=_0x372c96?.[_0x292493(0x231)]?.['scriptURL'];if(!_0x2c0962)return null;if(ownsServiceWorker(_0x2c0962,_0x3fffe1))return null;return _0x2c0962;}catch(_0x810a72){return console[_0x292493(0x1ef)](LOG_PREFIX2+_0x292493(0x188),_0x810a72),null;}}async function resolveWorker(){const _0x3b84d5=_0x45599d,_0x407b5c=registration??await navigator[_0x3b84d5(0x225)]?.['getRegistration']('/'),_0x4da689=_0x407b5c?.[_0x3b84d5(0x231)]??_0x407b5c?.[_0x3b84d5(0x16f)]??_0x407b5c?.['installing']??null;return console[_0x3b84d5(0x22d)](LOG_PREFIX2+'\x20resolveWorker:',_0x4da689?.[_0x3b84d5(0x1a2)]??_0x3b84d5(0x17e),'state:\x20'+(_0x4da689?.['state']??'N/A')),_0x4da689;}var LOG_PREFIX3='[Enhance\x20Runtime]';function isInitialized(){const _0x3fcf3a=_0x45599d;return typeof window!==_0x3fcf3a(0x19f)&&window[_0x3fcf3a(0x1b5)]===!![];}function setInitialized(_0x3b2ff1){const _0x524426=_0x45599d;typeof window!==_0x524426(0x19f)&&(window[_0x524426(0x1b5)]=_0x3b2ff1);}function getOptions(){const _0x2b167a=_0x45599d;return typeof window!==_0x2b167a(0x19f)?window[_0x2b167a(0x1c0)]??null:null;}function setOptions(_0x1f214e){const _0x11f3d2=_0x45599d;typeof window!==_0x11f3d2(0x19f)&&(window[_0x11f3d2(0x1c0)]=_0x1f214e);}var Enhance={'init'(_0xdb0ca){const _0x3355c7=_0x45599d,_0xb9b19b=Date['now']();console[_0x3355c7(0x22d)](LOG_PREFIX3+_0x3355c7(0x1ce)+_0xb9b19b),console[_0x3355c7(0x22d)](LOG_PREFIX3+_0x3355c7(0x19d)+window[_0x3355c7(0x247)]['href']),console['log'](LOG_PREFIX3+_0x3355c7(0x216)+document[_0x3355c7(0x195)]),console[_0x3355c7(0x22d)](LOG_PREFIX3+'\x20Raw\x20options:',JSON[_0x3355c7(0x17c)](_0xdb0ca,null,0x2));if(isInitialized())return console['warn'](LOG_PREFIX3+'\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller'),window['__enhanceController']??createController();setInitialized(!![]),console[_0x3355c7(0x22d)](LOG_PREFIX3+'\x20First\x20initialization');const _0x18cd35=normalizeOptions(_0xdb0ca);setOptions(_0x18cd35),console[_0x3355c7(0x22d)](LOG_PREFIX3+_0x3355c7(0x232),JSON[_0x3355c7(0x17c)](_0x18cd35,null,0x2));const _0x4f4292=parseUrlParams();console[_0x3355c7(0x22d)](LOG_PREFIX3+_0x3355c7(0x21d),JSON[_0x3355c7(0x17c)](_0x4f4292,null,0x2));if(_0x4f4292['explicitDisable'])return cleanUrlParam(_0x3355c7(0x244)),console[_0x3355c7(0x22d)](LOG_PREFIX3+'\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting'),createController();if(_0x4f4292[_0x3355c7(0x16e)])return console[_0x3355c7(0x22d)](LOG_PREFIX3+'\x20Enhancement\x20mode\x20ENABLED'),console[_0x3355c7(0x22d)](LOG_PREFIX3+_0x3355c7(0x1ec)+_0x4f4292[_0x3355c7(0x171)]),console[_0x3355c7(0x22d)](LOG_PREFIX3+_0x3355c7(0x1d7)+_0x4f4292[_0x3355c7(0x179)]),state[_0x3355c7(0x187)]=!![],console['log'](LOG_PREFIX3+_0x3355c7(0x1c3)),void loadOverlay({'overlayPath':_0x18cd35[_0x3355c7(0x205)],'enableViteHmr':_0x18cd35[_0x3355c7(0x18c)][_0x3355c7(0x235)],'options':_0x18cd35,'onToggle':handleToggle}),console['log'](LOG_PREFIX3+_0x3355c7(0x21a)),void registerServiceWorker(_0x18cd35),console[_0x3355c7(0x22d)](LOG_PREFIX3+_0x3355c7(0x229)),createController();return console[_0x3355c7(0x22d)](LOG_PREFIX3+_0x3355c7(0x169)),console[_0x3355c7(0x22d)](LOG_PREFIX3+_0x3355c7(0x1e4)),void unregisterServiceWorker(_0x18cd35[_0x3355c7(0x221)]),console[_0x3355c7(0x22d)](LOG_PREFIX3+'\x20init()\x20complete\x20-\x20normal\x20mode'),import.meta.hot&&(console[_0x3355c7(0x22d)](LOG_PREFIX3+'\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners'),import.meta.hot['on']('vite:error',_0x488fbb=>{const _0x28b66a=_0x3355c7;console[_0x28b66a(0x22d)](LOG_PREFIX3+_0x28b66a(0x173),_0x488fbb),state[_0x28b66a(0x1b0)]={'message':_0x488fbb[_0x28b66a(0x212)][_0x28b66a(0x23b)]},updateOverlay();}),import.meta.hot['on']('vite:beforeUpdate',()=>{const _0x2be93a=_0x3355c7;state[_0x2be93a(0x1b0)]&&(console['log'](LOG_PREFIX3+_0x2be93a(0x191)),state['appError']=null,updateOverlay());})),createController();}};function createController(){const _0xd9037e=_0x45599d,_0x4c3426={'enable'(){const _0x3d4082=_0x3eb6,_0x34f0d7=getOptions();if(!_0x34f0d7)return;state['enabled']=!![],void loadOverlay({'overlayPath':_0x34f0d7[_0x3d4082(0x205)],'enableViteHmr':_0x34f0d7['overlay']['enableViteHmr'],'options':_0x34f0d7,'onToggle':handleToggle}),void registerServiceWorker(_0x34f0d7),void sendConfiguration(),updateOverlay();},'disable'(){const _0x4d0579=_0x3eb6,_0x3c9a7d=getOptions();if(!_0x3c9a7d)return;state[_0x4d0579(0x187)]=![],state[_0x4d0579(0x16c)]=![],updateOverlay(),void unregisterServiceWorker(_0x3c9a7d[_0x4d0579(0x221)]);},'status'(){const _0x526e10=_0x3eb6;return{'enabled':state[_0x526e10(0x187)],'controlled':state['controlled']};}};return typeof window!=='undefined'&&(window[_0xd9037e(0x21b)]=_0x4c3426),_0x4c3426;}function handleToggle(){const _0x4ffd34=_0x45599d,_0x48c3ba=createController();state[_0x4ffd34(0x187)]?_0x48c3ba[_0x4ffd34(0x236)]():_0x48c3ba['enable']();}function parseUrlParams(){const _0x44f13b=_0x45599d,_0x44e2a9=new URL(window[_0x44f13b(0x247)][_0x44f13b(0x198)]),_0x2d6612=_0x44e2a9[_0x44f13b(0x18e)][_0x44f13b(0x24b)](_0x44f13b(0x244))?.['toLowerCase'](),_0x12c016=_0x44e2a9[_0x44f13b(0x18e)][_0x44f13b(0x24b)](_0x44f13b(0x171)),_0xca9d92=_0x44e2a9[_0x44f13b(0x18e)][_0x44f13b(0x24b)](_0x44f13b(0x16a));return{'hasEnhancement':Boolean(_0x12c016||_0xca9d92),'explicitDisable':_0x2d6612==='0'||_0x2d6612==='false'||_0x2d6612==='off','enhancementUrl':_0x12c016,'enhancementId':_0xca9d92};}function cleanUrlParam(_0x18e036){const _0x3a7c1d=_0x45599d,_0x3e00e2=new URL(window[_0x3a7c1d(0x247)][_0x3a7c1d(0x198)]);_0x3e00e2['searchParams'][_0x3a7c1d(0x19b)](_0x18e036)&&(_0x3e00e2[_0x3a7c1d(0x18e)][_0x3a7c1d(0x1b9)](_0x18e036),window['history'][_0x3a7c1d(0x17a)](null,document['title'],_0x3e00e2['toString']()));}var package_default={'name':_0x45599d(0x175),'version':_0x45599d(0x1f2),'type':_0x45599d(0x197),'description':_0x45599d(0x23e),'license':_0x45599d(0x1d5),'main':'./dev/index.js','module':_0x45599d(0x1a9),'types':_0x45599d(0x1f3),'exports':{'.':{'types':_0x45599d(0x1f3),'import':_0x45599d(0x1a9)},'./vite':{'types':_0x45599d(0x23a),'import':_0x45599d(0x164)}},'files':[_0x45599d(0x224)],'bin':{'enhance-sandbox':_0x45599d(0x22f)},'scripts':{'typecheck':_0x45599d(0x1f4),'dev':_0x45599d(0x1b4),'dev:build':_0x45599d(0x1f8),'dev:staging':_0x45599d(0x1cc),'dev:staging:build':_0x45599d(0x1a7),'build':_0x45599d(0x249),'build:release':_0x45599d(0x238),'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':_0x45599d(0x1f9),'zod':_0x45599d(0x253)},'devDependencies':{'@types/node':'^24.10.1','javascript-obfuscator':_0x45599d(0x20b),'tsup':'^8.5.1','vite':_0x45599d(0x219)},'publishConfig':{'access':_0x45599d(0x1d8)}},DEFAULT_SERVICE_WORKER_PATH=_0x45599d(0x20e),DEFAULT_RUNTIME_PATH=_0x45599d(0x19e),DIST_SERVICE_WORKER_PATH=_0x45599d(0x24f),DIST_RUNTIME_PATH=_0x45599d(0x19c),PACKAGE_VERSION=typeof package_default[_0x45599d(0x233)]==='string'?package_default['version']:_0x45599d(0x174);function normalizeAssetPath(_0x2b6ae1){const _0x35f343=_0x45599d;if(!_0x2b6ae1)return _0x2b6ae1;if(_0x2b6ae1[_0x35f343(0x226)]('http://')||_0x2b6ae1[_0x35f343(0x226)](_0x35f343(0x1aa)))return _0x2b6ae1;const _0x2e6359=_0x2b6ae1[_0x35f343(0x199)](/^\.\//,'');return _0x2e6359[_0x35f343(0x226)]('/')?_0x2e6359:'/'+_0x2e6359;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x402838){const _0x466e7f=_0x45599d;return Enhance[_0x466e7f(0x1fa)](_0x402838);},'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 _0x57e6d9=_0x45599d;return Enhance2[_0x57e6d9(0x23f)]();}function runtimeURL(){const _0x22efe1=_0x45599d;return Enhance2[_0x22efe1(0x227)]();}import{promises as _0x230405}from'fs';import{createHash}from'crypto';import{dirname,join}from'path';function _0x3eb6(_0x1a37b8,_0x5c9184){_0x1a37b8=_0x1a37b8-0x160;const _0x1319b6=_0x1319();let _0x3eb6af=_0x1319b6[_0x1a37b8];return _0x3eb6af;}import{fileURLToPath}from'url';var distDir=dirname(fileURLToPath(new URL(_0x45599d(0x176),import.meta.url)));async function syncAssets(_0x515c7d){const _0x12b9ca=_0x45599d,_0x1f7a17=[{'sourcePath':DIST_SERVICE_WORKER_PATH,'manifestPath':normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),'override':_0x515c7d[_0x12b9ca(0x1dd)]?'./'+_0x515c7d[_0x12b9ca(0x1dd)]:void 0x0},{'sourcePath':DIST_RUNTIME_PATH,'manifestPath':normalizeAssetPath(DEFAULT_RUNTIME_PATH)}],_0x131308=[];for(const _0x339e2c of _0x1f7a17){const _0x3b36f5=cleanRelativePath(_0x339e2c['override']??_0x339e2c['manifestPath']),_0xe5c785=join(distDir,cleanRelativePath(_0x339e2c[_0x12b9ca(0x23d)])),_0x542914=join(_0x515c7d[_0x12b9ca(0x160)],_0x3b36f5),[_0x1da0c5,_0x39592b]=await Promise['all']([readDigest(_0xe5c785),readDigest(_0x542914)]);if(_0x1da0c5&&_0x39592b&&_0x1da0c5===_0x39592b){_0x131308[_0x12b9ca(0x1c2)]({'sourcePath':_0xe5c785,'destinationPath':_0x542914,'relativeDestination':_0x3b36f5,'status':_0x12b9ca(0x177)});continue;}await _0x230405['mkdir'](dirname(_0x542914),{'recursive':!![]}),await _0x230405[_0x12b9ca(0x218)](_0xe5c785,_0x542914),_0x131308[_0x12b9ca(0x1c2)]({'sourcePath':_0xe5c785,'destinationPath':_0x542914,'relativeDestination':_0x3b36f5,'status':_0x12b9ca(0x1fe)});}return _0x131308;}function cleanRelativePath(_0x11cc87){const _0x2c7f75=_0x45599d;return _0x11cc87[_0x2c7f75(0x199)](/^[./]+/,'');}async function readDigest(_0x1779c5){const _0x304864=_0x45599d;try{const _0x1a7aca=await _0x230405[_0x304864(0x217)](_0x1779c5);return createHash(_0x304864(0x189))[_0x304864(0x1e0)](_0x1a7aca)['digest'](_0x304864(0x252));}catch(_0x18004a){if(_0x18004a[_0x304864(0x257)]===_0x304864(0x1b6))return null;throw _0x18004a;}}function _0x1319(){const _0x2d632d=['\x20init()\x20called\x20at\x20','\x20Controller\x20state:','object','\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement','manifest','\x20Current\x20controller\x20after\x20ready:','\x20Service\x20workers\x20supported','MIT','\x20React\x20Refresh\x20already\x20installed\x20for\x20','\x20enhancementId:\x20','public','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','367492pqqnGr','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options','swFilename','\x20Calling\x20createOverlay()...','register','update','\x20composeOverlayState\x20-\x20state.enabled:\x20','5159920Phnxkz',',\x20expected=','\x20Unregistering\x20any\x20existing\x20SW...','\x20Unregistering\x20SW...','querySelector','description','option','publishableKey','parseAsync','13uAKkyM','\x20enhancementUrl:\x20','__enhanceOverlay','Print\x20the\x20current\x20asset\x20manifest','error','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','[Enhance\x20Overlay]','0.3.21','./dev/index.d.ts','tsc\x20--noEmit','3332775WYWeGs','\x20registerServiceWorker()\x20called','\x20→\x20','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','^11.1.0','init','\x20Overlay\x20origin:\x20','keys','\x20with\x20scope\x20\x27/\x27...','copied','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','\x20setupRemoteHMR()\x20for\x20',',\x20currentOptions:\x20','default','reload','write','overlayPath','sw-enhance','N/A','ready','createOverlay','\x20swPath:\x20','^4.1.1','/@vite/client','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','/sw-enhance.js','\x20enableViteHmr:\x20','Copied\x20','https://api.enhancelabs.ai','err','__enhanceReactRefreshInstalledOrigins','Override\x20the\x20service\x20worker\x20output\x20filename\x20(defaults\x20to\x20sw-enhance.js)','40782SQmNLt','\x20Document\x20readyState:\x20','readFile','copyFile','^7.2.4','\x20Starting\x20SW\x20registration\x20(async)...','__enhanceController','[Enhance\x20SW-Client]','\x20URL\x20params\x20parsed:','function','status','relativeDestination','swPath','state','\x20overlayPath:\x20','dev/','serviceWorker','startsWith','runtimeURL','30060564vUihnG','\x20init()\x20complete\x20-\x20enhancement\x20mode','\x20Module\x20missing\x20createOverlay\x20export!','\x20Setting\x20up\x20remote\x20HMR...','\x20Module\x20exports:','log',',\x20page\x20origin:\x20','./dev/cli.js','7dYJBBu','active','\x20Normalized\x20options:','version',',\x20owns=','enableViteHmr','disable','5350TaQLoY','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','enhance:disable','./dev/vite/index.d.ts','message','origin','sourcePath','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','serviceWorkerURL','warn','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):','__development','enhance','installing','\x20Found\x20registration:','location','\x20Config\x20sent\x20to\x20SW','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','\x20Controller\x20created:','get','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','some','...','sw-enhance.js','postMessage','controller','base64','^3.22.4','\x20Sending\x20customer\x20configuration...','\x20Overlay\x20update\x20complete','\x20updateOverlay()\x20called','code','requiredOption','search','\x20No\x20service\x20worker\x20active\x20to\x20configure','publicDir','\x20No\x20blocking\x20SW\x20found','__vite_plugin_react_preamble_installed__','21IGkURE','./dev/vite/index.js','onToggle','\x20Failed\x20to\x20register\x20service\x20worker:','\x20BLOCKING\x20SW\x20detected:\x20','add','\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params','enhancement','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','controlled','[data-enhance-runtime-bootstrap]','hasEnhancement','waiting','now','enhancementUrl','command','\x20Vite\x20error\x20detected:','0.0.0','@enhance-eng/sandbox','../dist/index.js','skipped','\x20SW\x20ready!\x20Active:','enhancementId','replaceState','\x20unregisterServiceWorker()\x20called','stringify','scope','none','\x20sendConfiguration()\x20called','/@react-refresh','Directory\x20to\x20copy\x20the\x20service\x20worker\x20into','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','\x20Registering\x20SW\x20at\x20','injectIntoGlobalHook','\x20Available\x20exports:','info','enabled','\x20detectBlocking\x20error:','sha256','\x20Checking\x20for\x20blocking\x20service\x20worker...','\x20Updating\x20overlay\x20with\x20state:','overlay','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','searchParams','permissive','$RefreshSig$','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error','9siqODO','\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser','\x20registerServiceWorker()\x20complete','readyState','23089HNhOZO','module','href','replace','trim','has','assets/enhance-runtime.js','\x20Current\x20URL:\x20','/assets/enhance-runtime.js','undefined','\x20loadOverlay()\x20complete','13014ySOutX','scriptURL','action','bottom-right','\x20Failed\x20to\x20import/create\x20overlay:','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','./dev/index.js','https://','__viteHMRLoaded','security','backendUrl','\x20currentOptions\x20exists:\x20','callbackBypass','appError','cwd','\x20Invalid\x20React\x20Refresh\x20runtime','--filename\x20<name>','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','__enhanceInitialized','ENOENT','\x20overlayController\x20exists:\x20','--public-dir\x20<path>','delete','Skipped\x20','\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit','\x20composeOverlayState\x20-\x20enhancementId:\x20','stdout','\x20doLoadOverlay()\x20starting...','\x20(already\x20current)\x20[','__enhanceOptions','\x20Current\x20controller:','push','\x20Starting\x20overlay\x20load\x20(async)...','\x20loadOverlay()\x20called','\x20loadOverlay()\x20failed:','\x20Importing\x20overlay\x20module\x20from:\x20','200KqEvKb','\x20Updating\x20overlay...','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','\x20Overlay\x20controller\x20initialized\x20and\x20cached','\x20Calling\x20updateOverlay()...','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','\x20HMR\x20setup\x20complete'];_0x1319=function(){return _0x2d632d;};return _0x1319();}var program=new Command();program['name']('enhance-sandbox')['description']('Enhance\x20sandbox\x20utility\x20CLI')[_0x45599d(0x233)](_0x45599d(0x174)),program[_0x45599d(0x172)](_0x45599d(0x1d2))[_0x45599d(0x1e7)](_0x45599d(0x1ee))[_0x45599d(0x1a3)](()=>{const _0x137f6f=_0x45599d,_0x400576=getAssetManifest();process[_0x137f6f(0x1bd)][_0x137f6f(0x204)](JSON[_0x137f6f(0x17c)](_0x400576,null,0x2)+'\x0a');}),program[_0x45599d(0x172)]('prepare-sw')[_0x45599d(0x1e7)]('Copy\x20the\x20service\x20worker\x20and\x20overlay\x20bundle\x20into\x20a\x20public\x20directory')[_0x45599d(0x258)](_0x45599d(0x1b8),_0x45599d(0x181))[_0x45599d(0x1e8)](_0x45599d(0x1b3),_0x45599d(0x214))['action'](async _0x3ae8db=>{const _0x237307=_0x45599d,_0x28b3e8=resolve(process['cwd'](),_0x3ae8db[_0x237307(0x160)]),_0x13b972=await syncAssets({'publicDir':_0x28b3e8,'swFilename':_0x3ae8db['filename']});for(const _0xa2c2e3 of _0x13b972){const _0x52e865=relative(process[_0x237307(0x1b1)](),_0xa2c2e3['destinationPath']);_0xa2c2e3[_0x237307(0x21f)]==='skipped'?process[_0x237307(0x1bd)]['write'](_0x237307(0x1ba)+_0xa2c2e3[_0x237307(0x220)]+_0x237307(0x1bf)+_0x52e865+']\x0a'):process[_0x237307(0x1bd)]['write'](_0x237307(0x210)+_0xa2c2e3[_0x237307(0x220)]+_0x237307(0x1f7)+_0x52e865+'\x0a');}}),program[_0x45599d(0x1ea)]();
package/dist/index.d.ts CHANGED
@@ -75,9 +75,11 @@ declare global {
75
75
  __enhanceInitialized?: boolean;
76
76
  __enhanceOptions?: NormalizedOptions;
77
77
  __enhanceController?: EnhanceController;
78
- __enhanceResolvedUrl?: string;
79
78
  }
80
79
  }
80
+ /**
81
+ * Main entry point - the only public API.
82
+ */
81
83
  declare const Enhance$1: {
82
84
  init(rawOptions: RawOptions): EnhanceController;
83
85
  };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4645d4=_0xabe9;(function(_0x50df86,_0x213411){const _0x49f9c2=_0xabe9,_0x37de9f=_0x50df86();while(!![]){try{const _0x35b608=-parseInt(_0x49f9c2(0x117))/0x1+-parseInt(_0x49f9c2(0x94))/0x2*(parseInt(_0x49f9c2(0xc9))/0x3)+parseInt(_0x49f9c2(0x122))/0x4+-parseInt(_0x49f9c2(0x6b))/0x5*(-parseInt(_0x49f9c2(0x10e))/0x6)+-parseInt(_0x49f9c2(0x6d))/0x7+-parseInt(_0x49f9c2(0xa3))/0x8*(-parseInt(_0x49f9c2(0x93))/0x9)+parseInt(_0x49f9c2(0xb9))/0xa*(parseInt(_0x49f9c2(0x124))/0xb);if(_0x35b608===_0x213411)break;else _0x37de9f['push'](_0x37de9f['shift']());}catch(_0x5cb276){_0x37de9f['push'](_0x37de9f['shift']());}}}(_0x13de,0x407e4));var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x4645d4(0xa8)?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x4645d4(0x6e),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!=='undefined'?__ENHANCE_DEFAULT_BACKEND_URL__:_0x4645d4(0xe0),DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!==_0x4645d4(0xa8)?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console[_0x4645d4(0xb0)](_0x4645d4(0x8a),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0xc90472){const _0x434f3a=_0x4645d4;if(!_0xc90472[_0x434f3a(0x126)])throw new Error(_0x434f3a(0x103));const _0x39e737=_0xc90472['__development']??{};return{'publishableKey':_0xc90472[_0x434f3a(0x126)],'callbackBypass':_0xc90472[_0x434f3a(0xfa)]??[],'overlay':{'enabled':!![],'position':'bottom-right','enableViteHmr':_0x39e737[_0x434f3a(0xfc)]??DEFAULT_OVERLAY_HMR},'logLevel':_0x434f3a(0x102),'swPath':_0x434f3a(0x108),'overlayPath':_0x39e737[_0x434f3a(0x116)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x434f3a(0xe3),'security':_0x39e737[_0x434f3a(0x106)]??_0x434f3a(0xb3),'backendUrl':_0x39e737[_0x434f3a(0x91)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0x13d876=_0x4645d4;try{const _0x56eb3b=new URLSearchParams(window[_0x13d876(0x11d)][_0x13d876(0xca)]);return _0x56eb3b[_0x13d876(0xe2)]('enhancement')?.[_0x13d876(0xab)]()||'';}catch{return'';}}var LOG_PREFIX='[Enhance\x20Overlay]',overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x538f60){const _0x144822=_0x4645d4;console[_0x144822(0xb0)](LOG_PREFIX+'\x20loadOverlay()\x20called'),console[_0x144822(0xb0)](LOG_PREFIX+_0x144822(0xef)+_0x538f60[_0x144822(0x116)]),console[_0x144822(0xb0)](LOG_PREFIX+_0x144822(0xfe)+_0x538f60['enableViteHmr']),currentOptions=_0x538f60[_0x144822(0x110)],toggleHandler=_0x538f60[_0x144822(0x101)];if(overlayController){console[_0x144822(0xb0)](LOG_PREFIX+_0x144822(0x95)),updateOverlay();return;}if(overlayLoadPromise)return console['log'](LOG_PREFIX+_0x144822(0xba)),overlayLoadPromise;console[_0x144822(0xb0)](LOG_PREFIX+_0x144822(0xb1)),overlayLoadPromise=doLoadOverlay(_0x538f60);try{await overlayLoadPromise,console[_0x144822(0xb0)](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0x1349b4){console['error'](LOG_PREFIX+_0x144822(0x123),_0x1349b4);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x4dd126){const _0x251993=_0x4645d4;console[_0x251993(0xb0)](LOG_PREFIX+_0x251993(0x80));if(typeof window===_0x251993(0xa8)){console[_0x251993(0xb0)](LOG_PREFIX+_0x251993(0xa1));return;}if(window[_0x251993(0xa9)]){console['log'](LOG_PREFIX+'\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit'),overlayController=window[_0x251993(0xa9)];return;}console[_0x251993(0xb0)](LOG_PREFIX+_0x251993(0x6f));try{_0x4dd126[_0x251993(0xe4)]&&(console['log'](LOG_PREFIX+_0x251993(0x10b)),await setupRemoteHMR(_0x4dd126[_0x251993(0x116)]));console[_0x251993(0xb0)](LOG_PREFIX+'\x20Importing\x20overlay\x20module\x20from:\x20'+_0x4dd126[_0x251993(0x116)]);const _0x1ec30b=Date[_0x251993(0x8b)](),_0x4e1cc8=await import(_0x4dd126[_0x251993(0x116)]);console[_0x251993(0xb0)](LOG_PREFIX+_0x251993(0xae)+(Date[_0x251993(0x8b)]()-_0x1ec30b)+'ms'),console[_0x251993(0xb0)](LOG_PREFIX+_0x251993(0xb7),Object[_0x251993(0x119)](_0x4e1cc8));if(typeof _0x4e1cc8?.[_0x251993(0x69)]!==_0x251993(0xda)){console['error'](LOG_PREFIX+_0x251993(0x9e)),console[_0x251993(0x87)](LOG_PREFIX+_0x251993(0x73),Object['keys'](_0x4e1cc8));return;}console[_0x251993(0xb0)](LOG_PREFIX+_0x251993(0xe1));const _0x4823c6=_0x4e1cc8[_0x251993(0x69)]();console['log'](LOG_PREFIX+_0x251993(0x9c),_0x4823c6),overlayController=_0x4823c6,window['__enhanceOverlay']=_0x4823c6,_0x4823c6[_0x251993(0x101)](_0x4dd126[_0x251993(0x101)]),console['log'](LOG_PREFIX+_0x251993(0xc4)),console['log'](LOG_PREFIX+_0x251993(0xfd)),updateOverlay();}catch(_0x3a69a2){console[_0x251993(0x87)](LOG_PREFIX+_0x251993(0x114),_0x3a69a2);}}function updateOverlay(){const _0x20b71c=_0x4645d4;console[_0x20b71c(0xb0)](LOG_PREFIX+_0x20b71c(0x10d)),console[_0x20b71c(0xb0)](LOG_PREFIX+_0x20b71c(0x99)+!!overlayController),console[_0x20b71c(0xb0)](LOG_PREFIX+'\x20currentOptions\x20exists:\x20'+!!currentOptions);if(!overlayController||!currentOptions){console['log'](LOG_PREFIX+_0x20b71c(0x7c));return;}const _0x810136=composeOverlayState(currentOptions);console[_0x20b71c(0xb0)](LOG_PREFIX+'\x20Updating\x20overlay\x20with\x20state:',JSON[_0x20b71c(0x90)](_0x810136,null,0x2)),overlayController[_0x20b71c(0x88)](_0x810136),console[_0x20b71c(0xb0)](LOG_PREFIX+'\x20Overlay\x20update\x20complete');}function composeOverlayState(_0x5b4517){const _0x302fb4=_0x4645d4,_0x2054b0=getEnhancementId();return console[_0x302fb4(0xb0)](LOG_PREFIX+_0x302fb4(0xaa)+_0x2054b0),console[_0x302fb4(0xb0)](LOG_PREFIX+_0x302fb4(0x86)+state[_0x302fb4(0x78)]),console[_0x302fb4(0xb0)](LOG_PREFIX+'\x20composeOverlayState\x20-\x20state.controlled:\x20'+state[_0x302fb4(0xaf)]),{'enhancementId':_0x2054b0,'enabled':state[_0x302fb4(0x78)],'controlled':state[_0x302fb4(0xaf)],'overlayPosition':_0x5b4517[_0x302fb4(0x10a)][_0x302fb4(0xdd)],'securityMode':_0x5b4517['security'],'backendBaseUrl':_0x5b4517['backendUrl'],'appError':state[_0x302fb4(0xbe)]};}async function setupRemoteHMR(_0x2e7684){const _0x113489=_0x4645d4;console[_0x113489(0xb0)](LOG_PREFIX+_0x113489(0xd3)+_0x2e7684);if(typeof window==='undefined')return;try{const _0x293de3=new URL(_0x2e7684,window[_0x113489(0x11d)][_0x113489(0xe6)]),_0x3adc96=_0x293de3[_0x113489(0xe6)];console[_0x113489(0xb0)](LOG_PREFIX+_0x113489(0xd4)+_0x3adc96+',\x20page\x20origin:\x20'+window[_0x113489(0x11d)]['origin']);if(_0x3adc96===window[_0x113489(0x11d)]['origin']){console[_0x113489(0xb0)](LOG_PREFIX+_0x113489(0x8e));return;}console['log'](LOG_PREFIX+_0x113489(0xa7)),await ensureReactRefreshPreamble(_0x3adc96),await ensureViteClient(_0x3adc96),console[_0x113489(0xb0)](LOG_PREFIX+'\x20HMR\x20setup\x20complete');}catch(_0x317144){console[_0x113489(0x10c)](LOG_PREFIX+'\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):',_0x317144);}}async function ensureReactRefreshPreamble(_0x3a3dda){const _0xb8b515=_0x4645d4;window[_0xb8b515(0x9f)]??=new Set();if(window[_0xb8b515(0x9f)][_0xb8b515(0xa6)](_0x3a3dda)){console[_0xb8b515(0xb0)](LOG_PREFIX+'\x20React\x20Refresh\x20already\x20installed\x20for\x20'+_0x3a3dda);return;}console['log'](LOG_PREFIX+_0xb8b515(0xe8)+_0x3a3dda+_0xb8b515(0x70));const _0x1af89a=await import(_0x3a3dda+_0xb8b515(0xac)),_0x96f67f=_0x1af89a&&typeof _0x1af89a===_0xb8b515(0x11a)&&_0xb8b515(0xb6)in _0x1af89a?_0x1af89a[_0xb8b515(0xb6)]:_0x1af89a;if(!isRefreshRuntime(_0x96f67f)){console[_0xb8b515(0x10c)](LOG_PREFIX+_0xb8b515(0xb8));return;}_0x96f67f[_0xb8b515(0xfb)](window),window['$RefreshReg$']=()=>{},window['$RefreshSig$']=()=>_0x33a9ee=>_0x33a9ee,window['__vite_plugin_react_preamble_installed__']=!![],window[_0xb8b515(0x9f)][_0xb8b515(0xa0)](_0x3a3dda),console[_0xb8b515(0xb0)](LOG_PREFIX+_0xb8b515(0xdf)+_0x3a3dda);}async function ensureViteClient(_0x35b487){const _0x502f58=_0x4645d4;window['__viteHMRLoaded']??=new Set();if(window[_0x502f58(0xf1)][_0x502f58(0xa6)](_0x35b487)){console[_0x502f58(0xb0)](LOG_PREFIX+'\x20Vite\x20client\x20already\x20loaded\x20for\x20'+_0x35b487);return;}console[_0x502f58(0xb0)](LOG_PREFIX+_0x502f58(0x113)+_0x35b487+_0x502f58(0x70)),await import(_0x35b487+_0x502f58(0x11c)),window[_0x502f58(0xf1)][_0x502f58(0xa0)](_0x35b487),console[_0x502f58(0xb0)](LOG_PREFIX+_0x502f58(0x11b)+_0x35b487);}function isRefreshRuntime(_0x1013b7){const _0x272489=_0x4645d4;return typeof _0x1013b7==='object'&&_0x1013b7!==null&&_0x272489(0xfb)in _0x1013b7&&typeof _0x1013b7[_0x272489(0xfb)]===_0x272489(0xda);}var WORKER_MESSAGE_CONFIG=_0x4645d4(0xec),WORKER_MESSAGE_DISABLE='enhance:disable',LOG_PREFIX2=_0x4645d4(0x82),registration=null,currentOptions2=null;async function registerServiceWorker(_0x5e4312){const _0x4e684d=_0x4645d4;console[_0x4e684d(0xb0)](LOG_PREFIX2+_0x4e684d(0xa2));if(!(_0x4e684d(0xd9)in navigator)){console[_0x4e684d(0x10c)](LOG_PREFIX2+_0x4e684d(0xc6));return;}const _0x222f8c=!!navigator[_0x4e684d(0xd9)][_0x4e684d(0xbd)];currentOptions2=_0x5e4312;const _0x5c5d2e=await detectBlockingServiceWorker(_0x5e4312[_0x4e684d(0xe7)]);if(_0x5c5d2e){console[_0x4e684d(0x87)](LOG_PREFIX2+'\x20BLOCKING\x20SW\x20detected:\x20'+_0x5c5d2e);return;}try{console[_0x4e684d(0xb0)](LOG_PREFIX2+_0x4e684d(0x12b)+_0x5e4312[_0x4e684d(0xe7)]+_0x4e684d(0x70)),registration=await navigator[_0x4e684d(0xd9)][_0x4e684d(0xb2)](_0x5e4312[_0x4e684d(0xe7)],{'scope':'/'}),console[_0x4e684d(0xb0)](LOG_PREFIX2+'\x20Waiting\x20for\x20SW\x20ready...'),await navigator[_0x4e684d(0xd9)][_0x4e684d(0x9d)],console[_0x4e684d(0xb0)](LOG_PREFIX2+'\x20SW\x20ready'),state[_0x4e684d(0xaf)]=ownsCurrentController(_0x5e4312[_0x4e684d(0xe7)]);if(!_0x222f8c&&!navigator['serviceWorker'][_0x4e684d(0xbd)]){console[_0x4e684d(0xb0)](LOG_PREFIX2+_0x4e684d(0xad)),window[_0x4e684d(0x11d)][_0x4e684d(0xe9)]();return;}console['log'](LOG_PREFIX2+_0x4e684d(0xd6)),await sendConfiguration();if(state['enabled']){const _0x13d2af=document[_0x4e684d(0xed)](_0x4e684d(0x77))!==null;if(!_0x13d2af){console['log'](LOG_PREFIX2+'\x20Page\x20not\x20enhanced\x20-\x20reloading'),window[_0x4e684d(0x11d)][_0x4e684d(0xe9)]();return;}}updateOverlay(),console[_0x4e684d(0xb0)](LOG_PREFIX2+_0x4e684d(0x83));}catch(_0x341a43){console['error'](LOG_PREFIX2+_0x4e684d(0x7a),_0x341a43);}}async function sendConfiguration(){const _0x250b10=_0x4645d4;if(!state[_0x250b10(0x78)]||!currentOptions2)return;const _0x459220=await resolveWorker();if(!_0x459220){console['warn'](LOG_PREFIX2+_0x250b10(0xf8));return;}const _0x464994=window[_0x250b10(0x128)]??null,_0x295d45={'publishableKey':currentOptions2['publishableKey'],'callbackBypass':currentOptions2[_0x250b10(0xfa)],'securityMode':currentOptions2[_0x250b10(0x106)],'enhancementUrl':_0x464994??void 0x0};console[_0x250b10(0xb0)](LOG_PREFIX2+'\x20Sending\x20config\x20to\x20SW:',JSON['stringify'](_0x295d45,null,0x2)),_0x459220[_0x250b10(0xcb)]({'type':WORKER_MESSAGE_CONFIG,'config':_0x295d45});}async function unregisterServiceWorker(_0x41ff1c){const _0x10ec3f=_0x4645d4;console[_0x10ec3f(0xb0)](LOG_PREFIX2+_0x10ec3f(0x115));if(!(_0x10ec3f(0xd9)in navigator))return;try{const _0x4b2cb3=registration??await navigator[_0x10ec3f(0xd9)][_0x10ec3f(0xcd)]('/');if(!_0x4b2cb3)return;const _0x1187b8=[_0x4b2cb3[_0x10ec3f(0x100)]?.[_0x10ec3f(0x125)],_0x4b2cb3[_0x10ec3f(0xf7)]?.[_0x10ec3f(0x125)],_0x4b2cb3[_0x10ec3f(0x7f)]?.[_0x10ec3f(0x125)]],_0x165253=_0x1187b8['some'](_0x1accf1=>_0x1accf1&&ownsServiceWorker(_0x1accf1,_0x41ff1c));if(!_0x165253)return;_0x4b2cb3['active']&&_0x4b2cb3[_0x10ec3f(0x100)]['postMessage']({'type':WORKER_MESSAGE_DISABLE}),await _0x4b2cb3[_0x10ec3f(0x107)](),registration=null,currentOptions2=null,console[_0x10ec3f(0xb0)](LOG_PREFIX2+'\x20SW\x20unregistered');}catch(_0x3ce114){console['error'](LOG_PREFIX2+_0x10ec3f(0x12a),_0x3ce114);}}function ownsServiceWorker(_0x555eba,_0x21323f){const _0x4830b2=_0x4645d4,_0x5561fc=typeof window!==_0x4830b2(0xa8)?window[_0x4830b2(0x11d)][_0x4830b2(0xe6)]:'',_0x3d8663=new URL(_0x21323f,_0x5561fc||void 0x0)[_0x4830b2(0x12c)];return _0x555eba===_0x3d8663||_0x555eba['includes'](_0x4830b2(0xff));}function ownsCurrentController(_0x2bd86e){const _0x3be1d3=_0x4645d4,_0x22060f=navigator[_0x3be1d3(0xd9)]?.['controller'];if(!_0x22060f)return![];return ownsServiceWorker(_0x22060f['scriptURL'],_0x2bd86e);}async function detectBlockingServiceWorker(_0x671b8c){const _0x2f298f=_0x4645d4;if(!navigator[_0x2f298f(0xd9)])return null;try{const _0x1088f9=await navigator['serviceWorker'][_0x2f298f(0xcd)]('/'),_0x355d4c=_0x1088f9?.[_0x2f298f(0x100)]?.[_0x2f298f(0x125)];if(!_0x355d4c)return null;if(ownsServiceWorker(_0x355d4c,_0x671b8c))return null;return _0x355d4c;}catch{return null;}}async function resolveWorker(){const _0x2dc144=_0x4645d4,_0x579945=registration??await navigator['serviceWorker']?.['getRegistration']('/');return _0x579945?.['active']??_0x579945?.['waiting']??_0x579945?.[_0x2dc144(0x7f)]??null;}var LOG_PREFIX3=_0x4645d4(0x81),STORAGE_KEY_ENHANCEMENT_ID=_0x4645d4(0x92),STORAGE_KEY_ENHANCEMENT_URL='enhance.enhancementUrl';function isInitialized(){const _0x1c3035=_0x4645d4;return typeof window!=='undefined'&&window[_0x1c3035(0xf2)]===!![];}function setInitialized(_0x4c250c){const _0x417de0=_0x4645d4;typeof window!==_0x417de0(0xa8)&&(window[_0x417de0(0xf2)]=_0x4c250c);}function getOptions(){const _0x142eda=_0x4645d4;return typeof window!==_0x142eda(0xa8)?window[_0x142eda(0x89)]??null:null;}function _0x13de(){const _0x47f41e=['overlay','\x20Setting\x20up\x20remote\x20HMR...','warn','\x20updateOverlay()\x20called','19884NCsxfQ','message','options','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','\x20Enhancement\x20mode\x20-\x20ID:\x20','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','\x20Failed\x20to\x20import/create\x20overlay:','\x20unregisterServiceWorker()\x20called','overlayPath','508042ajJebZ','\x20Current\x20URL:\x20','keys','object','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','/@vite/client','location','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','init','^3.22.4','toLowerCase','895568jIntpe','\x20loadOverlay()\x20failed:','362945pxEkgA','scriptURL','publishableKey','\x20Explicit\x20disable\x20-\x20exiting','__enhanceResolvedUrl','serviceWorkerURL','\x20Failed\x20to\x20unregister\x20service\x20worker:','\x20Registering\x20SW\x20at\x20','href','enhancementId','createOverlay','\x20Using\x20cached\x20enhancement\x20URL:\x20','15mcPAim','@enhance-eng/sandbox','2588411sWUWsz','https://assets.enhancelabs.ai/overlay.js','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','...','/resolve','replace','\x20Available\x20exports:','\x20Normal\x20mode\x20-\x20no\x20enhancement','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','replaceState','[data-enhance-runtime-bootstrap]','enabled','./dev/cli.js','\x20Failed\x20to\x20register\x20service\x20worker:','\x20Restored\x20enhancement\x20from\x20sessionStorage','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','\x20Resolution\x20error:','explicitDisable','installing','\x20doLoadOverlay()\x20starting...','[Enhance\x20Runtime]','[Enhance\x20SW-Client]','\x20registerServiceWorker()\x20complete','enhancement','dev/','\x20composeOverlayState\x20-\x20state.enabled:\x20','error','update','__enhanceOptions','[Enhance\x20Config]\x20Build-time\x20defaults:','now','\x20Enhancement\x20params:','history','\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup','runtimeURL','stringify','backendUrl','enhance.enhancementId','1658142rvxdbj','570412bSzxKQ','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','\x20Resolution\x20failed:\x20','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','cachedUrl','\x20overlayController\x20exists:\x20','./dev/index.d.ts','\x20Resolved\x20to:\x20','\x20Controller\x20created:','ready','\x20Module\x20missing\x20createOverlay\x20export!','__enhanceReactRefreshInstalledOrigins','add','\x20No\x20window\x20object\x20-\x20skipping','\x20registerServiceWorker()\x20called','16GmeJZE','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','0.0.0','has','\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...','undefined','__enhanceOverlay','\x20composeOverlayState\x20-\x20enhancementId:\x20','trim','/@react-refresh','\x20SW\x20just\x20activated\x20-\x20reloading\x20to\x20enable\x20enhancement','\x20Module\x20imported\x20in\x20','controlled','log','\x20Starting\x20fresh\x20overlay\x20load...','register','permissive','\x20Document\x20readyState:\x20','enhance','default','\x20Module\x20exports:','\x20Invalid\x20React\x20Refresh\x20runtime','250dBIguC','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','searchParams','disable','controller','appError','tsc\x20--noEmit','json','removeItem','toString','startsWith','\x20Overlay\x20controller\x20initialized\x20and\x20cached','./dev/index.js','\x20Service\x20workers\x20NOT\x20supported','enable','\x20Cleared\x20persisted\x20enhancement','3OpFdIE','search','postMessage','^4.1.1','getRegistration','set','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','^24.10.1','module','^8.5.1','\x20setupRemoteHMR()\x20for\x20','\x20Overlay\x20origin:\x20','\x20Loading\x20overlay...','\x20Sending\x20configuration\x20to\x20SW...','^11.1.0','\x20Registering\x20SW\x20with\x20enhancement\x20URL...','serviceWorker','function','setItem','getItem','position','\x20Already\x20initialized\x20-\x20returning\x20existing\x20controller','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','https://api.enhancelabs.ai','\x20Calling\x20createOverlay()...','get','/assets/enhance-runtime.js','enableViteHmr','title','origin','swPath','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','reload','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup','\x20Resolving\x20enhancement\x20ID:\x20','enhance:configure','querySelector','false','\x20overlayPath:\x20','err','__viteHMRLoaded','__enhanceInitialized','version','text','vite:error','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','waiting','\x20No\x20service\x20worker\x20active\x20to\x20configure','\x20Persisted\x20enhancement\x20to\x20sessionStorage','callbackBypass','injectIntoGlobalHook','enableOverlayHmr','\x20Calling\x20updateOverlay()...','\x20enableViteHmr:\x20','sw-enhance','active','onToggle','info','[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()','0.3.21','MIT','security','unregister','/sw-enhance.js','public'];_0x13de=function(){return _0x47f41e;};return _0x13de();}function setOptions(_0x1c20ee){const _0x240aa9=_0x4645d4;typeof window!==_0x240aa9(0xa8)&&(window[_0x240aa9(0x89)]=_0x1c20ee);}var Enhance={'init'(_0x5723e3){const _0x1aa192=_0x4645d4,_0x53548a=Date[_0x1aa192(0x8b)]();console[_0x1aa192(0xb0)](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x53548a),console[_0x1aa192(0xb0)](LOG_PREFIX3+_0x1aa192(0x118)+window[_0x1aa192(0x11d)][_0x1aa192(0x12c)]),console['log'](LOG_PREFIX3+_0x1aa192(0xb4)+document['readyState']);if(isInitialized())return console[_0x1aa192(0x10c)](LOG_PREFIX3+_0x1aa192(0xde)),window['__enhanceController']??createController();setInitialized(!![]);const _0x3ea172=normalizeOptions(_0x5723e3);setOptions(_0x3ea172);const _0x146244=parseEnhancementParams();console[_0x1aa192(0xb0)](LOG_PREFIX3+_0x1aa192(0x8c),JSON[_0x1aa192(0x90)](_0x146244,null,0x2));if(_0x146244[_0x1aa192(0x7e)])return cleanUrlParam(_0x1aa192(0xb5)),clearPersistedEnhancement(),console['log'](LOG_PREFIX3+_0x1aa192(0x127)),createController();if(!_0x146244['enhancementId'])return console['log'](LOG_PREFIX3+_0x1aa192(0x74)),void unregisterServiceWorker(_0x3ea172[_0x1aa192(0xe7)]),setupViteErrorListeners(),createController();return console[_0x1aa192(0xb0)](LOG_PREFIX3+_0x1aa192(0x112)+_0x146244[_0x1aa192(0x12d)]),state[_0x1aa192(0x78)]=!![],void initializeEnhancement(_0x3ea172,_0x146244[_0x1aa192(0x12d)],_0x146244[_0x1aa192(0x98)]),createController();}};async function initializeEnhancement(_0x40f06a,_0x23bfb8,_0x59ecba){const _0x663ca=_0x4645d4;let _0x310028=_0x59ecba;if(!_0x310028){console[_0x663ca(0xb0)](LOG_PREFIX3+_0x663ca(0xeb)+_0x23bfb8),_0x310028=await resolveEnhancementUrl(_0x40f06a,_0x23bfb8);if(!_0x310028){console[_0x663ca(0x87)](LOG_PREFIX3+'\x20Failed\x20to\x20resolve\x20enhancement\x20-\x20aborting'),state[_0x663ca(0x78)]=![];return;}}else console['log'](LOG_PREFIX3+_0x663ca(0x6a)+_0x310028);persistEnhancement(_0x23bfb8,_0x310028),window['__enhanceResolvedUrl']=_0x310028,console[_0x663ca(0xb0)](LOG_PREFIX3+_0x663ca(0xd8)),await registerServiceWorker(_0x40f06a),console['log'](LOG_PREFIX3+_0x663ca(0xd5)),await loadOverlay({'overlayPath':_0x40f06a[_0x663ca(0x116)],'enableViteHmr':_0x40f06a[_0x663ca(0x10a)][_0x663ca(0xe4)],'options':_0x40f06a,'onToggle':handleToggle}),console[_0x663ca(0xb0)](LOG_PREFIX3+'\x20Enhancement\x20initialization\x20complete');}async function resolveEnhancementUrl(_0x28f2b1,_0x4fe363){const _0x492fbf=_0x4645d4,_0x1c0c48=_0x28f2b1[_0x492fbf(0x91)]+'/public/enhancements/'+_0x4fe363+_0x492fbf(0x71);console[_0x492fbf(0xb0)](LOG_PREFIX3+'\x20Calling:\x20'+_0x1c0c48);try{const _0x414b02=await fetch(_0x1c0c48,{'headers':{'X-Enhance-Publishable-Key':_0x28f2b1[_0x492fbf(0x126)]}});if(!_0x414b02['ok']){const _0x4115b8=await _0x414b02[_0x492fbf(0xf4)]();return console['error'](LOG_PREFIX3+_0x492fbf(0x96)+_0x414b02['status']+'\x20'+_0x4115b8),null;}const _0x36865e=await _0x414b02[_0x492fbf(0xc0)](),_0x2618f6=''+_0x28f2b1[_0x492fbf(0x91)]+_0x36865e['operatingPath'];return console[_0x492fbf(0xb0)](LOG_PREFIX3+_0x492fbf(0x9b)+_0x2618f6),_0x2618f6;}catch(_0xb7ac86){return console[_0x492fbf(0x87)](LOG_PREFIX3+_0x492fbf(0x7d),_0xb7ac86),null;}}function parseEnhancementParams(){const _0x5e28cf=_0x4645d4,_0x2b5f67=new URL(window[_0x5e28cf(0x11d)][_0x5e28cf(0x12c)]),_0x29d80d=_0x2b5f67[_0x5e28cf(0xbb)][_0x5e28cf(0xe2)](_0x5e28cf(0xb5))?.[_0x5e28cf(0x121)](),_0x348e6e=_0x29d80d==='0'||_0x29d80d===_0x5e28cf(0xee)||_0x29d80d==='off';let _0x1219b7=_0x2b5f67['searchParams']['get'](_0x5e28cf(0x84)),_0x1d553c=null;if(_0x1219b7)try{const _0x2e6441=sessionStorage['getItem'](STORAGE_KEY_ENHANCEMENT_ID),_0x942118=sessionStorage[_0x5e28cf(0xdc)](STORAGE_KEY_ENHANCEMENT_URL);_0x2e6441===_0x1219b7&&_0x942118&&(_0x1d553c=_0x942118,console[_0x5e28cf(0xb0)](LOG_PREFIX3+'\x20Found\x20cached\x20URL\x20for\x20enhancement\x20ID'));}catch{}else try{const _0x271852=sessionStorage[_0x5e28cf(0xdc)](STORAGE_KEY_ENHANCEMENT_ID),_0x2b7d41=sessionStorage[_0x5e28cf(0xdc)](STORAGE_KEY_ENHANCEMENT_URL);_0x271852&&_0x2b7d41&&(_0x1219b7=_0x271852,_0x1d553c=_0x2b7d41,console[_0x5e28cf(0xb0)](LOG_PREFIX3+_0x5e28cf(0x7b)),_0x2b5f67[_0x5e28cf(0xbb)][_0x5e28cf(0xce)]('enhancement',_0x1219b7),window['history'][_0x5e28cf(0x76)](null,document['title'],_0x2b5f67[_0x5e28cf(0xc2)]()));}catch{}return{'enhancementId':_0x1219b7,'cachedUrl':_0x1d553c,'explicitDisable':_0x348e6e};}function persistEnhancement(_0x48cb02,_0xbace7c){const _0xe7d08f=_0x4645d4;try{sessionStorage[_0xe7d08f(0xdb)](STORAGE_KEY_ENHANCEMENT_ID,_0x48cb02),sessionStorage[_0xe7d08f(0xdb)](STORAGE_KEY_ENHANCEMENT_URL,_0xbace7c),console[_0xe7d08f(0xb0)](LOG_PREFIX3+_0xe7d08f(0xf9));}catch{}}function clearPersistedEnhancement(){const _0x2fb65b=_0x4645d4;try{sessionStorage['removeItem'](STORAGE_KEY_ENHANCEMENT_ID),sessionStorage[_0x2fb65b(0xc1)](STORAGE_KEY_ENHANCEMENT_URL),console[_0x2fb65b(0xb0)](LOG_PREFIX3+_0x2fb65b(0xc8));}catch{}}function createController(){const _0x487f51=_0x4645d4,_0x5f374d={'enable'(){const _0x3043f1=getOptions();if(!_0x3043f1)return;state['enabled']=!![],void registerServiceWorker(_0x3043f1),void sendConfiguration(),updateOverlay();},'disable'(){const _0x570d11=_0xabe9,_0x3492af=getOptions();if(!_0x3492af)return;state[_0x570d11(0x78)]=![],state[_0x570d11(0xaf)]=![],clearPersistedEnhancement(),updateOverlay(),void unregisterServiceWorker(_0x3492af[_0x570d11(0xe7)]);},'status'(){const _0x5ccb28=_0xabe9;return{'enabled':state[_0x5ccb28(0x78)],'controlled':state[_0x5ccb28(0xaf)]};}};return typeof window!==_0x487f51(0xa8)&&(window['__enhanceController']=_0x5f374d),_0x5f374d;}function handleToggle(){const _0xa59bf7=_0x4645d4,_0x470839=createController();state['enabled']?_0x470839[_0xa59bf7(0xbc)]():_0x470839[_0xa59bf7(0xc7)]();}function cleanUrlParam(_0x1c8cc5){const _0x1931da=_0x4645d4,_0xd3fb01=new URL(window[_0x1931da(0x11d)]['href']);_0xd3fb01['searchParams'][_0x1931da(0xa6)](_0x1c8cc5)&&(_0xd3fb01[_0x1931da(0xbb)]['delete'](_0x1c8cc5),window[_0x1931da(0x8d)]['replaceState'](null,document[_0x1931da(0xe5)],_0xd3fb01[_0x1931da(0xc2)]()));}function setupViteErrorListeners(){const _0x4a0e7b=_0x4645d4;import.meta.hot&&(import.meta.hot['on'](_0x4a0e7b(0xf5),_0x595094=>{const _0x17095f=_0x4a0e7b;state[_0x17095f(0xbe)]={'message':_0x595094[_0x17095f(0xf0)][_0x17095f(0x10f)]},updateOverlay();}),import.meta.hot['on']('vite:beforeUpdate',()=>{state['appError']&&(state['appError']=null,updateOverlay());}));}function _0xabe9(_0x2acb36,_0x323be7){_0x2acb36=_0x2acb36-0x69;const _0x13de36=_0x13de();let _0xabe991=_0x13de36[_0x2acb36];return _0xabe991;}var package_default={'name':_0x4645d4(0x6c),'version':_0x4645d4(0x104),'type':_0x4645d4(0xd1),'description':_0x4645d4(0x11e),'license':_0x4645d4(0x105),'main':_0x4645d4(0xc5),'module':_0x4645d4(0xc5),'types':_0x4645d4(0x9a),'exports':{'.':{'types':_0x4645d4(0x9a),'import':_0x4645d4(0xc5)},'./vite':{'types':'./dev/vite/index.d.ts','import':'./dev/vite/index.js'}},'files':[_0x4645d4(0x85)],'bin':{'enhance-sandbox':_0x4645d4(0x79)},'scripts':{'typecheck':_0x4645d4(0xbf),'dev':_0x4645d4(0x97),'dev:build':_0x4645d4(0x75),'dev:staging':_0x4645d4(0xa4),'dev:staging:build':_0x4645d4(0xea),'build':_0x4645d4(0x111),'build:release':_0x4645d4(0xf6),'build:release:dev':_0x4645d4(0xcf),'version':'bun\x20version\x20patch\x20--no-git-tag-version'},'dependencies':{'commander':_0x4645d4(0xd7),'zod':_0x4645d4(0x120)},'devDependencies':{'@types/node':_0x4645d4(0xd0),'javascript-obfuscator':_0x4645d4(0xcc),'tsup':_0x4645d4(0xd2),'vite':'^7.2.4'},'publishConfig':{'access':_0x4645d4(0x109)}},DEFAULT_SERVICE_WORKER_PATH=_0x4645d4(0x108),DEFAULT_RUNTIME_PATH=_0x4645d4(0xe3),PACKAGE_VERSION=typeof package_default[_0x4645d4(0xf3)]==='string'?package_default[_0x4645d4(0xf3)]:_0x4645d4(0xa5);function normalizeAssetPath(_0x54cb1f){const _0x28a5cb=_0x4645d4;if(!_0x54cb1f)return _0x54cb1f;if(_0x54cb1f[_0x28a5cb(0xc3)]('http://')||_0x54cb1f[_0x28a5cb(0xc3)]('https://'))return _0x54cb1f;const _0x4adb25=_0x54cb1f[_0x28a5cb(0x72)](/^\.\//,'');return _0x4adb25[_0x28a5cb(0xc3)]('/')?_0x4adb25:'/'+_0x4adb25;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0xaa83f0){const _0x3ff72b=_0x4645d4;return Enhance[_0x3ff72b(0x11f)](_0xaa83f0);},'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 _0x328352=_0x4645d4;return Enhance2[_0x328352(0x129)]();}function runtimeURL(){const _0x4d269c=_0x4645d4;return Enhance2[_0x4d269c(0x8f)]();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
1
+ const _0x373a2c=_0x4809;(function(_0x2f4e7b,_0x4616cf){const _0x194eb5=_0x4809,_0x5b5189=_0x2f4e7b();while(!![]){try{const _0x4dd52a=parseInt(_0x194eb5(0x16a))/0x1*(-parseInt(_0x194eb5(0x10b))/0x2)+-parseInt(_0x194eb5(0xe3))/0x3+-parseInt(_0x194eb5(0x12c))/0x4*(-parseInt(_0x194eb5(0x156))/0x5)+-parseInt(_0x194eb5(0x17b))/0x6+-parseInt(_0x194eb5(0xe5))/0x7*(-parseInt(_0x194eb5(0x152))/0x8)+parseInt(_0x194eb5(0xe4))/0x9*(parseInt(_0x194eb5(0x14f))/0xa)+parseInt(_0x194eb5(0xeb))/0xb;if(_0x4dd52a===_0x4616cf)break;else _0x5b5189['push'](_0x5b5189['shift']());}catch(_0x3c351a){_0x5b5189['push'](_0x5b5189['shift']());}}}(_0x1d49,0x5a291));var DEFAULT_OVERLAY_PATH=typeof __ENHANCE_DEFAULT_OVERLAY_PATH__!==_0x373a2c(0x122)?__ENHANCE_DEFAULT_OVERLAY_PATH__:_0x373a2c(0x182),DEFAULT_BACKEND_URL=typeof __ENHANCE_DEFAULT_BACKEND_URL__!==_0x373a2c(0x122)?__ENHANCE_DEFAULT_BACKEND_URL__:'https://api.enhancelabs.ai',DEFAULT_OVERLAY_HMR=typeof __ENHANCE_OVERLAY_ENABLE_HMR__!=='undefined'?__ENHANCE_OVERLAY_ENABLE_HMR__:![];console['log'](_0x373a2c(0x10a),{'overlayPath':DEFAULT_OVERLAY_PATH,'backendUrl':DEFAULT_BACKEND_URL,'overlayHmr':DEFAULT_OVERLAY_HMR});function normalizeOptions(_0x2b938e){const _0x13dff9=_0x373a2c;if(!_0x2b938e[_0x13dff9(0xd5)])throw new Error(_0x13dff9(0x120));const _0x27c19c=_0x2b938e[_0x13dff9(0x191)]??{};return{'publishableKey':_0x2b938e[_0x13dff9(0xd5)],'callbackBypass':_0x2b938e[_0x13dff9(0x159)]??[],'overlay':{'enabled':!![],'position':_0x13dff9(0x165),'enableViteHmr':_0x27c19c['enableOverlayHmr']??DEFAULT_OVERLAY_HMR},'logLevel':'info','swPath':'/sw-enhance.js','overlayPath':_0x27c19c[_0x13dff9(0x19b)]??DEFAULT_OVERLAY_PATH,'runtimeScriptPath':_0x13dff9(0x12a),'security':_0x27c19c[_0x13dff9(0xfa)]??_0x13dff9(0x139),'backendUrl':_0x27c19c[_0x13dff9(0x16c)]??DEFAULT_BACKEND_URL};}var state={'enabled':![],'controlled':![],'appError':null};function getEnhancementId(){const _0xcfc07e=_0x373a2c;try{const _0x263793=new URLSearchParams(window[_0xcfc07e(0x121)][_0xcfc07e(0x11d)]);return _0x263793['get'](_0xcfc07e(0xcf))?.['trim']()||'';}catch{return'';}}var LOG_PREFIX=_0x373a2c(0x106),overlayController=null,overlayLoadPromise=null,toggleHandler=null,currentOptions=null;async function loadOverlay(_0x587d5e){const _0x205c88=_0x373a2c;console['log'](LOG_PREFIX+_0x205c88(0x17c)),console[_0x205c88(0x18a)](LOG_PREFIX+_0x205c88(0xd4)+_0x587d5e[_0x205c88(0x19b)]),console[_0x205c88(0x18a)](LOG_PREFIX+_0x205c88(0x19f)+_0x587d5e[_0x205c88(0x101)]),currentOptions=_0x587d5e[_0x205c88(0x167)],toggleHandler=_0x587d5e[_0x205c88(0x19a)];if(overlayController){console[_0x205c88(0x18a)](LOG_PREFIX+_0x205c88(0x18f)),updateOverlay();return;}if(overlayLoadPromise)return console[_0x205c88(0x18a)](LOG_PREFIX+_0x205c88(0x153)),overlayLoadPromise;console[_0x205c88(0x18a)](LOG_PREFIX+_0x205c88(0x171)),overlayLoadPromise=doLoadOverlay(_0x587d5e);try{await overlayLoadPromise,console[_0x205c88(0x18a)](LOG_PREFIX+'\x20loadOverlay()\x20complete');}catch(_0x44bd76){console['error'](LOG_PREFIX+'\x20loadOverlay()\x20failed:',_0x44bd76);}finally{overlayLoadPromise=null;}}async function doLoadOverlay(_0x1752fe){const _0xa9fad3=_0x373a2c;console['log'](LOG_PREFIX+_0xa9fad3(0x12f));if(typeof window==='undefined'){console['log'](LOG_PREFIX+'\x20No\x20window\x20object\x20-\x20skipping');return;}if(window['__enhanceOverlay']){console[_0xa9fad3(0x18a)](LOG_PREFIX+'\x20Found\x20cached\x20overlay\x20controller\x20on\x20window.__enhanceOverlay\x20-\x20skipping\x20reinit'),overlayController=window[_0xa9fad3(0xde)];return;}console[_0xa9fad3(0x18a)](LOG_PREFIX+_0xa9fad3(0x125));try{_0x1752fe[_0xa9fad3(0x101)]&&(console[_0xa9fad3(0x18a)](LOG_PREFIX+_0xa9fad3(0x13e)),await setupRemoteHMR(_0x1752fe[_0xa9fad3(0x19b)]));console[_0xa9fad3(0x18a)](LOG_PREFIX+_0xa9fad3(0x133)+_0x1752fe[_0xa9fad3(0x19b)]);const _0x5f1611=Date[_0xa9fad3(0x103)](),_0x10d9b7=await import(_0x1752fe['overlayPath']);console[_0xa9fad3(0x18a)](LOG_PREFIX+'\x20Module\x20imported\x20in\x20'+(Date['now']()-_0x5f1611)+'ms'),console[_0xa9fad3(0x18a)](LOG_PREFIX+'\x20Module\x20exports:',Object[_0xa9fad3(0xd1)](_0x10d9b7));if(typeof _0x10d9b7?.[_0xa9fad3(0x13b)]!=='function'){console[_0xa9fad3(0x100)](LOG_PREFIX+'\x20Module\x20missing\x20createOverlay\x20export!'),console[_0xa9fad3(0x100)](LOG_PREFIX+_0xa9fad3(0x177),Object[_0xa9fad3(0xd1)](_0x10d9b7));return;}console[_0xa9fad3(0x18a)](LOG_PREFIX+_0xa9fad3(0xf9));const _0x4599d3=_0x10d9b7['createOverlay']();console[_0xa9fad3(0x18a)](LOG_PREFIX+'\x20Controller\x20created:',_0x4599d3),overlayController=_0x4599d3,window['__enhanceOverlay']=_0x4599d3,_0x4599d3[_0xa9fad3(0x19a)](_0x1752fe['onToggle']),console[_0xa9fad3(0x18a)](LOG_PREFIX+'\x20Overlay\x20controller\x20initialized\x20and\x20cached'),console['log'](LOG_PREFIX+_0xa9fad3(0xfe)),updateOverlay();}catch(_0x2900e5){console[_0xa9fad3(0x100)](LOG_PREFIX+_0xa9fad3(0x134),_0x2900e5);}}function updateOverlay(){const _0x2215db=_0x373a2c;console['log'](LOG_PREFIX+_0x2215db(0xf5)),console[_0x2215db(0x18a)](LOG_PREFIX+'\x20overlayController\x20exists:\x20'+!!overlayController),console['log'](LOG_PREFIX+_0x2215db(0x132)+!!currentOptions);if(!overlayController||!currentOptions){console[_0x2215db(0x18a)](LOG_PREFIX+_0x2215db(0x155));return;}const _0x4e2509=composeOverlayState(currentOptions);console[_0x2215db(0x18a)](LOG_PREFIX+_0x2215db(0x115),JSON['stringify'](_0x4e2509,null,0x2)),overlayController['update'](_0x4e2509),console[_0x2215db(0x18a)](LOG_PREFIX+_0x2215db(0x114));}function _0x1d49(){const _0x1b2848=['\x20Failed\x20to\x20unregister\x20service\x20worker:','^7.2.4','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','N/A',',\x20currentOptions:\x20','\x20Checking\x20for\x20blocking\x20service\x20worker...','\x20detectBlocking\x20error:','/@vite/client','__enhanceOverlay','\x20Registering\x20SW\x20at\x20','__enhanceController','explicitDisable','ready','1445112wKlpOR','36sUhyvf','238nUjwfO','\x20Unregistering\x20SW...','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20OBFUSCATE=1\x20RELEASE=1\x20tsup','installing','readyState','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup\x20--watch','1086338oajGXZ','vite:beforeUpdate','__enhanceOptions','\x20Current\x20controller\x20after\x20ready:','\x20No\x20service\x20worker\x20active\x20to\x20configure','\x20state.enabled:\x20','disable','\x20init()\x20complete\x20-\x20enhancement\x20mode','0.3.21','active','\x20updateOverlay()\x20called','\x20setupRemoteHMR()\x20for\x20','@enhance-eng/sandbox','enhance:configure','\x20Calling\x20createOverlay()...','security','bun\x20version\x20patch\x20--no-git-tag-version','\x20Config\x20sent\x20to\x20SW','origin','\x20Calling\x20updateOverlay()...','serviceWorker','error','enableViteHmr','false','now','state:\x20','toString','[Enhance\x20Overlay]','__enhanceInitialized','\x20No\x20current\x20controller','string','[Enhance\x20Config]\x20Build-time\x20defaults:','9926gjXJLP','./dev/cli.js','module','\x20Setting\x20up\x20Vite\x20HMR\x20error\x20listeners','\x20composeOverlayState\x20-\x20state.controlled:\x20','__viteHMRLoaded','\x20Raw\x20options:','\x20First\x20initialization','enhance','\x20Overlay\x20update\x20complete','\x20Updating\x20overlay\x20with\x20state:','enable','$RefreshReg$','swPath','enabled','\x20Sending\x20customer\x20configuration...','\x20Enhancement\x20detection:\x20wasEnhanced=','...','search','serviceWorkerURL','position','[Enhance]\x20publishableKey\x20is\x20required\x20in\x20Enhance.init()','location','undefined','vite:error','\x20Waiting\x20for\x20navigator.serviceWorker.ready...','\x20No\x20cached\x20controller\x20-\x20will\x20import\x20module','some','add','\x20Normalized\x20options:','\x20registerServiceWorker()\x20complete','/assets/enhance-runtime.js','\x20Starting\x20overlay\x20load\x20(async)...','4pIkLhS','\x20with\x20scope\x20\x27/\x27...','\x20No\x20registration\x20found\x20-\x20nothing\x20to\x20unregister','\x20doLoadOverlay()\x20starting...','none','./dev/index.d.ts','\x20currentOptions\x20exists:\x20','\x20Importing\x20overlay\x20module\x20from:\x20','\x20Failed\x20to\x20import/create\x20overlay:','ENHANCE_OVERLAY_PATH=https://assets.enhancelabs.ai/overlay.js\x20ENHANCE_BACKEND_URL=https://api.enhancelabs.ai\x20tsup','searchParams','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://enhance-api-dev.enhancelabs.workers.dev\x20tsup\x20--watch','\x20composeOverlayState\x20-\x20enhancementId:\x20','permissive','0.0.0','createOverlay','\x20Updating\x20overlay...','^4.1.1','\x20Setting\x20up\x20remote\x20HMR...','\x20resolveWorker:','\x20HMR\x20setup\x20complete','\x20Failed\x20to\x20register\x20service\x20worker:','\x20Enhancement\x20mode\x20ENABLED','/sw-enhance.js','public','controlled','\x20Vite\x20client\x20already\x20loaded\x20for\x20','\x20No\x20serviceWorker\x20support\x20-\x20nothing\x20to\x20unregister','MIT','has','\x20Sending\x20customer\x20config\x20to\x20SW:','\x20Registration\x20is\x20not\x20ours\x20-\x20not\x20unregistering','\x20Invalid\x20React\x20Refresh\x20runtime','\x20registerServiceWorker()\x20called','off','1142690kIumjD','\x20BLOCKING\x20SW\x20detected:\x20','\x20Enhancement\x20features\x20will\x20NOT\x20work\x20until\x20it\x20is\x20unregistered','24424QOCuZQ','\x20Load\x20already\x20in\x20progress\x20-\x20waiting...','$RefreshSig$','\x20Missing\x20controller\x20or\x20options\x20-\x20skipping\x20update','2774595LWyKdA','ENHANCE_OVERLAY_PATH=https://overlay.localhost:8099/src/index.tsx\x20ENHANCE_BACKEND_URL=https://overlay.localhost:8099\x20tsup','./dev/vite/index.d.ts','callbackBypass','scriptURL','Enhance\x20preview\x20bootstrap\x20and\x20tooling\x20package.','[Enhance\x20Runtime]','overlay','startsWith','\x20sendConfiguration()\x20called','dev/','\x20composeOverlayState\x20-\x20state.enabled:\x20','delete','init','\x20Vite\x20HMR\x20client\x20loaded\x20for\x20','bottom-right','stringify','options','scope','http://','5HcpHTB','object','backendUrl','controller','__vite_plugin_react_preamble_installed__','replaceState','__enhanceReactRefreshInstalledOrigins','\x20Starting\x20fresh\x20overlay\x20load...','warn','\x20SW\x20unregistered\x20successfully','includes','[Enhance\x20SW-Client]','title','\x20Available\x20exports:','appError','\x20Vite\x20update\x20pending\x20-\x20clearing\x20error',',\x20page\x20origin:\x20','2032434AnevBq','\x20loadOverlay()\x20called','^8.5.1','\x20Vite\x20error\x20detected:','enhancementUrl','\x20init()\x20complete\x20-\x20normal\x20mode','https://','https://assets.enhancelabs.ai/overlay.js','href','\x20React\x20Refresh\x20runtime\x20installed\x20for\x20','hasEnhancement','\x20Registration\x20returned:','/@react-refresh','err','\x20No\x20blocking\x20SW\x20found','log','\x20enhancementUrl:\x20','toLowerCase','\x20Overlay\x20origin:\x20','tsc\x20--noEmit','\x20Controller\x20already\x20exists\x20-\x20updating\x20overlay','\x20Document\x20readyState:\x20','__development','injectIntoGlobalHook','version','default','^24.10.1','replace','\x20Page\x20controlled\x20by\x20our\x20SW:\x20','./dev/index.js','\x20Installing\x20React\x20Refresh\x20runtime\x20from\x20','onToggle','overlayPath','\x20detectBlocking\x20-\x20existing\x20registration:','\x20Service\x20workers\x20supported','\x20Loading\x20Vite\x20HMR\x20client\x20from\x20','\x20enableViteHmr:\x20','get','\x20Already\x20initialized\x20(window.__enhanceInitialized=true)\x20-\x20returning\x20existing\x20controller','\x20Page\x20was\x20not\x20controlled\x20-\x20SW\x20just\x20activated.\x20Reloading\x20to\x20enable\x20enhancement...','enhancement',',\x20expected=','keys','waiting','getRegistration','\x20overlayPath:\x20','publishableKey'];_0x1d49=function(){return _0x1b2848;};return _0x1d49();}function composeOverlayState(_0xb91ca8){const _0x5c7237=_0x373a2c,_0x53cee2=getEnhancementId();return console[_0x5c7237(0x18a)](LOG_PREFIX+_0x5c7237(0x138)+_0x53cee2),console[_0x5c7237(0x18a)](LOG_PREFIX+_0x5c7237(0x161)+state[_0x5c7237(0x119)]),console[_0x5c7237(0x18a)](LOG_PREFIX+_0x5c7237(0x10f)+state[_0x5c7237(0x145)]),{'enhancementId':_0x53cee2,'enabled':state[_0x5c7237(0x119)],'controlled':state['controlled'],'overlayPosition':_0xb91ca8['overlay'][_0x5c7237(0x11f)],'securityMode':_0xb91ca8[_0x5c7237(0xfa)],'backendBaseUrl':_0xb91ca8[_0x5c7237(0x16c)],'appError':state[_0x5c7237(0x178)]};}async function setupRemoteHMR(_0x528fba){const _0x1f86d2=_0x373a2c;console[_0x1f86d2(0x18a)](LOG_PREFIX+_0x1f86d2(0xf6)+_0x528fba);if(typeof window===_0x1f86d2(0x122))return;try{const _0x4f223e=new URL(_0x528fba,window[_0x1f86d2(0x121)][_0x1f86d2(0xfd)]),_0x267523=_0x4f223e[_0x1f86d2(0xfd)];console[_0x1f86d2(0x18a)](LOG_PREFIX+_0x1f86d2(0x18d)+_0x267523+_0x1f86d2(0x17a)+window[_0x1f86d2(0x121)]['origin']);if(_0x267523===window[_0x1f86d2(0x121)][_0x1f86d2(0xfd)]){console[_0x1f86d2(0x18a)](LOG_PREFIX+'\x20Same\x20origin\x20-\x20skipping\x20HMR\x20setup');return;}console[_0x1f86d2(0x18a)](LOG_PREFIX+'\x20Cross-origin\x20overlay\x20-\x20setting\x20up\x20HMR...'),await ensureReactRefreshPreamble(_0x267523),await ensureViteClient(_0x267523),console[_0x1f86d2(0x18a)](LOG_PREFIX+_0x1f86d2(0x140));}catch(_0x3443f3){console[_0x1f86d2(0x172)](LOG_PREFIX+'\x20Failed\x20to\x20prepare\x20remote\x20HMR\x20(non-fatal):',_0x3443f3);}}async function ensureReactRefreshPreamble(_0x386c7f){const _0x53c181=_0x373a2c;window[_0x53c181(0x170)]??=new Set();if(window['__enhanceReactRefreshInstalledOrigins'][_0x53c181(0x149)](_0x386c7f)){console['log'](LOG_PREFIX+'\x20React\x20Refresh\x20already\x20installed\x20for\x20'+_0x386c7f);return;}console[_0x53c181(0x18a)](LOG_PREFIX+_0x53c181(0x199)+_0x386c7f+_0x53c181(0x11c));const _0x265170=await import(_0x386c7f+_0x53c181(0x187)),_0x5a2a2d=_0x265170&&typeof _0x265170===_0x53c181(0x16b)&&'default'in _0x265170?_0x265170[_0x53c181(0x194)]:_0x265170;if(!isRefreshRuntime(_0x5a2a2d)){console[_0x53c181(0x172)](LOG_PREFIX+_0x53c181(0x14c));return;}_0x5a2a2d[_0x53c181(0x192)](window),window[_0x53c181(0x117)]=()=>{},window[_0x53c181(0x154)]=()=>_0x218b58=>_0x218b58,window[_0x53c181(0x16e)]=!![],window[_0x53c181(0x170)][_0x53c181(0x127)](_0x386c7f),console[_0x53c181(0x18a)](LOG_PREFIX+_0x53c181(0x184)+_0x386c7f);}async function ensureViteClient(_0x18b725){const _0x1dab0f=_0x373a2c;window[_0x1dab0f(0x110)]??=new Set();if(window[_0x1dab0f(0x110)][_0x1dab0f(0x149)](_0x18b725)){console['log'](LOG_PREFIX+_0x1dab0f(0x146)+_0x18b725);return;}console[_0x1dab0f(0x18a)](LOG_PREFIX+_0x1dab0f(0x19e)+_0x18b725+_0x1dab0f(0x11c)),await import(_0x18b725+_0x1dab0f(0xdd)),window['__viteHMRLoaded'][_0x1dab0f(0x127)](_0x18b725),console[_0x1dab0f(0x18a)](LOG_PREFIX+_0x1dab0f(0x164)+_0x18b725);}function isRefreshRuntime(_0x319a5){const _0x40095f=_0x373a2c;return typeof _0x319a5==='object'&&_0x319a5!==null&&'injectIntoGlobalHook'in _0x319a5&&typeof _0x319a5[_0x40095f(0x192)]==='function';}var WORKER_MESSAGE_CONFIG=_0x373a2c(0xf8),WORKER_MESSAGE_DISABLE='enhance:disable',LOG_PREFIX2=_0x373a2c(0x175),registration=null,currentOptions2=null;async function registerServiceWorker(_0x2b469e){const _0x22dac9=_0x373a2c;console[_0x22dac9(0x18a)](LOG_PREFIX2+_0x22dac9(0x14d)),console[_0x22dac9(0x18a)](LOG_PREFIX2+'\x20swPath:\x20'+_0x2b469e['swPath']);if(!(_0x22dac9(0xff)in navigator)){console['warn'](LOG_PREFIX2+'\x20Service\x20workers\x20NOT\x20supported\x20in\x20this\x20browser');return;}console[_0x22dac9(0x18a)](LOG_PREFIX2+_0x22dac9(0x19d));const _0x2e11c6=navigator[_0x22dac9(0xff)][_0x22dac9(0x16d)];console['log'](LOG_PREFIX2+'\x20Current\x20controller:',_0x2e11c6?.[_0x22dac9(0x15a)]??_0x22dac9(0x130)),console[_0x22dac9(0x18a)](LOG_PREFIX2+'\x20Controller\x20state:',_0x2e11c6?.['state']??'N/A');const _0xcb1622=!!_0x2e11c6;currentOptions2=_0x2b469e,console[_0x22dac9(0x18a)](LOG_PREFIX2+_0x22dac9(0xdb));const _0x46560c=await detectBlockingServiceWorker(_0x2b469e['swPath']);if(_0x46560c){console[_0x22dac9(0x100)](LOG_PREFIX2+_0x22dac9(0x150)+_0x46560c),console[_0x22dac9(0x100)](LOG_PREFIX2+_0x22dac9(0x151));return;}console[_0x22dac9(0x18a)](LOG_PREFIX2+_0x22dac9(0x189));try{console['log'](LOG_PREFIX2+_0x22dac9(0xdf)+_0x2b469e[_0x22dac9(0x118)]+_0x22dac9(0x12d)),registration=await navigator[_0x22dac9(0xff)]['register'](_0x2b469e['swPath'],{'scope':'/'}),console['log'](LOG_PREFIX2+_0x22dac9(0x186),{'scope':registration['scope'],'active':registration['active']?.['scriptURL'],'waiting':registration[_0x22dac9(0xd2)]?.[_0x22dac9(0x15a)],'installing':registration[_0x22dac9(0xe8)]?.['scriptURL']}),console[_0x22dac9(0x18a)](LOG_PREFIX2+_0x22dac9(0x124));const _0x7861b=await navigator['serviceWorker'][_0x22dac9(0xe2)];console['log'](LOG_PREFIX2+'\x20SW\x20ready!\x20Active:',_0x7861b[_0x22dac9(0xf4)]?.[_0x22dac9(0x15a)]);const _0x35de58=ownsCurrentController(_0x2b469e[_0x22dac9(0x118)]);state[_0x22dac9(0x145)]=_0x35de58,console['log'](LOG_PREFIX2+_0x22dac9(0x197)+_0x35de58),console[_0x22dac9(0x18a)](LOG_PREFIX2+_0x22dac9(0xee),navigator[_0x22dac9(0xff)][_0x22dac9(0x16d)]?.[_0x22dac9(0x15a)]??_0x22dac9(0x130));if(!_0xcb1622&&!navigator[_0x22dac9(0xff)][_0x22dac9(0x16d)]){console[_0x22dac9(0x18a)](LOG_PREFIX2+_0x22dac9(0xce)),window['location']['reload']();return;}console[_0x22dac9(0x18a)](LOG_PREFIX2+_0x22dac9(0x11a)),await sendConfiguration();if(state[_0x22dac9(0x119)]){const _0x5e65bb=document['querySelector']('[data-enhance-runtime-bootstrap]')!==null;console[_0x22dac9(0x18a)](LOG_PREFIX2+_0x22dac9(0x11b)+_0x5e65bb);if(!_0x5e65bb){console['log'](LOG_PREFIX2+'\x20Page\x20not\x20enhanced\x20by\x20SW\x20-\x20reloading\x20to\x20apply\x20enhancement'),window[_0x22dac9(0x121)]['reload']();return;}}console[_0x22dac9(0x18a)](LOG_PREFIX2+_0x22dac9(0x13c)),updateOverlay(),console[_0x22dac9(0x18a)](LOG_PREFIX2+_0x22dac9(0x129));}catch(_0x5297bb){console['error'](LOG_PREFIX2+_0x22dac9(0x141),_0x5297bb);}}async function sendConfiguration(){const _0x2689d6=_0x373a2c;console[_0x2689d6(0x18a)](LOG_PREFIX2+_0x2689d6(0x15f)),console['log'](LOG_PREFIX2+_0x2689d6(0xf0)+state['enabled']+_0x2689d6(0xda)+!!currentOptions2);if(!state[_0x2689d6(0x119)]||!currentOptions2){console[_0x2689d6(0x18a)](LOG_PREFIX2+'\x20Skipping\x20-\x20not\x20enabled\x20or\x20no\x20options');return;}const _0x2be135=await resolveWorker();if(!_0x2be135){console['warn'](LOG_PREFIX2+_0x2689d6(0xef));return;}const _0x37d9c7={'publishableKey':currentOptions2['publishableKey'],'callbackBypass':currentOptions2[_0x2689d6(0x159)],'securityMode':currentOptions2[_0x2689d6(0xfa)]};console['log'](LOG_PREFIX2+_0x2689d6(0x14a),JSON['stringify'](_0x37d9c7,null,0x2)),_0x2be135['postMessage']({'type':WORKER_MESSAGE_CONFIG,'config':_0x37d9c7}),console[_0x2689d6(0x18a)](LOG_PREFIX2+_0x2689d6(0xfc));}async function unregisterServiceWorker(_0x19ebb9){const _0x4e45a0=_0x373a2c;console[_0x4e45a0(0x18a)](LOG_PREFIX2+'\x20unregisterServiceWorker()\x20called');if(!(_0x4e45a0(0xff)in navigator)){console[_0x4e45a0(0x18a)](LOG_PREFIX2+_0x4e45a0(0x147));return;}try{const _0x4c7ee0=registration??await navigator[_0x4e45a0(0xff)]['getRegistration']('/');if(!_0x4c7ee0){console[_0x4e45a0(0x18a)](LOG_PREFIX2+_0x4e45a0(0x12e));return;}console['log'](LOG_PREFIX2+'\x20Found\x20registration:',{'scope':_0x4c7ee0[_0x4e45a0(0x168)],'active':_0x4c7ee0[_0x4e45a0(0xf4)]?.[_0x4e45a0(0x15a)],'waiting':_0x4c7ee0['waiting']?.[_0x4e45a0(0x15a)],'installing':_0x4c7ee0['installing']?.[_0x4e45a0(0x15a)]});const _0x8a913=[_0x4c7ee0[_0x4e45a0(0xf4)]?.[_0x4e45a0(0x15a)],_0x4c7ee0[_0x4e45a0(0xd2)]?.[_0x4e45a0(0x15a)],_0x4c7ee0[_0x4e45a0(0xe8)]?.['scriptURL']],_0x3c611d=_0x8a913[_0x4e45a0(0x126)](_0xbfafa7=>_0xbfafa7&&ownsServiceWorker(_0xbfafa7,_0x19ebb9));if(!_0x3c611d){console['log'](LOG_PREFIX2+_0x4e45a0(0x14b));return;}_0x4c7ee0[_0x4e45a0(0xf4)]&&(console[_0x4e45a0(0x18a)](LOG_PREFIX2+'\x20Sending\x20DISABLE\x20message\x20to\x20SW...'),_0x4c7ee0[_0x4e45a0(0xf4)]['postMessage']({'type':WORKER_MESSAGE_DISABLE})),console['log'](LOG_PREFIX2+_0x4e45a0(0xe6)),await _0x4c7ee0['unregister'](),registration=null,currentOptions2=null,console[_0x4e45a0(0x18a)](LOG_PREFIX2+_0x4e45a0(0x173));}catch(_0x38acf8){console[_0x4e45a0(0x100)](LOG_PREFIX2+_0x4e45a0(0xd6),_0x38acf8);}}function ownsServiceWorker(_0x474053,_0x44f09f){const _0x2192f3=_0x373a2c,_0x1f4884=typeof window!==_0x2192f3(0x122)?window[_0x2192f3(0x121)][_0x2192f3(0xfd)]:'',_0x462f91=new URL(_0x44f09f,_0x1f4884||void 0x0)[_0x2192f3(0x183)],_0xfb052d=_0x474053===_0x462f91||_0x474053[_0x2192f3(0x174)]('sw-enhance');return console[_0x2192f3(0x18a)](LOG_PREFIX2+'\x20ownsServiceWorker?\x20scriptURL='+_0x474053+_0x2192f3(0xd0)+_0x462f91+',\x20owns='+_0xfb052d),_0xfb052d;}function ownsCurrentController(_0x580b0d){const _0x42e4be=_0x373a2c;if(typeof navigator===_0x42e4be(0x122))return![];const _0x3d5b5f=navigator['serviceWorker']?.[_0x42e4be(0x16d)];if(!_0x3d5b5f)return console[_0x42e4be(0x18a)](LOG_PREFIX2+_0x42e4be(0x108)),![];return ownsServiceWorker(_0x3d5b5f['scriptURL'],_0x580b0d);}async function detectBlockingServiceWorker(_0x2b2df5){const _0x221f3f=_0x373a2c;if(!navigator[_0x221f3f(0xff)])return null;try{const _0x2422cd=await navigator[_0x221f3f(0xff)]['getRegistration']('/');console[_0x221f3f(0x18a)](LOG_PREFIX2+_0x221f3f(0x19c),_0x2422cd?.[_0x221f3f(0xf4)]?.[_0x221f3f(0x15a)]??_0x221f3f(0x130));const _0x3dc8b8=_0x2422cd?.[_0x221f3f(0xf4)]?.[_0x221f3f(0x15a)];if(!_0x3dc8b8)return null;if(ownsServiceWorker(_0x3dc8b8,_0x2b2df5))return null;return _0x3dc8b8;}catch(_0x25d8cd){return console['error'](LOG_PREFIX2+_0x221f3f(0xdc),_0x25d8cd),null;}}async function resolveWorker(){const _0x212a5b=_0x373a2c,_0x3b9a7d=registration??await navigator['serviceWorker']?.[_0x212a5b(0xd3)]('/'),_0x5dbe75=_0x3b9a7d?.[_0x212a5b(0xf4)]??_0x3b9a7d?.[_0x212a5b(0xd2)]??_0x3b9a7d?.['installing']??null;return console[_0x212a5b(0x18a)](LOG_PREFIX2+_0x212a5b(0x13f),_0x5dbe75?.[_0x212a5b(0x15a)]??'none',_0x212a5b(0x104)+(_0x5dbe75?.['state']??_0x212a5b(0xd9))),_0x5dbe75;}function _0x4809(_0x4085aa,_0xa3d795){_0x4085aa=_0x4085aa-0xcc;const _0x1d490f=_0x1d49();let _0x48095a=_0x1d490f[_0x4085aa];return _0x48095a;}var LOG_PREFIX3=_0x373a2c(0x15c);function isInitialized(){const _0x22ce0f=_0x373a2c;return typeof window!==_0x22ce0f(0x122)&&window[_0x22ce0f(0x107)]===!![];}function setInitialized(_0x9a3e55){const _0x1330ca=_0x373a2c;typeof window!=='undefined'&&(window[_0x1330ca(0x107)]=_0x9a3e55);}function getOptions(){const _0x5769cb=_0x373a2c;return typeof window!==_0x5769cb(0x122)?window[_0x5769cb(0xed)]??null:null;}function setOptions(_0x354a5d){const _0x276825=_0x373a2c;typeof window!==_0x276825(0x122)&&(window[_0x276825(0xed)]=_0x354a5d);}var Enhance={'init'(_0x2de476){const _0x3779c6=_0x373a2c,_0x495fda=Date['now']();console[_0x3779c6(0x18a)](LOG_PREFIX3+'\x20init()\x20called\x20at\x20'+_0x495fda),console[_0x3779c6(0x18a)](LOG_PREFIX3+'\x20Current\x20URL:\x20'+window['location']['href']),console[_0x3779c6(0x18a)](LOG_PREFIX3+_0x3779c6(0x190)+document[_0x3779c6(0xe9)]),console[_0x3779c6(0x18a)](LOG_PREFIX3+_0x3779c6(0x111),JSON[_0x3779c6(0x166)](_0x2de476,null,0x2));if(isInitialized())return console['warn'](LOG_PREFIX3+_0x3779c6(0xcd)),window[_0x3779c6(0xe0)]??createController();setInitialized(!![]),console[_0x3779c6(0x18a)](LOG_PREFIX3+_0x3779c6(0x112));const _0x3fc68a=normalizeOptions(_0x2de476);setOptions(_0x3fc68a),console['log'](LOG_PREFIX3+_0x3779c6(0x128),JSON[_0x3779c6(0x166)](_0x3fc68a,null,0x2));const _0x1bd68b=parseUrlParams();console[_0x3779c6(0x18a)](LOG_PREFIX3+'\x20URL\x20params\x20parsed:',JSON[_0x3779c6(0x166)](_0x1bd68b,null,0x2));if(_0x1bd68b[_0x3779c6(0xe1)])return cleanUrlParam(_0x3779c6(0x113)),console[_0x3779c6(0x18a)](LOG_PREFIX3+'\x20Explicit\x20disable\x20via\x20URL\x20param\x20-\x20exiting'),createController();if(_0x1bd68b[_0x3779c6(0x185)])return console['log'](LOG_PREFIX3+_0x3779c6(0x142)),console[_0x3779c6(0x18a)](LOG_PREFIX3+_0x3779c6(0x18b)+_0x1bd68b[_0x3779c6(0x17f)]),console[_0x3779c6(0x18a)](LOG_PREFIX3+'\x20enhancementId:\x20'+_0x1bd68b['enhancementId']),state[_0x3779c6(0x119)]=!![],console['log'](LOG_PREFIX3+_0x3779c6(0x12b)),void loadOverlay({'overlayPath':_0x3fc68a[_0x3779c6(0x19b)],'enableViteHmr':_0x3fc68a[_0x3779c6(0x15d)][_0x3779c6(0x101)],'options':_0x3fc68a,'onToggle':handleToggle}),console[_0x3779c6(0x18a)](LOG_PREFIX3+'\x20Starting\x20SW\x20registration\x20(async)...'),void registerServiceWorker(_0x3fc68a),console[_0x3779c6(0x18a)](LOG_PREFIX3+_0x3779c6(0xf2)),createController();return console[_0x3779c6(0x18a)](LOG_PREFIX3+'\x20Normal\x20mode\x20-\x20no\x20enhancement\x20params'),console[_0x3779c6(0x18a)](LOG_PREFIX3+'\x20Unregistering\x20any\x20existing\x20SW...'),void unregisterServiceWorker(_0x3fc68a[_0x3779c6(0x118)]),console[_0x3779c6(0x18a)](LOG_PREFIX3+_0x3779c6(0x180)),import.meta.hot&&(console[_0x3779c6(0x18a)](LOG_PREFIX3+_0x3779c6(0x10e)),import.meta.hot['on'](_0x3779c6(0x123),_0x14d3df=>{const _0x7dc56a=_0x3779c6;console[_0x7dc56a(0x18a)](LOG_PREFIX3+_0x7dc56a(0x17e),_0x14d3df),state[_0x7dc56a(0x178)]={'message':_0x14d3df[_0x7dc56a(0x188)]['message']},updateOverlay();}),import.meta.hot['on'](_0x3779c6(0xec),()=>{const _0x4076a5=_0x3779c6;state[_0x4076a5(0x178)]&&(console['log'](LOG_PREFIX3+_0x4076a5(0x179)),state[_0x4076a5(0x178)]=null,updateOverlay());})),createController();}};function createController(){const _0x1a3886=_0x373a2c,_0x25eae2={'enable'(){const _0x101523=_0x4809,_0x3bb274=getOptions();if(!_0x3bb274)return;state[_0x101523(0x119)]=!![],void loadOverlay({'overlayPath':_0x3bb274['overlayPath'],'enableViteHmr':_0x3bb274[_0x101523(0x15d)][_0x101523(0x101)],'options':_0x3bb274,'onToggle':handleToggle}),void registerServiceWorker(_0x3bb274),void sendConfiguration(),updateOverlay();},'disable'(){const _0x6b1669=_0x4809,_0x178696=getOptions();if(!_0x178696)return;state['enabled']=![],state['controlled']=![],updateOverlay(),void unregisterServiceWorker(_0x178696[_0x6b1669(0x118)]);},'status'(){const _0x23f82f=_0x4809;return{'enabled':state[_0x23f82f(0x119)],'controlled':state[_0x23f82f(0x145)]};}};return typeof window!==_0x1a3886(0x122)&&(window[_0x1a3886(0xe0)]=_0x25eae2),_0x25eae2;}function handleToggle(){const _0x53cd53=_0x373a2c,_0x1bb4ea=createController();state[_0x53cd53(0x119)]?_0x1bb4ea[_0x53cd53(0xf1)]():_0x1bb4ea[_0x53cd53(0x116)]();}function parseUrlParams(){const _0x15b8ba=_0x373a2c,_0x55769e=new URL(window[_0x15b8ba(0x121)]['href']),_0x33ce4a=_0x55769e[_0x15b8ba(0x136)]['get']('enhance')?.[_0x15b8ba(0x18c)](),_0x59656f=_0x55769e['searchParams']['get']('enhancementUrl'),_0x180a8f=_0x55769e['searchParams'][_0x15b8ba(0xcc)](_0x15b8ba(0xcf));return{'hasEnhancement':Boolean(_0x59656f||_0x180a8f),'explicitDisable':_0x33ce4a==='0'||_0x33ce4a===_0x15b8ba(0x102)||_0x33ce4a===_0x15b8ba(0x14e),'enhancementUrl':_0x59656f,'enhancementId':_0x180a8f};}function cleanUrlParam(_0x325463){const _0x25ce26=_0x373a2c,_0x1b8f2d=new URL(window[_0x25ce26(0x121)][_0x25ce26(0x183)]);_0x1b8f2d[_0x25ce26(0x136)][_0x25ce26(0x149)](_0x325463)&&(_0x1b8f2d[_0x25ce26(0x136)][_0x25ce26(0x162)](_0x325463),window['history'][_0x25ce26(0x16f)](null,document[_0x25ce26(0x176)],_0x1b8f2d[_0x25ce26(0x105)]()));}var package_default={'name':_0x373a2c(0xf7),'version':_0x373a2c(0xf3),'type':_0x373a2c(0x10d),'description':_0x373a2c(0x15b),'license':_0x373a2c(0x148),'main':_0x373a2c(0x198),'module':_0x373a2c(0x198),'types':_0x373a2c(0x131),'exports':{'.':{'types':_0x373a2c(0x131),'import':_0x373a2c(0x198)},'./vite':{'types':_0x373a2c(0x158),'import':'./dev/vite/index.js'}},'files':[_0x373a2c(0x160)],'bin':{'enhance-sandbox':_0x373a2c(0x10c)},'scripts':{'typecheck':_0x373a2c(0x18e),'dev':_0x373a2c(0xea),'dev:build':_0x373a2c(0x157),'dev:staging':_0x373a2c(0x137),'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':_0x373a2c(0x135),'build:release':_0x373a2c(0xe7),'build:release:dev':_0x373a2c(0xd8),'version':_0x373a2c(0xfb)},'dependencies':{'commander':'^11.1.0','zod':'^3.22.4'},'devDependencies':{'@types/node':_0x373a2c(0x195),'javascript-obfuscator':_0x373a2c(0x13d),'tsup':_0x373a2c(0x17d),'vite':_0x373a2c(0xd7)},'publishConfig':{'access':_0x373a2c(0x144)}},DEFAULT_SERVICE_WORKER_PATH=_0x373a2c(0x143),DEFAULT_RUNTIME_PATH=_0x373a2c(0x12a),PACKAGE_VERSION=typeof package_default[_0x373a2c(0x193)]===_0x373a2c(0x109)?package_default['version']:_0x373a2c(0x13a);function normalizeAssetPath(_0x1050c2){const _0x652769=_0x373a2c;if(!_0x1050c2)return _0x1050c2;if(_0x1050c2['startsWith'](_0x652769(0x169))||_0x1050c2[_0x652769(0x15e)](_0x652769(0x181)))return _0x1050c2;const _0x17ecb4=_0x1050c2[_0x652769(0x196)](/^\.\//,'');return _0x17ecb4[_0x652769(0x15e)]('/')?_0x17ecb4:'/'+_0x17ecb4;}var defaultSwPath=normalizeAssetPath(DEFAULT_SERVICE_WORKER_PATH),defaultRuntimePath=normalizeAssetPath(DEFAULT_RUNTIME_PATH),Enhance2={'init'(_0x564464){const _0x4bcb84=_0x373a2c;return Enhance[_0x4bcb84(0x163)](_0x564464);},'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 _0x45b187=_0x373a2c;return Enhance2[_0x45b187(0x11e)]();}function runtimeURL(){return Enhance2['runtimeURL']();}export{Enhance2 as Enhance,getAssetManifest,resolveServiceWorkerPath,runtimeURL,serviceWorkerURL};
@@ -1 +1 @@
1
- 'use strict';(function(_0x3c531f,_0x3c4d14){const _0xba315d=_0x7848,_0x4451c3=_0x3c531f();while(!![]){try{const _0x2f54f5=-parseInt(_0xba315d(0x87))/0x1+-parseInt(_0xba315d(0x8a))/0x2+-parseInt(_0xba315d(0x154))/0x3*(-parseInt(_0xba315d(0xbd))/0x4)+-parseInt(_0xba315d(0x15a))/0x5*(parseInt(_0xba315d(0x6f))/0x6)+parseInt(_0xba315d(0xd7))/0x7*(-parseInt(_0xba315d(0x171))/0x8)+-parseInt(_0xba315d(0xe5))/0x9*(parseInt(_0xba315d(0xe8))/0xa)+parseInt(_0xba315d(0xca))/0xb;if(_0x2f54f5===_0x3c4d14)break;else _0x4451c3['push'](_0x4451c3['shift']());}catch(_0x17c421){_0x4451c3['push'](_0x4451c3['shift']());}}}(_0x1737,0x8f83c));function _0x1737(){const _0x5d0b2e=['[Enhance\x20SW]','\x20\x20\x20\x20try\x20{','\x20\x20\x20\x20\x20\x20var\x20loweredPath\x20=\x20pathname.toLowerCase();','data','enhancementUrl','url','hit','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Controller\x20attached\x20to\x20window.enhancePreview\x22);','\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)','Enhancement\x20miss\x20','\x20\x20\x20\x20\x20\x20if\x20(!value)\x20return\x20[];','enhance:disable','font','34252gzTDfg','\x20\x20\x20\x20\x20\x20return;','\x20\x20\x20\x20\x20\x20return\x20false;','text','full','\x5cs*=\x5cs*([\x27\x22])([^\x22\x27]+)\x5c1','cache-control','\x20\x20\x20\x20\x20\x20//\x20Always\x20use\x20enhancementBase\x20for\x20HMR\x20WebSocket\x20proxying','\x20\x20\x20\x20const\x20runtimeModule\x20=\x20await\x20import(runtimePath);','content-length','navigate','\x0a</body>','GET','38706217IdRUzP','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Set\x20window.__enhanceInitialized\x20=\x20true\x22);','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(rewritten.toString(),\x20protocols);','\x20\x20}\x20catch\x20(error)\x20{','\x20\x20\x20\x20\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20fallback\x22,\x20error);','\x20\x20\x20Content-Type:\x20','\x20Config\x20updated:','\x20\x20\x20\x20if\x20(typeof\x20window\x20!==\x20\x22undefined\x22)\x20{','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(loweredPath.indexOf(knownPathHints[j])\x20!==\x20-1)\x20{','[set]','\x20\x20\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20No\x20Enhance.init\x20export\x20found!\x22);','set-cookie','Enhancement\x20fetch\x20failed','623NlDyrM','info','/sw-enhance.js','\x20\x20\x20No\x20script\x20generated\x20(missing\x20runtimePath)\x20-\x20returning\x20html\x20unchanged','worker-src\x20\x27self\x27\x20blob:','\x20\x20try\x20{','trim','img-src\x20*\x20data:\x20blob:','access-control-allow-origin','\x20\x20\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket.prototype,\x20\x22constructor\x22,\x20{\x20value:\x20EnhancedWebSocket\x20});','overlayPath','\x20\x20\x20Custom\x20security\x20mode\x20-\x20preserving\x20original\x20CSP','script-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20\x27unsafe-eval\x27\x20blob:\x20data:\x20https:\x20http:','get','47403jzkDsB','media-src\x20*\x20data:\x20blob:','__esModule','970MTGjUA','/webpack-hot-middleware','src','log','\x20\x20\x20\x20if\x20(!originalWebSocket\x20||\x20originalWebSocket.__enhancePatched)\x20{','status','/webpack-hmr','search','\x20\x20\x20\x20\x20\x20//\x20ignore\x20if\x20unable\x20to\x20redefine','\x20\x20\x20\x20\x20\x20\x20\x20return\x20false;','mode','\x20\x20\x20overlayPath:\x20','\x20\x20\x20\x20\x20\x20return\x20Array.isArray(value)\x20?\x20value\x20:\x20[value];','object','waitUntil','x-enhance-document','follow','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(typeof\x20proto\x20===\x20\x22string\x22\x20&&\x20knownProtocols.has(proto.toLowerCase()))\x20{','\x20\x20\x20Injecting\x20runtime\x20bootstrap...','/@vite/client','permissive','\x20\x20\x20enhancementUrl:\x20','enumerable','\x20\x20\x20\x20Object.assign(EnhancedWebSocket,\x20originalWebSocket);','\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket,\x20\x22__enhancePatched\x22,\x20{\x20value:\x20true\x20});','\x20\x20\x20Stripping\x20SRI\x20attributes...','stylesheet','\x20is\x20overlay\x20asset\x20-\x20not\x20routing','\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','\x20shouldRouteAsset:\x20','(async\x20()\x20=>\x20{','\x20buildRuntimeBootstrapScript:\x20no\x20runtimePath\x20-\x20returning\x20null','redirect','publishableKey','\x20\x20\x20Enhancement\x20MISS:\x20','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhancement\x20document','has','custom','\x20chars','connect-src\x20*','\x20\x20\x20Rewriting\x20entry\x20references...','production','hash','[not\x20set]','\x20\x20\x20\x20var\x20shouldProxy\x20=\x20function(url,\x20protocols)\x20{','type','activate','access-control-allow-credentials','\x20\x20\x20\x20var\x20knownPathHints\x20=\x20','securityMode','x-enhance-document-source','/auth/callback','\x20\x20\x20\x20\x20\x20if\x20(!isExternalHost\x20&&\x20!isAppHost)\x20return\x20false;','message','href','getOwnPropertyDescriptor','pathname','\x20\x20\x20\x20window.WebSocket\x20=\x20EnhancedWebSocket;','\x20\x20}','\x20chars)','set-cookie2',',\x20null,\x202));','/snowpack/hmr','\x20Service\x20Worker\x20loaded','\x20\x20\x20\x20\x20\x20return\x20proxied;','\x20Invalid\x20enhancement\x20URL:\x20','\x20\x20\x20\x20\x20\x20var\x20pathname\x20=\x20url.pathname\x20||\x20\x22/\x22;','\x20\x20\x20\x20\x20\x20if\x20(pathname\x20===\x20basePrefix\x20||\x20pathname.indexOf(basePrefix\x20+\x20\x22/\x22)\x20===\x200)\x20{','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Calling\x20Enhance.init()\x20with\x20options:\x22,\x20JSON.stringify(','enhancement-document','callbackBypassNormalized','sharedworker','rewritten','\x20\x20\x20Applying\x20permissive\x20CSP...','\x20\x20\x20Script\x20inserted\x20into\x20document','\x20\x20\x20\x20\x20\x20proxied.hash\x20=\x20\x22\x22;','defineProperty','x-enhance-enhancement','startsWith','none',')\x20-\x20returning\x20null','includes','\x20\x20\x20\x20EnhancedWebSocket.prototype\x20=\x20originalWebSocket.prototype;','\x20\x20\x20Injecting\x20HMR\x20bridge\x20(enhancement\x20source)...','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhanced\x20response','\x20\x20\x20\x20}','\x20\x20\x20securityMode:\x20','\x20Bootstrap\x20options:','Enhancement\x20document\x20fetch\x20failed','\x20\x20\x20\x20var\x20knownProtocols\x20=\x20new\x20Set(','delete','\x20\x20\x20source:\x20','\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{','\x20\x20\x20Skipping\x20runtime\x20bootstrap\x20injection','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;','[Enhance\x20SW\x20Bootstrap]','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Bootstrap\x20complete\x22);','\x20\x20\x20Rewritten\x20HTML\x20length:\x20','body','claim','\x20\x20\x20\x20\x20\x20}',',\x20type:\x20','\x20\x20\x20\x20\x20\x20\x20\x20var\x20resolved\x20=\x20url\x20instanceof\x20URL\x20?\x20url\x20:\x20new\x20URL(String(url),\x20window.location.href);','http://','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20rewritten\x20=\x20buildProxiedUrl(resolved);','some','\x20\x20\x20\x20const\x20Enhance\x20=\x20runtimeModule?.Enhance\x20??\x20runtimeModule?.default?.Enhance\x20??\x20runtimeModule?.default;','debug','9VoKysE','location','destination','\x20for\x20','font-src\x20*\x20data:','/webpackhotmiddleware','5eoWaAX','error','\x20\x20\x20Skipping\x20HMR\x20bridge\x20(production\x20source)','data-enhance-runtime-bootstrap','\x20\x20\x20\x20\x20\x20var\x20proxied\x20=\x20new\x20URL(enhancementBase);','Enhancement\x20document\x20CORS\x20blocked','\x20\x20\x20\x20\x20\x20\x20\x20}','modulepreload','/parcel-hmr','stringify','\x20FETCH:\x20','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Starting\x20runtime\x20bootstrap...\x22);','statusText','\x20\x20\x20Not\x20OK\x20(','include','\x20\x20\x20\x20\x20\x20for\x20(var\x20j\x20=\x200;\x20j\x20<\x20knownPathHints.length;\x20j++)\x20{','\x20\x20\x20Enhancement\x20URL:\x20','/__vite/client','/vite/client','\x20\x20\x20Original\x20HTML\x20length:\x20','/assets/enhance-runtime.js','\x20is\x20runtime\x20asset\x20-\x20not\x20routing','default-src\x20\x27self\x27\x20blob:\x20data:','94976BNMAva','\x20\x20\x20Not\x20HTML\x20response\x20-\x20returning\x20null','fetch','vite-hmr','hasOwnProperty','\x20\x20\x20\x20if\x20(!Enhance\x20||\x20typeof\x20Enhance.init\x20!==\x20\x22function\x22)\x20{','x-enhance-routing','overlay','text/html','\x20\x20\x20shouldInjectOverlay:\x20','\x20\x20\x20\x20\x20\x20window.__enhanceInitialized\x20=\x20true;','\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20unavailable\x22,\x20error);','frame-ancestors\x20','/__vite_ping','test','runtimeScriptPath','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20returning\x20null','\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20Failed\x20to\x20bootstrap\x20runtime:\x22,\x20error);','style','skipWaiting','addEventListener','match','\x0a</head>','object-src\x20\x27none\x27','endsWith','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Enhance\x20controller\x20created:\x22,\x20controller);','cross-origin-embedder-policy','1386114OsdGBu','opaque','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Current\x20URL:\x22,\x20window.location.href);','\x20\x20\x20Enhancement\x20HIT:\x20','replace','headers','Cannot\x20build\x20enhancement\x20URL\x20without\x20enhancementBase\x20configured','\x20\x20\x20\x20var\x20EnhancedWebSocket\x20=\x20function(url,\x20protocols)\x20{','[Enhance\x20SW\x20Document]','length','\x20rewriteDocument()\x20called','cross-origin-resource-policy','content-type','\x20\x20\x20Document\x20fetch\x20error:','\x20\x20\x20\x20var\x20enhancementBase\x20=\x20new\x20URL(','/__snowpack__','/__webpack_hmr','\x20\x20\x20\x20var\x20originalWebSocket\x20=\x20window.WebSocket;','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20module\x20loaded:\x22,\x20Object.keys(runtimeModule));','\x20\x20\x20\x20\x20\x20try\x20{','/__parcel_hmr','\x20\x20\x20\x20\x20\x20','Enhancement\x20document\x20miss\x20','</script>','737473vwHszQ','toString','\x20\x20\x20\x20const\x20runtimePath\x20=\x20','841202VYzWVs','respondWith','X-Enhance-Publishable-Key','https://assets.enhancelabs.ai/overlay.js','overlayEnableViteHmr','clients','callbackBypass','https://','?import','origin','enhance:configure','access-control-expose-headers','(function(){','slice','method','enhancementBase','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>','<script\x20data-enhance-hmr-bridge>','join','[Enhance\x20SW\x20Routing]','https://api.enhancelabs.ai','\x20fetchEnhancementDocument:\x20','host','})();','content-security-policy','value','\x20\x20\x20Enhancement\x20document\x20URL:\x20','enhancement','$&\x0a','set','push','toLowerCase','\x20\x20\x20Response:\x20','\x20\x20\x20\x20\x20\x20window.enhancePreview\x20=\x20controller;','\x20\x20\x20\x20\x20\x20var\x20isAppHost\x20=\x20url.host\x20===\x20window.location.host;','install','\x20\x20\x20BYPASS:\x20','\x20\x20\x20\x20};'];_0x1737=function(){return _0x5d0b2e;};return _0x1737();}function _0x7848(_0x4f0701,_0x2acbaf){_0x4f0701=_0x4f0701-0x65;const _0x17376f=_0x1737();let _0x7848de=_0x17376f[_0x4f0701];return _0x7848de;}var EnhanceSW=((()=>{const _0x411cce=_0x7848;var _0x1f1385=Object[_0x411cce(0x134)],_0x4403d0=Object[_0x411cce(0x11f)],_0x5c5698=Object['getOwnPropertyNames'],_0x423d27=Object['prototype'][_0x411cce(0x175)],_0x2d602c=(_0x5f549c,_0x1ac7ce)=>{for(var _0x39bbea in _0x1ac7ce)_0x1f1385(_0x5f549c,_0x39bbea,{'get':_0x1ac7ce[_0x39bbea],'enumerable':!![]});},_0x3664ac=(_0x20c603,_0x142eb7,_0x43be55,_0x2f742b)=>{const _0x56435e=_0x411cce;if(_0x142eb7&&typeof _0x142eb7===_0x56435e(0xf5)||typeof _0x142eb7==='function'){for(let _0x4ba2b4 of _0x5c5698(_0x142eb7))if(!_0x423d27['call'](_0x20c603,_0x4ba2b4)&&_0x4ba2b4!==_0x43be55)_0x1f1385(_0x20c603,_0x4ba2b4,{'get':()=>_0x142eb7[_0x4ba2b4],'enumerable':!(_0x2f742b=_0x4403d0(_0x142eb7,_0x4ba2b4))||_0x2f742b[_0x56435e(0xfe)]});}return _0x20c603;},_0x3086df=_0x4a01d7=>_0x3664ac(_0x1f1385({},_0x411cce(0xe7),{'value':!![]}),_0x4a01d7),_0x2110d6={};_0x2d602c(_0x2110d6,{'log':()=>_0x1c8fdd});var _0x476fa2=_0x411cce(0x94),_0x583d18=_0x411cce(0xbb);function _0x3184d5(_0x206387){if(!_0x206387['startsWith']('/'))return'/'+_0x206387;return _0x206387;}function _0x202b6c(_0x176a6b,_0x3698e9){const _0x2fd17e=_0x411cce,_0x35fbdc=new URL(_0x176a6b['toString']()),_0x83c710=_0x35fbdc['pathname'][_0x2fd17e(0x6c)]('/')?_0x35fbdc['pathname'][_0x2fd17e(0x97)](0x0,-0x1):_0x35fbdc[_0x2fd17e(0x120)],_0x46460b=_0x3698e9[_0x2fd17e(0x120)][_0x2fd17e(0x136)]('/')?_0x3698e9[_0x2fd17e(0x120)]:'/'+_0x3698e9[_0x2fd17e(0x120)];return _0x35fbdc[_0x2fd17e(0x120)]=(''+_0x83c710+_0x46460b)[_0x2fd17e(0x73)](/\/+/g,'/'),_0x35fbdc[_0x2fd17e(0xef)]=_0x3698e9[_0x2fd17e(0xef)],_0x35fbdc[_0x2fd17e(0x112)]='',_0x35fbdc;}var _0x49284f=_0x411cce(0x9d),_0x47f744=_0x411cce(0x8c),_0x170eb5=new Set(['script',_0x411cce(0x66),_0x411cce(0xbc),'image','worker',_0x411cce(0x12f),_0x411cce(0x161)]);function _0x249bf5(_0x57764c){const _0x2d5758=_0x411cce,_0x389c3c=_0x57764c[_0x2d5758(0x98)]===_0x2d5758(0xc9)||_0x57764c['method']==='HEAD';return _0x389c3c;}function _0x53dd86(_0x335732,_0x2d5965){const _0x2ae746=_0x411cce,_0x3e146e=_0x3184d5(_0x2d5965),_0x2bc5c3=_0x335732[_0x2ae746(0x12e)][_0x2ae746(0x151)](_0x25a78b=>_0x3e146e[_0x2ae746(0x136)](_0x25a78b));return _0x2bc5c3;}function _0x4c0212(_0x4012e1,_0xc2daf,_0x5a10bc){const _0x5c488b=_0x411cce,_0x50aa2e=_0xc2daf[_0x5c488b(0x156)];if(!_0x50aa2e||!_0x170eb5[_0x5c488b(0x10c)](_0x50aa2e))return![];if(_0x2fe15b(_0x4012e1,_0x5a10bc))return console[_0x5c488b(0xeb)](_0x49284f+_0x5c488b(0x105)+_0x5a10bc['pathname']+_0x5c488b(0x103)),![];if(_0x5a9e28(_0x4012e1,_0x5a10bc))return console[_0x5c488b(0xeb)](_0x49284f+_0x5c488b(0x105)+_0x5a10bc[_0x5c488b(0x120)]+_0x5c488b(0x16f)),![];if(_0x5a10bc['origin']!==self[_0x5c488b(0x155)][_0x5c488b(0x93)])return![];return!![];}async function _0x562a05(_0x220a62,_0x5ca763,_0x32e33d){const _0x1e7a5=_0x411cce;console[_0x1e7a5(0xeb)](_0x49284f+'\x20fetchFromEnhancement:\x20'+_0x32e33d[_0x1e7a5(0x120)]);if(!_0x220a62[_0x1e7a5(0x99)])return console[_0x1e7a5(0xeb)](_0x49284f+'\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20skipping'),null;const _0x349f5b=_0x2286dd(_0x220a62,_0x32e33d);console[_0x1e7a5(0xeb)](_0x49284f+_0x1e7a5(0x16a)+_0x349f5b[_0x1e7a5(0x88)]());const _0x543bb4=new Headers(_0x5ca763[_0x1e7a5(0x74)]);_0x543bb4[_0x1e7a5(0xa7)](_0x1e7a5(0x177),_0x1e7a5(0xa5)),_0x543bb4['delete'](_0x1e7a5(0xa0));_0x220a62[_0x1e7a5(0x109)]&&_0x543bb4[_0x1e7a5(0xa7)](_0x47f744,_0x220a62['publishableKey']);const _0x588424=new Request(_0x349f5b[_0x1e7a5(0x88)](),{'method':_0x5ca763[_0x1e7a5(0x98)],'headers':_0x543bb4,'credentials':'include','redirect':_0x5ca763[_0x1e7a5(0x108)],'cache':'default','mode':'cors'});try{console['log'](_0x49284f+'\x20\x20\x20Fetching\x20from\x20enhancement...');const _0x510027=await fetch(_0x588424);console[_0x1e7a5(0xeb)](_0x49284f+_0x1e7a5(0xaa)+_0x510027['status']+'\x20'+_0x510027[_0x1e7a5(0x166)]+_0x1e7a5(0x14d)+_0x510027[_0x1e7a5(0x115)]);if(_0x510027[_0x1e7a5(0x115)]===_0x1e7a5(0x70))return console[_0x1e7a5(0xeb)](_0x49284f+_0x1e7a5(0xb8)),_0x1c8fdd(_0x1e7a5(0xd8),'Enhancement\x20CORS\x20blocked',_0x349f5b[_0x1e7a5(0x88)]()),null;if(!_0x510027['ok'])return console[_0x1e7a5(0xeb)](_0x49284f+_0x1e7a5(0x167)+_0x510027['status']+_0x1e7a5(0x138)),_0x1c8fdd(_0x1e7a5(0x153),_0x1e7a5(0xb9)+_0x510027['status']+'\x20for\x20'+_0x349f5b[_0x1e7a5(0x120)]),null;return console[_0x1e7a5(0xeb)](_0x49284f+_0x1e7a5(0x13c)),_0x112377(_0x510027,_0x5ca763[_0x1e7a5(0x98)]);}catch(_0x173f06){return console[_0x1e7a5(0x15b)](_0x49284f+'\x20\x20\x20Fetch\x20error:',_0x173f06),_0x1c8fdd(_0x1e7a5(0xd8),_0x1e7a5(0xd6),_0x173f06),null;}}async function _0x685c7(_0x5173b8,_0x4a12f0){const _0x5e0524=_0x411cce,_0x280fe7=new URL(_0x4a12f0[_0x5e0524(0xb5)]);console['log'](_0x49284f+_0x5e0524(0x9f)+_0x280fe7['pathname']+_0x280fe7['search']);if(!_0x5173b8[_0x5e0524(0x99)])return console[_0x5e0524(0xeb)](_0x49284f+_0x5e0524(0x181)),null;const _0x5e3322=_0x2286dd(_0x5173b8,_0x280fe7);console['log'](_0x49284f+_0x5e0524(0xa4)+_0x5e3322[_0x5e0524(0x88)]());const _0x4a79f2=new Headers(_0x4a12f0[_0x5e0524(0x74)]);_0x4a79f2[_0x5e0524(0xa7)](_0x5e0524(0x177),_0x5e0524(0x12d)),_0x4a79f2['delete']('host'),_0x4a79f2[_0x5e0524(0x142)](_0x5e0524(0xc6));_0x5173b8[_0x5e0524(0x109)]&&_0x4a79f2[_0x5e0524(0xa7)](_0x47f744,_0x5173b8[_0x5e0524(0x109)]);const _0x58ba5f=new Request(_0x5e3322['toString'](),{'method':'GET','headers':_0x4a79f2,'credentials':_0x5e0524(0x168),'redirect':_0x5e0524(0xf8),'cache':'default','mode':'cors'});try{console[_0x5e0524(0xeb)](_0x49284f+'\x20\x20\x20Fetching\x20enhancement\x20document...');const _0x409ea8=await fetch(_0x58ba5f);console[_0x5e0524(0xeb)](_0x49284f+_0x5e0524(0xaa)+_0x409ea8[_0x5e0524(0xed)]+'\x20'+_0x409ea8['statusText']+',\x20type:\x20'+_0x409ea8[_0x5e0524(0x115)]),console[_0x5e0524(0xeb)](_0x49284f+_0x5e0524(0xcf)+_0x409ea8[_0x5e0524(0x74)][_0x5e0524(0xe4)](_0x5e0524(0x7b)));if(_0x409ea8[_0x5e0524(0x115)]===_0x5e0524(0x70))return console[_0x5e0524(0xeb)](_0x49284f+_0x5e0524(0xb8)),_0x1c8fdd('info',_0x5e0524(0x15f),_0x5e3322[_0x5e0524(0x88)]()),null;if(!_0x409ea8['ok'])return console['log'](_0x49284f+_0x5e0524(0x167)+_0x409ea8[_0x5e0524(0xed)]+')\x20-\x20returning\x20null'),_0x1c8fdd(_0x5e0524(0x153),_0x5e0524(0x85)+_0x409ea8[_0x5e0524(0xed)]+_0x5e0524(0x157)+_0x5e3322[_0x5e0524(0x120)]),null;if(!_0x3902ad(_0x409ea8))return console[_0x5e0524(0xeb)](_0x49284f+_0x5e0524(0x172)),null;return console[_0x5e0524(0xeb)](_0x49284f+_0x5e0524(0x10b)),_0x112377(_0x409ea8,'GET');}catch(_0x25be57){return console[_0x5e0524(0x15b)](_0x49284f+_0x5e0524(0x7c),_0x25be57),_0x1c8fdd(_0x5e0524(0xd8),_0x5e0524(0x140),_0x25be57),null;}}function _0x2286dd(_0x309603,_0x4cb00f){const _0x550c0e=_0x411cce;if(!_0x309603[_0x550c0e(0x99)])throw new Error(_0x550c0e(0x75));return _0x202b6c(_0x309603[_0x550c0e(0x99)],_0x4cb00f);}function _0x112377(_0x1331e5,_0xedd9c9){const _0x5ebe19=_0x411cce,_0x2873f4=_0x1331e5['clone'](),_0x429983=new Headers(_0x2873f4[_0x5ebe19(0x74)]);_0x429983[_0x5ebe19(0x142)](_0x5ebe19(0xdf)),_0x429983[_0x5ebe19(0x142)](_0x5ebe19(0x117)),_0x429983[_0x5ebe19(0x142)](_0x5ebe19(0x95)),_0x429983[_0x5ebe19(0xa7)](_0x5ebe19(0x135),_0x5ebe19(0xb6)),_0x2d3726(_0x429983);const _0x4a6e7f=_0xedd9c9==='HEAD'?null:_0x2873f4[_0x5ebe19(0x14a)];return new Response(_0x4a6e7f,{'status':_0x2873f4[_0x5ebe19(0xed)],'statusText':_0x2873f4['statusText'],'headers':_0x429983});}function _0x3902ad(_0x2afa55){const _0x39cdd9=_0x411cce,_0x2c3905=_0x2afa55[_0x39cdd9(0x74)][_0x39cdd9(0xe4)]('content-type');return _0x2c3905!=null&&_0x2c3905[_0x39cdd9(0x139)](_0x39cdd9(0x179));}function _0x2fe15b(_0x32ca95,_0xa3dc33){return _0x2ae685(_0xa3dc33,_0x32ca95['overlayPath']);}function _0x5a9e28(_0x4a1f2a,_0x2621a5){const _0x255d88=_0x411cce;return _0x103a8c(_0x2621a5,_0x4a1f2a[_0x255d88(0x180)]);}function _0x2ae685(_0x5cf0f9,_0x5b4167){const _0x40b295=_0x411cce;if(!_0x5b4167)return![];if(_0x5b4167[_0x40b295(0x136)]('http://')||_0x5b4167['startsWith'](_0x40b295(0x91)))return _0x5cf0f9[_0x40b295(0x11e)]===_0x5b4167;const _0x32d4c1=_0x13399a(_0x5b4167);if(!_0x32d4c1)return![];const _0x55a857=''+_0x5cf0f9['pathname']+_0x5cf0f9[_0x40b295(0xef)];if(_0x55a857===_0x32d4c1)return!![];if(_0x5cf0f9[_0x40b295(0xef)]===_0x40b295(0x92))return _0x5cf0f9[_0x40b295(0x120)]===_0x32d4c1;return![];}function _0x103a8c(_0x48166f,_0x4ed233){const _0x50c8f6=_0x411cce;if(!_0x4ed233)return![];if(_0x4ed233[_0x50c8f6(0x136)](_0x50c8f6(0x14f))||_0x4ed233[_0x50c8f6(0x136)](_0x50c8f6(0x91)))return _0x48166f[_0x50c8f6(0x11e)]===_0x4ed233;const _0x427303=_0x13399a(_0x4ed233);if(!_0x427303)return![];const _0x3265d9=''+_0x48166f['pathname']+_0x48166f[_0x50c8f6(0xef)];return _0x3265d9===_0x427303;}function _0x13399a(_0x2f20eb){const _0x73e9f8=_0x411cce;if(!_0x2f20eb)return _0x2f20eb;if(_0x2f20eb[_0x73e9f8(0x136)](_0x73e9f8(0x14f))||_0x2f20eb[_0x73e9f8(0x136)]('https://'))return _0x2f20eb;const _0x14ae00=_0x2f20eb[_0x73e9f8(0x73)](/^\.\//,'');if(_0x14ae00[_0x73e9f8(0x136)]('/'))return _0x14ae00;return'/'+_0x14ae00;}function _0x2d3726(_0x5c1076){const _0x58d31a=_0x411cce;_0x5c1076['delete'](_0x58d31a(0xd5)),_0x5c1076['delete'](_0x58d31a(0x124));}function _0x5b3321(_0x13c3e6){const _0x20b7dc=_0x411cce,_0xb3d853=[_0x20b7dc(0x170),_0x20b7dc(0xe3),'style-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20blob:\x20data:\x20https:\x20http:',_0x20b7dc(0xde),_0x20b7dc(0x158),_0x20b7dc(0x10f),_0x20b7dc(0xe6),_0x20b7dc(0xdb),_0x20b7dc(0x6b)],_0x300749=_0x1578d4(_0x13c3e6);return _0x300749&&_0xb3d853[_0x20b7dc(0xa8)](_0x300749),_0xb3d853[_0x20b7dc(0x9c)](';\x20');}function _0x4bbb6a(_0xfd2f2d){const _0x389cbd=_0x411cce;_0xfd2f2d[_0x389cbd(0x142)](_0x389cbd(0xd5)),_0xfd2f2d['delete'](_0x389cbd(0x124));}function _0x1578d4(_0x3be21d){const _0x393dee=_0x411cce;if(!_0x3be21d)return null;const _0x54da07=_0x3be21d[_0x393dee(0x69)](/frame-ancestors\s+([^;]+)/i);if(!_0x54da07)return null;return _0x393dee(0x17d)+_0x54da07[0x1][_0x393dee(0xdd)]();}function _0x586591(_0xa91027,_0x36e718){const _0x5e8db6=_0x411cce;if(/<head[^>]*>/i['test'](_0xa91027)){const _0x53d74b=_0xa91027[_0x5e8db6(0x69)](/<head[^>]*>/i);if(_0x53d74b){const _0x16d5bf=_0x53d74b[0x0];return _0xa91027[_0x5e8db6(0x73)](_0x16d5bf,_0x16d5bf+'\x0a'+_0x36e718);}}if(/<\/head>/i[_0x5e8db6(0x17f)](_0xa91027))return _0xa91027[_0x5e8db6(0x73)](/<\/head>/i,_0x36e718+_0x5e8db6(0x6a));if(/<body\b[^>]*>/i['test'](_0xa91027))return _0xa91027[_0x5e8db6(0x73)](/<body\b[^>]*>/i,_0x5e8db6(0xa6)+_0x36e718);if(/<\/body>/i['test'](_0xa91027))return _0xa91027[_0x5e8db6(0x73)](/<\/body>/i,_0x36e718+_0x5e8db6(0xc8));return _0x36e718+'\x0a'+_0xa91027;}var _0x14dd6e=[_0x411cce(0x174)],_0x2109a5=[_0x411cce(0xfb),_0x411cce(0x16b),_0x411cce(0x16c),_0x411cce(0x17e),'/sockjs-node','/webpack-dev-server',_0x411cce(0xee),_0x411cce(0x159),_0x411cce(0xe9),_0x411cce(0x7f),'/_next/webpack-hmr',_0x411cce(0x162),_0x411cce(0x83),_0x411cce(0x7e),_0x411cce(0x126)];function _0x45f788(_0x212e99,_0x31329f){const _0xfc4ef3=_0xa65508(_0x212e99);if(!_0xfc4ef3)return _0x31329f;return _0x586591(_0x31329f,_0xfc4ef3);}function _0xa65508(_0x5136d3){const _0x564a3c=_0x411cce;if(!_0x5136d3['enhancementBase'])return null;const _0x3d54b3=_0x5136d3[_0x564a3c(0x99)][_0x564a3c(0x88)](),_0x21a79c=_0x443112(_0x14dd6e),_0x7a1924=_0x443112(_0x2109a5),_0x3318b5=[_0x564a3c(0x9b),_0x564a3c(0x96),_0x564a3c(0xdc),_0x564a3c(0x7d)+JSON[_0x564a3c(0x163)](_0x3d54b3)+');',_0x564a3c(0x80),_0x564a3c(0xec),_0x564a3c(0xbe),_0x564a3c(0x13d),_0x564a3c(0x141)+JSON[_0x564a3c(0x163)](_0x21a79c)+');',_0x564a3c(0x118)+JSON[_0x564a3c(0x163)](_0x7a1924)+';','\x20\x20\x20\x20var\x20basePrefix\x20=\x20\x22/__sbx__\x22;','\x20\x20\x20\x20var\x20toArray\x20=\x20function(value)\x20{',_0x564a3c(0xba),_0x564a3c(0xf4),'\x20\x20\x20\x20};',_0x564a3c(0x114),'\x20\x20\x20\x20\x20\x20//\x20Allow\x20proxying\x20for\x20specific\x20external\x20hosts','\x20\x20\x20\x20\x20\x20var\x20externalHosts\x20=\x20[\x22app.enhance.localhost:4450\x22,\x20\x22localhost:5173\x22];','\x20\x20\x20\x20\x20\x20var\x20isExternalHost\x20=\x20externalHosts.includes(url.host);',_0x564a3c(0xac),_0x564a3c(0x84),_0x564a3c(0x11c),_0x564a3c(0x84),_0x564a3c(0x12a),_0x564a3c(0x12b),_0x564a3c(0xf1),_0x564a3c(0x14c),'\x20\x20\x20\x20\x20\x20var\x20protoList\x20=\x20toArray(protocols);','\x20\x20\x20\x20\x20\x20for\x20(var\x20i\x20=\x200;\x20i\x20<\x20protoList.length;\x20i++)\x20{','\x20\x20\x20\x20\x20\x20\x20\x20var\x20proto\x20=\x20protoList[i];',_0x564a3c(0xf9),_0x564a3c(0x146),'\x20\x20\x20\x20\x20\x20\x20\x20}',_0x564a3c(0x14c),_0x564a3c(0xb2),_0x564a3c(0x169),_0x564a3c(0xd2),_0x564a3c(0x146),'\x20\x20\x20\x20\x20\x20\x20\x20}','\x20\x20\x20\x20\x20\x20}',_0x564a3c(0xbf),_0x564a3c(0xaf),'\x20\x20\x20\x20var\x20buildProxiedUrl\x20=\x20function(targetUrl)\x20{',_0x564a3c(0xc4),_0x564a3c(0x15e),'\x20\x20\x20\x20\x20\x20proxied.search\x20=\x20targetUrl.search;',_0x564a3c(0x133),_0x564a3c(0x128),'\x20\x20\x20\x20};',_0x564a3c(0x76),_0x564a3c(0x82),_0x564a3c(0x14e),'\x20\x20\x20\x20\x20\x20\x20\x20if\x20(shouldProxy(resolved,\x20protocols))\x20{',_0x564a3c(0x150),_0x564a3c(0xcc),_0x564a3c(0x160),_0x564a3c(0x144),_0x564a3c(0xce),_0x564a3c(0x14c),'\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(url,\x20protocols);',_0x564a3c(0xaf),_0x564a3c(0xff),_0x564a3c(0x13a),'\x20\x20\x20\x20Object.setPrototypeOf(EnhancedWebSocket,\x20originalWebSocket);',_0x564a3c(0xb1),_0x564a3c(0xe0),'\x20\x20\x20\x20}\x20catch\x20(error)\x20{',_0x564a3c(0xf0),_0x564a3c(0x13d),_0x564a3c(0x100),_0x564a3c(0x121),_0x564a3c(0xcd),_0x564a3c(0x17c),_0x564a3c(0x122),_0x564a3c(0xa1),_0x564a3c(0x86)];return _0x3318b5[_0x564a3c(0x9c)]('\x0a');}function _0x443112(_0x1b46f1){const _0x3ab909=new Set(),_0x37066a=[];for(const _0x1ad289 of _0x1b46f1){const _0x8de40f=_0x1ad289['toLowerCase']();if(_0x3ab909['has'](_0x8de40f))continue;_0x3ab909['add'](_0x8de40f),_0x37066a['push'](_0x8de40f);}return _0x37066a;}var _0xe82fd6=_0x411cce(0x147);function _0x1c01c4(_0xb5c6e9,_0x50fc78){const _0x510198=_0x411cce;console[_0x510198(0xeb)](_0xe82fd6+'\x20injectRuntimeBootstrap()\x20called'),console[_0x510198(0xeb)](_0xe82fd6+'\x20\x20\x20runtimeScriptPath:\x20'+_0xb5c6e9[_0x510198(0x180)]),console[_0x510198(0xeb)](_0xe82fd6+_0x510198(0xf3)+_0xb5c6e9[_0x510198(0xe1)]);if(_0x50fc78[_0x510198(0x139)](_0x510198(0x15d)))return console['log'](_0xe82fd6+'\x20\x20\x20Existing\x20bootstrap\x20found\x20-\x20keeping\x20it'),_0x50fc78;const _0x18dda5=_0x4fbd59(_0xb5c6e9);if(!_0x18dda5)return console[_0x510198(0xeb)](_0xe82fd6+_0x510198(0xda)),_0x50fc78;console[_0x510198(0xeb)](_0xe82fd6+'\x20\x20\x20No\x20existing\x20bootstrap\x20-\x20injecting\x20new\x20one\x20('+_0x18dda5[_0x510198(0x78)]+_0x510198(0x123));const _0x1e7e37=_0x586591(_0x50fc78,_0x18dda5);return console['log'](_0xe82fd6+_0x510198(0x132)),_0x1e7e37;}function _0x4fbd59(_0x48aa4e){const _0x6e122c=_0x411cce,_0x38837b=_0x48aa4e['runtimeScriptPath'];if(!_0x38837b)return console[_0x6e122c(0xeb)](_0xe82fd6+_0x6e122c(0x107)),null;const _0x2afd84=_0x2690a0(_0x48aa4e);console[_0x6e122c(0xeb)](_0xe82fd6+_0x6e122c(0x13f),JSON[_0x6e122c(0x163)](_0x2afd84,null,0x2));const _0x1ce4e0=_0x3a9dab(_0x2afd84),_0x43134d=JSON[_0x6e122c(0x163)](_0x38837b),_0x327436=[_0x6e122c(0x9a),_0x6e122c(0x106),_0x6e122c(0xdc),_0x6e122c(0x89)+_0x43134d+';',_0x6e122c(0x165),'\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20path:\x22,\x20runtimePath);',_0x6e122c(0x71),_0x6e122c(0xc5),_0x6e122c(0x81),_0x6e122c(0x152),_0x6e122c(0x176),_0x6e122c(0xd4),_0x6e122c(0xbe),_0x6e122c(0x13d),_0x6e122c(0x12c)+_0x1ce4e0+_0x6e122c(0x125),'\x20\x20\x20\x20const\x20controller\x20=\x20Enhance.init('+_0x1ce4e0+');',_0x6e122c(0x6d),_0x6e122c(0xd1),_0x6e122c(0xab),_0x6e122c(0xb7),_0x6e122c(0x104),_0x6e122c(0x17b),'\x20\x20\x20\x20\x20\x20window.__enhanceController\x20=\x20controller;',_0x6e122c(0xcb),_0x6e122c(0x13d),_0x6e122c(0x148),'\x20\x20}\x20catch\x20(error)\x20{',_0x6e122c(0x65),'\x20\x20}',_0x6e122c(0xa1),'</script>'];return _0x327436[_0x6e122c(0x9c)]('\x0a');}function _0x2690a0(_0x41e5cd){const _0x26ce8e=_0x411cce,_0x46a684={'publishableKey':_0x41e5cd[_0x26ce8e(0x109)],'callbackBypass':_0x41e5cd[_0x26ce8e(0x90)],'__development':{'enableOverlayHmr':_0x41e5cd[_0x26ce8e(0x8e)],'overlayPath':_0x41e5cd[_0x26ce8e(0xe1)],'security':_0x41e5cd['securityMode'],'backendUrl':_0x41e5cd['backendUrl']}};return _0x46a684;}function _0x3a9dab(_0x5dc1f5){const _0x495c2d=_0x411cce;return JSON[_0x495c2d(0x163)](_0x5dc1f5)[_0x495c2d(0x73)](/</g,'\x5cu003c')[_0x495c2d(0x73)](/>/g,'\x5cu003e');}function _0xf6c8a7(_0x1c2971,_0x946788){const _0x125e67=_0x411cce,_0x425edd=_0x26cd62=>_0x133210(_0x1c2971,_0x26cd62),_0x4b7d68=_0x573720=>_0x237612(_0x1c2971,_0x573720);return _0x946788['replace'](/<script\b[^>]*>/gi,_0x425edd)[_0x125e67(0x73)](/<link\b[^>]*>/gi,_0x4b7d68);}function _0x23c4cf(_0x1b1646){const _0x2b9f1e=_0x411cce;return _0x1b1646[_0x2b9f1e(0x73)](/\s+integrity\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,'');}function _0x133210(_0x413d3a,_0x275a10){const _0x315baf=_0x411cce,_0x145b2f=_0x119511(_0x275a10,_0x315baf(0xea));if(!_0x145b2f)return _0x275a10;const _0xde4ca9=_0x376e01(_0x413d3a,_0x145b2f[_0x315baf(0xa3)]);if(!_0xde4ca9||_0xde4ca9===_0x145b2f[_0x315baf(0xa3)])return _0x275a10;const _0x4ebf23=_0x145b2f[_0x315baf(0xc1)]['replace'](_0x145b2f[_0x315baf(0xa3)],_0xde4ca9);return _0x275a10[_0x315baf(0x73)](_0x145b2f[_0x315baf(0xc1)],_0x4ebf23);}function _0x237612(_0x22182d,_0x5c919c){const _0x570ab9=_0x411cce,_0xe5bbc3=_0x5c919c[_0x570ab9(0x69)](/\brel\s*=\s*(['"])([^"']+)\1/i);if(!_0xe5bbc3)return _0x5c919c;const _0x216fce=_0xe5bbc3[0x2][_0x570ab9(0xa9)]();if(_0x216fce!==_0x570ab9(0x102)&&_0x216fce!==_0x570ab9(0x161))return _0x5c919c;const _0x396aa9=_0x119511(_0x5c919c,'href');if(!_0x396aa9)return _0x5c919c;const _0x339916=_0x376e01(_0x22182d,_0x396aa9[_0x570ab9(0xa3)]);if(!_0x339916||_0x339916===_0x396aa9['value'])return _0x5c919c;const _0x510811=_0x396aa9[_0x570ab9(0xc1)][_0x570ab9(0x73)](_0x396aa9['value'],_0x339916);return _0x5c919c[_0x570ab9(0x73)](_0x396aa9[_0x570ab9(0xc1)],_0x510811);}function _0x119511(_0x5efae9,_0x530c3f){const _0x42d23c=_0x411cce,_0x31e549=new RegExp(_0x530c3f+_0x42d23c(0xc2),'i'),_0x37b269=_0x5efae9['match'](_0x31e549);if(!_0x37b269)return null;return{'full':_0x37b269[0x0],'value':_0x37b269[0x2]};}function _0x376e01(_0x58361b,_0x21e7ad){const _0x56fee3=_0x411cce,_0x149c27=_0x525fa4(_0x21e7ad);if(!_0x149c27)return null;if(_0x149c27[_0x56fee3(0x93)]===self['location'][_0x56fee3(0x93)])return''+_0x149c27['pathname']+_0x149c27[_0x56fee3(0xef)];return null;}function _0x525fa4(_0x4a1c6e){const _0x1e2f1c=_0x411cce;try{return new URL(_0x4a1c6e,self[_0x1e2f1c(0x155)][_0x1e2f1c(0x93)]);}catch{return null;}}var _0x121bf6=_0x411cce(0x77);async function _0x1fb3c8(_0x1cb48c,_0x27c436,_0x547a0a,_0x5cd1b5=!![]){const _0x24d173=_0x411cce;console[_0x24d173(0xeb)](_0x121bf6+_0x24d173(0x79)),console[_0x24d173(0xeb)](_0x121bf6+_0x24d173(0x143)+_0x547a0a),console[_0x24d173(0xeb)](_0x121bf6+_0x24d173(0x17a)+_0x5cd1b5),console['log'](_0x121bf6+_0x24d173(0x13e)+_0x1cb48c[_0x24d173(0x119)]);const _0x44840d=_0x27c436['clone'](),_0x29f675=await _0x44840d[_0x24d173(0xc0)]();console[_0x24d173(0xeb)](_0x121bf6+_0x24d173(0x16d)+_0x29f675[_0x24d173(0x78)]+_0x24d173(0x10e)),console[_0x24d173(0xeb)](_0x121bf6+_0x24d173(0x101));const _0x57b748=_0x23c4cf(_0x29f675);console[_0x24d173(0xeb)](_0x121bf6+_0x24d173(0x110));let _0x2091b0=_0xf6c8a7(_0x1cb48c,_0x57b748);_0x547a0a===_0x24d173(0xa5)?(console[_0x24d173(0xeb)](_0x121bf6+_0x24d173(0x13b)),_0x2091b0=_0x45f788(_0x1cb48c,_0x2091b0)):console[_0x24d173(0xeb)](_0x121bf6+_0x24d173(0x15c));_0x5cd1b5?(console[_0x24d173(0xeb)](_0x121bf6+_0x24d173(0xfa)),_0x2091b0=_0x1c01c4(_0x1cb48c,_0x2091b0)):console[_0x24d173(0xeb)](_0x121bf6+_0x24d173(0x145));console[_0x24d173(0xeb)](_0x121bf6+_0x24d173(0x149)+_0x2091b0['length']+_0x24d173(0x10e));const _0x4b44a7=new Headers(_0x44840d[_0x24d173(0x74)]);_0x4b44a7[_0x24d173(0xa7)](_0x24d173(0xc3),'no-store'),_0x4b44a7[_0x24d173(0xa7)](_0x24d173(0xf7),_0x24d173(0x130)),_0x4b44a7[_0x24d173(0xa7)](_0x24d173(0x11a),_0x547a0a),_0x4bbb6a(_0x4b44a7);if(_0x1cb48c[_0x24d173(0x119)]!==_0x24d173(0x10d)){console[_0x24d173(0xeb)](_0x121bf6+_0x24d173(0x131));const _0x3bafad=_0x4b44a7['get'](_0x24d173(0xa2));_0x4b44a7[_0x24d173(0xa7)](_0x24d173(0xa2),_0x5b3321(_0x3bafad)),_0x4b44a7[_0x24d173(0x142)]('cross-origin-opener-policy'),_0x4b44a7[_0x24d173(0x142)](_0x24d173(0x6e)),_0x4b44a7['delete'](_0x24d173(0x7a));}else console[_0x24d173(0xeb)](_0x121bf6+_0x24d173(0xe2));return console['log'](_0x121bf6+'\x20\x20\x20Document\x20rewrite\x20complete'),new Response(_0x2091b0,{'status':_0x44840d[_0x24d173(0xed)],'statusText':_0x44840d[_0x24d173(0x166)],'headers':_0x4b44a7});}var _0x3df82e=_0x411cce(0xb0);console[_0x411cce(0xeb)](_0x3df82e+_0x411cce(0x127));var _0x7c0eb5={'overlayPath':_0x411cce(0x8d),'backendUrl':_0x411cce(0x9e),'overlayEnableViteHmr':![],'runtimeScriptPath':_0x411cce(0x16e),'swPath':_0x411cce(0xd9)},_0x6d3fc1={'publishableKey':'','callbackBypass':[_0x411cce(0x11b)],'securityMode':_0x411cce(0xfc),'enhancementUrl':null,'enhancementBase':null};function _0x13448e(){const _0x43516c=_0x411cce;return{..._0x7c0eb5,'publishableKey':_0x6d3fc1['publishableKey'],'enhancementUrl':_0x6d3fc1['enhancementUrl']??'','enhancementBase':_0x6d3fc1[_0x43516c(0x99)],'callbackBypass':_0x6d3fc1[_0x43516c(0x90)],'callbackBypassNormalized':_0x6d3fc1['callbackBypass']['map'](_0x34a29e=>_0x34a29e[_0x43516c(0x136)]('/')?_0x34a29e:'/'+_0x34a29e),'securityMode':_0x6d3fc1[_0x43516c(0x119)]};}function _0x1c8fdd(_0x4e7f0a,_0x4b831b,..._0x3f8291){const _0x10624e=_0x411cce;_0x4e7f0a===_0x10624e(0xd8)?console[_0x10624e(0xd8)](_0x3df82e,_0x4b831b,..._0x3f8291):console['debug'](_0x3df82e,_0x4b831b,..._0x3f8291);}self['addEventListener'](_0x411cce(0xad),_0x582b9=>{const _0x407dfc=_0x411cce;console[_0x407dfc(0xeb)](_0x3df82e+'\x20INSTALL'),_0x582b9[_0x407dfc(0xf6)](self[_0x407dfc(0x67)]());}),self[_0x411cce(0x68)](_0x411cce(0x116),_0x7cb325=>{const _0x40da5b=_0x411cce;console[_0x40da5b(0xeb)](_0x3df82e+'\x20ACTIVATE'),_0x7cb325['waitUntil'](self[_0x40da5b(0x8f)][_0x40da5b(0x14b)]());}),self[_0x411cce(0x68)](_0x411cce(0x11d),_0x2ad262=>{const _0x30a34b=_0x411cce,_0xe9f57=_0x2ad262[_0x30a34b(0xb3)];if(!_0xe9f57||typeof _0xe9f57!==_0x30a34b(0xf5))return;switch(_0xe9f57['type']){case _0x476fa2:{console[_0x30a34b(0xeb)](_0x3df82e+'\x20CONFIG\x20received');const _0x36bb7f=_0xe9f57['config'];_0x6d3fc1[_0x30a34b(0x109)]=_0x36bb7f[_0x30a34b(0x109)]??'',_0x6d3fc1[_0x30a34b(0x90)]=_0x36bb7f[_0x30a34b(0x90)]??['/auth/callback'],_0x6d3fc1[_0x30a34b(0x119)]=_0x36bb7f['securityMode']??_0x30a34b(0xfc);if(_0x36bb7f[_0x30a34b(0xb4)]){_0x6d3fc1[_0x30a34b(0xb4)]=_0x36bb7f['enhancementUrl'];try{_0x6d3fc1[_0x30a34b(0x99)]=new URL(_0x36bb7f[_0x30a34b(0xb4)]);}catch{console[_0x30a34b(0x15b)](_0x3df82e+_0x30a34b(0x129)+_0x36bb7f[_0x30a34b(0xb4)]),_0x6d3fc1[_0x30a34b(0x99)]=null;}}else _0x6d3fc1[_0x30a34b(0xb4)]=null,_0x6d3fc1['enhancementBase']=null;console[_0x30a34b(0xeb)](_0x3df82e+_0x30a34b(0xd0),{'publishableKey':_0x6d3fc1[_0x30a34b(0x109)]?_0x30a34b(0xd3):_0x30a34b(0x113),'enhancementUrl':_0x6d3fc1[_0x30a34b(0xb4)]??_0x30a34b(0x137)});break;}case _0x583d18:console['log'](_0x3df82e+'\x20DISABLE\x20received\x20-\x20resetting\x20config'),_0x6d3fc1={'publishableKey':'','callbackBypass':[_0x30a34b(0x11b)],'securityMode':'permissive','enhancementUrl':null,'enhancementBase':null};break;}}),self['addEventListener'](_0x411cce(0x173),_0x4eece1=>{const _0x1bf366=_0x411cce,_0x57abec=new URL(_0x4eece1['request'][_0x1bf366(0xb5)]);if(_0x57abec['origin']!==self[_0x1bf366(0x155)][_0x1bf366(0x93)])return;_0x4eece1[_0x1bf366(0x8b)](_0x3662f5(_0x4eece1));});async function _0x3662f5(_0x58e7c3){const _0x216bef=_0x411cce,{request:_0x255a85}=_0x58e7c3,_0x3d76e4=new URL(_0x255a85[_0x216bef(0xb5)]),_0x5299f3=_0x255a85[_0x216bef(0xf2)]===_0x216bef(0xc7);console[_0x216bef(0xeb)](_0x3df82e+_0x216bef(0x164)+_0x255a85[_0x216bef(0x98)]+'\x20'+_0x3d76e4['pathname']+_0x3d76e4['search']+'\x20('+_0x255a85[_0x216bef(0xf2)]+')');if(!_0x249bf5(_0x255a85))return fetch(_0x255a85);const _0x566921=_0x13448e();console[_0x216bef(0xeb)](_0x3df82e+_0x216bef(0xfd)+(_0x566921['enhancementUrl']||'none'));if(_0x53dd86(_0x566921,_0x3d76e4[_0x216bef(0x120)]))return console['log'](_0x3df82e+_0x216bef(0xae)+_0x3d76e4[_0x216bef(0x120)]),fetch(_0x255a85);if(_0x5299f3)return _0x5aee2a(_0x255a85,_0x566921);if(!_0x4c0212(_0x566921,_0x255a85,_0x3d76e4))return fetch(_0x255a85);const _0x5c7993=await _0x562a05(_0x566921,_0x255a85,_0x3d76e4);if(_0x5c7993)return console[_0x216bef(0xeb)](_0x3df82e+_0x216bef(0x72)+_0x3d76e4[_0x216bef(0x120)]),_0x5c7993;return console[_0x216bef(0xeb)](_0x3df82e+_0x216bef(0x10a)+_0x3d76e4[_0x216bef(0x120)]),fetch(_0x255a85);}async function _0x5aee2a(_0xc3523f,_0x3ccd76){const _0x2951a9=_0x411cce,_0x543a9c=new URL(_0xc3523f[_0x2951a9(0xb5)]);console[_0x2951a9(0xeb)](_0x3df82e+'\x20Navigation:\x20'+_0x543a9c[_0x2951a9(0x120)]+_0x543a9c[_0x2951a9(0xef)]);const _0x1bcb16=await fetch(_0xc3523f);if(!_0x3902ad(_0x1bcb16))return _0x1bcb16;const _0x2d48d5=_0x112377(_0x1bcb16,_0x2951a9(0xc9)),_0x185a3e=await _0x685c7(_0x3ccd76,_0xc3523f),_0x445fd5=_0x185a3e?_0x2951a9(0xa5):_0x2951a9(0x111),_0x53a899=_0x185a3e??_0x2d48d5,_0x34b8a4=_0x445fd5==='enhancement'||_0x543a9c['searchParams'][_0x2951a9(0x10c)](_0x2951a9(0x178))||_0x543a9c['searchParams'][_0x2951a9(0x10c)]('enhancement');try{return await _0x1fb3c8(_0x3ccd76,_0x53a899,_0x445fd5,_0x34b8a4);}catch(_0x4f335a){return console[_0x2951a9(0x15b)](_0x3df82e+'\x20Document\x20rewrite\x20failed:',_0x4f335a),_0x53a899;}}return _0x3086df(_0x2110d6);})());
1
+ 'use strict';(function(_0x37afc5,_0x41ff5c){const _0x62b00c=_0x6e6b,_0x2a69b6=_0x37afc5();while(!![]){try{const _0x4fc97d=parseInt(_0x62b00c(0x1d6))/0x1+-parseInt(_0x62b00c(0xc4))/0x2*(-parseInt(_0x62b00c(0x1c2))/0x3)+-parseInt(_0x62b00c(0xe9))/0x4+-parseInt(_0x62b00c(0x1a5))/0x5*(parseInt(_0x62b00c(0x15e))/0x6)+parseInt(_0x62b00c(0x115))/0x7+parseInt(_0x62b00c(0x1e0))/0x8*(-parseInt(_0x62b00c(0xab))/0x9)+parseInt(_0x62b00c(0x17f))/0xa*(parseInt(_0x62b00c(0xaf))/0xb);if(_0x4fc97d===_0x41ff5c)break;else _0x2a69b6['push'](_0x2a69b6['shift']());}catch(_0x5094ab){_0x2a69b6['push'](_0x2a69b6['shift']());}}}(_0x5e85,0x671b6));function _0x5e85(){const _0x35f5ae=['\x20\x20\x20\x20\x20\x20if\x20(pathname\x20===\x20basePrefix\x20||\x20pathname.indexOf(basePrefix\x20+\x20\x22/\x22)\x20===\x200)\x20{','\x20\x20\x20\x20\x20\x20return\x20proxied;','info','[Enhance\x20SW\x20Document]','src','test','\x20\x20\x20Rewriting\x20entry\x20references...','endsWith','/__webpack_hmr','has','none','call','enhance:disable','\x20\x20\x20\x20var\x20EnhancedWebSocket\x20=\x20function(url,\x20protocols)\x20{','\x20MESSAGE\x20received:','/resolve','4700ZcDurp','\x20\x20\x20\x20\x20\x20return\x20false;','\x20\x20\x20\x20var\x20shouldProxy\x20=\x20function(url,\x20protocols)\x20{','\x20\x20\x20CORS\x20blocked\x20(opaque\x20response)','searchParams','access-control-expose-headers','\x20Failed\x20to\x20parse\x20operatingUrl:\x20','data-enhance-runtime-bootstrap','\x20\x20\x20Not\x20OK\x20(','\x20\x20\x20Not\x20HTML\x20-\x20returning\x20production\x20response\x20as-is','json','\x20Calling\x20clients.claim()...','HEAD','\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(url,\x20protocols);','set-cookie','toLowerCase','add','include','\x20\x20\x20Response:\x20','content-length','\x20Clearing\x20cached\x20enhancement\x20(navigation\x20without\x20param)','\x20fetchEnhancementDocument:\x20','\x20\x20\x20Document\x20source:\x20','/vite/client','[Enhance\x20SW]','securityMode','follow','/__vite_ping','message','join','\x20DISABLE\x20message\x20-\x20resetting\x20customer\x20config','text/html','\x0a</body>','\x20\x20\x20\x20const\x20controller\x20=\x20Enhance.init(','\x20\x20}','\x5cu003e','worker','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20new\x20originalWebSocket(rewritten.toString(),\x20protocols);','4121445finEVu','\x20Error\x20resolving\x20enhancement\x20','\x20\x20\x20\x20\x20\x20//\x20ignore\x20if\x20unable\x20to\x20redefine','activate','\x20\x20\x20\x20\x20\x20var\x20pathname\x20=\x20url.pathname\x20||\x20\x22/\x22;','set','\x20\x20\x20\x20\x20\x20window.__enhanceInitialized\x20=\x20true;','Enhancement\x20miss\x20','script','\x20\x20\x20\x20const\x20runtimePath\x20=\x20','\x20Failed\x20to\x20resolve\x20enhancement\x20','/__vite/client','\x20injectRuntimeBootstrap()\x20called','\x20Service\x20Worker\x20script\x20loaded\x20at\x20','stylesheet','\x20\x20\x20Fetching\x20from\x20enhancement...','\x20\x20\x20HTML\x20response\x20-\x20processing...','cross-origin-opener-policy','backendUrl','access-control-allow-origin','function','\x20shouldRouteAsset:\x20','\x20\x20\x20\x20var\x20originalWebSocket\x20=\x20window.WebSocket;','callbackBypass','\x20is\x20overlay\x20asset\x20-\x20not\x20routing','font-src\x20*\x20data:','frame-ancestors\x20','hash','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20returning\x20null','43047HoPTXa','\x20\x20\x20\x20var\x20enhancementBase\x20=\x20new\x20URL(','vite-hmr','install','object-src\x20\x27none\x27','\x20\x20\x20\x20\x20\x20try\x20{','runtimeScriptPath','\x20Enhancement\x20','\x20\x20\x20\x20if\x20(!originalWebSocket\x20||\x20originalWebSocket.__enhancePatched)\x20{','host','\x20\x20\x20overlayPath:\x20','value','\x20\x20\x20Document\x20fetch\x20error:','status',',\x20null,\x202));','enhancement','\x20ACTIVATE\x20event','waitUntil','https://','/assets/enhance-runtime.js','595974PPzXFF','\x20\x20\x20\x20\x20\x20for\x20(var\x20j\x20=\x200;\x20j\x20<\x20knownPathHints.length;\x20j++)\x20{','\x20\x20\x20\x20\x20\x20\x20\x20}','\x20FETCH:\x20','skipWaiting','\x20chars)','parse','\x20\x20\x20Enhancement\x20HIT\x20for\x20','\x20\x20\x20enhancementUrl\x20in\x20config:\x20','enhancement-document','8016CDCJfY','\x20\x20\x20Existing\x20bootstrap\x20found\x20-\x20keeping\x20it','\x20\x20\x20Fetching\x20production\x20response...','\x20\x20\x20\x20if\x20(!Enhance\x20||\x20typeof\x20Enhance.init\x20!==\x20\x22function\x22)\x20{','access-control-allow-credentials','\x20buildRuntimeBootstrapScript:\x20no\x20runtimePath\x20-\x20returning\x20null','debug','map','cross-origin-embedder-policy','\x20\x20\x20\x20\x20\x20if\x20(!value)\x20return\x20[];','<script\x20data-enhance-hmr-bridge>','\x20\x20\x20Fetching\x20enhancement\x20document...','\x20\x20\x20Rewriting\x20document...','\x20\x20\x20\x20EnhancedWebSocket.prototype\x20=\x20originalWebSocket.prototype;','url','/webpack-hmr',',\x20destination:\x20','sharedworker','1755aeNVpL','Enhancement\x20document\x20CORS\x20blocked','\x20\x20\x20\x20var\x20knownPathHints\x20=\x20','\x20\x20\x20Injecting\x20HMR\x20bridge\x20(enhancement\x20source)...','7304AlTgKA','destination','\x20\x20\x20\x20\x20\x20}','delete','get','x-enhance-enhancement','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Calling\x20Enhance.init()\x20with\x20options:\x22,\x20JSON.stringify(','Enhancement\x20document\x20miss\x20','\x20\x20\x20\x20\x20\x20window.enhancePreview\x20=\x20controller;','?import','content-type','fetch','[Enhance\x20SW\x20Bootstrap]','headers','\x20\x20\x20\x20};','getOwnPropertyDescriptor','clone','replace','\x20\x20\x20\x20\x20\x20//\x20Always\x20use\x20enhancementBase\x20for\x20HMR\x20WebSocket\x20proxying','/_next/webpack-hmr','\x20\x20\x20\x20\x20\x20var\x20loweredPath\x20=\x20pathname.toLowerCase();','62kDldEN','\x20handleNavigationRequest:\x20','mode','x-enhance-document-source','\x20clients.claim()\x20complete','toISOString','\x20\x20\x20\x20\x20\x20\x20\x20var\x20proto\x20=\x20protoList[i];','\x20\x20\x20Not\x20routing\x20asset\x20(not\x20routable\x20or\x20not\x20same-origin)','statusText','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Starting\x20runtime\x20bootstrap...\x22);','image','origin','\x20\x20\x20Not\x20HTML\x20response\x20-\x20returning\x20null','\x20\x20\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20No\x20Enhance.init\x20export\x20found!\x22);','cross-origin-resource-policy','stringify','\x20\x20\x20\x20Object.setPrototypeOf(EnhancedWebSocket,\x20originalWebSocket);','operatingPath','\x20CONFIG\x20message\x20-\x20updating\x20customer\x20config','</script>','\x20\x20\x20No\x20enhancementBase\x20configured\x20-\x20skipping','\x20resolved\x20from\x20cache:\x20','\x20Customer\x20config\x20updated:','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhancement\x20document','search','full','log','\x20\x20\x20BYPASS:\x20','\x20\x20\x20\x20\x20\x20var\x20protoList\x20=\x20toArray(protocols);','Cannot\x20build\x20enhancement\x20URL\x20without\x20enhancementBase\x20configured','\x20Unknown\x20message\x20type:\x20','startsWith','worker-src\x20\x27self\x27\x20blob:','error','$&\x0a','enhancementUrl','(function(){','1272068dDfnqJ','\x20\x20\x20Rewritten\x20HTML\x20length:\x20','\x20\x20\x20\x20\x20\x20return\x20Array.isArray(value)\x20?\x20value\x20:\x20[value];','connect-src\x20*','toString','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20var\x20rewritten\x20=\x20buildProxiedUrl(resolved);','\x20\x20\x20runtimeScriptPath:\x20','Enhancement\x20fetch\x20failed','permissive','\x20chars','script-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20\x27unsafe-eval\x27\x20blob:\x20data:\x20https:\x20http:','style-src\x20\x27self\x27\x20\x27unsafe-inline\x27\x20blob:\x20data:\x20https:\x20http:','\x20\x20\x20\x20\x20\x20var\x20isExternalHost\x20=\x20externalHosts.includes(url.host);','style','/auth/callback','\x20\x20\x20\x20\x20\x20var\x20externalHosts\x20=\x20[\x22app.enhance.localhost:4450\x22,\x20\x22localhost:5173\x22];','modulepreload','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(shouldProxy(resolved,\x20protocols))\x20{','})();',')\x20-\x20returning\x20null','\x20\x20\x20shouldInjectOverlay:\x20','/snowpack/hmr','redirect','\x20\x20\x20\x20var\x20buildProxiedUrl\x20=\x20function(targetUrl)\x20{','overlay','\x20\x20\x20\x20if\x20(typeof\x20window\x20!==\x20\x22undefined\x22)\x20{','x-enhance-routing','\x20\x20\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket.prototype,\x20\x22constructor\x22,\x20{\x20value:\x20EnhancedWebSocket\x20});','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Controller\x20attached\x20to\x20window.enhancePreview\x22);','\x20\x20\x20Injecting\x20runtime\x20bootstrap...','enhancementBase','content-security-policy','addEventListener','href','cors','\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','\x20skipWaiting()\x20complete','set-cookie2','default','\x20\x20\x20Content-Type:\x20','claim','type','\x20\x20\x20SUCCESS\x20-\x20returning\x20enhanced\x20response','navigate','2850043HhvqdO','\x20\x20\x20NAVIGATE\x20request\x20-\x20handling\x20navigation','\x20\x20\x20Custom\x20security\x20mode\x20-\x20preserving\x20original\x20CSP','x-enhance-document','\x20\x20\x20securityMode:\x20','opaque','\x20Enhancement\x20ID\x20from\x20navigation:\x20','http://','method','body','overlayPath','\x20\x20\x20\x20\x20\x20','callbackBypassNormalized','\x20\x20\x20\x20\x20\x20var\x20isAppHost\x20=\x20url.host\x20===\x20window.location.host;','\x20\x20\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Set\x20window.__enhanceInitialized\x20=\x20true\x22);','Enhancement\x20document\x20fetch\x20failed','push','\x20Calling\x20skipWaiting()...','\x20resolved\x20to:\x20','\x20\x20\x20\x20var\x20basePrefix\x20=\x20\x22/__sbx__\x22;','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(typeof\x20proto\x20===\x20\x22string\x22\x20&&\x20knownProtocols.has(proto.toLowerCase()))\x20{','\x20\x20\x20\x20}','\x20Build\x20config:','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20module\x20loaded:\x22,\x20Object.keys(runtimeModule));','getOwnPropertyNames','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>','X-Enhance-Publishable-Key','img-src\x20*\x20data:\x20blob:','\x20\x20\x20Original\x20HTML\x20length:\x20','text','\x20\x20\x20Enhancement\x20MISS\x20for\x20','\x20\x20\x20Stripping\x20SRI\x20attributes...','/public/enhancements/','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;','\x20is\x20runtime\x20asset\x20-\x20not\x20routing','\x20\x20\x20No\x20script\x20generated\x20(missing\x20runtimePath)\x20-\x20returning\x20html\x20unchanged','\x20\x20}\x20catch\x20(error)\x20{',',\x20type:\x20','\x20\x20\x20\x20\x20\x20//\x20Allow\x20proxying\x20for\x20specific\x20external\x20hosts','data','\x20\x20\x20Skipping\x20HMR\x20bridge\x20(production\x20source)','some','default-src\x20\x27self\x27\x20blob:\x20data:','\x20\x20\x20\x20const\x20Enhance\x20=\x20runtimeModule?.Enhance\x20??\x20runtimeModule?.default?.Enhance\x20??\x20runtimeModule?.default;','\x20\x20\x20\x20}\x20catch\x20(error)\x20{','\x20for\x20','\x20\x20\x20Attempting\x20to\x20fetch\x20from\x20enhancement:\x20','enumerable','\x20\x20\x20\x20const\x20runtimeModule\x20=\x20await\x20import(runtimePath);','GET','length','\x20-\x20falling\x20back\x20to\x20production','rewritten','\x5cu003c','https://enhance-api-dev.enhancelabs.workers.dev','\x20Resolving\x20enhancement\x20','https://assets-dev.enhancelabs.ai/overlay.js','\x20\x20\x20Script\x20inserted\x20into\x20document','clients','publishableKey','object','location','slice','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Runtime\x20path:\x22,\x20runtimePath);','pathname','match','\x20\x20\x20Applying\x20permissive\x20CSP...','\x20\x20\x20No\x20existing\x20bootstrap\x20-\x20injecting\x20new\x20one\x20(','includes','\x20Cannot\x20resolve\x20enhancement\x20-\x20no\x20publishable\x20key\x20configured','\x20\x20\x20\x20\x20\x20}\x20catch\x20(error)\x20{','\x20\x20\x20Fetch\x20error:','\x20\x20\x20\x20Object.defineProperty(EnhancedWebSocket,\x20\x22__enhancePatched\x22,\x20{\x20value:\x20true\x20});','6qBukLU','\x20\x20\x20Not\x20handling\x20(method\x20not\x20GET/HEAD)','\x20\x20try\x20{','media-src\x20*\x20data:\x20blob:','/sw-enhance.js','hit','\x20\x20\x20\x20\x20\x20proxied.hash\x20=\x20\x22\x22;','\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20unavailable\x22,\x20error);','cache-control','\x20\x20\x20Failed\x20to\x20rewrite\x20document:','\x20\x20\x20\x20\x20\x20\x20\x20var\x20resolved\x20=\x20url\x20instanceof\x20URL\x20?\x20url\x20:\x20new\x20URL(String(url),\x20window.location.href);','\x20\x20\x20Document\x20rewrite\x20complete','\x20\x20\x20\x20console.error(\x22[Enhance\x20Bootstrap]\x20Failed\x20to\x20bootstrap\x20runtime:\x22,\x20error);','\x20Bootstrap\x20options:','\x20\x20\x20\x20\x20\x20\x20\x20if\x20(loweredPath.indexOf(knownPathHints[j])\x20!==\x20-1)\x20{','production','\x20\x20\x20\x20var\x20toArray\x20=\x20function(value)\x20{'];_0x5e85=function(){return _0x35f5ae;};return _0x5e85();}function _0x6e6b(_0x477ee0,_0x5714d6){_0x477ee0=_0x477ee0-0xa1;const _0x5e85eb=_0x5e85();let _0x6e6b85=_0x5e85eb[_0x477ee0];return _0x6e6b85;}var EnhanceSW=((()=>{const _0x4c048a=_0x6e6b;var _0x3d7e9b=Object['defineProperty'],_0x1df5cf=Object[_0x4c048a(0xbe)],_0x13706b=Object[_0x4c048a(0x12d)],_0x25e5f4=Object['prototype']['hasOwnProperty'],_0x44a932=(_0x29745d,_0x4cb564)=>{for(var _0xbdfc67 in _0x4cb564)_0x3d7e9b(_0x29745d,_0xbdfc67,{'get':_0x4cb564[_0xbdfc67],'enumerable':!![]});},_0x1e64b7=(_0x2a5aeb,_0x41383b,_0x33e6ba,_0x290396)=>{const _0x589ea0=_0x4c048a;if(_0x41383b&&typeof _0x41383b===_0x589ea0(0x151)||typeof _0x41383b===_0x589ea0(0x1b9)){for(let _0x346065 of _0x13706b(_0x41383b))if(!_0x25e5f4[_0x589ea0(0x17a)](_0x2a5aeb,_0x346065)&&_0x346065!==_0x33e6ba)_0x3d7e9b(_0x2a5aeb,_0x346065,{'get':()=>_0x41383b[_0x346065],'enumerable':!(_0x290396=_0x1df5cf(_0x41383b,_0x346065))||_0x290396[_0x589ea0(0x144)]});}return _0x2a5aeb;},_0x56fc7e=_0x191b33=>_0x1e64b7(_0x3d7e9b({},'__esModule',{'value':!![]}),_0x191b33),_0x3b2a1a={};_0x44a932(_0x3b2a1a,{'log':()=>_0x238ae2});var _0x4b4a37='enhance:configure',_0x498a93=_0x4c048a(0x17b);function _0x48a58f(_0x3abe3e){const _0x5dd457=_0x4c048a;if(!_0x3abe3e[_0x5dd457(0xe3)]('/'))return'/'+_0x3abe3e;return _0x3abe3e;}function _0x26d4cf(_0x1871b5,_0x5cc39c){const _0x4ac8ad=_0x4c048a,_0x58c8c7=new URL(_0x1871b5[_0x4ac8ad(0xed)]()),_0x41aec5=_0x58c8c7[_0x4ac8ad(0x155)][_0x4ac8ad(0x176)]('/')?_0x58c8c7[_0x4ac8ad(0x155)][_0x4ac8ad(0x153)](0x0,-0x1):_0x58c8c7[_0x4ac8ad(0x155)],_0x5edd52=_0x5cc39c[_0x4ac8ad(0x155)][_0x4ac8ad(0xe3)]('/')?_0x5cc39c[_0x4ac8ad(0x155)]:'/'+_0x5cc39c[_0x4ac8ad(0x155)];return _0x58c8c7[_0x4ac8ad(0x155)]=(''+_0x41aec5+_0x5edd52)['replace'](/\/+/g,'/'),_0x58c8c7[_0x4ac8ad(0xdc)]=_0x5cc39c['search'],_0x58c8c7[_0x4ac8ad(0x1c0)]='',_0x58c8c7;}var _0x23c850='[Enhance\x20SW\x20Routing]',_0x3c7930=_0x4c048a(0x12f),_0x1d0faf=new Set([_0x4c048a(0x1ad),_0x4c048a(0xf6),'font',_0x4c048a(0xce),_0x4c048a(0x1a3),_0x4c048a(0xaa),_0x4c048a(0xf9)]);function _0x4fe200(_0x572ba1){const _0x199949=_0x4c048a,_0x5786e4=_0x572ba1[_0x199949(0x11d)]==='GET'||_0x572ba1[_0x199949(0x11d)]===_0x199949(0x18b);return _0x5786e4;}function _0x2353c8(_0xf5c849,_0x33a7d9){const _0x8f11b0=_0x4c048a,_0x362129=_0x48a58f(_0x33a7d9),_0x40c21b=_0xf5c849[_0x8f11b0(0x121)][_0x8f11b0(0x13e)](_0x13abfb=>_0x362129[_0x8f11b0(0xe3)](_0x13abfb));return _0x40c21b;}function _0x582d04(_0x43beba,_0x3a020b,_0x2616e2){const _0x222df0=_0x4c048a,_0x383725=_0x3a020b[_0x222df0(0xb0)];if(!_0x383725||!_0x1d0faf[_0x222df0(0x178)](_0x383725))return![];if(_0x585297(_0x43beba,_0x2616e2))return console['log'](_0x23c850+_0x222df0(0x1ba)+_0x2616e2['pathname']+_0x222df0(0x1bd)),![];if(_0xe63d14(_0x43beba,_0x2616e2))return console[_0x222df0(0xde)](_0x23c850+_0x222df0(0x1ba)+_0x2616e2['pathname']+_0x222df0(0x137)),![];if(_0x2616e2[_0x222df0(0xcf)]!==self[_0x222df0(0x152)][_0x222df0(0xcf)])return![];return!![];}async function _0x27fa37(_0x1ef274,_0x3ca121,_0x373786){const _0x243fc0=_0x4c048a;console[_0x243fc0(0xde)](_0x23c850+'\x20fetchFromEnhancement:\x20'+_0x373786[_0x243fc0(0x155)]);if(!_0x1ef274[_0x243fc0(0x107)])return console[_0x243fc0(0xde)](_0x23c850+_0x243fc0(0xd8)),null;const _0x45845d=_0x14901d(_0x1ef274,_0x373786);console[_0x243fc0(0xde)](_0x23c850+'\x20\x20\x20Enhancement\x20URL:\x20'+_0x45845d[_0x243fc0(0xed)]());const _0x27b056=new Headers(_0x3ca121[_0x243fc0(0xbc)]);_0x27b056[_0x243fc0(0x1aa)](_0x243fc0(0x103),_0x243fc0(0x1d1)),_0x27b056[_0x243fc0(0xb2)](_0x243fc0(0x1cb));_0x1ef274[_0x243fc0(0x150)]&&_0x27b056[_0x243fc0(0x1aa)](_0x3c7930,_0x1ef274[_0x243fc0(0x150)]);const _0x2efb1d=new Request(_0x45845d[_0x243fc0(0xed)](),{'method':_0x3ca121[_0x243fc0(0x11d)],'headers':_0x27b056,'credentials':_0x243fc0(0x190),'redirect':_0x3ca121[_0x243fc0(0xff)],'cache':'default','mode':_0x243fc0(0x10b)});try{console[_0x243fc0(0xde)](_0x23c850+_0x243fc0(0x1b4));const _0x8b1606=await fetch(_0x2efb1d);console[_0x243fc0(0xde)](_0x23c850+_0x243fc0(0x191)+_0x8b1606[_0x243fc0(0x1cf)]+'\x20'+_0x8b1606[_0x243fc0(0xcc)]+_0x243fc0(0x13a)+_0x8b1606[_0x243fc0(0x112)]);if(_0x8b1606[_0x243fc0(0x112)]===_0x243fc0(0x11a))return console['log'](_0x23c850+_0x243fc0(0x182)),_0x238ae2(_0x243fc0(0x171),'Enhancement\x20CORS\x20blocked',_0x45845d[_0x243fc0(0xed)]()),null;if(!_0x8b1606['ok'])return console[_0x243fc0(0xde)](_0x23c850+_0x243fc0(0x187)+_0x8b1606['status']+_0x243fc0(0xfc)),_0x238ae2(_0x243fc0(0x1e6),_0x243fc0(0x1ac)+_0x8b1606[_0x243fc0(0x1cf)]+_0x243fc0(0x142)+_0x45845d[_0x243fc0(0x155)]),null;return console[_0x243fc0(0xde)](_0x23c850+_0x243fc0(0x113)),_0x4f5856(_0x8b1606,_0x3ca121[_0x243fc0(0x11d)]);}catch(_0x478998){return console[_0x243fc0(0xe5)](_0x23c850+_0x243fc0(0x15c),_0x478998),_0x238ae2('info',_0x243fc0(0xf0),_0x478998),null;}}async function _0x74b1e8(_0x516136,_0x437f19){const _0x3ad714=_0x4c048a,_0xc2e36f=new URL(_0x437f19['url']);console[_0x3ad714(0xde)](_0x23c850+_0x3ad714(0x194)+_0xc2e36f[_0x3ad714(0x155)]+_0xc2e36f['search']);if(!_0x516136['enhancementBase'])return console[_0x3ad714(0xde)](_0x23c850+_0x3ad714(0x1c1)),null;const _0x3beddf=_0x14901d(_0x516136,_0xc2e36f);console[_0x3ad714(0xde)](_0x23c850+'\x20\x20\x20Enhancement\x20document\x20URL:\x20'+_0x3beddf[_0x3ad714(0xed)]());const _0x473b2d=new Headers(_0x437f19[_0x3ad714(0xbc)]);_0x473b2d[_0x3ad714(0x1aa)](_0x3ad714(0x103),_0x3ad714(0x1df)),_0x473b2d['delete']('host'),_0x473b2d['delete'](_0x3ad714(0x192));_0x516136[_0x3ad714(0x150)]&&_0x473b2d[_0x3ad714(0x1aa)](_0x3c7930,_0x516136[_0x3ad714(0x150)]);const _0x18a4ce=new Request(_0x3beddf['toString'](),{'method':_0x3ad714(0x146),'headers':_0x473b2d,'credentials':'include','redirect':_0x3ad714(0x199),'cache':_0x3ad714(0x10f),'mode':'cors'});try{console['log'](_0x23c850+_0x3ad714(0xa4));const _0x27b115=await fetch(_0x18a4ce);console[_0x3ad714(0xde)](_0x23c850+_0x3ad714(0x191)+_0x27b115[_0x3ad714(0x1cf)]+'\x20'+_0x27b115[_0x3ad714(0xcc)]+',\x20type:\x20'+_0x27b115[_0x3ad714(0x112)]),console['log'](_0x23c850+_0x3ad714(0x110)+_0x27b115['headers']['get'](_0x3ad714(0xb9)));if(_0x27b115[_0x3ad714(0x112)]===_0x3ad714(0x11a))return console[_0x3ad714(0xde)](_0x23c850+_0x3ad714(0x182)),_0x238ae2(_0x3ad714(0x171),_0x3ad714(0xac),_0x3beddf[_0x3ad714(0xed)]()),null;if(!_0x27b115['ok'])return console[_0x3ad714(0xde)](_0x23c850+_0x3ad714(0x187)+_0x27b115['status']+_0x3ad714(0xfc)),_0x238ae2(_0x3ad714(0x1e6),_0x3ad714(0xb6)+_0x27b115[_0x3ad714(0x1cf)]+_0x3ad714(0x142)+_0x3beddf[_0x3ad714(0x155)]),null;if(!_0x59f0f0(_0x27b115))return console['log'](_0x23c850+_0x3ad714(0xd0)),null;return console[_0x3ad714(0xde)](_0x23c850+_0x3ad714(0xdb)),_0x4f5856(_0x27b115,_0x3ad714(0x146));}catch(_0x3302d2){return console['error'](_0x23c850+_0x3ad714(0x1ce),_0x3302d2),_0x238ae2(_0x3ad714(0x171),_0x3ad714(0x124),_0x3302d2),null;}}function _0x14901d(_0x24dd56,_0x383be1){const _0x1a725c=_0x4c048a;if(!_0x24dd56[_0x1a725c(0x107)])throw new Error(_0x1a725c(0xe1));return _0x26d4cf(_0x24dd56[_0x1a725c(0x107)],_0x383be1);}function _0x4f5856(_0x2a6646,_0x206340){const _0x213528=_0x4c048a,_0x281238=_0x2a6646[_0x213528(0xbf)](),_0x3fb53a=new Headers(_0x281238[_0x213528(0xbc)]);_0x3fb53a['delete'](_0x213528(0x1b8)),_0x3fb53a[_0x213528(0xb2)](_0x213528(0x1e4)),_0x3fb53a[_0x213528(0xb2)](_0x213528(0x184)),_0x3fb53a[_0x213528(0x1aa)](_0x213528(0xb4),_0x213528(0x163)),_0x5312db(_0x3fb53a);const _0x2cf30e=_0x206340===_0x213528(0x18b)?null:_0x281238[_0x213528(0x11e)];return new Response(_0x2cf30e,{'status':_0x281238[_0x213528(0x1cf)],'statusText':_0x281238['statusText'],'headers':_0x3fb53a});}function _0x59f0f0(_0x1e8dce){const _0x416f78=_0x4c048a,_0x12d299=_0x1e8dce[_0x416f78(0xbc)]['get'](_0x416f78(0xb9));return _0x12d299!=null&&_0x12d299[_0x416f78(0x159)](_0x416f78(0x19e));}function _0x585297(_0x549b46,_0x3e60c7){const _0x180006=_0x4c048a;return _0xa5c9d3(_0x3e60c7,_0x549b46[_0x180006(0x11f)]);}function _0xe63d14(_0x66ee2d,_0x2e4c1e){return _0x1f47fe(_0x2e4c1e,_0x66ee2d['runtimeScriptPath']);}function _0xa5c9d3(_0x9d0b8d,_0x5880e0){const _0xe622cf=_0x4c048a;if(!_0x5880e0)return![];if(_0x5880e0['startsWith']('http://')||_0x5880e0[_0xe622cf(0xe3)](_0xe622cf(0x1d4)))return _0x9d0b8d[_0xe622cf(0x10a)]===_0x5880e0;const _0x33d5a5=_0x2376e7(_0x5880e0);if(!_0x33d5a5)return![];const _0x3ba2e3=''+_0x9d0b8d['pathname']+_0x9d0b8d[_0xe622cf(0xdc)];if(_0x3ba2e3===_0x33d5a5)return!![];if(_0x9d0b8d[_0xe622cf(0xdc)]===_0xe622cf(0xb8))return _0x9d0b8d[_0xe622cf(0x155)]===_0x33d5a5;return![];}function _0x1f47fe(_0x432b27,_0x58309){const _0xb63915=_0x4c048a;if(!_0x58309)return![];if(_0x58309[_0xb63915(0xe3)](_0xb63915(0x11c))||_0x58309[_0xb63915(0xe3)](_0xb63915(0x1d4)))return _0x432b27[_0xb63915(0x10a)]===_0x58309;const _0x20ef69=_0x2376e7(_0x58309);if(!_0x20ef69)return![];const _0x5db700=''+_0x432b27['pathname']+_0x432b27['search'];return _0x5db700===_0x20ef69;}function _0x2376e7(_0x3eed51){const _0x17d2b8=_0x4c048a;if(!_0x3eed51)return _0x3eed51;if(_0x3eed51[_0x17d2b8(0xe3)](_0x17d2b8(0x11c))||_0x3eed51[_0x17d2b8(0xe3)](_0x17d2b8(0x1d4)))return _0x3eed51;const _0x2440da=_0x3eed51[_0x17d2b8(0xc0)](/^\.\//,'');if(_0x2440da[_0x17d2b8(0xe3)]('/'))return _0x2440da;return'/'+_0x2440da;}function _0x5312db(_0x48bd2e){const _0x1c3a5b=_0x4c048a;_0x48bd2e[_0x1c3a5b(0xb2)](_0x1c3a5b(0x18d)),_0x48bd2e[_0x1c3a5b(0xb2)]('set-cookie2');}function _0x338b01(_0x31c249){const _0x571c8e=_0x4c048a,_0x22b80b=[_0x571c8e(0x13f),_0x571c8e(0xf3),_0x571c8e(0xf4),_0x571c8e(0x130),_0x571c8e(0x1be),_0x571c8e(0xec),_0x571c8e(0x161),_0x571c8e(0xe4),_0x571c8e(0x1c6)],_0x9a13fa=_0x5e5d4f(_0x31c249);return _0x9a13fa&&_0x22b80b['push'](_0x9a13fa),_0x22b80b[_0x571c8e(0x19c)](';\x20');}function _0x1ababc(_0x1f84a1){const _0x4aa953=_0x4c048a;_0x1f84a1[_0x4aa953(0xb2)](_0x4aa953(0x18d)),_0x1f84a1['delete'](_0x4aa953(0x10e));}function _0x5e5d4f(_0x8e9ea){const _0x35a7a3=_0x4c048a;if(!_0x8e9ea)return null;const _0x1ab051=_0x8e9ea[_0x35a7a3(0x156)](/frame-ancestors\s+([^;]+)/i);if(!_0x1ab051)return null;return _0x35a7a3(0x1bf)+_0x1ab051[0x1]['trim']();}function _0x27b20f(_0x476a78,_0x5ddc84){const _0x589bdf=_0x4c048a;if(/<head[^>]*>/i['test'](_0x476a78)){const _0xabf818=_0x476a78['match'](/<head[^>]*>/i);if(_0xabf818){const _0x2a4efc=_0xabf818[0x0];return _0x476a78[_0x589bdf(0xc0)](_0x2a4efc,_0x2a4efc+'\x0a'+_0x5ddc84);}}if(/<\/head>/i[_0x589bdf(0x174)](_0x476a78))return _0x476a78[_0x589bdf(0xc0)](/<\/head>/i,_0x5ddc84+'\x0a</head>');if(/<body\b[^>]*>/i[_0x589bdf(0x174)](_0x476a78))return _0x476a78['replace'](/<body\b[^>]*>/i,_0x589bdf(0xe6)+_0x5ddc84);if(/<\/body>/i[_0x589bdf(0x174)](_0x476a78))return _0x476a78[_0x589bdf(0xc0)](/<\/body>/i,_0x5ddc84+_0x589bdf(0x19f));return _0x5ddc84+'\x0a'+_0x476a78;}var _0x1576be=[_0x4c048a(0x1c4)],_0x3c5685=['/@vite/client',_0x4c048a(0x1b0),_0x4c048a(0x196),_0x4c048a(0x19a),'/sockjs-node','/webpack-dev-server',_0x4c048a(0xa8),'/webpackhotmiddleware','/webpack-hot-middleware',_0x4c048a(0x177),_0x4c048a(0xc2),'/parcel-hmr','/__parcel_hmr','/__snowpack__',_0x4c048a(0xfe)];function _0x5de13d(_0x4d0a28,_0x35a9ce){const _0x4c2be1=_0x2cb5a2(_0x4d0a28);if(!_0x4c2be1)return _0x35a9ce;return _0x27b20f(_0x35a9ce,_0x4c2be1);}function _0x2cb5a2(_0x1369cb){const _0x36edfa=_0x4c048a;if(!_0x1369cb['enhancementBase'])return null;const _0x36ca3c=_0x1369cb[_0x36edfa(0x107)][_0x36edfa(0xed)](),_0x4bf599=_0x15531b(_0x1576be),_0x178bcf=_0x15531b(_0x3c5685),_0x29482a=[_0x36edfa(0xa3),_0x36edfa(0xe8),_0x36edfa(0x160),_0x36edfa(0x1c3)+JSON[_0x36edfa(0xd3)](_0x36ca3c)+');',_0x36edfa(0x1bb),_0x36edfa(0x1ca),'\x20\x20\x20\x20\x20\x20return;',_0x36edfa(0x12a),'\x20\x20\x20\x20var\x20knownProtocols\x20=\x20new\x20Set('+JSON[_0x36edfa(0xd3)](_0x4bf599)+');',_0x36edfa(0xad)+JSON['stringify'](_0x178bcf)+';',_0x36edfa(0x128),_0x36edfa(0x16e),_0x36edfa(0xa2),_0x36edfa(0xeb),_0x36edfa(0xbd),_0x36edfa(0x181),_0x36edfa(0x13b),_0x36edfa(0xf8),_0x36edfa(0xf5),_0x36edfa(0x122),'\x20\x20\x20\x20\x20\x20','\x20\x20\x20\x20\x20\x20if\x20(!isExternalHost\x20&&\x20!isAppHost)\x20return\x20false;',_0x36edfa(0x120),_0x36edfa(0x1a9),_0x36edfa(0x16f),'\x20\x20\x20\x20\x20\x20\x20\x20return\x20false;',_0x36edfa(0xb1),_0x36edfa(0xe0),'\x20\x20\x20\x20\x20\x20for\x20(var\x20i\x20=\x200;\x20i\x20<\x20protoList.length;\x20i++)\x20{',_0x36edfa(0xca),_0x36edfa(0x129),_0x36edfa(0x136),_0x36edfa(0x1d8),_0x36edfa(0xb1),_0x36edfa(0xc3),_0x36edfa(0x1d7),_0x36edfa(0x16c),'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20return\x20true;','\x20\x20\x20\x20\x20\x20\x20\x20}',_0x36edfa(0xb1),_0x36edfa(0x180),'\x20\x20\x20\x20};',_0x36edfa(0x100),_0x36edfa(0xc1),'\x20\x20\x20\x20\x20\x20var\x20proxied\x20=\x20new\x20URL(enhancementBase);','\x20\x20\x20\x20\x20\x20proxied.search\x20=\x20targetUrl.search;',_0x36edfa(0x164),_0x36edfa(0x170),'\x20\x20\x20\x20};',_0x36edfa(0x17c),_0x36edfa(0x1c7),_0x36edfa(0x168),_0x36edfa(0xfa),_0x36edfa(0xee),_0x36edfa(0x1a4),_0x36edfa(0x1d8),_0x36edfa(0x15b),'\x20\x20\x20\x20\x20\x20\x20\x20console.debug(\x22[Enhance]\x20websocket\x20bridge\x20fallback\x22,\x20error);',_0x36edfa(0xb1),_0x36edfa(0x18c),_0x36edfa(0xbd),'\x20\x20\x20\x20Object.assign(EnhancedWebSocket,\x20originalWebSocket);',_0x36edfa(0xa6),_0x36edfa(0xd4),'\x20\x20\x20\x20try\x20{',_0x36edfa(0x104),_0x36edfa(0x141),_0x36edfa(0x1a7),_0x36edfa(0x12a),_0x36edfa(0x15d),'\x20\x20\x20\x20window.WebSocket\x20=\x20EnhancedWebSocket;',_0x36edfa(0x139),_0x36edfa(0x165),_0x36edfa(0x1a1),_0x36edfa(0xfb),_0x36edfa(0xd7)];return _0x29482a['join']('\x0a');}function _0x15531b(_0x5f0194){const _0xb6cbea=_0x4c048a,_0x3f957e=new Set(),_0x61c174=[];for(const _0x514f81 of _0x5f0194){const _0x279aa0=_0x514f81[_0xb6cbea(0x18e)]();if(_0x3f957e[_0xb6cbea(0x178)](_0x279aa0))continue;_0x3f957e[_0xb6cbea(0x18f)](_0x279aa0),_0x61c174[_0xb6cbea(0x125)](_0x279aa0);}return _0x61c174;}var _0x4d2b48=_0x4c048a(0xbb);function _0x2c4155(_0x1aea1c,_0x448ea0){const _0x2320f7=_0x4c048a;console['log'](_0x4d2b48+_0x2320f7(0x1b1)),console[_0x2320f7(0xde)](_0x4d2b48+_0x2320f7(0xef)+_0x1aea1c[_0x2320f7(0x1c8)]),console[_0x2320f7(0xde)](_0x4d2b48+_0x2320f7(0x1cc)+_0x1aea1c['overlayPath']);if(_0x448ea0['includes'](_0x2320f7(0x186)))return console[_0x2320f7(0xde)](_0x4d2b48+_0x2320f7(0x1e1)),_0x448ea0;const _0x35d98a=_0xf8f2af(_0x1aea1c);if(!_0x35d98a)return console[_0x2320f7(0xde)](_0x4d2b48+_0x2320f7(0x138)),_0x448ea0;console[_0x2320f7(0xde)](_0x4d2b48+_0x2320f7(0x158)+_0x35d98a['length']+_0x2320f7(0x1db));const _0x43c89f=_0x27b20f(_0x448ea0,_0x35d98a);return console[_0x2320f7(0xde)](_0x4d2b48+_0x2320f7(0x14e)),_0x43c89f;}function _0xf8f2af(_0x3b3e9d){const _0x4ff86b=_0x4c048a,_0x5ec6ca=_0x3b3e9d[_0x4ff86b(0x1c8)];if(!_0x5ec6ca)return console[_0x4ff86b(0xde)](_0x4d2b48+_0x4ff86b(0x1e5)),null;const _0x2b6da5=_0x1d18ca(_0x3b3e9d);console[_0x4ff86b(0xde)](_0x4d2b48+_0x4ff86b(0x16b),JSON[_0x4ff86b(0xd3)](_0x2b6da5,null,0x2));const _0x32913a=_0x4bd8a3(_0x2b6da5),_0x8aeea1=JSON[_0x4ff86b(0xd3)](_0x5ec6ca),_0x5d0632=[_0x4ff86b(0x12e),'(async\x20()\x20=>\x20{',_0x4ff86b(0x160),_0x4ff86b(0x1ae)+_0x8aeea1+';',_0x4ff86b(0xcd),_0x4ff86b(0x154),'\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Current\x20URL:\x22,\x20window.location.href);',_0x4ff86b(0x145),_0x4ff86b(0x12c),_0x4ff86b(0x140),_0x4ff86b(0x1e3),_0x4ff86b(0xd1),'\x20\x20\x20\x20\x20\x20return;',_0x4ff86b(0x12a),_0x4ff86b(0xb5)+_0x32913a+_0x4ff86b(0x1d0),_0x4ff86b(0x1a0)+_0x32913a+');','\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Enhance\x20controller\x20created:\x22,\x20controller);',_0x4ff86b(0x102),_0x4ff86b(0xb7),_0x4ff86b(0x105),_0x4ff86b(0x10c),_0x4ff86b(0x1ab),'\x20\x20\x20\x20\x20\x20window.__enhanceController\x20=\x20controller;',_0x4ff86b(0x123),_0x4ff86b(0x12a),'\x20\x20\x20\x20console.log(\x22[Enhance\x20Bootstrap]\x20Bootstrap\x20complete\x22);',_0x4ff86b(0x139),_0x4ff86b(0x16a),_0x4ff86b(0x1a1),_0x4ff86b(0xfb),'</script>'];return _0x5d0632['join']('\x0a');}function _0x1d18ca(_0x3015c3){const _0x6d3317=_0x4c048a,_0x1d71eb={'publishableKey':_0x3015c3[_0x6d3317(0x150)],'callbackBypass':_0x3015c3[_0x6d3317(0x1bc)],'__development':{'enableOverlayHmr':_0x3015c3['overlayEnableViteHmr'],'overlayPath':_0x3015c3['overlayPath'],'security':_0x3015c3[_0x6d3317(0x198)],'backendUrl':_0x3015c3[_0x6d3317(0x1b7)]}};return _0x1d71eb;}function _0x4bd8a3(_0x495f20){const _0x45ec3f=_0x4c048a;return JSON[_0x45ec3f(0xd3)](_0x495f20)[_0x45ec3f(0xc0)](/</g,_0x45ec3f(0x14a))[_0x45ec3f(0xc0)](/>/g,_0x45ec3f(0x1a2));}function _0x568150(_0xdd2b1d,_0x1ef1d0){const _0x1f1d9e=_0x4c048a,_0x210e73=_0x142c2b=>_0x5261c8(_0xdd2b1d,_0x142c2b),_0x52b713=_0x4fe1b5=>_0xa628e7(_0xdd2b1d,_0x4fe1b5);return _0x1ef1d0[_0x1f1d9e(0xc0)](/<script\b[^>]*>/gi,_0x210e73)[_0x1f1d9e(0xc0)](/<link\b[^>]*>/gi,_0x52b713);}function _0x3e45b3(_0x29f636){const _0x4418b0=_0x4c048a;return _0x29f636[_0x4418b0(0xc0)](/\s+integrity\s*=\s*(?:"[^"]*"|'[^']*'|[^\s>]+)/gi,'');}function _0x5261c8(_0x67acc7,_0x370cde){const _0x133cc5=_0x4c048a,_0x415dd4=_0x217636(_0x370cde,_0x133cc5(0x173));if(!_0x415dd4)return _0x370cde;const _0x547719=_0x29b4f1(_0x67acc7,_0x415dd4[_0x133cc5(0x1cd)]);if(!_0x547719||_0x547719===_0x415dd4['value'])return _0x370cde;const _0x3e12d6=_0x415dd4['full']['replace'](_0x415dd4[_0x133cc5(0x1cd)],_0x547719);return _0x370cde[_0x133cc5(0xc0)](_0x415dd4[_0x133cc5(0xdd)],_0x3e12d6);}function _0xa628e7(_0x7a0785,_0x2cf990){const _0x522234=_0x4c048a,_0x36849f=_0x2cf990[_0x522234(0x156)](/\brel\s*=\s*(['"])([^"']+)\1/i);if(!_0x36849f)return _0x2cf990;const _0x43382f=_0x36849f[0x2][_0x522234(0x18e)]();if(_0x43382f!==_0x522234(0x1b3)&&_0x43382f!==_0x522234(0xf9))return _0x2cf990;const _0x549bfa=_0x217636(_0x2cf990,'href');if(!_0x549bfa)return _0x2cf990;const _0x47020d=_0x29b4f1(_0x7a0785,_0x549bfa[_0x522234(0x1cd)]);if(!_0x47020d||_0x47020d===_0x549bfa[_0x522234(0x1cd)])return _0x2cf990;const _0x195a78=_0x549bfa['full']['replace'](_0x549bfa[_0x522234(0x1cd)],_0x47020d);return _0x2cf990[_0x522234(0xc0)](_0x549bfa[_0x522234(0xdd)],_0x195a78);}function _0x217636(_0x491cdb,_0x27fad2){const _0x584a94=_0x4c048a,_0x476df4=new RegExp(_0x27fad2+'\x5cs*=\x5cs*([\x27\x22])([^\x22\x27]+)\x5c1','i'),_0x3b233e=_0x491cdb[_0x584a94(0x156)](_0x476df4);if(!_0x3b233e)return null;return{'full':_0x3b233e[0x0],'value':_0x3b233e[0x2]};}function _0x29b4f1(_0x31529b,_0x1d3776){const _0x2ad592=_0x4c048a,_0x29c3bc=_0x3fe817(_0x1d3776);if(!_0x29c3bc)return null;if(_0x29c3bc[_0x2ad592(0xcf)]===self[_0x2ad592(0x152)][_0x2ad592(0xcf)])return''+_0x29c3bc['pathname']+_0x29c3bc[_0x2ad592(0xdc)];return null;}function _0x3fe817(_0x2f25e5){const _0x32cd1e=_0x4c048a;try{return new URL(_0x2f25e5,self[_0x32cd1e(0x152)][_0x32cd1e(0xcf)]);}catch{return null;}}var _0x28cde0=_0x4c048a(0x172);async function _0x42c738(_0x1d12d1,_0x3e757a,_0x22020d,_0x1b71f1=!![]){const _0x5271b4=_0x4c048a;console[_0x5271b4(0xde)](_0x28cde0+'\x20rewriteDocument()\x20called'),console[_0x5271b4(0xde)](_0x28cde0+'\x20\x20\x20source:\x20'+_0x22020d),console[_0x5271b4(0xde)](_0x28cde0+_0x5271b4(0xfd)+_0x1b71f1),console[_0x5271b4(0xde)](_0x28cde0+_0x5271b4(0x119)+_0x1d12d1[_0x5271b4(0x198)]);const _0x1883a1=_0x3e757a['clone'](),_0x25c92b=await _0x1883a1[_0x5271b4(0x132)]();console['log'](_0x28cde0+_0x5271b4(0x131)+_0x25c92b[_0x5271b4(0x147)]+_0x5271b4(0xf2)),console['log'](_0x28cde0+_0x5271b4(0x134));const _0x5cfeb1=_0x3e45b3(_0x25c92b);console['log'](_0x28cde0+_0x5271b4(0x175));let _0x424109=_0x568150(_0x1d12d1,_0x5cfeb1);_0x22020d===_0x5271b4(0x1d1)?(console[_0x5271b4(0xde)](_0x28cde0+_0x5271b4(0xae)),_0x424109=_0x5de13d(_0x1d12d1,_0x424109)):console['log'](_0x28cde0+_0x5271b4(0x13d));_0x1b71f1?(console[_0x5271b4(0xde)](_0x28cde0+_0x5271b4(0x106)),_0x424109=_0x2c4155(_0x1d12d1,_0x424109)):console[_0x5271b4(0xde)](_0x28cde0+'\x20\x20\x20Skipping\x20runtime\x20bootstrap\x20injection');console[_0x5271b4(0xde)](_0x28cde0+_0x5271b4(0xea)+_0x424109[_0x5271b4(0x147)]+_0x5271b4(0xf2));const _0x6eb8c0=new Headers(_0x1883a1[_0x5271b4(0xbc)]);_0x6eb8c0[_0x5271b4(0x1aa)](_0x5271b4(0x166),'no-store'),_0x6eb8c0[_0x5271b4(0x1aa)](_0x5271b4(0x118),_0x5271b4(0x149)),_0x6eb8c0[_0x5271b4(0x1aa)](_0x5271b4(0xc7),_0x22020d),_0x1ababc(_0x6eb8c0);if(_0x1d12d1[_0x5271b4(0x198)]!=='custom'){console['log'](_0x28cde0+_0x5271b4(0x157));const _0x2fecb1=_0x6eb8c0[_0x5271b4(0xb3)](_0x5271b4(0x108));_0x6eb8c0[_0x5271b4(0x1aa)](_0x5271b4(0x108),_0x338b01(_0x2fecb1)),_0x6eb8c0[_0x5271b4(0xb2)](_0x5271b4(0x1b6)),_0x6eb8c0[_0x5271b4(0xb2)](_0x5271b4(0xa1)),_0x6eb8c0[_0x5271b4(0xb2)](_0x5271b4(0xd2));}else console[_0x5271b4(0xde)](_0x28cde0+_0x5271b4(0x117));return console['log'](_0x28cde0+_0x5271b4(0x169)),new Response(_0x424109,{'status':_0x1883a1[_0x5271b4(0x1cf)],'statusText':_0x1883a1[_0x5271b4(0xcc)],'headers':_0x6eb8c0});}var _0x365cfb=_0x4c048a(0x197);console['log'](_0x365cfb+_0x4c048a(0x1b2)+new Date()[_0x4c048a(0xc9)]());var _0x513ee5={'overlayPath':_0x4c048a(0x14d),'backendUrl':_0x4c048a(0x14b),'overlayEnableViteHmr':![],'runtimeScriptPath':_0x4c048a(0x1d5),'swPath':_0x4c048a(0x162)};console[_0x4c048a(0xde)](_0x365cfb+_0x4c048a(0x12b),JSON[_0x4c048a(0xd3)](_0x513ee5,null,0x2));var _0x217891={'publishableKey':'','callbackBypass':['/auth/callback'],'securityMode':_0x4c048a(0xf1)},_0x3e0a89=_0x4c048a(0x12f),_0x43ca71=new Map(),_0x146f33=null,_0x3af913=null,_0x50f924=null;function _0x4aff06(){const _0x4ca11f=_0x4c048a,_0x191ee2=_0x3af913||'',_0x31f261=_0x50f924;return{..._0x513ee5,..._0x217891,'enhancementUrl':_0x191ee2,'enhancementBase':_0x31f261,'callbackBypassNormalized':_0x217891[_0x4ca11f(0x1bc)][_0x4ca11f(0x1e7)](_0x4b9f69=>_0x4b9f69[_0x4ca11f(0xe3)]('/')?_0x4b9f69:'/'+_0x4b9f69)};}async function _0x26d107(_0x475758,_0x3d7e7d){const _0x39612b=_0x4c048a,_0x26fe12=_0x475758['searchParams'][_0x39612b(0xb3)](_0x39612b(0x1d1));if(_0x3d7e7d&&_0x26fe12){console[_0x39612b(0xde)](_0x365cfb+_0x39612b(0x11b)+_0x26fe12);const _0x411379=await _0x405d20(_0x26fe12);if(_0x411379){_0x146f33=_0x26fe12,_0x3af913=_0x411379;try{_0x50f924=new URL(_0x411379);}catch{console[_0x39612b(0xe5)](_0x365cfb+_0x39612b(0x185)+_0x411379),_0x50f924=null;}}else _0x146f33=null,_0x3af913=null,_0x50f924=null;}return _0x3d7e7d&&!_0x26fe12&&(_0x146f33&&console['log'](_0x365cfb+_0x39612b(0x193)),_0x146f33=null,_0x3af913=null,_0x50f924=null),_0x4aff06();}function _0x238ae2(_0x47f8bc,_0x4fa1c2,..._0x2ef445){const _0x1aec82=_0x4c048a;_0x47f8bc===_0x1aec82(0x171)?console['info'](_0x365cfb,_0x4fa1c2,..._0x2ef445):console[_0x1aec82(0x1e6)](_0x365cfb,_0x4fa1c2,..._0x2ef445);}async function _0x405d20(_0x54ef6b){const _0x577c92=_0x4c048a,_0x2cd9fc=_0x43ca71['get'](_0x54ef6b);if(_0x2cd9fc)return console[_0x577c92(0xde)](_0x365cfb+_0x577c92(0x1c9)+_0x54ef6b+_0x577c92(0xd9)+_0x2cd9fc),_0x2cd9fc;if(!_0x217891[_0x577c92(0x150)])return console[_0x577c92(0xe5)](_0x365cfb+_0x577c92(0x15a)),null;const _0x300ad9=_0x513ee5[_0x577c92(0x1b7)]+_0x577c92(0x135)+_0x54ef6b+_0x577c92(0x17e);console[_0x577c92(0xde)](_0x365cfb+_0x577c92(0x14c)+_0x54ef6b+'\x20via\x20'+_0x300ad9);try{const _0x2a9f5e=await fetch(_0x300ad9,{'headers':{[_0x3e0a89]:_0x217891[_0x577c92(0x150)]}});if(!_0x2a9f5e['ok']){let _0x1941d5=await _0x2a9f5e[_0x577c92(0x132)]();try{const _0x31f5de=JSON[_0x577c92(0x1dc)](_0x1941d5);_0x31f5de[_0x577c92(0xe5)]&&(_0x1941d5=_0x31f5de['error']);}catch{}return _0x2a9f5e['status']===0x193?console['error'](_0x365cfb+'\x20❌\x20Publishable\x20key\x20validation\x20failed:\x20'+_0x1941d5):console[_0x577c92(0xe5)](_0x365cfb+_0x577c92(0x1af)+_0x54ef6b+':\x20'+_0x2a9f5e[_0x577c92(0x1cf)]+'\x20'+_0x1941d5),null;}const _0x262ca1=await _0x2a9f5e[_0x577c92(0x189)](),_0x55fa51=''+_0x513ee5[_0x577c92(0x1b7)]+_0x262ca1[_0x577c92(0xd5)];return console[_0x577c92(0xde)](_0x365cfb+'\x20Enhancement\x20'+_0x54ef6b+_0x577c92(0x127)+_0x55fa51),_0x43ca71[_0x577c92(0x1aa)](_0x54ef6b,_0x55fa51),_0x55fa51;}catch(_0x4e1be9){return console[_0x577c92(0xe5)](_0x365cfb+_0x577c92(0x1a6)+_0x54ef6b+':',_0x4e1be9),null;}}self[_0x4c048a(0x109)](_0x4c048a(0x1c5),_0x11fe42=>{console['log'](_0x365cfb+'\x20INSTALL\x20event'),_0x11fe42['waitUntil'](((async()=>{const _0x3673ba=_0x6e6b;console[_0x3673ba(0xde)](_0x365cfb+_0x3673ba(0x126)),await self[_0x3673ba(0x1da)](),console[_0x3673ba(0xde)](_0x365cfb+_0x3673ba(0x10d));})()));}),self[_0x4c048a(0x109)](_0x4c048a(0x1a8),_0x5f0b86=>{const _0x5bafd0=_0x4c048a;console[_0x5bafd0(0xde)](_0x365cfb+_0x5bafd0(0x1d2)),_0x5f0b86[_0x5bafd0(0x1d3)](((async()=>{const _0x56edf6=_0x5bafd0;console[_0x56edf6(0xde)](_0x365cfb+_0x56edf6(0x18a)),await self[_0x56edf6(0x14f)][_0x56edf6(0x111)](),console[_0x56edf6(0xde)](_0x365cfb+_0x56edf6(0xc8));})()));}),self[_0x4c048a(0x109)](_0x4c048a(0x19b),_0x65f619=>{const _0x346c64=_0x4c048a,_0x1509b4=_0x65f619[_0x346c64(0x13c)];console[_0x346c64(0xde)](_0x365cfb+_0x346c64(0x17d),_0x1509b4);if(!_0x1509b4||typeof _0x1509b4!==_0x346c64(0x151)){console[_0x346c64(0xde)](_0x365cfb+'\x20Invalid\x20message\x20data\x20-\x20ignoring');return;}switch(_0x1509b4[_0x346c64(0x112)]){case _0x4b4a37:{console[_0x346c64(0xde)](_0x365cfb+_0x346c64(0xd6));const _0x298839=_0x1509b4['config'];_0x217891={'publishableKey':_0x298839['publishableKey']??'','callbackBypass':_0x298839[_0x346c64(0x1bc)]??[_0x346c64(0xf7)],'securityMode':_0x298839[_0x346c64(0x198)]??_0x346c64(0xf1)},console['log'](_0x365cfb+_0x346c64(0xda),JSON[_0x346c64(0xd3)](_0x217891,null,0x2));break;}case _0x498a93:console[_0x346c64(0xde)](_0x365cfb+_0x346c64(0x19d)),_0x217891={'publishableKey':'','callbackBypass':['/auth/callback'],'securityMode':_0x346c64(0xf1)},_0x146f33=null,_0x3af913=null,_0x50f924=null,_0x43ca71['clear'](),console[_0x346c64(0xde)](_0x365cfb+'\x20Config\x20reset');break;default:console[_0x346c64(0xde)](_0x365cfb+_0x346c64(0xe2)+_0x1509b4[_0x346c64(0x112)]);break;}}),self[_0x4c048a(0x109)](_0x4c048a(0xba),_0x5f4281=>{_0x5f4281['respondWith'](_0x54ab3b(_0x5f4281));});async function _0x54ab3b(_0x414a1f){const _0x5c1534=_0x4c048a,{request:_0x57540a}=_0x414a1f,_0x73c2d1=new URL(_0x57540a[_0x5c1534(0xa7)]),_0x434924=_0x57540a[_0x5c1534(0xc6)]===_0x5c1534(0x114),_0x3818c2=_0x434924||_0x73c2d1['origin']===self[_0x5c1534(0x152)][_0x5c1534(0xcf)];_0x3818c2&&(console[_0x5c1534(0xde)](_0x365cfb+_0x5c1534(0x1d9)+_0x57540a[_0x5c1534(0x11d)]+'\x20'+_0x73c2d1['pathname']+_0x73c2d1[_0x5c1534(0xdc)]),console[_0x5c1534(0xde)](_0x365cfb+'\x20\x20\x20mode:\x20'+_0x57540a['mode']+_0x5c1534(0xa9)+_0x57540a[_0x5c1534(0xb0)]));if(!_0x4fe200(_0x57540a))return _0x3818c2&&console['log'](_0x365cfb+_0x5c1534(0x15f)),fetch(_0x57540a);const _0x3a3d46=_0x434924?await _0x26d107(_0x73c2d1,_0x434924):_0x4aff06();_0x3818c2&&console[_0x5c1534(0xde)](_0x365cfb+'\x20\x20\x20enhancementUrl:\x20'+(_0x3a3d46[_0x5c1534(0xe7)]||_0x5c1534(0x179)));if(_0x2353c8(_0x3a3d46,_0x73c2d1[_0x5c1534(0x155)]))return _0x3818c2&&console[_0x5c1534(0xde)](_0x365cfb+_0x5c1534(0xdf)+_0x73c2d1['pathname']+'\x20matches\x20callbackBypass'),fetch(_0x57540a);if(_0x434924)return console[_0x5c1534(0xde)](_0x365cfb+_0x5c1534(0x116)),_0x23ceff(_0x57540a,_0x3a3d46);if(!_0x582d04(_0x3a3d46,_0x57540a,_0x73c2d1))return _0x3818c2&&console[_0x5c1534(0xde)](_0x365cfb+_0x5c1534(0xcb)),fetch(_0x57540a);console[_0x5c1534(0xde)](_0x365cfb+_0x5c1534(0x143)+_0x73c2d1[_0x5c1534(0x155)]);const _0x22b135=await _0x27fa37(_0x3a3d46,_0x57540a,_0x73c2d1);if(_0x22b135)return console['log'](_0x365cfb+_0x5c1534(0x1dd)+_0x73c2d1[_0x5c1534(0x155)]),_0x22b135;return console[_0x5c1534(0xde)](_0x365cfb+_0x5c1534(0x133)+_0x73c2d1[_0x5c1534(0x155)]+_0x5c1534(0x148)),fetch(_0x57540a);}async function _0x23ceff(_0x54d1d1,_0x11487f){const _0x3d8522=_0x4c048a,_0xa57364=new URL(_0x54d1d1[_0x3d8522(0xa7)]);console[_0x3d8522(0xde)](_0x365cfb+_0x3d8522(0xc5)+_0xa57364[_0x3d8522(0x155)]+_0xa57364[_0x3d8522(0xdc)]),console[_0x3d8522(0xde)](_0x365cfb+_0x3d8522(0x1de)+(_0x11487f['enhancementUrl']||_0x3d8522(0x179))),console[_0x3d8522(0xde)](_0x365cfb+_0x3d8522(0x1e2));const _0xcbb4d2=await fetch(_0x54d1d1);console[_0x3d8522(0xde)](_0x365cfb+'\x20\x20\x20Production\x20response:\x20'+_0xcbb4d2[_0x3d8522(0x1cf)]+'\x20'+_0xcbb4d2[_0x3d8522(0xcc)]),console[_0x3d8522(0xde)](_0x365cfb+_0x3d8522(0x110)+_0xcbb4d2[_0x3d8522(0xbc)][_0x3d8522(0xb3)]('content-type'));if(!_0x59f0f0(_0xcbb4d2))return console[_0x3d8522(0xde)](_0x365cfb+_0x3d8522(0x188)),_0xcbb4d2;console[_0x3d8522(0xde)](_0x365cfb+_0x3d8522(0x1b5));const _0x297ef3=_0x4f5856(_0xcbb4d2,_0x3d8522(0x146));console[_0x3d8522(0xde)](_0x365cfb+'\x20\x20\x20Checking\x20for\x20enhancement\x20document...');const _0x4f6724=await _0x74b1e8(_0x11487f,_0x54d1d1),_0x3af225=_0x4f6724?_0x3d8522(0x1d1):_0x3d8522(0x16d);console[_0x3d8522(0xde)](_0x365cfb+_0x3d8522(0x195)+_0x3af225);const _0x1a6353=_0x4f6724??_0x297ef3,_0x41a908=_0x3af225===_0x3d8522(0x1d1)||_0xa57364[_0x3d8522(0x183)]['has'](_0x3d8522(0x101))||_0xa57364['searchParams'][_0x3d8522(0x178)](_0x3d8522(0x1d1));console['log'](_0x365cfb+'\x20\x20\x20shouldInjectOverlay:\x20'+_0x41a908);try{console[_0x3d8522(0xde)](_0x365cfb+_0x3d8522(0xa5));const _0x45cb2f=await _0x42c738(_0x11487f,_0x1a6353,_0x3af225,_0x41a908);return console[_0x3d8522(0xde)](_0x365cfb+'\x20\x20\x20Document\x20rewritten\x20successfully'),_0x45cb2f;}catch(_0x41f3b6){return console[_0x3d8522(0xe5)](_0x365cfb+_0x3d8522(0x167),_0x41f3b6),_0x238ae2(_0x3d8522(0x171),'Failed\x20to\x20rewrite\x20document',_0x41f3b6),_0x1a6353;}}return _0x56fc7e(_0x3b2a1a);})());
@@ -1 +1 @@
1
- var _0x2b8228=_0x47c2;(function(_0x260337,_0x54d256){var _0x33c68c=_0x47c2,_0x5b6b26=_0x260337();while(!![]){try{var _0x267486=parseInt(_0x33c68c(0x14d))/0x1*(parseInt(_0x33c68c(0x143))/0x2)+-parseInt(_0x33c68c(0x148))/0x3*(-parseInt(_0x33c68c(0x14c))/0x4)+parseInt(_0x33c68c(0x136))/0x5*(-parseInt(_0x33c68c(0x13d))/0x6)+-parseInt(_0x33c68c(0x152))/0x7*(-parseInt(_0x33c68c(0x137))/0x8)+-parseInt(_0x33c68c(0x155))/0x9+parseInt(_0x33c68c(0x150))/0xa*(parseInt(_0x33c68c(0x146))/0xb)+-parseInt(_0x33c68c(0x147))/0xc;if(_0x267486===_0x54d256)break;else _0x5b6b26['push'](_0x5b6b26['shift']());}catch(_0x2cf63d){_0x5b6b26['push'](_0x5b6b26['shift']());}}}(_0xac94,0xb97f8));import{fileURLToPath}from'url';function _0xac94(){var _0x122cd1=['4cBMiSw','application/javascript','use','11DYOmhJ','18233040tHweWZ','3EsGLoJ','utf-8','Content-Type','stringify','1265180vtyEuM','435439qDdlzR','<head$1>','emitFile','9622430StTATQ','callbackBypass','427uqXCOD','end','../assets/enhance-runtime.js','3491820ErYJQk','setHeader','115RAjWfk','180680LTOgrj','middlewares','/sw-enhance.js','assets/enhance-runtime.js','publishableKey','url','224322AZBXIk','enhance-sandbox','replace','asset','/assets/enhance-runtime.js','sw-enhance.js'];_0xac94=function(){return _0x122cd1;};return _0xac94();}import{readFile}from'fs/promises';function _0x47c2(_0x2b18d5,_0x158203){_0x2b18d5=_0x2b18d5-0x136;var _0xac9483=_0xac94();var _0x47c253=_0xac9483[_0x2b18d5];return _0x47c253;}var runtimePath=fileURLToPath(new URL(_0x2b8228(0x154),import.meta.url)),swPath=fileURLToPath(new URL('../sw-enhance.js',import.meta.url)),RUNTIME_URL=_0x2b8228(0x141),SW_URL=_0x2b8228(0x139);function buildInitScript(_0x181c7e){var _0x5771c5=_0x2b8228;const _0x473e82={'publishableKey':_0x181c7e[_0x5771c5(0x13b)],'callbackBypass':_0x181c7e[_0x5771c5(0x151)],'__development':_0x181c7e['__development']},_0x8200de=JSON[_0x5771c5(0x14b)](_0x473e82);return'<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>\x0aimport\x20{\x20Enhance\x20}\x20from\x20\x22'+RUNTIME_URL+'\x22;\x0aEnhance.init('+_0x8200de+');\x0a</script>';}var enhance=_0x39bd97=>{var _0x58dc1c=_0x2b8228;let _0x4fa4a8=null,_0xb29a8f=null;async function _0x12e6cb(){var _0x84d460=_0x47c2;!_0x4fa4a8&&(_0x4fa4a8=await readFile(runtimePath,_0x84d460(0x149))),!_0xb29a8f&&(_0xb29a8f=await readFile(swPath,_0x84d460(0x149)));}return{'name':_0x58dc1c(0x13e),'configureServer'(_0x231777){var _0x5d6f81=_0x58dc1c;_0x231777[_0x5d6f81(0x138)]['use'](async(_0x2ceef9,_0x316ab3,_0x16dae0)=>{var _0x349698=_0x5d6f81;if(_0x2ceef9['url']===RUNTIME_URL||_0x2ceef9[_0x349698(0x13c)]===SW_URL){await _0x12e6cb(),_0x316ab3[_0x349698(0x156)](_0x349698(0x14a),_0x349698(0x144)),_0x316ab3[_0x349698(0x153)](_0x2ceef9[_0x349698(0x13c)]===RUNTIME_URL?_0x4fa4a8:_0xb29a8f);return;}_0x16dae0();});},'configurePreviewServer'(_0xe85632){var _0x506c21=_0x58dc1c;_0xe85632[_0x506c21(0x138)][_0x506c21(0x145)](async(_0x59925d,_0x3e7001,_0x23b279)=>{var _0x2d49ea=_0x506c21;if(_0x59925d[_0x2d49ea(0x13c)]===RUNTIME_URL||_0x59925d[_0x2d49ea(0x13c)]===SW_URL){await _0x12e6cb(),_0x3e7001[_0x2d49ea(0x156)]('Content-Type',_0x2d49ea(0x144)),_0x3e7001[_0x2d49ea(0x153)](_0x59925d['url']===RUNTIME_URL?_0x4fa4a8:_0xb29a8f);return;}_0x23b279();});},async 'generateBundle'(){var _0x46df81=_0x58dc1c;await _0x12e6cb(),this['emitFile']({'type':_0x46df81(0x140),'fileName':_0x46df81(0x13a),'source':_0x4fa4a8}),this[_0x46df81(0x14f)]({'type':_0x46df81(0x140),'fileName':_0x46df81(0x142),'source':_0xb29a8f});},'transformIndexHtml'(_0x4b8e8c){var _0x4fd8f1=_0x58dc1c;const _0x5625db=buildInitScript(_0x39bd97);return _0x4b8e8c[_0x4fd8f1(0x13f)](/<head([^>]*)>/,_0x4fd8f1(0x14e)+_0x5625db);}};};export{enhance};
1
+ var _0x11f347=_0x4637;(function(_0x48a0d4,_0xc262b){var _0x454d5e=_0x4637,_0x27327a=_0x48a0d4();while(!![]){try{var _0x4766ed=parseInt(_0x454d5e(0xec))/0x1+-parseInt(_0x454d5e(0xd9))/0x2+parseInt(_0x454d5e(0xdf))/0x3+parseInt(_0x454d5e(0xee))/0x4+parseInt(_0x454d5e(0xf0))/0x5+parseInt(_0x454d5e(0xda))/0x6+-parseInt(_0x454d5e(0xe3))/0x7;if(_0x4766ed===_0xc262b)break;else _0x27327a['push'](_0x27327a['shift']());}catch(_0x1ced7b){_0x27327a['push'](_0x27327a['shift']());}}}(_0x56ad,0x914fd));function _0x4637(_0x5f4263,_0x1d19d5){_0x5f4263=_0x5f4263-0xd6;var _0x56ad33=_0x56ad();var _0x46370f=_0x56ad33[_0x5f4263];return _0x46370f;}import{fileURLToPath}from'url';function _0x56ad(){var _0x38ea19=['asset',');\x0a</script>','url','stringify','224534PxqMNK','7099158FVzKXO','__development','../assets/enhance-runtime.js','utf-8','callbackBypass','1435941wLqKVR','publishableKey','/assets/enhance-runtime.js','setHeader','16328900DRdOMK','assets/enhance-runtime.js','Content-Type','use','application/javascript','/sw-enhance.js','\x22;\x0aEnhance.init(','<script\x20type=\x22module\x22\x20data-enhance-runtime-bootstrap>\x0aimport\x20{\x20Enhance\x20}\x20from\x20\x22','end','258853SeKBeo','emitFile','631468diiGIS','middlewares','4808020rJiJwi','enhance-sandbox','../sw-enhance.js'];_0x56ad=function(){return _0x38ea19;};return _0x56ad();}import{readFile}from'fs/promises';var runtimePath=fileURLToPath(new URL(_0x11f347(0xdc),import.meta.url)),swPath=fileURLToPath(new URL(_0x11f347(0xf2),import.meta.url)),RUNTIME_URL=_0x11f347(0xe1),SW_URL=_0x11f347(0xe8);function buildInitScript(_0xe09a7f){var _0x1c8746=_0x11f347;const _0x4ca4dc={'publishableKey':_0xe09a7f[_0x1c8746(0xe0)],'callbackBypass':_0xe09a7f[_0x1c8746(0xde)],'__development':_0xe09a7f[_0x1c8746(0xdb)]},_0x28d55b=JSON[_0x1c8746(0xd8)](_0x4ca4dc);return _0x1c8746(0xea)+RUNTIME_URL+_0x1c8746(0xe9)+_0x28d55b+_0x1c8746(0xd6);}var enhance=_0x1395a1=>{var _0x27c120=_0x11f347;let _0x2aabfe=null,_0x48515a=null;async function _0x162c3c(){var _0x4315de=_0x4637;!_0x2aabfe&&(_0x2aabfe=await readFile(runtimePath,_0x4315de(0xdd))),!_0x48515a&&(_0x48515a=await readFile(swPath,'utf-8'));}return{'name':_0x27c120(0xf1),'configureServer'(_0x164ea1){var _0xb341ad=_0x27c120;_0x164ea1[_0xb341ad(0xef)][_0xb341ad(0xe6)](async(_0x25bc5b,_0x5b8953,_0x355da6)=>{var _0x8c4079=_0xb341ad;if(_0x25bc5b[_0x8c4079(0xd7)]===RUNTIME_URL||_0x25bc5b[_0x8c4079(0xd7)]===SW_URL){await _0x162c3c(),_0x5b8953[_0x8c4079(0xe2)](_0x8c4079(0xe5),_0x8c4079(0xe7)),_0x5b8953[_0x8c4079(0xeb)](_0x25bc5b[_0x8c4079(0xd7)]===RUNTIME_URL?_0x2aabfe:_0x48515a);return;}_0x355da6();});},'configurePreviewServer'(_0x223685){_0x223685['middlewares']['use'](async(_0x2b9070,_0xc1f1cc,_0x3b0d8c)=>{var _0x2c2c59=_0x4637;if(_0x2b9070[_0x2c2c59(0xd7)]===RUNTIME_URL||_0x2b9070[_0x2c2c59(0xd7)]===SW_URL){await _0x162c3c(),_0xc1f1cc[_0x2c2c59(0xe2)](_0x2c2c59(0xe5),_0x2c2c59(0xe7)),_0xc1f1cc[_0x2c2c59(0xeb)](_0x2b9070[_0x2c2c59(0xd7)]===RUNTIME_URL?_0x2aabfe:_0x48515a);return;}_0x3b0d8c();});},async 'generateBundle'(){var _0x1c6ccd=_0x27c120;await _0x162c3c(),this['emitFile']({'type':_0x1c6ccd(0xf3),'fileName':_0x1c6ccd(0xe4),'source':_0x2aabfe}),this[_0x1c6ccd(0xed)]({'type':_0x1c6ccd(0xf3),'fileName':'sw-enhance.js','source':_0x48515a});},'transformIndexHtml'(_0x3bb552){const _0x5bf8e1=buildInitScript(_0x1395a1);return _0x3bb552['replace'](/<head([^>]*)>/,'<head$1>'+_0x5bf8e1);}};};export{enhance};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@enhance-eng/sandbox",
3
- "version": "0.3.21-beta.a1057ef",
3
+ "version": "0.3.21-dev.0fac791",
4
4
  "type": "module",
5
5
  "description": "Enhance preview bootstrap and tooling package.",
6
6
  "license": "MIT",