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

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/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/deleteProfile.js +1 -0
  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/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -0
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/playwrightCli.js +1 -1
  60. package/build/commands/utils/profileMessages.js +1 -1
  61. package/build/commands/utils/profileSetupBanner.js +1 -1
  62. package/build/commands/utils/projectsConfig.js +1 -1
  63. package/build/commands/utils/rangerConfig.js +1 -1
  64. package/build/commands/utils/rangerRoot.js +1 -1
  65. package/build/commands/utils/resolveProfileContext.js +1 -1
  66. package/build/commands/utils/resolveProfileUrl.js +1 -1
  67. package/build/commands/utils/retry.js +1 -1
  68. package/build/commands/utils/sessionCache.js +1 -1
  69. package/build/commands/utils/settings.js +1 -1
  70. package/build/commands/utils/skillContent.js +1 -1
  71. package/build/commands/utils/skills.js +1 -1
  72. package/build/commands/utils/stitchWebmFiles.js +1 -1
  73. package/build/commands/utils/telemetry.js +1 -1
  74. package/build/commands/utils/tokenRefresh.js +1 -1
  75. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  76. package/build/commands/utils/userApi.js +1 -1
  77. package/build/commands/utils/version.js +1 -1
  78. package/build/commands/verifyFeature.js +1 -1
  79. package/build/commands/verifyFeatureCli.js +1 -1
  80. package/build/commands/verifyFeatureNovaCli.js +1 -0
  81. package/build/skills/ranger/SKILL.md +1 -1
  82. package/package.json +1 -1
@@ -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 _0x35de(_0x4a064a,_0x3e8b3a){_0x4a064a=_0x4a064a-0x1b9;const _0x1eeca9=_0x1eec();let _0x35def9=_0x1eeca9[_0x4a064a];return _0x35def9;}(function(_0x145a8e,_0x6bce0c){const _0x102b76=_0x35de,_0x4f6fc5=_0x145a8e();while(!![]){try{const _0xb59072=-parseInt(_0x102b76(0x1bb))/0x1*(-parseInt(_0x102b76(0x1d0))/0x2)+parseInt(_0x102b76(0x1ba))/0x3+-parseInt(_0x102b76(0x1c6))/0x4*(-parseInt(_0x102b76(0x1bc))/0x5)+-parseInt(_0x102b76(0x1c2))/0x6+-parseInt(_0x102b76(0x1cc))/0x7*(-parseInt(_0x102b76(0x1c7))/0x8)+parseInt(_0x102b76(0x1cb))/0x9*(-parseInt(_0x102b76(0x1b9))/0xa)+-parseInt(_0x102b76(0x1ca))/0xb;if(_0xb59072===_0x6bce0c)break;else _0x4f6fc5['push'](_0x4f6fc5['shift']());}catch(_0x3e3fc1){_0x4f6fc5['push'](_0x4f6fc5['shift']());}}}(_0x1eec,0xba81d));import{getApiBaseUrl}from'./environment.js';import{getRefreshToken,storeToken,storeRefreshToken}from'./keychain.js';function _0x1eec(){const _0x4fa9b4=['47852WBevik','XmEwp','application/json','stringify','4ANOOid','40lscjez','1352202YQlxVA','28132CSEyes','1550205MvTQOo','POST','szQMQ','token','persistRefreshToken','/cli-auth/partner-refresh','5467140TSHodb','FJjFO','json','ZtVqc','12Igzlby','1528rVOXVo','refreshToken','timeout','778602heoejd','2243007GDAryB'];_0x1eec=function(){return _0x4fa9b4;};return _0x1eec();}export async function refreshCliToken(){const _0x42eea3=_0x35de,_0x13524b={'szQMQ':function(_0x350e50){return _0x350e50();},'uuqSf':function(_0x130502,_0x2ff914){return _0x130502(_0x2ff914);}},_0x1ec983=await _0x13524b[_0x42eea3(0x1be)](getRefreshToken);if(!_0x1ec983)return null;const _0x5090b7=await tryPartnerRefresh(_0x1ec983);if(_0x5090b7)return _0x5090b7;return _0x13524b['uuqSf'](tryWorkosRefresh,_0x1ec983);}export async function refreshPartnerCliToken(_0x572cde,_0x4337a7={}){const _0x237643=_0x35de,_0x8b7e52={'YyFya':function(_0x4e9b72,_0x1a1f9d){return _0x4e9b72(_0x1a1f9d);}},_0x396283=await tryPartnerRefresh(_0x572cde);return _0x396283&&_0x4337a7[_0x237643(0x1c0)]&&await _0x8b7e52['YyFya'](storeRefreshToken,_0x572cde),_0x396283;}async function tryPartnerRefresh(_0x37a78c){const _0x562bf0=_0x35de,_0x13c7e9={'XmEwp':function(_0x1e18be){return _0x1e18be();},'FJjFO':function(_0x4f5da9,_0x3acdc2,_0x289c50){return _0x4f5da9(_0x3acdc2,_0x289c50);},'qhizG':function(_0x2d2210,_0x3edf33){return _0x2d2210(_0x3edf33);}},_0x423877=_0x13c7e9[_0x562bf0(0x1cd)](getApiBaseUrl);try{const _0x1be6a1=await _0x13c7e9[_0x562bf0(0x1c3)](fetch,_0x423877+_0x562bf0(0x1c1),{'method':_0x562bf0(0x1bd),'headers':{'Content-Type':'application/json'},'body':JSON[_0x562bf0(0x1cf)]({'refreshToken':_0x37a78c}),'signal':AbortSignal[_0x562bf0(0x1c9)](0x2710)});if(!_0x1be6a1['ok'])return null;const _0x1301da=await _0x1be6a1[_0x562bf0(0x1c4)]();return await _0x13c7e9['qhizG'](storeToken,_0x1301da['token']),_0x1301da[_0x562bf0(0x1bf)];}catch{return null;}}async function tryWorkosRefresh(_0x3aab05){const _0x6bd15e=_0x35de,_0x190cbc={'ZtVqc':function(_0x567afc,_0x31262d){return _0x567afc(_0x31262d);},'wqOxQ':function(_0x20b088,_0x12a51c){return _0x20b088(_0x12a51c);}},_0x35a868=getApiBaseUrl();try{const _0x374c81=await fetch(_0x35a868+'/cli-auth/refresh',{'method':'POST','headers':{'Content-Type':_0x6bd15e(0x1ce)},'body':JSON['stringify']({'refreshToken':_0x3aab05}),'signal':AbortSignal['timeout'](0x2710)});if(!_0x374c81['ok'])return null;const _0xc6bdc=await _0x374c81[_0x6bd15e(0x1c4)]();return await _0x190cbc[_0x6bd15e(0x1c5)](storeToken,_0xc6bdc['token']),await _0x190cbc['wqOxQ'](storeRefreshToken,_0xc6bdc[_0x6bd15e(0x1c8)]),_0xc6bdc[_0x6bd15e(0x1bf)];}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(_0x5017cf,_0x14ee50){const _0x34c2aa=_0x1236,_0xb6c16e=_0x5017cf();while(!![]){try{const _0x1b9f05=parseInt(_0x34c2aa(0xed))/0x1*(-parseInt(_0x34c2aa(0x10e))/0x2)+parseInt(_0x34c2aa(0x119))/0x3*(parseInt(_0x34c2aa(0x10a))/0x4)+parseInt(_0x34c2aa(0x100))/0x5*(-parseInt(_0x34c2aa(0x110))/0x6)+parseInt(_0x34c2aa(0xec))/0x7*(parseInt(_0x34c2aa(0xfb))/0x8)+parseInt(_0x34c2aa(0x10f))/0x9+-parseInt(_0x34c2aa(0x11a))/0xa+-parseInt(_0x34c2aa(0xeb))/0xb*(parseInt(_0x34c2aa(0x115))/0xc);if(_0x1b9f05===_0x14ee50)break;else _0xb6c16e['push'](_0xb6c16e['shift']());}catch(_0x3709e6){_0xb6c16e['push'](_0xb6c16e['shift']());}}}(_0x39f5,0xf2bbd));function _0x39f5(){const _0x5e1134=['4kfYusI','apiName','indexOf','aaOvu','26eyjRkM','3004920uFwYVH','1034772qWcckr','method','getTime','goto','params','60TcOPba','length','parse','page@0','5815308zlkeAk','12654630KnsZTo','navigated','afterSnapshot','after','stepId','pageId','context-options','276991tcknfC','505183QOIuro','43698OHxtrF','url','point','endsWith','isDirectory','split','nyVHn','monotonicTime','string','find','snapshotName','push','beforeSnapshot','capturedAt','152QfcVtS','abs','input','filter','inputSnapshot','20oAPcBU','startTime','callId','frame-snapshot','type','iQAfj','set','event','VBikw','trim'];_0x39f5=function(){return _0x5e1134;};return _0x39f5();}import{readdir,readFile}from'fs/promises';function _0x1236(_0x4a8031,_0x4450db){_0x4a8031=_0x4a8031-0xea;const _0x39f5a4=_0x39f5();let _0x1236ad=_0x39f5a4[_0x4a8031];return _0x1236ad;}import{join}from'path';export async function mapStepsToTraceSnapshots(_0x3e309f,_0x2ea9c7){const _0x9fd018=_0x1236,_0x28b598={'aaOvu':function(_0x118f2f,_0x56a5d2,_0x2422c1){return _0x118f2f(_0x56a5d2,_0x2422c1);},'Ooteh':function(_0x4324a0,_0x1d14e1){return _0x4324a0(_0x1d14e1);},'nyVHn':function(_0x2526ff,_0x407605){return _0x2526ff===_0x407605;},'FuoUn':function(_0x306a7e,_0x567cde){return _0x306a7e===_0x567cde;},'upVXo':function(_0x1c33c4,_0x5afe40){return _0x1c33c4-_0x5afe40;},'MzBRZ':_0x9fd018(0x11d),'ySWdT':function(_0x357702,_0x215931){return _0x357702===_0x215931;},'VBikw':function(_0x487540,_0x1181fd){return _0x487540===_0x1181fd;},'NQpxg':_0x9fd018(0x107),'wdvgX':_0x9fd018(0x11b),'IfETl':_0x9fd018(0xf5),'iQAfj':function(_0x1614f4,_0x1ab219){return _0x1614f4>=_0x1ab219;},'XGXpK':_0x9fd018(0x113),'IEJUV':function(_0x309c2e,_0x3eddb1){return _0x309c2e-_0x3eddb1;}},_0x3b1d00=new Map();if(_0x28b598[_0x9fd018(0xf3)](_0x2ea9c7[_0x9fd018(0x116)],0x0))return _0x3b1d00;const _0x536b02=[],_0x45a7db=async _0x1b4227=>{const _0x200ea6=_0x9fd018,_0x22c877=await _0x28b598[_0x200ea6(0x10d)](readdir,_0x1b4227,{'withFileTypes':!![]});for(const _0x1b3e31 of _0x22c877){const _0x42745f=join(_0x1b4227,_0x1b3e31['name']);if(_0x1b3e31[_0x200ea6(0xf1)]())await _0x28b598['Ooteh'](_0x45a7db,_0x42745f);else _0x1b3e31['name'][_0x200ea6(0xf0)]('.trace')&&_0x536b02[_0x200ea6(0xf8)](_0x42745f);}};await _0x45a7db(_0x3e309f);if(_0x28b598[_0x9fd018(0xf3)](_0x536b02[_0x9fd018(0x116)],0x0))return _0x3b1d00;const _0x27e3d3=[];for(const _0x29d655 of _0x536b02){const _0x325cd0=await readFile(_0x29d655,'utf-8'),_0x60934c=_0x325cd0[_0x9fd018(0xf2)]('\x0a')[_0x9fd018(0xfe)](_0x34e1fe=>_0x34e1fe[_0x9fd018(0x109)]());for(const _0x5c1bf8 of _0x60934c){try{_0x27e3d3['push'](JSON[_0x9fd018(0x117)](_0x5c1bf8));}catch{}}}if(_0x28b598['FuoUn'](_0x27e3d3[_0x9fd018(0x116)],0x0))return _0x3b1d00;const _0x38e663=_0x27e3d3[_0x9fd018(0xf6)](_0x2fb493=>_0x2fb493[_0x9fd018(0x104)]===_0x9fd018(0xea));if(!_0x38e663)return _0x3b1d00;const _0x4e6445=_0x28b598['upVXo'](_0x38e663['wallTime'],_0x38e663[_0x9fd018(0xf4)]),_0x3d6c63=new Map();for(const _0x2c1fa8 of _0x27e3d3){switch(_0x2c1fa8['type']){case'before':{const _0x47ad9b=_0x2c1fa8;_0x3d6c63['set'](_0x47ad9b[_0x9fd018(0x102)],{'callId':_0x47ad9b[_0x9fd018(0x102)],'startTime':_0x47ad9b[_0x9fd018(0x101)],'endTime':0x0,'method':_0x47ad9b['method'],'apiName':_0x47ad9b[_0x9fd018(0x10b)],'params':_0x47ad9b[_0x9fd018(0x114)],'pageId':_0x47ad9b[_0x9fd018(0x11f)],'beforeSnapshot':_0x47ad9b['beforeSnapshot']});break;}case _0x9fd018(0xfd):{const _0x10ba95=_0x2c1fa8,_0xbb2731=_0x3d6c63['get'](_0x10ba95['callId']);if(_0xbb2731){if(_0x10ba95['inputSnapshot'])_0xbb2731['inputSnapshot']=_0x10ba95['inputSnapshot'];if(_0x10ba95[_0x9fd018(0xef)])_0xbb2731['point']=_0x10ba95[_0x9fd018(0xef)];}break;}case _0x28b598['MzBRZ']:{const _0x59461d=_0x2c1fa8,_0x35094f=_0x3d6c63['get'](_0x59461d[_0x9fd018(0x102)]);if(_0x35094f){_0x35094f['endTime']=_0x59461d['endTime'];if(_0x59461d[_0x9fd018(0x11c)])_0x35094f['afterSnapshot']=_0x59461d[_0x9fd018(0x11c)];}break;}}}const _0x439cca=Array['from'](_0x3d6c63['values']())[_0x9fd018(0xfe)](_0x551dcb=>_0x551dcb['endTime']>0x0&&(_0x551dcb['afterSnapshot']||_0x551dcb[_0x9fd018(0xf9)]))['sort']((_0x4dc7cb,_0xcc53ca)=>_0x4dc7cb[_0x9fd018(0x101)]-_0xcc53ca['startTime']);if(_0x28b598['ySWdT'](_0x439cca[_0x9fd018(0x116)],0x0))return _0x3b1d00;const _0x7284bb=new Map();for(const _0x2b310f of _0x27e3d3){if(_0x28b598['nyVHn'](_0x2b310f['type'],_0x9fd018(0x103))){const _0x3397f4=_0x2b310f['snapshot'];_0x3397f4?.['snapshotName']&&_0x3397f4?.['frameUrl']&&_0x7284bb[_0x9fd018(0x106)](_0x3397f4[_0x9fd018(0xf7)],_0x3397f4['frameUrl']);}}const _0x56a920=new Map();for(const _0x54fe21 of _0x439cca){const _0x9a4340=_0x54fe21[_0x9fd018(0x114)]?.['url'];_0x28b598[_0x9fd018(0x108)](_0x54fe21['method'],'goto')&&typeof _0x9a4340===_0x9fd018(0xf5)&&_0x54fe21[_0x9fd018(0x11f)]&&_0x56a920[_0x9fd018(0x106)](_0x54fe21[_0x9fd018(0x11f)],_0x9a4340);}for(const _0x4a865f of _0x27e3d3){const _0x2fa0cf=_0x4a865f,_0x2aaa71=_0x2fa0cf[_0x9fd018(0x114)],_0x23d03f=_0x2aaa71?.[_0x9fd018(0xee)];_0x28b598['FuoUn'](_0x2fa0cf['type'],_0x28b598['NQpxg'])&&_0x2fa0cf[_0x9fd018(0x111)]===_0x28b598['wdvgX']&&_0x28b598[_0x9fd018(0xf3)](typeof _0x23d03f,_0x9fd018(0xf5))&&typeof _0x2fa0cf[_0x9fd018(0x11f)]===_0x28b598['IfETl']&&_0x56a920['set'](_0x2fa0cf[_0x9fd018(0x11f)],_0x23d03f);}for(const _0x44430c of _0x2ea9c7){const _0x473360=new Date(_0x44430c[_0x9fd018(0xfa)])[_0x9fd018(0x112)](),_0x18948c=_0x473360-_0x4e6445;let _0x2fd9db=null,_0x4a4aef=Infinity;for(const _0x5d12b1 of _0x439cca){const _0x4ee9b6=Math[_0x9fd018(0xfc)](_0x5d12b1['endTime']-_0x18948c);_0x4ee9b6<_0x4a4aef&&(_0x4a4aef=_0x4ee9b6,_0x2fd9db=_0x5d12b1);}if(!_0x2fd9db)continue;const _0x41275a=_0x2fd9db['afterSnapshot']||_0x2fd9db[_0x9fd018(0xf9)];if(!_0x41275a)continue;const _0x1b0b17=_0x2fd9db['pageId']||_0x9fd018(0x118);let _0x496636=_0x7284bb['get'](_0x41275a)||_0x56a920['get'](_0x1b0b17)||'';if(!_0x496636)for(let _0x1f07b8=_0x439cca[_0x9fd018(0x10c)](_0x2fd9db);_0x28b598[_0x9fd018(0x105)](_0x1f07b8,0x0);_0x1f07b8--){const _0x580e7c=_0x439cca[_0x1f07b8][_0x9fd018(0x114)]?.[_0x9fd018(0xee)];if(_0x439cca[_0x1f07b8][_0x9fd018(0x111)]===_0x28b598['XGXpK']&&typeof _0x580e7c===_0x28b598['IfETl']){_0x496636=_0x580e7c;break;}}let _0x284e50,_0x3645c0;const _0x513b70=_0x439cca[_0x9fd018(0x10c)](_0x2fd9db);if(_0x513b70>=0x0&&_0x513b70<_0x28b598['IEJUV'](_0x439cca['length'],0x1)){const _0x382409=_0x439cca[_0x513b70+0x1];_0x382409['point']&&_0x382409['inputSnapshot']&&(_0x284e50=_0x382409[_0x9fd018(0xef)],_0x3645c0=_0x382409[_0x9fd018(0xff)]);}_0x3b1d00['set'](_0x44430c[_0x9fd018(0x11e)],{'snapshotName':_0x41275a,'inputSnapshotName':_0x3645c0,'pageId':_0x1b0b17,'pageUrl':_0x496636,'callId':_0x2fd9db[_0x9fd018(0x102)],'point':_0x284e50});}return _0x3b1d00;}
@@ -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(_0x42f2d6,_0x281cd6){const _0x1d8c05=_0x475c,_0x530560=_0x42f2d6();while(!![]){try{const _0x429de2=-parseInt(_0x1d8c05(0x1cd))/0x1*(-parseInt(_0x1d8c05(0x1d9))/0x2)+-parseInt(_0x1d8c05(0x1d4))/0x3*(parseInt(_0x1d8c05(0x1c9))/0x4)+parseInt(_0x1d8c05(0x1ce))/0x5*(parseInt(_0x1d8c05(0x1d8))/0x6)+-parseInt(_0x1d8c05(0x1d1))/0x7*(parseInt(_0x1d8c05(0x1d2))/0x8)+-parseInt(_0x1d8c05(0x1d5))/0x9*(parseInt(_0x1d8c05(0x1cc))/0xa)+parseInt(_0x1d8c05(0x1d3))/0xb*(-parseInt(_0x1d8c05(0x1d6))/0xc)+parseInt(_0x1d8c05(0x1d0))/0xd;if(_0x429de2===_0x281cd6)break;else _0x530560['push'](_0x530560['shift']());}catch(_0xbd65a7){_0x530560['push'](_0x530560['shift']());}}}(_0x2feb,0x7f452));import{getApiBaseUrl}from'./environment.js';function _0x2feb(){const _0x17b421=['json','/api/v1/mcp/me','7061590gfbCFw','601uCyuNY','1277205uOjDUY','message','11286730jvBlvx','21vDOYND','90872WTucxf','248160usBMxh','123OSeBJt','9lrGAWA','36gYZeSE','status','12GBCyrK','706GvuEyA','25564oUxxne'];_0x2feb=function(){return _0x17b421;};return _0x2feb();}function _0x475c(_0x373b30,_0x352b5c){_0x373b30=_0x373b30-0x1c9;const _0x2feb87=_0x2feb();let _0x475c53=_0x2feb87[_0x373b30];return _0x475c53;}export async function getCurrentUser(_0x3879fb){const _0xa7f20f=_0x475c,_0x23a96b=getApiBaseUrl();try{const _0x262141=await fetch(_0x23a96b+_0xa7f20f(0x1cb),{'method':'GET','headers':{'Authorization':'Bearer\x20'+_0x3879fb}});if(!_0x262141['ok'])return{'success':![],'error':_0x262141[_0xa7f20f(0x1d7)]+'\x20'+_0x262141['statusText'],'status':_0x262141['status']};const _0x20c4b0=await _0x262141[_0xa7f20f(0x1ca)]();return{'success':!![],'user':_0x20c4b0};}catch(_0x174fd3){return{'success':![],'error':_0x174fd3 instanceof Error?_0x174fd3[_0xa7f20f(0x1cf)]:String(_0x174fd3)};}}
@@ -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 _0x816b42=_0x3f11;(function(_0x5b6309,_0x3e3a22){const _0x53c326=_0x3f11,_0x354267=_0x5b6309();while(!![]){try{const _0xb2e4a3=parseInt(_0x53c326(0x188))/0x1*(-parseInt(_0x53c326(0x183))/0x2)+parseInt(_0x53c326(0x184))/0x3*(-parseInt(_0x53c326(0x18a))/0x4)+-parseInt(_0x53c326(0x17c))/0x5*(parseInt(_0x53c326(0x180))/0x6)+parseInt(_0x53c326(0x17b))/0x7+parseInt(_0x53c326(0x179))/0x8+-parseInt(_0x53c326(0x17f))/0x9*(-parseInt(_0x53c326(0x186))/0xa)+parseInt(_0x53c326(0x17d))/0xb;if(_0xb2e4a3===_0x3e3a22)break;else _0x354267['push'](_0x354267['shift']());}catch(_0x4a71b6){_0x354267['push'](_0x354267['shift']());}}}(_0x4141,0x37de7));import{readFileSync}from'fs';import{existsSync}from'fs';import{execSync}from'child_process';import{fileURLToPath}from'url';function _0x3f11(_0x645f21,_0x3928fd){_0x645f21=_0x645f21-0x176;const _0x414166=_0x4141();let _0x3f117b=_0x414166[_0x645f21];return _0x3f117b;}import{dirname,join}from'path';function _0x4141(){const _0x48f35d=['2926748dcehXH','unknown','1092708fzyBaU','28746gBVWCR','split','rveCc','54vkWvKz','93498uTmUXA','ouvWr','20ltxuph','package.json','573AQGzOb','\x20version','48ihQZiD','@ranger-testing/ranger-cli','utf-8','parse','version','pipe','mGMeK','1068776sBjwfg','ztayw','1406930pRJSzC','235tLDyOT'];_0x4141=function(){return _0x48f35d;};return _0x4141();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const PACKAGE_NAME=_0x816b42(0x18b);export function getCurrentVersion(){const _0x705a1b=_0x816b42,_0x1c0dc7={'mGMeK':function(_0x237529,_0x5c2e16,_0x4520f4,_0x23452f,_0x63d66b){return _0x237529(_0x5c2e16,_0x4520f4,_0x23452f,_0x63d66b);},'zOyFS':function(_0x3d276f,_0x5a6b9a,_0xe757da,_0x47b9a8,_0x30eb1a,_0xf5414d){return _0x3d276f(_0x5a6b9a,_0xe757da,_0x47b9a8,_0x30eb1a,_0xf5414d);},'pGRuk':function(_0x336e6c,_0x40b40c){return _0x336e6c(_0x40b40c);},'dsJEn':_0x705a1b(0x18c),'ouvWr':_0x705a1b(0x17e)},_0x57e795=[_0x1c0dc7[_0x705a1b(0x178)](join,__dirname,'..','..',_0x705a1b(0x187)),_0x1c0dc7['zOyFS'](join,__dirname,'..','..','..','package.json')];for(const _0x55fa65 of _0x57e795){if(_0x1c0dc7['pGRuk'](existsSync,_0x55fa65))try{const _0xac2ff6=JSON[_0x705a1b(0x18d)](readFileSync(_0x55fa65,_0x1c0dc7['dsJEn']));return _0xac2ff6[_0x705a1b(0x176)]||_0x1c0dc7['ouvWr'];}catch{continue;}}return _0x1c0dc7[_0x705a1b(0x185)];}export function getLatestVersion(){const _0x3e8fc7=_0x816b42,_0x5735a2={'CgzTc':function(_0x5e87e1,_0x255407,_0x1afa44){return _0x5e87e1(_0x255407,_0x1afa44);},'VGceD':_0x3e8fc7(0x18c),'ztayw':'pipe','DxKtb':function(_0x1720e6,_0x33023d){return _0x1720e6(_0x33023d);}};try{const _0xf9c14c=_0x5735a2['CgzTc'](execSync,'npm\x20view\x20'+PACKAGE_NAME+_0x3e8fc7(0x189),{'encoding':_0x5735a2['VGceD'],'timeout':0x2710,'stdio':[_0x5735a2[_0x3e8fc7(0x17a)],_0x3e8fc7(0x177),_0x5735a2[_0x3e8fc7(0x17a)]]});return{'version':_0xf9c14c['trim']()};}catch(_0x5763ff){const _0x8084c3=_0x5763ff instanceof Error?_0x5763ff['message']:_0x5735a2['DxKtb'](String,_0x5763ff);return{'error':_0x8084c3};}}export function compareVersions(_0x5f39d3,_0x725757){const _0x2ace8f=_0x816b42,_0x341651={'rveCc':function(_0x31c75e,_0x3ab2c6){return _0x31c75e>_0x3ab2c6;}},_0x86e40c=_0x5f39d3['split']('.')['map'](Number),_0x35c444=_0x725757[_0x2ace8f(0x181)]('.')['map'](Number);for(let _0x26dd9d=0x0;_0x26dd9d<0x3;_0x26dd9d++){const _0x3b0104=_0x86e40c[_0x26dd9d]||0x0,_0x965e15=_0x35c444[_0x26dd9d]||0x0;if(_0x341651[_0x2ace8f(0x182)](_0x965e15,_0x3b0104))return 0x1;if(_0x965e15<_0x3b0104)return-0x1;}return 0x0;}