@ranger-testing/ranger-cli 2.5.4-alpha.a70fc60-4 → 2.5.4-alpha.b28d3b1-14

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 (81) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/mcpBootstrap.js +1 -1
  25. package/build/commands/migrateProfile.js +1 -1
  26. package/build/commands/setup/claude.js +1 -1
  27. package/build/commands/setup/opencode.js +1 -1
  28. package/build/commands/setupCi.js +1 -1
  29. package/build/commands/skillup.js +1 -1
  30. package/build/commands/start.js +1 -1
  31. package/build/commands/status.js +1 -1
  32. package/build/commands/update.js +1 -1
  33. package/build/commands/updateEnv.js +1 -1
  34. package/build/commands/useEnv.js +1 -1
  35. package/build/commands/utils/activeProfile.js +1 -1
  36. package/build/commands/utils/agentEnv.js +1 -1
  37. package/build/commands/utils/browserSessionsApi.js +1 -1
  38. package/build/commands/utils/claudeConfig.js +1 -1
  39. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  40. package/build/commands/utils/claudePlugin.js +1 -1
  41. package/build/commands/utils/cloudProfile.js +1 -1
  42. package/build/commands/utils/cloudProfileSession.js +1 -1
  43. package/build/commands/utils/crypto.js +1 -1
  44. package/build/commands/utils/desirePathLog.js +1 -1
  45. package/build/commands/utils/deviceAuth.js +1 -1
  46. package/build/commands/utils/environment.js +1 -1
  47. package/build/commands/utils/featureApi.js +1 -1
  48. package/build/commands/utils/fixWebmDuration.js +1 -1
  49. package/build/commands/utils/gitTracked.js +1 -1
  50. package/build/commands/utils/keychain.js +1 -1
  51. package/build/commands/utils/legacyWarning.js +1 -0
  52. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  53. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  54. package/build/commands/utils/mcpImageBase64.js +1 -1
  55. package/build/commands/utils/model.js +1 -1
  56. package/build/commands/utils/opencodeConfig.js +1 -1
  57. package/build/commands/utils/playwrightCli.js +1 -1
  58. package/build/commands/utils/profileMessages.js +1 -1
  59. package/build/commands/utils/profileSetupBanner.js +1 -1
  60. package/build/commands/utils/projectsConfig.js +1 -1
  61. package/build/commands/utils/rangerConfig.js +1 -1
  62. package/build/commands/utils/rangerRoot.js +1 -1
  63. package/build/commands/utils/resolveProfileContext.js +1 -1
  64. package/build/commands/utils/resolveProfileUrl.js +1 -1
  65. package/build/commands/utils/retry.js +1 -1
  66. package/build/commands/utils/sessionCache.js +1 -1
  67. package/build/commands/utils/settings.js +1 -1
  68. package/build/commands/utils/skillContent.js +1 -1
  69. package/build/commands/utils/skills.js +1 -1
  70. package/build/commands/utils/stitchWebmFiles.js +1 -1
  71. package/build/commands/utils/telemetry.js +1 -1
  72. package/build/commands/utils/tokenRefresh.js +1 -1
  73. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  74. package/build/commands/utils/userApi.js +1 -1
  75. package/build/commands/utils/version.js +1 -1
  76. package/build/commands/verifyFeature.js +1 -1
  77. package/build/commands/verifyFeatureCli.js +1 -1
  78. package/build/skills/ranger/SKILL.md +25 -5
  79. package/build/skills/ranger/create.md +19 -0
  80. package/build/skills/ranger/verify.md +34 -7
  81. package/package.json +3 -2
@@ -1 +1 @@
1
- (function(_0x1e2a4e,_0x1ce848){const _0x10ca71=_0x29e5,_0x3462c4=_0x1e2a4e();while(!![]){try{const _0x20e40b=parseInt(_0x10ca71(0x190))/0x1+-parseInt(_0x10ca71(0x19b))/0x2+parseInt(_0x10ca71(0x194))/0x3+-parseInt(_0x10ca71(0x197))/0x4*(-parseInt(_0x10ca71(0x18c))/0x5)+-parseInt(_0x10ca71(0x196))/0x6+-parseInt(_0x10ca71(0x193))/0x7+parseInt(_0x10ca71(0x18a))/0x8*(parseInt(_0x10ca71(0x18e))/0x9);if(_0x20e40b===_0x1ce848)break;else _0x3462c4['push'](_0x3462c4['shift']());}catch(_0x16f4d2){_0x3462c4['push'](_0x3462c4['shift']());}}}(_0x59a2,0x1d65a));import{getApiBaseUrl}from'./environment.js';import{getRefreshToken,storeToken,storeRefreshToken}from'./keychain.js';export async function refreshCliToken(){const _0x459e21=_0x29e5,_0x252837={'svkvx':function(_0x29a5db){return _0x29a5db();}},_0x17a6b1=await _0x252837[_0x459e21(0x18f)](getRefreshToken);if(!_0x17a6b1)return null;const _0x30409e=await tryPartnerRefresh(_0x17a6b1);if(_0x30409e)return _0x30409e;return tryWorkosRefresh(_0x17a6b1);}export async function refreshPartnerCliToken(_0x95c2fa,_0x391256={}){const _0x37678b={'aBLps':function(_0x5e76f4,_0x417cce){return _0x5e76f4(_0x417cce);}},_0x396adf=await _0x37678b['aBLps'](tryPartnerRefresh,_0x95c2fa);return _0x396adf&&_0x391256['persistRefreshToken']&&await storeRefreshToken(_0x95c2fa),_0x396adf;}function _0x59a2(){const _0x3178b2=['timeout','379132mIAudH','refreshToken','/cli-auth/partner-refresh','tFpCf','2169184OtvBZs','json','185HSMtra','POST','9AYdFhr','svkvx','54491deuKdw','stringify','application/json','469623aWfxGz','46836QZUYGS','TtesF','301266HwttrZ','9300usziuO','ZNcLz','token'];_0x59a2=function(){return _0x3178b2;};return _0x59a2();}async function tryPartnerRefresh(_0x3993a1){const _0x24da05=_0x29e5,_0x4b6d1c={'TtesF':function(_0x53d9d6){return _0x53d9d6();},'ZTdvr':_0x24da05(0x18d),'ZNcLz':'application/json'},_0x1fd795=_0x4b6d1c[_0x24da05(0x195)](getApiBaseUrl);try{const _0x169a1f=await fetch(_0x1fd795+_0x24da05(0x188),{'method':_0x4b6d1c['ZTdvr'],'headers':{'Content-Type':_0x4b6d1c[_0x24da05(0x198)]},'body':JSON['stringify']({'refreshToken':_0x3993a1}),'signal':AbortSignal[_0x24da05(0x19a)](0x2710)});if(!_0x169a1f['ok'])return null;const _0x45bc4e=await _0x169a1f[_0x24da05(0x18b)]();return await storeToken(_0x45bc4e[_0x24da05(0x199)]),_0x45bc4e[_0x24da05(0x199)];}catch{return null;}}function _0x29e5(_0x363200,_0x57813a){_0x363200=_0x363200-0x187;const _0x59a2f8=_0x59a2();let _0x29e58d=_0x59a2f8[_0x363200];return _0x29e58d;}async function tryWorkosRefresh(_0x4f948f){const _0x4e7a3e=_0x29e5,_0x242d4a={'tFpCf':_0x4e7a3e(0x18d)},_0x1528df=getApiBaseUrl();try{const _0x5f460f=await fetch(_0x1528df+'/cli-auth/refresh',{'method':_0x242d4a[_0x4e7a3e(0x189)],'headers':{'Content-Type':_0x4e7a3e(0x192)},'body':JSON[_0x4e7a3e(0x191)]({'refreshToken':_0x4f948f}),'signal':AbortSignal['timeout'](0x2710)});if(!_0x5f460f['ok'])return null;const _0x30be0f=await _0x5f460f[_0x4e7a3e(0x18b)]();return await storeToken(_0x30be0f['token']),await storeRefreshToken(_0x30be0f[_0x4e7a3e(0x187)]),_0x30be0f[_0x4e7a3e(0x199)];}catch{return null;}}
1
+ (function(_0x1faaa9,_0x22c50e){const _0x3b8f97=_0x5711,_0x7009d6=_0x1faaa9();while(!![]){try{const _0xd81a10=-parseInt(_0x3b8f97(0xaf))/0x1+-parseInt(_0x3b8f97(0xb1))/0x2*(-parseInt(_0x3b8f97(0xa9))/0x3)+-parseInt(_0x3b8f97(0xae))/0x4*(-parseInt(_0x3b8f97(0xab))/0x5)+parseInt(_0x3b8f97(0xa5))/0x6+-parseInt(_0x3b8f97(0xad))/0x7+-parseInt(_0x3b8f97(0xb2))/0x8+parseInt(_0x3b8f97(0xb6))/0x9;if(_0xd81a10===_0x22c50e)break;else _0x7009d6['push'](_0x7009d6['shift']());}catch(_0x5d6b99){_0x7009d6['push'](_0x7009d6['shift']());}}}(_0x4174,0x21b98));import{getApiBaseUrl}from'./environment.js';function _0x5711(_0x15f705,_0x7cde91){_0x15f705=_0x15f705-0xa4;const _0x41740d=_0x4174();let _0x5711d3=_0x41740d[_0x15f705];return _0x5711d3;}import{getRefreshToken,storeToken,storeRefreshToken}from'./keychain.js';export async function refreshCliToken(){const _0x45c271=_0x5711,_0x26e304={'MRcWK':function(_0x1064f6){return _0x1064f6();},'YrTil':function(_0x3b9c21,_0x3f8d7e){return _0x3b9c21(_0x3f8d7e);},'zVXnf':function(_0x3492e3,_0x5dc526){return _0x3492e3(_0x5dc526);}},_0x1cd376=await _0x26e304[_0x45c271(0xac)](getRefreshToken);if(!_0x1cd376)return null;const _0x54f8e1=await _0x26e304['YrTil'](tryPartnerRefresh,_0x1cd376);if(_0x54f8e1)return _0x54f8e1;return _0x26e304[_0x45c271(0xb5)](tryWorkosRefresh,_0x1cd376);}export async function refreshPartnerCliToken(_0x3a9d03,_0x35ff30={}){const _0x2e176d={'CfNRw':function(_0x590b6a,_0x136609){return _0x590b6a(_0x136609);}},_0x1017e0=await _0x2e176d['CfNRw'](tryPartnerRefresh,_0x3a9d03);return _0x1017e0&&_0x35ff30['persistRefreshToken']&&await storeRefreshToken(_0x3a9d03),_0x1017e0;}async function tryPartnerRefresh(_0x2a50a0){const _0x48309c=_0x5711,_0x3158a2={'HZEtQ':function(_0x2ebadb){return _0x2ebadb();},'HxodL':function(_0x3322fc,_0x51a660,_0xc01074){return _0x3322fc(_0x51a660,_0xc01074);},'fNILE':_0x48309c(0xb3)},_0x4afe5a=_0x3158a2['HZEtQ'](getApiBaseUrl);try{const _0x15ffce=await _0x3158a2['HxodL'](fetch,_0x4afe5a+_0x48309c(0xa7),{'method':_0x48309c(0xa4),'headers':{'Content-Type':_0x3158a2[_0x48309c(0xb0)]},'body':JSON['stringify']({'refreshToken':_0x2a50a0}),'signal':AbortSignal['timeout'](0x2710)});if(!_0x15ffce['ok'])return null;const _0x31e3c4=await _0x15ffce[_0x48309c(0xb4)]();return await storeToken(_0x31e3c4['token']),_0x31e3c4['token'];}catch{return null;}}async function tryWorkosRefresh(_0x472352){const _0x476747=_0x5711,_0x1f4209={'AIkud':function(_0x313596){return _0x313596();},'dezlQ':function(_0x410fad,_0x28bb39,_0x2f6b27){return _0x410fad(_0x28bb39,_0x2f6b27);},'TAHYV':'POST','fRmzC':'application/json','PLLtM':function(_0xcaad1e,_0x1f37f1){return _0xcaad1e(_0x1f37f1);}},_0x5ed486=_0x1f4209['AIkud'](getApiBaseUrl);try{const _0x56aecc=await _0x1f4209[_0x476747(0xaa)](fetch,_0x5ed486+'/cli-auth/refresh',{'method':_0x1f4209['TAHYV'],'headers':{'Content-Type':_0x1f4209[_0x476747(0xa8)]},'body':JSON['stringify']({'refreshToken':_0x472352}),'signal':AbortSignal[_0x476747(0xa6)](0x2710)});if(!_0x56aecc['ok'])return null;const _0x4a730a=await _0x56aecc['json']();return await _0x1f4209['PLLtM'](storeToken,_0x4a730a['token']),await storeRefreshToken(_0x4a730a['refreshToken']),_0x4a730a['token'];}catch{return null;}}function _0x4174(){const _0x5af279=['zVXnf','714708scFome','POST','625590Ebwkfb','timeout','/cli-auth/partner-refresh','fRmzC','159LQjNPI','dezlQ','215PWkXoV','MRcWK','355691ZMraKQ','23388qhJopo','121897IIESgA','fNILE','2486TqxVOi','1521048nEVSsQ','application/json','json'];_0x4174=function(){return _0x5af279;};return _0x4174();}
@@ -1 +1 @@
1
- function _0x4fa0(){const _0x59421c=['url','from','618bKfeSx','event','length','2138661RoFDDn','trim','string','abs','233MZfUfz','context-options','8139050QXAPaF','before','input','point','2158914NVThbK','21329OGcPko','wallTime','rqcID','afterSnapshot','frame-snapshot','154045ITHFMB','11gWBULE','pageId','set','inputSnapshot','callId','type','filter','name','snapshotName','wJJuP','push','XdpSE','gDNKx','method','page@0','beforeSnapshot','after','snapshot','4762224GlHxkK','endTime','4842VCKyLY','128azElcF','frameUrl','indexOf','monotonicTime','goto','fldoC','get','16zNoqog','params'];_0x4fa0=function(){return _0x59421c;};return _0x4fa0();}(function(_0x5ea585,_0x21dbd2){const _0x17f933=_0x31fb,_0xda45d4=_0x5ea585();while(!![]){try{const _0x4f7822=parseInt(_0x17f933(0x1d5))/0x1*(-parseInt(_0x17f933(0x1c2))/0x2)+parseInt(_0x17f933(0x1db))/0x3+parseInt(_0x17f933(0x1c3))/0x4*(-parseInt(_0x17f933(0x1e1))/0x5)+parseInt(_0x17f933(0x1ce))/0x6*(-parseInt(_0x17f933(0x1dc))/0x7)+parseInt(_0x17f933(0x1ca))/0x8*(parseInt(_0x17f933(0x1d1))/0x9)+parseInt(_0x17f933(0x1d7))/0xa*(parseInt(_0x17f933(0x1e2))/0xb)+parseInt(_0x17f933(0x1c0))/0xc;if(_0x4f7822===_0x21dbd2)break;else _0xda45d4['push'](_0xda45d4['shift']());}catch(_0x4f5fe7){_0xda45d4['push'](_0xda45d4['shift']());}}}(_0x4fa0,0x84487));function _0x31fb(_0x5d7619,_0xf510ce){_0x5d7619=_0x5d7619-0x1b8;const _0x4fa026=_0x4fa0();let _0x31fbdf=_0x4fa026[_0x5d7619];return _0x31fbdf;}import{readdir,readFile}from'fs/promises';import{join}from'path';export async function mapStepsToTraceSnapshots(_0x205718,_0x304c9e){const _0x2915b5=_0x31fb,_0x3ffeb6={'rqcID':'.trace','ujpYH':'utf-8','XdpSE':function(_0x3bdc1d,_0x3ff6ca){return _0x3bdc1d===_0x3ff6ca;},'gDNKx':_0x2915b5(0x1e0),'wJJuP':function(_0x4d9cb4,_0x2d1b79){return _0x4d9cb4===_0x2d1b79;},'fldoC':_0x2915b5(0x1d3),'lUeuG':'navigated','zHCcE':function(_0x56c86e,_0xffcc00){return _0x56c86e===_0xffcc00;},'SJBmG':_0x2915b5(0x1bc),'baupC':function(_0x204b5d,_0x1e99b9){return _0x204b5d>=_0x1e99b9;},'YgwWj':function(_0x534c7a,_0x237a9d){return _0x534c7a<_0x237a9d;}},_0x4b245c=new Map();if(_0x304c9e['length']===0x0)return _0x4b245c;const _0x128273=[],_0x3301f4=async _0x3ca64b=>{const _0x2f8b4b=_0x2915b5,_0x1f2359=await readdir(_0x3ca64b,{'withFileTypes':!![]});for(const _0x5e1f3f of _0x1f2359){const _0x53e9a7=join(_0x3ca64b,_0x5e1f3f[_0x2f8b4b(0x1e9)]);if(_0x5e1f3f['isDirectory']())await _0x3301f4(_0x53e9a7);else _0x5e1f3f['name']['endsWith'](_0x3ffeb6[_0x2f8b4b(0x1de)])&&_0x128273[_0x2f8b4b(0x1b8)](_0x53e9a7);}};await _0x3301f4(_0x205718);if(_0x128273[_0x2915b5(0x1d0)]===0x0)return _0x4b245c;const _0x44eef8=[];for(const _0x3ae48f of _0x128273){const _0x5eaec5=await readFile(_0x3ae48f,_0x3ffeb6['ujpYH']),_0x218d7b=_0x5eaec5['split']('\x0a')[_0x2915b5(0x1e8)](_0x2687a5=>_0x2687a5[_0x2915b5(0x1d2)]());for(const _0x2f07f4 of _0x218d7b){try{_0x44eef8['push'](JSON['parse'](_0x2f07f4));}catch{}}}if(_0x44eef8[_0x2915b5(0x1d0)]===0x0)return _0x4b245c;const _0x3e79c9=_0x44eef8['find'](_0x4a93ab=>_0x4a93ab['type']===_0x2915b5(0x1d6));if(!_0x3e79c9)return _0x4b245c;const _0x3abecd=_0x3e79c9[_0x2915b5(0x1dd)]-_0x3e79c9[_0x2915b5(0x1c6)],_0x1f72fe=new Map();for(const _0x5b7fa7 of _0x44eef8){switch(_0x5b7fa7['type']){case _0x2915b5(0x1d8):{const _0xfba0c3=_0x5b7fa7;_0x1f72fe['set'](_0xfba0c3[_0x2915b5(0x1e6)],{'callId':_0xfba0c3[_0x2915b5(0x1e6)],'startTime':_0xfba0c3['startTime'],'endTime':0x0,'method':_0xfba0c3[_0x2915b5(0x1bb)],'apiName':_0xfba0c3['apiName'],'params':_0xfba0c3['params'],'pageId':_0xfba0c3[_0x2915b5(0x1e3)],'beforeSnapshot':_0xfba0c3[_0x2915b5(0x1bd)]});break;}case _0x2915b5(0x1d9):{const _0x58ffc9=_0x5b7fa7,_0x2088c0=_0x1f72fe['get'](_0x58ffc9['callId']);if(_0x2088c0){if(_0x58ffc9[_0x2915b5(0x1e5)])_0x2088c0['inputSnapshot']=_0x58ffc9[_0x2915b5(0x1e5)];if(_0x58ffc9['point'])_0x2088c0[_0x2915b5(0x1da)]=_0x58ffc9['point'];}break;}case _0x2915b5(0x1be):{const _0x5ae44c=_0x5b7fa7,_0x4a92aa=_0x1f72fe['get'](_0x5ae44c['callId']);if(_0x4a92aa){_0x4a92aa[_0x2915b5(0x1c1)]=_0x5ae44c[_0x2915b5(0x1c1)];if(_0x5ae44c[_0x2915b5(0x1df)])_0x4a92aa[_0x2915b5(0x1df)]=_0x5ae44c[_0x2915b5(0x1df)];}break;}}}const _0x22f61c=Array[_0x2915b5(0x1cd)](_0x1f72fe['values']())['filter'](_0x575b42=>_0x575b42[_0x2915b5(0x1c1)]>0x0&&(_0x575b42['afterSnapshot']||_0x575b42[_0x2915b5(0x1bd)]))['sort']((_0x8f69af,_0x25baf3)=>_0x8f69af['startTime']-_0x25baf3['startTime']);if(_0x3ffeb6['XdpSE'](_0x22f61c[_0x2915b5(0x1d0)],0x0))return _0x4b245c;const _0x1f0641=new Map();for(const _0xd46a16 of _0x44eef8){if(_0x3ffeb6[_0x2915b5(0x1b9)](_0xd46a16[_0x2915b5(0x1e7)],_0x3ffeb6[_0x2915b5(0x1ba)])){const _0x2d405f=_0xd46a16[_0x2915b5(0x1bf)];_0x2d405f?.[_0x2915b5(0x1ea)]&&_0x2d405f?.[_0x2915b5(0x1c4)]&&_0x1f0641['set'](_0x2d405f['snapshotName'],_0x2d405f[_0x2915b5(0x1c4)]);}}const _0x508e24=new Map();for(const _0x4f9f1e of _0x22f61c){const _0x1c3043=_0x4f9f1e[_0x2915b5(0x1cb)]?.[_0x2915b5(0x1cc)];_0x3ffeb6['wJJuP'](_0x4f9f1e['method'],'goto')&&_0x3ffeb6['wJJuP'](typeof _0x1c3043,_0x3ffeb6[_0x2915b5(0x1c8)])&&_0x4f9f1e[_0x2915b5(0x1e3)]&&_0x508e24[_0x2915b5(0x1e4)](_0x4f9f1e['pageId'],_0x1c3043);}for(const _0x9f6f2d of _0x44eef8){const _0x2b9e7e=_0x9f6f2d,_0x597736=_0x2b9e7e[_0x2915b5(0x1cb)],_0x1252d1=_0x597736?.[_0x2915b5(0x1cc)];_0x3ffeb6[_0x2915b5(0x1eb)](_0x2b9e7e['type'],_0x2915b5(0x1cf))&&_0x2b9e7e[_0x2915b5(0x1bb)]===_0x3ffeb6['lUeuG']&&_0x3ffeb6[_0x2915b5(0x1b9)](typeof _0x1252d1,_0x3ffeb6['fldoC'])&&_0x3ffeb6['zHCcE'](typeof _0x2b9e7e[_0x2915b5(0x1e3)],_0x3ffeb6[_0x2915b5(0x1c8)])&&_0x508e24[_0x2915b5(0x1e4)](_0x2b9e7e[_0x2915b5(0x1e3)],_0x1252d1);}for(const _0xa8b690 of _0x304c9e){const _0x26a4e3=new Date(_0xa8b690['capturedAt'])['getTime'](),_0x505825=_0x26a4e3-_0x3abecd;let _0x8c4a84=null,_0x4252e8=Infinity;for(const _0x2e94f5 of _0x22f61c){const _0x3c611c=Math[_0x2915b5(0x1d4)](_0x2e94f5['endTime']-_0x505825);_0x3c611c<_0x4252e8&&(_0x4252e8=_0x3c611c,_0x8c4a84=_0x2e94f5);}if(!_0x8c4a84)continue;const _0x1b3bb6=_0x8c4a84['afterSnapshot']||_0x8c4a84[_0x2915b5(0x1bd)];if(!_0x1b3bb6)continue;const _0x4e41eb=_0x8c4a84[_0x2915b5(0x1e3)]||_0x3ffeb6['SJBmG'];let _0x28de74=_0x1f0641[_0x2915b5(0x1c9)](_0x1b3bb6)||_0x508e24[_0x2915b5(0x1c9)](_0x4e41eb)||'';if(!_0x28de74)for(let _0x3dc089=_0x22f61c[_0x2915b5(0x1c5)](_0x8c4a84);_0x3dc089>=0x0;_0x3dc089--){const _0x3846a3=_0x22f61c[_0x3dc089]['params']?.['url'];if(_0x22f61c[_0x3dc089][_0x2915b5(0x1bb)]===_0x2915b5(0x1c7)&&_0x3ffeb6['zHCcE'](typeof _0x3846a3,'string')){_0x28de74=_0x3846a3;break;}}let _0x2d41d5,_0x495eec;const _0x5d3643=_0x22f61c['indexOf'](_0x8c4a84);if(_0x3ffeb6['baupC'](_0x5d3643,0x0)&&_0x3ffeb6['YgwWj'](_0x5d3643,_0x22f61c[_0x2915b5(0x1d0)]-0x1)){const _0x409043=_0x22f61c[_0x5d3643+0x1];_0x409043['point']&&_0x409043[_0x2915b5(0x1e5)]&&(_0x2d41d5=_0x409043['point'],_0x495eec=_0x409043['inputSnapshot']);}_0x4b245c['set'](_0xa8b690['stepId'],{'snapshotName':_0x1b3bb6,'inputSnapshotName':_0x495eec,'pageId':_0x4e41eb,'pageUrl':_0x28de74,'callId':_0x8c4a84[_0x2915b5(0x1e6)],'point':_0x2d41d5});}return _0x4b245c;}
1
+ function _0x378d(){const _0x247112=['snapshotName','type','frameUrl','opahY','826264HqqlVg','context-options','952310RwHplA','CUGPB','trim','url','length','11221344idkQfP','string','point','beforeSnapshot','tBSge','get','3998013ELJeSz','SzRKd','endTime','42LXiEFs','afterSnapshot','utf-8','1347850cVYqhe','pageId','split','2951154YIXokS','monotonicTime','set','inputSnapshot','xRBtw','ahSJN','before','filter','event','4zGlarF','467128jLerHE','endsWith','startTime','params','apiName','values','parse','VIhjR','sort','method','name','page@0','callId'];_0x378d=function(){return _0x247112;};return _0x378d();}function _0x3c0b(_0x2db389,_0x43b7dd){_0x2db389=_0x2db389-0x96;const _0x378d7c=_0x378d();let _0x3c0b31=_0x378d7c[_0x2db389];return _0x3c0b31;}(function(_0x10ec2f,_0x210ebe){const _0x1f6933=_0x3c0b,_0x2ad5ad=_0x10ec2f();while(!![]){try{const _0xcf7cb4=parseInt(_0x1f6933(0xb5))/0x1+parseInt(_0x1f6933(0xab))/0x2+-parseInt(_0x1f6933(0xa2))/0x3+-parseInt(_0x1f6933(0xb4))/0x4*(-parseInt(_0x1f6933(0x97))/0x5)+parseInt(_0x1f6933(0xa5))/0x6*(parseInt(_0x1f6933(0xa8))/0x7)+-parseInt(_0x1f6933(0xc6))/0x8+-parseInt(_0x1f6933(0x9c))/0x9;if(_0xcf7cb4===_0x210ebe)break;else _0x2ad5ad['push'](_0x2ad5ad['shift']());}catch(_0x23dfaa){_0x2ad5ad['push'](_0x2ad5ad['shift']());}}}(_0x378d,0xc2e27));import{readdir,readFile}from'fs/promises';import{join}from'path';export async function mapStepsToTraceSnapshots(_0x1037da,_0x195be6){const _0x360e27=_0x3c0b,_0x4a59e8={'ahSJN':'.trace','jgHjP':function(_0x5bac62,_0x3df7c8){return _0x5bac62===_0x3df7c8;},'xRBtw':function(_0x2b05b1,_0x52cc60){return _0x2b05b1(_0x52cc60);},'opahY':function(_0x2c35d8,_0x35bc32){return _0x2c35d8===_0x35bc32;},'QIyPw':function(_0xdd1a06,_0x101025){return _0xdd1a06-_0x101025;},'tBSge':'input','gaioI':function(_0x4e47fb,_0x228951){return _0x4e47fb===_0x228951;},'SzRKd':_0x360e27(0x9d),'CUGPB':_0x360e27(0xb3),'hzInH':function(_0x4b6995,_0x4f70dc){return _0x4b6995-_0x4f70dc;},'oVAwl':function(_0x9545d4,_0x3b7f9b){return _0x9545d4<_0x3b7f9b;},'VIhjR':function(_0x4c79bf,_0x5654f6){return _0x4c79bf>=_0x5654f6;}},_0x2319fe=new Map();if(_0x4a59e8['jgHjP'](_0x195be6['length'],0x0))return _0x2319fe;const _0x5992a0=[],_0x347909=async _0x4265e7=>{const _0x4fd2e6=_0x360e27,_0x264d59=await readdir(_0x4265e7,{'withFileTypes':!![]});for(const _0x105502 of _0x264d59){const _0x111bc7=join(_0x4265e7,_0x105502[_0x4fd2e6(0xbf)]);if(_0x105502['isDirectory']())await _0x347909(_0x111bc7);else _0x105502['name'][_0x4fd2e6(0xb6)](_0x4a59e8[_0x4fd2e6(0xb0)])&&_0x5992a0['push'](_0x111bc7);}};await _0x4a59e8[_0x360e27(0xaf)](_0x347909,_0x1037da);if(_0x5992a0[_0x360e27(0x9b)]===0x0)return _0x2319fe;const _0x5cc85e=[];for(const _0x5d7fac of _0x5992a0){const _0x222fd8=await readFile(_0x5d7fac,_0x360e27(0xa7)),_0x2457d3=_0x222fd8[_0x360e27(0xaa)]('\x0a')[_0x360e27(0xb2)](_0x40fca6=>_0x40fca6[_0x360e27(0x99)]());for(const _0x1c9e8c of _0x2457d3){try{_0x5cc85e['push'](JSON[_0x360e27(0xbb)](_0x1c9e8c));}catch{}}}if(_0x4a59e8[_0x360e27(0xc5)](_0x5cc85e['length'],0x0))return _0x2319fe;const _0x4ac7c6=_0x5cc85e['find'](_0x233293=>_0x233293['type']===_0x360e27(0x96));if(!_0x4ac7c6)return _0x2319fe;const _0x115335=_0x4a59e8['QIyPw'](_0x4ac7c6['wallTime'],_0x4ac7c6[_0x360e27(0xac)]),_0x14dc87=new Map();for(const _0x2a6d25 of _0x5cc85e){switch(_0x2a6d25[_0x360e27(0xc3)]){case _0x360e27(0xb1):{const _0x5c9971=_0x2a6d25;_0x14dc87[_0x360e27(0xad)](_0x5c9971['callId'],{'callId':_0x5c9971[_0x360e27(0xc1)],'startTime':_0x5c9971[_0x360e27(0xb7)],'endTime':0x0,'method':_0x5c9971['method'],'apiName':_0x5c9971[_0x360e27(0xb9)],'params':_0x5c9971[_0x360e27(0xb8)],'pageId':_0x5c9971[_0x360e27(0xa9)],'beforeSnapshot':_0x5c9971[_0x360e27(0x9f)]});break;}case _0x4a59e8[_0x360e27(0xa0)]:{const _0x46559f=_0x2a6d25,_0x1d186d=_0x14dc87['get'](_0x46559f[_0x360e27(0xc1)]);if(_0x1d186d){if(_0x46559f[_0x360e27(0xae)])_0x1d186d['inputSnapshot']=_0x46559f[_0x360e27(0xae)];if(_0x46559f['point'])_0x1d186d['point']=_0x46559f[_0x360e27(0x9e)];}break;}case'after':{const _0x2c9774=_0x2a6d25,_0x1fcfd9=_0x14dc87[_0x360e27(0xa1)](_0x2c9774['callId']);if(_0x1fcfd9){_0x1fcfd9[_0x360e27(0xa4)]=_0x2c9774[_0x360e27(0xa4)];if(_0x2c9774[_0x360e27(0xa6)])_0x1fcfd9['afterSnapshot']=_0x2c9774[_0x360e27(0xa6)];}break;}}}const _0x511783=Array['from'](_0x14dc87[_0x360e27(0xba)]())['filter'](_0x4adede=>_0x4adede['endTime']>0x0&&(_0x4adede[_0x360e27(0xa6)]||_0x4adede[_0x360e27(0x9f)]))[_0x360e27(0xbd)]((_0x24fee9,_0x4755c1)=>_0x24fee9[_0x360e27(0xb7)]-_0x4755c1['startTime']);if(_0x4a59e8['gaioI'](_0x511783[_0x360e27(0x9b)],0x0))return _0x2319fe;const _0x3753af=new Map();for(const _0x1e28dc of _0x5cc85e){if(_0x4a59e8['opahY'](_0x1e28dc['type'],'frame-snapshot')){const _0x5bee18=_0x1e28dc['snapshot'];_0x5bee18?.[_0x360e27(0xc2)]&&_0x5bee18?.['frameUrl']&&_0x3753af['set'](_0x5bee18['snapshotName'],_0x5bee18[_0x360e27(0xc4)]);}}const _0x58fb32=new Map();for(const _0x49369a of _0x511783){const _0x26d7db=_0x49369a['params']?.['url'];_0x49369a['method']==='goto'&&_0x4a59e8['opahY'](typeof _0x26d7db,_0x4a59e8['SzRKd'])&&_0x49369a[_0x360e27(0xa9)]&&_0x58fb32[_0x360e27(0xad)](_0x49369a['pageId'],_0x26d7db);}for(const _0x146959 of _0x5cc85e){const _0x5337ce=_0x146959,_0x7d240f=_0x5337ce['params'],_0x949209=_0x7d240f?.[_0x360e27(0x9a)];_0x5337ce['type']===_0x4a59e8[_0x360e27(0x98)]&&_0x5337ce[_0x360e27(0xbe)]==='navigated'&&_0x4a59e8['opahY'](typeof _0x949209,_0x360e27(0x9d))&&typeof _0x5337ce['pageId']===_0x360e27(0x9d)&&_0x58fb32['set'](_0x5337ce[_0x360e27(0xa9)],_0x949209);}for(const _0x402144 of _0x195be6){const _0xf9468e=new Date(_0x402144['capturedAt'])['getTime'](),_0x186c26=_0x4a59e8['hzInH'](_0xf9468e,_0x115335);let _0x3bd30c=null,_0x2d96e8=Infinity;for(const _0x2fda92 of _0x511783){const _0x8f8915=Math['abs'](_0x2fda92[_0x360e27(0xa4)]-_0x186c26);_0x4a59e8['oVAwl'](_0x8f8915,_0x2d96e8)&&(_0x2d96e8=_0x8f8915,_0x3bd30c=_0x2fda92);}if(!_0x3bd30c)continue;const _0x1de1f3=_0x3bd30c[_0x360e27(0xa6)]||_0x3bd30c[_0x360e27(0x9f)];if(!_0x1de1f3)continue;const _0x5c3c28=_0x3bd30c['pageId']||_0x360e27(0xc0);let _0x118751=_0x3753af[_0x360e27(0xa1)](_0x1de1f3)||_0x58fb32[_0x360e27(0xa1)](_0x5c3c28)||'';if(!_0x118751)for(let _0x3f8678=_0x511783['indexOf'](_0x3bd30c);_0x3f8678>=0x0;_0x3f8678--){const _0x54c705=_0x511783[_0x3f8678][_0x360e27(0xb8)]?.['url'];if(_0x511783[_0x3f8678][_0x360e27(0xbe)]==='goto'&&_0x4a59e8[_0x360e27(0xc5)](typeof _0x54c705,_0x4a59e8[_0x360e27(0xa3)])){_0x118751=_0x54c705;break;}}let _0x163ffd,_0x4e1238;const _0x2e46de=_0x511783['indexOf'](_0x3bd30c);if(_0x4a59e8[_0x360e27(0xbc)](_0x2e46de,0x0)&&_0x2e46de<_0x511783['length']-0x1){const _0x4a109c=_0x511783[_0x2e46de+0x1];_0x4a109c[_0x360e27(0x9e)]&&_0x4a109c['inputSnapshot']&&(_0x163ffd=_0x4a109c['point'],_0x4e1238=_0x4a109c['inputSnapshot']);}_0x2319fe['set'](_0x402144['stepId'],{'snapshotName':_0x1de1f3,'inputSnapshotName':_0x4e1238,'pageId':_0x5c3c28,'pageUrl':_0x118751,'callId':_0x3bd30c[_0x360e27(0xc1)],'point':_0x163ffd});}return _0x2319fe;}
@@ -1 +1 @@
1
- (function(_0x704a0e,_0x4ecd4f){const _0x9fc288=_0x3a94,_0x559e57=_0x704a0e();while(!![]){try{const _0x56e5d3=parseInt(_0x9fc288(0x124))/0x1*(parseInt(_0x9fc288(0x12d))/0x2)+parseInt(_0x9fc288(0x12b))/0x3+parseInt(_0x9fc288(0x123))/0x4+-parseInt(_0x9fc288(0x127))/0x5*(parseInt(_0x9fc288(0x12c))/0x6)+parseInt(_0x9fc288(0x12f))/0x7+-parseInt(_0x9fc288(0x126))/0x8+-parseInt(_0x9fc288(0x12e))/0x9;if(_0x56e5d3===_0x4ecd4f)break;else _0x559e57['push'](_0x559e57['shift']());}catch(_0x5162cf){_0x559e57['push'](_0x559e57['shift']());}}}(_0x5ccf,0x7899e));function _0x5ccf(){const _0x2c6917=['4090821ZULGpf','vEoaB','508652ShWSsv','1ivoYqh','json','2889040JHQxnB','7795HMBIXx','GET','status','Bearer\x20','270528aXaIlV','642ZWiJUd','495426SobAYd','247770dkNxgv'];_0x5ccf=function(){return _0x2c6917;};return _0x5ccf();}function _0x3a94(_0xd5c2e4,_0x2b19d8){_0xd5c2e4=_0xd5c2e4-0x122;const _0x5ccf05=_0x5ccf();let _0x3a94bf=_0x5ccf05[_0xd5c2e4];return _0x3a94bf;}import{getApiBaseUrl}from'./environment.js';export async function getCurrentUser(_0x3e41f2){const _0xc80b63=_0x3a94,_0x1328ee={'qHKcA':function(_0x35245a){return _0x35245a();},'tejKl':_0xc80b63(0x128),'vEoaB':function(_0x497148,_0x506398){return _0x497148 instanceof _0x506398;},'HuwdG':function(_0x2eb828,_0x3ad979){return _0x2eb828(_0x3ad979);}},_0x5a99d7=_0x1328ee['qHKcA'](getApiBaseUrl);try{const _0x2fa9ff=await fetch(_0x5a99d7+'/api/v1/mcp/me',{'method':_0x1328ee['tejKl'],'headers':{'Authorization':_0xc80b63(0x12a)+_0x3e41f2}});if(!_0x2fa9ff['ok'])return{'success':![],'error':_0x2fa9ff['status']+'\x20'+_0x2fa9ff['statusText'],'status':_0x2fa9ff[_0xc80b63(0x129)]};const _0x5b639e=await _0x2fa9ff[_0xc80b63(0x125)]();return{'success':!![],'user':_0x5b639e};}catch(_0x31d49a){return{'success':![],'error':_0x1328ee[_0xc80b63(0x122)](_0x31d49a,Error)?_0x31d49a['message']:_0x1328ee['HuwdG'](String,_0x31d49a)};}}
1
+ (function(_0x3df488,_0x3e389c){const _0x120179=_0xa25c,_0x189a3a=_0x3df488();while(!![]){try{const _0x4efd74=-parseInt(_0x120179(0x1cd))/0x1+parseInt(_0x120179(0x1d0))/0x2*(parseInt(_0x120179(0x1d4))/0x3)+parseInt(_0x120179(0x1c9))/0x4+-parseInt(_0x120179(0x1d3))/0x5+-parseInt(_0x120179(0x1d2))/0x6*(-parseInt(_0x120179(0x1cc))/0x7)+parseInt(_0x120179(0x1c8))/0x8+parseInt(_0x120179(0x1cf))/0x9*(-parseInt(_0x120179(0x1c7))/0xa);if(_0x4efd74===_0x3e389c)break;else _0x189a3a['push'](_0x189a3a['shift']());}catch(_0xf2f4f2){_0x189a3a['push'](_0x189a3a['shift']());}}}(_0xb8bf,0xc1707));function _0xb8bf(){const _0x337da4=['6PPkjUo','json','Sbpru','29486830eXohBk','5428264lqqQic','5926524hinTPF','GET','dZtOM','50855XfAMmv','396898yuSdje','Bearer\x20','9uhLkbh','1055796xrkwha','/api/v1/mcp/me','1128dksGlC','2219360HTgmtl'];_0xb8bf=function(){return _0x337da4;};return _0xb8bf();}import{getApiBaseUrl}from'./environment.js';function _0xa25c(_0x2799a2,_0xa4e656){_0x2799a2=_0x2799a2-0x1c5;const _0xb8bf2=_0xb8bf();let _0xa25cf4=_0xb8bf2[_0x2799a2];return _0xa25cf4;}export async function getCurrentUser(_0x2b68db){const _0x300460=_0xa25c,_0x2265a4={'dZtOM':function(_0x2d681d){return _0x2d681d();},'Sclaq':function(_0x50c2d1,_0x35e184){return _0x50c2d1 instanceof _0x35e184;},'Sbpru':function(_0x5a3abf,_0x3ef5b1){return _0x5a3abf(_0x3ef5b1);}},_0x2e3846=_0x2265a4[_0x300460(0x1cb)](getApiBaseUrl);try{const _0x116f68=await fetch(_0x2e3846+_0x300460(0x1d1),{'method':_0x300460(0x1ca),'headers':{'Authorization':_0x300460(0x1ce)+_0x2b68db}});if(!_0x116f68['ok'])return{'success':![],'error':_0x116f68['status']+'\x20'+_0x116f68['statusText'],'status':_0x116f68['status']};const _0x3fecc0=await _0x116f68[_0x300460(0x1c5)]();return{'success':!![],'user':_0x3fecc0};}catch(_0x190185){return{'success':![],'error':_0x2265a4['Sclaq'](_0x190185,Error)?_0x190185['message']:_0x2265a4[_0x300460(0x1c6)](String,_0x190185)};}}
@@ -1 +1 @@
1
- function _0x4d2b(_0x2a90a4,_0x5d38bf){_0x2a90a4=_0x2a90a4-0x1b4;const _0x576718=_0x5767();let _0x4d2bd3=_0x576718[_0x2a90a4];return _0x4d2bd3;}const _0x3449b1=_0x4d2b;(function(_0x11d834,_0x1b0f0f){const _0x29c757=_0x4d2b,_0x54ed3c=_0x11d834();while(!![]){try{const _0x1d20df=parseInt(_0x29c757(0x1c9))/0x1*(parseInt(_0x29c757(0x1c4))/0x2)+-parseInt(_0x29c757(0x1b6))/0x3*(-parseInt(_0x29c757(0x1c2))/0x4)+parseInt(_0x29c757(0x1bb))/0x5*(-parseInt(_0x29c757(0x1cb))/0x6)+-parseInt(_0x29c757(0x1c5))/0x7*(-parseInt(_0x29c757(0x1bc))/0x8)+parseInt(_0x29c757(0x1c0))/0x9+parseInt(_0x29c757(0x1c8))/0xa*(-parseInt(_0x29c757(0x1c3))/0xb)+parseInt(_0x29c757(0x1b8))/0xc;if(_0x1d20df===_0x1b0f0f)break;else _0x54ed3c['push'](_0x54ed3c['shift']());}catch(_0x156e55){_0x54ed3c['push'](_0x54ed3c['shift']());}}}(_0x5767,0x2cdeb));import{readFileSync}from'fs';import{existsSync}from'fs';import{execSync}from'child_process';import{fileURLToPath}from'url';import{dirname,join}from'path';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const PACKAGE_NAME=_0x3449b1(0x1c7);export function getCurrentVersion(){const _0x248f60=_0x3449b1,_0x2545f7={'LMoxD':function(_0x32cf02,_0x53d115,_0x101a82,_0x5b7b02,_0xd9c840){return _0x32cf02(_0x53d115,_0x101a82,_0x5b7b02,_0xd9c840);},'ExMsw':'package.json','AqzZZ':function(_0xd2bf4b,_0x199e04){return _0xd2bf4b(_0x199e04);},'Zhfav':function(_0x146844,_0x1fff59,_0x519410){return _0x146844(_0x1fff59,_0x519410);},'oKIZe':'utf-8'},_0x486cc4=[_0x2545f7[_0x248f60(0x1bf)](join,__dirname,'..','..',_0x2545f7['ExMsw']),join(__dirname,'..','..','..','package.json')];for(const _0x165aa8 of _0x486cc4){if(_0x2545f7[_0x248f60(0x1bd)](existsSync,_0x165aa8))try{const _0x6b9015=JSON['parse'](_0x2545f7[_0x248f60(0x1c1)](readFileSync,_0x165aa8,_0x2545f7['oKIZe']));return _0x6b9015[_0x248f60(0x1b9)]||_0x248f60(0x1b7);}catch{continue;}}return _0x248f60(0x1b7);}function _0x5767(){const _0x3795a0=['22GIadhq','10578fGmmyk','769741zTdZNn','xblbu','@ranger-testing/ranger-cli','1099790HCioEy','31KnxUps','tlLUX','402PJHHxd','pipe','GyszE','70767SdUpTk','unknown','502344UDCVIS','version','split','25720WBLOcb','8BtcoMO','AqzZZ','npm\x20view\x20','LMoxD','2831976ZvynBC','Zhfav','20LdsqUG'];_0x5767=function(){return _0x3795a0;};return _0x5767();}export function getLatestVersion(){const _0x14682d=_0x3449b1,_0x241d52={'qaDJQ':'utf-8','tlLUX':function(_0x8907c3,_0x6ed962){return _0x8907c3 instanceof _0x6ed962;},'GyszE':function(_0x1845f3,_0x38dcab){return _0x1845f3(_0x38dcab);}};try{const _0x182b69=execSync(_0x14682d(0x1be)+PACKAGE_NAME+'\x20version',{'encoding':_0x241d52['qaDJQ'],'timeout':0x2710,'stdio':[_0x14682d(0x1b4),_0x14682d(0x1b4),'pipe']});return{'version':_0x182b69['trim']()};}catch(_0x33416b){const _0xcaae13=_0x241d52[_0x14682d(0x1ca)](_0x33416b,Error)?_0x33416b['message']:_0x241d52[_0x14682d(0x1b5)](String,_0x33416b);return{'error':_0xcaae13};}}export function compareVersions(_0x5622a4,_0x3ee654){const _0x181aed=_0x3449b1,_0x55826b={'xblbu':function(_0xb44da3,_0x52a287){return _0xb44da3<_0x52a287;},'oDEpH':function(_0x354ac4,_0x2f5171){return _0x354ac4>_0x2f5171;},'jSWvB':function(_0x794fac,_0x555605){return _0x794fac<_0x555605;}},_0x5c1868=_0x5622a4[_0x181aed(0x1ba)]('.')['map'](Number),_0x28f58b=_0x3ee654['split']('.')['map'](Number);for(let _0x11034a=0x0;_0x55826b[_0x181aed(0x1c6)](_0x11034a,0x3);_0x11034a++){const _0x3c5297=_0x5c1868[_0x11034a]||0x0,_0x27b7bb=_0x28f58b[_0x11034a]||0x0;if(_0x55826b['oDEpH'](_0x27b7bb,_0x3c5297))return 0x1;if(_0x55826b['jSWvB'](_0x27b7bb,_0x3c5297))return-0x1;}return 0x0;}
1
+ const _0x3e95d4=_0x1616;(function(_0x2ec546,_0x342a94){const _0x3e16bc=_0x1616,_0x146384=_0x2ec546();while(!![]){try{const _0x53ea3b=-parseInt(_0x3e16bc(0x1f9))/0x1+-parseInt(_0x3e16bc(0x1fb))/0x2+-parseInt(_0x3e16bc(0x204))/0x3*(parseInt(_0x3e16bc(0x1fa))/0x4)+parseInt(_0x3e16bc(0x206))/0x5+parseInt(_0x3e16bc(0x1f4))/0x6+-parseInt(_0x3e16bc(0x1ff))/0x7*(-parseInt(_0x3e16bc(0x1f5))/0x8)+-parseInt(_0x3e16bc(0x20b))/0x9;if(_0x53ea3b===_0x342a94)break;else _0x146384['push'](_0x146384['shift']());}catch(_0x553041){_0x146384['push'](_0x146384['shift']());}}}(_0x4f39,0x7df8c));import{readFileSync}from'fs';import{existsSync}from'fs';function _0x1616(_0x5824bb,_0x17f995){_0x5824bb=_0x5824bb-0x1f3;const _0x4f390a=_0x4f39();let _0x161639=_0x4f390a[_0x5824bb];return _0x161639;}function _0x4f39(){const _0x4f3788=['561546LjsJpF','map','4752030xNoIfw','16hfFdGb','utf-8','@ranger-testing/ranger-cli','jxboN','222290LbyAgD','1629076LXHsHl','1717298IziiyV','JFrHt','PEsqC','VFKTJ','1155623HwhbXR','parse','package.json','uICaR','BPAPB','3lRTNry','pipe','4721995JCluEU','\x20version','message','trim','AaMQb'];_0x4f39=function(){return _0x4f3788;};return _0x4f39();}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=_0x3e95d4(0x1f7);export function getCurrentVersion(){const _0x5b14f8=_0x3e95d4,_0x2f409e={'wDYRn':function(_0x5cabdf,_0xa349e6,_0x2ca370,_0xcade56,_0x8897e5){return _0x5cabdf(_0xa349e6,_0x2ca370,_0xcade56,_0x8897e5);},'PEsqC':_0x5b14f8(0x201),'JFrHt':function(_0x404881,_0x45b67c){return _0x404881(_0x45b67c);},'uICaR':function(_0x3f7fdc,_0x41a695,_0x74e4be){return _0x3f7fdc(_0x41a695,_0x74e4be);},'BPAPB':_0x5b14f8(0x1f6),'VFKTJ':'unknown'},_0x19b6e0=[_0x2f409e['wDYRn'](join,__dirname,'..','..',_0x2f409e['PEsqC']),join(__dirname,'..','..','..',_0x2f409e[_0x5b14f8(0x1fd)])];for(const _0x4f3040 of _0x19b6e0){if(_0x2f409e[_0x5b14f8(0x1fc)](existsSync,_0x4f3040))try{const _0x1028ca=JSON[_0x5b14f8(0x200)](_0x2f409e[_0x5b14f8(0x202)](readFileSync,_0x4f3040,_0x2f409e[_0x5b14f8(0x203)]));return _0x1028ca['version']||'unknown';}catch{continue;}}return _0x2f409e[_0x5b14f8(0x1fe)];}export function getLatestVersion(){const _0x30c276=_0x3e95d4,_0x5654f1={'jxboN':_0x30c276(0x1f6),'MnclG':_0x30c276(0x205),'Kxrxg':function(_0x4a2f05,_0x45072f){return _0x4a2f05(_0x45072f);}};try{const _0x35cb39=execSync('npm\x20view\x20'+PACKAGE_NAME+_0x30c276(0x207),{'encoding':_0x5654f1[_0x30c276(0x1f8)],'timeout':0x2710,'stdio':[_0x30c276(0x205),_0x5654f1['MnclG'],_0x30c276(0x205)]});return{'version':_0x35cb39[_0x30c276(0x209)]()};}catch(_0x58b1c1){const _0x484aaa=_0x58b1c1 instanceof Error?_0x58b1c1[_0x30c276(0x208)]:_0x5654f1['Kxrxg'](String,_0x58b1c1);return{'error':_0x484aaa};}}export function compareVersions(_0x3db7bf,_0x1c4c1b){const _0x5b5d84=_0x3e95d4,_0x525684={'OBZbA':function(_0x129b55,_0x1f63d5){return _0x129b55>_0x1f63d5;},'AaMQb':function(_0x4bf0e3,_0x4f8df6){return _0x4bf0e3<_0x4f8df6;}},_0x5147b3=_0x3db7bf['split']('.')[_0x5b5d84(0x1f3)](Number),_0x3030f0=_0x1c4c1b['split']('.')['map'](Number);for(let _0x144f80=0x0;_0x144f80<0x3;_0x144f80++){const _0x4c97eb=_0x5147b3[_0x144f80]||0x0,_0x3e9595=_0x3030f0[_0x144f80]||0x0;if(_0x525684['OBZbA'](_0x3e9595,_0x4c97eb))return 0x1;if(_0x525684[_0x5b5d84(0x20a)](_0x3e9595,_0x4c97eb))return-0x1;}return 0x0;}