@ranger-testing/ranger-cli 2.5.4-alpha.f940f0d-18 → 2.5.4-alpha.feb9faf-20
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.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/mcpBootstrap.js +1 -1
- package/build/commands/migrateProfile.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/legacyWarning.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/projectsConfig.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x31874d=_0x1491;function _0xb3b0(){const _0x4425da=['190fgYXVn','string','SIGTERM','hex','env','436357WFPbKD','timeoutMs','cmd','2xACsgZ','elOHD','\x27\x5c\x27\x27','PgKHO','join','toString','bZvEg','slice','8xMogzw','bash_command','979WxJFJQ','configPath','RXwnl','\x0astdout:\x20','args','WGwec','@playwright/cli','ZhIay','SIGKILL','14862861EoatPr','--config','11179IfdgxZ','4554ankjlF','\x20signal=','sessionId','bAydo','commandArgs','stderr','nDjTU','script','...','KvACL','trim','3529240pYZaZN','KfOMn','kill','256524GQNofh','JSxGv','OdtLR','pipe','2608626iuHjco','KJgOr','qPPFj','values','npx','137996aKneYX','uKIwO','map','null','vVdMs','OwsJF'];_0xb3b0=function(){return _0x4425da;};return _0xb3b0();}(function(_0x5cbffc,_0x3f08ca){const _0x28bf5d=_0x1491,_0x33596e=_0x5cbffc();while(!![]){try{const _0x3a1f6c=parseInt(_0x28bf5d(0x1af))/0x1+parseInt(_0x28bf5d(0x1b2))/0x2*(-parseInt(_0x28bf5d(0x19f))/0x3)+-parseInt(_0x28bf5d(0x1a4))/0x4*(parseInt(_0x28bf5d(0x1aa))/0x5)+parseInt(_0x28bf5d(0x18d))/0x6*(-parseInt(_0x28bf5d(0x18c))/0x7)+parseInt(_0x28bf5d(0x1ba))/0x8*(parseInt(_0x28bf5d(0x18a))/0x9)+parseInt(_0x28bf5d(0x198))/0xa+parseInt(_0x28bf5d(0x1bc))/0xb*(parseInt(_0x28bf5d(0x19b))/0xc);if(_0x3a1f6c===_0x3f08ca)break;else _0x33596e['push'](_0x33596e['shift']());}catch(_0x27852){_0x33596e['push'](_0x33596e['shift']());}}}(_0xb3b0,0xe816c));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0x31874d(0x187);function toPlaywrightCliSessionKey(_0x22667c){const _0x583f74=_0x31874d,_0x29fd26={'flVQd':function(_0xd03ab7,_0xba020){return _0xd03ab7(_0xba020);},'qPPFj':'sha256'},_0x813540=_0x29fd26['flVQd'](createHash,_0x29fd26[_0x583f74(0x1a1)])['update'](_0x22667c)['digest'](_0x583f74(0x1ad))[_0x583f74(0x1b9)](0x0,0xc);return'rg-'+_0x813540;}function shellQuote(_0x30755e){const _0x3bd5e7=_0x31874d;return'\x27'+_0x30755e['replace'](/'/g,_0x3bd5e7(0x1b4))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0xe22a86){const _0x126d77={'RcuPk':function(_0xd7f1f1,_0x5a2f53){return _0xd7f1f1(_0x5a2f53);}};return SAFE_SHELL_TOKEN['test'](_0xe22a86)?_0xe22a86:_0x126d77['RcuPk'](shellQuote,_0xe22a86);}export function buildPlaywrightCliInvocation(_0x45f10e,_0x1750e0,_0x365a12){const _0x556d05=_0x31874d,_0x3eef15={'KvACL':_0x556d05(0x1a3),'EovCA':'--config'},_0x48d79d=toPlaywrightCliSessionKey(_0x45f10e),[_0x5cb8da='unknown']=_0x365a12,_0x58780c=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x48d79d,'--config',_0x1750e0,..._0x365a12];return{'command':_0x556d05(0x1a3),'args':_0x58780c,'shellCommand':[_0x3eef15[_0x556d05(0x196)],PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x48d79d),_0x3eef15['EovCA'],quoteShellArg(_0x1750e0),..._0x365a12[_0x556d05(0x1a6)](quoteShellArg)]['join']('\x20'),'subcommand':_0x5cb8da};}export function buildPlaywrightCliCommandPrefix(_0x4ccb79,_0x497a13){const _0x794e2=_0x31874d,_0x3f07e7={'sASLh':function(_0x367c56,_0x4090b0){return _0x367c56(_0x4090b0);},'uKIwO':function(_0x507eac,_0x5c8917){return _0x507eac(_0x5c8917);}},_0x3fff00=_0x3f07e7['sASLh'](toPlaywrightCliSessionKey,_0x4ccb79);return['npx',PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x3fff00),_0x794e2(0x18b),_0x3f07e7[_0x794e2(0x1a5)](quoteShellArg,_0x497a13)][_0x794e2(0x1b6)]('\x20');}function truncateOutput(_0x2ce554,_0x4c11bc=0x7d0){const _0x56ca2a=_0x31874d,_0x344e89={'HSwGY':function(_0xad7dc8,_0x3dda16){return _0xad7dc8>_0x3dda16;},'yxFMA':function(_0x5ad66d,_0x32cf87){return _0x5ad66d+_0x32cf87;}};return _0x344e89['HSwGY'](_0x2ce554['length'],_0x4c11bc)?_0x344e89['yxFMA'](_0x2ce554[_0x56ca2a(0x1b9)](0x0,_0x4c11bc),_0x56ca2a(0x195)):_0x2ce554;}export async function runPlaywrightCliCommand(_0x505006){const _0x316e3b=_0x31874d,_0x2c0508={'vVdMs':function(_0x4389f2,_0x169531){return _0x4389f2(_0x169531);},'bZvEg':function(_0x34a356,_0x264c8a,_0x26f6d0){return _0x34a356(_0x264c8a,_0x26f6d0);},'dDszW':function(_0x17d5e3,_0x24d4c6){return _0x17d5e3===_0x24d4c6;},'KJgOr':function(_0x3a1a16,_0x1ce614,_0x39d616,_0x26e5d4){return _0x3a1a16(_0x1ce614,_0x39d616,_0x26e5d4);},'IIdRK':'ignore','RXwnl':_0x316e3b(0x19e),'JSxGv':function(_0x27ce96,_0x15377d){return _0x27ce96>_0x15377d;},'GtGXR':function(_0x2966f0,_0x45b8e4,_0x1f5832){return _0x2966f0(_0x45b8e4,_0x1f5832);},'bAydo':'data'},_0x37555f=buildPlaywrightCliInvocation(_0x505006[_0x316e3b(0x18f)],_0x505006[_0x316e3b(0x1bd)],_0x505006[_0x316e3b(0x191)]);return new Promise((_0x1edf88,_0x2d372f)=>{const _0x31b250=_0x316e3b,_0x2264de={'nDjTU':function(_0x180ad0,_0x51c091,_0xef8a63){const _0x49bd14=_0x1491;return _0x2c0508[_0x49bd14(0x1b8)](_0x180ad0,_0x51c091,_0xef8a63);},'WGwec':function(_0x3fd382,_0x1d5627){return _0x2c0508['dDszW'](_0x3fd382,_0x1d5627);},'OdtLR':function(_0x4f57a6,_0x47ec9c){return _0x4f57a6??_0x47ec9c;},'ZhIay':function(_0x2a7e4a,_0x2e8740){return _0x2a7e4a(_0x2e8740);},'KfOMn':function(_0x105a00,_0x52cc02){const _0x329d92=_0x1491;return _0x2c0508[_0x329d92(0x1a8)](_0x105a00,_0x52cc02);}},_0xcdc9f6=_0x2c0508[_0x31b250(0x1a0)](spawn,_0x37555f['command'],_0x37555f[_0x31b250(0x1c0)],{'cwd':_0x505006['cwd'],'env':_0x505006[_0x31b250(0x1ae)],'stdio':[_0x2c0508['IIdRK'],_0x2c0508[_0x31b250(0x1be)],_0x2c0508['RXwnl']]});let _0x33638e='',_0x5a0c38='',_0x27f04c=![];const _0x4da5bd=_0x505006['timeoutMs']&&_0x2c0508[_0x31b250(0x19c)](_0x505006[_0x31b250(0x1b0)],0x0)?_0x2c0508['GtGXR'](setTimeout,()=>{const _0x12ca8c=_0x31b250;_0x27f04c=!![],_0xcdc9f6[_0x12ca8c(0x19a)](_0x12ca8c(0x1ac)),_0x2264de[_0x12ca8c(0x193)](setTimeout,()=>{const _0x507f93=_0x12ca8c;try{_0xcdc9f6['kill'](_0x507f93(0x189));}catch{}},0x3e8);},_0x505006['timeoutMs']):null;_0xcdc9f6['stdout']?.['on'](_0x2c0508['bAydo'],_0x48bb85=>{_0x33638e+=_0x48bb85['toString']();}),_0xcdc9f6[_0x31b250(0x192)]?.['on'](_0x2c0508[_0x31b250(0x190)],_0x29f716=>{const _0x3e6645=_0x31b250;_0x5a0c38+=_0x29f716[_0x3e6645(0x1b7)]();}),_0xcdc9f6['on']('error',_0x5dbf3d=>{const _0x508d4f=_0x31b250;if(_0x4da5bd)clearTimeout(_0x4da5bd);_0x2c0508[_0x508d4f(0x1a8)](_0x2d372f,_0x5dbf3d);}),_0xcdc9f6['on']('close',(_0x1da9f1,_0x581429)=>{const _0x3fc85a=_0x31b250;if(_0x4da5bd)clearTimeout(_0x4da5bd);if(_0x2264de[_0x3fc85a(0x186)](_0x1da9f1,0x0)){_0x1edf88({'stdout':_0x33638e,'stderr':_0x5a0c38,'invocation':_0x37555f});return;}const _0x23281a=_0x27f04c?'timed\x20out\x20after\x20'+_0x505006[_0x3fc85a(0x1b0)]+'ms':'exited\x20with\x20code='+_0x2264de[_0x3fc85a(0x19d)](_0x1da9f1,'null')+_0x3fc85a(0x18e)+(_0x581429??_0x3fc85a(0x1a7));_0x2264de[_0x3fc85a(0x188)](_0x2d372f,new Error('playwright-cli\x20'+_0x37555f['subcommand']+'\x20'+_0x23281a+_0x3fc85a(0x1bf)+_0x2264de[_0x3fc85a(0x199)](truncateOutput,_0x33638e)+'\x0astderr:\x20'+_0x2264de['KfOMn'](truncateOutput,_0x5a0c38)));});});}function _0x1491(_0x441ff2,_0x2451ba){_0x441ff2=_0x441ff2-0x186;const _0xb3b0ce=_0xb3b0();let _0x14910a=_0xb3b0ce[_0x441ff2];return _0x14910a;}export function extractBashCommand(_0x1e480b){const _0xac5f3f=_0x31874d,_0x85a1f3={'ovQHX':_0xac5f3f(0x1b1),'PgKHO':_0xac5f3f(0x194),'hGRyk':_0xac5f3f(0x1bb),'OwsJF':function(_0x4022bd,_0x3ae771){return _0x4022bd===_0x3ae771;},'elOHD':function(_0x1d3eca,_0x2a8ddc){return _0x1d3eca??_0x2a8ddc;}},_0x480b41=['command',_0x85a1f3['ovQHX'],_0x85a1f3[_0xac5f3f(0x1b5)],_0x85a1f3['hGRyk']];for(const _0x106566 of _0x480b41){const _0x2f6479=_0x1e480b[_0x106566];if(_0x85a1f3[_0xac5f3f(0x1a9)](typeof _0x2f6479,_0xac5f3f(0x1ab))&&_0x2f6479['trim']())return _0x2f6479;}const _0x41710f=Object[_0xac5f3f(0x1a2)](_0x1e480b)['find'](_0x2e32e0=>typeof _0x2e32e0===_0xac5f3f(0x1ab)&&_0x2e32e0[_0xac5f3f(0x197)]()['length']>0x0);return _0x85a1f3[_0xac5f3f(0x1b3)](_0x41710f,null);}export function parsePlaywrightCliCommand(_0x30e6bd){const _0x89ceb4=_0x30e6bd['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x89ceb4?.[0x1]??null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x482541,_0x16525b){const _0x37cdf3=_0x51ef,_0x17b101=_0x482541();while(!![]){try{const _0x47c1c2=parseInt(_0x37cdf3(0x170))/0x1*(parseInt(_0x37cdf3(0x168))/0x2)+parseInt(_0x37cdf3(0x169))/0x3+-parseInt(_0x37cdf3(0x16f))/0x4*(parseInt(_0x37cdf3(0x16e))/0x5)+-parseInt(_0x37cdf3(0x16b))/0x6*(parseInt(_0x37cdf3(0x16c))/0x7)+parseInt(_0x37cdf3(0x172))/0x8*(-parseInt(_0x37cdf3(0x173))/0x9)+parseInt(_0x37cdf3(0x16a))/0xa+parseInt(_0x37cdf3(0x16d))/0xb*(parseInt(_0x37cdf3(0x171))/0xc);if(_0x47c1c2===_0x16525b)break;else _0x17b101['push'](_0x17b101['shift']());}catch(_0x4c5d9d){_0x17b101['push'](_0x17b101['shift']());}}}(_0x1e59,0x5f3a7));const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';function _0x51ef(_0x50c99f,_0x15a94f){_0x50c99f=_0x50c99f-0x168;const _0x1e5919=_0x1e59();let _0x51efaf=_0x1e5919[_0x50c99f];return _0x51efaf;}function _0x1e59(){const _0x39ebfa=['352816mqDjMF','1784274smJBxH','5568200AKsQgI','3606BhyfHp','7490XAwoRQ','11689249YxVQOk','295qknuyN','52388ezIaWQ','1GxavKd','12AnAmri','3032iAzJSA','13887FPyJPn'];_0x1e59=function(){return _0x39ebfa;};return _0x1e59();}export function formatProfileRequiredMessage(_0x16fc8){const _0x429f10={'hXbXe':function(_0x281b75,_0x4787ae){return _0x281b75(_0x4787ae);}},_0x1e0217=_0x16fc8?_0x429f10['hXbXe'](_0x16fc8,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'+_0x1e0217+'.';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x5b7f3e,_0x598326){const _0x2380d0=_0x4b0a,_0x3ac344=_0x5b7f3e();while(!![]){try{const _0xad9c3=-parseInt(_0x2380d0(0x1e6))/0x1*(parseInt(_0x2380d0(0x1ea))/0x2)+-parseInt(_0x2380d0(0x1e4))/0x3*(parseInt(_0x2380d0(0x1e0))/0x4)+-parseInt(_0x2380d0(0x1e8))/0x5+parseInt(_0x2380d0(0x1e7))/0x6*(-parseInt(_0x2380d0(0x1e1))/0x7)+-parseInt(_0x2380d0(0x1e9))/0x8+-parseInt(_0x2380d0(0x1e3))/0x9+parseInt(_0x2380d0(0x1dd))/0xa;if(_0xad9c3===_0x598326)break;else _0x3ac344['push'](_0x3ac344['shift']());}catch(_0x426fd6){_0x3ac344['push'](_0x3ac344['shift']());}}}(_0x1dc5,0x9ad7b));function _0x4b0a(_0x4325aa,_0xf2254e){_0x4325aa=_0x4325aa-0x1db;const _0x1dc537=_0x1dc5();let _0x4b0a22=_0x1dc537[_0x4325aa];return _0x4b0a22;}const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x281044=_0x4b0a,_0x1169c3={'KfyMU':'<div\x20class=\x22ranger-banner__content\x22>','wjYEw':'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','jFdUT':'</div>'},_0x22b56b=_0x1169c3[_0x281044(0x1e5)]+_0x281044(0x1e2)+'<div\x20class=\x22ranger-banner__message\x22>'+_0x1169c3['wjYEw']+'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>'+_0x1169c3[_0x281044(0x1de)]+_0x1169c3['jFdUT']+_0x281044(0x1db),_0x4bfcb3=_0x281044(0x1df);return _0x281044(0x1ec)+JSON['stringify'](_0x22b56b)+_0x281044(0x1dc)+JSON[_0x281044(0x1eb)](_0x4bfcb3)+';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a';})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x1dc5(){const _0xb0e0a=['<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>',';\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','43599440aXSWEN','jFdUT','\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','4qBvkRS','25963bwXvPo','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','857340xYfGHI','1777452UGgaeE','KfyMU','98303gdsUaq','894nUVtNe','4271425ykdsoJ','5184072rCYlvT','20tdjTlm','stringify','\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'];_0x1dc5=function(){return _0xb0e0a;};return _0x1dc5();}export async function addProfileSetupBanner(_0x18e658){await _0x18e658['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x5a3f61,_0x353e88){const _0x120a51=_0xef1d,_0x246a25=_0x5a3f61();while(!![]){try{const _0xbf652f=parseInt(_0x120a51(0x12d))/0x1*(parseInt(_0x120a51(0x122))/0x2)+-parseInt(_0x120a51(0x125))/0x3*(parseInt(_0x120a51(0x12b))/0x4)+parseInt(_0x120a51(0x12e))/0x5+-parseInt(_0x120a51(0x139))/0x6*(parseInt(_0x120a51(0x121))/0x7)+-parseInt(_0x120a51(0x12a))/0x8*(parseInt(_0x120a51(0x132))/0x9)+parseInt(_0x120a51(0x133))/0xa+parseInt(_0x120a51(0x137))/0xb*(-parseInt(_0x120a51(0x116))/0xc);if(_0xbf652f===_0x353e88)break;else _0x246a25['push'](_0x246a25['shift']());}catch(_0xe50dd6){_0x246a25['push'](_0x246a25['shift']());}}}(_0x5e0e,0x33065));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';function _0x5e0e(){const _0x135dee=['171FdMgJY','3080180DizZPJ','projects','vUYve','miaRX','4807IQofjL','ZcfJq','592926IRehpR','LlGvy','stringify','.tmp','entries','AtDzo','length','taoXm','VXauG','ssICX','object',').\x20Ignoring\x20local\x20profile\x20overrides.','utf-8','message','isArray','headers','tVsmh','profiles','5964HteJsb','rFCCE','settings','[ranger]\x20Warning:\x20','MPWRY','JfxVs','KMAov','wIqzw','jdDpy','split','ubcYF','7EVCOUB','10pjjoBr','keys','projects.json','9hpDYwI','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','warn','QhEtF','QstzP','156664yDKlUg','93604VPSsZl','JyBwU','72991eUceOf','1471570XfJDAl','setupHeaders','lastProfile','XtEyE'];_0x5e0e=function(){return _0x135dee;};return _0x5e0e();}import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;function _0xef1d(_0x19f6a9,_0xa437fb){_0x19f6a9=_0x19f6a9-0x112;const _0x5e0eb4=_0x5e0e();let _0xef1df9=_0x5e0eb4[_0x19f6a9];return _0xef1df9;}export function getProjectsConfigPath(){const _0x39f630=_0xef1d,_0x8c81f9={'AtDzo':function(_0xc33bd,_0x31ed96,_0x35e507){return _0xc33bd(_0x31ed96,_0x35e507);},'CVOuD':_0x39f630(0x124)};return _0x8c81f9[_0x39f630(0x13e)](join,getRangerHomeDir(),_0x8c81f9['CVOuD']);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x559b02=_0xef1d,_0x30d90a={'KMAov':function(_0x2822ea){return _0x2822ea();},'APxFu':_0x559b02(0x145),'QstzP':function(_0x3693c5,_0x17e571){return _0x3693c5 instanceof _0x17e571;},'NPpRe':function(_0x38e81f,_0x534d39){return _0x38e81f(_0x534d39);},'jdDpy':function(_0x5da2e1,_0x4ae843){return _0x5da2e1(_0x4ae843);},'LlGvy':'object','XtEyE':function(_0x57f8b8,_0x501c95){return _0x57f8b8!==_0x501c95;},'QxOjp':function(_0x2d176d){return _0x2d176d();}},_0x8a08a=getProjectsConfigPath();if(!existsSync(_0x8a08a))return _0x30d90a[_0x559b02(0x11c)](emptyConfig);let _0x33038f;try{_0x33038f=readFileSync(_0x8a08a,_0x30d90a['APxFu']);}catch(_0x492162){const _0x22436b=_0x30d90a[_0x559b02(0x129)](_0x492162,Error)?_0x492162[_0x559b02(0x146)]:_0x30d90a['NPpRe'](String,_0x492162);return console[_0x559b02(0x127)]('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x8a08a+':\x20'+_0x22436b+'.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x30d90a[_0x559b02(0x11c)](emptyConfig);}let _0x3768af;try{_0x3768af=JSON['parse'](_0x33038f);}catch(_0x513386){const _0x3aeb8d=_0x513386 instanceof Error?_0x513386['message']:_0x30d90a[_0x559b02(0x11e)](String,_0x513386);return console['warn'](_0x559b02(0x119)+_0x8a08a+'\x20is\x20not\x20valid\x20JSON\x20('+_0x3aeb8d+_0x559b02(0x144)),_0x30d90a['KMAov'](emptyConfig);}if(!_0x3768af||typeof _0x3768af!==_0x30d90a[_0x559b02(0x13a)]||Array[_0x559b02(0x112)](_0x3768af)||_0x3768af['version']!==CURRENT_VERSION||_0x30d90a[_0x559b02(0x131)](typeof _0x3768af[_0x559b02(0x134)],_0x30d90a['LlGvy'])||_0x3768af['projects']===null||Array['isArray'](_0x3768af['projects']))return console['warn']('[ranger]\x20Warning:\x20'+_0x8a08a+_0x559b02(0x126)),_0x30d90a['QxOjp'](emptyConfig);return _0x3768af;}export function writeProjectsConfig(_0x5af1f6){const _0x5e6759=_0xef1d,_0x5c3b61={'RQXHv':function(_0x55ca2f,_0x509185){return _0x55ca2f(_0x509185);},'QhEtF':function(_0x2db430,_0x2355c8){return _0x2db430(_0x2355c8);},'hYIVj':function(_0x2b06bf,_0x2ec648,_0x16a47a){return _0x2b06bf(_0x2ec648,_0x16a47a);},'JfxVs':function(_0x1a2cf1,_0x15ad23,_0x5ba5a8,_0x3a3e6b){return _0x1a2cf1(_0x15ad23,_0x5ba5a8,_0x3a3e6b);}},_0x28be65=getProjectsConfigPath(),_0x581bd0=_0x5c3b61['RQXHv'](dirname,_0x28be65);!_0x5c3b61[_0x5e6759(0x128)](existsSync,_0x581bd0)&&_0x5c3b61['hYIVj'](mkdirSync,_0x581bd0,{'recursive':!![]});const _0x5c771f=_0x28be65+'.'+process['pid']+'.'+Date['now']()+_0x5e6759(0x13c),_0x46d121=JSON[_0x5e6759(0x13b)](_0x5af1f6,null,0x2)+'\x0a';try{_0x5c3b61[_0x5e6759(0x11b)](writeFileSync,_0x5c771f,_0x46d121,{'encoding':_0x5e6759(0x145),'mode':0x180}),renameSync(_0x5c771f,_0x28be65);}catch(_0xb9d2a3){try{existsSync(_0x5c771f)&&unlinkSync(_0x5c771f);}catch{}throw _0xb9d2a3;}}export function readProfileOverrides(_0x55b04c,_0x5e2331){const _0xd5dde7=_0xef1d,_0x1795b8=readProjectsConfig(),_0x3707ae=_0x1795b8['projects'][_0x55b04c];if(!_0x3707ae||!_0x3707ae['profiles'])return null;const _0x55f571=_0x3707ae[_0xd5dde7(0x115)][_0x5e2331];if(!_0x55f571||!_0x55f571['settings'])return null;return _0x55f571[_0xd5dde7(0x118)]??null;}export function setProfileOverride(_0x4a2097,_0x3e6b60,_0x307ad6,_0x251fcb){const _0x11b381=_0xef1d,_0x421ae3={'JyBwU':'keyPath\x20is\x20required','tVsmh':function(_0x492ff9,_0x49c64b,_0x32ab98,_0x2a0376){return _0x492ff9(_0x49c64b,_0x32ab98,_0x2a0376);}};if(!_0x307ad6)throw new Error(_0x421ae3[_0x11b381(0x12c)]);const _0x168fb7=readProjectsConfig(),_0x4ac2eb=_0x168fb7['projects'][_0x4a2097]??={},_0x2d8de2=_0x4ac2eb['profiles']??={},_0x54bb29=_0x2d8de2[_0x3e6b60]??={},_0x372a5a=_0x54bb29['settings']??={};_0x421ae3[_0x11b381(0x114)](setByKeyPath,_0x372a5a,_0x307ad6,_0x251fcb),writeProjectsConfig(_0x168fb7);}export function unsetProfileOverride(_0x3d1ac4,_0x42b38f,_0x2be055){const _0x47974a=_0xef1d,_0x445edb={'wkwTQ':function(_0xe27b1c,_0x4cfffb,_0x9487a){return _0xe27b1c(_0x4cfffb,_0x9487a);}};if(!_0x2be055)throw new Error('keyPath\x20is\x20required');const _0x58d61c=readProjectsConfig(),_0x348ed7=_0x58d61c['projects'][_0x3d1ac4];if(!_0x348ed7?.[_0x47974a(0x115)])return![];const _0x4719e6=_0x348ed7[_0x47974a(0x115)][_0x42b38f];if(!_0x4719e6?.[_0x47974a(0x118)])return![];const _0x46e235=_0x445edb['wkwTQ'](deleteByKeyPath,_0x4719e6['settings'],_0x2be055);if(!_0x46e235)return![];return writeProjectsConfig(_0x58d61c),!![];}export function resetProfileOverrides(_0x178acb,_0xd8a8e7){const _0x2cd375=_0xef1d,_0x1aa4c9={'ZcfJq':function(_0x59261a,_0x4de898){return _0x59261a in _0x4de898;},'MPWRY':function(_0x326e38,_0x2679af){return _0x326e38===_0x2679af;}},_0x4c8316=readProjectsConfig(),_0x5bba93=_0x4c8316['projects'][_0x178acb];if(!_0x5bba93?.['profiles'])return;if(!_0x1aa4c9[_0x2cd375(0x138)](_0xd8a8e7,_0x5bba93[_0x2cd375(0x115)]))return;delete _0x5bba93['profiles'][_0xd8a8e7],_0x1aa4c9[_0x2cd375(0x11a)](Object[_0x2cd375(0x123)](_0x5bba93[_0x2cd375(0x115)])[_0x2cd375(0x13f)],0x0)&&(!_0x5bba93['lastProfile']?delete _0x4c8316[_0x2cd375(0x134)][_0x178acb]:_0x5bba93['profiles']={}),writeProjectsConfig(_0x4c8316);}export function readLastProfile(_0x49971b){const _0x80f9b3=_0xef1d,_0x3385d0={'vUYve':function(_0x555338){return _0x555338();}},_0x4fe453=_0x3385d0[_0x80f9b3(0x135)](readProjectsConfig),_0x40fe6f=_0x4fe453[_0x80f9b3(0x134)][_0x49971b];return _0x40fe6f?.['lastProfile']??null;}export function writeLastProfile(_0x4fb7d9,_0x30f39a){const _0x44627e=_0xef1d,_0x5523ce={'csaxK':function(_0x2e1056,_0xcd5b3a){return _0x2e1056(_0xcd5b3a);}},_0xfd3f50=readProjectsConfig(),_0x3d71f8=_0xfd3f50[_0x44627e(0x134)][_0x4fb7d9]??={};_0x3d71f8[_0x44627e(0x130)]=_0x30f39a,_0x5523ce['csaxK'](writeProjectsConfig,_0xfd3f50);}export function mergeCloudProfileSettings(_0x1b31db,_0x495738){const _0x49a268=_0xef1d,_0x46566f={'wIqzw':function(_0x50a25f,_0x45677f){return _0x50a25f??_0x45677f;},'VXauG':_0x49a268(0x12f),'hJlPq':function(_0x3807dc,_0x2816fd){return _0x3807dc(_0x2816fd);}},_0x59e4d4={..._0x46566f[_0x49a268(0x11d)](_0x1b31db,{})};if(!_0x495738)return _0x59e4d4;for(const [_0x54e040,_0x570ad3]of Object['entries'](_0x495738)){if(_0x570ad3===undefined)continue;if(_0x570ad3===null){delete _0x59e4d4[_0x54e040];continue;}if(_0x54e040===_0x49a268(0x113)||_0x54e040===_0x46566f[_0x49a268(0x141)]){const _0x3d31ff=asRecord(_0x59e4d4[_0x54e040])??{},_0x25e607=_0x46566f['hJlPq'](asRecord,_0x570ad3);if(!_0x25e607){_0x59e4d4[_0x54e040]=_0x570ad3;continue;}const _0x1755e3={..._0x3d31ff};for(const [_0x3e8baa,_0x669c65]of Object[_0x49a268(0x13d)](_0x25e607)){if(_0x669c65===null)delete _0x1755e3[_0x3e8baa];else _0x669c65!==undefined&&(_0x1755e3[_0x3e8baa]=_0x669c65);}_0x59e4d4[_0x54e040]=_0x1755e3;continue;}_0x59e4d4[_0x54e040]=_0x570ad3;}return _0x59e4d4;}function asRecord(_0x54e676){const _0x1eb760=_0xef1d,_0x3ce573={'WaKLc':_0x1eb760(0x143)};return _0x54e676&&typeof _0x54e676===_0x3ce573['WaKLc']&&!Array[_0x1eb760(0x112)](_0x54e676)?_0x54e676:undefined;}function setByKeyPath(_0x5ccb30,_0x2a0bab,_0x1155fd){const _0x46afdf=_0xef1d,_0x128aa9={'zjikJ':function(_0x1c4175,_0x18d437){return _0x1c4175<_0x18d437;},'ssICX':function(_0x3f44c8,_0x2a8e93){return _0x3f44c8-_0x2a8e93;},'miaRX':function(_0x2ff5a6,_0x3c3a45){return _0x2ff5a6!==_0x3c3a45;},'OzQAv':_0x46afdf(0x143)},_0x227c91=_0x2a0bab['split']('.');let _0x2f2c44=_0x5ccb30;for(let _0x3dfb29=0x0;_0x128aa9['zjikJ'](_0x3dfb29,_0x128aa9[_0x46afdf(0x142)](_0x227c91['length'],0x1));_0x3dfb29++){const _0x577d5a=_0x227c91[_0x3dfb29],_0x5cbfde=_0x2f2c44[_0x577d5a];(!_0x5cbfde||_0x128aa9[_0x46afdf(0x136)](typeof _0x5cbfde,_0x128aa9['OzQAv'])||Array[_0x46afdf(0x112)](_0x5cbfde))&&(_0x2f2c44[_0x577d5a]={}),_0x2f2c44=_0x2f2c44[_0x577d5a];}_0x2f2c44[_0x227c91[_0x227c91['length']-0x1]]=_0x1155fd;}function deleteByKeyPath(_0x511f53,_0x47aff5){const _0x58d90e=_0xef1d,_0x2051f2={'taoXm':function(_0x3c08b9,_0xa87845){return _0x3c08b9!==_0xa87845;},'ubcYF':_0x58d90e(0x143),'rFCCE':function(_0x37cb42,_0x2d1dbe){return _0x37cb42-_0x2d1dbe;}},_0x57f80a=_0x47aff5[_0x58d90e(0x11f)]('.');let _0x2c7e6a=_0x511f53;for(let _0x5e817c=0x0;_0x5e817c<_0x57f80a[_0x58d90e(0x13f)]-0x1;_0x5e817c++){const _0x4278b=_0x57f80a[_0x5e817c],_0x2b53ab=_0x2c7e6a[_0x4278b];if(!_0x2b53ab||_0x2051f2[_0x58d90e(0x140)](typeof _0x2b53ab,_0x2051f2[_0x58d90e(0x120)])||Array[_0x58d90e(0x112)](_0x2b53ab))return![];_0x2c7e6a=_0x2b53ab;}const _0x175a1f=_0x57f80a[_0x2051f2[_0x58d90e(0x117)](_0x57f80a[_0x58d90e(0x13f)],0x1)];if(!(_0x175a1f in _0x2c7e6a))return![];return delete _0x2c7e6a[_0x175a1f],!![];}
|
|
1
|
+
(function(_0x11ea68,_0x2149d9){const _0x1c23f1=_0x55b1,_0x57311d=_0x11ea68();while(!![]){try{const _0x37ff=-parseInt(_0x1c23f1(0xcb))/0x1+-parseInt(_0x1c23f1(0xbf))/0x2+-parseInt(_0x1c23f1(0xb8))/0x3+-parseInt(_0x1c23f1(0xba))/0x4+parseInt(_0x1c23f1(0xd4))/0x5+-parseInt(_0x1c23f1(0xd2))/0x6*(parseInt(_0x1c23f1(0xc3))/0x7)+-parseInt(_0x1c23f1(0xc5))/0x8*(-parseInt(_0x1c23f1(0xd3))/0x9);if(_0x37ff===_0x2149d9)break;else _0x57311d['push'](_0x57311d['shift']());}catch(_0x281c1d){_0x57311d['push'](_0x57311d['shift']());}}}(_0x3086,0x49cb1));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';function _0x3086(){const _0x139471=['4566eeNYUz','25344kZneqI','629530EWTxZz','pfIsj','projects','GmMmu','eyGrv','isArray','frlhZ','warn','setupHeaders',').\x20Ignoring\x20local\x20profile\x20overrides.','734127UpiDke','VZrQN','2298604FnXCKf','cAPCw','length','[ranger]\x20Warning:\x20','hHVZg','1128954qRZRIq','.tmp','object','YnSlQ','4361cAjcnP','UadTL','6144pBWjKL','KfMky','message','profiles','Vklku','lastProfile','128397cTpYXn','zVVtI','NiKna','QQFlZ','headers','split','settings'];_0x3086=function(){return _0x139471;};return _0x3086();}import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x543e65=_0x55b1,_0xd371a9={'rUqpT':function(_0x880e0e,_0x5df93e,_0x5dacee){return _0x880e0e(_0x5df93e,_0x5dacee);},'pfIsj':function(_0x1ff715){return _0x1ff715();}};return _0xd371a9['rUqpT'](join,_0xd371a9[_0x543e65(0xd5)](getRangerHomeDir),'projects.json');}function _0x55b1(_0x216556,_0xf1d8e3){_0x216556=_0x216556-0xb7;const _0x30861b=_0x3086();let _0x55b1ef=_0x30861b[_0x216556];return _0x55b1ef;}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0xe4b3f9=_0x55b1,_0x2fd0fc={'UIBhk':function(_0x1aecb7){return _0x1aecb7();},'TuWwD':function(_0xdf1e90,_0x189772){return _0xdf1e90(_0x189772);},'RtZak':function(_0x421031,_0x1cb553){return _0x421031 instanceof _0x1cb553;},'zVVtI':function(_0x1613a5,_0x17037f){return _0x1613a5(_0x17037f);},'YnSlQ':function(_0x132da2){return _0x132da2();},'FFTeh':'object','cAPCw':function(_0x3dcc2e){return _0x3dcc2e();}},_0x3ded00=_0x2fd0fc['UIBhk'](getProjectsConfigPath);if(!_0x2fd0fc['TuWwD'](existsSync,_0x3ded00))return _0x2fd0fc['UIBhk'](emptyConfig);let _0x5c8ff3;try{_0x5c8ff3=readFileSync(_0x3ded00,'utf-8');}catch(_0x44ce9b){const _0x3604c3=_0x44ce9b instanceof Error?_0x44ce9b[_0xe4b3f9(0xc7)]:String(_0x44ce9b);return console[_0xe4b3f9(0xdb)]('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x3ded00+':\x20'+_0x3604c3+'.\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}let _0x29486a;try{_0x29486a=JSON['parse'](_0x5c8ff3);}catch(_0x5a0959){const _0xe7172b=_0x2fd0fc['RtZak'](_0x5a0959,Error)?_0x5a0959[_0xe4b3f9(0xc7)]:_0x2fd0fc[_0xe4b3f9(0xcc)](String,_0x5a0959);return console[_0xe4b3f9(0xdb)](_0xe4b3f9(0xbd)+_0x3ded00+'\x20is\x20not\x20valid\x20JSON\x20('+_0xe7172b+_0xe4b3f9(0xb7)),_0x2fd0fc[_0xe4b3f9(0xc2)](emptyConfig);}if(!_0x29486a||typeof _0x29486a!==_0x2fd0fc['FFTeh']||Array['isArray'](_0x29486a)||_0x29486a['version']!==CURRENT_VERSION||typeof _0x29486a['projects']!==_0x2fd0fc['FFTeh']||_0x29486a[_0xe4b3f9(0xd6)]===null||Array['isArray'](_0x29486a['projects']))return console[_0xe4b3f9(0xdb)](_0xe4b3f9(0xbd)+_0x3ded00+'\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x2fd0fc[_0xe4b3f9(0xbb)](emptyConfig);return _0x29486a;}export function writeProjectsConfig(_0x14353b){const _0x454a31=_0x55b1,_0x569a88={'Vklku':function(_0x2eca1f){return _0x2eca1f();},'ybjJd':function(_0x4cdc30,_0x28ebd4){return _0x4cdc30(_0x28ebd4);},'KYGmZ':'utf-8','eyGrv':function(_0x106f47,_0x4fb6c1){return _0x106f47(_0x4fb6c1);}},_0x14665c=_0x569a88[_0x454a31(0xc9)](getProjectsConfigPath),_0x434373=dirname(_0x14665c);!_0x569a88['ybjJd'](existsSync,_0x434373)&&mkdirSync(_0x434373,{'recursive':!![]});const _0x18c424=_0x14665c+'.'+process['pid']+'.'+Date['now']()+_0x454a31(0xc0),_0x40f53e=JSON['stringify'](_0x14353b,null,0x2)+'\x0a';try{writeFileSync(_0x18c424,_0x40f53e,{'encoding':_0x569a88['KYGmZ'],'mode':0x180}),renameSync(_0x18c424,_0x14665c);}catch(_0x8dec5c){try{_0x569a88[_0x454a31(0xd8)](existsSync,_0x18c424)&&_0x569a88[_0x454a31(0xd8)](unlinkSync,_0x18c424);}catch{}throw _0x8dec5c;}}export function readProfileOverrides(_0x3b8252,_0x592bee){const _0x1e5c35=_0x55b1,_0x5d99df={'NiKna':function(_0x2f5e5a){return _0x2f5e5a();}},_0xdff72=_0x5d99df[_0x1e5c35(0xcd)](readProjectsConfig),_0x220ddf=_0xdff72[_0x1e5c35(0xd6)][_0x3b8252];if(!_0x220ddf||!_0x220ddf[_0x1e5c35(0xc8)])return null;const _0x3f6474=_0x220ddf[_0x1e5c35(0xc8)][_0x592bee];if(!_0x3f6474||!_0x3f6474['settings'])return null;return _0x3f6474[_0x1e5c35(0xd1)]??null;}export function setProfileOverride(_0x3f1821,_0x51e813,_0xcb0632,_0xa843bf){const _0x17c611={'TBzns':'keyPath\x20is\x20required','OjSrl':function(_0x561a13,_0x2fb05b){return _0x561a13(_0x2fb05b);}};if(!_0xcb0632)throw new Error(_0x17c611['TBzns']);const _0x31abc0=readProjectsConfig(),_0x291f21=_0x31abc0['projects'][_0x3f1821]??={},_0x4da2f2=_0x291f21['profiles']??={},_0x4a19f9=_0x4da2f2[_0x51e813]??={},_0x2c3bb4=_0x4a19f9['settings']??={};setByKeyPath(_0x2c3bb4,_0xcb0632,_0xa843bf),_0x17c611['OjSrl'](writeProjectsConfig,_0x31abc0);}export function unsetProfileOverride(_0x39db3e,_0x305c03,_0x280cad){const _0x2c2c13=_0x55b1,_0x2e2007={'lcKKO':function(_0x5533bc){return _0x5533bc();}};if(!_0x280cad)throw new Error('keyPath\x20is\x20required');const _0x39e782=_0x2e2007['lcKKO'](readProjectsConfig),_0x3a3c2e=_0x39e782['projects'][_0x39db3e];if(!_0x3a3c2e?.[_0x2c2c13(0xc8)])return![];const _0x342ac6=_0x3a3c2e[_0x2c2c13(0xc8)][_0x305c03];if(!_0x342ac6?.[_0x2c2c13(0xd1)])return![];const _0x13d794=deleteByKeyPath(_0x342ac6[_0x2c2c13(0xd1)],_0x280cad);if(!_0x13d794)return![];return writeProjectsConfig(_0x39e782),!![];}export function resetProfileOverrides(_0x83a3b,_0x526c5f){const _0x3fa931=_0x55b1,_0x2d7d68={'BQjYY':function(_0x45ca36){return _0x45ca36();},'UadTL':function(_0x25277c,_0xefebe0){return _0x25277c in _0xefebe0;},'hHVZg':function(_0x55afd9,_0x26c5c3){return _0x55afd9(_0x26c5c3);}},_0x3984c1=_0x2d7d68['BQjYY'](readProjectsConfig),_0x485b30=_0x3984c1[_0x3fa931(0xd6)][_0x83a3b];if(!_0x485b30?.['profiles'])return;if(!_0x2d7d68[_0x3fa931(0xc4)](_0x526c5f,_0x485b30['profiles']))return;delete _0x485b30[_0x3fa931(0xc8)][_0x526c5f],Object['keys'](_0x485b30['profiles'])['length']===0x0&&(!_0x485b30['lastProfile']?delete _0x3984c1['projects'][_0x83a3b]:_0x485b30[_0x3fa931(0xc8)]={}),_0x2d7d68[_0x3fa931(0xbe)](writeProjectsConfig,_0x3984c1);}export function readLastProfile(_0x2e0fcb){const _0x5e56b4=_0x55b1,_0xd3cae5={'QQFlZ':function(_0x421f18){return _0x421f18();}},_0x55bd7e=_0xd3cae5[_0x5e56b4(0xce)](readProjectsConfig),_0x8facb2=_0x55bd7e[_0x5e56b4(0xd6)][_0x2e0fcb];return _0x8facb2?.[_0x5e56b4(0xca)]??null;}export function writeLastProfile(_0x583af1,_0x5259f5){const _0x5cf83d=_0x55b1,_0x1ed865=readProjectsConfig(),_0x16ec2f=_0x1ed865[_0x5cf83d(0xd6)][_0x583af1]??={};_0x16ec2f['lastProfile']=_0x5259f5,writeProjectsConfig(_0x1ed865);}export function mergeCloudProfileSettings(_0x1f2e8e,_0xeca5e3){const _0x3a6ad4=_0x55b1,_0x26e263={'EEnbw':function(_0x4b27e4,_0x33f0ba){return _0x4b27e4??_0x33f0ba;},'GmMmu':function(_0x332427,_0x29f64e){return _0x332427===_0x29f64e;},'tGzVU':function(_0x52873a,_0x1f8ace){return _0x52873a(_0x1f8ace);},'tjoGq':function(_0x37d278,_0x4178c8){return _0x37d278(_0x4178c8);},'OrDEX':function(_0x29fd8a,_0x57e19f){return _0x29fd8a!==_0x57e19f;}},_0x5c7251={..._0x26e263['EEnbw'](_0x1f2e8e,{})};if(!_0xeca5e3)return _0x5c7251;for(const [_0x2c57c0,_0x245bab]of Object['entries'](_0xeca5e3)){if(_0x245bab===undefined)continue;if(_0x26e263[_0x3a6ad4(0xd7)](_0x245bab,null)){delete _0x5c7251[_0x2c57c0];continue;}if(_0x26e263['GmMmu'](_0x2c57c0,_0x3a6ad4(0xcf))||_0x26e263['GmMmu'](_0x2c57c0,_0x3a6ad4(0xdc))){const _0xd23e57=_0x26e263['tGzVU'](asRecord,_0x5c7251[_0x2c57c0])??{},_0x17884f=_0x26e263['tjoGq'](asRecord,_0x245bab);if(!_0x17884f){_0x5c7251[_0x2c57c0]=_0x245bab;continue;}const _0x5cd8ba={..._0xd23e57};for(const [_0x49d550,_0x1460cd]of Object['entries'](_0x17884f)){if(_0x1460cd===null)delete _0x5cd8ba[_0x49d550];else _0x26e263['OrDEX'](_0x1460cd,undefined)&&(_0x5cd8ba[_0x49d550]=_0x1460cd);}_0x5c7251[_0x2c57c0]=_0x5cd8ba;continue;}_0x5c7251[_0x2c57c0]=_0x245bab;}return _0x5c7251;}function asRecord(_0x1db3f4){const _0x376a22=_0x55b1,_0x43c722={'KfMky':_0x376a22(0xc1)};return _0x1db3f4&&typeof _0x1db3f4===_0x43c722[_0x376a22(0xc6)]&&!Array[_0x376a22(0xd9)](_0x1db3f4)?_0x1db3f4:undefined;}function setByKeyPath(_0x22eb02,_0x2d4824,_0x10cdf5){const _0xbd4fb=_0x55b1,_0x8a28c7={'BMPbO':function(_0x1f0018,_0x1bb797){return _0x1f0018<_0x1bb797;},'frlhZ':function(_0xc1fe85,_0x598a8a){return _0xc1fe85-_0x598a8a;},'hSkOc':function(_0x405bc8,_0x51ef95){return _0x405bc8!==_0x51ef95;}},_0x54668a=_0x2d4824[_0xbd4fb(0xd0)]('.');let _0x41fe06=_0x22eb02;for(let _0x46e595=0x0;_0x8a28c7['BMPbO'](_0x46e595,_0x8a28c7[_0xbd4fb(0xda)](_0x54668a['length'],0x1));_0x46e595++){const _0x466e74=_0x54668a[_0x46e595],_0x1b4f2c=_0x41fe06[_0x466e74];(!_0x1b4f2c||_0x8a28c7['hSkOc'](typeof _0x1b4f2c,_0xbd4fb(0xc1))||Array['isArray'](_0x1b4f2c))&&(_0x41fe06[_0x466e74]={}),_0x41fe06=_0x41fe06[_0x466e74];}_0x41fe06[_0x54668a[_0x8a28c7[_0xbd4fb(0xda)](_0x54668a['length'],0x1)]]=_0x10cdf5;}function deleteByKeyPath(_0x26fa4c,_0x3ca55c){const _0x29e3f1=_0x55b1,_0x2c5c29={'BLZGA':function(_0x546255,_0x11c32b){return _0x546255<_0x11c32b;},'VZrQN':function(_0x52a726,_0x4d9fc6){return _0x52a726-_0x4d9fc6;}},_0x3b351c=_0x3ca55c[_0x29e3f1(0xd0)]('.');let _0x547040=_0x26fa4c;for(let _0x573e63=0x0;_0x2c5c29['BLZGA'](_0x573e63,_0x2c5c29['VZrQN'](_0x3b351c[_0x29e3f1(0xbc)],0x1));_0x573e63++){const _0xa00204=_0x3b351c[_0x573e63],_0x5c8df5=_0x547040[_0xa00204];if(!_0x5c8df5||typeof _0x5c8df5!==_0x29e3f1(0xc1)||Array[_0x29e3f1(0xd9)](_0x5c8df5))return![];_0x547040=_0x5c8df5;}const _0x1b680a=_0x3b351c[_0x2c5c29[_0x29e3f1(0xb9)](_0x3b351c[_0x29e3f1(0xbc)],0x1)];if(!(_0x1b680a in _0x547040))return![];return delete _0x547040[_0x1b680a],!![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1689a2,_0x184bc0){const _0x9ac9a1=_0x2464,_0x229753=_0x1689a2();while(!![]){try{const _0x5f03b9=-parseInt(_0x9ac9a1(0x1ec))/0x1*(-parseInt(_0x9ac9a1(0x1e6))/0x2)+parseInt(_0x9ac9a1(0x1df))/0x3*(parseInt(_0x9ac9a1(0x1e8))/0x4)+parseInt(_0x9ac9a1(0x1e4))/0x5*(parseInt(_0x9ac9a1(0x1e9))/0x6)+-parseInt(_0x9ac9a1(0x1e5))/0x7*(-parseInt(_0x9ac9a1(0x1ea))/0x8)+parseInt(_0x9ac9a1(0x1e3))/0x9+-parseInt(_0x9ac9a1(0x1e0))/0xa+-parseInt(_0x9ac9a1(0x1e2))/0xb;if(_0x5f03b9===_0x184bc0)break;else _0x229753['push'](_0x229753['shift']());}catch(_0x406732){_0x229753['push'](_0x229753['shift']());}}}(_0xec64,0x24284));import{readFile}from'fs/promises';function _0x2464(_0xc3a396,_0x4e39d4){_0xc3a396=_0xc3a396-0x1db;const _0xec6475=_0xec64();let _0x246473=_0xec6475[_0xc3a396];return _0x246473;}function _0xec64(){const _0x467eb5=['1164642NPZfYK','8DOtzKE','message','1ogGBgz','string','warn','PJyMH','model','6vHPvSH','1845640kevAAe','parse','6915359XHZxag','220302iTPJIz','5jeAHsf','1930761UBTkHP','533322FdOAtR','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','400528LuWkRD'];_0xec64=function(){return _0x467eb5;};return _0xec64();}import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x451fa8=_0x2464,_0xd84374={'PJyMH':function(_0x1c81b2){return _0x1c81b2();}};return join(_0xd84374[_0x451fa8(0x1dd)](getRangerDir),'config.json');}export async function loadRangerConfig(){const _0x47fda4=_0x2464,_0x441dde={'kmTkg':function(_0x1e5ac1){return _0x1e5ac1();},'ctTER':function(_0x3daeca,_0x22a862){return _0x3daeca(_0x22a862);},'BHygx':function(_0xade4a2,_0x5067ad,_0x4d4f2b){return _0xade4a2(_0x5067ad,_0x4d4f2b);},'cMugT':'object'},_0x4f8f2f=_0x441dde['kmTkg'](getRangerConfigPath);if(!_0x441dde['ctTER'](existsSync,_0x4f8f2f))return{};try{const _0x33940e=await _0x441dde['BHygx'](readFile,_0x4f8f2f,'utf-8'),_0x3b8c85=JSON[_0x47fda4(0x1e1)](_0x33940e);if(!_0x3b8c85||typeof _0x3b8c85!==_0x441dde['cMugT']||Array['isArray'](_0x3b8c85))return{};const _0x1a78f3={},_0x3e481f=_0x3b8c85['model'];return typeof _0x3e481f===_0x47fda4(0x1db)&&(_0x1a78f3[_0x47fda4(0x1de)]=_0x3e481f),_0x1a78f3;}catch(_0x50e403){const _0x39d867=_0x50e403 instanceof Error?_0x50e403[_0x47fda4(0x1eb)]:String(_0x50e403);return console[_0x47fda4(0x1dc)](_0x47fda4(0x1e7)+_0x4f8f2f+':\x20'+_0x39d867),{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x1c15(_0x3623c8,_0x3d1dc7){_0x3623c8=_0x3623c8-0x1ee;const _0x5ce618=_0x5ce6();let _0x1c15ec=_0x5ce618[_0x3623c8];return _0x1c15ec;}(function(_0xf298f2,_0x113bf0){const _0x584e9d=_0x1c15,_0xeaf4f8=_0xf298f2();while(!![]){try{const _0x2ba65f=parseInt(_0x584e9d(0x1fd))/0x1*(-parseInt(_0x584e9d(0x1fc))/0x2)+-parseInt(_0x584e9d(0x1ee))/0x3*(parseInt(_0x584e9d(0x1f9))/0x4)+-parseInt(_0x584e9d(0x1fb))/0x5*(parseInt(_0x584e9d(0x200))/0x6)+parseInt(_0x584e9d(0x1f1))/0x7+parseInt(_0x584e9d(0x1f2))/0x8+-parseInt(_0x584e9d(0x1ff))/0x9+-parseInt(_0x584e9d(0x201))/0xa*(-parseInt(_0x584e9d(0x1f8))/0xb);if(_0x2ba65f===_0x113bf0)break;else _0xeaf4f8['push'](_0xeaf4f8['shift']());}catch(_0x3315ae){_0xeaf4f8['push'](_0xeaf4f8['shift']());}}}(_0x5ce6,0x1f626));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';function _0x5ce6(){const _0x581d7c=['ynZPL','906514iRtnSa','806408dAcVtS','UNcrK','EUhab','root','AvDsv','SlKOA','25113bGOBUd','62332fEXNIn','.ranger','20BlgPbe','59618CtAVvh','1GvchnF','PEVob','1504188EFdula','47514exxSCR','1170mAFTUm','27ksUCuA','Jpxpa'];_0x5ce6=function(){return _0x581d7c;};return _0x5ce6();}export function getRangerRoot(){const _0x46e6da=_0x1c15,_0xa73b85={'UNcrK':function(_0x511ac6,_0x383a16){return _0x511ac6(_0x383a16);},'RaNjk':function(_0x3855f5,_0x3d5d1b){return _0x3855f5!==_0x3d5d1b;},'ZwzmM':function(_0x370f31,_0x1273df,_0x563263){return _0x370f31(_0x1273df,_0x563263);},'EUhab':_0x46e6da(0x1fa),'rMplp':function(_0x2ddbaa,_0xd36e82){return _0x2ddbaa(_0xd36e82);},'SlKOA':function(_0x5cf571,_0x1aae24,_0x572fa9){return _0x5cf571(_0x1aae24,_0x572fa9);},'euyrq':function(_0x176ad1){return _0x176ad1();}};let _0x1dcd43=process['cwd']();const _0x393e9d=_0xa73b85[_0x46e6da(0x1f3)](parse,_0x1dcd43)['root'];while(_0xa73b85['RaNjk'](_0x1dcd43,_0x393e9d)){if(existsSync(_0xa73b85['ZwzmM'](join,_0x1dcd43,_0xa73b85[_0x46e6da(0x1f4)])))return _0x1dcd43;_0x1dcd43=_0xa73b85[_0x46e6da(0x1f3)](dirname,_0x1dcd43);}if(_0xa73b85['rMplp'](existsSync,_0xa73b85[_0x46e6da(0x1f7)](join,_0x393e9d,'.ranger')))return _0x393e9d;const _0x5371c4=_0xa73b85['euyrq'](findGitRoot);if(_0x5371c4)return _0x5371c4;return process['cwd']();}export function getRangerDir(){const _0x2d4ab8=_0x1c15,_0x34b864={'ynZPL':function(_0xa5247a,_0x1e12be,_0x4c3a1c){return _0xa5247a(_0x1e12be,_0x4c3a1c);},'AvDsv':function(_0x47b168){return _0x47b168();}};return _0x34b864[_0x2d4ab8(0x1f0)](join,_0x34b864[_0x2d4ab8(0x1f6)](getRangerRoot),_0x2d4ab8(0x1fa));}export function findGitRoot(){const _0x14f0e6=_0x1c15,_0x1108c6={'PkuFo':function(_0x39b464,_0x5588b3){return _0x39b464!==_0x5588b3;},'Jpxpa':function(_0x989ca1,_0x5295bc){return _0x989ca1(_0x5295bc);},'IYVRw':function(_0x51a85b,_0x146a53,_0x370fe7){return _0x51a85b(_0x146a53,_0x370fe7);},'sgfED':'.git'};let _0x389dd2=process['cwd']();const _0x400367=parse(_0x389dd2)[_0x14f0e6(0x1f5)];while(_0x1108c6['PkuFo'](_0x389dd2,_0x400367)){if(_0x1108c6[_0x14f0e6(0x1ef)](existsSync,_0x1108c6['IYVRw'](join,_0x389dd2,_0x1108c6['sgfED'])))return _0x389dd2;_0x389dd2=dirname(_0x389dd2);}if(existsSync(join(_0x400367,_0x1108c6['sgfED'])))return _0x400367;return null;}export function getRangerHomeDir(){const _0x2e95b6=_0x1c15,_0x53bca5={'PEVob':function(_0x4207f6,_0x53dd49,_0x20042c){return _0x4207f6(_0x53dd49,_0x20042c);},'VumfB':function(_0x39bb96){return _0x39bb96();},'KTsYY':_0x2e95b6(0x1fa)};return _0x53bca5[_0x2e95b6(0x1fe)](join,_0x53bca5['VumfB'](homedir),_0x53bca5['KTsYY']);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5d657a,_0x23370a){const _0x323061=_0x6d57,_0x2bdbb2=_0x5d657a();while(!![]){try{const _0x440816=parseInt(_0x323061(0x1a2))/0x1*(parseInt(_0x323061(0x1a1))/0x2)+-parseInt(_0x323061(0x1b8))/0x3+-parseInt(_0x323061(0x1c7))/0x4*(-parseInt(_0x323061(0x1ad))/0x5)+parseInt(_0x323061(0x1c1))/0x6+parseInt(_0x323061(0x1cb))/0x7*(-parseInt(_0x323061(0x1a8))/0x8)+-parseInt(_0x323061(0x1ae))/0x9*(-parseInt(_0x323061(0x1b7))/0xa)+parseInt(_0x323061(0x1a5))/0xb*(-parseInt(_0x323061(0x1c5))/0xc);if(_0x440816===_0x23370a)break;else _0x2bdbb2['push'](_0x2bdbb2['shift']());}catch(_0x4b55b1){_0x2bdbb2['push'](_0x2bdbb2['shift']());}}}(_0x5200,0x305c3));function _0x6d57(_0x353767,_0xea2948){_0x353767=_0x353767-0x198;const _0x520063=_0x5200();let _0x6d5778=_0x520063[_0x353767];return _0x6d5778;}import{existsSync}from'fs';import _0x158f71 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(_0x289c59){const _0x326b7e=_0x6d57,_0x34db87={'JvwbG':function(_0x123d49){return _0x123d49();},'dOvPA':function(_0x462b5c,_0x497c07){return _0x462b5c===_0x497c07;},'wFVkH':function(_0x44840b,_0x55baf7){return _0x44840b+_0x55baf7;},'ezuqa':_0x326b7e(0x1ac),'ipTyT':_0x326b7e(0x19e),'tfESE':'\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','uthMk':'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','vrylr':function(_0x1636a1,_0xc89840){return _0x1636a1(_0xc89840);},'Vedmn':function(_0x7888f3,_0x1f764f){return _0x7888f3 instanceof _0x1f764f;},'dMPky':function(_0x174061,_0x112947){return _0x174061&&_0x112947;},'UymFA':function(_0x26851a,_0x2a3e12){return _0x26851a&&_0x2a3e12;},'WHZQu':function(_0x2be470){return _0x2be470();},'DEhJA':'source','sxOrA':_0x326b7e(0x1af),'eUCgB':_0x326b7e(0x1c0),'YcGyq':function(_0x44bf6c,_0x577bd5){return _0x44bf6c===_0x577bd5;},'yVZNN':function(_0x3abe7c,_0x56d65f,_0x4a3bac){return _0x3abe7c(_0x56d65f,_0x4a3bac);},'KykFO':function(_0x1c2099,_0xc0a31d){return _0x1c2099(_0xc0a31d);},'jbqkS':function(_0x2771a4,_0x2578f1){return _0x2771a4??_0x2578f1;},'fVyQe':function(_0xf20a40,_0x153ffc){return _0xf20a40(_0x153ffc);}},_0x3d0d4d=_0x289c59[_0x326b7e(0x19f)];let _0x2fead2=_0x289c59[_0x326b7e(0x19f)]??await _0x34db87['JvwbG'](readActiveProfileName),_0x1cabbb=null;if(!_0x2fead2&&process[_0x326b7e(0x198)][_0x326b7e(0x1b9)]){const _0x104e33=await resolveAdHocProfile();_0x104e33&&(_0x2fead2=_0x104e33['name'],_0x1cabbb=_0x104e33['profile']);}if(!_0x2fead2)try{const _0x43a9c3=await listCloudProfiles();if(_0x34db87[_0x326b7e(0x1bc)](_0x43a9c3['length'],0x1)){const _0x34a0fe=_0x43a9c3[0x0];_0x2fead2=_0x34a0fe[_0x326b7e(0x1ca)],console['log'](_0x326b7e(0x1a4)+_0x34a0fe['name']),console['log'](_0x326b7e(0x1a0));}}catch{}if(!_0x2fead2)throw new Error(_0x34db87['wFVkH'](_0x34db87[_0x326b7e(0x1c3)](_0x34db87[_0x326b7e(0x1a6)],_0x34db87[_0x326b7e(0x1c2)]),_0x34db87['tfESE'])+'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a'+_0x34db87[_0x326b7e(0x1b6)]);const _0x29d06c=_0x34db87['vrylr'](getEnvDir,_0x2fead2),_0x3eaf77=_0x34db87['vrylr'](existsSync,_0x29d06c);let _0x29cc50=_0x1cabbb,_0x360375=![];if(!_0x29cc50)try{_0x29cc50=await fetchCloudProfile(_0x2fead2);if(!_0x29cc50)_0x360375=!![];}catch(_0x49f80d){_0x34db87['Vedmn'](_0x49f80d,ApiError)&&_0x34db87[_0x326b7e(0x1bc)](_0x49f80d[_0x326b7e(0x1ba)],0x194)&&(_0x360375=!![]);}if(_0x34db87['dMPky'](_0x3d0d4d,_0x360375)&&!_0x3eaf77&&!_0x29cc50)throw new Error(_0x34db87['wFVkH']('Profile\x20\x22'+_0x3d0d4d+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20')+_0x326b7e(0x1b4));if(_0x34db87['UymFA'](_0x29cc50,_0x3eaf77)){let _0xe1255b=!![];if(_0x34db87['WHZQu'](isInteractive)){const {source:_0x89ce3b}=await _0x158f71[_0x326b7e(0x1b5)]([{'type':'list','name':_0x34db87[_0x326b7e(0x19a)],'message':'Profile\x20\x22'+_0x2fead2+_0x326b7e(0x1be),'choices':[{'name':_0x34db87['sxOrA'],'value':'cloud'},{'name':'Local\x20profile','value':_0x326b7e(0x1b3)}],'default':_0x34db87[_0x326b7e(0x199)]}]);_0xe1255b=_0x34db87[_0x326b7e(0x1bd)](_0x89ce3b,_0x34db87[_0x326b7e(0x199)]);}if(!_0xe1255b)_0x29cc50=null;}const _0x3cbb17=_0x34db87[_0x326b7e(0x1c4)](readProfileOverrides,process['cwd'](),_0x2fead2);let _0x4d0678=null,_0x41b8da,_0x2c7581,_0x9dfe7a,_0x29a827,_0x2c7499=null,_0x2e6226;const _0x21535d=_0x34db87[_0x326b7e(0x1a7)](expandOverrides,_0x3cbb17);if(_0x29cc50){_0x4d0678=_0x29cc50;const _0x243851=_0x29cc50[_0x326b7e(0x1a9)]??{},_0x3d231=_0x34db87['yVZNN'](mergeCloudProfileSettings,_0x243851,_0x34db87[_0x326b7e(0x1cc)](_0x3cbb17,undefined)),_0x208d9c={..._0x29cc50,'settings':_0x3d231},_0x403b6c=process['env']['RANGER_SESSION_STATE_PATH'];if(_0x403b6c){const _0x42972e=_0x326b7e(0x1ab)[_0x326b7e(0x1a3)]('|');let _0x1bfa14=0x0;while(!![]){switch(_0x42972e[_0x1bfa14++]){case'0':_0x41b8da=_0x403b6c;continue;case'1':if(!existsSync(_0x403b6c))throw new Error('RANGER_SESSION_STATE_PATH='+_0x403b6c+'\x20does\x20not\x20exist.');continue;case'2':_0x2c7581=resolveEnvVars(_0x3d231);continue;case'3':_0x9dfe7a=Boolean(_0x2c7581[_0x326b7e(0x19b)]);continue;case'4':_0x2c7499={'baseUrl':expandString(_0x243851[_0x326b7e(0x1c9)]),'startPath':expandString(_0x243851['startPath'])};continue;}break;}}else{const _0x55c07a=await resolveCloudProfileSession(_0x208d9c);_0x41b8da=_0x55c07a[_0x326b7e(0x1bb)],_0x2c7581=resolveEnvVars(_0x3d231),_0x9dfe7a=Boolean(_0x2c7581['cdpEndpoint']),_0x2c7499={'baseUrl':expandString(_0x243851[_0x326b7e(0x1c9)]),'startPath':expandString(_0x243851['startPath'])},_0x2e6226=_0x55c07a[_0x326b7e(0x1b1)]?.[_0x326b7e(0x1b2)]?.[0x0];}}else{if(!_0x3eaf77)throw new Error('Profile\x20\x22'+_0x2fead2+_0x326b7e(0x1b0)+_0x2fead2);const _0x3d3dc3=await _0x34db87['fVyQe'](loadSettings,_0x2fead2);_0x2c7581=resolveEnvVars(_0x3d3dc3),_0x9dfe7a=_0x34db87[_0x326b7e(0x1c8)](Boolean,_0x2c7581['cdpEndpoint']),_0x29a827=_0x2c7581[_0x326b7e(0x1c9)];}const _0x3c95df=readUrlEnvVars(),_0x90daff=_0x34db87['KykFO'](resolveProfileUrl,{'flagBaseUrl':_0x289c59['baseUrl'],'flagStartPath':_0x289c59['startPath'],'envBaseUrl':_0x3c95df['envBaseUrl'],'envStartPath':_0x3c95df['envStartPath'],'localSettingsBaseUrl':_0x29a827,'projectOverrides':_0x21535d,'cloudSettings':_0x2c7499,'authEnvironmentDomain':_0x2e6226}),_0x4a2644=_0x90daff[_0x326b7e(0x1bf)]??_0x90daff[_0x326b7e(0x1c9)];if(_0x34db87[_0x326b7e(0x1c6)](!_0x4a2644,!_0x9dfe7a))throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0x2fead2+_0x326b7e(0x19d)+_0x2fead2+'\x20baseUrl\x20<url>');return{'activeProfile':_0x2fead2,'resolvedCloudProfile':_0x4d0678,'cloudAuthPath':_0x41b8da,'resolvedSettings':_0x2c7581,'isCdpMode':_0x9dfe7a,'url':_0x4a2644,'startPath':_0x90daff['startPath']};}function expandString(_0x36f531){const _0x24bfce={'BMojD':function(_0x4bb866,_0x43f9cf){return _0x4bb866!==_0x43f9cf;}};if(_0x24bfce['BMojD'](typeof _0x36f531,'string'))return _0x36f531;return resolveEnvVars(_0x36f531);}function _0x5200(){const _0x563509=['name','504Jotgqh','jbqkS','env','eUCgB','DEhJA','cdpEndpoint','string','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','profile','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','1924SzWirz','245IdWzpG','split','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','11acbftR','ezuqa','KykFO','4024BxDxyf','settings','startPath','1|0|2|3|4','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','52235UkZdbI','9iGcyqf','Cloud\x20profile\x20(recommended)','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','resolvedEnv','domains','local','`ranger\x20profile\x20add`\x20to\x20create\x20one.','prompt','uthMk','208790tYbuLQ','66114pRzOUv','RANGER_TEST_USERNAME','status','authPath','dOvPA','YcGyq','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','url','cloud','1831950zouspz','ipTyT','wFVkH','yVZNN','3792048FGmeyG','dMPky','4PYSjoY','vrylr','baseUrl'];_0x5200=function(){return _0x563509;};return _0x5200();}function expandOverrides(_0x5d6099){const _0x281795=_0x6d57,_0x37bed1={'bCpKa':'string','CuNPW':function(_0x562b81,_0xba3780){return _0x562b81(_0xba3780);}};if(!_0x5d6099)return _0x5d6099;const _0x495e24={..._0x5d6099};return typeof _0x495e24['baseUrl']===_0x281795(0x19c)&&(_0x495e24['baseUrl']=resolveEnvVars(_0x495e24['baseUrl'])),typeof _0x495e24['startPath']===_0x37bed1['bCpKa']&&(_0x495e24[_0x281795(0x1aa)]=_0x37bed1['CuNPW'](resolveEnvVars,_0x495e24['startPath'])),_0x495e24;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x427e(_0x3aeef7,_0x5566d2){_0x3aeef7=_0x3aeef7-0x1e1;const _0x506161=_0x5061();let _0x427e71=_0x506161[_0x3aeef7];return _0x427e71;}(function(_0x4d532b,_0x85ae4){const _0x508cf6=_0x427e,_0x12dc90=_0x4d532b();while(!![]){try{const _0x3427c7=parseInt(_0x508cf6(0x1e5))/0x1+parseInt(_0x508cf6(0x1e1))/0x2+parseInt(_0x508cf6(0x1f0))/0x3+-parseInt(_0x508cf6(0x1e4))/0x4*(parseInt(_0x508cf6(0x1e3))/0x5)+-parseInt(_0x508cf6(0x1e9))/0x6*(-parseInt(_0x508cf6(0x1ee))/0x7)+parseInt(_0x508cf6(0x1f1))/0x8*(parseInt(_0x508cf6(0x1f3))/0x9)+-parseInt(_0x508cf6(0x1ef))/0xa;if(_0x3427c7===_0x85ae4)break;else _0x12dc90['push'](_0x12dc90['shift']());}catch(_0x2d26c9){_0x12dc90['push'](_0x12dc90['shift']());}}}(_0x5061,0x72fff));function firstDefined(..._0x3f3fbc){const _0x2a42c2={'WGvsM':function(_0x382197,_0x20967e){return _0x382197!==_0x20967e;}};for(const _0x34cc44 of _0x3f3fbc){if(_0x34cc44!==undefined&&_0x2a42c2['WGvsM'](_0x34cc44,null)&&_0x2a42c2['WGvsM'](_0x34cc44,''))return _0x34cc44;}return undefined;}function _0x5061(){const _0x17c31a=['3964304YTIEfI','baseUrl','9uvjYvB','flagStartPath','881702dvKRzJ','string','517625RHyqoO','36BeJttn','75606AZkFiP','startPath','NDiZq','cloudSettings','5635086jhYjZH','flagBaseUrl','RANGER_BASE_URL','tmjDP','RRyiW','7ZnUFmg','6666280xVVTso','354648FRhogo'];_0x5061=function(){return _0x17c31a;};return _0x5061();}function normalizeAuthEnvironmentDomain(_0x21eee7){if(!_0x21eee7)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i['test'](_0x21eee7))return _0x21eee7;return'https://'+_0x21eee7;}export function resolveBaseUrl(_0x100c0b){const _0x278eb2=_0x427e,_0x4cbc49={'tmjDP':'baseUrl','tVaGO':_0x278eb2(0x1e2),'eRbOd':function(_0x3cb75e,_0xcb1e1c){return _0x3cb75e(_0xcb1e1c);}},_0x2ead4c=_0x100c0b['projectOverrides'],_0x426dee=!!_0x2ead4c&&_0x4cbc49[_0x278eb2(0x1ec)]in _0x2ead4c,_0x5eb99f=_0x2ead4c?.[_0x278eb2(0x1f2)],_0x460bde=!(_0x426dee&&_0x5eb99f===null);return firstDefined(_0x100c0b[_0x278eb2(0x1ea)],_0x100c0b['envBaseUrl'],_0x100c0b['localSettingsBaseUrl'],typeof _0x5eb99f===_0x4cbc49['tVaGO']?_0x5eb99f:undefined,_0x460bde?_0x100c0b['cloudSettings']?.[_0x278eb2(0x1f2)]:undefined,_0x460bde?_0x4cbc49['eRbOd'](normalizeAuthEnvironmentDomain,_0x100c0b['authEnvironmentDomain']):undefined);}export function resolveStartPath(_0x39beba){const _0x2a6540=_0x427e,_0x34bbe0={'NDiZq':function(_0x5552fe,_0x2038aa){return _0x5552fe in _0x2038aa;},'QenAb':function(_0x48bdc,_0x1acb10,_0x145cd2,_0x4c2385,_0x102bc3){return _0x48bdc(_0x1acb10,_0x145cd2,_0x4c2385,_0x102bc3);},'NpkGF':function(_0x5d74f0,_0xf94ca5){return _0x5d74f0===_0xf94ca5;}},_0x38d60b=_0x39beba['projectOverrides'],_0x1f768f=!!_0x38d60b&&_0x34bbe0[_0x2a6540(0x1e7)]('startPath',_0x38d60b),_0x453462=_0x38d60b?.[_0x2a6540(0x1e6)],_0x57ee6b=!(_0x1f768f&&_0x453462===null);return _0x34bbe0['QenAb'](firstDefined,_0x39beba[_0x2a6540(0x1f4)],_0x39beba['envStartPath'],_0x34bbe0['NpkGF'](typeof _0x453462,'string')?_0x453462:undefined,_0x57ee6b?_0x39beba[_0x2a6540(0x1e8)]?.['startPath']:undefined);}export function joinBaseAndPath(_0x327246,_0x14eba8){const _0x39efdb={'hmVOl':function(_0x112cdc,_0x31a636){return _0x112cdc+_0x31a636;}};if(!_0x327246)return undefined;if(!_0x14eba8)return _0x327246;const _0xe0ef6d=_0x327246['endsWith']('/')?_0x327246['slice'](0x0,-0x1):_0x327246,_0x41b33e=_0x14eba8['startsWith']('/')?_0x14eba8:'/'+_0x14eba8;return _0x39efdb['hmVOl'](_0xe0ef6d,_0x41b33e);}export function resolveProfileUrl(_0x58af59){const _0x2248ab=_0x427e,_0x50d675={'bUZnA':function(_0x29a793,_0x4a95d8){return _0x29a793(_0x4a95d8);},'RRyiW':function(_0x5cf721,_0x2b63b4,_0x8ce73){return _0x5cf721(_0x2b63b4,_0x8ce73);}},_0x8cfcfe=_0x50d675['bUZnA'](resolveBaseUrl,_0x58af59),_0x4a26ac=resolveStartPath(_0x58af59);return{'baseUrl':_0x8cfcfe,'startPath':_0x4a26ac,'url':_0x50d675[_0x2248ab(0x1ed)](joinBaseAndPath,_0x8cfcfe,_0x4a26ac)};}export function readUrlEnvVars(_0x37d9f4=process['env']){const _0xbaa163=_0x427e;return{'envBaseUrl':_0x37d9f4[_0xbaa163(0x1eb)],'envStartPath':_0x37d9f4['RANGER_START_PATH']};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5907(){const _0x41cea1=['1485042BrzlSR','19625705lTiDsf','ms...','3QVNfbW','label','1294078xyUOWE','UWayj','3207796tRMVAW','12hXNikE','1863170uItgBP','11235160NpbTBH','9RKBnIG','maxRetries','427GOGgMr','245656TmomLt'];_0x5907=function(){return _0x41cea1;};return _0x5907();}(function(_0x2e57b5,_0x87944){const _0x298a51=_0xf075,_0x4bce69=_0x2e57b5();while(!![]){try{const _0x1bf01f=parseInt(_0x298a51(0xed))/0x1+parseInt(_0x298a51(0xe8))/0x2+parseInt(_0x298a51(0xeb))/0x3*(-parseInt(_0x298a51(0xe0))/0x4)+-parseInt(_0x298a51(0xe2))/0x5*(-parseInt(_0x298a51(0xe1))/0x6)+parseInt(_0x298a51(0xe6))/0x7*(parseInt(_0x298a51(0xe7))/0x8)+parseInt(_0x298a51(0xe4))/0x9*(-parseInt(_0x298a51(0xe3))/0xa)+-parseInt(_0x298a51(0xe9))/0xb;if(_0x1bf01f===_0x87944)break;else _0x4bce69['push'](_0x4bce69['shift']());}catch(_0x16ada5){_0x4bce69['push'](_0x4bce69['shift']());}}}(_0x5907,0xe6cde));function _0xf075(_0x5c2ca0,_0xccd852){_0x5c2ca0=_0x5c2ca0-0xe0;const _0x590720=_0x5907();let _0xf075cf=_0x590720[_0x5c2ca0];return _0xf075cf;}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x42aeea,_0x457c4b){const _0x47e9b8=_0xf075,_0xb9e0c2={'UWayj':function(_0x262981,_0x3dd457){return _0x262981 instanceof _0x3dd457;}},_0x5b82f9=_0x457c4b?.[_0x47e9b8(0xe5)]??DEFAULT_MAX_RETRIES,_0x2b92e0=_0x457c4b?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x217fd5;for(let _0x5ede91=0x0;_0x5ede91<=_0x5b82f9;_0x5ede91++){try{return await _0x42aeea();}catch(_0x4d063e){_0x217fd5=_0xb9e0c2[_0x47e9b8(0xee)](_0x4d063e,Error)?_0x4d063e:new Error(String(_0x4d063e));if(_0x5ede91<_0x5b82f9){const _0x2c4170=_0x2b92e0*Math['pow'](0x2,_0x5ede91);_0x457c4b?.[_0x47e9b8(0xec)]&&console['error'](_0x457c4b['label']+'\x20failed\x20(attempt\x20'+(_0x5ede91+0x1)+'/'+(_0x5b82f9+0x1)+'),\x20retrying\x20in\x20'+_0x2c4170+_0x47e9b8(0xea)),await new Promise(_0x198311=>setTimeout(_0x198311,_0x2c4170));}}}throw _0x217fd5;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x390326,_0x31a961){const _0x5c9561=_0x2e9d,_0x38c927=_0x390326();while(!![]){try{const _0x532090=parseInt(_0x5c9561(0xd2))/0x1*(parseInt(_0x5c9561(0xc5))/0x2)+parseInt(_0x5c9561(0xe2))/0x3*(-parseInt(_0x5c9561(0xd9))/0x4)+-parseInt(_0x5c9561(0xc7))/0x5*(-parseInt(_0x5c9561(0xda))/0x6)+-parseInt(_0x5c9561(0xe3))/0x7+parseInt(_0x5c9561(0xc9))/0x8*(-parseInt(_0x5c9561(0xd6))/0x9)+-parseInt(_0x5c9561(0xc3))/0xa+parseInt(_0x5c9561(0xb9))/0xb;if(_0x532090===_0x31a961)break;else _0x38c927['push'](_0x38c927['shift']());}catch(_0x14fbb1){_0x38c927['push'](_0x38c927['shift']());}}}(_0x541e,0xf0377));import*as _0xf48215 from'fs';import*as _0x415c6a from'path';import*as _0xea321c from'os';import{execSync}from'child_process';const CACHE_FILE=_0x415c6a['join'](_0xea321c['homedir'](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0xa4f86c=_0x2e9d,_0x19f88c={'ucXtr':_0xa4f86c(0xe0),'dOjSO':function(_0x4c858b){return _0x4c858b();}};try{if(_0xf48215['existsSync'](CACHE_FILE)){const _0x375936=JSON['parse'](_0xf48215['readFileSync'](CACHE_FILE,_0x19f88c[_0xa4f86c(0xe6)]));return{'version':0x3,'sessions':_0x375936[_0xa4f86c(0xd8)]||{},'branches':_0x375936[_0xa4f86c(0xbc)]||{},'lastEnabledSessionClearedAt':_0x375936[_0xa4f86c(0xde)]};}}catch{}return _0x19f88c['dOjSO'](createEmptyCache);}function _0x541e(){const _0xb2a9ee=['enabled','uKQuA','aRKQx','registeredAt','30859mgSZZI','featureId','vrsaF','lastStopReminderAt','453321iCoWgG','LmnuH','sessions','6036GUObgT','458220qazyUq','FJEWl','now','tPKOT','lastEnabledSessionClearedAt','eIQfo','utf-8','xlEEj','3474gqYwag','3353945BjiIbh','HsRfF','gsVPh','ucXtr','Wrzkg','currentBranch','11661991IZzFwj','wNQvS','clear','branches','lastPlanReminderAt','eeYVS','mXbwv','pipe','XNWlP','toISOString','2571260AUKYBn','VzBPl','98RkaSWP','prompted','85bqwQFY','master','64KGnpie','stringify','main','shczu','yYqjQ'];_0x541e=function(){return _0xb2a9ee;};return _0x541e();}function saveCache(_0x3c396e){const _0x11b3ec=_0x2e9d;try{const _0x35c344=_0x415c6a['dirname'](CACHE_FILE);!_0xf48215['existsSync'](_0x35c344)&&_0xf48215['mkdirSync'](_0x35c344,{'recursive':!![]}),_0xf48215['writeFileSync'](CACHE_FILE,JSON[_0x11b3ec(0xca)](_0x3c396e,null,0x2));}catch{}}export function getCurrentBranch(){const _0x7da28=_0x2e9d,_0x59c191={'shczu':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','lOoVX':_0x7da28(0xe0),'uKQuA':_0x7da28(0xc0),'eIQfo':'HEAD'};try{const _0x646cfa=execSync(_0x59c191[_0x7da28(0xcc)],{'encoding':_0x59c191['lOoVX'],'stdio':[_0x7da28(0xc0),_0x59c191[_0x7da28(0xcf)],_0x59c191[_0x7da28(0xcf)]]})['trim']();if(!_0x646cfa||_0x646cfa===_0x59c191[_0x7da28(0xdf)])return null;return _0x646cfa;}catch{return null;}}export function enableBranch(_0x42ed0c){const _0x2f4943=_0x2e9d,_0x463755={'vrsaF':function(_0x490cb2){return _0x490cb2();}},_0xf966b=_0x463755[_0x2f4943(0xd4)](loadCache);_0xf966b['branches'][_0x42ed0c]=!![],saveCache(_0xf966b);}export function disableBranch(_0x4ef4cd){const _0x32044a=_0x2e9d,_0x44c6fb={'FJEWl':function(_0x55f5c3,_0x2c2cc1){return _0x55f5c3(_0x2c2cc1);}},_0x3f1b23=loadCache();delete _0x3f1b23[_0x32044a(0xbc)][_0x4ef4cd],_0x44c6fb[_0x32044a(0xdb)](saveCache,_0x3f1b23);}export function isBranchEnabled(_0x12d14a){const _0x8d8c8e=_0x2e9d,_0x77f51b={'COCdz':function(_0x2afa5d,_0x48cc33){return _0x2afa5d===_0x48cc33;}},_0x4f2fd1=loadCache();return _0x77f51b['COCdz'](_0x4f2fd1[_0x8d8c8e(0xbc)][_0x12d14a],!![]);}function getOrCreateSession(_0x5a40b1,_0x2553cc){const _0x5825e8=_0x2e9d;return!_0x5a40b1['sessions'][_0x2553cc]&&(_0x5a40b1['sessions'][_0x2553cc]={}),_0x5a40b1[_0x5825e8(0xd8)][_0x2553cc];}export function enableSession(_0x55d977){const _0x2049a3=_0x2e9d,_0x17649e={'OrwNq':function(_0x1a1b5d){return _0x1a1b5d();},'LXbYi':'main'},_0x56447f=_0x17649e['OrwNq'](loadCache),_0x5b454d=getOrCreateSession(_0x56447f,_0x55d977);_0x5b454d[_0x2049a3(0xce)]=!![];const _0x1624f6=getCurrentBranch();_0x1624f6&&_0x1624f6!==_0x17649e['LXbYi']&&_0x1624f6!=='master'&&(_0x56447f[_0x2049a3(0xbc)][_0x1624f6]=!![],_0x5b454d[_0x2049a3(0xe8)]=_0x1624f6),saveCache(_0x56447f);}export function isSessionEnabled(_0x38ed98){const _0x6f3afd=_0x2e9d,_0x407f65={'wNQvS':function(_0x199504){return _0x199504();},'pRXWn':function(_0x2bcc58,_0x510593){return _0x2bcc58===_0x510593;},'VzBPl':_0x6f3afd(0xc8),'bwfXQ':function(_0x59a285,_0x4c1d0f){return _0x59a285||_0x4c1d0f;}},_0x18b453=_0x407f65[_0x6f3afd(0xba)](loadCache),_0x3b1a45=getCurrentBranch();if(!_0x3b1a45||_0x3b1a45===_0x6f3afd(0xcb)||_0x407f65['pRXWn'](_0x3b1a45,_0x407f65[_0x6f3afd(0xc4)]))return _0x407f65['pRXWn'](_0x18b453['sessions'][_0x38ed98]?.['enabled'],!![]);const _0x52bc25=_0x18b453[_0x6f3afd(0xbc)][_0x3b1a45]===!![],_0x22da84=_0x18b453[_0x6f3afd(0xd8)][_0x38ed98]?.['enabled']===!![];return _0x407f65['bwfXQ'](_0x52bc25,_0x22da84);}export function disableSession(_0x5d6bf0){const _0x4d783b=_0x2e9d,_0x445d52={'mXbwv':function(_0xaefb83){return _0xaefb83();},'iuBIn':function(_0xbc348f,_0x593210,_0x39c370){return _0xbc348f(_0x593210,_0x39c370);}},_0x489163=_0x445d52[_0x4d783b(0xbf)](loadCache),_0x4ccb22=_0x445d52['iuBIn'](getOrCreateSession,_0x489163,_0x5d6bf0);_0x4ccb22[_0x4d783b(0xce)]=![],saveCache(_0x489163);}export function updateBranchTracking(_0x131f75){const _0x560af7=_0x2e9d,_0x5599c3={'xlEEj':function(_0x21fb20){return _0x21fb20();},'HsRfF':function(_0x17d590,_0x2de253){return _0x17d590===_0x2de253;},'KrvJo':function(_0x8ca4d0,_0x1d383d){return _0x8ca4d0===_0x1d383d;},'tPKOT':function(_0x4b1c7b,_0x6d7b8e){return _0x4b1c7b!==_0x6d7b8e;},'aRKQx':function(_0x5f30ee,_0x8b3195){return _0x5f30ee(_0x8b3195);}},_0x57454a=_0x5599c3[_0x560af7(0xe1)](loadCache),_0x3eecac=_0x57454a['sessions'][_0x131f75];if(!_0x3eecac?.[_0x560af7(0xce)])return;const _0x47a79f=getCurrentBranch();if(!_0x47a79f||_0x5599c3[_0x560af7(0xe4)](_0x47a79f,_0x560af7(0xcb))||_0x5599c3['KrvJo'](_0x47a79f,'master'))return;_0x5599c3[_0x560af7(0xdd)](_0x3eecac[_0x560af7(0xe8)],_0x47a79f)&&(_0x57454a['branches'][_0x47a79f]=!![],_0x3eecac[_0x560af7(0xe8)]=_0x47a79f,_0x5599c3[_0x560af7(0xd0)](saveCache,_0x57454a));}export function initBranchTracking(_0x4bc0b6){const _0x21e49e=_0x2e9d,_0xb59f6d={'iHnim':function(_0x488241){return _0x488241();},'Wrzkg':function(_0x2507d0,_0x27d56a){return _0x2507d0===_0x27d56a;},'tOESr':_0x21e49e(0xc8),'QQvgl':function(_0x46426e,_0x2f8e2c,_0x41a958){return _0x46426e(_0x2f8e2c,_0x41a958);}},_0xfd8fea=_0xb59f6d['iHnim'](loadCache),_0x35f5d4=getCurrentBranch();if(!_0x35f5d4||_0xb59f6d['Wrzkg'](_0x35f5d4,'main')||_0x35f5d4===_0xb59f6d['tOESr'])return;if(_0xb59f6d[_0x21e49e(0xe7)](_0xfd8fea['branches'][_0x35f5d4],!![])){const _0x546594=_0xb59f6d['QQvgl'](getOrCreateSession,_0xfd8fea,_0x4bc0b6);_0x546594['enabled']=!![],_0x546594['currentBranch']=_0x35f5d4,saveCache(_0xfd8fea);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x196057){const _0x2bf3de=_0x2e9d,_0x4c1b80={'brLmA':function(_0x515a13,_0x32e457){return _0x515a13(_0x32e457);}},_0x2dc738=loadCache(),_0x4aeeba=_0x2dc738[_0x2bf3de(0xd8)][_0x196057];_0x4aeeba?.[_0x2bf3de(0xce)]&&(_0x2dc738['lastEnabledSessionClearedAt']=Date[_0x2bf3de(0xdc)](),_0x4c1b80['brLmA'](saveCache,_0x2dc738));}export function shouldAutoEnableAfterClear(_0x1a6c75){const _0x40c060=_0x2e9d,_0x44125a={'gsVPh':function(_0x5acbf3,_0x2c4b08){return _0x5acbf3-_0x2c4b08;}};if(_0x1a6c75!==_0x40c060(0xbb))return![];const _0x3b1c22=loadCache(),_0x14955e=_0x3b1c22['lastEnabledSessionClearedAt'];if(!_0x14955e)return![];const _0x1d8b48=_0x44125a[_0x40c060(0xe5)](Date[_0x40c060(0xdc)](),_0x14955e);return _0x1d8b48<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0xd303ad){const _0x32b5a6=_0x2e9d,_0x2d026a={'yYqjQ':function(_0x2c18d9){return _0x2c18d9();},'YFaWh':function(_0x4779c4){return _0x4779c4();},'Relmf':function(_0x24f744,_0x46ed12){return _0x24f744!==_0x46ed12;},'lfPZg':_0x32b5a6(0xcb),'UmdLr':function(_0x1603f2,_0x662671){return _0x1603f2!==_0x662671;},'yIJWR':'master'},_0x1b3ffd=_0x2d026a[_0x32b5a6(0xcd)](loadCache),_0x47add2=getOrCreateSession(_0x1b3ffd,_0xd303ad);_0x47add2[_0x32b5a6(0xce)]=!![];const _0x56d161=_0x2d026a['YFaWh'](getCurrentBranch);_0x56d161&&_0x2d026a['Relmf'](_0x56d161,_0x2d026a['lfPZg'])&&_0x2d026a['UmdLr'](_0x56d161,_0x2d026a['yIJWR'])&&(_0x47add2['currentBranch']=_0x56d161),delete _0x1b3ffd[_0x32b5a6(0xde)],saveCache(_0x1b3ffd);}export function registerSession(_0xc6349,_0x4ad615){const _0x1204ff=_0x2e9d,_0x576f63={'ebclU':function(_0x40f620,_0x5b1a46,_0x2ba013){return _0x40f620(_0x5b1a46,_0x2ba013);}},_0x22e888=loadCache(),_0x2fdb86=_0x576f63['ebclU'](getOrCreateSession,_0x22e888,_0xc6349);_0x2fdb86[_0x1204ff(0xd3)]=_0x4ad615,_0x2fdb86['registeredAt']=new Date()[_0x1204ff(0xc2)](),saveCache(_0x22e888);}export function getSessionEntry(_0x2eb5a7){const _0x3968f0=_0x2e9d,_0x907de4=loadCache(),_0x51efd5=_0x907de4['sessions'][_0x2eb5a7];if(_0x51efd5?.['featureId']&&_0x51efd5?.[_0x3968f0(0xd1)])return{'featureId':_0x51efd5['featureId'],'registeredAt':_0x51efd5['registeredAt']};return null;}export function unregisterSession(_0x30b4ce){const _0x1c8e01=loadCache(),_0x13e809=_0x1c8e01['sessions'][_0x30b4ce];_0x13e809&&(delete _0x13e809['featureId'],delete _0x13e809['registeredAt'],saveCache(_0x1c8e01));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0xaefe94){const _0x12157b=_0x2e9d,_0x404fc7={'sjAdI':function(_0x3240dc,_0x1eb88a,_0x449ada){return _0x3240dc(_0x1eb88a,_0x449ada);},'XNWlP':function(_0x3c97a4,_0x56a5e5){return _0x3c97a4>=_0x56a5e5;},'eeYVS':function(_0x23e887,_0x41cb27){return _0x23e887(_0x41cb27);}},_0x2723ff=loadCache(),_0x58e88a=_0x404fc7['sjAdI'](getOrCreateSession,_0x2723ff,_0xaefe94),_0x39ece6=_0x58e88a[_0x12157b(0xbd)]||0x0,_0x122cdd=Date[_0x12157b(0xdc)]();if(_0x404fc7[_0x12157b(0xc1)](_0x122cdd-_0x39ece6,PLAN_REMINDER_INTERVAL_MS))return _0x58e88a['lastPlanReminderAt']=_0x122cdd,_0x404fc7[_0x12157b(0xbe)](saveCache,_0x2723ff),!![];return![];}export function shouldShowStopReminder(_0x461067){const _0x5df2f4=_0x2e9d,_0x2aa026={'sPZgE':function(_0x3d185e,_0x559bb9){return _0x3d185e>=_0x559bb9;}},_0x2c3d09=loadCache(),_0x3564ef=getOrCreateSession(_0x2c3d09,_0x461067),_0x449171=_0x3564ef[_0x5df2f4(0xd5)]||0x0,_0x1e3aa5=Date['now']();if(_0x2aa026['sPZgE'](_0x1e3aa5-_0x449171,STOP_REMINDER_INTERVAL_MS))return _0x3564ef[_0x5df2f4(0xd5)]=_0x1e3aa5,saveCache(_0x2c3d09),!![];return![];}export function hasSessionBeenPrompted(_0x733b7){const _0x49eaff=_0x2e9d,_0x49301e=loadCache();return _0x49301e[_0x49eaff(0xd8)][_0x733b7]?.[_0x49eaff(0xc6)]===!![];}export function markSessionPrompted(_0x39d24f){const _0x564b44=_0x2e9d,_0xe02f6b={'LmnuH':function(_0x485130){return _0x485130();},'iDkex':function(_0x26de97,_0x135a27,_0x1b6c47){return _0x26de97(_0x135a27,_0x1b6c47);}},_0x4332b9=_0xe02f6b[_0x564b44(0xd7)](loadCache),_0x16884a=_0xe02f6b['iDkex'](getOrCreateSession,_0x4332b9,_0x39d24f);_0x16884a[_0x564b44(0xc6)]=!![],saveCache(_0x4332b9);}function _0x2e9d(_0x26a375,_0x16b083){_0x26a375=_0x26a375-0xb9;const _0x541ef9=_0x541e();let _0x2e9d2c=_0x541ef9[_0x26a375];return _0x2e9d2c;}export function getCacheFile(){return CACHE_FILE;}
|
|
1
|
+
const _0x26a228=_0x2de8;(function(_0x22200e,_0x24dadb){const _0x5dadce=_0x2de8,_0x371c07=_0x22200e();while(!![]){try{const _0x40c2e7=-parseInt(_0x5dadce(0xce))/0x1+parseInt(_0x5dadce(0xd1))/0x2+parseInt(_0x5dadce(0xd3))/0x3+parseInt(_0x5dadce(0xf8))/0x4*(parseInt(_0x5dadce(0xe5))/0x5)+parseInt(_0x5dadce(0xdc))/0x6+-parseInt(_0x5dadce(0xcb))/0x7+-parseInt(_0x5dadce(0xf9))/0x8*(parseInt(_0x5dadce(0xdd))/0x9);if(_0x40c2e7===_0x24dadb)break;else _0x371c07['push'](_0x371c07['shift']());}catch(_0x20455d){_0x371c07['push'](_0x371c07['shift']());}}}(_0x3225,0xbd78c));function _0x2de8(_0x477d4c,_0x26e075){_0x477d4c=_0x477d4c-0xc8;const _0x32252e=_0x3225();let _0x2de857=_0x32252e[_0x477d4c];return _0x2de857;}import*as _0x18288d from'fs';import*as _0x392e86 from'path';import*as _0x50d671 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x392e86[_0x26a228(0xd6)](_0x50d671['homedir'](),_0x26a228(0xe8),'.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x23b092=_0x26a228;try{if(_0x18288d['existsSync'](CACHE_FILE)){const _0x2c4154=JSON['parse'](_0x18288d[_0x23b092(0xee)](CACHE_FILE,_0x23b092(0xf0)));return{'version':0x3,'sessions':_0x2c4154[_0x23b092(0xf1)]||{},'branches':_0x2c4154[_0x23b092(0xf3)]||{},'lastEnabledSessionClearedAt':_0x2c4154[_0x23b092(0xe6)]};}}catch{}return createEmptyCache();}function saveCache(_0x1a7f43){try{const _0x5acf14=_0x392e86['dirname'](CACHE_FILE);!_0x18288d['existsSync'](_0x5acf14)&&_0x18288d['mkdirSync'](_0x5acf14,{'recursive':!![]}),_0x18288d['writeFileSync'](CACHE_FILE,JSON['stringify'](_0x1a7f43,null,0x2));}catch{}}export function getCurrentBranch(){const _0x4483c6=_0x26a228,_0x228791={'vVqxX':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','ZeGfQ':'pipe','MtWLA':'HEAD'};try{const _0x468fb0=execSync(_0x228791[_0x4483c6(0xd9)],{'encoding':'utf-8','stdio':[_0x4483c6(0xdb),_0x228791[_0x4483c6(0xef)],_0x228791['ZeGfQ']]})['trim']();if(!_0x468fb0||_0x468fb0===_0x228791[_0x4483c6(0xca)])return null;return _0x468fb0;}catch{return null;}}export function enableBranch(_0x32809c){const _0x557aba=loadCache();_0x557aba['branches'][_0x32809c]=!![],saveCache(_0x557aba);}export function disableBranch(_0x3800c4){const _0x2227f9=_0x26a228,_0x1e5e12={'nDrRc':function(_0x240c49){return _0x240c49();}},_0x255dff=_0x1e5e12[_0x2227f9(0xea)](loadCache);delete _0x255dff[_0x2227f9(0xf3)][_0x3800c4],saveCache(_0x255dff);}export function isBranchEnabled(_0x10612d){const _0x13570f=_0x26a228,_0x3cb633={'MjNYG':function(_0x3b931d,_0x5ee231){return _0x3b931d===_0x5ee231;}},_0x2cb49a=loadCache();return _0x3cb633['MjNYG'](_0x2cb49a[_0x13570f(0xf3)][_0x10612d],!![]);}function getOrCreateSession(_0x360213,_0x38e3ba){const _0x42c062=_0x26a228;return!_0x360213['sessions'][_0x38e3ba]&&(_0x360213[_0x42c062(0xf1)][_0x38e3ba]={}),_0x360213['sessions'][_0x38e3ba];}export function enableSession(_0x5e90a9){const _0x13fcb3=_0x26a228,_0x105994={'upNGU':function(_0x306d46,_0x40c9a7,_0x513564){return _0x306d46(_0x40c9a7,_0x513564);},'hmBuK':function(_0x19e4a7,_0x2879f9){return _0x19e4a7!==_0x2879f9;},'LUuxP':'main'},_0x56c562=loadCache(),_0x490185=_0x105994['upNGU'](getOrCreateSession,_0x56c562,_0x5e90a9);_0x490185[_0x13fcb3(0xd4)]=!![];const _0x1f2e13=getCurrentBranch();_0x1f2e13&&_0x105994[_0x13fcb3(0xe0)](_0x1f2e13,_0x105994['LUuxP'])&&_0x1f2e13!=='master'&&(_0x56c562[_0x13fcb3(0xf3)][_0x1f2e13]=!![],_0x490185[_0x13fcb3(0xf5)]=_0x1f2e13),saveCache(_0x56c562);}export function isSessionEnabled(_0x4e8b27){const _0x32227b=_0x26a228,_0x7e9c26={'Wwgpo':function(_0x3d6b2d){return _0x3d6b2d();},'JYbGz':function(_0x19a542,_0x337520){return _0x19a542===_0x337520;}},_0x2afd83=loadCache(),_0x4e3f53=_0x7e9c26[_0x32227b(0xd0)](getCurrentBranch);if(!_0x4e3f53||_0x7e9c26[_0x32227b(0xcc)](_0x4e3f53,_0x32227b(0xf4))||_0x4e3f53==='master')return _0x7e9c26[_0x32227b(0xcc)](_0x2afd83['sessions'][_0x4e8b27]?.['enabled'],!![]);const _0x39dfba=_0x7e9c26[_0x32227b(0xcc)](_0x2afd83['branches'][_0x4e3f53],!![]),_0x52252c=_0x2afd83['sessions'][_0x4e8b27]?.['enabled']===!![];return _0x39dfba||_0x52252c;}function _0x3225(){const _0x1bcf32=['enabled','toISOString','join','LDuwP','uHDxM','vVqxX','VMlQx','pipe','8743008MtbAoW','477qovbRa','fDkbe','KepEA','hmBuK','itjgP','lyyCu','leYmT','dGXMp','5jBwOLg','lastEnabledSessionClearedAt','zCOiB','.claude','lastPlanReminderAt','nDrRc','njhnQ','mVWkA','IkcAD','readFileSync','ZeGfQ','utf-8','sessions','featureId','branches','main','currentBranch','registeredAt','mduQZ','3140828yOKpAR','116168lVNdhw','now','master','MtWLA','3593268bWaiXC','JYbGz','prompted','1549414sdWKtx','lTuto','Wwgpo','2299048ZGMMvn','foFWJ','649584BeZZDI'];_0x3225=function(){return _0x1bcf32;};return _0x3225();}export function disableSession(_0x2616f7){const _0x45145f=_0x26a228,_0x38c72c={'xWZFQ':function(_0x4572b4){return _0x4572b4();},'mduQZ':function(_0x1ba32a,_0x36895a,_0x449b63){return _0x1ba32a(_0x36895a,_0x449b63);},'mVWkA':function(_0x5394f3,_0x507cca){return _0x5394f3(_0x507cca);}},_0x31d9a5=_0x38c72c['xWZFQ'](loadCache),_0x2bafcc=_0x38c72c[_0x45145f(0xf7)](getOrCreateSession,_0x31d9a5,_0x2616f7);_0x2bafcc[_0x45145f(0xd4)]=![],_0x38c72c[_0x45145f(0xec)](saveCache,_0x31d9a5);}export function updateBranchTracking(_0x1bdfa0){const _0x481f85=_0x26a228,_0x3fd992={'VMlQx':function(_0x2159a6){return _0x2159a6();},'KepEA':function(_0x69ac55,_0x49a8a0){return _0x69ac55===_0x49a8a0;},'Qcyds':function(_0x1be60a,_0x1f7e8d){return _0x1be60a===_0x1f7e8d;},'HSzCz':function(_0x3a2546,_0x279854){return _0x3a2546(_0x279854);}},_0x57eb5e=loadCache(),_0x40d970=_0x57eb5e['sessions'][_0x1bdfa0];if(!_0x40d970?.['enabled'])return;const _0x3d3e12=_0x3fd992[_0x481f85(0xda)](getCurrentBranch);if(!_0x3d3e12||_0x3fd992[_0x481f85(0xdf)](_0x3d3e12,_0x481f85(0xf4))||_0x3fd992['Qcyds'](_0x3d3e12,_0x481f85(0xc9)))return;_0x40d970[_0x481f85(0xf5)]!==_0x3d3e12&&(_0x57eb5e['branches'][_0x3d3e12]=!![],_0x40d970['currentBranch']=_0x3d3e12,_0x3fd992['HSzCz'](saveCache,_0x57eb5e));}export function initBranchTracking(_0x4d1f1e){const _0x113a90=_0x26a228,_0x222fcc={'LDuwP':function(_0x187f13){return _0x187f13();},'leYmT':'main','MNgKZ':function(_0x1a321f,_0x3745ed){return _0x1a321f===_0x3745ed;},'rWWpY':_0x113a90(0xc9),'yOGJd':function(_0x2db5b0,_0x1409ee){return _0x2db5b0===_0x1409ee;},'lyyCu':function(_0x293eaf,_0x36a63b){return _0x293eaf(_0x36a63b);}},_0x1945de=_0x222fcc[_0x113a90(0xd7)](loadCache),_0x4f4379=getCurrentBranch();if(!_0x4f4379||_0x4f4379===_0x222fcc[_0x113a90(0xe3)]||_0x222fcc['MNgKZ'](_0x4f4379,_0x222fcc['rWWpY']))return;if(_0x222fcc['yOGJd'](_0x1945de['branches'][_0x4f4379],!![])){const _0x5b549e=getOrCreateSession(_0x1945de,_0x4d1f1e);_0x5b549e['enabled']=!![],_0x5b549e['currentBranch']=_0x4f4379,_0x222fcc[_0x113a90(0xe2)](saveCache,_0x1945de);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x56715f){const _0x59dc49=_0x26a228,_0xde39f6=loadCache(),_0x4a1a52=_0xde39f6[_0x59dc49(0xf1)][_0x56715f];_0x4a1a52?.[_0x59dc49(0xd4)]&&(_0xde39f6[_0x59dc49(0xe6)]=Date['now'](),saveCache(_0xde39f6));}export function shouldAutoEnableAfterClear(_0x20c0cf){const _0x2ecae5=_0x26a228,_0x2da1da={'yysJv':'clear','EJZrY':function(_0x41ed53,_0x55c332){return _0x41ed53-_0x55c332;},'jWbiv':function(_0x376884,_0x29d4d0){return _0x376884<=_0x29d4d0;}};if(_0x20c0cf!==_0x2da1da['yysJv'])return![];const _0x2ea6bc=loadCache(),_0x1eba3b=_0x2ea6bc[_0x2ecae5(0xe6)];if(!_0x1eba3b)return![];const _0x126e7b=_0x2da1da['EJZrY'](Date['now'](),_0x1eba3b);return _0x2da1da['jWbiv'](_0x126e7b,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x204ecc){const _0xe424a1=_0x26a228,_0x554a62={'dGXMp':function(_0x1207a5){return _0x1207a5();},'fDkbe':function(_0x7e918,_0x56f412){return _0x7e918!==_0x56f412;}},_0x30893f=_0x554a62['dGXMp'](loadCache),_0x44158f=getOrCreateSession(_0x30893f,_0x204ecc);_0x44158f[_0xe424a1(0xd4)]=!![];const _0x42252d=_0x554a62[_0xe424a1(0xe4)](getCurrentBranch);_0x42252d&&_0x554a62[_0xe424a1(0xde)](_0x42252d,'main')&&_0x42252d!==_0xe424a1(0xc9)&&(_0x44158f['currentBranch']=_0x42252d),delete _0x30893f['lastEnabledSessionClearedAt'],saveCache(_0x30893f);}export function registerSession(_0x3eb081,_0x5680a5){const _0x10aac9=_0x26a228,_0x15319a={'xWfPn':function(_0x26613a,_0x446ddb,_0x3c9fa1){return _0x26613a(_0x446ddb,_0x3c9fa1);}},_0xa279db=loadCache(),_0x17bca9=_0x15319a['xWfPn'](getOrCreateSession,_0xa279db,_0x3eb081);_0x17bca9[_0x10aac9(0xf2)]=_0x5680a5,_0x17bca9[_0x10aac9(0xf6)]=new Date()[_0x10aac9(0xd5)](),saveCache(_0xa279db);}export function getSessionEntry(_0x1435b5){const _0x48ed65={'FtpaI':function(_0x30d026){return _0x30d026();}},_0x212552=_0x48ed65['FtpaI'](loadCache),_0x502146=_0x212552['sessions'][_0x1435b5];if(_0x502146?.['featureId']&&_0x502146?.['registeredAt'])return{'featureId':_0x502146['featureId'],'registeredAt':_0x502146['registeredAt']};return null;}export function unregisterSession(_0x5d3c65){const _0x1d9d5a=_0x26a228,_0x4b6172={'kPWoy':function(_0xc34a9,_0x511d6c){return _0xc34a9(_0x511d6c);}},_0x55f8e2=loadCache(),_0x3bf427=_0x55f8e2[_0x1d9d5a(0xf1)][_0x5d3c65];_0x3bf427&&(delete _0x3bf427[_0x1d9d5a(0xf2)],delete _0x3bf427[_0x1d9d5a(0xf6)],_0x4b6172['kPWoy'](saveCache,_0x55f8e2));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x53c030){const _0x55d064=_0x26a228,_0x47eb79={'itjgP':function(_0x11c9b3,_0xa1d300){return _0x11c9b3>=_0xa1d300;},'aPMMP':function(_0x2f33dc,_0xc28180){return _0x2f33dc-_0xc28180;},'nMAkh':function(_0x29d4eb,_0x555763){return _0x29d4eb(_0x555763);}},_0x4b139e=loadCache(),_0x5a99a5=getOrCreateSession(_0x4b139e,_0x53c030),_0x50da10=_0x5a99a5[_0x55d064(0xe9)]||0x0,_0x3dfeb0=Date[_0x55d064(0xc8)]();if(_0x47eb79[_0x55d064(0xe1)](_0x47eb79['aPMMP'](_0x3dfeb0,_0x50da10),PLAN_REMINDER_INTERVAL_MS))return _0x5a99a5[_0x55d064(0xe9)]=_0x3dfeb0,_0x47eb79['nMAkh'](saveCache,_0x4b139e),!![];return![];}export function shouldShowStopReminder(_0x26dd73){const _0x50afc7=_0x26a228,_0x47f706={'foFWJ':function(_0x4a0a4b,_0x2f6a81,_0x52e28e){return _0x4a0a4b(_0x2f6a81,_0x52e28e);},'uHDxM':function(_0x12a4d6,_0x1fc9e9){return _0x12a4d6>=_0x1fc9e9;},'zTvOC':function(_0x4c76ba,_0x21f75c){return _0x4c76ba-_0x21f75c;},'IkcAD':function(_0x32d4f2,_0x5bfe21){return _0x32d4f2(_0x5bfe21);}},_0x86786d=loadCache(),_0x17b45a=_0x47f706[_0x50afc7(0xd2)](getOrCreateSession,_0x86786d,_0x26dd73),_0xd53b66=_0x17b45a['lastStopReminderAt']||0x0,_0x23705b=Date['now']();if(_0x47f706[_0x50afc7(0xd8)](_0x47f706['zTvOC'](_0x23705b,_0xd53b66),STOP_REMINDER_INTERVAL_MS))return _0x17b45a['lastStopReminderAt']=_0x23705b,_0x47f706[_0x50afc7(0xed)](saveCache,_0x86786d),!![];return![];}export function hasSessionBeenPrompted(_0x22563b){const _0x13a4f8=_0x26a228,_0x25af49={'njhnQ':function(_0x17854a){return _0x17854a();}},_0x432b26=_0x25af49[_0x13a4f8(0xeb)](loadCache);return _0x432b26['sessions'][_0x22563b]?.[_0x13a4f8(0xcd)]===!![];}export function markSessionPrompted(_0x7b08b4){const _0xdeebee=_0x26a228,_0x23983d={'lTuto':function(_0x3594f8,_0x1ea13e,_0x5784fb){return _0x3594f8(_0x1ea13e,_0x5784fb);},'zCOiB':function(_0x159dc9,_0x126cf4){return _0x159dc9(_0x126cf4);}},_0x317c4f=loadCache(),_0x1c8a66=_0x23983d[_0xdeebee(0xcf)](getOrCreateSession,_0x317c4f,_0x7b08b4);_0x1c8a66['prompted']=!![],_0x23983d[_0xdeebee(0xe7)](saveCache,_0x317c4f);}export function getCacheFile(){return CACHE_FILE;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x589602=_0x1806;(function(_0x3e2f1e,_0x239832){const _0x105ee8=_0x1806,_0xe1de7e=_0x3e2f1e();while(!![]){try{const _0x403912=parseInt(_0x105ee8(0x186))/0x1+-parseInt(_0x105ee8(0x197))/0x2+-parseInt(_0x105ee8(0x1ac))/0x3*(-parseInt(_0x105ee8(0x187))/0x4)+parseInt(_0x105ee8(0x1bb))/0x5*(parseInt(_0x105ee8(0x17f))/0x6)+-parseInt(_0x105ee8(0x1ce))/0x7*(-parseInt(_0x105ee8(0x194))/0x8)+parseInt(_0x105ee8(0x1d5))/0x9*(-parseInt(_0x105ee8(0x17e))/0xa)+parseInt(_0x105ee8(0x1ab))/0xb*(-parseInt(_0x105ee8(0x1ec))/0xc);if(_0x403912===_0x239832)break;else _0xe1de7e['push'](_0xe1de7e['shift']());}catch(_0x33ca6f){_0xe1de7e['push'](_0xe1de7e['shift']());}}}(_0x1e84,0x74737));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x1c66e5,_0x48a9ea){const _0x36baa2=_0x1806,_0x53fccd={'AemjQ':function(_0x338731,_0x538dea,_0x3e2c6e,_0x2808b2){return _0x338731(_0x538dea,_0x3e2c6e,_0x2808b2);},'YNKtP':function(_0x48f3f5,_0x29d78b,_0x25b814){return _0x48f3f5(_0x29d78b,_0x25b814);},'ZvtDv':'local','gcZHW':function(_0x5205b3,_0x554e73,_0xbba4c9){return _0x5205b3(_0x554e73,_0xbba4c9);},'FOIrC':function(_0x9a8a25,_0x3c2046){return _0x9a8a25(_0x3c2046);},'oKPZM':function(_0x4a0842,_0x55cd82){return _0x4a0842!==_0x55cd82;}},_0x2a53f8=join(_0x48a9ea,'ci',_0x1c66e5),_0x37f7bb=_0x53fccd['AemjQ'](join,_0x48a9ea,'local',_0x1c66e5),_0xecd2b4=join(_0x48a9ea,_0x1c66e5),_0x2b0f8b=_0x53fccd[_0x36baa2(0x1c5)](join,_0x48a9ea,_0x53fccd[_0x36baa2(0x1b1)]),_0x227586=_0x53fccd['gcZHW'](join,_0x48a9ea,'ci');if(existsSync(_0x2a53f8))return _0x2a53f8;if(existsSync(_0x37f7bb))return _0x37f7bb;if(_0x53fccd['FOIrC'](existsSync,_0xecd2b4)&&(_0x53fccd['oKPZM'](_0xecd2b4,_0x2b0f8b)&&_0xecd2b4!==_0x227586?!![]:hasLegacyProfileFiles(_0xecd2b4)))return _0xecd2b4;return null;}export function getEnvDir(_0x2a451c,_0x2a5f90={}){const _0x1e8c64=_0x1806,_0x248022={'jdqEI':function(_0x4f3d8f){return _0x4f3d8f();},'ZLboj':function(_0x145ded,_0x4efd2a,_0x212467){return _0x145ded(_0x4efd2a,_0x212467);},'usHVd':function(_0x2f3b5f,_0x3ac2d8,_0x22c431){return _0x2f3b5f(_0x3ac2d8,_0x22c431);},'aAQTY':function(_0x492afa,_0x100db1){return _0x492afa(_0x100db1);},'VThAd':function(_0x587c1d,_0x15d077,_0x58d2a1,_0x3a7b33){return _0x587c1d(_0x15d077,_0x58d2a1,_0x3a7b33);},'eVmIs':_0x1e8c64(0x1a7)},_0x1abf28=_0x248022['jdqEI'](getRangerDir),_0xefd81a=_0x248022['ZLboj'](findEnvInRoot,_0x2a451c,_0x1abf28);if(_0xefd81a){if(_0x2a5f90['forWrite']&&isLegacyEnvPath(_0xefd81a))throw _0x248022[_0x1e8c64(0x1ba)](legacyWriteError,_0x2a451c,_0xefd81a);return _0xefd81a;}const _0x36b6e9=getRangerHomeDir();if(_0x36b6e9!==_0x1abf28){const _0x35d6f0=_0x248022[_0x1e8c64(0x19e)](findEnvInRoot,_0x2a451c,_0x36b6e9);if(_0x35d6f0){if(_0x2a5f90['forWrite']&&_0x248022[_0x1e8c64(0x1a5)](isLegacyEnvPath,_0x35d6f0))throw _0x248022['ZLboj'](legacyWriteError,_0x2a451c,_0x35d6f0);return _0x35d6f0;}}const _0x3217a3=_0x248022[_0x1e8c64(0x1f2)](join,_0x36b6e9,_0x248022['eVmIs'],_0x2a451c);if(_0x2a5f90[_0x1e8c64(0x19a)])throw legacyWriteError(_0x2a451c,_0x3217a3);return _0x3217a3;}function isLegacyEnvPath(_0x307a8c){const _0x30c53c=_0x1806,_0x17bc1b={'VlwTH':function(_0x2cd729){return _0x2cd729();},'ZVQqu':function(_0x520a80,_0x1b1355){return _0x520a80===_0x1b1355;}},_0x145b53=_0x17bc1b['VlwTH'](getRangerDir),_0x4024e9=getRangerHomeDir();for(const _0x11f98a of new Set([_0x145b53,_0x4024e9])){const _0x9ed457=_0x11f98a['endsWith']('/')?_0x11f98a:_0x11f98a+'/';if(_0x17bc1b[_0x30c53c(0x1c4)](_0x307a8c,_0x11f98a)||_0x307a8c[_0x30c53c(0x1be)](_0x9ed457))return!![];}return![];}function legacyWriteError(_0xd09509,_0x2e7f47){const _0x1fb94f=_0x1806,_0x241e07={'bauRN':function(_0x33d602,_0x401bd1){return _0x33d602+_0x401bd1;}};return new Error(_0x241e07['bauRN']('Refusing\x20to\x20write\x20profile\x20\x22'+_0xd09509+_0x1fb94f(0x1e9)+_0x2e7f47+'.\x0a'+'That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a'+_0x1fb94f(0x1bc),_0x1fb94f(0x1ea)));}function _0x1806(_0x233b9a,_0x3d1885){_0x233b9a=_0x233b9a-0x17e;const _0x1e8409=_0x1e84();let _0x180658=_0x1e8409[_0x233b9a];return _0x180658;}export function findExistingEnv(_0x3133a8,_0x4a7dc8){const _0x1aaf68=_0x1806,_0x4904c8={'ORKzQ':function(_0x3f0805){return _0x3f0805();},'sbxEt':function(_0x3805c8,_0x297c0a,_0x27debf){return _0x3805c8(_0x297c0a,_0x27debf);},'SfrEI':function(_0x44e14f,_0x3077b5,_0x22a8c){return _0x44e14f(_0x3077b5,_0x22a8c);},'TOKut':function(_0x4eb30b,_0x313fe6,_0x1563c6,_0x152f7f){return _0x4eb30b(_0x313fe6,_0x1563c6,_0x152f7f);},'lphNo':function(_0x8bbba7,_0x37ab0e,_0x17678e,_0x573396){return _0x8bbba7(_0x37ab0e,_0x17678e,_0x573396);},'flMLt':'local','McjRd':'legacy','ZfYfM':function(_0xbe473b,_0x20eb9c){return _0xbe473b===_0x20eb9c;}},_0x452edb=_0x4a7dc8?.['rangerDir'],_0x474ac9=_0x452edb?[_0x452edb]:[_0x4904c8['ORKzQ'](getRangerDir),getRangerHomeDir()]['filter']((_0x37e052,_0x57492d,_0x1b0569)=>_0x1b0569[_0x1aaf68(0x196)](_0x37e052)===_0x57492d),_0x41c41a=_0x4a7dc8?.[_0x1aaf68(0x18f)]??['ci','local',_0x1aaf68(0x1cb)];for(const _0x2b917e of _0x474ac9){const _0x5557f6=_0x4904c8['sbxEt'](join,_0x2b917e,_0x1aaf68(0x1a7)),_0x277d98=_0x4904c8['SfrEI'](join,_0x2b917e,'ci'),_0x4da8f0=[{'location':'ci','path':_0x4904c8['TOKut'](join,_0x2b917e,'ci',_0x3133a8)},{'location':'local','path':_0x4904c8['lphNo'](join,_0x2b917e,_0x4904c8[_0x1aaf68(0x1e1)],_0x3133a8)},{'location':_0x4904c8[_0x1aaf68(0x1f4)],'path':join(_0x2b917e,_0x3133a8)}];for(const _0x4d93f6 of _0x4da8f0){if(_0x41c41a[_0x1aaf68(0x1dd)](_0x4d93f6[_0x1aaf68(0x18a)])&&existsSync(_0x4d93f6[_0x1aaf68(0x1c9)])){if(_0x4904c8[_0x1aaf68(0x19f)](_0x4d93f6['location'],'legacy')&&(_0x4904c8[_0x1aaf68(0x19f)](_0x4d93f6['path'],_0x5557f6)||_0x4904c8['ZfYfM'](_0x4d93f6[_0x1aaf68(0x1c9)],_0x277d98))&&!hasLegacyProfileFiles(_0x4d93f6['path']))continue;return{'path':_0x4d93f6['path'],'location':_0x4d93f6['location']};}}}return null;}function hasLegacyProfileFiles(_0x4534aa){const _0x11e1b9=_0x1806,_0x43be9f={'ZAQJO':function(_0xdae451,_0x2d20c7){return _0xdae451(_0x2d20c7);},'XrimM':function(_0xe0c192,_0x3ec121,_0x5cd599){return _0xe0c192(_0x3ec121,_0x5cd599);},'aRuyy':'auth.json.enc'};return _0x43be9f['ZAQJO'](existsSync,_0x43be9f['XrimM'](join,_0x4534aa,_0x11e1b9(0x1d3)))||_0x43be9f['ZAQJO'](existsSync,_0x43be9f['XrimM'](join,_0x4534aa,_0x11e1b9(0x1ef)))||existsSync(join(_0x4534aa,_0x43be9f['aRuyy']));}export function isEnvCi(_0x7f253d){const _0xf2bd47=_0x1806,_0x268653={'WZwID':function(_0xafb55a){return _0xafb55a();},'fahyC':function(_0x3be276,_0x1d5b59){return _0x3be276!==_0x1d5b59;},'YmpyS':function(_0x3f5d86,_0x370f9c){return _0x3f5d86(_0x370f9c);}};if(existsSync(join(_0x268653[_0xf2bd47(0x180)](getRangerDir),'ci',_0x7f253d)))return!![];const _0x5174f4=getRangerHomeDir();if(_0x268653[_0xf2bd47(0x1cd)](_0x5174f4,_0x268653[_0xf2bd47(0x180)](getRangerDir))&&_0x268653['YmpyS'](existsSync,join(_0x5174f4,'ci',_0x7f253d)))return!![];return![];}export async function cleanupTempFiles(_0x496e33){const _0x251b3e=_0x1806,_0x1f4fde={'lnbmO':function(_0x26c70e,_0x2aa968){return _0x26c70e!==_0x2aa968;}},_0x4387c7=[_0x496e33[_0x251b3e(0x1f1)],_0x496e33['configPath']][_0x251b3e(0x19b)](Boolean);await Promise['all'](_0x4387c7[_0x251b3e(0x1f5)](_0xfa52dc=>unlink(_0xfa52dc)['catch'](_0x3acc8d=>{const _0x1a85e4=_0x251b3e;_0x1f4fde['lnbmO'](_0x3acc8d['code'],_0x1a85e4(0x183))&&console[_0x1a85e4(0x192)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0xfa52dc+':',_0x3acc8d[_0x1a85e4(0x1c6)]);})));}export function getSettingsPath(_0x265778){return join(getEnvDir(_0x265778),'settings.json');}export async function loadSettings(_0x412287){const _0x403625=_0x1806,_0x1f5fc1={'ulMmB':function(_0x16342f,_0x1b7ede){return _0x16342f(_0x1b7ede);},'zQUlS':function(_0x1f9afd,_0x4e9b8f,_0xa1fbf7){return _0x1f9afd(_0x4e9b8f,_0xa1fbf7);},'PTEaz':'utf-8'},_0x5087b9=_0x1f5fc1[_0x403625(0x1d6)](getSettingsPath,_0x412287);if(!_0x1f5fc1['ulMmB'](existsSync,_0x5087b9))return{};try{const _0x645801=await _0x1f5fc1[_0x403625(0x1a3)](readFile,_0x5087b9,_0x1f5fc1[_0x403625(0x1c7)]);return JSON['parse'](_0x645801);}catch{return{};}}export async function saveSettings(_0x5f1c00,_0x5c3cf4){const _0x39ba4d=_0x1806,_0x36ecf0={'WsJlv':function(_0x1adc89,_0x5e3200){return _0x1adc89(_0x5e3200);}},_0x2fbfde=_0x36ecf0[_0x39ba4d(0x1d9)](getSettingsPath,_0x5f1c00),_0x5215fb=_0x36ecf0[_0x39ba4d(0x1d9)](dirname,_0x2fbfde);!_0x36ecf0[_0x39ba4d(0x1d9)](existsSync,_0x5215fb)&&await mkdir(_0x5215fb,{'recursive':!![]}),await writeFile(_0x2fbfde,JSON[_0x39ba4d(0x1ae)](_0x5c3cf4,null,0x2));}export function resolveEnvVars(_0x5f5377){const _0x41c0ba=_0x1806,_0x2dad79={'PCbUk':function(_0x772ab2,_0x3d1bdc){return _0x772ab2===_0x3d1bdc;},'oUnLw':'object'};if(typeof _0x5f5377==='string')return _0x5f5377['replace'](/\$\{(\w+)\}/g,(_0x414bb5,_0x10ff76)=>{const _0x1efd43=_0x1806,_0xaad494=process[_0x1efd43(0x1f3)][_0x10ff76];if(_0xaad494===undefined)throw new Error('Environment\x20variable\x20'+_0x10ff76+_0x1efd43(0x1bf));return _0xaad494;});if(Array['isArray'](_0x5f5377))return _0x5f5377[_0x41c0ba(0x1f5)](resolveEnvVars);if(_0x5f5377&&_0x2dad79['PCbUk'](typeof _0x5f5377,_0x2dad79['oUnLw']))return Object['fromEntries'](Object['entries'](_0x5f5377)['map'](([_0xde1f22,_0x3f81fa])=>[_0xde1f22,resolveEnvVars(_0x3f81fa)]));return _0x5f5377;}function _0x1e84(){const _0x4fd4c6=['headers','zQUlS','PcXNj','aAQTY','tkGQM','local','hBBfk','install','eYrbD','1144bwwqyd','1599vBccys','YSUwk','stringify','file','clipboard-write','ZvtDv','object','--no-sandbox','contextOptions','push','glvpU','sessions','isArray','pdf','usHVd','160PeCght','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','SfFxy','startsWith','\x20is\x20not\x20set','extraHTTPHeaders','Pozgb','JIAfc','--unsafely-treat-insecure-origin-as-secure=http://localhost','ZVQqu','YNKtP','message','PTEaz','cdpEndpoint','path','storageState','legacy','string','fahyC','7YqEjdQ','sWiml','YZeRj','clipboard-read','join','settings.json','VVARz','112986PIvhre','ulMmB','KRjwD','xTGZp','WsJlv','headless','stagehand','storageStatePath','includes','catch','nbsHK','lxtyo','flMLt','Iadeh','emdkP','xaDkp','IksxB','header','launchOptions','ranger-auth-','\x22\x20to\x20legacy\x20path\x20','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','eqCuy','141576WsVXla','IhXzR','entries','auth.json','--allow-insecure-localhost','tempAuthPath','VThAd','env','McjRd','map','250Fdhxin','162858olYdpM','WZwID','hvGKG','XSRyz','ENOENT','setupHeaders','core','512338raDglG','3652wBSJol','PsFhJ','kyoQT','location','repeat','allowInsecureLocalhost','split','DLBqv','locations','chromium','vision','warn','tabs','4576936mtKpqF','getuid','indexOf','843670CogQaH','YNruj','MgTZD','forWrite','filter','lagux','setupHeader','ZLboj','ZfYfM','args','length'];_0x1e84=function(){return _0x4fd4c6;};return _0x1e84();}const isRecord=_0x5042db=>typeof _0x5042db===_0x589602(0x1b2)&&_0x5042db!==null&&!Array[_0x589602(0x1b8)](_0x5042db),asRecord=_0x2871da=>isRecord(_0x2871da)?_0x2871da:undefined,mergeHeaders=(_0x47db99,_0x4c61ea)=>{const _0x1b5b22=_0x589602,_0x173b54={'emdkP':function(_0x2d898c,_0x278beb){return _0x2d898c??_0x278beb;}},_0x5eb0bd={..._0x47db99??{},..._0x173b54[_0x1b5b22(0x1e3)](_0x4c61ea,{})};return Object['keys'](_0x5eb0bd)['length']?_0x5eb0bd:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content',_0x589602(0x1c3),_0x589602(0x1f0)];export function buildBrowserOptionsFromSettings(_0x5ccc18,_0x3b5f65={}){const _0x19b81f=_0x589602,_0x55b58e={'QGBjY':function(_0x3f01e2,_0x77f1d){return _0x3f01e2===_0x77f1d;},'DLBqv':function(_0x159877,_0x30fd22){return _0x159877(_0x30fd22);},'erYae':function(_0xaa36d9,_0x4339d9,_0x4ef678){return _0xaa36d9(_0x4339d9,_0x4ef678);},'yYJap':function(_0x210d92,_0x1407fa){return _0x210d92(_0x1407fa);},'IhXzR':function(_0xf88a22,_0x2408c9){return _0xf88a22(_0x2408c9);}},_0x1128d5=asRecord(_0x5ccc18['browser']),_0x140417={...asRecord(_0x1128d5?.[_0x19b81f(0x1e7)])??{}};_0x55b58e['QGBjY'](typeof _0x3b5f65[_0x19b81f(0x1da)],'boolean')&&(_0x140417['headless']=_0x3b5f65['headless']);if(_0x5ccc18['safeMode']){const _0x43ddef=_0x140417['args']??[],_0x41ba70=SAFE_MODE_ARGS['filter'](_0x1584ca=>!_0x43ddef[_0x19b81f(0x1dd)](_0x1584ca));_0x140417[_0x19b81f(0x1a0)]=[..._0x43ddef,..._0x41ba70];}if(_0x5ccc18[_0x19b81f(0x18c)]){const _0x439ba6=_0x140417['args']??[],_0x13f53c=ALLOW_LOCALHOST_ARGS[_0x19b81f(0x19b)](_0x338d4b=>!_0x439ba6[_0x19b81f(0x1dd)](_0x338d4b));_0x140417['args']=[..._0x439ba6,..._0x13f53c];}const _0x55c92b={..._0x55b58e[_0x19b81f(0x18e)](asRecord,_0x1128d5?.[_0x19b81f(0x1b4)])??{}};_0x55c92b['ignoreHTTPSErrors']=!![];typeof _0x5ccc18['userAgent']===_0x19b81f(0x1cc)&&(_0x55c92b['userAgent']=_0x5ccc18['userAgent']);const _0x5bdd52=_0x55b58e['erYae'](mergeHeaders,_0x55b58e['yYJap'](asRecord,_0x55c92b[_0x19b81f(0x1c0)]),_0x55b58e[_0x19b81f(0x1ed)](asRecord,_0x5ccc18[_0x19b81f(0x1a2)]));return _0x5bdd52?_0x55c92b['extraHTTPHeaders']=_0x5bdd52:delete _0x55c92b[_0x19b81f(0x1c0)],_0x3b5f65[_0x19b81f(0x1dc)]&&(_0x55c92b[_0x19b81f(0x1ca)]=_0x3b5f65[_0x19b81f(0x1dc)]),{'launchOptions':_0x140417,'contextOptions':_0x55c92b};}async function resolveLocalAuthPath(_0x3b3e1c){const _0x4ca576=_0x589602,_0xc142e9={'MgTZD':_0x4ca576(0x1ef),'VVARz':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','xtfGw':function(_0x2155b5,_0x528984){return _0x2155b5(_0x528984);},'gDvUo':function(_0x343b94){return _0x343b94();},'KLdPS':function(_0x23dd4b,_0x25d44b,_0x30d8fd){return _0x23dd4b(_0x25d44b,_0x30d8fd);},'glvpU':function(_0x471e13,_0x19fbd8){return _0x471e13 instanceof _0x19fbd8;},'NbUNp':function(_0x3d1870,_0x580fa1){return _0x3d1870(_0x580fa1);},'mwIqE':function(_0x1e7037,_0x2fda48){return _0x1e7037(_0x2fda48);}},_0x3a06f5=join(_0x3b3e1c,'auth.json.enc'),_0x46c8af=join(_0x3b3e1c,_0xc142e9[_0x4ca576(0x199)]);if(existsSync(_0x3a06f5))try{const _0x406de0=await getToken();if(!_0x406de0)throw new Error(_0xc142e9[_0x4ca576(0x1d4)]);const _0x3546e0=await _0xc142e9['xtfGw'](readFile,_0x3a06f5),_0x4d9dd0=decrypt(_0x3546e0,_0x406de0),_0xae71c8=join(_0xc142e9['gDvUo'](tmpdir),_0x4ca576(0x1e8)+Date['now']()+'.json');return await _0xc142e9['KLdPS'](writeFile,_0xae71c8,_0x4d9dd0),{'storageStatePath':_0xae71c8,'tempAuthPath':_0xae71c8};}catch(_0x36f469){const _0x5a4f48=_0xc142e9[_0x4ca576(0x1b6)](_0x36f469,Error)?_0x36f469['message']:_0xc142e9['NbUNp'](String,_0x36f469);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x5a4f48);}if(_0xc142e9['mwIqE'](existsSync,_0x46c8af))return{'storageStatePath':_0x46c8af};return{};}export async function buildPlaywrightConfig(_0x444720,_0x5bbbbf,_0x541ed9,_0x54aa4f,_0x38057e){const _0x10d235=_0x589602,_0x5f0e98={'xTGZp':function(_0x1d53f6,_0x4a4dcb,_0x4ee048,_0x440995,_0x476ec3,_0x43d791,_0x28f716){return _0x1d53f6(_0x4a4dcb,_0x4ee048,_0x440995,_0x476ec3,_0x43d791,_0x28f716);},'IksxB':'stagehand','VXuDq':function(_0x2291c6,_0x2f3b9a){return _0x2291c6(_0x2f3b9a);},'Pozgb':function(_0x128984,_0x5a6945){return _0x128984(_0x5a6945);},'kyoQT':function(_0x73ceb4,_0x33b213){return _0x73ceb4(_0x33b213);}};if(_0x38057e)return _0x5f0e98[_0x10d235(0x1d8)](buildPlaywrightConfigCore,_0x444720,_0x38057e,_0x5bbbbf,_0x541ed9,_0x54aa4f,_0x5f0e98[_0x10d235(0x1e5)]);const {storageStatePath:_0x393658,tempAuthPath:_0x56f5bf}=await _0x5f0e98['VXuDq'](resolveLocalAuthPath,_0x5f0e98[_0x10d235(0x1c1)](getEnvDir,_0x5bbbbf));try{const _0x3a2240=await _0x5f0e98['xTGZp'](buildPlaywrightConfigCore,_0x444720,_0x393658,_0x5bbbbf,_0x541ed9,_0x54aa4f,'stagehand');return{..._0x3a2240,'tempAuthPath':_0x56f5bf};}catch(_0x716017){_0x56f5bf&&await _0x5f0e98[_0x10d235(0x189)](unlink,_0x56f5bf)[_0x10d235(0x1de)](()=>{});throw _0x716017;}}export async function buildPlaywrightConfigCore(_0x2f727d,_0x678168,_0x265e70,_0x208520,_0x32fb45,_0x10d964=_0x589602(0x1db)){const _0xb4181e=_0x589602,_0x2670b3={'oLumU':_0xb4181e(0x1b3),'PcXNj':_0xb4181e(0x190),'Iadeh':_0xb4181e(0x1d1),'SfFxy':_0xb4181e(0x1b0),'lxtyo':function(_0xb2789){return _0xb2789();},'nbsHK':_0xb4181e(0x1b7),'lagux':function(_0x2a94a4,_0x3d95f3){return _0x2a94a4(_0x3d95f3);},'fIiJl':function(_0x54dac2,_0x36f1b5){return _0x54dac2===_0x36f1b5;},'hBBfk':_0xb4181e(0x1af),'PbOPR':_0xb4181e(0x185),'IiXxT':_0xb4181e(0x191),'rEZUS':function(_0x222ff6,_0x3ffff0){return _0x222ff6===_0x3ffff0;},'eqCuy':function(_0x211863,_0x19b117,_0x4efd24){return _0x211863(_0x19b117,_0x4efd24);},'AjZvx':function(_0x37483f,_0xab7733){return _0x37483f===_0xab7733;},'TVgdQ':'playwright-cli','YNruj':'-cli','uANcy':function(_0x42881f,_0xf03785,_0x1dbe5a){return _0x42881f(_0xf03785,_0x1dbe5a);}},_0x1cdcfd=_0x208520||randomUUID(),_0x28a58d=join(_0x2670b3['lxtyo'](getRangerDir),_0x2670b3[_0xb4181e(0x1df)],_0x1cdcfd),_0x3c9566=_0x2670b3[_0xb4181e(0x19c)](Boolean,_0x2f727d[_0xb4181e(0x1c8)]),_0x2bf349=_0x3c9566?{'browserName':'chromium','cdpEndpoint':_0x2f727d[_0xb4181e(0x1c8)]}:((()=>{const _0x194023=_0xb4181e,{launchOptions:_0xa5c253,contextOptions:_0x1d3dea}=buildBrowserOptionsFromSettings(_0x2f727d,{'headless':_0x32fb45?![]:_0x2f727d['headless']??!![],'storageStatePath':_0x678168});if(process[_0x194023(0x195)]?.()===0x0){const _0x1b2077=[_0x2670b3['oLumU'],'--disable-setuid-sandbox'],_0x23388b=_0xa5c253['args']??[],_0x23a986=_0x1b2077['filter'](_0x4ee718=>!_0x23388b[_0x194023(0x1dd)](_0x4ee718));_0xa5c253[_0x194023(0x1a0)]=[..._0x23388b,..._0x23a986];}return{'isolated':!![],'browserName':_0x2670b3[_0x194023(0x1a4)],'launchOptions':_0xa5c253,'contextOptions':{..._0x1d3dea,'permissions':[_0x2670b3[_0x194023(0x1e2)],_0x2670b3[_0x194023(0x1bd)]],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x21bb90=_0x2670b3['fIiJl'](_0x10d964,'playwright-cli')?{'browser':_0x2bf349,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x28a58d,'outputMode':_0x2670b3[_0xb4181e(0x1a8)],'codegen':'none'}:{'name':_0x265e70,'browser':_0x2bf349,'capabilities':[_0x2670b3['PbOPR'],_0xb4181e(0x193),_0xb4181e(0x1a9),_0xb4181e(0x1b9),_0x2670b3['IiXxT']],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x28a58d};if(!_0x3c9566){const _0x2792a2=_0x21bb90['browser'],_0x16e75d=_0x2792a2['contextOptions'];if(_0x16e75d['userAgent']===undefined)delete _0x16e75d['userAgent'];if(_0x2670b3['rEZUS'](_0x16e75d[_0xb4181e(0x1ca)],undefined))delete _0x16e75d[_0xb4181e(0x1ca)];}const _0x267a17=_0x2670b3[_0xb4181e(0x1eb)](join,_0x2670b3[_0xb4181e(0x1e0)](tmpdir),'ranger-config');!existsSync(_0x267a17)&&await mkdir(_0x267a17,{'recursive':!![]});const _0x1f9fab=_0x2670b3['AjZvx'](_0x10d964,_0x2670b3['TVgdQ'])?_0x2670b3[_0xb4181e(0x198)]:'',_0x2116ee=_0x2670b3['uANcy'](join,_0x267a17,_0x265e70+'-'+Date['now']()+_0x1f9fab+'.json');return await writeFile(_0x2116ee,JSON[_0xb4181e(0x1ae)](_0x21bb90,null,0x2)),{'configPath':_0x2116ee};}export async function buildPlaywrightCliConfig(_0x5f5a68,_0x32d6c3,_0x724117,_0x3d54c8,_0x679863){const _0x1b7fe1=_0x589602,_0x1eb150={'DVyeH':function(_0x3a1664,_0x41eeea,_0x1197ce,_0x340f6f,_0xcf8dde,_0x140b76,_0x1c5ac1){return _0x3a1664(_0x41eeea,_0x1197ce,_0x340f6f,_0xcf8dde,_0x140b76,_0x1c5ac1);},'XSRyz':'playwright-cli','PsFhJ':function(_0x1daad0,_0x39a664){return _0x1daad0(_0x39a664);}};if(_0x679863)return _0x1eb150['DVyeH'](buildPlaywrightConfigCore,_0x5f5a68,_0x679863,_0x32d6c3,_0x724117,_0x3d54c8,_0x1eb150['XSRyz']);const {storageStatePath:_0x47d3fb,tempAuthPath:_0x10bdef}=await _0x1eb150[_0x1b7fe1(0x188)](resolveLocalAuthPath,_0x1eb150[_0x1b7fe1(0x188)](getEnvDir,_0x32d6c3));try{const _0x4e0fc6=await buildPlaywrightConfigCore(_0x5f5a68,_0x47d3fb,_0x32d6c3,_0x724117,_0x3d54c8,_0x1eb150[_0x1b7fe1(0x182)]);return{..._0x4e0fc6,'tempAuthPath':_0x10bdef};}catch(_0x55aecf){_0x10bdef&&await _0x1eb150['PsFhJ'](unlink,_0x10bdef)[_0x1b7fe1(0x1de)](()=>{});throw _0x55aecf;}}export function getNestedValue(_0x224f74,_0x6046b7){const _0x5499d2=_0x589602,_0x2b3b5b=parseKeyPath(_0x6046b7);let _0x28ac71=_0x224f74;for(const _0x506200 of _0x2b3b5b){if(_0x28ac71===null||_0x28ac71===undefined||typeof _0x28ac71!==_0x5499d2(0x1b2))return undefined;_0x28ac71=_0x28ac71[_0x506200];}return _0x28ac71;}export function setNestedValue(_0x947bb5,_0x44fddd,_0x310239){const _0xe0b965=_0x589602,_0x57d0ba={'oVMsv':function(_0xde6543,_0xbfe1b4){return _0xde6543(_0xbfe1b4);},'oVIIk':function(_0x2cea35,_0xd4c1f7){return _0x2cea35 in _0xd4c1f7;},'BtzCT':function(_0xbbccee,_0x3540ab){return _0xbbccee-_0x3540ab;}},_0x41ef81=_0x57d0ba['oVMsv'](parseKeyPath,_0x44fddd);let _0x54bcc8=_0x947bb5;for(let _0x410dac=0x0;_0x410dac<_0x41ef81[_0xe0b965(0x1a1)]-0x1;_0x410dac++){const _0x27d6a0=_0x41ef81[_0x410dac];(!_0x57d0ba['oVIIk'](_0x27d6a0,_0x54bcc8)||typeof _0x54bcc8[_0x27d6a0]!=='object')&&(_0x54bcc8[_0x27d6a0]={}),_0x54bcc8=_0x54bcc8[_0x27d6a0];}_0x54bcc8[_0x41ef81[_0x57d0ba['BtzCT'](_0x41ef81['length'],0x1)]]=_0x310239;}export function deleteNestedValue(_0xd97d33,_0x47accc){const _0x2847d8=_0x589602,_0x29ce7b={'hvGKG':function(_0x2f1707,_0x23133b){return _0x2f1707(_0x23133b);},'eYrbD':function(_0x247450,_0x14bfaf){return _0x247450<_0x14bfaf;},'xaDkp':function(_0x2d954b,_0x4f8750){return _0x2d954b-_0x4f8750;},'YZeRj':function(_0x3c0459,_0x5cd423){return _0x3c0459===_0x5cd423;},'tkGQM':function(_0x547fc7,_0x2d7b82){return _0x547fc7===_0x2d7b82;},'YSUwk':function(_0x174366,_0x39d291){return _0x174366!==_0x39d291;},'TPviB':'object'},_0x5f070d=_0x29ce7b[_0x2847d8(0x181)](parseKeyPath,_0x47accc);let _0x502b84=_0xd97d33;for(let _0x333480=0x0;_0x29ce7b[_0x2847d8(0x1aa)](_0x333480,_0x29ce7b[_0x2847d8(0x1e4)](_0x5f070d[_0x2847d8(0x1a1)],0x1));_0x333480++){if(_0x29ce7b[_0x2847d8(0x1d0)](_0x502b84,null)||_0x29ce7b[_0x2847d8(0x1a6)](_0x502b84,undefined)||_0x29ce7b[_0x2847d8(0x1ad)](typeof _0x502b84,_0x29ce7b['TPviB']))return![];_0x502b84=_0x502b84[_0x5f070d[_0x333480]];}if(_0x502b84===null||_0x502b84===undefined||_0x29ce7b['YSUwk'](typeof _0x502b84,'object'))return![];const _0x18469a=_0x5f070d[_0x5f070d[_0x2847d8(0x1a1)]-0x1];if(_0x18469a in _0x502b84)return delete _0x502b84[_0x18469a],!![];return![];}function parseKeyPath(_0x2b9b02){const _0x4b06a2=_0x589602,_0x1a6211={'sWiml':function(_0x41ef78,_0x110b3f){return _0x41ef78===_0x110b3f;},'dPqiE':_0x4b06a2(0x1e6),'FPZhV':_0x4b06a2(0x19d),'axMrA':_0x4b06a2(0x184)},_0x2c9819=_0x2b9b02[_0x4b06a2(0x18d)]('.');return _0x1a6211[_0x4b06a2(0x1cf)](_0x2c9819[0x0],_0x1a6211['dPqiE'])&&(_0x2c9819[0x0]='headers'),_0x1a6211['sWiml'](_0x2c9819[0x0],_0x1a6211['FPZhV'])&&(_0x2c9819[0x0]=_0x1a6211['axMrA']),_0x2c9819;}export function formatSettings(_0x3b005e,_0x247b54=0x0){const _0x480e0b=_0x589602,_0x24f63a={'JIAfc':function(_0x5f17bc,_0xe86378){return _0x5f17bc===_0xe86378;},'KRjwD':function(_0x3d3932,_0x3aab35){return _0x3d3932===_0x3aab35;},'mCENu':_0x480e0b(0x1b2)},_0x36e74c=[],_0x2a1bbe='\x20\x20'[_0x480e0b(0x18b)](_0x247b54);for(const [_0x2a9dd6,_0x41efc1]of Object[_0x480e0b(0x1ee)](_0x3b005e)){if(_0x24f63a[_0x480e0b(0x1c2)](_0x41efc1,undefined))continue;if(_0x24f63a[_0x480e0b(0x1d7)](typeof _0x41efc1,_0x24f63a['mCENu'])&&_0x41efc1!==null){_0x36e74c[_0x480e0b(0x1b5)](''+_0x2a1bbe+_0x2a9dd6+':');for(const [_0x1b6640,_0xab0b65]of Object['entries'](_0x41efc1)){_0x36e74c['push'](_0x2a1bbe+'\x20\x20'+_0x1b6640+':\x20'+_0xab0b65);}}else _0x36e74c['push'](''+_0x2a1bbe+_0x2a9dd6+':\x20'+_0x41efc1);}return _0x36e74c[_0x480e0b(0x1d2)]('\x0a');}
|
|
1
|
+
const _0x5b1811=_0x5b85;(function(_0x4c5598,_0x438a7d){const _0x48ad2f=_0x5b85,_0x3e2fa7=_0x4c5598();while(!![]){try{const _0x4102d6=parseInt(_0x48ad2f(0xe9))/0x1+-parseInt(_0x48ad2f(0xce))/0x2+parseInt(_0x48ad2f(0xc2))/0x3+-parseInt(_0x48ad2f(0xdf))/0x4+-parseInt(_0x48ad2f(0xf0))/0x5*(-parseInt(_0x48ad2f(0xea))/0x6)+parseInt(_0x48ad2f(0xc4))/0x7*(parseInt(_0x48ad2f(0xb4))/0x8)+-parseInt(_0x48ad2f(0xc7))/0x9;if(_0x4102d6===_0x438a7d)break;else _0x3e2fa7['push'](_0x3e2fa7['shift']());}catch(_0x1a6e91){_0x3e2fa7['push'](_0x3e2fa7['shift']());}}}(_0x5b1f,0x2ce9f));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';function _0x5b85(_0x9dc27c,_0x5dd8d5){_0x9dc27c=_0x9dc27c-0x9d;const _0x5b1fc2=_0x5b1f();let _0x5b8539=_0x5b1fc2[_0x9dc27c];return _0x5b8539;}import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0xfaeeb8,_0x353064){const _0x280b3d=_0x5b85,_0x7a8f8b={'cQcvD':function(_0x1429d1,_0x1c5845,_0x16c8d7,_0x466dc8){return _0x1429d1(_0x1c5845,_0x16c8d7,_0x466dc8);},'MNdHq':function(_0x3de07d,_0x3720c0,_0x41807e,_0x28fedf){return _0x3de07d(_0x3720c0,_0x41807e,_0x28fedf);},'Tthhc':_0x280b3d(0xcd),'COdEn':function(_0x1c4300,_0x54740a){return _0x1c4300(_0x54740a);}},_0x15d43f=_0x7a8f8b['cQcvD'](join,_0x353064,'ci',_0xfaeeb8),_0x6b83dc=_0x7a8f8b[_0x280b3d(0xa7)](join,_0x353064,_0x7a8f8b['Tthhc'],_0xfaeeb8),_0x3a4e14=join(_0x353064,_0xfaeeb8),_0x4824a5=join(_0x353064,_0x7a8f8b['Tthhc']),_0x544ca4=join(_0x353064,'ci');if(existsSync(_0x15d43f))return _0x15d43f;if(_0x7a8f8b['COdEn'](existsSync,_0x6b83dc))return _0x6b83dc;if(_0x7a8f8b['COdEn'](existsSync,_0x3a4e14)&&(_0x3a4e14!==_0x4824a5&&_0x3a4e14!==_0x544ca4?!![]:hasLegacyProfileFiles(_0x3a4e14)))return _0x3a4e14;return null;}export function getEnvDir(_0x565de6,_0x2a9c39={}){const _0x2ada3f=_0x5b85,_0xf5b7b8={'MCrFl':function(_0x1c35dd,_0x573edc,_0x3c6db0){return _0x1c35dd(_0x573edc,_0x3c6db0);},'ywHvJ':function(_0x13712c,_0x466f1b){return _0x13712c(_0x466f1b);},'qEpgr':function(_0x5cd453){return _0x5cd453();},'mwDbz':_0x2ada3f(0xcd)},_0x1da0fa=getRangerDir(),_0x240d76=_0xf5b7b8['MCrFl'](findEnvInRoot,_0x565de6,_0x1da0fa);if(_0x240d76){if(_0x2a9c39['forWrite']&&_0xf5b7b8['ywHvJ'](isLegacyEnvPath,_0x240d76))throw _0xf5b7b8['MCrFl'](legacyWriteError,_0x565de6,_0x240d76);return _0x240d76;}const _0x1d8dce=_0xf5b7b8['qEpgr'](getRangerHomeDir);if(_0x1d8dce!==_0x1da0fa){const _0x79d670=_0xf5b7b8['MCrFl'](findEnvInRoot,_0x565de6,_0x1d8dce);if(_0x79d670){if(_0x2a9c39[_0x2ada3f(0xfd)]&&_0xf5b7b8['ywHvJ'](isLegacyEnvPath,_0x79d670))throw legacyWriteError(_0x565de6,_0x79d670);return _0x79d670;}}const _0x500b07=join(_0x1d8dce,_0xf5b7b8[_0x2ada3f(0xf7)],_0x565de6);if(_0x2a9c39[_0x2ada3f(0xfd)])throw legacyWriteError(_0x565de6,_0x500b07);return _0x500b07;}function isLegacyEnvPath(_0x47bdfc){const _0x3ccbbf=_0x5b85,_0x12877f={'XBpGl':function(_0x41eddd,_0xf75a17){return _0x41eddd===_0xf75a17;}},_0x1b4a70=getRangerDir(),_0x1e1859=getRangerHomeDir();for(const _0x50b0cc of new Set([_0x1b4a70,_0x1e1859])){const _0x54dfbe=_0x50b0cc[_0x3ccbbf(0xc5)]('/')?_0x50b0cc:_0x50b0cc+'/';if(_0x12877f[_0x3ccbbf(0xf4)](_0x47bdfc,_0x50b0cc)||_0x47bdfc['startsWith'](_0x54dfbe))return!![];}return![];}function legacyWriteError(_0x39064a,_0x3a407d){const _0x360561=_0x5b85,_0x2902e5={'JjfZJ':function(_0x53016d,_0x1a0816){return _0x53016d+_0x1a0816;}};return new Error(_0x2902e5[_0x360561(0xf2)]('Refusing\x20to\x20write\x20profile\x20\x22'+_0x39064a+_0x360561(0x105)+_0x3a407d+'.\x0a'+_0x360561(0xae),_0x360561(0x9f))+_0x360561(0xb0));}export function findExistingEnv(_0x5d2b6a,_0x2b05b5){const _0x48d003=_0x5b85,_0x170526={'rZLwF':function(_0x3e2024){return _0x3e2024();},'NBrFM':_0x48d003(0xe7),'gmLZC':function(_0x58b1e0,_0xdf032e,_0x3f90ab){return _0x58b1e0(_0xdf032e,_0x3f90ab);},'nHWLh':function(_0x3dd79f,_0x2b06a1,_0x3cbded,_0x288018){return _0x3dd79f(_0x2b06a1,_0x3cbded,_0x288018);},'doUkG':_0x48d003(0xcd),'yFMzu':function(_0x5ad7e1,_0x8b20b4,_0x101116){return _0x5ad7e1(_0x8b20b4,_0x101116);},'bQeBw':function(_0x22276f,_0x419bad){return _0x22276f(_0x419bad);},'vHina':function(_0x40c848,_0x23a2ae){return _0x40c848===_0x23a2ae;},'oNXCA':function(_0x2d8c8f,_0x2e876f){return _0x2d8c8f===_0x2e876f;},'fqchB':function(_0x4da9c1,_0x2ad847){return _0x4da9c1(_0x2ad847);}},_0x5ac1dc=_0x2b05b5?.[_0x48d003(0xd9)],_0x4e1247=_0x5ac1dc?[_0x5ac1dc]:[_0x170526[_0x48d003(0x102)](getRangerDir),_0x170526[_0x48d003(0x102)](getRangerHomeDir)][_0x48d003(0xd7)]((_0x507729,_0x36703f,_0x19305c)=>_0x19305c['indexOf'](_0x507729)===_0x36703f),_0x43d5c9=_0x2b05b5?.['locations']??['ci',_0x48d003(0xcd),_0x170526[_0x48d003(0xca)]];for(const _0x1052ae of _0x4e1247){const _0x43f9a0=join(_0x1052ae,'local'),_0x49ad98=_0x170526[_0x48d003(0xfe)](join,_0x1052ae,'ci'),_0x51cf6a=[{'location':'ci','path':_0x170526[_0x48d003(0xcf)](join,_0x1052ae,'ci',_0x5d2b6a)},{'location':_0x170526['doUkG'],'path':_0x170526[_0x48d003(0xcf)](join,_0x1052ae,_0x48d003(0xcd),_0x5d2b6a)},{'location':_0x48d003(0xe7),'path':_0x170526['yFMzu'](join,_0x1052ae,_0x5d2b6a)}];for(const _0x38d7a7 of _0x51cf6a){if(_0x43d5c9[_0x48d003(0xb9)](_0x38d7a7['location'])&&_0x170526[_0x48d003(0xd5)](existsSync,_0x38d7a7[_0x48d003(0x104)])){if(_0x170526[_0x48d003(0xa2)](_0x38d7a7['location'],_0x170526['NBrFM'])&&(_0x38d7a7[_0x48d003(0x104)]===_0x43f9a0||_0x170526['oNXCA'](_0x38d7a7[_0x48d003(0x104)],_0x49ad98))&&!_0x170526[_0x48d003(0xde)](hasLegacyProfileFiles,_0x38d7a7['path']))continue;return{'path':_0x38d7a7['path'],'location':_0x38d7a7[_0x48d003(0xbe)]};}}}return null;}function hasLegacyProfileFiles(_0x5e13e2){const _0x4e0300=_0x5b85,_0x2d6db0={'UjWHS':function(_0x138146,_0x14cbb2){return _0x138146(_0x14cbb2);},'weGBc':function(_0x35cf3e,_0x12066e,_0x37f748){return _0x35cf3e(_0x12066e,_0x37f748);},'fOWIU':'auth.json','TJIjX':'auth.json.enc'};return _0x2d6db0[_0x4e0300(0xd2)](existsSync,_0x2d6db0['weGBc'](join,_0x5e13e2,_0x4e0300(0xee)))||existsSync(join(_0x5e13e2,_0x2d6db0['fOWIU']))||_0x2d6db0[_0x4e0300(0xd2)](existsSync,join(_0x5e13e2,_0x2d6db0['TJIjX']));}export function isEnvCi(_0x573a5f){const _0x4ddace=_0x5b85,_0x323f20={'wtxCo':function(_0x28ed70){return _0x28ed70();},'nVBFx':function(_0x217ae7,_0x50f7d4){return _0x217ae7!==_0x50f7d4;},'MRiyn':function(_0x8a13da,_0x2bb3e0,_0x3e1d19,_0x35e756){return _0x8a13da(_0x2bb3e0,_0x3e1d19,_0x35e756);}};if(existsSync(join(_0x323f20[_0x4ddace(0xd4)](getRangerDir),'ci',_0x573a5f)))return!![];const _0xb2cca4=getRangerHomeDir();if(_0x323f20['nVBFx'](_0xb2cca4,getRangerDir())&&existsSync(_0x323f20[_0x4ddace(0xf3)](join,_0xb2cca4,'ci',_0x573a5f)))return!![];return![];}export async function cleanupTempFiles(_0x3e7644){const _0x3e84f7=_0x5b85,_0x5bb1c6={'qrfsl':_0x3e84f7(0xff)},_0x11b4ba=[_0x3e7644['tempAuthPath'],_0x3e7644['configPath']][_0x3e84f7(0xd7)](Boolean);await Promise[_0x3e84f7(0xcc)](_0x11b4ba['map'](_0x3d8aff=>unlink(_0x3d8aff)['catch'](_0x1bbdbd=>{const _0x5d7cbe=_0x3e84f7;_0x1bbdbd['code']!==_0x5bb1c6['qrfsl']&&console['warn'](_0x5d7cbe(0xb2)+_0x3d8aff+':',_0x1bbdbd['message']);})));}export function getSettingsPath(_0x3127b3){const _0xa60108=_0x5b85,_0x2bd008={'XOZRY':function(_0x301531,_0x2c7666,_0x2deb4d){return _0x301531(_0x2c7666,_0x2deb4d);}};return _0x2bd008['XOZRY'](join,getEnvDir(_0x3127b3),_0xa60108(0xee));}export async function loadSettings(_0x462bc0){const _0x35469e=_0x5b85,_0x4c8f01={'eBsvH':function(_0x1aba08,_0x2f94db){return _0x1aba08(_0x2f94db);},'HadjV':function(_0xa50166,_0x37c507,_0x336cb3){return _0xa50166(_0x37c507,_0x336cb3);}},_0x20dfcb=_0x4c8f01[_0x35469e(0xd3)](getSettingsPath,_0x462bc0);if(!existsSync(_0x20dfcb))return{};try{const _0x1aeef3=await _0x4c8f01[_0x35469e(0xa9)](readFile,_0x20dfcb,'utf-8');return JSON[_0x35469e(0xe2)](_0x1aeef3);}catch{return{};}}export async function saveSettings(_0x3190ff,_0x112e26){const _0x4e52a8=_0x5b85,_0x279304={'TazEk':function(_0x181168,_0x5e5a27){return _0x181168(_0x5e5a27);},'sHFmC':function(_0x176ee8,_0xd3c94e){return _0x176ee8(_0xd3c94e);},'PzgYE':function(_0x1f9ee3,_0x3b5775,_0x51270f){return _0x1f9ee3(_0x3b5775,_0x51270f);}},_0x135a64=_0x279304[_0x4e52a8(0xe0)](getSettingsPath,_0x3190ff),_0x4d712d=_0x279304['sHFmC'](dirname,_0x135a64);!_0x279304[_0x4e52a8(0xe0)](existsSync,_0x4d712d)&&await mkdir(_0x4d712d,{'recursive':!![]}),await _0x279304[_0x4e52a8(0xd8)](writeFile,_0x135a64,JSON[_0x4e52a8(0xc0)](_0x112e26,null,0x2));}export function resolveEnvVars(_0x1652df){const _0x53824d=_0x5b85,_0x283042={'NxJYV':function(_0x418264,_0x2a3ca5){return _0x418264===_0x2a3ca5;}};if(typeof _0x1652df===_0x53824d(0xec))return _0x1652df[_0x53824d(0xda)](/\$\{(\w+)\}/g,(_0x1fddeb,_0xb13f2e)=>{const _0x342c6e=_0x53824d,_0x43b41a=process['env'][_0xb13f2e];if(_0x43b41a===undefined)throw new Error(_0x342c6e(0xb8)+_0xb13f2e+_0x342c6e(0xa5));return _0x43b41a;});if(Array['isArray'](_0x1652df))return _0x1652df[_0x53824d(0x100)](resolveEnvVars);if(_0x1652df&&_0x283042['NxJYV'](typeof _0x1652df,_0x53824d(0xe1)))return Object[_0x53824d(0xe4)](Object['entries'](_0x1652df)['map'](([_0x2249f9,_0x3a9398])=>[_0x2249f9,resolveEnvVars(_0x3a9398)]));return _0x1652df;}const isRecord=_0x40c0ac=>typeof _0x40c0ac===_0x5b1811(0xe1)&&_0x40c0ac!==null&&!Array[_0x5b1811(0xdd)](_0x40c0ac),asRecord=_0x2fe945=>isRecord(_0x2fe945)?_0x2fe945:undefined,mergeHeaders=(_0x61e654,_0x5e4b65)=>{const _0x2f07f5=_0x5b1811,_0x153403={'yGrIv':function(_0xf81df3,_0x5b69e8){return _0xf81df3??_0x5b69e8;}},_0x5631cd={..._0x153403['yGrIv'](_0x61e654,{}),..._0x153403[_0x2f07f5(0xa8)](_0x5e4b65,{})};return Object['keys'](_0x5631cd)['length']?_0x5631cd:undefined;},SAFE_MODE_ARGS=[_0x5b1811(0x9d)],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content','--unsafely-treat-insecure-origin-as-secure=http://localhost',_0x5b1811(0xd0)];export function buildBrowserOptionsFromSettings(_0x50c783,_0x4c0016={}){const _0x1f787d=_0x5b1811,_0x2ceb4d={'fNgor':function(_0x3973ea,_0x199d95){return _0x3973ea===_0x199d95;},'QakIb':function(_0x5e49f9,_0x19dd6b){return _0x5e49f9(_0x19dd6b);},'VzPsr':_0x1f787d(0xec),'vyMJd':function(_0x4ee846,_0x59ccc6,_0x3f0cbe){return _0x4ee846(_0x59ccc6,_0x3f0cbe);}},_0xabee43=asRecord(_0x50c783['browser']),_0x39b23c={...asRecord(_0xabee43?.['launchOptions'])??{}};_0x2ceb4d[_0x1f787d(0xc6)](typeof _0x4c0016[_0x1f787d(0xef)],_0x1f787d(0xb3))&&(_0x39b23c[_0x1f787d(0xef)]=_0x4c0016['headless']);if(_0x50c783[_0x1f787d(0xd1)]){const _0x4ae669=_0x39b23c[_0x1f787d(0xc8)]??[],_0x591c9d=SAFE_MODE_ARGS[_0x1f787d(0xd7)](_0x560ce0=>!_0x4ae669['includes'](_0x560ce0));_0x39b23c['args']=[..._0x4ae669,..._0x591c9d];}if(_0x50c783[_0x1f787d(0xfa)]){const _0x3a5eca=_0x39b23c['args']??[],_0x4fdcf7=ALLOW_LOCALHOST_ARGS['filter'](_0x306fa0=>!_0x3a5eca[_0x1f787d(0xb9)](_0x306fa0));_0x39b23c['args']=[..._0x3a5eca,..._0x4fdcf7];}const _0xf98ae8={..._0x2ceb4d['QakIb'](asRecord,_0xabee43?.[_0x1f787d(0xa1)])??{}};_0xf98ae8['ignoreHTTPSErrors']=!![];typeof _0x50c783['userAgent']===_0x2ceb4d['VzPsr']&&(_0xf98ae8[_0x1f787d(0x103)]=_0x50c783[_0x1f787d(0x103)]);const _0x1fff6b=_0x2ceb4d['vyMJd'](mergeHeaders,asRecord(_0xf98ae8[_0x1f787d(0xfc)]),asRecord(_0x50c783[_0x1f787d(0xa3)]));return _0x1fff6b?_0xf98ae8[_0x1f787d(0xfc)]=_0x1fff6b:delete _0xf98ae8['extraHTTPHeaders'],_0x4c0016[_0x1f787d(0xaf)]&&(_0xf98ae8['storageState']=_0x4c0016['storageStatePath']),{'launchOptions':_0x39b23c,'contextOptions':_0xf98ae8};}async function resolveLocalAuthPath(_0xd26ab){const _0x3f45c5=_0x5b1811,_0x3b35ef={'mdBfy':_0x3f45c5(0xac),'ncrzP':'auth.json','coblY':function(_0x446c94,_0x2cbcca){return _0x446c94(_0x2cbcca);},'xQPzk':function(_0xdc0c37,_0x27d5d3){return _0xdc0c37(_0x27d5d3);},'PFFWI':function(_0x2491f3,_0x1af6c0){return _0x2491f3(_0x1af6c0);}},_0x20ee11=join(_0xd26ab,_0x3b35ef['mdBfy']),_0x3a0e48=join(_0xd26ab,_0x3b35ef['ncrzP']);if(_0x3b35ef[_0x3f45c5(0xb6)](existsSync,_0x20ee11))try{const _0x685709=await getToken();if(!_0x685709)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x36ae1a=await _0x3b35ef[_0x3f45c5(0xed)](readFile,_0x20ee11),_0x122ae5=decrypt(_0x36ae1a,_0x685709),_0x3473eb=join(tmpdir(),_0x3f45c5(0xc1)+Date[_0x3f45c5(0xbf)]()+'.json');return await writeFile(_0x3473eb,_0x122ae5),{'storageStatePath':_0x3473eb,'tempAuthPath':_0x3473eb};}catch(_0x435daa){const _0x116b55=_0x435daa instanceof Error?_0x435daa['message']:String(_0x435daa);throw new Error(_0x3f45c5(0x9e)+_0x116b55);}if(_0x3b35ef[_0x3f45c5(0xb1)](existsSync,_0x3a0e48))return{'storageStatePath':_0x3a0e48};return{};}export async function buildPlaywrightConfig(_0x2f20e5,_0x2208a6,_0xf37d6f,_0x451f8a,_0x486fee){const _0x44b095=_0x5b1811,_0x3f393b={'BOvoV':function(_0xcec985,_0x30f471,_0x544838,_0x44cd95,_0x1bec39,_0x3f8c4,_0x1dfd0d){return _0xcec985(_0x30f471,_0x544838,_0x44cd95,_0x1bec39,_0x3f8c4,_0x1dfd0d);},'FAXvb':function(_0x2b1f80,_0x290312){return _0x2b1f80(_0x290312);}};if(_0x486fee)return _0x3f393b[_0x44b095(0xf9)](buildPlaywrightConfigCore,_0x2f20e5,_0x486fee,_0x2208a6,_0xf37d6f,_0x451f8a,'stagehand');const {storageStatePath:_0x18e263,tempAuthPath:_0x4b7a64}=await _0x3f393b['FAXvb'](resolveLocalAuthPath,getEnvDir(_0x2208a6));try{const _0x150df8=await buildPlaywrightConfigCore(_0x2f20e5,_0x18e263,_0x2208a6,_0xf37d6f,_0x451f8a,_0x44b095(0xf5));return{..._0x150df8,'tempAuthPath':_0x4b7a64};}catch(_0x5d8e25){_0x4b7a64&&await _0x3f393b[_0x44b095(0xeb)](unlink,_0x4b7a64)['catch'](()=>{});throw _0x5d8e25;}}export async function buildPlaywrightConfigCore(_0x5a86c6,_0x1314bc,_0x383e77,_0x5ba1c8,_0x4d2204,_0x1e82ae='stagehand'){const _0x150a39=_0x5b1811,_0x2568fc={'UUDuM':'--disable-setuid-sandbox','Ffwov':function(_0x132f47){return _0x132f47();},'swMFH':function(_0x46024b,_0x917061){return _0x46024b(_0x917061);},'Bejxm':_0x150a39(0xad),'cyMBi':_0x150a39(0xbb),'OXxHp':_0x150a39(0xfb),'lfMGI':'pdf','BtjHh':'vision','yXwrM':function(_0x1ae106,_0x4aa112,_0xc4864e){return _0x1ae106(_0x4aa112,_0xc4864e);},'QLdEa':function(_0x1e3e42,_0xb50496){return _0x1e3e42===_0xb50496;},'rNVNh':'playwright-cli','zOuvv':'-cli'},_0x4d3341=_0x5ba1c8||_0x2568fc[_0x150a39(0xbc)](randomUUID),_0x8751ff=join(_0x2568fc[_0x150a39(0xbc)](getRangerDir),'sessions',_0x4d3341),_0x264648=_0x2568fc[_0x150a39(0xaa)](Boolean,_0x5a86c6[_0x150a39(0xbd)]),_0x25c21a=_0x264648?{'browserName':_0x2568fc[_0x150a39(0xba)],'cdpEndpoint':_0x5a86c6[_0x150a39(0xbd)]}:((()=>{const _0x1b0698=_0x150a39,{launchOptions:_0x4b3465,contextOptions:_0x5b1e03}=buildBrowserOptionsFromSettings(_0x5a86c6,{'headless':_0x4d2204?![]:_0x5a86c6['headless']??!![],'storageStatePath':_0x1314bc});if(process['getuid']?.()===0x0){const _0x155e28=['--no-sandbox',_0x2568fc['UUDuM']],_0x465f3b=_0x4b3465['args']??[],_0x5dcc50=_0x155e28[_0x1b0698(0xd7)](_0x2b4d66=>!_0x465f3b[_0x1b0698(0xb9)](_0x2b4d66));_0x4b3465[_0x1b0698(0xc8)]=[..._0x465f3b,..._0x5dcc50];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x4b3465,'contextOptions':{..._0x5b1e03,'permissions':['clipboard-read',_0x1b0698(0xf1)],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x12fdbb=_0x1e82ae==='playwright-cli'?{'browser':_0x25c21a,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x8751ff,'outputMode':_0x2568fc[_0x150a39(0xd6)],'codegen':_0x150a39(0xb5)}:{'name':_0x383e77,'browser':_0x25c21a,'capabilities':['core',_0x2568fc['OXxHp'],_0x150a39(0xa0),_0x2568fc[_0x150a39(0xc9)],_0x2568fc[_0x150a39(0xb7)]],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x8751ff};if(!_0x264648){const _0x52151d=_0x12fdbb[_0x150a39(0xe5)],_0x3e785a=_0x52151d[_0x150a39(0xa1)];if(_0x3e785a['userAgent']===undefined)delete _0x3e785a[_0x150a39(0x103)];if(_0x3e785a['storageState']===undefined)delete _0x3e785a['storageState'];}const _0x53a5c9=join(tmpdir(),'ranger-config');!_0x2568fc[_0x150a39(0xaa)](existsSync,_0x53a5c9)&&await _0x2568fc['yXwrM'](mkdir,_0x53a5c9,{'recursive':!![]});const _0x1a6d5b=_0x2568fc['QLdEa'](_0x1e82ae,_0x2568fc['rNVNh'])?_0x2568fc['zOuvv']:'',_0x4c8ec8=join(_0x53a5c9,_0x383e77+'-'+Date['now']()+_0x1a6d5b+_0x150a39(0xe8));return await writeFile(_0x4c8ec8,JSON['stringify'](_0x12fdbb,null,0x2)),{'configPath':_0x4c8ec8};}export async function buildPlaywrightCliConfig(_0x130460,_0x375735,_0x39f763,_0x526318,_0x2868c4){const _0x235e22={'XZuYK':function(_0x3f756d,_0x1a95e7){return _0x3f756d(_0x1a95e7);},'gliAD':function(_0x2cf545,_0x2ffabb,_0xf19aa,_0x510363,_0x4df87d,_0x1329f6,_0x4b345e){return _0x2cf545(_0x2ffabb,_0xf19aa,_0x510363,_0x4df87d,_0x1329f6,_0x4b345e);},'skUvA':function(_0x43f072,_0x51d22c){return _0x43f072(_0x51d22c);}};if(_0x2868c4)return buildPlaywrightConfigCore(_0x130460,_0x2868c4,_0x375735,_0x39f763,_0x526318,'playwright-cli');const {storageStatePath:_0x4f5fc4,tempAuthPath:_0x40cdef}=await _0x235e22['XZuYK'](resolveLocalAuthPath,getEnvDir(_0x375735));try{const _0x11366f=await _0x235e22['gliAD'](buildPlaywrightConfigCore,_0x130460,_0x4f5fc4,_0x375735,_0x39f763,_0x526318,'playwright-cli');return{..._0x11366f,'tempAuthPath':_0x40cdef};}catch(_0x4a098f){_0x40cdef&&await _0x235e22['skUvA'](unlink,_0x40cdef)['catch'](()=>{});throw _0x4a098f;}}export function getNestedValue(_0x3099d6,_0x1ac030){const _0x2221be=_0x5b1811,_0x30cd36={'KPjeE':function(_0x4bfdb8,_0x105f84){return _0x4bfdb8(_0x105f84);},'kzaKt':function(_0x147197,_0x5946b5){return _0x147197===_0x5946b5;},'zrydz':function(_0x273d86,_0x1573c0){return _0x273d86!==_0x1573c0;}},_0x1e6f3c=_0x30cd36['KPjeE'](parseKeyPath,_0x1ac030);let _0xe74650=_0x3099d6;for(const _0x3ea99a of _0x1e6f3c){if(_0xe74650===null||_0x30cd36['kzaKt'](_0xe74650,undefined)||_0x30cd36[_0x2221be(0xe6)](typeof _0xe74650,_0x2221be(0xe1)))return undefined;_0xe74650=_0xe74650[_0x3ea99a];}return _0xe74650;}function _0x5b1f(){const _0x22370b=['gmLZC','ENOENT','map','join','rZLwF','userAgent','path','\x22\x20to\x20legacy\x20path\x20','--disable-features=WebBluetooth','Failed\x20to\x20decrypt\x20auth\x20state:\x20','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','install','contextOptions','vHina','headers','length','\x20is\x20not\x20set','yaTdC','MNdHq','yGrIv','HadjV','swMFH','setupHeader','auth.json.enc','chromium','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','storageStatePath','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','PFFWI','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','boolean','592ZhJfBU','none','coblY','BtjHh','Environment\x20variable\x20','includes','Bejxm','file','Ffwov','cdpEndpoint','location','now','stringify','ranger-auth-','649920fOfmIE','repeat','32375nSPSxh','endsWith','fNgor','373068eWufEP','args','lfMGI','NBrFM','entries','all','local','467298EZrQzO','nHWLh','--allow-insecure-localhost','safeMode','UjWHS','eBsvH','wtxCo','bQeBw','cyMBi','filter','PzgYE','rangerDir','replace','aqTiU','ZAqJG','isArray','fqchB','1467784RKhFlQ','TazEk','object','parse','yuwrC','fromEntries','browser','zrydz','legacy','.json','141242CZPGIV','678qGiEOS','FAXvb','string','xQPzk','settings.json','headless','5570HuExZz','clipboard-write','JjfZJ','MRiyn','XBpGl','stagehand','tXDhe','mwDbz','push','BOvoV','allowInsecureLocalhost','tabs','extraHTTPHeaders','forWrite'];_0x5b1f=function(){return _0x22370b;};return _0x5b1f();}export function setNestedValue(_0x1bda3f,_0xf271a1,_0x421b77){const _0x357e71=_0x5b1811,_0x40223a={'qkJTd':_0x357e71(0xe1),'eURtT':function(_0x599826,_0x3a3caa){return _0x599826-_0x3a3caa;}},_0x10c6e1=parseKeyPath(_0xf271a1);let _0x5b4fce=_0x1bda3f;for(let _0x50ce53=0x0;_0x50ce53<_0x10c6e1[_0x357e71(0xa4)]-0x1;_0x50ce53++){const _0x3ebe6c=_0x10c6e1[_0x50ce53];(!(_0x3ebe6c in _0x5b4fce)||typeof _0x5b4fce[_0x3ebe6c]!==_0x40223a['qkJTd'])&&(_0x5b4fce[_0x3ebe6c]={}),_0x5b4fce=_0x5b4fce[_0x3ebe6c];}_0x5b4fce[_0x10c6e1[_0x40223a['eURtT'](_0x10c6e1[_0x357e71(0xa4)],0x1)]]=_0x421b77;}export function deleteNestedValue(_0x72d5aa,_0xf34f84){const _0x55ca33=_0x5b1811,_0x2f171e={'vOXsb':function(_0x262ed5,_0x1f2b20){return _0x262ed5<_0x1f2b20;},'aqTiU':function(_0x1f44eb,_0x3d365b){return _0x1f44eb!==_0x3d365b;},'OKwIP':function(_0x289cd4,_0x1aec46){return _0x289cd4!==_0x1aec46;},'tXDhe':function(_0xcc480e,_0x37572f){return _0xcc480e in _0x37572f;}},_0x566979=parseKeyPath(_0xf34f84);let _0x30c04d=_0x72d5aa;for(let _0x3693b3=0x0;_0x2f171e['vOXsb'](_0x3693b3,_0x566979[_0x55ca33(0xa4)]-0x1);_0x3693b3++){if(_0x30c04d===null||_0x30c04d===undefined||_0x2f171e[_0x55ca33(0xdb)](typeof _0x30c04d,'object'))return![];_0x30c04d=_0x30c04d[_0x566979[_0x3693b3]];}if(_0x30c04d===null||_0x30c04d===undefined||_0x2f171e['OKwIP'](typeof _0x30c04d,'object'))return![];const _0x28389d=_0x566979[_0x566979[_0x55ca33(0xa4)]-0x1];if(_0x2f171e[_0x55ca33(0xf6)](_0x28389d,_0x30c04d))return delete _0x30c04d[_0x28389d],!![];return![];}function parseKeyPath(_0x9c4421){const _0x1efb33=_0x5b1811,_0x20aeb9={'yaTdC':function(_0x2cf9f1,_0x3fb9bb){return _0x2cf9f1===_0x3fb9bb;},'ZAqJG':_0x1efb33(0xa3),'yuwrC':'setupHeaders'},_0x366b9f=_0x9c4421['split']('.');return _0x20aeb9[_0x1efb33(0xa6)](_0x366b9f[0x0],'header')&&(_0x366b9f[0x0]=_0x20aeb9[_0x1efb33(0xdc)]),_0x366b9f[0x0]===_0x1efb33(0xab)&&(_0x366b9f[0x0]=_0x20aeb9[_0x1efb33(0xe3)]),_0x366b9f;}export function formatSettings(_0x255732,_0x57d276=0x0){const _0x39fc2b=_0x5b1811,_0x14962a={'SnGMz':function(_0x415a18,_0x551723){return _0x415a18===_0x551723;}},_0x1f865e=[],_0x3d1e03='\x20\x20'[_0x39fc2b(0xc3)](_0x57d276);for(const [_0x19c4df,_0xae3af8]of Object[_0x39fc2b(0xcb)](_0x255732)){if(_0x14962a['SnGMz'](_0xae3af8,undefined))continue;if(typeof _0xae3af8==='object'&&_0xae3af8!==null){_0x1f865e[_0x39fc2b(0xf8)](''+_0x3d1e03+_0x19c4df+':');for(const [_0x58adba,_0x1ec6a1]of Object['entries'](_0xae3af8)){_0x1f865e['push'](_0x3d1e03+'\x20\x20'+_0x58adba+':\x20'+_0x1ec6a1);}}else _0x1f865e[_0x39fc2b(0xf8)](''+_0x3d1e03+_0x19c4df+':\x20'+_0xae3af8);}return _0x1f865e[_0x39fc2b(0x101)]('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3d6d12,_0x49a686){const _0x425a51=_0x4601,_0x3d49ae=_0x3d6d12();while(!![]){try{const _0x2029ae=parseInt(_0x425a51(0xe4))/0x1*(parseInt(_0x425a51(0xe6))/0x2)+-parseInt(_0x425a51(0xea))/0x3*(-parseInt(_0x425a51(0xef))/0x4)+parseInt(_0x425a51(0xeb))/0x5*(-parseInt(_0x425a51(0xed))/0x6)+-parseInt(_0x425a51(0xe5))/0x7+parseInt(_0x425a51(0xec))/0x8+parseInt(_0x425a51(0xe7))/0x9+parseInt(_0x425a51(0xe9))/0xa*(-parseInt(_0x425a51(0xf1))/0xb);if(_0x2029ae===_0x49a686)break;else _0x3d49ae['push'](_0x3d49ae['shift']());}catch(_0x598c92){_0x3d49ae['push'](_0x3d49ae['shift']());}}}(_0x4924,0xc2d10));function _0x4924(){const _0x190604=['10nxUdfh','2322593IKlOON','153580AJmHDX','5040594aofAlY','PMGJy','370WOoDOt','9gMnvGC','3626065AAXmFa','7860472THYwip','12pUyEXU','cLHlh','1166108SMChzV','skills','179839MNRztq'];_0x4924=function(){return _0x190604;};return _0x4924();}import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';function _0x4601(_0x1ce2a2,_0x31f465){_0x1ce2a2=_0x1ce2a2-0xe4;const _0x4924bb=_0x4924();let _0x46012a=_0x4924bb[_0x1ce2a2];return _0x46012a;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x433fac){const _0x583ef6=_0x4601,_0x2ba128={'zcnjp':function(_0x21e03c,_0x4811eb,_0x2fdebf){return _0x21e03c(_0x4811eb,_0x2fdebf);},'PMGJy':'utf-8'},_0x209c4b=join(__dirname,'..','..',_0x583ef6(0xf0)),_0x47cc31=join(_0x209c4b,_0x433fac);try{return _0x2ba128['zcnjp'](readFileSync,_0x47cc31,_0x2ba128[_0x583ef6(0xe8)]);}catch{return'';}}export function getRangerSkillContent(){const _0x3261a0=_0x4601,_0x4e83d3={'vqdcI':function(_0x200c0f,_0x562771){return _0x200c0f(_0x562771);},'cLHlh':'ranger/SKILL.md'};return _0x4e83d3['vqdcI'](readSkillContent,_0x4e83d3[_0x3261a0(0xee)]);}
|