@ranger-testing/ranger-cli 2.5.4-alpha.a70fc60-4 → 2.5.4-alpha.a98f848-6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/mcpBootstrap.js +1 -1
- package/build/commands/migrateProfile.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/projectsConfig.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/skills/ranger/SKILL.md +17 -3
- package/build/skills/ranger/create.md +6 -0
- package/build/skills/ranger/verify.md +23 -3
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x5969(_0x5b35cf,_0x378f8c){_0x5b35cf=_0x5b35cf-0x190;const _0x38a444=_0x4260();let _0x384e85=_0x38a444[_0x5b35cf];if(_0x5969['qVFVap']===undefined){var _0x1ba8b3=function(_0x268899){const _0x54bbc2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x11f15c='',_0x49f1a1='',_0x5df956=_0x11f15c+_0x1ba8b3;for(let _0x2b2708=0x0,_0x2deac6,_0x2f291a,_0x49e30e=0x0;_0x2f291a=_0x268899['charAt'](_0x49e30e++);~_0x2f291a&&(_0x2deac6=_0x2b2708%0x4?_0x2deac6*0x40+_0x2f291a:_0x2f291a,_0x2b2708++%0x4)?_0x11f15c+=_0x5df956['charCodeAt'](_0x49e30e+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x2deac6>>(-0x2*_0x2b2708&0x6)):_0x2b2708:0x0){_0x2f291a=_0x54bbc2['indexOf'](_0x2f291a);}for(let _0x1b80bc=0x0,_0x243fdb=_0x11f15c['length'];_0x1b80bc<_0x243fdb;_0x1b80bc++){_0x49f1a1+='%'+('00'+_0x11f15c['charCodeAt'](_0x1b80bc)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x49f1a1);};_0x5969['reJgPU']=_0x1ba8b3,_0x5969['wmDgma']={},_0x5969['qVFVap']=!![];}const _0x426013=_0x38a444[0x0],_0x5969e3=_0x5b35cf+_0x426013,_0x1b5c47=_0x5969['wmDgma'][_0x5969e3];if(!_0x1b5c47){const _0x2125e8=function(_0xdf84ee){this['mqgzdR']=_0xdf84ee,this['uILtkD']=[0x1,0x0,0x0],this['qBzpIl']=function(){return'newState';},this['MJWyNO']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['GiqqTw']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x2125e8['prototype']['ZLAxXu']=function(){const _0x116c04=new RegExp(this['MJWyNO']+this['GiqqTw']),_0x320a03=_0x116c04['test'](this['qBzpIl']['toString']())?--this['uILtkD'][0x1]:--this['uILtkD'][0x0];return this['qLhext'](_0x320a03);},_0x2125e8['prototype']['qLhext']=function(_0x424a20){if(!Boolean(~_0x424a20))return _0x424a20;return this['yiNSme'](this['mqgzdR']);},_0x2125e8['prototype']['yiNSme']=function(_0x150625){for(let _0x554e3c=0x0,_0x198609=this['uILtkD']['length'];_0x554e3c<_0x198609;_0x554e3c++){this['uILtkD']['push'](Math['round'](Math['random']())),_0x198609=this['uILtkD']['length'];}return _0x150625(this['uILtkD'][0x0]);},new _0x2125e8(_0x5969)['ZLAxXu'](),_0x384e85=_0x5969['reJgPU'](_0x384e85),_0x5969['wmDgma'][_0x5969e3]=_0x384e85;}else _0x384e85=_0x1b5c47;return _0x384e85;}const _0x23530e=_0x5969;(function(_0x5bb827,_0x55fb33){const _0x3825e2=_0x5969,_0x5c0d9=_0x5bb827();while(!![]){try{const _0x59157b=-parseInt(_0x3825e2(0x1c2))/0x1*(-parseInt(_0x3825e2(0x1a3))/0x2)+-parseInt(_0x3825e2(0x1a7))/0x3+parseInt(_0x3825e2(0x19d))/0x4*(-parseInt(_0x3825e2(0x1ac))/0x5)+-parseInt(_0x3825e2(0x1b6))/0x6*(parseInt(_0x3825e2(0x199))/0x7)+-parseInt(_0x3825e2(0x1c9))/0x8+-parseInt(_0x3825e2(0x1a1))/0x9+-parseInt(_0x3825e2(0x1dc))/0xa*(-parseInt(_0x3825e2(0x1d0))/0xb);if(_0x59157b===_0x55fb33)break;else _0x5c0d9['push'](_0x5c0d9['shift']());}catch(_0x3e6fff){_0x5c0d9['push'](_0x5c0d9['shift']());}}}(_0x4260,0x80247));const _0x1ba8b3=(function(){const _0x1394ae=_0x5969,_0x3f2d45={'WwNFX':function(_0x1d92ad,_0x2d82bd){return _0x1d92ad!==_0x2d82bd;},'RkNDB':_0x1394ae(0x1c0)};let _0x4fa2c8=!![];return function(_0x513139,_0x297147){const _0x43f36a={'LMlwa':function(_0xde7568,_0x268b29){const _0x2877c0=_0x5969;return _0x3f2d45[_0x2877c0(0x1c4)](_0xde7568,_0x268b29);},'Znuqb':_0x3f2d45['RkNDB']},_0x28a4f2=_0x4fa2c8?function(){const _0x1db2c8=_0x5969;if(_0x43f36a[_0x1db2c8(0x1a6)](_0x43f36a[_0x1db2c8(0x1c5)],_0x43f36a[_0x1db2c8(0x1c5)])){const _0x3af140=_0x1bb39b[_0x1db2c8(0x1ae)](_0x25335c,arguments);return _0x130487=null,_0x3af140;}else{if(_0x297147){const _0x73d995=_0x297147[_0x1db2c8(0x1ae)](_0x513139,arguments);return _0x297147=null,_0x73d995;}}}:function(){};return _0x4fa2c8=![],_0x28a4f2;};}()),_0x384e85=_0x1ba8b3(this,function(){const _0x490649=_0x5969,_0x5bf2da={'zrVEk':'(((.+)+)+)+$'};return _0x384e85[_0x490649(0x1a8)]()[_0x490649(0x1b0)]('(((.+)+)+)+$')[_0x490649(0x1a8)]()[_0x490649(0x1c6)](_0x384e85)['search'](_0x5bf2da['zrVEk']);});_0x384e85();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';function _0x4260(){const _0x32e920=['v3DorLG','wM51Cwi','y29UC3rYDwn0B3i','uxnZq2K','EvHis3m','nZqWote4ne5lELf6Cq','wwHpy0u','ywjVCNq','ve94CgC','DhjPBq','C2LNBMfS','v3nvrLe','mJjpuNjRAuG','Ehz2tge','y2XPlNr4Da','AKDMqxy','sKXLueS','CevfDMC','uwnzCuG','v0HrquG','CKHMywG','BwvZC2fNzq','v2Xduu8','ChfpBgO','mty1mJe4nZbyA3HPywG','se96y3q','DxrMltG','r0Lusfvcx0vovG','yK52zLG','DMfdBhC','vfbHrKC','qMvHCMvYia','uLzIAfC','zw52','r0vu','nJCZotq1m0jcEenKrG','lI90B2TLBLjLzNjLC2GUANm','B2PRsMO','vM9HA2m','nfzLturVBW','q3zgwhm','vuTuBha','lI4VBwnWqM9VDhn0CMfWlMPZ','nZKYmJu0n25btKvZvG','A3zpD2e','mJiYA2L2vu9L','t09yzMy','Cujnthi','te1SD2e','odG2ndmXDg11z09K','Dg9tDhjPBMC','uKfor0vsx0nmsv9ut0TftG','BLfdu00','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','mteZodCZnvPwruLZuq','l2fWAs92ms9Ty3aVBwu','yxbWBhK','C0vNExK','C2vHCMnO','tgjmqM4','Bg9N','DeDtEKi','DgDJENy','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','nKjyEwPhEq','wgTPtvy','ChLZDeS','A2zsEKW','zNnNtKK','q2TwtNq','B0HgwNG','qKXlsuW','ELDhwem','ALzTuNO','CxbyqMq','lI9LBNzPCM9UBwvUDc5QCW','ndyYmvvhvfzcqW','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG'];_0x4260=function(){return _0x32e920;};return _0x4260();}const ENV_TOKEN=_0x23530e(0x1a9),ENV_TOKEN_LEGACY='RANGER_MCP_TOKEN',TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x23530e(0x1d2)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,'refresh.txt');function isGitHubCI(){const _0x31b9d7=_0x23530e;return!!process['env'][_0x31b9d7(0x191)];}async function writeToGitHubEnv(_0x23a3b1,_0x1b5b00){const _0x1084c3=_0x23530e,_0x5b008a={'qBMLr':function(_0x3dcf83,_0x1d0c17,_0x315498){return _0x3dcf83(_0x1d0c17,_0x315498);}},_0x5f4c72=process[_0x1084c3(0x197)]['GITHUB_ENV'];_0x5f4c72&&await _0x5b008a[_0x1084c3(0x1a5)](appendFile,_0x5f4c72,_0x23a3b1+'='+_0x1b5b00+'\x0a');}export async function storeToken(_0x6c7d97){const _0x5ae360=_0x23530e,_0x4f263c={'HgRHZ':function(_0x1057e3,_0x37138c,_0x6b93b9){return _0x1057e3(_0x37138c,_0x6b93b9);},'kfRzL':function(_0x5162ac,_0x57a9c5,_0x1fb6e1,_0x472696){return _0x5162ac(_0x57a9c5,_0x1fb6e1,_0x472696);}};isGitHubCI()?await writeToGitHubEnv(ENV_TOKEN,_0x6c7d97):(await _0x4f263c['HgRHZ'](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x4f263c[_0x5ae360(0x1b9)](writeFile,TOKEN_PATH,_0x6c7d97,{'mode':0x180}));}export async function getToken(){const _0x37ca30=_0x23530e,_0xebd31d={'kvOwa':function(_0x4f6391,_0x3137d6){return _0x4f6391 instanceof _0x3137d6;},'QcYqH':function(_0x2c096c,_0x864c0a){return _0x2c096c(_0x864c0a);},'UKTlp':function(_0x587087,_0x36596c){return _0x587087+_0x36596c;},'CkVNt':'Re-authorize\x20the\x20Ranger\x20MCP\x20connection,\x20then\x20retry.','WHQAH':_0x37ca30(0x19e),'nQCSM':function(_0x4b71c2,_0x2e8c52){return _0x4b71c2===_0x2e8c52;},'OOXff':function(_0x2eb05b,_0x41fdbc){return _0x2eb05b!==_0x41fdbc;},'vaClw':'MpGWm','tGSzB':function(_0x5d32e6,_0xf808a6,_0x1793ab){return _0x5d32e6(_0xf808a6,_0x1793ab);},'WlCQO':_0x37ca30(0x190),'Voakc':function(_0x29c7f0){return _0x29c7f0();},'GoKXY':function(_0x4505eb,_0x268c5b){return _0x4505eb(_0x268c5b);},'TPaFG':function(_0x4a1961){return _0x4a1961();},'rHfah':_0x37ca30(0x1a0),'pqOlj':_0x37ca30(0x1b5),'fsgNI':function(_0x5dec91,_0x16585a){return _0x5dec91 instanceof _0x16585a;},'LbLBn':function(_0x5127e5,_0xb66a9f){return _0x5127e5+_0xb66a9f;}};if(process[_0x37ca30(0x197)][ENV_TOKEN])return _0xebd31d[_0x37ca30(0x1d7)]!==_0x37ca30(0x19e)?null:process[_0x37ca30(0x197)][ENV_TOKEN];if(process[_0x37ca30(0x197)][ENV_TOKEN_LEGACY]){if(_0xebd31d[_0x37ca30(0x1aa)](_0x37ca30(0x196),_0x37ca30(0x1cc))){const _0x41d866=_0x2125e8?function(){const _0x5f18d3=_0x37ca30;if(_0x554e3c){const _0x3fae00=_0x406174[_0x5f18d3(0x1ae)](_0x2e624d,arguments);return _0xc2784e=null,_0x3fae00;}}:function(){};return _0x150625=![],_0x41d866;}else return process[_0x37ca30(0x197)][ENV_TOKEN_LEGACY];}let _0x45dbfd=null;try{if(_0xebd31d[_0x37ca30(0x1a4)](_0xebd31d[_0x37ca30(0x193)],_0xebd31d[_0x37ca30(0x193)])){const _0x5efe89=_0xebd31d[_0x37ca30(0x1a2)](_0xb7b1fd,_0x470745)?_0x2561ca['message']:_0xebd31d[_0x37ca30(0x1d6)](_0xb185c,_0x396076);throw new _0x164c82(_0xebd31d[_0x37ca30(0x19f)](_0x37ca30(0x1c3)+_0x5efe89+'\x0a',_0xebd31d[_0x37ca30(0x1bb)]));}else _0x45dbfd=(await _0xebd31d[_0x37ca30(0x1b3)](readFile,TOKEN_PATH,_0xebd31d[_0x37ca30(0x1da)]))[_0x37ca30(0x1cd)]()||null;}catch{const _0x4e344a=await _0xebd31d[_0x37ca30(0x19c)](tryRefreshToken);return _0x4e344a;}if(!_0x45dbfd)return null;const _0x3f231f=await _0xebd31d['GoKXY'](checkTokenValid,_0x45dbfd);if(_0x3f231f)return _0x45dbfd;const _0x820893=await tryPromoteRefreshToken(_0x45dbfd);if(_0x820893)return _0x820893;const _0x84e974=await _0xebd31d[_0x37ca30(0x194)](tryRefreshToken);if(_0x84e974)return _0x84e974;const {getMcpAuthOrigin:_0x5d0994,mcpBootstrap:_0x24b759}=await import(_0xebd31d[_0x37ca30(0x1d8)]),_0x4ae83a=await _0xebd31d['TPaFG'](_0x5d0994);if(_0x4ae83a)try{console[_0x37ca30(0x1b2)](_0xebd31d[_0x37ca30(0x1db)]),await _0x24b759();const _0x53a3b3=await tryRefreshToken();if(_0x53a3b3)return _0x53a3b3;}catch(_0x205bb1){const _0x5314f0=_0xebd31d[_0x37ca30(0x1ba)](_0x205bb1,Error)?_0x205bb1[_0x37ca30(0x1d9)]:_0xebd31d['QcYqH'](String,_0x205bb1);throw new Error(_0xebd31d[_0x37ca30(0x1b1)](_0x37ca30(0x1c3)+_0x5314f0+'\x0a',_0xebd31d[_0x37ca30(0x1bb)]));}throw new Error(_0x37ca30(0x1ab));}async function checkTokenValid(_0x510e41){const _0x563ed6=_0x23530e,_0x228743={'QssCi':function(_0x4c5cb6,_0x2175da){return _0x4c5cb6===_0x2175da;},'YhOcE':_0x563ed6(0x1dd),'XkiMV':_0x563ed6(0x1c1),'xvvLa':_0x563ed6(0x198),'ojkJj':function(_0x3d50d7,_0x7ded9f){return _0x3d50d7(_0x7ded9f);}},_0x43a275=new AbortController(),_0x26f868=setTimeout(()=>_0x43a275[_0x563ed6(0x1cb)](),0x1388);try{if(_0x228743[_0x563ed6(0x1c7)](_0x228743[_0x563ed6(0x1ca)],_0x228743[_0x563ed6(0x1ca)])){const {getApiBaseUrl:_0x2c49f9}=await import(_0x228743[_0x563ed6(0x1b7)]),_0x4c7020=_0x2c49f9(),_0x38a911=await fetch(_0x4c7020+_0x563ed6(0x1ad),{'method':_0x228743[_0x563ed6(0x1d1)],'headers':{'Authorization':_0x563ed6(0x195)+_0x510e41},'signal':_0x43a275[_0x563ed6(0x1ce)]});return _0x38a911['ok'];}else _0x209e10(_0x3e3237);}catch{return!![];}finally{_0x228743[_0x563ed6(0x19b)](clearTimeout,_0x26f868);}}async function tryRefreshToken(){const _0xa1bba=_0x23530e,_0x4aba92={'JLePK':_0xa1bba(0x19a),'yXHKs':function(_0x42ac04){return _0x42ac04();}},{refreshCliToken:_0x556ce3}=await import(_0x4aba92[_0xa1bba(0x1d4)]);return _0x4aba92[_0xa1bba(0x1c8)](_0x556ce3);}async function tryPromoteRefreshToken(_0x2da7dc){const _0x5f0fe6=_0x23530e,_0x46ed0f={'WsUFQ':function(_0x2770a6,_0x52d266,_0x302b5b){return _0x2770a6(_0x52d266,_0x302b5b);}},{refreshPartnerCliToken:_0x2db74e}=await import(_0x5f0fe6(0x19a));return _0x46ed0f[_0x5f0fe6(0x1cf)](_0x2db74e,_0x2da7dc,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x3ee792=_0x23530e,_0x399382={'tgczv':function(_0x162381,_0xe5f3ce){return _0x162381!==_0xe5f3ce;},'BLKIL':'wVokD','pystK':'KYzoQ'};try{return await unlink(TOKEN_PATH),!![];}catch{if(_0x399382[_0x3ee792(0x1b4)](_0x399382[_0x3ee792(0x1bd)],_0x399382[_0x3ee792(0x1b8)]))return![];else{if(_0x9b1637){const _0xce3c85=_0x23c306[_0x3ee792(0x1ae)](_0x5baae4,arguments);return _0x101211=null,_0xce3c85;}}}}export async function storeRefreshToken(_0x5240d5){const _0x3d15a7=_0x23530e,_0x22630f={'jGfAv':function(_0xd6e9b7,_0x20099f,_0x54dd59){return _0xd6e9b7(_0x20099f,_0x54dd59);},'jVmRz':function(_0x183fac,_0x1595b1,_0x4cbb14,_0x4720cf){return _0x183fac(_0x1595b1,_0x4cbb14,_0x4720cf);}};await _0x22630f[_0x3d15a7(0x1d3)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x22630f[_0x3d15a7(0x1bf)](writeFile,REFRESH_TOKEN_PATH,_0x5240d5,{'mode':0x180});}export async function getRefreshToken(){const _0x29179f=_0x23530e,_0x55a928={'zkQNR':'mvhBi','oHFZx':'ZBhYu','fxVPD':function(_0x38b299,_0x518ad1,_0x3baca1){return _0x38b299(_0x518ad1,_0x3baca1);},'zolNC':function(_0x11f958,_0x4e93cb){return _0x11f958===_0x4e93cb;},'sEgyy':_0x29179f(0x1d5)};try{if(_0x55a928['zkQNR']!==_0x55a928[_0x29179f(0x1bc)]){const _0x284807=await _0x55a928['fxVPD'](readFile,REFRESH_TOKEN_PATH,_0x29179f(0x190));return _0x284807[_0x29179f(0x1cd)]()||null;}else return!![];}catch{return _0x55a928['zolNC'](_0x29179f(0x1d5),_0x55a928[_0x29179f(0x1af)])?null:!!_0x55108e['env']['GITHUB_ENV'];}}export async function deleteRefreshToken(){const _0x1dad65=_0x23530e,_0x3e73f3={'zWGXC':function(_0x20ec8a,_0x27f5f1){return _0x20ec8a(_0x27f5f1);}};try{return await _0x3e73f3[_0x1dad65(0x1be)](unlink,REFRESH_TOKEN_PATH),!![];}catch{return![];}}export async function deleteAllCredentials(){const _0x246657=_0x23530e,_0x22e563={'bNvfX':function(_0x52d032){return _0x52d032();},'YagiU':function(_0xd487cc){return _0xd487cc();}};await _0x22e563[_0x246657(0x192)](deleteToken),await _0x22e563['YagiU'](deleteRefreshToken);}
|
|
1
|
+
const _0xdda47a=_0x3f66;(function(_0x4eb2e1,_0x460a24){const _0x54b89a=_0x3f66,_0x25297e=_0x4eb2e1();while(!![]){try{const _0x2571ae=parseInt(_0x54b89a(0x198))/0x1+parseInt(_0x54b89a(0x192))/0x2+parseInt(_0x54b89a(0x1a6))/0x3*(parseInt(_0x54b89a(0x190))/0x4)+-parseInt(_0x54b89a(0x18a))/0x5*(-parseInt(_0x54b89a(0x1b5))/0x6)+-parseInt(_0x54b89a(0x186))/0x7+-parseInt(_0x54b89a(0x1b1))/0x8+parseInt(_0x54b89a(0x19e))/0x9*(-parseInt(_0x54b89a(0x1ad))/0xa);if(_0x2571ae===_0x460a24)break;else _0x25297e['push'](_0x25297e['shift']());}catch(_0x30cd3b){_0x25297e['push'](_0x25297e['shift']());}}}(_0x4b0e,0xc745e));const _0x41ea5c=(function(){let _0x1a0bb8=!![];return function(_0x1fa801,_0x5a771a){const _0x49d786=_0x1a0bb8?function(){const _0x588a1b=_0x3f66;if(_0x5a771a){const _0x49d7c0=_0x5a771a[_0x588a1b(0x1af)](_0x1fa801,arguments);return _0x5a771a=null,_0x49d7c0;}}:function(){};return _0x1a0bb8=![],_0x49d786;};}()),_0x4842c3=_0x41ea5c(this,function(){const _0x12968c=_0x3f66;return _0x4842c3[_0x12968c(0x1c4)]()['search'](_0x12968c(0x1cd))[_0x12968c(0x1c4)]()[_0x12968c(0x1b2)](_0x4842c3)[_0x12968c(0x1b8)](_0x12968c(0x1cd));});_0x4842c3();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';function _0x4b0e(){const _0xaba0e0=['tejky1m','DwHkzeu','CfLPyvG','wLjAC1u','u0DcuhC','EhLzrKK','rLnvuei','kcGOlISPkYKRksSK','DhjPBq','BvDerw8','ywjVCNq','CwXKBuK','yuzfCMC','AvHTt0m','zuLVDNK','ANPcwMG','t09Uy1e','tg9tB0W','r1fwtvK','DxrMltG','EMDSDvq','zxjPq0G','uw1jC3y','r0vu','t1juvfO','r05ZBvi','zw52','ntu5mZG1ng5hvfneAq','CMvMCMvZAc50Ehq','C2fzv0C','yu53vgu','mZvYt3f0B1q','qMvHCMvYia','uKrNAMu','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','wNjKD0u','v1LPuxy','mJb6qw5Sy04','tM1gseS','nteZndKWrhLntuPm','qwTRCwG','C2vAsMS','ufbdsfi','ugD6CwC','uKfor0vsx01duf9ut0TftG','mtaYnJLNvhDwteG','r0Lusfvcx0vovG','lI9LBNzPCM9UBwvUDc5QCW','C2PfA0u','vfbgsNG','qxHxB3i','mJDUvMHszvK','C29qrwe','z3Ljtei','ELjpqMi','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','BwvZC2fNzq','B251t0e','r2L1yuC','otm3nJeXBMnUBfPv','C3fiDgu','DNDQCg4','r2LLwM0','yMzUtxi','yNbzrLy','Bg9N','nJmZmJiWAe51wxfM','l2fWAs92ms9Ty3aVBwu','yxbWBhK','C1LWEvm','mJi0otuYofL2wurquq','y29UC3rYDwn0B3i','yufXvfu','rxHeChy','mJiWmte2ueDizfLx','BgLrEeK','AwzPq2K','C2vHCMnO','y2XPlNr4Da','EfPNAuC','r2TNswC','C2LNBMfS','v2nMu0K','DKT0zw0','lI4VBwnWqM9VDhn0CMfWlMPZ','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','DfbPrK0','ExHYyK4','uKfor0vsx0nmsv9ut0TftG','Dg9tDhjPBMC','EfrzsMe'];_0x4b0e=function(){return _0xaba0e0;};return _0x4b0e();}import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0xdda47a(0x1c3),ENV_TOKEN_LEGACY=_0xdda47a(0x197),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0xdda47a(0x1b9)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0xdda47a(0x187));function isGitHubCI(){const _0x4f7cb1=_0xdda47a;return!!process[_0x4f7cb1(0x185)][_0x4f7cb1(0x199)];}async function writeToGitHubEnv(_0xd0cc89,_0x1e45e2){const _0x43fca=_0xdda47a,_0x28c7b5={'mlITm':function(_0x2c6009,_0x236d73,_0x66035d){return _0x2c6009(_0x236d73,_0x66035d);}},_0x2dc6e0=process['env'][_0x43fca(0x199)];_0x2dc6e0&&await _0x28c7b5['mlITm'](appendFile,_0x2dc6e0,_0xd0cc89+'='+_0x1e45e2+'\x0a');}export async function storeToken(_0x2b7347){const _0x30ab0c=_0xdda47a,_0x3d5bc2={'qldmI':function(_0x2eb311){return _0x2eb311();},'jzBZh':_0x30ab0c(0x180),'kjLrQ':function(_0x41dd10,_0x424ece,_0x42d5da){return _0x41dd10(_0x424ece,_0x42d5da);},'FSUPB':function(_0x594d61,_0x3e0d8a,_0x199f2e){return _0x594d61(_0x3e0d8a,_0x199f2e);},'ifiCi':function(_0x4d06c3,_0x4532b0,_0x4c72f4,_0x4692b4){return _0x4d06c3(_0x4532b0,_0x4c72f4,_0x4692b4);}};if(_0x3d5bc2[_0x30ab0c(0x1d1)](isGitHubCI)){if(_0x30ab0c(0x1b6)===_0x3d5bc2[_0x30ab0c(0x1d5)])return _0x2b817b['env'][_0x1924c2];else await _0x3d5bc2['kjLrQ'](writeToGitHubEnv,ENV_TOKEN,_0x2b7347);}else await _0x3d5bc2[_0x30ab0c(0x1cc)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x3d5bc2[_0x30ab0c(0x1b7)](writeFile,TOKEN_PATH,_0x2b7347,{'mode':0x180});}export async function getToken(){const _0x3790ac=_0xdda47a,_0x2397cf={'sqHte':function(_0x541bbb,_0x33439c){return _0x541bbb instanceof _0x33439c;},'onuOA':function(_0x1e620f,_0x30e310){return _0x1e620f(_0x30e310);},'ORTTZ':_0x3790ac(0x18d),'vwjpn':function(_0xaf91f8,_0xfc0e27){return _0xaf91f8!==_0xfc0e27;},'sYpyS':function(_0x28c8d6,_0x5c8711){return _0x28c8d6===_0x5c8711;},'ByGYt':_0x3790ac(0x19b),'YbaRv':_0x3790ac(0x1bb),'TPFJx':function(_0x4c5e31,_0x1d2b59){return _0x4c5e31!==_0x1d2b59;},'RDgje':function(_0x526e29,_0xcb0373,_0x11e1a3){return _0x526e29(_0xcb0373,_0x11e1a3);},'vKtem':_0x3790ac(0x189),'soPEa':function(_0x17f780){return _0x17f780();},'zgluT':function(_0x5d49fe,_0x4d7177){return _0x5d49fe(_0x4d7177);},'GQVMY':_0x3790ac(0x1bf),'uhJdE':function(_0x434da0,_0x5a458b){return _0x434da0!==_0x5a458b;},'gyILB':_0x3790ac(0x184),'LoSoL':_0x3790ac(0x1c9),'iXmOC':_0x3790ac(0x1c0),'GiuaG':function(_0x27888a,_0x174ca3){return _0x27888a instanceof _0x174ca3;},'GieZm':function(_0x4ff1ff,_0x2b8664){return _0x4ff1ff(_0x2b8664);},'SGBPw':function(_0x196fb0,_0x15caa1){return _0x196fb0+_0x15caa1;},'PPCHR':'Your\x20session\x20has\x20expired.\x20Please\x20run\x20`ranger\x20login`\x20to\x20re-authenticate.'};if(process['env'][ENV_TOKEN]){if(_0x2397cf[_0x3790ac(0x1a8)]('sJrMK',_0x3790ac(0x1c5)))return process[_0x3790ac(0x185)][ENV_TOKEN];else{const _0x5e01a4=_0x2397cf[_0x3790ac(0x1a7)](_0x525e70,_0x4a3432)?_0x1d4b91[_0x3790ac(0x1a3)]:_0x2397cf[_0x3790ac(0x1a4)](_0x23f5a3,_0x3c7c72);throw new _0x29b52b(_0x3790ac(0x1a2)+_0x5e01a4+'\x0a'+_0x2397cf[_0x3790ac(0x183)]);}}if(process['env'][ENV_TOKEN_LEGACY]){if(_0x2397cf[_0x3790ac(0x1b0)](_0x2397cf['ByGYt'],_0x2397cf['YbaRv']))_0x1cfdd4(_0x3d88ee);else return process['env'][ENV_TOKEN_LEGACY];}let _0x34ab8e=null;try{if(_0x2397cf[_0x3790ac(0x19c)](_0x3790ac(0x1b3),_0x3790ac(0x1b3)))return![];else _0x34ab8e=(await _0x2397cf[_0x3790ac(0x18c)](readFile,TOKEN_PATH,_0x3790ac(0x1d9)))[_0x3790ac(0x1ce)]()||null;}catch{if(_0x2397cf[_0x3790ac(0x1b0)](_0x2397cf[_0x3790ac(0x1be)],_0x2397cf['vKtem'])){const _0x3b7020=await _0x2397cf['soPEa'](tryRefreshToken);return _0x3b7020;}else{if(_0x2c0255){const _0x1aaec1=_0x2ca4a5[_0x3790ac(0x1af)](_0x163f84,arguments);return _0x4d5ae7=null,_0x1aaec1;}}}if(!_0x34ab8e)return null;const _0x131126=await _0x2397cf[_0x3790ac(0x1da)](checkTokenValid,_0x34ab8e);if(_0x131126)return _0x34ab8e;const _0xd7aef7=await tryPromoteRefreshToken(_0x34ab8e);if(_0xd7aef7)return _0xd7aef7;const _0x264684=await _0x2397cf[_0x3790ac(0x19f)](tryRefreshToken);if(_0x264684)return _0x264684;const {getMcpAuthOrigin:_0x3d94cd,mcpBootstrap:_0x54ea0d}=await import(_0x2397cf[_0x3790ac(0x1d8)]),_0x2f5cbc=await _0x3d94cd();if(_0x2f5cbc){if(_0x2397cf[_0x3790ac(0x1c7)](_0x2397cf[_0x3790ac(0x1a0)],_0x2397cf[_0x3790ac(0x1d7)]))try{console[_0x3790ac(0x1ac)](_0x2397cf[_0x3790ac(0x1d3)]),await _0x2397cf[_0x3790ac(0x19f)](_0x54ea0d);const _0x114b8f=await _0x2397cf[_0x3790ac(0x19f)](tryRefreshToken);if(_0x114b8f)return _0x114b8f;}catch(_0x20f3a2){const _0x1aabdd=_0x2397cf[_0x3790ac(0x1a5)](_0x20f3a2,Error)?_0x20f3a2[_0x3790ac(0x1a3)]:_0x2397cf[_0x3790ac(0x1a9)](String,_0x20f3a2);throw new Error(_0x2397cf[_0x3790ac(0x1ca)](_0x3790ac(0x1a2)+_0x1aabdd+'\x0a',_0x2397cf[_0x3790ac(0x183)]));}else{const _0x420b35=_0x2cfbe8?function(){const _0x51e153=_0x3790ac;if(_0x409afd){const _0x309e31=_0x4bdf6b[_0x51e153(0x1af)](_0x2bbf88,arguments);return _0x5c6cdc=null,_0x309e31;}}:function(){};return _0x1e3060=![],_0x420b35;}}throw new Error(_0x2397cf[_0x3790ac(0x195)]);}async function checkTokenValid(_0x5d0c72){const _0x1e63e8=_0xdda47a,_0x287db2={'pYiaX':'(((.+)+)+)+$','mWDEo':function(_0x445630,_0xc6be2a){return _0x445630!==_0xc6be2a;},'eIovy':_0x1e63e8(0x19a),'Yeiyt':function(_0x332cac){return _0x332cac();},'NmFHK':_0x1e63e8(0x182),'Pgzqg':_0x1e63e8(0x19d),'QmIsv':function(_0x25a823,_0x578839){return _0x25a823===_0x578839;},'ZrdwE':'FdvOp','aFErg':_0x1e63e8(0x1a1),'xyYFI':function(_0x5b388f,_0x43f979){return _0x5b388f(_0x43f979);}},_0x2ff175=new AbortController(),_0x22180c=setTimeout(()=>_0x2ff175[_0x1e63e8(0x1d0)](),0x1388);try{if(_0x287db2[_0x1e63e8(0x1cf)]('pOpOx',_0x1e63e8(0x1c6))){const {getApiBaseUrl:_0xc73bd3}=await import(_0x287db2[_0x1e63e8(0x1d4)]),_0x4498ff=_0x287db2['Yeiyt'](_0xc73bd3),_0x173e4a=await fetch(_0x4498ff+_0x1e63e8(0x1ae),{'method':_0x287db2[_0x1e63e8(0x191)],'headers':{'Authorization':_0x1e63e8(0x18b)+_0x5d0c72},'signal':_0x2ff175[_0x1e63e8(0x1bc)]});return _0x173e4a['ok'];}else return![];}catch{return'AxWor'!==_0x287db2[_0x1e63e8(0x196)]?_0x590d9d[_0x1e63e8(0x1c4)]()[_0x1e63e8(0x1b8)]('(((.+)+)+)+$')['toString']()[_0x1e63e8(0x1b2)](_0x166db4)['search'](vhddht[_0x1e63e8(0x1c8)]):!![];}finally{if(_0x287db2[_0x1e63e8(0x181)](_0x287db2[_0x1e63e8(0x18e)],_0x287db2[_0x1e63e8(0x1d2)]))return null;else _0x287db2[_0x1e63e8(0x1cb)](clearTimeout,_0x22180c);}}async function tryRefreshToken(){const _0x5567c1={'vtSLW':function(_0x41a124){return _0x41a124();}},{refreshCliToken:_0x3e6062}=await import('./tokenRefresh.js');return _0x5567c1['vtSLW'](_0x3e6062);}async function tryPromoteRefreshToken(_0x3949bd){const _0x2b9bf0=_0xdda47a,_0x38486f={'OKQES':'./tokenRefresh.js','Akkqh':function(_0x52aa03,_0x4e9179,_0xf7b3f6){return _0x52aa03(_0x4e9179,_0xf7b3f6);}},{refreshPartnerCliToken:_0x965341}=await import(_0x38486f['OKQES']);return _0x38486f[_0x2b9bf0(0x193)](_0x965341,_0x3949bd,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x2f8ba6=_0xdda47a,_0x4a8bb5={'rhmes':function(_0x4966eb,_0x30ad69){return _0x4966eb!==_0x30ad69;},'bpYFV':'GZiXg','bfnMr':_0x2f8ba6(0x1b4),'wmAXG':function(_0x4efe82,_0x284ba4){return _0x4efe82(_0x284ba4);},'WYiQv':_0x2f8ba6(0x1ba),'saYWG':_0x2f8ba6(0x1c1)};try{return _0x4a8bb5['rhmes'](_0x4a8bb5[_0x2f8ba6(0x1ab)],_0x4a8bb5[_0x2f8ba6(0x1aa)])?(await _0x4a8bb5['wmAXG'](unlink,TOKEN_PATH),!![]):!![];}catch{return _0x4a8bb5[_0x2f8ba6(0x18f)]!==_0x4a8bb5[_0x2f8ba6(0x188)]?![]:_0x5ccd0d[_0x2f8ba6(0x185)][_0x96ac8f];}}function _0x3f66(_0x49f742,_0x51a44b){_0x49f742=_0x49f742-0x180;const _0x18b97e=_0x4b0e();let _0x4842c3=_0x18b97e[_0x49f742];if(_0x3f66['VopOEA']===undefined){var _0x41ea5c=function(_0x4c84ba){const _0x3543b6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2d5daf='',_0x49e17c='',_0x19fe19=_0x2d5daf+_0x41ea5c;for(let _0x21f109=0x0,_0x4a5cc2,_0x4d444c,_0x579d5b=0x0;_0x4d444c=_0x4c84ba['charAt'](_0x579d5b++);~_0x4d444c&&(_0x4a5cc2=_0x21f109%0x4?_0x4a5cc2*0x40+_0x4d444c:_0x4d444c,_0x21f109++%0x4)?_0x2d5daf+=_0x19fe19['charCodeAt'](_0x579d5b+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x4a5cc2>>(-0x2*_0x21f109&0x6)):_0x21f109:0x0){_0x4d444c=_0x3543b6['indexOf'](_0x4d444c);}for(let _0x15282b=0x0,_0x54a2e4=_0x2d5daf['length'];_0x15282b<_0x54a2e4;_0x15282b++){_0x49e17c+='%'+('00'+_0x2d5daf['charCodeAt'](_0x15282b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x49e17c);};_0x3f66['RYoLKV']=_0x41ea5c,_0x3f66['tiFnhD']={},_0x3f66['VopOEA']=!![];}const _0x4b0e58=_0x18b97e[0x0],_0x3f6611=_0x49f742+_0x4b0e58,_0x5c8d96=_0x3f66['tiFnhD'][_0x3f6611];if(!_0x5c8d96){const _0x2cfbe8=function(_0x200afa){this['xTHXaJ']=_0x200afa,this['ETJNhr']=[0x1,0x0,0x0],this['UwIMrc']=function(){return'newState';},this['JtYPkl']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['vBqKFG']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x2cfbe8['prototype']['xkwWAF']=function(){const _0x4d2ca7=new RegExp(this['JtYPkl']+this['vBqKFG']),_0x1ae01a=_0x4d2ca7['test'](this['UwIMrc']['toString']())?--this['ETJNhr'][0x1]:--this['ETJNhr'][0x0];return this['CyOMqD'](_0x1ae01a);},_0x2cfbe8['prototype']['CyOMqD']=function(_0x1c48cd){if(!Boolean(~_0x1c48cd))return _0x1c48cd;return this['yNPokV'](this['xTHXaJ']);},_0x2cfbe8['prototype']['yNPokV']=function(_0x1e3060){for(let _0x409afd=0x0,_0x436f1d=this['ETJNhr']['length'];_0x409afd<_0x436f1d;_0x409afd++){this['ETJNhr']['push'](Math['round'](Math['random']())),_0x436f1d=this['ETJNhr']['length'];}return _0x1e3060(this['ETJNhr'][0x0]);},new _0x2cfbe8(_0x3f66)['xkwWAF'](),_0x4842c3=_0x3f66['RYoLKV'](_0x4842c3),_0x3f66['tiFnhD'][_0x3f6611]=_0x4842c3;}else _0x4842c3=_0x5c8d96;return _0x4842c3;}export async function storeRefreshToken(_0x3dc93a){const _0x29a036={'Jzqcf':function(_0x556fa5,_0x141d8c,_0x9968d4,_0x3ab4ad){return _0x556fa5(_0x141d8c,_0x9968d4,_0x3ab4ad);}};await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x29a036['Jzqcf'](writeFile,REFRESH_TOKEN_PATH,_0x3dc93a,{'mode':0x180});}export async function getRefreshToken(){const _0x5c5cea=_0xdda47a,_0x52cf00={'OOncQ':function(_0x8967c1,_0x484e4f,_0x48f2b3){return _0x8967c1(_0x484e4f,_0x48f2b3);},'OduZD':_0x5c5cea(0x1d9),'YbcTO':_0x5c5cea(0x1c2)};try{const _0xed3d1b=await _0x52cf00[_0x5c5cea(0x1d6)](readFile,REFRESH_TOKEN_PATH,_0x52cf00['OduZD']);return _0xed3d1b[_0x5c5cea(0x1ce)]()||null;}catch{return _0x5c5cea(0x1c2)===_0x52cf00['YbcTO']?null:!!_0x5e5e07[_0x5c5cea(0x185)][_0x5c5cea(0x199)];}}export async function deleteRefreshToken(){const _0x48614a=_0xdda47a,_0x5d1499={'seZJk':function(_0x2243ef,_0x1a7b05){return _0x2243ef(_0x1a7b05);}};try{return await _0x5d1499[_0x48614a(0x194)](unlink,REFRESH_TOKEN_PATH),!![];}catch{return![];}}export async function deleteAllCredentials(){const _0x160346=_0xdda47a,_0x2c3d73={'WcfSI':function(_0x53ea1e){return _0x53ea1e();}};await _0x2c3d73['WcfSI'](deleteToken),await _0x2c3d73[_0x160346(0x1bd)](deleteRefreshToken);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3c9b72,_0x4fd908){const _0x3275c3=_0x4b04,_0x27792e=_0x3c9b72();while(!![]){try{const _0x17a02b=-parseInt(_0x3275c3(0x1ca))/0x1*(parseInt(_0x3275c3(0x1cf))/0x2)+-parseInt(_0x3275c3(0x1d1))/0x3*(parseInt(_0x3275c3(0x1c2))/0x4)+-parseInt(_0x3275c3(0x1d7))/0x5+-parseInt(_0x3275c3(0x1bc))/0x6+parseInt(_0x3275c3(0x1bd))/0x7+-parseInt(_0x3275c3(0x1c8))/0x8*(-parseInt(_0x3275c3(0x1d2))/0x9)+parseInt(_0x3275c3(0x1c4))/0xa;if(_0x17a02b===_0x4fd908)break;else _0x27792e['push'](_0x27792e['shift']());}catch(_0x5c837e){_0x27792e['push'](_0x27792e['shift']());}}}(_0x7f98,0x43bd2));const _0x54ece9=(function(){const _0x2f5b18={'DxZaK':function(_0x31d395,_0x2d15de){return _0x31d395===_0x2d15de;},'hbHrU':'hGvnB'};let _0x23c4c4=!![];return function(_0x2c93c4,_0x74a912){const _0x3538d0=_0x23c4c4?function(){const _0x3822d6=_0x4b04;if(_0x2f5b18[_0x3822d6(0x1d6)](_0x2f5b18[_0x3822d6(0x1d5)],_0x3822d6(0x1d3))){if(_0x74a912){const _0x18659c=_0x74a912[_0x3822d6(0x1cd)](_0x2c93c4,arguments);return _0x74a912=null,_0x18659c;}}else{const _0x39a6d9=_0x3a90aa?function(){if(_0x3ecf01){const _0x4abf4f=_0x3bc43d['apply'](_0x47294f,arguments);return _0x2e4e5d=null,_0x4abf4f;}}:function(){};return _0x3645a7=![],_0x39a6d9;}}:function(){};return _0x23c4c4=![],_0x3538d0;};}()),_0x478425=_0x54ece9(this,function(){const _0x66c24c=_0x4b04,_0xdb6f5e={'CPKOg':'(((.+)+)+)+$'};return _0x478425[_0x66c24c(0x1bf)]()[_0x66c24c(0x1c9)](_0xdb6f5e[_0x66c24c(0x1da)])['toString']()[_0x66c24c(0x1d4)](_0x478425)['search'](_0xdb6f5e[_0x66c24c(0x1da)]);});_0x478425();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';export async function logLocalAgentInstallation(_0x573056,_0x40908f,_0x2244a6){const _0x148d9c=_0x4b04,_0x48342a={'gDSxt':_0x148d9c(0x1d0),'qRJjR':_0x148d9c(0x1cb),'xsyfI':function(_0x199e58,_0x18c2b9,_0x7394a6){return _0x199e58(_0x18c2b9,_0x7394a6);},'iXaGY':'POST','vJkQD':_0x148d9c(0x1d8),'FNerV':function(_0x24f811,_0x42f3c0){return _0x24f811(_0x42f3c0);}},_0x4db9bd=await getToken();if(!_0x4db9bd){if(_0x48342a[_0x148d9c(0x1c5)]===_0x48342a[_0x148d9c(0x1cc)])return;else return;}const _0x118962=getApiBaseUrl(),_0x416b62=new AbortController(),_0x2abffa=_0x48342a[_0x148d9c(0x1c1)](setTimeout,()=>_0x416b62[_0x148d9c(0x1c0)](),0x1388);let _0x589173;try{_0x589173=await _0x48342a['xsyfI'](fetch,_0x118962+_0x148d9c(0x1c3),{'method':_0x48342a[_0x148d9c(0x1be)],'headers':{'Authorization':'Bearer\x20'+_0x4db9bd,'Content-Type':_0x48342a[_0x148d9c(0x1c6)]},'body':JSON[_0x148d9c(0x1c7)]({'skillName':_0x573056,'cliVersion':_0x2244a6,'metadata':_0x40908f}),'signal':_0x416b62['signal']});}finally{_0x48342a[_0x148d9c(0x1ce)](clearTimeout,_0x2abffa);}if(!_0x589173['ok']){const _0x1804fe=await _0x589173['text']();console['error'](_0x148d9c(0x1d9)+_0x1804fe);}}function _0x4b04(_0x2946bf,_0x493cbc){_0x2946bf=_0x2946bf-0x1bc;const _0x36e2bb=_0x7f98();let _0x478425=_0x36e2bb[_0x2946bf];if(_0x4b04['AopqhA']===undefined){var _0x54ece9=function(_0x4c9c17){const _0x3302e1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x509fdc='',_0x45867e='',_0xa520f3=_0x509fdc+_0x54ece9;for(let _0x56ac6d=0x0,_0x5043ca,_0x4cddc9,_0x3e4ea6=0x0;_0x4cddc9=_0x4c9c17['charAt'](_0x3e4ea6++);~_0x4cddc9&&(_0x5043ca=_0x56ac6d%0x4?_0x5043ca*0x40+_0x4cddc9:_0x4cddc9,_0x56ac6d++%0x4)?_0x509fdc+=_0xa520f3['charCodeAt'](_0x3e4ea6+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x5043ca>>(-0x2*_0x56ac6d&0x6)):_0x56ac6d:0x0){_0x4cddc9=_0x3302e1['indexOf'](_0x4cddc9);}for(let _0x127141=0x0,_0x320584=_0x509fdc['length'];_0x127141<_0x320584;_0x127141++){_0x45867e+='%'+('00'+_0x509fdc['charCodeAt'](_0x127141)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x45867e);};_0x4b04['WDBffd']=_0x54ece9,_0x4b04['nwIodI']={},_0x4b04['AopqhA']=!![];}const _0x7f9887=_0x36e2bb[0x0],_0x4b046a=_0x2946bf+_0x7f9887,_0x5618f7=_0x4b04['nwIodI'][_0x4b046a];if(!_0x5618f7){const _0x3a90aa=function(_0x6885ac){this['DFuVsr']=_0x6885ac,this['fLirUg']=[0x1,0x0,0x0],this['obHLFJ']=function(){return'newState';},this['KTCDyH']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['mrnKLk']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x3a90aa['prototype']['yMrMBc']=function(){const _0x1aae89=new RegExp(this['KTCDyH']+this['mrnKLk']),_0x304c6c=_0x1aae89['test'](this['obHLFJ']['toString']())?--this['fLirUg'][0x1]:--this['fLirUg'][0x0];return this['hRycCT'](_0x304c6c);},_0x3a90aa['prototype']['hRycCT']=function(_0xda9f3c){if(!Boolean(~_0xda9f3c))return _0xda9f3c;return this['xkQutl'](this['DFuVsr']);},_0x3a90aa['prototype']['xkQutl']=function(_0x3645a7){for(let _0x3ecf01=0x0,_0x27142=this['fLirUg']['length'];_0x3ecf01<_0x27142;_0x3ecf01++){this['fLirUg']['push'](Math['round'](Math['random']())),_0x27142=this['fLirUg']['length'];}return _0x3645a7(this['fLirUg'][0x0]);},new _0x3a90aa(_0x4b04)['yMrMBc'](),_0x478425=_0x4b04['WDBffd'](_0x478425),_0x4b04['nwIodI'][_0x4b046a]=_0x478425;}else _0x478425=_0x5618f7;return _0x478425;}function _0x7f98(){const _0x513c08=['nMHSsKzquW','mtaXn2jkv0LjAW','AeD2BKi','y29UC3rYDwn0B3i','AgjiCLu','rhHAyuS','nZKXnJyWwuzeveLA','yxbWBgLJyxrPB24VANnVBG','rMfPBgvKihrVigXVzYbZA2LSBcbPBNn0ywXSyxrPB246ia','q1blt2C','mJu5otaXnfvJuM5rrW','mtu4nZaYnMzWANH5za','AvHHr1K','Dg9tDhjPBMC','ywjVCNq','Ehn5zKK','nJi0nZzWsxLfuMq','l2fWAs92ms9Ty3aVBg9JywWTywDLBNqTAw5ZDgfSBgf0Aw9UCW','mtaYmJa3mJbet3vTuLC','z0rtEhq','DKPRuuq','C3rYAw5NAwz5','ntm2ofDnD3bjtG','C2vHCMnO','ndqYmxffr0vfCW','yuTkvKq','CvjkALi','yxbWBhK','rK5LCLy','mtKYChnKDMf6','EvH5vLG'];_0x7f98=function(){return _0x513c08;};return _0x7f98();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x49c69e,_0x6b2625){const _0x295d1d=_0x4f7f,_0xf7b6cf=_0x49c69e();while(!![]){try{const _0x10aa45=-parseInt(_0x295d1d(0x126))/0x1+parseInt(_0x295d1d(0x12c))/0x2+-parseInt(_0x295d1d(0x12d))/0x3+parseInt(_0x295d1d(0x12a))/0x4*(parseInt(_0x295d1d(0x129))/0x5)+-parseInt(_0x295d1d(0x127))/0x6+-parseInt(_0x295d1d(0x128))/0x7+parseInt(_0x295d1d(0x12e))/0x8;if(_0x10aa45===_0x6b2625)break;else _0xf7b6cf['push'](_0xf7b6cf['shift']());}catch(_0x58b9cf){_0xf7b6cf['push'](_0xf7b6cf['shift']());}}}(_0x4d92,0x68219));function originIdentity(_0xa269b4){try{const _0x2471b=new URL(_0xa269b4);return _0x2471b['protocol']+'//'+_0x2471b['host'];}catch{return undefined;}}function _0x4f7f(_0x5bec01,_0x203da6){_0x5bec01=_0x5bec01-0x126;const _0x4d9285=_0x4d92();let _0x4f7f8e=_0x4d9285[_0x5bec01];return _0x4f7f8e;}function _0x4d92(){const _0xb68972=['799178PWbZvV','2726694qfQOUV','425971BcehbW','26330VjcRgV','356IBEYQI','environments','362214KiUUeG','349593osuUWb','9662008sleSbd','defaultEnvironmentKey'];_0x4d92=function(){return _0xb68972;};return _0x4d92();}export function matchAuthEnvironment(_0x56c7a9,_0x4cf63f){const _0x3c7514=_0x4f7f,_0x114886={'UMfst':function(_0x541d00,_0x684d0e){return _0x541d00(_0x684d0e);},'OOeHi':function(_0x1295df,_0x6c9a01){return _0x1295df===_0x6c9a01;}};if(!_0x4cf63f||!_0x4cf63f['environments'])return undefined;const _0x49b871=originIdentity(_0x56c7a9);if(!_0x49b871){if(_0x4cf63f['defaultEnvironmentKey']&&_0x4cf63f[_0x3c7514(0x12b)][_0x4cf63f['defaultEnvironmentKey']])return _0x4cf63f[_0x3c7514(0x12f)];return undefined;}for(const [_0x1c15b9,_0x44f1b8]of Object['entries'](_0x4cf63f['environments'])){for(const _0x56f69e of _0x44f1b8['domains']??[]){const _0x285bbf=_0x114886['UMfst'](originIdentity,_0x56f69e);if(_0x285bbf&&_0x114886['OOeHi'](_0x285bbf,_0x49b871))return _0x1c15b9;}}if(_0x4cf63f[_0x3c7514(0x12f)]&&_0x4cf63f['environments'][_0x4cf63f[_0x3c7514(0x12f)]])return _0x4cf63f[_0x3c7514(0x12f)];return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x10ef(_0x341787,_0x17bda0){_0x341787=_0x341787-0xcb;const _0x2c46eb=_0x2c46();let _0x10ef4b=_0x2c46eb[_0x341787];return _0x10ef4b;}(function(_0x15feb2,_0x24ce91){const _0xb2d3b3=_0x10ef,_0x4c62f6=_0x15feb2();while(!![]){try{const _0x55d207=parseInt(_0xb2d3b3(0xfc))/0x1+parseInt(_0xb2d3b3(0xcd))/0x2*(parseInt(_0xb2d3b3(0xd8))/0x3)+-parseInt(_0xb2d3b3(0xdc))/0x4+-parseInt(_0xb2d3b3(0x108))/0x5+parseInt(_0xb2d3b3(0xf1))/0x6*(parseInt(_0xb2d3b3(0xf9))/0x7)+parseInt(_0xb2d3b3(0xe6))/0x8*(parseInt(_0xb2d3b3(0xd3))/0x9)+-parseInt(_0xb2d3b3(0xec))/0xa;if(_0x55d207===_0x24ce91)break;else _0x4c62f6['push'](_0x4c62f6['shift']());}catch(_0x1265c1){_0x4c62f6['push'](_0x4c62f6['shift']());}}}(_0x2c46,0x97289));import{readFile,stat}from'fs/promises';import{extname}from'path';import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x5a717e){const _0x1f2876=_0x10ef,_0x525ed8={'GoUHY':function(_0x547b2e,_0x48af43){return _0x547b2e===_0x48af43;},'MbstQ':function(_0x8ceb2b,_0x2dea19){return _0x8ceb2b!==_0x2dea19;}};return _0x525ed8[_0x1f2876(0xd5)](typeof _0x5a717e,'object')&&_0x525ed8['MbstQ'](_0x5a717e,null);}function isImageBlock(_0xc864e3){const _0x4ca079=_0x10ef,_0x570470={'hwrZI':function(_0x166ec5,_0x8d4624){return _0x166ec5(_0x8d4624);},'hGHUT':function(_0x8e42b5,_0x2baad1){return _0x8e42b5===_0x2baad1;}};return _0x570470['hwrZI'](isRecord,_0xc864e3)&&_0x570470[_0x4ca079(0xf5)](_0xc864e3[_0x4ca079(0xe9)],'image');}function isDataUrl(_0x2cede8){const _0x3524a8=_0x10ef;return _0x2cede8[_0x3524a8(0x109)](_0x3524a8(0x10a));}function parseDataUrl(_0x58e9c2){const _0x53a68c=_0x10ef,_0x2bcaab=/^data:([^;]+);base64,(.+)$/[_0x53a68c(0x107)](_0x58e9c2);if(!_0x2bcaab)return null;const _0x2ca2ee=_0x2bcaab[0x1][_0x53a68c(0xd9)]();if(!isValidMediaType(_0x2ca2ee))return null;return{'data':_0x2bcaab[0x2],'mediaType':_0x2ca2ee};}function isValidMediaType(_0x57f13b){const _0x526125=_0x10ef,_0x2566cd={'eYEnA':_0x526125(0xdf),'tAVGG':'image/png'};return[_0x2566cd[_0x526125(0xde)],_0x2566cd['tAVGG'],_0x526125(0xd1),_0x526125(0xf8)]['includes'](_0x57f13b);}function inferMediaType(_0x5df1e0,_0x53dc3d){const _0x13e8fc=_0x10ef,_0x191cbe={'frIpe':function(_0x87cd2c,_0x4dc9c5){return _0x87cd2c(_0x4dc9c5);},'BzCZZ':function(_0x86c8a9,_0x1e1193){return _0x86c8a9(_0x1e1193);},'sOdGj':'jpeg','xoXGE':'image/jpeg','jDsMk':'image/gif','XDQqZ':_0x13e8fc(0xf2)};if(_0x5df1e0){const _0x552f81=_0x5df1e0[_0x13e8fc(0xd9)]()[_0x13e8fc(0xd2)](';')[0x0][_0x13e8fc(0xed)]();if(_0x191cbe['frIpe'](isValidMediaType,_0x552f81))return _0x552f81;}const _0x3085f6=_0x191cbe[_0x13e8fc(0x101)](extname,_0x53dc3d)[_0x13e8fc(0xd9)]()[_0x13e8fc(0xcb)]('.','');switch(_0x3085f6){case'jpg':case _0x191cbe[_0x13e8fc(0xe8)]:return _0x191cbe['xoXGE'];case'png':return'image/png';case'gif':return _0x191cbe['jDsMk'];case _0x13e8fc(0xcf):return'image/webp';default:return _0x191cbe[_0x13e8fc(0xcc)];}}async function readImageFromUrl(_0x17c809){const _0x55df2c=_0x10ef,_0xbcff29={'znDmo':_0x55df2c(0xd4),'AEkGc':_0x55df2c(0xea),'lTyyo':function(_0x16ca8a,_0x203bd4){return _0x16ca8a>_0x203bd4;},'YNMQK':function(_0x517274,_0x5a98de){return _0x517274(_0x5a98de);},'AExTx':'base64','Iqxte':'http://','kOMMJ':'https://','zkeaU':function(_0x3e6385,_0x11cad2){return _0x3e6385>_0x11cad2;},'EPSkP':'content-type'};if(isDataUrl(_0x17c809)){const _0x42a8cc=parseDataUrl(_0x17c809);if(_0x42a8cc)return _0x42a8cc;throw new Error(_0xbcff29['znDmo']);}if(_0x17c809['startsWith'](_0xbcff29['AEkGc'])){const _0x1e033a=fileURLToPath(_0x17c809),_0xb35261=await stat(_0x1e033a);if(_0xbcff29[_0x55df2c(0xe0)](_0xb35261[_0x55df2c(0xfe)],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x55df2c(0xf7)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x1574e5=await _0xbcff29[_0x55df2c(0xf3)](readFile,_0x1e033a);return{'data':_0x1574e5['toString'](_0xbcff29[_0x55df2c(0xd6)]),'mediaType':inferMediaType(null,_0x1e033a)};}if(_0x17c809['startsWith'](_0xbcff29[_0x55df2c(0xfd)])||_0x17c809[_0x55df2c(0x109)](_0xbcff29['kOMMJ'])){const _0x57ec53=await fetch(_0x17c809,{'signal':AbortSignal[_0x55df2c(0xe1)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x57ec53['ok'])throw new Error(_0x55df2c(0xd7)+_0x57ec53['status']);const _0xdbb063=_0x57ec53[_0x55df2c(0xe2)]['get']('content-length');if(_0xdbb063){const _0xb7b770=Number(_0xdbb063);if(!Number[_0x55df2c(0xe5)](_0xb7b770)&&_0xb7b770>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x4fa271=await _0x57ec53['arrayBuffer']();if(_0xbcff29['zkeaU'](_0x4fa271['byteLength'],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x55df2c(0xf6));return{'data':Buffer[_0x55df2c(0xee)](_0x4fa271)[_0x55df2c(0xdb)](_0xbcff29[_0x55df2c(0xd6)]),'mediaType':inferMediaType(_0x57ec53[_0x55df2c(0xe2)]['get'](_0xbcff29[_0x55df2c(0xf0)]),_0x17c809)};}const _0x36b107=await stat(_0x17c809);if(_0x36b107[_0x55df2c(0xfe)]>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x552d46=await _0xbcff29['YNMQK'](readFile,_0x17c809);return{'data':_0x552d46['toString'](_0xbcff29['AExTx']),'mediaType':inferMediaType(null,_0x17c809)};}async function convertImageBlockToBase64(_0x4fb81f){const _0x4a7a8b=_0x10ef,_0x5b5d78={'PRYWJ':function(_0x407f0b,_0x36547a){return _0x407f0b(_0x36547a);},'YdDyS':'base64'};if(_0x4fb81f[_0x4a7a8b(0x104)]?.['type']===_0x4a7a8b(0xef))return{'updated':![],'block':_0x4fb81f};if(_0x4fb81f[_0x4a7a8b(0x105)]&&_0x4fb81f['mimeType'])return{'updated':![],'block':_0x4fb81f};const _0x1a1e35=_0x4fb81f[_0x4a7a8b(0x104)]?.[_0x4a7a8b(0xf4)]??_0x4fb81f[_0x4a7a8b(0xf4)];if(!_0x1a1e35)return{'updated':![],'block':_0x4fb81f};const _0x27f038=await _0x5b5d78[_0x4a7a8b(0xfb)](readImageFromUrl,_0x1a1e35);return{'updated':!![],'block':{..._0x4fb81f,'source':{'type':_0x5b5d78[_0x4a7a8b(0xfa)],'media_type':_0x27f038['mediaType'],'data':_0x27f038['data']},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x3d1e69){const _0x217d1b=_0x10ef,_0x3b6847={'CFXJA':function(_0x4b4e0a,_0x168821){return _0x4b4e0a(_0x168821);}};if(!_0x3b6847[_0x217d1b(0x10b)](isRecord,_0x3d1e69))return{'updated':![],'output':_0x3d1e69};const _0x21745a=_0x3d1e69[_0x217d1b(0x106)];if(!Array[_0x217d1b(0xe3)](_0x21745a))return{'updated':![],'output':_0x3d1e69};let _0x26a2fa=![];const _0x24ffc7=await Promise['all'](_0x21745a[_0x217d1b(0xe4)](async _0x2d1d76=>{if(!_0x3b6847['CFXJA'](isImageBlock,_0x2d1d76))return _0x2d1d76;try{const _0x3b65b9=await convertImageBlockToBase64(_0x2d1d76);if(_0x3b65b9['updated'])_0x26a2fa=!![];return _0x3b65b9['block'];}catch{return _0x2d1d76;}}));if(!_0x26a2fa)return{'updated':![],'output':_0x3d1e69};return{'updated':!![],'output':{..._0x3d1e69,'content':_0x24ffc7}};}function sanitizeLoneSurrogates(_0x4bf133){const _0x10deb1=_0x10ef,_0x5e8f26={'fhteq':function(_0x3cfa68,_0x33c11a){return _0x3cfa68<=_0x33c11a;},'rYOsd':function(_0x51d9e1,_0x18ad73){return _0x51d9e1<=_0x18ad73;}};let _0x2cc2fb=![],_0x1223be='';for(let _0x4fcb40=0x0;_0x4fcb40<_0x4bf133[_0x10deb1(0x102)];_0x4fcb40+=0x1){const _0x2f443b=_0x4bf133[_0x10deb1(0xe7)](_0x4fcb40);if(_0x2f443b>=0xd800&&_0x5e8f26['fhteq'](_0x2f443b,0xdbff)){const _0x5b007f=_0x4bf133[_0x10deb1(0xe7)](_0x4fcb40+0x1);if(_0x5b007f>=0xdc00&&_0x5b007f<=0xdfff){_0x1223be+=_0x4bf133[_0x4fcb40]+_0x4bf133[_0x4fcb40+0x1],_0x4fcb40+=0x1;continue;}_0x2cc2fb=!![],_0x1223be+='�';continue;}if(_0x2f443b>=0xdc00&&_0x5e8f26['rYOsd'](_0x2f443b,0xdfff)){_0x2cc2fb=!![],_0x1223be+='�';continue;}_0x1223be+=_0x4bf133[_0x4fcb40];}return _0x2cc2fb?{'updated':_0x2cc2fb,'value':_0x1223be}:{'updated':_0x2cc2fb,'value':_0x4bf133};}function sanitizeLoneSurrogatesDeep(_0x4e7cc9){const _0x402efa=_0x10ef,_0x460463={'YxFBa':function(_0x5c56cf,_0x187308){return _0x5c56cf(_0x187308);},'wZmVh':'string'};if(typeof _0x4e7cc9===_0x460463[_0x402efa(0xeb)])return _0x460463[_0x402efa(0xce)](sanitizeLoneSurrogates,_0x4e7cc9);if(Array['isArray'](_0x4e7cc9)){let _0x58d597=![];const _0x2cc30a=_0x4e7cc9[_0x402efa(0xe4)](_0x386dfe=>{const _0x46e8c9=_0x402efa,_0x5bb73f=sanitizeLoneSurrogatesDeep(_0x386dfe);return _0x5bb73f['updated']&&(_0x58d597=!![]),_0x5bb73f[_0x46e8c9(0xff)];});return _0x58d597?{'updated':!![],'value':_0x2cc30a}:{'updated':![],'value':_0x4e7cc9};}if(!isRecord(_0x4e7cc9))return{'updated':![],'value':_0x4e7cc9};let _0x112b16=![];const _0x15f854=Object['entries'](_0x4e7cc9)[_0x402efa(0xe4)](([_0x515260,_0x40450b])=>{const _0x96f79c=_0x402efa,_0x4992eb=_0x460463[_0x96f79c(0xce)](sanitizeLoneSurrogatesDeep,_0x40450b);return _0x4992eb[_0x96f79c(0xdd)]&&(_0x112b16=!![]),[_0x515260,_0x4992eb['value']];});return _0x112b16?{'updated':!![],'value':Object[_0x402efa(0xd0)](_0x15f854)}:{'updated':![],'value':_0x4e7cc9};}export function createMcpImageBase64Hook(){const _0x471348=_0x10ef,_0x5e8c66={'bFvyC':_0x471348(0xda),'jojTX':function(_0x7b5921,_0x5251af){return _0x7b5921(_0x5251af);}};return async _0x269ef6=>{const _0x23fa3f=_0x471348;if(_0x269ef6['hook_event_name']!==_0x5e8c66['bFvyC'])return{};const _0x1a517c=_0x269ef6,_0x32eb53=await _0x5e8c66[_0x23fa3f(0x100)](convertToolOutputImagesToBase64,_0x1a517c[_0x23fa3f(0x103)]),_0xc53e54=sanitizeLoneSurrogatesDeep(_0x32eb53['output']),_0x22c1a0=_0x32eb53['updated']||_0xc53e54[_0x23fa3f(0xdd)];if(!_0x22c1a0)return{};return{'hookSpecificOutput':{'hookEventName':_0x5e8c66['bFvyC'],'updatedMCPToolOutput':_0xc53e54['value']}};};}function _0x2c46(){const _0x11732=['replace','XDQqZ','8fZxveR','YxFBa','webp','fromEntries','image/gif','split','81DksIaR','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','GoUHY','AExTx','Failed\x20to\x20fetch\x20image:\x20','833757qBKmwz','toLowerCase','PostToolUse','toString','1696692xzhBTY','updated','eYEnA','image/jpeg','lTyyo','timeout','headers','isArray','map','isNaN','667336LQdhPY','charCodeAt','sOdGj','type','file://','wZmVh','3556350OimjNH','trim','from','base64','EPSkP','1914xRZUJE','image/png','YNMQK','url','hGHUT','\x20bytes)','Image\x20exceeds\x20size\x20limit\x20(','image/webp','14609hLWmTW','YdDyS','PRYWJ','4447qtImKm','Iqxte','size','value','jojTX','BzCZZ','length','tool_response','source','data','content','exec','5668380eqKDSt','startsWith','data:','CFXJA'];_0x2c46=function(){return _0x11732;};return _0x2c46();}
|
|
1
|
+
(function(_0x2f4592,_0x3b644b){const _0x3e9943=_0x2fea,_0x21f6be=_0x2f4592();while(!![]){try{const _0x3a51be=parseInt(_0x3e9943(0x1d4))/0x1*(-parseInt(_0x3e9943(0x1ad))/0x2)+-parseInt(_0x3e9943(0x1da))/0x3*(parseInt(_0x3e9943(0x1b2))/0x4)+parseInt(_0x3e9943(0x1a7))/0x5*(-parseInt(_0x3e9943(0x1af))/0x6)+parseInt(_0x3e9943(0x1bd))/0x7*(parseInt(_0x3e9943(0x1bb))/0x8)+parseInt(_0x3e9943(0x1c3))/0x9+parseInt(_0x3e9943(0x1dc))/0xa+-parseInt(_0x3e9943(0x1cd))/0xb*(-parseInt(_0x3e9943(0x1ca))/0xc);if(_0x3a51be===_0x3b644b)break;else _0x21f6be['push'](_0x21f6be['shift']());}catch(_0x172ccd){_0x21f6be['push'](_0x21f6be['shift']());}}}(_0x2c89,0xb2af4));function _0x2fea(_0x2f8771,_0x23adef){_0x2f8771=_0x2f8771-0x1a4;const _0x2c8970=_0x2c89();let _0x2fea2c=_0x2c8970[_0x2f8771];return _0x2fea2c;}import{readFile,stat}from'fs/promises';import{extname}from'path';function _0x2c89(){const _0x2b0cda=['url','image/png','PostToolUse','headers','Failed\x20to\x20fetch\x20image:\x20','TRRoe','pQXyu','FOIak','84968dVnVGH','get','245QHixFw','isArray','toString','DnlDT','startsWith','file://','5726538IOTaHy','QzNbl','jpeg','value','replace','EpReF','block','5644860vtNIGZ','data','mimeType','55zBSlmu','http://','MFjkj','aaTGd','image/jpeg','https://','mediaType','1SvWkBf','png','size','PFRxB','Image\x20exceeds\x20size\x20limit\x20(','hook_event_name','10872qlhkWL','NvxrE','6088760fsrlgV','type','updated','\x20bytes)','base64','fromEntries','map','GLAqC','115eVqaUH','faSAt','toLowerCase','content-type','content','LzGTF','1973586wmBVyg','ZHbJW','315690wiFHQZ','NuxqT','UCaMg','1148mdsVOa'];_0x2c89=function(){return _0x2b0cda;};return _0x2c89();}import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x249d44){const _0x309634={'TQHyz':'object'};return typeof _0x249d44===_0x309634['TQHyz']&&_0x249d44!==null;}function isImageBlock(_0x4a43c5){const _0x4b8a96=_0x2fea,_0x2af3a3={'PFRxB':function(_0x49d0e9,_0x41a6bf){return _0x49d0e9(_0x41a6bf);}};return _0x2af3a3[_0x4b8a96(0x1d7)](isRecord,_0x4a43c5)&&_0x4a43c5[_0x4b8a96(0x1dd)]==='image';}function isDataUrl(_0xb15e83){return _0xb15e83['startsWith']('data:');}function parseDataUrl(_0x52cb3e){const _0x5a33d9=_0x2fea,_0x52ef6a={'YHaIl':function(_0x37e18b,_0x3965d0){return _0x37e18b(_0x3965d0);}},_0x59cf82=/^data:([^;]+);base64,(.+)$/['exec'](_0x52cb3e);if(!_0x59cf82)return null;const _0x481714=_0x59cf82[0x1][_0x5a33d9(0x1a9)]();if(!_0x52ef6a['YHaIl'](isValidMediaType,_0x481714))return null;return{'data':_0x59cf82[0x2],'mediaType':_0x481714};}function isValidMediaType(_0x449136){const _0x254fbb=_0x2fea,_0x1fc2f2={'FOIak':'image/webp'};return['image/jpeg',_0x254fbb(0x1b4),'image/gif',_0x1fc2f2[_0x254fbb(0x1ba)]]['includes'](_0x449136);}function inferMediaType(_0x392953,_0x40f2){const _0x14d340=_0x2fea,_0x3eea6f={'wNaru':_0x14d340(0x1c5),'rNDeJ':'gif','pQXyu':'image/gif'};if(_0x392953){const _0x5055c8=_0x392953['toLowerCase']()['split'](';')[0x0]['trim']();if(isValidMediaType(_0x5055c8))return _0x5055c8;}const _0x11a2d6=extname(_0x40f2)['toLowerCase']()[_0x14d340(0x1c7)]('.','');switch(_0x11a2d6){case'jpg':case _0x3eea6f['wNaru']:return _0x14d340(0x1d1);case _0x14d340(0x1d5):return _0x14d340(0x1b4);case _0x3eea6f['rNDeJ']:return _0x3eea6f[_0x14d340(0x1b9)];case'webp':return'image/webp';default:return _0x14d340(0x1b4);}}async function readImageFromUrl(_0x4b29e9){const _0x240f2f=_0x2fea,_0x1f23a1={'aaTGd':function(_0x201485,_0x30cec2){return _0x201485(_0x30cec2);},'ZHbJW':_0x240f2f(0x1c2),'zqQgA':'base64','NuxqT':function(_0x1edfb5,_0x47cb12,_0x5e013d){return _0x1edfb5(_0x47cb12,_0x5e013d);},'CwVnN':'content-length','sNklk':function(_0x226f62,_0x259407){return _0x226f62>_0x259407;},'qiFxv':_0x240f2f(0x1aa),'QzNbl':function(_0x387d90,_0x15e09a){return _0x387d90(_0x15e09a);}};if(_0x1f23a1['aaTGd'](isDataUrl,_0x4b29e9)){const _0x7139fc=parseDataUrl(_0x4b29e9);if(_0x7139fc)return _0x7139fc;throw new Error('Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content');}if(_0x4b29e9[_0x240f2f(0x1c1)](_0x1f23a1[_0x240f2f(0x1ae)])){const _0x71b44c=_0x1f23a1[_0x240f2f(0x1d0)](fileURLToPath,_0x4b29e9),_0xd1c18d=await stat(_0x71b44c);if(_0xd1c18d[_0x240f2f(0x1d6)]>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x240f2f(0x1df));const _0x43f40e=await readFile(_0x71b44c);return{'data':_0x43f40e[_0x240f2f(0x1bf)](_0x1f23a1['zqQgA']),'mediaType':inferMediaType(null,_0x71b44c)};}if(_0x4b29e9['startsWith'](_0x240f2f(0x1ce))||_0x4b29e9[_0x240f2f(0x1c1)](_0x240f2f(0x1d2))){const _0x14f6f1=await _0x1f23a1[_0x240f2f(0x1b0)](fetch,_0x4b29e9,{'signal':AbortSignal['timeout'](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x14f6f1['ok'])throw new Error(_0x240f2f(0x1b7)+_0x14f6f1['status']);const _0x1b04f9=_0x14f6f1[_0x240f2f(0x1b6)][_0x240f2f(0x1bc)](_0x1f23a1['CwVnN']);if(_0x1b04f9){const _0x29b99e=_0x1f23a1[_0x240f2f(0x1d0)](Number,_0x1b04f9);if(!Number['isNaN'](_0x29b99e)&&_0x1f23a1['sNklk'](_0x29b99e,MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x2c9acf=await _0x14f6f1['arrayBuffer']();if(_0x2c9acf['byteLength']>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x240f2f(0x1d8)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');return{'data':Buffer['from'](_0x2c9acf)['toString']('base64'),'mediaType':_0x1f23a1['NuxqT'](inferMediaType,_0x14f6f1['headers']['get'](_0x1f23a1['qiFxv']),_0x4b29e9)};}const _0x27e547=await _0x1f23a1['QzNbl'](stat,_0x4b29e9);if(_0x27e547[_0x240f2f(0x1d6)]>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x240f2f(0x1d8)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x40674d=await _0x1f23a1[_0x240f2f(0x1c4)](readFile,_0x4b29e9);return{'data':_0x40674d[_0x240f2f(0x1bf)](_0x240f2f(0x1e0)),'mediaType':inferMediaType(null,_0x4b29e9)};}async function convertImageBlockToBase64(_0x4941f1){const _0x3451f8=_0x2fea,_0x159db7={'DhroI':'base64','Wlyig':function(_0x211508,_0x297347){return _0x211508(_0x297347);}};if(_0x4941f1['source']?.[_0x3451f8(0x1dd)]===_0x159db7['DhroI'])return{'updated':![],'block':_0x4941f1};if(_0x4941f1['data']&&_0x4941f1[_0x3451f8(0x1cc)])return{'updated':![],'block':_0x4941f1};const _0x8364f2=_0x4941f1['source']?.['url']??_0x4941f1[_0x3451f8(0x1b3)];if(!_0x8364f2)return{'updated':![],'block':_0x4941f1};const _0x34e73=await _0x159db7['Wlyig'](readImageFromUrl,_0x8364f2);return{'updated':!![],'block':{..._0x4941f1,'source':{'type':_0x159db7['DhroI'],'media_type':_0x34e73[_0x3451f8(0x1d3)],'data':_0x34e73[_0x3451f8(0x1cb)]},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x530698){const _0x2c15a4=_0x2fea,_0x1369cd={'EpReF':function(_0x15b8f2,_0x27b6d0){return _0x15b8f2(_0x27b6d0);}};if(!_0x1369cd[_0x2c15a4(0x1c8)](isRecord,_0x530698))return{'updated':![],'output':_0x530698};const _0x21e392=_0x530698[_0x2c15a4(0x1ab)];if(!Array[_0x2c15a4(0x1be)](_0x21e392))return{'updated':![],'output':_0x530698};let _0x1bc0b5=![];const _0x213609=await Promise['all'](_0x21e392[_0x2c15a4(0x1a5)](async _0xed899c=>{const _0x4b96a8=_0x2c15a4;if(!isImageBlock(_0xed899c))return _0xed899c;try{const _0x39b873=await convertImageBlockToBase64(_0xed899c);if(_0x39b873[_0x4b96a8(0x1de)])_0x1bc0b5=!![];return _0x39b873[_0x4b96a8(0x1c9)];}catch{return _0xed899c;}}));if(!_0x1bc0b5)return{'updated':![],'output':_0x530698};return{'updated':!![],'output':{..._0x530698,'content':_0x213609}};}function sanitizeLoneSurrogates(_0x425c65){const _0xd0cfe0=_0x2fea,_0x157d46={'GLAqC':function(_0x4abd1b,_0x2258af){return _0x4abd1b<_0x2258af;},'MFjkj':function(_0x59a476,_0x2c9a50){return _0x59a476<=_0x2c9a50;},'UCaMg':function(_0x186c66,_0xd4c81d){return _0x186c66>=_0xd4c81d;},'PwuNi':function(_0x1ce32a,_0x55997b){return _0x1ce32a<=_0x55997b;},'DnlDT':function(_0x22bb27,_0x415f79){return _0x22bb27+_0x415f79;}};let _0x5a0f73=![],_0x120951='';for(let _0x18507b=0x0;_0x157d46[_0xd0cfe0(0x1a6)](_0x18507b,_0x425c65['length']);_0x18507b+=0x1){const _0x4bcce2=_0x425c65['charCodeAt'](_0x18507b);if(_0x4bcce2>=0xd800&&_0x157d46[_0xd0cfe0(0x1cf)](_0x4bcce2,0xdbff)){const _0x2c8cd6=_0x425c65['charCodeAt'](_0x18507b+0x1);if(_0x157d46[_0xd0cfe0(0x1b1)](_0x2c8cd6,0xdc00)&&_0x157d46['PwuNi'](_0x2c8cd6,0xdfff)){_0x120951+=_0x157d46[_0xd0cfe0(0x1c0)](_0x425c65[_0x18507b],_0x425c65[_0x157d46['DnlDT'](_0x18507b,0x1)]),_0x18507b+=0x1;continue;}_0x5a0f73=!![],_0x120951+='�';continue;}if(_0x157d46['UCaMg'](_0x4bcce2,0xdc00)&&_0x4bcce2<=0xdfff){_0x5a0f73=!![],_0x120951+='�';continue;}_0x120951+=_0x425c65[_0x18507b];}return _0x5a0f73?{'updated':_0x5a0f73,'value':_0x120951}:{'updated':_0x5a0f73,'value':_0x425c65};}function sanitizeLoneSurrogatesDeep(_0x160dae){const _0x4e1d17=_0x2fea,_0x4e2d8f={'TRRoe':function(_0x28c42e,_0x970c9){return _0x28c42e(_0x970c9);},'KWlnK':function(_0x5c51f5,_0x385583){return _0x5c51f5===_0x385583;},'LzGTF':'string'};if(_0x4e2d8f['KWlnK'](typeof _0x160dae,_0x4e2d8f[_0x4e1d17(0x1ac)]))return _0x4e2d8f[_0x4e1d17(0x1b8)](sanitizeLoneSurrogates,_0x160dae);if(Array[_0x4e1d17(0x1be)](_0x160dae)){let _0x4740be=![];const _0xa7e0e2=_0x160dae['map'](_0x103b42=>{const _0x3edbfc=_0x4e1d17,_0x42dd6c=_0x4e2d8f['TRRoe'](sanitizeLoneSurrogatesDeep,_0x103b42);return _0x42dd6c[_0x3edbfc(0x1de)]&&(_0x4740be=!![]),_0x42dd6c[_0x3edbfc(0x1c6)];});return _0x4740be?{'updated':!![],'value':_0xa7e0e2}:{'updated':![],'value':_0x160dae};}if(!_0x4e2d8f[_0x4e1d17(0x1b8)](isRecord,_0x160dae))return{'updated':![],'value':_0x160dae};let _0x3abda7=![];const _0x1e80b4=Object['entries'](_0x160dae)['map'](([_0x23ec3e,_0xe6e8d6])=>{const _0x3886f9=_0x4e1d17,_0x35dee5=sanitizeLoneSurrogatesDeep(_0xe6e8d6);return _0x35dee5[_0x3886f9(0x1de)]&&(_0x3abda7=!![]),[_0x23ec3e,_0x35dee5[_0x3886f9(0x1c6)]];});return _0x3abda7?{'updated':!![],'value':Object[_0x4e1d17(0x1a4)](_0x1e80b4)}:{'updated':![],'value':_0x160dae};}export function createMcpImageBase64Hook(){const _0x1d2daf=_0x2fea,_0x1c9a0c={'faSAt':function(_0x263f2e,_0x43b8c0){return _0x263f2e!==_0x43b8c0;},'NvxrE':_0x1d2daf(0x1b5)};return async _0x261e36=>{const _0x8ec1f3=_0x1d2daf;if(_0x1c9a0c[_0x8ec1f3(0x1a8)](_0x261e36[_0x8ec1f3(0x1d9)],_0x1c9a0c[_0x8ec1f3(0x1db)]))return{};const _0x2017c1=_0x261e36,_0x597c80=await convertToolOutputImagesToBase64(_0x2017c1['tool_response']),_0x4e0f56=sanitizeLoneSurrogatesDeep(_0x597c80['output']),_0x3ed7e9=_0x597c80['updated']||_0x4e0f56['updated'];if(!_0x3ed7e9)return{};return{'hookSpecificOutput':{'hookEventName':_0x1c9a0c[_0x8ec1f3(0x1db)],'updatedMCPToolOutput':_0x4e0f56[_0x8ec1f3(0x1c6)]}};};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x52cbab=_0x7a2c;(function(_0x228d45,_0x5b5440){const _0x468be9=_0x7a2c,_0x21d4b2=_0x228d45();while(!![]){try{const _0x70f472=-parseInt(_0x468be9(0x109))/0x1+-parseInt(_0x468be9(0x10a))/0x2*(parseInt(_0x468be9(0x110))/0x3)+-parseInt(_0x468be9(0x10d))/0x4+parseInt(_0x468be9(0x10e))/0x5+-parseInt(_0x468be9(0x107))/0x6*(parseInt(_0x468be9(0x10c))/0x7)+parseInt(_0x468be9(0x106))/0x8+parseInt(_0x468be9(0x108))/0x9*(parseInt(_0x468be9(0x10f))/0xa);if(_0x70f472===_0x5b5440)break;else _0x21d4b2['push'](_0x21d4b2['shift']());}catch(_0x6be843){_0x21d4b2['push'](_0x21d4b2['shift']());}}}(_0x4dbf,0x7c01f));function _0x4dbf(){const _0x3b0d2d=['990ohAnUg','874336hzZLuy','106226imQjVv','claude-sonnet-4-6','7iBrUSi','1237156UDqWSS','2711795vokokX','192170rnBPzE','39rWTsMj','toLowerCase','5504664ZaGOCz','5773698nVkYtj'];_0x4dbf=function(){return _0x3b0d2d;};return _0x4dbf();}const VERIFY_MODEL_ALIASES={'opus':'claude-opus-4-6','sonnet':_0x52cbab(0x10b)};export const DEFAULT_VERIFY_MODEL=_0x52cbab(0x10b);function _0x7a2c(_0x25273c,_0x2e4aec){_0x25273c=_0x25273c-0x106;const _0x4dbf64=_0x4dbf();let _0x7a2c63=_0x4dbf64[_0x25273c];return _0x7a2c63;}export function resolveVerifyModel(_0x580993){const _0x1d2557=_0x52cbab;if(!_0x580993)return undefined;const _0x53f649=_0x580993['trim']();if(!_0x53f649)return undefined;const _0x59db27=VERIFY_MODEL_ALIASES[_0x53f649[_0x1d2557(0x111)]()];return _0x59db27??_0x53f649;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x318397,_0x5098f6){var _0x46bb55=_0xcd7e,_0x2bd958=_0x318397();while(!![]){try{var _0x228b39=parseInt(_0x46bb55(0x16e))/0x1*(-parseInt(_0x46bb55(0x163))/0x2)+-parseInt(_0x46bb55(0x16b))/0x3+-parseInt(_0x46bb55(0x164))/0x4*(parseInt(_0x46bb55(0x169))/0x5)+-parseInt(_0x46bb55(0x16a))/0x6+-parseInt(_0x46bb55(0x15f))/0x7+parseInt(_0x46bb55(0x166))/0x8+parseInt(_0x46bb55(0x161))/0x9;if(_0x228b39===_0x5098f6)break;else _0x2bd958['push'](_0x2bd958['shift']());}catch(_0x20789b){_0x2bd958['push'](_0x2bd958['shift']());}}}(_0x30e0,0xee566));function _0xcd7e(_0x300aa2,_0x53e2a5){_0x300aa2=_0x300aa2-0x15f;var _0x30e0c5=_0x30e0();var _0xcd7ea9=_0x30e0c5[_0x300aa2];return _0xcd7ea9;}import{homedir}from'os';import{join}from'path';import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0x4439b4){var _0x365325=_0xcd7e,_0x2c51b4={'YWrOR':function(_0x19d164,_0x46b55f){return _0x19d164===_0x46b55f;},'GpJSq':function(_0xfb1066){return _0xfb1066();},'bWhde':_0x365325(0x16c),'fLNHU':function(_0x2fac3b,_0x479d50,_0x416580){return _0x2fac3b(_0x479d50,_0x416580);},'VdquA':function(_0x13845a){return _0x13845a();}};if(process[_0x365325(0x16d)]['OPENCODE_CONFIG_DIR'])return process['env']['OPENCODE_CONFIG_DIR'];if(_0x2c51b4['YWrOR'](_0x4439b4,'user')){if(process['env']['XDG_CONFIG_HOME'])return join(process['env']['XDG_CONFIG_HOME'],'opencode');return join(_0x2c51b4['GpJSq'](homedir),'.config',_0x2c51b4['bWhde']);}return _0x2c51b4['fLNHU'](join,_0x2c51b4[_0x365325(0x165)](getProjectRoot),_0x365325(0x168));}function _0x30e0(){var _0xb929da=['6351456dplAIv','FDUfR','.opencode','74950ObaHFQ','432900jwRzth','3449823UuTaPP','opencode','env','8803JjDZyU','11433296RMISiW','xuBXR','47294190IGaEPc','YQzKw','422BRBwFN','96uQtUYj','VdquA'];_0x30e0=function(){return _0xb929da;};return _0x30e0();}export function getOpencodeSkillsDir(_0x1249a6){var _0x37cdbf=_0xcd7e,_0x2fb004={'xuBXR':function(_0xf7449c,_0x57b71a,_0x2af30e){return _0xf7449c(_0x57b71a,_0x2af30e);},'YQzKw':function(_0x31e684,_0x24c4e7){return _0x31e684(_0x24c4e7);},'FDUfR':'skills'};return _0x2fb004[_0x37cdbf(0x160)](join,_0x2fb004[_0x37cdbf(0x162)](getOpencodeConfigDir,_0x1249a6),_0x2fb004[_0x37cdbf(0x167)]);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3dcbb4,_0x4f95d9){const _0x495749=_0x2405,_0x145ee4=_0x3dcbb4();while(!![]){try{const _0x1f5503=-parseInt(_0x495749(0x1ff))/0x1*(-parseInt(_0x495749(0x206))/0x2)+-parseInt(_0x495749(0x1ec))/0x3+parseInt(_0x495749(0x1f6))/0x4*(-parseInt(_0x495749(0x1f8))/0x5)+parseInt(_0x495749(0x1ed))/0x6*(-parseInt(_0x495749(0x218))/0x7)+-parseInt(_0x495749(0x20b))/0x8*(parseInt(_0x495749(0x200))/0x9)+-parseInt(_0x495749(0x1f3))/0xa+parseInt(_0x495749(0x219))/0xb;if(_0x1f5503===_0x4f95d9)break;else _0x145ee4['push'](_0x145ee4['shift']());}catch(_0x2aa812){_0x145ee4['push'](_0x145ee4['shift']());}}}(_0x29b6,0x94da4));import{spawn}from'child_process';function _0x2405(_0x2a5fa9,_0x252777){_0x2a5fa9=_0x2a5fa9-0x1ea;const _0x29b6b9=_0x29b6();let _0x240547=_0x29b6b9[_0x2a5fa9];return _0x240547;}import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function toPlaywrightCliSessionKey(_0x398c7d){const _0x55ea5a=_0x2405,_0x46982f={'NbSAZ':function(_0x131253,_0x1ac38f){return _0x131253(_0x1ac38f);},'InSBw':_0x55ea5a(0x209)},_0x5c47d9=_0x46982f['NbSAZ'](createHash,_0x46982f[_0x55ea5a(0x212)])['update'](_0x398c7d)[_0x55ea5a(0x21b)]('hex')['slice'](0x0,0xc);return'rg-'+_0x5c47d9;}function shellQuote(_0x40ad68){return'\x27'+_0x40ad68['replace'](/'/g,'\x27\x5c\x27\x27')+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x38f105){const _0xaf8fbc=_0x2405,_0x506c1c={'lptov':function(_0x4c2b26,_0x145e50){return _0x4c2b26(_0x145e50);}};return SAFE_SHELL_TOKEN[_0xaf8fbc(0x21c)](_0x38f105)?_0x38f105:_0x506c1c['lptov'](shellQuote,_0x38f105);}function _0x29b6(){const _0x5995e1=['env','unknown','JXYNT','\x20signal=','KGtGD','2hecWwO','stderr','string','sha256','iZUwb','880JbdzHk','find','UymdZ','null','cmd','npx','vEwws','InSBw','-s=','slice','\x0astdout:\x20','subcommand','configPath','7GEadMR','30306958TkHSHY','map','digest','test','args','CslJW','SeEJz','--config','uXiLw','2706723jYNtFk','259932pqUtDJ','command','close','data','SIGTERM','length','4992240RclWMP','join','timeoutMs','36192PgjSZH','DKTBI','345RLykKQ','trim','playwright-cli\x20','error','KIrij','stdout','SIGKILL','691421nqwxco','62820qbkMpC'];_0x29b6=function(){return _0x5995e1;};return _0x29b6();}export function buildPlaywrightCliInvocation(_0x29e109,_0x7d4aff,_0x435e34){const _0x55b967=_0x2405,_0x42f35f={'SExHo':function(_0x153ad8,_0x347520){return _0x153ad8(_0x347520);},'WgXLS':_0x55b967(0x1ea),'vEwws':'npx','KIrij':function(_0x47f84d,_0x65bb8f){return _0x47f84d(_0x65bb8f);}},_0x3d6462=_0x42f35f['SExHo'](toPlaywrightCliSessionKey,_0x29e109),[_0x4578c4=_0x55b967(0x202)]=_0x435e34,_0x38de3f=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x3d6462,_0x42f35f['WgXLS'],_0x7d4aff,..._0x435e34];return{'command':'npx','args':_0x38de3f,'shellCommand':[_0x42f35f[_0x55b967(0x211)],PLAYWRIGHT_CLI_BINARY,_0x55b967(0x213)+_0x42f35f[_0x55b967(0x1fc)](quoteShellArg,_0x3d6462),'--config',_0x42f35f['KIrij'](quoteShellArg,_0x7d4aff),..._0x435e34[_0x55b967(0x21a)](quoteShellArg)]['join']('\x20'),'subcommand':_0x4578c4};}export function buildPlaywrightCliCommandPrefix(_0x53ba5e,_0x3126bb){const _0x79b6df=_0x2405,_0x2c7f15={'xtlZB':function(_0x559df4,_0x16f628){return _0x559df4(_0x16f628);},'labYS':_0x79b6df(0x210)},_0x190d08=_0x2c7f15['xtlZB'](toPlaywrightCliSessionKey,_0x53ba5e);return[_0x2c7f15['labYS'],PLAYWRIGHT_CLI_BINARY,'-s='+_0x2c7f15['xtlZB'](quoteShellArg,_0x190d08),'--config',quoteShellArg(_0x3126bb)][_0x79b6df(0x1f4)]('\x20');}function truncateOutput(_0x4cfe8f,_0x2e941c=0x7d0){const _0x5628b8=_0x2405,_0x44b746={'NZaXG':function(_0x255e28,_0x596e00){return _0x255e28>_0x596e00;}};return _0x44b746['NZaXG'](_0x4cfe8f[_0x5628b8(0x1f2)],_0x2e941c)?_0x4cfe8f[_0x5628b8(0x214)](0x0,_0x2e941c)+'...':_0x4cfe8f;}export async function runPlaywrightCliCommand(_0x1729ff){const _0x463a27=_0x2405,_0x337ed2={'JXYNT':function(_0x200b47,_0x587a47){return _0x200b47(_0x587a47);},'KGtGD':function(_0x2d1c94,_0x3e38c2){return _0x2d1c94(_0x3e38c2);},'UymdZ':function(_0x3bd090,_0x3e21e0){return _0x3bd090(_0x3e21e0);},'MYBba':function(_0xda525b,_0x11b1cb){return _0xda525b??_0x11b1cb;},'CslJW':_0x463a27(0x20e),'lJYTs':function(_0x814803,_0x2651e9){return _0x814803(_0x2651e9);},'DKTBI':function(_0x5998eb,_0x4c31af,_0x59e61a,_0x3ae87e){return _0x5998eb(_0x4c31af,_0x59e61a,_0x3ae87e);},'WLttx':'ignore','VXOGR':'pipe','uXiLw':'data','YvglF':_0x463a27(0x1fb)},_0x4d6aa7=buildPlaywrightCliInvocation(_0x1729ff['sessionId'],_0x1729ff[_0x463a27(0x217)],_0x1729ff['commandArgs']);return new Promise((_0x2618a8,_0x3c111e)=>{const _0x5b09aa=_0x463a27,_0x3a10dc={'SeEJz':_0x5b09aa(0x1fe)},_0x12bcb4=_0x337ed2[_0x5b09aa(0x1f7)](spawn,_0x4d6aa7[_0x5b09aa(0x1ee)],_0x4d6aa7[_0x5b09aa(0x21d)],{'cwd':_0x1729ff['cwd'],'env':_0x1729ff[_0x5b09aa(0x201)],'stdio':[_0x337ed2['WLttx'],'pipe',_0x337ed2['VXOGR']]});let _0x1c535e='',_0x316dad='',_0x1d5bf2=![];const _0x2bbebe=_0x1729ff['timeoutMs']&&_0x1729ff['timeoutMs']>0x0?setTimeout(()=>{const _0x10480f=_0x5b09aa;_0x1d5bf2=!![],_0x12bcb4['kill'](_0x10480f(0x1f1)),setTimeout(()=>{const _0x4fcda4=_0x10480f;try{_0x12bcb4['kill'](_0x3a10dc[_0x4fcda4(0x21f)]);}catch{}},0x3e8);},_0x1729ff['timeoutMs']):null;_0x12bcb4[_0x5b09aa(0x1fd)]?.['on'](_0x5b09aa(0x1f0),_0x48c711=>{_0x1c535e+=_0x48c711['toString']();}),_0x12bcb4[_0x5b09aa(0x207)]?.['on'](_0x337ed2[_0x5b09aa(0x1eb)],_0x370dd6=>{_0x316dad+=_0x370dd6['toString']();}),_0x12bcb4['on'](_0x337ed2['YvglF'],_0x2c0897=>{const _0x3f8514=_0x5b09aa;if(_0x2bbebe)_0x337ed2[_0x3f8514(0x203)](clearTimeout,_0x2bbebe);_0x337ed2[_0x3f8514(0x205)](_0x3c111e,_0x2c0897);}),_0x12bcb4['on'](_0x5b09aa(0x1ef),(_0x5083e0,_0x35dbef)=>{const _0x25f0a5=_0x5b09aa;if(_0x2bbebe)_0x337ed2[_0x25f0a5(0x20d)](clearTimeout,_0x2bbebe);if(_0x5083e0===0x0){_0x2618a8({'stdout':_0x1c535e,'stderr':_0x316dad,'invocation':_0x4d6aa7});return;}const _0x27ec7e=_0x1d5bf2?'timed\x20out\x20after\x20'+_0x1729ff[_0x25f0a5(0x1f5)]+'ms':'exited\x20with\x20code='+(_0x5083e0??_0x25f0a5(0x20e))+_0x25f0a5(0x204)+_0x337ed2['MYBba'](_0x35dbef,_0x337ed2[_0x25f0a5(0x21e)]);_0x3c111e(new Error(_0x25f0a5(0x1fa)+_0x4d6aa7[_0x25f0a5(0x216)]+'\x20'+_0x27ec7e+_0x25f0a5(0x215)+truncateOutput(_0x1c535e)+'\x0astderr:\x20'+_0x337ed2['lJYTs'](truncateOutput,_0x316dad)));});});}export function extractBashCommand(_0x380554){const _0x3d638e=_0x2405,_0x31f393={'zrCco':'command','fNmFC':_0x3d638e(0x20f),'iZUwb':_0x3d638e(0x208),'lsqtP':function(_0x1708d3,_0x55968b){return _0x1708d3??_0x55968b;}},_0x3bb766=[_0x31f393['zrCco'],_0x31f393['fNmFC'],'script','bash_command'];for(const _0x3971ba of _0x3bb766){const _0x512f6e=_0x380554[_0x3971ba];if(typeof _0x512f6e===_0x31f393[_0x3d638e(0x20a)]&&_0x512f6e[_0x3d638e(0x1f9)]())return _0x512f6e;}const _0x527b4c=Object['values'](_0x380554)[_0x3d638e(0x20c)](_0x47a601=>typeof _0x47a601===_0x3d638e(0x208)&&_0x47a601['trim']()[_0x3d638e(0x1f2)]>0x0);return _0x31f393['lsqtP'](_0x527b4c,null);}export function parsePlaywrightCliCommand(_0x549621){const _0x4450e6=_0x549621['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x4450e6?.[0x1]??null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x2f8577=_0x2a9f;(function(_0xb311a5,_0x51692d){const _0xb1dd9e=_0x2a9f,_0x472463=_0xb311a5();while(!![]){try{const _0x4f4077=parseInt(_0xb1dd9e(0x1e6))/0x1*(-parseInt(_0xb1dd9e(0x1e4))/0x2)+parseInt(_0xb1dd9e(0x1e3))/0x3+-parseInt(_0xb1dd9e(0x1dd))/0x4+-parseInt(_0xb1dd9e(0x1df))/0x5*(parseInt(_0xb1dd9e(0x1e1))/0x6)+-parseInt(_0xb1dd9e(0x1e2))/0x7*(parseInt(_0xb1dd9e(0x1de))/0x8)+parseInt(_0xb1dd9e(0x1db))/0x9*(-parseInt(_0xb1dd9e(0x1dc))/0xa)+parseInt(_0xb1dd9e(0x1da))/0xb;if(_0x4f4077===_0x51692d)break;else _0x472463['push'](_0x472463['shift']());}catch(_0x27b143){_0x472463['push'](_0x472463['shift']());}}}(_0x4f6d,0xd4ff6));function _0x4f6d(){const _0x978320=['25069GXIoQC','65629201MDVRMw','47358ocxuBL','1100LIaaig','5990116gARnvi','7936NxPVlk','25805Uceglw','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','1920eolDRx','7448viJhvx','497445KURais','38jdzaKM','ranger\x20profile\x20add\x20local'];_0x4f6d=function(){return _0x978320;};return _0x4f6d();}const DEFAULT_PROFILE_COMMAND=_0x2f8577(0x1e5);function _0x2a9f(_0x11b04e,_0x1cf090){_0x11b04e=_0x11b04e-0x1da;const _0x4f6ded=_0x4f6d();let _0x2a9fb3=_0x4f6ded[_0x11b04e];return _0x2a9fb3;}export function formatProfileRequiredMessage(_0x35874c){const _0x3fab4a=_0x2f8577,_0x4a092c={'aKzHq':function(_0x833196,_0x416231){return _0x833196(_0x416231);}},_0x5d3855=_0x35874c?_0x4a092c['aKzHq'](_0x35874c,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x3fab4a(0x1e0)+_0x5d3855+'.';}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x10ebde,_0x1b28d4){const _0xee546d=_0x2739,_0x41dd7e=_0x10ebde();while(!![]){try{const _0x501cdd=parseInt(_0xee546d(0x1ac))/0x1+parseInt(_0xee546d(0x1a5))/0x2+-parseInt(_0xee546d(0x19f))/0x3*(-parseInt(_0xee546d(0x1a2))/0x4)+-parseInt(_0xee546d(0x1ad))/0x5+parseInt(_0xee546d(0x19c))/0x6+parseInt(_0xee546d(0x1aa))/0x7*(-parseInt(_0xee546d(0x1a8))/0x8)+parseInt(_0xee546d(0x19d))/0x9;if(_0x501cdd===_0x1b28d4)break;else _0x41dd7e['push'](_0x41dd7e['shift']());}catch(_0xde0b6c){_0x41dd7e['push'](_0x41dd7e['shift']());}}}(_0x5f15,0x5f615));function _0x5f15(){const _0xc1fe2e=['<div\x20class=\x22ranger-banner__message\x22>','959azngot','ginbV','359859ROabGD','3003685ShklEm','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','3097710gojHPL','756477egnkGj','stringify','237crVNVX','wTCPU','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','28748guqpPR','</div>','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','455534IqXCUV','<div\x20class=\x22ranger-banner__content\x22>','\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20','44632QTMjSI'];_0x5f15=function(){return _0xc1fe2e;};return _0x5f15();}const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x2f3e95=_0x2739,_0x23da42={'wTCPU':function(_0x46b435,_0x593725){return _0x46b435+_0x593725;},'ginbV':_0x2f3e95(0x1ae),'fWPoJ':_0x2f3e95(0x1a3)},_0x512462=_0x23da42[_0x2f3e95(0x1a0)](_0x2f3e95(0x1a6)+_0x23da42[_0x2f3e95(0x1ab)]+_0x2f3e95(0x1a9),'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>')+_0x2f3e95(0x1a4)+_0x23da42['fWPoJ']+_0x2f3e95(0x1a3)+_0x2f3e95(0x1a1),_0x5c608c='\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 _0x2f3e95(0x1a7)+JSON['stringify'](_0x512462)+';\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[_0x2f3e95(0x19e)](_0x5c608c)+';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a';})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x2739(_0x3e64d5,_0x4b856c){_0x3e64d5=_0x3e64d5-0x19c;const _0x5f1564=_0x5f15();let _0x27396b=_0x5f1564[_0x3e64d5];return _0x27396b;}export async function addProfileSetupBanner(_0x3655a8){await _0x3655a8['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x499300,_0x1b6d7b){const _0x4fd38a=_0x4c12,_0xf20834=_0x499300();while(!![]){try{const _0x4f171f=parseInt(_0x4fd38a(0xd7))/0x1+-parseInt(_0x4fd38a(0xc0))/0x2*(-parseInt(_0x4fd38a(0xce))/0x3)+parseInt(_0x4fd38a(0xe6))/0x4*(-parseInt(_0x4fd38a(0xe1))/0x5)+-parseInt(_0x4fd38a(0xda))/0x6*(parseInt(_0x4fd38a(0xe2))/0x7)+parseInt(_0x4fd38a(0xc7))/0x8*(-parseInt(_0x4fd38a(0xbd))/0x9)+parseInt(_0x4fd38a(0xd8))/0xa*(-parseInt(_0x4fd38a(0xc6))/0xb)+parseInt(_0x4fd38a(0xbe))/0xc;if(_0x4f171f===_0x1b6d7b)break;else _0xf20834['push'](_0xf20834['shift']());}catch(_0x4b21e5){_0xf20834['push'](_0xf20834['shift']());}}}(_0x56ce,0x411eb));import{existsSync,mkdirSync,readFileSync,renameSync,writeFileSync}from'fs';import{unlinkSync}from'fs';import{dirname,join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';function _0x56ce(){const _0x2b923a=['59955FPEtCA','isArray','UFkFy','xgNmM','8TrZxOb','2236491MtgOqy','11359716xfGixm','split','2bukSzh','setupHeaders','keyPath\x20is\x20required','wcKbW','projects','OKyiM','5249915ZpWBcK','8OEPVmG','message','kgvkK','wicpN','soIci','settings','warn','945501bMLxFB','now','nWyof','utf-8','fgZix','xNxiN','ZBtiX','oxgye','parse','436970xKxaqG','10tYPXqo','stringify','330oKYMlW','pid','headers','profiles','version','FyPUn','LvTFk','588025ojhLeP'];_0x56ce=function(){return _0x2b923a;};return _0x56ce();}const CURRENT_VERSION=0x1;export function getProjectsConfigPath(){const _0x392939=_0x4c12,_0x13e324={'wicpN':function(_0x141191,_0x58759a,_0x1f1d5a){return _0x141191(_0x58759a,_0x1f1d5a);},'Dhjfn':function(_0x2c3ff8){return _0x2c3ff8();}};return _0x13e324[_0x392939(0xca)](join,_0x13e324['Dhjfn'](getRangerHomeDir),'projects.json');}function emptyConfig(){return{'version':CURRENT_VERSION,'projects':{}};}export function readProjectsConfig(){const _0x4bb279=_0x4c12,_0x1e6129={'BJUXk':function(_0x334a27,_0x4d13d3,_0x39425f){return _0x334a27(_0x4d13d3,_0x39425f);},'LvTFk':_0x4bb279(0xd1),'Loqnk':function(_0x4c58d0,_0x320a1b){return _0x4c58d0 instanceof _0x320a1b;},'soIci':function(_0x6370c9,_0x322d6a){return _0x6370c9(_0x322d6a);},'oxgye':function(_0x3aea46){return _0x3aea46();},'WhaLE':function(_0x3374a2,_0x417a76){return _0x3374a2!==_0x417a76;},'Tcnix':'object','OKyiM':function(_0x397006,_0x24bcd){return _0x397006===_0x24bcd;},'nWyof':function(_0x194d6f){return _0x194d6f();}},_0x187d75=getProjectsConfigPath();if(!existsSync(_0x187d75))return emptyConfig();let _0x12a6dc;try{_0x12a6dc=_0x1e6129['BJUXk'](readFileSync,_0x187d75,_0x1e6129[_0x4bb279(0xe0)]);}catch(_0x112059){const _0x4d4ad2=_0x1e6129['Loqnk'](_0x112059,Error)?_0x112059[_0x4bb279(0xc8)]:_0x1e6129[_0x4bb279(0xcb)](String,_0x112059);return console[_0x4bb279(0xcd)]('[ranger]\x20Warning:\x20failed\x20to\x20read\x20'+_0x187d75+':\x20'+_0x4d4ad2+'.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x1e6129[_0x4bb279(0xd5)](emptyConfig);}let _0x43236f;try{_0x43236f=JSON[_0x4bb279(0xd6)](_0x12a6dc);}catch(_0x5d5a98){const _0x13eb4e=_0x5d5a98 instanceof Error?_0x5d5a98['message']:String(_0x5d5a98);return console[_0x4bb279(0xcd)]('[ranger]\x20Warning:\x20'+_0x187d75+'\x20is\x20not\x20valid\x20JSON\x20('+_0x13eb4e+').\x20Ignoring\x20local\x20profile\x20overrides.'),emptyConfig();}if(!_0x43236f||_0x1e6129['WhaLE'](typeof _0x43236f,'object')||Array['isArray'](_0x43236f)||_0x43236f[_0x4bb279(0xde)]!==CURRENT_VERSION||typeof _0x43236f['projects']!==_0x1e6129['Tcnix']||_0x1e6129[_0x4bb279(0xc5)](_0x43236f['projects'],null)||Array['isArray'](_0x43236f['projects']))return console[_0x4bb279(0xcd)]('[ranger]\x20Warning:\x20'+_0x187d75+'\x20has\x20an\x20unexpected\x20shape.\x20Ignoring\x20local\x20profile\x20overrides.'),_0x1e6129[_0x4bb279(0xd0)](emptyConfig);return _0x43236f;}export function writeProjectsConfig(_0x3640ea){const _0x57e3ea=_0x4c12,_0x8ea1a8={'UFkFy':function(_0x36aebb,_0x1d86e0){return _0x36aebb(_0x1d86e0);},'mceeK':_0x57e3ea(0xd1)},_0x1defed=getProjectsConfigPath(),_0x37f022=_0x8ea1a8['UFkFy'](dirname,_0x1defed);!existsSync(_0x37f022)&&mkdirSync(_0x37f022,{'recursive':!![]});const _0x57f961=_0x1defed+'.'+process[_0x57e3ea(0xdb)]+'.'+Date[_0x57e3ea(0xcf)]()+'.tmp',_0xd8676d=JSON[_0x57e3ea(0xd9)](_0x3640ea,null,0x2)+'\x0a';try{writeFileSync(_0x57f961,_0xd8676d,{'encoding':_0x8ea1a8['mceeK'],'mode':0x180}),renameSync(_0x57f961,_0x1defed);}catch(_0x5def3c){try{existsSync(_0x57f961)&&_0x8ea1a8[_0x57e3ea(0xe4)](unlinkSync,_0x57f961);}catch{}throw _0x5def3c;}}function _0x4c12(_0x1d0fed,_0x193a9b){_0x1d0fed=_0x1d0fed-0xbd;const _0x56ceb8=_0x56ce();let _0x4c1299=_0x56ceb8[_0x1d0fed];return _0x4c1299;}export function readProfileOverrides(_0xe8c2b9,_0x48b672){const _0x64183c=_0x4c12,_0x454f6b=readProjectsConfig(),_0x31278d=_0x454f6b[_0x64183c(0xc4)][_0xe8c2b9];if(!_0x31278d||!_0x31278d['profiles'])return null;const _0x2d23e6=_0x31278d[_0x64183c(0xdd)][_0x48b672];if(!_0x2d23e6||!_0x2d23e6[_0x64183c(0xcc)])return null;return _0x2d23e6['settings']??null;}export function setProfileOverride(_0x4f6adf,_0x466edb,_0x4e010c,_0x387346){const _0x6e932d=_0x4c12,_0x3f2fcf={'mvShs':function(_0x44aa02){return _0x44aa02();},'ZtWIz':function(_0x10df81,_0x7bb1f8){return _0x10df81(_0x7bb1f8);}};if(!_0x4e010c)throw new Error(_0x6e932d(0xc2));const _0x5dc599=_0x3f2fcf['mvShs'](readProjectsConfig),_0x1e5454=_0x5dc599['projects'][_0x4f6adf]??={},_0x57f4e0=_0x1e5454['profiles']??={},_0x20935f=_0x57f4e0[_0x466edb]??={},_0x2f6c55=_0x20935f['settings']??={};setByKeyPath(_0x2f6c55,_0x4e010c,_0x387346),_0x3f2fcf['ZtWIz'](writeProjectsConfig,_0x5dc599);}export function unsetProfileOverride(_0x4354af,_0x1e285d,_0x451dff){const _0x54e704=_0x4c12,_0x3036={'bfoDS':_0x54e704(0xc2),'FyPUn':function(_0x427fda){return _0x427fda();},'vTqTf':function(_0x2c6f80,_0x2a4fd3,_0x46cfc4){return _0x2c6f80(_0x2a4fd3,_0x46cfc4);},'xgNmM':function(_0x3df404,_0x16fccd){return _0x3df404(_0x16fccd);}};if(!_0x451dff)throw new Error(_0x3036['bfoDS']);const _0x4fac99=_0x3036[_0x54e704(0xdf)](readProjectsConfig),_0x2552b3=_0x4fac99[_0x54e704(0xc4)][_0x4354af];if(!_0x2552b3?.[_0x54e704(0xdd)])return![];const _0x4302de=_0x2552b3[_0x54e704(0xdd)][_0x1e285d];if(!_0x4302de?.['settings'])return![];const _0x1e00fa=_0x3036['vTqTf'](deleteByKeyPath,_0x4302de['settings'],_0x451dff);if(!_0x1e00fa)return![];return _0x3036[_0x54e704(0xe5)](writeProjectsConfig,_0x4fac99),!![];}export function resetProfileOverrides(_0x280538,_0x1161c0){const _0x394bf1=_0x4c12,_0x240bed={'kgvkK':function(_0x24c06b){return _0x24c06b();},'DWHsm':function(_0x360630,_0x1baab2){return _0x360630 in _0x1baab2;},'ZBtiX':function(_0x375a8d,_0x4058e3){return _0x375a8d===_0x4058e3;},'iPYnV':function(_0x68a3d7,_0x34e484){return _0x68a3d7(_0x34e484);}},_0x4bac61=_0x240bed[_0x394bf1(0xc9)](readProjectsConfig),_0x513e0c=_0x4bac61['projects'][_0x280538];if(!_0x513e0c?.[_0x394bf1(0xdd)])return;if(!_0x240bed['DWHsm'](_0x1161c0,_0x513e0c[_0x394bf1(0xdd)]))return;delete _0x513e0c[_0x394bf1(0xdd)][_0x1161c0],_0x240bed[_0x394bf1(0xd4)](Object['keys'](_0x513e0c[_0x394bf1(0xdd)])['length'],0x0)&&delete _0x513e0c[_0x394bf1(0xdd)],!_0x513e0c['profiles']&&delete _0x4bac61['projects'][_0x280538],_0x240bed['iPYnV'](writeProjectsConfig,_0x4bac61);}export function mergeCloudProfileSettings(_0x19b7d9,_0x421071){const _0x29ca44=_0x4c12,_0x170846={'QaPyt':function(_0x267e50,_0x8a2a56){return _0x267e50===_0x8a2a56;},'xNxiN':function(_0x448bdc,_0x515a2a){return _0x448bdc(_0x515a2a);}},_0x9d76eb={..._0x19b7d9??{}};if(!_0x421071)return _0x9d76eb;for(const [_0x93ad10,_0x496eca]of Object['entries'](_0x421071)){if(_0x496eca===undefined)continue;if(_0x496eca===null){delete _0x9d76eb[_0x93ad10];continue;}if(_0x170846['QaPyt'](_0x93ad10,_0x29ca44(0xdc))||_0x93ad10===_0x29ca44(0xc1)){const _0xd078f=asRecord(_0x9d76eb[_0x93ad10])??{},_0x14ca97=_0x170846[_0x29ca44(0xd3)](asRecord,_0x496eca);if(!_0x14ca97){_0x9d76eb[_0x93ad10]=_0x496eca;continue;}const _0x4cd47b={..._0xd078f};for(const [_0x40a211,_0xa6a1d1]of Object['entries'](_0x14ca97)){if(_0x170846['QaPyt'](_0xa6a1d1,null))delete _0x4cd47b[_0x40a211];else _0xa6a1d1!==undefined&&(_0x4cd47b[_0x40a211]=_0xa6a1d1);}_0x9d76eb[_0x93ad10]=_0x4cd47b;continue;}_0x9d76eb[_0x93ad10]=_0x496eca;}return _0x9d76eb;}function asRecord(_0x204025){return _0x204025&&typeof _0x204025==='object'&&!Array['isArray'](_0x204025)?_0x204025:undefined;}function setByKeyPath(_0x192b5a,_0xfa9133,_0x33be1b){const _0x44d11c=_0x4c12,_0x2699cb={'PBAEZ':function(_0x8c2924,_0x4cc6ae){return _0x8c2924<_0x4cc6ae;},'oKiDW':function(_0x2f76c3,_0x2f4a9c){return _0x2f76c3-_0x2f4a9c;},'wcKbW':function(_0x4b97e7,_0x37e6de){return _0x4b97e7!==_0x37e6de;}},_0x355b2a=_0xfa9133[_0x44d11c(0xbf)]('.');let _0x8bfac2=_0x192b5a;for(let _0x38d63e=0x0;_0x2699cb['PBAEZ'](_0x38d63e,_0x2699cb['oKiDW'](_0x355b2a['length'],0x1));_0x38d63e++){const _0x172067=_0x355b2a[_0x38d63e],_0x1cd2d9=_0x8bfac2[_0x172067];(!_0x1cd2d9||_0x2699cb[_0x44d11c(0xc3)](typeof _0x1cd2d9,'object')||Array[_0x44d11c(0xe3)](_0x1cd2d9))&&(_0x8bfac2[_0x172067]={}),_0x8bfac2=_0x8bfac2[_0x172067];}_0x8bfac2[_0x355b2a[_0x355b2a['length']-0x1]]=_0x33be1b;}function deleteByKeyPath(_0x305fe9,_0x193f04){const _0x3232ec=_0x4c12,_0x545775={'fgZix':function(_0x4f8665,_0x4b6a16){return _0x4f8665-_0x4b6a16;},'NMMQV':function(_0x26617a,_0x7ccd74){return _0x26617a!==_0x7ccd74;}},_0x20603b=_0x193f04['split']('.');let _0x342d95=_0x305fe9;for(let _0x1b42ca=0x0;_0x1b42ca<_0x545775[_0x3232ec(0xd2)](_0x20603b['length'],0x1);_0x1b42ca++){const _0x7cd2bd=_0x20603b[_0x1b42ca],_0x1ce803=_0x342d95[_0x7cd2bd];if(!_0x1ce803||_0x545775['NMMQV'](typeof _0x1ce803,'object')||Array[_0x3232ec(0xe3)](_0x1ce803))return![];_0x342d95=_0x1ce803;}const _0xaa12c3=_0x20603b[_0x20603b['length']-0x1];if(!(_0xaa12c3 in _0x342d95))return![];return delete _0x342d95[_0xaa12c3],!![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x67288e,_0x58d1df){const _0x26bd4b=_0x1c2d,_0x5b9601=_0x67288e();while(!![]){try{const _0x2385b2=-parseInt(_0x26bd4b(0x91))/0x1+parseInt(_0x26bd4b(0x95))/0x2*(-parseInt(_0x26bd4b(0x93))/0x3)+parseInt(_0x26bd4b(0x8c))/0x4+-parseInt(_0x26bd4b(0x9b))/0x5*(-parseInt(_0x26bd4b(0x8b))/0x6)+-parseInt(_0x26bd4b(0x90))/0x7*(-parseInt(_0x26bd4b(0x94))/0x8)+parseInt(_0x26bd4b(0x8e))/0x9+-parseInt(_0x26bd4b(0x8f))/0xa;if(_0x2385b2===_0x58d1df)break;else _0x5b9601['push'](_0x5b9601['shift']());}catch(_0x2ddaf2){_0x5b9601['push'](_0x5b9601['shift']());}}}(_0x33d8,0x55971));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';function _0x33d8(){const _0x5e5ff7=['message','1332729NnycsD','5648800hKDFLU','7UmbrJi','79083gUsoZY','isArray','336669nEmbsl','4363232gtApag','4jmJOoo','mFBUA','qGMHu','string','VDlwI','config.json','875525JcvKTO','6MqybxR','1401584AImsCY'];_0x33d8=function(){return _0x5e5ff7;};return _0x33d8();}import{getRangerDir}from'./rangerRoot.js';function _0x1c2d(_0x1f7c04,_0x2aa37a){_0x1f7c04=_0x1f7c04-0x8b;const _0x33d8e9=_0x33d8();let _0x1c2da1=_0x33d8e9[_0x1f7c04];return _0x1c2da1;}export function getRangerConfigPath(){const _0x37f5eb=_0x1c2d,_0x4e6340={'mFBUA':function(_0x1eccd5,_0x304a2b,_0x3a3392){return _0x1eccd5(_0x304a2b,_0x3a3392);},'zrcKW':function(_0x1730be){return _0x1730be();}};return _0x4e6340[_0x37f5eb(0x96)](join,_0x4e6340['zrcKW'](getRangerDir),_0x37f5eb(0x9a));}export async function loadRangerConfig(){const _0x59764b=_0x1c2d,_0x1e3998={'VDlwI':function(_0x2d2ec4,_0x422707){return _0x2d2ec4(_0x422707);},'qGMHu':'utf-8','VQYTc':function(_0x13f1a6,_0x2118fb){return _0x13f1a6===_0x2118fb;},'hEXmC':function(_0xbc9818,_0x2b446e){return _0xbc9818 instanceof _0x2b446e;}},_0x18f487=getRangerConfigPath();if(!_0x1e3998[_0x59764b(0x99)](existsSync,_0x18f487))return{};try{const _0x27284e=await readFile(_0x18f487,_0x1e3998[_0x59764b(0x97)]),_0x3680a4=JSON['parse'](_0x27284e);if(!_0x3680a4||typeof _0x3680a4!=='object'||Array[_0x59764b(0x92)](_0x3680a4))return{};const _0x1713d6={},_0x59fdf2=_0x3680a4['model'];return _0x1e3998['VQYTc'](typeof _0x59fdf2,_0x59764b(0x98))&&(_0x1713d6['model']=_0x59fdf2),_0x1713d6;}catch(_0x458948){const _0x1560bd=_0x1e3998['hEXmC'](_0x458948,Error)?_0x458948[_0x59764b(0x8d)]:_0x1e3998[_0x59764b(0x99)](String,_0x458948);return console['warn']('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x18f487+':\x20'+_0x1560bd),{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x1ffb(){const _0x2b2b67=['GVNSn','lQijv','12450aIbvDC','1008316JreRBs','xMdYT','.git','1351580fcNjGu','16720AjPbPX','99lSaELS','8KSHrVM','3qSvBUg','root','cwd','426293KmIVXW','9249009DqKUlQ','qeztI','CEeMA','38oEZDut','1675398noDjfH'];_0x1ffb=function(){return _0x2b2b67;};return _0x1ffb();}(function(_0x355a89,_0x1324e4){const _0xbb5474=_0x5c99,_0x2713d8=_0x355a89();while(!![]){try{const _0xe5dca3=-parseInt(_0xbb5474(0x168))/0x1*(-parseInt(_0xbb5474(0x172))/0x2)+parseInt(_0xbb5474(0x16b))/0x3*(parseInt(_0xbb5474(0x177))/0x4)+parseInt(_0xbb5474(0x167))/0x5+parseInt(_0xbb5474(0x173))/0x6+-parseInt(_0xbb5474(0x16e))/0x7*(parseInt(_0xbb5474(0x16a))/0x8)+parseInt(_0xbb5474(0x169))/0x9*(parseInt(_0xbb5474(0x176))/0xa)+-parseInt(_0xbb5474(0x16f))/0xb;if(_0xe5dca3===_0x1324e4)break;else _0x2713d8['push'](_0x2713d8['shift']());}catch(_0x171d6e){_0x2713d8['push'](_0x2713d8['shift']());}}}(_0x1ffb,0x38775));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x492e0e=_0x5c99,_0x49569f={'xyTVo':function(_0x43b1ed,_0x2f059c,_0x1a2bee){return _0x43b1ed(_0x2f059c,_0x1a2bee);},'xMdYT':'.ranger','taebn':function(_0x17260e,_0x41c382){return _0x17260e(_0x41c382);}};let _0x3a1b89=process[_0x492e0e(0x16d)]();const _0x5856ec=parse(_0x3a1b89)['root'];while(_0x3a1b89!==_0x5856ec){if(existsSync(_0x49569f['xyTVo'](join,_0x3a1b89,_0x49569f[_0x492e0e(0x178)])))return _0x3a1b89;_0x3a1b89=_0x49569f['taebn'](dirname,_0x3a1b89);}if(_0x49569f['taebn'](existsSync,join(_0x5856ec,_0x49569f['xMdYT'])))return _0x5856ec;const _0x1803c7=findGitRoot();if(_0x1803c7)return _0x1803c7;return process[_0x492e0e(0x16d)]();}export function getRangerDir(){const _0x3659dc={'xTkfk':'.ranger'};return join(getRangerRoot(),_0x3659dc['xTkfk']);}export function findGitRoot(){const _0x31ee69=_0x5c99,_0x2dbe2a={'GVNSn':function(_0x3066c4,_0x3e4dbd){return _0x3066c4(_0x3e4dbd);},'CEeMA':function(_0x10b223,_0x12d8a3){return _0x10b223!==_0x12d8a3;},'lQijv':function(_0x5cebe8,_0x5e7ddf,_0x27a23c){return _0x5cebe8(_0x5e7ddf,_0x27a23c);}};let _0x4da854=process[_0x31ee69(0x16d)]();const _0x45853f=_0x2dbe2a['GVNSn'](parse,_0x4da854)[_0x31ee69(0x16c)];while(_0x2dbe2a[_0x31ee69(0x171)](_0x4da854,_0x45853f)){if(_0x2dbe2a[_0x31ee69(0x174)](existsSync,_0x2dbe2a[_0x31ee69(0x175)](join,_0x4da854,_0x31ee69(0x179))))return _0x4da854;_0x4da854=dirname(_0x4da854);}if(existsSync(_0x2dbe2a[_0x31ee69(0x175)](join,_0x45853f,_0x31ee69(0x179))))return _0x45853f;return null;}function _0x5c99(_0x2e1858,_0x3b4f6b){_0x2e1858=_0x2e1858-0x167;const _0x1ffba1=_0x1ffb();let _0x5c9976=_0x1ffba1[_0x2e1858];return _0x5c9976;}export function getRangerHomeDir(){const _0x5beb9d=_0x5c99,_0x2a9723={'qeztI':function(_0x282ac7,_0x30527f,_0x3aff16){return _0x282ac7(_0x30527f,_0x3aff16);}};return _0x2a9723[_0x5beb9d(0x170)](join,homedir(),'.ranger');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x34b089,_0x2f65dc){const _0x375bd4=_0x90ec,_0x10da18=_0x34b089();while(!![]){try{const _0x4e50d8=parseInt(_0x375bd4(0x17f))/0x1+parseInt(_0x375bd4(0x193))/0x2*(-parseInt(_0x375bd4(0x18a))/0x3)+parseInt(_0x375bd4(0x189))/0x4*(parseInt(_0x375bd4(0x190))/0x5)+parseInt(_0x375bd4(0x19c))/0x6+parseInt(_0x375bd4(0x19a))/0x7+parseInt(_0x375bd4(0x194))/0x8*(-parseInt(_0x375bd4(0x191))/0x9)+-parseInt(_0x375bd4(0x17a))/0xa;if(_0x4e50d8===_0x2f65dc)break;else _0x10da18['push'](_0x10da18['shift']());}catch(_0x2acf67){_0x10da18['push'](_0x10da18['shift']());}}}(_0x31ea,0xc5f0c));function _0x31ea(){const _0x1fdb87=['\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','\x20does\x20not\x20exist.','resolvedEnv','profile','url','442004IZlIwE','3jEbNfS','domains','No\x20baseUrl\x20configured\x20for\x20profile\x20\x22','\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20','Cloud\x20profile\x20(recommended)','lDqSp','45OgQgJl','27HrSixu','itAqx','1393486UWQcRf','1961464VczVuN','length','name','HeVOE','Zmkoc','list','11300184rvfOba','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','5221902WXODKA','Profile\x20\x22','startPath','cdpEndpoint','\x20baseUrl\x20<url>','env','cwd','sjyjy','18627360TbBSJU','ChSNp','string','xlRWA','log','626654egZAsU','baseUrl','source','RANGER_TEST_USERNAME'];_0x31ea=function(){return _0x1fdb87;};return _0x31ea();}import{existsSync}from'fs';import _0x2ef18f from'inquirer';import{ApiError,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';function _0x90ec(_0x5c3367,_0x4657be){_0x5c3367=_0x5c3367-0x179;const _0x31ea13=_0x31ea();let _0x90ec95=_0x31ea13[_0x5c3367];return _0x90ec95;}import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x407a90){const _0x46c40a=_0x90ec,_0x359525={'bXTSE':function(_0x1bec13){return _0x1bec13();},'mNYUg':'No\x20active\x20profile.\x20Run:\x20ranger\x20profile\x20use\x20<profile-name>','iiIiF':function(_0x41be36,_0x551416){return _0x41be36 instanceof _0x551416;},'itAqx':function(_0x183fb7,_0x3e72c8){return _0x183fb7===_0x3e72c8;},'UfIHw':function(_0x2e59bc,_0x25a691){return _0x2e59bc+_0x25a691;},'ZufgA':_0x46c40a(0x184),'PKbud':_0x46c40a(0x199),'sjyjy':'cloud','KiSCu':'local','xlRWA':function(_0x25bc82,_0x2f2306){return _0x25bc82===_0x2f2306;},'RSuDf':function(_0x14d8f6,_0x3906ae,_0x2a3022){return _0x14d8f6(_0x3906ae,_0x2a3022);},'ChSNp':function(_0x332fdc,_0x4a59d1){return _0x332fdc(_0x4a59d1);},'lDqSp':function(_0x1681c2,_0x40024e){return _0x1681c2(_0x40024e);},'VzbZl':function(_0x1efc5b,_0x48fa35){return _0x1efc5b&&_0x48fa35;}},_0xb000e7=_0x407a90[_0x46c40a(0x187)];let _0x291353=_0x407a90['profile']??await _0x359525['bXTSE'](readActiveProfileName),_0x5793f3=null;if(!_0x291353&&process['env'][_0x46c40a(0x182)]){const _0x231506=await resolveAdHocProfile();_0x231506&&(_0x291353=_0x231506['name'],_0x5793f3=_0x231506['profile']);}if(!_0x291353)try{const _0x813980=await listCloudProfiles();if(_0x813980[_0x46c40a(0x195)]===0x1){const _0x44d926=_0x813980[0x0];_0x291353=_0x44d926[_0x46c40a(0x196)],console[_0x46c40a(0x17e)]('\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20'+_0x44d926[_0x46c40a(0x196)]),console['log']('\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)');}}catch{}if(!_0x291353)throw new Error(_0x359525['mNYUg']);const _0x14647f=getEnvDir(_0x291353),_0x99cfef=existsSync(_0x14647f);let _0x3d3680=_0x5793f3,_0x641ea0=![];if(!_0x3d3680)try{_0x3d3680=await fetchCloudProfile(_0x291353);if(!_0x3d3680)_0x641ea0=!![];}catch(_0x5dd504){_0x359525['iiIiF'](_0x5dd504,ApiError)&&_0x359525[_0x46c40a(0x192)](_0x5dd504['status'],0x194)&&(_0x641ea0=!![]);}if(_0xb000e7&&_0x641ea0&&!_0x99cfef&&!_0x3d3680)throw new Error(_0x359525['UfIHw']('Profile\x20\x22'+_0xb000e7+_0x46c40a(0x183),_0x359525['ZufgA'])+'`ranger\x20profile\x20add`\x20to\x20create\x20one.');if(_0x3d3680&&_0x99cfef){let _0x4fbb28=!![];if(isInteractive()){const {source:_0x3eca20}=await _0x2ef18f['prompt']([{'type':_0x359525['PKbud'],'name':_0x46c40a(0x181),'message':'Profile\x20\x22'+_0x291353+'\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','choices':[{'name':_0x46c40a(0x18e),'value':_0x359525[_0x46c40a(0x179)]},{'name':'Local\x20profile','value':_0x359525['KiSCu']}],'default':'cloud'}]);_0x4fbb28=_0x359525[_0x46c40a(0x17d)](_0x3eca20,_0x359525['sjyjy']);}if(!_0x4fbb28)_0x3d3680=null;}const _0x2f49f3=_0x359525['RSuDf'](readProfileOverrides,process[_0x46c40a(0x1a2)](),_0x291353);let _0x59bf25=null,_0x3d0358,_0x4abdde,_0x501bd0,_0x54cc7d,_0x314313=null,_0x520cdc;const _0x4d7eef=expandOverrides(_0x2f49f3);if(_0x3d3680){_0x59bf25=_0x3d3680;const _0x42fa53=_0x3d3680['settings']??{},_0x6da096=mergeCloudProfileSettings(_0x42fa53,_0x2f49f3??undefined),_0x1be686={..._0x3d3680,'settings':_0x6da096},_0x177174=process[_0x46c40a(0x1a1)]['RANGER_SESSION_STATE_PATH'];if(_0x177174){if(!_0x359525['ChSNp'](existsSync,_0x177174))throw new Error('RANGER_SESSION_STATE_PATH='+_0x177174+_0x46c40a(0x185));_0x3d0358=_0x177174,_0x4abdde=resolveEnvVars(_0x6da096),_0x501bd0=_0x359525[_0x46c40a(0x17b)](Boolean,_0x4abdde[_0x46c40a(0x19f)]),_0x314313={'baseUrl':expandString(_0x42fa53['baseUrl']),'startPath':_0x359525['ChSNp'](expandString,_0x42fa53[_0x46c40a(0x19e)])};}else{const _0x21ee51=await resolveCloudProfileSession(_0x1be686);_0x3d0358=_0x21ee51['authPath'],_0x4abdde=resolveEnvVars(_0x6da096),_0x501bd0=Boolean(_0x4abdde['cdpEndpoint']),_0x314313={'baseUrl':_0x359525[_0x46c40a(0x18f)](expandString,_0x42fa53['baseUrl']),'startPath':_0x359525[_0x46c40a(0x18f)](expandString,_0x42fa53[_0x46c40a(0x19e)])},_0x520cdc=_0x21ee51[_0x46c40a(0x186)]?.[_0x46c40a(0x18b)]?.[0x0];}}else{if(!_0x99cfef)throw new Error(_0x46c40a(0x19d)+_0x291353+_0x46c40a(0x18d)+_0x291353);const _0x20a8a9=await loadSettings(_0x291353);_0x4abdde=_0x359525[_0x46c40a(0x17b)](resolveEnvVars,_0x20a8a9),_0x501bd0=Boolean(_0x4abdde['cdpEndpoint']),_0x54cc7d=_0x4abdde[_0x46c40a(0x180)];}const _0x534889=readUrlEnvVars(),_0x1b27de=_0x359525[_0x46c40a(0x17b)](resolveProfileUrl,{'flagBaseUrl':_0x407a90['baseUrl'],'flagStartPath':_0x407a90['startPath'],'envBaseUrl':_0x534889['envBaseUrl'],'envStartPath':_0x534889['envStartPath'],'localSettingsBaseUrl':_0x54cc7d,'projectOverrides':_0x4d7eef,'cloudSettings':_0x314313,'authEnvironmentDomain':_0x520cdc}),_0x5a5aa4=_0x1b27de[_0x46c40a(0x188)]??_0x1b27de[_0x46c40a(0x180)];if(_0x359525['VzbZl'](!_0x5a5aa4,!_0x501bd0))throw new Error(_0x46c40a(0x18c)+_0x291353+_0x46c40a(0x19b)+_0x291353+_0x46c40a(0x1a0));return{'activeProfile':_0x291353,'resolvedCloudProfile':_0x59bf25,'cloudAuthPath':_0x3d0358,'resolvedSettings':_0x4abdde,'isCdpMode':_0x501bd0,'url':_0x5a5aa4,'startPath':_0x1b27de[_0x46c40a(0x19e)]};}function expandString(_0x413447){const _0xf4c132=_0x90ec,_0xc545bf={'JgjdR':_0xf4c132(0x17c)};if(typeof _0x413447!==_0xc545bf['JgjdR'])return _0x413447;return resolveEnvVars(_0x413447);}function expandOverrides(_0x1a6adc){const _0x2538cd=_0x90ec,_0x22bbdb={'Zmkoc':_0x2538cd(0x17c),'HeVOE':function(_0x4e94dd,_0x3df118){return _0x4e94dd===_0x3df118;},'wzywv':function(_0x326de7,_0x2fca6e){return _0x326de7(_0x2fca6e);}};if(!_0x1a6adc)return _0x1a6adc;const _0x1345db={..._0x1a6adc};return typeof _0x1345db['baseUrl']===_0x22bbdb[_0x2538cd(0x198)]&&(_0x1345db['baseUrl']=resolveEnvVars(_0x1345db['baseUrl'])),_0x22bbdb[_0x2538cd(0x197)](typeof _0x1345db[_0x2538cd(0x19e)],_0x22bbdb['Zmkoc'])&&(_0x1345db['startPath']=_0x22bbdb['wzywv'](resolveEnvVars,_0x1345db['startPath'])),_0x1345db;}
|