@ranger-testing/ranger-cli 3.0.1-alpha.46ed70b-30 → 3.0.1-alpha.476607f-31

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 (83) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/deleteProfile.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/playwrightCli.js +1 -1
  60. package/build/commands/utils/profileMessages.js +1 -1
  61. package/build/commands/utils/profileSetupBanner.js +1 -1
  62. package/build/commands/utils/projectsConfig.js +1 -1
  63. package/build/commands/utils/rangerConfig.js +1 -1
  64. package/build/commands/utils/rangerRoot.js +1 -1
  65. package/build/commands/utils/rangerwrightCli.js +1 -1
  66. package/build/commands/utils/resolveProfileContext.js +1 -1
  67. package/build/commands/utils/resolveProfileUrl.js +1 -1
  68. package/build/commands/utils/retry.js +1 -1
  69. package/build/commands/utils/sessionCache.js +1 -1
  70. package/build/commands/utils/settings.js +1 -1
  71. package/build/commands/utils/skillContent.js +1 -1
  72. package/build/commands/utils/skills.js +1 -1
  73. package/build/commands/utils/stitchWebmFiles.js +1 -1
  74. package/build/commands/utils/telemetry.js +1 -1
  75. package/build/commands/utils/tokenRefresh.js +1 -1
  76. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  77. package/build/commands/utils/userApi.js +1 -1
  78. package/build/commands/utils/version.js +1 -1
  79. package/build/commands/verifyFeature.js +1 -1
  80. package/build/commands/verifyFeatureCli.js +1 -1
  81. package/build/commands/verifyFeatureNovaCli.js +1 -1
  82. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  83. package/package.json +1 -1
@@ -1 +1 @@
1
- const _0x4e2803=_0x515c;(function(_0xf4e871,_0x3878ef){const _0x1baf29=_0x515c,_0x2efcaf=_0xf4e871();while(!![]){try{const _0x104b73=parseInt(_0x1baf29(0x1a3))/0x1*(-parseInt(_0x1baf29(0x1ab))/0x2)+parseInt(_0x1baf29(0x1ce))/0x3*(parseInt(_0x1baf29(0x1b6))/0x4)+parseInt(_0x1baf29(0x1b8))/0x5+-parseInt(_0x1baf29(0x1e0))/0x6*(-parseInt(_0x1baf29(0x1ee))/0x7)+-parseInt(_0x1baf29(0x201))/0x8+parseInt(_0x1baf29(0x1ff))/0x9*(-parseInt(_0x1baf29(0x208))/0xa)+parseInt(_0x1baf29(0x1d4))/0xb;if(_0x104b73===_0x3878ef)break;else _0x2efcaf['push'](_0x2efcaf['shift']());}catch(_0x3babda){_0x2efcaf['push'](_0x2efcaf['shift']());}}}(_0x2499,0xebba0));function _0x2499(){const _0x5c8687=['manual','\x27\x20created.\x0a','\x27\x20to\x20the\x20cloud?','rBdbq','35jYLhns','Invalid\x20--setup-header\x20format:\x20\x22','hnvAC','startsWith','\x0a\x20\x20Cloud\x20profile\x20created,\x20but\x20failed\x20to\x20write\x20per-cwd\x20CDP\x20override\x20to\x20projects.json:\x20','\x20\x20Next:\x20ranger\x20go\x20--profile\x20','yes','trim','url','.\x20Configured\x20envs:\x20','bpTTz','What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','length','message','ReUVJ','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','\x22:\x20','6588045vHlrgH','skipAuth','1307112brSEFD','Use\x20','ZBfCI','\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20','continue','XvypH','oeEiM','20fynLLF','\x0a\x20\x20No\x20auth\x20env\x20matches\x20','use_suggestion','EbUoq','for\x20you,\x20so\x20the\x20encrypted-CI\x20flow\x20is\x20unnecessary.\x0a','capture','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','stdout','NODE_TLS_REJECT_UNAUTHORIZED','LOmgH','\x20\x20or\x20contact\x20eng@ranger.net\x20to\x20set\x20up\x20automated\x20login\x20for\x20your\x20team.','signal','QWzXW','user_declined','setupHeaders','wMqpR','qyIci','\x0a\x20\x20Could\x20not\x20reach\x20','rhKgJ','xxypp','env','profile.add.autoRouted','jQnam','.tmp-','Invalid\x20URL','JnHpk','ZiVIV','profile.add.autoRouteSkipped','includes','fQcbe','269lVpgpE','fetch\x20failed','\x0a\x20\x20(domains:\x20','\x20--skip-auth\x0a','cwd','\x0a\x20\x20Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team\x20yet\x20—\x20that\x27s\x20the\x20path\x20that\x20lets\x20Ranger\x20log\x20into\x20your\x20app\x20for\x20you\x20in\x20CI\x20/\x20background\x20agents.\x0a','\x0a\x20\x20Still\x20could\x20not\x20reach\x20','FEBcO','7078bmbQup','keys','no_auth_config','test','eRmGg','error','QARRv','✓\x20Cloud\x20profile\x20\x27','OBBnm','HTTP\x20','environments','2913796UbGpPG','eldUs','3965030rbiNJk','abort','trackPhaseEnd','warn','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','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','kjEFM','slice','kJnVi','bZdJB','\x20(continuing\x20with\x20--force)','This\x20account\x20will\x20be\x20shared\x20with\x20everyone\x20at\x20your\x20organization','origin','\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','ATIRh','eUeMO','UHoGZ','isElectron','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','force','rlhAe','3jSjwKF','HHRSX','✓\x20Profile\x20\x27','http://','\x20\x20https://docs.ranger.net/main/concepts/profiles','iKGoy','17581696XCnPew','\x20\x20Set\x20active\x20profile:\x20','\x20\x20To\x20get\x20automated\x20login\x20set\x20up\x20for\x20your\x20team\x20(a\x20one-time\x20call):\x20eng@ranger.net\x0a','Enter\x20a\x20different\x20URL','baseUrl','list','confirm','log','status','retry','prompt','name','510162YADrNc','no_match','setupHeader','\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','\x27\x20created\x20(no\x20session).\x0a','\x20\x20Details:\x20https://docs.ranger.net/main/concepts/profiles#automated-login','cdpEndpoint','cFCqH','hPuIA','KnJuY'];_0x2499=function(){return _0x5c8687;};return _0x2499();}import{readdir,rm}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import _0x48f2af from'inquirer';import{getRangerDir,getRangerHomeDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{fetchAuthConfig,createCloudProfile,manualBrowserLogin,ApiError}from'./utils/cloudProfile.js';import{isInteractive}from'./utils/cloudProfileSession.js';import{matchAuthEnvironment}from'./utils/matchAuthEnvironment.js';import{isPathGitTracked}from'./utils/gitTracked.js';import{setProfileOverride}from'./utils/projectsConfig.js';function _0x515c(_0x30ba3b,_0x5dcb35){_0x30ba3b=_0x30ba3b-0x191;const _0x249903=_0x2499();let _0x515c9f=_0x249903[_0x30ba3b];return _0x515c9f;}const CLOUD_PROFILE_SHARING_WARNING=_0x4e2803(0x1c4);function warnCloudProfileSharedInOrg(){const _0x1e3834=_0x4e2803;if(!process[_0x1e3834(0x20f)]['isTTY'])return;console[_0x1e3834(0x1bb)](CLOUD_PROFILE_SHARING_WARNING);}async function checkUrlReachability(_0x33594d){const _0x122205=_0x4e2803,_0x45123b={'nKjRG':_0x122205(0x1ea),'MfBAh':function(_0x4c9889,_0x5d3de0,_0x824d16){return _0x4c9889(_0x5d3de0,_0x824d16);},'YZCix':function(_0x15ca18,_0x54ec14){return _0x15ca18<_0x54ec14;},'ZUSmf':function(_0x3335f8,_0x25e629){return _0x3335f8(_0x25e629);},'VuBQQ':_0x122205(0x19d),'eldUs':'TypeError'};try{const _0x1a90bd=new AbortController(),_0x2dcdb1=setTimeout(()=>_0x1a90bd[_0x122205(0x1b9)](),0x1388),_0x17f027={'method':'HEAD','signal':_0x1a90bd[_0x122205(0x213)],'redirect':_0x45123b['nKjRG']};/^https:\/\/localhost(:\d+)?/i[_0x122205(0x1ae)](_0x33594d)&&(process['env']['NODE_TLS_REJECT_UNAUTHORIZED']='0');const _0x3914fa=await _0x45123b['MfBAh'](fetch,_0x33594d,_0x17f027);delete process['env'][_0x122205(0x210)],clearTimeout(_0x2dcdb1);if(_0x45123b['YZCix'](_0x3914fa[_0x122205(0x1dc)],0x190))return{'ok':!![]};return{'ok':![],'error':_0x122205(0x1b4)+_0x3914fa[_0x122205(0x1dc)]};}catch(_0x2fde01){delete process[_0x122205(0x199)][_0x122205(0x210)];const _0x23bfd2=_0x2fde01,_0x1d636e=_0x23bfd2['message']||_0x45123b['ZUSmf'](String,_0x2fde01),_0x5f2531=_0x1d636e[_0x122205(0x1a1)](_0x45123b['VuBQQ'])||_0x23bfd2[_0x122205(0x1df)]===_0x45123b[_0x122205(0x1b7)]||_0x1d636e[_0x122205(0x1a1)](_0x122205(0x1a4));return{'ok':![],'error':_0x1d636e,'isProtocolError':_0x5f2531};}}async function sweepOrphanLocalProfile(_0x253a7d,_0x2d055b,_0x2a0b42){const _0x4b7e45=_0x4e2803,_0x27f09c={'ecWXf':'local','evtxk':function(_0x2be20b,_0xa14860,_0x1d0f3c){return _0x2be20b(_0xa14860,_0x1d0f3c);},'mYyGG':function(_0x256572,_0x3f431f){return _0x256572(_0x3f431f);},'iKGoy':function(_0x9c70a2,_0x186eed,_0x107000){return _0x9c70a2(_0x186eed,_0x107000);},'pbKoh':function(_0x2718d1,_0x8c0e6f,_0x4af898){return _0x2718d1(_0x8c0e6f,_0x4af898);},'ZBfCI':function(_0x10745c,_0x4afeb3,_0x4afba8){return _0x10745c(_0x4afeb3,_0x4afba8);}},_0x3bc457=join(_0x2d055b,_0x27f09c['ecWXf']),_0xe224d2=_0x27f09c['evtxk'](join,_0x3bc457,_0x253a7d);_0x27f09c['mYyGG'](existsSync,_0xe224d2)&&(_0x2a0b42&&await isPathGitTracked(_0xe224d2)?console['log']('\x20\x20Note:\x20found\x20git-tracked\x20local\x20profile\x20at\x20'+_0xe224d2+'\x20—\x20not\x20removing.\x20Delete\x20manually\x20if\x20you\x20want\x20it\x20gone.'):(await _0x27f09c[_0x4b7e45(0x1d3)](rm,_0xe224d2,{'recursive':!![],'force':!![]}),console[_0x4b7e45(0x1db)](_0x4b7e45(0x204)+_0xe224d2)));if(existsSync(_0x3bc457)){let _0x378848=[];try{_0x378848=await _0x27f09c['mYyGG'](readdir,_0x3bc457);}catch{return;}const _0x1308b3=_0x4b7e45(0x19c)+_0x253a7d+'-';for(const _0x4da1c4 of _0x378848){if(!_0x4da1c4[_0x4b7e45(0x1f1)](_0x1308b3))continue;const _0x5a37c4=_0x27f09c['pbKoh'](join,_0x3bc457,_0x4da1c4);await _0x27f09c[_0x4b7e45(0x203)](rm,_0x5a37c4,{'recursive':!![],'force':!![]}),console[_0x4b7e45(0x1db)]('\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20'+_0x5a37c4);}}}async function sweepOrphansBestEffort(_0x502007){const _0x18e032=_0x4e2803,_0x830765={'uHuyR':function(_0x548f15){return _0x548f15();},'VHIzl':function(_0x6810a2,_0x5c7cb5){return _0x6810a2!==_0x5c7cb5;},'HHRSX':function(_0x467545,_0x2ef5ed,_0x2572e2,_0x466ca5){return _0x467545(_0x2ef5ed,_0x2572e2,_0x466ca5);},'efqtI':function(_0x5d5e95,_0x230fbf){return _0x5d5e95 instanceof _0x230fbf;}};try{await sweepOrphanLocalProfile(_0x502007,getRangerHomeDir(),![]);const _0x14037c=_0x830765['uHuyR'](getRangerDir);_0x830765['VHIzl'](_0x14037c,_0x830765['uHuyR'](getRangerHomeDir))&&await _0x830765[_0x18e032(0x1cf)](sweepOrphanLocalProfile,_0x502007,_0x14037c,!![]);}catch(_0x47f4f5){console['log']('\x20\x20Note:\x20cloud\x20profile\x20created,\x20but\x20failed\x20to\x20sweep\x20orphan\x20local\x20dirs\x20('+(_0x830765['efqtI'](_0x47f4f5,Error)?_0x47f4f5[_0x18e032(0x1fb)]:String(_0x47f4f5))+').');}}async function markActive(_0x1c3f76){const _0x41678f=_0x4e2803;try{await writeActiveProfileName(_0x1c3f76),console[_0x41678f(0x1db)](_0x41678f(0x1d5)+_0x1c3f76);}catch{console['log'](_0x41678f(0x1bd));}}async function tryAutoRouteCloudProfile(_0x1aef37,_0x3fb195,_0x539947,_0x194d48,_0x4913b0){const _0x4e01c8=_0x4e2803,_0x18c870={'rlhAe':function(_0x163095,_0x59a5f6){return _0x163095===_0x59a5f6;},'OBBnm':function(_0x2b29a8){return _0x2b29a8();},'wMqpR':function(_0x2d6e8a,_0x12c1ca){return _0x2d6e8a instanceof _0x12c1ca;},'xxypp':function(_0x5cb095,_0x27e80f){return _0x5cb095===_0x27e80f;},'FpXQu':function(_0x7bc69d,_0xb5d0c7){return _0x7bc69d+_0xb5d0c7;},'pNNPL':function(_0x15be49,_0x35347e){return _0x15be49+_0x35347e;},'XvypH':function(_0x1c4f23,_0x368b82){return _0x1c4f23+_0x368b82;},'UHoGZ':function(_0x18bf17,_0x5e6170){return _0x18bf17+_0x5e6170;},'kdhAW':'\x20\x20Workaround\x20for\x20now:\x20create\x20a\x20profile\x20without\x20a\x20captured\x20session\x20and\x20supply\x20one\x20later:\x0a','ZiVIV':function(_0x22db7d,_0x14f4de,_0x477422){return _0x22db7d(_0x14f4de,_0x477422);},'oeEiM':'profile.add.autoRouteSkipped','eRmGg':_0x4e01c8(0x1e1),'hnvAC':'\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20cloud-managed\x20session.','QlVLj':function(_0x2e8ce2){return _0x2e8ce2();},'kGwEf':function(_0x1e964b,_0x270c72){return _0x1e964b instanceof _0x270c72;},'ATIRh':_0x4e01c8(0x19a)};let _0x14cdf5;try{_0x14cdf5=await _0x18c870[_0x4e01c8(0x1b3)](fetchAuthConfig);}catch(_0xd5674e){return _0x4913b0?.['trackPhaseEnd']('profile.add.autoRouteSkipped',{'reason':'no_auth_config','profileName':_0x1aef37}),console[_0x4e01c8(0x1b0)]('\x0a\x20\x20Could\x20not\x20fetch\x20this\x20org\x27s\x20auth\x20config:\x20'+(_0x18c870[_0x4e01c8(0x194)](_0xd5674e,Error)?_0xd5674e[_0x4e01c8(0x1fb)]:String(_0xd5674e))),![];}if(!_0x14cdf5||!_0x14cdf5['environments']||_0x18c870[_0x4e01c8(0x198)](Object[_0x4e01c8(0x1ac)](_0x14cdf5['environments'])['length'],0x0)){if(_0x194d48)return await captureEnvLessProfile(_0x1aef37,_0x3fb195,_0x539947,_0x4913b0);return _0x4913b0?.['trackPhaseEnd']('profile.add.autoRouteSkipped',{'reason':_0x4e01c8(0x1ad),'profileName':_0x1aef37}),console[_0x4e01c8(0x1b0)](_0x18c870['FpXQu'](_0x18c870['pNNPL'](_0x18c870[_0x4e01c8(0x206)](_0x18c870[_0x4e01c8(0x1c9)](_0x4e01c8(0x1a8),'\x0a'),_0x18c870['kdhAW'])+('\x20\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20'+_0x1aef37+'\x20--url\x20'+_0x3fb195+_0x4e01c8(0x1a6))+'\x0a',_0x4e01c8(0x1d6)),_0x4e01c8(0x1e5))),![];}const _0x2a7246=_0x18c870[_0x4e01c8(0x19f)](matchAuthEnvironment,_0x3fb195,_0x14cdf5);if(!_0x2a7246)return _0x4913b0?.['trackPhaseEnd'](_0x18c870['oeEiM'],{'reason':_0x18c870[_0x4e01c8(0x1af)],'profileName':_0x1aef37}),console[_0x4e01c8(0x1b0)](_0x4e01c8(0x209)+_0x3fb195+_0x4e01c8(0x1f7)+Object['keys'](_0x14cdf5[_0x4e01c8(0x1b5)])['join'](',\x20')+'.'),![];const _0x5e46c4=_0x14cdf5['environments'][_0x2a7246],_0xde8ceb=_0x5e46c4?.['domains']??[];if(_0x194d48&&!_0x539947['yes']){const {saveToCloud:_0x544dd1}=await _0x48f2af['prompt']([{'type':'confirm','name':'saveToCloud','message':'Found\x20auth\x20environment\x20\x27'+_0x2a7246+'\x27\x20matching\x20'+_0x3fb195+_0x4e01c8(0x1a5)+_0xde8ceb['join'](',\x20')+')\x0a\x20\x20Save\x20\x27'+_0x1aef37+_0x4e01c8(0x1ec),'default':!![]}]);if(!_0x544dd1)return _0x4913b0?.[_0x4e01c8(0x1ba)](_0x18c870[_0x4e01c8(0x207)],{'reason':_0x4e01c8(0x192),'profileName':_0x1aef37}),console[_0x4e01c8(0x1b0)](_0x18c870[_0x4e01c8(0x1f0)]),![];}const _0x213813=_0xde8ceb['some'](_0x20f970=>{const _0x366277=_0x4e01c8;try{return _0x18c870[_0x366277(0x1cd)](new URL(_0x20f970)['origin'],new URL(_0x3fb195)[_0x366277(0x1c5)]);}catch{return![];}}),_0x484076={};!_0x213813&&(_0x484076['baseUrl']=_0x3fb195);try{await createCloudProfile(_0x1aef37,_0x2a7246,{'settings':_0x484076}),_0x18c870['QlVLj'](warnCloudProfileSharedInOrg);}catch(_0x26dda2){if(_0x18c870['kGwEf'](_0x26dda2,ApiError)&&_0x26dda2[_0x4e01c8(0x1dc)]===0x199){console['error']('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0x1aef37+_0x4e01c8(0x1c6)+('\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x1aef37));throw _0x26dda2;}throw _0x26dda2;}return console[_0x4e01c8(0x1db)](_0x18c870[_0x4e01c8(0x206)](_0x4e01c8(0x1d0)+_0x1aef37+_0x4e01c8(0x1eb),_0x4e01c8(0x1f3)+_0x1aef37)),await sweepOrphansBestEffort(_0x1aef37),_0x4913b0?.[_0x4e01c8(0x1ba)](_0x18c870[_0x4e01c8(0x1c7)],{'envKey':_0x2a7246,'profileName':_0x1aef37}),!![];}async function createUnconfiguredCloudProfile(_0x8b0a7f,_0x5a3a7c){const _0x24ac36=_0x4e2803,_0x16a330={'LOmgH':function(_0x21bbf5,_0x46168c){return _0x21bbf5===_0x46168c;}};try{await createCloudProfile(_0x8b0a7f,undefined,{'settings':_0x5a3a7c}),warnCloudProfileSharedInOrg();}catch(_0x4ecf27){_0x4ecf27 instanceof ApiError&&_0x16a330[_0x24ac36(0x211)](_0x4ecf27['status'],0x199)&&console[_0x24ac36(0x1b0)]('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0x8b0a7f+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a'+('\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x8b0a7f));throw _0x4ecf27;}}async function captureEnvLessProfile(_0x5f0314,_0x2014f4,_0x32e9d0,_0x5a4c43){const _0x264386=_0x4e2803,_0x9fcc30={'wWFLE':_0x264386(0x1da),'fQcbe':function(_0x2c6165,_0x2176b5){return _0x2c6165+_0x2176b5;},'vvWkT':function(_0x42ac4f,_0x30a510){return _0x42ac4f===_0x30a510;},'wKZQw':function(_0x27e230,_0x271498,_0x45a453,_0x5e73b8){return _0x27e230(_0x271498,_0x45a453,_0x5e73b8);},'LPECv':function(_0x17497d,_0xc507bb,_0x2fed32){return _0x17497d(_0xc507bb,_0x2fed32);},'cxjZX':function(_0x5af354,_0x4c374f){return _0x5af354>_0x4c374f;},'QARRv':_0x264386(0x19a)};if(!_0x32e9d0[_0x264386(0x1f4)]){const {capture:_0x5a671f}=await _0x48f2af['prompt']([{'type':_0x9fcc30['wWFLE'],'name':_0x264386(0x20d),'message':'Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team.\x20Capture\x20a\x20session\x20via\x20a\x20headed\x20browser\x20instead?','default':!![]}]);if(!_0x5a671f)return _0x5a4c43?.['trackPhaseEnd'](_0x264386(0x1a0),{'reason':_0x264386(0x192),'profileName':_0x5f0314}),console[_0x264386(0x1b0)](_0x9fcc30[_0x264386(0x1a2)]('\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20session,\x0a',_0x264386(0x212))),![];}const _0x33144={};if(_0x32e9d0[_0x264386(0x1e2)])for(const _0x115cdd of _0x32e9d0[_0x264386(0x1e2)]){const _0x121a67=_0x115cdd['indexOf'](':');if(_0x9fcc30['vvWkT'](_0x121a67,-0x1))continue;_0x33144[_0x115cdd['slice'](0x0,_0x121a67)[_0x264386(0x1f5)]()]=_0x115cdd['slice'](_0x9fcc30['fQcbe'](_0x121a67,0x1))[_0x264386(0x1f5)]();}const _0x3ada62={'baseUrl':_0x2014f4};Object['keys'](_0x33144)[_0x264386(0x1fa)]>0x0&&(_0x3ada62[_0x264386(0x193)]=_0x33144);let _0x423210;try{_0x423210=await _0x9fcc30['wKZQw'](createCloudProfile,_0x5f0314,undefined,{'settings':_0x3ada62}),warnCloudProfileSharedInOrg();}catch(_0x53d0fd){_0x53d0fd instanceof ApiError&&_0x53d0fd[_0x264386(0x1dc)]===0x199&&console[_0x264386(0x1b0)]('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0x5f0314+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a'+('\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x5f0314));throw _0x53d0fd;}return await _0x9fcc30['LPECv'](manualBrowserLogin,_0x423210,{'key':'','domains':[_0x2014f4],'setupHeaders':_0x9fcc30['cxjZX'](Object[_0x264386(0x1ac)](_0x33144)['length'],0x0)?_0x33144:undefined}),console[_0x264386(0x1db)]('\x0a✓\x20Profile\x20\x27'+_0x5f0314+'\x27\x20created\x20with\x20a\x20captured\x20session.\x0a'+('\x20\x20Next:\x20ranger\x20go\x20--profile\x20'+_0x5f0314)),await sweepOrphansBestEffort(_0x5f0314),_0x5a4c43?.[_0x264386(0x1ba)](_0x9fcc30[_0x264386(0x1b1)],{'envKey':null,'profileName':_0x5f0314}),!![];}export async function addEnv(_0x200037,_0x448f15={},_0x6b4399){const _0x519e70=_0x4e2803,_0x1157ac={'hPuIA':function(_0x2c67e8,_0x645f58){return _0x2c67e8+_0x645f58;},'abDlY':function(_0x58db3a,_0x33f6f3){return _0x58db3a+_0x33f6f3;},'cFCqH':function(_0x2401af,_0x23ea27){return _0x2401af+_0x23ea27;},'zwUFu':_0x519e70(0x20c),'kjEFM':'To\x20set\x20up\x20a\x20profile,\x20run:\x0a','rBdbq':_0x519e70(0x20e),'bZdJB':_0x519e70(0x1fd),'jgucE':_0x519e70(0x1d2),'ReUVJ':function(_0x51889b,_0x3ea9df){return _0x51889b===_0x3ea9df;},'eUeMO':'--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','puaYV':function(_0x80f179,_0x23c2ca){return _0x80f179(_0x23c2ca);},'Enloa':_0x519e70(0x1be),'FEBcO':_0x519e70(0x1e3),'KnJuY':function(_0x1592bc,_0x589ef0,_0x233675){return _0x1592bc(_0x589ef0,_0x233675);},'kJnVi':function(_0x1b1247,_0x12c9e5,_0x1393b8,_0x2c8123,_0x3b127d){return _0x1b1247(_0x12c9e5,_0x1393b8,_0x2c8123,_0x3b127d);},'QHVLJ':_0x519e70(0x1ca),'qyIci':function(_0x4bcf1a,_0x4b683c){return _0x4bcf1a instanceof _0x4b683c;},'rhKgJ':function(_0x4ace06,_0x289cb4){return _0x4ace06(_0x289cb4);},'EbUoq':function(_0x3484c8,_0xf35df7){return _0x3484c8>_0xf35df7;},'QWzXW':function(_0xe07b2d,_0xd97a8e){return _0xe07b2d(_0xd97a8e);},'jQnam':'\x0a🌐\x20Profile\x20Setup\x0a','HDhgL':'baseUrl','JnHpk':'Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','XSdkB':_0x519e70(0x1f9),'uMSoz':'http://localhost:3000','RztFV':_0x519e70(0x1d7),'bpTTz':'Continue\x20anyway','DkvqG':_0x519e70(0x205),'GBUsK':_0x519e70(0x20a)};_0x448f15['ci']&&(console[_0x519e70(0x1b0)](_0x1157ac[_0x519e70(0x1e8)](_0x1157ac[_0x519e70(0x1e8)](_0x1157ac['abDlY'](_0x1157ac[_0x519e70(0x1e7)]('The\x20--ci\x20flag\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x20session\x20state\x0a',_0x1157ac['zwUFu'])+'\x0a',_0x1157ac[_0x519e70(0x1bf)])+_0x1157ac[_0x519e70(0x1ed)],'\x0a'),_0x1157ac[_0x519e70(0x1c2)])+_0x1157ac['jgucE']),process['exit'](0x1));const _0xb2b0a9={};if(_0x448f15[_0x519e70(0x1e2)])for(const _0x1e78d1 of _0x448f15[_0x519e70(0x1e2)]){const _0x5f579c=_0x1e78d1['indexOf'](':');if(_0x1157ac['ReUVJ'](_0x5f579c,-0x1))throw new Error(_0x519e70(0x1ef)+_0x1e78d1+'\x22.\x20Expected\x20\x22Name:\x20Value\x22.');const _0x5d5544=_0x1e78d1['slice'](0x0,_0x5f579c)[_0x519e70(0x1f5)](),_0x5742cf=_0x1e78d1[_0x519e70(0x1c0)](_0x1157ac[_0x519e70(0x1e8)](_0x5f579c,0x1))['trim']();_0xb2b0a9[_0x5d5544]=_0x5742cf;}if(_0x448f15[_0x519e70(0x1e6)]!==undefined&&_0x448f15['cdpEndpoint']['trim']()==='')throw new Error(_0x1157ac[_0x519e70(0x1c8)]);if(_0x448f15[_0x519e70(0x1e6)]&&_0x448f15[_0x519e70(0x1f6)])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.');const _0x5124e4=_0x1157ac['puaYV'](Boolean,_0x448f15[_0x519e70(0x1e6)]),_0x5e66e9=isInteractive();if(!_0x5e66e9&&!_0x448f15[_0x519e70(0x1f6)]&&!_0x5124e4&&!_0x448f15[_0x519e70(0x200)])throw new Error(_0x1157ac['Enloa']);if(_0x5124e4){const _0x422701=_0x448f15['cdpEndpoint'];console['log'](_0x1157ac[_0x519e70(0x1aa)]),console['log']('\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20'+_0x422701);const _0x1e1e9a={'cdpEndpoint':_0x422701,'isElectron':!![]};Object[_0x519e70(0x1ac)](_0xb2b0a9)[_0x519e70(0x1fa)]>0x0&&(_0x1e1e9a[_0x519e70(0x193)]=_0xb2b0a9);await _0x1157ac[_0x519e70(0x1e9)](createUnconfiguredCloudProfile,_0x200037,_0x1e1e9a);try{_0x1157ac[_0x519e70(0x1c1)](setProfileOverride,process[_0x519e70(0x1a7)](),_0x200037,_0x519e70(0x1e6),_0x422701),setProfileOverride(process['cwd'](),_0x200037,_0x1157ac['QHVLJ'],!![]);}catch(_0x322573){console['error'](_0x519e70(0x1f2)+(_0x1157ac['qyIci'](_0x322573,Error)?_0x322573[_0x519e70(0x1fb)]:_0x1157ac['puaYV'](String,_0x322573)));}console['log'](_0x519e70(0x1b2)+_0x200037+'\x27\x20created\x20(CDP).'),await _0x1157ac['rhKgJ'](sweepOrphansBestEffort,_0x200037),await markActive(_0x200037);return;}if(_0x448f15['skipAuth']){const _0x14dcff={};_0x448f15['url']&&(_0x14dcff[_0x519e70(0x1d8)]=_0x448f15['url']);_0x1157ac[_0x519e70(0x20b)](Object[_0x519e70(0x1ac)](_0xb2b0a9)[_0x519e70(0x1fa)],0x0)&&(_0x14dcff[_0x519e70(0x193)]=_0xb2b0a9);await createUnconfiguredCloudProfile(_0x200037,_0x14dcff),console['log']('✓\x20Profile\x20\x27'+_0x200037+_0x519e70(0x1e4)+('\x20\x20When\x20you\x27re\x20ready\x20to\x20log\x20in,\x20run\x20`ranger\x20profile\x20add\x20'+_0x200037+'`\x20again\x20without\x20--skip-auth.')),await _0x1157ac[_0x519e70(0x191)](sweepOrphansBestEffort,_0x200037),await markActive(_0x200037);return;}if(_0x448f15['url']){const _0x56dd84=_0x448f15[_0x519e70(0x1f6)],_0xf043d3=await checkUrlReachability(_0x56dd84);if(!_0xf043d3['ok']&&!_0x448f15['force'])throw new Error('Could\x20not\x20reach\x20'+_0x56dd84+':\x20'+_0xf043d3[_0x519e70(0x1b0)]+_0x519e70(0x1bc));!_0xf043d3['ok']&&_0x448f15[_0x519e70(0x1cc)]&&console[_0x519e70(0x1db)]('⚠\x20Could\x20not\x20reach\x20'+_0x56dd84+':\x20'+_0xf043d3['error']+_0x519e70(0x1c3));}else{console['log'](_0x1157ac[_0x519e70(0x19b)]),console[_0x519e70(0x1db)](_0x519e70(0x1cb)),console['log']('\x20\x20Ranger\x20will\x20use\x20it\x20to\x20look\x20up\x20the\x20right\x20cloud\x20auth\x20env\x20to\x20attach.\x0a');let _0x2e2d71='',_0x3b3d96=![];while(!![]){const _0x364fb1=await _0x48f2af['prompt']([{'type':'input','name':_0x1157ac['HDhgL'],'message':_0x3b3d96?_0x1157ac[_0x519e70(0x19e)]:_0x1157ac['XSdkB'],'default':_0x2e2d71||_0x1157ac['uMSoz']}]);_0x2e2d71=_0x364fb1[_0x519e70(0x1d8)];const _0x50bd42=await checkUrlReachability(_0x2e2d71);if(_0x50bd42['ok'])break;const _0x1d76e0=/^[a-zA-Z][\w+.-]*:\/\//[_0x519e70(0x1ae)](_0x2e2d71),_0x49ec8c=_0x50bd42['isProtocolError']&&!_0x1d76e0,_0x4f0c90=_0x49ec8c?_0x519e70(0x1d1)+_0x2e2d71:null;_0x3b3d96=!![],console[_0x519e70(0x1db)](_0x519e70(0x196)+_0x2e2d71+':\x20'+_0x50bd42[_0x519e70(0x1b0)]);_0x4f0c90&&console['log']('\x20\x20Did\x20you\x20mean\x20'+_0x4f0c90+'?');const {action:_0x278e81}=await _0x48f2af[_0x519e70(0x1de)]([{'type':_0x519e70(0x1d9),'name':'action','message':'What\x20would\x20you\x20like\x20to\x20do?','choices':[..._0x4f0c90?[{'name':_0x519e70(0x202)+_0x4f0c90,'value':'use_suggestion'}]:[],{'name':_0x1157ac['RztFV'],'value':_0x519e70(0x1dd)},{'name':_0x1157ac[_0x519e70(0x1f8)],'value':_0x1157ac['DkvqG']}]}]);if(_0x278e81===_0x1157ac['GBUsK']&&_0x4f0c90){_0x2e2d71=_0x4f0c90;const _0x54be1f=await _0x1157ac[_0x519e70(0x197)](checkUrlReachability,_0x2e2d71);if(_0x54be1f['ok'])break;console[_0x519e70(0x1db)](_0x519e70(0x1a9)+_0x2e2d71+':\x20'+_0x54be1f[_0x519e70(0x1b0)]);}else{if(_0x1157ac[_0x519e70(0x1fc)](_0x278e81,_0x1157ac['DkvqG']))break;}}_0x448f15={..._0x448f15,'url':_0x2e2d71};}let _0x533de3=![];try{_0x533de3=await tryAutoRouteCloudProfile(_0x200037,_0x448f15['url'],_0x448f15,_0x5e66e9,_0x6b4399);}catch(_0x59e15f){console['error']('\x0a\x20\x20Failed\x20to\x20create\x20cloud\x20profile\x20\x22'+_0x200037+_0x519e70(0x1fe)+(_0x1157ac[_0x519e70(0x195)](_0x59e15f,Error)?_0x59e15f[_0x519e70(0x1fb)]:String(_0x59e15f))),process['exit'](0x1);}!_0x533de3&&process['exit'](0x1),await markActive(_0x200037);}
1
+ const _0x5302fa=_0x1571;(function(_0x22129d,_0x23b1ed){const _0x84dc81=_0x1571,_0xa55a02=_0x22129d();while(!![]){try{const _0x3d6d12=parseInt(_0x84dc81(0xb3))/0x1*(parseInt(_0x84dc81(0x84))/0x2)+-parseInt(_0x84dc81(0x78))/0x3*(parseInt(_0x84dc81(0x7b))/0x4)+-parseInt(_0x84dc81(0x93))/0x5*(parseInt(_0x84dc81(0x9d))/0x6)+parseInt(_0x84dc81(0xc0))/0x7*(-parseInt(_0x84dc81(0xc2))/0x8)+-parseInt(_0x84dc81(0x85))/0x9*(-parseInt(_0x84dc81(0x7d))/0xa)+-parseInt(_0x84dc81(0xdf))/0xb+parseInt(_0x84dc81(0xdd))/0xc;if(_0x3d6d12===_0x23b1ed)break;else _0xa55a02['push'](_0xa55a02['shift']());}catch(_0x27e4cc){_0xa55a02['push'](_0xa55a02['shift']());}}}(_0x57e5,0x28e91));import{readdir,rm}from'fs/promises';import{join}from'path';import{existsSync}from'fs';import _0x304854 from'inquirer';import{getRangerDir,getRangerHomeDir}from'./utils/rangerRoot.js';import{writeActiveProfileName}from'./utils/activeProfile.js';import{fetchAuthConfig,createCloudProfile,manualBrowserLogin,ApiError}from'./utils/cloudProfile.js';function _0x1571(_0x552bb4,_0x124149){_0x552bb4=_0x552bb4-0x66;const _0x57e5a3=_0x57e5();let _0x1571c3=_0x57e5a3[_0x552bb4];return _0x1571c3;}import{isInteractive}from'./utils/cloudProfileSession.js';import{matchAuthEnvironment}from'./utils/matchAuthEnvironment.js';import{isPathGitTracked}from'./utils/gitTracked.js';import{setProfileOverride}from'./utils/projectsConfig.js';function _0x57e5(){const _0x31d0b6=['stdout','RKoOM','setupHeaders','log','JodvJ','local','\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20','cwd','TMgQd','DIdwg','profile.add.autoRouteSkipped','\x27\x20to\x20the\x20cloud?','isProtocolError','GzFVa','ociEh','NODE_TLS_REJECT_UNAUTHORIZED','--cdp-endpoint\x20must\x20not\x20be\x20empty.\x20Provide\x20the\x20CDP\x20URL,\x20e.g.\x20--cdp-endpoint\x20http://localhost:9222','skipAuth','289149tbvYCD','\x20(continuing\x20with\x20--force)','✓\x20Profile\x20\x27','12OUZDSp','qArGX','3950eirbRc','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','prompt','test','YwQou','\x20\x20Note:\x20found\x20git-tracked\x20local\x20profile\x20at\x20','env','373532WLVjdM','5697iYzrUk','AgOCy','eUtGb','TypeError','.tmp-','\x0a\x20\x20A\x20profile\x20named\x20\x22','What\x20would\x20you\x20like\x20to\x20do?','\x0aMake\x20sure\x20your\x20app\x20is\x20running,\x20then\x20try\x20again.\x20To\x20skip\x20this\x20check,\x20pass\x20--force.','continue','aVNpe','some','environments','use_suggestion','\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20session,\x0a','12155nKPvin','⚠\x20Could\x20not\x20reach\x20','rztEF','dZSNr','\x27\x20matching\x20','\x27\x20created.\x0a','\x20\x20Details:\x20https://docs.ranger.net/main/concepts/profiles#automated-login','\x20\x20When\x20you\x27re\x20ready\x20to\x20log\x20in,\x20run\x20`ranger\x20profile\x20add\x20','MxCum','\x0a✓\x20Profile\x20\x27','156FOpHKh','keys','\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','\x22:\x20','This\x20account\x20will\x20be\x20shared\x20with\x20everyone\x20at\x20your\x20organization','\x20--skip-auth\x0a','To\x20set\x20up\x20a\x20profile,\x20run:\x0a','baseUrl','saveToCloud','cdpEndpoint','CnUBR','\x27\x20created\x20with\x20a\x20captured\x20session.\x0a','\x20\x20Next:\x20ranger\x20go\x20--profile\x20','Luvvc','xBbem','PhsLH','FVDuR','aWAtJ','Emixp','status','name','bTxIb','1mPvLTF','origin','GBCFB','HDzJo','\x0a\x20\x20Could\x20not\x20reach\x20','Invalid\x20URL','KcDat','QmpqG','slice','kfQLY','trim','zRkxN','\x20\x20Make\x20sure\x20your\x20app\x20is\x20running\x20locally\x20before\x20continuing.','649516hebCoy','yes','16rtaepI','LIifi','user_declined','What\x20is\x20the\x20URL\x20of\x20your\x20running\x20app?','length','pKCHm','\x27\x20created\x20(no\x20session).\x0a','xwdYD','isTTY','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20','✓\x20Cloud\x20profile\x20\x27','CSnVF','IKjKx','Enter\x20a\x20new\x20URL\x20(or\x20press\x20enter\x20to\x20keep\x20current):','capture','trackPhaseEnd','profile.add.autoRouted','indexOf','\x20—\x20not\x20removing.\x20Delete\x20manually\x20if\x20you\x20want\x20it\x20gone.','\x0a\x20\x20Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team\x20yet\x20—\x20that\x27s\x20the\x20path\x20that\x20lets\x20Ranger\x20log\x20into\x20your\x20app\x20for\x20you\x20in\x20CI\x20/\x20background\x20agents.\x0a','pUJXW','force','HEAD','\x0a🔌\x20CDP\x20Profile\x20Setup\x0a','exit','Automated\x20login\x20isn\x27t\x20set\x20up\x20for\x20your\x20team.\x20Capture\x20a\x20session\x20via\x20a\x20headed\x20browser\x20instead?','Warning:\x20Profile\x20created,\x20but\x20failed\x20to\x20mark\x20it\x20as\x20active.','4929084zkJbAg','\x27\x20created\x20(CDP).','1562638cTMGBe','error','rtAor','lTjBn','\x0a\x20\x20Still\x20could\x20not\x20reach\x20','FoRwa','message','\x20\x20Did\x20you\x20mean\x20','no_match','url','muGoi','setupHeader','Invalid\x20--setup-header\x20format:\x20\x22','sOmHS'];_0x57e5=function(){return _0x31d0b6;};return _0x57e5();}const CLOUD_PROFILE_SHARING_WARNING=_0x5302fa(0xa1);function warnCloudProfileSharedInOrg(){const _0x4feb92=_0x5302fa;if(!process[_0x4feb92(0x66)][_0x4feb92(0xca)])return;console['warn'](CLOUD_PROFILE_SHARING_WARNING);}async function checkUrlReachability(_0x94977c){const _0x109bff=_0x5302fa,_0x272bc0={'FVDuR':'manual','wINTV':function(_0x391834,_0x1066dd){return _0x391834(_0x1066dd);},'sOmHS':function(_0x4273f9,_0x5611b4){return _0x4273f9===_0x5611b4;},'ZtHGZ':_0x109bff(0x88),'wZtUx':'fetch\x20failed'};try{const _0x3c1cf9=new AbortController(),_0x4c35d6=setTimeout(()=>_0x3c1cf9['abort'](),0x1388),_0x588da5={'method':_0x109bff(0xd8),'signal':_0x3c1cf9['signal'],'redirect':_0x272bc0[_0x109bff(0xad)]};/^https:\/\/localhost(:\d+)?/i[_0x109bff(0x80)](_0x94977c)&&(process['env']['NODE_TLS_REJECT_UNAUTHORIZED']='0');const _0x31338e=await fetch(_0x94977c,_0x588da5);delete process[_0x109bff(0x83)][_0x109bff(0x75)],_0x272bc0['wINTV'](clearTimeout,_0x4c35d6);if(_0x31338e[_0x109bff(0xb0)]<0x190)return{'ok':!![]};return{'ok':![],'error':'HTTP\x20'+_0x31338e[_0x109bff(0xb0)]};}catch(_0x2287d7){delete process[_0x109bff(0x83)][_0x109bff(0x75)];const _0x2e8c1f=_0x2287d7,_0x2aab0f=_0x2e8c1f['message']||String(_0x2287d7),_0x2fced6=_0x2aab0f['includes'](_0x109bff(0xb8))||_0x272bc0[_0x109bff(0xec)](_0x2e8c1f[_0x109bff(0xb1)],_0x272bc0['ZtHGZ'])||_0x2aab0f['includes'](_0x272bc0['wZtUx']);return{'ok':![],'error':_0x2aab0f,'isProtocolError':_0x2fced6};}}async function sweepOrphanLocalProfile(_0x588af1,_0x4a3c9a,_0x3ba37b){const _0x23411c=_0x5302fa,_0x8ef49b={'CnUBR':function(_0x2991e8,_0x545fd6){return _0x2991e8(_0x545fd6);},'CSnVF':function(_0x30781a,_0x154552,_0x2682d0){return _0x30781a(_0x154552,_0x2682d0);}},_0x3f2ee4=join(_0x4a3c9a,_0x23411c(0x6b)),_0x3a9059=join(_0x3f2ee4,_0x588af1);existsSync(_0x3a9059)&&(_0x3ba37b&&await _0x8ef49b[_0x23411c(0xa7)](isPathGitTracked,_0x3a9059)?console[_0x23411c(0x69)](_0x23411c(0x82)+_0x3a9059+_0x23411c(0xd4)):(await rm(_0x3a9059,{'recursive':!![],'force':!![]}),console['log']('\x20\x20Cleaned\x20up\x20orphan\x20local\x20profile\x20at\x20'+_0x3a9059)));if(existsSync(_0x3f2ee4)){let _0x4024df=[];try{_0x4024df=await readdir(_0x3f2ee4);}catch{return;}const _0x3907ea=_0x23411c(0x89)+_0x588af1+'-';for(const _0xd25ee1 of _0x4024df){if(!_0xd25ee1['startsWith'](_0x3907ea))continue;const _0x4ab3fd=join(_0x3f2ee4,_0xd25ee1);await _0x8ef49b[_0x23411c(0xcd)](rm,_0x4ab3fd,{'recursive':!![],'force':!![]}),console['log'](_0x23411c(0x6c)+_0x4ab3fd);}}}async function sweepOrphansBestEffort(_0x751659){const _0x30b22d=_0x5302fa,_0x46eba2={'lTjBn':function(_0x170bbf,_0x41adbb,_0x326074,_0xcfb3a4){return _0x170bbf(_0x41adbb,_0x326074,_0xcfb3a4);},'hZrkF':function(_0x1f2e4c){return _0x1f2e4c();},'LIifi':function(_0x11ce12,_0x376fe3,_0x1e09dc,_0x1ceca0){return _0x11ce12(_0x376fe3,_0x1e09dc,_0x1ceca0);},'Emixp':function(_0x5c0140,_0x4142bc){return _0x5c0140 instanceof _0x4142bc;},'cHdLb':function(_0x1261e4,_0x38a258){return _0x1261e4(_0x38a258);}};try{await _0x46eba2[_0x30b22d(0xe2)](sweepOrphanLocalProfile,_0x751659,_0x46eba2['hZrkF'](getRangerHomeDir),![]);const _0x189825=getRangerDir();_0x189825!==getRangerHomeDir()&&await _0x46eba2[_0x30b22d(0xc3)](sweepOrphanLocalProfile,_0x751659,_0x189825,!![]);}catch(_0x1b298e){console['log']('\x20\x20Note:\x20cloud\x20profile\x20created,\x20but\x20failed\x20to\x20sweep\x20orphan\x20local\x20dirs\x20('+(_0x46eba2[_0x30b22d(0xaf)](_0x1b298e,Error)?_0x1b298e['message']:_0x46eba2['cHdLb'](String,_0x1b298e))+').');}}async function markActive(_0x1d9a4c){const _0x4d2f80=_0x5302fa,_0x6f023e={'KEDuu':function(_0x47fca5,_0x17c1e8){return _0x47fca5(_0x17c1e8);},'aWAtJ':_0x4d2f80(0xdc)};try{await _0x6f023e['KEDuu'](writeActiveProfileName,_0x1d9a4c),console['log']('\x20\x20Set\x20active\x20profile:\x20'+_0x1d9a4c);}catch{console[_0x4d2f80(0x69)](_0x6f023e[_0x4d2f80(0xae)]);}}async function tryAutoRouteCloudProfile(_0x5d1543,_0x4c7a78,_0x500041,_0x5ce5af,_0x50a2e3){const _0x28d604=_0x5302fa,_0x203689={'IDGjg':'profile.add.autoRouteSkipped','rtAor':'no_auth_config','TMgQd':function(_0x3bb8ce,_0x110d18){return _0x3bb8ce instanceof _0x110d18;},'HDzJo':function(_0x11bc3a,_0x17a06c){return _0x11bc3a(_0x17a06c);},'pUJXW':function(_0x46c6aa,_0x258b23,_0x3bf3c5,_0x5719a0,_0x2aa6f2){return _0x46c6aa(_0x258b23,_0x3bf3c5,_0x5719a0,_0x2aa6f2);},'ociEh':function(_0x5a27bc,_0x439e16){return _0x5a27bc+_0x439e16;},'rztEF':function(_0xeb8835,_0x271b0d){return _0xeb8835+_0x271b0d;},'kfQLY':_0x28d604(0xd5),'YwQou':'\x20\x20Workaround\x20for\x20now:\x20create\x20a\x20profile\x20without\x20a\x20captured\x20session\x20and\x20supply\x20one\x20later:\x0a','lpcnu':'\x20\x20To\x20get\x20automated\x20login\x20set\x20up\x20for\x20your\x20team\x20(a\x20one-time\x20call):\x20eng@ranger.net\x0a','yyBRU':function(_0x2d48b0,_0x5d1038,_0x14c1e6){return _0x2d48b0(_0x5d1038,_0x14c1e6);},'qXCba':_0x28d604(0xa5),'PPUdh':'user_declined','PhsLH':function(_0x363015){return _0x363015();},'bYdXI':function(_0xfcae05,_0x1532bf){return _0xfcae05+_0x1532bf;},'AgOCy':'profile.add.autoRouted'};let _0x384000;try{_0x384000=await fetchAuthConfig();}catch(_0x388134){return _0x50a2e3?.[_0x28d604(0xd1)](_0x203689['IDGjg'],{'reason':_0x203689['rtAor'],'profileName':_0x5d1543}),console[_0x28d604(0xe0)]('\x0a\x20\x20Could\x20not\x20fetch\x20this\x20org\x27s\x20auth\x20config:\x20'+(_0x203689[_0x28d604(0x6e)](_0x388134,Error)?_0x388134['message']:_0x203689['HDzJo'](String,_0x388134))),![];}if(!_0x384000||!_0x384000[_0x28d604(0x90)]||Object['keys'](_0x384000['environments'])[_0x28d604(0xc6)]===0x0){if(_0x5ce5af)return await _0x203689[_0x28d604(0xd6)](captureEnvLessProfile,_0x5d1543,_0x4c7a78,_0x500041,_0x50a2e3);return _0x50a2e3?.[_0x28d604(0xd1)]('profile.add.autoRouteSkipped',{'reason':_0x203689[_0x28d604(0xe1)],'profileName':_0x5d1543}),console['error'](_0x203689['ociEh'](_0x203689[_0x28d604(0x74)](_0x203689[_0x28d604(0x95)](_0x203689[_0x28d604(0xbc)]+'\x0a'+_0x203689[_0x28d604(0x81)],'\x20\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20'+_0x5d1543+'\x20--url\x20'+_0x4c7a78+_0x28d604(0xa2)),'\x0a'),_0x203689['lpcnu'])+_0x28d604(0x99)),![];}const _0x5a3c40=_0x203689['yyBRU'](matchAuthEnvironment,_0x4c7a78,_0x384000);if(!_0x5a3c40)return _0x50a2e3?.['trackPhaseEnd'](_0x28d604(0x70),{'reason':_0x28d604(0xe7),'profileName':_0x5d1543}),console['error']('\x0a\x20\x20No\x20auth\x20env\x20matches\x20'+_0x4c7a78+'.\x20Configured\x20envs:\x20'+Object['keys'](_0x384000['environments'])['join'](',\x20')+'.'),![];const _0x312570=_0x384000['environments'][_0x5a3c40],_0x1ff548=_0x312570?.['domains']??[];if(_0x5ce5af&&!_0x500041['yes']){const {saveToCloud:_0x435cb2}=await _0x304854[_0x28d604(0x7f)]([{'type':'confirm','name':_0x203689['qXCba'],'message':'Found\x20auth\x20environment\x20\x27'+_0x5a3c40+_0x28d604(0x97)+_0x4c7a78+'\x0a\x20\x20(domains:\x20'+_0x1ff548['join'](',\x20')+')\x0a\x20\x20Save\x20\x27'+_0x5d1543+_0x28d604(0x71),'default':!![]}]);if(!_0x435cb2)return _0x50a2e3?.['trackPhaseEnd'](_0x28d604(0x70),{'reason':_0x203689['PPUdh'],'profileName':_0x5d1543}),console[_0x28d604(0xe0)]('\x0a\x20\x20Declined.\x20Re-run\x20with\x20--skip-auth\x20to\x20create\x20a\x20profile\x20without\x20a\x20cloud-managed\x20session.'),![];}const _0x6e4664=_0x1ff548[_0x28d604(0x8f)](_0x38aae4=>{const _0x43f19b=_0x28d604;try{return new URL(_0x38aae4)[_0x43f19b(0xb4)]===new URL(_0x4c7a78)['origin'];}catch{return![];}}),_0x5c2264={};!_0x6e4664&&(_0x5c2264[_0x28d604(0xa4)]=_0x4c7a78);try{await createCloudProfile(_0x5d1543,_0x5a3c40,{'settings':_0x5c2264}),_0x203689[_0x28d604(0xac)](warnCloudProfileSharedInOrg);}catch(_0x4984b1){if(_0x4984b1 instanceof ApiError&&_0x4984b1[_0x28d604(0xb0)]===0x199){console[_0x28d604(0xe0)](_0x203689['bYdXI'](_0x28d604(0x8a)+_0x5d1543+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a','\x20\x20\x20\x20\x20\x20ranger\x20profile\x20update\x20'+_0x5d1543));throw _0x4984b1;}throw _0x4984b1;}return console[_0x28d604(0x69)](_0x203689['bYdXI']('✓\x20Profile\x20\x27'+_0x5d1543+_0x28d604(0x98),_0x28d604(0xa9)+_0x5d1543)),await _0x203689[_0x28d604(0xb6)](sweepOrphansBestEffort,_0x5d1543),_0x50a2e3?.['trackPhaseEnd'](_0x203689[_0x28d604(0x86)],{'envKey':_0x5a3c40,'profileName':_0x5d1543}),!![];}async function createUnconfiguredCloudProfile(_0x5cf70f,_0x41d033){const _0x17c563=_0x5302fa,_0x2a8f45={'DIdwg':function(_0x21d5ff,_0x592b41,_0x470216,_0x52a2f0){return _0x21d5ff(_0x592b41,_0x470216,_0x52a2f0);},'xqGXa':function(_0x4cab6c,_0x3a13d7){return _0x4cab6c===_0x3a13d7;}};try{await _0x2a8f45[_0x17c563(0x6f)](createCloudProfile,_0x5cf70f,undefined,{'settings':_0x41d033}),warnCloudProfileSharedInOrg();}catch(_0x5413d6){_0x5413d6 instanceof ApiError&&_0x2a8f45['xqGXa'](_0x5413d6['status'],0x199)&&console[_0x17c563(0xe0)](_0x17c563(0x8a)+_0x5cf70f+_0x17c563(0x9f)+(_0x17c563(0xcb)+_0x5cf70f));throw _0x5413d6;}}async function captureEnvLessProfile(_0x343ed1,_0xb56053,_0x3bfc31,_0x408ba6){const _0xfddcad=_0x5302fa,_0x465bd4={'KYNTO':'confirm','yxdgR':_0xfddcad(0xd0),'xwdYD':_0xfddcad(0xdb),'epxac':_0xfddcad(0x70),'QmpqG':function(_0x2e9495,_0x5bc657){return _0x2e9495+_0x5bc657;},'RKoOM':function(_0x3b9065,_0x2d82cf){return _0x3b9065===_0x2d82cf;},'qArGX':function(_0x456251,_0x57d385){return _0x456251+_0x57d385;},'IKjKx':function(_0x5a0feb){return _0x5a0feb();},'QndzO':function(_0x392329,_0x31cfd7){return _0x392329===_0x31cfd7;},'CWFww':function(_0x28111e,_0x2eb083,_0x12a191){return _0x28111e(_0x2eb083,_0x12a191);}};if(!_0x3bfc31[_0xfddcad(0xc1)]){const {capture:_0x22294a}=await _0x304854[_0xfddcad(0x7f)]([{'type':_0x465bd4['KYNTO'],'name':_0x465bd4['yxdgR'],'message':_0x465bd4[_0xfddcad(0xc9)],'default':!![]}]);if(!_0x22294a)return _0x408ba6?.['trackPhaseEnd'](_0x465bd4['epxac'],{'reason':_0xfddcad(0xc4),'profileName':_0x343ed1}),console[_0xfddcad(0xe0)](_0x465bd4[_0xfddcad(0xba)](_0xfddcad(0x92),'\x20\x20or\x20contact\x20eng@ranger.net\x20to\x20set\x20up\x20automated\x20login\x20for\x20your\x20team.')),![];}const _0x3c41c5={};if(_0x3bfc31[_0xfddcad(0xea)])for(const _0x254354 of _0x3bfc31['setupHeader']){const _0x37c88f=_0x254354[_0xfddcad(0xd3)](':');if(_0x465bd4[_0xfddcad(0x67)](_0x37c88f,-0x1))continue;_0x3c41c5[_0x254354['slice'](0x0,_0x37c88f)[_0xfddcad(0xbd)]()]=_0x254354[_0xfddcad(0xbb)](_0x465bd4[_0xfddcad(0x7c)](_0x37c88f,0x1))['trim']();}const _0x1b6c19={'baseUrl':_0xb56053};Object['keys'](_0x3c41c5)['length']>0x0&&(_0x1b6c19[_0xfddcad(0x68)]=_0x3c41c5);let _0x59f66e;try{_0x59f66e=await createCloudProfile(_0x343ed1,undefined,{'settings':_0x1b6c19}),_0x465bd4[_0xfddcad(0xce)](warnCloudProfileSharedInOrg);}catch(_0x5ca50f){_0x5ca50f instanceof ApiError&&_0x465bd4['QndzO'](_0x5ca50f[_0xfddcad(0xb0)],0x199)&&console['error']('\x0a\x20\x20A\x20profile\x20named\x20\x22'+_0x343ed1+'\x22\x20already\x20exists.\x20To\x20refresh\x20its\x20session,\x20run:\x0a'+(_0xfddcad(0xcb)+_0x343ed1));throw _0x5ca50f;}return await _0x465bd4['CWFww'](manualBrowserLogin,_0x59f66e,{'key':'','domains':[_0xb56053],'setupHeaders':Object['keys'](_0x3c41c5)['length']>0x0?_0x3c41c5:undefined}),console['log'](_0xfddcad(0x9c)+_0x343ed1+_0xfddcad(0xa8)+(_0xfddcad(0xa9)+_0x343ed1)),await sweepOrphansBestEffort(_0x343ed1),_0x408ba6?.[_0xfddcad(0xd1)](_0xfddcad(0xd2),{'envKey':null,'profileName':_0x343ed1}),!![];}export async function addEnv(_0x2b4a98,_0x233fdd={},_0x32d523){const _0x407751=_0x5302fa,_0x44c697={'Luvvc':function(_0x30e8c0,_0x19a973){return _0x30e8c0+_0x19a973;},'FSYWk':function(_0x2124fd,_0x43e5a5){return _0x2124fd+_0x43e5a5;},'thica':function(_0x201f5d,_0xcd7461){return _0x201f5d+_0xcd7461;},'UuwGd':'The\x20--ci\x20flag\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x20session\x20state\x0a','RfUyH':_0x407751(0xa3),'uglty':'\x20\x20ranger\x20profile\x20add\x20<name>\x0a','UGwgM':'For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','JodvJ':'\x20\x20https://docs.ranger.net/main/concepts/profiles','ZWzUh':function(_0xcc783,_0x3b68bf){return _0xcc783===_0x3b68bf;},'Kvykp':function(_0x19294f,_0x35ef9d){return _0x19294f!==_0x35ef9d;},'FoRwa':function(_0x4267dc,_0x5a8e90){return _0x4267dc===_0x5a8e90;},'mUUkg':_0x407751(0x76),'GzFVa':function(_0x15b04a){return _0x15b04a();},'gWYNV':_0x407751(0xd9),'JvoXx':function(_0x5bf292,_0x576a51,_0x5b31a5){return _0x5bf292(_0x576a51,_0x5b31a5);},'nTfAk':function(_0x5af6aa,_0x5b66d9,_0x195c2e,_0x13cc38,_0x2e7cc5){return _0x5af6aa(_0x5b66d9,_0x195c2e,_0x13cc38,_0x2e7cc5);},'GBCFB':_0x407751(0xa6),'ASWCg':function(_0x1f7843,_0x2ab52a){return _0x1f7843 instanceof _0x2ab52a;},'dZSNr':function(_0x3bce47,_0x49ef39){return _0x3bce47(_0x49ef39);},'IJwvl':function(_0x47a18c,_0x47210d){return _0x47a18c(_0x47210d);},'muGoi':function(_0x58cd58,_0x52496b){return _0x58cd58(_0x52496b);},'aVNpe':function(_0x44ccdb,_0x39605a){return _0x44ccdb>_0x39605a;},'XqrRu':'\x0a🌐\x20Profile\x20Setup\x0a','KcDat':'\x20\x20Ranger\x20will\x20use\x20it\x20to\x20look\x20up\x20the\x20right\x20cloud\x20auth\x20env\x20to\x20attach.\x0a','nniTy':'baseUrl','KXBoZ':_0x407751(0xcf),'eUtGb':'http://localhost:3000','MxCum':function(_0x35837a,_0x4b629e){return _0x35837a(_0x4b629e);},'coQbP':'action','zRkxN':_0x407751(0x8b),'KLRgL':_0x407751(0x91),'xBbem':'Enter\x20a\x20different\x20URL','CmfTp':'Continue\x20anyway','bTxIb':_0x407751(0x8d),'pKCHm':function(_0x31e93c,_0x251784){return _0x31e93c instanceof _0x251784;},'bCmcc':function(_0xbea15f,_0xc6d63a){return _0xbea15f(_0xc6d63a);}};_0x233fdd['ci']&&(console['error'](_0x44c697[_0x407751(0xaa)](_0x44c697['FSYWk'](_0x44c697['thica'](_0x44c697['FSYWk'](_0x44c697[_0x407751(0xaa)](_0x44c697['UuwGd']+'for\x20you,\x20so\x20the\x20encrypted-CI\x20flow\x20is\x20unnecessary.\x0a','\x0a'),_0x44c697['RfUyH'])+_0x44c697['uglty'],'\x0a'),_0x44c697['UGwgM']),_0x44c697[_0x407751(0x6a)])),process['exit'](0x1));const _0x49fe1d={};if(_0x233fdd['setupHeader'])for(const _0x207333 of _0x233fdd['setupHeader']){const _0x2cb7a1=_0x207333[_0x407751(0xd3)](':');if(_0x44c697['ZWzUh'](_0x2cb7a1,-0x1))throw new Error(_0x407751(0xeb)+_0x207333+'\x22.\x20Expected\x20\x22Name:\x20Value\x22.');const _0x56abfb=_0x207333[_0x407751(0xbb)](0x0,_0x2cb7a1)['trim'](),_0xbf9efb=_0x207333['slice'](_0x44c697['thica'](_0x2cb7a1,0x1))[_0x407751(0xbd)]();_0x49fe1d[_0x56abfb]=_0xbf9efb;}if(_0x44c697['Kvykp'](_0x233fdd['cdpEndpoint'],undefined)&&_0x44c697[_0x407751(0xe4)](_0x233fdd[_0x407751(0xa6)][_0x407751(0xbd)](),''))throw new Error(_0x44c697['mUUkg']);if(_0x233fdd['cdpEndpoint']&&_0x233fdd['url'])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.');const _0x5a314d=Boolean(_0x233fdd[_0x407751(0xa6)]),_0x428c40=_0x44c697[_0x407751(0x73)](isInteractive);if(!_0x428c40&&!_0x233fdd[_0x407751(0xe8)]&&!_0x5a314d&&!_0x233fdd[_0x407751(0x77)])throw new Error(_0x407751(0x7e));if(_0x5a314d){const _0x239b6d=_0x233fdd[_0x407751(0xa6)];console[_0x407751(0x69)](_0x44c697['gWYNV']),console[_0x407751(0x69)]('\x20\x20Configuring\x20Ranger\x20to\x20connect\x20to:\x20'+_0x239b6d);const _0x212d58={'cdpEndpoint':_0x239b6d,'isElectron':!![]};Object[_0x407751(0x9e)](_0x49fe1d)['length']>0x0&&(_0x212d58[_0x407751(0x68)]=_0x49fe1d);await _0x44c697['JvoXx'](createUnconfiguredCloudProfile,_0x2b4a98,_0x212d58);try{_0x44c697['nTfAk'](setProfileOverride,process[_0x407751(0x6d)](),_0x2b4a98,_0x44c697[_0x407751(0xb5)],_0x239b6d),setProfileOverride(process['cwd'](),_0x2b4a98,'isElectron',!![]);}catch(_0x528c9b){console[_0x407751(0xe0)]('\x0a\x20\x20Cloud\x20profile\x20created,\x20but\x20failed\x20to\x20write\x20per-cwd\x20CDP\x20override\x20to\x20projects.json:\x20'+(_0x44c697['ASWCg'](_0x528c9b,Error)?_0x528c9b['message']:_0x44c697[_0x407751(0x96)](String,_0x528c9b)));}console['log'](_0x407751(0xcc)+_0x2b4a98+_0x407751(0xde)),await _0x44c697['IJwvl'](sweepOrphansBestEffort,_0x2b4a98),await _0x44c697['muGoi'](markActive,_0x2b4a98);return;}if(_0x233fdd['skipAuth']){const _0x460ba2={};_0x233fdd[_0x407751(0xe8)]&&(_0x460ba2[_0x407751(0xa4)]=_0x233fdd[_0x407751(0xe8)]);_0x44c697[_0x407751(0x8e)](Object[_0x407751(0x9e)](_0x49fe1d)[_0x407751(0xc6)],0x0)&&(_0x460ba2['setupHeaders']=_0x49fe1d);await createUnconfiguredCloudProfile(_0x2b4a98,_0x460ba2),console[_0x407751(0x69)](_0x44c697['FSYWk'](_0x407751(0x7a)+_0x2b4a98+_0x407751(0xc8),_0x407751(0x9a)+_0x2b4a98+'`\x20again\x20without\x20--skip-auth.')),await _0x44c697['IJwvl'](sweepOrphansBestEffort,_0x2b4a98),await markActive(_0x2b4a98);return;}if(_0x233fdd['url']){const _0x46f0b7=_0x233fdd[_0x407751(0xe8)],_0xb3c073=await checkUrlReachability(_0x46f0b7);if(!_0xb3c073['ok']&&!_0x233fdd['force'])throw new Error('Could\x20not\x20reach\x20'+_0x46f0b7+':\x20'+_0xb3c073[_0x407751(0xe0)]+_0x407751(0x8c));!_0xb3c073['ok']&&_0x233fdd[_0x407751(0xd7)]&&console[_0x407751(0x69)](_0x407751(0x94)+_0x46f0b7+':\x20'+_0xb3c073['error']+_0x407751(0x79));}else{console[_0x407751(0x69)](_0x44c697['XqrRu']),console[_0x407751(0x69)](_0x407751(0xbf)),console[_0x407751(0x69)](_0x44c697[_0x407751(0xb9)]);let _0x296fb9='',_0x492f1d=![];while(!![]){const _0x2bbf0e=await _0x304854[_0x407751(0x7f)]([{'type':'input','name':_0x44c697['nniTy'],'message':_0x492f1d?_0x44c697['KXBoZ']:_0x407751(0xc5),'default':_0x296fb9||_0x44c697[_0x407751(0x87)]}]);_0x296fb9=_0x2bbf0e[_0x407751(0xa4)];const _0x3b15c0=await _0x44c697[_0x407751(0x9b)](checkUrlReachability,_0x296fb9);if(_0x3b15c0['ok'])break;const _0x3a753b=/^[a-zA-Z][\w+.-]*:\/\//[_0x407751(0x80)](_0x296fb9),_0xb0038b=_0x3b15c0[_0x407751(0x72)]&&!_0x3a753b,_0x2cc291=_0xb0038b?'http://'+_0x296fb9:null;_0x492f1d=!![],console['log'](_0x407751(0xb7)+_0x296fb9+':\x20'+_0x3b15c0[_0x407751(0xe0)]);_0x2cc291&&console['log'](_0x407751(0xe6)+_0x2cc291+'?');const {action:_0x50da64}=await _0x304854[_0x407751(0x7f)]([{'type':'list','name':_0x44c697['coQbP'],'message':_0x44c697[_0x407751(0xbe)],'choices':[..._0x2cc291?[{'name':'Use\x20'+_0x2cc291,'value':_0x44c697['KLRgL']}]:[],{'name':_0x44c697[_0x407751(0xab)],'value':'retry'},{'name':_0x44c697['CmfTp'],'value':'continue'}]}]);if(_0x50da64===_0x44c697['KLRgL']&&_0x2cc291){_0x296fb9=_0x2cc291;const _0x3d901a=await _0x44c697[_0x407751(0xe9)](checkUrlReachability,_0x296fb9);if(_0x3d901a['ok'])break;console['log'](_0x407751(0xe3)+_0x296fb9+':\x20'+_0x3d901a['error']);}else{if(_0x50da64===_0x44c697[_0x407751(0xb2)])break;}}_0x233fdd={..._0x233fdd,'url':_0x296fb9};}let _0x33dff7=![];try{_0x33dff7=await tryAutoRouteCloudProfile(_0x2b4a98,_0x233fdd[_0x407751(0xe8)],_0x233fdd,_0x428c40,_0x32d523);}catch(_0x239028){console[_0x407751(0xe0)]('\x0a\x20\x20Failed\x20to\x20create\x20cloud\x20profile\x20\x22'+_0x2b4a98+_0x407751(0xa0)+(_0x44c697[_0x407751(0xc7)](_0x239028,Error)?_0x239028[_0x407751(0xe5)]:_0x44c697['dZSNr'](String,_0x239028))),process[_0x407751(0xda)](0x1);}!_0x33dff7&&process[_0x407751(0xda)](0x1),await _0x44c697['bCmcc'](markActive,_0x2b4a98);}
@@ -1 +1 @@
1
- (function(_0x5de4e0,_0x209204){var _0x51aa23=_0x16ff,_0x3179ee=_0x5de4e0();while(!![]){try{var _0x2bc47c=parseInt(_0x51aa23(0x177))/0x1*(-parseInt(_0x51aa23(0x180))/0x2)+parseInt(_0x51aa23(0x17a))/0x3*(-parseInt(_0x51aa23(0x185))/0x4)+-parseInt(_0x51aa23(0x178))/0x5+-parseInt(_0x51aa23(0x17d))/0x6+-parseInt(_0x51aa23(0x176))/0x7+parseInt(_0x51aa23(0x181))/0x8*(-parseInt(_0x51aa23(0x179))/0x9)+parseInt(_0x51aa23(0x187))/0xa;if(_0x2bc47c===_0x209204)break;else _0x3179ee['push'](_0x3179ee['shift']());}catch(_0x343baa){_0x3179ee['push'](_0x3179ee['shift']());}}}(_0x31cc,0xb73ee));function _0x16ff(_0x56fc20,_0x13bc13){_0x56fc20=_0x56fc20-0x176;var _0x31cc6e=_0x31cc();var _0x16ffbf=_0x31cc6e[_0x56fc20];return _0x16ffbf;}function _0x31cc(){var _0x24e2ed=['ranger\x20profile\x20encrypt-auth\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x0a','LXRQt','9970632vlDUQc','721562XbIOui','3630890ObAcbW','4774239SHpDds','94470HSOmWX','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','EbNCZ','6987642sVKOGT','gadBr','\x20\x20https://docs.ranger.net/main/concepts/profiles','4nYfjdv','8sOsJYt','zNeEN','error','ZeUyN','172cRIlVo','exit','73934000vPNtXD'];_0x31cc=function(){return _0x24e2ed;};return _0x31cc();}export async function authEncrypt(_0x550dac){var _0x4788e5=_0x16ff,_0x184f6b={'qtZId':function(_0x59b389,_0x2d9704){return _0x59b389+_0x2d9704;},'gadBr':function(_0x2b432b,_0x2bf7bd){return _0x2b432b+_0x2bf7bd;},'LXRQt':function(_0x4f1665,_0x29079a){return _0x4f1665+_0x29079a;},'HrYDr':_0x4788e5(0x188),'zNeEN':'session\x20state\x20for\x20you,\x20so\x20encrypted\x20on-disk\x20auth\x20is\x20unnecessary.\x0a','rrqAP':'To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','ZeUyN':'For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','EbNCZ':_0x4788e5(0x17f)};console[_0x4788e5(0x183)](_0x184f6b['qtZId'](_0x184f6b[_0x4788e5(0x17e)](_0x184f6b[_0x4788e5(0x17e)](_0x184f6b[_0x4788e5(0x189)](_0x184f6b['HrYDr'],_0x184f6b[_0x4788e5(0x182)]),'\x0a'),_0x184f6b['rrqAP'])+_0x4788e5(0x17b)+'\x0a',_0x184f6b[_0x4788e5(0x184)])+_0x184f6b[_0x4788e5(0x17c)]),process[_0x4788e5(0x186)](0x1);}
1
+ function _0x4699(_0x5b077,_0x3d7738){_0x5b077=_0x5b077-0x8e;var _0x3a6e6c=_0x3a6e();var _0x469940=_0x3a6e6c[_0x5b077];return _0x469940;}(function(_0x1eb852,_0xe965){var _0x22befd=_0x4699,_0x43a004=_0x1eb852();while(!![]){try{var _0x9479a5=parseInt(_0x22befd(0x99))/0x1+parseInt(_0x22befd(0x8f))/0x2+parseInt(_0x22befd(0x98))/0x3+-parseInt(_0x22befd(0xa1))/0x4*(parseInt(_0x22befd(0x95))/0x5)+-parseInt(_0x22befd(0x9d))/0x6*(-parseInt(_0x22befd(0x9b))/0x7)+parseInt(_0x22befd(0xa0))/0x8+parseInt(_0x22befd(0x97))/0x9*(-parseInt(_0x22befd(0x8e))/0xa);if(_0x9479a5===_0xe965)break;else _0x43a004['push'](_0x43a004['shift']());}catch(_0x5062c5){_0x43a004['push'](_0x43a004['shift']());}}}(_0x3a6e,0x6ec0f));export async function authEncrypt(_0x2f0a94){var _0x39daa5=_0x4699,_0x568b0c={'fnzFH':function(_0x29c775,_0x8f4df0){return _0x29c775+_0x8f4df0;},'fHTlg':function(_0x1a2f49,_0x384543){return _0x1a2f49+_0x384543;},'pUiNK':function(_0x5a087f,_0x53a8fc){return _0x5a087f+_0x53a8fc;},'fqDps':function(_0x58ee17,_0x2d5906){return _0x58ee17+_0x2d5906;},'idPMe':'session\x20state\x20for\x20you,\x20so\x20encrypted\x20on-disk\x20auth\x20is\x20unnecessary.\x0a','WwoRD':_0x39daa5(0x92),'FVrin':'\x20\x20ranger\x20profile\x20add\x20<name>\x0a','KiaXK':_0x39daa5(0x90),'mJjTM':_0x39daa5(0x93)};console[_0x39daa5(0xa2)](_0x568b0c[_0x39daa5(0x96)](_0x568b0c[_0x39daa5(0x9f)](_0x568b0c[_0x39daa5(0x94)](_0x568b0c[_0x39daa5(0x91)]('ranger\x20profile\x20encrypt-auth\x20is\x20no\x20longer\x20supported.\x20Ranger\x20now\x20manages\x0a'+_0x568b0c[_0x39daa5(0x9a)],'\x0a'),_0x568b0c[_0x39daa5(0x9e)]),_0x568b0c[_0x39daa5(0x9c)]),'\x0a')+_0x568b0c['KiaXK']+_0x568b0c['mJjTM']),process['exit'](0x1);}function _0x3a6e(){var _0x911ac2=['\x20\x20https://docs.ranger.net/main/concepts/profiles','pUiNK','852925GvMqFP','fnzFH','4282317ZscVKm','145290wKkZkR','373530QMoVVJ','idPMe','1057DkjSzm','FVrin','5052AmZzzA','WwoRD','fHTlg','2144480brfhTF','16StpoyI','error','10SneEgy','1589276uNMmnp','For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:\x0a','fqDps','To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a'];_0x3a6e=function(){return _0x911ac2;};return _0x3a6e();}
@@ -1 +1 @@
1
- const _0x5982e1=_0x5d86;(function(_0x3ded28,_0x57ff62){const _0x5c2165=_0x5d86,_0x2690d9=_0x3ded28();while(!![]){try{const _0x43e929=parseInt(_0x5c2165(0x1ac))/0x1+-parseInt(_0x5c2165(0x1b9))/0x2+parseInt(_0x5c2165(0x190))/0x3*(parseInt(_0x5c2165(0x1b2))/0x4)+parseInt(_0x5c2165(0x185))/0x5*(parseInt(_0x5c2165(0x193))/0x6)+parseInt(_0x5c2165(0x189))/0x7*(-parseInt(_0x5c2165(0x18b))/0x8)+-parseInt(_0x5c2165(0x1b8))/0x9*(-parseInt(_0x5c2165(0x19f))/0xa)+-parseInt(_0x5c2165(0x19d))/0xb*(parseInt(_0x5c2165(0x196))/0xc);if(_0x43e929===_0x57ff62)break;else _0x2690d9['push'](_0x2690d9['shift']());}catch(_0x3590c9){_0x2690d9['push'](_0x2690d9['shift']());}}}(_0x23b5,0x71ab6));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';function _0x23b5(){const _0x497d79=['✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','IGlyx','GZyJE','178940xGEGJR','BJrGQ','\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','uPoFR','7jOpdYJ','✓\x20Removed\x20project\x20skill:\x20','1618416UgTlhY','parse','GupCK','Nothing\x20to\x20clean\x20up.\x0a','xXCPu','248871zlZSxU','log','stringify','18IaWrhr','cZyQf','win32','2664zVeqBd','HLiKe','PJwLl','isArray','project','mgmKG','✓\x20Removed\x20trailhead\x20marketplace','25003WDzHsx','ABhZg','8310vKrgFe','push','--scope','glKgv','EXxCK','yCMra','filter','✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','bkyYB','IbtYe','error','yiojr','plugin','868920SLlhmn','rwNvj','AKtNn','remove','opencode.json','claude','40idRlpi','ranger','replace','bug-bash','e2e-test-recommender','\x0a✅\x20Cleanup\x20complete!\x0a','1692VjXwfX','1579168GqFiXn','ranger@trailhead','feature-tracker','✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)','platform'];_0x23b5=function(){return _0x497d79;};return _0x23b5();}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=[_0x5982e1(0x1b3),_0x5982e1(0x17f),_0x5982e1(0x1b5),_0x5982e1(0x1b6)],opencodePluginName='@ranger-testing/opencode-plugin';function parseJsonc(_0x28bc2b){const _0x533d57=_0x5982e1,_0x3c0c64=_0x28bc2b['replace'](/\/\*[\s\S]*?\*\//g,''),_0x1c8add=_0x3c0c64['replace'](/^\s*\/\/.*$/gm,''),_0x160135=_0x1c8add[_0x533d57(0x1b4)](/,\s*([}\]])/g,'$1');return JSON[_0x533d57(0x18c)](_0x160135);}async function removeOpencodePluginConfig(_0x3b2196){const _0x1626cd=_0x5982e1,_0x206c87={'ytLSb':'string','BJrGQ':function(_0x2cfd3b,_0x2df40c){return _0x2cfd3b(_0x2df40c);},'GZyJE':function(_0x42ded5,_0x843fa8){return _0x42ded5===_0x843fa8;},'tqTwf':function(_0xf75096,_0x5d12de){return _0xf75096+_0x5d12de;}};if(!existsSync(_0x3b2196))return![];let _0x8ebaa4;try{const _0xcddc5a=await readFile(_0x3b2196,'utf-8');_0x8ebaa4=_0x206c87[_0x1626cd(0x186)](parseJsonc,_0xcddc5a);}catch{return![];}const _0x4d4467=Array[_0x1626cd(0x199)](_0x8ebaa4[_0x1626cd(0x1ab)])?_0x8ebaa4['plugin']:[];if(_0x4d4467['length']===0x0)return![];const _0x493925=_0x4d4467[_0x1626cd(0x1a5)](_0x5daf71=>{if(typeof _0x5daf71!==_0x206c87['ytLSb'])return!![];return _0x5daf71!==opencodePluginName;});if(_0x493925['length']===_0x4d4467['length'])return![];return _0x206c87[_0x1626cd(0x184)](_0x493925['length'],0x0)?delete _0x8ebaa4[_0x1626cd(0x1ab)]:_0x8ebaa4[_0x1626cd(0x1ab)]=_0x493925,await writeFile(_0x3b2196,_0x206c87['tqTwf'](JSON[_0x1626cd(0x192)](_0x8ebaa4,null,0x2),'\x0a')),!![];}function _0x5d86(_0x450acb,_0x52b8be){_0x450acb=_0x450acb-0x17e;const _0x23b594=_0x23b5();let _0x5d86cd=_0x23b594[_0x450acb];return _0x5d86cd;}async function uninstallClaudePlugin(_0x35ec2f){const _0x388a42=_0x5982e1,_0x196236={'yCMra':function(_0x486af0,_0x2d8fbf){return _0x486af0===_0x2d8fbf;},'EtyVL':_0x388a42(0x1ab),'rwNvj':'uninstall','aDNyX':_0x388a42(0x1a1),'yiojr':function(_0x59f9db,_0x13e046,_0x5c64f4,_0x288b1a){return _0x59f9db(_0x13e046,_0x5c64f4,_0x288b1a);},'fFUtM':'claude','flqPg':'ignore','glKgv':function(_0xed8aa9){return _0xed8aa9();},'aEOwZ':function(_0x113b48,_0xf705b){return _0x113b48===_0xf705b;},'ABhZg':_0x388a42(0x195),'AKtNn':'close'};return new Promise(_0x9afa0a=>{const _0x428fce=_0x388a42,_0x561ccc={'HLiKe':function(_0x4a169e,_0x33a8c6){const _0x1c11f7=_0x5d86;return _0x196236[_0x1c11f7(0x1a4)](_0x4a169e,_0x33a8c6);}},_0x463d71=[_0x196236['EtyVL'],_0x196236[_0x428fce(0x1ad)],_0x428fce(0x17e)];_0x35ec2f&&_0x463d71[_0x428fce(0x1a0)](_0x196236['aDNyX'],_0x35ec2f);const _0xc0c9c0=_0x196236[_0x428fce(0x1aa)](spawn,_0x196236['fFUtM'],_0x463d71,{'stdio':[_0x196236['flqPg'],'ignore','ignore'],'cwd':_0x35ec2f?_0x196236[_0x428fce(0x1a2)](getProjectRoot):undefined,'shell':_0x196236['aEOwZ'](process['platform'],_0x196236[_0x428fce(0x19e)])});_0xc0c9c0['on'](_0x196236[_0x428fce(0x1ae)],_0x4765ab=>{const _0x4e8b9a=_0x428fce;_0x9afa0a(_0x561ccc[_0x4e8b9a(0x197)](_0x4765ab,0x0));}),_0xc0c9c0['on'](_0x428fce(0x1a9),()=>{_0x9afa0a(![]);});});}async function removeMarketplace(){const _0x837fa={'mgmKG':'marketplace','ztphZ':'trailhead','Cmumy':function(_0x3b1523,_0x2a011f){return _0x3b1523===_0x2a011f;}};return new Promise(_0x2292d2=>{const _0x5e065=_0x5d86,_0x1f4892=spawn(_0x5e065(0x1b1),[_0x5e065(0x1ab),_0x837fa[_0x5e065(0x19b)],_0x5e065(0x1af),_0x837fa['ztphZ']],{'stdio':['ignore','ignore','ignore'],'shell':_0x837fa['Cmumy'](process[_0x5e065(0x181)],'win32')});_0x1f4892['on']('close',_0x1d9b20=>{_0x2292d2(_0x1d9b20===0x0);}),_0x1f4892['on'](_0x5e065(0x1a9),()=>{_0x2292d2(![]);});});}export async function clean(){const _0xcb46f8=_0x5982e1,_0x561533={'aJHoH':function(_0x2f181b,_0x588ef6){return _0x2f181b(_0x588ef6);},'dGJee':function(_0xe809e0){return _0xe809e0();},'bkyYB':function(_0x45b4bf,_0x2dea5c,_0x5abeb8){return _0x45b4bf(_0x2dea5c,_0x5abeb8);},'xXCPu':function(_0x20a12b){return _0x20a12b();},'bsXCB':function(_0x27c6c6,_0x16af26,_0x364f02){return _0x27c6c6(_0x16af26,_0x364f02);},'uPoFR':function(_0x3ab8a2,_0x278358){return _0x3ab8a2(_0x278358);},'Punek':function(_0x5d4f8b,_0x504184,_0x2cc227){return _0x5d4f8b(_0x504184,_0x2cc227);},'GupCK':_0xcb46f8(0x19a),'fDZBa':'✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','cZyQf':'user','hwqcU':_0xcb46f8(0x182),'IbtYe':function(_0x1c23b1){return _0x1c23b1();},'IGlyx':_0xcb46f8(0x180),'PJwLl':function(_0x48158c){return _0x48158c();},'EXxCK':_0xcb46f8(0x1b7)};console[_0xcb46f8(0x191)](_0xcb46f8(0x187));let _0x140324=![];try{await deleteAllCredentials(),console[_0xcb46f8(0x191)]('✓\x20Removed\x20stored\x20credentials'),_0x140324=!![];}catch{}const _0x55f0c1=getCacheFile();existsSync(_0x55f0c1)&&(await _0x561533['aJHoH'](rm,_0x55f0c1),_0x140324=!![]);const _0x451ba3=_0x561533['dGJee'](getRangerDir);existsSync(_0x451ba3)&&(await _0x561533[_0xcb46f8(0x1a7)](rm,_0x451ba3,{'recursive':!![]}),console['log']('✓\x20Removed\x20.ranger/\x20directory'),_0x140324=!![]);const _0x8fee98=getProjectSkillsDir();for(const _0x16e76b of skillsToRemove){const _0x17114b=join(_0x8fee98,_0x16e76b);_0x561533['aJHoH'](existsSync,_0x17114b)&&(await rm(_0x17114b,{'recursive':!![]}),console[_0xcb46f8(0x191)](_0xcb46f8(0x18a)+_0x16e76b),_0x140324=!![]);}const _0x2898ec=_0x561533[_0xcb46f8(0x18f)](getUserSkillsDir);for(const _0x2158d3 of skillsToRemove){const _0x1d5291=join(_0x2898ec,_0x2158d3);existsSync(_0x1d5291)&&(await rm(_0x1d5291,{'recursive':!![]}),console[_0xcb46f8(0x191)]('✓\x20Removed\x20user\x20skill:\x20'+_0x2158d3),_0x140324=!![]);}const _0x4a3c4e=getOpencodeSkillsDir(_0xcb46f8(0x19a));for(const _0x51374a of skillsToRemove){const _0x5c72a3=_0x561533['bsXCB'](join,_0x4a3c4e,_0x51374a);existsSync(_0x5c72a3)&&(await rm(_0x5c72a3,{'recursive':!![]}),console[_0xcb46f8(0x191)]('✓\x20Removed\x20OpenCode\x20project\x20skill:\x20'+_0x51374a),_0x140324=!![]);}const _0x45d02f=_0x561533[_0xcb46f8(0x188)](getOpencodeSkillsDir,'user');for(const _0x57a6eb of skillsToRemove){const _0x4a0161=_0x561533['Punek'](join,_0x45d02f,_0x57a6eb);existsSync(_0x4a0161)&&(await rm(_0x4a0161,{'recursive':!![]}),console[_0xcb46f8(0x191)]('✓\x20Removed\x20OpenCode\x20user\x20skill:\x20'+_0x57a6eb),_0x140324=!![]);}const _0x28a343=join(_0x561533[_0xcb46f8(0x188)](getOpencodeConfigDir,_0x561533[_0xcb46f8(0x18d)]),_0xcb46f8(0x1b0));await removeOpencodePluginConfig(_0x28a343)&&(console['log'](_0x561533['fDZBa']),_0x140324=!![]);const _0x4034c4=join(getOpencodeConfigDir(_0x561533[_0xcb46f8(0x194)]),_0xcb46f8(0x1b0));await removeOpencodePluginConfig(_0x4034c4)&&(console[_0xcb46f8(0x191)](_0x561533['hwqcU']),_0x140324=!![]);const _0xb6d9fa=await _0x561533[_0xcb46f8(0x1a8)](uninstallClaudePlugin);_0xb6d9fa&&(console[_0xcb46f8(0x191)](_0xcb46f8(0x1a6)),_0x140324=!![]);const _0x530a72=await uninstallClaudePlugin('project');_0x530a72&&(console['log'](_0x561533[_0xcb46f8(0x183)]),_0x140324=!![]);const _0x38998a=await _0x561533[_0xcb46f8(0x198)](removeMarketplace);_0x38998a&&(console['log'](_0xcb46f8(0x19c)),_0x140324=!![]),_0x140324?console['log'](_0x561533[_0xcb46f8(0x1a3)]):console['log'](_0xcb46f8(0x18e));}
1
+ const _0x512cda=_0x4386;(function(_0xd69c0c,_0x7b21a){const _0x5a6607=_0x4386,_0x34e8a9=_0xd69c0c();while(!![]){try{const _0x48d4f6=parseInt(_0x5a6607(0x12c))/0x1*(parseInt(_0x5a6607(0x128))/0x2)+-parseInt(_0x5a6607(0x122))/0x3*(-parseInt(_0x5a6607(0xfc))/0x4)+parseInt(_0x5a6607(0x11a))/0x5+-parseInt(_0x5a6607(0x115))/0x6+parseInt(_0x5a6607(0x130))/0x7+parseInt(_0x5a6607(0x12a))/0x8*(-parseInt(_0x5a6607(0x10b))/0x9)+-parseInt(_0x5a6607(0x11c))/0xa;if(_0x48d4f6===_0x7b21a)break;else _0x34e8a9['push'](_0x34e8a9['shift']());}catch(_0x427aa2){_0x34e8a9['push'](_0x34e8a9['shift']());}}}(_0x3493,0xe09ea));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=[_0x512cda(0x132),'feature-tracker',_0x512cda(0x107),_0x512cda(0x119)],opencodePluginName=_0x512cda(0x111);function parseJsonc(_0x544d49){const _0x399deb=_0x512cda,_0x3c800e=_0x544d49['replace'](/\/\*[\s\S]*?\*\//g,''),_0x38ea9=_0x3c800e[_0x399deb(0xfe)](/^\s*\/\/.*$/gm,''),_0x18efa6=_0x38ea9['replace'](/,\s*([}\]])/g,'$1');return JSON[_0x399deb(0x121)](_0x18efa6);}async function removeOpencodePluginConfig(_0x23927d){const _0x55b8c5=_0x512cda,_0x3b6713={'HsOYz':_0x55b8c5(0xff),'FJQDr':function(_0x336a00,_0x40f861){return _0x336a00===_0x40f861;},'wQyDl':function(_0x1c17b8,_0x143478){return _0x1c17b8===_0x143478;},'utMRP':function(_0x2c1378,_0x5a199e,_0x1c3776){return _0x2c1378(_0x5a199e,_0x1c3776);},'SymzO':function(_0x5936da,_0x20f502){return _0x5936da+_0x20f502;}};if(!existsSync(_0x23927d))return![];let _0x1dd5be;try{const _0x4cb98d=await readFile(_0x23927d,_0x3b6713['HsOYz']);_0x1dd5be=parseJsonc(_0x4cb98d);}catch{return![];}const _0x3c81c=Array[_0x55b8c5(0x10d)](_0x1dd5be['plugin'])?_0x1dd5be['plugin']:[];if(_0x3b6713['FJQDr'](_0x3c81c[_0x55b8c5(0x116)],0x0))return![];const _0x3d9ba2=_0x3c81c['filter'](_0x87f286=>{const _0xc9c21d=_0x55b8c5;if(typeof _0x87f286!==_0xc9c21d(0x120))return!![];return _0x87f286!==opencodePluginName;});if(_0x3b6713['wQyDl'](_0x3d9ba2['length'],_0x3c81c[_0x55b8c5(0x116)]))return![];return _0x3b6713[_0x55b8c5(0xf9)](_0x3d9ba2['length'],0x0)?delete _0x1dd5be[_0x55b8c5(0x125)]:_0x1dd5be[_0x55b8c5(0x125)]=_0x3d9ba2,await _0x3b6713['utMRP'](writeFile,_0x23927d,_0x3b6713['SymzO'](JSON[_0x55b8c5(0x104)](_0x1dd5be,null,0x2),'\x0a')),!![];}async function uninstallClaudePlugin(_0x25179f){const _0x77d47a=_0x512cda,_0x54d7e9={'ORHIE':function(_0x89949c,_0x38b0f5){return _0x89949c===_0x38b0f5;},'Fmdvg':_0x77d47a(0x114),'PIPZx':_0x77d47a(0xfd),'DePlO':'--scope','FwinV':'ignore','hWDAE':function(_0x13ec03){return _0x13ec03();},'UFXQd':'win32'};return new Promise(_0x2c3843=>{const _0x490a6c=_0x77d47a,_0x52ba28={'pywYt':function(_0xf779b9,_0x40fdb1){return _0xf779b9(_0x40fdb1);},'lQUOo':function(_0x5104ef,_0x380497){return _0x54d7e9['ORHIE'](_0x5104ef,_0x380497);}},_0x32d68b=['plugin',_0x54d7e9['Fmdvg'],_0x54d7e9[_0x490a6c(0x117)]];_0x25179f&&_0x32d68b['push'](_0x54d7e9[_0x490a6c(0x12f)],_0x25179f);const _0x48a875=spawn('claude',_0x32d68b,{'stdio':[_0x54d7e9[_0x490a6c(0x134)],_0x54d7e9[_0x490a6c(0x134)],_0x54d7e9['FwinV']],'cwd':_0x25179f?_0x54d7e9[_0x490a6c(0x103)](getProjectRoot):undefined,'shell':process[_0x490a6c(0x131)]===_0x54d7e9['UFXQd']});_0x48a875['on'](_0x490a6c(0x113),_0x50276b=>{const _0x59324a=_0x490a6c;_0x52ba28['pywYt'](_0x2c3843,_0x52ba28[_0x59324a(0x11d)](_0x50276b,0x0));}),_0x48a875['on']('error',()=>{_0x2c3843(![]);});});}async function removeMarketplace(){const _0x345d5e=_0x512cda,_0x507057={'IJoYz':function(_0x4f461c,_0x43d90b){return _0x4f461c(_0x43d90b);},'diHyo':function(_0x23e87d,_0x263558){return _0x23e87d(_0x263558);},'FovqK':function(_0x5a55e4,_0x16d107,_0x3df61b,_0x2460f8){return _0x5a55e4(_0x16d107,_0x3df61b,_0x2460f8);},'YZhfP':'claude','xORzo':'marketplace','WDLgp':'ignore','rWzhc':function(_0x506690,_0x496e13){return _0x506690===_0x496e13;},'sUwve':_0x345d5e(0x113)};return new Promise(_0x59ab40=>{const _0xacb948=_0x345d5e,_0x8959bb={'lwUWv':function(_0x365a79,_0x87b76a){const _0x19f0d6=_0x4386;return _0x507057[_0x19f0d6(0x10e)](_0x365a79,_0x87b76a);},'NhOYx':function(_0x52e7e3,_0x1ff372){return _0x52e7e3===_0x1ff372;}},_0x370274=_0x507057['FovqK'](spawn,_0x507057[_0xacb948(0xf7)],[_0xacb948(0x125),_0x507057['xORzo'],'remove',_0xacb948(0x12d)],{'stdio':[_0x507057[_0xacb948(0x10c)],_0x507057[_0xacb948(0x10c)],_0xacb948(0x127)],'shell':_0x507057[_0xacb948(0x11e)](process['platform'],_0xacb948(0x136))});_0x370274['on'](_0x507057['sUwve'],_0x2237ad=>{const _0x5d3f72=_0xacb948;_0x8959bb[_0x5d3f72(0x108)](_0x59ab40,_0x8959bb[_0x5d3f72(0x118)](_0x2237ad,0x0));}),_0x370274['on'](_0xacb948(0x106),()=>{const _0x18d32c=_0xacb948;_0x507057[_0x18d32c(0x10a)](_0x59ab40,![]);});});}function _0x3493(){const _0x2ede64=['parse','12DeaHkS','log','✓\x20Uninstalled\x20Claude\x20plugin\x20(user\x20scope)','plugin','QkuVE','ignore','96ojqjNE','Nothing\x20to\x20clean\x20up.\x0a','151224gpilFf','HtaHC','15897Askpvz','trailhead','✓\x20Removed\x20OpenCode\x20project\x20skill:\x20','DePlO','8969422gexFht','platform','ranger','QMYLx','FwinV','✓\x20Removed\x20.ranger/\x20directory','win32','YZhfP','✓\x20Removed\x20stored\x20credentials','wQyDl','qAohY','JtRMF','515836zaSCVc','ranger@trailhead','replace','utf-8','✓\x20Removed\x20trailhead\x20marketplace','OqRuz','opencode.json','hWDAE','stringify','fjESZ','error','bug-bash','lwUWv','cXqek','IJoYz','225kefiAO','WDLgp','isArray','diHyo','✓\x20Removed\x20OpenCode\x20plugin\x20(user\x20config)','hQbIU','@ranger-testing/opencode-plugin','✓\x20Removed\x20OpenCode\x20plugin\x20(project\x20config)','close','uninstall','3354426ViBGTq','length','PIPZx','NhOYx','e2e-test-recommender','1375260wiZikA','project','8836020MIyMoD','lQUOo','rWzhc','nXjKD','string'];_0x3493=function(){return _0x2ede64;};return _0x3493();}function _0x4386(_0x35657f,_0x36eff0){_0x35657f=_0x35657f-0xf7;const _0x3493ef=_0x3493();let _0x4386fa=_0x3493ef[_0x35657f];return _0x4386fa;}export async function clean(){const _0x5280af=_0x512cda,_0x16140c={'fjESZ':'\x0a🧹\x20Cleaning\x20up\x20Ranger\x20artifacts...\x0a','WOhkD':function(_0x42716f){return _0x42716f();},'QMYLx':function(_0x431e27){return _0x431e27();},'cXqek':function(_0x4495dd,_0x5a4767){return _0x4495dd(_0x5a4767);},'vApNT':function(_0x412b68,_0x2d231b){return _0x412b68(_0x2d231b);},'OqRuz':function(_0x2abb51,_0x173ed8,_0x132533){return _0x2abb51(_0x173ed8,_0x132533);},'QkuVE':_0x5280af(0x135),'RIOIR':function(_0x4328b8){return _0x4328b8();},'hQbIU':function(_0x152d19,_0x229057,_0x2ca4b3){return _0x152d19(_0x229057,_0x2ca4b3);},'huTVM':function(_0x5d31ee,_0x22f5b2){return _0x5d31ee(_0x22f5b2);},'kcLFY':function(_0x595384,_0x919af,_0x3a56a8){return _0x595384(_0x919af,_0x3a56a8);},'JtRMF':'project','FnSaU':function(_0x4adf1e,_0x46198f){return _0x4adf1e(_0x46198f);},'ruGWS':'user','qAohY':function(_0xcd7629,_0x128c76,_0x59dae5){return _0xcd7629(_0x128c76,_0x59dae5);},'PULan':function(_0x451a22,_0x40100c,_0x22799c){return _0x451a22(_0x40100c,_0x22799c);},'nXjKD':function(_0xc060b3,_0x136fb2){return _0xc060b3(_0x136fb2);},'SfcUN':function(_0x2774f2,_0x51b151){return _0x2774f2(_0x51b151);},'HtaHC':function(_0x306a71){return _0x306a71();},'cwLeo':_0x5280af(0x124)};console['log'](_0x16140c[_0x5280af(0x105)]);let _0xdcb922=![];try{await _0x16140c['WOhkD'](deleteAllCredentials),console['log'](_0x5280af(0xf8)),_0xdcb922=!![];}catch{}const _0x43ef61=_0x16140c['QMYLx'](getCacheFile);existsSync(_0x43ef61)&&(await _0x16140c[_0x5280af(0x109)](rm,_0x43ef61),_0xdcb922=!![]);const _0xf690d1=_0x16140c[_0x5280af(0x133)](getRangerDir);_0x16140c['vApNT'](existsSync,_0xf690d1)&&(await _0x16140c[_0x5280af(0x101)](rm,_0xf690d1,{'recursive':!![]}),console['log'](_0x16140c[_0x5280af(0x126)]),_0xdcb922=!![]);const _0x315bc8=_0x16140c['RIOIR'](getProjectSkillsDir);for(const _0x385604 of skillsToRemove){const _0x369104=_0x16140c[_0x5280af(0x110)](join,_0x315bc8,_0x385604);_0x16140c['huTVM'](existsSync,_0x369104)&&(await rm(_0x369104,{'recursive':!![]}),console[_0x5280af(0x123)]('✓\x20Removed\x20project\x20skill:\x20'+_0x385604),_0xdcb922=!![]);}const _0x457f5f=_0x16140c['WOhkD'](getUserSkillsDir);for(const _0x1b086a of skillsToRemove){const _0x1dbcde=join(_0x457f5f,_0x1b086a);existsSync(_0x1dbcde)&&(await _0x16140c['kcLFY'](rm,_0x1dbcde,{'recursive':!![]}),console[_0x5280af(0x123)]('✓\x20Removed\x20user\x20skill:\x20'+_0x1b086a),_0xdcb922=!![]);}const _0x165cb0=_0x16140c['vApNT'](getOpencodeSkillsDir,_0x16140c['JtRMF']);for(const _0x2d4f00 of skillsToRemove){const _0x53a0a1=join(_0x165cb0,_0x2d4f00);existsSync(_0x53a0a1)&&(await rm(_0x53a0a1,{'recursive':!![]}),console[_0x5280af(0x123)](_0x5280af(0x12e)+_0x2d4f00),_0xdcb922=!![]);}const _0x5ea7b2=_0x16140c['FnSaU'](getOpencodeSkillsDir,_0x16140c['ruGWS']);for(const _0x42afc1 of skillsToRemove){const _0x38e1b2=_0x16140c['qAohY'](join,_0x5ea7b2,_0x42afc1);existsSync(_0x38e1b2)&&(await _0x16140c['hQbIU'](rm,_0x38e1b2,{'recursive':!![]}),console[_0x5280af(0x123)]('✓\x20Removed\x20OpenCode\x20user\x20skill:\x20'+_0x42afc1),_0xdcb922=!![]);}const _0x2846d1=_0x16140c['PULan'](join,_0x16140c[_0x5280af(0x11f)](getOpencodeConfigDir,_0x16140c[_0x5280af(0xfb)]),_0x5280af(0x102));await _0x16140c['SfcUN'](removeOpencodePluginConfig,_0x2846d1)&&(console[_0x5280af(0x123)](_0x5280af(0x112)),_0xdcb922=!![]);const _0x4498d5=_0x16140c[_0x5280af(0xfa)](join,getOpencodeConfigDir('user'),'opencode.json');await removeOpencodePluginConfig(_0x4498d5)&&(console[_0x5280af(0x123)](_0x5280af(0x10f)),_0xdcb922=!![]);const _0x3c8750=await _0x16140c[_0x5280af(0x12b)](uninstallClaudePlugin);_0x3c8750&&(console['log'](_0x16140c['cwLeo']),_0xdcb922=!![]);const _0x3e0aa2=await _0x16140c[_0x5280af(0x11f)](uninstallClaudePlugin,_0x5280af(0x11b));_0x3e0aa2&&(console['log']('✓\x20Uninstalled\x20Claude\x20plugin\x20(project\x20scope)'),_0xdcb922=!![]);const _0x4c2045=await _0x16140c['WOhkD'](removeMarketplace);_0x4c2045&&(console[_0x5280af(0x123)](_0x5280af(0x100)),_0xdcb922=!![]),_0xdcb922?console[_0x5280af(0x123)]('\x0a✅\x20Cleanup\x20complete!\x0a'):console[_0x5280af(0x123)](_0x5280af(0x129));}
@@ -1 +1 @@
1
- (function(_0x400840,_0x15d00f){const _0x596b7e=_0x52c9,_0x3c8fba=_0x400840();while(!![]){try{const _0xb3f85b=parseInt(_0x596b7e(0x18e))/0x1*(-parseInt(_0x596b7e(0x173))/0x2)+-parseInt(_0x596b7e(0x15d))/0x3+-parseInt(_0x596b7e(0x15f))/0x4*(parseInt(_0x596b7e(0x169))/0x5)+-parseInt(_0x596b7e(0x171))/0x6*(parseInt(_0x596b7e(0x186))/0x7)+parseInt(_0x596b7e(0x184))/0x8*(-parseInt(_0x596b7e(0x181))/0x9)+parseInt(_0x596b7e(0x180))/0xa+parseInt(_0x596b7e(0x16f))/0xb;if(_0xb3f85b===_0x15d00f)break;else _0x3c8fba['push'](_0x3c8fba['shift']());}catch(_0x3a5db2){_0x3c8fba['push'](_0x3c8fba['shift']());}}}(_0x476b,0xeeab4));import{existsSync}from'fs';import{loadSettings,getNestedValue,deleteNestedValue,formatSettings,getSettingsPath,getEnvDir}from'./utils/settings.js';import{fetchCloudProfile}from'./utils/cloudProfile.js';function _0x476b(){const _0x5acb1e=['endsWith','Key\x20\x22','AGsXh','XTety','length','49430VYtqeC','675lPNlbo','log','\x20for\x20\x22','73456EnocTh','ybdmX','2158135vvtHdi','tDtnv','false','stringify','true','kind','Removed\x20','test','931943WCibQA','YfDFP','IaJIH','949710tzMUTI','tGDUo','35384YFrqHq','alsoExistsElsewhere','local','cloud','No\x20configuration\x20set\x20for\x20\x22','object','startsWith','trim',':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22','\x20=\x20','885UqVIcd','isSafeInteger','xjbKo','Invalid\x20value\x20for\x20','\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20','sCHbt','59405115mljKbY','XLgdc','18aSJTtw','WKlAu','2hebZor','Godrs','\x22\x20and\x20cannot\x20be\x20unset;\x20the\x20legacy\x20tree\x20is\x20read-only\x20under\x20cloud\x20profiles.','\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20','(not\x20set)','RLUOH','settings','keys'];_0x476b=function(){return _0x5acb1e;};return _0x476b();}import{mergeCloudProfileSettings,readProfileOverrides,resetProfileOverrides,setProfileOverride,unsetProfileOverride}from'./utils/projectsConfig.js';const BOOLEAN_KEYS=['headless','allowInsecureLocalhost'];function parseLocalValue(_0x4822f9,_0x43a41b){const _0x19f986=_0x52c9,_0x47b42f={'XTety':function(_0x176d92,_0x53e1f){return _0x176d92===_0x53e1f;}};if(BOOLEAN_KEYS['includes'](_0x4822f9)){if(_0x43a41b===_0x19f986(0x18a))return!![];if(_0x47b42f[_0x19f986(0x17e)](_0x43a41b,_0x19f986(0x188)))return![];throw new Error(_0x19f986(0x16c)+_0x4822f9+_0x19f986(0x167));}return _0x43a41b;}function parseOverrideValue(_0x3f7953){const _0x30681b=_0x52c9,_0x7a5f90={'VwwHv':_0x30681b(0x18a),'Rchkm':function(_0x3526bd,_0x5f3820){return _0x3526bd===_0x5f3820;},'IaJIH':'undefined','OlkEs':function(_0x28b782,_0x177bb0){return _0x28b782(_0x177bb0);}};if(_0x3f7953===_0x7a5f90['VwwHv'])return!![];if(_0x3f7953===_0x30681b(0x188))return![];if(_0x3f7953==='null')return null;if(_0x7a5f90['Rchkm'](_0x3f7953,_0x7a5f90[_0x30681b(0x15c)]))return undefined;if(/^-?\d+$/[_0x30681b(0x18d)](_0x3f7953)){const _0x38f962=_0x7a5f90['OlkEs'](Number,_0x3f7953);if(Number[_0x30681b(0x16a)](_0x38f962))return _0x38f962;}if(/^-?\d+\.\d+$/[_0x30681b(0x18d)](_0x3f7953)){const _0xdb094b=Number(_0x3f7953);if(!Number['isNaN'](_0xdb094b))return _0xdb094b;}const _0x3fa14d=_0x3f7953[_0x30681b(0x166)]();if(_0x3fa14d['startsWith']('{')&&_0x3fa14d[_0x30681b(0x17b)]('}')||_0x3fa14d[_0x30681b(0x165)]('[')&&_0x3fa14d[_0x30681b(0x17b)](']'))try{return JSON['parse'](_0x3fa14d);}catch{}return _0x3f7953;}async function resolveProfileTarget(_0x5c2322){const _0x3776a9=_0x52c9,_0x232dda={'ZAgch':function(_0x2346d3,_0x3f2e44){return _0x2346d3(_0x3f2e44);},'DUHez':_0x3776a9(0x161)},_0x573119=existsSync(_0x232dda['ZAgch'](getEnvDir,_0x5c2322));let _0x5d3e04=![];try{const _0x323652=await fetchCloudProfile(_0x5c2322);_0x5d3e04=Boolean(_0x323652);}catch{}if(_0x5d3e04)return{'kind':'cloud','alsoExistsElsewhere':_0x573119};if(_0x573119)return{'kind':_0x232dda['DUHez'],'alsoExistsElsewhere':![]};throw new Error('Profile\x20\x22'+_0x5c2322+_0x3776a9(0x16d)+_0x5c2322);}function printDualExistsHint(_0x641bb5){const _0x361145=_0x52c9;console[_0x361145(0x182)]('\x20\x20Note:\x20\x22'+_0x641bb5+'\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.');}function _0x52c9(_0x4b2d09,_0x358f5a){_0x4b2d09=_0x4b2d09-0x15b;const _0x476b1f=_0x476b();let _0x52c9a5=_0x476b1f[_0x4b2d09];return _0x52c9a5;}function getProjectPath(){return process['cwd']();}async function loadEffectiveCloudSettings(_0x16e14f){const _0x5eba93=_0x52c9,_0x4e39d8={'RLUOH':function(_0x4066a9,_0x19f724){return _0x4066a9??_0x19f724;}},_0x160e55=await fetchCloudProfile(_0x16e14f),_0x3617a7=readProfileOverrides(getProjectPath(),_0x16e14f);return mergeCloudProfileSettings(_0x160e55?.[_0x5eba93(0x179)]??{},_0x4e39d8[_0x5eba93(0x178)](_0x3617a7,undefined));}export async function configSet(_0x127fd5,_0x5e7147,_0x4eff8d){const _0x356159=_0x52c9,_0xcf3b1c={'bZwMm':'cloud','wkqgE':function(_0x3dbf7a,_0x205048){return _0x3dbf7a(_0x205048);},'sCHbt':function(_0x4f0d81,_0x5107e0){return _0x4f0d81(_0x5107e0);},'tDtnv':function(_0x479dd1,_0x40de95,_0x375de2,_0x5ba577,_0x187efa){return _0x479dd1(_0x40de95,_0x375de2,_0x5ba577,_0x187efa);},'Iozkb':function(_0x2a398d){return _0x2a398d();}},_0x38d123=await resolveProfileTarget(_0x127fd5);if(_0x38d123[_0x356159(0x18b)]===_0xcf3b1c['bZwMm']){if(_0x38d123['alsoExistsElsewhere'])_0xcf3b1c['wkqgE'](printDualExistsHint,_0x127fd5);const _0x2ef1ba=_0xcf3b1c[_0x356159(0x16e)](parseOverrideValue,_0x4eff8d);_0xcf3b1c[_0x356159(0x187)](setProfileOverride,getProjectPath(),_0x127fd5,_0x5e7147,_0x2ef1ba),console['log']('Set\x20'+_0x5e7147+'\x20=\x20'+JSON[_0x356159(0x189)](_0x2ef1ba)+'\x20for\x20\x22'+_0x127fd5+'\x22');return;}const _0x2a1674=parseLocalValue(_0x5e7147,_0x4eff8d);setProfileOverride(_0xcf3b1c['Iozkb'](getProjectPath),_0x127fd5,_0x5e7147,_0x2a1674),console[_0x356159(0x182)]('Set\x20'+_0x5e7147+_0x356159(0x168)+_0x2a1674+_0x356159(0x183)+_0x127fd5+'\x22');}export async function configGet(_0x5f0f6b,_0x2134f0){const _0x52d7c6=_0x52c9,_0xc04a54={'TYXQQ':function(_0x53b500,_0x29bf00){return _0x53b500===_0x29bf00;},'hcANZ':'cloud','MBXNj':function(_0x421f76,_0x5b2719){return _0x421f76(_0x5b2719);},'Godrs':function(_0x5ea786,_0x55d2c8,_0x4bda94){return _0x5ea786(_0x55d2c8,_0x4bda94);},'kfQOn':function(_0x25a4f4,_0x217bb3){return _0x25a4f4===_0x217bb3;},'YfDFP':function(_0x295245,_0x340ae6){return _0x295245(_0x340ae6);},'AGsXh':_0x52d7c6(0x164)},_0x25e958=await resolveProfileTarget(_0x5f0f6b);if(_0xc04a54['TYXQQ'](_0x25e958['kind'],_0xc04a54['hcANZ'])){const _0x3aa047=await _0xc04a54['MBXNj'](loadEffectiveCloudSettings,_0x5f0f6b),_0x169789=_0xc04a54[_0x52d7c6(0x174)](getNestedValue,_0x3aa047,_0x2134f0);if(_0x169789===undefined)console['log'](_0x52d7c6(0x177));else _0xc04a54['kfQOn'](typeof _0x169789,_0x52d7c6(0x164))?console[_0x52d7c6(0x182)](JSON[_0x52d7c6(0x189)](_0x169789,null,0x2)):console[_0x52d7c6(0x182)](_0x169789);return;}const _0x53c9e2=await _0xc04a54[_0x52d7c6(0x15b)](loadSettings,_0x5f0f6b),_0x2cf399=_0xc04a54['Godrs'](getNestedValue,_0x53c9e2,_0x2134f0);if(_0xc04a54['kfQOn'](_0x2cf399,undefined))console[_0x52d7c6(0x182)](_0x52d7c6(0x177));else typeof _0x2cf399===_0xc04a54[_0x52d7c6(0x17d)]?console['log'](JSON[_0x52d7c6(0x189)](_0x2cf399,null,0x2)):console['log'](_0x2cf399);}export async function configList(_0x3f823b){const _0x4e9dc6=_0x52c9,_0x265fa2={'WKlAu':'cloud','XLgdc':function(_0x16076c,_0xefdbbb){return _0x16076c(_0xefdbbb);},'ZbAPo':function(_0x5d4139,_0x562e8a){return _0x5d4139===_0x562e8a;}},_0x283cbf=await resolveProfileTarget(_0x3f823b);if(_0x283cbf['kind']===_0x265fa2[_0x4e9dc6(0x172)]){const _0x35c655=await _0x265fa2['XLgdc'](loadEffectiveCloudSettings,_0x3f823b);if(!_0x35c655||_0x265fa2['ZbAPo'](Object[_0x4e9dc6(0x17a)](_0x35c655)[_0x4e9dc6(0x17f)],0x0)){console[_0x4e9dc6(0x182)](_0x4e9dc6(0x163)+_0x3f823b+'\x22');return;}console[_0x4e9dc6(0x182)](JSON[_0x4e9dc6(0x189)](_0x35c655,null,0x2));return;}const _0x265583=_0x265fa2[_0x4e9dc6(0x170)](getSettingsPath,_0x3f823b);if(!_0x265fa2['XLgdc'](existsSync,_0x265583)){console[_0x4e9dc6(0x182)]('No\x20configuration\x20set\x20for\x20\x22'+_0x3f823b+'\x22');return;}const _0x5385bb=await loadSettings(_0x3f823b),_0x29ef3c=_0x265fa2[_0x4e9dc6(0x170)](formatSettings,_0x5385bb);!_0x29ef3c?console[_0x4e9dc6(0x182)]('No\x20configuration\x20set\x20for\x20\x22'+_0x3f823b+'\x22'):console['log'](_0x29ef3c);}export async function configUnset(_0x4f5744,_0x84d1f){const _0x5f011c=_0x52c9,_0x1681d9={'ybdmX':function(_0x43c743){return _0x43c743();},'JmDGJ':function(_0x1dc6e2){return _0x1dc6e2();}},_0x17037e=await resolveProfileTarget(_0x4f5744);if(_0x17037e[_0x5f011c(0x18b)]===_0x5f011c(0x162)){if(_0x17037e[_0x5f011c(0x160)])printDualExistsHint(_0x4f5744);const _0x4e47f0=unsetProfileOverride(_0x1681d9[_0x5f011c(0x185)](getProjectPath),_0x4f5744,_0x84d1f);_0x4e47f0?console[_0x5f011c(0x182)](_0x5f011c(0x18c)+_0x84d1f+_0x5f011c(0x183)+_0x4f5744+'\x22'):console[_0x5f011c(0x182)](_0x5f011c(0x17c)+_0x84d1f+'\x22\x20not\x20found');return;}const _0x1a478b=unsetProfileOverride(_0x1681d9['JmDGJ'](getProjectPath),_0x4f5744,_0x84d1f);if(_0x1a478b){console[_0x5f011c(0x182)]('Removed\x20'+_0x84d1f);return;}const _0x387e2d=await loadSettings(_0x4f5744),_0x4046c4=deleteNestedValue(_0x387e2d,_0x84d1f);_0x4046c4?console['log'](_0x5f011c(0x17c)+_0x84d1f+'\x22\x20lives\x20in\x20the\x20legacy\x20settings\x20file\x20for\x20\x22'+_0x4f5744+_0x5f011c(0x175)):console['log'](_0x5f011c(0x17c)+_0x84d1f+'\x22\x20not\x20found');}export async function configReset(_0x54fa65){const _0x1a78d0=_0x52c9,_0x5775f5={'xjbKo':function(_0xbcc16a,_0x105953){return _0xbcc16a(_0x105953);},'tGDUo':function(_0x4f8bf5,_0x4d9dc5){return _0x4f8bf5===_0x4d9dc5;},'KFuIP':_0x1a78d0(0x162),'uVnYr':function(_0x3dd83a){return _0x3dd83a();}},_0x38951b=await _0x5775f5[_0x1a78d0(0x16b)](resolveProfileTarget,_0x54fa65);if(_0x5775f5[_0x1a78d0(0x15e)](_0x38951b['kind'],_0x5775f5['KFuIP'])){resetProfileOverrides(_0x5775f5['uVnYr'](getProjectPath),_0x54fa65),console['log']('Cleared\x20local\x20overrides\x20for\x20\x22'+_0x54fa65+'\x22');return;}console['log']('\x22'+_0x54fa65+_0x1a78d0(0x176)+_0x54fa65+'\x20<key>\x22\x20to\x20remove\x20individual\x20values.');}
1
+ function _0x58c5(_0x43cc70,_0x201183){_0x43cc70=_0x43cc70-0x1e1;const _0x3f3c7f=_0x3f3c();let _0x58c56a=_0x3f3c7f[_0x43cc70];return _0x58c56a;}(function(_0x2c53d3,_0x32e9ec){const _0x5a8f49=_0x58c5,_0xbe9412=_0x2c53d3();while(!![]){try{const _0x10fd83=-parseInt(_0x5a8f49(0x20f))/0x1*(-parseInt(_0x5a8f49(0x1f9))/0x2)+-parseInt(_0x5a8f49(0x1f8))/0x3+-parseInt(_0x5a8f49(0x1fb))/0x4*(-parseInt(_0x5a8f49(0x1f5))/0x5)+-parseInt(_0x5a8f49(0x201))/0x6*(-parseInt(_0x5a8f49(0x204))/0x7)+parseInt(_0x5a8f49(0x1ff))/0x8+-parseInt(_0x5a8f49(0x202))/0x9+parseInt(_0x5a8f49(0x1f1))/0xa;if(_0x10fd83===_0x32e9ec)break;else _0xbe9412['push'](_0xbe9412['shift']());}catch(_0x319a5b){_0xbe9412['push'](_0xbe9412['shift']());}}}(_0x3f3c,0xebd61));function _0x3f3c(){const _0x19b0f5=['settings','endsWith','ryPus','OeczW','cwd','\x20for\x20\x22','false','jrbhq','Invalid\x20value\x20for\x20','fOoMH','kind','cJoPB','Key\x20\x22','lWFQb','4058280bEzatq','yHbAY','GcUmc','EqqjZ','707835mIMmzu','log','isNaN','4504122WjHaOt','412Ecbzpu','qDbrd','32GHqQLh','\x22\x20not\x20found','null','klISw','2355784kJjCLF','stringify','6hCXfVF','13538277jVWDeI','startsWith','9418283NeDBzC','\x22\x20also\x20exists\x20as\x20a\x20local\x20profile;\x20editing\x20the\x20cloud\x20profile.','test','osrVJ','undefined','local','keys','parse','No\x20configuration\x20set\x20for\x20\x22','Set\x20','cloud','3851dzvowg','XJOLo','EvBsX','\x20=\x20','Cleared\x20local\x20overrides\x20for\x20\x22','kokmX','hDqTj','\x22\x20and\x20cannot\x20be\x20unset;\x20the\x20legacy\x20tree\x20is\x20read-only\x20under\x20cloud\x20profiles.'];_0x3f3c=function(){return _0x19b0f5;};return _0x3f3c();}import{existsSync}from'fs';import{loadSettings,getNestedValue,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=['headless','allowInsecureLocalhost'];function parseLocalValue(_0x35adb6,_0x125976){const _0x323f38=_0x58c5,_0x50d25a={'osrVJ':function(_0xa0fdf9,_0x1b0d46){return _0xa0fdf9===_0x1b0d46;},'vXBzZ':'true','RSMlf':function(_0x7c1002,_0x3a12a1){return _0x7c1002===_0x3a12a1;},'qDbrd':'false'};if(BOOLEAN_KEYS['includes'](_0x35adb6)){if(_0x50d25a[_0x323f38(0x207)](_0x125976,_0x50d25a['vXBzZ']))return!![];if(_0x50d25a['RSMlf'](_0x125976,_0x50d25a[_0x323f38(0x1fa)]))return![];throw new Error(_0x323f38(0x1eb)+_0x35adb6+':\x20expected\x20\x22true\x22\x20or\x20\x22false\x22');}return _0x125976;}function parseOverrideValue(_0x2dc205){const _0x34f4d3=_0x58c5,_0x58dfcd={'IjIBp':function(_0x29b457,_0x379109){return _0x29b457===_0x379109;},'UjSAB':'true','nIPYP':function(_0x47b1a7,_0x2edba6){return _0x47b1a7(_0x2edba6);}};if(_0x58dfcd['IjIBp'](_0x2dc205,_0x58dfcd['UjSAB']))return!![];if(_0x2dc205===_0x34f4d3(0x1e9))return![];if(_0x2dc205===_0x34f4d3(0x1fd))return null;if(_0x2dc205===_0x34f4d3(0x208))return undefined;if(/^-?\d+$/[_0x34f4d3(0x206)](_0x2dc205)){const _0x2346ba=_0x58dfcd['nIPYP'](Number,_0x2dc205);if(Number['isSafeInteger'](_0x2346ba))return _0x2346ba;}if(/^-?\d+\.\d+$/['test'](_0x2dc205)){const _0x314f0b=Number(_0x2dc205);if(!Number[_0x34f4d3(0x1f7)](_0x314f0b))return _0x314f0b;}const _0x17fcf0=_0x2dc205['trim']();if(_0x17fcf0[_0x34f4d3(0x203)]('{')&&_0x17fcf0[_0x34f4d3(0x1e4)]('}')||_0x17fcf0[_0x34f4d3(0x203)]('[')&&_0x17fcf0['endsWith'](']'))try{return JSON[_0x34f4d3(0x20b)](_0x17fcf0);}catch{}return _0x2dc205;}async function resolveProfileTarget(_0x3a348d){const _0x3e91b3=_0x58c5,_0x2cf59c={'ryPus':function(_0x5c1e0a,_0x1fb239){return _0x5c1e0a(_0x1fb239);},'yHbAY':_0x3e91b3(0x209)},_0x4caed4=existsSync(getEnvDir(_0x3a348d));let _0x149f28=![];try{const _0x1b0388=await _0x2cf59c[_0x3e91b3(0x1e5)](fetchCloudProfile,_0x3a348d);_0x149f28=_0x2cf59c[_0x3e91b3(0x1e5)](Boolean,_0x1b0388);}catch{}if(_0x149f28)return{'kind':_0x3e91b3(0x20e),'alsoExistsElsewhere':_0x4caed4};if(_0x4caed4)return{'kind':_0x2cf59c[_0x3e91b3(0x1f2)],'alsoExistsElsewhere':![]};throw new Error('Profile\x20\x22'+_0x3a348d+'\x22\x20does\x20not\x20exist.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x3a348d);}function printDualExistsHint(_0x3d0b6a){const _0x31220a=_0x58c5;console[_0x31220a(0x1f6)]('\x20\x20Note:\x20\x22'+_0x3d0b6a+_0x31220a(0x205));}function getProjectPath(){const _0x3a8140=_0x58c5;return process[_0x3a8140(0x1e7)]();}async function loadEffectiveCloudSettings(_0x2f0837){const _0x143e00=_0x58c5,_0xef41d3={'NIVih':function(_0x2f70b0,_0x2b4cff){return _0x2f70b0(_0x2b4cff);},'PvKSe':function(_0x28fcf2){return _0x28fcf2();},'hDqTj':function(_0x751ddb,_0x16ef4f){return _0x751ddb??_0x16ef4f;}},_0x47936d=await _0xef41d3['NIVih'](fetchCloudProfile,_0x2f0837),_0x3dfda7=readProfileOverrides(_0xef41d3['PvKSe'](getProjectPath),_0x2f0837);return mergeCloudProfileSettings(_0x47936d?.[_0x143e00(0x1e3)]??{},_0xef41d3[_0x143e00(0x1e1)](_0x3dfda7,undefined));}export async function configSet(_0x5ec5e,_0x2405c6,_0x4af368){const _0x3c1d86=_0x58c5,_0x4816e1={'HgDeK':function(_0xfe2221,_0x483608){return _0xfe2221(_0x483608);},'GcUmc':function(_0x50e722,_0x57dd44){return _0x50e722(_0x57dd44);},'klISw':function(_0x15f2a9){return _0x15f2a9();}},_0x14c019=await _0x4816e1['HgDeK'](resolveProfileTarget,_0x5ec5e);if(_0x14c019['kind']==='cloud'){if(_0x14c019['alsoExistsElsewhere'])_0x4816e1['GcUmc'](printDualExistsHint,_0x5ec5e);const _0x4212f7=_0x4816e1[_0x3c1d86(0x1f3)](parseOverrideValue,_0x4af368);setProfileOverride(_0x4816e1['klISw'](getProjectPath),_0x5ec5e,_0x2405c6,_0x4212f7),console['log']('Set\x20'+_0x2405c6+_0x3c1d86(0x212)+JSON[_0x3c1d86(0x200)](_0x4212f7)+_0x3c1d86(0x1e8)+_0x5ec5e+'\x22');return;}const _0xf0cda4=parseLocalValue(_0x2405c6,_0x4af368);setProfileOverride(_0x4816e1[_0x3c1d86(0x1fe)](getProjectPath),_0x5ec5e,_0x2405c6,_0xf0cda4),console['log'](_0x3c1d86(0x20d)+_0x2405c6+_0x3c1d86(0x212)+_0xf0cda4+'\x20for\x20\x22'+_0x5ec5e+'\x22');}export async function configGet(_0x403381,_0x23c604){const _0x41e113=_0x58c5,_0x2f07b0={'jrbhq':function(_0x3ff214,_0x11a841){return _0x3ff214(_0x11a841);},'kokmX':function(_0x44cba2,_0x1d90a4,_0x5b4f6d){return _0x44cba2(_0x1d90a4,_0x5b4f6d);},'icYin':function(_0x253aca,_0x229341){return _0x253aca===_0x229341;},'fOoMH':'object'},_0x1edb33=await _0x2f07b0[_0x41e113(0x1ea)](resolveProfileTarget,_0x403381);if(_0x1edb33[_0x41e113(0x1ed)]==='cloud'){const _0x4e357a=await _0x2f07b0['jrbhq'](loadEffectiveCloudSettings,_0x403381),_0x3f271b=_0x2f07b0[_0x41e113(0x214)](getNestedValue,_0x4e357a,_0x23c604);if(_0x2f07b0['icYin'](_0x3f271b,undefined))console['log']('(not\x20set)');else _0x2f07b0['icYin'](typeof _0x3f271b,_0x2f07b0[_0x41e113(0x1ec)])?console[_0x41e113(0x1f6)](JSON['stringify'](_0x3f271b,null,0x2)):console[_0x41e113(0x1f6)](_0x3f271b);return;}const _0x32f554=await loadSettings(_0x403381),_0x213db1=_0x2f07b0['kokmX'](getNestedValue,_0x32f554,_0x23c604);if(_0x213db1===undefined)console[_0x41e113(0x1f6)]('(not\x20set)');else typeof _0x213db1===_0x2f07b0['fOoMH']?console['log'](JSON[_0x41e113(0x200)](_0x213db1,null,0x2)):console['log'](_0x213db1);}export async function configList(_0x32b460){const _0x372c25=_0x58c5,_0x214f24={'lWFQb':function(_0x5a09df,_0x20527d){return _0x5a09df(_0x20527d);},'EqqjZ':'cloud','MVgIH':function(_0x1682ac,_0x152982){return _0x1682ac(_0x152982);},'XJOLo':function(_0x2a70c3,_0x28df47){return _0x2a70c3===_0x28df47;},'SFteT':function(_0x3e6475,_0x2753ef){return _0x3e6475(_0x2753ef);}},_0x461aca=await _0x214f24[_0x372c25(0x1f0)](resolveProfileTarget,_0x32b460);if(_0x461aca['kind']===_0x214f24[_0x372c25(0x1f4)]){const _0x712f21=await _0x214f24['MVgIH'](loadEffectiveCloudSettings,_0x32b460);if(!_0x712f21||_0x214f24[_0x372c25(0x210)](Object[_0x372c25(0x20a)](_0x712f21)['length'],0x0)){console['log']('No\x20configuration\x20set\x20for\x20\x22'+_0x32b460+'\x22');return;}console[_0x372c25(0x1f6)](JSON['stringify'](_0x712f21,null,0x2));return;}const _0x299039=_0x214f24['MVgIH'](getSettingsPath,_0x32b460);if(!_0x214f24['MVgIH'](existsSync,_0x299039)){console[_0x372c25(0x1f6)](_0x372c25(0x20c)+_0x32b460+'\x22');return;}const _0x65324=await loadSettings(_0x32b460),_0x5cb505=_0x214f24['SFteT'](formatSettings,_0x65324);!_0x5cb505?console['log'](_0x372c25(0x20c)+_0x32b460+'\x22'):console[_0x372c25(0x1f6)](_0x5cb505);}export async function configUnset(_0x5dd716,_0x57eeb4){const _0x4f29d3=_0x58c5,_0x2079f0={'OeczW':'cloud','EvBsX':function(_0x3b0a17,_0x2a7c97,_0x4fbc0f,_0x478693){return _0x3b0a17(_0x2a7c97,_0x4fbc0f,_0x478693);},'wOJry':function(_0xbd3517,_0x124028,_0x42d4d4,_0x1e754a){return _0xbd3517(_0x124028,_0x42d4d4,_0x1e754a);},'cJoPB':function(_0x48f79f,_0x52de7e,_0x272230){return _0x48f79f(_0x52de7e,_0x272230);}},_0x5c9c59=await resolveProfileTarget(_0x5dd716);if(_0x5c9c59['kind']===_0x2079f0[_0x4f29d3(0x1e6)]){if(_0x5c9c59['alsoExistsElsewhere'])printDualExistsHint(_0x5dd716);const _0x1fa4c6=_0x2079f0[_0x4f29d3(0x211)](unsetProfileOverride,getProjectPath(),_0x5dd716,_0x57eeb4);_0x1fa4c6?console['log']('Removed\x20'+_0x57eeb4+'\x20for\x20\x22'+_0x5dd716+'\x22'):console['log']('Key\x20\x22'+_0x57eeb4+'\x22\x20not\x20found');return;}const _0x42faf1=_0x2079f0['wOJry'](unsetProfileOverride,getProjectPath(),_0x5dd716,_0x57eeb4);if(_0x42faf1){console[_0x4f29d3(0x1f6)]('Removed\x20'+_0x57eeb4);return;}const _0x5604ab=await loadSettings(_0x5dd716),_0x401529=_0x2079f0[_0x4f29d3(0x1ee)](deleteNestedValue,_0x5604ab,_0x57eeb4);_0x401529?console[_0x4f29d3(0x1f6)](_0x4f29d3(0x1ef)+_0x57eeb4+'\x22\x20lives\x20in\x20the\x20legacy\x20settings\x20file\x20for\x20\x22'+_0x5dd716+_0x4f29d3(0x1e2)):console[_0x4f29d3(0x1f6)](_0x4f29d3(0x1ef)+_0x57eeb4+_0x4f29d3(0x1fc));}export async function configReset(_0x43543f){const _0x24471d=_0x58c5,_0x1bc92c=await resolveProfileTarget(_0x43543f);if(_0x1bc92c[_0x24471d(0x1ed)]==='cloud'){resetProfileOverrides(getProjectPath(),_0x43543f),console[_0x24471d(0x1f6)](_0x24471d(0x213)+_0x43543f+'\x22');return;}console['log']('\x22'+_0x43543f+'\x22\x20is\x20a\x20local\x20profile.\x20Use\x20\x22ranger\x20profile\x20config\x20unset\x20'+_0x43543f+'\x20<key>\x22\x20to\x20remove\x20individual\x20values.');}
@@ -1 +1 @@
1
- function _0x484e(_0x438294,_0x363c2f){_0x438294=_0x438294-0x184;const _0x56cb10=_0x56cb();let _0x484e70=_0x56cb10[_0x438294];return _0x484e70;}(function(_0x4b0c81,_0x29e6da){const _0xd3a971=_0x484e,_0x5e2912=_0x4b0c81();while(!![]){try{const _0x169cc1=-parseInt(_0xd3a971(0x192))/0x1+parseInt(_0xd3a971(0x191))/0x2+-parseInt(_0xd3a971(0x18d))/0x3+parseInt(_0xd3a971(0x18e))/0x4+-parseInt(_0xd3a971(0x18a))/0x5*(-parseInt(_0xd3a971(0x18f))/0x6)+parseInt(_0xd3a971(0x195))/0x7*(parseInt(_0xd3a971(0x197))/0x8)+parseInt(_0xd3a971(0x185))/0x9*(-parseInt(_0xd3a971(0x184))/0xa);if(_0x169cc1===_0x29e6da)break;else _0x5e2912['push'](_0x5e2912['shift']());}catch(_0x80d3da){_0x5e2912['push'](_0x5e2912['shift']());}}}(_0x56cb,0xa6b2f));function _0x56cb(){const _0x56ddc5=['cwd','Profile\x20deletion\x20cancelled:\x20confirmation\x20did\x20not\x20match.','SwuYt','10rNJtjm','log','prompt','892845qESZqj','4914288NFLwvZ','1240842suEvmw','confirmation','1283874aWsaNI','1038196QcfDzm','yes','\x22\x20for\x20everyone\x20in\x20your\x20organization.','1911TFEuRA','\x22\x20not\x20found.','27152hJTssG','476830wMfxGE','225ttSAPl','Profile\x20deletion\x20requires\x20an\x20interactive\x20terminal\x20so\x20the\x20profile\x20name\x20can\x20be\x20typed\x20for\x20confirmation.\x20Pass\x20--yes\x20to\x20skip\x20confirmation.'];_0x56cb=function(){return _0x56ddc5;};return _0x56cb();}import _0x3997f7 from'inquirer';import{deleteCloudProfile,fetchCloudProfile}from'./utils/cloudProfile.js';import{isInteractive}from'./utils/cloudProfileSession.js';import{clearLastProfile,resetProfileOverrides}from'./utils/projectsConfig.js';export async function deleteProfile(_0x540512,_0x4d21f4={}){const _0x386c83=_0x484e,_0x1e1e5d={'wrmJr':function(_0x1af81d,_0x20feac){return _0x1af81d(_0x20feac);},'oiVin':function(_0x29f63c){return _0x29f63c();},'MUIqN':'input','ZHhDr':_0x386c83(0x190),'SwuYt':function(_0x3dfba7,_0x298c5b){return _0x3dfba7(_0x298c5b);},'RmaLV':function(_0x42b66e,_0x199686,_0x5aec0a){return _0x42b66e(_0x199686,_0x5aec0a);}},_0x18e295=await _0x1e1e5d['wrmJr'](fetchCloudProfile,_0x540512);if(!_0x18e295)throw new Error('Cloud\x20profile\x20\x22'+_0x540512+_0x386c83(0x196));if(!_0x4d21f4[_0x386c83(0x193)]&&!_0x1e1e5d['oiVin'](isInteractive))throw new Error(_0x386c83(0x186));console[_0x386c83(0x18b)]('\x0aWarning:\x20this\x20deletes\x20the\x20shared\x20cloud\x20profile\x20\x22'+_0x540512+_0x386c83(0x194));if(!_0x4d21f4['yes']){const {confirmation:_0x34ec29}=await _0x3997f7[_0x386c83(0x18c)]([{'type':_0x1e1e5d['MUIqN'],'name':_0x1e1e5d['ZHhDr'],'message':'Type\x20\x22'+_0x540512+'\x22\x20to\x20confirm\x20deletion:'}]);if(_0x34ec29!==_0x540512)throw new Error(_0x386c83(0x188));}await _0x1e1e5d[_0x386c83(0x189)](deleteCloudProfile,_0x540512),_0x1e1e5d['RmaLV'](resetProfileOverrides,process[_0x386c83(0x187)](),_0x540512),clearLastProfile(process[_0x386c83(0x187)](),_0x540512),console['log']('✓\x20Deleted\x20cloud\x20profile\x20\x22'+_0x540512+'\x22.');}
1
+ (function(_0x3a7feb,_0x626563){const _0x11bccd=_0x566b,_0x466004=_0x3a7feb();while(!![]){try{const _0x75f57f=parseInt(_0x11bccd(0x147))/0x1*(-parseInt(_0x11bccd(0x146))/0x2)+parseInt(_0x11bccd(0x13d))/0x3+-parseInt(_0x11bccd(0x143))/0x4*(-parseInt(_0x11bccd(0x14d))/0x5)+-parseInt(_0x11bccd(0x14c))/0x6+parseInt(_0x11bccd(0x14f))/0x7*(parseInt(_0x11bccd(0x13a))/0x8)+parseInt(_0x11bccd(0x141))/0x9*(parseInt(_0x11bccd(0x140))/0xa)+-parseInt(_0x11bccd(0x14a))/0xb*(parseInt(_0x11bccd(0x142))/0xc);if(_0x75f57f===_0x626563)break;else _0x466004['push'](_0x466004['shift']());}catch(_0x395b10){_0x466004['push'](_0x466004['shift']());}}}(_0x5a5d,0x74bdc));import _0x285030 from'inquirer';import{deleteCloudProfile,fetchCloudProfile}from'./utils/cloudProfile.js';function _0x566b(_0x3dd04d,_0x5d48c0){_0x3dd04d=_0x3dd04d-0x13a;const _0x5a5d46=_0x5a5d();let _0x566b6b=_0x5a5d46[_0x3dd04d];return _0x566b6b;}import{isInteractive}from'./utils/cloudProfileSession.js';import{clearLastProfile,resetProfileOverrides}from'./utils/projectsConfig.js';export async function deleteProfile(_0x12b20c,_0x4acd75={}){const _0x4dbd97=_0x566b,_0x1e3737={'jCirw':'input','gPmjv':function(_0x968c03,_0x3574f6,_0x5d6931){return _0x968c03(_0x3574f6,_0x5d6931);}},_0x549822=await fetchCloudProfile(_0x12b20c);if(!_0x549822)throw new Error(_0x4dbd97(0x14e)+_0x12b20c+'\x22\x20not\x20found.');if(!_0x4acd75[_0x4dbd97(0x14b)]&&!isInteractive())throw new Error('Profile\x20deletion\x20requires\x20an\x20interactive\x20terminal\x20so\x20the\x20profile\x20name\x20can\x20be\x20typed\x20for\x20confirmation.\x20Pass\x20--yes\x20to\x20skip\x20confirmation.');console[_0x4dbd97(0x13c)]('\x0aWarning:\x20this\x20deletes\x20the\x20shared\x20cloud\x20profile\x20\x22'+_0x12b20c+'\x22\x20for\x20everyone\x20in\x20your\x20organization.');if(!_0x4acd75[_0x4dbd97(0x14b)]){const {confirmation:_0x11b5db}=await _0x285030[_0x4dbd97(0x144)]([{'type':_0x1e3737[_0x4dbd97(0x149)],'name':_0x4dbd97(0x13f),'message':_0x4dbd97(0x13e)+_0x12b20c+_0x4dbd97(0x148)}]);if(_0x11b5db!==_0x12b20c)throw new Error(_0x4dbd97(0x145));}await deleteCloudProfile(_0x12b20c),_0x1e3737['gPmjv'](resetProfileOverrides,process['cwd'](),_0x12b20c),clearLastProfile(process['cwd'](),_0x12b20c),console[_0x4dbd97(0x13c)](_0x4dbd97(0x13b)+_0x12b20c+'\x22.');}function _0x5a5d(){const _0x340a5a=['1737ZoapxU','21696204uRmjuA','48keLyuJ','prompt','Profile\x20deletion\x20cancelled:\x20confirmation\x20did\x20not\x20match.','14ZnINal','38989GFxzvK','\x22\x20to\x20confirm\x20deletion:','jCirw','11TOhjOG','yes','3338238rzSerT','355745OsfVzu','Cloud\x20profile\x20\x22','7819xIrJdd','5560thVMDf','✓\x20Deleted\x20cloud\x20profile\x20\x22','log','2759097DDrIGe','Type\x20\x22','confirmation','29310OnUDgG'];_0x5a5d=function(){return _0x340a5a;};return _0x5a5d();}
@@ -1 +1 @@
1
- function _0x19a5(_0x31277,_0x5c5285){_0x31277=_0x31277-0x117;const _0x37d7cb=_0x37d7();let _0x19a57a=_0x37d7cb[_0x31277];return _0x19a57a;}const _0x2620c2=_0x19a5;(function(_0x2b7f8a,_0x7aed86){const _0x2e92e5=_0x19a5,_0x4d01d=_0x2b7f8a();while(!![]){try{const _0xd46a83=-parseInt(_0x2e92e5(0x126))/0x1*(-parseInt(_0x2e92e5(0x120))/0x2)+parseInt(_0x2e92e5(0x12b))/0x3*(parseInt(_0x2e92e5(0x13a))/0x4)+parseInt(_0x2e92e5(0x12f))/0x5*(-parseInt(_0x2e92e5(0x131))/0x6)+-parseInt(_0x2e92e5(0x11f))/0x7+-parseInt(_0x2e92e5(0x118))/0x8*(parseInt(_0x2e92e5(0x11a))/0x9)+-parseInt(_0x2e92e5(0x117))/0xa+parseInt(_0x2e92e5(0x12c))/0xb;if(_0xd46a83===_0x7aed86)break;else _0x4d01d['push'](_0x4d01d['shift']());}catch(_0x5ae280){_0x4d01d['push'](_0x4d01d['shift']());}}}(_0x37d7,0xe74d3));import{readdir,stat}from'fs/promises';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{getToken}from'./utils/keychain.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const NON_ENV_DIRS=[_0x2620c2(0x12d),_0x2620c2(0x129),'reports',_0x2620c2(0x11d),'ci'];export async function getEnvNames(){const _0x4ca72d=_0x2620c2,_0xd1b210={'GIFwa':function(_0x80674,_0x4fa846,_0x2231f9){return _0x80674(_0x4fa846,_0x2231f9);},'WWckT':_0x4ca72d(0x11d),'JcJfY':function(_0x23af55,_0x13c01c){return _0x23af55(_0x13c01c);},'edOTC':function(_0x468d7b,_0x43652c){return _0x468d7b(_0x43652c);},'fjxNb':_0x4ca72d(0x12e)},_0x5482f2=getRangerDir();if(!existsSync(_0x5482f2))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x49bf18=await readActiveProfileName(),_0xdbad2b=[],_0x1e2a90={},_0xf9142e=_0xd1b210[_0x4ca72d(0x138)](join,_0x5482f2,_0xd1b210['WWckT']);if(_0xd1b210['JcJfY'](existsSync,_0xf9142e)){const _0x30b186=await readdir(_0xf9142e);for(const _0x508abc of _0x30b186){const _0xfc7f0c=join(_0xf9142e,_0x508abc),_0x3a21fd=await stat(_0xfc7f0c);_0x3a21fd[_0x4ca72d(0x130)]()&&(_0xdbad2b[_0x4ca72d(0x125)](_0x508abc),_0x1e2a90[_0x508abc]='local');}}const _0x16712a=_0xd1b210[_0x4ca72d(0x138)](join,_0x5482f2,'ci');if(_0xd1b210['JcJfY'](existsSync,_0x16712a)){const _0x45a1f5=await readdir(_0x16712a);for(const _0x5dfd6e of _0x45a1f5){const _0x48fc39=join(_0x16712a,_0x5dfd6e),_0x5d0282=await _0xd1b210[_0x4ca72d(0x132)](stat,_0x48fc39);_0x5d0282['isDirectory']()&&(_0xdbad2b[_0x4ca72d(0x125)](_0x5dfd6e),_0x1e2a90[_0x5dfd6e]='ci');}}const _0x444063=await _0xd1b210[_0x4ca72d(0x135)](readdir,_0x5482f2);for(const _0x2586ed of _0x444063){if(NON_ENV_DIRS[_0x4ca72d(0x13c)](_0x2586ed))continue;if(_0x2586ed['startsWith']('.'))continue;if(_0x2586ed['endsWith'](_0xd1b210[_0x4ca72d(0x11c)]))continue;const _0x237cfd=join(_0x5482f2,_0x2586ed),_0xbf56fa=await stat(_0x237cfd);_0xbf56fa[_0x4ca72d(0x130)]()&&existsSync(_0xd1b210['GIFwa'](join,_0x237cfd,'settings.json'))&&(!_0xdbad2b[_0x4ca72d(0x13c)](_0x2586ed)&&(_0xdbad2b[_0x4ca72d(0x125)](_0x2586ed),_0x1e2a90[_0x2586ed]=_0x4ca72d(0x133)));}return{'envNames':_0xdbad2b,'activeEnv':_0x49bf18,'envTypes':_0x1e2a90};}export async function envList(){const _0x209031=_0x2620c2,_0x2b5fa5={'pksTF':function(_0xf92c19){return _0xf92c19();},'SeZmJ':function(_0x563883){return _0x563883();},'bSSPn':function(_0x503c30,_0x42842a){return _0x503c30===_0x42842a;},'cJoqU':function(_0x3b9590,_0x9bb4db){return _0x3b9590>_0x9bb4db;},'ZcHoE':'\x0aLocal\x20Profiles\x20(legacy):','LHhkx':'local','lsjPy':_0x209031(0x11e),'GBesp':function(_0x2a1d9c,_0x1ddc7c){return _0x2a1d9c===_0x1ddc7c;}},{envNames:_0x93963,activeEnv:_0x15e67f,envTypes:_0x1bba91}=await getEnvNames();let _0x1c04e9=[];const _0x37f9b6=await _0x2b5fa5['pksTF'](getToken);if(_0x37f9b6)try{_0x1c04e9=await _0x2b5fa5['SeZmJ'](listCloudProfiles);}catch(_0x609cfd){console[_0x209031(0x128)](_0x209031(0x123)+(_0x609cfd instanceof Error?_0x609cfd['message']:String(_0x609cfd)));}if(_0x2b5fa5[_0x209031(0x12a)](_0x93963['length'],0x0)&&_0x2b5fa5[_0x209031(0x12a)](_0x1c04e9[_0x209031(0x139)],0x0)){console[_0x209031(0x127)](_0x209031(0x121)),console[_0x209031(0x127)]('Run:\x20ranger\x20profile\x20add\x20<profile-name>');return;}const _0xe25110=new Set(_0x1c04e9['map'](_0xc2178b=>_0xc2178b[_0x209031(0x13b)]));if(_0x2b5fa5[_0x209031(0x134)](_0x93963[_0x209031(0x139)],0x0)){console['log'](_0x2b5fa5['ZcHoE']);for(const _0x385653 of _0x93963[_0x209031(0x136)]()){const _0xbd3b99=_0x385653===_0x15e67f&&!_0xe25110['has'](_0x385653),_0x1bd927=_0x1bba91[_0x385653]||_0x2b5fa5['LHhkx'],_0x388edb=await loadSettings(_0x385653),_0x261096=_0x1bd927==='legacy'?'':'\x20['+_0x1bd927+']';console[_0x209031(0x127)]('\x20\x20'+(_0xbd3b99?'*\x20':'\x20\x20')+_0x385653+_0x261096),_0x388edb['baseUrl']&&console[_0x209031(0x127)]('\x20\x20\x20\x20\x20\x20URL:\x20'+_0x388edb['baseUrl']),_0x388edb[_0x209031(0x119)]&&console[_0x209031(0x127)](_0x209031(0x11b)+_0x388edb['environmentDetails']);}}if(_0x2b5fa5['cJoqU'](_0x1c04e9['length'],0x0)){console['log'](_0x2b5fa5[_0x209031(0x137)]);for(const _0x177523 of _0x1c04e9['sort']((_0xdae0e8,_0x371587)=>_0xdae0e8['name'][_0x209031(0x13d)](_0x371587['name']))){const _0x4b0e0c=_0x2b5fa5['GBesp'](_0x177523[_0x209031(0x13b)],_0x15e67f),_0x7bf4f0=_0x177523[_0x209031(0x124)]?'\x20('+_0x177523[_0x209031(0x124)]+')':'',_0x41e900=_0x177523['sessionUpdatedAt']?'cached\x20(updated\x20'+_0x177523['sessionUpdatedAt']+')':'no\x20session';console[_0x209031(0x127)]('\x20\x20'+(_0x4b0e0c?'*\x20':'\x20\x20')+_0x177523['name']+_0x209031(0x122)+_0x7bf4f0),console[_0x209031(0x127)]('\x20\x20\x20\x20\x20\x20Session:\x20'+_0x41e900);}}_0x15e67f&&console[_0x209031(0x127)]('\x0a*\x20=\x20active\x20profile');}function _0x37d7(){const _0x51e40b=['\x0aCloud\x20Profiles:','5721296YYvhxt','32VuWvlP','\x0aNo\x20profiles\x20found.','\x20[cloud]','\x0aWarning:\x20could\x20not\x20fetch\x20cloud\x20profiles:\x20','environmentKey','push','106034lYYndJ','log','error','bug-bashes','bSSPn','31695MVDphp','26101581RpoBMk','sessions','.txt','925zrfYfb','isDirectory','31962wKykoR','edOTC','legacy','cJoqU','JcJfY','sort','lsjPy','GIFwa','length','352gjOzBS','name','includes','localeCompare','16442650GRztkR','1136qUyVZk','environmentDetails','38322GGmcfK','\x20\x20\x20\x20\x20\x20Details:\x20','fjxNb','local'];_0x37d7=function(){return _0x51e40b;};return _0x37d7();}
1
+ const _0x1a99ea=_0x46a0;(function(_0x4f3838,_0x3edf94){const _0x2528c2=_0x46a0,_0x3a7f45=_0x4f3838();while(!![]){try{const _0x41e667=parseInt(_0x2528c2(0x1b6))/0x1+-parseInt(_0x2528c2(0x1cb))/0x2*(-parseInt(_0x2528c2(0x1b4))/0x3)+parseInt(_0x2528c2(0x1d1))/0x4*(parseInt(_0x2528c2(0x1c6))/0x5)+parseInt(_0x2528c2(0x1c0))/0x6*(-parseInt(_0x2528c2(0x1b3))/0x7)+parseInt(_0x2528c2(0x1ad))/0x8*(-parseInt(_0x2528c2(0x1b5))/0x9)+-parseInt(_0x2528c2(0x1ae))/0xa*(-parseInt(_0x2528c2(0x1d8))/0xb)+-parseInt(_0x2528c2(0x1c3))/0xc*(parseInt(_0x2528c2(0x1bc))/0xd);if(_0x41e667===_0x3edf94)break;else _0x3a7f45['push'](_0x3a7f45['shift']());}catch(_0x4f4a19){_0x3a7f45['push'](_0x3a7f45['shift']());}}}(_0x4e91,0x53915));import{readdir,stat}from'fs/promises';import{join}from'path';import{existsSync}from'fs';function _0x46a0(_0x2f3a91,_0xb533f6){_0x2f3a91=_0x2f3a91-0x1ac;const _0x4e91f0=_0x4e91();let _0x46a066=_0x4e91f0[_0x2f3a91];return _0x46a066;}import{getRangerDir}from'./utils/rangerRoot.js';function _0x4e91(){const _0x465bc0=['includes','\x0aCloud\x20Profiles:','legacy','62512KEppYu','local','\x0aWarning:\x20could\x20not\x20fetch\x20cloud\x20profiles:\x20','push','yNxzT','length','9788SniBUK','egPUN','\x0a*\x20=\x20active\x20profile','sdvWn','environmentKey','HeeBU','sessions','661859SbRGbl','cached\x20(updated\x20','log','bug-bashes','64MPhlDK','10IgTaMy','biWtk','no\x20session','endsWith','puxjg','21XZBYta','60KczEDi','672615DCHMzS','483647fSxOXp','name','Run:\x20ranger\x20profile\x20add\x20<profile-name>','sessionUpdatedAt','qpgDw','urMGe','3723343ePmsuQ','message','isDirectory','environmentDetails','956490GCWiIQ','error','sort','12XSuaqq','has','DajfY','1095COWemh','map'];_0x4e91=function(){return _0x465bc0;};return _0x4e91();}import{loadSettings}from'./utils/settings.js';import{readActiveProfileName}from'./utils/activeProfile.js';import{getToken}from'./utils/keychain.js';import{listCloudProfiles}from'./utils/cloudProfile.js';const NON_ENV_DIRS=[_0x1a99ea(0x1d7),_0x1a99ea(0x1ac),'reports',_0x1a99ea(0x1cc),'ci'];export async function getEnvNames(){const _0x27f724=_0x1a99ea,_0x10b408={'HeeBU':function(_0x6522f8){return _0x6522f8();},'urMGe':function(_0xd29f68,_0x49d630){return _0xd29f68(_0x49d630);},'sdvWn':function(_0x5d4f73,_0x40fe8c,_0x5d9643){return _0x5d4f73(_0x40fe8c,_0x5d9643);},'GHYvv':_0x27f724(0x1cc),'jILen':function(_0x275ebd,_0x2507eb){return _0x275ebd(_0x2507eb);},'UjtMa':function(_0x2ca468,_0x4217d0,_0xd2f72c){return _0x2ca468(_0x4217d0,_0xd2f72c);},'egPUN':'.txt','puxjg':_0x27f724(0x1ca)},_0x4ea0d2=_0x10b408[_0x27f724(0x1d6)](getRangerDir);if(!_0x10b408['urMGe'](existsSync,_0x4ea0d2))return{'envNames':[],'activeEnv':null,'envTypes':{}};const _0x2d2896=await readActiveProfileName(),_0x4631b0=[],_0x108b83={},_0x31c1b4=_0x10b408['sdvWn'](join,_0x4ea0d2,_0x10b408['GHYvv']);if(_0x10b408[_0x27f724(0x1bb)](existsSync,_0x31c1b4)){const _0x48680b=await _0x10b408['jILen'](readdir,_0x31c1b4);for(const _0x35ae57 of _0x48680b){const _0x51ba55=_0x10b408[_0x27f724(0x1d4)](join,_0x31c1b4,_0x35ae57),_0x1c550a=await stat(_0x51ba55);_0x1c550a['isDirectory']()&&(_0x4631b0['push'](_0x35ae57),_0x108b83[_0x35ae57]=_0x27f724(0x1cc));}}const _0xb49416=_0x10b408[_0x27f724(0x1d4)](join,_0x4ea0d2,'ci');if(existsSync(_0xb49416)){const _0x2c14a5=await readdir(_0xb49416);for(const _0x641c2b of _0x2c14a5){const _0x2bb147=_0x10b408['UjtMa'](join,_0xb49416,_0x641c2b),_0x325652=await stat(_0x2bb147);_0x325652['isDirectory']()&&(_0x4631b0['push'](_0x641c2b),_0x108b83[_0x641c2b]='ci');}}const _0x1d8661=await readdir(_0x4ea0d2);for(const _0x1a97e8 of _0x1d8661){if(NON_ENV_DIRS[_0x27f724(0x1c8)](_0x1a97e8))continue;if(_0x1a97e8['startsWith']('.'))continue;if(_0x1a97e8[_0x27f724(0x1b1)](_0x10b408[_0x27f724(0x1d2)]))continue;const _0x112f49=join(_0x4ea0d2,_0x1a97e8),_0x33c02b=await _0x10b408['jILen'](stat,_0x112f49);_0x33c02b[_0x27f724(0x1be)]()&&existsSync(join(_0x112f49,'settings.json'))&&(!_0x4631b0[_0x27f724(0x1c8)](_0x1a97e8)&&(_0x4631b0[_0x27f724(0x1ce)](_0x1a97e8),_0x108b83[_0x1a97e8]=_0x10b408[_0x27f724(0x1b2)]));}return{'envNames':_0x4631b0,'activeEnv':_0x2d2896,'envTypes':_0x108b83};}export async function envList(){const _0x5e76d6=_0x1a99ea,_0x3b9c47={'qpgDw':function(_0x53caf2,_0x53ba48){return _0x53caf2 instanceof _0x53ba48;},'XXkPg':function(_0x36475f,_0x45039c){return _0x36475f(_0x45039c);},'HhyGy':function(_0x586b72,_0x2ccd96){return _0x586b72===_0x2ccd96;},'PpNOw':'\x0aNo\x20profiles\x20found.','yNxzT':_0x5e76d6(0x1b8),'MuiSy':'\x0aLocal\x20Profiles\x20(legacy):','biWtk':function(_0x45ae82,_0x175da6){return _0x45ae82===_0x175da6;},'DajfY':_0x5e76d6(0x1cc),'RMThb':_0x5e76d6(0x1ca)},{envNames:_0x452f16,activeEnv:_0x314e2a,envTypes:_0x4a4616}=await getEnvNames();let _0x172329=[];const _0x3f899d=await getToken();if(_0x3f899d)try{_0x172329=await listCloudProfiles();}catch(_0x40c88f){console[_0x5e76d6(0x1c1)](_0x5e76d6(0x1cd)+(_0x3b9c47[_0x5e76d6(0x1ba)](_0x40c88f,Error)?_0x40c88f[_0x5e76d6(0x1bd)]:_0x3b9c47['XXkPg'](String,_0x40c88f)));}if(_0x452f16[_0x5e76d6(0x1d0)]===0x0&&_0x3b9c47['HhyGy'](_0x172329['length'],0x0)){console[_0x5e76d6(0x1da)](_0x3b9c47['PpNOw']),console[_0x5e76d6(0x1da)](_0x3b9c47[_0x5e76d6(0x1cf)]);return;}const _0x20543d=new Set(_0x172329[_0x5e76d6(0x1c7)](_0x59ede4=>_0x59ede4[_0x5e76d6(0x1b7)]));if(_0x452f16[_0x5e76d6(0x1d0)]>0x0){console[_0x5e76d6(0x1da)](_0x3b9c47['MuiSy']);for(const _0x35f44e of _0x452f16[_0x5e76d6(0x1c2)]()){const _0x4d02eb=_0x3b9c47['biWtk'](_0x35f44e,_0x314e2a)&&!_0x20543d[_0x5e76d6(0x1c4)](_0x35f44e),_0x4dfd6d=_0x4a4616[_0x35f44e]||_0x3b9c47[_0x5e76d6(0x1c5)],_0x5df848=await loadSettings(_0x35f44e),_0x61f7e9=_0x3b9c47['HhyGy'](_0x4dfd6d,_0x3b9c47['RMThb'])?'':'\x20['+_0x4dfd6d+']';console[_0x5e76d6(0x1da)]('\x20\x20'+(_0x4d02eb?'*\x20':'\x20\x20')+_0x35f44e+_0x61f7e9),_0x5df848['baseUrl']&&console['log']('\x20\x20\x20\x20\x20\x20URL:\x20'+_0x5df848['baseUrl']),_0x5df848[_0x5e76d6(0x1bf)]&&console['log']('\x20\x20\x20\x20\x20\x20Details:\x20'+_0x5df848['environmentDetails']);}}if(_0x172329['length']>0x0){console['log'](_0x5e76d6(0x1c9));for(const _0x2a0bf3 of _0x172329['sort']((_0x1d4a02,_0x5f103d)=>_0x1d4a02['name']['localeCompare'](_0x5f103d['name']))){const _0x1d13c2=_0x3b9c47[_0x5e76d6(0x1af)](_0x2a0bf3[_0x5e76d6(0x1b7)],_0x314e2a),_0x2f0b09=_0x2a0bf3['environmentKey']?'\x20('+_0x2a0bf3[_0x5e76d6(0x1d5)]+')':'',_0x2c0db0=_0x2a0bf3[_0x5e76d6(0x1b9)]?_0x5e76d6(0x1d9)+_0x2a0bf3[_0x5e76d6(0x1b9)]+')':_0x5e76d6(0x1b0);console[_0x5e76d6(0x1da)]('\x20\x20'+(_0x1d13c2?'*\x20':'\x20\x20')+_0x2a0bf3[_0x5e76d6(0x1b7)]+'\x20[cloud]'+_0x2f0b09),console['log']('\x20\x20\x20\x20\x20\x20Session:\x20'+_0x2c0db0);}}_0x314e2a&&console[_0x5e76d6(0x1da)](_0x5e76d6(0x1d3));}