@ranger-testing/ranger-cli 2.5.4-alpha.8c24bb2-15 → 2.5.4-alpha.9360c2a-16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/mcpBootstrap.js +1 -1
  25. package/build/commands/migrateProfile.js +1 -1
  26. package/build/commands/setup/claude.js +1 -1
  27. package/build/commands/setup/opencode.js +1 -1
  28. package/build/commands/setupCi.js +1 -1
  29. package/build/commands/skillup.js +1 -1
  30. package/build/commands/start.js +1 -1
  31. package/build/commands/status.js +1 -1
  32. package/build/commands/update.js +1 -1
  33. package/build/commands/updateEnv.js +1 -1
  34. package/build/commands/useEnv.js +1 -1
  35. package/build/commands/utils/activeProfile.js +1 -1
  36. package/build/commands/utils/agentEnv.js +1 -1
  37. package/build/commands/utils/browserSessionsApi.js +1 -1
  38. package/build/commands/utils/claudeConfig.js +1 -1
  39. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  40. package/build/commands/utils/claudePlugin.js +1 -1
  41. package/build/commands/utils/cloudProfile.js +1 -1
  42. package/build/commands/utils/cloudProfileSession.js +1 -1
  43. package/build/commands/utils/crypto.js +1 -1
  44. package/build/commands/utils/desirePathLog.js +1 -1
  45. package/build/commands/utils/deviceAuth.js +1 -1
  46. package/build/commands/utils/environment.js +1 -1
  47. package/build/commands/utils/featureApi.js +1 -1
  48. package/build/commands/utils/fixWebmDuration.js +1 -1
  49. package/build/commands/utils/gitTracked.js +1 -1
  50. package/build/commands/utils/keychain.js +1 -1
  51. package/build/commands/utils/legacyWarning.js +1 -1
  52. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  53. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  54. package/build/commands/utils/mcpImageBase64.js +1 -1
  55. package/build/commands/utils/model.js +1 -1
  56. package/build/commands/utils/opencodeConfig.js +1 -1
  57. package/build/commands/utils/playwrightCli.js +1 -1
  58. package/build/commands/utils/profileMessages.js +1 -1
  59. package/build/commands/utils/profileSetupBanner.js +1 -1
  60. package/build/commands/utils/projectsConfig.js +1 -1
  61. package/build/commands/utils/rangerConfig.js +1 -1
  62. package/build/commands/utils/rangerRoot.js +1 -1
  63. package/build/commands/utils/resolveProfileContext.js +1 -1
  64. package/build/commands/utils/resolveProfileUrl.js +1 -1
  65. package/build/commands/utils/retry.js +1 -1
  66. package/build/commands/utils/sessionCache.js +1 -1
  67. package/build/commands/utils/settings.js +1 -1
  68. package/build/commands/utils/skillContent.js +1 -1
  69. package/build/commands/utils/skills.js +1 -1
  70. package/build/commands/utils/stitchWebmFiles.js +1 -1
  71. package/build/commands/utils/telemetry.js +1 -1
  72. package/build/commands/utils/tokenRefresh.js +1 -1
  73. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  74. package/build/commands/utils/userApi.js +1 -1
  75. package/build/commands/utils/version.js +1 -1
  76. package/build/commands/verifyFeature.js +1 -1
  77. package/build/commands/verifyFeatureCli.js +1 -1
  78. package/package.json +3 -2
@@ -1 +1 @@
1
- const _0x2d7e78=_0x525e;(function(_0x566b3d,_0x39f443){const _0x429862=_0x525e,_0x3537c1=_0x566b3d();while(!![]){try{const _0x3cb4dd=-parseInt(_0x429862(0x108))/0x1+parseInt(_0x429862(0xdd))/0x2*(-parseInt(_0x429862(0xe2))/0x3)+parseInt(_0x429862(0xde))/0x4+parseInt(_0x429862(0xdf))/0x5+-parseInt(_0x429862(0xec))/0x6+parseInt(_0x429862(0xf2))/0x7+parseInt(_0x429862(0xfc))/0x8*(parseInt(_0x429862(0xfa))/0x9);if(_0x3cb4dd===_0x39f443)break;else _0x3537c1['push'](_0x3537c1['shift']());}catch(_0x49cbef){_0x3537c1['push'](_0x3537c1['shift']());}}}(_0x130a,0x74a3e));import*as _0x107c3f from'fs';import*as _0x594d83 from'path';import*as _0x28578d from'os';import{execSync}from'child_process';const CACHE_FILE=_0x594d83['join'](_0x28578d['homedir'](),_0x2d7e78(0xf5),'.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x30ca84=_0x2d7e78,_0x17d417={'wpQqa':function(_0x3f86a3){return _0x3f86a3();}};try{if(_0x107c3f['existsSync'](CACHE_FILE)){const _0xb3d234=JSON['parse'](_0x107c3f['readFileSync'](CACHE_FILE,_0x30ca84(0xed)));return{'version':0x3,'sessions':_0xb3d234[_0x30ca84(0xe7)]||{},'branches':_0xb3d234['branches']||{},'lastEnabledSessionClearedAt':_0xb3d234['lastEnabledSessionClearedAt']};}}catch{}return _0x17d417[_0x30ca84(0xdb)](createEmptyCache);}function saveCache(_0x6f0af8){const _0x508a91=_0x2d7e78;try{const _0x2aa9d4=_0x594d83[_0x508a91(0x10b)](CACHE_FILE);!_0x107c3f[_0x508a91(0xfd)](_0x2aa9d4)&&_0x107c3f[_0x508a91(0xfe)](_0x2aa9d4,{'recursive':!![]}),_0x107c3f[_0x508a91(0xe6)](CACHE_FILE,JSON['stringify'](_0x6f0af8,null,0x2));}catch{}}export function getCurrentBranch(){const _0x1069f0=_0x2d7e78,_0x320327={'YmCdb':_0x1069f0(0xe3),'KvvDs':'pipe','lzzIb':_0x1069f0(0xf8)};try{const _0x7cc4a=execSync(_0x320327[_0x1069f0(0xe9)],{'encoding':'utf-8','stdio':[_0x320327['KvvDs'],_0x320327['KvvDs'],_0x320327[_0x1069f0(0xe4)]]})[_0x1069f0(0xe5)]();if(!_0x7cc4a||_0x7cc4a===_0x320327['lzzIb'])return null;return _0x7cc4a;}catch{return null;}}export function enableBranch(_0x3d076e){const _0x8a28d7=_0x2d7e78,_0x406ed1={'cxCgc':function(_0x3781ed){return _0x3781ed();},'TefBv':function(_0x57c828,_0x523883){return _0x57c828(_0x523883);}},_0x57e54a=_0x406ed1['cxCgc'](loadCache);_0x57e54a['branches'][_0x3d076e]=!![],_0x406ed1[_0x8a28d7(0xda)](saveCache,_0x57e54a);}export function disableBranch(_0x1e7ab3){const _0x4ae85c=_0x2d7e78,_0x292a7f={'ADtyU':function(_0x1f1846,_0x11acf7){return _0x1f1846(_0x11acf7);}},_0x45fe15=loadCache();delete _0x45fe15[_0x4ae85c(0xd9)][_0x1e7ab3],_0x292a7f[_0x4ae85c(0xd8)](saveCache,_0x45fe15);}export function isBranchEnabled(_0x1be1ea){const _0x3ea00c=_0x2d7e78,_0x5db387=loadCache();return _0x5db387[_0x3ea00c(0xd9)][_0x1be1ea]===!![];}function getOrCreateSession(_0x579970,_0x5911d7){const _0x5df254=_0x2d7e78;return!_0x579970['sessions'][_0x5911d7]&&(_0x579970[_0x5df254(0xe7)][_0x5911d7]={}),_0x579970[_0x5df254(0xe7)][_0x5911d7];}export function enableSession(_0x4b42a6){const _0x290575=_0x2d7e78,_0x45af01={'FrIGd':function(_0x356f1a){return _0x356f1a();},'NfWFd':function(_0x4b678f,_0x97314d,_0x88105e){return _0x4b678f(_0x97314d,_0x88105e);},'wqZkb':function(_0x450549,_0xf8ac14){return _0x450549!==_0xf8ac14;}},_0x50eeba=_0x45af01['FrIGd'](loadCache),_0x1797f5=_0x45af01[_0x290575(0x102)](getOrCreateSession,_0x50eeba,_0x4b42a6);_0x1797f5['enabled']=!![];const _0x48cf0f=_0x45af01[_0x290575(0xeb)](getCurrentBranch);_0x48cf0f&&_0x45af01['wqZkb'](_0x48cf0f,_0x290575(0xf3))&&_0x48cf0f!==_0x290575(0x109)&&(_0x50eeba[_0x290575(0xd9)][_0x48cf0f]=!![],_0x1797f5['currentBranch']=_0x48cf0f),saveCache(_0x50eeba);}export function isSessionEnabled(_0x1374c8){const _0x1ba524=_0x2d7e78,_0x2623d8={'mmHUl':function(_0x3b56f5){return _0x3b56f5();},'sMEFB':function(_0x2d954f){return _0x2d954f();},'NBgZC':function(_0x29d48f,_0x9abeab){return _0x29d48f===_0x9abeab;},'eTlil':function(_0x22aace,_0x5398e0){return _0x22aace||_0x5398e0;}},_0x2c1e3d=_0x2623d8[_0x1ba524(0xf9)](loadCache),_0x90cf65=_0x2623d8['sMEFB'](getCurrentBranch);if(!_0x90cf65||_0x90cf65==='main'||_0x90cf65==='master')return _0x2c1e3d['sessions'][_0x1374c8]?.['enabled']===!![];const _0x294108=_0x2623d8['NBgZC'](_0x2c1e3d[_0x1ba524(0xd9)][_0x90cf65],!![]),_0x1ddf41=_0x2c1e3d[_0x1ba524(0xe7)][_0x1374c8]?.['enabled']===!![];return _0x2623d8[_0x1ba524(0x10c)](_0x294108,_0x1ddf41);}export function disableSession(_0x535490){const _0x5f3cd8=_0x2d7e78,_0x5729e3={'motoE':function(_0x375024){return _0x375024();}},_0x519a88=_0x5729e3['motoE'](loadCache),_0x1cd2d2=getOrCreateSession(_0x519a88,_0x535490);_0x1cd2d2[_0x5f3cd8(0x104)]=![],saveCache(_0x519a88);}export function updateBranchTracking(_0x24ae08){const _0x336e29=_0x2d7e78,_0x273291={'YRbMP':function(_0x30055e){return _0x30055e();},'YGfRd':function(_0x28c2a3){return _0x28c2a3();},'XmhIi':function(_0x4c2459,_0x33ba3b){return _0x4c2459===_0x33ba3b;},'NJaiY':_0x336e29(0x109),'qdGiM':function(_0x2202e5,_0xc9042f){return _0x2202e5!==_0xc9042f;},'kNqWF':function(_0xd3a85f,_0xbefc10){return _0xd3a85f(_0xbefc10);}},_0x41d417=_0x273291[_0x336e29(0x106)](loadCache),_0x49dc5a=_0x41d417[_0x336e29(0xe7)][_0x24ae08];if(!_0x49dc5a?.['enabled'])return;const _0x7b2f33=_0x273291['YGfRd'](getCurrentBranch);if(!_0x7b2f33||_0x273291['XmhIi'](_0x7b2f33,_0x336e29(0xf3))||_0x273291[_0x336e29(0xff)](_0x7b2f33,_0x273291['NJaiY']))return;_0x273291['qdGiM'](_0x49dc5a['currentBranch'],_0x7b2f33)&&(_0x41d417[_0x336e29(0xd9)][_0x7b2f33]=!![],_0x49dc5a[_0x336e29(0xfb)]=_0x7b2f33,_0x273291['kNqWF'](saveCache,_0x41d417));}export function initBranchTracking(_0x6d8677){const _0x499db9=_0x2d7e78,_0x40de50={'TXjsS':function(_0x53271d){return _0x53271d();},'bUMtz':function(_0x2d2547,_0x3d6b0b){return _0x2d2547===_0x3d6b0b;},'SMyIp':_0x499db9(0xf3),'ZHeEC':function(_0x3b5e80,_0x257d44,_0x763663){return _0x3b5e80(_0x257d44,_0x763663);},'IQvKR':function(_0xbf5bc0,_0x4a5304){return _0xbf5bc0(_0x4a5304);}},_0x567886=loadCache(),_0x2c8197=_0x40de50['TXjsS'](getCurrentBranch);if(!_0x2c8197||_0x40de50['bUMtz'](_0x2c8197,_0x40de50[_0x499db9(0xe1)])||_0x40de50[_0x499db9(0x10a)](_0x2c8197,_0x499db9(0x109)))return;if(_0x567886['branches'][_0x2c8197]===!![]){const _0x51b645=_0x40de50['ZHeEC'](getOrCreateSession,_0x567886,_0x6d8677);_0x51b645['enabled']=!![],_0x51b645['currentBranch']=_0x2c8197,_0x40de50[_0x499db9(0xf7)](saveCache,_0x567886);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x14a651){const _0x101065=_0x2d7e78,_0x264031={'TVMuf':function(_0x1ddc53){return _0x1ddc53();}},_0xcf83e2=_0x264031['TVMuf'](loadCache),_0x410883=_0xcf83e2[_0x101065(0xe7)][_0x14a651];_0x410883?.[_0x101065(0x104)]&&(_0xcf83e2[_0x101065(0xf6)]=Date[_0x101065(0xf4)](),saveCache(_0xcf83e2));}export function shouldAutoEnableAfterClear(_0x21857d){const _0x14c9a0=_0x2d7e78,_0x3687a0={'BXVXx':function(_0x1aac8f,_0x156fc1){return _0x1aac8f!==_0x156fc1;},'sCAHb':function(_0x220251,_0x28fc32){return _0x220251-_0x28fc32;},'Bwpey':function(_0x2340d0,_0x1f987a){return _0x2340d0<=_0x1f987a;}};if(_0x3687a0['BXVXx'](_0x21857d,_0x14c9a0(0xdc)))return![];const _0x1d541e=loadCache(),_0x504cf2=_0x1d541e[_0x14c9a0(0xf6)];if(!_0x504cf2)return![];const _0xbe8aac=_0x3687a0['sCAHb'](Date[_0x14c9a0(0xf4)](),_0x504cf2);return _0x3687a0[_0x14c9a0(0xe0)](_0xbe8aac,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x5399c3){const _0x530af8=_0x2d7e78,_0x5a9d5a={'cpuWN':function(_0x438f0d){return _0x438f0d();},'QqTrv':function(_0x336c28,_0x33e217,_0x3b0286){return _0x336c28(_0x33e217,_0x3b0286);},'hIfuu':function(_0x398263,_0x5e574d){return _0x398263!==_0x5e574d;},'gADdr':'master','jJFOk':function(_0x103b69,_0x5c69f4){return _0x103b69(_0x5c69f4);}},_0x9e2167=_0x5a9d5a['cpuWN'](loadCache),_0xc232d3=_0x5a9d5a[_0x530af8(0xee)](getOrCreateSession,_0x9e2167,_0x5399c3);_0xc232d3[_0x530af8(0x104)]=!![];const _0x458548=_0x5a9d5a[_0x530af8(0x107)](getCurrentBranch);_0x458548&&_0x5a9d5a['hIfuu'](_0x458548,'main')&&_0x458548!==_0x5a9d5a['gADdr']&&(_0xc232d3['currentBranch']=_0x458548),delete _0x9e2167[_0x530af8(0xf6)],_0x5a9d5a[_0x530af8(0x100)](saveCache,_0x9e2167);}function _0x130a(){const _0xb3c33c=['4291084JklJXH','main','now','.claude','lastEnabledSessionClearedAt','IQvKR','HEAD','mmHUl','7798698REnbNb','currentBranch','8ktFsDW','existsSync','mkdirSync','XmhIi','jJFOk','NMHNQ','NfWFd','toISOString','enabled','lastStopReminderAt','YRbMP','cpuWN','730140HFZftP','master','bUMtz','dirname','eTlil','ADtyU','branches','TefBv','wpQqa','clear','148422GKSmWB','95384eKmXZX','2221915otwIOe','Bwpey','SMyIp','9bVYnDW','git\x20rev-parse\x20--abbrev-ref\x20HEAD','KvvDs','trim','writeFileSync','sessions','QdaBU','YmCdb','featureId','FrIGd','3103392cKYyYa','utf-8','QqTrv','lastPlanReminderAt','jxsBU','registeredAt'];_0x130a=function(){return _0xb3c33c;};return _0x130a();}function _0x525e(_0x498432,_0x353a28){_0x498432=_0x498432-0xd8;const _0x130a3f=_0x130a();let _0x525e20=_0x130a3f[_0x498432];return _0x525e20;}export function registerSession(_0x5e0cb4,_0x4dc996){const _0x417394=_0x2d7e78,_0x3a545e={'jxsBU':function(_0x184304){return _0x184304();},'VAOYv':function(_0x123e41,_0x34b4d8){return _0x123e41(_0x34b4d8);}},_0x42b709=_0x3a545e[_0x417394(0xf0)](loadCache),_0x4ca6a3=getOrCreateSession(_0x42b709,_0x5e0cb4);_0x4ca6a3[_0x417394(0xea)]=_0x4dc996,_0x4ca6a3[_0x417394(0xf1)]=new Date()[_0x417394(0x103)](),_0x3a545e['VAOYv'](saveCache,_0x42b709);}export function getSessionEntry(_0xcb257d){const _0x1e57d8=_0x2d7e78,_0x1ae414=loadCache(),_0x3296d9=_0x1ae414['sessions'][_0xcb257d];if(_0x3296d9?.[_0x1e57d8(0xea)]&&_0x3296d9?.['registeredAt'])return{'featureId':_0x3296d9[_0x1e57d8(0xea)],'registeredAt':_0x3296d9[_0x1e57d8(0xf1)]};return null;}export function unregisterSession(_0x239afa){const _0x3babf7=_0x2d7e78,_0x598f59={'rgrQq':function(_0x212e3c){return _0x212e3c();}},_0x5a1980=_0x598f59['rgrQq'](loadCache),_0x2c25b7=_0x5a1980[_0x3babf7(0xe7)][_0x239afa];_0x2c25b7&&(delete _0x2c25b7['featureId'],delete _0x2c25b7[_0x3babf7(0xf1)],saveCache(_0x5a1980));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x36e8ab){const _0x54b063=_0x2d7e78,_0x500d0d={'DXwZC':function(_0x2458c1,_0x1e9138,_0x30c37e){return _0x2458c1(_0x1e9138,_0x30c37e);},'QdaBU':function(_0x5d7a63,_0x151024){return _0x5d7a63-_0x151024;}},_0x19790b=loadCache(),_0x1e3c36=_0x500d0d['DXwZC'](getOrCreateSession,_0x19790b,_0x36e8ab),_0x7077ab=_0x1e3c36['lastPlanReminderAt']||0x0,_0x51261a=Date[_0x54b063(0xf4)]();if(_0x500d0d[_0x54b063(0xe8)](_0x51261a,_0x7077ab)>=PLAN_REMINDER_INTERVAL_MS)return _0x1e3c36[_0x54b063(0xef)]=_0x51261a,saveCache(_0x19790b),!![];return![];}export function shouldShowStopReminder(_0x44a709){const _0x20bedb=_0x2d7e78,_0x546f54={'sGYhe':function(_0x5944ac,_0x335b7a){return _0x5944ac(_0x335b7a);}},_0x196440=loadCache(),_0x87402e=getOrCreateSession(_0x196440,_0x44a709),_0x586791=_0x87402e['lastStopReminderAt']||0x0,_0x5383f1=Date['now']();if(_0x5383f1-_0x586791>=STOP_REMINDER_INTERVAL_MS)return _0x87402e[_0x20bedb(0x105)]=_0x5383f1,_0x546f54['sGYhe'](saveCache,_0x196440),!![];return![];}export function hasSessionBeenPrompted(_0x5c6752){const _0x6c31a0=loadCache();return _0x6c31a0['sessions'][_0x5c6752]?.['prompted']===!![];}export function markSessionPrompted(_0x56a2c4){const _0x1ebab4=_0x2d7e78,_0x21a1c6={'NMHNQ':function(_0x44c65c,_0x329ff0){return _0x44c65c(_0x329ff0);}},_0x75390e=loadCache(),_0x35e76c=getOrCreateSession(_0x75390e,_0x56a2c4);_0x35e76c['prompted']=!![],_0x21a1c6[_0x1ebab4(0x101)](saveCache,_0x75390e);}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0x338361=_0x3db5;function _0x41fe(){const _0x1555ad=['6649992MhvnRC','trim','54848UraCuI','STHuH','CCgzu','504cgNfqn','mqtYn','129367JMIjZt','2890699ajaEuh','589980OlSCOI','featureId','readFileSync','prompted','278820kSBbHJ','registeredAt','QTSng','doesI','HWJCt','lastEnabledSessionClearedAt','lDUnH','18cRUDLJ','35SwMNiV','ZoHLJ','mkdirSync','TidTU','IqMHR','.claude','eonsO','enabled','hHyhu','sessions','AIdfd','pipe','lxwsI','lastStopReminderAt','tZiFB','main','xBVGG','now','utf-8','.ranger_cache.json','sVPnv','clear','branches','master','srWho','UERKl','533702IlhMbv','946NTuZQh'];_0x41fe=function(){return _0x1555ad;};return _0x41fe();}(function(_0x4618dc,_0x6d26cc){const _0xf968c5=_0x3db5,_0x486006=_0x4618dc();while(!![]){try{const _0x5d4865=-parseInt(_0xf968c5(0xd9))/0x1+-parseInt(_0xf968c5(0xd0))/0x2*(parseInt(_0xf968c5(0xe6))/0x3)+parseInt(_0xf968c5(0xd2))/0x4+-parseInt(_0xf968c5(0xe7))/0x5*(parseInt(_0xf968c5(0xdb))/0x6)+-parseInt(_0xf968c5(0xda))/0x7+-parseInt(_0xf968c5(0xd4))/0x8*(parseInt(_0xf968c5(0xd7))/0x9)+-parseInt(_0xf968c5(0xdf))/0xa*(-parseInt(_0xf968c5(0xd1))/0xb);if(_0x5d4865===_0x6d26cc)break;else _0x486006['push'](_0x486006['shift']());}catch(_0x5d1607){_0x486006['push'](_0x486006['shift']());}}}(_0x41fe,0xce382));import*as _0x54efd3 from'fs';import*as _0x4bcdee from'path';import*as _0x324e53 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x4bcdee['join'](_0x324e53['homedir'](),_0x338361(0xec),_0x338361(0xfa));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x1af899=_0x338361,_0xcce4ea={'Myqkq':_0x1af899(0xf9),'dSqQo':function(_0x213525){return _0x213525();}};try{if(_0x54efd3['existsSync'](CACHE_FILE)){const _0x3cbd86=JSON['parse'](_0x54efd3[_0x1af899(0xdd)](CACHE_FILE,_0xcce4ea['Myqkq']));return{'version':0x3,'sessions':_0x3cbd86['sessions']||{},'branches':_0x3cbd86[_0x1af899(0xfd)]||{},'lastEnabledSessionClearedAt':_0x3cbd86[_0x1af899(0xe4)]};}}catch{}return _0xcce4ea['dSqQo'](createEmptyCache);}function saveCache(_0x272e06){const _0xbf5a7f=_0x338361;try{const _0x29ae48=_0x4bcdee['dirname'](CACHE_FILE);!_0x54efd3['existsSync'](_0x29ae48)&&_0x54efd3[_0xbf5a7f(0xe9)](_0x29ae48,{'recursive':!![]}),_0x54efd3['writeFileSync'](CACHE_FILE,JSON['stringify'](_0x272e06,null,0x2));}catch{}}export function getCurrentBranch(){const _0xaacac1=_0x338361,_0x46263c={'sVPnv':function(_0x146b9a,_0x506fd3,_0x60a5f){return _0x146b9a(_0x506fd3,_0x60a5f);},'pZkAl':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','tZiFB':function(_0x3962a0,_0x545ff4){return _0x3962a0===_0x545ff4;}};try{const _0x12cb75=_0x46263c[_0xaacac1(0xfb)](execSync,_0x46263c['pZkAl'],{'encoding':'utf-8','stdio':[_0xaacac1(0xf2),'pipe',_0xaacac1(0xf2)]})[_0xaacac1(0xd3)]();if(!_0x12cb75||_0x46263c[_0xaacac1(0xf5)](_0x12cb75,'HEAD'))return null;return _0x12cb75;}catch{return null;}}export function enableBranch(_0x47588a){const _0x3b8ff0=_0x338361,_0x3468dc={'QTSng':function(_0xfada9a){return _0xfada9a();}},_0x712da6=_0x3468dc[_0x3b8ff0(0xe1)](loadCache);_0x712da6[_0x3b8ff0(0xfd)][_0x47588a]=!![],saveCache(_0x712da6);}export function disableBranch(_0x419c0c){const _0x186b36=_0x338361,_0x391150=loadCache();delete _0x391150[_0x186b36(0xfd)][_0x419c0c],saveCache(_0x391150);}export function isBranchEnabled(_0x10ddf0){const _0xa750f2=_0x338361,_0xa51067={'lxwsI':function(_0x4052f4){return _0x4052f4();}},_0x280842=_0xa51067[_0xa750f2(0xf3)](loadCache);return _0x280842['branches'][_0x10ddf0]===!![];}function getOrCreateSession(_0x11c316,_0x5b6942){const _0x2c9d5e=_0x338361;return!_0x11c316[_0x2c9d5e(0xf0)][_0x5b6942]&&(_0x11c316[_0x2c9d5e(0xf0)][_0x5b6942]={}),_0x11c316['sessions'][_0x5b6942];}export function enableSession(_0x1044e7){const _0x251a47=_0x338361,_0x4f0b31={'TidTU':function(_0x14a919,_0x5e68b0){return _0x14a919!==_0x5e68b0;},'mqtYn':'main','qhhqr':function(_0x3626be,_0x489a86){return _0x3626be(_0x489a86);}},_0x251499=loadCache(),_0x1da909=getOrCreateSession(_0x251499,_0x1044e7);_0x1da909['enabled']=!![];const _0x9f4310=getCurrentBranch();_0x9f4310&&_0x4f0b31[_0x251a47(0xea)](_0x9f4310,_0x4f0b31[_0x251a47(0xd8)])&&_0x9f4310!=='master'&&(_0x251499[_0x251a47(0xfd)][_0x9f4310]=!![],_0x1da909['currentBranch']=_0x9f4310),_0x4f0b31['qhhqr'](saveCache,_0x251499);}export function isSessionEnabled(_0x4e7ebd){const _0x1f880a=_0x338361,_0x57337f={'bnjFq':function(_0x41b766){return _0x41b766();},'srWho':function(_0x590209,_0x5d998b){return _0x590209===_0x5d998b;},'MAFBO':'main','fsxvc':function(_0x262883,_0x52b4dc){return _0x262883===_0x52b4dc;},'cahtm':function(_0x18efa7,_0x32ba93){return _0x18efa7===_0x32ba93;}},_0x3e54d2=_0x57337f['bnjFq'](loadCache),_0x17ccad=getCurrentBranch();if(!_0x17ccad||_0x57337f[_0x1f880a(0xff)](_0x17ccad,_0x57337f['MAFBO'])||_0x57337f['srWho'](_0x17ccad,_0x1f880a(0xfe)))return _0x57337f['fsxvc'](_0x3e54d2['sessions'][_0x4e7ebd]?.['enabled'],!![]);const _0x28004e=_0x57337f['cahtm'](_0x3e54d2[_0x1f880a(0xfd)][_0x17ccad],!![]),_0x189cfe=_0x3e54d2['sessions'][_0x4e7ebd]?.['enabled']===!![];return _0x28004e||_0x189cfe;}export function disableSession(_0x234792){const _0x28f6b0=_0x338361,_0x191192={'FROpl':function(_0x4dcbaf,_0xd6308,_0x3b6a7a){return _0x4dcbaf(_0xd6308,_0x3b6a7a);},'AIdfd':function(_0x18bdc7,_0x8ed606){return _0x18bdc7(_0x8ed606);}},_0x5e815d=loadCache(),_0xe681c0=_0x191192['FROpl'](getOrCreateSession,_0x5e815d,_0x234792);_0xe681c0[_0x28f6b0(0xee)]=![],_0x191192[_0x28f6b0(0xf1)](saveCache,_0x5e815d);}export function updateBranchTracking(_0x51a5df){const _0x3ec0af=_0x338361,_0x5dc59f={'QbCAu':function(_0xd1628c){return _0xd1628c();},'dAjyF':function(_0x5a8318,_0x3f5a69){return _0x5a8318!==_0x3f5a69;}},_0x11ffc9=loadCache(),_0x1f9ead=_0x11ffc9[_0x3ec0af(0xf0)][_0x51a5df];if(!_0x1f9ead?.['enabled'])return;const _0x330977=_0x5dc59f['QbCAu'](getCurrentBranch);if(!_0x330977||_0x330977===_0x3ec0af(0xf6)||_0x330977===_0x3ec0af(0xfe))return;_0x5dc59f['dAjyF'](_0x1f9ead['currentBranch'],_0x330977)&&(_0x11ffc9['branches'][_0x330977]=!![],_0x1f9ead['currentBranch']=_0x330977,saveCache(_0x11ffc9));}export function initBranchTracking(_0x5b3723){const _0x1d4f75=_0x338361,_0x561d17={'aKAgC':function(_0x45baeb){return _0x45baeb();},'TOkQy':'main','aPVVB':'master','UERKl':function(_0x1fa9b3,_0x513ebc){return _0x1fa9b3===_0x513ebc;}},_0x433da7=loadCache(),_0xbeef2b=_0x561d17['aKAgC'](getCurrentBranch);if(!_0xbeef2b||_0xbeef2b===_0x561d17['TOkQy']||_0xbeef2b===_0x561d17['aPVVB'])return;if(_0x561d17[_0x1d4f75(0x100)](_0x433da7['branches'][_0xbeef2b],!![])){const _0x5248a4=getOrCreateSession(_0x433da7,_0x5b3723);_0x5248a4[_0x1d4f75(0xee)]=!![],_0x5248a4['currentBranch']=_0xbeef2b,saveCache(_0x433da7);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x3c3029){const _0x534c53=_0x338361,_0x2753e8={'OScIV':function(_0x51fb37,_0x11ce54){return _0x51fb37(_0x11ce54);}},_0x15609e=loadCache(),_0x536762=_0x15609e['sessions'][_0x3c3029];_0x536762?.['enabled']&&(_0x15609e[_0x534c53(0xe4)]=Date['now'](),_0x2753e8['OScIV'](saveCache,_0x15609e));}export function shouldAutoEnableAfterClear(_0xb06eab){const _0x4c24b5=_0x338361,_0x525aa9={'CCgzu':function(_0x12ed76,_0x4c3c3a){return _0x12ed76!==_0x4c3c3a;},'pzRch':_0x4c24b5(0xfc),'xBVGG':function(_0x26f561,_0x13e1a9){return _0x26f561-_0x13e1a9;}};if(_0x525aa9[_0x4c24b5(0xd6)](_0xb06eab,_0x525aa9['pzRch']))return![];const _0x160786=loadCache(),_0xaa6b6b=_0x160786['lastEnabledSessionClearedAt'];if(!_0xaa6b6b)return![];const _0x21326b=_0x525aa9[_0x4c24b5(0xf7)](Date[_0x4c24b5(0xf8)](),_0xaa6b6b);return _0x21326b<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x24b653){const _0x2802cc=_0x338361,_0x4318c2={'IOHkv':function(_0x2a4715){return _0x2a4715();},'YKQjZ':function(_0xb75aad,_0x57da42,_0x26806b){return _0xb75aad(_0x57da42,_0x26806b);},'jWTkD':function(_0xf45f68){return _0xf45f68();},'ZoHLJ':function(_0x344226,_0x1101cf){return _0x344226!==_0x1101cf;},'STHuH':function(_0x6f1b38,_0x4539ec){return _0x6f1b38(_0x4539ec);}},_0x328229=_0x4318c2['IOHkv'](loadCache),_0x1d60ab=_0x4318c2['YKQjZ'](getOrCreateSession,_0x328229,_0x24b653);_0x1d60ab['enabled']=!![];const _0x331444=_0x4318c2['jWTkD'](getCurrentBranch);_0x331444&&_0x331444!==_0x2802cc(0xf6)&&_0x4318c2[_0x2802cc(0xe8)](_0x331444,_0x2802cc(0xfe))&&(_0x1d60ab['currentBranch']=_0x331444),delete _0x328229[_0x2802cc(0xe4)],_0x4318c2[_0x2802cc(0xd5)](saveCache,_0x328229);}export function registerSession(_0x3599b0,_0x37211a){const _0x3c8972=_0x338361,_0x5275b7={'hHyhu':function(_0x1679d1,_0x576516,_0x209a25){return _0x1679d1(_0x576516,_0x209a25);},'pDLDd':function(_0x930149,_0x5a8584){return _0x930149(_0x5a8584);}},_0x320445=loadCache(),_0x3a7b03=_0x5275b7[_0x3c8972(0xef)](getOrCreateSession,_0x320445,_0x3599b0);_0x3a7b03['featureId']=_0x37211a,_0x3a7b03['registeredAt']=new Date()['toISOString'](),_0x5275b7['pDLDd'](saveCache,_0x320445);}export function getSessionEntry(_0x1eaed8){const _0xf131e2=_0x338361,_0x29bd2b={'lDUnH':function(_0x39a3f7){return _0x39a3f7();}},_0x4f800c=_0x29bd2b[_0xf131e2(0xe5)](loadCache),_0x162c02=_0x4f800c[_0xf131e2(0xf0)][_0x1eaed8];if(_0x162c02?.['featureId']&&_0x162c02?.['registeredAt'])return{'featureId':_0x162c02[_0xf131e2(0xdc)],'registeredAt':_0x162c02[_0xf131e2(0xe0)]};return null;}export function unregisterSession(_0x550bbd){const _0x158241=_0x338361,_0xa3c1d4={'bBRap':function(_0x53d692){return _0x53d692();}},_0xd82505=_0xa3c1d4['bBRap'](loadCache),_0x9cb4aa=_0xd82505[_0x158241(0xf0)][_0x550bbd];_0x9cb4aa&&(delete _0x9cb4aa[_0x158241(0xdc)],delete _0x9cb4aa['registeredAt'],saveCache(_0xd82505));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;function _0x3db5(_0x4517bb,_0x5a275e){_0x4517bb=_0x4517bb-0xd0;const _0x41fe43=_0x41fe();let _0x3db579=_0x41fe43[_0x4517bb];return _0x3db579;}export function shouldShowPlanReminder(_0x504bb7){const _0x49384c=_0x338361,_0x2cb92c={'qeGfx':function(_0x248a70,_0x2e0b0c,_0x5b2948){return _0x248a70(_0x2e0b0c,_0x5b2948);},'NinLF':function(_0x36b3ab,_0x3ab2ef){return _0x36b3ab>=_0x3ab2ef;}},_0x35b33c=loadCache(),_0x210347=_0x2cb92c['qeGfx'](getOrCreateSession,_0x35b33c,_0x504bb7),_0x3dd1f5=_0x210347['lastPlanReminderAt']||0x0,_0xb76b86=Date[_0x49384c(0xf8)]();if(_0x2cb92c['NinLF'](_0xb76b86-_0x3dd1f5,PLAN_REMINDER_INTERVAL_MS))return _0x210347['lastPlanReminderAt']=_0xb76b86,saveCache(_0x35b33c),!![];return![];}export function shouldShowStopReminder(_0x30b19f){const _0x3e2dbf=_0x338361,_0x33bec8={'IqMHR':function(_0x5e2308){return _0x5e2308();},'CDNjs':function(_0x52b23a,_0x4af76,_0x5edfe7){return _0x52b23a(_0x4af76,_0x5edfe7);},'gbvCr':function(_0x1d3265,_0x26cc44){return _0x1d3265>=_0x26cc44;}},_0x3b91d3=_0x33bec8[_0x3e2dbf(0xeb)](loadCache),_0x43ff12=_0x33bec8['CDNjs'](getOrCreateSession,_0x3b91d3,_0x30b19f),_0x5967d1=_0x43ff12[_0x3e2dbf(0xf4)]||0x0,_0x4dd928=Date['now']();if(_0x33bec8['gbvCr'](_0x4dd928-_0x5967d1,STOP_REMINDER_INTERVAL_MS))return _0x43ff12[_0x3e2dbf(0xf4)]=_0x4dd928,saveCache(_0x3b91d3),!![];return![];}export function hasSessionBeenPrompted(_0x304cbe){const _0x3963c2=_0x338361,_0x1bd47b={'doesI':function(_0x3d5d21){return _0x3d5d21();},'eonsO':function(_0x1eceed,_0x3e46df){return _0x1eceed===_0x3e46df;}},_0x74057c=_0x1bd47b[_0x3963c2(0xe2)](loadCache);return _0x1bd47b[_0x3963c2(0xed)](_0x74057c['sessions'][_0x304cbe]?.[_0x3963c2(0xde)],!![]);}export function markSessionPrompted(_0x557662){const _0x18f53b=_0x338361,_0x2d7ac6={'AtSVU':function(_0x5db9e2){return _0x5db9e2();},'HWJCt':function(_0x3a8dc4,_0x26cc97,_0x5bd01e){return _0x3a8dc4(_0x26cc97,_0x5bd01e);},'iSuCw':function(_0x1a0b8d,_0x22d2f8){return _0x1a0b8d(_0x22d2f8);}},_0x26c77d=_0x2d7ac6['AtSVU'](loadCache),_0x1dccaa=_0x2d7ac6[_0x18f53b(0xe3)](getOrCreateSession,_0x26c77d,_0x557662);_0x1dccaa[_0x18f53b(0xde)]=!![],_0x2d7ac6['iSuCw'](saveCache,_0x26c77d);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x107a0b=_0x5749;function _0x5749(_0x1b9f44,_0x499918){_0x1b9f44=_0x1b9f44-0x165;const _0x1eafca=_0x1eaf();let _0x5749ed=_0x1eafca[_0x1b9f44];return _0x5749ed;}(function(_0x423d20,_0x24ac82){const _0x3c7a3b=_0x5749,_0x32042c=_0x423d20();while(!![]){try{const _0x31868a=parseInt(_0x3c7a3b(0x180))/0x1*(parseInt(_0x3c7a3b(0x1dd))/0x2)+parseInt(_0x3c7a3b(0x1c4))/0x3*(-parseInt(_0x3c7a3b(0x191))/0x4)+-parseInt(_0x3c7a3b(0x197))/0x5*(parseInt(_0x3c7a3b(0x1bf))/0x6)+-parseInt(_0x3c7a3b(0x166))/0x7*(parseInt(_0x3c7a3b(0x1b0))/0x8)+parseInt(_0x3c7a3b(0x173))/0x9+-parseInt(_0x3c7a3b(0x16f))/0xa*(-parseInt(_0x3c7a3b(0x1b2))/0xb)+-parseInt(_0x3c7a3b(0x170))/0xc*(-parseInt(_0x3c7a3b(0x190))/0xd);if(_0x31868a===_0x24ac82)break;else _0x32042c['push'](_0x32042c['shift']());}catch(_0x457c09){_0x32042c['push'](_0x32042c['shift']());}}}(_0x1eaf,0x3faa7));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x409365,_0x55bd01){const _0x202ee0=_0x5749,_0x1eb0ea={'uhpIb':function(_0x5073e6,_0x518b3a,_0x25c6e1,_0x39d6e8){return _0x5073e6(_0x518b3a,_0x25c6e1,_0x39d6e8);},'QUTEj':function(_0x35df8b,_0x30b1ef,_0x2666a1){return _0x35df8b(_0x30b1ef,_0x2666a1);},'OZdsF':_0x202ee0(0x194),'wVpnk':function(_0x431580,_0x226b0e,_0x44cf9d){return _0x431580(_0x226b0e,_0x44cf9d);},'JOvop':function(_0x33ae0a,_0xec476d){return _0x33ae0a(_0xec476d);},'VxwEJ':function(_0x25a801,_0x54a634){return _0x25a801(_0x54a634);},'BNQBh':function(_0x441e0a,_0x623d9d){return _0x441e0a!==_0x623d9d;}},_0x1311d1=_0x1eb0ea['uhpIb'](join,_0x55bd01,'ci',_0x409365),_0x3e14b9=_0x1eb0ea['uhpIb'](join,_0x55bd01,'local',_0x409365),_0x1187c8=join(_0x55bd01,_0x409365),_0x384d0e=_0x1eb0ea[_0x202ee0(0x1c8)](join,_0x55bd01,_0x1eb0ea['OZdsF']),_0x541092=_0x1eb0ea['wVpnk'](join,_0x55bd01,'ci');if(_0x1eb0ea[_0x202ee0(0x1e0)](existsSync,_0x1311d1))return _0x1311d1;if(existsSync(_0x3e14b9))return _0x3e14b9;if(_0x1eb0ea['VxwEJ'](existsSync,_0x1187c8)&&(_0x1eb0ea['BNQBh'](_0x1187c8,_0x384d0e)&&_0x1187c8!==_0x541092?!![]:_0x1eb0ea['JOvop'](hasLegacyProfileFiles,_0x1187c8)))return _0x1187c8;return null;}export function getEnvDir(_0x2bcd10,_0x24fcc3={}){const _0x3235e5=_0x5749,_0x2c9616={'uzIrv':function(_0x5f036d){return _0x5f036d();},'nHKBq':function(_0x39e78b,_0x3bc23b,_0x120366){return _0x39e78b(_0x3bc23b,_0x120366);},'ePaMe':function(_0x413c8b,_0x2ed8b6){return _0x413c8b!==_0x2ed8b6;},'KpGhs':function(_0x2ddfbe,_0x3a9b74,_0x3ec9e9,_0x1515ee){return _0x2ddfbe(_0x3a9b74,_0x3ec9e9,_0x1515ee);},'kLmEV':_0x3235e5(0x194)},_0x218f3b=_0x2c9616[_0x3235e5(0x1a2)](getRangerDir),_0x3c45de=findEnvInRoot(_0x2bcd10,_0x218f3b);if(_0x3c45de){if(_0x24fcc3['forWrite']&&isLegacyEnvPath(_0x3c45de))throw _0x2c9616[_0x3235e5(0x1c7)](legacyWriteError,_0x2bcd10,_0x3c45de);return _0x3c45de;}const _0x1cdf10=getRangerHomeDir();if(_0x2c9616[_0x3235e5(0x1a5)](_0x1cdf10,_0x218f3b)){const _0x5a126c=findEnvInRoot(_0x2bcd10,_0x1cdf10);if(_0x5a126c){if(_0x24fcc3['forWrite']&&isLegacyEnvPath(_0x5a126c))throw _0x2c9616['nHKBq'](legacyWriteError,_0x2bcd10,_0x5a126c);return _0x5a126c;}}const _0x36b62f=_0x2c9616['KpGhs'](join,_0x1cdf10,_0x2c9616[_0x3235e5(0x1cb)],_0x2bcd10);if(_0x24fcc3['forWrite'])throw _0x2c9616[_0x3235e5(0x1c7)](legacyWriteError,_0x2bcd10,_0x36b62f);return _0x36b62f;}function isLegacyEnvPath(_0x3d8f8c){const _0x26f569=_0x5749,_0x186bf6={'OLpbx':function(_0x242676){return _0x242676();},'BbOqj':function(_0x45fc09,_0x48cadd){return _0x45fc09===_0x48cadd;}},_0x2288e8=getRangerDir(),_0x4d3e7c=_0x186bf6[_0x26f569(0x1e1)](getRangerHomeDir);for(const _0x4917e5 of new Set([_0x2288e8,_0x4d3e7c])){const _0x3b9a09=_0x4917e5['endsWith']('/')?_0x4917e5:_0x4917e5+'/';if(_0x186bf6[_0x26f569(0x1c1)](_0x3d8f8c,_0x4917e5)||_0x3d8f8c[_0x26f569(0x174)](_0x3b9a09))return!![];}return![];}function legacyWriteError(_0x20ecb2,_0x17f917){const _0x2f6f1f=_0x5749,_0x561407={'QBZYz':function(_0x405bb8,_0x15a311){return _0x405bb8+_0x15a311;}};return new Error(_0x561407['QBZYz'](_0x561407[_0x2f6f1f(0x1d6)](_0x2f6f1f(0x192)+_0x20ecb2+'\x22\x20to\x20legacy\x20path\x20'+_0x17f917+'.\x0a',_0x2f6f1f(0x188))+'\x20\x20ranger\x20profile\x20add\x20<name>\x0a',_0x2f6f1f(0x19e)));}export function findExistingEnv(_0x2dbcbc,_0x31de83){const _0x5d638d=_0x5749,_0x374d88={'ZLORN':'legacy','iZfgO':function(_0x125b08,_0x4483f4,_0x29aa0d){return _0x125b08(_0x4483f4,_0x29aa0d);},'vpaAj':function(_0x553e95,_0x29ebde,_0x6f5c7c,_0x83e23b){return _0x553e95(_0x29ebde,_0x6f5c7c,_0x83e23b);},'xIjfi':function(_0x4930e1,_0x5459c6,_0x1468c1,_0x5095da){return _0x4930e1(_0x5459c6,_0x1468c1,_0x5095da);},'uACMg':'local','bgZHx':function(_0x119f22,_0x2a5b87){return _0x119f22===_0x2a5b87;},'asNiX':function(_0xd3155c,_0x72462b){return _0xd3155c(_0x72462b);}},_0x6f8a4e=_0x31de83?.['rangerDir'],_0x61111f=_0x6f8a4e?[_0x6f8a4e]:[getRangerDir(),getRangerHomeDir()][_0x5d638d(0x17e)]((_0x26431b,_0x53f472,_0x4164cb)=>_0x4164cb['indexOf'](_0x26431b)===_0x53f472),_0x580567=_0x31de83?.[_0x5d638d(0x1b9)]??['ci','local',_0x374d88['ZLORN']];for(const _0x23cf85 of _0x61111f){const _0x48c9bb=join(_0x23cf85,'local'),_0x49e458=_0x374d88['iZfgO'](join,_0x23cf85,'ci'),_0x57a990=[{'location':'ci','path':_0x374d88['vpaAj'](join,_0x23cf85,'ci',_0x2dbcbc)},{'location':_0x5d638d(0x194),'path':_0x374d88[_0x5d638d(0x1ad)](join,_0x23cf85,_0x374d88['uACMg'],_0x2dbcbc)},{'location':'legacy','path':_0x374d88['iZfgO'](join,_0x23cf85,_0x2dbcbc)}];for(const _0x38a0ab of _0x57a990){if(_0x580567['includes'](_0x38a0ab['location'])&&existsSync(_0x38a0ab[_0x5d638d(0x16a)])){if(_0x38a0ab[_0x5d638d(0x1aa)]==='legacy'&&(_0x374d88['bgZHx'](_0x38a0ab['path'],_0x48c9bb)||_0x374d88[_0x5d638d(0x1b6)](_0x38a0ab['path'],_0x49e458))&&!_0x374d88[_0x5d638d(0x1cc)](hasLegacyProfileFiles,_0x38a0ab[_0x5d638d(0x16a)]))continue;return{'path':_0x38a0ab['path'],'location':_0x38a0ab[_0x5d638d(0x1aa)]};}}}return null;}function hasLegacyProfileFiles(_0x57d559){const _0x5be117=_0x5749,_0x767753={'bFCwI':function(_0x546471,_0x1224e5){return _0x546471(_0x1224e5);},'kleit':function(_0x389871,_0x12c5fb,_0x22ee9f){return _0x389871(_0x12c5fb,_0x22ee9f);},'qBTFw':function(_0x1fae91,_0x3ed23d,_0x40f45d){return _0x1fae91(_0x3ed23d,_0x40f45d);},'pByRl':_0x5be117(0x171)};return _0x767753['bFCwI'](existsSync,_0x767753['kleit'](join,_0x57d559,'settings.json'))||_0x767753[_0x5be117(0x1b3)](existsSync,_0x767753['qBTFw'](join,_0x57d559,_0x767753['pByRl']))||existsSync(join(_0x57d559,'auth.json.enc'));}export function isEnvCi(_0x91901b){const _0xeb21ea=_0x5749,_0x5a656c={'AUnkD':function(_0x42a244,_0x50a352,_0x17de4e,_0x29212d){return _0x42a244(_0x50a352,_0x17de4e,_0x29212d);},'nzqJH':function(_0x3aff70){return _0x3aff70();},'anmir':function(_0x49aae0,_0x5b5905){return _0x49aae0!==_0x5b5905;},'QHYCH':function(_0x1dfb21,_0x6f64d5){return _0x1dfb21(_0x6f64d5);},'fvAsN':function(_0x5bc3d3,_0x51abda,_0x362359,_0x5ecec6){return _0x5bc3d3(_0x51abda,_0x362359,_0x5ecec6);}};if(existsSync(_0x5a656c['AUnkD'](join,_0x5a656c[_0xeb21ea(0x19b)](getRangerDir),'ci',_0x91901b)))return!![];const _0x126348=getRangerHomeDir();if(_0x5a656c[_0xeb21ea(0x1d5)](_0x126348,getRangerDir())&&_0x5a656c['QHYCH'](existsSync,_0x5a656c[_0xeb21ea(0x1db)](join,_0x126348,'ci',_0x91901b)))return!![];return![];}export async function cleanupTempFiles(_0x12ad78){const _0x1f775e=_0x5749,_0x10a188={'ofMfI':function(_0x30d9d2,_0x352431){return _0x30d9d2!==_0x352431;}},_0x45cdf6=[_0x12ad78[_0x1f775e(0x1d1)],_0x12ad78['configPath']]['filter'](Boolean);await Promise['all'](_0x45cdf6[_0x1f775e(0x17c)](_0x536eaf=>unlink(_0x536eaf)['catch'](_0x4420f1=>{const _0x20cf2c=_0x1f775e;_0x10a188['ofMfI'](_0x4420f1[_0x20cf2c(0x172)],'ENOENT')&&console['warn'](_0x20cf2c(0x1c6)+_0x536eaf+':',_0x4420f1[_0x20cf2c(0x17b)]);})));}export function getSettingsPath(_0x37d9fe){const _0x19fd78=_0x5749,_0x5c3afa={'rTTeC':function(_0x21b209,_0x1e708d){return _0x21b209(_0x1e708d);}};return join(_0x5c3afa[_0x19fd78(0x176)](getEnvDir,_0x37d9fe),'settings.json');}export async function loadSettings(_0x7193d7){const _0x5ad587=_0x5749,_0x2516de={'vUArF':function(_0x1312c6,_0x19cc6c){return _0x1312c6(_0x19cc6c);},'keZpn':_0x5ad587(0x1d8)},_0x499397=_0x2516de['vUArF'](getSettingsPath,_0x7193d7);if(!existsSync(_0x499397))return{};try{const _0x390c1e=await readFile(_0x499397,_0x2516de['keZpn']);return JSON[_0x5ad587(0x1d9)](_0x390c1e);}catch{return{};}}export async function saveSettings(_0x384177,_0x352ca8){const _0x492e77=_0x5749,_0x2e1345={'spauC':function(_0x48e662,_0x1c784a){return _0x48e662(_0x1c784a);},'mOzkJ':function(_0x20687c,_0xd19751){return _0x20687c(_0xd19751);},'BraHZ':function(_0x552333,_0x98c183,_0x53d420){return _0x552333(_0x98c183,_0x53d420);}},_0x589851=_0x2e1345['spauC'](getSettingsPath,_0x384177),_0x5ad1e5=dirname(_0x589851);!_0x2e1345[_0x492e77(0x16e)](existsSync,_0x5ad1e5)&&await mkdir(_0x5ad1e5,{'recursive':!![]}),await _0x2e1345[_0x492e77(0x1a9)](writeFile,_0x589851,JSON[_0x492e77(0x196)](_0x352ca8,null,0x2));}export function resolveEnvVars(_0x4fd3b8){const _0x4cb626=_0x5749,_0x34e31b={'AyIoQ':_0x4cb626(0x1cf)};if(typeof _0x4fd3b8===_0x4cb626(0x19f))return _0x4fd3b8[_0x4cb626(0x181)](/\$\{(\w+)\}/g,(_0x2392e7,_0x14dcc2)=>{const _0x2422e6=_0x4cb626,_0x2293a=process['env'][_0x14dcc2];if(_0x2293a===undefined)throw new Error(_0x2422e6(0x1a7)+_0x14dcc2+'\x20is\x20not\x20set');return _0x2293a;});if(Array['isArray'](_0x4fd3b8))return _0x4fd3b8[_0x4cb626(0x17c)](resolveEnvVars);if(_0x4fd3b8&&typeof _0x4fd3b8===_0x34e31b[_0x4cb626(0x1da)])return Object[_0x4cb626(0x182)](Object['entries'](_0x4fd3b8)['map'](([_0x194b46,_0x4c39cd])=>[_0x194b46,resolveEnvVars(_0x4c39cd)]));return _0x4fd3b8;}const isRecord=_0x1c3b08=>typeof _0x1c3b08==='object'&&_0x1c3b08!==null&&!Array['isArray'](_0x1c3b08),asRecord=_0x4f71c6=>isRecord(_0x4f71c6)?_0x4f71c6:undefined,mergeHeaders=(_0x31800f,_0x42e8ef)=>{const _0x466d08=_0x5749,_0x5b735e={'yCHwp':function(_0x5e852b,_0x4e41ec){return _0x5e852b??_0x4e41ec;}},_0x36b35d={..._0x31800f??{},..._0x5b735e[_0x466d08(0x19d)](_0x42e8ef,{})};return Object['keys'](_0x36b35d)['length']?_0x36b35d:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=['--disable-web-security',_0x107a0b(0x195),_0x107a0b(0x1ae),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x2d365f,_0x1a8e68={}){const _0x2570f4=_0x107a0b,_0x58cd4a={'RBVDv':function(_0x51deb2,_0x5d5eb6){return _0x51deb2(_0x5d5eb6);},'cxiqe':function(_0x49c616,_0x4b094d){return _0x49c616(_0x4b094d);},'oTJUd':function(_0xebe81d,_0x11631f){return _0xebe81d===_0x11631f;},'YLIag':'string','AMdOw':function(_0x4efbc6,_0x553bb8){return _0x4efbc6(_0x553bb8);}},_0x501c94=_0x58cd4a[_0x2570f4(0x18f)](asRecord,_0x2d365f['browser']),_0x343167={..._0x58cd4a['cxiqe'](asRecord,_0x501c94?.['launchOptions'])??{}};typeof _0x1a8e68[_0x2570f4(0x1ce)]===_0x2570f4(0x1ac)&&(_0x343167['headless']=_0x1a8e68['headless']);if(_0x2d365f[_0x2570f4(0x1cd)]){const _0x3e289d=_0x343167[_0x2570f4(0x1af)]??[],_0x12d33d=SAFE_MODE_ARGS[_0x2570f4(0x17e)](_0x2fdd1b=>!_0x3e289d[_0x2570f4(0x1d7)](_0x2fdd1b));_0x343167['args']=[..._0x3e289d,..._0x12d33d];}if(_0x2d365f[_0x2570f4(0x1bb)]){const _0x5b0e4d=_0x343167[_0x2570f4(0x1af)]??[],_0x19d1e1=ALLOW_LOCALHOST_ARGS['filter'](_0x2e8f99=>!_0x5b0e4d[_0x2570f4(0x1d7)](_0x2e8f99));_0x343167['args']=[..._0x5b0e4d,..._0x19d1e1];}const _0x13e6b4={...asRecord(_0x501c94?.['contextOptions'])??{}};_0x13e6b4[_0x2570f4(0x1b8)]=!![];_0x58cd4a['oTJUd'](typeof _0x2d365f[_0x2570f4(0x1a1)],_0x58cd4a['YLIag'])&&(_0x13e6b4['userAgent']=_0x2d365f['userAgent']);const _0x2ba1cd=mergeHeaders(asRecord(_0x13e6b4['extraHTTPHeaders']),_0x58cd4a['AMdOw'](asRecord,_0x2d365f[_0x2570f4(0x177)]));return _0x2ba1cd?_0x13e6b4['extraHTTPHeaders']=_0x2ba1cd:delete _0x13e6b4[_0x2570f4(0x169)],_0x1a8e68['storageStatePath']&&(_0x13e6b4[_0x2570f4(0x1de)]=_0x1a8e68['storageStatePath']),{'launchOptions':_0x343167,'contextOptions':_0x13e6b4};}async function resolveLocalAuthPath(_0x37d2ac){const _0x2e4c3a=_0x107a0b,_0x2d2ef3={'eHypd':_0x2e4c3a(0x16c),'WaqkV':_0x2e4c3a(0x171),'OxvZH':function(_0x5eaeab){return _0x5eaeab();},'IPqlL':function(_0x26e35f,_0x5073fe){return _0x26e35f(_0x5073fe);},'GJatA':function(_0x274d50,_0x36cd76,_0x16f463){return _0x274d50(_0x36cd76,_0x16f463);},'MlGmz':function(_0x393d0c,_0x56939f,_0x108867){return _0x393d0c(_0x56939f,_0x108867);},'fvHMt':function(_0x30a807,_0x255ecc){return _0x30a807 instanceof _0x255ecc;}},_0x428ea5=join(_0x37d2ac,_0x2d2ef3[_0x2e4c3a(0x198)]),_0x1cd4b0=join(_0x37d2ac,_0x2d2ef3['WaqkV']);if(existsSync(_0x428ea5))try{const _0x2f65ea=await _0x2d2ef3['OxvZH'](getToken);if(!_0x2f65ea)throw new Error(_0x2e4c3a(0x1ab));const _0x2d39fe=await _0x2d2ef3[_0x2e4c3a(0x1c5)](readFile,_0x428ea5),_0x2e2419=_0x2d2ef3['GJatA'](decrypt,_0x2d39fe,_0x2f65ea),_0x432a3e=_0x2d2ef3[_0x2e4c3a(0x17a)](join,tmpdir(),'ranger-auth-'+Date[_0x2e4c3a(0x18d)]()+_0x2e4c3a(0x178));return await _0x2d2ef3[_0x2e4c3a(0x179)](writeFile,_0x432a3e,_0x2e2419),{'storageStatePath':_0x432a3e,'tempAuthPath':_0x432a3e};}catch(_0x472e9d){const _0x4d8f8d=_0x2d2ef3['fvHMt'](_0x472e9d,Error)?_0x472e9d['message']:_0x2d2ef3[_0x2e4c3a(0x1c5)](String,_0x472e9d);throw new Error(_0x2e4c3a(0x19a)+_0x4d8f8d);}if(existsSync(_0x1cd4b0))return{'storageStatePath':_0x1cd4b0};return{};}export async function buildPlaywrightConfig(_0x4ae9ff,_0x3bb939,_0x4fc544,_0x49477a,_0x52362e){const _0x42fc7b=_0x107a0b,_0xc560ee={'tIBBJ':function(_0x43ea5a,_0x5b70f8,_0x5b712c,_0x2bad57,_0xeb3d02,_0x47ed36,_0x4a6787){return _0x43ea5a(_0x5b70f8,_0x5b712c,_0x2bad57,_0xeb3d02,_0x47ed36,_0x4a6787);},'JbBOK':_0x42fc7b(0x18e),'AcYIK':function(_0x367382,_0x13675b){return _0x367382(_0x13675b);}};if(_0x52362e)return _0xc560ee[_0x42fc7b(0x1be)](buildPlaywrightConfigCore,_0x4ae9ff,_0x52362e,_0x3bb939,_0x4fc544,_0x49477a,_0xc560ee[_0x42fc7b(0x1dc)]);const {storageStatePath:_0x60842c,tempAuthPath:_0x24740f}=await resolveLocalAuthPath(getEnvDir(_0x3bb939));try{const _0x584eb2=await buildPlaywrightConfigCore(_0x4ae9ff,_0x60842c,_0x3bb939,_0x4fc544,_0x49477a,_0x42fc7b(0x18e));return{..._0x584eb2,'tempAuthPath':_0x24740f};}catch(_0x52b623){_0x24740f&&await _0xc560ee[_0x42fc7b(0x1bc)](unlink,_0x24740f)['catch'](()=>{});throw _0x52b623;}}export async function buildPlaywrightConfigCore(_0x529d4c,_0x3a0bd5,_0x217ce3,_0x4bde76,_0x31130a,_0x31336b='stagehand'){const _0x7d15a5=_0x107a0b,_0x4c85e7={'zygYF':function(_0x46b3e9,_0x1ae4d4){return _0x46b3e9===_0x1ae4d4;},'DCsTP':_0x7d15a5(0x184),'GVASx':'chromium','IvsSC':'clipboard-read','QKxQX':function(_0x5e7b5d){return _0x5e7b5d();},'nHsKw':function(_0x312ff2,_0x32d491,_0x3ee9f0,_0xab549c){return _0x312ff2(_0x32d491,_0x3ee9f0,_0xab549c);},'RQlyh':_0x7d15a5(0x17f),'LzcbB':_0x7d15a5(0x17d),'chBfA':_0x7d15a5(0x1c3),'SFVTH':_0x7d15a5(0x1a3),'PKAtk':'allow','rqVOk':function(_0x32104e,_0x1e38b2){return _0x32104e===_0x1e38b2;},'Crjre':function(_0x466f39,_0x54116e,_0x575bfb){return _0x466f39(_0x54116e,_0x575bfb);},'jBete':function(_0x54cc85,_0xafc838){return _0x54cc85===_0xafc838;},'MdEsQ':function(_0x596782,_0x2a8077,_0x517380){return _0x596782(_0x2a8077,_0x517380);}},_0x5ec3ca=_0x4bde76||_0x4c85e7[_0x7d15a5(0x16d)](randomUUID),_0x1a9c6e=_0x4c85e7[_0x7d15a5(0x1b7)](join,_0x4c85e7['QKxQX'](getRangerDir),_0x4c85e7[_0x7d15a5(0x1d0)],_0x5ec3ca),_0x3cb7f0=Boolean(_0x529d4c[_0x7d15a5(0x18a)]),_0x3cdb06=_0x3cb7f0?{'browserName':_0x7d15a5(0x183),'cdpEndpoint':_0x529d4c[_0x7d15a5(0x18a)]}:((()=>{const _0x1d0940=_0x7d15a5,{launchOptions:_0x21aa25,contextOptions:_0x566e51}=buildBrowserOptionsFromSettings(_0x529d4c,{'headless':_0x31130a?![]:_0x529d4c[_0x1d0940(0x1ce)]??!![],'storageStatePath':_0x3a0bd5});if(_0x4c85e7['zygYF'](process['getuid']?.(),0x0)){const _0x53f791=['--no-sandbox',_0x4c85e7[_0x1d0940(0x185)]],_0x28d318=_0x21aa25[_0x1d0940(0x1af)]??[],_0x385d85=_0x53f791['filter'](_0x1bf66f=>!_0x28d318[_0x1d0940(0x1d7)](_0x1bf66f));_0x21aa25['args']=[..._0x28d318,..._0x385d85];}return{'isolated':!![],'browserName':_0x4c85e7[_0x1d0940(0x175)],'launchOptions':_0x21aa25,'contextOptions':{..._0x566e51,'permissions':[_0x4c85e7[_0x1d0940(0x1a8)],_0x1d0940(0x193)],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x2d6199=_0x4c85e7[_0x7d15a5(0x1b1)](_0x31336b,'playwright-cli')?{'browser':_0x3cdb06,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x1a9c6e,'outputMode':_0x7d15a5(0x1d4),'codegen':'none'}:{'name':_0x217ce3,'browser':_0x3cdb06,'capabilities':[_0x4c85e7[_0x7d15a5(0x1ba)],_0x4c85e7['chBfA'],_0x7d15a5(0x1b5),_0x4c85e7['SFVTH'],_0x7d15a5(0x167)],'imageResponses':_0x4c85e7[_0x7d15a5(0x187)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x1a9c6e};if(!_0x3cb7f0){const _0x20d233=_0x2d6199[_0x7d15a5(0x18c)],_0x5c7760=_0x20d233[_0x7d15a5(0x1c0)];if(_0x4c85e7['rqVOk'](_0x5c7760['userAgent'],undefined))delete _0x5c7760['userAgent'];if(_0x4c85e7['zygYF'](_0x5c7760[_0x7d15a5(0x1de)],undefined))delete _0x5c7760[_0x7d15a5(0x1de)];}const _0x168d3d=_0x4c85e7['Crjre'](join,_0x4c85e7[_0x7d15a5(0x16d)](tmpdir),_0x7d15a5(0x19c));!existsSync(_0x168d3d)&&await _0x4c85e7['Crjre'](mkdir,_0x168d3d,{'recursive':!![]});const _0xdc717=_0x4c85e7['jBete'](_0x31336b,'playwright-cli')?'-cli':'',_0x1236ec=_0x4c85e7['MdEsQ'](join,_0x168d3d,_0x217ce3+'-'+Date['now']()+_0xdc717+'.json');return await _0x4c85e7[_0x7d15a5(0x1d3)](writeFile,_0x1236ec,JSON[_0x7d15a5(0x196)](_0x2d6199,null,0x2)),{'configPath':_0x1236ec};}function _0x1eaf(){const _0x320ebd=['safeMode','headless','object','RQlyh','tempAuthPath','SNlXd','Crjre','file','anmir','QBZYz','includes','utf-8','parse','AyIoQ','fvAsN','JbBOK','7322YJDjyt','storageState','setupHeader','JOvop','OLpbx','push','361781kVaxfY','vision','BSxqE','extraHTTPHeaders','path','rAvfn','auth.json.enc','QKxQX','mOzkJ','40ZbOHBF','214728vIkVtS','auth.json','code','2679804OKriYW','startsWith','GVASx','rTTeC','headers','.json','GJatA','MlGmz','message','map','core','filter','sessions','18AfAtIk','replace','fromEntries','chromium','--disable-setuid-sandbox','DCsTP','CXMVz','PKAtk','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','aZpMZ','cdpEndpoint','ZUbdM','browser','now','stagehand','RBVDv','338uzOxSh','150764ZByvMd','Refusing\x20to\x20write\x20profile\x20\x22','clipboard-write','local','--allow-running-insecure-content','stringify','85xcmtbE','eHypd','KBzQa','Failed\x20to\x20decrypt\x20auth\x20state:\x20','nzqJH','ranger-config','yCHwp','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','string','join','userAgent','uzIrv','pdf','vuCkS','ePaMe','repeat','Environment\x20variable\x20','IvsSC','BraHZ','location','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','boolean','xIjfi','--unsafely-treat-insecure-origin-as-secure=http://localhost','args','72lYVClp','zygYF','1243121RwFUIe','bFCwI','header','install','bgZHx','nHsKw','ignoreHTTPSErrors','locations','LzcbB','allowInsecureLocalhost','AcYIK','KnSNb','tIBBJ','169284iFtROu','contextOptions','BbOqj','ZcJqL','tabs','6tsSvjq','IPqlL','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','nHKBq','QUTEj','mCzgN','setupHeaders','kLmEV','asNiX'];_0x1eaf=function(){return _0x320ebd;};return _0x1eaf();}export async function buildPlaywrightCliConfig(_0x38b77e,_0x180b39,_0x134402,_0x17daab,_0x7e121a){const _0x269258=_0x107a0b,_0x48feac={'zTeCP':function(_0x4de883,_0x3c1613,_0x2269a1,_0x5927ae,_0x25ecdf,_0x2a4b1a,_0x5bd462){return _0x4de883(_0x3c1613,_0x2269a1,_0x5927ae,_0x25ecdf,_0x2a4b1a,_0x5bd462);},'SNlXd':'playwright-cli','dbeNT':function(_0x17fc77,_0x388e42){return _0x17fc77(_0x388e42);},'IiInA':function(_0x115c50,_0x35892e,_0x36c36b,_0x53dafc,_0x151fb0,_0x317f4d,_0x514766){return _0x115c50(_0x35892e,_0x36c36b,_0x53dafc,_0x151fb0,_0x317f4d,_0x514766);}};if(_0x7e121a)return _0x48feac['zTeCP'](buildPlaywrightConfigCore,_0x38b77e,_0x7e121a,_0x180b39,_0x134402,_0x17daab,_0x48feac[_0x269258(0x1d2)]);const {storageStatePath:_0xcafda4,tempAuthPath:_0x4649c0}=await _0x48feac['dbeNT'](resolveLocalAuthPath,getEnvDir(_0x180b39));try{const _0x4829f7=await _0x48feac['IiInA'](buildPlaywrightConfigCore,_0x38b77e,_0xcafda4,_0x180b39,_0x134402,_0x17daab,_0x48feac[_0x269258(0x1d2)]);return{..._0x4829f7,'tempAuthPath':_0x4649c0};}catch(_0x5e0104){_0x4649c0&&await _0x48feac['dbeNT'](unlink,_0x4649c0)['catch'](()=>{});throw _0x5e0104;}}export function getNestedValue(_0x1122bd,_0x299f42){const _0xac06d2=_0x107a0b,_0xb18e51={'LnFvS':function(_0x4677b6,_0x151f81){return _0x4677b6(_0x151f81);},'aZpMZ':function(_0x259992,_0x1d22b2){return _0x259992===_0x1d22b2;},'lXaHm':function(_0x511bee,_0x2b6e43){return _0x511bee===_0x2b6e43;},'BSxqE':function(_0xc5a7c5,_0x4c0cb9){return _0xc5a7c5!==_0x4c0cb9;},'KnSNb':_0xac06d2(0x1cf)},_0x278482=_0xb18e51['LnFvS'](parseKeyPath,_0x299f42);let _0x17699a=_0x1122bd;for(const _0xae26e5 of _0x278482){if(_0xb18e51[_0xac06d2(0x189)](_0x17699a,null)||_0xb18e51['lXaHm'](_0x17699a,undefined)||_0xb18e51[_0xac06d2(0x168)](typeof _0x17699a,_0xb18e51[_0xac06d2(0x1bd)]))return undefined;_0x17699a=_0x17699a[_0xae26e5];}return _0x17699a;}export function setNestedValue(_0x8faeea,_0x3ac0da,_0x3bd97a){const _0x41f6e3=_0x107a0b,_0x52cf02={'uUfcZ':function(_0x4a2ba7,_0x3754af){return _0x4a2ba7(_0x3754af);},'FhDlL':function(_0x4c69ff,_0x17d392){return _0x4c69ff-_0x17d392;},'KBzQa':function(_0x20cf6b,_0x48a38a){return _0x20cf6b in _0x48a38a;},'EBGOR':function(_0x3822c2,_0x20e0fb){return _0x3822c2!==_0x20e0fb;},'qRozI':_0x41f6e3(0x1cf)},_0x170a9e=_0x52cf02['uUfcZ'](parseKeyPath,_0x3ac0da);let _0x34fd86=_0x8faeea;for(let _0x35641c=0x0;_0x35641c<_0x52cf02['FhDlL'](_0x170a9e['length'],0x1);_0x35641c++){const _0x2cbbda=_0x170a9e[_0x35641c];(!_0x52cf02[_0x41f6e3(0x199)](_0x2cbbda,_0x34fd86)||_0x52cf02['EBGOR'](typeof _0x34fd86[_0x2cbbda],_0x52cf02['qRozI']))&&(_0x34fd86[_0x2cbbda]={}),_0x34fd86=_0x34fd86[_0x2cbbda];}_0x34fd86[_0x170a9e[_0x52cf02['FhDlL'](_0x170a9e['length'],0x1)]]=_0x3bd97a;}export function deleteNestedValue(_0x18a544,_0x2d7106){const _0x43f351=_0x107a0b,_0x2e15b3={'rAvfn':function(_0x39a182,_0x3aeeea){return _0x39a182(_0x3aeeea);},'bmwuN':function(_0x787949,_0x45f3d7){return _0x787949!==_0x45f3d7;},'mCzgN':function(_0x2e648b,_0x4b3462){return _0x2e648b===_0x4b3462;},'ZcJqL':function(_0x569a09,_0x2091a5){return _0x569a09!==_0x2091a5;},'jkCdE':'object','ZUbdM':function(_0x31be1d,_0x36db81){return _0x31be1d in _0x36db81;}},_0x39c668=_0x2e15b3[_0x43f351(0x16b)](parseKeyPath,_0x2d7106);let _0x5069bd=_0x18a544;for(let _0xfad087=0x0;_0xfad087<_0x39c668['length']-0x1;_0xfad087++){if(_0x5069bd===null||_0x5069bd===undefined||_0x2e15b3['bmwuN'](typeof _0x5069bd,'object'))return![];_0x5069bd=_0x5069bd[_0x39c668[_0xfad087]];}if(_0x2e15b3[_0x43f351(0x1c9)](_0x5069bd,null)||_0x2e15b3[_0x43f351(0x1c9)](_0x5069bd,undefined)||_0x2e15b3[_0x43f351(0x1c2)](typeof _0x5069bd,_0x2e15b3['jkCdE']))return![];const _0x4ec782=_0x39c668[_0x39c668['length']-0x1];if(_0x2e15b3[_0x43f351(0x18b)](_0x4ec782,_0x5069bd))return delete _0x5069bd[_0x4ec782],!![];return![];}function parseKeyPath(_0x175e81){const _0x5480a4=_0x107a0b,_0x318dda={'rxarf':_0x5480a4(0x1b4),'SVcJM':'headers','ADVuF':_0x5480a4(0x1ca)},_0x45e53f=_0x175e81['split']('.');return _0x45e53f[0x0]===_0x318dda['rxarf']&&(_0x45e53f[0x0]=_0x318dda['SVcJM']),_0x45e53f[0x0]===_0x5480a4(0x1df)&&(_0x45e53f[0x0]=_0x318dda['ADVuF']),_0x45e53f;}export function formatSettings(_0x5d9cf5,_0x36eff9=0x0){const _0x309648=_0x107a0b,_0x5e1f61={'CXMVz':function(_0x43ab01,_0x44318a){return _0x43ab01===_0x44318a;},'vuCkS':'object'},_0x2166f6=[],_0x2da6e6='\x20\x20'[_0x309648(0x1a6)](_0x36eff9);for(const [_0x48f426,_0x5688c4]of Object['entries'](_0x5d9cf5)){if(_0x5688c4===undefined)continue;if(_0x5e1f61[_0x309648(0x186)](typeof _0x5688c4,_0x5e1f61[_0x309648(0x1a4)])&&_0x5688c4!==null){_0x2166f6['push'](''+_0x2da6e6+_0x48f426+':');for(const [_0x101834,_0x33d5d5]of Object['entries'](_0x5688c4)){_0x2166f6['push'](_0x2da6e6+'\x20\x20'+_0x101834+':\x20'+_0x33d5d5);}}else _0x2166f6[_0x309648(0x165)](''+_0x2da6e6+_0x48f426+':\x20'+_0x5688c4);}return _0x2166f6[_0x309648(0x1a0)]('\x0a');}
1
+ const _0x44e962=_0x5e17;(function(_0x6af887,_0x147c12){const _0x3b744c=_0x5e17,_0x39eca4=_0x6af887();while(!![]){try{const _0x498b91=-parseInt(_0x3b744c(0x1ca))/0x1+-parseInt(_0x3b744c(0x1bd))/0x2+-parseInt(_0x3b744c(0x1b8))/0x3+-parseInt(_0x3b744c(0x1f3))/0x4*(-parseInt(_0x3b744c(0x1b4))/0x5)+parseInt(_0x3b744c(0x1e8))/0x6*(parseInt(_0x3b744c(0x1fb))/0x7)+-parseInt(_0x3b744c(0x1b7))/0x8*(-parseInt(_0x3b744c(0x1a3))/0x9)+-parseInt(_0x3b744c(0x1d5))/0xa;if(_0x498b91===_0x147c12)break;else _0x39eca4['push'](_0x39eca4['shift']());}catch(_0x264572){_0x39eca4['push'](_0x39eca4['shift']());}}}(_0x193a,0x78af3));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x47446e,_0x3d9353){const _0x3b1165=_0x5e17,_0x1891fd={'aAzGF':_0x3b1165(0x20d),'sFoaM':function(_0xcdc574,_0x3d1c08,_0x1197f3){return _0xcdc574(_0x3d1c08,_0x1197f3);},'brmLy':function(_0x57772e,_0x44e3ae,_0x5c1efb){return _0x57772e(_0x44e3ae,_0x5c1efb);},'WTIqV':function(_0x47ae2e,_0x3e9647){return _0x47ae2e(_0x3e9647);},'pdHli':function(_0x5629da,_0x4a0725){return _0x5629da!==_0x4a0725;}},_0x1d5d36=join(_0x3d9353,'ci',_0x47446e),_0x3c0ce3=join(_0x3d9353,_0x1891fd['aAzGF'],_0x47446e),_0x374d25=_0x1891fd[_0x3b1165(0x1bb)](join,_0x3d9353,_0x47446e),_0x10ef02=join(_0x3d9353,'local'),_0x26035e=_0x1891fd[_0x3b1165(0x1a9)](join,_0x3d9353,'ci');if(existsSync(_0x1d5d36))return _0x1d5d36;if(_0x1891fd[_0x3b1165(0x1b1)](existsSync,_0x3c0ce3))return _0x3c0ce3;if(existsSync(_0x374d25)&&(_0x374d25!==_0x10ef02&&_0x1891fd['pdHli'](_0x374d25,_0x26035e)?!![]:hasLegacyProfileFiles(_0x374d25)))return _0x374d25;return null;}export function getEnvDir(_0x2f5cee,_0x1d8ce4={}){const _0x20c170=_0x5e17,_0x5d5177={'JCbAq':function(_0xa85d8a){return _0xa85d8a();},'VHqhN':function(_0x456be8,_0x2b43db,_0x16157a){return _0x456be8(_0x2b43db,_0x16157a);},'gZGIC':function(_0xf50c5d,_0x45205a,_0x39430e){return _0xf50c5d(_0x45205a,_0x39430e);},'xYnPd':function(_0x219c32,_0x249bab){return _0x219c32(_0x249bab);},'lMeds':function(_0xabbb30,_0x165c9d,_0x4cb74d){return _0xabbb30(_0x165c9d,_0x4cb74d);}},_0x2ebd53=_0x5d5177[_0x20c170(0x1ea)](getRangerDir),_0x354fe3=_0x5d5177['VHqhN'](findEnvInRoot,_0x2f5cee,_0x2ebd53);if(_0x354fe3){if(_0x1d8ce4[_0x20c170(0x216)]&&isLegacyEnvPath(_0x354fe3))throw _0x5d5177[_0x20c170(0x1e7)](legacyWriteError,_0x2f5cee,_0x354fe3);return _0x354fe3;}const _0x29c230=_0x5d5177[_0x20c170(0x1ea)](getRangerHomeDir);if(_0x29c230!==_0x2ebd53){const _0x4c16d4=findEnvInRoot(_0x2f5cee,_0x29c230);if(_0x4c16d4){if(_0x1d8ce4[_0x20c170(0x216)]&&_0x5d5177[_0x20c170(0x1d7)](isLegacyEnvPath,_0x4c16d4))throw legacyWriteError(_0x2f5cee,_0x4c16d4);return _0x4c16d4;}}const _0x16d96e=join(_0x29c230,_0x20c170(0x20d),_0x2f5cee);if(_0x1d8ce4[_0x20c170(0x216)])throw _0x5d5177[_0x20c170(0x1ba)](legacyWriteError,_0x2f5cee,_0x16d96e);return _0x16d96e;}function isLegacyEnvPath(_0x3a86a3){const _0x2a2372=_0x5e17,_0x2e82c2={'GCbVP':function(_0x18a547){return _0x18a547();},'ClkVm':function(_0xbf264b,_0x10c1ed){return _0xbf264b+_0x10c1ed;},'Xiihl':function(_0x4658e4,_0x3a305f){return _0x4658e4===_0x3a305f;}},_0x2d6e71=_0x2e82c2['GCbVP'](getRangerDir),_0x1e219e=getRangerHomeDir();for(const _0x5b8f43 of new Set([_0x2d6e71,_0x1e219e])){const _0x5bbab1=_0x5b8f43[_0x2a2372(0x1bc)]('/')?_0x5b8f43:_0x2e82c2[_0x2a2372(0x1dc)](_0x5b8f43,'/');if(_0x2e82c2['Xiihl'](_0x3a86a3,_0x5b8f43)||_0x3a86a3[_0x2a2372(0x1eb)](_0x5bbab1))return!![];}return![];}function _0x193a(){const _0x55a4aa=['dBJwl','location','local','file','HFypr','map','message','keys','SnFby','mNhFI','FiAmt','forWrite','extraHTTPHeaders','pDIkn','chromium','all','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','repeat','warn','27270bHozeU','vQdUm','header','PKPet','lCKVq','browser','brmLy','storageState','auth.json','--disable-web-security','ILkyf','path','object','XnNJT','WTIqV','ZwFVt','luWTx','10uhuotP','YMKKF','eOFvK','1592oMlgzj','945591xyuHJl','headers','lMeds','sFoaM','endsWith','223624YPwmxf','SDTsw','ejylu','stagehand','towqX','string','mPdmv','env','xHtLV','filter','pJddE','fromEntries','storageStatePath','810326kPvVRG','DYbJT','core','settings.json','Environment\x20variable\x20','code','--unsafely-treat-insecure-origin-as-secure=http://localhost','vision','DDNeH','includes','OrKvd','6445160sesUlT','tabs','xYnPd','args','utf-8','legacy','rangerDir','ClkVm','tuUJK','uJlwW','ENOENT','userAgent','catch','entries','PLuhP','join','VagPP','length','gZGIC','5861868KQpRkt','PEWgL','JCbAq','startsWith','push','AeCrL','headless','.json','tempAuthPath','stringify','akzSp','1592452NAOWim','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','now','playwright-cli','RjHLg','uECOy','uCaYB','parse','7xojlbK','LTMiM','boolean','wBJJe','lSLws','UWNmT','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','FHJDr','wtNmo','isArray','aylRU','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','DkGwn','--no-sandbox','install','HQYIP'];_0x193a=function(){return _0x55a4aa;};return _0x193a();}function legacyWriteError(_0x374565,_0x595507){const _0x50c5aa=_0x5e17,_0x40591d={'wUAmO':function(_0x5ce21d,_0x401481){return _0x5ce21d+_0x401481;}};return new Error(_0x40591d['wUAmO']('Refusing\x20to\x20write\x20profile\x20\x22'+_0x374565+'\x22\x20to\x20legacy\x20path\x20'+_0x595507+'.\x0a'+_0x50c5aa(0x1f4)+'\x20\x20ranger\x20profile\x20add\x20<name>\x0a',_0x50c5aa(0x201)));}export function findExistingEnv(_0x2e642f,_0x3a1eb2){const _0x112710=_0x5e17,_0x2b8827={'mPdmv':function(_0x23b1aa){return _0x23b1aa();},'pxrxd':function(_0x5e2939){return _0x5e2939();},'ILkyf':_0x112710(0x20d),'OEKEN':function(_0xdd2659,_0x3d5110,_0x237544){return _0xdd2659(_0x3d5110,_0x237544);},'UWNmT':function(_0x37ef5b,_0x4044bc){return _0x37ef5b(_0x4044bc);},'SnFby':function(_0x944213,_0x4ace99){return _0x944213===_0x4ace99;},'uCaYB':function(_0x2e8eca,_0x3c19d1){return _0x2e8eca(_0x3c19d1);}},_0x253d3a=_0x3a1eb2?.[_0x112710(0x1db)],_0xc0a802=_0x253d3a?[_0x253d3a]:[_0x2b8827[_0x112710(0x1c3)](getRangerDir),_0x2b8827['pxrxd'](getRangerHomeDir)][_0x112710(0x1c6)]((_0x39c699,_0x1d9a0c,_0x5a2ae6)=>_0x5a2ae6['indexOf'](_0x39c699)===_0x1d9a0c),_0x1c1c60=_0x3a1eb2?.['locations']??['ci',_0x2b8827[_0x112710(0x1ad)],_0x112710(0x1da)];for(const _0x2fa7e2 of _0xc0a802){const _0x2f4b6c=join(_0x2fa7e2,_0x2b8827[_0x112710(0x1ad)]),_0x9c85e2=_0x2b8827['OEKEN'](join,_0x2fa7e2,'ci'),_0x5a000c=[{'location':'ci','path':join(_0x2fa7e2,'ci',_0x2e642f)},{'location':_0x112710(0x20d),'path':join(_0x2fa7e2,_0x2b8827['ILkyf'],_0x2e642f)},{'location':_0x112710(0x1da),'path':_0x2b8827['OEKEN'](join,_0x2fa7e2,_0x2e642f)}];for(const _0x209cba of _0x5a000c){if(_0x1c1c60['includes'](_0x209cba[_0x112710(0x20c)])&&_0x2b8827[_0x112710(0x200)](existsSync,_0x209cba[_0x112710(0x1ae)])){if(_0x209cba['location']===_0x112710(0x1da)&&(_0x209cba[_0x112710(0x1ae)]===_0x2f4b6c||_0x2b8827[_0x112710(0x213)](_0x209cba['path'],_0x9c85e2))&&!_0x2b8827[_0x112710(0x1f9)](hasLegacyProfileFiles,_0x209cba['path']))continue;return{'path':_0x209cba['path'],'location':_0x209cba[_0x112710(0x20c)]};}}}return null;}function hasLegacyProfileFiles(_0x41573d){const _0x1f5e48=_0x5e17,_0x314deb={'lCKVq':function(_0x26e679,_0x478f01,_0x3549cf){return _0x26e679(_0x478f01,_0x3549cf);},'FiAmt':function(_0x5897b8,_0x2e97da){return _0x5897b8(_0x2e97da);},'FnxYU':_0x1f5e48(0x1ab),'GMDhp':'auth.json.enc'};return existsSync(_0x314deb[_0x1f5e48(0x1a7)](join,_0x41573d,_0x1f5e48(0x1cd)))||_0x314deb[_0x1f5e48(0x215)](existsSync,join(_0x41573d,_0x314deb['FnxYU']))||_0x314deb['FiAmt'](existsSync,_0x314deb['lCKVq'](join,_0x41573d,_0x314deb['GMDhp']));}export function isEnvCi(_0x561386){const _0x3080ff=_0x5e17,_0x2cd10b={'uJlwW':function(_0x5214f8,_0xc07e16,_0x5df9f2,_0x134100){return _0x5214f8(_0xc07e16,_0x5df9f2,_0x134100);},'HQYIP':function(_0x3e0f2a){return _0x3e0f2a();},'CVTrg':function(_0x346ac4,_0x21cd38){return _0x346ac4!==_0x21cd38;},'Tholw':function(_0x59907c){return _0x59907c();},'vQdUm':function(_0x353921,_0x5b7b15){return _0x353921(_0x5b7b15);}};if(existsSync(_0x2cd10b[_0x3080ff(0x1de)](join,_0x2cd10b[_0x3080ff(0x20a)](getRangerDir),'ci',_0x561386)))return!![];const _0x3f52b7=getRangerHomeDir();if(_0x2cd10b['CVTrg'](_0x3f52b7,_0x2cd10b['Tholw'](getRangerDir))&&_0x2cd10b[_0x3080ff(0x1a4)](existsSync,_0x2cd10b['uJlwW'](join,_0x3f52b7,'ci',_0x561386)))return!![];return![];}export async function cleanupTempFiles(_0x3255f2){const _0x169d6e=_0x5e17,_0x3bdb9f={'eOFvK':function(_0x339c7e,_0x8ea39b){return _0x339c7e!==_0x8ea39b;},'wBJJe':_0x169d6e(0x1df)},_0x17a6b5=[_0x3255f2[_0x169d6e(0x1f0)],_0x3255f2['configPath']][_0x169d6e(0x1c6)](Boolean);await Promise[_0x169d6e(0x19f)](_0x17a6b5[_0x169d6e(0x210)](_0x5a9489=>unlink(_0x5a9489)[_0x169d6e(0x1e1)](_0x52cfb2=>{const _0x45cfd1=_0x169d6e;_0x3bdb9f[_0x45cfd1(0x1b6)](_0x52cfb2[_0x45cfd1(0x1cf)],_0x3bdb9f[_0x45cfd1(0x1fe)])&&console[_0x45cfd1(0x1a2)](_0x45cfd1(0x1a0)+_0x5a9489+':',_0x52cfb2[_0x45cfd1(0x211)]);})));}export function getSettingsPath(_0x662d2e){const _0x135f59={'lxPxC':'settings.json'};return join(getEnvDir(_0x662d2e),_0x135f59['lxPxC']);}export async function loadSettings(_0x14f428){const _0x20584c=_0x5e17,_0x1d9482={'HFypr':function(_0x2bf424,_0x14ef5b){return _0x2bf424(_0x14ef5b);},'uECOy':function(_0x1077cb,_0x5e96dc){return _0x1077cb(_0x5e96dc);}},_0x33a93f=_0x1d9482[_0x20584c(0x20f)](getSettingsPath,_0x14f428);if(!_0x1d9482[_0x20584c(0x1f8)](existsSync,_0x33a93f))return{};try{const _0x497fda=await readFile(_0x33a93f,_0x20584c(0x1d9));return JSON[_0x20584c(0x1fa)](_0x497fda);}catch{return{};}}export async function saveSettings(_0x636ea7,_0x4c3161){const _0x4fa5e9=_0x5e17,_0x18d049={'PKPet':function(_0x5581ba,_0x1b438f){return _0x5581ba(_0x1b438f);},'SDTsw':function(_0x49b428,_0x421de6){return _0x49b428(_0x421de6);},'wtNmo':function(_0x1beec5,_0x1f69d4,_0x4c86b3){return _0x1beec5(_0x1f69d4,_0x4c86b3);}},_0x512019=_0x18d049[_0x4fa5e9(0x1a6)](getSettingsPath,_0x636ea7),_0x2c7456=_0x18d049[_0x4fa5e9(0x1be)](dirname,_0x512019);!_0x18d049['PKPet'](existsSync,_0x2c7456)&&await mkdir(_0x2c7456,{'recursive':!![]}),await _0x18d049[_0x4fa5e9(0x203)](writeFile,_0x512019,JSON[_0x4fa5e9(0x1f1)](_0x4c3161,null,0x2));}export function resolveEnvVars(_0x17a05d){const _0x5dc377=_0x5e17,_0x448bf3={'lSLws':'object'};if(typeof _0x17a05d===_0x5dc377(0x1c2))return _0x17a05d['replace'](/\$\{(\w+)\}/g,(_0x30893b,_0x8c91d)=>{const _0x1f2f5d=_0x5dc377,_0x11fa2a=process[_0x1f2f5d(0x1c4)][_0x8c91d];if(_0x11fa2a===undefined)throw new Error(_0x1f2f5d(0x1ce)+_0x8c91d+'\x20is\x20not\x20set');return _0x11fa2a;});if(Array[_0x5dc377(0x204)](_0x17a05d))return _0x17a05d[_0x5dc377(0x210)](resolveEnvVars);if(_0x17a05d&&typeof _0x17a05d===_0x448bf3[_0x5dc377(0x1ff)])return Object[_0x5dc377(0x1c8)](Object[_0x5dc377(0x1e2)](_0x17a05d)['map'](([_0x485ac2,_0x49832b])=>[_0x485ac2,resolveEnvVars(_0x49832b)]));return _0x17a05d;}const isRecord=_0x3373a6=>typeof _0x3373a6===_0x44e962(0x1af)&&_0x3373a6!==null&&!Array[_0x44e962(0x204)](_0x3373a6),asRecord=_0x785304=>isRecord(_0x785304)?_0x785304:undefined,mergeHeaders=(_0x2ddf08,_0x5099b6)=>{const _0x2ed1d9=_0x44e962,_0x57453e={'luWTx':function(_0x4d5cac,_0x2bc53){return _0x4d5cac??_0x2bc53;}},_0x2926d8={..._0x2ddf08??{},..._0x57453e[_0x2ed1d9(0x1b3)](_0x5099b6,{})};return Object[_0x2ed1d9(0x212)](_0x2926d8)[_0x2ed1d9(0x1e6)]?_0x2926d8:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=[_0x44e962(0x1ac),'--allow-running-insecure-content',_0x44e962(0x1d0),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x3d30db,_0x2fe462={}){const _0x4dd938=_0x44e962,_0x103138={'cjAIw':function(_0x923523,_0xa12478){return _0x923523(_0xa12478);},'akzSp':_0x4dd938(0x1fd),'aylRU':function(_0x39e7ad,_0xf5044a){return _0x39e7ad===_0xf5044a;},'OrKvd':_0x4dd938(0x1c2),'tuUJK':function(_0x4ff357,_0x2a8dd2,_0x3da10d){return _0x4ff357(_0x2a8dd2,_0x3da10d);},'snyQf':function(_0x5b0bc4,_0x3e7e97){return _0x5b0bc4(_0x3e7e97);}},_0x243436=_0x103138['cjAIw'](asRecord,_0x3d30db[_0x4dd938(0x1a8)]),_0x19c5e0={...asRecord(_0x243436?.['launchOptions'])??{}};typeof _0x2fe462[_0x4dd938(0x1ee)]===_0x103138[_0x4dd938(0x1f2)]&&(_0x19c5e0['headless']=_0x2fe462['headless']);if(_0x3d30db['safeMode']){const _0xb619da=_0x19c5e0['args']??[],_0x4c50e2=SAFE_MODE_ARGS[_0x4dd938(0x1c6)](_0x351c18=>!_0xb619da[_0x4dd938(0x1d3)](_0x351c18));_0x19c5e0[_0x4dd938(0x1d8)]=[..._0xb619da,..._0x4c50e2];}if(_0x3d30db['allowInsecureLocalhost']){const _0x5ce221=_0x19c5e0['args']??[],_0x44e268=ALLOW_LOCALHOST_ARGS['filter'](_0xf2c4b4=>!_0x5ce221[_0x4dd938(0x1d3)](_0xf2c4b4));_0x19c5e0[_0x4dd938(0x1d8)]=[..._0x5ce221,..._0x44e268];}const _0xa1611d={..._0x103138['cjAIw'](asRecord,_0x243436?.['contextOptions'])??{}};_0xa1611d['ignoreHTTPSErrors']=!![];_0x103138[_0x4dd938(0x205)](typeof _0x3d30db[_0x4dd938(0x1e0)],_0x103138[_0x4dd938(0x1d4)])&&(_0xa1611d['userAgent']=_0x3d30db['userAgent']);const _0x217425=_0x103138[_0x4dd938(0x1dd)](mergeHeaders,asRecord(_0xa1611d['extraHTTPHeaders']),_0x103138['snyQf'](asRecord,_0x3d30db[_0x4dd938(0x1b9)]));return _0x217425?_0xa1611d[_0x4dd938(0x217)]=_0x217425:delete _0xa1611d[_0x4dd938(0x217)],_0x2fe462['storageStatePath']&&(_0xa1611d[_0x4dd938(0x1aa)]=_0x2fe462[_0x4dd938(0x1c9)]),{'launchOptions':_0x19c5e0,'contextOptions':_0xa1611d};}async function resolveLocalAuthPath(_0xd10840){const _0x295e33=_0x44e962,_0x45ff50={'VagPP':function(_0x384b7f,_0x8ab9bc,_0xbb0706){return _0x384b7f(_0x8ab9bc,_0xbb0706);},'DDNeH':'auth.json.enc','CmTNq':_0x295e33(0x206),'mNhFI':function(_0x4b9b37,_0x543507){return _0x4b9b37(_0x543507);}},_0xbea0e9=_0x45ff50['VagPP'](join,_0xd10840,_0x45ff50[_0x295e33(0x1d2)]),_0x19a2b5=_0x45ff50['VagPP'](join,_0xd10840,_0x295e33(0x1ab));if(existsSync(_0xbea0e9))try{const _0x5eb9be=await getToken();if(!_0x5eb9be)throw new Error(_0x45ff50['CmTNq']);const _0x1cfc9e=await readFile(_0xbea0e9),_0x457c76=decrypt(_0x1cfc9e,_0x5eb9be),_0x19af2c=_0x45ff50[_0x295e33(0x1e5)](join,tmpdir(),'ranger-auth-'+Date['now']()+_0x295e33(0x1ef));return await writeFile(_0x19af2c,_0x457c76),{'storageStatePath':_0x19af2c,'tempAuthPath':_0x19af2c};}catch(_0x1a41d6){const _0x12e3ff=_0x1a41d6 instanceof Error?_0x1a41d6[_0x295e33(0x211)]:_0x45ff50[_0x295e33(0x214)](String,_0x1a41d6);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x12e3ff);}if(_0x45ff50['mNhFI'](existsSync,_0x19a2b5))return{'storageStatePath':_0x19a2b5};return{};}export async function buildPlaywrightConfig(_0x4e2afb,_0x290bf7,_0x41340c,_0x49f4a8,_0x396d1f){const _0x46f499=_0x44e962,_0x3f6771={'DkGwn':function(_0x117195,_0x1a0456,_0x535982,_0x339fff,_0x55a24e,_0x3aa2a6,_0x62e025){return _0x117195(_0x1a0456,_0x535982,_0x339fff,_0x55a24e,_0x3aa2a6,_0x62e025);},'pDIkn':'stagehand','PLuhP':function(_0x4bb122,_0x599087){return _0x4bb122(_0x599087);},'KQlie':function(_0x536993,_0x23307b){return _0x536993(_0x23307b);}};if(_0x396d1f)return _0x3f6771[_0x46f499(0x207)](buildPlaywrightConfigCore,_0x4e2afb,_0x396d1f,_0x290bf7,_0x41340c,_0x49f4a8,_0x3f6771[_0x46f499(0x19d)]);const {storageStatePath:_0x206519,tempAuthPath:_0x393869}=await _0x3f6771[_0x46f499(0x1e3)](resolveLocalAuthPath,_0x3f6771['KQlie'](getEnvDir,_0x290bf7));try{const _0x3697d4=await buildPlaywrightConfigCore(_0x4e2afb,_0x206519,_0x290bf7,_0x41340c,_0x49f4a8,'stagehand');return{..._0x3697d4,'tempAuthPath':_0x393869};}catch(_0x386264){_0x393869&&await unlink(_0x393869)[_0x46f499(0x1e1)](()=>{});throw _0x386264;}}export async function buildPlaywrightConfigCore(_0x53ce14,_0x230dcf,_0x4faa73,_0x4775d4,_0x505eb8,_0x41c0f0=_0x44e962(0x1c0)){const _0x53826b=_0x44e962,_0x323823={'NMOlC':function(_0x749dc5,_0x3c73df,_0x15f8d3){return _0x749dc5(_0x3c73df,_0x15f8d3);},'bqZdI':function(_0x5923b7,_0x6c25a8){return _0x5923b7===_0x6c25a8;},'ejylu':'--disable-setuid-sandbox','uydMg':function(_0x237c25,_0x2fc969){return _0x237c25(_0x2fc969);},'LTMiM':_0x53826b(0x20e),'YMKKF':'none','dBJwl':'allow','AeCrL':'ranger-config','Svckg':_0x53826b(0x1f6),'PEWgL':function(_0x38f024,_0x59996d,_0x22ac48){return _0x38f024(_0x59996d,_0x22ac48);}},_0x2f9116=_0x4775d4||randomUUID(),_0x128220=join(getRangerDir(),'sessions',_0x2f9116),_0x15429c=_0x323823['uydMg'](Boolean,_0x53ce14['cdpEndpoint']),_0x6c6cae=_0x15429c?{'browserName':'chromium','cdpEndpoint':_0x53ce14['cdpEndpoint']}:((()=>{const _0x3c94a2=_0x53826b,{launchOptions:_0x1e1d5a,contextOptions:_0x421c82}=_0x323823['NMOlC'](buildBrowserOptionsFromSettings,_0x53ce14,{'headless':_0x505eb8?![]:_0x53ce14['headless']??!![],'storageStatePath':_0x230dcf});if(_0x323823['bqZdI'](process['getuid']?.(),0x0)){const _0x114065=[_0x3c94a2(0x208),_0x323823[_0x3c94a2(0x1bf)]],_0x208630=_0x1e1d5a[_0x3c94a2(0x1d8)]??[],_0x13ed3f=_0x114065[_0x3c94a2(0x1c6)](_0x486c70=>!_0x208630[_0x3c94a2(0x1d3)](_0x486c70));_0x1e1d5a['args']=[..._0x208630,..._0x13ed3f];}return{'isolated':!![],'browserName':_0x3c94a2(0x19e),'launchOptions':_0x1e1d5a,'contextOptions':{..._0x421c82,'permissions':['clipboard-read','clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x2057db=_0x323823['bqZdI'](_0x41c0f0,_0x53826b(0x1f6))?{'browser':_0x6c6cae,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x128220,'outputMode':_0x323823[_0x53826b(0x1fc)],'codegen':_0x323823[_0x53826b(0x1b5)]}:{'name':_0x4faa73,'browser':_0x6c6cae,'capabilities':[_0x53826b(0x1cc),_0x53826b(0x1d6),_0x53826b(0x209),'pdf',_0x53826b(0x1d1)],'imageResponses':_0x323823[_0x53826b(0x20b)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x128220};if(!_0x15429c){const _0x45906b=_0x2057db['browser'],_0x1643d7=_0x45906b['contextOptions'];if(_0x323823['bqZdI'](_0x1643d7['userAgent'],undefined))delete _0x1643d7[_0x53826b(0x1e0)];if(_0x1643d7[_0x53826b(0x1aa)]===undefined)delete _0x1643d7['storageState'];}const _0x512217=join(tmpdir(),_0x323823[_0x53826b(0x1ed)]);!existsSync(_0x512217)&&await mkdir(_0x512217,{'recursive':!![]});const _0x3280ca=_0x41c0f0===_0x323823['Svckg']?'-cli':'',_0x2cc625=_0x323823[_0x53826b(0x1e9)](join,_0x512217,_0x4faa73+'-'+Date[_0x53826b(0x1f5)]()+_0x3280ca+'.json');return await writeFile(_0x2cc625,JSON[_0x53826b(0x1f1)](_0x2057db,null,0x2)),{'configPath':_0x2cc625};}export async function buildPlaywrightCliConfig(_0x45545e,_0x52f0f1,_0x17ddb4,_0x248073,_0xa3fdf6){const _0x42d036=_0x44e962,_0x15d81d={'xHtLV':function(_0x427872,_0x2fd4f6){return _0x427872(_0x2fd4f6);}};if(_0xa3fdf6)return buildPlaywrightConfigCore(_0x45545e,_0xa3fdf6,_0x52f0f1,_0x17ddb4,_0x248073,'playwright-cli');const {storageStatePath:_0x345ab3,tempAuthPath:_0x12cbd5}=await _0x15d81d[_0x42d036(0x1c5)](resolveLocalAuthPath,_0x15d81d['xHtLV'](getEnvDir,_0x52f0f1));try{const _0x307aa7=await buildPlaywrightConfigCore(_0x45545e,_0x345ab3,_0x52f0f1,_0x17ddb4,_0x248073,_0x42d036(0x1f6));return{..._0x307aa7,'tempAuthPath':_0x12cbd5};}catch(_0x33d3c6){_0x12cbd5&&await unlink(_0x12cbd5)[_0x42d036(0x1e1)](()=>{});throw _0x33d3c6;}}export function getNestedValue(_0x73b7a9,_0x4bda98){const _0x13a79b=_0x44e962,_0x128423={'RjHLg':function(_0x511895,_0x591531){return _0x511895(_0x591531);},'kqiDs':function(_0x315181,_0x40ff26){return _0x315181===_0x40ff26;}},_0x560df1=_0x128423[_0x13a79b(0x1f7)](parseKeyPath,_0x4bda98);let _0x5d4e8f=_0x73b7a9;for(const _0x2d5a4c of _0x560df1){if(_0x5d4e8f===null||_0x128423['kqiDs'](_0x5d4e8f,undefined)||typeof _0x5d4e8f!==_0x13a79b(0x1af))return undefined;_0x5d4e8f=_0x5d4e8f[_0x2d5a4c];}return _0x5d4e8f;}export function setNestedValue(_0x354baf,_0x12a7e7,_0x8d9106){const _0xbcc2ed=_0x44e962,_0x4474d4={'KOjch':function(_0x12cd07,_0x5e10ed){return _0x12cd07(_0x5e10ed);},'DYbJT':function(_0x5650a9,_0xd03a4d){return _0x5650a9 in _0xd03a4d;},'qMRRf':function(_0x5913c6,_0x3618ec){return _0x5913c6-_0x3618ec;}},_0x418b6c=_0x4474d4['KOjch'](parseKeyPath,_0x12a7e7);let _0x1d8e72=_0x354baf;for(let _0x5582e2=0x0;_0x5582e2<_0x418b6c[_0xbcc2ed(0x1e6)]-0x1;_0x5582e2++){const _0x4494e7=_0x418b6c[_0x5582e2];(!_0x4474d4[_0xbcc2ed(0x1cb)](_0x4494e7,_0x1d8e72)||typeof _0x1d8e72[_0x4494e7]!=='object')&&(_0x1d8e72[_0x4494e7]={}),_0x1d8e72=_0x1d8e72[_0x4494e7];}_0x1d8e72[_0x418b6c[_0x4474d4['qMRRf'](_0x418b6c['length'],0x1)]]=_0x8d9106;}function _0x5e17(_0x4ee0b3,_0x4df7a5){_0x4ee0b3=_0x4ee0b3-0x19d;const _0x193aab=_0x193a();let _0x5e17fe=_0x193aab[_0x4ee0b3];return _0x5e17fe;}export function deleteNestedValue(_0x2ac287,_0x7c895e){const _0x31685e=_0x44e962,_0x14d678={'pJddE':function(_0x43e6d2,_0x528a60){return _0x43e6d2(_0x528a60);},'towqX':function(_0x3b53fa,_0x17e182){return _0x3b53fa===_0x17e182;},'vaCUv':'object','XnNJT':function(_0x4e5dfe,_0xfd3b9d){return _0x4e5dfe in _0xfd3b9d;}},_0x28c998=_0x14d678[_0x31685e(0x1c7)](parseKeyPath,_0x7c895e);let _0x19432d=_0x2ac287;for(let _0x273731=0x0;_0x273731<_0x28c998[_0x31685e(0x1e6)]-0x1;_0x273731++){if(_0x14d678['towqX'](_0x19432d,null)||_0x14d678['towqX'](_0x19432d,undefined)||typeof _0x19432d!==_0x14d678['vaCUv'])return![];_0x19432d=_0x19432d[_0x28c998[_0x273731]];}if(_0x14d678[_0x31685e(0x1c1)](_0x19432d,null)||_0x14d678[_0x31685e(0x1c1)](_0x19432d,undefined)||typeof _0x19432d!==_0x14d678['vaCUv'])return![];const _0x7e25cc=_0x28c998[_0x28c998[_0x31685e(0x1e6)]-0x1];if(_0x14d678[_0x31685e(0x1b0)](_0x7e25cc,_0x19432d))return delete _0x19432d[_0x7e25cc],!![];return![];}function parseKeyPath(_0x48daae){const _0xe5fbac=_0x44e962,_0x598d05={'ZwFVt':'headers','FHJDr':'setupHeader'},_0x3161a0=_0x48daae['split']('.');return _0x3161a0[0x0]===_0xe5fbac(0x1a5)&&(_0x3161a0[0x0]=_0x598d05[_0xe5fbac(0x1b2)]),_0x3161a0[0x0]===_0x598d05[_0xe5fbac(0x202)]&&(_0x3161a0[0x0]='setupHeaders'),_0x3161a0;}export function formatSettings(_0x5d3e58,_0x33f681=0x0){const _0x441d0b=_0x44e962,_0x34d8bf={'fThJD':function(_0x2b7b74,_0x382de9){return _0x2b7b74===_0x382de9;}},_0x253ca9=[],_0x16d38b='\x20\x20'[_0x441d0b(0x1a1)](_0x33f681);for(const [_0x41a77c,_0x29751d]of Object[_0x441d0b(0x1e2)](_0x5d3e58)){if(_0x29751d===undefined)continue;if(_0x34d8bf['fThJD'](typeof _0x29751d,_0x441d0b(0x1af))&&_0x29751d!==null){_0x253ca9[_0x441d0b(0x1ec)](''+_0x16d38b+_0x41a77c+':');for(const [_0x30d30b,_0x552c7d]of Object[_0x441d0b(0x1e2)](_0x29751d)){_0x253ca9[_0x441d0b(0x1ec)](_0x16d38b+'\x20\x20'+_0x30d30b+':\x20'+_0x552c7d);}}else _0x253ca9[_0x441d0b(0x1ec)](''+_0x16d38b+_0x41a77c+':\x20'+_0x29751d);}return _0x253ca9[_0x441d0b(0x1e4)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x1e323a,_0xbbac44){const _0x50287f=_0x3a7c,_0x37f64b=_0x1e323a();while(!![]){try{const _0x36f916=parseInt(_0x50287f(0x1c7))/0x1*(-parseInt(_0x50287f(0x1c6))/0x2)+parseInt(_0x50287f(0x1cc))/0x3+-parseInt(_0x50287f(0x1c8))/0x4+parseInt(_0x50287f(0x1cd))/0x5+-parseInt(_0x50287f(0x1c5))/0x6*(parseInt(_0x50287f(0x1ca))/0x7)+parseInt(_0x50287f(0x1ce))/0x8*(-parseInt(_0x50287f(0x1c9))/0x9)+parseInt(_0x50287f(0x1c4))/0xa;if(_0x36f916===_0xbbac44)break;else _0x37f64b['push'](_0x37f64b['shift']());}catch(_0x3fd288){_0x37f64b['push'](_0x37f64b['shift']());}}}(_0x3185,0x2b928));function _0x3a7c(_0x5b9185,_0x312266){_0x5b9185=_0x5b9185-0x1c4;const _0x3185d7=_0x3185();let _0x3a7cd1=_0x3185d7[_0x5b9185];return _0x3a7cd1;}import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0xc48dd9){const _0x421a12=_0x3a7c,_0x439477={'rkTDX':'skills','NBYTp':function(_0xee7afc,_0x3e1ef9,_0xbd34e5){return _0xee7afc(_0x3e1ef9,_0xbd34e5);},'ObDCU':_0x421a12(0x1cf)},_0x2435d4=join(__dirname,'..','..',_0x439477['rkTDX']),_0x418071=join(_0x2435d4,_0xc48dd9);try{return _0x439477[_0x421a12(0x1cb)](readFileSync,_0x418071,_0x439477['ObDCU']);}catch{return'';}}function _0x3185(){const _0x616026=['utf-8','10241460QmcsTM','432PjMBYJ','456406voxGkT','1nDPdYy','1042072LtoYSt','720lwBdxI','15463SwlAaB','NBYTp','102189xtPTzh','520560COujfE','33608cOrdlc'];_0x3185=function(){return _0x616026;};return _0x3185();}export function getRangerSkillContent(){return readSkillContent('ranger/SKILL.md');}
1
+ function _0x3994(_0x18b47b,_0x2b3780){_0x18b47b=_0x18b47b-0x18d;const _0xb1f8c=_0xb1f8();let _0x39945b=_0xb1f8c[_0x18b47b];return _0x39945b;}(function(_0x516ddf,_0x5065c1){const _0x14abe6=_0x3994,_0x4bcb26=_0x516ddf();while(!![]){try{const _0x14ece7=-parseInt(_0x14abe6(0x192))/0x1+-parseInt(_0x14abe6(0x18d))/0x2+-parseInt(_0x14abe6(0x191))/0x3+-parseInt(_0x14abe6(0x18f))/0x4+parseInt(_0x14abe6(0x194))/0x5+parseInt(_0x14abe6(0x190))/0x6+parseInt(_0x14abe6(0x193))/0x7;if(_0x14ece7===_0x5065c1)break;else _0x4bcb26['push'](_0x4bcb26['shift']());}catch(_0x1b9573){_0x4bcb26['push'](_0x4bcb26['shift']());}}}(_0xb1f8,0xa5ed8));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x4ada22){const _0x163994=_0x3994,_0x1cce6f={'oJInV':function(_0x12a320,_0x340109,_0x34c0f9,_0xec2347,_0x355d0a){return _0x12a320(_0x340109,_0x34c0f9,_0xec2347,_0x355d0a);}},_0x4c5f41=_0x1cce6f['oJInV'](join,__dirname,'..','..','skills'),_0x57e9cf=join(_0x4c5f41,_0x4ada22);try{return readFileSync(_0x57e9cf,_0x163994(0x18e));}catch{return'';}}export function getRangerSkillContent(){const _0x41dcea={'wtBWc':'ranger/SKILL.md'};return readSkillContent(_0x41dcea['wtBWc']);}function _0xb1f8(){const _0x27e692=['1319089VyqstX','20123040aIWStQ','4741085NzOCpK','1288854PfGsSO','utf-8','2190356byRbrs','4154436JMjTiM','3973794VbBrcq'];_0xb1f8=function(){return _0x27e692;};return _0xb1f8();}
@@ -1 +1 @@
1
- const _0x17e16f=_0x19b5;(function(_0x4933e8,_0x5d3d49){const _0xcaa469=_0x19b5,_0x578b72=_0x4933e8();while(!![]){try{const _0x285f4b=-parseInt(_0xcaa469(0x145))/0x1*(parseInt(_0xcaa469(0x13f))/0x2)+parseInt(_0xcaa469(0x148))/0x3+parseInt(_0xcaa469(0x136))/0x4*(parseInt(_0xcaa469(0x142))/0x5)+-parseInt(_0xcaa469(0x137))/0x6+-parseInt(_0xcaa469(0x135))/0x7+-parseInt(_0xcaa469(0x156))/0x8*(parseInt(_0xcaa469(0x152))/0x9)+parseInt(_0xcaa469(0x138))/0xa*(parseInt(_0xcaa469(0x144))/0xb);if(_0x285f4b===_0x5d3d49)break;else _0x578b72['push'](_0x578b72['shift']());}catch(_0x3a9c57){_0x578b72['push'](_0x578b72['shift']());}}}(_0x656d,0xe5f48));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';function _0x19b5(_0x277a36,_0x2e5b24){_0x277a36=_0x277a36-0x135;const _0x656deb=_0x656d();let _0x19b502=_0x656deb[_0x277a36];return _0x19b502;}import{getOpencodeSkillsDir}from'./opencodeConfig.js';function _0x656d(){const _0x1e876f=['feature-tracker','trim','SKILL.md','JkEQU','JRPYL','.md','join','490959hOZjFv','AjLMZ','push','warn','248gzbyPF','log','project','catch','12077443nLEELd','933716LkuCrp','10077858ztOJRr','19508630OwoHqZ','match','filter','skills','\x20\x20Files:\x20','aoZHJ','\x20\x20Installed\x20skill:\x20','2UQdAVm','ezJQp','\x20\x20Skill\x20not\x20found:\x20','5nfaOAf','kdeGn','33LRigbA','1685663acogmM','utf-8','ranger','4912842vXcEJl','tUVFZ','JHIip'];_0x656d=function(){return _0x1e876f;};return _0x656d();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x17e16f(0x147)];export const DEPRECATED_SKILLS=['e2e-test-recommender','bug-bash',_0x17e16f(0x14b)];export async function installSkill(_0x4a058e,_0x43077e={}){const _0x3dac6d=_0x17e16f,_0x39540b={'ezJQp':_0x3dac6d(0x158),'bcFUU':function(_0x592082,_0x395aa6,_0x179da2){return _0x592082(_0x395aa6,_0x179da2);},'JkEQU':function(_0x35c94a,_0x243651){return _0x35c94a(_0x243651);},'MWOIR':function(_0x5cb6de,_0x5ec7d3,_0x1c5c73){return _0x5cb6de(_0x5ec7d3,_0x1c5c73);},'JHIip':function(_0x118fe0,_0xbeb956){return _0x118fe0(_0xbeb956);},'zDALK':function(_0xd8d585,_0x4f599d,_0xd10bf0){return _0xd8d585(_0x4f599d,_0xd10bf0);},'EdBdv':function(_0x4add54,_0x1794d6,_0x184acb){return _0x4add54(_0x1794d6,_0x184acb);},'JRPYL':function(_0x39db59,_0x29f282,_0x54fb0c){return _0x39db59(_0x29f282,_0x54fb0c);},'aoZHJ':function(_0xb21ec4,_0x78d2fc,_0x558730){return _0xb21ec4(_0x78d2fc,_0x558730);},'rzXuh':function(_0x46e9df,_0x5e1953,_0x3eb64d){return _0x46e9df(_0x5e1953,_0x3eb64d);},'kdeGn':function(_0x288da6,_0x5e116a,_0x58fb9f){return _0x288da6(_0x5e116a,_0x58fb9f);},'tUVFZ':_0x3dac6d(0x14d),'eSsaW':function(_0x583fca,_0x1713e5,_0x1925c3){return _0x583fca(_0x1713e5,_0x1925c3);},'CtPZD':function(_0x555079,_0x5c000a,_0x5e36ed,_0x439c87){return _0x555079(_0x5c000a,_0x5e36ed,_0x439c87);}},{level:level=_0x39540b[_0x3dac6d(0x140)],cliVersion:_0xec43af,platform:platform='claude'}=_0x43077e,_0x44df1c=getSourceSkillsDir(),_0x419b5c=_0x39540b['bcFUU'](join,_0x44df1c,_0x4a058e),_0x534b06=join(_0x44df1c,_0x4a058e+'.md'),_0x1dbd8e=_0x39540b['JkEQU'](existsSync,_0x419b5c)&&statSync(_0x419b5c)['isDirectory']()&&_0x39540b[_0x3dac6d(0x14e)](existsSync,_0x39540b['MWOIR'](join,_0x419b5c,'SKILL.md')),_0x41c3a9=_0x39540b[_0x3dac6d(0x14a)](existsSync,_0x534b06);if(!_0x1dbd8e&&!_0x41c3a9)return console[_0x3dac6d(0x155)](_0x3dac6d(0x141)+_0x4a058e),![];const _0x8c414a=platform==='opencode'?getOpencodeSkillsDir(level):getSkillsDir(level),_0x2d6401=_0x39540b['zDALK'](join,_0x8c414a,_0x4a058e);await _0x39540b['EdBdv'](mkdir,_0x2d6401,{'recursive':!![]});let _0x43cf47,_0x207bd3=[];if(_0x1dbd8e){const _0x42ac00=await readdir(_0x419b5c),_0xe160f8=_0x42ac00[_0x3dac6d(0x13a)](_0x11f3d5=>_0x11f3d5['endsWith'](_0x3dac6d(0x150)));for(const _0x55a0cd of _0xe160f8){const _0x120386=join(_0x419b5c,_0x55a0cd),_0x3cb597=_0x39540b[_0x3dac6d(0x14f)](join,_0x2d6401,_0x55a0cd);await _0x39540b[_0x3dac6d(0x13d)](copyFile,_0x120386,_0x3cb597),_0x207bd3[_0x3dac6d(0x154)](_0x55a0cd);}_0x43cf47=await _0x39540b['rzXuh'](readFile,_0x39540b[_0x3dac6d(0x143)](join,_0x419b5c,_0x39540b[_0x3dac6d(0x149)]),_0x3dac6d(0x146));}else{_0x43cf47=await readFile(_0x534b06,_0x3dac6d(0x146));const _0x2f1130=_0x39540b['eSsaW'](join,_0x2d6401,_0x39540b['tUVFZ']);await writeFile(_0x2f1130,_0x43cf47,_0x3dac6d(0x146)),_0x207bd3['push'](_0x3dac6d(0x14d));}const {name:_0x2e2d75}=parseFrontmatter(_0x43cf47);return console['log'](_0x3dac6d(0x13e)+_0x2e2d75),console[_0x3dac6d(0x157)]('\x20\x20Location:\x20'+_0x2d6401),_0x207bd3['length']>0x1&&console['log'](_0x3dac6d(0x13c)+_0x207bd3[_0x3dac6d(0x151)](',\x20')),_0x39540b['CtPZD'](logLocalAgentInstallation,_0x4a058e,{'skillDisplayName':_0x2e2d75,'installLevel':level},_0xec43af)[_0x3dac6d(0x159)](()=>{}),!![];}function getSourceSkillsDir(){const _0x560c21=_0x17e16f,_0x4a0d69={'sKJCG':function(_0x5345be,_0xb930a6,_0x141a3c,_0x1c41e0,_0x18e9f4){return _0x5345be(_0xb930a6,_0x141a3c,_0x1c41e0,_0x18e9f4);},'FfGFf':_0x560c21(0x13b),'AjLMZ':function(_0x16282c,_0xf4ed70,_0x92578b,_0x5941f4,_0x33b86d,_0x3f139b){return _0x16282c(_0xf4ed70,_0x92578b,_0x5941f4,_0x33b86d,_0x3f139b);}},_0x32bfae=[_0x4a0d69['sKJCG'](join,__dirname,'..','..',_0x4a0d69['FfGFf']),_0x4a0d69[_0x560c21(0x153)](join,__dirname,'..','..','..','skills')];for(const _0x489908 of _0x32bfae){if(existsSync(_0x489908))return _0x489908;}return _0x32bfae[0x0];}function parseFrontmatter(_0x21e8cb){const _0x41892f=_0x17e16f,_0x4f2824={'OqNQd':'Invalid\x20skill\x20frontmatter'},_0x593ccc=_0x21e8cb[_0x41892f(0x139)](/^---\n([\s\S]+?)\n---/);if(!_0x593ccc)throw new Error(_0x4f2824['OqNQd']);const _0xd8f8e2=_0x593ccc[0x1],_0x338e4d=_0xd8f8e2[_0x41892f(0x139)](/name:\s*(.+)/),_0x3f4852=_0xd8f8e2['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0x338e4d?.[0x1][_0x41892f(0x14c)]()||'','description':_0x3f4852?.[0x1][_0x41892f(0x14c)]()||''};}export async function removeSkill(_0x5b23bf,_0x395b15){const _0x56c888=_0x17e16f,_0x1e21f4=getSkillsDir(_0x395b15),_0x4ec7a2=join(_0x1e21f4,_0x5b23bf);if(!existsSync(_0x4ec7a2))return![];try{return await rm(_0x4ec7a2,{'recursive':!![]}),console['log']('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x5b23bf),!![];}catch{return console[_0x56c888(0x155)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x5b23bf),![];}}
1
+ const _0x49b6c1=_0x42a6;(function(_0x266d0d,_0x2a0f3e){const _0x321667=_0x42a6,_0x34748f=_0x266d0d();while(!![]){try{const _0x7dfbb4=-parseInt(_0x321667(0xcc))/0x1+parseInt(_0x321667(0xd3))/0x2*(-parseInt(_0x321667(0xcb))/0x3)+parseInt(_0x321667(0xe9))/0x4*(-parseInt(_0x321667(0xc8))/0x5)+parseInt(_0x321667(0xe3))/0x6*(parseInt(_0x321667(0xea))/0x7)+-parseInt(_0x321667(0xdd))/0x8*(-parseInt(_0x321667(0xcf))/0x9)+parseInt(_0x321667(0xdc))/0xa*(parseInt(_0x321667(0xd0))/0xb)+parseInt(_0x321667(0xce))/0xc;if(_0x7dfbb4===_0x2a0f3e)break;else _0x34748f['push'](_0x34748f['shift']());}catch(_0x51e0a0){_0x34748f['push'](_0x34748f['shift']());}}}(_0x6239,0xc68a6));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x49b6c1(0xec)];export const DEPRECATED_SKILLS=['e2e-test-recommender','bug-bash','feature-tracker'];export async function installSkill(_0x5dca7e,_0x2116c3={}){const _0xa28c41=_0x49b6c1,_0x1dae7f={'xtkAi':_0xa28c41(0xef),'Xgwwo':function(_0x53a13e){return _0x53a13e();},'tNdNj':function(_0x3fca32,_0x1ce291,_0x1bc2a5){return _0x3fca32(_0x1ce291,_0x1bc2a5);},'NmwIx':function(_0x1a68cf,_0x26a815){return _0x1a68cf(_0x26a815);},'AkySi':function(_0x204682,_0x378ff8){return _0x204682(_0x378ff8);},'yRELt':function(_0x3e60c7,_0x3182b2){return _0x3e60c7&&_0x3182b2;},'RDKVf':_0xa28c41(0xe7),'vlHnM':function(_0x4fa014,_0x3b0d35,_0x1c219a){return _0x4fa014(_0x3b0d35,_0x1c219a);},'nbJuS':function(_0x221e4e,_0xdedaeb,_0x1b1f4f){return _0x221e4e(_0xdedaeb,_0x1b1f4f);},'TvRPJ':function(_0x3eb132,_0x4c9b23,_0x2a38f7,_0xc7eae7){return _0x3eb132(_0x4c9b23,_0x2a38f7,_0xc7eae7);},'cZPvH':'utf-8','XTXVc':function(_0x2fd2c2,_0x52ad24){return _0x2fd2c2(_0x52ad24);},'reZNF':function(_0x67c6da,_0x2dc2e6){return _0x67c6da>_0x2dc2e6;},'GIwrF':function(_0x1e92d1,_0x343820,_0x590119,_0x397fd5){return _0x1e92d1(_0x343820,_0x590119,_0x397fd5);}},{level:level=_0x1dae7f['xtkAi'],cliVersion:_0xa1705e,platform:platform='claude'}=_0x2116c3,_0x33ec68=_0x1dae7f['Xgwwo'](getSourceSkillsDir),_0x1b4fcf=_0x1dae7f['tNdNj'](join,_0x33ec68,_0x5dca7e),_0x4204b6=join(_0x33ec68,_0x5dca7e+'.md'),_0x1bdfca=_0x1dae7f[_0xa28c41(0xe4)](existsSync,_0x1b4fcf)&&_0x1dae7f[_0xa28c41(0xd8)](statSync,_0x1b4fcf)['isDirectory']()&&existsSync(join(_0x1b4fcf,_0xa28c41(0xd1))),_0x24d343=_0x1dae7f['NmwIx'](existsSync,_0x4204b6);if(_0x1dae7f[_0xa28c41(0xd2)](!_0x1bdfca,!_0x24d343))return console[_0xa28c41(0xdb)](_0xa28c41(0xe6)+_0x5dca7e),![];const _0x2df9d5=platform===_0x1dae7f['RDKVf']?_0x1dae7f[_0xa28c41(0xe4)](getOpencodeSkillsDir,level):getSkillsDir(level),_0xf9f01a=_0x1dae7f[_0xa28c41(0xd6)](join,_0x2df9d5,_0x5dca7e);await mkdir(_0xf9f01a,{'recursive':!![]});let _0x59a902,_0x1344ad=[];if(_0x1bdfca){const _0x51e0a8=await _0x1dae7f['AkySi'](readdir,_0x1b4fcf),_0x94be83=_0x51e0a8[_0xa28c41(0xe8)](_0x2c3fb8=>_0x2c3fb8[_0xa28c41(0xd7)](_0xa28c41(0xca)));for(const _0x5165fc of _0x94be83){const _0x504317=_0x1dae7f['nbJuS'](join,_0x1b4fcf,_0x5165fc),_0x1bc217=join(_0xf9f01a,_0x5165fc);await copyFile(_0x504317,_0x1bc217),_0x1344ad[_0xa28c41(0xde)](_0x5165fc);}_0x59a902=await readFile(join(_0x1b4fcf,_0xa28c41(0xd1)),'utf-8');}else{_0x59a902=await readFile(_0x4204b6,_0xa28c41(0xd4));const _0x51880c=_0x1dae7f[_0xa28c41(0xd6)](join,_0xf9f01a,_0xa28c41(0xd1));await _0x1dae7f['TvRPJ'](writeFile,_0x51880c,_0x59a902,_0x1dae7f['cZPvH']),_0x1344ad[_0xa28c41(0xde)]('SKILL.md');}const {name:_0x4f8e30}=_0x1dae7f['XTXVc'](parseFrontmatter,_0x59a902);return console['log'](_0xa28c41(0xcd)+_0x4f8e30),console['log'](_0xa28c41(0xee)+_0xf9f01a),_0x1dae7f['reZNF'](_0x1344ad[_0xa28c41(0xd5)],0x1)&&console[_0xa28c41(0xed)]('\x20\x20Files:\x20'+_0x1344ad['join'](',\x20')),_0x1dae7f[_0xa28c41(0xe5)](logLocalAgentInstallation,_0x5dca7e,{'skillDisplayName':_0x4f8e30,'installLevel':level},_0xa1705e)['catch'](()=>{}),!![];}function _0x6239(){const _0x4daa11=['warn','640bNCUTa','86584qkvWbX','push','match','Vivcl','ggwAM','Invalid\x20skill\x20frontmatter','18YbaeAV','NmwIx','GIwrF','\x20\x20Skill\x20not\x20found:\x20','opencode','filter','42620vuxbyM','1893934EoSPjI','pmYgf','ranger','log','\x20\x20Location:\x20','project','110KawUlG','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','.md','3wSvmTr','1617444hcbhKa','\x20\x20Installed\x20skill:\x20','24348996AuzLQE','522QREVmo','95744rImcxQ','SKILL.md','yRELt','2720966uewSaA','utf-8','length','vlHnM','endsWith','AkySi','XrNXh','RhWTX'];_0x6239=function(){return _0x4daa11;};return _0x6239();}function getSourceSkillsDir(){const _0x36b7e4=_0x49b6c1,_0x133c9d={'Vivcl':'skills','XrNXh':function(_0x209f69,_0x585475){return _0x209f69(_0x585475);}},_0x55543d=[join(__dirname,'..','..',_0x133c9d[_0x36b7e4(0xe0)]),join(__dirname,'..','..','..',_0x133c9d['Vivcl'])];for(const _0x2bea0b of _0x55543d){if(_0x133c9d[_0x36b7e4(0xd9)](existsSync,_0x2bea0b))return _0x2bea0b;}return _0x55543d[0x0];}function parseFrontmatter(_0x5a56e8){const _0x550b88=_0x49b6c1,_0x313043={'RhWTX':_0x550b88(0xe2)},_0x347b2d=_0x5a56e8['match'](/^---\n([\s\S]+?)\n---/);if(!_0x347b2d)throw new Error(_0x313043[_0x550b88(0xda)]);const _0x265887=_0x347b2d[0x1],_0x19ecaf=_0x265887['match'](/name:\s*(.+)/),_0x5f0c96=_0x265887[_0x550b88(0xdf)](/description:\s*"?(.+?)"?\n/);return{'name':_0x19ecaf?.[0x1]['trim']()||'','description':_0x5f0c96?.[0x1]['trim']()||''};}function _0x42a6(_0xd31e02,_0x5eab7d){_0xd31e02=_0xd31e02-0xc8;const _0x6239bb=_0x6239();let _0x42a647=_0x6239bb[_0xd31e02];return _0x42a647;}export async function removeSkill(_0x5c36bf,_0x2100ec){const _0x30344d=_0x49b6c1,_0x17848b={'pmYgf':function(_0x4a3233,_0x11e519){return _0x4a3233(_0x11e519);},'ggwAM':function(_0x1995ea,_0x58e4c0,_0x1acd52){return _0x1995ea(_0x58e4c0,_0x1acd52);}},_0x22f8a8=getSkillsDir(_0x2100ec),_0x33b2d0=join(_0x22f8a8,_0x5c36bf);if(!_0x17848b[_0x30344d(0xeb)](existsSync,_0x33b2d0))return![];try{return await _0x17848b[_0x30344d(0xe1)](rm,_0x33b2d0,{'recursive':!![]}),console[_0x30344d(0xed)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x5c36bf),!![];}catch{return console['warn'](_0x30344d(0xc9)+_0x5c36bf),![];}}
@@ -1 +1 @@
1
- const _0x48bbde=_0x278e;(function(_0x5f7a3c,_0xc1fc73){const _0x420d14=_0x278e,_0x4d95e0=_0x5f7a3c();while(!![]){try{const _0x3f6edd=parseInt(_0x420d14(0x140))/0x1*(parseInt(_0x420d14(0x105))/0x2)+-parseInt(_0x420d14(0x124))/0x3+-parseInt(_0x420d14(0x12f))/0x4*(-parseInt(_0x420d14(0x146))/0x5)+parseInt(_0x420d14(0x110))/0x6+-parseInt(_0x420d14(0x11b))/0x7*(parseInt(_0x420d14(0x136))/0x8)+parseInt(_0x420d14(0x135))/0x9+-parseInt(_0x420d14(0x12e))/0xa*(-parseInt(_0x420d14(0x128))/0xb);if(_0x3f6edd===_0xc1fc73)break;else _0x4d95e0['push'](_0x4d95e0['shift']());}catch(_0xe73c6a){_0x4d95e0['push'](_0x4d95e0['shift']());}}}(_0x5213,0xd2c59));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_SIMPLE_BLOCK=0xa3;function _0x278e(_0x5262e4,_0x20a73d){_0x5262e4=_0x5262e4-0x103;const _0x521357=_0x5213();let _0x278ece=_0x521357[_0x5262e4];return _0x278ece;}function _0x5213(){const _0xdca294=['vaSti','bodyAfterTimestamp','concat','eYwnt','stitchWebmFiles.ts','2746935DMEksj','readInt16BE','maxTicks','OFJms','12859pqoxJa','EhEzx','exit','zBOQv','ojaPB','xdXyd','3890jBoCeZ','44SDNhlC','cHMWz','length','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','iKEcE','CnBJW','10922895FCOoGZ','6581368pHrtCK','nNWsT','FmACi','timestamp','Stitched\x20','argv','mAHje','KNokr','AHWOf','hIpEZ','66107JfBqaB','gCpKO','FVPyh','RGqmx','HGYZp','gvpUA','58810iaGohk','ymDlI','bodyBeforeTimestamp','Yfaod','OvCpJ','slice','from','tfXVv','MREfh','YekSa','ihEIw','38kQUVgG','Dibaf','error','XRfsv','\x20files\x20->\x20','KAwSe','floor','pow','mFMxq','stitchWebmFiles.js','push','2222982tQKFBw','sFGZO','MXHui','UgOku','HAEtQ','jakQR','alloc','OEZin','TduPT','HdYBB','indexOf','14TUqrAA','KEZcN','OfQhX','GaXSZ'];_0x5213=function(){return _0xdca294;};return _0x5213();}function readVint(_0x4923c3,_0x5776c5){const _0x36e972=_0x278e,_0x1c4b76={'REVNa':function(_0x4b444e,_0x522ad3){return _0x4b444e>=_0x522ad3;},'EhEzx':function(_0x55a2bb,_0x2113e4){return _0x55a2bb&_0x2113e4;},'vaSti':function(_0x20534b,_0x1c1469){return _0x20534b>_0x1c1469;},'WFznu':function(_0xcae300,_0x47dfa6){return _0xcae300-_0x47dfa6;},'OfQhX':function(_0x58ec9c,_0x2592fb){return _0x58ec9c+_0x2592fb;},'ihEIw':function(_0x35e959,_0x53ddc7){return _0x35e959*_0x53ddc7;},'VvXBG':function(_0x21aa6e,_0x2b686b){return _0x21aa6e+_0x2b686b;}};if(_0x1c4b76['REVNa'](_0x5776c5,_0x4923c3['length']))return[0x0,0x0];const _0x3ada3f=_0x4923c3[_0x5776c5];let _0x309475=0x1,_0xe97dfb=0x80;while(_0x309475<=0x8&&!_0x1c4b76[_0x36e972(0x129)](_0x3ada3f,_0xe97dfb)){_0x309475++,_0xe97dfb>>=0x1;}if(_0x1c4b76[_0x36e972(0x11f)](_0x5776c5+_0x309475,_0x4923c3[_0x36e972(0x131)]))return[0x0,0x0];let _0x40aae4=_0x3ada3f&_0x1c4b76['WFznu'](_0xe97dfb,0x1);for(let _0x4d61a6=0x1;_0x4d61a6<_0x309475;_0x4d61a6++){_0x40aae4=_0x1c4b76[_0x36e972(0x11d)](_0x1c4b76[_0x36e972(0x104)](_0x40aae4,0x100),_0x4923c3[_0x1c4b76['VvXBG'](_0x5776c5,_0x4d61a6)]);}return[_0x40aae4,_0x309475];}function readId(_0x20db21,_0x45f190){const _0x4498d=_0x278e,_0x19d031={'hIpEZ':function(_0x17f3e7,_0x49d279){return _0x17f3e7>=_0x49d279;},'UgOku':function(_0x66534,_0x58b142){return _0x66534>_0x58b142;},'HAEtQ':function(_0x2a12ea,_0xdec78c){return _0x2a12ea+_0xdec78c;},'KNokr':function(_0x542294,_0x434fe6){return _0x542294*_0x434fe6;},'jakQR':function(_0x4be775,_0x165c05){return _0x4be775+_0x165c05;}};if(_0x45f190>=_0x20db21[_0x4498d(0x131)])return[0x0,0x0];const _0x3362c9=_0x20db21[_0x45f190];let _0x4e592a;if(_0x3362c9>=0x80)_0x4e592a=0x1;else{if(_0x19d031['hIpEZ'](_0x3362c9,0x40))_0x4e592a=0x2;else{if(_0x19d031[_0x4498d(0x13f)](_0x3362c9,0x20))_0x4e592a=0x3;else{if(_0x3362c9>=0x10)_0x4e592a=0x4;else return[_0x3362c9,0x1];}}}if(_0x19d031[_0x4498d(0x113)](_0x19d031[_0x4498d(0x114)](_0x45f190,_0x4e592a),_0x20db21['length']))return[0x0,0x0];let _0x4a1992=0x0;for(let _0x559106=0x0;_0x559106<_0x4e592a;_0x559106++){_0x4a1992=_0x19d031[_0x4498d(0x13d)](_0x4a1992,0x100)+_0x20db21[_0x19d031[_0x4498d(0x115)](_0x45f190,_0x559106)];}return[_0x4a1992,_0x4e592a];}function readUint(_0x11ce9f,_0x35aafa,_0x404a15){const _0x58ef6c=_0x278e,_0x14e755={'Dibaf':function(_0x3f81ea,_0x194469){return _0x3f81ea<_0x194469;},'Yfaod':function(_0x593429,_0xc87e1a){return _0x593429+_0xc87e1a;}};let _0x1415a8=0x0;for(let _0x2da27e=0x0;_0x14e755[_0x58ef6c(0x106)](_0x2da27e,_0x404a15);_0x2da27e++){_0x1415a8=_0x14e755[_0x58ef6c(0x149)](_0x1415a8*0x100,_0x11ce9f[_0x35aafa+_0x2da27e]);}return _0x1415a8;}function isUnknownSize(_0x4d8914,_0x5b5d11){const _0x461a7d=_0x278e,_0x3634d3={'OvCpJ':function(_0x4ee051,_0x18e32a){return _0x4ee051-_0x18e32a;},'BoLMz':function(_0x559782,_0x21b5a5){return _0x559782*_0x21b5a5;}};return _0x4d8914===_0x3634d3[_0x461a7d(0x14a)](Math[_0x461a7d(0x10c)](0x2,_0x3634d3['BoLMz'](0x7,_0x5b5d11)),0x1);}function writeVint(_0x46092,_0x499e41){const _0x136fed=_0x278e,_0xa5488a={'SWfoH':function(_0xaef9d4,_0x1b3e2c){return _0xaef9d4-_0x1b3e2c;},'tfXVv':function(_0x55c6e8,_0x1156f8){return _0x55c6e8/_0x1156f8;}};let _0x2db15c=_0x499e41||0x1;while(_0xa5488a['SWfoH'](Math['pow'](0x2,0x7*_0x2db15c),0x2)<_0x46092)_0x2db15c++;const _0x5967dd=Buffer['alloc'](_0x2db15c);for(let _0x3bac22=_0xa5488a['SWfoH'](_0x2db15c,0x1);_0x3bac22>=0x0;_0x3bac22--){_0x5967dd[_0x3bac22]=_0x46092&0xff,_0x46092=Math['floor'](_0xa5488a[_0x136fed(0x14d)](_0x46092,0x100));}return _0x5967dd[0x0]|=0x1<<0x8-_0x2db15c,_0x5967dd;}function writeUint(_0x4f484f,_0x5d8a3e){const _0x106a6e=_0x278e,_0x9032f5={'HvcoE':function(_0x318c51,_0x32cbee){return _0x318c51-_0x32cbee;}},_0x41d261=Buffer[_0x106a6e(0x116)](_0x5d8a3e);for(let _0x32fc28=_0x9032f5['HvcoE'](_0x5d8a3e,0x1);_0x32fc28>=0x0;_0x32fc28--){_0x41d261[_0x32fc28]=_0x4f484f&0xff,_0x4f484f=Math[_0x106a6e(0x10b)](_0x4f484f/0x100);}return _0x41d261;}function writeUnknownSizeVint(_0x46a7ad){const _0x5f1a7a=_0x278e,_0x288d9e={'eYwnt':function(_0x453449,_0x122233){return _0x453449>>_0x122233;}},_0x409536=Buffer['alloc'](_0x46a7ad,0xff);return _0x409536[0x0]=_0x288d9e[_0x5f1a7a(0x122)](0xff,_0x46a7ad-0x1),_0x409536;}function uintSize(_0x56022f){const _0x7a7371=_0x278e,_0x48e4cc={'MuFTx':function(_0x1307f3,_0x1da141){return _0x1307f3/_0x1da141;}};if(_0x56022f===0x0)return 0x1;let _0x26c55a=0x0,_0xbd21c1=_0x56022f;while(_0xbd21c1>0x0){_0x26c55a++,_0xbd21c1=Math[_0x7a7371(0x10b)](_0x48e4cc['MuFTx'](_0xbd21c1,0x100));}return _0x26c55a;}function findTimestampScale(_0x432c48,_0x15c321){const _0x332ee1=_0x278e,_0x21147c={'GaXSZ':function(_0x39d103,_0x259b58){return _0x39d103+_0x259b58;},'xdXyd':function(_0x50c39f,_0x18733d){return _0x50c39f+_0x18733d;},'mVNyY':function(_0x4a1eba,_0x2a7558){return _0x4a1eba<_0x2a7558;},'GIhgC':function(_0x3a0bb3,_0x358909,_0x1a16f9){return _0x3a0bb3(_0x358909,_0x1a16f9);},'mFMxq':function(_0x4711bb,_0x361378){return _0x4711bb===_0x361378;},'MXHui':function(_0x1fa2b2,_0x4735ba){return _0x1fa2b2+_0x4735ba;},'FHTQR':function(_0x322af7,_0x51e3b3,_0x22f10e){return _0x322af7(_0x51e3b3,_0x22f10e);}};let _0x55048e=_0x15c321;const _0x175bce=Math['min'](_0x432c48['length'],_0x21147c[_0x332ee1(0x11e)](_0x15c321,0x2710));while(_0x55048e<_0x175bce){const [_0x5aab8a,_0x18d539]=readId(_0x432c48,_0x55048e),[_0x24cd44,_0x48731d]=readVint(_0x432c48,_0x55048e+_0x18d539);if(_0x5aab8a===ID_INFO){let _0x483af3=_0x21147c[_0x332ee1(0x12d)](_0x55048e,_0x18d539)+_0x48731d;const _0xf6497e=_0x483af3+_0x24cd44;while(_0x21147c['mVNyY'](_0x483af3,_0xf6497e)){const [_0xd5df96,_0x211067]=readId(_0x432c48,_0x483af3),[_0x16758c,_0x4b4ed6]=_0x21147c['GIhgC'](readVint,_0x432c48,_0x21147c['GaXSZ'](_0x483af3,_0x211067));if(_0x21147c[_0x332ee1(0x10d)](_0xd5df96,ID_TIMESTAMP_SCALE))return readUint(_0x432c48,_0x483af3+_0x211067+_0x4b4ed6,_0x16758c);_0x483af3+=_0x21147c[_0x332ee1(0x112)](_0x211067+_0x4b4ed6,_0x16758c);}break;}if(_0x5aab8a===ID_CLUSTER)break;if(_0x21147c['FHTQR'](isUnknownSize,_0x24cd44,_0x48731d))break;_0x55048e+=_0x18d539+_0x48731d+_0x24cd44;}return 0xf4240;}function findFirstClusterOffset(_0x266b7d,_0x2fc174){const _0x8e176a=_0x278e,_0x54da1b={'AQeWM':function(_0x2d8a88,_0xf54133,_0x1a2197){return _0x2d8a88(_0xf54133,_0x1a2197);},'ZuFLB':function(_0x11ed94,_0x5630be,_0x40432a){return _0x11ed94(_0x5630be,_0x40432a);},'TduPT':function(_0x44104d,_0x2e89c7,_0x185858){return _0x44104d(_0x2e89c7,_0x185858);},'sFGZO':function(_0x36cbeb,_0x5983ef){return _0x36cbeb+_0x5983ef;}};let _0x360aab=_0x2fc174;while(_0x360aab<_0x266b7d[_0x8e176a(0x131)]){const [_0x52a72b,_0x3f6aeb]=_0x54da1b['AQeWM'](readId,_0x266b7d,_0x360aab);if(_0x52a72b===ID_CLUSTER)return _0x360aab;const [_0x962765,_0xf9d629]=_0x54da1b['ZuFLB'](readVint,_0x266b7d,_0x360aab+_0x3f6aeb);if(_0x54da1b[_0x8e176a(0x118)](isUnknownSize,_0x962765,_0xf9d629))return _0x360aab;_0x360aab+=_0x54da1b[_0x8e176a(0x111)](_0x3f6aeb,_0xf9d629)+_0x962765;}return _0x266b7d['length'];}function findClusterEnd(_0x39187c,_0x48ed0e,_0x54422b,_0x37b373){const _0x187e48=_0x278e,_0x39cbbf={'mAHje':function(_0x297825,_0x290bfd,_0x147c45){return _0x297825(_0x290bfd,_0x147c45);},'yBvVS':function(_0x30bc9d,_0x3cf891){return _0x30bc9d<_0x3cf891;},'MREfh':function(_0x282879,_0x372be7){return _0x282879-_0x372be7;},'xHmmA':function(_0x5585d8,_0x10499f,_0x237e2d){return _0x5585d8(_0x10499f,_0x237e2d);},'cHMWz':function(_0x37539a,_0x1a75c2,_0x406917){return _0x37539a(_0x1a75c2,_0x406917);},'RGqmx':function(_0x473107,_0x41ae24){return _0x473107+_0x41ae24;}};if(!_0x39cbbf[_0x187e48(0x13c)](isUnknownSize,_0x54422b,_0x37b373))return _0x48ed0e+_0x54422b;const _0x5c2b5d=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x2e73f7=_0x48ed0e;while(_0x39cbbf['yBvVS'](_0x2e73f7,_0x39cbbf[_0x187e48(0x14e)](_0x39187c['length'],0x4))){const [_0x3b6cb9,_0x2147f5]=_0x39cbbf['xHmmA'](readId,_0x39187c,_0x2e73f7);if(_0x5c2b5d['has'](_0x3b6cb9))return _0x2e73f7;const [_0x2c3d35,_0x195106]=_0x39cbbf[_0x187e48(0x130)](readVint,_0x39187c,_0x2e73f7+_0x2147f5);if(isUnknownSize(_0x2c3d35,_0x195106))return _0x39187c[_0x187e48(0x131)];_0x2e73f7+=_0x39cbbf[_0x187e48(0x143)](_0x2147f5+_0x195106,_0x2c3d35);}return _0x39187c['length'];}function extractClusters(_0xedd1c3,_0x5319c7){const _0x1764b6=_0x278e,_0xfe3be={'zBOQv':function(_0xe143c4,_0x4d4eb8){return _0xe143c4<_0x4d4eb8;},'XRfsv':function(_0x57a459,_0x485694){return _0x57a459===_0x485694;},'gCpKO':function(_0x37c42d,_0x32fba6){return _0x37c42d!==_0x32fba6;},'KEZcN':function(_0x595a00,_0x5e9c0d){return _0x595a00+_0x5e9c0d;},'TcLrc':function(_0x396ac6,_0x190b62){return _0x396ac6+_0x190b62;},'CnBJW':function(_0x143426,_0x2ae96d){return _0x143426+_0x2ae96d;},'OcqSu':function(_0x5a5bf8,_0x316d59,_0x4b5eca,_0x1900c1,_0xcb8d97){return _0x5a5bf8(_0x316d59,_0x4b5eca,_0x1900c1,_0xcb8d97);},'gvpUA':function(_0x4c7d4e,_0xf9794,_0x3175a1){return _0x4c7d4e(_0xf9794,_0x3175a1);},'syGUf':function(_0x4dbf96,_0x3b8e5d){return _0x4dbf96+_0x3b8e5d;},'ojaPB':function(_0x5095b0,_0x21e69b){return _0x5095b0+_0x21e69b;},'iKEcE':function(_0xa70205,_0x41c9cb,_0x30dec0){return _0xa70205(_0x41c9cb,_0x30dec0);},'WsxRo':function(_0x491fed,_0x57dbba){return _0x491fed+_0x57dbba;},'vHPEo':function(_0x2b542a,_0x20e8f8){return _0x2b542a>=_0x20e8f8;},'rMHBi':function(_0x32f468,_0x4cd6fb){return _0x32f468+_0x4cd6fb;},'FzsNi':function(_0x2072ab,_0x339c0c){return _0x2072ab+_0x339c0c;}},_0x39ee94=[],_0x52b022=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x569ad0=0x0;while(_0xfe3be[_0x1764b6(0x12b)](_0x569ad0,_0xedd1c3[_0x1764b6(0x131)])){const _0x9ff3c7=_0xedd1c3[_0x1764b6(0x11a)](_0x52b022,_0x569ad0);if(_0xfe3be[_0x1764b6(0x108)](_0x9ff3c7,-0x1))break;const [_0x4b234f,_0x434068]=readId(_0xedd1c3,_0x9ff3c7);if(_0xfe3be[_0x1764b6(0x141)](_0x4b234f,ID_CLUSTER)){_0x569ad0=_0xfe3be[_0x1764b6(0x11c)](_0x9ff3c7,0x1);continue;}const [_0x386e71,_0x1472dc]=readVint(_0xedd1c3,_0xfe3be['TcLrc'](_0x9ff3c7,_0x434068)),_0x72aa51=_0xfe3be[_0x1764b6(0x134)](_0x9ff3c7+_0x434068,_0x1472dc),_0x2a1059=_0xfe3be['OcqSu'](findClusterEnd,_0xedd1c3,_0x72aa51,_0x386e71,_0x1472dc);let _0x34c919=_0x72aa51,_0x1fcd1e=0x0,_0x624a09=0x2,_0x28f44f=![],_0x1d9c4f=Buffer['alloc'](0x0),_0x9b056c=Buffer[_0x1764b6(0x116)](0x0);while(_0x34c919<_0x2a1059){const [_0x4294dc,_0x31b318]=readId(_0xedd1c3,_0x34c919),[_0x4eea0b,_0x4d2b88]=_0xfe3be['gvpUA'](readVint,_0xedd1c3,_0x34c919+_0x31b318);if(_0x4294dc===ID_TIMESTAMP){_0x1fcd1e=readUint(_0xedd1c3,_0xfe3be[_0x1764b6(0x11c)](_0xfe3be['KEZcN'](_0x34c919,_0x31b318),_0x4d2b88),_0x4eea0b),_0x624a09=_0x4eea0b,_0x28f44f=!![],_0x1d9c4f=_0xedd1c3[_0x1764b6(0x14b)](_0x72aa51,_0x34c919);const _0x36be3f=_0xfe3be['syGUf'](_0x34c919+_0x31b318,_0x4d2b88)+_0x4eea0b;_0x9b056c=_0xedd1c3[_0x1764b6(0x14b)](_0x36be3f,_0x2a1059);break;}if(_0x4294dc===ID_CLUSTER)break;if(isUnknownSize(_0x4eea0b,_0x4d2b88))break;_0x34c919+=_0xfe3be['ojaPB'](_0x31b318+_0x4d2b88,_0x4eea0b);}!_0x28f44f&&(_0x9b056c=_0xedd1c3['slice'](_0x72aa51,_0x2a1059));let _0x876d8f=_0x1fcd1e;_0x34c919=_0x72aa51;while(_0x34c919<_0x2a1059){const [_0x2a1eb2,_0x3f50e3]=_0xfe3be[_0x1764b6(0x133)](readId,_0xedd1c3,_0x34c919),[_0x3df780,_0x179210]=_0xfe3be[_0x1764b6(0x145)](readVint,_0xedd1c3,_0xfe3be['WsxRo'](_0x34c919,_0x3f50e3));if(_0x2a1eb2===ID_SIMPLE_BLOCK&&_0xfe3be['vHPEo'](_0x3df780,0x4)){const _0x220468=_0xfe3be['rMHBi'](_0x34c919+_0x3f50e3,_0x179210),[,_0x4ec17b]=readVint(_0xedd1c3,_0x220468),_0x43f896=_0xedd1c3[_0x1764b6(0x125)](_0xfe3be['FzsNi'](_0x220468,_0x4ec17b)),_0x59c276=_0xfe3be[_0x1764b6(0x12c)](_0x1fcd1e,_0x43f896);if(_0x59c276>_0x876d8f)_0x876d8f=_0x59c276;}if(_0xfe3be[_0x1764b6(0x108)](_0x2a1eb2,ID_CLUSTER))break;if(isUnknownSize(_0x3df780,_0x179210))break;_0x34c919+=_0x3f50e3+_0x179210+_0x3df780;}_0x39ee94[_0x1764b6(0x10f)]({'timestamp':_0x1fcd1e,'maxTicks':_0x876d8f,'bodyBeforeTimestamp':_0x1d9c4f,'bodyAfterTimestamp':_0x9b056c,'timestampElementSize':_0x624a09}),_0x569ad0=_0x2a1059;}return _0x39ee94;}function parseWebm(_0x4feb91){const _0x392789=_0x278e,_0x1f8e81={'lRmme':function(_0x28d790,_0x40d07b){return _0x28d790+_0x40d07b;},'nNWsT':function(_0x42ea0c,_0x2bc849,_0x3b5334){return _0x42ea0c(_0x2bc849,_0x3b5334);},'hRkmY':function(_0x1b305b,_0x1e0266){return _0x1b305b!==_0x1e0266;},'LSnJC':function(_0x568938,_0x5417f3){return _0x568938+_0x5417f3;},'FVPyh':function(_0x176c09,_0x40bc4f){return _0x176c09>_0x40bc4f;}};let _0x1829ae=0x0;const [,_0x1a700f]=readId(_0x4feb91,_0x1829ae),[_0x4c9855,_0x2f3af8]=readVint(_0x4feb91,_0x1829ae+_0x1a700f);_0x1829ae+=_0x1f8e81['lRmme'](_0x1a700f+_0x2f3af8,_0x4c9855);const [_0x12a783,_0x52d99c]=_0x1f8e81[_0x392789(0x137)](readId,_0x4feb91,_0x1829ae);if(_0x1f8e81['hRkmY'](_0x12a783,ID_SEGMENT))return null;const [,_0x34c0aa]=readVint(_0x4feb91,_0x1f8e81['lRmme'](_0x1829ae,_0x52d99c)),_0x5002a9=_0x1f8e81['lRmme'](_0x1f8e81['LSnJC'](_0x1829ae,_0x52d99c),_0x34c0aa),_0x51aaa6=_0x1f8e81[_0x392789(0x137)](findTimestampScale,_0x4feb91,_0x5002a9),_0x4447ab=findFirstClusterOffset(_0x4feb91,_0x5002a9),_0x4edb51=_0x4feb91['slice'](0x0,_0x4447ab),_0x35e136=extractClusters(_0x4feb91,_0x51aaa6);let _0x1dd618=0x0;for(const _0x56dd75 of _0x35e136){if(_0x1f8e81[_0x392789(0x142)](_0x56dd75[_0x392789(0x126)],_0x1dd618))_0x1dd618=_0x56dd75['maxTicks'];}return{'header':_0x4edb51,'clusters':_0x35e136,'timestampScale':_0x51aaa6,'maxTimestampTicks':_0x1dd618};}function buildCluster(_0xd61274,_0x3e2822,_0xd28333){const _0x1801f6=_0x278e,_0x54519f={'OFJms':function(_0x417350,_0x3fe21f){return _0x417350(_0x3fe21f);}},_0x29de0a=Buffer[_0x1801f6(0x14c)]([0x1f,0x43,0xb6,0x75]),_0x2de1f1=Math['max'](0x4,_0x54519f[_0x1801f6(0x127)](uintSize,_0xd61274)),_0x5099e1=Buffer[_0x1801f6(0x121)]([Buffer['from']([ID_TIMESTAMP]),writeVint(_0x2de1f1),writeUint(_0xd61274,_0x2de1f1)]),_0xc9215d=Buffer['concat']([_0x3e2822,_0x5099e1,_0xd28333]),_0x23002f=writeVint(_0xc9215d['length']);return Buffer[_0x1801f6(0x121)]([_0x29de0a,_0x23002f,_0xc9215d]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x21da98){const _0x3e57e3=_0x278e,_0x30e2a4={'KAwSe':function(_0x2b0409,_0x4332c0,_0x12b7db){return _0x2b0409(_0x4332c0,_0x12b7db);},'HGYZp':function(_0x39acc0,_0x17837b){return _0x39acc0+_0x17837b;},'OEZin':function(_0x4e8e14,_0x37abf1){return _0x4e8e14+_0x37abf1;},'AzSnX':function(_0x2f7f37,_0x80d129){return _0x2f7f37+_0x80d129;},'YyyQe':function(_0x5519a8,_0xa3df1,_0x2546d4){return _0x5519a8(_0xa3df1,_0x2546d4);},'ddAlu':function(_0x216111,_0x140e6b,_0x4263b6){return _0x216111(_0x140e6b,_0x4263b6);},'YekSa':function(_0x4c02c9,_0x19fa15){return _0x4c02c9===_0x19fa15;},'FmACi':function(_0x209104,_0x11e8b0){return _0x209104<_0x11e8b0;},'AHWOf':function(_0x1fb82a,_0xbd8133){return _0x1fb82a+_0xbd8133;},'HdYBB':function(_0x98f449,_0x58e7dc){return _0x98f449+_0x58e7dc;}},_0x2b6ede=Buffer[_0x3e57e3(0x14c)](_0x21da98);let _0x424cc2=0x0;const [,_0x1f6fd4]=_0x30e2a4[_0x3e57e3(0x10a)](readId,_0x2b6ede,_0x424cc2),[_0x5ec022,_0x3ee674]=readVint(_0x2b6ede,_0x424cc2+_0x1f6fd4),_0x23994b=_0x30e2a4[_0x3e57e3(0x144)](_0x30e2a4['OEZin'](_0x424cc2,_0x1f6fd4)+_0x3ee674,_0x5ec022),[,_0xdc674e]=readId(_0x2b6ede,_0x23994b),[,_0x4fc894]=_0x30e2a4['KAwSe'](readVint,_0x2b6ede,_0x30e2a4[_0x3e57e3(0x117)](_0x23994b,_0xdc674e)),_0x493085=_0x23994b+_0xdc674e+_0x4fc894,_0x157f14=writeUnknownSizeVint(_0x4fc894);_0x157f14['copy'](_0x2b6ede,_0x30e2a4['OEZin'](_0x23994b,_0xdc674e));let _0x214adb=_0x493085;const _0x37d807=Math['min'](_0x2b6ede[_0x3e57e3(0x131)],_0x30e2a4['AzSnX'](_0x493085,0x2710));while(_0x214adb<_0x37d807){const [_0xf578a5,_0x135cd0]=_0x30e2a4['YyyQe'](readId,_0x2b6ede,_0x214adb),[_0x5960f2,_0x3667ee]=_0x30e2a4['ddAlu'](readVint,_0x2b6ede,_0x214adb+_0x135cd0);if(_0xf578a5===ID_CLUSTER)break;if(isUnknownSize(_0x5960f2,_0x3667ee))break;if(_0x30e2a4[_0x3e57e3(0x103)](_0xf578a5,ID_INFO)){const _0x5a3ddc=_0x214adb+_0x135cd0+_0x3667ee,_0x4202b9=_0x5a3ddc+_0x5960f2,_0x22bdfe=[];let _0x59ba4c=_0x5a3ddc;while(_0x30e2a4[_0x3e57e3(0x138)](_0x59ba4c,_0x4202b9)){const [_0x1555d8,_0x5b422f]=_0x30e2a4['KAwSe'](readId,_0x2b6ede,_0x59ba4c),[_0x1bbe9a,_0x2568d6]=readVint(_0x2b6ede,_0x30e2a4[_0x3e57e3(0x13e)](_0x59ba4c,_0x5b422f)),_0x2cb08d=_0x30e2a4[_0x3e57e3(0x119)](_0x5b422f,_0x2568d6)+_0x1bbe9a;_0x1555d8!==ID_DURATION&&_0x22bdfe[_0x3e57e3(0x10f)](_0x2b6ede[_0x3e57e3(0x14b)](_0x59ba4c,_0x30e2a4[_0x3e57e3(0x117)](_0x59ba4c,_0x2cb08d))),_0x59ba4c+=_0x2cb08d;}const _0x41fc8d=Buffer[_0x3e57e3(0x121)](_0x22bdfe),_0x2ebde8=Buffer['concat']([_0x2b6ede[_0x3e57e3(0x14b)](_0x214adb,_0x30e2a4['AHWOf'](_0x214adb,_0x135cd0)),writeVint(_0x41fc8d['length'],_0x3667ee)]);return Buffer[_0x3e57e3(0x121)]([_0x2b6ede['slice'](0x0,_0x214adb),_0x2ebde8,_0x41fc8d,_0x2b6ede[_0x3e57e3(0x14b)](_0x4202b9)]);}_0x214adb+=_0x30e2a4['OEZin'](_0x135cd0,_0x3667ee)+_0x5960f2;}return _0x2b6ede;}export function stitchWebmFiles(_0x131dcd,_0x3ae027){const _0x1ab38e=_0x278e,_0x17a772={'ymDlI':function(_0x5c61fe,_0x4120b3){return _0x5c61fe(_0x4120b3);},'lLZQh':function(_0x5a0364,_0x233d73){return _0x5a0364(_0x233d73);},'EZZps':function(_0xf23da5,_0x14446e){return _0xf23da5<_0x14446e;},'kwTyx':function(_0x11015d,_0x347775,_0x24722e,_0xc886e4){return _0x11015d(_0x347775,_0x24722e,_0xc886e4);}};if(_0x131dcd['length']<=0x1)return![];const _0x136cef=[];for(const _0x4e34c6 of _0x131dcd){const _0x1e3aac=readFileSync(_0x4e34c6),_0x28d299=_0x17a772[_0x1ab38e(0x147)](parseWebm,_0x1e3aac);if(!_0x28d299||_0x28d299['clusters'][_0x1ab38e(0x131)]===0x0)return![];_0x136cef['push'](_0x28d299);}const _0x15e45d=_0x136cef[0x0],_0x166cd3=_0x17a772['lLZQh'](rebuildHeaderWithoutDuration,_0x15e45d['header']),_0x46066b=[_0x166cd3];let _0x47230b=0x0;for(let _0x42925f=0x0;_0x17a772['EZZps'](_0x42925f,_0x136cef['length']);_0x42925f++){const _0x15592d=_0x136cef[_0x42925f];for(const _0x3b37e7 of _0x15592d['clusters']){const _0x59874b=_0x3b37e7[_0x1ab38e(0x139)]+_0x47230b;_0x46066b['push'](_0x17a772['kwTyx'](buildCluster,_0x59874b,_0x3b37e7[_0x1ab38e(0x148)],_0x3b37e7[_0x1ab38e(0x120)]));}const _0x2b9b82=0x1e;_0x47230b+=_0x15592d['maxTimestampTicks']+_0x2b9b82;}return writeFileSync(_0x3ae027,Buffer['concat'](_0x46066b)),!![];}if(process['argv'][0x1]?.['endsWith'](_0x48bbde(0x123))||process['argv'][0x1]?.['endsWith'](_0x48bbde(0x10e))){const args=process[_0x48bbde(0x13b)]['slice'](0x2);args[_0x48bbde(0x131)]<0x3&&(console[_0x48bbde(0x107)](_0x48bbde(0x132)),process[_0x48bbde(0x12a)](0x1));const output=args[args[_0x48bbde(0x131)]-0x1],inputs=args[_0x48bbde(0x14b)](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console['log'](_0x48bbde(0x13a)+inputs[_0x48bbde(0x131)]+_0x48bbde(0x109)+output):console['log']('Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.');}
1
+ const _0x5b8b49=_0x15ba;(function(_0x569fe4,_0x553963){const _0x447d77=_0x15ba,_0x38ad1f=_0x569fe4();while(!![]){try{const _0x12fb8c=parseInt(_0x447d77(0xa7))/0x1+parseInt(_0x447d77(0xa1))/0x2*(parseInt(_0x447d77(0xab))/0x3)+parseInt(_0x447d77(0xa3))/0x4+parseInt(_0x447d77(0xb3))/0x5*(parseInt(_0x447d77(0xa6))/0x6)+parseInt(_0x447d77(0x9c))/0x7*(parseInt(_0x447d77(0xcf))/0x8)+parseInt(_0x447d77(0xca))/0x9*(parseInt(_0x447d77(0xb0))/0xa)+-parseInt(_0x447d77(0x9b))/0xb*(parseInt(_0x447d77(0xa2))/0xc);if(_0x12fb8c===_0x553963)break;else _0x38ad1f['push'](_0x38ad1f['shift']());}catch(_0x25fd7d){_0x38ad1f['push'](_0x38ad1f['shift']());}}}(_0xd9d2,0x31d5b));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x13718b,_0xfc7748){const _0x3f204d=_0x15ba,_0x30da94={'Pzcmu':function(_0x2d7f00,_0x10bf3b){return _0x2d7f00&_0x10bf3b;},'ptShO':function(_0x349f9b,_0x5d2270){return _0x349f9b-_0x5d2270;},'fhvqJ':function(_0x16119f,_0x13e618){return _0x16119f+_0x13e618;},'ZeZxA':function(_0x216393,_0x3a0b1f){return _0x216393*_0x3a0b1f;}};if(_0xfc7748>=_0x13718b['length'])return[0x0,0x0];const _0x3e652d=_0x13718b[_0xfc7748];let _0x3785d6=0x1,_0x5592fc=0x80;while(_0x3785d6<=0x8&&!(_0x3e652d&_0x5592fc)){_0x3785d6++,_0x5592fc>>=0x1;}if(_0xfc7748+_0x3785d6>_0x13718b['length'])return[0x0,0x0];let _0x117fd9=_0x30da94[_0x3f204d(0xd0)](_0x3e652d,_0x30da94[_0x3f204d(0xc2)](_0x5592fc,0x1));for(let _0x1f557d=0x1;_0x1f557d<_0x3785d6;_0x1f557d++){_0x117fd9=_0x30da94[_0x3f204d(0x97)](_0x30da94[_0x3f204d(0x92)](_0x117fd9,0x100),_0x13718b[_0xfc7748+_0x1f557d]);}return[_0x117fd9,_0x3785d6];}function readId(_0x44444e,_0x5f0b81){const _0x4a262b=_0x15ba,_0x1ef82f={'rOSFa':function(_0x18309c,_0x51152a){return _0x18309c>=_0x51152a;},'qNoaq':function(_0xc0fab6,_0x141a5e){return _0xc0fab6<_0x141a5e;},'lOifO':function(_0x48ab40,_0x1caa21){return _0x48ab40+_0x1caa21;},'PPYGt':function(_0x137b3e,_0xe0f561){return _0x137b3e*_0xe0f561;}};if(_0x5f0b81>=_0x44444e[_0x4a262b(0xb7)])return[0x0,0x0];const _0x34ed07=_0x44444e[_0x5f0b81];let _0x3a5ac6;if(_0x34ed07>=0x80)_0x3a5ac6=0x1;else{if(_0x1ef82f[_0x4a262b(0xa8)](_0x34ed07,0x40))_0x3a5ac6=0x2;else{if(_0x34ed07>=0x20)_0x3a5ac6=0x3;else{if(_0x34ed07>=0x10)_0x3a5ac6=0x4;else return[_0x34ed07,0x1];}}}if(_0x5f0b81+_0x3a5ac6>_0x44444e['length'])return[0x0,0x0];let _0xcc68c0=0x0;for(let _0x50dd62=0x0;_0x1ef82f[_0x4a262b(0xb4)](_0x50dd62,_0x3a5ac6);_0x50dd62++){_0xcc68c0=_0x1ef82f[_0x4a262b(0x90)](_0x1ef82f['PPYGt'](_0xcc68c0,0x100),_0x44444e[_0x5f0b81+_0x50dd62]);}return[_0xcc68c0,_0x3a5ac6];}function readUint(_0x16447c,_0x4226ed,_0x30fe3c){const _0x30923e=_0x15ba,_0x206926={'kPFaV':function(_0x3fb60d,_0x2cd73b){return _0x3fb60d+_0x2cd73b;},'vRbsY':function(_0x9804f5,_0x284b2a){return _0x9804f5+_0x284b2a;}};let _0x2a69c6=0x0;for(let _0x526d88=0x0;_0x526d88<_0x30fe3c;_0x526d88++){_0x2a69c6=_0x206926[_0x30923e(0xc4)](_0x2a69c6*0x100,_0x16447c[_0x206926[_0x30923e(0xbf)](_0x4226ed,_0x526d88)]);}return _0x2a69c6;}function _0xd9d2(){const _0x57b9e3=['HXqRV','tOUuC','DZnTV','spWon','pow','PBPpd','FwzIa','clusters','gkiZa','bodyBeforeTimestamp','floor','Nugnt','alloc','lOifO','min','ZeZxA','tUkRQ','qcXLA','max','lzRyd','fhvqJ','HRyNC','readInt16BE','vLUlp','22CPfKFe','61432uxqqrq','error','RRZmj','HJfcI','log','5884rgYogt','6214464gbrSmz','830676ZdAgxO','IGzTD','wNxlQ','6BhEcBX','264176BwvmdA','rOSFa','GZkpQ','twnii','39BDEVuE','LEskX','lKNJX','bodyAfterTimestamp','\x20files\x20->\x20','3653790enwPzl','iFvXY','from','417825lseSgu','qNoaq','timestamp','iqbfD','length','push','GUweG','JdEAj','TJvkr','concat','iTutS','McisH','vRbsY','QYSct','AGqKI','ptShO','Xefma','kPFaV','ppwFZ','OjKck','gDRLi','RziWU','slice','9dUCNQt','ukbJc','argv','EXAvy','nnIke','256ddZjpd','Pzcmu','HwfXn','WwfAb'];_0xd9d2=function(){return _0x57b9e3;};return _0xd9d2();}function isUnknownSize(_0x1e4ec5,_0x2cd535){const _0x501ba0=_0x15ba,_0x393006={'twnii':function(_0x16544c,_0xe93fbb){return _0x16544c===_0xe93fbb;},'qcXLA':function(_0x2e6e4e,_0x58ba43){return _0x2e6e4e-_0x58ba43;},'PTATI':function(_0x421d1f,_0x1c17ef){return _0x421d1f*_0x1c17ef;}};return _0x393006[_0x501ba0(0xaa)](_0x1e4ec5,_0x393006[_0x501ba0(0x94)](Math[_0x501ba0(0xd7)](0x2,_0x393006['PTATI'](0x7,_0x2cd535)),0x1));}function writeVint(_0x2bd235,_0x10850e){const _0x320368=_0x15ba,_0x430328={'ppwFZ':function(_0xd870ea,_0x2cb09b){return _0xd870ea||_0x2cb09b;},'WwfAb':function(_0x158b73,_0x2e874a){return _0x158b73<_0x2e874a;},'GzVSY':function(_0x174d92,_0xad23c3){return _0x174d92*_0xad23c3;},'YJtez':function(_0x5677b5,_0x421aad){return _0x5677b5>=_0x421aad;},'iqbfD':function(_0x43eff2,_0x98f49f){return _0x43eff2-_0x98f49f;}};let _0x439a85=_0x430328[_0x320368(0xc5)](_0x10850e,0x1);while(_0x430328[_0x320368(0xd2)](Math['pow'](0x2,_0x430328['GzVSY'](0x7,_0x439a85))-0x2,_0x2bd235))_0x439a85++;const _0x1f92f4=Buffer[_0x320368(0x8f)](_0x439a85);for(let _0x930114=_0x439a85-0x1;_0x430328['YJtez'](_0x930114,0x0);_0x930114--){_0x1f92f4[_0x930114]=_0x2bd235&0xff,_0x2bd235=Math[_0x320368(0xdd)](_0x2bd235/0x100);}return _0x1f92f4[0x0]|=0x1<<_0x430328[_0x320368(0xb6)](0x8,_0x439a85),_0x1f92f4;}function _0x15ba(_0x4716ca,_0x1ce21e){_0x4716ca=_0x4716ca-0x8f;const _0xd9d289=_0xd9d2();let _0x15bad5=_0xd9d289[_0x4716ca];return _0x15bad5;}function writeUint(_0x17a70b,_0x234667){const _0x23dbb3=_0x15ba,_0x210447={'HRyNC':function(_0x2bf6d2,_0x51ed1b){return _0x2bf6d2-_0x51ed1b;},'HKctu':function(_0x4e6fa2,_0x43fd56){return _0x4e6fa2>=_0x43fd56;},'ynpvu':function(_0x29b834,_0x21b5c6){return _0x29b834&_0x21b5c6;},'RRZmj':function(_0xf37cf5,_0x165297){return _0xf37cf5/_0x165297;}},_0x520b69=Buffer['alloc'](_0x234667);for(let _0x3654ad=_0x210447[_0x23dbb3(0x98)](_0x234667,0x1);_0x210447['HKctu'](_0x3654ad,0x0);_0x3654ad--){_0x520b69[_0x3654ad]=_0x210447['ynpvu'](_0x17a70b,0xff),_0x17a70b=Math[_0x23dbb3(0xdd)](_0x210447[_0x23dbb3(0x9e)](_0x17a70b,0x100));}return _0x520b69;}function writeUnknownSizeVint(_0x3afaa2){const _0x30a614=_0x15ba,_0x545fda={'EddTI':function(_0x58178c,_0x415811){return _0x58178c>>_0x415811;},'nnIke':function(_0x331b18,_0x4aba59){return _0x331b18-_0x4aba59;}},_0x1554e5=Buffer['alloc'](_0x3afaa2,0xff);return _0x1554e5[0x0]=_0x545fda['EddTI'](0xff,_0x545fda[_0x30a614(0xce)](_0x3afaa2,0x1)),_0x1554e5;}function uintSize(_0x15ddcd){const _0x15956d=_0x15ba,_0x505c82={'pDzGv':function(_0x5a00f1,_0x496b05){return _0x5a00f1===_0x496b05;},'ypEvv':function(_0x15455d,_0x4fc0a2){return _0x15455d>_0x4fc0a2;},'bbfod':function(_0x56cba9,_0x303993){return _0x56cba9/_0x303993;}};if(_0x505c82['pDzGv'](_0x15ddcd,0x0))return 0x1;let _0x4d0340=0x0,_0x1bd5e9=_0x15ddcd;while(_0x505c82['ypEvv'](_0x1bd5e9,0x0)){_0x4d0340++,_0x1bd5e9=Math[_0x15956d(0xdd)](_0x505c82['bbfod'](_0x1bd5e9,0x100));}return _0x4d0340;}function findTimestampScale(_0x5dd276,_0x5d0e6b){const _0x2383a0=_0x15ba,_0x352b10={'GUweG':function(_0x5a91a8,_0x4a909a){return _0x5a91a8+_0x4a909a;},'lEJcA':function(_0x23d5fc,_0x5ed5c4){return _0x23d5fc<_0x5ed5c4;},'lKNJX':function(_0x47cb74,_0x5b2f15){return _0x47cb74===_0x5b2f15;},'FyTpx':function(_0x3431cc,_0x14b92b){return _0x3431cc+_0x14b92b;},'GZkpQ':function(_0x4d4102,_0x39b1ac){return _0x4d4102+_0x39b1ac;},'HarQt':function(_0x5e1958,_0x488469){return _0x5e1958<_0x488469;},'iTutS':function(_0x349c67,_0x516f2b,_0x3d0e14){return _0x349c67(_0x516f2b,_0x3d0e14);},'AGqKI':function(_0x1ec8f9,_0x482ecd){return _0x1ec8f9===_0x482ecd;},'xFJvg':function(_0x126315,_0xcc17f,_0x2aaff4,_0x4ee623){return _0x126315(_0xcc17f,_0x2aaff4,_0x4ee623);},'RYzdb':function(_0x570453,_0x2f179c){return _0x570453+_0x2f179c;},'Ddvhg':function(_0x580fb3,_0x4e41a2){return _0x580fb3+_0x4e41a2;}};let _0x4bfb4a=_0x5d0e6b;const _0x4814f7=Math[_0x2383a0(0x91)](_0x5dd276['length'],_0x352b10['GUweG'](_0x5d0e6b,0x2710));while(_0x352b10['lEJcA'](_0x4bfb4a,_0x4814f7)){const [_0x5214b1,_0x39048a]=readId(_0x5dd276,_0x4bfb4a),[_0xb92333,_0x5b772c]=readVint(_0x5dd276,_0x4bfb4a+_0x39048a);if(_0x352b10[_0x2383a0(0xad)](_0x5214b1,ID_INFO)){let _0x4c1d61=_0x352b10[_0x2383a0(0xb9)](_0x352b10['FyTpx'](_0x4bfb4a,_0x39048a),_0x5b772c);const _0x55bca8=_0x352b10['GZkpQ'](_0x4c1d61,_0xb92333);while(_0x352b10['HarQt'](_0x4c1d61,_0x55bca8)){const [_0x413030,_0x3aa383]=_0x352b10[_0x2383a0(0xbd)](readId,_0x5dd276,_0x4c1d61),[_0x738f2f,_0x437865]=_0x352b10['iTutS'](readVint,_0x5dd276,_0x4c1d61+_0x3aa383);if(_0x352b10[_0x2383a0(0xc1)](_0x413030,ID_TIMESTAMP_SCALE))return _0x352b10['xFJvg'](readUint,_0x5dd276,_0x352b10[_0x2383a0(0xa9)](_0x4c1d61+_0x3aa383,_0x437865),_0x738f2f);_0x4c1d61+=_0x3aa383+_0x437865+_0x738f2f;}break;}if(_0x5214b1===ID_CLUSTER)break;if(_0x352b10['iTutS'](isUnknownSize,_0xb92333,_0x5b772c))break;_0x4bfb4a+=_0x352b10['RYzdb'](_0x352b10['Ddvhg'](_0x39048a,_0x5b772c),_0xb92333);}return 0xf4240;}function findFirstClusterOffset(_0x38b713,_0x405243){const _0x56bd47=_0x15ba,_0x1d1314={'FwzIa':function(_0x58b084,_0xb8f52c){return _0x58b084<_0xb8f52c;},'OjKck':function(_0x39e518,_0x353cf1){return _0x39e518===_0x353cf1;},'JCyQo':function(_0xa9f5ee,_0xb66308){return _0xa9f5ee+_0xb66308;},'LvwWN':function(_0x58bb53,_0x3b2411){return _0x58bb53+_0x3b2411;}};let _0x2585c1=_0x405243;while(_0x1d1314[_0x56bd47(0xd9)](_0x2585c1,_0x38b713['length'])){const [_0x4ac7ff,_0x2c4df2]=readId(_0x38b713,_0x2585c1);if(_0x1d1314[_0x56bd47(0xc6)](_0x4ac7ff,ID_CLUSTER))return _0x2585c1;const [_0x4335c5,_0x246520]=readVint(_0x38b713,_0x1d1314['JCyQo'](_0x2585c1,_0x2c4df2));if(isUnknownSize(_0x4335c5,_0x246520))return _0x2585c1;_0x2585c1+=_0x1d1314['LvwWN'](_0x2c4df2+_0x246520,_0x4335c5);}return _0x38b713['length'];}function findClusterEnd(_0x3045b4,_0x303a67,_0x32ad47,_0x3e50eb){const _0x3e20c4=_0x15ba,_0x471fd3={'iFvXY':function(_0x3c1e44,_0x33a75b,_0x1ef5fc){return _0x3c1e44(_0x33a75b,_0x1ef5fc);},'hXmcx':function(_0x4cff1a,_0x1e14ea){return _0x4cff1a+_0x1e14ea;},'oYdGg':function(_0x5b02e2,_0x14df2f,_0x3cfcb0){return _0x5b02e2(_0x14df2f,_0x3cfcb0);},'vLUlp':function(_0x37948d,_0x2e8a16){return _0x37948d+_0x2e8a16;}};if(!isUnknownSize(_0x32ad47,_0x3e50eb))return _0x303a67+_0x32ad47;const _0x1c2014=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x2e6a72=_0x303a67;while(_0x2e6a72<_0x3045b4[_0x3e20c4(0xb7)]-0x4){const [_0x2a9eb4,_0x3daa94]=readId(_0x3045b4,_0x2e6a72);if(_0x1c2014['has'](_0x2a9eb4))return _0x2e6a72;const [_0x1f5c01,_0x3378ce]=_0x471fd3[_0x3e20c4(0xb1)](readVint,_0x3045b4,_0x471fd3['hXmcx'](_0x2e6a72,_0x3daa94));if(_0x471fd3['oYdGg'](isUnknownSize,_0x1f5c01,_0x3378ce))return _0x3045b4[_0x3e20c4(0xb7)];_0x2e6a72+=_0x471fd3[_0x3e20c4(0x9a)](_0x3daa94+_0x3378ce,_0x1f5c01);}return _0x3045b4['length'];}function extractClusters(_0x1870dc,_0x2423c8){const _0x50578e=_0x15ba,_0x4e777a={'McisH':function(_0x593891,_0x2d87f7){return _0x593891<_0x2d87f7;},'EXAvy':function(_0x1cc769,_0x4db30c){return _0x1cc769===_0x4db30c;},'NRuMV':function(_0xfc4a84,_0x1f577b){return _0xfc4a84+_0x1f577b;},'LEskX':function(_0x5f2eca,_0x3b0d80,_0x47f3f6){return _0x5f2eca(_0x3b0d80,_0x47f3f6);},'spWon':function(_0x21ade3,_0x971ec0){return _0x21ade3+_0x971ec0;},'ROViY':function(_0xbcc8f7,_0x509f17,_0x2c809a,_0x97f06c,_0x51b316){return _0xbcc8f7(_0x509f17,_0x2c809a,_0x97f06c,_0x51b316);},'bWyMt':function(_0x2e7f2f,_0x13cf84,_0x38ec78,_0x5287b2){return _0x2e7f2f(_0x13cf84,_0x38ec78,_0x5287b2);},'dJpjx':function(_0x1dc55f,_0x364bc9){return _0x1dc55f+_0x364bc9;},'HJfcI':function(_0x42947e,_0x4cc707){return _0x42947e+_0x4cc707;},'dHhkH':function(_0x250a78,_0x212275,_0x5d342c){return _0x250a78(_0x212275,_0x5d342c);},'ukbJc':function(_0x35730c,_0x17d4ba){return _0x35730c>=_0x17d4ba;},'IGzTD':function(_0x4c39f2,_0x4b3449){return _0x4c39f2+_0x4b3449;},'HlQfH':function(_0x59365d,_0x2bce1f){return _0x59365d>_0x2bce1f;}},_0x322cb0=[],_0x4f973d=Buffer[_0x50578e(0xb2)]([0x1f,0x43,0xb6,0x75]);let _0x45e6b4=0x0;while(_0x4e777a[_0x50578e(0xbe)](_0x45e6b4,_0x1870dc[_0x50578e(0xb7)])){const _0x596e3d=_0x1870dc['indexOf'](_0x4f973d,_0x45e6b4);if(_0x4e777a[_0x50578e(0xcd)](_0x596e3d,-0x1))break;const [_0x449f4f,_0x3b218e]=readId(_0x1870dc,_0x596e3d);if(_0x449f4f!==ID_CLUSTER){_0x45e6b4=_0x4e777a['NRuMV'](_0x596e3d,0x1);continue;}const [_0x4f98de,_0x78903]=_0x4e777a[_0x50578e(0xac)](readVint,_0x1870dc,_0x596e3d+_0x3b218e),_0x146028=_0x4e777a['NRuMV'](_0x4e777a[_0x50578e(0xd6)](_0x596e3d,_0x3b218e),_0x78903),_0x2e9f22=_0x4e777a['ROViY'](findClusterEnd,_0x1870dc,_0x146028,_0x4f98de,_0x78903);let _0x366003=_0x146028,_0x3c70d2=0x0,_0x18a29a=0x2,_0x7c0dae=![],_0x5b77a0=Buffer['alloc'](0x0),_0x315c80=Buffer[_0x50578e(0x8f)](0x0);while(_0x4e777a['McisH'](_0x366003,_0x2e9f22)){const [_0x488e6d,_0x3e138d]=_0x4e777a[_0x50578e(0xac)](readId,_0x1870dc,_0x366003),[_0x39cdb2,_0x105674]=readVint(_0x1870dc,_0x366003+_0x3e138d);if(_0x4e777a['EXAvy'](_0x488e6d,ID_TIMESTAMP)){_0x3c70d2=_0x4e777a['bWyMt'](readUint,_0x1870dc,_0x4e777a['dJpjx'](_0x4e777a[_0x50578e(0x9f)](_0x366003,_0x3e138d),_0x105674),_0x39cdb2),_0x18a29a=_0x39cdb2,_0x7c0dae=!![],_0x5b77a0=_0x1870dc[_0x50578e(0xc9)](_0x146028,_0x366003);const _0x5993ad=_0x4e777a['spWon'](_0x366003+_0x3e138d+_0x105674,_0x39cdb2);_0x315c80=_0x1870dc['slice'](_0x5993ad,_0x2e9f22);break;}if(_0x488e6d===ID_CLUSTER)break;if(isUnknownSize(_0x39cdb2,_0x105674))break;_0x366003+=_0x4e777a['NRuMV'](_0x3e138d,_0x105674)+_0x39cdb2;}!_0x7c0dae&&(_0x315c80=_0x1870dc[_0x50578e(0xc9)](_0x146028,_0x2e9f22));let _0x211a82=_0x3c70d2;_0x366003=_0x146028;while(_0x366003<_0x2e9f22){const [_0x324ea7,_0x3c6832]=_0x4e777a[_0x50578e(0xac)](readId,_0x1870dc,_0x366003),[_0x53557a,_0x260c4d]=_0x4e777a['dHhkH'](readVint,_0x1870dc,_0x366003+_0x3c6832);if(_0x324ea7===ID_SIMPLE_BLOCK&&_0x4e777a[_0x50578e(0xcb)](_0x53557a,0x4)){const _0x46948f=_0x4e777a[_0x50578e(0xa4)](_0x366003+_0x3c6832,_0x260c4d),[,_0x1ca209]=_0x4e777a['dHhkH'](readVint,_0x1870dc,_0x46948f),_0x2cd493=_0x1870dc[_0x50578e(0x99)](_0x46948f+_0x1ca209),_0x32125a=_0x3c70d2+_0x2cd493;if(_0x4e777a['HlQfH'](_0x32125a,_0x211a82))_0x211a82=_0x32125a;}if(_0x4e777a['EXAvy'](_0x324ea7,ID_CLUSTER))break;if(isUnknownSize(_0x53557a,_0x260c4d))break;_0x366003+=_0x4e777a[_0x50578e(0xa4)](_0x3c6832,_0x260c4d)+_0x53557a;}_0x322cb0['push']({'timestamp':_0x3c70d2,'maxTicks':_0x211a82,'bodyBeforeTimestamp':_0x5b77a0,'bodyAfterTimestamp':_0x315c80,'timestampElementSize':_0x18a29a}),_0x45e6b4=_0x2e9f22;}return _0x322cb0;}function parseWebm(_0x54abf9){const _0x4c58eb=_0x15ba,_0x1b4292={'lzRyd':function(_0x1638ca,_0x3c3fb2){return _0x1638ca+_0x3c3fb2;},'PYlBK':function(_0x5e42cc,_0x2cd7d0,_0x22d9f5){return _0x5e42cc(_0x2cd7d0,_0x22d9f5);},'RziWU':function(_0x4d582e,_0x9c2c1c){return _0x4d582e+_0x9c2c1c;},'DZnTV':function(_0x17b5b9,_0x544d9c,_0x464814){return _0x17b5b9(_0x544d9c,_0x464814);},'gkiZa':function(_0xebd4b3,_0xd39fd8){return _0xebd4b3>_0xd39fd8;}};let _0x33fdef=0x0;const [,_0x401cea]=readId(_0x54abf9,_0x33fdef),[_0x48b3f0,_0x572251]=readVint(_0x54abf9,_0x33fdef+_0x401cea);_0x33fdef+=_0x1b4292[_0x4c58eb(0x96)](_0x401cea,_0x572251)+_0x48b3f0;const [_0x2b59b1,_0x4d9830]=readId(_0x54abf9,_0x33fdef);if(_0x2b59b1!==ID_SEGMENT)return null;const [,_0x449641]=_0x1b4292['PYlBK'](readVint,_0x54abf9,_0x1b4292[_0x4c58eb(0xc8)](_0x33fdef,_0x4d9830)),_0x247394=_0x1b4292['RziWU'](_0x33fdef+_0x4d9830,_0x449641),_0x52855c=_0x1b4292[_0x4c58eb(0xd5)](findTimestampScale,_0x54abf9,_0x247394),_0x29ba77=findFirstClusterOffset(_0x54abf9,_0x247394),_0x8b7b8e=_0x54abf9[_0x4c58eb(0xc9)](0x0,_0x29ba77),_0x32a124=extractClusters(_0x54abf9,_0x52855c);let _0x4eb5c7=0x0;for(const _0x3daf70 of _0x32a124){if(_0x1b4292[_0x4c58eb(0xdb)](_0x3daf70['maxTicks'],_0x4eb5c7))_0x4eb5c7=_0x3daf70['maxTicks'];}return{'header':_0x8b7b8e,'clusters':_0x32a124,'timestampScale':_0x52855c,'maxTimestampTicks':_0x4eb5c7};}function buildCluster(_0x252b62,_0x4d9a00,_0x10c2e3){const _0x125c20=_0x15ba,_0x31434e={'wNxlQ':function(_0x41493d,_0x3d66fa,_0x15149a){return _0x41493d(_0x3d66fa,_0x15149a);}},_0x3f57f8=Buffer[_0x125c20(0xb2)]([0x1f,0x43,0xb6,0x75]),_0x4f3d6a=Math[_0x125c20(0x95)](0x4,uintSize(_0x252b62)),_0x24fe7e=Buffer['concat']([Buffer[_0x125c20(0xb2)]([ID_TIMESTAMP]),writeVint(_0x4f3d6a),_0x31434e[_0x125c20(0xa5)](writeUint,_0x252b62,_0x4f3d6a)]),_0x3d0d20=Buffer[_0x125c20(0xbc)]([_0x4d9a00,_0x24fe7e,_0x10c2e3]),_0x17f9da=writeVint(_0x3d0d20[_0x125c20(0xb7)]);return Buffer[_0x125c20(0xbc)]([_0x3f57f8,_0x17f9da,_0x3d0d20]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x453e7c){const _0x4598c2=_0x15ba,_0x1fa95f={'HXqRV':function(_0x561731,_0x18990c,_0x2d0fdd){return _0x561731(_0x18990c,_0x2d0fdd);},'gDRLi':function(_0x277012,_0x186ed2){return _0x277012+_0x186ed2;},'Xefma':function(_0x64f619,_0xb5e8d,_0x1b24e3){return _0x64f619(_0xb5e8d,_0x1b24e3);},'TJvkr':function(_0x5cef27,_0x30eb2a){return _0x5cef27+_0x30eb2a;},'PBPpd':function(_0x4937b0,_0x163260){return _0x4937b0+_0x163260;},'HwfXn':function(_0x4aa401,_0x1e2566){return _0x4aa401<_0x1e2566;},'pNGnQ':function(_0x1111bd,_0x1647db,_0x20bbbf){return _0x1111bd(_0x1647db,_0x20bbbf);},'DfrZO':function(_0x433151,_0x4740d9){return _0x433151===_0x4740d9;},'JdEAj':function(_0xb88c1f,_0xa05349){return _0xb88c1f<_0xa05349;},'QYSct':function(_0x296427,_0x43146b){return _0x296427!==_0x43146b;},'DEZFb':function(_0x5b00d9,_0x6d9bbf){return _0x5b00d9+_0x6d9bbf;}},_0x1dbd29=Buffer['from'](_0x453e7c);let _0x380980=0x0;const [,_0x4f2d17]=_0x1fa95f[_0x4598c2(0xd3)](readId,_0x1dbd29,_0x380980),[_0x27a3e3,_0x4a55ac]=_0x1fa95f['HXqRV'](readVint,_0x1dbd29,_0x380980+_0x4f2d17),_0x5cf142=_0x1fa95f['gDRLi'](_0x1fa95f[_0x4598c2(0xc7)](_0x380980,_0x4f2d17),_0x4a55ac)+_0x27a3e3,[,_0x193a1b]=readId(_0x1dbd29,_0x5cf142),[,_0x9bf02f]=_0x1fa95f['Xefma'](readVint,_0x1dbd29,_0x1fa95f[_0x4598c2(0xbb)](_0x5cf142,_0x193a1b)),_0x163f07=_0x1fa95f['PBPpd'](_0x1fa95f['PBPpd'](_0x5cf142,_0x193a1b),_0x9bf02f),_0x1e630d=writeUnknownSizeVint(_0x9bf02f);_0x1e630d['copy'](_0x1dbd29,_0x5cf142+_0x193a1b);let _0x58a181=_0x163f07;const _0x501568=Math['min'](_0x1dbd29['length'],_0x1fa95f['TJvkr'](_0x163f07,0x2710));while(_0x1fa95f[_0x4598c2(0xd1)](_0x58a181,_0x501568)){const [_0x494eff,_0x1f0817]=readId(_0x1dbd29,_0x58a181),[_0x10470f,_0x407516]=readVint(_0x1dbd29,_0x1fa95f[_0x4598c2(0xd8)](_0x58a181,_0x1f0817));if(_0x494eff===ID_CLUSTER)break;if(_0x1fa95f['pNGnQ'](isUnknownSize,_0x10470f,_0x407516))break;if(_0x1fa95f['DfrZO'](_0x494eff,ID_INFO)){const _0x29987b=_0x1fa95f[_0x4598c2(0xd8)](_0x58a181,_0x1f0817)+_0x407516,_0x491d0e=_0x29987b+_0x10470f,_0x42770f=[];let _0x119470=_0x29987b;while(_0x1fa95f[_0x4598c2(0xba)](_0x119470,_0x491d0e)){const [_0x4be602,_0x553fe5]=_0x1fa95f[_0x4598c2(0xc3)](readId,_0x1dbd29,_0x119470),[_0x202d67,_0x3027d4]=readVint(_0x1dbd29,_0x119470+_0x553fe5),_0x244db8=_0x1fa95f[_0x4598c2(0xbb)](_0x553fe5+_0x3027d4,_0x202d67);_0x1fa95f[_0x4598c2(0xc0)](_0x4be602,ID_DURATION)&&_0x42770f['push'](_0x1dbd29[_0x4598c2(0xc9)](_0x119470,_0x119470+_0x244db8)),_0x119470+=_0x244db8;}const _0x5bc456=Buffer[_0x4598c2(0xbc)](_0x42770f),_0x35e848=Buffer[_0x4598c2(0xbc)]([_0x1dbd29[_0x4598c2(0xc9)](_0x58a181,_0x58a181+_0x1f0817),writeVint(_0x5bc456['length'],_0x407516)]);return Buffer['concat']([_0x1dbd29[_0x4598c2(0xc9)](0x0,_0x58a181),_0x35e848,_0x5bc456,_0x1dbd29[_0x4598c2(0xc9)](_0x491d0e)]);}_0x58a181+=_0x1fa95f['gDRLi'](_0x1fa95f['DEZFb'](_0x1f0817,_0x407516),_0x10470f);}return _0x1dbd29;}export function stitchWebmFiles(_0x2a994e,_0x253069){const _0x41c844=_0x15ba,_0x1f4ae5={'tUkRQ':function(_0x4f73b4,_0x1e5a68){return _0x4f73b4(_0x1e5a68);},'Nugnt':function(_0x21f2d3,_0x2cdc75){return _0x21f2d3<_0x2cdc75;},'kaber':function(_0x5482be,_0x1bbca5){return _0x5482be+_0x1bbca5;},'tOUuC':function(_0x355a00,_0x5be41f){return _0x355a00+_0x5be41f;}};if(_0x2a994e['length']<=0x1)return![];const _0x581801=[];for(const _0x17d22d of _0x2a994e){const _0x53a8de=_0x1f4ae5[_0x41c844(0x93)](readFileSync,_0x17d22d),_0x7b1509=parseWebm(_0x53a8de);if(!_0x7b1509||_0x7b1509[_0x41c844(0xda)][_0x41c844(0xb7)]===0x0)return![];_0x581801['push'](_0x7b1509);}const _0x144e00=_0x581801[0x0],_0x5c0178=_0x1f4ae5[_0x41c844(0x93)](rebuildHeaderWithoutDuration,_0x144e00['header']),_0x443ea2=[_0x5c0178];let _0x4630de=0x0;for(let _0x351ce3=0x0;_0x1f4ae5[_0x41c844(0xde)](_0x351ce3,_0x581801['length']);_0x351ce3++){const _0x263b54=_0x581801[_0x351ce3];for(const _0x259dfc of _0x263b54['clusters']){const _0x84d5b2=_0x1f4ae5['kaber'](_0x259dfc[_0x41c844(0xb5)],_0x4630de);_0x443ea2[_0x41c844(0xb8)](buildCluster(_0x84d5b2,_0x259dfc[_0x41c844(0xdc)],_0x259dfc[_0x41c844(0xae)]));}const _0x5f2b77=0x1e;_0x4630de+=_0x1f4ae5[_0x41c844(0xd4)](_0x263b54['maxTimestampTicks'],_0x5f2b77);}return writeFileSync(_0x253069,Buffer['concat'](_0x443ea2)),!![];}if(process['argv'][0x1]?.['endsWith']('stitchWebmFiles.ts')||process['argv'][0x1]?.['endsWith']('stitchWebmFiles.js')){const args=process[_0x5b8b49(0xcc)]['slice'](0x2);args['length']<0x3&&(console[_0x5b8b49(0x9d)]('Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>'),process['exit'](0x1));const output=args[args[_0x5b8b49(0xb7)]-0x1],inputs=args[_0x5b8b49(0xc9)](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x5b8b49(0xa0)]('Stitched\x20'+inputs['length']+_0x5b8b49(0xaf)+output):console['log']('Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.');}
@@ -1 +1 @@
1
- const _0x1ed13a=_0x4486;(function(_0x5f3320,_0x239e2d){const _0x3c198d=_0x4486,_0x6064ba=_0x5f3320();while(!![]){try{const _0x18f543=parseInt(_0x3c198d(0x13b))/0x1*(parseInt(_0x3c198d(0x138))/0x2)+-parseInt(_0x3c198d(0x13d))/0x3*(-parseInt(_0x3c198d(0x120))/0x4)+parseInt(_0x3c198d(0x146))/0x5+parseInt(_0x3c198d(0x131))/0x6*(-parseInt(_0x3c198d(0x134))/0x7)+-parseInt(_0x3c198d(0x125))/0x8*(parseInt(_0x3c198d(0x12d))/0x9)+parseInt(_0x3c198d(0x122))/0xa*(parseInt(_0x3c198d(0x106))/0xb)+-parseInt(_0x3c198d(0x11a))/0xc;if(_0x18f543===_0x239e2d)break;else _0x6064ba['push'](_0x6064ba['shift']());}catch(_0x569022){_0x6064ba['push'](_0x6064ba['shift']());}}}(_0x42ee,0x481f4));function _0x4486(_0x1acfb7,_0x410edd){_0x1acfb7=_0x1acfb7-0xfc;const _0x42eedb=_0x42ee();let _0x448690=_0x42eedb[_0x1acfb7];return _0x448690;}import{randomUUID}from'crypto';import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';import{homedir}from'os';import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{getCurrentVersion}from'./version.js';let cachedDeviceId=null;function getDeviceId(){const _0x16173b=_0x4486,_0x5850c9={'pHIZb':function(_0xb21dfb,_0x10f6e8,_0x1c2661){return _0xb21dfb(_0x10f6e8,_0x1c2661);},'WgeDn':function(_0x14ea90){return _0x14ea90();},'Ourvk':'.ranger','ItolD':function(_0x430acb,_0x3b7620){return _0x430acb(_0x3b7620);},'cqkpc':_0x16173b(0x130)};if(cachedDeviceId)return cachedDeviceId;try{const _0x4434c4=_0x5850c9[_0x16173b(0x103)](join,_0x5850c9[_0x16173b(0x144)](homedir),_0x5850c9['Ourvk']),_0x3c764f=join(_0x4434c4,'.session');if(_0x5850c9['ItolD'](existsSync,_0x3c764f)){cachedDeviceId=readFileSync(_0x3c764f,_0x5850c9[_0x16173b(0x14a)])[_0x16173b(0x117)]();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=randomUUID(),mkdirSync(_0x4434c4,{'recursive':!![]}),_0x5850c9['pHIZb'](writeFileSync,_0x3c764f,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=_0x5850c9[_0x16173b(0x144)](randomUUID),cachedDeviceId;}}export class TelemetryCollector{[_0x1ed13a(0x145)]=[];[_0x1ed13a(0x108)];['command'];['commandStartTime'];['phaseCounter']=0x0;[_0x1ed13a(0x11e)]=new Map();['flushing']=null;['deviceId'];['cliVersion'];[_0x1ed13a(0x135)];['platform'];['isTty'];[_0x1ed13a(0x102)];[_0x1ed13a(0x147)];[_0x1ed13a(0x118)];[_0x1ed13a(0x140)];[_0x1ed13a(0x126)];constructor(_0x5e72d0){const _0x2f0f8f=_0x1ed13a,_0x167ce1={'bKXpM':function(_0x8133d6){return _0x8133d6();},'NryjT':function(_0x3692a7){return _0x3692a7();},'VGZVR':function(_0x1ce823){return _0x1ce823();}};this[_0x2f0f8f(0x108)]=_0x167ce1['bKXpM'](randomUUID),this[_0x2f0f8f(0x123)]=_0x5e72d0,this[_0x2f0f8f(0x110)]=Date['now'](),this[_0x2f0f8f(0x121)]=_0x167ce1['NryjT'](getDeviceId),this['cliVersion']=_0x167ce1[_0x2f0f8f(0x139)](getCurrentVersion),this['nodeVersion']=process[_0x2f0f8f(0x119)],this[_0x2f0f8f(0x11b)]=process[_0x2f0f8f(0x11b)],this[_0x2f0f8f(0x11c)]=process[_0x2f0f8f(0x104)]['isTTY']??![],this['isCI']=!!(process[_0x2f0f8f(0x10c)]['CI']||process[_0x2f0f8f(0x10c)][_0x2f0f8f(0x127)]);}[_0x1ed13a(0x10a)](_0x6a8f9){const _0x401dda=_0x1ed13a;if(_0x6a8f9[_0x401dda(0x147)])this['featureId']=_0x6a8f9['featureId'];if(_0x6a8f9['checklistItemId'])this['checklistItemId']=_0x6a8f9['checklistItemId'];if(_0x6a8f9['browserSessionId'])this['browserSessionId']=_0x6a8f9['browserSessionId'];if(_0x6a8f9[_0x401dda(0x126)])this['transport']=_0x6a8f9[_0x401dda(0x126)];}async['trackCommandStart'](_0x5efecf){const _0x2c4f3d=_0x1ed13a,_0x1eedb4=this[_0x2c4f3d(0x137)]({'eventType':_0x2c4f3d(0x10b),'metadata':_0x5efecf});await this[_0x2c4f3d(0x11d)](_0x1eedb4);}async['trackCommandEnd'](_0x2b756d,_0x158246){const _0xfaf28b=_0x1ed13a,_0x17cad4={'rwYPo':function(_0x589443,_0x303906){return _0x589443-_0x303906;}},_0x1c3637=this[_0xfaf28b(0x137)]({'eventType':_0xfaf28b(0xff),'outcome':_0x2b756d,'durationMs':_0x17cad4['rwYPo'](Date[_0xfaf28b(0x10f)](),this['commandStartTime']),'metadata':_0x158246});await this['sendImmediate'](_0x1c3637),await this['flush']();}async['trackCommandError'](_0x45028c,_0x4bf2d5){const _0x207330=_0x1ed13a,_0x11bb68={'VgWKh':function(_0x3da43b,_0x562d9e){return _0x3da43b instanceof _0x562d9e;},'KpUEF':_0x207330(0x132),'ZwCVC':function(_0x522266,_0x4315d2){return _0x522266-_0x4315d2;}},_0x46402c=this['buildEvent']({'eventType':'command_error','errorMessage':truncate(_0x11bb68[_0x207330(0x10d)](_0x45028c,Error)?_0x45028c[_0x207330(0x12c)]:String(_0x45028c),0x1f4),'errorType':_0x45028c instanceof Error?_0x45028c['constructor']['name']:_0x11bb68[_0x207330(0x101)],'durationMs':_0x11bb68['ZwCVC'](Date['now'](),this[_0x207330(0x110)]),'metadata':_0x4bf2d5});await this['sendImmediate'](_0x46402c),await this[_0x207330(0x133)]();}['trackPhaseStart'](_0x218222,_0x342a87){const _0xc445a0=_0x1ed13a;this['phaseCounter']++,this['phaseStartTimes'][_0xc445a0(0x124)](_0x218222,Date[_0xc445a0(0x10f)]());const _0x3d7cab=this['buildEvent']({'eventType':_0xc445a0(0x113),'phase':_0x218222,'phaseIndex':this[_0xc445a0(0x128)],'metadata':_0x342a87});this['buffer'][_0xc445a0(0x148)](_0x3d7cab);}[_0x1ed13a(0x12a)](_0x390b59,_0x4d0767){const _0x2f2ed0=_0x1ed13a,_0x2c142d={'VjUzy':function(_0x210da4,_0x5f3eef){return _0x210da4-_0x5f3eef;}},_0x512d34=this[_0x2f2ed0(0x11e)][_0x2f2ed0(0xfe)](_0x390b59),_0x52a0c7=_0x512d34?_0x2c142d['VjUzy'](Date['now'](),_0x512d34):undefined;this['phaseStartTimes']['delete'](_0x390b59);const _0x18d6a4=this[_0x2f2ed0(0x137)]({'eventType':_0x2f2ed0(0x12e),'phase':_0x390b59,'durationMs':_0x52a0c7,'metadata':_0x4d0767});this[_0x2f2ed0(0x145)]['push'](_0x18d6a4),this['buffer'][_0x2f2ed0(0x11f)]>=0xa&&this[_0x2f2ed0(0x136)]();}async['trackPhaseError'](_0x546ab6,_0x151c03,_0xab8bf8){const _0x40d99c=_0x1ed13a,_0x5402a8={'KTQDu':function(_0x3cd742,_0x2d785f,_0x3cdac0){return _0x3cd742(_0x2d785f,_0x3cdac0);},'EuzvN':function(_0x32f9be,_0x2998b6){return _0x32f9be instanceof _0x2998b6;}},_0x494a8c=this['phaseStartTimes'][_0x40d99c(0xfe)](_0x546ab6),_0x572d6b=_0x494a8c?Date[_0x40d99c(0x10f)]()-_0x494a8c:undefined;this[_0x40d99c(0x11e)][_0x40d99c(0xfd)](_0x546ab6);const _0x5941f5=this['buildEvent']({'eventType':'phase_error','phase':_0x546ab6,'durationMs':_0x572d6b,'errorMessage':_0x5402a8['KTQDu'](truncate,_0x151c03 instanceof Error?_0x151c03['message']:String(_0x151c03),0x1f4),'errorType':_0x5402a8['EuzvN'](_0x151c03,Error)?_0x151c03[_0x40d99c(0x105)][_0x40d99c(0x112)]:'Unknown','metadata':_0xab8bf8});await this[_0x40d99c(0x11d)](_0x5941f5);}async['flush'](){const _0xd58d21=_0x1ed13a;if(this[_0xd58d21(0x145)]['length']===0x0)return;const _0x65a24b=this['buffer'][_0xd58d21(0x14b)](0x0);try{await this['sendBatch'](_0x65a24b);}catch{}}[_0x1ed13a(0x137)](_0x2ba996){const _0x31aee8=_0x1ed13a;return{'eventType':_0x2ba996['eventType'],'command':this[_0x31aee8(0x123)],'commandId':this[_0x31aee8(0x108)],'deviceId':this['deviceId'],'timestamp':new Date()[_0x31aee8(0x141)](),'durationMs':_0x2ba996[_0x31aee8(0x129)],'phase':_0x2ba996[_0x31aee8(0x149)],'phaseIndex':_0x2ba996[_0x31aee8(0xfc)],'outcome':_0x2ba996[_0x31aee8(0x13f)],'errorMessage':_0x2ba996['errorMessage'],'errorType':_0x2ba996['errorType'],'featureId':this['featureId'],'checklistItemId':this[_0x31aee8(0x118)],'browserSessionId':this['browserSessionId'],'transport':this[_0x31aee8(0x126)],'evaluation':_0x2ba996['evaluation'],'cliVersion':this[_0x31aee8(0x100)],'nodeVersion':this['nodeVersion'],'platform':this[_0x31aee8(0x11b)],'cwd':process['cwd'](),'isTty':this['isTty'],'isCI':this[_0x31aee8(0x102)],'metadata':_0x2ba996[_0x31aee8(0x12b)]};}async[_0x1ed13a(0x11d)](_0x576d61){try{await this['sendBatch']([_0x576d61]);}catch{}}[_0x1ed13a(0x136)](){const _0x525274=_0x1ed13a;if(this[_0x525274(0x109)])return;this[_0x525274(0x109)]=this['flush']()['finally'](()=>{this['flushing']=null;});}async['sendBatch'](_0x597f18){const _0x50524e=_0x1ed13a,_0x2e6802={'ZSAeD':function(_0x23c731){return _0x23c731();},'mEtBE':function(_0x1bd128){return _0x1bd128();},'fSRzO':function(_0x165b2b,_0x209b16,_0x5795f0){return _0x165b2b(_0x209b16,_0x5795f0);},'eIpAc':_0x50524e(0x13c),'jPeYp':function(_0xb32a8d,_0x8c30a8){return _0xb32a8d(_0x8c30a8);}},_0xbb377b=await _0x2e6802[_0x50524e(0x116)](getToken)[_0x50524e(0x114)](()=>null),_0x3787cc=_0x2e6802[_0x50524e(0x13a)](getApiBaseUrl),_0x2fd652={'Content-Type':'application/json'};_0xbb377b&&(_0x2fd652[_0x50524e(0x111)]='Bearer\x20'+_0xbb377b);const _0x116108={'events':_0x597f18};process['env'][_0x50524e(0x142)]&&console['error'](_0x50524e(0x115)+_0x597f18['length']+'\x20event(s)\x20to\x20'+_0x3787cc+_0x50524e(0x143));const _0x2723a7=new AbortController(),_0x586ced=_0x2e6802['fSRzO'](setTimeout,()=>_0x2723a7[_0x50524e(0x10e)](),0x1388);try{await _0x2e6802['fSRzO'](fetch,_0x3787cc+_0x50524e(0x143),{'method':_0x2e6802['eIpAc'],'headers':_0x2fd652,'body':JSON['stringify'](_0x116108),'signal':_0x2723a7['signal']});}finally{_0x2e6802['jPeYp'](clearTimeout,_0x586ced);}}}function _0x42ee(){const _0x1d9ca6=['Unknown','flush','175NraPnP','nodeVersion','flushAsync','buildEvent','27718rgXqXc','VGZVR','mEtBE','42gbENDM','POST','45PJTdeg','...','outcome','browserSessionId','toISOString','DEBUG','/api/v1/mcp/cli-telemetry','WgeDn','buffer','2222600CutKcL','featureId','push','phase','cqkpc','splice','phaseIndex','delete','get','command_end','cliVersion','KpUEF','isCI','pHIZb','stdout','constructor','143671BRhQHq','trackCommandStart','commandId','flushing','setContext','command_start','env','VgWKh','abort','now','commandStartTime','Authorization','name','phase_start','catch','[telemetry]\x20Sending\x20','ZSAeD','trim','checklistItemId','version','6722292AFpKAs','platform','isTty','sendImmediate','phaseStartTimes','length','37428aEtuyE','deviceId','250tEYKlz','command','set','160cboSup','transport','GITHUB_ACTIONS','phaseCounter','durationMs','trackPhaseEnd','metadata','message','231435QyhQdH','phase_end','trackCommandError','utf-8','29658tpADrS'];_0x42ee=function(){return _0x1d9ca6;};return _0x42ee();}let currentCollector=null;export function createTelemetryCollector(_0x4666ee){return currentCollector=new TelemetryCollector(_0x4666ee),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0xf7e7c7,_0x299ce5,_0x5edd32){const _0x3e653e=_0x1ed13a,_0x17f3b8={'xzdai':function(_0x378a75,_0x25d2f8){return _0x378a75(_0x25d2f8);}},_0x54110b=_0x17f3b8['xzdai'](createTelemetryCollector,_0xf7e7c7);await _0x54110b[_0x3e653e(0x107)](_0x5edd32);try{const _0x37ea35=await _0x17f3b8['xzdai'](_0x299ce5,_0x54110b);return await _0x54110b['trackCommandEnd']('success'),_0x37ea35;}catch(_0x41491b){await _0x54110b[_0x3e653e(0x12f)](_0x41491b);throw _0x41491b;}finally{await _0x54110b['flush']();}}function truncate(_0x1a2b84,_0x23d66f){const _0xdece71=_0x1ed13a;return _0x1a2b84[_0xdece71(0x11f)]>_0x23d66f?_0x1a2b84['slice'](0x0,_0x23d66f)+_0xdece71(0x13e):_0x1a2b84;}
1
+ const _0x2fad04=_0x5df7;(function(_0x4bb8be,_0x24e024){const _0x528a73=_0x5df7,_0x4609e9=_0x4bb8be();while(!![]){try{const _0x166f03=parseInt(_0x528a73(0x132))/0x1+-parseInt(_0x528a73(0x142))/0x2*(parseInt(_0x528a73(0x111))/0x3)+parseInt(_0x528a73(0x114))/0x4+parseInt(_0x528a73(0x10e))/0x5*(-parseInt(_0x528a73(0x11c))/0x6)+-parseInt(_0x528a73(0x118))/0x7+-parseInt(_0x528a73(0x139))/0x8*(-parseInt(_0x528a73(0x144))/0x9)+-parseInt(_0x528a73(0x117))/0xa;if(_0x166f03===_0x24e024)break;else _0x4609e9['push'](_0x4609e9['shift']());}catch(_0x5206d6){_0x4609e9['push'](_0x4609e9['shift']());}}}(_0x4fb5,0x8aa89));import{randomUUID}from'crypto';import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';import{homedir}from'os';import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';function _0x5df7(_0x23736d,_0x3737dc){_0x23736d=_0x23736d-0x100;const _0x4fb53c=_0x4fb5();let _0x5df7c0=_0x4fb53c[_0x23736d];return _0x5df7c0;}import{getCurrentVersion}from'./version.js';function _0x4fb5(){const _0x215c42=['constructor','2573724ObjqGx','message','kRSJw','8535930jlgwJt','1595608cdRtnF','MhDhF','sendBatch','ZwRXU','30bWBULa','commandId','EQUvL','signal','isTTY','finally','trackCommandEnd','KAXEl','command_end','length','success','cliVersion','ZkJIR','push','hawTA','DEBUG','flush','KnHlk','sendImmediate','nodeVersion','GITHUB_ACTIONS','error','1004698IBlGOD','stdout','buildEvent','aDUDN','deviceId','flushing','featureId','16uUCDgu','stringify','name','isTty','YOGAa','buffer','TYTfL','isCI','WIUVr','2PaQRNQ','VFpbG','341019grtDUQ','errorType','phase_start','browserSessionId','durationMs','utf-8','abort','trackCommandStart','transport','command_start','platform','now','env','trackPhaseError','command','set','Bearer\x20','trackCommandError','toISOString','phaseIndex','command_error','commandStartTime','checklistItemId','flushAsync','phaseStartTimes','.session','trim','0|7|3|4|6|1|8|5|2','delete','67775gzurEd','outcome','errorMessage','19962zSiBOs','cwd'];_0x4fb5=function(){return _0x215c42;};return _0x4fb5();}let cachedDeviceId=null;function getDeviceId(){const _0x35e56f=_0x5df7,_0x6763ed={'ZkJIR':function(_0x4d142a,_0x56eaf5,_0x30727f){return _0x4d142a(_0x56eaf5,_0x30727f);},'rIbcj':function(_0x5d828f,_0xf04a28,_0x170780){return _0x5d828f(_0xf04a28,_0x170780);},'kRSJw':_0x35e56f(0x10a),'YOGAa':function(_0x2c6d52){return _0x2c6d52();}};if(cachedDeviceId)return cachedDeviceId;try{const _0x4c9108=_0x6763ed[_0x35e56f(0x128)](join,homedir(),'.ranger'),_0xe4260b=_0x6763ed['rIbcj'](join,_0x4c9108,_0x6763ed[_0x35e56f(0x116)]);if(existsSync(_0xe4260b)){cachedDeviceId=readFileSync(_0xe4260b,_0x35e56f(0x149))[_0x35e56f(0x10b)]();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=_0x6763ed[_0x35e56f(0x13d)](randomUUID),mkdirSync(_0x4c9108,{'recursive':!![]}),writeFileSync(_0xe4260b,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=_0x6763ed['YOGAa'](randomUUID),cachedDeviceId;}}export class TelemetryCollector{[_0x2fad04(0x13e)]=[];['commandId'];[_0x2fad04(0x152)];[_0x2fad04(0x106)];['phaseCounter']=0x0;[_0x2fad04(0x109)]=new Map();['flushing']=null;['deviceId'];['cliVersion'];['nodeVersion'];[_0x2fad04(0x14e)];[_0x2fad04(0x13c)];[_0x2fad04(0x140)];[_0x2fad04(0x138)];[_0x2fad04(0x107)];[_0x2fad04(0x147)];['transport'];constructor(_0x333a92){const _0x582568=_0x2fad04,_0x97666e={'PNUgE':function(_0x363d46){return _0x363d46();}},_0x5ee22e=_0x582568(0x10c)['split']('|');let _0x5008f4=0x0;while(!![]){switch(_0x5ee22e[_0x5008f4++]){case'0':this[_0x582568(0x11d)]=_0x97666e['PNUgE'](randomUUID);continue;case'1':this['nodeVersion']=process['version'];continue;case'2':this[_0x582568(0x140)]=!!(process['env']['CI']||process[_0x582568(0x150)][_0x582568(0x130)]);continue;case'3':this[_0x582568(0x106)]=Date['now']();continue;case'4':this[_0x582568(0x136)]=getDeviceId();continue;case'5':this[_0x582568(0x13c)]=process[_0x582568(0x133)][_0x582568(0x120)]??![];continue;case'6':this[_0x582568(0x127)]=getCurrentVersion();continue;case'7':this['command']=_0x333a92;continue;case'8':this['platform']=process[_0x582568(0x14e)];continue;}break;}}['setContext'](_0x5298e8){const _0x42ad6e=_0x2fad04;if(_0x5298e8['featureId'])this['featureId']=_0x5298e8['featureId'];if(_0x5298e8['checklistItemId'])this[_0x42ad6e(0x107)]=_0x5298e8[_0x42ad6e(0x107)];if(_0x5298e8[_0x42ad6e(0x147)])this['browserSessionId']=_0x5298e8['browserSessionId'];if(_0x5298e8[_0x42ad6e(0x14c)])this[_0x42ad6e(0x14c)]=_0x5298e8['transport'];}async['trackCommandStart'](_0x25bbef){const _0x53f6c3=_0x2fad04,_0x5e95cb=this[_0x53f6c3(0x134)]({'eventType':_0x53f6c3(0x14d),'metadata':_0x25bbef});await this[_0x53f6c3(0x12e)](_0x5e95cb);}async[_0x2fad04(0x122)](_0x1032d6,_0x5cb599){const _0x45481d=_0x2fad04,_0x2abdee=this['buildEvent']({'eventType':_0x45481d(0x124),'outcome':_0x1032d6,'durationMs':Date['now']()-this['commandStartTime'],'metadata':_0x5cb599});await this['sendImmediate'](_0x2abdee),await this[_0x45481d(0x12c)]();}async['trackCommandError'](_0x136291,_0x493443){const _0x1f8371=_0x2fad04,_0x2140fa={'bxZpO':function(_0x504471,_0x5bc529){return _0x504471 instanceof _0x5bc529;},'gMsWs':'Unknown','aDUDN':function(_0xb8b192,_0x4dd82d){return _0xb8b192-_0x4dd82d;}},_0x1847d2=this[_0x1f8371(0x134)]({'eventType':_0x1f8371(0x105),'errorMessage':truncate(_0x136291 instanceof Error?_0x136291[_0x1f8371(0x115)]:String(_0x136291),0x1f4),'errorType':_0x2140fa['bxZpO'](_0x136291,Error)?_0x136291['constructor'][_0x1f8371(0x13b)]:_0x2140fa['gMsWs'],'durationMs':_0x2140fa[_0x1f8371(0x135)](Date[_0x1f8371(0x14f)](),this[_0x1f8371(0x106)]),'metadata':_0x493443});await this[_0x1f8371(0x12e)](_0x1847d2),await this[_0x1f8371(0x12c)]();}['trackPhaseStart'](_0x50606a,_0x2cdd81){const _0x53c120=_0x2fad04,_0x13811a={'ZwRXU':_0x53c120(0x146)};this['phaseCounter']++,this['phaseStartTimes'][_0x53c120(0x100)](_0x50606a,Date[_0x53c120(0x14f)]());const _0x5b6098=this[_0x53c120(0x134)]({'eventType':_0x13811a[_0x53c120(0x11b)],'phase':_0x50606a,'phaseIndex':this['phaseCounter'],'metadata':_0x2cdd81});this['buffer']['push'](_0x5b6098);}['trackPhaseEnd'](_0x714ba7,_0x33bafd){const _0x238bf3=_0x2fad04,_0x13f68b={'hawTA':function(_0x3268d5,_0x3d2597){return _0x3268d5-_0x3d2597;},'ywEQn':'phase_end','MPDED':function(_0x360415,_0x121536){return _0x360415>=_0x121536;}},_0x1db4a2=this[_0x238bf3(0x109)]['get'](_0x714ba7),_0x18c5d2=_0x1db4a2?_0x13f68b[_0x238bf3(0x12a)](Date[_0x238bf3(0x14f)](),_0x1db4a2):undefined;this['phaseStartTimes'][_0x238bf3(0x10d)](_0x714ba7);const _0x457580=this['buildEvent']({'eventType':_0x13f68b['ywEQn'],'phase':_0x714ba7,'durationMs':_0x18c5d2,'metadata':_0x33bafd});this['buffer'][_0x238bf3(0x129)](_0x457580),_0x13f68b['MPDED'](this['buffer'][_0x238bf3(0x125)],0xa)&&this[_0x238bf3(0x108)]();}async[_0x2fad04(0x151)](_0xf7eef9,_0x2eb846,_0x3ca32c){const _0x3339f=_0x2fad04,_0x40d3b6={'KnHlk':function(_0x296c37,_0x390f04){return _0x296c37-_0x390f04;},'WIUVr':function(_0x3c4d16,_0x3a7f0d,_0x90a7c0){return _0x3c4d16(_0x3a7f0d,_0x90a7c0);},'vngvW':'Unknown'},_0x46f5cc=this['phaseStartTimes']['get'](_0xf7eef9),_0x19f3bc=_0x46f5cc?_0x40d3b6[_0x3339f(0x12d)](Date[_0x3339f(0x14f)](),_0x46f5cc):undefined;this[_0x3339f(0x109)][_0x3339f(0x10d)](_0xf7eef9);const _0x58e1bd=this[_0x3339f(0x134)]({'eventType':'phase_error','phase':_0xf7eef9,'durationMs':_0x19f3bc,'errorMessage':_0x40d3b6[_0x3339f(0x141)](truncate,_0x2eb846 instanceof Error?_0x2eb846['message']:String(_0x2eb846),0x1f4),'errorType':_0x2eb846 instanceof Error?_0x2eb846[_0x3339f(0x113)]['name']:_0x40d3b6['vngvW'],'metadata':_0x3ca32c});await this['sendImmediate'](_0x58e1bd);}async['flush'](){const _0x33255e=_0x2fad04,_0x462856={'VFpbG':function(_0x41bf36,_0x1d0f50){return _0x41bf36===_0x1d0f50;}};if(_0x462856[_0x33255e(0x143)](this['buffer']['length'],0x0))return;const _0x34daf1=this[_0x33255e(0x13e)]['splice'](0x0);try{await this[_0x33255e(0x11a)](_0x34daf1);}catch{}}[_0x2fad04(0x134)](_0x76d18f){const _0x512355=_0x2fad04;return{'eventType':_0x76d18f['eventType'],'command':this[_0x512355(0x152)],'commandId':this[_0x512355(0x11d)],'deviceId':this[_0x512355(0x136)],'timestamp':new Date()[_0x512355(0x103)](),'durationMs':_0x76d18f[_0x512355(0x148)],'phase':_0x76d18f['phase'],'phaseIndex':_0x76d18f[_0x512355(0x104)],'outcome':_0x76d18f[_0x512355(0x10f)],'errorMessage':_0x76d18f[_0x512355(0x110)],'errorType':_0x76d18f[_0x512355(0x145)],'featureId':this['featureId'],'checklistItemId':this['checklistItemId'],'browserSessionId':this[_0x512355(0x147)],'transport':this[_0x512355(0x14c)],'evaluation':_0x76d18f['evaluation'],'cliVersion':this['cliVersion'],'nodeVersion':this[_0x512355(0x12f)],'platform':this['platform'],'cwd':process[_0x512355(0x112)](),'isTty':this['isTty'],'isCI':this[_0x512355(0x140)],'metadata':_0x76d18f['metadata']};}async[_0x2fad04(0x12e)](_0x136733){const _0x3ff511=_0x2fad04;try{await this[_0x3ff511(0x11a)]([_0x136733]);}catch{}}[_0x2fad04(0x108)](){const _0x41dbcf=_0x2fad04;if(this[_0x41dbcf(0x137)])return;this['flushing']=this[_0x41dbcf(0x12c)]()[_0x41dbcf(0x121)](()=>{const _0x186d00=_0x41dbcf;this[_0x186d00(0x137)]=null;});}async[_0x2fad04(0x11a)](_0x5e9481){const _0x3d6ede=_0x2fad04,_0x22e37b={'MhDhF':function(_0x3d445e){return _0x3d445e();},'KAXEl':'application/json','AfuDH':'Authorization','eOjRN':'POST'},_0x4645b7=await getToken()['catch'](()=>null),_0x123559=_0x22e37b[_0x3d6ede(0x119)](getApiBaseUrl),_0x56f4ce={'Content-Type':_0x22e37b[_0x3d6ede(0x123)]};_0x4645b7&&(_0x56f4ce[_0x22e37b['AfuDH']]=_0x3d6ede(0x101)+_0x4645b7);const _0x3750d1={'events':_0x5e9481};process['env'][_0x3d6ede(0x12b)]&&console[_0x3d6ede(0x131)]('[telemetry]\x20Sending\x20'+_0x5e9481[_0x3d6ede(0x125)]+'\x20event(s)\x20to\x20'+_0x123559+'/api/v1/mcp/cli-telemetry');const _0x1483c5=new AbortController(),_0x29ad25=setTimeout(()=>_0x1483c5[_0x3d6ede(0x14a)](),0x1388);try{await fetch(_0x123559+'/api/v1/mcp/cli-telemetry',{'method':_0x22e37b['eOjRN'],'headers':_0x56f4ce,'body':JSON[_0x3d6ede(0x13a)](_0x3750d1),'signal':_0x1483c5[_0x3d6ede(0x11f)]});}finally{clearTimeout(_0x29ad25);}}}let currentCollector=null;export function createTelemetryCollector(_0xed0af3){return currentCollector=new TelemetryCollector(_0xed0af3),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0x213f08,_0xa1f7e1,_0x4a985c){const _0x2675bc=_0x2fad04,_0x45c946={'EQUvL':function(_0x30e959,_0x52fe29){return _0x30e959(_0x52fe29);},'ZUqWT':_0x2675bc(0x126)},_0x2b0af1=_0x45c946['EQUvL'](createTelemetryCollector,_0x213f08);await _0x2b0af1[_0x2675bc(0x14b)](_0x4a985c);try{const _0x341ca1=await _0x45c946[_0x2675bc(0x11e)](_0xa1f7e1,_0x2b0af1);return await _0x2b0af1['trackCommandEnd'](_0x45c946['ZUqWT']),_0x341ca1;}catch(_0x293d28){await _0x2b0af1[_0x2675bc(0x102)](_0x293d28);throw _0x293d28;}finally{await _0x2b0af1[_0x2675bc(0x12c)]();}}function truncate(_0x200071,_0x59abb4){const _0x3fcf5d=_0x2fad04,_0x2fca1e={'MTrAD':function(_0x505a27,_0x12ce68){return _0x505a27>_0x12ce68;},'TYTfL':'...'};return _0x2fca1e['MTrAD'](_0x200071[_0x3fcf5d(0x125)],_0x59abb4)?_0x200071['slice'](0x0,_0x59abb4)+_0x2fca1e[_0x3fcf5d(0x13f)]:_0x200071;}
@@ -1 +1 @@
1
- (function(_0x114ca0,_0x464e85){const _0x45d4d2=_0xebf2,_0x2abc5a=_0x114ca0();while(!![]){try{const _0x2f52a8=-parseInt(_0x45d4d2(0xd8))/0x1+parseInt(_0x45d4d2(0xd3))/0x2*(-parseInt(_0x45d4d2(0xdc))/0x3)+parseInt(_0x45d4d2(0xd1))/0x4+-parseInt(_0x45d4d2(0xd2))/0x5*(-parseInt(_0x45d4d2(0xd4))/0x6)+-parseInt(_0x45d4d2(0xd6))/0x7+parseInt(_0x45d4d2(0xcf))/0x8+parseInt(_0x45d4d2(0xd5))/0x9;if(_0x2f52a8===_0x464e85)break;else _0x2abc5a['push'](_0x2abc5a['shift']());}catch(_0x516b1e){_0x2abc5a['push'](_0x2abc5a['shift']());}}}(_0x50b1,0x37c65));function _0x50b1(){const _0x79a8ab=['57180FMjVJt','token','sYHtv','twUxU','420639usifFK','/cli-auth/partner-refresh','json','application/json','stringify','547536wcEfpX','LdGPR','217692dWaWkP','5kBFctX','4JhydLl','1444530sELGHR','3715227plQVXR','1472548uMMvxC','EeKGf'];_0x50b1=function(){return _0x79a8ab;};return _0x50b1();}import{getApiBaseUrl}from'./environment.js';import{getRefreshToken,storeToken,storeRefreshToken}from'./keychain.js';export async function refreshCliToken(){const _0x1cfb0d={'UnDiz':function(_0xc9d326,_0x576627){return _0xc9d326(_0x576627);}},_0xdc6043=await getRefreshToken();if(!_0xdc6043)return null;const _0xde8609=await tryPartnerRefresh(_0xdc6043);if(_0xde8609)return _0xde8609;return _0x1cfb0d['UnDiz'](tryWorkosRefresh,_0xdc6043);}export async function refreshPartnerCliToken(_0x96e489,_0x19385b={}){const _0x2d5dd4=_0xebf2,_0x355eec={'sYHtv':function(_0x590e2d,_0x9b15d9){return _0x590e2d(_0x9b15d9);},'sFmSA':function(_0x3c8858,_0x248897){return _0x3c8858(_0x248897);}},_0x2a54b2=await _0x355eec[_0x2d5dd4(0xda)](tryPartnerRefresh,_0x96e489);return _0x2a54b2&&_0x19385b['persistRefreshToken']&&await _0x355eec['sFmSA'](storeRefreshToken,_0x96e489),_0x2a54b2;}function _0xebf2(_0xdf8565,_0x4f6a19){_0xdf8565=_0xdf8565-0xce;const _0x50b183=_0x50b1();let _0xebf2c5=_0x50b183[_0xdf8565];return _0xebf2c5;}async function tryPartnerRefresh(_0x70537c){const _0x4b7984=_0xebf2,_0x3489fa={'ZrBGw':function(_0x1aac33){return _0x1aac33();},'yJkoT':function(_0x10beea,_0x3ce775,_0x3d9ebb){return _0x10beea(_0x3ce775,_0x3d9ebb);},'fQmVX':'application/json'},_0x273030=_0x3489fa['ZrBGw'](getApiBaseUrl);try{const _0x78e6f1=await _0x3489fa['yJkoT'](fetch,_0x273030+_0x4b7984(0xdd),{'method':'POST','headers':{'Content-Type':_0x3489fa['fQmVX']},'body':JSON[_0x4b7984(0xce)]({'refreshToken':_0x70537c}),'signal':AbortSignal['timeout'](0x2710)});if(!_0x78e6f1['ok'])return null;const _0x3d2975=await _0x78e6f1[_0x4b7984(0xde)]();return await storeToken(_0x3d2975[_0x4b7984(0xd9)]),_0x3d2975['token'];}catch{return null;}}async function tryWorkosRefresh(_0xb7cd9f){const _0x342f83=_0xebf2,_0x439734={'twUxU':function(_0x490dac){return _0x490dac();},'OXbFR':function(_0x3be98b,_0x57781a,_0x159bcb){return _0x3be98b(_0x57781a,_0x159bcb);},'YpPEr':'POST','EeKGf':_0x342f83(0xdf),'LdGPR':function(_0x305a9a,_0x5b8194){return _0x305a9a(_0x5b8194);}},_0x4dfe28=_0x439734[_0x342f83(0xdb)](getApiBaseUrl);try{const _0x2fc132=await _0x439734['OXbFR'](fetch,_0x4dfe28+'/cli-auth/refresh',{'method':_0x439734['YpPEr'],'headers':{'Content-Type':_0x439734[_0x342f83(0xd7)]},'body':JSON['stringify']({'refreshToken':_0xb7cd9f}),'signal':AbortSignal['timeout'](0x2710)});if(!_0x2fc132['ok'])return null;const _0x1d2ad1=await _0x2fc132['json']();return await _0x439734[_0x342f83(0xd0)](storeToken,_0x1d2ad1[_0x342f83(0xd9)]),await _0x439734[_0x342f83(0xd0)](storeRefreshToken,_0x1d2ad1['refreshToken']),_0x1d2ad1[_0x342f83(0xd9)];}catch{return null;}}
1
+ (function(_0x58b0fa,_0x5ee45f){const _0x418a9f=_0xe8ff,_0x18dde3=_0x58b0fa();while(!![]){try{const _0x12f321=-parseInt(_0x418a9f(0x7b))/0x1+-parseInt(_0x418a9f(0x7a))/0x2+-parseInt(_0x418a9f(0x7d))/0x3*(parseInt(_0x418a9f(0x80))/0x4)+parseInt(_0x418a9f(0x6f))/0x5+parseInt(_0x418a9f(0x78))/0x6*(parseInt(_0x418a9f(0x79))/0x7)+parseInt(_0x418a9f(0x6e))/0x8*(parseInt(_0x418a9f(0x7c))/0x9)+parseInt(_0x418a9f(0x77))/0xa*(parseInt(_0x418a9f(0x71))/0xb);if(_0x12f321===_0x5ee45f)break;else _0x18dde3['push'](_0x18dde3['shift']());}catch(_0x1fc9fe){_0x18dde3['push'](_0x18dde3['shift']());}}}(_0xe109,0x1981c));import{getApiBaseUrl}from'./environment.js';import{getRefreshToken,storeToken,storeRefreshToken}from'./keychain.js';function _0xe8ff(_0x3476e7,_0x296251){_0x3476e7=_0x3476e7-0x69;const _0xe109b8=_0xe109();let _0xe8fffa=_0xe109b8[_0x3476e7];return _0xe8fffa;}export async function refreshCliToken(){const _0x894dda=_0xe8ff,_0x5ec089={'IPmKS':function(_0x29c6b6){return _0x29c6b6();},'OaSVJ':function(_0x430c62,_0x14d1b6){return _0x430c62(_0x14d1b6);}},_0x4cec8e=await _0x5ec089[_0x894dda(0x76)](getRefreshToken);if(!_0x4cec8e)return null;const _0x325e9c=await _0x5ec089[_0x894dda(0x6a)](tryPartnerRefresh,_0x4cec8e);if(_0x325e9c)return _0x325e9c;return tryWorkosRefresh(_0x4cec8e);}function _0xe109(){const _0x3ee469=['1354260zXCEsZ','16332LzWJNF','427dxERlg','273476PvSODD','52572vREURe','18fWucoG','6nsWvAN','eDgNJ','stringify','225148steiEW','application/json','EwWpx','mZhrB','OaSVJ','QTgQy','json','xipNS','228224UOZthl','239180uKfUHU','wQecN','11TRXXNs','timeout','/cli-auth/refresh','POST','token','IPmKS'];_0xe109=function(){return _0x3ee469;};return _0xe109();}export async function refreshPartnerCliToken(_0x21ab17,_0x4fff53={}){const _0x512255=_0xe8ff,_0x596545={'EwWpx':function(_0x24c4e9,_0x319e32){return _0x24c4e9(_0x319e32);}},_0x36446b=await tryPartnerRefresh(_0x21ab17);return _0x36446b&&_0x4fff53['persistRefreshToken']&&await _0x596545[_0x512255(0x82)](storeRefreshToken,_0x21ab17),_0x36446b;}async function tryPartnerRefresh(_0xf0a4c7){const _0x25b543=_0xe8ff,_0x48ce16={'eDgNJ':_0x25b543(0x74),'wQecN':_0x25b543(0x81)},_0x183b10=getApiBaseUrl();try{const _0x59b7e3=await fetch(_0x183b10+'/cli-auth/partner-refresh',{'method':_0x48ce16[_0x25b543(0x7e)],'headers':{'Content-Type':_0x48ce16[_0x25b543(0x70)]},'body':JSON[_0x25b543(0x7f)]({'refreshToken':_0xf0a4c7}),'signal':AbortSignal[_0x25b543(0x72)](0x2710)});if(!_0x59b7e3['ok'])return null;const _0x2f1836=await _0x59b7e3['json']();return await storeToken(_0x2f1836[_0x25b543(0x75)]),_0x2f1836['token'];}catch{return null;}}async function tryWorkosRefresh(_0x5482b9){const _0x110846=_0xe8ff,_0x5b3004={'AqTmf':function(_0xfa97ee){return _0xfa97ee();},'mZhrB':function(_0x1bf552,_0x452005,_0x1c29f0){return _0x1bf552(_0x452005,_0x1c29f0);},'AOzKB':_0x110846(0x74),'QTgQy':_0x110846(0x81),'xipNS':function(_0x5a0c33,_0x4d64e6){return _0x5a0c33(_0x4d64e6);}},_0x308e0c=_0x5b3004['AqTmf'](getApiBaseUrl);try{const _0x5c9f85=await _0x5b3004[_0x110846(0x69)](fetch,_0x308e0c+_0x110846(0x73),{'method':_0x5b3004['AOzKB'],'headers':{'Content-Type':_0x5b3004[_0x110846(0x6b)]},'body':JSON[_0x110846(0x7f)]({'refreshToken':_0x5482b9}),'signal':AbortSignal['timeout'](0x2710)});if(!_0x5c9f85['ok'])return null;const _0xe19ace=await _0x5c9f85[_0x110846(0x6c)]();return await _0x5b3004[_0x110846(0x6d)](storeToken,_0xe19ace['token']),await storeRefreshToken(_0xe19ace['refreshToken']),_0xe19ace[_0x110846(0x75)];}catch{return null;}}
@@ -1 +1 @@
1
- function _0x6a5c(_0x5e36e0,_0x5b9ff4){_0x5e36e0=_0x5e36e0-0x19d;const _0x2112c5=_0x2112();let _0x6a5cdc=_0x2112c5[_0x5e36e0];return _0x6a5cdc;}(function(_0xfd6f8a,_0x2ebceb){const _0x87f559=_0x6a5c,_0x4cf05a=_0xfd6f8a();while(!![]){try{const _0x315a2b=-parseInt(_0x87f559(0x1a0))/0x1*(-parseInt(_0x87f559(0x1c8))/0x2)+parseInt(_0x87f559(0x1a9))/0x3*(parseInt(_0x87f559(0x1ca))/0x4)+-parseInt(_0x87f559(0x1c2))/0x5+parseInt(_0x87f559(0x1b0))/0x6+-parseInt(_0x87f559(0x1bf))/0x7*(parseInt(_0x87f559(0x1d1))/0x8)+-parseInt(_0x87f559(0x19d))/0x9*(-parseInt(_0x87f559(0x1c4))/0xa)+parseInt(_0x87f559(0x1d2))/0xb;if(_0x315a2b===_0x2ebceb)break;else _0x4cf05a['push'](_0x4cf05a['shift']());}catch(_0xc044c4){_0x4cf05a['push'](_0x4cf05a['shift']());}}}(_0x2112,0x22e7e));function _0x2112(){const _0x3cc046=['find','get','ooeyQ','input','MVItq','set','.trace','beforeSnapshot','point','afterSnapshot','154EhGZoz','values','capturedAt','1333725THWvEo','string','13870tmxuWI','pageId','page@0','push','2qOiQpK','NFQUs','8vMWUwI','filter','endsWith','parse','utf-8','url','fTbrl','59824kafPIx','1796454BaUJtv','getTime','method','gWYnz','711ROAJuI','wallTime','inputSnapshot','227949ABHnBy','length','params','Zfusq','PRrBW','XNaYJ','callId','type','startTime','90540cfbvfc','endTime','snapshotName','frame-snapshot','name','trim','sort','78234ehgWiD','snapshot','SXzJK','wChck','navigated'];_0x2112=function(){return _0x3cc046;};return _0x2112();}import{readdir,readFile}from'fs/promises';import{join}from'path';export async function mapStepsToTraceSnapshots(_0x101a65,_0x1d5591){const _0x301d37=_0x6a5c,_0x5cd770={'gWYnz':function(_0x27b3a1,_0x1576c9,_0x3a6245){return _0x27b3a1(_0x1576c9,_0x3a6245);},'SXzJK':function(_0x165b65,_0x227e31){return _0x165b65(_0x227e31);},'wChck':function(_0x359494,_0x3cde89){return _0x359494===_0x3cde89;},'fTbrl':_0x301d37(0x1ce),'UCDJp':function(_0x429f80,_0xd3dcdb){return _0x429f80-_0xd3dcdb;},'ooeyQ':function(_0x159b4b,_0x528419){return _0x159b4b===_0x528419;},'USbeq':function(_0x26594a,_0x36c2ca){return _0x26594a===_0x36c2ca;},'NFQUs':'goto','MVItq':function(_0x5016b4,_0x12cf7c){return _0x5016b4===_0x12cf7c;},'QkjNp':function(_0x549f17,_0x53e420){return _0x549f17===_0x53e420;},'XNaYJ':function(_0x1382b0,_0x92f14f){return _0x1382b0===_0x92f14f;},'JdyBE':_0x301d37(0x1c3),'Zfusq':function(_0x232214,_0x1cbc31){return _0x232214-_0x1cbc31;},'HRoTy':_0x301d37(0x1c6),'PRrBW':function(_0xd7daad,_0x3315f4){return _0xd7daad>=_0x3315f4;},'rILar':function(_0x210792,_0x1d53d0){return _0x210792<_0x1d53d0;}},_0x5be57c=new Map();if(_0x5cd770[_0x301d37(0x1b3)](_0x1d5591[_0x301d37(0x1a1)],0x0))return _0x5be57c;const _0x27ef98=[],_0x4b53b5=async _0x3b1ade=>{const _0x5f0569=_0x301d37,_0x5db81c=await readdir(_0x3b1ade,{'withFileTypes':!![]});for(const _0x5478d5 of _0x5db81c){const _0x472411=_0x5cd770[_0x5f0569(0x1d5)](join,_0x3b1ade,_0x5478d5[_0x5f0569(0x1ad)]);if(_0x5478d5['isDirectory']())await _0x5cd770[_0x5f0569(0x1b2)](_0x4b53b5,_0x472411);else _0x5478d5['name'][_0x5f0569(0x1cc)](_0x5f0569(0x1bb))&&_0x27ef98[_0x5f0569(0x1c7)](_0x472411);}};await _0x5cd770[_0x301d37(0x1b2)](_0x4b53b5,_0x101a65);if(_0x5cd770[_0x301d37(0x1b3)](_0x27ef98['length'],0x0))return _0x5be57c;const _0x199658=[];for(const _0xf87085 of _0x27ef98){const _0x4d2302=await readFile(_0xf87085,_0x5cd770[_0x301d37(0x1d0)]),_0x4081d0=_0x4d2302['split']('\x0a')['filter'](_0x172216=>_0x172216[_0x301d37(0x1ae)]());for(const _0x24c43b of _0x4081d0){try{_0x199658['push'](JSON[_0x301d37(0x1cd)](_0x24c43b));}catch{}}}if(_0x199658['length']===0x0)return _0x5be57c;const _0x3a3bc1=_0x199658[_0x301d37(0x1b5)](_0x1bb4dc=>_0x1bb4dc[_0x301d37(0x1a7)]==='context-options');if(!_0x3a3bc1)return _0x5be57c;const _0x479c84=_0x5cd770['UCDJp'](_0x3a3bc1[_0x301d37(0x19e)],_0x3a3bc1['monotonicTime']),_0x5ed6b2=new Map();for(const _0x17f918 of _0x199658){switch(_0x17f918['type']){case'before':{const _0x48b78b=_0x17f918;_0x5ed6b2['set'](_0x48b78b['callId'],{'callId':_0x48b78b['callId'],'startTime':_0x48b78b[_0x301d37(0x1a8)],'endTime':0x0,'method':_0x48b78b[_0x301d37(0x1d4)],'apiName':_0x48b78b['apiName'],'params':_0x48b78b[_0x301d37(0x1a2)],'pageId':_0x48b78b['pageId'],'beforeSnapshot':_0x48b78b[_0x301d37(0x1bc)]});break;}case _0x301d37(0x1b8):{const _0x58b6e4=_0x17f918,_0x56bb38=_0x5ed6b2['get'](_0x58b6e4['callId']);if(_0x56bb38){if(_0x58b6e4['inputSnapshot'])_0x56bb38['inputSnapshot']=_0x58b6e4[_0x301d37(0x19f)];if(_0x58b6e4[_0x301d37(0x1bd)])_0x56bb38['point']=_0x58b6e4[_0x301d37(0x1bd)];}break;}case'after':{const _0x197a23=_0x17f918,_0x4547de=_0x5ed6b2[_0x301d37(0x1b6)](_0x197a23['callId']);if(_0x4547de){_0x4547de['endTime']=_0x197a23[_0x301d37(0x1aa)];if(_0x197a23[_0x301d37(0x1be)])_0x4547de['afterSnapshot']=_0x197a23[_0x301d37(0x1be)];}break;}}}const _0x32ddce=Array['from'](_0x5ed6b2[_0x301d37(0x1c0)]())[_0x301d37(0x1cb)](_0x2b5555=>_0x2b5555[_0x301d37(0x1aa)]>0x0&&(_0x2b5555[_0x301d37(0x1be)]||_0x2b5555[_0x301d37(0x1bc)]))[_0x301d37(0x1af)]((_0x3e9b60,_0x519ab4)=>_0x3e9b60[_0x301d37(0x1a8)]-_0x519ab4[_0x301d37(0x1a8)]);if(_0x5cd770[_0x301d37(0x1b7)](_0x32ddce['length'],0x0))return _0x5be57c;const _0x453f97=new Map();for(const _0x337f27 of _0x199658){if(_0x5cd770[_0x301d37(0x1b3)](_0x337f27['type'],_0x301d37(0x1ac))){const _0x3583f7=_0x337f27[_0x301d37(0x1b1)];_0x3583f7?.[_0x301d37(0x1ab)]&&_0x3583f7?.['frameUrl']&&_0x453f97[_0x301d37(0x1ba)](_0x3583f7[_0x301d37(0x1ab)],_0x3583f7['frameUrl']);}}const _0x367f52=new Map();for(const _0x296256 of _0x32ddce){const _0x54a13c=_0x296256['params']?.['url'];_0x5cd770['USbeq'](_0x296256['method'],_0x5cd770['NFQUs'])&&_0x5cd770[_0x301d37(0x1b9)](typeof _0x54a13c,'string')&&_0x296256[_0x301d37(0x1c5)]&&_0x367f52[_0x301d37(0x1ba)](_0x296256[_0x301d37(0x1c5)],_0x54a13c);}for(const _0x177df0 of _0x199658){const _0x192333=_0x177df0,_0x2568a9=_0x192333['params'],_0x33606e=_0x2568a9?.[_0x301d37(0x1cf)];_0x5cd770['QkjNp'](_0x192333['type'],'event')&&_0x5cd770['QkjNp'](_0x192333['method'],_0x301d37(0x1b4))&&typeof _0x33606e===_0x301d37(0x1c3)&&_0x5cd770[_0x301d37(0x1a5)](typeof _0x192333['pageId'],_0x5cd770['JdyBE'])&&_0x367f52['set'](_0x192333['pageId'],_0x33606e);}for(const _0xb99347 of _0x1d5591){const _0xca6a92=new Date(_0xb99347[_0x301d37(0x1c1)])[_0x301d37(0x1d3)](),_0x204bce=_0xca6a92-_0x479c84;let _0xf88a9=null,_0x55b160=Infinity;for(const _0xad1a7e of _0x32ddce){const _0x48a010=Math['abs'](_0x5cd770[_0x301d37(0x1a3)](_0xad1a7e[_0x301d37(0x1aa)],_0x204bce));_0x48a010<_0x55b160&&(_0x55b160=_0x48a010,_0xf88a9=_0xad1a7e);}if(!_0xf88a9)continue;const _0x50ba93=_0xf88a9['afterSnapshot']||_0xf88a9[_0x301d37(0x1bc)];if(!_0x50ba93)continue;const _0x4f8f27=_0xf88a9[_0x301d37(0x1c5)]||_0x5cd770['HRoTy'];let _0x28b43a=_0x453f97['get'](_0x50ba93)||_0x367f52[_0x301d37(0x1b6)](_0x4f8f27)||'';if(!_0x28b43a)for(let _0x3378f0=_0x32ddce['indexOf'](_0xf88a9);_0x5cd770[_0x301d37(0x1a4)](_0x3378f0,0x0);_0x3378f0--){const _0x1ee5d2=_0x32ddce[_0x3378f0]['params']?.['url'];if(_0x32ddce[_0x3378f0][_0x301d37(0x1d4)]===_0x5cd770[_0x301d37(0x1c9)]&&typeof _0x1ee5d2==='string'){_0x28b43a=_0x1ee5d2;break;}}let _0x43495d,_0x3caeb2;const _0x107d19=_0x32ddce['indexOf'](_0xf88a9);if(_0x5cd770[_0x301d37(0x1a4)](_0x107d19,0x0)&&_0x5cd770['rILar'](_0x107d19,_0x32ddce[_0x301d37(0x1a1)]-0x1)){const _0x351990=_0x32ddce[_0x107d19+0x1];_0x351990['point']&&_0x351990[_0x301d37(0x19f)]&&(_0x43495d=_0x351990[_0x301d37(0x1bd)],_0x3caeb2=_0x351990['inputSnapshot']);}_0x5be57c[_0x301d37(0x1ba)](_0xb99347['stepId'],{'snapshotName':_0x50ba93,'inputSnapshotName':_0x3caeb2,'pageId':_0x4f8f27,'pageUrl':_0x28b43a,'callId':_0xf88a9[_0x301d37(0x1a6)],'point':_0x43495d});}return _0x5be57c;}
1
+ (function(_0x5e4d23,_0x2d7687){const _0x5e4a0d=_0x3c40,_0x51fbc8=_0x5e4d23();while(!![]){try{const _0xb66ec7=parseInt(_0x5e4a0d(0xb0))/0x1+parseInt(_0x5e4a0d(0xad))/0x2*(parseInt(_0x5e4a0d(0xbe))/0x3)+parseInt(_0x5e4a0d(0xc0))/0x4*(-parseInt(_0x5e4a0d(0x94))/0x5)+-parseInt(_0x5e4a0d(0x9e))/0x6+parseInt(_0x5e4a0d(0xaa))/0x7+-parseInt(_0x5e4a0d(0xb4))/0x8*(-parseInt(_0x5e4a0d(0x8e))/0x9)+-parseInt(_0x5e4a0d(0x9d))/0xa*(-parseInt(_0x5e4a0d(0xa3))/0xb);if(_0xb66ec7===_0x2d7687)break;else _0x51fbc8['push'](_0x51fbc8['shift']());}catch(_0x2fc64a){_0x51fbc8['push'](_0x51fbc8['shift']());}}}(_0x3dff,0x1fd1d));import{readdir,readFile}from'fs/promises';function _0x3dff(){const _0x36be5b=['606490MvooLG','759348kezuzz','rsAPW','name','SHeXz','point','11HSHrMp','values','method','set','awEdd','snapshotName','.trace','834071YzOWHH','push','afterSnapshot','50NUDLLo','inputSnapshot','url','173786vZttYd','startTime','params','input','328XFuNtT','event','YOWAd','endTime','after','FvKjx','filter','frameUrl','trim','callId','9312dIYxUx','endsWith','769676HhcPLU','pageId','wallTime','3978UferCS','goto','zMUZB','split','capturedAt','MYHGN','5uIZxFN','IZcHQ','beforeSnapshot','parse','hzJlb','isDirectory','length','rnahc','get'];_0x3dff=function(){return _0x36be5b;};return _0x3dff();}import{join}from'path';function _0x3c40(_0x29a644,_0xc5bcb){_0x29a644=_0x29a644-0x8d;const _0x3dff01=_0x3dff();let _0x3c4012=_0x3dff01[_0x29a644];return _0x3c4012;}export async function mapStepsToTraceSnapshots(_0x154b5b,_0x61d502){const _0x3ff45f=_0x3c40,_0x452d81={'SHeXz':function(_0x2c3e2d,_0xf91c32,_0x1a61ef){return _0x2c3e2d(_0xf91c32,_0x1a61ef);},'zMUZB':function(_0x2e4b93,_0x11c078){return _0x2e4b93===_0x11c078;},'yPRZD':'utf-8','rnahc':function(_0x178a85,_0x36c1c7){return _0x178a85===_0x36c1c7;},'StrpT':'before','hzJlb':_0x3ff45f(0xb8),'satJK':function(_0x2c2000,_0x3d9afa){return _0x2c2000===_0x3d9afa;},'GCztI':'frame-snapshot','IZcHQ':_0x3ff45f(0x8f),'YOWAd':'string','auwKX':'navigated','rsAPW':function(_0x530055,_0x2e62c0){return _0x530055-_0x2e62c0;},'FvKjx':function(_0x5a73bf,_0x5d0061){return _0x5a73bf<_0x5d0061;},'awEdd':function(_0x5a54c6,_0x16288f){return _0x5a54c6>=_0x16288f;},'nMjag':function(_0x21c42e,_0x17ba11){return _0x21c42e===_0x17ba11;},'MYHGN':function(_0x2386e8,_0x15301f){return _0x2386e8+_0x15301f;}},_0x289a42=new Map();if(_0x452d81[_0x3ff45f(0x90)](_0x61d502['length'],0x0))return _0x289a42;const _0x37c0a2=[],_0x560a12=async _0x49de18=>{const _0x48e024=_0x3ff45f,_0x383af8=await readdir(_0x49de18,{'withFileTypes':!![]});for(const _0x426cd3 of _0x383af8){const _0x313da7=_0x452d81[_0x48e024(0xa1)](join,_0x49de18,_0x426cd3['name']);if(_0x426cd3[_0x48e024(0x99)]())await _0x560a12(_0x313da7);else _0x426cd3[_0x48e024(0xa0)][_0x48e024(0xbf)](_0x48e024(0xa9))&&_0x37c0a2[_0x48e024(0xab)](_0x313da7);}};await _0x560a12(_0x154b5b);if(_0x452d81['zMUZB'](_0x37c0a2[_0x3ff45f(0x9a)],0x0))return _0x289a42;const _0x8959a1=[];for(const _0x4813f1 of _0x37c0a2){const _0x2f8667=await readFile(_0x4813f1,_0x452d81['yPRZD']),_0x1f8369=_0x2f8667[_0x3ff45f(0x91)]('\x0a')[_0x3ff45f(0xba)](_0x173911=>_0x173911[_0x3ff45f(0xbc)]());for(const _0x23bc4d of _0x1f8369){try{_0x8959a1[_0x3ff45f(0xab)](JSON[_0x3ff45f(0x97)](_0x23bc4d));}catch{}}}if(_0x452d81['rnahc'](_0x8959a1[_0x3ff45f(0x9a)],0x0))return _0x289a42;const _0x543559=_0x8959a1['find'](_0x1b56bd=>_0x1b56bd['type']==='context-options');if(!_0x543559)return _0x289a42;const _0x4b0999=_0x543559[_0x3ff45f(0x8d)]-_0x543559['monotonicTime'],_0x223ac0=new Map();for(const _0x5c1377 of _0x8959a1){switch(_0x5c1377['type']){case _0x452d81['StrpT']:{const _0x5c6003=_0x5c1377;_0x223ac0['set'](_0x5c6003['callId'],{'callId':_0x5c6003['callId'],'startTime':_0x5c6003[_0x3ff45f(0xb1)],'endTime':0x0,'method':_0x5c6003['method'],'apiName':_0x5c6003['apiName'],'params':_0x5c6003['params'],'pageId':_0x5c6003[_0x3ff45f(0xc1)],'beforeSnapshot':_0x5c6003[_0x3ff45f(0x96)]});break;}case _0x3ff45f(0xb3):{const _0xddf3eb=_0x5c1377,_0x5353a2=_0x223ac0['get'](_0xddf3eb[_0x3ff45f(0xbd)]);if(_0x5353a2){if(_0xddf3eb['inputSnapshot'])_0x5353a2['inputSnapshot']=_0xddf3eb[_0x3ff45f(0xae)];if(_0xddf3eb['point'])_0x5353a2[_0x3ff45f(0xa2)]=_0xddf3eb['point'];}break;}case _0x452d81[_0x3ff45f(0x98)]:{const _0x20df3f=_0x5c1377,_0x46e8ed=_0x223ac0['get'](_0x20df3f[_0x3ff45f(0xbd)]);if(_0x46e8ed){_0x46e8ed['endTime']=_0x20df3f['endTime'];if(_0x20df3f[_0x3ff45f(0xac)])_0x46e8ed['afterSnapshot']=_0x20df3f['afterSnapshot'];}break;}}}const _0x3c7e7c=Array['from'](_0x223ac0[_0x3ff45f(0xa4)]())[_0x3ff45f(0xba)](_0x2e9aa7=>_0x2e9aa7['endTime']>0x0&&(_0x2e9aa7['afterSnapshot']||_0x2e9aa7[_0x3ff45f(0x96)]))['sort']((_0x39d927,_0x503268)=>_0x39d927['startTime']-_0x503268['startTime']);if(_0x452d81['satJK'](_0x3c7e7c[_0x3ff45f(0x9a)],0x0))return _0x289a42;const _0x33408d=new Map();for(const _0x16d332 of _0x8959a1){if(_0x16d332['type']===_0x452d81['GCztI']){const _0x348903=_0x16d332['snapshot'];_0x348903?.[_0x3ff45f(0xa8)]&&_0x348903?.[_0x3ff45f(0xbb)]&&_0x33408d[_0x3ff45f(0xa6)](_0x348903[_0x3ff45f(0xa8)],_0x348903[_0x3ff45f(0xbb)]);}}const _0x267c5f=new Map();for(const _0x4d2c3c of _0x3c7e7c){const _0x589793=_0x4d2c3c['params']?.['url'];_0x4d2c3c[_0x3ff45f(0xa5)]===_0x452d81[_0x3ff45f(0x95)]&&typeof _0x589793===_0x452d81['YOWAd']&&_0x4d2c3c[_0x3ff45f(0xc1)]&&_0x267c5f[_0x3ff45f(0xa6)](_0x4d2c3c[_0x3ff45f(0xc1)],_0x589793);}for(const _0x2f627b of _0x8959a1){const _0x100a41=_0x2f627b,_0x225f3c=_0x100a41[_0x3ff45f(0xb2)],_0x2a3837=_0x225f3c?.[_0x3ff45f(0xaf)];_0x452d81[_0x3ff45f(0x9b)](_0x100a41['type'],_0x3ff45f(0xb5))&&_0x452d81['satJK'](_0x100a41[_0x3ff45f(0xa5)],_0x452d81['auwKX'])&&typeof _0x2a3837===_0x452d81[_0x3ff45f(0xb6)]&&typeof _0x100a41['pageId']==='string'&&_0x267c5f[_0x3ff45f(0xa6)](_0x100a41[_0x3ff45f(0xc1)],_0x2a3837);}for(const _0x13e5bf of _0x61d502){const _0x37ea54=new Date(_0x13e5bf[_0x3ff45f(0x92)])['getTime'](),_0x46bb05=_0x37ea54-_0x4b0999;let _0x3ee39a=null,_0x214901=Infinity;for(const _0x20621b of _0x3c7e7c){const _0x285506=Math['abs'](_0x452d81[_0x3ff45f(0x9f)](_0x20621b[_0x3ff45f(0xb7)],_0x46bb05));_0x452d81[_0x3ff45f(0xb9)](_0x285506,_0x214901)&&(_0x214901=_0x285506,_0x3ee39a=_0x20621b);}if(!_0x3ee39a)continue;const _0x2e8825=_0x3ee39a['afterSnapshot']||_0x3ee39a['beforeSnapshot'];if(!_0x2e8825)continue;const _0x2d0ba2=_0x3ee39a[_0x3ff45f(0xc1)]||'page@0';let _0x41b02f=_0x33408d['get'](_0x2e8825)||_0x267c5f[_0x3ff45f(0x9c)](_0x2d0ba2)||'';if(!_0x41b02f)for(let _0x46de81=_0x3c7e7c['indexOf'](_0x3ee39a);_0x452d81[_0x3ff45f(0xa7)](_0x46de81,0x0);_0x46de81--){const _0x196fb3=_0x3c7e7c[_0x46de81]['params']?.[_0x3ff45f(0xaf)];if(_0x452d81['nMjag'](_0x3c7e7c[_0x46de81][_0x3ff45f(0xa5)],_0x3ff45f(0x8f))&&_0x452d81['nMjag'](typeof _0x196fb3,_0x452d81['YOWAd'])){_0x41b02f=_0x196fb3;break;}}let _0x38efc5,_0x3e30e7;const _0x1d0b4c=_0x3c7e7c['indexOf'](_0x3ee39a);if(_0x1d0b4c>=0x0&&_0x452d81['FvKjx'](_0x1d0b4c,_0x3c7e7c[_0x3ff45f(0x9a)]-0x1)){const _0x31c30e=_0x3c7e7c[_0x452d81[_0x3ff45f(0x93)](_0x1d0b4c,0x1)];_0x31c30e[_0x3ff45f(0xa2)]&&_0x31c30e['inputSnapshot']&&(_0x38efc5=_0x31c30e[_0x3ff45f(0xa2)],_0x3e30e7=_0x31c30e['inputSnapshot']);}_0x289a42[_0x3ff45f(0xa6)](_0x13e5bf['stepId'],{'snapshotName':_0x2e8825,'inputSnapshotName':_0x3e30e7,'pageId':_0x2d0ba2,'pageUrl':_0x41b02f,'callId':_0x3ee39a['callId'],'point':_0x38efc5});}return _0x289a42;}
@@ -1 +1 @@
1
- function _0x44ae(){const _0x425c4d=['3615021rpZdRL','10nJRnyQ','status','944NTJfSw','58247dWMNae','7641492ftCkHP','/api/v1/mcp/me','2eGmoyt','1272RSlIhC','303156IStbPQ','nsiuv','62948072ngJeou','1367117XqZeAI','dujee','9225uCdjXL'];_0x44ae=function(){return _0x425c4d;};return _0x44ae();}(function(_0x257eb9,_0x57de8d){const _0x1b8d70=_0x48d3,_0x3cc69c=_0x257eb9();while(!![]){try{const _0x339b42=-parseInt(_0x1b8d70(0x1a7))/0x1*(parseInt(_0x1b8d70(0x1a2))/0x2)+-parseInt(_0x1b8d70(0x1a4))/0x3+parseInt(_0x1b8d70(0x19e))/0x4*(-parseInt(_0x1b8d70(0x1a9))/0x5)+-parseInt(_0x1b8d70(0x1a0))/0x6+parseInt(_0x1b8d70(0x19f))/0x7*(-parseInt(_0x1b8d70(0x1a3))/0x8)+-parseInt(_0x1b8d70(0x1aa))/0x9*(parseInt(_0x1b8d70(0x1ab))/0xa)+parseInt(_0x1b8d70(0x1a6))/0xb;if(_0x339b42===_0x57de8d)break;else _0x3cc69c['push'](_0x3cc69c['shift']());}catch(_0x19070d){_0x3cc69c['push'](_0x3cc69c['shift']());}}}(_0x44ae,0xc85c1));import{getApiBaseUrl}from'./environment.js';function _0x48d3(_0x3c173f,_0x56e076){_0x3c173f=_0x3c173f-0x19e;const _0x44ae48=_0x44ae();let _0x48d3b3=_0x44ae48[_0x3c173f];return _0x48d3b3;}export async function getCurrentUser(_0x1c6a00){const _0x317e0d=_0x48d3,_0x3acca0={'wyrKy':function(_0x41db38){return _0x41db38();},'dujee':function(_0x504236,_0x461698,_0x37a084){return _0x504236(_0x461698,_0x37a084);},'nsiuv':'GET'},_0x4afe15=_0x3acca0['wyrKy'](getApiBaseUrl);try{const _0x1ef37a=await _0x3acca0[_0x317e0d(0x1a8)](fetch,_0x4afe15+_0x317e0d(0x1a1),{'method':_0x3acca0[_0x317e0d(0x1a5)],'headers':{'Authorization':'Bearer\x20'+_0x1c6a00}});if(!_0x1ef37a['ok'])return{'success':![],'error':_0x1ef37a['status']+'\x20'+_0x1ef37a['statusText'],'status':_0x1ef37a[_0x317e0d(0x1ac)]};const _0x3b12fd=await _0x1ef37a['json']();return{'success':!![],'user':_0x3b12fd};}catch(_0x560d92){return{'success':![],'error':_0x560d92 instanceof Error?_0x560d92['message']:String(_0x560d92)};}}
1
+ (function(_0x40faf7,_0xdb0e2){const _0x49d96a=_0x221d,_0x52e683=_0x40faf7();while(!![]){try{const _0x4a937d=parseInt(_0x49d96a(0x9a))/0x1*(-parseInt(_0x49d96a(0x95))/0x2)+-parseInt(_0x49d96a(0x9c))/0x3+-parseInt(_0x49d96a(0xa1))/0x4+-parseInt(_0x49d96a(0xa2))/0x5+-parseInt(_0x49d96a(0xa0))/0x6*(parseInt(_0x49d96a(0x9b))/0x7)+parseInt(_0x49d96a(0x9e))/0x8+-parseInt(_0x49d96a(0x9d))/0x9*(-parseInt(_0x49d96a(0x98))/0xa);if(_0x4a937d===_0xdb0e2)break;else _0x52e683['push'](_0x52e683['shift']());}catch(_0x5bc179){_0x52e683['push'](_0x52e683['shift']());}}}(_0x2669,0xd0fc1));function _0x221d(_0x48385f,_0x168456){_0x48385f=_0x48385f-0x94;const _0x266954=_0x2669();let _0x221d66=_0x266954[_0x48385f];return _0x221d66;}function _0x2669(){const _0x564b5b=['6109472SLMvIi','json','6MEPdvm','1830664MVOnpP','7054030hbbyQq','/api/v1/mcp/me','1257274gsIVbv','bGlPJ','GET','20ofCPHM','statusText','1beqteU','2235457EeFZCs','1210233clrseN','14904846uImHUV'];_0x2669=function(){return _0x564b5b;};return _0x2669();}import{getApiBaseUrl}from'./environment.js';export async function getCurrentUser(_0x4ee81c){const _0x11e1e2=_0x221d,_0x2c0768={'LROCl':function(_0x39150a){return _0x39150a();},'ZxoTr':function(_0x31aaef,_0x59af44,_0x357f3f){return _0x31aaef(_0x59af44,_0x357f3f);},'bGlPJ':_0x11e1e2(0x97)},_0x3ae215=_0x2c0768['LROCl'](getApiBaseUrl);try{const _0x6b08be=await _0x2c0768['ZxoTr'](fetch,_0x3ae215+_0x11e1e2(0x94),{'method':_0x2c0768[_0x11e1e2(0x96)],'headers':{'Authorization':'Bearer\x20'+_0x4ee81c}});if(!_0x6b08be['ok'])return{'success':![],'error':_0x6b08be['status']+'\x20'+_0x6b08be[_0x11e1e2(0x99)],'status':_0x6b08be['status']};const _0x2e9d75=await _0x6b08be[_0x11e1e2(0x9f)]();return{'success':!![],'user':_0x2e9d75};}catch(_0x187d70){return{'success':![],'error':_0x187d70 instanceof Error?_0x187d70['message']:String(_0x187d70)};}}