@ranger-testing/ranger-cli 2.5.3 → 2.5.4-alpha.78800d3-3

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 (77) 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 -0
  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 -0
  42. package/build/commands/utils/cloudProfileSession.js +1 -0
  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 -0
  50. package/build/commands/utils/keychain.js +1 -1
  51. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  52. package/build/commands/utils/matchAuthEnvironment.js +1 -0
  53. package/build/commands/utils/mcpImageBase64.js +1 -1
  54. package/build/commands/utils/model.js +1 -1
  55. package/build/commands/utils/opencodeConfig.js +1 -1
  56. package/build/commands/utils/playwrightCli.js +1 -1
  57. package/build/commands/utils/profileMessages.js +1 -1
  58. package/build/commands/utils/profileSetupBanner.js +1 -1
  59. package/build/commands/utils/projectsConfig.js +1 -0
  60. package/build/commands/utils/rangerConfig.js +1 -1
  61. package/build/commands/utils/rangerRoot.js +1 -1
  62. package/build/commands/utils/resolveProfileContext.js +1 -0
  63. package/build/commands/utils/resolveProfileUrl.js +1 -0
  64. package/build/commands/utils/retry.js +1 -1
  65. package/build/commands/utils/sessionCache.js +1 -1
  66. package/build/commands/utils/settings.js +1 -1
  67. package/build/commands/utils/skillContent.js +1 -1
  68. package/build/commands/utils/skills.js +1 -1
  69. package/build/commands/utils/stitchWebmFiles.js +1 -1
  70. package/build/commands/utils/telemetry.js +1 -1
  71. package/build/commands/utils/tokenRefresh.js +1 -1
  72. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  73. package/build/commands/utils/userApi.js +1 -1
  74. package/build/commands/utils/version.js +1 -1
  75. package/build/commands/verifyFeature.js +1 -1
  76. package/build/commands/verifyFeatureCli.js +1 -1
  77. package/package.json +6 -2
@@ -1 +1 @@
1
- const _0x57b256=_0x3ccc;(function(_0x38cd7b,_0xf81611){const _0x3448ee=_0x3ccc,_0x317328=_0x38cd7b();while(!![]){try{const _0xe9452d=-parseInt(_0x3448ee(0x124))/0x1+parseInt(_0x3448ee(0x127))/0x2+-parseInt(_0x3448ee(0x10d))/0x3*(-parseInt(_0x3448ee(0x121))/0x4)+parseInt(_0x3448ee(0x12a))/0x5*(parseInt(_0x3448ee(0xea))/0x6)+parseInt(_0x3448ee(0x10c))/0x7*(parseInt(_0x3448ee(0xe0))/0x8)+parseInt(_0x3448ee(0x104))/0x9*(parseInt(_0x3448ee(0xfd))/0xa)+parseInt(_0x3448ee(0x131))/0xb*(-parseInt(_0x3448ee(0x11f))/0xc);if(_0xe9452d===_0xf81611)break;else _0x317328['push'](_0x317328['shift']());}catch(_0x16d43a){_0x317328['push'](_0x317328['shift']());}}}(_0x41b8,0x376b6));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}from'./rangerRoot.js';export function getEnvDir(_0x595e4c){const _0x3568de=_0x3ccc,_0x425193={'FAllw':'local','faGQV':function(_0x482712,_0x548e76,_0x524cfe){return _0x482712(_0x548e76,_0x524cfe);},'Fezxa':function(_0x3888f2,_0x194cee){return _0x3888f2(_0x194cee);},'uahku':function(_0x97bf99,_0x50cabc){return _0x97bf99!==_0x50cabc;}},_0x59a6bf=getRangerDir(),_0x1dd587=join(_0x59a6bf,'ci',_0x595e4c),_0x16a001=join(_0x59a6bf,_0x425193[_0x3568de(0x136)],_0x595e4c),_0x3ab213=join(_0x59a6bf,_0x595e4c),_0x27dddc=_0x425193['faGQV'](join,_0x59a6bf,_0x425193[_0x3568de(0x136)]),_0x243d90=join(_0x59a6bf,'ci');if(existsSync(_0x1dd587))return _0x1dd587;if(_0x425193['Fezxa'](existsSync,_0x16a001))return _0x16a001;if(existsSync(_0x3ab213)&&(_0x3ab213!==_0x27dddc&&_0x425193[_0x3568de(0xef)](_0x3ab213,_0x243d90)?!![]:hasLegacyProfileFiles(_0x3ab213)))return _0x3ab213;return _0x16a001;}export function findExistingEnv(_0xfdd2c,_0x396eaa){const _0x184674=_0x3ccc,_0x129752={'bdVJB':function(_0x16b91b){return _0x16b91b();},'KLOiL':_0x184674(0x12b),'vQsQz':function(_0x4104cb,_0x5f3713,_0x1773f1,_0xbfb8da){return _0x4104cb(_0x5f3713,_0x1773f1,_0xbfb8da);},'FNboY':_0x184674(0x111),'dTdfm':function(_0x3a823d,_0x50e22e){return _0x3a823d(_0x50e22e);},'KVFJd':function(_0x42299f,_0x4ea99a){return _0x42299f===_0x4ea99a;},'dhJyT':function(_0x2fa1fe,_0x35786c){return _0x2fa1fe===_0x35786c;},'QTOiS':function(_0x2843f1,_0x469d16){return _0x2843f1(_0x469d16);}},_0x38162c=_0x396eaa?.['rangerDir']??_0x129752['bdVJB'](getRangerDir),_0x4f27a3=_0x396eaa?.['locations']??['ci',_0x129752['KLOiL'],'legacy'],_0x320f37=join(_0x38162c,_0x129752['KLOiL']),_0x1d762a=join(_0x38162c,'ci'),_0x52540c=[{'location':'ci','path':join(_0x38162c,'ci',_0xfdd2c)},{'location':_0x129752[_0x184674(0xfb)],'path':_0x129752['vQsQz'](join,_0x38162c,_0x129752['KLOiL'],_0xfdd2c)},{'location':_0x129752['FNboY'],'path':join(_0x38162c,_0xfdd2c)}];for(const _0x4c73b1 of _0x52540c){if(_0x4f27a3[_0x184674(0x137)](_0x4c73b1['location'])&&_0x129752[_0x184674(0x116)](existsSync,_0x4c73b1['path'])){if(_0x4c73b1[_0x184674(0xe3)]===_0x129752[_0x184674(0x139)]&&(_0x129752['KVFJd'](_0x4c73b1['path'],_0x320f37)||_0x129752[_0x184674(0x102)](_0x4c73b1[_0x184674(0x114)],_0x1d762a))&&!_0x129752[_0x184674(0x100)](hasLegacyProfileFiles,_0x4c73b1['path']))continue;return{'path':_0x4c73b1['path'],'location':_0x4c73b1[_0x184674(0xe3)]};}}return null;}function hasLegacyProfileFiles(_0x468801){const _0x5e446c=_0x3ccc,_0x47af3a={'fPcUy':function(_0x7b9abc,_0x5315a8){return _0x7b9abc(_0x5315a8);},'QxOCu':function(_0x3bd34e,_0x2fc676){return _0x3bd34e(_0x2fc676);},'gzuyG':_0x5e446c(0xe4)};return _0x47af3a[_0x5e446c(0xdb)](existsSync,join(_0x468801,'settings.json'))||_0x47af3a[_0x5e446c(0xfe)](existsSync,join(_0x468801,'auth.json'))||existsSync(join(_0x468801,_0x47af3a['gzuyG']));}export function isEnvCi(_0x585525){const _0x31f35a={'YHbMK':function(_0x10b46a,_0x8bc02f){return _0x10b46a(_0x8bc02f);},'LAedV':function(_0x3c8dda){return _0x3c8dda();}};return _0x31f35a['YHbMK'](existsSync,join(_0x31f35a['LAedV'](getRangerDir),'ci',_0x585525));}export async function cleanupTempFiles(_0x2538bb){const _0x400356=_0x3ccc,_0x50cc8c={'TaLKL':function(_0x33679b,_0x2c1c18){return _0x33679b!==_0x2c1c18;},'tqoom':'ENOENT'},_0x3e3011=[_0x2538bb[_0x400356(0xfa)],_0x2538bb[_0x400356(0x140)]]['filter'](Boolean);await Promise[_0x400356(0xda)](_0x3e3011['map'](_0x26caf3=>unlink(_0x26caf3)['catch'](_0x4ffae0=>{const _0x348781=_0x400356;_0x50cc8c[_0x348781(0xe9)](_0x4ffae0[_0x348781(0x145)],_0x50cc8c['tqoom'])&&console[_0x348781(0xde)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x26caf3+':',_0x4ffae0[_0x348781(0x110)]);})));}export function getSettingsPath(_0x4e2fcc){const _0x284ea1=_0x3ccc,_0x1af884={'lsKRI':function(_0x16168d,_0x5bb6f2,_0x215067){return _0x16168d(_0x5bb6f2,_0x215067);},'SxQkU':_0x284ea1(0xd8)};return _0x1af884[_0x284ea1(0x113)](join,getEnvDir(_0x4e2fcc),_0x1af884[_0x284ea1(0xf2)]);}export async function loadSettings(_0x59b6f9){const _0x4873bf=_0x3ccc,_0x4cadc2={'etlQg':_0x4873bf(0x128)},_0x35acc3=getSettingsPath(_0x59b6f9);if(!existsSync(_0x35acc3))return{};try{const _0x3c4bc9=await readFile(_0x35acc3,_0x4cadc2['etlQg']);return JSON[_0x4873bf(0xce)](_0x3c4bc9);}catch{return{};}}export async function saveSettings(_0x3b8b20,_0x254a5d){const _0x270544=_0x3ccc,_0x37b422={'Pelmj':function(_0x475a46,_0xe4e2c4){return _0x475a46(_0xe4e2c4);}},_0x17b996=getSettingsPath(_0x3b8b20),_0x4739f9=dirname(_0x17b996);!_0x37b422['Pelmj'](existsSync,_0x4739f9)&&await mkdir(_0x4739f9,{'recursive':!![]}),await writeFile(_0x17b996,JSON[_0x270544(0x134)](_0x254a5d,null,0x2));}export function resolveEnvVars(_0x1eef41){const _0xcf32f2=_0x3ccc,_0x2ceed8={'AenhI':function(_0x2e241a,_0x34d216){return _0x2e241a===_0x34d216;},'AYtpW':_0xcf32f2(0xf1)};if(typeof _0x1eef41===_0xcf32f2(0x135))return _0x1eef41['replace'](/\$\{(\w+)\}/g,(_0x1845c9,_0x237422)=>{const _0x84f051=_0xcf32f2,_0xfbdcc5=process[_0x84f051(0x12f)][_0x237422];if(_0x2ceed8['AenhI'](_0xfbdcc5,undefined))throw new Error(_0x84f051(0xfc)+_0x237422+'\x20is\x20not\x20set');return _0xfbdcc5;});if(Array['isArray'](_0x1eef41))return _0x1eef41[_0xcf32f2(0x11d)](resolveEnvVars);if(_0x1eef41&&typeof _0x1eef41===_0x2ceed8[_0xcf32f2(0x12c)])return Object['fromEntries'](Object['entries'](_0x1eef41)[_0xcf32f2(0x11d)](([_0x485c68,_0x1a1e39])=>[_0x485c68,resolveEnvVars(_0x1a1e39)]));return _0x1eef41;}const isRecord=_0x361bed=>typeof _0x361bed===_0x57b256(0xf1)&&_0x361bed!==null&&!Array[_0x57b256(0x11a)](_0x361bed),asRecord=_0xa47494=>isRecord(_0xa47494)?_0xa47494:undefined,mergeHeaders=(_0x1159a1,_0x244493)=>{const _0x334f92=_0x57b256,_0x5337bc={'qDtDr':function(_0x481941,_0x3dfc62){return _0x481941??_0x3dfc62;}},_0x67b2d5={..._0x5337bc[_0x334f92(0xd1)](_0x1159a1,{}),..._0x244493??{}};return Object['keys'](_0x67b2d5)[_0x334f92(0x117)]?_0x67b2d5:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=[_0x57b256(0xf8),_0x57b256(0xd9),_0x57b256(0xcf),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x1499ba,_0x56bcb8={}){const _0x5751e5=_0x57b256,_0x1641a2={'xURKA':function(_0x442a9c,_0x10c02b){return _0x442a9c(_0x10c02b);},'arbKH':function(_0x53867e,_0x52f517){return _0x53867e===_0x52f517;},'NBPlq':function(_0x53b071,_0x367e5b,_0x8b6fa3){return _0x53b071(_0x367e5b,_0x8b6fa3);},'cmjjG':function(_0xa947bb,_0x68183c){return _0xa947bb(_0x68183c);},'nHIMS':function(_0x31f38d,_0x15528e){return _0x31f38d(_0x15528e);}},_0x4af137=_0x1641a2['xURKA'](asRecord,_0x1499ba[_0x5751e5(0x130)]),_0x2b8455={...asRecord(_0x4af137?.[_0x5751e5(0x126)])??{}};_0x1641a2['arbKH'](typeof _0x56bcb8['headless'],_0x5751e5(0xd0))&&(_0x2b8455['headless']=_0x56bcb8['headless']);if(_0x1499ba[_0x5751e5(0x13a)]){const _0x268396=_0x2b8455['args']??[],_0x4843f8=SAFE_MODE_ARGS['filter'](_0x10a3e2=>!_0x268396[_0x5751e5(0x137)](_0x10a3e2));_0x2b8455[_0x5751e5(0x107)]=[..._0x268396,..._0x4843f8];}if(_0x1499ba[_0x5751e5(0x119)]){const _0x23d2ae=_0x2b8455[_0x5751e5(0x107)]??[],_0x5aa918=ALLOW_LOCALHOST_ARGS['filter'](_0x481928=>!_0x23d2ae['includes'](_0x481928));_0x2b8455[_0x5751e5(0x107)]=[..._0x23d2ae,..._0x5aa918];}const _0x2a478a={...asRecord(_0x4af137?.[_0x5751e5(0x141)])??{}};_0x2a478a[_0x5751e5(0x133)]=!![];typeof _0x1499ba[_0x5751e5(0x13e)]==='string'&&(_0x2a478a[_0x5751e5(0x13e)]=_0x1499ba['userAgent']);const _0x270a5d=_0x1641a2[_0x5751e5(0xeb)](mergeHeaders,_0x1641a2['cmjjG'](asRecord,_0x2a478a[_0x5751e5(0xe2)]),_0x1641a2['nHIMS'](asRecord,_0x1499ba[_0x5751e5(0x13f)]));return _0x270a5d?_0x2a478a['extraHTTPHeaders']=_0x270a5d:delete _0x2a478a['extraHTTPHeaders'],_0x56bcb8[_0x5751e5(0xf4)]&&(_0x2a478a[_0x5751e5(0xe8)]=_0x56bcb8[_0x5751e5(0xf4)]),{'launchOptions':_0x2b8455,'contextOptions':_0x2a478a};}export async function buildPlaywrightConfig(_0x2bb9f9,_0x2619ee,_0x213c1e,_0x3ad7a8){const _0x536f7c=_0x57b256,_0x3d220e={'wxeeB':function(_0x439c90,_0x55d761,_0x15a97d){return _0x439c90(_0x55d761,_0x15a97d);},'cSYjj':function(_0x2f4f54,_0x227a8d){return _0x2f4f54===_0x227a8d;},'IOtLA':'--no-sandbox','fRfUQ':'--disable-setuid-sandbox','PgRvQ':_0x536f7c(0x12e),'lEevM':_0x536f7c(0x13b),'CrsLi':function(_0x21840d,_0x1f322b){return _0x21840d(_0x1f322b);},'uPSWa':function(_0x4c5a9e,_0x3bfb08,_0x24e2e4){return _0x4c5a9e(_0x3bfb08,_0x24e2e4);},'XhQIy':_0x536f7c(0x13c),'TRlpv':function(_0x3b50ae,_0xb35cb8){return _0x3b50ae(_0xb35cb8);},'ZoImL':function(_0x2fe60c){return _0x2fe60c();},'rbplD':_0x536f7c(0xd4),'lbyRT':function(_0x2cf35b,_0x33f841){return _0x2cf35b(_0x33f841);},'sjUiD':_0x536f7c(0x112),'inhpb':'install','vIeAQ':function(_0xdc927f,_0x5d49e5){return _0xdc927f===_0x5d49e5;},'GotSn':function(_0x4593c3){return _0x4593c3();},'DwYCQ':function(_0x334987,_0xe9db2d,_0x3e2f5d){return _0x334987(_0xe9db2d,_0x3e2f5d);},'yonbl':function(_0x5d8cbc,_0x5ba0e1,_0x3cb02c){return _0x5d8cbc(_0x5ba0e1,_0x3cb02c);}},_0x4348df=_0x3d220e[_0x536f7c(0xdc)](getEnvDir,_0x2619ee),_0x3d6b37=join(_0x4348df,'auth.json.enc'),_0x5ca92e=_0x3d220e['uPSWa'](join,_0x4348df,_0x3d220e[_0x536f7c(0x142)]);let _0x3c97c6,_0x4fd583;if(existsSync(_0x3d6b37))try{const _0x56275d=await getToken();if(!_0x56275d)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x23ed58=await readFile(_0x3d6b37),_0x2621c9=decrypt(_0x23ed58,_0x56275d);_0x4fd583=join(tmpdir(),_0x536f7c(0xdf)+Date[_0x536f7c(0x11e)]()+'.json'),await writeFile(_0x4fd583,_0x2621c9),_0x3c97c6=_0x4fd583;}catch(_0x440061){const _0x98217a=_0x440061 instanceof Error?_0x440061['message']:_0x3d220e['TRlpv'](String,_0x440061);throw new Error(_0x536f7c(0x132)+_0x98217a);}else _0x3d220e[_0x536f7c(0xe1)](existsSync,_0x5ca92e)&&(_0x3c97c6=_0x5ca92e);const _0x15a1c7=_0x213c1e||_0x3d220e['ZoImL'](randomUUID),_0x38b680=join(getRangerDir(),_0x3d220e['rbplD'],_0x15a1c7),_0xc93d8b=_0x3d220e['lbyRT'](Boolean,_0x2bb9f9['cdpEndpoint']),_0x19293d=_0xc93d8b?{'browserName':_0x3d220e[_0x536f7c(0xe6)],'cdpEndpoint':_0x2bb9f9['cdpEndpoint']}:((()=>{const _0x3b03e6=_0x536f7c,{launchOptions:_0x322799,contextOptions:_0x32b6db}=_0x3d220e[_0x3b03e6(0xd7)](buildBrowserOptionsFromSettings,_0x2bb9f9,{'headless':_0x3ad7a8?![]:_0x2bb9f9['headless']??!![],'storageStatePath':_0x3c97c6});if(_0x3d220e[_0x3b03e6(0xf7)](process[_0x3b03e6(0x125)]?.(),0x0)){const _0x35d891=[_0x3d220e['IOtLA'],_0x3d220e['fRfUQ']],_0x879d6f=_0x322799['args']??[],_0x29b6fe=_0x35d891[_0x3b03e6(0xd5)](_0x48f423=>!_0x879d6f[_0x3b03e6(0x137)](_0x48f423));_0x322799[_0x3b03e6(0x107)]=[..._0x879d6f,..._0x29b6fe];}return{'isolated':!![],'browserName':_0x3d220e['PgRvQ'],'launchOptions':_0x322799,'contextOptions':{..._0x32b6db,'permissions':[_0x3b03e6(0x103),_0x3d220e[_0x3b03e6(0x122)]],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x436017={'name':_0x2619ee,'browser':_0x19293d,'capabilities':[_0x3d220e['sjUiD'],'tabs',_0x3d220e['inhpb'],'pdf',_0x536f7c(0x10a)],'imageResponses':_0x536f7c(0xf3),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x38b680};if(!_0xc93d8b){const _0x43a299=_0x436017[_0x536f7c(0x130)],_0x4726f0=_0x43a299['contextOptions'];if(_0x4726f0['userAgent']===undefined)delete _0x4726f0['userAgent'];if(_0x3d220e['vIeAQ'](_0x4726f0['storageState'],undefined))delete _0x4726f0['storageState'];}const _0x20a5cc=_0x3d220e[_0x536f7c(0xd7)](join,_0x3d220e[_0x536f7c(0x105)](tmpdir),_0x536f7c(0x129));!existsSync(_0x20a5cc)&&await mkdir(_0x20a5cc,{'recursive':!![]});const _0x50afa0=_0x3d220e[_0x536f7c(0x143)](join,_0x20a5cc,_0x2619ee+'-'+Date[_0x536f7c(0x11e)]()+'.json');return await _0x3d220e['yonbl'](writeFile,_0x50afa0,JSON[_0x536f7c(0x134)](_0x436017,null,0x2)),{'configPath':_0x50afa0,'tempAuthPath':_0x4fd583};}export async function buildPlaywrightCliConfig(_0x5cbbd3,_0x381923,_0x57640d,_0x1dd3d7){const _0x379be9=_0x57b256,_0x1c2393={'oPeNH':function(_0x38f66b,_0x1c21c9){return _0x38f66b===_0x1c21c9;},'OrFeT':_0x379be9(0xd6),'dZtwh':'clipboard-read','yolxd':function(_0x5c047f,_0x3f2abb,_0x43a462){return _0x5c047f(_0x3f2abb,_0x43a462);},'zBxfr':_0x379be9(0xe4),'bsCaT':function(_0x4ac01d,_0x5399f0,_0x3fd4e4){return _0x4ac01d(_0x5399f0,_0x3fd4e4);},'IYmEW':'auth.json','OQKMK':function(_0x457b40){return _0x457b40();},'cHBgR':function(_0x2151e0,_0xce7530){return _0x2151e0(_0xce7530);},'bVPxR':function(_0x491678){return _0x491678();},'mqbBH':function(_0x3f589f,_0x35692f,_0x19aadc){return _0x3f589f(_0x35692f,_0x19aadc);},'yHorb':function(_0x112a04,_0x28a448){return _0x112a04 instanceof _0x28a448;},'Mckqe':function(_0x5a2461,_0x473f84){return _0x5a2461(_0x473f84);},'DcFpM':function(_0x211777,_0x976248,_0x2060f2,_0x421ace){return _0x211777(_0x976248,_0x2060f2,_0x421ace);},'xAcMD':_0x379be9(0xd4),'wKURZ':function(_0x52b54b){return _0x52b54b();},'BdPbz':_0x379be9(0x129),'DNcNo':function(_0x4108b8,_0x38f9b9,_0x3e3b0f){return _0x4108b8(_0x38f9b9,_0x3e3b0f);}},_0x44c636=getEnvDir(_0x381923),_0x1d9534=_0x1c2393['yolxd'](join,_0x44c636,_0x1c2393[_0x379be9(0x138)]),_0x11b20a=_0x1c2393['bsCaT'](join,_0x44c636,_0x1c2393['IYmEW']);let _0x1c9329,_0x26b217;if(existsSync(_0x1d9534))try{const _0x11709e=await _0x1c2393[_0x379be9(0x11c)](getToken);if(!_0x11709e)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x287c78=await _0x1c2393[_0x379be9(0xe7)](readFile,_0x1d9534),_0x31e5c0=decrypt(_0x287c78,_0x11709e);_0x26b217=join(_0x1c2393['bVPxR'](tmpdir),_0x379be9(0xdf)+Date['now']()+_0x379be9(0xf9)),await _0x1c2393['mqbBH'](writeFile,_0x26b217,_0x31e5c0),_0x1c9329=_0x26b217;}catch(_0x1b3cec){const _0x40b49d=_0x1c2393['yHorb'](_0x1b3cec,Error)?_0x1b3cec[_0x379be9(0x110)]:String(_0x1b3cec);throw new Error(_0x379be9(0x132)+_0x40b49d);}else _0x1c2393[_0x379be9(0xd2)](existsSync,_0x11b20a)&&(_0x1c9329=_0x11b20a);const _0xb74060=_0x57640d||_0x1c2393[_0x379be9(0xff)](randomUUID),_0x482ef9=_0x1c2393[_0x379be9(0xed)](join,_0x1c2393[_0x379be9(0x11c)](getRangerDir),_0x1c2393[_0x379be9(0x118)],_0xb74060),_0x25600c=Boolean(_0x5cbbd3[_0x379be9(0x101)]),_0x222d2b=_0x25600c?{'browserName':'chromium','cdpEndpoint':_0x5cbbd3[_0x379be9(0x101)]}:((()=>{const _0x87cb01=_0x379be9,{launchOptions:_0x29cd7b,contextOptions:_0x5dfcc1}=buildBrowserOptionsFromSettings(_0x5cbbd3,{'headless':_0x1dd3d7?![]:_0x5cbbd3[_0x87cb01(0x106)]??!![],'storageStatePath':_0x1c9329});if(_0x1c2393[_0x87cb01(0xf6)](process[_0x87cb01(0x125)]?.(),0x0)){const _0x44499d=[_0x87cb01(0x10f),_0x1c2393[_0x87cb01(0x10b)]],_0x1a0018=_0x29cd7b[_0x87cb01(0x107)]??[],_0x4b9516=_0x44499d[_0x87cb01(0xd5)](_0x3a3bd4=>!_0x1a0018[_0x87cb01(0x137)](_0x3a3bd4));_0x29cd7b[_0x87cb01(0x107)]=[..._0x1a0018,..._0x4b9516];}return{'isolated':!![],'browserName':_0x87cb01(0x12e),'launchOptions':_0x29cd7b,'contextOptions':{..._0x5dfcc1,'permissions':[_0x1c2393[_0x87cb01(0xcd)],_0x87cb01(0x13b)],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x25600c){const _0x1f40a7=_0x222d2b['contextOptions'];if(_0x1c2393[_0x379be9(0xf6)](_0x1f40a7[_0x379be9(0x13e)],undefined))delete _0x1f40a7[_0x379be9(0x13e)];if(_0x1f40a7[_0x379be9(0xe8)]===undefined)delete _0x1f40a7['storageState'];}const _0x166488={'browser':_0x222d2b,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x482ef9,'outputMode':_0x379be9(0x108),'codegen':_0x379be9(0x109)},_0x61e789=_0x1c2393[_0x379be9(0xec)](join,_0x1c2393['wKURZ'](tmpdir),_0x1c2393[_0x379be9(0x115)]);!existsSync(_0x61e789)&&await mkdir(_0x61e789,{'recursive':!![]});const _0x4e5eba=_0x1c2393['DNcNo'](join,_0x61e789,_0x381923+'-'+Date['now']()+_0x379be9(0x11b));return await _0x1c2393['bsCaT'](writeFile,_0x4e5eba,JSON[_0x379be9(0x134)](_0x166488,null,0x2)),{'configPath':_0x4e5eba,'tempAuthPath':_0x26b217};}export function getNestedValue(_0x350708,_0x3e66ab){const _0x26da55=_0x57b256,_0xa1c388={'ffuFH':function(_0x5d4905,_0x4e616d){return _0x5d4905===_0x4e616d;},'QfmGE':function(_0x2a35ee,_0x2b24ac){return _0x2a35ee!==_0x2b24ac;}},_0x16d38a=parseKeyPath(_0x3e66ab);let _0x196739=_0x350708;for(const _0x10c0da of _0x16d38a){if(_0xa1c388['ffuFH'](_0x196739,null)||_0x196739===undefined||_0xa1c388[_0x26da55(0x13d)](typeof _0x196739,'object'))return undefined;_0x196739=_0x196739[_0x10c0da];}return _0x196739;}export function setNestedValue(_0x5cb873,_0x143490,_0x2c343b){const _0x2deb19=_0x57b256,_0x13322e={'kIfIm':function(_0x5832da,_0x1d50c9){return _0x5832da(_0x1d50c9);},'vmRIk':function(_0x20a63a,_0x1d4ae2){return _0x20a63a in _0x1d4ae2;}},_0x365326=_0x13322e[_0x2deb19(0x12d)](parseKeyPath,_0x143490);let _0x2ce916=_0x5cb873;for(let _0x154f0d=0x0;_0x154f0d<_0x365326['length']-0x1;_0x154f0d++){const _0x314ad6=_0x365326[_0x154f0d];(!_0x13322e[_0x2deb19(0xe5)](_0x314ad6,_0x2ce916)||typeof _0x2ce916[_0x314ad6]!==_0x2deb19(0xf1))&&(_0x2ce916[_0x314ad6]={}),_0x2ce916=_0x2ce916[_0x314ad6];}_0x2ce916[_0x365326[_0x365326['length']-0x1]]=_0x2c343b;}function _0x3ccc(_0x113b59,_0x56e619){_0x113b59=_0x113b59-0xcc;const _0x41b87c=_0x41b8();let _0x3ccc3f=_0x41b87c[_0x113b59];return _0x3ccc3f;}export function deleteNestedValue(_0x3c3238,_0xe5408a){const _0x337188=_0x57b256,_0x32e1ed={'sKqfQ':function(_0x2d2996,_0x53b333){return _0x2d2996(_0x53b333);},'IIEfN':function(_0x4d267d,_0x26e9c8){return _0x4d267d<_0x26e9c8;},'nRbbK':function(_0x41ef7c,_0x4f75bf){return _0x41ef7c===_0x4f75bf;},'lbUOy':_0x337188(0xf1),'aJkCi':function(_0x1551c1,_0x544090){return _0x1551c1===_0x544090;}},_0x2742f6=_0x32e1ed[_0x337188(0xdd)](parseKeyPath,_0xe5408a);let _0x10b888=_0x3c3238;for(let _0x4e1ced=0x0;_0x32e1ed['IIEfN'](_0x4e1ced,_0x2742f6['length']-0x1);_0x4e1ced++){if(_0x32e1ed['nRbbK'](_0x10b888,null)||_0x10b888===undefined||typeof _0x10b888!==_0x32e1ed[_0x337188(0x10e)])return![];_0x10b888=_0x10b888[_0x2742f6[_0x4e1ced]];}if(_0x10b888===null||_0x32e1ed['aJkCi'](_0x10b888,undefined)||typeof _0x10b888!==_0x337188(0xf1))return![];const _0x4e07c0=_0x2742f6[_0x2742f6['length']-0x1];if(_0x4e07c0 in _0x10b888)return delete _0x10b888[_0x4e07c0],!![];return![];}function parseKeyPath(_0x149c55){const _0x358f8b=_0x57b256,_0x10905d={'NLLlS':_0x358f8b(0xcc),'dJjdY':function(_0x38845a,_0x43480a){return _0x38845a===_0x43480a;},'CkzlX':'setupHeaders'},_0x57f11f=_0x149c55[_0x358f8b(0xee)]('.');return _0x57f11f[0x0]===_0x10905d['NLLlS']&&(_0x57f11f[0x0]='headers'),_0x10905d[_0x358f8b(0x123)](_0x57f11f[0x0],'setupHeader')&&(_0x57f11f[0x0]=_0x10905d['CkzlX']),_0x57f11f;}export function formatSettings(_0x538991,_0x301c6e=0x0){const _0x57add3=_0x57b256,_0x4c3cab={'uInds':function(_0x284c53,_0x3f4ce0){return _0x284c53===_0x3f4ce0;},'jfqCn':function(_0x26c919,_0x12ab04){return _0x26c919===_0x12ab04;},'mYKjQ':function(_0x9b7ea,_0x5b968c){return _0x9b7ea!==_0x5b968c;}},_0x122d9d=[],_0x5b3001='\x20\x20'[_0x57add3(0x144)](_0x301c6e);for(const [_0x440d6d,_0x358878]of Object['entries'](_0x538991)){if(_0x4c3cab['uInds'](_0x358878,undefined))continue;if(_0x4c3cab['jfqCn'](typeof _0x358878,'object')&&_0x4c3cab[_0x57add3(0xd3)](_0x358878,null)){_0x122d9d['push'](''+_0x5b3001+_0x440d6d+':');for(const [_0x372706,_0x5ea932]of Object[_0x57add3(0xf5)](_0x358878)){_0x122d9d[_0x57add3(0x120)](_0x5b3001+'\x20\x20'+_0x372706+':\x20'+_0x5ea932);}}else _0x122d9d['push'](''+_0x5b3001+_0x440d6d+':\x20'+_0x358878);}return _0x122d9d[_0x57add3(0xf0)]('\x0a');}function _0x41b8(){const _0x1bd1ab=['lEevM','dJjdY','308546WpwRqR','getuid','launchOptions','258840YHqEej','utf-8','ranger-config','3275vhieVh','local','AYtpW','kIfIm','chromium','env','browser','11cTUROH','Failed\x20to\x20decrypt\x20auth\x20state:\x20','ignoreHTTPSErrors','stringify','string','FAllw','includes','zBxfr','FNboY','safeMode','clipboard-write','auth.json','QfmGE','userAgent','headers','configPath','contextOptions','XhQIy','DwYCQ','repeat','code','header','dZtwh','parse','--unsafely-treat-insecure-origin-as-secure=http://localhost','boolean','qDtDr','Mckqe','mYKjQ','sessions','filter','--disable-setuid-sandbox','wxeeB','settings.json','--allow-running-insecure-content','all','fPcUy','CrsLi','sKqfQ','warn','ranger-auth-','38352WofPUG','TRlpv','extraHTTPHeaders','location','auth.json.enc','vmRIk','PgRvQ','cHBgR','storageState','TaLKL','558qafOQs','NBPlq','mqbBH','DcFpM','split','uahku','join','object','SxQkU','allow','storageStatePath','entries','oPeNH','cSYjj','--disable-web-security','.json','tempAuthPath','KLOiL','Environment\x20variable\x20','3357740NztSIQ','QxOCu','bVPxR','QTOiS','cdpEndpoint','dhJyT','clipboard-read','9YpehPO','GotSn','headless','args','file','none','vision','OrFeT','483wHtCcV','213KLKxoJ','lbUOy','--no-sandbox','message','legacy','core','lsKRI','path','BdPbz','dTdfm','length','xAcMD','allowInsecureLocalhost','isArray','-cli.json','OQKMK','map','now','7091256xsvWom','push','15188cohEOA'];_0x41b8=function(){return _0x1bd1ab;};return _0x41b8();}
1
+ const _0x47899b=_0x1df3;(function(_0x556474,_0x21461b){const _0x33ab21=_0x1df3,_0x196282=_0x556474();while(!![]){try{const _0x231e40=parseInt(_0x33ab21(0x152))/0x1*(-parseInt(_0x33ab21(0x13b))/0x2)+-parseInt(_0x33ab21(0x17b))/0x3*(parseInt(_0x33ab21(0x137))/0x4)+parseInt(_0x33ab21(0x145))/0x5*(parseInt(_0x33ab21(0x13c))/0x6)+-parseInt(_0x33ab21(0x14a))/0x7*(-parseInt(_0x33ab21(0x177))/0x8)+-parseInt(_0x33ab21(0x16f))/0x9*(-parseInt(_0x33ab21(0x128))/0xa)+parseInt(_0x33ab21(0x121))/0xb*(-parseInt(_0x33ab21(0x16b))/0xc)+-parseInt(_0x33ab21(0x15d))/0xd*(-parseInt(_0x33ab21(0x17a))/0xe);if(_0x231e40===_0x21461b)break;else _0x196282['push'](_0x196282['shift']());}catch(_0x2cf6b6){_0x196282['push'](_0x196282['shift']());}}}(_0x2ae9,0xeb889));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(_0x4be196,_0x25210a){const _0x5c4c29=_0x1df3,_0x1a29b6={'wYgmq':function(_0xe753b9,_0x3d68b5,_0x52d69e,_0x5a5095){return _0xe753b9(_0x3d68b5,_0x52d69e,_0x5a5095);},'UblHN':function(_0x33cb83,_0x1338a1,_0x422a81){return _0x33cb83(_0x1338a1,_0x422a81);},'ZaAZt':function(_0x63363c,_0x1a6818,_0x3148c1){return _0x63363c(_0x1a6818,_0x3148c1);},'ITwFD':function(_0x563201,_0x5b5e44,_0x5e753d){return _0x563201(_0x5b5e44,_0x5e753d);},'mJKrj':function(_0x49a62a,_0x12aa79){return _0x49a62a(_0x12aa79);}},_0x2cb3a4=_0x1a29b6['wYgmq'](join,_0x25210a,'ci',_0x4be196),_0x244b4b=join(_0x25210a,'local',_0x4be196),_0x5ce22e=_0x1a29b6[_0x5c4c29(0x150)](join,_0x25210a,_0x4be196),_0x2ab143=_0x1a29b6[_0x5c4c29(0x140)](join,_0x25210a,'local'),_0x4f6a50=_0x1a29b6[_0x5c4c29(0x135)](join,_0x25210a,'ci');if(existsSync(_0x2cb3a4))return _0x2cb3a4;if(existsSync(_0x244b4b))return _0x244b4b;if(_0x1a29b6['mJKrj'](existsSync,_0x5ce22e)&&(_0x5ce22e!==_0x2ab143&&_0x5ce22e!==_0x4f6a50?!![]:_0x1a29b6['mJKrj'](hasLegacyProfileFiles,_0x5ce22e)))return _0x5ce22e;return null;}export function getEnvDir(_0x45cdb4){const _0x7d987c=_0x1df3,_0x19f84e={'XcAbo':function(_0x1bdae4,_0xb20c8b,_0x8912c){return _0x1bdae4(_0xb20c8b,_0x8912c);}},_0x20d8c2=getRangerDir(),_0x3f5883=_0x19f84e[_0x7d987c(0x14c)](findEnvInRoot,_0x45cdb4,_0x20d8c2);if(_0x3f5883)return _0x3f5883;const _0x15d520=getRangerHomeDir();if(_0x15d520!==_0x20d8c2){const _0x2cc37b=_0x19f84e['XcAbo'](findEnvInRoot,_0x45cdb4,_0x15d520);if(_0x2cc37b)return _0x2cc37b;}return join(_0x20d8c2,'local',_0x45cdb4);}export function findExistingEnv(_0x21eb22,_0x260031){const _0x781090=_0x1df3,_0x47a7b5={'yPyRY':function(_0x45874c,_0x1164e5,_0x266055){return _0x45874c(_0x1164e5,_0x266055);},'sjJsb':function(_0x3d620f,_0x221afc,_0x3c472e,_0x594ac0){return _0x3d620f(_0x221afc,_0x3c472e,_0x594ac0);},'FYNVJ':_0x781090(0x14f),'BZfoc':function(_0x234bea,_0x376684){return _0x234bea(_0x376684);},'NQAEw':function(_0x465e35,_0x14de4a){return _0x465e35===_0x14de4a;}},_0x4e56ff=_0x260031?.[_0x781090(0x146)],_0x212250=_0x4e56ff?[_0x4e56ff]:[getRangerDir(),getRangerHomeDir()][_0x781090(0x11b)]((_0x1403d7,_0x410660,_0x2df788)=>_0x2df788['indexOf'](_0x1403d7)===_0x410660),_0x2e63cf=_0x260031?.[_0x781090(0x147)]??['ci',_0x781090(0x142),'legacy'];for(const _0x4b55f0 of _0x212250){const _0x3b4749=_0x47a7b5[_0x781090(0x161)](join,_0x4b55f0,_0x781090(0x142)),_0x4b926c=join(_0x4b55f0,'ci'),_0x386763=[{'location':'ci','path':join(_0x4b55f0,'ci',_0x21eb22)},{'location':_0x781090(0x142),'path':_0x47a7b5['sjJsb'](join,_0x4b55f0,'local',_0x21eb22)},{'location':_0x47a7b5['FYNVJ'],'path':join(_0x4b55f0,_0x21eb22)}];for(const _0x433ab7 of _0x386763){if(_0x2e63cf['includes'](_0x433ab7[_0x781090(0x174)])&&_0x47a7b5['BZfoc'](existsSync,_0x433ab7['path'])){if(_0x433ab7['location']===_0x781090(0x14f)&&(_0x433ab7['path']===_0x3b4749||_0x47a7b5[_0x781090(0x171)](_0x433ab7[_0x781090(0x15a)],_0x4b926c))&&!hasLegacyProfileFiles(_0x433ab7[_0x781090(0x15a)]))continue;return{'path':_0x433ab7['path'],'location':_0x433ab7[_0x781090(0x174)]};}}}return null;}function hasLegacyProfileFiles(_0x21ea33){const _0x5a151a=_0x1df3,_0x458a9c={'DsHXJ':function(_0x5a45a6,_0x387561){return _0x5a45a6(_0x387561);},'YwgAV':function(_0x5af1b0,_0x8cc2e,_0xf7487b){return _0x5af1b0(_0x8cc2e,_0xf7487b);},'yLYPP':'auth.json','BefPX':function(_0x1db078,_0x2911aa){return _0x1db078(_0x2911aa);},'ERVDr':'auth.json.enc'};return _0x458a9c['DsHXJ'](existsSync,join(_0x21ea33,'settings.json'))||_0x458a9c[_0x5a151a(0x148)](existsSync,_0x458a9c['YwgAV'](join,_0x21ea33,_0x458a9c['yLYPP']))||_0x458a9c['BefPX'](existsSync,_0x458a9c['YwgAV'](join,_0x21ea33,_0x458a9c[_0x5a151a(0x14e)]));}export function isEnvCi(_0x2a6e64){const _0x19319a={'yYFTm':function(_0x12c6d2,_0xb093b,_0x2654f8,_0x4419c7){return _0x12c6d2(_0xb093b,_0x2654f8,_0x4419c7);}};return existsSync(_0x19319a['yYFTm'](join,getRangerDir(),'ci',_0x2a6e64));}export async function cleanupTempFiles(_0x1d4cf4){const _0x21a98b=_0x1df3,_0x126712={'nuUeN':'ENOENT'},_0x3859f8=[_0x1d4cf4[_0x21a98b(0x159)],_0x1d4cf4['configPath']][_0x21a98b(0x11b)](Boolean);await Promise[_0x21a98b(0x12b)](_0x3859f8[_0x21a98b(0x166)](_0x111818=>unlink(_0x111818)['catch'](_0x237a9a=>{const _0x2f7643=_0x21a98b;_0x237a9a[_0x2f7643(0x149)]!==_0x126712['nuUeN']&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x111818+':',_0x237a9a[_0x2f7643(0x15f)]);})));}export function getSettingsPath(_0x32c6e9){const _0x276f77=_0x1df3,_0x451bf7={'Wfngb':function(_0x35653d,_0x569bef,_0xb0ccbf){return _0x35653d(_0x569bef,_0xb0ccbf);},'HkUzW':function(_0x34fa65,_0x19a9aa){return _0x34fa65(_0x19a9aa);},'sGqUr':_0x276f77(0x12c)};return _0x451bf7['Wfngb'](join,_0x451bf7['HkUzW'](getEnvDir,_0x32c6e9),_0x451bf7[_0x276f77(0x11c)]);}function _0x2ae9(){const _0x1e2994=['playwright-cli','file','791271EVFHNu','fromEntries','NQAEw','VUEKv','hKsZc','location','isArray','OVQcu','24LEikPW','includes','getuid','1050ANYWNz','6lvBYSi','adxtt','FhSxE','object','-cli','storageState','YYAzQ','replace','headers','--unsafely-treat-insecure-origin-as-secure=http://localhost','--allow-running-insecure-content','LbZLu','Failed\x20to\x20decrypt\x20auth\x20state:\x20','filter','sGqUr','.json','--allow-insecure-localhost','now','zeQQE','11emtPqj','stagehand','userAgent','XjhYN','JNIHe','bcsbA','NCAUy','170VAqjMQ','storageStatePath','safeMode','all','settings.json','launchOptions','gowdq','--disable-setuid-sandbox','sessions','glVlJ','cdpEndpoint','install','headless','ITwFD','extraHTTPHeaders','3330380CVSXcW','uRtBt','browser','repeat','1498TESaFN','48WEGlzu','clipboard-read','txXRG','ranger-config','ZaAZt','entries','local','utf-8','XzkMl','1092180AzPQBp','rangerDir','locations','DsHXJ','code','823949QuUxZI','push','XcAbo','auth.json.enc','ERVDr','legacy','UblHN','contextOptions','2341Vevnrz','xOhaB','ceuGK','--disable-web-security','args','allow','FjSlt','tempAuthPath','path','pdf','xkmnp','329446ADZLNw','vision','message','YyKVW','yPyRY','jEkaK','jYNYa','tabs','zgYVe','map','length','rEBGb','KzhUM','boolean','13350456ipubwO','chromium'];_0x2ae9=function(){return _0x1e2994;};return _0x2ae9();}export async function loadSettings(_0x13bc6a){const _0x211faf=_0x1df3,_0x4a6f50={'adxtt':function(_0x4f9ebe,_0x6e211c){return _0x4f9ebe(_0x6e211c);},'uRtBt':_0x211faf(0x143)},_0x1055fb=getSettingsPath(_0x13bc6a);if(!_0x4a6f50[_0x211faf(0x17c)](existsSync,_0x1055fb))return{};try{const _0x198e89=await readFile(_0x1055fb,_0x4a6f50[_0x211faf(0x138)]);return JSON['parse'](_0x198e89);}catch{return{};}}export async function saveSettings(_0x871054,_0x39e831){const _0x22fded=_0x1df3,_0x323a12={'NCAUy':function(_0x1603c6,_0x1e10cd){return _0x1603c6(_0x1e10cd);},'wxjCe':function(_0xd95842,_0x252e9e,_0x4ebb3b){return _0xd95842(_0x252e9e,_0x4ebb3b);}},_0x2ab584=getSettingsPath(_0x871054),_0x2dd9d8=dirname(_0x2ab584);!_0x323a12[_0x22fded(0x127)](existsSync,_0x2dd9d8)&&await mkdir(_0x2dd9d8,{'recursive':!![]}),await _0x323a12['wxjCe'](writeFile,_0x2ab584,JSON['stringify'](_0x39e831,null,0x2));}export function resolveEnvVars(_0x24ce6f){const _0x83c100=_0x1df3,_0x43b7f9={'xOhaB':function(_0x4075c1,_0x1cac64){return _0x4075c1===_0x1cac64;},'xkmnp':'object'};if(_0x43b7f9[_0x83c100(0x153)](typeof _0x24ce6f,'string'))return _0x24ce6f[_0x83c100(0x115)](/\$\{(\w+)\}/g,(_0x426f43,_0x30aaf1)=>{const _0xde429c=process['env'][_0x30aaf1];if(_0xde429c===undefined)throw new Error('Environment\x20variable\x20'+_0x30aaf1+'\x20is\x20not\x20set');return _0xde429c;});if(Array['isArray'](_0x24ce6f))return _0x24ce6f['map'](resolveEnvVars);if(_0x24ce6f&&typeof _0x24ce6f===_0x43b7f9[_0x83c100(0x15c)])return Object[_0x83c100(0x170)](Object[_0x83c100(0x141)](_0x24ce6f)['map'](([_0x30fa09,_0x4529f7])=>[_0x30fa09,resolveEnvVars(_0x4529f7)]));return _0x24ce6f;}const isRecord=_0x28a692=>typeof _0x28a692==='object'&&_0x28a692!==null&&!Array[_0x47899b(0x175)](_0x28a692),asRecord=_0x4d1d96=>isRecord(_0x4d1d96)?_0x4d1d96:undefined,mergeHeaders=(_0x4e0750,_0x48b366)=>{const _0x27d424=_0x47899b,_0x4512c1={..._0x4e0750??{},..._0x48b366??{}};return Object['keys'](_0x4512c1)[_0x27d424(0x167)]?_0x4512c1:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=[_0x47899b(0x155),_0x47899b(0x118),_0x47899b(0x117),_0x47899b(0x11e)];export function buildBrowserOptionsFromSettings(_0x289311,_0x34ac27={}){const _0x3c4089=_0x47899b,_0x18cfce={'ceuGK':function(_0x54460f,_0x50a762){return _0x54460f(_0x50a762);},'SHDdL':function(_0x5d4d92,_0x1c9266){return _0x5d4d92===_0x1c9266;},'YYAzQ':_0x3c4089(0x16a)},_0x15b659=_0x18cfce[_0x3c4089(0x154)](asRecord,_0x289311[_0x3c4089(0x139)]),_0x34f01a={...asRecord(_0x15b659?.[_0x3c4089(0x12d)])??{}};_0x18cfce['SHDdL'](typeof _0x34ac27[_0x3c4089(0x134)],_0x18cfce[_0x3c4089(0x114)])&&(_0x34f01a[_0x3c4089(0x134)]=_0x34ac27[_0x3c4089(0x134)]);if(_0x289311[_0x3c4089(0x12a)]){const _0x51245f=_0x34f01a['args']??[],_0x2ff7b8=SAFE_MODE_ARGS[_0x3c4089(0x11b)](_0x283f67=>!_0x51245f[_0x3c4089(0x178)](_0x283f67));_0x34f01a['args']=[..._0x51245f,..._0x2ff7b8];}if(_0x289311['allowInsecureLocalhost']){const _0x142a8c=_0x34f01a['args']??[],_0x548d13=ALLOW_LOCALHOST_ARGS[_0x3c4089(0x11b)](_0x6f9def=>!_0x142a8c[_0x3c4089(0x178)](_0x6f9def));_0x34f01a['args']=[..._0x142a8c,..._0x548d13];}const _0x51905e={...asRecord(_0x15b659?.[_0x3c4089(0x151)])??{}};_0x51905e['ignoreHTTPSErrors']=!![];typeof _0x289311['userAgent']==='string'&&(_0x51905e['userAgent']=_0x289311[_0x3c4089(0x123)]);const _0x51f4e5=mergeHeaders(asRecord(_0x51905e[_0x3c4089(0x136)]),asRecord(_0x289311['headers']));return _0x51f4e5?_0x51905e[_0x3c4089(0x136)]=_0x51f4e5:delete _0x51905e[_0x3c4089(0x136)],_0x34ac27[_0x3c4089(0x129)]&&(_0x51905e['storageState']=_0x34ac27[_0x3c4089(0x129)]),{'launchOptions':_0x34f01a,'contextOptions':_0x51905e};}async function resolveLocalAuthPath(_0x26736a){const _0x22e6ea=_0x47899b,_0x5cf617={'LbZLu':function(_0xbdc141,_0x3c5966,_0x27b663){return _0xbdc141(_0x3c5966,_0x27b663);},'sjqIH':_0x22e6ea(0x14d),'IlVGG':'auth.json','nPPdQ':function(_0x99c9fd,_0x36bf9d){return _0x99c9fd(_0x36bf9d);},'ROYSG':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','bwuSq':function(_0x4537f0,_0x208883){return _0x4537f0 instanceof _0x208883;},'KzhUM':function(_0x419b47,_0x51adf9){return _0x419b47(_0x51adf9);}},_0x106e83=_0x5cf617['LbZLu'](join,_0x26736a,_0x5cf617['sjqIH']),_0xd4f37=join(_0x26736a,_0x5cf617['IlVGG']);if(_0x5cf617['nPPdQ'](existsSync,_0x106e83))try{const _0x2bde7b=await getToken();if(!_0x2bde7b)throw new Error(_0x5cf617['ROYSG']);const _0x3fc80a=await readFile(_0x106e83),_0x3af63f=decrypt(_0x3fc80a,_0x2bde7b),_0x43dc74=join(tmpdir(),'ranger-auth-'+Date['now']()+_0x22e6ea(0x11d));return await _0x5cf617[_0x22e6ea(0x119)](writeFile,_0x43dc74,_0x3af63f),{'storageStatePath':_0x43dc74,'tempAuthPath':_0x43dc74};}catch(_0x49b059){const _0x2344dd=_0x5cf617['bwuSq'](_0x49b059,Error)?_0x49b059[_0x22e6ea(0x15f)]:_0x5cf617[_0x22e6ea(0x169)](String,_0x49b059);throw new Error(_0x22e6ea(0x11a)+_0x2344dd);}if(existsSync(_0xd4f37))return{'storageStatePath':_0xd4f37};return{};}function _0x1df3(_0x516fae,_0x4bb0f6){_0x516fae=_0x516fae-0x113;const _0x2ae9d6=_0x2ae9();let _0x1df350=_0x2ae9d6[_0x516fae];return _0x1df350;}export async function buildPlaywrightConfig(_0x236094,_0x2aeae7,_0x195d03,_0xc1e0ff,_0x31369d){const _0x17f196=_0x47899b,_0x42c33f={'YyKVW':function(_0x56aca6,_0x2c216f,_0x19ac5d,_0x42e630,_0x9170d0,_0xa6f246,_0x23245a){return _0x56aca6(_0x2c216f,_0x19ac5d,_0x42e630,_0x9170d0,_0xa6f246,_0x23245a);},'KIsDg':'stagehand','JNIHe':function(_0x40aef5,_0x570143){return _0x40aef5(_0x570143);}};if(_0x31369d)return _0x42c33f[_0x17f196(0x160)](buildPlaywrightConfigCore,_0x236094,_0x31369d,_0x2aeae7,_0x195d03,_0xc1e0ff,_0x42c33f['KIsDg']);const {storageStatePath:_0x3c60d0,tempAuthPath:_0x25a63a}=await _0x42c33f[_0x17f196(0x125)](resolveLocalAuthPath,_0x42c33f[_0x17f196(0x125)](getEnvDir,_0x2aeae7)),_0x11ff6c=await _0x42c33f['YyKVW'](buildPlaywrightConfigCore,_0x236094,_0x3c60d0,_0x2aeae7,_0x195d03,_0xc1e0ff,_0x42c33f['KIsDg']);return{..._0x11ff6c,'tempAuthPath':_0x25a63a};}export async function buildPlaywrightConfigCore(_0x49262c,_0x4bafe7,_0x2edfe6,_0x373881,_0x4c9128,_0x4b0863=_0x47899b(0x122)){const _0x3f7ba0=_0x47899b,_0x1b9404={'XzkMl':function(_0xc36b7f,_0x2c6fa1,_0x531796){return _0xc36b7f(_0x2c6fa1,_0x531796);},'gowdq':function(_0xc7a970,_0x51ec72){return _0xc7a970===_0x51ec72;},'FjSlt':'--no-sandbox','bPjnL':'chromium','RXTAn':_0x3f7ba0(0x13d),'hsUiR':'clipboard-write','dfShM':function(_0x5850ea){return _0x5850ea();},'zKlyN':function(_0x215adc,_0x3d1d73,_0x1a7c06,_0x448f8e){return _0x215adc(_0x3d1d73,_0x1a7c06,_0x448f8e);},'jEkaK':_0x3f7ba0(0x130),'VUEKv':function(_0xbe8ff5,_0x22d22b){return _0xbe8ff5(_0x22d22b);},'kaFac':'none','zgYVe':'core','LkLPH':_0x3f7ba0(0x15b),'mOEtR':_0x3f7ba0(0x157),'glVlJ':_0x3f7ba0(0x13f),'txXRG':function(_0x4d9484,_0x4ab409,_0x3d5984){return _0x4d9484(_0x4ab409,_0x3d5984);},'rpFVY':function(_0x558c04,_0x26aa5e){return _0x558c04===_0x26aa5e;},'VUzIe':_0x3f7ba0(0x17f)},_0xc1d2a1=_0x373881||_0x1b9404['dfShM'](randomUUID),_0x46fb35=_0x1b9404['zKlyN'](join,getRangerDir(),_0x1b9404[_0x3f7ba0(0x162)],_0xc1d2a1),_0x372938=_0x1b9404['VUEKv'](Boolean,_0x49262c['cdpEndpoint']),_0x14e7ff=_0x372938?{'browserName':_0x3f7ba0(0x16c),'cdpEndpoint':_0x49262c[_0x3f7ba0(0x132)]}:((()=>{const _0x1756f7=_0x3f7ba0,{launchOptions:_0x1529ef,contextOptions:_0x3fd7f7}=_0x1b9404[_0x1756f7(0x144)](buildBrowserOptionsFromSettings,_0x49262c,{'headless':_0x4c9128?![]:_0x49262c[_0x1756f7(0x134)]??!![],'storageStatePath':_0x4bafe7});if(_0x1b9404['gowdq'](process[_0x1756f7(0x179)]?.(),0x0)){const _0x25e777=[_0x1b9404[_0x1756f7(0x158)],_0x1756f7(0x12f)],_0x218897=_0x1529ef[_0x1756f7(0x156)]??[],_0x248899=_0x25e777['filter'](_0x5bc1c4=>!_0x218897['includes'](_0x5bc1c4));_0x1529ef['args']=[..._0x218897,..._0x248899];}return{'isolated':!![],'browserName':_0x1b9404['bPjnL'],'launchOptions':_0x1529ef,'contextOptions':{..._0x3fd7f7,'permissions':[_0x1b9404['RXTAn'],_0x1b9404['hsUiR']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x3a3682=_0x4b0863===_0x3f7ba0(0x16d)?{'browser':_0x14e7ff,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x46fb35,'outputMode':_0x3f7ba0(0x16e),'codegen':_0x1b9404['kaFac']}:{'name':_0x2edfe6,'browser':_0x14e7ff,'capabilities':[_0x1b9404[_0x3f7ba0(0x165)],_0x3f7ba0(0x164),_0x3f7ba0(0x133),_0x1b9404['LkLPH'],_0x3f7ba0(0x15e)],'imageResponses':_0x1b9404['mOEtR'],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x46fb35};if(!_0x372938){const _0x29f9e3=_0x3a3682['browser'],_0x1378f3=_0x29f9e3['contextOptions'];if(_0x1b9404[_0x3f7ba0(0x12e)](_0x1378f3['userAgent'],undefined))delete _0x1378f3['userAgent'];if(_0x1378f3[_0x3f7ba0(0x113)]===undefined)delete _0x1378f3[_0x3f7ba0(0x113)];}const _0x5cbe5f=_0x1b9404['XzkMl'](join,tmpdir(),_0x1b9404[_0x3f7ba0(0x131)]);!_0x1b9404[_0x3f7ba0(0x172)](existsSync,_0x5cbe5f)&&await _0x1b9404[_0x3f7ba0(0x13e)](mkdir,_0x5cbe5f,{'recursive':!![]});const _0x4c4e30=_0x1b9404['rpFVY'](_0x4b0863,'playwright-cli')?_0x1b9404['VUzIe']:'',_0x1890b7=_0x1b9404[_0x3f7ba0(0x144)](join,_0x5cbe5f,_0x2edfe6+'-'+Date[_0x3f7ba0(0x11f)]()+_0x4c4e30+_0x3f7ba0(0x11d));return await _0x1b9404[_0x3f7ba0(0x13e)](writeFile,_0x1890b7,JSON['stringify'](_0x3a3682,null,0x2)),{'configPath':_0x1890b7};}export async function buildPlaywrightCliConfig(_0x379517,_0xc8a19f,_0x11d74c,_0x47fa23,_0x5891ee){const _0x3ff841=_0x47899b,_0x54a8c9={'OVQcu':function(_0x303c1a,_0x5b90a7,_0x9a77fe,_0x3e75e6,_0x3671fb,_0x5d0b1e,_0xd3145a){return _0x303c1a(_0x5b90a7,_0x9a77fe,_0x3e75e6,_0x3671fb,_0x5d0b1e,_0xd3145a);},'fpcDf':function(_0x3f6cd6,_0x58656e){return _0x3f6cd6(_0x58656e);},'rvEUr':'playwright-cli'};if(_0x5891ee)return _0x54a8c9[_0x3ff841(0x176)](buildPlaywrightConfigCore,_0x379517,_0x5891ee,_0xc8a19f,_0x11d74c,_0x47fa23,'playwright-cli');const {storageStatePath:_0xbe707a,tempAuthPath:_0x5c70b4}=await resolveLocalAuthPath(_0x54a8c9['fpcDf'](getEnvDir,_0xc8a19f)),_0x244fa1=await buildPlaywrightConfigCore(_0x379517,_0xbe707a,_0xc8a19f,_0x11d74c,_0x47fa23,_0x54a8c9['rvEUr']);return{..._0x244fa1,'tempAuthPath':_0x5c70b4};}export function getNestedValue(_0x187c03,_0x28d462){const _0x37d96e=_0x47899b,_0x15bbfe={'hKsZc':function(_0x3d838c,_0x33cbc3){return _0x3d838c(_0x33cbc3);},'ajLEw':function(_0x4ede7e,_0x56cef4){return _0x4ede7e===_0x56cef4;}},_0x1b8a43=_0x15bbfe[_0x37d96e(0x173)](parseKeyPath,_0x28d462);let _0x26419d=_0x187c03;for(const _0x1778d8 of _0x1b8a43){if(_0x26419d===null||_0x15bbfe['ajLEw'](_0x26419d,undefined)||typeof _0x26419d!==_0x37d96e(0x17e))return undefined;_0x26419d=_0x26419d[_0x1778d8];}return _0x26419d;}export function setNestedValue(_0x37a432,_0x1335f1,_0x544424){const _0x5af32b=_0x47899b,_0x4a3e30={'cLMXp':function(_0x406284,_0x5d2972){return _0x406284 in _0x5d2972;},'UCrni':'object','kSuvm':function(_0x28c762,_0x2c96f3){return _0x28c762-_0x2c96f3;}},_0x2c06c2=parseKeyPath(_0x1335f1);let _0x1903b4=_0x37a432;for(let _0x2d5c09=0x0;_0x2d5c09<_0x2c06c2[_0x5af32b(0x167)]-0x1;_0x2d5c09++){const _0x151556=_0x2c06c2[_0x2d5c09];(!_0x4a3e30['cLMXp'](_0x151556,_0x1903b4)||typeof _0x1903b4[_0x151556]!==_0x4a3e30['UCrni'])&&(_0x1903b4[_0x151556]={}),_0x1903b4=_0x1903b4[_0x151556];}_0x1903b4[_0x2c06c2[_0x4a3e30['kSuvm'](_0x2c06c2[_0x5af32b(0x167)],0x1)]]=_0x544424;}export function deleteNestedValue(_0x440353,_0x47f488){const _0x2b7304=_0x47899b,_0x4c2def={'rOdEE':function(_0x39f3ab,_0x91bc36){return _0x39f3ab===_0x91bc36;},'FhSxE':function(_0x441f0b,_0x3812a4){return _0x441f0b!==_0x3812a4;},'XjhYN':_0x2b7304(0x17e)},_0x36992c=parseKeyPath(_0x47f488);let _0x2e2464=_0x440353;for(let _0x4bd4ab=0x0;_0x4bd4ab<_0x36992c['length']-0x1;_0x4bd4ab++){if(_0x2e2464===null||_0x4c2def['rOdEE'](_0x2e2464,undefined)||typeof _0x2e2464!=='object')return![];_0x2e2464=_0x2e2464[_0x36992c[_0x4bd4ab]];}if(_0x2e2464===null||_0x2e2464===undefined||_0x4c2def[_0x2b7304(0x17d)](typeof _0x2e2464,_0x4c2def[_0x2b7304(0x124)]))return![];const _0x330153=_0x36992c[_0x36992c[_0x2b7304(0x167)]-0x1];if(_0x330153 in _0x2e2464)return delete _0x2e2464[_0x330153],!![];return![];}function parseKeyPath(_0x54fdf4){const _0x2361a3=_0x47899b,_0x55970d={'hcAuW':function(_0x5b039c,_0x2bf2a7){return _0x5b039c===_0x2bf2a7;},'jYNYa':'header','TRwfj':_0x2361a3(0x116),'rEBGb':function(_0x4e6a53,_0x1f31e5){return _0x4e6a53===_0x1f31e5;},'gLRjM':'setupHeader'},_0x40119e=_0x54fdf4['split']('.');return _0x55970d['hcAuW'](_0x40119e[0x0],_0x55970d[_0x2361a3(0x163)])&&(_0x40119e[0x0]=_0x55970d['TRwfj']),_0x55970d[_0x2361a3(0x168)](_0x40119e[0x0],_0x55970d['gLRjM'])&&(_0x40119e[0x0]='setupHeaders'),_0x40119e;}export function formatSettings(_0x3b2525,_0x2ceb3e=0x0){const _0x4ec17e=_0x47899b,_0x2df995={'bcsbA':function(_0x1d27ac,_0x30780d){return _0x1d27ac===_0x30780d;},'zeQQE':function(_0x207e7b,_0x17f042){return _0x207e7b!==_0x17f042;}},_0x467195=[],_0x4d86c0='\x20\x20'[_0x4ec17e(0x13a)](_0x2ceb3e);for(const [_0x4581a4,_0x1ac294]of Object['entries'](_0x3b2525)){if(_0x2df995[_0x4ec17e(0x126)](_0x1ac294,undefined))continue;if(typeof _0x1ac294==='object'&&_0x2df995[_0x4ec17e(0x120)](_0x1ac294,null)){_0x467195[_0x4ec17e(0x14b)](''+_0x4d86c0+_0x4581a4+':');for(const [_0xfd372b,_0xf26682]of Object['entries'](_0x1ac294)){_0x467195['push'](_0x4d86c0+'\x20\x20'+_0xfd372b+':\x20'+_0xf26682);}}else _0x467195['push'](''+_0x4d86c0+_0x4581a4+':\x20'+_0x1ac294);}return _0x467195['join']('\x0a');}
@@ -1 +1 @@
1
- (function(_0x402599,_0x30ebe7){const _0x1d4891=_0x5e30,_0x277b32=_0x402599();while(!![]){try{const _0xd8744b=parseInt(_0x1d4891(0xbb))/0x1+-parseInt(_0x1d4891(0xbc))/0x2+parseInt(_0x1d4891(0xbd))/0x3*(-parseInt(_0x1d4891(0xb7))/0x4)+-parseInt(_0x1d4891(0xc1))/0x5*(-parseInt(_0x1d4891(0xc2))/0x6)+parseInt(_0x1d4891(0xb9))/0x7*(parseInt(_0x1d4891(0xb8))/0x8)+parseInt(_0x1d4891(0xbf))/0x9*(-parseInt(_0x1d4891(0xba))/0xa)+parseInt(_0x1d4891(0xbe))/0xb;if(_0xd8744b===_0x30ebe7)break;else _0x277b32['push'](_0x277b32['shift']());}catch(_0x23423b){_0x277b32['push'](_0x277b32['shift']());}}}(_0x5d7b,0x487fd));import{readFileSync}from'fs';import{dirname,join}from'path';function _0x5e30(_0x489991,_0x506036){_0x489991=_0x489991-0xb7;const _0x5d7be9=_0x5d7b();let _0x5e30df=_0x5d7be9[_0x489991];return _0x5e30df;}import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x3ee2c6){const _0x4503bd={'LtUbF':'utf-8'},_0x4bbe8c=join(__dirname,'..','..','skills'),_0x5bccf9=join(_0x4bbe8c,_0x3ee2c6);try{return readFileSync(_0x5bccf9,_0x4503bd['LtUbF']);}catch{return'';}}export function getRangerSkillContent(){const _0x14b492=_0x5e30,_0x4db122={'QTJik':_0x14b492(0xc0)};return readSkillContent(_0x4db122['QTJik']);}function _0x5d7b(){const _0x3b15f7=['53224NDGKIT','14cvTjna','19350gWRGnt','578315snQhJD','1079184LcAWwN','84306cpUQvq','8193911ncuoOq','1719lWSNYl','ranger/SKILL.md','365mAucgJ','37788ECVbpt','84blOorl'];_0x5d7b=function(){return _0x3b15f7;};return _0x5d7b();}
1
+ (function(_0x9624f9,_0x478a6f){const _0x2e6bb8=_0x2e94,_0x24664b=_0x9624f9();while(!![]){try{const _0x5b3cf2=parseInt(_0x2e6bb8(0x180))/0x1*(parseInt(_0x2e6bb8(0x189))/0x2)+-parseInt(_0x2e6bb8(0x18b))/0x3*(-parseInt(_0x2e6bb8(0x181))/0x4)+parseInt(_0x2e6bb8(0x185))/0x5+-parseInt(_0x2e6bb8(0x182))/0x6+parseInt(_0x2e6bb8(0x183))/0x7+-parseInt(_0x2e6bb8(0x184))/0x8+parseInt(_0x2e6bb8(0x188))/0x9;if(_0x5b3cf2===_0x478a6f)break;else _0x24664b['push'](_0x24664b['shift']());}catch(_0x263c41){_0x24664b['push'](_0x24664b['shift']());}}}(_0x1b57,0xab578));function _0x2e94(_0x5bdf97,_0x19b908){_0x5bdf97=_0x5bdf97-0x180;const _0x1b572b=_0x1b57();let _0x2e94ec=_0x1b572b[_0x5bdf97];return _0x2e94ec;}import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';function _0x1b57(){const _0x5603e1=['KwsmW','2173887XHXouT','2362WbxfJK','utf-8','6ITyXLd','211oyewPV','579404kSAHnG','1912854LocuXz','948234PLIZsC','5034992cRyebO','3670505sbkxVJ','skills'];_0x1b57=function(){return _0x5603e1;};return _0x1b57();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x3428fa){const _0x2b515e=_0x2e94,_0x526708={'fxIoo':function(_0x11f852,_0x32d1e5,_0x5e39fb){return _0x11f852(_0x32d1e5,_0x5e39fb);}},_0x2af36f=join(__dirname,'..','..',_0x2b515e(0x186)),_0x1cca28=_0x526708['fxIoo'](join,_0x2af36f,_0x3428fa);try{return readFileSync(_0x1cca28,_0x2b515e(0x18a));}catch{return'';}}export function getRangerSkillContent(){const _0x4176c6=_0x2e94,_0x802716={'KwsmW':function(_0x5362ac,_0x3541d6){return _0x5362ac(_0x3541d6);}};return _0x802716[_0x4176c6(0x187)](readSkillContent,'ranger/SKILL.md');}
@@ -1 +1 @@
1
- function _0x35ef(_0x517b6b,_0x5e93da){_0x517b6b=_0x517b6b-0x120;const _0x248360=_0x2483();let _0x35efdd=_0x248360[_0x517b6b];return _0x35efdd;}const _0x5d4958=_0x35ef;(function(_0x3f418f,_0x5dea5){const _0x2dd7f6=_0x35ef,_0x16e317=_0x3f418f();while(!![]){try{const _0x14e8c5=parseInt(_0x2dd7f6(0x120))/0x1*(-parseInt(_0x2dd7f6(0x13b))/0x2)+parseInt(_0x2dd7f6(0x132))/0x3+parseInt(_0x2dd7f6(0x123))/0x4+parseInt(_0x2dd7f6(0x136))/0x5*(-parseInt(_0x2dd7f6(0x145))/0x6)+parseInt(_0x2dd7f6(0x144))/0x7*(-parseInt(_0x2dd7f6(0x142))/0x8)+-parseInt(_0x2dd7f6(0x121))/0x9*(-parseInt(_0x2dd7f6(0x140))/0xa)+-parseInt(_0x2dd7f6(0x129))/0xb;if(_0x14e8c5===_0x5dea5)break;else _0x16e317['push'](_0x16e317['shift']());}catch(_0xf0da9e){_0x16e317['push'](_0x16e317['shift']());}}}(_0x2483,0xe4ab5));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';function _0x2483(){const _0x4dbb4d=['6633968BbGwFw','ranger','feature-tracker','isDirectory','claude','\x20\x20Skill\x20not\x20found:\x20','warn','MwjYS','e2e-test-recommender','4912635wiMniZ','push','gtJeC','Invalid\x20skill\x20frontmatter','5TaolOG','join','jLUBm','log','opencode','12eSZKaf','endsWith','UeVEJ','match','\x20\x20Location:\x20','4823190VrjWgp','SKILL.md','7001976gSxgeY','uCYaU','7EGgptX','11096346eHFBDu','project','89017BkuYjk','27mTCKWR','SZogs','6855820xWObsv','trim','CoPUB','VlNcf','HUcrH','utf-8'];_0x2483=function(){return _0x4dbb4d;};return _0x2483();}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=[_0x5d4958(0x12a)];export const DEPRECATED_SKILLS=[_0x5d4958(0x131),'bug-bash',_0x5d4958(0x12b)];export async function installSkill(_0x43aa75,_0x2c35df={}){const _0x599c2c=_0x5d4958,_0x549cb7={'UpAcZ':_0x599c2c(0x12d),'HUcrH':function(_0x51e5d0,_0x41cc83,_0xbf5a02){return _0x51e5d0(_0x41cc83,_0xbf5a02);},'gtJeC':function(_0x284d5f,_0x25d332){return _0x284d5f(_0x25d332);},'jLUBm':_0x599c2c(0x141),'SZogs':function(_0x309600,_0x5b6db9){return _0x309600===_0x5b6db9;},'VlNcf':function(_0x557e6e,_0x1123ec){return _0x557e6e(_0x1123ec);},'BmSGJ':_0x599c2c(0x128),'fTyWb':function(_0x5ac8e4,_0x2c3034,_0x580a3a){return _0x5ac8e4(_0x2c3034,_0x580a3a);},'CoPUB':function(_0x18547d,_0x10b8e3,_0x49b347,_0x5c2daa){return _0x18547d(_0x10b8e3,_0x49b347,_0x5c2daa);},'vHTqG':function(_0x119cfa,_0x40c69c){return _0x119cfa>_0x40c69c;}},{level:level=_0x599c2c(0x146),cliVersion:_0x200871,platform:platform=_0x549cb7['UpAcZ']}=_0x2c35df,_0x6be351=getSourceSkillsDir(),_0x2bc0f8=_0x549cb7['HUcrH'](join,_0x6be351,_0x43aa75),_0x4e9456=join(_0x6be351,_0x43aa75+'.md'),_0x2e6769=_0x549cb7['gtJeC'](existsSync,_0x2bc0f8)&&_0x549cb7[_0x599c2c(0x134)](statSync,_0x2bc0f8)[_0x599c2c(0x12c)]()&&_0x549cb7['gtJeC'](existsSync,_0x549cb7['HUcrH'](join,_0x2bc0f8,_0x549cb7[_0x599c2c(0x138)])),_0x33bc63=existsSync(_0x4e9456);if(!_0x2e6769&&!_0x33bc63)return console[_0x599c2c(0x12f)](_0x599c2c(0x12e)+_0x43aa75),![];const _0x278745=_0x549cb7[_0x599c2c(0x122)](platform,_0x599c2c(0x13a))?getOpencodeSkillsDir(level):getSkillsDir(level),_0x4d378e=_0x549cb7[_0x599c2c(0x127)](join,_0x278745,_0x43aa75);await _0x549cb7[_0x599c2c(0x127)](mkdir,_0x4d378e,{'recursive':!![]});let _0x2d6761,_0x3a8721=[];if(_0x2e6769){const _0x1eeb0a=await _0x549cb7[_0x599c2c(0x126)](readdir,_0x2bc0f8),_0x5047cf=_0x1eeb0a['filter'](_0xd4c262=>_0xd4c262[_0x599c2c(0x13c)]('.md'));for(const _0x128a09 of _0x5047cf){const _0x2b546c=_0x549cb7['HUcrH'](join,_0x2bc0f8,_0x128a09),_0x207061=_0x549cb7[_0x599c2c(0x127)](join,_0x4d378e,_0x128a09);await copyFile(_0x2b546c,_0x207061),_0x3a8721[_0x599c2c(0x133)](_0x128a09);}_0x2d6761=await readFile(join(_0x2bc0f8,_0x549cb7['jLUBm']),_0x549cb7['BmSGJ']);}else{_0x2d6761=await _0x549cb7[_0x599c2c(0x127)](readFile,_0x4e9456,_0x599c2c(0x128));const _0x135410=_0x549cb7['fTyWb'](join,_0x4d378e,_0x549cb7['jLUBm']);await _0x549cb7[_0x599c2c(0x125)](writeFile,_0x135410,_0x2d6761,_0x599c2c(0x128)),_0x3a8721[_0x599c2c(0x133)](_0x549cb7[_0x599c2c(0x138)]);}const {name:_0x2a6500}=_0x549cb7['VlNcf'](parseFrontmatter,_0x2d6761);return console['log']('\x20\x20Installed\x20skill:\x20'+_0x2a6500),console['log'](_0x599c2c(0x13f)+_0x4d378e),_0x549cb7['vHTqG'](_0x3a8721['length'],0x1)&&console['log']('\x20\x20Files:\x20'+_0x3a8721[_0x599c2c(0x137)](',\x20')),logLocalAgentInstallation(_0x43aa75,{'skillDisplayName':_0x2a6500,'installLevel':level},_0x200871)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x1cd63f=_0x5d4958,_0x3ade9d={'UeVEJ':function(_0x42e792,_0x3f4184,_0x5ee8ee,_0x36a6a9,_0x4dc96d,_0x4ccaab){return _0x42e792(_0x3f4184,_0x5ee8ee,_0x36a6a9,_0x4dc96d,_0x4ccaab);}},_0x4c9d35=[join(__dirname,'..','..','skills'),_0x3ade9d[_0x1cd63f(0x13d)](join,__dirname,'..','..','..','skills')];for(const _0x2e2dbe of _0x4c9d35){if(existsSync(_0x2e2dbe))return _0x2e2dbe;}return _0x4c9d35[0x0];}function parseFrontmatter(_0x1aac68){const _0x9f9ee1=_0x5d4958,_0x1ed862={'MwjYS':_0x9f9ee1(0x135)},_0x315011=_0x1aac68['match'](/^---\n([\s\S]+?)\n---/);if(!_0x315011)throw new Error(_0x1ed862[_0x9f9ee1(0x130)]);const _0x3e624b=_0x315011[0x1],_0x4eaf30=_0x3e624b['match'](/name:\s*(.+)/),_0x5a7d3b=_0x3e624b[_0x9f9ee1(0x13e)](/description:\s*"?(.+?)"?\n/);return{'name':_0x4eaf30?.[0x1][_0x9f9ee1(0x124)]()||'','description':_0x5a7d3b?.[0x1][_0x9f9ee1(0x124)]()||''};}export async function removeSkill(_0x21bb5c,_0x4ddd49){const _0x539131=_0x5d4958,_0x59446f={'uCYaU':function(_0x161338,_0x9ffea9,_0x555cc6){return _0x161338(_0x9ffea9,_0x555cc6);}},_0xe7fac9=getSkillsDir(_0x4ddd49),_0xfed6aa=_0x59446f[_0x539131(0x143)](join,_0xe7fac9,_0x21bb5c);if(!existsSync(_0xfed6aa))return![];try{return await rm(_0xfed6aa,{'recursive':!![]}),console[_0x539131(0x139)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x21bb5c),!![];}catch{return console['warn']('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x21bb5c),![];}}
1
+ const _0x409077=_0x5550;(function(_0x482902,_0x3bb117){const _0x3107fb=_0x5550,_0xc25dad=_0x482902();while(!![]){try{const _0x4e92a2=parseInt(_0x3107fb(0x1c1))/0x1+parseInt(_0x3107fb(0x1bf))/0x2*(parseInt(_0x3107fb(0x1b2))/0x3)+-parseInt(_0x3107fb(0x1b0))/0x4+-parseInt(_0x3107fb(0x1c0))/0x5+-parseInt(_0x3107fb(0x1ab))/0x6*(parseInt(_0x3107fb(0x1ce))/0x7)+-parseInt(_0x3107fb(0x1c6))/0x8+parseInt(_0x3107fb(0x1cc))/0x9;if(_0x4e92a2===_0x3bb117)break;else _0xc25dad['push'](_0xc25dad['shift']());}catch(_0x57d9f1){_0xc25dad['push'](_0xc25dad['shift']());}}}(_0x4cc3,0xd934f));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=['ranger'];function _0x4cc3(){const _0x4d633d=['MWPUA','CqWbn','11372625CzOnfP','warn','7fsxxdR','utf-8','match','256314GZvXxz','VNYjV','claude','trim','VtDUA','686352ZMbSeD','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','9FaKQae','\x20\x20Files:\x20','JxUfg','endsWith','Invalid\x20skill\x20frontmatter','\x20\x20Removed\x20deprecated\x20skill:\x20','isDirectory','NboVg','VLeGM','PQGQb','bug-bash','push','skills','416114LlgNOA','6359615KpLqFs','889713MPnwFX','.md','OHvpe','IpqCD','log','3212800SexSvX','feature-tracker','Pzfvo','hgODd'];_0x4cc3=function(){return _0x4d633d;};return _0x4cc3();}function _0x5550(_0x2745d0,_0xbcf230){_0x2745d0=_0x2745d0-0x1aa;const _0x4cc328=_0x4cc3();let _0x555045=_0x4cc328[_0x2745d0];return _0x555045;}export const DEPRECATED_SKILLS=['e2e-test-recommender',_0x409077(0x1bc),_0x409077(0x1c7)];export async function installSkill(_0x12f640,_0x1c31bf={}){const _0x2bcf2f=_0x409077,_0x281ce9={'PQGQb':'project','aaWRd':function(_0x508325){return _0x508325();},'VLeGM':function(_0x169c86,_0x1c794d,_0x522a20){return _0x169c86(_0x1c794d,_0x522a20);},'JxUfg':function(_0x3e0556,_0x44775a){return _0x3e0556(_0x44775a);},'IpqCD':'SKILL.md','jCpFf':function(_0x2fe258,_0x1fb068){return _0x2fe258&&_0x1fb068;},'gtcrT':function(_0x1c7dde,_0x3f931d){return _0x1c7dde===_0x3f931d;},'NboVg':function(_0x2c965d,_0x1f0fab){return _0x2c965d(_0x1f0fab);},'VNYjV':function(_0x139537,_0x4f0d17,_0x1a608c){return _0x139537(_0x4f0d17,_0x1a608c);},'VtDUA':function(_0x263dc3,_0xf73c4f,_0x57f876){return _0x263dc3(_0xf73c4f,_0x57f876);},'UYwmv':'utf-8','Pzfvo':function(_0x229918,_0x425a08){return _0x229918>_0x425a08;},'hgODd':function(_0x412984,_0x16aa81,_0x29757b,_0x13d54d){return _0x412984(_0x16aa81,_0x29757b,_0x13d54d);}},{level:level=_0x281ce9[_0x2bcf2f(0x1bb)],cliVersion:_0x27c567,platform:platform=_0x2bcf2f(0x1ad)}=_0x1c31bf,_0x532a7a=_0x281ce9['aaWRd'](getSourceSkillsDir),_0x171ae4=_0x281ce9['VLeGM'](join,_0x532a7a,_0x12f640),_0x2faf33=join(_0x532a7a,_0x12f640+_0x2bcf2f(0x1c2)),_0x257476=_0x281ce9[_0x2bcf2f(0x1b4)](existsSync,_0x171ae4)&&statSync(_0x171ae4)[_0x2bcf2f(0x1b8)]()&&existsSync(join(_0x171ae4,_0x281ce9['IpqCD'])),_0x1611e7=existsSync(_0x2faf33);if(_0x281ce9['jCpFf'](!_0x257476,!_0x1611e7))return console['warn']('\x20\x20Skill\x20not\x20found:\x20'+_0x12f640),![];const _0x552300=_0x281ce9['gtcrT'](platform,'opencode')?getOpencodeSkillsDir(level):_0x281ce9[_0x2bcf2f(0x1b4)](getSkillsDir,level),_0x3cb500=_0x281ce9[_0x2bcf2f(0x1ba)](join,_0x552300,_0x12f640);await mkdir(_0x3cb500,{'recursive':!![]});let _0x5c5cca,_0x239772=[];if(_0x257476){const _0x527e46=await _0x281ce9[_0x2bcf2f(0x1b9)](readdir,_0x171ae4),_0x53ea4d=_0x527e46['filter'](_0x438af3=>_0x438af3[_0x2bcf2f(0x1b5)](_0x2bcf2f(0x1c2)));for(const _0x41abf2 of _0x53ea4d){const _0x2a8ce1=join(_0x171ae4,_0x41abf2),_0x28545d=join(_0x3cb500,_0x41abf2);await _0x281ce9[_0x2bcf2f(0x1ac)](copyFile,_0x2a8ce1,_0x28545d),_0x239772[_0x2bcf2f(0x1bd)](_0x41abf2);}_0x5c5cca=await _0x281ce9[_0x2bcf2f(0x1af)](readFile,join(_0x171ae4,_0x281ce9['IpqCD']),_0x2bcf2f(0x1cf));}else{_0x5c5cca=await readFile(_0x2faf33,'utf-8');const _0x3447cb=join(_0x3cb500,_0x281ce9['IpqCD']);await writeFile(_0x3447cb,_0x5c5cca,_0x281ce9['UYwmv']),_0x239772[_0x2bcf2f(0x1bd)](_0x281ce9[_0x2bcf2f(0x1c4)]);}const {name:_0x4b90fa}=_0x281ce9['NboVg'](parseFrontmatter,_0x5c5cca);return console['log']('\x20\x20Installed\x20skill:\x20'+_0x4b90fa),console['log']('\x20\x20Location:\x20'+_0x3cb500),_0x281ce9[_0x2bcf2f(0x1c8)](_0x239772['length'],0x1)&&console[_0x2bcf2f(0x1c5)](_0x2bcf2f(0x1b3)+_0x239772['join'](',\x20')),_0x281ce9[_0x2bcf2f(0x1c9)](logLocalAgentInstallation,_0x12f640,{'skillDisplayName':_0x4b90fa,'installLevel':level},_0x27c567)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x1cded7=_0x409077,_0x2b3c33={'CqWbn':_0x1cded7(0x1be),'HvyqK':function(_0x3588e7,_0x1c4af3,_0x3f062e,_0x4de614,_0x18e0d4,_0x1def3b){return _0x3588e7(_0x1c4af3,_0x3f062e,_0x4de614,_0x18e0d4,_0x1def3b);},'MWPUA':function(_0x8d4350,_0x1c58b8){return _0x8d4350(_0x1c58b8);}},_0xcd52e1=[join(__dirname,'..','..',_0x2b3c33[_0x1cded7(0x1cb)]),_0x2b3c33['HvyqK'](join,__dirname,'..','..','..','skills')];for(const _0x23b3e9 of _0xcd52e1){if(_0x2b3c33[_0x1cded7(0x1ca)](existsSync,_0x23b3e9))return _0x23b3e9;}return _0xcd52e1[0x0];}function parseFrontmatter(_0x239fe6){const _0x3111b1=_0x409077,_0x49b195={'ouqPJ':_0x3111b1(0x1b6)},_0x3c23aa=_0x239fe6[_0x3111b1(0x1aa)](/^---\n([\s\S]+?)\n---/);if(!_0x3c23aa)throw new Error(_0x49b195['ouqPJ']);const _0x14a7ac=_0x3c23aa[0x1],_0x48c3c6=_0x14a7ac['match'](/name:\s*(.+)/),_0x57c5e0=_0x14a7ac['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0x48c3c6?.[0x1][_0x3111b1(0x1ae)]()||'','description':_0x57c5e0?.[0x1]['trim']()||''};}export async function removeSkill(_0x4b1ebf,_0x53c470){const _0x2dd8c1=_0x409077,_0x4aec7b={'OHvpe':function(_0x2e8476,_0x3f797d){return _0x2e8476(_0x3f797d);},'vHIZk':function(_0x40282f,_0x4c2eef,_0x1f505b){return _0x40282f(_0x4c2eef,_0x1f505b);}},_0xdbe0a9=_0x4aec7b[_0x2dd8c1(0x1c3)](getSkillsDir,_0x53c470),_0x1a932d=_0x4aec7b['vHIZk'](join,_0xdbe0a9,_0x4b1ebf);if(!_0x4aec7b[_0x2dd8c1(0x1c3)](existsSync,_0x1a932d))return![];try{return await rm(_0x1a932d,{'recursive':!![]}),console['log'](_0x2dd8c1(0x1b7)+_0x4b1ebf),!![];}catch{return console[_0x2dd8c1(0x1cd)](_0x2dd8c1(0x1b1)+_0x4b1ebf),![];}}
@@ -1 +1 @@
1
- const _0x1d5a18=_0x2026;(function(_0x35119d,_0x179d17){const _0x260c0e=_0x2026,_0x48128e=_0x35119d();while(!![]){try{const _0x8f2c0e=parseInt(_0x260c0e(0x11e))/0x1*(parseInt(_0x260c0e(0x11c))/0x2)+parseInt(_0x260c0e(0x13b))/0x3*(-parseInt(_0x260c0e(0x117))/0x4)+-parseInt(_0x260c0e(0x158))/0x5*(-parseInt(_0x260c0e(0x142))/0x6)+parseInt(_0x260c0e(0x153))/0x7*(parseInt(_0x260c0e(0x129))/0x8)+-parseInt(_0x260c0e(0x141))/0x9+-parseInt(_0x260c0e(0x151))/0xa+-parseInt(_0x260c0e(0x125))/0xb*(-parseInt(_0x260c0e(0x132))/0xc);if(_0x8f2c0e===_0x179d17)break;else _0x48128e['push'](_0x48128e['shift']());}catch(_0x16a9c6){_0x48128e['push'](_0x48128e['shift']());}}}(_0xa406,0x589b6));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(_0x2af929,_0x4a441f){const _0x29635e=_0x2026,_0x50569c={'Fhqaj':function(_0x449d20,_0x59b6ad){return _0x449d20&_0x59b6ad;},'NDebf':function(_0x58b00a,_0x33d5d3){return _0x58b00a-_0x33d5d3;},'ZTiNL':function(_0x4bed69,_0x1ad200){return _0x4bed69+_0x1ad200;}};if(_0x4a441f>=_0x2af929['length'])return[0x0,0x0];const _0x28aac6=_0x2af929[_0x4a441f];let _0x44b71a=0x1,_0x3d645d=0x80;while(_0x44b71a<=0x8&&!_0x50569c[_0x29635e(0x137)](_0x28aac6,_0x3d645d)){_0x44b71a++,_0x3d645d>>=0x1;}if(_0x4a441f+_0x44b71a>_0x2af929['length'])return[0x0,0x0];let _0x5ae6da=_0x28aac6&_0x50569c['NDebf'](_0x3d645d,0x1);for(let _0x4f2440=0x1;_0x4f2440<_0x44b71a;_0x4f2440++){_0x5ae6da=_0x5ae6da*0x100+_0x2af929[_0x50569c[_0x29635e(0x11f)](_0x4a441f,_0x4f2440)];}return[_0x5ae6da,_0x44b71a];}function readId(_0x2137c7,_0xcceb56){const _0x52bd02=_0x2026,_0x4365fe={'ANeCq':function(_0x34eee9,_0x342171){return _0x34eee9>=_0x342171;},'VsONr':function(_0x6e9e13,_0x2fad0){return _0x6e9e13>=_0x2fad0;},'WDrMe':function(_0x541c3e,_0x3a0d9a){return _0x541c3e*_0x3a0d9a;}};if(_0xcceb56>=_0x2137c7[_0x52bd02(0x139)])return[0x0,0x0];const _0x35f0cd=_0x2137c7[_0xcceb56];let _0x42ddd4;if(_0x4365fe[_0x52bd02(0x127)](_0x35f0cd,0x80))_0x42ddd4=0x1;else{if(_0x35f0cd>=0x40)_0x42ddd4=0x2;else{if(_0x4365fe[_0x52bd02(0x127)](_0x35f0cd,0x20))_0x42ddd4=0x3;else{if(_0x4365fe[_0x52bd02(0x159)](_0x35f0cd,0x10))_0x42ddd4=0x4;else return[_0x35f0cd,0x1];}}}if(_0xcceb56+_0x42ddd4>_0x2137c7['length'])return[0x0,0x0];let _0x34e784=0x0;for(let _0x514a90=0x0;_0x514a90<_0x42ddd4;_0x514a90++){_0x34e784=_0x4365fe[_0x52bd02(0x134)](_0x34e784,0x100)+_0x2137c7[_0xcceb56+_0x514a90];}return[_0x34e784,_0x42ddd4];}function readUint(_0x5e7e57,_0xa1aae1,_0x4085aa){const _0x4f8972={'jCrcC':function(_0x1eb24a,_0x48f7c8){return _0x1eb24a<_0x48f7c8;},'uKapR':function(_0xe79fce,_0x2f2870){return _0xe79fce+_0x2f2870;}};let _0x1e8ab9=0x0;for(let _0x51cc03=0x0;_0x4f8972['jCrcC'](_0x51cc03,_0x4085aa);_0x51cc03++){_0x1e8ab9=_0x4f8972['uKapR'](_0x1e8ab9*0x100,_0x5e7e57[_0xa1aae1+_0x51cc03]);}return _0x1e8ab9;}function isUnknownSize(_0x57f00b,_0x4bb875){const _0x3cbdf7={'iBigI':function(_0x3db227,_0x4350f0){return _0x3db227===_0x4350f0;}};return _0x3cbdf7['iBigI'](_0x57f00b,Math['pow'](0x2,0x7*_0x4bb875)-0x1);}function _0x2026(_0x5a2b81,_0x13b34b){_0x5a2b81=_0x5a2b81-0x115;const _0xa4062f=_0xa406();let _0x20263b=_0xa4062f[_0x5a2b81];return _0x20263b;}function writeVint(_0x501010,_0x1f6ff3){const _0x162d92=_0x2026,_0x39979={'CSnDk':function(_0x4b3357,_0x2b1f95){return _0x4b3357||_0x2b1f95;},'FYDYn':function(_0x26e01d,_0x3c51ed){return _0x26e01d-_0x3c51ed;},'KjqRq':function(_0x127bfc,_0x338e3b){return _0x127bfc*_0x338e3b;},'deDzN':function(_0x22db3e,_0x3d03e5){return _0x22db3e>=_0x3d03e5;},'uGWpm':function(_0x51c0b6,_0x1a8f78){return _0x51c0b6-_0x1a8f78;}};let _0x28cdb6=_0x39979[_0x162d92(0x126)](_0x1f6ff3,0x1);while(_0x39979['FYDYn'](Math['pow'](0x2,_0x39979[_0x162d92(0x116)](0x7,_0x28cdb6)),0x2)<_0x501010)_0x28cdb6++;const _0x13a904=Buffer[_0x162d92(0x120)](_0x28cdb6);for(let _0xa7355b=_0x28cdb6-0x1;_0x39979[_0x162d92(0x135)](_0xa7355b,0x0);_0xa7355b--){_0x13a904[_0xa7355b]=_0x501010&0xff,_0x501010=Math[_0x162d92(0x154)](_0x501010/0x100);}return _0x13a904[0x0]|=0x1<<_0x39979[_0x162d92(0x136)](0x8,_0x28cdb6),_0x13a904;}function writeUint(_0x42f3a4,_0x53c13b){const _0x4de4ad=_0x2026,_0x4abbd={'MguvH':function(_0x1cc3b7,_0x4c8576){return _0x1cc3b7-_0x4c8576;},'AoXBB':function(_0x4873ed,_0x42d4d8){return _0x4873ed>=_0x42d4d8;}},_0xbd52e1=Buffer[_0x4de4ad(0x120)](_0x53c13b);for(let _0x33acce=_0x4abbd[_0x4de4ad(0x12e)](_0x53c13b,0x1);_0x4abbd['AoXBB'](_0x33acce,0x0);_0x33acce--){_0xbd52e1[_0x33acce]=_0x42f3a4&0xff,_0x42f3a4=Math[_0x4de4ad(0x154)](_0x42f3a4/0x100);}return _0xbd52e1;}function writeUnknownSizeVint(_0x51103d){const _0x38e550={'UCtzu':function(_0x117624,_0x539bb2){return _0x117624-_0x539bb2;}},_0x5abe64=Buffer['alloc'](_0x51103d,0xff);return _0x5abe64[0x0]=0xff>>_0x38e550['UCtzu'](_0x51103d,0x1),_0x5abe64;}function uintSize(_0x19f8f6){const _0x4f20fc={'RNlHW':function(_0x25f1cd,_0x10492f){return _0x25f1cd===_0x10492f;}};if(_0x4f20fc['RNlHW'](_0x19f8f6,0x0))return 0x1;let _0x459dd1=0x0,_0x25fac0=_0x19f8f6;while(_0x25fac0>0x0){_0x459dd1++,_0x25fac0=Math['floor'](_0x25fac0/0x100);}return _0x459dd1;}function findTimestampScale(_0x164826,_0x5cdb1b){const _0x3f6d98=_0x2026,_0xb5f1b3={'fPOiu':function(_0xff0568,_0x4ec790){return _0xff0568+_0x4ec790;},'wnEYk':function(_0x47fdb0,_0xafb3f0){return _0x47fdb0+_0xafb3f0;},'RUVha':function(_0x4e64bc,_0x20aa97){return _0x4e64bc===_0x20aa97;},'lHwjm':function(_0x27fab8,_0x1dd46d){return _0x27fab8<_0x1dd46d;},'mzEwd':function(_0x21c0a6,_0x36bc2a){return _0x21c0a6+_0x36bc2a;},'CvNYB':function(_0x3cc94b,_0x31e69f){return _0x3cc94b+_0x31e69f;}};let _0x5fd633=_0x5cdb1b;const _0xa1ae01=Math[_0x3f6d98(0x12f)](_0x164826[_0x3f6d98(0x139)],_0xb5f1b3[_0x3f6d98(0x14f)](_0x5cdb1b,0x2710));while(_0x5fd633<_0xa1ae01){const [_0x289fa,_0x3fcf3d]=readId(_0x164826,_0x5fd633),[_0x3ab633,_0x4fec46]=readVint(_0x164826,_0xb5f1b3[_0x3f6d98(0x12a)](_0x5fd633,_0x3fcf3d));if(_0xb5f1b3[_0x3f6d98(0x143)](_0x289fa,ID_INFO)){let _0x5c1794=_0xb5f1b3[_0x3f6d98(0x14f)](_0x5fd633,_0x3fcf3d)+_0x4fec46;const _0xf6e9b4=_0x5c1794+_0x3ab633;while(_0xb5f1b3['lHwjm'](_0x5c1794,_0xf6e9b4)){const [_0x9c20a0,_0x3f62f0]=readId(_0x164826,_0x5c1794),[_0x52c076,_0x2f9764]=readVint(_0x164826,_0x5c1794+_0x3f62f0);if(_0x9c20a0===ID_TIMESTAMP_SCALE)return readUint(_0x164826,_0x5c1794+_0x3f62f0+_0x2f9764,_0x52c076);_0x5c1794+=_0xb5f1b3[_0x3f6d98(0x12a)](_0x3f62f0,_0x2f9764)+_0x52c076;}break;}if(_0x289fa===ID_CLUSTER)break;if(isUnknownSize(_0x3ab633,_0x4fec46))break;_0x5fd633+=_0xb5f1b3['mzEwd'](_0xb5f1b3['CvNYB'](_0x3fcf3d,_0x4fec46),_0x3ab633);}return 0xf4240;}function _0xa406(){const _0x5c2596=['oaStO','clusters','wrChR','from','1196QnYbJM','BSnYd','993UMMcec','ZTiNL','alloc','UGHWR','maxTicks','maxTimestampTicks','ufjge','11XdxMgG','CSnDk','ANeCq','GChYD','2144432hkoQEG','wnEYk','wHQbp','IDRqY','bodyBeforeTimestamp','MguvH','min','GfQhY','header','3697836PITUkN','vSTpB','WDrMe','deDzN','uGWpm','Fhqaj','GRrTP','length','push','459066MFtDMe','silAt','pszrw','slice','dWXBH','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','2333097eVbfMV','176622tzegxM','RUVha','MhyAd','yGBji','dYxjn','UuELN','vHhBE','yEOTT','max','exit','argv','xboGX','concat','fPOiu','GwvxB','1182250tUdWax','pOLNw','7aQUVTK','floor','endsWith','log','WZAhG','5tFhVtr','VsONr','FQLyV','KjqRq','12PpXcUg'];_0xa406=function(){return _0x5c2596;};return _0xa406();}function findFirstClusterOffset(_0x32b82c,_0x4dad52){const _0x4ff016=_0x2026,_0x30ad25={'xboGX':function(_0x32d70f,_0x130835){return _0x32d70f<_0x130835;},'IDRqY':function(_0x29d7cc,_0x3e95b7,_0x196972){return _0x29d7cc(_0x3e95b7,_0x196972);},'yGBji':function(_0x10d345,_0x5a6fe4){return _0x10d345===_0x5a6fe4;}};let _0x548963=_0x4dad52;while(_0x30ad25[_0x4ff016(0x14d)](_0x548963,_0x32b82c['length'])){const [_0x39d048,_0x5a7d5b]=_0x30ad25[_0x4ff016(0x12c)](readId,_0x32b82c,_0x548963);if(_0x30ad25[_0x4ff016(0x145)](_0x39d048,ID_CLUSTER))return _0x548963;const [_0x1295cb,_0x59883b]=readVint(_0x32b82c,_0x548963+_0x5a7d5b);if(isUnknownSize(_0x1295cb,_0x59883b))return _0x548963;_0x548963+=_0x5a7d5b+_0x59883b+_0x1295cb;}return _0x32b82c[_0x4ff016(0x139)];}function findClusterEnd(_0x5638ef,_0x10333a,_0x3f319f,_0x457a32){const _0x20f018=_0x2026,_0xf8439b={'silAt':function(_0x4dcfae,_0x493993,_0x36cafb){return _0x4dcfae(_0x493993,_0x36cafb);},'LWtzn':function(_0x52d2ad,_0x3554af,_0x5b7cb1){return _0x52d2ad(_0x3554af,_0x5b7cb1);},'YFCyp':function(_0x341e15,_0x41307b){return _0x341e15+_0x41307b;}};if(!isUnknownSize(_0x3f319f,_0x457a32))return _0x10333a+_0x3f319f;const _0x258e17=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x571454=_0x10333a;while(_0x571454<_0x5638ef['length']-0x4){const [_0x853913,_0x263ce9]=_0xf8439b[_0x20f018(0x13c)](readId,_0x5638ef,_0x571454);if(_0x258e17['has'](_0x853913))return _0x571454;const [_0x81884b,_0x579244]=readVint(_0x5638ef,_0x571454+_0x263ce9);if(_0xf8439b['LWtzn'](isUnknownSize,_0x81884b,_0x579244))return _0x5638ef['length'];_0x571454+=_0xf8439b['YFCyp'](_0x263ce9+_0x579244,_0x81884b);}return _0x5638ef[_0x20f018(0x139)];}function extractClusters(_0x4ec5ca,_0x1fd468){const _0x203cc5=_0x2026,_0x30aea4={'bXLNT':function(_0x19c203,_0x5d7781){return _0x19c203!==_0x5d7781;},'vHhBE':function(_0xcef3d7,_0x29e5af){return _0xcef3d7+_0x29e5af;},'GChYD':function(_0x1843b7,_0x1c6f2d){return _0x1843b7+_0x1c6f2d;},'vSTpB':function(_0x9bc627,_0x3c533f,_0xdb9b4e,_0x5db9e7,_0x34967e){return _0x9bc627(_0x3c533f,_0xdb9b4e,_0x5db9e7,_0x34967e);},'ufjge':function(_0x25805a,_0x4af1c2){return _0x25805a<_0x4af1c2;},'UGHWR':function(_0x517d92,_0x58dc21,_0x232fc5){return _0x517d92(_0x58dc21,_0x232fc5);},'oaStO':function(_0xed698,_0x43ecbe){return _0xed698===_0x43ecbe;},'BSnYd':function(_0x274918,_0x5b8d4f){return _0x274918<_0x5b8d4f;},'leMTD':function(_0x20c684,_0x2fdb38){return _0x20c684>=_0x2fdb38;},'eCSZB':function(_0x22ae7a,_0x37020d){return _0x22ae7a+_0x37020d;},'LBoDz':function(_0x42b5e0,_0x383470){return _0x42b5e0>_0x383470;}},_0x46c7de=[],_0x350df3=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x366a2b=0x0;while(_0x366a2b<_0x4ec5ca[_0x203cc5(0x139)]){const _0x5c5d88=_0x4ec5ca['indexOf'](_0x350df3,_0x366a2b);if(_0x5c5d88===-0x1)break;const [_0x297d82,_0x534437]=readId(_0x4ec5ca,_0x5c5d88);if(_0x30aea4['bXLNT'](_0x297d82,ID_CLUSTER)){_0x366a2b=_0x5c5d88+0x1;continue;}const [_0x2814e2,_0x1f3625]=readVint(_0x4ec5ca,_0x30aea4[_0x203cc5(0x148)](_0x5c5d88,_0x534437)),_0x560ec8=_0x30aea4['GChYD'](_0x30aea4[_0x203cc5(0x148)](_0x5c5d88,_0x534437),_0x1f3625),_0x3a0153=_0x30aea4[_0x203cc5(0x133)](findClusterEnd,_0x4ec5ca,_0x560ec8,_0x2814e2,_0x1f3625);let _0x5b598d=_0x560ec8,_0x3fa91e=0x0,_0x48aa71=0x2,_0x4e911c=![],_0x14e9c1=Buffer[_0x203cc5(0x120)](0x0),_0xf5d76e=Buffer['alloc'](0x0);while(_0x30aea4[_0x203cc5(0x124)](_0x5b598d,_0x3a0153)){const [_0x3516dd,_0x21cc37]=_0x30aea4['UGHWR'](readId,_0x4ec5ca,_0x5b598d),[_0x5018a5,_0x3e8ba7]=readVint(_0x4ec5ca,_0x5b598d+_0x21cc37);if(_0x30aea4[_0x203cc5(0x118)](_0x3516dd,ID_TIMESTAMP)){_0x3fa91e=readUint(_0x4ec5ca,_0x30aea4['GChYD'](_0x5b598d+_0x21cc37,_0x3e8ba7),_0x5018a5),_0x48aa71=_0x5018a5,_0x4e911c=!![],_0x14e9c1=_0x4ec5ca[_0x203cc5(0x13e)](_0x560ec8,_0x5b598d);const _0x110fab=_0x30aea4['vHhBE'](_0x30aea4['vHhBE'](_0x30aea4['vHhBE'](_0x5b598d,_0x21cc37),_0x3e8ba7),_0x5018a5);_0xf5d76e=_0x4ec5ca[_0x203cc5(0x13e)](_0x110fab,_0x3a0153);break;}if(_0x3516dd===ID_CLUSTER)break;if(_0x30aea4[_0x203cc5(0x121)](isUnknownSize,_0x5018a5,_0x3e8ba7))break;_0x5b598d+=_0x21cc37+_0x3e8ba7+_0x5018a5;}!_0x4e911c&&(_0xf5d76e=_0x4ec5ca[_0x203cc5(0x13e)](_0x560ec8,_0x3a0153));let _0x102f62=_0x3fa91e;_0x5b598d=_0x560ec8;while(_0x30aea4[_0x203cc5(0x11d)](_0x5b598d,_0x3a0153)){const [_0x7efb12,_0x2decfa]=_0x30aea4['UGHWR'](readId,_0x4ec5ca,_0x5b598d),[_0x5a3b4b,_0x2cad60]=readVint(_0x4ec5ca,_0x30aea4[_0x203cc5(0x128)](_0x5b598d,_0x2decfa));if(_0x30aea4[_0x203cc5(0x118)](_0x7efb12,ID_SIMPLE_BLOCK)&&_0x30aea4['leMTD'](_0x5a3b4b,0x4)){const _0x376683=_0x30aea4[_0x203cc5(0x148)](_0x30aea4['vHhBE'](_0x5b598d,_0x2decfa),_0x2cad60),[,_0x5c3f97]=readVint(_0x4ec5ca,_0x376683),_0x45f2d4=_0x4ec5ca['readInt16BE'](_0x30aea4['eCSZB'](_0x376683,_0x5c3f97)),_0x593bfc=_0x3fa91e+_0x45f2d4;if(_0x30aea4['LBoDz'](_0x593bfc,_0x102f62))_0x102f62=_0x593bfc;}if(_0x7efb12===ID_CLUSTER)break;if(isUnknownSize(_0x5a3b4b,_0x2cad60))break;_0x5b598d+=_0x2decfa+_0x2cad60+_0x5a3b4b;}_0x46c7de['push']({'timestamp':_0x3fa91e,'maxTicks':_0x102f62,'bodyBeforeTimestamp':_0x14e9c1,'bodyAfterTimestamp':_0xf5d76e,'timestampElementSize':_0x48aa71}),_0x366a2b=_0x3a0153;}return _0x46c7de;}function parseWebm(_0x4fa0c2){const _0x2b9d2a=_0x2026,_0x1272a0={'GwvxB':function(_0x45998c,_0xbdadb7,_0x1d5aff){return _0x45998c(_0xbdadb7,_0x1d5aff);},'WZAhG':function(_0x59d99f,_0x366877){return _0x59d99f+_0x366877;},'FQLyV':function(_0xa4dd1b,_0x504afc){return _0xa4dd1b!==_0x504afc;},'wHQbp':function(_0x3d4579,_0x3d9767){return _0x3d4579+_0x3d9767;},'umLHN':function(_0xe336dd,_0x48a870){return _0xe336dd+_0x48a870;},'rVOvJ':function(_0x3e1c05,_0x4c2722,_0x362a90){return _0x3e1c05(_0x4c2722,_0x362a90);}};let _0x4ecfb7=0x0;const [,_0x5d8eeb]=readId(_0x4fa0c2,_0x4ecfb7),[_0x400980,_0x14244b]=_0x1272a0[_0x2b9d2a(0x150)](readVint,_0x4fa0c2,_0x4ecfb7+_0x5d8eeb);_0x4ecfb7+=_0x1272a0[_0x2b9d2a(0x157)](_0x5d8eeb+_0x14244b,_0x400980);const [_0xa91d1e,_0x138eb2]=readId(_0x4fa0c2,_0x4ecfb7);if(_0x1272a0[_0x2b9d2a(0x115)](_0xa91d1e,ID_SEGMENT))return null;const [,_0x5c8a05]=readVint(_0x4fa0c2,_0x4ecfb7+_0x138eb2),_0x3fbd22=_0x1272a0[_0x2b9d2a(0x12b)](_0x1272a0['umLHN'](_0x4ecfb7,_0x138eb2),_0x5c8a05),_0xdfedb4=findTimestampScale(_0x4fa0c2,_0x3fbd22),_0x3be0b4=findFirstClusterOffset(_0x4fa0c2,_0x3fbd22),_0x10f752=_0x4fa0c2['slice'](0x0,_0x3be0b4),_0x83c28f=_0x1272a0['rVOvJ'](extractClusters,_0x4fa0c2,_0xdfedb4);let _0x52d8a1=0x0;for(const _0x37403b of _0x83c28f){if(_0x37403b['maxTicks']>_0x52d8a1)_0x52d8a1=_0x37403b[_0x2b9d2a(0x122)];}return{'header':_0x10f752,'clusters':_0x83c28f,'timestampScale':_0xdfedb4,'maxTimestampTicks':_0x52d8a1};}function buildCluster(_0x29fc9d,_0x10e590,_0x3e35e7){const _0x25876d=_0x2026,_0xbfd407={'pOLNw':function(_0x5e81e5,_0x4fc36b){return _0x5e81e5(_0x4fc36b);},'VZGZq':function(_0x12061a,_0x4702d0,_0xbafb6a){return _0x12061a(_0x4702d0,_0xbafb6a);},'LdoIR':function(_0x137150,_0x5db296){return _0x137150(_0x5db296);}},_0x5958a8=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0xaf1a8f=Math[_0x25876d(0x14a)](0x4,_0xbfd407[_0x25876d(0x152)](uintSize,_0x29fc9d)),_0x12dd6d=Buffer['concat']([Buffer[_0x25876d(0x11b)]([ID_TIMESTAMP]),writeVint(_0xaf1a8f),_0xbfd407['VZGZq'](writeUint,_0x29fc9d,_0xaf1a8f)]),_0x155fd8=Buffer[_0x25876d(0x14e)]([_0x10e590,_0x12dd6d,_0x3e35e7]),_0x1766ff=_0xbfd407['LdoIR'](writeVint,_0x155fd8[_0x25876d(0x139)]);return Buffer[_0x25876d(0x14e)]([_0x5958a8,_0x1766ff,_0x155fd8]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x8f3fbc){const _0x7ceec2=_0x2026,_0x544b72={'TthmL':function(_0x4135d7,_0xad7988){return _0x4135d7+_0xad7988;},'dWXBH':function(_0x2264a6,_0xe448c5,_0x3b99dc){return _0x2264a6(_0xe448c5,_0x3b99dc);},'GRrTP':function(_0xca42e6,_0x35c25d){return _0xca42e6(_0x35c25d);},'UuELN':function(_0x2dbe6a,_0xae13e8){return _0x2dbe6a+_0xae13e8;},'BAgHA':function(_0x227f8d,_0x4b8c54){return _0x227f8d+_0x4b8c54;},'wrChR':function(_0x41c8b9,_0x37468c){return _0x41c8b9<_0x37468c;},'rQyVT':function(_0x374c97,_0x5c09d2,_0x4762d8){return _0x374c97(_0x5c09d2,_0x4762d8);},'dYxjn':function(_0x59633e,_0x5e5f84){return _0x59633e+_0x5e5f84;},'MhyAd':function(_0x35b76a,_0x51d394){return _0x35b76a+_0x51d394;},'uEMrF':function(_0x213a0b,_0x248e82){return _0x213a0b+_0x248e82;},'LVUHD':function(_0xdf75af,_0x25af16){return _0xdf75af+_0x25af16;},'GfQhY':function(_0x308520,_0x5f2794){return _0x308520+_0x5f2794;}},_0x270054=Buffer['from'](_0x8f3fbc);let _0x872637=0x0;const [,_0x454526]=readId(_0x270054,_0x872637),[_0x13e2a1,_0x12fda1]=readVint(_0x270054,_0x872637+_0x454526),_0x15971e=_0x544b72['TthmL'](_0x544b72['TthmL'](_0x872637,_0x454526)+_0x12fda1,_0x13e2a1),[,_0x2e04cb]=_0x544b72['dWXBH'](readId,_0x270054,_0x15971e),[,_0x5b4956]=readVint(_0x270054,_0x15971e+_0x2e04cb),_0x2cc44c=_0x544b72['TthmL'](_0x15971e,_0x2e04cb)+_0x5b4956,_0x17080e=_0x544b72[_0x7ceec2(0x138)](writeUnknownSizeVint,_0x5b4956);_0x17080e['copy'](_0x270054,_0x544b72[_0x7ceec2(0x147)](_0x15971e,_0x2e04cb));let _0x52f8d2=_0x2cc44c;const _0x2b2d48=Math[_0x7ceec2(0x12f)](_0x270054[_0x7ceec2(0x139)],_0x544b72['BAgHA'](_0x2cc44c,0x2710));while(_0x544b72[_0x7ceec2(0x11a)](_0x52f8d2,_0x2b2d48)){const [_0xd97467,_0x3208af]=_0x544b72[_0x7ceec2(0x13f)](readId,_0x270054,_0x52f8d2),[_0x8538c1,_0x5e0218]=readVint(_0x270054,_0x52f8d2+_0x3208af);if(_0xd97467===ID_CLUSTER)break;if(_0x544b72['rQyVT'](isUnknownSize,_0x8538c1,_0x5e0218))break;if(_0xd97467===ID_INFO){const _0x1dbeda=_0x544b72[_0x7ceec2(0x146)](_0x544b72[_0x7ceec2(0x144)](_0x52f8d2,_0x3208af),_0x5e0218),_0x533995=_0x1dbeda+_0x8538c1,_0x128131=[];let _0x1d3b56=_0x1dbeda;while(_0x1d3b56<_0x533995){const [_0x3d5ad8,_0x19c16b]=readId(_0x270054,_0x1d3b56),[_0x2951fa,_0x437910]=readVint(_0x270054,_0x1d3b56+_0x19c16b),_0x3d90c4=_0x544b72['BAgHA'](_0x544b72['uEMrF'](_0x19c16b,_0x437910),_0x2951fa);_0x3d5ad8!==ID_DURATION&&_0x128131[_0x7ceec2(0x13a)](_0x270054[_0x7ceec2(0x13e)](_0x1d3b56,_0x1d3b56+_0x3d90c4)),_0x1d3b56+=_0x3d90c4;}const _0xd3bd93=Buffer['concat'](_0x128131),_0x1d2aac=Buffer[_0x7ceec2(0x14e)]([_0x270054[_0x7ceec2(0x13e)](_0x52f8d2,_0x544b72['LVUHD'](_0x52f8d2,_0x3208af)),_0x544b72['rQyVT'](writeVint,_0xd3bd93['length'],_0x5e0218)]);return Buffer[_0x7ceec2(0x14e)]([_0x270054[_0x7ceec2(0x13e)](0x0,_0x52f8d2),_0x1d2aac,_0xd3bd93,_0x270054['slice'](_0x533995)]);}_0x52f8d2+=_0x544b72[_0x7ceec2(0x146)](_0x544b72[_0x7ceec2(0x130)](_0x3208af,_0x5e0218),_0x8538c1);}return _0x270054;}export function stitchWebmFiles(_0x2b96f3,_0x215574){const _0x50086f=_0x2026,_0x4db2db={'uAumA':function(_0x1ee83d,_0x515ed0){return _0x1ee83d(_0x515ed0);},'pszrw':function(_0x295d31,_0x1af5de){return _0x295d31<_0x1af5de;},'PCisG':function(_0x880143,_0x41fc9a){return _0x880143+_0x41fc9a;},'yEOTT':function(_0x526c4c,_0x7978b0,_0x1a4cad){return _0x526c4c(_0x7978b0,_0x1a4cad);}};if(_0x2b96f3[_0x50086f(0x139)]<=0x1)return![];const _0x281ec0=[];for(const _0x4efc3a of _0x2b96f3){const _0x38845e=readFileSync(_0x4efc3a),_0x24c138=parseWebm(_0x38845e);if(!_0x24c138||_0x24c138[_0x50086f(0x119)][_0x50086f(0x139)]===0x0)return![];_0x281ec0[_0x50086f(0x13a)](_0x24c138);}const _0x1825c2=_0x281ec0[0x0],_0x36a929=_0x4db2db['uAumA'](rebuildHeaderWithoutDuration,_0x1825c2[_0x50086f(0x131)]),_0x4c162e=[_0x36a929];let _0x5c8cea=0x0;for(let _0xf606cd=0x0;_0x4db2db[_0x50086f(0x13d)](_0xf606cd,_0x281ec0[_0x50086f(0x139)]);_0xf606cd++){const _0x583cec=_0x281ec0[_0xf606cd];for(const _0x5016ba of _0x583cec[_0x50086f(0x119)]){const _0x3837f1=_0x5016ba['timestamp']+_0x5c8cea;_0x4c162e[_0x50086f(0x13a)](buildCluster(_0x3837f1,_0x5016ba[_0x50086f(0x12d)],_0x5016ba['bodyAfterTimestamp']));}const _0x3b8773=0x1e;_0x5c8cea+=_0x4db2db['PCisG'](_0x583cec[_0x50086f(0x123)],_0x3b8773);}return _0x4db2db[_0x50086f(0x149)](writeFileSync,_0x215574,Buffer[_0x50086f(0x14e)](_0x4c162e)),!![];}if(process['argv'][0x1]?.[_0x1d5a18(0x155)]('stitchWebmFiles.ts')||process['argv'][0x1]?.[_0x1d5a18(0x155)]('stitchWebmFiles.js')){const args=process[_0x1d5a18(0x14c)]['slice'](0x2);args[_0x1d5a18(0x139)]<0x3&&(console['error'](_0x1d5a18(0x140)),process[_0x1d5a18(0x14b)](0x1));const output=args[args[_0x1d5a18(0x139)]-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x1d5a18(0x156)]('Stitched\x20'+inputs['length']+'\x20files\x20->\x20'+output):console['log']('Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.');}
1
+ const _0x404970=_0x2947;(function(_0x219924,_0x47bf04){const _0x4c3498=_0x2947,_0x2b021a=_0x219924();while(!![]){try{const _0x53b599=parseInt(_0x4c3498(0x1b9))/0x1*(parseInt(_0x4c3498(0x1db))/0x2)+parseInt(_0x4c3498(0x1bd))/0x3+parseInt(_0x4c3498(0x1bf))/0x4+parseInt(_0x4c3498(0x1a6))/0x5+-parseInt(_0x4c3498(0x1cd))/0x6*(parseInt(_0x4c3498(0x1a1))/0x7)+parseInt(_0x4c3498(0x1c8))/0x8*(-parseInt(_0x4c3498(0x196))/0x9)+-parseInt(_0x4c3498(0x1be))/0xa*(parseInt(_0x4c3498(0x1b1))/0xb);if(_0x53b599===_0x47bf04)break;else _0x2b021a['push'](_0x2b021a['shift']());}catch(_0x2da0a7){_0x2b021a['push'](_0x2b021a['shift']());}}}(_0x3e3b,0x88d6f));function _0x2947(_0x2acae3,_0x4e9dfa){_0x2acae3=_0x2acae3-0x193;const _0x3e3bc8=_0x3e3b();let _0x29473d=_0x3e3bc8[_0x2acae3];return _0x29473d;}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(_0x2b84f2,_0x32fe20){const _0x198734=_0x2947,_0x59f6b4={'rwNwF':function(_0x19eee9,_0x2540b8){return _0x19eee9<=_0x2540b8;},'uepmz':function(_0x15eef6,_0x31ff70){return _0x15eef6&_0x31ff70;},'wbMdq':function(_0x2a25ac,_0x5121a4){return _0x2a25ac&_0x5121a4;},'tliYe':function(_0x3494c9,_0x159bc1){return _0x3494c9<_0x159bc1;},'IlVGY':function(_0x4b1878,_0x1c16f9){return _0x4b1878+_0x1c16f9;},'nZXFK':function(_0x5ee203,_0x177a12){return _0x5ee203*_0x177a12;},'mNJZk':function(_0xf400b0,_0x45430c){return _0xf400b0+_0x45430c;}};if(_0x32fe20>=_0x2b84f2['length'])return[0x0,0x0];const _0x556481=_0x2b84f2[_0x32fe20];let _0x1010dd=0x1,_0x563654=0x80;while(_0x59f6b4[_0x198734(0x199)](_0x1010dd,0x8)&&!_0x59f6b4[_0x198734(0x1ad)](_0x556481,_0x563654)){_0x1010dd++,_0x563654>>=0x1;}if(_0x32fe20+_0x1010dd>_0x2b84f2['length'])return[0x0,0x0];let _0x71aae0=_0x59f6b4['wbMdq'](_0x556481,_0x563654-0x1);for(let _0x3432c4=0x1;_0x59f6b4['tliYe'](_0x3432c4,_0x1010dd);_0x3432c4++){_0x71aae0=_0x59f6b4['IlVGY'](_0x59f6b4['nZXFK'](_0x71aae0,0x100),_0x2b84f2[_0x59f6b4['mNJZk'](_0x32fe20,_0x3432c4)]);}return[_0x71aae0,_0x1010dd];}function readId(_0x2d613b,_0x45e620){const _0x6234c5=_0x2947,_0x551696={'rNimB':function(_0x2b972e,_0x548903){return _0x2b972e>=_0x548903;},'WdMyv':function(_0x2f221f,_0x38ccd5){return _0x2f221f>=_0x38ccd5;},'qFWmu':function(_0x1313c,_0x4f9b26){return _0x1313c<_0x4f9b26;},'UOMpe':function(_0x91276,_0x369a7e){return _0x91276*_0x369a7e;}};if(_0x551696['rNimB'](_0x45e620,_0x2d613b[_0x6234c5(0x1d1)]))return[0x0,0x0];const _0x167eeb=_0x2d613b[_0x45e620];let _0x406004;if(_0x551696[_0x6234c5(0x1d2)](_0x167eeb,0x80))_0x406004=0x1;else{if(_0x551696[_0x6234c5(0x1d2)](_0x167eeb,0x40))_0x406004=0x2;else{if(_0x551696[_0x6234c5(0x1a9)](_0x167eeb,0x20))_0x406004=0x3;else{if(_0x167eeb>=0x10)_0x406004=0x4;else return[_0x167eeb,0x1];}}}if(_0x45e620+_0x406004>_0x2d613b[_0x6234c5(0x1d1)])return[0x0,0x0];let _0x50d9ae=0x0;for(let _0x43d2a8=0x0;_0x551696['qFWmu'](_0x43d2a8,_0x406004);_0x43d2a8++){_0x50d9ae=_0x551696['UOMpe'](_0x50d9ae,0x100)+_0x2d613b[_0x45e620+_0x43d2a8];}return[_0x50d9ae,_0x406004];}function readUint(_0x41651c,_0x3d4fd8,_0x5e904e){const _0x196538=_0x2947,_0x28f5bb={'dHSkb':function(_0x283c7b,_0x146506){return _0x283c7b*_0x146506;},'xdGwJ':function(_0x2e4a7d,_0x1f4d56){return _0x2e4a7d+_0x1f4d56;}};let _0x49030c=0x0;for(let _0x341162=0x0;_0x341162<_0x5e904e;_0x341162++){_0x49030c=_0x28f5bb[_0x196538(0x1cf)](_0x49030c,0x100)+_0x41651c[_0x28f5bb['xdGwJ'](_0x3d4fd8,_0x341162)];}return _0x49030c;}function _0x3e3b(){const _0x30789d=['hXJIL','KgOJg','wfzlu','544524ZozkTQ','timestamp','PqfKV','endsWith','VyRdF','9KzmrOx','rGtUl','copy','rwNwF','log','NzVjq','DEfwX','IPxmx','Dnmwg','GsYWv','AoXVE','28756RJGsLH','iTJpw','Stitched\x20','GHRdF','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','3116780GWfuEC','argv','alloc','rNimB','max','bodyBeforeTimestamp','uuWkN','uepmz','CDJej','exit','rZPWf','191774HQdEij','push','KZmSx','header','JNGWB','floor','JNlJS','oWFvR','3SghUSY','tyeRf','slice','\x20files\x20->\x20','2065692ytWswc','610UlbwxZ','1828248JlJnWY','sveoT','BkDSi','BisrU','bUdDI','FAOyI','gqfnJ','clusters','has','1581688JxPYTZ','maxTimestampTicks','KWsmG','maxTicks','jTRgt','1116JdKUoO','gYwTF','dHSkb','PReMv','length','WdMyv','from','gTfRi','concat','yZhDW','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.'];_0x3e3b=function(){return _0x30789d;};return _0x3e3b();}function isUnknownSize(_0x1fd851,_0x27b1c6){const _0x9425e4=_0x2947,_0x29bd87={'Lppyj':function(_0x1b30fa,_0xff569c){return _0x1b30fa===_0xff569c;},'yZhDW':function(_0x1fad6c,_0x57c8f5){return _0x1fad6c-_0x57c8f5;}};return _0x29bd87['Lppyj'](_0x1fd851,_0x29bd87[_0x9425e4(0x1d6)](Math['pow'](0x2,0x7*_0x27b1c6),0x1));}function writeVint(_0x2d2fe3,_0x4071fb){const _0x4cbd02=_0x2947,_0x547b5f={'bUdDI':function(_0x58c696,_0x464f19){return _0x58c696||_0x464f19;},'RMBAB':function(_0x5344b6,_0xc141eb){return _0x5344b6<_0xc141eb;},'rGtUl':function(_0x348167,_0x822b52){return _0x348167*_0x822b52;},'OuXIX':function(_0x129174,_0x812dfa){return _0x129174-_0x812dfa;}};let _0x5f3a1b=_0x547b5f[_0x4cbd02(0x1c3)](_0x4071fb,0x1);while(_0x547b5f['RMBAB'](Math['pow'](0x2,_0x547b5f[_0x4cbd02(0x197)](0x7,_0x5f3a1b))-0x2,_0x2d2fe3))_0x5f3a1b++;const _0x4327a5=Buffer['alloc'](_0x5f3a1b);for(let _0x3bbe3f=_0x5f3a1b-0x1;_0x3bbe3f>=0x0;_0x3bbe3f--){_0x4327a5[_0x3bbe3f]=_0x2d2fe3&0xff,_0x2d2fe3=Math[_0x4cbd02(0x1b6)](_0x2d2fe3/0x100);}return _0x4327a5[0x0]|=0x1<<_0x547b5f['OuXIX'](0x8,_0x5f3a1b),_0x4327a5;}function writeUint(_0x196282,_0x289adf){const _0x2d111e=_0x2947,_0x32542e={'gTfRi':function(_0x2b7863,_0x570640){return _0x2b7863-_0x570640;},'DEfwX':function(_0x4ec999,_0x390ab5){return _0x4ec999&_0x390ab5;}},_0x55cf14=Buffer[_0x2d111e(0x1a8)](_0x289adf);for(let _0x292ba2=_0x32542e[_0x2d111e(0x1d4)](_0x289adf,0x1);_0x292ba2>=0x0;_0x292ba2--){_0x55cf14[_0x292ba2]=_0x32542e[_0x2d111e(0x19c)](_0x196282,0xff),_0x196282=Math['floor'](_0x196282/0x100);}return _0x55cf14;}function writeUnknownSizeVint(_0x467781){const _0x5e2b85={'XkRAs':function(_0x22b15f,_0x5c8d2e){return _0x22b15f-_0x5c8d2e;}},_0x15e88e=Buffer['alloc'](_0x467781,0xff);return _0x15e88e[0x0]=0xff>>_0x5e2b85['XkRAs'](_0x467781,0x1),_0x15e88e;}function uintSize(_0x20266d){const _0x459509={'iLyNE':function(_0x47025f,_0x32af2d){return _0x47025f/_0x32af2d;}};if(_0x20266d===0x0)return 0x1;let _0x136170=0x0,_0x54b0e3=_0x20266d;while(_0x54b0e3>0x0){_0x136170++,_0x54b0e3=Math['floor'](_0x459509['iLyNE'](_0x54b0e3,0x100));}return _0x136170;}function findTimestampScale(_0x975f56,_0x523170){const _0x3616ca=_0x2947,_0x462245={'piPAE':function(_0x14f6b5,_0x42a60e){return _0x14f6b5<_0x42a60e;},'Dnmwg':function(_0x4fc695,_0x570184,_0x5e5f64){return _0x4fc695(_0x570184,_0x5e5f64);},'KgOJg':function(_0x293687,_0x57f669){return _0x293687+_0x57f669;},'VbQpE':function(_0x434770,_0x386512){return _0x434770===_0x386512;},'HmsLK':function(_0x52c6a1,_0x119f71,_0x43f500,_0x518dc2){return _0x52c6a1(_0x119f71,_0x43f500,_0x518dc2);}};let _0x1d76ea=_0x523170;const _0x277c39=Math['min'](_0x975f56['length'],_0x523170+0x2710);while(_0x462245['piPAE'](_0x1d76ea,_0x277c39)){const [_0x855a87,_0x349f79]=readId(_0x975f56,_0x1d76ea),[_0x432297,_0x5a1fde]=_0x462245[_0x3616ca(0x19e)](readVint,_0x975f56,_0x462245[_0x3616ca(0x1d9)](_0x1d76ea,_0x349f79));if(_0x855a87===ID_INFO){let _0x39623a=_0x462245['KgOJg'](_0x462245[_0x3616ca(0x1d9)](_0x1d76ea,_0x349f79),_0x5a1fde);const _0x488f79=_0x39623a+_0x432297;while(_0x39623a<_0x488f79){const [_0x5612ab,_0x34b7c7]=readId(_0x975f56,_0x39623a),[_0x26fb2a,_0x45697a]=readVint(_0x975f56,_0x39623a+_0x34b7c7);if(_0x462245['VbQpE'](_0x5612ab,ID_TIMESTAMP_SCALE))return _0x462245['HmsLK'](readUint,_0x975f56,_0x462245[_0x3616ca(0x1d9)](_0x39623a,_0x34b7c7)+_0x45697a,_0x26fb2a);_0x39623a+=_0x34b7c7+_0x45697a+_0x26fb2a;}break;}if(_0x855a87===ID_CLUSTER)break;if(isUnknownSize(_0x432297,_0x5a1fde))break;_0x1d76ea+=_0x462245[_0x3616ca(0x1d9)](_0x349f79,_0x5a1fde)+_0x432297;}return 0xf4240;}function findFirstClusterOffset(_0x2d14ea,_0x56c519){const _0x5e6af0=_0x2947,_0x4be98d={'wfzlu':function(_0x30ab47,_0x8b7f36){return _0x30ab47<_0x8b7f36;},'BkDSi':function(_0x2bb047,_0x1e7da1,_0x2f7527){return _0x2bb047(_0x1e7da1,_0x2f7527);},'gmgoi':function(_0x2b73ed,_0x39e329){return _0x2b73ed===_0x39e329;},'GHRdF':function(_0x5addfe,_0x27f2bc,_0x1cd72a){return _0x5addfe(_0x27f2bc,_0x1cd72a);}};let _0x2797e6=_0x56c519;while(_0x4be98d[_0x5e6af0(0x1da)](_0x2797e6,_0x2d14ea[_0x5e6af0(0x1d1)])){const [_0x52e1e0,_0x19ebb7]=_0x4be98d[_0x5e6af0(0x1c1)](readId,_0x2d14ea,_0x2797e6);if(_0x4be98d['gmgoi'](_0x52e1e0,ID_CLUSTER))return _0x2797e6;const [_0x48f666,_0x12a040]=readVint(_0x2d14ea,_0x2797e6+_0x19ebb7);if(_0x4be98d[_0x5e6af0(0x1a4)](isUnknownSize,_0x48f666,_0x12a040))return _0x2797e6;_0x2797e6+=_0x19ebb7+_0x12a040+_0x48f666;}return _0x2d14ea['length'];}function findClusterEnd(_0x5ab79e,_0x44e700,_0x30ab82,_0x3b0037){const _0x387cfb=_0x2947,_0x3dc797={'tyeRf':function(_0x3fa8b8,_0x34823f){return _0x3fa8b8+_0x34823f;},'PqfKV':function(_0x204ac2,_0x467db2){return _0x204ac2<_0x467db2;},'DTbNZ':function(_0x1cbd27,_0x144676){return _0x1cbd27-_0x144676;},'BisrU':function(_0x3898b0,_0x16bda5,_0x5b8046){return _0x3898b0(_0x16bda5,_0x5b8046);},'jTRgt':function(_0x400c0a,_0x9e5dbf,_0x26d87c){return _0x400c0a(_0x9e5dbf,_0x26d87c);}};if(!isUnknownSize(_0x30ab82,_0x3b0037))return _0x3dc797['tyeRf'](_0x44e700,_0x30ab82);const _0x394d92=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x2a495c=_0x44e700;while(_0x3dc797[_0x387cfb(0x193)](_0x2a495c,_0x3dc797['DTbNZ'](_0x5ab79e['length'],0x4))){const [_0x57f2cc,_0x5b46ee]=_0x3dc797[_0x387cfb(0x1c2)](readId,_0x5ab79e,_0x2a495c);if(_0x394d92[_0x387cfb(0x1c7)](_0x57f2cc))return _0x2a495c;const [_0x17e9bd,_0x53920f]=_0x3dc797[_0x387cfb(0x1cc)](readVint,_0x5ab79e,_0x2a495c+_0x5b46ee);if(_0x3dc797[_0x387cfb(0x1cc)](isUnknownSize,_0x17e9bd,_0x53920f))return _0x5ab79e[_0x387cfb(0x1d1)];_0x2a495c+=_0x3dc797[_0x387cfb(0x1ba)](_0x5b46ee+_0x53920f,_0x17e9bd);}return _0x5ab79e['length'];}function extractClusters(_0x63d305,_0x27b8e9){const _0x2e9521=_0x2947,_0xee69f0={'PReMv':function(_0x5b66fc,_0x580105){return _0x5b66fc<_0x580105;},'rZPWf':function(_0x4568fc,_0x5d5086){return _0x4568fc+_0x5d5086;},'gqfnJ':function(_0x22d528,_0xac4703){return _0x22d528+_0xac4703;},'GsYWv':function(_0x555986,_0x3248eb,_0x55b876){return _0x555986(_0x3248eb,_0x55b876);},'UVMLI':function(_0x4efb58,_0x75f3ac){return _0x4efb58+_0x75f3ac;},'iTJpw':function(_0x2c66ea,_0x97ab20){return _0x2c66ea===_0x97ab20;},'AoXVE':function(_0x178f05,_0x337212,_0x19c2af,_0x3e6628){return _0x178f05(_0x337212,_0x19c2af,_0x3e6628);},'JNGWB':function(_0x3f69b8,_0x3ded66,_0x272524){return _0x3f69b8(_0x3ded66,_0x272524);},'VhxXA':function(_0x152bc8,_0xe4ecab){return _0x152bc8+_0xe4ecab;},'KZmSx':function(_0x1ca51d,_0x1fca89){return _0x1ca51d+_0x1fca89;},'pWyAS':function(_0x129469,_0x4e52af){return _0x129469+_0x4e52af;}},_0x8659c7=[],_0x53418b=Buffer[_0x2e9521(0x1d3)]([0x1f,0x43,0xb6,0x75]);let _0x2795d1=0x0;while(_0xee69f0[_0x2e9521(0x1d0)](_0x2795d1,_0x63d305[_0x2e9521(0x1d1)])){const _0x4bb01c=_0x63d305['indexOf'](_0x53418b,_0x2795d1);if(_0x4bb01c===-0x1)break;const [_0x2242bc,_0x159f8f]=readId(_0x63d305,_0x4bb01c);if(_0x2242bc!==ID_CLUSTER){_0x2795d1=_0xee69f0[_0x2e9521(0x1b0)](_0x4bb01c,0x1);continue;}const [_0x3fe54d,_0x926a97]=readVint(_0x63d305,_0xee69f0[_0x2e9521(0x1c5)](_0x4bb01c,_0x159f8f)),_0x26865b=_0xee69f0['rZPWf'](_0x4bb01c+_0x159f8f,_0x926a97),_0x58609f=findClusterEnd(_0x63d305,_0x26865b,_0x3fe54d,_0x926a97);let _0x2312d4=_0x26865b,_0x418aa2=0x0,_0x410cca=0x2,_0x4d4209=![],_0xadead1=Buffer[_0x2e9521(0x1a8)](0x0),_0x266b1e=Buffer[_0x2e9521(0x1a8)](0x0);while(_0x2312d4<_0x58609f){const [_0x419a31,_0x12df37]=_0xee69f0[_0x2e9521(0x19f)](readId,_0x63d305,_0x2312d4),[_0x47112c,_0x5b03e3]=_0xee69f0['GsYWv'](readVint,_0x63d305,_0xee69f0['UVMLI'](_0x2312d4,_0x12df37));if(_0xee69f0['iTJpw'](_0x419a31,ID_TIMESTAMP)){_0x418aa2=_0xee69f0[_0x2e9521(0x1a0)](readUint,_0x63d305,_0x2312d4+_0x12df37+_0x5b03e3,_0x47112c),_0x410cca=_0x47112c,_0x4d4209=!![],_0xadead1=_0x63d305[_0x2e9521(0x1bb)](_0x26865b,_0x2312d4);const _0x589483=_0x2312d4+_0x12df37+_0x5b03e3+_0x47112c;_0x266b1e=_0x63d305[_0x2e9521(0x1bb)](_0x589483,_0x58609f);break;}if(_0xee69f0[_0x2e9521(0x1a2)](_0x419a31,ID_CLUSTER))break;if(_0xee69f0['JNGWB'](isUnknownSize,_0x47112c,_0x5b03e3))break;_0x2312d4+=_0xee69f0['VhxXA'](_0xee69f0[_0x2e9521(0x1b3)](_0x12df37,_0x5b03e3),_0x47112c);}!_0x4d4209&&(_0x266b1e=_0x63d305['slice'](_0x26865b,_0x58609f));let _0x4ef25c=_0x418aa2;_0x2312d4=_0x26865b;while(_0x2312d4<_0x58609f){const [_0x27eb22,_0xd2e24d]=_0xee69f0[_0x2e9521(0x19f)](readId,_0x63d305,_0x2312d4),[_0xf40855,_0x337f52]=readVint(_0x63d305,_0x2312d4+_0xd2e24d);if(_0x27eb22===ID_SIMPLE_BLOCK&&_0xf40855>=0x4){const _0x331bf3=_0xee69f0['pWyAS'](_0x2312d4+_0xd2e24d,_0x337f52),[,_0x352d80]=_0xee69f0['GsYWv'](readVint,_0x63d305,_0x331bf3),_0xf11a0e=_0x63d305['readInt16BE'](_0x331bf3+_0x352d80),_0xb94e99=_0xee69f0['KZmSx'](_0x418aa2,_0xf11a0e);if(_0xb94e99>_0x4ef25c)_0x4ef25c=_0xb94e99;}if(_0xee69f0['iTJpw'](_0x27eb22,ID_CLUSTER))break;if(_0xee69f0[_0x2e9521(0x1b5)](isUnknownSize,_0xf40855,_0x337f52))break;_0x2312d4+=_0xee69f0['VhxXA'](_0xd2e24d+_0x337f52,_0xf40855);}_0x8659c7[_0x2e9521(0x1b2)]({'timestamp':_0x418aa2,'maxTicks':_0x4ef25c,'bodyBeforeTimestamp':_0xadead1,'bodyAfterTimestamp':_0x266b1e,'timestampElementSize':_0x410cca}),_0x2795d1=_0x58609f;}return _0x8659c7;}function parseWebm(_0x849642){const _0x208eb9=_0x2947,_0x52d870={'hnwkc':function(_0x2be513,_0x45d3ac){return _0x2be513+_0x45d3ac;},'CDJej':function(_0x52042c,_0x97b2f9){return _0x52042c!==_0x97b2f9;},'DCYdr':function(_0x8a2305,_0x218bf6){return _0x8a2305+_0x218bf6;},'qrQHJ':function(_0x3a59f1,_0x43991b,_0x1ab741){return _0x3a59f1(_0x43991b,_0x1ab741);},'uuWkN':function(_0x36ebd2,_0x27b82f){return _0x36ebd2>_0x27b82f;}};let _0xb67a4c=0x0;const [,_0x3cf054]=readId(_0x849642,_0xb67a4c),[_0x411569,_0x2b068a]=readVint(_0x849642,_0xb67a4c+_0x3cf054);_0xb67a4c+=_0x52d870['hnwkc'](_0x3cf054+_0x2b068a,_0x411569);const [_0x41b41b,_0x4ef774]=readId(_0x849642,_0xb67a4c);if(_0x52d870[_0x208eb9(0x1ae)](_0x41b41b,ID_SEGMENT))return null;const [,_0x351681]=readVint(_0x849642,_0xb67a4c+_0x4ef774),_0x6dbad7=_0x52d870['DCYdr'](_0xb67a4c+_0x4ef774,_0x351681),_0x30a0d7=findTimestampScale(_0x849642,_0x6dbad7),_0x11783e=findFirstClusterOffset(_0x849642,_0x6dbad7),_0x5ea89f=_0x849642['slice'](0x0,_0x11783e),_0x3d9526=_0x52d870['qrQHJ'](extractClusters,_0x849642,_0x30a0d7);let _0x28cd0f=0x0;for(const _0x517b96 of _0x3d9526){if(_0x52d870[_0x208eb9(0x1ac)](_0x517b96[_0x208eb9(0x1cb)],_0x28cd0f))_0x28cd0f=_0x517b96[_0x208eb9(0x1cb)];}return{'header':_0x5ea89f,'clusters':_0x3d9526,'timestampScale':_0x30a0d7,'maxTimestampTicks':_0x28cd0f};}function buildCluster(_0x3cb913,_0x1e09db,_0x4faa06){const _0x377224=_0x2947,_0x1ac377={'VyRdF':function(_0x465e82,_0x599e07){return _0x465e82(_0x599e07);}},_0x41286d=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0x47de76=Math[_0x377224(0x1aa)](0x4,uintSize(_0x3cb913)),_0x5311d7=Buffer[_0x377224(0x1d5)]([Buffer['from']([ID_TIMESTAMP]),_0x1ac377[_0x377224(0x195)](writeVint,_0x47de76),writeUint(_0x3cb913,_0x47de76)]),_0x23139f=Buffer['concat']([_0x1e09db,_0x5311d7,_0x4faa06]),_0x4ca722=writeVint(_0x23139f['length']);return Buffer['concat']([_0x41286d,_0x4ca722,_0x23139f]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x546453){const _0x5d7721=_0x2947,_0x318e03={'JNlJS':function(_0x3178fe,_0x4a1c4a,_0x3808ec){return _0x3178fe(_0x4a1c4a,_0x3808ec);},'KWsmG':function(_0x45506e,_0x42a8ad){return _0x45506e+_0x42a8ad;},'sveoT':function(_0x32969f,_0x50b2df){return _0x32969f+_0x50b2df;},'hXJIL':function(_0x3e5b0b,_0x34313b){return _0x3e5b0b<_0x34313b;},'gsVUT':function(_0x4f9b4f,_0x5dea40){return _0x4f9b4f===_0x5dea40;},'IPxmx':function(_0x38affc,_0x2dba6a,_0x4c12e9){return _0x38affc(_0x2dba6a,_0x4c12e9);},'TCKZb':function(_0x34df25,_0xd450b9,_0x15dbf0){return _0x34df25(_0xd450b9,_0x15dbf0);},'qFIVf':function(_0x1ed0e3,_0x1a15c4,_0x104031){return _0x1ed0e3(_0x1a15c4,_0x104031);},'FAOyI':function(_0x2862ae,_0x4b4b0e){return _0x2862ae+_0x4b4b0e;}},_0x3d1e1b=Buffer['from'](_0x546453);let _0x2195ba=0x0;const [,_0xe295dc]=_0x318e03[_0x5d7721(0x1b7)](readId,_0x3d1e1b,_0x2195ba),[_0x7b2450,_0x59cdfb]=_0x318e03['JNlJS'](readVint,_0x3d1e1b,_0x2195ba+_0xe295dc),_0x8146fd=_0x318e03[_0x5d7721(0x1ca)](_0x318e03['sveoT'](_0x2195ba,_0xe295dc),_0x59cdfb)+_0x7b2450,[,_0x39b44c]=readId(_0x3d1e1b,_0x8146fd),[,_0x1045f9]=readVint(_0x3d1e1b,_0x8146fd+_0x39b44c),_0x389d04=_0x318e03[_0x5d7721(0x1ca)](_0x8146fd,_0x39b44c)+_0x1045f9,_0x200020=writeUnknownSizeVint(_0x1045f9);_0x200020[_0x5d7721(0x198)](_0x3d1e1b,_0x318e03['sveoT'](_0x8146fd,_0x39b44c));let _0x58910f=_0x389d04;const _0x1a5d58=Math['min'](_0x3d1e1b[_0x5d7721(0x1d1)],_0x389d04+0x2710);while(_0x318e03['hXJIL'](_0x58910f,_0x1a5d58)){const [_0xecced7,_0x3c3340]=readId(_0x3d1e1b,_0x58910f),[_0x53ea47,_0x69c3db]=readVint(_0x3d1e1b,_0x58910f+_0x3c3340);if(_0x318e03['gsVUT'](_0xecced7,ID_CLUSTER))break;if(_0x318e03['IPxmx'](isUnknownSize,_0x53ea47,_0x69c3db))break;if(_0xecced7===ID_INFO){const _0x1e0411=_0x318e03['sveoT'](_0x318e03[_0x5d7721(0x1c0)](_0x58910f,_0x3c3340),_0x69c3db),_0x540ba2=_0x318e03['sveoT'](_0x1e0411,_0x53ea47),_0x376c3a=[];let _0x1ac9ad=_0x1e0411;while(_0x318e03[_0x5d7721(0x1d8)](_0x1ac9ad,_0x540ba2)){const [_0x3ba75b,_0x3cacf4]=_0x318e03['TCKZb'](readId,_0x3d1e1b,_0x1ac9ad),[_0x23cff0,_0x38d553]=_0x318e03['qFIVf'](readVint,_0x3d1e1b,_0x1ac9ad+_0x3cacf4),_0x5157d7=_0x3cacf4+_0x38d553+_0x23cff0;_0x3ba75b!==ID_DURATION&&_0x376c3a['push'](_0x3d1e1b['slice'](_0x1ac9ad,_0x318e03[_0x5d7721(0x1c4)](_0x1ac9ad,_0x5157d7))),_0x1ac9ad+=_0x5157d7;}const _0x523184=Buffer[_0x5d7721(0x1d5)](_0x376c3a),_0x3243ed=Buffer['concat']([_0x3d1e1b[_0x5d7721(0x1bb)](_0x58910f,_0x318e03[_0x5d7721(0x1c0)](_0x58910f,_0x3c3340)),_0x318e03[_0x5d7721(0x19d)](writeVint,_0x523184['length'],_0x69c3db)]);return Buffer[_0x5d7721(0x1d5)]([_0x3d1e1b['slice'](0x0,_0x58910f),_0x3243ed,_0x523184,_0x3d1e1b['slice'](_0x540ba2)]);}_0x58910f+=_0x318e03['FAOyI'](_0x3c3340,_0x69c3db)+_0x53ea47;}return _0x3d1e1b;}export function stitchWebmFiles(_0xc455eb,_0x42bcdd){const _0x182b7e=_0x2947,_0x54c739={'NzVjq':function(_0x1b51df,_0x3c0a90){return _0x1b51df<=_0x3c0a90;},'oWFvR':function(_0x49ea3c,_0x5ec137){return _0x49ea3c(_0x5ec137);},'gYwTF':function(_0x1df098,_0x12dfe8){return _0x1df098(_0x12dfe8);}};if(_0x54c739[_0x182b7e(0x19b)](_0xc455eb[_0x182b7e(0x1d1)],0x1))return![];const _0x3cd25e=[];for(const _0x7bb604 of _0xc455eb){const _0x51beaa=_0x54c739[_0x182b7e(0x1b8)](readFileSync,_0x7bb604),_0x3ac6ee=_0x54c739[_0x182b7e(0x1b8)](parseWebm,_0x51beaa);if(!_0x3ac6ee||_0x3ac6ee['clusters']['length']===0x0)return![];_0x3cd25e[_0x182b7e(0x1b2)](_0x3ac6ee);}const _0x4b6c64=_0x3cd25e[0x0],_0x350829=_0x54c739[_0x182b7e(0x1ce)](rebuildHeaderWithoutDuration,_0x4b6c64[_0x182b7e(0x1b4)]),_0x4ee151=[_0x350829];let _0x6e795b=0x0;for(let _0x9bcd62=0x0;_0x9bcd62<_0x3cd25e[_0x182b7e(0x1d1)];_0x9bcd62++){const _0x192bb1=_0x3cd25e[_0x9bcd62];for(const _0x29bf33 of _0x192bb1[_0x182b7e(0x1c6)]){const _0x22a4df=_0x29bf33[_0x182b7e(0x1dc)]+_0x6e795b;_0x4ee151[_0x182b7e(0x1b2)](buildCluster(_0x22a4df,_0x29bf33[_0x182b7e(0x1ab)],_0x29bf33['bodyAfterTimestamp']));}const _0x51ef13=0x1e;_0x6e795b+=_0x192bb1[_0x182b7e(0x1c9)]+_0x51ef13;}return writeFileSync(_0x42bcdd,Buffer[_0x182b7e(0x1d5)](_0x4ee151)),!![];}if(process['argv'][0x1]?.[_0x404970(0x194)]('stitchWebmFiles.ts')||process[_0x404970(0x1a7)][0x1]?.['endsWith']('stitchWebmFiles.js')){const args=process['argv']['slice'](0x2);args[_0x404970(0x1d1)]<0x3&&(console['error'](_0x404970(0x1a5)),process[_0x404970(0x1af)](0x1));const output=args[args['length']-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console['log'](_0x404970(0x1a3)+inputs['length']+_0x404970(0x1bc)+output):console[_0x404970(0x19a)](_0x404970(0x1d7));}
@@ -1 +1 @@
1
- const _0xee0225=_0xf479;(function(_0x766570,_0x46512e){const _0x5b09e3=_0xf479,_0x13bd31=_0x766570();while(!![]){try{const _0xae7cc9=parseInt(_0x5b09e3(0x191))/0x1*(parseInt(_0x5b09e3(0x189))/0x2)+parseInt(_0x5b09e3(0x192))/0x3*(parseInt(_0x5b09e3(0x194))/0x4)+-parseInt(_0x5b09e3(0x1b5))/0x5*(-parseInt(_0x5b09e3(0x1ba))/0x6)+parseInt(_0x5b09e3(0x1af))/0x7+parseInt(_0x5b09e3(0x1bc))/0x8+-parseInt(_0x5b09e3(0x199))/0x9*(-parseInt(_0x5b09e3(0x1b2))/0xa)+-parseInt(_0x5b09e3(0x176))/0xb*(parseInt(_0x5b09e3(0x180))/0xc);if(_0xae7cc9===_0x46512e)break;else _0x13bd31['push'](_0x13bd31['shift']());}catch(_0x25e8a3){_0x13bd31['push'](_0x13bd31['shift']());}}}(_0x59fd,0xa8dc7));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 _0x4babb6=_0xf479,_0x1774fc={'Thxzn':function(_0x46c607,_0x4afcab,_0x4677a5){return _0x46c607(_0x4afcab,_0x4677a5);},'cwmal':function(_0x2c803f,_0x2059c8,_0x47a9b8){return _0x2c803f(_0x2059c8,_0x47a9b8);},'rDTGp':function(_0x3194bb,_0x4c45fc){return _0x3194bb(_0x4c45fc);},'HjcHL':function(_0x1698ce){return _0x1698ce();},'PmUQm':function(_0x1a93da,_0x555ec2,_0x36223b){return _0x1a93da(_0x555ec2,_0x36223b);}};if(cachedDeviceId)return cachedDeviceId;try{const _0x5c5329=_0x1774fc[_0x4babb6(0x187)](join,homedir(),'.ranger'),_0x5380cd=_0x1774fc[_0x4babb6(0x1ab)](join,_0x5c5329,_0x4babb6(0x177));if(_0x1774fc[_0x4babb6(0x1a4)](existsSync,_0x5380cd)){cachedDeviceId=readFileSync(_0x5380cd,_0x4babb6(0x169))[_0x4babb6(0x16f)]();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=_0x1774fc['HjcHL'](randomUUID),_0x1774fc['PmUQm'](mkdirSync,_0x5c5329,{'recursive':!![]}),writeFileSync(_0x5380cd,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=randomUUID(),cachedDeviceId;}}function _0x59fd(){const _0x3a6d65=['\x20event(s)\x20to\x20','trackCommandError','commandId','dJfnZ','phase','jxHXp','deviceId','lVCRv','kYUAS','phase_end','rDTGp','XfNbP','trackPhaseEnd','isTty','name','MhCPa','XaSrg','cwmal','qaoVU','length','phaseCounter','329140ijLXSP','finally','GITHUB_ACTIONS','69340UYSlxT','mHbAq','get','5408990gnOGCk','trackCommandStart','phaseIndex','outcome','stringify','6kJTSYx','durationMs','4534656gcVOpC','env','signal','slice','nodeVersion','cwd','utf-8','metadata','jlnQA','flush','cliVersion','evaluation','trim','command_error','sRKDX','buffer','set','setContext','errorMessage','39138913eEyYNK','.session','isCI','vqMDh','splice','sendImmediate','phaseStartTimes','checklistItemId','FVmHl','transport','12bGNAeP','flushing','Authorization','catch','command_start','phase_start','error','Thxzn','browserSessionId','9886qNRbDP','constructor','now','commandStartTime','command_end','delete','push','sendBatch','145xxHKzu','195xndwgD','buildEvent','58876WdrNFQ','featureId','isTTY','platform','Bearer\x20','1143ANAlvc'];_0x59fd=function(){return _0x3a6d65;};return _0x59fd();}export class TelemetryCollector{['buffer']=[];[_0xee0225(0x19c)];['command'];[_0xee0225(0x18c)];['phaseCounter']=0x0;['phaseStartTimes']=new Map();['flushing']=null;[_0xee0225(0x1a0)];[_0xee0225(0x16d)];[_0xee0225(0x1c0)];[_0xee0225(0x197)];['isTty'];['isCI'];[_0xee0225(0x195)];['checklistItemId'];[_0xee0225(0x188)];[_0xee0225(0x17f)];constructor(_0x2d42d5){const _0x4eaf61=_0xee0225,_0x49eb61={'kYUAS':function(_0x5b43c5){return _0x5b43c5();}},_0x451bfe='5|6|8|1|4|2|3|0|7'['split']('|');let _0x120c6f=0x0;while(!![]){switch(_0x451bfe[_0x120c6f++]){case'0':this[_0x4eaf61(0x1a7)]=process['stdout'][_0x4eaf61(0x196)]??![];continue;case'1':this[_0x4eaf61(0x1a0)]=_0x49eb61[_0x4eaf61(0x1a2)](getDeviceId);continue;case'2':this[_0x4eaf61(0x1c0)]=process['version'];continue;case'3':this['platform']=process[_0x4eaf61(0x197)];continue;case'4':this['cliVersion']=_0x49eb61[_0x4eaf61(0x1a2)](getCurrentVersion);continue;case'5':this['commandId']=randomUUID();continue;case'6':this['command']=_0x2d42d5;continue;case'7':this[_0x4eaf61(0x178)]=!!(process['env']['CI']||process[_0x4eaf61(0x1bd)][_0x4eaf61(0x1b1)]);continue;case'8':this[_0x4eaf61(0x18c)]=Date['now']();continue;}break;}}[_0xee0225(0x174)](_0x6c7ab7){const _0x23df63=_0xee0225;if(_0x6c7ab7[_0x23df63(0x195)])this[_0x23df63(0x195)]=_0x6c7ab7[_0x23df63(0x195)];if(_0x6c7ab7[_0x23df63(0x17d)])this[_0x23df63(0x17d)]=_0x6c7ab7[_0x23df63(0x17d)];if(_0x6c7ab7[_0x23df63(0x188)])this[_0x23df63(0x188)]=_0x6c7ab7[_0x23df63(0x188)];if(_0x6c7ab7['transport'])this[_0x23df63(0x17f)]=_0x6c7ab7[_0x23df63(0x17f)];}async[_0xee0225(0x1b6)](_0x18f23b){const _0x418466=_0xee0225,_0x235d47={'XaSrg':_0x418466(0x184)},_0x110e74=this[_0x418466(0x193)]({'eventType':_0x235d47[_0x418466(0x1aa)],'metadata':_0x18f23b});await this['sendImmediate'](_0x110e74);}async['trackCommandEnd'](_0x10f018,_0x315a52){const _0xc847c3=_0xee0225,_0x1e7dcb={'ngOrn':function(_0x59ba43,_0x12eade){return _0x59ba43-_0x12eade;}},_0xeacd08=this['buildEvent']({'eventType':_0xc847c3(0x18d),'outcome':_0x10f018,'durationMs':_0x1e7dcb['ngOrn'](Date[_0xc847c3(0x18b)](),this['commandStartTime']),'metadata':_0x315a52});await this[_0xc847c3(0x17b)](_0xeacd08),await this[_0xc847c3(0x16c)]();}async[_0xee0225(0x19b)](_0x3c1dc6,_0x1dbdde){const _0x4ec9a8=_0xee0225,_0x542b23={'MhCPa':function(_0x2f06b0,_0x149bbe){return _0x2f06b0 instanceof _0x149bbe;},'lVCRv':function(_0x4fffa1,_0x465810){return _0x4fffa1-_0x465810;}},_0x3f2a30=this['buildEvent']({'eventType':_0x4ec9a8(0x170),'errorMessage':truncate(_0x542b23[_0x4ec9a8(0x1a9)](_0x3c1dc6,Error)?_0x3c1dc6['message']:String(_0x3c1dc6),0x1f4),'errorType':_0x542b23['MhCPa'](_0x3c1dc6,Error)?_0x3c1dc6['constructor'][_0x4ec9a8(0x1a8)]:'Unknown','durationMs':_0x542b23[_0x4ec9a8(0x1a1)](Date[_0x4ec9a8(0x18b)](),this['commandStartTime']),'metadata':_0x1dbdde});await this['sendImmediate'](_0x3f2a30),await this['flush']();}['trackPhaseStart'](_0x41e461,_0x3961c3){const _0x23a90c=_0xee0225,_0x102e57={'vqMDh':_0x23a90c(0x185)};this[_0x23a90c(0x1ae)]++,this['phaseStartTimes'][_0x23a90c(0x173)](_0x41e461,Date['now']());const _0x9b65fd=this['buildEvent']({'eventType':_0x102e57[_0x23a90c(0x179)],'phase':_0x41e461,'phaseIndex':this['phaseCounter'],'metadata':_0x3961c3});this[_0x23a90c(0x172)][_0x23a90c(0x18f)](_0x9b65fd);}[_0xee0225(0x1a6)](_0x68e76d,_0x2493b5){const _0x39ce4a=_0xee0225,_0x431267={'AMOhG':_0x39ce4a(0x1a3),'FVmHl':function(_0x26c16a,_0xee0655){return _0x26c16a>=_0xee0655;}},_0x2e800e=this[_0x39ce4a(0x17c)]['get'](_0x68e76d),_0xb6a696=_0x2e800e?Date[_0x39ce4a(0x18b)]()-_0x2e800e:undefined;this['phaseStartTimes'][_0x39ce4a(0x18e)](_0x68e76d);const _0x1fcfee=this[_0x39ce4a(0x193)]({'eventType':_0x431267['AMOhG'],'phase':_0x68e76d,'durationMs':_0xb6a696,'metadata':_0x2493b5});this[_0x39ce4a(0x172)][_0x39ce4a(0x18f)](_0x1fcfee),_0x431267[_0x39ce4a(0x17e)](this['buffer'][_0x39ce4a(0x1ad)],0xa)&&this['flushAsync']();}async['trackPhaseError'](_0x1e3952,_0x361e5c,_0x3a69d6){const _0x436882=_0xee0225,_0x323c76={'AViUV':function(_0x555686,_0xac1905){return _0x555686-_0xac1905;},'WeelQ':function(_0x41d5c7,_0x5b8209,_0x325ce3){return _0x41d5c7(_0x5b8209,_0x325ce3);},'jlnQA':function(_0xb0f151,_0x4bbd8e){return _0xb0f151(_0x4bbd8e);},'dJfnZ':function(_0x3d720a,_0x24635d){return _0x3d720a instanceof _0x24635d;},'jxHXp':'Unknown'},_0x2a22fd=this[_0x436882(0x17c)][_0x436882(0x1b4)](_0x1e3952),_0x167a4f=_0x2a22fd?_0x323c76['AViUV'](Date['now'](),_0x2a22fd):undefined;this[_0x436882(0x17c)][_0x436882(0x18e)](_0x1e3952);const _0x20e4c5=this['buildEvent']({'eventType':'phase_error','phase':_0x1e3952,'durationMs':_0x167a4f,'errorMessage':_0x323c76['WeelQ'](truncate,_0x361e5c instanceof Error?_0x361e5c['message']:_0x323c76[_0x436882(0x16b)](String,_0x361e5c),0x1f4),'errorType':_0x323c76[_0x436882(0x19d)](_0x361e5c,Error)?_0x361e5c[_0x436882(0x18a)][_0x436882(0x1a8)]:_0x323c76[_0x436882(0x19f)],'metadata':_0x3a69d6});await this[_0x436882(0x17b)](_0x20e4c5);}async['flush'](){const _0x1bd3b9=_0xee0225;if(this['buffer'][_0x1bd3b9(0x1ad)]===0x0)return;const _0x5f0e56=this[_0x1bd3b9(0x172)][_0x1bd3b9(0x17a)](0x0);try{await this[_0x1bd3b9(0x190)](_0x5f0e56);}catch{}}['buildEvent'](_0x29de7f){const _0xe49210=_0xee0225;return{'eventType':_0x29de7f['eventType'],'command':this['command'],'commandId':this['commandId'],'deviceId':this['deviceId'],'timestamp':new Date()['toISOString'](),'durationMs':_0x29de7f[_0xe49210(0x1bb)],'phase':_0x29de7f[_0xe49210(0x19e)],'phaseIndex':_0x29de7f[_0xe49210(0x1b7)],'outcome':_0x29de7f[_0xe49210(0x1b8)],'errorMessage':_0x29de7f[_0xe49210(0x175)],'errorType':_0x29de7f['errorType'],'featureId':this['featureId'],'checklistItemId':this['checklistItemId'],'browserSessionId':this[_0xe49210(0x188)],'transport':this[_0xe49210(0x17f)],'evaluation':_0x29de7f[_0xe49210(0x16e)],'cliVersion':this['cliVersion'],'nodeVersion':this['nodeVersion'],'platform':this[_0xe49210(0x197)],'cwd':process[_0xe49210(0x1c1)](),'isTty':this[_0xe49210(0x1a7)],'isCI':this['isCI'],'metadata':_0x29de7f[_0xe49210(0x16a)]};}async['sendImmediate'](_0x20fd37){try{await this['sendBatch']([_0x20fd37]);}catch{}}['flushAsync'](){const _0x3a329e=_0xee0225;if(this[_0x3a329e(0x181)])return;this[_0x3a329e(0x181)]=this[_0x3a329e(0x16c)]()[_0x3a329e(0x1b0)](()=>{this['flushing']=null;});}async[_0xee0225(0x190)](_0x2f2a57){const _0x1cc50a=_0xee0225,_0x4e447b={'NmltO':function(_0x22d966){return _0x22d966();},'sRKDX':function(_0x14ea55){return _0x14ea55();},'mHbAq':_0x1cc50a(0x182),'pHAfT':function(_0x52929c,_0x203717){return _0x52929c(_0x203717);}},_0x5256ca=await _0x4e447b['NmltO'](getToken)[_0x1cc50a(0x183)](()=>null),_0x4e0f51=_0x4e447b[_0x1cc50a(0x171)](getApiBaseUrl),_0x26eb9b={'Content-Type':'application/json'};_0x5256ca&&(_0x26eb9b[_0x4e447b[_0x1cc50a(0x1b3)]]=_0x1cc50a(0x198)+_0x5256ca);const _0x5a9fdd={'events':_0x2f2a57};process[_0x1cc50a(0x1bd)]['DEBUG']&&console[_0x1cc50a(0x186)]('[telemetry]\x20Sending\x20'+_0x2f2a57[_0x1cc50a(0x1ad)]+_0x1cc50a(0x19a)+_0x4e0f51+'/api/v1/mcp/cli-telemetry');const _0x2d0a13=new AbortController(),_0x2889c5=setTimeout(()=>_0x2d0a13['abort'](),0x1388);try{await fetch(_0x4e0f51+'/api/v1/mcp/cli-telemetry',{'method':'POST','headers':_0x26eb9b,'body':JSON[_0x1cc50a(0x1b9)](_0x5a9fdd),'signal':_0x2d0a13[_0x1cc50a(0x1be)]});}finally{_0x4e447b['pHAfT'](clearTimeout,_0x2889c5);}}}let currentCollector=null;function _0xf479(_0xaed963,_0x2db445){_0xaed963=_0xaed963-0x169;const _0x59fdb1=_0x59fd();let _0xf4799d=_0x59fdb1[_0xaed963];return _0xf4799d;}export function createTelemetryCollector(_0x20f45b){return currentCollector=new TelemetryCollector(_0x20f45b),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0x524d95,_0xa9f057,_0x3f5774){const _0x36db84=createTelemetryCollector(_0x524d95);await _0x36db84['trackCommandStart'](_0x3f5774);try{const _0x478269=await _0xa9f057(_0x36db84);return await _0x36db84['trackCommandEnd']('success'),_0x478269;}catch(_0xa6a824){await _0x36db84['trackCommandError'](_0xa6a824);throw _0xa6a824;}finally{await _0x36db84['flush']();}}function truncate(_0x4abce7,_0x11c84e){const _0x513e5e=_0xee0225,_0xa9b6c2={'LoCUO':function(_0x497ac6,_0x49b7ee){return _0x497ac6>_0x49b7ee;},'XfNbP':function(_0x2faae8,_0x5eab7d){return _0x2faae8+_0x5eab7d;},'qaoVU':'...'};return _0xa9b6c2['LoCUO'](_0x4abce7[_0x513e5e(0x1ad)],_0x11c84e)?_0xa9b6c2[_0x513e5e(0x1a5)](_0x4abce7[_0x513e5e(0x1bf)](0x0,_0x11c84e),_0xa9b6c2[_0x513e5e(0x1ac)]):_0x4abce7;}
1
+ const _0x31ec93=_0x4ba5;(function(_0x8a838,_0x6e5945){const _0x2a1e48=_0x4ba5,_0x205c20=_0x8a838();while(!![]){try{const _0xed27fb=parseInt(_0x2a1e48(0xaf))/0x1*(-parseInt(_0x2a1e48(0xb1))/0x2)+parseInt(_0x2a1e48(0x9a))/0x3*(-parseInt(_0x2a1e48(0xaa))/0x4)+-parseInt(_0x2a1e48(0x98))/0x5+-parseInt(_0x2a1e48(0xbf))/0x6*(-parseInt(_0x2a1e48(0x93))/0x7)+-parseInt(_0x2a1e48(0xc0))/0x8+-parseInt(_0x2a1e48(0x87))/0x9*(-parseInt(_0x2a1e48(0xb8))/0xa)+-parseInt(_0x2a1e48(0xb4))/0xb*(-parseInt(_0x2a1e48(0x7d))/0xc);if(_0xed27fb===_0x6e5945)break;else _0x205c20['push'](_0x205c20['shift']());}catch(_0x178457){_0x205c20['push'](_0x205c20['shift']());}}}(_0x2862,0xca7ab));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 _0x2862(){const _0x2f8579=['12fRMzDE','constructor','buildEvent','durationMs','\x20event(s)\x20to\x20','162443PrpIaw','commandStartTime','20cVosLo','phase','DEBUG','50252983XXTRfF','isTTY','kxePl','phaseIndex','27270eJsIyQ','stdout','slice','YNNAN','length','phase_start','bKulB','9774534dVcVKp','12587904VFxYRU','QTuVM','.ranger','errorType','isCI','trackPhaseEnd','trackPhaseStart','name','...','message','utf-8','get','flush','stkbS','tmIXJ','12kqNyFw','phaseCounter','trackCommandStart','buffer','catch','commandId','browserSessionId','CsWEh','trackCommandError','command_error','1017AyrJQU','nodeVersion','transport','xZARx','phaseStartTimes','GITHUB_ACTIONS','checklistItemId','push','trackPhaseError','env','now','flushing','7ZogdwG','command_start','deviceId','cuhuL','sendBatch','7373430BqwOuV','trackCommandEnd','1003734UstpZX','IiNdJ','finally','flushAsync','featureId','phase_error','ClAsL','platform','isTty','command_end','application/json','Authorization','signal','ihYxv','/api/v1/mcp/cli-telemetry','command'];_0x2862=function(){return _0x2f8579;};return _0x2862();}import{getCurrentVersion}from'./version.js';let cachedDeviceId=null;function getDeviceId(){const _0x11b134=_0x4ba5,_0x3fd60d={'OnOxn':'.session','ihYxv':function(_0x2a191b,_0x1ea893,_0x3343d6){return _0x2a191b(_0x1ea893,_0x3343d6);},'xZARx':function(_0x17bd92,_0x48e9ff,_0x11aac6){return _0x17bd92(_0x48e9ff,_0x11aac6);}};if(cachedDeviceId)return cachedDeviceId;try{const _0x58a4d9=join(homedir(),_0x11b134(0xc2)),_0x117c77=join(_0x58a4d9,_0x3fd60d['OnOxn']);if(existsSync(_0x117c77)){cachedDeviceId=_0x3fd60d[_0x11b134(0xa7)](readFileSync,_0x117c77,_0x11b134(0x78))['trim']();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=randomUUID(),_0x3fd60d[_0x11b134(0xa7)](mkdirSync,_0x58a4d9,{'recursive':!![]}),_0x3fd60d[_0x11b134(0x8a)](writeFileSync,_0x117c77,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=randomUUID(),cachedDeviceId;}}export class TelemetryCollector{[_0x31ec93(0x80)]=[];[_0x31ec93(0x82)];[_0x31ec93(0xa9)];[_0x31ec93(0xb0)];[_0x31ec93(0x7e)]=0x0;[_0x31ec93(0x8b)]=new Map();['flushing']=null;[_0x31ec93(0x95)];['cliVersion'];[_0x31ec93(0x88)];[_0x31ec93(0xa1)];[_0x31ec93(0xa2)];['isCI'];[_0x31ec93(0x9e)];['checklistItemId'];['browserSessionId'];[_0x31ec93(0x89)];constructor(_0x4ed8d7){const _0x3aef49=_0x31ec93;this['commandId']=randomUUID(),this['command']=_0x4ed8d7,this[_0x3aef49(0xb0)]=Date['now'](),this['deviceId']=getDeviceId(),this['cliVersion']=getCurrentVersion(),this[_0x3aef49(0x88)]=process['version'],this['platform']=process[_0x3aef49(0xa1)],this[_0x3aef49(0xa2)]=process[_0x3aef49(0xb9)][_0x3aef49(0xb5)]??![],this['isCI']=!!(process[_0x3aef49(0x90)]['CI']||process[_0x3aef49(0x90)][_0x3aef49(0x8c)]);}['setContext'](_0x20517f){const _0x3ec450=_0x31ec93;if(_0x20517f[_0x3ec450(0x9e)])this['featureId']=_0x20517f['featureId'];if(_0x20517f['checklistItemId'])this['checklistItemId']=_0x20517f[_0x3ec450(0x8d)];if(_0x20517f[_0x3ec450(0x83)])this['browserSessionId']=_0x20517f['browserSessionId'];if(_0x20517f['transport'])this[_0x3ec450(0x89)]=_0x20517f[_0x3ec450(0x89)];}async['trackCommandStart'](_0x312156){const _0x4b0baa=_0x31ec93,_0x2406c7={'CsWEh':_0x4b0baa(0x94)},_0x5ec0c1=this['buildEvent']({'eventType':_0x2406c7[_0x4b0baa(0x84)],'metadata':_0x312156});await this['sendImmediate'](_0x5ec0c1);}async[_0x31ec93(0x99)](_0x125fb2,_0x58c66a){const _0xda1ec8=_0x31ec93,_0x1cf573={'gseKy':_0xda1ec8(0xa3)},_0x4c5faa=this['buildEvent']({'eventType':_0x1cf573['gseKy'],'outcome':_0x125fb2,'durationMs':Date[_0xda1ec8(0x91)]()-this['commandStartTime'],'metadata':_0x58c66a});await this['sendImmediate'](_0x4c5faa),await this[_0xda1ec8(0x7a)]();}async[_0x31ec93(0x85)](_0x3d0faa,_0x1d6bb6){const _0x2c6923=_0x31ec93,_0x18d912={'ClAsL':_0x2c6923(0x86),'KlxLT':function(_0x1aaa60,_0x10e9b8,_0x247c0d){return _0x1aaa60(_0x10e9b8,_0x247c0d);},'YNNAN':function(_0x2d0464,_0x5e1fc5){return _0x2d0464 instanceof _0x5e1fc5;},'tmIXJ':'Unknown','ETchH':function(_0x36de6d,_0x2560ec){return _0x36de6d-_0x2560ec;}},_0x21e5c9=this[_0x2c6923(0xac)]({'eventType':_0x18d912[_0x2c6923(0xa0)],'errorMessage':_0x18d912['KlxLT'](truncate,_0x3d0faa instanceof Error?_0x3d0faa[_0x2c6923(0x77)]:String(_0x3d0faa),0x1f4),'errorType':_0x18d912[_0x2c6923(0xbb)](_0x3d0faa,Error)?_0x3d0faa[_0x2c6923(0xab)][_0x2c6923(0x75)]:_0x18d912[_0x2c6923(0x7c)],'durationMs':_0x18d912['ETchH'](Date[_0x2c6923(0x91)](),this[_0x2c6923(0xb0)]),'metadata':_0x1d6bb6});await this['sendImmediate'](_0x21e5c9),await this['flush']();}[_0x31ec93(0x74)](_0x1eb30f,_0x54a7c0){const _0x3970db=_0x31ec93,_0x196422={'stkbS':_0x3970db(0xbd)};this['phaseCounter']++,this['phaseStartTimes']['set'](_0x1eb30f,Date['now']());const _0x2faf8d=this[_0x3970db(0xac)]({'eventType':_0x196422[_0x3970db(0x7b)],'phase':_0x1eb30f,'phaseIndex':this[_0x3970db(0x7e)],'metadata':_0x54a7c0});this[_0x3970db(0x80)][_0x3970db(0x8e)](_0x2faf8d);}[_0x31ec93(0x73)](_0x1df5db,_0x1ad535){const _0x15a452=_0x31ec93,_0x5f57e3=this[_0x15a452(0x8b)][_0x15a452(0x79)](_0x1df5db),_0x104b01=_0x5f57e3?Date['now']()-_0x5f57e3:undefined;this['phaseStartTimes']['delete'](_0x1df5db);const _0x500eea=this[_0x15a452(0xac)]({'eventType':'phase_end','phase':_0x1df5db,'durationMs':_0x104b01,'metadata':_0x1ad535});this[_0x15a452(0x80)]['push'](_0x500eea),this['buffer'][_0x15a452(0xbc)]>=0xa&&this[_0x15a452(0x9d)]();}async[_0x31ec93(0x8f)](_0x172f12,_0x4ed87c,_0x560847){const _0x2902b9=_0x31ec93,_0x29999d={'bcGmW':function(_0x4d2a73,_0x5e1b06){return _0x4d2a73-_0x5e1b06;},'pagTU':function(_0x15317b,_0x29f330){return _0x15317b(_0x29f330);},'cuhuL':'Unknown'},_0x52955c=this[_0x2902b9(0x8b)][_0x2902b9(0x79)](_0x172f12),_0x3774ec=_0x52955c?_0x29999d['bcGmW'](Date['now'](),_0x52955c):undefined;this['phaseStartTimes']['delete'](_0x172f12);const _0x4dec73=this[_0x2902b9(0xac)]({'eventType':_0x2902b9(0x9f),'phase':_0x172f12,'durationMs':_0x3774ec,'errorMessage':truncate(_0x4ed87c instanceof Error?_0x4ed87c['message']:_0x29999d['pagTU'](String,_0x4ed87c),0x1f4),'errorType':_0x4ed87c instanceof Error?_0x4ed87c[_0x2902b9(0xab)][_0x2902b9(0x75)]:_0x29999d[_0x2902b9(0x96)],'metadata':_0x560847});await this['sendImmediate'](_0x4dec73);}async['flush'](){const _0x2827ed=_0x31ec93;if(this['buffer']['length']===0x0)return;const _0x5002c9=this['buffer']['splice'](0x0);try{await this[_0x2827ed(0x97)](_0x5002c9);}catch{}}['buildEvent'](_0x3f35cd){const _0x432e03=_0x31ec93;return{'eventType':_0x3f35cd['eventType'],'command':this[_0x432e03(0xa9)],'commandId':this[_0x432e03(0x82)],'deviceId':this['deviceId'],'timestamp':new Date()['toISOString'](),'durationMs':_0x3f35cd[_0x432e03(0xad)],'phase':_0x3f35cd[_0x432e03(0xb2)],'phaseIndex':_0x3f35cd[_0x432e03(0xb7)],'outcome':_0x3f35cd['outcome'],'errorMessage':_0x3f35cd['errorMessage'],'errorType':_0x3f35cd[_0x432e03(0x71)],'featureId':this[_0x432e03(0x9e)],'checklistItemId':this['checklistItemId'],'browserSessionId':this[_0x432e03(0x83)],'transport':this['transport'],'evaluation':_0x3f35cd['evaluation'],'cliVersion':this['cliVersion'],'nodeVersion':this['nodeVersion'],'platform':this['platform'],'cwd':process['cwd'](),'isTty':this[_0x432e03(0xa2)],'isCI':this[_0x432e03(0x72)],'metadata':_0x3f35cd['metadata']};}async['sendImmediate'](_0x1e1078){const _0x3ec545=_0x31ec93;try{await this[_0x3ec545(0x97)]([_0x1e1078]);}catch{}}['flushAsync'](){const _0x30993e=_0x31ec93;if(this['flushing'])return;this[_0x30993e(0x92)]=this['flush']()[_0x30993e(0x9c)](()=>{this['flushing']=null;});}async['sendBatch'](_0x4aba10){const _0x161624=_0x31ec93,_0x232f49={'IiNdJ':_0x161624(0xa4),'eEjVw':_0x161624(0xa5),'QTuVM':function(_0x3a147d,_0x5aeac1){return _0x3a147d(_0x5aeac1);}},_0x5c35b9=await getToken()[_0x161624(0x81)](()=>null),_0x16ae8a=getApiBaseUrl(),_0x4618f7={'Content-Type':_0x232f49[_0x161624(0x9b)]};_0x5c35b9&&(_0x4618f7[_0x232f49['eEjVw']]='Bearer\x20'+_0x5c35b9);const _0x1a7859={'events':_0x4aba10};process['env'][_0x161624(0xb3)]&&console['error']('[telemetry]\x20Sending\x20'+_0x4aba10['length']+_0x161624(0xae)+_0x16ae8a+_0x161624(0xa8));const _0x59c663=new AbortController(),_0xcb80a5=setTimeout(()=>_0x59c663['abort'](),0x1388);try{await fetch(_0x16ae8a+'/api/v1/mcp/cli-telemetry',{'method':'POST','headers':_0x4618f7,'body':JSON['stringify'](_0x1a7859),'signal':_0x59c663[_0x161624(0xa6)]});}finally{_0x232f49[_0x161624(0xc1)](clearTimeout,_0xcb80a5);}}}let currentCollector=null;function _0x4ba5(_0x96ab95,_0x1f8b11){_0x96ab95=_0x96ab95-0x71;const _0x2862db=_0x2862();let _0x4ba516=_0x2862db[_0x96ab95];return _0x4ba516;}export function createTelemetryCollector(_0xba8f46){return currentCollector=new TelemetryCollector(_0xba8f46),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0x3f0570,_0xcad8c5,_0x2e8314){const _0x19dc94=_0x31ec93,_0x471a85={'kxePl':function(_0x1ae58e,_0x2e4bb2){return _0x1ae58e(_0x2e4bb2);},'bKulB':'success'},_0x23a0b6=_0x471a85[_0x19dc94(0xb6)](createTelemetryCollector,_0x3f0570);await _0x23a0b6[_0x19dc94(0x7f)](_0x2e8314);try{const _0xf69776=await _0x471a85['kxePl'](_0xcad8c5,_0x23a0b6);return await _0x23a0b6['trackCommandEnd'](_0x471a85[_0x19dc94(0xbe)]),_0xf69776;}catch(_0x4813ca){await _0x23a0b6['trackCommandError'](_0x4813ca);throw _0x4813ca;}finally{await _0x23a0b6[_0x19dc94(0x7a)]();}}function truncate(_0x13cf1b,_0x11fae0){const _0x20ec24=_0x31ec93,_0x611a6b={'tKCHg':function(_0x3dbda8,_0x5206c0){return _0x3dbda8>_0x5206c0;}};return _0x611a6b['tKCHg'](_0x13cf1b[_0x20ec24(0xbc)],_0x11fae0)?_0x13cf1b[_0x20ec24(0xba)](0x0,_0x11fae0)+_0x20ec24(0x76):_0x13cf1b;}
@@ -1 +1 @@
1
- function _0x77f4(_0x103aac,_0x2505d8){_0x103aac=_0x103aac-0x17b;const _0x35edd7=_0x35ed();let _0x77f46b=_0x35edd7[_0x103aac];return _0x77f46b;}(function(_0x41878d,_0x44581d){const _0x17713c=_0x77f4,_0x9a2cce=_0x41878d();while(!![]){try{const _0x1e7cae=parseInt(_0x17713c(0x18a))/0x1+-parseInt(_0x17713c(0x191))/0x2+parseInt(_0x17713c(0x181))/0x3*(parseInt(_0x17713c(0x192))/0x4)+-parseInt(_0x17713c(0x183))/0x5+-parseInt(_0x17713c(0x180))/0x6+-parseInt(_0x17713c(0x18d))/0x7*(parseInt(_0x17713c(0x18f))/0x8)+parseInt(_0x17713c(0x17b))/0x9*(parseInt(_0x17713c(0x17f))/0xa);if(_0x1e7cae===_0x44581d)break;else _0x9a2cce['push'](_0x9a2cce['shift']());}catch(_0x47b557){_0x9a2cce['push'](_0x9a2cce['shift']());}}}(_0x35ed,0xcbd26));import{getApiBaseUrl}from'./environment.js';function _0x35ed(){const _0x1e0106=['TCpnc','AIMzz','json','1340321ZQExja','Cfwwd','/cli-auth/refresh','371VhgRLZ','timeout','80224nbYARQ','POST','1556900bmlyAL','1676kUIWJf','18651339GtKsYh','XjCBa','phdKh','persistRefreshToken','10WzTioQ','6822294meztSW','9621jAdnRY','YnLkR','7372940uocIPi','/cli-auth/partner-refresh','token','application/json'];_0x35ed=function(){return _0x1e0106;};return _0x35ed();}import{getRefreshToken,storeToken,storeRefreshToken}from'./keychain.js';export async function refreshCliToken(){const _0x2cae1e=_0x77f4,_0x5338f3={'XjCBa':function(_0x431eee,_0x1e04fb){return _0x431eee(_0x1e04fb);},'AIMzz':function(_0x5d442b,_0x172e46){return _0x5d442b(_0x172e46);}},_0x150d5d=await getRefreshToken();if(!_0x150d5d)return null;const _0x161d31=await _0x5338f3[_0x2cae1e(0x17c)](tryPartnerRefresh,_0x150d5d);if(_0x161d31)return _0x161d31;return _0x5338f3[_0x2cae1e(0x188)](tryWorkosRefresh,_0x150d5d);}export async function refreshPartnerCliToken(_0x1c49a3,_0x4d445a={}){const _0x4808d4=_0x77f4,_0x54c356={'TCpnc':function(_0x541e73,_0x5d3af7){return _0x541e73(_0x5d3af7);}},_0x1a00e1=await tryPartnerRefresh(_0x1c49a3);return _0x1a00e1&&_0x4d445a[_0x4808d4(0x17e)]&&await _0x54c356[_0x4808d4(0x187)](storeRefreshToken,_0x1c49a3),_0x1a00e1;}async function tryPartnerRefresh(_0x22c4ee){const _0x21429a=_0x77f4,_0x2ad125={'VqlxK':_0x21429a(0x186),'YnLkR':function(_0x4a4652,_0x4e8cc4){return _0x4a4652(_0x4e8cc4);}},_0x77df01=getApiBaseUrl();try{const _0x350853=await fetch(_0x77df01+_0x21429a(0x184),{'method':'POST','headers':{'Content-Type':_0x2ad125['VqlxK']},'body':JSON['stringify']({'refreshToken':_0x22c4ee}),'signal':AbortSignal[_0x21429a(0x18e)](0x2710)});if(!_0x350853['ok'])return null;const _0x56377c=await _0x350853[_0x21429a(0x189)]();return await _0x2ad125[_0x21429a(0x182)](storeToken,_0x56377c[_0x21429a(0x185)]),_0x56377c[_0x21429a(0x185)];}catch{return null;}}async function tryWorkosRefresh(_0x4e1759){const _0x5d39e9=_0x77f4,_0x5b0fb8={'Cfwwd':_0x5d39e9(0x190),'phdKh':function(_0x5ea32d,_0x27d88c){return _0x5ea32d(_0x27d88c);}},_0x456447=getApiBaseUrl();try{const _0x28677d=await fetch(_0x456447+_0x5d39e9(0x18c),{'method':_0x5b0fb8[_0x5d39e9(0x18b)],'headers':{'Content-Type':'application/json'},'body':JSON['stringify']({'refreshToken':_0x4e1759}),'signal':AbortSignal['timeout'](0x2710)});if(!_0x28677d['ok'])return null;const _0x498d9b=await _0x28677d['json']();return await _0x5b0fb8[_0x5d39e9(0x17d)](storeToken,_0x498d9b['token']),await _0x5b0fb8['phdKh'](storeRefreshToken,_0x498d9b['refreshToken']),_0x498d9b[_0x5d39e9(0x185)];}catch{return null;}}
1
+ (function(_0x23dc1b,_0x31c96f){const _0x3f50a9=_0x52c4,_0x211613=_0x23dc1b();while(!![]){try{const _0x1a6c1d=-parseInt(_0x3f50a9(0x19e))/0x1*(-parseInt(_0x3f50a9(0x1a6))/0x2)+-parseInt(_0x3f50a9(0x19b))/0x3*(-parseInt(_0x3f50a9(0x1a3))/0x4)+parseInt(_0x3f50a9(0x19d))/0x5+-parseInt(_0x3f50a9(0x199))/0x6+parseInt(_0x3f50a9(0x1a4))/0x7+-parseInt(_0x3f50a9(0x19a))/0x8*(parseInt(_0x3f50a9(0x1a7))/0x9)+-parseInt(_0x3f50a9(0x1aa))/0xa;if(_0x1a6c1d===_0x31c96f)break;else _0x211613['push'](_0x211613['shift']());}catch(_0x3d1883){_0x211613['push'](_0x211613['shift']());}}}(_0x321b,0x94378));import{getApiBaseUrl}from'./environment.js';import{getRefreshToken,storeToken,storeRefreshToken}from'./keychain.js';export async function refreshCliToken(){const _0x5aad5d=await getRefreshToken();if(!_0x5aad5d)return null;const _0x3e9a81=await tryPartnerRefresh(_0x5aad5d);if(_0x3e9a81)return _0x3e9a81;return tryWorkosRefresh(_0x5aad5d);}export async function refreshPartnerCliToken(_0x58df1b,_0x29d983={}){const _0x403ef3=_0x52c4,_0x15e04b=await tryPartnerRefresh(_0x58df1b);return _0x15e04b&&_0x29d983[_0x403ef3(0x1a2)]&&await storeRefreshToken(_0x58df1b),_0x15e04b;}function _0x52c4(_0x3c7742,_0x23185a){_0x3c7742=_0x3c7742-0x199;const _0x321b28=_0x321b();let _0x52c42e=_0x321b28[_0x3c7742];return _0x52c42e;}async function tryPartnerRefresh(_0x1aab12){const _0x3fc709=_0x52c4,_0x558248={'qVRQM':function(_0x110f04,_0x15ead3,_0xa36545){return _0x110f04(_0x15ead3,_0xa36545);},'PWIOr':'application/json','dwmNl':function(_0xe7fa64,_0x1e6006){return _0xe7fa64(_0x1e6006);}},_0x177727=getApiBaseUrl();try{const _0x481388=await _0x558248[_0x3fc709(0x1a1)](fetch,_0x177727+'/cli-auth/partner-refresh',{'method':'POST','headers':{'Content-Type':_0x558248[_0x3fc709(0x1a0)]},'body':JSON['stringify']({'refreshToken':_0x1aab12}),'signal':AbortSignal[_0x3fc709(0x1a8)](0x2710)});if(!_0x481388['ok'])return null;const _0xdad088=await _0x481388[_0x3fc709(0x19c)]();return await _0x558248['dwmNl'](storeToken,_0xdad088[_0x3fc709(0x1ab)]),_0xdad088['token'];}catch{return null;}}async function tryWorkosRefresh(_0x24b7ec){const _0x204ca3=_0x52c4,_0x45daa2=getApiBaseUrl();try{const _0x526cff=await fetch(_0x45daa2+_0x204ca3(0x1a5),{'method':_0x204ca3(0x1a9),'headers':{'Content-Type':'application/json'},'body':JSON['stringify']({'refreshToken':_0x24b7ec}),'signal':AbortSignal['timeout'](0x2710)});if(!_0x526cff['ok'])return null;const _0x5b4706=await _0x526cff[_0x204ca3(0x19c)]();return await storeToken(_0x5b4706[_0x204ca3(0x1ab)]),await storeRefreshToken(_0x5b4706[_0x204ca3(0x19f)]),_0x5b4706['token'];}catch{return null;}}function _0x321b(){const _0x476c86=['PWIOr','qVRQM','persistRefreshToken','29096kVLRoH','7508494WOjnpJ','/cli-auth/refresh','192974lEZKSc','1566QCTegG','timeout','POST','429220sPlySj','token','4822824rCsUzN','39016yByFzP','6YGbOkY','json','5111280ViMmke','2IJKtol','refreshToken'];_0x321b=function(){return _0x476c86;};return _0x321b();}
@@ -1 +1 @@
1
- (function(_0x269832,_0x3d6c82){const _0x34cb9f=_0x126b,_0x4d3551=_0x269832();while(!![]){try{const _0x14def7=parseInt(_0x34cb9f(0x13a))/0x1+-parseInt(_0x34cb9f(0x154))/0x2+-parseInt(_0x34cb9f(0x140))/0x3+-parseInt(_0x34cb9f(0x149))/0x4+-parseInt(_0x34cb9f(0x136))/0x5+-parseInt(_0x34cb9f(0x160))/0x6+parseInt(_0x34cb9f(0x147))/0x7;if(_0x14def7===_0x3d6c82)break;else _0x4d3551['push'](_0x4d3551['shift']());}catch(_0x51555a){_0x4d3551['push'](_0x4d3551['shift']());}}}(_0xfba5,0x6612b));import{readdir,readFile}from'fs/promises';function _0x126b(_0x1507a5,_0x434088){_0x1507a5=_0x1507a5-0x132;const _0xfba52c=_0xfba5();let _0x126b6c=_0xfba52c[_0x1507a5];return _0x126b6c;}import{join}from'path';function _0xfba5(){const _0x116303=['EGmDX','818855qnuLVP','length','set','page@0','475248SVMAxh','string','utf-8','Yqhjl','getTime','frame-snapshot','1281231IfPJpx','pageId','isDirectory','params','type','RsPvW','abs','12952072ClucML','indexOf','2151080QYOTte','.trace','VoUWD','method','input','GAmEg','point','startTime','afterSnapshot','inputSnapshot','beforeSnapshot','908964kBZmur','sDjOt','goto','monotonicTime','endsWith','navigated','split','find','endTime','from','callId','wallTime','1946118qgTMAF','get','GuOme','before','url'];_0xfba5=function(){return _0x116303;};return _0xfba5();}export async function mapStepsToTraceSnapshots(_0x418900,_0x3df745){const _0x2f85cb=_0x126b,_0x1bd793={'Yqhjl':function(_0x81274c,_0x3f9f72){return _0x81274c(_0x3f9f72);},'STPpw':_0x2f85cb(0x14a),'EGmDX':function(_0xce1742,_0x458797){return _0xce1742(_0x458797);},'tRLti':function(_0x2880d1,_0x51485f){return _0x2880d1===_0x51485f;},'hiVUH':function(_0x40e854,_0x4e94e6){return _0x40e854===_0x4e94e6;},'GuOme':_0x2f85cb(0x13f),'mmPAb':function(_0x30f715,_0x26709a){return _0x30f715===_0x26709a;},'GAmEg':'string','hIIPv':'event','sDjOt':_0x2f85cb(0x159),'hTpHG':function(_0x11e178,_0x17312d){return _0x11e178===_0x17312d;},'yARTn':function(_0x31eb7e,_0x239dbe){return _0x31eb7e<_0x239dbe;},'RsPvW':function(_0x39fc50,_0x139776){return _0x39fc50>=_0x139776;},'VoUWD':_0x2f85cb(0x156),'eSXPa':function(_0x8e0096,_0x463b5a){return _0x8e0096+_0x463b5a;}},_0x35db5e=new Map();if(_0x3df745[_0x2f85cb(0x137)]===0x0)return _0x35db5e;const _0x21d25f=[],_0x4ea457=async _0x8ba1c9=>{const _0x156f04=_0x2f85cb,_0x3e0826=await readdir(_0x8ba1c9,{'withFileTypes':!![]});for(const _0xf6bc03 of _0x3e0826){const _0x319c20=join(_0x8ba1c9,_0xf6bc03['name']);if(_0xf6bc03[_0x156f04(0x142)]())await _0x1bd793[_0x156f04(0x13d)](_0x4ea457,_0x319c20);else _0xf6bc03['name'][_0x156f04(0x158)](_0x1bd793['STPpw'])&&_0x21d25f['push'](_0x319c20);}};await _0x1bd793[_0x2f85cb(0x135)](_0x4ea457,_0x418900);if(_0x1bd793['tRLti'](_0x21d25f[_0x2f85cb(0x137)],0x0))return _0x35db5e;const _0x4f6f6d=[];for(const _0x186934 of _0x21d25f){const _0x3a05c3=await readFile(_0x186934,_0x2f85cb(0x13c)),_0x13e5cf=_0x3a05c3[_0x2f85cb(0x15a)]('\x0a')['filter'](_0x229407=>_0x229407['trim']());for(const _0x490eae of _0x13e5cf){try{_0x4f6f6d['push'](JSON['parse'](_0x490eae));}catch{}}}if(_0x4f6f6d['length']===0x0)return _0x35db5e;const _0x2ac8fb=_0x4f6f6d[_0x2f85cb(0x15b)](_0x4de8f8=>_0x4de8f8['type']==='context-options');if(!_0x2ac8fb)return _0x35db5e;const _0x1f89e3=_0x2ac8fb[_0x2f85cb(0x15f)]-_0x2ac8fb[_0x2f85cb(0x157)],_0x14d3b9=new Map();for(const _0x5f1bcf of _0x4f6f6d){switch(_0x5f1bcf[_0x2f85cb(0x144)]){case _0x2f85cb(0x133):{const _0x4fe089=_0x5f1bcf;_0x14d3b9[_0x2f85cb(0x138)](_0x4fe089[_0x2f85cb(0x15e)],{'callId':_0x4fe089[_0x2f85cb(0x15e)],'startTime':_0x4fe089[_0x2f85cb(0x150)],'endTime':0x0,'method':_0x4fe089['method'],'apiName':_0x4fe089['apiName'],'params':_0x4fe089['params'],'pageId':_0x4fe089['pageId'],'beforeSnapshot':_0x4fe089['beforeSnapshot']});break;}case _0x2f85cb(0x14d):{const _0x59b68f=_0x5f1bcf,_0x38fcc3=_0x14d3b9[_0x2f85cb(0x161)](_0x59b68f[_0x2f85cb(0x15e)]);if(_0x38fcc3){if(_0x59b68f['inputSnapshot'])_0x38fcc3[_0x2f85cb(0x152)]=_0x59b68f[_0x2f85cb(0x152)];if(_0x59b68f[_0x2f85cb(0x14f)])_0x38fcc3['point']=_0x59b68f['point'];}break;}case'after':{const _0x304ea9=_0x5f1bcf,_0x456ff6=_0x14d3b9['get'](_0x304ea9[_0x2f85cb(0x15e)]);if(_0x456ff6){_0x456ff6['endTime']=_0x304ea9[_0x2f85cb(0x15c)];if(_0x304ea9[_0x2f85cb(0x151)])_0x456ff6['afterSnapshot']=_0x304ea9['afterSnapshot'];}break;}}}const _0x3d3210=Array[_0x2f85cb(0x15d)](_0x14d3b9['values']())['filter'](_0x1f4da=>_0x1f4da[_0x2f85cb(0x15c)]>0x0&&(_0x1f4da[_0x2f85cb(0x151)]||_0x1f4da[_0x2f85cb(0x153)]))['sort']((_0x4615ad,_0x205884)=>_0x4615ad[_0x2f85cb(0x150)]-_0x205884['startTime']);if(_0x1bd793['hiVUH'](_0x3d3210[_0x2f85cb(0x137)],0x0))return _0x35db5e;const _0x3a8903=new Map();for(const _0x1f1bd9 of _0x4f6f6d){if(_0x1f1bd9['type']===_0x1bd793[_0x2f85cb(0x132)]){const _0x198b80=_0x1f1bd9['snapshot'];_0x198b80?.['snapshotName']&&_0x198b80?.['frameUrl']&&_0x3a8903['set'](_0x198b80['snapshotName'],_0x198b80['frameUrl']);}}const _0x2b4267=new Map();for(const _0x9bc3f1 of _0x3d3210){const _0x1fb7ec=_0x9bc3f1[_0x2f85cb(0x143)]?.['url'];_0x1bd793['mmPAb'](_0x9bc3f1['method'],'goto')&&typeof _0x1fb7ec===_0x1bd793[_0x2f85cb(0x14e)]&&_0x9bc3f1['pageId']&&_0x2b4267['set'](_0x9bc3f1['pageId'],_0x1fb7ec);}for(const _0x3918eb of _0x4f6f6d){const _0x1f361a=_0x3918eb,_0x5971e0=_0x1f361a['params'],_0x4a1632=_0x5971e0?.['url'];_0x1f361a['type']===_0x1bd793['hIIPv']&&_0x1bd793['hiVUH'](_0x1f361a[_0x2f85cb(0x14c)],_0x1bd793[_0x2f85cb(0x155)])&&typeof _0x4a1632==='string'&&_0x1bd793['hTpHG'](typeof _0x1f361a[_0x2f85cb(0x141)],_0x2f85cb(0x13b))&&_0x2b4267[_0x2f85cb(0x138)](_0x1f361a['pageId'],_0x4a1632);}for(const _0x433429 of _0x3df745){const _0x5bd1e3=new Date(_0x433429['capturedAt'])[_0x2f85cb(0x13e)](),_0x1a3eb7=_0x5bd1e3-_0x1f89e3;let _0x4ecfac=null,_0x419ed6=Infinity;for(const _0x286483 of _0x3d3210){const _0x2d3d44=Math[_0x2f85cb(0x146)](_0x286483['endTime']-_0x1a3eb7);_0x1bd793['yARTn'](_0x2d3d44,_0x419ed6)&&(_0x419ed6=_0x2d3d44,_0x4ecfac=_0x286483);}if(!_0x4ecfac)continue;const _0xcd296c=_0x4ecfac[_0x2f85cb(0x151)]||_0x4ecfac[_0x2f85cb(0x153)];if(!_0xcd296c)continue;const _0x1b2e70=_0x4ecfac['pageId']||_0x2f85cb(0x139);let _0x183bf7=_0x3a8903['get'](_0xcd296c)||_0x2b4267['get'](_0x1b2e70)||'';if(!_0x183bf7)for(let _0x5b29ee=_0x3d3210[_0x2f85cb(0x148)](_0x4ecfac);_0x1bd793[_0x2f85cb(0x145)](_0x5b29ee,0x0);_0x5b29ee--){const _0x23e0c4=_0x3d3210[_0x5b29ee][_0x2f85cb(0x143)]?.[_0x2f85cb(0x134)];if(_0x3d3210[_0x5b29ee][_0x2f85cb(0x14c)]===_0x1bd793[_0x2f85cb(0x14b)]&&typeof _0x23e0c4===_0x2f85cb(0x13b)){_0x183bf7=_0x23e0c4;break;}}let _0x5d877b,_0x442a19;const _0x4cb6a3=_0x3d3210[_0x2f85cb(0x148)](_0x4ecfac);if(_0x4cb6a3>=0x0&&_0x1bd793['yARTn'](_0x4cb6a3,_0x3d3210[_0x2f85cb(0x137)]-0x1)){const _0x337112=_0x3d3210[_0x1bd793['eSXPa'](_0x4cb6a3,0x1)];_0x337112['point']&&_0x337112['inputSnapshot']&&(_0x5d877b=_0x337112[_0x2f85cb(0x14f)],_0x442a19=_0x337112['inputSnapshot']);}_0x35db5e[_0x2f85cb(0x138)](_0x433429['stepId'],{'snapshotName':_0xcd296c,'inputSnapshotName':_0x442a19,'pageId':_0x1b2e70,'pageUrl':_0x183bf7,'callId':_0x4ecfac['callId'],'point':_0x5d877b});}return _0x35db5e;}
1
+ (function(_0xac9706,_0x14bf12){const _0x47b87a=_0x58df,_0x18b3b3=_0xac9706();while(!![]){try{const _0x16a437=parseInt(_0x47b87a(0x139))/0x1+-parseInt(_0x47b87a(0x148))/0x2*(-parseInt(_0x47b87a(0x146))/0x3)+-parseInt(_0x47b87a(0x13d))/0x4*(parseInt(_0x47b87a(0x150))/0x5)+parseInt(_0x47b87a(0x15d))/0x6*(-parseInt(_0x47b87a(0x159))/0x7)+parseInt(_0x47b87a(0x141))/0x8*(-parseInt(_0x47b87a(0x152))/0x9)+parseInt(_0x47b87a(0x12e))/0xa+parseInt(_0x47b87a(0x137))/0xb;if(_0x16a437===_0x14bf12)break;else _0x18b3b3['push'](_0x18b3b3['shift']());}catch(_0xbb9dd1){_0x18b3b3['push'](_0x18b3b3['shift']());}}}(_0x15e5,0xebc26));function _0x58df(_0x481e2f,_0x2a94ef){_0x481e2f=_0x481e2f-0x121;const _0x15e5bf=_0x15e5();let _0x58df35=_0x15e5bf[_0x481e2f];return _0x58df35;}function _0x15e5(){const _0x561655=['JproX','BqKnR','parse','mhOsQ','push','endTime','indexOf','265uLoUjZ','abs','126DhYxnK','frame-snapshot','startTime','params','beforeSnapshot','values','length','77TfKwfQ','monotonicTime','JDbLh','url','287886cDvaKt','vXMTR','pageId','mtGJV','ijRuC','getTime','point','set','tPhbQ','navigated','input','callId','uRQjI','KIYvA','afterSnapshot','goto','inputSnapshot','14034080YNEfht','after','get','JqGdz','endsWith','utf-8','.trace','before','method','398134kkfcvd','name','1115847AZzAlX','filter','from','string','716DuGpiS','isDirectory','HdjhO','trim','1006072ZLeMMF','RzdNe','bnjxM','fivco','snapshotName','4125UBCjnt','type','1030mFsxjZ'];_0x15e5=function(){return _0x561655;};return _0x15e5();}import{readdir,readFile}from'fs/promises';import{join}from'path';export async function mapStepsToTraceSnapshots(_0x5a0fb4,_0x2acb85){const _0x1c479a=_0x58df,_0x2d144d={'KIYvA':function(_0x3ebdc8,_0x5359e1,_0x283b4b){return _0x3ebdc8(_0x5359e1,_0x283b4b);},'BqKnR':function(_0x98d6e0,_0x2af121,_0x132127){return _0x98d6e0(_0x2af121,_0x132127);},'JqGdz':function(_0x16aa86,_0x1c3787){return _0x16aa86===_0x1c3787;},'ijRuC':function(_0x1e7010,_0x1ae598){return _0x1e7010(_0x1ae598);},'DONDS':function(_0x49481b,_0x1f7ee5,_0x24473a){return _0x49481b(_0x1f7ee5,_0x24473a);},'vXMTR':_0x1c479a(0x133),'elTPx':_0x1c479a(0x135),'MDkDk':_0x1c479a(0x127),'fivco':_0x1c479a(0x12f),'Qfoms':function(_0x5305d7,_0x17060e){return _0x5305d7===_0x17060e;},'mhOsQ':function(_0x2200c2,_0x2c0289){return _0x2200c2===_0x2c0289;},'saOlT':_0x1c479a(0x153),'JDbLh':function(_0x801ab8,_0x18108c){return _0x801ab8===_0x18108c;},'RzdNe':'event','HdjhO':function(_0x11bde7,_0x5e867d){return _0x11bde7===_0x5e867d;},'bnjxM':_0x1c479a(0x13c),'JproX':function(_0x3c34d6,_0x2cba7a){return _0x3c34d6===_0x2cba7a;},'hrmdM':function(_0x4e1f0c,_0x49add7){return _0x4e1f0c-_0x49add7;},'mtGJV':function(_0x3293e6,_0x2eac0e){return _0x3293e6<_0x2eac0e;},'tONPW':function(_0x1e10b5,_0x275b74){return _0x1e10b5===_0x275b74;},'UtBoP':_0x1c479a(0x12c),'tPhbQ':function(_0x4e6740,_0x1f540c){return _0x4e6740>=_0x1f540c;},'uRQjI':function(_0x4ae507,_0x538e53){return _0x4ae507+_0x538e53;}},_0x4b1e3c=new Map();if(_0x2d144d[_0x1c479a(0x131)](_0x2acb85[_0x1c479a(0x158)],0x0))return _0x4b1e3c;const _0x5ad9c5=[],_0x56df9d=async _0x496665=>{const _0x3eb471=_0x1c479a,_0x4fa505=await _0x2d144d[_0x3eb471(0x12a)](readdir,_0x496665,{'withFileTypes':!![]});for(const _0x1a90d1 of _0x4fa505){const _0x519354=_0x2d144d[_0x3eb471(0x14a)](join,_0x496665,_0x1a90d1[_0x3eb471(0x138)]);if(_0x1a90d1[_0x3eb471(0x13e)]())await _0x56df9d(_0x519354);else _0x1a90d1['name'][_0x3eb471(0x132)](_0x3eb471(0x134))&&_0x5ad9c5[_0x3eb471(0x14d)](_0x519354);}};await _0x2d144d[_0x1c479a(0x121)](_0x56df9d,_0x5a0fb4);if(_0x2d144d['JqGdz'](_0x5ad9c5[_0x1c479a(0x158)],0x0))return _0x4b1e3c;const _0x53956b=[];for(const _0x1d1b40 of _0x5ad9c5){const _0x356dab=await _0x2d144d['DONDS'](readFile,_0x1d1b40,_0x2d144d[_0x1c479a(0x15e)]),_0x2adf3c=_0x356dab['split']('\x0a')['filter'](_0x4c93bb=>_0x4c93bb[_0x1c479a(0x140)]());for(const _0x418668 of _0x2adf3c){try{_0x53956b['push'](JSON[_0x1c479a(0x14b)](_0x418668));}catch{}}}if(_0x53956b['length']===0x0)return _0x4b1e3c;const _0x32529b=_0x53956b['find'](_0x46e770=>_0x46e770['type']==='context-options');if(!_0x32529b)return _0x4b1e3c;const _0x339d03=_0x32529b['wallTime']-_0x32529b[_0x1c479a(0x15a)],_0x430345=new Map();for(const _0x5c1f44 of _0x53956b){switch(_0x5c1f44[_0x1c479a(0x147)]){case _0x2d144d['elTPx']:{const _0x3d5fb8=_0x5c1f44;_0x430345[_0x1c479a(0x124)](_0x3d5fb8['callId'],{'callId':_0x3d5fb8[_0x1c479a(0x128)],'startTime':_0x3d5fb8[_0x1c479a(0x154)],'endTime':0x0,'method':_0x3d5fb8['method'],'apiName':_0x3d5fb8['apiName'],'params':_0x3d5fb8[_0x1c479a(0x155)],'pageId':_0x3d5fb8['pageId'],'beforeSnapshot':_0x3d5fb8[_0x1c479a(0x156)]});break;}case _0x2d144d['MDkDk']:{const _0x10b397=_0x5c1f44,_0x1549ed=_0x430345['get'](_0x10b397['callId']);if(_0x1549ed){if(_0x10b397[_0x1c479a(0x12d)])_0x1549ed['inputSnapshot']=_0x10b397[_0x1c479a(0x12d)];if(_0x10b397[_0x1c479a(0x123)])_0x1549ed['point']=_0x10b397['point'];}break;}case _0x2d144d[_0x1c479a(0x144)]:{const _0x541983=_0x5c1f44,_0x14092a=_0x430345['get'](_0x541983[_0x1c479a(0x128)]);if(_0x14092a){_0x14092a['endTime']=_0x541983['endTime'];if(_0x541983[_0x1c479a(0x12b)])_0x14092a['afterSnapshot']=_0x541983['afterSnapshot'];}break;}}}const _0xd4e8cd=Array[_0x1c479a(0x13b)](_0x430345[_0x1c479a(0x157)]())[_0x1c479a(0x13a)](_0x51234f=>_0x51234f['endTime']>0x0&&(_0x51234f['afterSnapshot']||_0x51234f['beforeSnapshot']))['sort']((_0x17d9e9,_0x3b7888)=>_0x17d9e9[_0x1c479a(0x154)]-_0x3b7888[_0x1c479a(0x154)]);if(_0x2d144d['Qfoms'](_0xd4e8cd['length'],0x0))return _0x4b1e3c;const _0x46a853=new Map();for(const _0x160fd2 of _0x53956b){if(_0x2d144d[_0x1c479a(0x14c)](_0x160fd2[_0x1c479a(0x147)],_0x2d144d['saOlT'])){const _0x2d23b2=_0x160fd2['snapshot'];_0x2d23b2?.[_0x1c479a(0x145)]&&_0x2d23b2?.['frameUrl']&&_0x46a853['set'](_0x2d23b2[_0x1c479a(0x145)],_0x2d23b2['frameUrl']);}}const _0x1de259=new Map();for(const _0x6c4b2e of _0xd4e8cd){const _0x318d6b=_0x6c4b2e['params']?.[_0x1c479a(0x15c)];_0x6c4b2e[_0x1c479a(0x136)]==='goto'&&_0x2d144d[_0x1c479a(0x15b)](typeof _0x318d6b,_0x1c479a(0x13c))&&_0x6c4b2e[_0x1c479a(0x15f)]&&_0x1de259[_0x1c479a(0x124)](_0x6c4b2e['pageId'],_0x318d6b);}for(const _0x26b17f of _0x53956b){const _0x2fa13b=_0x26b17f,_0x830cde=_0x2fa13b['params'],_0x107d6d=_0x830cde?.['url'];_0x2d144d[_0x1c479a(0x15b)](_0x2fa13b[_0x1c479a(0x147)],_0x2d144d[_0x1c479a(0x142)])&&_0x2d144d['JqGdz'](_0x2fa13b['method'],_0x1c479a(0x126))&&_0x2d144d[_0x1c479a(0x13f)](typeof _0x107d6d,_0x2d144d['bnjxM'])&&_0x2d144d[_0x1c479a(0x149)](typeof _0x2fa13b[_0x1c479a(0x15f)],'string')&&_0x1de259['set'](_0x2fa13b[_0x1c479a(0x15f)],_0x107d6d);}for(const _0x3a2702 of _0x2acb85){const _0x3d7c14=new Date(_0x3a2702['capturedAt'])[_0x1c479a(0x122)](),_0xbc26f8=_0x2d144d['hrmdM'](_0x3d7c14,_0x339d03);let _0x1c2c77=null,_0x4b2bf8=Infinity;for(const _0xb98293 of _0xd4e8cd){const _0x1bf321=Math[_0x1c479a(0x151)](_0xb98293[_0x1c479a(0x14e)]-_0xbc26f8);_0x2d144d['mtGJV'](_0x1bf321,_0x4b2bf8)&&(_0x4b2bf8=_0x1bf321,_0x1c2c77=_0xb98293);}if(!_0x1c2c77)continue;const _0x1c752a=_0x1c2c77['afterSnapshot']||_0x1c2c77[_0x1c479a(0x156)];if(!_0x1c752a)continue;const _0x236ce7=_0x1c2c77['pageId']||'page@0';let _0x5e375f=_0x46a853[_0x1c479a(0x130)](_0x1c752a)||_0x1de259[_0x1c479a(0x130)](_0x236ce7)||'';if(!_0x5e375f)for(let _0x419ea6=_0xd4e8cd['indexOf'](_0x1c2c77);_0x419ea6>=0x0;_0x419ea6--){const _0xbd421c=_0xd4e8cd[_0x419ea6][_0x1c479a(0x155)]?.[_0x1c479a(0x15c)];if(_0x2d144d['tONPW'](_0xd4e8cd[_0x419ea6][_0x1c479a(0x136)],_0x2d144d['UtBoP'])&&typeof _0xbd421c===_0x2d144d[_0x1c479a(0x143)]){_0x5e375f=_0xbd421c;break;}}let _0x3ac7b4,_0x60e16e;const _0x134fd=_0xd4e8cd[_0x1c479a(0x14f)](_0x1c2c77);if(_0x2d144d[_0x1c479a(0x125)](_0x134fd,0x0)&&_0x2d144d[_0x1c479a(0x160)](_0x134fd,_0x2d144d['hrmdM'](_0xd4e8cd[_0x1c479a(0x158)],0x1))){const _0x65f1e5=_0xd4e8cd[_0x2d144d[_0x1c479a(0x129)](_0x134fd,0x1)];_0x65f1e5[_0x1c479a(0x123)]&&_0x65f1e5['inputSnapshot']&&(_0x3ac7b4=_0x65f1e5[_0x1c479a(0x123)],_0x60e16e=_0x65f1e5['inputSnapshot']);}_0x4b1e3c[_0x1c479a(0x124)](_0x3a2702['stepId'],{'snapshotName':_0x1c752a,'inputSnapshotName':_0x60e16e,'pageId':_0x236ce7,'pageUrl':_0x5e375f,'callId':_0x1c2c77['callId'],'point':_0x3ac7b4});}return _0x4b1e3c;}
@@ -1 +1 @@
1
- function _0x3427(_0x3c8ac3,_0x405acc){_0x3c8ac3=_0x3c8ac3-0x15f;const _0x5e63c5=_0x5e63();let _0x34278a=_0x5e63c5[_0x3c8ac3];return _0x34278a;}function _0x5e63(){const _0x1b7ea1=['8295SIHFNs','GET','8489490mDAQfk','statusText','3171150BnZQMB','/api/v1/mcp/me','1ZiVUNW','186rhTPhN','2000oTHOiY','plcDu','3904146snFNgd','302211bxEoZU','Bearer\x20','1643150KNeDno','5909216tQreDt'];_0x5e63=function(){return _0x1b7ea1;};return _0x5e63();}(function(_0x250da2,_0x40a3c0){const _0x29fb66=_0x3427,_0x341f9c=_0x250da2();while(!![]){try{const _0x203409=parseInt(_0x29fb66(0x169))/0x1*(parseInt(_0x29fb66(0x161))/0x2)+parseInt(_0x29fb66(0x163))/0x3*(parseInt(_0x29fb66(0x16b))/0x4)+-parseInt(_0x29fb66(0x165))/0x5+parseInt(_0x29fb66(0x16a))/0x6*(parseInt(_0x29fb66(0x15f))/0x7)+-parseInt(_0x29fb66(0x162))/0x8+-parseInt(_0x29fb66(0x16d))/0x9+parseInt(_0x29fb66(0x167))/0xa;if(_0x203409===_0x40a3c0)break;else _0x341f9c['push'](_0x341f9c['shift']());}catch(_0xdcdb56){_0x341f9c['push'](_0x341f9c['shift']());}}}(_0x5e63,0xf1819));import{getApiBaseUrl}from'./environment.js';export async function getCurrentUser(_0x43ffc4){const _0x32da99=_0x3427,_0x5061f5={'plcDu':_0x32da99(0x164),'ZyRUy':function(_0x1b1373,_0x48c501){return _0x1b1373(_0x48c501);}},_0x2d4ef1=getApiBaseUrl();try{const _0x5e1bd2=await fetch(_0x2d4ef1+_0x32da99(0x168),{'method':_0x5061f5[_0x32da99(0x16c)],'headers':{'Authorization':_0x32da99(0x160)+_0x43ffc4}});if(!_0x5e1bd2['ok'])return{'success':![],'error':_0x5e1bd2['status']+'\x20'+_0x5e1bd2[_0x32da99(0x166)],'status':_0x5e1bd2['status']};const _0x2af013=await _0x5e1bd2['json']();return{'success':!![],'user':_0x2af013};}catch(_0x2c0724){return{'success':![],'error':_0x2c0724 instanceof Error?_0x2c0724['message']:_0x5061f5['ZyRUy'](String,_0x2c0724)};}}
1
+ function _0x1134(){const _0x835c6d=['54687960OUbdfT','status','/api/v1/mcp/me','275MlPDmI','GET','1686qtaNLk','371hfsSAh','1152230aIojDr','33222AQsxbG','412305aRrofl','ykkxx','5000613afgJmp','statusText','4uPUxLd','77plPVCA','54hYHtMq','1045832MzoFwN'];_0x1134=function(){return _0x835c6d;};return _0x1134();}(function(_0x1c1343,_0xf90422){const _0x4d9b1e=_0x4121,_0x70ea04=_0x1c1343();while(!![]){try{const _0x3af43c=-parseInt(_0x4d9b1e(0x152))/0x1*(parseInt(_0x4d9b1e(0x154))/0x2)+-parseInt(_0x4d9b1e(0x15a))/0x3+-parseInt(_0x4d9b1e(0x14b))/0x4*(-parseInt(_0x4d9b1e(0x158))/0x5)+-parseInt(_0x4d9b1e(0x157))/0x6*(parseInt(_0x4d9b1e(0x155))/0x7)+parseInt(_0x4d9b1e(0x14e))/0x8*(-parseInt(_0x4d9b1e(0x14d))/0x9)+-parseInt(_0x4d9b1e(0x156))/0xa*(parseInt(_0x4d9b1e(0x14c))/0xb)+parseInt(_0x4d9b1e(0x14f))/0xc;if(_0x3af43c===_0xf90422)break;else _0x70ea04['push'](_0x70ea04['shift']());}catch(_0xefea0f){_0x70ea04['push'](_0x70ea04['shift']());}}}(_0x1134,0xd127b));function _0x4121(_0x32e16f,_0x133484){_0x32e16f=_0x32e16f-0x14a;const _0x1134e7=_0x1134();let _0x41210e=_0x1134e7[_0x32e16f];return _0x41210e;}import{getApiBaseUrl}from'./environment.js';export async function getCurrentUser(_0x44899a){const _0x5f1591=_0x4121,_0x461293={'sqWaK':function(_0x3e7ed6,_0x184e0e,_0x14b019){return _0x3e7ed6(_0x184e0e,_0x14b019);},'ykkxx':function(_0x8d12cc,_0x5bd276){return _0x8d12cc(_0x5bd276);}},_0x3378ec=getApiBaseUrl();try{const _0x1509b0=await _0x461293['sqWaK'](fetch,_0x3378ec+_0x5f1591(0x151),{'method':_0x5f1591(0x153),'headers':{'Authorization':'Bearer\x20'+_0x44899a}});if(!_0x1509b0['ok'])return{'success':![],'error':_0x1509b0[_0x5f1591(0x150)]+'\x20'+_0x1509b0[_0x5f1591(0x14a)],'status':_0x1509b0[_0x5f1591(0x150)]};const _0x257f08=await _0x1509b0['json']();return{'success':!![],'user':_0x257f08};}catch(_0x4d0292){return{'success':![],'error':_0x4d0292 instanceof Error?_0x4d0292['message']:_0x461293[_0x5f1591(0x159)](String,_0x4d0292)};}}
@@ -1 +1 @@
1
- (function(_0x454e32,_0x127549){const _0x8b26bd=_0x27b4,_0x3085e8=_0x454e32();while(!![]){try{const _0x55b05c=parseInt(_0x8b26bd(0x16d))/0x1*(parseInt(_0x8b26bd(0x16b))/0x2)+parseInt(_0x8b26bd(0x167))/0x3+-parseInt(_0x8b26bd(0x165))/0x4+-parseInt(_0x8b26bd(0x15b))/0x5*(-parseInt(_0x8b26bd(0x15a))/0x6)+parseInt(_0x8b26bd(0x158))/0x7*(-parseInt(_0x8b26bd(0x161))/0x8)+parseInt(_0x8b26bd(0x157))/0x9*(-parseInt(_0x8b26bd(0x15f))/0xa)+-parseInt(_0x8b26bd(0x154))/0xb*(-parseInt(_0x8b26bd(0x15c))/0xc);if(_0x55b05c===_0x127549)break;else _0x3085e8['push'](_0x3085e8['shift']());}catch(_0x4f60de){_0x3085e8['push'](_0x3085e8['shift']());}}}(_0x4ffd,0xc4ab7));import{readFileSync}from'fs';import{existsSync}from'fs';function _0x4ffd(){const _0x3000a2=['7MgQoOI','kWZON','37422xJiYCY','720TaMGBO','144EkIMJm','efFAT','split','3160czCaea','utf-8','1595192PnjHvh','RdgjX','message','DmhEg','863272tBwaAV','map','546579WOqqid','pipe','trim','package.json','61810sIHEIq','parse','3OFxBYd','439736kRhIpS','npm\x20view\x20','jcOoQ','12303GlWZSw'];_0x4ffd=function(){return _0x3000a2;};return _0x4ffd();}function _0x27b4(_0x4ebd0c,_0x5173cd){_0x4ebd0c=_0x4ebd0c-0x154;const _0x4ffdfa=_0x4ffd();let _0x27b4f0=_0x4ffdfa[_0x4ebd0c];return _0x27b4f0;}import{execSync}from'child_process';import{fileURLToPath}from'url';import{dirname,join}from'path';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const PACKAGE_NAME='@ranger-testing/ranger-cli';export function getCurrentVersion(){const _0x10db4e=_0x27b4,_0x1e9474={'efFAT':_0x10db4e(0x16a),'MmCfl':function(_0x22b4ae,_0x3c1c52,_0x37e6d6,_0x48653a,_0x4ea921,_0x2d2d77){return _0x22b4ae(_0x3c1c52,_0x37e6d6,_0x48653a,_0x4ea921,_0x2d2d77);},'Hamiw':function(_0x183db8,_0x16b0c4){return _0x183db8(_0x16b0c4);}},_0x1d183b=[join(__dirname,'..','..',_0x1e9474[_0x10db4e(0x15d)]),_0x1e9474['MmCfl'](join,__dirname,'..','..','..',_0x1e9474[_0x10db4e(0x15d)])];for(const _0x4286d4 of _0x1d183b){if(_0x1e9474['Hamiw'](existsSync,_0x4286d4))try{const _0x25b679=JSON[_0x10db4e(0x16c)](readFileSync(_0x4286d4,_0x10db4e(0x160)));return _0x25b679['version']||'unknown';}catch{continue;}}return'unknown';}export function getLatestVersion(){const _0x59dc07=_0x27b4,_0x4be3fd={'DmhEg':_0x59dc07(0x160),'RdgjX':_0x59dc07(0x168),'jcOoQ':function(_0x59931a,_0x13ec56){return _0x59931a instanceof _0x13ec56;}};try{const _0x318051=execSync(_0x59dc07(0x155)+PACKAGE_NAME+'\x20version',{'encoding':_0x4be3fd[_0x59dc07(0x164)],'timeout':0x2710,'stdio':[_0x4be3fd[_0x59dc07(0x162)],_0x4be3fd[_0x59dc07(0x162)],_0x59dc07(0x168)]});return{'version':_0x318051[_0x59dc07(0x169)]()};}catch(_0x5cf603){const _0x4d8540=_0x4be3fd[_0x59dc07(0x156)](_0x5cf603,Error)?_0x5cf603[_0x59dc07(0x163)]:String(_0x5cf603);return{'error':_0x4d8540};}}export function compareVersions(_0x34eb75,_0x386532){const _0x2c95d1=_0x27b4,_0x51e6a0={'kWZON':function(_0x372669,_0x402f48){return _0x372669>_0x402f48;}},_0xf86a1c=_0x34eb75[_0x2c95d1(0x15e)]('.')[_0x2c95d1(0x166)](Number),_0x399bfb=_0x386532['split']('.')[_0x2c95d1(0x166)](Number);for(let _0x463ca1=0x0;_0x463ca1<0x3;_0x463ca1++){const _0x49c1a3=_0xf86a1c[_0x463ca1]||0x0,_0x28f6d3=_0x399bfb[_0x463ca1]||0x0;if(_0x51e6a0[_0x2c95d1(0x159)](_0x28f6d3,_0x49c1a3))return 0x1;if(_0x28f6d3<_0x49c1a3)return-0x1;}return 0x0;}
1
+ const _0x5d82bc=_0x4ee9;(function(_0x83736b,_0x5cf825){const _0x55b269=_0x4ee9,_0x103cd5=_0x83736b();while(!![]){try{const _0x3113d9=-parseInt(_0x55b269(0xd5))/0x1*(-parseInt(_0x55b269(0xd9))/0x2)+-parseInt(_0x55b269(0xca))/0x3*(-parseInt(_0x55b269(0xd6))/0x4)+parseInt(_0x55b269(0xcf))/0x5*(-parseInt(_0x55b269(0xcd))/0x6)+parseInt(_0x55b269(0xd0))/0x7*(parseInt(_0x55b269(0xc1))/0x8)+parseInt(_0x55b269(0xc4))/0x9+-parseInt(_0x55b269(0xc0))/0xa+-parseInt(_0x55b269(0xcb))/0xb;if(_0x3113d9===_0x5cf825)break;else _0x103cd5['push'](_0x103cd5['shift']());}catch(_0x2fdd63){_0x103cd5['push'](_0x103cd5['shift']());}}}(_0x5591,0xf2bc4));import{readFileSync}from'fs';import{existsSync}from'fs';import{execSync}from'child_process';import{fileURLToPath}from'url';import{dirname,join}from'path';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const PACKAGE_NAME=_0x5d82bc(0xd7);function _0x4ee9(_0x524576,_0x3e6b26){_0x524576=_0x524576-0xc0;const _0x559196=_0x5591();let _0x4ee9f7=_0x559196[_0x524576];return _0x4ee9f7;}export function getCurrentVersion(){const _0x2dc1f5=_0x5d82bc,_0x2c5391={'qVrsA':_0x2dc1f5(0xc3),'wucTV':function(_0x79907e,_0x24ff44){return _0x79907e(_0x24ff44);},'quYRn':function(_0x2cc594,_0x40a94d,_0xb343d1){return _0x2cc594(_0x40a94d,_0xb343d1);},'NczMh':'utf-8','vaZna':_0x2dc1f5(0xd4)},_0x4486b7=[join(__dirname,'..','..','package.json'),join(__dirname,'..','..','..',_0x2c5391[_0x2dc1f5(0xc9)])];for(const _0x78c1be of _0x4486b7){if(_0x2c5391[_0x2dc1f5(0xc8)](existsSync,_0x78c1be))try{const _0xc16e89=JSON['parse'](_0x2c5391[_0x2dc1f5(0xd1)](readFileSync,_0x78c1be,_0x2c5391[_0x2dc1f5(0xc5)]));return _0xc16e89['version']||_0x2c5391['vaZna'];}catch{continue;}}return _0x2c5391[_0x2dc1f5(0xce)];}export function getLatestVersion(){const _0x44741b=_0x5d82bc,_0x9ca450={'ATfpd':function(_0x428207,_0x576a22,_0x229278){return _0x428207(_0x576a22,_0x229278);},'sOfPy':_0x44741b(0xcc),'VZNsS':'pipe'};try{const _0x5ce3b2=_0x9ca450['ATfpd'](execSync,'npm\x20view\x20'+PACKAGE_NAME+'\x20version',{'encoding':_0x9ca450[_0x44741b(0xd2)],'timeout':0x2710,'stdio':[_0x9ca450['VZNsS'],_0x9ca450[_0x44741b(0xc7)],_0x9ca450[_0x44741b(0xc7)]]});return{'version':_0x5ce3b2[_0x44741b(0xd8)]()};}catch(_0x38adf2){const _0x5c7bf8=_0x38adf2 instanceof Error?_0x38adf2['message']:String(_0x38adf2);return{'error':_0x5c7bf8};}}export function compareVersions(_0x48da20,_0x4856fd){const _0x3db1ae=_0x5d82bc,_0x33750b={'PvPAY':function(_0x55adfd,_0x2b168b){return _0x55adfd<_0x2b168b;}},_0x248d38=_0x48da20[_0x3db1ae(0xc2)]('.')[_0x3db1ae(0xc6)](Number),_0x35f9cb=_0x4856fd['split']('.')['map'](Number);for(let _0x10086a=0x0;_0x33750b[_0x3db1ae(0xd3)](_0x10086a,0x3);_0x10086a++){const _0x18b8f3=_0x248d38[_0x10086a]||0x0,_0x49ac0a=_0x35f9cb[_0x10086a]||0x0;if(_0x49ac0a>_0x18b8f3)return 0x1;if(_0x33750b[_0x3db1ae(0xd3)](_0x49ac0a,_0x18b8f3))return-0x1;}return 0x0;}function _0x5591(){const _0x2f9c47=['split','package.json','10665261OjZTYr','NczMh','map','VZNsS','wucTV','qVrsA','2857434NNQgUX','16053851HRDIvI','utf-8','551976reRuhr','vaZna','20hzlqfq','364931lqbsbv','quYRn','sOfPy','PvPAY','unknown','393647lINOmr','4ZgOXDV','@ranger-testing/ranger-cli','trim','4jCgNLB','10936590FQTbyK','152UtbyFt'];_0x5591=function(){return _0x2f9c47;};return _0x5591();}