@ranger-testing/ranger-cli 2.5.4-alpha.57338f5-12 → 2.5.4-alpha.8c24bb2-15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/README.md +36 -14
  2. package/build/cli.js +1 -1
  3. package/build/commands/addEnv.js +1 -1
  4. package/build/commands/authEncrypt.js +1 -1
  5. package/build/commands/clean.js +1 -1
  6. package/build/commands/config.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/opencodeConfig.js +1 -1
  58. package/build/commands/utils/playwrightCli.js +1 -1
  59. package/build/commands/utils/profileMessages.js +1 -1
  60. package/build/commands/utils/profileSetupBanner.js +1 -1
  61. package/build/commands/utils/projectsConfig.js +1 -1
  62. package/build/commands/utils/rangerConfig.js +1 -1
  63. package/build/commands/utils/rangerRoot.js +1 -1
  64. package/build/commands/utils/resolveProfileContext.js +1 -1
  65. package/build/commands/utils/resolveProfileUrl.js +1 -1
  66. package/build/commands/utils/retry.js +1 -1
  67. package/build/commands/utils/sessionCache.js +1 -1
  68. package/build/commands/utils/settings.js +1 -1
  69. package/build/commands/utils/skillContent.js +1 -1
  70. package/build/commands/utils/skills.js +1 -1
  71. package/build/commands/utils/stitchWebmFiles.js +1 -1
  72. package/build/commands/utils/telemetry.js +1 -1
  73. package/build/commands/utils/tokenRefresh.js +1 -1
  74. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  75. package/build/commands/utils/userApi.js +1 -1
  76. package/build/commands/utils/version.js +1 -1
  77. package/build/commands/verifyFeature.js +1 -1
  78. package/build/commands/verifyFeatureCli.js +1 -1
  79. package/build/skills/ranger/SKILL.md +15 -5
  80. package/build/skills/ranger/verify.md +15 -3
  81. package/package.json +1 -1
@@ -1 +1 @@
1
- const _0x4396bb=_0x51c9;(function(_0x4bf0e9,_0x4f290f){const _0x405678=_0x51c9,_0x2632eb=_0x4bf0e9();while(!![]){try{const _0x50001f=-parseInt(_0x405678(0x105))/0x1+parseInt(_0x405678(0x112))/0x2*(-parseInt(_0x405678(0x126))/0x3)+parseInt(_0x405678(0x122))/0x4+parseInt(_0x405678(0x124))/0x5*(-parseInt(_0x405678(0x130))/0x6)+parseInt(_0x405678(0x125))/0x7*(parseInt(_0x405678(0x10c))/0x8)+parseInt(_0x405678(0x110))/0x9+parseInt(_0x405678(0x128))/0xa*(-parseInt(_0x405678(0x10f))/0xb);if(_0x50001f===_0x4f290f)break;else _0x2632eb['push'](_0x2632eb['shift']());}catch(_0x3a059b){_0x2632eb['push'](_0x2632eb['shift']());}}}(_0x2279,0xc35e7));function _0x2279(){const _0x2edad4=['replace','npx','kill','test','hGyxE','WDqfY','6rHKNiT','toString','length','Mlxow','-s=','OqphI','XYYiz','slice','null','345730SxZTrM','map','sha256','oMuae','join','data','KheiX','600WftrOL','string','--config','1287dHYaXf','10211193ljIKJt','find','8dZswAa','uBbLm','configPath','ignore','values','plaib','WHKGV','\x27\x5c\x27\x27','@playwright/cli','error','sessionId','update','hex','GJjZu','SIGKILL','TTYdC','1414092InxxuI','pipe','527290CxWVxE','117474TacRed','637206bVGvzm','match','55190zyTGAr','timeoutMs'];_0x2279=function(){return _0x2edad4;};return _0x2279();}import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0x4396bb(0x11a);function toPlaywrightCliSessionKey(_0x3b0221){const _0x375963=_0x4396bb,_0x5336a0={'XvnOg':function(_0x57a4d0,_0x4545f3){return _0x57a4d0(_0x4545f3);},'iDObH':_0x375963(0x11e)},_0x517e38=_0x5336a0['XvnOg'](createHash,_0x375963(0x107))[_0x375963(0x11d)](_0x3b0221)['digest'](_0x5336a0['iDObH'])['slice'](0x0,0xc);return'rg-'+_0x517e38;}function shellQuote(_0x446458){const _0x502a5e=_0x4396bb;return'\x27'+_0x446458[_0x502a5e(0x12a)](/'/g,_0x502a5e(0x119))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x4c6923){const _0x22864b=_0x4396bb;return SAFE_SHELL_TOKEN[_0x22864b(0x12d)](_0x4c6923)?_0x4c6923:shellQuote(_0x4c6923);}function _0x51c9(_0x573d7f,_0x469d21){_0x573d7f=_0x573d7f-0x105;const _0x227998=_0x2279();let _0x51c993=_0x227998[_0x573d7f];return _0x51c993;}export function buildPlaywrightCliInvocation(_0x1bae8a,_0x49b565,_0x588fed){const _0x4a31d4=_0x4396bb,_0x4718fc={'tMOwP':'unknown','KheiX':_0x4a31d4(0x10e),'DjZgG':function(_0xc89c6f,_0x112b3e){return _0xc89c6f(_0x112b3e);}},_0x616628=toPlaywrightCliSessionKey(_0x1bae8a),[_0xccc0ea=_0x4718fc['tMOwP']]=_0x588fed,_0x1bd301=[PLAYWRIGHT_CLI_BINARY,_0x4a31d4(0x134)+_0x616628,_0x4718fc[_0x4a31d4(0x10b)],_0x49b565,..._0x588fed];return{'command':_0x4a31d4(0x12b),'args':_0x1bd301,'shellCommand':[_0x4a31d4(0x12b),PLAYWRIGHT_CLI_BINARY,'-s='+_0x4718fc['DjZgG'](quoteShellArg,_0x616628),'--config',quoteShellArg(_0x49b565),..._0x588fed[_0x4a31d4(0x106)](quoteShellArg)]['join']('\x20'),'subcommand':_0xccc0ea};}export function buildPlaywrightCliCommandPrefix(_0xfd4800,_0x1f634d){const _0x59d08c=_0x4396bb,_0x129c95={'YDdbq':function(_0xf29a50,_0x2cc54f){return _0xf29a50(_0x2cc54f);},'bBPJT':_0x59d08c(0x10e)},_0x2df165=_0x129c95['YDdbq'](toPlaywrightCliSessionKey,_0xfd4800);return[_0x59d08c(0x12b),PLAYWRIGHT_CLI_BINARY,_0x59d08c(0x134)+quoteShellArg(_0x2df165),_0x129c95['bBPJT'],quoteShellArg(_0x1f634d)][_0x59d08c(0x109)]('\x20');}function truncateOutput(_0x1c32ae,_0x466859=0x7d0){const _0x5072cf=_0x4396bb,_0x4df973={'oMuae':function(_0x2a431d,_0x3c5e77){return _0x2a431d+_0x3c5e77;}};return _0x1c32ae['length']>_0x466859?_0x4df973[_0x5072cf(0x108)](_0x1c32ae[_0x5072cf(0x137)](0x0,_0x466859),'...'):_0x1c32ae;}export async function runPlaywrightCliCommand(_0x304702){const _0x1310bf=_0x4396bb,_0x17d046={'eLRMD':'SIGTERM','hGyxE':function(_0x3304b6,_0x541ba3,_0x331fd4){return _0x3304b6(_0x541ba3,_0x331fd4);},'OqphI':function(_0x2d54cb,_0x3979ab){return _0x2d54cb(_0x3979ab);},'TTYdC':_0x1310bf(0x138),'KfaQr':function(_0x18abb6,_0x5052e8){return _0x18abb6??_0x5052e8;},'LTutl':function(_0x2540c6,_0x36cf5c,_0x1ee4a7,_0x3d8723){return _0x2540c6(_0x36cf5c,_0x1ee4a7,_0x3d8723);},'mkXjz':_0x1310bf(0x123),'uBbLm':_0x1310bf(0x10a),'Mlxow':_0x1310bf(0x11b),'XYYiz':function(_0x3ae197,_0x75191b,_0x5d42e4,_0x8b825d){return _0x3ae197(_0x75191b,_0x5d42e4,_0x8b825d);}},_0x1d711f=_0x17d046[_0x1310bf(0x136)](buildPlaywrightCliInvocation,_0x304702[_0x1310bf(0x11c)],_0x304702[_0x1310bf(0x114)],_0x304702['commandArgs']);return new Promise((_0x3f765f,_0x58c7cb)=>{const _0xdc54f8=_0x1310bf,_0x48d929={'arHtp':function(_0x21b6da,_0x32ec91){return _0x17d046['OqphI'](_0x21b6da,_0x32ec91);},'WHKGV':function(_0x452ff0,_0x4ff5a6){return _0x452ff0(_0x4ff5a6);},'GJjZu':_0x17d046[_0xdc54f8(0x121)],'WDqfY':function(_0x17a99b,_0x145bc0){return _0x17d046['KfaQr'](_0x17a99b,_0x145bc0);},'DWIhQ':function(_0x576fb9,_0x25b85b){const _0x41ef81=_0xdc54f8;return _0x17d046[_0x41ef81(0x135)](_0x576fb9,_0x25b85b);}},_0x23edd5=_0x17d046['LTutl'](spawn,_0x1d711f['command'],_0x1d711f['args'],{'cwd':_0x304702['cwd'],'env':_0x304702['env'],'stdio':[_0xdc54f8(0x115),'pipe',_0x17d046['mkXjz']]});let _0x24ec2e='',_0x4698cf='',_0x3988ed=![];const _0x493f7c=_0x304702['timeoutMs']&&_0x304702['timeoutMs']>0x0?setTimeout(()=>{const _0x282367=_0xdc54f8,_0x33d5f3={'DPEIs':_0x282367(0x120)};_0x3988ed=!![],_0x23edd5[_0x282367(0x12c)](_0x17d046['eLRMD']),_0x17d046[_0x282367(0x12e)](setTimeout,()=>{const _0xefb6d8=_0x282367;try{_0x23edd5[_0xefb6d8(0x12c)](_0x33d5f3['DPEIs']);}catch{}},0x3e8);},_0x304702[_0xdc54f8(0x129)]):null;_0x23edd5['stdout']?.['on'](_0x17d046[_0xdc54f8(0x113)],_0x5c88f9=>{_0x24ec2e+=_0x5c88f9['toString']();}),_0x23edd5['stderr']?.['on'](_0x17d046['uBbLm'],_0x57c835=>{const _0x14d1cd=_0xdc54f8;_0x4698cf+=_0x57c835[_0x14d1cd(0x131)]();}),_0x23edd5['on'](_0x17d046[_0xdc54f8(0x133)],_0x38c987=>{if(_0x493f7c)_0x48d929['arHtp'](clearTimeout,_0x493f7c);_0x58c7cb(_0x38c987);}),_0x23edd5['on']('close',(_0x379fbc,_0x55f122)=>{const _0x55454b=_0xdc54f8;if(_0x493f7c)_0x48d929[_0x55454b(0x118)](clearTimeout,_0x493f7c);if(_0x379fbc===0x0){_0x3f765f({'stdout':_0x24ec2e,'stderr':_0x4698cf,'invocation':_0x1d711f});return;}const _0x1e6a42=_0x3988ed?'timed\x20out\x20after\x20'+_0x304702['timeoutMs']+'ms':'exited\x20with\x20code='+(_0x379fbc??_0x48d929['GJjZu'])+'\x20signal='+_0x48d929[_0x55454b(0x12f)](_0x55f122,_0x48d929[_0x55454b(0x11f)]);_0x48d929[_0x55454b(0x118)](_0x58c7cb,new Error('playwright-cli\x20'+_0x1d711f['subcommand']+'\x20'+_0x1e6a42+'\x0astdout:\x20'+_0x48d929['WHKGV'](truncateOutput,_0x24ec2e)+'\x0astderr:\x20'+_0x48d929['DWIhQ'](truncateOutput,_0x4698cf)));});});}export function extractBashCommand(_0x370836){const _0x59fdac=_0x4396bb,_0x55e47b={'plaib':'cmd','xYqcc':'script','MbGjl':function(_0xcf2652,_0x5a1848){return _0xcf2652===_0x5a1848;}},_0x5a1e94=['command',_0x55e47b[_0x59fdac(0x117)],_0x55e47b['xYqcc'],'bash_command'];for(const _0x5a572a of _0x5a1e94){const _0x4998e9=_0x370836[_0x5a572a];if(_0x55e47b['MbGjl'](typeof _0x4998e9,'string')&&_0x4998e9['trim']())return _0x4998e9;}const _0x3c5fb8=Object[_0x59fdac(0x116)](_0x370836)[_0x59fdac(0x111)](_0x29b0cb=>typeof _0x29b0cb===_0x59fdac(0x10d)&&_0x29b0cb['trim']()[_0x59fdac(0x132)]>0x0);return _0x3c5fb8??null;}export function parsePlaywrightCliCommand(_0x262144){const _0x50acc0=_0x4396bb,_0x2404b2=_0x262144[_0x50acc0(0x127)](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x2404b2?.[0x1]??null;}
1
+ const _0x5a5791=_0x361a;(function(_0x2ba07e,_0x20c3ea){const _0x16c2b6=_0x361a,_0x1162eb=_0x2ba07e();while(!![]){try{const _0x44796f=parseInt(_0x16c2b6(0xa1))/0x1*(parseInt(_0x16c2b6(0xca))/0x2)+-parseInt(_0x16c2b6(0x9d))/0x3*(parseInt(_0x16c2b6(0x9c))/0x4)+parseInt(_0x16c2b6(0xa9))/0x5+parseInt(_0x16c2b6(0x9a))/0x6*(-parseInt(_0x16c2b6(0xa8))/0x7)+parseInt(_0x16c2b6(0xbe))/0x8*(-parseInt(_0x16c2b6(0xb0))/0x9)+parseInt(_0x16c2b6(0xc0))/0xa*(parseInt(_0x16c2b6(0xbb))/0xb)+parseInt(_0x16c2b6(0xa3))/0xc;if(_0x44796f===_0x20c3ea)break;else _0x1162eb['push'](_0x1162eb['shift']());}catch(_0x45ff18){_0x1162eb['push'](_0x1162eb['shift']());}}}(_0x49bc,0x35b0a));import{spawn}from'child_process';function _0x49bc(){const _0x5d2fbb=['replace','tqfaj','stdout','298bHIEhg','vTDwH','Aohhi','SIGTERM','cwd','values','xfCfD','find','hex','457386vZTBjY','trim','48224erWYvt','81ABiMdI','bash_command','WoqBn','configPath','1101XGwJvY','error','11364252DofIoB','--config','ekzuZ','rg-','update','21ctskUn','413950OTsenB','join','SIGKILL','MoYHA','OmUcn','commandArgs','toString','12591YKTQXo','digest','-s=','LkRcz','KtAQS','timeoutMs','\x0astdout:\x20','string','@playwright/cli','match','script','22rUHqoP','slice','AVMeA','2440rpMmKl','uXhZS','34770eKjXmh','unknown','sessionId','npx','playwright-cli\x20','qoUEp','kill'];_0x49bc=function(){return _0x5d2fbb;};return _0x49bc();}import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0x5a5791(0xb8);function toPlaywrightCliSessionKey(_0x11eb90){const _0x5dba54=_0x5a5791,_0xa1f7de={'fjUpq':function(_0x5aede8,_0x3667c3){return _0x5aede8(_0x3667c3);},'qoUEp':_0x5dba54(0x99)},_0x12ff09=_0xa1f7de['fjUpq'](createHash,'sha256')[_0x5dba54(0xa7)](_0x11eb90)[_0x5dba54(0xb1)](_0xa1f7de[_0x5dba54(0xc5)])['slice'](0x0,0xc);return _0x5dba54(0xa6)+_0x12ff09;}function shellQuote(_0x383513){const _0x511756=_0x5a5791;return'\x27'+_0x383513[_0x511756(0xc7)](/'/g,'\x27\x5c\x27\x27')+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x219e06){const _0x452ed5=_0x5a5791,_0x1da04b={'xfCfD':function(_0x43d25b,_0x11a9aa){return _0x43d25b(_0x11a9aa);}};return SAFE_SHELL_TOKEN['test'](_0x219e06)?_0x219e06:_0x1da04b[_0x452ed5(0x97)](shellQuote,_0x219e06);}export function buildPlaywrightCliInvocation(_0x526b9a,_0x75a3a4,_0x54c7cd){const _0x5dacc1=_0x5a5791,_0xca61f6={'EuhbT':_0x5dacc1(0xc1),'AVMeA':'npx'},_0x5dfbb2=toPlaywrightCliSessionKey(_0x526b9a),[_0x32fb03=_0xca61f6['EuhbT']]=_0x54c7cd,_0x135cae=[PLAYWRIGHT_CLI_BINARY,_0x5dacc1(0xb2)+_0x5dfbb2,_0x5dacc1(0xa4),_0x75a3a4,..._0x54c7cd];return{'command':'npx','args':_0x135cae,'shellCommand':[_0xca61f6[_0x5dacc1(0xbd)],PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x5dfbb2),'--config',quoteShellArg(_0x75a3a4),..._0x54c7cd['map'](quoteShellArg)][_0x5dacc1(0xaa)]('\x20'),'subcommand':_0x32fb03};}export function buildPlaywrightCliCommandPrefix(_0x3b12be,_0x43ea59){const _0x25a751=_0x5a5791,_0x49fac5={'aSNRo':'--config'},_0xa0e1cd=toPlaywrightCliSessionKey(_0x3b12be);return[_0x25a751(0xc3),PLAYWRIGHT_CLI_BINARY,_0x25a751(0xb2)+quoteShellArg(_0xa0e1cd),_0x49fac5['aSNRo'],quoteShellArg(_0x43ea59)][_0x25a751(0xaa)]('\x20');}function truncateOutput(_0x256fab,_0x165471=0x7d0){const _0x5b43eb=_0x5a5791,_0x59cad1={'LkRcz':function(_0xc097b0,_0x332934){return _0xc097b0+_0x332934;},'rytmw':'...'};return _0x256fab['length']>_0x165471?_0x59cad1[_0x5b43eb(0xb3)](_0x256fab[_0x5b43eb(0xbc)](0x0,_0x165471),_0x59cad1['rytmw']):_0x256fab;}export async function runPlaywrightCliCommand(_0x57082e){const _0x216292=_0x5a5791,_0x44caa8={'eltBR':function(_0x22b803,_0x18c389,_0x307fa9){return _0x22b803(_0x18c389,_0x307fa9);},'KtAQS':function(_0x152f41,_0x599831){return _0x152f41(_0x599831);},'Pqals':'pipe','uXhZS':function(_0x12cc9b,_0x3d7404){return _0x12cc9b>_0x3d7404;},'geKXJ':function(_0x1867a2,_0x5bd064,_0x33b518){return _0x1867a2(_0x5bd064,_0x33b518);},'ekzuZ':'data','vTDwH':_0x216292(0xa2),'JHaVV':'close','ECMnw':function(_0x2f5c33,_0x44a302,_0x1f273f,_0x3e9375){return _0x2f5c33(_0x44a302,_0x1f273f,_0x3e9375);}},_0x4f34de=_0x44caa8['ECMnw'](buildPlaywrightCliInvocation,_0x57082e[_0x216292(0xc2)],_0x57082e[_0x216292(0xa0)],_0x57082e[_0x216292(0xae)]);return new Promise((_0x3b7011,_0x83cfb5)=>{const _0xa497a3=_0x216292,_0x371110={'SFzFh':_0xa497a3(0xcd),'bkRpO':function(_0x12ce88,_0x3d48d6,_0x4311bc){return _0x44caa8['eltBR'](_0x12ce88,_0x3d48d6,_0x4311bc);},'MoYHA':function(_0x275a5f,_0x3286ca){return _0x275a5f(_0x3286ca);},'gKpjA':function(_0x516c2f,_0x4c3dbd){return _0x516c2f(_0x4c3dbd);},'OmUcn':function(_0x4139a9,_0x119ffe){const _0x40d618=_0xa497a3;return _0x44caa8[_0x40d618(0xb4)](_0x4139a9,_0x119ffe);},'WoqBn':'null','fCMfW':function(_0xad5e7f,_0x5705f7){return _0xad5e7f(_0x5705f7);}},_0x248c01=spawn(_0x4f34de['command'],_0x4f34de['args'],{'cwd':_0x57082e[_0xa497a3(0xce)],'env':_0x57082e['env'],'stdio':['ignore',_0x44caa8['Pqals'],_0x44caa8['Pqals']]});let _0x375dce='',_0xa57bd7='',_0x3f2c92=![];const _0x149fda=_0x57082e['timeoutMs']&&_0x44caa8[_0xa497a3(0xbf)](_0x57082e[_0xa497a3(0xb5)],0x0)?_0x44caa8['geKXJ'](setTimeout,()=>{const _0x1d6296=_0xa497a3;_0x3f2c92=!![],_0x248c01[_0x1d6296(0xc6)](_0x371110['SFzFh']),_0x371110['bkRpO'](setTimeout,()=>{const _0x5a794b=_0x1d6296;try{_0x248c01['kill'](_0x5a794b(0xab));}catch{}},0x3e8);},_0x57082e[_0xa497a3(0xb5)]):null;_0x248c01[_0xa497a3(0xc9)]?.['on'](_0x44caa8['ekzuZ'],_0x55d8d6=>{const _0x42103b=_0xa497a3;_0x375dce+=_0x55d8d6[_0x42103b(0xaf)]();}),_0x248c01['stderr']?.['on'](_0x44caa8[_0xa497a3(0xa5)],_0x53914f=>{_0xa57bd7+=_0x53914f['toString']();}),_0x248c01['on'](_0x44caa8[_0xa497a3(0xcb)],_0x38830e=>{const _0x1759bd=_0xa497a3;if(_0x149fda)_0x371110[_0x1759bd(0xac)](clearTimeout,_0x149fda);_0x371110['gKpjA'](_0x83cfb5,_0x38830e);}),_0x248c01['on'](_0x44caa8['JHaVV'],(_0x416762,_0x1c01e1)=>{const _0x2f0669=_0xa497a3;if(_0x149fda)_0x371110[_0x2f0669(0xad)](clearTimeout,_0x149fda);if(_0x416762===0x0){_0x3b7011({'stdout':_0x375dce,'stderr':_0xa57bd7,'invocation':_0x4f34de});return;}const _0x133c7b=_0x3f2c92?'timed\x20out\x20after\x20'+_0x57082e['timeoutMs']+'ms':'exited\x20with\x20code='+(_0x416762??_0x371110[_0x2f0669(0x9f)])+'\x20signal='+(_0x1c01e1??'null');_0x83cfb5(new Error(_0x2f0669(0xc4)+_0x4f34de['subcommand']+'\x20'+_0x133c7b+_0x2f0669(0xb6)+_0x371110['fCMfW'](truncateOutput,_0x375dce)+'\x0astderr:\x20'+truncateOutput(_0xa57bd7)));});});}function _0x361a(_0x299f4e,_0x59bc1c){_0x299f4e=_0x299f4e-0x96;const _0x49bc70=_0x49bc();let _0x361a92=_0x49bc70[_0x299f4e];return _0x361a92;}export function extractBashCommand(_0x56bb42){const _0x323942=_0x5a5791,_0xe9ebf2={'AunqA':_0x323942(0xba),'tqfaj':function(_0x37e90d,_0x3220a0){return _0x37e90d===_0x3220a0;},'Aohhi':_0x323942(0xb7),'TUMpd':function(_0x1e6bf3,_0xfe703c){return _0x1e6bf3??_0xfe703c;}},_0x550fa5=['command','cmd',_0xe9ebf2['AunqA'],_0x323942(0x9e)];for(const _0x59162d of _0x550fa5){const _0x368b91=_0x56bb42[_0x59162d];if(_0xe9ebf2[_0x323942(0xc8)](typeof _0x368b91,_0xe9ebf2[_0x323942(0xcc)])&&_0x368b91[_0x323942(0x9b)]())return _0x368b91;}const _0x2cf51a=Object[_0x323942(0x96)](_0x56bb42)[_0x323942(0x98)](_0x3bab47=>typeof _0x3bab47==='string'&&_0x3bab47['trim']()['length']>0x0);return _0xe9ebf2['TUMpd'](_0x2cf51a,null);}export function parsePlaywrightCliCommand(_0x36ea36){const _0x1b4c9a=_0x5a5791,_0xe93ec1=_0x36ea36[_0x1b4c9a(0xb9)](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0xe93ec1?.[0x1]??null;}
@@ -1 +1 @@
1
- (function(_0x36cd4c,_0x4653e0){const _0x14bfe8=_0x2b4c,_0x462430=_0x36cd4c();while(!![]){try{const _0x46acc4=parseInt(_0x14bfe8(0x17d))/0x1+-parseInt(_0x14bfe8(0x178))/0x2+parseInt(_0x14bfe8(0x181))/0x3*(-parseInt(_0x14bfe8(0x17c))/0x4)+parseInt(_0x14bfe8(0x17a))/0x5*(parseInt(_0x14bfe8(0x17b))/0x6)+-parseInt(_0x14bfe8(0x182))/0x7*(parseInt(_0x14bfe8(0x17f))/0x8)+parseInt(_0x14bfe8(0x183))/0x9*(parseInt(_0x14bfe8(0x17e))/0xa)+parseInt(_0x14bfe8(0x177))/0xb*(parseInt(_0x14bfe8(0x179))/0xc);if(_0x46acc4===_0x4653e0)break;else _0x462430['push'](_0x462430['shift']());}catch(_0x365ae6){_0x462430['push'](_0x462430['shift']());}}}(_0x2d95,0x95f28));function _0x2b4c(_0x5e22d4,_0x1a121b){_0x5e22d4=_0x5e22d4-0x177;const _0x2d9542=_0x2d95();let _0x2b4c38=_0x2d9542[_0x5e22d4];return _0x2b4c38;}function _0x2d95(){const _0x1b7851=['5Kdrerw','7319478QFTbYc','3414652xkEMPo','156684rsAHAb','10PdjXki','40NDMKvC','qLyXm','3ChHwNJ','1452101STQWVQ','10833786gIlYEI','6655GfAOvv','2188218zFZtSz','20208CxJKbE'];_0x2d95=function(){return _0x1b7851;};return _0x2d95();}const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';export function formatProfileRequiredMessage(_0x1634be){const _0x4faf46=_0x2b4c,_0x239ab4={'qLyXm':function(_0x2208d2,_0x4dadd6){return _0x2208d2(_0x4dadd6);}},_0x4fd3c8=_0x1634be?_0x239ab4[_0x4faf46(0x180)](_0x1634be,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20'+_0x4fd3c8+'.';}
1
+ const _0x4cf69e=_0x12d8;function _0xdd4b(){const _0x47682d=['60hBkmjE','2192616wQGnoH','1628SctUao','743544NNzMKy','1155093UZjMhY','124870FVazgA','112412jICSnV','293164PXBeAK','6YrExLz','ranger\x20profile\x20add\x20local','28ECEXif','ZVthg','2181920fZexKg'];_0xdd4b=function(){return _0x47682d;};return _0xdd4b();}(function(_0x3e8edb,_0x9043c1){const _0x36bdc4=_0x12d8,_0x1effec=_0x3e8edb();while(!![]){try{const _0x21fa38=-parseInt(_0x36bdc4(0x147))/0x1*(-parseInt(_0x36bdc4(0x145))/0x2)+parseInt(_0x36bdc4(0x143))/0x3+-parseInt(_0x36bdc4(0x146))/0x4*(-parseInt(_0x36bdc4(0x13f))/0x5)+parseInt(_0x36bdc4(0x142))/0x6*(parseInt(_0x36bdc4(0x149))/0x7)+parseInt(_0x36bdc4(0x13e))/0x8+parseInt(_0x36bdc4(0x140))/0x9+-parseInt(_0x36bdc4(0x144))/0xa*(parseInt(_0x36bdc4(0x141))/0xb);if(_0x21fa38===_0x9043c1)break;else _0x1effec['push'](_0x1effec['shift']());}catch(_0x1fdaf8){_0x1effec['push'](_0x1effec['shift']());}}}(_0xdd4b,0xbaf2f));function _0x12d8(_0x50dfab,_0x383b18){_0x50dfab=_0x50dfab-0x13d;const _0xdd4b0=_0xdd4b();let _0x12d815=_0xdd4b0[_0x50dfab];return _0x12d815;}const DEFAULT_PROFILE_COMMAND=_0x4cf69e(0x148);export function formatProfileRequiredMessage(_0x423e5b){const _0x45cb41=_0x4cf69e,_0x400721={'ZVthg':function(_0x30ffab,_0x1902cd){return _0x30ffab(_0x1902cd);}},_0x102f09=_0x423e5b?_0x400721[_0x45cb41(0x13d)](_0x423e5b,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20'+_0x102f09+'.';}
@@ -1 +1 @@
1
- function _0x4cec(_0x14199,_0xfff60c){_0x14199=_0x14199-0x97;const _0x52927b=_0x5292();let _0x4cec78=_0x52927b[_0x14199];return _0x4cec78;}(function(_0x134f96,_0x357c3e){const _0x1ac9c7=_0x4cec,_0x10a91b=_0x134f96();while(!![]){try{const _0x3a7547=-parseInt(_0x1ac9c7(0x98))/0x1+parseInt(_0x1ac9c7(0x9f))/0x2+parseInt(_0x1ac9c7(0xa1))/0x3*(-parseInt(_0x1ac9c7(0xa4))/0x4)+-parseInt(_0x1ac9c7(0xa2))/0x5+parseInt(_0x1ac9c7(0x99))/0x6*(parseInt(_0x1ac9c7(0x9e))/0x7)+parseInt(_0x1ac9c7(0x9a))/0x8+parseInt(_0x1ac9c7(0x9b))/0x9;if(_0x3a7547===_0x357c3e)break;else _0x10a91b['push'](_0x10a91b['shift']());}catch(_0x33fcaa){_0x10a91b['push'](_0x10a91b['shift']());}}}(_0x5292,0xc5331));function _0x5292(){const _0x54aadd=['<div\x20class=\x22ranger-banner__message\x22>','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','8014657GqUTOG','2166650oPMleA','IAUkM','12YOsTXJ','340210ImQIln','</div>','1138604ElYnoK','<div\x20class=\x22ranger-banner__content\x22>','\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a','HKghD','1261683CRtJAK','6LXmLnX','2753184odVbzZ','6332706CcWMyG'];_0x5292=function(){return _0x54aadd;};return _0x5292();}const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x522cf9=_0x4cec,_0x35a227={'HKghD':function(_0x471528,_0x3c7869){return _0x471528+_0x3c7869;},'YxERl':_0x522cf9(0xa5),'IAUkM':_0x522cf9(0x9c),'OghUe':'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','Nxrnw':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0x48573b=_0x35a227[_0x522cf9(0x97)](_0x35a227[_0x522cf9(0x97)](_0x35a227['HKghD'](_0x35a227['YxERl'],_0x522cf9(0x9d)),_0x35a227[_0x522cf9(0xa0)])+_0x35a227['OghUe']+'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>',_0x522cf9(0xa3))+_0x522cf9(0xa3)+_0x35a227['Nxrnw'],_0x366e4d=_0x522cf9(0xa6);return'\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20'+JSON['stringify'](_0x48573b)+';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20'+JSON['stringify'](_0x366e4d)+';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a';})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x2cd323){await _0x2cd323['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
1
+ (function(_0x4e43c5,_0x5cf9c8){const _0x1059d3=_0xf8d0,_0x27390e=_0x4e43c5();while(!![]){try{const _0x83f2f4=parseInt(_0x1059d3(0xa9))/0x1+parseInt(_0x1059d3(0xb2))/0x2*(parseInt(_0x1059d3(0xa7))/0x3)+-parseInt(_0x1059d3(0xad))/0x4*(parseInt(_0x1059d3(0xb4))/0x5)+parseInt(_0x1059d3(0xac))/0x6+-parseInt(_0x1059d3(0xb1))/0x7*(parseInt(_0x1059d3(0xa8))/0x8)+-parseInt(_0x1059d3(0xb5))/0x9*(-parseInt(_0x1059d3(0xb9))/0xa)+parseInt(_0x1059d3(0xa6))/0xb*(parseInt(_0x1059d3(0xab))/0xc);if(_0x83f2f4===_0x5cf9c8)break;else _0x27390e['push'](_0x27390e['shift']());}catch(_0x1a477b){_0x27390e['push'](_0x27390e['shift']());}}}(_0x7b37,0xeb4f4));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x1af3d1=_0xf8d0,_0x58267d={'bkNSB':function(_0x2f1d54,_0x534b29){return _0x2f1d54+_0x534b29;},'cwmKf':_0x1af3d1(0xba),'OPknX':_0x1af3d1(0xb8),'gaLaE':_0x1af3d1(0xb3),'BExZH':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0x454263=_0x58267d[_0x1af3d1(0xbb)](_0x58267d['bkNSB'](_0x58267d['bkNSB'](_0x58267d['bkNSB'](_0x58267d[_0x1af3d1(0xbb)](_0x58267d['cwmKf'],_0x1af3d1(0xaa)),'<div\x20class=\x22ranger-banner__message\x22>')+_0x1af3d1(0xb6),_0x58267d['OPknX'])+'</div>',_0x58267d['gaLaE']),_0x58267d[_0x1af3d1(0xb0)]),_0x24576e=_0x1af3d1(0xaf);return _0x1af3d1(0xb7)+JSON[_0x1af3d1(0xae)](_0x454263)+';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20'+JSON['stringify'](_0x24576e)+';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a';})());function _0xf8d0(_0x2452fb,_0xfcdc23){_0x2452fb=_0x2452fb-0xa6;const _0x7b377=_0x7b37();let _0xf8d00d=_0x7b377[_0x2452fb];return _0xf8d00d;}function _0x7b37(){const _0x39b08e=['257868LXAbPU','15164lSQmbp','stringify','\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a','BExZH','2518586DVRQnc','3648890jtWcLy','</div>','1835ENgZXo','65763IzLdhM','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','2290GxSRmF','<div\x20class=\x22ranger-banner__content\x22>','bkNSB','55vLjyGB','3TllnJn','40fAqtdo','316044rYyyYr','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','713628PGicej'];_0x7b37=function(){return _0x39b08e;};return _0x7b37();}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x161436){await _0x161436['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
@@ -1 +1 @@
1
- (function(_0x292f2f,_0x1131a8){const _0x478f77=_0x4072,_0x6186f=_0x292f2f();while(!![]){try{const _0xdbb3d=parseInt(_0x478f77(0x19e))/0x1+-parseInt(_0x478f77(0x199))/0x2*(-parseInt(_0x478f77(0x18c))/0x3)+-parseInt(_0x478f77(0x18a))/0x4+parseInt(_0x478f77(0x1b0))/0x5+-parseInt(_0x478f77(0x1a5))/0x6*(parseInt(_0x478f77(0x1a6))/0x7)+parseInt(_0x478f77(0x184))/0x8*(parseInt(_0x478f77(0x191))/0x9)+parseInt(_0x478f77(0x18b))/0xa*(parseInt(_0x478f77(0x1ad))/0xb);if(_0xdbb3d===_0x1131a8)break;else _0x6186f['push'](_0x6186f['shift']());}catch(_0x7366b6){_0x6186f['push'](_0x6186f['shift']());}}}(_0x28f0,0x87aac));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x1e6488=_0x4072,_0x4a0b77={'cvMHL':function(_0x7be14a,_0xd52692,_0x42517a){return _0x7be14a(_0xd52692,_0x42517a);},'IPtYm':function(_0x22a37c){return _0x22a37c();}};return _0x4a0b77[_0x1e6488(0x1aa)](join,_0x4a0b77['IPtYm'](getRangerHomeDir),'projects.json');}function _0x28f0(){const _0x13f6fc=['stringify','isArray','warn','pYiNx','[ranger]\x20Warning:\x20failed\x20to\x20read\x20','1645856PZKrkV','15820rTqadV','989139uQpjOT','headers','wJJOi','qjKPR','pygPH','9MzmwWP','entries','KRKiS','ywTtN','XDIPm','LrREE','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','settings','4FsKczA','AbraR','lastProfile','now','object','304985GGCOJQ','fTxUP','kqNDO','[ranger]\x20Warning:\x20','split','parse','BQIGa','272964ysBALS','161nICYbo','UyHOO','uOfoa','message','cvMHL','length','.tmp','1111qGMWPE','Xrnpr','ujYxl','3660165ucICjB','cjQSD','projects','keys','profiles','1258336LdnKXS'];_0x28f0=function(){return _0x13f6fc;};return _0x28f0();}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x13c6a8=_0x4072,_0x5d303b={'LrREE':function(_0x3e6705,_0x166f0b){return _0x3e6705(_0x166f0b);},'wFXjx':function(_0x19589b){return _0x19589b();},'ywTtN':function(_0x4891c4,_0x2f1391,_0x8a8311){return _0x4891c4(_0x2f1391,_0x8a8311);},'fenFF':function(_0x35ee5c,_0xb4e8b2){return _0x35ee5c instanceof _0xb4e8b2;},'wJJOi':function(_0x284299,_0x244ac7){return _0x284299!==_0x244ac7;},'EASrR':_0x13c6a8(0x19d)},_0x3989d3=getProjectsConfigPath();if(!_0x5d303b[_0x13c6a8(0x196)](existsSync,_0x3989d3))return _0x5d303b['wFXjx'](emptyConfig);let _0x4869b3;try{_0x4869b3=_0x5d303b[_0x13c6a8(0x194)](readFileSync,_0x3989d3,'utf-8');}catch(_0x2563cf){const _0x5aa984=_0x5d303b['fenFF'](_0x2563cf,Error)?_0x2563cf[_0x13c6a8(0x1a9)]:_0x5d303b['LrREE'](String,_0x2563cf);return console[_0x13c6a8(0x187)](_0x13c6a8(0x189)+_0x3989d3+':\x20'+_0x5aa984+'.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x5d303b['wFXjx'](emptyConfig);}let _0xe44ff4;try{_0xe44ff4=JSON[_0x13c6a8(0x1a3)](_0x4869b3);}catch(_0x2651cf){const _0x563a53=_0x2651cf instanceof Error?_0x2651cf[_0x13c6a8(0x1a9)]:_0x5d303b['LrREE'](String,_0x2651cf);return console[_0x13c6a8(0x187)](_0x13c6a8(0x1a1)+_0x3989d3+'\x20is\x20not\x20valid\x20JSON\x20('+_0x563a53+').\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}if(!_0xe44ff4||_0x5d303b['wJJOi'](typeof _0xe44ff4,_0x5d303b['EASrR'])||Array['isArray'](_0xe44ff4)||_0xe44ff4['version']!==CURRENT_VERSION||_0x5d303b[_0x13c6a8(0x18e)](typeof _0xe44ff4[_0x13c6a8(0x181)],_0x13c6a8(0x19d))||_0xe44ff4[_0x13c6a8(0x181)]===null||Array[_0x13c6a8(0x186)](_0xe44ff4['projects']))return console[_0x13c6a8(0x187)]('[ranger]\x20Warning:\x20'+_0x3989d3+_0x13c6a8(0x197)),emptyConfig();return _0xe44ff4;}export function writeProjectsConfig(_0x365ddd){const _0x15c3cd=_0x4072,_0x57b9c3={'kqNDO':function(_0x15b75b){return _0x15b75b();},'AbraR':function(_0x59c6ee,_0x476296){return _0x59c6ee(_0x476296);},'ujYxl':function(_0x2acdd6,_0x5ab1ce){return _0x2acdd6(_0x5ab1ce);},'MnRuf':function(_0x37df74,_0x372896){return _0x37df74+_0x372896;},'KTKuJ':function(_0x24c88b,_0x4c790b,_0x34bb33,_0x5ddf6a){return _0x24c88b(_0x4c790b,_0x34bb33,_0x5ddf6a);},'uOfoa':'utf-8','KRKiS':function(_0x29b3c5,_0x2c8e4f,_0x1a2a92){return _0x29b3c5(_0x2c8e4f,_0x1a2a92);},'ROeCh':function(_0x396954,_0x4f2cd5){return _0x396954(_0x4f2cd5);}},_0x25c4ca=_0x57b9c3[_0x15c3cd(0x1a0)](getProjectsConfigPath),_0x4d56c6=_0x57b9c3[_0x15c3cd(0x19a)](dirname,_0x25c4ca);!_0x57b9c3[_0x15c3cd(0x1af)](existsSync,_0x4d56c6)&&mkdirSync(_0x4d56c6,{'recursive':!![]});const _0x6ecdf3=_0x25c4ca+'.'+process['pid']+'.'+Date[_0x15c3cd(0x19c)]()+_0x15c3cd(0x1ac),_0x2a0637=_0x57b9c3['MnRuf'](JSON[_0x15c3cd(0x185)](_0x365ddd,null,0x2),'\x0a');try{_0x57b9c3['KTKuJ'](writeFileSync,_0x6ecdf3,_0x2a0637,{'encoding':_0x57b9c3[_0x15c3cd(0x1a8)],'mode':0x180}),_0x57b9c3[_0x15c3cd(0x193)](renameSync,_0x6ecdf3,_0x25c4ca);}catch(_0x368738){try{_0x57b9c3['ROeCh'](existsSync,_0x6ecdf3)&&unlinkSync(_0x6ecdf3);}catch{}throw _0x368738;}}export function readProfileOverrides(_0x38d970,_0x28a99c){const _0x19f0d5=_0x4072,_0x566f67=readProjectsConfig(),_0x73dcbe=_0x566f67[_0x19f0d5(0x181)][_0x38d970];if(!_0x73dcbe||!_0x73dcbe['profiles'])return null;const _0x5a6703=_0x73dcbe['profiles'][_0x28a99c];if(!_0x5a6703||!_0x5a6703[_0x19f0d5(0x198)])return null;return _0x5a6703[_0x19f0d5(0x198)]??null;}export function setProfileOverride(_0x49ef06,_0x519b25,_0x42865b,_0x4e7b7d){const _0x3bebef=_0x4072,_0x595dbe={'smIOf':'keyPath\x20is\x20required','Xrnpr':function(_0x2d5b34){return _0x2d5b34();},'cjQSD':function(_0x3bd78e,_0x279204){return _0x3bd78e(_0x279204);}};if(!_0x42865b)throw new Error(_0x595dbe['smIOf']);const _0x2313ad=_0x595dbe[_0x3bebef(0x1ae)](readProjectsConfig),_0x325998=_0x2313ad[_0x3bebef(0x181)][_0x49ef06]??={},_0x7f43ec=_0x325998[_0x3bebef(0x183)]??={},_0x1b7b33=_0x7f43ec[_0x519b25]??={},_0x17a3cc=_0x1b7b33['settings']??={};setByKeyPath(_0x17a3cc,_0x42865b,_0x4e7b7d),_0x595dbe[_0x3bebef(0x1b1)](writeProjectsConfig,_0x2313ad);}export function unsetProfileOverride(_0x4d9a34,_0x12ac13,_0x3f9dab){const _0x6d0e78=_0x4072,_0x12f350={'pYiNx':'keyPath\x20is\x20required','UyHOO':function(_0x5e1b8d){return _0x5e1b8d();}};if(!_0x3f9dab)throw new Error(_0x12f350[_0x6d0e78(0x188)]);const _0x5f4dca=_0x12f350[_0x6d0e78(0x1a7)](readProjectsConfig),_0x48db5c=_0x5f4dca['projects'][_0x4d9a34];if(!_0x48db5c?.['profiles'])return![];const _0x2352cf=_0x48db5c[_0x6d0e78(0x183)][_0x12ac13];if(!_0x2352cf?.[_0x6d0e78(0x198)])return![];const _0x1b30ac=deleteByKeyPath(_0x2352cf[_0x6d0e78(0x198)],_0x3f9dab);if(!_0x1b30ac)return![];return writeProjectsConfig(_0x5f4dca),!![];}export function resetProfileOverrides(_0x279aab,_0x1411f2){const _0x174336=_0x4072,_0x9b5662={'uECrk':function(_0xb37238){return _0xb37238();}},_0x1ea2d0=_0x9b5662['uECrk'](readProjectsConfig),_0x5ea1ef=_0x1ea2d0[_0x174336(0x181)][_0x279aab];if(!_0x5ea1ef?.['profiles'])return;if(!(_0x1411f2 in _0x5ea1ef['profiles']))return;delete _0x5ea1ef['profiles'][_0x1411f2],Object[_0x174336(0x182)](_0x5ea1ef[_0x174336(0x183)])['length']===0x0&&(!_0x5ea1ef['lastProfile']?delete _0x1ea2d0[_0x174336(0x181)][_0x279aab]:_0x5ea1ef[_0x174336(0x183)]={}),writeProjectsConfig(_0x1ea2d0);}export function readLastProfile(_0x31425e){const _0x25e448=_0x4072,_0x493050=readProjectsConfig(),_0x586413=_0x493050['projects'][_0x31425e];return _0x586413?.[_0x25e448(0x19b)]??null;}export function writeLastProfile(_0x112661,_0x5399fc){const _0xb1f4d0=_0x4072,_0x83dc8c={'XDIPm':function(_0x34c2d0){return _0x34c2d0();},'fTxUP':function(_0x118bbe,_0x4ab123){return _0x118bbe(_0x4ab123);}},_0x472f67=_0x83dc8c[_0xb1f4d0(0x195)](readProjectsConfig),_0x3c564e=_0x472f67['projects'][_0x112661]??={};_0x3c564e[_0xb1f4d0(0x19b)]=_0x5399fc,_0x83dc8c[_0xb1f4d0(0x19f)](writeProjectsConfig,_0x472f67);}export function mergeCloudProfileSettings(_0x473eff,_0x2f5e1a){const _0x1e9a93=_0x4072,_0x4771fe={'KXkyn':function(_0xeabf2a,_0xe4a179){return _0xeabf2a===_0xe4a179;},'ulkrd':function(_0x46d8dd,_0x18b96c){return _0x46d8dd===_0x18b96c;},'pygPH':function(_0x4c6a5e,_0x5e6b8e){return _0x4c6a5e===_0x5e6b8e;},'rKXUc':function(_0x1aa4f1,_0x5ba3bc){return _0x1aa4f1(_0x5ba3bc);}},_0x32f256={..._0x473eff??{}};if(!_0x2f5e1a)return _0x32f256;for(const [_0x469cb3,_0x5d086f]of Object[_0x1e9a93(0x192)](_0x2f5e1a)){if(_0x4771fe['KXkyn'](_0x5d086f,undefined))continue;if(_0x5d086f===null){delete _0x32f256[_0x469cb3];continue;}if(_0x4771fe['ulkrd'](_0x469cb3,_0x1e9a93(0x18d))||_0x4771fe[_0x1e9a93(0x190)](_0x469cb3,'setupHeaders')){const _0x4c9eba=asRecord(_0x32f256[_0x469cb3])??{},_0xbbe372=_0x4771fe['rKXUc'](asRecord,_0x5d086f);if(!_0xbbe372){_0x32f256[_0x469cb3]=_0x5d086f;continue;}const _0x33b840={..._0x4c9eba};for(const [_0x18724e,_0x283816]of Object['entries'](_0xbbe372)){if(_0x4771fe['pygPH'](_0x283816,null))delete _0x33b840[_0x18724e];else _0x283816!==undefined&&(_0x33b840[_0x18724e]=_0x283816);}_0x32f256[_0x469cb3]=_0x33b840;continue;}_0x32f256[_0x469cb3]=_0x5d086f;}return _0x32f256;}function asRecord(_0x2648a7){return _0x2648a7&&typeof _0x2648a7==='object'&&!Array['isArray'](_0x2648a7)?_0x2648a7:undefined;}function _0x4072(_0xfb6989,_0x19f795){_0xfb6989=_0xfb6989-0x181;const _0x28f075=_0x28f0();let _0x4072fc=_0x28f075[_0xfb6989];return _0x4072fc;}function setByKeyPath(_0x27c6eb,_0xa51a82,_0x378210){const _0x503b9b=_0x4072,_0xbf4773={'BpOBi':function(_0x4cc416,_0x4874dd){return _0x4cc416!==_0x4874dd;},'BQIGa':'object','isWVs':function(_0x2ad50f,_0x3b78b5){return _0x2ad50f-_0x3b78b5;}},_0x274735=_0xa51a82[_0x503b9b(0x1a2)]('.');let _0x91bd2f=_0x27c6eb;for(let _0x3aea0c=0x0;_0x3aea0c<_0x274735[_0x503b9b(0x1ab)]-0x1;_0x3aea0c++){const _0x41ec47=_0x274735[_0x3aea0c],_0x4189fe=_0x91bd2f[_0x41ec47];(!_0x4189fe||_0xbf4773['BpOBi'](typeof _0x4189fe,_0xbf4773[_0x503b9b(0x1a4)])||Array['isArray'](_0x4189fe))&&(_0x91bd2f[_0x41ec47]={}),_0x91bd2f=_0x91bd2f[_0x41ec47];}_0x91bd2f[_0x274735[_0xbf4773['isWVs'](_0x274735['length'],0x1)]]=_0x378210;}function deleteByKeyPath(_0x461c4e,_0x17dee8){const _0x34a646=_0x4072,_0x1a1534={'qjKPR':function(_0x250eae,_0x5e9dfd){return _0x250eae-_0x5e9dfd;}},_0xc7ecbe=_0x17dee8[_0x34a646(0x1a2)]('.');let _0x21f473=_0x461c4e;for(let _0x4acd49=0x0;_0x4acd49<_0x1a1534[_0x34a646(0x18f)](_0xc7ecbe[_0x34a646(0x1ab)],0x1);_0x4acd49++){const _0x1d8352=_0xc7ecbe[_0x4acd49],_0x6a2c91=_0x21f473[_0x1d8352];if(!_0x6a2c91||typeof _0x6a2c91!=='object'||Array['isArray'](_0x6a2c91))return![];_0x21f473=_0x6a2c91;}const _0x18d92e=_0xc7ecbe[_0xc7ecbe['length']-0x1];if(!(_0x18d92e in _0x21f473))return![];return delete _0x21f473[_0x18d92e],!![];}
1
+ (function(_0x1f7773,_0x120ae4){const _0x1fd1c3=_0x14a4,_0x36f0ff=_0x1f7773();while(!![]){try{const _0x3631b6=-parseInt(_0x1fd1c3(0x155))/0x1+-parseInt(_0x1fd1c3(0x12e))/0x2+parseInt(_0x1fd1c3(0x133))/0x3+-parseInt(_0x1fd1c3(0x132))/0x4*(parseInt(_0x1fd1c3(0x15a))/0x5)+parseInt(_0x1fd1c3(0x14e))/0x6+parseInt(_0x1fd1c3(0x145))/0x7*(parseInt(_0x1fd1c3(0x157))/0x8)+-parseInt(_0x1fd1c3(0x150))/0x9*(-parseInt(_0x1fd1c3(0x139))/0xa);if(_0x3631b6===_0x120ae4)break;else _0x36f0ff['push'](_0x36f0ff['shift']());}catch(_0x4a1772){_0x36f0ff['push'](_0x36f0ff['shift']());}}}(_0x31cf,0x7b3da));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x10c71c={'TRlSx':function(_0x59e952,_0x4eff2d,_0x4fcd8b){return _0x59e952(_0x4eff2d,_0x4fcd8b);},'GCbHp':function(_0x4c921b){return _0x4c921b();},'vtuaT':'projects.json'};return _0x10c71c['TRlSx'](join,_0x10c71c['GCbHp'](getRangerHomeDir),_0x10c71c['vtuaT']);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}function _0x14a4(_0x1d34db,_0x1e352c){_0x1d34db=_0x1d34db-0x12d;const _0x31cfae=_0x31cf();let _0x14a484=_0x31cfae[_0x1d34db];return _0x14a484;}export function readProjectsConfig(){const _0xe9ca35=_0x14a4,_0xd303c2={'TMofU':function(_0x3c69f5,_0x2ead18,_0x47656d){return _0x3c69f5(_0x2ead18,_0x47656d);},'OeeKm':function(_0x2224a4,_0x3022b2){return _0x2224a4 instanceof _0x3022b2;},'DzWOr':function(_0x2d8e79,_0x2c9e88){return _0x2d8e79(_0x2c9e88);},'MmBkR':function(_0x55bbd5){return _0x55bbd5();},'PnKNj':function(_0x23727a,_0x237ac8){return _0x23727a(_0x237ac8);},'xOKBx':'object','zQbRM':function(_0x47bde0,_0x51a9dc){return _0x47bde0!==_0x51a9dc;}},_0x3746e9=getProjectsConfigPath();if(!existsSync(_0x3746e9))return emptyConfig();let _0x5d7238;try{_0x5d7238=_0xd303c2[_0xe9ca35(0x12f)](readFileSync,_0x3746e9,'utf-8');}catch(_0x497784){const _0x28a48c=_0xd303c2['OeeKm'](_0x497784,Error)?_0x497784[_0xe9ca35(0x13d)]:_0xd303c2['DzWOr'](String,_0x497784);return console['warn'](_0xe9ca35(0x14f)+_0x3746e9+':\x20'+_0x28a48c+_0xe9ca35(0x152)),_0xd303c2['MmBkR'](emptyConfig);}let _0x162ef4;try{_0x162ef4=JSON['parse'](_0x5d7238);}catch(_0x28ade1){const _0x5e21b6=_0xd303c2[_0xe9ca35(0x134)](_0x28ade1,Error)?_0x28ade1[_0xe9ca35(0x13d)]:_0xd303c2[_0xe9ca35(0x137)](String,_0x28ade1);return console['warn']('[ranger]\x20Warning:\x20'+_0x3746e9+_0xe9ca35(0x140)+_0x5e21b6+').\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}if(!_0x162ef4||typeof _0x162ef4!==_0xd303c2[_0xe9ca35(0x142)]||Array[_0xe9ca35(0x136)](_0x162ef4)||_0xd303c2[_0xe9ca35(0x156)](_0x162ef4[_0xe9ca35(0x14b)],CURRENT_VERSION)||_0xd303c2['zQbRM'](typeof _0x162ef4['projects'],_0xd303c2[_0xe9ca35(0x142)])||_0x162ef4['projects']===null||Array[_0xe9ca35(0x136)](_0x162ef4['projects']))return console[_0xe9ca35(0x141)]('[ranger]\x20Warning:\x20'+_0x3746e9+_0xe9ca35(0x148)),emptyConfig();return _0x162ef4;}export function writeProjectsConfig(_0x11ee8f){const _0x5db6ce=_0x14a4,_0x2529f8={'qkHvG':function(_0x83ca57,_0xdccc26){return _0x83ca57(_0xdccc26);},'XvqaR':function(_0x49857f,_0x595819){return _0x49857f(_0x595819);},'WNOou':function(_0x1e15ee,_0x1763da){return _0x1e15ee+_0x1763da;},'KXWJA':function(_0x35eb7d,_0x4e63d2,_0x2dca1d,_0x5422c8){return _0x35eb7d(_0x4e63d2,_0x2dca1d,_0x5422c8);},'tauaF':_0x5db6ce(0x131),'ualEt':function(_0x2f465a,_0x5560c1,_0x4245e1){return _0x2f465a(_0x5560c1,_0x4245e1);}},_0x673f91=getProjectsConfigPath(),_0x142e2a=_0x2529f8['qkHvG'](dirname,_0x673f91);!_0x2529f8['XvqaR'](existsSync,_0x142e2a)&&mkdirSync(_0x142e2a,{'recursive':!![]});const _0x6ccc75=_0x673f91+'.'+process[_0x5db6ce(0x13b)]+'.'+Date['now']()+'.tmp',_0x5e01e9=_0x2529f8[_0x5db6ce(0x14d)](JSON[_0x5db6ce(0x159)](_0x11ee8f,null,0x2),'\x0a');try{_0x2529f8['KXWJA'](writeFileSync,_0x6ccc75,_0x5e01e9,{'encoding':_0x2529f8[_0x5db6ce(0x144)],'mode':0x180}),_0x2529f8['ualEt'](renameSync,_0x6ccc75,_0x673f91);}catch(_0x18bf66){try{existsSync(_0x6ccc75)&&_0x2529f8['qkHvG'](unlinkSync,_0x6ccc75);}catch{}throw _0x18bf66;}}export function readProfileOverrides(_0x9d4cce,_0x25fc33){const _0x4c536c=_0x14a4,_0x3993f9={'xPmhh':function(_0x28439b){return _0x28439b();}},_0x3d7c7b=_0x3993f9['xPmhh'](readProjectsConfig),_0x3f0a8e=_0x3d7c7b[_0x4c536c(0x138)][_0x9d4cce];if(!_0x3f0a8e||!_0x3f0a8e['profiles'])return null;const _0x1c6dae=_0x3f0a8e[_0x4c536c(0x12d)][_0x25fc33];if(!_0x1c6dae||!_0x1c6dae[_0x4c536c(0x149)])return null;return _0x1c6dae['settings']??null;}export function setProfileOverride(_0xeb9f7f,_0x43c466,_0x4a3af2,_0x4a9f9e){const _0x21bf26=_0x14a4;if(!_0x4a3af2)throw new Error('keyPath\x20is\x20required');const _0x106adb=readProjectsConfig(),_0x1cc336=_0x106adb['projects'][_0xeb9f7f]??={},_0x5b7e58=_0x1cc336[_0x21bf26(0x12d)]??={},_0x18cb44=_0x5b7e58[_0x43c466]??={},_0x534b08=_0x18cb44['settings']??={};setByKeyPath(_0x534b08,_0x4a3af2,_0x4a9f9e),writeProjectsConfig(_0x106adb);}export function unsetProfileOverride(_0x10667e,_0x3d35c1,_0x5f03bf){const _0x230a0f=_0x14a4,_0x24d593={'sDKHx':function(_0x573d5c){return _0x573d5c();},'UkDFM':function(_0x55774d,_0x40ce23){return _0x55774d(_0x40ce23);}};if(!_0x5f03bf)throw new Error(_0x230a0f(0x14a));const _0xf6aa6=_0x24d593['sDKHx'](readProjectsConfig),_0x4d9c3d=_0xf6aa6[_0x230a0f(0x138)][_0x10667e];if(!_0x4d9c3d?.[_0x230a0f(0x12d)])return![];const _0x16ed35=_0x4d9c3d[_0x230a0f(0x12d)][_0x3d35c1];if(!_0x16ed35?.[_0x230a0f(0x149)])return![];const _0x52ce4c=deleteByKeyPath(_0x16ed35['settings'],_0x5f03bf);if(!_0x52ce4c)return![];return _0x24d593[_0x230a0f(0x151)](writeProjectsConfig,_0xf6aa6),!![];}export function resetProfileOverrides(_0xad01e1,_0x17cab7){const _0x5f23c8=_0x14a4,_0x2762f7=readProjectsConfig(),_0x1a3218=_0x2762f7['projects'][_0xad01e1];if(!_0x1a3218?.[_0x5f23c8(0x12d)])return;if(!(_0x17cab7 in _0x1a3218['profiles']))return;delete _0x1a3218['profiles'][_0x17cab7],Object['keys'](_0x1a3218[_0x5f23c8(0x12d)])[_0x5f23c8(0x158)]===0x0&&(!_0x1a3218[_0x5f23c8(0x154)]?delete _0x2762f7['projects'][_0xad01e1]:_0x1a3218['profiles']={}),writeProjectsConfig(_0x2762f7);}export function readLastProfile(_0x107a50){const _0x100b38=_0x14a4,_0x5e019f=readProjectsConfig(),_0x83703b=_0x5e019f[_0x100b38(0x138)][_0x107a50];return _0x83703b?.[_0x100b38(0x154)]??null;}export function writeLastProfile(_0x1759f8,_0x836e0){const _0x8359ba=_0x14a4,_0x490a38={'BwzcO':function(_0x1e9ed3){return _0x1e9ed3();},'myvzl':function(_0x25c420,_0x29c3ca){return _0x25c420(_0x29c3ca);}},_0x4b0954=_0x490a38[_0x8359ba(0x147)](readProjectsConfig),_0x465bf8=_0x4b0954['projects'][_0x1759f8]??={};_0x465bf8['lastProfile']=_0x836e0,_0x490a38[_0x8359ba(0x13c)](writeProjectsConfig,_0x4b0954);}function _0x31cf(){const _0x517e92=['puRPD','tauaF','1035951VgeRQy','Qgqiz','BwzcO','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','settings','keyPath\x20is\x20required','version','uUHWa','WNOou','92874uJWVPr','[ranger]\x20Warning:\x20failed\x20to\x20read\x20','414999EeDKlA','UkDFM','.\x20Ignoring\x20local\x20profile\x20overrides.','setupHeaders','lastProfile','667075NxWCGt','zQbRM','16CSdCux','length','stringify','15XfcYed','profiles','812304kGekzk','TMofU','entries','utf-8','1010056GexCLq','123975QymKVD','OeeKm','headers','isArray','PnKNj','projects','430wyewbB','split','pid','myvzl','message','FutKh','OWXrS','\x20is\x20not\x20valid\x20JSON\x20(','warn','xOKBx'];_0x31cf=function(){return _0x517e92;};return _0x31cf();}export function mergeCloudProfileSettings(_0x1b7f6c,_0xd65ab5){const _0x595ae0=_0x14a4,_0x1da6d4={'RIKjl':function(_0x4ed97c,_0x4e08a3){return _0x4ed97c===_0x4e08a3;},'puRPD':function(_0x3eb59a,_0x1c6400){return _0x3eb59a===_0x1c6400;},'LwShl':function(_0x372807,_0x23b39a){return _0x372807===_0x23b39a;},'ayKEk':_0x595ae0(0x135),'iHNIl':_0x595ae0(0x153),'bBIHw':function(_0x3dbd71,_0x57ed5e){return _0x3dbd71===_0x57ed5e;},'pChfB':function(_0x6dfbb8,_0x4ec736){return _0x6dfbb8!==_0x4ec736;}},_0x5421f4={..._0x1b7f6c??{}};if(!_0xd65ab5)return _0x5421f4;for(const [_0x287919,_0x2ee380]of Object[_0x595ae0(0x130)](_0xd65ab5)){if(_0x1da6d4['RIKjl'](_0x2ee380,undefined))continue;if(_0x1da6d4[_0x595ae0(0x143)](_0x2ee380,null)){delete _0x5421f4[_0x287919];continue;}if(_0x1da6d4['LwShl'](_0x287919,_0x1da6d4['ayKEk'])||_0x287919===_0x1da6d4['iHNIl']){const _0x1cd093=asRecord(_0x5421f4[_0x287919])??{},_0x3f6360=asRecord(_0x2ee380);if(!_0x3f6360){_0x5421f4[_0x287919]=_0x2ee380;continue;}const _0x14379a={..._0x1cd093};for(const [_0x306606,_0x5e1be4]of Object['entries'](_0x3f6360)){if(_0x1da6d4['bBIHw'](_0x5e1be4,null))delete _0x14379a[_0x306606];else _0x1da6d4['pChfB'](_0x5e1be4,undefined)&&(_0x14379a[_0x306606]=_0x5e1be4);}_0x5421f4[_0x287919]=_0x14379a;continue;}_0x5421f4[_0x287919]=_0x2ee380;}return _0x5421f4;}function asRecord(_0x160195){const _0x218e27=_0x14a4,_0x38cbb6={'FutKh':function(_0x362ac2,_0x30d44e){return _0x362ac2===_0x30d44e;},'yYZSV':'object'};return _0x160195&&_0x38cbb6[_0x218e27(0x13e)](typeof _0x160195,_0x38cbb6['yYZSV'])&&!Array[_0x218e27(0x136)](_0x160195)?_0x160195:undefined;}function setByKeyPath(_0x134b1e,_0x6d33ab,_0x1f4e85){const _0x59bdaa=_0x14a4,_0x4d664c={'uUHWa':function(_0xc31b59,_0x22ea21){return _0xc31b59-_0x22ea21;},'tROcQ':function(_0x28a02d,_0x89a7d){return _0x28a02d!==_0x89a7d;}},_0x3379c9=_0x6d33ab[_0x59bdaa(0x13a)]('.');let _0xad156=_0x134b1e;for(let _0x2d3168=0x0;_0x2d3168<_0x4d664c[_0x59bdaa(0x14c)](_0x3379c9['length'],0x1);_0x2d3168++){const _0x451be0=_0x3379c9[_0x2d3168],_0x47e7d9=_0xad156[_0x451be0];(!_0x47e7d9||_0x4d664c['tROcQ'](typeof _0x47e7d9,'object')||Array['isArray'](_0x47e7d9))&&(_0xad156[_0x451be0]={}),_0xad156=_0xad156[_0x451be0];}_0xad156[_0x3379c9[_0x3379c9[_0x59bdaa(0x158)]-0x1]]=_0x1f4e85;}function deleteByKeyPath(_0x5255d7,_0x94d852){const _0x4f9acc=_0x14a4,_0x497f65={'Qgqiz':function(_0x368761,_0xe0a4d5){return _0x368761<_0xe0a4d5;},'BHyzN':'object','OWXrS':function(_0x450faf,_0x381751){return _0x450faf in _0x381751;}},_0x7e121f=_0x94d852['split']('.');let _0x56effb=_0x5255d7;for(let _0x9bbfa9=0x0;_0x497f65[_0x4f9acc(0x146)](_0x9bbfa9,_0x7e121f[_0x4f9acc(0x158)]-0x1);_0x9bbfa9++){const _0x1ea97d=_0x7e121f[_0x9bbfa9],_0x5923ea=_0x56effb[_0x1ea97d];if(!_0x5923ea||typeof _0x5923ea!==_0x497f65['BHyzN']||Array[_0x4f9acc(0x136)](_0x5923ea))return![];_0x56effb=_0x5923ea;}const _0x55cdea=_0x7e121f[_0x7e121f[_0x4f9acc(0x158)]-0x1];if(!_0x497f65[_0x4f9acc(0x13f)](_0x55cdea,_0x56effb))return![];return delete _0x56effb[_0x55cdea],!![];}
@@ -1 +1 @@
1
- (function(_0x39086a,_0x35c802){const _0x106ea6=_0x1eaf,_0x2aa164=_0x39086a();while(!![]){try{const _0x3a6753=-parseInt(_0x106ea6(0x1ba))/0x1*(-parseInt(_0x106ea6(0x1ad))/0x2)+parseInt(_0x106ea6(0x1be))/0x3+-parseInt(_0x106ea6(0x1bd))/0x4*(-parseInt(_0x106ea6(0x1b9))/0x5)+-parseInt(_0x106ea6(0x1bf))/0x6*(-parseInt(_0x106ea6(0x1ae))/0x7)+parseInt(_0x106ea6(0x1b3))/0x8+parseInt(_0x106ea6(0x1b2))/0x9+parseInt(_0x106ea6(0x1b4))/0xa*(-parseInt(_0x106ea6(0x1bb))/0xb);if(_0x3a6753===_0x35c802)break;else _0x2aa164['push'](_0x2aa164['shift']());}catch(_0x223a02){_0x2aa164['push'](_0x2aa164['shift']());}}}(_0x36af,0x8a862));function _0x36af(){const _0x2f9c18=['DYrXz','637060NQYGha','8039CQUYOK','88OeaNas','message','20ApYhJo','2634216UFcvmP','6MfWmXi','object','6nSxrMT','5918304RTLBUK','GSJHj','OAMBp','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','1838052ualpCX','34728gccqIY','2532370Fdwhmt','tBzqs','model','parse'];_0x36af=function(){return _0x2f9c18;};return _0x36af();}import{readFile}from'fs/promises';function _0x1eaf(_0x361ec8,_0x3655eb){_0x361ec8=_0x361ec8-0x1ac;const _0x36af17=_0x36af();let _0x1eafe5=_0x36af17[_0x361ec8];return _0x1eafe5;}import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){return join(getRangerDir(),'config.json');}export async function loadRangerConfig(){const _0x430abe=_0x1eaf,_0x471c21={'lEaCf':function(_0x409f0d){return _0x409f0d();},'DYrXz':function(_0x199b8a,_0x3cec4d){return _0x199b8a(_0x3cec4d);},'GSJHj':function(_0x5df83d,_0x560129,_0x4a2828){return _0x5df83d(_0x560129,_0x4a2828);},'tBzqs':'utf-8','uRtBq':function(_0x2e66c6,_0x306d56){return _0x2e66c6!==_0x306d56;},'OAMBp':'string'},_0x20c91b=_0x471c21['lEaCf'](getRangerConfigPath);if(!_0x471c21[_0x430abe(0x1b8)](existsSync,_0x20c91b))return{};try{const _0x1f088c=await _0x471c21[_0x430abe(0x1af)](readFile,_0x20c91b,_0x471c21[_0x430abe(0x1b5)]),_0x1ed998=JSON[_0x430abe(0x1b7)](_0x1f088c);if(!_0x1ed998||_0x471c21['uRtBq'](typeof _0x1ed998,_0x430abe(0x1ac))||Array['isArray'](_0x1ed998))return{};const _0x1f0a30={},_0x59c82e=_0x1ed998['model'];return typeof _0x59c82e===_0x471c21[_0x430abe(0x1b0)]&&(_0x1f0a30[_0x430abe(0x1b6)]=_0x59c82e),_0x1f0a30;}catch(_0x42a9f8){const _0xa505ba=_0x42a9f8 instanceof Error?_0x42a9f8[_0x430abe(0x1bc)]:String(_0x42a9f8);return console['warn'](_0x430abe(0x1b1)+_0x20c91b+':\x20'+_0xa505ba),{};}}
1
+ function _0x4e5c(){const _0x4c8d4e=['warn','2501527JjkUkY','126fAfFPF','2263811bhFKAh','10qPtFFN','model','message','27876LqIEAz','20VbrbaB','788IXmJii','GhYjN','178192ldasvj','utf-8','172146HBNtVE','string','gNSaA','10640yqIshy','1144644WBhTke'];_0x4e5c=function(){return _0x4c8d4e;};return _0x4e5c();}(function(_0x4c5c71,_0x178428){const _0x4537ad=_0x3a8a,_0x1d9cee=_0x4c5c71();while(!![]){try{const _0x2f7185=parseInt(_0x4537ad(0x162))/0x1+-parseInt(_0x4537ad(0x15f))/0x2*(parseInt(_0x4537ad(0x156))/0x3)+parseInt(_0x4537ad(0x164))/0x4*(-parseInt(_0x4537ad(0x159))/0x5)+-parseInt(_0x4537ad(0x15a))/0x6+parseInt(_0x4537ad(0x15c))/0x7+parseInt(_0x4537ad(0x166))/0x8*(parseInt(_0x4537ad(0x15d))/0x9)+parseInt(_0x4537ad(0x163))/0xa*(parseInt(_0x4537ad(0x15e))/0xb);if(_0x2f7185===_0x178428)break;else _0x1d9cee['push'](_0x1d9cee['shift']());}catch(_0x1b3bed){_0x1d9cee['push'](_0x1d9cee['shift']());}}}(_0x4e5c,0x33b3f));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';function _0x3a8a(_0x2fe4c9,_0x3f7905){_0x2fe4c9=_0x2fe4c9-0x155;const _0x4e5c73=_0x4e5c();let _0x3a8a82=_0x4e5c73[_0x2fe4c9];return _0x3a8a82;}export function getRangerConfigPath(){const _0x5f1bbb=_0x3a8a,_0x5a1e58={'gNSaA':'config.json'};return join(getRangerDir(),_0x5a1e58[_0x5f1bbb(0x158)]);}export async function loadRangerConfig(){const _0x2a2290=_0x3a8a,_0x33c06c={'hlmfv':function(_0x298b5d,_0x1314d8){return _0x298b5d(_0x1314d8);},'GhYjN':function(_0x166346,_0x447a43,_0x45f73c){return _0x166346(_0x447a43,_0x45f73c);},'taRvN':function(_0x4b057d,_0x1232a9){return _0x4b057d!==_0x1232a9;},'qqIfF':function(_0x1ebcab,_0x543d50){return _0x1ebcab===_0x543d50;},'srdHQ':_0x2a2290(0x157)},_0xcafa55=getRangerConfigPath();if(!_0x33c06c['hlmfv'](existsSync,_0xcafa55))return{};try{const _0x54ad61=await _0x33c06c[_0x2a2290(0x165)](readFile,_0xcafa55,_0x2a2290(0x155)),_0x3eb650=JSON['parse'](_0x54ad61);if(!_0x3eb650||_0x33c06c['taRvN'](typeof _0x3eb650,'object')||Array['isArray'](_0x3eb650))return{};const _0x5016a1={},_0x372301=_0x3eb650[_0x2a2290(0x160)];return _0x33c06c['qqIfF'](typeof _0x372301,_0x33c06c['srdHQ'])&&(_0x5016a1[_0x2a2290(0x160)]=_0x372301),_0x5016a1;}catch(_0x4b52f4){const _0x492d25=_0x4b52f4 instanceof Error?_0x4b52f4[_0x2a2290(0x161)]:String(_0x4b52f4);return console[_0x2a2290(0x15b)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0xcafa55+':\x20'+_0x492d25),{};}}
@@ -1 +1 @@
1
- (function(_0x5f3f09,_0x118288){const _0x2b6b4e=_0x3cca,_0x56631e=_0x5f3f09();while(!![]){try{const _0x287be0=-parseInt(_0x2b6b4e(0xa6))/0x1*(-parseInt(_0x2b6b4e(0x9d))/0x2)+-parseInt(_0x2b6b4e(0xa2))/0x3+-parseInt(_0x2b6b4e(0xa8))/0x4*(-parseInt(_0x2b6b4e(0xa0))/0x5)+-parseInt(_0x2b6b4e(0x9f))/0x6*(parseInt(_0x2b6b4e(0xad))/0x7)+-parseInt(_0x2b6b4e(0xab))/0x8+-parseInt(_0x2b6b4e(0xa1))/0x9+parseInt(_0x2b6b4e(0xa4))/0xa;if(_0x287be0===_0x118288)break;else _0x56631e['push'](_0x56631e['shift']());}catch(_0x1e4156){_0x56631e['push'](_0x56631e['shift']());}}}(_0x2b41,0x2aed4));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x3ecfce=_0x3cca,_0x2a83a3={'lWBIv':'.ranger'};let _0x1587d0=process[_0x3ecfce(0xac)]();const _0x2eaf48=parse(_0x1587d0)['root'];while(_0x1587d0!==_0x2eaf48){if(existsSync(join(_0x1587d0,_0x2a83a3[_0x3ecfce(0xa3)])))return _0x1587d0;_0x1587d0=dirname(_0x1587d0);}if(existsSync(join(_0x2eaf48,_0x2a83a3[_0x3ecfce(0xa3)])))return _0x2eaf48;const _0x127c71=findGitRoot();if(_0x127c71)return _0x127c71;return process['cwd']();}function _0x3cca(_0x2b6c1d,_0x31a93b){_0x2b6c1d=_0x2b6c1d-0x9d;const _0x2b412f=_0x2b41();let _0x3ccab6=_0x2b412f[_0x2b6c1d];return _0x3ccab6;}function _0x2b41(){const _0x5b2152=['2369160ZogsgD','cwd','7yqjjtG','74mWHeYe','.ranger','2009658TADeMQ','835LexMKX','705375uLpJAe','671451flvtWD','lWBIv','7864740LUieRg','AfRbv','5601ZoRPqT','nlzYY','2764GcQawK','MQkcd','qEXel'];_0x2b41=function(){return _0x5b2152;};return _0x2b41();}export function getRangerDir(){const _0x4a67d3=_0x3cca,_0x4eca19={'nlzYY':function(_0x4d4d4d){return _0x4d4d4d();}};return join(_0x4eca19[_0x4a67d3(0xa7)](getRangerRoot),'.ranger');}export function findGitRoot(){const _0x59cff1=_0x3cca,_0xd6c8b7={'qEXel':function(_0x2ae23c,_0x4a46fe){return _0x2ae23c(_0x4a46fe);},'MQkcd':function(_0x2ec912,_0x108743){return _0x2ec912(_0x108743);},'AfRbv':'.git'};let _0x223f8e=process[_0x59cff1(0xac)]();const _0x5868a7=_0xd6c8b7[_0x59cff1(0xaa)](parse,_0x223f8e)['root'];while(_0x223f8e!==_0x5868a7){if(_0xd6c8b7['MQkcd'](existsSync,join(_0x223f8e,_0xd6c8b7[_0x59cff1(0xa5)])))return _0x223f8e;_0x223f8e=_0xd6c8b7[_0x59cff1(0xa9)](dirname,_0x223f8e);}if(_0xd6c8b7['qEXel'](existsSync,join(_0x5868a7,'.git')))return _0x5868a7;return null;}export function getRangerHomeDir(){const _0xb16894=_0x3cca;return join(homedir(),_0xb16894(0x9e));}
1
+ (function(_0x5383d8,_0x5ca9ad){const _0x13e600=_0x38e8,_0x6349dd=_0x5383d8();while(!![]){try{const _0x47156b=parseInt(_0x13e600(0x11b))/0x1*(parseInt(_0x13e600(0x122))/0x2)+-parseInt(_0x13e600(0x124))/0x3+-parseInt(_0x13e600(0x123))/0x4*(-parseInt(_0x13e600(0x11e))/0x5)+-parseInt(_0x13e600(0x121))/0x6*(-parseInt(_0x13e600(0x120))/0x7)+parseInt(_0x13e600(0x12a))/0x8*(parseInt(_0x13e600(0x129))/0x9)+-parseInt(_0x13e600(0x12b))/0xa*(parseInt(_0x13e600(0x125))/0xb)+parseInt(_0x13e600(0x11d))/0xc*(parseInt(_0x13e600(0x126))/0xd);if(_0x47156b===_0x5ca9ad)break;else _0x6349dd['push'](_0x6349dd['shift']());}catch(_0x28b372){_0x6349dd['push'](_0x6349dd['shift']());}}}(_0x57aa,0x81636));import{dirname,join,parse}from'path';import{existsSync}from'fs';function _0x57aa(){const _0x1c7431=['15906bKrHPz','13KgHYND','root','KofIj','120726vLBfIV','280wXSebg','7280zAkZvd','cwd','.git','301fMAtHn','qzcOZ','14497068qqeLoc','60285IrnjWQ','Bfscj','119uhThEP','111138OsaxpM','718rXJFZe','44vHvwro','1951482YETILm'];_0x57aa=function(){return _0x1c7431;};return _0x57aa();}function _0x38e8(_0x53d007,_0x34ffc7){_0x53d007=_0x53d007-0x11a;const _0x57aa73=_0x57aa();let _0x38e83e=_0x57aa73[_0x53d007];return _0x38e83e;}import{homedir}from'os';export function getRangerRoot(){const _0x42ed96=_0x38e8,_0x31b2ed={'UtWjx':function(_0x361d16,_0x38f942){return _0x361d16(_0x38f942);},'qUAiD':function(_0x189f04,_0x2a0e4d,_0x5eae7b){return _0x189f04(_0x2a0e4d,_0x5eae7b);},'ndQbk':'.ranger'};let _0x28e03b=process[_0x42ed96(0x12c)]();const _0x51b947=parse(_0x28e03b)[_0x42ed96(0x127)];while(_0x28e03b!==_0x51b947){if(_0x31b2ed['UtWjx'](existsSync,_0x31b2ed['qUAiD'](join,_0x28e03b,_0x31b2ed['ndQbk'])))return _0x28e03b;_0x28e03b=dirname(_0x28e03b);}if(_0x31b2ed['UtWjx'](existsSync,join(_0x51b947,'.ranger')))return _0x51b947;const _0x47fa94=findGitRoot();if(_0x47fa94)return _0x47fa94;return process['cwd']();}export function getRangerDir(){const _0x955149=_0x38e8,_0x363a57={'KofIj':function(_0x368d8d,_0x290d2e,_0x172a84){return _0x368d8d(_0x290d2e,_0x172a84);},'Bfscj':'.ranger'};return _0x363a57[_0x955149(0x128)](join,getRangerRoot(),_0x363a57[_0x955149(0x11f)]);}export function findGitRoot(){const _0x39b8ed=_0x38e8,_0x3c06e4={'LQkUa':function(_0x1c0ad4,_0xff6c44){return _0x1c0ad4!==_0xff6c44;},'qzcOZ':function(_0x340bad,_0x1f0cdb){return _0x340bad(_0x1f0cdb);},'JHhaH':function(_0x162426,_0x1fa866,_0x17801f){return _0x162426(_0x1fa866,_0x17801f);},'kTNpb':'.git'};let _0x1bd738=process['cwd']();const _0x585dbb=parse(_0x1bd738)['root'];while(_0x3c06e4['LQkUa'](_0x1bd738,_0x585dbb)){if(existsSync(join(_0x1bd738,_0x39b8ed(0x11a))))return _0x1bd738;_0x1bd738=_0x3c06e4[_0x39b8ed(0x11c)](dirname,_0x1bd738);}if(existsSync(_0x3c06e4['JHhaH'](join,_0x585dbb,_0x3c06e4['kTNpb'])))return _0x585dbb;return null;}export function getRangerHomeDir(){const _0x43f5e4={'AolHM':function(_0x2f64f6,_0x471d07,_0x306ac8){return _0x2f64f6(_0x471d07,_0x306ac8);},'NmKBV':function(_0x2267f6){return _0x2267f6();},'RVaEV':'.ranger'};return _0x43f5e4['AolHM'](join,_0x43f5e4['NmKBV'](homedir),_0x43f5e4['RVaEV']);}
@@ -1 +1 @@
1
- (function(_0x1b4533,_0x47d9c8){const _0x1777e9=_0x3e5b,_0xcee109=_0x1b4533();while(!![]){try{const _0x5c216d=-parseInt(_0x1777e9(0xab))/0x1+-parseInt(_0x1777e9(0xd3))/0x2*(parseInt(_0x1777e9(0xbc))/0x3)+-parseInt(_0x1777e9(0xc1))/0x4*(-parseInt(_0x1777e9(0xc6))/0x5)+-parseInt(_0x1777e9(0xc8))/0x6+-parseInt(_0x1777e9(0xd2))/0x7+-parseInt(_0x1777e9(0xa4))/0x8+-parseInt(_0x1777e9(0xa5))/0x9*(-parseInt(_0x1777e9(0xb1))/0xa);if(_0x5c216d===_0x47d9c8)break;else _0xcee109['push'](_0xcee109['shift']());}catch(_0xa72543){_0xcee109['push'](_0xcee109['shift']());}}}(_0x4312,0x591d1));import{existsSync}from'fs';import _0x5683e7 from'inquirer';import{ApiError,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';function _0x3e5b(_0x503d89,_0x16b00f){_0x503d89=_0x503d89-0xa1;const _0x431237=_0x4312();let _0x3e5bd9=_0x431237[_0x503d89];return _0x3e5bd9;}import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';function _0x4312(){const _0xf9d454=['OgdPu','resolvedEnv','4LkGkAB','envBaseUrl','iCnzb','string','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','29455AJOAuW','settings','2607714pxybps','paTfF','UXLQh','RANGER_TEST_USERNAME','vmZYX','MAcKl','dRhvJ','Cloud\x20profile\x20(recommended)','envStartPath','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','1944236dZVADN','2VRqDat','CKNpy','RANGER_SESSION_STATE_PATH','env','3060880kmJhea','16030026WGrtQP','\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','LiDXE','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','name','cdpEndpoint','191581nyWOca','cloud','bDVYp','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','cwd','profile','10BxYIsO','url','status','RANGER_SESSION_STATE_PATH=','baseUrl','source','startPath','rLRea','WVHNB','uSbbE','`ranger\x20profile\x20add`\x20to\x20create\x20one.','406314eLXjcK','HlAZk','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20'];_0x4312=function(){return _0xf9d454;};return _0x4312();}import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x31fe36){const _0x22570a=_0x3e5b,_0x5a31a9={'rLRea':function(_0xb9b761){return _0xb9b761();},'UXLQh':function(_0x33a808,_0x5005eb){return _0x33a808+_0x5005eb;},'uSbbE':'\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','LwooR':_0x22570a(0xa6),'vmZYX':_0x22570a(0xd1),'kDSek':function(_0x123932,_0x273809){return _0x123932(_0x273809);},'IPTxG':_0x22570a(0xbb),'paTfF':function(_0x1de39f){return _0x1de39f();},'rQsPP':'list','dRhvJ':'cloud','HSBct':function(_0x4f14b7,_0x3cb2ad,_0x7eb7b0){return _0x4f14b7(_0x3cb2ad,_0x7eb7b0);},'WVHNB':function(_0x5ae54b,_0x5a770c){return _0x5ae54b(_0x5a770c);},'MAcKl':function(_0x2a7962,_0x1dd972){return _0x2a7962(_0x1dd972);},'CKNpy':function(_0x317eed,_0x5d1b9a){return _0x317eed(_0x5d1b9a);},'HlAZk':function(_0x4a28da,_0x520d02){return _0x4a28da(_0x520d02);},'OgdPu':function(_0x284f86,_0x3474bc){return _0x284f86&&_0x3474bc;}},_0x5b5bc8=_0x31fe36[_0x22570a(0xb0)];let _0x33a13f=_0x31fe36[_0x22570a(0xb0)]??await _0x5a31a9[_0x22570a(0xb8)](readActiveProfileName),_0x35674b=null;if(!_0x33a13f&&process['env'][_0x22570a(0xcb)]){const _0x20fa3f=await resolveAdHocProfile();_0x20fa3f&&(_0x33a13f=_0x20fa3f[_0x22570a(0xa9)],_0x35674b=_0x20fa3f['profile']);}if(!_0x33a13f)try{const _0x5a8f72=await listCloudProfiles();if(_0x5a8f72['length']===0x1){const _0x5ce365=_0x5a8f72[0x0];_0x33a13f=_0x5ce365['name'],console['log']('\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20'+_0x5ce365['name']),console['log'](_0x22570a(0xc5));}}catch{}if(!_0x33a13f)throw new Error(_0x5a31a9['UXLQh'](_0x5a31a9[_0x22570a(0xca)]('Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a'+'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a',_0x5a31a9[_0x22570a(0xba)])+_0x5a31a9['LwooR'],_0x5a31a9[_0x22570a(0xcc)]));const _0x166ace=_0x5a31a9['kDSek'](getEnvDir,_0x33a13f),_0x2692de=_0x5a31a9['kDSek'](existsSync,_0x166ace);let _0x1b6ce7=_0x35674b,_0x259a67=![];if(!_0x1b6ce7)try{_0x1b6ce7=await _0x5a31a9['kDSek'](fetchCloudProfile,_0x33a13f);if(!_0x1b6ce7)_0x259a67=!![];}catch(_0x37f153){_0x37f153 instanceof ApiError&&_0x37f153[_0x22570a(0xb3)]===0x194&&(_0x259a67=!![]);}if(_0x5b5bc8&&_0x259a67&&!_0x2692de&&!_0x1b6ce7)throw new Error('Profile\x20\x22'+_0x5b5bc8+_0x22570a(0xa8)+_0x22570a(0xbe)+_0x5a31a9['IPTxG']);if(_0x1b6ce7&&_0x2692de){let _0x22608c=!![];if(_0x5a31a9[_0x22570a(0xc9)](isInteractive)){const {source:_0x75304d}=await _0x5683e7['prompt']([{'type':_0x5a31a9['rQsPP'],'name':_0x22570a(0xb6),'message':'Profile\x20\x22'+_0x33a13f+'\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','choices':[{'name':_0x22570a(0xcf),'value':'cloud'},{'name':'Local\x20profile','value':'local'}],'default':_0x22570a(0xac)}]);_0x22608c=_0x75304d===_0x5a31a9[_0x22570a(0xce)];}if(!_0x22608c)_0x1b6ce7=null;}const _0x4d3d81=_0x5a31a9['HSBct'](readProfileOverrides,process[_0x22570a(0xaf)](),_0x33a13f);let _0x2b1f9e=null,_0x562d49,_0x286e92,_0x3991f0,_0x1bf229,_0xb1726f=null,_0x3c1638;const _0x16069f=expandOverrides(_0x4d3d81);if(_0x1b6ce7){_0x2b1f9e=_0x1b6ce7;const _0x524ed8=_0x1b6ce7[_0x22570a(0xc7)]??{},_0xde8555=mergeCloudProfileSettings(_0x524ed8,_0x4d3d81??undefined),_0x5b2a0c={..._0x1b6ce7,'settings':_0xde8555},_0xa4cc25=process[_0x22570a(0xa3)][_0x22570a(0xa2)];if(_0xa4cc25){const _0x166fe0='0|3|1|4|2'['split']('|');let _0x3326df=0x0;while(!![]){switch(_0x166fe0[_0x3326df++]){case'0':if(!_0x5a31a9['WVHNB'](existsSync,_0xa4cc25))throw new Error(_0x22570a(0xb4)+_0xa4cc25+'\x20does\x20not\x20exist.');continue;case'1':_0x286e92=_0x5a31a9[_0x22570a(0xcd)](resolveEnvVars,_0xde8555);continue;case'2':_0xb1726f={'baseUrl':_0x5a31a9['kDSek'](expandString,_0x524ed8[_0x22570a(0xb5)]),'startPath':_0x5a31a9[_0x22570a(0xa1)](expandString,_0x524ed8['startPath'])};continue;case'3':_0x562d49=_0xa4cc25;continue;case'4':_0x3991f0=_0x5a31a9['CKNpy'](Boolean,_0x286e92[_0x22570a(0xaa)]);continue;}break;}}else{const _0x14a477=await resolveCloudProfileSession(_0x5b2a0c);_0x562d49=_0x14a477['authPath'],_0x286e92=_0x5a31a9['CKNpy'](resolveEnvVars,_0xde8555),_0x3991f0=Boolean(_0x286e92[_0x22570a(0xaa)]),_0xb1726f={'baseUrl':_0x5a31a9[_0x22570a(0xb9)](expandString,_0x524ed8['baseUrl']),'startPath':expandString(_0x524ed8['startPath'])},_0x3c1638=_0x14a477[_0x22570a(0xc0)]?.['domains']?.[0x0];}}else{if(!_0x2692de)throw new Error('Profile\x20\x22'+_0x33a13f+'\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x33a13f);const _0x3c8989=await _0x5a31a9[_0x22570a(0xbd)](loadSettings,_0x33a13f);_0x286e92=_0x5a31a9['MAcKl'](resolveEnvVars,_0x3c8989),_0x3991f0=_0x5a31a9[_0x22570a(0xcd)](Boolean,_0x286e92['cdpEndpoint']),_0x1bf229=_0x286e92[_0x22570a(0xb5)];}const _0x2e188d=readUrlEnvVars(),_0x3bf237=resolveProfileUrl({'flagBaseUrl':_0x31fe36[_0x22570a(0xb5)],'flagStartPath':_0x31fe36['startPath'],'envBaseUrl':_0x2e188d[_0x22570a(0xc2)],'envStartPath':_0x2e188d[_0x22570a(0xd0)],'localSettingsBaseUrl':_0x1bf229,'projectOverrides':_0x16069f,'cloudSettings':_0xb1726f,'authEnvironmentDomain':_0x3c1638}),_0x5d18a8=_0x3bf237[_0x22570a(0xb2)]??_0x3bf237[_0x22570a(0xb5)];if(_0x5a31a9[_0x22570a(0xbf)](!_0x5d18a8,!_0x3991f0))throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0x33a13f+_0x22570a(0xae)+_0x33a13f+'\x20baseUrl\x20<url>');return{'activeProfile':_0x33a13f,'resolvedCloudProfile':_0x2b1f9e,'cloudAuthPath':_0x562d49,'resolvedSettings':_0x286e92,'isCdpMode':_0x3991f0,'url':_0x5d18a8,'startPath':_0x3bf237[_0x22570a(0xb7)]};}function expandString(_0x562985){const _0x2b5507=_0x3e5b,_0x5af52d={'gOASn':function(_0xbb79a2,_0x5a4016){return _0xbb79a2!==_0x5a4016;},'iCnzb':'string'};if(_0x5af52d['gOASn'](typeof _0x562985,_0x5af52d[_0x2b5507(0xc3)]))return _0x562985;return resolveEnvVars(_0x562985);}function expandOverrides(_0x378010){const _0x178c1b=_0x3e5b,_0x4e919c={'bDVYp':'string','LiDXE':function(_0x4942dd,_0x3decc5){return _0x4942dd(_0x3decc5);}};if(!_0x378010)return _0x378010;const _0x1a0da3={..._0x378010};return typeof _0x1a0da3[_0x178c1b(0xb5)]===_0x178c1b(0xc4)&&(_0x1a0da3['baseUrl']=resolveEnvVars(_0x1a0da3['baseUrl'])),typeof _0x1a0da3[_0x178c1b(0xb7)]===_0x4e919c[_0x178c1b(0xad)]&&(_0x1a0da3['startPath']=_0x4e919c[_0x178c1b(0xa7)](resolveEnvVars,_0x1a0da3['startPath'])),_0x1a0da3;}
1
+ (function(_0x56d920,_0xe27a09){const _0x4aa278=_0x4bca,_0x2e1096=_0x56d920();while(!![]){try{const _0x15b215=-parseInt(_0x4aa278(0x1f3))/0x1*(parseInt(_0x4aa278(0x20e))/0x2)+parseInt(_0x4aa278(0x223))/0x3*(-parseInt(_0x4aa278(0x1f8))/0x4)+-parseInt(_0x4aa278(0x20a))/0x5*(parseInt(_0x4aa278(0x21b))/0x6)+-parseInt(_0x4aa278(0x1fb))/0x7*(-parseInt(_0x4aa278(0x224))/0x8)+parseInt(_0x4aa278(0x22a))/0x9+parseInt(_0x4aa278(0x21a))/0xa*(parseInt(_0x4aa278(0x22c))/0xb)+-parseInt(_0x4aa278(0x21d))/0xc;if(_0x15b215===_0xe27a09)break;else _0x2e1096['push'](_0x2e1096['shift']());}catch(_0x1dcba1){_0x2e1096['push'](_0x2e1096['shift']());}}}(_0x3348,0xde3bc));import{existsSync}from'fs';import _0x5875f8 from'inquirer';import{ApiError,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';function _0x3348(){const _0x3f22b7=['7921992Tveaco','baseUrl','envBaseUrl','prompt','log','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','89655JldZqA','528AeXVkP','string','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','profile','domains','`ranger\x20profile\x20add`\x20to\x20create\x20one.','8997444nhTaCI','length','407gJsCvt','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','3rLHwtr','kkAOL','name','rUTQt','kpVhc','44cbrKVr','TWnCK','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','188671tHoOaj','BBpOI','dZIzW','xBtqT','Profile\x20\x22','cloud','gfIBh','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','Cloud\x20profile\x20(recommended)','RRURT','qgmCj','vvtbd','\x20baseUrl\x20<url>','RANGER_TEST_USERNAME','local','4725vcCcMS','status','resolvedEnv','znNhI','345026EqJuQk','list','env','dNvsG','\x20does\x20not\x20exist.','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','cdpEndpoint','Local\x20profile','authPath','url','startPath','RANGER_SESSION_STATE_PATH','196670gzKLLb','6918mQDMno','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.'];_0x3348=function(){return _0x3f22b7;};return _0x3348();}import{isInteractive}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x4ff18f){const _0x4da333=_0x4bca,_0x39c203={'kkAOL':function(_0x2d0205){return _0x2d0205();},'TWnCK':function(_0x298fcd,_0x3b41a3){return _0x298fcd===_0x3b41a3;},'xBtqT':function(_0x53fee5,_0x51b987){return _0x53fee5+_0x51b987;},'dZIzW':function(_0x317636,_0x34dc23){return _0x317636+_0x34dc23;},'FhSjA':'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','iPrVG':_0x4da333(0x21c),'jomae':function(_0x18ef91,_0x49da83){return _0x18ef91(_0x49da83);},'hpeQO':function(_0x22828b,_0x4764cb){return _0x22828b+_0x4764cb;},'BVrsj':_0x4da333(0x229),'znNhI':function(_0x3acf7c){return _0x3acf7c();},'RRURT':'source','oYYln':_0x4da333(0x215),'KonwI':function(_0xaed12d,_0x565439,_0x52415f){return _0xaed12d(_0x565439,_0x52415f);},'rUTQt':function(_0x3c4654,_0xebae63,_0x5c1eb7){return _0x3c4654(_0xebae63,_0x5c1eb7);},'qgmCj':function(_0x4645d3,_0xa0618){return _0x4645d3??_0xa0618;},'vvtbd':function(_0x541d48,_0x5e4aa9){return _0x541d48(_0x5e4aa9);},'kpVhc':function(_0x1ec49a,_0x3f75af){return _0x1ec49a(_0x3f75af);},'dNvsG':function(_0x4ab447,_0x3334de){return _0x4ab447(_0x3334de);},'lZmpw':function(_0x519271,_0x16fbbf){return _0x519271(_0x16fbbf);}},_0x15bc66=_0x4ff18f[_0x4da333(0x227)];let _0x4b36da=_0x4ff18f[_0x4da333(0x227)]??await _0x39c203[_0x4da333(0x1f4)](readActiveProfileName),_0x3da7bf=null;if(!_0x4b36da&&process[_0x4da333(0x210)][_0x4da333(0x208)]){const _0x348a9d=await resolveAdHocProfile();_0x348a9d&&(_0x4b36da=_0x348a9d['name'],_0x3da7bf=_0x348a9d[_0x4da333(0x227)]);}if(!_0x4b36da)try{const _0x20d756=await _0x39c203[_0x4da333(0x1f4)](listCloudProfiles);if(_0x39c203[_0x4da333(0x1f9)](_0x20d756[_0x4da333(0x22b)],0x1)){const _0xcc38a9=_0x20d756[0x0];_0x4b36da=_0xcc38a9['name'],console[_0x4da333(0x221)]('\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20'+_0xcc38a9[_0x4da333(0x1f5)]),console[_0x4da333(0x221)](_0x4da333(0x226));}}catch{}if(!_0x4b36da)throw new Error(_0x39c203[_0x4da333(0x1fe)](_0x39c203['xBtqT'](_0x39c203[_0x4da333(0x1fd)](_0x39c203['FhSjA'],_0x4da333(0x222)),_0x4da333(0x202)),'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a')+_0x39c203['iPrVG']);const _0x4b6e0f=getEnvDir(_0x4b36da),_0x3c1efa=_0x39c203['jomae'](existsSync,_0x4b6e0f);let _0x1e5bad=_0x3da7bf,_0x1df62d=![];if(!_0x1e5bad)try{_0x1e5bad=await fetchCloudProfile(_0x4b36da);if(!_0x1e5bad)_0x1df62d=!![];}catch(_0x5f13f7){_0x5f13f7 instanceof ApiError&&_0x5f13f7[_0x4da333(0x20b)]===0x194&&(_0x1df62d=!![]);}if(_0x15bc66&&_0x1df62d&&!_0x3c1efa&&!_0x1e5bad)throw new Error(_0x39c203['hpeQO']('Profile\x20\x22'+_0x15bc66+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a'+_0x4da333(0x213),_0x39c203['BVrsj']));if(_0x1e5bad&&_0x3c1efa){let _0xc16cd8=!![];if(_0x39c203[_0x4da333(0x20d)](isInteractive)){const {source:_0x4f5700}=await _0x5875f8[_0x4da333(0x220)]([{'type':_0x4da333(0x20f),'name':_0x39c203[_0x4da333(0x204)],'message':_0x4da333(0x1ff)+_0x4b36da+_0x4da333(0x1fa),'choices':[{'name':_0x4da333(0x203),'value':_0x4da333(0x200)},{'name':_0x39c203['oYYln'],'value':_0x4da333(0x209)}],'default':'cloud'}]);_0xc16cd8=_0x39c203[_0x4da333(0x1f9)](_0x4f5700,'cloud');}if(!_0xc16cd8)_0x1e5bad=null;}const _0x5322d7=_0x39c203['KonwI'](readProfileOverrides,process['cwd'](),_0x4b36da);let _0x5d32fd=null,_0x481e4c,_0x121f68,_0xad64f2,_0x3422a1,_0x2729fb=null,_0x431939;const _0x129e9e=expandOverrides(_0x5322d7);if(_0x1e5bad){_0x5d32fd=_0x1e5bad;const _0x24fd3d=_0x1e5bad['settings']??{},_0x50aa35=_0x39c203[_0x4da333(0x1f6)](mergeCloudProfileSettings,_0x24fd3d,_0x39c203[_0x4da333(0x205)](_0x5322d7,undefined)),_0x39fdac={..._0x1e5bad,'settings':_0x50aa35},_0x597a22=process[_0x4da333(0x210)][_0x4da333(0x219)];if(_0x597a22){if(!_0x39c203[_0x4da333(0x206)](existsSync,_0x597a22))throw new Error('RANGER_SESSION_STATE_PATH='+_0x597a22+_0x4da333(0x212));_0x481e4c=_0x597a22,_0x121f68=_0x39c203[_0x4da333(0x1f7)](resolveEnvVars,_0x50aa35),_0xad64f2=Boolean(_0x121f68['cdpEndpoint']),_0x2729fb={'baseUrl':_0x39c203[_0x4da333(0x211)](expandString,_0x24fd3d[_0x4da333(0x21e)]),'startPath':expandString(_0x24fd3d[_0x4da333(0x218)])};}else{const _0x24ad19=await resolveCloudProfileSession(_0x39fdac);_0x481e4c=_0x24ad19[_0x4da333(0x216)],_0x121f68=_0x39c203[_0x4da333(0x211)](resolveEnvVars,_0x50aa35),_0xad64f2=Boolean(_0x121f68[_0x4da333(0x214)]),_0x2729fb={'baseUrl':_0x39c203[_0x4da333(0x206)](expandString,_0x24fd3d['baseUrl']),'startPath':expandString(_0x24fd3d['startPath'])},_0x431939=_0x24ad19[_0x4da333(0x20c)]?.[_0x4da333(0x228)]?.[0x0];}}else{if(!_0x3c1efa)throw new Error(_0x4da333(0x1ff)+_0x4b36da+'\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x4b36da);const _0x1fc95b=await loadSettings(_0x4b36da);_0x121f68=resolveEnvVars(_0x1fc95b),_0xad64f2=Boolean(_0x121f68['cdpEndpoint']),_0x3422a1=_0x121f68[_0x4da333(0x21e)];}const _0x4de003=_0x39c203[_0x4da333(0x1f4)](readUrlEnvVars),_0x1f4d30=_0x39c203['lZmpw'](resolveProfileUrl,{'flagBaseUrl':_0x4ff18f['baseUrl'],'flagStartPath':_0x4ff18f['startPath'],'envBaseUrl':_0x4de003[_0x4da333(0x21f)],'envStartPath':_0x4de003['envStartPath'],'localSettingsBaseUrl':_0x3422a1,'projectOverrides':_0x129e9e,'cloudSettings':_0x2729fb,'authEnvironmentDomain':_0x431939}),_0x1c8b20=_0x1f4d30[_0x4da333(0x217)]??_0x1f4d30[_0x4da333(0x21e)];if(!_0x1c8b20&&!_0xad64f2)throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0x4b36da+_0x4da333(0x1f2)+_0x4b36da+_0x4da333(0x207));return{'activeProfile':_0x4b36da,'resolvedCloudProfile':_0x5d32fd,'cloudAuthPath':_0x481e4c,'resolvedSettings':_0x121f68,'isCdpMode':_0xad64f2,'url':_0x1c8b20,'startPath':_0x1f4d30[_0x4da333(0x218)]};}function expandString(_0x1ed0a9){const _0x2dea85=_0x4bca,_0xe40007={'zuqlF':function(_0x144338,_0x372451){return _0x144338!==_0x372451;},'BBpOI':function(_0x49cf45,_0x46ed9c){return _0x49cf45(_0x46ed9c);}};if(_0xe40007['zuqlF'](typeof _0x1ed0a9,_0x2dea85(0x225)))return _0x1ed0a9;return _0xe40007[_0x2dea85(0x1fc)](resolveEnvVars,_0x1ed0a9);}function _0x4bca(_0x35d2e9,_0x2420ce){_0x35d2e9=_0x35d2e9-0x1f2;const _0x3348d1=_0x3348();let _0x4bcac3=_0x3348d1[_0x35d2e9];return _0x4bcac3;}function expandOverrides(_0x247c67){const _0x351ced=_0x4bca,_0x5b3b2={'WnKwh':function(_0x193b48,_0x555f3e){return _0x193b48===_0x555f3e;},'gfIBh':function(_0x327ac2,_0x278024){return _0x327ac2(_0x278024);}};if(!_0x247c67)return _0x247c67;const _0x44c7c1={..._0x247c67};return _0x5b3b2['WnKwh'](typeof _0x44c7c1[_0x351ced(0x21e)],_0x351ced(0x225))&&(_0x44c7c1[_0x351ced(0x21e)]=resolveEnvVars(_0x44c7c1['baseUrl'])),_0x5b3b2['WnKwh'](typeof _0x44c7c1[_0x351ced(0x218)],'string')&&(_0x44c7c1['startPath']=_0x5b3b2[_0x351ced(0x201)](resolveEnvVars,_0x44c7c1[_0x351ced(0x218)])),_0x44c7c1;}
@@ -1 +1 @@
1
- const _0x3e1669=_0x50a3;(function(_0xe062e9,_0x483a09){const _0x197d30=_0x50a3,_0x554396=_0xe062e9();while(!![]){try{const _0x4d7403=-parseInt(_0x197d30(0x1b8))/0x1*(-parseInt(_0x197d30(0x1b4))/0x2)+parseInt(_0x197d30(0x1bf))/0x3*(parseInt(_0x197d30(0x1af))/0x4)+parseInt(_0x197d30(0x1bc))/0x5+parseInt(_0x197d30(0x1bb))/0x6*(parseInt(_0x197d30(0x1b1))/0x7)+parseInt(_0x197d30(0x1c2))/0x8+-parseInt(_0x197d30(0x1c0))/0x9+-parseInt(_0x197d30(0x1ae))/0xa;if(_0x4d7403===_0x483a09)break;else _0x554396['push'](_0x554396['shift']());}catch(_0x1b8b11){_0x554396['push'](_0x554396['shift']());}}}(_0x42c5,0x44fb2));function firstDefined(..._0x2d4339){const _0x401d53=_0x50a3,_0x14718f={'oaPod':function(_0x229b76,_0x3c3284){return _0x229b76!==_0x3c3284;},'PUCdd':function(_0x5f1ab3,_0x133ad4){return _0x5f1ab3!==_0x133ad4;}};for(const _0x5557f5 of _0x2d4339){if(_0x14718f[_0x401d53(0x1bd)](_0x5557f5,undefined)&&_0x14718f[_0x401d53(0x1b7)](_0x5557f5,null)&&_0x14718f[_0x401d53(0x1b7)](_0x5557f5,''))return _0x5557f5;}return undefined;}function _0x42c5(){const _0x5dab1d=['537jIRPrm','930051qtRbDY','env','4010768fSHcQE','endsWith','zNmgq','10662080WWNepW','2424GzJWEP','startPath','4011dUxWHU','envBaseUrl','hoMUQ','221392vRxnjd','RANGER_BASE_URL','authEnvironmentDomain','PUCdd','3TYckRR','projectOverrides','baseUrl','2298MkYLLO','1453630vUzotg','oaPod','nuQEX'];_0x42c5=function(){return _0x5dab1d;};return _0x42c5();}function normalizeAuthEnvironmentDomain(_0x4732e1){if(!_0x4732e1)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x4732e1))return _0x4732e1;return'https://'+_0x4732e1;}export function resolveBaseUrl(_0x4ff48b){const _0x22d8eb=_0x50a3,_0x5f40d3={'nuQEX':function(_0x18c308,_0x3b467e,_0x27f8ed,_0x394d3d,_0x4b66dc,_0xdb0d0e,_0x9a0155){return _0x18c308(_0x3b467e,_0x27f8ed,_0x394d3d,_0x4b66dc,_0xdb0d0e,_0x9a0155);}},_0x1213b3=_0x4ff48b['projectOverrides'],_0x529969=!!_0x1213b3&&'baseUrl'in _0x1213b3,_0x32d990=_0x1213b3?.[_0x22d8eb(0x1ba)],_0x3ed70d=!(_0x529969&&_0x32d990===null);return _0x5f40d3[_0x22d8eb(0x1be)](firstDefined,_0x4ff48b['flagBaseUrl'],_0x4ff48b[_0x22d8eb(0x1b2)],_0x4ff48b['localSettingsBaseUrl'],typeof _0x32d990==='string'?_0x32d990:undefined,_0x3ed70d?_0x4ff48b['cloudSettings']?.['baseUrl']:undefined,_0x3ed70d?normalizeAuthEnvironmentDomain(_0x4ff48b[_0x22d8eb(0x1b6)]):undefined);}export function resolveStartPath(_0x77790e){const _0x5d4f93=_0x50a3,_0x3c36f2={'aFtWs':function(_0x6aa0b4,_0x467053){return _0x6aa0b4 in _0x467053;},'lxgAV':'startPath','zNmgq':function(_0x103f73,_0x29f968,_0xd764f9,_0x267658,_0x5da6d1){return _0x103f73(_0x29f968,_0xd764f9,_0x267658,_0x5da6d1);},'hoMUQ':'string'},_0x1f9d5e=_0x77790e[_0x5d4f93(0x1b9)],_0x391010=!!_0x1f9d5e&&_0x3c36f2['aFtWs'](_0x3c36f2['lxgAV'],_0x1f9d5e),_0x2f1730=_0x1f9d5e?.[_0x5d4f93(0x1b0)],_0x49181e=!(_0x391010&&_0x2f1730===null);return _0x3c36f2[_0x5d4f93(0x1ad)](firstDefined,_0x77790e['flagStartPath'],_0x77790e['envStartPath'],typeof _0x2f1730===_0x3c36f2[_0x5d4f93(0x1b3)]?_0x2f1730:undefined,_0x49181e?_0x77790e['cloudSettings']?.[_0x5d4f93(0x1b0)]:undefined);}function _0x50a3(_0x31611f,_0x5d334a){_0x31611f=_0x31611f-0x1ac;const _0x42c578=_0x42c5();let _0x50a302=_0x42c578[_0x31611f];return _0x50a302;}export function joinBaseAndPath(_0x15f6db,_0x5a19e7){const _0x4ff0c5=_0x50a3;if(!_0x15f6db)return undefined;if(!_0x5a19e7)return _0x15f6db;const _0x38cbe8=_0x15f6db[_0x4ff0c5(0x1ac)]('/')?_0x15f6db['slice'](0x0,-0x1):_0x15f6db,_0x447c79=_0x5a19e7['startsWith']('/')?_0x5a19e7:'/'+_0x5a19e7;return _0x38cbe8+_0x447c79;}export function resolveProfileUrl(_0x433625){const _0x297713={'tcnuy':function(_0xaf8913,_0x12c4ab){return _0xaf8913(_0x12c4ab);},'uVprK':function(_0x4b06ff,_0x1a838b,_0x48485c){return _0x4b06ff(_0x1a838b,_0x48485c);}},_0x30968a=resolveBaseUrl(_0x433625),_0x6e86d1=_0x297713['tcnuy'](resolveStartPath,_0x433625);return{'baseUrl':_0x30968a,'startPath':_0x6e86d1,'url':_0x297713['uVprK'](joinBaseAndPath,_0x30968a,_0x6e86d1)};}export function readUrlEnvVars(_0x9fbe2a=process[_0x3e1669(0x1c1)]){const _0xac95ff=_0x3e1669;return{'envBaseUrl':_0x9fbe2a[_0xac95ff(0x1b5)],'envStartPath':_0x9fbe2a['RANGER_START_PATH']};}
1
+ const _0x43e691=_0x19d6;(function(_0x5f1519,_0x320c56){const _0x3f346f=_0x19d6,_0x34ee55=_0x5f1519();while(!![]){try{const _0x505018=-parseInt(_0x3f346f(0x1d2))/0x1+parseInt(_0x3f346f(0x1c1))/0x2*(parseInt(_0x3f346f(0x1c2))/0x3)+parseInt(_0x3f346f(0x1d3))/0x4*(-parseInt(_0x3f346f(0x1d6))/0x5)+parseInt(_0x3f346f(0x1d1))/0x6*(-parseInt(_0x3f346f(0x1c3))/0x7)+-parseInt(_0x3f346f(0x1c0))/0x8+-parseInt(_0x3f346f(0x1bd))/0x9*(parseInt(_0x3f346f(0x1cd))/0xa)+-parseInt(_0x3f346f(0x1cb))/0xb*(-parseInt(_0x3f346f(0x1bf))/0xc);if(_0x505018===_0x320c56)break;else _0x34ee55['push'](_0x34ee55['shift']());}catch(_0x156d79){_0x34ee55['push'](_0x34ee55['shift']());}}}(_0x2595,0x89039));function firstDefined(..._0x1372c2){for(const _0x27163d of _0x1372c2){if(_0x27163d!==undefined&&_0x27163d!==null&&_0x27163d!=='')return _0x27163d;}return undefined;}function normalizeAuthEnvironmentDomain(_0x36b437){const _0x10eae9=_0x19d6;if(!_0x36b437)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x36b437))return _0x36b437;return _0x10eae9(0x1d7)+_0x36b437;}export function resolveBaseUrl(_0x5c444d){const _0x6312f7=_0x19d6,_0x5a078a={'XYttp':function(_0x25e7ed,_0x187f5b){return _0x25e7ed===_0x187f5b;},'egSVu':_0x6312f7(0x1d0),'cKPWE':function(_0x3eb497,_0x37c626){return _0x3eb497(_0x37c626);}},_0x1576cc=_0x5c444d['projectOverrides'],_0x3f158c=!!_0x1576cc&&_0x6312f7(0x1cc)in _0x1576cc,_0x489d23=_0x1576cc?.['baseUrl'],_0x474ef8=!(_0x3f158c&&_0x489d23===null);return firstDefined(_0x5c444d['flagBaseUrl'],_0x5c444d[_0x6312f7(0x1c9)],_0x5c444d[_0x6312f7(0x1c8)],_0x5a078a[_0x6312f7(0x1c5)](typeof _0x489d23,_0x5a078a['egSVu'])?_0x489d23:undefined,_0x474ef8?_0x5c444d['cloudSettings']?.[_0x6312f7(0x1cc)]:undefined,_0x474ef8?_0x5a078a[_0x6312f7(0x1be)](normalizeAuthEnvironmentDomain,_0x5c444d['authEnvironmentDomain']):undefined);}export function resolveStartPath(_0x44fe2c){const _0x22138d=_0x19d6,_0x5a5a95={'Grdbm':function(_0xf1fe12,_0x2443a2,_0x3cdc3c,_0x1c2527,_0xeaad11){return _0xf1fe12(_0x2443a2,_0x3cdc3c,_0x1c2527,_0xeaad11);},'GEIRq':_0x22138d(0x1d0)},_0x1e3c2d=_0x44fe2c[_0x22138d(0x1bc)],_0x8a4922=!!_0x1e3c2d&&_0x22138d(0x1ce)in _0x1e3c2d,_0x290fed=_0x1e3c2d?.[_0x22138d(0x1ce)],_0x40ab1c=!(_0x8a4922&&_0x290fed===null);return _0x5a5a95['Grdbm'](firstDefined,_0x44fe2c[_0x22138d(0x1cf)],_0x44fe2c['envStartPath'],typeof _0x290fed===_0x5a5a95[_0x22138d(0x1ca)]?_0x290fed:undefined,_0x40ab1c?_0x44fe2c['cloudSettings']?.['startPath']:undefined);}function _0x2595(){const _0x5e14be=['envBaseUrl','GEIRq','220tjnmfu','baseUrl','10YCNqRg','startPath','flagStartPath','string','205242hiqrlX','834376GRlloY','57412gsqaTH','RANGER_BASE_URL','startsWith','55mbqWqK','https://','projectOverrides','2050182sEFWXp','cKPWE','1595856ZbXSvs','4218880IaVHEL','164KfhoMz','19692hfXVxV','182huIGtT','tvlLh','XYttp','env','ohPOM','localSettingsBaseUrl'];_0x2595=function(){return _0x5e14be;};return _0x2595();}export function joinBaseAndPath(_0x4435cd,_0x108606){const _0x39d5c8=_0x19d6,_0x15197d={'tvlLh':function(_0x2a91a1,_0x53fdcc){return _0x2a91a1+_0x53fdcc;}};if(!_0x4435cd)return undefined;if(!_0x108606)return _0x4435cd;const _0xb6e517=_0x4435cd['endsWith']('/')?_0x4435cd['slice'](0x0,-0x1):_0x4435cd,_0x15871e=_0x108606[_0x39d5c8(0x1d5)]('/')?_0x108606:_0x15197d[_0x39d5c8(0x1c4)]('/',_0x108606);return _0x15197d['tvlLh'](_0xb6e517,_0x15871e);}function _0x19d6(_0x105ec4,_0x50f44a){_0x105ec4=_0x105ec4-0x1bc;const _0x2595cd=_0x2595();let _0x19d654=_0x2595cd[_0x105ec4];return _0x19d654;}export function resolveProfileUrl(_0xbe8cbb){const _0x5c7e19=_0x19d6,_0x5500f6={'ohPOM':function(_0x482a78,_0x39b313){return _0x482a78(_0x39b313);},'gDsee':function(_0x51d5f6,_0x4387af,_0x4e1b47){return _0x51d5f6(_0x4387af,_0x4e1b47);}},_0x5c4cf1=_0x5500f6[_0x5c7e19(0x1c7)](resolveBaseUrl,_0xbe8cbb),_0x2907c6=resolveStartPath(_0xbe8cbb);return{'baseUrl':_0x5c4cf1,'startPath':_0x2907c6,'url':_0x5500f6['gDsee'](joinBaseAndPath,_0x5c4cf1,_0x2907c6)};}export function readUrlEnvVars(_0x2db4f8=process[_0x43e691(0x1c6)]){const _0x3e9547=_0x43e691;return{'envBaseUrl':_0x2db4f8[_0x3e9547(0x1d4)],'envStartPath':_0x2db4f8['RANGER_START_PATH']};}
@@ -1 +1 @@
1
- function _0x3a1c(){const _0x53dbda=['iUeKM','cufOw','2008ahLHda','5435YbseQh','3627wZFkWW','cuhIk','ms...','11fhUYRR','526506UPZXfM','3OAEZcN','label','),\x20retrying\x20in\x20','AtNaJ','1128589xwnDtm','maxRetries','1827890hUgdDQ','baseDelayMs','1784MjdEuP','460532JhXFBX','1956bSmKlw'];_0x3a1c=function(){return _0x53dbda;};return _0x3a1c();}function _0x3778(_0x3bd9f0,_0x4ae65a){_0x3bd9f0=_0x3bd9f0-0x7a;const _0x3a1c0d=_0x3a1c();let _0x3778c9=_0x3a1c0d[_0x3bd9f0];return _0x3778c9;}(function(_0x355e81,_0x4ad842){const _0x32ae04=_0x3778,_0x368ce0=_0x355e81();while(!![]){try{const _0x204a21=-parseInt(_0x32ae04(0x8c))/0x1+parseInt(_0x32ae04(0x82))/0x2*(parseInt(_0x32ae04(0x83))/0x3)+parseInt(_0x32ae04(0x8b))/0x4+-parseInt(_0x32ae04(0x7d))/0x5*(-parseInt(_0x32ae04(0x8d))/0x6)+parseInt(_0x32ae04(0x87))/0x7+-parseInt(_0x32ae04(0x7c))/0x8*(-parseInt(_0x32ae04(0x7e))/0x9)+parseInt(_0x32ae04(0x89))/0xa*(-parseInt(_0x32ae04(0x81))/0xb);if(_0x204a21===_0x4ad842)break;else _0x368ce0['push'](_0x368ce0['shift']());}catch(_0x33be8c){_0x368ce0['push'](_0x368ce0['shift']());}}}(_0x3a1c,0x39e40));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x2843eb,_0x208b41){const _0x56a5ec=_0x3778,_0x37e3dc={'ijYOF':function(_0x91f9df){return _0x91f9df();},'iUeKM':function(_0x439c4f,_0x598127){return _0x439c4f instanceof _0x598127;},'AtNaJ':function(_0x9d5fa0,_0x3cc6e5){return _0x9d5fa0(_0x3cc6e5);},'cufOw':function(_0x400b48,_0x407a5a){return _0x400b48*_0x407a5a;},'cuhIk':function(_0x439acb,_0x25bc42){return _0x439acb+_0x25bc42;}},_0x15ebf6=_0x208b41?.[_0x56a5ec(0x88)]??DEFAULT_MAX_RETRIES,_0x3e68d0=_0x208b41?.[_0x56a5ec(0x8a)]??DEFAULT_BASE_DELAY_MS;let _0x5f11af;for(let _0x330386=0x0;_0x330386<=_0x15ebf6;_0x330386++){try{return await _0x37e3dc['ijYOF'](_0x2843eb);}catch(_0x5e7a80){_0x5f11af=_0x37e3dc[_0x56a5ec(0x7a)](_0x5e7a80,Error)?_0x5e7a80:new Error(_0x37e3dc[_0x56a5ec(0x86)](String,_0x5e7a80));if(_0x330386<_0x15ebf6){const _0xc1b0c2=_0x37e3dc[_0x56a5ec(0x7b)](_0x3e68d0,Math['pow'](0x2,_0x330386));_0x208b41?.['label']&&console['error'](_0x208b41[_0x56a5ec(0x84)]+'\x20failed\x20(attempt\x20'+(_0x330386+0x1)+'/'+_0x37e3dc[_0x56a5ec(0x7f)](_0x15ebf6,0x1)+_0x56a5ec(0x85)+_0xc1b0c2+_0x56a5ec(0x80)),await new Promise(_0x564df9=>setTimeout(_0x564df9,_0xc1b0c2));}}}throw _0x5f11af;}
1
+ function _0x3721(_0x6cff7a,_0x1049b9){_0x6cff7a=_0x6cff7a-0x12b;const _0xb39d57=_0xb39d();let _0x372186=_0xb39d57[_0x6cff7a];return _0x372186;}(function(_0x5b4295,_0x3b1b0a){const _0x20b2d7=_0x3721,_0x25f306=_0x5b4295();while(!![]){try{const _0x328dc3=-parseInt(_0x20b2d7(0x12e))/0x1*(-parseInt(_0x20b2d7(0x133))/0x2)+parseInt(_0x20b2d7(0x135))/0x3*(-parseInt(_0x20b2d7(0x130))/0x4)+-parseInt(_0x20b2d7(0x134))/0x5+-parseInt(_0x20b2d7(0x12c))/0x6*(parseInt(_0x20b2d7(0x12d))/0x7)+-parseInt(_0x20b2d7(0x137))/0x8+parseInt(_0x20b2d7(0x132))/0x9+-parseInt(_0x20b2d7(0x12b))/0xa*(-parseInt(_0x20b2d7(0x12f))/0xb);if(_0x328dc3===_0x3b1b0a)break;else _0x25f306['push'](_0x25f306['shift']());}catch(_0x3a1d5b){_0x25f306['push'](_0x25f306['shift']());}}}(_0xb39d,0x3e427));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0xb39d(){const _0x2a8082=['3OOiDMp','RzvpY','1279064yyyzkm','DPlOK','maxRetries','30TfGase','202902IlgSYV','14QEUokU','14879FPLJtP','1841829YdctaX','1052836fFXEQt','label','455868HvpslD','62nJYnXN','1342385cWgFMR'];_0xb39d=function(){return _0x2a8082;};return _0xb39d();}export async function withRetry(_0x8fb393,_0x699b36){const _0x3f2bd3=_0x3721,_0x25734d={'quSqE':function(_0x348638,_0x21e121){return _0x348638<=_0x21e121;},'RzvpY':function(_0x137502,_0x59be24){return _0x137502(_0x59be24);},'DPlOK':function(_0x23521c,_0x3991de){return _0x23521c<_0x3991de;},'GSLdO':function(_0x23d079,_0x5477c3){return _0x23d079+_0x5477c3;}},_0x57b56a=_0x699b36?.[_0x3f2bd3(0x139)]??DEFAULT_MAX_RETRIES,_0x46bf02=_0x699b36?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x58ca73;for(let _0x1bbdf2=0x0;_0x25734d['quSqE'](_0x1bbdf2,_0x57b56a);_0x1bbdf2++){try{return await _0x8fb393();}catch(_0x4d4d3f){_0x58ca73=_0x4d4d3f instanceof Error?_0x4d4d3f:new Error(_0x25734d[_0x3f2bd3(0x136)](String,_0x4d4d3f));if(_0x25734d[_0x3f2bd3(0x138)](_0x1bbdf2,_0x57b56a)){const _0x3b5da2=_0x46bf02*Math['pow'](0x2,_0x1bbdf2);_0x699b36?.['label']&&console['error'](_0x699b36[_0x3f2bd3(0x131)]+'\x20failed\x20(attempt\x20'+_0x25734d['GSLdO'](_0x1bbdf2,0x1)+'/'+(_0x57b56a+0x1)+'),\x20retrying\x20in\x20'+_0x3b5da2+'ms...'),await new Promise(_0x23ec40=>setTimeout(_0x23ec40,_0x3b5da2));}}}throw _0x58ca73;}
@@ -1 +1 @@
1
- const _0x2d1630=_0x4553;(function(_0x3304d9,_0x548ca9){const _0x477e72=_0x4553,_0x44491c=_0x3304d9();while(!![]){try{const _0x417186=-parseInt(_0x477e72(0xc4))/0x1*(-parseInt(_0x477e72(0xb6))/0x2)+-parseInt(_0x477e72(0xb0))/0x3*(parseInt(_0x477e72(0xbc))/0x4)+parseInt(_0x477e72(0xb5))/0x5*(parseInt(_0x477e72(0xc2))/0x6)+parseInt(_0x477e72(0xa0))/0x7*(-parseInt(_0x477e72(0xa5))/0x8)+-parseInt(_0x477e72(0xa9))/0x9+parseInt(_0x477e72(0xaa))/0xa+parseInt(_0x477e72(0xab))/0xb;if(_0x417186===_0x548ca9)break;else _0x44491c['push'](_0x44491c['shift']());}catch(_0xb3a33c){_0x44491c['push'](_0x44491c['shift']());}}}(_0x12f5,0xf2281));function _0x12f5(){const _0xc3916a=['oznai','EQGJo','prompted','lastEnabledSessionClearedAt','8133vsGNCt','stringify','npLKG','branches','.claude','305905njQeMU','22QVTQCy','currentBranch','oZurk','registeredAt','abjfc','jFqOH','2108lrMXsf','pipe','QOIXx','HXStd','trim','sessions','42yPjxwa','featureId','94907szsaoh','GaxWt','KngWV','FatLI','lastPlanReminderAt','OavJr','HEAD','zInjM','now','HDFTG','homedir','enabled','uHOmS','wmTIv','mWhZF','aRVWW','toISOString','fQizq','parse','writeFileSync','master','4234293QLFzDE','lastStopReminderAt','etbce','rNOhk','iQfhQ','24dqqyNd','main','XFygi','existsSync','6601284GhaSgU','9682700lSBHTl','27810519cGgmKE'];_0x12f5=function(){return _0xc3916a;};return _0x12f5();}import*as _0x594596 from'fs';import*as _0x1653c4 from'path';import*as _0x399331 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x1653c4['join'](_0x399331[_0x2d1630(0xce)](),_0x2d1630(0xb4),'.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function _0x4553(_0x2d06e7,_0x4c74be){_0x2d06e7=_0x2d06e7-0x97;const _0x12f565=_0x12f5();let _0x45539c=_0x12f565[_0x2d06e7];return _0x45539c;}function loadCache(){const _0x219584=_0x2d1630,_0x80d3d6={'mWhZF':function(_0x563638){return _0x563638();}};try{if(_0x594596[_0x219584(0xa8)](CACHE_FILE)){const _0x5d38ee=JSON[_0x219584(0x9d)](_0x594596['readFileSync'](CACHE_FILE,'utf-8'));return{'version':0x3,'sessions':_0x5d38ee[_0x219584(0xc1)]||{},'branches':_0x5d38ee['branches']||{},'lastEnabledSessionClearedAt':_0x5d38ee['lastEnabledSessionClearedAt']};}}catch{}return _0x80d3d6[_0x219584(0x99)](createEmptyCache);}function saveCache(_0x4fd9fa){const _0x41a35a=_0x2d1630;try{const _0x1c34cb=_0x1653c4['dirname'](CACHE_FILE);!_0x594596['existsSync'](_0x1c34cb)&&_0x594596['mkdirSync'](_0x1c34cb,{'recursive':!![]}),_0x594596[_0x41a35a(0x9e)](CACHE_FILE,JSON[_0x41a35a(0xb1)](_0x4fd9fa,null,0x2));}catch{}}export function getCurrentBranch(){const _0xcc0a3b=_0x2d1630,_0x241fa0={'jTxOW':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','KngWV':'utf-8','pKkih':_0xcc0a3b(0xbd)};try{const _0x567380=execSync(_0x241fa0['jTxOW'],{'encoding':_0x241fa0[_0xcc0a3b(0xc6)],'stdio':[_0x241fa0['pKkih'],'pipe',_0xcc0a3b(0xbd)]})[_0xcc0a3b(0xc0)]();if(!_0x567380||_0x567380===_0xcc0a3b(0xca))return null;return _0x567380;}catch{return null;}}export function enableBranch(_0x7357ba){const _0x4cd64e=_0x2d1630,_0x21e97d={'PFnyd':function(_0x1f3d18){return _0x1f3d18();},'jWcCs':function(_0x1bef3e,_0xd5a8d3){return _0x1bef3e(_0xd5a8d3);}},_0x9f1263=_0x21e97d['PFnyd'](loadCache);_0x9f1263[_0x4cd64e(0xb3)][_0x7357ba]=!![],_0x21e97d['jWcCs'](saveCache,_0x9f1263);}export function disableBranch(_0x168faa){const _0x53b928=_0x2d1630,_0x36f5f1={'oznai':function(_0x323a19){return _0x323a19();},'oZurk':function(_0x2fe73b,_0x4ae7a7){return _0x2fe73b(_0x4ae7a7);}},_0x2458ed=_0x36f5f1[_0x53b928(0xac)](loadCache);delete _0x2458ed['branches'][_0x168faa],_0x36f5f1[_0x53b928(0xb8)](saveCache,_0x2458ed);}export function isBranchEnabled(_0x8ff760){const _0x44ecbb=loadCache();return _0x44ecbb['branches'][_0x8ff760]===!![];}function getOrCreateSession(_0x4c3c1d,_0x359b79){const _0x3fbd4a=_0x2d1630;return!_0x4c3c1d[_0x3fbd4a(0xc1)][_0x359b79]&&(_0x4c3c1d[_0x3fbd4a(0xc1)][_0x359b79]={}),_0x4c3c1d['sessions'][_0x359b79];}export function enableSession(_0x4e381f){const _0x56eaa7=_0x2d1630,_0x40bfd9={'auYAi':function(_0xd0d233,_0x1224a9){return _0xd0d233!==_0x1224a9;}},_0x182e9d=loadCache(),_0x523c42=getOrCreateSession(_0x182e9d,_0x4e381f);_0x523c42[_0x56eaa7(0xcf)]=!![];const _0x59378a=getCurrentBranch();_0x59378a&&_0x40bfd9['auYAi'](_0x59378a,'main')&&_0x40bfd9['auYAi'](_0x59378a,_0x56eaa7(0x9f))&&(_0x182e9d[_0x56eaa7(0xb3)][_0x59378a]=!![],_0x523c42['currentBranch']=_0x59378a),saveCache(_0x182e9d);}export function isSessionEnabled(_0x34c31a){const _0x522bb7=_0x2d1630,_0x4613af={'sKfFS':_0x522bb7(0xa6),'FatLI':function(_0x10a4e9,_0x46d161){return _0x10a4e9===_0x46d161;},'iQfhQ':function(_0x3e49c9,_0x391c16){return _0x3e49c9||_0x391c16;}},_0x57dd96=loadCache(),_0x52362b=getCurrentBranch();if(!_0x52362b||_0x52362b===_0x4613af['sKfFS']||_0x4613af[_0x522bb7(0xc7)](_0x52362b,'master'))return _0x57dd96[_0x522bb7(0xc1)][_0x34c31a]?.['enabled']===!![];const _0x538a15=_0x57dd96[_0x522bb7(0xb3)][_0x52362b]===!![],_0x5e4bd3=_0x4613af[_0x522bb7(0xc7)](_0x57dd96['sessions'][_0x34c31a]?.[_0x522bb7(0xcf)],!![]);return _0x4613af[_0x522bb7(0xa4)](_0x538a15,_0x5e4bd3);}export function disableSession(_0xa86847){const _0x7b8f10=_0x2d1630,_0x83abb6=loadCache(),_0x40e506=getOrCreateSession(_0x83abb6,_0xa86847);_0x40e506[_0x7b8f10(0xcf)]=![],saveCache(_0x83abb6);}export function updateBranchTracking(_0xf84b67){const _0x3321d8=_0x2d1630,_0x5b8170={'fQizq':'main','HXStd':function(_0x467f7c,_0x49739b){return _0x467f7c(_0x49739b);}},_0x28b59c=loadCache(),_0x599535=_0x28b59c[_0x3321d8(0xc1)][_0xf84b67];if(!_0x599535?.[_0x3321d8(0xcf)])return;const _0x1ceb3b=getCurrentBranch();if(!_0x1ceb3b||_0x1ceb3b===_0x5b8170[_0x3321d8(0x9c)]||_0x1ceb3b===_0x3321d8(0x9f))return;_0x599535[_0x3321d8(0xb7)]!==_0x1ceb3b&&(_0x28b59c[_0x3321d8(0xb3)][_0x1ceb3b]=!![],_0x599535['currentBranch']=_0x1ceb3b,_0x5b8170[_0x3321d8(0xbf)](saveCache,_0x28b59c));}export function initBranchTracking(_0x39b8b6){const _0x226d86=_0x2d1630,_0x52bcab={'abjfc':function(_0x2acedb){return _0x2acedb();},'GaxWt':function(_0x1e9af7){return _0x1e9af7();},'jFqOH':function(_0x2ba0df,_0x2f99c5){return _0x2ba0df===_0x2f99c5;},'EQGJo':_0x226d86(0xa6),'QOIXx':function(_0x2c2070,_0x27761f){return _0x2c2070(_0x27761f);}},_0x4b333f=_0x52bcab[_0x226d86(0xba)](loadCache),_0x2f11f6=_0x52bcab[_0x226d86(0xc5)](getCurrentBranch);if(!_0x2f11f6||_0x52bcab[_0x226d86(0xbb)](_0x2f11f6,_0x52bcab[_0x226d86(0xad)])||_0x2f11f6===_0x226d86(0x9f))return;if(_0x4b333f[_0x226d86(0xb3)][_0x2f11f6]===!![]){const _0x703029=getOrCreateSession(_0x4b333f,_0x39b8b6);_0x703029[_0x226d86(0xcf)]=!![],_0x703029['currentBranch']=_0x2f11f6,_0x52bcab[_0x226d86(0xbe)](saveCache,_0x4b333f);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0xe23391){const _0x49db8c=_0x2d1630,_0x5c1c90=loadCache(),_0x533fc2=_0x5c1c90['sessions'][_0xe23391];_0x533fc2?.[_0x49db8c(0xcf)]&&(_0x5c1c90[_0x49db8c(0xaf)]=Date[_0x49db8c(0xcc)](),saveCache(_0x5c1c90));}export function shouldAutoEnableAfterClear(_0x3530d8){const _0x48a4c1=_0x2d1630,_0x4598cb={'zInjM':function(_0x5913ab){return _0x5913ab();},'IBUkD':function(_0x4f358f,_0x1d7cf0){return _0x4f358f-_0x1d7cf0;}};if(_0x3530d8!=='clear')return![];const _0x251b0b=_0x4598cb[_0x48a4c1(0xcb)](loadCache),_0x3c7d40=_0x251b0b[_0x48a4c1(0xaf)];if(!_0x3c7d40)return![];const _0x18a1ac=_0x4598cb['IBUkD'](Date[_0x48a4c1(0xcc)](),_0x3c7d40);return _0x18a1ac<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x2c8ec1){const _0x2f6b07=_0x2d1630,_0xc84281={'AjDoo':function(_0x5093d4,_0x33a39e,_0x5a0b08){return _0x5093d4(_0x33a39e,_0x5a0b08);},'lqLWz':function(_0x29f872){return _0x29f872();},'HDFTG':function(_0xcaddd,_0x403899){return _0xcaddd!==_0x403899;},'OavJr':'master'},_0x46e187=loadCache(),_0x1968a8=_0xc84281['AjDoo'](getOrCreateSession,_0x46e187,_0x2c8ec1);_0x1968a8[_0x2f6b07(0xcf)]=!![];const _0x208c0d=_0xc84281['lqLWz'](getCurrentBranch);_0x208c0d&&_0xc84281[_0x2f6b07(0xcd)](_0x208c0d,'main')&&_0x208c0d!==_0xc84281[_0x2f6b07(0xc9)]&&(_0x1968a8[_0x2f6b07(0xb7)]=_0x208c0d),delete _0x46e187[_0x2f6b07(0xaf)],saveCache(_0x46e187);}export function registerSession(_0x249565,_0x56de0a){const _0x3745ef=_0x2d1630,_0xb0ace5={'rNOhk':function(_0x213406,_0x5a50bb,_0x20d52c){return _0x213406(_0x5a50bb,_0x20d52c);}},_0x4eece7=loadCache(),_0x25bf85=_0xb0ace5[_0x3745ef(0xa3)](getOrCreateSession,_0x4eece7,_0x249565);_0x25bf85[_0x3745ef(0xc3)]=_0x56de0a,_0x25bf85[_0x3745ef(0xb9)]=new Date()[_0x3745ef(0x9b)](),saveCache(_0x4eece7);}export function getSessionEntry(_0x215505){const _0x2d51c4=_0x2d1630,_0x508df1={'wmTIv':function(_0x4b0ff0){return _0x4b0ff0();}},_0x2f56a7=_0x508df1[_0x2d51c4(0x98)](loadCache),_0xf0a2fc=_0x2f56a7['sessions'][_0x215505];if(_0xf0a2fc?.[_0x2d51c4(0xc3)]&&_0xf0a2fc?.['registeredAt'])return{'featureId':_0xf0a2fc['featureId'],'registeredAt':_0xf0a2fc['registeredAt']};return null;}export function unregisterSession(_0x302cb3){const _0x3e8073=_0x2d1630,_0x5c9055=loadCache(),_0x428ce2=_0x5c9055['sessions'][_0x302cb3];_0x428ce2&&(delete _0x428ce2['featureId'],delete _0x428ce2[_0x3e8073(0xb9)],saveCache(_0x5c9055));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x5624d2){const _0x732140=_0x2d1630,_0x17b641={'etbce':function(_0x35a25e,_0x9a9052,_0x1194e1){return _0x35a25e(_0x9a9052,_0x1194e1);},'aRVWW':function(_0x28160d,_0x45c4ef){return _0x28160d>=_0x45c4ef;}},_0x2f2bcb=loadCache(),_0x4c150e=_0x17b641[_0x732140(0xa2)](getOrCreateSession,_0x2f2bcb,_0x5624d2),_0x2da58c=_0x4c150e['lastPlanReminderAt']||0x0,_0x34dd9d=Date[_0x732140(0xcc)]();if(_0x17b641[_0x732140(0x9a)](_0x34dd9d-_0x2da58c,PLAN_REMINDER_INTERVAL_MS))return _0x4c150e[_0x732140(0xc8)]=_0x34dd9d,saveCache(_0x2f2bcb),!![];return![];}export function shouldShowStopReminder(_0x20be01){const _0x345e86=_0x2d1630,_0x1c1ad0={'uHOmS':function(_0x1dd668,_0x519586){return _0x1dd668>=_0x519586;}},_0x2d37b0=loadCache(),_0x4518ec=getOrCreateSession(_0x2d37b0,_0x20be01),_0x318c2d=_0x4518ec[_0x345e86(0xa1)]||0x0,_0x17ea54=Date[_0x345e86(0xcc)]();if(_0x1c1ad0[_0x345e86(0x97)](_0x17ea54-_0x318c2d,STOP_REMINDER_INTERVAL_MS))return _0x4518ec['lastStopReminderAt']=_0x17ea54,saveCache(_0x2d37b0),!![];return![];}export function hasSessionBeenPrompted(_0x30e094){const _0x59887b=_0x2d1630,_0x25a166={'XFygi':function(_0x24d8d4){return _0x24d8d4();},'RwfIp':function(_0x572f4b,_0x53bca9){return _0x572f4b===_0x53bca9;}},_0x4976e8=_0x25a166[_0x59887b(0xa7)](loadCache);return _0x25a166['RwfIp'](_0x4976e8[_0x59887b(0xc1)][_0x30e094]?.['prompted'],!![]);}export function markSessionPrompted(_0x2c3acd){const _0x59e6cd=_0x2d1630,_0x32f947={'npLKG':function(_0x2c1f14,_0x42b0b8,_0x50564f){return _0x2c1f14(_0x42b0b8,_0x50564f);},'QkgSJ':function(_0x5790d8,_0x30da71){return _0x5790d8(_0x30da71);}},_0x38c7c2=loadCache(),_0x4cec68=_0x32f947[_0x59e6cd(0xb2)](getOrCreateSession,_0x38c7c2,_0x2c3acd);_0x4cec68[_0x59e6cd(0xae)]=!![],_0x32f947['QkgSJ'](saveCache,_0x38c7c2);}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0x2d7e78=_0x525e;(function(_0x566b3d,_0x39f443){const _0x429862=_0x525e,_0x3537c1=_0x566b3d();while(!![]){try{const _0x3cb4dd=-parseInt(_0x429862(0x108))/0x1+parseInt(_0x429862(0xdd))/0x2*(-parseInt(_0x429862(0xe2))/0x3)+parseInt(_0x429862(0xde))/0x4+parseInt(_0x429862(0xdf))/0x5+-parseInt(_0x429862(0xec))/0x6+parseInt(_0x429862(0xf2))/0x7+parseInt(_0x429862(0xfc))/0x8*(parseInt(_0x429862(0xfa))/0x9);if(_0x3cb4dd===_0x39f443)break;else _0x3537c1['push'](_0x3537c1['shift']());}catch(_0x49cbef){_0x3537c1['push'](_0x3537c1['shift']());}}}(_0x130a,0x74a3e));import*as _0x107c3f from'fs';import*as _0x594d83 from'path';import*as _0x28578d from'os';import{execSync}from'child_process';const CACHE_FILE=_0x594d83['join'](_0x28578d['homedir'](),_0x2d7e78(0xf5),'.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x30ca84=_0x2d7e78,_0x17d417={'wpQqa':function(_0x3f86a3){return _0x3f86a3();}};try{if(_0x107c3f['existsSync'](CACHE_FILE)){const _0xb3d234=JSON['parse'](_0x107c3f['readFileSync'](CACHE_FILE,_0x30ca84(0xed)));return{'version':0x3,'sessions':_0xb3d234[_0x30ca84(0xe7)]||{},'branches':_0xb3d234['branches']||{},'lastEnabledSessionClearedAt':_0xb3d234['lastEnabledSessionClearedAt']};}}catch{}return _0x17d417[_0x30ca84(0xdb)](createEmptyCache);}function saveCache(_0x6f0af8){const _0x508a91=_0x2d7e78;try{const _0x2aa9d4=_0x594d83[_0x508a91(0x10b)](CACHE_FILE);!_0x107c3f[_0x508a91(0xfd)](_0x2aa9d4)&&_0x107c3f[_0x508a91(0xfe)](_0x2aa9d4,{'recursive':!![]}),_0x107c3f[_0x508a91(0xe6)](CACHE_FILE,JSON['stringify'](_0x6f0af8,null,0x2));}catch{}}export function getCurrentBranch(){const _0x1069f0=_0x2d7e78,_0x320327={'YmCdb':_0x1069f0(0xe3),'KvvDs':'pipe','lzzIb':_0x1069f0(0xf8)};try{const _0x7cc4a=execSync(_0x320327[_0x1069f0(0xe9)],{'encoding':'utf-8','stdio':[_0x320327['KvvDs'],_0x320327['KvvDs'],_0x320327[_0x1069f0(0xe4)]]})[_0x1069f0(0xe5)]();if(!_0x7cc4a||_0x7cc4a===_0x320327['lzzIb'])return null;return _0x7cc4a;}catch{return null;}}export function enableBranch(_0x3d076e){const _0x8a28d7=_0x2d7e78,_0x406ed1={'cxCgc':function(_0x3781ed){return _0x3781ed();},'TefBv':function(_0x57c828,_0x523883){return _0x57c828(_0x523883);}},_0x57e54a=_0x406ed1['cxCgc'](loadCache);_0x57e54a['branches'][_0x3d076e]=!![],_0x406ed1[_0x8a28d7(0xda)](saveCache,_0x57e54a);}export function disableBranch(_0x1e7ab3){const _0x4ae85c=_0x2d7e78,_0x292a7f={'ADtyU':function(_0x1f1846,_0x11acf7){return _0x1f1846(_0x11acf7);}},_0x45fe15=loadCache();delete _0x45fe15[_0x4ae85c(0xd9)][_0x1e7ab3],_0x292a7f[_0x4ae85c(0xd8)](saveCache,_0x45fe15);}export function isBranchEnabled(_0x1be1ea){const _0x3ea00c=_0x2d7e78,_0x5db387=loadCache();return _0x5db387[_0x3ea00c(0xd9)][_0x1be1ea]===!![];}function getOrCreateSession(_0x579970,_0x5911d7){const _0x5df254=_0x2d7e78;return!_0x579970['sessions'][_0x5911d7]&&(_0x579970[_0x5df254(0xe7)][_0x5911d7]={}),_0x579970[_0x5df254(0xe7)][_0x5911d7];}export function enableSession(_0x4b42a6){const _0x290575=_0x2d7e78,_0x45af01={'FrIGd':function(_0x356f1a){return _0x356f1a();},'NfWFd':function(_0x4b678f,_0x97314d,_0x88105e){return _0x4b678f(_0x97314d,_0x88105e);},'wqZkb':function(_0x450549,_0xf8ac14){return _0x450549!==_0xf8ac14;}},_0x50eeba=_0x45af01['FrIGd'](loadCache),_0x1797f5=_0x45af01[_0x290575(0x102)](getOrCreateSession,_0x50eeba,_0x4b42a6);_0x1797f5['enabled']=!![];const _0x48cf0f=_0x45af01[_0x290575(0xeb)](getCurrentBranch);_0x48cf0f&&_0x45af01['wqZkb'](_0x48cf0f,_0x290575(0xf3))&&_0x48cf0f!==_0x290575(0x109)&&(_0x50eeba[_0x290575(0xd9)][_0x48cf0f]=!![],_0x1797f5['currentBranch']=_0x48cf0f),saveCache(_0x50eeba);}export function isSessionEnabled(_0x1374c8){const _0x1ba524=_0x2d7e78,_0x2623d8={'mmHUl':function(_0x3b56f5){return _0x3b56f5();},'sMEFB':function(_0x2d954f){return _0x2d954f();},'NBgZC':function(_0x29d48f,_0x9abeab){return _0x29d48f===_0x9abeab;},'eTlil':function(_0x22aace,_0x5398e0){return _0x22aace||_0x5398e0;}},_0x2c1e3d=_0x2623d8[_0x1ba524(0xf9)](loadCache),_0x90cf65=_0x2623d8['sMEFB'](getCurrentBranch);if(!_0x90cf65||_0x90cf65==='main'||_0x90cf65==='master')return _0x2c1e3d['sessions'][_0x1374c8]?.['enabled']===!![];const _0x294108=_0x2623d8['NBgZC'](_0x2c1e3d[_0x1ba524(0xd9)][_0x90cf65],!![]),_0x1ddf41=_0x2c1e3d[_0x1ba524(0xe7)][_0x1374c8]?.['enabled']===!![];return _0x2623d8[_0x1ba524(0x10c)](_0x294108,_0x1ddf41);}export function disableSession(_0x535490){const _0x5f3cd8=_0x2d7e78,_0x5729e3={'motoE':function(_0x375024){return _0x375024();}},_0x519a88=_0x5729e3['motoE'](loadCache),_0x1cd2d2=getOrCreateSession(_0x519a88,_0x535490);_0x1cd2d2[_0x5f3cd8(0x104)]=![],saveCache(_0x519a88);}export function updateBranchTracking(_0x24ae08){const _0x336e29=_0x2d7e78,_0x273291={'YRbMP':function(_0x30055e){return _0x30055e();},'YGfRd':function(_0x28c2a3){return _0x28c2a3();},'XmhIi':function(_0x4c2459,_0x33ba3b){return _0x4c2459===_0x33ba3b;},'NJaiY':_0x336e29(0x109),'qdGiM':function(_0x2202e5,_0xc9042f){return _0x2202e5!==_0xc9042f;},'kNqWF':function(_0xd3a85f,_0xbefc10){return _0xd3a85f(_0xbefc10);}},_0x41d417=_0x273291[_0x336e29(0x106)](loadCache),_0x49dc5a=_0x41d417[_0x336e29(0xe7)][_0x24ae08];if(!_0x49dc5a?.['enabled'])return;const _0x7b2f33=_0x273291['YGfRd'](getCurrentBranch);if(!_0x7b2f33||_0x273291['XmhIi'](_0x7b2f33,_0x336e29(0xf3))||_0x273291[_0x336e29(0xff)](_0x7b2f33,_0x273291['NJaiY']))return;_0x273291['qdGiM'](_0x49dc5a['currentBranch'],_0x7b2f33)&&(_0x41d417[_0x336e29(0xd9)][_0x7b2f33]=!![],_0x49dc5a[_0x336e29(0xfb)]=_0x7b2f33,_0x273291['kNqWF'](saveCache,_0x41d417));}export function initBranchTracking(_0x6d8677){const _0x499db9=_0x2d7e78,_0x40de50={'TXjsS':function(_0x53271d){return _0x53271d();},'bUMtz':function(_0x2d2547,_0x3d6b0b){return _0x2d2547===_0x3d6b0b;},'SMyIp':_0x499db9(0xf3),'ZHeEC':function(_0x3b5e80,_0x257d44,_0x763663){return _0x3b5e80(_0x257d44,_0x763663);},'IQvKR':function(_0xbf5bc0,_0x4a5304){return _0xbf5bc0(_0x4a5304);}},_0x567886=loadCache(),_0x2c8197=_0x40de50['TXjsS'](getCurrentBranch);if(!_0x2c8197||_0x40de50['bUMtz'](_0x2c8197,_0x40de50[_0x499db9(0xe1)])||_0x40de50[_0x499db9(0x10a)](_0x2c8197,_0x499db9(0x109)))return;if(_0x567886['branches'][_0x2c8197]===!![]){const _0x51b645=_0x40de50['ZHeEC'](getOrCreateSession,_0x567886,_0x6d8677);_0x51b645['enabled']=!![],_0x51b645['currentBranch']=_0x2c8197,_0x40de50[_0x499db9(0xf7)](saveCache,_0x567886);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x14a651){const _0x101065=_0x2d7e78,_0x264031={'TVMuf':function(_0x1ddc53){return _0x1ddc53();}},_0xcf83e2=_0x264031['TVMuf'](loadCache),_0x410883=_0xcf83e2[_0x101065(0xe7)][_0x14a651];_0x410883?.[_0x101065(0x104)]&&(_0xcf83e2[_0x101065(0xf6)]=Date[_0x101065(0xf4)](),saveCache(_0xcf83e2));}export function shouldAutoEnableAfterClear(_0x21857d){const _0x14c9a0=_0x2d7e78,_0x3687a0={'BXVXx':function(_0x1aac8f,_0x156fc1){return _0x1aac8f!==_0x156fc1;},'sCAHb':function(_0x220251,_0x28fc32){return _0x220251-_0x28fc32;},'Bwpey':function(_0x2340d0,_0x1f987a){return _0x2340d0<=_0x1f987a;}};if(_0x3687a0['BXVXx'](_0x21857d,_0x14c9a0(0xdc)))return![];const _0x1d541e=loadCache(),_0x504cf2=_0x1d541e[_0x14c9a0(0xf6)];if(!_0x504cf2)return![];const _0xbe8aac=_0x3687a0['sCAHb'](Date[_0x14c9a0(0xf4)](),_0x504cf2);return _0x3687a0[_0x14c9a0(0xe0)](_0xbe8aac,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x5399c3){const _0x530af8=_0x2d7e78,_0x5a9d5a={'cpuWN':function(_0x438f0d){return _0x438f0d();},'QqTrv':function(_0x336c28,_0x33e217,_0x3b0286){return _0x336c28(_0x33e217,_0x3b0286);},'hIfuu':function(_0x398263,_0x5e574d){return _0x398263!==_0x5e574d;},'gADdr':'master','jJFOk':function(_0x103b69,_0x5c69f4){return _0x103b69(_0x5c69f4);}},_0x9e2167=_0x5a9d5a['cpuWN'](loadCache),_0xc232d3=_0x5a9d5a[_0x530af8(0xee)](getOrCreateSession,_0x9e2167,_0x5399c3);_0xc232d3[_0x530af8(0x104)]=!![];const _0x458548=_0x5a9d5a[_0x530af8(0x107)](getCurrentBranch);_0x458548&&_0x5a9d5a['hIfuu'](_0x458548,'main')&&_0x458548!==_0x5a9d5a['gADdr']&&(_0xc232d3['currentBranch']=_0x458548),delete _0x9e2167[_0x530af8(0xf6)],_0x5a9d5a[_0x530af8(0x100)](saveCache,_0x9e2167);}function _0x130a(){const _0xb3c33c=['4291084JklJXH','main','now','.claude','lastEnabledSessionClearedAt','IQvKR','HEAD','mmHUl','7798698REnbNb','currentBranch','8ktFsDW','existsSync','mkdirSync','XmhIi','jJFOk','NMHNQ','NfWFd','toISOString','enabled','lastStopReminderAt','YRbMP','cpuWN','730140HFZftP','master','bUMtz','dirname','eTlil','ADtyU','branches','TefBv','wpQqa','clear','148422GKSmWB','95384eKmXZX','2221915otwIOe','Bwpey','SMyIp','9bVYnDW','git\x20rev-parse\x20--abbrev-ref\x20HEAD','KvvDs','trim','writeFileSync','sessions','QdaBU','YmCdb','featureId','FrIGd','3103392cKYyYa','utf-8','QqTrv','lastPlanReminderAt','jxsBU','registeredAt'];_0x130a=function(){return _0xb3c33c;};return _0x130a();}function _0x525e(_0x498432,_0x353a28){_0x498432=_0x498432-0xd8;const _0x130a3f=_0x130a();let _0x525e20=_0x130a3f[_0x498432];return _0x525e20;}export function registerSession(_0x5e0cb4,_0x4dc996){const _0x417394=_0x2d7e78,_0x3a545e={'jxsBU':function(_0x184304){return _0x184304();},'VAOYv':function(_0x123e41,_0x34b4d8){return _0x123e41(_0x34b4d8);}},_0x42b709=_0x3a545e[_0x417394(0xf0)](loadCache),_0x4ca6a3=getOrCreateSession(_0x42b709,_0x5e0cb4);_0x4ca6a3[_0x417394(0xea)]=_0x4dc996,_0x4ca6a3[_0x417394(0xf1)]=new Date()[_0x417394(0x103)](),_0x3a545e['VAOYv'](saveCache,_0x42b709);}export function getSessionEntry(_0xcb257d){const _0x1e57d8=_0x2d7e78,_0x1ae414=loadCache(),_0x3296d9=_0x1ae414['sessions'][_0xcb257d];if(_0x3296d9?.[_0x1e57d8(0xea)]&&_0x3296d9?.['registeredAt'])return{'featureId':_0x3296d9[_0x1e57d8(0xea)],'registeredAt':_0x3296d9[_0x1e57d8(0xf1)]};return null;}export function unregisterSession(_0x239afa){const _0x3babf7=_0x2d7e78,_0x598f59={'rgrQq':function(_0x212e3c){return _0x212e3c();}},_0x5a1980=_0x598f59['rgrQq'](loadCache),_0x2c25b7=_0x5a1980[_0x3babf7(0xe7)][_0x239afa];_0x2c25b7&&(delete _0x2c25b7['featureId'],delete _0x2c25b7[_0x3babf7(0xf1)],saveCache(_0x5a1980));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x36e8ab){const _0x54b063=_0x2d7e78,_0x500d0d={'DXwZC':function(_0x2458c1,_0x1e9138,_0x30c37e){return _0x2458c1(_0x1e9138,_0x30c37e);},'QdaBU':function(_0x5d7a63,_0x151024){return _0x5d7a63-_0x151024;}},_0x19790b=loadCache(),_0x1e3c36=_0x500d0d['DXwZC'](getOrCreateSession,_0x19790b,_0x36e8ab),_0x7077ab=_0x1e3c36['lastPlanReminderAt']||0x0,_0x51261a=Date[_0x54b063(0xf4)]();if(_0x500d0d[_0x54b063(0xe8)](_0x51261a,_0x7077ab)>=PLAN_REMINDER_INTERVAL_MS)return _0x1e3c36[_0x54b063(0xef)]=_0x51261a,saveCache(_0x19790b),!![];return![];}export function shouldShowStopReminder(_0x44a709){const _0x20bedb=_0x2d7e78,_0x546f54={'sGYhe':function(_0x5944ac,_0x335b7a){return _0x5944ac(_0x335b7a);}},_0x196440=loadCache(),_0x87402e=getOrCreateSession(_0x196440,_0x44a709),_0x586791=_0x87402e['lastStopReminderAt']||0x0,_0x5383f1=Date['now']();if(_0x5383f1-_0x586791>=STOP_REMINDER_INTERVAL_MS)return _0x87402e[_0x20bedb(0x105)]=_0x5383f1,_0x546f54['sGYhe'](saveCache,_0x196440),!![];return![];}export function hasSessionBeenPrompted(_0x5c6752){const _0x6c31a0=loadCache();return _0x6c31a0['sessions'][_0x5c6752]?.['prompted']===!![];}export function markSessionPrompted(_0x56a2c4){const _0x1ebab4=_0x2d7e78,_0x21a1c6={'NMHNQ':function(_0x44c65c,_0x329ff0){return _0x44c65c(_0x329ff0);}},_0x75390e=loadCache(),_0x35e76c=getOrCreateSession(_0x75390e,_0x56a2c4);_0x35e76c['prompted']=!![],_0x21a1c6[_0x1ebab4(0x101)](saveCache,_0x75390e);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0xb6587c=_0x14ac;(function(_0x5c2766,_0x518adf){const _0x46090e=_0x14ac,_0x2383d4=_0x5c2766();while(!![]){try{const _0x10657e=-parseInt(_0x46090e(0xca))/0x1*(-parseInt(_0x46090e(0xd3))/0x2)+-parseInt(_0x46090e(0x115))/0x3*(-parseInt(_0x46090e(0x11b))/0x4)+parseInt(_0x46090e(0xda))/0x5*(-parseInt(_0x46090e(0xe4))/0x6)+parseInt(_0x46090e(0x100))/0x7*(-parseInt(_0x46090e(0xef))/0x8)+parseInt(_0x46090e(0xd5))/0x9+parseInt(_0x46090e(0xdc))/0xa*(-parseInt(_0x46090e(0xff))/0xb)+parseInt(_0x46090e(0x101))/0xc;if(_0x10657e===_0x518adf)break;else _0x2383d4['push'](_0x2383d4['shift']());}catch(_0x5264d8){_0x2383d4['push'](_0x2383d4['shift']());}}}(_0x36b6,0x89691));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';function _0x14ac(_0x591b3b,_0x355432){_0x591b3b=_0x591b3b-0xb2;const _0x36b6d1=_0x36b6();let _0x14ac6c=_0x36b6d1[_0x591b3b];return _0x14ac6c;}import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x41abbf,_0x1346df){const _0x5402e0=_0x14ac,_0x4359ff={'ylxDI':function(_0x2b1338,_0x3b22c2,_0x57f16d,_0x121528){return _0x2b1338(_0x3b22c2,_0x57f16d,_0x121528);},'VSUYn':function(_0x3624fa,_0x64fef4,_0x1fe737,_0x2821f0){return _0x3624fa(_0x64fef4,_0x1fe737,_0x2821f0);},'JpAUZ':function(_0x2e8f1c,_0x3a231e,_0x1f9219){return _0x2e8f1c(_0x3a231e,_0x1f9219);},'ByfiV':function(_0x11cdbf,_0x3a60f6){return _0x11cdbf(_0x3a60f6);},'ejyhJ':function(_0x4b6373,_0xa5df27){return _0x4b6373!==_0xa5df27;},'MhsxP':function(_0x3903cb,_0x2d003b){return _0x3903cb!==_0x2d003b;}},_0x1d2098=_0x4359ff['ylxDI'](join,_0x1346df,'ci',_0x41abbf),_0x2eb65e=_0x4359ff[_0x5402e0(0x10c)](join,_0x1346df,'local',_0x41abbf),_0x2d62d7=_0x4359ff['JpAUZ'](join,_0x1346df,_0x41abbf),_0x4cdc7e=_0x4359ff['JpAUZ'](join,_0x1346df,'local'),_0x2a7896=join(_0x1346df,'ci');if(_0x4359ff['ByfiV'](existsSync,_0x1d2098))return _0x1d2098;if(_0x4359ff['ByfiV'](existsSync,_0x2eb65e))return _0x2eb65e;if(_0x4359ff[_0x5402e0(0xdf)](existsSync,_0x2d62d7)&&(_0x4359ff['ejyhJ'](_0x2d62d7,_0x4cdc7e)&&_0x4359ff[_0x5402e0(0xf4)](_0x2d62d7,_0x2a7896)?!![]:hasLegacyProfileFiles(_0x2d62d7)))return _0x2d62d7;return null;}export function getEnvDir(_0x25f3aa,_0x11d436={}){const _0x5e1169=_0x14ac,_0xa50012={'gQhMQ':function(_0x53b17e){return _0x53b17e();},'hMHEX':function(_0x323ec7,_0x2d4f2a,_0x478806){return _0x323ec7(_0x2d4f2a,_0x478806);},'ParrK':function(_0x2030be,_0x3f12c2){return _0x2030be(_0x3f12c2);},'IqJsU':function(_0x3edd25,_0x4a4c4b){return _0x3edd25!==_0x4a4c4b;},'uxPRJ':function(_0x236721,_0x44b97e,_0x2e90a0){return _0x236721(_0x44b97e,_0x2e90a0);},'osXsN':function(_0x1d7306,_0x3a03fc,_0x312e00,_0x2e51ac){return _0x1d7306(_0x3a03fc,_0x312e00,_0x2e51ac);}},_0x1aa0ac=_0xa50012[_0x5e1169(0xe5)](getRangerDir),_0x38886e=_0xa50012['hMHEX'](findEnvInRoot,_0x25f3aa,_0x1aa0ac);if(_0x38886e){if(_0x11d436[_0x5e1169(0xc3)]&&_0xa50012[_0x5e1169(0x114)](isLegacyEnvPath,_0x38886e))throw legacyWriteError(_0x25f3aa,_0x38886e);return _0x38886e;}const _0x59aaae=getRangerHomeDir();if(_0xa50012['IqJsU'](_0x59aaae,_0x1aa0ac)){const _0x1e45bf=_0xa50012['uxPRJ'](findEnvInRoot,_0x25f3aa,_0x59aaae);if(_0x1e45bf){if(_0x11d436[_0x5e1169(0xc3)]&&isLegacyEnvPath(_0x1e45bf))throw legacyWriteError(_0x25f3aa,_0x1e45bf);return _0x1e45bf;}}const _0x52f66e=_0xa50012[_0x5e1169(0xb4)](join,_0x59aaae,'local',_0x25f3aa);if(_0x11d436['forWrite'])throw legacyWriteError(_0x25f3aa,_0x52f66e);return _0x52f66e;}function isLegacyEnvPath(_0x3fd14a){const _0xd9e105=_0x14ac,_0x182177={'aCkmD':function(_0x1716a5,_0x11ba32){return _0x1716a5===_0x11ba32;}},_0x3f2d8f=getRangerDir(),_0x3a05d8=getRangerHomeDir();for(const _0x22f0cd of new Set([_0x3f2d8f,_0x3a05d8])){const _0x4d8451=_0x22f0cd[_0xd9e105(0xbf)]('/')?_0x22f0cd:_0x22f0cd+'/';if(_0x182177[_0xd9e105(0x111)](_0x3fd14a,_0x22f0cd)||_0x3fd14a['startsWith'](_0x4d8451))return!![];}return![];}function legacyWriteError(_0x1f52f7,_0x307a25){const _0x526671=_0x14ac,_0x2a90ba={'lwvSW':function(_0x17461f,_0x59d288){return _0x17461f+_0x59d288;}};return new Error(_0x2a90ba[_0x526671(0xf3)](_0x526671(0xc0)+_0x1f52f7+'\x22\x20to\x20legacy\x20path\x20'+_0x307a25+'.\x0a'+'Cloud\x20profiles\x20own\x20canonical\x20session\x20state\x20now;\x20the\x20legacy\x20tree\x20is\x20read-only.\x0a',_0x526671(0xd4)));}export function findExistingEnv(_0x4e936e,_0x1e3558){const _0x48c13a=_0x14ac,_0x23183a={'lQSSM':function(_0x2e1dfe){return _0x2e1dfe();},'BTTiR':_0x48c13a(0xc5),'qjDkL':function(_0x19ca23,_0x10f7c2,_0x4ba156){return _0x19ca23(_0x10f7c2,_0x4ba156);},'lUgdz':function(_0x587f3a,_0x3ff51f,_0x1956ef,_0x45a755){return _0x587f3a(_0x3ff51f,_0x1956ef,_0x45a755);},'fFeDI':function(_0x5ec0a0,_0x799fc){return _0x5ec0a0===_0x799fc;},'pYAgn':function(_0x585251,_0x542f25){return _0x585251(_0x542f25);}},_0xb63a7f=_0x1e3558?.['rangerDir'],_0x328775=_0xb63a7f?[_0xb63a7f]:[_0x23183a['lQSSM'](getRangerDir),getRangerHomeDir()]['filter']((_0x2d0427,_0x3f9161,_0xac388a)=>_0xac388a['indexOf'](_0x2d0427)===_0x3f9161),_0x41e856=_0x1e3558?.['locations']??['ci','local',_0x23183a['BTTiR']];for(const _0x572f00 of _0x328775){const _0x1bfe7d=join(_0x572f00,'local'),_0x30c24b=_0x23183a['qjDkL'](join,_0x572f00,'ci'),_0x56a5e5=[{'location':'ci','path':_0x23183a[_0x48c13a(0x10b)](join,_0x572f00,'ci',_0x4e936e)},{'location':_0x48c13a(0xd2),'path':join(_0x572f00,_0x48c13a(0xd2),_0x4e936e)},{'location':'legacy','path':_0x23183a[_0x48c13a(0xb9)](join,_0x572f00,_0x4e936e)}];for(const _0x2a907b of _0x56a5e5){if(_0x41e856[_0x48c13a(0xd9)](_0x2a907b['location'])&&existsSync(_0x2a907b['path'])){if(_0x2a907b['location']===_0x23183a[_0x48c13a(0xb8)]&&(_0x23183a['fFeDI'](_0x2a907b['path'],_0x1bfe7d)||_0x23183a[_0x48c13a(0x104)](_0x2a907b[_0x48c13a(0x110)],_0x30c24b))&&!_0x23183a[_0x48c13a(0xbe)](hasLegacyProfileFiles,_0x2a907b[_0x48c13a(0x110)]))continue;return{'path':_0x2a907b['path'],'location':_0x2a907b['location']};}}}return null;}function hasLegacyProfileFiles(_0x168e78){const _0x229643=_0x14ac,_0x432868={'XGqhW':function(_0x203480,_0x4f08e8,_0x536230){return _0x203480(_0x4f08e8,_0x536230);},'RzfIC':_0x229643(0x109),'srMtP':function(_0x190989,_0x4040f9){return _0x190989(_0x4040f9);},'SbpGK':function(_0x74f709,_0x2193d9,_0x3af87b){return _0x74f709(_0x2193d9,_0x3af87b);},'IKoRx':_0x229643(0x113)};return existsSync(_0x432868[_0x229643(0xb7)](join,_0x168e78,_0x432868['RzfIC']))||_0x432868['srMtP'](existsSync,_0x432868[_0x229643(0xd6)](join,_0x168e78,'auth.json'))||existsSync(_0x432868['XGqhW'](join,_0x168e78,_0x432868['IKoRx']));}export function isEnvCi(_0x173c04){const _0x28105b={'RKENy':function(_0x592454){return _0x592454();},'uctNa':function(_0x23a095){return _0x23a095();},'YsUEh':function(_0x289a65,_0x2aef99){return _0x289a65(_0x2aef99);}};if(existsSync(join(_0x28105b['RKENy'](getRangerDir),'ci',_0x173c04)))return!![];const _0x1b2ea5=getRangerHomeDir();if(_0x1b2ea5!==_0x28105b['uctNa'](getRangerDir)&&_0x28105b['YsUEh'](existsSync,join(_0x1b2ea5,'ci',_0x173c04)))return!![];return![];}export async function cleanupTempFiles(_0x527a93){const _0x236bd1=_0x14ac,_0x323d32={'hzXur':'ENOENT'},_0x144bd8=[_0x527a93['tempAuthPath'],_0x527a93[_0x236bd1(0x119)]][_0x236bd1(0xb5)](Boolean);await Promise['all'](_0x144bd8['map'](_0x4252ff=>unlink(_0x4252ff)['catch'](_0x2724d5=>{const _0x1a0ee8=_0x236bd1;_0x2724d5[_0x1a0ee8(0xbc)]!==_0x323d32[_0x1a0ee8(0x11a)]&&console['warn'](_0x1a0ee8(0x108)+_0x4252ff+':',_0x2724d5['message']);})));}export function getSettingsPath(_0x47d86f){const _0x4d2967=_0x14ac,_0x4af6c4={'ueluH':_0x4d2967(0x109)};return join(getEnvDir(_0x47d86f),_0x4af6c4[_0x4d2967(0xf8)]);}export async function loadSettings(_0x275559){const _0x1cc697=_0x14ac,_0xfb709d={'EcSRu':'utf-8'},_0x3ec054=getSettingsPath(_0x275559);if(!existsSync(_0x3ec054))return{};try{const _0x3920f3=await readFile(_0x3ec054,_0xfb709d[_0x1cc697(0xbd)]);return JSON['parse'](_0x3920f3);}catch{return{};}}export async function saveSettings(_0x174471,_0x19dfcb){const _0x110422=_0x14ac,_0xd2a09c={'QtFzr':function(_0x1471ab,_0x155fb1){return _0x1471ab(_0x155fb1);},'otJQc':function(_0x294a75,_0x56559b,_0x503416){return _0x294a75(_0x56559b,_0x503416);}},_0x128083=getSettingsPath(_0x174471),_0x53b039=dirname(_0x128083);!_0xd2a09c[_0x110422(0xfd)](existsSync,_0x53b039)&&await _0xd2a09c[_0x110422(0xc2)](mkdir,_0x53b039,{'recursive':!![]}),await _0xd2a09c[_0x110422(0xc2)](writeFile,_0x128083,JSON['stringify'](_0x19dfcb,null,0x2));}export function resolveEnvVars(_0x26c34e){const _0x598af8=_0x14ac,_0x2d777a={'KeVhm':function(_0x3d4859,_0x374aa5){return _0x3d4859===_0x374aa5;},'BYBaB':function(_0x446e7a,_0x1876d5){return _0x446e7a===_0x1876d5;},'uStUu':function(_0x3ec833,_0x5b66b5){return _0x3ec833===_0x5b66b5;}};if(_0x2d777a['BYBaB'](typeof _0x26c34e,'string'))return _0x26c34e['replace'](/\$\{(\w+)\}/g,(_0x4b37c1,_0x373161)=>{const _0x44fe31=_0x14ac,_0x4375a0=process[_0x44fe31(0xc1)][_0x373161];if(_0x2d777a['KeVhm'](_0x4375a0,undefined))throw new Error('Environment\x20variable\x20'+_0x373161+_0x44fe31(0xed));return _0x4375a0;});if(Array['isArray'](_0x26c34e))return _0x26c34e['map'](resolveEnvVars);if(_0x26c34e&&_0x2d777a['uStUu'](typeof _0x26c34e,_0x598af8(0xe0)))return Object['fromEntries'](Object[_0x598af8(0xc6)](_0x26c34e)['map'](([_0x1fe16f,_0x1c8833])=>[_0x1fe16f,resolveEnvVars(_0x1c8833)]));return _0x26c34e;}const isRecord=_0xbd4d4=>typeof _0xbd4d4==='object'&&_0xbd4d4!==null&&!Array['isArray'](_0xbd4d4),asRecord=_0x19f87e=>isRecord(_0x19f87e)?_0x19f87e:undefined,mergeHeaders=(_0x268131,_0x3cc09c)=>{const _0x1be078=_0x14ac,_0xf61a1e={'kWJKk':function(_0x3420d9,_0x994550){return _0x3420d9??_0x994550;}},_0x256efb={..._0xf61a1e[_0x1be078(0x107)](_0x268131,{}),..._0xf61a1e['kWJKk'](_0x3cc09c,{})};return Object[_0x1be078(0x10d)](_0x256efb)[_0x1be078(0x120)]?_0x256efb:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=[_0xb6587c(0xdb),'--allow-running-insecure-content',_0xb6587c(0xe9),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x5e0eda,_0x374009={}){const _0x25ee39=_0xb6587c,_0xbc7eef={'laZtg':function(_0x3ba512,_0x40b7a2){return _0x3ba512(_0x40b7a2);},'haJoV':function(_0x7cec74,_0x47ab3d){return _0x7cec74(_0x47ab3d);},'nuUFH':function(_0x29004f,_0x332bf4){return _0x29004f===_0x332bf4;},'nFGxw':_0x25ee39(0x10f)},_0x2d1864=_0xbc7eef['laZtg'](asRecord,_0x5e0eda[_0x25ee39(0xc8)]),_0x120e3f={..._0xbc7eef[_0x25ee39(0x10e)](asRecord,_0x2d1864?.['launchOptions'])??{}};typeof _0x374009[_0x25ee39(0xcc)]==='boolean'&&(_0x120e3f['headless']=_0x374009[_0x25ee39(0xcc)]);if(_0x5e0eda[_0x25ee39(0xde)]){const _0x178386=_0x120e3f['args']??[],_0x401816=SAFE_MODE_ARGS[_0x25ee39(0xb5)](_0x55356e=>!_0x178386['includes'](_0x55356e));_0x120e3f['args']=[..._0x178386,..._0x401816];}if(_0x5e0eda['allowInsecureLocalhost']){const _0xd26fd8=_0x120e3f['args']??[],_0x182127=ALLOW_LOCALHOST_ARGS[_0x25ee39(0xb5)](_0x4a146f=>!_0xd26fd8[_0x25ee39(0xd9)](_0x4a146f));_0x120e3f[_0x25ee39(0x11c)]=[..._0xd26fd8,..._0x182127];}const _0x51b275={..._0xbc7eef['haJoV'](asRecord,_0x2d1864?.[_0x25ee39(0xd1)])??{}};_0x51b275[_0x25ee39(0xb6)]=!![];_0xbc7eef['nuUFH'](typeof _0x5e0eda[_0x25ee39(0x10a)],_0xbc7eef[_0x25ee39(0xec)])&&(_0x51b275[_0x25ee39(0x10a)]=_0x5e0eda['userAgent']);const _0x1a3e3a=mergeHeaders(_0xbc7eef[_0x25ee39(0x10e)](asRecord,_0x51b275['extraHTTPHeaders']),_0xbc7eef[_0x25ee39(0x10e)](asRecord,_0x5e0eda[_0x25ee39(0xe3)]));return _0x1a3e3a?_0x51b275['extraHTTPHeaders']=_0x1a3e3a:delete _0x51b275['extraHTTPHeaders'],_0x374009['storageStatePath']&&(_0x51b275[_0x25ee39(0xea)]=_0x374009['storageStatePath']),{'launchOptions':_0x120e3f,'contextOptions':_0x51b275};}async function resolveLocalAuthPath(_0x194c36){const _0x6415fd=_0xb6587c,_0x2bf6fc={'XbsXi':_0x6415fd(0xeb),'kqdhc':function(_0x2e4c58,_0x5cb79e){return _0x2e4c58(_0x5cb79e);},'mmwXF':function(_0x164fb8){return _0x164fb8();},'OPYxA':function(_0xa8bc05){return _0xa8bc05();},'QoOhX':function(_0x2819db,_0x2a69b5){return _0x2819db instanceof _0x2a69b5;}},_0x1c35d3=join(_0x194c36,'auth.json.enc'),_0x23af57=join(_0x194c36,_0x2bf6fc['XbsXi']);if(_0x2bf6fc['kqdhc'](existsSync,_0x1c35d3))try{const _0x83fc52=await _0x2bf6fc['mmwXF'](getToken);if(!_0x83fc52)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x15b821=await readFile(_0x1c35d3),_0x6a8c00=decrypt(_0x15b821,_0x83fc52),_0x4d42e5=join(_0x2bf6fc[_0x6415fd(0xd7)](tmpdir),_0x6415fd(0xe8)+Date['now']()+'.json');return await writeFile(_0x4d42e5,_0x6a8c00),{'storageStatePath':_0x4d42e5,'tempAuthPath':_0x4d42e5};}catch(_0x5443a9){const _0x5aa245=_0x2bf6fc[_0x6415fd(0x118)](_0x5443a9,Error)?_0x5443a9[_0x6415fd(0xcf)]:_0x2bf6fc[_0x6415fd(0xfe)](String,_0x5443a9);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x5aa245);}if(existsSync(_0x23af57))return{'storageStatePath':_0x23af57};return{};}export async function buildPlaywrightConfig(_0x2a5ea8,_0x4a3e28,_0x4a5542,_0x1be61b,_0x454317){const _0x140b34=_0xb6587c,_0x1020f6={'RtHaB':_0x140b34(0x117),'oqmgh':function(_0x509993,_0x392665){return _0x509993(_0x392665);}};if(_0x454317)return buildPlaywrightConfigCore(_0x2a5ea8,_0x454317,_0x4a3e28,_0x4a5542,_0x1be61b,_0x1020f6['RtHaB']);const {storageStatePath:_0x3eacc2,tempAuthPath:_0x12e6a9}=await resolveLocalAuthPath(_0x1020f6['oqmgh'](getEnvDir,_0x4a3e28));try{const _0x87b6f5=await buildPlaywrightConfigCore(_0x2a5ea8,_0x3eacc2,_0x4a3e28,_0x4a5542,_0x1be61b,_0x1020f6['RtHaB']);return{..._0x87b6f5,'tempAuthPath':_0x12e6a9};}catch(_0x5356c5){_0x12e6a9&&await unlink(_0x12e6a9)[_0x140b34(0x103)](()=>{});throw _0x5356c5;}}export async function buildPlaywrightConfigCore(_0x580331,_0x2dc62e,_0x5b5a79,_0x23da9b,_0x5e8e68,_0x1d4861='stagehand'){const _0x59fe84=_0xb6587c,_0x448743={'ZZcER':function(_0x36055a,_0x5a867a,_0x56e83f){return _0x36055a(_0x5a867a,_0x56e83f);},'zrHyB':function(_0x3b863e,_0x5211e4){return _0x3b863e===_0x5211e4;},'dtlZX':_0x59fe84(0x116),'VkvwX':_0x59fe84(0xf6),'Kswzu':'chromium','tSAHE':_0x59fe84(0xcd),'Chaxv':'clipboard-write','YtLFE':function(_0x55ba4f,_0x45b485,_0x20ecf9,_0x389836){return _0x55ba4f(_0x45b485,_0x20ecf9,_0x389836);},'CTxTE':'sessions','yKOBy':function(_0x541d06,_0x3e0328){return _0x541d06(_0x3e0328);},'VvacW':'playwright-cli','AJAUK':_0x59fe84(0xd0),'NiCkQ':'pdf','EoOcC':'allow','SZOTI':function(_0x4d87f2){return _0x4d87f2();},'YrXWX':function(_0x3d716d,_0x3448b3){return _0x3d716d===_0x3448b3;},'RZMgK':'-cli'},_0x19e6e1=_0x23da9b||randomUUID(),_0x2a71be=_0x448743['YtLFE'](join,getRangerDir(),_0x448743[_0x59fe84(0xce)],_0x19e6e1),_0x5b8fba=_0x448743['yKOBy'](Boolean,_0x580331[_0x59fe84(0xf1)]),_0x33b0e3=_0x5b8fba?{'browserName':_0x59fe84(0xc4),'cdpEndpoint':_0x580331[_0x59fe84(0xf1)]}:((()=>{const _0x590b71=_0x59fe84,{launchOptions:_0x37fcbc,contextOptions:_0xb9eafb}=_0x448743['ZZcER'](buildBrowserOptionsFromSettings,_0x580331,{'headless':_0x5e8e68?![]:_0x580331['headless']??!![],'storageStatePath':_0x2dc62e});if(_0x448743[_0x590b71(0x106)](process['getuid']?.(),0x0)){const _0x5346e1=[_0x448743[_0x590b71(0xc7)],_0x448743[_0x590b71(0xfa)]],_0x56f447=_0x37fcbc[_0x590b71(0x11c)]??[],_0x58d370=_0x5346e1['filter'](_0x524c18=>!_0x56f447[_0x590b71(0xd9)](_0x524c18));_0x37fcbc[_0x590b71(0x11c)]=[..._0x56f447,..._0x58d370];}return{'isolated':!![],'browserName':_0x448743['Kswzu'],'launchOptions':_0x37fcbc,'contextOptions':{..._0xb9eafb,'permissions':[_0x448743['tSAHE'],_0x448743['Chaxv']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x1d9146=_0x1d4861===_0x448743['VvacW']?{'browser':_0x33b0e3,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x2a71be,'outputMode':_0x59fe84(0xe1),'codegen':'none'}:{'name':_0x5b5a79,'browser':_0x33b0e3,'capabilities':[_0x59fe84(0xba),_0x59fe84(0x11e),_0x448743[_0x59fe84(0xb2)],_0x448743['NiCkQ'],_0x59fe84(0xb3)],'imageResponses':_0x448743[_0x59fe84(0x112)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x2a71be};if(!_0x5b8fba){const _0x3e0333=_0x1d9146[_0x59fe84(0xc8)],_0x4c8a0a=_0x3e0333['contextOptions'];if(_0x4c8a0a[_0x59fe84(0x10a)]===undefined)delete _0x4c8a0a['userAgent'];if(_0x448743['zrHyB'](_0x4c8a0a[_0x59fe84(0xea)],undefined))delete _0x4c8a0a['storageState'];}const _0x281a58=join(_0x448743[_0x59fe84(0xf9)](tmpdir),_0x59fe84(0xe2));!existsSync(_0x281a58)&&await mkdir(_0x281a58,{'recursive':!![]});const _0x47c0e7=_0x448743[_0x59fe84(0xf0)](_0x1d4861,_0x59fe84(0xd8))?_0x448743[_0x59fe84(0xfb)]:'',_0x44e216=_0x448743[_0x59fe84(0x105)](join,_0x281a58,_0x5b5a79+'-'+Date['now']()+_0x47c0e7+'.json');return await writeFile(_0x44e216,JSON[_0x59fe84(0xdd)](_0x1d9146,null,0x2)),{'configPath':_0x44e216};}function _0x36b6(){const _0xfd0c36=['SbpGK','OPYxA','playwright-cli','includes','316045kNHnVq','--disable-web-security','430SgbMix','stringify','safeMode','ByfiV','object','file','ranger-config','headers','90iiLXoB','gQhMQ','push','KEyBV','ranger-auth-','--unsafely-treat-insecure-origin-as-secure=http://localhost','storageState','auth.json','nFGxw','\x20is\x20not\x20set','split','43480dATWtS','YrXWX','cdpEndpoint','setupHeaders','lwvSW','MhsxP','Ghogs','--disable-setuid-sandbox','pPEvG','ueluH','SZOTI','VkvwX','RZMgK','pWETH','QtFzr','kqdhc','2002jGhrZG','1267wmVQuH','13052916EdAsrM','DwdsA','catch','fFeDI','ZZcER','zrHyB','kWJKk','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','settings.json','userAgent','lUgdz','VSUYn','keys','laZtg','string','path','aCkmD','EoOcC','auth.json.enc','ParrK','5703jLnezr','--no-sandbox','stagehand','QoOhX','configPath','hzXur','264SSddSL','args','BYotg','tabs','bwsOt','length','AJAUK','vision','osXsN','filter','ignoreHTTPSErrors','XGqhW','BTTiR','qjDkL','core','repeat','code','EcSRu','pYAgn','endsWith','Refusing\x20to\x20write\x20profile\x20\x22','env','otJQc','forWrite','chromium','legacy','entries','dtlZX','browser','QXLvX','1MOvijx','setupHeader','headless','clipboard-read','CTxTE','message','install','contextOptions','local','592114nouQoy','See\x20docs/feature/cloud-profiles-old-vs-new-structure.md\x20for\x20the\x20supported\x20flow.','8939367dfXLbZ'];_0x36b6=function(){return _0xfd0c36;};return _0x36b6();}export async function buildPlaywrightCliConfig(_0x124605,_0x3de694,_0x44fbce,_0x2b5af0,_0x363587){const _0x45b396=_0xb6587c,_0x5e51ec={'bwsOt':function(_0x1f9f7c,_0x281ebe,_0x4c55ce,_0x2cd4c4,_0x2e7366,_0x341c5f,_0x4958e1){return _0x1f9f7c(_0x281ebe,_0x4c55ce,_0x2cd4c4,_0x2e7366,_0x341c5f,_0x4958e1);},'rUVrh':function(_0x5270fe,_0x47bfd4){return _0x5270fe(_0x47bfd4);},'KEyBV':'playwright-cli'};if(_0x363587)return _0x5e51ec[_0x45b396(0x11f)](buildPlaywrightConfigCore,_0x124605,_0x363587,_0x3de694,_0x44fbce,_0x2b5af0,'playwright-cli');const {storageStatePath:_0xfa437d,tempAuthPath:_0xc78333}=await resolveLocalAuthPath(_0x5e51ec['rUVrh'](getEnvDir,_0x3de694));try{const _0xa24844=await buildPlaywrightConfigCore(_0x124605,_0xfa437d,_0x3de694,_0x44fbce,_0x2b5af0,_0x5e51ec[_0x45b396(0xe7)]);return{..._0xa24844,'tempAuthPath':_0xc78333};}catch(_0x1eb648){_0xc78333&&await unlink(_0xc78333)['catch'](()=>{});throw _0x1eb648;}}export function getNestedValue(_0x2ca0b6,_0x1b2533){const _0x200486=_0xb6587c,_0xc76d4f={'lDoFA':function(_0x4ccaa1,_0x26aeae){return _0x4ccaa1(_0x26aeae);},'pWETH':function(_0xead389,_0x265c7e){return _0xead389===_0x265c7e;},'faiWJ':function(_0x5a1181,_0x347e6f){return _0x5a1181!==_0x347e6f;}},_0x3cf176=_0xc76d4f['lDoFA'](parseKeyPath,_0x1b2533);let _0x1e65dd=_0x2ca0b6;for(const _0x2d0eb8 of _0x3cf176){if(_0xc76d4f[_0x200486(0xfc)](_0x1e65dd,null)||_0xc76d4f[_0x200486(0xfc)](_0x1e65dd,undefined)||_0xc76d4f['faiWJ'](typeof _0x1e65dd,'object'))return undefined;_0x1e65dd=_0x1e65dd[_0x2d0eb8];}return _0x1e65dd;}export function setNestedValue(_0xed6675,_0x1c2222,_0x409216){const _0x432630=_0xb6587c,_0x5eb5e4={'pPEvG':function(_0x14b239,_0x163e54){return _0x14b239(_0x163e54);},'BGATa':function(_0x51d5c8,_0x1d2e8d){return _0x51d5c8<_0x1d2e8d;},'DwdsA':function(_0x1d4476,_0x2a73df){return _0x1d4476-_0x2a73df;},'qwLuS':'object'},_0x2a42d3=_0x5eb5e4[_0x432630(0xf7)](parseKeyPath,_0x1c2222);let _0x28c0ec=_0xed6675;for(let _0x490ec9=0x0;_0x5eb5e4['BGATa'](_0x490ec9,_0x5eb5e4[_0x432630(0x102)](_0x2a42d3[_0x432630(0x120)],0x1));_0x490ec9++){const _0x567f01=_0x2a42d3[_0x490ec9];(!(_0x567f01 in _0x28c0ec)||typeof _0x28c0ec[_0x567f01]!==_0x5eb5e4['qwLuS'])&&(_0x28c0ec[_0x567f01]={}),_0x28c0ec=_0x28c0ec[_0x567f01];}_0x28c0ec[_0x2a42d3[_0x2a42d3[_0x432630(0x120)]-0x1]]=_0x409216;}export function deleteNestedValue(_0x645b99,_0x3fb47b){const _0x5e494b=_0xb6587c,_0x17dcdc={'sQjLg':function(_0x59dbfe,_0x5cc1b8){return _0x59dbfe<_0x5cc1b8;},'MRlqi':function(_0x57d0a2,_0x5982e4){return _0x57d0a2-_0x5982e4;},'mJfwu':'object','QXLvX':function(_0x2f3056,_0x415f66){return _0x2f3056===_0x415f66;},'dWNdl':function(_0x4027ba,_0x4de440){return _0x4027ba!==_0x4de440;}},_0x25d7e2=parseKeyPath(_0x3fb47b);let _0x516599=_0x645b99;for(let _0x2cbb23=0x0;_0x17dcdc['sQjLg'](_0x2cbb23,_0x17dcdc['MRlqi'](_0x25d7e2[_0x5e494b(0x120)],0x1));_0x2cbb23++){if(_0x516599===null||_0x516599===undefined||typeof _0x516599!==_0x17dcdc['mJfwu'])return![];_0x516599=_0x516599[_0x25d7e2[_0x2cbb23]];}if(_0x17dcdc[_0x5e494b(0xc9)](_0x516599,null)||_0x516599===undefined||_0x17dcdc['dWNdl'](typeof _0x516599,_0x17dcdc['mJfwu']))return![];const _0x4c8584=_0x25d7e2[_0x25d7e2[_0x5e494b(0x120)]-0x1];if(_0x4c8584 in _0x516599)return delete _0x516599[_0x4c8584],!![];return![];}function parseKeyPath(_0x431376){const _0x1fb1a6=_0xb6587c,_0x3ce3a1={'yFBpl':'header','BYotg':_0x1fb1a6(0xe3),'WMCmW':_0x1fb1a6(0xcb),'pWVMT':_0x1fb1a6(0xf2)},_0x2e864a=_0x431376[_0x1fb1a6(0xee)]('.');return _0x2e864a[0x0]===_0x3ce3a1['yFBpl']&&(_0x2e864a[0x0]=_0x3ce3a1[_0x1fb1a6(0x11d)]),_0x2e864a[0x0]===_0x3ce3a1['WMCmW']&&(_0x2e864a[0x0]=_0x3ce3a1['pWVMT']),_0x2e864a;}export function formatSettings(_0x4c3a06,_0x410651=0x0){const _0x5617dd=_0xb6587c,_0x13085e={'HMdlF':function(_0x17d8d0,_0x1d7660){return _0x17d8d0===_0x1d7660;},'Ghogs':function(_0x172710,_0x579a66){return _0x172710===_0x579a66;}},_0x1d4e22=[],_0x5c2583='\x20\x20'[_0x5617dd(0xbb)](_0x410651);for(const [_0x3f60f5,_0x1daffa]of Object[_0x5617dd(0xc6)](_0x4c3a06)){if(_0x13085e['HMdlF'](_0x1daffa,undefined))continue;if(_0x13085e[_0x5617dd(0xf5)](typeof _0x1daffa,_0x5617dd(0xe0))&&_0x1daffa!==null){_0x1d4e22['push'](''+_0x5c2583+_0x3f60f5+':');for(const [_0x4e33c5,_0x56ed50]of Object['entries'](_0x1daffa)){_0x1d4e22[_0x5617dd(0xe6)](_0x5c2583+'\x20\x20'+_0x4e33c5+':\x20'+_0x56ed50);}}else _0x1d4e22[_0x5617dd(0xe6)](''+_0x5c2583+_0x3f60f5+':\x20'+_0x1daffa);}return _0x1d4e22['join']('\x0a');}
1
+ const _0x107a0b=_0x5749;function _0x5749(_0x1b9f44,_0x499918){_0x1b9f44=_0x1b9f44-0x165;const _0x1eafca=_0x1eaf();let _0x5749ed=_0x1eafca[_0x1b9f44];return _0x5749ed;}(function(_0x423d20,_0x24ac82){const _0x3c7a3b=_0x5749,_0x32042c=_0x423d20();while(!![]){try{const _0x31868a=parseInt(_0x3c7a3b(0x180))/0x1*(parseInt(_0x3c7a3b(0x1dd))/0x2)+parseInt(_0x3c7a3b(0x1c4))/0x3*(-parseInt(_0x3c7a3b(0x191))/0x4)+-parseInt(_0x3c7a3b(0x197))/0x5*(parseInt(_0x3c7a3b(0x1bf))/0x6)+-parseInt(_0x3c7a3b(0x166))/0x7*(parseInt(_0x3c7a3b(0x1b0))/0x8)+parseInt(_0x3c7a3b(0x173))/0x9+-parseInt(_0x3c7a3b(0x16f))/0xa*(-parseInt(_0x3c7a3b(0x1b2))/0xb)+-parseInt(_0x3c7a3b(0x170))/0xc*(-parseInt(_0x3c7a3b(0x190))/0xd);if(_0x31868a===_0x24ac82)break;else _0x32042c['push'](_0x32042c['shift']());}catch(_0x457c09){_0x32042c['push'](_0x32042c['shift']());}}}(_0x1eaf,0x3faa7));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x409365,_0x55bd01){const _0x202ee0=_0x5749,_0x1eb0ea={'uhpIb':function(_0x5073e6,_0x518b3a,_0x25c6e1,_0x39d6e8){return _0x5073e6(_0x518b3a,_0x25c6e1,_0x39d6e8);},'QUTEj':function(_0x35df8b,_0x30b1ef,_0x2666a1){return _0x35df8b(_0x30b1ef,_0x2666a1);},'OZdsF':_0x202ee0(0x194),'wVpnk':function(_0x431580,_0x226b0e,_0x44cf9d){return _0x431580(_0x226b0e,_0x44cf9d);},'JOvop':function(_0x33ae0a,_0xec476d){return _0x33ae0a(_0xec476d);},'VxwEJ':function(_0x25a801,_0x54a634){return _0x25a801(_0x54a634);},'BNQBh':function(_0x441e0a,_0x623d9d){return _0x441e0a!==_0x623d9d;}},_0x1311d1=_0x1eb0ea['uhpIb'](join,_0x55bd01,'ci',_0x409365),_0x3e14b9=_0x1eb0ea['uhpIb'](join,_0x55bd01,'local',_0x409365),_0x1187c8=join(_0x55bd01,_0x409365),_0x384d0e=_0x1eb0ea[_0x202ee0(0x1c8)](join,_0x55bd01,_0x1eb0ea['OZdsF']),_0x541092=_0x1eb0ea['wVpnk'](join,_0x55bd01,'ci');if(_0x1eb0ea[_0x202ee0(0x1e0)](existsSync,_0x1311d1))return _0x1311d1;if(existsSync(_0x3e14b9))return _0x3e14b9;if(_0x1eb0ea['VxwEJ'](existsSync,_0x1187c8)&&(_0x1eb0ea['BNQBh'](_0x1187c8,_0x384d0e)&&_0x1187c8!==_0x541092?!![]:_0x1eb0ea['JOvop'](hasLegacyProfileFiles,_0x1187c8)))return _0x1187c8;return null;}export function getEnvDir(_0x2bcd10,_0x24fcc3={}){const _0x3235e5=_0x5749,_0x2c9616={'uzIrv':function(_0x5f036d){return _0x5f036d();},'nHKBq':function(_0x39e78b,_0x3bc23b,_0x120366){return _0x39e78b(_0x3bc23b,_0x120366);},'ePaMe':function(_0x413c8b,_0x2ed8b6){return _0x413c8b!==_0x2ed8b6;},'KpGhs':function(_0x2ddfbe,_0x3a9b74,_0x3ec9e9,_0x1515ee){return _0x2ddfbe(_0x3a9b74,_0x3ec9e9,_0x1515ee);},'kLmEV':_0x3235e5(0x194)},_0x218f3b=_0x2c9616[_0x3235e5(0x1a2)](getRangerDir),_0x3c45de=findEnvInRoot(_0x2bcd10,_0x218f3b);if(_0x3c45de){if(_0x24fcc3['forWrite']&&isLegacyEnvPath(_0x3c45de))throw _0x2c9616[_0x3235e5(0x1c7)](legacyWriteError,_0x2bcd10,_0x3c45de);return _0x3c45de;}const _0x1cdf10=getRangerHomeDir();if(_0x2c9616[_0x3235e5(0x1a5)](_0x1cdf10,_0x218f3b)){const _0x5a126c=findEnvInRoot(_0x2bcd10,_0x1cdf10);if(_0x5a126c){if(_0x24fcc3['forWrite']&&isLegacyEnvPath(_0x5a126c))throw _0x2c9616['nHKBq'](legacyWriteError,_0x2bcd10,_0x5a126c);return _0x5a126c;}}const _0x36b62f=_0x2c9616['KpGhs'](join,_0x1cdf10,_0x2c9616[_0x3235e5(0x1cb)],_0x2bcd10);if(_0x24fcc3['forWrite'])throw _0x2c9616[_0x3235e5(0x1c7)](legacyWriteError,_0x2bcd10,_0x36b62f);return _0x36b62f;}function isLegacyEnvPath(_0x3d8f8c){const _0x26f569=_0x5749,_0x186bf6={'OLpbx':function(_0x242676){return _0x242676();},'BbOqj':function(_0x45fc09,_0x48cadd){return _0x45fc09===_0x48cadd;}},_0x2288e8=getRangerDir(),_0x4d3e7c=_0x186bf6[_0x26f569(0x1e1)](getRangerHomeDir);for(const _0x4917e5 of new Set([_0x2288e8,_0x4d3e7c])){const _0x3b9a09=_0x4917e5['endsWith']('/')?_0x4917e5:_0x4917e5+'/';if(_0x186bf6[_0x26f569(0x1c1)](_0x3d8f8c,_0x4917e5)||_0x3d8f8c[_0x26f569(0x174)](_0x3b9a09))return!![];}return![];}function legacyWriteError(_0x20ecb2,_0x17f917){const _0x2f6f1f=_0x5749,_0x561407={'QBZYz':function(_0x405bb8,_0x15a311){return _0x405bb8+_0x15a311;}};return new Error(_0x561407['QBZYz'](_0x561407[_0x2f6f1f(0x1d6)](_0x2f6f1f(0x192)+_0x20ecb2+'\x22\x20to\x20legacy\x20path\x20'+_0x17f917+'.\x0a',_0x2f6f1f(0x188))+'\x20\x20ranger\x20profile\x20add\x20<name>\x0a',_0x2f6f1f(0x19e)));}export function findExistingEnv(_0x2dbcbc,_0x31de83){const _0x5d638d=_0x5749,_0x374d88={'ZLORN':'legacy','iZfgO':function(_0x125b08,_0x4483f4,_0x29aa0d){return _0x125b08(_0x4483f4,_0x29aa0d);},'vpaAj':function(_0x553e95,_0x29ebde,_0x6f5c7c,_0x83e23b){return _0x553e95(_0x29ebde,_0x6f5c7c,_0x83e23b);},'xIjfi':function(_0x4930e1,_0x5459c6,_0x1468c1,_0x5095da){return _0x4930e1(_0x5459c6,_0x1468c1,_0x5095da);},'uACMg':'local','bgZHx':function(_0x119f22,_0x2a5b87){return _0x119f22===_0x2a5b87;},'asNiX':function(_0xd3155c,_0x72462b){return _0xd3155c(_0x72462b);}},_0x6f8a4e=_0x31de83?.['rangerDir'],_0x61111f=_0x6f8a4e?[_0x6f8a4e]:[getRangerDir(),getRangerHomeDir()][_0x5d638d(0x17e)]((_0x26431b,_0x53f472,_0x4164cb)=>_0x4164cb['indexOf'](_0x26431b)===_0x53f472),_0x580567=_0x31de83?.[_0x5d638d(0x1b9)]??['ci','local',_0x374d88['ZLORN']];for(const _0x23cf85 of _0x61111f){const _0x48c9bb=join(_0x23cf85,'local'),_0x49e458=_0x374d88['iZfgO'](join,_0x23cf85,'ci'),_0x57a990=[{'location':'ci','path':_0x374d88['vpaAj'](join,_0x23cf85,'ci',_0x2dbcbc)},{'location':_0x5d638d(0x194),'path':_0x374d88[_0x5d638d(0x1ad)](join,_0x23cf85,_0x374d88['uACMg'],_0x2dbcbc)},{'location':'legacy','path':_0x374d88['iZfgO'](join,_0x23cf85,_0x2dbcbc)}];for(const _0x38a0ab of _0x57a990){if(_0x580567['includes'](_0x38a0ab['location'])&&existsSync(_0x38a0ab[_0x5d638d(0x16a)])){if(_0x38a0ab[_0x5d638d(0x1aa)]==='legacy'&&(_0x374d88['bgZHx'](_0x38a0ab['path'],_0x48c9bb)||_0x374d88[_0x5d638d(0x1b6)](_0x38a0ab['path'],_0x49e458))&&!_0x374d88[_0x5d638d(0x1cc)](hasLegacyProfileFiles,_0x38a0ab[_0x5d638d(0x16a)]))continue;return{'path':_0x38a0ab['path'],'location':_0x38a0ab[_0x5d638d(0x1aa)]};}}}return null;}function hasLegacyProfileFiles(_0x57d559){const _0x5be117=_0x5749,_0x767753={'bFCwI':function(_0x546471,_0x1224e5){return _0x546471(_0x1224e5);},'kleit':function(_0x389871,_0x12c5fb,_0x22ee9f){return _0x389871(_0x12c5fb,_0x22ee9f);},'qBTFw':function(_0x1fae91,_0x3ed23d,_0x40f45d){return _0x1fae91(_0x3ed23d,_0x40f45d);},'pByRl':_0x5be117(0x171)};return _0x767753['bFCwI'](existsSync,_0x767753['kleit'](join,_0x57d559,'settings.json'))||_0x767753[_0x5be117(0x1b3)](existsSync,_0x767753['qBTFw'](join,_0x57d559,_0x767753['pByRl']))||existsSync(join(_0x57d559,'auth.json.enc'));}export function isEnvCi(_0x91901b){const _0xeb21ea=_0x5749,_0x5a656c={'AUnkD':function(_0x42a244,_0x50a352,_0x17de4e,_0x29212d){return _0x42a244(_0x50a352,_0x17de4e,_0x29212d);},'nzqJH':function(_0x3aff70){return _0x3aff70();},'anmir':function(_0x49aae0,_0x5b5905){return _0x49aae0!==_0x5b5905;},'QHYCH':function(_0x1dfb21,_0x6f64d5){return _0x1dfb21(_0x6f64d5);},'fvAsN':function(_0x5bc3d3,_0x51abda,_0x362359,_0x5ecec6){return _0x5bc3d3(_0x51abda,_0x362359,_0x5ecec6);}};if(existsSync(_0x5a656c['AUnkD'](join,_0x5a656c[_0xeb21ea(0x19b)](getRangerDir),'ci',_0x91901b)))return!![];const _0x126348=getRangerHomeDir();if(_0x5a656c[_0xeb21ea(0x1d5)](_0x126348,getRangerDir())&&_0x5a656c['QHYCH'](existsSync,_0x5a656c[_0xeb21ea(0x1db)](join,_0x126348,'ci',_0x91901b)))return!![];return![];}export async function cleanupTempFiles(_0x12ad78){const _0x1f775e=_0x5749,_0x10a188={'ofMfI':function(_0x30d9d2,_0x352431){return _0x30d9d2!==_0x352431;}},_0x45cdf6=[_0x12ad78[_0x1f775e(0x1d1)],_0x12ad78['configPath']]['filter'](Boolean);await Promise['all'](_0x45cdf6[_0x1f775e(0x17c)](_0x536eaf=>unlink(_0x536eaf)['catch'](_0x4420f1=>{const _0x20cf2c=_0x1f775e;_0x10a188['ofMfI'](_0x4420f1[_0x20cf2c(0x172)],'ENOENT')&&console['warn'](_0x20cf2c(0x1c6)+_0x536eaf+':',_0x4420f1[_0x20cf2c(0x17b)]);})));}export function getSettingsPath(_0x37d9fe){const _0x19fd78=_0x5749,_0x5c3afa={'rTTeC':function(_0x21b209,_0x1e708d){return _0x21b209(_0x1e708d);}};return join(_0x5c3afa[_0x19fd78(0x176)](getEnvDir,_0x37d9fe),'settings.json');}export async function loadSettings(_0x7193d7){const _0x5ad587=_0x5749,_0x2516de={'vUArF':function(_0x1312c6,_0x19cc6c){return _0x1312c6(_0x19cc6c);},'keZpn':_0x5ad587(0x1d8)},_0x499397=_0x2516de['vUArF'](getSettingsPath,_0x7193d7);if(!existsSync(_0x499397))return{};try{const _0x390c1e=await readFile(_0x499397,_0x2516de['keZpn']);return JSON[_0x5ad587(0x1d9)](_0x390c1e);}catch{return{};}}export async function saveSettings(_0x384177,_0x352ca8){const _0x492e77=_0x5749,_0x2e1345={'spauC':function(_0x48e662,_0x1c784a){return _0x48e662(_0x1c784a);},'mOzkJ':function(_0x20687c,_0xd19751){return _0x20687c(_0xd19751);},'BraHZ':function(_0x552333,_0x98c183,_0x53d420){return _0x552333(_0x98c183,_0x53d420);}},_0x589851=_0x2e1345['spauC'](getSettingsPath,_0x384177),_0x5ad1e5=dirname(_0x589851);!_0x2e1345[_0x492e77(0x16e)](existsSync,_0x5ad1e5)&&await mkdir(_0x5ad1e5,{'recursive':!![]}),await _0x2e1345[_0x492e77(0x1a9)](writeFile,_0x589851,JSON[_0x492e77(0x196)](_0x352ca8,null,0x2));}export function resolveEnvVars(_0x4fd3b8){const _0x4cb626=_0x5749,_0x34e31b={'AyIoQ':_0x4cb626(0x1cf)};if(typeof _0x4fd3b8===_0x4cb626(0x19f))return _0x4fd3b8[_0x4cb626(0x181)](/\$\{(\w+)\}/g,(_0x2392e7,_0x14dcc2)=>{const _0x2422e6=_0x4cb626,_0x2293a=process['env'][_0x14dcc2];if(_0x2293a===undefined)throw new Error(_0x2422e6(0x1a7)+_0x14dcc2+'\x20is\x20not\x20set');return _0x2293a;});if(Array['isArray'](_0x4fd3b8))return _0x4fd3b8[_0x4cb626(0x17c)](resolveEnvVars);if(_0x4fd3b8&&typeof _0x4fd3b8===_0x34e31b[_0x4cb626(0x1da)])return Object[_0x4cb626(0x182)](Object['entries'](_0x4fd3b8)['map'](([_0x194b46,_0x4c39cd])=>[_0x194b46,resolveEnvVars(_0x4c39cd)]));return _0x4fd3b8;}const isRecord=_0x1c3b08=>typeof _0x1c3b08==='object'&&_0x1c3b08!==null&&!Array['isArray'](_0x1c3b08),asRecord=_0x4f71c6=>isRecord(_0x4f71c6)?_0x4f71c6:undefined,mergeHeaders=(_0x31800f,_0x42e8ef)=>{const _0x466d08=_0x5749,_0x5b735e={'yCHwp':function(_0x5e852b,_0x4e41ec){return _0x5e852b??_0x4e41ec;}},_0x36b35d={..._0x31800f??{},..._0x5b735e[_0x466d08(0x19d)](_0x42e8ef,{})};return Object['keys'](_0x36b35d)['length']?_0x36b35d:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=['--disable-web-security',_0x107a0b(0x195),_0x107a0b(0x1ae),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x2d365f,_0x1a8e68={}){const _0x2570f4=_0x107a0b,_0x58cd4a={'RBVDv':function(_0x51deb2,_0x5d5eb6){return _0x51deb2(_0x5d5eb6);},'cxiqe':function(_0x49c616,_0x4b094d){return _0x49c616(_0x4b094d);},'oTJUd':function(_0xebe81d,_0x11631f){return _0xebe81d===_0x11631f;},'YLIag':'string','AMdOw':function(_0x4efbc6,_0x553bb8){return _0x4efbc6(_0x553bb8);}},_0x501c94=_0x58cd4a[_0x2570f4(0x18f)](asRecord,_0x2d365f['browser']),_0x343167={..._0x58cd4a['cxiqe'](asRecord,_0x501c94?.['launchOptions'])??{}};typeof _0x1a8e68[_0x2570f4(0x1ce)]===_0x2570f4(0x1ac)&&(_0x343167['headless']=_0x1a8e68['headless']);if(_0x2d365f[_0x2570f4(0x1cd)]){const _0x3e289d=_0x343167[_0x2570f4(0x1af)]??[],_0x12d33d=SAFE_MODE_ARGS[_0x2570f4(0x17e)](_0x2fdd1b=>!_0x3e289d[_0x2570f4(0x1d7)](_0x2fdd1b));_0x343167['args']=[..._0x3e289d,..._0x12d33d];}if(_0x2d365f[_0x2570f4(0x1bb)]){const _0x5b0e4d=_0x343167[_0x2570f4(0x1af)]??[],_0x19d1e1=ALLOW_LOCALHOST_ARGS['filter'](_0x2e8f99=>!_0x5b0e4d[_0x2570f4(0x1d7)](_0x2e8f99));_0x343167['args']=[..._0x5b0e4d,..._0x19d1e1];}const _0x13e6b4={...asRecord(_0x501c94?.['contextOptions'])??{}};_0x13e6b4[_0x2570f4(0x1b8)]=!![];_0x58cd4a['oTJUd'](typeof _0x2d365f[_0x2570f4(0x1a1)],_0x58cd4a['YLIag'])&&(_0x13e6b4['userAgent']=_0x2d365f['userAgent']);const _0x2ba1cd=mergeHeaders(asRecord(_0x13e6b4['extraHTTPHeaders']),_0x58cd4a['AMdOw'](asRecord,_0x2d365f[_0x2570f4(0x177)]));return _0x2ba1cd?_0x13e6b4['extraHTTPHeaders']=_0x2ba1cd:delete _0x13e6b4[_0x2570f4(0x169)],_0x1a8e68['storageStatePath']&&(_0x13e6b4[_0x2570f4(0x1de)]=_0x1a8e68['storageStatePath']),{'launchOptions':_0x343167,'contextOptions':_0x13e6b4};}async function resolveLocalAuthPath(_0x37d2ac){const _0x2e4c3a=_0x107a0b,_0x2d2ef3={'eHypd':_0x2e4c3a(0x16c),'WaqkV':_0x2e4c3a(0x171),'OxvZH':function(_0x5eaeab){return _0x5eaeab();},'IPqlL':function(_0x26e35f,_0x5073fe){return _0x26e35f(_0x5073fe);},'GJatA':function(_0x274d50,_0x36cd76,_0x16f463){return _0x274d50(_0x36cd76,_0x16f463);},'MlGmz':function(_0x393d0c,_0x56939f,_0x108867){return _0x393d0c(_0x56939f,_0x108867);},'fvHMt':function(_0x30a807,_0x255ecc){return _0x30a807 instanceof _0x255ecc;}},_0x428ea5=join(_0x37d2ac,_0x2d2ef3[_0x2e4c3a(0x198)]),_0x1cd4b0=join(_0x37d2ac,_0x2d2ef3['WaqkV']);if(existsSync(_0x428ea5))try{const _0x2f65ea=await _0x2d2ef3['OxvZH'](getToken);if(!_0x2f65ea)throw new Error(_0x2e4c3a(0x1ab));const _0x2d39fe=await _0x2d2ef3[_0x2e4c3a(0x1c5)](readFile,_0x428ea5),_0x2e2419=_0x2d2ef3['GJatA'](decrypt,_0x2d39fe,_0x2f65ea),_0x432a3e=_0x2d2ef3[_0x2e4c3a(0x17a)](join,tmpdir(),'ranger-auth-'+Date[_0x2e4c3a(0x18d)]()+_0x2e4c3a(0x178));return await _0x2d2ef3[_0x2e4c3a(0x179)](writeFile,_0x432a3e,_0x2e2419),{'storageStatePath':_0x432a3e,'tempAuthPath':_0x432a3e};}catch(_0x472e9d){const _0x4d8f8d=_0x2d2ef3['fvHMt'](_0x472e9d,Error)?_0x472e9d['message']:_0x2d2ef3[_0x2e4c3a(0x1c5)](String,_0x472e9d);throw new Error(_0x2e4c3a(0x19a)+_0x4d8f8d);}if(existsSync(_0x1cd4b0))return{'storageStatePath':_0x1cd4b0};return{};}export async function buildPlaywrightConfig(_0x4ae9ff,_0x3bb939,_0x4fc544,_0x49477a,_0x52362e){const _0x42fc7b=_0x107a0b,_0xc560ee={'tIBBJ':function(_0x43ea5a,_0x5b70f8,_0x5b712c,_0x2bad57,_0xeb3d02,_0x47ed36,_0x4a6787){return _0x43ea5a(_0x5b70f8,_0x5b712c,_0x2bad57,_0xeb3d02,_0x47ed36,_0x4a6787);},'JbBOK':_0x42fc7b(0x18e),'AcYIK':function(_0x367382,_0x13675b){return _0x367382(_0x13675b);}};if(_0x52362e)return _0xc560ee[_0x42fc7b(0x1be)](buildPlaywrightConfigCore,_0x4ae9ff,_0x52362e,_0x3bb939,_0x4fc544,_0x49477a,_0xc560ee[_0x42fc7b(0x1dc)]);const {storageStatePath:_0x60842c,tempAuthPath:_0x24740f}=await resolveLocalAuthPath(getEnvDir(_0x3bb939));try{const _0x584eb2=await buildPlaywrightConfigCore(_0x4ae9ff,_0x60842c,_0x3bb939,_0x4fc544,_0x49477a,_0x42fc7b(0x18e));return{..._0x584eb2,'tempAuthPath':_0x24740f};}catch(_0x52b623){_0x24740f&&await _0xc560ee[_0x42fc7b(0x1bc)](unlink,_0x24740f)['catch'](()=>{});throw _0x52b623;}}export async function buildPlaywrightConfigCore(_0x529d4c,_0x3a0bd5,_0x217ce3,_0x4bde76,_0x31130a,_0x31336b='stagehand'){const _0x7d15a5=_0x107a0b,_0x4c85e7={'zygYF':function(_0x46b3e9,_0x1ae4d4){return _0x46b3e9===_0x1ae4d4;},'DCsTP':_0x7d15a5(0x184),'GVASx':'chromium','IvsSC':'clipboard-read','QKxQX':function(_0x5e7b5d){return _0x5e7b5d();},'nHsKw':function(_0x312ff2,_0x32d491,_0x3ee9f0,_0xab549c){return _0x312ff2(_0x32d491,_0x3ee9f0,_0xab549c);},'RQlyh':_0x7d15a5(0x17f),'LzcbB':_0x7d15a5(0x17d),'chBfA':_0x7d15a5(0x1c3),'SFVTH':_0x7d15a5(0x1a3),'PKAtk':'allow','rqVOk':function(_0x32104e,_0x1e38b2){return _0x32104e===_0x1e38b2;},'Crjre':function(_0x466f39,_0x54116e,_0x575bfb){return _0x466f39(_0x54116e,_0x575bfb);},'jBete':function(_0x54cc85,_0xafc838){return _0x54cc85===_0xafc838;},'MdEsQ':function(_0x596782,_0x2a8077,_0x517380){return _0x596782(_0x2a8077,_0x517380);}},_0x5ec3ca=_0x4bde76||_0x4c85e7[_0x7d15a5(0x16d)](randomUUID),_0x1a9c6e=_0x4c85e7[_0x7d15a5(0x1b7)](join,_0x4c85e7['QKxQX'](getRangerDir),_0x4c85e7[_0x7d15a5(0x1d0)],_0x5ec3ca),_0x3cb7f0=Boolean(_0x529d4c[_0x7d15a5(0x18a)]),_0x3cdb06=_0x3cb7f0?{'browserName':_0x7d15a5(0x183),'cdpEndpoint':_0x529d4c[_0x7d15a5(0x18a)]}:((()=>{const _0x1d0940=_0x7d15a5,{launchOptions:_0x21aa25,contextOptions:_0x566e51}=buildBrowserOptionsFromSettings(_0x529d4c,{'headless':_0x31130a?![]:_0x529d4c[_0x1d0940(0x1ce)]??!![],'storageStatePath':_0x3a0bd5});if(_0x4c85e7['zygYF'](process['getuid']?.(),0x0)){const _0x53f791=['--no-sandbox',_0x4c85e7[_0x1d0940(0x185)]],_0x28d318=_0x21aa25[_0x1d0940(0x1af)]??[],_0x385d85=_0x53f791['filter'](_0x1bf66f=>!_0x28d318[_0x1d0940(0x1d7)](_0x1bf66f));_0x21aa25['args']=[..._0x28d318,..._0x385d85];}return{'isolated':!![],'browserName':_0x4c85e7[_0x1d0940(0x175)],'launchOptions':_0x21aa25,'contextOptions':{..._0x566e51,'permissions':[_0x4c85e7[_0x1d0940(0x1a8)],_0x1d0940(0x193)],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x2d6199=_0x4c85e7[_0x7d15a5(0x1b1)](_0x31336b,'playwright-cli')?{'browser':_0x3cdb06,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x1a9c6e,'outputMode':_0x7d15a5(0x1d4),'codegen':'none'}:{'name':_0x217ce3,'browser':_0x3cdb06,'capabilities':[_0x4c85e7[_0x7d15a5(0x1ba)],_0x4c85e7['chBfA'],_0x7d15a5(0x1b5),_0x4c85e7['SFVTH'],_0x7d15a5(0x167)],'imageResponses':_0x4c85e7[_0x7d15a5(0x187)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x1a9c6e};if(!_0x3cb7f0){const _0x20d233=_0x2d6199[_0x7d15a5(0x18c)],_0x5c7760=_0x20d233[_0x7d15a5(0x1c0)];if(_0x4c85e7['rqVOk'](_0x5c7760['userAgent'],undefined))delete _0x5c7760['userAgent'];if(_0x4c85e7['zygYF'](_0x5c7760[_0x7d15a5(0x1de)],undefined))delete _0x5c7760[_0x7d15a5(0x1de)];}const _0x168d3d=_0x4c85e7['Crjre'](join,_0x4c85e7[_0x7d15a5(0x16d)](tmpdir),_0x7d15a5(0x19c));!existsSync(_0x168d3d)&&await _0x4c85e7['Crjre'](mkdir,_0x168d3d,{'recursive':!![]});const _0xdc717=_0x4c85e7['jBete'](_0x31336b,'playwright-cli')?'-cli':'',_0x1236ec=_0x4c85e7['MdEsQ'](join,_0x168d3d,_0x217ce3+'-'+Date['now']()+_0xdc717+'.json');return await _0x4c85e7[_0x7d15a5(0x1d3)](writeFile,_0x1236ec,JSON[_0x7d15a5(0x196)](_0x2d6199,null,0x2)),{'configPath':_0x1236ec};}function _0x1eaf(){const _0x320ebd=['safeMode','headless','object','RQlyh','tempAuthPath','SNlXd','Crjre','file','anmir','QBZYz','includes','utf-8','parse','AyIoQ','fvAsN','JbBOK','7322YJDjyt','storageState','setupHeader','JOvop','OLpbx','push','361781kVaxfY','vision','BSxqE','extraHTTPHeaders','path','rAvfn','auth.json.enc','QKxQX','mOzkJ','40ZbOHBF','214728vIkVtS','auth.json','code','2679804OKriYW','startsWith','GVASx','rTTeC','headers','.json','GJatA','MlGmz','message','map','core','filter','sessions','18AfAtIk','replace','fromEntries','chromium','--disable-setuid-sandbox','DCsTP','CXMVz','PKAtk','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','aZpMZ','cdpEndpoint','ZUbdM','browser','now','stagehand','RBVDv','338uzOxSh','150764ZByvMd','Refusing\x20to\x20write\x20profile\x20\x22','clipboard-write','local','--allow-running-insecure-content','stringify','85xcmtbE','eHypd','KBzQa','Failed\x20to\x20decrypt\x20auth\x20state:\x20','nzqJH','ranger-config','yCHwp','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','string','join','userAgent','uzIrv','pdf','vuCkS','ePaMe','repeat','Environment\x20variable\x20','IvsSC','BraHZ','location','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','boolean','xIjfi','--unsafely-treat-insecure-origin-as-secure=http://localhost','args','72lYVClp','zygYF','1243121RwFUIe','bFCwI','header','install','bgZHx','nHsKw','ignoreHTTPSErrors','locations','LzcbB','allowInsecureLocalhost','AcYIK','KnSNb','tIBBJ','169284iFtROu','contextOptions','BbOqj','ZcJqL','tabs','6tsSvjq','IPqlL','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','nHKBq','QUTEj','mCzgN','setupHeaders','kLmEV','asNiX'];_0x1eaf=function(){return _0x320ebd;};return _0x1eaf();}export async function buildPlaywrightCliConfig(_0x38b77e,_0x180b39,_0x134402,_0x17daab,_0x7e121a){const _0x269258=_0x107a0b,_0x48feac={'zTeCP':function(_0x4de883,_0x3c1613,_0x2269a1,_0x5927ae,_0x25ecdf,_0x2a4b1a,_0x5bd462){return _0x4de883(_0x3c1613,_0x2269a1,_0x5927ae,_0x25ecdf,_0x2a4b1a,_0x5bd462);},'SNlXd':'playwright-cli','dbeNT':function(_0x17fc77,_0x388e42){return _0x17fc77(_0x388e42);},'IiInA':function(_0x115c50,_0x35892e,_0x36c36b,_0x53dafc,_0x151fb0,_0x317f4d,_0x514766){return _0x115c50(_0x35892e,_0x36c36b,_0x53dafc,_0x151fb0,_0x317f4d,_0x514766);}};if(_0x7e121a)return _0x48feac['zTeCP'](buildPlaywrightConfigCore,_0x38b77e,_0x7e121a,_0x180b39,_0x134402,_0x17daab,_0x48feac[_0x269258(0x1d2)]);const {storageStatePath:_0xcafda4,tempAuthPath:_0x4649c0}=await _0x48feac['dbeNT'](resolveLocalAuthPath,getEnvDir(_0x180b39));try{const _0x4829f7=await _0x48feac['IiInA'](buildPlaywrightConfigCore,_0x38b77e,_0xcafda4,_0x180b39,_0x134402,_0x17daab,_0x48feac[_0x269258(0x1d2)]);return{..._0x4829f7,'tempAuthPath':_0x4649c0};}catch(_0x5e0104){_0x4649c0&&await _0x48feac['dbeNT'](unlink,_0x4649c0)['catch'](()=>{});throw _0x5e0104;}}export function getNestedValue(_0x1122bd,_0x299f42){const _0xac06d2=_0x107a0b,_0xb18e51={'LnFvS':function(_0x4677b6,_0x151f81){return _0x4677b6(_0x151f81);},'aZpMZ':function(_0x259992,_0x1d22b2){return _0x259992===_0x1d22b2;},'lXaHm':function(_0x511bee,_0x2b6e43){return _0x511bee===_0x2b6e43;},'BSxqE':function(_0xc5a7c5,_0x4c0cb9){return _0xc5a7c5!==_0x4c0cb9;},'KnSNb':_0xac06d2(0x1cf)},_0x278482=_0xb18e51['LnFvS'](parseKeyPath,_0x299f42);let _0x17699a=_0x1122bd;for(const _0xae26e5 of _0x278482){if(_0xb18e51[_0xac06d2(0x189)](_0x17699a,null)||_0xb18e51['lXaHm'](_0x17699a,undefined)||_0xb18e51[_0xac06d2(0x168)](typeof _0x17699a,_0xb18e51[_0xac06d2(0x1bd)]))return undefined;_0x17699a=_0x17699a[_0xae26e5];}return _0x17699a;}export function setNestedValue(_0x8faeea,_0x3ac0da,_0x3bd97a){const _0x41f6e3=_0x107a0b,_0x52cf02={'uUfcZ':function(_0x4a2ba7,_0x3754af){return _0x4a2ba7(_0x3754af);},'FhDlL':function(_0x4c69ff,_0x17d392){return _0x4c69ff-_0x17d392;},'KBzQa':function(_0x20cf6b,_0x48a38a){return _0x20cf6b in _0x48a38a;},'EBGOR':function(_0x3822c2,_0x20e0fb){return _0x3822c2!==_0x20e0fb;},'qRozI':_0x41f6e3(0x1cf)},_0x170a9e=_0x52cf02['uUfcZ'](parseKeyPath,_0x3ac0da);let _0x34fd86=_0x8faeea;for(let _0x35641c=0x0;_0x35641c<_0x52cf02['FhDlL'](_0x170a9e['length'],0x1);_0x35641c++){const _0x2cbbda=_0x170a9e[_0x35641c];(!_0x52cf02[_0x41f6e3(0x199)](_0x2cbbda,_0x34fd86)||_0x52cf02['EBGOR'](typeof _0x34fd86[_0x2cbbda],_0x52cf02['qRozI']))&&(_0x34fd86[_0x2cbbda]={}),_0x34fd86=_0x34fd86[_0x2cbbda];}_0x34fd86[_0x170a9e[_0x52cf02['FhDlL'](_0x170a9e['length'],0x1)]]=_0x3bd97a;}export function deleteNestedValue(_0x18a544,_0x2d7106){const _0x43f351=_0x107a0b,_0x2e15b3={'rAvfn':function(_0x39a182,_0x3aeeea){return _0x39a182(_0x3aeeea);},'bmwuN':function(_0x787949,_0x45f3d7){return _0x787949!==_0x45f3d7;},'mCzgN':function(_0x2e648b,_0x4b3462){return _0x2e648b===_0x4b3462;},'ZcJqL':function(_0x569a09,_0x2091a5){return _0x569a09!==_0x2091a5;},'jkCdE':'object','ZUbdM':function(_0x31be1d,_0x36db81){return _0x31be1d in _0x36db81;}},_0x39c668=_0x2e15b3[_0x43f351(0x16b)](parseKeyPath,_0x2d7106);let _0x5069bd=_0x18a544;for(let _0xfad087=0x0;_0xfad087<_0x39c668['length']-0x1;_0xfad087++){if(_0x5069bd===null||_0x5069bd===undefined||_0x2e15b3['bmwuN'](typeof _0x5069bd,'object'))return![];_0x5069bd=_0x5069bd[_0x39c668[_0xfad087]];}if(_0x2e15b3[_0x43f351(0x1c9)](_0x5069bd,null)||_0x2e15b3[_0x43f351(0x1c9)](_0x5069bd,undefined)||_0x2e15b3[_0x43f351(0x1c2)](typeof _0x5069bd,_0x2e15b3['jkCdE']))return![];const _0x4ec782=_0x39c668[_0x39c668['length']-0x1];if(_0x2e15b3[_0x43f351(0x18b)](_0x4ec782,_0x5069bd))return delete _0x5069bd[_0x4ec782],!![];return![];}function parseKeyPath(_0x175e81){const _0x5480a4=_0x107a0b,_0x318dda={'rxarf':_0x5480a4(0x1b4),'SVcJM':'headers','ADVuF':_0x5480a4(0x1ca)},_0x45e53f=_0x175e81['split']('.');return _0x45e53f[0x0]===_0x318dda['rxarf']&&(_0x45e53f[0x0]=_0x318dda['SVcJM']),_0x45e53f[0x0]===_0x5480a4(0x1df)&&(_0x45e53f[0x0]=_0x318dda['ADVuF']),_0x45e53f;}export function formatSettings(_0x5d9cf5,_0x36eff9=0x0){const _0x309648=_0x107a0b,_0x5e1f61={'CXMVz':function(_0x43ab01,_0x44318a){return _0x43ab01===_0x44318a;},'vuCkS':'object'},_0x2166f6=[],_0x2da6e6='\x20\x20'[_0x309648(0x1a6)](_0x36eff9);for(const [_0x48f426,_0x5688c4]of Object['entries'](_0x5d9cf5)){if(_0x5688c4===undefined)continue;if(_0x5e1f61[_0x309648(0x186)](typeof _0x5688c4,_0x5e1f61[_0x309648(0x1a4)])&&_0x5688c4!==null){_0x2166f6['push'](''+_0x2da6e6+_0x48f426+':');for(const [_0x101834,_0x33d5d5]of Object['entries'](_0x5688c4)){_0x2166f6['push'](_0x2da6e6+'\x20\x20'+_0x101834+':\x20'+_0x33d5d5);}}else _0x2166f6[_0x309648(0x165)](''+_0x2da6e6+_0x48f426+':\x20'+_0x5688c4);}return _0x2166f6[_0x309648(0x1a0)]('\x0a');}