@ranger-testing/ranger-cli 2.5.4-alpha.152f635-21 → 2.5.4-alpha.1b80607-25

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(_0x220168,_0x43e4d6){const _0x271d23=_0x51da,_0x3dcf5e=_0x220168();while(!![]){try{const _0x5e844c=parseInt(_0x271d23(0x96))/0x1+parseInt(_0x271d23(0x84))/0x2*(-parseInt(_0x271d23(0x98))/0x3)+-parseInt(_0x271d23(0x7e))/0x4*(parseInt(_0x271d23(0x81))/0x5)+-parseInt(_0x271d23(0xa8))/0x6+parseInt(_0x271d23(0x9b))/0x7+parseInt(_0x271d23(0xa1))/0x8*(parseInt(_0x271d23(0x89))/0x9)+parseInt(_0x271d23(0xa5))/0xa*(parseInt(_0x271d23(0x8f))/0xb);if(_0x5e844c===_0x43e4d6)break;else _0x3dcf5e['push'](_0x3dcf5e['shift']());}catch(_0x2a89e5){_0x3dcf5e['push'](_0x3dcf5e['shift']());}}}(_0x3f0b,0x26252));function _0x51da(_0x393375,_0x12aab4){_0x393375=_0x393375-0x7b;const _0x3f0b1b=_0x3f0b();let _0x51daf4=_0x3f0b1b[_0x393375];return _0x51daf4;}import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x626a3c=_0x51da;return join(getRangerHomeDir(),_0x626a3c(0x8b));}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x22e3a8=_0x51da,_0x39c6fd={'lSXGc':function(_0x522d00){return _0x522d00();},'NMnmd':function(_0x4d4613,_0xf1ac20){return _0x4d4613(_0xf1ac20);},'yOrBu':'utf-8','AqFdz':function(_0x32f33,_0x1e61e2){return _0x32f33 instanceof _0x1e61e2;},'cRHwy':function(_0x1bd2c8,_0x5ef7d7){return _0x1bd2c8!==_0x5ef7d7;},'ugliN':_0x22e3a8(0x87),'GJjQO':function(_0x37aed7,_0x173170){return _0x37aed7===_0x173170;}},_0x99a31a=_0x39c6fd[_0x22e3a8(0x95)](getProjectsConfigPath);if(!_0x39c6fd[_0x22e3a8(0xa4)](existsSync,_0x99a31a))return emptyConfig();let _0x1ff3db;try{_0x1ff3db=readFileSync(_0x99a31a,_0x39c6fd['yOrBu']);}catch(_0x2cb552){const _0xefdaac=_0x2cb552 instanceof Error?_0x2cb552['message']:String(_0x2cb552);return console['warn'](_0x22e3a8(0x83)+_0x99a31a+':\x20'+_0xefdaac+'.\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}let _0x41a741;try{_0x41a741=JSON['parse'](_0x1ff3db);}catch(_0x1de4c7){const _0x1979d2=_0x39c6fd[_0x22e3a8(0x9c)](_0x1de4c7,Error)?_0x1de4c7['message']:String(_0x1de4c7);return console['warn'](_0x22e3a8(0xa7)+_0x99a31a+'\x20is\x20not\x20valid\x20JSON\x20('+_0x1979d2+').\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}if(!_0x41a741||_0x39c6fd[_0x22e3a8(0x80)](typeof _0x41a741,_0x39c6fd[_0x22e3a8(0xa3)])||Array[_0x22e3a8(0x92)](_0x41a741)||_0x41a741['version']!==CURRENT_VERSION||_0x39c6fd[_0x22e3a8(0x80)](typeof _0x41a741['projects'],_0x22e3a8(0x87))||_0x39c6fd['GJjQO'](_0x41a741['projects'],null)||Array[_0x22e3a8(0x92)](_0x41a741['projects']))return console['warn']('[ranger]\x20Warning:\x20'+_0x99a31a+'\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();return _0x41a741;}export function writeProjectsConfig(_0x30d025){const _0x598db2=_0x51da,_0x3ba1a4={'QXwpI':function(_0x59a5ca,_0x25b159){return _0x59a5ca(_0x25b159);},'Bprzy':function(_0x61b5fa,_0x57773b){return _0x61b5fa+_0x57773b;},'KcrCj':'utf-8','KrPPe':function(_0xd952cb,_0x32fc00,_0x26f1a9){return _0xd952cb(_0x32fc00,_0x26f1a9);}},_0x13123f=getProjectsConfigPath(),_0x46ab27=_0x3ba1a4[_0x598db2(0x8c)](dirname,_0x13123f);!existsSync(_0x46ab27)&&mkdirSync(_0x46ab27,{'recursive':!![]});const _0x5ede58=_0x13123f+'.'+process[_0x598db2(0x7c)]+'.'+Date[_0x598db2(0x9d)]()+'.tmp',_0x237ff6=_0x3ba1a4[_0x598db2(0x82)](JSON['stringify'](_0x30d025,null,0x2),'\x0a');try{writeFileSync(_0x5ede58,_0x237ff6,{'encoding':_0x3ba1a4['KcrCj'],'mode':0x180}),_0x3ba1a4['KrPPe'](renameSync,_0x5ede58,_0x13123f);}catch(_0x1da546){try{existsSync(_0x5ede58)&&unlinkSync(_0x5ede58);}catch{}throw _0x1da546;}}export function readProfileOverrides(_0x249d00,_0x3d16fc){const _0x4ddd83=_0x51da,_0x1ccafc={'Icuzf':function(_0x545c63){return _0x545c63();}},_0x3012ab=_0x1ccafc[_0x4ddd83(0x88)](readProjectsConfig),_0xf7837b=_0x3012ab[_0x4ddd83(0x99)][_0x249d00];if(!_0xf7837b||!_0xf7837b[_0x4ddd83(0x90)])return null;const _0x4eb846=_0xf7837b['profiles'][_0x3d16fc];if(!_0x4eb846||!_0x4eb846['settings'])return null;return _0x4eb846['settings']??null;}export function setProfileOverride(_0x3f4ba2,_0x4ebbc6,_0x2dca1e,_0x932d9){const _0x2b6909=_0x51da,_0x3524ad={'aVKgb':'keyPath\x20is\x20required','DZXwn':function(_0x393f78){return _0x393f78();},'turOp':function(_0x16e70f,_0x3c7450){return _0x16e70f(_0x3c7450);}};if(!_0x2dca1e)throw new Error(_0x3524ad['aVKgb']);const _0x3393e7=_0x3524ad['DZXwn'](readProjectsConfig),_0x5e2e18=_0x3393e7['projects'][_0x3f4ba2]??={},_0x56e2b6=_0x5e2e18['profiles']??={},_0x16b2cd=_0x56e2b6[_0x4ebbc6]??={},_0x50db3b=_0x16b2cd['settings']??={};setByKeyPath(_0x50db3b,_0x2dca1e,_0x932d9),_0x3524ad[_0x2b6909(0x7f)](writeProjectsConfig,_0x3393e7);}export function unsetProfileOverride(_0x2e6572,_0x4de3a7,_0xd5ef8d){const _0x1f3380=_0x51da,_0x1f4f87={'gxyTD':_0x1f3380(0x9f),'SkfQb':function(_0x1b1d6b,_0x57c402,_0x34afe9){return _0x1b1d6b(_0x57c402,_0x34afe9);},'RpluO':function(_0x576a70,_0x160a34){return _0x576a70(_0x160a34);}};if(!_0xd5ef8d)throw new Error(_0x1f4f87[_0x1f3380(0x7d)]);const _0x43a410=readProjectsConfig(),_0x307af3=_0x43a410[_0x1f3380(0x99)][_0x2e6572];if(!_0x307af3?.['profiles'])return![];const _0x36e44e=_0x307af3[_0x1f3380(0x90)][_0x4de3a7];if(!_0x36e44e?.[_0x1f3380(0x94)])return![];const _0x86423e=_0x1f4f87[_0x1f3380(0xa6)](deleteByKeyPath,_0x36e44e[_0x1f3380(0x94)],_0xd5ef8d);if(!_0x86423e)return![];return _0x1f4f87[_0x1f3380(0x97)](writeProjectsConfig,_0x43a410),!![];}function _0x3f0b(){const _0x5e3faf=['550920ymEEuU','BWBms','pid','gxyTD','996040ticxMA','turOp','cRHwy','5MrcmVW','Bprzy','[ranger]\x20Warning:\x20failed\x20to\x20read\x20','17656jNOZdu','length','entries','object','Icuzf','8919Tkrfnk','otkOs','projects.json','QXwpI','gGzJn','keys','44doSKae','profiles','ViLry','isArray','afxoz','settings','lSXGc','289655KRMbVe','RpluO','93DLPJGh','projects','uTMGR','176428upFzJp','AqFdz','now','JZKjr','keyPath\x20is\x20required','ZZCRV','2456BOcGFt','ZkNnT','ugliN','NMnmd','379110eWRIhn','SkfQb','[ranger]\x20Warning:\x20'];_0x3f0b=function(){return _0x5e3faf;};return _0x3f0b();}export function resetProfileOverrides(_0x4a61bd,_0x4edadd){const _0x354f6f=_0x51da,_0x590a43={'ZZCRV':function(_0x302196){return _0x302196();},'GrMGC':function(_0x4537c6,_0x43e3cf){return _0x4537c6 in _0x43e3cf;},'CMszp':function(_0x363c16,_0x59b319){return _0x363c16===_0x59b319;}},_0x345c77=_0x590a43[_0x354f6f(0xa0)](readProjectsConfig),_0x367238=_0x345c77['projects'][_0x4a61bd];if(!_0x367238?.[_0x354f6f(0x90)])return;if(!_0x590a43['GrMGC'](_0x4edadd,_0x367238[_0x354f6f(0x90)]))return;delete _0x367238[_0x354f6f(0x90)][_0x4edadd],_0x590a43['CMszp'](Object[_0x354f6f(0x8e)](_0x367238['profiles'])['length'],0x0)&&(!_0x367238['lastProfile']?delete _0x345c77['projects'][_0x4a61bd]:_0x367238[_0x354f6f(0x90)]={}),writeProjectsConfig(_0x345c77);}export function readLastProfile(_0x1ce0d4){const _0xf2d066=readProjectsConfig(),_0x2880cb=_0xf2d066['projects'][_0x1ce0d4];return _0x2880cb?.['lastProfile']??null;}export function writeLastProfile(_0x2dea4e,_0x464646){const _0x29e43e={'hZAkq':function(_0x2cb492,_0x602ddf){return _0x2cb492(_0x602ddf);}},_0xe48be9=readProjectsConfig(),_0x37667d=_0xe48be9['projects'][_0x2dea4e]??={};_0x37667d['lastProfile']=_0x464646,_0x29e43e['hZAkq'](writeProjectsConfig,_0xe48be9);}export function mergeCloudProfileSettings(_0x3e12c7,_0x1b6862){const _0x4bbd5a=_0x51da,_0x29a201={'ZkNnT':function(_0x48707c,_0x1222b1){return _0x48707c??_0x1222b1;},'ViLry':function(_0x1fa0d4,_0x135232){return _0x1fa0d4===_0x135232;},'uTMGR':'headers','BWBms':function(_0x2ebe92,_0x15d19c){return _0x2ebe92===_0x15d19c;},'afxoz':function(_0x564613,_0x2d8cec){return _0x564613(_0x2d8cec);},'otkOs':function(_0x403c24,_0x5a8f01){return _0x403c24===_0x5a8f01;},'XhXLm':function(_0x16e892,_0x50dcd1){return _0x16e892!==_0x50dcd1;}},_0x25a3ec={..._0x29a201[_0x4bbd5a(0xa2)](_0x3e12c7,{})};if(!_0x1b6862)return _0x25a3ec;for(const [_0x3c01b7,_0x32fcca]of Object[_0x4bbd5a(0x86)](_0x1b6862)){if(_0x29a201[_0x4bbd5a(0x91)](_0x32fcca,undefined))continue;if(_0x32fcca===null){delete _0x25a3ec[_0x3c01b7];continue;}if(_0x3c01b7===_0x29a201[_0x4bbd5a(0x9a)]||_0x29a201[_0x4bbd5a(0x7b)](_0x3c01b7,'setupHeaders')){const _0x2d72e1=asRecord(_0x25a3ec[_0x3c01b7])??{},_0x506030=_0x29a201[_0x4bbd5a(0x93)](asRecord,_0x32fcca);if(!_0x506030){_0x25a3ec[_0x3c01b7]=_0x32fcca;continue;}const _0x37c403={..._0x2d72e1};for(const [_0x80024d,_0x8c9f27]of Object['entries'](_0x506030)){if(_0x29a201[_0x4bbd5a(0x8a)](_0x8c9f27,null))delete _0x37c403[_0x80024d];else _0x29a201['XhXLm'](_0x8c9f27,undefined)&&(_0x37c403[_0x80024d]=_0x8c9f27);}_0x25a3ec[_0x3c01b7]=_0x37c403;continue;}_0x25a3ec[_0x3c01b7]=_0x32fcca;}return _0x25a3ec;}function asRecord(_0xc1e373){const _0x2d60e3=_0x51da;return _0xc1e373&&typeof _0xc1e373==='object'&&!Array[_0x2d60e3(0x92)](_0xc1e373)?_0xc1e373:undefined;}function setByKeyPath(_0x1435e0,_0x987558,_0x2267d1){const _0x2f3b1f=_0x51da,_0xe6864c={'JZKjr':function(_0x255dd9,_0x1c752f){return _0x255dd9!==_0x1c752f;}},_0x541e79=_0x987558['split']('.');let _0x6b95ae=_0x1435e0;for(let _0xeb83a5=0x0;_0xeb83a5<_0x541e79[_0x2f3b1f(0x85)]-0x1;_0xeb83a5++){const _0xb637f6=_0x541e79[_0xeb83a5],_0x1b9e27=_0x6b95ae[_0xb637f6];(!_0x1b9e27||_0xe6864c[_0x2f3b1f(0x9e)](typeof _0x1b9e27,_0x2f3b1f(0x87))||Array[_0x2f3b1f(0x92)](_0x1b9e27))&&(_0x6b95ae[_0xb637f6]={}),_0x6b95ae=_0x6b95ae[_0xb637f6];}_0x6b95ae[_0x541e79[_0x541e79[_0x2f3b1f(0x85)]-0x1]]=_0x2267d1;}function deleteByKeyPath(_0x44f47f,_0x2ad282){const _0x5ec1b7=_0x51da,_0xb17f8={'aTtFM':function(_0x2ed8db,_0x75fa4b){return _0x2ed8db<_0x75fa4b;},'gGzJn':function(_0x140990,_0x447bb3){return _0x140990-_0x447bb3;},'zlcfy':function(_0x108e9e,_0x72456b){return _0x108e9e in _0x72456b;}},_0x28b34c=_0x2ad282['split']('.');let _0x46ef67=_0x44f47f;for(let _0x4272d0=0x0;_0xb17f8['aTtFM'](_0x4272d0,_0x28b34c[_0x5ec1b7(0x85)]-0x1);_0x4272d0++){const _0x1ad97e=_0x28b34c[_0x4272d0],_0x2f6805=_0x46ef67[_0x1ad97e];if(!_0x2f6805||typeof _0x2f6805!==_0x5ec1b7(0x87)||Array['isArray'](_0x2f6805))return![];_0x46ef67=_0x2f6805;}const _0x884ac6=_0x28b34c[_0xb17f8[_0x5ec1b7(0x8d)](_0x28b34c['length'],0x1)];if(!_0xb17f8['zlcfy'](_0x884ac6,_0x46ef67))return![];return delete _0x46ef67[_0x884ac6],!![];}
1
+ (function(_0x209b1f,_0x1143c6){const _0x39ddc4=_0xe54b,_0x1a8c5c=_0x209b1f();while(!![]){try{const _0x2201c5=parseInt(_0x39ddc4(0xd7))/0x1*(-parseInt(_0x39ddc4(0xf2))/0x2)+-parseInt(_0x39ddc4(0xe7))/0x3+-parseInt(_0x39ddc4(0xe2))/0x4+parseInt(_0x39ddc4(0xf5))/0x5*(parseInt(_0x39ddc4(0xce))/0x6)+-parseInt(_0x39ddc4(0xe3))/0x7*(parseInt(_0x39ddc4(0xcf))/0x8)+-parseInt(_0x39ddc4(0xef))/0x9+parseInt(_0x39ddc4(0xe5))/0xa;if(_0x2201c5===_0x1143c6)break;else _0x1a8c5c['push'](_0x1a8c5c['shift']());}catch(_0x5af304){_0x1a8c5c['push'](_0x1a8c5c['shift']());}}}(_0xc299,0x2c0c8));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x155061=_0xe54b,_0x40eb07={'QKzWg':function(_0x4dcc29,_0x3d4e85,_0x3e12ed){return _0x4dcc29(_0x3d4e85,_0x3e12ed);},'oMpEG':_0x155061(0xd9)};return _0x40eb07[_0x155061(0xe4)](join,getRangerHomeDir(),_0x40eb07['oMpEG']);}function _0xe54b(_0x34abce,_0x56a138){_0x34abce=_0x34abce-0xce;const _0xc2991c=_0xc299();let _0xe54bc4=_0xc2991c[_0x34abce];return _0xe54bc4;}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x5b06ef=_0xe54b,_0x40e237={'sGotD':function(_0x524602){return _0x524602();},'KOzId':function(_0x359f03,_0x2c438d,_0x1f5aac){return _0x359f03(_0x2c438d,_0x1f5aac);},'FrAPj':'utf-8','THEoq':function(_0x812b81,_0x4536ae){return _0x812b81(_0x4536ae);},'syWpw':function(_0x215fb6,_0x16a613){return _0x215fb6 instanceof _0x16a613;},'KzZKG':function(_0x39fc6b,_0x4430c2){return _0x39fc6b!==_0x4430c2;},'oBdsT':'object','JEPkK':function(_0xcf094e,_0x33fef7){return _0xcf094e!==_0x33fef7;},'MpsqY':function(_0x366536,_0x14cc0b){return _0x366536===_0x14cc0b;}},_0x24ba36=_0x40e237[_0x5b06ef(0xdb)](getProjectsConfigPath);if(!existsSync(_0x24ba36))return _0x40e237['sGotD'](emptyConfig);let _0x2421eb;try{_0x2421eb=_0x40e237['KOzId'](readFileSync,_0x24ba36,_0x40e237['FrAPj']);}catch(_0x382536){const _0x53a69d=_0x382536 instanceof Error?_0x382536[_0x5b06ef(0xee)]:_0x40e237[_0x5b06ef(0xf3)](String,_0x382536);return console[_0x5b06ef(0xd6)](_0x5b06ef(0xe0)+_0x24ba36+':\x20'+_0x53a69d+'.\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}let _0x42fc11;try{_0x42fc11=JSON['parse'](_0x2421eb);}catch(_0x83542f){const _0x14c685=_0x40e237['syWpw'](_0x83542f,Error)?_0x83542f['message']:_0x40e237[_0x5b06ef(0xf3)](String,_0x83542f);return console['warn']('[ranger]\x20Warning:\x20'+_0x24ba36+'\x20is\x20not\x20valid\x20JSON\x20('+_0x14c685+').\x20Ignoring\x20local\x20profile\x20overrides.'),_0x40e237['sGotD'](emptyConfig);}if(!_0x42fc11||_0x40e237['KzZKG'](typeof _0x42fc11,_0x40e237['oBdsT'])||Array[_0x5b06ef(0xf1)](_0x42fc11)||_0x40e237['JEPkK'](_0x42fc11['version'],CURRENT_VERSION)||typeof _0x42fc11['projects']!==_0x40e237[_0x5b06ef(0xf6)]||_0x40e237['MpsqY'](_0x42fc11['projects'],null)||Array[_0x5b06ef(0xf1)](_0x42fc11['projects']))return console[_0x5b06ef(0xd6)]('[ranger]\x20Warning:\x20'+_0x24ba36+'\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();return _0x42fc11;}export function writeProjectsConfig(_0x43e860){const _0x48b23e=_0xe54b,_0x45959b={'mbwLP':function(_0x4a4bcf,_0x549967){return _0x4a4bcf(_0x549967);},'CKtLN':function(_0x465260,_0x30944d,_0x16594e){return _0x465260(_0x30944d,_0x16594e);},'uhDKx':function(_0x2a8e32,_0x5ccc56){return _0x2a8e32+_0x5ccc56;},'iIccN':function(_0x366f19,_0x37e747){return _0x366f19(_0x37e747);}},_0x3d5cd1=getProjectsConfigPath(),_0x24202a=dirname(_0x3d5cd1);!_0x45959b['mbwLP'](existsSync,_0x24202a)&&_0x45959b[_0x48b23e(0xe9)](mkdirSync,_0x24202a,{'recursive':!![]});const _0xf6ed9d=_0x3d5cd1+'.'+process['pid']+'.'+Date['now']()+_0x48b23e(0xeb),_0x5a82ac=_0x45959b[_0x48b23e(0xd2)](JSON['stringify'](_0x43e860,null,0x2),'\x0a');try{writeFileSync(_0xf6ed9d,_0x5a82ac,{'encoding':'utf-8','mode':0x180}),renameSync(_0xf6ed9d,_0x3d5cd1);}catch(_0x36a1bc){try{existsSync(_0xf6ed9d)&&_0x45959b['iIccN'](unlinkSync,_0xf6ed9d);}catch{}throw _0x36a1bc;}}export function readProfileOverrides(_0x42a990,_0x52fe01){const _0x59d3a6=_0xe54b,_0x50598e=readProjectsConfig(),_0x52b556=_0x50598e[_0x59d3a6(0xea)][_0x42a990];if(!_0x52b556||!_0x52b556[_0x59d3a6(0xf0)])return null;const _0x34448c=_0x52b556['profiles'][_0x52fe01];if(!_0x34448c||!_0x34448c[_0x59d3a6(0xd5)])return null;return _0x34448c[_0x59d3a6(0xd5)]??null;}export function setProfileOverride(_0x6ad40,_0x12bf9f,_0x1fbc33,_0x3f53f2){const _0x25d4ef=_0xe54b,_0x40cd78={'ziSqL':'keyPath\x20is\x20required'};if(!_0x1fbc33)throw new Error(_0x40cd78['ziSqL']);const _0x119150=readProjectsConfig(),_0x3b67ff=_0x119150[_0x25d4ef(0xea)][_0x6ad40]??={},_0x5e1911=_0x3b67ff['profiles']??={},_0x208eb2=_0x5e1911[_0x12bf9f]??={},_0x7b9cfa=_0x208eb2[_0x25d4ef(0xd5)]??={};setByKeyPath(_0x7b9cfa,_0x1fbc33,_0x3f53f2),writeProjectsConfig(_0x119150);}export function unsetProfileOverride(_0x4ef287,_0x1eb5d3,_0x4d01b6){const _0xc5471d=_0xe54b,_0x5bd368={'KvUvz':_0xc5471d(0xd0)};if(!_0x4d01b6)throw new Error(_0x5bd368[_0xc5471d(0xda)]);const _0x2f98d2=readProjectsConfig(),_0x2b461e=_0x2f98d2[_0xc5471d(0xea)][_0x4ef287];if(!_0x2b461e?.[_0xc5471d(0xf0)])return![];const _0x1a51f6=_0x2b461e['profiles'][_0x1eb5d3];if(!_0x1a51f6?.[_0xc5471d(0xd5)])return![];const _0x143b8a=deleteByKeyPath(_0x1a51f6['settings'],_0x4d01b6);if(!_0x143b8a)return![];return writeProjectsConfig(_0x2f98d2),!![];}export function resetProfileOverrides(_0x68e033,_0xc075e5){const _0x445f59=_0xe54b,_0x2d3c80={'fEivz':function(_0x5907ce,_0x58a7e2){return _0x5907ce in _0x58a7e2;},'gISsc':function(_0x545b97,_0x259776){return _0x545b97===_0x259776;}},_0x4ae00b=readProjectsConfig(),_0x2baaac=_0x4ae00b[_0x445f59(0xea)][_0x68e033];if(!_0x2baaac?.['profiles'])return;if(!_0x2d3c80['fEivz'](_0xc075e5,_0x2baaac[_0x445f59(0xf0)]))return;delete _0x2baaac['profiles'][_0xc075e5],_0x2d3c80[_0x445f59(0xdd)](Object[_0x445f59(0xf4)](_0x2baaac['profiles'])[_0x445f59(0xd1)],0x0)&&(!_0x2baaac[_0x445f59(0xec)]?delete _0x4ae00b[_0x445f59(0xea)][_0x68e033]:_0x2baaac['profiles']={}),writeProjectsConfig(_0x4ae00b);}export function readLastProfile(_0x182e06){const _0x41acc0=readProjectsConfig(),_0x302bec=_0x41acc0['projects'][_0x182e06];return _0x302bec?.['lastProfile']??null;}export function writeLastProfile(_0xb27c53,_0x4fb1d1){const _0x249c36=_0xe54b,_0x23b187={'IYlAI':function(_0x539259){return _0x539259();}},_0x4adc33=_0x23b187[_0x249c36(0xe6)](readProjectsConfig),_0x1bd338=_0x4adc33[_0x249c36(0xea)][_0xb27c53]??={};_0x1bd338['lastProfile']=_0x4fb1d1,writeProjectsConfig(_0x4adc33);}export function clearLastProfile(_0x1af2d0,_0x414b97){const _0x1cb54a=_0xe54b,_0x4cd348={'OAWBB':function(_0x29267d,_0xc7fcf5){return _0x29267d===_0xc7fcf5;}},_0x475157=readProjectsConfig(),_0x37bfbd=_0x475157['projects'][_0x1af2d0];if(!_0x37bfbd||_0x37bfbd[_0x1cb54a(0xec)]!==_0x414b97)return![];return delete _0x37bfbd[_0x1cb54a(0xec)],(!_0x37bfbd['profiles']||_0x4cd348['OAWBB'](Object[_0x1cb54a(0xf4)](_0x37bfbd[_0x1cb54a(0xf0)])[_0x1cb54a(0xd1)],0x0))&&delete _0x475157[_0x1cb54a(0xea)][_0x1af2d0],writeProjectsConfig(_0x475157),!![];}export function mergeCloudProfileSettings(_0x56dc12,_0x2a1946){const _0x3cc0a0=_0xe54b,_0x3adc1f={'SmZAo':function(_0x3dae7b,_0x41f5f1){return _0x3dae7b??_0x41f5f1;},'TyImz':function(_0x30010b,_0x17379c){return _0x30010b===_0x17379c;},'hRDhp':'headers','rMjfL':function(_0x16e39f,_0x773d46){return _0x16e39f!==_0x773d46;}},_0x1c54dc={..._0x3adc1f['SmZAo'](_0x56dc12,{})};if(!_0x2a1946)return _0x1c54dc;for(const [_0x5969bc,_0x1662b4]of Object['entries'](_0x2a1946)){if(_0x1662b4===undefined)continue;if(_0x3adc1f['TyImz'](_0x1662b4,null)){delete _0x1c54dc[_0x5969bc];continue;}if(_0x5969bc===_0x3adc1f[_0x3cc0a0(0xde)]||_0x3adc1f[_0x3cc0a0(0xe1)](_0x5969bc,'setupHeaders')){const _0x418e97=asRecord(_0x1c54dc[_0x5969bc])??{},_0x89145b=asRecord(_0x1662b4);if(!_0x89145b){_0x1c54dc[_0x5969bc]=_0x1662b4;continue;}const _0x416396={..._0x418e97};for(const [_0x5637ce,_0x9c2954]of Object[_0x3cc0a0(0xd3)](_0x89145b)){if(_0x9c2954===null)delete _0x416396[_0x5637ce];else _0x3adc1f[_0x3cc0a0(0xe8)](_0x9c2954,undefined)&&(_0x416396[_0x5637ce]=_0x9c2954);}_0x1c54dc[_0x5969bc]=_0x416396;continue;}_0x1c54dc[_0x5969bc]=_0x1662b4;}return _0x1c54dc;}function asRecord(_0x9670ba){const _0x563451=_0xe54b,_0x3ca15e={'sscxF':'object'};return _0x9670ba&&typeof _0x9670ba===_0x3ca15e[_0x563451(0xdc)]&&!Array[_0x563451(0xf1)](_0x9670ba)?_0x9670ba:undefined;}function _0xc299(){const _0x268a35=['291196xKbwbH','21HJptcU','QKzWg','5128250yzQtNV','IYlAI','126054zAgNJs','rMjfL','CKtLN','projects','.tmp','lastProfile','object','message','1749303JKWxlZ','profiles','isArray','94uUiomr','THEoq','keys','115wrouFw','oBdsT','6522nkWLiz','45736auvRSW','keyPath\x20is\x20required','length','uhDKx','entries','ndUjg','settings','warn','661myFYuh','YBPdl','projects.json','KvUvz','sGotD','sscxF','gISsc','hRDhp','wkbRw','[ranger]\x20Warning:\x20failed\x20to\x20read\x20','TyImz'];_0xc299=function(){return _0x268a35;};return _0xc299();}function setByKeyPath(_0x5331c1,_0x1efcc2,_0x9e83fd){const _0x1dcbaa=_0xe54b,_0x261d15={'IzfKF':function(_0xd9636e,_0x9f02d1){return _0xd9636e<_0x9f02d1;},'tVpsO':function(_0x22e5b9,_0x426b55){return _0x22e5b9!==_0x426b55;},'wkbRw':_0x1dcbaa(0xed)},_0x23bfaf=_0x1efcc2['split']('.');let _0x402841=_0x5331c1;for(let _0x1a4223=0x0;_0x261d15['IzfKF'](_0x1a4223,_0x23bfaf['length']-0x1);_0x1a4223++){const _0x2ce70b=_0x23bfaf[_0x1a4223],_0x41ae6b=_0x402841[_0x2ce70b];(!_0x41ae6b||_0x261d15['tVpsO'](typeof _0x41ae6b,_0x261d15[_0x1dcbaa(0xdf)])||Array[_0x1dcbaa(0xf1)](_0x41ae6b))&&(_0x402841[_0x2ce70b]={}),_0x402841=_0x402841[_0x2ce70b];}_0x402841[_0x23bfaf[_0x23bfaf['length']-0x1]]=_0x9e83fd;}function deleteByKeyPath(_0xde5a98,_0x3d3feb){const _0x2395ad=_0xe54b,_0x3eb867={'ndUjg':'object','YBPdl':function(_0x1112c9,_0x5bc65e){return _0x1112c9 in _0x5bc65e;}},_0x176796=_0x3d3feb['split']('.');let _0x371092=_0xde5a98;for(let _0x3cc836=0x0;_0x3cc836<_0x176796['length']-0x1;_0x3cc836++){const _0x4fc619=_0x176796[_0x3cc836],_0x56223d=_0x371092[_0x4fc619];if(!_0x56223d||typeof _0x56223d!==_0x3eb867[_0x2395ad(0xd4)]||Array['isArray'](_0x56223d))return![];_0x371092=_0x56223d;}const _0x4c227c=_0x176796[_0x176796['length']-0x1];if(!_0x3eb867[_0x2395ad(0xd8)](_0x4c227c,_0x371092))return![];return delete _0x371092[_0x4c227c],!![];}
@@ -1 +1 @@
1
- (function(_0x4d0b59,_0x53106e){const _0x14a9bf=_0x4eda,_0x4b6463=_0x4d0b59();while(!![]){try{const _0x25b0a7=-parseInt(_0x14a9bf(0x82))/0x1*(parseInt(_0x14a9bf(0x78))/0x2)+parseInt(_0x14a9bf(0x79))/0x3*(parseInt(_0x14a9bf(0x76))/0x4)+-parseInt(_0x14a9bf(0x8c))/0x5*(-parseInt(_0x14a9bf(0x77))/0x6)+-parseInt(_0x14a9bf(0x7c))/0x7+-parseInt(_0x14a9bf(0x86))/0x8*(parseInt(_0x14a9bf(0x81))/0x9)+-parseInt(_0x14a9bf(0x85))/0xa*(parseInt(_0x14a9bf(0x7f))/0xb)+-parseInt(_0x14a9bf(0x84))/0xc*(-parseInt(_0x14a9bf(0x8a))/0xd);if(_0x25b0a7===_0x53106e)break;else _0x4b6463['push'](_0x4b6463['shift']());}catch(_0xa368b0){_0x4b6463['push'](_0x4b6463['shift']());}}}(_0x38b2,0x63103));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';function _0x38b2(){const _0xec61d5=['otfqc','15QEpBKe','model','27460augJRr','195942JIWOTD','2qdkpkw','30YlDyzZ','object','warn','4940313ipvNKS','IEuon','string','132auPfdE','parse','361728tXttHi','102356nwxbOR','NRWbx','108MmAjYN','510110mQqhWc','56xFNPmy','isArray','QtznF','Ulppm','2803281qmcaEF'];_0x38b2=function(){return _0xec61d5;};return _0x38b2();}import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0xcc0ff8=_0x4eda,_0x1ab11c={'IEuon':function(_0x4d0e72,_0x28a5b7,_0x41aa11){return _0x4d0e72(_0x28a5b7,_0x41aa11);},'VCskG':function(_0x53b8ab){return _0x53b8ab();},'kGBcm':'config.json'};return _0x1ab11c[_0xcc0ff8(0x7d)](join,_0x1ab11c['VCskG'](getRangerDir),_0x1ab11c['kGBcm']);}function _0x4eda(_0x1b799e,_0x42ff48){_0x1b799e=_0x1b799e-0x76;const _0x38b250=_0x38b2();let _0x4eda2f=_0x38b250[_0x1b799e];return _0x4eda2f;}export async function loadRangerConfig(){const _0x5918a6=_0x4eda,_0x3c60a3={'fdrdC':function(_0x2054d5){return _0x2054d5();},'QtznF':function(_0xb026bf,_0x32de99){return _0xb026bf(_0x32de99);},'otfqc':function(_0x155f83,_0x5a5f4f,_0x43c372){return _0x155f83(_0x5a5f4f,_0x43c372);},'NRWbx':'utf-8','feSnB':_0x5918a6(0x7a),'Ulppm':function(_0x31f611,_0x3f6fda){return _0x31f611 instanceof _0x3f6fda;},'aKfuz':function(_0x182a3f,_0x1dc106){return _0x182a3f(_0x1dc106);}},_0x344679=_0x3c60a3['fdrdC'](getRangerConfigPath);if(!_0x3c60a3[_0x5918a6(0x88)](existsSync,_0x344679))return{};try{const _0x9c15ba=await _0x3c60a3[_0x5918a6(0x8b)](readFile,_0x344679,_0x3c60a3[_0x5918a6(0x83)]),_0xe1fb04=JSON[_0x5918a6(0x80)](_0x9c15ba);if(!_0xe1fb04||typeof _0xe1fb04!==_0x3c60a3['feSnB']||Array[_0x5918a6(0x87)](_0xe1fb04))return{};const _0x22bad9={},_0x187100=_0xe1fb04['model'];return typeof _0x187100===_0x5918a6(0x7e)&&(_0x22bad9[_0x5918a6(0x8d)]=_0x187100),_0x22bad9;}catch(_0x41000d){const _0x1db9f2=_0x3c60a3[_0x5918a6(0x89)](_0x41000d,Error)?_0x41000d['message']:_0x3c60a3['aKfuz'](String,_0x41000d);return console[_0x5918a6(0x7b)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x344679+':\x20'+_0x1db9f2),{};}}
1
+ (function(_0x425c2f,_0x1ead7f){const _0x142cd3=_0x3c4b,_0x4978b3=_0x425c2f();while(!![]){try{const _0x3a9562=-parseInt(_0x142cd3(0xd3))/0x1+-parseInt(_0x142cd3(0xce))/0x2+-parseInt(_0x142cd3(0xdc))/0x3*(-parseInt(_0x142cd3(0xd6))/0x4)+parseInt(_0x142cd3(0xd1))/0x5+parseInt(_0x142cd3(0xd0))/0x6*(-parseInt(_0x142cd3(0xd5))/0x7)+-parseInt(_0x142cd3(0xdb))/0x8+parseInt(_0x142cd3(0xd7))/0x9;if(_0x3a9562===_0x1ead7f)break;else _0x4978b3['push'](_0x4978b3['shift']());}catch(_0x1acf58){_0x4978b3['push'](_0x4978b3['shift']());}}}(_0x15d7,0xd4a32));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';function _0x15d7(){const _0x1a178a=['message','3584105djScXT','4nuBDWa','13163436AOqkVc','wxXCP','string','config.json','117192CMaXuD','4926246QgurFJ','warn','811686qrrBJB','model','18KVPdzZ','3482495xofFbR','object','973686Fvdont'];_0x15d7=function(){return _0x1a178a;};return _0x15d7();}import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x16e6d7=_0x3c4b,_0x4c7323={'WjDZq':_0x16e6d7(0xda)};return join(getRangerDir(),_0x4c7323['WjDZq']);}function _0x3c4b(_0x489506,_0x29664b){_0x489506=_0x489506-0xce;const _0x15d7d5=_0x15d7();let _0x3c4bfc=_0x15d7d5[_0x489506];return _0x3c4bfc;}export async function loadRangerConfig(){const _0x24d33b=_0x3c4b,_0x27a8c3={'SDLEn':function(_0x90d52f){return _0x90d52f();},'vnZxK':function(_0x3b4564,_0x16ea6d){return _0x3b4564(_0x16ea6d);},'hsvSE':function(_0x2924ec,_0x2cff9a,_0x4f8ba4){return _0x2924ec(_0x2cff9a,_0x4f8ba4);},'wxXCP':function(_0x319c47,_0x386e44){return _0x319c47===_0x386e44;},'qPmsN':_0x24d33b(0xd9),'eATDp':function(_0x3d27c7,_0x5a8cd9){return _0x3d27c7 instanceof _0x5a8cd9;}},_0x3093ee=_0x27a8c3['SDLEn'](getRangerConfigPath);if(!_0x27a8c3['vnZxK'](existsSync,_0x3093ee))return{};try{const _0x48f586=await _0x27a8c3['hsvSE'](readFile,_0x3093ee,'utf-8'),_0x5467d9=JSON['parse'](_0x48f586);if(!_0x5467d9||typeof _0x5467d9!==_0x24d33b(0xd2)||Array['isArray'](_0x5467d9))return{};const _0x2515d0={},_0x27a4dd=_0x5467d9['model'];return _0x27a8c3[_0x24d33b(0xd8)](typeof _0x27a4dd,_0x27a8c3['qPmsN'])&&(_0x2515d0[_0x24d33b(0xcf)]=_0x27a4dd),_0x2515d0;}catch(_0x15bf20){const _0x113eb5=_0x27a8c3['eATDp'](_0x15bf20,Error)?_0x15bf20[_0x24d33b(0xd4)]:_0x27a8c3['vnZxK'](String,_0x15bf20);return console[_0x24d33b(0xdd)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x3093ee+':\x20'+_0x113eb5),{};}}
@@ -1 +1 @@
1
- (function(_0x12cb47,_0x39d0ca){const _0x2798dd=_0x21b8,_0x5b7be=_0x12cb47();while(!![]){try{const _0x103fab=-parseInt(_0x2798dd(0x10b))/0x1*(-parseInt(_0x2798dd(0x11d))/0x2)+parseInt(_0x2798dd(0x111))/0x3+parseInt(_0x2798dd(0x10d))/0x4*(-parseInt(_0x2798dd(0x115))/0x5)+-parseInt(_0x2798dd(0x117))/0x6*(-parseInt(_0x2798dd(0x118))/0x7)+parseInt(_0x2798dd(0x10f))/0x8*(parseInt(_0x2798dd(0x11a))/0x9)+-parseInt(_0x2798dd(0x10a))/0xa+parseInt(_0x2798dd(0x113))/0xb*(-parseInt(_0x2798dd(0x112))/0xc);if(_0x103fab===_0x39d0ca)break;else _0x5b7be['push'](_0x5b7be['shift']());}catch(_0x3a7fda){_0x5b7be['push'](_0x5b7be['shift']());}}}(_0x2a92,0x65132));function _0x21b8(_0x366c3d,_0x21108f){_0x366c3d=_0x366c3d-0x10a;const _0x2a9249=_0x2a92();let _0x21b8b4=_0x2a9249[_0x366c3d];return _0x21b8b4;}import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x3339d1=_0x21b8,_0x57869b={'ICpKP':function(_0x5931b0,_0x2d4d0d){return _0x5931b0(_0x2d4d0d);},'pjwpx':function(_0x242e3e,_0x5b138c){return _0x242e3e!==_0x5b138c;},'NYvwP':function(_0x367cdc,_0x1b4689){return _0x367cdc(_0x1b4689);},'efOkS':function(_0x4d1475,_0x1c2bb9){return _0x4d1475(_0x1c2bb9);},'MtWVa':function(_0x4d523b,_0x37a634,_0x29eb32){return _0x4d523b(_0x37a634,_0x29eb32);}};let _0x683972=process[_0x3339d1(0x120)]();const _0x374d68=_0x57869b['ICpKP'](parse,_0x683972)['root'];while(_0x57869b[_0x3339d1(0x10c)](_0x683972,_0x374d68)){if(_0x57869b[_0x3339d1(0x119)](existsSync,join(_0x683972,'.ranger')))return _0x683972;_0x683972=_0x57869b[_0x3339d1(0x11f)](dirname,_0x683972);}if(existsSync(_0x57869b['MtWVa'](join,_0x374d68,_0x3339d1(0x11c))))return _0x374d68;const _0x36bc6c=findGitRoot();if(_0x36bc6c)return _0x36bc6c;return process[_0x3339d1(0x120)]();}export function getRangerDir(){const _0x28dd04=_0x21b8,_0x409654={'htOZW':function(_0x4da880,_0x29b87f,_0x2d3929){return _0x4da880(_0x29b87f,_0x2d3929);}};return _0x409654[_0x28dd04(0x11b)](join,getRangerRoot(),'.ranger');}export function findGitRoot(){const _0x1ab37e=_0x21b8,_0x45c36d={'pIIEI':function(_0x34608f,_0x12a5f1){return _0x34608f!==_0x12a5f1;},'vpILD':function(_0x26e0c8,_0x274ccd){return _0x26e0c8(_0x274ccd);},'cwkpL':_0x1ab37e(0x116),'lrFgT':function(_0x49e9e6,_0x415aad,_0x193c13){return _0x49e9e6(_0x415aad,_0x193c13);}};let _0x3ee48b=process[_0x1ab37e(0x120)]();const _0xadd66f=parse(_0x3ee48b)[_0x1ab37e(0x11e)];while(_0x45c36d['pIIEI'](_0x3ee48b,_0xadd66f)){if(_0x45c36d['vpILD'](existsSync,join(_0x3ee48b,_0x45c36d['cwkpL'])))return _0x3ee48b;_0x3ee48b=_0x45c36d['vpILD'](dirname,_0x3ee48b);}if(_0x45c36d['vpILD'](existsSync,_0x45c36d[_0x1ab37e(0x10e)](join,_0xadd66f,_0x1ab37e(0x116))))return _0xadd66f;return null;}export function getRangerHomeDir(){const _0x11f341=_0x21b8,_0x58cc1e={'sztsZ':function(_0x2881cc,_0x3dc23b,_0x18cb51){return _0x2881cc(_0x3dc23b,_0x18cb51);},'KwTdP':function(_0x100c1c){return _0x100c1c();},'xTjiC':'.ranger'};return _0x58cc1e[_0x11f341(0x110)](join,_0x58cc1e['KwTdP'](homedir),_0x58cc1e[_0x11f341(0x114)]);}function _0x2a92(){const _0x58b9b4=['7GkzTJL','NYvwP','3630051dnBJbx','htOZW','.ranger','4anocvi','root','efOkS','cwd','7136750AwIYgI','11787MGsSJC','pjwpx','12PZguRv','lrFgT','16DsOmWa','sztsZ','650850dTimqs','4908LfvbVB','5797dFrMri','xTjiC','431435WrPAgL','.git','3329274DiUTYS'];_0x2a92=function(){return _0x58b9b4;};return _0x2a92();}
1
+ (function(_0x27cf3f,_0x541d56){const _0x406cac=_0x4c87,_0x59da09=_0x27cf3f();while(!![]){try{const _0xdca87d=parseInt(_0x406cac(0x15a))/0x1*(parseInt(_0x406cac(0x159))/0x2)+parseInt(_0x406cac(0x157))/0x3*(-parseInt(_0x406cac(0x150))/0x4)+-parseInt(_0x406cac(0x156))/0x5+parseInt(_0x406cac(0x14d))/0x6+parseInt(_0x406cac(0x151))/0x7+parseInt(_0x406cac(0x155))/0x8*(-parseInt(_0x406cac(0x14e))/0x9)+-parseInt(_0x406cac(0x14f))/0xa*(parseInt(_0x406cac(0x152))/0xb);if(_0xdca87d===_0x541d56)break;else _0x59da09['push'](_0x59da09['shift']());}catch(_0x47991a){_0x59da09['push'](_0x59da09['shift']());}}}(_0x3adc,0xd555a));function _0x3adc(){const _0x3969f5=['root','6026224gTCWTq','224205zqohBR','13422Zpdclp','.ranger','166274rovlxc','12DHDptr','CNWBF','.git','GwoPG','ZgccC','7049400IETMuc','9Eeqsfm','850UcdZUd','12iuJNTX','5821130uxFAgy','170665SaqEYT','cwd'];_0x3adc=function(){return _0x3969f5;};return _0x3adc();}import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';function _0x4c87(_0x3838bf,_0xac84eb){_0x3838bf=_0x3838bf-0x14b;const _0x3adc07=_0x3adc();let _0x4c8738=_0x3adc07[_0x3838bf];return _0x4c8738;}export function getRangerRoot(){const _0x5314e3=_0x4c87,_0x9f070e={'YlSxG':function(_0x274e85,_0x70809c){return _0x274e85(_0x70809c);},'ZgccC':function(_0x41702c,_0x3120b0){return _0x41702c!==_0x3120b0;}};let _0x345126=process[_0x5314e3(0x153)]();const _0x353e64=_0x9f070e['YlSxG'](parse,_0x345126)[_0x5314e3(0x154)];while(_0x9f070e[_0x5314e3(0x14c)](_0x345126,_0x353e64)){if(existsSync(join(_0x345126,_0x5314e3(0x158))))return _0x345126;_0x345126=_0x9f070e['YlSxG'](dirname,_0x345126);}if(existsSync(join(_0x353e64,'.ranger')))return _0x353e64;const _0x3d85a4=findGitRoot();if(_0x3d85a4)return _0x3d85a4;return process[_0x5314e3(0x153)]();}export function getRangerDir(){const _0xa2c102=_0x4c87,_0x507f6b={'NDUst':function(_0x7d9835,_0x33f2aa,_0x1f9d0b){return _0x7d9835(_0x33f2aa,_0x1f9d0b);},'GwoPG':_0xa2c102(0x158)};return _0x507f6b['NDUst'](join,getRangerRoot(),_0x507f6b[_0xa2c102(0x14b)]);}export function findGitRoot(){const _0xfb9a62=_0x4c87,_0x3ca8ab={'CNWBF':function(_0x2bea15,_0x17f787){return _0x2bea15(_0x17f787);},'JUksZ':function(_0x5404f0,_0x109a4a,_0x32a451){return _0x5404f0(_0x109a4a,_0x32a451);}};let _0x6388d8=process['cwd']();const _0xa1d323=_0x3ca8ab[_0xfb9a62(0x15b)](parse,_0x6388d8)[_0xfb9a62(0x154)];while(_0x6388d8!==_0xa1d323){if(existsSync(join(_0x6388d8,'.git')))return _0x6388d8;_0x6388d8=dirname(_0x6388d8);}if(_0x3ca8ab[_0xfb9a62(0x15b)](existsSync,_0x3ca8ab['JUksZ'](join,_0xa1d323,_0xfb9a62(0x15c))))return _0xa1d323;return null;}export function getRangerHomeDir(){const _0x375f2a={'Glqhs':function(_0x42a9ef,_0x104f2b,_0x1ff769){return _0x42a9ef(_0x104f2b,_0x1ff769);},'XgDRK':function(_0x11fed6){return _0x11fed6();}};return _0x375f2a['Glqhs'](join,_0x375f2a['XgDRK'](homedir),'.ranger');}
@@ -1 +1 @@
1
- (function(_0x5ad11e,_0xaf4b54){const _0x3173f0=_0x19e5,_0x1114b2=_0x5ad11e();while(!![]){try{const _0x2027aa=parseInt(_0x3173f0(0x8c))/0x1*(-parseInt(_0x3173f0(0xa8))/0x2)+-parseInt(_0x3173f0(0xa7))/0x3+parseInt(_0x3173f0(0xb0))/0x4+parseInt(_0x3173f0(0x92))/0x5*(parseInt(_0x3173f0(0x9b))/0x6)+parseInt(_0x3173f0(0x96))/0x7*(parseInt(_0x3173f0(0xa3))/0x8)+parseInt(_0x3173f0(0x90))/0x9+parseInt(_0x3173f0(0xab))/0xa;if(_0x2027aa===_0xaf4b54)break;else _0x1114b2['push'](_0x1114b2['shift']());}catch(_0x167d92){_0x1114b2['push'](_0x1114b2['shift']());}}}(_0x65e5,0x3a888));import{existsSync}from'fs';import _0x564b62 from'inquirer';import{ApiError,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';function _0x65e5(){const _0x46ea6b=['48252uBGFFO','log','status','qcvXa','GPLtI','ZDruz','qHOVv','profile','56DdYrcl','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','RANGER_SESSION_STATE_PATH','936576vcIMHC','100WZFAYd','string','prompt','1237640Wwfcth','length','`ranger\x20profile\x20add`\x20to\x20create\x20one.','cCmra','\x20does\x20not\x20exist.','224756LIjJOO','muogm','cdpEndpoint','baseUrl','name','Local\x20profile','TbrJi','7117XIPSGY','resolvedEnv','iwsDR','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','214326NgWeun','list','200BeYhmS','startPath','domains','Profile\x20\x22','382347SMIiRV','ilQdA','settings','pIyAE','env'];_0x65e5=function(){return _0x46ea6b;};return _0x65e5();}import{isInteractive}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';function _0x19e5(_0x1e0140,_0x4ac6c4){_0x1e0140=_0x1e0140-0x88;const _0x65e579=_0x65e5();let _0x19e558=_0x65e579[_0x1e0140];return _0x19e558;}import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x5beffe){const _0x1bedd9=_0x19e5,_0x9dceb1={'yoKwc':function(_0x6c5d3f){return _0x6c5d3f();},'RAPcF':function(_0x47c185,_0x10d468){return _0x47c185===_0x10d468;},'GPLtI':function(_0x148666,_0x54ae64){return _0x148666+_0x54ae64;},'cCmra':'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','ZDruz':function(_0x2d3715,_0x45c67b){return _0x2d3715(_0x45c67b);},'muogm':function(_0x162ce8,_0x111a9f){return _0x162ce8&&_0x111a9f;},'DXcGy':'source','TbrJi':'cloud','VpuMj':function(_0x5ef1f8,_0x376323,_0x30a494){return _0x5ef1f8(_0x376323,_0x30a494);},'RKfro':function(_0x562c9b,_0x80b106){return _0x562c9b??_0x80b106;},'lyqgE':function(_0x3fb142,_0x3b1ae2){return _0x3fb142(_0x3b1ae2);},'qcvXa':function(_0x3accbf,_0xd6d27d){return _0x3accbf(_0xd6d27d);},'qHOVv':function(_0x409779){return _0x409779();},'orjrc':function(_0x170557,_0x1f75e4){return _0x170557(_0x1f75e4);}},_0x19e6e0=_0x5beffe[_0x1bedd9(0xa2)];let _0xef695f=_0x5beffe[_0x1bedd9(0xa2)]??await readActiveProfileName(),_0x4ece0a=null;if(!_0xef695f&&process['env']['RANGER_TEST_USERNAME']){const _0x2a2b47=await resolveAdHocProfile();_0x2a2b47&&(_0xef695f=_0x2a2b47['name'],_0x4ece0a=_0x2a2b47['profile']);}if(!_0xef695f)try{const _0x5a85ca=await _0x9dceb1['yoKwc'](listCloudProfiles);if(_0x9dceb1['RAPcF'](_0x5a85ca[_0x1bedd9(0xac)],0x1)){const _0x515176=_0x5a85ca[0x0];_0xef695f=_0x515176['name'],console[_0x1bedd9(0x9c)](_0x1bedd9(0x8f)+_0x515176[_0x1bedd9(0x89)]),console['log']('\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)');}}catch{}if(!_0xef695f)throw new Error(_0x9dceb1['GPLtI'](_0x9dceb1[_0x1bedd9(0x9f)](_0x9dceb1[_0x1bedd9(0x9f)](_0x9dceb1[_0x1bedd9(0xae)]+'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a'),'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a'),'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.'));const _0x32f774=getEnvDir(_0xef695f),_0x44fcef=_0x9dceb1[_0x1bedd9(0xa0)](existsSync,_0x32f774);let _0x1b2e40=_0x4ece0a,_0x1a9d79=![];if(!_0x1b2e40)try{_0x1b2e40=await fetchCloudProfile(_0xef695f);if(!_0x1b2e40)_0x1a9d79=!![];}catch(_0x5042ff){_0x5042ff instanceof ApiError&&_0x5042ff[_0x1bedd9(0x9d)]===0x194&&(_0x1a9d79=!![]);}if(_0x19e6e0&&_0x1a9d79&&!_0x44fcef&&!_0x1b2e40)throw new Error('Profile\x20\x22'+_0x19e6e0+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a'+_0x1bedd9(0xa4)+_0x1bedd9(0xad));if(_0x9dceb1[_0x1bedd9(0xb1)](_0x1b2e40,_0x44fcef)){let _0x1fab48=!![];if(isInteractive()){const {source:_0x2bfca0}=await _0x564b62[_0x1bedd9(0xaa)]([{'type':_0x1bedd9(0x91),'name':_0x9dceb1['DXcGy'],'message':_0x1bedd9(0x95)+_0xef695f+'\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','choices':[{'name':'Cloud\x20profile\x20(recommended)','value':'cloud'},{'name':_0x1bedd9(0x8a),'value':'local'}],'default':_0x9dceb1[_0x1bedd9(0x8b)]}]);_0x1fab48=_0x9dceb1['RAPcF'](_0x2bfca0,'cloud');}if(!_0x1fab48)_0x1b2e40=null;}const _0x304613=_0x9dceb1['VpuMj'](readProfileOverrides,process['cwd'](),_0xef695f);let _0x5a71d1=null,_0x1d960f,_0x3a5bca,_0x35cf1c,_0x40cfa0,_0x3a1447=null,_0x2f43e2;const _0x20cad3=_0x9dceb1['ZDruz'](expandOverrides,_0x304613);if(_0x1b2e40){_0x5a71d1=_0x1b2e40;const _0x4f8eaa=_0x1b2e40[_0x1bedd9(0x98)]??{},_0x3183e3=mergeCloudProfileSettings(_0x4f8eaa,_0x9dceb1['RKfro'](_0x304613,undefined)),_0x2ab220={..._0x1b2e40,'settings':_0x3183e3},_0x1752d4=process[_0x1bedd9(0x9a)][_0x1bedd9(0xa6)];if(_0x1752d4){if(!existsSync(_0x1752d4))throw new Error('RANGER_SESSION_STATE_PATH='+_0x1752d4+_0x1bedd9(0xaf));_0x1d960f=_0x1752d4,_0x3a5bca=resolveEnvVars(_0x3183e3),_0x35cf1c=Boolean(_0x3a5bca['cdpEndpoint']),_0x3a1447={'baseUrl':expandString(_0x4f8eaa[_0x1bedd9(0x88)]),'startPath':expandString(_0x4f8eaa[_0x1bedd9(0x93)])};}else{const _0xbb03f0=await _0x9dceb1['lyqgE'](resolveCloudProfileSession,_0x2ab220);_0x1d960f=_0xbb03f0['authPath'],_0x3a5bca=resolveEnvVars(_0x3183e3),_0x35cf1c=_0x9dceb1[_0x1bedd9(0x9e)](Boolean,_0x3a5bca[_0x1bedd9(0xb2)]),_0x3a1447={'baseUrl':expandString(_0x4f8eaa[_0x1bedd9(0x88)]),'startPath':expandString(_0x4f8eaa[_0x1bedd9(0x93)])},_0x2f43e2=_0xbb03f0[_0x1bedd9(0x8d)]?.[_0x1bedd9(0x94)]?.[0x0];}}else{if(!_0x44fcef)throw new Error('Profile\x20\x22'+_0xef695f+'\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20'+_0xef695f);const _0x4413bd=await loadSettings(_0xef695f);_0x3a5bca=resolveEnvVars(_0x4413bd),_0x35cf1c=_0x9dceb1[_0x1bedd9(0x9e)](Boolean,_0x3a5bca['cdpEndpoint']),_0x40cfa0=_0x3a5bca[_0x1bedd9(0x88)];}const _0x59a04e=_0x9dceb1[_0x1bedd9(0xa1)](readUrlEnvVars),_0x3872af=_0x9dceb1['orjrc'](resolveProfileUrl,{'flagBaseUrl':_0x5beffe[_0x1bedd9(0x88)],'flagStartPath':_0x5beffe['startPath'],'envBaseUrl':_0x59a04e['envBaseUrl'],'envStartPath':_0x59a04e['envStartPath'],'localSettingsBaseUrl':_0x40cfa0,'projectOverrides':_0x20cad3,'cloudSettings':_0x3a1447,'authEnvironmentDomain':_0x2f43e2}),_0x19d60b=_0x3872af['url']??_0x3872af['baseUrl'];if(_0x9dceb1[_0x1bedd9(0xb1)](!_0x19d60b,!_0x35cf1c))throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0xef695f+_0x1bedd9(0xa5)+_0xef695f+'\x20baseUrl\x20<url>');return{'activeProfile':_0xef695f,'resolvedCloudProfile':_0x5a71d1,'cloudAuthPath':_0x1d960f,'resolvedSettings':_0x3a5bca,'isCdpMode':_0x35cf1c,'url':_0x19d60b,'startPath':_0x3872af['startPath']};}function expandString(_0x5e3a6e){const _0x68c5de=_0x19e5,_0x5beade={'iwsDR':function(_0x17d635,_0x2827dd){return _0x17d635!==_0x2827dd;}};if(_0x5beade[_0x68c5de(0x8e)](typeof _0x5e3a6e,'string'))return _0x5e3a6e;return resolveEnvVars(_0x5e3a6e);}function expandOverrides(_0x6cbf89){const _0x3a1dc8=_0x19e5,_0x5adf33={'ilQdA':'string','ubxXV':function(_0x4740e9,_0x549fbb){return _0x4740e9(_0x549fbb);},'pIyAE':function(_0xfe5187,_0x374828){return _0xfe5187(_0x374828);}};if(!_0x6cbf89)return _0x6cbf89;const _0x5b993a={..._0x6cbf89};return typeof _0x5b993a[_0x3a1dc8(0x88)]===_0x5adf33[_0x3a1dc8(0x97)]&&(_0x5b993a['baseUrl']=_0x5adf33['ubxXV'](resolveEnvVars,_0x5b993a['baseUrl'])),typeof _0x5b993a[_0x3a1dc8(0x93)]===_0x3a1dc8(0xa9)&&(_0x5b993a[_0x3a1dc8(0x93)]=_0x5adf33[_0x3a1dc8(0x99)](resolveEnvVars,_0x5b993a[_0x3a1dc8(0x93)])),_0x5b993a;}
1
+ (function(_0x266510,_0x2166e4){const _0x368653=_0x15d6,_0x1f2cf2=_0x266510();while(!![]){try{const _0x465a89=parseInt(_0x368653(0xf2))/0x1+-parseInt(_0x368653(0xd9))/0x2*(-parseInt(_0x368653(0xfd))/0x3)+parseInt(_0x368653(0xe0))/0x4*(parseInt(_0x368653(0xf9))/0x5)+-parseInt(_0x368653(0xd6))/0x6*(parseInt(_0x368653(0xe8))/0x7)+-parseInt(_0x368653(0xfa))/0x8*(-parseInt(_0x368653(0x101))/0x9)+-parseInt(_0x368653(0xed))/0xa+-parseInt(_0x368653(0xea))/0xb;if(_0x465a89===_0x2166e4)break;else _0x1f2cf2['push'](_0x1f2cf2['shift']());}catch(_0xc0b1eb){_0x1f2cf2['push'](_0x1f2cf2['shift']());}}}(_0x1505,0x360e7));function _0x1505(){const _0x129512=['\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','status','JAKvf','\x20baseUrl\x20<url>','99165dxVCfz','profile','dTyap','wRrty','MVeHq','RANGER_SESSION_STATE_PATH','Bmcde','61735xdpFUE','89288NJhwTw','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','87495jibOWe','cdpEndpoint','Local\x20profile','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','288LGIEAd','cwd','JnwAz','xVWAg','6RWauxe','OUZiY','aNoyr','10asrnKI','domains','HOBir','baseUrl','\x20does\x20not\x20exist.','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','rXccc','52yXqIHX','Fwbwp','RANGER_TEST_USERNAME','eJPrp','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','startPath','resolvedEnv','string','2700649iWJrcY','`ranger\x20profile\x20add`\x20to\x20create\x20one.','691768qkGZOO','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','local','925430FKEuiF'];_0x1505=function(){return _0x129512;};return _0x1505();}import{existsSync}from'fs';import _0x4f37b9 from'inquirer';import{ApiError,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x38ca91){const _0x4476ea=_0x15d6,_0x29125d={'iDDqP':function(_0x1cd9b){return _0x1cd9b();},'aNoyr':function(_0x1aed59){return _0x1aed59();},'IhiqJ':function(_0x1a6fb6,_0x2d2741){return _0x1a6fb6===_0x2d2741;},'GnDPe':function(_0x3d41a1,_0x1fbc81){return _0x3d41a1+_0x1fbc81;},'IRSMe':function(_0x48fb1c,_0x53c955){return _0x48fb1c+_0x53c955;},'ggOeG':_0x4476ea(0xe4),'Bmcde':_0x4476ea(0xee),'OUZiY':'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','wRrty':function(_0xbf84d6,_0x627484){return _0xbf84d6(_0x627484);},'JnwAz':function(_0x421fc5,_0x419b1c){return _0x421fc5 instanceof _0x419b1c;},'GIZGE':function(_0x436e7f,_0x1ee409){return _0x436e7f&&_0x1ee409;},'WoRtt':function(_0xbaf807,_0x3ba54e){return _0xbaf807&&_0x3ba54e;},'oOsXf':'list','MPvXD':'source','vrxlh':'Cloud\x20profile\x20(recommended)','xVWAg':_0x4476ea(0xec),'HOBir':'cloud','fcVvP':function(_0x3c273b,_0x29befd){return _0x3c273b??_0x29befd;},'Fwbwp':function(_0x2004e3,_0x4eecf9){return _0x2004e3(_0x4eecf9);},'rXccc':function(_0xaa99bd,_0x5d4dcc){return _0xaa99bd(_0x5d4dcc);},'MVeHq':function(_0x4f273d,_0x51485e){return _0x4f273d(_0x51485e);},'dTyap':function(_0x5d8ebf){return _0x5d8ebf();}},_0x2dc565=_0x38ca91[_0x4476ea(0xf3)];let _0x130534=_0x38ca91['profile']??await readActiveProfileName(),_0x2e3dc5=null;if(!_0x130534&&process['env'][_0x4476ea(0xe2)]){const _0xac26b6=await _0x29125d['iDDqP'](resolveAdHocProfile);_0xac26b6&&(_0x130534=_0xac26b6['name'],_0x2e3dc5=_0xac26b6[_0x4476ea(0xf3)]);}if(!_0x130534)try{const _0x23cbff=await _0x29125d[_0x4476ea(0xd8)](listCloudProfiles);if(_0x29125d['IhiqJ'](_0x23cbff['length'],0x1)){const _0x534c1a=_0x23cbff[0x0];_0x130534=_0x534c1a['name'],console['log'](_0x4476ea(0xeb)+_0x534c1a['name']),console['log'](_0x4476ea(0x100));}}catch{}if(!_0x130534)throw new Error(_0x29125d['GnDPe'](_0x29125d['GnDPe'](_0x29125d['IRSMe'](_0x4476ea(0xfb),'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a'),_0x29125d['ggOeG']),_0x29125d[_0x4476ea(0xf8)])+_0x29125d[_0x4476ea(0xd7)]);const _0x5e80a6=getEnvDir(_0x130534),_0x24c81f=existsSync(_0x5e80a6);let _0x5546b8=_0x2e3dc5,_0x14e97f=![];if(!_0x5546b8)try{_0x5546b8=await _0x29125d['wRrty'](fetchCloudProfile,_0x130534);if(!_0x5546b8)_0x14e97f=!![];}catch(_0x9c6fcc){_0x29125d[_0x4476ea(0x103)](_0x9c6fcc,ApiError)&&_0x9c6fcc[_0x4476ea(0xef)]===0x194&&(_0x14e97f=!![]);}if(_0x29125d['GIZGE'](_0x2dc565,_0x14e97f)&&!_0x24c81f&&!_0x5546b8)throw new Error('Profile\x20\x22'+_0x2dc565+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a'+_0x4476ea(0xde)+_0x4476ea(0xe9));if(_0x29125d['WoRtt'](_0x5546b8,_0x24c81f)){let _0xa88eb4=!![];if(_0x29125d['iDDqP'](isInteractive)){const {source:_0x242120}=await _0x4f37b9['prompt']([{'type':_0x29125d['oOsXf'],'name':_0x29125d['MPvXD'],'message':'Profile\x20\x22'+_0x130534+_0x4476ea(0xfc),'choices':[{'name':_0x29125d['vrxlh'],'value':'cloud'},{'name':_0x4476ea(0xff),'value':_0x29125d[_0x4476ea(0xd5)]}],'default':_0x29125d['HOBir']}]);_0xa88eb4=_0x242120===_0x29125d[_0x4476ea(0xdb)];}if(!_0xa88eb4)_0x5546b8=null;}const _0x571090=readProfileOverrides(process[_0x4476ea(0x102)](),_0x130534);let _0x342095=null,_0x4428bb,_0x14ee8e,_0x2d1d0a,_0x25e745,_0x12586b=null,_0x51ee67;const _0x56dbb2=expandOverrides(_0x571090);if(_0x5546b8){_0x342095=_0x5546b8;const _0x112af0=_0x5546b8['settings']??{},_0x3e8658=mergeCloudProfileSettings(_0x112af0,_0x29125d['fcVvP'](_0x571090,undefined)),_0x4e6f0d={..._0x5546b8,'settings':_0x3e8658},_0x1f2adc=process['env'][_0x4476ea(0xf7)];if(_0x1f2adc){if(!existsSync(_0x1f2adc))throw new Error('RANGER_SESSION_STATE_PATH='+_0x1f2adc+_0x4476ea(0xdd));_0x4428bb=_0x1f2adc,_0x14ee8e=_0x29125d[_0x4476ea(0xf5)](resolveEnvVars,_0x3e8658),_0x2d1d0a=Boolean(_0x14ee8e['cdpEndpoint']),_0x12586b={'baseUrl':expandString(_0x112af0['baseUrl']),'startPath':expandString(_0x112af0[_0x4476ea(0xe5)])};}else{const _0x2abaf6=await resolveCloudProfileSession(_0x4e6f0d);_0x4428bb=_0x2abaf6['authPath'],_0x14ee8e=_0x29125d['Fwbwp'](resolveEnvVars,_0x3e8658),_0x2d1d0a=_0x29125d['rXccc'](Boolean,_0x14ee8e['cdpEndpoint']),_0x12586b={'baseUrl':expandString(_0x112af0['baseUrl']),'startPath':_0x29125d[_0x4476ea(0xdf)](expandString,_0x112af0[_0x4476ea(0xe5)])},_0x51ee67=_0x2abaf6[_0x4476ea(0xe6)]?.[_0x4476ea(0xda)]?.[0x0];}}else{if(!_0x24c81f)throw new Error('Profile\x20\x22'+_0x130534+'\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x130534);const _0x2c10c3=await loadSettings(_0x130534);_0x14ee8e=_0x29125d[_0x4476ea(0xf6)](resolveEnvVars,_0x2c10c3),_0x2d1d0a=_0x29125d[_0x4476ea(0xe1)](Boolean,_0x14ee8e[_0x4476ea(0xfe)]),_0x25e745=_0x14ee8e['baseUrl'];}const _0x20afe8=_0x29125d[_0x4476ea(0xf4)](readUrlEnvVars),_0x1f7d3e=resolveProfileUrl({'flagBaseUrl':_0x38ca91[_0x4476ea(0xdc)],'flagStartPath':_0x38ca91[_0x4476ea(0xe5)],'envBaseUrl':_0x20afe8['envBaseUrl'],'envStartPath':_0x20afe8['envStartPath'],'localSettingsBaseUrl':_0x25e745,'projectOverrides':_0x56dbb2,'cloudSettings':_0x12586b,'authEnvironmentDomain':_0x51ee67}),_0x3a7398=_0x1f7d3e['url']??_0x1f7d3e['baseUrl'];if(_0x29125d['GIZGE'](!_0x3a7398,!_0x2d1d0a))throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0x130534+'\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20'+_0x130534+_0x4476ea(0xf1));return{'activeProfile':_0x130534,'resolvedCloudProfile':_0x342095,'cloudAuthPath':_0x4428bb,'resolvedSettings':_0x14ee8e,'isCdpMode':_0x2d1d0a,'url':_0x3a7398,'startPath':_0x1f7d3e['startPath']};}function _0x15d6(_0x202ac3,_0x32e979){_0x202ac3=_0x202ac3-0xd5;const _0x15057c=_0x1505();let _0x15d6ef=_0x15057c[_0x202ac3];return _0x15d6ef;}function expandString(_0x49d3e7){const _0x3ffb03=_0x15d6,_0x1724a4={'oNfsI':function(_0x5b55fd,_0x10751d){return _0x5b55fd!==_0x10751d;},'eJPrp':'string','JAKvf':function(_0x4ebb2b,_0x3021e2){return _0x4ebb2b(_0x3021e2);}};if(_0x1724a4['oNfsI'](typeof _0x49d3e7,_0x1724a4[_0x3ffb03(0xe3)]))return _0x49d3e7;return _0x1724a4[_0x3ffb03(0xf0)](resolveEnvVars,_0x49d3e7);}function expandOverrides(_0x2bcafe){const _0x48595e=_0x15d6,_0x4b9ce9={'NNZrH':_0x48595e(0xe7),'SonET':function(_0x5051a7,_0x24a8c6){return _0x5051a7===_0x24a8c6;}};if(!_0x2bcafe)return _0x2bcafe;const _0x1ba811={..._0x2bcafe};return typeof _0x1ba811['baseUrl']===_0x4b9ce9['NNZrH']&&(_0x1ba811['baseUrl']=resolveEnvVars(_0x1ba811['baseUrl'])),_0x4b9ce9['SonET'](typeof _0x1ba811[_0x48595e(0xe5)],_0x48595e(0xe7))&&(_0x1ba811[_0x48595e(0xe5)]=resolveEnvVars(_0x1ba811['startPath'])),_0x1ba811;}
@@ -1 +1 @@
1
- (function(_0x1c05c3,_0x33d6ff){const _0x59d6e9=_0x1a8d,_0x114a57=_0x1c05c3();while(!![]){try{const _0x374f6d=-parseInt(_0x59d6e9(0x96))/0x1+-parseInt(_0x59d6e9(0xa4))/0x2+-parseInt(_0x59d6e9(0x9d))/0x3*(parseInt(_0x59d6e9(0xa2))/0x4)+-parseInt(_0x59d6e9(0xa7))/0x5+-parseInt(_0x59d6e9(0x99))/0x6+parseInt(_0x59d6e9(0x9a))/0x7*(-parseInt(_0x59d6e9(0x98))/0x8)+parseInt(_0x59d6e9(0xa3))/0x9;if(_0x374f6d===_0x33d6ff)break;else _0x114a57['push'](_0x114a57['shift']());}catch(_0x43c8fa){_0x114a57['push'](_0x114a57['shift']());}}}(_0x2af6,0x59dfb));function firstDefined(..._0x267ea8){for(const _0x321fb9 of _0x267ea8){if(_0x321fb9!==undefined&&_0x321fb9!==null&&_0x321fb9!=='')return _0x321fb9;}return undefined;}function normalizeAuthEnvironmentDomain(_0x247332){if(!_0x247332)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x247332))return _0x247332;return'https://'+_0x247332;}export function resolveBaseUrl(_0x842f75){const _0x30e40e=_0x1a8d,_0x507390={'drAYl':_0x30e40e(0x9c),'rrASf':'string','dWmtz':function(_0x3bf9a,_0x1e6f17){return _0x3bf9a(_0x1e6f17);}},_0x37f847=_0x842f75['projectOverrides'],_0x3979c2=!!_0x37f847&&_0x507390[_0x30e40e(0x9e)]in _0x37f847,_0x4b3443=_0x37f847?.['baseUrl'],_0x26838b=!(_0x3979c2&&_0x4b3443===null);return firstDefined(_0x842f75['flagBaseUrl'],_0x842f75['envBaseUrl'],_0x842f75[_0x30e40e(0x9f)],typeof _0x4b3443===_0x507390['rrASf']?_0x4b3443:undefined,_0x26838b?_0x842f75['cloudSettings']?.['baseUrl']:undefined,_0x26838b?_0x507390['dWmtz'](normalizeAuthEnvironmentDomain,_0x842f75['authEnvironmentDomain']):undefined);}export function resolveStartPath(_0x1d96a3){const _0x518731=_0x1a8d,_0x4c2ebe={'jZAOV':function(_0x11ff56,_0x5d9119){return _0x11ff56 in _0x5d9119;},'zyuFg':'startPath','nbyDI':function(_0x38eeb4,_0x1cbb8a,_0x4ff692,_0x5a2ff2,_0x1de05c){return _0x38eeb4(_0x1cbb8a,_0x4ff692,_0x5a2ff2,_0x1de05c);}},_0x478d1e=_0x1d96a3['projectOverrides'],_0x2229c9=!!_0x478d1e&&_0x4c2ebe[_0x518731(0x9b)](_0x4c2ebe['zyuFg'],_0x478d1e),_0x34d9bd=_0x478d1e?.['startPath'],_0x39935e=!(_0x2229c9&&_0x34d9bd===null);return _0x4c2ebe['nbyDI'](firstDefined,_0x1d96a3['flagStartPath'],_0x1d96a3[_0x518731(0xa5)],typeof _0x34d9bd===_0x518731(0xa1)?_0x34d9bd:undefined,_0x39935e?_0x1d96a3[_0x518731(0x97)]?.[_0x518731(0xa6)]:undefined);}function _0x1a8d(_0x5c01fe,_0x587a28){_0x5c01fe=_0x5c01fe-0x96;const _0x2af67c=_0x2af6();let _0x1a8d2f=_0x2af67c[_0x5c01fe];return _0x1a8d2f;}export function joinBaseAndPath(_0x44c421,_0x5badb4){const _0x4db35b=_0x1a8d;if(!_0x44c421)return undefined;if(!_0x5badb4)return _0x44c421;const _0x2c0189=_0x44c421['endsWith']('/')?_0x44c421['slice'](0x0,-0x1):_0x44c421,_0x5e26ed=_0x5badb4[_0x4db35b(0xa0)]('/')?_0x5badb4:'/'+_0x5badb4;return _0x2c0189+_0x5e26ed;}function _0x2af6(){const _0x16867b=['jZAOV','baseUrl','14631kKyhwG','drAYl','localSettingsBaseUrl','startsWith','string','244fQYLRU','19415835rdnheS','788548XctuMc','envStartPath','startPath','3398450OPKygA','150587oQEXbq','cloudSettings','22072bCCfUh','626178IxaYQq','413ALcNTw'];_0x2af6=function(){return _0x16867b;};return _0x2af6();}export function resolveProfileUrl(_0x2b1e23){const _0x4213b0={'xXDOq':function(_0x3900fe,_0x317eab){return _0x3900fe(_0x317eab);},'kTyqV':function(_0x11eed3,_0x305d46,_0x227fcc){return _0x11eed3(_0x305d46,_0x227fcc);}},_0x4c1632=resolveBaseUrl(_0x2b1e23),_0x34b049=_0x4213b0['xXDOq'](resolveStartPath,_0x2b1e23);return{'baseUrl':_0x4c1632,'startPath':_0x34b049,'url':_0x4213b0['kTyqV'](joinBaseAndPath,_0x4c1632,_0x34b049)};}export function readUrlEnvVars(_0x1c37ad=process['env']){return{'envBaseUrl':_0x1c37ad['RANGER_BASE_URL'],'envStartPath':_0x1c37ad['RANGER_START_PATH']};}
1
+ (function(_0x5a41b4,_0xf7517f){const _0x41c5e7=_0x10ab,_0x90527c=_0x5a41b4();while(!![]){try{const _0x306ea4=parseInt(_0x41c5e7(0x95))/0x1+parseInt(_0x41c5e7(0xa5))/0x2+parseInt(_0x41c5e7(0x97))/0x3+-parseInt(_0x41c5e7(0xa1))/0x4*(parseInt(_0x41c5e7(0xa4))/0x5)+parseInt(_0x41c5e7(0x9e))/0x6+-parseInt(_0x41c5e7(0x94))/0x7*(-parseInt(_0x41c5e7(0x9c))/0x8)+-parseInt(_0x41c5e7(0x9b))/0x9;if(_0x306ea4===_0xf7517f)break;else _0x90527c['push'](_0x90527c['shift']());}catch(_0x2b7028){_0x90527c['push'](_0x90527c['shift']());}}}(_0x4bce,0x846eb));function firstDefined(..._0x341ede){const _0x8b74e1={'PwfZY':function(_0x3d7bc,_0x1d8fca){return _0x3d7bc!==_0x1d8fca;}};for(const _0x45c09d of _0x341ede){if(_0x8b74e1['PwfZY'](_0x45c09d,undefined)&&_0x45c09d!==null&&_0x45c09d!=='')return _0x45c09d;}return undefined;}function normalizeAuthEnvironmentDomain(_0x141b52){if(!_0x141b52)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x141b52))return _0x141b52;return'https://'+_0x141b52;}export function resolveBaseUrl(_0x124dd4){const _0x219fca=_0x10ab,_0x21d265={'hBSIG':function(_0x1e9f0f,_0x1887ea){return _0x1e9f0f in _0x1887ea;},'fQJth':_0x219fca(0x99),'WQFCo':'string','aIWtt':function(_0x3a8c59,_0x3ba5e1){return _0x3a8c59(_0x3ba5e1);}},_0x145a34=_0x124dd4['projectOverrides'],_0x550b3b=!!_0x145a34&&_0x21d265['hBSIG'](_0x21d265['fQJth'],_0x145a34),_0x59a7f8=_0x145a34?.['baseUrl'],_0x118646=!(_0x550b3b&&_0x59a7f8===null);return firstDefined(_0x124dd4['flagBaseUrl'],_0x124dd4['envBaseUrl'],_0x124dd4['localSettingsBaseUrl'],typeof _0x59a7f8===_0x21d265[_0x219fca(0xa0)]?_0x59a7f8:undefined,_0x118646?_0x124dd4['cloudSettings']?.[_0x219fca(0x99)]:undefined,_0x118646?_0x21d265['aIWtt'](normalizeAuthEnvironmentDomain,_0x124dd4[_0x219fca(0x93)]):undefined);}export function resolveStartPath(_0x272a6e){const _0x4b881c=_0x10ab,_0x5e347a={'pYNzz':_0x4b881c(0x9d),'CQdkq':function(_0xc44db1,_0x5416ee){return _0xc44db1===_0x5416ee;},'GOAdJ':function(_0x43eb4e,_0x36b2f,_0x357a99,_0x5d292c,_0x283951){return _0x43eb4e(_0x36b2f,_0x357a99,_0x5d292c,_0x283951);},'UkIUZ':function(_0x2e5ea9,_0x1ec195){return _0x2e5ea9===_0x1ec195;}},_0x59cfd7=_0x272a6e['projectOverrides'],_0x4b9d6a=!!_0x59cfd7&&_0x5e347a['pYNzz']in _0x59cfd7,_0x38bea6=_0x59cfd7?.[_0x4b881c(0x9d)],_0x1ef9e8=!(_0x4b9d6a&&_0x5e347a[_0x4b881c(0xa2)](_0x38bea6,null));return _0x5e347a['GOAdJ'](firstDefined,_0x272a6e['flagStartPath'],_0x272a6e['envStartPath'],_0x5e347a[_0x4b881c(0x9a)](typeof _0x38bea6,_0x4b881c(0x96))?_0x38bea6:undefined,_0x1ef9e8?_0x272a6e['cloudSettings']?.['startPath']:undefined);}function _0x10ab(_0x585ecf,_0x4cb6a3){_0x585ecf=_0x585ecf-0x93;const _0x4bcee2=_0x4bce();let _0x10ab3d=_0x4bcee2[_0x585ecf];return _0x10ab3d;}export function joinBaseAndPath(_0x3c2fae,_0x1e87cf){if(!_0x3c2fae)return undefined;if(!_0x1e87cf)return _0x3c2fae;const _0x2efd08=_0x3c2fae['endsWith']('/')?_0x3c2fae['slice'](0x0,-0x1):_0x3c2fae,_0x4aadc8=_0x1e87cf['startsWith']('/')?_0x1e87cf:'/'+_0x1e87cf;return _0x2efd08+_0x4aadc8;}function _0x4bce(){const _0x4ebe68=['864320WMxKNa','string','2066979CFJScR','ShGQr','baseUrl','UkIUZ','17594541jIPwyn','8bEOiAg','startPath','683688zCPoIz','RANGER_START_PATH','WQFCo','2164zjOZJe','CQdkq','RANGER_BASE_URL','775sCdvmo','1081820QGhpWD','authEnvironmentDomain','2611532cimDjl'];_0x4bce=function(){return _0x4ebe68;};return _0x4bce();}export function resolveProfileUrl(_0x2264d8){const _0x4a5872=_0x10ab,_0x1cac7b={'ShGQr':function(_0x504267,_0x3c964b){return _0x504267(_0x3c964b);}},_0x152050=_0x1cac7b[_0x4a5872(0x98)](resolveBaseUrl,_0x2264d8),_0x86fb8c=_0x1cac7b['ShGQr'](resolveStartPath,_0x2264d8);return{'baseUrl':_0x152050,'startPath':_0x86fb8c,'url':joinBaseAndPath(_0x152050,_0x86fb8c)};}export function readUrlEnvVars(_0x3b9e26=process['env']){const _0xc5573e=_0x10ab;return{'envBaseUrl':_0x3b9e26[_0xc5573e(0xa3)],'envStartPath':_0x3b9e26[_0xc5573e(0x9f)]};}
@@ -1 +1 @@
1
- function _0x374c(){const _0x4919f5=['label','),\x20retrying\x20in\x20','291944tTAcIO','5341080yIExiI','pow','baseDelayMs','maxRetries','2wATkRc','11051300CVXHGD','225dymVUx','TNgtG','4627878vVFHDh','error','1563425zbwcTP','3vykQXQ','1989028UnksMz','11412653XELoWN'];_0x374c=function(){return _0x4919f5;};return _0x374c();}function _0x24db(_0x1ef926,_0x92d4db){_0x1ef926=_0x1ef926-0x6c;const _0x374cda=_0x374c();let _0x24db63=_0x374cda[_0x1ef926];return _0x24db63;}(function(_0x9af029,_0x2c525e){const _0x54b760=_0x24db,_0x246d2a=_0x9af029();while(!![]){try{const _0x491ad9=-parseInt(_0x54b760(0x72))/0x1*(-parseInt(_0x54b760(0x6c))/0x2)+parseInt(_0x54b760(0x73))/0x3*(-parseInt(_0x54b760(0x74))/0x4)+parseInt(_0x54b760(0x79))/0x5+-parseInt(_0x54b760(0x70))/0x6+parseInt(_0x54b760(0x75))/0x7+-parseInt(_0x54b760(0x78))/0x8*(parseInt(_0x54b760(0x6e))/0x9)+-parseInt(_0x54b760(0x6d))/0xa;if(_0x491ad9===_0x2c525e)break;else _0x246d2a['push'](_0x246d2a['shift']());}catch(_0x330fd1){_0x246d2a['push'](_0x246d2a['shift']());}}}(_0x374c,0xee47b));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x21ee6b,_0x1a31fa){const _0x3446db=_0x24db,_0x49be51={'TNgtG':function(_0x4fb905,_0x2034cc){return _0x4fb905<=_0x2034cc;},'rksha':function(_0x1e3d58,_0x3327f6){return _0x1e3d58 instanceof _0x3327f6;},'uACxQ':function(_0x1b94ce,_0x589bc2){return _0x1b94ce+_0x589bc2;}},_0xa40592=_0x1a31fa?.[_0x3446db(0x7c)]??DEFAULT_MAX_RETRIES,_0x1a0f63=_0x1a31fa?.[_0x3446db(0x7b)]??DEFAULT_BASE_DELAY_MS;let _0x5684f0;for(let _0x26a434=0x0;_0x49be51[_0x3446db(0x6f)](_0x26a434,_0xa40592);_0x26a434++){try{return await _0x21ee6b();}catch(_0x49b284){_0x5684f0=_0x49be51['rksha'](_0x49b284,Error)?_0x49b284:new Error(String(_0x49b284));if(_0x26a434<_0xa40592){const _0x20d345=_0x1a0f63*Math[_0x3446db(0x7a)](0x2,_0x26a434);_0x1a31fa?.[_0x3446db(0x76)]&&console[_0x3446db(0x71)](_0x1a31fa['label']+'\x20failed\x20(attempt\x20'+(_0x26a434+0x1)+'/'+_0x49be51['uACxQ'](_0xa40592,0x1)+_0x3446db(0x77)+_0x20d345+'ms...'),await new Promise(_0x1e348a=>setTimeout(_0x1e348a,_0x20d345));}}}throw _0x5684f0;}
1
+ function _0x2d98(_0x3771b1,_0x5636f7){_0x3771b1=_0x3771b1-0x19e;const _0x1770e6=_0x1770();let _0x2d9813=_0x1770e6[_0x3771b1];return _0x2d9813;}(function(_0x3a2897,_0x44c439){const _0x330a1b=_0x2d98,_0xb90556=_0x3a2897();while(!![]){try{const _0x28ff30=parseInt(_0x330a1b(0x1a1))/0x1*(-parseInt(_0x330a1b(0x1a8))/0x2)+-parseInt(_0x330a1b(0x1a9))/0x3*(-parseInt(_0x330a1b(0x1ab))/0x4)+-parseInt(_0x330a1b(0x1a4))/0x5+parseInt(_0x330a1b(0x1ad))/0x6+-parseInt(_0x330a1b(0x19e))/0x7*(-parseInt(_0x330a1b(0x1a5))/0x8)+parseInt(_0x330a1b(0x1a2))/0x9+-parseInt(_0x330a1b(0x1a6))/0xa;if(_0x28ff30===_0x44c439)break;else _0xb90556['push'](_0xb90556['shift']());}catch(_0x46b398){_0xb90556['push'](_0xb90556['shift']());}}}(_0x1770,0x5045a));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x44df6e,_0x1b3b36){const _0x16b4a5=_0x2d98,_0x58dd3d={'QgHOW':function(_0x176add,_0x20a972){return _0x176add<_0x20a972;},'OkbhQ':function(_0x3cbe6a,_0x2b6132){return _0x3cbe6a*_0x2b6132;}},_0x5615cf=_0x1b3b36?.[_0x16b4a5(0x1ae)]??DEFAULT_MAX_RETRIES,_0x20e031=_0x1b3b36?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x2e5add;for(let _0x33b38f=0x0;_0x33b38f<=_0x5615cf;_0x33b38f++){try{return await _0x44df6e();}catch(_0x22f541){_0x2e5add=_0x22f541 instanceof Error?_0x22f541:new Error(String(_0x22f541));if(_0x58dd3d[_0x16b4a5(0x1a0)](_0x33b38f,_0x5615cf)){const _0x37f940=_0x58dd3d[_0x16b4a5(0x1a7)](_0x20e031,Math[_0x16b4a5(0x1a3)](0x2,_0x33b38f));_0x1b3b36?.[_0x16b4a5(0x1aa)]&&console[_0x16b4a5(0x19f)](_0x1b3b36['label']+_0x16b4a5(0x1ac)+(_0x33b38f+0x1)+'/'+(_0x5615cf+0x1)+'),\x20retrying\x20in\x20'+_0x37f940+'ms...'),await new Promise(_0x3a4ef3=>setTimeout(_0x3a4ef3,_0x37f940));}}}throw _0x2e5add;}function _0x1770(){const _0x1ff2b7=['maxRetries','28zJiWkj','error','QgHOW','6eLHeUy','3518694ImjXvo','pow','478730umhBqV','70072CnTXTn','1730570fXiKfu','OkbhQ','211906FGsAVy','64197KLpEdm','label','100EjMxYC','\x20failed\x20(attempt\x20','1634028hlyfoz'];_0x1770=function(){return _0x1ff2b7;};return _0x1770();}
@@ -1 +1 @@
1
- const _0x3fcc02=_0x1b5e;(function(_0x28288f,_0x13a3a2){const _0xd43522=_0x1b5e,_0x58a646=_0x28288f();while(!![]){try{const _0x69d069=parseInt(_0xd43522(0x185))/0x1+parseInt(_0xd43522(0x180))/0x2*(-parseInt(_0xd43522(0x17d))/0x3)+-parseInt(_0xd43522(0x160))/0x4*(-parseInt(_0xd43522(0x179))/0x5)+parseInt(_0xd43522(0x18e))/0x6*(parseInt(_0xd43522(0x18c))/0x7)+-parseInt(_0xd43522(0x16e))/0x8*(-parseInt(_0xd43522(0x166))/0x9)+-parseInt(_0xd43522(0x17a))/0xa*(-parseInt(_0xd43522(0x171))/0xb)+-parseInt(_0xd43522(0x169))/0xc;if(_0x69d069===_0x13a3a2)break;else _0x58a646['push'](_0x58a646['shift']());}catch(_0x2539b2){_0x58a646['push'](_0x58a646['shift']());}}}(_0x3271,0xc947b));import*as _0x3eb20f from'fs';import*as _0x4c1cba from'path';import*as _0x25a73d from'os';import{execSync}from'child_process';const CACHE_FILE=_0x4c1cba[_0x3fcc02(0x188)](_0x25a73d['homedir'](),_0x3fcc02(0x16b),'.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x8369df=_0x3fcc02,_0x1eca1e={'CJmQD':function(_0x2de35b){return _0x2de35b();}};try{if(_0x3eb20f['existsSync'](CACHE_FILE)){const _0x5bbf90=JSON[_0x8369df(0x18a)](_0x3eb20f['readFileSync'](CACHE_FILE,'utf-8'));return{'version':0x3,'sessions':_0x5bbf90[_0x8369df(0x176)]||{},'branches':_0x5bbf90[_0x8369df(0x170)]||{},'lastEnabledSessionClearedAt':_0x5bbf90['lastEnabledSessionClearedAt']};}}catch{}return _0x1eca1e['CJmQD'](createEmptyCache);}function saveCache(_0x53a661){const _0x477e9a=_0x3fcc02;try{const _0x584610=_0x4c1cba['dirname'](CACHE_FILE);!_0x3eb20f[_0x477e9a(0x162)](_0x584610)&&_0x3eb20f[_0x477e9a(0x15c)](_0x584610,{'recursive':!![]}),_0x3eb20f['writeFileSync'](CACHE_FILE,JSON[_0x477e9a(0x182)](_0x53a661,null,0x2));}catch{}}export function getCurrentBranch(){const _0x5d0d67=_0x3fcc02,_0x2b0709={'iSujq':function(_0xe9906f,_0x5c641c,_0x250d80){return _0xe9906f(_0x5c641c,_0x250d80);},'BsPBr':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','cJrjZ':_0x5d0d67(0x186),'ZEBIZ':'pipe','FdOlY':function(_0x45b6a0,_0x34a334){return _0x45b6a0===_0x34a334;}};try{const _0x3826d0=_0x2b0709['iSujq'](execSync,_0x2b0709[_0x5d0d67(0x15b)],{'encoding':_0x2b0709['cJrjZ'],'stdio':[_0x5d0d67(0x17f),_0x2b0709['ZEBIZ'],'pipe']})['trim']();if(!_0x3826d0||_0x2b0709['FdOlY'](_0x3826d0,_0x5d0d67(0x159)))return null;return _0x3826d0;}catch{return null;}}export function enableBranch(_0x2550ef){const _0x2ed124={'eDvld':function(_0x4b8587,_0x4a1141){return _0x4b8587(_0x4a1141);}},_0x1aa81b=loadCache();_0x1aa81b['branches'][_0x2550ef]=!![],_0x2ed124['eDvld'](saveCache,_0x1aa81b);}function _0x1b5e(_0x38f96b,_0x41b043){_0x38f96b=_0x38f96b-0x155;const _0x3271df=_0x3271();let _0x1b5ec6=_0x3271df[_0x38f96b];return _0x1b5ec6;}export function disableBranch(_0x40d3af){const _0x559b6d={'KfRWX':function(_0x50d068){return _0x50d068();},'FblOx':function(_0x2c0d48,_0x2d6c1d){return _0x2c0d48(_0x2d6c1d);}},_0x3d795d=_0x559b6d['KfRWX'](loadCache);delete _0x3d795d['branches'][_0x40d3af],_0x559b6d['FblOx'](saveCache,_0x3d795d);}export function isBranchEnabled(_0x5b05d0){const _0x4eb1da=_0x3fcc02,_0x434d5b=loadCache();return _0x434d5b[_0x4eb1da(0x170)][_0x5b05d0]===!![];}function getOrCreateSession(_0x23c648,_0x5e124c){const _0x592aea=_0x3fcc02;return!_0x23c648[_0x592aea(0x176)][_0x5e124c]&&(_0x23c648['sessions'][_0x5e124c]={}),_0x23c648[_0x592aea(0x176)][_0x5e124c];}export function enableSession(_0xa906be){const _0x147db3=_0x3fcc02,_0x5a1584={'IRDQL':function(_0x28b4a1,_0x4e5dc6,_0x322aab){return _0x28b4a1(_0x4e5dc6,_0x322aab);},'ERLOb':_0x147db3(0x187),'OgyWC':function(_0x356732,_0x4bd70f){return _0x356732(_0x4bd70f);}},_0x19ed36=loadCache(),_0x192208=_0x5a1584[_0x147db3(0x15f)](getOrCreateSession,_0x19ed36,_0xa906be);_0x192208[_0x147db3(0x15a)]=!![];const _0xf79825=getCurrentBranch();_0xf79825&&_0xf79825!==_0x147db3(0x161)&&_0xf79825!==_0x5a1584[_0x147db3(0x16f)]&&(_0x19ed36['branches'][_0xf79825]=!![],_0x192208[_0x147db3(0x181)]=_0xf79825),_0x5a1584[_0x147db3(0x175)](saveCache,_0x19ed36);}export function isSessionEnabled(_0x3a7682){const _0x50f93c=_0x3fcc02,_0x3054bb={'zOzdd':function(_0x14458a){return _0x14458a();},'RMooV':function(_0x2e44e0,_0x2d9675){return _0x2e44e0===_0x2d9675;},'qiZIF':'main','BTYFs':_0x50f93c(0x187),'TojNg':function(_0x3c5c9c,_0x52d28d){return _0x3c5c9c===_0x52d28d;}},_0x8af8df=_0x3054bb['zOzdd'](loadCache),_0x13dd4e=getCurrentBranch();if(!_0x13dd4e||_0x3054bb['RMooV'](_0x13dd4e,_0x3054bb[_0x50f93c(0x164)])||_0x13dd4e===_0x3054bb[_0x50f93c(0x16d)])return _0x8af8df['sessions'][_0x3a7682]?.[_0x50f93c(0x15a)]===!![];const _0x26b85f=_0x8af8df['branches'][_0x13dd4e]===!![],_0x135345=_0x3054bb[_0x50f93c(0x156)](_0x8af8df['sessions'][_0x3a7682]?.['enabled'],!![]);return _0x26b85f||_0x135345;}export function disableSession(_0x4f2bc0){const _0x4fa9a6=_0x3fcc02,_0x1fe5f9={'GzKyw':function(_0x1f6a1d){return _0x1f6a1d();},'fwADF':function(_0x36793a,_0x25b68c,_0x1c5c76){return _0x36793a(_0x25b68c,_0x1c5c76);}},_0x31682e=_0x1fe5f9[_0x4fa9a6(0x168)](loadCache),_0x1f2cb8=_0x1fe5f9['fwADF'](getOrCreateSession,_0x31682e,_0x4f2bc0);_0x1f2cb8['enabled']=![],saveCache(_0x31682e);}export function updateBranchTracking(_0x1cbdbe){const _0x1e4f09=_0x3fcc02,_0x40a2c4={'DzaLI':function(_0x13b426){return _0x13b426();},'YBtGm':function(_0x3a0f02,_0x44b3a2){return _0x3a0f02!==_0x44b3a2;},'uMEVz':function(_0x4624c4,_0x25ebb4){return _0x4624c4(_0x25ebb4);}},_0x42b09e=loadCache(),_0x3040f5=_0x42b09e['sessions'][_0x1cbdbe];if(!_0x3040f5?.['enabled'])return;const _0x40cdbb=_0x40a2c4['DzaLI'](getCurrentBranch);if(!_0x40cdbb||_0x40cdbb===_0x1e4f09(0x161)||_0x40cdbb===_0x1e4f09(0x187))return;_0x40a2c4[_0x1e4f09(0x177)](_0x3040f5['currentBranch'],_0x40cdbb)&&(_0x42b09e['branches'][_0x40cdbb]=!![],_0x3040f5['currentBranch']=_0x40cdbb,_0x40a2c4[_0x1e4f09(0x16a)](saveCache,_0x42b09e));}export function initBranchTracking(_0x285f5f){const _0x32f903=_0x3fcc02,_0x315de2={'VQvrr':function(_0x5926f1){return _0x5926f1();},'JELYI':function(_0x594241,_0x46da80){return _0x594241===_0x46da80;},'dnTAK':_0x32f903(0x187),'rmutF':function(_0xbc06e8,_0x350379){return _0xbc06e8===_0x350379;},'bNjXc':function(_0x398891,_0x52a618,_0x1f4505){return _0x398891(_0x52a618,_0x1f4505);},'ZCsyS':function(_0x262df4,_0x9b59f){return _0x262df4(_0x9b59f);}},_0x37f97a=loadCache(),_0xffc516=_0x315de2[_0x32f903(0x18b)](getCurrentBranch);if(!_0xffc516||_0x315de2['JELYI'](_0xffc516,'main')||_0xffc516===_0x315de2['dnTAK'])return;if(_0x315de2[_0x32f903(0x163)](_0x37f97a['branches'][_0xffc516],!![])){const _0x136dcf=_0x315de2[_0x32f903(0x17e)](getOrCreateSession,_0x37f97a,_0x285f5f);_0x136dcf[_0x32f903(0x15a)]=!![],_0x136dcf['currentBranch']=_0xffc516,_0x315de2[_0x32f903(0x167)](saveCache,_0x37f97a);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x59cddf){const _0xa1c607=_0x3fcc02,_0x34fcf3={'rBvJs':function(_0x536b58,_0x888d72){return _0x536b58(_0x888d72);}},_0x11813f=loadCache(),_0x2a7d39=_0x11813f[_0xa1c607(0x176)][_0x59cddf];_0x2a7d39?.['enabled']&&(_0x11813f[_0xa1c607(0x183)]=Date['now'](),_0x34fcf3[_0xa1c607(0x18f)](saveCache,_0x11813f));}export function shouldAutoEnableAfterClear(_0x14c899){const _0x4ef4b5=_0x3fcc02,_0xc2f91a={'vQPsS':function(_0x264be7){return _0x264be7();},'RDSSH':function(_0x32a1d7,_0x121ecf){return _0x32a1d7-_0x121ecf;},'VpMSV':function(_0x8eb14c,_0x2eb02d){return _0x8eb14c<=_0x2eb02d;}};if(_0x14c899!=='clear')return![];const _0x167fd1=_0xc2f91a['vQPsS'](loadCache),_0x26b714=_0x167fd1[_0x4ef4b5(0x183)];if(!_0x26b714)return![];const _0xc0b899=_0xc2f91a[_0x4ef4b5(0x15d)](Date['now'](),_0x26b714);return _0xc2f91a[_0x4ef4b5(0x15e)](_0xc0b899,CLEAR_AUTO_ENABLE_WINDOW_MS);}function _0x3271(){const _0x31d293=['10KYdXEo','OdmAD','Accdj','2013ZWxXfu','bNjXc','pipe','2870yXcQBk','currentBranch','stringify','lastEnabledSessionClearedAt','PglVu','1207357QBGLYY','utf-8','master','join','bUBDD','parse','VQvrr','83349cxKtNq','YSEwU','366wDlddW','rBvJs','RmLsP','TojNg','now','zpCFX','HEAD','enabled','BsPBr','mkdirSync','RDSSH','VpMSV','IRDQL','4paPSCg','main','existsSync','rmutF','qiZIF','mjRac','27PxEcHH','ZCsyS','GzKyw','32849868xzjNRo','uMEVz','.claude','featureId','BTYFs','3987368CnsCqh','ERLOb','branches','820457VIcPIv','registeredAt','prompted','CsfYs','OgyWC','sessions','YBtGm','lastStopReminderAt','5106415hYqCgy'];_0x3271=function(){return _0x31d293;};return _0x3271();}export function autoEnableAfterClear(_0x8dd15d){const _0x186d26=_0x3fcc02,_0x4c8594={'zpCFX':function(_0x1cf285){return _0x1cf285();},'YSEwU':'main'},_0x1ae9ed=_0x4c8594[_0x186d26(0x158)](loadCache),_0x342c12=getOrCreateSession(_0x1ae9ed,_0x8dd15d);_0x342c12['enabled']=!![];const _0x2de4b3=getCurrentBranch();_0x2de4b3&&_0x2de4b3!==_0x4c8594[_0x186d26(0x18d)]&&_0x2de4b3!=='master'&&(_0x342c12[_0x186d26(0x181)]=_0x2de4b3),delete _0x1ae9ed[_0x186d26(0x183)],saveCache(_0x1ae9ed);}export function registerSession(_0xb3f719,_0x1f2d54){const _0x1d6ad5=_0x3fcc02,_0x4232cf={'OdmAD':function(_0x4e432f,_0x27cc77){return _0x4e432f(_0x27cc77);}},_0x8b7fa5=loadCache(),_0x50f74e=getOrCreateSession(_0x8b7fa5,_0xb3f719);_0x50f74e['featureId']=_0x1f2d54,_0x50f74e[_0x1d6ad5(0x172)]=new Date()['toISOString'](),_0x4232cf[_0x1d6ad5(0x17b)](saveCache,_0x8b7fa5);}export function getSessionEntry(_0x52ca52){const _0x281fec=_0x3fcc02,_0x37f5c6={'IYcKZ':function(_0x4fac61){return _0x4fac61();}},_0xe8f552=_0x37f5c6['IYcKZ'](loadCache),_0x13b414=_0xe8f552['sessions'][_0x52ca52];if(_0x13b414?.[_0x281fec(0x16c)]&&_0x13b414?.['registeredAt'])return{'featureId':_0x13b414[_0x281fec(0x16c)],'registeredAt':_0x13b414['registeredAt']};return null;}export function unregisterSession(_0xd27df1){const _0x3a9cbe=_0x3fcc02,_0x3f0760=loadCache(),_0x1ba444=_0x3f0760['sessions'][_0xd27df1];_0x1ba444&&(delete _0x1ba444[_0x3a9cbe(0x16c)],delete _0x1ba444[_0x3a9cbe(0x172)],saveCache(_0x3f0760));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x414ed5){const _0x4a0b3c=_0x3fcc02,_0x22276e={'mjRac':function(_0x508e8d){return _0x508e8d();},'CsfYs':function(_0x448bee,_0x38d6ed,_0x595f6c){return _0x448bee(_0x38d6ed,_0x595f6c);},'RmLsP':function(_0x5a7753,_0x855178){return _0x5a7753-_0x855178;},'SWmQp':function(_0x10e249,_0x417ccd){return _0x10e249(_0x417ccd);}},_0x3263cb=_0x22276e[_0x4a0b3c(0x165)](loadCache),_0x44a858=_0x22276e[_0x4a0b3c(0x174)](getOrCreateSession,_0x3263cb,_0x414ed5),_0xb438dc=_0x44a858['lastPlanReminderAt']||0x0,_0x414a4d=Date['now']();if(_0x22276e[_0x4a0b3c(0x155)](_0x414a4d,_0xb438dc)>=PLAN_REMINDER_INTERVAL_MS)return _0x44a858['lastPlanReminderAt']=_0x414a4d,_0x22276e['SWmQp'](saveCache,_0x3263cb),!![];return![];}export function shouldShowStopReminder(_0x5520df){const _0x1768f2=_0x3fcc02,_0x4ef015={'yezhE':function(_0xb51698){return _0xb51698();},'PglVu':function(_0x2b1ae0,_0x871bbe){return _0x2b1ae0>=_0x871bbe;},'Accdj':function(_0x8c9a4a,_0x38e849){return _0x8c9a4a-_0x38e849;},'bUBDD':function(_0x4902ff,_0x544658){return _0x4902ff(_0x544658);}},_0x23186d=_0x4ef015['yezhE'](loadCache),_0x3b9cf9=getOrCreateSession(_0x23186d,_0x5520df),_0x10fefa=_0x3b9cf9[_0x1768f2(0x178)]||0x0,_0x37e22b=Date[_0x1768f2(0x157)]();if(_0x4ef015[_0x1768f2(0x184)](_0x4ef015[_0x1768f2(0x17c)](_0x37e22b,_0x10fefa),STOP_REMINDER_INTERVAL_MS))return _0x3b9cf9['lastStopReminderAt']=_0x37e22b,_0x4ef015[_0x1768f2(0x189)](saveCache,_0x23186d),!![];return![];}export function hasSessionBeenPrompted(_0x1f5791){const _0x55d43d=_0x3fcc02,_0x2c59d3=loadCache();return _0x2c59d3['sessions'][_0x1f5791]?.[_0x55d43d(0x173)]===!![];}export function markSessionPrompted(_0x33e7dd){const _0x4dfdbe={'NnlqM':function(_0x5c075a){return _0x5c075a();}},_0x362396=_0x4dfdbe['NnlqM'](loadCache),_0x269205=getOrCreateSession(_0x362396,_0x33e7dd);_0x269205['prompted']=!![],saveCache(_0x362396);}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0x25e722=_0x4f80;(function(_0xaa05ca,_0x421aaa){const _0x1229db=_0x4f80,_0x40511d=_0xaa05ca();while(!![]){try{const _0x3548e6=parseInt(_0x1229db(0x19f))/0x1+parseInt(_0x1229db(0x1af))/0x2+-parseInt(_0x1229db(0x189))/0x3*(parseInt(_0x1229db(0x196))/0x4)+parseInt(_0x1229db(0x19b))/0x5+parseInt(_0x1229db(0x1a4))/0x6*(-parseInt(_0x1229db(0x191))/0x7)+-parseInt(_0x1229db(0x1a9))/0x8*(-parseInt(_0x1229db(0x1a8))/0x9)+parseInt(_0x1229db(0x185))/0xa;if(_0x3548e6===_0x421aaa)break;else _0x40511d['push'](_0x40511d['shift']());}catch(_0x57a4e4){_0x40511d['push'](_0x40511d['shift']());}}}(_0x63fd,0xc4c27));import*as _0x467c76 from'fs';import*as _0x4bdef7 from'path';import*as _0x385393 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x4bdef7['join'](_0x385393[_0x25e722(0x190)](),'.claude',_0x25e722(0x18f));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x4cfaf9=_0x25e722;try{if(_0x467c76['existsSync'](CACHE_FILE)){const _0x1c6305=JSON[_0x4cfaf9(0x19a)](_0x467c76['readFileSync'](CACHE_FILE,_0x4cfaf9(0x19d)));return{'version':0x3,'sessions':_0x1c6305[_0x4cfaf9(0x197)]||{},'branches':_0x1c6305['branches']||{},'lastEnabledSessionClearedAt':_0x1c6305['lastEnabledSessionClearedAt']};}}catch{}return createEmptyCache();}function saveCache(_0x52df9d){const _0x1f4d3a=_0x25e722;try{const _0xd66592=_0x4bdef7[_0x1f4d3a(0x187)](CACHE_FILE);!_0x467c76[_0x1f4d3a(0x1aa)](_0xd66592)&&_0x467c76['mkdirSync'](_0xd66592,{'recursive':!![]}),_0x467c76[_0x1f4d3a(0x1ad)](CACHE_FILE,JSON['stringify'](_0x52df9d,null,0x2));}catch{}}export function getCurrentBranch(){const _0xf38737=_0x25e722,_0x8762d4={'eLWLB':_0xf38737(0x192),'KbsTL':_0xf38737(0x19d),'BxLtc':'pipe','gHuFF':function(_0x43c122,_0x573da8){return _0x43c122===_0x573da8;},'OTUFa':'HEAD'};try{const _0x48ea75=execSync(_0x8762d4[_0xf38737(0x19c)],{'encoding':_0x8762d4['KbsTL'],'stdio':[_0x8762d4['BxLtc'],_0x8762d4[_0xf38737(0x1a2)],_0x8762d4[_0xf38737(0x1a2)]]})[_0xf38737(0x1b4)]();if(!_0x48ea75||_0x8762d4[_0xf38737(0x1b1)](_0x48ea75,_0x8762d4[_0xf38737(0x18b)]))return null;return _0x48ea75;}catch{return null;}}export function enableBranch(_0x3e2877){const _0x5a18ad=loadCache();_0x5a18ad['branches'][_0x3e2877]=!![],saveCache(_0x5a18ad);}export function disableBranch(_0x140504){const _0x1d5387=_0x25e722,_0x17f54b={'ozGdu':function(_0x3b3ac1){return _0x3b3ac1();}},_0x429181=_0x17f54b[_0x1d5387(0x194)](loadCache);delete _0x429181[_0x1d5387(0x18c)][_0x140504],saveCache(_0x429181);}export function isBranchEnabled(_0x315ff7){const _0x59d2ae=_0x25e722,_0x597c73={'CicQX':function(_0x3b453d,_0x347da0){return _0x3b453d===_0x347da0;}},_0x5ed3bc=loadCache();return _0x597c73['CicQX'](_0x5ed3bc[_0x59d2ae(0x18c)][_0x315ff7],!![]);}function getOrCreateSession(_0x3c37a1,_0x1a305b){const _0x470f9e=_0x25e722;return!_0x3c37a1[_0x470f9e(0x197)][_0x1a305b]&&(_0x3c37a1['sessions'][_0x1a305b]={}),_0x3c37a1[_0x470f9e(0x197)][_0x1a305b];}export function enableSession(_0x5c2d98){const _0x1d3bed=_0x25e722,_0x2cd6bf={'kvsTF':function(_0x314b65){return _0x314b65();},'FnOSs':function(_0x524074,_0x3fbaf0){return _0x524074!==_0x3fbaf0;},'WzkkR':_0x1d3bed(0x186)},_0x1c2041=loadCache(),_0x4646ca=getOrCreateSession(_0x1c2041,_0x5c2d98);_0x4646ca['enabled']=!![];const _0x50a16a=_0x2cd6bf['kvsTF'](getCurrentBranch);_0x50a16a&&_0x2cd6bf[_0x1d3bed(0x1a0)](_0x50a16a,_0x2cd6bf[_0x1d3bed(0x1b3)])&&_0x50a16a!==_0x1d3bed(0x1a7)&&(_0x1c2041[_0x1d3bed(0x18c)][_0x50a16a]=!![],_0x4646ca['currentBranch']=_0x50a16a),saveCache(_0x1c2041);}export function isSessionEnabled(_0x1079ce){const _0x8c3932=_0x25e722,_0x3048a9={'ojTcd':function(_0x2a8a4f){return _0x2a8a4f();},'wJXQe':function(_0x5a697e,_0x54f8f0){return _0x5a697e===_0x54f8f0;},'DCCzu':_0x8c3932(0x186),'UVTEw':'master','MoLWe':function(_0x1440cc,_0x47106a){return _0x1440cc===_0x47106a;},'AOZIF':function(_0x505278,_0x337016){return _0x505278===_0x337016;},'epCSK':function(_0x1ce6f1,_0x50ccc9){return _0x1ce6f1||_0x50ccc9;}},_0x295858=_0x3048a9[_0x8c3932(0x1a3)](loadCache),_0x5f21fa=getCurrentBranch();if(!_0x5f21fa||_0x3048a9['wJXQe'](_0x5f21fa,_0x3048a9[_0x8c3932(0x182)])||_0x5f21fa===_0x3048a9['UVTEw'])return _0x295858[_0x8c3932(0x197)][_0x1079ce]?.['enabled']===!![];const _0x3ba703=_0x3048a9[_0x8c3932(0x188)](_0x295858['branches'][_0x5f21fa],!![]),_0x24eee9=_0x3048a9['AOZIF'](_0x295858[_0x8c3932(0x197)][_0x1079ce]?.['enabled'],!![]);return _0x3048a9['epCSK'](_0x3ba703,_0x24eee9);}export function disableSession(_0x500bf6){const _0x3ce292=_0x25e722,_0x4ac9d2={'QGNil':function(_0x44dfcf){return _0x44dfcf();}},_0x3f35ae=_0x4ac9d2[_0x3ce292(0x1a6)](loadCache),_0x12894f=getOrCreateSession(_0x3f35ae,_0x500bf6);_0x12894f['enabled']=![],saveCache(_0x3f35ae);}export function updateBranchTracking(_0x53d8fb){const _0xb6720f=_0x25e722,_0x3863c8={'gicRg':function(_0x5eb7dd){return _0x5eb7dd();},'eJLAy':function(_0xb3d5fd,_0x1fe2f8){return _0xb3d5fd===_0x1fe2f8;},'oBmlG':function(_0x765b8b,_0x5da078){return _0x765b8b!==_0x5da078;},'Odpap':function(_0x2866da,_0x68e833){return _0x2866da(_0x68e833);}},_0x2fbae8=_0x3863c8['gicRg'](loadCache),_0x2229c3=_0x2fbae8['sessions'][_0x53d8fb];if(!_0x2229c3?.['enabled'])return;const _0x2a6743=getCurrentBranch();if(!_0x2a6743||_0x2a6743===_0xb6720f(0x186)||_0x3863c8[_0xb6720f(0x1ab)](_0x2a6743,_0xb6720f(0x1a7)))return;_0x3863c8['oBmlG'](_0x2229c3['currentBranch'],_0x2a6743)&&(_0x2fbae8['branches'][_0x2a6743]=!![],_0x2229c3['currentBranch']=_0x2a6743,_0x3863c8['Odpap'](saveCache,_0x2fbae8));}export function initBranchTracking(_0x5216ee){const _0x253d51=_0x25e722,_0x18886a={'eZEmy':function(_0x2350ec){return _0x2350ec();},'CYrSn':_0x253d51(0x186),'oZMQA':function(_0x467af1,_0x19d5fd){return _0x467af1===_0x19d5fd;},'mrKsL':'master','EOXxV':function(_0x1a8c0e,_0x2239bb){return _0x1a8c0e(_0x2239bb);}},_0xbbb600=loadCache(),_0x46db19=_0x18886a['eZEmy'](getCurrentBranch);if(!_0x46db19||_0x46db19===_0x18886a['CYrSn']||_0x18886a['oZMQA'](_0x46db19,_0x18886a['mrKsL']))return;if(_0x18886a[_0x253d51(0x199)](_0xbbb600['branches'][_0x46db19],!![])){const _0x573231=getOrCreateSession(_0xbbb600,_0x5216ee);_0x573231['enabled']=!![],_0x573231[_0x253d51(0x183)]=_0x46db19,_0x18886a['EOXxV'](saveCache,_0xbbb600);}}function _0x63fd(){const _0x273fed=['sessions','kcGpF','oZMQA','parse','490605ZgzynC','eLWLB','utf-8','iAQgx','1332954UzvakD','FnOSs','featureId','BxLtc','ojTcd','2860584RjqZUw','bLKfA','QGNil','master','18MJDyfG','3299112CPjVty','existsSync','eJLAy','WfbOL','writeFileSync','EbBMs','1928328GxVBwL','registeredAt','gHuFF','rQCcd','WzkkR','trim','YJyvB','vcjPq','DCCzu','currentBranch','toISOString','5219130cQIFOJ','main','dirname','MoLWe','4517133WdgiMz','enabled','OTUFa','branches','lastEnabledSessionClearedAt','now','.ranger_cache.json','homedir','21KhJSLV','git\x20rev-parse\x20--abbrev-ref\x20HEAD','xtdZJ','ozGdu','FhwgM','4vQcaKb'];_0x63fd=function(){return _0x273fed;};return _0x63fd();}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x1c2b27){const _0x4004dd=_0x25e722,_0x4eec07={'UljZk':function(_0x45ec99){return _0x45ec99();}},_0x545b4c=_0x4eec07['UljZk'](loadCache),_0x919187=_0x545b4c['sessions'][_0x1c2b27];_0x919187?.[_0x4004dd(0x18a)]&&(_0x545b4c['lastEnabledSessionClearedAt']=Date[_0x4004dd(0x18e)](),saveCache(_0x545b4c));}export function shouldAutoEnableAfterClear(_0x449648){const _0x24d583=_0x25e722,_0x243c25={'kcGpF':'clear','rQCcd':function(_0x1c4508){return _0x1c4508();},'bLKfA':function(_0x32c559,_0x4a9843){return _0x32c559<=_0x4a9843;}};if(_0x449648!==_0x243c25[_0x24d583(0x198)])return![];const _0x39c021=_0x243c25[_0x24d583(0x1b2)](loadCache),_0x1f6c7b=_0x39c021[_0x24d583(0x18d)];if(!_0x1f6c7b)return![];const _0x593c47=Date[_0x24d583(0x18e)]()-_0x1f6c7b;return _0x243c25[_0x24d583(0x1a5)](_0x593c47,CLEAR_AUTO_ENABLE_WINDOW_MS);}function _0x4f80(_0x346a41,_0xad50fb){_0x346a41=_0x346a41-0x182;const _0x63fd5c=_0x63fd();let _0x4f8022=_0x63fd5c[_0x346a41];return _0x4f8022;}export function autoEnableAfterClear(_0x212f77){const _0x1c2353=_0x25e722,_0x17eb7f={'WfbOL':function(_0x2eb36d,_0x3de6cb,_0x4f83e5){return _0x2eb36d(_0x3de6cb,_0x4f83e5);},'YJyvB':function(_0x5e2169,_0x27bb3d){return _0x5e2169!==_0x27bb3d;},'jtTkM':_0x1c2353(0x186),'TVkHh':function(_0xf8a66b,_0x159618){return _0xf8a66b!==_0x159618;},'EbBMs':function(_0x4e016d,_0x658a87){return _0x4e016d(_0x658a87);}},_0x196e25=loadCache(),_0x5e1065=_0x17eb7f[_0x1c2353(0x1ac)](getOrCreateSession,_0x196e25,_0x212f77);_0x5e1065[_0x1c2353(0x18a)]=!![];const _0x42e371=getCurrentBranch();_0x42e371&&_0x17eb7f[_0x1c2353(0x1b5)](_0x42e371,_0x17eb7f['jtTkM'])&&_0x17eb7f['TVkHh'](_0x42e371,'master')&&(_0x5e1065['currentBranch']=_0x42e371),delete _0x196e25[_0x1c2353(0x18d)],_0x17eb7f[_0x1c2353(0x1ae)](saveCache,_0x196e25);}export function registerSession(_0x38e1ee,_0x3d56fa){const _0x2a5d47=_0x25e722,_0x332f7a={'iAQgx':function(_0x4ace8c){return _0x4ace8c();},'LNWLs':function(_0x332514,_0x34ea4b,_0x1450f6){return _0x332514(_0x34ea4b,_0x1450f6);}},_0x47f99b=_0x332f7a[_0x2a5d47(0x19e)](loadCache),_0x7e881=_0x332f7a['LNWLs'](getOrCreateSession,_0x47f99b,_0x38e1ee);_0x7e881['featureId']=_0x3d56fa,_0x7e881[_0x2a5d47(0x1b0)]=new Date()[_0x2a5d47(0x184)](),saveCache(_0x47f99b);}export function getSessionEntry(_0x307392){const _0x28e574=_0x25e722,_0x47fa38=loadCache(),_0x3e5e25=_0x47fa38['sessions'][_0x307392];if(_0x3e5e25?.['featureId']&&_0x3e5e25?.[_0x28e574(0x1b0)])return{'featureId':_0x3e5e25['featureId'],'registeredAt':_0x3e5e25[_0x28e574(0x1b0)]};return null;}export function unregisterSession(_0x5e430b){const _0xdb97c0=_0x25e722,_0xa4356d={'vcjPq':function(_0x51084d){return _0x51084d();}},_0x3e555b=_0xa4356d[_0xdb97c0(0x1b6)](loadCache),_0x3d889e=_0x3e555b[_0xdb97c0(0x197)][_0x5e430b];_0x3d889e&&(delete _0x3d889e[_0xdb97c0(0x1a1)],delete _0x3d889e['registeredAt'],saveCache(_0x3e555b));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x48f236){const _0x58b5c4=_0x25e722,_0x2521f3={'hMoIH':function(_0x22ad08){return _0x22ad08();},'Saytz':function(_0x5b29ea,_0x5b5015,_0x4bcbe3){return _0x5b29ea(_0x5b5015,_0x4bcbe3);},'kGkaX':function(_0x411a06,_0x1e2087){return _0x411a06>=_0x1e2087;},'FhwgM':function(_0x4b526e,_0x1d8539){return _0x4b526e-_0x1d8539;}},_0x4916ea=_0x2521f3['hMoIH'](loadCache),_0x24be36=_0x2521f3['Saytz'](getOrCreateSession,_0x4916ea,_0x48f236),_0x53500f=_0x24be36['lastPlanReminderAt']||0x0,_0x4dc55c=Date['now']();if(_0x2521f3['kGkaX'](_0x2521f3[_0x58b5c4(0x195)](_0x4dc55c,_0x53500f),PLAN_REMINDER_INTERVAL_MS))return _0x24be36['lastPlanReminderAt']=_0x4dc55c,saveCache(_0x4916ea),!![];return![];}export function shouldShowStopReminder(_0x1b4b86){const _0x6ac4b9=_0x25e722,_0x286170={'avWBp':function(_0x13e834,_0x5ea16f){return _0x13e834-_0x5ea16f;}},_0x3182c5=loadCache(),_0x1de785=getOrCreateSession(_0x3182c5,_0x1b4b86),_0x447618=_0x1de785['lastStopReminderAt']||0x0,_0x18208f=Date[_0x6ac4b9(0x18e)]();if(_0x286170['avWBp'](_0x18208f,_0x447618)>=STOP_REMINDER_INTERVAL_MS)return _0x1de785['lastStopReminderAt']=_0x18208f,saveCache(_0x3182c5),!![];return![];}export function hasSessionBeenPrompted(_0x3a341d){const _0x57c18c=_0x25e722,_0x57d674={'AVPne':function(_0x220f3b,_0x3367f0){return _0x220f3b===_0x3367f0;}},_0xeac66=loadCache();return _0x57d674['AVPne'](_0xeac66[_0x57c18c(0x197)][_0x3a341d]?.['prompted'],!![]);}export function markSessionPrompted(_0x40c260){const _0x175c78=_0x25e722,_0x4454bc={'Bfyee':function(_0x4889e1){return _0x4889e1();},'xtdZJ':function(_0x256941,_0x456de3,_0x372892){return _0x256941(_0x456de3,_0x372892);}},_0x4b184f=_0x4454bc['Bfyee'](loadCache),_0x532b99=_0x4454bc[_0x175c78(0x193)](getOrCreateSession,_0x4b184f,_0x40c260);_0x532b99['prompted']=!![],saveCache(_0x4b184f);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x48b743=_0x300f;(function(_0x26546d,_0x19d85f){const _0x4f09d9=_0x300f,_0x4553b3=_0x26546d();while(!![]){try{const _0xe73307=-parseInt(_0x4f09d9(0x252))/0x1+-parseInt(_0x4f09d9(0x1ff))/0x2*(-parseInt(_0x4f09d9(0x202))/0x3)+parseInt(_0x4f09d9(0x240))/0x4*(parseInt(_0x4f09d9(0x20c))/0x5)+-parseInt(_0x4f09d9(0x23a))/0x6+-parseInt(_0x4f09d9(0x24f))/0x7+parseInt(_0x4f09d9(0x24e))/0x8+parseInt(_0x4f09d9(0x24b))/0x9*(parseInt(_0x4f09d9(0x21e))/0xa);if(_0xe73307===_0x19d85f)break;else _0x4553b3['push'](_0x4553b3['shift']());}catch(_0xf727a6){_0x4553b3['push'](_0x4553b3['shift']());}}}(_0xc887,0x924f8));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x4caf4d,_0x1b649b){const _0x19913b=_0x300f,_0x4dcf55={'fbhRo':function(_0x48742c,_0xaa0ae9,_0x3c8c7d,_0x2a4cb1){return _0x48742c(_0xaa0ae9,_0x3c8c7d,_0x2a4cb1);},'MARzB':function(_0x773116,_0x21f9b0,_0x84f0e4){return _0x773116(_0x21f9b0,_0x84f0e4);},'AXGdi':'local','FAgLS':function(_0x3b0dce,_0x111e19){return _0x3b0dce(_0x111e19);},'FtxGn':function(_0x1a2ca8,_0x31c542){return _0x1a2ca8!==_0x31c542;},'MdwSP':function(_0x175b62,_0x153bee){return _0x175b62!==_0x153bee;}},_0x2f7923=_0x4dcf55['fbhRo'](join,_0x1b649b,'ci',_0x4caf4d),_0x3f8954=join(_0x1b649b,'local',_0x4caf4d),_0x637d8=_0x4dcf55['MARzB'](join,_0x1b649b,_0x4caf4d),_0x2908ec=join(_0x1b649b,_0x4dcf55['AXGdi']),_0x2f9306=join(_0x1b649b,'ci');if(existsSync(_0x2f7923))return _0x2f7923;if(_0x4dcf55[_0x19913b(0x228)](existsSync,_0x3f8954))return _0x3f8954;if(existsSync(_0x637d8)&&(_0x4dcf55[_0x19913b(0x242)](_0x637d8,_0x2908ec)&&_0x4dcf55[_0x19913b(0x244)](_0x637d8,_0x2f9306)?!![]:hasLegacyProfileFiles(_0x637d8)))return _0x637d8;return null;}export function getEnvDir(_0x1803cb,_0xab3b21={}){const _0x30d476=_0x300f,_0x137606={'vyMBu':function(_0x91c4ff,_0x1f4933,_0x2b1558){return _0x91c4ff(_0x1f4933,_0x2b1558);},'jqkZJ':function(_0x50d5cc,_0x1d6fb5){return _0x50d5cc(_0x1d6fb5);},'ytKtU':function(_0x2cb061){return _0x2cb061();},'efEfB':function(_0x3d1280,_0x468492){return _0x3d1280!==_0x468492;},'djVom':function(_0x4593f4,_0x42daa8,_0x210be3){return _0x4593f4(_0x42daa8,_0x210be3);},'nxhWt':'local'},_0x38b3c3=getRangerDir(),_0x56ebff=_0x137606['vyMBu'](findEnvInRoot,_0x1803cb,_0x38b3c3);if(_0x56ebff){if(_0xab3b21['forWrite']&&_0x137606[_0x30d476(0x20f)](isLegacyEnvPath,_0x56ebff))throw legacyWriteError(_0x1803cb,_0x56ebff);return _0x56ebff;}const _0x3258ea=_0x137606[_0x30d476(0x254)](getRangerHomeDir);if(_0x137606['efEfB'](_0x3258ea,_0x38b3c3)){const _0x47baa5=_0x137606['vyMBu'](findEnvInRoot,_0x1803cb,_0x3258ea);if(_0x47baa5){if(_0xab3b21['forWrite']&&isLegacyEnvPath(_0x47baa5))throw _0x137606['djVom'](legacyWriteError,_0x1803cb,_0x47baa5);return _0x47baa5;}}const _0x1484d9=join(_0x3258ea,_0x137606['nxhWt'],_0x1803cb);if(_0xab3b21[_0x30d476(0x211)])throw legacyWriteError(_0x1803cb,_0x1484d9);return _0x1484d9;}function isLegacyEnvPath(_0x204a8d){const _0x451ab1=_0x300f,_0x79c78c={'Yqiao':function(_0x4370f9){return _0x4370f9();},'PHWyT':function(_0x23092c,_0x11d6ab){return _0x23092c+_0x11d6ab;},'NLjUr':function(_0x400aa9,_0x18e1af){return _0x400aa9===_0x18e1af;}},_0x177211=getRangerDir(),_0x41cbee=_0x79c78c['Yqiao'](getRangerHomeDir);for(const _0x5c35e3 of new Set([_0x177211,_0x41cbee])){const _0x3b9ccc=_0x5c35e3['endsWith']('/')?_0x5c35e3:_0x79c78c['PHWyT'](_0x5c35e3,'/');if(_0x79c78c[_0x451ab1(0x259)](_0x204a8d,_0x5c35e3)||_0x204a8d[_0x451ab1(0x1f4)](_0x3b9ccc))return!![];}return![];}function legacyWriteError(_0x4ef91b,_0x53e0fa){const _0x3d0221=_0x300f,_0x5b84f4={'iCwGl':function(_0x1f6a7d,_0x2bcd9a){return _0x1f6a7d+_0x2bcd9a;}};return new Error(_0x5b84f4[_0x3d0221(0x1fa)]('Refusing\x20to\x20write\x20profile\x20\x22'+_0x4ef91b+_0x3d0221(0x204)+_0x53e0fa+'.\x0a','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a')+'\x20\x20ranger\x20profile\x20add\x20<name>\x0a'+'See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.');}export function findExistingEnv(_0xe38ba,_0x4059e4){const _0x11b998=_0x300f,_0x30b933={'DwIhS':function(_0x803bd6){return _0x803bd6();},'xyQBg':_0x11b998(0x1ee),'pXOFa':function(_0x3b1ad0,_0x3939ee,_0x2292a4){return _0x3b1ad0(_0x3939ee,_0x2292a4);},'vaJCG':'local','Epfgl':function(_0x202019,_0x13332d,_0x36cd80,_0x3d9bc4){return _0x202019(_0x13332d,_0x36cd80,_0x3d9bc4);},'lADWU':function(_0x5a60b6,_0x3ac841,_0x4ae637){return _0x5a60b6(_0x3ac841,_0x4ae637);},'QiRZJ':function(_0x2fc25b,_0x4f0c7d){return _0x2fc25b(_0x4f0c7d);},'gXLfS':function(_0x18d41f,_0x160af7){return _0x18d41f===_0x160af7;},'XqMKL':function(_0x188df3,_0x3413ff){return _0x188df3===_0x3413ff;}},_0x55b3da=_0x4059e4?.[_0x11b998(0x218)],_0x15bf78=_0x55b3da?[_0x55b3da]:[getRangerDir(),_0x30b933[_0x11b998(0x235)](getRangerHomeDir)][_0x11b998(0x1f1)]((_0x455445,_0x4edb02,_0x354f20)=>_0x354f20['indexOf'](_0x455445)===_0x4edb02),_0x31d965=_0x4059e4?.['locations']??['ci',_0x11b998(0x222),_0x30b933['xyQBg']];for(const _0x5822a1 of _0x15bf78){const _0x4f642c=_0x30b933[_0x11b998(0x1f9)](join,_0x5822a1,_0x30b933[_0x11b998(0x236)]),_0x5445e8=join(_0x5822a1,'ci'),_0x9d1414=[{'location':'ci','path':_0x30b933[_0x11b998(0x251)](join,_0x5822a1,'ci',_0xe38ba)},{'location':_0x30b933['vaJCG'],'path':join(_0x5822a1,_0x11b998(0x222),_0xe38ba)},{'location':_0x11b998(0x1ee),'path':_0x30b933[_0x11b998(0x25d)](join,_0x5822a1,_0xe38ba)}];for(const _0x428be1 of _0x9d1414){if(_0x31d965[_0x11b998(0x221)](_0x428be1['location'])&&_0x30b933[_0x11b998(0x21f)](existsSync,_0x428be1[_0x11b998(0x239)])){if(_0x30b933['gXLfS'](_0x428be1['location'],_0x30b933[_0x11b998(0x1ef)])&&(_0x30b933['gXLfS'](_0x428be1['path'],_0x4f642c)||_0x30b933['XqMKL'](_0x428be1['path'],_0x5445e8))&&!_0x30b933['QiRZJ'](hasLegacyProfileFiles,_0x428be1['path']))continue;return{'path':_0x428be1[_0x11b998(0x239)],'location':_0x428be1[_0x11b998(0x1fc)]};}}}return null;}function hasLegacyProfileFiles(_0x277350){const _0x302cce=_0x300f,_0x327a77={'GagVD':function(_0x4f9597,_0x277e12,_0x3763b5){return _0x4f9597(_0x277e12,_0x3763b5);},'TAApH':_0x302cce(0x25b),'aBikB':'auth.json'};return existsSync(_0x327a77['GagVD'](join,_0x277350,_0x327a77['TAApH']))||existsSync(_0x327a77[_0x302cce(0x230)](join,_0x277350,_0x327a77['aBikB']))||existsSync(join(_0x277350,_0x302cce(0x229)));}export function isEnvCi(_0x4c606d){const _0x57e264=_0x300f,_0x547ee3={'RBTwF':function(_0x4ff514,_0x3dc8bb){return _0x4ff514(_0x3dc8bb);},'EVSNL':function(_0x1ddf7d,_0x4120fe,_0x4102fd,_0x457d4f){return _0x1ddf7d(_0x4120fe,_0x4102fd,_0x457d4f);},'WgrhF':function(_0x151046){return _0x151046();},'VfkbT':function(_0x41cfb7,_0x508bb2){return _0x41cfb7!==_0x508bb2;},'wuPlp':function(_0x59ed90){return _0x59ed90();}};if(_0x547ee3[_0x57e264(0x224)](existsSync,_0x547ee3[_0x57e264(0x23c)](join,getRangerDir(),'ci',_0x4c606d)))return!![];const _0x540deb=_0x547ee3['WgrhF'](getRangerHomeDir);if(_0x547ee3['VfkbT'](_0x540deb,_0x547ee3[_0x57e264(0x1fe)](getRangerDir))&&existsSync(join(_0x540deb,'ci',_0x4c606d)))return!![];return![];}function _0x300f(_0x341800,_0x13ba72){_0x341800=_0x341800-0x1ec;const _0xc88732=_0xc887();let _0x300f67=_0xc88732[_0x341800];return _0x300f67;}export async function cleanupTempFiles(_0x48b42d){const _0x133bc4=_0x300f,_0x1a026a={'nCWIb':'ENOENT'},_0x357ca3=[_0x48b42d['tempAuthPath'],_0x48b42d['configPath']]['filter'](Boolean);await Promise[_0x133bc4(0x234)](_0x357ca3['map'](_0xe0a3c7=>unlink(_0xe0a3c7)['catch'](_0x1b284e=>{const _0x57943b=_0x133bc4;_0x1b284e[_0x57943b(0x22a)]!==_0x1a026a['nCWIb']&&console['warn'](_0x57943b(0x1f5)+_0xe0a3c7+':',_0x1b284e[_0x57943b(0x237)]);})));}export function getSettingsPath(_0x2cdc64){const _0x32d5af={'XHkJF':function(_0x5b6220,_0x3c1a33){return _0x5b6220(_0x3c1a33);}};return join(_0x32d5af['XHkJF'](getEnvDir,_0x2cdc64),'settings.json');}export async function loadSettings(_0xa5dd2){const _0x27f3bb=_0x300f,_0x584ee5={'EuTQP':function(_0x41d00b,_0x5f3331){return _0x41d00b(_0x5f3331);},'EuijX':function(_0x52c56c,_0x5ad98d){return _0x52c56c(_0x5ad98d);},'SpfDp':function(_0x557f4c,_0x4ab814,_0x1bc64c){return _0x557f4c(_0x4ab814,_0x1bc64c);}},_0x1d199d=_0x584ee5[_0x27f3bb(0x201)](getSettingsPath,_0xa5dd2);if(!_0x584ee5[_0x27f3bb(0x25a)](existsSync,_0x1d199d))return{};try{const _0x53590c=await _0x584ee5[_0x27f3bb(0x24d)](readFile,_0x1d199d,'utf-8');return JSON['parse'](_0x53590c);}catch{return{};}}export async function saveSettings(_0x57125b,_0x4e7025){const _0x32f3b0=_0x300f,_0x4f59b5={'WQpKI':function(_0x4b2211,_0x37ed73){return _0x4b2211(_0x37ed73);},'ipMLH':function(_0x513ec5,_0x196cdb){return _0x513ec5(_0x196cdb);},'glWaR':function(_0x2ae005,_0x3ac6d8,_0x44be58){return _0x2ae005(_0x3ac6d8,_0x44be58);}},_0x36e96f=_0x4f59b5[_0x32f3b0(0x206)](getSettingsPath,_0x57125b),_0x3d15ab=dirname(_0x36e96f);!_0x4f59b5['ipMLH'](existsSync,_0x3d15ab)&&await _0x4f59b5[_0x32f3b0(0x208)](mkdir,_0x3d15ab,{'recursive':!![]}),await writeFile(_0x36e96f,JSON[_0x32f3b0(0x213)](_0x4e7025,null,0x2));}export function resolveEnvVars(_0x2333e7){const _0x148f2d=_0x300f,_0x57a9c8={'dCWVI':'object'};if(typeof _0x2333e7==='string')return _0x2333e7['replace'](/\$\{(\w+)\}/g,(_0x42fcf4,_0xb09350)=>{const _0x5d555d=_0x300f,_0x52cf51=process[_0x5d555d(0x22b)][_0xb09350];if(_0x52cf51===undefined)throw new Error('Environment\x20variable\x20'+_0xb09350+_0x5d555d(0x1f8));return _0x52cf51;});if(Array['isArray'](_0x2333e7))return _0x2333e7[_0x148f2d(0x253)](resolveEnvVars);if(_0x2333e7&&typeof _0x2333e7===_0x57a9c8['dCWVI'])return Object[_0x148f2d(0x210)](Object['entries'](_0x2333e7)['map'](([_0x4b7691,_0x3a5419])=>[_0x4b7691,resolveEnvVars(_0x3a5419)]));return _0x2333e7;}function _0xc887(){const _0x4126d4=['Failed\x20to\x20clean\x20up\x20temp\x20file\x20','cdpEndpoint','ubLuE','\x20is\x20not\x20set','pXOFa','iCwGl','koVSl','location','push','wuPlp','5506kfIRfe','XSLqU','EuTQP','933QldwxA','object','\x22\x20to\x20legacy\x20path\x20','stagehand','WQpKI','LjmSW','glWaR','headers','TEdZx','chromium','5vHDSgz','userAgent','VxhYd','jqkZJ','fromEntries','forWrite','safeMode','stringify','launchOptions','allowInsecureLocalhost','GGaOp','split','rangerDir','entries','vision','EkXIZ','repeat','ignoreHTTPSErrors','10760HiiTFM','QiRZJ','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','includes','local','tHHJp','RBTwF','args','core','clipboard-read','FAgLS','auth.json.enc','code','env','wfKrN','storageStatePath','JZWab','gYxUs','GagVD','storageState','eRVSe','headless','all','DwIhS','vaJCG','message','ranger-auth-','path','6627474DcYqEm','clipboard-write','EVSNL','--disable-setuid-sandbox','Failed\x20to\x20decrypt\x20auth\x20state:\x20','isArray','4524536KmKtKx','SyQwV','FtxGn','RDkxw','MdwSP','extraHTTPHeaders','.json','RkQyl','exRXP','mdRDY','playwright-cli','7893nAUxgO','qMqVz','SpfDp','652800lcYiYR','7932302ztSwNp','GNqPc','Epfgl','175516SNtzdg','map','ytKtU','catch','join','zoAkl','setupHeaders','NLjUr','EuijX','settings.json','length','lADWU','zJIGR','keys','legacy','xyQBg','--disable-features=WebBluetooth','filter','--allow-insecure-localhost','boolean','startsWith'];_0xc887=function(){return _0x4126d4;};return _0xc887();}const isRecord=_0x281ea7=>typeof _0x281ea7==='object'&&_0x281ea7!==null&&!Array[_0x48b743(0x23f)](_0x281ea7),asRecord=_0x2d0649=>isRecord(_0x2d0649)?_0x2d0649:undefined,mergeHeaders=(_0x47af9b,_0x4093f9)=>{const _0x26ccc5=_0x48b743,_0x3b80b1={..._0x47af9b??{},..._0x4093f9??{}};return Object[_0x26ccc5(0x1ed)](_0x3b80b1)['length']?_0x3b80b1:undefined;},SAFE_MODE_ARGS=[_0x48b743(0x1f0)],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content','--unsafely-treat-insecure-origin-as-secure=http://localhost',_0x48b743(0x1f2)];export function buildBrowserOptionsFromSettings(_0x192fa3,_0x3d2134={}){const _0x54f51c=_0x48b743,_0xf5135={'dRluC':function(_0xb697e1,_0x3afd62){return _0xb697e1(_0x3afd62);},'vcFAL':function(_0x33e040,_0x642fde){return _0x33e040(_0x642fde);},'RkQyl':function(_0x479464,_0x4841e6){return _0x479464===_0x4841e6;},'RDkxw':'string'},_0x1bd5c7=asRecord(_0x192fa3['browser']),_0x2b9141={..._0xf5135['dRluC'](asRecord,_0x1bd5c7?.[_0x54f51c(0x214)])??{}};typeof _0x3d2134[_0x54f51c(0x233)]===_0x54f51c(0x1f3)&&(_0x2b9141['headless']=_0x3d2134[_0x54f51c(0x233)]);if(_0x192fa3[_0x54f51c(0x212)]){const _0x53a391=_0x2b9141['args']??[],_0x2348e2=SAFE_MODE_ARGS['filter'](_0x28f988=>!_0x53a391['includes'](_0x28f988));_0x2b9141[_0x54f51c(0x225)]=[..._0x53a391,..._0x2348e2];}if(_0x192fa3[_0x54f51c(0x215)]){const _0x504dbb=_0x2b9141['args']??[],_0x52f1cf=ALLOW_LOCALHOST_ARGS[_0x54f51c(0x1f1)](_0x1f2b38=>!_0x504dbb[_0x54f51c(0x221)](_0x1f2b38));_0x2b9141['args']=[..._0x504dbb,..._0x52f1cf];}const _0x1501a6={..._0xf5135['vcFAL'](asRecord,_0x1bd5c7?.['contextOptions'])??{}};_0x1501a6[_0x54f51c(0x21d)]=!![];_0xf5135[_0x54f51c(0x247)](typeof _0x192fa3['userAgent'],_0xf5135[_0x54f51c(0x243)])&&(_0x1501a6[_0x54f51c(0x20d)]=_0x192fa3['userAgent']);const _0x32b9d5=mergeHeaders(asRecord(_0x1501a6['extraHTTPHeaders']),asRecord(_0x192fa3[_0x54f51c(0x209)]));return _0x32b9d5?_0x1501a6[_0x54f51c(0x245)]=_0x32b9d5:delete _0x1501a6['extraHTTPHeaders'],_0x3d2134[_0x54f51c(0x22d)]&&(_0x1501a6[_0x54f51c(0x231)]=_0x3d2134[_0x54f51c(0x22d)]),{'launchOptions':_0x2b9141,'contextOptions':_0x1501a6};}async function resolveLocalAuthPath(_0x4dea84){const _0x133c06=_0x48b743,_0x75c7f={'exRXP':function(_0x244a22,_0x1dfbb5,_0x2a959d){return _0x244a22(_0x1dfbb5,_0x2a959d);},'BoKpd':'auth.json','GGaOp':function(_0x35a76f){return _0x35a76f();},'qMqVz':function(_0x267c06,_0xa4a35f,_0x1c3ef3){return _0x267c06(_0xa4a35f,_0x1c3ef3);},'FlqUR':function(_0x40ad62,_0x340646){return _0x40ad62 instanceof _0x340646;},'RMIvq':function(_0x548312,_0x3797fe){return _0x548312(_0x3797fe);},'ihPAH':function(_0xdf19d1,_0x3624e6){return _0xdf19d1(_0x3624e6);}},_0xf11578=join(_0x4dea84,_0x133c06(0x229)),_0x2175c0=_0x75c7f[_0x133c06(0x248)](join,_0x4dea84,_0x75c7f['BoKpd']);if(existsSync(_0xf11578))try{const _0x48414e=await _0x75c7f[_0x133c06(0x216)](getToken);if(!_0x48414e)throw new Error(_0x133c06(0x220));const _0x56405a=await readFile(_0xf11578),_0x45d589=decrypt(_0x56405a,_0x48414e),_0x1e87f6=_0x75c7f['qMqVz'](join,_0x75c7f[_0x133c06(0x216)](tmpdir),_0x133c06(0x238)+Date['now']()+'.json');return await _0x75c7f[_0x133c06(0x24c)](writeFile,_0x1e87f6,_0x45d589),{'storageStatePath':_0x1e87f6,'tempAuthPath':_0x1e87f6};}catch(_0x3ac3fd){const _0x278d6c=_0x75c7f['FlqUR'](_0x3ac3fd,Error)?_0x3ac3fd['message']:_0x75c7f['RMIvq'](String,_0x3ac3fd);throw new Error(_0x133c06(0x23e)+_0x278d6c);}if(_0x75c7f['ihPAH'](existsSync,_0x2175c0))return{'storageStatePath':_0x2175c0};return{};}export async function buildPlaywrightConfig(_0x3cd45a,_0x510166,_0x24309f,_0x405561,_0x1f8216){const _0x127d2f=_0x48b743;if(_0x1f8216)return buildPlaywrightConfigCore(_0x3cd45a,_0x1f8216,_0x510166,_0x24309f,_0x405561,'stagehand');const {storageStatePath:_0x48b0ae,tempAuthPath:_0x5215b9}=await resolveLocalAuthPath(getEnvDir(_0x510166));try{const _0x4bd448=await buildPlaywrightConfigCore(_0x3cd45a,_0x48b0ae,_0x510166,_0x24309f,_0x405561,'stagehand');return{..._0x4bd448,'tempAuthPath':_0x5215b9};}catch(_0x572cfb){_0x5215b9&&await unlink(_0x5215b9)[_0x127d2f(0x255)](()=>{});throw _0x572cfb;}}export async function buildPlaywrightConfigCore(_0x390862,_0x3bb008,_0x196e7f,_0x55f7c1,_0x20777d,_0x4424f8=_0x48b743(0x205)){const _0x32f5c6=_0x48b743,_0xe82547={'rlqlD':function(_0x1fe465,_0x57a946,_0x56e8f5){return _0x1fe465(_0x57a946,_0x56e8f5);},'ZlWHZ':function(_0x1e9ba7,_0x34c169){return _0x1e9ba7===_0x34c169;},'GNqPc':_0x32f5c6(0x23d),'gYxUs':_0x32f5c6(0x20b),'eRVSe':_0x32f5c6(0x23b),'koVSl':function(_0x8f5fe3,_0x2da71c,_0x5c2a3f,_0x537076){return _0x8f5fe3(_0x2da71c,_0x5c2a3f,_0x537076);},'nmipy':'install','aKQuq':function(_0x52df2a,_0x48de46,_0x21da3e){return _0x52df2a(_0x48de46,_0x21da3e);},'EkXIZ':function(_0x4ba9a5){return _0x4ba9a5();},'xgXdT':function(_0x542819,_0x1b1d6d){return _0x542819(_0x1b1d6d);},'elcYA':'playwright-cli','ubLuE':'-cli'},_0x456706=_0x55f7c1||randomUUID(),_0x17068c=_0xe82547[_0x32f5c6(0x1fb)](join,getRangerDir(),'sessions',_0x456706),_0x3a2148=Boolean(_0x390862[_0x32f5c6(0x1f6)]),_0x505101=_0x3a2148?{'browserName':_0xe82547[_0x32f5c6(0x22f)],'cdpEndpoint':_0x390862['cdpEndpoint']}:((()=>{const _0x13a5ac=_0x32f5c6,{launchOptions:_0x5bb72e,contextOptions:_0x179f28}=_0xe82547['rlqlD'](buildBrowserOptionsFromSettings,_0x390862,{'headless':_0x20777d?![]:_0x390862[_0x13a5ac(0x233)]??!![],'storageStatePath':_0x3bb008});if(_0xe82547['ZlWHZ'](process['getuid']?.(),0x0)){const _0x1bc0fb=['--no-sandbox',_0xe82547[_0x13a5ac(0x250)]],_0x102ef3=_0x5bb72e['args']??[],_0x520fb7=_0x1bc0fb['filter'](_0x193dca=>!_0x102ef3['includes'](_0x193dca));_0x5bb72e['args']=[..._0x102ef3,..._0x520fb7];}return{'isolated':!![],'browserName':_0xe82547[_0x13a5ac(0x22f)],'launchOptions':_0x5bb72e,'contextOptions':{..._0x179f28,'permissions':[_0x13a5ac(0x227),_0xe82547[_0x13a5ac(0x232)]],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x4baab4=_0x4424f8==='playwright-cli'?{'browser':_0x505101,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x17068c,'outputMode':'file','codegen':'none'}:{'name':_0x196e7f,'browser':_0x505101,'capabilities':[_0x32f5c6(0x226),'tabs',_0xe82547['nmipy'],'pdf',_0x32f5c6(0x21a)],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x17068c};if(!_0x3a2148){const _0x4b7971=_0x4baab4['browser'],_0x492b63=_0x4b7971['contextOptions'];if(_0x492b63['userAgent']===undefined)delete _0x492b63['userAgent'];if(_0x492b63[_0x32f5c6(0x231)]===undefined)delete _0x492b63['storageState'];}const _0x38d094=_0xe82547['aKQuq'](join,_0xe82547[_0x32f5c6(0x21b)](tmpdir),'ranger-config');!_0xe82547['xgXdT'](existsSync,_0x38d094)&&await mkdir(_0x38d094,{'recursive':!![]});const _0x45bbe1=_0xe82547['ZlWHZ'](_0x4424f8,_0xe82547['elcYA'])?_0xe82547[_0x32f5c6(0x1f7)]:'',_0x64c3bc=join(_0x38d094,_0x196e7f+'-'+Date['now']()+_0x45bbe1+_0x32f5c6(0x246));return await writeFile(_0x64c3bc,JSON['stringify'](_0x4baab4,null,0x2)),{'configPath':_0x64c3bc};}export async function buildPlaywrightCliConfig(_0x360b6c,_0x53800a,_0x224277,_0x5da658,_0x25e62b){const _0x11a407=_0x48b743,_0x5b6a56={'VxhYd':function(_0x26502f,_0x3c5a82){return _0x26502f(_0x3c5a82);}};if(_0x25e62b)return buildPlaywrightConfigCore(_0x360b6c,_0x25e62b,_0x53800a,_0x224277,_0x5da658,_0x11a407(0x24a));const {storageStatePath:_0x2fce2d,tempAuthPath:_0x3cdd49}=await resolveLocalAuthPath(_0x5b6a56[_0x11a407(0x20e)](getEnvDir,_0x53800a));try{const _0x45f251=await buildPlaywrightConfigCore(_0x360b6c,_0x2fce2d,_0x53800a,_0x224277,_0x5da658,_0x11a407(0x24a));return{..._0x45f251,'tempAuthPath':_0x3cdd49};}catch(_0x87bbb0){_0x3cdd49&&await _0x5b6a56['VxhYd'](unlink,_0x3cdd49)[_0x11a407(0x255)](()=>{});throw _0x87bbb0;}}export function getNestedValue(_0x5edae4,_0x521fa6){const _0x3b5afb=_0x48b743,_0x341bed={'MBPyD':function(_0x18f76f,_0x34370c){return _0x18f76f(_0x34370c);},'TEdZx':function(_0x1e3fe9,_0x623c2e){return _0x1e3fe9===_0x623c2e;},'zJIGR':function(_0x5db6a,_0x13c46a){return _0x5db6a===_0x13c46a;},'mdRDY':function(_0x2ab72b,_0x5f41a0){return _0x2ab72b!==_0x5f41a0;}},_0x286327=_0x341bed['MBPyD'](parseKeyPath,_0x521fa6);let _0xe2f9d5=_0x5edae4;for(const _0x39e22e of _0x286327){if(_0x341bed[_0x3b5afb(0x20a)](_0xe2f9d5,null)||_0x341bed[_0x3b5afb(0x1ec)](_0xe2f9d5,undefined)||_0x341bed[_0x3b5afb(0x249)](typeof _0xe2f9d5,'object'))return undefined;_0xe2f9d5=_0xe2f9d5[_0x39e22e];}return _0xe2f9d5;}export function setNestedValue(_0x12862d,_0x254a7f,_0x504d86){const _0x14557b=_0x48b743,_0x267307={'JZWab':function(_0x5784e8,_0xac2135){return _0x5784e8(_0xac2135);},'mVkzw':function(_0x5bc8aa,_0x22e199){return _0x5bc8aa in _0x22e199;},'zoAkl':function(_0x304590,_0x3f3ba4){return _0x304590!==_0x3f3ba4;}},_0xb6586e=_0x267307[_0x14557b(0x22e)](parseKeyPath,_0x254a7f);let _0x2a84bc=_0x12862d;for(let _0x5a6d83=0x0;_0x5a6d83<_0xb6586e[_0x14557b(0x25c)]-0x1;_0x5a6d83++){const _0x450074=_0xb6586e[_0x5a6d83];(!_0x267307['mVkzw'](_0x450074,_0x2a84bc)||_0x267307[_0x14557b(0x257)](typeof _0x2a84bc[_0x450074],_0x14557b(0x203)))&&(_0x2a84bc[_0x450074]={}),_0x2a84bc=_0x2a84bc[_0x450074];}_0x2a84bc[_0xb6586e[_0xb6586e['length']-0x1]]=_0x504d86;}export function deleteNestedValue(_0x2bd6f1,_0x88e6c1){const _0x53d923=_0x48b743,_0x185ad8={'kdqar':function(_0x775722,_0x5ea2ab){return _0x775722!==_0x5ea2ab;},'XSLqU':function(_0x1393fe,_0x8130b8){return _0x1393fe===_0x8130b8;},'cxSea':function(_0x4b1b49,_0x388793){return _0x4b1b49!==_0x388793;},'wfKrN':function(_0x10db4f,_0x1439fa){return _0x10db4f-_0x1439fa;}},_0xb4f40d=parseKeyPath(_0x88e6c1);let _0x3bc83f=_0x2bd6f1;for(let _0x4d8337=0x0;_0x4d8337<_0xb4f40d[_0x53d923(0x25c)]-0x1;_0x4d8337++){if(_0x3bc83f===null||_0x3bc83f===undefined||_0x185ad8['kdqar'](typeof _0x3bc83f,_0x53d923(0x203)))return![];_0x3bc83f=_0x3bc83f[_0xb4f40d[_0x4d8337]];}if(_0x185ad8[_0x53d923(0x200)](_0x3bc83f,null)||_0x3bc83f===undefined||_0x185ad8['cxSea'](typeof _0x3bc83f,'object'))return![];const _0x349e32=_0xb4f40d[_0x185ad8[_0x53d923(0x22c)](_0xb4f40d[_0x53d923(0x25c)],0x1)];if(_0x349e32 in _0x3bc83f)return delete _0x3bc83f[_0x349e32],!![];return![];}function parseKeyPath(_0x53ad15){const _0xccf886=_0x48b743,_0x655e0e={'tHHJp':'header','LjmSW':'setupHeader'},_0x16b4ac=_0x53ad15[_0xccf886(0x217)]('.');return _0x16b4ac[0x0]===_0x655e0e[_0xccf886(0x223)]&&(_0x16b4ac[0x0]=_0xccf886(0x209)),_0x16b4ac[0x0]===_0x655e0e[_0xccf886(0x207)]&&(_0x16b4ac[0x0]=_0xccf886(0x258)),_0x16b4ac;}export function formatSettings(_0x575789,_0x5ec6a9=0x0){const _0x242f2a=_0x48b743,_0x5591f2={'SyQwV':function(_0x3fc89e,_0x151085){return _0x3fc89e===_0x151085;},'tlNKK':function(_0x104ebf,_0x5effcc){return _0x104ebf!==_0x5effcc;}},_0x27a04d=[],_0x31a329='\x20\x20'[_0x242f2a(0x21c)](_0x5ec6a9);for(const [_0x2393b6,_0x510cb9]of Object[_0x242f2a(0x219)](_0x575789)){if(_0x5591f2[_0x242f2a(0x241)](_0x510cb9,undefined))continue;if(typeof _0x510cb9==='object'&&_0x5591f2['tlNKK'](_0x510cb9,null)){_0x27a04d['push'](''+_0x31a329+_0x2393b6+':');for(const [_0x22e55b,_0x422812]of Object['entries'](_0x510cb9)){_0x27a04d['push'](_0x31a329+'\x20\x20'+_0x22e55b+':\x20'+_0x422812);}}else _0x27a04d[_0x242f2a(0x1fd)](''+_0x31a329+_0x2393b6+':\x20'+_0x510cb9);}return _0x27a04d[_0x242f2a(0x256)]('\x0a');}
1
+ const _0x34632f=_0x289a;function _0x289a(_0x2b2f58,_0x44c069){_0x2b2f58=_0x2b2f58-0x1a3;const _0x2f0442=_0x2f04();let _0x289a8f=_0x2f0442[_0x2b2f58];return _0x289a8f;}(function(_0x41321e,_0x1675e0){const _0x2d6e49=_0x289a,_0x48f53e=_0x41321e();while(!![]){try{const _0x585cc3=parseInt(_0x2d6e49(0x200))/0x1*(parseInt(_0x2d6e49(0x1bb))/0x2)+parseInt(_0x2d6e49(0x1a7))/0x3*(parseInt(_0x2d6e49(0x1ce))/0x4)+-parseInt(_0x2d6e49(0x213))/0x5+parseInt(_0x2d6e49(0x1e0))/0x6+-parseInt(_0x2d6e49(0x210))/0x7*(-parseInt(_0x2d6e49(0x1c0))/0x8)+parseInt(_0x2d6e49(0x206))/0x9*(-parseInt(_0x2d6e49(0x1d3))/0xa)+parseInt(_0x2d6e49(0x1b8))/0xb*(-parseInt(_0x2d6e49(0x1e3))/0xc);if(_0x585cc3===_0x1675e0)break;else _0x48f53e['push'](_0x48f53e['shift']());}catch(_0x7572af){_0x48f53e['push'](_0x48f53e['shift']());}}}(_0x2f04,0xb601a));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{chromium}from'playwright';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function _0x2f04(){const _0x345e04=['rRJyK','extraHTTPHeaders','16970IzdLyG','catch','--disable-setuid-sandbox','sessions','ZxIaF','boolean','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','auth.json.enc','UmZTH','header','auth.json','warn','Default','7951410qmEDJn','none','headless','48456LTJtBT','replace','--disable-web-security','BKhaG','playwright-cli','yZxrx','aXPhS','forWrite','JZfWM','getuid','baseUrl','core','legacy','chromium','MLHNy','LeGtP','setupHeaders','fromEntries','PEvUc','push','stagehand','location','configPath','xwFIt','clipboard-write','--unsafely-treat-insecure-origin-as-secure=http://localhost','includes','executablePath','GhLPL','795559eayCPe','Crtes','qPPee','onAWN','DtZaw','code','495BkuBwQ','cBVsf','eitiL','filter','JxauN','message','userAgent','nlBof','wQpXm','string','917FmkQwr','env','pQIio','3676815Hdxhfs','ECACs','zVeHJ','BImJD','browser','cdpEndpoint','lbuBH','install','rangerDir','storageState','storageStatePath','wiRWw','XgvQI','length','settings.json','uvMLb','gfWvo','Environment\x20variable\x20','jbQNT','33wlFbpX','LFbgg','sXJst','entries','VPjmX','fwfmi','--disable-features=WebBluetooth','QjUyF','safeMode','pdbUi','mBeNK','RFkod','HPWuZ','GNwfU','VetLr','parse','ALqqM','4334ivgueL','now','REvoo','2cTOZij','map','tabs','zntfG','args','45928NIlxwh','ranger-config','nova-user-data','xMbHw','sXwZo','path','kQoUp','launchOptions','Hnllh','EEion','vYIvx','isArray','ignoreHTTPSErrors','object','106292JtPBOy','vDfGj','ODOnl'];_0x2f04=function(){return _0x345e04;};return _0x2f04();}function findEnvInRoot(_0x101ebc,_0x5c9513){const _0x352662=_0x289a,_0x38dd24={'xwFIt':'local','NIShp':function(_0x47b724,_0x2707d6,_0xf29dd0){return _0x47b724(_0x2707d6,_0xf29dd0);},'XgvQI':function(_0x1f9851,_0x558652){return _0x1f9851(_0x558652);},'DtZaw':function(_0x29ce47,_0x33ca30){return _0x29ce47(_0x33ca30);},'mBeNK':function(_0xaac68b,_0x57fc07){return _0xaac68b!==_0x57fc07;}},_0x5d9395=join(_0x5c9513,'ci',_0x101ebc),_0x1c065d=join(_0x5c9513,_0x38dd24[_0x352662(0x1fa)],_0x101ebc),_0x23588f=join(_0x5c9513,_0x101ebc),_0x240af8=join(_0x5c9513,_0x38dd24['xwFIt']),_0x29b0d5=_0x38dd24['NIShp'](join,_0x5c9513,'ci');if(_0x38dd24[_0x352662(0x21f)](existsSync,_0x5d9395))return _0x5d9395;if(existsSync(_0x1c065d))return _0x1c065d;if(_0x38dd24[_0x352662(0x204)](existsSync,_0x23588f)&&(_0x38dd24[_0x352662(0x1b1)](_0x23588f,_0x240af8)&&_0x23588f!==_0x29b0d5?!![]:hasLegacyProfileFiles(_0x23588f)))return _0x23588f;return null;}export function getEnvDir(_0x5dd19e,_0x474c4b={}){const _0x2a8846=_0x289a,_0x378ec4={'JZfWM':function(_0x483e34){return _0x483e34();},'eitiL':function(_0x332130,_0x535abc,_0x1615fe){return _0x332130(_0x535abc,_0x1615fe);},'KmsZH':function(_0x1af729,_0x48a1ab){return _0x1af729(_0x48a1ab);},'OHtRQ':function(_0x3c4039,_0x309783,_0x45f71c){return _0x3c4039(_0x309783,_0x45f71c);},'fwfmi':function(_0x147c4a,_0x5ca595){return _0x147c4a!==_0x5ca595;},'ZVvro':function(_0x5b8d79,_0x5495a3){return _0x5b8d79(_0x5495a3);},'DFMjm':function(_0x3eb4c5,_0x445f58,_0x22045d){return _0x3eb4c5(_0x445f58,_0x22045d);},'UmZTH':function(_0x381563,_0x5b875d,_0x35a417,_0x427d89){return _0x381563(_0x5b875d,_0x35a417,_0x427d89);},'yMXOA':'local'},_0x5b97bf=_0x378ec4[_0x2a8846(0x1eb)](getRangerDir),_0x374c09=_0x378ec4[_0x2a8846(0x208)](findEnvInRoot,_0x5dd19e,_0x5b97bf);if(_0x374c09){if(_0x474c4b['forWrite']&&_0x378ec4['KmsZH'](isLegacyEnvPath,_0x374c09))throw _0x378ec4['OHtRQ'](legacyWriteError,_0x5dd19e,_0x374c09);return _0x374c09;}const _0x16dcb8=_0x378ec4['JZfWM'](getRangerHomeDir);if(_0x378ec4[_0x2a8846(0x1ac)](_0x16dcb8,_0x5b97bf)){const _0x47d4d6=_0x378ec4['eitiL'](findEnvInRoot,_0x5dd19e,_0x16dcb8);if(_0x47d4d6){if(_0x474c4b[_0x2a8846(0x1ea)]&&_0x378ec4['ZVvro'](isLegacyEnvPath,_0x47d4d6))throw _0x378ec4['DFMjm'](legacyWriteError,_0x5dd19e,_0x47d4d6);return _0x47d4d6;}}const _0x2726f6=_0x378ec4[_0x2a8846(0x1db)](join,_0x16dcb8,_0x378ec4['yMXOA'],_0x5dd19e);if(_0x474c4b[_0x2a8846(0x1ea)])throw legacyWriteError(_0x5dd19e,_0x2726f6);return _0x2726f6;}function isLegacyEnvPath(_0x3dd36f){const _0x45c81c={'XYedy':function(_0x16f876){return _0x16f876();}},_0x6953fc=getRangerDir(),_0x2ca706=_0x45c81c['XYedy'](getRangerHomeDir);for(const _0x2f0698 of new Set([_0x6953fc,_0x2ca706])){const _0x4659e8=_0x2f0698['endsWith']('/')?_0x2f0698:_0x2f0698+'/';if(_0x3dd36f===_0x2f0698||_0x3dd36f['startsWith'](_0x4659e8))return!![];}return![];}function legacyWriteError(_0x4dbc5a,_0x1fc43d){const _0x32ab01=_0x289a,_0x3e85ba={'BKhaG':function(_0x120cc7,_0x4fb99b){return _0x120cc7+_0x4fb99b;}};return new Error(_0x3e85ba[_0x32ab01(0x1e6)]('Refusing\x20to\x20write\x20profile\x20\x22'+_0x4dbc5a+'\x22\x20to\x20legacy\x20path\x20'+_0x1fc43d+'.\x0a'+_0x32ab01(0x1d9),'\x20\x20ranger\x20profile\x20add\x20<name>\x0a')+'See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.');}export function findExistingEnv(_0x8a9fa9,_0x2920df){const _0x3ac60a=_0x289a,_0x28f086={'Hnllh':_0x3ac60a(0x1ef),'gfWvo':function(_0x5e9fff,_0x52752c,_0xcac19e){return _0x5e9fff(_0x52752c,_0xcac19e);},'ojvzu':'local','lukyE':function(_0x3d8aa6,_0x3a2dec,_0x2858d8,_0xb9712c){return _0x3d8aa6(_0x3a2dec,_0x2858d8,_0xb9712c);},'eGgbi':function(_0x297786,_0x215840,_0x5bcada,_0x5ddd05){return _0x297786(_0x215840,_0x5bcada,_0x5ddd05);},'kQoUp':function(_0x20f235,_0x2fadc3){return _0x20f235(_0x2fadc3);},'uvMLb':function(_0x4b6150,_0x5a9ae2){return _0x4b6150===_0x5a9ae2;},'JxauN':function(_0x5dcbd0,_0x1601e9){return _0x5dcbd0===_0x1601e9;}},_0x42ef32=_0x2920df?.[_0x3ac60a(0x21b)],_0x25cf81=_0x42ef32?[_0x42ef32]:[getRangerDir(),getRangerHomeDir()]['filter']((_0x71dcce,_0x30baeb,_0x260c07)=>_0x260c07['indexOf'](_0x71dcce)===_0x30baeb),_0x156c75=_0x2920df?.['locations']??['ci','local',_0x28f086[_0x3ac60a(0x1c8)]];for(const _0x1b5e64 of _0x25cf81){const _0x5d277c=_0x28f086['gfWvo'](join,_0x1b5e64,_0x28f086['ojvzu']),_0x304fbf=_0x28f086[_0x3ac60a(0x1a4)](join,_0x1b5e64,'ci'),_0x40ca39=[{'location':'ci','path':_0x28f086['lukyE'](join,_0x1b5e64,'ci',_0x8a9fa9)},{'location':_0x28f086['ojvzu'],'path':_0x28f086['eGgbi'](join,_0x1b5e64,'local',_0x8a9fa9)},{'location':_0x28f086[_0x3ac60a(0x1c8)],'path':_0x28f086['gfWvo'](join,_0x1b5e64,_0x8a9fa9)}];for(const _0x4d0c77 of _0x40ca39){if(_0x156c75[_0x3ac60a(0x1fd)](_0x4d0c77[_0x3ac60a(0x1f8)])&&_0x28f086[_0x3ac60a(0x1c6)](existsSync,_0x4d0c77[_0x3ac60a(0x1c5)])){if(_0x28f086[_0x3ac60a(0x1a3)](_0x4d0c77['location'],'legacy')&&(_0x28f086[_0x3ac60a(0x1a3)](_0x4d0c77[_0x3ac60a(0x1c5)],_0x5d277c)||_0x28f086[_0x3ac60a(0x20a)](_0x4d0c77['path'],_0x304fbf))&&!_0x28f086[_0x3ac60a(0x1c6)](hasLegacyProfileFiles,_0x4d0c77['path']))continue;return{'path':_0x4d0c77[_0x3ac60a(0x1c5)],'location':_0x4d0c77['location']};}}}return null;}function hasLegacyProfileFiles(_0x3990db){const _0x32793a=_0x289a,_0x4a9ca3={'HOuBy':function(_0x54d91b,_0x2470c3){return _0x54d91b(_0x2470c3);},'yZxrx':'settings.json','IXURe':_0x32793a(0x1dd),'mtGRy':function(_0x39145a,_0x3c31d2,_0x2fcb70){return _0x39145a(_0x3c31d2,_0x2fcb70);},'pQIio':'auth.json.enc'};return _0x4a9ca3['HOuBy'](existsSync,join(_0x3990db,_0x4a9ca3[_0x32793a(0x1e8)]))||existsSync(join(_0x3990db,_0x4a9ca3['IXURe']))||existsSync(_0x4a9ca3['mtGRy'](join,_0x3990db,_0x4a9ca3[_0x32793a(0x212)]));}export function isEnvCi(_0x112a14){const _0x2f442f=_0x289a,_0x1e8923={'pdbUi':function(_0x13baf8,_0x226bdc,_0x20301c,_0x5753e6){return _0x13baf8(_0x226bdc,_0x20301c,_0x5753e6);},'HPWuZ':function(_0x108dd1){return _0x108dd1();},'GNwfU':function(_0x5e12d4){return _0x5e12d4();},'rRJyK':function(_0x9e9030,_0x258e87){return _0x9e9030(_0x258e87);}};if(existsSync(_0x1e8923[_0x2f442f(0x1b0)](join,_0x1e8923['HPWuZ'](getRangerDir),'ci',_0x112a14)))return!![];const _0x45f655=_0x1e8923[_0x2f442f(0x1b4)](getRangerHomeDir);if(_0x45f655!==_0x1e8923[_0x2f442f(0x1b3)](getRangerDir)&&_0x1e8923[_0x2f442f(0x1d1)](existsSync,_0x1e8923['pdbUi'](join,_0x45f655,'ci',_0x112a14)))return!![];return![];}export async function cleanupTempFiles(_0x170d08){const _0xf03c09=_0x289a,_0x5a5406={'etpXd':'ENOENT'},_0x2ace40=[_0x170d08['tempAuthPath'],_0x170d08[_0xf03c09(0x1f9)]]['filter'](Boolean);await Promise['all'](_0x2ace40['map'](_0xb5524d=>unlink(_0xb5524d)['catch'](_0x137899=>{const _0x58f5a6=_0xf03c09;_0x137899[_0x58f5a6(0x205)]!==_0x5a5406['etpXd']&&console[_0x58f5a6(0x1de)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0xb5524d+':',_0x137899[_0x58f5a6(0x20b)]);})));}export function getSettingsPath(_0x13b8a3){const _0x2c7e6b=_0x289a,_0x40c659={'ALqqM':function(_0x55bff3,_0x160f7c,_0x448e95){return _0x55bff3(_0x160f7c,_0x448e95);},'zntfG':function(_0x1489c6,_0xff6b3c){return _0x1489c6(_0xff6b3c);},'pRjXo':_0x2c7e6b(0x221)};return _0x40c659[_0x2c7e6b(0x1b7)](join,_0x40c659[_0x2c7e6b(0x1be)](getEnvDir,_0x13b8a3),_0x40c659['pRjXo']);}export async function loadSettings(_0x22804d){const _0x42b3b0=_0x289a,_0x126303={'tctFH':function(_0x1f626b,_0x9f1773){return _0x1f626b(_0x9f1773);},'jbQNT':'utf-8'},_0x1a10dd=_0x126303['tctFH'](getSettingsPath,_0x22804d);if(!existsSync(_0x1a10dd))return{};try{const _0x2ce6e0=await readFile(_0x1a10dd,_0x126303[_0x42b3b0(0x1a6)]);return JSON[_0x42b3b0(0x1b6)](_0x2ce6e0);}catch{return{};}}export async function saveSettings(_0x3ac1cb,_0x80fd89){const _0xade634=_0x289a,_0xda342f={'hefOg':function(_0x1161eb,_0x5e87b6){return _0x1161eb(_0x5e87b6);},'VPjmX':function(_0x1fe397,_0x422a26){return _0x1fe397(_0x422a26);}},_0x5d9b11=getSettingsPath(_0x3ac1cb),_0x53e816=_0xda342f['hefOg'](dirname,_0x5d9b11);!_0xda342f[_0xade634(0x1ab)](existsSync,_0x53e816)&&await mkdir(_0x53e816,{'recursive':!![]}),await writeFile(_0x5d9b11,JSON['stringify'](_0x80fd89,null,0x2));}export function resolveEnvVars(_0x4e911e){const _0x35cb83=_0x289a,_0x2f529d={'MLHNy':function(_0x45ef8b,_0x3a5cb5){return _0x45ef8b===_0x3a5cb5;},'zPjfc':_0x35cb83(0x20f),'cQoCp':_0x35cb83(0x1cd)};if(_0x2f529d[_0x35cb83(0x1f1)](typeof _0x4e911e,_0x2f529d['zPjfc']))return _0x4e911e[_0x35cb83(0x1e4)](/\$\{(\w+)\}/g,(_0x2db46a,_0xc2e4fc)=>{const _0x4cd000=_0x35cb83,_0x104ba3=process[_0x4cd000(0x211)][_0xc2e4fc];if(_0x2f529d[_0x4cd000(0x1f1)](_0x104ba3,undefined))throw new Error(_0x4cd000(0x1a5)+_0xc2e4fc+'\x20is\x20not\x20set');return _0x104ba3;});if(Array[_0x35cb83(0x1cb)](_0x4e911e))return _0x4e911e['map'](resolveEnvVars);if(_0x4e911e&&typeof _0x4e911e===_0x2f529d['cQoCp'])return Object[_0x35cb83(0x1f4)](Object[_0x35cb83(0x1aa)](_0x4e911e)[_0x35cb83(0x1bc)](([_0x4e637a,_0x40a613])=>[_0x4e637a,resolveEnvVars(_0x40a613)]));return _0x4e911e;}const isRecord=_0x4c49fd=>typeof _0x4c49fd===_0x34632f(0x1cd)&&_0x4c49fd!==null&&!Array[_0x34632f(0x1cb)](_0x4c49fd),asRecord=_0x11bf88=>isRecord(_0x11bf88)?_0x11bf88:undefined,mergeHeaders=(_0x41dc79,_0x45c474)=>{const _0x15dd33=_0x34632f,_0x4cac31={'KAQpL':function(_0x3bce8c,_0x3b89e8){return _0x3bce8c??_0x3b89e8;}},_0xb72bb2={..._0x4cac31['KAQpL'](_0x41dc79,{}),..._0x4cac31['KAQpL'](_0x45c474,{})};return Object['keys'](_0xb72bb2)[_0x15dd33(0x220)]?_0xb72bb2:undefined;},SAFE_MODE_ARGS=[_0x34632f(0x1ad)],ALLOW_LOCALHOST_ARGS=[_0x34632f(0x1e5),'--allow-running-insecure-content',_0x34632f(0x1fc),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x2fb29c,_0x82a2df={}){const _0x4ef969=_0x34632f,_0x5524ba={'wiRWw':function(_0x410c70,_0x260ce5){return _0x410c70(_0x260ce5);},'JUcnq':function(_0x448942,_0x11bade){return _0x448942===_0x11bade;},'MnSnS':'string','ECACs':function(_0x137fb4,_0x5aaca8,_0x2f9619){return _0x137fb4(_0x5aaca8,_0x2f9619);}},_0x4cae35=asRecord(_0x2fb29c[_0x4ef969(0x217)]),_0xe9d586={..._0x5524ba['wiRWw'](asRecord,_0x4cae35?.[_0x4ef969(0x1c7)])??{}};_0x5524ba['JUcnq'](typeof _0x82a2df['headless'],_0x4ef969(0x1d8))&&(_0xe9d586[_0x4ef969(0x1e2)]=_0x82a2df['headless']);if(_0x2fb29c[_0x4ef969(0x1af)]){const _0x7f41b8=_0xe9d586['args']??[],_0x25cf99=SAFE_MODE_ARGS[_0x4ef969(0x209)](_0x525119=>!_0x7f41b8[_0x4ef969(0x1fd)](_0x525119));_0xe9d586['args']=[..._0x7f41b8,..._0x25cf99];}if(_0x2fb29c['allowInsecureLocalhost']){const _0x36e112=_0xe9d586['args']??[],_0x3354df=ALLOW_LOCALHOST_ARGS[_0x4ef969(0x209)](_0x5d04dc=>!_0x36e112[_0x4ef969(0x1fd)](_0x5d04dc));_0xe9d586['args']=[..._0x36e112,..._0x3354df];}const _0xa28ebe={...asRecord(_0x4cae35?.['contextOptions'])??{}};_0xa28ebe[_0x4ef969(0x1cc)]=!![];typeof _0x2fb29c['userAgent']===_0x5524ba['MnSnS']&&(_0xa28ebe['userAgent']=_0x2fb29c['userAgent']);const _0x17d3ee=_0x5524ba[_0x4ef969(0x214)](mergeHeaders,asRecord(_0xa28ebe[_0x4ef969(0x1d2)]),_0x5524ba[_0x4ef969(0x21e)](asRecord,_0x2fb29c['headers']));return _0x17d3ee?_0xa28ebe['extraHTTPHeaders']=_0x17d3ee:delete _0xa28ebe[_0x4ef969(0x1d2)],_0x82a2df[_0x4ef969(0x21d)]&&(_0xa28ebe[_0x4ef969(0x21c)]=_0x82a2df['storageStatePath']),{'launchOptions':_0xe9d586,'contextOptions':_0xa28ebe};}export async function resolveProfileStorageState(_0x4b47af){const _0x37d50f={'KOLfU':function(_0x8a009,_0xfe664e){return _0x8a009(_0xfe664e);}};return _0x37d50f['KOLfU'](resolveLocalAuthPath,getEnvDir(_0x4b47af));}async function resolveLocalAuthPath(_0x32f936){const _0x5da6fc=_0x34632f,_0x431960={'sXwZo':_0x5da6fc(0x1dd),'VPgSj':function(_0x391eff,_0x219ea2){return _0x391eff(_0x219ea2);},'TtfmZ':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','vzXFg':function(_0x38b680,_0x407bb0,_0x16baa2){return _0x38b680(_0x407bb0,_0x16baa2);},'lmWdx':function(_0x364df2,_0x218149){return _0x364df2(_0x218149);}},_0x277fd0=join(_0x32f936,_0x5da6fc(0x1da)),_0x1f50e3=join(_0x32f936,_0x431960[_0x5da6fc(0x1c4)]);if(_0x431960['VPgSj'](existsSync,_0x277fd0))try{const _0x102c3e=await getToken();if(!_0x102c3e)throw new Error(_0x431960['TtfmZ']);const _0x157a09=await _0x431960['VPgSj'](readFile,_0x277fd0),_0x5280b8=decrypt(_0x157a09,_0x102c3e),_0x26fc55=_0x431960['vzXFg'](join,tmpdir(),'ranger-auth-'+Date[_0x5da6fc(0x1b9)]()+'.json');return await _0x431960['vzXFg'](writeFile,_0x26fc55,_0x5280b8),{'storageStatePath':_0x26fc55,'tempAuthPath':_0x26fc55};}catch(_0x264144){const _0x167978=_0x264144 instanceof Error?_0x264144[_0x5da6fc(0x20b)]:String(_0x264144);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x167978);}if(_0x431960['lmWdx'](existsSync,_0x1f50e3))return{'storageStatePath':_0x1f50e3};return{};}export async function buildPlaywrightConfig(_0x2ceb9c,_0x308ebf,_0x33c659,_0x1b41ea,_0x2ca481){const _0x2eda33=_0x34632f,_0x5c5719={'GhLPL':function(_0x523110,_0x55c27b){return _0x523110(_0x55c27b);},'BImJD':function(_0x5dd028,_0x2a5bf4,_0x3a2159,_0x419dd0,_0xf3586f,_0x53f764,_0x4d48ed){return _0x5dd028(_0x2a5bf4,_0x3a2159,_0x419dd0,_0xf3586f,_0x53f764,_0x4d48ed);},'yIZcG':_0x2eda33(0x1f7)};if(_0x2ca481)return buildPlaywrightConfigCore(_0x2ceb9c,_0x2ca481,_0x308ebf,_0x33c659,_0x1b41ea,_0x2eda33(0x1f7));const {storageStatePath:_0x1ae2fc,tempAuthPath:_0x30c640}=await resolveLocalAuthPath(_0x5c5719[_0x2eda33(0x1ff)](getEnvDir,_0x308ebf));try{const _0x222780=await _0x5c5719[_0x2eda33(0x216)](buildPlaywrightConfigCore,_0x2ceb9c,_0x1ae2fc,_0x308ebf,_0x33c659,_0x1b41ea,_0x5c5719['yIZcG']);return{..._0x222780,'tempAuthPath':_0x30c640};}catch(_0xb109f3){_0x30c640&&await _0x5c5719[_0x2eda33(0x1ff)](unlink,_0x30c640)[_0x2eda33(0x1d4)](()=>{});throw _0xb109f3;}}export async function buildPlaywrightConfigCore(_0xe64964,_0x525fb2,_0x307416,_0x3e0292,_0xdde83b,_0x3a6b71='stagehand'){const _0x401662=_0x34632f,_0x2e810c={'CEHQb':function(_0x3d8207,_0x42c9be){return _0x3d8207===_0x42c9be;},'WebdJ':'--no-sandbox','wQpXm':_0x401662(0x1f0),'yCuHr':'clipboard-read','sXJst':_0x401662(0x1fb),'vYIvx':function(_0xfd6ad0,_0x7fe29f,_0xe03882,_0x5d2e2a){return _0xfd6ad0(_0x7fe29f,_0xe03882,_0x5d2e2a);},'vDfGj':function(_0x18a332){return _0x18a332();},'zVeHJ':'sessions','RBdPf':function(_0x4ba87d,_0x46b3e5){return _0x4ba87d(_0x46b3e5);},'RABjo':function(_0x57c581,_0x124962){return _0x57c581===_0x124962;},'Crtes':_0x401662(0x1e7),'AiDjD':_0x401662(0x1ee),'REvoo':_0x401662(0x21a),'zssFq':'pdf','qPPee':'allow','fnKLi':function(_0x1fdf34,_0x3d8caf,_0x5bb950){return _0x1fdf34(_0x3d8caf,_0x5bb950);},'cBVsf':_0x401662(0x1c1),'nlBof':function(_0xe26ba8,_0x4a0f27){return _0xe26ba8(_0x4a0f27);},'LeGtP':function(_0x8babf,_0x56ec71){return _0x8babf===_0x56ec71;},'aXPhS':'-cli','ODOnl':function(_0x448e43,_0x59c0c0,_0x192a79){return _0x448e43(_0x59c0c0,_0x192a79);},'YWQJj':function(_0x31ccb8,_0x1d509e,_0x2aa15c){return _0x31ccb8(_0x1d509e,_0x2aa15c);}},_0x82e74b=_0x3e0292||randomUUID(),_0x172f4b=_0x2e810c[_0x401662(0x1ca)](join,_0x2e810c[_0x401662(0x1cf)](getRangerDir),_0x2e810c[_0x401662(0x215)],_0x82e74b),_0x308424=_0x2e810c['RBdPf'](Boolean,_0xe64964['cdpEndpoint']),_0x1682b1=_0x308424?{'browserName':_0x2e810c[_0x401662(0x20e)],'cdpEndpoint':_0xe64964[_0x401662(0x218)]}:((()=>{const _0x2a7071=_0x401662,{launchOptions:_0x537d8d,contextOptions:_0x4a2b59}=buildBrowserOptionsFromSettings(_0xe64964,{'headless':_0xdde83b?![]:_0xe64964[_0x2a7071(0x1e2)]??!![],'storageStatePath':_0x525fb2});if(_0x2e810c['CEHQb'](process[_0x2a7071(0x1ec)]?.(),0x0)){const _0x2aeec1=[_0x2e810c['WebdJ'],'--disable-setuid-sandbox'],_0x3ffa1f=_0x537d8d['args']??[],_0x23fe47=_0x2aeec1[_0x2a7071(0x209)](_0x5834cf=>!_0x3ffa1f[_0x2a7071(0x1fd)](_0x5834cf));_0x537d8d[_0x2a7071(0x1bf)]=[..._0x3ffa1f,..._0x23fe47];}return{'isolated':!![],'browserName':_0x2e810c['wQpXm'],'launchOptions':_0x537d8d,'contextOptions':{..._0x4a2b59,'permissions':[_0x2e810c['yCuHr'],_0x2e810c[_0x2a7071(0x1a9)]],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x8158aa=_0x2e810c['RABjo'](_0x3a6b71,_0x2e810c[_0x401662(0x201)])?{'browser':_0x1682b1,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x172f4b,'outputMode':'file','codegen':_0x401662(0x1e1)}:{'name':_0x307416,'browser':_0x1682b1,'capabilities':[_0x2e810c['AiDjD'],_0x401662(0x1bd),_0x2e810c[_0x401662(0x1ba)],_0x2e810c['zssFq'],'vision'],'imageResponses':_0x2e810c[_0x401662(0x202)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x172f4b};if(!_0x308424){const _0x2fad4f=_0x8158aa[_0x401662(0x217)],_0x30a116=_0x2fad4f['contextOptions'];if(_0x2e810c['CEHQb'](_0x30a116[_0x401662(0x20c)],undefined))delete _0x30a116['userAgent'];if(_0x30a116['storageState']===undefined)delete _0x30a116[_0x401662(0x21c)];}const _0x5be462=_0x2e810c['fnKLi'](join,tmpdir(),_0x2e810c[_0x401662(0x207)]);!_0x2e810c[_0x401662(0x20d)](existsSync,_0x5be462)&&await mkdir(_0x5be462,{'recursive':!![]});const _0x332226=_0x2e810c[_0x401662(0x1f2)](_0x3a6b71,_0x401662(0x1e7))?_0x2e810c[_0x401662(0x1e9)]:'',_0x5e57a3=_0x2e810c[_0x401662(0x1d0)](join,_0x5be462,_0x307416+'-'+Date[_0x401662(0x1b9)]()+_0x332226+'.json');return await _0x2e810c['YWQJj'](writeFile,_0x5e57a3,JSON['stringify'](_0x8158aa,null,0x2)),{'configPath':_0x5e57a3,'storageStatePath':_0x525fb2};}export async function buildPlaywrightCliConfig(_0x41d66c,_0x3fb49b,_0x1a2e67,_0x4986c1,_0xf2b8cf){const _0x334189=_0x34632f,_0x4d7c9b={'LQQfz':function(_0x5ca09d,_0x164420){return _0x5ca09d(_0x164420);}};if(_0xf2b8cf)return buildPlaywrightConfigCore(_0x41d66c,_0xf2b8cf,_0x3fb49b,_0x1a2e67,_0x4986c1,_0x334189(0x1e7));const {storageStatePath:_0x8171d4,tempAuthPath:_0x107bb4}=await resolveLocalAuthPath(getEnvDir(_0x3fb49b));try{const _0xb83700=await buildPlaywrightConfigCore(_0x41d66c,_0x8171d4,_0x3fb49b,_0x1a2e67,_0x4986c1,'playwright-cli');return{..._0xb83700,'tempAuthPath':_0x107bb4};}catch(_0x26e908){_0x107bb4&&await _0x4d7c9b['LQQfz'](unlink,_0x107bb4)['catch'](()=>{});throw _0x26e908;}}export async function buildNovaActCliConfig(_0x42fd80,_0x5ae1c6,_0x18f5fb,_0x438801,_0x1a85da){const _0x48a14a=_0x34632f,_0x521e74={'uDLwO':function(_0x192aac,_0x16b079){return _0x192aac(_0x16b079);},'KqsUs':function(_0x2ee752){return _0x2ee752();},'LFbgg':_0x48a14a(0x1d6),'ROaEj':function(_0x582022,_0x18b6bc,_0x264e41){return _0x582022(_0x18b6bc,_0x264e41);},'VetLr':_0x48a14a(0x1c2),'vGvxf':function(_0x2945c1,_0x24ab9b,_0x4c2a2b){return _0x2945c1(_0x24ab9b,_0x4c2a2b);},'Cotve':function(_0x52e9cb,_0x13122e){return _0x52e9cb===_0x13122e;},'mbuoX':function(_0x2729aa,_0x3694d4){return _0x2729aa(_0x3694d4);}},{storageStatePath:_0x409b0b,tempAuthPath:_0x5eb241}=_0x1a85da?{'storageStatePath':_0x1a85da,'tempAuthPath':undefined}:await _0x521e74['uDLwO'](resolveLocalAuthPath,getEnvDir(_0x5ae1c6)),_0x6a67be=_0x18f5fb||randomUUID(),_0x4d8b5f=join(_0x521e74['KqsUs'](getRangerDir),_0x521e74[_0x48a14a(0x1a8)],_0x6a67be),_0x4b3a4c=_0x521e74['ROaEj'](join,_0x4d8b5f,_0x521e74[_0x48a14a(0x1b5)]),_0x4ea63c=_0x409b0b?_0x521e74['ROaEj'](join,_0x4b3a4c,_0x48a14a(0x1df)):undefined,{launchOptions:_0xdde62b,contextOptions:_0x15a18f}=_0x521e74['vGvxf'](buildBrowserOptionsFromSettings,_0x42fd80,{'headless':_0x438801?![]:_0x42fd80['headless']??!![],'storageStatePath':_0x409b0b});if(_0x521e74['Cotve'](process['getuid']?.(),0x0)){const _0x474c5e=['--no-sandbox',_0x48a14a(0x1d5)],_0x45aed6=_0xdde62b['args']??[],_0x299a9e=_0x474c5e[_0x48a14a(0x209)](_0x85ddd7=>!_0x45aed6[_0x48a14a(0x1fd)](_0x85ddd7));_0xdde62b['args']=[..._0x45aed6,..._0x299a9e];}const _0x42f18e=_0x521e74['Cotve'](typeof _0xdde62b[_0x48a14a(0x1fe)],_0x48a14a(0x20f))?_0xdde62b[_0x48a14a(0x1fe)]:_0x409b0b?chromium[_0x48a14a(0x1fe)]():undefined;return{'storageStatePath':_0x409b0b,'tempAuthPath':_0x5eb241,'baseUrl':_0x42fd80[_0x48a14a(0x1ed)],'headless':Boolean(_0xdde62b['headless']),'userDataDir':_0x4b3a4c,'browserProfilePath':_0x4ea63c,'executablePath':_0x42f18e,'launchArgs':Array[_0x48a14a(0x1cb)](_0xdde62b[_0x48a14a(0x1bf)])?_0xdde62b['args'][_0x48a14a(0x209)](_0x596cac=>typeof _0x596cac===_0x48a14a(0x20f)):[],'userAgent':_0x521e74['Cotve'](typeof _0x15a18f[_0x48a14a(0x20c)],_0x48a14a(0x20f))?_0x15a18f[_0x48a14a(0x20c)]:undefined,'extraHTTPHeaders':_0x15a18f['extraHTTPHeaders'],'allowInsecureLocalhost':Boolean(_0x42fd80['allowInsecureLocalhost']),'safeMode':Boolean(_0x42fd80[_0x48a14a(0x1af)]),'cdpEndpoint':_0x42fd80[_0x48a14a(0x218)],'isCdpMode':_0x521e74['mbuoX'](Boolean,_0x42fd80[_0x48a14a(0x218)])};}export function getNestedValue(_0xfe16d3,_0x387c64){const _0x1fdfd2={'xhUYn':function(_0x15ff1f,_0x28bb1a){return _0x15ff1f===_0x28bb1a;},'kIupK':function(_0x18155b,_0x110d76){return _0x18155b!==_0x110d76;}},_0x5a6c92=parseKeyPath(_0x387c64);let _0x416d50=_0xfe16d3;for(const _0x116d63 of _0x5a6c92){if(_0x416d50===null||_0x1fdfd2['xhUYn'](_0x416d50,undefined)||_0x1fdfd2['kIupK'](typeof _0x416d50,'object'))return undefined;_0x416d50=_0x416d50[_0x116d63];}return _0x416d50;}export function setNestedValue(_0x540045,_0x2d9fb3,_0x5ad80a){const _0x543cd0=_0x34632f,_0x241f7c={'HeTSH':function(_0x46c129,_0x31c834){return _0x46c129(_0x31c834);},'RFkod':function(_0x223e3f,_0x78d847){return _0x223e3f<_0x78d847;},'ZxIaF':function(_0x289652,_0x5d45a4){return _0x289652-_0x5d45a4;},'QjUyF':'object'},_0x4a2e92=_0x241f7c['HeTSH'](parseKeyPath,_0x2d9fb3);let _0x4a2f63=_0x540045;for(let _0xe346fc=0x0;_0x241f7c[_0x543cd0(0x1b2)](_0xe346fc,_0x241f7c[_0x543cd0(0x1d7)](_0x4a2e92[_0x543cd0(0x220)],0x1));_0xe346fc++){const _0x18a8f5=_0x4a2e92[_0xe346fc];(!(_0x18a8f5 in _0x4a2f63)||typeof _0x4a2f63[_0x18a8f5]!==_0x241f7c[_0x543cd0(0x1ae)])&&(_0x4a2f63[_0x18a8f5]={}),_0x4a2f63=_0x4a2f63[_0x18a8f5];}_0x4a2f63[_0x4a2e92[_0x4a2e92[_0x543cd0(0x220)]-0x1]]=_0x5ad80a;}export function deleteNestedValue(_0x5f351d,_0x3123e9){const _0x373475=_0x34632f,_0x435e32={'lbuBH':function(_0x23ed2f,_0x394799){return _0x23ed2f<_0x394799;},'onAWN':function(_0x477c48,_0x1daf16){return _0x477c48===_0x1daf16;},'EEion':function(_0x31aafb,_0x621ca3){return _0x31aafb!==_0x621ca3;},'BikmM':function(_0x3164b3,_0x5af8ef){return _0x3164b3===_0x5af8ef;},'Lbwrm':function(_0x4bd545,_0x2c3c16){return _0x4bd545-_0x2c3c16;},'WrRWA':function(_0x103865,_0x2b8150){return _0x103865 in _0x2b8150;}},_0x5a1fb4=parseKeyPath(_0x3123e9);let _0x227c2e=_0x5f351d;for(let _0x443492=0x0;_0x435e32[_0x373475(0x219)](_0x443492,_0x5a1fb4['length']-0x1);_0x443492++){if(_0x435e32[_0x373475(0x203)](_0x227c2e,null)||_0x227c2e===undefined||_0x435e32[_0x373475(0x1c9)](typeof _0x227c2e,'object'))return![];_0x227c2e=_0x227c2e[_0x5a1fb4[_0x443492]];}if(_0x227c2e===null||_0x435e32['BikmM'](_0x227c2e,undefined)||typeof _0x227c2e!==_0x373475(0x1cd))return![];const _0x54820a=_0x5a1fb4[_0x435e32['Lbwrm'](_0x5a1fb4['length'],0x1)];if(_0x435e32['WrRWA'](_0x54820a,_0x227c2e))return delete _0x227c2e[_0x54820a],!![];return![];}function parseKeyPath(_0xfd792e){const _0x235a9f=_0x34632f,_0x50da82={'PEvUc':function(_0x24b059,_0x15f2c2){return _0x24b059===_0x15f2c2;},'xMbHw':'headers','kixUc':_0x235a9f(0x1f3)},_0x30e4b0=_0xfd792e['split']('.');return _0x50da82[_0x235a9f(0x1f5)](_0x30e4b0[0x0],_0x235a9f(0x1dc))&&(_0x30e4b0[0x0]=_0x50da82[_0x235a9f(0x1c3)]),_0x30e4b0[0x0]==='setupHeader'&&(_0x30e4b0[0x0]=_0x50da82['kixUc']),_0x30e4b0;}export function formatSettings(_0x4c9d6b,_0x28bb01=0x0){const _0x2c49e8=_0x34632f,_0x309554={'SxvTJ':function(_0x126650,_0x43daf3){return _0x126650===_0x43daf3;}},_0x372bf0=[],_0xb7ed9b='\x20\x20'['repeat'](_0x28bb01);for(const [_0x5c6a64,_0x4046f0]of Object['entries'](_0x4c9d6b)){if(_0x4046f0===undefined)continue;if(_0x309554['SxvTJ'](typeof _0x4046f0,_0x2c49e8(0x1cd))&&_0x4046f0!==null){_0x372bf0[_0x2c49e8(0x1f6)](''+_0xb7ed9b+_0x5c6a64+':');for(const [_0x289047,_0x2296ff]of Object['entries'](_0x4046f0)){_0x372bf0['push'](_0xb7ed9b+'\x20\x20'+_0x289047+':\x20'+_0x2296ff);}}else _0x372bf0[_0x2c49e8(0x1f6)](''+_0xb7ed9b+_0x5c6a64+':\x20'+_0x4046f0);}return _0x372bf0['join']('\x0a');}
@@ -1 +1 @@
1
- function _0x2923(_0x82cc16,_0x265bb3){_0x82cc16=_0x82cc16-0xa4;const _0x51eb61=_0x51eb();let _0x29237d=_0x51eb61[_0x82cc16];return _0x29237d;}function _0x51eb(){const _0x4b34eb=['FvhVm','7fXpWuY','12IORrKc','3152076lgPWgX','634epzBvT','2056255xJTazC','556029xiJONt','skills','cccQR','10310679pgfSkL','10110648yfwhae','13908wrUoLH','4260HJLcAu','63877hEcWMD'];_0x51eb=function(){return _0x4b34eb;};return _0x51eb();}(function(_0x340b81,_0x46fe41){const _0x3b85ca=_0x2923,_0x361ffe=_0x340b81();while(!![]){try{const _0x1f52c1=parseInt(_0x3b85ca(0xaf))/0x1+-parseInt(_0x3b85ca(0xad))/0x2*(parseInt(_0x3b85ca(0xa6))/0x3)+-parseInt(_0x3b85ca(0xab))/0x4*(-parseInt(_0x3b85ca(0xae))/0x5)+parseInt(_0x3b85ca(0xac))/0x6*(parseInt(_0x3b85ca(0xaa))/0x7)+parseInt(_0x3b85ca(0xa5))/0x8+parseInt(_0x3b85ca(0xa4))/0x9+parseInt(_0x3b85ca(0xa7))/0xa*(-parseInt(_0x3b85ca(0xa8))/0xb);if(_0x1f52c1===_0x46fe41)break;else _0x361ffe['push'](_0x361ffe['shift']());}catch(_0x4a900c){_0x361ffe['push'](_0x361ffe['shift']());}}}(_0x51eb,0xbeb8c));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x446a88){const _0x3aefa0=_0x2923,_0x36ba79={'AnykU':function(_0x3b2f0a,_0x235c2b,_0x5c221b){return _0x3b2f0a(_0x235c2b,_0x5c221b);},'FvhVm':function(_0xc8c970,_0x28bbe9,_0x6f66d4){return _0xc8c970(_0x28bbe9,_0x6f66d4);},'cccQR':'utf-8'},_0x425381=join(__dirname,'..','..',_0x3aefa0(0xb0)),_0x3093eb=_0x36ba79['AnykU'](join,_0x425381,_0x446a88);try{return _0x36ba79[_0x3aefa0(0xa9)](readFileSync,_0x3093eb,_0x36ba79[_0x3aefa0(0xb1)]);}catch{return'';}}export function getRangerSkillContent(){return readSkillContent('ranger/SKILL.md');}
1
+ (function(_0x113897,_0x46e2e2){const _0x3015a8=_0x5f3e,_0x31a598=_0x113897();while(!![]){try{const _0x2048c9=parseInt(_0x3015a8(0xde))/0x1*(-parseInt(_0x3015a8(0xd7))/0x2)+parseInt(_0x3015a8(0xd9))/0x3*(-parseInt(_0x3015a8(0xd8))/0x4)+-parseInt(_0x3015a8(0xdc))/0x5+parseInt(_0x3015a8(0xdb))/0x6+parseInt(_0x3015a8(0xd4))/0x7*(parseInt(_0x3015a8(0xdd))/0x8)+-parseInt(_0x3015a8(0xdf))/0x9*(-parseInt(_0x3015a8(0xda))/0xa)+parseInt(_0x3015a8(0xd6))/0xb;if(_0x2048c9===_0x46e2e2)break;else _0x31a598['push'](_0x31a598['shift']());}catch(_0x331fc9){_0x31a598['push'](_0x31a598['shift']());}}}(_0xb86f,0x9ed35));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x3ab2c9){const _0xe41821=_0x5f3e,_0x474245=join(__dirname,'..','..','skills'),_0xb15154=join(_0x474245,_0x3ab2c9);try{return readFileSync(_0xb15154,_0xe41821(0xe0));}catch{return'';}}function _0xb86f(){const _0xfb7216=['567UiwdFi','utf-8','2336586OZgETI','ranger/SKILL.md','28020245XUrUYJ','6896zExQTn','636TTyqpu','18915QelkBm','5710rLoAcy','561882aISanS','5371375fOBWIu','16RKakHu','179ynpIiT'];_0xb86f=function(){return _0xfb7216;};return _0xb86f();}function _0x5f3e(_0x366c5c,_0x1b80fa){_0x366c5c=_0x366c5c-0xd4;const _0xb86fee=_0xb86f();let _0x5f3e6a=_0xb86fee[_0x366c5c];return _0x5f3e6a;}export function getRangerSkillContent(){const _0xff4109=_0x5f3e;return readSkillContent(_0xff4109(0xd5));}
@@ -1 +1 @@
1
- const _0xffe34=_0x3b77;function _0x3b77(_0x444642,_0x3b193c){_0x444642=_0x444642-0xac;const _0x552eaa=_0x552e();let _0x3b771d=_0x552eaa[_0x444642];return _0x3b771d;}(function(_0x135aa1,_0x20e31c){const _0x4bdd49=_0x3b77,_0x3c7427=_0x135aa1();while(!![]){try{const _0x480fd6=parseInt(_0x4bdd49(0xb3))/0x1*(-parseInt(_0x4bdd49(0xb8))/0x2)+-parseInt(_0x4bdd49(0xbf))/0x3+parseInt(_0x4bdd49(0xc5))/0x4+parseInt(_0x4bdd49(0xba))/0x5+parseInt(_0x4bdd49(0xcf))/0x6+parseInt(_0x4bdd49(0xb4))/0x7+parseInt(_0x4bdd49(0xb7))/0x8*(parseInt(_0x4bdd49(0xac))/0x9);if(_0x480fd6===_0x20e31c)break;else _0x3c7427['push'](_0x3c7427['shift']());}catch(_0x18de29){_0x3c7427['push'](_0x3c7427['shift']());}}}(_0x552e,0x69ed6));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';function _0x552e(){const _0x504a83=['claude','catch','feature-tracker','SKILL.md','1502271CkCrAA','length','opencode','JExQV','pYFoI','\x20\x20Skill\x20not\x20found:\x20','718204zPsOHh','e2e-test-recommender','xrBFI','join','Invalid\x20skill\x20frontmatter','log','trim','bug-bash','\x20\x20Files:\x20','skills','2223786LfUEHA','1755utLMeR','match','\x20\x20Removed\x20deprecated\x20skill:\x20','warn','endsWith','.md','utf-8','348ATttfY','70854tkyOPI','\x20\x20Installed\x20skill:\x20','WRTrz','37384Jjzbjs','3276YMDYbO','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','165600pTWCml'];_0x552e=function(){return _0x504a83;};return _0x552e();}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=[_0xffe34(0xc6),_0xffe34(0xcc),_0xffe34(0xbd)];export async function installSkill(_0x2e5560,_0x3e6858={}){const _0x557301=_0xffe34,_0x3c1927={'WRTrz':_0x557301(0xbb),'aBMxY':function(_0xa76e35){return _0xa76e35();},'JExQV':function(_0xad0c02,_0x2deb63,_0x40d8c6){return _0xad0c02(_0x2deb63,_0x40d8c6);},'WfdOc':function(_0x282a2d,_0x4d1d16){return _0x282a2d(_0x4d1d16);},'stVzi':_0x557301(0xbe),'aqtxx':function(_0x424cca,_0x3a3414){return _0x424cca(_0x3a3414);},'xrBFI':'utf-8','PDoOR':function(_0x356913,_0x22d202,_0x4f326f,_0x4dd718){return _0x356913(_0x22d202,_0x4f326f,_0x4dd718);}},{level:level='project',cliVersion:_0x2b3bb0,platform:platform=_0x3c1927[_0x557301(0xb6)]}=_0x3e6858,_0x5e9dd3=_0x3c1927['aBMxY'](getSourceSkillsDir),_0x1fc4b5=join(_0x5e9dd3,_0x2e5560),_0x3d1ae6=_0x3c1927[_0x557301(0xc2)](join,_0x5e9dd3,_0x2e5560+_0x557301(0xb1)),_0x1926ac=existsSync(_0x1fc4b5)&&_0x3c1927['WfdOc'](statSync,_0x1fc4b5)['isDirectory']()&&existsSync(join(_0x1fc4b5,_0x3c1927['stVzi'])),_0x2ce90a=_0x3c1927['aqtxx'](existsSync,_0x3d1ae6);if(!_0x1926ac&&!_0x2ce90a)return console[_0x557301(0xaf)](_0x557301(0xc4)+_0x2e5560),![];const _0x576e2a=platform===_0x557301(0xc1)?getOpencodeSkillsDir(level):getSkillsDir(level),_0xc3eedd=join(_0x576e2a,_0x2e5560);await _0x3c1927[_0x557301(0xc2)](mkdir,_0xc3eedd,{'recursive':!![]});let _0x4502e9,_0x449be0=[];if(_0x1926ac){const _0x547754=await readdir(_0x1fc4b5),_0x575eae=_0x547754['filter'](_0x8e1ba1=>_0x8e1ba1[_0x557301(0xb0)](_0x557301(0xb1)));for(const _0x27b442 of _0x575eae){const _0x33af42=join(_0x1fc4b5,_0x27b442),_0x4554df=join(_0xc3eedd,_0x27b442);await _0x3c1927['JExQV'](copyFile,_0x33af42,_0x4554df),_0x449be0['push'](_0x27b442);}_0x4502e9=await readFile(join(_0x1fc4b5,'SKILL.md'),_0x557301(0xb2));}else{_0x4502e9=await _0x3c1927['JExQV'](readFile,_0x3d1ae6,_0x3c1927[_0x557301(0xc7)]);const _0x57bd54=join(_0xc3eedd,'SKILL.md');await _0x3c1927['PDoOR'](writeFile,_0x57bd54,_0x4502e9,_0x557301(0xb2)),_0x449be0['push']('SKILL.md');}const {name:_0x3165b3}=_0x3c1927['WfdOc'](parseFrontmatter,_0x4502e9);return console[_0x557301(0xca)](_0x557301(0xb5)+_0x3165b3),console['log']('\x20\x20Location:\x20'+_0xc3eedd),_0x449be0[_0x557301(0xc0)]>0x1&&console['log'](_0x557301(0xcd)+_0x449be0[_0x557301(0xc8)](',\x20')),logLocalAgentInstallation(_0x2e5560,{'skillDisplayName':_0x3165b3,'installLevel':level},_0x2b3bb0)[_0x557301(0xbc)](()=>{}),!![];}function getSourceSkillsDir(){const _0x2aeb85=_0xffe34,_0x12f72b=[join(__dirname,'..','..',_0x2aeb85(0xce)),join(__dirname,'..','..','..',_0x2aeb85(0xce))];for(const _0x3d6c59 of _0x12f72b){if(existsSync(_0x3d6c59))return _0x3d6c59;}return _0x12f72b[0x0];}function parseFrontmatter(_0x1d7348){const _0x199d21=_0xffe34,_0x2444bd=_0x1d7348['match'](/^---\n([\s\S]+?)\n---/);if(!_0x2444bd)throw new Error(_0x199d21(0xc9));const _0x53f7d9=_0x2444bd[0x1],_0x5260fa=_0x53f7d9[_0x199d21(0xad)](/name:\s*(.+)/),_0x59ff0e=_0x53f7d9[_0x199d21(0xad)](/description:\s*"?(.+?)"?\n/);return{'name':_0x5260fa?.[0x1][_0x199d21(0xcb)]()||'','description':_0x59ff0e?.[0x1][_0x199d21(0xcb)]()||''};}export async function removeSkill(_0x51a135,_0x350233){const _0x376b7d=_0xffe34,_0x535019={'pYFoI':function(_0x467576,_0x4d9bf9,_0x29dbbf){return _0x467576(_0x4d9bf9,_0x29dbbf);}},_0x2067fc=getSkillsDir(_0x350233),_0x731de1=_0x535019[_0x376b7d(0xc3)](join,_0x2067fc,_0x51a135);if(!existsSync(_0x731de1))return![];try{return await rm(_0x731de1,{'recursive':!![]}),console[_0x376b7d(0xca)](_0x376b7d(0xae)+_0x51a135),!![];}catch{return console['warn'](_0x376b7d(0xb9)+_0x51a135),![];}}
1
+ const _0x57efd0=_0x1921;(function(_0x28da25,_0xc5d6fb){const _0x1d142b=_0x1921,_0x16ebb7=_0x28da25();while(!![]){try{const _0x5bab58=parseInt(_0x1d142b(0x187))/0x1*(-parseInt(_0x1d142b(0x17e))/0x2)+parseInt(_0x1d142b(0x17c))/0x3+-parseInt(_0x1d142b(0x16d))/0x4+-parseInt(_0x1d142b(0x183))/0x5*(-parseInt(_0x1d142b(0x17a))/0x6)+parseInt(_0x1d142b(0x180))/0x7+-parseInt(_0x1d142b(0x169))/0x8*(parseInt(_0x1d142b(0x172))/0x9)+parseInt(_0x1d142b(0x16f))/0xa;if(_0x5bab58===_0xc5d6fb)break;else _0x16ebb7['push'](_0x16ebb7['shift']());}catch(_0x5cecf8){_0x16ebb7['push'](_0x16ebb7['shift']());}}}(_0x1e1d,0x2786c));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';function _0x1921(_0x104704,_0x1a09fe){_0x104704=_0x104704-0x169;const _0x1e1d40=_0x1e1d();let _0x19213c=_0x1e1d40[_0x104704];return _0x19213c;}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=[_0x57efd0(0x177),_0x57efd0(0x16a),_0x57efd0(0x18a)];function _0x1e1d(){const _0xe9f937=['EMzJL','skills','12141tmBDyL','qvBrT','claude','project','utf-8','e2e-test-recommender','NEMkv','trim','6ajTeYK','match','427074uvCCyh','sthKB','522490sbFQTr','fiBDU','1640926XihtnY','\x20\x20Installed\x20skill:\x20','log','554545abZDcM','JqmiS','join','warn','1rvzHdq','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','\x20\x20Location:\x20','feature-tracker','isDirectory','1136Eehwiy','bug-bash','saQlQ','SKILL.md','444688pavUxW','.md','2381900FUPhBj'];_0x1e1d=function(){return _0xe9f937;};return _0x1e1d();}export async function installSkill(_0x1a6e05,_0x5a7ff0={}){const _0x5dd145=_0x57efd0,_0x494363={'qvBrT':function(_0x4177f1){return _0x4177f1();},'EMzJL':function(_0x1f8755,_0x37539f){return _0x1f8755(_0x37539f);},'mEuat':'opencode','JqmiS':function(_0x2e02a3,_0x24c592,_0x7c8670){return _0x2e02a3(_0x24c592,_0x7c8670);},'iJISK':function(_0x28ac46,_0x15287a,_0x12df1e){return _0x28ac46(_0x15287a,_0x12df1e);},'QSWEV':_0x5dd145(0x16c),'lXDta':_0x5dd145(0x176),'sthKB':function(_0x4c2c29,_0x421772,_0x463883,_0x37fb1a){return _0x4c2c29(_0x421772,_0x463883,_0x37fb1a);},'fiBDU':function(_0x4df503,_0x220448){return _0x4df503>_0x220448;}},{level:level=_0x5dd145(0x175),cliVersion:_0x3ba088,platform:platform=_0x5dd145(0x174)}=_0x5a7ff0,_0x16ed03=_0x494363[_0x5dd145(0x173)](getSourceSkillsDir),_0xc45bfb=join(_0x16ed03,_0x1a6e05),_0x1aa482=join(_0x16ed03,_0x1a6e05+_0x5dd145(0x16e)),_0x14cb62=_0x494363[_0x5dd145(0x170)](existsSync,_0xc45bfb)&&statSync(_0xc45bfb)[_0x5dd145(0x18b)]()&&existsSync(join(_0xc45bfb,_0x5dd145(0x16c))),_0xc4b3a8=_0x494363['EMzJL'](existsSync,_0x1aa482);if(!_0x14cb62&&!_0xc4b3a8)return console[_0x5dd145(0x186)]('\x20\x20Skill\x20not\x20found:\x20'+_0x1a6e05),![];const _0x8d258c=platform===_0x494363['mEuat']?getOpencodeSkillsDir(level):getSkillsDir(level),_0x3770c7=join(_0x8d258c,_0x1a6e05);await _0x494363[_0x5dd145(0x184)](mkdir,_0x3770c7,{'recursive':!![]});let _0xb7336e,_0xff0b4e=[];if(_0x14cb62){const _0xef6f22=await _0x494363['EMzJL'](readdir,_0xc45bfb),_0x52bd6c=_0xef6f22['filter'](_0x12385e=>_0x12385e['endsWith']('.md'));for(const _0x5a4e42 of _0x52bd6c){const _0x3a1fde=_0x494363[_0x5dd145(0x184)](join,_0xc45bfb,_0x5a4e42),_0x332182=join(_0x3770c7,_0x5a4e42);await copyFile(_0x3a1fde,_0x332182),_0xff0b4e['push'](_0x5a4e42);}_0xb7336e=await _0x494363['iJISK'](readFile,join(_0xc45bfb,_0x494363['QSWEV']),_0x494363['lXDta']);}else{_0xb7336e=await readFile(_0x1aa482,_0x5dd145(0x176));const _0x484aec=join(_0x3770c7,_0x5dd145(0x16c));await _0x494363[_0x5dd145(0x17d)](writeFile,_0x484aec,_0xb7336e,_0x5dd145(0x176)),_0xff0b4e['push'](_0x494363['QSWEV']);}const {name:_0x2531e5}=parseFrontmatter(_0xb7336e);return console['log'](_0x5dd145(0x181)+_0x2531e5),console[_0x5dd145(0x182)](_0x5dd145(0x189)+_0x3770c7),_0x494363[_0x5dd145(0x17f)](_0xff0b4e['length'],0x1)&&console['log']('\x20\x20Files:\x20'+_0xff0b4e[_0x5dd145(0x185)](',\x20')),logLocalAgentInstallation(_0x1a6e05,{'skillDisplayName':_0x2531e5,'installLevel':level},_0x3ba088)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x36e34c=_0x57efd0,_0x501e75={'lTyIo':function(_0x6f607,_0x36645d,_0xa03218,_0x41512b,_0xf8b53d){return _0x6f607(_0x36645d,_0xa03218,_0x41512b,_0xf8b53d);},'rZFZd':'skills','NEMkv':function(_0x485862,_0x2328a7,_0x3ace15,_0x12ff02,_0x1706d1,_0x234e7e){return _0x485862(_0x2328a7,_0x3ace15,_0x12ff02,_0x1706d1,_0x234e7e);},'VTUoi':function(_0x8cb837,_0x330d59){return _0x8cb837(_0x330d59);}},_0x568527=[_0x501e75['lTyIo'](join,__dirname,'..','..',_0x501e75['rZFZd']),_0x501e75[_0x36e34c(0x178)](join,__dirname,'..','..','..',_0x36e34c(0x171))];for(const _0x2a29dc of _0x568527){if(_0x501e75['VTUoi'](existsSync,_0x2a29dc))return _0x2a29dc;}return _0x568527[0x0];}function parseFrontmatter(_0x3f9543){const _0x2c7022=_0x57efd0,_0x1baf5e={'hMNLX':'Invalid\x20skill\x20frontmatter'},_0x530f44=_0x3f9543['match'](/^---\n([\s\S]+?)\n---/);if(!_0x530f44)throw new Error(_0x1baf5e['hMNLX']);const _0x3e70ff=_0x530f44[0x1],_0x19736c=_0x3e70ff[_0x2c7022(0x17b)](/name:\s*(.+)/),_0x13c5c7=_0x3e70ff[_0x2c7022(0x17b)](/description:\s*"?(.+?)"?\n/);return{'name':_0x19736c?.[0x1]['trim']()||'','description':_0x13c5c7?.[0x1][_0x2c7022(0x179)]()||''};}export async function removeSkill(_0x3cc563,_0x657840){const _0x433b67=_0x57efd0,_0x2033a8={'MRIMc':function(_0x3b571d,_0x3ae6a2,_0x1ba252){return _0x3b571d(_0x3ae6a2,_0x1ba252);},'saQlQ':function(_0x571e5a,_0x114cac){return _0x571e5a(_0x114cac);}},_0x285527=getSkillsDir(_0x657840),_0x487405=_0x2033a8['MRIMc'](join,_0x285527,_0x3cc563);if(!_0x2033a8[_0x433b67(0x16b)](existsSync,_0x487405))return![];try{return await rm(_0x487405,{'recursive':!![]}),console[_0x433b67(0x182)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x3cc563),!![];}catch{return console['warn'](_0x433b67(0x188)+_0x3cc563),![];}}