@ranger-testing/ranger-cli 3.0.0 → 3.0.1-alpha.46ed70b-30
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/deleteProfile.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/novaActCli.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/rangerwrightCli.js +1 -0
- 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/build/commands/verifyFeatureNovaCli.js +1 -1
- package/build/commands/verifyFeatureRangerwrightCli.js +1 -0
- package/package.json +3 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xe7bcf6,_0xe940b9){const _0x486080=_0x4ea7,_0x54a5dd=_0xe7bcf6();while(!![]){try{const _0x2144d1=parseInt(_0x486080(0x14f))/0x1+-parseInt(_0x486080(0x14e))/0x2*(parseInt(_0x486080(0x153))/0x3)+parseInt(_0x486080(0x155))/0x4+-parseInt(_0x486080(0x156))/0x5*(parseInt(_0x486080(0x152))/0x6)+-parseInt(_0x486080(0x150))/0x7+-parseInt(_0x486080(0x14d))/0x8+parseInt(_0x486080(0x151))/0x9;if(_0x2144d1===_0xe940b9)break;else _0x54a5dd['push'](_0x54a5dd['shift']());}catch(_0x5200de){_0x54a5dd['push'](_0x54a5dd['shift']());}}}(_0xf24e,0x60495));function _0xf24e(){const _0x37dacd=['3789408WGfHoQ','7125390HUwkoT','1326muDKiV','113409wxmdxb','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','1507092XzidVe','2735JXutCZ','3915496xDqLYx','6JafTXV','490983yTXgKY'];_0xf24e=function(){return _0x37dacd;};return _0xf24e();}function _0x4ea7(_0x563062,_0x151ef8){_0x563062=_0x563062-0x14d;const _0xf24e49=_0xf24e();let _0x4ea768=_0xf24e49[_0x563062];return _0x4ea768;}const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';export function formatProfileRequiredMessage(_0x2e5525){const _0x3232eb=_0x4ea7,_0x5e67f6=_0x2e5525?_0x2e5525(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x3232eb(0x154)+_0x5e67f6+'.';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3a9f(){const _0x1ca1e1=['3qtCZpj','IeQBC','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','150059fTsQBx','675462bCOMxp',';\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','271100eaFLnN','wloCJ','addInitScript','1143783aIjCjg','<div\x20class=\x22ranger-banner__message\x22>','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','OaTmf','4322GzgoqQ','4010550qSZVzF','58bWUsKt','</div>','1050715zXtvsT','8lKNtiU','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>'];_0x3a9f=function(){return _0x1ca1e1;};return _0x3a9f();}(function(_0xd3fe59,_0x1383d2){const _0x2365e0=_0x4c90,_0x3a61c1=_0xd3fe59();while(!![]){try{const _0x26644c=-parseInt(_0x2365e0(0x183))/0x1*(-parseInt(_0x2365e0(0x195))/0x2)+parseInt(_0x2365e0(0x188))/0x3*(-parseInt(_0x2365e0(0x18e))/0x4)+-parseInt(_0x2365e0(0x185))/0x5+parseInt(_0x2365e0(0x18c))/0x6+-parseInt(_0x2365e0(0x18b))/0x7*(parseInt(_0x2365e0(0x186))/0x8)+-parseInt(_0x2365e0(0x191))/0x9+parseInt(_0x2365e0(0x182))/0xa;if(_0x26644c===_0x1383d2)break;else _0x3a61c1['push'](_0x3a61c1['shift']());}catch(_0x10171f){_0x3a61c1['push'](_0x3a61c1['shift']());}}}(_0x3a9f,0x33e30));function _0x4c90(_0x304346,_0x1c9103){_0x304346=_0x304346-0x182;const _0x3a9fc7=_0x3a9f();let _0x4c908d=_0x3a9fc7[_0x304346];return _0x4c908d;}const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x573aed=_0x4c90,_0x38fdd2={'wloCJ':function(_0x7664d1,_0x173c45){return _0x7664d1+_0x173c45;},'OaTmf':function(_0x522cff,_0x41e5b7){return _0x522cff+_0x41e5b7;},'WTaVx':_0x573aed(0x187),'IeQBC':_0x573aed(0x192),'EjZPz':_0x573aed(0x193),'fwjmM':_0x573aed(0x184),'PydEJ':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0x16790a=_0x38fdd2['wloCJ'](_0x38fdd2[_0x573aed(0x18f)](_0x38fdd2['OaTmf'](_0x38fdd2[_0x573aed(0x194)](_0x38fdd2[_0x573aed(0x194)]('<div\x20class=\x22ranger-banner__content\x22>',_0x38fdd2['WTaVx'])+_0x38fdd2[_0x573aed(0x189)],_0x573aed(0x18a))+_0x38fdd2['EjZPz'],_0x38fdd2['fwjmM']),'</div>'),_0x38fdd2['PydEJ']),_0x193022='\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a';return'\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20'+JSON['stringify'](_0x16790a)+';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20'+JSON['stringify'](_0x193022)+_0x573aed(0x18d);})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x4a8aab){const _0xcf0d74=_0x4c90;await _0x4a8aab[_0xcf0d74(0x190)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x5c5be1,_0x396d37){const _0x25dc88=_0x5717,_0x5e7f27=_0x5c5be1();while(!![]){try{const _0x4418a1=-parseInt(_0x25dc88(0x151))/0x1+parseInt(_0x25dc88(0x15b))/0x2*(-parseInt(_0x25dc88(0x138))/0x3)+parseInt(_0x25dc88(0x14c))/0x4+parseInt(_0x25dc88(0x156))/0x5+parseInt(_0x25dc88(0x141))/0x6*(-parseInt(_0x25dc88(0x15f))/0x7)+-parseInt(_0x25dc88(0x15d))/0x8*(parseInt(_0x25dc88(0x15c))/0x9)+parseInt(_0x25dc88(0x146))/0xa;if(_0x4418a1===_0x396d37)break;else _0x5e7f27['push'](_0x5e7f27['shift']());}catch(_0x3ee416){_0x5e7f27['push'](_0x5e7f27['shift']());}}}(_0x19d0,0x3620a));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;function _0x19d0(){const _0x2ae736=['8RDUpQo','zphTy','7mvCzUo','VWKdZ','.\x20Ignoring\x20local\x20profile\x20overrides.','keyPath\x20is\x20required','kNvvh','setupHeaders','lWYGk','object','gEOxW','3IMrevk','entries','keys','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','length','rxUfI','message',').\x20Ignoring\x20local\x20profile\x20overrides.','[ranger]\x20Warning:\x20failed\x20to\x20read\x20','1375116vmtmxj','warn','settings','PwSqz','FtJfN','13091680HgUbRj','QvjWG','UxTWP','projects','split','isArray','117340BBbpFd','version','lmjgq','profiles','XFQcm','238517kWBhPV','[ranger]\x20Warning:\x20','utf-8','sWEDn','yrILs','162915SlszKw','zoViQ','dhsDW','lastProfile','DWVBv','701920hmdEzZ','2976453TZqOOj'];_0x19d0=function(){return _0x2ae736;};return _0x19d0();}export function getProjectsConfigPath(){return join(getRangerHomeDir(),'projects.json');}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x175e17=_0x5717,_0x15c432={'vhLCa':function(_0x53d680){return _0x53d680();},'gEOxW':function(_0x307fbf,_0x4e6353){return _0x307fbf(_0x4e6353);},'dhsDW':function(_0x4405ba,_0x19a04b){return _0x4405ba instanceof _0x19a04b;},'FtJfN':function(_0x32af60,_0x58f6bc){return _0x32af60(_0x58f6bc);},'DWVBv':_0x175e17(0x136),'loVsU':function(_0x5615b0,_0x1c9817){return _0x5615b0!==_0x1c9817;},'kTgVK':function(_0x206599,_0x467538){return _0x206599===_0x467538;}},_0xbc63af=_0x15c432['vhLCa'](getProjectsConfigPath);if(!_0x15c432[_0x175e17(0x137)](existsSync,_0xbc63af))return emptyConfig();let _0x4ed688;try{_0x4ed688=readFileSync(_0xbc63af,'utf-8');}catch(_0x50cd51){const _0x92db6=_0x15c432[_0x175e17(0x158)](_0x50cd51,Error)?_0x50cd51['message']:_0x15c432['gEOxW'](String,_0x50cd51);return console[_0x175e17(0x142)](_0x175e17(0x140)+_0xbc63af+':\x20'+_0x92db6+_0x175e17(0x161)),emptyConfig();}let _0x1cc6ed;try{_0x1cc6ed=JSON['parse'](_0x4ed688);}catch(_0x463f9e){const _0x5ab67b=_0x15c432['dhsDW'](_0x463f9e,Error)?_0x463f9e[_0x175e17(0x13e)]:_0x15c432[_0x175e17(0x145)](String,_0x463f9e);return console[_0x175e17(0x142)](_0x175e17(0x152)+_0xbc63af+'\x20is\x20not\x20valid\x20JSON\x20('+_0x5ab67b+_0x175e17(0x13f)),_0x15c432['vhLCa'](emptyConfig);}if(!_0x1cc6ed||typeof _0x1cc6ed!==_0x15c432[_0x175e17(0x15a)]||Array['isArray'](_0x1cc6ed)||_0x15c432['loVsU'](_0x1cc6ed[_0x175e17(0x14d)],CURRENT_VERSION)||_0x15c432['loVsU'](typeof _0x1cc6ed[_0x175e17(0x149)],'object')||_0x15c432['kTgVK'](_0x1cc6ed[_0x175e17(0x149)],null)||Array[_0x175e17(0x14b)](_0x1cc6ed['projects']))return console[_0x175e17(0x142)]('[ranger]\x20Warning:\x20'+_0xbc63af+_0x175e17(0x13b)),_0x15c432['vhLCa'](emptyConfig);return _0x1cc6ed;}export function writeProjectsConfig(_0x354ae2){const _0x245316=_0x5717,_0x3b1c0c={'pqkeA':function(_0x5bae19){return _0x5bae19();},'sWEDn':function(_0x3aa136,_0x20b664){return _0x3aa136(_0x20b664);},'yrILs':function(_0x42d38a,_0x1fae4c,_0x567201){return _0x42d38a(_0x1fae4c,_0x567201);},'UxTWP':function(_0xf01e4f,_0x296156,_0x55eb65,_0x4eadd0){return _0xf01e4f(_0x296156,_0x55eb65,_0x4eadd0);},'zphTy':_0x245316(0x153),'yvPwl':function(_0x513d3f,_0x360636){return _0x513d3f(_0x360636);}},_0x362407=_0x3b1c0c['pqkeA'](getProjectsConfigPath),_0x467cf9=_0x3b1c0c['sWEDn'](dirname,_0x362407);!_0x3b1c0c[_0x245316(0x154)](existsSync,_0x467cf9)&&_0x3b1c0c[_0x245316(0x155)](mkdirSync,_0x467cf9,{'recursive':!![]});const _0x17daeb=_0x362407+'.'+process['pid']+'.'+Date['now']()+'.tmp',_0x208962=JSON['stringify'](_0x354ae2,null,0x2)+'\x0a';try{_0x3b1c0c[_0x245316(0x148)](writeFileSync,_0x17daeb,_0x208962,{'encoding':_0x3b1c0c[_0x245316(0x15e)],'mode':0x180}),renameSync(_0x17daeb,_0x362407);}catch(_0x57598f){try{_0x3b1c0c['yvPwl'](existsSync,_0x17daeb)&&unlinkSync(_0x17daeb);}catch{}throw _0x57598f;}}export function readProfileOverrides(_0x920ef4,_0x35a38e){const _0x2eac01=_0x5717,_0x354f1c=readProjectsConfig(),_0x2690df=_0x354f1c[_0x2eac01(0x149)][_0x920ef4];if(!_0x2690df||!_0x2690df[_0x2eac01(0x14f)])return null;const _0x2b1d20=_0x2690df['profiles'][_0x35a38e];if(!_0x2b1d20||!_0x2b1d20['settings'])return null;return _0x2b1d20['settings']??null;}export function setProfileOverride(_0x1b7b6c,_0x366a4c,_0x5e5633,_0xdc493a){const _0x1a401f=_0x5717,_0x366911={'QPnff':'keyPath\x20is\x20required','XFQcm':function(_0x426c76,_0x4c560b){return _0x426c76(_0x4c560b);}};if(!_0x5e5633)throw new Error(_0x366911['QPnff']);const _0x524cb3=readProjectsConfig(),_0x49a06f=_0x524cb3['projects'][_0x1b7b6c]??={},_0xb2ee4c=_0x49a06f['profiles']??={},_0x596b5c=_0xb2ee4c[_0x366a4c]??={},_0x38dd0e=_0x596b5c[_0x1a401f(0x143)]??={};setByKeyPath(_0x38dd0e,_0x5e5633,_0xdc493a),_0x366911[_0x1a401f(0x150)](writeProjectsConfig,_0x524cb3);}export function unsetProfileOverride(_0x178264,_0x28700a,_0x119aa2){const _0x2c61d4=_0x5717,_0x3da217={'rxUfI':function(_0xc868ad){return _0xc868ad();},'HumFL':function(_0x3f52f8,_0x5774f6,_0x136f56){return _0x3f52f8(_0x5774f6,_0x136f56);},'vfNOO':function(_0x23c4d1,_0x218236){return _0x23c4d1(_0x218236);}};if(!_0x119aa2)throw new Error(_0x2c61d4(0x162));const _0x57f0fa=_0x3da217[_0x2c61d4(0x13d)](readProjectsConfig),_0x58679e=_0x57f0fa[_0x2c61d4(0x149)][_0x178264];if(!_0x58679e?.['profiles'])return![];const _0x565daf=_0x58679e['profiles'][_0x28700a];if(!_0x565daf?.[_0x2c61d4(0x143)])return![];const _0x53d9f2=_0x3da217['HumFL'](deleteByKeyPath,_0x565daf['settings'],_0x119aa2);if(!_0x53d9f2)return![];return _0x3da217['vfNOO'](writeProjectsConfig,_0x57f0fa),!![];}export function resetProfileOverrides(_0x395f6b,_0xa8e106){const _0x38f55b=_0x5717,_0x2226ac={'PNPoV':function(_0x32de26,_0x610020){return _0x32de26 in _0x610020;},'kNvvh':function(_0x2a5986,_0x32a946){return _0x2a5986===_0x32a946;},'QvjWG':function(_0x36125a,_0x2e6ea1){return _0x36125a(_0x2e6ea1);}},_0x1d4bde=readProjectsConfig(),_0x197495=_0x1d4bde[_0x38f55b(0x149)][_0x395f6b];if(!_0x197495?.['profiles'])return;if(!_0x2226ac['PNPoV'](_0xa8e106,_0x197495[_0x38f55b(0x14f)]))return;delete _0x197495[_0x38f55b(0x14f)][_0xa8e106],_0x2226ac[_0x38f55b(0x163)](Object[_0x38f55b(0x13a)](_0x197495[_0x38f55b(0x14f)])[_0x38f55b(0x13c)],0x0)&&(!_0x197495[_0x38f55b(0x159)]?delete _0x1d4bde[_0x38f55b(0x149)][_0x395f6b]:_0x197495[_0x38f55b(0x14f)]={}),_0x2226ac[_0x38f55b(0x147)](writeProjectsConfig,_0x1d4bde);}export function readLastProfile(_0x30af4c){const _0x437dea=_0x5717,_0x5ef441={'VWKdZ':function(_0x4c490c){return _0x4c490c();}},_0x1da170=_0x5ef441[_0x437dea(0x160)](readProjectsConfig),_0x3e0972=_0x1da170['projects'][_0x30af4c];return _0x3e0972?.['lastProfile']??null;}export function writeLastProfile(_0x1eb32a,_0x12ee4a){const _0x423319=_0x5717,_0x15ec2c={'hAgJW':function(_0x42d263){return _0x42d263();}},_0x824f16=_0x15ec2c['hAgJW'](readProjectsConfig),_0x1d9fd9=_0x824f16[_0x423319(0x149)][_0x1eb32a]??={};_0x1d9fd9[_0x423319(0x159)]=_0x12ee4a,writeProjectsConfig(_0x824f16);}export function clearLastProfile(_0x2cd0df,_0x105dc5){const _0x59d2cd=_0x5717,_0x5adefb={'lWYGk':function(_0x211084){return _0x211084();},'JqHlz':function(_0x15767b,_0x56d05b){return _0x15767b===_0x56d05b;}},_0x4d43fa=_0x5adefb[_0x59d2cd(0x135)](readProjectsConfig),_0x46e24e=_0x4d43fa[_0x59d2cd(0x149)][_0x2cd0df];if(!_0x46e24e||_0x46e24e['lastProfile']!==_0x105dc5)return![];return delete _0x46e24e['lastProfile'],(!_0x46e24e[_0x59d2cd(0x14f)]||_0x5adefb['JqHlz'](Object['keys'](_0x46e24e['profiles'])[_0x59d2cd(0x13c)],0x0))&&delete _0x4d43fa[_0x59d2cd(0x149)][_0x2cd0df],writeProjectsConfig(_0x4d43fa),!![];}export function mergeCloudProfileSettings(_0x5ac5cf,_0x14b78e){const _0x42230f=_0x5717,_0x4d9f5c={'zoViQ':function(_0x538f71,_0x331e91){return _0x538f71===_0x331e91;},'PwSqz':_0x42230f(0x164),'fncqm':function(_0x30d29,_0xb77333){return _0x30d29(_0xb77333);},'lmjgq':function(_0x36e319,_0x3055b4){return _0x36e319!==_0x3055b4;}},_0x3a1505={..._0x5ac5cf??{}};if(!_0x14b78e)return _0x3a1505;for(const [_0x28bd6b,_0x5bd592]of Object['entries'](_0x14b78e)){if(_0x5bd592===undefined)continue;if(_0x4d9f5c[_0x42230f(0x157)](_0x5bd592,null)){delete _0x3a1505[_0x28bd6b];continue;}if(_0x4d9f5c['zoViQ'](_0x28bd6b,'headers')||_0x28bd6b===_0x4d9f5c[_0x42230f(0x144)]){const _0x241ece=asRecord(_0x3a1505[_0x28bd6b])??{},_0x3e0970=_0x4d9f5c['fncqm'](asRecord,_0x5bd592);if(!_0x3e0970){_0x3a1505[_0x28bd6b]=_0x5bd592;continue;}const _0x5bafa1={..._0x241ece};for(const [_0x1ef530,_0x4a4880]of Object[_0x42230f(0x139)](_0x3e0970)){if(_0x4a4880===null)delete _0x5bafa1[_0x1ef530];else _0x4d9f5c[_0x42230f(0x14e)](_0x4a4880,undefined)&&(_0x5bafa1[_0x1ef530]=_0x4a4880);}_0x3a1505[_0x28bd6b]=_0x5bafa1;continue;}_0x3a1505[_0x28bd6b]=_0x5bd592;}return _0x3a1505;}function _0x5717(_0x5cde0f,_0x176655){_0x5cde0f=_0x5cde0f-0x135;const _0x19d00f=_0x19d0();let _0x571762=_0x19d00f[_0x5cde0f];return _0x571762;}function asRecord(_0x371321){return _0x371321&&typeof _0x371321==='object'&&!Array['isArray'](_0x371321)?_0x371321:undefined;}function setByKeyPath(_0x471758,_0x50625a,_0x56c853){const _0xe5cfab=_0x5717,_0x62d7c6={'TJlHA':function(_0x124362,_0x3b0532){return _0x124362<_0x3b0532;},'DZGbf':'object'},_0x552e23=_0x50625a[_0xe5cfab(0x14a)]('.');let _0x1ce8c9=_0x471758;for(let _0xb2f74e=0x0;_0x62d7c6['TJlHA'](_0xb2f74e,_0x552e23['length']-0x1);_0xb2f74e++){const _0x17ed9d=_0x552e23[_0xb2f74e],_0x504c28=_0x1ce8c9[_0x17ed9d];(!_0x504c28||typeof _0x504c28!==_0x62d7c6['DZGbf']||Array[_0xe5cfab(0x14b)](_0x504c28))&&(_0x1ce8c9[_0x17ed9d]={}),_0x1ce8c9=_0x1ce8c9[_0x17ed9d];}_0x1ce8c9[_0x552e23[_0x552e23[_0xe5cfab(0x13c)]-0x1]]=_0x56c853;}function deleteByKeyPath(_0x36369c,_0x1113aa){const _0x3c662e=_0x5717,_0x13f50e={'PIiOi':function(_0x535c43,_0x32b77f){return _0x535c43<_0x32b77f;},'xZwAG':function(_0x50189f,_0x2a03b5){return _0x50189f-_0x2a03b5;}},_0x1ab0c0=_0x1113aa['split']('.');let _0x2777b6=_0x36369c;for(let _0x2dac89=0x0;_0x13f50e['PIiOi'](_0x2dac89,_0x1ab0c0['length']-0x1);_0x2dac89++){const _0x257da1=_0x1ab0c0[_0x2dac89],_0x52d081=_0x2777b6[_0x257da1];if(!_0x52d081||typeof _0x52d081!=='object'||Array[_0x3c662e(0x14b)](_0x52d081))return![];_0x2777b6=_0x52d081;}const _0x359f8c=_0x1ab0c0[_0x13f50e['xZwAG'](_0x1ab0c0['length'],0x1)];if(!(_0x359f8c in _0x2777b6))return![];return delete _0x2777b6[_0x359f8c],!![];}
|
|
1
|
+
(function(_0x162420,_0x470064){const _0x423efa=_0x5900,_0x52e68c=_0x162420();while(!![]){try{const _0x13f7c1=-parseInt(_0x423efa(0x91))/0x1*(parseInt(_0x423efa(0x84))/0x2)+parseInt(_0x423efa(0xa6))/0x3+parseInt(_0x423efa(0x8f))/0x4+parseInt(_0x423efa(0xa2))/0x5+-parseInt(_0x423efa(0x90))/0x6*(-parseInt(_0x423efa(0x9a))/0x7)+parseInt(_0x423efa(0x8d))/0x8+-parseInt(_0x423efa(0xaa))/0x9*(parseInt(_0x423efa(0x87))/0xa);if(_0x13f7c1===_0x470064)break;else _0x52e68c['push'](_0x52e68c['shift']());}catch(_0x34c41f){_0x52e68c['push'](_0x52e68c['shift']());}}}(_0x454e,0x73e53));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x27593c=_0x5900,_0x3c6732={'gCCDS':function(_0x213df6,_0x57634b,_0xd0224d){return _0x213df6(_0x57634b,_0xd0224d);},'kBLhi':_0x27593c(0x92)};return _0x3c6732[_0x27593c(0xa7)](join,getRangerHomeDir(),_0x3c6732[_0x27593c(0xb0)]);}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x3a61f1=_0x5900,_0x169065={'kNkzp':function(_0x39ec22){return _0x39ec22();},'oxUXF':function(_0x580c48,_0x5c9827){return _0x580c48(_0x5c9827);},'vYayL':function(_0x2abfc8,_0x3186db,_0x4ce625){return _0x2abfc8(_0x3186db,_0x4ce625);},'MvNaq':function(_0x4f9606,_0x261a07){return _0x4f9606(_0x261a07);},'anHpJ':function(_0x61c7f9,_0x283dcb){return _0x61c7f9!==_0x283dcb;},'HRarl':'object','BngMI':function(_0x190200,_0x10d8d3){return _0x190200===_0x10d8d3;}},_0x115b1a=_0x169065[_0x3a61f1(0x93)](getProjectsConfigPath);if(!_0x169065[_0x3a61f1(0xad)](existsSync,_0x115b1a))return _0x169065[_0x3a61f1(0x93)](emptyConfig);let _0x51fc86;try{_0x51fc86=_0x169065['vYayL'](readFileSync,_0x115b1a,_0x3a61f1(0xa0));}catch(_0x1ff879){const _0x22896c=_0x1ff879 instanceof Error?_0x1ff879['message']:_0x169065['MvNaq'](String,_0x1ff879);return console['warn']('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x115b1a+':\x20'+_0x22896c+_0x3a61f1(0x96)),emptyConfig();}let _0x1c92c2;try{_0x1c92c2=JSON[_0x3a61f1(0x97)](_0x51fc86);}catch(_0x4acf33){const _0x78b737=_0x4acf33 instanceof Error?_0x4acf33[_0x3a61f1(0x9d)]:String(_0x4acf33);return console[_0x3a61f1(0xa3)]('[ranger]\x20Warning:\x20'+_0x115b1a+'\x20is\x20not\x20valid\x20JSON\x20('+_0x78b737+').\x20Ignoring\x20local\x20profile\x20overrides.'),_0x169065['kNkzp'](emptyConfig);}if(!_0x1c92c2||_0x169065['anHpJ'](typeof _0x1c92c2,_0x169065['HRarl'])||Array['isArray'](_0x1c92c2)||_0x169065['anHpJ'](_0x1c92c2[_0x3a61f1(0x80)],CURRENT_VERSION)||typeof _0x1c92c2['projects']!==_0x169065['HRarl']||_0x169065[_0x3a61f1(0xb1)](_0x1c92c2['projects'],null)||Array[_0x3a61f1(0x88)](_0x1c92c2[_0x3a61f1(0xab)]))return console['warn'](_0x3a61f1(0xac)+_0x115b1a+_0x3a61f1(0x83)),emptyConfig();return _0x1c92c2;}export function writeProjectsConfig(_0x29afcb){const _0x3309df=_0x5900,_0x339f22={'kjFvP':function(_0x354b3d){return _0x354b3d();},'HvphO':function(_0x574b04,_0x5d3f95){return _0x574b04(_0x5d3f95);},'cpYpE':function(_0x2ad843,_0x4866d5){return _0x2ad843+_0x4866d5;},'OxMjt':_0x3309df(0xa0),'HjyVg':function(_0x243bd0,_0x54e25b){return _0x243bd0(_0x54e25b);},'XlUeQ':function(_0x5e9e07,_0x17fbaa){return _0x5e9e07(_0x17fbaa);}},_0x2e7d21=_0x339f22[_0x3309df(0xae)](getProjectsConfigPath),_0x392802=_0x339f22[_0x3309df(0x89)](dirname,_0x2e7d21);!existsSync(_0x392802)&&mkdirSync(_0x392802,{'recursive':!![]});const _0xe3a615=_0x2e7d21+'.'+process[_0x3309df(0x82)]+'.'+Date[_0x3309df(0xaf)]()+'.tmp',_0x5ddb0b=_0x339f22[_0x3309df(0x98)](JSON['stringify'](_0x29afcb,null,0x2),'\x0a');try{writeFileSync(_0xe3a615,_0x5ddb0b,{'encoding':_0x339f22['OxMjt'],'mode':0x180}),renameSync(_0xe3a615,_0x2e7d21);}catch(_0x5c0749){try{_0x339f22[_0x3309df(0x9b)](existsSync,_0xe3a615)&&_0x339f22[_0x3309df(0x94)](unlinkSync,_0xe3a615);}catch{}throw _0x5c0749;}}export function readProfileOverrides(_0x9f6927,_0x380da3){const _0x21fdbf=_0x5900,_0x5c593e={'RJIhg':function(_0x3894ce){return _0x3894ce();}},_0x250394=_0x5c593e[_0x21fdbf(0x8c)](readProjectsConfig),_0x55a2e5=_0x250394[_0x21fdbf(0xab)][_0x9f6927];if(!_0x55a2e5||!_0x55a2e5['profiles'])return null;const _0x67ccd0=_0x55a2e5['profiles'][_0x380da3];if(!_0x67ccd0||!_0x67ccd0[_0x21fdbf(0x9f)])return null;return _0x67ccd0['settings']??null;}export function setProfileOverride(_0x4d8b86,_0x2981d4,_0x37d803,_0x463e02){const _0x35482d=_0x5900,_0x20a7d8={'AMViX':function(_0x3611f4){return _0x3611f4();},'gDZYq':function(_0xa5b794,_0x5b7d75){return _0xa5b794(_0x5b7d75);}};if(!_0x37d803)throw new Error(_0x35482d(0x81));const _0x2e3d51=_0x20a7d8['AMViX'](readProjectsConfig),_0x524b47=_0x2e3d51['projects'][_0x4d8b86]??={},_0x41dd43=_0x524b47[_0x35482d(0x9e)]??={},_0x485999=_0x41dd43[_0x2981d4]??={},_0x5f047e=_0x485999['settings']??={};setByKeyPath(_0x5f047e,_0x37d803,_0x463e02),_0x20a7d8[_0x35482d(0x8b)](writeProjectsConfig,_0x2e3d51);}function _0x5900(_0x4aa38e,_0x53ed0a){_0x4aa38e=_0x4aa38e-0x7f;const _0x454e45=_0x454e();let _0x59002c=_0x454e45[_0x4aa38e];return _0x59002c;}export function unsetProfileOverride(_0x3e62e4,_0x5b25f4,_0x5388d3){const _0x4498ae=_0x5900,_0x46c984={'ZCeAY':_0x4498ae(0x81),'FhEbW':function(_0x39d885){return _0x39d885();}};if(!_0x5388d3)throw new Error(_0x46c984['ZCeAY']);const _0x141a3e=_0x46c984['FhEbW'](readProjectsConfig),_0x9ca653=_0x141a3e['projects'][_0x3e62e4];if(!_0x9ca653?.[_0x4498ae(0x9e)])return![];const _0x9ae671=_0x9ca653[_0x4498ae(0x9e)][_0x5b25f4];if(!_0x9ae671?.['settings'])return![];const _0x146936=deleteByKeyPath(_0x9ae671[_0x4498ae(0x9f)],_0x5388d3);if(!_0x146936)return![];return writeProjectsConfig(_0x141a3e),!![];}export function resetProfileOverrides(_0x2874ed,_0x3f6bc2){const _0x233929=_0x5900,_0x184dda={'sEhGw':function(_0x2676d0){return _0x2676d0();},'bjlWx':function(_0x4a99d5,_0x2f30df){return _0x4a99d5===_0x2f30df;},'nlOAD':function(_0x3d533e,_0x5a5b6b){return _0x3d533e(_0x5a5b6b);}},_0xc5a846=_0x184dda['sEhGw'](readProjectsConfig),_0x26d3c3=_0xc5a846['projects'][_0x2874ed];if(!_0x26d3c3?.['profiles'])return;if(!(_0x3f6bc2 in _0x26d3c3[_0x233929(0x9e)]))return;delete _0x26d3c3[_0x233929(0x9e)][_0x3f6bc2],_0x184dda['bjlWx'](Object[_0x233929(0x7f)](_0x26d3c3['profiles'])[_0x233929(0x86)],0x0)&&(!_0x26d3c3[_0x233929(0xa8)]?delete _0xc5a846['projects'][_0x2874ed]:_0x26d3c3[_0x233929(0x9e)]={}),_0x184dda[_0x233929(0xa9)](writeProjectsConfig,_0xc5a846);}export function readLastProfile(_0x1cc2df){const _0x15bee3=_0x5900,_0x209b39=readProjectsConfig(),_0x3b7350=_0x209b39['projects'][_0x1cc2df];return _0x3b7350?.[_0x15bee3(0xa8)]??null;}export function writeLastProfile(_0x444f89,_0x4ac807){const _0x373b3f=_0x5900,_0x3c300b=readProjectsConfig(),_0x1735dd=_0x3c300b[_0x373b3f(0xab)][_0x444f89]??={};_0x1735dd['lastProfile']=_0x4ac807,writeProjectsConfig(_0x3c300b);}export function clearLastProfile(_0x5ea3bb,_0x522e95){const _0x2befb2=_0x5900,_0x5cd990={'LHLLT':function(_0x514a8b,_0x3d72d0){return _0x514a8b(_0x3d72d0);}},_0x3b71fa=readProjectsConfig(),_0x30a357=_0x3b71fa['projects'][_0x5ea3bb];if(!_0x30a357||_0x30a357[_0x2befb2(0xa8)]!==_0x522e95)return![];return delete _0x30a357[_0x2befb2(0xa8)],(!_0x30a357['profiles']||Object['keys'](_0x30a357['profiles'])['length']===0x0)&&delete _0x3b71fa[_0x2befb2(0xab)][_0x5ea3bb],_0x5cd990['LHLLT'](writeProjectsConfig,_0x3b71fa),!![];}export function mergeCloudProfileSettings(_0x486da6,_0x1a2094){const _0x572fa4=_0x5900,_0x1cc00d={'KBMOx':function(_0x28ce72,_0x5d0b82){return _0x28ce72===_0x5d0b82;},'xedIz':_0x572fa4(0x8e),'QvhFv':function(_0x2b2494,_0x3e27a1){return _0x2b2494(_0x3e27a1);},'MDONS':function(_0x506c02,_0x25365e){return _0x506c02===_0x25365e;}},_0x190353={..._0x486da6??{}};if(!_0x1a2094)return _0x190353;for(const [_0x47663a,_0x597608]of Object['entries'](_0x1a2094)){if(_0x597608===undefined)continue;if(_0x1cc00d['KBMOx'](_0x597608,null)){delete _0x190353[_0x47663a];continue;}if(_0x47663a==='headers'||_0x47663a===_0x1cc00d['xedIz']){const _0x4be2fa=_0x1cc00d[_0x572fa4(0x85)](asRecord,_0x190353[_0x47663a])??{},_0x78645a=asRecord(_0x597608);if(!_0x78645a){_0x190353[_0x47663a]=_0x597608;continue;}const _0x3d49da={..._0x4be2fa};for(const [_0x574dc7,_0xb39fc1]of Object[_0x572fa4(0x95)](_0x78645a)){if(_0x1cc00d['MDONS'](_0xb39fc1,null))delete _0x3d49da[_0x574dc7];else _0xb39fc1!==undefined&&(_0x3d49da[_0x574dc7]=_0xb39fc1);}_0x190353[_0x47663a]=_0x3d49da;continue;}_0x190353[_0x47663a]=_0x597608;}return _0x190353;}function asRecord(_0x3e0333){const _0x245b86=_0x5900,_0x254c96={'QNCvp':function(_0x3b3776,_0x25663e){return _0x3b3776===_0x25663e;}};return _0x3e0333&&_0x254c96['QNCvp'](typeof _0x3e0333,_0x245b86(0xa1))&&!Array['isArray'](_0x3e0333)?_0x3e0333:undefined;}function setByKeyPath(_0x3a008b,_0x39ac0b,_0x4f2266){const _0x26a0bc=_0x5900,_0x40432d={'Ylhhf':function(_0x594198,_0x36bcdd){return _0x594198-_0x36bcdd;},'iJcUP':function(_0x1db052,_0x24d68e){return _0x1db052!==_0x24d68e;},'lbpNq':_0x26a0bc(0xa1),'rSUBJ':function(_0xbc499d,_0x461ffc){return _0xbc499d-_0x461ffc;}},_0x3e644a=_0x39ac0b[_0x26a0bc(0xa5)]('.');let _0x3697a8=_0x3a008b;for(let _0x3d02ec=0x0;_0x3d02ec<_0x40432d[_0x26a0bc(0xa4)](_0x3e644a['length'],0x1);_0x3d02ec++){const _0x4b8ccc=_0x3e644a[_0x3d02ec],_0x534df6=_0x3697a8[_0x4b8ccc];(!_0x534df6||_0x40432d['iJcUP'](typeof _0x534df6,_0x40432d[_0x26a0bc(0x99)])||Array[_0x26a0bc(0x88)](_0x534df6))&&(_0x3697a8[_0x4b8ccc]={}),_0x3697a8=_0x3697a8[_0x4b8ccc];}_0x3697a8[_0x3e644a[_0x40432d['rSUBJ'](_0x3e644a[_0x26a0bc(0x86)],0x1)]]=_0x4f2266;}function deleteByKeyPath(_0x527672,_0x1e6178){const _0x2b3baf=_0x5900,_0x360d15={'ZrWqT':function(_0x9e869b,_0x41b284){return _0x9e869b<_0x41b284;},'iQBqK':_0x2b3baf(0xa1),'DNMxn':function(_0x1d3fda,_0x524780){return _0x1d3fda in _0x524780;}},_0x62da3b=_0x1e6178['split']('.');let _0x3de044=_0x527672;for(let _0x87184a=0x0;_0x360d15[_0x2b3baf(0x9c)](_0x87184a,_0x62da3b['length']-0x1);_0x87184a++){const _0x2cc9a6=_0x62da3b[_0x87184a],_0x2533b7=_0x3de044[_0x2cc9a6];if(!_0x2533b7||typeof _0x2533b7!==_0x360d15[_0x2b3baf(0xb2)]||Array['isArray'](_0x2533b7))return![];_0x3de044=_0x2533b7;}const _0x18ee9f=_0x62da3b[_0x62da3b[_0x2b3baf(0x86)]-0x1];if(!_0x360d15[_0x2b3baf(0x8a)](_0x18ee9f,_0x3de044))return![];return delete _0x3de044[_0x18ee9f],!![];}function _0x454e(){const _0x51e7eb=['DNMxn','gDZYq','RJIhg','4505968KakHrB','setupHeaders','2344276EQzBLN','6RsKXBa','1IZqCmN','projects.json','kNkzp','XlUeQ','entries','.\x20Ignoring\x20local\x20profile\x20overrides.','parse','cpYpE','lbpNq','1234184MPSRvZ','HjyVg','ZrWqT','message','profiles','settings','utf-8','object','1041555ayQxRx','warn','Ylhhf','split','2762445qiYjuF','gCCDS','lastProfile','nlOAD','200097BQCvCi','projects','[ranger]\x20Warning:\x20','oxUXF','kjFvP','now','kBLhi','BngMI','iQBqK','keys','version','keyPath\x20is\x20required','pid','\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.','358346rvLcFg','QvhFv','length','810litBJM','isArray','HvphO'];_0x454e=function(){return _0x51e7eb;};return _0x454e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3d4526,_0x54c75d){const _0x30cdfe=_0x1786,_0x1014d7=_0x3d4526();while(!![]){try{const _0x414dbd=-parseInt(_0x30cdfe(0xc1))/0x1*(-parseInt(_0x30cdfe(0xbf))/0x2)+parseInt(_0x30cdfe(0xb4))/0x3+parseInt(_0x30cdfe(0xc5))/0x4+parseInt(_0x30cdfe(0xb9))/0x5+-parseInt(_0x30cdfe(0xc2))/0x6*(parseInt(_0x30cdfe(0xbd))/0x7)+-parseInt(_0x30cdfe(0xbb))/0x8+parseInt(_0x30cdfe(0xc0))/0x9*(-parseInt(_0x30cdfe(0xc3))/0xa);if(_0x414dbd===_0x54c75d)break;else _0x1014d7['push'](_0x1014d7['shift']());}catch(_0x19f8d0){_0x1014d7['push'](_0x1014d7['shift']());}}}(_0x47c3,0xbb5c4));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){return join(getRangerDir(),'config.json');}function _0x1786(_0x5bae5b,_0xdc9e0b){_0x5bae5b=_0x5bae5b-0xb3;const _0x47c3ba=_0x47c3();let _0x17863d=_0x47c3ba[_0x5bae5b];return _0x17863d;}export async function loadRangerConfig(){const _0x347106=_0x1786,_0x2c73d2={'RhQJu':function(_0xa7f895){return _0xa7f895();},'zgRBK':function(_0x34779a,_0x3e6e13,_0x5cdd43){return _0x34779a(_0x3e6e13,_0x5cdd43);},'RixAO':_0x347106(0xb6),'XFubd':function(_0x34d5d9,_0x336221){return _0x34d5d9!==_0x336221;},'XxCtk':_0x347106(0xb7)},_0x24d78c=_0x2c73d2[_0x347106(0xb8)](getRangerConfigPath);if(!existsSync(_0x24d78c))return{};try{const _0x4ee89c=await _0x2c73d2[_0x347106(0xb5)](readFile,_0x24d78c,_0x2c73d2[_0x347106(0xbc)]),_0x2ce4df=JSON['parse'](_0x4ee89c);if(!_0x2ce4df||_0x2c73d2['XFubd'](typeof _0x2ce4df,'object')||Array[_0x347106(0xbe)](_0x2ce4df))return{};const _0x505850={},_0x5edc78=_0x2ce4df[_0x347106(0xc4)];return typeof _0x5edc78===_0x2c73d2['XxCtk']&&(_0x505850[_0x347106(0xc4)]=_0x5edc78),_0x505850;}catch(_0x15894a){const _0xec8550=_0x15894a instanceof Error?_0x15894a[_0x347106(0xba)]:String(_0x15894a);return console[_0x347106(0xb3)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x24d78c+':\x20'+_0xec8550),{};}}function _0x47c3(){const _0x1f8e97=['string','RhQJu','4529405yxXiou','message','4006304dYOpwe','RixAO','91AUPoCV','isArray','982vytwYS','1487484UXpabO','1954ecuSps','298308QjnJyl','100VJhMTq','model','5962832ACSKoz','warn','633921HYmTSZ','zgRBK','utf-8'];_0x47c3=function(){return _0x1f8e97;};return _0x47c3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x100c41,_0xf855fb){const _0x5ee615=_0x3ad4,_0xa35ac=_0x100c41();while(!![]){try{const _0x535dd6=parseInt(_0x5ee615(0x15f))/0x1+-parseInt(_0x5ee615(0x14d))/0x2*(parseInt(_0x5ee615(0x155))/0x3)+parseInt(_0x5ee615(0x157))/0x4*(parseInt(_0x5ee615(0x14b))/0x5)+parseInt(_0x5ee615(0x15e))/0x6*(parseInt(_0x5ee615(0x14e))/0x7)+parseInt(_0x5ee615(0x158))/0x8+parseInt(_0x5ee615(0x154))/0x9+-parseInt(_0x5ee615(0x14f))/0xa*(parseInt(_0x5ee615(0x15b))/0xb);if(_0x535dd6===_0xf855fb)break;else _0xa35ac['push'](_0xa35ac['shift']());}catch(_0x5905f9){_0xa35ac['push'](_0xa35ac['shift']());}}}(_0x47cb,0x59373));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x4c420e=_0x3ad4,_0x381bba={'aJxUq':function(_0x501c6d,_0x2425bf){return _0x501c6d(_0x2425bf);},'HYTSO':function(_0x4df333,_0x59fced,_0x1b900f){return _0x4df333(_0x59fced,_0x1b900f);},'ftITt':'.ranger','LukqU':function(_0xd4fc7a,_0x3617fb){return _0xd4fc7a(_0x3617fb);},'Cbbet':function(_0x149202,_0xf03ba1,_0xf72170){return _0x149202(_0xf03ba1,_0xf72170);},'uJblS':function(_0x70aa20){return _0x70aa20();}};let _0xb3f93e=process['cwd']();const _0x21eb1c=_0x381bba[_0x4c420e(0x151)](parse,_0xb3f93e)[_0x4c420e(0x160)];while(_0xb3f93e!==_0x21eb1c){if(_0x381bba[_0x4c420e(0x151)](existsSync,_0x381bba['HYTSO'](join,_0xb3f93e,_0x381bba[_0x4c420e(0x159)])))return _0xb3f93e;_0xb3f93e=_0x381bba[_0x4c420e(0x15c)](dirname,_0xb3f93e);}if(_0x381bba[_0x4c420e(0x15c)](existsSync,_0x381bba['Cbbet'](join,_0x21eb1c,_0x4c420e(0x156))))return _0x21eb1c;const _0x288fe2=_0x381bba['uJblS'](findGitRoot);if(_0x288fe2)return _0x288fe2;return process['cwd']();}export function getRangerDir(){const _0x5a3236=_0x3ad4,_0x1c5050={'huJNr':function(_0x57b647,_0xfefcc,_0x4e5938){return _0x57b647(_0xfefcc,_0x4e5938);},'pRhKx':function(_0x37d4bf){return _0x37d4bf();}};return _0x1c5050[_0x5a3236(0x150)](join,_0x1c5050[_0x5a3236(0x153)](getRangerRoot),_0x5a3236(0x156));}export function findGitRoot(){const _0xb35e1d=_0x3ad4,_0x1b378={'dGokj':function(_0xd63635,_0x6c2be9){return _0xd63635(_0x6c2be9);},'FYZAf':function(_0x1c0b38,_0x4dda97,_0x8feb7b){return _0x1c0b38(_0x4dda97,_0x8feb7b);},'nBMZv':function(_0x1b1baa,_0x3d52ef){return _0x1b1baa(_0x3d52ef);},'FhRza':function(_0x1a69d5,_0x21cc52,_0x35c2c6){return _0x1a69d5(_0x21cc52,_0x35c2c6);},'NROMe':'.git'};let _0x133f3e=process['cwd']();const _0x37bf30=parse(_0x133f3e)[_0xb35e1d(0x160)];while(_0x133f3e!==_0x37bf30){if(_0x1b378['dGokj'](existsSync,_0x1b378['FYZAf'](join,_0x133f3e,'.git')))return _0x133f3e;_0x133f3e=_0x1b378[_0xb35e1d(0x15d)](dirname,_0x133f3e);}if(_0x1b378[_0xb35e1d(0x14c)](existsSync,_0x1b378[_0xb35e1d(0x15a)](join,_0x37bf30,_0x1b378[_0xb35e1d(0x152)])))return _0x37bf30;return null;}export function getRangerHomeDir(){const _0x7c0a3=_0x3ad4;return join(homedir(),_0x7c0a3(0x156));}function _0x3ad4(_0x420919,_0x272dda){_0x420919=_0x420919-0x14b;const _0x47cbb1=_0x47cb();let _0x3ad48c=_0x47cbb1[_0x420919];return _0x3ad48c;}function _0x47cb(){const _0x178ff8=['1001566ipWcjd','2170FdZTFo','160790bImLWz','huJNr','aJxUq','NROMe','pRhKx','6198966RFyEgp','3DiUOEL','.ranger','2582248IwksjR','336672kMkczd','ftITt','FhRza','858dXLuNA','LukqU','dGokj','12774uXibVV','83962YYLSdi','root','5TLXQoT','nBMZv'];_0x47cb=function(){return _0x178ff8;};return _0x47cb();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x57c8e1=_0x3f68;(function(_0x47e2d5,_0x2fd9f3){const _0x3f279d=_0x3f68,_0x2d607f=_0x47e2d5();while(!![]){try{const _0x2f4759=parseInt(_0x3f279d(0xe6))/0x1+-parseInt(_0x3f279d(0xef))/0x2+parseInt(_0x3f279d(0xc7))/0x3+parseInt(_0x3f279d(0xe9))/0x4*(parseInt(_0x3f279d(0xbf))/0x5)+-parseInt(_0x3f279d(0xe5))/0x6+parseInt(_0x3f279d(0xd0))/0x7*(parseInt(_0x3f279d(0xe8))/0x8)+-parseInt(_0x3f279d(0xd6))/0x9;if(_0x2f4759===_0x2fd9f3)break;else _0x2d607f['push'](_0x2d607f['shift']());}catch(_0x1d83c8){_0x2d607f['push'](_0x2d607f['shift']());}}}(_0x2219,0x40917));import{spawn}from'child_process';import{createRequire}from'module';import{dirname,join}from'path';import{readFileSync}from'fs';import{quoteShellArg}from'./playwrightCli.js';export const RANGERWRIGHT_CLI_PACKAGE=_0x57c8e1(0xde);export const RANGERWRIGHT_CLI_BINARY=_0x57c8e1(0xcb);function _0x3f68(_0x3b6bb3,_0x41b15f){_0x3b6bb3=_0x3b6bb3-0xbf;const _0x2219ca=_0x2219();let _0x3f686b=_0x2219ca[_0x3b6bb3];return _0x3f686b;}function readPackageJson(_0xc3c4ca){const _0x3becc4=_0x57c8e1,_0x4340fc={'fYTAm':function(_0x35cc1a,_0x4bfd2c,_0x2eb28c){return _0x35cc1a(_0x4bfd2c,_0x2eb28c);},'zduIq':_0x3becc4(0xda),'FOipV':'object'},_0x4718d9=_0x4340fc[_0x3becc4(0xd9)](readFileSync,_0xc3c4ca,_0x4340fc[_0x3becc4(0xc3)]),_0x3751db=JSON[_0x3becc4(0xe4)](_0x4718d9);if(!_0x3751db||typeof _0x3751db!==_0x4340fc['FOipV'])return{};return _0x3751db;}export function resolveRangerwrightCliBinary(){const _0x3b51dd=_0x57c8e1,_0xbefed0={'RhQRH':function(_0x4c10e9,_0x1a7670){return _0x4c10e9(_0x1a7670);},'JFQNB':function(_0x897b7c,_0x1ccc82,_0x1ec980){return _0x897b7c(_0x1ccc82,_0x1ec980);},'fZOgw':function(_0x4fff55,_0x5f5428){return _0x4fff55===_0x5f5428;}},_0x368055=_0xbefed0[_0x3b51dd(0xe0)](createRequire,process['argv'][0x1]||_0xbefed0[_0x3b51dd(0xea)](join,process[_0x3b51dd(0xd5)](),'package.json')),_0x31f5ad=_0x368055['resolve'](RANGERWRIGHT_CLI_PACKAGE+'/package.json'),_0x436cc0=dirname(_0x31f5ad),_0x2c928b=readPackageJson(_0x31f5ad),_0x283958=_0xbefed0[_0x3b51dd(0xe2)](typeof _0x2c928b[_0x3b51dd(0xdb)],'string')?_0x2c928b['bin']:_0x2c928b[_0x3b51dd(0xdb)]?.[RANGERWRIGHT_CLI_BINARY];if(!_0x283958)throw new Error(RANGERWRIGHT_CLI_PACKAGE+'\x20does\x20not\x20expose\x20a\x20'+RANGERWRIGHT_CLI_BINARY+_0x3b51dd(0xc1));return _0xbefed0[_0x3b51dd(0xea)](join,_0x436cc0,_0x283958);}export function buildRangerwrightCliEnv(_0x899c16){const _0xea158d=_0x57c8e1;return{'RANGERWRIGHT_SESSION':_0x899c16[_0xea158d(0xc9)],'RANGERWRIGHT_CONFIG':_0x899c16['configPath'],'RANGERWRIGHT_ARTIFACT_DIR':_0x899c16[_0xea158d(0xec)],..._0x899c16[_0xea158d(0xe3)]?{'RANGERWRIGHT_SOCKET_PATH':_0x899c16[_0xea158d(0xe3)]}:{}};}export function applyRangerwrightCliEnv(_0x18a657,_0x410153){const _0x25bf31=_0x57c8e1,_0x147b9c={'antPC':function(_0x5b5447,_0x1d9fec){return _0x5b5447(_0x1d9fec);}};Object[_0x25bf31(0xe1)](_0x18a657,_0x147b9c[_0x25bf31(0xdc)](buildRangerwrightCliEnv,_0x410153));}export function buildRangerwrightCliCommandPrefix(_0x3c894d=resolveRangerwrightCliBinary()){const _0x2e9184=_0x57c8e1;return quoteShellArg(_0x3c894d)+_0x2e9184(0xc5);}function getRangerwrightSubcommand(_0x4b8e7d){const _0x51b337=_0x57c8e1,_0x33a05f={'NSlGF':'unknown'};return _0x4b8e7d[0x0]??_0x33a05f[_0x51b337(0xdd)];}export function buildRangerwrightCliInvocation(_0x227ff9,_0x55f9da){const _0x2183c6=_0x57c8e1,_0x5a4e57={'zGphZ':function(_0x48ca54){return _0x48ca54();},'tnKtZ':function(_0x301426,_0x58c97b){return _0x301426(_0x58c97b);},'MjogN':'--json'},_0x4377dc=_0x227ff9['binaryPath']??_0x5a4e57['zGphZ'](resolveRangerwrightCliBinary),_0x45c74a=[_0x2183c6(0xc4),..._0x55f9da];return{'command':_0x4377dc,'args':_0x45c74a,'shellCommand':[_0x5a4e57[_0x2183c6(0xcf)](quoteShellArg,_0x4377dc),_0x5a4e57[_0x2183c6(0xd3)],..._0x55f9da[_0x2183c6(0xc2)](quoteShellArg)][_0x2183c6(0xce)]('\x20'),'subcommand':_0x5a4e57[_0x2183c6(0xcf)](getRangerwrightSubcommand,_0x55f9da)};}function truncateOutput(_0x429bdc,_0x51eb8e=0x7d0){const _0x58cf0b={'chcnK':function(_0x51e48b,_0x31c5a8){return _0x51e48b>_0x31c5a8;},'fbFRT':function(_0x1c0b5,_0x535c0b){return _0x1c0b5+_0x535c0b;}};return _0x58cf0b['chcnK'](_0x429bdc['length'],_0x51eb8e)?_0x58cf0b['fbFRT'](_0x429bdc['slice'](0x0,_0x51eb8e),'...'):_0x429bdc;}function _0x2219(){const _0x469f3b=['ignore','MjogN','SIGKILL','cwd','424854ZeNkCK','toString','subcommand','fYTAm','utf-8','bin','antPC','NSlGF','@ranger-testing/rangerwright','kill','RhQRH','assign','fZOgw','socketPath','parse','2478510TysTZl','88185dcuFkv','DcJBK','1019384uqifcp','10584JsLkgK','JFQNB','stderr','artifactDir','HEeak','\x0astdout:\x20','1029028IoZedn','745eZpsWn','close','\x20binary','map','zduIq','--json','\x20--json','BZWcs','1505973YeEQea','timeoutMs','sessionId','data','rangerwright','env','\x0astderr:\x20','join','tnKtZ','14sQaZTx','pipe'];_0x2219=function(){return _0x469f3b;};return _0x2219();}export async function runRangerwrightCliCommand(_0x354e6d){const _0x4fe83b=_0x57c8e1,_0x566d1f={'lfSqc':'SIGTERM','WxSrF':function(_0x1b2234,_0x4d3d98){return _0x1b2234(_0x4d3d98);},'SPYFk':_0x4fe83b(0xd1),'ZfMyW':function(_0x30efe6,_0x2659f9){return _0x30efe6>_0x2659f9;},'TeuCF':_0x4fe83b(0xc0),'DcJBK':function(_0x3ab3ea,_0x38a550,_0x64aa92){return _0x3ab3ea(_0x38a550,_0x64aa92);}},_0x574258=_0x566d1f[_0x4fe83b(0xe7)](buildRangerwrightCliInvocation,_0x354e6d,_0x354e6d['commandArgs']),_0x15432b={..._0x354e6d['env']??process[_0x4fe83b(0xcc)],...buildRangerwrightCliEnv(_0x354e6d)};return new Promise((_0xe79b32,_0x5cc577)=>{const _0x139a23=_0x4fe83b,_0x407bd1={'BZWcs':'null','HEeak':function(_0x4ac442,_0x286a0b){return _0x566d1f['WxSrF'](_0x4ac442,_0x286a0b);}},_0x18ce85=spawn(_0x574258['command'],_0x574258['args'],{'cwd':_0x354e6d[_0x139a23(0xd5)],'env':_0x15432b,'stdio':[_0x139a23(0xd2),_0x566d1f['SPYFk'],_0x139a23(0xd1)]});let _0x2e5d9b='',_0x368c51='',_0x41945=![];const _0x58b982=_0x354e6d[_0x139a23(0xc8)]&&_0x566d1f['ZfMyW'](_0x354e6d[_0x139a23(0xc8)],0x0)?setTimeout(()=>{const _0x516712=_0x139a23;_0x41945=!![],_0x18ce85[_0x516712(0xdf)](_0x566d1f['lfSqc']),setTimeout(()=>{const _0x1a96ae=_0x516712;try{_0x18ce85['kill'](_0x1a96ae(0xd4));}catch{}},0x3e8);},_0x354e6d['timeoutMs']):null;_0x18ce85['stdout']?.['on'](_0x139a23(0xca),_0x43a118=>{_0x2e5d9b+=_0x43a118['toString']();}),_0x18ce85[_0x139a23(0xeb)]?.['on'](_0x139a23(0xca),_0x3b6709=>{const _0x5a2dcc=_0x139a23;_0x368c51+=_0x3b6709[_0x5a2dcc(0xd7)]();}),_0x18ce85['on']('error',_0x7cdb33=>{if(_0x58b982)clearTimeout(_0x58b982);_0x5cc577(_0x7cdb33);}),_0x18ce85['on'](_0x566d1f['TeuCF'],(_0x28c94b,_0x465598)=>{const _0x321697=_0x139a23;if(_0x58b982)clearTimeout(_0x58b982);if(_0x28c94b===0x0){_0xe79b32({'stdout':_0x2e5d9b,'stderr':_0x368c51,'invocation':_0x574258});return;}const _0x5b8acd=_0x41945?'timed\x20out\x20after\x20'+_0x354e6d['timeoutMs']+'ms':'exited\x20with\x20code='+(_0x28c94b??_0x407bd1[_0x321697(0xc6)])+'\x20signal='+(_0x465598??_0x407bd1['BZWcs']);_0x407bd1[_0x321697(0xed)](_0x5cc577,new Error('rangerwright-cli\x20'+_0x574258[_0x321697(0xd8)]+'\x20'+_0x5b8acd+_0x321697(0xee)+_0x407bd1['HEeak'](truncateOutput,_0x2e5d9b)+_0x321697(0xcd)+truncateOutput(_0x368c51)));});});}export function parseRangerwrightCliCommand(_0x4a99ae){const _0x4f42fc=_0x4a99ae['match'](/(?:^|\s)(?:"[^"]*rangerwright"|'[^']*rangerwright'|\S*rangerwright)(?:\s+--json)?\s+([a-z-]+)/);return _0x4f42fc?.[0x1]??null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x20b3df,_0x5538cc){const _0x497d44=_0x61ce,_0x565137=_0x20b3df();while(!![]){try{const _0x524ca8=-parseInt(_0x497d44(0x1b2))/0x1*(-parseInt(_0x497d44(0x1c1))/0x2)+-parseInt(_0x497d44(0x1cf))/0x3+-parseInt(_0x497d44(0x1a1))/0x4+-parseInt(_0x497d44(0x1ae))/0x5*(parseInt(_0x497d44(0x1cd))/0x6)+-parseInt(_0x497d44(0x1c7))/0x7*(parseInt(_0x497d44(0x1bd))/0x8)+parseInt(_0x497d44(0x1c4))/0x9+parseInt(_0x497d44(0x1bf))/0xa;if(_0x524ca8===_0x5538cc)break;else _0x565137['push'](_0x565137['shift']());}catch(_0x9ba529){_0x565137['push'](_0x565137['shift']());}}}(_0x290e,0x5c415));import{existsSync}from'fs';import _0x23c304 from'inquirer';import{ApiError,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';function _0x61ce(_0x1aab59,_0x21048c){_0x1aab59=_0x1aab59-0x1a0;const _0x290ee8=_0x290e();let _0x61ce6d=_0x290ee8[_0x1aab59];return _0x61ce6d;}import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x86050a){const _0x2f39b5=_0x61ce,_0x53ea25={'lIGok':function(_0x36d1bc){return _0x36d1bc();},'uceTY':function(_0x144a14,_0x3f834c){return _0x144a14===_0x3f834c;},'UutIL':function(_0x300200,_0xf1e8c7){return _0x300200+_0xf1e8c7;},'TiUdB':function(_0x2cc4f8,_0x140234){return _0x2cc4f8+_0x140234;},'vIjcI':function(_0x3f3de3,_0x4ab092){return _0x3f3de3+_0x4ab092;},'WeXYd':_0x2f39b5(0x1a8),'zPAQz':_0x2f39b5(0x1ac),'WkkUl':'\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','oDHKC':_0x2f39b5(0x1b6),'FAHQa':function(_0x66d0d1,_0xb4129){return _0x66d0d1(_0xb4129);},'gCRex':function(_0x138ee7,_0x25ff84){return _0x138ee7 instanceof _0x25ff84;},'Pblnh':function(_0x5dd31a,_0x1c3401){return _0x5dd31a+_0x1c3401;},'JKQzR':'\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','iPIax':_0x2f39b5(0x1c5),'FKvZe':function(_0x291a76){return _0x291a76();},'dOrjN':_0x2f39b5(0x1bc),'hiaFb':'cloud','RklLd':_0x2f39b5(0x1a0),'GacMs':function(_0x509121,_0x3d26ea){return _0x509121===_0x3d26ea;},'uMyJq':function(_0x8b31d2,_0x18efc4,_0x57cf06){return _0x8b31d2(_0x18efc4,_0x57cf06);},'bTVgO':function(_0x57dcd9,_0x314914){return _0x57dcd9(_0x314914);},'ZYvTT':function(_0x1abbb1,_0x1059c2){return _0x1abbb1(_0x1059c2);},'yYSNV':function(_0x51636c,_0x596677){return _0x51636c(_0x596677);}},_0x5040d1=_0x86050a[_0x2f39b5(0x1cb)];let _0xb02f08=_0x86050a[_0x2f39b5(0x1cb)]??await readActiveProfileName(),_0x41acd7=null;if(!_0xb02f08&&process['env']['RANGER_TEST_USERNAME']){const _0x299792=await _0x53ea25[_0x2f39b5(0x1ad)](resolveAdHocProfile);_0x299792&&(_0xb02f08=_0x299792[_0x2f39b5(0x1c0)],_0x41acd7=_0x299792[_0x2f39b5(0x1cb)]);}if(!_0xb02f08)try{const _0x3f2bf7=await _0x53ea25[_0x2f39b5(0x1ad)](listCloudProfiles);if(_0x53ea25['uceTY'](_0x3f2bf7['length'],0x1)){const _0x204a98=_0x3f2bf7[0x0];_0xb02f08=_0x204a98['name'],console['log'](_0x2f39b5(0x1ba)+_0x204a98[_0x2f39b5(0x1c0)]),console['log'](_0x2f39b5(0x1a6));}}catch{}if(!_0xb02f08)throw new Error(_0x53ea25['UutIL'](_0x53ea25[_0x2f39b5(0x1a2)](_0x53ea25['vIjcI'](_0x53ea25[_0x2f39b5(0x1be)],_0x53ea25['zPAQz']),'\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a')+_0x53ea25['WkkUl'],_0x53ea25[_0x2f39b5(0x1bb)]));const _0xf19c46=_0x53ea25['FAHQa'](getEnvDir,_0xb02f08),_0x48bfcf=existsSync(_0xf19c46);let _0x301d16=_0x41acd7,_0x5f312b=![];if(!_0x301d16)try{_0x301d16=await _0x53ea25[_0x2f39b5(0x1a3)](fetchCloudProfile,_0xb02f08);if(!_0x301d16)_0x5f312b=!![];}catch(_0x781de){_0x53ea25[_0x2f39b5(0x1b4)](_0x781de,ApiError)&&_0x53ea25['uceTY'](_0x781de['status'],0x194)&&(_0x5f312b=!![]);}if(_0x5040d1&&_0x5f312b&&!_0x48bfcf&&!_0x301d16)throw new Error(_0x53ea25['Pblnh'](_0x2f39b5(0x1b5)+_0x5040d1+_0x2f39b5(0x1d0),_0x53ea25['JKQzR'])+_0x53ea25['iPIax']);if(_0x301d16&&_0x48bfcf){let _0x31262c=!![];if(_0x53ea25['FKvZe'](isInteractive)){const {source:_0x3424a7}=await _0x23c304[_0x2f39b5(0x1af)]([{'type':'list','name':_0x2f39b5(0x1c2),'message':'Profile\x20\x22'+_0xb02f08+_0x2f39b5(0x1b7),'choices':[{'name':_0x53ea25['dOrjN'],'value':_0x53ea25['hiaFb']},{'name':_0x53ea25[_0x2f39b5(0x1b9)],'value':'local'}],'default':_0x53ea25['hiaFb']}]);_0x31262c=_0x53ea25['GacMs'](_0x3424a7,_0x2f39b5(0x1c9));}if(!_0x31262c)_0x301d16=null;}const _0x67d36b=_0x53ea25['uMyJq'](readProfileOverrides,process['cwd'](),_0xb02f08);let _0x21d154=null,_0x16b685,_0x12f864,_0x3319ad,_0x3fbd80,_0x283d06=null,_0x43d6ed;const _0x1ce8c2=expandOverrides(_0x67d36b);if(_0x301d16){_0x21d154=_0x301d16;const _0x146dbc=_0x301d16[_0x2f39b5(0x1b0)]??{},_0x3487a0=_0x53ea25['uMyJq'](mergeCloudProfileSettings,_0x146dbc,_0x67d36b??undefined),_0x1dbe53={..._0x301d16,'settings':_0x3487a0},_0x73a277=process[_0x2f39b5(0x1ca)]['RANGER_SESSION_STATE_PATH'];if(_0x73a277){const _0x416c51='1|0|4|2|3'['split']('|');let _0x9dbcff=0x0;while(!![]){switch(_0x416c51[_0x9dbcff++]){case'0':_0x16b685=_0x73a277;continue;case'1':if(!existsSync(_0x73a277))throw new Error(_0x2f39b5(0x1aa)+_0x73a277+_0x2f39b5(0x1a5));continue;case'2':_0x3319ad=_0x53ea25[_0x2f39b5(0x1d2)](Boolean,_0x12f864[_0x2f39b5(0x1b1)]);continue;case'3':_0x283d06={'baseUrl':expandString(_0x146dbc['baseUrl']),'startPath':expandString(_0x146dbc['startPath'])};continue;case'4':_0x12f864=_0x53ea25[_0x2f39b5(0x1c6)](resolveEnvVars,_0x3487a0);continue;}break;}}else{const _0x47c245=await _0x53ea25['yYSNV'](resolveCloudProfileSession,_0x1dbe53);_0x16b685=_0x47c245['authPath'],_0x12f864=resolveEnvVars(_0x47c245['settings']),_0x3319ad=_0x53ea25[_0x2f39b5(0x1d2)](Boolean,_0x12f864[_0x2f39b5(0x1b1)]),_0x283d06={'baseUrl':expandString(_0x146dbc[_0x2f39b5(0x1a7)]),'startPath':expandString(_0x146dbc[_0x2f39b5(0x1c8)])},_0x43d6ed=_0x47c245[_0x2f39b5(0x1c3)]?.[_0x2f39b5(0x1b3)]?.[0x0];}}else{if(!_0x48bfcf)throw new Error(_0x2f39b5(0x1b5)+_0xb02f08+_0x2f39b5(0x1d1)+_0xb02f08);const _0x38c09a=await loadSettings(_0xb02f08);_0x12f864=resolveEnvVars(_0x38c09a),_0x3319ad=Boolean(_0x12f864['cdpEndpoint']),_0x3fbd80=_0x12f864[_0x2f39b5(0x1a7)];}const _0x134bdd=readUrlEnvVars(),_0x489b7f=resolveProfileUrl({'flagBaseUrl':_0x86050a['baseUrl'],'flagStartPath':_0x86050a['startPath'],'envBaseUrl':_0x134bdd['envBaseUrl'],'envStartPath':_0x134bdd[_0x2f39b5(0x1a4)],'localSettingsBaseUrl':_0x3fbd80,'projectOverrides':_0x1ce8c2,'cloudSettings':_0x283d06,'authEnvironmentDomain':_0x43d6ed}),_0x41d1ce=_0x489b7f['url']??_0x489b7f[_0x2f39b5(0x1a7)];if(!_0x41d1ce&&!_0x3319ad)throw new Error(_0x2f39b5(0x1a9)+_0xb02f08+_0x2f39b5(0x1b8)+_0xb02f08+'\x20baseUrl\x20<url>');return{'activeProfile':_0xb02f08,'resolvedCloudProfile':_0x21d154,'cloudAuthPath':_0x16b685,'resolvedSettings':_0x12f864,'isCdpMode':_0x3319ad,'url':_0x41d1ce,'startPath':_0x489b7f[_0x2f39b5(0x1c8)]};}function expandString(_0x2e6a82){const _0x4d876e=_0x61ce,_0x4d835a={'foOpy':function(_0x28e109,_0x56c571){return _0x28e109!==_0x56c571;},'imNOG':function(_0xb968c7,_0x1a71bc){return _0xb968c7(_0x1a71bc);}};if(_0x4d835a[_0x4d876e(0x1ce)](typeof _0x2e6a82,_0x4d876e(0x1ab)))return _0x2e6a82;return _0x4d835a['imNOG'](resolveEnvVars,_0x2e6a82);}function expandOverrides(_0x596bc3){const _0x4b538b=_0x61ce,_0x1dd037={'dAvZU':'string'};if(!_0x596bc3)return _0x596bc3;const _0x38ff1f={..._0x596bc3};return typeof _0x38ff1f['baseUrl']===_0x1dd037[_0x4b538b(0x1cc)]&&(_0x38ff1f[_0x4b538b(0x1a7)]=resolveEnvVars(_0x38ff1f[_0x4b538b(0x1a7)])),typeof _0x38ff1f[_0x4b538b(0x1c8)]===_0x1dd037['dAvZU']&&(_0x38ff1f[_0x4b538b(0x1c8)]=resolveEnvVars(_0x38ff1f['startPath'])),_0x38ff1f;}function _0x290e(){const _0x357ba8=['\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','RklLd','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','oDHKC','Cloud\x20profile\x20(recommended)','67720rswCjP','WeXYd','3816720vXYuIu','name','1294nwTQTv','source','resolvedEnv','955683lnQWjj','`ranger\x20profile\x20add`\x20to\x20create\x20one.','ZYvTT','98xlXCuF','startPath','cloud','env','profile','dAvZU','28404ITEwaA','foOpy','384207cLBCIk','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','bTVgO','Local\x20profile','949732haRCzn','TiUdB','FAHQa','envStartPath','\x20does\x20not\x20exist.','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','baseUrl','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','No\x20baseUrl\x20configured\x20for\x20profile\x20\x22','RANGER_SESSION_STATE_PATH=','string','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','lIGok','30eoAgnP','prompt','settings','cdpEndpoint','622EbDTOe','domains','gCRex','Profile\x20\x22','\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.'];_0x290e=function(){return _0x357ba8;};return _0x290e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x187ebb=_0x507c;(function(_0x1a00f2,_0x20f05a){const _0x116ac6=_0x507c,_0x2b681c=_0x1a00f2();while(!![]){try{const _0x3c6771=parseInt(_0x116ac6(0xb8))/0x1*(parseInt(_0x116ac6(0xc1))/0x2)+parseInt(_0x116ac6(0xb4))/0x3*(-parseInt(_0x116ac6(0xaa))/0x4)+-parseInt(_0x116ac6(0xb0))/0x5+-parseInt(_0x116ac6(0xaf))/0x6*(-parseInt(_0x116ac6(0xb1))/0x7)+-parseInt(_0x116ac6(0xb9))/0x8*(-parseInt(_0x116ac6(0xb7))/0x9)+-parseInt(_0x116ac6(0xbe))/0xa+parseInt(_0x116ac6(0xbd))/0xb*(parseInt(_0x116ac6(0xac))/0xc);if(_0x3c6771===_0x20f05a)break;else _0x2b681c['push'](_0x2b681c['shift']());}catch(_0x4d12ef){_0x2b681c['push'](_0x2b681c['shift']());}}}(_0x3749,0x50d6e));function firstDefined(..._0x5cd40e){const _0x552cd5={'hSNQM':function(_0x3efe13,_0x2e1d06){return _0x3efe13!==_0x2e1d06;}};for(const _0x374957 of _0x5cd40e){if(_0x374957!==undefined&&_0x552cd5['hSNQM'](_0x374957,null)&&_0x374957!=='')return _0x374957;}return undefined;}function _0x3749(){const _0x46246d=['startsWith','177196bXXwuG','RANGER_START_PATH','156kvlCmw','cloudSettings','test','1266hTbpcC','1338325aMTVMM','14959uFJifH','authEnvironmentDomain','string','42otZzpT','endsWith','UxDmD','27EvUCex','5OWLwGx','874736vwmrtQ','env','SuiVi','slice','654302iczuUT','6359750Yluoux','flagBaseUrl','projectOverrides','121098uwRqJu','TcQfI','RANGER_BASE_URL'];_0x3749=function(){return _0x46246d;};return _0x3749();}function _0x507c(_0x45b8e1,_0x9e5762){_0x45b8e1=_0x45b8e1-0xa9;const _0x374960=_0x3749();let _0x507c3f=_0x374960[_0x45b8e1];return _0x507c3f;}function normalizeAuthEnvironmentDomain(_0x2a39b6){const _0x366b2a=_0x507c;if(!_0x2a39b6)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0x366b2a(0xae)](_0x2a39b6))return _0x2a39b6;return'https://'+_0x2a39b6;}export function resolveBaseUrl(_0xbe239d){const _0x5d256e=_0x507c,_0xb65da0={'SuiVi':function(_0x562908,_0x2ac46d){return _0x562908 in _0x2ac46d;},'NiDGW':function(_0x195b0c,_0x111e5f){return _0x195b0c===_0x111e5f;},'JKema':_0x5d256e(0xb3)},_0x51a538=_0xbe239d[_0x5d256e(0xc0)],_0x485b20=!!_0x51a538&&_0xb65da0[_0x5d256e(0xbb)]('baseUrl',_0x51a538),_0xa7b687=_0x51a538?.['baseUrl'],_0x3b75ea=!(_0x485b20&&_0xb65da0['NiDGW'](_0xa7b687,null));return firstDefined(_0xbe239d[_0x5d256e(0xbf)],_0xbe239d['envBaseUrl'],_0xbe239d['localSettingsBaseUrl'],typeof _0xa7b687===_0xb65da0['JKema']?_0xa7b687:undefined,_0x3b75ea?_0xbe239d[_0x5d256e(0xad)]?.['baseUrl']:undefined,_0x3b75ea?normalizeAuthEnvironmentDomain(_0xbe239d[_0x5d256e(0xb2)]):undefined);}export function resolveStartPath(_0x5bbab9){const _0x349214=_0x507c,_0x1bb617={'BoSfl':'startPath'},_0x5443f6=_0x5bbab9[_0x349214(0xc0)],_0x11b9a2=!!_0x5443f6&&_0x1bb617['BoSfl']in _0x5443f6,_0x375c70=_0x5443f6?.['startPath'],_0x48bbfe=!(_0x11b9a2&&_0x375c70===null);return firstDefined(_0x5bbab9['flagStartPath'],_0x5bbab9['envStartPath'],typeof _0x375c70==='string'?_0x375c70:undefined,_0x48bbfe?_0x5bbab9[_0x349214(0xad)]?.['startPath']:undefined);}export function joinBaseAndPath(_0x53a60b,_0x2ecc31){const _0x312cbd=_0x507c;if(!_0x53a60b)return undefined;if(!_0x2ecc31)return _0x53a60b;const _0x581c82=_0x53a60b[_0x312cbd(0xb5)]('/')?_0x53a60b[_0x312cbd(0xbc)](0x0,-0x1):_0x53a60b,_0x2618ed=_0x2ecc31[_0x312cbd(0xa9)]('/')?_0x2ecc31:'/'+_0x2ecc31;return _0x581c82+_0x2618ed;}export function resolveProfileUrl(_0x5e432a){const _0x4667cd=_0x507c,_0x19589e={'UxDmD':function(_0x31fe2e,_0x5bf302){return _0x31fe2e(_0x5bf302);},'TcQfI':function(_0x5095c7,_0x50349a){return _0x5095c7(_0x50349a);}},_0x279637=_0x19589e[_0x4667cd(0xb6)](resolveBaseUrl,_0x5e432a),_0x1376c0=_0x19589e[_0x4667cd(0xc2)](resolveStartPath,_0x5e432a);return{'baseUrl':_0x279637,'startPath':_0x1376c0,'url':joinBaseAndPath(_0x279637,_0x1376c0)};}export function readUrlEnvVars(_0x46b2c9=process[_0x187ebb(0xba)]){const _0x3cb85f=_0x187ebb;return{'envBaseUrl':_0x46b2c9[_0x3cb85f(0xc3)],'envStartPath':_0x46b2c9[_0x3cb85f(0xab)]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x12c1(_0x5261d4,_0x4bb9bb){_0x5261d4=_0x5261d4-0xb8;const _0x1cf649=_0x1cf6();let _0x12c14b=_0x1cf649[_0x5261d4];return _0x12c14b;}(function(_0x2fd69a,_0x24abbf){const _0x2b7f8f=_0x12c1,_0x2a164f=_0x2fd69a();while(!![]){try{const _0x456543=parseInt(_0x2b7f8f(0xb8))/0x1*(-parseInt(_0x2b7f8f(0xbc))/0x2)+-parseInt(_0x2b7f8f(0xc0))/0x3*(-parseInt(_0x2b7f8f(0xc2))/0x4)+-parseInt(_0x2b7f8f(0xc5))/0x5+-parseInt(_0x2b7f8f(0xb9))/0x6+parseInt(_0x2b7f8f(0xbe))/0x7*(parseInt(_0x2b7f8f(0xba))/0x8)+parseInt(_0x2b7f8f(0xbb))/0x9*(-parseInt(_0x2b7f8f(0xc1))/0xa)+parseInt(_0x2b7f8f(0xc3))/0xb;if(_0x456543===_0x24abbf)break;else _0x2a164f['push'](_0x2a164f['shift']());}catch(_0x153222){_0x2a164f['push'](_0x2a164f['shift']());}}}(_0x1cf6,0x5d757));function _0x1cf6(){const _0x32cf36=['8agIjOL','1466415YsUGwd','598238UlSNLj','ms...','1771763LHWaQL','baseDelayMs','2949NdpRAK','10ZlLfHe','3012qnndZF','13562692gvvHOO','pow','3229530keIsWy','label','2THHkJp','2618364ekncWB'];_0x1cf6=function(){return _0x32cf36;};return _0x1cf6();}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x285cfc,_0x32c120){const _0x35b7f8=_0x12c1,_0x109127={'ElPAM':function(_0x1cc184,_0x2fa255){return _0x1cc184 instanceof _0x2fa255;},'DZrHR':function(_0x5b52bb,_0x4c2923){return _0x5b52bb<_0x4c2923;}},_0x5125f4=_0x32c120?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x166c37=_0x32c120?.[_0x35b7f8(0xbf)]??DEFAULT_BASE_DELAY_MS;let _0xe93c12;for(let _0x53e89d=0x0;_0x53e89d<=_0x5125f4;_0x53e89d++){try{return await _0x285cfc();}catch(_0x12330b){_0xe93c12=_0x109127['ElPAM'](_0x12330b,Error)?_0x12330b:new Error(String(_0x12330b));if(_0x109127['DZrHR'](_0x53e89d,_0x5125f4)){const _0x118620=_0x166c37*Math[_0x35b7f8(0xc4)](0x2,_0x53e89d);_0x32c120?.[_0x35b7f8(0xc6)]&&console['error'](_0x32c120[_0x35b7f8(0xc6)]+'\x20failed\x20(attempt\x20'+(_0x53e89d+0x1)+'/'+(_0x5125f4+0x1)+'),\x20retrying\x20in\x20'+_0x118620+_0x35b7f8(0xbd)),await new Promise(_0x5af0e6=>setTimeout(_0x5af0e6,_0x118620));}}}throw _0xe93c12;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4b0824=_0x5351;(function(_0x564d09,_0x3d1e3c){const _0x1880f4=_0x5351,_0x3b3112=_0x564d09();while(!![]){try{const _0xa23e49=parseInt(_0x1880f4(0x181))/0x1*(-parseInt(_0x1880f4(0x175))/0x2)+parseInt(_0x1880f4(0x163))/0x3*(parseInt(_0x1880f4(0x151))/0x4)+-parseInt(_0x1880f4(0x16f))/0x5+-parseInt(_0x1880f4(0x161))/0x6*(-parseInt(_0x1880f4(0x15a))/0x7)+parseInt(_0x1880f4(0x16b))/0x8+-parseInt(_0x1880f4(0x157))/0x9+parseInt(_0x1880f4(0x16d))/0xa;if(_0xa23e49===_0x3d1e3c)break;else _0x3b3112['push'](_0x3b3112['shift']());}catch(_0x6b8f99){_0x3b3112['push'](_0x3b3112['shift']());}}}(_0x28ed,0xc0692));import*as _0x40578d from'fs';import*as _0x494f09 from'path';function _0x28ed(){const _0x57e6f6=['3741488DlOOkW','NOVcz','19487280RSWAkk','XNJUK','2933855rUABgy','YhTRW','Anomr','olnZI','fymwe','dknHf','10xHZigD','dzLIe','sessions','main','VtHee','stringify','now','mkdirSync','prompted','parse','tBWAs','master','154263toXYxE','featureId','VwqRs','.ranger_cache.json','212tzoVkX','registeredAt','FrNgL','adMED','branches','trim','5636223nKRfhC','currentBranch','OBJhl','14315PjjJgG','ObrZu','writeFileSync','Ogtpa','ftIsu','iAjjX','lastEnabledSessionClearedAt','396IjsVlH','git\x20rev-parse\x20--abbrev-ref\x20HEAD','12513KBWgDL','pipe','dirname','tdwBR','UnsUY','bHeAI','LBqMU','enabled'];_0x28ed=function(){return _0x57e6f6;};return _0x28ed();}import*as _0x180567 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x494f09['join'](_0x180567['homedir'](),'.claude',_0x4b0824(0x184));function _0x5351(_0x40bb56,_0x1b485){_0x40bb56=_0x40bb56-0x151;const _0x28ed4c=_0x28ed();let _0x535151=_0x28ed4c[_0x40bb56];return _0x535151;}function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x15cfee=_0x4b0824;try{if(_0x40578d['existsSync'](CACHE_FILE)){const _0x4690f4=JSON[_0x15cfee(0x17e)](_0x40578d['readFileSync'](CACHE_FILE,'utf-8'));return{'version':0x3,'sessions':_0x4690f4['sessions']||{},'branches':_0x4690f4[_0x15cfee(0x155)]||{},'lastEnabledSessionClearedAt':_0x4690f4[_0x15cfee(0x160)]};}}catch{}return createEmptyCache();}function saveCache(_0x14208c){const _0xca028b=_0x4b0824;try{const _0x3e2bfa=_0x494f09[_0xca028b(0x165)](CACHE_FILE);!_0x40578d['existsSync'](_0x3e2bfa)&&_0x40578d[_0xca028b(0x17c)](_0x3e2bfa,{'recursive':!![]}),_0x40578d[_0xca028b(0x15c)](CACHE_FILE,JSON[_0xca028b(0x17a)](_0x14208c,null,0x2));}catch{}}export function getCurrentBranch(){const _0x58be8d=_0x4b0824,_0x4bb43e={'dknHf':function(_0x5dbd22,_0x5f2b42,_0x20de43){return _0x5dbd22(_0x5f2b42,_0x20de43);},'FrNgL':_0x58be8d(0x164),'DErIA':function(_0x5b7ebd,_0x1582b8){return _0x5b7ebd===_0x1582b8;}};try{const _0x1ca2c2=_0x4bb43e[_0x58be8d(0x174)](execSync,_0x58be8d(0x162),{'encoding':'utf-8','stdio':[_0x4bb43e[_0x58be8d(0x153)],_0x4bb43e[_0x58be8d(0x153)],_0x4bb43e['FrNgL']]})[_0x58be8d(0x156)]();if(!_0x1ca2c2||_0x4bb43e['DErIA'](_0x1ca2c2,'HEAD'))return null;return _0x1ca2c2;}catch{return null;}}export function enableBranch(_0x2a950a){const _0x25a4fa=_0x4b0824,_0x3aba52=loadCache();_0x3aba52[_0x25a4fa(0x155)][_0x2a950a]=!![],saveCache(_0x3aba52);}export function disableBranch(_0x48d85d){const _0x3ae8c7={'WJIMe':function(_0x5a3e25){return _0x5a3e25();},'PmCmQ':function(_0x3ceaaf,_0x3ddbe4){return _0x3ceaaf(_0x3ddbe4);}},_0x2fa2c6=_0x3ae8c7['WJIMe'](loadCache);delete _0x2fa2c6['branches'][_0x48d85d],_0x3ae8c7['PmCmQ'](saveCache,_0x2fa2c6);}export function isBranchEnabled(_0x3eee5f){const _0x2d6cb1=_0x4b0824,_0x14970f={'sSeQz':function(_0x3bc522){return _0x3bc522();},'OBJhl':function(_0x41d746,_0x42d155){return _0x41d746===_0x42d155;}},_0x511933=_0x14970f['sSeQz'](loadCache);return _0x14970f[_0x2d6cb1(0x159)](_0x511933[_0x2d6cb1(0x155)][_0x3eee5f],!![]);}function getOrCreateSession(_0x140fb0,_0x41197d){const _0x339471=_0x4b0824;return!_0x140fb0['sessions'][_0x41197d]&&(_0x140fb0[_0x339471(0x177)][_0x41197d]={}),_0x140fb0['sessions'][_0x41197d];}export function enableSession(_0x4d83e2){const _0x5d1283=_0x4b0824,_0xa63c56={'NOVcz':function(_0xee481e,_0x15b637,_0x4264ed){return _0xee481e(_0x15b637,_0x4264ed);},'BqdsA':function(_0x5973c3,_0x45b99a){return _0x5973c3!==_0x45b99a;}},_0x4a1ddb=loadCache(),_0x11c3a7=_0xa63c56[_0x5d1283(0x16c)](getOrCreateSession,_0x4a1ddb,_0x4d83e2);_0x11c3a7[_0x5d1283(0x16a)]=!![];const _0x526b6d=getCurrentBranch();_0x526b6d&&_0x526b6d!==_0x5d1283(0x178)&&_0xa63c56['BqdsA'](_0x526b6d,_0x5d1283(0x180))&&(_0x4a1ddb[_0x5d1283(0x155)][_0x526b6d]=!![],_0x11c3a7['currentBranch']=_0x526b6d),saveCache(_0x4a1ddb);}export function isSessionEnabled(_0x368dff){const _0x3a0122=_0x4b0824,_0x439d19={'olnZI':function(_0x27d082){return _0x27d082();},'Yhpcd':function(_0x1c9d2a,_0x5c3f05){return _0x1c9d2a===_0x5c3f05;},'VtHee':function(_0x233fd6,_0x2067c1){return _0x233fd6===_0x2067c1;}},_0x35e86b=_0x439d19[_0x3a0122(0x172)](loadCache),_0x51738a=getCurrentBranch();if(!_0x51738a||_0x439d19['Yhpcd'](_0x51738a,_0x3a0122(0x178))||_0x439d19[_0x3a0122(0x179)](_0x51738a,'master'))return _0x35e86b['sessions'][_0x368dff]?.[_0x3a0122(0x16a)]===!![];const _0x81d06=_0x439d19[_0x3a0122(0x179)](_0x35e86b[_0x3a0122(0x155)][_0x51738a],!![]),_0x11ad53=_0x439d19['VtHee'](_0x35e86b[_0x3a0122(0x177)][_0x368dff]?.['enabled'],!![]);return _0x81d06||_0x11ad53;}export function disableSession(_0x130a85){const _0x181940=_0x4b0824,_0x57c9fd={'Ogtpa':function(_0x26e413){return _0x26e413();},'VODgz':function(_0x4f387e,_0x234bfd,_0x5b031d){return _0x4f387e(_0x234bfd,_0x5b031d);},'uiwiJ':function(_0x3083fe,_0x5c036b){return _0x3083fe(_0x5c036b);}},_0x18a9fd=_0x57c9fd[_0x181940(0x15d)](loadCache),_0x58203e=_0x57c9fd['VODgz'](getOrCreateSession,_0x18a9fd,_0x130a85);_0x58203e['enabled']=![],_0x57c9fd['uiwiJ'](saveCache,_0x18a9fd);}export function updateBranchTracking(_0x5e913f){const _0x350c82=_0x4b0824,_0x3d9fab={'UnsUY':function(_0x3e5295,_0x194b8a){return _0x3e5295===_0x194b8a;},'ObrZu':'main','yrPFO':function(_0x3f4f5d,_0x36e76d){return _0x3f4f5d===_0x36e76d;},'Hwvpe':'master'},_0x1119ca=loadCache(),_0x4401d2=_0x1119ca[_0x350c82(0x177)][_0x5e913f];if(!_0x4401d2?.[_0x350c82(0x16a)])return;const _0xe16086=getCurrentBranch();if(!_0xe16086||_0x3d9fab[_0x350c82(0x167)](_0xe16086,_0x3d9fab[_0x350c82(0x15b)])||_0x3d9fab['yrPFO'](_0xe16086,_0x3d9fab['Hwvpe']))return;_0x4401d2['currentBranch']!==_0xe16086&&(_0x1119ca[_0x350c82(0x155)][_0xe16086]=!![],_0x4401d2[_0x350c82(0x158)]=_0xe16086,saveCache(_0x1119ca));}export function initBranchTracking(_0x347b79){const _0x427c2d=_0x4b0824,_0x1e8c26={'VwqRs':function(_0x3c76a6){return _0x3c76a6();},'LBqMU':function(_0x2ff810,_0x36fab2){return _0x2ff810===_0x36fab2;}},_0x3845d5=_0x1e8c26[_0x427c2d(0x183)](loadCache),_0x4b2df9=getCurrentBranch();if(!_0x4b2df9||_0x1e8c26['LBqMU'](_0x4b2df9,_0x427c2d(0x178))||_0x1e8c26[_0x427c2d(0x169)](_0x4b2df9,_0x427c2d(0x180)))return;if(_0x1e8c26[_0x427c2d(0x169)](_0x3845d5['branches'][_0x4b2df9],!![])){const _0x57a948=getOrCreateSession(_0x3845d5,_0x347b79);_0x57a948[_0x427c2d(0x16a)]=!![],_0x57a948[_0x427c2d(0x158)]=_0x4b2df9,saveCache(_0x3845d5);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x5c9a37){const _0x8f6477=_0x4b0824,_0x146b3f={'AOqGx':function(_0x55dc88,_0x4e410e){return _0x55dc88(_0x4e410e);}},_0x439a33=loadCache(),_0x4a3a8f=_0x439a33[_0x8f6477(0x177)][_0x5c9a37];_0x4a3a8f?.[_0x8f6477(0x16a)]&&(_0x439a33[_0x8f6477(0x160)]=Date[_0x8f6477(0x17b)](),_0x146b3f['AOqGx'](saveCache,_0x439a33));}export function shouldAutoEnableAfterClear(_0x3b0910){const _0x45a4f5={'PZPMA':function(_0x334956,_0x548a2c){return _0x334956<=_0x548a2c;}};if(_0x3b0910!=='clear')return![];const _0x40f036=loadCache(),_0x3504e6=_0x40f036['lastEnabledSessionClearedAt'];if(!_0x3504e6)return![];const _0x281eb7=Date['now']()-_0x3504e6;return _0x45a4f5['PZPMA'](_0x281eb7,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x25de1a){const _0x432263=_0x4b0824,_0xa45808={'adMED':function(_0x1ac7dc){return _0x1ac7dc();},'ftIsu':function(_0x435214,_0x43a2ed){return _0x435214!==_0x43a2ed;},'bHeAI':'main','BEoZP':_0x432263(0x180)},_0x401cbd=_0xa45808[_0x432263(0x154)](loadCache),_0x1bcd76=getOrCreateSession(_0x401cbd,_0x25de1a);_0x1bcd76[_0x432263(0x16a)]=!![];const _0x17a358=getCurrentBranch();_0x17a358&&_0xa45808[_0x432263(0x15e)](_0x17a358,_0xa45808[_0x432263(0x168)])&&_0xa45808[_0x432263(0x15e)](_0x17a358,_0xa45808['BEoZP'])&&(_0x1bcd76['currentBranch']=_0x17a358),delete _0x401cbd[_0x432263(0x160)],saveCache(_0x401cbd);}export function registerSession(_0x45dcee,_0x4bed82){const _0x3d1e94=_0x4b0824,_0x33b2e3={'dJoTs':function(_0x352f04){return _0x352f04();},'Anomr':function(_0x42c682,_0x14c5aa,_0x3c97fd){return _0x42c682(_0x14c5aa,_0x3c97fd);},'nExbe':function(_0x1cc024,_0x3ecfa4){return _0x1cc024(_0x3ecfa4);}},_0x333342=_0x33b2e3['dJoTs'](loadCache),_0x54bf28=_0x33b2e3[_0x3d1e94(0x171)](getOrCreateSession,_0x333342,_0x45dcee);_0x54bf28[_0x3d1e94(0x182)]=_0x4bed82,_0x54bf28[_0x3d1e94(0x152)]=new Date()['toISOString'](),_0x33b2e3['nExbe'](saveCache,_0x333342);}export function getSessionEntry(_0xfdd965){const _0xdf1a67=_0x4b0824,_0x1e5d86={'WQlGk':function(_0xe40eb0){return _0xe40eb0();}},_0x55a73c=_0x1e5d86['WQlGk'](loadCache),_0x159a2a=_0x55a73c['sessions'][_0xfdd965];if(_0x159a2a?.[_0xdf1a67(0x182)]&&_0x159a2a?.['registeredAt'])return{'featureId':_0x159a2a[_0xdf1a67(0x182)],'registeredAt':_0x159a2a[_0xdf1a67(0x152)]};return null;}export function unregisterSession(_0x1bd836){const _0x2b1b47=_0x4b0824,_0x56e02d={'wAAmb':function(_0x257936,_0x53075c){return _0x257936(_0x53075c);}},_0x464c0c=loadCache(),_0x2cf493=_0x464c0c[_0x2b1b47(0x177)][_0x1bd836];_0x2cf493&&(delete _0x2cf493['featureId'],delete _0x2cf493['registeredAt'],_0x56e02d['wAAmb'](saveCache,_0x464c0c));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0xe4501){const _0xcbbad4=_0x4b0824,_0x1ec688={'BByGE':function(_0x4c394c,_0x3e4f04,_0x53201f){return _0x4c394c(_0x3e4f04,_0x53201f);},'tBWAs':function(_0x408648,_0x43c93e){return _0x408648-_0x43c93e;}},_0x195f49=loadCache(),_0x5ec455=_0x1ec688['BByGE'](getOrCreateSession,_0x195f49,_0xe4501),_0x56a638=_0x5ec455['lastPlanReminderAt']||0x0,_0x5ea169=Date[_0xcbbad4(0x17b)]();if(_0x1ec688[_0xcbbad4(0x17f)](_0x5ea169,_0x56a638)>=PLAN_REMINDER_INTERVAL_MS)return _0x5ec455['lastPlanReminderAt']=_0x5ea169,saveCache(_0x195f49),!![];return![];}export function shouldShowStopReminder(_0x39180f){const _0x444533=_0x4b0824,_0x4f4188={'XNJUK':function(_0x39fc85){return _0x39fc85();},'iAjjX':function(_0x4bbe66,_0x58f027){return _0x4bbe66(_0x58f027);}},_0x3a9964=_0x4f4188[_0x444533(0x16e)](loadCache),_0x4ca200=getOrCreateSession(_0x3a9964,_0x39180f),_0x50b748=_0x4ca200['lastStopReminderAt']||0x0,_0x4d51c6=Date['now']();if(_0x4d51c6-_0x50b748>=STOP_REMINDER_INTERVAL_MS)return _0x4ca200['lastStopReminderAt']=_0x4d51c6,_0x4f4188[_0x444533(0x15f)](saveCache,_0x3a9964),!![];return![];}export function hasSessionBeenPrompted(_0x1550c9){const _0xfed590=_0x4b0824,_0x5d8630={'fymwe':function(_0x3a05b6){return _0x3a05b6();},'YhTRW':function(_0xba9b0f,_0x193b25){return _0xba9b0f===_0x193b25;}},_0x56eab8=_0x5d8630[_0xfed590(0x173)](loadCache);return _0x5d8630[_0xfed590(0x170)](_0x56eab8[_0xfed590(0x177)][_0x1550c9]?.['prompted'],!![]);}export function markSessionPrompted(_0x280f3c){const _0x16a4da=_0x4b0824,_0x1bc308={'tdwBR':function(_0x5e5395){return _0x5e5395();},'dzLIe':function(_0x540e30,_0x1d1f79){return _0x540e30(_0x1d1f79);}},_0xef9717=_0x1bc308[_0x16a4da(0x166)](loadCache),_0x1892f3=getOrCreateSession(_0xef9717,_0x280f3c);_0x1892f3[_0x16a4da(0x17d)]=!![],_0x1bc308[_0x16a4da(0x176)](saveCache,_0xef9717);}export function getCacheFile(){return CACHE_FILE;}
|
|
1
|
+
const _0x4a174d=_0x51c9;(function(_0x4eec44,_0x5ab666){const _0x2f512b=_0x51c9,_0x3824b8=_0x4eec44();while(!![]){try{const _0x236449=-parseInt(_0x2f512b(0x19e))/0x1*(-parseInt(_0x2f512b(0x1a9))/0x2)+-parseInt(_0x2f512b(0x19f))/0x3*(-parseInt(_0x2f512b(0x182))/0x4)+-parseInt(_0x2f512b(0x18b))/0x5*(-parseInt(_0x2f512b(0x1b2))/0x6)+-parseInt(_0x2f512b(0x191))/0x7*(-parseInt(_0x2f512b(0x1b0))/0x8)+-parseInt(_0x2f512b(0x1b1))/0x9*(-parseInt(_0x2f512b(0x1ac))/0xa)+-parseInt(_0x2f512b(0x187))/0xb+parseInt(_0x2f512b(0x1a6))/0xc*(-parseInt(_0x2f512b(0x1b3))/0xd);if(_0x236449===_0x5ab666)break;else _0x3824b8['push'](_0x3824b8['shift']());}catch(_0x2abfa8){_0x3824b8['push'](_0x3824b8['shift']());}}}(_0x2117,0x1a780));import*as _0x2db00c from'fs';function _0x51c9(_0x2daa46,_0x1e01b5){_0x2daa46=_0x2daa46-0x17e;const _0x2117cc=_0x2117();let _0x51c9f6=_0x2117cc[_0x2daa46];return _0x51c9f6;}import*as _0x3df7b3 from'path';import*as _0x3f78cb from'os';import{execSync}from'child_process';const CACHE_FILE=_0x3df7b3['join'](_0x3f78cb['homedir'](),_0x4a174d(0x180),_0x4a174d(0x17f));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x231fc5=_0x4a174d,_0x3b59b={'rkJYD':_0x231fc5(0x18d),'NjsQG':function(_0x5e1e73){return _0x5e1e73();}};try{if(_0x2db00c['existsSync'](CACHE_FILE)){const _0x2b164a=JSON[_0x231fc5(0x1b6)](_0x2db00c[_0x231fc5(0x1a0)](CACHE_FILE,_0x3b59b[_0x231fc5(0x1b7)]));return{'version':0x3,'sessions':_0x2b164a['sessions']||{},'branches':_0x2b164a['branches']||{},'lastEnabledSessionClearedAt':_0x2b164a[_0x231fc5(0x188)]};}}catch{}return _0x3b59b['NjsQG'](createEmptyCache);}function saveCache(_0x4e87c7){const _0x2b3d6a=_0x4a174d;try{const _0xa8de74=_0x3df7b3['dirname'](CACHE_FILE);!_0x2db00c[_0x2b3d6a(0x19b)](_0xa8de74)&&_0x2db00c[_0x2b3d6a(0x1aa)](_0xa8de74,{'recursive':!![]}),_0x2db00c[_0x2b3d6a(0x1b5)](CACHE_FILE,JSON[_0x2b3d6a(0x196)](_0x4e87c7,null,0x2));}catch{}}export function getCurrentBranch(){const _0x499f0d=_0x4a174d,_0x2752ee={'apAIE':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','mZfYe':'utf-8','NeAed':'pipe','RHsRM':'HEAD'};try{const _0x41b167=execSync(_0x2752ee['apAIE'],{'encoding':_0x2752ee[_0x499f0d(0x1b8)],'stdio':[_0x499f0d(0x185),_0x2752ee['NeAed'],_0x2752ee[_0x499f0d(0x189)]]})['trim']();if(!_0x41b167||_0x41b167===_0x2752ee[_0x499f0d(0x1a4)])return null;return _0x41b167;}catch{return null;}}export function enableBranch(_0x431b49){const _0x547df3=_0x4a174d,_0x417411={'DKxVt':function(_0x27dc84,_0x3aeb48){return _0x27dc84(_0x3aeb48);}},_0x172b51=loadCache();_0x172b51[_0x547df3(0x195)][_0x431b49]=!![],_0x417411['DKxVt'](saveCache,_0x172b51);}export function disableBranch(_0x24cdc1){const _0x1d730c={'ZrWfG':function(_0x2fefc5,_0x59a82a){return _0x2fefc5(_0x59a82a);}},_0x291dfb=loadCache();delete _0x291dfb['branches'][_0x24cdc1],_0x1d730c['ZrWfG'](saveCache,_0x291dfb);}export function isBranchEnabled(_0x30e3c4){const _0xf5e428=_0x4a174d,_0x349e6e={'JweTZ':function(_0x371f84,_0xadf34a){return _0x371f84===_0xadf34a;}},_0x217a0a=loadCache();return _0x349e6e[_0xf5e428(0x1a2)](_0x217a0a[_0xf5e428(0x195)][_0x30e3c4],!![]);}function getOrCreateSession(_0x539c04,_0x597faf){const _0x1b64cf=_0x4a174d;return!_0x539c04['sessions'][_0x597faf]&&(_0x539c04[_0x1b64cf(0x183)][_0x597faf]={}),_0x539c04[_0x1b64cf(0x183)][_0x597faf];}export function enableSession(_0x231aa5){const _0x290974=_0x4a174d,_0x119156={'KzRxv':function(_0x1e15d1){return _0x1e15d1();},'nubwg':function(_0x40c766,_0x229296){return _0x40c766!==_0x229296;},'JRtoQ':function(_0x8032f4,_0x4d2de6){return _0x8032f4(_0x4d2de6);}},_0x15f209=_0x119156[_0x290974(0x1a3)](loadCache),_0x5945b9=getOrCreateSession(_0x15f209,_0x231aa5);_0x5945b9['enabled']=!![];const _0x43c894=_0x119156[_0x290974(0x1a3)](getCurrentBranch);_0x43c894&&_0x43c894!=='main'&&_0x119156['nubwg'](_0x43c894,_0x290974(0x184))&&(_0x15f209['branches'][_0x43c894]=!![],_0x5945b9[_0x290974(0x186)]=_0x43c894),_0x119156['JRtoQ'](saveCache,_0x15f209);}export function isSessionEnabled(_0x1da4da){const _0x512a81=_0x4a174d,_0x3f1337={'SOnRL':function(_0x32cc02){return _0x32cc02();},'fiwhz':function(_0x2ec626,_0x34aa2b){return _0x2ec626===_0x34aa2b;},'CRboq':function(_0x2901ab,_0x19c1c2){return _0x2901ab===_0x19c1c2;},'dFyOy':function(_0x99e6f2,_0x31912e){return _0x99e6f2||_0x31912e;}},_0x166403=_0x3f1337[_0x512a81(0x1a8)](loadCache),_0x43334d=getCurrentBranch();if(!_0x43334d||_0x3f1337['fiwhz'](_0x43334d,'main')||_0x3f1337['CRboq'](_0x43334d,_0x512a81(0x184)))return _0x166403[_0x512a81(0x183)][_0x1da4da]?.['enabled']===!![];const _0x235583=_0x166403[_0x512a81(0x195)][_0x43334d]===!![],_0x1dff2b=_0x166403['sessions'][_0x1da4da]?.['enabled']===!![];return _0x3f1337['dFyOy'](_0x235583,_0x1dff2b);}export function disableSession(_0x4bda33){const _0x1f6150=_0x4a174d,_0xa0b108={'EdpmL':function(_0x4b8ed6){return _0x4b8ed6();},'krEAi':function(_0x23b1e2,_0x1651e7,_0x2c1d2f){return _0x23b1e2(_0x1651e7,_0x2c1d2f);}},_0x2d8888=_0xa0b108[_0x1f6150(0x18c)](loadCache),_0x59ead9=_0xa0b108[_0x1f6150(0x1ad)](getOrCreateSession,_0x2d8888,_0x4bda33);_0x59ead9['enabled']=![],saveCache(_0x2d8888);}export function updateBranchTracking(_0x175faa){const _0x1c0cfc=_0x4a174d,_0x4f78f3={'PMJGF':function(_0x2fc7c8){return _0x2fc7c8();},'oCHWx':function(_0x2837b3){return _0x2837b3();},'tLdbT':'main','uwByK':function(_0x273048,_0x163369){return _0x273048===_0x163369;},'FmMHv':function(_0x65e085,_0x45f9e4){return _0x65e085!==_0x45f9e4;},'hdpjA':function(_0x237bb2,_0x16c92f){return _0x237bb2(_0x16c92f);}},_0x32b6ed=_0x4f78f3['PMJGF'](loadCache),_0x5bcb1a=_0x32b6ed[_0x1c0cfc(0x183)][_0x175faa];if(!_0x5bcb1a?.['enabled'])return;const _0x17c6fb=_0x4f78f3[_0x1c0cfc(0x192)](getCurrentBranch);if(!_0x17c6fb||_0x17c6fb===_0x4f78f3['tLdbT']||_0x4f78f3[_0x1c0cfc(0x18e)](_0x17c6fb,_0x1c0cfc(0x184)))return;_0x4f78f3['FmMHv'](_0x5bcb1a[_0x1c0cfc(0x186)],_0x17c6fb)&&(_0x32b6ed[_0x1c0cfc(0x195)][_0x17c6fb]=!![],_0x5bcb1a[_0x1c0cfc(0x186)]=_0x17c6fb,_0x4f78f3['hdpjA'](saveCache,_0x32b6ed));}export function initBranchTracking(_0x5e6227){const _0x426110=_0x4a174d,_0x237cc3={'BsWQt':function(_0x4bdfea){return _0x4bdfea();},'wvhhr':function(_0x567c5a,_0x51f904){return _0x567c5a===_0x51f904;},'pIiSR':_0x426110(0x184),'eQLcB':function(_0x1b4281,_0x3257b3,_0x24a729){return _0x1b4281(_0x3257b3,_0x24a729);}},_0x3453a6=_0x237cc3['BsWQt'](loadCache),_0x160ada=getCurrentBranch();if(!_0x160ada||_0x160ada==='main'||_0x237cc3[_0x426110(0x19a)](_0x160ada,_0x237cc3['pIiSR']))return;if(_0x3453a6['branches'][_0x160ada]===!![]){const _0x46a234=_0x237cc3[_0x426110(0x18f)](getOrCreateSession,_0x3453a6,_0x5e6227);_0x46a234['enabled']=!![],_0x46a234['currentBranch']=_0x160ada,saveCache(_0x3453a6);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x1c7a13){const _0x5b3aba=_0x4a174d,_0x40d3b5={'kfSVP':function(_0x22e26f){return _0x22e26f();},'MEuNw':function(_0x774373,_0x26945b){return _0x774373(_0x26945b);}},_0x53701d=_0x40d3b5[_0x5b3aba(0x18a)](loadCache),_0x38d27a=_0x53701d[_0x5b3aba(0x183)][_0x1c7a13];_0x38d27a?.['enabled']&&(_0x53701d['lastEnabledSessionClearedAt']=Date[_0x5b3aba(0x1ae)](),_0x40d3b5['MEuNw'](saveCache,_0x53701d));}export function shouldAutoEnableAfterClear(_0x2c7b3a){const _0x2e1f27=_0x4a174d,_0x45398f={'OAnBy':function(_0x179f46){return _0x179f46();},'MMGVn':function(_0x5216a8,_0x20a85b){return _0x5216a8-_0x20a85b;},'uPGhv':function(_0x48de98,_0x5007b2){return _0x48de98<=_0x5007b2;}};if(_0x2c7b3a!=='clear')return![];const _0x1c3210=_0x45398f['OAnBy'](loadCache),_0x545cba=_0x1c3210['lastEnabledSessionClearedAt'];if(!_0x545cba)return![];const _0x3c4c3a=_0x45398f[_0x2e1f27(0x181)](Date['now'](),_0x545cba);return _0x45398f[_0x2e1f27(0x199)](_0x3c4c3a,CLEAR_AUTO_ENABLE_WINDOW_MS);}function _0x2117(){const _0x12838e=['branches','stringify','registeredAt','ClHPO','uPGhv','wvhhr','existsSync','featureId','toISOString','185281KoCvcX','3285KbxWzR','readFileSync','quPdy','JweTZ','KzRxv','RHsRM','prompted','5556eIIzsm','mtnoD','SOnRL','2oNbmUP','mkdirSync','DAEEE','40UXvENb','krEAi','now','oUWTc','80DOBNnU','154395Vtzbee','224958aycdcx','8697wsAocd','lastStopReminderAt','writeFileSync','parse','rkJYD','mZfYe','YDawe','hmbMm','.ranger_cache.json','.claude','MMGVn','312aXkPtG','sessions','master','pipe','currentBranch','1750507GOAKyJ','lastEnabledSessionClearedAt','NeAed','kfSVP','15WIaqWN','EdpmL','utf-8','uwByK','eQLcB','main','87857ldPktC','oCHWx','ePaOF','qMAjj'];_0x2117=function(){return _0x12838e;};return _0x2117();}export function autoEnableAfterClear(_0x1fb5f3){const _0xdd383e=_0x4a174d,_0xde6231={'quPdy':function(_0x15f0be,_0x428356){return _0x15f0be!==_0x428356;},'ePaOF':_0xdd383e(0x190),'YDawe':'master','oUWTc':function(_0x5689dd,_0x4bf98d){return _0x5689dd(_0x4bf98d);}},_0x582e49=loadCache(),_0x567bcd=getOrCreateSession(_0x582e49,_0x1fb5f3);_0x567bcd['enabled']=!![];const _0x4828d0=getCurrentBranch();_0x4828d0&&_0xde6231[_0xdd383e(0x1a1)](_0x4828d0,_0xde6231[_0xdd383e(0x193)])&&_0x4828d0!==_0xde6231[_0xdd383e(0x1b9)]&&(_0x567bcd[_0xdd383e(0x186)]=_0x4828d0),delete _0x582e49[_0xdd383e(0x188)],_0xde6231[_0xdd383e(0x1af)](saveCache,_0x582e49);}export function registerSession(_0x1a9e7f,_0x35fb15){const _0x1950d0=_0x4a174d,_0x3ba44a={'eIZgC':function(_0x596780){return _0x596780();},'kkhlQ':function(_0x5fa0f8,_0x3453c1,_0x4fcd7b){return _0x5fa0f8(_0x3453c1,_0x4fcd7b);}},_0x3fec85=_0x3ba44a['eIZgC'](loadCache),_0x59eae5=_0x3ba44a['kkhlQ'](getOrCreateSession,_0x3fec85,_0x1a9e7f);_0x59eae5['featureId']=_0x35fb15,_0x59eae5['registeredAt']=new Date()[_0x1950d0(0x19d)](),saveCache(_0x3fec85);}export function getSessionEntry(_0x1cd4ce){const _0x5834b3=_0x4a174d,_0xad5be3={'mtnoD':function(_0x116cfe){return _0x116cfe();}},_0x58bc20=_0xad5be3[_0x5834b3(0x1a7)](loadCache),_0x5a93c5=_0x58bc20[_0x5834b3(0x183)][_0x1cd4ce];if(_0x5a93c5?.[_0x5834b3(0x19c)]&&_0x5a93c5?.[_0x5834b3(0x197)])return{'featureId':_0x5a93c5['featureId'],'registeredAt':_0x5a93c5[_0x5834b3(0x197)]};return null;}export function unregisterSession(_0x4b895c){const _0x53417b=_0x4a174d,_0x1c28b2={'BEAgv':function(_0x3156f1){return _0x3156f1();},'hmbMm':function(_0x3039ef,_0x4cc068){return _0x3039ef(_0x4cc068);}},_0x33563f=_0x1c28b2['BEAgv'](loadCache),_0x53c438=_0x33563f['sessions'][_0x4b895c];_0x53c438&&(delete _0x53c438[_0x53417b(0x19c)],delete _0x53c438['registeredAt'],_0x1c28b2[_0x53417b(0x17e)](saveCache,_0x33563f));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x129561){const _0x37bdcf=_0x4a174d,_0x1eee5d={'BUVoX':function(_0x399ebd){return _0x399ebd();},'qMAjj':function(_0x1a03bb,_0x37366c,_0xa6572d){return _0x1a03bb(_0x37366c,_0xa6572d);},'HaLci':function(_0x44b1a4,_0x273791){return _0x44b1a4(_0x273791);}},_0x1e6491=_0x1eee5d['BUVoX'](loadCache),_0xef377c=_0x1eee5d[_0x37bdcf(0x194)](getOrCreateSession,_0x1e6491,_0x129561),_0x3361d4=_0xef377c['lastPlanReminderAt']||0x0,_0x31ca25=Date['now']();if(_0x31ca25-_0x3361d4>=PLAN_REMINDER_INTERVAL_MS)return _0xef377c['lastPlanReminderAt']=_0x31ca25,_0x1eee5d['HaLci'](saveCache,_0x1e6491),!![];return![];}export function shouldShowStopReminder(_0x537ea6){const _0x52eda5=_0x4a174d,_0x37f163={'aRjeQ':function(_0x311648,_0x38d69b,_0x31a0d){return _0x311648(_0x38d69b,_0x31a0d);},'ClHPO':function(_0x182812,_0x588051){return _0x182812>=_0x588051;},'zTEDa':function(_0x3176fa,_0x12d885){return _0x3176fa-_0x12d885;},'DAEEE':function(_0x1c2930,_0x27cc38){return _0x1c2930(_0x27cc38);}},_0x4cbc11=loadCache(),_0x10c7c2=_0x37f163['aRjeQ'](getOrCreateSession,_0x4cbc11,_0x537ea6),_0xc85758=_0x10c7c2[_0x52eda5(0x1b4)]||0x0,_0x455cef=Date[_0x52eda5(0x1ae)]();if(_0x37f163[_0x52eda5(0x198)](_0x37f163['zTEDa'](_0x455cef,_0xc85758),STOP_REMINDER_INTERVAL_MS))return _0x10c7c2[_0x52eda5(0x1b4)]=_0x455cef,_0x37f163[_0x52eda5(0x1ab)](saveCache,_0x4cbc11),!![];return![];}export function hasSessionBeenPrompted(_0x32a205){const _0x4d4c71=_0x4a174d,_0x1f3cab={'BYrsv':function(_0x1a7ede,_0x543571){return _0x1a7ede===_0x543571;}},_0x117426=loadCache();return _0x1f3cab['BYrsv'](_0x117426['sessions'][_0x32a205]?.[_0x4d4c71(0x1a5)],!![]);}export function markSessionPrompted(_0x18bea7){const _0x343ea3={'qQwwr':function(_0x5c3cf3,_0x55e3d3){return _0x5c3cf3(_0x55e3d3);}},_0x99539a=loadCache(),_0x562458=getOrCreateSession(_0x99539a,_0x18bea7);_0x562458['prompted']=!![],_0x343ea3['qQwwr'](saveCache,_0x99539a);}export function getCacheFile(){return CACHE_FILE;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x4a448e=_0x425d;(function(_0x3aa9e5,_0x7ef18b){const _0x4d2951=_0x425d,_0x43b2d1=_0x3aa9e5();while(!![]){try{const _0x37ea03=-parseInt(_0x4d2951(0xf4))/0x1+parseInt(_0x4d2951(0x9b))/0x2+-parseInt(_0x4d2951(0x98))/0x3+parseInt(_0x4d2951(0xb4))/0x4+-parseInt(_0x4d2951(0xee))/0x5+parseInt(_0x4d2951(0xa4))/0x6*(parseInt(_0x4d2951(0xba))/0x7)+parseInt(_0x4d2951(0xb6))/0x8;if(_0x37ea03===_0x7ef18b)break;else _0x43b2d1['push'](_0x43b2d1['shift']());}catch(_0x4cfa89){_0x43b2d1['push'](_0x43b2d1['shift']());}}}(_0x20bc,0xb265f));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{chromium}from'playwright';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';function _0x425d(_0x2607de,_0x446a10){_0x2607de=_0x2607de-0x98;const _0x20bcb4=_0x20bc();let _0x425da4=_0x20bcb4[_0x2607de];return _0x425da4;}import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x3e06fe,_0x3db585){const _0xfb2cd1=_0x425d,_0x218263={'Kdzca':function(_0x85ee59,_0x5d2d30,_0x381349,_0x3c4eb8){return _0x85ee59(_0x5d2d30,_0x381349,_0x3c4eb8);},'UYHos':function(_0x5112aa,_0x3fdf40,_0x1d325a,_0x4c1b11){return _0x5112aa(_0x3fdf40,_0x1d325a,_0x4c1b11);},'CHgzV':function(_0x2d23dc,_0x2be927,_0x2ebb37){return _0x2d23dc(_0x2be927,_0x2ebb37);},'LdXFN':function(_0x53b7f2,_0x212f11){return _0x53b7f2(_0x212f11);},'iwLBu':function(_0x399970,_0x123f5a){return _0x399970!==_0x123f5a;}},_0xa4e8f6=_0x218263[_0xfb2cd1(0xd8)](join,_0x3db585,'ci',_0x3e06fe),_0x4ee3d2=_0x218263['UYHos'](join,_0x3db585,'local',_0x3e06fe),_0x41cba5=_0x218263['CHgzV'](join,_0x3db585,_0x3e06fe),_0x3f50c4=join(_0x3db585,'local'),_0x44e29c=join(_0x3db585,'ci');if(existsSync(_0xa4e8f6))return _0xa4e8f6;if(existsSync(_0x4ee3d2))return _0x4ee3d2;if(_0x218263['LdXFN'](existsSync,_0x41cba5)&&(_0x218263['iwLBu'](_0x41cba5,_0x3f50c4)&&_0x218263['iwLBu'](_0x41cba5,_0x44e29c)?!![]:hasLegacyProfileFiles(_0x41cba5)))return _0x41cba5;return null;}export function getEnvDir(_0x47b35b,_0x13541a={}){const _0x46e01b=_0x425d,_0xa93ce2={'ytODf':function(_0x5667a9){return _0x5667a9();},'mnSHH':function(_0x16187e,_0x4cd437,_0x229337){return _0x16187e(_0x4cd437,_0x229337);},'mGwpp':function(_0x4389f7,_0x42c578){return _0x4389f7(_0x42c578);},'tkQal':function(_0x2ade46,_0x36f0ba){return _0x2ade46!==_0x36f0ba;},'qnwZg':function(_0x471065,_0x14b925,_0xb811ce,_0x5522f0){return _0x471065(_0x14b925,_0xb811ce,_0x5522f0);},'WldZC':'local','tZQDv':function(_0x3b12f3,_0x466fa2,_0x4cbe26){return _0x3b12f3(_0x466fa2,_0x4cbe26);}},_0x3df115=_0xa93ce2[_0x46e01b(0xbb)](getRangerDir),_0x1c687e=_0xa93ce2['mnSHH'](findEnvInRoot,_0x47b35b,_0x3df115);if(_0x1c687e){if(_0x13541a[_0x46e01b(0x9f)]&&_0xa93ce2['mGwpp'](isLegacyEnvPath,_0x1c687e))throw legacyWriteError(_0x47b35b,_0x1c687e);return _0x1c687e;}const _0x2c58f5=getRangerHomeDir();if(_0xa93ce2['tkQal'](_0x2c58f5,_0x3df115)){const _0x48b9d2=findEnvInRoot(_0x47b35b,_0x2c58f5);if(_0x48b9d2){if(_0x13541a['forWrite']&&isLegacyEnvPath(_0x48b9d2))throw legacyWriteError(_0x47b35b,_0x48b9d2);return _0x48b9d2;}}const _0x2a20a5=_0xa93ce2[_0x46e01b(0xaa)](join,_0x2c58f5,_0xa93ce2['WldZC'],_0x47b35b);if(_0x13541a[_0x46e01b(0x9f)])throw _0xa93ce2[_0x46e01b(0xcc)](legacyWriteError,_0x47b35b,_0x2a20a5);return _0x2a20a5;}function isLegacyEnvPath(_0x5c23d8){const _0x5adc18=_0x425d,_0x436349={'eJOwS':function(_0x5c02ba){return _0x5c02ba();},'tDTgz':function(_0x2ca857,_0x353c30){return _0x2ca857+_0x353c30;},'yvXte':function(_0x134d65,_0x191be7){return _0x134d65===_0x191be7;}},_0x752e79=_0x436349['eJOwS'](getRangerDir),_0x586e4b=getRangerHomeDir();for(const _0x4bc9ca of new Set([_0x752e79,_0x586e4b])){const _0x4344e6=_0x4bc9ca[_0x5adc18(0xf1)]('/')?_0x4bc9ca:_0x436349[_0x5adc18(0xb2)](_0x4bc9ca,'/');if(_0x436349[_0x5adc18(0xd3)](_0x5c23d8,_0x4bc9ca)||_0x5c23d8['startsWith'](_0x4344e6))return!![];}return![];}function legacyWriteError(_0x59a864,_0x29ceae){const _0x4d39ec=_0x425d,_0x3f9b5a={'PVcLB':function(_0x25e5d3,_0x3247bf){return _0x25e5d3+_0x3247bf;}};return new Error(_0x3f9b5a[_0x4d39ec(0xb9)](_0x4d39ec(0xd1)+_0x59a864+_0x4d39ec(0xe6)+_0x29ceae+'.\x0a'+'That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a'+_0x4d39ec(0xab),_0x4d39ec(0xc2)));}export function findExistingEnv(_0xbf63f8,_0x37c494){const _0x2fe412=_0x425d,_0x3dc653={'LvbtL':function(_0x50ab4c){return _0x50ab4c();},'lESLW':'local','FSwDA':'legacy','EjJvW':function(_0x120bc5,_0x55de13,_0xe05b53){return _0x120bc5(_0x55de13,_0xe05b53);},'btYRg':function(_0x25e316,_0x34f93e,_0x14fc4e,_0x42bfdf){return _0x25e316(_0x34f93e,_0x14fc4e,_0x42bfdf);},'Pyasy':function(_0x372e74,_0x2f55f8){return _0x372e74===_0x2f55f8;}},_0x304de0=_0x37c494?.[_0x2fe412(0xa6)],_0x2a2c46=_0x304de0?[_0x304de0]:[getRangerDir(),_0x3dc653[_0x2fe412(0x103)](getRangerHomeDir)][_0x2fe412(0xb3)]((_0x4de851,_0x5b7d55,_0x55518e)=>_0x55518e[_0x2fe412(0xe8)](_0x4de851)===_0x5b7d55),_0x3fa66b=_0x37c494?.[_0x2fe412(0x105)]??['ci',_0x3dc653[_0x2fe412(0xe5)],_0x3dc653[_0x2fe412(0xcd)]];for(const _0x264de4 of _0x2a2c46){const _0x1ef121=_0x3dc653[_0x2fe412(0xc1)](join,_0x264de4,_0x2fe412(0xec)),_0x10e3c9=join(_0x264de4,'ci'),_0xec021b=[{'location':'ci','path':join(_0x264de4,'ci',_0xbf63f8)},{'location':_0x2fe412(0xec),'path':_0x3dc653[_0x2fe412(0xdb)](join,_0x264de4,_0x3dc653[_0x2fe412(0xe5)],_0xbf63f8)},{'location':_0x3dc653[_0x2fe412(0xcd)],'path':join(_0x264de4,_0xbf63f8)}];for(const _0x5a3c17 of _0xec021b){if(_0x3fa66b[_0x2fe412(0xfc)](_0x5a3c17[_0x2fe412(0xfb)])&&existsSync(_0x5a3c17['path'])){if(_0x5a3c17[_0x2fe412(0xfb)]===_0x3dc653['FSwDA']&&(_0x3dc653[_0x2fe412(0x104)](_0x5a3c17[_0x2fe412(0xb7)],_0x1ef121)||_0x5a3c17[_0x2fe412(0xb7)]===_0x10e3c9)&&!hasLegacyProfileFiles(_0x5a3c17['path']))continue;return{'path':_0x5a3c17['path'],'location':_0x5a3c17['location']};}}}return null;}function hasLegacyProfileFiles(_0x1738c0){const _0x3e163a=_0x425d,_0x7e8986={'azlMz':function(_0x548935,_0x4dde41,_0xc0bfae){return _0x548935(_0x4dde41,_0xc0bfae);},'qIXQn':'settings.json','HsdRL':'auth.json','VXsVk':function(_0x4ce9b2,_0x325ed9){return _0x4ce9b2(_0x325ed9);},'zMUgB':_0x3e163a(0xe3)};return existsSync(_0x7e8986[_0x3e163a(0x10e)](join,_0x1738c0,_0x7e8986[_0x3e163a(0xd4)]))||existsSync(_0x7e8986[_0x3e163a(0x10e)](join,_0x1738c0,_0x7e8986['HsdRL']))||_0x7e8986['VXsVk'](existsSync,_0x7e8986['azlMz'](join,_0x1738c0,_0x7e8986['zMUgB']));}export function isEnvCi(_0x3c6464){const _0x3739e6=_0x425d,_0xb0d6ec={'PvOPq':function(_0x308f8d,_0x150ccf){return _0x308f8d(_0x150ccf);},'QwSCI':function(_0x4fa12c,_0x14f1a2,_0x325143,_0x16cdb6){return _0x4fa12c(_0x14f1a2,_0x325143,_0x16cdb6);},'rBlsT':function(_0x11205c){return _0x11205c();},'gcrJR':function(_0x12bf51){return _0x12bf51();},'OwuOH':function(_0x453933,_0x39a4a0){return _0x453933!==_0x39a4a0;},'kByqU':function(_0x574a8d){return _0x574a8d();}};if(_0xb0d6ec['PvOPq'](existsSync,_0xb0d6ec['QwSCI'](join,_0xb0d6ec[_0x3739e6(0xe1)](getRangerDir),'ci',_0x3c6464)))return!![];const _0xe7d22b=_0xb0d6ec['gcrJR'](getRangerHomeDir);if(_0xb0d6ec[_0x3739e6(0x101)](_0xe7d22b,_0xb0d6ec['kByqU'](getRangerDir))&&_0xb0d6ec['PvOPq'](existsSync,join(_0xe7d22b,'ci',_0x3c6464)))return!![];return![];}export async function cleanupTempFiles(_0x4a3bcd){const _0x169311=_0x425d,_0x2c590e=[_0x4a3bcd['tempAuthPath'],_0x4a3bcd[_0x169311(0xc0)]]['filter'](Boolean);await Promise[_0x169311(0xd5)](_0x2c590e[_0x169311(0xfa)](_0x464152=>unlink(_0x464152)['catch'](_0x59e3d5=>{const _0x4b6e5c=_0x169311;_0x59e3d5[_0x4b6e5c(0xc5)]!=='ENOENT'&&console[_0x4b6e5c(0xa7)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x464152+':',_0x59e3d5['message']);})));}export function getSettingsPath(_0x17dcf0){const _0xd7a200=_0x425d,_0x3d8d62={'eUHmB':_0xd7a200(0xe0)};return join(getEnvDir(_0x17dcf0),_0x3d8d62[_0xd7a200(0xb5)]);}export async function loadSettings(_0x48d2dc){const _0x494ff8=_0x425d,_0x5485a8={'EvBZN':function(_0x619908,_0x2728b1){return _0x619908(_0x2728b1);},'EXhrW':function(_0x288453,_0x4d8eb1,_0x3ebf18){return _0x288453(_0x4d8eb1,_0x3ebf18);}},_0x106140=_0x5485a8['EvBZN'](getSettingsPath,_0x48d2dc);if(!existsSync(_0x106140))return{};try{const _0x3a9b18=await _0x5485a8['EXhrW'](readFile,_0x106140,'utf-8');return JSON[_0x494ff8(0xfe)](_0x3a9b18);}catch{return{};}}export async function saveSettings(_0x3c2d61,_0xca9bd1){const _0x5dcaf3=_0x425d,_0x1fc0c9={'IBEeF':function(_0x1d2c62,_0x190cb0){return _0x1d2c62(_0x190cb0);},'oxJUq':function(_0x368ac8,_0x46f236,_0xfe97f5){return _0x368ac8(_0x46f236,_0xfe97f5);}},_0x2fcc4a=getSettingsPath(_0x3c2d61),_0x3a663a=dirname(_0x2fcc4a);!_0x1fc0c9[_0x5dcaf3(0xcb)](existsSync,_0x3a663a)&&await _0x1fc0c9['oxJUq'](mkdir,_0x3a663a,{'recursive':!![]}),await _0x1fc0c9['oxJUq'](writeFile,_0x2fcc4a,JSON['stringify'](_0xca9bd1,null,0x2));}export function resolveEnvVars(_0x36630d){const _0x25ac62=_0x425d,_0x41002b={'ZoLBv':function(_0x2d0470,_0xebcd97){return _0x2d0470===_0xebcd97;},'CtgBf':function(_0x32caba,_0x31e76f){return _0x32caba===_0x31e76f;}};if(typeof _0x36630d===_0x25ac62(0x9a))return _0x36630d[_0x25ac62(0xe2)](/\$\{(\w+)\}/g,(_0x52ec50,_0x4416bf)=>{const _0x5ded63=_0x25ac62,_0x580414=process[_0x5ded63(0xff)][_0x4416bf];if(_0x41002b['ZoLBv'](_0x580414,undefined))throw new Error('Environment\x20variable\x20'+_0x4416bf+_0x5ded63(0x106));return _0x580414;});if(Array[_0x25ac62(0xa0)](_0x36630d))return _0x36630d['map'](resolveEnvVars);if(_0x36630d&&_0x41002b['CtgBf'](typeof _0x36630d,'object'))return Object[_0x25ac62(0xad)](Object['entries'](_0x36630d)['map'](([_0xd7d57c,_0x3c19ca])=>[_0xd7d57c,resolveEnvVars(_0x3c19ca)]));return _0x36630d;}function _0x20bc(){const _0x3a36df=['--no-sandbox','storageStatePath','length','cdpEndpoint','azlMz','dbfeA','2864538HUGFZf','playwright-cli','string','785866brsObP','keys','stagehand','--unsafely-treat-insecure-origin-as-secure=http://localhost','forWrite','isArray','Zxlvo','stringify','vision','377682ngJtZR','join','rangerDir','warn','userAgent','pdf','qnwZg','\x20\x20ranger\x20profile\x20add\x20<name>\x0a','args','fromEntries','EbKhG','--disable-setuid-sandbox','headless','setupHeaders','tDTgz','filter','3992956XhCgTm','eUHmB','2543904XUzVsN','path','catch','PVcLB','91zKCZkO','ytODf','nova-user-data','OWRCi','push','boolean','configPath','EjJvW','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','tabs','Trhxq','code','FgLmP','ranger-auth-','storageState','dqCNx','object','IBEeF','tZQDv','FSwDA','--disable-features=WebBluetooth','LZhNN','PrKlC','Refusing\x20to\x20write\x20profile\x20\x22','file','yvXte','qIXQn','all','fnojX','wnaln','Kdzca','Jyprf','vfdHn','btYRg','.json','safeMode','browser','executablePath','settings.json','rBlsT','replace','auth.json.enc','Default','lESLW','\x22\x20to\x20legacy\x20path\x20','xlAju','indexOf','tnHre','nwXNp','contextOptions','local','chromium','603335odnnhk','SfPjz','ranger-config','endsWith','extraHTTPHeaders','sessions','721239itRXUm','--disable-web-security','now','entries','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','adnif','map','location','includes','allowInsecureLocalhost','parse','env','FoLZs','OwuOH','RBMNU','LvbtL','Pyasy','locations','\x20is\x20not\x20set','headers','core','AsErM'];_0x20bc=function(){return _0x3a36df;};return _0x20bc();}const isRecord=_0x4ef9dd=>typeof _0x4ef9dd===_0x4a448e(0xca)&&_0x4ef9dd!==null&&!Array['isArray'](_0x4ef9dd),asRecord=_0x285af2=>isRecord(_0x285af2)?_0x285af2:undefined,mergeHeaders=(_0x7b87a6,_0x4556d2)=>{const _0x2e38ef=_0x4a448e,_0x1d61dc={'Trhxq':function(_0x121799,_0x170aa2){return _0x121799??_0x170aa2;}},_0x171a58={..._0x1d61dc[_0x2e38ef(0xc4)](_0x7b87a6,{}),..._0x4556d2??{}};return Object[_0x2e38ef(0x9c)](_0x171a58)[_0x2e38ef(0x10c)]?_0x171a58:undefined;},SAFE_MODE_ARGS=[_0x4a448e(0xce)],ALLOW_LOCALHOST_ARGS=[_0x4a448e(0xf5),'--allow-running-insecure-content',_0x4a448e(0x9e),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x55c4f5,_0x3717b8={}){const _0x5d8d61=_0x4a448e,_0x35b35c={'adnif':function(_0x1b98de,_0x4fc9fc){return _0x1b98de===_0x4fc9fc;},'BBCMa':_0x5d8d61(0x9a),'FgLmP':function(_0x5ab5b3,_0x30c9c7,_0x19a698){return _0x5ab5b3(_0x30c9c7,_0x19a698);},'BsTha':function(_0x47fc05,_0x31f754){return _0x47fc05(_0x31f754);}},_0x1c0f39=asRecord(_0x55c4f5[_0x5d8d61(0xde)]),_0x2e96a6={...asRecord(_0x1c0f39?.['launchOptions'])??{}};typeof _0x3717b8['headless']===_0x5d8d61(0xbf)&&(_0x2e96a6['headless']=_0x3717b8['headless']);if(_0x55c4f5[_0x5d8d61(0xdd)]){const _0xbdfada=_0x2e96a6['args']??[],_0x55eddd=SAFE_MODE_ARGS['filter'](_0x574c7c=>!_0xbdfada[_0x5d8d61(0xfc)](_0x574c7c));_0x2e96a6['args']=[..._0xbdfada,..._0x55eddd];}if(_0x55c4f5['allowInsecureLocalhost']){const _0x4e710e=_0x2e96a6['args']??[],_0x444cab=ALLOW_LOCALHOST_ARGS[_0x5d8d61(0xb3)](_0xda351=>!_0x4e710e['includes'](_0xda351));_0x2e96a6['args']=[..._0x4e710e,..._0x444cab];}const _0x43d443={...asRecord(_0x1c0f39?.[_0x5d8d61(0xeb)])??{}};_0x43d443['ignoreHTTPSErrors']=!![];_0x35b35c[_0x5d8d61(0xf9)](typeof _0x55c4f5['userAgent'],_0x35b35c['BBCMa'])&&(_0x43d443[_0x5d8d61(0xa8)]=_0x55c4f5[_0x5d8d61(0xa8)]);const _0x5bc1b2=_0x35b35c[_0x5d8d61(0xc6)](mergeHeaders,_0x35b35c['BsTha'](asRecord,_0x43d443[_0x5d8d61(0xf2)]),asRecord(_0x55c4f5[_0x5d8d61(0x107)]));return _0x5bc1b2?_0x43d443['extraHTTPHeaders']=_0x5bc1b2:delete _0x43d443[_0x5d8d61(0xf2)],_0x3717b8['storageStatePath']&&(_0x43d443[_0x5d8d61(0xc8)]=_0x3717b8[_0x5d8d61(0x10b)]),{'launchOptions':_0x2e96a6,'contextOptions':_0x43d443};}export async function resolveProfileStorageState(_0x5f1f34){const _0x2cdb47=_0x4a448e,_0x5ce5a2={'wnaln':function(_0x5cca71,_0x26f4ab){return _0x5cca71(_0x26f4ab);}};return resolveLocalAuthPath(_0x5ce5a2[_0x2cdb47(0xd7)](getEnvDir,_0x5f1f34));}async function resolveLocalAuthPath(_0x451508){const _0x422c4=_0x4a448e,_0x200c3a={'Jyprf':function(_0x17318f,_0x112c29,_0x7b66e3){return _0x17318f(_0x112c29,_0x7b66e3);},'LZhNN':function(_0x3b1308,_0x360ea8){return _0x3b1308(_0x360ea8);},'SfPjz':function(_0x13912d,_0x3939d0,_0x3a96ac){return _0x13912d(_0x3939d0,_0x3a96ac);},'KwHcD':function(_0x2ea782,_0x1960e2){return _0x2ea782(_0x1960e2);}},_0x15aff0=_0x200c3a[_0x422c4(0xd9)](join,_0x451508,_0x422c4(0xe3)),_0x98f081=join(_0x451508,'auth.json');if(_0x200c3a[_0x422c4(0xcf)](existsSync,_0x15aff0))try{const _0xc842cc=await getToken();if(!_0xc842cc)throw new Error(_0x422c4(0xf8));const _0x1c824d=await _0x200c3a[_0x422c4(0xcf)](readFile,_0x15aff0),_0x6c1f4d=decrypt(_0x1c824d,_0xc842cc),_0xe6e09=_0x200c3a['Jyprf'](join,tmpdir(),_0x422c4(0xc7)+Date[_0x422c4(0xf6)]()+'.json');return await _0x200c3a[_0x422c4(0xef)](writeFile,_0xe6e09,_0x6c1f4d),{'storageStatePath':_0xe6e09,'tempAuthPath':_0xe6e09};}catch(_0x59198e){const _0x11e713=_0x59198e instanceof Error?_0x59198e['message']:String(_0x59198e);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x11e713);}if(_0x200c3a['KwHcD'](existsSync,_0x98f081))return{'storageStatePath':_0x98f081};return{};}export async function buildPlaywrightConfig(_0x247992,_0x3ca451,_0x5a5a16,_0x2e40a0,_0x164beb){const _0x26eb04={'wWgOW':'stagehand','oIstU':function(_0x3cf927,_0x5ca1c7){return _0x3cf927(_0x5ca1c7);}};if(_0x164beb)return buildPlaywrightConfigCore(_0x247992,_0x164beb,_0x3ca451,_0x5a5a16,_0x2e40a0,_0x26eb04['wWgOW']);const {storageStatePath:_0x2056b8,tempAuthPath:_0xc2d4fa}=await resolveLocalAuthPath(getEnvDir(_0x3ca451));try{const _0x2d30d7=await buildPlaywrightConfigCore(_0x247992,_0x2056b8,_0x3ca451,_0x5a5a16,_0x2e40a0,_0x26eb04['wWgOW']);return{..._0x2d30d7,'tempAuthPath':_0xc2d4fa};}catch(_0x295457){_0xc2d4fa&&await _0x26eb04['oIstU'](unlink,_0xc2d4fa)['catch'](()=>{});throw _0x295457;}}export async function buildPlaywrightConfigCore(_0x2a6db5,_0x58efcc,_0x32ffd8,_0x2356d1,_0x6964b0,_0x448800=_0x4a448e(0x9d)){const _0x316da5=_0x4a448e,_0x32a697={'FoLZs':function(_0x41dbbd,_0x1b0788){return _0x41dbbd===_0x1b0788;},'PrKlC':'--no-sandbox','rqwyn':'--disable-setuid-sandbox','tnHre':'chromium','sdfvg':'clipboard-write','woMIW':function(_0xf8e470,_0x423012,_0x3a7639,_0x484fee){return _0xf8e470(_0x423012,_0x3a7639,_0x484fee);},'dbfeA':_0x316da5(0xf3),'TCCUs':function(_0xa765bd,_0x5e0ca4){return _0xa765bd(_0x5e0ca4);},'msuBv':_0x316da5(0xd2),'VbjHb':'install','fnojX':_0x316da5(0xa9),'lISaH':function(_0x25e6f1,_0x593416){return _0x25e6f1===_0x593416;},'xlAju':_0x316da5(0xf0),'AsErM':function(_0x3151f7,_0x50071b){return _0x3151f7===_0x50071b;},'xGiui':_0x316da5(0x99),'Zxlvo':'-cli','KysEl':function(_0x24a610,_0x1788c9,_0xec30d4){return _0x24a610(_0x1788c9,_0xec30d4);}},_0x3c5f00=_0x2356d1||randomUUID(),_0x30110c=_0x32a697['woMIW'](join,getRangerDir(),_0x32a697[_0x316da5(0x10f)],_0x3c5f00),_0x462a36=_0x32a697['TCCUs'](Boolean,_0x2a6db5[_0x316da5(0x10d)]),_0x303664=_0x462a36?{'browserName':_0x316da5(0xed),'cdpEndpoint':_0x2a6db5['cdpEndpoint']}:((()=>{const _0x4bfa5f=_0x316da5,{launchOptions:_0x216949,contextOptions:_0x528aa7}=buildBrowserOptionsFromSettings(_0x2a6db5,{'headless':_0x6964b0?![]:_0x2a6db5['headless']??!![],'storageStatePath':_0x58efcc});if(_0x32a697['FoLZs'](process['getuid']?.(),0x0)){const _0x169375=[_0x32a697[_0x4bfa5f(0xd0)],_0x32a697['rqwyn']],_0xd61ffc=_0x216949['args']??[],_0x2bfe78=_0x169375[_0x4bfa5f(0xb3)](_0x216ace=>!_0xd61ffc[_0x4bfa5f(0xfc)](_0x216ace));_0x216949[_0x4bfa5f(0xac)]=[..._0xd61ffc,..._0x2bfe78];}return{'isolated':!![],'browserName':_0x32a697[_0x4bfa5f(0xe9)],'launchOptions':_0x216949,'contextOptions':{..._0x528aa7,'permissions':['clipboard-read',_0x32a697['sdfvg']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0xe16bd6=_0x448800==='playwright-cli'?{'browser':_0x303664,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x30110c,'outputMode':_0x32a697['msuBv'],'codegen':'none'}:{'name':_0x32ffd8,'browser':_0x303664,'capabilities':[_0x316da5(0x108),_0x316da5(0xc3),_0x32a697['VbjHb'],_0x32a697[_0x316da5(0xd6)],_0x316da5(0xa3)],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x30110c};if(!_0x462a36){const _0x4623d8=_0xe16bd6['browser'],_0x7fee32=_0x4623d8['contextOptions'];if(_0x32a697[_0x316da5(0x100)](_0x7fee32[_0x316da5(0xa8)],undefined))delete _0x7fee32[_0x316da5(0xa8)];if(_0x32a697['lISaH'](_0x7fee32['storageState'],undefined))delete _0x7fee32['storageState'];}const _0xb630ed=join(tmpdir(),_0x32a697[_0x316da5(0xe7)]);!existsSync(_0xb630ed)&&await mkdir(_0xb630ed,{'recursive':!![]});const _0x5f3bdf=_0x32a697[_0x316da5(0x109)](_0x448800,_0x32a697['xGiui'])?_0x32a697[_0x316da5(0xa1)]:'',_0x554ba1=join(_0xb630ed,_0x32ffd8+'-'+Date['now']()+_0x5f3bdf+_0x316da5(0xdc));return await _0x32a697['KysEl'](writeFile,_0x554ba1,JSON[_0x316da5(0xa2)](_0xe16bd6,null,0x2)),{'configPath':_0x554ba1,'storageStatePath':_0x58efcc};}export async function buildPlaywrightCliConfig(_0x274725,_0x55f9df,_0x35f0ef,_0x44c726,_0xfe3350){const _0x59be53=_0x4a448e,_0x56ceaf={'bQlTr':function(_0x2f8a77,_0x3817b0,_0x2c72ea,_0x34f2c6,_0x521d44,_0xfa73aa,_0x48e092){return _0x2f8a77(_0x3817b0,_0x2c72ea,_0x34f2c6,_0x521d44,_0xfa73aa,_0x48e092);}};if(_0xfe3350)return _0x56ceaf['bQlTr'](buildPlaywrightConfigCore,_0x274725,_0xfe3350,_0x55f9df,_0x35f0ef,_0x44c726,'playwright-cli');const {storageStatePath:_0x18748d,tempAuthPath:_0xb98525}=await resolveLocalAuthPath(getEnvDir(_0x55f9df));try{const _0x3d2a29=await buildPlaywrightConfigCore(_0x274725,_0x18748d,_0x55f9df,_0x35f0ef,_0x44c726,_0x59be53(0x99));return{..._0x3d2a29,'tempAuthPath':_0xb98525};}catch(_0x5a285c){_0xb98525&&await unlink(_0xb98525)[_0x59be53(0xb8)](()=>{});throw _0x5a285c;}}export async function buildNovaActCliConfig(_0x18fdc3,_0x54c6c7,_0x3a4f42,_0x1eb391,_0x38b6d0){const _0x1ce20f=_0x4a448e,_0x25ecb7={'pgCFM':function(_0x5e78bd){return _0x5e78bd();},'wGHkC':_0x1ce20f(0xf3),'OWRCi':function(_0x128ac4,_0x25b469,_0x112149){return _0x128ac4(_0x25b469,_0x112149);},'dqCNx':function(_0x3b3ee4,_0x28f30c){return _0x3b3ee4===_0x28f30c;},'EbKhG':'string','ZDfET':function(_0x5f34c3,_0x444477){return _0x5f34c3(_0x444477);}},{storageStatePath:_0xb0f040,tempAuthPath:_0x1fd48d}=_0x38b6d0?{'storageStatePath':_0x38b6d0,'tempAuthPath':undefined}:await resolveLocalAuthPath(getEnvDir(_0x54c6c7)),_0x5e35b7=_0x3a4f42||_0x25ecb7['pgCFM'](randomUUID),_0x505d9e=join(getRangerDir(),_0x25ecb7['wGHkC'],_0x5e35b7),_0x59904c=join(_0x505d9e,_0x1ce20f(0xbc)),_0x457a76=_0xb0f040?_0x25ecb7['OWRCi'](join,_0x59904c,_0x1ce20f(0xe4)):undefined,{launchOptions:_0x3afb06,contextOptions:_0xd044f3}=_0x25ecb7[_0x1ce20f(0xbd)](buildBrowserOptionsFromSettings,_0x18fdc3,{'headless':_0x1eb391?![]:_0x18fdc3['headless']??!![],'storageStatePath':_0xb0f040});if(_0x25ecb7[_0x1ce20f(0xc9)](process['getuid']?.(),0x0)){const _0x4aa8e3=[_0x1ce20f(0x10a),_0x1ce20f(0xaf)],_0x5d99a9=_0x3afb06['args']??[],_0x34aa5b=_0x4aa8e3['filter'](_0x2cbfe8=>!_0x5d99a9['includes'](_0x2cbfe8));_0x3afb06[_0x1ce20f(0xac)]=[..._0x5d99a9,..._0x34aa5b];}const _0x23615e=typeof _0x3afb06[_0x1ce20f(0xdf)]===_0x25ecb7[_0x1ce20f(0xae)]?_0x3afb06['executablePath']:_0xb0f040?chromium[_0x1ce20f(0xdf)]():undefined;return{'storageStatePath':_0xb0f040,'tempAuthPath':_0x1fd48d,'baseUrl':_0x18fdc3['baseUrl'],'headless':_0x25ecb7['ZDfET'](Boolean,_0x3afb06[_0x1ce20f(0xb0)]),'userDataDir':_0x59904c,'browserProfilePath':_0x457a76,'executablePath':_0x23615e,'launchArgs':Array[_0x1ce20f(0xa0)](_0x3afb06['args'])?_0x3afb06[_0x1ce20f(0xac)][_0x1ce20f(0xb3)](_0x1096aa=>typeof _0x1096aa===_0x1ce20f(0x9a)):[],'userAgent':typeof _0xd044f3[_0x1ce20f(0xa8)]===_0x25ecb7['EbKhG']?_0xd044f3['userAgent']:undefined,'extraHTTPHeaders':_0xd044f3[_0x1ce20f(0xf2)],'allowInsecureLocalhost':Boolean(_0x18fdc3[_0x1ce20f(0xfd)]),'safeMode':Boolean(_0x18fdc3[_0x1ce20f(0xdd)]),'cdpEndpoint':_0x18fdc3['cdpEndpoint'],'isCdpMode':Boolean(_0x18fdc3[_0x1ce20f(0x10d)])};}export function getNestedValue(_0x424e80,_0x599f3a){const _0x5bc0f1=_0x4a448e,_0x128bf8={'FZDls':function(_0x4f0894,_0x48f32a){return _0x4f0894===_0x48f32a;},'nwXNp':function(_0xf7f889,_0x4698c4){return _0xf7f889!==_0x4698c4;}},_0x218c13=parseKeyPath(_0x599f3a);let _0x8ea8c5=_0x424e80;for(const _0x1a12de of _0x218c13){if(_0x8ea8c5===null||_0x128bf8['FZDls'](_0x8ea8c5,undefined)||_0x128bf8[_0x5bc0f1(0xea)](typeof _0x8ea8c5,'object'))return undefined;_0x8ea8c5=_0x8ea8c5[_0x1a12de];}return _0x8ea8c5;}export function setNestedValue(_0x100830,_0x1c6911,_0xeb0fe9){const _0x4c702f=_0x4a448e,_0x4e9057={'eIxRc':function(_0x4d85d6,_0x17a6f7){return _0x4d85d6(_0x17a6f7);},'AsGmr':function(_0x147bcb,_0x1a553b){return _0x147bcb in _0x1a553b;},'uNDGl':function(_0x201a14,_0x1734d1){return _0x201a14!==_0x1734d1;}},_0x465852=_0x4e9057['eIxRc'](parseKeyPath,_0x1c6911);let _0xbf19d7=_0x100830;for(let _0xed35f4=0x0;_0xed35f4<_0x465852['length']-0x1;_0xed35f4++){const _0x3fdaef=_0x465852[_0xed35f4];(!_0x4e9057['AsGmr'](_0x3fdaef,_0xbf19d7)||_0x4e9057['uNDGl'](typeof _0xbf19d7[_0x3fdaef],_0x4c702f(0xca)))&&(_0xbf19d7[_0x3fdaef]={}),_0xbf19d7=_0xbf19d7[_0x3fdaef];}_0xbf19d7[_0x465852[_0x465852[_0x4c702f(0x10c)]-0x1]]=_0xeb0fe9;}export function deleteNestedValue(_0x58ce9c,_0x149302){const _0x50100b=_0x4a448e,_0xb3feec={'NSooS':function(_0x13878d,_0x5587b8){return _0x13878d(_0x5587b8);},'vfdHn':function(_0x5092df,_0x3b84ab){return _0x5092df===_0x3b84ab;},'exgZw':function(_0x2b7abb,_0x25b17a){return _0x2b7abb!==_0x25b17a;},'ZkCuB':'object','Kxiyb':function(_0x3717fd,_0x19a64f){return _0x3717fd in _0x19a64f;}},_0x59c21e=_0xb3feec['NSooS'](parseKeyPath,_0x149302);let _0x5a309a=_0x58ce9c;for(let _0x4f8ec7=0x0;_0x4f8ec7<_0x59c21e[_0x50100b(0x10c)]-0x1;_0x4f8ec7++){if(_0xb3feec[_0x50100b(0xda)](_0x5a309a,null)||_0x5a309a===undefined||_0xb3feec['exgZw'](typeof _0x5a309a,_0xb3feec['ZkCuB']))return![];_0x5a309a=_0x5a309a[_0x59c21e[_0x4f8ec7]];}if(_0xb3feec[_0x50100b(0xda)](_0x5a309a,null)||_0x5a309a===undefined||typeof _0x5a309a!=='object')return![];const _0x2706a7=_0x59c21e[_0x59c21e[_0x50100b(0x10c)]-0x1];if(_0xb3feec['Kxiyb'](_0x2706a7,_0x5a309a))return delete _0x5a309a[_0x2706a7],!![];return![];}function parseKeyPath(_0x43a615){const _0x57ac9c=_0x4a448e,_0x1fd566={'PoNLA':'header','RBMNU':'setupHeader'},_0x958155=_0x43a615['split']('.');return _0x958155[0x0]===_0x1fd566['PoNLA']&&(_0x958155[0x0]=_0x57ac9c(0x107)),_0x958155[0x0]===_0x1fd566[_0x57ac9c(0x102)]&&(_0x958155[0x0]=_0x57ac9c(0xb1)),_0x958155;}export function formatSettings(_0x33853d,_0x699b03=0x0){const _0x2c1f79=_0x4a448e,_0x30cda7=[],_0x3d548f='\x20\x20'['repeat'](_0x699b03);for(const [_0x3db910,_0x420074]of Object[_0x2c1f79(0xf7)](_0x33853d)){if(_0x420074===undefined)continue;if(typeof _0x420074===_0x2c1f79(0xca)&&_0x420074!==null){_0x30cda7[_0x2c1f79(0xbe)](''+_0x3d548f+_0x3db910+':');for(const [_0x34661d,_0x67fd19]of Object[_0x2c1f79(0xf7)](_0x420074)){_0x30cda7['push'](_0x3d548f+'\x20\x20'+_0x34661d+':\x20'+_0x67fd19);}}else _0x30cda7[_0x2c1f79(0xbe)](''+_0x3d548f+_0x3db910+':\x20'+_0x420074);}return _0x30cda7[_0x2c1f79(0xa5)]('\x0a');}
|
|
1
|
+
const _0x3a4442=_0x5e4b;(function(_0x146730,_0x352ee0){const _0x386bcd=_0x5e4b,_0x5d295e=_0x146730();while(!![]){try{const _0x361af7=-parseInt(_0x386bcd(0x1ad))/0x1*(parseInt(_0x386bcd(0x17e))/0x2)+parseInt(_0x386bcd(0x171))/0x3+parseInt(_0x386bcd(0x184))/0x4*(-parseInt(_0x386bcd(0x167))/0x5)+parseInt(_0x386bcd(0x16c))/0x6+-parseInt(_0x386bcd(0x176))/0x7+-parseInt(_0x386bcd(0x165))/0x8+parseInt(_0x386bcd(0x169))/0x9;if(_0x361af7===_0x352ee0)break;else _0x5d295e['push'](_0x5d295e['shift']());}catch(_0x57a33f){_0x5d295e['push'](_0x5d295e['shift']());}}}(_0x4771,0x92cc4));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{chromium}from'playwright';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0xcf5cb9,_0x595a6b){const _0x59c7aa=_0x5e4b,_0x397d13={'KwfhK':function(_0x2002f5,_0x3a804c,_0x6d4ce8,_0x48d7c9){return _0x2002f5(_0x3a804c,_0x6d4ce8,_0x48d7c9);},'Tbhzc':_0x59c7aa(0x19f),'knIXV':function(_0x2c786f,_0x5e75d6,_0xf196d5){return _0x2c786f(_0x5e75d6,_0xf196d5);},'pFXxq':function(_0x58bf2e,_0x12759f){return _0x58bf2e(_0x12759f);},'kKZsg':function(_0x159cc1,_0x32e63c){return _0x159cc1(_0x32e63c);},'hzfWu':function(_0x538e88,_0x1e09ba){return _0x538e88!==_0x1e09ba;}},_0x4e59d1=_0x397d13['KwfhK'](join,_0x595a6b,'ci',_0xcf5cb9),_0x4f9e38=join(_0x595a6b,_0x397d13['Tbhzc'],_0xcf5cb9),_0x5daa55=_0x397d13[_0x59c7aa(0x164)](join,_0x595a6b,_0xcf5cb9),_0x205185=join(_0x595a6b,_0x397d13['Tbhzc']),_0xbce62a=_0x397d13[_0x59c7aa(0x164)](join,_0x595a6b,'ci');if(_0x397d13[_0x59c7aa(0x18e)](existsSync,_0x4e59d1))return _0x4e59d1;if(_0x397d13[_0x59c7aa(0x153)](existsSync,_0x4f9e38))return _0x4f9e38;if(_0x397d13['kKZsg'](existsSync,_0x5daa55)&&(_0x397d13['hzfWu'](_0x5daa55,_0x205185)&&_0x5daa55!==_0xbce62a?!![]:_0x397d13[_0x59c7aa(0x153)](hasLegacyProfileFiles,_0x5daa55)))return _0x5daa55;return null;}export function getEnvDir(_0x18c4eb,_0x5776ad={}){const _0x24b889=_0x5e4b,_0x8e5374={'tkaAh':function(_0x82f2ee,_0x4f785b,_0x4cdfc5){return _0x82f2ee(_0x4f785b,_0x4cdfc5);},'CuuFl':function(_0x542f5c,_0x3ae784,_0x41d7a7){return _0x542f5c(_0x3ae784,_0x41d7a7);},'zFBtu':function(_0x3aec7c){return _0x3aec7c();},'yGVfh':function(_0x465f17,_0x571745){return _0x465f17!==_0x571745;},'cCTFR':function(_0x2c9d40,_0x49de01,_0x37de76){return _0x2c9d40(_0x49de01,_0x37de76);},'PFMcC':function(_0x45dac1,_0x3b64dc,_0x405df4,_0x1d2b8c){return _0x45dac1(_0x3b64dc,_0x405df4,_0x1d2b8c);}},_0x2bf6d6=getRangerDir(),_0x1a6f01=_0x8e5374['tkaAh'](findEnvInRoot,_0x18c4eb,_0x2bf6d6);if(_0x1a6f01){if(_0x5776ad['forWrite']&&isLegacyEnvPath(_0x1a6f01))throw _0x8e5374['CuuFl'](legacyWriteError,_0x18c4eb,_0x1a6f01);return _0x1a6f01;}const _0x4ba23d=_0x8e5374['zFBtu'](getRangerHomeDir);if(_0x8e5374['yGVfh'](_0x4ba23d,_0x2bf6d6)){const _0x23f9cb=findEnvInRoot(_0x18c4eb,_0x4ba23d);if(_0x23f9cb){if(_0x5776ad['forWrite']&&isLegacyEnvPath(_0x23f9cb))throw _0x8e5374['cCTFR'](legacyWriteError,_0x18c4eb,_0x23f9cb);return _0x23f9cb;}}const _0x1f52c5=_0x8e5374[_0x24b889(0x133)](join,_0x4ba23d,_0x24b889(0x19f),_0x18c4eb);if(_0x5776ad['forWrite'])throw legacyWriteError(_0x18c4eb,_0x1f52c5);return _0x1f52c5;}function isLegacyEnvPath(_0x2f650d){const _0x591636=_0x5e4b,_0x244cfe={'bYyYF':function(_0x1bae17){return _0x1bae17();},'CEPRZ':function(_0x32c682,_0x2e6d4e){return _0x32c682+_0x2e6d4e;}},_0x14b42a=_0x244cfe['bYyYF'](getRangerDir),_0x5728ba=getRangerHomeDir();for(const _0x32679e of new Set([_0x14b42a,_0x5728ba])){const _0x15c929=_0x32679e['endsWith']('/')?_0x32679e:_0x244cfe[_0x591636(0x175)](_0x32679e,'/');if(_0x2f650d===_0x32679e||_0x2f650d[_0x591636(0x14a)](_0x15c929))return!![];}return![];}function legacyWriteError(_0x3e8649,_0x184789){const _0x956b77=_0x5e4b,_0x3f79fa={'WjpxP':function(_0x50aaf8,_0x25d4d0){return _0x50aaf8+_0x25d4d0;}};return new Error(_0x3f79fa['WjpxP'](_0x956b77(0x1a1)+_0x3e8649+_0x956b77(0x144)+_0x184789+'.\x0a'+_0x956b77(0x199),'\x20\x20ranger\x20profile\x20add\x20<name>\x0a')+_0x956b77(0x1ae));}function _0x5e4b(_0x304f23,_0x324935){_0x304f23=_0x304f23-0x133;const _0x477125=_0x4771();let _0x5e4b18=_0x477125[_0x304f23];return _0x5e4b18;}export function findExistingEnv(_0x5504a9,_0x1b0054){const _0x953c2e=_0x5e4b,_0x3899e3={'epAIz':_0x953c2e(0x19f),'ooIIc':function(_0x16d102,_0x4aceed,_0x272ea3){return _0x16d102(_0x4aceed,_0x272ea3);},'tWzgY':function(_0x124232,_0x479105,_0x1f7ca4,_0x287f44){return _0x124232(_0x479105,_0x1f7ca4,_0x287f44);},'UxSfV':'legacy','FWCei':function(_0x400bb1,_0x42cbf5,_0x341b89){return _0x400bb1(_0x42cbf5,_0x341b89);},'Svjro':function(_0x16c2b7,_0xf19957){return _0x16c2b7(_0xf19957);}},_0x16f341=_0x1b0054?.[_0x953c2e(0x13e)],_0x56ea15=_0x16f341?[_0x16f341]:[getRangerDir(),getRangerHomeDir()][_0x953c2e(0x183)]((_0x175051,_0x5188ea,_0x20b474)=>_0x20b474[_0x953c2e(0x134)](_0x175051)===_0x5188ea),_0x1c9a6b=_0x1b0054?.[_0x953c2e(0x195)]??['ci',_0x3899e3[_0x953c2e(0x15d)],_0x953c2e(0x17f)];for(const _0x3877a8 of _0x56ea15){const _0x29cafd=_0x3899e3['ooIIc'](join,_0x3877a8,'local'),_0x5c0afe=join(_0x3877a8,'ci'),_0xe8e92e=[{'location':'ci','path':join(_0x3877a8,'ci',_0x5504a9)},{'location':_0x3899e3['epAIz'],'path':_0x3899e3[_0x953c2e(0x156)](join,_0x3877a8,_0x3899e3['epAIz'],_0x5504a9)},{'location':_0x3899e3['UxSfV'],'path':_0x3899e3[_0x953c2e(0x166)](join,_0x3877a8,_0x5504a9)}];for(const _0x1e7b2d of _0xe8e92e){if(_0x1c9a6b['includes'](_0x1e7b2d[_0x953c2e(0x18f)])&&_0x3899e3['Svjro'](existsSync,_0x1e7b2d['path'])){if(_0x1e7b2d[_0x953c2e(0x18f)]===_0x3899e3['UxSfV']&&(_0x1e7b2d[_0x953c2e(0x179)]===_0x29cafd||_0x1e7b2d[_0x953c2e(0x179)]===_0x5c0afe)&&!hasLegacyProfileFiles(_0x1e7b2d['path']))continue;return{'path':_0x1e7b2d[_0x953c2e(0x179)],'location':_0x1e7b2d['location']};}}}return null;}function hasLegacyProfileFiles(_0xbad13c){const _0xefb76f=_0x5e4b,_0x4388de={'rbZwW':function(_0x4395a4,_0x5121f1){return _0x4395a4(_0x5121f1);},'tXqUB':function(_0x2d4a77,_0x5eaab4,_0x24b5b8){return _0x2d4a77(_0x5eaab4,_0x24b5b8);}};return _0x4388de[_0xefb76f(0x174)](existsSync,_0x4388de[_0xefb76f(0x14b)](join,_0xbad13c,'settings.json'))||existsSync(join(_0xbad13c,_0xefb76f(0x194)))||existsSync(join(_0xbad13c,'auth.json.enc'));}export function isEnvCi(_0x9786ab){const _0x5af8f8=_0x5e4b,_0x4a9a31={'gqbfb':function(_0x4645db,_0x1467fc,_0x4ab17e,_0x1cc6f1){return _0x4645db(_0x1467fc,_0x4ab17e,_0x1cc6f1);},'pWPmO':function(_0x16e6e9){return _0x16e6e9();},'QDLjB':function(_0x4f5ba4,_0x10e5b4){return _0x4f5ba4(_0x10e5b4);}};if(existsSync(_0x4a9a31['gqbfb'](join,getRangerDir(),'ci',_0x9786ab)))return!![];const _0x3ca83a=getRangerHomeDir();if(_0x3ca83a!==_0x4a9a31['pWPmO'](getRangerDir)&&_0x4a9a31[_0x5af8f8(0x19b)](existsSync,_0x4a9a31['gqbfb'](join,_0x3ca83a,'ci',_0x9786ab)))return!![];return![];}function _0x4771(){const _0x26b826=['keys','sessions','oMAcy','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','nyzEp','QDLjB','.json','install','ignoreHTTPSErrors','local','Oxxld','Refusing\x20to\x20write\x20profile\x20\x22','XDuAF','userAgent','LdJfY','olTCm','spWdC','aRkAD','cJZes','core','\x20is\x20not\x20set','length','MgwmS','89sGYtqo','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','settings.json','IQaXp','entries','clipboard-write','PFMcC','indexOf','cNAJD','boolean','nova-user-data','catch','vDGDC','headless','QqaMU','object','replace','rangerDir','storageState','map','YFHLn','YEJgI','executablePath','\x22\x20to\x20legacy\x20path\x20','bFofY','rMJtd','string','azGuz','now','startsWith','tXqUB','args','includes','pprlk','uTswt','utf-8','zmXGI','cjfig','kKZsg','nhNdl','safeMode','tWzgY','message','browser','cAhUb','getuid','setupHeader','CXFYG','epAIz','hpkfV','ranger-auth-','header','FvSPj','NsJBC','auth.json.enc','knIXV','1098504PZWUNT','FWCei','95IbIzNe','headers','15573402olixsM','warn','chromium','1632648surxAZ','--disable-setuid-sandbox','LLFNk','SNvtH','WnUFK','1511613rmrqrX','cdpEndpoint','Irlly','rbZwW','CEPRZ','2909256JXnohv','stringify','parse','path','allowInsecureLocalhost','GRjzB','fugvc','--no-sandbox','9070grOrKC','legacy','vSpfH','code','UExMN','filter','199692cAflIO','none','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','YnMBT','contextOptions','umASs','QJQqs','isArray','kXNKq','NxwZB','pFXxq','location','Environment\x20variable\x20','wVfqZ','extraHTTPHeaders','--allow-insecure-localhost','auth.json','locations'];_0x4771=function(){return _0x26b826;};return _0x4771();}export async function cleanupTempFiles(_0x3806d3){const _0x3ec397=_0x5e4b,_0x48dd3a={'LrqGt':'ENOENT'},_0x1dee20=[_0x3806d3['tempAuthPath'],_0x3806d3['configPath']][_0x3ec397(0x183)](Boolean);await Promise['all'](_0x1dee20['map'](_0x776bee=>unlink(_0x776bee)['catch'](_0x4498da=>{const _0x4da21a=_0x3ec397;_0x4498da[_0x4da21a(0x181)]!==_0x48dd3a['LrqGt']&&console[_0x4da21a(0x16a)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x776bee+':',_0x4498da[_0x4da21a(0x157)]);})));}export function getSettingsPath(_0x1515d3){const _0x5bef87=_0x5e4b,_0x246b06={'qpmdM':_0x5bef87(0x1af)};return join(getEnvDir(_0x1515d3),_0x246b06['qpmdM']);}export async function loadSettings(_0x2111e5){const _0x3ca3a7=_0x5e4b,_0x618517={'GRjzB':function(_0x292159,_0x5a31c9){return _0x292159(_0x5a31c9);},'kXNKq':_0x3ca3a7(0x150)},_0x2f726b=_0x618517[_0x3ca3a7(0x17b)](getSettingsPath,_0x2111e5);if(!existsSync(_0x2f726b))return{};try{const _0x216f22=await readFile(_0x2f726b,_0x618517[_0x3ca3a7(0x18c)]);return JSON[_0x3ca3a7(0x178)](_0x216f22);}catch{return{};}}export async function saveSettings(_0x548ede,_0x145290){const _0x55f9fd=_0x5e4b,_0x1daa39={'rMJtd':function(_0x22fa47,_0x1f4d74){return _0x22fa47(_0x1f4d74);},'nWhsG':function(_0x4caa01,_0x191fb8){return _0x4caa01(_0x191fb8);}},_0x168276=_0x1daa39[_0x55f9fd(0x146)](getSettingsPath,_0x548ede),_0x423f7a=dirname(_0x168276);!_0x1daa39['nWhsG'](existsSync,_0x423f7a)&&await mkdir(_0x423f7a,{'recursive':!![]}),await writeFile(_0x168276,JSON[_0x55f9fd(0x177)](_0x145290,null,0x2));}export function resolveEnvVars(_0x4705e3){const _0x4122ea=_0x5e4b,_0x126a4f={'YFHLn':'object'};if(typeof _0x4705e3==='string')return _0x4705e3[_0x4122ea(0x13d)](/\$\{(\w+)\}/g,(_0x305819,_0x5ede92)=>{const _0x2b1dd5=_0x4122ea,_0xfaf091=process['env'][_0x5ede92];if(_0xfaf091===undefined)throw new Error(_0x2b1dd5(0x190)+_0x5ede92+_0x2b1dd5(0x1aa));return _0xfaf091;});if(Array[_0x4122ea(0x18b)](_0x4705e3))return _0x4705e3['map'](resolveEnvVars);if(_0x4705e3&&typeof _0x4705e3===_0x126a4f[_0x4122ea(0x141)])return Object['fromEntries'](Object['entries'](_0x4705e3)[_0x4122ea(0x140)](([_0x31706e,_0x5cfb52])=>[_0x31706e,resolveEnvVars(_0x5cfb52)]));return _0x4705e3;}const isRecord=_0x34fdc6=>typeof _0x34fdc6===_0x3a4442(0x13c)&&_0x34fdc6!==null&&!Array['isArray'](_0x34fdc6),asRecord=_0xfe331=>isRecord(_0xfe331)?_0xfe331:undefined,mergeHeaders=(_0x376aee,_0x52936e)=>{const _0x964df5=_0x3a4442,_0x135831={'AGpql':function(_0x3b4247,_0x3535ca){return _0x3b4247??_0x3535ca;}},_0x2f9170={..._0x135831['AGpql'](_0x376aee,{}),..._0x52936e??{}};return Object[_0x964df5(0x196)](_0x2f9170)[_0x964df5(0x1ab)]?_0x2f9170:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content','--unsafely-treat-insecure-origin-as-secure=http://localhost',_0x3a4442(0x193)];export function buildBrowserOptionsFromSettings(_0x135ea1,_0x38c712={}){const _0x5d2066=_0x3a4442,_0x2bfe08={'LLFNk':function(_0x3ee66c,_0x4a29b4){return _0x3ee66c===_0x4a29b4;},'oMAcy':_0x5d2066(0x136),'cNAJD':function(_0x54deed,_0x3baa4c){return _0x54deed(_0x3baa4c);},'vDGDC':function(_0x1409de,_0x20c738){return _0x1409de===_0x20c738;},'dXjtQ':'string','liktX':function(_0x1e4e67,_0x46917a,_0x1e95fc){return _0x1e4e67(_0x46917a,_0x1e95fc);}},_0x536236=asRecord(_0x135ea1[_0x5d2066(0x158)]),_0x85ac94={...asRecord(_0x536236?.['launchOptions'])??{}};_0x2bfe08[_0x5d2066(0x16e)](typeof _0x38c712[_0x5d2066(0x13a)],_0x2bfe08[_0x5d2066(0x198)])&&(_0x85ac94['headless']=_0x38c712['headless']);if(_0x135ea1[_0x5d2066(0x155)]){const _0xeed5f4=_0x85ac94[_0x5d2066(0x14c)]??[],_0x11bc6f=SAFE_MODE_ARGS[_0x5d2066(0x183)](_0x1ccdc6=>!_0xeed5f4[_0x5d2066(0x14d)](_0x1ccdc6));_0x85ac94['args']=[..._0xeed5f4,..._0x11bc6f];}if(_0x135ea1['allowInsecureLocalhost']){const _0x44808e=_0x85ac94[_0x5d2066(0x14c)]??[],_0x178bca=ALLOW_LOCALHOST_ARGS[_0x5d2066(0x183)](_0x111d8a=>!_0x44808e['includes'](_0x111d8a));_0x85ac94[_0x5d2066(0x14c)]=[..._0x44808e,..._0x178bca];}const _0x3d5c40={..._0x2bfe08[_0x5d2066(0x135)](asRecord,_0x536236?.['contextOptions'])??{}};_0x3d5c40[_0x5d2066(0x19e)]=!![];_0x2bfe08[_0x5d2066(0x139)](typeof _0x135ea1['userAgent'],_0x2bfe08['dXjtQ'])&&(_0x3d5c40[_0x5d2066(0x1a3)]=_0x135ea1['userAgent']);const _0x544cef=_0x2bfe08['liktX'](mergeHeaders,asRecord(_0x3d5c40['extraHTTPHeaders']),_0x2bfe08['cNAJD'](asRecord,_0x135ea1['headers']));return _0x544cef?_0x3d5c40['extraHTTPHeaders']=_0x544cef:delete _0x3d5c40[_0x5d2066(0x192)],_0x38c712['storageStatePath']&&(_0x3d5c40[_0x5d2066(0x13f)]=_0x38c712['storageStatePath']),{'launchOptions':_0x85ac94,'contextOptions':_0x3d5c40};}export async function resolveProfileStorageState(_0x4b80b2){const _0x21864b=_0x3a4442,_0x34e90b={'XDuAF':function(_0x5eb792,_0x3a97f9){return _0x5eb792(_0x3a97f9);},'LHIgL':function(_0x70ba5b,_0x2d8326){return _0x70ba5b(_0x2d8326);}};return _0x34e90b[_0x21864b(0x1a2)](resolveLocalAuthPath,_0x34e90b['LHIgL'](getEnvDir,_0x4b80b2));}async function resolveLocalAuthPath(_0x28b0f9){const _0x1149a5=_0x3a4442,_0x24b489={'pprlk':_0x1149a5(0x163),'bFofY':function(_0x31ca1b){return _0x31ca1b();},'wFpYU':function(_0x376cec,_0x442f6a){return _0x376cec(_0x442f6a);},'QqaMU':function(_0x517239){return _0x517239();},'uTswt':function(_0xe05ce4,_0x19b41f,_0x157205){return _0xe05ce4(_0x19b41f,_0x157205);},'Irlly':function(_0x56a6cd,_0x416d98){return _0x56a6cd(_0x416d98);}},_0x197d09=join(_0x28b0f9,_0x24b489[_0x1149a5(0x14e)]),_0x560604=join(_0x28b0f9,'auth.json');if(existsSync(_0x197d09))try{const _0x2b063a=await _0x24b489[_0x1149a5(0x145)](getToken);if(!_0x2b063a)throw new Error(_0x1149a5(0x186));const _0xb20a9a=await _0x24b489['wFpYU'](readFile,_0x197d09),_0x27473b=decrypt(_0xb20a9a,_0x2b063a),_0x33d8f3=join(_0x24b489[_0x1149a5(0x13b)](tmpdir),_0x1149a5(0x15f)+Date[_0x1149a5(0x149)]()+_0x1149a5(0x19c));return await _0x24b489[_0x1149a5(0x14f)](writeFile,_0x33d8f3,_0x27473b),{'storageStatePath':_0x33d8f3,'tempAuthPath':_0x33d8f3};}catch(_0x1de6e3){const _0x35178c=_0x1de6e3 instanceof Error?_0x1de6e3[_0x1149a5(0x157)]:_0x24b489[_0x1149a5(0x173)](String,_0x1de6e3);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x35178c);}if(existsSync(_0x560604))return{'storageStatePath':_0x560604};return{};}export async function buildPlaywrightConfig(_0xae41d9,_0x5750c3,_0x1f34af,_0x2ab119,_0x135d02){const _0x2525ee=_0x3a4442,_0x3db099={'LdJfY':function(_0x5c7b4a,_0x105ec9,_0x192aec,_0xa68b03,_0x8f7175,_0x581e43,_0x354ac5){return _0x5c7b4a(_0x105ec9,_0x192aec,_0xa68b03,_0x8f7175,_0x581e43,_0x354ac5);},'RmPtA':'stagehand','HtNTp':function(_0x40fb33,_0x54fd71){return _0x40fb33(_0x54fd71);}};if(_0x135d02)return _0x3db099[_0x2525ee(0x1a4)](buildPlaywrightConfigCore,_0xae41d9,_0x135d02,_0x5750c3,_0x1f34af,_0x2ab119,_0x3db099['RmPtA']);const {storageStatePath:_0x408cec,tempAuthPath:_0x58b679}=await _0x3db099['HtNTp'](resolveLocalAuthPath,getEnvDir(_0x5750c3));try{const _0xeccfba=await _0x3db099['LdJfY'](buildPlaywrightConfigCore,_0xae41d9,_0x408cec,_0x5750c3,_0x1f34af,_0x2ab119,'stagehand');return{..._0xeccfba,'tempAuthPath':_0x58b679};}catch(_0x259108){_0x58b679&&await unlink(_0x58b679)[_0x2525ee(0x138)](()=>{});throw _0x259108;}}export async function buildPlaywrightConfigCore(_0x1fd235,_0x132e8d,_0x1439fe,_0x1e2fd8,_0x567bda,_0x3d1d23='stagehand'){const _0x551f0a=_0x3a4442,_0x467459={'VhCIu':_0x551f0a(0x16d),'SNvtH':_0x551f0a(0x16b),'cJZes':_0x551f0a(0x1b2),'zmXGI':function(_0x4535be,_0x531d53,_0x502450,_0x5daf81){return _0x4535be(_0x531d53,_0x502450,_0x5daf81);},'sCYXc':function(_0x20cbf6,_0x1b46a4){return _0x20cbf6===_0x1b46a4;},'Cpfhj':'file','pndLi':_0x551f0a(0x185),'DEVmd':'tabs','aJfQI':'pdf','nyzEp':'allow','IQaXp':function(_0x449f05){return _0x449f05();},'vSpfH':'ranger-config','YnMBT':function(_0x159cbb,_0x2bb1bc,_0x5a9e4c){return _0x159cbb(_0x2bb1bc,_0x5a9e4c);},'QyNiP':function(_0x42520a,_0x516e78){return _0x42520a===_0x516e78;},'wVfqZ':'playwright-cli','cAhUb':function(_0x43ea48,_0xaaed4,_0x1dbedb){return _0x43ea48(_0xaaed4,_0x1dbedb);}},_0x4bf462=_0x1e2fd8||randomUUID(),_0x56a7ed=_0x467459[_0x551f0a(0x151)](join,getRangerDir(),_0x551f0a(0x197),_0x4bf462),_0x11fb39=Boolean(_0x1fd235['cdpEndpoint']),_0xdf71cb=_0x11fb39?{'browserName':_0x467459[_0x551f0a(0x16f)],'cdpEndpoint':_0x1fd235['cdpEndpoint']}:((()=>{const _0xfed0d7=_0x551f0a,{launchOptions:_0x58f081,contextOptions:_0x1deb22}=buildBrowserOptionsFromSettings(_0x1fd235,{'headless':_0x567bda?![]:_0x1fd235[_0xfed0d7(0x13a)]??!![],'storageStatePath':_0x132e8d});if(process['getuid']?.()===0x0){const _0x5909cc=[_0xfed0d7(0x17d),_0x467459['VhCIu']],_0x5db201=_0x58f081[_0xfed0d7(0x14c)]??[],_0xed85fd=_0x5909cc[_0xfed0d7(0x183)](_0x1f02fb=>!_0x5db201[_0xfed0d7(0x14d)](_0x1f02fb));_0x58f081[_0xfed0d7(0x14c)]=[..._0x5db201,..._0xed85fd];}return{'isolated':!![],'browserName':_0x467459['SNvtH'],'launchOptions':_0x58f081,'contextOptions':{..._0x1deb22,'permissions':['clipboard-read',_0x467459[_0xfed0d7(0x1a8)]],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x1028e2=_0x467459['sCYXc'](_0x3d1d23,'playwright-cli')?{'browser':_0xdf71cb,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x56a7ed,'outputMode':_0x467459['Cpfhj'],'codegen':_0x467459['pndLi']}:{'name':_0x1439fe,'browser':_0xdf71cb,'capabilities':[_0x551f0a(0x1a9),_0x467459['DEVmd'],_0x551f0a(0x19d),_0x467459['aJfQI'],'vision'],'imageResponses':_0x467459[_0x551f0a(0x19a)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x56a7ed};if(!_0x11fb39){const _0x23e37d=_0x1028e2['browser'],_0x5563f3=_0x23e37d[_0x551f0a(0x188)];if(_0x5563f3[_0x551f0a(0x1a3)]===undefined)delete _0x5563f3['userAgent'];if(_0x5563f3['storageState']===undefined)delete _0x5563f3[_0x551f0a(0x13f)];}const _0x1456db=join(_0x467459[_0x551f0a(0x1b0)](tmpdir),_0x467459[_0x551f0a(0x180)]);!existsSync(_0x1456db)&&await _0x467459[_0x551f0a(0x187)](mkdir,_0x1456db,{'recursive':!![]});const _0x4d24ee=_0x467459['QyNiP'](_0x3d1d23,_0x467459[_0x551f0a(0x191)])?'-cli':'',_0x5ab998=join(_0x1456db,_0x1439fe+'-'+Date['now']()+_0x4d24ee+'.json');return await _0x467459[_0x551f0a(0x159)](writeFile,_0x5ab998,JSON['stringify'](_0x1028e2,null,0x2)),{'configPath':_0x5ab998,'storageStatePath':_0x132e8d};}export async function buildPlaywrightCliConfig(_0x339468,_0x33d0b7,_0x3a6e4c,_0x38c5d0,_0x3bc756){const _0x1f223d=_0x3a4442,_0x592b36={'RcCEY':function(_0x39002b,_0x313c45,_0x2a876b,_0x230c97,_0x59847c,_0x1ebbed,_0x937912){return _0x39002b(_0x313c45,_0x2a876b,_0x230c97,_0x59847c,_0x1ebbed,_0x937912);},'spWdC':'playwright-cli','IHwlS':function(_0x2088b4,_0x2b1f78){return _0x2088b4(_0x2b1f78);},'YEJgI':function(_0x3f5fc0,_0x516a76,_0x50dd88,_0x29aafd,_0xdc3039,_0x4fdf46,_0x2417ad){return _0x3f5fc0(_0x516a76,_0x50dd88,_0x29aafd,_0xdc3039,_0x4fdf46,_0x2417ad);}};if(_0x3bc756)return _0x592b36['RcCEY'](buildPlaywrightConfigCore,_0x339468,_0x3bc756,_0x33d0b7,_0x3a6e4c,_0x38c5d0,_0x592b36[_0x1f223d(0x1a6)]);const {storageStatePath:_0x3de31c,tempAuthPath:_0x189cc}=await resolveLocalAuthPath(_0x592b36['IHwlS'](getEnvDir,_0x33d0b7));try{const _0x3b2cc3=await _0x592b36[_0x1f223d(0x142)](buildPlaywrightConfigCore,_0x339468,_0x3de31c,_0x33d0b7,_0x3a6e4c,_0x38c5d0,_0x592b36['spWdC']);return{..._0x3b2cc3,'tempAuthPath':_0x189cc};}catch(_0x10c597){_0x189cc&&await unlink(_0x189cc)[_0x1f223d(0x138)](()=>{});throw _0x10c597;}}export async function buildRangerwrightCliConfig(_0x5db01f,_0x1a11e9,_0x1827d8,_0x4ebf1e,_0x15dd18){const _0x4a05ce=_0x3a4442,_0x1a7ac7={'hlHxb':function(_0xcb1f5a,_0x3cbf2a,_0x24b825){return _0xcb1f5a(_0x3cbf2a,_0x24b825);},'USehF':function(_0x36ca0a,_0x3d9d65){return _0x36ca0a===_0x3d9d65;},'Mwoad':_0x4a05ce(0x17d),'FvSPj':'chromium','NsJBC':function(_0x32f53,_0x57cdb4){return _0x32f53(_0x57cdb4);},'NxwZB':function(_0x1da1b5,_0x390eaf,_0x14e9a7,_0x4bdd27){return _0x1da1b5(_0x390eaf,_0x14e9a7,_0x4bdd27);},'hpkfV':function(_0x4b73c3){return _0x4b73c3();},'Oxxld':function(_0x1a3725,_0x308919){return _0x1a3725===_0x308919;}},{storageStatePath:_0x2cb5cc,tempAuthPath:_0x60ba24}=_0x15dd18?{'storageStatePath':_0x15dd18,'tempAuthPath':undefined}:await _0x1a7ac7[_0x4a05ce(0x162)](resolveLocalAuthPath,getEnvDir(_0x1a11e9)),_0x56a60a=_0x1827d8||randomUUID(),_0x36248d=_0x1a7ac7[_0x4a05ce(0x18d)](join,_0x1a7ac7[_0x4a05ce(0x15e)](getRangerDir),'sessions',_0x56a60a),_0x335543=_0x1a7ac7['NsJBC'](Boolean,_0x5db01f['cdpEndpoint']),_0x5cfd91=_0x335543?{'browserName':_0x1a7ac7[_0x4a05ce(0x161)],'cdpEndpoint':_0x5db01f[_0x4a05ce(0x172)]}:((()=>{const _0x41d94a=_0x4a05ce,{launchOptions:_0xeeb426,contextOptions:_0xb3cb1c}=_0x1a7ac7['hlHxb'](buildBrowserOptionsFromSettings,_0x5db01f,{'headless':_0x4ebf1e?![]:_0x5db01f[_0x41d94a(0x13a)]??!![],'storageStatePath':_0x2cb5cc});if(_0x1a7ac7['USehF'](process[_0x41d94a(0x15a)]?.(),0x0)){const _0x398325=[_0x1a7ac7['Mwoad'],'--disable-setuid-sandbox'],_0x4c2de2=_0xeeb426[_0x41d94a(0x14c)]??[],_0x9fc760=_0x398325['filter'](_0x391376=>!_0x4c2de2[_0x41d94a(0x14d)](_0x391376));_0xeeb426['args']=[..._0x4c2de2,..._0x9fc760];}return{'browserName':_0x1a7ac7['FvSPj'],'launchOptions':_0xeeb426,'contextOptions':{..._0xb3cb1c,'permissions':['clipboard-read',_0x41d94a(0x1b2)],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x335543){const _0x27d50e=_0x5cfd91['contextOptions'];if(_0x27d50e){if(_0x27d50e['userAgent']===undefined)delete _0x27d50e[_0x4a05ce(0x1a3)];if(_0x1a7ac7[_0x4a05ce(0x1a0)](_0x27d50e[_0x4a05ce(0x13f)],undefined))delete _0x27d50e[_0x4a05ce(0x13f)];}}const _0x44d6e4={'browser':_0x5cfd91,'outputDir':_0x36248d,'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'settle':{'navigationLoadTimeoutMs':0x7530,'networkSettleTimeoutMs':0x1388,'networkIdleWindowMs':0x1f4,'postActionAnimationFrameCount':0x2}};let _0x47d3b1;try{const _0x19b137=join(tmpdir(),'ranger-config');!_0x1a7ac7['NsJBC'](existsSync,_0x19b137)&&await mkdir(_0x19b137,{'recursive':!![]}),_0x47d3b1=join(_0x19b137,_0x1a11e9+'-'+Date[_0x4a05ce(0x149)]()+'-rangerwright.json'),await writeFile(_0x47d3b1,JSON[_0x4a05ce(0x177)](_0x44d6e4,null,0x2));}catch(_0x1ca07d){_0x60ba24&&await unlink(_0x60ba24)[_0x4a05ce(0x138)](()=>{});throw _0x1ca07d;}return{'configPath':_0x47d3b1,'storageStatePath':_0x2cb5cc,'tempAuthPath':_0x60ba24,'outputDir':_0x36248d};}export async function buildNovaActCliConfig(_0x2b66d4,_0x593a07,_0x236592,_0x36acea,_0xa6c668){const _0x256c6a=_0x3a4442,_0x132fa0={'WnUFK':function(_0x1bf11d,_0xcc435b){return _0x1bf11d(_0xcc435b);},'vHwri':function(_0x3a1ac7){return _0x3a1ac7();},'olTCm':_0x256c6a(0x197),'nhNdl':function(_0x40359c,_0x1ac7e6,_0x57bb83){return _0x40359c(_0x1ac7e6,_0x57bb83);},'umASs':function(_0x351712,_0x5c9afa){return _0x351712===_0x5c9afa;},'QJQqs':_0x256c6a(0x147)},{storageStatePath:_0x3e62c5,tempAuthPath:_0x4f44b7}=_0xa6c668?{'storageStatePath':_0xa6c668,'tempAuthPath':undefined}:await resolveLocalAuthPath(_0x132fa0['WnUFK'](getEnvDir,_0x593a07)),_0x425b8d=_0x236592||randomUUID(),_0x2aa5e7=join(_0x132fa0['vHwri'](getRangerDir),_0x132fa0[_0x256c6a(0x1a5)],_0x425b8d),_0x5db4e8=_0x132fa0['nhNdl'](join,_0x2aa5e7,_0x256c6a(0x137)),_0x852d3=_0x3e62c5?_0x132fa0[_0x256c6a(0x154)](join,_0x5db4e8,'Default'):undefined,{launchOptions:_0x3a35a6,contextOptions:_0x21731d}=buildBrowserOptionsFromSettings(_0x2b66d4,{'headless':_0x36acea?![]:_0x2b66d4['headless']??!![],'storageStatePath':_0x3e62c5});if(_0x132fa0['umASs'](process['getuid']?.(),0x0)){const _0x334133=[_0x256c6a(0x17d),_0x256c6a(0x16d)],_0x1f663d=_0x3a35a6['args']??[],_0x179f95=_0x334133[_0x256c6a(0x183)](_0x5d8902=>!_0x1f663d[_0x256c6a(0x14d)](_0x5d8902));_0x3a35a6['args']=[..._0x1f663d,..._0x179f95];}const _0x5efab1=_0x132fa0[_0x256c6a(0x189)](typeof _0x3a35a6['executablePath'],_0x132fa0[_0x256c6a(0x18a)])?_0x3a35a6[_0x256c6a(0x143)]:_0x3e62c5?chromium[_0x256c6a(0x143)]():undefined;return{'storageStatePath':_0x3e62c5,'tempAuthPath':_0x4f44b7,'baseUrl':_0x2b66d4['baseUrl'],'headless':Boolean(_0x3a35a6['headless']),'userDataDir':_0x5db4e8,'browserProfilePath':_0x852d3,'executablePath':_0x5efab1,'launchArgs':Array['isArray'](_0x3a35a6[_0x256c6a(0x14c)])?_0x3a35a6['args'][_0x256c6a(0x183)](_0x563e74=>typeof _0x563e74===_0x256c6a(0x147)):[],'userAgent':typeof _0x21731d[_0x256c6a(0x1a3)]===_0x256c6a(0x147)?_0x21731d[_0x256c6a(0x1a3)]:undefined,'extraHTTPHeaders':_0x21731d[_0x256c6a(0x192)],'allowInsecureLocalhost':Boolean(_0x2b66d4[_0x256c6a(0x17a)]),'safeMode':Boolean(_0x2b66d4['safeMode']),'cdpEndpoint':_0x2b66d4[_0x256c6a(0x172)],'isCdpMode':_0x132fa0[_0x256c6a(0x170)](Boolean,_0x2b66d4[_0x256c6a(0x172)])};}export function getNestedValue(_0x22083f,_0x109252){const _0x2d6f10=_0x3a4442,_0x51ef02={'AQRlZ':_0x2d6f10(0x13c)},_0x231a03=parseKeyPath(_0x109252);let _0x5de4e8=_0x22083f;for(const _0x28a412 of _0x231a03){if(_0x5de4e8===null||_0x5de4e8===undefined||typeof _0x5de4e8!==_0x51ef02['AQRlZ'])return undefined;_0x5de4e8=_0x5de4e8[_0x28a412];}return _0x5de4e8;}export function setNestedValue(_0x60f19,_0x58fe5c,_0x25789f){const _0x117a83=_0x3a4442,_0x46639c={'aRkAD':function(_0x21ce6c,_0x4b1aae){return _0x21ce6c(_0x4b1aae);},'UExMN':function(_0x23b3dc,_0x4d9d0e){return _0x23b3dc<_0x4d9d0e;},'CXFYG':function(_0x3145fa,_0x183eca){return _0x3145fa-_0x183eca;},'fugvc':function(_0x14c77a,_0x3f00ff){return _0x14c77a in _0x3f00ff;}},_0x3a4565=_0x46639c[_0x117a83(0x1a7)](parseKeyPath,_0x58fe5c);let _0x5573c4=_0x60f19;for(let _0x369904=0x0;_0x46639c[_0x117a83(0x182)](_0x369904,_0x46639c[_0x117a83(0x15c)](_0x3a4565[_0x117a83(0x1ab)],0x1));_0x369904++){const _0x1b8ceb=_0x3a4565[_0x369904];(!_0x46639c[_0x117a83(0x17c)](_0x1b8ceb,_0x5573c4)||typeof _0x5573c4[_0x1b8ceb]!=='object')&&(_0x5573c4[_0x1b8ceb]={}),_0x5573c4=_0x5573c4[_0x1b8ceb];}_0x5573c4[_0x3a4565[_0x3a4565['length']-0x1]]=_0x25789f;}export function deleteNestedValue(_0x12a414,_0x5514d1){const _0x1ca6f1=_0x3a4442,_0x495234={'WxVvO':function(_0x4af0ef,_0x2955db){return _0x4af0ef(_0x2955db);},'cjfig':function(_0x352ad4,_0x5bf393){return _0x352ad4===_0x5bf393;},'MgwmS':function(_0x37ea4c,_0x4a3f7e){return _0x37ea4c!==_0x4a3f7e;},'poiLN':function(_0x298a2a,_0x20ffc2){return _0x298a2a in _0x20ffc2;}},_0x56fbb5=_0x495234['WxVvO'](parseKeyPath,_0x5514d1);let _0x447f68=_0x12a414;for(let _0x4a6c0b=0x0;_0x4a6c0b<_0x56fbb5['length']-0x1;_0x4a6c0b++){if(_0x495234[_0x1ca6f1(0x152)](_0x447f68,null)||_0x447f68===undefined||_0x495234['MgwmS'](typeof _0x447f68,_0x1ca6f1(0x13c)))return![];_0x447f68=_0x447f68[_0x56fbb5[_0x4a6c0b]];}if(_0x495234['cjfig'](_0x447f68,null)||_0x495234[_0x1ca6f1(0x152)](_0x447f68,undefined)||_0x495234[_0x1ca6f1(0x1ac)](typeof _0x447f68,'object'))return![];const _0x4fee6f=_0x56fbb5[_0x56fbb5['length']-0x1];if(_0x495234['poiLN'](_0x4fee6f,_0x447f68))return delete _0x447f68[_0x4fee6f],!![];return![];}function parseKeyPath(_0x16a1cc){const _0x2bfb58=_0x3a4442,_0x1586de=_0x16a1cc['split']('.');return _0x1586de[0x0]===_0x2bfb58(0x160)&&(_0x1586de[0x0]=_0x2bfb58(0x168)),_0x1586de[0x0]===_0x2bfb58(0x15b)&&(_0x1586de[0x0]='setupHeaders'),_0x1586de;}export function formatSettings(_0x5e7770,_0x2df661=0x0){const _0xf34d86=_0x3a4442,_0x387bd3={'azGuz':'object'},_0x1720da=[],_0x29635d='\x20\x20'['repeat'](_0x2df661);for(const [_0x1bdc1b,_0x397542]of Object[_0xf34d86(0x1b1)](_0x5e7770)){if(_0x397542===undefined)continue;if(typeof _0x397542===_0x387bd3[_0xf34d86(0x148)]&&_0x397542!==null){_0x1720da['push'](''+_0x29635d+_0x1bdc1b+':');for(const [_0x1d0f9d,_0x304ec8]of Object[_0xf34d86(0x1b1)](_0x397542)){_0x1720da['push'](_0x29635d+'\x20\x20'+_0x1d0f9d+':\x20'+_0x304ec8);}}else _0x1720da['push'](''+_0x29635d+_0x1bdc1b+':\x20'+_0x397542);}return _0x1720da['join']('\x0a');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2adedc,_0x538d8c){const _0x54a5c8=_0x237c,_0x92c2c5=_0x2adedc();while(!![]){try{const _0x300cd2=parseInt(_0x54a5c8(0x76))/0x1+-parseInt(_0x54a5c8(0x7d))/0x2*(-parseInt(_0x54a5c8(0x7c))/0x3)+parseInt(_0x54a5c8(0x78))/0x4+-parseInt(_0x54a5c8(0x72))/0x5*(parseInt(_0x54a5c8(0x73))/0x6)+parseInt(_0x54a5c8(0x7f))/0x7+parseInt(_0x54a5c8(0x74))/0x8*(parseInt(_0x54a5c8(0x7b))/0x9)+-parseInt(_0x54a5c8(0x7e))/0xa;if(_0x300cd2===_0x538d8c)break;else _0x92c2c5['push'](_0x92c2c5['shift']());}catch(_0x36436e){_0x92c2c5['push'](_0x92c2c5['shift']());}}}(_0x3879,0x1fdf1));function _0x237c(_0xdeef9b,_0x2b3012){_0xdeef9b=_0xdeef9b-0x72;const _0x38790e=_0x3879();let _0x237ca9=_0x38790e[_0xdeef9b];return _0x237ca9;}import{readFileSync}from'fs';import{dirname,join}from'path';function _0x3879(){const _0x2dae54=['wJMyn','11394zxxizb','12AAgYoK','129534qdSWXT','5910190QmTygU','1188243EEgWTl','873595YWyvYI','6mWVPul','1016tHmtWU','utf-8','211574OaAvoF','zEGDX','380440JSIRgg','ranger/SKILL.md'];_0x3879=function(){return _0x2dae54;};return _0x3879();}import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x1452f7){const _0x2ff80b=_0x237c,_0x47f078={'wJMyn':'skills','elWkY':function(_0x1ba012,_0x4ffde7,_0x456eb1){return _0x1ba012(_0x4ffde7,_0x456eb1);}},_0x10e314=join(__dirname,'..','..',_0x47f078[_0x2ff80b(0x7a)]),_0x128181=join(_0x10e314,_0x1452f7);try{return _0x47f078['elWkY'](readFileSync,_0x128181,_0x2ff80b(0x75));}catch{return'';}}export function getRangerSkillContent(){const _0x2dad60=_0x237c,_0xff6153={'zEGDX':function(_0xc1a4ca,_0x41117b){return _0xc1a4ca(_0x41117b);}};return _0xff6153[_0x2dad60(0x77)](readSkillContent,_0x2dad60(0x79));}
|