@ranger-testing/ranger-cli 2.5.4-alpha.feb9faf-20 → 2.5.4

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 (82) hide show
  1. package/README.md +14 -36
  2. package/build/cli.js +1 -1
  3. package/build/commands/addEnv.js +1 -1
  4. package/build/commands/authEncrypt.js +1 -1
  5. package/build/commands/clean.js +1 -1
  6. package/build/commands/config.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/setup/claude.js +1 -1
  27. package/build/commands/setup/opencode.js +1 -1
  28. package/build/commands/setupCi.js +1 -1
  29. package/build/commands/skillup.js +1 -1
  30. package/build/commands/start.js +1 -1
  31. package/build/commands/status.js +1 -1
  32. package/build/commands/update.js +1 -1
  33. package/build/commands/updateEnv.js +1 -1
  34. package/build/commands/useEnv.js +1 -1
  35. package/build/commands/utils/activeProfile.js +1 -1
  36. package/build/commands/utils/agentEnv.js +1 -1
  37. package/build/commands/utils/browserSessionsApi.js +1 -1
  38. package/build/commands/utils/claudeConfig.js +1 -1
  39. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  40. package/build/commands/utils/claudePlugin.js +1 -1
  41. package/build/commands/utils/crypto.js +1 -1
  42. package/build/commands/utils/desirePathLog.js +1 -1
  43. package/build/commands/utils/deviceAuth.js +1 -1
  44. package/build/commands/utils/environment.js +1 -1
  45. package/build/commands/utils/featureApi.js +1 -1
  46. package/build/commands/utils/fixWebmDuration.js +1 -1
  47. package/build/commands/utils/keychain.js +1 -1
  48. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  49. package/build/commands/utils/mcpImageBase64.js +1 -1
  50. package/build/commands/utils/model.js +1 -1
  51. package/build/commands/utils/opencodeConfig.js +1 -1
  52. package/build/commands/utils/playwrightCli.js +1 -1
  53. package/build/commands/utils/profileMessages.js +1 -1
  54. package/build/commands/utils/profileSetupBanner.js +1 -1
  55. package/build/commands/utils/rangerConfig.js +1 -1
  56. package/build/commands/utils/rangerRoot.js +1 -1
  57. package/build/commands/utils/retry.js +1 -1
  58. package/build/commands/utils/sessionCache.js +1 -1
  59. package/build/commands/utils/settings.js +1 -1
  60. package/build/commands/utils/skillContent.js +1 -1
  61. package/build/commands/utils/skills.js +1 -1
  62. package/build/commands/utils/stitchWebmFiles.js +1 -1
  63. package/build/commands/utils/telemetry.js +1 -1
  64. package/build/commands/utils/tokenRefresh.js +1 -1
  65. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  66. package/build/commands/utils/userApi.js +1 -1
  67. package/build/commands/utils/version.js +1 -1
  68. package/build/commands/verifyFeature.js +1 -1
  69. package/build/commands/verifyFeatureCli.js +1 -1
  70. package/build/skills/ranger/SKILL.md +6 -36
  71. package/build/skills/ranger/create.md +0 -19
  72. package/build/skills/ranger/verify.md +7 -46
  73. package/package.json +3 -8
  74. package/build/commands/migrateProfile.js +0 -1
  75. package/build/commands/utils/cloudProfile.js +0 -1
  76. package/build/commands/utils/cloudProfileSession.js +0 -1
  77. package/build/commands/utils/gitTracked.js +0 -1
  78. package/build/commands/utils/legacyWarning.js +0 -1
  79. package/build/commands/utils/matchAuthEnvironment.js +0 -1
  80. package/build/commands/utils/projectsConfig.js +0 -1
  81. package/build/commands/utils/resolveProfileContext.js +0 -1
  82. package/build/commands/utils/resolveProfileUrl.js +0 -1
@@ -1 +1 @@
1
- const _0x5b1811=_0x5b85;(function(_0x4c5598,_0x438a7d){const _0x48ad2f=_0x5b85,_0x3e2fa7=_0x4c5598();while(!![]){try{const _0x4102d6=parseInt(_0x48ad2f(0xe9))/0x1+-parseInt(_0x48ad2f(0xce))/0x2+parseInt(_0x48ad2f(0xc2))/0x3+-parseInt(_0x48ad2f(0xdf))/0x4+-parseInt(_0x48ad2f(0xf0))/0x5*(-parseInt(_0x48ad2f(0xea))/0x6)+parseInt(_0x48ad2f(0xc4))/0x7*(parseInt(_0x48ad2f(0xb4))/0x8)+-parseInt(_0x48ad2f(0xc7))/0x9;if(_0x4102d6===_0x438a7d)break;else _0x3e2fa7['push'](_0x3e2fa7['shift']());}catch(_0x1a6e91){_0x3e2fa7['push'](_0x3e2fa7['shift']());}}}(_0x5b1f,0x2ce9f));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';function _0x5b85(_0x9dc27c,_0x5dd8d5){_0x9dc27c=_0x9dc27c-0x9d;const _0x5b1fc2=_0x5b1f();let _0x5b8539=_0x5b1fc2[_0x9dc27c];return _0x5b8539;}import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0xfaeeb8,_0x353064){const _0x280b3d=_0x5b85,_0x7a8f8b={'cQcvD':function(_0x1429d1,_0x1c5845,_0x16c8d7,_0x466dc8){return _0x1429d1(_0x1c5845,_0x16c8d7,_0x466dc8);},'MNdHq':function(_0x3de07d,_0x3720c0,_0x41807e,_0x28fedf){return _0x3de07d(_0x3720c0,_0x41807e,_0x28fedf);},'Tthhc':_0x280b3d(0xcd),'COdEn':function(_0x1c4300,_0x54740a){return _0x1c4300(_0x54740a);}},_0x15d43f=_0x7a8f8b['cQcvD'](join,_0x353064,'ci',_0xfaeeb8),_0x6b83dc=_0x7a8f8b[_0x280b3d(0xa7)](join,_0x353064,_0x7a8f8b['Tthhc'],_0xfaeeb8),_0x3a4e14=join(_0x353064,_0xfaeeb8),_0x4824a5=join(_0x353064,_0x7a8f8b['Tthhc']),_0x544ca4=join(_0x353064,'ci');if(existsSync(_0x15d43f))return _0x15d43f;if(_0x7a8f8b['COdEn'](existsSync,_0x6b83dc))return _0x6b83dc;if(_0x7a8f8b['COdEn'](existsSync,_0x3a4e14)&&(_0x3a4e14!==_0x4824a5&&_0x3a4e14!==_0x544ca4?!![]:hasLegacyProfileFiles(_0x3a4e14)))return _0x3a4e14;return null;}export function getEnvDir(_0x565de6,_0x2a9c39={}){const _0x2ada3f=_0x5b85,_0xf5b7b8={'MCrFl':function(_0x1c35dd,_0x573edc,_0x3c6db0){return _0x1c35dd(_0x573edc,_0x3c6db0);},'ywHvJ':function(_0x13712c,_0x466f1b){return _0x13712c(_0x466f1b);},'qEpgr':function(_0x5cd453){return _0x5cd453();},'mwDbz':_0x2ada3f(0xcd)},_0x1da0fa=getRangerDir(),_0x240d76=_0xf5b7b8['MCrFl'](findEnvInRoot,_0x565de6,_0x1da0fa);if(_0x240d76){if(_0x2a9c39['forWrite']&&_0xf5b7b8['ywHvJ'](isLegacyEnvPath,_0x240d76))throw _0xf5b7b8['MCrFl'](legacyWriteError,_0x565de6,_0x240d76);return _0x240d76;}const _0x1d8dce=_0xf5b7b8['qEpgr'](getRangerHomeDir);if(_0x1d8dce!==_0x1da0fa){const _0x79d670=_0xf5b7b8['MCrFl'](findEnvInRoot,_0x565de6,_0x1d8dce);if(_0x79d670){if(_0x2a9c39[_0x2ada3f(0xfd)]&&_0xf5b7b8['ywHvJ'](isLegacyEnvPath,_0x79d670))throw legacyWriteError(_0x565de6,_0x79d670);return _0x79d670;}}const _0x500b07=join(_0x1d8dce,_0xf5b7b8[_0x2ada3f(0xf7)],_0x565de6);if(_0x2a9c39[_0x2ada3f(0xfd)])throw legacyWriteError(_0x565de6,_0x500b07);return _0x500b07;}function isLegacyEnvPath(_0x47bdfc){const _0x3ccbbf=_0x5b85,_0x12877f={'XBpGl':function(_0x41eddd,_0xf75a17){return _0x41eddd===_0xf75a17;}},_0x1b4a70=getRangerDir(),_0x1e1859=getRangerHomeDir();for(const _0x50b0cc of new Set([_0x1b4a70,_0x1e1859])){const _0x54dfbe=_0x50b0cc[_0x3ccbbf(0xc5)]('/')?_0x50b0cc:_0x50b0cc+'/';if(_0x12877f[_0x3ccbbf(0xf4)](_0x47bdfc,_0x50b0cc)||_0x47bdfc['startsWith'](_0x54dfbe))return!![];}return![];}function legacyWriteError(_0x39064a,_0x3a407d){const _0x360561=_0x5b85,_0x2902e5={'JjfZJ':function(_0x53016d,_0x1a0816){return _0x53016d+_0x1a0816;}};return new Error(_0x2902e5[_0x360561(0xf2)]('Refusing\x20to\x20write\x20profile\x20\x22'+_0x39064a+_0x360561(0x105)+_0x3a407d+'.\x0a'+_0x360561(0xae),_0x360561(0x9f))+_0x360561(0xb0));}export function findExistingEnv(_0x5d2b6a,_0x2b05b5){const _0x48d003=_0x5b85,_0x170526={'rZLwF':function(_0x3e2024){return _0x3e2024();},'NBrFM':_0x48d003(0xe7),'gmLZC':function(_0x58b1e0,_0xdf032e,_0x3f90ab){return _0x58b1e0(_0xdf032e,_0x3f90ab);},'nHWLh':function(_0x3dd79f,_0x2b06a1,_0x3cbded,_0x288018){return _0x3dd79f(_0x2b06a1,_0x3cbded,_0x288018);},'doUkG':_0x48d003(0xcd),'yFMzu':function(_0x5ad7e1,_0x8b20b4,_0x101116){return _0x5ad7e1(_0x8b20b4,_0x101116);},'bQeBw':function(_0x22276f,_0x419bad){return _0x22276f(_0x419bad);},'vHina':function(_0x40c848,_0x23a2ae){return _0x40c848===_0x23a2ae;},'oNXCA':function(_0x2d8c8f,_0x2e876f){return _0x2d8c8f===_0x2e876f;},'fqchB':function(_0x4da9c1,_0x2ad847){return _0x4da9c1(_0x2ad847);}},_0x5ac1dc=_0x2b05b5?.[_0x48d003(0xd9)],_0x4e1247=_0x5ac1dc?[_0x5ac1dc]:[_0x170526[_0x48d003(0x102)](getRangerDir),_0x170526[_0x48d003(0x102)](getRangerHomeDir)][_0x48d003(0xd7)]((_0x507729,_0x36703f,_0x19305c)=>_0x19305c['indexOf'](_0x507729)===_0x36703f),_0x43d5c9=_0x2b05b5?.['locations']??['ci',_0x48d003(0xcd),_0x170526[_0x48d003(0xca)]];for(const _0x1052ae of _0x4e1247){const _0x43f9a0=join(_0x1052ae,'local'),_0x49ad98=_0x170526[_0x48d003(0xfe)](join,_0x1052ae,'ci'),_0x51cf6a=[{'location':'ci','path':_0x170526[_0x48d003(0xcf)](join,_0x1052ae,'ci',_0x5d2b6a)},{'location':_0x170526['doUkG'],'path':_0x170526[_0x48d003(0xcf)](join,_0x1052ae,_0x48d003(0xcd),_0x5d2b6a)},{'location':_0x48d003(0xe7),'path':_0x170526['yFMzu'](join,_0x1052ae,_0x5d2b6a)}];for(const _0x38d7a7 of _0x51cf6a){if(_0x43d5c9[_0x48d003(0xb9)](_0x38d7a7['location'])&&_0x170526[_0x48d003(0xd5)](existsSync,_0x38d7a7[_0x48d003(0x104)])){if(_0x170526[_0x48d003(0xa2)](_0x38d7a7['location'],_0x170526['NBrFM'])&&(_0x38d7a7[_0x48d003(0x104)]===_0x43f9a0||_0x170526['oNXCA'](_0x38d7a7[_0x48d003(0x104)],_0x49ad98))&&!_0x170526[_0x48d003(0xde)](hasLegacyProfileFiles,_0x38d7a7['path']))continue;return{'path':_0x38d7a7['path'],'location':_0x38d7a7[_0x48d003(0xbe)]};}}}return null;}function hasLegacyProfileFiles(_0x5e13e2){const _0x4e0300=_0x5b85,_0x2d6db0={'UjWHS':function(_0x138146,_0x14cbb2){return _0x138146(_0x14cbb2);},'weGBc':function(_0x35cf3e,_0x12066e,_0x37f748){return _0x35cf3e(_0x12066e,_0x37f748);},'fOWIU':'auth.json','TJIjX':'auth.json.enc'};return _0x2d6db0[_0x4e0300(0xd2)](existsSync,_0x2d6db0['weGBc'](join,_0x5e13e2,_0x4e0300(0xee)))||existsSync(join(_0x5e13e2,_0x2d6db0['fOWIU']))||_0x2d6db0[_0x4e0300(0xd2)](existsSync,join(_0x5e13e2,_0x2d6db0['TJIjX']));}export function isEnvCi(_0x573a5f){const _0x4ddace=_0x5b85,_0x323f20={'wtxCo':function(_0x28ed70){return _0x28ed70();},'nVBFx':function(_0x217ae7,_0x50f7d4){return _0x217ae7!==_0x50f7d4;},'MRiyn':function(_0x8a13da,_0x2bb3e0,_0x3e1d19,_0x35e756){return _0x8a13da(_0x2bb3e0,_0x3e1d19,_0x35e756);}};if(existsSync(join(_0x323f20[_0x4ddace(0xd4)](getRangerDir),'ci',_0x573a5f)))return!![];const _0xb2cca4=getRangerHomeDir();if(_0x323f20['nVBFx'](_0xb2cca4,getRangerDir())&&existsSync(_0x323f20[_0x4ddace(0xf3)](join,_0xb2cca4,'ci',_0x573a5f)))return!![];return![];}export async function cleanupTempFiles(_0x3e7644){const _0x3e84f7=_0x5b85,_0x5bb1c6={'qrfsl':_0x3e84f7(0xff)},_0x11b4ba=[_0x3e7644['tempAuthPath'],_0x3e7644['configPath']][_0x3e84f7(0xd7)](Boolean);await Promise[_0x3e84f7(0xcc)](_0x11b4ba['map'](_0x3d8aff=>unlink(_0x3d8aff)['catch'](_0x1bbdbd=>{const _0x5d7cbe=_0x3e84f7;_0x1bbdbd['code']!==_0x5bb1c6['qrfsl']&&console['warn'](_0x5d7cbe(0xb2)+_0x3d8aff+':',_0x1bbdbd['message']);})));}export function getSettingsPath(_0x3127b3){const _0xa60108=_0x5b85,_0x2bd008={'XOZRY':function(_0x301531,_0x2c7666,_0x2deb4d){return _0x301531(_0x2c7666,_0x2deb4d);}};return _0x2bd008['XOZRY'](join,getEnvDir(_0x3127b3),_0xa60108(0xee));}export async function loadSettings(_0x462bc0){const _0x35469e=_0x5b85,_0x4c8f01={'eBsvH':function(_0x1aba08,_0x2f94db){return _0x1aba08(_0x2f94db);},'HadjV':function(_0xa50166,_0x37c507,_0x336cb3){return _0xa50166(_0x37c507,_0x336cb3);}},_0x20dfcb=_0x4c8f01[_0x35469e(0xd3)](getSettingsPath,_0x462bc0);if(!existsSync(_0x20dfcb))return{};try{const _0x1aeef3=await _0x4c8f01[_0x35469e(0xa9)](readFile,_0x20dfcb,'utf-8');return JSON[_0x35469e(0xe2)](_0x1aeef3);}catch{return{};}}export async function saveSettings(_0x3190ff,_0x112e26){const _0x4e52a8=_0x5b85,_0x279304={'TazEk':function(_0x181168,_0x5e5a27){return _0x181168(_0x5e5a27);},'sHFmC':function(_0x176ee8,_0xd3c94e){return _0x176ee8(_0xd3c94e);},'PzgYE':function(_0x1f9ee3,_0x3b5775,_0x51270f){return _0x1f9ee3(_0x3b5775,_0x51270f);}},_0x135a64=_0x279304[_0x4e52a8(0xe0)](getSettingsPath,_0x3190ff),_0x4d712d=_0x279304['sHFmC'](dirname,_0x135a64);!_0x279304[_0x4e52a8(0xe0)](existsSync,_0x4d712d)&&await mkdir(_0x4d712d,{'recursive':!![]}),await _0x279304[_0x4e52a8(0xd8)](writeFile,_0x135a64,JSON[_0x4e52a8(0xc0)](_0x112e26,null,0x2));}export function resolveEnvVars(_0x1652df){const _0x53824d=_0x5b85,_0x283042={'NxJYV':function(_0x418264,_0x2a3ca5){return _0x418264===_0x2a3ca5;}};if(typeof _0x1652df===_0x53824d(0xec))return _0x1652df[_0x53824d(0xda)](/\$\{(\w+)\}/g,(_0x1fddeb,_0xb13f2e)=>{const _0x342c6e=_0x53824d,_0x43b41a=process['env'][_0xb13f2e];if(_0x43b41a===undefined)throw new Error(_0x342c6e(0xb8)+_0xb13f2e+_0x342c6e(0xa5));return _0x43b41a;});if(Array['isArray'](_0x1652df))return _0x1652df[_0x53824d(0x100)](resolveEnvVars);if(_0x1652df&&_0x283042['NxJYV'](typeof _0x1652df,_0x53824d(0xe1)))return Object[_0x53824d(0xe4)](Object['entries'](_0x1652df)['map'](([_0x2249f9,_0x3a9398])=>[_0x2249f9,resolveEnvVars(_0x3a9398)]));return _0x1652df;}const isRecord=_0x40c0ac=>typeof _0x40c0ac===_0x5b1811(0xe1)&&_0x40c0ac!==null&&!Array[_0x5b1811(0xdd)](_0x40c0ac),asRecord=_0x2fe945=>isRecord(_0x2fe945)?_0x2fe945:undefined,mergeHeaders=(_0x61e654,_0x5e4b65)=>{const _0x2f07f5=_0x5b1811,_0x153403={'yGrIv':function(_0xf81df3,_0x5b69e8){return _0xf81df3??_0x5b69e8;}},_0x5631cd={..._0x153403['yGrIv'](_0x61e654,{}),..._0x153403[_0x2f07f5(0xa8)](_0x5e4b65,{})};return Object['keys'](_0x5631cd)['length']?_0x5631cd:undefined;},SAFE_MODE_ARGS=[_0x5b1811(0x9d)],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content','--unsafely-treat-insecure-origin-as-secure=http://localhost',_0x5b1811(0xd0)];export function buildBrowserOptionsFromSettings(_0x50c783,_0x4c0016={}){const _0x1f787d=_0x5b1811,_0x2ceb4d={'fNgor':function(_0x3973ea,_0x199d95){return _0x3973ea===_0x199d95;},'QakIb':function(_0x5e49f9,_0x19dd6b){return _0x5e49f9(_0x19dd6b);},'VzPsr':_0x1f787d(0xec),'vyMJd':function(_0x4ee846,_0x59ccc6,_0x3f0cbe){return _0x4ee846(_0x59ccc6,_0x3f0cbe);}},_0xabee43=asRecord(_0x50c783['browser']),_0x39b23c={...asRecord(_0xabee43?.['launchOptions'])??{}};_0x2ceb4d[_0x1f787d(0xc6)](typeof _0x4c0016[_0x1f787d(0xef)],_0x1f787d(0xb3))&&(_0x39b23c[_0x1f787d(0xef)]=_0x4c0016['headless']);if(_0x50c783[_0x1f787d(0xd1)]){const _0x4ae669=_0x39b23c[_0x1f787d(0xc8)]??[],_0x591c9d=SAFE_MODE_ARGS[_0x1f787d(0xd7)](_0x560ce0=>!_0x4ae669['includes'](_0x560ce0));_0x39b23c['args']=[..._0x4ae669,..._0x591c9d];}if(_0x50c783[_0x1f787d(0xfa)]){const _0x3a5eca=_0x39b23c['args']??[],_0x4fdcf7=ALLOW_LOCALHOST_ARGS['filter'](_0x306fa0=>!_0x3a5eca[_0x1f787d(0xb9)](_0x306fa0));_0x39b23c['args']=[..._0x3a5eca,..._0x4fdcf7];}const _0xf98ae8={..._0x2ceb4d['QakIb'](asRecord,_0xabee43?.[_0x1f787d(0xa1)])??{}};_0xf98ae8['ignoreHTTPSErrors']=!![];typeof _0x50c783['userAgent']===_0x2ceb4d['VzPsr']&&(_0xf98ae8[_0x1f787d(0x103)]=_0x50c783[_0x1f787d(0x103)]);const _0x1fff6b=_0x2ceb4d['vyMJd'](mergeHeaders,asRecord(_0xf98ae8[_0x1f787d(0xfc)]),asRecord(_0x50c783[_0x1f787d(0xa3)]));return _0x1fff6b?_0xf98ae8[_0x1f787d(0xfc)]=_0x1fff6b:delete _0xf98ae8['extraHTTPHeaders'],_0x4c0016[_0x1f787d(0xaf)]&&(_0xf98ae8['storageState']=_0x4c0016['storageStatePath']),{'launchOptions':_0x39b23c,'contextOptions':_0xf98ae8};}async function resolveLocalAuthPath(_0xd26ab){const _0x3f45c5=_0x5b1811,_0x3b35ef={'mdBfy':_0x3f45c5(0xac),'ncrzP':'auth.json','coblY':function(_0x446c94,_0x2cbcca){return _0x446c94(_0x2cbcca);},'xQPzk':function(_0xdc0c37,_0x27d5d3){return _0xdc0c37(_0x27d5d3);},'PFFWI':function(_0x2491f3,_0x1af6c0){return _0x2491f3(_0x1af6c0);}},_0x20ee11=join(_0xd26ab,_0x3b35ef['mdBfy']),_0x3a0e48=join(_0xd26ab,_0x3b35ef['ncrzP']);if(_0x3b35ef[_0x3f45c5(0xb6)](existsSync,_0x20ee11))try{const _0x685709=await getToken();if(!_0x685709)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x36ae1a=await _0x3b35ef[_0x3f45c5(0xed)](readFile,_0x20ee11),_0x122ae5=decrypt(_0x36ae1a,_0x685709),_0x3473eb=join(tmpdir(),_0x3f45c5(0xc1)+Date[_0x3f45c5(0xbf)]()+'.json');return await writeFile(_0x3473eb,_0x122ae5),{'storageStatePath':_0x3473eb,'tempAuthPath':_0x3473eb};}catch(_0x435daa){const _0x116b55=_0x435daa instanceof Error?_0x435daa['message']:String(_0x435daa);throw new Error(_0x3f45c5(0x9e)+_0x116b55);}if(_0x3b35ef[_0x3f45c5(0xb1)](existsSync,_0x3a0e48))return{'storageStatePath':_0x3a0e48};return{};}export async function buildPlaywrightConfig(_0x2f20e5,_0x2208a6,_0xf37d6f,_0x451f8a,_0x486fee){const _0x44b095=_0x5b1811,_0x3f393b={'BOvoV':function(_0xcec985,_0x30f471,_0x544838,_0x44cd95,_0x1bec39,_0x3f8c4,_0x1dfd0d){return _0xcec985(_0x30f471,_0x544838,_0x44cd95,_0x1bec39,_0x3f8c4,_0x1dfd0d);},'FAXvb':function(_0x2b1f80,_0x290312){return _0x2b1f80(_0x290312);}};if(_0x486fee)return _0x3f393b[_0x44b095(0xf9)](buildPlaywrightConfigCore,_0x2f20e5,_0x486fee,_0x2208a6,_0xf37d6f,_0x451f8a,'stagehand');const {storageStatePath:_0x18e263,tempAuthPath:_0x4b7a64}=await _0x3f393b['FAXvb'](resolveLocalAuthPath,getEnvDir(_0x2208a6));try{const _0x150df8=await buildPlaywrightConfigCore(_0x2f20e5,_0x18e263,_0x2208a6,_0xf37d6f,_0x451f8a,_0x44b095(0xf5));return{..._0x150df8,'tempAuthPath':_0x4b7a64};}catch(_0x5d8e25){_0x4b7a64&&await _0x3f393b[_0x44b095(0xeb)](unlink,_0x4b7a64)['catch'](()=>{});throw _0x5d8e25;}}export async function buildPlaywrightConfigCore(_0x5a86c6,_0x1314bc,_0x383e77,_0x5ba1c8,_0x4d2204,_0x1e82ae='stagehand'){const _0x150a39=_0x5b1811,_0x2568fc={'UUDuM':'--disable-setuid-sandbox','Ffwov':function(_0x132f47){return _0x132f47();},'swMFH':function(_0x46024b,_0x917061){return _0x46024b(_0x917061);},'Bejxm':_0x150a39(0xad),'cyMBi':_0x150a39(0xbb),'OXxHp':_0x150a39(0xfb),'lfMGI':'pdf','BtjHh':'vision','yXwrM':function(_0x1ae106,_0x4aa112,_0xc4864e){return _0x1ae106(_0x4aa112,_0xc4864e);},'QLdEa':function(_0x1e3e42,_0xb50496){return _0x1e3e42===_0xb50496;},'rNVNh':'playwright-cli','zOuvv':'-cli'},_0x4d3341=_0x5ba1c8||_0x2568fc[_0x150a39(0xbc)](randomUUID),_0x8751ff=join(_0x2568fc[_0x150a39(0xbc)](getRangerDir),'sessions',_0x4d3341),_0x264648=_0x2568fc[_0x150a39(0xaa)](Boolean,_0x5a86c6[_0x150a39(0xbd)]),_0x25c21a=_0x264648?{'browserName':_0x2568fc[_0x150a39(0xba)],'cdpEndpoint':_0x5a86c6[_0x150a39(0xbd)]}:((()=>{const _0x1b0698=_0x150a39,{launchOptions:_0x4b3465,contextOptions:_0x5b1e03}=buildBrowserOptionsFromSettings(_0x5a86c6,{'headless':_0x4d2204?![]:_0x5a86c6['headless']??!![],'storageStatePath':_0x1314bc});if(process['getuid']?.()===0x0){const _0x155e28=['--no-sandbox',_0x2568fc['UUDuM']],_0x465f3b=_0x4b3465['args']??[],_0x5dcc50=_0x155e28[_0x1b0698(0xd7)](_0x2b4d66=>!_0x465f3b[_0x1b0698(0xb9)](_0x2b4d66));_0x4b3465[_0x1b0698(0xc8)]=[..._0x465f3b,..._0x5dcc50];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x4b3465,'contextOptions':{..._0x5b1e03,'permissions':['clipboard-read',_0x1b0698(0xf1)],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x12fdbb=_0x1e82ae==='playwright-cli'?{'browser':_0x25c21a,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x8751ff,'outputMode':_0x2568fc[_0x150a39(0xd6)],'codegen':_0x150a39(0xb5)}:{'name':_0x383e77,'browser':_0x25c21a,'capabilities':['core',_0x2568fc['OXxHp'],_0x150a39(0xa0),_0x2568fc[_0x150a39(0xc9)],_0x2568fc[_0x150a39(0xb7)]],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x8751ff};if(!_0x264648){const _0x52151d=_0x12fdbb[_0x150a39(0xe5)],_0x3e785a=_0x52151d[_0x150a39(0xa1)];if(_0x3e785a['userAgent']===undefined)delete _0x3e785a[_0x150a39(0x103)];if(_0x3e785a['storageState']===undefined)delete _0x3e785a['storageState'];}const _0x53a5c9=join(tmpdir(),'ranger-config');!_0x2568fc[_0x150a39(0xaa)](existsSync,_0x53a5c9)&&await _0x2568fc['yXwrM'](mkdir,_0x53a5c9,{'recursive':!![]});const _0x1a6d5b=_0x2568fc['QLdEa'](_0x1e82ae,_0x2568fc['rNVNh'])?_0x2568fc['zOuvv']:'',_0x4c8ec8=join(_0x53a5c9,_0x383e77+'-'+Date['now']()+_0x1a6d5b+_0x150a39(0xe8));return await writeFile(_0x4c8ec8,JSON['stringify'](_0x12fdbb,null,0x2)),{'configPath':_0x4c8ec8};}export async function buildPlaywrightCliConfig(_0x130460,_0x375735,_0x39f763,_0x526318,_0x2868c4){const _0x235e22={'XZuYK':function(_0x3f756d,_0x1a95e7){return _0x3f756d(_0x1a95e7);},'gliAD':function(_0x2cf545,_0x2ffabb,_0xf19aa,_0x510363,_0x4df87d,_0x1329f6,_0x4b345e){return _0x2cf545(_0x2ffabb,_0xf19aa,_0x510363,_0x4df87d,_0x1329f6,_0x4b345e);},'skUvA':function(_0x43f072,_0x51d22c){return _0x43f072(_0x51d22c);}};if(_0x2868c4)return buildPlaywrightConfigCore(_0x130460,_0x2868c4,_0x375735,_0x39f763,_0x526318,'playwright-cli');const {storageStatePath:_0x4f5fc4,tempAuthPath:_0x40cdef}=await _0x235e22['XZuYK'](resolveLocalAuthPath,getEnvDir(_0x375735));try{const _0x11366f=await _0x235e22['gliAD'](buildPlaywrightConfigCore,_0x130460,_0x4f5fc4,_0x375735,_0x39f763,_0x526318,'playwright-cli');return{..._0x11366f,'tempAuthPath':_0x40cdef};}catch(_0x4a098f){_0x40cdef&&await _0x235e22['skUvA'](unlink,_0x40cdef)['catch'](()=>{});throw _0x4a098f;}}export function getNestedValue(_0x3099d6,_0x1ac030){const _0x2221be=_0x5b1811,_0x30cd36={'KPjeE':function(_0x4bfdb8,_0x105f84){return _0x4bfdb8(_0x105f84);},'kzaKt':function(_0x147197,_0x5946b5){return _0x147197===_0x5946b5;},'zrydz':function(_0x273d86,_0x1573c0){return _0x273d86!==_0x1573c0;}},_0x1e6f3c=_0x30cd36['KPjeE'](parseKeyPath,_0x1ac030);let _0xe74650=_0x3099d6;for(const _0x3ea99a of _0x1e6f3c){if(_0xe74650===null||_0x30cd36['kzaKt'](_0xe74650,undefined)||_0x30cd36[_0x2221be(0xe6)](typeof _0xe74650,_0x2221be(0xe1)))return undefined;_0xe74650=_0xe74650[_0x3ea99a];}return _0xe74650;}function _0x5b1f(){const _0x22370b=['gmLZC','ENOENT','map','join','rZLwF','userAgent','path','\x22\x20to\x20legacy\x20path\x20','--disable-features=WebBluetooth','Failed\x20to\x20decrypt\x20auth\x20state:\x20','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','install','contextOptions','vHina','headers','length','\x20is\x20not\x20set','yaTdC','MNdHq','yGrIv','HadjV','swMFH','setupHeader','auth.json.enc','chromium','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','storageStatePath','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','PFFWI','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','boolean','592ZhJfBU','none','coblY','BtjHh','Environment\x20variable\x20','includes','Bejxm','file','Ffwov','cdpEndpoint','location','now','stringify','ranger-auth-','649920fOfmIE','repeat','32375nSPSxh','endsWith','fNgor','373068eWufEP','args','lfMGI','NBrFM','entries','all','local','467298EZrQzO','nHWLh','--allow-insecure-localhost','safeMode','UjWHS','eBsvH','wtxCo','bQeBw','cyMBi','filter','PzgYE','rangerDir','replace','aqTiU','ZAqJG','isArray','fqchB','1467784RKhFlQ','TazEk','object','parse','yuwrC','fromEntries','browser','zrydz','legacy','.json','141242CZPGIV','678qGiEOS','FAXvb','string','xQPzk','settings.json','headless','5570HuExZz','clipboard-write','JjfZJ','MRiyn','XBpGl','stagehand','tXDhe','mwDbz','push','BOvoV','allowInsecureLocalhost','tabs','extraHTTPHeaders','forWrite'];_0x5b1f=function(){return _0x22370b;};return _0x5b1f();}export function setNestedValue(_0x1bda3f,_0xf271a1,_0x421b77){const _0x357e71=_0x5b1811,_0x40223a={'qkJTd':_0x357e71(0xe1),'eURtT':function(_0x599826,_0x3a3caa){return _0x599826-_0x3a3caa;}},_0x10c6e1=parseKeyPath(_0xf271a1);let _0x5b4fce=_0x1bda3f;for(let _0x50ce53=0x0;_0x50ce53<_0x10c6e1[_0x357e71(0xa4)]-0x1;_0x50ce53++){const _0x3ebe6c=_0x10c6e1[_0x50ce53];(!(_0x3ebe6c in _0x5b4fce)||typeof _0x5b4fce[_0x3ebe6c]!==_0x40223a['qkJTd'])&&(_0x5b4fce[_0x3ebe6c]={}),_0x5b4fce=_0x5b4fce[_0x3ebe6c];}_0x5b4fce[_0x10c6e1[_0x40223a['eURtT'](_0x10c6e1[_0x357e71(0xa4)],0x1)]]=_0x421b77;}export function deleteNestedValue(_0x72d5aa,_0xf34f84){const _0x55ca33=_0x5b1811,_0x2f171e={'vOXsb':function(_0x262ed5,_0x1f2b20){return _0x262ed5<_0x1f2b20;},'aqTiU':function(_0x1f44eb,_0x3d365b){return _0x1f44eb!==_0x3d365b;},'OKwIP':function(_0x289cd4,_0x1aec46){return _0x289cd4!==_0x1aec46;},'tXDhe':function(_0xcc480e,_0x37572f){return _0xcc480e in _0x37572f;}},_0x566979=parseKeyPath(_0xf34f84);let _0x30c04d=_0x72d5aa;for(let _0x3693b3=0x0;_0x2f171e['vOXsb'](_0x3693b3,_0x566979[_0x55ca33(0xa4)]-0x1);_0x3693b3++){if(_0x30c04d===null||_0x30c04d===undefined||_0x2f171e[_0x55ca33(0xdb)](typeof _0x30c04d,'object'))return![];_0x30c04d=_0x30c04d[_0x566979[_0x3693b3]];}if(_0x30c04d===null||_0x30c04d===undefined||_0x2f171e['OKwIP'](typeof _0x30c04d,'object'))return![];const _0x28389d=_0x566979[_0x566979[_0x55ca33(0xa4)]-0x1];if(_0x2f171e[_0x55ca33(0xf6)](_0x28389d,_0x30c04d))return delete _0x30c04d[_0x28389d],!![];return![];}function parseKeyPath(_0x9c4421){const _0x1efb33=_0x5b1811,_0x20aeb9={'yaTdC':function(_0x2cf9f1,_0x3fb9bb){return _0x2cf9f1===_0x3fb9bb;},'ZAqJG':_0x1efb33(0xa3),'yuwrC':'setupHeaders'},_0x366b9f=_0x9c4421['split']('.');return _0x20aeb9[_0x1efb33(0xa6)](_0x366b9f[0x0],'header')&&(_0x366b9f[0x0]=_0x20aeb9[_0x1efb33(0xdc)]),_0x366b9f[0x0]===_0x1efb33(0xab)&&(_0x366b9f[0x0]=_0x20aeb9[_0x1efb33(0xe3)]),_0x366b9f;}export function formatSettings(_0x255732,_0x57d276=0x0){const _0x39fc2b=_0x5b1811,_0x14962a={'SnGMz':function(_0x415a18,_0x551723){return _0x415a18===_0x551723;}},_0x1f865e=[],_0x3d1e03='\x20\x20'[_0x39fc2b(0xc3)](_0x57d276);for(const [_0x19c4df,_0xae3af8]of Object[_0x39fc2b(0xcb)](_0x255732)){if(_0x14962a['SnGMz'](_0xae3af8,undefined))continue;if(typeof _0xae3af8==='object'&&_0xae3af8!==null){_0x1f865e[_0x39fc2b(0xf8)](''+_0x3d1e03+_0x19c4df+':');for(const [_0x58adba,_0x1ec6a1]of Object['entries'](_0xae3af8)){_0x1f865e['push'](_0x3d1e03+'\x20\x20'+_0x58adba+':\x20'+_0x1ec6a1);}}else _0x1f865e[_0x39fc2b(0xf8)](''+_0x3d1e03+_0x19c4df+':\x20'+_0xae3af8);}return _0x1f865e[_0x39fc2b(0x101)]('\x0a');}
1
+ const _0x334ded=_0x4a91;(function(_0x1d3eb8,_0x3ad684){const _0x7f8b5a=_0x4a91,_0xa6f6cf=_0x1d3eb8();while(!![]){try{const _0x1eefe8=parseInt(_0x7f8b5a(0xea))/0x1*(parseInt(_0x7f8b5a(0x12c))/0x2)+parseInt(_0x7f8b5a(0x133))/0x3*(parseInt(_0x7f8b5a(0x145))/0x4)+parseInt(_0x7f8b5a(0x102))/0x5+parseInt(_0x7f8b5a(0xe8))/0x6+-parseInt(_0x7f8b5a(0x12f))/0x7+parseInt(_0x7f8b5a(0xed))/0x8*(-parseInt(_0x7f8b5a(0xd6))/0x9)+-parseInt(_0x7f8b5a(0xe1))/0xa*(parseInt(_0x7f8b5a(0x103))/0xb);if(_0x1eefe8===_0x3ad684)break;else _0xa6f6cf['push'](_0xa6f6cf['shift']());}catch(_0x2c5e8c){_0xa6f6cf['push'](_0xa6f6cf['shift']());}}}(_0x2356,0xab2be));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(_0x4bfc7c){const _0x46ce2d=_0x4a91,_0x740aa9={'EAPJS':function(_0xf9289b,_0x4bfc34,_0x272d7e){return _0xf9289b(_0x4bfc34,_0x272d7e);},'xRNOx':'local','umtIn':function(_0x256213,_0x2cfb76){return _0x256213(_0x2cfb76);},'aCMDS':function(_0x3cffa3,_0x508b1c){return _0x3cffa3!==_0x508b1c;}},_0x53ffce=getRangerDir(),_0x56b430=join(_0x53ffce,'ci',_0x4bfc7c),_0x1bfd6e=join(_0x53ffce,'local',_0x4bfc7c),_0x99c354=_0x740aa9[_0x46ce2d(0x12b)](join,_0x53ffce,_0x4bfc7c),_0x3166a4=_0x740aa9[_0x46ce2d(0x12b)](join,_0x53ffce,_0x740aa9[_0x46ce2d(0x134)]),_0x5a9936=_0x740aa9['EAPJS'](join,_0x53ffce,'ci');if(existsSync(_0x56b430))return _0x56b430;if(_0x740aa9[_0x46ce2d(0xe7)](existsSync,_0x1bfd6e))return _0x1bfd6e;if(existsSync(_0x99c354)&&(_0x740aa9['aCMDS'](_0x99c354,_0x3166a4)&&_0x740aa9['aCMDS'](_0x99c354,_0x5a9936)?!![]:_0x740aa9[_0x46ce2d(0xe7)](hasLegacyProfileFiles,_0x99c354)))return _0x99c354;return _0x1bfd6e;}export function findExistingEnv(_0x3e0f8e,_0x2b4cc3){const _0x3400e3=_0x4a91,_0x35afc2={'AJfKu':function(_0x192e42){return _0x192e42();},'UBnMr':function(_0x39387c,_0x1accc6,_0x24a844){return _0x39387c(_0x1accc6,_0x24a844);},'pcsHF':'local','iEMzj':function(_0x2eab08,_0xd26a53,_0x3fd386,_0x404734){return _0x2eab08(_0xd26a53,_0x3fd386,_0x404734);},'azSsp':function(_0x10f9dd,_0x4635c9,_0x3ac77c,_0x1b78fd){return _0x10f9dd(_0x4635c9,_0x3ac77c,_0x1b78fd);},'DaiWk':'legacy','wmfbm':function(_0xe3251d,_0x464c2a,_0xa1222){return _0xe3251d(_0x464c2a,_0xa1222);},'hfeuo':function(_0x4453f7,_0x3356cc){return _0x4453f7(_0x3356cc);},'YuPrl':function(_0x116f58,_0x3e75b5){return _0x116f58(_0x3e75b5);}},_0x2ea84a=_0x2b4cc3?.['rangerDir']??_0x35afc2[_0x3400e3(0x147)](getRangerDir),_0x5b5e61=_0x2b4cc3?.[_0x3400e3(0x10f)]??['ci',_0x3400e3(0x144),_0x3400e3(0x10b)],_0x2fe323=_0x35afc2['UBnMr'](join,_0x2ea84a,_0x35afc2[_0x3400e3(0x135)]),_0x5f4b64=join(_0x2ea84a,'ci'),_0x1f10da=[{'location':'ci','path':_0x35afc2['iEMzj'](join,_0x2ea84a,'ci',_0x3e0f8e)},{'location':'local','path':_0x35afc2[_0x3400e3(0x14a)](join,_0x2ea84a,_0x3400e3(0x144),_0x3e0f8e)},{'location':_0x35afc2['DaiWk'],'path':_0x35afc2[_0x3400e3(0xd4)](join,_0x2ea84a,_0x3e0f8e)}];for(const _0x148446 of _0x1f10da){if(_0x5b5e61[_0x3400e3(0x13a)](_0x148446[_0x3400e3(0xff)])&&_0x35afc2['hfeuo'](existsSync,_0x148446['path'])){if(_0x148446[_0x3400e3(0xff)]===_0x35afc2['DaiWk']&&(_0x148446[_0x3400e3(0x10e)]===_0x2fe323||_0x148446[_0x3400e3(0x10e)]===_0x5f4b64)&&!_0x35afc2[_0x3400e3(0x149)](hasLegacyProfileFiles,_0x148446['path']))continue;return{'path':_0x148446['path'],'location':_0x148446['location']};}}return null;}function _0x4a91(_0x439770,_0x26bd73){_0x439770=_0x439770-0xd3;const _0x2356bc=_0x2356();let _0x4a9108=_0x2356bc[_0x439770];return _0x4a9108;}function hasLegacyProfileFiles(_0x49efc0){const _0x45ce70=_0x4a91,_0x21dcdf={'bsLio':function(_0x149ada,_0x4c4d24){return _0x149ada(_0x4c4d24);},'yaKZu':function(_0x3218e3,_0x4368e6,_0x5049b7){return _0x3218e3(_0x4368e6,_0x5049b7);},'UWokF':_0x45ce70(0x12d)};return _0x21dcdf[_0x45ce70(0x11d)](existsSync,join(_0x49efc0,_0x45ce70(0xf7)))||_0x21dcdf[_0x45ce70(0x11d)](existsSync,_0x21dcdf[_0x45ce70(0xf8)](join,_0x49efc0,_0x45ce70(0x129)))||existsSync(join(_0x49efc0,_0x21dcdf[_0x45ce70(0x139)]));}export function isEnvCi(_0x209181){const _0x3fc7e2=_0x4a91,_0x3b4225={'onMQd':function(_0x21e9b2,_0x56e9ab,_0x34e847,_0xa3db89){return _0x21e9b2(_0x56e9ab,_0x34e847,_0xa3db89);}};return existsSync(_0x3b4225[_0x3fc7e2(0xda)](join,getRangerDir(),'ci',_0x209181));}export async function cleanupTempFiles(_0x1a7f63){const _0x29fe5b=_0x4a91,_0x50c62e={'npVFt':function(_0x3ebb92,_0x52a2ff){return _0x3ebb92!==_0x52a2ff;}},_0x39e480=[_0x1a7f63[_0x29fe5b(0x107)],_0x1a7f63['configPath']][_0x29fe5b(0x12a)](Boolean);await Promise[_0x29fe5b(0xde)](_0x39e480['map'](_0x27790e=>unlink(_0x27790e)[_0x29fe5b(0xdd)](_0x340da2=>{const _0x47a7c5=_0x29fe5b;_0x50c62e['npVFt'](_0x340da2[_0x47a7c5(0xdb)],'ENOENT')&&console['warn'](_0x47a7c5(0x11f)+_0x27790e+':',_0x340da2[_0x47a7c5(0x10d)]);})));}export function getSettingsPath(_0x57279a){const _0x362f86=_0x4a91,_0x1a4162={'cvhgm':function(_0x287b9e,_0x2dc40b,_0x539bca){return _0x287b9e(_0x2dc40b,_0x539bca);}};return _0x1a4162[_0x362f86(0xdf)](join,getEnvDir(_0x57279a),_0x362f86(0xf7));}function _0x2356(){const _0x3b5a12=['tabs','message','path','locations','mEvAz','args','clipboard-read','ranger-config','pFezw','WITJr','KqImX','setupHeaders','yXFkJ','Failed\x20to\x20decrypt\x20auth\x20state:\x20','isArray','allowInsecureLocalhost','eRDLj','bsLio','getuid','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','iklqh','contextOptions','storageState','HWsHs','map','entries','IhIhM','fromEntries','DlOzk','auth.json','filter','EAPJS','2jMnYMY','auth.json.enc','browser','3446947NXODYp','.json','ENstt','storageStatePath','21RAWIMe','xRNOx','pcsHF','--disable-setuid-sandbox','laxqi','chromium','UWokF','includes','push','--allow-running-insecure-content','IAbTe','oiOjr','file','avzpn','extraHTTPHeaders','vFvnz','RRSTy','local','625632teBjgI','NDmcV','AJfKu','lzwAW','YuPrl','azSsp','stringify','object','wmfbm','userAgent','5266935tfPgPg','now','replace','FucbT','onMQd','code','cLqql','catch','all','cvhgm','Environment\x20variable\x20','10EEXSrq','nDrdU','DodyG','hMGzl','clipboard-write','vVxUz','umtIn','4545210ueaiMP','string','938389PBBdAH','ranger-auth-','safeMode','16cMLHcA','yyAUB','qTDJb','-cli.json','IcStC','rHndg','none','XkIZJ','sessions','TCbpS','settings.json','yaKZu','uAqYW','length','utf-8','cdpEndpoint','PpZIb','MivbR','location','MBXNC','dONjB','5854610xCTJbg','17575063GxDISz','PIZBq','pbWdY','boolean','tempAuthPath','headless','allow','pdf','legacy'];_0x2356=function(){return _0x3b5a12;};return _0x2356();}export async function loadSettings(_0x52d16f){const _0x3bcc01=_0x4a91,_0x17a3ec={'JNQOV':function(_0x191d00,_0x3df0d0){return _0x191d00(_0x3df0d0);},'gVLAb':_0x3bcc01(0xfb)},_0x14b63e=getSettingsPath(_0x52d16f);if(!_0x17a3ec['JNQOV'](existsSync,_0x14b63e))return{};try{const _0x48c166=await readFile(_0x14b63e,_0x17a3ec['gVLAb']);return JSON['parse'](_0x48c166);}catch{return{};}}export async function saveSettings(_0x4c9901,_0x10ec55){const _0x228689=_0x4a91,_0x4f6aaa={'OcQlJ':function(_0x55bfae,_0x4b065c){return _0x55bfae(_0x4b065c);},'voOSF':function(_0x1b1a48,_0x5c0d7d,_0xa822a5){return _0x1b1a48(_0x5c0d7d,_0xa822a5);}},_0x135679=_0x4f6aaa['OcQlJ'](getSettingsPath,_0x4c9901),_0x4d662f=_0x4f6aaa['OcQlJ'](dirname,_0x135679);!existsSync(_0x4d662f)&&await mkdir(_0x4d662f,{'recursive':!![]}),await _0x4f6aaa['voOSF'](writeFile,_0x135679,JSON[_0x228689(0x14b)](_0x10ec55,null,0x2));}export function resolveEnvVars(_0x761712){const _0x5622df=_0x4a91,_0x50afa3={'OhJts':function(_0x43ba1c,_0x4bc35f){return _0x43ba1c===_0x4bc35f;},'FucbT':function(_0x2d1072,_0x105561){return _0x2d1072===_0x105561;}};if(_0x50afa3['OhJts'](typeof _0x761712,_0x5622df(0xe9)))return _0x761712[_0x5622df(0xd8)](/\$\{(\w+)\}/g,(_0x364923,_0x15e4d2)=>{const _0x487f18=_0x5622df,_0x51634d=process['env'][_0x15e4d2];if(_0x50afa3['OhJts'](_0x51634d,undefined))throw new Error(_0x487f18(0xe0)+_0x15e4d2+'\x20is\x20not\x20set');return _0x51634d;});if(Array[_0x5622df(0x11a)](_0x761712))return _0x761712[_0x5622df(0x124)](resolveEnvVars);if(_0x761712&&_0x50afa3[_0x5622df(0xd9)](typeof _0x761712,'object'))return Object[_0x5622df(0x127)](Object[_0x5622df(0x125)](_0x761712)['map'](([_0x2727b8,_0x5bb3a5])=>[_0x2727b8,resolveEnvVars(_0x5bb3a5)]));return _0x761712;}const isRecord=_0x513555=>typeof _0x513555==='object'&&_0x513555!==null&&!Array[_0x334ded(0x11a)](_0x513555),asRecord=_0x4b403f=>isRecord(_0x4b403f)?_0x4b403f:undefined,mergeHeaders=(_0x380638,_0x4a43f9)=>{const _0x2b5644=_0x334ded,_0xde5c3b={'IAbTe':function(_0x1d141a,_0xa35b66){return _0x1d141a??_0xa35b66;}},_0x30be8c={..._0x380638??{},..._0xde5c3b[_0x2b5644(0x13d)](_0x4a43f9,{})};return Object['keys'](_0x30be8c)[_0x2b5644(0xfa)]?_0x30be8c:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=['--disable-web-security',_0x334ded(0x13c),'--unsafely-treat-insecure-origin-as-secure=http://localhost','--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x18f0a6,_0x4cb241={}){const _0x3f71ee=_0x334ded,_0x3fa2ed={'ENstt':function(_0x3a3f4a,_0x29e031){return _0x3a3f4a(_0x29e031);},'yXFkJ':function(_0x400884,_0x3453b6){return _0x400884(_0x3453b6);},'XVucl':function(_0x262470,_0x434bd4){return _0x262470===_0x434bd4;},'nouwc':_0x3f71ee(0xe9),'hutuz':function(_0x333cc9,_0x4679c4){return _0x333cc9(_0x4679c4);}},_0x1db078=_0x3fa2ed[_0x3f71ee(0x131)](asRecord,_0x18f0a6[_0x3f71ee(0x12e)]),_0x16de9c={..._0x3fa2ed[_0x3f71ee(0x118)](asRecord,_0x1db078?.['launchOptions'])??{}};typeof _0x4cb241['headless']===_0x3f71ee(0x106)&&(_0x16de9c[_0x3f71ee(0x108)]=_0x4cb241[_0x3f71ee(0x108)]);if(_0x18f0a6[_0x3f71ee(0xec)]){const _0x467d0d=_0x16de9c[_0x3f71ee(0x111)]??[],_0x14da75=SAFE_MODE_ARGS['filter'](_0x54b5fd=>!_0x467d0d['includes'](_0x54b5fd));_0x16de9c[_0x3f71ee(0x111)]=[..._0x467d0d,..._0x14da75];}if(_0x18f0a6[_0x3f71ee(0x11b)]){const _0x5f3331=_0x16de9c[_0x3f71ee(0x111)]??[],_0x840f51=ALLOW_LOCALHOST_ARGS['filter'](_0x59b6d6=>!_0x5f3331['includes'](_0x59b6d6));_0x16de9c[_0x3f71ee(0x111)]=[..._0x5f3331,..._0x840f51];}const _0x1cb4af={...asRecord(_0x1db078?.[_0x3f71ee(0x121)])??{}};_0x1cb4af['ignoreHTTPSErrors']=!![];_0x3fa2ed['XVucl'](typeof _0x18f0a6[_0x3f71ee(0xd5)],_0x3fa2ed['nouwc'])&&(_0x1cb4af[_0x3f71ee(0xd5)]=_0x18f0a6['userAgent']);const _0x381d2e=mergeHeaders(asRecord(_0x1cb4af[_0x3f71ee(0x141)]),_0x3fa2ed['hutuz'](asRecord,_0x18f0a6['headers']));return _0x381d2e?_0x1cb4af['extraHTTPHeaders']=_0x381d2e:delete _0x1cb4af[_0x3f71ee(0x141)],_0x4cb241[_0x3f71ee(0x132)]&&(_0x1cb4af['storageState']=_0x4cb241['storageStatePath']),{'launchOptions':_0x16de9c,'contextOptions':_0x1cb4af};}export async function buildPlaywrightConfig(_0x492dca,_0x400323,_0xe2a64e,_0x434f58){const _0x420882=_0x334ded,_0x3dd6ef={'LYCjq':'--no-sandbox','jKHFv':'chromium','avzpn':'clipboard-read','eRDLj':_0x420882(0xe5),'sGdqj':function(_0x2351b3,_0x3e0061,_0x357816){return _0x2351b3(_0x3e0061,_0x357816);},'PpZIb':'auth.json','nDrdU':function(_0xb0fed3,_0x275b8d){return _0xb0fed3(_0x275b8d);},'cLqql':function(_0x432238){return _0x432238();},'laxqi':function(_0x4a46c0){return _0x4a46c0();},'HzHZK':function(_0x43873d,_0x2831bf,_0x1a0c90,_0x2bbf35){return _0x43873d(_0x2831bf,_0x1a0c90,_0x2bbf35);},'qTDJb':'core','vFvnz':_0x420882(0x10c),'IcStC':'vision','jfjCO':_0x420882(0x109),'lzwAW':function(_0x220ac7,_0x35ac5a,_0x44fd86){return _0x220ac7(_0x35ac5a,_0x44fd86);},'rYkPY':_0x420882(0x113)},_0x3521f4=getEnvDir(_0x400323),_0xbfb0b3=join(_0x3521f4,_0x420882(0x12d)),_0xed0ae9=_0x3dd6ef['sGdqj'](join,_0x3521f4,_0x3dd6ef[_0x420882(0xfd)]);let _0x11cc64,_0x2a2ba0;if(_0x3dd6ef[_0x420882(0xe2)](existsSync,_0xbfb0b3))try{const _0x3502d5=await getToken();if(!_0x3502d5)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x9d9a8c=await _0x3dd6ef[_0x420882(0xe2)](readFile,_0xbfb0b3),_0x236a02=decrypt(_0x9d9a8c,_0x3502d5);_0x2a2ba0=_0x3dd6ef['sGdqj'](join,_0x3dd6ef['cLqql'](tmpdir),_0x420882(0xeb)+Date['now']()+'.json'),await writeFile(_0x2a2ba0,_0x236a02),_0x11cc64=_0x2a2ba0;}catch(_0x128fe7){const _0x896eff=_0x128fe7 instanceof Error?_0x128fe7['message']:String(_0x128fe7);throw new Error(_0x420882(0x119)+_0x896eff);}else existsSync(_0xed0ae9)&&(_0x11cc64=_0xed0ae9);const _0x1014d5=_0xe2a64e||_0x3dd6ef[_0x420882(0x137)](randomUUID),_0x54f3be=_0x3dd6ef['HzHZK'](join,_0x3dd6ef[_0x420882(0xdc)](getRangerDir),_0x420882(0xf5),_0x1014d5),_0x4086de=_0x3dd6ef['nDrdU'](Boolean,_0x492dca[_0x420882(0xfc)]),_0x18abfe=_0x4086de?{'browserName':_0x3dd6ef['jKHFv'],'cdpEndpoint':_0x492dca[_0x420882(0xfc)]}:((()=>{const _0x4ec23d=_0x420882,{launchOptions:_0x21a363,contextOptions:_0x177f75}=buildBrowserOptionsFromSettings(_0x492dca,{'headless':_0x434f58?![]:_0x492dca['headless']??!![],'storageStatePath':_0x11cc64});if(process['getuid']?.()===0x0){const _0x132cb6=[_0x3dd6ef['LYCjq'],'--disable-setuid-sandbox'],_0x37576a=_0x21a363[_0x4ec23d(0x111)]??[],_0x3d0854=_0x132cb6['filter'](_0x13634e=>!_0x37576a['includes'](_0x13634e));_0x21a363[_0x4ec23d(0x111)]=[..._0x37576a,..._0x3d0854];}return{'isolated':!![],'browserName':_0x3dd6ef['jKHFv'],'launchOptions':_0x21a363,'contextOptions':{..._0x177f75,'permissions':[_0x3dd6ef[_0x4ec23d(0x140)],_0x3dd6ef[_0x4ec23d(0x11c)]],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0xedcf1c={'name':_0x400323,'browser':_0x18abfe,'capabilities':[_0x3dd6ef[_0x420882(0xef)],_0x3dd6ef[_0x420882(0x142)],'install',_0x420882(0x10a),_0x3dd6ef[_0x420882(0xf1)]],'imageResponses':_0x3dd6ef['jfjCO'],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x54f3be};if(!_0x4086de){const _0x37f56f=_0xedcf1c['browser'],_0x32b533=_0x37f56f['contextOptions'];if(_0x32b533[_0x420882(0xd5)]===undefined)delete _0x32b533['userAgent'];if(_0x32b533[_0x420882(0x122)]===undefined)delete _0x32b533[_0x420882(0x122)];}const _0x5cd22=_0x3dd6ef[_0x420882(0x148)](join,_0x3dd6ef['laxqi'](tmpdir),_0x3dd6ef['rYkPY']);!existsSync(_0x5cd22)&&await mkdir(_0x5cd22,{'recursive':!![]});const _0x45a95f=_0x3dd6ef['sGdqj'](join,_0x5cd22,_0x400323+'-'+Date['now']()+_0x420882(0x130));return await writeFile(_0x45a95f,JSON['stringify'](_0xedcf1c,null,0x2)),{'configPath':_0x45a95f,'tempAuthPath':_0x2a2ba0};}export async function buildPlaywrightCliConfig(_0x519ddf,_0x574549,_0x251046,_0x3010eb){const _0x17fb2d=_0x334ded,_0x27ff5a={'yyAUB':function(_0x2de110,_0x143772){return _0x2de110===_0x143772;},'MBXNC':'--no-sandbox','DodyG':function(_0x546768,_0x52c0fe){return _0x546768(_0x52c0fe);},'RIwzu':function(_0x2f5383,_0x619773,_0xb5e7bf){return _0x2f5383(_0x619773,_0xb5e7bf);},'uAqYW':function(_0x59e65e,_0x3f5831,_0x974df){return _0x59e65e(_0x3f5831,_0x974df);},'pFezw':function(_0x11df2e){return _0x11df2e();},'XkIZJ':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','vVxUz':function(_0x7a79cb,_0x3e9c70,_0x812661){return _0x7a79cb(_0x3e9c70,_0x812661);},'zYloi':function(_0x44fef2,_0x21cb4e,_0x1d2578){return _0x44fef2(_0x21cb4e,_0x1d2578);},'oiOjr':function(_0x18ff63,_0x512fc0){return _0x18ff63 instanceof _0x512fc0;},'HWsHs':function(_0x39eefb,_0x1619fc){return _0x39eefb(_0x1619fc);},'KGtCU':function(_0x4c23a1){return _0x4c23a1();},'tkqFn':function(_0x874cbb,_0x182022,_0x1df0b5,_0x3c6fa4){return _0x874cbb(_0x182022,_0x1df0b5,_0x3c6fa4);},'rHndg':_0x17fb2d(0xf5),'RRSTy':function(_0x3f4cd7,_0x4225bd){return _0x3f4cd7===_0x4225bd;},'zzZFJ':_0x17fb2d(0x13f),'PIZBq':_0x17fb2d(0xf3),'NDmcV':function(_0x56c99a){return _0x56c99a();},'TCbpS':'ranger-config'},_0x20d38e=_0x27ff5a['DodyG'](getEnvDir,_0x574549),_0x4b09ca=_0x27ff5a['RIwzu'](join,_0x20d38e,_0x17fb2d(0x12d)),_0x8f60ab=_0x27ff5a[_0x17fb2d(0xf9)](join,_0x20d38e,'auth.json');let _0x19cd84,_0x3905aa;if(existsSync(_0x4b09ca))try{const _0x2f6d49=await _0x27ff5a[_0x17fb2d(0x114)](getToken);if(!_0x2f6d49)throw new Error(_0x27ff5a[_0x17fb2d(0xf4)]);const _0x145aee=await readFile(_0x4b09ca),_0x398ab3=_0x27ff5a[_0x17fb2d(0xe6)](decrypt,_0x145aee,_0x2f6d49);_0x3905aa=_0x27ff5a[_0x17fb2d(0xe6)](join,_0x27ff5a['pFezw'](tmpdir),_0x17fb2d(0xeb)+Date[_0x17fb2d(0xd7)]()+_0x17fb2d(0x130)),await _0x27ff5a['zYloi'](writeFile,_0x3905aa,_0x398ab3),_0x19cd84=_0x3905aa;}catch(_0x38cda){const _0x1fa2ed=_0x27ff5a[_0x17fb2d(0x13e)](_0x38cda,Error)?_0x38cda[_0x17fb2d(0x10d)]:_0x27ff5a[_0x17fb2d(0xe3)](String,_0x38cda);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x1fa2ed);}else _0x27ff5a[_0x17fb2d(0x123)](existsSync,_0x8f60ab)&&(_0x19cd84=_0x8f60ab);const _0x12408d=_0x251046||_0x27ff5a['KGtCU'](randomUUID),_0x335b84=_0x27ff5a['tkqFn'](join,getRangerDir(),_0x27ff5a[_0x17fb2d(0xf2)],_0x12408d),_0x347341=Boolean(_0x519ddf[_0x17fb2d(0xfc)]),_0x1c0541=_0x347341?{'browserName':_0x17fb2d(0x138),'cdpEndpoint':_0x519ddf['cdpEndpoint']}:((()=>{const _0x47ad7a=_0x17fb2d,{launchOptions:_0xd46611,contextOptions:_0x34c23d}=buildBrowserOptionsFromSettings(_0x519ddf,{'headless':_0x3010eb?![]:_0x519ddf[_0x47ad7a(0x108)]??!![],'storageStatePath':_0x19cd84});if(_0x27ff5a[_0x47ad7a(0xee)](process[_0x47ad7a(0x11e)]?.(),0x0)){const _0x5b1980=[_0x27ff5a[_0x47ad7a(0x100)],_0x47ad7a(0x136)],_0x5b4462=_0xd46611['args']??[],_0x334924=_0x5b1980[_0x47ad7a(0x12a)](_0x5b317b=>!_0x5b4462['includes'](_0x5b317b));_0xd46611[_0x47ad7a(0x111)]=[..._0x5b4462,..._0x334924];}return{'isolated':!![],'browserName':_0x47ad7a(0x138),'launchOptions':_0xd46611,'contextOptions':{..._0x34c23d,'permissions':[_0x47ad7a(0x112),_0x47ad7a(0xe5)],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x347341){const _0x532795=_0x1c0541[_0x17fb2d(0x121)];if(_0x27ff5a[_0x17fb2d(0x143)](_0x532795['userAgent'],undefined))delete _0x532795[_0x17fb2d(0xd5)];if(_0x532795[_0x17fb2d(0x122)]===undefined)delete _0x532795['storageState'];}const _0x3fc757={'browser':_0x1c0541,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x335b84,'outputMode':_0x27ff5a['zzZFJ'],'codegen':_0x27ff5a[_0x17fb2d(0x104)]},_0x3cf43c=join(_0x27ff5a[_0x17fb2d(0x146)](tmpdir),_0x27ff5a[_0x17fb2d(0xf6)]);!existsSync(_0x3cf43c)&&await mkdir(_0x3cf43c,{'recursive':!![]});const _0x19e3b5=join(_0x3cf43c,_0x574549+'-'+Date['now']()+_0x17fb2d(0xf0));return await writeFile(_0x19e3b5,JSON['stringify'](_0x3fc757,null,0x2)),{'configPath':_0x19e3b5,'tempAuthPath':_0x3905aa};}export function getNestedValue(_0x3e7177,_0x199401){const _0x1c7239=_0x334ded,_0x203c9b={'WITJr':function(_0x5d883a,_0x294dfd){return _0x5d883a(_0x294dfd);},'hMGzl':function(_0x100a2f,_0x4e186e){return _0x100a2f===_0x4e186e;},'nKnPJ':'object'},_0x440c81=_0x203c9b[_0x1c7239(0x115)](parseKeyPath,_0x199401);let _0x4ea54c=_0x3e7177;for(const _0xc15113 of _0x440c81){if(_0x4ea54c===null||_0x203c9b[_0x1c7239(0xe4)](_0x4ea54c,undefined)||typeof _0x4ea54c!==_0x203c9b['nKnPJ'])return undefined;_0x4ea54c=_0x4ea54c[_0xc15113];}return _0x4ea54c;}export function setNestedValue(_0x17f8bd,_0x194acc,_0x10e445){const _0xf817b9=_0x334ded,_0x571b20={'DlOzk':function(_0x285eaa,_0x5da29a){return _0x285eaa(_0x5da29a);},'vIwAA':function(_0x18c29a,_0x26a42f){return _0x18c29a-_0x26a42f;}},_0x2d1e3a=_0x571b20[_0xf817b9(0x128)](parseKeyPath,_0x194acc);let _0x32eaa8=_0x17f8bd;for(let _0x1d37fb=0x0;_0x1d37fb<_0x571b20['vIwAA'](_0x2d1e3a[_0xf817b9(0xfa)],0x1);_0x1d37fb++){const _0x51a463=_0x2d1e3a[_0x1d37fb];(!(_0x51a463 in _0x32eaa8)||typeof _0x32eaa8[_0x51a463]!==_0xf817b9(0xd3))&&(_0x32eaa8[_0x51a463]={}),_0x32eaa8=_0x32eaa8[_0x51a463];}_0x32eaa8[_0x2d1e3a[_0x2d1e3a['length']-0x1]]=_0x10e445;}export function deleteNestedValue(_0x3ab5fd,_0x5de17d){const _0x587661=_0x334ded,_0x3210c0={'iklqh':function(_0x1a485b,_0x188006){return _0x1a485b(_0x188006);},'IhIhM':function(_0x552028,_0x2f055a){return _0x552028-_0x2f055a;},'jHbSJ':function(_0x4029ea,_0x359f6b){return _0x4029ea===_0x359f6b;},'KqImX':function(_0x8fd443,_0x56b933){return _0x8fd443===_0x56b933;},'dONjB':function(_0x2c777e,_0xe32775){return _0x2c777e!==_0xe32775;},'mEvAz':_0x587661(0xd3),'pbWdY':function(_0x4f754d,_0x311d5f){return _0x4f754d in _0x311d5f;}},_0x1b37cf=_0x3210c0[_0x587661(0x120)](parseKeyPath,_0x5de17d);let _0x573303=_0x3ab5fd;for(let _0xde761b=0x0;_0xde761b<_0x3210c0['IhIhM'](_0x1b37cf['length'],0x1);_0xde761b++){if(_0x3210c0['jHbSJ'](_0x573303,null)||_0x3210c0[_0x587661(0x116)](_0x573303,undefined)||_0x3210c0[_0x587661(0x101)](typeof _0x573303,_0x587661(0xd3)))return![];_0x573303=_0x573303[_0x1b37cf[_0xde761b]];}if(_0x3210c0['jHbSJ'](_0x573303,null)||_0x3210c0['jHbSJ'](_0x573303,undefined)||typeof _0x573303!==_0x3210c0[_0x587661(0x110)])return![];const _0x545911=_0x1b37cf[_0x3210c0[_0x587661(0x126)](_0x1b37cf[_0x587661(0xfa)],0x1)];if(_0x3210c0[_0x587661(0x105)](_0x545911,_0x573303))return delete _0x573303[_0x545911],!![];return![];}function parseKeyPath(_0xeaeb28){const _0x19cffb=_0x334ded,_0x4a9814={'ZHhjL':function(_0xb26dd1,_0x5f3bf4){return _0xb26dd1===_0x5f3bf4;},'vvgzN':_0x19cffb(0x117)},_0x238468=_0xeaeb28['split']('.');return _0x4a9814['ZHhjL'](_0x238468[0x0],'header')&&(_0x238468[0x0]='headers'),_0x238468[0x0]==='setupHeader'&&(_0x238468[0x0]=_0x4a9814['vvgzN']),_0x238468;}export function formatSettings(_0x92b5c4,_0x263e6c=0x0){const _0x554551=_0x334ded,_0x20dba0={'MivbR':function(_0x5e5a5b,_0x5f5ab7){return _0x5e5a5b===_0x5f5ab7;},'FRCuu':_0x554551(0xd3),'kGbuO':function(_0x3534b6,_0x2d38f3){return _0x3534b6!==_0x2d38f3;}},_0xcbd8fb=[],_0x1599fc='\x20\x20'['repeat'](_0x263e6c);for(const [_0x29267f,_0x3475a0]of Object[_0x554551(0x125)](_0x92b5c4)){if(_0x20dba0[_0x554551(0xfe)](_0x3475a0,undefined))continue;if(_0x20dba0['MivbR'](typeof _0x3475a0,_0x20dba0['FRCuu'])&&_0x20dba0['kGbuO'](_0x3475a0,null)){_0xcbd8fb[_0x554551(0x13b)](''+_0x1599fc+_0x29267f+':');for(const [_0x24412f,_0x256292]of Object[_0x554551(0x125)](_0x3475a0)){_0xcbd8fb['push'](_0x1599fc+'\x20\x20'+_0x24412f+':\x20'+_0x256292);}}else _0xcbd8fb['push'](''+_0x1599fc+_0x29267f+':\x20'+_0x3475a0);}return _0xcbd8fb['join']('\x0a');}
@@ -1 +1 @@
1
- (function(_0x3d6d12,_0x49a686){const _0x425a51=_0x4601,_0x3d49ae=_0x3d6d12();while(!![]){try{const _0x2029ae=parseInt(_0x425a51(0xe4))/0x1*(parseInt(_0x425a51(0xe6))/0x2)+-parseInt(_0x425a51(0xea))/0x3*(-parseInt(_0x425a51(0xef))/0x4)+parseInt(_0x425a51(0xeb))/0x5*(-parseInt(_0x425a51(0xed))/0x6)+-parseInt(_0x425a51(0xe5))/0x7+parseInt(_0x425a51(0xec))/0x8+parseInt(_0x425a51(0xe7))/0x9+parseInt(_0x425a51(0xe9))/0xa*(-parseInt(_0x425a51(0xf1))/0xb);if(_0x2029ae===_0x49a686)break;else _0x3d49ae['push'](_0x3d49ae['shift']());}catch(_0x598c92){_0x3d49ae['push'](_0x3d49ae['shift']());}}}(_0x4924,0xc2d10));function _0x4924(){const _0x190604=['10nxUdfh','2322593IKlOON','153580AJmHDX','5040594aofAlY','PMGJy','370WOoDOt','9gMnvGC','3626065AAXmFa','7860472THYwip','12pUyEXU','cLHlh','1166108SMChzV','skills','179839MNRztq'];_0x4924=function(){return _0x190604;};return _0x4924();}import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';function _0x4601(_0x1ce2a2,_0x31f465){_0x1ce2a2=_0x1ce2a2-0xe4;const _0x4924bb=_0x4924();let _0x46012a=_0x4924bb[_0x1ce2a2];return _0x46012a;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x433fac){const _0x583ef6=_0x4601,_0x2ba128={'zcnjp':function(_0x21e03c,_0x4811eb,_0x2fdebf){return _0x21e03c(_0x4811eb,_0x2fdebf);},'PMGJy':'utf-8'},_0x209c4b=join(__dirname,'..','..',_0x583ef6(0xf0)),_0x47cc31=join(_0x209c4b,_0x433fac);try{return _0x2ba128['zcnjp'](readFileSync,_0x47cc31,_0x2ba128[_0x583ef6(0xe8)]);}catch{return'';}}export function getRangerSkillContent(){const _0x3261a0=_0x4601,_0x4e83d3={'vqdcI':function(_0x200c0f,_0x562771){return _0x200c0f(_0x562771);},'cLHlh':'ranger/SKILL.md'};return _0x4e83d3['vqdcI'](readSkillContent,_0x4e83d3[_0x3261a0(0xee)]);}
1
+ (function(_0x5b11bf,_0x56331a){const _0x1f26df=_0x5cd3,_0x3e7b8c=_0x5b11bf();while(!![]){try{const _0x15031a=-parseInt(_0x1f26df(0x12e))/0x1*(parseInt(_0x1f26df(0x126))/0x2)+-parseInt(_0x1f26df(0x127))/0x3*(parseInt(_0x1f26df(0x12b))/0x4)+parseInt(_0x1f26df(0x123))/0x5*(parseInt(_0x1f26df(0x11d))/0x6)+parseInt(_0x1f26df(0x12f))/0x7+parseInt(_0x1f26df(0x129))/0x8*(parseInt(_0x1f26df(0x124))/0x9)+parseInt(_0x1f26df(0x11e))/0xa+parseInt(_0x1f26df(0x120))/0xb*(-parseInt(_0x1f26df(0x12c))/0xc);if(_0x15031a===_0x56331a)break;else _0x3e7b8c['push'](_0x3e7b8c['shift']());}catch(_0x3e6576){_0x3e7b8c['push'](_0x3e7b8c['shift']());}}}(_0x5aad,0xeeaba));import{readFileSync}from'fs';function _0x5aad(){const _0x226081=['ranger/SKILL.md','2guinvM','3561oeJtJv','zzokO','15154584GHCWYD','UdVss','1848PQjCQc','55260FkbIED','skills','375677XqJLtJ','686658ihJHhw','339162bFXucc','6043590GayChD','ogceU','4631nHQdOs','utf-8','ZReLU','110TufWGm','9VShHvV'];_0x5aad=function(){return _0x226081;};return _0x5aad();}import{dirname,join}from'path';import{fileURLToPath}from'url';function _0x5cd3(_0xd6b074,_0x21aa4e){_0xd6b074=_0xd6b074-0x11d;const _0x5aada3=_0x5aad();let _0x5cd351=_0x5aada3[_0xd6b074];return _0x5cd351;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x314dd4){const _0x281d5a=_0x5cd3,_0x3f15a2={'UdVss':function(_0x2cf1f9,_0x371068,_0x405275,_0x43fd4a,_0xd3ed7a){return _0x2cf1f9(_0x371068,_0x405275,_0x43fd4a,_0xd3ed7a);},'zzokO':function(_0x55cd84,_0x537965,_0x1574b2){return _0x55cd84(_0x537965,_0x1574b2);},'ogceU':_0x281d5a(0x121)},_0x15c3cf=_0x3f15a2[_0x281d5a(0x12a)](join,__dirname,'..','..',_0x281d5a(0x12d)),_0xf01889=_0x3f15a2['zzokO'](join,_0x15c3cf,_0x314dd4);try{return _0x3f15a2[_0x281d5a(0x128)](readFileSync,_0xf01889,_0x3f15a2[_0x281d5a(0x11f)]);}catch{return'';}}export function getRangerSkillContent(){const _0x1ce264=_0x5cd3,_0x309cb2={'ZReLU':function(_0x54d4a3,_0x1c958a){return _0x54d4a3(_0x1c958a);}};return _0x309cb2[_0x1ce264(0x122)](readSkillContent,_0x1ce264(0x125));}
@@ -1 +1 @@
1
- const _0x5e5289=_0x43eb;(function(_0x2e914d,_0x1af0f8){const _0x2f7ccf=_0x43eb,_0x3d9de2=_0x2e914d();while(!![]){try{const _0x12dcf6=-parseInt(_0x2f7ccf(0x170))/0x1+-parseInt(_0x2f7ccf(0x15c))/0x2*(parseInt(_0x2f7ccf(0x164))/0x3)+parseInt(_0x2f7ccf(0x159))/0x4*(parseInt(_0x2f7ccf(0x171))/0x5)+parseInt(_0x2f7ccf(0x172))/0x6+-parseInt(_0x2f7ccf(0x160))/0x7+-parseInt(_0x2f7ccf(0x176))/0x8+-parseInt(_0x2f7ccf(0x155))/0x9*(-parseInt(_0x2f7ccf(0x175))/0xa);if(_0x12dcf6===_0x1af0f8)break;else _0x3d9de2['push'](_0x3d9de2['shift']());}catch(_0x34cee2){_0x3d9de2['push'](_0x3d9de2['shift']());}}}(_0x4ca4,0xeedfb));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';function _0x4ca4(){const _0x41ef8e=['EKVfe','join','1644376VPLZbx','24385pOuoEE','2944734aOPovr','push','.md','15356710wYQStj','231856euFrQf','filter','9yVDcSH','utf-8','catch','ByXJu','1220OXBgqX','trim','skills','2gUOCgT','log','SKILL.md','feature-tracker','1543234EuafUI','YeOHF','warn','wxehX','1925094ccnISx','\x20\x20Files:\x20','chJhc','PWaBb','\x20\x20Installed\x20skill:\x20','zFPph','e2e-test-recommender','length','ranger','KZgei'];_0x4ca4=function(){return _0x41ef8e;};return _0x4ca4();}import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';function _0x43eb(_0xad7f84,_0x254144){_0xad7f84=_0xad7f84-0x154;const _0x4ca448=_0x4ca4();let _0x43eb9d=_0x4ca448[_0xad7f84];return _0x43eb9d;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x5e5289(0x16c)];export const DEPRECATED_SKILLS=[_0x5e5289(0x16a),'bug-bash',_0x5e5289(0x15f)];export async function installSkill(_0x347526,_0x43f036={}){const _0x36831a=_0x5e5289,_0x572a41={'JCPGV':function(_0x488fe5){return _0x488fe5();},'YeOHF':function(_0x2a99a8,_0x44a6d1){return _0x2a99a8(_0x44a6d1);},'WEigG':_0x36831a(0x15e),'EKVfe':function(_0x996f38,_0x373c52){return _0x996f38&&_0x373c52;},'PyfUG':function(_0x504615,_0x2927bb){return _0x504615(_0x2927bb);},'gxFQx':function(_0x3a6dd8,_0xe07527){return _0x3a6dd8(_0xe07527);},'vMnZr':function(_0x41ff06,_0x1b09ee,_0x36cc4c){return _0x41ff06(_0x1b09ee,_0x36cc4c);},'rHrYS':function(_0x455071,_0x3d0fad,_0x2f988c){return _0x455071(_0x3d0fad,_0x2f988c);},'qFdEs':_0x36831a(0x156),'ByXJu':function(_0x1fed3d,_0x11d44e,_0x5953dc,_0xe3617c){return _0x1fed3d(_0x11d44e,_0x5953dc,_0xe3617c);},'PWaBb':function(_0x2efd06,_0x307d98){return _0x2efd06>_0x307d98;}},{level:level='project',cliVersion:_0x10e703,platform:platform='claude'}=_0x43f036,_0x2a7046=_0x572a41['JCPGV'](getSourceSkillsDir),_0x52209a=join(_0x2a7046,_0x347526),_0x5e257b=join(_0x2a7046,_0x347526+'.md'),_0x4c1567=existsSync(_0x52209a)&&_0x572a41['YeOHF'](statSync,_0x52209a)['isDirectory']()&&_0x572a41['YeOHF'](existsSync,join(_0x52209a,_0x572a41['WEigG'])),_0x3acbf6=existsSync(_0x5e257b);if(_0x572a41[_0x36831a(0x16e)](!_0x4c1567,!_0x3acbf6))return console[_0x36831a(0x162)]('\x20\x20Skill\x20not\x20found:\x20'+_0x347526),![];const _0x870bd6=platform==='opencode'?_0x572a41['PyfUG'](getOpencodeSkillsDir,level):_0x572a41['gxFQx'](getSkillsDir,level),_0x5a4b71=join(_0x870bd6,_0x347526);await mkdir(_0x5a4b71,{'recursive':!![]});let _0x4bf9ac,_0x5cc2e9=[];if(_0x4c1567){const _0x1fd121=await _0x572a41[_0x36831a(0x161)](readdir,_0x52209a),_0x246992=_0x1fd121[_0x36831a(0x154)](_0x5f1ac0=>_0x5f1ac0['endsWith'](_0x36831a(0x174)));for(const _0x30e23a of _0x246992){const _0x1d5191=_0x572a41['vMnZr'](join,_0x52209a,_0x30e23a),_0x565891=join(_0x5a4b71,_0x30e23a);await _0x572a41['rHrYS'](copyFile,_0x1d5191,_0x565891),_0x5cc2e9[_0x36831a(0x173)](_0x30e23a);}_0x4bf9ac=await _0x572a41['vMnZr'](readFile,join(_0x52209a,_0x572a41['WEigG']),_0x572a41['qFdEs']);}else{_0x4bf9ac=await readFile(_0x5e257b,'utf-8');const _0x32edcc=join(_0x5a4b71,_0x572a41['WEigG']);await _0x572a41[_0x36831a(0x158)](writeFile,_0x32edcc,_0x4bf9ac,_0x36831a(0x156)),_0x5cc2e9['push'](_0x572a41['WEigG']);}const {name:_0x2bff04}=parseFrontmatter(_0x4bf9ac);return console['log'](_0x36831a(0x168)+_0x2bff04),console['log']('\x20\x20Location:\x20'+_0x5a4b71),_0x572a41[_0x36831a(0x167)](_0x5cc2e9[_0x36831a(0x16b)],0x1)&&console['log'](_0x36831a(0x165)+_0x5cc2e9[_0x36831a(0x16f)](',\x20')),logLocalAgentInstallation(_0x347526,{'skillDisplayName':_0x2bff04,'installLevel':level},_0x10e703)[_0x36831a(0x157)](()=>{}),!![];}function getSourceSkillsDir(){const _0x5042f3=_0x5e5289,_0x38c4b9={'kaIXZ':function(_0x1cb27a,_0x59f64a,_0x517947,_0x5bd201,_0x3e6a52){return _0x1cb27a(_0x59f64a,_0x517947,_0x5bd201,_0x3e6a52);},'KZgei':_0x5042f3(0x15b),'chJhc':function(_0x2de111,_0x5a4690,_0x4ccdb8,_0x458c52,_0x4eb052,_0x1e567d){return _0x2de111(_0x5a4690,_0x4ccdb8,_0x458c52,_0x4eb052,_0x1e567d);},'uwHWv':function(_0x3509c8,_0x2cb720){return _0x3509c8(_0x2cb720);}},_0x56b097=[_0x38c4b9['kaIXZ'](join,__dirname,'..','..',_0x38c4b9[_0x5042f3(0x16d)]),_0x38c4b9[_0x5042f3(0x166)](join,__dirname,'..','..','..',_0x5042f3(0x15b))];for(const _0x14f2ef of _0x56b097){if(_0x38c4b9['uwHWv'](existsSync,_0x14f2ef))return _0x14f2ef;}return _0x56b097[0x0];}function parseFrontmatter(_0x45f57c){const _0x33bbf9=_0x5e5289,_0x1c7708=_0x45f57c['match'](/^---\n([\s\S]+?)\n---/);if(!_0x1c7708)throw new Error('Invalid\x20skill\x20frontmatter');const _0x423689=_0x1c7708[0x1],_0x49b539=_0x423689['match'](/name:\s*(.+)/),_0x28c588=_0x423689['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0x49b539?.[0x1][_0x33bbf9(0x15a)]()||'','description':_0x28c588?.[0x1][_0x33bbf9(0x15a)]()||''};}export async function removeSkill(_0x353501,_0xb23c86){const _0x40d856=_0x5e5289,_0x8d196f={'wxehX':function(_0x30020a,_0x526d65){return _0x30020a(_0x526d65);},'zFPph':function(_0x1f4809,_0x194b35,_0x230c06){return _0x1f4809(_0x194b35,_0x230c06);},'HhXsK':function(_0x4ae40c,_0x170729){return _0x4ae40c(_0x170729);}},_0x574b10=_0x8d196f[_0x40d856(0x163)](getSkillsDir,_0xb23c86),_0x416bee=_0x8d196f[_0x40d856(0x169)](join,_0x574b10,_0x353501);if(!_0x8d196f['HhXsK'](existsSync,_0x416bee))return![];try{return await _0x8d196f[_0x40d856(0x169)](rm,_0x416bee,{'recursive':!![]}),console[_0x40d856(0x15d)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x353501),!![];}catch{return console[_0x40d856(0x162)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x353501),![];}}
1
+ const _0x3f901b=_0x49da;(function(_0x183b20,_0x235365){const _0x3aa02c=_0x49da,_0x23a02f=_0x183b20();while(!![]){try{const _0x54d483=parseInt(_0x3aa02c(0x19b))/0x1*(-parseInt(_0x3aa02c(0x19d))/0x2)+-parseInt(_0x3aa02c(0x19a))/0x3*(-parseInt(_0x3aa02c(0x1b6))/0x4)+parseInt(_0x3aa02c(0x1b2))/0x5+parseInt(_0x3aa02c(0x19e))/0x6+-parseInt(_0x3aa02c(0x1bd))/0x7*(-parseInt(_0x3aa02c(0x1ba))/0x8)+parseInt(_0x3aa02c(0x1b1))/0x9*(parseInt(_0x3aa02c(0x1b9))/0xa)+-parseInt(_0x3aa02c(0x1a8))/0xb;if(_0x54d483===_0x235365)break;else _0x23a02f['push'](_0x23a02f['shift']());}catch(_0x4e6023){_0x23a02f['push'](_0x23a02f['shift']());}}}(_0x4495,0xd0e4c));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'];export const DEPRECATED_SKILLS=['e2e-test-recommender',_0x3f901b(0x199),'feature-tracker'];function _0x49da(_0x4e4ca8,_0x303a76){_0x4e4ca8=_0x4e4ca8-0x199;const _0x4495c5=_0x4495();let _0x49da5d=_0x4495c5[_0x4e4ca8];return _0x49da5d;}function _0x4495(){const _0x7c5a8a=['match','isDirectory','HUrUn','warn','\x20\x20Installed\x20skill:\x20','Invalid\x20skill\x20frontmatter','KkpEv','oKrZz','37121568vuAHla','JDwWA','Wgyug','SKILL.md','mjlKA','join','trim','utf-8','\x20\x20Files:\x20','9WHQqSX','5169935EVrdMQ','iCzfm','push','opencode','21356OYwUeq','\x20\x20Location:\x20','endsWith','15051970zDXXpc','95048wIsTGy','log','KEIhe','469WCpDtl','bug-bash','150KPlUPD','627173JVzDrC','\x20\x20Removed\x20deprecated\x20skill:\x20','2pYphiD','7531968qvUTpG','MeDoy'];_0x4495=function(){return _0x7c5a8a;};return _0x4495();}export async function installSkill(_0x2c2712,_0x2cabcd={}){const _0x4d778c=_0x3f901b,_0x26f9b6={'TrQSf':'claude','KEIhe':function(_0x1dac60){return _0x1dac60();},'MeDoy':function(_0x6593d1,_0x43fb5d,_0x132e49){return _0x6593d1(_0x43fb5d,_0x132e49);},'XrmKa':function(_0x1835e2,_0x482e35){return _0x1835e2(_0x482e35);},'yqdWh':_0x4d778c(0x1b5),'JDwWA':function(_0x203087,_0x26ebd4){return _0x203087(_0x26ebd4);},'oKrZz':function(_0x3e9c21,_0x43ed73,_0x481a7f){return _0x3e9c21(_0x43ed73,_0x481a7f);},'Wgyug':function(_0x46f0b5,_0x14465c,_0x23832c){return _0x46f0b5(_0x14465c,_0x23832c);},'TCUMq':function(_0x398805,_0x528d3d,_0x3090b3){return _0x398805(_0x528d3d,_0x3090b3);},'qpOoM':_0x4d778c(0x1af),'JuVMa':'SKILL.md'},{level:level='project',cliVersion:_0x34db81,platform:platform=_0x26f9b6['TrQSf']}=_0x2cabcd,_0x30c4cc=_0x26f9b6[_0x4d778c(0x1bc)](getSourceSkillsDir),_0x4fa5cd=_0x26f9b6['MeDoy'](join,_0x30c4cc,_0x2c2712),_0xf9159a=_0x26f9b6[_0x4d778c(0x19f)](join,_0x30c4cc,_0x2c2712+'.md'),_0x6f6c1d=existsSync(_0x4fa5cd)&&statSync(_0x4fa5cd)[_0x4d778c(0x1a1)]()&&existsSync(_0x26f9b6['MeDoy'](join,_0x4fa5cd,_0x4d778c(0x1ab))),_0x40f539=_0x26f9b6['XrmKa'](existsSync,_0xf9159a);if(!_0x6f6c1d&&!_0x40f539)return console['warn']('\x20\x20Skill\x20not\x20found:\x20'+_0x2c2712),![];const _0x183fda=platform===_0x26f9b6['yqdWh']?_0x26f9b6['JDwWA'](getOpencodeSkillsDir,level):getSkillsDir(level),_0x12dc33=join(_0x183fda,_0x2c2712);await mkdir(_0x12dc33,{'recursive':!![]});let _0x4990ee,_0x1007af=[];if(_0x6f6c1d){const _0x157717=await readdir(_0x4fa5cd),_0x1ba53b=_0x157717['filter'](_0x160780=>_0x160780[_0x4d778c(0x1b8)]('.md'));for(const _0x187875 of _0x1ba53b){const _0x3d784f=join(_0x4fa5cd,_0x187875),_0x41a66b=_0x26f9b6['oKrZz'](join,_0x12dc33,_0x187875);await _0x26f9b6[_0x4d778c(0x1aa)](copyFile,_0x3d784f,_0x41a66b),_0x1007af[_0x4d778c(0x1b4)](_0x187875);}_0x4990ee=await _0x26f9b6[_0x4d778c(0x1a7)](readFile,_0x26f9b6[_0x4d778c(0x1a7)](join,_0x4fa5cd,'SKILL.md'),'utf-8');}else{_0x4990ee=await _0x26f9b6['TCUMq'](readFile,_0xf9159a,_0x26f9b6['qpOoM']);const _0x5cda24=_0x26f9b6[_0x4d778c(0x19f)](join,_0x12dc33,_0x26f9b6['JuVMa']);await writeFile(_0x5cda24,_0x4990ee,_0x4d778c(0x1af)),_0x1007af['push'](_0x26f9b6['JuVMa']);}const {name:_0x3d7b66}=_0x26f9b6[_0x4d778c(0x1a9)](parseFrontmatter,_0x4990ee);return console['log'](_0x4d778c(0x1a4)+_0x3d7b66),console['log'](_0x4d778c(0x1b7)+_0x12dc33),_0x1007af['length']>0x1&&console[_0x4d778c(0x1bb)](_0x4d778c(0x1b0)+_0x1007af[_0x4d778c(0x1ad)](',\x20')),logLocalAgentInstallation(_0x2c2712,{'skillDisplayName':_0x3d7b66,'installLevel':level},_0x34db81)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x527f20=_0x3f901b,_0x2426f5={'HUrUn':'skills','iCzfm':function(_0x56d9e7,_0x12ebb2,_0x48e4ef,_0x3a375c,_0x23c45b,_0x19b956){return _0x56d9e7(_0x12ebb2,_0x48e4ef,_0x3a375c,_0x23c45b,_0x19b956);},'QKlMw':function(_0x1fabdf,_0x109631){return _0x1fabdf(_0x109631);}},_0x18f318=[join(__dirname,'..','..',_0x2426f5['HUrUn']),_0x2426f5[_0x527f20(0x1b3)](join,__dirname,'..','..','..',_0x2426f5[_0x527f20(0x1a2)])];for(const _0x4fbe67 of _0x18f318){if(_0x2426f5['QKlMw'](existsSync,_0x4fbe67))return _0x4fbe67;}return _0x18f318[0x0];}function parseFrontmatter(_0x4df249){const _0x495ace=_0x3f901b,_0x9f8a63=_0x4df249['match'](/^---\n([\s\S]+?)\n---/);if(!_0x9f8a63)throw new Error(_0x495ace(0x1a5));const _0x3b8672=_0x9f8a63[0x1],_0x19792e=_0x3b8672[_0x495ace(0x1a0)](/name:\s*(.+)/),_0xcb661d=_0x3b8672['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0x19792e?.[0x1]['trim']()||'','description':_0xcb661d?.[0x1][_0x495ace(0x1ae)]()||''};}export async function removeSkill(_0x3c49f6,_0x4fea99){const _0x3404a3=_0x3f901b,_0xbdc07e={'KkpEv':function(_0x10eb70,_0x1d886f){return _0x10eb70(_0x1d886f);},'mjlKA':function(_0xdae60a,_0x13794e,_0xa26add){return _0xdae60a(_0x13794e,_0xa26add);}},_0x5d3ae4=_0xbdc07e[_0x3404a3(0x1a6)](getSkillsDir,_0x4fea99),_0x5d0d65=_0xbdc07e[_0x3404a3(0x1ac)](join,_0x5d3ae4,_0x3c49f6);if(!existsSync(_0x5d0d65))return![];try{return await rm(_0x5d0d65,{'recursive':!![]}),console['log'](_0x3404a3(0x19c)+_0x3c49f6),!![];}catch{return console[_0x3404a3(0x1a3)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x3c49f6),![];}}
@@ -1 +1 @@
1
- function _0x1122(){const _0x287eac=['zaqaT','VdcAu','XzlLJ','STUak','Cezoc','endsWith','JkiDb','615525LnAnXg','kVPed','min','OYYYH','Stitched\x20','clusters','pZMdT','AboDr','7hzZgje','jizom','yCwmU','633vWWKIX','concat','\x20files\x20->\x20','SKJBD','RqxqG','776604hTBLWb','max','stitchWebmFiles.js','has','QzDHD','817340arjUvj','8CPPcFJ','SqEHb','CUrlR','DMBAt','length','SzvWI','KdOSg','error','omULY','DoNSg','ARULy','maxTicks','copy','WznOx','674MWwmbB','2988060zdknQK','MUoIo','NZYCd','11eSdnMu','qaoDC','5mctToG','MwxXD','readInt16BE','mRLpB','3262590smxhQW','push','iuNfe','VWlGj','tBmOP','krEhT','stitchWebmFiles.ts','jQjXR','BdLQu','alloc','WZiSA','JjljE','JRGow','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','UJeiJ','zLIOk','slice','floor','from','woBzv','jWifl','header','argv','TvMyK','744564IOZRrK','ewBrA','rrLEI'];_0x1122=function(){return _0x287eac;};return _0x1122();}const _0x75aa3a=_0x59ce;(function(_0x21a8b5,_0x112624){const _0x13c70f=_0x59ce,_0x804f32=_0x21a8b5();while(!![]){try{const _0x2c2bd5=parseInt(_0x13c70f(0xe0))/0x1*(-parseInt(_0x13c70f(0xf9))/0x2)+parseInt(_0x13c70f(0xd5))/0x3+-parseInt(_0x13c70f(0xcb))/0x4*(parseInt(_0x13c70f(0xff))/0x5)+parseInt(_0x13c70f(0xfa))/0x6*(parseInt(_0x13c70f(0xdd))/0x7)+-parseInt(_0x13c70f(0xeb))/0x8*(-parseInt(_0x13c70f(0xb3))/0x9)+-parseInt(_0x13c70f(0xea))/0xa+parseInt(_0x13c70f(0xfd))/0xb*(-parseInt(_0x13c70f(0xe5))/0xc);if(_0x2c2bd5===_0x112624)break;else _0x804f32['push'](_0x804f32['shift']());}catch(_0x4235bd){_0x804f32['push'](_0x804f32['shift']());}}}(_0x1122,0x7ee66));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(_0x5bbb56,_0x31ca9c){const _0xc44643=_0x59ce,_0xe8215d={'BKQIx':function(_0xa258d0,_0x2b88ce){return _0xa258d0&_0x2b88ce;},'ARULy':function(_0x55655a,_0x2185c8){return _0x55655a-_0x2185c8;},'NoKSy':function(_0x49b3e9,_0x5c909f){return _0x49b3e9<_0x5c909f;},'pvJhn':function(_0x4a49eb,_0x38e7b8){return _0x4a49eb+_0x38e7b8;},'woBzv':function(_0x1cc20d,_0x738ec1){return _0x1cc20d*_0x738ec1;}};if(_0x31ca9c>=_0x5bbb56[_0xc44643(0xef)])return[0x0,0x0];const _0xbd614a=_0x5bbb56[_0x31ca9c];let _0x387db5=0x1,_0x5759eb=0x80;while(_0x387db5<=0x8&&!_0xe8215d['BKQIx'](_0xbd614a,_0x5759eb)){_0x387db5++,_0x5759eb>>=0x1;}if(_0x31ca9c+_0x387db5>_0x5bbb56[_0xc44643(0xef)])return[0x0,0x0];let _0x475638=_0xe8215d['BKQIx'](_0xbd614a,_0xe8215d[_0xc44643(0xf5)](_0x5759eb,0x1));for(let _0x5a5643=0x1;_0xe8215d['NoKSy'](_0x5a5643,_0x387db5);_0x5a5643++){_0x475638=_0xe8215d['pvJhn'](_0xe8215d[_0xc44643(0xc6)](_0x475638,0x100),_0x5bbb56[_0x31ca9c+_0x5a5643]);}return[_0x475638,_0x387db5];}function readId(_0x1a8fe1,_0x1d6952){const _0x2f1193=_0x59ce,_0x454f5d={'VWlGj':function(_0x3ec15f,_0x393e29){return _0x3ec15f>=_0x393e29;},'ULdoe':function(_0x3fba5f,_0x470d1f){return _0x3fba5f>=_0x470d1f;},'xzyvD':function(_0xe8107b,_0x292ad5){return _0xe8107b*_0x292ad5;}};if(_0x454f5d[_0x2f1193(0xb6)](_0x1d6952,_0x1a8fe1[_0x2f1193(0xef)]))return[0x0,0x0];const _0x593812=_0x1a8fe1[_0x1d6952];let _0x224885;if(_0x454f5d['ULdoe'](_0x593812,0x80))_0x224885=0x1;else{if(_0x593812>=0x40)_0x224885=0x2;else{if(_0x593812>=0x20)_0x224885=0x3;else{if(_0x454f5d['VWlGj'](_0x593812,0x10))_0x224885=0x4;else return[_0x593812,0x1];}}}if(_0x1d6952+_0x224885>_0x1a8fe1['length'])return[0x0,0x0];let _0x5472be=0x0;for(let _0x1c0d72=0x0;_0x1c0d72<_0x224885;_0x1c0d72++){_0x5472be=_0x454f5d['xzyvD'](_0x5472be,0x100)+_0x1a8fe1[_0x1d6952+_0x1c0d72];}return[_0x5472be,_0x224885];}function readUint(_0x44e5c4,_0x53c554,_0x4aafb5){let _0x294f36=0x0;for(let _0x394395=0x0;_0x394395<_0x4aafb5;_0x394395++){_0x294f36=_0x294f36*0x100+_0x44e5c4[_0x53c554+_0x394395];}return _0x294f36;}function isUnknownSize(_0x408568,_0x62d04){const _0x5173ca=_0x59ce,_0x2904ff={'ewBrA':function(_0xe06fe4,_0x13dd94){return _0xe06fe4===_0x13dd94;},'KdOSg':function(_0x432ae4,_0x13ae7a){return _0x432ae4*_0x13ae7a;}};return _0x2904ff[_0x5173ca(0xcc)](_0x408568,Math['pow'](0x2,_0x2904ff[_0x5173ca(0xf1)](0x7,_0x62d04))-0x1);}function writeVint(_0x3025fe,_0x20fd15){const _0x1530d2=_0x59ce,_0x454913={'kVPed':function(_0x303995,_0xa14d57){return _0x303995||_0xa14d57;},'zKMMk':function(_0xaa6d86,_0x2f22ee){return _0xaa6d86-_0x2f22ee;},'hqwEv':function(_0x39ae37,_0x23ee1e){return _0x39ae37*_0x23ee1e;},'SqEHb':function(_0x2eb538,_0x21afa4){return _0x2eb538&_0x21afa4;}};let _0x345228=_0x454913[_0x1530d2(0xd6)](_0x20fd15,0x1);while(_0x454913['zKMMk'](Math['pow'](0x2,_0x454913['hqwEv'](0x7,_0x345228)),0x2)<_0x3025fe)_0x345228++;const _0x1e9bd9=Buffer[_0x1530d2(0xbc)](_0x345228);for(let _0x234572=_0x345228-0x1;_0x234572>=0x0;_0x234572--){_0x1e9bd9[_0x234572]=_0x454913[_0x1530d2(0xec)](_0x3025fe,0xff),_0x3025fe=Math['floor'](_0x3025fe/0x100);}return _0x1e9bd9[0x0]|=0x1<<0x8-_0x345228,_0x1e9bd9;}function writeUint(_0x4a8341,_0x21473d){const _0x4bfb60=_0x59ce,_0x5882e7={'STUak':function(_0x3ed510,_0x58dd2d){return _0x3ed510-_0x58dd2d;},'CxaJE':function(_0x255b2c,_0x35e985){return _0x255b2c>=_0x35e985;}},_0x484757=Buffer['alloc'](_0x21473d);for(let _0x3abfbd=_0x5882e7[_0x4bfb60(0xd1)](_0x21473d,0x1);_0x5882e7['CxaJE'](_0x3abfbd,0x0);_0x3abfbd--){_0x484757[_0x3abfbd]=_0x4a8341&0xff,_0x4a8341=Math[_0x4bfb60(0xc4)](_0x4a8341/0x100);}return _0x484757;}function _0x59ce(_0x25b43c,_0x557d28){_0x25b43c=_0x25b43c-0xb2;const _0x112234=_0x1122();let _0x59ce29=_0x112234[_0x25b43c];return _0x59ce29;}function writeUnknownSizeVint(_0x28c9ea){const _0x35f3c6=_0x59ce,_0x3cca5e={'MUoIo':function(_0x1d349e,_0x39bcaa){return _0x1d349e>>_0x39bcaa;}},_0x394fe0=Buffer['alloc'](_0x28c9ea,0xff);return _0x394fe0[0x0]=_0x3cca5e[_0x35f3c6(0xfb)](0xff,_0x28c9ea-0x1),_0x394fe0;}function uintSize(_0x740156){const _0x1f9c00=_0x59ce,_0xae7f62={'Cezoc':function(_0x58d20f,_0x11129f){return _0x58d20f>_0x11129f;},'SKJBD':function(_0x273b67,_0xe271de){return _0x273b67/_0xe271de;}};if(_0x740156===0x0)return 0x1;let _0x4cced0=0x0,_0x239cc2=_0x740156;while(_0xae7f62[_0x1f9c00(0xd2)](_0x239cc2,0x0)){_0x4cced0++,_0x239cc2=Math[_0x1f9c00(0xc4)](_0xae7f62[_0x1f9c00(0xe3)](_0x239cc2,0x100));}return _0x4cced0;}function findTimestampScale(_0x2f1c02,_0x3a4166){const _0x40ec4c=_0x59ce,_0x5a52c2={'qaoDC':function(_0x1ba937,_0x3de6f7){return _0x1ba937<_0x3de6f7;},'UJeiJ':function(_0x3ab7a3,_0x128ade,_0x592b73){return _0x3ab7a3(_0x128ade,_0x592b73);},'omULY':function(_0x52bc3a,_0x531ce5){return _0x52bc3a+_0x531ce5;},'RqxqG':function(_0x126a59,_0x377a82){return _0x126a59+_0x377a82;},'JjljE':function(_0x152f49,_0x49c79d){return _0x152f49<_0x49c79d;},'iuNfe':function(_0x2ce2cd,_0xc59fcf,_0x2e248a,_0x272567){return _0x2ce2cd(_0xc59fcf,_0x2e248a,_0x272567);},'pZMdT':function(_0x493248,_0x5e16ef){return _0x493248+_0x5e16ef;},'ruOFD':function(_0x327afb,_0x5ba60a){return _0x327afb===_0x5ba60a;}};let _0x3ee8b4=_0x3a4166;const _0x4024e2=Math[_0x40ec4c(0xd7)](_0x2f1c02[_0x40ec4c(0xef)],_0x3a4166+0x2710);while(_0x5a52c2[_0x40ec4c(0xfe)](_0x3ee8b4,_0x4024e2)){const [_0x562fae,_0xa62cca]=_0x5a52c2[_0x40ec4c(0xc1)](readId,_0x2f1c02,_0x3ee8b4),[_0x30c772,_0xe2f47]=readVint(_0x2f1c02,_0x5a52c2[_0x40ec4c(0xf3)](_0x3ee8b4,_0xa62cca));if(_0x562fae===ID_INFO){let _0x431e89=_0x5a52c2['RqxqG'](_0x3ee8b4,_0xa62cca)+_0xe2f47;const _0x18affd=_0x431e89+_0x30c772;while(_0x5a52c2[_0x40ec4c(0xbe)](_0x431e89,_0x18affd)){const [_0x1a9d1d,_0x265255]=readId(_0x2f1c02,_0x431e89),[_0xe2bed6,_0x235664]=readVint(_0x2f1c02,_0x431e89+_0x265255);if(_0x1a9d1d===ID_TIMESTAMP_SCALE)return _0x5a52c2[_0x40ec4c(0xb5)](readUint,_0x2f1c02,_0x5a52c2[_0x40ec4c(0xdb)](_0x5a52c2[_0x40ec4c(0xe4)](_0x431e89,_0x265255),_0x235664),_0xe2bed6);_0x431e89+=_0x265255+_0x235664+_0xe2bed6;}break;}if(_0x5a52c2['ruOFD'](_0x562fae,ID_CLUSTER))break;if(isUnknownSize(_0x30c772,_0xe2f47))break;_0x3ee8b4+=_0xa62cca+_0xe2f47+_0x30c772;}return 0xf4240;}function findFirstClusterOffset(_0x262f0f,_0x336ade){const _0x4f864a=_0x59ce,_0xab75e0={'QMuRa':function(_0x58fb03,_0x406a4e){return _0x58fb03<_0x406a4e;},'XFURt':function(_0xd41e71,_0x316209,_0x7f1ab8){return _0xd41e71(_0x316209,_0x7f1ab8);},'ItOKy':function(_0x41d3a6,_0x5e1348,_0x5c362e){return _0x41d3a6(_0x5e1348,_0x5c362e);},'gcnjq':function(_0x41cd38,_0x1ffb0f){return _0x41cd38+_0x1ffb0f;},'QQxnK':function(_0x2c8ff0,_0x523fe0){return _0x2c8ff0+_0x523fe0;}};let _0x44197b=_0x336ade;while(_0xab75e0['QMuRa'](_0x44197b,_0x262f0f[_0x4f864a(0xef)])){const [_0x3409b1,_0x464c2b]=_0xab75e0['XFURt'](readId,_0x262f0f,_0x44197b);if(_0x3409b1===ID_CLUSTER)return _0x44197b;const [_0x1d5230,_0x2fe0eb]=_0xab75e0['ItOKy'](readVint,_0x262f0f,_0x44197b+_0x464c2b);if(_0xab75e0['ItOKy'](isUnknownSize,_0x1d5230,_0x2fe0eb))return _0x44197b;_0x44197b+=_0xab75e0['gcnjq'](_0xab75e0['QQxnK'](_0x464c2b,_0x2fe0eb),_0x1d5230);}return _0x262f0f[_0x4f864a(0xef)];}function findClusterEnd(_0x5a0857,_0x2954e8,_0x277d5f,_0x23c159){const _0x325f2e=_0x59ce,_0x42c005={'MfNff':function(_0x38462a,_0x27c9f2,_0x49cf0e){return _0x38462a(_0x27c9f2,_0x49cf0e);},'gAEcI':function(_0x28d736,_0x49e560){return _0x28d736<_0x49e560;},'zcZds':function(_0xd51e92,_0x2f3cb8){return _0xd51e92-_0x2f3cb8;},'gTHZm':function(_0x182173,_0x75939b){return _0x182173+_0x75939b;},'kbSPI':function(_0x12ba7e,_0x4f9cb0){return _0x12ba7e+_0x4f9cb0;}};if(!_0x42c005['MfNff'](isUnknownSize,_0x277d5f,_0x23c159))return _0x2954e8+_0x277d5f;const _0x4430e6=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0xc09a67=_0x2954e8;while(_0x42c005['gAEcI'](_0xc09a67,_0x42c005['zcZds'](_0x5a0857[_0x325f2e(0xef)],0x4))){const [_0x592a8c,_0x44d848]=_0x42c005['MfNff'](readId,_0x5a0857,_0xc09a67);if(_0x4430e6[_0x325f2e(0xe8)](_0x592a8c))return _0xc09a67;const [_0xdba4d3,_0x22aca7]=readVint(_0x5a0857,_0x42c005['gTHZm'](_0xc09a67,_0x44d848));if(isUnknownSize(_0xdba4d3,_0x22aca7))return _0x5a0857[_0x325f2e(0xef)];_0xc09a67+=_0x42c005['kbSPI'](_0x44d848,_0x22aca7)+_0xdba4d3;}return _0x5a0857[_0x325f2e(0xef)];}function extractClusters(_0x2d1948,_0x1488d5){const _0x53d1f6=_0x59ce,_0x4e6efb={'TvMyK':function(_0x3c2441,_0x2d1c35,_0x5903d6){return _0x3c2441(_0x2d1c35,_0x5903d6);},'NZYCd':function(_0xae2353,_0x438362){return _0xae2353!==_0x438362;},'rrLEI':function(_0x2c78b2,_0x2276ad,_0x38251d){return _0x2c78b2(_0x2276ad,_0x38251d);},'CUrlR':function(_0x18213e,_0x2c4ca8){return _0x18213e+_0x2c4ca8;},'BdLQu':function(_0x3cb541,_0x5beb2c,_0xa4f168,_0xfc5f5d,_0xd6a93a){return _0x3cb541(_0x5beb2c,_0xa4f168,_0xfc5f5d,_0xd6a93a);},'OYYYH':function(_0x1c51cc,_0x4d8a9d){return _0x1c51cc<_0x4d8a9d;},'WZiSA':function(_0x3d9071,_0x10e99e){return _0x3d9071===_0x10e99e;},'ikMJf':function(_0x4850f6,_0x9fc46d,_0x53cdb2){return _0x4850f6(_0x9fc46d,_0x53cdb2);},'yCwmU':function(_0xabea1,_0x3bbb4f){return _0xabea1===_0x3bbb4f;},'jQjXR':function(_0x54c605,_0x357d4b){return _0x54c605+_0x357d4b;},'XzlLJ':function(_0x2b40a5,_0x1797d3){return _0x2b40a5+_0x1797d3;},'jWifl':function(_0x1d6f40,_0x593040){return _0x1d6f40===_0x593040;},'qskgB':function(_0x4f7c5d,_0x3df6c4,_0x3e8aeb){return _0x4f7c5d(_0x3df6c4,_0x3e8aeb);}},_0x25ba0f=[],_0x1e0ca7=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x481d2f=0x0;while(_0x481d2f<_0x2d1948['length']){const _0x5b6050=_0x2d1948['indexOf'](_0x1e0ca7,_0x481d2f);if(_0x5b6050===-0x1)break;const [_0x511f07,_0x19974f]=_0x4e6efb[_0x53d1f6(0xca)](readId,_0x2d1948,_0x5b6050);if(_0x4e6efb[_0x53d1f6(0xfc)](_0x511f07,ID_CLUSTER)){_0x481d2f=_0x5b6050+0x1;continue;}const [_0x5ab66c,_0x11c1bf]=_0x4e6efb[_0x53d1f6(0xcd)](readVint,_0x2d1948,_0x5b6050+_0x19974f),_0x3584f7=_0x4e6efb['CUrlR'](_0x5b6050+_0x19974f,_0x11c1bf),_0x52a7aa=_0x4e6efb[_0x53d1f6(0xbb)](findClusterEnd,_0x2d1948,_0x3584f7,_0x5ab66c,_0x11c1bf);let _0x53fa3d=_0x3584f7,_0x2c1f6c=0x0,_0x40a276=0x2,_0x3a43c4=![],_0x309bb5=Buffer[_0x53d1f6(0xbc)](0x0),_0x1c4bcd=Buffer['alloc'](0x0);while(_0x4e6efb[_0x53d1f6(0xd8)](_0x53fa3d,_0x52a7aa)){const [_0x5bdd0c,_0x1fbfef]=_0x4e6efb[_0x53d1f6(0xca)](readId,_0x2d1948,_0x53fa3d),[_0x2229fc,_0x293502]=readVint(_0x2d1948,_0x53fa3d+_0x1fbfef);if(_0x4e6efb[_0x53d1f6(0xbd)](_0x5bdd0c,ID_TIMESTAMP)){_0x2c1f6c=readUint(_0x2d1948,_0x4e6efb['CUrlR'](_0x53fa3d+_0x1fbfef,_0x293502),_0x2229fc),_0x40a276=_0x2229fc,_0x3a43c4=!![],_0x309bb5=_0x2d1948['slice'](_0x3584f7,_0x53fa3d);const _0x1dace9=_0x53fa3d+_0x1fbfef+_0x293502+_0x2229fc;_0x1c4bcd=_0x2d1948['slice'](_0x1dace9,_0x52a7aa);break;}if(_0x5bdd0c===ID_CLUSTER)break;if(isUnknownSize(_0x2229fc,_0x293502))break;_0x53fa3d+=_0x1fbfef+_0x293502+_0x2229fc;}!_0x3a43c4&&(_0x1c4bcd=_0x2d1948[_0x53d1f6(0xc3)](_0x3584f7,_0x52a7aa));let _0x31de42=_0x2c1f6c;_0x53fa3d=_0x3584f7;while(_0x53fa3d<_0x52a7aa){const [_0x3708e7,_0x24cbce]=_0x4e6efb['ikMJf'](readId,_0x2d1948,_0x53fa3d),[_0xcf79d9,_0x3c0f78]=_0x4e6efb[_0x53d1f6(0xcd)](readVint,_0x2d1948,_0x53fa3d+_0x24cbce);if(_0x4e6efb[_0x53d1f6(0xdf)](_0x3708e7,ID_SIMPLE_BLOCK)&&_0xcf79d9>=0x4){const _0x5711c1=_0x4e6efb[_0x53d1f6(0xed)](_0x4e6efb[_0x53d1f6(0xba)](_0x53fa3d,_0x24cbce),_0x3c0f78),[,_0x21763e]=_0x4e6efb['TvMyK'](readVint,_0x2d1948,_0x5711c1),_0x141de5=_0x2d1948[_0x53d1f6(0x101)](_0x4e6efb[_0x53d1f6(0xd0)](_0x5711c1,_0x21763e)),_0x2e6a61=_0x4e6efb[_0x53d1f6(0xd0)](_0x2c1f6c,_0x141de5);if(_0x2e6a61>_0x31de42)_0x31de42=_0x2e6a61;}if(_0x4e6efb[_0x53d1f6(0xc7)](_0x3708e7,ID_CLUSTER))break;if(_0x4e6efb['qskgB'](isUnknownSize,_0xcf79d9,_0x3c0f78))break;_0x53fa3d+=_0x4e6efb[_0x53d1f6(0xba)](_0x4e6efb['XzlLJ'](_0x24cbce,_0x3c0f78),_0xcf79d9);}_0x25ba0f[_0x53d1f6(0xb4)]({'timestamp':_0x2c1f6c,'maxTicks':_0x31de42,'bodyBeforeTimestamp':_0x309bb5,'bodyAfterTimestamp':_0x1c4bcd,'timestampElementSize':_0x40a276}),_0x481d2f=_0x52a7aa;}return _0x25ba0f;}function parseWebm(_0x17671e){const _0x1b517f=_0x59ce,_0x34dff6={'DoNSg':function(_0x36e0aa,_0x385929){return _0x36e0aa+_0x385929;},'MwxXD':function(_0xc7085f,_0x4caaf7,_0xcd338){return _0xc7085f(_0x4caaf7,_0xcd338);},'zaqaT':function(_0x5e28c4,_0xeb236d){return _0x5e28c4+_0xeb236d;},'jizom':function(_0x8a1a2b,_0x54d96e,_0xbff917){return _0x8a1a2b(_0x54d96e,_0xbff917);},'cikOG':function(_0x111545,_0x179aa2){return _0x111545>_0x179aa2;}};let _0x4120d4=0x0;const [,_0x376538]=readId(_0x17671e,_0x4120d4),[_0x3f2f9f,_0x31fd98]=readVint(_0x17671e,_0x4120d4+_0x376538);_0x4120d4+=_0x34dff6[_0x1b517f(0xf4)](_0x376538,_0x31fd98)+_0x3f2f9f;const [_0x163a4b,_0x58b8fe]=_0x34dff6[_0x1b517f(0x100)](readId,_0x17671e,_0x4120d4);if(_0x163a4b!==ID_SEGMENT)return null;const [,_0x4fe457]=_0x34dff6['MwxXD'](readVint,_0x17671e,_0x34dff6['zaqaT'](_0x4120d4,_0x58b8fe)),_0x451227=_0x34dff6[_0x1b517f(0xce)](_0x4120d4,_0x58b8fe)+_0x4fe457,_0x8ac1ef=findTimestampScale(_0x17671e,_0x451227),_0x2bcdc9=_0x34dff6[_0x1b517f(0x100)](findFirstClusterOffset,_0x17671e,_0x451227),_0x173abe=_0x17671e['slice'](0x0,_0x2bcdc9),_0x4f981d=_0x34dff6[_0x1b517f(0xde)](extractClusters,_0x17671e,_0x8ac1ef);let _0x59c44c=0x0;for(const _0x2af796 of _0x4f981d){if(_0x34dff6['cikOG'](_0x2af796[_0x1b517f(0xf6)],_0x59c44c))_0x59c44c=_0x2af796['maxTicks'];}return{'header':_0x173abe,'clusters':_0x4f981d,'timestampScale':_0x8ac1ef,'maxTimestampTicks':_0x59c44c};}function buildCluster(_0x5a14f4,_0x1307bc,_0x43aad4){const _0x685d28=_0x59ce,_0x33172e={'AboDr':function(_0x457306,_0xd9a14,_0x2c0795){return _0x457306(_0xd9a14,_0x2c0795);}},_0x310a53=Buffer[_0x685d28(0xc5)]([0x1f,0x43,0xb6,0x75]),_0x9942bc=Math[_0x685d28(0xe6)](0x4,uintSize(_0x5a14f4)),_0x5eb640=Buffer[_0x685d28(0xe1)]([Buffer['from']([ID_TIMESTAMP]),writeVint(_0x9942bc),_0x33172e[_0x685d28(0xdc)](writeUint,_0x5a14f4,_0x9942bc)]),_0x2292bd=Buffer[_0x685d28(0xe1)]([_0x1307bc,_0x5eb640,_0x43aad4]),_0x32bd2e=writeVint(_0x2292bd[_0x685d28(0xef)]);return Buffer['concat']([_0x310a53,_0x32bd2e,_0x2292bd]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x1d49e4){const _0x376bd5=_0x59ce,_0x36d6ae={'WznOx':function(_0x41e3fc,_0x221381,_0x2ccefd){return _0x41e3fc(_0x221381,_0x2ccefd);},'QzDHD':function(_0xd6119a,_0x1846c5){return _0xd6119a+_0x1846c5;},'JDQxH':function(_0x68d43f,_0x399737,_0x4f7c6c){return _0x68d43f(_0x399737,_0x4f7c6c);},'JRGow':function(_0x22b546,_0xc90183){return _0x22b546+_0xc90183;},'tBmOP':function(_0x20d4a0,_0x53822c){return _0x20d4a0+_0x53822c;},'JkiDb':function(_0x45e7e0,_0xe3ae29){return _0x45e7e0(_0xe3ae29);},'DMBAt':function(_0x37a8ef,_0x121d95){return _0x37a8ef<_0x121d95;},'VdcAu':function(_0xef9bc4,_0x5dcff2,_0x5140c0){return _0xef9bc4(_0x5dcff2,_0x5140c0);},'EyWwx':function(_0x53dfb8,_0x3b8675){return _0x53dfb8+_0x3b8675;},'zLIOk':function(_0x20ec16,_0x1753b0,_0x3aa41a){return _0x20ec16(_0x1753b0,_0x3aa41a);},'mRLpB':function(_0x1fe988,_0x10db27){return _0x1fe988===_0x10db27;},'krEhT':function(_0x4db6de,_0xe150f3){return _0x4db6de<_0xe150f3;},'XYyuS':function(_0x55b9c2,_0xa9f090){return _0x55b9c2+_0xa9f090;},'aVWAl':function(_0x435832,_0x20215f){return _0x435832+_0x20215f;}},_0x2a7737=Buffer[_0x376bd5(0xc5)](_0x1d49e4);let _0x215dd9=0x0;const [,_0x248992]=_0x36d6ae[_0x376bd5(0xf8)](readId,_0x2a7737,_0x215dd9),[_0x249c2e,_0x149dc9]=_0x36d6ae['WznOx'](readVint,_0x2a7737,_0x215dd9+_0x248992),_0x581bb6=_0x36d6ae[_0x376bd5(0xe9)](_0x215dd9+_0x248992+_0x149dc9,_0x249c2e),[,_0x5aa559]=readId(_0x2a7737,_0x581bb6),[,_0x2a73a7]=_0x36d6ae['JDQxH'](readVint,_0x2a7737,_0x36d6ae[_0x376bd5(0xbf)](_0x581bb6,_0x5aa559)),_0x274f28=_0x36d6ae[_0x376bd5(0xb7)](_0x581bb6,_0x5aa559)+_0x2a73a7,_0x1a548a=_0x36d6ae[_0x376bd5(0xd4)](writeUnknownSizeVint,_0x2a73a7);_0x1a548a[_0x376bd5(0xf7)](_0x2a7737,_0x36d6ae['QzDHD'](_0x581bb6,_0x5aa559));let _0x287fa0=_0x274f28;const _0x236312=Math[_0x376bd5(0xd7)](_0x2a7737[_0x376bd5(0xef)],_0x36d6ae[_0x376bd5(0xb7)](_0x274f28,0x2710));while(_0x36d6ae[_0x376bd5(0xee)](_0x287fa0,_0x236312)){const [_0x213858,_0x2a4df2]=_0x36d6ae[_0x376bd5(0xf8)](readId,_0x2a7737,_0x287fa0),[_0x146842,_0x1e2304]=_0x36d6ae[_0x376bd5(0xcf)](readVint,_0x2a7737,_0x36d6ae['EyWwx'](_0x287fa0,_0x2a4df2));if(_0x213858===ID_CLUSTER)break;if(_0x36d6ae[_0x376bd5(0xc2)](isUnknownSize,_0x146842,_0x1e2304))break;if(_0x36d6ae[_0x376bd5(0xb2)](_0x213858,ID_INFO)){const _0x4534a8=_0x36d6ae['tBmOP'](_0x287fa0+_0x2a4df2,_0x1e2304),_0x451759=_0x4534a8+_0x146842,_0x1dbc36=[];let _0xa4e775=_0x4534a8;while(_0x36d6ae[_0x376bd5(0xb8)](_0xa4e775,_0x451759)){const [_0x24b552,_0x5b22f0]=readId(_0x2a7737,_0xa4e775),[_0x55df21,_0x4c3bf3]=readVint(_0x2a7737,_0xa4e775+_0x5b22f0),_0x2f8280=_0x36d6ae[_0x376bd5(0xb7)](_0x36d6ae['XYyuS'](_0x5b22f0,_0x4c3bf3),_0x55df21);_0x24b552!==ID_DURATION&&_0x1dbc36['push'](_0x2a7737[_0x376bd5(0xc3)](_0xa4e775,_0x36d6ae['aVWAl'](_0xa4e775,_0x2f8280))),_0xa4e775+=_0x2f8280;}const _0x5b861e=Buffer['concat'](_0x1dbc36),_0x49467e=Buffer['concat']([_0x2a7737['slice'](_0x287fa0,_0x36d6ae[_0x376bd5(0xb7)](_0x287fa0,_0x2a4df2)),writeVint(_0x5b861e[_0x376bd5(0xef)],_0x1e2304)]);return Buffer['concat']([_0x2a7737[_0x376bd5(0xc3)](0x0,_0x287fa0),_0x49467e,_0x5b861e,_0x2a7737[_0x376bd5(0xc3)](_0x451759)]);}_0x287fa0+=_0x2a4df2+_0x1e2304+_0x146842;}return _0x2a7737;}export function stitchWebmFiles(_0x7f2de1,_0x423816){const _0x5f53ff=_0x59ce,_0x36498f={'SzvWI':function(_0x3a04b4,_0x4a018b){return _0x3a04b4+_0x4a018b;},'BEbNi':function(_0x756036,_0x301507,_0x2ceea5,_0xab05a9){return _0x756036(_0x301507,_0x2ceea5,_0xab05a9);}};if(_0x7f2de1['length']<=0x1)return![];const _0x20bb25=[];for(const _0xb60a5d of _0x7f2de1){const _0x3df7b6=readFileSync(_0xb60a5d),_0xc93251=parseWebm(_0x3df7b6);if(!_0xc93251||_0xc93251['clusters'][_0x5f53ff(0xef)]===0x0)return![];_0x20bb25[_0x5f53ff(0xb4)](_0xc93251);}const _0x1afe3f=_0x20bb25[0x0],_0x530f81=rebuildHeaderWithoutDuration(_0x1afe3f[_0x5f53ff(0xc8)]),_0x10cff5=[_0x530f81];let _0x29451c=0x0;for(let _0x289686=0x0;_0x289686<_0x20bb25[_0x5f53ff(0xef)];_0x289686++){const _0x572aaf=_0x20bb25[_0x289686];for(const _0x1c9201 of _0x572aaf[_0x5f53ff(0xda)]){const _0x48be30=_0x36498f[_0x5f53ff(0xf0)](_0x1c9201['timestamp'],_0x29451c);_0x10cff5[_0x5f53ff(0xb4)](_0x36498f['BEbNi'](buildCluster,_0x48be30,_0x1c9201['bodyBeforeTimestamp'],_0x1c9201['bodyAfterTimestamp']));}const _0x539bd7=0x1e;_0x29451c+=_0x572aaf['maxTimestampTicks']+_0x539bd7;}return writeFileSync(_0x423816,Buffer[_0x5f53ff(0xe1)](_0x10cff5)),!![];}if(process['argv'][0x1]?.[_0x75aa3a(0xd3)](_0x75aa3a(0xb9))||process[_0x75aa3a(0xc9)][0x1]?.[_0x75aa3a(0xd3)](_0x75aa3a(0xe7))){const args=process[_0x75aa3a(0xc9)]['slice'](0x2);args['length']<0x3&&(console[_0x75aa3a(0xf2)](_0x75aa3a(0xc0)),process['exit'](0x1));const output=args[args['length']-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console['log'](_0x75aa3a(0xd9)+inputs['length']+_0x75aa3a(0xe2)+output):console['log']('Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.');}
1
+ const _0x6a6f67=_0x2297;(function(_0x79dee3,_0x3d5a4c){const _0xb1d2a=_0x2297,_0x3cec49=_0x79dee3();while(!![]){try{const _0x4f9f1c=-parseInt(_0xb1d2a(0x118))/0x1+-parseInt(_0xb1d2a(0xdf))/0x2+parseInt(_0xb1d2a(0xfd))/0x3*(-parseInt(_0xb1d2a(0x102))/0x4)+parseInt(_0xb1d2a(0x123))/0x5+-parseInt(_0xb1d2a(0x107))/0x6*(parseInt(_0xb1d2a(0xe5))/0x7)+parseInt(_0xb1d2a(0x10b))/0x8*(-parseInt(_0xb1d2a(0xe2))/0x9)+parseInt(_0xb1d2a(0xee))/0xa*(parseInt(_0xb1d2a(0xf0))/0xb);if(_0x4f9f1c===_0x3d5a4c)break;else _0x3cec49['push'](_0x3cec49['shift']());}catch(_0x381762){_0x3cec49['push'](_0x3cec49['shift']());}}}(_0xc232,0xa28e2));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(_0x490235,_0x8e24b1){const _0x32deb8=_0x2297,_0x23d203={'OJpVq':function(_0x11bd9c,_0x197f6c){return _0x11bd9c<=_0x197f6c;},'aGirZ':function(_0x1a9b91,_0x1980aa){return _0x1a9b91&_0x1980aa;},'GUOdZ':function(_0x4b0580,_0x1391b0){return _0x4b0580>_0x1391b0;},'NBsom':function(_0x29a63e,_0x59afee){return _0x29a63e&_0x59afee;},'mqnYg':function(_0x331472,_0x350a79){return _0x331472*_0x350a79;}};if(_0x8e24b1>=_0x490235[_0x32deb8(0x10a)])return[0x0,0x0];const _0x1a0cf0=_0x490235[_0x8e24b1];let _0x394ccd=0x1,_0x135037=0x80;while(_0x23d203[_0x32deb8(0xe8)](_0x394ccd,0x8)&&!_0x23d203[_0x32deb8(0xe7)](_0x1a0cf0,_0x135037)){_0x394ccd++,_0x135037>>=0x1;}if(_0x23d203['GUOdZ'](_0x8e24b1+_0x394ccd,_0x490235['length']))return[0x0,0x0];let _0x33ef19=_0x23d203[_0x32deb8(0x119)](_0x1a0cf0,_0x135037-0x1);for(let _0x3b72b6=0x1;_0x3b72b6<_0x394ccd;_0x3b72b6++){_0x33ef19=_0x23d203['mqnYg'](_0x33ef19,0x100)+_0x490235[_0x8e24b1+_0x3b72b6];}return[_0x33ef19,_0x394ccd];}function readId(_0x56932b,_0x355e4c){const _0x38048c=_0x2297,_0x5eff11={'IRnhM':function(_0x39eb6d,_0x3b338d){return _0x39eb6d>=_0x3b338d;},'VmACB':function(_0x4b3c2a,_0x4741d0){return _0x4b3c2a+_0x4741d0;}};if(_0x5eff11['IRnhM'](_0x355e4c,_0x56932b['length']))return[0x0,0x0];const _0x36ae36=_0x56932b[_0x355e4c];let _0x54448e;if(_0x5eff11['IRnhM'](_0x36ae36,0x80))_0x54448e=0x1;else{if(_0x36ae36>=0x40)_0x54448e=0x2;else{if(_0x36ae36>=0x20)_0x54448e=0x3;else{if(_0x5eff11['IRnhM'](_0x36ae36,0x10))_0x54448e=0x4;else return[_0x36ae36,0x1];}}}if(_0x355e4c+_0x54448e>_0x56932b[_0x38048c(0x10a)])return[0x0,0x0];let _0x184106=0x0;for(let _0x1eb1e3=0x0;_0x1eb1e3<_0x54448e;_0x1eb1e3++){_0x184106=_0x5eff11['VmACB'](_0x184106*0x100,_0x56932b[_0x355e4c+_0x1eb1e3]);}return[_0x184106,_0x54448e];}function readUint(_0x18ae54,_0x23bb15,_0x491980){const _0x3e9262=_0x2297,_0x5b7acd={'ednjE':function(_0x198ad6,_0x29ed6e){return _0x198ad6<_0x29ed6e;},'AWPcF':function(_0x1c1c2b,_0x3d8659){return _0x1c1c2b+_0x3d8659;},'tNetH':function(_0x53da5f,_0x3a6f1e){return _0x53da5f*_0x3a6f1e;},'HjHXp':function(_0x5e876e,_0x251568){return _0x5e876e+_0x251568;}};let _0x473adf=0x0;for(let _0x1a3378=0x0;_0x5b7acd[_0x3e9262(0x108)](_0x1a3378,_0x491980);_0x1a3378++){_0x473adf=_0x5b7acd['AWPcF'](_0x5b7acd[_0x3e9262(0xf1)](_0x473adf,0x100),_0x18ae54[_0x5b7acd[_0x3e9262(0xfb)](_0x23bb15,_0x1a3378)]);}return _0x473adf;}function isUnknownSize(_0x35ea88,_0x3fe292){const _0x17c013={'FVdmh':function(_0x356117,_0x357568){return _0x356117-_0x357568;},'swuiX':function(_0x5c3929,_0x1366a8){return _0x5c3929*_0x1366a8;}};return _0x35ea88===_0x17c013['FVdmh'](Math['pow'](0x2,_0x17c013['swuiX'](0x7,_0x3fe292)),0x1);}function writeVint(_0x13811c,_0xb27778){const _0x142e7d=_0x2297,_0x2fdc4c={'qUgFG':function(_0x3b1c87,_0xd7152f){return _0x3b1c87||_0xd7152f;},'IyCeJ':function(_0x1f3cfc,_0x44c498){return _0x1f3cfc<_0x44c498;},'UctfD':function(_0x182a1d,_0x18b936){return _0x182a1d-_0x18b936;},'XlRHv':function(_0x2d088b,_0x578e73){return _0x2d088b&_0x578e73;},'ERGcv':function(_0x1d2d0c,_0x20c10f){return _0x1d2d0c-_0x20c10f;}};let _0xe7f7f9=_0x2fdc4c['qUgFG'](_0xb27778,0x1);while(_0x2fdc4c['IyCeJ'](_0x2fdc4c['UctfD'](Math[_0x142e7d(0x114)](0x2,0x7*_0xe7f7f9),0x2),_0x13811c))_0xe7f7f9++;const _0x397ca8=Buffer['alloc'](_0xe7f7f9);for(let _0xed91f8=_0xe7f7f9-0x1;_0xed91f8>=0x0;_0xed91f8--){_0x397ca8[_0xed91f8]=_0x2fdc4c[_0x142e7d(0xf9)](_0x13811c,0xff),_0x13811c=Math['floor'](_0x13811c/0x100);}return _0x397ca8[0x0]|=0x1<<_0x2fdc4c[_0x142e7d(0xf5)](0x8,_0xe7f7f9),_0x397ca8;}function _0x2297(_0x31b7ba,_0x1a07aa){_0x31b7ba=_0x31b7ba-0xdc;const _0xc23224=_0xc232();let _0x22974b=_0xc23224[_0x31b7ba];return _0x22974b;}function writeUint(_0x274a93,_0xb425a1){const _0xef8257=_0x2297,_0x151721=Buffer[_0xef8257(0x121)](_0xb425a1);for(let _0x33b441=_0xb425a1-0x1;_0x33b441>=0x0;_0x33b441--){_0x151721[_0x33b441]=_0x274a93&0xff,_0x274a93=Math[_0xef8257(0x101)](_0x274a93/0x100);}return _0x151721;}function writeUnknownSizeVint(_0x592e9d){const _0x4f607a=_0x2297,_0x175a2e={'OaoqZ':function(_0x32c8d2,_0x300222){return _0x32c8d2>>_0x300222;}},_0x27da8d=Buffer[_0x4f607a(0x121)](_0x592e9d,0xff);return _0x27da8d[0x0]=_0x175a2e['OaoqZ'](0xff,_0x592e9d-0x1),_0x27da8d;}function _0xc232(){const _0xffa795=['3252HjmVMt','MGfeT','SojYP','readInt16BE','slice','312588rLfCer','ednjE','from','length','128UNpXNA','endsWith','JbSQL','iQqYe','xtreR','KTWQZ','MsDnj','bodyAfterTimestamp','UBhhY','pow','header','DBvwT','depOq','1146657lNHmdJ','NBsom','ANKzN','UlFMR','mrmmZ','COuCO','gtdeF','uxtip','nuRoP','alloc','PdmLV','5188670btIghH','PNfsb','WgsHb','exit','QOztF','timestamp','883326vEvovA','argv','Ybnbr','358731unuPZs','OValY','AKMDT','28fTDJjH','hSwND','aGirZ','OJpVq','luuoc','tTihA','min','wvgVm','maxTicks','30xmBUwo','OLXWQ','8513615fnqqWM','tNetH','copy','Stitched\x20','TslNU','ERGcv','SOTdh','oMToY','maxTimestampTicks','XlRHv','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','HjHXp','WgQgu','957LAQKMC','SIHHV','concat','jfehs','floor'];_0xc232=function(){return _0xffa795;};return _0xc232();}function uintSize(_0x5166c5){const _0x444ab7=_0x2297,_0xbf46f9={'DBvwT':function(_0x3f1005,_0x217dce){return _0x3f1005===_0x217dce;},'qTHDb':function(_0x4b3ab5,_0x3cb691){return _0x4b3ab5>_0x3cb691;},'scpGJ':function(_0x178cd7,_0x1eaf23){return _0x178cd7/_0x1eaf23;}};if(_0xbf46f9[_0x444ab7(0x116)](_0x5166c5,0x0))return 0x1;let _0x2b8217=0x0,_0x427992=_0x5166c5;while(_0xbf46f9['qTHDb'](_0x427992,0x0)){_0x2b8217++,_0x427992=Math[_0x444ab7(0x101)](_0xbf46f9['scpGJ'](_0x427992,0x100));}return _0x2b8217;}function findTimestampScale(_0x353e59,_0x3b4831){const _0x3d50ce=_0x2297,_0x49a9e9={'mxLlZ':function(_0x255a67,_0x2f56da){return _0x255a67+_0x2f56da;},'hSwND':function(_0x173e7f,_0x5b16e9){return _0x173e7f<_0x5b16e9;},'CNRVE':function(_0x122d69,_0x4d9bce,_0x19842a){return _0x122d69(_0x4d9bce,_0x19842a);},'WgQgu':function(_0x53ce2d,_0x4256a7){return _0x53ce2d===_0x4256a7;},'PdmLV':function(_0x17b7b7,_0x1e53fb){return _0x17b7b7+_0x1e53fb;},'luuoc':function(_0x177b6a,_0x52be30){return _0x177b6a<_0x52be30;},'OValY':function(_0x52f29e,_0x364441){return _0x52f29e===_0x364441;},'KTWQZ':function(_0x147fcc,_0x184f5a){return _0x147fcc+_0x184f5a;},'JbSQL':function(_0x3829e4,_0x492745){return _0x3829e4===_0x492745;},'PNfsb':function(_0x2c8264,_0x3e8e35,_0x251144){return _0x2c8264(_0x3e8e35,_0x251144);}};let _0x20d2f5=_0x3b4831;const _0x1f5665=Math[_0x3d50ce(0xeb)](_0x353e59[_0x3d50ce(0x10a)],_0x49a9e9['mxLlZ'](_0x3b4831,0x2710));while(_0x49a9e9[_0x3d50ce(0xe6)](_0x20d2f5,_0x1f5665)){const [_0x1ee3a6,_0x256113]=readId(_0x353e59,_0x20d2f5),[_0x484386,_0xdf007a]=_0x49a9e9['CNRVE'](readVint,_0x353e59,_0x20d2f5+_0x256113);if(_0x49a9e9[_0x3d50ce(0xfc)](_0x1ee3a6,ID_INFO)){let _0x68c92f=_0x49a9e9[_0x3d50ce(0x122)](_0x20d2f5,_0x256113)+_0xdf007a;const _0x2ab3bc=_0x68c92f+_0x484386;while(_0x49a9e9[_0x3d50ce(0xe9)](_0x68c92f,_0x2ab3bc)){const [_0x5a0cd9,_0x1325bc]=readId(_0x353e59,_0x68c92f),[_0x3e0eae,_0x256595]=_0x49a9e9['CNRVE'](readVint,_0x353e59,_0x68c92f+_0x1325bc);if(_0x49a9e9[_0x3d50ce(0xe3)](_0x5a0cd9,ID_TIMESTAMP_SCALE))return readUint(_0x353e59,_0x49a9e9[_0x3d50ce(0x110)](_0x68c92f+_0x1325bc,_0x256595),_0x3e0eae);_0x68c92f+=_0x1325bc+_0x256595+_0x3e0eae;}break;}if(_0x49a9e9[_0x3d50ce(0x10d)](_0x1ee3a6,ID_CLUSTER))break;if(_0x49a9e9[_0x3d50ce(0x124)](isUnknownSize,_0x484386,_0xdf007a))break;_0x20d2f5+=_0x49a9e9[_0x3d50ce(0x110)](_0x49a9e9[_0x3d50ce(0x110)](_0x256113,_0xdf007a),_0x484386);}return 0xf4240;}function findFirstClusterOffset(_0x5ec1df,_0x54d67e){const _0x191e9f=_0x2297,_0x570dcd={'NympT':function(_0x5be1e6,_0x4a7b83){return _0x5be1e6+_0x4a7b83;}};let _0x123bb5=_0x54d67e;while(_0x123bb5<_0x5ec1df[_0x191e9f(0x10a)]){const [_0x2e57aa,_0x113cc0]=readId(_0x5ec1df,_0x123bb5);if(_0x2e57aa===ID_CLUSTER)return _0x123bb5;const [_0x6f2a73,_0x2ef0ad]=readVint(_0x5ec1df,_0x570dcd['NympT'](_0x123bb5,_0x113cc0));if(isUnknownSize(_0x6f2a73,_0x2ef0ad))return _0x123bb5;_0x123bb5+=_0x113cc0+_0x2ef0ad+_0x6f2a73;}return _0x5ec1df[_0x191e9f(0x10a)];}function findClusterEnd(_0x1ea224,_0x45ceaf,_0x450576,_0x31bc83){const _0x3411b2=_0x2297,_0x4494d1={'ANKzN':function(_0x39c4f0,_0x350bc1,_0x533268){return _0x39c4f0(_0x350bc1,_0x533268);},'sqOfk':function(_0xf9370a,_0x53d797){return _0xf9370a+_0x53d797;}};if(!isUnknownSize(_0x450576,_0x31bc83))return _0x45ceaf+_0x450576;const _0x4c5b8d=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x78cc5b=_0x45ceaf;while(_0x78cc5b<_0x1ea224['length']-0x4){const [_0x5d694b,_0x20655b]=_0x4494d1['ANKzN'](readId,_0x1ea224,_0x78cc5b);if(_0x4c5b8d['has'](_0x5d694b))return _0x78cc5b;const [_0x201267,_0x4770c2]=readVint(_0x1ea224,_0x78cc5b+_0x20655b);if(_0x4494d1[_0x3411b2(0x11a)](isUnknownSize,_0x201267,_0x4770c2))return _0x1ea224[_0x3411b2(0x10a)];_0x78cc5b+=_0x4494d1['sqOfk'](_0x20655b+_0x4770c2,_0x201267);}return _0x1ea224['length'];}function extractClusters(_0x2c1097,_0x3d5fa3){const _0x4356ee=_0x2297,_0x5d886a={'COuCO':function(_0x588830,_0x26848b,_0x47cdfc){return _0x588830(_0x26848b,_0x47cdfc);},'jfehs':function(_0x2ad968,_0x24b373){return _0x2ad968+_0x24b373;},'HmSmI':function(_0x15939c,_0x174a98){return _0x15939c+_0x174a98;},'depOq':function(_0x314985,_0x22bbc8){return _0x314985+_0x22bbc8;},'uQrGs':function(_0x243fe1,_0x831afd,_0x2f42e9,_0x3ef525,_0x2e5335){return _0x243fe1(_0x831afd,_0x2f42e9,_0x3ef525,_0x2e5335);},'mrmmZ':function(_0x367c47,_0x4282b7){return _0x367c47===_0x4282b7;},'MsDnj':function(_0x3fe9e5,_0x129f54){return _0x3fe9e5<_0x129f54;},'nuRoP':function(_0x544d30,_0x4f2ce2){return _0x544d30+_0x4f2ce2;},'AKMDT':function(_0x54c5ef,_0x356a3f){return _0x54c5ef>=_0x356a3f;},'Ybnbr':function(_0x52c698,_0x49563e){return _0x52c698+_0x49563e;},'iqcUY':function(_0x17d2ba,_0x1e779c,_0x1715c4){return _0x17d2ba(_0x1e779c,_0x1715c4);},'gtdeF':function(_0x4922d3,_0x3e835c){return _0x4922d3+_0x3e835c;},'QOztF':function(_0x199c1d,_0x2674c5){return _0x199c1d+_0x2674c5;}},_0x321a0b=[],_0x50e2f9=Buffer[_0x4356ee(0x109)]([0x1f,0x43,0xb6,0x75]);let _0x3546d4=0x0;while(_0x3546d4<_0x2c1097[_0x4356ee(0x10a)]){const _0x1a5122=_0x2c1097['indexOf'](_0x50e2f9,_0x3546d4);if(_0x1a5122===-0x1)break;const [_0x2067f8,_0x5d3221]=readId(_0x2c1097,_0x1a5122);if(_0x2067f8!==ID_CLUSTER){_0x3546d4=_0x1a5122+0x1;continue;}const [_0x45af21,_0x411eea]=_0x5d886a[_0x4356ee(0x11d)](readVint,_0x2c1097,_0x5d886a[_0x4356ee(0x100)](_0x1a5122,_0x5d3221)),_0x6e4b7f=_0x5d886a['HmSmI'](_0x5d886a[_0x4356ee(0x117)](_0x1a5122,_0x5d3221),_0x411eea),_0xd9f537=_0x5d886a['uQrGs'](findClusterEnd,_0x2c1097,_0x6e4b7f,_0x45af21,_0x411eea);let _0x4ef4f4=_0x6e4b7f,_0x3084c0=0x0,_0x465794=0x2,_0x37ef55=![],_0xa3276c=Buffer[_0x4356ee(0x121)](0x0),_0x29aa34=Buffer['alloc'](0x0);while(_0x4ef4f4<_0xd9f537){const [_0x192822,_0xc42db1]=_0x5d886a[_0x4356ee(0x11d)](readId,_0x2c1097,_0x4ef4f4),[_0xff1902,_0x1bcd34]=readVint(_0x2c1097,_0x4ef4f4+_0xc42db1);if(_0x5d886a[_0x4356ee(0x11c)](_0x192822,ID_TIMESTAMP)){_0x3084c0=readUint(_0x2c1097,_0x5d886a['HmSmI'](_0x4ef4f4,_0xc42db1)+_0x1bcd34,_0xff1902),_0x465794=_0xff1902,_0x37ef55=!![],_0xa3276c=_0x2c1097[_0x4356ee(0x106)](_0x6e4b7f,_0x4ef4f4);const _0x481a08=_0x5d886a['HmSmI'](_0x4ef4f4,_0xc42db1)+_0x1bcd34+_0xff1902;_0x29aa34=_0x2c1097['slice'](_0x481a08,_0xd9f537);break;}if(_0x192822===ID_CLUSTER)break;if(_0x5d886a['COuCO'](isUnknownSize,_0xff1902,_0x1bcd34))break;_0x4ef4f4+=_0xc42db1+_0x1bcd34+_0xff1902;}!_0x37ef55&&(_0x29aa34=_0x2c1097['slice'](_0x6e4b7f,_0xd9f537));let _0x34f1ad=_0x3084c0;_0x4ef4f4=_0x6e4b7f;while(_0x5d886a[_0x4356ee(0x111)](_0x4ef4f4,_0xd9f537)){const [_0x306508,_0x19db6c]=_0x5d886a[_0x4356ee(0x11d)](readId,_0x2c1097,_0x4ef4f4),[_0x24d1fb,_0x3bb57a]=readVint(_0x2c1097,_0x5d886a[_0x4356ee(0x120)](_0x4ef4f4,_0x19db6c));if(_0x5d886a[_0x4356ee(0x11c)](_0x306508,ID_SIMPLE_BLOCK)&&_0x5d886a[_0x4356ee(0xe4)](_0x24d1fb,0x4)){const _0x38f0e8=_0x5d886a[_0x4356ee(0xe1)](_0x4ef4f4,_0x19db6c)+_0x3bb57a,[,_0x45ae4e]=_0x5d886a['iqcUY'](readVint,_0x2c1097,_0x38f0e8),_0xc8fb34=_0x2c1097[_0x4356ee(0x105)](_0x5d886a['depOq'](_0x38f0e8,_0x45ae4e)),_0x368d74=_0x5d886a[_0x4356ee(0x11e)](_0x3084c0,_0xc8fb34);if(_0x368d74>_0x34f1ad)_0x34f1ad=_0x368d74;}if(_0x306508===ID_CLUSTER)break;if(isUnknownSize(_0x24d1fb,_0x3bb57a))break;_0x4ef4f4+=_0x5d886a[_0x4356ee(0xdd)](_0x19db6c+_0x3bb57a,_0x24d1fb);}_0x321a0b['push']({'timestamp':_0x3084c0,'maxTicks':_0x34f1ad,'bodyBeforeTimestamp':_0xa3276c,'bodyAfterTimestamp':_0x29aa34,'timestampElementSize':_0x465794}),_0x3546d4=_0xd9f537;}return _0x321a0b;}function parseWebm(_0x310062){const _0x16ba6f=_0x2297,_0x220427={'SojYP':function(_0x335713,_0x34642e){return _0x335713+_0x34642e;},'lJCTg':function(_0x2ccd23,_0x2c7eec,_0x2caebf){return _0x2ccd23(_0x2c7eec,_0x2caebf);},'MGfeT':function(_0x285c2b,_0x522bda){return _0x285c2b!==_0x522bda;},'iQqYe':function(_0x11fc26,_0x2bb4c1){return _0x11fc26>_0x2bb4c1;}};let _0x2a9bb4=0x0;const [,_0x3b4b67]=readId(_0x310062,_0x2a9bb4),[_0x4d9875,_0x3781d3]=readVint(_0x310062,_0x220427[_0x16ba6f(0x104)](_0x2a9bb4,_0x3b4b67));_0x2a9bb4+=_0x220427['SojYP'](_0x3b4b67+_0x3781d3,_0x4d9875);const [_0x3e0aca,_0x3457d6]=_0x220427['lJCTg'](readId,_0x310062,_0x2a9bb4);if(_0x220427[_0x16ba6f(0x103)](_0x3e0aca,ID_SEGMENT))return null;const [,_0x2b0e42]=readVint(_0x310062,_0x2a9bb4+_0x3457d6),_0x4c7ff2=_0x2a9bb4+_0x3457d6+_0x2b0e42,_0x444f8a=_0x220427['lJCTg'](findTimestampScale,_0x310062,_0x4c7ff2),_0x568f26=findFirstClusterOffset(_0x310062,_0x4c7ff2),_0x1d3235=_0x310062['slice'](0x0,_0x568f26),_0x4a36b2=extractClusters(_0x310062,_0x444f8a);let _0xde80ce=0x0;for(const _0x3f9438 of _0x4a36b2){if(_0x220427[_0x16ba6f(0x10e)](_0x3f9438[_0x16ba6f(0xed)],_0xde80ce))_0xde80ce=_0x3f9438['maxTicks'];}return{'header':_0x1d3235,'clusters':_0x4a36b2,'timestampScale':_0x444f8a,'maxTimestampTicks':_0xde80ce};}function buildCluster(_0x1b4dcc,_0x342867,_0x1cb052){const _0x639419=_0x2297,_0x277f1d={'uxtip':function(_0x33701b,_0x1218cc){return _0x33701b(_0x1218cc);}},_0x3d6814=Buffer[_0x639419(0x109)]([0x1f,0x43,0xb6,0x75]),_0x1ca7be=Math['max'](0x4,_0x277f1d['uxtip'](uintSize,_0x1b4dcc)),_0x2541d8=Buffer['concat']([Buffer[_0x639419(0x109)]([ID_TIMESTAMP]),_0x277f1d[_0x639419(0x11f)](writeVint,_0x1ca7be),writeUint(_0x1b4dcc,_0x1ca7be)]),_0x39805d=Buffer['concat']([_0x342867,_0x2541d8,_0x1cb052]),_0x459ffe=writeVint(_0x39805d[_0x639419(0x10a)]);return Buffer[_0x639419(0xff)]([_0x3d6814,_0x459ffe,_0x39805d]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x487604){const _0x140973=_0x2297,_0x20c992={'SIHHV':function(_0x517758,_0x2006fe,_0x4bd23e){return _0x517758(_0x2006fe,_0x4bd23e);},'SOTdh':function(_0x3fc102,_0x3dad6b){return _0x3fc102+_0x3dad6b;},'LdrUr':function(_0x2c20d9,_0x40e560){return _0x2c20d9+_0x40e560;},'TslNU':function(_0x32c63e,_0x14b395){return _0x32c63e+_0x14b395;},'QNtbu':function(_0x1e1156,_0x32a1fe){return _0x1e1156+_0x32a1fe;},'UlFMR':function(_0x2184c3,_0x2cf813){return _0x2184c3(_0x2cf813);},'ErQrk':function(_0x296dd1,_0x267a41){return _0x296dd1+_0x267a41;},'oMToY':function(_0x28e622,_0x552157){return _0x28e622<_0x552157;},'tTihA':function(_0x264328,_0x1ea6ab){return _0x264328===_0x1ea6ab;},'uHdOs':function(_0xafff6,_0x28cf08){return _0xafff6+_0x28cf08;},'wvgVm':function(_0x62eb4,_0xc041c){return _0x62eb4+_0xc041c;},'wVzgF':function(_0x4d2bfe,_0x4b32a4){return _0x4d2bfe+_0x4b32a4;},'OLXWQ':function(_0x1e1b27,_0x48fe20){return _0x1e1b27+_0x48fe20;},'LzNqF':function(_0x6932d7,_0x2fd8f9){return _0x6932d7+_0x2fd8f9;}},_0x801020=Buffer[_0x140973(0x109)](_0x487604);let _0x4ff720=0x0;const [,_0x8f226]=_0x20c992[_0x140973(0xfe)](readId,_0x801020,_0x4ff720),[_0x12cf20,_0x9ccaa5]=_0x20c992[_0x140973(0xfe)](readVint,_0x801020,_0x20c992[_0x140973(0xf6)](_0x4ff720,_0x8f226)),_0x3b680a=_0x20c992['LdrUr'](_0x20c992[_0x140973(0xf4)](_0x4ff720,_0x8f226)+_0x9ccaa5,_0x12cf20),[,_0x4d4f54]=readId(_0x801020,_0x3b680a),[,_0x3dad03]=readVint(_0x801020,_0x20c992['QNtbu'](_0x3b680a,_0x4d4f54)),_0x36b35f=_0x3b680a+_0x4d4f54+_0x3dad03,_0x230c96=_0x20c992[_0x140973(0x11b)](writeUnknownSizeVint,_0x3dad03);_0x230c96[_0x140973(0xf2)](_0x801020,_0x20c992['SOTdh'](_0x3b680a,_0x4d4f54));let _0x2d320c=_0x36b35f;const _0x16341d=Math[_0x140973(0xeb)](_0x801020[_0x140973(0x10a)],_0x20c992['ErQrk'](_0x36b35f,0x2710));while(_0x20c992[_0x140973(0xf7)](_0x2d320c,_0x16341d)){const [_0x48c4cc,_0xd0c0f6]=_0x20c992[_0x140973(0xfe)](readId,_0x801020,_0x2d320c),[_0x42aac3,_0x210a9a]=_0x20c992[_0x140973(0xfe)](readVint,_0x801020,_0x2d320c+_0xd0c0f6);if(_0x20c992[_0x140973(0xea)](_0x48c4cc,ID_CLUSTER))break;if(isUnknownSize(_0x42aac3,_0x210a9a))break;if(_0x48c4cc===ID_INFO){const _0x2cda74=_0x20c992['uHdOs'](_0x20c992[_0x140973(0xec)](_0x2d320c,_0xd0c0f6),_0x210a9a),_0x3e07e5=_0x2cda74+_0x42aac3,_0xb29bb=[];let _0x2d366e=_0x2cda74;while(_0x20c992['oMToY'](_0x2d366e,_0x3e07e5)){const [_0x5b0160,_0x129a3f]=readId(_0x801020,_0x2d366e),[_0x57e5aa,_0x111273]=readVint(_0x801020,_0x20c992['wVzgF'](_0x2d366e,_0x129a3f)),_0x5ed024=_0x129a3f+_0x111273+_0x57e5aa;_0x5b0160!==ID_DURATION&&_0xb29bb['push'](_0x801020['slice'](_0x2d366e,_0x20c992[_0x140973(0xef)](_0x2d366e,_0x5ed024))),_0x2d366e+=_0x5ed024;}const _0x87aa9d=Buffer[_0x140973(0xff)](_0xb29bb),_0x1c478e=Buffer[_0x140973(0xff)]([_0x801020['slice'](_0x2d320c,_0x20c992['LzNqF'](_0x2d320c,_0xd0c0f6)),_0x20c992['SIHHV'](writeVint,_0x87aa9d['length'],_0x210a9a)]);return Buffer[_0x140973(0xff)]([_0x801020['slice'](0x0,_0x2d320c),_0x1c478e,_0x87aa9d,_0x801020['slice'](_0x3e07e5)]);}_0x2d320c+=_0xd0c0f6+_0x210a9a+_0x42aac3;}return _0x801020;}export function stitchWebmFiles(_0x2cb8c4,_0x5a5229){const _0x114f1c=_0x2297,_0x39d99e={'UBhhY':function(_0x4e0aa2,_0x43ecc5){return _0x4e0aa2<=_0x43ecc5;},'xtreR':function(_0xf9ac7c,_0x490115){return _0xf9ac7c(_0x490115);},'tbfmO':function(_0x3f4741,_0x4e9c2a){return _0x3f4741(_0x4e9c2a);},'WgsHb':function(_0x57c53d,_0xc69381){return _0x57c53d+_0xc69381;},'YtQLu':function(_0x1cac66,_0x5e701d,_0xdace4d,_0x1dc3b7){return _0x1cac66(_0x5e701d,_0xdace4d,_0x1dc3b7);},'lDKOX':function(_0x4330bd,_0x149d32,_0x14b508){return _0x4330bd(_0x149d32,_0x14b508);}};if(_0x39d99e[_0x114f1c(0x113)](_0x2cb8c4[_0x114f1c(0x10a)],0x1))return![];const _0x146678=[];for(const _0x1ca485 of _0x2cb8c4){const _0x3629e6=readFileSync(_0x1ca485),_0x19314c=_0x39d99e[_0x114f1c(0x10f)](parseWebm,_0x3629e6);if(!_0x19314c||_0x19314c['clusters']['length']===0x0)return![];_0x146678['push'](_0x19314c);}const _0xbf2fd6=_0x146678[0x0],_0x4bde30=_0x39d99e['tbfmO'](rebuildHeaderWithoutDuration,_0xbf2fd6[_0x114f1c(0x115)]),_0x314a94=[_0x4bde30];let _0x12bd8b=0x0;for(let _0x590b18=0x0;_0x590b18<_0x146678['length'];_0x590b18++){const _0x5d447d=_0x146678[_0x590b18];for(const _0x4c8686 of _0x5d447d['clusters']){const _0x279801=_0x39d99e[_0x114f1c(0x125)](_0x4c8686[_0x114f1c(0xde)],_0x12bd8b);_0x314a94['push'](_0x39d99e['YtQLu'](buildCluster,_0x279801,_0x4c8686['bodyBeforeTimestamp'],_0x4c8686[_0x114f1c(0x112)]));}const _0xedd379=0x1e;_0x12bd8b+=_0x5d447d[_0x114f1c(0xf8)]+_0xedd379;}return _0x39d99e['lDKOX'](writeFileSync,_0x5a5229,Buffer[_0x114f1c(0xff)](_0x314a94)),!![];}if(process['argv'][0x1]?.[_0x6a6f67(0x10c)]('stitchWebmFiles.ts')||process[_0x6a6f67(0xe0)][0x1]?.['endsWith']('stitchWebmFiles.js')){const args=process['argv']['slice'](0x2);args['length']<0x3&&(console['error']('Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>'),process[_0x6a6f67(0xdc)](0x1));const output=args[args[_0x6a6f67(0x10a)]-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console['log'](_0x6a6f67(0xf3)+inputs['length']+'\x20files\x20->\x20'+output):console['log'](_0x6a6f67(0xfa));}
@@ -1 +1 @@
1
- const _0xe95e8b=_0x38ee;(function(_0x4db1a7,_0x14bb67){const _0x588315=_0x38ee,_0x326082=_0x4db1a7();while(!![]){try{const _0x29bc8d=-parseInt(_0x588315(0x217))/0x1*(parseInt(_0x588315(0x20f))/0x2)+parseInt(_0x588315(0x233))/0x3+-parseInt(_0x588315(0x211))/0x4*(-parseInt(_0x588315(0x221))/0x5)+parseInt(_0x588315(0x228))/0x6+-parseInt(_0x588315(0x1f7))/0x7*(-parseInt(_0x588315(0x1f9))/0x8)+parseInt(_0x588315(0x232))/0x9*(parseInt(_0x588315(0x22a))/0xa)+-parseInt(_0x588315(0x220))/0xb;if(_0x29bc8d===_0x14bb67)break;else _0x326082['push'](_0x326082['shift']());}catch(_0x4d2dad){_0x326082['push'](_0x326082['shift']());}}}(_0x184d,0x8ef24));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';function _0x184d(){const _0x5f362e=['XVOBA','phaseStartTimes','isTTY','name','trackCommandError','DEBUG','command_error','delete','aIAqw','trackPhaseEnd','7vSahpp','phaseCounter','3336176ohYKsK','oMwFq','command_end','deviceId','trackCommandEnd','success','commandStartTime','stdout','kxmaZ','isCI','now','trackCommandStart','uLIgg','nodeVersion','NqVhZ','cliVersion','buildEvent','flushing','yjKUD','/api/v1/mcp/cli-telemetry','outcome','GITHUB_ACTIONS','2107532kWTVlY','[telemetry]\x20Sending\x20','368356YfkptD','QsScE','durationMs','commandId','constructor','cwd','1pSXZti','sendBatch','sendImmediate','get','VQsxZ','flush','transport','slice','featureId','28051078CXUFAf','50tXZDqr','checklistItemId','command','length','abort','isTty','utf-8','6028140pleWoZ','MUbyF','380IfpESO','POST','flushAsync','finally','iKOAc','Qdyoh','stringify','set','222363KpuaPt','2723712wYPqeg','buffer','env','VszjD','evaluation','browserSessionId'];_0x184d=function(){return _0x5f362e;};return _0x184d();}let cachedDeviceId=null;function getDeviceId(){const _0xe173b4=_0x38ee,_0x2c1dac={'oMwFq':function(_0x44ee9c,_0x218fbf,_0x86ff1b){return _0x44ee9c(_0x218fbf,_0x86ff1b);},'iKOAc':function(_0x1a0171){return _0x1a0171();},'RnrNT':function(_0x30f59d){return _0x30f59d();}};if(cachedDeviceId)return cachedDeviceId;try{const _0x2b57db=_0x2c1dac[_0xe173b4(0x1fa)](join,_0x2c1dac[_0xe173b4(0x22e)](homedir),'.ranger'),_0x585a07=_0x2c1dac[_0xe173b4(0x1fa)](join,_0x2b57db,'.session');if(existsSync(_0x585a07)){cachedDeviceId=readFileSync(_0x585a07,_0xe173b4(0x227))['trim']();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=_0x2c1dac['RnrNT'](randomUUID),mkdirSync(_0x2b57db,{'recursive':!![]}),writeFileSync(_0x585a07,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=randomUUID(),cachedDeviceId;}}function _0x38ee(_0x56d3a6,_0x1e2d51){_0x56d3a6=_0x56d3a6-0x1f0;const _0x184d45=_0x184d();let _0x38eed2=_0x184d45[_0x56d3a6];return _0x38eed2;}export class TelemetryCollector{[_0xe95e8b(0x234)]=[];['commandId'];[_0xe95e8b(0x223)];['commandStartTime'];[_0xe95e8b(0x1f8)]=0x0;[_0xe95e8b(0x23a)]=new Map();[_0xe95e8b(0x20a)]=null;[_0xe95e8b(0x1fc)];[_0xe95e8b(0x208)];['nodeVersion'];['platform'];['isTty'];['isCI'];['featureId'];[_0xe95e8b(0x222)];[_0xe95e8b(0x238)];[_0xe95e8b(0x21d)];constructor(_0x3d1084){const _0x20ee05=_0xe95e8b,_0x3afd8c={'aIAqw':function(_0x44fed4){return _0x44fed4();}};this['commandId']=randomUUID(),this[_0x20ee05(0x223)]=_0x3d1084,this[_0x20ee05(0x1ff)]=Date[_0x20ee05(0x203)](),this[_0x20ee05(0x1fc)]=_0x3afd8c[_0x20ee05(0x1f5)](getDeviceId),this[_0x20ee05(0x208)]=getCurrentVersion(),this['nodeVersion']=process['version'],this['platform']=process['platform'],this[_0x20ee05(0x226)]=process[_0x20ee05(0x200)][_0x20ee05(0x23b)]??![],this[_0x20ee05(0x202)]=!!(process[_0x20ee05(0x235)]['CI']||process['env'][_0x20ee05(0x20e)]);}['setContext'](_0x548bd9){const _0x3a8d7b=_0xe95e8b;if(_0x548bd9[_0x3a8d7b(0x21f)])this[_0x3a8d7b(0x21f)]=_0x548bd9['featureId'];if(_0x548bd9[_0x3a8d7b(0x222)])this['checklistItemId']=_0x548bd9['checklistItemId'];if(_0x548bd9['browserSessionId'])this[_0x3a8d7b(0x238)]=_0x548bd9[_0x3a8d7b(0x238)];if(_0x548bd9[_0x3a8d7b(0x21d)])this['transport']=_0x548bd9['transport'];}async['trackCommandStart'](_0x586d55){const _0x48f5bb=_0xe95e8b,_0x22a7fa={'WBsyq':'command_start'},_0x42f3ee=this[_0x48f5bb(0x209)]({'eventType':_0x22a7fa['WBsyq'],'metadata':_0x586d55});await this['sendImmediate'](_0x42f3ee);}async[_0xe95e8b(0x1fd)](_0x16989b,_0x21435a){const _0x32ea38=_0xe95e8b,_0xf56a64={'nMHoI':function(_0x57b218,_0x1df738){return _0x57b218-_0x1df738;}},_0x29bf24=this[_0x32ea38(0x209)]({'eventType':_0x32ea38(0x1fb),'outcome':_0x16989b,'durationMs':_0xf56a64['nMHoI'](Date[_0x32ea38(0x203)](),this['commandStartTime']),'metadata':_0x21435a});await this[_0x32ea38(0x219)](_0x29bf24),await this['flush']();}async['trackCommandError'](_0x4afe95,_0x279fe9){const _0x7d4888=_0xe95e8b,_0x358523={'kxmaZ':function(_0x593a51,_0x150403,_0x3bc3b6){return _0x593a51(_0x150403,_0x3bc3b6);},'VQsxZ':function(_0x3d1968,_0x1dde5a){return _0x3d1968(_0x1dde5a);},'Qdyoh':'Unknown','zYKed':function(_0x2de92a,_0x28ef35){return _0x2de92a-_0x28ef35;}},_0x53b41c=this[_0x7d4888(0x209)]({'eventType':_0x7d4888(0x1f3),'errorMessage':_0x358523[_0x7d4888(0x201)](truncate,_0x4afe95 instanceof Error?_0x4afe95['message']:_0x358523[_0x7d4888(0x21b)](String,_0x4afe95),0x1f4),'errorType':_0x4afe95 instanceof Error?_0x4afe95[_0x7d4888(0x215)]['name']:_0x358523[_0x7d4888(0x22f)],'durationMs':_0x358523['zYKed'](Date['now'](),this['commandStartTime']),'metadata':_0x279fe9});await this[_0x7d4888(0x219)](_0x53b41c),await this['flush']();}['trackPhaseStart'](_0x19a545,_0x2a9036){const _0x57d350=_0xe95e8b;this['phaseCounter']++,this['phaseStartTimes'][_0x57d350(0x231)](_0x19a545,Date[_0x57d350(0x203)]());const _0x18a13d=this[_0x57d350(0x209)]({'eventType':'phase_start','phase':_0x19a545,'phaseIndex':this['phaseCounter'],'metadata':_0x2a9036});this['buffer']['push'](_0x18a13d);}[_0xe95e8b(0x1f6)](_0x2ae12a,_0x3c6fe9){const _0x628360=_0xe95e8b,_0x17194d={'NqVhZ':function(_0x8e7f63,_0x729ec4){return _0x8e7f63-_0x729ec4;},'XVOBA':'phase_end'},_0x3f8f17=this['phaseStartTimes']['get'](_0x2ae12a),_0x502ce5=_0x3f8f17?_0x17194d[_0x628360(0x207)](Date[_0x628360(0x203)](),_0x3f8f17):undefined;this[_0x628360(0x23a)]['delete'](_0x2ae12a);const _0xdcd19c=this[_0x628360(0x209)]({'eventType':_0x17194d[_0x628360(0x239)],'phase':_0x2ae12a,'durationMs':_0x502ce5,'metadata':_0x3c6fe9});this['buffer']['push'](_0xdcd19c),this['buffer'][_0x628360(0x224)]>=0xa&&this[_0x628360(0x22c)]();}async['trackPhaseError'](_0x58b770,_0x221f68,_0x1cbd95){const _0xebeb6c=_0xe95e8b,_0x3b5982={'AKnsS':'phase_error','xRVJL':function(_0x4343d1,_0x5a585b,_0x28f1a1){return _0x4343d1(_0x5a585b,_0x28f1a1);},'VszjD':function(_0x4a0a2c,_0x24ab11){return _0x4a0a2c instanceof _0x24ab11;},'ZqrPl':function(_0x475470,_0x209f6d){return _0x475470(_0x209f6d);},'Esxpl':function(_0x213bc2,_0x160b67){return _0x213bc2 instanceof _0x160b67;},'ImrYc':'Unknown'},_0xa0af33=this['phaseStartTimes'][_0xebeb6c(0x21a)](_0x58b770),_0x3e6d2b=_0xa0af33?Date['now']()-_0xa0af33:undefined;this[_0xebeb6c(0x23a)][_0xebeb6c(0x1f4)](_0x58b770);const _0x4bd8a7=this[_0xebeb6c(0x209)]({'eventType':_0x3b5982['AKnsS'],'phase':_0x58b770,'durationMs':_0x3e6d2b,'errorMessage':_0x3b5982['xRVJL'](truncate,_0x3b5982[_0xebeb6c(0x236)](_0x221f68,Error)?_0x221f68['message']:_0x3b5982['ZqrPl'](String,_0x221f68),0x1f4),'errorType':_0x3b5982['Esxpl'](_0x221f68,Error)?_0x221f68[_0xebeb6c(0x215)][_0xebeb6c(0x1f0)]:_0x3b5982['ImrYc'],'metadata':_0x1cbd95});await this[_0xebeb6c(0x219)](_0x4bd8a7);}async['flush'](){const _0xce9ca7=_0xe95e8b;if(this[_0xce9ca7(0x234)][_0xce9ca7(0x224)]===0x0)return;const _0x32f490=this['buffer']['splice'](0x0);try{await this['sendBatch'](_0x32f490);}catch{}}[_0xe95e8b(0x209)](_0x4ba128){const _0xae6807=_0xe95e8b;return{'eventType':_0x4ba128['eventType'],'command':this['command'],'commandId':this[_0xae6807(0x214)],'deviceId':this['deviceId'],'timestamp':new Date()['toISOString'](),'durationMs':_0x4ba128[_0xae6807(0x213)],'phase':_0x4ba128['phase'],'phaseIndex':_0x4ba128['phaseIndex'],'outcome':_0x4ba128[_0xae6807(0x20d)],'errorMessage':_0x4ba128['errorMessage'],'errorType':_0x4ba128['errorType'],'featureId':this['featureId'],'checklistItemId':this['checklistItemId'],'browserSessionId':this[_0xae6807(0x238)],'transport':this[_0xae6807(0x21d)],'evaluation':_0x4ba128[_0xae6807(0x237)],'cliVersion':this[_0xae6807(0x208)],'nodeVersion':this[_0xae6807(0x206)],'platform':this['platform'],'cwd':process[_0xae6807(0x216)](),'isTty':this['isTty'],'isCI':this[_0xae6807(0x202)],'metadata':_0x4ba128['metadata']};}async[_0xe95e8b(0x219)](_0x258cc7){const _0x4f57b9=_0xe95e8b;try{await this[_0x4f57b9(0x218)]([_0x258cc7]);}catch{}}[_0xe95e8b(0x22c)](){const _0x214c0d=_0xe95e8b;if(this['flushing'])return;this[_0x214c0d(0x20a)]=this['flush']()[_0x214c0d(0x22d)](()=>{this['flushing']=null;});}async['sendBatch'](_0xee0593){const _0x43c973=_0xe95e8b,_0xa5503b={'MUbyF':function(_0x402bb8){return _0x402bb8();},'QsScE':'Authorization','yjKUD':function(_0x237d23,_0x157f6d,_0x1245f3){return _0x237d23(_0x157f6d,_0x1245f3);},'GAJxg':_0x43c973(0x22b),'uLIgg':function(_0xacc58a,_0x5cb909){return _0xacc58a(_0x5cb909);}},_0x320606=await _0xa5503b[_0x43c973(0x229)](getToken)['catch'](()=>null),_0x31e06a=_0xa5503b[_0x43c973(0x229)](getApiBaseUrl),_0xa20d2f={'Content-Type':'application/json'};_0x320606&&(_0xa20d2f[_0xa5503b[_0x43c973(0x212)]]='Bearer\x20'+_0x320606);const _0x4f2f9e={'events':_0xee0593};process[_0x43c973(0x235)][_0x43c973(0x1f2)]&&console['error'](_0x43c973(0x210)+_0xee0593['length']+'\x20event(s)\x20to\x20'+_0x31e06a+'/api/v1/mcp/cli-telemetry');const _0x5ec45f=new AbortController(),_0x3188ef=_0xa5503b[_0x43c973(0x20b)](setTimeout,()=>_0x5ec45f[_0x43c973(0x225)](),0x1388);try{await _0xa5503b[_0x43c973(0x20b)](fetch,_0x31e06a+_0x43c973(0x20c),{'method':_0xa5503b['GAJxg'],'headers':_0xa20d2f,'body':JSON[_0x43c973(0x230)](_0x4f2f9e),'signal':_0x5ec45f['signal']});}finally{_0xa5503b[_0x43c973(0x205)](clearTimeout,_0x3188ef);}}}let currentCollector=null;export function createTelemetryCollector(_0x589885){return currentCollector=new TelemetryCollector(_0x589885),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0x20afb2,_0x237d4d,_0x4ce8d6){const _0x1faac1=_0xe95e8b,_0x134488={'RcLoc':function(_0x4a3fed,_0x5b0818){return _0x4a3fed(_0x5b0818);}},_0x55461b=_0x134488['RcLoc'](createTelemetryCollector,_0x20afb2);await _0x55461b[_0x1faac1(0x204)](_0x4ce8d6);try{const _0x54c7d6=await _0x237d4d(_0x55461b);return await _0x55461b[_0x1faac1(0x1fd)](_0x1faac1(0x1fe)),_0x54c7d6;}catch(_0x373727){await _0x55461b[_0x1faac1(0x1f1)](_0x373727);throw _0x373727;}finally{await _0x55461b[_0x1faac1(0x21c)]();}}function truncate(_0x2d9179,_0x115891){const _0x2d8ed3=_0xe95e8b;return _0x2d9179['length']>_0x115891?_0x2d9179[_0x2d8ed3(0x21e)](0x0,_0x115891)+'...':_0x2d9179;}
1
+ const _0x2c37b0=_0x1d22;(function(_0x204c57,_0x4e91ab){const _0x4deb6c=_0x1d22,_0xa17555=_0x204c57();while(!![]){try{const _0x2275f5=parseInt(_0x4deb6c(0x1f4))/0x1+-parseInt(_0x4deb6c(0x210))/0x2+-parseInt(_0x4deb6c(0x1cb))/0x3+-parseInt(_0x4deb6c(0x1ff))/0x4+parseInt(_0x4deb6c(0x1f5))/0x5*(-parseInt(_0x4deb6c(0x1f1))/0x6)+-parseInt(_0x4deb6c(0x20f))/0x7*(-parseInt(_0x4deb6c(0x1ef))/0x8)+-parseInt(_0x4deb6c(0x1f7))/0x9*(-parseInt(_0x4deb6c(0x212))/0xa);if(_0x2275f5===_0x4e91ab)break;else _0xa17555['push'](_0xa17555['shift']());}catch(_0x124247){_0xa17555['push'](_0xa17555['shift']());}}}(_0x2173,0xd7349));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 _0x1d22(_0x4432ad,_0x42fac0){_0x4432ad=_0x4432ad-0x1c7;const _0x21734f=_0x2173();let _0x1d2272=_0x21734f[_0x4432ad];return _0x1d2272;}function _0x2173(){const _0x43bccd=['LldtV','/api/v1/mcp/cli-telemetry','name','trackCommandEnd','outcome','POST','RHwzg','catch','phase_error','PxZJV','SLNUU','get','deviceId','constructor','sendImmediate','stdout','toISOString','lbvAM','phaseStartTimes','application/json','commandStartTime','flush','Lshwa','length','MEpEO','commandId','GITHUB_ACTIONS','atxBb','isCI','88mTWzZi','GcMin','30972yFJPet','mJEoq','flushAsync','976248aTMgCN','1615dQUZUi','Unknown','5139mzNFHA','phase_end','errorType','.session','slice','transport','nwUQg','env','5455748aWxOow','browserSessionId','isTty','push','delete','set','trackCommandError','phaseCounter','nkakg','\x20event(s)\x20to\x20','buffer','evaluation','errorMessage','sendBatch','buildEvent','featureId','353213xgaclT','2076022egdmfQ','pDADY','62970sSRCwM','flushing','checklistItemId','message','now','eaiLL','528387ssorFX','trackCommandStart','phase_start','stringify','...','platform','trackPhaseEnd'];_0x2173=function(){return _0x43bccd;};return _0x2173();}function getDeviceId(){const _0x5a2de3=_0x1d22,_0x51b9d0={'TEGRJ':function(_0xbc503c){return _0xbc503c();},'Lshwa':function(_0x189e67,_0x2bdd10,_0x1bf4b9){return _0x189e67(_0x2bdd10,_0x1bf4b9);},'PxZJV':'utf-8','mJEoq':function(_0x511592){return _0x511592();},'JbUsw':function(_0x15cf8d,_0x183e43,_0x44fd27){return _0x15cf8d(_0x183e43,_0x44fd27);}};if(cachedDeviceId)return cachedDeviceId;try{const _0x4c4cba=join(_0x51b9d0['TEGRJ'](homedir),'.ranger'),_0x305f6e=join(_0x4c4cba,_0x5a2de3(0x1fa));if(existsSync(_0x305f6e)){cachedDeviceId=_0x51b9d0[_0x5a2de3(0x1e8)](readFileSync,_0x305f6e,_0x51b9d0[_0x5a2de3(0x1db)])['trim']();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=_0x51b9d0[_0x5a2de3(0x1f2)](randomUUID),_0x51b9d0['JbUsw'](mkdirSync,_0x4c4cba,{'recursive':!![]}),writeFileSync(_0x305f6e,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=randomUUID(),cachedDeviceId;}}export class TelemetryCollector{['buffer']=[];[_0x2c37b0(0x1eb)];['command'];['commandStartTime'];['phaseCounter']=0x0;['phaseStartTimes']=new Map();['flushing']=null;[_0x2c37b0(0x1de)];['cliVersion'];['nodeVersion'];[_0x2c37b0(0x1d0)];[_0x2c37b0(0x201)];['isCI'];[_0x2c37b0(0x20e)];['checklistItemId'];[_0x2c37b0(0x200)];[_0x2c37b0(0x1fc)];constructor(_0x53ff40){const _0x12b44e=_0x2c37b0,_0x3fef94={'LldtV':function(_0x20cacd){return _0x20cacd();}};this[_0x12b44e(0x1eb)]=_0x3fef94[_0x12b44e(0x1d2)](randomUUID),this['command']=_0x53ff40,this[_0x12b44e(0x1e6)]=Date['now'](),this['deviceId']=getDeviceId(),this['cliVersion']=getCurrentVersion(),this['nodeVersion']=process['version'],this[_0x12b44e(0x1d0)]=process['platform'],this[_0x12b44e(0x201)]=process[_0x12b44e(0x1e1)]['isTTY']??![],this[_0x12b44e(0x1ee)]=!!(process['env']['CI']||process[_0x12b44e(0x1fe)][_0x12b44e(0x1ec)]);}['setContext'](_0x2ecfd9){const _0x271fc8=_0x2c37b0;if(_0x2ecfd9[_0x271fc8(0x20e)])this['featureId']=_0x2ecfd9[_0x271fc8(0x20e)];if(_0x2ecfd9[_0x271fc8(0x1c7)])this['checklistItemId']=_0x2ecfd9[_0x271fc8(0x1c7)];if(_0x2ecfd9[_0x271fc8(0x200)])this[_0x271fc8(0x200)]=_0x2ecfd9[_0x271fc8(0x200)];if(_0x2ecfd9['transport'])this[_0x271fc8(0x1fc)]=_0x2ecfd9['transport'];}async['trackCommandStart'](_0x33388e){const _0x2253cc=_0x2c37b0,_0x56a4a7=this[_0x2253cc(0x20d)]({'eventType':'command_start','metadata':_0x33388e});await this[_0x2253cc(0x1e0)](_0x56a4a7);}async[_0x2c37b0(0x1d5)](_0x9dfc1f,_0xbf5d3a){const _0x42d09f=_0x2c37b0,_0x165a52={'TvHdG':function(_0x112319,_0x1df8c5){return _0x112319-_0x1df8c5;}},_0x1de68b=this[_0x42d09f(0x20d)]({'eventType':'command_end','outcome':_0x9dfc1f,'durationMs':_0x165a52['TvHdG'](Date['now'](),this[_0x42d09f(0x1e6)]),'metadata':_0xbf5d3a});await this[_0x42d09f(0x1e0)](_0x1de68b),await this[_0x42d09f(0x1e7)]();}async['trackCommandError'](_0x4d3247,_0x368f13){const _0x40fcee=_0x2c37b0,_0x3be064={'vmVro':'command_error','RHwzg':function(_0x225dfa,_0x27e803,_0x29e936){return _0x225dfa(_0x27e803,_0x29e936);},'wWHdY':function(_0x2d2e18,_0x4ffb95){return _0x2d2e18 instanceof _0x4ffb95;},'KXhZt':function(_0xa78775,_0x1f81ea){return _0xa78775(_0x1f81ea);}},_0x443012=this[_0x40fcee(0x20d)]({'eventType':_0x3be064['vmVro'],'errorMessage':_0x3be064[_0x40fcee(0x1d8)](truncate,_0x3be064['wWHdY'](_0x4d3247,Error)?_0x4d3247[_0x40fcee(0x1c8)]:_0x3be064['KXhZt'](String,_0x4d3247),0x1f4),'errorType':_0x4d3247 instanceof Error?_0x4d3247[_0x40fcee(0x1df)][_0x40fcee(0x1d4)]:_0x40fcee(0x1f6),'durationMs':Date[_0x40fcee(0x1c9)]()-this[_0x40fcee(0x1e6)],'metadata':_0x368f13});await this['sendImmediate'](_0x443012),await this['flush']();}['trackPhaseStart'](_0x332862,_0x585fb8){const _0x4aa557=_0x2c37b0;this['phaseCounter']++,this['phaseStartTimes'][_0x4aa557(0x204)](_0x332862,Date['now']());const _0x523da7=this[_0x4aa557(0x20d)]({'eventType':_0x4aa557(0x1cd),'phase':_0x332862,'phaseIndex':this[_0x4aa557(0x206)],'metadata':_0x585fb8});this['buffer'][_0x4aa557(0x202)](_0x523da7);}[_0x2c37b0(0x1d1)](_0x5c0c6f,_0xad4346){const _0x1f67bf=_0x2c37b0,_0x18c2a4={'kgjNx':function(_0x838b51,_0x2ac043){return _0x838b51-_0x2ac043;},'PdTsX':_0x1f67bf(0x1f8),'MEpEO':function(_0x109127,_0x3f55fd){return _0x109127>=_0x3f55fd;}},_0x47c3ba=this[_0x1f67bf(0x1e4)]['get'](_0x5c0c6f),_0x5ce2e7=_0x47c3ba?_0x18c2a4['kgjNx'](Date[_0x1f67bf(0x1c9)](),_0x47c3ba):undefined;this[_0x1f67bf(0x1e4)][_0x1f67bf(0x203)](_0x5c0c6f);const _0x43299f=this['buildEvent']({'eventType':_0x18c2a4['PdTsX'],'phase':_0x5c0c6f,'durationMs':_0x5ce2e7,'metadata':_0xad4346});this['buffer']['push'](_0x43299f),_0x18c2a4[_0x1f67bf(0x1ea)](this['buffer'][_0x1f67bf(0x1e9)],0xa)&&this[_0x1f67bf(0x1f3)]();}async['trackPhaseError'](_0x1f16ec,_0x49928c,_0x126059){const _0xad13b0=_0x2c37b0,_0x5e656a={'pDADY':_0xad13b0(0x1da),'JRihp':function(_0x4152a3,_0x5a5231){return _0x4152a3(_0x5a5231);},'cWEcO':function(_0x317544,_0x3cebef){return _0x317544 instanceof _0x3cebef;}},_0x48e192=this['phaseStartTimes'][_0xad13b0(0x1dd)](_0x1f16ec),_0x2c2ff3=_0x48e192?Date['now']()-_0x48e192:undefined;this[_0xad13b0(0x1e4)]['delete'](_0x1f16ec);const _0x12f370=this['buildEvent']({'eventType':_0x5e656a[_0xad13b0(0x211)],'phase':_0x1f16ec,'durationMs':_0x2c2ff3,'errorMessage':truncate(_0x49928c instanceof Error?_0x49928c[_0xad13b0(0x1c8)]:_0x5e656a['JRihp'](String,_0x49928c),0x1f4),'errorType':_0x5e656a['cWEcO'](_0x49928c,Error)?_0x49928c['constructor']['name']:_0xad13b0(0x1f6),'metadata':_0x126059});await this[_0xad13b0(0x1e0)](_0x12f370);}async['flush'](){const _0x3359b0=_0x2c37b0,_0x3fb295={'jgXtx':function(_0x4973a1,_0x4f5d3f){return _0x4973a1===_0x4f5d3f;}};if(_0x3fb295['jgXtx'](this['buffer']['length'],0x0))return;const _0x2a24eb=this[_0x3359b0(0x209)]['splice'](0x0);try{await this['sendBatch'](_0x2a24eb);}catch{}}['buildEvent'](_0x4601cb){const _0x3692df=_0x2c37b0;return{'eventType':_0x4601cb['eventType'],'command':this['command'],'commandId':this['commandId'],'deviceId':this[_0x3692df(0x1de)],'timestamp':new Date()[_0x3692df(0x1e2)](),'durationMs':_0x4601cb['durationMs'],'phase':_0x4601cb['phase'],'phaseIndex':_0x4601cb['phaseIndex'],'outcome':_0x4601cb[_0x3692df(0x1d6)],'errorMessage':_0x4601cb[_0x3692df(0x20b)],'errorType':_0x4601cb[_0x3692df(0x1f9)],'featureId':this['featureId'],'checklistItemId':this[_0x3692df(0x1c7)],'browserSessionId':this['browserSessionId'],'transport':this['transport'],'evaluation':_0x4601cb[_0x3692df(0x20a)],'cliVersion':this['cliVersion'],'nodeVersion':this['nodeVersion'],'platform':this['platform'],'cwd':process['cwd'](),'isTty':this['isTty'],'isCI':this['isCI'],'metadata':_0x4601cb['metadata']};}async[_0x2c37b0(0x1e0)](_0x540bff){const _0xcc9f13=_0x2c37b0;try{await this[_0xcc9f13(0x20c)]([_0x540bff]);}catch{}}['flushAsync'](){const _0xc7d99=_0x2c37b0;if(this['flushing'])return;this[_0xc7d99(0x213)]=this[_0xc7d99(0x1e7)]()['finally'](()=>{const _0x2d2e56=_0xc7d99;this[_0x2d2e56(0x213)]=null;});}async['sendBatch'](_0x3b1fb8){const _0x3cf920=_0x2c37b0,_0x1ef1ad={'SLNUU':function(_0x529cba){return _0x529cba();},'GcMin':function(_0x16bb11){return _0x16bb11();},'lbvAM':'Authorization','nwUQg':function(_0x36f1bf,_0x5e79f7,_0x1e6f7f){return _0x36f1bf(_0x5e79f7,_0x1e6f7f);},'atxBb':function(_0x5f36e5,_0x51c85a,_0x130070){return _0x5f36e5(_0x51c85a,_0x130070);},'nkakg':_0x3cf920(0x1d7),'XkPyE':function(_0x455fc7,_0x1b9128){return _0x455fc7(_0x1b9128);}},_0x557c0c=await _0x1ef1ad[_0x3cf920(0x1dc)](getToken)[_0x3cf920(0x1d9)](()=>null),_0x37787f=_0x1ef1ad[_0x3cf920(0x1f0)](getApiBaseUrl),_0x5baae8={'Content-Type':_0x3cf920(0x1e5)};_0x557c0c&&(_0x5baae8[_0x1ef1ad[_0x3cf920(0x1e3)]]='Bearer\x20'+_0x557c0c);const _0x55e790={'events':_0x3b1fb8};process[_0x3cf920(0x1fe)]['DEBUG']&&console['error']('[telemetry]\x20Sending\x20'+_0x3b1fb8[_0x3cf920(0x1e9)]+_0x3cf920(0x208)+_0x37787f+'/api/v1/mcp/cli-telemetry');const _0x4d160b=new AbortController(),_0x2a9cdb=_0x1ef1ad[_0x3cf920(0x1fd)](setTimeout,()=>_0x4d160b['abort'](),0x1388);try{await _0x1ef1ad[_0x3cf920(0x1ed)](fetch,_0x37787f+_0x3cf920(0x1d3),{'method':_0x1ef1ad[_0x3cf920(0x207)],'headers':_0x5baae8,'body':JSON[_0x3cf920(0x1ce)](_0x55e790),'signal':_0x4d160b['signal']});}finally{_0x1ef1ad['XkPyE'](clearTimeout,_0x2a9cdb);}}}let currentCollector=null;export function createTelemetryCollector(_0x26b794){return currentCollector=new TelemetryCollector(_0x26b794),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0x69222e,_0x159388,_0x401380){const _0x19fbeb=_0x2c37b0,_0x24b703={'eaiLL':function(_0x25d509,_0xf8c7a8){return _0x25d509(_0xf8c7a8);},'eLVvR':'success'},_0x4cc634=_0x24b703[_0x19fbeb(0x1ca)](createTelemetryCollector,_0x69222e);await _0x4cc634[_0x19fbeb(0x1cc)](_0x401380);try{const _0xcbed2e=await _0x159388(_0x4cc634);return await _0x4cc634[_0x19fbeb(0x1d5)](_0x24b703['eLVvR']),_0xcbed2e;}catch(_0xbc2d7c){await _0x4cc634[_0x19fbeb(0x205)](_0xbc2d7c);throw _0xbc2d7c;}finally{await _0x4cc634[_0x19fbeb(0x1e7)]();}}function truncate(_0x2c3a51,_0x52a832){const _0x18f9be=_0x2c37b0;return _0x2c3a51['length']>_0x52a832?_0x2c3a51[_0x18f9be(0x1fb)](0x0,_0x52a832)+_0x18f9be(0x1cf):_0x2c3a51;}
@@ -1 +1 @@
1
- (function(_0x18dd38,_0x5da817){const _0xc070e5=_0x477b,_0x464313=_0x18dd38();while(!![]){try{const _0x3c0b22=parseInt(_0xc070e5(0x13c))/0x1*(-parseInt(_0xc070e5(0x138))/0x2)+parseInt(_0xc070e5(0x132))/0x3+-parseInt(_0xc070e5(0x143))/0x4*(-parseInt(_0xc070e5(0x13a))/0x5)+-parseInt(_0xc070e5(0x13b))/0x6+-parseInt(_0xc070e5(0x137))/0x7*(-parseInt(_0xc070e5(0x13f))/0x8)+-parseInt(_0xc070e5(0x130))/0x9*(-parseInt(_0xc070e5(0x13d))/0xa)+-parseInt(_0xc070e5(0x13e))/0xb;if(_0x3c0b22===_0x5da817)break;else _0x464313['push'](_0x464313['shift']());}catch(_0x342b82){_0x464313['push'](_0x464313['shift']());}}}(_0x1d42,0xc6320));import{getApiBaseUrl}from'./environment.js';import{getRefreshToken,storeToken,storeRefreshToken}from'./keychain.js';export async function refreshCliToken(){const _0x41024a=await getRefreshToken();if(!_0x41024a)return null;const _0x1b37b1=await tryPartnerRefresh(_0x41024a);if(_0x1b37b1)return _0x1b37b1;return tryWorkosRefresh(_0x41024a);}export async function refreshPartnerCliToken(_0x2ae0eb,_0x372f11={}){const _0x282168=_0x477b,_0x374d84=await tryPartnerRefresh(_0x2ae0eb);return _0x374d84&&_0x372f11[_0x282168(0x135)]&&await storeRefreshToken(_0x2ae0eb),_0x374d84;}function _0x477b(_0x3176ef,_0x56f5f5){_0x3176ef=_0x3176ef-0x12f;const _0x1d42c3=_0x1d42();let _0x477bdb=_0x1d42c3[_0x3176ef];return _0x477bdb;}function _0x1d42(){const _0x51324a=['stringify','persistRefreshToken','/cli-auth/refresh','203bAmNXO','2hphZyL','POST','250195gptBAF','6209028BIVqKa','1464027JdcbgF','11910490dojVPB','2823304irXJBw','108616OvTknA','token','application/json','timeout','124ImstrQ','hFZhy','9IyXcGj','/cli-auth/partner-refresh','1294038WWvPOD','json'];_0x1d42=function(){return _0x51324a;};return _0x1d42();}async function tryPartnerRefresh(_0x80be07){const _0x1147d2=_0x477b,_0x561bb8={'Ugxdd':function(_0x3c1f1f,_0x332e9a,_0x15d1ff){return _0x3c1f1f(_0x332e9a,_0x15d1ff);},'rdPVU':_0x1147d2(0x141)},_0x304dc0=getApiBaseUrl();try{const _0xbc2b7e=await _0x561bb8['Ugxdd'](fetch,_0x304dc0+_0x1147d2(0x131),{'method':_0x1147d2(0x139),'headers':{'Content-Type':_0x561bb8['rdPVU']},'body':JSON[_0x1147d2(0x134)]({'refreshToken':_0x80be07}),'signal':AbortSignal[_0x1147d2(0x142)](0x2710)});if(!_0xbc2b7e['ok'])return null;const _0x357d23=await _0xbc2b7e['json']();return await storeToken(_0x357d23[_0x1147d2(0x140)]),_0x357d23['token'];}catch{return null;}}async function tryWorkosRefresh(_0x5dcacf){const _0x464dd0=_0x477b,_0x562529={'AemCW':function(_0x5c10f0,_0x430394,_0x4da8e7){return _0x5c10f0(_0x430394,_0x4da8e7);},'KtqtX':'application/json','hFZhy':function(_0x5c5595,_0x2cc464){return _0x5c5595(_0x2cc464);}},_0xa6cd90=getApiBaseUrl();try{const _0x55cbdb=await _0x562529['AemCW'](fetch,_0xa6cd90+_0x464dd0(0x136),{'method':_0x464dd0(0x139),'headers':{'Content-Type':_0x562529['KtqtX']},'body':JSON[_0x464dd0(0x134)]({'refreshToken':_0x5dcacf}),'signal':AbortSignal['timeout'](0x2710)});if(!_0x55cbdb['ok'])return null;const _0x37baa1=await _0x55cbdb[_0x464dd0(0x133)]();return await storeToken(_0x37baa1[_0x464dd0(0x140)]),await _0x562529[_0x464dd0(0x12f)](storeRefreshToken,_0x37baa1['refreshToken']),_0x37baa1['token'];}catch{return null;}}
1
+ (function(_0x49509b,_0x39ee0d){const _0xc72cc7=_0x5683,_0x1f4743=_0x49509b();while(!![]){try{const _0x4f3208=parseInt(_0xc72cc7(0x1d7))/0x1*(parseInt(_0xc72cc7(0x1d8))/0x2)+parseInt(_0xc72cc7(0x1d3))/0x3+-parseInt(_0xc72cc7(0x1db))/0x4+-parseInt(_0xc72cc7(0x1da))/0x5*(parseInt(_0xc72cc7(0x1d9))/0x6)+-parseInt(_0xc72cc7(0x1ce))/0x7*(parseInt(_0xc72cc7(0x1e2))/0x8)+parseInt(_0xc72cc7(0x1d1))/0x9+parseInt(_0xc72cc7(0x1e0))/0xa;if(_0x4f3208===_0x39ee0d)break;else _0x1f4743['push'](_0x1f4743['shift']());}catch(_0x38de82){_0x1f4743['push'](_0x1f4743['shift']());}}}(_0x569e,0xb9df9));import{getApiBaseUrl}from'./environment.js';import{getRefreshToken,storeToken,storeRefreshToken}from'./keychain.js';export async function refreshCliToken(){const _0x48e889=_0x5683,_0x534818={'KZYov':function(_0x31f172,_0x41747e){return _0x31f172(_0x41747e);}},_0x2c91af=await getRefreshToken();if(!_0x2c91af)return null;const _0x47e734=await tryPartnerRefresh(_0x2c91af);if(_0x47e734)return _0x47e734;return _0x534818[_0x48e889(0x1e3)](tryWorkosRefresh,_0x2c91af);}export async function refreshPartnerCliToken(_0x2b993e,_0x1c15b1={}){const _0x1e21d8=_0x5683,_0x2820f9={'HWoFF':function(_0x217a41,_0x11509f){return _0x217a41(_0x11509f);}},_0x264342=await _0x2820f9[_0x1e21d8(0x1df)](tryPartnerRefresh,_0x2b993e);return _0x264342&&_0x1c15b1[_0x1e21d8(0x1cf)]&&await _0x2820f9['HWoFF'](storeRefreshToken,_0x2b993e),_0x264342;}async function tryPartnerRefresh(_0x5b44e5){const _0xb2f32e=_0x5683,_0xe8f5af={'GplTD':function(_0x5b10a8){return _0x5b10a8();},'xGZGK':function(_0x182f7d,_0x11b11f,_0x1f2462){return _0x182f7d(_0x11b11f,_0x1f2462);},'yfDGk':_0xb2f32e(0x1dc),'BSLKz':'application/json'},_0x351478=_0xe8f5af[_0xb2f32e(0x1d2)](getApiBaseUrl);try{const _0x4a7e5b=await _0xe8f5af['xGZGK'](fetch,_0x351478+_0xb2f32e(0x1d0),{'method':_0xe8f5af[_0xb2f32e(0x1dd)],'headers':{'Content-Type':_0xe8f5af['BSLKz']},'body':JSON['stringify']({'refreshToken':_0x5b44e5}),'signal':AbortSignal['timeout'](0x2710)});if(!_0x4a7e5b['ok'])return null;const _0x41c8b6=await _0x4a7e5b['json']();return await storeToken(_0x41c8b6[_0xb2f32e(0x1de)]),_0x41c8b6['token'];}catch{return null;}}function _0x569e(){const _0x342498=['2858670rWgnxT','refreshToken','tuWGV','WmwzT','249LhttVQ','122UkWwAM','305322CrvicD','10IkQhYm','5383096UnlslR','POST','yfDGk','token','HWoFF','9994620SniKhD','/cli-auth/refresh','198176CTdRvA','KZYov','203JPkgja','persistRefreshToken','/cli-auth/partner-refresh','8637588cgnoqE','GplTD'];_0x569e=function(){return _0x342498;};return _0x569e();}function _0x5683(_0x13edf0,_0x3de51f){_0x13edf0=_0x13edf0-0x1ce;const _0x569e77=_0x569e();let _0x5683d8=_0x569e77[_0x13edf0];return _0x5683d8;}async function tryWorkosRefresh(_0x56c8b2){const _0xc04447=_0x5683,_0x2fa094={'QjzIw':function(_0x68bd34){return _0x68bd34();},'WmwzT':function(_0x3dee06,_0x4050a4,_0x4b6a82){return _0x3dee06(_0x4050a4,_0x4b6a82);},'JYbuE':'POST','tuWGV':'application/json'},_0x1e1573=_0x2fa094['QjzIw'](getApiBaseUrl);try{const _0x17b9f3=await _0x2fa094[_0xc04447(0x1d6)](fetch,_0x1e1573+_0xc04447(0x1e1),{'method':_0x2fa094['JYbuE'],'headers':{'Content-Type':_0x2fa094[_0xc04447(0x1d5)]},'body':JSON['stringify']({'refreshToken':_0x56c8b2}),'signal':AbortSignal['timeout'](0x2710)});if(!_0x17b9f3['ok'])return null;const _0x905ecc=await _0x17b9f3['json']();return await storeToken(_0x905ecc[_0xc04447(0x1de)]),await storeRefreshToken(_0x905ecc[_0xc04447(0x1d4)]),_0x905ecc[_0xc04447(0x1de)];}catch{return null;}}
@@ -1 +1 @@
1
- function _0x5643(_0x501c7f,_0x351cf5){_0x501c7f=_0x501c7f-0xaf;const _0x168443=_0x1684();let _0x564324=_0x168443[_0x501c7f];return _0x564324;}(function(_0x5801c5,_0x53f551){const _0x379913=_0x5643,_0x258180=_0x5801c5();while(!![]){try{const _0x1ccbc2=parseInt(_0x379913(0xbc))/0x1+parseInt(_0x379913(0xd6))/0x2+-parseInt(_0x379913(0xcf))/0x3*(parseInt(_0x379913(0xb9))/0x4)+-parseInt(_0x379913(0xc6))/0x5+parseInt(_0x379913(0xde))/0x6+-parseInt(_0x379913(0xd2))/0x7*(parseInt(_0x379913(0xc3))/0x8)+parseInt(_0x379913(0xdd))/0x9*(parseInt(_0x379913(0xb5))/0xa);if(_0x1ccbc2===_0x53f551)break;else _0x258180['push'](_0x258180['shift']());}catch(_0x34db6a){_0x258180['push'](_0x258180['shift']());}}}(_0x1684,0x1c745));import{readdir,readFile}from'fs/promises';import{join}from'path';function _0x1684(){const _0x237af5=['152853HMjdux','set','method','14SEXWfP','capturedAt','page@0','length','82576azMFdZ','filter','apiName','KWDVR','push','pageId','SJRDN','18agjDIi','989178bYVHRi','endsWith','beforeSnapshot','afterSnapshot','event','.trace','trim','SLDQP','902230CKyjLM','indexOf','endTime','type','12qNAJbp','find','get','227422GWduob','wallTime','callId','frameUrl','frame-snapshot','snapshotName','utf-8','847880IEtcfp','Lohkx','navigated','663235JvDTsC','string','name','context-options','goto','ZCMlJ','inputSnapshot','snapshot','split'];_0x1684=function(){return _0x237af5;};return _0x1684();}export async function mapStepsToTraceSnapshots(_0x30d475,_0x531644){const _0x1a1aa7=_0x5643,_0x466e96={'tBUal':_0x1a1aa7(0xb2),'Lohkx':function(_0x26fb76,_0x38ff1a){return _0x26fb76===_0x38ff1a;},'yhRgT':_0x1a1aa7(0xc2),'BDDHv':function(_0x6bfe2a,_0x532561){return _0x6bfe2a-_0x532561;},'KWDVR':'after','HGMJm':_0x1a1aa7(0xc0),'AwULe':_0x1a1aa7(0xca),'SLDQP':_0x1a1aa7(0xb1),'qMOKx':'string','SJRDN':function(_0x3ff27e,_0x5d35c4){return _0x3ff27e-_0x5d35c4;},'AqSdQ':function(_0x55da52,_0x2dadd4){return _0x55da52===_0x2dadd4;},'jfqNI':function(_0x419e8f,_0x1d29d5){return _0x419e8f>=_0x1d29d5;},'ZCMlJ':function(_0x61ef5f,_0x1ceac1){return _0x61ef5f<_0x1ceac1;}},_0x4578b1=new Map();if(_0x466e96['Lohkx'](_0x531644['length'],0x0))return _0x4578b1;const _0x11cd3b=[],_0x46d29e=async _0x2c6725=>{const _0x30bd51=_0x1a1aa7,_0x39bdd7=await readdir(_0x2c6725,{'withFileTypes':!![]});for(const _0x1946d3 of _0x39bdd7){const _0x5e7575=join(_0x2c6725,_0x1946d3[_0x30bd51(0xc8)]);if(_0x1946d3['isDirectory']())await _0x46d29e(_0x5e7575);else _0x1946d3[_0x30bd51(0xc8)][_0x30bd51(0xdf)](_0x466e96['tBUal'])&&_0x11cd3b['push'](_0x5e7575);}};await _0x46d29e(_0x30d475);if(_0x11cd3b['length']===0x0)return _0x4578b1;const _0x3c408e=[];for(const _0x672ccf of _0x11cd3b){const _0x3077a5=await readFile(_0x672ccf,_0x466e96['yhRgT']),_0x1fff6d=_0x3077a5[_0x1a1aa7(0xce)]('\x0a')[_0x1a1aa7(0xd7)](_0x3e5b7e=>_0x3e5b7e[_0x1a1aa7(0xb3)]());for(const _0x371cb2 of _0x1fff6d){try{_0x3c408e[_0x1a1aa7(0xda)](JSON['parse'](_0x371cb2));}catch{}}}if(_0x466e96[_0x1a1aa7(0xc4)](_0x3c408e['length'],0x0))return _0x4578b1;const _0x1308a7=_0x3c408e[_0x1a1aa7(0xba)](_0x2d8f6d=>_0x2d8f6d['type']===_0x1a1aa7(0xc9));if(!_0x1308a7)return _0x4578b1;const _0x3703b4=_0x466e96['BDDHv'](_0x1308a7[_0x1a1aa7(0xbd)],_0x1308a7['monotonicTime']),_0xffd45a=new Map();for(const _0x4b0299 of _0x3c408e){switch(_0x4b0299[_0x1a1aa7(0xb8)]){case'before':{const _0x5707d6=_0x4b0299;_0xffd45a['set'](_0x5707d6[_0x1a1aa7(0xbe)],{'callId':_0x5707d6['callId'],'startTime':_0x5707d6['startTime'],'endTime':0x0,'method':_0x5707d6[_0x1a1aa7(0xd1)],'apiName':_0x5707d6[_0x1a1aa7(0xd8)],'params':_0x5707d6['params'],'pageId':_0x5707d6[_0x1a1aa7(0xdb)],'beforeSnapshot':_0x5707d6['beforeSnapshot']});break;}case'input':{const _0x4c1db4=_0x4b0299,_0x236d75=_0xffd45a[_0x1a1aa7(0xbb)](_0x4c1db4[_0x1a1aa7(0xbe)]);if(_0x236d75){if(_0x4c1db4[_0x1a1aa7(0xcc)])_0x236d75['inputSnapshot']=_0x4c1db4[_0x1a1aa7(0xcc)];if(_0x4c1db4['point'])_0x236d75['point']=_0x4c1db4['point'];}break;}case _0x466e96[_0x1a1aa7(0xd9)]:{const _0xb6082d=_0x4b0299,_0x3ef7c3=_0xffd45a['get'](_0xb6082d['callId']);if(_0x3ef7c3){_0x3ef7c3[_0x1a1aa7(0xb7)]=_0xb6082d['endTime'];if(_0xb6082d[_0x1a1aa7(0xb0)])_0x3ef7c3['afterSnapshot']=_0xb6082d['afterSnapshot'];}break;}}}const _0x4c5d99=Array['from'](_0xffd45a['values']())['filter'](_0x49d31c=>_0x49d31c['endTime']>0x0&&(_0x49d31c['afterSnapshot']||_0x49d31c[_0x1a1aa7(0xaf)]))['sort']((_0xd95d5d,_0x3826b5)=>_0xd95d5d['startTime']-_0x3826b5['startTime']);if(_0x466e96[_0x1a1aa7(0xc4)](_0x4c5d99['length'],0x0))return _0x4578b1;const _0x31189c=new Map();for(const _0x24bc25 of _0x3c408e){if(_0x24bc25[_0x1a1aa7(0xb8)]===_0x466e96['HGMJm']){const _0xd47425=_0x24bc25[_0x1a1aa7(0xcd)];_0xd47425?.['snapshotName']&&_0xd47425?.['frameUrl']&&_0x31189c[_0x1a1aa7(0xd0)](_0xd47425[_0x1a1aa7(0xc1)],_0xd47425[_0x1a1aa7(0xbf)]);}}const _0x4499e1=new Map();for(const _0x2ed723 of _0x4c5d99){const _0x131715=_0x2ed723['params']?.['url'];_0x2ed723[_0x1a1aa7(0xd1)]===_0x466e96['AwULe']&&typeof _0x131715===_0x1a1aa7(0xc7)&&_0x2ed723[_0x1a1aa7(0xdb)]&&_0x4499e1[_0x1a1aa7(0xd0)](_0x2ed723['pageId'],_0x131715);}for(const _0x1bf6e3 of _0x3c408e){const _0x5e5d35=_0x1bf6e3,_0x4a9e6d=_0x5e5d35['params'],_0x2333c3=_0x4a9e6d?.['url'];_0x5e5d35[_0x1a1aa7(0xb8)]===_0x466e96[_0x1a1aa7(0xb4)]&&_0x5e5d35[_0x1a1aa7(0xd1)]===_0x1a1aa7(0xc5)&&typeof _0x2333c3===_0x1a1aa7(0xc7)&&_0x466e96['Lohkx'](typeof _0x5e5d35[_0x1a1aa7(0xdb)],_0x466e96['qMOKx'])&&_0x4499e1[_0x1a1aa7(0xd0)](_0x5e5d35['pageId'],_0x2333c3);}for(const _0xbc60f8 of _0x531644){const _0x537225=new Date(_0xbc60f8[_0x1a1aa7(0xd3)])['getTime'](),_0x30cffd=_0x466e96[_0x1a1aa7(0xdc)](_0x537225,_0x3703b4);let _0x10bc25=null,_0x4a0160=Infinity;for(const _0x4e892b of _0x4c5d99){const _0x1577d5=Math['abs'](_0x4e892b['endTime']-_0x30cffd);_0x1577d5<_0x4a0160&&(_0x4a0160=_0x1577d5,_0x10bc25=_0x4e892b);}if(!_0x10bc25)continue;const _0x5db7b1=_0x10bc25['afterSnapshot']||_0x10bc25['beforeSnapshot'];if(!_0x5db7b1)continue;const _0x112453=_0x10bc25['pageId']||_0x1a1aa7(0xd4);let _0x7ee712=_0x31189c['get'](_0x5db7b1)||_0x4499e1['get'](_0x112453)||'';if(!_0x7ee712)for(let _0xb53069=_0x4c5d99['indexOf'](_0x10bc25);_0xb53069>=0x0;_0xb53069--){const _0x34e7e1=_0x4c5d99[_0xb53069]['params']?.['url'];if(_0x466e96['AqSdQ'](_0x4c5d99[_0xb53069][_0x1a1aa7(0xd1)],_0x1a1aa7(0xca))&&_0x466e96['AqSdQ'](typeof _0x34e7e1,_0x1a1aa7(0xc7))){_0x7ee712=_0x34e7e1;break;}}let _0x4bd3ea,_0x2bfbfa;const _0x41f01f=_0x4c5d99[_0x1a1aa7(0xb6)](_0x10bc25);if(_0x466e96['jfqNI'](_0x41f01f,0x0)&&_0x466e96[_0x1a1aa7(0xcb)](_0x41f01f,_0x4c5d99[_0x1a1aa7(0xd5)]-0x1)){const _0x3724c4=_0x4c5d99[_0x41f01f+0x1];_0x3724c4['point']&&_0x3724c4['inputSnapshot']&&(_0x4bd3ea=_0x3724c4['point'],_0x2bfbfa=_0x3724c4[_0x1a1aa7(0xcc)]);}_0x4578b1['set'](_0xbc60f8['stepId'],{'snapshotName':_0x5db7b1,'inputSnapshotName':_0x2bfbfa,'pageId':_0x112453,'pageUrl':_0x7ee712,'callId':_0x10bc25['callId'],'point':_0x4bd3ea});}return _0x4578b1;}
1
+ function _0x1c75(){const _0x4a5005=['3108651zKIWvf','get','method','length','inputSnapshot','trim','5521872oHxqlf','navigated','hmuNR','pageId','utf-8','endTime','from','QIazc','KYYbn','callId','string','isDirectory','JuvOD','1818cJipAG','997735sFRlOX','indexOf','afterSnapshot','beforeSnapshot','xaPxU','before','LbVWw','utiJC','3797560KOAlwy','filter','goto','qYZXM','params','581280RLFVxV','url','startTime','parse','point','frame-snapshot','FLOYy','ggckf','getTime','type','276756pIHbHB','HelTe','values','event','name','FBbaH','after','2DuNtnn','push','1056iaOfny','frameUrl','set','abs'];_0x1c75=function(){return _0x4a5005;};return _0x1c75();}(function(_0x4bee1a,_0xb15c09){const _0x4de6e6=_0x3dac,_0x3f2702=_0x4bee1a();while(!![]){try{const _0x1fa170=parseInt(_0x4de6e6(0x111))/0x1+-parseInt(_0x4de6e6(0x122))/0x2*(-parseInt(_0x4de6e6(0x11b))/0x3)+parseInt(_0x4de6e6(0x10c))/0x4+parseInt(_0x4de6e6(0x104))/0x5+-parseInt(_0x4de6e6(0xf6))/0x6+-parseInt(_0x4de6e6(0xf0))/0x7+parseInt(_0x4de6e6(0x124))/0x8*(parseInt(_0x4de6e6(0x103))/0x9);if(_0x1fa170===_0xb15c09)break;else _0x3f2702['push'](_0x3f2702['shift']());}catch(_0x1deedf){_0x3f2702['push'](_0x3f2702['shift']());}}}(_0x1c75,0x76578));import{readdir,readFile}from'fs/promises';import{join}from'path';function _0x3dac(_0x95a8df,_0x111cef){_0x95a8df=_0x95a8df-0xed;const _0x1c75bb=_0x1c75();let _0x3dac06=_0x1c75bb[_0x95a8df];return _0x3dac06;}export async function mapStepsToTraceSnapshots(_0x38a107,_0x534053){const _0x34ac98=_0x3dac,_0x5c598a={'gLgOv':function(_0x26b26a,_0x55383d,_0x36045a){return _0x26b26a(_0x55383d,_0x36045a);},'cVPxB':function(_0x2911b9,_0x2be497){return _0x2911b9(_0x2be497);},'QIazc':function(_0x2e7387,_0x2f4cca){return _0x2e7387===_0x2f4cca;},'ggckf':function(_0x338b8a,_0xb3a164){return _0x338b8a===_0xb3a164;},'KYYbn':_0x34ac98(0xfa),'utiJC':function(_0x163e53,_0x4949d2){return _0x163e53-_0x4949d2;},'FLOYy':_0x34ac98(0x109),'ZGOIU':function(_0x9c9d1,_0x59407d){return _0x9c9d1===_0x59407d;},'JuvOD':function(_0x2b6acf,_0x3ba38f){return _0x2b6acf===_0x3ba38f;},'rWsga':_0x34ac98(0x11e),'LbVWw':function(_0x5a3246,_0x2e3e70){return _0x5a3246===_0x2e3e70;},'HelTe':'string','qYZXM':'page@0','hmuNR':function(_0x337fa8,_0x132d3a){return _0x337fa8>=_0x132d3a;},'kJKTu':_0x34ac98(0x10e),'hdVjO':function(_0x175352,_0xbe9e2f){return _0x175352===_0xbe9e2f;},'VBQeu':function(_0x1aa54c,_0x142b02){return _0x1aa54c<_0x142b02;},'FBbaH':function(_0x1e9611,_0x255b35){return _0x1e9611-_0x255b35;},'xaPxU':function(_0x58a66e,_0x494434){return _0x58a66e+_0x494434;}},_0x30f5ef=new Map();if(_0x5c598a[_0x34ac98(0xfd)](_0x534053[_0x34ac98(0xf3)],0x0))return _0x30f5ef;const _0x108f65=[],_0x3129fd=async _0x293df0=>{const _0x1f4d20=_0x34ac98,_0x1d94b5=await readdir(_0x293df0,{'withFileTypes':!![]});for(const _0x4fcf56 of _0x1d94b5){const _0x253c86=_0x5c598a['gLgOv'](join,_0x293df0,_0x4fcf56['name']);if(_0x4fcf56[_0x1f4d20(0x101)]())await _0x5c598a['cVPxB'](_0x3129fd,_0x253c86);else _0x4fcf56[_0x1f4d20(0x11f)]['endsWith']('.trace')&&_0x108f65['push'](_0x253c86);}};await _0x3129fd(_0x38a107);if(_0x5c598a[_0x34ac98(0x118)](_0x108f65[_0x34ac98(0xf3)],0x0))return _0x30f5ef;const _0x1189f7=[];for(const _0x47fba4 of _0x108f65){const _0x2aee4e=await readFile(_0x47fba4,_0x5c598a[_0x34ac98(0xfe)]),_0x1a5a0a=_0x2aee4e['split']('\x0a')[_0x34ac98(0x10d)](_0x4cb61a=>_0x4cb61a[_0x34ac98(0xf5)]());for(const _0x5204ae of _0x1a5a0a){try{_0x1189f7[_0x34ac98(0x123)](JSON[_0x34ac98(0x114)](_0x5204ae));}catch{}}}if(_0x1189f7[_0x34ac98(0xf3)]===0x0)return _0x30f5ef;const _0x15a40a=_0x1189f7['find'](_0x3695eb=>_0x3695eb['type']==='context-options');if(!_0x15a40a)return _0x30f5ef;const _0x34d516=_0x5c598a[_0x34ac98(0x10b)](_0x15a40a['wallTime'],_0x15a40a['monotonicTime']),_0xc9675b=new Map();for(const _0x5b1b3f of _0x1189f7){switch(_0x5b1b3f['type']){case _0x5c598a[_0x34ac98(0x117)]:{const _0x2229c8=_0x5b1b3f;_0xc9675b['set'](_0x2229c8['callId'],{'callId':_0x2229c8['callId'],'startTime':_0x2229c8['startTime'],'endTime':0x0,'method':_0x2229c8[_0x34ac98(0xf2)],'apiName':_0x2229c8['apiName'],'params':_0x2229c8['params'],'pageId':_0x2229c8[_0x34ac98(0xf9)],'beforeSnapshot':_0x2229c8[_0x34ac98(0x107)]});break;}case'input':{const _0x1e9ff0=_0x5b1b3f,_0x15ade7=_0xc9675b[_0x34ac98(0xf1)](_0x1e9ff0[_0x34ac98(0xff)]);if(_0x15ade7){if(_0x1e9ff0[_0x34ac98(0xf4)])_0x15ade7['inputSnapshot']=_0x1e9ff0['inputSnapshot'];if(_0x1e9ff0[_0x34ac98(0x115)])_0x15ade7[_0x34ac98(0x115)]=_0x1e9ff0['point'];}break;}case _0x34ac98(0x121):{const _0x5260d0=_0x5b1b3f,_0x2b5b64=_0xc9675b['get'](_0x5260d0[_0x34ac98(0xff)]);if(_0x2b5b64){_0x2b5b64[_0x34ac98(0xfb)]=_0x5260d0['endTime'];if(_0x5260d0[_0x34ac98(0x106)])_0x2b5b64['afterSnapshot']=_0x5260d0['afterSnapshot'];}break;}}}const _0x4d807f=Array[_0x34ac98(0xfc)](_0xc9675b[_0x34ac98(0x11d)]())[_0x34ac98(0x10d)](_0xfc802a=>_0xfc802a['endTime']>0x0&&(_0xfc802a[_0x34ac98(0x106)]||_0xfc802a['beforeSnapshot']))['sort']((_0x553366,_0x5b04bf)=>_0x553366['startTime']-_0x5b04bf[_0x34ac98(0x113)]);if(_0x5c598a[_0x34ac98(0x118)](_0x4d807f['length'],0x0))return _0x30f5ef;const _0x3989a8=new Map();for(const _0x125e0e of _0x1189f7){if(_0x125e0e['type']===_0x34ac98(0x116)){const _0x2517f0=_0x125e0e['snapshot'];_0x2517f0?.['snapshotName']&&_0x2517f0?.[_0x34ac98(0xed)]&&_0x3989a8['set'](_0x2517f0['snapshotName'],_0x2517f0['frameUrl']);}}const _0x4ff672=new Map();for(const _0x4a5429 of _0x4d807f){const _0x35ed14=_0x4a5429['params']?.['url'];_0x5c598a['ZGOIU'](_0x4a5429[_0x34ac98(0xf2)],_0x34ac98(0x10e))&&_0x5c598a[_0x34ac98(0x102)](typeof _0x35ed14,'string')&&_0x4a5429[_0x34ac98(0xf9)]&&_0x4ff672[_0x34ac98(0xee)](_0x4a5429[_0x34ac98(0xf9)],_0x35ed14);}for(const _0x2e2a2f of _0x1189f7){const _0x5e8e34=_0x2e2a2f,_0x5b387f=_0x5e8e34[_0x34ac98(0x110)],_0x396067=_0x5b387f?.[_0x34ac98(0x112)];_0x5e8e34[_0x34ac98(0x11a)]===_0x5c598a['rWsga']&&_0x5e8e34[_0x34ac98(0xf2)]===_0x34ac98(0xf7)&&typeof _0x396067===_0x34ac98(0x100)&&_0x5c598a[_0x34ac98(0x10a)](typeof _0x5e8e34[_0x34ac98(0xf9)],_0x5c598a[_0x34ac98(0x11c)])&&_0x4ff672[_0x34ac98(0xee)](_0x5e8e34[_0x34ac98(0xf9)],_0x396067);}for(const _0x22c912 of _0x534053){const _0x580c16=new Date(_0x22c912['capturedAt'])[_0x34ac98(0x119)](),_0x22a00b=_0x580c16-_0x34d516;let _0x47fe4c=null,_0x4c2af4=Infinity;for(const _0x51a4ba of _0x4d807f){const _0x5b7ba2=Math[_0x34ac98(0xef)](_0x5c598a['utiJC'](_0x51a4ba['endTime'],_0x22a00b));_0x5b7ba2<_0x4c2af4&&(_0x4c2af4=_0x5b7ba2,_0x47fe4c=_0x51a4ba);}if(!_0x47fe4c)continue;const _0x33fdb8=_0x47fe4c[_0x34ac98(0x106)]||_0x47fe4c[_0x34ac98(0x107)];if(!_0x33fdb8)continue;const _0x2cf1bf=_0x47fe4c['pageId']||_0x5c598a[_0x34ac98(0x10f)];let _0xd2c1a1=_0x3989a8[_0x34ac98(0xf1)](_0x33fdb8)||_0x4ff672['get'](_0x2cf1bf)||'';if(!_0xd2c1a1)for(let _0x3518a5=_0x4d807f[_0x34ac98(0x105)](_0x47fe4c);_0x5c598a[_0x34ac98(0xf8)](_0x3518a5,0x0);_0x3518a5--){const _0x158b47=_0x4d807f[_0x3518a5][_0x34ac98(0x110)]?.[_0x34ac98(0x112)];if(_0x5c598a['ZGOIU'](_0x4d807f[_0x3518a5]['method'],_0x5c598a['kJKTu'])&&_0x5c598a['hdVjO'](typeof _0x158b47,_0x5c598a[_0x34ac98(0x11c)])){_0xd2c1a1=_0x158b47;break;}}let _0x38ad80,_0x265290;const _0x263461=_0x4d807f['indexOf'](_0x47fe4c);if(_0x5c598a['hmuNR'](_0x263461,0x0)&&_0x5c598a['VBQeu'](_0x263461,_0x5c598a[_0x34ac98(0x120)](_0x4d807f[_0x34ac98(0xf3)],0x1))){const _0x5dfdf3=_0x4d807f[_0x5c598a[_0x34ac98(0x108)](_0x263461,0x1)];_0x5dfdf3['point']&&_0x5dfdf3[_0x34ac98(0xf4)]&&(_0x38ad80=_0x5dfdf3[_0x34ac98(0x115)],_0x265290=_0x5dfdf3[_0x34ac98(0xf4)]);}_0x30f5ef['set'](_0x22c912['stepId'],{'snapshotName':_0x33fdb8,'inputSnapshotName':_0x265290,'pageId':_0x2cf1bf,'pageUrl':_0xd2c1a1,'callId':_0x47fe4c['callId'],'point':_0x38ad80});}return _0x30f5ef;}
@@ -1 +1 @@
1
- (function(_0x38fecf,_0x3a1ddc){const _0x4ce214=_0x5967,_0x207922=_0x38fecf();while(!![]){try{const _0x2491e9=-parseInt(_0x4ce214(0x1ec))/0x1*(parseInt(_0x4ce214(0x1e7))/0x2)+-parseInt(_0x4ce214(0x1e9))/0x3*(-parseInt(_0x4ce214(0x1e5))/0x4)+-parseInt(_0x4ce214(0x1ed))/0x5+parseInt(_0x4ce214(0x1eb))/0x6*(parseInt(_0x4ce214(0x1e3))/0x7)+-parseInt(_0x4ce214(0x1ef))/0x8+parseInt(_0x4ce214(0x1ee))/0x9+-parseInt(_0x4ce214(0x1f0))/0xa;if(_0x2491e9===_0x3a1ddc)break;else _0x207922['push'](_0x207922['shift']());}catch(_0x1ba449){_0x207922['push'](_0x207922['shift']());}}}(_0x29ef,0xc25ac));import{getApiBaseUrl}from'./environment.js';function _0x5967(_0x31a157,_0x2c70bd){_0x31a157=_0x31a157-0x1e3;const _0x29efe2=_0x29ef();let _0x596788=_0x29efe2[_0x31a157];return _0x596788;}export async function getCurrentUser(_0x48202e){const _0x49d562=_0x5967,_0x13c3d3={'AwWwl':function(_0x2d858b,_0x235d41,_0x115fab){return _0x2d858b(_0x235d41,_0x115fab);},'UbCsZ':function(_0x3fec65,_0x115e8b){return _0x3fec65 instanceof _0x115e8b;},'LQrWX':function(_0xdec92a,_0x545682){return _0xdec92a(_0x545682);}},_0xff21ba=getApiBaseUrl();try{const _0x16f2f1=await _0x13c3d3['AwWwl'](fetch,_0xff21ba+'/api/v1/mcp/me',{'method':_0x49d562(0x1ea),'headers':{'Authorization':_0x49d562(0x1e4)+_0x48202e}});if(!_0x16f2f1['ok'])return{'success':![],'error':_0x16f2f1[_0x49d562(0x1e8)]+'\x20'+_0x16f2f1['statusText'],'status':_0x16f2f1['status']};const _0x3f28ba=await _0x16f2f1['json']();return{'success':!![],'user':_0x3f28ba};}catch(_0x2250e9){return{'success':![],'error':_0x13c3d3['UbCsZ'](_0x2250e9,Error)?_0x2250e9['message']:_0x13c3d3[_0x49d562(0x1e6)](String,_0x2250e9)};}}function _0x29ef(){const _0x4767f3=['56WvDoSo','LQrWX','914bcypNB','status','27243PTrseF','GET','6444222KkCTXN','383GNbiQP','2143390WAaXUj','13272489cKyNvl','4372728leLnHN','7295160JPOykC','7AGCAuE','Bearer\x20'];_0x29ef=function(){return _0x4767f3;};return _0x29ef();}
1
+ (function(_0x22a885,_0x5b9d29){const _0xa82ba7=_0x6e9d,_0x4f7888=_0x22a885();while(!![]){try{const _0x5d1b56=parseInt(_0xa82ba7(0x196))/0x1+-parseInt(_0xa82ba7(0x198))/0x2*(parseInt(_0xa82ba7(0x194))/0x3)+parseInt(_0xa82ba7(0x190))/0x4*(-parseInt(_0xa82ba7(0x199))/0x5)+-parseInt(_0xa82ba7(0x19c))/0x6*(parseInt(_0xa82ba7(0x19e))/0x7)+-parseInt(_0xa82ba7(0x18f))/0x8*(-parseInt(_0xa82ba7(0x18e))/0x9)+-parseInt(_0xa82ba7(0x19a))/0xa*(parseInt(_0xa82ba7(0x197))/0xb)+-parseInt(_0xa82ba7(0x195))/0xc*(-parseInt(_0xa82ba7(0x192))/0xd);if(_0x5d1b56===_0x5b9d29)break;else _0x4f7888['push'](_0x4f7888['shift']());}catch(_0x4c2675){_0x4f7888['push'](_0x4f7888['shift']());}}}(_0x56f4,0x596c5));function _0x6e9d(_0x5ef3cd,_0x17849c){_0x5ef3cd=_0x5ef3cd-0x18e;const _0x56f4a9=_0x56f4();let _0x6e9d24=_0x56f4a9[_0x5ef3cd];return _0x6e9d24;}import{getApiBaseUrl}from'./environment.js';function _0x56f4(){const _0x2a7e9f=['status','13pSbvnz','YEIxR','12261XBIyDD','19093692qoWYwT','561926SxXmNY','11mCAkGn','92SOZphd','15QGDWrW','2294460oAoUmQ','json','24PbDkEp','/api/v1/mcp/me','1244138RDBBUi','171YVtDBt','28472tXnsbA','968036PLfmRT'];_0x56f4=function(){return _0x2a7e9f;};return _0x56f4();}export async function getCurrentUser(_0x16d015){const _0x1d417b=_0x6e9d,_0x55d313={'YEIxR':function(_0x3df347,_0x522b3a){return _0x3df347(_0x522b3a);}},_0x47df32=getApiBaseUrl();try{const _0x505629=await fetch(_0x47df32+_0x1d417b(0x19d),{'method':'GET','headers':{'Authorization':'Bearer\x20'+_0x16d015}});if(!_0x505629['ok'])return{'success':![],'error':_0x505629[_0x1d417b(0x191)]+'\x20'+_0x505629['statusText'],'status':_0x505629['status']};const _0x4df365=await _0x505629[_0x1d417b(0x19b)]();return{'success':!![],'user':_0x4df365};}catch(_0x2235a0){return{'success':![],'error':_0x2235a0 instanceof Error?_0x2235a0['message']:_0x55d313[_0x1d417b(0x193)](String,_0x2235a0)};}}
@@ -1 +1 @@
1
- const _0x57dd93=_0x5d6b;(function(_0x1b6288,_0x2422bb){const _0x437441=_0x5d6b,_0x5eec86=_0x1b6288();while(!![]){try{const _0x3f6a1e=-parseInt(_0x437441(0xad))/0x1+-parseInt(_0x437441(0x95))/0x2*(-parseInt(_0x437441(0x94))/0x3)+parseInt(_0x437441(0xa3))/0x4+parseInt(_0x437441(0x9d))/0x5*(parseInt(_0x437441(0x9a))/0x6)+-parseInt(_0x437441(0xaf))/0x7*(parseInt(_0x437441(0xa9))/0x8)+-parseInt(_0x437441(0xab))/0x9*(-parseInt(_0x437441(0xa5))/0xa)+-parseInt(_0x437441(0xa6))/0xb*(parseInt(_0x437441(0x9c))/0xc);if(_0x3f6a1e===_0x2422bb)break;else _0x5eec86['push'](_0x5eec86['shift']());}catch(_0x112a82){_0x5eec86['push'](_0x5eec86['shift']());}}}(_0x51b3,0xb4947));import{readFileSync}from'fs';import{existsSync}from'fs';function _0x5d6b(_0x59388d,_0xa7124f){_0x59388d=_0x59388d-0x94;const _0x51b369=_0x51b3();let _0x5d6bbc=_0x51b369[_0x59388d];return _0x5d6bbc;}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=_0x57dd93(0x9f);function _0x51b3(){const _0xe38f98=['trim','npm\x20view\x20','map','3759788vGBRJS','IZXke','20FUVHTn','3445673zwLcrT','qsTJc','wDkdo','16OJfDeh','CaREO','3301209HPuGov','aqIYC','993256WweYzq','dWjdX','2443399vxFfhB','3uFECxK','2659138ZJYIAn','version','psdao','parse','message','551454IthqJt','utf-8','36sqmpPJ','20XTJxiq','pipe','@ranger-testing/ranger-cli'];_0x51b3=function(){return _0xe38f98;};return _0x51b3();}export function getCurrentVersion(){const _0x5e5b9a=_0x57dd93,_0x234c20={'Uxvir':function(_0x3b04fc,_0xb4718a,_0x5414eb,_0x436639,_0x55c5a9){return _0x3b04fc(_0xb4718a,_0x5414eb,_0x436639,_0x55c5a9);},'qsTJc':'package.json','dWjdX':function(_0x24b1d8,_0x5d7ba9,_0x359efc,_0x31a9a2,_0x5b29e3,_0x45b6cb){return _0x24b1d8(_0x5d7ba9,_0x359efc,_0x31a9a2,_0x5b29e3,_0x45b6cb);},'aqIYC':function(_0x28e3f0,_0x57294c){return _0x28e3f0(_0x57294c);},'wDkdo':_0x5e5b9a(0x9b),'psdao':'unknown'},_0x5b780e=[_0x234c20['Uxvir'](join,__dirname,'..','..',_0x234c20[_0x5e5b9a(0xa7)]),_0x234c20[_0x5e5b9a(0xae)](join,__dirname,'..','..','..','package.json')];for(const _0x5c20bd of _0x5b780e){if(_0x234c20[_0x5e5b9a(0xac)](existsSync,_0x5c20bd))try{const _0x3f700f=JSON[_0x5e5b9a(0x98)](readFileSync(_0x5c20bd,_0x234c20[_0x5e5b9a(0xa8)]));return _0x3f700f[_0x5e5b9a(0x96)]||_0x234c20['psdao'];}catch{continue;}}return _0x234c20[_0x5e5b9a(0x97)];}export function getLatestVersion(){const _0x256f43=_0x57dd93,_0x41cce0={'CaREO':'pipe'};try{const _0x472c3a=execSync(_0x256f43(0xa1)+PACKAGE_NAME+'\x20version',{'encoding':_0x256f43(0x9b),'timeout':0x2710,'stdio':[_0x41cce0['CaREO'],_0x256f43(0x9e),_0x41cce0[_0x256f43(0xaa)]]});return{'version':_0x472c3a[_0x256f43(0xa0)]()};}catch(_0x4959bc){const _0x12c0af=_0x4959bc instanceof Error?_0x4959bc[_0x256f43(0x99)]:String(_0x4959bc);return{'error':_0x12c0af};}}export function compareVersions(_0x3f8e21,_0x18e4d1){const _0x25a952=_0x57dd93,_0x1e418e={'IZXke':function(_0x34a694,_0x2e4147){return _0x34a694<_0x2e4147;}},_0x2e9142=_0x3f8e21['split']('.')[_0x25a952(0xa2)](Number),_0x5d9434=_0x18e4d1['split']('.')['map'](Number);for(let _0x2e6ac0=0x0;_0x2e6ac0<0x3;_0x2e6ac0++){const _0x590750=_0x2e9142[_0x2e6ac0]||0x0,_0x4963ff=_0x5d9434[_0x2e6ac0]||0x0;if(_0x4963ff>_0x590750)return 0x1;if(_0x1e418e[_0x25a952(0xa4)](_0x4963ff,_0x590750))return-0x1;}return 0x0;}
1
+ const _0x476984=_0x5175;function _0x4657(){const _0x32c305=['1318LDIzil','5080383QhmXYU','12050PbJHZN','2894857yIHkRi','aeOuh','package.json','split','utf-8','2052572BWmoQD','167808AMnCFr','trim','\x20versions\x20--json','3357858qjTfLm','10vKHPSs','filter','khyBq','length','55gqNAXU','version','ZTvca','parse','338wSFhuQ','No\x20published\x20versions\x20found\x20for\x20major\x20','includes','72iYJfmc','wjskY','@ranger-testing/ranger-cli','\x20version','pipe','unknown'];_0x4657=function(){return _0x32c305;};return _0x4657();}(function(_0x1bdd81,_0x33ee00){const _0x244639=_0x5175,_0x4e1349=_0x1bdd81();while(!![]){try{const _0x5436b1=-parseInt(_0x244639(0x116))/0x1*(-parseInt(_0x244639(0x11f))/0x2)+parseInt(_0x244639(0x120))/0x3+-parseInt(_0x244639(0x127))/0x4+parseInt(_0x244639(0x10e))/0x5*(-parseInt(_0x244639(0x12b))/0x6)+parseInt(_0x244639(0x122))/0x7+parseInt(_0x244639(0x128))/0x8*(parseInt(_0x244639(0x119))/0x9)+parseInt(_0x244639(0x121))/0xa*(parseInt(_0x244639(0x112))/0xb);if(_0x5436b1===_0x33ee00)break;else _0x4e1349['push'](_0x4e1349['shift']());}catch(_0x50eb06){_0x4e1349['push'](_0x4e1349['shift']());}}}(_0x4657,0xd4af6));import{readFileSync}from'fs';import{existsSync}from'fs';import{execSync}from'child_process';import{fileURLToPath}from'url';import{dirname,join}from'path';function _0x5175(_0xc3e583,_0x590013){_0xc3e583=_0xc3e583-0x10e;const _0x465793=_0x4657();let _0x5175af=_0x465793[_0xc3e583];return _0x5175af;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const PACKAGE_NAME=_0x476984(0x11b);export function getCurrentVersion(){const _0x387c99=_0x476984,_0x3889c9={'khyBq':_0x387c99(0x126),'oqVIR':'unknown'},_0x15b6f4=[join(__dirname,'..','..',_0x387c99(0x124)),join(__dirname,'..','..','..','package.json')];for(const _0x38520f of _0x15b6f4){if(existsSync(_0x38520f))try{const _0x5b4512=JSON[_0x387c99(0x115)](readFileSync(_0x38520f,_0x3889c9[_0x387c99(0x110)]));return _0x5b4512[_0x387c99(0x113)]||_0x387c99(0x11e);}catch{continue;}}return _0x3889c9['oqVIR'];}export function getLatestVersion(_0x35af18){const _0x592757=_0x476984,_0xbd0e4b={'AGGNi':function(_0x56e979,_0x2ff628){return _0x56e979==_0x2ff628;},'ZTvca':_0x592757(0x126),'aeOuh':'pipe','wjskY':function(_0x2318c5,_0x169128){return _0x2318c5-_0x169128;},'MNuKD':function(_0x568a5e,_0x3da122){return _0x568a5e instanceof _0x3da122;}};try{if(_0xbd0e4b['AGGNi'](_0x35af18,null)){const _0x5e97ae=execSync('npm\x20view\x20'+PACKAGE_NAME+_0x592757(0x11c),{'encoding':_0xbd0e4b[_0x592757(0x114)],'timeout':0x2710,'stdio':['pipe',_0x592757(0x11d),_0xbd0e4b['aeOuh']]});return{'version':_0x5e97ae['trim']()};}const _0x4cbe9a=execSync('npm\x20view\x20'+PACKAGE_NAME+_0x592757(0x12a),{'encoding':_0xbd0e4b['ZTvca'],'timeout':0x2710,'stdio':[_0xbd0e4b[_0x592757(0x123)],_0xbd0e4b['aeOuh'],_0xbd0e4b['aeOuh']]}),_0x5d10da=JSON[_0x592757(0x115)](_0x4cbe9a[_0x592757(0x129)]()),_0x47ccbf=_0x5d10da[_0x592757(0x10f)](_0x2be999=>_0x2be999['startsWith'](_0x35af18+'.')&&!_0x2be999[_0x592757(0x118)]('-'));if(_0x47ccbf['length']===0x0)return{'error':_0x592757(0x117)+_0x35af18};return{'version':_0x47ccbf[_0xbd0e4b[_0x592757(0x11a)](_0x47ccbf[_0x592757(0x111)],0x1)]};}catch(_0x44faf4){const _0x33ffad=_0xbd0e4b['MNuKD'](_0x44faf4,Error)?_0x44faf4['message']:String(_0x44faf4);return{'error':_0x33ffad};}}export function compareVersions(_0x5cd3d6,_0x54d606){const _0x20751b=_0x476984,_0x49e96c=_0x5cd3d6[_0x20751b(0x125)]('.')['map'](Number),_0x2a2237=_0x54d606['split']('.')['map'](Number);for(let _0x39aa21=0x0;_0x39aa21<0x3;_0x39aa21++){const _0x46742b=_0x49e96c[_0x39aa21]||0x0,_0x2fb816=_0x2a2237[_0x39aa21]||0x0;if(_0x2fb816>_0x46742b)return 0x1;if(_0x2fb816<_0x46742b)return-0x1;}return 0x0;}