@ranger-testing/ranger-cli 3.0.1-alpha.d9f4572-27 → 3.0.1-alpha.ebe0997-35

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 (84) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/deleteProfile.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/organizationEnvApi.js +1 -0
  60. package/build/commands/utils/playwrightCli.js +1 -1
  61. package/build/commands/utils/profileMessages.js +1 -1
  62. package/build/commands/utils/profileSetupBanner.js +1 -1
  63. package/build/commands/utils/projectsConfig.js +1 -1
  64. package/build/commands/utils/rangerConfig.js +1 -1
  65. package/build/commands/utils/rangerRoot.js +1 -1
  66. package/build/commands/utils/rangerwrightCli.js +1 -0
  67. package/build/commands/utils/resolveProfileContext.js +1 -1
  68. package/build/commands/utils/resolveProfileUrl.js +1 -1
  69. package/build/commands/utils/retry.js +1 -1
  70. package/build/commands/utils/sessionCache.js +1 -1
  71. package/build/commands/utils/settings.js +1 -1
  72. package/build/commands/utils/skillContent.js +1 -1
  73. package/build/commands/utils/skills.js +1 -1
  74. package/build/commands/utils/stitchWebmFiles.js +1 -1
  75. package/build/commands/utils/telemetry.js +1 -1
  76. package/build/commands/utils/tokenRefresh.js +1 -1
  77. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  78. package/build/commands/utils/userApi.js +1 -1
  79. package/build/commands/utils/version.js +1 -1
  80. package/build/commands/verifyFeature.js +1 -1
  81. package/build/commands/verifyFeatureCli.js +1 -1
  82. package/build/commands/verifyFeatureNovaCli.js +1 -1
  83. package/build/commands/verifyFeatureRangerwrightCli.js +1 -0
  84. package/package.json +3 -2
@@ -1 +1 @@
1
- const _0xa73dda=_0x5006;(function(_0x1b58d9,_0x5b612d){const _0xc972c4=_0x5006,_0x22dbe7=_0x1b58d9();while(!![]){try{const _0x3c8ced=-parseInt(_0xc972c4(0x194))/0x1+parseInt(_0xc972c4(0x1ae))/0x2+parseInt(_0xc972c4(0x196))/0x3*(-parseInt(_0xc972c4(0x180))/0x4)+parseInt(_0xc972c4(0x192))/0x5*(parseInt(_0xc972c4(0x198))/0x6)+parseInt(_0xc972c4(0x1ac))/0x7*(-parseInt(_0xc972c4(0x1a8))/0x8)+parseInt(_0xc972c4(0x1ab))/0x9*(-parseInt(_0xc972c4(0x18d))/0xa)+parseInt(_0xc972c4(0x17a))/0xb;if(_0x3c8ced===_0x5b612d)break;else _0x22dbe7['push'](_0x22dbe7['shift']());}catch(_0x1163e4){_0x22dbe7['push'](_0x22dbe7['shift']());}}}(_0x6fac,0x4d636));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0xa73dda(0x1aa);function toPlaywrightCliSessionKey(_0x116ee1){const _0x203b85=_0xa73dda,_0x4ffdb9={'XGvIb':_0x203b85(0x199)},_0x58872e=createHash(_0x4ffdb9['XGvIb'])[_0x203b85(0x18c)](_0x116ee1)['digest'](_0x203b85(0x1af))[_0x203b85(0x186)](0x0,0xc);return'rg-'+_0x58872e;}function shellQuote(_0x17f73d){const _0x371d2e=_0xa73dda;return'\x27'+_0x17f73d['replace'](/'/g,_0x371d2e(0x17f))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x10d1fb){const _0x16fcb8=_0xa73dda,_0x42a010={'wxChx':function(_0x2eb83d,_0x35ccee){return _0x2eb83d(_0x35ccee);}};return SAFE_SHELL_TOKEN[_0x16fcb8(0x17e)](_0x10d1fb)?_0x10d1fb:_0x42a010['wxChx'](shellQuote,_0x10d1fb);}function _0x6fac(){const _0x44ae4a=['...','env','-s=','timed\x20out\x20after\x20','playwright-cli\x20','null','wvmGT','close','cmd','pipe','EYkRN','656fnTthV','string','@playwright/cli','146493DMsNTd','42112nJaDuB','EXsxp','1146640uLqGpQ','hex','--config','\x0astdout:\x20','Jyfqn','join','length','8356678ofDZYX','unknown','stderr','GhNbK','test','\x27\x5c\x27\x27','4TnkVOZ','zCXvw','configPath','exited\x20with\x20code=','find','stdout','slice','match','SIGTERM','timeoutMs','values','script','update','170WLlAEu','tRKDk','zBiaa','oDZGe','toString','105Elvgvr','kill','632105pShxAn','DrXMp','41376jovuSe','npx','114252QDymMw','sha256','bash_command','args','pgXeg'];_0x6fac=function(){return _0x44ae4a;};return _0x6fac();}function _0x5006(_0x2c3908,_0x462ddd){_0x2c3908=_0x2c3908-0x17a;const _0x6fac48=_0x6fac();let _0x5006ad=_0x6fac48[_0x2c3908];return _0x5006ad;}export function buildPlaywrightCliInvocation(_0x15eb40,_0x5c6fab,_0x153c0f){const _0x55aab9=_0xa73dda,_0x4ebeca={'EbwwX':_0x55aab9(0x17b),'qkBzr':_0x55aab9(0x197),'EXsxp':function(_0x4939ec,_0x1f1dec){return _0x4939ec(_0x1f1dec);},'DrXMp':_0x55aab9(0x1b0)},_0x318a2c=toPlaywrightCliSessionKey(_0x15eb40),[_0x21ad8b=_0x4ebeca['EbwwX']]=_0x153c0f,_0x34d7bb=[PLAYWRIGHT_CLI_BINARY,_0x55aab9(0x19f)+_0x318a2c,'--config',_0x5c6fab,..._0x153c0f];return{'command':'npx','args':_0x34d7bb,'shellCommand':[_0x4ebeca['qkBzr'],PLAYWRIGHT_CLI_BINARY,'-s='+_0x4ebeca[_0x55aab9(0x1ad)](quoteShellArg,_0x318a2c),_0x4ebeca[_0x55aab9(0x195)],quoteShellArg(_0x5c6fab),..._0x153c0f['map'](quoteShellArg)]['join']('\x20'),'subcommand':_0x21ad8b};}export function buildPlaywrightCliCommandPrefix(_0x55620d,_0x2278f){const _0x567fef=_0xa73dda,_0x514013={'fDXDf':function(_0x104c58,_0x202aa5){return _0x104c58(_0x202aa5);},'GhNbK':_0x567fef(0x1b0)},_0x711950=_0x514013['fDXDf'](toPlaywrightCliSessionKey,_0x55620d);return[_0x567fef(0x197),PLAYWRIGHT_CLI_BINARY,_0x567fef(0x19f)+_0x514013['fDXDf'](quoteShellArg,_0x711950),_0x514013[_0x567fef(0x17d)],quoteShellArg(_0x2278f)][_0x567fef(0x1b3)]('\x20');}function truncateOutput(_0x58a294,_0x16c029=0x7d0){const _0x1ee737=_0xa73dda,_0xc7427d={'zCXvw':function(_0xaf4f6a,_0x37c351){return _0xaf4f6a+_0x37c351;}};return _0x58a294[_0x1ee737(0x1b4)]>_0x16c029?_0xc7427d[_0x1ee737(0x181)](_0x58a294[_0x1ee737(0x186)](0x0,_0x16c029),_0x1ee737(0x19d)):_0x58a294;}export async function runPlaywrightCliCommand(_0x20e722){const _0x3049ac=_0xa73dda,_0x28954c={'gsIFh':function(_0x22ba43,_0x2316c3){return _0x22ba43(_0x2316c3);},'oDZGe':_0x3049ac(0x1a2),'ksVQT':function(_0x42b966,_0xd18f9,_0x13ad67,_0x96484f){return _0x42b966(_0xd18f9,_0x13ad67,_0x96484f);},'pgXeg':'ignore','EYkRN':_0x3049ac(0x1a6)},_0x2cc845=buildPlaywrightCliInvocation(_0x20e722['sessionId'],_0x20e722[_0x3049ac(0x182)],_0x20e722['commandArgs']);return new Promise((_0x1137d9,_0x5d49bb)=>{const _0x50f45a=_0x3049ac,_0x165259={'wvmGT':function(_0x37c59d,_0x4b7f9b){return _0x37c59d===_0x4b7f9b;},'tRKDk':function(_0x325506,_0x45c6d2){return _0x28954c['gsIFh'](_0x325506,_0x45c6d2);},'notlk':function(_0x4a6a0d,_0x19a4f2){return _0x4a6a0d??_0x19a4f2;},'zBiaa':_0x28954c[_0x50f45a(0x190)],'qFymY':function(_0x28e265,_0x559320){return _0x28e265(_0x559320);}},_0x3122ba=_0x28954c['ksVQT'](spawn,_0x2cc845['command'],_0x2cc845[_0x50f45a(0x19b)],{'cwd':_0x20e722['cwd'],'env':_0x20e722[_0x50f45a(0x19e)],'stdio':[_0x28954c[_0x50f45a(0x19c)],_0x28954c[_0x50f45a(0x1a7)],_0x50f45a(0x1a6)]});let _0x583844='',_0x13c678='',_0x504d66=![];const _0x44831e=_0x20e722[_0x50f45a(0x189)]&&_0x20e722[_0x50f45a(0x189)]>0x0?setTimeout(()=>{const _0x428498=_0x50f45a;_0x504d66=!![],_0x3122ba[_0x428498(0x193)](_0x428498(0x188)),setTimeout(()=>{const _0x37c9f7=_0x428498;try{_0x3122ba[_0x37c9f7(0x193)]('SIGKILL');}catch{}},0x3e8);},_0x20e722['timeoutMs']):null;_0x3122ba[_0x50f45a(0x185)]?.['on']('data',_0x8112cd=>{const _0x1640ad=_0x50f45a;_0x583844+=_0x8112cd[_0x1640ad(0x191)]();}),_0x3122ba[_0x50f45a(0x17c)]?.['on']('data',_0x3f2fe1=>{const _0x2b31e6=_0x50f45a;_0x13c678+=_0x3f2fe1[_0x2b31e6(0x191)]();}),_0x3122ba['on']('error',_0x43bc01=>{if(_0x44831e)_0x28954c['gsIFh'](clearTimeout,_0x44831e);_0x5d49bb(_0x43bc01);}),_0x3122ba['on'](_0x50f45a(0x1a4),(_0x1ba33d,_0x1c82de)=>{const _0x5671e4=_0x50f45a;if(_0x44831e)clearTimeout(_0x44831e);if(_0x165259[_0x5671e4(0x1a3)](_0x1ba33d,0x0)){_0x165259['tRKDk'](_0x1137d9,{'stdout':_0x583844,'stderr':_0x13c678,'invocation':_0x2cc845});return;}const _0x100230=_0x504d66?_0x5671e4(0x1a0)+_0x20e722[_0x5671e4(0x189)]+'ms':_0x5671e4(0x183)+(_0x1ba33d??_0x5671e4(0x1a2))+'\x20signal='+_0x165259['notlk'](_0x1c82de,_0x165259[_0x5671e4(0x18f)]);_0x5d49bb(new Error(_0x5671e4(0x1a1)+_0x2cc845['subcommand']+'\x20'+_0x100230+_0x5671e4(0x1b1)+_0x165259['qFymY'](truncateOutput,_0x583844)+'\x0astderr:\x20'+_0x165259[_0x5671e4(0x18e)](truncateOutput,_0x13c678)));});});}export function extractBashCommand(_0xb40eff){const _0xb90023=_0xa73dda,_0x510ff0={'ArhFN':_0xb90023(0x1a5),'Jyfqn':function(_0x1c847d,_0x5c9f6b){return _0x1c847d===_0x5c9f6b;},'qGfcl':'string'},_0x2e4b5c=['command',_0x510ff0['ArhFN'],_0xb90023(0x18b),_0xb90023(0x19a)];for(const _0x29ffad of _0x2e4b5c){const _0xa59fe3=_0xb40eff[_0x29ffad];if(_0x510ff0[_0xb90023(0x1b2)](typeof _0xa59fe3,_0x510ff0['qGfcl'])&&_0xa59fe3['trim']())return _0xa59fe3;}const _0xbc272f=Object[_0xb90023(0x18a)](_0xb40eff)[_0xb90023(0x184)](_0x4698a7=>typeof _0x4698a7===_0xb90023(0x1a9)&&_0x4698a7['trim']()[_0xb90023(0x1b4)]>0x0);return _0xbc272f??null;}export function parsePlaywrightCliCommand(_0x483a86){const _0x1d1f0f=_0xa73dda,_0x4a0463=_0x483a86[_0x1d1f0f(0x187)](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x4a0463?.[0x1]??null;}
1
+ (function(_0x5112f6,_0x523325){const _0x357fd5=_0x4950,_0x1e8ff6=_0x5112f6();while(!![]){try{const _0x1f8bdc=-parseInt(_0x357fd5(0xf3))/0x1*(-parseInt(_0x357fd5(0x112))/0x2)+-parseInt(_0x357fd5(0x115))/0x3+-parseInt(_0x357fd5(0x110))/0x4+parseInt(_0x357fd5(0x104))/0x5*(-parseInt(_0x357fd5(0x10d))/0x6)+parseInt(_0x357fd5(0xf4))/0x7+-parseInt(_0x357fd5(0x10c))/0x8*(-parseInt(_0x357fd5(0x102))/0x9)+parseInt(_0x357fd5(0xf9))/0xa*(parseInt(_0x357fd5(0x109))/0xb);if(_0x1f8bdc===_0x523325)break;else _0x1e8ff6['push'](_0x1e8ff6['shift']());}catch(_0xa846ac){_0x1e8ff6['push'](_0x1e8ff6['shift']());}}}(_0x30e3,0x8ded7));import{spawn}from'child_process';function _0x4950(_0x26e630,_0x35e961){_0x26e630=_0x26e630-0xe2;const _0x30e3e8=_0x30e3();let _0x49500e=_0x30e3e8[_0x26e630];return _0x49500e;}function _0x30e3(){const _0x360990=['update','1243scjEYE','ignore','uLZMk','1432tmgOKS','6BCUIeY','null','--config','33012YhAzyu','XwbpE','32Iaboht','unknown','trim','800691ttcjjW','IhFSR','wkBHS','\x0astdout:\x20','wtRfp','script','timed\x20out\x20after\x20','command','lDOBl','rg-','nHezl','IqRel','jtQqO','-s=','commandArgs','env','stderr','SIGKILL','exited\x20with\x20code=','yrakp','find','cmd','npx','timeoutMs','pLvMn','29279qoZzOq','6200558GzXauh','BDAMB','sessionId','YHktR','pUfPt','12950FrFGTL','cwd','length','toString','slice','test','join','aTFBu','AUDur','6795eKuswY','data','3896265bsujeK','string','subcommand','hex'];_0x30e3=function(){return _0x360990;};return _0x30e3();}import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function toPlaywrightCliSessionKey(_0x561c6a){const _0x4bee9c=_0x4950,_0x165d4e={'jtQqO':_0x4bee9c(0x107)},_0xbe7a5d=createHash('sha256')[_0x4bee9c(0x108)](_0x561c6a)['digest'](_0x165d4e[_0x4bee9c(0xe6)])[_0x4bee9c(0xfd)](0x0,0xc);return _0x4bee9c(0xe3)+_0xbe7a5d;}function shellQuote(_0x28f318){return'\x27'+_0x28f318['replace'](/'/g,'\x27\x5c\x27\x27')+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x33ba48){const _0x48aec5=_0x4950;return SAFE_SHELL_TOKEN[_0x48aec5(0xfe)](_0x33ba48)?_0x33ba48:shellQuote(_0x33ba48);}export function buildPlaywrightCliInvocation(_0x2f1a98,_0x1bf773,_0x9bb652){const _0x217b09=_0x4950,_0x25f016={'dGmpj':_0x217b09(0x113),'BDAMB':'npx','xVNDY':function(_0x19a8a2,_0x44f63d){return _0x19a8a2(_0x44f63d);},'IhFSR':function(_0x1e1866,_0x230dca){return _0x1e1866(_0x230dca);}},_0x24c76a=toPlaywrightCliSessionKey(_0x2f1a98),[_0x590b4a=_0x25f016['dGmpj']]=_0x9bb652,_0xf2d808=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x24c76a,_0x217b09(0x10f),_0x1bf773,..._0x9bb652];return{'command':_0x25f016[_0x217b09(0xf5)],'args':_0xf2d808,'shellCommand':[_0x217b09(0xf0),PLAYWRIGHT_CLI_BINARY,_0x217b09(0xe7)+_0x25f016['xVNDY'](quoteShellArg,_0x24c76a),'--config',_0x25f016[_0x217b09(0x116)](quoteShellArg,_0x1bf773),..._0x9bb652['map'](quoteShellArg)]['join']('\x20'),'subcommand':_0x590b4a};}export function buildPlaywrightCliCommandPrefix(_0xa93d16,_0x15fb93){const _0xb0ec9=_0x4950,_0x434be7={'KtqnR':function(_0x1ea7dc,_0x233a35){return _0x1ea7dc(_0x233a35);}},_0x4cff53=_0x434be7['KtqnR'](toPlaywrightCliSessionKey,_0xa93d16);return['npx',PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x4cff53),'--config',quoteShellArg(_0x15fb93)][_0xb0ec9(0xff)]('\x20');}function truncateOutput(_0x3f4135,_0x32eea7=0x7d0){const _0x3c112d=_0x4950,_0x30e158={'wkBHS':function(_0x36df92,_0x37b3b5){return _0x36df92>_0x37b3b5;},'nHezl':function(_0x5457a2,_0x7c2aaa){return _0x5457a2+_0x7c2aaa;},'nEZKs':'...'};return _0x30e158[_0x3c112d(0x117)](_0x3f4135[_0x3c112d(0xfb)],_0x32eea7)?_0x30e158[_0x3c112d(0xe4)](_0x3f4135[_0x3c112d(0xfd)](0x0,_0x32eea7),_0x30e158['nEZKs']):_0x3f4135;}export async function runPlaywrightCliCommand(_0x17974d){const _0x12623e=_0x4950,_0x5dd540={'ysuhT':function(_0xb25a3d,_0x37541b){return _0xb25a3d(_0x37541b);},'cgMbA':function(_0x549cca,_0x47c858){return _0x549cca===_0x47c858;},'yrakp':function(_0x4d4dad,_0x153985){return _0x4d4dad??_0x153985;},'pLvMn':function(_0x46eb37,_0x5e8d20){return _0x46eb37(_0x5e8d20);},'YHktR':function(_0x459443,_0x1ef77e,_0x52aac1){return _0x459443(_0x1ef77e,_0x52aac1);},'aTFBu':function(_0x402a4f,_0x5a5acd){return _0x402a4f(_0x5a5acd);},'fndxd':function(_0x1d9b82,_0x16c1df,_0x3a0dea,_0x1c6087){return _0x1d9b82(_0x16c1df,_0x3a0dea,_0x1c6087);},'uLZMk':'pipe','IqRel':_0x12623e(0x103)},_0x5c3207=buildPlaywrightCliInvocation(_0x17974d[_0x12623e(0xf6)],_0x17974d['configPath'],_0x17974d[_0x12623e(0xe8)]);return new Promise((_0x1eaafb,_0x1c8fe4)=>{const _0x31fe97=_0x12623e,_0x3b0774={'AUDur':function(_0x5129a2,_0x8e68ba,_0xbb771a){const _0x68e3fd=_0x4950;return _0x5dd540[_0x68e3fd(0xf7)](_0x5129a2,_0x8e68ba,_0xbb771a);},'pUfPt':function(_0x4d11ab,_0x1b2cb3){const _0x42fa6c=_0x4950;return _0x5dd540[_0x42fa6c(0x100)](_0x4d11ab,_0x1b2cb3);},'UsKPD':function(_0x2aaa38,_0x2c6183){return _0x2aaa38(_0x2c6183);}},_0x4afd9d=_0x5dd540['fndxd'](spawn,_0x5c3207['command'],_0x5c3207['args'],{'cwd':_0x17974d[_0x31fe97(0xfa)],'env':_0x17974d[_0x31fe97(0xe9)],'stdio':[_0x31fe97(0x10a),_0x5dd540['uLZMk'],_0x5dd540[_0x31fe97(0x10b)]]});let _0x31e623='',_0xd61f7d='',_0x21a46c=![];const _0x53d051=_0x17974d[_0x31fe97(0xf1)]&&_0x17974d[_0x31fe97(0xf1)]>0x0?_0x5dd540['YHktR'](setTimeout,()=>{const _0x587519=_0x31fe97;_0x21a46c=!![],_0x4afd9d['kill']('SIGTERM'),_0x3b0774[_0x587519(0x101)](setTimeout,()=>{const _0x56d939=_0x587519;try{_0x4afd9d['kill'](_0x56d939(0xeb));}catch{}},0x3e8);},_0x17974d[_0x31fe97(0xf1)]):null;_0x4afd9d['stdout']?.['on'](_0x5dd540[_0x31fe97(0xe5)],_0x3845fb=>{_0x31e623+=_0x3845fb['toString']();}),_0x4afd9d[_0x31fe97(0xea)]?.['on'](_0x5dd540[_0x31fe97(0xe5)],_0x253017=>{const _0x3df69d=_0x31fe97;_0xd61f7d+=_0x253017[_0x3df69d(0xfc)]();}),_0x4afd9d['on']('error',_0x31290b=>{const _0x154421=_0x31fe97;if(_0x53d051)_0x3b0774[_0x154421(0xf8)](clearTimeout,_0x53d051);_0x3b0774['UsKPD'](_0x1c8fe4,_0x31290b);}),_0x4afd9d['on']('close',(_0x21b40f,_0x3d6bd7)=>{const _0x96cec1=_0x31fe97;if(_0x53d051)_0x5dd540['ysuhT'](clearTimeout,_0x53d051);if(_0x5dd540['cgMbA'](_0x21b40f,0x0)){_0x1eaafb({'stdout':_0x31e623,'stderr':_0xd61f7d,'invocation':_0x5c3207});return;}const _0x34c19d=_0x21a46c?_0x96cec1(0x11b)+_0x17974d['timeoutMs']+'ms':_0x96cec1(0xec)+(_0x21b40f??_0x96cec1(0x10e))+'\x20signal='+_0x5dd540[_0x96cec1(0xed)](_0x3d6bd7,_0x96cec1(0x10e));_0x5dd540['ysuhT'](_0x1c8fe4,new Error('playwright-cli\x20'+_0x5c3207[_0x96cec1(0x106)]+'\x20'+_0x34c19d+_0x96cec1(0x118)+truncateOutput(_0x31e623)+'\x0astderr:\x20'+_0x5dd540[_0x96cec1(0xf2)](truncateOutput,_0xd61f7d)));});});}export function extractBashCommand(_0x379a6b){const _0x1495f9=_0x4950,_0x400cf4={'OcIcv':_0x1495f9(0x11c),'auLhf':_0x1495f9(0xef),'lDOBl':_0x1495f9(0x11a),'drttR':'bash_command','wtRfp':function(_0x2c2c6e,_0x4a2a4a){return _0x2c2c6e===_0x4a2a4a;},'XwbpE':_0x1495f9(0x105),'uMbuN':function(_0x4654c1,_0x26325c){return _0x4654c1??_0x26325c;}},_0x4198c3=[_0x400cf4['OcIcv'],_0x400cf4['auLhf'],_0x400cf4[_0x1495f9(0xe2)],_0x400cf4['drttR']];for(const _0x47c388 of _0x4198c3){const _0x52be37=_0x379a6b[_0x47c388];if(_0x400cf4[_0x1495f9(0x119)](typeof _0x52be37,_0x400cf4[_0x1495f9(0x111)])&&_0x52be37[_0x1495f9(0x114)]())return _0x52be37;}const _0x59b351=Object['values'](_0x379a6b)[_0x1495f9(0xee)](_0x1b2f0f=>typeof _0x1b2f0f==='string'&&_0x1b2f0f[_0x1495f9(0x114)]()['length']>0x0);return _0x400cf4['uMbuN'](_0x59b351,null);}export function parsePlaywrightCliCommand(_0x4e7439){const _0x1a76f0=_0x4e7439['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x1a76f0?.[0x1]??null;}
@@ -1 +1 @@
1
- const _0x127504=_0x59e4;function _0x59e4(_0x49a4a6,_0x317bee){_0x49a4a6=_0x49a4a6-0xf0;const _0x4c768f=_0x4c76();let _0x59e4f4=_0x4c768f[_0x49a4a6];return _0x59e4f4;}function _0x4c76(){const _0x4bfd50=['4iFTRxn','12645281vRZIOt','1668990jqfSGP','4912200obqGJA','2869626tgONQn','53718feSamQ','ranger\x20profile\x20add\x20local','7efoXaY','31KZUoRW','2325275qTyhip','9FnaMpZ','3013671gfZyLq','12nrhgrZ'];_0x4c76=function(){return _0x4bfd50;};return _0x4c76();}(function(_0x529c0d,_0x549033){const _0x1835b5=_0x59e4,_0xabed2f=_0x529c0d();while(!![]){try{const _0x424184=-parseInt(_0x1835b5(0xf1))/0x1*(parseInt(_0x1835b5(0xfb))/0x2)+-parseInt(_0x1835b5(0xf4))/0x3*(-parseInt(_0x1835b5(0xf6))/0x4)+parseInt(_0x1835b5(0xf2))/0x5+-parseInt(_0x1835b5(0xfa))/0x6*(parseInt(_0x1835b5(0xf0))/0x7)+-parseInt(_0x1835b5(0xf9))/0x8+-parseInt(_0x1835b5(0xf3))/0x9*(parseInt(_0x1835b5(0xf8))/0xa)+parseInt(_0x1835b5(0xf7))/0xb*(parseInt(_0x1835b5(0xf5))/0xc);if(_0x424184===_0x549033)break;else _0xabed2f['push'](_0xabed2f['shift']());}catch(_0x3baa56){_0xabed2f['push'](_0xabed2f['shift']());}}}(_0x4c76,0x80bff));const DEFAULT_PROFILE_COMMAND=_0x127504(0xfc);export function formatProfileRequiredMessage(_0x331808){const _0x217871=_0x331808?_0x331808(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'+_0x217871+'.';}
1
+ function _0x46b9(){const _0x2c7922=['1071hqeIOs','4jKWMzl','ranger\x20profile\x20add\x20local','3311220mESzsG','3469604EysyBY','7177820AUQtuz','61584FIMVfn','2994xnRbCc','3vKpfJV','12726670DwjNFr','12wpWToA','9821pPupQH','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','299581oLrWZA'];_0x46b9=function(){return _0x2c7922;};return _0x46b9();}const _0x591fb2=_0x34d8;function _0x34d8(_0x203075,_0x3889f6){_0x203075=_0x203075-0x78;const _0x46b903=_0x46b9();let _0x34d810=_0x46b903[_0x203075];return _0x34d810;}(function(_0x4bc52a,_0x5b97f5){const _0x31354a=_0x34d8,_0x50f5fc=_0x4bc52a();while(!![]){try{const _0x429c76=-parseInt(_0x31354a(0x79))/0x1*(-parseInt(_0x31354a(0x7b))/0x2)+parseInt(_0x31354a(0x82))/0x3*(-parseInt(_0x31354a(0x7e))/0x4)+parseInt(_0x31354a(0x7d))/0x5+-parseInt(_0x31354a(0x81))/0x6*(-parseInt(_0x31354a(0x85))/0x7)+-parseInt(_0x31354a(0x80))/0x8*(parseInt(_0x31354a(0x7a))/0x9)+-parseInt(_0x31354a(0x7f))/0xa+-parseInt(_0x31354a(0x83))/0xb*(-parseInt(_0x31354a(0x84))/0xc);if(_0x429c76===_0x5b97f5)break;else _0x50f5fc['push'](_0x50f5fc['shift']());}catch(_0x49bca9){_0x50f5fc['push'](_0x50f5fc['shift']());}}}(_0x46b9,0x96b0c));const DEFAULT_PROFILE_COMMAND=_0x591fb2(0x7c);export function formatProfileRequiredMessage(_0x36ee5b){const _0x255079=_0x591fb2,_0xb1ad85={'wLPIZ':function(_0x148b1f,_0x376c17){return _0x148b1f(_0x376c17);}},_0x52d047=_0x36ee5b?_0xb1ad85['wLPIZ'](_0x36ee5b,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x255079(0x78)+_0x52d047+'.';}
@@ -1 +1 @@
1
- function _0x5a9c(){const _0x43ae05=['<div\x20class=\x22ranger-banner__content\x22>','168745DHqeyN','548374FqDmsE','GKhPD','\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','5zMrDGh','1603509mfJblV','addInitScript','17507sqMUUk',';\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','67720TKPtzy','QgaCZ','<div\x20class=\x22ranger-banner__message\x22>','\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','282EXmrgv','12385251OwPWiJ','3883JjBRLF','1200nDosvd','5222448BtFYSZ','MALNa','stringify','StcJN'];_0x5a9c=function(){return _0x43ae05;};return _0x5a9c();}function _0x41f4(_0x1f01e4,_0x5aa4f6){_0x1f01e4=_0x1f01e4-0x10e;const _0x5a9c0c=_0x5a9c();let _0x41f4e4=_0x5a9c0c[_0x1f01e4];return _0x41f4e4;}(function(_0x91430d,_0x1d230b){const _0x41d2e7=_0x41f4,_0x596d79=_0x91430d();while(!![]){try{const _0xb9e6ea=-parseInt(_0x41d2e7(0x11d))/0x1*(-parseInt(_0x41d2e7(0x11a))/0x2)+parseInt(_0x41d2e7(0x11e))/0x3+-parseInt(_0x41d2e7(0x114))/0x4+-parseInt(_0x41d2e7(0x119))/0x5*(-parseInt(_0x41d2e7(0x110))/0x6)+parseInt(_0x41d2e7(0x120))/0x7*(-parseInt(_0x41d2e7(0x113))/0x8)+parseInt(_0x41d2e7(0x111))/0x9+-parseInt(_0x41d2e7(0x122))/0xa*(parseInt(_0x41d2e7(0x112))/0xb);if(_0xb9e6ea===_0x1d230b)break;else _0x596d79['push'](_0x596d79['shift']());}catch(_0x2cf01f){_0x596d79['push'](_0x596d79['shift']());}}}(_0x5a9c,0xc2756));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x4c0bbd=_0x41f4,_0x5d8bcd={'StcJN':function(_0x314a62,_0x358237){return _0x314a62+_0x358237;},'LhAZk':'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','hxueB':_0x4c0bbd(0x10e),'QgaCZ':'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','GKhPD':'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','MALNa':'</div>','vEJze':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0x3aca0c=_0x5d8bcd['StcJN'](_0x5d8bcd[_0x4c0bbd(0x117)](_0x5d8bcd[_0x4c0bbd(0x117)](_0x5d8bcd[_0x4c0bbd(0x117)](_0x4c0bbd(0x118),_0x5d8bcd['LhAZk'])+_0x5d8bcd['hxueB']+_0x5d8bcd[_0x4c0bbd(0x123)],_0x5d8bcd[_0x4c0bbd(0x11b)]),'</div>'),_0x5d8bcd[_0x4c0bbd(0x115)])+_0x5d8bcd['vEJze'],_0x1c5142=_0x4c0bbd(0x11c);return _0x4c0bbd(0x10f)+JSON['stringify'](_0x3aca0c)+';\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[_0x4c0bbd(0x116)](_0x1c5142)+_0x4c0bbd(0x121);})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x4d31d3){const _0x10dbf6=_0x41f4;await _0x4d31d3[_0x10dbf6(0x11f)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
1
+ (function(_0xb6a0e3,_0x1b1ca1){const _0xad8120=_0x4342,_0x58ed5c=_0xb6a0e3();while(!![]){try{const _0x316616=-parseInt(_0xad8120(0xda))/0x1+-parseInt(_0xad8120(0xd9))/0x2+parseInt(_0xad8120(0xdc))/0x3+parseInt(_0xad8120(0xd1))/0x4+parseInt(_0xad8120(0xd7))/0x5*(-parseInt(_0xad8120(0xe0))/0x6)+-parseInt(_0xad8120(0xcc))/0x7*(parseInt(_0xad8120(0xce))/0x8)+parseInt(_0xad8120(0xcb))/0x9*(parseInt(_0xad8120(0xd4))/0xa);if(_0x316616===_0x1b1ca1)break;else _0x58ed5c['push'](_0x58ed5c['shift']());}catch(_0x203152){_0x58ed5c['push'](_0x58ed5c['shift']());}}}(_0x5d94,0x2f32a));function _0x4342(_0x35b4b1,_0x3cf64e){_0x35b4b1=_0x35b4b1-0xcb;const _0x5d9414=_0x5d94();let _0x434215=_0x5d9414[_0x35b4b1];return _0x434215;}const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x44adac=_0x4342,_0x54eb9e={'uqDOM':function(_0x2ef23b,_0x80eee5){return _0x2ef23b+_0x80eee5;},'OFESl':function(_0x1122a0,_0x2e49f4){return _0x1122a0+_0x2e49f4;},'cbApH':function(_0x64bfa8,_0x18fdd5){return _0x64bfa8+_0x18fdd5;},'dsKod':_0x44adac(0xd0),'LRSix':'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','rrPYT':_0x44adac(0xd5),'cCzLO':'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','wnYFo':'</div>'},_0x85b3c7=_0x54eb9e[_0x44adac(0xe1)](_0x54eb9e[_0x44adac(0xd6)](_0x54eb9e[_0x44adac(0xd6)](_0x54eb9e['cbApH'](_0x54eb9e['cbApH'](_0x54eb9e[_0x44adac(0xd8)],_0x54eb9e[_0x44adac(0xcd)]),_0x54eb9e[_0x44adac(0xd3)]),_0x44adac(0xdb))+_0x54eb9e['cCzLO'],_0x54eb9e[_0x44adac(0xdd)]),_0x54eb9e['wnYFo'])+'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>',_0x2c8f1f=_0x44adac(0xdf);return _0x44adac(0xd2)+JSON['stringify'](_0x85b3c7)+_0x44adac(0xde)+JSON['stringify'](_0x2c8f1f)+';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a';})());function _0x5d94(){const _0x353d1c=['3528ZbPrTS','uqDOM','4525425kzBzEq','14eqMUXT','LRSix','1203488ZvxuYx','addInitScript','<div\x20class=\x22ranger-banner__content\x22>','1522400XwguNg','\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','rrPYT','10UmyipX','<div\x20class=\x22ranger-banner__message\x22>','OFESl','170LdWUsc','dsKod','466586YamiKx','336277QreWHo','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','600993KgOmOm','wnYFo',';\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','\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'];_0x5d94=function(){return _0x353d1c;};return _0x5d94();}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x178090){const _0x4fac41=_0x4342;await _0x178090[_0x4fac41(0xcf)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
@@ -1 +1 @@
1
- (function(_0x3d2226,_0x4843b8){const _0x28012f=_0x5de5,_0x506c26=_0x3d2226();while(!![]){try{const _0x531109=-parseInt(_0x28012f(0x1d5))/0x1+parseInt(_0x28012f(0x1c6))/0x2*(-parseInt(_0x28012f(0x1b7))/0x3)+-parseInt(_0x28012f(0x1c3))/0x4+parseInt(_0x28012f(0x1d9))/0x5+-parseInt(_0x28012f(0x1d7))/0x6*(-parseInt(_0x28012f(0x1be))/0x7)+parseInt(_0x28012f(0x1ba))/0x8+parseInt(_0x28012f(0x1ca))/0x9*(parseInt(_0x28012f(0x1d8))/0xa);if(_0x531109===_0x4843b8)break;else _0x506c26['push'](_0x506c26['shift']());}catch(_0x91d4c){_0x506c26['push'](_0x506c26['shift']());}}}(_0x304b,0x4616c));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';function _0x304b(){const _0x2fca0e=['message','\x20is\x20not\x20valid\x20JSON\x20(','keyPath\x20is\x20required','4382zbWHQR',').\x20Ignoring\x20local\x20profile\x20overrides.','split','length','pPPEV','1957940mepUrr','wrSZv','lLfWV','2CURslM','version','lastProfile','cXgGw','55611JxFSYR','uHjXJ','object','.\x20Ignoring\x20local\x20profile\x20overrides.','MuVUj','now','setupHeaders','qXLTT','headers','BxTVH','pBWZR','1418SLCySU','IjlAo','5106FRdKzZ','290VndNUf','1737760aJbzcM','warn','rSSqH','dltNe','qRfZj','hosdE','isArray','entries','cmKdB','YAveP','[ranger]\x20Warning:\x20','vvMWl','keys','pid','profiles','AXEUB','SKKYz','settings','1232193yxJbPp','.tmp','projects','1033992lgfNBU'];_0x304b=function(){return _0x2fca0e;};return _0x304b();}const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x5f0311=_0x5de5,_0x30bfda={'rSSqH':function(_0x30dd5a){return _0x30dd5a();},'hosdE':'projects.json'};return join(_0x30bfda[_0x5f0311(0x1db)](getRangerHomeDir),_0x30bfda[_0x5f0311(0x1de)]);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x2e9649=_0x5de5,_0x38525d={'BxTVH':function(_0x147663){return _0x147663();},'fNxwX':function(_0x5a4578,_0x31b4c5){return _0x5a4578(_0x31b4c5);},'zBtFI':function(_0x181713){return _0x181713();},'IjlAo':function(_0x3aaccb,_0x217246){return _0x3aaccb instanceof _0x217246;},'iyTtu':function(_0x121dbb){return _0x121dbb();},'zmAkG':function(_0x3f6793,_0x12995d){return _0x3f6793(_0x12995d);},'qRfZj':function(_0x5c749b,_0xd6c5e7){return _0x5c749b!==_0xd6c5e7;},'KXIAN':_0x2e9649(0x1cc),'aMbse':function(_0x3ae148){return _0x3ae148();}},_0x372f40=_0x38525d[_0x2e9649(0x1d3)](getProjectsConfigPath);if(!_0x38525d['fNxwX'](existsSync,_0x372f40))return _0x38525d['zBtFI'](emptyConfig);let _0xa98052;try{_0xa98052=readFileSync(_0x372f40,'utf-8');}catch(_0x1735bc){const _0x3a3ddb=_0x38525d[_0x2e9649(0x1d6)](_0x1735bc,Error)?_0x1735bc[_0x2e9649(0x1bb)]:_0x38525d['fNxwX'](String,_0x1735bc);return console[_0x2e9649(0x1da)]('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x372f40+':\x20'+_0x3a3ddb+_0x2e9649(0x1cd)),_0x38525d['iyTtu'](emptyConfig);}let _0xb0febe;try{_0xb0febe=JSON['parse'](_0xa98052);}catch(_0x41ccac){const _0xbada6e=_0x41ccac instanceof Error?_0x41ccac['message']:_0x38525d['zmAkG'](String,_0x41ccac);return console[_0x2e9649(0x1da)]('[ranger]\x20Warning:\x20'+_0x372f40+_0x2e9649(0x1bc)+_0xbada6e+_0x2e9649(0x1bf)),emptyConfig();}if(!_0xb0febe||_0x38525d[_0x2e9649(0x1dd)](typeof _0xb0febe,_0x38525d['KXIAN'])||Array[_0x2e9649(0x1df)](_0xb0febe)||_0xb0febe[_0x2e9649(0x1c7)]!==CURRENT_VERSION||_0x38525d[_0x2e9649(0x1dd)](typeof _0xb0febe[_0x2e9649(0x1b9)],_0x38525d['KXIAN'])||_0xb0febe['projects']===null||Array[_0x2e9649(0x1df)](_0xb0febe[_0x2e9649(0x1b9)]))return console[_0x2e9649(0x1da)](_0x2e9649(0x1e3)+_0x372f40+'\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x38525d['aMbse'](emptyConfig);return _0xb0febe;}export function writeProjectsConfig(_0xe565cb){const _0x15431d=_0x5de5,_0x1a30b3={'pBWZR':function(_0x444d39){return _0x444d39();},'MuVUj':function(_0x38c800,_0x4ba1c0){return _0x38c800(_0x4ba1c0);},'SCzzK':function(_0x5b8c5a,_0x57d6c3,_0x938e28){return _0x5b8c5a(_0x57d6c3,_0x938e28);},'aiWAQ':function(_0x591f75,_0x3cc8c7){return _0x591f75+_0x3cc8c7;},'vvMWl':'utf-8'},_0x493e26=_0x1a30b3[_0x15431d(0x1d4)](getProjectsConfigPath),_0xb970c6=dirname(_0x493e26);!_0x1a30b3[_0x15431d(0x1ce)](existsSync,_0xb970c6)&&_0x1a30b3['SCzzK'](mkdirSync,_0xb970c6,{'recursive':!![]});const _0x3198c5=_0x493e26+'.'+process[_0x15431d(0x1b2)]+'.'+Date[_0x15431d(0x1cf)]()+_0x15431d(0x1b8),_0x1075f3=_0x1a30b3['aiWAQ'](JSON['stringify'](_0xe565cb,null,0x2),'\x0a');try{writeFileSync(_0x3198c5,_0x1075f3,{'encoding':_0x1a30b3[_0x15431d(0x1e4)],'mode':0x180}),renameSync(_0x3198c5,_0x493e26);}catch(_0x111d47){try{existsSync(_0x3198c5)&&_0x1a30b3['MuVUj'](unlinkSync,_0x3198c5);}catch{}throw _0x111d47;}}export function readProfileOverrides(_0x1e7c53,_0xef3363){const _0x30d263=_0x5de5,_0x30c10e=readProjectsConfig(),_0x84c784=_0x30c10e[_0x30d263(0x1b9)][_0x1e7c53];if(!_0x84c784||!_0x84c784[_0x30d263(0x1b3)])return null;const _0x18a993=_0x84c784['profiles'][_0xef3363];if(!_0x18a993||!_0x18a993[_0x30d263(0x1b6)])return null;return _0x18a993['settings']??null;}export function setProfileOverride(_0x9662f6,_0x490623,_0x3ec8ac,_0x55abca){const _0x335a37=_0x5de5,_0x46375d={'SKKYz':_0x335a37(0x1bd),'fBlki':function(_0x54d6bf,_0x1fa829){return _0x54d6bf(_0x1fa829);}};if(!_0x3ec8ac)throw new Error(_0x46375d[_0x335a37(0x1b5)]);const _0x5c303c=readProjectsConfig(),_0x23afe1=_0x5c303c[_0x335a37(0x1b9)][_0x9662f6]??={},_0x479ad3=_0x23afe1[_0x335a37(0x1b3)]??={},_0x151625=_0x479ad3[_0x490623]??={},_0xe80605=_0x151625[_0x335a37(0x1b6)]??={};setByKeyPath(_0xe80605,_0x3ec8ac,_0x55abca),_0x46375d['fBlki'](writeProjectsConfig,_0x5c303c);}export function unsetProfileOverride(_0x12ae80,_0x58a9f6,_0x2c69be){const _0x57bc31=_0x5de5,_0x3fad74={'pPPEV':function(_0x30535b,_0x5d9aff,_0x71469e){return _0x30535b(_0x5d9aff,_0x71469e);}};if(!_0x2c69be)throw new Error('keyPath\x20is\x20required');const _0x572a52=readProjectsConfig(),_0x3a230a=_0x572a52['projects'][_0x12ae80];if(!_0x3a230a?.['profiles'])return![];const _0x46aa0a=_0x3a230a['profiles'][_0x58a9f6];if(!_0x46aa0a?.[_0x57bc31(0x1b6)])return![];const _0x518f3d=_0x3fad74[_0x57bc31(0x1c2)](deleteByKeyPath,_0x46aa0a['settings'],_0x2c69be);if(!_0x518f3d)return![];return writeProjectsConfig(_0x572a52),!![];}export function resetProfileOverrides(_0x2b8e18,_0x46b217){const _0x27fccc=_0x5de5,_0x1c69b6={'YAveP':function(_0x3658b0,_0x3641e7){return _0x3658b0 in _0x3641e7;},'dltNe':function(_0x856630,_0x3675af){return _0x856630(_0x3675af);}},_0x345d0e=readProjectsConfig(),_0x139a68=_0x345d0e[_0x27fccc(0x1b9)][_0x2b8e18];if(!_0x139a68?.['profiles'])return;if(!_0x1c69b6[_0x27fccc(0x1e2)](_0x46b217,_0x139a68['profiles']))return;delete _0x139a68[_0x27fccc(0x1b3)][_0x46b217],Object[_0x27fccc(0x1e5)](_0x139a68['profiles'])[_0x27fccc(0x1c1)]===0x0&&(!_0x139a68[_0x27fccc(0x1c8)]?delete _0x345d0e[_0x27fccc(0x1b9)][_0x2b8e18]:_0x139a68[_0x27fccc(0x1b3)]={}),_0x1c69b6[_0x27fccc(0x1dc)](writeProjectsConfig,_0x345d0e);}export function readLastProfile(_0x2ebf96){const _0x4e5d8a=_0x5de5,_0x25a9e4=readProjectsConfig(),_0xda5aca=_0x25a9e4[_0x4e5d8a(0x1b9)][_0x2ebf96];return _0xda5aca?.['lastProfile']??null;}export function writeLastProfile(_0x3f5420,_0x1dffeb){const _0x1fcf3e=_0x5de5,_0x477ad2={'cXgGw':function(_0x17a724,_0x462db9){return _0x17a724(_0x462db9);}},_0x1ee527=readProjectsConfig(),_0x152160=_0x1ee527[_0x1fcf3e(0x1b9)][_0x3f5420]??={};_0x152160['lastProfile']=_0x1dffeb,_0x477ad2[_0x1fcf3e(0x1c9)](writeProjectsConfig,_0x1ee527);}function _0x5de5(_0x4d58c8,_0xb9a4f8){_0x4d58c8=_0x4d58c8-0x1b2;const _0x304b80=_0x304b();let _0x5de554=_0x304b80[_0x4d58c8];return _0x5de554;}export function clearLastProfile(_0x5013cb,_0x42583e){const _0x12ee1d=_0x5de5,_0xc7f00f={'qXLTT':function(_0x4a228d,_0x51e398){return _0x4a228d!==_0x51e398;},'PKhSW':function(_0x405af4,_0x9d8df0){return _0x405af4===_0x9d8df0;}},_0x90407c=readProjectsConfig(),_0x206b8d=_0x90407c[_0x12ee1d(0x1b9)][_0x5013cb];if(!_0x206b8d||_0xc7f00f[_0x12ee1d(0x1d1)](_0x206b8d[_0x12ee1d(0x1c8)],_0x42583e))return![];return delete _0x206b8d['lastProfile'],(!_0x206b8d[_0x12ee1d(0x1b3)]||_0xc7f00f['PKhSW'](Object['keys'](_0x206b8d[_0x12ee1d(0x1b3)])['length'],0x0))&&delete _0x90407c['projects'][_0x5013cb],writeProjectsConfig(_0x90407c),!![];}export function mergeCloudProfileSettings(_0x306efd,_0x395c3d){const _0x175179=_0x5de5,_0x2655b0={'XkYIN':function(_0x29df80,_0x698e67){return _0x29df80===_0x698e67;},'HZFzv':function(_0xda54e6,_0x5b09b0){return _0xda54e6===_0x5b09b0;},'uHjXJ':_0x175179(0x1d2),'rissh':function(_0x3b4fa9,_0x3b24fc){return _0x3b4fa9===_0x3b24fc;},'wrSZv':_0x175179(0x1d0),'LqZvo':function(_0x3bc975,_0x170d21){return _0x3bc975(_0x170d21);}},_0x14bed7={..._0x306efd??{}};if(!_0x395c3d)return _0x14bed7;for(const [_0x577df9,_0x3e748b]of Object[_0x175179(0x1e0)](_0x395c3d)){if(_0x3e748b===undefined)continue;if(_0x2655b0['XkYIN'](_0x3e748b,null)){delete _0x14bed7[_0x577df9];continue;}if(_0x2655b0['HZFzv'](_0x577df9,_0x2655b0[_0x175179(0x1cb)])||_0x2655b0['rissh'](_0x577df9,_0x2655b0[_0x175179(0x1c4)])){const _0x5c2973=_0x2655b0['LqZvo'](asRecord,_0x14bed7[_0x577df9])??{},_0x48273a=asRecord(_0x3e748b);if(!_0x48273a){_0x14bed7[_0x577df9]=_0x3e748b;continue;}const _0x40772d={..._0x5c2973};for(const [_0x464a44,_0x536076]of Object['entries'](_0x48273a)){if(_0x536076===null)delete _0x40772d[_0x464a44];else _0x536076!==undefined&&(_0x40772d[_0x464a44]=_0x536076);}_0x14bed7[_0x577df9]=_0x40772d;continue;}_0x14bed7[_0x577df9]=_0x3e748b;}return _0x14bed7;}function asRecord(_0x37ae5c){const _0x132e74=_0x5de5;return _0x37ae5c&&typeof _0x37ae5c==='object'&&!Array[_0x132e74(0x1df)](_0x37ae5c)?_0x37ae5c:undefined;}function setByKeyPath(_0x3c0726,_0x4c9c42,_0xeabcf6){const _0x1469db=_0x5de5,_0x33fa49={'XCYuP':function(_0x18db0a,_0x3e54c2){return _0x18db0a<_0x3e54c2;},'oQzMq':function(_0x2718e6,_0x445e63){return _0x2718e6-_0x445e63;},'lLfWV':function(_0x3e5cb6,_0x292e38){return _0x3e5cb6!==_0x292e38;},'cmKdB':_0x1469db(0x1cc),'AXEUB':function(_0x4f0dee,_0x41faa9){return _0x4f0dee-_0x41faa9;}},_0x38c7b7=_0x4c9c42[_0x1469db(0x1c0)]('.');let _0x5d31bf=_0x3c0726;for(let _0x5d22bb=0x0;_0x33fa49['XCYuP'](_0x5d22bb,_0x33fa49['oQzMq'](_0x38c7b7[_0x1469db(0x1c1)],0x1));_0x5d22bb++){const _0x5ba6da=_0x38c7b7[_0x5d22bb],_0x2bec2f=_0x5d31bf[_0x5ba6da];(!_0x2bec2f||_0x33fa49[_0x1469db(0x1c5)](typeof _0x2bec2f,_0x33fa49[_0x1469db(0x1e1)])||Array[_0x1469db(0x1df)](_0x2bec2f))&&(_0x5d31bf[_0x5ba6da]={}),_0x5d31bf=_0x5d31bf[_0x5ba6da];}_0x5d31bf[_0x38c7b7[_0x33fa49[_0x1469db(0x1b4)](_0x38c7b7['length'],0x1)]]=_0xeabcf6;}function deleteByKeyPath(_0x4883ed,_0x4c3bd2){const _0x2313d8=_0x5de5,_0x5a57da={'MHfAw':function(_0x4beb84,_0x2ff35f){return _0x4beb84-_0x2ff35f;}},_0x478c0f=_0x4c3bd2[_0x2313d8(0x1c0)]('.');let _0x12e568=_0x4883ed;for(let _0x292761=0x0;_0x292761<_0x478c0f[_0x2313d8(0x1c1)]-0x1;_0x292761++){const _0x429fc3=_0x478c0f[_0x292761],_0x700e95=_0x12e568[_0x429fc3];if(!_0x700e95||typeof _0x700e95!=='object'||Array['isArray'](_0x700e95))return![];_0x12e568=_0x700e95;}const _0x292833=_0x478c0f[_0x5a57da['MHfAw'](_0x478c0f[_0x2313d8(0x1c1)],0x1)];if(!(_0x292833 in _0x12e568))return![];return delete _0x12e568[_0x292833],!![];}
1
+ (function(_0xaddad8,_0x2eea27){const _0x1a6b85=_0x1bca,_0x1d8488=_0xaddad8();while(!![]){try{const _0x2f4978=-parseInt(_0x1a6b85(0xdc))/0x1+-parseInt(_0x1a6b85(0xd3))/0x2+parseInt(_0x1a6b85(0xb8))/0x3+-parseInt(_0x1a6b85(0xcd))/0x4+-parseInt(_0x1a6b85(0xe1))/0x5+parseInt(_0x1a6b85(0xc7))/0x6+-parseInt(_0x1a6b85(0xcb))/0x7*(-parseInt(_0x1a6b85(0xc2))/0x8);if(_0x2f4978===_0x2eea27)break;else _0x1d8488['push'](_0x1d8488['shift']());}catch(_0x4a56d6){_0x1d8488['push'](_0x1d8488['shift']());}}}(_0x3c6e,0x1da96));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';function _0x3c6e(){const _0x2575b4=['kDudb','keyPath\x20is\x20required','grlrt','pYCuI','headers','.tmp','14322ApcopO','warn','CvCIb','tFKFD','[ranger]\x20Warning:\x20','78895CedEjT','iYPXm','qQoFS','version','dwbIH','VLYvg','length','158679wnjGyu','entries','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','lastProfile','projects','MtBcl','now','stringify','message','fwVHw','2905768HGFbdZ','parse','tOgCD','object','keys','690816ZzXwwC','nmGfK','profiles','bWFKK','7BMFubm','settings','780960OWHjAT','utf-8','split','RzwQQ','mjskC','hrPFi','368830qLaNkm','lCcmd','craxP'];_0x3c6e=function(){return _0x2575b4;};return _0x3c6e();}import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x3d2e11=_0x1bca,_0x56496f={'tOgCD':function(_0x422c23,_0x3e2823,_0x300626){return _0x422c23(_0x3e2823,_0x300626);},'drMlJ':function(_0x570f10){return _0x570f10();},'ASdkl':'projects.json'};return _0x56496f[_0x3d2e11(0xc4)](join,_0x56496f['drMlJ'](getRangerHomeDir),_0x56496f['ASdkl']);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0xd3c320=_0x1bca,_0x88a108={'grlrt':function(_0x16323e,_0x184b3d){return _0x16323e(_0x184b3d);},'stofs':function(_0x30e827,_0xa7611b,_0x446508){return _0x30e827(_0xa7611b,_0x446508);},'qQoFS':'utf-8','bWFKK':function(_0x30d33e,_0x358da7){return _0x30d33e instanceof _0x358da7;},'fwVHw':function(_0x472d2d){return _0x472d2d();},'craxP':function(_0x1ed9f4,_0x55a243){return _0x1ed9f4!==_0x55a243;},'iYPXm':_0xd3c320(0xc5),'FZpLZ':function(_0x2c6968,_0x452335){return _0x2c6968!==_0x452335;},'wAKdp':function(_0xbbd46d,_0x3c2045){return _0xbbd46d===_0x3c2045;},'pYCuI':function(_0x3821ea){return _0x3821ea();}},_0x3ef906=getProjectsConfigPath();if(!_0x88a108['grlrt'](existsSync,_0x3ef906))return emptyConfig();let _0x35b85d;try{_0x35b85d=_0x88a108['stofs'](readFileSync,_0x3ef906,_0x88a108[_0xd3c320(0xe3)]);}catch(_0x40383f){const _0x15ccb9=_0x40383f instanceof Error?_0x40383f[_0xd3c320(0xc0)]:String(_0x40383f);return console['warn']('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x3ef906+':\x20'+_0x15ccb9+'.\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}let _0x5e0496;try{_0x5e0496=JSON[_0xd3c320(0xc3)](_0x35b85d);}catch(_0x42d8bd){const _0x1db8a0=_0x88a108[_0xd3c320(0xca)](_0x42d8bd,Error)?_0x42d8bd[_0xd3c320(0xc0)]:_0x88a108[_0xd3c320(0xd8)](String,_0x42d8bd);return console['warn'](_0xd3c320(0xe0)+_0x3ef906+'\x20is\x20not\x20valid\x20JSON\x20('+_0x1db8a0+').\x20Ignoring\x20local\x20profile\x20overrides.'),_0x88a108[_0xd3c320(0xc1)](emptyConfig);}if(!_0x5e0496||_0x88a108['craxP'](typeof _0x5e0496,_0x88a108[_0xd3c320(0xe2)])||Array['isArray'](_0x5e0496)||_0x88a108[_0xd3c320(0xd5)](_0x5e0496[_0xd3c320(0xe4)],CURRENT_VERSION)||_0x88a108['FZpLZ'](typeof _0x5e0496[_0xd3c320(0xbc)],_0xd3c320(0xc5))||_0x88a108['wAKdp'](_0x5e0496['projects'],null)||Array['isArray'](_0x5e0496['projects']))return console[_0xd3c320(0xdd)](_0xd3c320(0xe0)+_0x3ef906+_0xd3c320(0xba)),_0x88a108[_0xd3c320(0xd9)](emptyConfig);return _0x5e0496;}export function writeProjectsConfig(_0x3909d5){const _0x33c770=_0x1bca,_0x26f89d={'IceMH':function(_0x259563,_0xbf3e8e){return _0x259563+_0xbf3e8e;},'MtBcl':function(_0x20cbeb,_0x1d313d,_0x35f07b,_0x2ba93a){return _0x20cbeb(_0x1d313d,_0x35f07b,_0x2ba93a);},'KgGhJ':function(_0x28242b,_0x346ae5,_0x300244){return _0x28242b(_0x346ae5,_0x300244);}},_0x2f88f7=getProjectsConfigPath(),_0x3085cd=dirname(_0x2f88f7);!existsSync(_0x3085cd)&&mkdirSync(_0x3085cd,{'recursive':!![]});const _0x223406=_0x2f88f7+'.'+process['pid']+'.'+Date[_0x33c770(0xbe)]()+_0x33c770(0xdb),_0x710fc2=_0x26f89d['IceMH'](JSON[_0x33c770(0xbf)](_0x3909d5,null,0x2),'\x0a');try{_0x26f89d[_0x33c770(0xbd)](writeFileSync,_0x223406,_0x710fc2,{'encoding':_0x33c770(0xce),'mode':0x180}),_0x26f89d['KgGhJ'](renameSync,_0x223406,_0x2f88f7);}catch(_0x2cd3e3){try{existsSync(_0x223406)&&unlinkSync(_0x223406);}catch{}throw _0x2cd3e3;}}export function readProfileOverrides(_0x5491e8,_0x5297ca){const _0x2ddf5b=_0x1bca,_0x608ea3={'rlOIp':function(_0x1f004c){return _0x1f004c();}},_0x439a03=_0x608ea3['rlOIp'](readProjectsConfig),_0xd7b0e5=_0x439a03['projects'][_0x5491e8];if(!_0xd7b0e5||!_0xd7b0e5[_0x2ddf5b(0xc9)])return null;const _0x188af6=_0xd7b0e5['profiles'][_0x5297ca];if(!_0x188af6||!_0x188af6[_0x2ddf5b(0xcc)])return null;return _0x188af6['settings']??null;}export function setProfileOverride(_0x13bb79,_0x177956,_0x3b8108,_0x1559d8){if(!_0x3b8108)throw new Error('keyPath\x20is\x20required');const _0x490024=readProjectsConfig(),_0x151216=_0x490024['projects'][_0x13bb79]??={},_0x4d1edf=_0x151216['profiles']??={},_0x29b0e7=_0x4d1edf[_0x177956]??={},_0x3d8b89=_0x29b0e7['settings']??={};setByKeyPath(_0x3d8b89,_0x3b8108,_0x1559d8),writeProjectsConfig(_0x490024);}export function unsetProfileOverride(_0x1d9ba7,_0x3c378c,_0x3330ac){const _0x3c25fa=_0x1bca,_0x2b2147={'WCwAU':function(_0x1934b2,_0x7f2c24){return _0x1934b2(_0x7f2c24);}};if(!_0x3330ac)throw new Error(_0x3c25fa(0xd7));const _0x1a861a=readProjectsConfig(),_0x2d8ef6=_0x1a861a[_0x3c25fa(0xbc)][_0x1d9ba7];if(!_0x2d8ef6?.['profiles'])return![];const _0x2839e4=_0x2d8ef6['profiles'][_0x3c378c];if(!_0x2839e4?.[_0x3c25fa(0xcc)])return![];const _0x55e9b8=deleteByKeyPath(_0x2839e4[_0x3c25fa(0xcc)],_0x3330ac);if(!_0x55e9b8)return![];return _0x2b2147['WCwAU'](writeProjectsConfig,_0x1a861a),!![];}export function resetProfileOverrides(_0x2913fa,_0x55988c){const _0x35d1d5=_0x1bca,_0x23b777={'tFKFD':function(_0xd876f9){return _0xd876f9();}},_0x4fcab7=_0x23b777[_0x35d1d5(0xdf)](readProjectsConfig),_0x52ee32=_0x4fcab7['projects'][_0x2913fa];if(!_0x52ee32?.['profiles'])return;if(!(_0x55988c in _0x52ee32['profiles']))return;delete _0x52ee32[_0x35d1d5(0xc9)][_0x55988c],Object['keys'](_0x52ee32['profiles'])['length']===0x0&&(!_0x52ee32['lastProfile']?delete _0x4fcab7[_0x35d1d5(0xbc)][_0x2913fa]:_0x52ee32['profiles']={}),writeProjectsConfig(_0x4fcab7);}export function readLastProfile(_0x211793){const _0x5ef1bb=_0x1bca,_0x523792={'DnNCK':function(_0x30ebfa){return _0x30ebfa();}},_0x24e4d1=_0x523792['DnNCK'](readProjectsConfig),_0xde17b0=_0x24e4d1[_0x5ef1bb(0xbc)][_0x211793];return _0xde17b0?.['lastProfile']??null;}export function writeLastProfile(_0xbd4961,_0x16ea42){const _0x3960a3=_0x1bca,_0x2eca28={'nmGfK':function(_0x4fc494,_0x252470){return _0x4fc494(_0x252470);}},_0x37ca50=readProjectsConfig(),_0x508911=_0x37ca50['projects'][_0xbd4961]??={};_0x508911['lastProfile']=_0x16ea42,_0x2eca28[_0x3960a3(0xc8)](writeProjectsConfig,_0x37ca50);}export function clearLastProfile(_0x466177,_0x165ad4){const _0x5a1ff5=_0x1bca,_0x3b4981=readProjectsConfig(),_0x409e0f=_0x3b4981['projects'][_0x466177];if(!_0x409e0f||_0x409e0f['lastProfile']!==_0x165ad4)return![];return delete _0x409e0f[_0x5a1ff5(0xbb)],(!_0x409e0f[_0x5a1ff5(0xc9)]||Object[_0x5a1ff5(0xc6)](_0x409e0f['profiles'])['length']===0x0)&&delete _0x3b4981['projects'][_0x466177],writeProjectsConfig(_0x3b4981),!![];}export function mergeCloudProfileSettings(_0x59543e,_0x4245cf){const _0xb63e9e=_0x1bca,_0x25dc50={'hrPFi':function(_0x21d01d,_0x36f7c6){return _0x21d01d??_0x36f7c6;},'FECwR':function(_0x5d41e4,_0x5cbc35){return _0x5d41e4===_0x5cbc35;},'CvCIb':function(_0xded35,_0x136988){return _0xded35===_0x136988;},'dwbIH':_0xb63e9e(0xda),'VLYvg':'setupHeaders','RzwQQ':function(_0x4bde9f,_0x3d5af2){return _0x4bde9f(_0x3d5af2);},'MRypO':function(_0x3a228e,_0x589b3d){return _0x3a228e!==_0x589b3d;}},_0x4d7fa2={..._0x25dc50[_0xb63e9e(0xd2)](_0x59543e,{})};if(!_0x4245cf)return _0x4d7fa2;for(const [_0x21c6c8,_0x114e37]of Object[_0xb63e9e(0xb9)](_0x4245cf)){if(_0x114e37===undefined)continue;if(_0x25dc50['FECwR'](_0x114e37,null)){delete _0x4d7fa2[_0x21c6c8];continue;}if(_0x25dc50[_0xb63e9e(0xde)](_0x21c6c8,_0x25dc50[_0xb63e9e(0xe5)])||_0x21c6c8===_0x25dc50[_0xb63e9e(0xb6)]){const _0x3c922c=_0x25dc50[_0xb63e9e(0xd0)](asRecord,_0x4d7fa2[_0x21c6c8])??{},_0x5a1bdb=_0x25dc50[_0xb63e9e(0xd0)](asRecord,_0x114e37);if(!_0x5a1bdb){_0x4d7fa2[_0x21c6c8]=_0x114e37;continue;}const _0x59e9b9={..._0x3c922c};for(const [_0xf65f5c,_0x61db86]of Object['entries'](_0x5a1bdb)){if(_0x25dc50[_0xb63e9e(0xde)](_0x61db86,null))delete _0x59e9b9[_0xf65f5c];else _0x25dc50['MRypO'](_0x61db86,undefined)&&(_0x59e9b9[_0xf65f5c]=_0x61db86);}_0x4d7fa2[_0x21c6c8]=_0x59e9b9;continue;}_0x4d7fa2[_0x21c6c8]=_0x114e37;}return _0x4d7fa2;}function asRecord(_0x201475){const _0x3021ae=_0x1bca;return _0x201475&&typeof _0x201475===_0x3021ae(0xc5)&&!Array['isArray'](_0x201475)?_0x201475:undefined;}function _0x1bca(_0x4b645a,_0x2f8f78){_0x4b645a=_0x4b645a-0xb6;const _0x3c6eb1=_0x3c6e();let _0x1bca53=_0x3c6eb1[_0x4b645a];return _0x1bca53;}function setByKeyPath(_0x453bbd,_0x28804f,_0x2e3967){const _0x24a599=_0x1bca,_0x128629={'YajpS':function(_0x5c7174,_0x20dfe4){return _0x5c7174<_0x20dfe4;},'uKFWu':function(_0x4b4eb8,_0x22e827){return _0x4b4eb8-_0x22e827;},'mjskC':_0x24a599(0xc5)},_0x4e5f39=_0x28804f[_0x24a599(0xcf)]('.');let _0x3a8b6d=_0x453bbd;for(let _0x5964b1=0x0;_0x128629['YajpS'](_0x5964b1,_0x128629['uKFWu'](_0x4e5f39[_0x24a599(0xb7)],0x1));_0x5964b1++){const _0x21606e=_0x4e5f39[_0x5964b1],_0x2a74f2=_0x3a8b6d[_0x21606e];(!_0x2a74f2||typeof _0x2a74f2!==_0x128629[_0x24a599(0xd1)]||Array['isArray'](_0x2a74f2))&&(_0x3a8b6d[_0x21606e]={}),_0x3a8b6d=_0x3a8b6d[_0x21606e];}_0x3a8b6d[_0x4e5f39[_0x128629['uKFWu'](_0x4e5f39[_0x24a599(0xb7)],0x1)]]=_0x2e3967;}function deleteByKeyPath(_0x55f822,_0x27da85){const _0x4ff9c2=_0x1bca,_0x8ed910={'wuEQG':function(_0x35d55b,_0x109720){return _0x35d55b<_0x109720;},'lCcmd':function(_0xddfd4d,_0x34730e){return _0xddfd4d!==_0x34730e;},'kDudb':function(_0xa43f29,_0x1cd435){return _0xa43f29-_0x1cd435;}},_0x1424f4=_0x27da85['split']('.');let _0x4dee99=_0x55f822;for(let _0x20448e=0x0;_0x8ed910['wuEQG'](_0x20448e,_0x1424f4[_0x4ff9c2(0xb7)]-0x1);_0x20448e++){const _0x18427c=_0x1424f4[_0x20448e],_0x288692=_0x4dee99[_0x18427c];if(!_0x288692||_0x8ed910[_0x4ff9c2(0xd4)](typeof _0x288692,_0x4ff9c2(0xc5))||Array['isArray'](_0x288692))return![];_0x4dee99=_0x288692;}const _0x36119c=_0x1424f4[_0x8ed910[_0x4ff9c2(0xd6)](_0x1424f4['length'],0x1)];if(!(_0x36119c in _0x4dee99))return![];return delete _0x4dee99[_0x36119c],!![];}
@@ -1 +1 @@
1
- function _0x55a9(){const _0x1d51bd=['utf-8','model','32199QiuLbQ','32Xmxvwj','config.json','105140BCuFLP','1666770Oleysa','44YLaSeW','2scfrmB','301236GxjfUn','35bbaYQt','153124CGGhyt','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','string','gkGly','object','lQtGu','195BRMhYV','54666QRXcBk','409350HuWSdT','6hLsqwp','message'];_0x55a9=function(){return _0x1d51bd;};return _0x55a9();}(function(_0x46d72c,_0x3b2622){const _0x50600d=_0x4b69,_0x2e67a5=_0x46d72c();while(!![]){try{const _0x4c90c8=-parseInt(_0x50600d(0x8b))/0x1+parseInt(_0x50600d(0x88))/0x2*(-parseInt(_0x50600d(0x82))/0x3)+parseInt(_0x50600d(0x85))/0x4*(-parseInt(_0x50600d(0x8a))/0x5)+-parseInt(_0x50600d(0x7e))/0x6*(-parseInt(_0x50600d(0x86))/0x7)+-parseInt(_0x50600d(0x83))/0x8*(-parseInt(_0x50600d(0x7c))/0x9)+parseInt(_0x50600d(0x7d))/0xa*(-parseInt(_0x50600d(0x87))/0xb)+parseInt(_0x50600d(0x89))/0xc*(parseInt(_0x50600d(0x7b))/0xd);if(_0x4c90c8===_0x3b2622)break;else _0x2e67a5['push'](_0x2e67a5['shift']());}catch(_0x5e23b4){_0x2e67a5['push'](_0x2e67a5['shift']());}}}(_0x55a9,0x1f17f));import{readFile}from'fs/promises';import{existsSync}from'fs';function _0x4b69(_0x1532b3,_0xe15308){_0x1532b3=_0x1532b3-0x76;const _0x55a9ef=_0x55a9();let _0x4b6991=_0x55a9ef[_0x1532b3];return _0x4b6991;}import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x5276b6=_0x4b69,_0x595bbe={'gkGly':function(_0x4af6c2){return _0x4af6c2();},'BwNxe':_0x5276b6(0x84)};return join(_0x595bbe[_0x5276b6(0x78)](getRangerDir),_0x595bbe['BwNxe']);}export async function loadRangerConfig(){const _0x398380=_0x4b69,_0x3edc05={'lQtGu':function(_0x30bd0a,_0x41a74a,_0x31646e){return _0x30bd0a(_0x41a74a,_0x31646e);},'qdSlM':function(_0x6d259f,_0x82c6e8){return _0x6d259f!==_0x82c6e8;},'vWZeO':_0x398380(0x77),'tsdhI':function(_0x2f35d0,_0x1e866c){return _0x2f35d0 instanceof _0x1e866c;}},_0x9c390c=getRangerConfigPath();if(!existsSync(_0x9c390c))return{};try{const _0x41bd34=await _0x3edc05[_0x398380(0x7a)](readFile,_0x9c390c,_0x398380(0x80)),_0x29d4f4=JSON['parse'](_0x41bd34);if(!_0x29d4f4||_0x3edc05['qdSlM'](typeof _0x29d4f4,_0x398380(0x79))||Array['isArray'](_0x29d4f4))return{};const _0x43e905={},_0x17e443=_0x29d4f4[_0x398380(0x81)];return typeof _0x17e443===_0x3edc05['vWZeO']&&(_0x43e905['model']=_0x17e443),_0x43e905;}catch(_0x228b80){const _0x414ee5=_0x3edc05['tsdhI'](_0x228b80,Error)?_0x228b80[_0x398380(0x7f)]:String(_0x228b80);return console['warn'](_0x398380(0x76)+_0x9c390c+':\x20'+_0x414ee5),{};}}
1
+ (function(_0x3459d5,_0x2f2403){const _0x48f71b=_0x7608,_0x2abd7e=_0x3459d5();while(!![]){try{const _0x1bd434=-parseInt(_0x48f71b(0xdf))/0x1*(-parseInt(_0x48f71b(0xdb))/0x2)+-parseInt(_0x48f71b(0xd9))/0x3*(parseInt(_0x48f71b(0xd8))/0x4)+-parseInt(_0x48f71b(0xd4))/0x5+parseInt(_0x48f71b(0xe3))/0x6+-parseInt(_0x48f71b(0xe6))/0x7*(-parseInt(_0x48f71b(0xd7))/0x8)+parseInt(_0x48f71b(0xdc))/0x9*(parseInt(_0x48f71b(0xe4))/0xa)+-parseInt(_0x48f71b(0xe0))/0xb;if(_0x1bd434===_0x2f2403)break;else _0x2abd7e['push'](_0x2abd7e['shift']());}catch(_0x957052){_0x2abd7e['push'](_0x2abd7e['shift']());}}}(_0x251f,0x2b262));function _0x251f(){const _0x4bb2b5=['Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','405495FOIMUP','model','isArray','43712qAkEpG','18456osznPr','6CeYbjG','utf-8','504682GzUdNl','9vmgDJx','parse','string','1aRhihL','7100005xzNAno','ZnRPb','EAixI','1902408pVZPmk','1682630VljjKj','message','224nimzvZ'];_0x251f=function(){return _0x4bb2b5;};return _0x251f();}import{readFile}from'fs/promises';function _0x7608(_0x3bf664,_0x397897){_0x3bf664=_0x3bf664-0xd3;const _0x251fbf=_0x251f();let _0x760898=_0x251fbf[_0x3bf664];return _0x760898;}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 _0x52d993=_0x7608,_0x5b4ac3={'kkNnH':function(_0x4d0790,_0x38a093){return _0x4d0790(_0x38a093);},'EAixI':_0x52d993(0xda),'xKalb':'object','ZnRPb':function(_0xca4b98,_0x5875cc){return _0xca4b98===_0x5875cc;},'TtpND':_0x52d993(0xde)},_0x482c0c=getRangerConfigPath();if(!_0x5b4ac3['kkNnH'](existsSync,_0x482c0c))return{};try{const _0x32a864=await readFile(_0x482c0c,_0x5b4ac3[_0x52d993(0xe2)]),_0x2d0efe=JSON[_0x52d993(0xdd)](_0x32a864);if(!_0x2d0efe||typeof _0x2d0efe!==_0x5b4ac3['xKalb']||Array[_0x52d993(0xd6)](_0x2d0efe))return{};const _0x35a0c8={},_0x125e8c=_0x2d0efe['model'];return _0x5b4ac3[_0x52d993(0xe1)](typeof _0x125e8c,_0x5b4ac3['TtpND'])&&(_0x35a0c8[_0x52d993(0xd5)]=_0x125e8c),_0x35a0c8;}catch(_0x1105dd){const _0x6e5bfc=_0x1105dd instanceof Error?_0x1105dd[_0x52d993(0xe5)]:String(_0x1105dd);return console['warn'](_0x52d993(0xd3)+_0x482c0c+':\x20'+_0x6e5bfc),{};}}
@@ -1 +1 @@
1
- (function(_0x56d8b1,_0x3759bd){const _0x4730ae=_0x1c82,_0x48e70f=_0x56d8b1();while(!![]){try{const _0x1e6b83=parseInt(_0x4730ae(0x9d))/0x1+parseInt(_0x4730ae(0x95))/0x2+parseInt(_0x4730ae(0x93))/0x3*(-parseInt(_0x4730ae(0x92))/0x4)+-parseInt(_0x4730ae(0x9c))/0x5*(parseInt(_0x4730ae(0x8c))/0x6)+parseInt(_0x4730ae(0x96))/0x7+parseInt(_0x4730ae(0x94))/0x8*(parseInt(_0x4730ae(0x9a))/0x9)+-parseInt(_0x4730ae(0x91))/0xa*(parseInt(_0x4730ae(0x90))/0xb);if(_0x1e6b83===_0x3759bd)break;else _0x48e70f['push'](_0x48e70f['shift']());}catch(_0x543e31){_0x48e70f['push'](_0x48e70f['shift']());}}}(_0x5d82,0xcac87));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x5ac3ff=_0x1c82,_0xa223f0={'JjNrq':function(_0x39bc59,_0x5aebd1){return _0x39bc59(_0x5aebd1);},'wRMih':function(_0x17dff1,_0x51ca12){return _0x17dff1!==_0x51ca12;},'dWppb':function(_0x283eea,_0x32b7e5){return _0x283eea(_0x32b7e5);},'ugbcP':_0x5ac3ff(0x8f)};let _0x43bc7c=process['cwd']();const _0x4fc489=_0xa223f0[_0x5ac3ff(0x9b)](parse,_0x43bc7c)['root'];while(_0xa223f0[_0x5ac3ff(0x8b)](_0x43bc7c,_0x4fc489)){if(_0xa223f0[_0x5ac3ff(0x9b)](existsSync,join(_0x43bc7c,_0x5ac3ff(0x8f))))return _0x43bc7c;_0x43bc7c=_0xa223f0['dWppb'](dirname,_0x43bc7c);}if(existsSync(join(_0x4fc489,_0xa223f0['ugbcP'])))return _0x4fc489;const _0x54fe29=findGitRoot();if(_0x54fe29)return _0x54fe29;return process['cwd']();}export function getRangerDir(){const _0x1f2839={'MMMrW':'.ranger'};return join(getRangerRoot(),_0x1f2839['MMMrW']);}export function findGitRoot(){const _0x44fef2=_0x1c82,_0x2f3ca8={'MBjJC':function(_0x113620,_0x420e8c,_0x369af3){return _0x113620(_0x420e8c,_0x369af3);},'DBrMp':function(_0x5d05f9,_0x5596fd){return _0x5d05f9(_0x5596fd);},'HoelQ':function(_0x366548,_0x6ffa38,_0x5a3510){return _0x366548(_0x6ffa38,_0x5a3510);},'sllbD':'.git'};let _0x4b4763=process[_0x44fef2(0x98)]();const _0x2ad1b1=parse(_0x4b4763)['root'];while(_0x4b4763!==_0x2ad1b1){if(existsSync(_0x2f3ca8[_0x44fef2(0x99)](join,_0x4b4763,'.git')))return _0x4b4763;_0x4b4763=dirname(_0x4b4763);}if(_0x2f3ca8['DBrMp'](existsSync,_0x2f3ca8[_0x44fef2(0x8e)](join,_0x2ad1b1,_0x2f3ca8[_0x44fef2(0x8d)])))return _0x2ad1b1;return null;}function _0x1c82(_0x4e26ed,_0x30d9fa){_0x4e26ed=_0x4e26ed-0x8b;const _0x5d821f=_0x5d82();let _0x1c823c=_0x5d821f[_0x4e26ed];return _0x1c823c;}export function getRangerHomeDir(){const _0xeabd55=_0x1c82,_0x3dc661={'iBjRY':function(_0x2a3e9a){return _0x2a3e9a();},'xFrMk':_0xeabd55(0x8f)};return join(_0x3dc661[_0xeabd55(0x97)](homedir),_0x3dc661['xFrMk']);}function _0x5d82(){const _0x3ba055=['HoelQ','.ranger','1518616upfaeF','50XjxmUH','32436oYvynd','33jgsfLn','768KQLxVU','277724HGbQDa','11205908lYkadK','iBjRY','cwd','MBjJC','102294GKjugG','JjNrq','21585nuKWFi','385160XSqVEX','wRMih','2232fjKsaD','sllbD'];_0x5d82=function(){return _0x3ba055;};return _0x5d82();}
1
+ (function(_0x4a79dd,_0x58582e){const _0x4a2a58=_0x557a,_0x576d16=_0x4a79dd();while(!![]){try{const _0x4d636b=parseInt(_0x4a2a58(0xbd))/0x1+parseInt(_0x4a2a58(0xaa))/0x2*(parseInt(_0x4a2a58(0xba))/0x3)+-parseInt(_0x4a2a58(0xae))/0x4*(-parseInt(_0x4a2a58(0xaf))/0x5)+-parseInt(_0x4a2a58(0xb3))/0x6+-parseInt(_0x4a2a58(0xb4))/0x7+parseInt(_0x4a2a58(0xab))/0x8+-parseInt(_0x4a2a58(0xb0))/0x9*(-parseInt(_0x4a2a58(0xbc))/0xa);if(_0x4d636b===_0x58582e)break;else _0x576d16['push'](_0x576d16['shift']());}catch(_0x195f3a){_0x576d16['push'](_0x576d16['shift']());}}}(_0x42cd,0x74598));import{dirname,join,parse}from'path';import{existsSync}from'fs';function _0x42cd(){const _0x5c1639=['18WDztth','yUkQZ','cwd','1609920mXWMmw','3898867pTMRnn','root','vVLPo','SUxEg','ZDGvF','lDpEI','3189vZFJSZ','xaQvM','2320390yGjXmM','202070FSQZDn','502UnxTuD','1769152EKxEGg','klkkC','UeYkU','8RqTdqO','369410Inzcky'];_0x42cd=function(){return _0x5c1639;};return _0x42cd();}import{homedir}from'os';export function getRangerRoot(){const _0x16aa59=_0x557a,_0x3c92f2={'vVLPo':function(_0x3f044a,_0x534b7f){return _0x3f044a(_0x534b7f);},'yUkQZ':'.ranger','GQjfy':function(_0x56f493,_0x13239a,_0x1b337d){return _0x56f493(_0x13239a,_0x1b337d);},'xaQvM':function(_0x5a8984){return _0x5a8984();}};let _0x2fdc37=process[_0x16aa59(0xb2)]();const _0x422a5e=parse(_0x2fdc37)[_0x16aa59(0xb5)];while(_0x2fdc37!==_0x422a5e){if(_0x3c92f2[_0x16aa59(0xb6)](existsSync,join(_0x2fdc37,_0x3c92f2[_0x16aa59(0xb1)])))return _0x2fdc37;_0x2fdc37=dirname(_0x2fdc37);}if(existsSync(_0x3c92f2['GQjfy'](join,_0x422a5e,'.ranger')))return _0x422a5e;const _0x4e66f1=_0x3c92f2[_0x16aa59(0xbb)](findGitRoot);if(_0x4e66f1)return _0x4e66f1;return process['cwd']();}export function getRangerDir(){const _0x45cdd7=_0x557a,_0x24cce4={'bEUML':function(_0x21947b){return _0x21947b();},'SUxEg':'.ranger'};return join(_0x24cce4['bEUML'](getRangerRoot),_0x24cce4[_0x45cdd7(0xb7)]);}export function findGitRoot(){const _0x4fc58c=_0x557a,_0x350145={'ZDGvF':function(_0x178e2b,_0x4b3c4b){return _0x178e2b!==_0x4b3c4b;},'lDpEI':function(_0x31284e,_0x2a10e1){return _0x31284e(_0x2a10e1);},'qWvws':function(_0x3991ff,_0x1dbc85,_0x42a392){return _0x3991ff(_0x1dbc85,_0x42a392);},'xBCNr':'.git'};let _0x11b915=process[_0x4fc58c(0xb2)]();const _0x1027bb=parse(_0x11b915)[_0x4fc58c(0xb5)];while(_0x350145[_0x4fc58c(0xb8)](_0x11b915,_0x1027bb)){if(_0x350145[_0x4fc58c(0xb9)](existsSync,_0x350145['qWvws'](join,_0x11b915,'.git')))return _0x11b915;_0x11b915=dirname(_0x11b915);}if(existsSync(join(_0x1027bb,_0x350145['xBCNr'])))return _0x1027bb;return null;}function _0x557a(_0x56e701,_0x1f1933){_0x56e701=_0x56e701-0xaa;const _0x42cd46=_0x42cd();let _0x557a52=_0x42cd46[_0x56e701];return _0x557a52;}export function getRangerHomeDir(){const _0x34bca7=_0x557a,_0x444371={'UeYkU':function(_0x4332ac,_0x1da080,_0x1e49d0){return _0x4332ac(_0x1da080,_0x1e49d0);},'klkkC':'.ranger'};return _0x444371[_0x34bca7(0xad)](join,homedir(),_0x444371[_0x34bca7(0xac)]);}
@@ -0,0 +1 @@
1
+ const _0x5dfa45=_0x4eb7;(function(_0x2f759e,_0x4b5c5b){const _0x2610b3=_0x4eb7,_0x1ed27e=_0x2f759e();while(!![]){try{const _0x3ea867=parseInt(_0x2610b3(0x1ac))/0x1+parseInt(_0x2610b3(0x1ae))/0x2*(-parseInt(_0x2610b3(0x1b2))/0x3)+-parseInt(_0x2610b3(0x1a1))/0x4+parseInt(_0x2610b3(0x1a5))/0x5+parseInt(_0x2610b3(0x1a6))/0x6+parseInt(_0x2610b3(0x1a3))/0x7*(parseInt(_0x2610b3(0x1b0))/0x8)+-parseInt(_0x2610b3(0x1d1))/0x9*(parseInt(_0x2610b3(0x1be))/0xa);if(_0x3ea867===_0x4b5c5b)break;else _0x1ed27e['push'](_0x1ed27e['shift']());}catch(_0x41572c){_0x1ed27e['push'](_0x1ed27e['shift']());}}}(_0x56a8,0x2fad1));function _0x56a8(){const _0x109c9d=['\x0astdout:\x20','error','\x20--json','object','command','null','pAAzS','2630EzESrH','socketPath','HzzgR','length','dGEuh','GwTJI','slice','\x20does\x20not\x20expose\x20a\x20','parse','qVuJZ','pipe','rangerwright','dNpvz','timeoutMs','cwd','\x0astderr:\x20','subcommand','sTKFI','eMBfS','9270aICypt','configPath','anCKa','VYWqF','qSSqQ','package.json','timed\x20out\x20after\x20','resolve','jyTaA','FlujK','177556qBexRm','argv','119hrCONV','stderr','1411570LuHzGq','1764066aDLMFU','env','artifactDir','\x20signal=','data','kIadi','221660NXeIKa','sessionId','2CiuNQC','fMmXG','36016HQZfyg','iWsov','1091877UKEKyj','yPXSH','SIGKILL','\x20binary','bin'];_0x56a8=function(){return _0x109c9d;};return _0x56a8();}import{spawn}from'child_process';import{createRequire}from'module';import{dirname,join}from'path';function _0x4eb7(_0x356cab,_0x351b75){_0x356cab=_0x356cab-0x19d;const _0x56a8a6=_0x56a8();let _0x4eb744=_0x56a8a6[_0x356cab];return _0x4eb744;}import{readFileSync}from'fs';import{quoteShellArg}from'./playwrightCli.js';export const RANGERWRIGHT_CLI_PACKAGE='@ranger-testing/rangerwright';export const RANGERWRIGHT_CLI_BINARY=_0x5dfa45(0x1c9);function readPackageJson(_0x57aa45){const _0x44341=_0x5dfa45,_0xe07a32={'sTKFI':function(_0x57d66e,_0x493e1c,_0x2280b4){return _0x57d66e(_0x493e1c,_0x2280b4);},'vHRdd':_0x44341(0x1ba)},_0x120d1b=_0xe07a32[_0x44341(0x1cf)](readFileSync,_0x57aa45,'utf-8'),_0x35f1fb=JSON[_0x44341(0x1c6)](_0x120d1b);if(!_0x35f1fb||typeof _0x35f1fb!==_0xe07a32['vHRdd'])return{};return _0x35f1fb;}export function resolveRangerwrightCliBinary(){const _0xeb2f0b=_0x5dfa45,_0x35a8db={'pAAzS':function(_0xff70d3,_0x4fe0af,_0x2db913){return _0xff70d3(_0x4fe0af,_0x2db913);},'kIadi':function(_0x2c28cb,_0x336ad9){return _0x2c28cb(_0x336ad9);},'xeObc':function(_0x3013e7,_0x5638b2){return _0x3013e7(_0x5638b2);},'dNpvz':function(_0x4aaee9,_0x1da4a7,_0x414782){return _0x4aaee9(_0x1da4a7,_0x414782);}},_0x1051ec=createRequire(process[_0xeb2f0b(0x1a2)][0x1]||_0x35a8db[_0xeb2f0b(0x1bd)](join,process[_0xeb2f0b(0x1cc)](),_0xeb2f0b(0x1d6))),_0x402183=_0x1051ec[_0xeb2f0b(0x19e)](RANGERWRIGHT_CLI_PACKAGE+'/package.json'),_0x5153d7=_0x35a8db[_0xeb2f0b(0x1ab)](dirname,_0x402183),_0x1e6a6d=_0x35a8db['xeObc'](readPackageJson,_0x402183),_0x15ff22=typeof _0x1e6a6d['bin']==='string'?_0x1e6a6d[_0xeb2f0b(0x1b6)]:_0x1e6a6d['bin']?.[RANGERWRIGHT_CLI_BINARY];if(!_0x15ff22)throw new Error(RANGERWRIGHT_CLI_PACKAGE+_0xeb2f0b(0x1c5)+RANGERWRIGHT_CLI_BINARY+_0xeb2f0b(0x1b5));return _0x35a8db[_0xeb2f0b(0x1ca)](join,_0x5153d7,_0x15ff22);}export function buildRangerwrightCliEnv(_0x415cc5){const _0x3ba332=_0x5dfa45;return{'RANGERWRIGHT_SESSION':_0x415cc5[_0x3ba332(0x1ad)],'RANGERWRIGHT_CONFIG':_0x415cc5[_0x3ba332(0x1d2)],'RANGERWRIGHT_ARTIFACT_DIR':_0x415cc5[_0x3ba332(0x1a8)],..._0x415cc5[_0x3ba332(0x1bf)]?{'RANGERWRIGHT_SOCKET_PATH':_0x415cc5[_0x3ba332(0x1bf)]}:{}};}export function applyRangerwrightCliEnv(_0x50a67e,_0x59188b){const _0x5e3568={'unKUB':function(_0x3e2bc1,_0x1cc555){return _0x3e2bc1(_0x1cc555);}};Object['assign'](_0x50a67e,_0x5e3568['unKUB'](buildRangerwrightCliEnv,_0x59188b));}export function buildRangerwrightCliCommandPrefix(_0x5e122a=resolveRangerwrightCliBinary()){const _0x3e312f=_0x5dfa45,_0x2f5fb6={'HrQJg':function(_0x561936,_0x152349){return _0x561936(_0x152349);}};return _0x2f5fb6['HrQJg'](quoteShellArg,_0x5e122a)+_0x3e312f(0x1b9);}function getRangerwrightSubcommand(_0x159f4c){const _0x492762={'fVpIC':'unknown'};return _0x159f4c[0x0]??_0x492762['fVpIC'];}export function buildRangerwrightCliInvocation(_0x1fc667,_0x5a3aa9){const _0x2ca9b8=_0x5dfa45,_0x438850={'HzzgR':'--json','FlujK':function(_0xea0946,_0x18a48e){return _0xea0946(_0x18a48e);}},_0x4bae44=_0x1fc667['binaryPath']??resolveRangerwrightCliBinary(),_0x27d0d4=[_0x438850['HzzgR'],..._0x5a3aa9];return{'command':_0x4bae44,'args':_0x27d0d4,'shellCommand':[quoteShellArg(_0x4bae44),_0x438850[_0x2ca9b8(0x1c0)],..._0x5a3aa9['map'](quoteShellArg)]['join']('\x20'),'subcommand':_0x438850[_0x2ca9b8(0x1a0)](getRangerwrightSubcommand,_0x5a3aa9)};}function truncateOutput(_0x51db2f,_0x21aeae=0x7d0){const _0x1ea3bd=_0x5dfa45,_0x1c6559={'iWsov':function(_0x5cecac,_0x4950d0){return _0x5cecac>_0x4950d0;},'tUwBb':function(_0xf3719e,_0x1738ea){return _0xf3719e+_0x1738ea;}};return _0x1c6559[_0x1ea3bd(0x1b1)](_0x51db2f[_0x1ea3bd(0x1c1)],_0x21aeae)?_0x1c6559['tUwBb'](_0x51db2f[_0x1ea3bd(0x1c4)](0x0,_0x21aeae),'...'):_0x51db2f;}export async function runRangerwrightCliCommand(_0x337325){const _0x56521f=_0x5dfa45,_0x45e0e1={'VYWqF':function(_0x408968,_0x27d42f){return _0x408968(_0x27d42f);},'jyTaA':_0x56521f(0x1bc),'sMqYu':function(_0x355b0c,_0x3051b5){return _0x355b0c??_0x3051b5;},'anCKa':function(_0x449e11,_0x377b55,_0x23d1d1,_0x4c8207){return _0x449e11(_0x377b55,_0x23d1d1,_0x4c8207);},'QFJHC':'ignore','fMmXG':_0x56521f(0x1c8),'dGEuh':function(_0x2a8801,_0x3b44a7){return _0x2a8801>_0x3b44a7;},'eMBfS':function(_0x38cd89,_0xc5359c,_0x501100){return _0x38cd89(_0xc5359c,_0x501100);},'yPXSH':'data','qVuJZ':'close','GwTJI':function(_0x5ec582,_0x374064){return _0x5ec582(_0x374064);}},_0x1ce901=_0x45e0e1['eMBfS'](buildRangerwrightCliInvocation,_0x337325,_0x337325['commandArgs']),_0x5692e8={..._0x337325[_0x56521f(0x1a7)]??process[_0x56521f(0x1a7)],..._0x45e0e1[_0x56521f(0x1c3)](buildRangerwrightCliEnv,_0x337325)};return new Promise((_0x2c28d4,_0x406be2)=>{const _0x20002f=_0x56521f,_0x52b1df={'qSSqQ':function(_0x3b8e3c,_0x51e22b){return _0x3b8e3c(_0x51e22b);}},_0x3edc84=_0x45e0e1[_0x20002f(0x1d3)](spawn,_0x1ce901[_0x20002f(0x1bb)],_0x1ce901['args'],{'cwd':_0x337325['cwd'],'env':_0x5692e8,'stdio':[_0x45e0e1['QFJHC'],_0x45e0e1[_0x20002f(0x1af)],_0x45e0e1[_0x20002f(0x1af)]]});let _0x171bfe='',_0x38439c='',_0x32021a=![];const _0x137fc2=_0x337325['timeoutMs']&&_0x45e0e1[_0x20002f(0x1c2)](_0x337325[_0x20002f(0x1cb)],0x0)?_0x45e0e1[_0x20002f(0x1d0)](setTimeout,()=>{_0x32021a=!![],_0x3edc84['kill']('SIGTERM'),setTimeout(()=>{const _0x383ef3=_0x4eb7;try{_0x3edc84['kill'](_0x383ef3(0x1b4));}catch{}},0x3e8);},_0x337325['timeoutMs']):null;_0x3edc84['stdout']?.['on'](_0x20002f(0x1aa),_0x1fd7f8=>{_0x171bfe+=_0x1fd7f8['toString']();}),_0x3edc84[_0x20002f(0x1a4)]?.['on'](_0x45e0e1[_0x20002f(0x1b3)],_0x3126eb=>{_0x38439c+=_0x3126eb['toString']();}),_0x3edc84['on'](_0x20002f(0x1b8),_0x36cd67=>{const _0x346793=_0x20002f;if(_0x137fc2)clearTimeout(_0x137fc2);_0x52b1df[_0x346793(0x1d5)](_0x406be2,_0x36cd67);}),_0x3edc84['on'](_0x45e0e1[_0x20002f(0x1c7)],(_0x108180,_0x542b9a)=>{const _0x25bb61=_0x20002f;if(_0x137fc2)_0x45e0e1[_0x25bb61(0x1d4)](clearTimeout,_0x137fc2);if(_0x108180===0x0){_0x2c28d4({'stdout':_0x171bfe,'stderr':_0x38439c,'invocation':_0x1ce901});return;}const _0x36e69f=_0x32021a?_0x25bb61(0x19d)+_0x337325['timeoutMs']+'ms':'exited\x20with\x20code='+(_0x108180??_0x45e0e1[_0x25bb61(0x19f)])+_0x25bb61(0x1a9)+_0x45e0e1['sMqYu'](_0x542b9a,'null');_0x45e0e1['VYWqF'](_0x406be2,new Error('rangerwright-cli\x20'+_0x1ce901[_0x25bb61(0x1ce)]+'\x20'+_0x36e69f+_0x25bb61(0x1b7)+truncateOutput(_0x171bfe)+_0x25bb61(0x1cd)+truncateOutput(_0x38439c)));});});}export function parseRangerwrightCliCommand(_0x5a24bd){const _0x152a5b=_0x5a24bd['match'](/(?:^|\s)(?:"[^"]*rangerwright"|'[^']*rangerwright'|\S*rangerwright)(?:\s+--json)?\s+([a-z-]+)/);return _0x152a5b?.[0x1]??null;}
@@ -1 +1 @@
1
- (function(_0x36c1eb,_0x6d266d){const _0xe80c82=_0x426d,_0x1fa529=_0x36c1eb();while(!![]){try{const _0x1a8b90=parseInt(_0xe80c82(0x1c3))/0x1+parseInt(_0xe80c82(0x1bc))/0x2*(-parseInt(_0xe80c82(0x1cb))/0x3)+-parseInt(_0xe80c82(0x1bd))/0x4+parseInt(_0xe80c82(0x1c4))/0x5+parseInt(_0xe80c82(0x1cc))/0x6*(parseInt(_0xe80c82(0x1b9))/0x7)+parseInt(_0xe80c82(0x1de))/0x8+-parseInt(_0xe80c82(0x1d3))/0x9;if(_0x1a8b90===_0x6d266d)break;else _0x1fa529['push'](_0x1fa529['shift']());}catch(_0x25d301){_0x1fa529['push'](_0x1fa529['shift']());}}}(_0x2d1d,0x8191a));function _0x2d1d(){const _0x58d5da=['startPath','env','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','cloud','6137168cknxvW','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','cTvoR','pNrBi','split','cdpEndpoint','70aAItly','vWySv','tcTJL','166TPvduf','1367952OyqHKy','log','QgRRL','name','ZkDdz','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','181900PUNjKC','2869880WJklPE','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','VuJjY','Profile\x20\x22','RANGER_SESSION_STATE_PATH=','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','ijWOv','2334OpuWfo','104814ekPpza','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','JZnPN','cwd','list','envStartPath','baseUrl','6843924VLFRye','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','rJCYz','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','zFbvf','profile','ZlveW'];_0x2d1d=function(){return _0x58d5da;};return _0x2d1d();}function _0x426d(_0x28bd03,_0x6ab547){_0x28bd03=_0x28bd03-0x1b9;const _0x2d1d17=_0x2d1d();let _0x426ddd=_0x2d1d17[_0x28bd03];return _0x426ddd;}import{existsSync}from'fs';import _0x1a6d79 from'inquirer';import{ApiError,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x5443ca){const _0x397478=_0x426d,_0xe02442={'zFbvf':function(_0x2f790c){return _0x2f790c();},'YFysr':function(_0x4c6370,_0x38aed3){return _0x4c6370+_0x38aed3;},'fskJA':function(_0x4db3f,_0x2c9cb8){return _0x4db3f+_0x2c9cb8;},'QgRRL':function(_0xe81ce2,_0x28f757){return _0xe81ce2+_0x28f757;},'PXgjm':_0x397478(0x1c9),'ZkDdz':function(_0x349c28,_0x2952b4){return _0x349c28(_0x2952b4);},'CfGcN':function(_0x15eab6,_0x2d15d0){return _0x15eab6 instanceof _0x2d15d0;},'Sqdwb':function(_0xf7d471,_0x2c95cc){return _0xf7d471&&_0x2c95cc;},'pADPw':function(_0x3a67aa,_0x324f95){return _0x3a67aa+_0x324f95;},'PWrMm':_0x397478(0x1d0),'pNrBi':'Cloud\x20profile\x20(recommended)','rJCYz':'Local\x20profile','qrsRJ':'local','DHGcF':function(_0x3f67e4,_0x22168e){return _0x3f67e4===_0x22168e;},'JZnPN':_0x397478(0x1dd),'kJIoK':function(_0x3c0339,_0x322882,_0xd0124d){return _0x3c0339(_0x322882,_0xd0124d);},'BnqYj':function(_0xa584c3,_0x414314,_0xe5b0da){return _0xa584c3(_0x414314,_0xe5b0da);},'cTvoR':function(_0xe8e423,_0x595712){return _0xe8e423??_0x595712;},'tcTJL':'2|0|1|3|4','OvJjA':function(_0x51f799,_0xdbf4ce){return _0x51f799(_0xdbf4ce);},'tkcAU':function(_0x46ddae,_0x1a1217){return _0x46ddae(_0x1a1217);},'vWySv':function(_0x3d3657,_0x3fac1){return _0x3d3657(_0x3fac1);},'ZlveW':function(_0x6550dd,_0x12cad6){return _0x6550dd(_0x12cad6);}},_0x23719a=_0x5443ca['profile'];let _0x1140c1=_0x5443ca[_0x397478(0x1d8)]??await readActiveProfileName(),_0x5476fb=null;if(!_0x1140c1&&process['env']['RANGER_TEST_USERNAME']){const _0x8f57dc=await resolveAdHocProfile();_0x8f57dc&&(_0x1140c1=_0x8f57dc[_0x397478(0x1c0)],_0x5476fb=_0x8f57dc[_0x397478(0x1d8)]);}if(!_0x1140c1)try{const _0x152c7c=await _0xe02442[_0x397478(0x1d7)](listCloudProfiles);if(_0x152c7c['length']===0x1){const _0x5ed41c=_0x152c7c[0x0];_0x1140c1=_0x5ed41c['name'],console[_0x397478(0x1be)](_0x397478(0x1cd)+_0x5ed41c[_0x397478(0x1c0)]),console[_0x397478(0x1be)](_0x397478(0x1c2));}}catch{}if(!_0x1140c1)throw new Error(_0xe02442['YFysr'](_0xe02442['fskJA'](_0xe02442[_0x397478(0x1bf)](_0xe02442[_0x397478(0x1bf)](_0xe02442['PXgjm'],_0x397478(0x1d4)),'\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a'),'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a'),'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.'));const _0x6bd6f2=getEnvDir(_0x1140c1),_0x2fedfd=existsSync(_0x6bd6f2);let _0x527239=_0x5476fb,_0x27d13e=![];if(!_0x527239)try{_0x527239=await _0xe02442[_0x397478(0x1c1)](fetchCloudProfile,_0x1140c1);if(!_0x527239)_0x27d13e=!![];}catch(_0x4bf46a){_0xe02442['CfGcN'](_0x4bf46a,ApiError)&&_0x4bf46a['status']===0x194&&(_0x27d13e=!![]);}if(_0xe02442['Sqdwb'](_0x23719a,_0x27d13e)&&!_0x2fedfd&&!_0x527239)throw new Error(_0xe02442['pADPw']('Profile\x20\x22'+_0x23719a+_0x397478(0x1c5),'\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20')+'`ranger\x20profile\x20add`\x20to\x20create\x20one.');if(_0x527239&&_0x2fedfd){let _0x21191a=!![];if(isInteractive()){const {source:_0x33fd85}=await _0x1a6d79['prompt']([{'type':_0xe02442['PWrMm'],'name':'source','message':_0x397478(0x1c7)+_0x1140c1+_0x397478(0x1df),'choices':[{'name':_0xe02442[_0x397478(0x1e1)],'value':_0x397478(0x1dd)},{'name':_0xe02442[_0x397478(0x1d5)],'value':_0xe02442['qrsRJ']}],'default':_0x397478(0x1dd)}]);_0x21191a=_0xe02442['DHGcF'](_0x33fd85,_0xe02442[_0x397478(0x1ce)]);}if(!_0x21191a)_0x527239=null;}const _0x4ec06a=_0xe02442['kJIoK'](readProfileOverrides,process[_0x397478(0x1cf)](),_0x1140c1);let _0x5904d6=null,_0x216f8b,_0x267aac,_0x22d6a1,_0x1ac522,_0x21b4f4=null,_0x429ac9;const _0x4f82a7=_0xe02442[_0x397478(0x1c1)](expandOverrides,_0x4ec06a);if(_0x527239){_0x5904d6=_0x527239;const _0x5cffd4=_0x527239['settings']??{},_0x41cf9f=_0xe02442['BnqYj'](mergeCloudProfileSettings,_0x5cffd4,_0xe02442[_0x397478(0x1e0)](_0x4ec06a,undefined)),_0x232816={..._0x527239,'settings':_0x41cf9f},_0x499d9d=process[_0x397478(0x1db)]['RANGER_SESSION_STATE_PATH'];if(_0x499d9d){const _0x34d980=_0xe02442[_0x397478(0x1bb)][_0x397478(0x1e2)]('|');let _0x3c048d=0x0;while(!![]){switch(_0x34d980[_0x3c048d++]){case'0':_0x216f8b=_0x499d9d;continue;case'1':_0x267aac=_0xe02442['OvJjA'](resolveEnvVars,_0x41cf9f);continue;case'2':if(!_0xe02442['tkcAU'](existsSync,_0x499d9d))throw new Error(_0x397478(0x1c8)+_0x499d9d+'\x20does\x20not\x20exist.');continue;case'3':_0x22d6a1=Boolean(_0x267aac[_0x397478(0x1e3)]);continue;case'4':_0x21b4f4={'baseUrl':expandString(_0x5cffd4[_0x397478(0x1d2)]),'startPath':expandString(_0x5cffd4[_0x397478(0x1da)])};continue;}break;}}else{const _0xb2c0d1=await resolveCloudProfileSession(_0x232816);_0x216f8b=_0xb2c0d1['authPath'],_0x267aac=_0xe02442['vWySv'](resolveEnvVars,_0x41cf9f),_0x22d6a1=_0xe02442[_0x397478(0x1ba)](Boolean,_0x267aac['cdpEndpoint']),_0x21b4f4={'baseUrl':_0xe02442[_0x397478(0x1d9)](expandString,_0x5cffd4['baseUrl']),'startPath':expandString(_0x5cffd4['startPath'])},_0x429ac9=_0xb2c0d1['resolvedEnv']?.['domains']?.[0x0];}}else{if(!_0x2fedfd)throw new Error('Profile\x20\x22'+_0x1140c1+_0x397478(0x1dc)+_0x1140c1);const _0x40510e=await loadSettings(_0x1140c1);_0x267aac=resolveEnvVars(_0x40510e),_0x22d6a1=Boolean(_0x267aac['cdpEndpoint']),_0x1ac522=_0x267aac['baseUrl'];}const _0x3894b1=readUrlEnvVars(),_0x31e804=_0xe02442['ZlveW'](resolveProfileUrl,{'flagBaseUrl':_0x5443ca[_0x397478(0x1d2)],'flagStartPath':_0x5443ca['startPath'],'envBaseUrl':_0x3894b1['envBaseUrl'],'envStartPath':_0x3894b1[_0x397478(0x1d1)],'localSettingsBaseUrl':_0x1ac522,'projectOverrides':_0x4f82a7,'cloudSettings':_0x21b4f4,'authEnvironmentDomain':_0x429ac9}),_0x40dc28=_0x31e804['url']??_0x31e804['baseUrl'];if(_0xe02442['Sqdwb'](!_0x40dc28,!_0x22d6a1))throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0x1140c1+_0x397478(0x1d6)+_0x1140c1+'\x20baseUrl\x20<url>');return{'activeProfile':_0x1140c1,'resolvedCloudProfile':_0x5904d6,'cloudAuthPath':_0x216f8b,'resolvedSettings':_0x267aac,'isCdpMode':_0x22d6a1,'url':_0x40dc28,'startPath':_0x31e804[_0x397478(0x1da)]};}function expandString(_0x2ec8fd){if(typeof _0x2ec8fd!=='string')return _0x2ec8fd;return resolveEnvVars(_0x2ec8fd);}function expandOverrides(_0xefa845){const _0x207474=_0x426d,_0x5f55fb={'ijWOv':function(_0x19495f,_0x29e66d){return _0x19495f(_0x29e66d);},'VuJjY':function(_0x3df227,_0x5dc4c3){return _0x3df227(_0x5dc4c3);}};if(!_0xefa845)return _0xefa845;const _0x23ceba={..._0xefa845};return typeof _0x23ceba[_0x207474(0x1d2)]==='string'&&(_0x23ceba['baseUrl']=_0x5f55fb[_0x207474(0x1ca)](resolveEnvVars,_0x23ceba['baseUrl'])),typeof _0x23ceba[_0x207474(0x1da)]==='string'&&(_0x23ceba['startPath']=_0x5f55fb[_0x207474(0x1c6)](resolveEnvVars,_0x23ceba['startPath'])),_0x23ceba;}
1
+ function _0x5003(_0x2f521d,_0x50a73f){_0x2f521d=_0x2f521d-0x1f3;const _0x45f5a4=_0x45f5();let _0x5003b5=_0x45f5a4[_0x2f521d];return _0x5003b5;}(function(_0x557c91,_0x4a3a27){const _0x51a347=_0x5003,_0x56022e=_0x557c91();while(!![]){try{const _0x597e6d=parseInt(_0x51a347(0x207))/0x1+parseInt(_0x51a347(0x1ff))/0x2*(parseInt(_0x51a347(0x1f3))/0x3)+parseInt(_0x51a347(0x208))/0x4*(-parseInt(_0x51a347(0x21e))/0x5)+-parseInt(_0x51a347(0x213))/0x6+-parseInt(_0x51a347(0x1f8))/0x7+-parseInt(_0x51a347(0x216))/0x8*(-parseInt(_0x51a347(0x20a))/0x9)+parseInt(_0x51a347(0x1f5))/0xa*(parseInt(_0x51a347(0x227))/0xb);if(_0x597e6d===_0x4a3a27)break;else _0x56022e['push'](_0x56022e['shift']());}catch(_0x2c03ee){_0x56022e['push'](_0x56022e['shift']());}}}(_0x45f5,0xb4a40));import{existsSync}from'fs';import _0x2ccc6b from'inquirer';import{ApiError,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';function _0x45f5(){const _0x226d50=['656IugoLk','cBOJJ','171wMnbdY','UHXod','fVjpN','authPath','oIUWW','startPath','local','JbdPA','url','1845702kpwKqN','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','log','345520oMfgtt','string','envStartPath','jNEBb','hDFer','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','name','3|2|4|1|0','37640vWDlZi','RANGER_TEST_USERNAME','Local\x20profile','cdpEndpoint','cloud','Profile\x20\x22','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','cwd','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','44nJQpdc','1152gTXwYN','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','2818560qxaGsr','source','resolvedEnv','7408751PUhmDb','baseUrl','RANGER_SESSION_STATE_PATH=','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','hnaXY','gkaiR','6268jbJkZC','FdpSS','settings','prompt','No\x20baseUrl\x20configured\x20for\x20profile\x20\x22','UWzjl','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','189016NXVRxY'];_0x45f5=function(){return _0x226d50;};return _0x45f5();}import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x4faa9f){const _0x3cc7a7=_0x5003,_0x302c6f={'cBOJJ':function(_0x3585db,_0x413e6f){return _0x3585db===_0x413e6f;},'hnaXY':function(_0x4628b1,_0x867601){return _0x4628b1+_0x867601;},'jNEBb':'\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','UWzjl':function(_0x5b47f4,_0x4cf9bd){return _0x5b47f4(_0x4cf9bd);},'JvoCb':function(_0x4b7ee2,_0x4be9cb){return _0x4b7ee2 instanceof _0x4be9cb;},'oIUWW':_0x3cc7a7(0x21b),'bCGbo':function(_0x11ee6f,_0x44c1e5){return _0x11ee6f&&_0x44c1e5;},'JbdPA':function(_0x19ef75){return _0x19ef75();},'gkaiR':'list','MIkpA':_0x3cc7a7(0x1f6),'fVjpN':'Cloud\x20profile\x20(recommended)','FdpSS':_0x3cc7a7(0x210),'GyoRJ':_0x3cc7a7(0x222),'vMUul':function(_0x45b249,_0x2aca8b,_0x4d3d4d){return _0x45b249(_0x2aca8b,_0x4d3d4d);},'Jigkt':function(_0x1334b7,_0x250d05){return _0x1334b7(_0x250d05);},'hDFer':function(_0x1e29e6,_0x17b9a8){return _0x1e29e6(_0x17b9a8);},'tVyVg':function(_0x3e40f0,_0x23f439){return _0x3e40f0(_0x23f439);}},_0x6950a6=_0x4faa9f['profile'];let _0x542320=_0x4faa9f['profile']??await readActiveProfileName(),_0x264647=null;if(!_0x542320&&process['env'][_0x3cc7a7(0x21f)]){const _0x45a0ea=await resolveAdHocProfile();_0x45a0ea&&(_0x542320=_0x45a0ea['name'],_0x264647=_0x45a0ea['profile']);}if(!_0x542320)try{const _0x4d3636=await listCloudProfiles();if(_0x302c6f[_0x3cc7a7(0x209)](_0x4d3636['length'],0x1)){const _0x57fb11=_0x4d3636[0x0];_0x542320=_0x57fb11['name'],console[_0x3cc7a7(0x215)](_0x3cc7a7(0x1fb)+_0x57fb11[_0x3cc7a7(0x21c)]),console['log'](_0x3cc7a7(0x224));}}catch{}if(!_0x542320)throw new Error(_0x302c6f[_0x3cc7a7(0x1fd)](_0x3cc7a7(0x1f4),_0x302c6f[_0x3cc7a7(0x219)])+'\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a'+_0x3cc7a7(0x206)+_0x3cc7a7(0x1fc));const _0x46e39f=_0x302c6f[_0x3cc7a7(0x204)](getEnvDir,_0x542320),_0x17d97a=_0x302c6f[_0x3cc7a7(0x204)](existsSync,_0x46e39f);let _0x3fc473=_0x264647,_0x3c5ad9=![];if(!_0x3fc473)try{_0x3fc473=await fetchCloudProfile(_0x542320);if(!_0x3fc473)_0x3c5ad9=!![];}catch(_0x5ca14f){_0x302c6f['JvoCb'](_0x5ca14f,ApiError)&&_0x5ca14f['status']===0x194&&(_0x3c5ad9=!![]);}if(_0x6950a6&&_0x3c5ad9&&!_0x17d97a&&!_0x3fc473)throw new Error(_0x3cc7a7(0x223)+_0x6950a6+_0x3cc7a7(0x205)+_0x302c6f[_0x3cc7a7(0x20e)]+'`ranger\x20profile\x20add`\x20to\x20create\x20one.');if(_0x302c6f['bCGbo'](_0x3fc473,_0x17d97a)){let _0x29e39f=!![];if(_0x302c6f[_0x3cc7a7(0x211)](isInteractive)){const {source:_0x371271}=await _0x2ccc6b[_0x3cc7a7(0x202)]([{'type':_0x302c6f[_0x3cc7a7(0x1fe)],'name':_0x302c6f['MIkpA'],'message':_0x3cc7a7(0x223)+_0x542320+'\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','choices':[{'name':_0x302c6f[_0x3cc7a7(0x20c)],'value':'cloud'},{'name':_0x3cc7a7(0x220),'value':_0x302c6f[_0x3cc7a7(0x200)]}],'default':_0x3cc7a7(0x222)}]);_0x29e39f=_0x371271===_0x302c6f['GyoRJ'];}if(!_0x29e39f)_0x3fc473=null;}const _0x59c952=_0x302c6f['vMUul'](readProfileOverrides,process[_0x3cc7a7(0x225)](),_0x542320);let _0x21d91b=null,_0x25a125,_0x5d7fc0,_0x206729,_0x44a699,_0x13457a=null,_0x24af06;const _0x4225ce=expandOverrides(_0x59c952);if(_0x3fc473){_0x21d91b=_0x3fc473;const _0x3d2ce6=_0x3fc473[_0x3cc7a7(0x201)]??{},_0xf272cc=mergeCloudProfileSettings(_0x3d2ce6,_0x59c952??undefined),_0x11b3db={..._0x3fc473,'settings':_0xf272cc},_0x317ae3=process['env']['RANGER_SESSION_STATE_PATH'];if(_0x317ae3){const _0x544dbc=_0x3cc7a7(0x21d)['split']('|');let _0x570fc4=0x0;while(!![]){switch(_0x544dbc[_0x570fc4++]){case'0':_0x13457a={'baseUrl':expandString(_0x3d2ce6['baseUrl']),'startPath':_0x302c6f['Jigkt'](expandString,_0x3d2ce6[_0x3cc7a7(0x20f)])};continue;case'1':_0x206729=_0x302c6f['hDFer'](Boolean,_0x5d7fc0['cdpEndpoint']);continue;case'2':_0x25a125=_0x317ae3;continue;case'3':if(!existsSync(_0x317ae3))throw new Error(_0x3cc7a7(0x1fa)+_0x317ae3+'\x20does\x20not\x20exist.');continue;case'4':_0x5d7fc0=resolveEnvVars(_0xf272cc);continue;}break;}}else{const _0x3bcdf1=await resolveCloudProfileSession(_0x11b3db);_0x25a125=_0x3bcdf1[_0x3cc7a7(0x20d)],_0x5d7fc0=resolveEnvVars(_0x3bcdf1[_0x3cc7a7(0x201)]),_0x206729=_0x302c6f['tVyVg'](Boolean,_0x5d7fc0[_0x3cc7a7(0x221)]),_0x13457a={'baseUrl':expandString(_0x3d2ce6[_0x3cc7a7(0x1f9)]),'startPath':expandString(_0x3d2ce6['startPath'])},_0x24af06=_0x3bcdf1[_0x3cc7a7(0x1f7)]?.['domains']?.[0x0];}}else{if(!_0x17d97a)throw new Error('Profile\x20\x22'+_0x542320+_0x3cc7a7(0x226)+_0x542320);const _0x14c012=await loadSettings(_0x542320);_0x5d7fc0=resolveEnvVars(_0x14c012),_0x206729=_0x302c6f['UWzjl'](Boolean,_0x5d7fc0['cdpEndpoint']),_0x44a699=_0x5d7fc0['baseUrl'];}const _0x343b36=readUrlEnvVars(),_0x12086c=_0x302c6f[_0x3cc7a7(0x21a)](resolveProfileUrl,{'flagBaseUrl':_0x4faa9f[_0x3cc7a7(0x1f9)],'flagStartPath':_0x4faa9f[_0x3cc7a7(0x20f)],'envBaseUrl':_0x343b36['envBaseUrl'],'envStartPath':_0x343b36[_0x3cc7a7(0x218)],'localSettingsBaseUrl':_0x44a699,'projectOverrides':_0x4225ce,'cloudSettings':_0x13457a,'authEnvironmentDomain':_0x24af06}),_0x20f27a=_0x12086c[_0x3cc7a7(0x212)]??_0x12086c['baseUrl'];if(!_0x20f27a&&!_0x206729)throw new Error(_0x3cc7a7(0x203)+_0x542320+_0x3cc7a7(0x214)+_0x542320+'\x20baseUrl\x20<url>');return{'activeProfile':_0x542320,'resolvedCloudProfile':_0x21d91b,'cloudAuthPath':_0x25a125,'resolvedSettings':_0x5d7fc0,'isCdpMode':_0x206729,'url':_0x20f27a,'startPath':_0x12086c['startPath']};}function expandString(_0x5999c5){const _0x1aa786=_0x5003,_0x196ea4={'UHXod':function(_0x2a7549,_0x5931a0){return _0x2a7549(_0x5931a0);}};if(typeof _0x5999c5!==_0x1aa786(0x217))return _0x5999c5;return _0x196ea4[_0x1aa786(0x20b)](resolveEnvVars,_0x5999c5);}function expandOverrides(_0x3695ec){const _0x1a4f1e=_0x5003,_0x5095f8={'ZvKMG':function(_0x1aa92d,_0x239b65){return _0x1aa92d(_0x239b65);}};if(!_0x3695ec)return _0x3695ec;const _0x2818e0={..._0x3695ec};return typeof _0x2818e0['baseUrl']===_0x1a4f1e(0x217)&&(_0x2818e0[_0x1a4f1e(0x1f9)]=resolveEnvVars(_0x2818e0[_0x1a4f1e(0x1f9)])),typeof _0x2818e0[_0x1a4f1e(0x20f)]===_0x1a4f1e(0x217)&&(_0x2818e0[_0x1a4f1e(0x20f)]=_0x5095f8['ZvKMG'](resolveEnvVars,_0x2818e0[_0x1a4f1e(0x20f)])),_0x2818e0;}
@@ -1 +1 @@
1
- (function(_0x1dffbf,_0xad7d73){const _0x359a17=_0x52da,_0x35ce78=_0x1dffbf();while(!![]){try{const _0xdde87d=parseInt(_0x359a17(0x1a4))/0x1+-parseInt(_0x359a17(0x1b1))/0x2*(parseInt(_0x359a17(0x1b3))/0x3)+parseInt(_0x359a17(0x1a0))/0x4+parseInt(_0x359a17(0x1a7))/0x5*(parseInt(_0x359a17(0x1a1))/0x6)+-parseInt(_0x359a17(0x19d))/0x7*(-parseInt(_0x359a17(0x1a6))/0x8)+-parseInt(_0x359a17(0x19c))/0x9*(-parseInt(_0x359a17(0x19e))/0xa)+-parseInt(_0x359a17(0x1a5))/0xb;if(_0xdde87d===_0xad7d73)break;else _0x35ce78['push'](_0x35ce78['shift']());}catch(_0x53e561){_0x35ce78['push'](_0x35ce78['shift']());}}}(_0x1223,0x220fc));function firstDefined(..._0x5ac415){const _0x1a4547=_0x52da,_0x4611ed={'WujBB':function(_0x518947,_0x17af6c){return _0x518947!==_0x17af6c;}};for(const _0x13d1a8 of _0x5ac415){if(_0x13d1a8!==undefined&&_0x4611ed[_0x1a4547(0x1aa)](_0x13d1a8,null)&&_0x4611ed['WujBB'](_0x13d1a8,''))return _0x13d1a8;}return undefined;}function normalizeAuthEnvironmentDomain(_0x12466d){const _0x2f20ca=_0x52da;if(!_0x12466d)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0x2f20ca(0x1ac)](_0x12466d))return _0x12466d;return'https://'+_0x12466d;}export function resolveBaseUrl(_0x113c69){const _0x5dd526=_0x52da,_0x1775d2={'gzUmB':function(_0x57853e,_0x44bc9f){return _0x57853e in _0x44bc9f;},'dZyvX':'baseUrl','tbcUL':_0x5dd526(0x1a8),'jqjcI':function(_0x1d193c,_0x47d258){return _0x1d193c(_0x47d258);}},_0x5d2ccc=_0x113c69['projectOverrides'],_0x184ceb=!!_0x5d2ccc&&_0x1775d2['gzUmB'](_0x1775d2[_0x5dd526(0x1ad)],_0x5d2ccc),_0x1240fa=_0x5d2ccc?.[_0x5dd526(0x1a9)],_0x372c50=!(_0x184ceb&&_0x1240fa===null);return firstDefined(_0x113c69[_0x5dd526(0x1b2)],_0x113c69[_0x5dd526(0x1a2)],_0x113c69['localSettingsBaseUrl'],typeof _0x1240fa===_0x1775d2['tbcUL']?_0x1240fa:undefined,_0x372c50?_0x113c69['cloudSettings']?.['baseUrl']:undefined,_0x372c50?_0x1775d2[_0x5dd526(0x1a3)](normalizeAuthEnvironmentDomain,_0x113c69['authEnvironmentDomain']):undefined);}export function resolveStartPath(_0xd70762){const _0x48ee4f=_0x52da,_0x30aab8={'Nsdmd':function(_0x32a483,_0x5e1417){return _0x32a483===_0x5e1417;},'shZlO':_0x48ee4f(0x1a8)},_0x274444=_0xd70762['projectOverrides'],_0x22652d=!!_0x274444&&'startPath'in _0x274444,_0x34a783=_0x274444?.['startPath'],_0x53d43a=!(_0x22652d&&_0x30aab8[_0x48ee4f(0x1ae)](_0x34a783,null));return firstDefined(_0xd70762[_0x48ee4f(0x19f)],_0xd70762['envStartPath'],typeof _0x34a783===_0x30aab8['shZlO']?_0x34a783:undefined,_0x53d43a?_0xd70762['cloudSettings']?.['startPath']:undefined);}function _0x1223(){const _0x3753f5=['491358XnjaTd','9pEslnk','126oQrvrt','2222490zLwmDA','flagStartPath','94896fDCaWO','2316nXoxiw','envBaseUrl','jqjcI','128346tYpEGj','1614921XxWEJH','576brWtqF','965qgqagE','string','baseUrl','WujBB','endsWith','test','dZyvX','Nsdmd','slice','startsWith','2lETIBD','flagBaseUrl'];_0x1223=function(){return _0x3753f5;};return _0x1223();}export function joinBaseAndPath(_0x20af8d,_0x3a0641){const _0x387b4e=_0x52da,_0x4cc89d={'KcAig':function(_0xce070c,_0x4e4eca){return _0xce070c+_0x4e4eca;},'gOhSc':function(_0x483c75,_0x224bea){return _0x483c75+_0x224bea;}};if(!_0x20af8d)return undefined;if(!_0x3a0641)return _0x20af8d;const _0x91e435=_0x20af8d[_0x387b4e(0x1ab)]('/')?_0x20af8d[_0x387b4e(0x1af)](0x0,-0x1):_0x20af8d,_0x35287c=_0x3a0641[_0x387b4e(0x1b0)]('/')?_0x3a0641:_0x4cc89d['KcAig']('/',_0x3a0641);return _0x4cc89d['gOhSc'](_0x91e435,_0x35287c);}export function resolveProfileUrl(_0x15bd5f){const _0x108488={'QZnXv':function(_0x9f8d4c,_0x1dd23a,_0x25631e){return _0x9f8d4c(_0x1dd23a,_0x25631e);}},_0x272ef3=resolveBaseUrl(_0x15bd5f),_0x871a67=resolveStartPath(_0x15bd5f);return{'baseUrl':_0x272ef3,'startPath':_0x871a67,'url':_0x108488['QZnXv'](joinBaseAndPath,_0x272ef3,_0x871a67)};}function _0x52da(_0x113708,_0x3b6366){_0x113708=_0x113708-0x19c;const _0x122304=_0x1223();let _0x52da00=_0x122304[_0x113708];return _0x52da00;}export function readUrlEnvVars(_0x2afc87=process['env']){return{'envBaseUrl':_0x2afc87['RANGER_BASE_URL'],'envStartPath':_0x2afc87['RANGER_START_PATH']};}
1
+ (function(_0x542be1,_0x75ee8d){const _0x23d8fa=_0x54e8,_0x2a524f=_0x542be1();while(!![]){try{const _0x412fa1=-parseInt(_0x23d8fa(0x165))/0x1+-parseInt(_0x23d8fa(0x163))/0x2*(parseInt(_0x23d8fa(0x173))/0x3)+parseInt(_0x23d8fa(0x161))/0x4*(-parseInt(_0x23d8fa(0x175))/0x5)+-parseInt(_0x23d8fa(0x16f))/0x6+-parseInt(_0x23d8fa(0x166))/0x7+parseInt(_0x23d8fa(0x16b))/0x8*(parseInt(_0x23d8fa(0x174))/0x9)+parseInt(_0x23d8fa(0x16e))/0xa;if(_0x412fa1===_0x75ee8d)break;else _0x2a524f['push'](_0x2a524f['shift']());}catch(_0x311f87){_0x2a524f['push'](_0x2a524f['shift']());}}}(_0x26f0,0xeed72));function firstDefined(..._0x4ad0f3){const _0x4c735a={'ujHQV':function(_0x243fef,_0x484362){return _0x243fef!==_0x484362;}};for(const _0x4417ed of _0x4ad0f3){if(_0x4417ed!==undefined&&_0x4c735a['ujHQV'](_0x4417ed,null)&&_0x4417ed!=='')return _0x4417ed;}return undefined;}function normalizeAuthEnvironmentDomain(_0x2bd3a3){if(!_0x2bd3a3)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x2bd3a3))return _0x2bd3a3;return'https://'+_0x2bd3a3;}export function resolveBaseUrl(_0x3d64c3){const _0xa67da1=_0x54e8,_0x173955={'irWoD':function(_0xad8074,_0x5858b4){return _0xad8074 in _0x5858b4;}},_0x9d7d87=_0x3d64c3[_0xa67da1(0x170)],_0x4a25cb=!!_0x9d7d87&&_0x173955[_0xa67da1(0x16c)]('baseUrl',_0x9d7d87),_0x3fae50=_0x9d7d87?.['baseUrl'],_0x523980=!(_0x4a25cb&&_0x3fae50===null);return firstDefined(_0x3d64c3['flagBaseUrl'],_0x3d64c3['envBaseUrl'],_0x3d64c3[_0xa67da1(0x162)],typeof _0x3fae50==='string'?_0x3fae50:undefined,_0x523980?_0x3d64c3['cloudSettings']?.['baseUrl']:undefined,_0x523980?normalizeAuthEnvironmentDomain(_0x3d64c3[_0xa67da1(0x16d)]):undefined);}function _0x54e8(_0x548901,_0x12176c){_0x548901=_0x548901-0x160;const _0x26f06f=_0x26f0();let _0x54e8d1=_0x26f06f[_0x548901];return _0x54e8d1;}export function resolveStartPath(_0x125193){const _0x3d2a42=_0x54e8,_0x178762={'aooFD':'startPath','cMLKG':function(_0xe6d79,_0x24bb3d){return _0xe6d79===_0x24bb3d;},'Sizxg':function(_0x16cc9f,_0x5bdec2,_0x3446a5,_0x540331,_0x225899){return _0x16cc9f(_0x5bdec2,_0x3446a5,_0x540331,_0x225899);}},_0x1fa609=_0x125193['projectOverrides'],_0x320771=!!_0x1fa609&&_0x178762[_0x3d2a42(0x168)]in _0x1fa609,_0x5d1431=_0x1fa609?.[_0x3d2a42(0x172)],_0x2690b1=!(_0x320771&&_0x178762[_0x3d2a42(0x167)](_0x5d1431,null));return _0x178762['Sizxg'](firstDefined,_0x125193['flagStartPath'],_0x125193['envStartPath'],typeof _0x5d1431==='string'?_0x5d1431:undefined,_0x2690b1?_0x125193['cloudSettings']?.['startPath']:undefined);}function _0x26f0(){const _0x435c45=['startsWith','1875260TZcJSE','9485532vNpzyr','cMLKG','aooFD','mqkHs','slice','11682760rYoYUJ','irWoD','authEnvironmentDomain','58036930USWKDZ','7457244WAPpAo','projectOverrides','RANGER_BASE_URL','startPath','235491Amhbkj','9cZseDv','1510jJvcPr','RANGER_START_PATH','7372lnRntv','localSettingsBaseUrl','32AYbcWv'];_0x26f0=function(){return _0x435c45;};return _0x26f0();}export function joinBaseAndPath(_0x5922e1,_0x1e6ee7){const _0x41a27b=_0x54e8;if(!_0x5922e1)return undefined;if(!_0x1e6ee7)return _0x5922e1;const _0x29f9f0=_0x5922e1['endsWith']('/')?_0x5922e1[_0x41a27b(0x16a)](0x0,-0x1):_0x5922e1,_0x2973b8=_0x1e6ee7[_0x41a27b(0x164)]('/')?_0x1e6ee7:'/'+_0x1e6ee7;return _0x29f9f0+_0x2973b8;}export function resolveProfileUrl(_0x37ae7e){const _0x432cd7=_0x54e8,_0xc1ef4e={'mqkHs':function(_0x3e147d,_0x17b53d){return _0x3e147d(_0x17b53d);}},_0x449a4a=_0xc1ef4e[_0x432cd7(0x169)](resolveBaseUrl,_0x37ae7e),_0x342991=_0xc1ef4e['mqkHs'](resolveStartPath,_0x37ae7e);return{'baseUrl':_0x449a4a,'startPath':_0x342991,'url':joinBaseAndPath(_0x449a4a,_0x342991)};}export function readUrlEnvVars(_0x2e7ff6=process['env']){const _0x3c0119=_0x54e8;return{'envBaseUrl':_0x2e7ff6[_0x3c0119(0x171)],'envStartPath':_0x2e7ff6[_0x3c0119(0x160)]};}
@@ -1 +1 @@
1
- function _0x1e1e(){const _0x351930=['710190hxkHaw','341582ljQFzs','828952delpLD','153873tkCjsl','label','baseDelayMs','689855WqAonN','ugMME','ms...','13192VTLnZP','9rCizrK','maxRetries','2408JKTMri','647004ihZIJj'];_0x1e1e=function(){return _0x351930;};return _0x1e1e();}function _0x2fea(_0xf387e2,_0x3494a6){_0xf387e2=_0xf387e2-0x7d;const _0x1e1ea7=_0x1e1e();let _0x2fea45=_0x1e1ea7[_0xf387e2];return _0x2fea45;}(function(_0x4326b7,_0x19cbbc){const _0x293174=_0x2fea,_0x416038=_0x4326b7();while(!![]){try{const _0x2fdef2=parseInt(_0x293174(0x81))/0x1+-parseInt(_0x293174(0x82))/0x2+-parseInt(_0x293174(0x7d))/0x3*(parseInt(_0x293174(0x83))/0x4)+-parseInt(_0x293174(0x87))/0x5+parseInt(_0x293174(0x80))/0x6+-parseInt(_0x293174(0x7f))/0x7*(-parseInt(_0x293174(0x8a))/0x8)+parseInt(_0x293174(0x84))/0x9;if(_0x2fdef2===_0x19cbbc)break;else _0x416038['push'](_0x416038['shift']());}catch(_0x256481){_0x416038['push'](_0x416038['shift']());}}}(_0x1e1e,0x7335d));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x1764f6,_0x4ae3ef){const _0x587555=_0x2fea,_0x2083e4={'ugMME':function(_0x476596,_0x1a26c2){return _0x476596<=_0x1a26c2;},'DBtsy':function(_0x499e1f){return _0x499e1f();},'cYxYo':function(_0x54f962,_0x322af1){return _0x54f962 instanceof _0x322af1;},'CzICk':function(_0x1d8f99,_0x307d09){return _0x1d8f99+_0x307d09;}},_0x1cfd4c=_0x4ae3ef?.[_0x587555(0x7e)]??DEFAULT_MAX_RETRIES,_0x34e71d=_0x4ae3ef?.[_0x587555(0x86)]??DEFAULT_BASE_DELAY_MS;let _0x26b60c;for(let _0x284594=0x0;_0x2083e4[_0x587555(0x88)](_0x284594,_0x1cfd4c);_0x284594++){try{return await _0x2083e4['DBtsy'](_0x1764f6);}catch(_0x2b2ff3){_0x26b60c=_0x2083e4['cYxYo'](_0x2b2ff3,Error)?_0x2b2ff3:new Error(String(_0x2b2ff3));if(_0x284594<_0x1cfd4c){const _0x5202ea=_0x34e71d*Math['pow'](0x2,_0x284594);_0x4ae3ef?.['label']&&console['error'](_0x4ae3ef[_0x587555(0x85)]+'\x20failed\x20(attempt\x20'+(_0x284594+0x1)+'/'+_0x2083e4['CzICk'](_0x1cfd4c,0x1)+'),\x20retrying\x20in\x20'+_0x5202ea+_0x587555(0x89)),await new Promise(_0x1f28bf=>setTimeout(_0x1f28bf,_0x5202ea));}}}throw _0x26b60c;}
1
+ (function(_0x45ce8c,_0x33676f){const _0x24e835=_0x3363,_0x4d87bc=_0x45ce8c();while(!![]){try{const _0x176dbb=parseInt(_0x24e835(0x123))/0x1+parseInt(_0x24e835(0x12a))/0x2+parseInt(_0x24e835(0x127))/0x3*(-parseInt(_0x24e835(0x12c))/0x4)+parseInt(_0x24e835(0x11f))/0x5*(-parseInt(_0x24e835(0x129))/0x6)+parseInt(_0x24e835(0x126))/0x7+-parseInt(_0x24e835(0x121))/0x8+-parseInt(_0x24e835(0x120))/0x9*(-parseInt(_0x24e835(0x125))/0xa);if(_0x176dbb===_0x33676f)break;else _0x4d87bc['push'](_0x4d87bc['shift']());}catch(_0x33d18c){_0x4d87bc['push'](_0x4d87bc['shift']());}}}(_0x2aff,0x25906));function _0x3363(_0x40d56d,_0x39819d){_0x40d56d=_0x40d56d-0x11f;const _0x2afff7=_0x2aff();let _0x3363b0=_0x2afff7[_0x40d56d];return _0x3363b0;}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x2aff(){const _0x4df938=['1113344kxgKsa','xwBTt','272806MLLafV','maxRetries','30TYLYUZ','414757AFMvai','111XnawNf','ZuBEq','153966CKgKNC','55828GyKrSt','label','5224eiqeYs','baseDelayMs','10EGcGvf','98109Zvuyef'];_0x2aff=function(){return _0x4df938;};return _0x2aff();}export async function withRetry(_0x42b561,_0x188e47){const _0xfec875=_0x3363,_0x193114={'GGOLp':function(_0x41aaf2){return _0x41aaf2();},'FoWLN':function(_0x147dc6,_0x50d87b){return _0x147dc6 instanceof _0x50d87b;},'xwBTt':function(_0x141404,_0x3ca7f9){return _0x141404<_0x3ca7f9;},'dEDha':function(_0x48179c,_0x2ca2b7){return _0x48179c*_0x2ca2b7;},'ZuBEq':function(_0x1be482,_0x54f7e1){return _0x1be482+_0x54f7e1;}},_0x598ef1=_0x188e47?.[_0xfec875(0x124)]??DEFAULT_MAX_RETRIES,_0x1c8a9f=_0x188e47?.[_0xfec875(0x12d)]??DEFAULT_BASE_DELAY_MS;let _0x4d2066;for(let _0x8c5ca0=0x0;_0x8c5ca0<=_0x598ef1;_0x8c5ca0++){try{return await _0x193114['GGOLp'](_0x42b561);}catch(_0x27257b){_0x4d2066=_0x193114['FoWLN'](_0x27257b,Error)?_0x27257b:new Error(String(_0x27257b));if(_0x193114[_0xfec875(0x122)](_0x8c5ca0,_0x598ef1)){const _0x5273d6=_0x193114['dEDha'](_0x1c8a9f,Math['pow'](0x2,_0x8c5ca0));_0x188e47?.[_0xfec875(0x12b)]&&console['error'](_0x188e47[_0xfec875(0x12b)]+'\x20failed\x20(attempt\x20'+_0x193114[_0xfec875(0x128)](_0x8c5ca0,0x1)+'/'+_0x193114['ZuBEq'](_0x598ef1,0x1)+'),\x20retrying\x20in\x20'+_0x5273d6+'ms...'),await new Promise(_0x4e35ef=>setTimeout(_0x4e35ef,_0x5273d6));}}}throw _0x4d2066;}
@@ -1 +1 @@
1
- const _0x50281e=_0x32b1;(function(_0x1728ad,_0xa0ee1a){const _0x232b0a=_0x32b1,_0x2967aa=_0x1728ad();while(!![]){try{const _0x11ef93=-parseInt(_0x232b0a(0x204))/0x1*(parseInt(_0x232b0a(0x1de))/0x2)+parseInt(_0x232b0a(0x1ef))/0x3+-parseInt(_0x232b0a(0x1f8))/0x4+-parseInt(_0x232b0a(0x1e1))/0x5+-parseInt(_0x232b0a(0x206))/0x6+parseInt(_0x232b0a(0x208))/0x7+parseInt(_0x232b0a(0x20a))/0x8*(parseInt(_0x232b0a(0x1fb))/0x9);if(_0x11ef93===_0xa0ee1a)break;else _0x2967aa['push'](_0x2967aa['shift']());}catch(_0x240f34){_0x2967aa['push'](_0x2967aa['shift']());}}}(_0x2af3,0x22c88));import*as _0x44a823 from'fs';import*as _0x4a9e6c from'path';import*as _0x17d479 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x4a9e6c[_0x50281e(0x207)](_0x17d479[_0x50281e(0x1f4)](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x54719a=_0x50281e,_0x44f27a={'JyIWh':_0x54719a(0x20b),'wgujO':function(_0x147d62){return _0x147d62();}};try{if(_0x44a823['existsSync'](CACHE_FILE)){const _0x417f05=JSON[_0x54719a(0x1ec)](_0x44a823['readFileSync'](CACHE_FILE,_0x44f27a[_0x54719a(0x1e3)]));return{'version':0x3,'sessions':_0x417f05['sessions']||{},'branches':_0x417f05['branches']||{},'lastEnabledSessionClearedAt':_0x417f05[_0x54719a(0x1df)]};}}catch{}return _0x44f27a[_0x54719a(0x1f5)](createEmptyCache);}function saveCache(_0x256e27){const _0x3fbf5d=_0x50281e;try{const _0x585557=_0x4a9e6c['dirname'](CACHE_FILE);!_0x44a823[_0x3fbf5d(0x205)](_0x585557)&&_0x44a823[_0x3fbf5d(0x203)](_0x585557,{'recursive':!![]}),_0x44a823[_0x3fbf5d(0x1fc)](CACHE_FILE,JSON['stringify'](_0x256e27,null,0x2));}catch{}}export function getCurrentBranch(){const _0x591771=_0x50281e,_0x4b3a81={'lhjfg':function(_0x1e657b,_0x51575e,_0x3d9268){return _0x1e657b(_0x51575e,_0x3d9268);},'DVgkB':_0x591771(0x1ea),'hBhxN':_0x591771(0x20b),'rJKgQ':_0x591771(0x1fa),'DdFOe':function(_0x2e5520,_0x4ebe96){return _0x2e5520===_0x4ebe96;},'dBqih':_0x591771(0x1e7)};try{const _0x3feba0=_0x4b3a81[_0x591771(0x1e4)](execSync,_0x4b3a81[_0x591771(0x1f9)],{'encoding':_0x4b3a81['hBhxN'],'stdio':[_0x591771(0x1fa),_0x4b3a81['rJKgQ'],_0x591771(0x1fa)]})[_0x591771(0x20c)]();if(!_0x3feba0||_0x4b3a81[_0x591771(0x1f6)](_0x3feba0,_0x4b3a81['dBqih']))return null;return _0x3feba0;}catch{return null;}}export function enableBranch(_0x540f7d){const _0x29d235=_0x50281e,_0xf8fa24={'oqDCR':function(_0x454dc1){return _0x454dc1();}},_0x48bb4b=_0xf8fa24[_0x29d235(0x1ed)](loadCache);_0x48bb4b[_0x29d235(0x1fe)][_0x540f7d]=!![],saveCache(_0x48bb4b);}export function disableBranch(_0x2c413a){const _0x388e9a=_0x50281e,_0x5052f0={'eqtzN':function(_0x2844e3){return _0x2844e3();}},_0x3b4f04=_0x5052f0[_0x388e9a(0x1e0)](loadCache);delete _0x3b4f04[_0x388e9a(0x1fe)][_0x2c413a],saveCache(_0x3b4f04);}export function isBranchEnabled(_0x12d98a){const _0x3d8d72=loadCache();return _0x3d8d72['branches'][_0x12d98a]===!![];}function getOrCreateSession(_0x4dde77,_0x264921){const _0x1fc4ba=_0x50281e;return!_0x4dde77['sessions'][_0x264921]&&(_0x4dde77[_0x1fc4ba(0x209)][_0x264921]={}),_0x4dde77[_0x1fc4ba(0x209)][_0x264921];}export function enableSession(_0x236be5){const _0x57c59c=_0x50281e,_0x1e712b={'pFISw':function(_0x3c4cd5){return _0x3c4cd5();},'kXCzM':function(_0x2c54b1,_0x43c67c,_0x41c17f){return _0x2c54b1(_0x43c67c,_0x41c17f);},'OGBvb':function(_0x150c3d,_0x10db45){return _0x150c3d!==_0x10db45;},'BTJzZ':_0x57c59c(0x1fd),'EVCWg':function(_0x106f42,_0x5b13d2){return _0x106f42(_0x5b13d2);}},_0x15742a=_0x1e712b['pFISw'](loadCache),_0x102b32=_0x1e712b['kXCzM'](getOrCreateSession,_0x15742a,_0x236be5);_0x102b32[_0x57c59c(0x201)]=!![];const _0x32d3ef=getCurrentBranch();_0x32d3ef&&_0x1e712b['OGBvb'](_0x32d3ef,_0x1e712b['BTJzZ'])&&_0x32d3ef!==_0x57c59c(0x202)&&(_0x15742a[_0x57c59c(0x1fe)][_0x32d3ef]=!![],_0x102b32['currentBranch']=_0x32d3ef),_0x1e712b['EVCWg'](saveCache,_0x15742a);}export function isSessionEnabled(_0x346da4){const _0x51fdec=_0x50281e,_0x279b52={'UGhJr':function(_0x51376a){return _0x51376a();},'lGVZF':function(_0x46a303,_0x16e230){return _0x46a303===_0x16e230;},'jGtsT':_0x51fdec(0x1fd),'oWyhh':_0x51fdec(0x202),'QPGhn':function(_0x4988d7,_0x909fd5){return _0x4988d7===_0x909fd5;}},_0x1fc639=loadCache(),_0x2543de=_0x279b52[_0x51fdec(0x1dd)](getCurrentBranch);if(!_0x2543de||_0x279b52[_0x51fdec(0x1e9)](_0x2543de,_0x279b52['jGtsT'])||_0x279b52['lGVZF'](_0x2543de,_0x279b52['oWyhh']))return _0x279b52['QPGhn'](_0x1fc639[_0x51fdec(0x209)][_0x346da4]?.['enabled'],!![]);const _0xd6421d=_0x1fc639[_0x51fdec(0x1fe)][_0x2543de]===!![],_0x400d9a=_0x1fc639[_0x51fdec(0x209)][_0x346da4]?.[_0x51fdec(0x201)]===!![];return _0xd6421d||_0x400d9a;}export function disableSession(_0x3a0a58){const _0xbdb7a9=_0x50281e,_0x23c5e7={'ZgVmH':function(_0x4fb99a,_0x35a0a0,_0x4a797e){return _0x4fb99a(_0x35a0a0,_0x4a797e);}},_0x23ff5e=loadCache(),_0x2bafaa=_0x23c5e7[_0xbdb7a9(0x200)](getOrCreateSession,_0x23ff5e,_0x3a0a58);_0x2bafaa[_0xbdb7a9(0x201)]=![],saveCache(_0x23ff5e);}export function updateBranchTracking(_0x3c68f1){const _0x44215e=_0x50281e,_0x2ae1ef={'WoCsr':function(_0x5a14c9){return _0x5a14c9();},'oUnXu':function(_0x4ff471){return _0x4ff471();},'MdhVT':function(_0x1bacf5,_0x147a1c){return _0x1bacf5===_0x147a1c;},'TsNAI':function(_0x4c2572,_0x426ebd){return _0x4c2572!==_0x426ebd;}},_0x149f58=_0x2ae1ef['WoCsr'](loadCache),_0x53df75=_0x149f58[_0x44215e(0x209)][_0x3c68f1];if(!_0x53df75?.[_0x44215e(0x201)])return;const _0xd67cb6=_0x2ae1ef[_0x44215e(0x1f0)](getCurrentBranch);if(!_0xd67cb6||_0xd67cb6==='main'||_0x2ae1ef['MdhVT'](_0xd67cb6,_0x44215e(0x202)))return;_0x2ae1ef['TsNAI'](_0x53df75['currentBranch'],_0xd67cb6)&&(_0x149f58[_0x44215e(0x1fe)][_0xd67cb6]=!![],_0x53df75[_0x44215e(0x1e2)]=_0xd67cb6,saveCache(_0x149f58));}export function initBranchTracking(_0x45bc6d){const _0x21f4a4=_0x50281e,_0xfb4d40={'dRYwJ':function(_0x371d29){return _0x371d29();},'oRStT':function(_0x5a2213,_0x2fa698){return _0x5a2213===_0x2fa698;},'NWiqI':function(_0x438199,_0x30da13,_0x5db293){return _0x438199(_0x30da13,_0x5db293);},'WLJVQ':function(_0x1778a5,_0x2bd1d7){return _0x1778a5(_0x2bd1d7);}},_0x5b0f41=_0xfb4d40['dRYwJ'](loadCache),_0x571b4b=getCurrentBranch();if(!_0x571b4b||_0xfb4d40[_0x21f4a4(0x1f1)](_0x571b4b,'main')||_0x571b4b===_0x21f4a4(0x202))return;if(_0x5b0f41['branches'][_0x571b4b]===!![]){const _0x29ebb9=_0xfb4d40['NWiqI'](getOrCreateSession,_0x5b0f41,_0x45bc6d);_0x29ebb9[_0x21f4a4(0x201)]=!![],_0x29ebb9['currentBranch']=_0x571b4b,_0xfb4d40[_0x21f4a4(0x1f7)](saveCache,_0x5b0f41);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x472945){const _0x48aa9f=_0x50281e,_0x587eba={'zdcxc':function(_0xa1da3f,_0xe9a58b){return _0xa1da3f(_0xe9a58b);}},_0x4d6de1=loadCache(),_0x303358=_0x4d6de1[_0x48aa9f(0x209)][_0x472945];_0x303358?.[_0x48aa9f(0x201)]&&(_0x4d6de1['lastEnabledSessionClearedAt']=Date[_0x48aa9f(0x1f3)](),_0x587eba['zdcxc'](saveCache,_0x4d6de1));}export function shouldAutoEnableAfterClear(_0x54d211){const _0x49880e=_0x50281e,_0x48cff6={'tdoJU':function(_0x58ff11,_0x3a88cc){return _0x58ff11!==_0x3a88cc;}};if(_0x48cff6['tdoJU'](_0x54d211,'clear'))return![];const _0x6355dd=loadCache(),_0x10037a=_0x6355dd['lastEnabledSessionClearedAt'];if(!_0x10037a)return![];const _0x16869f=Date[_0x49880e(0x1f3)]()-_0x10037a;return _0x16869f<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x57cf4a){const _0x638bc=_0x50281e,_0x55c53f={'Itlph':function(_0x18cd4d){return _0x18cd4d();},'dOgmx':function(_0x3bd5d1,_0x4c6d12){return _0x3bd5d1!==_0x4c6d12;},'XKjbt':function(_0x5ae948,_0x2919a5){return _0x5ae948(_0x2919a5);}},_0x473b3a=_0x55c53f['Itlph'](loadCache),_0x775f1e=getOrCreateSession(_0x473b3a,_0x57cf4a);_0x775f1e['enabled']=!![];const _0x19bbb1=getCurrentBranch();_0x19bbb1&&_0x19bbb1!==_0x638bc(0x1fd)&&_0x55c53f[_0x638bc(0x1f2)](_0x19bbb1,_0x638bc(0x202))&&(_0x775f1e['currentBranch']=_0x19bbb1),delete _0x473b3a[_0x638bc(0x1df)],_0x55c53f['XKjbt'](saveCache,_0x473b3a);}function _0x2af3(){const _0x4cb36f=['utf-8','trim','UGhJr','43118lyczrK','lastEnabledSessionClearedAt','eqtzN','1167425YzvNWV','currentBranch','JyIWh','lhjfg','featureId','DLEAZ','HEAD','DRJkf','lGVZF','git\x20rev-parse\x20--abbrev-ref\x20HEAD','lastStopReminderAt','parse','oqDCR','registeredAt','409830eVlsab','oUnXu','oRStT','dOgmx','now','homedir','wgujO','DdFOe','WLJVQ','259392CQdwFd','DVgkB','pipe','9cTYXgk','writeFileSync','main','branches','toISOString','ZgVmH','enabled','master','mkdirSync','13pWOTYJ','existsSync','1607076PhhMnh','join','1251873sYqQzh','sessions','5387752BDuxHQ'];_0x2af3=function(){return _0x4cb36f;};return _0x2af3();}export function registerSession(_0x34fb2f,_0x523e61){const _0x4c8162=_0x50281e,_0x45bedb={'eocpX':function(_0x50ffd1){return _0x50ffd1();}},_0x2cd20e=_0x45bedb['eocpX'](loadCache),_0x48246a=getOrCreateSession(_0x2cd20e,_0x34fb2f);_0x48246a[_0x4c8162(0x1e5)]=_0x523e61,_0x48246a[_0x4c8162(0x1ee)]=new Date()[_0x4c8162(0x1ff)](),saveCache(_0x2cd20e);}export function getSessionEntry(_0x22f694){const _0x1148e8=_0x50281e,_0x39c340={'DLEAZ':function(_0x5d2375){return _0x5d2375();}},_0x32d703=_0x39c340[_0x1148e8(0x1e6)](loadCache),_0x547e61=_0x32d703['sessions'][_0x22f694];if(_0x547e61?.[_0x1148e8(0x1e5)]&&_0x547e61?.['registeredAt'])return{'featureId':_0x547e61[_0x1148e8(0x1e5)],'registeredAt':_0x547e61['registeredAt']};return null;}export function unregisterSession(_0x2eab18){const _0x26eba6=_0x50281e,_0x27526b={'XHvtQ':function(_0x7e9acf){return _0x7e9acf();},'DRJkf':function(_0x5f48af,_0xf1e76c){return _0x5f48af(_0xf1e76c);}},_0x5b95f6=_0x27526b['XHvtQ'](loadCache),_0x2f9161=_0x5b95f6['sessions'][_0x2eab18];_0x2f9161&&(delete _0x2f9161['featureId'],delete _0x2f9161[_0x26eba6(0x1ee)],_0x27526b[_0x26eba6(0x1e8)](saveCache,_0x5b95f6));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0xe117f0){const _0x2db93b=_0x50281e,_0x5f3a11={'ulrlu':function(_0x10c0fd,_0x3e6fd4,_0x52bd3b){return _0x10c0fd(_0x3e6fd4,_0x52bd3b);},'ZuzNT':function(_0x247a11,_0x2eddba){return _0x247a11>=_0x2eddba;},'IGEVG':function(_0x250235,_0x203d6b){return _0x250235(_0x203d6b);}},_0xa6c421=loadCache(),_0xafab76=_0x5f3a11['ulrlu'](getOrCreateSession,_0xa6c421,_0xe117f0),_0xb1e98e=_0xafab76['lastPlanReminderAt']||0x0,_0x13add0=Date[_0x2db93b(0x1f3)]();if(_0x5f3a11['ZuzNT'](_0x13add0-_0xb1e98e,PLAN_REMINDER_INTERVAL_MS))return _0xafab76['lastPlanReminderAt']=_0x13add0,_0x5f3a11['IGEVG'](saveCache,_0xa6c421),!![];return![];}export function shouldShowStopReminder(_0x3d02c){const _0x2f0cfb=_0x50281e,_0x27d893={'YJdrO':function(_0xbff451,_0x5986e4){return _0xbff451>=_0x5986e4;}},_0x49811c=loadCache(),_0x1fc2af=getOrCreateSession(_0x49811c,_0x3d02c),_0x35258b=_0x1fc2af[_0x2f0cfb(0x1eb)]||0x0,_0x2d20c2=Date['now']();if(_0x27d893['YJdrO'](_0x2d20c2-_0x35258b,STOP_REMINDER_INTERVAL_MS))return _0x1fc2af[_0x2f0cfb(0x1eb)]=_0x2d20c2,saveCache(_0x49811c),!![];return![];}export function hasSessionBeenPrompted(_0x48f3f6){const _0x53d418=_0x50281e,_0x175c85={'VNEKb':function(_0x5428ff){return _0x5428ff();},'hbLdx':function(_0x40061f,_0x59799e){return _0x40061f===_0x59799e;}},_0xc8e635=_0x175c85['VNEKb'](loadCache);return _0x175c85['hbLdx'](_0xc8e635[_0x53d418(0x209)][_0x48f3f6]?.['prompted'],!![]);}export function markSessionPrompted(_0x591d6c){const _0x4a5420=loadCache(),_0x4b94f3=getOrCreateSession(_0x4a5420,_0x591d6c);_0x4b94f3['prompted']=!![],saveCache(_0x4a5420);}function _0x32b1(_0x2a7f3a,_0x5918c3){_0x2a7f3a=_0x2a7f3a-0x1dd;const _0x2af300=_0x2af3();let _0x32b1a3=_0x2af300[_0x2a7f3a];return _0x32b1a3;}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0x110832=_0x1ea6;(function(_0x3c86cb,_0x43a7e1){const _0x1271ff=_0x1ea6,_0x48c290=_0x3c86cb();while(!![]){try{const _0x3c825a=-parseInt(_0x1271ff(0xb0))/0x1+-parseInt(_0x1271ff(0xa1))/0x2+parseInt(_0x1271ff(0xab))/0x3*(-parseInt(_0x1271ff(0xa6))/0x4)+-parseInt(_0x1271ff(0x8e))/0x5*(-parseInt(_0x1271ff(0xac))/0x6)+parseInt(_0x1271ff(0xa2))/0x7+-parseInt(_0x1271ff(0x9a))/0x8+parseInt(_0x1271ff(0x89))/0x9*(parseInt(_0x1271ff(0xa3))/0xa);if(_0x3c825a===_0x43a7e1)break;else _0x48c290['push'](_0x48c290['shift']());}catch(_0x21ddfe){_0x48c290['push'](_0x48c290['shift']());}}}(_0x59c6,0x3877b));import*as _0x5d5801 from'fs';import*as _0xdedeec from'path';import*as _0x2464b5 from'os';import{execSync}from'child_process';const CACHE_FILE=_0xdedeec['join'](_0x2464b5[_0x110832(0x9d)](),'.claude',_0x110832(0x97));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x1227d5=_0x110832,_0x3296b1={'GQfvR':_0x1227d5(0xae)};try{if(_0x5d5801[_0x1227d5(0xad)](CACHE_FILE)){const _0x3eec86=JSON['parse'](_0x5d5801[_0x1227d5(0xb8)](CACHE_FILE,_0x3296b1[_0x1227d5(0x9f)]));return{'version':0x3,'sessions':_0x3eec86['sessions']||{},'branches':_0x3eec86[_0x1227d5(0xb9)]||{},'lastEnabledSessionClearedAt':_0x3eec86[_0x1227d5(0xb6)]};}}catch{}return createEmptyCache();}function saveCache(_0x289893){const _0x3454b2=_0x110832;try{const _0xab186a=_0xdedeec[_0x3454b2(0xb1)](CACHE_FILE);!_0x5d5801[_0x3454b2(0xad)](_0xab186a)&&_0x5d5801['mkdirSync'](_0xab186a,{'recursive':!![]}),_0x5d5801[_0x3454b2(0xb4)](CACHE_FILE,JSON[_0x3454b2(0x8c)](_0x289893,null,0x2));}catch{}}function _0x59c6(){const _0xcd8d22=['lastEnabledSessionClearedAt','Tpmwl','readFileSync','branches','377361OGmUTZ','featureId','sessions','stringify','nthbf','90hBCrRG','registeredAt','TMTzT','ivZkE','prompted','git\x20rev-parse\x20--abbrev-ref\x20HEAD','urZlI','yvlFo','SFRVx','.ranger_cache.json','pipe','now','1951192EmUREU','WjtSO','master','homedir','main','GQfvR','HGCIB','35046wooxtb','2990015RlsniQ','130hWCsqE','enabled','ZoQLZ','104Ebsmcb','bygNl','NZoYo','mIUAj','RJWoY','48819gXjQCF','106674pmbIyC','existsSync','utf-8','NRpcK','376433UxxcQY','dirname','currentBranch','lastStopReminderAt','writeFileSync','lastPlanReminderAt'];_0x59c6=function(){return _0xcd8d22;};return _0x59c6();}export function getCurrentBranch(){const _0xa41374=_0x110832,_0x2879ad={'urZlI':function(_0x14c6d8,_0x2c5539,_0x545711){return _0x14c6d8(_0x2c5539,_0x545711);},'ivZkE':'utf-8','fsfIL':_0xa41374(0x98),'TMTzT':function(_0x32ebb8,_0x4c2e10){return _0x32ebb8===_0x4c2e10;}};try{const _0x1b2e68=_0x2879ad[_0xa41374(0x94)](execSync,_0xa41374(0x93),{'encoding':_0x2879ad[_0xa41374(0x91)],'stdio':[_0x2879ad['fsfIL'],_0xa41374(0x98),_0xa41374(0x98)]})['trim']();if(!_0x1b2e68||_0x2879ad[_0xa41374(0x90)](_0x1b2e68,'HEAD'))return null;return _0x1b2e68;}catch{return null;}}export function enableBranch(_0x2370d1){const _0xdeba1=_0x110832,_0xb96911={'nthbf':function(_0x16a947,_0x24b135){return _0x16a947(_0x24b135);}},_0x346c45=loadCache();_0x346c45[_0xdeba1(0xb9)][_0x2370d1]=!![],_0xb96911[_0xdeba1(0x8d)](saveCache,_0x346c45);}export function disableBranch(_0x100fe6){const _0x279870=_0x110832,_0x27b116={'ZoQLZ':function(_0x11e970){return _0x11e970();}},_0x55f9ea=_0x27b116[_0x279870(0xa5)](loadCache);delete _0x55f9ea[_0x279870(0xb9)][_0x100fe6],saveCache(_0x55f9ea);}export function isBranchEnabled(_0x38f673){const _0x16f208=_0x110832,_0xa1dd3f={'mIUAj':function(_0x3a25d1,_0x2e120e){return _0x3a25d1===_0x2e120e;}},_0x2283c0=loadCache();return _0xa1dd3f[_0x16f208(0xa9)](_0x2283c0['branches'][_0x38f673],!![]);}function getOrCreateSession(_0x40125b,_0x2c72c7){const _0x5091a1=_0x110832;return!_0x40125b[_0x5091a1(0x8b)][_0x2c72c7]&&(_0x40125b[_0x5091a1(0x8b)][_0x2c72c7]={}),_0x40125b['sessions'][_0x2c72c7];}export function enableSession(_0xf64e87){const _0x5d9a7e=_0x110832,_0x23be53={'NZoYo':function(_0x58fc07){return _0x58fc07();},'jxdXW':function(_0x2c4ac8,_0x1cb234){return _0x2c4ac8!==_0x1cb234;},'iLlxM':'main','QqnQs':function(_0x184a65,_0x221cfb){return _0x184a65!==_0x221cfb;},'HOONa':function(_0x4fa549,_0x2102e8){return _0x4fa549(_0x2102e8);}},_0x493a46=loadCache(),_0x268af=getOrCreateSession(_0x493a46,_0xf64e87);_0x268af[_0x5d9a7e(0xa4)]=!![];const _0x5395d1=_0x23be53[_0x5d9a7e(0xa8)](getCurrentBranch);_0x5395d1&&_0x23be53['jxdXW'](_0x5395d1,_0x23be53['iLlxM'])&&_0x23be53['QqnQs'](_0x5395d1,'master')&&(_0x493a46[_0x5d9a7e(0xb9)][_0x5395d1]=!![],_0x268af[_0x5d9a7e(0xb2)]=_0x5395d1),_0x23be53['HOONa'](saveCache,_0x493a46);}export function isSessionEnabled(_0x5d029e){const _0x4f7d24=_0x110832,_0x2abc75={'onrMY':function(_0x3bcea1){return _0x3bcea1();},'arszJ':function(_0x4b650a){return _0x4b650a();},'RJWoY':function(_0x59f8e9,_0x338ea3){return _0x59f8e9===_0x338ea3;},'CJQOn':'main','pswby':function(_0x284803,_0x56101d){return _0x284803===_0x56101d;}},_0x230d5a=_0x2abc75['onrMY'](loadCache),_0x5d2fc0=_0x2abc75['arszJ'](getCurrentBranch);if(!_0x5d2fc0||_0x2abc75[_0x4f7d24(0xaa)](_0x5d2fc0,_0x2abc75['CJQOn'])||_0x5d2fc0==='master')return _0x2abc75[_0x4f7d24(0xaa)](_0x230d5a['sessions'][_0x5d029e]?.['enabled'],!![]);const _0x175672=_0x230d5a['branches'][_0x5d2fc0]===!![],_0xbf1fbd=_0x2abc75['pswby'](_0x230d5a[_0x4f7d24(0x8b)][_0x5d029e]?.[_0x4f7d24(0xa4)],!![]);return _0x175672||_0xbf1fbd;}export function disableSession(_0x519c81){const _0x2520e5=_0x110832,_0x434785={'nKBIr':function(_0x7394d9){return _0x7394d9();},'ARXyP':function(_0x1c4741,_0x44290d,_0x5cbbd6){return _0x1c4741(_0x44290d,_0x5cbbd6);}},_0x4b24f7=_0x434785['nKBIr'](loadCache),_0x11f4a7=_0x434785['ARXyP'](getOrCreateSession,_0x4b24f7,_0x519c81);_0x11f4a7[_0x2520e5(0xa4)]=![],saveCache(_0x4b24f7);}export function updateBranchTracking(_0x53a6f4){const _0x12d8f6=_0x110832,_0x338904={'QBCpW':function(_0x2efbb4,_0x163fbf){return _0x2efbb4===_0x163fbf;},'ltjGB':_0x12d8f6(0x9e),'gukBt':function(_0x440050,_0x12c2d2){return _0x440050===_0x12c2d2;},'NRpcK':_0x12d8f6(0x9c),'aadGr':function(_0x200754,_0x326910){return _0x200754!==_0x326910;}},_0x180399=loadCache(),_0x54309b=_0x180399['sessions'][_0x53a6f4];if(!_0x54309b?.[_0x12d8f6(0xa4)])return;const _0x3dfb05=getCurrentBranch();if(!_0x3dfb05||_0x338904['QBCpW'](_0x3dfb05,_0x338904['ltjGB'])||_0x338904['gukBt'](_0x3dfb05,_0x338904[_0x12d8f6(0xaf)]))return;_0x338904['aadGr'](_0x54309b[_0x12d8f6(0xb2)],_0x3dfb05)&&(_0x180399[_0x12d8f6(0xb9)][_0x3dfb05]=!![],_0x54309b['currentBranch']=_0x3dfb05,saveCache(_0x180399));}export function initBranchTracking(_0x51c589){const _0xa591e3=_0x110832,_0x5cad50={'tZVzU':function(_0x4de213,_0x446512){return _0x4de213===_0x446512;},'HGCIB':_0xa591e3(0x9c),'gIkas':function(_0x1b0b32,_0x25e6e5,_0x3dee08){return _0x1b0b32(_0x25e6e5,_0x3dee08);},'PctbB':function(_0x49b372,_0x4425eb){return _0x49b372(_0x4425eb);}},_0x2de2cb=loadCache(),_0x26d236=getCurrentBranch();if(!_0x26d236||_0x5cad50['tZVzU'](_0x26d236,_0xa591e3(0x9e))||_0x26d236===_0x5cad50[_0xa591e3(0xa0)])return;if(_0x2de2cb['branches'][_0x26d236]===!![]){const _0x54ead0=_0x5cad50['gIkas'](getOrCreateSession,_0x2de2cb,_0x51c589);_0x54ead0[_0xa591e3(0xa4)]=!![],_0x54ead0[_0xa591e3(0xb2)]=_0x26d236,_0x5cad50['PctbB'](saveCache,_0x2de2cb);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x341fbc){const _0x443a11=_0x110832,_0x8a4c26={'TUqsN':function(_0x9061e1){return _0x9061e1();},'bygNl':function(_0x1af364,_0x27aa33){return _0x1af364(_0x27aa33);}},_0x1ffeaf=_0x8a4c26['TUqsN'](loadCache),_0x5bef8a=_0x1ffeaf[_0x443a11(0x8b)][_0x341fbc];_0x5bef8a?.['enabled']&&(_0x1ffeaf['lastEnabledSessionClearedAt']=Date['now'](),_0x8a4c26[_0x443a11(0xa7)](saveCache,_0x1ffeaf));}export function shouldAutoEnableAfterClear(_0x3aeb49){const _0x23ff4e={'IGIAr':function(_0x46cd58,_0x1c7aae){return _0x46cd58!==_0x1c7aae;}};if(_0x23ff4e['IGIAr'](_0x3aeb49,'clear'))return![];const _0x76e22d=loadCache(),_0x39b158=_0x76e22d['lastEnabledSessionClearedAt'];if(!_0x39b158)return![];const _0x5d218c=Date['now']()-_0x39b158;return _0x5d218c<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x5ef485){const _0x11e4d1=_0x110832,_0x4af117={'kiLcg':function(_0x262560){return _0x262560();},'QAAWi':'master'},_0x157f82=loadCache(),_0x53a8b0=getOrCreateSession(_0x157f82,_0x5ef485);_0x53a8b0[_0x11e4d1(0xa4)]=!![];const _0x2ac438=_0x4af117['kiLcg'](getCurrentBranch);_0x2ac438&&_0x2ac438!==_0x11e4d1(0x9e)&&_0x2ac438!==_0x4af117['QAAWi']&&(_0x53a8b0[_0x11e4d1(0xb2)]=_0x2ac438),delete _0x157f82[_0x11e4d1(0xb6)],saveCache(_0x157f82);}export function registerSession(_0xd587a3,_0xc9543b){const _0x87d8d6=_0x110832,_0x28667e={'uEXrY':function(_0xa055e4,_0x5bce51,_0x2c49c2){return _0xa055e4(_0x5bce51,_0x2c49c2);}},_0x58188f=loadCache(),_0x10624c=_0x28667e['uEXrY'](getOrCreateSession,_0x58188f,_0xd587a3);_0x10624c['featureId']=_0xc9543b,_0x10624c[_0x87d8d6(0x8f)]=new Date()['toISOString'](),saveCache(_0x58188f);}export function getSessionEntry(_0x47dbd9){const _0x351a75=_0x110832,_0x5aafa9=loadCache(),_0x5cc557=_0x5aafa9[_0x351a75(0x8b)][_0x47dbd9];if(_0x5cc557?.['featureId']&&_0x5cc557?.[_0x351a75(0x8f)])return{'featureId':_0x5cc557[_0x351a75(0x8a)],'registeredAt':_0x5cc557[_0x351a75(0x8f)]};return null;}export function unregisterSession(_0x309a51){const _0x4061fa=_0x110832,_0x2f8963=loadCache(),_0x55fa88=_0x2f8963[_0x4061fa(0x8b)][_0x309a51];_0x55fa88&&(delete _0x55fa88[_0x4061fa(0x8a)],delete _0x55fa88['registeredAt'],saveCache(_0x2f8963));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x28af69){const _0x375dcb=_0x110832,_0x256121={'SFRVx':function(_0x2fcaf4,_0x580777){return _0x2fcaf4(_0x580777);}},_0x14a869=loadCache(),_0x45a4d5=getOrCreateSession(_0x14a869,_0x28af69),_0x2d2ed8=_0x45a4d5[_0x375dcb(0xb5)]||0x0,_0x3699cc=Date[_0x375dcb(0x99)]();if(_0x3699cc-_0x2d2ed8>=PLAN_REMINDER_INTERVAL_MS)return _0x45a4d5[_0x375dcb(0xb5)]=_0x3699cc,_0x256121[_0x375dcb(0x96)](saveCache,_0x14a869),!![];return![];}export function shouldShowStopReminder(_0x140205){const _0x51a244=_0x110832,_0x4e55a4={'WjtSO':function(_0x5cd8fe,_0x1d59e6,_0x3d3c42){return _0x5cd8fe(_0x1d59e6,_0x3d3c42);}},_0x51c24a=loadCache(),_0x357df8=_0x4e55a4[_0x51a244(0x9b)](getOrCreateSession,_0x51c24a,_0x140205),_0x51b626=_0x357df8[_0x51a244(0xb3)]||0x0,_0xa31f81=Date['now']();if(_0xa31f81-_0x51b626>=STOP_REMINDER_INTERVAL_MS)return _0x357df8['lastStopReminderAt']=_0xa31f81,saveCache(_0x51c24a),!![];return![];}function _0x1ea6(_0x2664f7,_0x4d9cc7){_0x2664f7=_0x2664f7-0x89;const _0x59c6d1=_0x59c6();let _0x1ea6b4=_0x59c6d1[_0x2664f7];return _0x1ea6b4;}export function hasSessionBeenPrompted(_0x1c7fe3){const _0x19ea8b=_0x110832,_0x4d0d6a={'Tpmwl':function(_0x99a20){return _0x99a20();},'yvlFo':function(_0x1aae36,_0x17fca8){return _0x1aae36===_0x17fca8;}},_0x37aed6=_0x4d0d6a[_0x19ea8b(0xb7)](loadCache);return _0x4d0d6a[_0x19ea8b(0x95)](_0x37aed6['sessions'][_0x1c7fe3]?.[_0x19ea8b(0x92)],!![]);}export function markSessionPrompted(_0x5e32ad){const _0x450c86=_0x110832,_0x15495e={'DrEES':function(_0x21216a,_0x42595b,_0x30d5b2){return _0x21216a(_0x42595b,_0x30d5b2);},'TlaMz':function(_0x525932,_0x2f76fa){return _0x525932(_0x2f76fa);}},_0x15c2f5=loadCache(),_0x4a4410=_0x15495e['DrEES'](getOrCreateSession,_0x15c2f5,_0x5e32ad);_0x4a4410[_0x450c86(0x92)]=!![],_0x15495e['TlaMz'](saveCache,_0x15c2f5);}export function getCacheFile(){return CACHE_FILE;}