@ranger-testing/ranger-cli 2.5.4-alpha.1f7a251-7 โ†’ 2.5.4-alpha.27e3ee8-11

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 (78) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/mcpBootstrap.js +1 -1
  25. package/build/commands/migrateProfile.js +1 -1
  26. package/build/commands/setup/claude.js +1 -1
  27. package/build/commands/setup/opencode.js +1 -1
  28. package/build/commands/setupCi.js +1 -1
  29. package/build/commands/skillup.js +1 -1
  30. package/build/commands/start.js +1 -1
  31. package/build/commands/status.js +1 -1
  32. package/build/commands/update.js +1 -1
  33. package/build/commands/updateEnv.js +1 -1
  34. package/build/commands/useEnv.js +1 -1
  35. package/build/commands/utils/activeProfile.js +1 -1
  36. package/build/commands/utils/agentEnv.js +1 -1
  37. package/build/commands/utils/browserSessionsApi.js +1 -1
  38. package/build/commands/utils/claudeConfig.js +1 -1
  39. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  40. package/build/commands/utils/claudePlugin.js +1 -1
  41. package/build/commands/utils/cloudProfile.js +1 -1
  42. package/build/commands/utils/cloudProfileSession.js +1 -1
  43. package/build/commands/utils/crypto.js +1 -1
  44. package/build/commands/utils/desirePathLog.js +1 -1
  45. package/build/commands/utils/deviceAuth.js +1 -1
  46. package/build/commands/utils/environment.js +1 -1
  47. package/build/commands/utils/featureApi.js +1 -1
  48. package/build/commands/utils/fixWebmDuration.js +1 -1
  49. package/build/commands/utils/gitTracked.js +1 -1
  50. package/build/commands/utils/keychain.js +1 -1
  51. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  52. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  53. package/build/commands/utils/mcpImageBase64.js +1 -1
  54. package/build/commands/utils/model.js +1 -1
  55. package/build/commands/utils/opencodeConfig.js +1 -1
  56. package/build/commands/utils/playwrightCli.js +1 -1
  57. package/build/commands/utils/profileMessages.js +1 -1
  58. package/build/commands/utils/profileSetupBanner.js +1 -1
  59. package/build/commands/utils/projectsConfig.js +1 -1
  60. package/build/commands/utils/rangerConfig.js +1 -1
  61. package/build/commands/utils/rangerRoot.js +1 -1
  62. package/build/commands/utils/resolveProfileContext.js +1 -1
  63. package/build/commands/utils/resolveProfileUrl.js +1 -1
  64. package/build/commands/utils/retry.js +1 -1
  65. package/build/commands/utils/sessionCache.js +1 -1
  66. package/build/commands/utils/settings.js +1 -1
  67. package/build/commands/utils/skillContent.js +1 -1
  68. package/build/commands/utils/skills.js +1 -1
  69. package/build/commands/utils/stitchWebmFiles.js +1 -1
  70. package/build/commands/utils/telemetry.js +1 -1
  71. package/build/commands/utils/tokenRefresh.js +1 -1
  72. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  73. package/build/commands/utils/userApi.js +1 -1
  74. package/build/commands/utils/version.js +1 -1
  75. package/build/commands/verifyFeature.js +1 -1
  76. package/build/commands/verifyFeatureCli.js +1 -1
  77. package/build/skills/ranger/verify.md +6 -12
  78. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x68c43d,_0x5d7564){const _0x23cc30=_0xd812,_0x5bfd10=_0x68c43d();while(!![]){try{const _0x17027d=parseInt(_0x23cc30(0x183))/0x1*(parseInt(_0x23cc30(0x121))/0x2)+-parseInt(_0x23cc30(0x141))/0x3+parseInt(_0x23cc30(0x13e))/0x4*(-parseInt(_0x23cc30(0x142))/0x5)+-parseInt(_0x23cc30(0x10c))/0x6+parseInt(_0x23cc30(0x124))/0x7*(-parseInt(_0x23cc30(0x16e))/0x8)+-parseInt(_0x23cc30(0x10a))/0x9+parseInt(_0x23cc30(0x146))/0xa*(parseInt(_0x23cc30(0x125))/0xb);if(_0x17027d===_0x5d7564)break;else _0x5bfd10['push'](_0x5bfd10['shift']());}catch(_0x5c25be){_0x5bfd10['push'](_0x5bfd10['shift']());}}}(_0x3802,0x5f3b1));import{mkdir,writeFile,readFile,readdir,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import _0x2bd8f1 from'inquirer';import{chromium}from'playwright';import{findExistingEnv,loadSettings}from'./utils/settings.js';function _0x3802(){const _0x3fcd13=['gNCmy','lpINQ','isTTY','AWHtb','emmEW','RIsHK','\x0a\x20\x20A\x20cloud\x20profile\x20named\x20\x22','newContext','local','12jAuXAI','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20','\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','2274960dBRxuN','790145ALsayq','\x20\x20Note:\x20cloud\x20profile\x20created,\x20but\x20failed\x20to\x20sweep\x20orphan\x20local\x20dirs\x20(','.tmp-','error','199170ZeNhKS','Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','finally','about:blank','DiJtJ','\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','\x0a\x20\x20(domains:\x20','OWrGs','OYXzE','\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a','\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20','off','stdout','includes','oAoim','ricCd','startsWith','HEAD','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a','hLFkM','โœ“\x20Encrypted\x20auth\x20saved\x20to:\x20','aiZnp','ykJeg','abort','NVyUh','list','gVOrk','No\x20auth\x20env\x20matches\x20this\x20URL.\x20Creating\x20local\x20profile.','\x22\x20already\x20exists\x20in\x20','--disable-features=WebBluetooth','\x22\x20already\x20exists.\x20Overwrite?','test','env','WezHW','force','tYZxx','pxOCC','user','oeouE','40MmxxaX','\x0a๐Ÿ“‹\x20Authentication\x20Setup','CIGLM','trackPhaseStart','settings.json','YncDL','saveToCloud','\x20--safe-mode\x20\x20\x20\x20(disables\x20browser\x20features\x20that\x20can\x20cause\x20crashes)','\x27.\x0a','goto','kkggC','no_auth_config','url_setup','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','โš \x20Could\x20not\x20reach\x20','rrtNq','trim','SIGINT','Enter\x20a\x20different\x20URL','NCETq','trackPhaseEnd','111MWrVMh','catch','Browser\x20closed\x20before\x20authentication\x20was\x20saved.','length','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20','\x20\x20ranger\x20profile\x20add\x20','\x20\x20Note:\x20found\x20git-tracked\x20local\x20profile\x20at\x20','safeMode','Aborted.','fXkIC','Removed\x20existing\x20profile\x20at\x20','message','keys','wUpWF','sjySY','allowInsecureLocalhost','nesJM','hHzGB','origin','manual','BLnhO','โœ“\x20Created\x20settings:\x20','WTRKg','\x27\x20created,\x20linked\x20to\x20env\x20\x27','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','6882615Fqtpvr','location','2183766GBhthZ','auth.json','now','no_match','scope','root\x20(.ranger/)','user_declined','\x0aThe\x20browser\x20closed\x20unexpectedly\x20before\x20authentication\x20could\x20be\x20saved.','Found\x20auth\x20environment\x20\x27','profile.add.autoRouteSkipped','What\x20would\x20you\x20like\x20to\x20do?','log','Invalid\x20URL','VCqJP','\x20(continuing\x20with\x20--force)','rjGQM','slice','setupHeader','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','path','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','12908tPTJjP','skipAuth','environments','971397ddaToy','1507JJwhhY','cdpEndpoint','โœ“\x20Auth\x20state\x20saved\x20to:\x20','url','bHugs','qQDkw','.backup-','input','legacy','status','prompt','\x0a๐ŸŒ\x20Profile\x20Setup\x0a','jCnpN','baseUrl','oMJKF','\x20โ€”\x20not\x20removing.\x20Delete\x20manually\x20if\x20you\x20want\x20it\x20gone.'];_0x3802=function(){return _0x3fcd13;};return _0x3802();}function _0xd812(_0x45d496,_0x36ace5){_0x45d496=_0x45d496-0x101;const _0x38024f=_0x3802();let _0xd812c2=_0x38024f[_0x45d496];return _0xd812c2;}import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getRangerDir,getRangerHomeDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';import{fetchAuthConfig,createCloudProfile,ApiError}from'./utils/cloudProfile.js';import{matchAuthEnvironment}from'./utils/matchAuthEnvironment.js';import{isPathGitTracked}from'./utils/gitTracked.js';async function checkUrlReachability(_0xa03a32){const _0x404808=_0xd812,_0x33998e={'ricCd':function(_0x6bcdb7,_0x240c1a,_0x3ba80a){return _0x6bcdb7(_0x240c1a,_0x3ba80a);},'nesJM':_0x404808(0x157),'fXkIC':function(_0x5762cb,_0x10123d){return _0x5762cb(_0x10123d);},'NnFOJ':function(_0x23fc0a,_0x35eb9b){return _0x23fc0a<_0x35eb9b;},'pxOCC':'TypeError'};try{const _0x2a707a=new AbortController(),_0xdc869=_0x33998e['ricCd'](setTimeout,()=>_0x2a707a[_0x404808(0x15e)](),0x1388),_0x1180de={'method':_0x33998e[_0x404808(0x101)],'signal':_0x2a707a['signal'],'redirect':_0x404808(0x104)};/^https:\/\/localhost(:\d+)?/i[_0x404808(0x166)](_0xa03a32)&&(process['env']['NODE_TLS_REJECT_UNAUTHORIZED']='0');const _0x60e940=await _0x33998e[_0x404808(0x155)](fetch,_0xa03a32,_0x1180de);delete process['env']['NODE_TLS_REJECT_UNAUTHORIZED'],_0x33998e[_0x404808(0x18c)](clearTimeout,_0xdc869);if(_0x33998e['NnFOJ'](_0x60e940['status'],0x190))return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x60e940[_0x404808(0x12e)]};}catch(_0x194a6f){delete process[_0x404808(0x167)]['NODE_TLS_REJECT_UNAUTHORIZED'];const _0x11fa10=_0x194a6f,_0xc3ad62=_0x11fa10['message']||String(_0x194a6f),_0x22d3b2=_0xc3ad62['includes'](_0x404808(0x118))||_0x11fa10['name']===_0x33998e[_0x404808(0x16b)]||_0xc3ad62[_0x404808(0x153)]('fetch\x20failed');return{'ok':![],'error':_0xc3ad62,'isProtocolError':_0x22d3b2};}}async function sweepOrphanLocalProfile(_0x46ea06,_0x213eb3,_0x43a9d3){const _0x6d6ef9=_0xd812,_0x26c6e5={'lqQRn':function(_0x2cb935,_0x5ebe1c){return _0x2cb935(_0x5ebe1c);},'rjGQM':function(_0x598aef,_0x41dcdb){return _0x598aef(_0x41dcdb);},'heOvN':function(_0x3a5528,_0x5e6192,_0xa9b92f){return _0x3a5528(_0x5e6192,_0xa9b92f);}},_0x174b27=join(_0x213eb3,_0x6d6ef9(0x13d)),_0x5830f4=join(_0x174b27,_0x46ea06);_0x26c6e5['lqQRn'](existsSync,_0x5830f4)&&(_0x43a9d3&&await _0x26c6e5[_0x6d6ef9(0x11b)](isPathGitTracked,_0x5830f4)?console[_0x6d6ef9(0x117)](_0x6d6ef9(0x189)+_0x5830f4+_0x6d6ef9(0x134)):(await _0x26c6e5['heOvN'](rm,_0x5830f4,{'recursive':!![],'force':!![]}),console[_0x6d6ef9(0x117)](_0x6d6ef9(0x150)+_0x5830f4)));if(existsSync(_0x174b27)){let _0xf978ea=[];try{_0xf978ea=await readdir(_0x174b27);}catch{return;}const _0x208dac=_0x6d6ef9(0x144)+_0x46ea06+'-';for(const _0x3ecd0e of _0xf978ea){if(!_0x3ecd0e[_0x6d6ef9(0x156)](_0x208dac))continue;const _0x37a211=join(_0x174b27,_0x3ecd0e);await rm(_0x37a211,{'recursive':!![],'force':!![]}),console[_0x6d6ef9(0x117)](_0x6d6ef9(0x150)+_0x37a211);}}}async function tryAutoRouteCloudProfile(_0xea2add,_0x578120,_0x3e39e1,_0x40b620,_0x37a987){const _0x73d847=_0xd812,_0x36622d={'hHzGB':'profile.add.autoRouteSkipped','kkggC':_0x73d847(0x179),'TAviI':function(_0x23b2ed,_0x17026d,_0x54a3d0){return _0x23b2ed(_0x17026d,_0x54a3d0);},'tYZxx':_0x73d847(0x162),'vIYCz':_0x73d847(0x10f),'RIsHK':'confirm','Qmyje':function(_0x44f4a4,_0x18f5d0){return _0x44f4a4+_0x18f5d0;},'CWGaO':function(_0x5eb67d){return _0x5eb67d();},'CIGLM':function(_0x2c3062){return _0x2c3062();},'YGhKk':function(_0x3ef419,_0x5bf80f){return _0x3ef419 instanceof _0x5bf80f;}};let _0x4bf3e4;try{_0x4bf3e4=await fetchAuthConfig();}catch{return _0x37a987?.[_0x73d847(0x182)](_0x36622d['hHzGB'],{'reason':'no_auth_config','profileName':_0xea2add}),![];}if(!_0x4bf3e4||!_0x4bf3e4[_0x73d847(0x123)]||Object['keys'](_0x4bf3e4['environments'])['length']===0x0)return _0x37a987?.['trackPhaseEnd'](_0x73d847(0x115),{'reason':_0x36622d['kkggC'],'profileName':_0xea2add}),![];const _0x2e2451=_0x36622d['TAviI'](matchAuthEnvironment,_0x578120,_0x4bf3e4);if(!_0x2e2451)return console['log'](_0x36622d[_0x73d847(0x16a)]),_0x37a987?.[_0x73d847(0x182)]('profile.add.autoRouteSkipped',{'reason':_0x36622d['vIYCz'],'profileName':_0xea2add}),![];const _0x444b40=_0x4bf3e4[_0x73d847(0x123)][_0x2e2451],_0xd5d478=_0x444b40?.['domains']??[];if(_0x40b620&&!_0x3e39e1['yes']){const {saveToCloud:_0x402c23}=await _0x2bd8f1[_0x73d847(0x12f)]([{'type':_0x36622d[_0x73d847(0x13a)],'name':_0x73d847(0x174),'message':_0x73d847(0x114)+_0x2e2451+'\x27\x20matching\x20'+_0x578120+_0x73d847(0x14c)+_0xd5d478['join'](',\x20')+')\x0a\x20\x20Save\x20\x27'+_0xea2add+'\x27\x20to\x20the\x20cloud?','default':!![]}]);if(!_0x402c23)return _0x37a987?.[_0x73d847(0x182)](_0x36622d[_0x73d847(0x102)],{'reason':_0x73d847(0x112),'profileName':_0xea2add}),![];}const _0x3ab3fe=_0xd5d478['some'](_0xb116a8=>{const _0x1bc534=_0x73d847;try{return new URL(_0xb116a8)['origin']===new URL(_0x578120)[_0x1bc534(0x103)];}catch{return![];}}),_0x2eb5a8={};!_0x3ab3fe&&(_0x2eb5a8['baseUrl']=_0x578120);try{await createCloudProfile(_0xea2add,_0x2e2451,{'settings':_0x2eb5a8});}catch(_0x58eb46){if(_0x58eb46 instanceof ApiError&&_0x58eb46['status']===0x199){console[_0x73d847(0x145)](_0x73d847(0x13b)+_0xea2add+'\x22\x20already\x20exists.\x20Choose\x20a\x20different\x20name\x20or\x20delete\x20the\x20existing\x20profile\x20first.');throw _0x58eb46;}return console[_0x73d847(0x117)]('\x20\x20Could\x20not\x20reach\x20Ranger\x20API\x20to\x20create\x20a\x20cloud\x20profile\x20('+(_0x58eb46 instanceof Error?_0x58eb46[_0x73d847(0x18e)]:String(_0x58eb46))+').\x20Falling\x20back\x20to\x20local\x20profile.'),_0x37a987?.['trackPhaseEnd'](_0x36622d[_0x73d847(0x102)],{'reason':_0x36622d[_0x73d847(0x178)],'profileName':_0xea2add}),![];}console[_0x73d847(0x117)](_0x36622d['Qmyje']('โœ“\x20Cloud\x20profile\x20\x27'+_0xea2add+_0x73d847(0x108)+_0x2e2451+_0x73d847(0x176),'\x20\x20Next:\x20RANGER_TEST_USERNAME=...\x20RANGER_TEST_PASSWORD=...\x20ranger\x20go\x20--profile\x20'+_0xea2add));try{await sweepOrphanLocalProfile(_0xea2add,_0x36622d['CWGaO'](getRangerHomeDir),![]);const _0x224ad9=getRangerDir();_0x224ad9!==_0x36622d[_0x73d847(0x170)](getRangerHomeDir)&&await sweepOrphanLocalProfile(_0xea2add,_0x224ad9,!![]);}catch(_0x38c171){console['log'](_0x73d847(0x143)+(_0x36622d['YGhKk'](_0x38c171,Error)?_0x38c171[_0x73d847(0x18e)]:String(_0x38c171))+').');}return _0x37a987?.['trackPhaseEnd']('profile.add.autoRouted',{'envKey':_0x2e2451,'profileName':_0xea2add}),!![];}export async function addEnv(_0x196292,_0x3f3c96={},_0x170263){const _0x10a28d=_0xd812,_0x130057={'ChTVd':function(_0x2dd56e,_0x33ecaa,_0x3a0aa6){return _0x2dd56e(_0x33ecaa,_0x3a0aa6);},'lpINQ':'close','rrtNq':_0x10a28d(0x13d),'OWrGs':_0x10a28d(0x16c),'lLEUu':function(_0xae0d98){return _0xae0d98();},'bHugs':function(_0x30d59a){return _0x30d59a();},'ydiaM':function(_0xdc3b7,_0x156dfc,_0x5d870a,_0x1bae4b){return _0xdc3b7(_0x156dfc,_0x5d870a,_0x1bae4b);},'wUpWF':function(_0x1d33a3,_0x54a2c2){return _0x1d33a3===_0x54a2c2;},'iqgoH':'--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.','DiJtJ':'--ci\x20and\x20--cdp-endpoint\x20cannot\x20be\x20used\x20together.\x20Electron/CDP\x20profiles\x20only\x20work\x20with\x20a\x20locally\x20running\x20app\x20and\x20are\x20not\x20supported\x20in\x20CI.','oMJKF':'Please\x20provide\x20--url\x20when\x20running\x20in\x20non-interactive\x20mode.\x0aMake\x20sure\x20the\x20service\x20is\x20running\x20on\x20that\x20port\x20before\x20retrying.\x0aExample:\x20ranger\x20profile\x20add\x20local\x20--url\x20http://localhost:3000','XnKzj':'confirm','tEgdt':'overwrite','gNCmy':'shouldReplace','icYqf':_0x10a28d(0x18b),'hLFkM':_0x10a28d(0x130),'BLnhO':_0x10a28d(0x140),'NCETq':_0x10a28d(0x12c),'XZdIp':_0x10a28d(0x132),'AuBDQ':_0x10a28d(0x147),'mFYHY':'What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','yrqQm':function(_0x8db6a3,_0x25ae35){return _0x8db6a3||_0x25ae35;},'qQDkw':function(_0x1b0ef9,_0x4176f2){return _0x1b0ef9(_0x4176f2);},'tIOoC':'action','jCnpN':_0x10a28d(0x116),'LnwEW':_0x10a28d(0x180),'sjySY':'use_suggestion','emmEW':function(_0x5ecceb,_0x2e03b7){return _0x5ecceb===_0x2e03b7;},'oAoim':function(_0x221202,_0x90d4d5,_0x5bb650){return _0x221202(_0x90d4d5,_0x5bb650);},'ZiNHi':function(_0x4b45b9,_0x34576f){return _0x4b45b9(_0x34576f);},'jfTPU':_0x10a28d(0x10d),'wmTWG':_0x10a28d(0x16f),'lqbQc':'\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.','WezHW':_0x10a28d(0x164),'ZliGM':'--allow-insecure-localhost','YncDL':_0x10a28d(0x113),'APtKa':'You\x20can\x20try\x20again\x20with\x20one\x20of:','jxgms':_0x10a28d(0x185),'WTRKg':function(_0x35d059,_0x5e4321,_0x5619cf){return _0x35d059(_0x5e4321,_0x5619cf);},'ykJeg':'utf-8','oeouE':function(_0x5d6523,_0x325419){return _0x5d6523+_0x325419;},'VCqJP':'.enc','prirJ':'\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','WtLKL':_0x10a28d(0x158),'MzpZd':'browser_auth','AWHtb':'config_write','bRZsb':function(_0x230e01,_0x3cd3ef){return _0x230e01>_0x3cd3ef;},'NVyUh':function(_0x109bc1,_0xd27671,_0x8ff8a4){return _0x109bc1(_0xd27671,_0x8ff8a4);},'gVOrk':function(_0x397b39,_0x3e779c,_0x5359f5){return _0x397b39(_0x3e779c,_0x5359f5);},'lJfQO':function(_0x5b6a4b,_0x25a926,_0x595fbe){return _0x5b6a4b(_0x25a926,_0x595fbe);},'OYXzE':_0x10a28d(0x17f)},_0x3abb49=_0x3f3c96['ci']??![],_0x592351=_0x3abb49?'ci':_0x130057[_0x10a28d(0x17d)],_0x1c84ac=_0x3f3c96[_0x10a28d(0x110)]===_0x130057[_0x10a28d(0x14d)]?_0x130057['lLEUu'](getRangerHomeDir):_0x130057[_0x10a28d(0x129)](getRangerDir),_0x1131df=_0x130057['ydiaM'](join,_0x1c84ac,_0x592351,_0x196292),_0xed1dea={};if(_0x3f3c96[_0x10a28d(0x11d)])for(const _0x26b245 of _0x3f3c96[_0x10a28d(0x11d)]){const _0x21aa26=_0x26b245['indexOf'](':');if(_0x130057[_0x10a28d(0x190)](_0x21aa26,-0x1))throw new Error('Invalid\x20--setup-header\x20format:\x20\x22'+_0x26b245+'\x22.\x20Expected\x20\x22Name:\x20Value\x22.');const _0x575780=_0x26b245[_0x10a28d(0x11c)](0x0,_0x21aa26)['trim'](),_0x1dfc48=_0x26b245['slice'](_0x21aa26+0x1)[_0x10a28d(0x17e)]();_0xed1dea[_0x575780]=_0x1dfc48;}const _0x3a1975=join(_0x1c84ac,_0x592351);if(_0x3f3c96[_0x10a28d(0x126)]!==undefined&&_0x130057['wUpWF'](_0x3f3c96['cdpEndpoint'][_0x10a28d(0x17e)](),''))throw new Error(_0x10a28d(0x11e));if(_0x3f3c96['cdpEndpoint']&&_0x3f3c96[_0x10a28d(0x128)])throw new Error(_0x130057['iqgoH']);if(_0x3f3c96['cdpEndpoint']&&_0x3f3c96['ci'])throw new Error(_0x130057[_0x10a28d(0x14a)]);const _0xd279cc=Boolean(_0x3f3c96['cdpEndpoint']),_0x4a936a=!_0x3f3c96[_0x10a28d(0x122)]&&!_0xd279cc,_0x37c4c2=process['stdin'][_0x10a28d(0x137)]&&process[_0x10a28d(0x152)]['isTTY'];if(!_0x37c4c2&&!_0x3f3c96['url']&&!_0xd279cc)throw new Error(_0x130057[_0x10a28d(0x133)]);if(!_0x3abb49&&!_0x3f3c96[_0x10a28d(0x122)]&&!_0xd279cc&&_0x3f3c96['url']){const _0x38e28a=await tryAutoRouteCloudProfile(_0x196292,_0x3f3c96['url'],_0x3f3c96,_0x37c4c2,_0x170263);if(_0x38e28a)return;}const _0xcf4e6e=findExistingEnv(_0x196292,{'rangerDir':_0x1c84ac});let _0x17f226=null;if(_0xcf4e6e){if(!_0x37c4c2)_0x17f226=_0xcf4e6e;else{if(_0xcf4e6e['location']===_0x592351){const {overwrite:_0x37faa7}=await _0x2bd8f1[_0x10a28d(0x12f)]([{'type':_0x130057['XnKzj'],'name':_0x130057['tEgdt'],'message':'Profile\x20\x22'+_0x196292+_0x10a28d(0x165),'default':![]}]);if(!_0x37faa7){console['log'](_0x10a28d(0x18b));return;}_0x17f226=_0xcf4e6e;}else{const _0x5335f3=_0xcf4e6e[_0x10a28d(0x10b)]===_0x10a28d(0x12d)?_0x10a28d(0x111):_0xcf4e6e['location'];console[_0x10a28d(0x145)]('\x0aโš ๏ธ\x20\x20Profile\x20\x22'+_0x196292+_0x10a28d(0x163)+_0x5335f3+':\x20'+_0xcf4e6e[_0x10a28d(0x11f)]),console[_0x10a28d(0x145)]('\x20\x20\x20Creating\x20it\x20in\x20'+_0x592351+'\x20would\x20shadow\x20the\x20existing\x20profile.');const {shouldReplace:_0x259e83}=await _0x2bd8f1['prompt']([{'type':'confirm','name':_0x130057[_0x10a28d(0x135)],'message':'Delete\x20existing\x20and\x20create\x20new\x20in\x20'+_0x592351+'?','default':![]}]);if(!_0x259e83){console[_0x10a28d(0x117)](_0x130057['icYqf']);return;}_0x17f226=_0xcf4e6e;}}}_0x170263?.[_0x10a28d(0x171)](_0x10a28d(0x17a));let _0xfed378='';if(_0xd279cc)console[_0x10a28d(0x117)]('\x0a๐Ÿ”Œ\x20CDP\x20Profile\x20Setup\x0a'),console['log'](_0x10a28d(0x109)+_0x3f3c96['cdpEndpoint']),console['log'](_0x10a28d(0x14f));else{if(_0x3f3c96['url']){_0xfed378=_0x3f3c96[_0x10a28d(0x128)];const _0x4c8d8f=await checkUrlReachability(_0xfed378);if(!_0x4c8d8f['ok']&&!_0x3f3c96['force'])throw new Error('Could\x20not\x20reach\x20'+_0xfed378+':\x20'+_0x4c8d8f['error']+_0x10a28d(0x17b));!_0x4c8d8f['ok']&&_0x3f3c96[_0x10a28d(0x169)]&&console[_0x10a28d(0x117)](_0x10a28d(0x17c)+_0xfed378+':\x20'+_0x4c8d8f[_0x10a28d(0x145)]+_0x10a28d(0x11a));}else{console['log'](_0x130057[_0x10a28d(0x15a)]),console['log'](_0x10a28d(0x120)),console['log'](_0x130057[_0x10a28d(0x105)]);let _0x20cfbb=![];while(!![]){const _0x5ca959=await _0x2bd8f1['prompt']([{'type':_0x130057[_0x10a28d(0x181)],'name':_0x130057['XZdIp'],'message':_0x20cfbb?_0x130057['AuBDQ']:_0x130057['mFYHY'],'default':_0x130057['yrqQm'](_0xfed378,'http://localhost:3000')}]);_0xfed378=_0x5ca959['baseUrl'];const _0x4f5b2=await _0x130057['qQDkw'](checkUrlReachability,_0xfed378);if(_0x4f5b2['ok'])break;const _0x3be946=/^[a-zA-Z][\w+.-]*:\/\//[_0x10a28d(0x166)](_0xfed378),_0x594b2a=_0x4f5b2['isProtocolError']&&!_0x3be946,_0x3827f3=_0x594b2a?'http://'+_0xfed378:null;_0x20cfbb=!![],console[_0x10a28d(0x117)]('\x0a\x20\x20Could\x20not\x20reach\x20'+_0xfed378+':\x20'+_0x4f5b2[_0x10a28d(0x145)]);_0x3827f3&&console[_0x10a28d(0x117)]('\x20\x20Did\x20you\x20mean\x20'+_0x3827f3+'?');const {action:_0x1ec0c0}=await _0x2bd8f1[_0x10a28d(0x12f)]([{'type':_0x10a28d(0x160),'name':_0x130057['tIOoC'],'message':_0x130057[_0x10a28d(0x131)],'choices':[..._0x3827f3?[{'name':'Use\x20'+_0x3827f3,'value':'use_suggestion'}]:[],{'name':_0x130057['LnwEW'],'value':'retry'},{'name':'Continue\x20anyway','value':'continue'}]}]);if(_0x1ec0c0===_0x130057[_0x10a28d(0x191)]&&_0x3827f3){_0xfed378=_0x3827f3;const _0x21cf07=await checkUrlReachability(_0xfed378);if(_0x21cf07['ok'])break;console[_0x10a28d(0x117)]('\x0a\x20\x20Still\x20could\x20not\x20reach\x20'+_0xfed378+':\x20'+_0x21cf07[_0x10a28d(0x145)]);}else{if(_0x130057[_0x10a28d(0x139)](_0x1ec0c0,'continue'))break;}}}}_0x170263?.['trackPhaseEnd']('url_setup');const _0xa43ecc={};if(_0x17f226){const _0x52f17d=await _0x130057[_0x10a28d(0x12a)](loadSettings,_0x196292);Object['assign'](_0xa43ecc,_0x52f17d['setupHeaders']);}Object['assign'](_0xa43ecc,_0xed1dea),await mkdir(_0x3a1975,{'recursive':!![]});try{const _0x2d2dae=await _0x130057[_0x10a28d(0x12a)](readdir,_0x3a1975),_0x2920d6=_0x10a28d(0x144)+_0x196292+'-';for(const _0x3e7aea of _0x2d2dae){_0x3e7aea['startsWith'](_0x2920d6)&&await _0x130057[_0x10a28d(0x154)](rm,join(_0x3a1975,_0x3e7aea),{'recursive':!![],'force':!![]});}}catch{}const _0x4e7d7b=await _0x130057['ZiNHi'](mkdtemp,_0x130057[_0x10a28d(0x154)](join,_0x3a1975,_0x10a28d(0x144)+_0x196292+'-')),_0x169776=join(_0x4e7d7b,_0x130057['jfTPU']),_0x1f2dae=()=>{const _0x4d1671=_0x10a28d;_0x130057['ChTVd'](rm,_0x4e7d7b,{'recursive':!![],'force':!![]})[_0x4d1671(0x184)](()=>{})[_0x4d1671(0x148)](()=>{process['exit'](0x82);});};process['once'](_0x10a28d(0x17f),_0x1f2dae);const _0x2a4b5e=Boolean(_0xfed378)&&/^https:\/\/localhost(:\d+)?/i['test'](_0xfed378);try{if(_0x4a936a){_0x170263?.[_0x10a28d(0x171)]('browser_auth'),console['log'](_0x130057['wmTWG']),console[_0x10a28d(0x117)](_0x130057['lqbQc']),console['log']('\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.');!_0x37c4c2?(console[_0x10a28d(0x117)]('\x0a\x20\x20\x20โš \x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.'),console['log'](_0x10a28d(0x159))):console['log']('');await new Promise(_0x6ed935=>setTimeout(_0x6ed935,0xbb8));const _0x59ecb8=[];_0x3f3c96['safeMode']&&_0x59ecb8['push'](_0x130057[_0x10a28d(0x168)]);const _0x39c39d=_0x3f3c96[_0x10a28d(0x192)]||_0x2a4b5e;_0x39c39d&&_0x59ecb8['push'](_0x130057['ZliGM']);const _0x7fd4a5=await chromium['launch']({'headless':![],..._0x59ecb8['length']>0x0?{'args':_0x59ecb8}:{}});try{const _0x1b73d0=Object[_0x10a28d(0x18f)](_0xa43ecc)[_0x10a28d(0x186)]>0x0,_0x3bea33={'ignoreHTTPSErrors':!![]};_0x1b73d0&&(_0x3bea33['extraHTTPHeaders']=_0xa43ecc);const _0xf93032=await _0x7fd4a5[_0x10a28d(0x13c)](_0x3bea33);await addProfileSetupBanner(_0xf93032);const _0x476a6a=await _0xf93032['newPage']();await _0x476a6a[_0x10a28d(0x177)](_0xfed378||_0x10a28d(0x149));let _0x3bb05e=![];await new Promise(_0x39a23b=>{const _0x1ba79c=_0x10a28d,_0x3d1f1a={'aiZnp':'Saving\x20authentication\x20state...'};_0x476a6a['on'](_0x130057[_0x1ba79c(0x136)],async()=>{const _0x22e302=_0x1ba79c;try{console[_0x22e302(0x117)](_0x3d1f1a[_0x22e302(0x15c)]),await _0xf93032['storageState']({'path':_0x169776}),_0x3bb05e=!![];}catch{}_0x39a23b();});});if(!_0x3bb05e){console[_0x10a28d(0x117)](_0x130057[_0x10a28d(0x173)]);!_0x3f3c96[_0x10a28d(0x18a)]&&(console[_0x10a28d(0x117)]('This\x20can\x20happen\x20due\x20to\x20a\x20browser\x20compatibility\x20issue\x20on\x20some\x20systems.\x0a'),console[_0x10a28d(0x117)](_0x130057['APtKa']),console[_0x10a28d(0x117)](_0x10a28d(0x188)+_0x196292+_0x10a28d(0x175)),console['log'](_0x10a28d(0x188)+_0x196292+'\x20--skip-auth\x20\x20\x20\x20(skip\x20browser\x20auth\x20entirely)\x0a'));throw new Error(_0x130057['jxgms']);}}finally{await _0x7fd4a5['close']()['catch'](()=>{});}if(_0x3abb49){const _0x250bd8=await _0x130057[_0x10a28d(0x107)](readFile,_0x169776,_0x130057[_0x10a28d(0x15d)]),_0x3ce693=await _0x130057['lLEUu'](getToken);if(!_0x3ce693){console[_0x10a28d(0x145)](_0x10a28d(0x14b)),await _0x130057[_0x10a28d(0x12a)](unlink,_0x169776)['catch'](()=>{});throw new Error('Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.');}else{const _0x21bcc3=_0x130057[_0x10a28d(0x154)](encrypt,_0x250bd8,_0x3ce693);await _0x130057[_0x10a28d(0x107)](writeFile,_0x130057[_0x10a28d(0x16d)](_0x169776,_0x130057[_0x10a28d(0x119)]),_0x21bcc3),await unlink(_0x169776),console[_0x10a28d(0x117)](_0x10a28d(0x15b)+_0x169776+'.enc'),console[_0x10a28d(0x117)](_0x130057['prirJ']),console[_0x10a28d(0x117)](_0x130057['WtLKL']);}}else console[_0x10a28d(0x117)](_0x10a28d(0x127)+_0x169776);_0x170263?.['trackPhaseEnd'](_0x130057['MzpZd']);}_0x170263?.[_0x10a28d(0x171)](_0x130057[_0x10a28d(0x138)]);const _0x4efe52={};_0xfed378&&(_0x4efe52['baseUrl']=_0xfed378);_0x3f3c96[_0x10a28d(0x126)]&&(_0x4efe52['cdpEndpoint']=_0x3f3c96[_0x10a28d(0x126)],_0x4efe52['isElectron']=!![]);(_0x3f3c96['allowInsecureLocalhost']||_0x2a4b5e)&&(_0x4efe52[_0x10a28d(0x192)]=!![]);_0x3f3c96[_0x10a28d(0x18a)]&&(_0x4efe52[_0x10a28d(0x18a)]=!![]);_0x130057['bRZsb'](Object['keys'](_0xa43ecc)['length'],0x0)&&(_0x4efe52['setupHeaders']=_0xa43ecc);await writeFile(_0x130057['ChTVd'](join,_0x4e7d7b,_0x10a28d(0x172)),JSON['stringify'](_0x4efe52,null,0x2)),console['log'](_0x10a28d(0x106)+_0x130057['NVyUh'](join,_0x1131df,_0x10a28d(0x172)));if(_0x17f226?.[_0x10a28d(0x10b)]===_0x592351){const _0x11da8e=_0x17f226['path']+_0x10a28d(0x12b)+Date[_0x10a28d(0x10e)]();await rename(_0x17f226[_0x10a28d(0x11f)],_0x11da8e);try{await rename(_0x4e7d7b,_0x1131df);}catch(_0x3abdbd){await rename(_0x11da8e,_0x17f226['path']);throw _0x3abdbd;}try{await _0x130057[_0x10a28d(0x15f)](rm,_0x11da8e,{'recursive':!![]});}catch{console[_0x10a28d(0x117)](_0x10a28d(0x13f)+_0x11da8e);}}else{await rename(_0x4e7d7b,_0x1131df);if(_0x17f226)try{await _0x130057[_0x10a28d(0x161)](rm,_0x17f226[_0x10a28d(0x11f)],{'recursive':!![]}),console['log'](_0x10a28d(0x18d)+_0x17f226['path']);}catch{console['log'](_0x10a28d(0x187)+_0x17f226[_0x10a28d(0x11f)]);}}try{await writeActiveProfileName(_0x196292),console['log']('\x20\x20Set\x20active\x20profile:\x20'+_0x196292);}catch{console[_0x10a28d(0x117)]('Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.');}_0x170263?.['trackPhaseEnd'](_0x130057['AWHtb']),console[_0x10a28d(0x117)]('\x0a\x20\x20Profile\x20\x22'+_0x196292+'\x22\x20configured');}catch(_0x223ff1){await _0x130057['lJfQO'](rm,_0x4e7d7b,{'recursive':!![],'force':!![]});throw _0x223ff1;}finally{process[_0x10a28d(0x151)](_0x130057[_0x10a28d(0x14e)],_0x1f2dae);}}
1
+ (function(_0x284f41,_0x383e1c){const _0x259c8d=_0x388a,_0x25d891=_0x284f41();while(!![]){try{const _0x307d83=parseInt(_0x259c8d(0x1c0))/0x1+parseInt(_0x259c8d(0x1a7))/0x2*(parseInt(_0x259c8d(0x1b9))/0x3)+parseInt(_0x259c8d(0x176))/0x4*(parseInt(_0x259c8d(0x1ac))/0x5)+parseInt(_0x259c8d(0x1b6))/0x6+parseInt(_0x259c8d(0x17a))/0x7*(-parseInt(_0x259c8d(0x196))/0x8)+parseInt(_0x259c8d(0x18a))/0x9*(-parseInt(_0x259c8d(0x1b0))/0xa)+-parseInt(_0x259c8d(0x15e))/0xb;if(_0x307d83===_0x383e1c)break;else _0x25d891['push'](_0x25d891['shift']());}catch(_0x5aeb69){_0x25d891['push'](_0x25d891['shift']());}}}(_0x47ba,0xe3676));import{mkdir,writeFile,readFile,readdir,unlink,rm,mkdtemp,rename}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import _0xb212f4 from'inquirer';import{chromium}from'playwright';import{findExistingEnv,loadSettings}from'./utils/settings.js';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getRangerDir,getRangerHomeDir}from'./utils/rangerRoot.js';function _0x47ba(){const _0x25d38c=['Continue\x20anyway','\x22\x20already\x20exists.\x20Choose\x20a\x20different\x20name\x20or\x20delete\x20the\x20existing\x20profile\x20first.','LrlSt','SEATr','VFKnr','test','isElectron','auth.json','356512omZtGU','XBRen','user','\x0a๐Ÿ”Œ\x20CDP\x20Profile\x20Setup\x0a','Saving\x20authentication\x20state...','\x20(continuing\x20with\x20--force)','\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','signal','keNHN','baseUrl','YIJkc','fhOpK','\x22.\x20Expected\x20\x22Name:\x20Value\x22.','Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','\x0a๐ŸŒ\x20Profile\x20Setup\x0a','--disable-features=WebBluetooth','user_declined','44606doUvga','uYAvT','\x0a\x20\x20Still\x20could\x20not\x20reach\x20','NODE_TLS_REJECT_UNAUTHORIZED','error','1455xZffcv','force','setupHeader','log','130fpXUfS','allowInsecureLocalhost','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20at\x20','LeCoV','What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','โš \x20Could\x20not\x20reach\x20','5135754wWPNLR','Removed\x20existing\x20profile\x20at\x20','oLkKG','51vFCfVV','off','\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20','trackPhaseEnd','\x20\x20\x20Creating\x20it\x20in\x20','trackPhaseStart','No\x20auth\x20env\x20matches\x20this\x20URL.\x20Creating\x20local\x20profile.','894486gbAkzm','env','utf-8','VEExW','browser_auth','rGWLN','isTTY','JDupF','FbZrm','nMjae','dCcvl','local','assign','config_write','goto','fDHjH','location','url_setup','launch','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','BBsxf','environments','NBcBu','startsWith','url','http://localhost:3000','\x20--skip-auth\x20\x20\x20\x20(skip\x20browser\x20auth\x20entirely)\x0a','Browser\x20closed\x20before\x20authentication\x20was\x20saved.','What\x20would\x20you\x20like\x20to\x20do?','.tmp-','http://','18224921hlzkIa','\x20would\x20shadow\x20the\x20existing\x20profile.','SkART','wyePx','Delete\x20existing\x20and\x20create\x20new\x20in\x20','shouldReplace','yes','confirm','extraHTTPHeaders','prompt','OpdQK','oQnvg','\x0a\x20\x20Profile\x20\x22','Profile\x20\x22','profile.add.autoRouteSkipped','--allow-insecure-localhost','cdpEndpoint','ngmed','storageState','\x0aโš ๏ธ\x20\x20Profile\x20\x22','\x22\x20already\x20exists.\x20Overwrite?','Warning:\x20Could\x20not\x20remove\x20old\x20profile\x20backup\x20at\x20','path','.backup-','9304BAegWL','stdin','length','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','28rFOaDY','catch','safeMode','\x20\x20Could\x20not\x20reach\x20Ranger\x20API\x20to\x20create\x20a\x20cloud\x20profile\x20(','\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20','keys','XcYWE','HhuYI','no_auth_config','slice','message','\x20\x20Next:\x20RANGER_TEST_USERNAME=...\x20RANGER_TEST_PASSWORD=...\x20ranger\x20go\x20--profile\x20','jDjHH','skipAuth','profile.add.autoRouted','overwrite','27657zeEJHr','Please\x20provide\x20--url\x20when\x20running\x20in\x20non-interactive\x20mode.\x0aMake\x20sure\x20the\x20service\x20is\x20running\x20on\x20that\x20port\x20before\x20retrying.\x0aExample:\x20ranger\x20profile\x20add\x20local\x20--url\x20http://localhost:3000','\x0a\x20\x20(domains:\x20','continue'];_0x47ba=function(){return _0x25d38c;};return _0x47ba();}import{writeActiveProfileName}from'./utils/activeProfile.js';import{addProfileSetupBanner}from'./utils/profileSetupBanner.js';import{fetchAuthConfig,createCloudProfile,ApiError}from'./utils/cloudProfile.js';import{matchAuthEnvironment}from'./utils/matchAuthEnvironment.js';import{isPathGitTracked}from'./utils/gitTracked.js';async function checkUrlReachability(_0x29e694){const _0x153624=_0x388a,_0xeff23b={'HvDPK':'HEAD','hdTLh':function(_0x51f8e0,_0x395027){return _0x51f8e0<_0x395027;},'TESkv':'Invalid\x20URL','hTFgA':'TypeError','uaNpZ':'fetch\x20failed'};try{const _0x4a5c81=new AbortController(),_0x34a09b=setTimeout(()=>_0x4a5c81['abort'](),0x1388),_0x1d2e19={'method':_0xeff23b['HvDPK'],'signal':_0x4a5c81[_0x153624(0x19d)],'redirect':'manual'};/^https:\/\/localhost(:\d+)?/i['test'](_0x29e694)&&(process['env'][_0x153624(0x1aa)]='0');const _0x39fead=await fetch(_0x29e694,_0x1d2e19);delete process[_0x153624(0x1c1)]['NODE_TLS_REJECT_UNAUTHORIZED'],clearTimeout(_0x34a09b);if(_0xeff23b['hdTLh'](_0x39fead['status'],0x190))return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x39fead['status']};}catch(_0x1c38b5){delete process[_0x153624(0x1c1)]['NODE_TLS_REJECT_UNAUTHORIZED'];const _0x49c63a=_0x1c38b5,_0xabefca=_0x49c63a[_0x153624(0x184)]||String(_0x1c38b5),_0x144a09=_0xabefca['includes'](_0xeff23b['TESkv'])||_0x49c63a['name']===_0xeff23b['hTFgA']||_0xabefca['includes'](_0xeff23b['uaNpZ']);return{'ok':![],'error':_0xabefca,'isProtocolError':_0x144a09};}}async function sweepOrphanLocalProfile(_0x3f81ef,_0x1c3508,_0x30ff0b){const _0x28e750=_0x388a,_0x2b0dd1={'XBRen':_0x28e750(0x14a),'QZMZj':function(_0x54bfc,_0x538a33){return _0x54bfc(_0x538a33);},'uMTHR':function(_0x48f422,_0x4af949){return _0x48f422(_0x4af949);}},_0x5d9629=join(_0x1c3508,_0x2b0dd1[_0x28e750(0x197)]),_0x415f35=join(_0x5d9629,_0x3f81ef);_0x2b0dd1['QZMZj'](existsSync,_0x415f35)&&(_0x30ff0b&&await _0x2b0dd1['uMTHR'](isPathGitTracked,_0x415f35)?console[_0x28e750(0x1af)]('\x20\x20Note:\x20found\x20git-tracked\x20local\x20profile\x20at\x20'+_0x415f35+'\x20โ€”\x20not\x20removing.\x20Delete\x20manually\x20if\x20you\x20want\x20it\x20gone.'):(await rm(_0x415f35,{'recursive':!![],'force':!![]}),console[_0x28e750(0x1af)]('\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20'+_0x415f35)));if(existsSync(_0x5d9629)){let _0x4d2772=[];try{_0x4d2772=await readdir(_0x5d9629);}catch{return;}const _0x45d610='.tmp-'+_0x3f81ef+'-';for(const _0x3d49a9 of _0x4d2772){if(!_0x3d49a9['startsWith'](_0x45d610))continue;const _0x57b3e2=join(_0x5d9629,_0x3d49a9);await rm(_0x57b3e2,{'recursive':!![],'force':!![]}),console[_0x28e750(0x1af)](_0x28e750(0x1bb)+_0x57b3e2);}}}function _0x388a(_0x370c49,_0x2d6c87){_0x370c49=_0x370c49-0x149;const _0x47baca=_0x47ba();let _0x388a4a=_0x47baca[_0x370c49];return _0x388a4a;}async function tryAutoRouteCloudProfile(_0x5a5304,_0x5a439d,_0x549788,_0x2ecd9f,_0x2a7620){const _0x2d6171=_0x388a,_0x4ec078={'lcTpy':'profile.add.autoRouteSkipped','VFKnr':'no_auth_config','BBsxf':function(_0x3860d9,_0x38845e,_0x5bb02d){return _0x3860d9(_0x38845e,_0x5bb02d);},'NycVb':'saveToCloud','HsxgO':function(_0x145c56,_0x153de2){return _0x145c56===_0x153de2;},'DoDSt':function(_0x3df9d3,_0x476da1,_0x1f8450,_0x3b977f){return _0x3df9d3(_0x476da1,_0x1f8450,_0x3b977f);},'FbZrm':function(_0x36b92f){return _0x36b92f();},'ypaDZ':function(_0x13e892,_0xcdd706){return _0x13e892!==_0xcdd706;},'rSKHI':function(_0xab108d,_0x45329a){return _0xab108d instanceof _0x45329a;},'ZocLR':_0x2d6171(0x188)};let _0x2e88a2;try{_0x2e88a2=await fetchAuthConfig();}catch{return _0x2a7620?.[_0x2d6171(0x1bc)]('profile.add.autoRouteSkipped',{'reason':_0x2d6171(0x182),'profileName':_0x5a5304}),![];}if(!_0x2e88a2||!_0x2e88a2[_0x2d6171(0x154)]||Object[_0x2d6171(0x17f)](_0x2e88a2[_0x2d6171(0x154)])['length']===0x0)return _0x2a7620?.['trackPhaseEnd'](_0x4ec078['lcTpy'],{'reason':_0x4ec078[_0x2d6171(0x192)],'profileName':_0x5a5304}),![];const _0x41b3e2=_0x4ec078[_0x2d6171(0x153)](matchAuthEnvironment,_0x5a439d,_0x2e88a2);if(!_0x41b3e2)return console['log'](_0x2d6171(0x1bf)),_0x2a7620?.[_0x2d6171(0x1bc)](_0x2d6171(0x16c),{'reason':'no_match','profileName':_0x5a5304}),![];const _0x3674bf=_0x2e88a2[_0x2d6171(0x154)][_0x41b3e2],_0x29b6d8=_0x3674bf?.['domains']??[];if(_0x2ecd9f&&!_0x549788[_0x2d6171(0x164)]){const {saveToCloud:_0x3d3ffd}=await _0xb212f4['prompt']([{'type':'confirm','name':_0x4ec078['NycVb'],'message':'Found\x20auth\x20environment\x20\x27'+_0x41b3e2+'\x27\x20matching\x20'+_0x5a439d+_0x2d6171(0x18c)+_0x29b6d8['join'](',\x20')+')\x0a\x20\x20Save\x20\x27'+_0x5a5304+'\x27\x20to\x20the\x20cloud?','default':!![]}]);if(!_0x3d3ffd)return _0x2a7620?.['trackPhaseEnd']('profile.add.autoRouteSkipped',{'reason':_0x2d6171(0x1a6),'profileName':_0x5a5304}),![];}const _0x2cebfe=_0x29b6d8['some'](_0x4ec450=>{try{return new URL(_0x4ec450)['origin']===new URL(_0x5a439d)['origin'];}catch{return![];}}),_0x561d5a={};!_0x2cebfe&&(_0x561d5a['baseUrl']=_0x5a439d);try{await createCloudProfile(_0x5a5304,_0x41b3e2,{'settings':_0x561d5a});}catch(_0x2893f3){if(_0x2893f3 instanceof ApiError&&_0x4ec078['HsxgO'](_0x2893f3['status'],0x199)){console['error']('\x0a\x20\x20A\x20cloud\x20profile\x20named\x20\x22'+_0x5a5304+_0x2d6171(0x18f));throw _0x2893f3;}return console['log'](_0x2d6171(0x17d)+(_0x2893f3 instanceof Error?_0x2893f3[_0x2d6171(0x184)]:String(_0x2893f3))+').\x20Falling\x20back\x20to\x20local\x20profile.'),_0x2a7620?.[_0x2d6171(0x1bc)](_0x4ec078['lcTpy'],{'reason':_0x2d6171(0x182),'profileName':_0x5a5304}),![];}console['log']('โœ“\x20Cloud\x20profile\x20\x27'+_0x5a5304+'\x27\x20created,\x20linked\x20to\x20env\x20\x27'+_0x41b3e2+'\x27.\x0a'+(_0x2d6171(0x185)+_0x5a5304));try{await _0x4ec078['DoDSt'](sweepOrphanLocalProfile,_0x5a5304,getRangerHomeDir(),![]);const _0x2c0d57=_0x4ec078[_0x2d6171(0x1c8)](getRangerDir);_0x4ec078['ypaDZ'](_0x2c0d57,getRangerHomeDir())&&await sweepOrphanLocalProfile(_0x5a5304,_0x2c0d57,!![]);}catch(_0x409074){console[_0x2d6171(0x1af)]('\x20\x20Note:\x20cloud\x20profile\x20created,\x20but\x20failed\x20to\x20sweep\x20orphan\x20local\x20dirs\x20('+(_0x4ec078['rSKHI'](_0x409074,Error)?_0x409074['message']:String(_0x409074))+').');}return _0x2a7620?.[_0x2d6171(0x1bc)](_0x4ec078['ZocLR'],{'envKey':_0x41b3e2,'profileName':_0x5a5304}),!![];}export async function addEnv(_0x2dfc8b,_0x3a96ef={},_0xa22274){const _0x471767=_0x388a,_0x455d5c={'BnLZi':_0x471767(0x14a),'onjgh':_0x471767(0x198),'uksto':function(_0x3ad179){return _0x3ad179();},'IHnuT':function(_0x23f719,_0xf4ff25,_0x11d2b8,_0x272dc5){return _0x23f719(_0xf4ff25,_0x11d2b8,_0x272dc5);},'VEExW':function(_0x5ca49f,_0x593b3d,_0x57ba82){return _0x5ca49f(_0x593b3d,_0x57ba82);},'YUebN':function(_0x1f05cb,_0x57712a){return _0x1f05cb===_0x57712a;},'irlYi':'--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','JSwpO':'--ci\x20and\x20--cdp-endpoint\x20cannot\x20be\x20used\x20together.\x20Electron/CDP\x20profiles\x20only\x20work\x20with\x20a\x20locally\x20running\x20app\x20and\x20are\x20not\x20supported\x20in\x20CI.','NBcBu':function(_0x7e4dbe,_0x449747){return _0x7e4dbe(_0x449747);},'WVCPD':_0x471767(0x18b),'HGufM':function(_0x2334e8,_0x58de8c,_0xe6aadf,_0x2aea40,_0xab70f1,_0x15b8c9){return _0x2334e8(_0x58de8c,_0xe6aadf,_0x2aea40,_0xab70f1,_0x15b8c9);},'hulpm':'confirm','nPKXQ':_0x471767(0x189),'JDupF':'Aborted.','HhuYI':'legacy','DmwXK':_0x471767(0x163),'rGWLN':_0x471767(0x1a4),'fDHjH':_0x471767(0x179),'ngmed':'\x20\x20Ranger\x20will\x20open\x20it\x20in\x20a\x20browser\x20so\x20you\x20can\x20log\x20in\x20and\x20save\x20your\x20session.\x0a','nGLhN':_0x471767(0x1b4),'HntAt':_0x471767(0x158),'LeCoV':function(_0x27e1a6,_0x27e828){return _0x27e1a6(_0x27e828);},'YIJkc':'list','Nrqxf':'action','fhOpK':'use_suggestion','SKxJE':_0x471767(0x18e),'oLkKG':function(_0x3c465a,_0x292d57){return _0x3c465a(_0x292d57);},'oqYpP':_0x471767(0x150),'LrlSt':function(_0x1153ed,_0x364f8e,_0x358246){return _0x1153ed(_0x364f8e,_0x358246);},'nMjae':function(_0x2b3d64,_0x25089a,_0x2d11ad){return _0x2b3d64(_0x25089a,_0x2d11ad);},'XcYWE':'\x0a๐Ÿ“‹\x20Authentication\x20Setup','jDjHH':'\x20\x20\x20A\x20browser\x20will\x20open.\x20Please\x20log\x20in\x20to\x20the\x20profile\x20you\x20want\x20to\x20test\x20so\x20Ranger\x20can\x20access\x20it.','mVMbt':'\x0a\x20\x20\x20โš \x20This\x20step\x20requires\x20human\x20interaction\x20in\x20a\x20browser.','SkART':'\x20\x20\x20If\x20you\x20are\x20an\x20agent,\x20background\x20this\x20process\x20and\x20let\x20your\x20user\x20know\x20they\x20need\x20to\x20complete\x20browser\x20authentication.\x0a','oQnvg':function(_0x301895,_0x38df99){return _0x301895>_0x38df99;},'SEATr':'\x0aThe\x20browser\x20closed\x20unexpectedly\x20before\x20authentication\x20could\x20be\x20saved.','dCcvl':'This\x20can\x20happen\x20due\x20to\x20a\x20browser\x20compatibility\x20issue\x20on\x20some\x20systems.\x0a','wyePx':_0x471767(0x15a),'OpdQK':'\x20\x20Could\x20not\x20encrypt:\x20No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','uJNvg':function(_0x48e6b8,_0x11f084,_0x493dfc){return _0x48e6b8(_0x11f084,_0x493dfc);},'uYAvT':function(_0x353998,_0x1b2162){return _0x353998+_0x1b2162;},'NxKNq':_0x471767(0x19c),'lpQGT':function(_0x3833ac,_0x484478){return _0x3833ac>_0x484478;},'QcKfW':function(_0x50652d,_0x49f222,_0x8867ac){return _0x50652d(_0x49f222,_0x8867ac);},'Wqsdn':'settings.json','keNHN':function(_0x4a2117,_0x339435,_0xfd9bb6){return _0x4a2117(_0x339435,_0xfd9bb6);},'jZuXO':function(_0x4be912,_0xcb10df,_0x18e90e){return _0x4be912(_0xcb10df,_0x18e90e);},'CPKwj':_0x471767(0x152),'nxfas':_0x471767(0x14c),'xFkiT':'SIGINT'},_0x10a9ad=_0x3a96ef['ci']??![],_0x29751d=_0x10a9ad?'ci':_0x455d5c['BnLZi'],_0x3879e2=_0x3a96ef['scope']===_0x455d5c['onjgh']?getRangerHomeDir():_0x455d5c['uksto'](getRangerDir),_0x878a31=_0x455d5c['IHnuT'](join,_0x3879e2,_0x29751d,_0x2dfc8b),_0x4a8af1={};if(_0x3a96ef[_0x471767(0x1ae)])for(const _0x3b44cc of _0x3a96ef[_0x471767(0x1ae)]){const _0x11f2db=_0x3b44cc['indexOf'](':');if(_0x11f2db===-0x1)throw new Error('Invalid\x20--setup-header\x20format:\x20\x22'+_0x3b44cc+_0x471767(0x1a2));const _0x1599b4=_0x3b44cc[_0x471767(0x183)](0x0,_0x11f2db)['trim'](),_0x172ffd=_0x3b44cc['slice'](_0x11f2db+0x1)['trim']();_0x4a8af1[_0x1599b4]=_0x172ffd;}const _0x3d753d=_0x455d5c[_0x471767(0x1c3)](join,_0x3879e2,_0x29751d);if(_0x3a96ef['cdpEndpoint']!==undefined&&_0x455d5c['YUebN'](_0x3a96ef[_0x471767(0x16e)]['trim'](),''))throw new Error(_0x455d5c['irlYi']);if(_0x3a96ef['cdpEndpoint']&&_0x3a96ef[_0x471767(0x157)])throw new Error('--url\x20and\x20--cdp-endpoint\x20are\x20mutually\x20exclusive.\x20Use\x20--url\x20for\x20web\x20apps\x20or\x20--cdp-endpoint\x20for\x20Electron/CDP\x20apps,\x20not\x20both.');if(_0x3a96ef[_0x471767(0x16e)]&&_0x3a96ef['ci'])throw new Error(_0x455d5c['JSwpO']);const _0x59e6f0=_0x455d5c['NBcBu'](Boolean,_0x3a96ef[_0x471767(0x16e)]),_0x41ba29=!_0x3a96ef['skipAuth']&&!_0x59e6f0,_0x151e99=process[_0x471767(0x177)][_0x471767(0x1c6)]&&process['stdout']['isTTY'];if(!_0x151e99&&!_0x3a96ef[_0x471767(0x157)]&&!_0x59e6f0)throw new Error(_0x455d5c['WVCPD']);if(!_0x10a9ad&&!_0x3a96ef[_0x471767(0x187)]&&!_0x59e6f0&&_0x3a96ef[_0x471767(0x157)]){const _0x52fbfa=await _0x455d5c['HGufM'](tryAutoRouteCloudProfile,_0x2dfc8b,_0x3a96ef['url'],_0x3a96ef,_0x151e99,_0xa22274);if(_0x52fbfa)return;}const _0x5bb030=findExistingEnv(_0x2dfc8b,{'rangerDir':_0x3879e2});let _0x54f6c2=null;if(_0x5bb030){if(!_0x151e99)_0x54f6c2=_0x5bb030;else{if(_0x455d5c['YUebN'](_0x5bb030['location'],_0x29751d)){const {overwrite:_0x11027a}=await _0xb212f4[_0x471767(0x167)]([{'type':_0x455d5c['hulpm'],'name':_0x455d5c['nPKXQ'],'message':_0x471767(0x16b)+_0x2dfc8b+_0x471767(0x172),'default':![]}]);if(!_0x11027a){console['log'](_0x455d5c[_0x471767(0x1c7)]);return;}_0x54f6c2=_0x5bb030;}else{const _0x444e11=_0x5bb030[_0x471767(0x14f)]===_0x455d5c[_0x471767(0x181)]?'root\x20(.ranger/)':_0x5bb030['location'];console[_0x471767(0x1ab)](_0x471767(0x171)+_0x2dfc8b+'\x22\x20already\x20exists\x20in\x20'+_0x444e11+':\x20'+_0x5bb030['path']),console['error'](_0x471767(0x1bd)+_0x29751d+_0x471767(0x15f));const {shouldReplace:_0x391dca}=await _0xb212f4['prompt']([{'type':_0x471767(0x165),'name':_0x455d5c['DmwXK'],'message':_0x471767(0x162)+_0x29751d+'?','default':![]}]);if(!_0x391dca){console[_0x471767(0x1af)](_0x455d5c[_0x471767(0x1c7)]);return;}_0x54f6c2=_0x5bb030;}}}_0xa22274?.[_0x471767(0x1be)]('url_setup');let _0x4ee169='';if(_0x59e6f0)console['log'](_0x471767(0x199)),console[_0x471767(0x1af)](_0x471767(0x17e)+_0x3a96ef['cdpEndpoint']),console['log']('\x20\x20Make\x20sure\x20your\x20Electron\x20app\x20(or\x20browser)\x20is\x20running\x20with\x20remote\x20debugging\x20enabled.\x0a');else{if(_0x3a96ef['url']){_0x4ee169=_0x3a96ef['url'];const _0x48f3e4=await checkUrlReachability(_0x4ee169);if(!_0x48f3e4['ok']&&!_0x3a96ef[_0x471767(0x1ad)])throw new Error('Could\x20not\x20reach\x20'+_0x4ee169+':\x20'+_0x48f3e4['error']+'\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.');!_0x48f3e4['ok']&&_0x3a96ef['force']&&console['log'](_0x471767(0x1b5)+_0x4ee169+':\x20'+_0x48f3e4['error']+_0x471767(0x19b));}else{console['log'](_0x455d5c[_0x471767(0x1c5)]),console[_0x471767(0x1af)](_0x455d5c[_0x471767(0x14e)]),console[_0x471767(0x1af)](_0x455d5c[_0x471767(0x16f)]);let _0x270d95=![];while(!![]){const _0x4c9cbc=await _0xb212f4[_0x471767(0x167)]([{'type':'input','name':'baseUrl','message':_0x270d95?_0x471767(0x1a3):_0x455d5c['nGLhN'],'default':_0x4ee169||_0x455d5c['HntAt']}]);_0x4ee169=_0x4c9cbc[_0x471767(0x19f)];const _0x3d7053=await _0x455d5c[_0x471767(0x1b3)](checkUrlReachability,_0x4ee169);if(_0x3d7053['ok'])break;const _0x1dfa8a=/^[a-zA-Z][\w+.-]*:\/\//[_0x471767(0x193)](_0x4ee169),_0x6c1434=_0x3d7053['isProtocolError']&&!_0x1dfa8a,_0x135ee3=_0x6c1434?_0x471767(0x15d)+_0x4ee169:null;_0x270d95=!![],console[_0x471767(0x1af)]('\x0a\x20\x20Could\x20not\x20reach\x20'+_0x4ee169+':\x20'+_0x3d7053[_0x471767(0x1ab)]);_0x135ee3&&console['log']('\x20\x20Did\x20you\x20mean\x20'+_0x135ee3+'?');const {action:_0x31043c}=await _0xb212f4['prompt']([{'type':_0x455d5c[_0x471767(0x1a0)],'name':_0x455d5c['Nrqxf'],'message':_0x471767(0x15b),'choices':[..._0x135ee3?[{'name':'Use\x20'+_0x135ee3,'value':_0x455d5c[_0x471767(0x1a1)]}]:[],{'name':'Enter\x20a\x20different\x20URL','value':'retry'},{'name':_0x455d5c['SKxJE'],'value':_0x471767(0x18d)}]}]);if(_0x31043c==='use_suggestion'&&_0x135ee3){_0x4ee169=_0x135ee3;const _0x478569=await _0x455d5c['oLkKG'](checkUrlReachability,_0x4ee169);if(_0x478569['ok'])break;console['log'](_0x471767(0x1a9)+_0x4ee169+':\x20'+_0x478569['error']);}else{if(_0x455d5c['YUebN'](_0x31043c,_0x471767(0x18d)))break;}}}}_0xa22274?.[_0x471767(0x1bc)](_0x455d5c['oqYpP']);const _0x3d4831={};if(_0x54f6c2){const _0xeee565=await _0x455d5c[_0x471767(0x1b8)](loadSettings,_0x2dfc8b);Object[_0x471767(0x14b)](_0x3d4831,_0xeee565['setupHeaders']);}Object[_0x471767(0x14b)](_0x3d4831,_0x4a8af1),await _0x455d5c['VEExW'](mkdir,_0x3d753d,{'recursive':!![]});try{const _0x4ce033=await readdir(_0x3d753d),_0xf2dd4c=_0x471767(0x15c)+_0x2dfc8b+'-';for(const _0x43768e of _0x4ce033){_0x43768e[_0x471767(0x156)](_0xf2dd4c)&&await _0x455d5c[_0x471767(0x190)](rm,_0x455d5c[_0x471767(0x1c3)](join,_0x3d753d,_0x43768e),{'recursive':!![],'force':!![]});}}catch{}const _0x4dadd4=await mkdtemp(join(_0x3d753d,'.tmp-'+_0x2dfc8b+'-')),_0x187e8a=_0x455d5c[_0x471767(0x1c9)](join,_0x4dadd4,_0x471767(0x195)),_0x1f0a19=()=>{const _0x272e8d=_0x471767;rm(_0x4dadd4,{'recursive':!![],'force':!![]})[_0x272e8d(0x17b)](()=>{})['finally'](()=>{process['exit'](0x82);});};process['once']('SIGINT',_0x1f0a19);const _0x57248=_0x455d5c['LeCoV'](Boolean,_0x4ee169)&&/^https:\/\/localhost(:\d+)?/i[_0x471767(0x193)](_0x4ee169);try{if(_0x41ba29){_0xa22274?.[_0x471767(0x1be)](_0x471767(0x1c4)),console[_0x471767(0x1af)](_0x455d5c[_0x471767(0x180)]),console[_0x471767(0x1af)](_0x455d5c[_0x471767(0x186)]),console[_0x471767(0x1af)]('\x20\x20\x20When\x20done\x20logging\x20in,\x20close\x20the\x20browser\x20to\x20save\x20the\x20session.');!_0x151e99?(console[_0x471767(0x1af)](_0x455d5c['mVMbt']),console['log'](_0x455d5c[_0x471767(0x160)])):console[_0x471767(0x1af)]('');await new Promise(_0x1dabb=>setTimeout(_0x1dabb,0xbb8));const _0x5754bf=[];_0x3a96ef[_0x471767(0x17c)]&&_0x5754bf['push'](_0x471767(0x1a5));const _0x4eda3e=_0x3a96ef['allowInsecureLocalhost']||_0x57248;_0x4eda3e&&_0x5754bf['push'](_0x471767(0x16d));const _0x4cbadd=await chromium[_0x471767(0x151)]({'headless':![],..._0x455d5c[_0x471767(0x169)](_0x5754bf[_0x471767(0x178)],0x0)?{'args':_0x5754bf}:{}});try{const _0x41f147=_0x455d5c['oQnvg'](Object[_0x471767(0x17f)](_0x3d4831)['length'],0x0),_0x17c0d9={'ignoreHTTPSErrors':!![]};_0x41f147&&(_0x17c0d9[_0x471767(0x166)]=_0x3d4831);const _0x393ef5=await _0x4cbadd['newContext'](_0x17c0d9);await addProfileSetupBanner(_0x393ef5);const _0x5dd1d0=await _0x393ef5['newPage']();await _0x5dd1d0[_0x471767(0x14d)](_0x4ee169||'about:blank');let _0x471b58=![];await new Promise(_0x364ce8=>{const _0x259f54={'QuFbB':function(_0x4a921d){return _0x4a921d();}};_0x5dd1d0['on']('close',async()=>{const _0xb56ce2=_0x388a;try{console['log'](_0xb56ce2(0x19a)),await _0x393ef5[_0xb56ce2(0x170)]({'path':_0x187e8a}),_0x471b58=!![];}catch{}_0x259f54['QuFbB'](_0x364ce8);});});if(!_0x471b58){console[_0x471767(0x1af)](_0x455d5c[_0x471767(0x191)]);!_0x3a96ef[_0x471767(0x17c)]&&(console['log'](_0x455d5c[_0x471767(0x149)]),console['log']('You\x20can\x20try\x20again\x20with\x20one\x20of:'),console[_0x471767(0x1af)]('\x20\x20ranger\x20profile\x20add\x20'+_0x2dfc8b+'\x20--safe-mode\x20\x20\x20\x20(disables\x20browser\x20features\x20that\x20can\x20cause\x20crashes)'),console[_0x471767(0x1af)]('\x20\x20ranger\x20profile\x20add\x20'+_0x2dfc8b+_0x471767(0x159)));throw new Error(_0x455d5c[_0x471767(0x161)]);}}finally{await _0x4cbadd['close']()[_0x471767(0x17b)](()=>{});}if(_0x10a9ad){const _0x895b69=await readFile(_0x187e8a,_0x471767(0x1c2)),_0x376d7b=await getToken();if(!_0x376d7b){console['error'](_0x455d5c[_0x471767(0x168)]),await _0x455d5c['LeCoV'](unlink,_0x187e8a)['catch'](()=>{});throw new Error('Missing\x20API\x20token;\x20aborting\x20CI\x20profile\x20creation.');}else{const _0x4f83d2=_0x455d5c['uJNvg'](encrypt,_0x895b69,_0x376d7b);await writeFile(_0x455d5c[_0x471767(0x1a8)](_0x187e8a,'.enc'),_0x4f83d2),await unlink(_0x187e8a),console[_0x471767(0x1af)]('โœ“\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x187e8a+'.enc'),console['log'](_0x455d5c['NxKNq']),console['log']('\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.');}}else console[_0x471767(0x1af)]('โœ“\x20Auth\x20state\x20saved\x20to:\x20'+_0x187e8a);_0xa22274?.[_0x471767(0x1bc)](_0x471767(0x1c4));}_0xa22274?.[_0x471767(0x1be)](_0x471767(0x14c));const _0x168af6={};_0x4ee169&&(_0x168af6['baseUrl']=_0x4ee169);_0x3a96ef['cdpEndpoint']&&(_0x168af6[_0x471767(0x16e)]=_0x3a96ef[_0x471767(0x16e)],_0x168af6[_0x471767(0x194)]=!![]);(_0x3a96ef[_0x471767(0x1b1)]||_0x57248)&&(_0x168af6['allowInsecureLocalhost']=!![]);_0x3a96ef['safeMode']&&(_0x168af6['safeMode']=!![]);_0x455d5c['lpQGT'](Object[_0x471767(0x17f)](_0x3d4831)['length'],0x0)&&(_0x168af6['setupHeaders']=_0x3d4831);await _0x455d5c['QcKfW'](writeFile,join(_0x4dadd4,_0x455d5c['Wqsdn']),JSON['stringify'](_0x168af6,null,0x2)),console['log']('โœ“\x20Created\x20settings:\x20'+join(_0x878a31,_0x455d5c['Wqsdn']));if(_0x54f6c2?.['location']===_0x29751d){const _0x51dcb1=_0x54f6c2['path']+_0x471767(0x175)+Date['now']();await rename(_0x54f6c2['path'],_0x51dcb1);try{await _0x455d5c[_0x471767(0x19e)](rename,_0x4dadd4,_0x878a31);}catch(_0x2b7e22){await rename(_0x51dcb1,_0x54f6c2['path']);throw _0x2b7e22;}try{await _0x455d5c['keNHN'](rm,_0x51dcb1,{'recursive':!![]});}catch{console['log'](_0x471767(0x173)+_0x51dcb1);}}else{await _0x455d5c['jZuXO'](rename,_0x4dadd4,_0x878a31);if(_0x54f6c2)try{await rm(_0x54f6c2[_0x471767(0x174)],{'recursive':!![]}),console['log'](_0x471767(0x1b7)+_0x54f6c2[_0x471767(0x174)]);}catch{console['log'](_0x471767(0x1b2)+_0x54f6c2['path']);}}try{await _0x455d5c[_0x471767(0x155)](writeActiveProfileName,_0x2dfc8b),console[_0x471767(0x1af)]('\x20\x20Set\x20active\x20profile:\x20'+_0x2dfc8b);}catch{console['log'](_0x455d5c['CPKwj']);}_0xa22274?.[_0x471767(0x1bc)](_0x455d5c['nxfas']),console[_0x471767(0x1af)](_0x471767(0x16a)+_0x2dfc8b+'\x22\x20configured');}catch(_0x238b74){await rm(_0x4dadd4,{'recursive':!![],'force':!![]});throw _0x238b74;}finally{process[_0x471767(0x1ba)](_0x455d5c['xFkiT'],_0x1f0a19);}}
@@ -1 +1 @@
1
- (function(_0x352136,_0x124232){const _0x4555cd=_0x3f2a,_0x2173e4=_0x352136();while(!![]){try{const _0x1538c8=-parseInt(_0x4555cd(0xcd))/0x1+-parseInt(_0x4555cd(0xd7))/0x2+-parseInt(_0x4555cd(0xd3))/0x3*(-parseInt(_0x4555cd(0xc7))/0x4)+parseInt(_0x4555cd(0xcc))/0x5+parseInt(_0x4555cd(0xc8))/0x6+parseInt(_0x4555cd(0xc9))/0x7+-parseInt(_0x4555cd(0xd2))/0x8;if(_0x1538c8===_0x124232)break;else _0x2173e4['push'](_0x2173e4['shift']());}catch(_0x5003c2){_0x2173e4['push'](_0x2173e4['shift']());}}}(_0x5d4d,0x61d9d));import{readFile,writeFile}from'fs/promises';function _0x3f2a(_0x3b47fe,_0x367e7c){_0x3b47fe=_0x3b47fe-0xc4;const _0x5d4d74=_0x5d4d();let _0x3f2a7e=_0x5d4d74[_0x3b47fe];return _0x3f2a7e;}import{join}from'path';import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getEnvDir}from'./utils/settings.js';export async function authEncrypt(_0x2f59aa){const _0x4f59f3=_0x3f2a,_0x57fa7e={'xiQiK':function(_0x4ae12e,_0x26a03c,_0x14957b){return _0x4ae12e(_0x26a03c,_0x14957b);},'xtFPX':function(_0x356801,_0x1a717b){return _0x356801(_0x1a717b);},'vTXgr':function(_0x4a5b31){return _0x4a5b31();},'haQpS':_0x4f59f3(0xd4),'znfgm':'\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.','SywLR':_0x4f59f3(0xd5),'hvvBI':function(_0x4e3044,_0x133f6d){return _0x4e3044(_0x133f6d);}},_0x375e5e=getEnvDir(_0x2f59aa),_0x4aff23=_0x57fa7e[_0x4f59f3(0xcf)](join,_0x375e5e,'auth.json'),_0x2cd57f=_0x4aff23+'.enc';if(!_0x57fa7e[_0x4f59f3(0xce)](existsSync,_0x375e5e))throw new Error('Profile\x20\x22'+_0x2f59aa+_0x4f59f3(0xcb)+_0x2f59aa);if(!_0x57fa7e[_0x4f59f3(0xce)](existsSync,_0x4aff23))throw new Error(_0x4f59f3(0xd0)+_0x4aff23+'.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update');const _0x1f4b0c=await _0x57fa7e[_0x4f59f3(0xd6)](getToken);if(!_0x1f4b0c)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0xe3ffeb=await readFile(_0x4aff23,_0x57fa7e['haQpS']),_0x24507b=_0x57fa7e['xiQiK'](encrypt,_0xe3ffeb,_0x1f4b0c);await writeFile(_0x2cd57f,_0x24507b),console['log'](_0x4f59f3(0xc5)+_0x2cd57f),console[_0x4f59f3(0xc4)](_0x57fa7e[_0x4f59f3(0xc6)]),console[_0x4f59f3(0xc4)](_0x57fa7e['SywLR']),_0x57fa7e[_0x4f59f3(0xca)](existsSync,_0x2cd57f)&&(console[_0x4f59f3(0xc4)](_0x4f59f3(0xd1)),console[_0x4f59f3(0xc4)]('\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.'));}function _0x5d4d(){const _0x2447c1=['4509402RLQogp','5008360iGNoIl','hvvBI','\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','2782425mozfOT','614837vBvtuq','xtFPX','xiQiK','No\x20auth.json\x20found\x20at\x20','\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.','6521384Fszors','1447263rwAtxn','utf-8','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','vTXgr','1350292mWMoWQ','log','\x0aโœ“\x20Encrypted\x20auth\x20saved\x20to:\x20','znfgm','4CyTAfw'];_0x5d4d=function(){return _0x2447c1;};return _0x5d4d();}
1
+ (function(_0x28d36b,_0x418691){const _0x147476=_0x3ced,_0x568a10=_0x28d36b();while(!![]){try{const _0x5b26c3=-parseInt(_0x147476(0x73))/0x1+parseInt(_0x147476(0x6b))/0x2*(-parseInt(_0x147476(0x72))/0x3)+parseInt(_0x147476(0x77))/0x4*(-parseInt(_0x147476(0x7c))/0x5)+parseInt(_0x147476(0x7d))/0x6+-parseInt(_0x147476(0x75))/0x7+parseInt(_0x147476(0x6f))/0x8+-parseInt(_0x147476(0x6d))/0x9*(-parseInt(_0x147476(0x6e))/0xa);if(_0x5b26c3===_0x418691)break;else _0x568a10['push'](_0x568a10['shift']());}catch(_0xeff877){_0x568a10['push'](_0x568a10['shift']());}}}(_0x2289,0xe2157));import{readFile,writeFile}from'fs/promises';import{join}from'path';function _0x3ced(_0x446fed,_0x1faf8f){_0x446fed=_0x446fed-0x6b;const _0x228972=_0x2289();let _0x3ceded=_0x228972[_0x446fed];return _0x3ceded;}import{existsSync}from'fs';import{encrypt}from'./utils/crypto.js';import{getToken}from'./utils/keychain.js';import{getEnvDir}from'./utils/settings.js';export async function authEncrypt(_0x15d848){const _0x21f470=_0x3ced,_0x19d4c0={'UfYkk':function(_0x1145e4,_0x21edcd){return _0x1145e4(_0x21edcd);},'ADkTy':function(_0x37fa30,_0x2febac,_0x406d4b){return _0x37fa30(_0x2febac,_0x406d4b);},'DXcHf':_0x21f470(0x78),'EtHpV':_0x21f470(0x74),'vUIZI':function(_0x322e67,_0x5babd6){return _0x322e67(_0x5babd6);},'cEWiN':function(_0x9ce0aa){return _0x9ce0aa();},'FwcuL':'utf-8'},_0x23c3a7=_0x19d4c0[_0x21f470(0x71)](getEnvDir,_0x15d848),_0x4695e9=_0x19d4c0['ADkTy'](join,_0x23c3a7,_0x19d4c0[_0x21f470(0x6c)]),_0x4ba541=_0x4695e9+_0x19d4c0[_0x21f470(0x70)];if(!_0x19d4c0['UfYkk'](existsSync,_0x23c3a7))throw new Error(_0x21f470(0x7a)+_0x15d848+_0x21f470(0x7e)+_0x15d848);if(!_0x19d4c0[_0x21f470(0x7b)](existsSync,_0x4695e9))throw new Error('No\x20auth.json\x20found\x20at\x20'+_0x4695e9+'.\x20Run\x20first:\x20ranger\x20profile\x20add\x20with\x20authentication,\x20or\x20ranger\x20profile\x20update');const _0x22b4ff=await _0x19d4c0[_0x21f470(0x7f)](getToken);if(!_0x22b4ff)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x3305b2=await readFile(_0x4695e9,_0x19d4c0['FwcuL']),_0x555bca=encrypt(_0x3305b2,_0x22b4ff);await writeFile(_0x4ba541,_0x555bca),console['log']('\x0aโœ“\x20Encrypted\x20auth\x20saved\x20to:\x20'+_0x4ba541),console[_0x21f470(0x76)]('\x20\x20You\x20can\x20safely\x20commit\x20this\x20file\x20to\x20git.'),console[_0x21f470(0x76)](_0x21f470(0x79)),_0x19d4c0[_0x21f470(0x7b)](existsSync,_0x4ba541)&&(console['log']('\x0a\x20\x20The\x20plaintext\x20auth.json\x20is\x20gitignored\x20for\x20security.'),console[_0x21f470(0x76)]('\x20\x20The\x20encrypted\x20auth.json.enc\x20can\x20be\x20committed.'));}function _0x2289(){const _0x4dcf5e=['4cMKiYO','DXcHf','9TCEwKm','39685840gLfNWO','101224XJKZRO','EtHpV','UfYkk','2265414OiQsKw','1160017SNTnWS','.enc','2526825PDMAvJ','log','188NQoizh','auth.json','\x20\x20Run\x20ranger\x20setup\x20in\x20CI\x20to\x20decrypt\x20at\x20runtime.','Profile\x20\x22','vUIZI','195650azOUDQ','10891080nYAFRy','\x22\x20not\x20found.\x20Run\x20first:\x20ranger\x20profile\x20add\x20','cEWiN'];_0x2289=function(){return _0x4dcf5e;};return _0x2289();}
@@ -1 +1 @@
1
- const _0x43775c=_0x4a05;(function(_0xa38371,_0x4adcc1){const _0x1777e1=_0x4a05,_0x273ef5=_0xa38371();while(!![]){try{const _0x5ca3a2=-parseInt(_0x1777e1(0x1c5))/0x1*(parseInt(_0x1777e1(0x1db))/0x2)+-parseInt(_0x1777e1(0x1e4))/0x3+parseInt(_0x1777e1(0x1d1))/0x4+-parseInt(_0x1777e1(0x1ba))/0x5*(parseInt(_0x1777e1(0x1b8))/0x6)+-parseInt(_0x1777e1(0x1dc))/0x7*(parseInt(_0x1777e1(0x1bf))/0x8)+parseInt(_0x1777e1(0x1c0))/0x9*(parseInt(_0x1777e1(0x1b9))/0xa)+-parseInt(_0x1777e1(0x1e7))/0xb*(-parseInt(_0x1777e1(0x1bd))/0xc);if(_0x5ca3a2===_0x4adcc1)break;else _0x273ef5['push'](_0x273ef5['shift']());}catch(_0x29da87){_0x273ef5['push'](_0x273ef5['shift']());}}}(_0x1949,0xe9e17));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';function _0x1949(){const _0x4e1f25=['29196uNTOnl','bug-bash','close','SVFYY','Qooze','845057jbvoWi','plugin','error','QalXm','abXRG','OeblK','raUtA','Pwgih','win32','trailhead','parse','rAuuQ','7478236fjqXWR','EkoPo','โœ“\x20Removed\x20OpenCode\x20user\x20skill:\x20','โœ“\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','dsgkI','pipe','--scope','qyvmm','โœ“\x20Removed\x20trailhead\x20marketplace','user','2kffvYA','742fbIPSs','platform','Mtkbg','feature-tracker','utf-8','GrERa','length','sHYIa','174603GWqNTh','claude','log','26803579MMXuZB','โœ“\x20Removed\x20OpenCode\x20project\x20skill:\x20','SbKJR','RGRpq','opencode.json','ranger@trailhead','zphtG','marketplace','Nothing\x20to\x20clean\x20up.\x0a','QXRfn','3449046yUgfQn','130QJtyWv','5AduWHS','uninstall','push','12jcurMS','โœ“\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','144328BSDPIF'];_0x1949=function(){return _0x4e1f25;};return _0x1949();}function _0x4a05(_0x32e513,_0x269d5a){_0x32e513=_0x32e513-0x1b3;const _0x19497c=_0x1949();let _0x4a05f1=_0x19497c[_0x32e513];return _0x4a05f1;}import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=['ranger',_0x43775c(0x1df),_0x43775c(0x1c1),'e2e-test-recommender'],opencodePluginName='@ranger-testing/opencode-plugin';function parseJsonc(_0x338aab){const _0x547fb7=_0x43775c,_0x105fd0=_0x338aab['replace'](/\/\*[\s\S]*?\*\//g,''),_0xc9877e=_0x105fd0['replace'](/^\s*\/\/.*$/gm,''),_0x7cca5=_0xc9877e['replace'](/,\s*([}\]])/g,'$1');return JSON[_0x547fb7(0x1cf)](_0x7cca5);}async function removeOpencodePluginConfig(_0xfc4c2){const _0x5cd75a=_0x43775c,_0xe0e476={'CtQER':function(_0xb3753,_0x1e1100){return _0xb3753(_0x1e1100);},'Qooze':function(_0x570c78,_0x420221){return _0x570c78===_0x420221;},'abXRG':function(_0x34db50,_0x5b4fed,_0x34ea30){return _0x34db50(_0x5b4fed,_0x34ea30);}};if(!existsSync(_0xfc4c2))return![];let _0x3250af;try{const _0x2896b6=await readFile(_0xfc4c2,_0x5cd75a(0x1e0));_0x3250af=_0xe0e476['CtQER'](parseJsonc,_0x2896b6);}catch{return![];}const _0x7aed05=Array['isArray'](_0x3250af['plugin'])?_0x3250af[_0x5cd75a(0x1c6)]:[];if(_0x7aed05[_0x5cd75a(0x1e2)]===0x0)return![];const _0x2ea75a=_0x7aed05['filter'](_0x407cb=>{if(typeof _0x407cb!=='string')return!![];return _0x407cb!==opencodePluginName;});if(_0xe0e476['Qooze'](_0x2ea75a[_0x5cd75a(0x1e2)],_0x7aed05[_0x5cd75a(0x1e2)]))return![];return _0xe0e476[_0x5cd75a(0x1c4)](_0x2ea75a['length'],0x0)?delete _0x3250af['plugin']:_0x3250af[_0x5cd75a(0x1c6)]=_0x2ea75a,await _0xe0e476[_0x5cd75a(0x1c9)](writeFile,_0xfc4c2,JSON['stringify'](_0x3250af,null,0x2)+'\x0a'),!![];}async function uninstallClaudePlugin(_0x217c6e){const _0x20fb7e=_0x43775c,_0x22e8b6={'SVFYY':function(_0x2c823c,_0x5d59f8){return _0x2c823c===_0x5d59f8;},'pkxog':_0x20fb7e(0x1bb),'SbKJR':_0x20fb7e(0x1b3),'dsgkI':function(_0x1e0a43,_0x1d294b,_0x2f4e3d,_0x36d870){return _0x1e0a43(_0x1d294b,_0x2f4e3d,_0x36d870);},'sHYIa':_0x20fb7e(0x1d6),'QalXm':'win32'};return new Promise(_0x4d39c1=>{const _0x49cd71=_0x20fb7e,_0x32630e=['plugin',_0x22e8b6['pkxog'],_0x22e8b6[_0x49cd71(0x1e9)]];_0x217c6e&&_0x32630e[_0x49cd71(0x1bc)](_0x49cd71(0x1d7),_0x217c6e);const _0xb316ca=_0x22e8b6[_0x49cd71(0x1d5)](spawn,_0x49cd71(0x1e5),_0x32630e,{'stdio':_0x22e8b6[_0x49cd71(0x1e3)],'shell':process[_0x49cd71(0x1dd)]===_0x22e8b6[_0x49cd71(0x1c8)]});_0xb316ca['on'](_0x49cd71(0x1c2),_0x114072=>{const _0xe6a049=_0x49cd71;_0x4d39c1(_0x22e8b6[_0xe6a049(0x1c3)](_0x114072,0x0));}),_0xb316ca['on']('error',()=>{_0x4d39c1(![]);});});}async function removeMarketplace(){const _0x13359f=_0x43775c,_0x4eec3c={'VyhhL':function(_0x1ff4c2,_0x1b165f){return _0x1ff4c2===_0x1b165f;},'GrERa':function(_0x547283,_0xf74584){return _0x547283(_0xf74584);},'CFYPD':'claude','gLMUg':'plugin','iqbBR':_0x13359f(0x1b5),'RGRpq':'remove','BKDuy':_0x13359f(0x1ce),'zphtG':_0x13359f(0x1cd)};return new Promise(_0x542b5e=>{const _0x2a9c72=_0x13359f,_0x54e32f={'QcuJH':function(_0x141537,_0x6cc1c){const _0x401182=_0x4a05;return _0x4eec3c[_0x401182(0x1e1)](_0x141537,_0x6cc1c);}},_0xf764a2=spawn(_0x4eec3c['CFYPD'],[_0x4eec3c['gLMUg'],_0x4eec3c['iqbBR'],_0x4eec3c[_0x2a9c72(0x1ea)],_0x4eec3c['BKDuy']],{'stdio':_0x2a9c72(0x1d6),'shell':process[_0x2a9c72(0x1dd)]===_0x4eec3c[_0x2a9c72(0x1b4)]});_0xf764a2['on']('close',_0x2f32cf=>{_0x542b5e(_0x4eec3c['VyhhL'](_0x2f32cf,0x0));}),_0xf764a2['on'](_0x2a9c72(0x1c7),()=>{_0x54e32f['QcuJH'](_0x542b5e,![]);});});}export async function clean(){const _0x4f0916=_0x43775c,_0x11af69={'Pwgih':'โœ“\x20Removed\x20stored\x20credentials','OeblK':function(_0xe81219,_0x1f77d2){return _0xe81219(_0x1f77d2);},'JgDhj':function(_0x3f6152){return _0x3f6152();},'QXRfn':function(_0x443faa,_0x4b94fe,_0x2c4714){return _0x443faa(_0x4b94fe,_0x2c4714);},'Mtkbg':function(_0x2080bd,_0x23e196){return _0x2080bd(_0x23e196);},'raUtA':'project','ufRLt':function(_0x404984,_0x365a4b,_0x2511a0){return _0x404984(_0x365a4b,_0x2511a0);},'elACL':function(_0x36cc57,_0x3fa118,_0x1f232a){return _0x36cc57(_0x3fa118,_0x1f232a);},'KIhHw':function(_0x3125fc,_0x388484,_0x2542f8){return _0x3125fc(_0x388484,_0x2542f8);},'EkoPo':_0x4f0916(0x1d4),'qyvmm':function(_0x26d2be,_0x49bbdf,_0x59db2e){return _0x26d2be(_0x49bbdf,_0x59db2e);},'wDpLD':'opencode.json','rAuuQ':_0x4f0916(0x1be),'qJzLW':'โœ“\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','YMick':_0x4f0916(0x1b6)};console[_0x4f0916(0x1e6)]('\x0a๐Ÿงน\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a');let _0x2786d6=![];try{await deleteAllCredentials(),console[_0x4f0916(0x1e6)](_0x11af69[_0x4f0916(0x1cc)]),_0x2786d6=!![];}catch{}const _0x4e13ce=getCacheFile();existsSync(_0x4e13ce)&&(await _0x11af69[_0x4f0916(0x1ca)](rm,_0x4e13ce),_0x2786d6=!![]);const _0x181024=getRangerDir();existsSync(_0x181024)&&(await rm(_0x181024,{'recursive':!![]}),console['log']('โœ“\x20Removed\x20.ranger/\x20directory'),_0x2786d6=!![]);const _0xe1e2a8=getProjectSkillsDir();for(const _0x3e757b of skillsToRemove){const _0x1a9247=join(_0xe1e2a8,_0x3e757b);existsSync(_0x1a9247)&&(await rm(_0x1a9247,{'recursive':!![]}),console[_0x4f0916(0x1e6)]('โœ“\x20Removed\x20project\x20skill:\x20'+_0x3e757b),_0x2786d6=!![]);}const _0xd5ad49=_0x11af69['JgDhj'](getUserSkillsDir);for(const _0xdb381c of skillsToRemove){const _0x13dc4c=_0x11af69[_0x4f0916(0x1b7)](join,_0xd5ad49,_0xdb381c);_0x11af69[_0x4f0916(0x1ca)](existsSync,_0x13dc4c)&&(await rm(_0x13dc4c,{'recursive':!![]}),console['log']('โœ“\x20Removed\x20user\x20skill:\x20'+_0xdb381c),_0x2786d6=!![]);}const _0x10d7f8=_0x11af69['Mtkbg'](getOpencodeSkillsDir,_0x11af69[_0x4f0916(0x1cb)]);for(const _0x3c9a4d of skillsToRemove){const _0x5b87ea=_0x11af69['ufRLt'](join,_0x10d7f8,_0x3c9a4d);existsSync(_0x5b87ea)&&(await _0x11af69['elACL'](rm,_0x5b87ea,{'recursive':!![]}),console[_0x4f0916(0x1e6)](_0x4f0916(0x1e8)+_0x3c9a4d),_0x2786d6=!![]);}const _0xdf3b7e=_0x11af69[_0x4f0916(0x1de)](getOpencodeSkillsDir,_0x4f0916(0x1da));for(const _0x1e993e of skillsToRemove){const _0x2c47fb=join(_0xdf3b7e,_0x1e993e);existsSync(_0x2c47fb)&&(await rm(_0x2c47fb,{'recursive':!![]}),console[_0x4f0916(0x1e6)](_0x4f0916(0x1d3)+_0x1e993e),_0x2786d6=!![]);}const _0x2db0c0=_0x11af69['KIhHw'](join,_0x11af69['OeblK'](getOpencodeConfigDir,_0x11af69['raUtA']),_0x4f0916(0x1eb));await removeOpencodePluginConfig(_0x2db0c0)&&(console[_0x4f0916(0x1e6)](_0x11af69[_0x4f0916(0x1d2)]),_0x2786d6=!![]);const _0x534dce=_0x11af69[_0x4f0916(0x1d8)](join,getOpencodeConfigDir('user'),_0x11af69['wDpLD']);await removeOpencodePluginConfig(_0x534dce)&&(console[_0x4f0916(0x1e6)](_0x11af69[_0x4f0916(0x1d0)]),_0x2786d6=!![]);const _0x56711c=await uninstallClaudePlugin();_0x56711c&&(console['log'](_0x11af69['qJzLW']),_0x2786d6=!![]);const _0x4012d2=await uninstallClaudePlugin(_0x11af69[_0x4f0916(0x1cb)]);_0x4012d2&&(console[_0x4f0916(0x1e6)]('โœ“\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)'),_0x2786d6=!![]);const _0x3ab74e=await _0x11af69['JgDhj'](removeMarketplace);_0x3ab74e&&(console['log'](_0x4f0916(0x1d9)),_0x2786d6=!![]),_0x2786d6?console[_0x4f0916(0x1e6)]('\x0aโœ…\x20Cleanup\x20complete!\x0a'):console['log'](_0x11af69['YMick']);}
1
+ const _0x4e87a6=_0x1610;function _0x12b4(){const _0x17ee0c=['PQtGP','error','\x0aโœ…\x20Cleanup\x20complete!\x0a','โœ“\x20Removed\x20stored\x20credentials','twbYq','RDqnb','fqRxb','user','opencode.json','โœ“\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','taTHC','plugin','2849718XrtLKu','close','HSfMl','jGyCU','claude','ignore','hGNON','isArray','2895220masudM','filter','SQrNQ','replace','--scope','length','log','771064adNuvq','3108012tkVSCJ','marketplace','trailhead','kxeuB','โœ“\x20Removed\x20project\x20skill:\x20','SMVKo','5879990ahZjQS','โœ“\x20Removed\x20OpenCode\x20project\x20skill:\x20','mbHBN','win32','WHpWJ','@ranger-testing/opencode-plugin','JfeyI','fXElV','project','INFex','ueyyb','iSSPU','wGqXM','โœ“\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','remove','28211SBXFjC','parse','lphyh','string','18332608JaaPeW','โœ“\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)'];_0x12b4=function(){return _0x17ee0c;};return _0x12b4();}(function(_0x3790ef,_0x249ba0){const _0x48d4f3=_0x1610,_0x33da22=_0x3790ef();while(!![]){try{const _0x55e3e4=parseInt(_0x48d4f3(0xbe))/0x1+-parseInt(_0x48d4f3(0xd8))/0x2+parseInt(_0x48d4f3(0xa9))/0x3+parseInt(_0x48d4f3(0xa8))/0x4+-parseInt(_0x48d4f3(0xaf))/0x5+-parseInt(_0x48d4f3(0xd0))/0x6+parseInt(_0x48d4f3(0xc2))/0x7;if(_0x55e3e4===_0x249ba0)break;else _0x33da22['push'](_0x33da22['shift']());}catch(_0x4061dd){_0x33da22['push'](_0x33da22['shift']());}}}(_0x12b4,0xbdc94));import{rm,readFile,writeFile}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{spawn}from'child_process';import{deleteAllCredentials}from'./utils/keychain.js';import{getProjectRoot,getProjectSkillsDir,getUserSkillsDir}from'./utils/claudeConfig.js';import{getRangerDir}from'./utils/rangerRoot.js';import{getCacheFile}from'./utils/sessionCache.js';import{getOpencodeConfigDir,getOpencodeSkillsDir}from'./utils/opencodeConfig.js';const skillsToRemove=['ranger','feature-tracker','bug-bash','e2e-test-recommender'],opencodePluginName=_0x4e87a6(0xb4);function parseJsonc(_0x186e2b){const _0x14778a=_0x4e87a6,_0x454843=_0x186e2b[_0x14778a(0xdb)](/\/\*[\s\S]*?\*\//g,''),_0x299f59=_0x454843['replace'](/^\s*\/\/.*$/gm,''),_0x9a4253=_0x299f59['replace'](/,\s*([}\]])/g,'$1');return JSON[_0x14778a(0xbf)](_0x9a4253);}async function removeOpencodePluginConfig(_0x560b9d){const _0x2643c9=_0x4e87a6,_0x537068={'lphyh':function(_0x259f95,_0x4f5520){return _0x259f95!==_0x4f5520;},'jGyCU':function(_0x1af0ba,_0x17ad0e,_0x31d24e){return _0x1af0ba(_0x17ad0e,_0x31d24e);},'JfeyI':function(_0x597e1c,_0x6fbd0e){return _0x597e1c===_0x6fbd0e;}};if(!existsSync(_0x560b9d))return![];let _0x473039;try{const _0x54b629=await _0x537068[_0x2643c9(0xd3)](readFile,_0x560b9d,'utf-8');_0x473039=parseJsonc(_0x54b629);}catch{return![];}const _0x29e65c=Array[_0x2643c9(0xd7)](_0x473039['plugin'])?_0x473039['plugin']:[];if(_0x29e65c[_0x2643c9(0xa6)]===0x0)return![];const _0x473ca2=_0x29e65c[_0x2643c9(0xd9)](_0x145dbb=>{const _0x54531a=_0x2643c9;if(_0x537068[_0x54531a(0xc0)](typeof _0x145dbb,_0x54531a(0xc1)))return!![];return _0x145dbb!==opencodePluginName;});if(_0x537068[_0x2643c9(0xb5)](_0x473ca2[_0x2643c9(0xa6)],_0x29e65c[_0x2643c9(0xa6)]))return![];return _0x473ca2['length']===0x0?delete _0x473039['plugin']:_0x473039[_0x2643c9(0xcf)]=_0x473ca2,await writeFile(_0x560b9d,JSON['stringify'](_0x473039,null,0x2)+'\x0a'),!![];}async function uninstallClaudePlugin(_0x35501a){const _0x11d8f2=_0x4e87a6,_0x1165c9={'rgLFT':function(_0x5cdd2e,_0x27b5f3){return _0x5cdd2e===_0x27b5f3;},'taTHC':function(_0x4a4fce,_0xd110fa,_0x3d248e,_0x190838){return _0x4a4fce(_0xd110fa,_0x3d248e,_0x190838);},'wGqXM':'ignore','FTZSq':'close','twbYq':_0x11d8f2(0xc5)};return new Promise(_0x2ade24=>{const _0x235f02=_0x11d8f2,_0x3a300c=[_0x235f02(0xcf),'uninstall','ranger@trailhead'];_0x35501a&&_0x3a300c['push'](_0x235f02(0xdc),_0x35501a);const _0xb6454a=_0x1165c9[_0x235f02(0xce)](spawn,_0x235f02(0xd4),_0x3a300c,{'stdio':[_0x1165c9['wGqXM'],_0x1165c9[_0x235f02(0xbb)],_0x1165c9[_0x235f02(0xbb)]],'cwd':_0x35501a?getProjectRoot():undefined,'shell':_0x1165c9['rgLFT'](process['platform'],_0x235f02(0xb2))});_0xb6454a['on'](_0x1165c9['FTZSq'],_0x4094e7=>{_0x2ade24(_0x1165c9['rgLFT'](_0x4094e7,0x0));}),_0xb6454a['on'](_0x1165c9[_0x235f02(0xc8)],()=>{_0x2ade24(![]);});});}function _0x1610(_0x1c54f0,_0xd6860e){_0x1c54f0=_0x1c54f0-0xa6;const _0x12b48d=_0x12b4();let _0x161079=_0x12b48d[_0x1c54f0];return _0x161079;}async function removeMarketplace(){const _0x114541=_0x4e87a6,_0x56ffdf={'WHpWJ':function(_0x594f92,_0x5d8fc6){return _0x594f92(_0x5d8fc6);},'kxeuB':function(_0x426728,_0x5d51bc,_0x29e0e6,_0xe583e4){return _0x426728(_0x5d51bc,_0x29e0e6,_0xe583e4);},'pUXAy':_0x114541(0xd4),'MTCZK':_0x114541(0xaa),'UNKUJ':'ignore','VeNst':function(_0x2f547d,_0x342ab9){return _0x2f547d===_0x342ab9;},'zlTLI':_0x114541(0xb2),'ZYCvt':'error'};return new Promise(_0x24e238=>{const _0x1eb419=_0x114541,_0x2e4302={'LZEnQ':function(_0x501fab,_0xf07c72){const _0x12b51d=_0x1610;return _0x56ffdf[_0x12b51d(0xb3)](_0x501fab,_0xf07c72);}},_0x3e2878=_0x56ffdf[_0x1eb419(0xac)](spawn,_0x56ffdf['pUXAy'],['plugin',_0x56ffdf['MTCZK'],_0x1eb419(0xbd),_0x1eb419(0xab)],{'stdio':[_0x56ffdf['UNKUJ'],_0x1eb419(0xd5),'ignore'],'shell':_0x56ffdf['VeNst'](process['platform'],_0x56ffdf['zlTLI'])});_0x3e2878['on'](_0x1eb419(0xd1),_0x1fff75=>{_0x2e4302['LZEnQ'](_0x24e238,_0x1fff75===0x0);}),_0x3e2878['on'](_0x56ffdf['ZYCvt'],()=>{_0x24e238(![]);});});}export async function clean(){const _0x4c3fc7=_0x4e87a6,_0x15b346={'nGNlD':'\x0a๐Ÿงน\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','mbHBN':_0x4c3fc7(0xc7),'ueyyb':function(_0x4899f3,_0x490f4f){return _0x4899f3(_0x490f4f);},'iSSPU':function(_0x500e8b,_0x5c5a4b,_0x2589fd){return _0x500e8b(_0x5c5a4b,_0x2589fd);},'mjPdV':function(_0xd881fc){return _0xd881fc();},'HSfMl':function(_0x5b8cc7,_0xe7fcd9,_0x4627b3){return _0x5b8cc7(_0xe7fcd9,_0x4627b3);},'SMVKo':function(_0x1b5430,_0x3dad3f){return _0x1b5430(_0x3dad3f);},'PQtGP':function(_0x2dedc8,_0x4b076,_0x579481){return _0x2dedc8(_0x4b076,_0x579481);},'INFex':_0x4c3fc7(0xcb),'RDqnb':function(_0x38701f,_0x3c4ba5,_0x10de89){return _0x38701f(_0x3c4ba5,_0x10de89);},'JqGdZ':function(_0x501031,_0x21d3e8){return _0x501031(_0x21d3e8);},'mhdqb':_0x4c3fc7(0xcc),'SQrNQ':function(_0x5879a1,_0x1607c0){return _0x5879a1(_0x1607c0);},'UsQCs':function(_0x3a013c,_0x8237b0,_0x37acdd){return _0x3a013c(_0x8237b0,_0x37acdd);},'hGNON':_0x4c3fc7(0xbc),'fqRxb':_0x4c3fc7(0xb7),'HNKmr':'โœ“\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','fXElV':'โœ“\x20Removed\x20trailhead\x20marketplace','HhSxw':_0x4c3fc7(0xc6),'KNocM':'Nothing\x20to\x20clean\x20up.\x0a'};console['log'](_0x15b346['nGNlD']);let _0x1a2fa8=![];try{await deleteAllCredentials(),console[_0x4c3fc7(0xa7)](_0x15b346[_0x4c3fc7(0xb1)]),_0x1a2fa8=!![];}catch{}const _0x3d99e8=getCacheFile();existsSync(_0x3d99e8)&&(await _0x15b346[_0x4c3fc7(0xb9)](rm,_0x3d99e8),_0x1a2fa8=!![]);const _0x2b1835=getRangerDir();_0x15b346['ueyyb'](existsSync,_0x2b1835)&&(await _0x15b346[_0x4c3fc7(0xba)](rm,_0x2b1835,{'recursive':!![]}),console['log']('โœ“\x20Removed\x20.ranger/\x20directory'),_0x1a2fa8=!![]);const _0x2937f5=getProjectSkillsDir();for(const _0x5c38f2 of skillsToRemove){const _0x1b2ff9=join(_0x2937f5,_0x5c38f2);existsSync(_0x1b2ff9)&&(await rm(_0x1b2ff9,{'recursive':!![]}),console[_0x4c3fc7(0xa7)](_0x4c3fc7(0xad)+_0x5c38f2),_0x1a2fa8=!![]);}const _0x261399=_0x15b346['mjPdV'](getUserSkillsDir);for(const _0x244e45 of skillsToRemove){const _0x543dcf=join(_0x261399,_0x244e45);existsSync(_0x543dcf)&&(await _0x15b346['HSfMl'](rm,_0x543dcf,{'recursive':!![]}),console[_0x4c3fc7(0xa7)]('โœ“\x20Removed\x20user\x20skill:\x20'+_0x244e45),_0x1a2fa8=!![]);}const _0x5c802b=getOpencodeSkillsDir('project');for(const _0x3a6e9d of skillsToRemove){const _0x3e289b=_0x15b346['iSSPU'](join,_0x5c802b,_0x3a6e9d);_0x15b346[_0x4c3fc7(0xae)](existsSync,_0x3e289b)&&(await _0x15b346[_0x4c3fc7(0xc4)](rm,_0x3e289b,{'recursive':!![]}),console[_0x4c3fc7(0xa7)](_0x4c3fc7(0xb0)+_0x3a6e9d),_0x1a2fa8=!![]);}const _0x33d126=getOpencodeSkillsDir(_0x15b346[_0x4c3fc7(0xb8)]);for(const _0x5bd546 of skillsToRemove){const _0x281d30=_0x15b346[_0x4c3fc7(0xc9)](join,_0x33d126,_0x5bd546);existsSync(_0x281d30)&&(await _0x15b346[_0x4c3fc7(0xd2)](rm,_0x281d30,{'recursive':!![]}),console[_0x4c3fc7(0xa7)]('โœ“\x20Removed\x20OpenCode\x20user\x20skill:\x20'+_0x5bd546),_0x1a2fa8=!![]);}const _0x575c3a=join(_0x15b346['JqGdZ'](getOpencodeConfigDir,_0x4c3fc7(0xb7)),_0x15b346['mhdqb']);await _0x15b346[_0x4c3fc7(0xda)](removeOpencodePluginConfig,_0x575c3a)&&(console[_0x4c3fc7(0xa7)](_0x4c3fc7(0xc3)),_0x1a2fa8=!![]);const _0x3fddc1=_0x15b346['UsQCs'](join,getOpencodeConfigDir(_0x15b346[_0x4c3fc7(0xb8)]),_0x15b346['mhdqb']);await removeOpencodePluginConfig(_0x3fddc1)&&(console[_0x4c3fc7(0xa7)](_0x15b346[_0x4c3fc7(0xd6)]),_0x1a2fa8=!![]);const _0x244489=await uninstallClaudePlugin();_0x244489&&(console['log'](_0x4c3fc7(0xcd)),_0x1a2fa8=!![]);const _0xe99a3d=await uninstallClaudePlugin(_0x15b346[_0x4c3fc7(0xca)]);_0xe99a3d&&(console['log'](_0x15b346['HNKmr']),_0x1a2fa8=!![]);const _0x3ff1ea=await removeMarketplace();_0x3ff1ea&&(console[_0x4c3fc7(0xa7)](_0x15b346[_0x4c3fc7(0xb6)]),_0x1a2fa8=!![]),_0x1a2fa8?console[_0x4c3fc7(0xa7)](_0x15b346['HhSxw']):console['log'](_0x15b346['KNocM']);}
@@ -1 +1 @@
1
- const _0x168740=_0x510c;(function(_0x17978a,_0x10a61c){const _0x2eab11=_0x510c,_0x24e3b3=_0x17978a();while(!![]){try{const _0x50db33=parseInt(_0x2eab11(0xa5))/0x1*(parseInt(_0x2eab11(0xaa))/0x2)+-parseInt(_0x2eab11(0x9b))/0x3+-parseInt(_0x2eab11(0xb6))/0x4+parseInt(_0x2eab11(0x9c))/0x5+-parseInt(_0x2eab11(0xb2))/0x6*(-parseInt(_0x2eab11(0xa8))/0x7)+parseInt(_0x2eab11(0xad))/0x8*(parseInt(_0x2eab11(0xa2))/0x9)+parseInt(_0x2eab11(0x99))/0xa*(-parseInt(_0x2eab11(0xa7))/0xb);if(_0x50db33===_0x10a61c)break;else _0x24e3b3['push'](_0x24e3b3['shift']());}catch(_0x498d8e){_0x24e3b3['push'](_0x24e3b3['shift']());}}}(_0x2217,0x50591));import{existsSync}from'fs';import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';import{fetchCloudProfile}from'./utils/cloudProfile.js';import{mergeCloudProfileSettings,readProfileOverrides,resetProfileOverrides,setProfileOverride,unsetProfileOverride}from'./utils/projectsConfig.js';const BOOLEAN_KEYS=[_0x168740(0xb9),'allowInsecureLocalhost'];function _0x2217(){const _0x208192=['Cleared\x20local\x20overrides\x20for\x20\x22','KrKpU','isSafeInteger','10BZwqlT','\x20\x20Note:\x20\x22','61998mkNDpr','2861125CEhqgX','No\x20configuration\x20set\x20for\x20\x22','parse','endsWith','kind','startsWith','4184514eTiNeD','true','ZjCbt','6229xMMNNo','includes','15178581jBBxRG','20552ptxziT','LmvoR','118jqPbJH','\x20for\x20\x22','stringify','8lDRVHZ','local','Key\x20\x22','test','alsoExistsElsewhere','1164hpAuUt','length','UwFTh','false','978496zvaiIV','axvyp','\x20=\x20','headless','object','eVRaz','cloud','dOfnJ','log','Removed\x20','VXmwB','nhXxV','wTcnr','trim','qjgSo'];_0x2217=function(){return _0x208192;};return _0x2217();}function parseLocalValue(_0xdd19eb,_0x5a125d){const _0xcff5f6=_0x168740,_0x518831={'oaUdx':function(_0x3d397a,_0x46d89b){return _0x3d397a===_0x46d89b;},'dOfnJ':_0xcff5f6(0xa3),'WedLC':_0xcff5f6(0xb5)};if(BOOLEAN_KEYS[_0xcff5f6(0xa6)](_0xdd19eb)){if(_0x518831['oaUdx'](_0x5a125d,_0x518831[_0xcff5f6(0x8e)]))return!![];if(_0x5a125d===_0x518831['WedLC'])return![];throw new Error('Invalid\x20value\x20for\x20'+_0xdd19eb+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x5a125d;}function parseOverrideValue(_0x43a12c){const _0x2c1153=_0x168740,_0x56c00c={'wTcnr':_0x2c1153(0xa3),'hFpAq':function(_0x2f501e,_0x245ccc){return _0x2f501e===_0x245ccc;},'RHhcE':function(_0xf86a42,_0x2b01e5){return _0xf86a42===_0x2b01e5;},'axvyp':function(_0x40a635,_0x2a62a4){return _0x40a635(_0x2a62a4);}};if(_0x43a12c===_0x56c00c[_0x2c1153(0x93)])return!![];if(_0x56c00c['hFpAq'](_0x43a12c,'false'))return![];if(_0x56c00c['RHhcE'](_0x43a12c,'null'))return null;if(_0x56c00c['RHhcE'](_0x43a12c,'undefined'))return undefined;if(/^-?\d+$/[_0x2c1153(0xb0)](_0x43a12c)){const _0x5031b9=_0x56c00c[_0x2c1153(0xb7)](Number,_0x43a12c);if(Number[_0x2c1153(0x98)](_0x5031b9))return _0x5031b9;}if(/^-?\d+\.\d+$/['test'](_0x43a12c)){const _0x4882fe=Number(_0x43a12c);if(!Number['isNaN'](_0x4882fe))return _0x4882fe;}const _0xa5618d=_0x43a12c[_0x2c1153(0x94)]();if(_0xa5618d[_0x2c1153(0xa1)]('{')&&_0xa5618d[_0x2c1153(0x9f)]('}')||_0xa5618d[_0x2c1153(0xa1)]('[')&&_0xa5618d[_0x2c1153(0x9f)](']'))try{return JSON[_0x2c1153(0x9e)](_0xa5618d);}catch{}return _0x43a12c;}function _0x510c(_0x575810,_0x2e728e){_0x575810=_0x575810-0x8d;const _0x2217f6=_0x2217();let _0x510ce3=_0x2217f6[_0x575810];return _0x510ce3;}async function resolveProfileTarget(_0x2b786a){const _0x5ef43a=_0x168740,_0x107674={'UqQyo':function(_0x283fb1,_0x5bfa0c){return _0x283fb1(_0x5bfa0c);},'HenNc':function(_0x29f4e9,_0xce5b5a){return _0x29f4e9(_0xce5b5a);},'OqcEa':_0x5ef43a(0xae)},_0x24c4f8=existsSync(_0x107674['UqQyo'](getEnvDir,_0x2b786a));let _0x1715a3=![];try{const _0x51b9f5=await fetchCloudProfile(_0x2b786a);_0x1715a3=_0x107674['HenNc'](Boolean,_0x51b9f5);}catch{}if(_0x1715a3)return{'kind':_0x5ef43a(0x8d),'alsoExistsElsewhere':_0x24c4f8};if(_0x24c4f8)return{'kind':_0x107674['OqcEa'],'alsoExistsElsewhere':![]};throw new Error('Profile\x20\x22'+_0x2b786a+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x2b786a);}function printDualExistsHint(_0xb9f4eb){const _0x2b8deb=_0x168740;console['log'](_0x2b8deb(0x9a)+_0xb9f4eb+'\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.');}function getProjectPath(){return process['cwd']();}async function loadEffectiveCloudSettings(_0x80ed0){const _0x4d00df={'bAcbW':function(_0x295f24,_0x5a4acd){return _0x295f24??_0x5a4acd;}},_0x402d26=await fetchCloudProfile(_0x80ed0),_0x501d31=readProfileOverrides(getProjectPath(),_0x80ed0);return mergeCloudProfileSettings(_0x402d26?.['settings']??{},_0x4d00df['bAcbW'](_0x501d31,undefined));}export async function configSet(_0x1e16af,_0x47d16c,_0x2de9f4){const _0x4a3d11=_0x168740,_0x26337a={'UwFTh':function(_0x449af1,_0x3118f2){return _0x449af1(_0x3118f2);},'ynZmE':function(_0x5bb25a,_0x2bb0c4){return _0x5bb25a===_0x2bb0c4;},'VXmwB':_0x4a3d11(0x8d),'LmvoR':function(_0x2f67a1,_0x4a6629){return _0x2f67a1(_0x4a6629);},'tciXz':function(_0x28a0e9){return _0x28a0e9();}},_0x3b94b7=await _0x26337a[_0x4a3d11(0xb4)](resolveProfileTarget,_0x1e16af);if(_0x26337a['ynZmE'](_0x3b94b7['kind'],_0x26337a[_0x4a3d11(0x91)])){if(_0x3b94b7[_0x4a3d11(0xb1)])_0x26337a[_0x4a3d11(0xb4)](printDualExistsHint,_0x1e16af);const _0x46610a=_0x26337a[_0x4a3d11(0xa9)](parseOverrideValue,_0x2de9f4);setProfileOverride(_0x26337a['tciXz'](getProjectPath),_0x1e16af,_0x47d16c,_0x46610a),console[_0x4a3d11(0x8f)]('Set\x20'+_0x47d16c+'\x20=\x20'+JSON[_0x4a3d11(0xac)](_0x46610a)+_0x4a3d11(0xab)+_0x1e16af+'\x22');return;}const _0x30d924=await loadSettings(_0x1e16af),_0x3b95a3=parseLocalValue(_0x47d16c,_0x2de9f4);setNestedValue(_0x30d924,_0x47d16c,_0x3b95a3),await saveSettings(_0x1e16af,_0x30d924),console['log']('Set\x20'+_0x47d16c+_0x4a3d11(0xb8)+_0x3b95a3+'\x20for\x20\x22'+_0x1e16af+'\x22');}export async function configGet(_0x15be3e,_0x49fad1){const _0x299018=_0x168740,_0x57aaba={'KrKpU':function(_0x403933,_0x29a003){return _0x403933(_0x29a003);},'nhXxV':function(_0x7a7497,_0x310943){return _0x7a7497===_0x310943;},'eVRaz':function(_0x2312e6,_0x925a9d){return _0x2312e6===_0x925a9d;}},_0x560efc=await resolveProfileTarget(_0x15be3e);if(_0x560efc['kind']===_0x299018(0x8d)){const _0x269681=await _0x57aaba[_0x299018(0x97)](loadEffectiveCloudSettings,_0x15be3e),_0x5df510=getNestedValue(_0x269681,_0x49fad1);if(_0x57aaba['nhXxV'](_0x5df510,undefined))console['log']('(not\x20set)');else _0x57aaba['nhXxV'](typeof _0x5df510,_0x299018(0xba))?console[_0x299018(0x8f)](JSON[_0x299018(0xac)](_0x5df510,null,0x2)):console[_0x299018(0x8f)](_0x5df510);return;}const _0x572030=await loadSettings(_0x15be3e),_0x5d8ee8=getNestedValue(_0x572030,_0x49fad1);if(_0x57aaba[_0x299018(0xbb)](_0x5d8ee8,undefined))console['log']('(not\x20set)');else _0x57aaba[_0x299018(0x92)](typeof _0x5d8ee8,_0x299018(0xba))?console['log'](JSON['stringify'](_0x5d8ee8,null,0x2)):console[_0x299018(0x8f)](_0x5d8ee8);}export async function configList(_0x1b8442){const _0x5bcd76=_0x168740,_0x5b6894={'watHg':'cloud','JTpBD':function(_0x34574a,_0x369ee9){return _0x34574a(_0x369ee9);},'GOBad':function(_0x1125b2,_0x7b7843){return _0x1125b2===_0x7b7843;}},_0x52bcc5=await resolveProfileTarget(_0x1b8442);if(_0x52bcc5[_0x5bcd76(0xa0)]===_0x5b6894['watHg']){const _0x438527=await _0x5b6894['JTpBD'](loadEffectiveCloudSettings,_0x1b8442);if(!_0x438527||_0x5b6894['GOBad'](Object['keys'](_0x438527)[_0x5bcd76(0xb3)],0x0)){console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x1b8442+'\x22');return;}console[_0x5bcd76(0x8f)](JSON[_0x5bcd76(0xac)](_0x438527,null,0x2));return;}const _0x386e1b=getSettingsPath(_0x1b8442);if(!_0x5b6894['JTpBD'](existsSync,_0x386e1b)){console['log'](_0x5bcd76(0x9d)+_0x1b8442+'\x22');return;}const _0x4e77f9=await _0x5b6894['JTpBD'](loadSettings,_0x1b8442),_0x4cf706=_0x5b6894['JTpBD'](formatSettings,_0x4e77f9);!_0x4cf706?console[_0x5bcd76(0x8f)](_0x5bcd76(0x9d)+_0x1b8442+'\x22'):console['log'](_0x4cf706);}export async function configUnset(_0x492ac4,_0x2d8885){const _0x593087=_0x168740,_0x5e292b={'CgliY':function(_0x5ba11f,_0x5b1194){return _0x5ba11f(_0x5b1194);},'qjgSo':function(_0x10588a,_0x510fc7){return _0x10588a===_0x510fc7;},'QpzBU':'cloud','HiXEt':function(_0x520121,_0x4ca71f){return _0x520121(_0x4ca71f);},'ZjCbt':function(_0x3c4f33,_0x521183){return _0x3c4f33(_0x521183);}},_0x46628d=await _0x5e292b['CgliY'](resolveProfileTarget,_0x492ac4);if(_0x5e292b[_0x593087(0x95)](_0x46628d[_0x593087(0xa0)],_0x5e292b['QpzBU'])){if(_0x46628d['alsoExistsElsewhere'])_0x5e292b['HiXEt'](printDualExistsHint,_0x492ac4);const _0x16322a=unsetProfileOverride(getProjectPath(),_0x492ac4,_0x2d8885);_0x16322a?console['log'](_0x593087(0x90)+_0x2d8885+_0x593087(0xab)+_0x492ac4+'\x22'):console['log']('Key\x20\x22'+_0x2d8885+'\x22\x20not\x20found');return;}const _0x310b17=await _0x5e292b[_0x593087(0xa4)](loadSettings,_0x492ac4),_0x355c14=deleteNestedValue(_0x310b17,_0x2d8885);_0x355c14?(await saveSettings(_0x492ac4,_0x310b17),console[_0x593087(0x8f)]('Removed\x20'+_0x2d8885)):console[_0x593087(0x8f)](_0x593087(0xaf)+_0x2d8885+'\x22\x20not\x20found');}export async function configReset(_0x5ed315){const _0x484a40=_0x168740,_0x35cd2a={'DXFMV':function(_0x4b8420,_0x1c6987){return _0x4b8420(_0x1c6987);},'vpuuq':function(_0x4cf8ee,_0x361ce8,_0x16bea4){return _0x4cf8ee(_0x361ce8,_0x16bea4);},'MhhpK':function(_0x342c2a){return _0x342c2a();}},_0x5c1833=await _0x35cd2a['DXFMV'](resolveProfileTarget,_0x5ed315);if(_0x5c1833[_0x484a40(0xa0)]==='cloud'){_0x35cd2a['vpuuq'](resetProfileOverrides,_0x35cd2a['MhhpK'](getProjectPath),_0x5ed315),console[_0x484a40(0x8f)](_0x484a40(0x96)+_0x5ed315+'\x22');return;}console[_0x484a40(0x8f)]('\x22'+_0x5ed315+'\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20'+_0x5ed315+'\x20<key>\x22\x20to\x20remove\x20individual\x20values.');}
1
+ const _0x1c608c=_0x5a7e;(function(_0x3664df,_0x217800){const _0x5deae3=_0x5a7e,_0x5853de=_0x3664df();while(!![]){try{const _0x4f1651=parseInt(_0x5deae3(0x174))/0x1*(parseInt(_0x5deae3(0x169))/0x2)+-parseInt(_0x5deae3(0x151))/0x3*(parseInt(_0x5deae3(0x17f))/0x4)+parseInt(_0x5deae3(0x16f))/0x5*(-parseInt(_0x5deae3(0x160))/0x6)+-parseInt(_0x5deae3(0x185))/0x7*(parseInt(_0x5deae3(0x155))/0x8)+parseInt(_0x5deae3(0x15b))/0x9*(-parseInt(_0x5deae3(0x163))/0xa)+-parseInt(_0x5deae3(0x187))/0xb+-parseInt(_0x5deae3(0x152))/0xc*(-parseInt(_0x5deae3(0x180))/0xd);if(_0x4f1651===_0x217800)break;else _0x5853de['push'](_0x5853de['shift']());}catch(_0x50f32e){_0x5853de['push'](_0x5853de['shift']());}}}(_0x27dd,0x87c89));import{existsSync}from'fs';import{loadSettings,saveSettings,getNestedValue,setNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';import{fetchCloudProfile}from'./utils/cloudProfile.js';import{mergeCloudProfileSettings,readProfileOverrides,resetProfileOverrides,setProfileOverride,unsetProfileOverride}from'./utils/projectsConfig.js';const BOOLEAN_KEYS=[_0x1c608c(0x153),'allowInsecureLocalhost'];function parseLocalValue(_0x1ab743,_0x386975){const _0x23483e=_0x1c608c,_0xcc2215={'NQjZl':function(_0x3975c9,_0x5af0cc){return _0x3975c9===_0x5af0cc;},'nTyUC':_0x23483e(0x186),'sxxeC':'false'};if(BOOLEAN_KEYS[_0x23483e(0x17e)](_0x1ab743)){if(_0xcc2215['NQjZl'](_0x386975,_0xcc2215[_0x23483e(0x157)]))return!![];if(_0xcc2215[_0x23483e(0x17c)](_0x386975,_0xcc2215['sxxeC']))return![];throw new Error(_0x23483e(0x15c)+_0x1ab743+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x386975;}function parseOverrideValue(_0x3ff548){const _0xe63b63=_0x1c608c,_0x3a448f={'RXMYi':function(_0x101bf1,_0x5e84af){return _0x101bf1===_0x5e84af;},'qJtfX':_0xe63b63(0x186),'SWlkn':_0xe63b63(0x154),'eWnWp':function(_0x1f9c5d,_0x21c996){return _0x1f9c5d===_0x21c996;},'xSPzX':_0xe63b63(0x184),'tMgBb':function(_0x327084,_0x1da49b){return _0x327084(_0x1da49b);}};if(_0x3a448f['RXMYi'](_0x3ff548,_0x3a448f['qJtfX']))return!![];if(_0x3ff548==='false')return![];if(_0x3a448f['RXMYi'](_0x3ff548,_0x3a448f[_0xe63b63(0x15e)]))return null;if(_0x3a448f[_0xe63b63(0x173)](_0x3ff548,_0x3a448f[_0xe63b63(0x16d)]))return undefined;if(/^-?\d+$/[_0xe63b63(0x15f)](_0x3ff548)){const _0xc04e83=_0x3a448f[_0xe63b63(0x17b)](Number,_0x3ff548);if(Number['isSafeInteger'](_0xc04e83))return _0xc04e83;}if(/^-?\d+\.\d+$/['test'](_0x3ff548)){const _0x34d6c3=_0x3a448f['tMgBb'](Number,_0x3ff548);if(!Number[_0xe63b63(0x177)](_0x34d6c3))return _0x34d6c3;}const _0x591259=_0x3ff548['trim']();if(_0x591259['startsWith']('{')&&_0x591259[_0xe63b63(0x161)]('}')||_0x591259['startsWith']('[')&&_0x591259[_0xe63b63(0x161)](']'))try{return JSON['parse'](_0x591259);}catch{}return _0x3ff548;}async function resolveProfileTarget(_0x132463){const _0x4ecd20=_0x1c608c,_0x3e218f={'EQidF':function(_0x5f4c21,_0x15a5f4){return _0x5f4c21(_0x15a5f4);},'oIgmp':_0x4ecd20(0x14f),'GEfHs':'local'},_0x17b309=existsSync(_0x3e218f[_0x4ecd20(0x165)](getEnvDir,_0x132463));let _0x586467=![];try{const _0x566e04=await fetchCloudProfile(_0x132463);_0x586467=_0x3e218f[_0x4ecd20(0x165)](Boolean,_0x566e04);}catch{}if(_0x586467)return{'kind':_0x3e218f[_0x4ecd20(0x158)],'alsoExistsElsewhere':_0x17b309};if(_0x17b309)return{'kind':_0x3e218f['GEfHs'],'alsoExistsElsewhere':![]};throw new Error('Profile\x20\x22'+_0x132463+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x132463);}function printDualExistsHint(_0x2efc7e){const _0x234e22=_0x1c608c;console[_0x234e22(0x17a)]('\x20\x20Note:\x20\x22'+_0x2efc7e+_0x234e22(0x16c));}function getProjectPath(){const _0xf349a7=_0x1c608c;return process[_0xf349a7(0x17d)]();}async function loadEffectiveCloudSettings(_0x11cf11){const _0x33dbdf=_0x1c608c,_0x2283ff={'LPjQz':function(_0x26e4c7,_0x16e3e2,_0x4d8430){return _0x26e4c7(_0x16e3e2,_0x4d8430);},'jxLJk':function(_0x423088){return _0x423088();},'EaGfd':function(_0x9b426b,_0x466676,_0xbb4fe5){return _0x9b426b(_0x466676,_0xbb4fe5);}},_0x1a4c23=await fetchCloudProfile(_0x11cf11),_0xf603cd=_0x2283ff[_0x33dbdf(0x150)](readProfileOverrides,_0x2283ff['jxLJk'](getProjectPath),_0x11cf11);return _0x2283ff['EaGfd'](mergeCloudProfileSettings,_0x1a4c23?.['settings']??{},_0xf603cd??undefined);}export async function configSet(_0x9d2313,_0x53e544,_0x32370d){const _0x1200f5=_0x1c608c,_0x234393={'CpOkq':function(_0xc3d99c,_0x24fa2c){return _0xc3d99c(_0x24fa2c);},'MIihP':function(_0x34cb51,_0x2dd0c4){return _0x34cb51===_0x2dd0c4;},'BYLEk':function(_0x35edb1,_0x465a6d){return _0x35edb1(_0x465a6d);},'vzZQT':function(_0xb2adfe){return _0xb2adfe();},'OqwyQ':function(_0x3619ec,_0x31f912,_0x397e26){return _0x3619ec(_0x31f912,_0x397e26);}},_0x97d919=await _0x234393['CpOkq'](resolveProfileTarget,_0x9d2313);if(_0x234393['MIihP'](_0x97d919[_0x1200f5(0x159)],'cloud')){if(_0x97d919['alsoExistsElsewhere'])_0x234393[_0x1200f5(0x171)](printDualExistsHint,_0x9d2313);const _0x2f79f9=_0x234393['BYLEk'](parseOverrideValue,_0x32370d);setProfileOverride(_0x234393['vzZQT'](getProjectPath),_0x9d2313,_0x53e544,_0x2f79f9),console[_0x1200f5(0x17a)](_0x1200f5(0x167)+_0x53e544+'\x20=\x20'+JSON['stringify'](_0x2f79f9)+_0x1200f5(0x14e)+_0x9d2313+'\x22');return;}const _0x28913d=await loadSettings(_0x9d2313),_0x7e0ebb=_0x234393[_0x1200f5(0x15a)](parseLocalValue,_0x53e544,_0x32370d);setNestedValue(_0x28913d,_0x53e544,_0x7e0ebb),await _0x234393[_0x1200f5(0x15a)](saveSettings,_0x9d2313,_0x28913d),console[_0x1200f5(0x17a)](_0x1200f5(0x167)+_0x53e544+'\x20=\x20'+_0x7e0ebb+_0x1200f5(0x14e)+_0x9d2313+'\x22');}function _0x5a7e(_0x566dc0,_0xb33f4f){_0x566dc0=_0x566dc0-0x14e;const _0x27dd80=_0x27dd();let _0x5a7e43=_0x27dd80[_0x566dc0];return _0x5a7e43;}export async function configGet(_0xb4e064,_0x505bc4){const _0x1f8534=_0x1c608c,_0x5734f8={'ThcyC':function(_0x140265,_0x32392b){return _0x140265(_0x32392b);},'JTebH':function(_0x4053b2,_0x45bf96,_0x4e2503){return _0x4053b2(_0x45bf96,_0x4e2503);},'wWOkg':function(_0x3813b0,_0x105d69){return _0x3813b0===_0x105d69;},'NyWxZ':'object','LCZSg':function(_0xb20e80,_0x4669fa,_0x1812c1){return _0xb20e80(_0x4669fa,_0x1812c1);},'MgVKr':function(_0x46ca43,_0x202a90){return _0x46ca43===_0x202a90;}},_0x5c0425=await resolveProfileTarget(_0xb4e064);if(_0x5c0425[_0x1f8534(0x159)]==='cloud'){const _0x1e75bf=await _0x5734f8[_0x1f8534(0x182)](loadEffectiveCloudSettings,_0xb4e064),_0x58865f=_0x5734f8[_0x1f8534(0x162)](getNestedValue,_0x1e75bf,_0x505bc4);if(_0x5734f8['wWOkg'](_0x58865f,undefined))console[_0x1f8534(0x17a)](_0x1f8534(0x178));else typeof _0x58865f===_0x5734f8[_0x1f8534(0x156)]?console[_0x1f8534(0x17a)](JSON[_0x1f8534(0x16e)](_0x58865f,null,0x2)):console['log'](_0x58865f);return;}const _0x5304d5=await _0x5734f8[_0x1f8534(0x182)](loadSettings,_0xb4e064),_0x4ac093=_0x5734f8['LCZSg'](getNestedValue,_0x5304d5,_0x505bc4);if(_0x4ac093===undefined)console[_0x1f8534(0x17a)]('(not\x20set)');else _0x5734f8[_0x1f8534(0x166)](typeof _0x4ac093,_0x1f8534(0x188))?console[_0x1f8534(0x17a)](JSON['stringify'](_0x4ac093,null,0x2)):console[_0x1f8534(0x17a)](_0x4ac093);}function _0x27dd(){const _0x580252=['\x22\x20not\x20found','\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.','xSPzX','stringify','5culomd','\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20','CpOkq','qigtK','eWnWp','554924RgYsdr','No\x20configuration\x20set\x20for\x20\x22','Cleared\x20local\x20overrides\x20for\x20\x22','isNaN','(not\x20set)','RWBmS','log','tMgBb','NQjZl','cwd','includes','35324jZuNxt','793nVZLbn','length','ThcyC','igzDq','undefined','1233589KPpxBe','true','2856942lVihcK','object','\x20for\x20\x22','cloud','LPjQz','225NTlAhg','360792vOMpTF','headless','null','16eJBsdR','NyWxZ','nTyUC','oIgmp','kind','OqwyQ','859149GDdswO','Invalid\x20value\x20for\x20','Key\x20\x22','SWlkn','test','3815394sUMWXP','endsWith','JTebH','50VFtSbI','oAZBd','EQidF','MgVKr','Set\x20','MHxTP','4RoosIr','Removed\x20'];_0x27dd=function(){return _0x580252;};return _0x27dd();}export async function configList(_0x5a7a1f){const _0x465847=_0x1c608c,_0x5e1b97={'igzDq':function(_0x15bf13,_0x281c25){return _0x15bf13(_0x281c25);},'riavx':function(_0x5f0819,_0x363db2){return _0x5f0819===_0x363db2;}},_0x21fc9b=await resolveProfileTarget(_0x5a7a1f);if(_0x21fc9b['kind']==='cloud'){const _0x305abd=await _0x5e1b97['igzDq'](loadEffectiveCloudSettings,_0x5a7a1f);if(!_0x305abd||_0x5e1b97['riavx'](Object['keys'](_0x305abd)[_0x465847(0x181)],0x0)){console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x5a7a1f+'\x22');return;}console['log'](JSON['stringify'](_0x305abd,null,0x2));return;}const _0x240fb7=getSettingsPath(_0x5a7a1f);if(!existsSync(_0x240fb7)){console['log'](_0x465847(0x175)+_0x5a7a1f+'\x22');return;}const _0x14ce59=await _0x5e1b97[_0x465847(0x183)](loadSettings,_0x5a7a1f),_0x1ba89a=_0x5e1b97[_0x465847(0x183)](formatSettings,_0x14ce59);!_0x1ba89a?console[_0x465847(0x17a)](_0x465847(0x175)+_0x5a7a1f+'\x22'):console[_0x465847(0x17a)](_0x1ba89a);}export async function configUnset(_0x163e37,_0x3bbb39){const _0x5e0e72=_0x1c608c,_0x6c378f={'RWBmS':function(_0x48c505,_0x5cb2ca){return _0x48c505(_0x5cb2ca);},'mTwoA':function(_0x45f425,_0x216f8a){return _0x45f425===_0x216f8a;},'qigtK':function(_0x3fcdbf,_0x308923,_0x319d36,_0x219a8e){return _0x3fcdbf(_0x308923,_0x319d36,_0x219a8e);},'oAZBd':function(_0x208d16){return _0x208d16();},'fexOG':function(_0x40ebda,_0x33ced8,_0x434d13){return _0x40ebda(_0x33ced8,_0x434d13);}},_0x11f607=await _0x6c378f[_0x5e0e72(0x179)](resolveProfileTarget,_0x163e37);if(_0x6c378f['mTwoA'](_0x11f607[_0x5e0e72(0x159)],'cloud')){if(_0x11f607['alsoExistsElsewhere'])printDualExistsHint(_0x163e37);const _0x37f663=_0x6c378f[_0x5e0e72(0x172)](unsetProfileOverride,_0x6c378f[_0x5e0e72(0x164)](getProjectPath),_0x163e37,_0x3bbb39);_0x37f663?console[_0x5e0e72(0x17a)]('Removed\x20'+_0x3bbb39+_0x5e0e72(0x14e)+_0x163e37+'\x22'):console['log'](_0x5e0e72(0x15d)+_0x3bbb39+_0x5e0e72(0x16b));return;}const _0x17fd88=await loadSettings(_0x163e37),_0x35843b=_0x6c378f['fexOG'](deleteNestedValue,_0x17fd88,_0x3bbb39);_0x35843b?(await saveSettings(_0x163e37,_0x17fd88),console['log'](_0x5e0e72(0x16a)+_0x3bbb39)):console['log'](_0x5e0e72(0x15d)+_0x3bbb39+'\x22\x20not\x20found');}export async function configReset(_0x52974f){const _0x4d55ba=_0x1c608c,_0xc6c5e={'MHxTP':function(_0x59db44,_0x1c69a1){return _0x59db44(_0x1c69a1);},'iFeEH':'cloud','sLOPf':function(_0x1ae572){return _0x1ae572();}},_0x19617a=await _0xc6c5e[_0x4d55ba(0x168)](resolveProfileTarget,_0x52974f);if(_0x19617a[_0x4d55ba(0x159)]===_0xc6c5e['iFeEH']){resetProfileOverrides(_0xc6c5e['sLOPf'](getProjectPath),_0x52974f),console[_0x4d55ba(0x17a)](_0x4d55ba(0x176)+_0x52974f+'\x22');return;}console[_0x4d55ba(0x17a)]('\x22'+_0x52974f+_0x4d55ba(0x170)+_0x52974f+'\x20<key>\x22\x20to\x20remove\x20individual\x20values.');}
@@ -1 +1 @@
1
- (function(_0x2a07bd,_0x18f29b){const _0x511361=_0x5cfe,_0x5c3cfc=_0x2a07bd();while(!![]){try{const _0x3bf31c=-parseInt(_0x511361(0x8a))/0x1*(parseInt(_0x511361(0x87))/0x2)+-parseInt(_0x511361(0x92))/0x3*(-parseInt(_0x511361(0x8c))/0x4)+parseInt(_0x511361(0x8f))/0x5+-parseInt(_0x511361(0x72))/0x6*(parseInt(_0x511361(0x83))/0x7)+-parseInt(_0x511361(0x6b))/0x8*(parseInt(_0x511361(0x86))/0x9)+-parseInt(_0x511361(0x6e))/0xa+parseInt(_0x511361(0x66))/0xb*(parseInt(_0x511361(0x7a))/0xc);if(_0x3bf31c===_0x18f29b)break;else _0x5c3cfc['push'](_0x5c3cfc['shift']());}catch(_0x37ea56){_0x5c3cfc['push'](_0x5c3cfc['shift']());}}}(_0x559e,0x9ef23));import{readdir,stat}from'fs/promises';function _0x5cfe(_0x7db9a0,_0x1020ba){_0x7db9a0=_0x7db9a0-0x66;const _0x559e5c=_0x559e();let _0x5cfe67=_0x559e5c[_0x7db9a0];return _0x5cfe67;}import{join}from'path';import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const NON_ENV_DIRS=['sessions','bug-bashes','reports','local','ci'];export async function getEnvNames(){const _0x4e4c04=_0x5cfe,_0x11f6f6={'BvkEz':function(_0x4f0080){return _0x4f0080();},'oVxdy':function(_0x4ac49e,_0x121748){return _0x4ac49e(_0x121748);},'goVYb':function(_0x2143b4){return _0x2143b4();},'UlXAE':function(_0x5e09c0,_0x3e92f1,_0x5cfe2d){return _0x5e09c0(_0x3e92f1,_0x5cfe2d);},'TeLYy':_0x4e4c04(0x7f),'lvhUK':function(_0x4347da,_0x4b4b31){return _0x4347da(_0x4b4b31);},'uWBpN':function(_0x425d6f,_0x259f9c){return _0x425d6f(_0x259f9c);},'TxtvR':_0x4e4c04(0x69)},_0x3b250e=_0x11f6f6[_0x4e4c04(0x8d)](getRangerDir);if(!_0x11f6f6[_0x4e4c04(0x80)](existsSync,_0x3b250e))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x5c00a0=await _0x11f6f6[_0x4e4c04(0x6a)](readActiveProfileName),_0x12e81a=[],_0x5696d6={},_0x15050e=join(_0x3b250e,'local');if(existsSync(_0x15050e)){const _0x579670=await _0x11f6f6['oVxdy'](readdir,_0x15050e);for(const _0x70b42e of _0x579670){const _0x5a914a=_0x11f6f6[_0x4e4c04(0x70)](join,_0x15050e,_0x70b42e),_0x2bbdb4=await _0x11f6f6['oVxdy'](stat,_0x5a914a);_0x2bbdb4['isDirectory']()&&(_0x12e81a[_0x4e4c04(0x74)](_0x70b42e),_0x5696d6[_0x70b42e]=_0x11f6f6['TeLYy']);}}const _0x4cc142=join(_0x3b250e,'ci');if(_0x11f6f6[_0x4e4c04(0x80)](existsSync,_0x4cc142)){const _0x43ecf0=await _0x11f6f6[_0x4e4c04(0x80)](readdir,_0x4cc142);for(const _0x42a4c1 of _0x43ecf0){const _0x32746f=_0x11f6f6[_0x4e4c04(0x70)](join,_0x4cc142,_0x42a4c1),_0x37a8ce=await stat(_0x32746f);_0x37a8ce[_0x4e4c04(0x88)]()&&(_0x12e81a['push'](_0x42a4c1),_0x5696d6[_0x42a4c1]='ci');}}const _0x46c1c1=await _0x11f6f6[_0x4e4c04(0x68)](readdir,_0x3b250e);for(const _0x46254d of _0x46c1c1){if(NON_ENV_DIRS['includes'](_0x46254d))continue;if(_0x46254d[_0x4e4c04(0x82)]('.'))continue;if(_0x46254d['endsWith']('.txt'))continue;const _0x3519b7=join(_0x3b250e,_0x46254d),_0xe95812=await stat(_0x3519b7);_0xe95812['isDirectory']()&&_0x11f6f6['uWBpN'](existsSync,join(_0x3519b7,_0x11f6f6['TxtvR']))&&(!_0x12e81a[_0x4e4c04(0x91)](_0x46254d)&&(_0x12e81a['push'](_0x46254d),_0x5696d6[_0x46254d]='legacy'));}return{'envNames':_0x12e81a,'activeEnv':_0x5c00a0,'envTypes':_0x5696d6};}export async function envList(){const _0x2cf19c=_0x5cfe,_0x3edee7={'lPAen':function(_0x599677){return _0x599677();},'POPNA':function(_0x2fb3d2,_0xd22fd){return _0x2fb3d2===_0xd22fd;},'UpgBU':function(_0x4badc6,_0x5ba0ce){return _0x4badc6===_0x5ba0ce;},'dDXsE':'\x0aNo\x20profiles\x20found.','HPpXx':'Run:\x20ranger\x20profile\x20add\x20<profile-name>','mKedV':function(_0xa370ca,_0x8925ff){return _0xa370ca>_0x8925ff;},'jdXpG':function(_0x4075b3,_0x5f3b9c){return _0x4075b3===_0x5f3b9c;},'AHojr':_0x2cf19c(0x7f),'SMmdP':function(_0x1e626e,_0x3e1c7f){return _0x1e626e(_0x3e1c7f);},'ULfYK':_0x2cf19c(0x76),'CdnZV':function(_0x25c163,_0x6902d4){return _0x25c163>_0x6902d4;}},{envNames:_0x18bcff,activeEnv:_0x1abf61,envTypes:_0x19fbaa}=await getEnvNames();let _0x42d5d2=[];try{_0x42d5d2=await _0x3edee7['lPAen'](listCloudProfiles);}catch{}if(_0x3edee7['POPNA'](_0x18bcff[_0x2cf19c(0x81)],0x0)&&_0x3edee7[_0x2cf19c(0x75)](_0x42d5d2[_0x2cf19c(0x81)],0x0)){console['log'](_0x3edee7[_0x2cf19c(0x77)]),console[_0x2cf19c(0x84)](_0x3edee7['HPpXx']);return;}const _0x29c740=new Set(_0x42d5d2[_0x2cf19c(0x7c)](_0x27a033=>_0x27a033[_0x2cf19c(0x93)]));if(_0x3edee7[_0x2cf19c(0x79)](_0x18bcff[_0x2cf19c(0x81)],0x0)){console[_0x2cf19c(0x84)]('\x0aLocal\x20Profiles:');for(const _0x32f960 of _0x18bcff[_0x2cf19c(0x90)]()){const _0x440943=_0x3edee7[_0x2cf19c(0x7d)](_0x32f960,_0x1abf61)&&!_0x29c740[_0x2cf19c(0x7e)](_0x32f960),_0x1a14cb=_0x19fbaa[_0x32f960]||_0x3edee7[_0x2cf19c(0x71)],_0xea0a5d=await _0x3edee7['SMmdP'](loadSettings,_0x32f960),_0x3fb73f=_0x1a14cb===_0x3edee7[_0x2cf19c(0x6d)]?'':'\x20['+_0x1a14cb+']';console['log']('\x20\x20'+(_0x440943?'*\x20':'\x20\x20')+_0x32f960+_0x3fb73f),_0xea0a5d[_0x2cf19c(0x78)]&&console[_0x2cf19c(0x84)](_0x2cf19c(0x85)+_0xea0a5d['baseUrl']),_0xea0a5d[_0x2cf19c(0x6f)]&&console[_0x2cf19c(0x84)](_0x2cf19c(0x6c)+_0xea0a5d['environmentDetails']);}}if(_0x3edee7[_0x2cf19c(0x89)](_0x42d5d2['length'],0x0)){console['log'](_0x2cf19c(0x8e));for(const _0x3241e8 of _0x42d5d2['sort']((_0x397eb0,_0x2818af)=>_0x397eb0['name']['localeCompare'](_0x2818af[_0x2cf19c(0x93)]))){const _0x5c7423=_0x3241e8[_0x2cf19c(0x93)]===_0x1abf61,_0x405468=_0x3241e8['environmentKey']?'\x20('+_0x3241e8[_0x2cf19c(0x73)]+')':'',_0x1db28d=_0x3241e8[_0x2cf19c(0x8b)]?'cached\x20(updated\x20'+_0x3241e8['sessionUpdatedAt']+')':'no\x20session';console['log']('\x20\x20'+(_0x5c7423?'*\x20':'\x20\x20')+_0x3241e8[_0x2cf19c(0x93)]+_0x2cf19c(0x7b)+_0x405468),console['log']('\x20\x20\x20\x20\x20\x20Session:\x20'+_0x1db28d);}}_0x1abf61&&console[_0x2cf19c(0x84)](_0x2cf19c(0x67));}function _0x559e(){const _0x47e5e2=['oVxdy','length','startsWith','44639phscLT','log','\x20\x20\x20\x20\x20\x20URL:\x20','1323JzKlHu','298138fwmTyT','isDirectory','CdnZV','3uiJhap','sessionUpdatedAt','24cluxag','BvkEz','\x0aCloud\x20Profiles:','488275FkWwJv','sort','includes','391431pSeXnw','name','572737mnlXcO','\x0a*\x20=\x20active\x20profile','lvhUK','settings.json','goVYb','38760WqPllT','\x20\x20\x20\x20\x20\x20Details:\x20','ULfYK','9071820KDEpAE','environmentDetails','UlXAE','AHojr','378LdeHEI','environmentKey','push','UpgBU','legacy','dDXsE','baseUrl','mKedV','516PniQzX','\x20[cloud]','map','jdXpG','has','local'];_0x559e=function(){return _0x47e5e2;};return _0x559e();}
1
+ const _0xce35da=_0x5f4e;(function(_0x2e8384,_0x546aed){const _0x416d6d=_0x5f4e,_0x261a70=_0x2e8384();while(!![]){try{const _0x40d404=parseInt(_0x416d6d(0x13d))/0x1+-parseInt(_0x416d6d(0x14a))/0x2*(-parseInt(_0x416d6d(0x12e))/0x3)+-parseInt(_0x416d6d(0x139))/0x4+-parseInt(_0x416d6d(0x145))/0x5+parseInt(_0x416d6d(0x13e))/0x6*(-parseInt(_0x416d6d(0x148))/0x7)+-parseInt(_0x416d6d(0x132))/0x8*(parseInt(_0x416d6d(0x131))/0x9)+-parseInt(_0x416d6d(0x13c))/0xa*(-parseInt(_0x416d6d(0x137))/0xb);if(_0x40d404===_0x546aed)break;else _0x261a70['push'](_0x261a70['shift']());}catch(_0x2d2ae6){_0x261a70['push'](_0x261a70['shift']());}}}(_0x2def,0x974ff));import{readdir,stat}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import{getRangerDir}from'./utils/rangerRoot.js';function _0x5f4e(_0x254e5c,_0x504d50){_0x254e5c=_0x254e5c-0x12e;const _0x2defbd=_0x2def();let _0x5f4e7a=_0x2defbd[_0x254e5c];return _0x5f4e7a;}import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';function _0x2def(){const _0x4f3baf=['\x20\x20\x20\x20\x20\x20Details:\x20','endsWith','length','.txt','sessionUpdatedAt','pYyuJ','2949890wEPToQ','XvQNs','push','707uqagDX','settings.json','2000378ZtZchv','\x0aNo\x20profiles\x20found.','name','sessions','3SZUqQz','local','xJQUQ','94455qAOlya','824plgkGZ','log','environmentDetails','fLxHT','isDirectory','176yPyypg','environmentKey','3330624axMAwF','lQGkw','includes','1280140wMTJYk','405554fcFJcY','19638OfxiSh'];_0x2def=function(){return _0x4f3baf;};return _0x2def();}import{listCloudProfiles}from'./utils/cloudProfile.js';const NON_ENV_DIRS=[_0xce35da(0x14d),'bug-bashes','reports','local','ci'];export async function getEnvNames(){const _0x456fab=_0xce35da,_0x3341a4={'cgaIa':function(_0x5c8ab6){return _0x5c8ab6();},'OexLb':function(_0x539dee,_0x1e1bee){return _0x539dee(_0x1e1bee);},'pYyuJ':function(_0x2e085b,_0x148cca,_0x237527){return _0x2e085b(_0x148cca,_0x237527);},'ZTDLi':function(_0x3987cc,_0x37f183){return _0x3987cc(_0x37f183);},'AbcXf':function(_0x15a260,_0x281c60){return _0x15a260(_0x281c60);},'yhCqM':function(_0x1826a5,_0x488644){return _0x1826a5(_0x488644);},'FMWUg':function(_0x147956,_0x5679f5,_0x44e758){return _0x147956(_0x5679f5,_0x44e758);},'Sngnx':function(_0xb5722a,_0x57a063,_0x2ad2ca){return _0xb5722a(_0x57a063,_0x2ad2ca);},'vwrFt':_0x456fab(0x149),'XvQNs':'legacy'},_0x3fb575=_0x3341a4['cgaIa'](getRangerDir);if(!_0x3341a4['OexLb'](existsSync,_0x3fb575))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x3872e0=await readActiveProfileName(),_0x27dfd0=[],_0x2fde06={},_0x1d0890=_0x3341a4[_0x456fab(0x144)](join,_0x3fb575,'local');if(_0x3341a4['ZTDLi'](existsSync,_0x1d0890)){const _0x164257=await _0x3341a4['AbcXf'](readdir,_0x1d0890);for(const _0x2ba4be of _0x164257){const _0xc70f3b=join(_0x1d0890,_0x2ba4be),_0x23430a=await stat(_0xc70f3b);_0x23430a[_0x456fab(0x136)]()&&(_0x27dfd0[_0x456fab(0x147)](_0x2ba4be),_0x2fde06[_0x2ba4be]=_0x456fab(0x12f));}}const _0x520c06=_0x3341a4[_0x456fab(0x144)](join,_0x3fb575,'ci');if(_0x3341a4['yhCqM'](existsSync,_0x520c06)){const _0x364d71=await readdir(_0x520c06);for(const _0x285bb4 of _0x364d71){const _0x2d58c3=_0x3341a4[_0x456fab(0x144)](join,_0x520c06,_0x285bb4),_0x434f73=await stat(_0x2d58c3);_0x434f73[_0x456fab(0x136)]()&&(_0x27dfd0['push'](_0x285bb4),_0x2fde06[_0x285bb4]='ci');}}const _0x2382aa=await _0x3341a4['yhCqM'](readdir,_0x3fb575);for(const _0x3fb6e7 of _0x2382aa){if(NON_ENV_DIRS['includes'](_0x3fb6e7))continue;if(_0x3fb6e7['startsWith']('.'))continue;if(_0x3fb6e7[_0x456fab(0x140)](_0x456fab(0x142)))continue;const _0x484a44=_0x3341a4['FMWUg'](join,_0x3fb575,_0x3fb6e7),_0x2b85d9=await stat(_0x484a44);_0x2b85d9['isDirectory']()&&_0x3341a4['OexLb'](existsSync,_0x3341a4['Sngnx'](join,_0x484a44,_0x3341a4['vwrFt']))&&(!_0x27dfd0[_0x456fab(0x13b)](_0x3fb6e7)&&(_0x27dfd0['push'](_0x3fb6e7),_0x2fde06[_0x3fb6e7]=_0x3341a4[_0x456fab(0x146)]));}return{'envNames':_0x27dfd0,'activeEnv':_0x3872e0,'envTypes':_0x2fde06};}export async function envList(){const _0x38ee89=_0xce35da,_0x795e62={'lQGkw':function(_0x5a0b6e){return _0x5a0b6e();},'xSzMh':'Run:\x20ranger\x20profile\x20add\x20<profile-name>','iejlI':function(_0x534152,_0x2c1d04){return _0x534152>_0x2c1d04;},'fLxHT':'\x0aLocal\x20Profiles:','VaSMS':function(_0x4368cf,_0x44c71a){return _0x4368cf===_0x44c71a;},'bPbjd':'legacy','ONDvF':'\x0aCloud\x20Profiles:','xJQUQ':'no\x20session'},{envNames:_0x2f23d5,activeEnv:_0x3a4f01,envTypes:_0x12398e}=await getEnvNames();let _0x4a41cb=[];try{_0x4a41cb=await _0x795e62[_0x38ee89(0x13a)](listCloudProfiles);}catch{}if(_0x2f23d5[_0x38ee89(0x141)]===0x0&&_0x4a41cb['length']===0x0){console['log'](_0x38ee89(0x14b)),console['log'](_0x795e62['xSzMh']);return;}const _0x5e3532=new Set(_0x4a41cb['map'](_0x1b55bb=>_0x1b55bb[_0x38ee89(0x14c)]));if(_0x795e62['iejlI'](_0x2f23d5[_0x38ee89(0x141)],0x0)){console['log'](_0x795e62[_0x38ee89(0x135)]);for(const _0x5cdeb5 of _0x2f23d5['sort']()){const _0x337a7f=_0x5cdeb5===_0x3a4f01&&!_0x5e3532['has'](_0x5cdeb5),_0x17c920=_0x12398e[_0x5cdeb5]||'local',_0x4a8d2b=await loadSettings(_0x5cdeb5),_0x2ede8c=_0x795e62['VaSMS'](_0x17c920,_0x795e62['bPbjd'])?'':'\x20['+_0x17c920+']';console['log']('\x20\x20'+(_0x337a7f?'*\x20':'\x20\x20')+_0x5cdeb5+_0x2ede8c),_0x4a8d2b['baseUrl']&&console[_0x38ee89(0x133)]('\x20\x20\x20\x20\x20\x20URL:\x20'+_0x4a8d2b['baseUrl']),_0x4a8d2b[_0x38ee89(0x134)]&&console['log'](_0x38ee89(0x13f)+_0x4a8d2b[_0x38ee89(0x134)]);}}if(_0x4a41cb['length']>0x0){console[_0x38ee89(0x133)](_0x795e62['ONDvF']);for(const _0x532147 of _0x4a41cb['sort']((_0x5406f0,_0x3d757a)=>_0x5406f0['name']['localeCompare'](_0x3d757a['name']))){const _0x3a8353=_0x532147['name']===_0x3a4f01,_0x33e56a=_0x532147[_0x38ee89(0x138)]?'\x20('+_0x532147[_0x38ee89(0x138)]+')':'',_0x113372=_0x532147['sessionUpdatedAt']?'cached\x20(updated\x20'+_0x532147[_0x38ee89(0x143)]+')':_0x795e62[_0x38ee89(0x130)];console[_0x38ee89(0x133)]('\x20\x20'+(_0x3a8353?'*\x20':'\x20\x20')+_0x532147['name']+'\x20[cloud]'+_0x33e56a),console[_0x38ee89(0x133)]('\x20\x20\x20\x20\x20\x20Session:\x20'+_0x113372);}}_0x3a4f01&&console[_0x38ee89(0x133)]('\x0a*\x20=\x20active\x20profile');}