@ranger-testing/ranger-cli 2.5.4-alpha.57338f5-12 → 2.5.4-alpha.5f9facb-17

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 +3 -2
@@ -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
+ (function(_0x590c46,_0x275b32){const _0x24347d=_0xfe43,_0x533c21=_0x590c46();while(!![]){try{const _0x26e7ef=-parseInt(_0x24347d(0x1e0))/0x1+-parseInt(_0x24347d(0x20e))/0x2+parseInt(_0x24347d(0x1f7))/0x3+-parseInt(_0x24347d(0x201))/0x4*(-parseInt(_0x24347d(0x1f8))/0x5)+-parseInt(_0x24347d(0x205))/0x6*(parseInt(_0x24347d(0x1f9))/0x7)+parseInt(_0x24347d(0x204))/0x8*(parseInt(_0x24347d(0x1f6))/0x9)+-parseInt(_0x24347d(0x208))/0xa*(-parseInt(_0x24347d(0x206))/0xb);if(_0x26e7ef===_0x275b32)break;else _0x533c21['push'](_0x533c21['shift']());}catch(_0x28a6b9){_0x533c21['push'](_0x533c21['shift']());}}}(_0x2694,0xb515f));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function toPlaywrightCliSessionKey(_0x23bde6){const _0x263fab=_0xfe43,_0x14a202={'vFVoz':function(_0x55102a,_0x4d2b4c){return _0x55102a(_0x4d2b4c);},'FBVol':_0x263fab(0x1e1)},_0xed1831=_0x14a202['vFVoz'](createHash,_0x263fab(0x1ec))['update'](_0x23bde6)[_0x263fab(0x1ff)](_0x14a202[_0x263fab(0x202)])[_0x263fab(0x1fb)](0x0,0xc);return _0x263fab(0x207)+_0xed1831;}function shellQuote(_0x24f03b){const _0x11d4ff=_0xfe43;return'\x27'+_0x24f03b[_0x11d4ff(0x1e4)](/'/g,_0x11d4ff(0x1e2))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x4a70f4){const _0x33c417={'TcCad':function(_0x8fe546,_0x398094){return _0x8fe546(_0x398094);}};return SAFE_SHELL_TOKEN['test'](_0x4a70f4)?_0x4a70f4:_0x33c417['TcCad'](shellQuote,_0x4a70f4);}export function buildPlaywrightCliInvocation(_0x11eb47,_0x422e9a,_0x4e2186){const _0x5141a6=_0xfe43,_0x5f572f={'kooFz':'--config','vmjQX':function(_0x2988c8,_0x33b15f){return _0x2988c8(_0x33b15f);}},_0x3e2ca7=toPlaywrightCliSessionKey(_0x11eb47),[_0x24022c='unknown']=_0x4e2186,_0x570852=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x3e2ca7,_0x5f572f['kooFz'],_0x422e9a,..._0x4e2186];return{'command':_0x5141a6(0x1f5),'args':_0x570852,'shellCommand':[_0x5141a6(0x1f5),PLAYWRIGHT_CLI_BINARY,'-s='+_0x5f572f['vmjQX'](quoteShellArg,_0x3e2ca7),_0x5141a6(0x209),quoteShellArg(_0x422e9a),..._0x4e2186[_0x5141a6(0x1df)](quoteShellArg)]['join']('\x20'),'subcommand':_0x24022c};}function _0x2694(){const _0x1269ce=['command','map','750420pKcYpC','hex','\x27\x5c\x27\x27','args','replace','pipe','\x20signal=','SIGKILL','data','ignore','aFxLF','cwd','sha256','playwright-cli\x20','ETEkn','sessionId','timeoutMs','close','CNZIg','values','WuHPZ','npx','9yrpptq','1456266LlTjKl','82635DIDpEp','499086IKGpWF','lcstS','slice','iXvjj','\x0astderr:\x20','lrGgf','digest','gvRCk','28zZXgER','FBVol','error','552176wFrGSc','30FLLBFe','23542563FtPnKL','rg-','10VPRvrE','--config','toString','null','length','oJjpi','1923458ZEYNYA','cmd','kill'];_0x2694=function(){return _0x1269ce;};return _0x2694();}function _0xfe43(_0x5619ad,_0x4a28ee){_0x5619ad=_0x5619ad-0x1dd;const _0x2694b7=_0x2694();let _0xfe432c=_0x2694b7[_0x5619ad];return _0xfe432c;}export function buildPlaywrightCliCommandPrefix(_0x219d63,_0x473a70){const _0x38e61d=_0xfe43,_0x2eb8c7={'aFxLF':function(_0x3f304c,_0x3092f0){return _0x3f304c(_0x3092f0);},'hqCgE':function(_0x1c6285,_0xf3158a){return _0x1c6285(_0xf3158a);}},_0x560942=_0x2eb8c7[_0x38e61d(0x1ea)](toPlaywrightCliSessionKey,_0x219d63);return['npx',PLAYWRIGHT_CLI_BINARY,'-s='+_0x2eb8c7['hqCgE'](quoteShellArg,_0x560942),_0x38e61d(0x209),quoteShellArg(_0x473a70)]['join']('\x20');}function truncateOutput(_0x750279,_0x2368db=0x7d0){const _0x59a080=_0xfe43,_0x40c1a1={'lrGgf':function(_0x5cf288,_0x43d7c4){return _0x5cf288>_0x43d7c4;},'iXvjj':function(_0x5edc99,_0x425753){return _0x5edc99+_0x425753;},'Sznnk':'...'};return _0x40c1a1[_0x59a080(0x1fe)](_0x750279[_0x59a080(0x20c)],_0x2368db)?_0x40c1a1[_0x59a080(0x1fc)](_0x750279[_0x59a080(0x1fb)](0x0,_0x2368db),_0x40c1a1['Sznnk']):_0x750279;}export async function runPlaywrightCliCommand(_0xe0ff66){const _0xe314ca=_0xfe43,_0x42634a={'ETEkn':function(_0x2c79f2,_0x34adfd){return _0x2c79f2(_0x34adfd);},'WuHPZ':_0xe314ca(0x20b),'TwydD':function(_0x2158c2,_0x259521,_0x3b0c81,_0x52cd0c){return _0x2158c2(_0x259521,_0x3b0c81,_0x52cd0c);},'pJxBi':function(_0x2019f4,_0x4797fe){return _0x2019f4>_0x4797fe;},'aLsGm':function(_0x4fe9ef,_0x10e907,_0x24b3c5){return _0x4fe9ef(_0x10e907,_0x24b3c5);},'oJjpi':'data','osbWr':_0xe314ca(0x203)},_0x58f336=buildPlaywrightCliInvocation(_0xe0ff66[_0xe314ca(0x1ef)],_0xe0ff66['configPath'],_0xe0ff66['commandArgs']);return new Promise((_0x575871,_0x597eb0)=>{const _0x7615cc=_0xe314ca,_0x29ccf8={'IOVKh':'SIGTERM'},_0x1d22df=_0x42634a['TwydD'](spawn,_0x58f336[_0x7615cc(0x1de)],_0x58f336[_0x7615cc(0x1e3)],{'cwd':_0xe0ff66[_0x7615cc(0x1eb)],'env':_0xe0ff66['env'],'stdio':[_0x7615cc(0x1e9),_0x7615cc(0x1e5),_0x7615cc(0x1e5)]});let _0x1e3f68='',_0x5b3be7='',_0x4fe2a2=![];const _0x3c75d9=_0xe0ff66[_0x7615cc(0x1f0)]&&_0x42634a['pJxBi'](_0xe0ff66[_0x7615cc(0x1f0)],0x0)?_0x42634a['aLsGm'](setTimeout,()=>{const _0x412ffb=_0x7615cc;_0x4fe2a2=!![],_0x1d22df[_0x412ffb(0x1dd)](_0x29ccf8['IOVKh']),setTimeout(()=>{const _0x31485c=_0x412ffb;try{_0x1d22df['kill'](_0x31485c(0x1e7));}catch{}},0x3e8);},_0xe0ff66['timeoutMs']):null;_0x1d22df['stdout']?.['on'](_0x7615cc(0x1e8),_0x1e7768=>{_0x1e3f68+=_0x1e7768['toString']();}),_0x1d22df['stderr']?.['on'](_0x42634a[_0x7615cc(0x20d)],_0xc896c8=>{const _0x7106ad=_0x7615cc;_0x5b3be7+=_0xc896c8[_0x7106ad(0x20a)]();}),_0x1d22df['on'](_0x42634a['osbWr'],_0x197465=>{const _0x46a6e9=_0x7615cc;if(_0x3c75d9)_0x42634a[_0x46a6e9(0x1ee)](clearTimeout,_0x3c75d9);_0x42634a[_0x46a6e9(0x1ee)](_0x597eb0,_0x197465);}),_0x1d22df['on'](_0x7615cc(0x1f1),(_0x270480,_0x270b36)=>{const _0x15c8eb=_0x7615cc;if(_0x3c75d9)clearTimeout(_0x3c75d9);if(_0x270480===0x0){_0x42634a['ETEkn'](_0x575871,{'stdout':_0x1e3f68,'stderr':_0x5b3be7,'invocation':_0x58f336});return;}const _0x323996=_0x4fe2a2?'timed\x20out\x20after\x20'+_0xe0ff66['timeoutMs']+'ms':'exited\x20with\x20code='+(_0x270480??_0x15c8eb(0x20b))+_0x15c8eb(0x1e6)+(_0x270b36??_0x42634a[_0x15c8eb(0x1f4)]);_0x42634a['ETEkn'](_0x597eb0,new Error(_0x15c8eb(0x1ed)+_0x58f336['subcommand']+'\x20'+_0x323996+'\x0astdout:\x20'+_0x42634a['ETEkn'](truncateOutput,_0x1e3f68)+_0x15c8eb(0x1fd)+truncateOutput(_0x5b3be7)));});});}export function extractBashCommand(_0x2a9164){const _0x1dc410=_0xfe43,_0x8a954f={'CNZIg':'script','ZHEcI':'bash_command','gvRCk':function(_0x4d9bc7,_0x58978c){return _0x4d9bc7===_0x58978c;},'eZfwh':'string','lcstS':function(_0x24da96,_0x380136){return _0x24da96??_0x380136;}},_0x3f69a9=['command',_0x1dc410(0x20f),_0x8a954f[_0x1dc410(0x1f2)],_0x8a954f['ZHEcI']];for(const _0x222e5a of _0x3f69a9){const _0x4e7757=_0x2a9164[_0x222e5a];if(_0x8a954f[_0x1dc410(0x200)](typeof _0x4e7757,_0x8a954f['eZfwh'])&&_0x4e7757['trim']())return _0x4e7757;}const _0x5d2ee2=Object[_0x1dc410(0x1f3)](_0x2a9164)['find'](_0x54dce5=>typeof _0x54dce5==='string'&&_0x54dce5['trim']()[_0x1dc410(0x20c)]>0x0);return _0x8a954f[_0x1dc410(0x1fa)](_0x5d2ee2,null);}export function parsePlaywrightCliCommand(_0x55245){const _0x46e2bd=_0x55245['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x46e2bd?.[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
+ function _0x2e35(_0x2031c4,_0x32f97d){_0x2031c4=_0x2031c4-0x94;const _0x451aaa=_0x451a();let _0x2e35f0=_0x451aaa[_0x2031c4];return _0x2e35f0;}(function(_0x3ac590,_0x4c52f4){const _0x2fb9c7=_0x2e35,_0x3840d6=_0x3ac590();while(!![]){try{const _0x56d9cf=-parseInt(_0x2fb9c7(0x98))/0x1*(-parseInt(_0x2fb9c7(0x99))/0x2)+-parseInt(_0x2fb9c7(0x9f))/0x3+-parseInt(_0x2fb9c7(0x9e))/0x4+-parseInt(_0x2fb9c7(0x94))/0x5*(parseInt(_0x2fb9c7(0x97))/0x6)+-parseInt(_0x2fb9c7(0xa1))/0x7*(-parseInt(_0x2fb9c7(0x9a))/0x8)+-parseInt(_0x2fb9c7(0xa0))/0x9*(-parseInt(_0x2fb9c7(0x9c))/0xa)+parseInt(_0x2fb9c7(0x9d))/0xb*(parseInt(_0x2fb9c7(0x95))/0xc);if(_0x56d9cf===_0x4c52f4)break;else _0x3840d6['push'](_0x3840d6['shift']());}catch(_0x14377d){_0x3840d6['push'](_0x3840d6['shift']());}}}(_0x451a,0x77e08));const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';export function formatProfileRequiredMessage(_0x2c16fc){const _0x2a3757=_0x2e35,_0x578289={'XmNZG':function(_0xe22f09,_0x1b6ca0){return _0xe22f09(_0x1b6ca0);}},_0x50f504=_0x2c16fc?_0x578289[_0x2a3757(0x9b)](_0x2c16fc,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x2a3757(0x96)+_0x50f504+'.';}function _0x451a(){const _0x1b5c06=['82383ioHexw','50CisEHk','204vNJEYA','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','101406swYzmQ','1111DvaAJi','1202myyNby','192dlPbuF','XmNZG','885130geKtCK','144749WTJVAZ','3436608wDyteV','1885005wKrZUm','99QZycKU'];_0x451a=function(){return _0x1b5c06;};return _0x451a();}
@@ -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 _0x5d2d(){const _0x285d06=['qMauQ','addInitScript','sNuWM',';\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','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','11711980TOmgLF','stringify','400735KTzPrf','12yZmpzw','4677762GzXGYt','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','2897577OGIivE','413JidHjj','8258OdnTGa','183528kOHRmB','140TqvrDy','1905656otwLwc','\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'];_0x5d2d=function(){return _0x285d06;};return _0x5d2d();}(function(_0x70544f,_0x1e87fd){const _0x2d6082=_0x5e4f,_0xd2ab15=_0x70544f();while(!![]){try{const _0x2ba074=-parseInt(_0x2d6082(0x148))/0x1*(parseInt(_0x2d6082(0x14a))/0x2)+parseInt(_0x2d6082(0x156))/0x3+-parseInt(_0x2d6082(0x14b))/0x4+-parseInt(_0x2d6082(0x154))/0x5*(-parseInt(_0x2d6082(0x155))/0x6)+-parseInt(_0x2d6082(0x147))/0x7*(parseInt(_0x2d6082(0x149))/0x8)+parseInt(_0x2d6082(0x146))/0x9+parseInt(_0x2d6082(0x152))/0xa;if(_0x2ba074===_0x1e87fd)break;else _0xd2ab15['push'](_0xd2ab15['shift']());}catch(_0x5a8d07){_0xd2ab15['push'](_0xd2ab15['shift']());}}}(_0x5d2d,0xc4762));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x193230=_0x5e4f,_0x2c8088={'FbjQD':function(_0x484c4c,_0x2899d3){return _0x484c4c+_0x2899d3;},'qMauQ':function(_0x5621d9,_0x4ac262){return _0x5621d9+_0x4ac262;},'sNuWM':function(_0x59f64f,_0x10afd6){return _0x59f64f+_0x10afd6;}},_0x1813e9=_0x2c8088['FbjQD'](_0x2c8088[_0x193230(0x14d)](_0x2c8088['qMauQ'](_0x2c8088[_0x193230(0x14f)]('<div\x20class=\x22ranger-banner__content\x22>','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>'),'<div\x20class=\x22ranger-banner__message\x22>')+'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>'+_0x193230(0x151),'</div>')+'</div>',_0x193230(0x145)),_0x208542='\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';return _0x193230(0x14c)+JSON['stringify'](_0x1813e9)+';\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[_0x193230(0x153)](_0x208542)+_0x193230(0x150);})());function _0x5e4f(_0xcf410b,_0x38bad1){_0xcf410b=_0xcf410b-0x145;const _0x5d2d85=_0x5d2d();let _0x5e4ff1=_0x5d2d85[_0xcf410b];return _0x5e4ff1;}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x13cfd7){const _0x4e433b=_0x5e4f;await _0x13cfd7[_0x4e433b(0x14e)]({'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(_0x35fe52,_0x4d2a87){const _0x29c92c=_0x5de0,_0x521115=_0x35fe52();while(!![]){try{const _0x41b067=parseInt(_0x29c92c(0x155))/0x1+parseInt(_0x29c92c(0x160))/0x2*(-parseInt(_0x29c92c(0x14f))/0x3)+-parseInt(_0x29c92c(0x146))/0x4+parseInt(_0x29c92c(0x152))/0x5*(parseInt(_0x29c92c(0x15b))/0x6)+parseInt(_0x29c92c(0x16b))/0x7*(-parseInt(_0x29c92c(0x162))/0x8)+parseInt(_0x29c92c(0x14d))/0x9+parseInt(_0x29c92c(0x15e))/0xa;if(_0x41b067===_0x4d2a87)break;else _0x521115['push'](_0x521115['shift']());}catch(_0x5ebf96){_0x521115['push'](_0x521115['shift']());}}}(_0x275a,0xd9a6f));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';function _0x5de0(_0x5c56e1,_0x21588e){_0x5c56e1=_0x5c56e1-0x146;const _0x275a53=_0x275a();let _0x5de0c3=_0x275a53[_0x5c56e1];return _0x5de0c3;}const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x2e713a={'FJIkH':function(_0x399831,_0x291822,_0x36534e){return _0x399831(_0x291822,_0x36534e);},'rqyyv':function(_0x3448a5){return _0x3448a5();},'ttiXr':'projects.json'};return _0x2e713a['FJIkH'](join,_0x2e713a['rqyyv'](getRangerHomeDir),_0x2e713a['ttiXr']);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x427a60=_0x5de0,_0x2f4c4d={'WEwLL':function(_0x1b5cf7,_0x41f356){return _0x1b5cf7(_0x41f356);},'UJZzU':function(_0x15e5dd){return _0x15e5dd();},'Rftdb':function(_0x19971b,_0x5e934d){return _0x19971b instanceof _0x5e934d;},'uOeQD':function(_0x30bf41,_0x338e12){return _0x30bf41(_0x338e12);},'jWadR':function(_0x214ce0,_0x2be3de){return _0x214ce0!==_0x2be3de;},'LkTkX':'object','fHwQM':function(_0x3a7fb1,_0xb81214){return _0x3a7fb1!==_0xb81214;},'mYOAI':function(_0x3c3baf,_0x4fd912){return _0x3c3baf===_0x4fd912;},'TQXZF':function(_0xc426a0){return _0xc426a0();}},_0x2064e4=getProjectsConfigPath();if(!existsSync(_0x2064e4))return emptyConfig();let _0x7ab7f7;try{_0x7ab7f7=readFileSync(_0x2064e4,_0x427a60(0x175));}catch(_0x1b8c82){const _0x3c63bb=_0x1b8c82 instanceof Error?_0x1b8c82['message']:_0x2f4c4d['WEwLL'](String,_0x1b8c82);return console[_0x427a60(0x15f)]('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x2064e4+':\x20'+_0x3c63bb+'.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x2f4c4d['UJZzU'](emptyConfig);}let _0x46a7e4;try{_0x46a7e4=JSON[_0x427a60(0x15a)](_0x7ab7f7);}catch(_0x40cd89){const _0x19f18b=_0x2f4c4d[_0x427a60(0x157)](_0x40cd89,Error)?_0x40cd89[_0x427a60(0x167)]:_0x2f4c4d[_0x427a60(0x148)](String,_0x40cd89);return console[_0x427a60(0x15f)]('[ranger]\x20Warning:\x20'+_0x2064e4+'\x20is\x20not\x20valid\x20JSON\x20('+_0x19f18b+').\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}if(!_0x46a7e4||_0x2f4c4d['jWadR'](typeof _0x46a7e4,_0x2f4c4d['LkTkX'])||Array[_0x427a60(0x164)](_0x46a7e4)||_0x46a7e4['version']!==CURRENT_VERSION||_0x2f4c4d[_0x427a60(0x147)](typeof _0x46a7e4['projects'],_0x2f4c4d[_0x427a60(0x165)])||_0x2f4c4d['mYOAI'](_0x46a7e4[_0x427a60(0x176)],null)||Array['isArray'](_0x46a7e4[_0x427a60(0x176)]))return console[_0x427a60(0x15f)](_0x427a60(0x16f)+_0x2064e4+_0x427a60(0x151)),_0x2f4c4d[_0x427a60(0x14c)](emptyConfig);return _0x46a7e4;}export function writeProjectsConfig(_0x1c4f94){const _0x458d36=_0x5de0,_0x9975f8={'sGNYR':function(_0x1750c4){return _0x1750c4();},'CUPVp':function(_0x3727ac,_0x16eeba,_0x9c1147){return _0x3727ac(_0x16eeba,_0x9c1147);},'wiwwT':function(_0x531855,_0x2f5d1d,_0x4c72a1,_0x2efc2e){return _0x531855(_0x2f5d1d,_0x4c72a1,_0x2efc2e);},'XMXfh':function(_0x6d877,_0x33d8a6,_0x113c7b){return _0x6d877(_0x33d8a6,_0x113c7b);},'juZOd':function(_0x4e988f,_0x90d610){return _0x4e988f(_0x90d610);},'nTDNi':function(_0x1e8a28,_0x16cc6a){return _0x1e8a28(_0x16cc6a);}},_0x1f3e13=_0x9975f8['sGNYR'](getProjectsConfigPath),_0xa241f9=dirname(_0x1f3e13);!existsSync(_0xa241f9)&&_0x9975f8[_0x458d36(0x16a)](mkdirSync,_0xa241f9,{'recursive':!![]});const _0x5781f8=_0x1f3e13+'.'+process['pid']+'.'+Date['now']()+_0x458d36(0x154),_0x4d2e19=JSON[_0x458d36(0x16c)](_0x1c4f94,null,0x2)+'\x0a';try{_0x9975f8[_0x458d36(0x172)](writeFileSync,_0x5781f8,_0x4d2e19,{'encoding':'utf-8','mode':0x180}),_0x9975f8['XMXfh'](renameSync,_0x5781f8,_0x1f3e13);}catch(_0x1bbaae){try{_0x9975f8['juZOd'](existsSync,_0x5781f8)&&_0x9975f8[_0x458d36(0x163)](unlinkSync,_0x5781f8);}catch{}throw _0x1bbaae;}}export function readProfileOverrides(_0x4bca12,_0x39c2c0){const _0x4b0bed=_0x5de0,_0xd1f6d4={'uvcYJ':function(_0x327745){return _0x327745();}},_0x16835e=_0xd1f6d4[_0x4b0bed(0x14e)](readProjectsConfig),_0x33e0c2=_0x16835e['projects'][_0x4bca12];if(!_0x33e0c2||!_0x33e0c2['profiles'])return null;const _0x3811f9=_0x33e0c2['profiles'][_0x39c2c0];if(!_0x3811f9||!_0x3811f9[_0x4b0bed(0x150)])return null;return _0x3811f9['settings']??null;}export function setProfileOverride(_0x36f453,_0x27595b,_0x2ebb8b,_0x191030){const _0x32c7fd=_0x5de0,_0x154b03={'CHwfj':'keyPath\x20is\x20required','eBWnc':function(_0x1bce18){return _0x1bce18();},'xfJHv':function(_0x202a29,_0x59fde9,_0x5ebff7,_0x25683){return _0x202a29(_0x59fde9,_0x5ebff7,_0x25683);}};if(!_0x2ebb8b)throw new Error(_0x154b03[_0x32c7fd(0x159)]);const _0x2dfbc0=_0x154b03['eBWnc'](readProjectsConfig),_0xee2625=_0x2dfbc0[_0x32c7fd(0x176)][_0x36f453]??={},_0x2198e3=_0xee2625['profiles']??={},_0x2f9194=_0x2198e3[_0x27595b]??={},_0x39e72b=_0x2f9194['settings']??={};_0x154b03[_0x32c7fd(0x14a)](setByKeyPath,_0x39e72b,_0x2ebb8b,_0x191030),writeProjectsConfig(_0x2dfbc0);}export function unsetProfileOverride(_0x11913a,_0x2f822b,_0x26ab51){const _0x3a5400=_0x5de0,_0xf0d8db={'OGhsE':'keyPath\x20is\x20required','AaQvr':function(_0x8fa22f){return _0x8fa22f();},'WLLaX':function(_0x2167f0,_0x367b2c){return _0x2167f0(_0x367b2c);}};if(!_0x26ab51)throw new Error(_0xf0d8db['OGhsE']);const _0x5f14ab=_0xf0d8db[_0x3a5400(0x153)](readProjectsConfig),_0x43f1b1=_0x5f14ab[_0x3a5400(0x176)][_0x11913a];if(!_0x43f1b1?.[_0x3a5400(0x174)])return![];const _0x3373a4=_0x43f1b1[_0x3a5400(0x174)][_0x2f822b];if(!_0x3373a4?.[_0x3a5400(0x150)])return![];const _0x3d2ad4=deleteByKeyPath(_0x3373a4['settings'],_0x26ab51);if(!_0x3d2ad4)return![];return _0xf0d8db['WLLaX'](writeProjectsConfig,_0x5f14ab),!![];}export function resetProfileOverrides(_0x8db4cc,_0x1b4885){const _0x55fbcf=_0x5de0,_0x2ba15a={'GxEtd':function(_0x2d867e,_0x3f3ca9){return _0x2d867e===_0x3f3ca9;}},_0x3ad1b1=readProjectsConfig(),_0x1638ad=_0x3ad1b1[_0x55fbcf(0x176)][_0x8db4cc];if(!_0x1638ad?.[_0x55fbcf(0x174)])return;if(!(_0x1b4885 in _0x1638ad['profiles']))return;delete _0x1638ad['profiles'][_0x1b4885],_0x2ba15a[_0x55fbcf(0x169)](Object['keys'](_0x1638ad['profiles'])['length'],0x0)&&(!_0x1638ad[_0x55fbcf(0x161)]?delete _0x3ad1b1[_0x55fbcf(0x176)][_0x8db4cc]:_0x1638ad['profiles']={}),writeProjectsConfig(_0x3ad1b1);}export function readLastProfile(_0x478cc0){const _0x161e46=_0x5de0,_0xfc140e=readProjectsConfig(),_0x1627b0=_0xfc140e[_0x161e46(0x176)][_0x478cc0];return _0x1627b0?.['lastProfile']??null;}export function writeLastProfile(_0x22b65a,_0x472e93){const _0x2ec31d=_0x5de0,_0x1b9872={'zYtfl':function(_0x506371){return _0x506371();},'tmCLq':function(_0x3e0939,_0x3eb6bd){return _0x3e0939(_0x3eb6bd);}},_0x4f0162=_0x1b9872[_0x2ec31d(0x15c)](readProjectsConfig),_0x1b8e59=_0x4f0162['projects'][_0x22b65a]??={};_0x1b8e59[_0x2ec31d(0x161)]=_0x472e93,_0x1b9872['tmCLq'](writeProjectsConfig,_0x4f0162);}function _0x275a(){const _0x87a93d=['profiles','utf-8','projects','object','2736748CVHmOg','fHwQM','uOeQD','setupHeaders','xfJHv','Mvjha','TQXZF','8279172OLsJkY','uvcYJ','2634069EulmWE','settings','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','4713145iOIZVN','AaQvr','.tmp','684939ADLVsz','rCvPB','Rftdb','HcZwl','CHwfj','parse','6PvTyuq','zYtfl','wurqp','13961340mwpuwQ','warn','4KxKhFv','lastProfile','20144RceSkH','nTDNi','isArray','LkTkX','length','message','split','GxEtd','CUPVp','1701pDtQzK','stringify','SrFOh','ApjjR','[ranger]\x20Warning:\x20','anCyJ','clvwH','wiwwT','niKCe'];_0x275a=function(){return _0x87a93d;};return _0x275a();}export function mergeCloudProfileSettings(_0x296e4e,_0x3a3b9d){const _0x27e5df=_0x5de0,_0x4355da={'HcZwl':function(_0x23e6d2,_0x1e2a65){return _0x23e6d2??_0x1e2a65;},'rCvPB':function(_0x3afae2,_0x1e4fa2){return _0x3afae2===_0x1e4fa2;},'TGoqZ':function(_0x1caf98,_0x7aa277){return _0x1caf98===_0x7aa277;},'Mvjha':'headers','wurqp':function(_0x5219dc,_0x1e2a50){return _0x5219dc===_0x1e2a50;},'ApjjR':_0x27e5df(0x149),'clvwH':function(_0x2231b8,_0x46fb18){return _0x2231b8(_0x46fb18);}},_0x1ce90e={..._0x4355da[_0x27e5df(0x158)](_0x296e4e,{})};if(!_0x3a3b9d)return _0x1ce90e;for(const [_0x3c5416,_0x10dc60]of Object['entries'](_0x3a3b9d)){if(_0x4355da[_0x27e5df(0x156)](_0x10dc60,undefined))continue;if(_0x4355da['TGoqZ'](_0x10dc60,null)){delete _0x1ce90e[_0x3c5416];continue;}if(_0x3c5416===_0x4355da[_0x27e5df(0x14b)]||_0x4355da[_0x27e5df(0x15d)](_0x3c5416,_0x4355da[_0x27e5df(0x16e)])){const _0x4dc56d=_0x4355da[_0x27e5df(0x171)](asRecord,_0x1ce90e[_0x3c5416])??{},_0x10d6ce=asRecord(_0x10dc60);if(!_0x10d6ce){_0x1ce90e[_0x3c5416]=_0x10dc60;continue;}const _0x4b4380={..._0x4dc56d};for(const [_0x1b254a,_0x20486b]of Object['entries'](_0x10d6ce)){if(_0x20486b===null)delete _0x4b4380[_0x1b254a];else _0x20486b!==undefined&&(_0x4b4380[_0x1b254a]=_0x20486b);}_0x1ce90e[_0x3c5416]=_0x4b4380;continue;}_0x1ce90e[_0x3c5416]=_0x10dc60;}return _0x1ce90e;}function asRecord(_0x34aca2){const _0x464276=_0x5de0,_0x3d4134={'FKZfV':function(_0x39844e,_0xe7a087){return _0x39844e===_0xe7a087;},'niKCe':'object'};return _0x34aca2&&_0x3d4134['FKZfV'](typeof _0x34aca2,_0x3d4134[_0x464276(0x173)])&&!Array['isArray'](_0x34aca2)?_0x34aca2:undefined;}function setByKeyPath(_0x55e0de,_0x4cb517,_0x4ea26e){const _0x230ad0=_0x5de0,_0x10a78b={'gwzMP':function(_0x477727,_0x1f8dad){return _0x477727-_0x1f8dad;}},_0x1dae5b=_0x4cb517[_0x230ad0(0x168)]('.');let _0x5912a=_0x55e0de;for(let _0x46b857=0x0;_0x46b857<_0x1dae5b[_0x230ad0(0x166)]-0x1;_0x46b857++){const _0x121d4e=_0x1dae5b[_0x46b857],_0x12d0e5=_0x5912a[_0x121d4e];(!_0x12d0e5||typeof _0x12d0e5!=='object'||Array[_0x230ad0(0x164)](_0x12d0e5))&&(_0x5912a[_0x121d4e]={}),_0x5912a=_0x5912a[_0x121d4e];}_0x5912a[_0x1dae5b[_0x10a78b['gwzMP'](_0x1dae5b[_0x230ad0(0x166)],0x1)]]=_0x4ea26e;}function deleteByKeyPath(_0x9e3931,_0x18344a){const _0x31c700=_0x5de0,_0x2fec1a={'SrFOh':function(_0xf489cc,_0x32260c){return _0xf489cc<_0x32260c;},'zHwZY':function(_0x2e05f6,_0x15e652){return _0x2e05f6!==_0x15e652;},'anCyJ':function(_0x5328b9,_0x18db6b){return _0x5328b9-_0x18db6b;}},_0x3c0592=_0x18344a['split']('.');let _0xd5ed10=_0x9e3931;for(let _0x264719=0x0;_0x2fec1a[_0x31c700(0x16d)](_0x264719,_0x3c0592[_0x31c700(0x166)]-0x1);_0x264719++){const _0x780d23=_0x3c0592[_0x264719],_0x24ee4a=_0xd5ed10[_0x780d23];if(!_0x24ee4a||_0x2fec1a['zHwZY'](typeof _0x24ee4a,_0x31c700(0x177))||Array['isArray'](_0x24ee4a))return![];_0xd5ed10=_0x24ee4a;}const _0x18fd45=_0x3c0592[_0x2fec1a[_0x31c700(0x170)](_0x3c0592['length'],0x1)];if(!(_0x18fd45 in _0xd5ed10))return![];return delete _0xd5ed10[_0x18fd45],!![];}
@@ -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(_0x534a11,_0x291425){const _0x3af8eb=_0x5f44,_0x4f16b5=_0x534a11();while(!![]){try{const _0x132483=-parseInt(_0x3af8eb(0x1ea))/0x1*(parseInt(_0x3af8eb(0x1f6))/0x2)+parseInt(_0x3af8eb(0x1f4))/0x3*(parseInt(_0x3af8eb(0x1e7))/0x4)+parseInt(_0x3af8eb(0x1ed))/0x5+parseInt(_0x3af8eb(0x1f2))/0x6+parseInt(_0x3af8eb(0x1f9))/0x7*(parseInt(_0x3af8eb(0x1f7))/0x8)+parseInt(_0x3af8eb(0x1f8))/0x9+-parseInt(_0x3af8eb(0x1ef))/0xa;if(_0x132483===_0x291425)break;else _0x4f16b5['push'](_0x4f16b5['shift']());}catch(_0x3a66e4){_0x4f16b5['push'](_0x4f16b5['shift']());}}}(_0x13ba,0xcf335));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x1d2365=_0x5f44,_0x50fd34={'rPyXg':function(_0x474a82){return _0x474a82();}};return join(_0x50fd34[_0x1d2365(0x1f1)](getRangerDir),_0x1d2365(0x1e6));}function _0x13ba(){const _0x5299e3=['2282230siWwaI','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','25056270boefbw','model','rPyXg','2366250duZjVi','object','3UmYSdV','mEDUI','22JealaO','977848jRvjRv','11884689YQTCOc','21nvkXCp','parse','config.json','4261916IcAaRc','utf-8','string','22654dXYwQN','isArray','rgdoa'];_0x13ba=function(){return _0x5299e3;};return _0x13ba();}function _0x5f44(_0x59da0f,_0x14e5f5){_0x59da0f=_0x59da0f-0x1e5;const _0x13ba2c=_0x13ba();let _0x5f44dd=_0x13ba2c[_0x59da0f];return _0x5f44dd;}export async function loadRangerConfig(){const _0x5078ab=_0x5f44,_0x22b04e={'RlQsA':function(_0x5486be){return _0x5486be();},'rgdoa':function(_0x2da596,_0x261b5c,_0x24be39){return _0x2da596(_0x261b5c,_0x24be39);},'mbHwW':function(_0x5a75d2,_0x591e55){return _0x5a75d2!==_0x591e55;},'bWZJr':_0x5078ab(0x1f3),'mEDUI':function(_0xcaae7b,_0xc6545a){return _0xcaae7b===_0xc6545a;}},_0x331685=_0x22b04e['RlQsA'](getRangerConfigPath);if(!existsSync(_0x331685))return{};try{const _0x5574fc=await _0x22b04e[_0x5078ab(0x1ec)](readFile,_0x331685,_0x5078ab(0x1e8)),_0x5c1034=JSON[_0x5078ab(0x1e5)](_0x5574fc);if(!_0x5c1034||_0x22b04e['mbHwW'](typeof _0x5c1034,_0x22b04e['bWZJr'])||Array[_0x5078ab(0x1eb)](_0x5c1034))return{};const _0x44cc13={},_0xdb2ab5=_0x5c1034[_0x5078ab(0x1f0)];return _0x22b04e[_0x5078ab(0x1f5)](typeof _0xdb2ab5,_0x5078ab(0x1e9))&&(_0x44cc13['model']=_0xdb2ab5),_0x44cc13;}catch(_0x2a6e54){const _0x31e833=_0x2a6e54 instanceof Error?_0x2a6e54['message']:String(_0x2a6e54);return console['warn'](_0x5078ab(0x1ee)+_0x331685+':\x20'+_0x31e833),{};}}
@@ -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(_0x30ad1a,_0x408145){const _0x3ade7c=_0xe47a,_0x1893e1=_0x30ad1a();while(!![]){try{const _0x11ab1b=parseInt(_0x3ade7c(0x1ef))/0x1+-parseInt(_0x3ade7c(0x1e1))/0x2*(-parseInt(_0x3ade7c(0x1f0))/0x3)+-parseInt(_0x3ade7c(0x1db))/0x4*(-parseInt(_0x3ade7c(0x1e3))/0x5)+-parseInt(_0x3ade7c(0x1eb))/0x6*(-parseInt(_0x3ade7c(0x1ea))/0x7)+parseInt(_0x3ade7c(0x1df))/0x8*(-parseInt(_0x3ade7c(0x1ee))/0x9)+-parseInt(_0x3ade7c(0x1ed))/0xa*(-parseInt(_0x3ade7c(0x1dd))/0xb)+-parseInt(_0x3ade7c(0x1e6))/0xc;if(_0x11ab1b===_0x408145)break;else _0x1893e1['push'](_0x1893e1['shift']());}catch(_0x5adf74){_0x1893e1['push'](_0x1893e1['shift']());}}}(_0xd8b1,0x520a3));import{dirname,join,parse}from'path';import{existsSync}from'fs';function _0xd8b1(){const _0x4b3c6a=['VIlHM','42veiYrw','114654CnmBHl','EBsTA','10bLRJUL','45JQCqbq','376766ujNTSQ','1395483xYNMen','.ranger','12700FdtoWO','KJpZN','6535155QeSVTX','WLCrY','696176wiTSrr','vdfKy','2eRCBEJ','mebps','995GsqxME','root','.git','16936392pRgjvq','qoDDI','hiYxZ'];_0xd8b1=function(){return _0x4b3c6a;};return _0xd8b1();}function _0xe47a(_0x1b0701,_0xc1d921){_0x1b0701=_0x1b0701-0x1da;const _0xd8b19d=_0xd8b1();let _0xe47a0f=_0xd8b19d[_0x1b0701];return _0xe47a0f;}import{homedir}from'os';export function getRangerRoot(){const _0x3fe87b=_0xe47a,_0x43f5f3={'beOIc':function(_0x900c3f,_0x13b162){return _0x900c3f(_0x13b162);},'dGNRn':function(_0x356a71,_0x19b84b){return _0x356a71(_0x19b84b);},'qoDDI':function(_0x475786,_0x22b04b,_0x29b47e){return _0x475786(_0x22b04b,_0x29b47e);},'mebps':function(_0x5a85c9,_0x51d6cb){return _0x5a85c9(_0x51d6cb);},'hiYxZ':function(_0x34c6f5,_0x250a27){return _0x34c6f5(_0x250a27);},'EBsTA':'.ranger'};let _0x10c858=process['cwd']();const _0x37f051=_0x43f5f3['beOIc'](parse,_0x10c858)[_0x3fe87b(0x1e4)];while(_0x10c858!==_0x37f051){if(_0x43f5f3['dGNRn'](existsSync,_0x43f5f3[_0x3fe87b(0x1e7)](join,_0x10c858,_0x3fe87b(0x1da))))return _0x10c858;_0x10c858=_0x43f5f3[_0x3fe87b(0x1e2)](dirname,_0x10c858);}if(_0x43f5f3[_0x3fe87b(0x1e8)](existsSync,join(_0x37f051,_0x43f5f3[_0x3fe87b(0x1ec)])))return _0x37f051;const _0x174977=findGitRoot();if(_0x174977)return _0x174977;return process['cwd']();}export function getRangerDir(){const _0x400250={'flXWO':function(_0x168109,_0x832ac4,_0x5b236d){return _0x168109(_0x832ac4,_0x5b236d);}};return _0x400250['flXWO'](join,getRangerRoot(),'.ranger');}export function findGitRoot(){const _0x54fdee=_0xe47a,_0x376e5f={'KJpZN':function(_0x5174bc,_0x3fdb3a){return _0x5174bc(_0x3fdb3a);},'VIlHM':function(_0x5ddfd8,_0x56237a){return _0x5ddfd8!==_0x56237a;}};let _0x45c021=process['cwd']();const _0x4a496a=_0x376e5f[_0x54fdee(0x1dc)](parse,_0x45c021)['root'];while(_0x376e5f[_0x54fdee(0x1e9)](_0x45c021,_0x4a496a)){if(_0x376e5f[_0x54fdee(0x1dc)](existsSync,join(_0x45c021,_0x54fdee(0x1e5))))return _0x45c021;_0x45c021=dirname(_0x45c021);}if(existsSync(join(_0x4a496a,_0x54fdee(0x1e5))))return _0x4a496a;return null;}export function getRangerHomeDir(){const _0x242f72=_0xe47a,_0x1fac24={'vdfKy':function(_0x1eae2d,_0x5e7b89,_0x1e7a96){return _0x1eae2d(_0x5e7b89,_0x1e7a96);},'WLCrY':function(_0x52ba3f){return _0x52ba3f();},'cnffy':'.ranger'};return _0x1fac24[_0x242f72(0x1e0)](join,_0x1fac24[_0x242f72(0x1de)](homedir),_0x1fac24['cnffy']);}
@@ -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(_0x32d09e,_0x448c56){const _0x5606dd=_0x1e30,_0x503692=_0x32d09e();while(!![]){try{const _0x5121ed=-parseInt(_0x5606dd(0x78))/0x1+-parseInt(_0x5606dd(0x7a))/0x2+parseInt(_0x5606dd(0x99))/0x3+-parseInt(_0x5606dd(0x76))/0x4+parseInt(_0x5606dd(0x94))/0x5*(parseInt(_0x5606dd(0x77))/0x6)+parseInt(_0x5606dd(0x9c))/0x7+-parseInt(_0x5606dd(0x96))/0x8;if(_0x5121ed===_0x448c56)break;else _0x503692['push'](_0x503692['shift']());}catch(_0xc34e9a){_0x503692['push'](_0x503692['shift']());}}}(_0x9555,0x90c3f));function _0x1e30(_0x1e7702,_0x4787cd){_0x1e7702=_0x1e7702-0x72;const _0x95558=_0x9555();let _0x1e3069=_0x95558[_0x1e7702];return _0x1e3069;}import{existsSync}from'fs';import _0x640310 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 _0x9555(){const _0x4ccfd9=['7625584iPHKfW','QGNXS','list','2033115EmfjvY','IDdEz','\x20does\x20not\x20exist.','6473418RYYsRT','source','Local\x20profile','string','`ranger\x20profile\x20add`\x20to\x20create\x20one.','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','url','startPath','envBaseUrl','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','RANGER_TEST_USERNAME','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','RANGER_SESSION_STATE_PATH','118916qlePXn','22116AfvboW','892995udEDyU','uQbEZ','530400KAtlzq','profile','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','Axhjn','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','iSosS','baseUrl','Cloud\x20profile\x20(recommended)','cdpEndpoint','No\x20baseUrl\x20configured\x20for\x20profile\x20\x22','envStartPath','Jysbu','bNWAa','resolvedEnv','prompt','log','rDAzr','local','FgwpN','yOeEy','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','Profile\x20\x22','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','name','env','1535pbITvH','cloud'];_0x9555=function(){return _0x4ccfd9;};return _0x9555();}import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x19c25a){const _0x4ed264=_0x1e30,_0xf63b32={'rDAzr':function(_0x56ae84){return _0x56ae84();},'Jysbu':function(_0x4a9bf7){return _0x4a9bf7();},'WmfdW':function(_0x359621,_0xc2b286){return _0x359621===_0xc2b286;},'FgwpN':function(_0x1d2500,_0x53dde7){return _0x1d2500+_0x53dde7;},'QGNXS':function(_0x274025,_0x17c14e){return _0x274025+_0x17c14e;},'OIyYn':_0x4ed264(0xa1),'iSosS':function(_0x5b578b,_0x15eb91){return _0x5b578b(_0x15eb91);},'IDdEz':function(_0x48ad4e,_0x325a43){return _0x48ad4e instanceof _0x325a43;},'uQbEZ':_0x4ed264(0x7d),'ynKoH':_0x4ed264(0xa0),'bNWAa':_0x4ed264(0x9d),'wbBFV':_0x4ed264(0x82),'ZmmqT':_0x4ed264(0x8c),'IeqsF':function(_0x40883c,_0x2d00d6){return _0x40883c===_0x2d00d6;},'jvXku':'cloud','GtMYQ':function(_0xb5125a,_0x3ebd67,_0x254443){return _0xb5125a(_0x3ebd67,_0x254443);},'bDkhi':function(_0x16a3d6,_0x4e67d7){return _0x16a3d6(_0x4e67d7);},'bXeHl':function(_0x5a5e91,_0x3ca05e){return _0x5a5e91(_0x3ca05e);}},_0x511f4a=_0x19c25a['profile'];let _0x2ad912=_0x19c25a[_0x4ed264(0x7b)]??await _0xf63b32[_0x4ed264(0x8b)](readActiveProfileName),_0x3befc8=null;if(!_0x2ad912&&process[_0x4ed264(0x93)][_0x4ed264(0x73)]){const _0x529ebc=await _0xf63b32[_0x4ed264(0x86)](resolveAdHocProfile);_0x529ebc&&(_0x2ad912=_0x529ebc['name'],_0x3befc8=_0x529ebc[_0x4ed264(0x7b)]);}if(!_0x2ad912)try{const _0x2d02c2=await listCloudProfiles();if(_0xf63b32['WmfdW'](_0x2d02c2['length'],0x1)){const _0x4a77c6=_0x2d02c2[0x0];_0x2ad912=_0x4a77c6[_0x4ed264(0x92)],console[_0x4ed264(0x8a)](_0x4ed264(0x72)+_0x4a77c6[_0x4ed264(0x92)]),console['log'](_0x4ed264(0x8f));}}catch{}if(!_0x2ad912)throw new Error(_0xf63b32[_0x4ed264(0x8d)](_0xf63b32[_0x4ed264(0x97)](_0x4ed264(0x74),_0x4ed264(0x7c)),_0xf63b32['OIyYn'])+'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a'+'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.');const _0x531619=_0xf63b32[_0x4ed264(0x80)](getEnvDir,_0x2ad912),_0x3f94ea=_0xf63b32['iSosS'](existsSync,_0x531619);let _0x2959f4=_0x3befc8,_0xdfedd=![];if(!_0x2959f4)try{_0x2959f4=await _0xf63b32[_0x4ed264(0x80)](fetchCloudProfile,_0x2ad912);if(!_0x2959f4)_0xdfedd=!![];}catch(_0x25df74){_0xf63b32[_0x4ed264(0x9a)](_0x25df74,ApiError)&&_0x25df74['status']===0x194&&(_0xdfedd=!![]);}if(_0x511f4a&&_0xdfedd&&!_0x3f94ea&&!_0x2959f4)throw new Error(_0x4ed264(0x90)+_0x511f4a+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a'+_0xf63b32[_0x4ed264(0x79)]+_0xf63b32['ynKoH']);if(_0x2959f4&&_0x3f94ea){let _0x5a9638=!![];if(isInteractive()){const {source:_0x290f02}=await _0x640310[_0x4ed264(0x89)]([{'type':_0x4ed264(0x98),'name':_0xf63b32[_0x4ed264(0x87)],'message':_0x4ed264(0x90)+_0x2ad912+'\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','choices':[{'name':_0xf63b32['wbBFV'],'value':_0x4ed264(0x95)},{'name':_0x4ed264(0x9e),'value':_0xf63b32['ZmmqT']}],'default':_0x4ed264(0x95)}]);_0x5a9638=_0xf63b32['IeqsF'](_0x290f02,_0xf63b32['jvXku']);}if(!_0x5a9638)_0x2959f4=null;}const _0x5e00ab=_0xf63b32['GtMYQ'](readProfileOverrides,process['cwd'](),_0x2ad912);let _0x1f4b9e=null,_0xe26321,_0x4927e9,_0x3f79d2,_0x6e5731,_0x2ff274=null,_0x541298;const _0x5da6ff=expandOverrides(_0x5e00ab);if(_0x2959f4){_0x1f4b9e=_0x2959f4;const _0x4b61d3=_0x2959f4['settings']??{},_0x3903aa=mergeCloudProfileSettings(_0x4b61d3,_0x5e00ab??undefined),_0x35a0af={..._0x2959f4,'settings':_0x3903aa},_0x46f682=process['env'][_0x4ed264(0x75)];if(_0x46f682){if(!existsSync(_0x46f682))throw new Error('RANGER_SESSION_STATE_PATH='+_0x46f682+_0x4ed264(0x9b));_0xe26321=_0x46f682,_0x4927e9=resolveEnvVars(_0x3903aa),_0x3f79d2=_0xf63b32[_0x4ed264(0x80)](Boolean,_0x4927e9[_0x4ed264(0x83)]),_0x2ff274={'baseUrl':_0xf63b32['bDkhi'](expandString,_0x4b61d3[_0x4ed264(0x81)]),'startPath':expandString(_0x4b61d3['startPath'])};}else{const _0xd0e308=await resolveCloudProfileSession(_0x35a0af);_0xe26321=_0xd0e308['authPath'],_0x4927e9=_0xf63b32['iSosS'](resolveEnvVars,_0x3903aa),_0x3f79d2=_0xf63b32[_0x4ed264(0x80)](Boolean,_0x4927e9[_0x4ed264(0x83)]),_0x2ff274={'baseUrl':expandString(_0x4b61d3[_0x4ed264(0x81)]),'startPath':expandString(_0x4b61d3[_0x4ed264(0xa3)])},_0x541298=_0xd0e308[_0x4ed264(0x88)]?.['domains']?.[0x0];}}else{if(!_0x3f94ea)throw new Error(_0x4ed264(0x90)+_0x2ad912+_0x4ed264(0x7f)+_0x2ad912);const _0x39cf55=await _0xf63b32['iSosS'](loadSettings,_0x2ad912);_0x4927e9=resolveEnvVars(_0x39cf55),_0x3f79d2=Boolean(_0x4927e9[_0x4ed264(0x83)]),_0x6e5731=_0x4927e9['baseUrl'];}const _0xa0810d=readUrlEnvVars(),_0x21acbc=_0xf63b32['bXeHl'](resolveProfileUrl,{'flagBaseUrl':_0x19c25a[_0x4ed264(0x81)],'flagStartPath':_0x19c25a[_0x4ed264(0xa3)],'envBaseUrl':_0xa0810d[_0x4ed264(0xa4)],'envStartPath':_0xa0810d[_0x4ed264(0x85)],'localSettingsBaseUrl':_0x6e5731,'projectOverrides':_0x5da6ff,'cloudSettings':_0x2ff274,'authEnvironmentDomain':_0x541298}),_0xd38de7=_0x21acbc[_0x4ed264(0xa2)]??_0x21acbc[_0x4ed264(0x81)];if(!_0xd38de7&&!_0x3f79d2)throw new Error(_0x4ed264(0x84)+_0x2ad912+_0x4ed264(0x91)+_0x2ad912+'\x20baseUrl\x20<url>');return{'activeProfile':_0x2ad912,'resolvedCloudProfile':_0x1f4b9e,'cloudAuthPath':_0xe26321,'resolvedSettings':_0x4927e9,'isCdpMode':_0x3f79d2,'url':_0xd38de7,'startPath':_0x21acbc[_0x4ed264(0xa3)]};}function expandString(_0x11b70a){if(typeof _0x11b70a!=='string')return _0x11b70a;return resolveEnvVars(_0x11b70a);}function expandOverrides(_0x4358fc){const _0xfd6d22=_0x1e30,_0xa6e4da={'LRuJt':function(_0x298623,_0x15667f){return _0x298623===_0x15667f;},'yOeEy':_0xfd6d22(0x9f),'LywdN':function(_0x50e4d1,_0x108f8a){return _0x50e4d1(_0x108f8a);},'QLnuH':function(_0x5ae7f9,_0x4d88ac){return _0x5ae7f9===_0x4d88ac;},'Axhjn':function(_0x2ff5a3,_0x5e3be0){return _0x2ff5a3(_0x5e3be0);}};if(!_0x4358fc)return _0x4358fc;const _0x1f40c8={..._0x4358fc};return _0xa6e4da['LRuJt'](typeof _0x1f40c8['baseUrl'],_0xa6e4da[_0xfd6d22(0x8e)])&&(_0x1f40c8['baseUrl']=_0xa6e4da['LywdN'](resolveEnvVars,_0x1f40c8['baseUrl'])),_0xa6e4da['QLnuH'](typeof _0x1f40c8[_0xfd6d22(0xa3)],_0xfd6d22(0x9f))&&(_0x1f40c8['startPath']=_0xa6e4da[_0xfd6d22(0x7e)](resolveEnvVars,_0x1f40c8['startPath'])),_0x1f40c8;}
@@ -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
+ function _0x27cc(_0x578956,_0x156dae){_0x578956=_0x578956-0x134;const _0x5c3bf3=_0x5c3b();let _0x27cc06=_0x5c3bf3[_0x578956];return _0x27cc06;}const _0x59c261=_0x27cc;(function(_0x43f174,_0x28b5e4){const _0x4d9e58=_0x27cc,_0x54dee8=_0x43f174();while(!![]){try{const _0x43caaa=parseInt(_0x4d9e58(0x13b))/0x1+-parseInt(_0x4d9e58(0x145))/0x2+parseInt(_0x4d9e58(0x13a))/0x3*(-parseInt(_0x4d9e58(0x13c))/0x4)+parseInt(_0x4d9e58(0x134))/0x5*(-parseInt(_0x4d9e58(0x147))/0x6)+-parseInt(_0x4d9e58(0x137))/0x7*(-parseInt(_0x4d9e58(0x13e))/0x8)+parseInt(_0x4d9e58(0x135))/0x9*(-parseInt(_0x4d9e58(0x148))/0xa)+-parseInt(_0x4d9e58(0x136))/0xb*(-parseInt(_0x4d9e58(0x144))/0xc);if(_0x43caaa===_0x28b5e4)break;else _0x54dee8['push'](_0x54dee8['shift']());}catch(_0x232c6a){_0x54dee8['push'](_0x54dee8['shift']());}}}(_0x5c3b,0x2d4f0));function firstDefined(..._0x28d54a){for(const _0x3bec8d of _0x28d54a){if(_0x3bec8d!==undefined&&_0x3bec8d!==null&&_0x3bec8d!=='')return _0x3bec8d;}return undefined;}function normalizeAuthEnvironmentDomain(_0x1f361c){if(!_0x1f361c)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x1f361c))return _0x1f361c;return'https://'+_0x1f361c;}export function resolveBaseUrl(_0x529f85){const _0x27794e=_0x27cc,_0x46abbc={'NoBVm':function(_0x53d862,_0x1b6fa9){return _0x53d862===_0x1b6fa9;},'AjFMJ':function(_0x5892de,_0x3ae2ac){return _0x5892de(_0x3ae2ac);}},_0x2195b8=_0x529f85[_0x27794e(0x149)],_0x15c98f=!!_0x2195b8&&_0x27794e(0x13f)in _0x2195b8,_0x2ff870=_0x2195b8?.[_0x27794e(0x13f)],_0x330480=!(_0x15c98f&&_0x46abbc['NoBVm'](_0x2ff870,null));return firstDefined(_0x529f85[_0x27794e(0x140)],_0x529f85['envBaseUrl'],_0x529f85['localSettingsBaseUrl'],typeof _0x2ff870==='string'?_0x2ff870:undefined,_0x330480?_0x529f85['cloudSettings']?.[_0x27794e(0x13f)]:undefined,_0x330480?_0x46abbc['AjFMJ'](normalizeAuthEnvironmentDomain,_0x529f85['authEnvironmentDomain']):undefined);}export function resolveStartPath(_0x56b33d){const _0x5ae858=_0x27cc,_0x451223={'RWhaN':_0x5ae858(0x143),'pNvRU':function(_0x3d38f1,_0x2d4c4a,_0x3a64e2,_0x3dbe04,_0x3c3b98){return _0x3d38f1(_0x2d4c4a,_0x3a64e2,_0x3dbe04,_0x3c3b98);}},_0x4c0b00=_0x56b33d['projectOverrides'],_0x230bec=!!_0x4c0b00&&_0x451223['RWhaN']in _0x4c0b00,_0x39bb96=_0x4c0b00?.[_0x5ae858(0x143)],_0x36e124=!(_0x230bec&&_0x39bb96===null);return _0x451223['pNvRU'](firstDefined,_0x56b33d[_0x5ae858(0x142)],_0x56b33d['envStartPath'],typeof _0x39bb96===_0x5ae858(0x13d)?_0x39bb96:undefined,_0x36e124?_0x56b33d[_0x5ae858(0x139)]?.['startPath']:undefined);}export function joinBaseAndPath(_0x4c5c97,_0x4c5e1e){const _0x3ccb38=_0x27cc,_0x4fb6fe={'RTudL':function(_0x3c193d,_0x50a72c){return _0x3c193d+_0x50a72c;},'SFbzB':function(_0x105b37,_0x970b05){return _0x105b37+_0x970b05;}};if(!_0x4c5c97)return undefined;if(!_0x4c5e1e)return _0x4c5c97;const _0x5812ef=_0x4c5c97[_0x3ccb38(0x141)]('/')?_0x4c5c97['slice'](0x0,-0x1):_0x4c5c97,_0x1bac5a=_0x4c5e1e['startsWith']('/')?_0x4c5e1e:_0x4fb6fe['RTudL']('/',_0x4c5e1e);return _0x4fb6fe['SFbzB'](_0x5812ef,_0x1bac5a);}export function resolveProfileUrl(_0x3bd3c8){const _0x4743b6={'hFeLz':function(_0x2e399e,_0x2913b7){return _0x2e399e(_0x2913b7);}},_0x34ebcd=resolveBaseUrl(_0x3bd3c8),_0x593868=_0x4743b6['hFeLz'](resolveStartPath,_0x3bd3c8);return{'baseUrl':_0x34ebcd,'startPath':_0x593868,'url':joinBaseAndPath(_0x34ebcd,_0x593868)};}function _0x5c3b(){const _0x24e389=['baseUrl','flagBaseUrl','endsWith','flagStartPath','startPath','12LLiUbj','314810mIiLGF','env','2209554lBIbme','10SsfrIU','projectOverrides','5MUKmui','1025253QSFKsU','6164741kXbIJq','63OWfWce','RANGER_START_PATH','cloudSettings','450543iwsiXP','50262zJcRFc','4dOoySp','string','324136Pjffre'];_0x5c3b=function(){return _0x24e389;};return _0x5c3b();}export function readUrlEnvVars(_0x4ad9fe=process[_0x59c261(0x146)]){const _0x49c738=_0x59c261;return{'envBaseUrl':_0x4ad9fe['RANGER_BASE_URL'],'envStartPath':_0x4ad9fe[_0x49c738(0x138)]};}
@@ -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 _0x2ed1(){const _0x43a7fc=['error','label','chhzp','),\x20retrying\x20in\x20','66mIecEd','ms...','2590990SLvIRT','baseDelayMs','182352QBAtQP','3196880dfJRHM','SqAsJ','5860Dnyqzd','2709243JNpIUI','87mDxLGy','2060247qqGghY','73412ayGzwp'];_0x2ed1=function(){return _0x43a7fc;};return _0x2ed1();}function _0x5a37(_0x5b25a8,_0x80d7c1){_0x5b25a8=_0x5b25a8-0x1b5;const _0x2ed1c7=_0x2ed1();let _0x5a3798=_0x2ed1c7[_0x5b25a8];return _0x5a3798;}(function(_0x3158ab,_0x4216d7){const _0x226320=_0x5a37,_0x574e7b=_0x3158ab();while(!![]){try{const _0x16858e=parseInt(_0x226320(0x1b8))/0x1*(parseInt(_0x226320(0x1c1))/0x2)+-parseInt(_0x226320(0x1ba))/0x3*(parseInt(_0x226320(0x1bc))/0x4)+parseInt(_0x226320(0x1c3))/0x5+parseInt(_0x226320(0x1b5))/0x6+-parseInt(_0x226320(0x1bb))/0x7+parseInt(_0x226320(0x1b6))/0x8+parseInt(_0x226320(0x1b9))/0x9;if(_0x16858e===_0x4216d7)break;else _0x574e7b['push'](_0x574e7b['shift']());}catch(_0x3a4886){_0x574e7b['push'](_0x574e7b['shift']());}}}(_0x2ed1,0x96671));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x425cf7,_0x496f93){const _0x11085a=_0x5a37,_0x480444={'qnrIj':function(_0x2518c2,_0x3cdc44){return _0x2518c2<=_0x3cdc44;},'chhzp':function(_0x40622c,_0x587cca){return _0x40622c instanceof _0x587cca;},'TCTlg':function(_0x18161a,_0x45e32a){return _0x18161a*_0x45e32a;},'SqAsJ':function(_0x180f29,_0x17503e){return _0x180f29+_0x17503e;}},_0x15843b=_0x496f93?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x292275=_0x496f93?.[_0x11085a(0x1c4)]??DEFAULT_BASE_DELAY_MS;let _0x5d18f5;for(let _0x6e5f14=0x0;_0x480444['qnrIj'](_0x6e5f14,_0x15843b);_0x6e5f14++){try{return await _0x425cf7();}catch(_0xecb41){_0x5d18f5=_0x480444[_0x11085a(0x1bf)](_0xecb41,Error)?_0xecb41:new Error(String(_0xecb41));if(_0x6e5f14<_0x15843b){const _0x220386=_0x480444['TCTlg'](_0x292275,Math['pow'](0x2,_0x6e5f14));_0x496f93?.[_0x11085a(0x1be)]&&console[_0x11085a(0x1bd)](_0x496f93['label']+'\x20failed\x20(attempt\x20'+_0x480444[_0x11085a(0x1b7)](_0x6e5f14,0x1)+'/'+(_0x15843b+0x1)+_0x11085a(0x1c0)+_0x220386+_0x11085a(0x1c2)),await new Promise(_0x5b1b0f=>setTimeout(_0x5b1b0f,_0x220386));}}}throw _0x5d18f5;}
@@ -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 _0x42bec1=_0x2e15;(function(_0x5af90a,_0x41d0c4){const _0x2c8bbe=_0x2e15,_0x486fe9=_0x5af90a();while(!![]){try{const _0x4ee82e=parseInt(_0x2c8bbe(0x1bc))/0x1*(parseInt(_0x2c8bbe(0x1c8))/0x2)+parseInt(_0x2c8bbe(0x1c2))/0x3*(parseInt(_0x2c8bbe(0x1c1))/0x4)+-parseInt(_0x2c8bbe(0x1d2))/0x5*(parseInt(_0x2c8bbe(0x1b1))/0x6)+parseInt(_0x2c8bbe(0x1c6))/0x7*(parseInt(_0x2c8bbe(0x1b4))/0x8)+parseInt(_0x2c8bbe(0x1c3))/0x9*(parseInt(_0x2c8bbe(0x1ca))/0xa)+-parseInt(_0x2c8bbe(0x1ad))/0xb*(-parseInt(_0x2c8bbe(0x1bf))/0xc)+parseInt(_0x2c8bbe(0x1b2))/0xd*(-parseInt(_0x2c8bbe(0x1af))/0xe);if(_0x4ee82e===_0x41d0c4)break;else _0x486fe9['push'](_0x486fe9['shift']());}catch(_0x2fc15b){_0x486fe9['push'](_0x486fe9['shift']());}}}(_0x545c,0xe5f87));import*as _0x3fab2f from'fs';import*as _0x74ac98 from'path';import*as _0x573481 from'os';import{execSync}from'child_process';function _0x2e15(_0x3cc439,_0x467ce6){_0x3cc439=_0x3cc439-0x1ac;const _0x545c66=_0x545c();let _0x2e154f=_0x545c66[_0x3cc439];return _0x2e154f;}const CACHE_FILE=_0x74ac98['join'](_0x573481[_0x42bec1(0x1df)](),_0x42bec1(0x1b5),'.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function _0x545c(){const _0x2c96ab=['writeFileSync','NSsNf','mALtx','main','clear','homedir','utf-8','aMxwI','16476823Ymvfmz','pxwMV','5369266sokdtN','prompted','24ZnBDIJ','78XXgoOX','readFileSync','4101744GjGQwo','.claude','enabled','HEAD','branches','IfwFN','fTexF','xfnKm','1688853VtKOTs','ntRVL','eYDEu','12JxCVBI','FIjUD','198840FfxdXW','33vwQyQd','10881akegio','mkdirSync','TwMyY','7JlPIqs','existsSync','2FKKekK','lastPlanReminderAt','4310gkwpHw','now','uRXnc','master','ldQJT','registeredAt','TNedk','git\x20rev-parse\x20--abbrev-ref\x20HEAD','1905350wERCHf','YMPse','sessions','EfwEB','GpHVc','currentBranch','featureId','Owvqw'];_0x545c=function(){return _0x2c96ab;};return _0x545c();}function loadCache(){const _0x551b43=_0x42bec1,_0x57a2d0={'ldQJT':function(_0xfa392a){return _0xfa392a();}};try{if(_0x3fab2f[_0x551b43(0x1c7)](CACHE_FILE)){const _0x1b02e6=JSON['parse'](_0x3fab2f[_0x551b43(0x1b3)](CACHE_FILE,_0x551b43(0x1e0)));return{'version':0x3,'sessions':_0x1b02e6[_0x551b43(0x1d4)]||{},'branches':_0x1b02e6['branches']||{},'lastEnabledSessionClearedAt':_0x1b02e6['lastEnabledSessionClearedAt']};}}catch{}return _0x57a2d0[_0x551b43(0x1ce)](createEmptyCache);}function saveCache(_0x202bb6){const _0x4ce810=_0x42bec1;try{const _0x3dba0b=_0x74ac98['dirname'](CACHE_FILE);!_0x3fab2f[_0x4ce810(0x1c7)](_0x3dba0b)&&_0x3fab2f[_0x4ce810(0x1c4)](_0x3dba0b,{'recursive':!![]}),_0x3fab2f[_0x4ce810(0x1da)](CACHE_FILE,JSON['stringify'](_0x202bb6,null,0x2));}catch{}}export function getCurrentBranch(){const _0x6b48d2=_0x42bec1,_0x2eae68={'NSsNf':function(_0x15fa74,_0x5cbe2c,_0x4c8504){return _0x15fa74(_0x5cbe2c,_0x4c8504);},'GZRoS':_0x6b48d2(0x1d1),'mALtx':'pipe','RQfWq':function(_0x5b501f,_0x163e24){return _0x5b501f===_0x163e24;}};try{const _0x49f9b3=_0x2eae68[_0x6b48d2(0x1db)](execSync,_0x2eae68['GZRoS'],{'encoding':_0x6b48d2(0x1e0),'stdio':[_0x2eae68[_0x6b48d2(0x1dc)],_0x2eae68['mALtx'],_0x2eae68[_0x6b48d2(0x1dc)]]})['trim']();if(!_0x49f9b3||_0x2eae68['RQfWq'](_0x49f9b3,_0x6b48d2(0x1b7)))return null;return _0x49f9b3;}catch{return null;}}export function enableBranch(_0xedc23f){const _0x2a4939=loadCache();_0x2a4939['branches'][_0xedc23f]=!![],saveCache(_0x2a4939);}export function disableBranch(_0x43c2b0){const _0x237b6b=loadCache();delete _0x237b6b['branches'][_0x43c2b0],saveCache(_0x237b6b);}export function isBranchEnabled(_0x1fd3d0){const _0x340151={'CcGBg':function(_0x4844eb,_0x4033af){return _0x4844eb===_0x4033af;}},_0x17fa5e=loadCache();return _0x340151['CcGBg'](_0x17fa5e['branches'][_0x1fd3d0],!![]);}function getOrCreateSession(_0x1bcb3c,_0x12b765){const _0x49d4d4=_0x42bec1;return!_0x1bcb3c[_0x49d4d4(0x1d4)][_0x12b765]&&(_0x1bcb3c['sessions'][_0x12b765]={}),_0x1bcb3c[_0x49d4d4(0x1d4)][_0x12b765];}export function enableSession(_0x519b41){const _0x12c054=_0x42bec1,_0x3199c2={'uRXnc':function(_0x5bf623,_0x5218d5,_0x4f80d5){return _0x5bf623(_0x5218d5,_0x4f80d5);},'EfwEB':function(_0xeaa42d){return _0xeaa42d();},'sGPoR':function(_0x268afd,_0x3c29e1){return _0x268afd!==_0x3c29e1;},'dmaRu':_0x12c054(0x1dd)},_0x261064=loadCache(),_0x15c746=_0x3199c2[_0x12c054(0x1cc)](getOrCreateSession,_0x261064,_0x519b41);_0x15c746['enabled']=!![];const _0x1ec571=_0x3199c2[_0x12c054(0x1d5)](getCurrentBranch);_0x1ec571&&_0x3199c2['sGPoR'](_0x1ec571,_0x3199c2['dmaRu'])&&_0x1ec571!==_0x12c054(0x1cd)&&(_0x261064[_0x12c054(0x1b8)][_0x1ec571]=!![],_0x15c746[_0x12c054(0x1d7)]=_0x1ec571),saveCache(_0x261064);}export function isSessionEnabled(_0x4911a0){const _0x1cab02=_0x42bec1,_0x230771={'aMxwI':function(_0x45d123){return _0x45d123();},'oBcTw':function(_0x23e7c3,_0x59d78b){return _0x23e7c3===_0x59d78b;},'MYFNU':'master','zMMdB':function(_0xe845,_0x3b6a92){return _0xe845===_0x3b6a92;},'viNWe':function(_0x339258,_0x3cca09){return _0x339258||_0x3cca09;}},_0x2eec77=_0x230771[_0x1cab02(0x1ac)](loadCache),_0x4d18cc=getCurrentBranch();if(!_0x4d18cc||_0x4d18cc==='main'||_0x230771['oBcTw'](_0x4d18cc,_0x230771['MYFNU']))return _0x230771['oBcTw'](_0x2eec77['sessions'][_0x4911a0]?.['enabled'],!![]);const _0x25e955=_0x230771['oBcTw'](_0x2eec77['branches'][_0x4d18cc],!![]),_0x1ecc35=_0x230771['zMMdB'](_0x2eec77[_0x1cab02(0x1d4)][_0x4911a0]?.[_0x1cab02(0x1b6)],!![]);return _0x230771['viNWe'](_0x25e955,_0x1ecc35);}export function disableSession(_0x24b1d3){const _0x382d70=_0x42bec1,_0x3676bc={'TNedk':function(_0x5f9c79,_0x3c92f4,_0x555352){return _0x5f9c79(_0x3c92f4,_0x555352);},'uopGD':function(_0x234858,_0x5356e1){return _0x234858(_0x5356e1);}},_0x39e50b=loadCache(),_0x384045=_0x3676bc[_0x382d70(0x1d0)](getOrCreateSession,_0x39e50b,_0x24b1d3);_0x384045[_0x382d70(0x1b6)]=![],_0x3676bc['uopGD'](saveCache,_0x39e50b);}export function updateBranchTracking(_0x357c48){const _0x71f9a1=_0x42bec1,_0x2a2461={'TltUL':function(_0x255ac4){return _0x255ac4();},'xfFIB':_0x71f9a1(0x1dd),'GpHVc':_0x71f9a1(0x1cd),'PMNkc':function(_0x3d3ac0,_0x2c9a01){return _0x3d3ac0!==_0x2c9a01;},'TDVhc':function(_0x5ecc12,_0x648811){return _0x5ecc12(_0x648811);}},_0x105178=_0x2a2461['TltUL'](loadCache),_0x54ccd8=_0x105178['sessions'][_0x357c48];if(!_0x54ccd8?.['enabled'])return;const _0x2200d7=getCurrentBranch();if(!_0x2200d7||_0x2200d7===_0x2a2461['xfFIB']||_0x2200d7===_0x2a2461[_0x71f9a1(0x1d6)])return;_0x2a2461['PMNkc'](_0x54ccd8[_0x71f9a1(0x1d7)],_0x2200d7)&&(_0x105178[_0x71f9a1(0x1b8)][_0x2200d7]=!![],_0x54ccd8[_0x71f9a1(0x1d7)]=_0x2200d7,_0x2a2461['TDVhc'](saveCache,_0x105178));}export function initBranchTracking(_0x22474d){const _0x3d7066=_0x42bec1,_0x455773={'ghnfq':function(_0x135732){return _0x135732();},'koTTl':function(_0x61acdd){return _0x61acdd();},'mvfVt':_0x3d7066(0x1dd),'GRCSw':function(_0x2b08fa,_0x294c5e){return _0x2b08fa===_0x294c5e;},'fTexF':function(_0x44443e,_0x300d32){return _0x44443e(_0x300d32);}},_0x3eec06=_0x455773['ghnfq'](loadCache),_0x3740f9=_0x455773['koTTl'](getCurrentBranch);if(!_0x3740f9||_0x3740f9===_0x455773['mvfVt']||_0x455773['GRCSw'](_0x3740f9,'master'))return;if(_0x3eec06[_0x3d7066(0x1b8)][_0x3740f9]===!![]){const _0x13310b=getOrCreateSession(_0x3eec06,_0x22474d);_0x13310b['enabled']=!![],_0x13310b[_0x3d7066(0x1d7)]=_0x3740f9,_0x455773[_0x3d7066(0x1ba)](saveCache,_0x3eec06);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x443a66){const _0x581d6c=_0x42bec1,_0x31e0c7={'pxwMV':function(_0x5c226f){return _0x5c226f();},'xfnKm':function(_0x4b3446,_0x51c3c0){return _0x4b3446(_0x51c3c0);}},_0x2cf938=_0x31e0c7[_0x581d6c(0x1ae)](loadCache),_0xaefde2=_0x2cf938[_0x581d6c(0x1d4)][_0x443a66];_0xaefde2?.['enabled']&&(_0x2cf938['lastEnabledSessionClearedAt']=Date['now'](),_0x31e0c7[_0x581d6c(0x1bb)](saveCache,_0x2cf938));}export function shouldAutoEnableAfterClear(_0x503bdf){const _0x5e0bf7=_0x42bec1,_0x133b2f={'TwMyY':_0x5e0bf7(0x1de),'Owvqw':function(_0x18935b,_0x1e02ab){return _0x18935b-_0x1e02ab;},'oOnMr':function(_0x24c121,_0x5dc9c8){return _0x24c121<=_0x5dc9c8;}};if(_0x503bdf!==_0x133b2f[_0x5e0bf7(0x1c5)])return![];const _0x46c949=loadCache(),_0x53b9c8=_0x46c949['lastEnabledSessionClearedAt'];if(!_0x53b9c8)return![];const _0x543e4b=_0x133b2f[_0x5e0bf7(0x1d9)](Date['now'](),_0x53b9c8);return _0x133b2f['oOnMr'](_0x543e4b,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x2cb3ce){const _0x1aa8e0=_0x42bec1,_0x410d6d={'eYDEu':function(_0x4a73ef,_0x505898,_0xaef24){return _0x4a73ef(_0x505898,_0xaef24);},'rXxMm':function(_0x301ed6){return _0x301ed6();},'lluTn':function(_0x5e7514,_0x4a654a){return _0x5e7514!==_0x4a654a;},'mbekH':'master','uAbZc':function(_0x1dfc8f,_0x314fe0){return _0x1dfc8f(_0x314fe0);}},_0xfe57ce=loadCache(),_0x21ea2f=_0x410d6d[_0x1aa8e0(0x1be)](getOrCreateSession,_0xfe57ce,_0x2cb3ce);_0x21ea2f['enabled']=!![];const _0x5f5b44=_0x410d6d['rXxMm'](getCurrentBranch);_0x5f5b44&&_0x410d6d['lluTn'](_0x5f5b44,'main')&&_0x5f5b44!==_0x410d6d['mbekH']&&(_0x21ea2f['currentBranch']=_0x5f5b44),delete _0xfe57ce['lastEnabledSessionClearedAt'],_0x410d6d['uAbZc'](saveCache,_0xfe57ce);}export function registerSession(_0xd80971,_0x279966){const _0x2a547e=_0x42bec1,_0x199f8d={'FIjUD':function(_0x26e975,_0x1f77aa){return _0x26e975(_0x1f77aa);}},_0x2d640f=loadCache(),_0x43a0b8=getOrCreateSession(_0x2d640f,_0xd80971);_0x43a0b8[_0x2a547e(0x1d8)]=_0x279966,_0x43a0b8[_0x2a547e(0x1cf)]=new Date()['toISOString'](),_0x199f8d[_0x2a547e(0x1c0)](saveCache,_0x2d640f);}export function getSessionEntry(_0x5343cb){const _0xb8e2e5=_0x42bec1,_0x3422b2={'YMPse':function(_0x410908){return _0x410908();}},_0x2b0e38=_0x3422b2[_0xb8e2e5(0x1d3)](loadCache),_0x1c1b7e=_0x2b0e38['sessions'][_0x5343cb];if(_0x1c1b7e?.['featureId']&&_0x1c1b7e?.[_0xb8e2e5(0x1cf)])return{'featureId':_0x1c1b7e['featureId'],'registeredAt':_0x1c1b7e[_0xb8e2e5(0x1cf)]};return null;}export function unregisterSession(_0xaed9a0){const _0x35cf7e=_0x42bec1,_0x2b772c={'ApXKh':function(_0x405306,_0x16371d){return _0x405306(_0x16371d);}},_0x2feeb8=loadCache(),_0x588230=_0x2feeb8['sessions'][_0xaed9a0];_0x588230&&(delete _0x588230[_0x35cf7e(0x1d8)],delete _0x588230['registeredAt'],_0x2b772c['ApXKh'](saveCache,_0x2feeb8));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x513261){const _0x4a2110=_0x42bec1,_0x45adb7={'QIGbi':function(_0x2158b1,_0x268559){return _0x2158b1>=_0x268559;}},_0x2f5455=loadCache(),_0x308088=getOrCreateSession(_0x2f5455,_0x513261),_0x29e4f7=_0x308088[_0x4a2110(0x1c9)]||0x0,_0x3cec71=Date[_0x4a2110(0x1cb)]();if(_0x45adb7['QIGbi'](_0x3cec71-_0x29e4f7,PLAN_REMINDER_INTERVAL_MS))return _0x308088[_0x4a2110(0x1c9)]=_0x3cec71,saveCache(_0x2f5455),!![];return![];}export function shouldShowStopReminder(_0x40ef7a){const _0xb202db=_0x42bec1,_0x1b7126={'wIFPJ':function(_0x59d4eb,_0x1bb2be,_0x9e30b8){return _0x59d4eb(_0x1bb2be,_0x9e30b8);},'IfwFN':function(_0x2767f8,_0x126d52){return _0x2767f8(_0x126d52);}},_0x22eeca=loadCache(),_0x3a6684=_0x1b7126['wIFPJ'](getOrCreateSession,_0x22eeca,_0x40ef7a),_0x57f20f=_0x3a6684['lastStopReminderAt']||0x0,_0x4c9d21=Date[_0xb202db(0x1cb)]();if(_0x4c9d21-_0x57f20f>=STOP_REMINDER_INTERVAL_MS)return _0x3a6684['lastStopReminderAt']=_0x4c9d21,_0x1b7126[_0xb202db(0x1b9)](saveCache,_0x22eeca),!![];return![];}export function hasSessionBeenPrompted(_0x16772e){const _0x1f4d0e=_0x42bec1,_0x11f7b8={'ntRVL':function(_0x4d8981){return _0x4d8981();},'gEeuT':function(_0x2b3fd6,_0x4dd1f8){return _0x2b3fd6===_0x4dd1f8;}},_0x330326=_0x11f7b8[_0x1f4d0e(0x1bd)](loadCache);return _0x11f7b8['gEeuT'](_0x330326['sessions'][_0x16772e]?.[_0x1f4d0e(0x1b0)],!![]);}export function markSessionPrompted(_0x3be67d){const _0x247f1d=_0x42bec1,_0x55f287=loadCache(),_0x54df64=getOrCreateSession(_0x55f287,_0x3be67d);_0x54df64[_0x247f1d(0x1b0)]=!![],saveCache(_0x55f287);}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
+ (function(_0x152023,_0x2e9d91){const _0xe94c7d=_0x36b9,_0x1ec564=_0x152023();while(!![]){try{const _0x5c1ded=parseInt(_0xe94c7d(0x1e2))/0x1*(parseInt(_0xe94c7d(0x1ef))/0x2)+parseInt(_0xe94c7d(0x1f7))/0x3+-parseInt(_0xe94c7d(0x1de))/0x4*(parseInt(_0xe94c7d(0x208))/0x5)+parseInt(_0xe94c7d(0x23e))/0x6+-parseInt(_0xe94c7d(0x216))/0x7*(-parseInt(_0xe94c7d(0x239))/0x8)+parseInt(_0xe94c7d(0x21e))/0x9+-parseInt(_0xe94c7d(0x1dd))/0xa;if(_0x5c1ded===_0x2e9d91)break;else _0x1ec564['push'](_0x1ec564['shift']());}catch(_0x153d09){_0x1ec564['push'](_0x1ec564['shift']());}}}(_0x4405,0xaa74c));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(_0x345ee3,_0xa42ab8){const _0x5c7e53=_0x36b9,_0x3a808c={'vmwCN':function(_0x5202e7,_0x1039e2,_0x2ab592){return _0x5202e7(_0x1039e2,_0x2ab592);},'uBoPY':function(_0x1deb48,_0x14f693){return _0x1deb48!==_0x14f693;},'lxiwB':function(_0x6f52cc,_0x3aac65){return _0x6f52cc(_0x3aac65);}},_0x550de5=join(_0xa42ab8,'ci',_0x345ee3),_0x1697e2=join(_0xa42ab8,_0x5c7e53(0x200),_0x345ee3),_0x513b05=_0x3a808c['vmwCN'](join,_0xa42ab8,_0x345ee3),_0x160dfc=join(_0xa42ab8,_0x5c7e53(0x200)),_0x436f29=join(_0xa42ab8,'ci');if(existsSync(_0x550de5))return _0x550de5;if(existsSync(_0x1697e2))return _0x1697e2;if(existsSync(_0x513b05)&&(_0x3a808c[_0x5c7e53(0x1df)](_0x513b05,_0x160dfc)&&_0x513b05!==_0x436f29?!![]:_0x3a808c[_0x5c7e53(0x222)](hasLegacyProfileFiles,_0x513b05)))return _0x513b05;return null;}export function getEnvDir(_0x51f740,_0x1ade8f={}){const _0x25ce01=_0x36b9,_0x45624b={'foffH':function(_0x123c13){return _0x123c13();},'XocZZ':function(_0x15ebb9,_0x3a3e31){return _0x15ebb9(_0x3a3e31);},'fyQxH':function(_0x5d721e){return _0x5d721e();},'YKGwa':function(_0x2c6acc,_0x3a901f){return _0x2c6acc!==_0x3a901f;},'IakSC':function(_0x44f654,_0x89ab95,_0xd8a7a1){return _0x44f654(_0x89ab95,_0xd8a7a1);},'oPiFm':function(_0x4d6e2e,_0x13a438,_0x42c7f4,_0x3857da){return _0x4d6e2e(_0x13a438,_0x42c7f4,_0x3857da);},'AokMT':function(_0x34b44f,_0x45c801,_0x3c6c6a){return _0x34b44f(_0x45c801,_0x3c6c6a);}},_0x1e0aa3=_0x45624b['foffH'](getRangerDir),_0x1d690c=findEnvInRoot(_0x51f740,_0x1e0aa3);if(_0x1d690c){if(_0x1ade8f['forWrite']&&_0x45624b[_0x25ce01(0x234)](isLegacyEnvPath,_0x1d690c))throw legacyWriteError(_0x51f740,_0x1d690c);return _0x1d690c;}const _0x1315c2=_0x45624b['fyQxH'](getRangerHomeDir);if(_0x45624b['YKGwa'](_0x1315c2,_0x1e0aa3)){const _0x459277=_0x45624b[_0x25ce01(0x236)](findEnvInRoot,_0x51f740,_0x1315c2);if(_0x459277){if(_0x1ade8f[_0x25ce01(0x1fb)]&&isLegacyEnvPath(_0x459277))throw legacyWriteError(_0x51f740,_0x459277);return _0x459277;}}const _0x1e65a4=_0x45624b['oPiFm'](join,_0x1315c2,'local',_0x51f740);if(_0x1ade8f[_0x25ce01(0x1fb)])throw _0x45624b[_0x25ce01(0x1fc)](legacyWriteError,_0x51f740,_0x1e65a4);return _0x1e65a4;}function isLegacyEnvPath(_0x48f691){const _0x122176=_0x36b9,_0x1429f0={'pmATJ':function(_0x42ddfd,_0x15b51f){return _0x42ddfd+_0x15b51f;}},_0x36bdc4=getRangerDir(),_0x4c86a0=getRangerHomeDir();for(const _0x222dcf of new Set([_0x36bdc4,_0x4c86a0])){const _0x20be35=_0x222dcf['endsWith']('/')?_0x222dcf:_0x1429f0[_0x122176(0x235)](_0x222dcf,'/');if(_0x48f691===_0x222dcf||_0x48f691['startsWith'](_0x20be35))return!![];}return![];}function legacyWriteError(_0x17b923,_0x5b3012){const _0x4ec022=_0x36b9,_0x1037be={'uRGQr':function(_0x1ae2fb,_0x8be7eb){return _0x1ae2fb+_0x8be7eb;},'gMFPO':function(_0x207f83,_0x146e85){return _0x207f83+_0x146e85;}};return new Error(_0x1037be[_0x4ec022(0x227)](_0x1037be['gMFPO'](_0x4ec022(0x1f5)+_0x17b923+'\x22\x20to\x20legacy\x20path\x20'+_0x5b3012+'.\x0a','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a'),'\x20\x20ranger\x20profile\x20add\x20<name>\x0a')+'See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.');}export function findExistingEnv(_0x23a2cc,_0x583043){const _0x3b6546=_0x36b9,_0x3dc448={'xBFab':function(_0xa80904){return _0xa80904();},'dvFPw':_0x3b6546(0x200),'Xtqvk':_0x3b6546(0x1fa),'ktxxo':function(_0x576d17,_0x3f48a9,_0x297ce0){return _0x576d17(_0x3f48a9,_0x297ce0);},'GdZFi':function(_0x24af12,_0x148c4a){return _0x24af12(_0x148c4a);},'IBjia':function(_0x453d3b,_0x4d249d){return _0x453d3b===_0x4d249d;},'WrPJq':function(_0x2d8764,_0x341a4b){return _0x2d8764===_0x341a4b;},'opxIg':function(_0x15e480,_0x7ff871){return _0x15e480===_0x7ff871;}},_0x4bde6a=_0x583043?.[_0x3b6546(0x1e7)],_0x5ef95c=_0x4bde6a?[_0x4bde6a]:[_0x3dc448['xBFab'](getRangerDir),getRangerHomeDir()][_0x3b6546(0x202)]((_0x51c41f,_0x2ad4c5,_0x2f0b33)=>_0x2f0b33['indexOf'](_0x51c41f)===_0x2ad4c5),_0x296b32=_0x583043?.[_0x3b6546(0x1d5)]??['ci',_0x3dc448[_0x3b6546(0x225)],_0x3dc448['Xtqvk']];for(const _0x4c3983 of _0x5ef95c){const _0x5b559d=_0x3dc448[_0x3b6546(0x1ff)](join,_0x4c3983,'local'),_0x51207a=join(_0x4c3983,'ci'),_0x264751=[{'location':'ci','path':join(_0x4c3983,'ci',_0x23a2cc)},{'location':_0x3dc448[_0x3b6546(0x225)],'path':join(_0x4c3983,'local',_0x23a2cc)},{'location':_0x3dc448['Xtqvk'],'path':join(_0x4c3983,_0x23a2cc)}];for(const _0x21ca38 of _0x264751){if(_0x296b32[_0x3b6546(0x201)](_0x21ca38['location'])&&_0x3dc448[_0x3b6546(0x22b)](existsSync,_0x21ca38['path'])){if(_0x3dc448['IBjia'](_0x21ca38['location'],_0x3b6546(0x1fa))&&(_0x3dc448[_0x3b6546(0x240)](_0x21ca38['path'],_0x5b559d)||_0x3dc448[_0x3b6546(0x1f8)](_0x21ca38[_0x3b6546(0x1da)],_0x51207a))&&!hasLegacyProfileFiles(_0x21ca38['path']))continue;return{'path':_0x21ca38[_0x3b6546(0x1da)],'location':_0x21ca38['location']};}}}return null;}function hasLegacyProfileFiles(_0x1cd172){const _0x3212a3=_0x36b9,_0x58ed6c={'YTRqt':function(_0x473c27,_0x4f6670,_0x5abf74){return _0x473c27(_0x4f6670,_0x5abf74);},'jjWcQ':function(_0x2b08bb,_0xc164ad){return _0x2b08bb(_0xc164ad);},'mWtYD':function(_0x523869,_0x561e78){return _0x523869(_0x561e78);},'rXSZz':'auth.json.enc'};return existsSync(_0x58ed6c['YTRqt'](join,_0x1cd172,_0x3212a3(0x23b)))||_0x58ed6c['jjWcQ'](existsSync,join(_0x1cd172,_0x3212a3(0x1dc)))||_0x58ed6c['mWtYD'](existsSync,_0x58ed6c[_0x3212a3(0x20a)](join,_0x1cd172,_0x58ed6c[_0x3212a3(0x23a)]));}function _0x36b9(_0x3ee253,_0x4c1e22){_0x3ee253=_0x3ee253-0x1d5;const _0x440562=_0x4405();let _0x36b9f0=_0x440562[_0x3ee253];return _0x36b9f0;}export function isEnvCi(_0xee9fc1){const _0x224f4b=_0x36b9,_0x4a3ea6={'XpPOV':function(_0x2ba48e,_0x5e9d43){return _0x2ba48e(_0x5e9d43);},'xPIVP':function(_0x13f22e){return _0x13f22e();},'lzquH':function(_0x53c697,_0x4568a8,_0x250516,_0x151f49){return _0x53c697(_0x4568a8,_0x250516,_0x151f49);}};if(_0x4a3ea6[_0x224f4b(0x217)](existsSync,join(getRangerDir(),'ci',_0xee9fc1)))return!![];const _0x3677a0=_0x4a3ea6['xPIVP'](getRangerHomeDir);if(_0x3677a0!==getRangerDir()&&_0x4a3ea6[_0x224f4b(0x217)](existsSync,_0x4a3ea6['lzquH'](join,_0x3677a0,'ci',_0xee9fc1)))return!![];return![];}export async function cleanupTempFiles(_0x1e5aa7){const _0x2b87ee=_0x36b9,_0xa8cfb4={'bAXkq':_0x2b87ee(0x224)},_0x2982b8=[_0x1e5aa7[_0x2b87ee(0x221)],_0x1e5aa7[_0x2b87ee(0x22f)]]['filter'](Boolean);await Promise['all'](_0x2982b8['map'](_0x4906c0=>unlink(_0x4906c0)[_0x2b87ee(0x20b)](_0x2c1b88=>{const _0x43e0e9=_0x2b87ee;_0x2c1b88[_0x43e0e9(0x21c)]!==_0xa8cfb4['bAXkq']&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x4906c0+':',_0x2c1b88[_0x43e0e9(0x242)]);})));}export function getSettingsPath(_0x4a22b3){const _0x3409f0=_0x36b9,_0xfd3184={'wbzII':function(_0x5d25e2,_0x12fccd,_0x443bb4){return _0x5d25e2(_0x12fccd,_0x443bb4);},'oFPXv':'settings.json'};return _0xfd3184['wbzII'](join,getEnvDir(_0x4a22b3),_0xfd3184[_0x3409f0(0x203)]);}function _0x4405(){const _0x41d39f=['XocZZ','pmATJ','IakSC','zYJiy','auth.json.enc','5792fJJqED','rXSZz','settings.json','aeYIP','userAgent','5590320AtmdNQ','FHSFs','WrPJq','QNeON','message','length','locations','kQbbG','browser','repeat','pdf','path','XigNi','auth.json','26945650YjEevt','3418028OJFzmh','uBoPY','\x20is\x20not\x20set','entries','45303zpksgp','ERsZZ','contextOptions','RGPaE','vision','rangerDir','Environment\x20variable\x20','clipboard-read','xXcvO','--disable-setuid-sandbox','RigRh','cdpEndpoint','string','4nHgDoB','args','object','sessions','headless','sHkMP','Refusing\x20to\x20write\x20profile\x20\x22','now','2916321vYuDdS','opxIg','push','legacy','forWrite','AokMT','vZdkv','ranger-config','ktxxo','local','includes','filter','oFPXv','.json','eukZm','split','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','5vucPoM','stringify','YTRqt','catch','URGAv','lcWaH','MWvEG','XorEU','ChkCL','Ihejt','safeMode','PgVfG','ignoreHTTPSErrors','none','8813qglsKa','XpPOV','boolean','sIKuW','IDVng','storageStatePath','code','ZQrLY','12071799kNRYZk','core','playwright-cli','tempAuthPath','lxiwB','ngxdI','ENOENT','dvFPw','BXpog','uRGQr','QJIHr','join','chromium','GdZFi','SwRQX','header','--no-sandbox','configPath','extraHTTPHeaders','getuid','replace','pXFlM'];_0x4405=function(){return _0x41d39f;};return _0x4405();}export async function loadSettings(_0x317749){const _0x153a8f=_0x36b9,_0x3cad79={'yQafK':function(_0x47e0a0,_0x5662ee){return _0x47e0a0(_0x5662ee);},'RGPaE':function(_0x4a1abe,_0x27f9fe,_0x2126a5){return _0x4a1abe(_0x27f9fe,_0x2126a5);},'RigRh':'utf-8'},_0x499d00=_0x3cad79['yQafK'](getSettingsPath,_0x317749);if(!existsSync(_0x499d00))return{};try{const _0x5e92c9=await _0x3cad79[_0x153a8f(0x1e5)](readFile,_0x499d00,_0x3cad79[_0x153a8f(0x1ec)]);return JSON['parse'](_0x5e92c9);}catch{return{};}}export async function saveSettings(_0x52133c,_0x5cd4e1){const _0x503dfb=_0x36b9,_0x3dcf69={'PZPOH':function(_0x2ce6da,_0x40eff9){return _0x2ce6da(_0x40eff9);},'RCCao':function(_0x14c7e4,_0x3f4889,_0x43bd2b){return _0x14c7e4(_0x3f4889,_0x43bd2b);},'UQCSb':function(_0x218228,_0x491292,_0x1629d3){return _0x218228(_0x491292,_0x1629d3);}},_0x402f38=_0x3dcf69['PZPOH'](getSettingsPath,_0x52133c),_0x5e4aa0=dirname(_0x402f38);!existsSync(_0x5e4aa0)&&await _0x3dcf69['RCCao'](mkdir,_0x5e4aa0,{'recursive':!![]}),await _0x3dcf69['UQCSb'](writeFile,_0x402f38,JSON[_0x503dfb(0x209)](_0x5cd4e1,null,0x2));}export function resolveEnvVars(_0x26a3ba){const _0x3d1ca3=_0x36b9,_0x4dd225={'SwRQX':function(_0x241f3f,_0x4aaa76){return _0x241f3f===_0x4aaa76;},'XeiEu':_0x3d1ca3(0x1ee),'sHkMP':function(_0x26ef13,_0x18240b){return _0x26ef13===_0x18240b;},'DhjKK':'object'};if(typeof _0x26a3ba===_0x4dd225['XeiEu'])return _0x26a3ba[_0x3d1ca3(0x232)](/\$\{(\w+)\}/g,(_0x261042,_0x210bae)=>{const _0xb913b1=_0x3d1ca3,_0x51dfe5=process['env'][_0x210bae];if(_0x4dd225[_0xb913b1(0x22c)](_0x51dfe5,undefined))throw new Error(_0xb913b1(0x1e8)+_0x210bae+_0xb913b1(0x1e0));return _0x51dfe5;});if(Array['isArray'](_0x26a3ba))return _0x26a3ba['map'](resolveEnvVars);if(_0x26a3ba&&_0x4dd225[_0x3d1ca3(0x1f4)](typeof _0x26a3ba,_0x4dd225['DhjKK']))return Object['fromEntries'](Object[_0x3d1ca3(0x1e1)](_0x26a3ba)['map'](([_0x768e4d,_0x47ed3d])=>[_0x768e4d,resolveEnvVars(_0x47ed3d)]));return _0x26a3ba;}const isRecord=_0x125127=>typeof _0x125127==='object'&&_0x125127!==null&&!Array['isArray'](_0x125127),asRecord=_0x5cdabe=>isRecord(_0x5cdabe)?_0x5cdabe:undefined,mergeHeaders=(_0xad4929,_0x5a9caa)=>{const _0x6e303c=_0x36b9,_0x2770aa={'QNeON':function(_0x3a463e,_0x315be9){return _0x3a463e??_0x315be9;}},_0x40bf7f={..._0xad4929??{},..._0x2770aa[_0x6e303c(0x241)](_0x5a9caa,{})};return Object['keys'](_0x40bf7f)[_0x6e303c(0x243)]?_0x40bf7f:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content','--unsafely-treat-insecure-origin-as-secure=http://localhost','--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x4c841e,_0xae0190={}){const _0x523361=_0x36b9,_0x13e870={'Ihejt':function(_0x14bd3b,_0x4d77c3){return _0x14bd3b(_0x4d77c3);},'FHSFs':function(_0x5dbf42,_0x3bf26a){return _0x5dbf42===_0x3bf26a;},'DKbSP':_0x523361(0x218),'TRqAv':function(_0x539539,_0x43083c){return _0x539539===_0x43083c;},'PajyM':function(_0x39423a,_0x1bc42b){return _0x39423a(_0x1bc42b);}},_0x5d51cf=asRecord(_0x4c841e[_0x523361(0x1d7)]),_0x177948={..._0x13e870['Ihejt'](asRecord,_0x5d51cf?.['launchOptions'])??{}};_0x13e870[_0x523361(0x23f)](typeof _0xae0190['headless'],_0x13e870['DKbSP'])&&(_0x177948['headless']=_0xae0190['headless']);if(_0x4c841e[_0x523361(0x212)]){const _0xab1e3=_0x177948[_0x523361(0x1f0)]??[],_0x3051a6=SAFE_MODE_ARGS['filter'](_0x45b78c=>!_0xab1e3[_0x523361(0x201)](_0x45b78c));_0x177948['args']=[..._0xab1e3,..._0x3051a6];}if(_0x4c841e['allowInsecureLocalhost']){const _0x26ce40=_0x177948[_0x523361(0x1f0)]??[],_0x13fcb4=ALLOW_LOCALHOST_ARGS['filter'](_0x27b879=>!_0x26ce40[_0x523361(0x201)](_0x27b879));_0x177948[_0x523361(0x1f0)]=[..._0x26ce40,..._0x13fcb4];}const _0x4d8c6a={..._0x13e870[_0x523361(0x211)](asRecord,_0x5d51cf?.[_0x523361(0x1e4)])??{}};_0x4d8c6a[_0x523361(0x214)]=!![];_0x13e870['TRqAv'](typeof _0x4c841e[_0x523361(0x23d)],_0x523361(0x1ee))&&(_0x4d8c6a['userAgent']=_0x4c841e[_0x523361(0x23d)]);const _0x2cf773=mergeHeaders(_0x13e870['PajyM'](asRecord,_0x4d8c6a[_0x523361(0x230)]),asRecord(_0x4c841e['headers']));return _0x2cf773?_0x4d8c6a[_0x523361(0x230)]=_0x2cf773:delete _0x4d8c6a['extraHTTPHeaders'],_0xae0190[_0x523361(0x21b)]&&(_0x4d8c6a['storageState']=_0xae0190['storageStatePath']),{'launchOptions':_0x177948,'contextOptions':_0x4d8c6a};}async function resolveLocalAuthPath(_0xa0008f){const _0x17c4c3=_0x36b9,_0x331861={'XigNi':_0x17c4c3(0x238),'zYJiy':function(_0x5ece7d,_0x19a870,_0x18d711){return _0x5ece7d(_0x19a870,_0x18d711);},'AMnFO':function(_0x5612f5){return _0x5612f5();},'WnQjQ':_0x17c4c3(0x207),'PgVfG':function(_0x3acfdc,_0x293949){return _0x3acfdc(_0x293949);},'BEQsn':function(_0x3ead67,_0x47c997,_0x539b15){return _0x3ead67(_0x47c997,_0x539b15);}},_0x42006e=join(_0xa0008f,_0x331861[_0x17c4c3(0x1db)]),_0x3b0a4a=_0x331861[_0x17c4c3(0x237)](join,_0xa0008f,_0x17c4c3(0x1dc));if(existsSync(_0x42006e))try{const _0x3e26f6=await _0x331861['AMnFO'](getToken);if(!_0x3e26f6)throw new Error(_0x331861['WnQjQ']);const _0x14fdca=await _0x331861[_0x17c4c3(0x213)](readFile,_0x42006e),_0x39badf=_0x331861[_0x17c4c3(0x237)](decrypt,_0x14fdca,_0x3e26f6),_0x1014b3=_0x331861['BEQsn'](join,tmpdir(),'ranger-auth-'+Date[_0x17c4c3(0x1f6)]()+_0x17c4c3(0x204));return await _0x331861['zYJiy'](writeFile,_0x1014b3,_0x39badf),{'storageStatePath':_0x1014b3,'tempAuthPath':_0x1014b3};}catch(_0x4ec3bb){const _0x579396=_0x4ec3bb instanceof Error?_0x4ec3bb[_0x17c4c3(0x242)]:String(_0x4ec3bb);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x579396);}if(existsSync(_0x3b0a4a))return{'storageStatePath':_0x3b0a4a};return{};}export async function buildPlaywrightConfig(_0x22f433,_0x3a4186,_0x11f645,_0x6a471d,_0xc74ba0){const _0x3dfcd1=_0x36b9,_0x19943f={'ChkCL':function(_0xf795ba,_0x5e07d7,_0x29c031,_0x4e5954,_0x8e9cd3,_0x19371b,_0x551046){return _0xf795ba(_0x5e07d7,_0x29c031,_0x4e5954,_0x8e9cd3,_0x19371b,_0x551046);},'roVBA':'stagehand','lcWaH':function(_0x22b1a4,_0x1f3e08){return _0x22b1a4(_0x1f3e08);},'eukZm':function(_0x963c86,_0x1001e9){return _0x963c86(_0x1001e9);}};if(_0xc74ba0)return _0x19943f[_0x3dfcd1(0x210)](buildPlaywrightConfigCore,_0x22f433,_0xc74ba0,_0x3a4186,_0x11f645,_0x6a471d,_0x19943f['roVBA']);const {storageStatePath:_0x3338a2,tempAuthPath:_0x442819}=await _0x19943f[_0x3dfcd1(0x20d)](resolveLocalAuthPath,_0x19943f[_0x3dfcd1(0x20d)](getEnvDir,_0x3a4186));try{const _0x1c25a8=await buildPlaywrightConfigCore(_0x22f433,_0x3338a2,_0x3a4186,_0x11f645,_0x6a471d,'stagehand');return{..._0x1c25a8,'tempAuthPath':_0x442819};}catch(_0x4e938f){_0x442819&&await _0x19943f[_0x3dfcd1(0x205)](unlink,_0x442819)[_0x3dfcd1(0x20b)](()=>{});throw _0x4e938f;}}export async function buildPlaywrightConfigCore(_0x44a9c0,_0x529d45,_0x5638ce,_0x1ec979,_0x172f2f,_0xda1d55='stagehand'){const _0x5b1b50=_0x36b9,_0x3e2288={'hKsNU':_0x5b1b50(0x1eb),'JroTl':_0x5b1b50(0x1e9),'jmRdK':function(_0x3e8443){return _0x3e8443();},'SjBLZ':function(_0x4d8344,_0x4bba0f,_0x3ad5e8,_0x281027){return _0x4d8344(_0x4bba0f,_0x3ad5e8,_0x281027);},'xXcvO':function(_0x375b43){return _0x375b43();},'IlnVr':function(_0x52f412,_0x2179a6){return _0x52f412(_0x2179a6);},'ERsZZ':function(_0x24147d,_0x16cd55){return _0x24147d===_0x16cd55;},'kQbbG':'playwright-cli','GCznQ':_0x5b1b50(0x215),'Usxpd':'install','MPyyY':_0x5b1b50(0x1d9),'nGtTa':_0x5b1b50(0x1e6),'XrMnr':'allow','sIKuW':function(_0x48863f,_0x55abc9){return _0x48863f===_0x55abc9;},'fykiX':function(_0x15b77e,_0x47a7fc,_0x28ed33){return _0x15b77e(_0x47a7fc,_0x28ed33);},'WaYyt':function(_0x129359,_0x40cf4b,_0x42954b){return _0x129359(_0x40cf4b,_0x42954b);}},_0x5c3c76=_0x1ec979||_0x3e2288['jmRdK'](randomUUID),_0x13074c=_0x3e2288['SjBLZ'](join,_0x3e2288[_0x5b1b50(0x1ea)](getRangerDir),_0x5b1b50(0x1f2),_0x5c3c76),_0xa541fc=_0x3e2288['IlnVr'](Boolean,_0x44a9c0[_0x5b1b50(0x1ed)]),_0x2aa6de=_0xa541fc?{'browserName':_0x5b1b50(0x22a),'cdpEndpoint':_0x44a9c0['cdpEndpoint']}:((()=>{const _0x15e459=_0x5b1b50,{launchOptions:_0x1e7751,contextOptions:_0x10249e}=buildBrowserOptionsFromSettings(_0x44a9c0,{'headless':_0x172f2f?![]:_0x44a9c0[_0x15e459(0x1f3)]??!![],'storageStatePath':_0x529d45});if(process[_0x15e459(0x231)]?.()===0x0){const _0x1a0816=[_0x15e459(0x22e),_0x3e2288['hKsNU']],_0x548453=_0x1e7751[_0x15e459(0x1f0)]??[],_0x25361a=_0x1a0816[_0x15e459(0x202)](_0x1ba3de=>!_0x548453['includes'](_0x1ba3de));_0x1e7751[_0x15e459(0x1f0)]=[..._0x548453,..._0x25361a];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x1e7751,'contextOptions':{..._0x10249e,'permissions':[_0x3e2288['JroTl'],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x22d2c3=_0x3e2288[_0x5b1b50(0x1e3)](_0xda1d55,_0x3e2288['kQbbG'])?{'browser':_0x2aa6de,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x13074c,'outputMode':'file','codegen':_0x3e2288['GCznQ']}:{'name':_0x5638ce,'browser':_0x2aa6de,'capabilities':[_0x5b1b50(0x21f),'tabs',_0x3e2288['Usxpd'],_0x3e2288['MPyyY'],_0x3e2288['nGtTa']],'imageResponses':_0x3e2288['XrMnr'],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x13074c};if(!_0xa541fc){const _0x45ac7f=_0x22d2c3[_0x5b1b50(0x1d7)],_0x247bf1=_0x45ac7f['contextOptions'];if(_0x247bf1[_0x5b1b50(0x23d)]===undefined)delete _0x247bf1[_0x5b1b50(0x23d)];if(_0x3e2288[_0x5b1b50(0x219)](_0x247bf1['storageState'],undefined))delete _0x247bf1['storageState'];}const _0x412a45=join(tmpdir(),_0x5b1b50(0x1fe));!existsSync(_0x412a45)&&await _0x3e2288['fykiX'](mkdir,_0x412a45,{'recursive':!![]});const _0x2c9d12=_0xda1d55===_0x3e2288[_0x5b1b50(0x1d6)]?'-cli':'',_0x2e3e7c=join(_0x412a45,_0x5638ce+'-'+Date[_0x5b1b50(0x1f6)]()+_0x2c9d12+'.json');return await _0x3e2288['WaYyt'](writeFile,_0x2e3e7c,JSON[_0x5b1b50(0x209)](_0x22d2c3,null,0x2)),{'configPath':_0x2e3e7c};}export async function buildPlaywrightCliConfig(_0x41b1d9,_0xeb056,_0x4847cd,_0x49e1ea,_0x45cf1d){const _0x35cd22=_0x36b9,_0xcf47a3={'FAGoc':'playwright-cli','BXpog':function(_0x142fa6,_0x4bb683){return _0x142fa6(_0x4bb683);}};if(_0x45cf1d)return buildPlaywrightConfigCore(_0x41b1d9,_0x45cf1d,_0xeb056,_0x4847cd,_0x49e1ea,_0xcf47a3['FAGoc']);const {storageStatePath:_0x25fdfe,tempAuthPath:_0x5136aa}=await resolveLocalAuthPath(_0xcf47a3[_0x35cd22(0x226)](getEnvDir,_0xeb056));try{const _0x47b7f8=await buildPlaywrightConfigCore(_0x41b1d9,_0x25fdfe,_0xeb056,_0x4847cd,_0x49e1ea,_0x35cd22(0x220));return{..._0x47b7f8,'tempAuthPath':_0x5136aa};}catch(_0x44b556){_0x5136aa&&await unlink(_0x5136aa)['catch'](()=>{});throw _0x44b556;}}export function getNestedValue(_0x145dae,_0x2fe346){const _0x4e745c=parseKeyPath(_0x2fe346);let _0x1760d3=_0x145dae;for(const _0x449dd3 of _0x4e745c){if(_0x1760d3===null||_0x1760d3===undefined||typeof _0x1760d3!=='object')return undefined;_0x1760d3=_0x1760d3[_0x449dd3];}return _0x1760d3;}export function setNestedValue(_0xd03491,_0x9afb2f,_0x2a5b31){const _0x2c425f=_0x36b9,_0xa64b9={'aeYIP':function(_0x3811af,_0x3b983d){return _0x3811af<_0x3b983d;},'XorEU':function(_0x3d883f,_0x48b64d){return _0x3d883f-_0x48b64d;},'vTCMS':function(_0x38b241,_0x1922c4){return _0x38b241 in _0x1922c4;},'QJIHr':function(_0x5428e1,_0x552d16){return _0x5428e1!==_0x552d16;},'ZQrLY':function(_0x2b17db,_0x56b95f){return _0x2b17db-_0x56b95f;}},_0x215dcf=parseKeyPath(_0x9afb2f);let _0xdfdd49=_0xd03491;for(let _0x4bd91e=0x0;_0xa64b9[_0x2c425f(0x23c)](_0x4bd91e,_0xa64b9[_0x2c425f(0x20f)](_0x215dcf[_0x2c425f(0x243)],0x1));_0x4bd91e++){const _0x3835ea=_0x215dcf[_0x4bd91e];(!_0xa64b9['vTCMS'](_0x3835ea,_0xdfdd49)||_0xa64b9[_0x2c425f(0x228)](typeof _0xdfdd49[_0x3835ea],_0x2c425f(0x1f1)))&&(_0xdfdd49[_0x3835ea]={}),_0xdfdd49=_0xdfdd49[_0x3835ea];}_0xdfdd49[_0x215dcf[_0xa64b9[_0x2c425f(0x21d)](_0x215dcf[_0x2c425f(0x243)],0x1)]]=_0x2a5b31;}export function deleteNestedValue(_0xd5dc36,_0x337460){const _0x180370=_0x36b9,_0x4f830a={'URGAv':function(_0x42ae2a,_0x22260d){return _0x42ae2a<_0x22260d;},'StdiR':function(_0x1518df,_0x59fe9f){return _0x1518df===_0x59fe9f;},'pXFlM':function(_0x2ee39c,_0x5c4944){return _0x2ee39c!==_0x5c4944;},'MWvEG':function(_0x5eaab0,_0xd580c5){return _0x5eaab0-_0xd580c5;},'ugHbA':function(_0x589c3d,_0x3eb46f){return _0x589c3d in _0x3eb46f;}},_0x484681=parseKeyPath(_0x337460);let _0x7291dd=_0xd5dc36;for(let _0x5f4655=0x0;_0x4f830a[_0x180370(0x20c)](_0x5f4655,_0x484681['length']-0x1);_0x5f4655++){if(_0x7291dd===null||_0x7291dd===undefined||typeof _0x7291dd!==_0x180370(0x1f1))return![];_0x7291dd=_0x7291dd[_0x484681[_0x5f4655]];}if(_0x4f830a['StdiR'](_0x7291dd,null)||_0x7291dd===undefined||_0x4f830a[_0x180370(0x233)](typeof _0x7291dd,'object'))return![];const _0xae035d=_0x484681[_0x4f830a[_0x180370(0x20e)](_0x484681['length'],0x1)];if(_0x4f830a['ugHbA'](_0xae035d,_0x7291dd))return delete _0x7291dd[_0xae035d],!![];return![];}function parseKeyPath(_0x51c0a3){const _0x5e8dc2=_0x36b9,_0x272692={'IDVng':_0x5e8dc2(0x22d),'ngxdI':'headers','gDLaG':function(_0x38161c,_0x52c248){return _0x38161c===_0x52c248;},'OUkdN':'setupHeaders'},_0x8a273d=_0x51c0a3[_0x5e8dc2(0x206)]('.');return _0x8a273d[0x0]===_0x272692[_0x5e8dc2(0x21a)]&&(_0x8a273d[0x0]=_0x272692[_0x5e8dc2(0x223)]),_0x272692['gDLaG'](_0x8a273d[0x0],'setupHeader')&&(_0x8a273d[0x0]=_0x272692['OUkdN']),_0x8a273d;}export function formatSettings(_0x36a993,_0x484f7e=0x0){const _0x27a254=_0x36b9,_0x534487={'vZdkv':'object'},_0x42f924=[],_0xd6b4d2='\x20\x20'[_0x27a254(0x1d8)](_0x484f7e);for(const [_0xa9d1,_0x27f70f]of Object[_0x27a254(0x1e1)](_0x36a993)){if(_0x27f70f===undefined)continue;if(typeof _0x27f70f===_0x534487[_0x27a254(0x1fd)]&&_0x27f70f!==null){_0x42f924[_0x27a254(0x1f9)](''+_0xd6b4d2+_0xa9d1+':');for(const [_0x19936d,_0x2656b4]of Object['entries'](_0x27f70f)){_0x42f924[_0x27a254(0x1f9)](_0xd6b4d2+'\x20\x20'+_0x19936d+':\x20'+_0x2656b4);}}else _0x42f924[_0x27a254(0x1f9)](''+_0xd6b4d2+_0xa9d1+':\x20'+_0x27f70f);}return _0x42f924[_0x27a254(0x229)]('\x0a');}