@ranger-testing/ranger-cli 2.3.2 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/setup/claude.js +1 -1
  25. package/build/commands/setup/opencode.js +1 -1
  26. package/build/commands/setupCi.js +1 -1
  27. package/build/commands/skillup.js +1 -1
  28. package/build/commands/start.js +1 -1
  29. package/build/commands/status.js +1 -1
  30. package/build/commands/update.js +1 -1
  31. package/build/commands/updateEnv.js +1 -1
  32. package/build/commands/useEnv.js +1 -1
  33. package/build/commands/utils/activeProfile.js +1 -1
  34. package/build/commands/utils/agentEnv.js +1 -1
  35. package/build/commands/utils/browserSessionsApi.js +1 -1
  36. package/build/commands/utils/claudeConfig.js +1 -1
  37. package/build/commands/utils/claudePlugin.js +1 -1
  38. package/build/commands/utils/crypto.js +1 -1
  39. package/build/commands/utils/desirePathLog.js +1 -1
  40. package/build/commands/utils/deviceAuth.js +1 -1
  41. package/build/commands/utils/environment.js +1 -1
  42. package/build/commands/utils/featureApi.js +1 -1
  43. package/build/commands/utils/featureReportGenerator.js +1 -1
  44. package/build/commands/utils/fixWebmDuration.js +1 -1
  45. package/build/commands/utils/git.js +1 -1
  46. package/build/commands/utils/keychain.js +1 -1
  47. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  48. package/build/commands/utils/mcpImageBase64.js +1 -1
  49. package/build/commands/utils/model.js +1 -1
  50. package/build/commands/utils/opencodeConfig.js +1 -1
  51. package/build/commands/utils/playwrightCli.js +1 -1
  52. package/build/commands/utils/profileMessages.js +1 -1
  53. package/build/commands/utils/profileSetupBanner.js +1 -1
  54. package/build/commands/utils/rangerConfig.js +1 -1
  55. package/build/commands/utils/rangerRoot.js +1 -1
  56. package/build/commands/utils/reportGenerator.js +1 -1
  57. package/build/commands/utils/retry.js +1 -1
  58. package/build/commands/utils/sessionCache.js +1 -1
  59. package/build/commands/utils/settings.js +1 -1
  60. package/build/commands/utils/skillContent.js +1 -1
  61. package/build/commands/utils/skills.js +1 -1
  62. package/build/commands/utils/stitchWebmFiles.js +1 -1
  63. package/build/commands/utils/telemetry.js +1 -1
  64. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  65. package/build/commands/utils/userApi.js +1 -1
  66. package/build/commands/utils/version.js +1 -1
  67. package/build/commands/verifyFeature.js +1 -1
  68. package/build/commands/verifyFeatureCli.js +1 -1
  69. package/build/commands/verifyInBrowser.js +1 -1
  70. package/package.json +1 -1
@@ -1 +1 @@
1
- const _0x42169f=_0xdce8;(function(_0xd23c12,_0x1f0297){const _0x34ee80=_0xdce8,_0x2e69c9=_0xd23c12();while(!![]){try{const _0x436745=-parseInt(_0x34ee80(0xe2))/0x1*(-parseInt(_0x34ee80(0xc9))/0x2)+-parseInt(_0x34ee80(0xcd))/0x3+-parseInt(_0x34ee80(0xd3))/0x4*(-parseInt(_0x34ee80(0xb8))/0x5)+-parseInt(_0x34ee80(0xd2))/0x6+-parseInt(_0x34ee80(0xc3))/0x7+parseInt(_0x34ee80(0xe9))/0x8+parseInt(_0x34ee80(0xce))/0x9*(parseInt(_0x34ee80(0xc0))/0xa);if(_0x436745===_0x1f0297)break;else _0x2e69c9['push'](_0x2e69c9['shift']());}catch(_0x5946a3){_0x2e69c9['push'](_0x2e69c9['shift']());}}}(_0x2509,0x1dda8));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0x42169f(0xcb);function toPlaywrightCliSessionKey(_0x2ac9d2){const _0x3af097=_0x42169f,_0x79defb={'PzQxL':'sha256','krhik':'hex'},_0x66142=createHash(_0x79defb['PzQxL'])['update'](_0x2ac9d2)[_0x3af097(0xc1)](_0x79defb[_0x3af097(0xd6)])[_0x3af097(0xbd)](0x0,0xc);return'rg-'+_0x66142;}function shellQuote(_0x5d0b52){const _0x44f7cd=_0x42169f;return'\x27'+_0x5d0b52[_0x44f7cd(0xe3)](/'/g,'\x27\x5c\x27\x27')+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x477da0){const _0x518719=_0x42169f;return SAFE_SHELL_TOKEN[_0x518719(0xd9)](_0x477da0)?_0x477da0:shellQuote(_0x477da0);}export function buildPlaywrightCliInvocation(_0x2db9b9,_0x2ddbff,_0x4db134){const _0x4de5d4=_0x42169f,_0x44c577={'vqZhV':_0x4de5d4(0xd7),'xMXts':'npx','rWhMW':function(_0x11229e,_0x1a18ca){return _0x11229e(_0x1a18ca);},'eSYeG':_0x4de5d4(0xc2)},_0x1ae176=toPlaywrightCliSessionKey(_0x2db9b9),[_0x823603=_0x44c577['vqZhV']]=_0x4db134,_0x3212af=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x1ae176,_0x4de5d4(0xc2),_0x2ddbff,..._0x4db134];return{'command':_0x44c577['xMXts'],'args':_0x3212af,'shellCommand':[_0x4de5d4(0xc5),PLAYWRIGHT_CLI_BINARY,_0x4de5d4(0xb9)+_0x44c577[_0x4de5d4(0xda)](quoteShellArg,_0x1ae176),_0x44c577['eSYeG'],quoteShellArg(_0x2ddbff),..._0x4db134['map'](quoteShellArg)]['join']('\x20'),'subcommand':_0x823603};}export function buildPlaywrightCliCommandPrefix(_0x15cc45,_0x8070fe){const _0x451266=_0x42169f,_0x160a20={'fenFR':function(_0x351b36,_0x17b4a0){return _0x351b36(_0x17b4a0);},'CGNnx':_0x451266(0xc2)},_0x1e7600=_0x160a20['fenFR'](toPlaywrightCliSessionKey,_0x15cc45);return[_0x451266(0xc5),PLAYWRIGHT_CLI_BINARY,_0x451266(0xb9)+quoteShellArg(_0x1e7600),_0x160a20[_0x451266(0xd0)],_0x160a20[_0x451266(0xbf)](quoteShellArg,_0x8070fe)]['join']('\x20');}function _0x2509(){const _0x16612c=['match','266535hPHDIj','398637LYFumA','timeoutMs','CGNnx','luKpg','825942VjGmjo','3884pEGXHK','JTnbr','toString','krhik','unknown','length','test','rWhMW','yCzpi','LWmjc','WiKrv','ZFRpq','kill','ZXMRu','values','1RvHDvp','replace','axSDO','kZLfA','subcommand','sessionId','NPHfA','12576nhYFso','commandArgs','SIGKILL','SIGTERM','stdout','MHYPw','\x0astderr:\x20','645gFamnc','-s=','SlBjj','string','error','slice','...','fenFR','40lmBRpM','digest','--config','734825LaiTye','playwright-cli\x20','npx','IxdoV','exited\x20with\x20code=','ZhVHd','299508Bughbk','DQskg','@playwright/cli'];_0x2509=function(){return _0x16612c;};return _0x2509();}function truncateOutput(_0x201c4e,_0x5521f8=0x7d0){const _0x2db182=_0x42169f;return _0x201c4e[_0x2db182(0xd8)]>_0x5521f8?_0x201c4e[_0x2db182(0xbd)](0x0,_0x5521f8)+_0x2db182(0xbe):_0x201c4e;}function _0xdce8(_0x49c1ed,_0x436d8d){_0x49c1ed=_0x49c1ed-0xb8;const _0x25097e=_0x2509();let _0xdce8f6=_0x25097e[_0x49c1ed];return _0xdce8f6;}export async function runPlaywrightCliCommand(_0x19e2be){const _0x39b7de=_0x42169f,_0x139c3a={'bzQHp':_0x39b7de(0xeb),'NPHfA':function(_0x4dec66,_0x4e64de,_0x261e26){return _0x4dec66(_0x4e64de,_0x261e26);},'luKpg':function(_0x448fb6,_0x4975ef){return _0x448fb6(_0x4975ef);},'SlBjj':function(_0x3cd345,_0x2dbed8){return _0x3cd345(_0x2dbed8);},'EIvRQ':function(_0x231ae2,_0x985a1e,_0x5db6e8,_0x27a8f7){return _0x231ae2(_0x985a1e,_0x5db6e8,_0x27a8f7);},'WiKrv':'pipe','axSDO':'data','kZLfA':_0x39b7de(0xbc)},_0x20afd0=buildPlaywrightCliInvocation(_0x19e2be[_0x39b7de(0xe7)],_0x19e2be['configPath'],_0x19e2be[_0x39b7de(0xea)]);return new Promise((_0x36b496,_0x1d54fa)=>{const _0x504981=_0x39b7de,_0x58a722={'ZhVHd':_0x139c3a['bzQHp'],'vcZoy':_0x504981(0xec),'ASJJU':function(_0x2d80da,_0x48c4f9,_0x2647fe){const _0x104464=_0x504981;return _0x139c3a[_0x104464(0xe8)](_0x2d80da,_0x48c4f9,_0x2647fe);},'gbHmT':function(_0x13f169,_0x504adc){const _0xd5b0ab=_0x504981;return _0x139c3a[_0xd5b0ab(0xd1)](_0x13f169,_0x504adc);},'yCzpi':function(_0xf8e720,_0x165e12){return _0xf8e720===_0x165e12;},'LWmjc':'null','DQskg':function(_0x547166,_0x37ef15){return _0x547166(_0x37ef15);},'ZXMRu':function(_0x3e57cf,_0x5dad8e){const _0x33e963=_0x504981;return _0x139c3a[_0x33e963(0xba)](_0x3e57cf,_0x5dad8e);}},_0x5d8f2e=_0x139c3a['EIvRQ'](spawn,_0x20afd0['command'],_0x20afd0['args'],{'cwd':_0x19e2be['cwd'],'env':_0x19e2be['env'],'stdio':['ignore',_0x139c3a[_0x504981(0xdd)],_0x139c3a['WiKrv']]});let _0x138038='',_0x553f1f='',_0x3091f8=![];const _0x3c4532=_0x19e2be[_0x504981(0xcf)]&&_0x19e2be['timeoutMs']>0x0?setTimeout(()=>{const _0x35f571=_0x504981;_0x3091f8=!![],_0x5d8f2e[_0x35f571(0xdf)](_0x58a722['vcZoy']),_0x58a722['ASJJU'](setTimeout,()=>{const _0x4e301a=_0x35f571;try{_0x5d8f2e['kill'](_0x58a722[_0x4e301a(0xc8)]);}catch{}},0x3e8);},_0x19e2be[_0x504981(0xcf)]):null;_0x5d8f2e[_0x504981(0xed)]?.['on'](_0x139c3a[_0x504981(0xe4)],_0x1dd2d7=>{const _0x1d0354=_0x504981;_0x138038+=_0x1dd2d7[_0x1d0354(0xd5)]();}),_0x5d8f2e['stderr']?.['on']('data',_0x1d24fc=>{_0x553f1f+=_0x1d24fc['toString']();}),_0x5d8f2e['on'](_0x139c3a[_0x504981(0xe5)],_0x1c1fe4=>{if(_0x3c4532)clearTimeout(_0x3c4532);_0x58a722['gbHmT'](_0x1d54fa,_0x1c1fe4);}),_0x5d8f2e['on']('close',(_0x186eb0,_0x1b81ab)=>{const _0x110653=_0x504981;if(_0x3c4532)clearTimeout(_0x3c4532);if(_0x58a722[_0x110653(0xdb)](_0x186eb0,0x0)){_0x36b496({'stdout':_0x138038,'stderr':_0x553f1f,'invocation':_0x20afd0});return;}const _0x1aab22=_0x3091f8?'timed\x20out\x20after\x20'+_0x19e2be['timeoutMs']+'ms':_0x110653(0xc7)+(_0x186eb0??_0x58a722['LWmjc'])+'\x20signal='+(_0x1b81ab??_0x58a722[_0x110653(0xdc)]);_0x58a722[_0x110653(0xca)](_0x1d54fa,new Error(_0x110653(0xc4)+_0x20afd0[_0x110653(0xe6)]+'\x20'+_0x1aab22+'\x0astdout:\x20'+_0x58a722[_0x110653(0xe0)](truncateOutput,_0x138038)+_0x110653(0xef)+truncateOutput(_0x553f1f)));});});}export function extractBashCommand(_0x12bca6){const _0x3a2d30=_0x42169f,_0x358e4c={'MHYPw':'command','ZFRpq':'cmd','LdpaL':'script','JTnbr':'bash_command','IxdoV':function(_0x16846d,_0x47282a){return _0x16846d===_0x47282a;},'CZept':function(_0x1602b0,_0x85c7dc){return _0x1602b0??_0x85c7dc;}},_0x32634b=[_0x358e4c[_0x3a2d30(0xee)],_0x358e4c[_0x3a2d30(0xde)],_0x358e4c['LdpaL'],_0x358e4c[_0x3a2d30(0xd4)]];for(const _0x303e4f of _0x32634b){const _0x279924=_0x12bca6[_0x303e4f];if(_0x358e4c[_0x3a2d30(0xc6)](typeof _0x279924,_0x3a2d30(0xbb))&&_0x279924['trim']())return _0x279924;}const _0x35ad47=Object[_0x3a2d30(0xe1)](_0x12bca6)['find'](_0x300a78=>typeof _0x300a78===_0x3a2d30(0xbb)&&_0x300a78['trim']()['length']>0x0);return _0x358e4c['CZept'](_0x35ad47,null);}export function parsePlaywrightCliCommand(_0x4c7790){const _0x4b3fcd=_0x42169f,_0x4472ac=_0x4c7790[_0x4b3fcd(0xcc)](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x4472ac?.[0x1]??null;}
1
+ const _0x5ed245=_0x1333;(function(_0x1d1eae,_0xa5fe63){const _0x4d4706=_0x1333,_0x426d2e=_0x1d1eae();while(!![]){try{const _0x30a24e=-parseInt(_0x4d4706(0x1be))/0x1*(-parseInt(_0x4d4706(0x1d7))/0x2)+parseInt(_0x4d4706(0x1c9))/0x3+-parseInt(_0x4d4706(0x1dd))/0x4+parseInt(_0x4d4706(0x1d4))/0x5+-parseInt(_0x4d4706(0x1c1))/0x6*(-parseInt(_0x4d4706(0x1e0))/0x7)+parseInt(_0x4d4706(0x1bb))/0x8*(-parseInt(_0x4d4706(0x1cd))/0x9)+-parseInt(_0x4d4706(0x1e5))/0xa;if(_0x30a24e===_0xa5fe63)break;else _0x426d2e['push'](_0x426d2e['shift']());}catch(_0x5513b7){_0x426d2e['push'](_0x426d2e['shift']());}}}(_0xd7c2,0xb24c3));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0x5ed245(0x1c5);function _0x1333(_0x3c5690,_0x1afcc4){_0x3c5690=_0x3c5690-0x1ba;const _0xd7c24e=_0xd7c2();let _0x1333a6=_0xd7c24e[_0x3c5690];return _0x1333a6;}function toPlaywrightCliSessionKey(_0x2f4662){const _0x458a3e=_0x5ed245,_0x5f506d={'eQtsV':function(_0x1dcd1c,_0x7aa047){return _0x1dcd1c(_0x7aa047);},'VLgUl':'sha256'},_0x1d723d=_0x5f506d['eQtsV'](createHash,_0x5f506d[_0x458a3e(0x1dc)])['update'](_0x2f4662)['digest']('hex')[_0x458a3e(0x1cb)](0x0,0xc);return'rg-'+_0x1d723d;}function shellQuote(_0x15871c){const _0x403212=_0x5ed245;return'\x27'+_0x15871c[_0x403212(0x1c0)](/'/g,'\x27\x5c\x27\x27')+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x57951a){return SAFE_SHELL_TOKEN['test'](_0x57951a)?_0x57951a:shellQuote(_0x57951a);}export function buildPlaywrightCliInvocation(_0xc3155b,_0x229bf7,_0x12870b){const _0x3c4fea=_0x5ed245,_0x4cc469={'TADaj':function(_0x862b0b,_0x480e88){return _0x862b0b(_0x480e88);},'VzHBi':_0x3c4fea(0x1d3),'rPZSK':_0x3c4fea(0x1de)},_0x2c36bc=_0x4cc469[_0x3c4fea(0x1cf)](toPlaywrightCliSessionKey,_0xc3155b),[_0x17627b=_0x4cc469[_0x3c4fea(0x1c3)]]=_0x12870b,_0x28e66a=[PLAYWRIGHT_CLI_BINARY,_0x3c4fea(0x1d5)+_0x2c36bc,_0x4cc469['rPZSK'],_0x229bf7,..._0x12870b];return{'command':_0x3c4fea(0x1c4),'args':_0x28e66a,'shellCommand':['npx',PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x2c36bc),'--config',quoteShellArg(_0x229bf7),..._0x12870b[_0x3c4fea(0x1e3)](quoteShellArg)][_0x3c4fea(0x1ce)]('\x20'),'subcommand':_0x17627b};}export function buildPlaywrightCliCommandPrefix(_0x46be8a,_0xb6a7c){const _0x5f59ae=_0x5ed245,_0x9af122={'NGoom':function(_0x439e05,_0x2bce68){return _0x439e05(_0x2bce68);},'DDScK':'--config'},_0x501e22=_0x9af122['NGoom'](toPlaywrightCliSessionKey,_0x46be8a);return['npx',PLAYWRIGHT_CLI_BINARY,_0x5f59ae(0x1d5)+quoteShellArg(_0x501e22),_0x9af122[_0x5f59ae(0x1da)],_0x9af122['NGoom'](quoteShellArg,_0xb6a7c)][_0x5f59ae(0x1ce)]('\x20');}function truncateOutput(_0x1c1993,_0x50f55e=0x7d0){const _0x329473=_0x5ed245,_0x22cf53={'OEjZU':function(_0xeeadfb,_0x1fd0d5){return _0xeeadfb+_0x1fd0d5;},'ofTni':_0x329473(0x1e2)};return _0x1c1993[_0x329473(0x1d2)]>_0x50f55e?_0x22cf53[_0x329473(0x1bc)](_0x1c1993[_0x329473(0x1cb)](0x0,_0x50f55e),_0x22cf53['ofTni']):_0x1c1993;}export async function runPlaywrightCliCommand(_0x170f70){const _0x124da7=_0x5ed245,_0x484ae7={'ZqaoK':function(_0x126ab8,_0x154868){return _0x126ab8(_0x154868);},'Ghixc':function(_0x21d63c,_0x5ad9c7){return _0x21d63c??_0x5ad9c7;},'qjQGM':'ignore','oZfVA':_0x124da7(0x1c2),'vvlrH':_0x124da7(0x1e6)},_0x5bfae7=buildPlaywrightCliInvocation(_0x170f70[_0x124da7(0x1d8)],_0x170f70['configPath'],_0x170f70['commandArgs']);return new Promise((_0x3e36d3,_0x4c7a66)=>{const _0x52f941=_0x124da7,_0x50bf11={'XSFdE':function(_0x97b8ca,_0x27b13a){const _0x44cdc0=_0x1333;return _0x484ae7[_0x44cdc0(0x1bd)](_0x97b8ca,_0x27b13a);},'VzseX':function(_0x2aedbd,_0x3065be){return _0x2aedbd===_0x3065be;},'ckaVR':function(_0x596da1,_0x5771ae){const _0x4e0038=_0x1333;return _0x484ae7[_0x4e0038(0x1ca)](_0x596da1,_0x5771ae);},'VrFIn':function(_0x5c8fdf,_0x3d2d66){return _0x5c8fdf??_0x3d2d66;},'SqLRq':function(_0x4cf1f1,_0x2c8caa){return _0x4cf1f1(_0x2c8caa);}},_0x3913cb=spawn(_0x5bfae7['command'],_0x5bfae7['args'],{'cwd':_0x170f70['cwd'],'env':_0x170f70[_0x52f941(0x1c8)],'stdio':[_0x484ae7['qjQGM'],'pipe','pipe']});let _0x4a53a5='',_0x4eced8='',_0x5705c8=![];const _0x5aaac5=_0x170f70[_0x52f941(0x1d0)]&&_0x170f70[_0x52f941(0x1d0)]>0x0?setTimeout(()=>{const _0x80541d=_0x52f941;_0x5705c8=!![],_0x3913cb[_0x80541d(0x1d6)]('SIGTERM'),setTimeout(()=>{try{_0x3913cb['kill']('SIGKILL');}catch{}},0x3e8);},_0x170f70['timeoutMs']):null;_0x3913cb['stdout']?.['on'](_0x484ae7['oZfVA'],_0x1bee76=>{const _0x2129f1=_0x52f941;_0x4a53a5+=_0x1bee76[_0x2129f1(0x1df)]();}),_0x3913cb['stderr']?.['on'](_0x484ae7['oZfVA'],_0x3d4e7a=>{const _0x4b66d8=_0x52f941;_0x4eced8+=_0x3d4e7a[_0x4b66d8(0x1df)]();}),_0x3913cb['on'](_0x484ae7[_0x52f941(0x1e4)],_0x2630f9=>{if(_0x5aaac5)clearTimeout(_0x5aaac5);_0x4c7a66(_0x2630f9);}),_0x3913cb['on'](_0x52f941(0x1ba),(_0x5c3267,_0x34dcd3)=>{const _0x26c913=_0x52f941;if(_0x5aaac5)_0x50bf11[_0x26c913(0x1e1)](clearTimeout,_0x5aaac5);if(_0x50bf11[_0x26c913(0x1c7)](_0x5c3267,0x0)){_0x50bf11['XSFdE'](_0x3e36d3,{'stdout':_0x4a53a5,'stderr':_0x4eced8,'invocation':_0x5bfae7});return;}const _0x3bad69=_0x5705c8?_0x26c913(0x1d1)+_0x170f70['timeoutMs']+'ms':'exited\x20with\x20code='+_0x50bf11['ckaVR'](_0x5c3267,'null')+'\x20signal='+_0x50bf11['VrFIn'](_0x34dcd3,'null');_0x4c7a66(new Error(_0x26c913(0x1c6)+_0x5bfae7['subcommand']+'\x20'+_0x3bad69+_0x26c913(0x1db)+_0x50bf11['SqLRq'](truncateOutput,_0x4a53a5)+_0x26c913(0x1cc)+truncateOutput(_0x4eced8)));});});}export function extractBashCommand(_0x38bc1e){const _0x4c6d05=_0x5ed245,_0x4cfddb={'tVxew':'command','YFAQw':function(_0x56a84a,_0x228e38){return _0x56a84a===_0x228e38;}},_0x1cce79=[_0x4cfddb['tVxew'],'cmd','script','bash_command'];for(const _0x342c4d of _0x1cce79){const _0x4252c3=_0x38bc1e[_0x342c4d];if(_0x4cfddb['YFAQw'](typeof _0x4252c3,_0x4c6d05(0x1d9))&&_0x4252c3['trim']())return _0x4252c3;}const _0x4441ee=Object['values'](_0x38bc1e)[_0x4c6d05(0x1bf)](_0x2cb9b4=>typeof _0x2cb9b4===_0x4c6d05(0x1d9)&&_0x2cb9b4['trim']()[_0x4c6d05(0x1d2)]>0x0);return _0x4441ee??null;}function _0xd7c2(){const _0x1787f7=['2683820glYyJW','--config','toString','35hXZBHi','XSFdE','...','map','vvlrH','22650030hMULUd','error','close','280gtcQgQ','OEjZU','ZqaoK','131797XDdJQC','find','replace','420078jEJRmY','data','VzHBi','npx','@playwright/cli','playwright-cli\x20','VzseX','env','2303094qdAkEd','Ghixc','slice','\x0astderr:\x20','67563oTlaIU','join','TADaj','timeoutMs','timed\x20out\x20after\x20','length','unknown','6807400HcsJvJ','-s=','kill','22BDfBuN','sessionId','string','DDScK','\x0astdout:\x20','VLgUl'];_0xd7c2=function(){return _0x1787f7;};return _0xd7c2();}export function parsePlaywrightCliCommand(_0x4865bf){const _0x2d6918=_0x4865bf['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x2d6918?.[0x1]??null;}
@@ -1 +1 @@
1
- const _0x1ea392=_0x5526;function _0x25d8(){const _0x241d56=['1835062YzaUXn','3yBWOdg','4831090sXSRDo','2831969QcHDPw','5831778QFUEff','2022904glozuQ','3849808amanRk','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','980485jbtdnr','VSPvg','ranger\x20profile\x20add\x20local'];_0x25d8=function(){return _0x241d56;};return _0x25d8();}(function(_0x4098d1,_0x3249f7){const _0x583968=_0x5526,_0x526f0a=_0x4098d1();while(!![]){try{const _0xe444b0=parseInt(_0x583968(0x86))/0x1+parseInt(_0x583968(0x89))/0x2+parseInt(_0x583968(0x8a))/0x3*(parseInt(_0x583968(0x83))/0x4)+-parseInt(_0x583968(0x80))/0x5+-parseInt(_0x583968(0x82))/0x6+-parseInt(_0x583968(0x81))/0x7+parseInt(_0x583968(0x84))/0x8;if(_0xe444b0===_0x3249f7)break;else _0x526f0a['push'](_0x526f0a['shift']());}catch(_0x8a9053){_0x526f0a['push'](_0x526f0a['shift']());}}}(_0x25d8,0x8460c));function _0x5526(_0x3b71de,_0x1ae87d){_0x3b71de=_0x3b71de-0x80;const _0x25d8be=_0x25d8();let _0x55261b=_0x25d8be[_0x3b71de];return _0x55261b;}const DEFAULT_PROFILE_COMMAND=_0x1ea392(0x88);export function formatProfileRequiredMessage(_0xc775a8){const _0x107cc1=_0x1ea392,_0x3231f3={'VSPvg':function(_0x588a80,_0x48f8b6){return _0x588a80(_0x48f8b6);}},_0x1775f9=_0xc775a8?_0x3231f3[_0x107cc1(0x87)](_0xc775a8,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x107cc1(0x85)+_0x1775f9+'.';}
1
+ const _0x4705cb=_0xca5d;(function(_0x277b78,_0x347e41){const _0x472386=_0xca5d,_0x41e056=_0x277b78();while(!![]){try{const _0x487728=-parseInt(_0x472386(0x11f))/0x1+parseInt(_0x472386(0x123))/0x2*(-parseInt(_0x472386(0x122))/0x3)+-parseInt(_0x472386(0x11d))/0x4*(-parseInt(_0x472386(0x11b))/0x5)+parseInt(_0x472386(0x121))/0x6*(-parseInt(_0x472386(0x11e))/0x7)+-parseInt(_0x472386(0x124))/0x8+parseInt(_0x472386(0x119))/0x9*(parseInt(_0x472386(0x11a))/0xa)+parseInt(_0x472386(0x11c))/0xb;if(_0x487728===_0x347e41)break;else _0x41e056['push'](_0x41e056['shift']());}catch(_0x3fbb1f){_0x41e056['push'](_0x41e056['shift']());}}}(_0x1781,0xd8339));const DEFAULT_PROFILE_COMMAND=_0x4705cb(0x120);function _0xca5d(_0x2cd339,_0x2798bc){_0x2cd339=_0x2cd339-0x119;const _0x1781fe=_0x1781();let _0xca5d58=_0x1781fe[_0x2cd339];return _0xca5d58;}export function formatProfileRequiredMessage(_0x521f1c){const _0x21c82b=_0x521f1c?_0x521f1c(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20'+_0x21c82b+'.';}function _0x1781(){const _0x5b0bf1=['2IPQMUc','2195784yEBVMD','981819kEVMRQ','10SOqYji','25MFYDrr','24372876KentFo','1336060nveYqY','85589sWusih','1152816SNdkWb','ranger\x20profile\x20add\x20local','12OVKjWl','4972734MRrIDB'];_0x1781=function(){return _0x5b0bf1;};return _0x1781();}
@@ -1 +1 @@
1
- (function(_0x33e20a,_0x49a38d){const _0x57fa2d=_0x21a1,_0x35def7=_0x33e20a();while(!![]){try{const _0x5e1fba=-parseInt(_0x57fa2d(0x86))/0x1+parseInt(_0x57fa2d(0x79))/0x2*(-parseInt(_0x57fa2d(0x77))/0x3)+parseInt(_0x57fa2d(0x7a))/0x4*(-parseInt(_0x57fa2d(0x80))/0x5)+-parseInt(_0x57fa2d(0x7e))/0x6*(parseInt(_0x57fa2d(0x85))/0x7)+parseInt(_0x57fa2d(0x75))/0x8*(-parseInt(_0x57fa2d(0x87))/0x9)+parseInt(_0x57fa2d(0x7c))/0xa+parseInt(_0x57fa2d(0x8a))/0xb;if(_0x5e1fba===_0x49a38d)break;else _0x35def7['push'](_0x35def7['shift']());}catch(_0x435134){_0x35def7['push'](_0x35def7['shift']());}}}(_0x696c,0xa45f9));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x2046d0=_0x21a1,_0x3e9fb7={'pNjEh':function(_0x4588cd,_0x249add){return _0x4588cd+_0x249add;},'macyT':function(_0x433584,_0x17b9a4){return _0x433584+_0x17b9a4;},'rECBR':function(_0x591ec6,_0x33d5b9){return _0x591ec6+_0x33d5b9;},'xXXYa':_0x2046d0(0x7d),'gmhhs':'<div\x20class=\x22ranger-banner__message\x22>','gaEZR':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0x1c420c=_0x3e9fb7[_0x2046d0(0x84)](_0x3e9fb7[_0x2046d0(0x88)](_0x3e9fb7['macyT'](_0x3e9fb7[_0x2046d0(0x7f)](_0x3e9fb7[_0x2046d0(0x88)]('<div\x20class=\x22ranger-banner__content\x22>',_0x3e9fb7['xXXYa']),_0x3e9fb7[_0x2046d0(0x7b)])+'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>',_0x2046d0(0x81)),'</div>'),_0x2046d0(0x78))+_0x3e9fb7['gaEZR'],_0x50176a='\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 _0x2046d0(0x76)+JSON[_0x2046d0(0x89)](_0x1c420c)+';\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[_0x2046d0(0x89)](_0x50176a)+_0x2046d0(0x83);})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x696c(){const _0x2b8a67=['<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','addInitScript',';\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','pNjEh','21xhtbEr','1343512Gzetcl','1670724HPFeto','macyT','stringify','33020636xUscjo','16kVBxYh','\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','251151DFyonC','</div>','14wBjecg','4432zyNuki','gmhhs','10928940KMRYPU','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','641436VqfFxP','rECBR','3610AVEQBg'];_0x696c=function(){return _0x2b8a67;};return _0x696c();}function _0x21a1(_0x18de54,_0x451e36){_0x18de54=_0x18de54-0x75;const _0x696cf6=_0x696c();let _0x21a187=_0x696cf6[_0x18de54];return _0x21a187;}export async function addProfileSetupBanner(_0x5212c5){const _0x4c585a=_0x21a1;await _0x5212c5[_0x4c585a(0x82)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
1
+ function _0x373c(_0x14b325,_0x5ea9a3){_0x14b325=_0x14b325-0x1e9;const _0x4fb7ec=_0x4fb7();let _0x373c72=_0x4fb7ec[_0x14b325];return _0x373c72;}(function(_0x5e3a27,_0x58f5a9){const _0x4ee419=_0x373c,_0x199b82=_0x5e3a27();while(!![]){try{const _0x3b6ed3=-parseInt(_0x4ee419(0x1ef))/0x1*(-parseInt(_0x4ee419(0x1ea))/0x2)+-parseInt(_0x4ee419(0x1f7))/0x3*(-parseInt(_0x4ee419(0x1f5))/0x4)+-parseInt(_0x4ee419(0x1f6))/0x5*(parseInt(_0x4ee419(0x1f2))/0x6)+parseInt(_0x4ee419(0x1f4))/0x7+-parseInt(_0x4ee419(0x1ed))/0x8+-parseInt(_0x4ee419(0x1ec))/0x9+parseInt(_0x4ee419(0x1e9))/0xa*(parseInt(_0x4ee419(0x1f3))/0xb);if(_0x3b6ed3===_0x58f5a9)break;else _0x199b82['push'](_0x199b82['shift']());}catch(_0x1d099c){_0x199b82['push'](_0x199b82['shift']());}}}(_0x4fb7,0x82308));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x20133d=_0x373c,_0x26eb38={'QQqdL':function(_0x676197,_0xe9cb16){return _0x676197+_0xe9cb16;},'WSRHe':function(_0x47581d,_0x2b8fb2){return _0x47581d+_0x2b8fb2;},'iCiMp':function(_0x47bd00,_0x1b5eeb){return _0x47bd00+_0x1b5eeb;},'ePnVb':'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','GUHOg':'</div>','FVZUQ':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0x8b3245=_0x26eb38['QQqdL'](_0x26eb38['WSRHe'](_0x26eb38['iCiMp']('<div\x20class=\x22ranger-banner__content\x22>'+_0x26eb38[_0x20133d(0x1f1)]+'<div\x20class=\x22ranger-banner__message\x22>',_0x20133d(0x1ee)),'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>')+_0x26eb38['GUHOg'],_0x20133d(0x1f0))+_0x26eb38['FVZUQ'],_0x1da797=_0x20133d(0x1f8);return'\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20'+JSON['stringify'](_0x8b3245)+';\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[_0x20133d(0x1eb)](_0x1da797)+';\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 _0x4fb7(){const _0x589939=['<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','500275AaFVvl','</div>','ePnVb','6WOPJHJ','7685733xgnGJz','3534244FCLCGF','64YJOTVY','2141395IMNKtf','90483ERcGxX','\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','10qEjfzz','2GdAjqY','stringify','2370258zuoiRU','7692392cWIvdX'];_0x4fb7=function(){return _0x589939;};return _0x4fb7();}export async function addProfileSetupBanner(_0x9f2312){await _0x9f2312['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
@@ -1 +1 @@
1
- (function(_0x487624,_0x3418ca){const _0x402a93=_0x1d37,_0x3905a3=_0x487624();while(!![]){try{const _0x228caa=parseInt(_0x402a93(0x1f0))/0x1+parseInt(_0x402a93(0x1e3))/0x2+parseInt(_0x402a93(0x1ec))/0x3*(parseInt(_0x402a93(0x1f1))/0x4)+-parseInt(_0x402a93(0x1ef))/0x5+-parseInt(_0x402a93(0x1e7))/0x6+parseInt(_0x402a93(0x1e9))/0x7*(parseInt(_0x402a93(0x1e6))/0x8)+-parseInt(_0x402a93(0x1ed))/0x9;if(_0x228caa===_0x3418ca)break;else _0x3905a3['push'](_0x3905a3['shift']());}catch(_0x65263a){_0x3905a3['push'](_0x3905a3['shift']());}}}(_0xad17,0x74d59));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';function _0xad17(){const _0x3437cd=['11255580ZCcyLq','string','953785DxbrXK','872202XFVWuH','628DEPKqA','CEtvC','1440300XAxmGn','arlsU','warn','7456UMDEfy','4058826DPjRqI','HnMod','5691NNUjIR','parse','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','4707qUOCdy'];_0xad17=function(){return _0x3437cd;};return _0xad17();}import{getRangerDir}from'./rangerRoot.js';function _0x1d37(_0x3a93ff,_0x5b0946){_0x3a93ff=_0x3a93ff-0x1e3;const _0xad17a9=_0xad17();let _0x1d374b=_0xad17a9[_0x3a93ff];return _0x1d374b;}export function getRangerConfigPath(){const _0xee5222={'BykpA':function(_0x1c567f,_0x53931f,_0x9d792a){return _0x1c567f(_0x53931f,_0x9d792a);}};return _0xee5222['BykpA'](join,getRangerDir(),'config.json');}export async function loadRangerConfig(){const _0x47df4c=_0x1d37,_0xea6ede={'CEtvC':function(_0x26e233){return _0x26e233();},'kRRdg':function(_0x18f9f4,_0x1d0985){return _0x18f9f4(_0x1d0985);},'arlsU':function(_0xd612d7,_0x14d70e,_0x3d0ce5){return _0xd612d7(_0x14d70e,_0x3d0ce5);},'ClGTA':'utf-8','HnMod':function(_0x2d5ba8,_0x14e4d7){return _0x2d5ba8===_0x14e4d7;}},_0x537db7=_0xea6ede[_0x47df4c(0x1f2)](getRangerConfigPath);if(!_0xea6ede['kRRdg'](existsSync,_0x537db7))return{};try{const _0x55b9cb=await _0xea6ede[_0x47df4c(0x1e4)](readFile,_0x537db7,_0xea6ede['ClGTA']),_0x2c4d69=JSON[_0x47df4c(0x1ea)](_0x55b9cb);if(!_0x2c4d69||typeof _0x2c4d69!=='object'||Array['isArray'](_0x2c4d69))return{};const _0x22f46b={},_0x56ef99=_0x2c4d69['model'];return _0xea6ede[_0x47df4c(0x1e8)](typeof _0x56ef99,_0x47df4c(0x1ee))&&(_0x22f46b['model']=_0x56ef99),_0x22f46b;}catch(_0x21152a){const _0x55c7a1=_0x21152a instanceof Error?_0x21152a['message']:String(_0x21152a);return console[_0x47df4c(0x1e5)](_0x47df4c(0x1eb)+_0x537db7+':\x20'+_0x55c7a1),{};}}
1
+ (function(_0x41eb7a,_0x82fd52){const _0x59265d=_0x7051,_0x46ebc0=_0x41eb7a();while(!![]){try{const _0x28a69b=-parseInt(_0x59265d(0x1b8))/0x1*(parseInt(_0x59265d(0x1b2))/0x2)+-parseInt(_0x59265d(0x1b6))/0x3*(parseInt(_0x59265d(0x1af))/0x4)+-parseInt(_0x59265d(0x1b9))/0x5*(parseInt(_0x59265d(0x1ae))/0x6)+parseInt(_0x59265d(0x1bd))/0x7+-parseInt(_0x59265d(0x1b1))/0x8*(-parseInt(_0x59265d(0x1c4))/0x9)+parseInt(_0x59265d(0x1b5))/0xa*(-parseInt(_0x59265d(0x1bc))/0xb)+parseInt(_0x59265d(0x1bf))/0xc;if(_0x28a69b===_0x82fd52)break;else _0x46ebc0['push'](_0x46ebc0['shift']());}catch(_0x2ce612){_0x46ebc0['push'](_0x46ebc0['shift']());}}}(_0x4aef,0x76d62));import{readFile}from'fs/promises';function _0x7051(_0x270f1b,_0x536624){_0x270f1b=_0x270f1b-0x1ae;const _0x4aef80=_0x4aef();let _0x705171=_0x4aef80[_0x270f1b];return _0x705171;}function _0x4aef(){const _0x5a0dfa=['model','kWwJI','30MAxueu','3cvSZJh','object','9byOjRj','50opZpak','BmxKf','utf-8','1875368mQBVZW','5018475MfHSzD','GRvzT','12082788FsOhoA','string','isArray','ktelg','parse','2538QxbhfK','539052MmEKXr','687292sGZpvf','config.json','21624AwJIEb','92802RqVFrL'];_0x4aef=function(){return _0x5a0dfa;};return _0x4aef();}import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x10f883=_0x7051,_0x6d7a79={'BmxKf':function(_0x47df21){return _0x47df21();}};return join(_0x6d7a79[_0x10f883(0x1ba)](getRangerDir),_0x10f883(0x1b0));}export async function loadRangerConfig(){const _0x168a1d=_0x7051,_0x4ff315={'BFcym':function(_0x45806e){return _0x45806e();},'oOElK':function(_0x33ef50,_0x155fb7){return _0x33ef50(_0x155fb7);},'ktelg':function(_0x2c1adb,_0x279d50){return _0x2c1adb!==_0x279d50;},'GRvzT':function(_0x285bdb,_0x3a74d9){return _0x285bdb===_0x3a74d9;},'kWwJI':function(_0x56c977,_0x33dbcb){return _0x56c977 instanceof _0x33dbcb;}},_0x15ca47=_0x4ff315['BFcym'](getRangerConfigPath);if(!_0x4ff315['oOElK'](existsSync,_0x15ca47))return{};try{const _0x70b9c4=await readFile(_0x15ca47,_0x168a1d(0x1bb)),_0x2b1996=JSON[_0x168a1d(0x1c3)](_0x70b9c4);if(!_0x2b1996||_0x4ff315[_0x168a1d(0x1c2)](typeof _0x2b1996,_0x168a1d(0x1b7))||Array[_0x168a1d(0x1c1)](_0x2b1996))return{};const _0x2a50d0={},_0x58a4e=_0x2b1996['model'];return _0x4ff315[_0x168a1d(0x1be)](typeof _0x58a4e,_0x168a1d(0x1c0))&&(_0x2a50d0[_0x168a1d(0x1b3)]=_0x58a4e),_0x2a50d0;}catch(_0x2eec88){const _0x1b923d=_0x4ff315[_0x168a1d(0x1b4)](_0x2eec88,Error)?_0x2eec88['message']:String(_0x2eec88);return console['warn']('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x15ca47+':\x20'+_0x1b923d),{};}}
@@ -1 +1 @@
1
- (function(_0x117a47,_0x55dd94){const _0x3ba611=_0x8930,_0x4b7eca=_0x117a47();while(!![]){try{const _0x226d20=-parseInt(_0x3ba611(0xd9))/0x1*(parseInt(_0x3ba611(0xda))/0x2)+parseInt(_0x3ba611(0xde))/0x3*(-parseInt(_0x3ba611(0xe1))/0x4)+-parseInt(_0x3ba611(0xdd))/0x5*(parseInt(_0x3ba611(0xe3))/0x6)+parseInt(_0x3ba611(0xe9))/0x7+-parseInt(_0x3ba611(0xe6))/0x8+parseInt(_0x3ba611(0xea))/0x9+parseInt(_0x3ba611(0xe0))/0xa;if(_0x226d20===_0x55dd94)break;else _0x4b7eca['push'](_0x4b7eca['shift']());}catch(_0x161c9d){_0x4b7eca['push'](_0x4b7eca['shift']());}}}(_0x5db9,0xd7749));import{dirname,join,parse}from'path';function _0x8930(_0x22f145,_0x2e3f7f){_0x22f145=_0x22f145-0xd7;const _0x5db9c6=_0x5db9();let _0x89302b=_0x5db9c6[_0x22f145];return _0x89302b;}import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x4534b6=_0x8930,_0x2f49a7={'jUuOV':function(_0x3e0fbd,_0x4b9d48){return _0x3e0fbd(_0x4b9d48);},'zQXjo':'.ranger','YrgDT':function(_0x1832f8,_0x439e68,_0x2dc7b0){return _0x1832f8(_0x439e68,_0x2dc7b0);},'ORxPi':function(_0x3efcf2){return _0x3efcf2();}};let _0x272ce9=process['cwd']();const _0x3442aa=_0x2f49a7[_0x4534b6(0xe8)](parse,_0x272ce9)['root'];while(_0x272ce9!==_0x3442aa){if(_0x2f49a7['jUuOV'](existsSync,join(_0x272ce9,_0x2f49a7[_0x4534b6(0xe5)])))return _0x272ce9;_0x272ce9=_0x2f49a7['jUuOV'](dirname,_0x272ce9);}if(existsSync(_0x2f49a7[_0x4534b6(0xe2)](join,_0x3442aa,_0x2f49a7['zQXjo'])))return _0x3442aa;const _0xa0fbf9=_0x2f49a7[_0x4534b6(0xe7)](findGitRoot);if(_0xa0fbf9)return _0xa0fbf9;return process[_0x4534b6(0xdb)]();}export function getRangerDir(){const _0x28efe5=_0x8930,_0x29a3cb={'ZMswN':'.ranger'};return join(getRangerRoot(),_0x29a3cb[_0x28efe5(0xdf)]);}export function findGitRoot(){const _0x27c164=_0x8930,_0x4e812d={'zLJiD':function(_0xbd99,_0x36f90a){return _0xbd99(_0x36f90a);},'FwcVL':function(_0x5115e2,_0x20464b){return _0x5115e2!==_0x20464b;},'FHNKN':function(_0x3d39b4,_0x48361f){return _0x3d39b4(_0x48361f);}};let _0x57a84d=process['cwd']();const _0x3c2d9b=_0x4e812d[_0x27c164(0xdc)](parse,_0x57a84d)['root'];while(_0x4e812d['FwcVL'](_0x57a84d,_0x3c2d9b)){if(_0x4e812d['zLJiD'](existsSync,join(_0x57a84d,_0x27c164(0xd8))))return _0x57a84d;_0x57a84d=dirname(_0x57a84d);}if(_0x4e812d[_0x27c164(0xe4)](existsSync,join(_0x3c2d9b,'.git')))return _0x3c2d9b;return null;}function _0x5db9(){const _0x3618f6=['ORxPi','jUuOV','4331495cjorzN','9427743iUGEni','.ranger','.git','117251uaXANJ','18qqCRiX','cwd','zLJiD','5AnMDBa','15otiShn','ZMswN','25284000xDOSnm','795996ZxbSPc','YrgDT','7374198vYQBNp','FHNKN','zQXjo','263360hrMcvP'];_0x5db9=function(){return _0x3618f6;};return _0x5db9();}export function getRangerHomeDir(){const _0x20dc8c=_0x8930;return join(homedir(),_0x20dc8c(0xd7));}
1
+ (function(_0x393e77,_0x5636ae){const _0x24342f=_0x4e03,_0x595529=_0x393e77();while(!![]){try{const _0x1eed89=parseInt(_0x24342f(0x1b0))/0x1*(-parseInt(_0x24342f(0x1af))/0x2)+parseInt(_0x24342f(0x1ba))/0x3*(-parseInt(_0x24342f(0x1b3))/0x4)+parseInt(_0x24342f(0x1b9))/0x5*(parseInt(_0x24342f(0x1b5))/0x6)+parseInt(_0x24342f(0x1b7))/0x7+-parseInt(_0x24342f(0x1bc))/0x8*(-parseInt(_0x24342f(0x1ab))/0x9)+-parseInt(_0x24342f(0x1be))/0xa*(parseInt(_0x24342f(0x1bd))/0xb)+parseInt(_0x24342f(0x1b6))/0xc*(parseInt(_0x24342f(0x1b4))/0xd);if(_0x1eed89===_0x5636ae)break;else _0x595529['push'](_0x595529['shift']());}catch(_0x51aa93){_0x595529['push'](_0x595529['shift']());}}}(_0x2afe,0x1bdec));import{dirname,join,parse}from'path';function _0x4e03(_0x1ca064,_0x4536eb){_0x1ca064=_0x1ca064-0x1aa;const _0x2afe0d=_0x2afe();let _0x4e0302=_0x2afe0d[_0x1ca064];return _0x4e0302;}import{existsSync}from'fs';function _0x2afe(){const _0x3d44a1=['117VlODCh','30yACPVb','516084dkvHYU','709625fZTMmS','Ssinl','23340TetQzp','8661YIkaNY','YgkIl','32UuXLvi','33LsxUGU','609560DVVjoj','InJox','BOttX','179883msFgVb','cwd','PBDWO','REUsD','50ZRAjaJ','3589rOyHBY','uvxyC','.ranger','284zUxPWs'];_0x2afe=function(){return _0x3d44a1;};return _0x2afe();}import{homedir}from'os';export function getRangerRoot(){const _0x21ea44=_0x4e03,_0xed9578={'REUsD':function(_0xb810f9,_0x4bbfb4){return _0xb810f9(_0x4bbfb4);},'PBDWO':function(_0x2d6a29,_0x176169){return _0x2d6a29!==_0x176169;},'YgkIl':function(_0x8b2094,_0x319966){return _0x8b2094(_0x319966);},'BOttX':'.ranger'};let _0x39dd70=process['cwd']();const _0x4eba97=_0xed9578[_0x21ea44(0x1ae)](parse,_0x39dd70)['root'];while(_0xed9578[_0x21ea44(0x1ad)](_0x39dd70,_0x4eba97)){if(_0xed9578[_0x21ea44(0x1bb)](existsSync,join(_0x39dd70,'.ranger')))return _0x39dd70;_0x39dd70=_0xed9578['YgkIl'](dirname,_0x39dd70);}if(existsSync(join(_0x4eba97,_0xed9578[_0x21ea44(0x1aa)])))return _0x4eba97;const _0x34ac5b=findGitRoot();if(_0x34ac5b)return _0x34ac5b;return process[_0x21ea44(0x1ac)]();}export function getRangerDir(){const _0x4fd97d=_0x4e03,_0x7bcf7e={'uvxyC':function(_0x1a5778){return _0x1a5778();}};return join(_0x7bcf7e[_0x4fd97d(0x1b1)](getRangerRoot),_0x4fd97d(0x1b2));}export function findGitRoot(){const _0x21e241=_0x4e03,_0x3cb3fc={'RNmKd':function(_0x28005e,_0x4ed788){return _0x28005e(_0x4ed788);},'JbkGQ':function(_0x7eba72,_0x8cbbb4){return _0x7eba72(_0x8cbbb4);},'InJox':'.git'};let _0x2fbed5=process['cwd']();const _0x29eb75=parse(_0x2fbed5)['root'];while(_0x2fbed5!==_0x29eb75){if(existsSync(join(_0x2fbed5,'.git')))return _0x2fbed5;_0x2fbed5=_0x3cb3fc['RNmKd'](dirname,_0x2fbed5);}if(_0x3cb3fc['JbkGQ'](existsSync,join(_0x29eb75,_0x3cb3fc[_0x21e241(0x1bf)])))return _0x29eb75;return null;}export function getRangerHomeDir(){const _0x583785=_0x4e03,_0xa8257c={'Ssinl':function(_0x174deb){return _0x174deb();}};return join(_0xa8257c[_0x583785(0x1b8)](homedir),_0x583785(0x1b2));}
@@ -1 +1 @@
1
- (function(_0x422ad5,_0x44686c){const _0x34aac5=_0x54d7,_0x1a7124=_0x422ad5();while(!![]){try{const _0x2e9536=parseInt(_0x34aac5(0xe0))/0x1+-parseInt(_0x34aac5(0xdb))/0x2+parseInt(_0x34aac5(0xc6))/0x3+-parseInt(_0x34aac5(0xd0))/0x4*(-parseInt(_0x34aac5(0xdc))/0x5)+-parseInt(_0x34aac5(0xe2))/0x6+-parseInt(_0x34aac5(0xd6))/0x7*(-parseInt(_0x34aac5(0xc8))/0x8)+-parseInt(_0x34aac5(0xe6))/0x9*(-parseInt(_0x34aac5(0xc9))/0xa);if(_0x2e9536===_0x44686c)break;else _0x1a7124['push'](_0x1a7124['shift']());}catch(_0x2f7897){_0x1a7124['push'](_0x1a7124['shift']());}}}(_0x15c9,0xb5337));import{readdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';export async function collectScreenshots(_0x31292d){const _0x418e49=_0x54d7,_0x20e397={'YblEu':function(_0x30af50,_0xc688d4){return _0x30af50(_0xc688d4);},'vzhdz':function(_0x1d59ca,_0xec7e14,_0x4556cc){return _0x1d59ca(_0xec7e14,_0x4556cc);}},_0x27a4b6=[],_0x570310=[];if(!existsSync(_0x31292d))return{'screenshots':_0x27a4b6,'paths':_0x570310};const _0x4882fe=await _0x20e397[_0x418e49(0xe4)](readdir,_0x31292d),_0x288976=_0x4882fe[_0x418e49(0xc4)](_0x381bc7=>/\.(png|jpg|jpeg|gif|webp)$/i[_0x418e49(0xd8)](_0x381bc7))[_0x418e49(0xde)]();for(const _0x3c31d7 of _0x288976){const _0x1fdc6e=_0x20e397[_0x418e49(0xe7)](join,_0x31292d,_0x3c31d7);_0x27a4b6['push']({'filename':_0x3c31d7,'path':_0x1fdc6e,'relativePath':'./'+_0x3c31d7}),_0x570310['push'](_0x1fdc6e);}return{'screenshots':_0x27a4b6,'paths':_0x570310};}function _0x15c9(){const _0x20eb9a=['VdYBK','1420614ARtgXm','length','1018104flCyjg','6140180YxTvwc','relativePath','##\x20Result','split','includes','push','toUpperCase','2760364MdpXka','toFixed','QOsho','###\x20','**Duration:**\x20','###\x20Summary','21BeaVGK','filename','test',']\x20Issue','MAJOR','1223058KwxAwc','5ZCbKPl','severity','sort','find','25873JIrGHw','replace','8673594qruMMq','---','YblEu','##\x20Screenshots\x20(','18anlIJW','vzhdz','ISSUES\x20FOUND','join','odFYM','map','filter'];_0x15c9=function(){return _0x20eb9a;};return _0x15c9();}function _0x54d7(_0x22954c,_0x57b5c2){_0x22954c=_0x22954c-0xc1;const _0x15c985=_0x15c9();let _0x54d7e6=_0x15c985[_0x22954c];return _0x54d7e6;}function getSeverityEmoji(_0x5c7288){const _0x23aa47=_0x54d7,_0x422140={'VdYBK':_0x23aa47(0xda)};switch(_0x5c7288){case'BLOCKER':return'🔴';case _0x422140[_0x23aa47(0xc5)]:return'🟠';default:return'⚪';}}function formatScreenshotCaption(_0x240a55){const _0x5dd1df=_0x54d7,_0x47b5da=_0x240a55['replace'](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0x14a462=_0x47b5da[_0x5dd1df(0xe1)](/^\d+-/,'');return _0x14a462[_0x5dd1df(0xcc)]('-')[_0x5dd1df(0xc3)](_0x571e82=>_0x571e82['charAt'](0x0)[_0x5dd1df(0xcf)]()+_0x571e82['slice'](0x1))[_0x5dd1df(0xc1)]('\x20');}export function generateMarkdownReport(_0x4d1a53){const _0x40bbc8=_0x54d7,_0x2e4dd7={'ZBzAt':_0x40bbc8(0xe8),'odFYM':function(_0x385304,_0x175da5){return _0x385304>_0x175da5;},'QOsho':function(_0x1be78e,_0x775be1){return _0x1be78e(_0x775be1);}},{sessionId:_0x52461b,task:_0x3a990e,url:_0x511ff0,success:_0x15330a,summary:_0xde1b86,issues:_0x3aefd0,screenshots:_0x3ab578,durationMs:_0x40313c,traceViewerUrl:_0x5beda2}=_0x4d1a53,_0x4ca807=new Date()['toISOString'](),_0x20cae8=(_0x40313c/0x3e8)[_0x40bbc8(0xd1)](0x1),_0x239cff=[];_0x239cff[_0x40bbc8(0xce)]('#\x20Verification\x20Report'),_0x239cff['push'](''),_0x239cff['push']('**Session:**\x20`'+_0x52461b+'`'),_0x239cff[_0x40bbc8(0xce)]('**Generated:**\x20'+_0x4ca807),_0x239cff[_0x40bbc8(0xce)](_0x40bbc8(0xd4)+_0x20cae8+'s'),_0x239cff[_0x40bbc8(0xce)](''),_0x239cff[_0x40bbc8(0xce)]('##\x20Task'),_0x239cff[_0x40bbc8(0xce)](''),_0x239cff[_0x40bbc8(0xce)]('**URL:**\x20'+_0x511ff0),_0x239cff['push'](''),_0x239cff['push']('>\x20'+_0x3a990e),_0x239cff[_0x40bbc8(0xce)](''),_0x239cff['push'](_0x40bbc8(0xcb)),_0x239cff[_0x40bbc8(0xce)]('');const _0x496ef2=_0x15330a?'✅':'❌';_0x239cff[_0x40bbc8(0xce)]('**Status:**\x20'+_0x496ef2+'\x20'+(_0x15330a?'PASSED':_0x2e4dd7['ZBzAt'])),_0x239cff[_0x40bbc8(0xce)](''),_0x239cff['push'](_0x40bbc8(0xd5)),_0x239cff[_0x40bbc8(0xce)](''),_0x239cff[_0x40bbc8(0xce)](_0xde1b86),_0x239cff['push']('');if(_0x3aefd0&&_0x2e4dd7[_0x40bbc8(0xc2)](_0x3aefd0[_0x40bbc8(0xc7)],0x0)){_0x239cff['push']('###\x20Issues\x20Found\x20('+_0x3aefd0[_0x40bbc8(0xc7)]+')'),_0x239cff[_0x40bbc8(0xce)]('');for(const _0xcd298e of _0x3aefd0){const _0x5a115b=_0x2e4dd7[_0x40bbc8(0xd2)](getSeverityEmoji,_0xcd298e[_0x40bbc8(0xdd)]);_0x239cff['push']('####\x20'+_0x5a115b+'\x20['+_0xcd298e['severity']+_0x40bbc8(0xd9)),_0x239cff['push'](''),_0x239cff['push'](_0xcd298e['description']),_0x239cff[_0x40bbc8(0xce)]('');if(_0xcd298e['screenshot']){const _0x2e26de=_0xcd298e['screenshot'],_0x2db4fc=_0x3ab578[_0x40bbc8(0xdf)](_0x7e9eb3=>_0x7e9eb3[_0x40bbc8(0xd7)]===_0x2e26de||_0x7e9eb3['filename'][_0x40bbc8(0xcd)](_0x2e26de));_0x2db4fc&&(_0x239cff['push']('**Screenshot:**'),_0x239cff[_0x40bbc8(0xce)](''),_0x239cff[_0x40bbc8(0xce)]('!['+_0x2e26de+']('+_0x2db4fc[_0x40bbc8(0xca)]+')'),_0x239cff[_0x40bbc8(0xce)](''));}}}if(_0x3ab578[_0x40bbc8(0xc7)]>0x0){_0x239cff['push'](_0x40bbc8(0xe5)+_0x3ab578['length']+')'),_0x239cff['push']('');for(const _0x1d25df of _0x3ab578){const _0x2ec312=formatScreenshotCaption(_0x1d25df[_0x40bbc8(0xd7)]);_0x239cff[_0x40bbc8(0xce)](_0x40bbc8(0xd3)+_0x2ec312),_0x239cff['push'](''),_0x239cff[_0x40bbc8(0xce)]('!['+_0x1d25df['filename']+']('+_0x1d25df['relativePath']+')'),_0x239cff[_0x40bbc8(0xce)]('');}}return _0x5beda2&&(_0x239cff['push'](_0x40bbc8(0xe3)),_0x239cff['push'](''),_0x239cff[_0x40bbc8(0xce)]('**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer]('+_0x5beda2+')'),_0x239cff[_0x40bbc8(0xce)]('')),_0x239cff['join']('\x0a');}
1
+ (function(_0x3de847,_0x34ddbb){const _0x2ffc95=_0x1326,_0x1c0e5b=_0x3de847();while(!![]){try{const _0x3e9334=-parseInt(_0x2ffc95(0x1eb))/0x1+parseInt(_0x2ffc95(0x1ed))/0x2*(parseInt(_0x2ffc95(0x1f4))/0x3)+parseInt(_0x2ffc95(0x1d7))/0x4*(parseInt(_0x2ffc95(0x1db))/0x5)+-parseInt(_0x2ffc95(0x1cf))/0x6*(-parseInt(_0x2ffc95(0x1e9))/0x7)+-parseInt(_0x2ffc95(0x1ee))/0x8+parseInt(_0x2ffc95(0x1f2))/0x9+-parseInt(_0x2ffc95(0x1e3))/0xa;if(_0x3e9334===_0x34ddbb)break;else _0x1c0e5b['push'](_0x1c0e5b['shift']());}catch(_0x3152dc){_0x1c0e5b['push'](_0x1c0e5b['shift']());}}}(_0x2afb,0x4170c));import{readdir}from'fs/promises';function _0x2afb(){const _0x265f85=['###\x20Issues\x20Found\x20(','toUpperCase','**Status:**\x20','####\x20','sort','length','includes','4359820zwIgBV','BLOCKER','push','relativePath','**Screenshot:**','**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer](','42ukUgtE','###\x20Summary','63537fXTlzo','join','47258YFgCnk','2628336hAgKaC','##\x20Task','---','screenshot','2093553mFBDwI','dnABC','45WNMCHs','###\x20','159468fOtSYo','map','jXIyh','#\x20Verification\x20Report','filename','**URL:**\x20','filter','MAJOR','10060MixiqO','**Generated:**\x20','split','severity','695akineT'];_0x2afb=function(){return _0x265f85;};return _0x2afb();}function _0x1326(_0x2b1a07,_0x4854cb){_0x2b1a07=_0x2b1a07-0x1ce;const _0x2afbd8=_0x2afb();let _0x1326df=_0x2afbd8[_0x2b1a07];return _0x1326df;}import{join}from'path';import{existsSync}from'fs';export async function collectScreenshots(_0x3badb1){const _0x28e04f=_0x1326,_0x5ce353={'pQESW':function(_0x4b7ba2,_0x42ec08){return _0x4b7ba2(_0x42ec08);},'jGDCc':function(_0x31f8c5,_0x4c4f8c,_0x363d92){return _0x31f8c5(_0x4c4f8c,_0x363d92);}},_0x5955d4=[],_0x52508d=[];if(!_0x5ce353['pQESW'](existsSync,_0x3badb1))return{'screenshots':_0x5955d4,'paths':_0x52508d};const _0x1ca73d=await readdir(_0x3badb1),_0x52acda=_0x1ca73d[_0x28e04f(0x1d5)](_0x2c14c6=>/\.(png|jpg|jpeg|gif|webp)$/i['test'](_0x2c14c6))[_0x28e04f(0x1e0)]();for(const _0x37af52 of _0x52acda){const _0x2ee621=_0x5ce353['jGDCc'](join,_0x3badb1,_0x37af52);_0x5955d4['push']({'filename':_0x37af52,'path':_0x2ee621,'relativePath':'./'+_0x37af52}),_0x52508d['push'](_0x2ee621);}return{'screenshots':_0x5955d4,'paths':_0x52508d};}function getSeverityEmoji(_0x1791a7){const _0x1aba33=_0x1326;switch(_0x1791a7){case _0x1aba33(0x1e4):return'🔴';case _0x1aba33(0x1d6):return'🟠';default:return'⚪';}}function formatScreenshotCaption(_0x34cdc5){const _0x27405e=_0x1326,_0x1f373e=_0x34cdc5['replace'](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0x235922=_0x1f373e['replace'](/^\d+-/,'');return _0x235922[_0x27405e(0x1d9)]('-')[_0x27405e(0x1d0)](_0x36ec3c=>_0x36ec3c['charAt'](0x0)[_0x27405e(0x1dd)]()+_0x36ec3c['slice'](0x1))[_0x27405e(0x1ec)]('\x20');}export function generateMarkdownReport(_0x3935ed){const _0x2d1a70=_0x1326,_0x407f5c={'pIguK':function(_0x2e5e70,_0x430c53){return _0x2e5e70/_0x430c53;},'dnABC':'PASSED','jXIyh':function(_0x2893b3,_0x5834ae){return _0x2893b3>_0x5834ae;},'lMGCh':function(_0x4f0263,_0xb4d36c){return _0x4f0263(_0xb4d36c);}},{sessionId:_0x2d386e,task:_0x1072b6,url:_0x276b2a,success:_0x5a3cfd,summary:_0x38351a,issues:_0x57f317,screenshots:_0x4cebbd,durationMs:_0x101a20,traceViewerUrl:_0x2518dc}=_0x3935ed,_0x1f12b6=new Date()['toISOString'](),_0x51dec4=_0x407f5c['pIguK'](_0x101a20,0x3e8)['toFixed'](0x1),_0x179c6c=[];_0x179c6c['push'](_0x2d1a70(0x1d2)),_0x179c6c['push'](''),_0x179c6c[_0x2d1a70(0x1e5)]('**Session:**\x20`'+_0x2d386e+'`'),_0x179c6c[_0x2d1a70(0x1e5)](_0x2d1a70(0x1d8)+_0x1f12b6),_0x179c6c['push']('**Duration:**\x20'+_0x51dec4+'s'),_0x179c6c[_0x2d1a70(0x1e5)](''),_0x179c6c['push'](_0x2d1a70(0x1ef)),_0x179c6c[_0x2d1a70(0x1e5)](''),_0x179c6c['push'](_0x2d1a70(0x1d4)+_0x276b2a),_0x179c6c['push'](''),_0x179c6c[_0x2d1a70(0x1e5)]('>\x20'+_0x1072b6),_0x179c6c['push'](''),_0x179c6c[_0x2d1a70(0x1e5)]('##\x20Result'),_0x179c6c[_0x2d1a70(0x1e5)]('');const _0xd69cfe=_0x5a3cfd?'✅':'❌';_0x179c6c['push'](_0x2d1a70(0x1de)+_0xd69cfe+'\x20'+(_0x5a3cfd?_0x407f5c[_0x2d1a70(0x1f3)]:'ISSUES\x20FOUND')),_0x179c6c[_0x2d1a70(0x1e5)](''),_0x179c6c['push'](_0x2d1a70(0x1ea)),_0x179c6c[_0x2d1a70(0x1e5)](''),_0x179c6c['push'](_0x38351a),_0x179c6c['push']('');if(_0x57f317&&_0x57f317['length']>0x0){_0x179c6c['push'](_0x2d1a70(0x1dc)+_0x57f317[_0x2d1a70(0x1e1)]+')'),_0x179c6c['push']('');for(const _0x3ff110 of _0x57f317){const _0x21c7eb=getSeverityEmoji(_0x3ff110[_0x2d1a70(0x1da)]);_0x179c6c[_0x2d1a70(0x1e5)](_0x2d1a70(0x1df)+_0x21c7eb+'\x20['+_0x3ff110['severity']+']\x20Issue'),_0x179c6c[_0x2d1a70(0x1e5)](''),_0x179c6c[_0x2d1a70(0x1e5)](_0x3ff110['description']),_0x179c6c['push']('');if(_0x3ff110[_0x2d1a70(0x1f1)]){const _0x29f68a=_0x3ff110[_0x2d1a70(0x1f1)],_0x3dbf5d=_0x4cebbd['find'](_0x567203=>_0x567203[_0x2d1a70(0x1d3)]===_0x29f68a||_0x567203['filename'][_0x2d1a70(0x1e2)](_0x29f68a));_0x3dbf5d&&(_0x179c6c[_0x2d1a70(0x1e5)](_0x2d1a70(0x1e7)),_0x179c6c[_0x2d1a70(0x1e5)](''),_0x179c6c['push']('!['+_0x29f68a+']('+_0x3dbf5d[_0x2d1a70(0x1e6)]+')'),_0x179c6c[_0x2d1a70(0x1e5)](''));}}}if(_0x407f5c[_0x2d1a70(0x1d1)](_0x4cebbd[_0x2d1a70(0x1e1)],0x0)){_0x179c6c[_0x2d1a70(0x1e5)]('##\x20Screenshots\x20('+_0x4cebbd[_0x2d1a70(0x1e1)]+')'),_0x179c6c[_0x2d1a70(0x1e5)]('');for(const _0x1270c of _0x4cebbd){const _0x40ba9b=_0x407f5c['lMGCh'](formatScreenshotCaption,_0x1270c[_0x2d1a70(0x1d3)]);_0x179c6c['push'](_0x2d1a70(0x1ce)+_0x40ba9b),_0x179c6c['push'](''),_0x179c6c['push']('!['+_0x1270c['filename']+']('+_0x1270c[_0x2d1a70(0x1e6)]+')'),_0x179c6c['push']('');}}return _0x2518dc&&(_0x179c6c[_0x2d1a70(0x1e5)](_0x2d1a70(0x1f0)),_0x179c6c[_0x2d1a70(0x1e5)](''),_0x179c6c['push'](_0x2d1a70(0x1e8)+_0x2518dc+')'),_0x179c6c[_0x2d1a70(0x1e5)]('')),_0x179c6c['join']('\x0a');}
@@ -1 +1 @@
1
- (function(_0x9e7e93,_0x4d44f1){const _0x46bcc3=_0x146c,_0x3aa4ff=_0x9e7e93();while(!![]){try{const _0x50f0ac=parseInt(_0x46bcc3(0x9a))/0x1+-parseInt(_0x46bcc3(0xa4))/0x2+parseInt(_0x46bcc3(0x9b))/0x3+parseInt(_0x46bcc3(0xa3))/0x4*(-parseInt(_0x46bcc3(0x99))/0x5)+parseInt(_0x46bcc3(0x9f))/0x6*(parseInt(_0x46bcc3(0xa1))/0x7)+-parseInt(_0x46bcc3(0xa6))/0x8+parseInt(_0x46bcc3(0xa0))/0x9;if(_0x50f0ac===_0x4d44f1)break;else _0x3aa4ff['push'](_0x3aa4ff['shift']());}catch(_0x46bb17){_0x3aa4ff['push'](_0x3aa4ff['shift']());}}}(_0x405c,0xc958e));function _0x146c(_0x2bc5dc,_0x51d0df){_0x2bc5dc=_0x2bc5dc-0x99;const _0x405ce8=_0x405c();let _0x146c45=_0x405ce8[_0x2bc5dc];return _0x146c45;}function _0x405c(){const _0x50bb8f=['2658357tSAMaM','18774WXKTJZ','maxRetries','4yVGeyD','2600926pTuqzj','label','3310472awVVRp','baseDelayMs','2583155LuerDj','1513812BKTyGe','3618618cHmREP','error','qZpFP','),\x20retrying\x20in\x20','90TlTrvM'];_0x405c=function(){return _0x50bb8f;};return _0x405c();}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x55703b,_0x30e85f){const _0x131255=_0x146c,_0x374c54={'FLTRO':function(_0x1dd38d){return _0x1dd38d();},'DFlFd':function(_0x2edb68,_0x1246ee){return _0x2edb68<_0x1246ee;},'qZpFP':function(_0xdaf4ac,_0x392675){return _0xdaf4ac*_0x392675;}},_0x1d926a=_0x30e85f?.[_0x131255(0xa2)]??DEFAULT_MAX_RETRIES,_0x585102=_0x30e85f?.[_0x131255(0xa7)]??DEFAULT_BASE_DELAY_MS;let _0x1da90e;for(let _0x3c54ae=0x0;_0x3c54ae<=_0x1d926a;_0x3c54ae++){try{return await _0x374c54['FLTRO'](_0x55703b);}catch(_0x5c833c){_0x1da90e=_0x5c833c instanceof Error?_0x5c833c:new Error(String(_0x5c833c));if(_0x374c54['DFlFd'](_0x3c54ae,_0x1d926a)){const _0x42c6d5=_0x374c54[_0x131255(0x9d)](_0x585102,Math['pow'](0x2,_0x3c54ae));_0x30e85f?.['label']&&console[_0x131255(0x9c)](_0x30e85f[_0x131255(0xa5)]+'\x20failed\x20(attempt\x20'+(_0x3c54ae+0x1)+'/'+(_0x1d926a+0x1)+_0x131255(0x9e)+_0x42c6d5+'ms...'),await new Promise(_0x2eea25=>setTimeout(_0x2eea25,_0x42c6d5));}}}throw _0x1da90e;}
1
+ function _0x1313(_0x56156c,_0x5d9337){_0x56156c=_0x56156c-0xd9;const _0x406e85=_0x406e();let _0x1313e4=_0x406e85[_0x56156c];return _0x1313e4;}(function(_0x48b61c,_0x13ff9e){const _0x311bb7=_0x1313,_0x463509=_0x48b61c();while(!![]){try{const _0x279bf2=-parseInt(_0x311bb7(0xdc))/0x1*(parseInt(_0x311bb7(0xe9))/0x2)+parseInt(_0x311bb7(0xe0))/0x3*(parseInt(_0x311bb7(0xd9))/0x4)+parseInt(_0x311bb7(0xe4))/0x5*(parseInt(_0x311bb7(0xe3))/0x6)+-parseInt(_0x311bb7(0xe2))/0x7*(parseInt(_0x311bb7(0xdf))/0x8)+-parseInt(_0x311bb7(0xe7))/0x9*(-parseInt(_0x311bb7(0xda))/0xa)+parseInt(_0x311bb7(0xdb))/0xb*(-parseInt(_0x311bb7(0xdd))/0xc)+parseInt(_0x311bb7(0xe5))/0xd*(parseInt(_0x311bb7(0xe1))/0xe);if(_0x279bf2===_0x13ff9e)break;else _0x463509['push'](_0x463509['shift']());}catch(_0x4b8d59){_0x463509['push'](_0x463509['shift']());}}}(_0x406e,0xefa1c));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x406e(){const _0x3c03aa=['\x20failed\x20(attempt\x20','128882qaSLGi','3788HHWZGU','10AJYPhj','44TAoohp','16IzYvOg','3135036sfAOBl','error','40mTilLO','1233rgUYXh','24942092gFdlBb','1862126lWHZyo','3156HoxgtU','12395sYJwAN','13TgEroh','),\x20retrying\x20in\x20','8216469kpWCLv'];_0x406e=function(){return _0x3c03aa;};return _0x406e();}export async function withRetry(_0x5e0ee6,_0x4a426d){const _0x9f30b=_0x1313,_0x2a4a21=_0x4a426d?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x2935e3=_0x4a426d?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x3e1aea;for(let _0x1e2264=0x0;_0x1e2264<=_0x2a4a21;_0x1e2264++){try{return await _0x5e0ee6();}catch(_0x41fc5f){_0x3e1aea=_0x41fc5f instanceof Error?_0x41fc5f:new Error(String(_0x41fc5f));if(_0x1e2264<_0x2a4a21){const _0x489b51=_0x2935e3*Math['pow'](0x2,_0x1e2264);_0x4a426d?.['label']&&console[_0x9f30b(0xde)](_0x4a426d['label']+_0x9f30b(0xe8)+(_0x1e2264+0x1)+'/'+(_0x2a4a21+0x1)+_0x9f30b(0xe6)+_0x489b51+'ms...'),await new Promise(_0x394da4=>setTimeout(_0x394da4,_0x489b51));}}}throw _0x3e1aea;}
@@ -1 +1 @@
1
- const _0x18238e=_0xedf2;(function(_0x5ba58f,_0x19fc03){const _0x44804d=_0xedf2,_0x41355a=_0x5ba58f();while(!![]){try{const _0x1f1f08=parseInt(_0x44804d(0x222))/0x1+-parseInt(_0x44804d(0x20b))/0x2+-parseInt(_0x44804d(0x210))/0x3+parseInt(_0x44804d(0x1f9))/0x4+parseInt(_0x44804d(0x21d))/0x5*(-parseInt(_0x44804d(0x218))/0x6)+-parseInt(_0x44804d(0x1f6))/0x7+parseInt(_0x44804d(0x224))/0x8*(parseInt(_0x44804d(0x202))/0x9);if(_0x1f1f08===_0x19fc03)break;else _0x41355a['push'](_0x41355a['shift']());}catch(_0xd62e25){_0x41355a['push'](_0x41355a['shift']());}}}(_0x44d2,0xef707));import*as _0x2ea803 from'fs';import*as _0x476632 from'path';import*as _0x29f8b1 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x476632['join'](_0x29f8b1[_0x18238e(0x1f5)](),_0x18238e(0x229),'.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x77545b=_0x18238e;try{if(_0x2ea803[_0x77545b(0x21f)](CACHE_FILE)){const _0x4c1de1=JSON[_0x77545b(0x20a)](_0x2ea803[_0x77545b(0x214)](CACHE_FILE,'utf-8'));return{'version':0x3,'sessions':_0x4c1de1['sessions']||{},'branches':_0x4c1de1['branches']||{},'lastEnabledSessionClearedAt':_0x4c1de1['lastEnabledSessionClearedAt']};}}catch{}return createEmptyCache();}function saveCache(_0x5c4859){const _0x466353=_0x18238e;try{const _0x1368e9=_0x476632['dirname'](CACHE_FILE);!_0x2ea803[_0x466353(0x21f)](_0x1368e9)&&_0x2ea803[_0x466353(0x20f)](_0x1368e9,{'recursive':!![]}),_0x2ea803[_0x466353(0x213)](CACHE_FILE,JSON[_0x466353(0x21b)](_0x5c4859,null,0x2));}catch{}}export function getCurrentBranch(){const _0x58c8a7=_0x18238e,_0x1802d3={'CYkvV':'utf-8','mZcBS':_0x58c8a7(0x212)};try{const _0x3f3043=execSync(_0x58c8a7(0x219),{'encoding':_0x1802d3[_0x58c8a7(0x203)],'stdio':[_0x58c8a7(0x22a),'pipe','pipe']})[_0x58c8a7(0x226)]();if(!_0x3f3043||_0x3f3043===_0x1802d3[_0x58c8a7(0x228)])return null;return _0x3f3043;}catch{return null;}}export function enableBranch(_0xa6cacc){const _0x2be736=_0x18238e,_0x496210={'xLQxj':function(_0x415f2d){return _0x415f2d();},'BevRQ':function(_0x8fa672,_0x4754b6){return _0x8fa672(_0x4754b6);}},_0x3850e4=_0x496210[_0x2be736(0x209)](loadCache);_0x3850e4['branches'][_0xa6cacc]=!![],_0x496210['BevRQ'](saveCache,_0x3850e4);}export function disableBranch(_0x5bbe92){const _0x4040fb={'Ehdhl':function(_0x2249bc,_0x47126e){return _0x2249bc(_0x47126e);}},_0x106c2a=loadCache();delete _0x106c2a['branches'][_0x5bbe92],_0x4040fb['Ehdhl'](saveCache,_0x106c2a);}export function isBranchEnabled(_0x4c69d3){const _0x8ef07d=_0x18238e,_0x3d4e09={'JBNNg':function(_0x2e8f0e){return _0x2e8f0e();},'OxuhM':function(_0x53eb7a,_0x1fcb28){return _0x53eb7a===_0x1fcb28;}},_0x3a3bf4=_0x3d4e09[_0x8ef07d(0x1f8)](loadCache);return _0x3d4e09[_0x8ef07d(0x21c)](_0x3a3bf4[_0x8ef07d(0x1ff)][_0x4c69d3],!![]);}function getOrCreateSession(_0x174cc3,_0x4afaa8){const _0x33886c=_0x18238e;return!_0x174cc3[_0x33886c(0x200)][_0x4afaa8]&&(_0x174cc3['sessions'][_0x4afaa8]={}),_0x174cc3['sessions'][_0x4afaa8];}export function enableSession(_0x2d005c){const _0x56149c=_0x18238e,_0x2c9874={'CcoZg':function(_0x2f0c53,_0x5f4272,_0x8955a9){return _0x2f0c53(_0x5f4272,_0x8955a9);},'NYzJD':function(_0x34440d){return _0x34440d();},'TZbYV':'main','ICXPu':'master','xFooY':function(_0x160254,_0x349baa){return _0x160254(_0x349baa);}},_0x5acf9d=loadCache(),_0x28fba2=_0x2c9874[_0x56149c(0x225)](getOrCreateSession,_0x5acf9d,_0x2d005c);_0x28fba2['enabled']=!![];const _0x5b5130=_0x2c9874['NYzJD'](getCurrentBranch);_0x5b5130&&_0x5b5130!==_0x2c9874['TZbYV']&&_0x5b5130!==_0x2c9874[_0x56149c(0x215)]&&(_0x5acf9d[_0x56149c(0x1ff)][_0x5b5130]=!![],_0x28fba2[_0x56149c(0x1f4)]=_0x5b5130),_0x2c9874[_0x56149c(0x220)](saveCache,_0x5acf9d);}export function isSessionEnabled(_0x57fc2d){const _0x78f903=_0x18238e,_0x51a8fd={'WoaHc':function(_0x44afb8,_0x5d7eff){return _0x44afb8===_0x5d7eff;},'lylqE':function(_0x14d385,_0x5bb720){return _0x14d385||_0x5bb720;}},_0x50c251=loadCache(),_0x34bdff=getCurrentBranch();if(!_0x34bdff||_0x34bdff==='main'||_0x34bdff===_0x78f903(0x204))return _0x50c251[_0x78f903(0x200)][_0x57fc2d]?.[_0x78f903(0x211)]===!![];const _0x1162e5=_0x51a8fd['WoaHc'](_0x50c251[_0x78f903(0x1ff)][_0x34bdff],!![]),_0x3d7c3c=_0x50c251[_0x78f903(0x200)][_0x57fc2d]?.[_0x78f903(0x211)]===!![];return _0x51a8fd['lylqE'](_0x1162e5,_0x3d7c3c);}export function disableSession(_0x83c5f9){const _0x18b9ab=loadCache(),_0x3de860=getOrCreateSession(_0x18b9ab,_0x83c5f9);_0x3de860['enabled']=![],saveCache(_0x18b9ab);}export function updateBranchTracking(_0x1381d2){const _0x4fc8b1=_0x18238e,_0x253d69={'xwEuR':function(_0x8a9229){return _0x8a9229();},'aNUbV':_0x4fc8b1(0x216),'WlvDp':function(_0x1cf2ea,_0x4618e6){return _0x1cf2ea===_0x4618e6;},'jlVoG':function(_0x453896,_0x333acf){return _0x453896!==_0x333acf;}},_0x17390f=_0x253d69['xwEuR'](loadCache),_0x39a3ec=_0x17390f[_0x4fc8b1(0x200)][_0x1381d2];if(!_0x39a3ec?.[_0x4fc8b1(0x211)])return;const _0x387dd0=_0x253d69['xwEuR'](getCurrentBranch);if(!_0x387dd0||_0x387dd0===_0x253d69[_0x4fc8b1(0x21a)]||_0x253d69['WlvDp'](_0x387dd0,'master'))return;_0x253d69[_0x4fc8b1(0x221)](_0x39a3ec['currentBranch'],_0x387dd0)&&(_0x17390f[_0x4fc8b1(0x1ff)][_0x387dd0]=!![],_0x39a3ec[_0x4fc8b1(0x1f4)]=_0x387dd0,saveCache(_0x17390f));}export function initBranchTracking(_0x2e9f00){const _0xb16909=_0x18238e,_0x3dd953={'XcRDm':function(_0x35a61c){return _0x35a61c();},'KbBDv':function(_0x476572,_0x517999){return _0x476572===_0x517999;},'AqsKk':function(_0x2fd2a5,_0x30df19,_0x250313){return _0x2fd2a5(_0x30df19,_0x250313);}},_0x3e7012=_0x3dd953[_0xb16909(0x1f7)](loadCache),_0x2ccace=_0x3dd953['XcRDm'](getCurrentBranch);if(!_0x2ccace||_0x2ccace==='main'||_0x3dd953[_0xb16909(0x201)](_0x2ccace,_0xb16909(0x204)))return;if(_0x3dd953[_0xb16909(0x201)](_0x3e7012['branches'][_0x2ccace],!![])){const _0x3bae6e=_0x3dd953['AqsKk'](getOrCreateSession,_0x3e7012,_0x2e9f00);_0x3bae6e['enabled']=!![],_0x3bae6e['currentBranch']=_0x2ccace,saveCache(_0x3e7012);}}function _0xedf2(_0x19ca9d,_0x34b0a4){_0x19ca9d=_0x19ca9d-0x1f4;const _0x44d260=_0x44d2();let _0xedf228=_0x44d260[_0x19ca9d];return _0xedf228;}function _0x44d2(){const _0x1a69d8=['9194427jenIRo','CYkvV','master','prompted','DPFzD','owEln','toISOString','xLQxj','parse','59748stQnqF','now','registeredAt','JCrEL','mkdirSync','1414680VwwWgl','enabled','HEAD','writeFileSync','readFileSync','ICXPu','main','wmvKm','12MJzCGs','git\x20rev-parse\x20--abbrev-ref\x20HEAD','aNUbV','stringify','OxuhM','2397035yMonnv','featureId','existsSync','xFooY','jlVoG','1654136fyPbNl','TlhHO','8oizBhW','CcoZg','trim','eeWSG','mZcBS','.claude','pipe','currentBranch','homedir','7904141eVCnRW','XcRDm','JBNNg','3577660OzTGph','lastEnabledSessionClearedAt','bZQgU','VfLOK','dlZHo','zrfqR','branches','sessions','KbBDv'];_0x44d2=function(){return _0x1a69d8;};return _0x44d2();}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x1f62e6){const _0x22878e=_0x18238e,_0x3b3ab7={'ZHqCx':function(_0x36c17d){return _0x36c17d();}},_0x572bb3=_0x3b3ab7['ZHqCx'](loadCache),_0x5040b8=_0x572bb3[_0x22878e(0x200)][_0x1f62e6];_0x5040b8?.['enabled']&&(_0x572bb3[_0x22878e(0x1fa)]=Date[_0x22878e(0x20c)](),saveCache(_0x572bb3));}export function shouldAutoEnableAfterClear(_0x1225e3){const _0x7827e0=_0x18238e,_0x2c59df={'JCrEL':function(_0x10d87a,_0x5d63fe){return _0x10d87a!==_0x5d63fe;},'bOssf':'clear','OxOPu':function(_0x4ff066){return _0x4ff066();},'owEln':function(_0x2e56cc,_0x4e99df){return _0x2e56cc<=_0x4e99df;}};if(_0x2c59df[_0x7827e0(0x20e)](_0x1225e3,_0x2c59df['bOssf']))return![];const _0x30679f=_0x2c59df['OxOPu'](loadCache),_0xe9fe58=_0x30679f['lastEnabledSessionClearedAt'];if(!_0xe9fe58)return![];const _0x19b263=Date[_0x7827e0(0x20c)]()-_0xe9fe58;return _0x2c59df[_0x7827e0(0x207)](_0x19b263,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x20e28e){const _0x35d7d3=_0x18238e,_0x14c0d4={'eeWSG':function(_0x1ff799,_0x5cae03,_0x43a8d1){return _0x1ff799(_0x5cae03,_0x43a8d1);},'WoLGI':function(_0x54cfb0){return _0x54cfb0();},'lYAbr':function(_0x277285,_0xd9e0d4){return _0x277285!==_0xd9e0d4;},'dlZHo':_0x35d7d3(0x216),'mXtQR':'master'},_0x1ca995=loadCache(),_0x53ea3a=_0x14c0d4[_0x35d7d3(0x227)](getOrCreateSession,_0x1ca995,_0x20e28e);_0x53ea3a['enabled']=!![];const _0x4e73bb=_0x14c0d4['WoLGI'](getCurrentBranch);_0x4e73bb&&_0x14c0d4['lYAbr'](_0x4e73bb,_0x14c0d4[_0x35d7d3(0x1fd)])&&_0x4e73bb!==_0x14c0d4['mXtQR']&&(_0x53ea3a['currentBranch']=_0x4e73bb),delete _0x1ca995[_0x35d7d3(0x1fa)],saveCache(_0x1ca995);}export function registerSession(_0x7ba0bb,_0x48bbf0){const _0x2ab68c=_0x18238e,_0x5d7685=loadCache(),_0x3db19e=getOrCreateSession(_0x5d7685,_0x7ba0bb);_0x3db19e['featureId']=_0x48bbf0,_0x3db19e[_0x2ab68c(0x20d)]=new Date()[_0x2ab68c(0x208)](),saveCache(_0x5d7685);}export function getSessionEntry(_0x2ddd62){const _0x5935ca=_0x18238e,_0x48c139={'wmvKm':function(_0x45647a){return _0x45647a();}},_0x328659=_0x48c139[_0x5935ca(0x217)](loadCache),_0xbd23ce=_0x328659['sessions'][_0x2ddd62];if(_0xbd23ce?.['featureId']&&_0xbd23ce?.['registeredAt'])return{'featureId':_0xbd23ce[_0x5935ca(0x21e)],'registeredAt':_0xbd23ce[_0x5935ca(0x20d)]};return null;}export function unregisterSession(_0x56febe){const _0x957bfe=_0x18238e,_0x474175=loadCache(),_0x25d8c0=_0x474175['sessions'][_0x56febe];_0x25d8c0&&(delete _0x25d8c0['featureId'],delete _0x25d8c0[_0x957bfe(0x20d)],saveCache(_0x474175));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x51e263){const _0x47472a=_0x18238e,_0x5e4a41={'DPFzD':function(_0x1f6dd4){return _0x1f6dd4();},'urbbI':function(_0x12f2f1,_0x2cd6db){return _0x12f2f1-_0x2cd6db;},'VfLOK':function(_0x1c1d38,_0x8e95e1){return _0x1c1d38(_0x8e95e1);}},_0x55ef0a=_0x5e4a41[_0x47472a(0x206)](loadCache),_0x190049=getOrCreateSession(_0x55ef0a,_0x51e263),_0x31c312=_0x190049['lastPlanReminderAt']||0x0,_0x39833c=Date['now']();if(_0x5e4a41['urbbI'](_0x39833c,_0x31c312)>=PLAN_REMINDER_INTERVAL_MS)return _0x190049['lastPlanReminderAt']=_0x39833c,_0x5e4a41[_0x47472a(0x1fc)](saveCache,_0x55ef0a),!![];return![];}export function shouldShowStopReminder(_0x119cb7){const _0x46a393=_0x18238e,_0x50f36a={'eYMnL':function(_0x269ba9){return _0x269ba9();},'zrfqR':function(_0x2bdefe,_0x2579ba,_0x4adaea){return _0x2bdefe(_0x2579ba,_0x4adaea);},'BaQCT':function(_0x28a9bc,_0x15aa6a){return _0x28a9bc-_0x15aa6a;},'pwMoA':function(_0x5eecb1,_0x4ced6c){return _0x5eecb1(_0x4ced6c);}},_0xd7bfb5=_0x50f36a['eYMnL'](loadCache),_0x570477=_0x50f36a[_0x46a393(0x1fe)](getOrCreateSession,_0xd7bfb5,_0x119cb7),_0x4e9bcd=_0x570477['lastStopReminderAt']||0x0,_0x4a2f19=Date['now']();if(_0x50f36a['BaQCT'](_0x4a2f19,_0x4e9bcd)>=STOP_REMINDER_INTERVAL_MS)return _0x570477['lastStopReminderAt']=_0x4a2f19,_0x50f36a['pwMoA'](saveCache,_0xd7bfb5),!![];return![];}export function hasSessionBeenPrompted(_0x2a8d03){const _0x13188e=_0x18238e,_0x29d95c={'TlhHO':function(_0x2d8fcc){return _0x2d8fcc();},'bZQgU':function(_0x19aa4a,_0x24a4bb){return _0x19aa4a===_0x24a4bb;}},_0x23e851=_0x29d95c[_0x13188e(0x223)](loadCache);return _0x29d95c[_0x13188e(0x1fb)](_0x23e851[_0x13188e(0x200)][_0x2a8d03]?.['prompted'],!![]);}export function markSessionPrompted(_0x4fea64){const _0x3146ed=_0x18238e,_0x2190ac={'VpwGT':function(_0x3e4ce7){return _0x3e4ce7();}},_0x5af61e=_0x2190ac['VpwGT'](loadCache),_0x453f7a=getOrCreateSession(_0x5af61e,_0x4fea64);_0x453f7a[_0x3146ed(0x205)]=!![],saveCache(_0x5af61e);}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0xcd620c=_0x170b;(function(_0x43abcd,_0x2c7bbd){const _0x1896f9=_0x170b,_0x3b3fe4=_0x43abcd();while(!![]){try{const _0x5c856d=parseInt(_0x1896f9(0x14f))/0x1*(parseInt(_0x1896f9(0x163))/0x2)+-parseInt(_0x1896f9(0x162))/0x3*(parseInt(_0x1896f9(0x16f))/0x4)+-parseInt(_0x1896f9(0x16b))/0x5+-parseInt(_0x1896f9(0x150))/0x6*(-parseInt(_0x1896f9(0x157))/0x7)+-parseInt(_0x1896f9(0x146))/0x8+parseInt(_0x1896f9(0x16a))/0x9*(parseInt(_0x1896f9(0x167))/0xa)+parseInt(_0x1896f9(0x151))/0xb*(-parseInt(_0x1896f9(0x175))/0xc);if(_0x5c856d===_0x2c7bbd)break;else _0x3b3fe4['push'](_0x3b3fe4['shift']());}catch(_0x59ed93){_0x3b3fe4['push'](_0x3b3fe4['shift']());}}}(_0x5c36,0x20c19));import*as _0x5903d1 from'fs';import*as _0x24a72f from'path';import*as _0xaaf4b5 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x24a72f[_0xcd620c(0x15d)](_0xaaf4b5[_0xcd620c(0x173)](),_0xcd620c(0x158),'.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x33aaa4=_0xcd620c,_0x1dd7f2={'UwmqN':'utf-8','PjhIa':function(_0x310206){return _0x310206();}};try{if(_0x5903d1['existsSync'](CACHE_FILE)){const _0x55ceab=JSON[_0x33aaa4(0x170)](_0x5903d1['readFileSync'](CACHE_FILE,_0x1dd7f2[_0x33aaa4(0x16c)]));return{'version':0x3,'sessions':_0x55ceab[_0x33aaa4(0x143)]||{},'branches':_0x55ceab[_0x33aaa4(0x171)]||{},'lastEnabledSessionClearedAt':_0x55ceab['lastEnabledSessionClearedAt']};}}catch{}return _0x1dd7f2['PjhIa'](createEmptyCache);}function saveCache(_0x322fe0){const _0x189a37=_0xcd620c;try{const _0x2b858a=_0x24a72f['dirname'](CACHE_FILE);!_0x5903d1['existsSync'](_0x2b858a)&&_0x5903d1['mkdirSync'](_0x2b858a,{'recursive':!![]}),_0x5903d1['writeFileSync'](CACHE_FILE,JSON[_0x189a37(0x168)](_0x322fe0,null,0x2));}catch{}}export function getCurrentBranch(){const _0xfcb4b1=_0xcd620c,_0x43b74a={'NgbSE':_0xfcb4b1(0x145),'aKfyK':'pipe'};try{const _0xdd2698=execSync(_0x43b74a['NgbSE'],{'encoding':'utf-8','stdio':[_0x43b74a[_0xfcb4b1(0x149)],_0x43b74a['aKfyK'],_0xfcb4b1(0x159)]})['trim']();if(!_0xdd2698||_0xdd2698===_0xfcb4b1(0x15c))return null;return _0xdd2698;}catch{return null;}}export function enableBranch(_0x4bea66){const _0x20a34a=loadCache();_0x20a34a['branches'][_0x4bea66]=!![],saveCache(_0x20a34a);}export function disableBranch(_0x3e8435){const _0x42e03d=_0xcd620c,_0x18da50={'jAOLZ':function(_0x2eaccb){return _0x2eaccb();},'dYxjv':function(_0x6e816d,_0xa8b781){return _0x6e816d(_0xa8b781);}},_0x1459af=_0x18da50[_0x42e03d(0x148)](loadCache);delete _0x1459af[_0x42e03d(0x171)][_0x3e8435],_0x18da50['dYxjv'](saveCache,_0x1459af);}export function isBranchEnabled(_0xd7d7b9){const _0x387e94=_0xcd620c,_0x2a559f={'gwJmv':function(_0x1efb08){return _0x1efb08();}},_0x443727=_0x2a559f['gwJmv'](loadCache);return _0x443727[_0x387e94(0x171)][_0xd7d7b9]===!![];}function getOrCreateSession(_0x3a7fbc,_0x56b2ec){const _0x176fe1=_0xcd620c;return!_0x3a7fbc[_0x176fe1(0x143)][_0x56b2ec]&&(_0x3a7fbc['sessions'][_0x56b2ec]={}),_0x3a7fbc['sessions'][_0x56b2ec];}export function enableSession(_0x477bb3){const _0x4cb19b=_0xcd620c,_0x1f75e2={'llVLF':function(_0x1bfa8f){return _0x1bfa8f();},'YVIeF':function(_0xb1d6ea,_0x5c1b6e,_0x1bc618){return _0xb1d6ea(_0x5c1b6e,_0x1bc618);},'qdlfl':function(_0x19d71c,_0x5daef0){return _0x19d71c!==_0x5daef0;},'hlbTr':_0x4cb19b(0x15f),'bQctA':function(_0x5f1bed,_0x49795c){return _0x5f1bed(_0x49795c);}},_0x185e76=_0x1f75e2['llVLF'](loadCache),_0x36ca03=_0x1f75e2['YVIeF'](getOrCreateSession,_0x185e76,_0x477bb3);_0x36ca03['enabled']=!![];const _0xa1cbe=getCurrentBranch();_0xa1cbe&&_0x1f75e2['qdlfl'](_0xa1cbe,'main')&&_0xa1cbe!==_0x1f75e2['hlbTr']&&(_0x185e76[_0x4cb19b(0x171)][_0xa1cbe]=!![],_0x36ca03['currentBranch']=_0xa1cbe),_0x1f75e2[_0x4cb19b(0x161)](saveCache,_0x185e76);}export function isSessionEnabled(_0x55664b){const _0x567607=_0xcd620c,_0x44af6d={'ruTgZ':function(_0x130e66){return _0x130e66();},'CmQUg':function(_0x22da43,_0x4fbbd1){return _0x22da43===_0x4fbbd1;},'Tviub':function(_0x3d2744,_0x114413){return _0x3d2744===_0x114413;},'lmziQ':_0x567607(0x15f),'jAMbE':function(_0x51dc36,_0x3e8944){return _0x51dc36===_0x3e8944;},'IvUBf':function(_0x4e55fd,_0x33c7eb){return _0x4e55fd||_0x33c7eb;}},_0x26614d=_0x44af6d[_0x567607(0x156)](loadCache),_0x204b20=_0x44af6d['ruTgZ'](getCurrentBranch);if(!_0x204b20||_0x44af6d[_0x567607(0x14e)](_0x204b20,_0x567607(0x155))||_0x44af6d['Tviub'](_0x204b20,_0x44af6d[_0x567607(0x165)]))return _0x26614d['sessions'][_0x55664b]?.['enabled']===!![];const _0x3ebe5b=_0x44af6d[_0x567607(0x15b)](_0x26614d[_0x567607(0x171)][_0x204b20],!![]),_0xf8dd00=_0x26614d[_0x567607(0x143)][_0x55664b]?.[_0x567607(0x172)]===!![];return _0x44af6d['IvUBf'](_0x3ebe5b,_0xf8dd00);}export function disableSession(_0x4c5fcc){const _0x59a4d8=_0xcd620c,_0x1f719b={'FsaAi':function(_0x4f48aa,_0x22a9ba){return _0x4f48aa(_0x22a9ba);}},_0xb9615=loadCache(),_0x3c55dd=getOrCreateSession(_0xb9615,_0x4c5fcc);_0x3c55dd[_0x59a4d8(0x172)]=![],_0x1f719b[_0x59a4d8(0x166)](saveCache,_0xb9615);}function _0x5c36(){const _0x123655=['now','currentBranch','16uVtYgK','parse','branches','enabled','homedir','oeuhp','12cWKVtS','sessions','lastPlanReminderAt','git\x20rev-parse\x20--abbrev-ref\x20HEAD','268968YExhCj','featureId','jAOLZ','aKfyK','AcKCK','lastEnabledSessionClearedAt','GDiBl','emKpJ','CmQUg','5373OMprHc','143178lxginE','1912999oMJsPv','gLHPE','DIldJ','LuQFa','main','ruTgZ','42jhOpDz','.claude','pipe','clear','jAMbE','HEAD','join','TzZhx','master','prompted','bQctA','65220RDZxjM','54AfGlHd','lastStopReminderAt','lmziQ','FsaAi','4970kdHaCv','stringify','registeredAt','3231HAvwTy','190065LOHOFt','UwmqN'];_0x5c36=function(){return _0x123655;};return _0x5c36();}export function updateBranchTracking(_0x4be38d){const _0x13a4aa=_0xcd620c,_0x430a40={'gLHPE':function(_0x470216){return _0x470216();},'AcKCK':_0x13a4aa(0x155),'DIldJ':function(_0x1774f3,_0x40753d){return _0x1774f3(_0x40753d);}},_0x5b685d=_0x430a40[_0x13a4aa(0x152)](loadCache),_0x17025d=_0x5b685d['sessions'][_0x4be38d];if(!_0x17025d?.[_0x13a4aa(0x172)])return;const _0x512149=_0x430a40['gLHPE'](getCurrentBranch);if(!_0x512149||_0x512149===_0x430a40[_0x13a4aa(0x14a)]||_0x512149==='master')return;_0x17025d[_0x13a4aa(0x16e)]!==_0x512149&&(_0x5b685d['branches'][_0x512149]=!![],_0x17025d[_0x13a4aa(0x16e)]=_0x512149,_0x430a40[_0x13a4aa(0x153)](saveCache,_0x5b685d));}function _0x170b(_0x3a9bfc,_0x13bac0){_0x3a9bfc=_0x3a9bfc-0x143;const _0x5c362b=_0x5c36();let _0x170b8d=_0x5c362b[_0x3a9bfc];return _0x170b8d;}export function initBranchTracking(_0x18b093){const _0x1615e8=_0xcd620c,_0x224b8c={'ruhwx':function(_0x521bb6,_0x4a0915){return _0x521bb6===_0x4a0915;}},_0x27c4b2=loadCache(),_0x4ed411=getCurrentBranch();if(!_0x4ed411||_0x4ed411==='main'||_0x224b8c['ruhwx'](_0x4ed411,'master'))return;if(_0x27c4b2[_0x1615e8(0x171)][_0x4ed411]===!![]){const _0x4e6004=getOrCreateSession(_0x27c4b2,_0x18b093);_0x4e6004['enabled']=!![],_0x4e6004['currentBranch']=_0x4ed411,saveCache(_0x27c4b2);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x402935){const _0x3c2a3a=_0xcd620c,_0x35d8dd={'LuQFa':function(_0x1c072a,_0x411150){return _0x1c072a(_0x411150);}},_0x78215a=loadCache(),_0xf84858=_0x78215a['sessions'][_0x402935];_0xf84858?.[_0x3c2a3a(0x172)]&&(_0x78215a['lastEnabledSessionClearedAt']=Date['now'](),_0x35d8dd[_0x3c2a3a(0x154)](saveCache,_0x78215a));}export function shouldAutoEnableAfterClear(_0x1b3ad5){const _0x322ff1=_0xcd620c,_0x4d0d1c={'YIloa':function(_0x5e8ce2,_0x102443){return _0x5e8ce2-_0x102443;}};if(_0x1b3ad5!==_0x322ff1(0x15a))return![];const _0x454c66=loadCache(),_0x2ecfa2=_0x454c66[_0x322ff1(0x14b)];if(!_0x2ecfa2)return![];const _0x2bfe3b=_0x4d0d1c['YIloa'](Date['now'](),_0x2ecfa2);return _0x2bfe3b<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x483013){const _0x4b2927=_0xcd620c,_0x2f5d7e={'iCNCO':function(_0xe23f45){return _0xe23f45();},'pStcZ':'master'},_0x16dbaa=_0x2f5d7e['iCNCO'](loadCache),_0x3b90aa=getOrCreateSession(_0x16dbaa,_0x483013);_0x3b90aa['enabled']=!![];const _0x50c3eb=_0x2f5d7e['iCNCO'](getCurrentBranch);_0x50c3eb&&_0x50c3eb!==_0x4b2927(0x155)&&_0x50c3eb!==_0x2f5d7e['pStcZ']&&(_0x3b90aa[_0x4b2927(0x16e)]=_0x50c3eb),delete _0x16dbaa[_0x4b2927(0x14b)],saveCache(_0x16dbaa);}export function registerSession(_0x5506bd,_0x2642e6){const _0x4c702b=_0xcd620c,_0x2850dd={'oeuhp':function(_0x21dc65,_0x1d3572){return _0x21dc65(_0x1d3572);}},_0x58bb12=loadCache(),_0x21047e=getOrCreateSession(_0x58bb12,_0x5506bd);_0x21047e[_0x4c702b(0x147)]=_0x2642e6,_0x21047e['registeredAt']=new Date()['toISOString'](),_0x2850dd[_0x4c702b(0x174)](saveCache,_0x58bb12);}export function getSessionEntry(_0x26db13){const _0x5434d5=_0xcd620c,_0x253b5a={'GDiBl':function(_0x4b1325){return _0x4b1325();}},_0x1e1ae8=_0x253b5a[_0x5434d5(0x14c)](loadCache),_0x357513=_0x1e1ae8['sessions'][_0x26db13];if(_0x357513?.['featureId']&&_0x357513?.['registeredAt'])return{'featureId':_0x357513['featureId'],'registeredAt':_0x357513['registeredAt']};return null;}export function unregisterSession(_0x458199){const _0x84297b=_0xcd620c,_0x13c9cd=loadCache(),_0x1fa295=_0x13c9cd['sessions'][_0x458199];_0x1fa295&&(delete _0x1fa295[_0x84297b(0x147)],delete _0x1fa295[_0x84297b(0x169)],saveCache(_0x13c9cd));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x4c2927){const _0x90f9ea=_0xcd620c,_0x480614={'YEPGZ':function(_0x5c45f5){return _0x5c45f5();},'TzZhx':function(_0x2ce376,_0x47561c,_0x1d38d9){return _0x2ce376(_0x47561c,_0x1d38d9);}},_0x6576d1=_0x480614['YEPGZ'](loadCache),_0x7538d=_0x480614[_0x90f9ea(0x15e)](getOrCreateSession,_0x6576d1,_0x4c2927),_0x39fd74=_0x7538d['lastPlanReminderAt']||0x0,_0x2dafb7=Date[_0x90f9ea(0x16d)]();if(_0x2dafb7-_0x39fd74>=PLAN_REMINDER_INTERVAL_MS)return _0x7538d[_0x90f9ea(0x144)]=_0x2dafb7,saveCache(_0x6576d1),!![];return![];}export function shouldShowStopReminder(_0x1dcc7c){const _0x16d72c=_0xcd620c,_0xfba7bc={'emKpJ':function(_0x37d66b,_0x3d4aed){return _0x37d66b>=_0x3d4aed;},'GgQJt':function(_0x18198d,_0x2b9038){return _0x18198d-_0x2b9038;}},_0x278152=loadCache(),_0x47bb01=getOrCreateSession(_0x278152,_0x1dcc7c),_0x14a51b=_0x47bb01[_0x16d72c(0x164)]||0x0,_0x1d5718=Date['now']();if(_0xfba7bc[_0x16d72c(0x14d)](_0xfba7bc['GgQJt'](_0x1d5718,_0x14a51b),STOP_REMINDER_INTERVAL_MS))return _0x47bb01[_0x16d72c(0x164)]=_0x1d5718,saveCache(_0x278152),!![];return![];}export function hasSessionBeenPrompted(_0x5e28dc){const _0x2b6852=_0xcd620c,_0x6850da=loadCache();return _0x6850da[_0x2b6852(0x143)][_0x5e28dc]?.[_0x2b6852(0x160)]===!![];}export function markSessionPrompted(_0x244730){const _0x11dedf=_0xcd620c,_0x3fc2f7={'aoAHP':function(_0x21e14e){return _0x21e14e();},'JfTWl':function(_0x41aecf,_0x313371,_0x2e0b66){return _0x41aecf(_0x313371,_0x2e0b66);}},_0x22ee9c=_0x3fc2f7['aoAHP'](loadCache),_0x1a2ea9=_0x3fc2f7['JfTWl'](getOrCreateSession,_0x22ee9c,_0x244730);_0x1a2ea9[_0x11dedf(0x160)]=!![],saveCache(_0x22ee9c);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x26bbff=_0x57c5;(function(_0x1d9f1a,_0x1240aa){const _0x22fbb3=_0x57c5,_0x41d521=_0x1d9f1a();while(!![]){try{const _0x4c8b8c=-parseInt(_0x22fbb3(0x134))/0x1*(parseInt(_0x22fbb3(0x114))/0x2)+-parseInt(_0x22fbb3(0x122))/0x3*(parseInt(_0x22fbb3(0x11c))/0x4)+-parseInt(_0x22fbb3(0x131))/0x5*(parseInt(_0x22fbb3(0x167))/0x6)+parseInt(_0x22fbb3(0x145))/0x7+-parseInt(_0x22fbb3(0x12d))/0x8*(parseInt(_0x22fbb3(0x11b))/0x9)+parseInt(_0x22fbb3(0x116))/0xa+parseInt(_0x22fbb3(0x15b))/0xb*(parseInt(_0x22fbb3(0x133))/0xc);if(_0x4c8b8c===_0x1240aa)break;else _0x41d521['push'](_0x41d521['shift']());}catch(_0x199d61){_0x41d521['push'](_0x41d521['shift']());}}}(_0x21dc,0x6cc7d));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir}from'./rangerRoot.js';function _0x21dc(){const _0x177891=['fromEntries','420456kQYQUX','mISRk','jINRI','settings.json','uIkIe','object','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','GPuhV','userAgent','headers','args','30776jpZmgE','ENOENT','isArray','Failed\x20to\x20decrypt\x20auth\x20state:\x20','2881435fvmOSm','TKkye','11455932xjxxDZ','858629IOPIkf','CNfWL','contextOptions','keys','lcuhp','RSkCx','FwhYJ','code','utf-8','extraHTTPHeaders','HIcBi','getuid','ZgYHL','kTBhN','clipboard-write','push','map','5330192FTDRYd','zCLSx','COiYG','clipboard-read','cwSKu','zCihc','safeMode','ranger-config','core','cJRFV','chromium','storageState','headless','--no-sandbox','kYOwj','auth.json','local','UHrDf','--disable-setuid-sandbox','stringify','NVrjK','path','11zWSqNf','now','entries','browser','EGysy','XvnSJ','pxaLr','launchOptions','location','TLyVi','length','tabs','6pqmNKB','BTVFG','storageStatePath','includes','FWNNM','\x20is\x20not\x20set','message','catch','JSvbc','tempAuthPath','tBETh','kLbtl','cdpEndpoint','YQWAC','--disable-web-security','BhHSF','file','aoauI','2WjqpvP','BtITz','8156400HYdZxx','filter','aBODF','EbvFz','izTbv','540dbupSp','12zZPuFX','vRPZo','hYZjm','-cli.json','--allow-running-insecure-content'];_0x21dc=function(){return _0x177891;};return _0x21dc();}export function getEnvDir(_0x2d8f20){const _0x1b495f=_0x57c5,_0x4d6f76={'EGysy':function(_0x419554){return _0x419554();},'RSkCx':function(_0x3cc79d,_0x165941,_0x24c00a,_0x57d70a){return _0x3cc79d(_0x165941,_0x24c00a,_0x57d70a);},'DTtLK':_0x1b495f(0x155),'ZFfpX':function(_0x3b7357,_0x235521,_0x5b3a10){return _0x3b7357(_0x235521,_0x5b3a10);},'cwSKu':function(_0x3a4e1a,_0x1056fe){return _0x3a4e1a(_0x1056fe);}},_0x4e5fa1=_0x4d6f76[_0x1b495f(0x15f)](getRangerDir),_0xa12da1=_0x4d6f76[_0x1b495f(0x139)](join,_0x4e5fa1,'ci',_0x2d8f20),_0x3930ad=join(_0x4e5fa1,_0x4d6f76['DTtLK'],_0x2d8f20),_0x17eef0=join(_0x4e5fa1,_0x2d8f20),_0x4eb309=_0x4d6f76['ZFfpX'](join,_0x4e5fa1,_0x4d6f76['DTtLK']),_0x4ae454=_0x4d6f76['ZFfpX'](join,_0x4e5fa1,'ci');if(existsSync(_0xa12da1))return _0xa12da1;if(existsSync(_0x3930ad))return _0x3930ad;if(existsSync(_0x17eef0)&&(_0x17eef0!==_0x4eb309&&_0x17eef0!==_0x4ae454?!![]:_0x4d6f76[_0x1b495f(0x149)](hasLegacyProfileFiles,_0x17eef0)))return _0x17eef0;return _0x3930ad;}export function findExistingEnv(_0x47b7d9,_0x4fc146){const _0x137956=_0x57c5,_0x2f8f7c={'TKkye':function(_0x58a83b){return _0x58a83b();},'FwhYJ':'legacy','kYOwj':'local','jLWXC':function(_0x4dc026,_0x491f54,_0x1faa1f,_0xac6b20){return _0x4dc026(_0x491f54,_0x1faa1f,_0xac6b20);},'uLoTl':function(_0x4c410c,_0x1f95aa){return _0x4c410c===_0x1f95aa;},'HIcBi':function(_0x329a19,_0x4c6773){return _0x329a19(_0x4c6773);}},_0x47ea36=_0x2f8f7c[_0x137956(0x132)](getRangerDir),_0xebdaa3=_0x4fc146?.['locations']??['ci','local',_0x2f8f7c[_0x137956(0x13a)]],_0x2deff9=join(_0x47ea36,_0x2f8f7c[_0x137956(0x153)]),_0x29aae9=join(_0x47ea36,'ci'),_0x1524be=[{'location':'ci','path':join(_0x47ea36,'ci',_0x47b7d9)},{'location':_0x137956(0x155),'path':_0x2f8f7c['jLWXC'](join,_0x47ea36,_0x2f8f7c[_0x137956(0x153)],_0x47b7d9)},{'location':'legacy','path':join(_0x47ea36,_0x47b7d9)}];for(const _0x268bca of _0x1524be){if(_0xebdaa3[_0x137956(0x16a)](_0x268bca['location'])&&existsSync(_0x268bca[_0x137956(0x15a)])){if(_0x268bca[_0x137956(0x163)]===_0x2f8f7c[_0x137956(0x13a)]&&(_0x268bca['path']===_0x2deff9||_0x2f8f7c['uLoTl'](_0x268bca[_0x137956(0x15a)],_0x29aae9))&&!_0x2f8f7c[_0x137956(0x13e)](hasLegacyProfileFiles,_0x268bca[_0x137956(0x15a)]))continue;return{'path':_0x268bca[_0x137956(0x15a)],'location':_0x268bca[_0x137956(0x163)]};}}return null;}function hasLegacyProfileFiles(_0x25aed3){const _0x2805fc=_0x57c5,_0x307bb6={'hYZjm':function(_0xb29258,_0x256340,_0x4516cd){return _0xb29258(_0x256340,_0x4516cd);},'TeioW':function(_0x52c870,_0x4afd93){return _0x52c870(_0x4afd93);}};return existsSync(_0x307bb6[_0x2805fc(0x11e)](join,_0x25aed3,_0x2805fc(0x125)))||_0x307bb6['TeioW'](existsSync,_0x307bb6['hYZjm'](join,_0x25aed3,'auth.json'))||existsSync(_0x307bb6['hYZjm'](join,_0x25aed3,'auth.json.enc'));}export function isEnvCi(_0x336c8d){const _0x50e575={'dVPLB':function(_0x119b4e,_0x4007b9,_0x228e58,_0x66bd38){return _0x119b4e(_0x4007b9,_0x228e58,_0x66bd38);}};return existsSync(_0x50e575['dVPLB'](join,getRangerDir(),'ci',_0x336c8d));}export async function cleanupTempFiles(_0x29511b){const _0x2cc539=_0x57c5,_0x2f20fe=[_0x29511b[_0x2cc539(0x10b)],_0x29511b['configPath']][_0x2cc539(0x117)](Boolean);await Promise['all'](_0x2f20fe['map'](_0x28c4eb=>unlink(_0x28c4eb)[_0x2cc539(0x16e)](_0x2ad71a=>{const _0x39c2f3=_0x2cc539;_0x2ad71a[_0x39c2f3(0x13b)]!==_0x39c2f3(0x12e)&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x28c4eb+':',_0x2ad71a[_0x39c2f3(0x16d)]);})));}export function getSettingsPath(_0x36ef21){const _0x1b2851=_0x57c5,_0xa77187={'zCLSx':function(_0x3f2c94,_0x577238,_0x45eb3d){return _0x3f2c94(_0x577238,_0x45eb3d);},'BtITz':function(_0x2e9545,_0x3434b7){return _0x2e9545(_0x3434b7);},'NVrjK':'settings.json'};return _0xa77187[_0x1b2851(0x146)](join,_0xa77187[_0x1b2851(0x115)](getEnvDir,_0x36ef21),_0xa77187[_0x1b2851(0x159)]);}export async function loadSettings(_0x2f50a9){const _0x5bf919=_0x57c5,_0x817870={'JSvbc':function(_0x13626a,_0x1da62b){return _0x13626a(_0x1da62b);},'aoauI':function(_0x218672,_0x471fd2,_0x1c1b72){return _0x218672(_0x471fd2,_0x1c1b72);}},_0x445d38=getSettingsPath(_0x2f50a9);if(!_0x817870[_0x5bf919(0x10a)](existsSync,_0x445d38))return{};try{const _0x111304=await _0x817870[_0x5bf919(0x113)](readFile,_0x445d38,_0x5bf919(0x13c));return JSON['parse'](_0x111304);}catch{return{};}}export async function saveSettings(_0x7f6443,_0x21610a){const _0x52ebf9={'yRuWz':function(_0x48d5ea,_0x3abd58,_0x4bd3ca){return _0x48d5ea(_0x3abd58,_0x4bd3ca);}},_0xc62392=getSettingsPath(_0x7f6443),_0x2fc6d4=dirname(_0xc62392);!existsSync(_0x2fc6d4)&&await mkdir(_0x2fc6d4,{'recursive':!![]}),await _0x52ebf9['yRuWz'](writeFile,_0xc62392,JSON['stringify'](_0x21610a,null,0x2));}export function resolveEnvVars(_0x20c031){const _0x87bac2=_0x57c5,_0x5b7051={'XenFt':function(_0x9e1685,_0x345067){return _0x9e1685===_0x345067;}};if(_0x5b7051['XenFt'](typeof _0x20c031,'string'))return _0x20c031['replace'](/\$\{(\w+)\}/g,(_0x57349a,_0xd34734)=>{const _0x4b17eb=_0x57c5,_0x129928=process['env'][_0xd34734];if(_0x129928===undefined)throw new Error('Environment\x20variable\x20'+_0xd34734+_0x4b17eb(0x16c));return _0x129928;});if(Array[_0x87bac2(0x12f)](_0x20c031))return _0x20c031[_0x87bac2(0x144)](resolveEnvVars);if(_0x20c031&&typeof _0x20c031==='object')return Object[_0x87bac2(0x121)](Object[_0x87bac2(0x15d)](_0x20c031)[_0x87bac2(0x144)](([_0x585c3e,_0x1730c0])=>[_0x585c3e,resolveEnvVars(_0x1730c0)]));return _0x20c031;}const isRecord=_0x38fc3d=>typeof _0x38fc3d==='object'&&_0x38fc3d!==null&&!Array['isArray'](_0x38fc3d),asRecord=_0x56c508=>isRecord(_0x56c508)?_0x56c508:undefined,mergeHeaders=(_0x132b3d,_0x1a0e75)=>{const _0xc5d5b7=_0x57c5,_0x221c16={'ExkPw':function(_0x34cd77,_0x5f23c9){return _0x34cd77??_0x5f23c9;}},_0x314c71={..._0x132b3d??{},..._0x221c16['ExkPw'](_0x1a0e75,{})};return Object[_0xc5d5b7(0x137)](_0x314c71)[_0xc5d5b7(0x165)]?_0x314c71:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=[_0x26bbff(0x110),_0x26bbff(0x120),'--unsafely-treat-insecure-origin-as-secure=http://localhost'];export function buildBrowserOptionsFromSettings(_0x571141,_0x1cc313={}){const _0x43d231=_0x26bbff,_0x309c6c={'COiYG':function(_0x50ffb4,_0x4f2b65){return _0x50ffb4(_0x4f2b65);},'HqRBt':function(_0x464862,_0x15f521){return _0x464862===_0x15f521;},'tarSS':function(_0x317b2b,_0x161267,_0x161629){return _0x317b2b(_0x161267,_0x161629);},'BTVFG':function(_0x393960,_0x102fc4){return _0x393960(_0x102fc4);}},_0x5bb201=_0x309c6c['COiYG'](asRecord,_0x571141[_0x43d231(0x15e)]),_0x19984a={...asRecord(_0x5bb201?.[_0x43d231(0x162)])??{}};_0x309c6c['HqRBt'](typeof _0x1cc313['headless'],'boolean')&&(_0x19984a[_0x43d231(0x151)]=_0x1cc313[_0x43d231(0x151)]);if(_0x571141[_0x43d231(0x14b)]){const _0x26e803=_0x19984a['args']??[],_0x3303e9=SAFE_MODE_ARGS['filter'](_0x1a81cf=>!_0x26e803[_0x43d231(0x16a)](_0x1a81cf));_0x19984a[_0x43d231(0x12c)]=[..._0x26e803,..._0x3303e9];}if(_0x571141['allowInsecureLocalhost']){const _0x8b2f19=_0x19984a[_0x43d231(0x12c)]??[],_0xc110a=ALLOW_LOCALHOST_ARGS['filter'](_0x13aa7c=>!_0x8b2f19['includes'](_0x13aa7c));_0x19984a['args']=[..._0x8b2f19,..._0xc110a];}const _0x279733={..._0x309c6c[_0x43d231(0x147)](asRecord,_0x5bb201?.['contextOptions'])??{}};typeof _0x571141[_0x43d231(0x12a)]==='string'&&(_0x279733['userAgent']=_0x571141[_0x43d231(0x12a)]);const _0x1c5a2c=_0x309c6c['tarSS'](mergeHeaders,_0x309c6c[_0x43d231(0x168)](asRecord,_0x279733['extraHTTPHeaders']),asRecord(_0x571141[_0x43d231(0x12b)]));return _0x1c5a2c?_0x279733[_0x43d231(0x13d)]=_0x1c5a2c:delete _0x279733['extraHTTPHeaders'],_0x1cc313[_0x43d231(0x169)]&&(_0x279733[_0x43d231(0x150)]=_0x1cc313['storageStatePath']),{'launchOptions':_0x19984a,'contextOptions':_0x279733};}export async function buildPlaywrightConfig(_0x53b12e,_0x3a0c7d,_0x2655de,_0x373389){const _0x5289fb=_0x26bbff,_0x418410={'FHaaY':function(_0xc5dcd9,_0x4ee284){return _0xc5dcd9===_0x4ee284;},'ZgYHL':_0x5289fb(0x152),'zCihc':'--disable-setuid-sandbox','kTBhN':function(_0x47cbf1,_0x2f4894,_0x22ad19){return _0x47cbf1(_0x2f4894,_0x22ad19);},'AgkAf':_0x5289fb(0x154),'WuekR':function(_0x289aca){return _0x289aca();},'CcUxk':function(_0x5854db,_0x408070){return _0x5854db(_0x408070);},'eDnPy':function(_0x1375cc,_0x327c9b,_0x11c323){return _0x1375cc(_0x327c9b,_0x11c323);},'mISRk':function(_0x34a1c5,_0x2beb3a){return _0x34a1c5(_0x2beb3a);},'XvnSJ':function(_0x55341d,_0x11f542,_0x36f03e,_0x395e73){return _0x55341d(_0x11f542,_0x36f03e,_0x395e73);},'CNfWL':_0x5289fb(0x14d),'EbvFz':_0x5289fb(0x166),'bIGXQ':'pdf','ewpkZ':function(_0x47de9c){return _0x47de9c();},'lcuhp':'ranger-config','acFZx':function(_0x250796,_0x4fae1c){return _0x250796(_0x4fae1c);}},_0x5442b8=getEnvDir(_0x3a0c7d),_0x18190f=_0x418410[_0x5289fb(0x141)](join,_0x5442b8,'auth.json.enc'),_0x13de5f=_0x418410[_0x5289fb(0x141)](join,_0x5442b8,_0x418410['AgkAf']);let _0x44990e,_0x2a44b0;if(existsSync(_0x18190f))try{const _0x347769=await _0x418410['WuekR'](getToken);if(!_0x347769)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x15970c=await _0x418410['CcUxk'](readFile,_0x18190f),_0x1c9816=decrypt(_0x15970c,_0x347769);_0x2a44b0=join(_0x418410['WuekR'](tmpdir),'ranger-auth-'+Date[_0x5289fb(0x15c)]()+'.json'),await _0x418410['eDnPy'](writeFile,_0x2a44b0,_0x1c9816),_0x44990e=_0x2a44b0;}catch(_0x28669b){const _0xd384a2=_0x28669b instanceof Error?_0x28669b[_0x5289fb(0x16d)]:_0x418410[_0x5289fb(0x123)](String,_0x28669b);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0xd384a2);}else _0x418410['CcUxk'](existsSync,_0x13de5f)&&(_0x44990e=_0x13de5f);const _0x5504fe=_0x2655de||randomUUID(),_0x38c362=_0x418410[_0x5289fb(0x160)](join,getRangerDir(),'sessions',_0x5504fe),_0xa34f9b=Boolean(_0x53b12e[_0x5289fb(0x10e)]),_0x186569=_0xa34f9b?{'browserName':_0x5289fb(0x14f),'cdpEndpoint':_0x53b12e['cdpEndpoint']}:((()=>{const _0x1348c6=_0x5289fb,{launchOptions:_0x24181a,contextOptions:_0x2716a2}=buildBrowserOptionsFromSettings(_0x53b12e,{'headless':_0x373389?![]:_0x53b12e[_0x1348c6(0x151)]??!![],'storageStatePath':_0x44990e});if(_0x418410['FHaaY'](process[_0x1348c6(0x13f)]?.(),0x0)){const _0x92b75d=[_0x418410[_0x1348c6(0x140)],_0x418410[_0x1348c6(0x14a)]],_0x44c8c6=_0x24181a['args']??[],_0x51d267=_0x92b75d['filter'](_0x53f242=>!_0x44c8c6['includes'](_0x53f242));_0x24181a[_0x1348c6(0x12c)]=[..._0x44c8c6,..._0x51d267];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x24181a,'contextOptions':{..._0x2716a2,'permissions':['clipboard-read',_0x1348c6(0x142)],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x10f6ff={'name':_0x3a0c7d,'browser':_0x186569,'capabilities':[_0x418410[_0x5289fb(0x135)],_0x418410[_0x5289fb(0x119)],'install',_0x418410['bIGXQ'],'vision'],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x38c362};if(!_0xa34f9b){const _0x469644=_0x10f6ff['browser'],_0x76dc4a=_0x469644[_0x5289fb(0x136)];if(_0x76dc4a[_0x5289fb(0x12a)]===undefined)delete _0x76dc4a[_0x5289fb(0x12a)];if(_0x76dc4a[_0x5289fb(0x150)]===undefined)delete _0x76dc4a[_0x5289fb(0x150)];}const _0x52917d=_0x418410[_0x5289fb(0x141)](join,_0x418410['ewpkZ'](tmpdir),_0x418410[_0x5289fb(0x138)]);!_0x418410['acFZx'](existsSync,_0x52917d)&&await mkdir(_0x52917d,{'recursive':!![]});const _0x16128b=_0x418410['kTBhN'](join,_0x52917d,_0x3a0c7d+'-'+Date[_0x5289fb(0x15c)]()+'.json');return await writeFile(_0x16128b,JSON[_0x5289fb(0x158)](_0x10f6ff,null,0x2)),{'configPath':_0x16128b,'tempAuthPath':_0x2a44b0};}function _0x57c5(_0x136b14,_0xaca01b){_0x136b14=_0x136b14-0x10a;const _0x21dc26=_0x21dc();let _0x57c553=_0x21dc26[_0x136b14];return _0x57c553;}export async function buildPlaywrightCliConfig(_0x17338f,_0x56ecba,_0x321c22,_0x1456c5){const _0x45664b=_0x26bbff,_0x46879f={'cJRFV':function(_0x16f7ab,_0x4b167f,_0x451e0a){return _0x16f7ab(_0x4b167f,_0x451e0a);},'HPwXq':'--no-sandbox','arTaW':_0x45664b(0x157),'izTbv':'chromium','tWbOQ':'auth.json.enc','Krxar':function(_0x493127,_0x40515b){return _0x493127(_0x40515b);},'kLbtl':function(_0x322fc5){return _0x322fc5();},'GPuhV':_0x45664b(0x128),'jINRI':function(_0x524025,_0x16284d){return _0x524025 instanceof _0x16284d;},'gCjAq':function(_0x5f21b2,_0x985a31,_0x23f1bd,_0x95971e){return _0x5f21b2(_0x985a31,_0x23f1bd,_0x95971e);},'QJihV':'sessions','aBODF':function(_0x3d9b2,_0x157b40){return _0x3d9b2===_0x157b40;},'UHrDf':_0x45664b(0x112),'FWNNM':function(_0x5a55e0,_0x2606b2,_0x285655){return _0x5a55e0(_0x2606b2,_0x285655);}},_0x16aff1=getEnvDir(_0x56ecba),_0x426c68=join(_0x16aff1,_0x46879f['tWbOQ']),_0x1ffe7f=_0x46879f[_0x45664b(0x14e)](join,_0x16aff1,_0x45664b(0x154));let _0x59812f,_0x497fd9;if(_0x46879f['Krxar'](existsSync,_0x426c68))try{const _0x502e41=await _0x46879f[_0x45664b(0x10d)](getToken);if(!_0x502e41)throw new Error(_0x46879f[_0x45664b(0x129)]);const _0x5dec38=await readFile(_0x426c68),_0xe20bba=decrypt(_0x5dec38,_0x502e41);_0x497fd9=join(_0x46879f[_0x45664b(0x10d)](tmpdir),'ranger-auth-'+Date['now']()+'.json'),await _0x46879f['cJRFV'](writeFile,_0x497fd9,_0xe20bba),_0x59812f=_0x497fd9;}catch(_0x55d94c){const _0x31ea5b=_0x46879f[_0x45664b(0x124)](_0x55d94c,Error)?_0x55d94c['message']:String(_0x55d94c);throw new Error(_0x45664b(0x130)+_0x31ea5b);}else existsSync(_0x1ffe7f)&&(_0x59812f=_0x1ffe7f);const _0x36d317=_0x321c22||randomUUID(),_0x4e4537=_0x46879f['gCjAq'](join,getRangerDir(),_0x46879f['QJihV'],_0x36d317),_0x21c9ac=Boolean(_0x17338f['cdpEndpoint']),_0x2faa0e=_0x21c9ac?{'browserName':_0x46879f[_0x45664b(0x11a)],'cdpEndpoint':_0x17338f[_0x45664b(0x10e)]}:((()=>{const _0x87f7ca=_0x45664b,{launchOptions:_0x564f6c,contextOptions:_0x290289}=_0x46879f[_0x87f7ca(0x14e)](buildBrowserOptionsFromSettings,_0x17338f,{'headless':_0x1456c5?![]:_0x17338f['headless']??!![],'storageStatePath':_0x59812f});if(process[_0x87f7ca(0x13f)]?.()===0x0){const _0x1f3d78=[_0x46879f['HPwXq'],_0x46879f['arTaW']],_0x4b269f=_0x564f6c['args']??[],_0x474dcc=_0x1f3d78[_0x87f7ca(0x117)](_0x1965bf=>!_0x4b269f['includes'](_0x1965bf));_0x564f6c[_0x87f7ca(0x12c)]=[..._0x4b269f,..._0x474dcc];}return{'isolated':!![],'browserName':_0x46879f['izTbv'],'launchOptions':_0x564f6c,'contextOptions':{..._0x290289,'permissions':[_0x87f7ca(0x148),'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x21c9ac){const _0x4f0310=_0x2faa0e[_0x45664b(0x136)];if(_0x46879f[_0x45664b(0x118)](_0x4f0310['userAgent'],undefined))delete _0x4f0310['userAgent'];if(_0x46879f['aBODF'](_0x4f0310[_0x45664b(0x150)],undefined))delete _0x4f0310[_0x45664b(0x150)];}const _0x1825ab={'browser':_0x2faa0e,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4e4537,'outputMode':_0x46879f[_0x45664b(0x156)],'codegen':'none'},_0x2ff165=_0x46879f[_0x45664b(0x14e)](join,tmpdir(),_0x45664b(0x14c));!existsSync(_0x2ff165)&&await _0x46879f[_0x45664b(0x16b)](mkdir,_0x2ff165,{'recursive':!![]});const _0x2e463b=join(_0x2ff165,_0x56ecba+'-'+Date['now']()+_0x45664b(0x11f));return await writeFile(_0x2e463b,JSON['stringify'](_0x1825ab,null,0x2)),{'configPath':_0x2e463b,'tempAuthPath':_0x497fd9};}export function getNestedValue(_0x3112b2,_0x1a5e5c){const _0x36f7a7=_0x26bbff,_0x1a871f={'BhHSF':function(_0x3a59b4,_0x36f96c){return _0x3a59b4(_0x36f96c);},'bZJTN':function(_0x5e6047,_0x4c66e1){return _0x5e6047!==_0x4c66e1;}},_0x4a1ae9=_0x1a871f[_0x36f7a7(0x111)](parseKeyPath,_0x1a5e5c);let _0x3c0b5e=_0x3112b2;for(const _0x1595b2 of _0x4a1ae9){if(_0x3c0b5e===null||_0x3c0b5e===undefined||_0x1a871f['bZJTN'](typeof _0x3c0b5e,_0x36f7a7(0x127)))return undefined;_0x3c0b5e=_0x3c0b5e[_0x1595b2];}return _0x3c0b5e;}export function setNestedValue(_0x37d25f,_0x3f159d,_0x166ab2){const _0x2f62d3=_0x26bbff,_0x2f675b={'vRPZo':function(_0x26783d,_0x3f7f79){return _0x26783d-_0x3f7f79;},'tXmFM':function(_0x11ea4f,_0x5e80fc){return _0x11ea4f in _0x5e80fc;},'tBETh':function(_0x46d61c,_0x11a32){return _0x46d61c!==_0x11a32;},'pxaLr':'object','qksvF':function(_0x470acd,_0x3e577f){return _0x470acd-_0x3e577f;}},_0x48d60e=parseKeyPath(_0x3f159d);let _0x135d80=_0x37d25f;for(let _0x42ba3a=0x0;_0x42ba3a<_0x2f675b[_0x2f62d3(0x11d)](_0x48d60e['length'],0x1);_0x42ba3a++){const _0x3a3610=_0x48d60e[_0x42ba3a];(!_0x2f675b['tXmFM'](_0x3a3610,_0x135d80)||_0x2f675b[_0x2f62d3(0x10c)](typeof _0x135d80[_0x3a3610],_0x2f675b[_0x2f62d3(0x161)]))&&(_0x135d80[_0x3a3610]={}),_0x135d80=_0x135d80[_0x3a3610];}_0x135d80[_0x48d60e[_0x2f675b['qksvF'](_0x48d60e['length'],0x1)]]=_0x166ab2;}export function deleteNestedValue(_0x40ca10,_0x2ad076){const _0x2881fe=_0x26bbff,_0x156622={'eVgmr':function(_0x3f90f1,_0x22e78f){return _0x3f90f1(_0x22e78f);},'mNUvc':function(_0x17cd86,_0x33cbf7){return _0x17cd86<_0x33cbf7;},'uIkIe':function(_0x1344a0,_0x58c59c){return _0x1344a0-_0x58c59c;},'TLyVi':function(_0x23354a,_0x1c8413){return _0x23354a===_0x1c8413;},'OLSRX':function(_0x121df3,_0x9e621b){return _0x121df3!==_0x9e621b;},'YQWAC':_0x2881fe(0x127),'fKwRB':function(_0x9b432d,_0xb1c22e){return _0x9b432d!==_0xb1c22e;}},_0x3a6c07=_0x156622['eVgmr'](parseKeyPath,_0x2ad076);let _0x8f7a3=_0x40ca10;for(let _0xf7d9a5=0x0;_0x156622['mNUvc'](_0xf7d9a5,_0x156622['uIkIe'](_0x3a6c07['length'],0x1));_0xf7d9a5++){if(_0x156622[_0x2881fe(0x164)](_0x8f7a3,null)||_0x8f7a3===undefined||_0x156622['OLSRX'](typeof _0x8f7a3,_0x156622[_0x2881fe(0x10f)]))return![];_0x8f7a3=_0x8f7a3[_0x3a6c07[_0xf7d9a5]];}if(_0x8f7a3===null||_0x8f7a3===undefined||_0x156622['fKwRB'](typeof _0x8f7a3,_0x2881fe(0x127)))return![];const _0x5062e0=_0x3a6c07[_0x156622[_0x2881fe(0x126)](_0x3a6c07[_0x2881fe(0x165)],0x1)];if(_0x5062e0 in _0x8f7a3)return delete _0x8f7a3[_0x5062e0],!![];return![];}function parseKeyPath(_0x1b3881){const _0x48cd83={'fErCW':'header','tbrbE':'headers'},_0x2c7062=_0x1b3881['split']('.');return _0x2c7062[0x0]===_0x48cd83['fErCW']&&(_0x2c7062[0x0]=_0x48cd83['tbrbE']),_0x2c7062;}export function formatSettings(_0x11d3e7,_0x37caef=0x0){const _0x216298=_0x26bbff,_0x337b36={'HtffR':function(_0x4976de,_0x132024){return _0x4976de===_0x132024;},'HRqpI':_0x216298(0x127)},_0x1963ba=[],_0xee6b32='\x20\x20'['repeat'](_0x37caef);for(const [_0xe4013f,_0x5d2b04]of Object[_0x216298(0x15d)](_0x11d3e7)){if(_0x337b36['HtffR'](_0x5d2b04,undefined))continue;if(typeof _0x5d2b04===_0x337b36['HRqpI']&&_0x5d2b04!==null){_0x1963ba['push'](''+_0xee6b32+_0xe4013f+':');for(const [_0x284478,_0x312529]of Object['entries'](_0x5d2b04)){_0x1963ba[_0x216298(0x143)](_0xee6b32+'\x20\x20'+_0x284478+':\x20'+_0x312529);}}else _0x1963ba['push'](''+_0xee6b32+_0xe4013f+':\x20'+_0x5d2b04);}return _0x1963ba['join']('\x0a');}
1
+ const _0x124c79=_0x29a4;(function(_0x540e8e,_0x4be7be){const _0xce79af=_0x29a4,_0x522bc2=_0x540e8e();while(!![]){try{const _0x2a319c=-parseInt(_0xce79af(0xc2))/0x1+-parseInt(_0xce79af(0xaa))/0x2+-parseInt(_0xce79af(0x98))/0x3*(-parseInt(_0xce79af(0xeb))/0x4)+-parseInt(_0xce79af(0xc9))/0x5*(parseInt(_0xce79af(0xbd))/0x6)+-parseInt(_0xce79af(0xd5))/0x7*(-parseInt(_0xce79af(0x99))/0x8)+parseInt(_0xce79af(0x8c))/0x9+parseInt(_0xce79af(0xe9))/0xa*(parseInt(_0xce79af(0xc4))/0xb);if(_0x2a319c===_0x4be7be)break;else _0x522bc2['push'](_0x522bc2['shift']());}catch(_0x46cca2){_0x522bc2['push'](_0x522bc2['shift']());}}}(_0x2b39,0x964c7));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';function _0x2b39(){const _0x5f3963=['DfuIq','allowInsecureLocalhost','kGlfT','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','EUeDQ','configPath','70uFQdKn','cdpEndpoint','--disable-web-security','CeRao','headless','eEHhG','now','--disable-setuid-sandbox','string','location','push','WRwCv','LOegK','lKWCK','dBSXY','aNOEK','path','QecVJ','repeat','chromium','1210gsBedC','NHSpf','308668ezjqIF','UdBVH','args','xclAW','--no-sandbox','stringify','core','tDTlg','EObrU','sessions','1478322UrbdOQ','Environment\x20variable\x20','XzwFr','aSuis','all','HHxHY','utf-8','auth.json.enc','headers','Failed\x20to\x20decrypt\x20auth\x20state:\x20','.json','LvbQW','21KLBrIP','35864NPmmqA','phxUR','QdJMm','split','VBStW','clipboard-write','ranger-auth-','file','storageState','JEwTo','launchOptions','userAgent','GyFTs','WoIVZ','DPBOw','isArray','auth.json','245156Nariqn','settings.json','none','clipboard-read','ENOENT','nabuB','kbIVw','entries','extraHTTPHeaders','local','LeNPZ','ijUXX','object','contextOptions','join','warn','--unsafely-treat-insecure-origin-as-secure=http://localhost','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','bPNhn','6WrySMG','catch','install','ranger-config','parse','1166604wwmowF','sqICH','189321pBAYCy','code','--allow-running-insecure-content','ovmLD','includes','4634915KoAGlN','lbTdq','kqKIY','QIrkE','storageStatePath','filter'];_0x2b39=function(){return _0x5f3963;};return _0x2b39();}import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir}from'./rangerRoot.js';export function getEnvDir(_0x2cc511){const _0x45b320=_0x29a4,_0x578e67={'xHnLs':function(_0x49a5b2,_0x3e8964,_0x34d1fc,_0x1546d6){return _0x49a5b2(_0x3e8964,_0x34d1fc,_0x1546d6);},'qopdk':_0x45b320(0xb3),'BZLbw':function(_0x28a634,_0x353908,_0x547974){return _0x28a634(_0x353908,_0x547974);},'fgkCO':function(_0x1707f8,_0x26abc7,_0x3f9a87){return _0x1707f8(_0x26abc7,_0x3f9a87);},'EUeDQ':function(_0x58e672,_0x515607){return _0x58e672(_0x515607);},'kbIVw':function(_0x490964,_0x1308e1){return _0x490964!==_0x1308e1;}},_0x479d9e=getRangerDir(),_0x4d480c=join(_0x479d9e,'ci',_0x2cc511),_0x26c195=_0x578e67['xHnLs'](join,_0x479d9e,_0x578e67['qopdk'],_0x2cc511),_0x3c7633=join(_0x479d9e,_0x2cc511),_0x174131=_0x578e67['BZLbw'](join,_0x479d9e,_0x578e67['qopdk']),_0x3258d1=_0x578e67['fgkCO'](join,_0x479d9e,'ci');if(existsSync(_0x4d480c))return _0x4d480c;if(_0x578e67[_0x45b320(0xd3)](existsSync,_0x26c195))return _0x26c195;if(existsSync(_0x3c7633)&&(_0x3c7633!==_0x174131&&_0x578e67[_0x45b320(0xb0)](_0x3c7633,_0x3258d1)?!![]:hasLegacyProfileFiles(_0x3c7633)))return _0x3c7633;return _0x26c195;}export function findExistingEnv(_0x1fc949,_0x457000){const _0x2f0482=_0x29a4,_0x49e948={'oodaw':function(_0x1fb496){return _0x1fb496();},'jhfUM':'legacy','XzwFr':_0x2f0482(0xb3),'vUsng':function(_0x23c63b,_0x780989,_0x10b659){return _0x23c63b(_0x780989,_0x10b659);},'scSoa':function(_0x7370db,_0x46dae5){return _0x7370db===_0x46dae5;},'phxUR':function(_0x4f5500,_0xf491e1){return _0x4f5500(_0xf491e1);}},_0x3f21b9=_0x49e948['oodaw'](getRangerDir),_0x35b223=_0x457000?.['locations']??['ci',_0x2f0482(0xb3),_0x49e948['jhfUM']],_0x157790=join(_0x3f21b9,'local'),_0x415442=join(_0x3f21b9,'ci'),_0x565e1c=[{'location':'ci','path':join(_0x3f21b9,'ci',_0x1fc949)},{'location':_0x49e948['XzwFr'],'path':join(_0x3f21b9,_0x49e948[_0x2f0482(0x8e)],_0x1fc949)},{'location':_0x49e948['jhfUM'],'path':_0x49e948['vUsng'](join,_0x3f21b9,_0x1fc949)}];for(const _0x510d73 of _0x565e1c){if(_0x35b223[_0x2f0482(0xc8)](_0x510d73[_0x2f0482(0xde)])&&existsSync(_0x510d73[_0x2f0482(0xe5)])){if(_0x510d73[_0x2f0482(0xde)]==='legacy'&&(_0x49e948['scSoa'](_0x510d73[_0x2f0482(0xe5)],_0x157790)||_0x510d73['path']===_0x415442)&&!_0x49e948[_0x2f0482(0x9a)](hasLegacyProfileFiles,_0x510d73['path']))continue;return{'path':_0x510d73[_0x2f0482(0xe5)],'location':_0x510d73['location']};}}return null;}function hasLegacyProfileFiles(_0x395108){const _0x2bca58=_0x29a4,_0x2d1c1e={'ibDCF':function(_0x2e20e5,_0x36f57a){return _0x2e20e5(_0x36f57a);},'kqKIY':_0x2bca58(0x93)};return _0x2d1c1e['ibDCF'](existsSync,join(_0x395108,_0x2bca58(0xab)))||_0x2d1c1e['ibDCF'](existsSync,join(_0x395108,'auth.json'))||existsSync(join(_0x395108,_0x2d1c1e[_0x2bca58(0xcb)]));}export function isEnvCi(_0x53488d){const _0x3d616e={'upIYC':function(_0xec7fb3,_0x44cf0a){return _0xec7fb3(_0x44cf0a);},'EUAVo':function(_0xc6528f,_0x4d11d0,_0x3e7700,_0x1b87b3){return _0xc6528f(_0x4d11d0,_0x3e7700,_0x1b87b3);}};return _0x3d616e['upIYC'](existsSync,_0x3d616e['EUAVo'](join,getRangerDir(),'ci',_0x53488d));}export async function cleanupTempFiles(_0x3c9a34){const _0x2a08b9=_0x29a4,_0x4f362a={'sySet':_0x2a08b9(0xae)},_0x6a617=[_0x3c9a34['tempAuthPath'],_0x3c9a34[_0x2a08b9(0xd4)]][_0x2a08b9(0xce)](Boolean);await Promise[_0x2a08b9(0x90)](_0x6a617['map'](_0x4acfb6=>unlink(_0x4acfb6)[_0x2a08b9(0xbe)](_0x12e2c0=>{const _0x2e54c4=_0x2a08b9;_0x12e2c0[_0x2e54c4(0xc5)]!==_0x4f362a['sySet']&&console[_0x2e54c4(0xb9)](_0x2e54c4(0xbb)+_0x4acfb6+':',_0x12e2c0['message']);})));}export function getSettingsPath(_0x49149f){const _0x4d6819=_0x29a4,_0x41f64b={'xclAW':function(_0xa64bbd,_0x32e77a,_0x413b4c){return _0xa64bbd(_0x32e77a,_0x413b4c);}};return _0x41f64b[_0x4d6819(0x85)](join,getEnvDir(_0x49149f),'settings.json');}export async function loadSettings(_0x4722fc){const _0x48b3ef=_0x29a4,_0x64b27a=getSettingsPath(_0x4722fc);if(!existsSync(_0x64b27a))return{};try{const _0x5abeda=await readFile(_0x64b27a,_0x48b3ef(0x92));return JSON[_0x48b3ef(0xc1)](_0x5abeda);}catch{return{};}}export async function saveSettings(_0x5d9d01,_0x5a5676){const _0x5b3624=_0x29a4,_0x5b3580={'GyFTs':function(_0x95a91,_0x5be501){return _0x95a91(_0x5be501);}},_0x12c848=_0x5b3580[_0x5b3624(0xa5)](getSettingsPath,_0x5d9d01),_0x4fd818=dirname(_0x12c848);!existsSync(_0x4fd818)&&await mkdir(_0x4fd818,{'recursive':!![]}),await writeFile(_0x12c848,JSON['stringify'](_0x5a5676,null,0x2));}export function resolveEnvVars(_0x27318e){const _0x93b09c=_0x29a4,_0x2bf00e={'aQATT':function(_0x315b8c,_0x84e54a){return _0x315b8c===_0x84e54a;},'bPNhn':_0x93b09c(0xdd),'DfuIq':_0x93b09c(0xb6)};if(typeof _0x27318e===_0x2bf00e[_0x93b09c(0xbc)])return _0x27318e['replace'](/\$\{(\w+)\}/g,(_0x460702,_0x15c3d0)=>{const _0x2cc697=_0x93b09c,_0x51447d=process['env'][_0x15c3d0];if(_0x2bf00e['aQATT'](_0x51447d,undefined))throw new Error(_0x2cc697(0x8d)+_0x15c3d0+'\x20is\x20not\x20set');return _0x51447d;});if(Array[_0x93b09c(0xa8)](_0x27318e))return _0x27318e['map'](resolveEnvVars);if(_0x27318e&&typeof _0x27318e===_0x2bf00e[_0x93b09c(0xcf)])return Object['fromEntries'](Object[_0x93b09c(0xb1)](_0x27318e)['map'](([_0x1c6c52,_0x2fae99])=>[_0x1c6c52,resolveEnvVars(_0x2fae99)]));return _0x27318e;}const isRecord=_0x14af7c=>typeof _0x14af7c==='object'&&_0x14af7c!==null&&!Array['isArray'](_0x14af7c),asRecord=_0x5901b5=>isRecord(_0x5901b5)?_0x5901b5:undefined,mergeHeaders=(_0x1ff56a,_0x1bcfba)=>{const _0x46749c=_0x29a4,_0x5892ff={'UdBVH':function(_0x132c02,_0x3fed9e){return _0x132c02??_0x3fed9e;}},_0x1f4213={..._0x1ff56a??{},..._0x5892ff[_0x46749c(0x83)](_0x1bcfba,{})};return Object['keys'](_0x1f4213)['length']?_0x1f4213:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=[_0x124c79(0xd7),_0x124c79(0xc6),_0x124c79(0xba)];export function buildBrowserOptionsFromSettings(_0x2e2cc3,_0x28fd95={}){const _0x1996ae=_0x124c79,_0x3dd929={'lKWCK':function(_0xd7c1f6,_0x1eb29a){return _0xd7c1f6(_0x1eb29a);},'QAkNd':function(_0x5a4bcf,_0x283770){return _0x5a4bcf(_0x283770);},'THTCk':'string','tDTlg':function(_0x4a383e,_0x3bfcc0){return _0x4a383e(_0x3bfcc0);}},_0x1df2e7=asRecord(_0x2e2cc3['browser']),_0xb72d56={..._0x3dd929[_0x1996ae(0xe2)](asRecord,_0x1df2e7?.[_0x1996ae(0xa3)])??{}};typeof _0x28fd95[_0x1996ae(0xd9)]==='boolean'&&(_0xb72d56[_0x1996ae(0xd9)]=_0x28fd95['headless']);if(_0x2e2cc3['safeMode']){const _0x3593e2=_0xb72d56['args']??[],_0x62e8c6=SAFE_MODE_ARGS['filter'](_0x2cecf2=>!_0x3593e2[_0x1996ae(0xc8)](_0x2cecf2));_0xb72d56['args']=[..._0x3593e2,..._0x62e8c6];}if(_0x2e2cc3[_0x1996ae(0xd0)]){const _0x171919=_0xb72d56[_0x1996ae(0x84)]??[],_0x240ff2=ALLOW_LOCALHOST_ARGS[_0x1996ae(0xce)](_0x45f9b4=>!_0x171919[_0x1996ae(0xc8)](_0x45f9b4));_0xb72d56['args']=[..._0x171919,..._0x240ff2];}const _0x44b0e3={..._0x3dd929['QAkNd'](asRecord,_0x1df2e7?.['contextOptions'])??{}};typeof _0x2e2cc3['userAgent']===_0x3dd929['THTCk']&&(_0x44b0e3['userAgent']=_0x2e2cc3[_0x1996ae(0xa4)]);const _0x189b00=mergeHeaders(_0x3dd929[_0x1996ae(0x89)](asRecord,_0x44b0e3['extraHTTPHeaders']),_0x3dd929[_0x1996ae(0xe2)](asRecord,_0x2e2cc3[_0x1996ae(0x94)]));return _0x189b00?_0x44b0e3[_0x1996ae(0xb2)]=_0x189b00:delete _0x44b0e3['extraHTTPHeaders'],_0x28fd95['storageStatePath']&&(_0x44b0e3['storageState']=_0x28fd95[_0x1996ae(0xcd)]),{'launchOptions':_0xb72d56,'contextOptions':_0x44b0e3};}export async function buildPlaywrightConfig(_0xfdb1a0,_0x138cff,_0xebb8b3,_0x89346c){const _0x1a04b2=_0x124c79,_0x50d5dc={'dBSXY':function(_0x3dd3ec,_0x9b5b2c){return _0x3dd3ec===_0x9b5b2c;},'ovmLD':_0x1a04b2(0x86),'QecVJ':'--disable-setuid-sandbox','WoIVZ':'chromium','uqRKX':'auth.json','ijUXX':function(_0x194dcd){return _0x194dcd();},'LeNPZ':function(_0x4c0045,_0x58cadb){return _0x4c0045(_0x58cadb);},'WkIaP':function(_0x105af2,_0x2e02f,_0x29cd18,_0x1eaef7){return _0x105af2(_0x2e02f,_0x29cd18,_0x1eaef7);},'gAgmy':function(_0x1d439c,_0x219c94){return _0x1d439c(_0x219c94);},'PDNVX':_0x1a04b2(0x88),'QdJMm':'tabs','cjYeL':_0x1a04b2(0xbf),'JEwTo':'vision','aSuis':'allow','LOegK':function(_0x127fa2,_0x1ad27c,_0x226e68){return _0x127fa2(_0x1ad27c,_0x226e68);},'zNrBK':function(_0xd72cd1){return _0xd72cd1();},'Acdfl':function(_0x3d3010,_0x515686,_0x18970f){return _0x3d3010(_0x515686,_0x18970f);}},_0x5defb3=getEnvDir(_0x138cff),_0x2a47c5=join(_0x5defb3,_0x1a04b2(0x93)),_0x1d1b6f=join(_0x5defb3,_0x50d5dc['uqRKX']);let _0x32ec18,_0x36a570;if(existsSync(_0x2a47c5))try{const _0x3b4fd1=await _0x50d5dc[_0x1a04b2(0xb5)](getToken);if(!_0x3b4fd1)throw new Error(_0x1a04b2(0xd2));const _0x36fa48=await readFile(_0x2a47c5),_0x27dd81=decrypt(_0x36fa48,_0x3b4fd1);_0x36a570=join(tmpdir(),_0x1a04b2(0x9f)+Date[_0x1a04b2(0xdb)]()+'.json'),await writeFile(_0x36a570,_0x27dd81),_0x32ec18=_0x36a570;}catch(_0x55a83e){const _0x5dae4c=_0x55a83e instanceof Error?_0x55a83e['message']:String(_0x55a83e);throw new Error(_0x1a04b2(0x95)+_0x5dae4c);}else _0x50d5dc[_0x1a04b2(0xb4)](existsSync,_0x1d1b6f)&&(_0x32ec18=_0x1d1b6f);const _0x23a809=_0xebb8b3||randomUUID(),_0xc0acb3=_0x50d5dc['WkIaP'](join,_0x50d5dc['ijUXX'](getRangerDir),'sessions',_0x23a809),_0x56b61e=_0x50d5dc['gAgmy'](Boolean,_0xfdb1a0[_0x1a04b2(0xd6)]),_0x291de9=_0x56b61e?{'browserName':_0x50d5dc[_0x1a04b2(0xa6)],'cdpEndpoint':_0xfdb1a0['cdpEndpoint']}:((()=>{const _0x282467=_0x1a04b2,{launchOptions:_0x3e4a25,contextOptions:_0x3dd159}=buildBrowserOptionsFromSettings(_0xfdb1a0,{'headless':_0x89346c?![]:_0xfdb1a0['headless']??!![],'storageStatePath':_0x32ec18});if(_0x50d5dc[_0x282467(0xe3)](process['getuid']?.(),0x0)){const _0x271844=[_0x50d5dc[_0x282467(0xc7)],_0x50d5dc[_0x282467(0xe6)]],_0x42416e=_0x3e4a25[_0x282467(0x84)]??[],_0xbcc2f3=_0x271844[_0x282467(0xce)](_0xf3cba7=>!_0x42416e[_0x282467(0xc8)](_0xf3cba7));_0x3e4a25[_0x282467(0x84)]=[..._0x42416e,..._0xbcc2f3];}return{'isolated':!![],'browserName':_0x50d5dc[_0x282467(0xa6)],'launchOptions':_0x3e4a25,'contextOptions':{..._0x3dd159,'permissions':['clipboard-read',_0x282467(0x9e)],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x3b7b46={'name':_0x138cff,'browser':_0x291de9,'capabilities':[_0x50d5dc['PDNVX'],_0x50d5dc[_0x1a04b2(0x9b)],_0x50d5dc['cjYeL'],'pdf',_0x50d5dc[_0x1a04b2(0xa2)]],'imageResponses':_0x50d5dc[_0x1a04b2(0x8f)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0xc0acb3};if(!_0x56b61e){const _0x2eb7f0=_0x3b7b46['browser'],_0x29f9ce=_0x2eb7f0['contextOptions'];if(_0x29f9ce['userAgent']===undefined)delete _0x29f9ce['userAgent'];if(_0x29f9ce[_0x1a04b2(0xa1)]===undefined)delete _0x29f9ce['storageState'];}const _0x389821=_0x50d5dc[_0x1a04b2(0xe1)](join,_0x50d5dc['zNrBK'](tmpdir),_0x1a04b2(0xc0));!existsSync(_0x389821)&&await _0x50d5dc[_0x1a04b2(0xe1)](mkdir,_0x389821,{'recursive':!![]});const _0x3121c2=join(_0x389821,_0x138cff+'-'+Date[_0x1a04b2(0xdb)]()+'.json');return await _0x50d5dc['Acdfl'](writeFile,_0x3121c2,JSON['stringify'](_0x3b7b46,null,0x2)),{'configPath':_0x3121c2,'tempAuthPath':_0x36a570};}export async function buildPlaywrightCliConfig(_0x5d25a6,_0x18146f,_0x5f3ba7,_0x3ee5d3){const _0x3ae955=_0x124c79,_0x4c0dbb={'VBStW':function(_0x45d26f,_0x46fc7c,_0x227b72){return _0x45d26f(_0x46fc7c,_0x227b72);},'WRwCv':function(_0x313c06,_0x57f796){return _0x313c06===_0x57f796;},'vXiNi':'--no-sandbox','kGlfT':'chromium','NHSpf':'auth.json.enc','lbTdq':_0x3ae955(0xa9),'eEHhG':function(_0x4ea490,_0x566051){return _0x4ea490(_0x566051);},'QIrkE':function(_0x138f96,_0x63c49a,_0x123f0a){return _0x138f96(_0x63c49a,_0x123f0a);},'apYJn':function(_0x276e30,_0x3f34d1,_0xf5004e){return _0x276e30(_0x3f34d1,_0xf5004e);},'nabuB':function(_0x3637ee,_0x2a3e96){return _0x3637ee instanceof _0x2a3e96;},'yNnuX':function(_0x1279e4){return _0x1279e4();},'zRHZF':function(_0x526114,_0x348756,_0x3db327,_0x1a29cd){return _0x526114(_0x348756,_0x3db327,_0x1a29cd);},'ozdUq':_0x3ae955(0xa0),'pxTKO':_0x3ae955(0xac)},_0x3dee1f=getEnvDir(_0x18146f),_0x118695=join(_0x3dee1f,_0x4c0dbb[_0x3ae955(0xea)]),_0x42bc6e=join(_0x3dee1f,_0x4c0dbb[_0x3ae955(0xca)]);let _0x43c8bd,_0x25e44c;if(_0x4c0dbb[_0x3ae955(0xda)](existsSync,_0x118695))try{const _0x583372=await getToken();if(!_0x583372)throw new Error(_0x3ae955(0xd2));const _0x5a2012=await _0x4c0dbb[_0x3ae955(0xda)](readFile,_0x118695),_0x3466b4=_0x4c0dbb[_0x3ae955(0xcc)](decrypt,_0x5a2012,_0x583372);_0x25e44c=_0x4c0dbb['VBStW'](join,tmpdir(),_0x3ae955(0x9f)+Date[_0x3ae955(0xdb)]()+_0x3ae955(0x96)),await _0x4c0dbb['apYJn'](writeFile,_0x25e44c,_0x3466b4),_0x43c8bd=_0x25e44c;}catch(_0x59b3a6){const _0x378b40=_0x4c0dbb[_0x3ae955(0xaf)](_0x59b3a6,Error)?_0x59b3a6['message']:_0x4c0dbb[_0x3ae955(0xda)](String,_0x59b3a6);throw new Error(_0x3ae955(0x95)+_0x378b40);}else existsSync(_0x42bc6e)&&(_0x43c8bd=_0x42bc6e);const _0x423d38=_0x5f3ba7||_0x4c0dbb['yNnuX'](randomUUID),_0x192a4d=_0x4c0dbb['zRHZF'](join,getRangerDir(),_0x3ae955(0x8b),_0x423d38),_0x3a0652=Boolean(_0x5d25a6['cdpEndpoint']),_0x9b8d66=_0x3a0652?{'browserName':_0x3ae955(0xe8),'cdpEndpoint':_0x5d25a6['cdpEndpoint']}:((()=>{const _0x6e2806=_0x3ae955,{launchOptions:_0x34a94b,contextOptions:_0x46c2f9}=_0x4c0dbb[_0x6e2806(0x9d)](buildBrowserOptionsFromSettings,_0x5d25a6,{'headless':_0x3ee5d3?![]:_0x5d25a6[_0x6e2806(0xd9)]??!![],'storageStatePath':_0x43c8bd});if(_0x4c0dbb[_0x6e2806(0xe0)](process['getuid']?.(),0x0)){const _0x9c188c=[_0x4c0dbb['vXiNi'],_0x6e2806(0xdc)],_0x5e0167=_0x34a94b[_0x6e2806(0x84)]??[],_0x423ee3=_0x9c188c['filter'](_0x2d7501=>!_0x5e0167[_0x6e2806(0xc8)](_0x2d7501));_0x34a94b['args']=[..._0x5e0167,..._0x423ee3];}return{'isolated':!![],'browserName':_0x4c0dbb[_0x6e2806(0xd1)],'launchOptions':_0x34a94b,'contextOptions':{..._0x46c2f9,'permissions':[_0x6e2806(0xad),_0x6e2806(0x9e)],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x3a0652){const _0xe45e4f=_0x9b8d66[_0x3ae955(0xb7)];if(_0xe45e4f[_0x3ae955(0xa4)]===undefined)delete _0xe45e4f['userAgent'];if(_0x4c0dbb[_0x3ae955(0xe0)](_0xe45e4f[_0x3ae955(0xa1)],undefined))delete _0xe45e4f[_0x3ae955(0xa1)];}const _0x25c8fb={'browser':_0x9b8d66,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x192a4d,'outputMode':_0x4c0dbb['ozdUq'],'codegen':_0x4c0dbb['pxTKO']},_0x5385c0=join(_0x4c0dbb['yNnuX'](tmpdir),_0x3ae955(0xc0));!_0x4c0dbb['eEHhG'](existsSync,_0x5385c0)&&await _0x4c0dbb['QIrkE'](mkdir,_0x5385c0,{'recursive':!![]});const _0x4a1026=join(_0x5385c0,_0x18146f+'-'+Date['now']()+'-cli.json');return await _0x4c0dbb['apYJn'](writeFile,_0x4a1026,JSON[_0x3ae955(0x87)](_0x25c8fb,null,0x2)),{'configPath':_0x4a1026,'tempAuthPath':_0x25e44c};}export function getNestedValue(_0xf687fc,_0x4b0338){const _0x1e49b7=_0x124c79,_0x46ba62={'aNOEK':function(_0x5e0af7,_0x3d1bd3){return _0x5e0af7!==_0x3d1bd3;}},_0x4ca990=parseKeyPath(_0x4b0338);let _0x4bfb5d=_0xf687fc;for(const _0x14c787 of _0x4ca990){if(_0x4bfb5d===null||_0x4bfb5d===undefined||_0x46ba62[_0x1e49b7(0xe4)](typeof _0x4bfb5d,'object'))return undefined;_0x4bfb5d=_0x4bfb5d[_0x14c787];}return _0x4bfb5d;}function _0x29a4(_0x253c1f,_0x323adc){_0x253c1f=_0x253c1f-0x83;const _0x2b39a=_0x2b39();let _0x29a45b=_0x2b39a[_0x253c1f];return _0x29a45b;}export function setNestedValue(_0x3085de,_0x1f0125,_0xe0db25){const _0x5af606=_0x124c79,_0x4890fe={'DPBOw':function(_0x5ee8b8,_0x4b02cf){return _0x5ee8b8(_0x4b02cf);},'CeRao':function(_0x4170b4,_0x523dce){return _0x4170b4<_0x523dce;},'LvbQW':function(_0x230427,_0x50f955){return _0x230427!==_0x50f955;},'oKCES':'object'},_0xf3219c=_0x4890fe[_0x5af606(0xa7)](parseKeyPath,_0x1f0125);let _0xc19cb8=_0x3085de;for(let _0x10ba50=0x0;_0x4890fe[_0x5af606(0xd8)](_0x10ba50,_0xf3219c['length']-0x1);_0x10ba50++){const _0x5d96f8=_0xf3219c[_0x10ba50];(!(_0x5d96f8 in _0xc19cb8)||_0x4890fe[_0x5af606(0x97)](typeof _0xc19cb8[_0x5d96f8],_0x4890fe['oKCES']))&&(_0xc19cb8[_0x5d96f8]={}),_0xc19cb8=_0xc19cb8[_0x5d96f8];}_0xc19cb8[_0xf3219c[_0xf3219c['length']-0x1]]=_0xe0db25;}export function deleteNestedValue(_0x4b1404,_0xc0c471){const _0x243793=_0x124c79,_0x387151={'sqICH':function(_0x1594a2,_0x3d7c97){return _0x1594a2===_0x3d7c97;},'EObrU':'object','HHxHY':function(_0x5ebac7,_0x21a1ad){return _0x5ebac7 in _0x21a1ad;}},_0x3495a6=parseKeyPath(_0xc0c471);let _0xb35a1=_0x4b1404;for(let _0x535cd0=0x0;_0x535cd0<_0x3495a6['length']-0x1;_0x535cd0++){if(_0x387151['sqICH'](_0xb35a1,null)||_0xb35a1===undefined||typeof _0xb35a1!==_0x387151[_0x243793(0x8a)])return![];_0xb35a1=_0xb35a1[_0x3495a6[_0x535cd0]];}if(_0xb35a1===null||_0x387151[_0x243793(0xc3)](_0xb35a1,undefined)||typeof _0xb35a1!==_0x387151['EObrU'])return![];const _0x399914=_0x3495a6[_0x3495a6['length']-0x1];if(_0x387151[_0x243793(0x91)](_0x399914,_0xb35a1))return delete _0xb35a1[_0x399914],!![];return![];}function parseKeyPath(_0x161d6a){const _0x3ae07e=_0x124c79,_0x1734ff={'IEXKB':_0x3ae07e(0x94)},_0x5ba331=_0x161d6a[_0x3ae07e(0x9c)]('.');return _0x5ba331[0x0]==='header'&&(_0x5ba331[0x0]=_0x1734ff['IEXKB']),_0x5ba331;}export function formatSettings(_0x485326,_0x24782f=0x0){const _0x2b95e1=_0x124c79,_0x2a9025={'hfbQo':'object'},_0x2266ca=[],_0x678d1c='\x20\x20'[_0x2b95e1(0xe7)](_0x24782f);for(const [_0x2b33b8,_0x4c5033]of Object[_0x2b95e1(0xb1)](_0x485326)){if(_0x4c5033===undefined)continue;if(typeof _0x4c5033===_0x2a9025['hfbQo']&&_0x4c5033!==null){_0x2266ca['push'](''+_0x678d1c+_0x2b33b8+':');for(const [_0xcfff41,_0x48be31]of Object['entries'](_0x4c5033)){_0x2266ca['push'](_0x678d1c+'\x20\x20'+_0xcfff41+':\x20'+_0x48be31);}}else _0x2266ca[_0x2b95e1(0xdf)](''+_0x678d1c+_0x2b33b8+':\x20'+_0x4c5033);}return _0x2266ca[_0x2b95e1(0xb8)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x1d6847,_0x4e189a){const _0x4a55d0=_0x2095,_0x52ec71=_0x1d6847();while(!![]){try{const _0x49dcd9=-parseInt(_0x4a55d0(0xaa))/0x1*(parseInt(_0x4a55d0(0xab))/0x2)+-parseInt(_0x4a55d0(0xac))/0x3*(-parseInt(_0x4a55d0(0xad))/0x4)+-parseInt(_0x4a55d0(0xae))/0x5+-parseInt(_0x4a55d0(0xb4))/0x6*(-parseInt(_0x4a55d0(0xb7))/0x7)+-parseInt(_0x4a55d0(0xa9))/0x8+-parseInt(_0x4a55d0(0xb1))/0x9*(parseInt(_0x4a55d0(0xb5))/0xa)+parseInt(_0x4a55d0(0xb6))/0xb;if(_0x49dcd9===_0x4e189a)break;else _0x52ec71['push'](_0x52ec71['shift']());}catch(_0x398336){_0x52ec71['push'](_0x52ec71['shift']());}}}(_0x3a65,0x80221));import{readFileSync}from'fs';import{dirname,join}from'path';function _0x2095(_0xde8f4b,_0x57301e){_0xde8f4b=_0xde8f4b-0xa7;const _0x3a653b=_0x3a65();let _0x20955e=_0x3a653b[_0xde8f4b];return _0x20955e;}function _0x3a65(){const _0x21c2f3=['1696599rDEoZX','edzJy','Ygenu','1459614TgrjkG','20qdGmwJ','26862363HtBOVa','7CtJRYc','hupSC','YZfeg','4610224qfGUVU','7aeOHLA','270308vEVFHu','6FychFa','996208DqMvQY','3795975XkLEdF','nYeQI','ranger/SKILL.md'];_0x3a65=function(){return _0x21c2f3;};return _0x3a65();}import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0xfee91d){const _0x4af49e=_0x2095,_0x26d6ce={'Ygenu':function(_0x1e3e9b,_0x7622cf,_0x20f2d8,_0x21826a,_0x22b0b7){return _0x1e3e9b(_0x7622cf,_0x20f2d8,_0x21826a,_0x22b0b7);},'hupSC':'skills','nYeQI':function(_0x42e6b4,_0x31257e,_0x1f5417){return _0x42e6b4(_0x31257e,_0x1f5417);},'YZfeg':function(_0x4afbff,_0xe3c703,_0x4fb604){return _0x4afbff(_0xe3c703,_0x4fb604);},'EeUau':'utf-8'},_0x2e671e=_0x26d6ce[_0x4af49e(0xb3)](join,__dirname,'..','..',_0x26d6ce[_0x4af49e(0xa7)]),_0x211aaf=_0x26d6ce[_0x4af49e(0xaf)](join,_0x2e671e,_0xfee91d);try{return _0x26d6ce[_0x4af49e(0xa8)](readFileSync,_0x211aaf,_0x26d6ce['EeUau']);}catch{return'';}}export function getRangerSkillContent(){const _0x96a456=_0x2095,_0x41fd3c={'edzJy':function(_0x23c593,_0x1a5f0c){return _0x23c593(_0x1a5f0c);},'bqseZ':_0x96a456(0xb0)};return _0x41fd3c[_0x96a456(0xb2)](readSkillContent,_0x41fd3c['bqseZ']);}
1
+ (function(_0x342581,_0x1d2e89){const _0x2d045c=_0xf1e0,_0x48d5a3=_0x342581();while(!![]){try{const _0x8e243d=-parseInt(_0x2d045c(0xa3))/0x1*(-parseInt(_0x2d045c(0xa5))/0x2)+-parseInt(_0x2d045c(0xa8))/0x3*(-parseInt(_0x2d045c(0x9e))/0x4)+-parseInt(_0x2d045c(0x9f))/0x5*(parseInt(_0x2d045c(0xa4))/0x6)+parseInt(_0x2d045c(0xa0))/0x7*(parseInt(_0x2d045c(0x9c))/0x8)+-parseInt(_0x2d045c(0xa2))/0x9+parseInt(_0x2d045c(0xa7))/0xa+parseInt(_0x2d045c(0xa1))/0xb*(parseInt(_0x2d045c(0xa6))/0xc);if(_0x8e243d===_0x1d2e89)break;else _0x48d5a3['push'](_0x48d5a3['shift']());}catch(_0x520dd9){_0x48d5a3['push'](_0x48d5a3['shift']());}}}(_0x26c4,0xf127c));import{readFileSync}from'fs';import{dirname,join}from'path';function _0x26c4(){const _0x315ddb=['115963kXocvi','1932cyAQFY','16jukTuK','12qWgsAd','3015230LJiCNH','183WNyzqc','40yjrgEL','iLONV','9808mhPmQz','5695fQtEBm','1202264jhxDlx','2734677IHAHXZ','10184724DmwlLC'];_0x26c4=function(){return _0x315ddb;};return _0x26c4();}function _0xf1e0(_0x13b13a,_0x20836a){_0x13b13a=_0x13b13a-0x9c;const _0x26c4cb=_0x26c4();let _0xf1e0ce=_0x26c4cb[_0x13b13a];return _0xf1e0ce;}import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x17d1db){const _0x19338b=_0xf1e0,_0x4be55b={'iLONV':'utf-8'},_0x1e71f0=join(__dirname,'..','..','skills'),_0x171c03=join(_0x1e71f0,_0x17d1db);try{return readFileSync(_0x171c03,_0x4be55b[_0x19338b(0x9d)]);}catch{return'';}}export function getRangerSkillContent(){const _0x1f3337={'rAcKr':'ranger/SKILL.md'};return readSkillContent(_0x1f3337['rAcKr']);}
@@ -1 +1 @@
1
- const _0x8e17c8=_0x1ed7;(function(_0x2223da,_0x52e9ec){const _0x156f6e=_0x1ed7,_0x388c27=_0x2223da();while(!![]){try{const _0x43f290=parseInt(_0x156f6e(0x1b2))/0x1*(-parseInt(_0x156f6e(0x1ad))/0x2)+-parseInt(_0x156f6e(0x1b7))/0x3+parseInt(_0x156f6e(0x1bf))/0x4*(-parseInt(_0x156f6e(0x1b1))/0x5)+-parseInt(_0x156f6e(0x1bb))/0x6*(-parseInt(_0x156f6e(0x1a6))/0x7)+parseInt(_0x156f6e(0x1c7))/0x8+parseInt(_0x156f6e(0x1c2))/0x9*(-parseInt(_0x156f6e(0x1a7))/0xa)+parseInt(_0x156f6e(0x1b0))/0xb;if(_0x43f290===_0x52e9ec)break;else _0x388c27['push'](_0x388c27['shift']());}catch(_0x3a669d){_0x388c27['push'](_0x388c27['shift']());}}}(_0x6132,0x2b340));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';function _0x1ed7(_0xd9223e,_0x32445b){_0xd9223e=_0xd9223e-0x1a6;const _0x6132f9=_0x6132();let _0x1ed730=_0x6132f9[_0xd9223e];return _0x1ed730;}import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function _0x6132(){const _0x40c455=['qcrPW','trim','warn','1333368RjHftI','skills','5831YZRXej','10pIXjYm','JQOda','\x20\x20Installed\x20skill:\x20','opencode','join','SKILL.md','472778RQTwkh','Zepnc','\x20\x20Location:\x20','8589977GJeLon','10ZKgSJW','1aSNMCQ','fnzCB','push','log','utf-8','812058JuwkAl','Invalid\x20skill\x20frontmatter','HGAdS','sFGZM','1578eFjbCo','e2e-test-recommender','.md','match','515892MiXBev','jyWAM','KFWyZ','2022084WXWqwP','WjjQE'];_0x6132=function(){return _0x40c455;};return _0x6132();}export const RANGER_MANAGED_SKILLS=['ranger'];export const DEPRECATED_SKILLS=[_0x8e17c8(0x1bc),'bug-bash','feature-tracker'];export async function installSkill(_0x41e7dc,_0x41b162={}){const _0x210467=_0x8e17c8,_0x512c55={'qcrPW':'project','jyWAM':function(_0x4ec78d,_0xa47ee3,_0x4cc1ba){return _0x4ec78d(_0xa47ee3,_0x4cc1ba);},'haYkv':function(_0x1118c4,_0x3aff8b){return _0x1118c4(_0x3aff8b);},'iGflE':_0x210467(0x1ac),'ZFHWq':function(_0x2dfe4f,_0x284cb6){return _0x2dfe4f&&_0x284cb6;},'HFRtn':function(_0xc6d96f,_0x17d437){return _0xc6d96f===_0x17d437;},'KFWyZ':function(_0x5f1f07,_0x5f0d29,_0x21889d){return _0x5f1f07(_0x5f0d29,_0x21889d);},'HGAdS':'utf-8','JQOda':function(_0x3c60f1,_0xef282f,_0x8223fe,_0x15abb6){return _0x3c60f1(_0xef282f,_0x8223fe,_0x15abb6);},'yBDSl':function(_0x43a2cd,_0x8ec4f){return _0x43a2cd>_0x8ec4f;}},{level:level=_0x512c55[_0x210467(0x1c4)],cliVersion:_0x2f9823,platform:platform='claude'}=_0x41b162,_0x12729a=getSourceSkillsDir(),_0x2ead4e=join(_0x12729a,_0x41e7dc),_0x1660df=_0x512c55[_0x210467(0x1c0)](join,_0x12729a,_0x41e7dc+_0x210467(0x1bd)),_0xfa8e95=existsSync(_0x2ead4e)&&_0x512c55['haYkv'](statSync,_0x2ead4e)['isDirectory']()&&existsSync(_0x512c55['jyWAM'](join,_0x2ead4e,_0x512c55['iGflE'])),_0x50d4b7=_0x512c55['haYkv'](existsSync,_0x1660df);if(_0x512c55['ZFHWq'](!_0xfa8e95,!_0x50d4b7))return console[_0x210467(0x1c6)]('\x20\x20Skill\x20not\x20found:\x20'+_0x41e7dc),![];const _0x7b9b4c=_0x512c55['HFRtn'](platform,_0x210467(0x1aa))?getOpencodeSkillsDir(level):getSkillsDir(level),_0x339043=join(_0x7b9b4c,_0x41e7dc);await _0x512c55['jyWAM'](mkdir,_0x339043,{'recursive':!![]});let _0x5832bc,_0x2500a5=[];if(_0xfa8e95){const _0x7865cc=await readdir(_0x2ead4e),_0x3303f1=_0x7865cc['filter'](_0x5624b0=>_0x5624b0['endsWith'](_0x210467(0x1bd)));for(const _0x52d536 of _0x3303f1){const _0x5a67a5=_0x512c55[_0x210467(0x1c1)](join,_0x2ead4e,_0x52d536),_0xaf004c=join(_0x339043,_0x52d536);await copyFile(_0x5a67a5,_0xaf004c),_0x2500a5[_0x210467(0x1b4)](_0x52d536);}_0x5832bc=await readFile(_0x512c55['KFWyZ'](join,_0x2ead4e,_0x512c55['iGflE']),_0x210467(0x1b6));}else{_0x5832bc=await readFile(_0x1660df,_0x512c55[_0x210467(0x1b9)]);const _0x40ac97=join(_0x339043,'SKILL.md');await _0x512c55[_0x210467(0x1a8)](writeFile,_0x40ac97,_0x5832bc,_0x210467(0x1b6)),_0x2500a5['push']('SKILL.md');}const {name:_0xfd9648}=parseFrontmatter(_0x5832bc);return console['log'](_0x210467(0x1a9)+_0xfd9648),console[_0x210467(0x1b5)](_0x210467(0x1af)+_0x339043),_0x512c55['yBDSl'](_0x2500a5['length'],0x1)&&console['log']('\x20\x20Files:\x20'+_0x2500a5[_0x210467(0x1ab)](',\x20')),_0x512c55['JQOda'](logLocalAgentInstallation,_0x41e7dc,{'skillDisplayName':_0xfd9648,'installLevel':level},_0x2f9823)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x1cfe9f=_0x8e17c8,_0x5bb256={'sFGZM':function(_0x292ba5,_0x1cd4db){return _0x292ba5(_0x1cd4db);}},_0x3893f5=[join(__dirname,'..','..',_0x1cfe9f(0x1c8)),join(__dirname,'..','..','..','skills')];for(const _0x2f25a0 of _0x3893f5){if(_0x5bb256[_0x1cfe9f(0x1ba)](existsSync,_0x2f25a0))return _0x2f25a0;}return _0x3893f5[0x0];}function parseFrontmatter(_0xe9ef58){const _0x5eab9f=_0x8e17c8,_0xfb566f=_0xe9ef58[_0x5eab9f(0x1be)](/^---\n([\s\S]+?)\n---/);if(!_0xfb566f)throw new Error(_0x5eab9f(0x1b8));const _0x10380b=_0xfb566f[0x1],_0x46286d=_0x10380b[_0x5eab9f(0x1be)](/name:\s*(.+)/),_0x394f57=_0x10380b['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0x46286d?.[0x1][_0x5eab9f(0x1c5)]()||'','description':_0x394f57?.[0x1][_0x5eab9f(0x1c5)]()||''};}export async function removeSkill(_0x25b4b9,_0x17e749){const _0x5af1ad=_0x8e17c8,_0x4eaa7f={'Zepnc':function(_0x1f245a,_0x377f57){return _0x1f245a(_0x377f57);},'fnzCB':function(_0x18cc7d,_0x36c08b,_0x574dce){return _0x18cc7d(_0x36c08b,_0x574dce);},'banaz':function(_0x4e8101,_0x41802c){return _0x4e8101(_0x41802c);},'WjjQE':function(_0x3beed8,_0x32588c,_0x66d81e){return _0x3beed8(_0x32588c,_0x66d81e);}},_0x48a6d3=_0x4eaa7f[_0x5af1ad(0x1ae)](getSkillsDir,_0x17e749),_0x5c7674=_0x4eaa7f[_0x5af1ad(0x1b3)](join,_0x48a6d3,_0x25b4b9);if(!_0x4eaa7f['banaz'](existsSync,_0x5c7674))return![];try{return await _0x4eaa7f[_0x5af1ad(0x1c3)](rm,_0x5c7674,{'recursive':!![]}),console['log']('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x25b4b9),!![];}catch{return console[_0x5af1ad(0x1c6)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x25b4b9),![];}}
1
+ const _0x5dafc7=_0x1f80;(function(_0x416e8e,_0x54b7ac){const _0x101d50=_0x1f80,_0x4ad8ac=_0x416e8e();while(!![]){try{const _0x17e994=-parseInt(_0x101d50(0x18a))/0x1*(parseInt(_0x101d50(0x181))/0x2)+parseInt(_0x101d50(0x161))/0x3+-parseInt(_0x101d50(0x179))/0x4*(parseInt(_0x101d50(0x16c))/0x5)+parseInt(_0x101d50(0x176))/0x6+-parseInt(_0x101d50(0x162))/0x7*(-parseInt(_0x101d50(0x16d))/0x8)+parseInt(_0x101d50(0x163))/0x9+parseInt(_0x101d50(0x168))/0xa;if(_0x17e994===_0x54b7ac)break;else _0x4ad8ac['push'](_0x4ad8ac['shift']());}catch(_0x303e5e){_0x4ad8ac['push'](_0x4ad8ac['shift']());}}}(_0x4a9c,0x29c11));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';function _0x4a9c(){const _0x165cf7=['JfGYX','SKILL.md','521300GQWbSj','bSltl','catch','warn','1547705QicgQY','8EfzYwE','\x20\x20Location:\x20','oxBsn','jBqgJ','push','join','NGtAV','mLdWk','EsUXJ','1745010DkgnhB','match','isDirectory','4IYBzqq','skills','mBTzH','\x20\x20Installed\x20skill:\x20','dhhQm','QxbpD','\x20\x20Skill\x20not\x20found:\x20','.md','50494IJXZbi','GOsBE','bug-bash','JsRWR','ztCIg','trim','uqBam','BhJze','feature-tracker','1pPHAwB','log','105207VqqJQa','37331CtygBy','1102014dPWrEt','endsWith','\x20\x20Files:\x20'];_0x4a9c=function(){return _0x165cf7;};return _0x4a9c();}import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=['ranger'];export const DEPRECATED_SKILLS=['e2e-test-recommender',_0x5dafc7(0x183),_0x5dafc7(0x189)];function _0x1f80(_0x20886c,_0x4bf86b){_0x20886c=_0x20886c-0x161;const _0x4a9c88=_0x4a9c();let _0x1f80c1=_0x4a9c88[_0x20886c];return _0x1f80c1;}export async function installSkill(_0x2e9876,_0x2aa653={}){const _0x16e925=_0x5dafc7,_0x40f266={'KTWIT':'project','mLdWk':'claude','yRPtb':function(_0x3bcdec){return _0x3bcdec();},'uqBam':function(_0x305741,_0xd447b1,_0x3580a2){return _0x305741(_0xd447b1,_0x3580a2);},'jBqgJ':function(_0xc0e9be,_0x4a58fe){return _0xc0e9be(_0x4a58fe);},'dhhQm':function(_0x3195be,_0x2e4665,_0xbeeb37){return _0x3195be(_0x2e4665,_0xbeeb37);},'mBTzH':'SKILL.md','JsRWR':function(_0x25ce72,_0x4d685e){return _0x25ce72(_0x4d685e);},'ztCIg':function(_0x3cec17,_0x32e959){return _0x3cec17===_0x32e959;},'GOsBE':'opencode','EsUXJ':function(_0x4c9aee,_0x230181){return _0x4c9aee(_0x230181);},'bSltl':function(_0x10223a,_0x93b697){return _0x10223a(_0x93b697);},'BhJze':'utf-8','OkFWQ':function(_0x244ad1,_0xb36d07,_0xcb6104){return _0x244ad1(_0xb36d07,_0xcb6104);},'aKuPe':function(_0x47887d,_0x4624a3,_0x1f9641,_0x4766ba){return _0x47887d(_0x4624a3,_0x1f9641,_0x4766ba);},'JfGYX':function(_0x2d471a,_0x8a6030,_0x5d7fdd,_0x2836d2){return _0x2d471a(_0x8a6030,_0x5d7fdd,_0x2836d2);}},{level:level=_0x40f266['KTWIT'],cliVersion:_0x1cf81e,platform:platform=_0x40f266[_0x16e925(0x174)]}=_0x2aa653,_0x5203e5=_0x40f266['yRPtb'](getSourceSkillsDir),_0x4bb047=_0x40f266[_0x16e925(0x187)](join,_0x5203e5,_0x2e9876),_0x4777c7=_0x40f266['uqBam'](join,_0x5203e5,_0x2e9876+_0x16e925(0x180)),_0x265aa0=existsSync(_0x4bb047)&&_0x40f266[_0x16e925(0x170)](statSync,_0x4bb047)[_0x16e925(0x178)]()&&_0x40f266[_0x16e925(0x170)](existsSync,_0x40f266['dhhQm'](join,_0x4bb047,_0x40f266['mBTzH'])),_0x3d65ee=_0x40f266[_0x16e925(0x184)](existsSync,_0x4777c7);if(!_0x265aa0&&!_0x3d65ee)return console[_0x16e925(0x16b)](_0x16e925(0x17f)+_0x2e9876),![];const _0x11aa8e=_0x40f266[_0x16e925(0x185)](platform,_0x40f266[_0x16e925(0x182)])?_0x40f266['EsUXJ'](getOpencodeSkillsDir,level):_0x40f266[_0x16e925(0x169)](getSkillsDir,level),_0x5968d1=join(_0x11aa8e,_0x2e9876);await mkdir(_0x5968d1,{'recursive':!![]});let _0x127439,_0x3fb813=[];if(_0x265aa0){const _0x45988e=await _0x40f266[_0x16e925(0x175)](readdir,_0x4bb047),_0x15e725=_0x45988e['filter'](_0x4bd075=>_0x4bd075[_0x16e925(0x164)]('.md'));for(const _0x3a0e44 of _0x15e725){const _0x482b6e=_0x40f266[_0x16e925(0x17d)](join,_0x4bb047,_0x3a0e44),_0x47b6c9=join(_0x5968d1,_0x3a0e44);await copyFile(_0x482b6e,_0x47b6c9),_0x3fb813[_0x16e925(0x171)](_0x3a0e44);}_0x127439=await _0x40f266['uqBam'](readFile,join(_0x4bb047,_0x16e925(0x167)),_0x40f266[_0x16e925(0x188)]);}else{_0x127439=await _0x40f266['OkFWQ'](readFile,_0x4777c7,'utf-8');const _0x505368=join(_0x5968d1,_0x40f266['mBTzH']);await _0x40f266['aKuPe'](writeFile,_0x505368,_0x127439,_0x40f266[_0x16e925(0x188)]),_0x3fb813['push'](_0x40f266[_0x16e925(0x17b)]);}const {name:_0x44aac3}=parseFrontmatter(_0x127439);return console[_0x16e925(0x18b)](_0x16e925(0x17c)+_0x44aac3),console['log'](_0x16e925(0x16e)+_0x5968d1),_0x3fb813['length']>0x1&&console[_0x16e925(0x18b)](_0x16e925(0x165)+_0x3fb813[_0x16e925(0x172)](',\x20')),_0x40f266[_0x16e925(0x166)](logLocalAgentInstallation,_0x2e9876,{'skillDisplayName':_0x44aac3,'installLevel':level},_0x1cf81e)[_0x16e925(0x16a)](()=>{}),!![];}function getSourceSkillsDir(){const _0x250847=_0x5dafc7,_0x1fb9fd={'vChby':function(_0x3aaee8,_0x170c77,_0x2e1a01,_0x26a8f2,_0x7ee4a1,_0x5027ba){return _0x3aaee8(_0x170c77,_0x2e1a01,_0x26a8f2,_0x7ee4a1,_0x5027ba);},'jROwS':_0x250847(0x17a),'oxBsn':function(_0x2ba83c,_0x952c26){return _0x2ba83c(_0x952c26);}},_0x4187e8=[join(__dirname,'..','..',_0x250847(0x17a)),_0x1fb9fd['vChby'](join,__dirname,'..','..','..',_0x1fb9fd['jROwS'])];for(const _0x344396 of _0x4187e8){if(_0x1fb9fd[_0x250847(0x16f)](existsSync,_0x344396))return _0x344396;}return _0x4187e8[0x0];}function parseFrontmatter(_0x1b8dcd){const _0x2e7be2=_0x5dafc7,_0x49dc2e=_0x1b8dcd['match'](/^---\n([\s\S]+?)\n---/);if(!_0x49dc2e)throw new Error('Invalid\x20skill\x20frontmatter');const _0x3da7a0=_0x49dc2e[0x1],_0x47e047=_0x3da7a0[_0x2e7be2(0x177)](/name:\s*(.+)/),_0x5349e1=_0x3da7a0[_0x2e7be2(0x177)](/description:\s*"?(.+?)"?\n/);return{'name':_0x47e047?.[0x1][_0x2e7be2(0x186)]()||'','description':_0x5349e1?.[0x1][_0x2e7be2(0x186)]()||''};}export async function removeSkill(_0x44ace8,_0x3d05e5){const _0x35eb60=_0x5dafc7,_0x58c2f7={'NGtAV':function(_0x56d36d,_0x295126){return _0x56d36d(_0x295126);},'QxbpD':function(_0x150fad,_0x9f9a54,_0x14443c){return _0x150fad(_0x9f9a54,_0x14443c);}},_0x11a936=getSkillsDir(_0x3d05e5),_0x3b9dd8=join(_0x11a936,_0x44ace8);if(!_0x58c2f7[_0x35eb60(0x173)](existsSync,_0x3b9dd8))return![];try{return await _0x58c2f7[_0x35eb60(0x17e)](rm,_0x3b9dd8,{'recursive':!![]}),console[_0x35eb60(0x18b)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x44ace8),!![];}catch{return console['warn']('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x44ace8),![];}}