@ranger-testing/ranger-cli 2.4.4 → 2.4.5

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 (72) 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/claudeOverrideSettings.js +1 -1
  38. package/build/commands/utils/claudePlugin.js +1 -1
  39. package/build/commands/utils/crypto.js +1 -1
  40. package/build/commands/utils/desirePathLog.js +1 -1
  41. package/build/commands/utils/deviceAuth.js +1 -1
  42. package/build/commands/utils/environment.js +1 -1
  43. package/build/commands/utils/featureApi.js +1 -1
  44. package/build/commands/utils/featureReportGenerator.js +1 -1
  45. package/build/commands/utils/fixWebmDuration.js +1 -1
  46. package/build/commands/utils/git.js +1 -1
  47. package/build/commands/utils/keychain.js +1 -1
  48. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  49. package/build/commands/utils/mcpImageBase64.js +1 -1
  50. package/build/commands/utils/model.js +1 -1
  51. package/build/commands/utils/opencodeConfig.js +1 -1
  52. package/build/commands/utils/playwrightCli.js +1 -1
  53. package/build/commands/utils/profileMessages.js +1 -1
  54. package/build/commands/utils/profileSetupBanner.js +1 -1
  55. package/build/commands/utils/rangerConfig.js +1 -1
  56. package/build/commands/utils/rangerRoot.js +1 -1
  57. package/build/commands/utils/reportGenerator.js +1 -1
  58. package/build/commands/utils/retry.js +1 -1
  59. package/build/commands/utils/sessionCache.js +1 -1
  60. package/build/commands/utils/settings.js +1 -1
  61. package/build/commands/utils/skillContent.js +1 -1
  62. package/build/commands/utils/skills.js +1 -1
  63. package/build/commands/utils/stitchWebmFiles.js +1 -1
  64. package/build/commands/utils/telemetry.js +1 -1
  65. package/build/commands/utils/tokenRefresh.js +1 -0
  66. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  67. package/build/commands/utils/userApi.js +1 -1
  68. package/build/commands/utils/version.js +1 -1
  69. package/build/commands/verifyFeature.js +1 -1
  70. package/build/commands/verifyFeatureCli.js +1 -1
  71. package/build/commands/verifyInBrowser.js +1 -1
  72. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x71a5dc,_0x508a23){const _0x295318=_0x5a1b,_0x53a037=_0x71a5dc();while(!![]){try{const _0x3b6d06=parseInt(_0x295318(0x139))/0x1+parseInt(_0x295318(0x136))/0x2*(parseInt(_0x295318(0x137))/0x3)+parseInt(_0x295318(0x12c))/0x4*(parseInt(_0x295318(0x14a))/0x5)+-parseInt(_0x295318(0x144))/0x6+parseInt(_0x295318(0x11c))/0x7*(-parseInt(_0x295318(0x124))/0x8)+-parseInt(_0x295318(0x149))/0x9*(-parseInt(_0x295318(0x150))/0xa)+-parseInt(_0x295318(0x140))/0xb;if(_0x3b6d06===_0x508a23)break;else _0x53a037['push'](_0x53a037['shift']());}catch(_0x4a887a){_0x53a037['push'](_0x53a037['shift']());}}}(_0x212b,0x26530));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function toPlaywrightCliSessionKey(_0x5746af){const _0x2fefe8=_0x5a1b,_0xb4ead0={'uYEtq':'hex'},_0x409c79=createHash(_0x2fefe8(0x123))[_0x2fefe8(0x12f)](_0x5746af)[_0x2fefe8(0x11f)](_0xb4ead0['uYEtq'])[_0x2fefe8(0x12a)](0x0,0xc);return'rg-'+_0x409c79;}function shellQuote(_0x1c8919){const _0x532767=_0x5a1b;return'\x27'+_0x1c8919[_0x532767(0x12d)](/'/g,_0x532767(0x11b))+'\x27';}function _0x212b(){const _0x1fedb8=['length','188gfJMEJ','6141ZBbWLK','UJgfk','52811cUQLVi','mkikB','subcommand','trim','unknown','yPTAH','script','2299572GnJmcl','test','ignore','values','44148sjRtWu','tjApx','join','--config','string','834633RLENQG','914360WMiMQc','sessionId','-s=','timed\x20out\x20after\x20','null','bash_command','20FFSZQA','SIGKILL','\x27\x5c\x27\x27','413lvloWt','xCXwg','error','digest','timeoutMs','pipe','command','sha256','32568snFefC','bPUvN','stdout','LGJNF','cwd','configPath','slice','pZRGV','4IqHGoP','replace','\x20signal=','update','toString','commandArgs','LFcaM','npx','WLSJn'];_0x212b=function(){return _0x1fedb8;};return _0x212b();}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x32019d){const _0x5e3db0=_0x5a1b;return SAFE_SHELL_TOKEN[_0x5e3db0(0x141)](_0x32019d)?_0x32019d:shellQuote(_0x32019d);}export function buildPlaywrightCliInvocation(_0xd6e427,_0x5bbe22,_0x46f1df){const _0x40dc73=_0x5a1b,_0x1ed34c={'BJyLm':'npx','zyyVF':function(_0x182938,_0x2ebb84){return _0x182938(_0x2ebb84);}},_0x8a19fa=toPlaywrightCliSessionKey(_0xd6e427),[_0x6567a1=_0x40dc73(0x13d)]=_0x46f1df,_0x40ae32=[PLAYWRIGHT_CLI_BINARY,_0x40dc73(0x14c)+_0x8a19fa,_0x40dc73(0x147),_0x5bbe22,..._0x46f1df];return{'command':_0x1ed34c['BJyLm'],'args':_0x40ae32,'shellCommand':['npx',PLAYWRIGHT_CLI_BINARY,'-s='+_0x1ed34c['zyyVF'](quoteShellArg,_0x8a19fa),'--config',quoteShellArg(_0x5bbe22),..._0x46f1df['map'](quoteShellArg)][_0x40dc73(0x146)]('\x20'),'subcommand':_0x6567a1};}function _0x5a1b(_0x119a2f,_0x5156a8){_0x119a2f=_0x119a2f-0x11b;const _0x212b2d=_0x212b();let _0x5a1bbc=_0x212b2d[_0x119a2f];return _0x5a1bbc;}export function buildPlaywrightCliCommandPrefix(_0x3734be,_0x5d436f){const _0x681345=_0x5a1b,_0x2e8a92={'yPTAH':_0x681345(0x133),'tjApx':function(_0x2e04b1,_0xd36c57){return _0x2e04b1(_0xd36c57);}},_0x2de65a=toPlaywrightCliSessionKey(_0x3734be);return[_0x2e8a92[_0x681345(0x13e)],PLAYWRIGHT_CLI_BINARY,_0x681345(0x14c)+quoteShellArg(_0x2de65a),_0x681345(0x147),_0x2e8a92[_0x681345(0x145)](quoteShellArg,_0x5d436f)][_0x681345(0x146)]('\x20');}function truncateOutput(_0x2f736e,_0x149c4c=0x7d0){const _0x85b39e=_0x5a1b,_0x126789={'pZRGV':function(_0x1cfb7e,_0x431433){return _0x1cfb7e>_0x431433;},'UJgfk':function(_0x327612,_0x204798){return _0x327612+_0x204798;}};return _0x126789[_0x85b39e(0x12b)](_0x2f736e['length'],_0x149c4c)?_0x126789[_0x85b39e(0x138)](_0x2f736e[_0x85b39e(0x12a)](0x0,_0x149c4c),'...'):_0x2f736e;}export async function runPlaywrightCliCommand(_0x155629){const _0x10e011=_0x5a1b,_0x531f61={'mkikB':'SIGTERM','PmvFL':function(_0x48f928,_0x9ebe35,_0x562a74){return _0x48f928(_0x9ebe35,_0x562a74);},'jIAVk':function(_0x5ac5df,_0x224f45){return _0x5ac5df??_0x224f45;},'umKjJ':'null','JYRMX':function(_0x2ad3e9,_0x585f18){return _0x2ad3e9(_0x585f18);},'RnDZV':function(_0x48a824,_0x15663c,_0x12f1f9,_0x109e09){return _0x48a824(_0x15663c,_0x12f1f9,_0x109e09);},'msFgU':_0x10e011(0x142),'ncAKT':function(_0x2079dd,_0x588401){return _0x2079dd>_0x588401;},'AaEQK':function(_0x1aa383,_0x4e1fdd,_0x230073){return _0x1aa383(_0x4e1fdd,_0x230073);},'bPUvN':'data','tBOIX':_0x10e011(0x11e),'gbVLK':'close'},_0x3e9fa0=buildPlaywrightCliInvocation(_0x155629[_0x10e011(0x14b)],_0x155629[_0x10e011(0x129)],_0x155629[_0x10e011(0x131)]);return new Promise((_0x74f6c1,_0x4bd510)=>{const _0x47d309=_0x10e011,_0x3a428c={'LFcaM':function(_0x5df3b6,_0x247d16){return _0x5df3b6(_0x247d16);},'LGJNF':function(_0x427bb6,_0x319db4){return _0x427bb6(_0x319db4);}},_0x4c1cef=_0x531f61['RnDZV'](spawn,_0x3e9fa0[_0x47d309(0x122)],_0x3e9fa0['args'],{'cwd':_0x155629[_0x47d309(0x128)],'env':_0x155629['env'],'stdio':[_0x531f61['msFgU'],'pipe',_0x47d309(0x121)]});let _0x5f38cb='',_0x361bc0='',_0x8f1a72=![];const _0x35ce84=_0x155629['timeoutMs']&&_0x531f61['ncAKT'](_0x155629[_0x47d309(0x120)],0x0)?_0x531f61['AaEQK'](setTimeout,()=>{const _0x4f800b=_0x47d309;_0x8f1a72=!![],_0x4c1cef['kill'](_0x531f61[_0x4f800b(0x13a)]),_0x531f61['PmvFL'](setTimeout,()=>{const _0x357e2c=_0x4f800b;try{_0x4c1cef['kill'](_0x357e2c(0x151));}catch{}},0x3e8);},_0x155629[_0x47d309(0x120)]):null;_0x4c1cef[_0x47d309(0x126)]?.['on'](_0x531f61[_0x47d309(0x125)],_0x4839bc=>{_0x5f38cb+=_0x4839bc['toString']();}),_0x4c1cef['stderr']?.['on'](_0x531f61['bPUvN'],_0x184076=>{const _0x595df5=_0x47d309;_0x361bc0+=_0x184076[_0x595df5(0x130)]();}),_0x4c1cef['on'](_0x531f61['tBOIX'],_0x17661e=>{const _0x56e2fa=_0x47d309;if(_0x35ce84)_0x3a428c[_0x56e2fa(0x132)](clearTimeout,_0x35ce84);_0x3a428c[_0x56e2fa(0x127)](_0x4bd510,_0x17661e);}),_0x4c1cef['on'](_0x531f61['gbVLK'],(_0x5aaf7c,_0x136fa6)=>{const _0x395c18=_0x47d309;if(_0x35ce84)clearTimeout(_0x35ce84);if(_0x5aaf7c===0x0){_0x74f6c1({'stdout':_0x5f38cb,'stderr':_0x361bc0,'invocation':_0x3e9fa0});return;}const _0x2f05fb=_0x8f1a72?_0x395c18(0x14d)+_0x155629['timeoutMs']+'ms':'exited\x20with\x20code='+_0x531f61['jIAVk'](_0x5aaf7c,_0x395c18(0x14e))+_0x395c18(0x12e)+(_0x136fa6??_0x531f61['umKjJ']);_0x4bd510(new Error('playwright-cli\x20'+_0x3e9fa0[_0x395c18(0x13b)]+'\x20'+_0x2f05fb+'\x0astdout:\x20'+truncateOutput(_0x5f38cb)+'\x0astderr:\x20'+_0x531f61['JYRMX'](truncateOutput,_0x361bc0)));});});}export function extractBashCommand(_0x1d853a){const _0x2c1c07=_0x5a1b,_0x324995={'pfMaR':'cmd','xCXwg':_0x2c1c07(0x14f),'ykPhc':function(_0x3c18de,_0x47c2d8){return _0x3c18de===_0x47c2d8;},'WLSJn':_0x2c1c07(0x148)},_0x17bff0=[_0x2c1c07(0x122),_0x324995['pfMaR'],_0x2c1c07(0x13f),_0x324995[_0x2c1c07(0x11d)]];for(const _0x48f22 of _0x17bff0){const _0x516540=_0x1d853a[_0x48f22];if(_0x324995['ykPhc'](typeof _0x516540,_0x324995[_0x2c1c07(0x134)])&&_0x516540['trim']())return _0x516540;}const _0x49fedf=Object[_0x2c1c07(0x143)](_0x1d853a)['find'](_0x1618ea=>typeof _0x1618ea===_0x2c1c07(0x148)&&_0x1618ea[_0x2c1c07(0x13c)]()[_0x2c1c07(0x135)]>0x0);return _0x49fedf??null;}export function parsePlaywrightCliCommand(_0x37ef52){const _0x270fee=_0x37ef52['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x270fee?.[0x1]??null;}
1
+ (function(_0x346f12,_0x38f34d){const _0xda3d23=_0x33f2,_0x4997b7=_0x346f12();while(!![]){try{const _0x39ac02=parseInt(_0xda3d23(0x129))/0x1+parseInt(_0xda3d23(0x107))/0x2*(parseInt(_0xda3d23(0xf0))/0x3)+parseInt(_0xda3d23(0x11a))/0x4*(parseInt(_0xda3d23(0xf5))/0x5)+parseInt(_0xda3d23(0xee))/0x6*(-parseInt(_0xda3d23(0xf8))/0x7)+parseInt(_0xda3d23(0x11e))/0x8*(parseInt(_0xda3d23(0x109))/0x9)+parseInt(_0xda3d23(0x110))/0xa+-parseInt(_0xda3d23(0xf6))/0xb*(parseInt(_0xda3d23(0x127))/0xc);if(_0x39ac02===_0x38f34d)break;else _0x4997b7['push'](_0x4997b7['shift']());}catch(_0x2b2512){_0x4997b7['push'](_0x4997b7['shift']());}}}(_0x5bf8,0x5c3ca));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function toPlaywrightCliSessionKey(_0xd6ebfb){const _0xb551fa=_0x33f2,_0x27f597={'maMKO':function(_0x5c39ee,_0x1d4b6b){return _0x5c39ee(_0x1d4b6b);},'Dzofq':_0xb551fa(0xfb)},_0x5af53e=_0x27f597['maMKO'](createHash,_0xb551fa(0xfd))['update'](_0xd6ebfb)[_0xb551fa(0xf2)](_0x27f597['Dzofq'])['slice'](0x0,0xc);return _0xb551fa(0x105)+_0x5af53e;}function shellQuote(_0x32dd5d){const _0x27b689=_0x33f2;return'\x27'+_0x32dd5d['replace'](/'/g,_0x27b689(0x119))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x105613){const _0x4c8609={'rmEoA':function(_0xb24eac,_0x5e996d){return _0xb24eac(_0x5e996d);}};return SAFE_SHELL_TOKEN['test'](_0x105613)?_0x105613:_0x4c8609['rmEoA'](shellQuote,_0x105613);}export function buildPlaywrightCliInvocation(_0x526395,_0x2ffa20,_0x550662){const _0x222a53=_0x33f2,_0x3655ec={'yBUpk':function(_0x299b62,_0x139d65){return _0x299b62(_0x139d65);},'kHYnT':'--config'},_0x21ffad=_0x3655ec['yBUpk'](toPlaywrightCliSessionKey,_0x526395),[_0x56d9f9=_0x222a53(0x10a)]=_0x550662,_0x325ccc=[PLAYWRIGHT_CLI_BINARY,_0x222a53(0xf7)+_0x21ffad,_0x3655ec[_0x222a53(0xfc)],_0x2ffa20,..._0x550662];return{'command':_0x222a53(0x106),'args':_0x325ccc,'shellCommand':[_0x222a53(0x106),PLAYWRIGHT_CLI_BINARY,_0x222a53(0xf7)+quoteShellArg(_0x21ffad),_0x222a53(0x10b),_0x3655ec[_0x222a53(0x111)](quoteShellArg,_0x2ffa20),..._0x550662[_0x222a53(0x101)](quoteShellArg)][_0x222a53(0xf3)]('\x20'),'subcommand':_0x56d9f9};}export function buildPlaywrightCliCommandPrefix(_0x4b86da,_0xbe804){const _0xad7c57=_0x33f2,_0x27de2f={'geGRo':function(_0x4ee951,_0x232da7){return _0x4ee951(_0x232da7);},'XyrIk':_0xad7c57(0x106),'jfOKk':function(_0x3a6626,_0x37c5e0){return _0x3a6626(_0x37c5e0);},'UjTsw':function(_0x202e44,_0x40c967){return _0x202e44(_0x40c967);}},_0x1fceff=_0x27de2f['geGRo'](toPlaywrightCliSessionKey,_0x4b86da);return[_0x27de2f[_0xad7c57(0x104)],PLAYWRIGHT_CLI_BINARY,_0xad7c57(0xf7)+_0x27de2f[_0xad7c57(0x123)](quoteShellArg,_0x1fceff),_0xad7c57(0x10b),_0x27de2f['UjTsw'](quoteShellArg,_0xbe804)]['join']('\x20');}function _0x33f2(_0x168b79,_0x2e625b){_0x168b79=_0x168b79-0xed;const _0x5bf83d=_0x5bf8();let _0x33f28b=_0x5bf83d[_0x168b79];return _0x33f28b;}function _0x5bf8(){const _0x3120e0=['hex','kHYnT','sha256','sessionId','args','CUFVY','map','\x0astdout:\x20','configPath','XyrIk','rg-','npx','138cyeXpL','SIGTERM','204381qVPxcN','unknown','--config','exited\x20with\x20code=','xhjmd','GXtmQ','Ehpfl','3087720TjIAnb','yBUpk','wmJkR','vvDSn','...','match','script','stdout','command','\x27\x5c\x27\x27','1219376dzXiZp','length','timeoutMs','UZHHP','40lOfKjy','\x0astderr:\x20','playwright-cli\x20','string','timed\x20out\x20after\x20','jfOKk','kill','UDNBf','SIGKILL','24HoDehk','ignore','159142zTxXiF','cUfwM','454452glSsuJ','slice','25293ytjDWH','data','digest','join','env','5uuPBpN','5579739NCkWQn','-s=','7JgEJcZ','values','bash_command'];_0x5bf8=function(){return _0x3120e0;};return _0x5bf8();}function truncateOutput(_0x5c17d1,_0x54fbd0=0x7d0){const _0x4fa565=_0x33f2,_0x2e6641={'QVGTm':function(_0x49d4d7,_0x28d38d){return _0x49d4d7+_0x28d38d;},'GXtmQ':_0x4fa565(0x114)};return _0x5c17d1[_0x4fa565(0x11b)]>_0x54fbd0?_0x2e6641['QVGTm'](_0x5c17d1[_0x4fa565(0xef)](0x0,_0x54fbd0),_0x2e6641[_0x4fa565(0x10e)]):_0x5c17d1;}export async function runPlaywrightCliCommand(_0x35ed79){const _0x20192e=_0x33f2,_0x17d2a8={'wdmTX':function(_0x464fcf,_0x50270d){return _0x464fcf(_0x50270d);},'CjrKl':function(_0x1e00be,_0x8392f1){return _0x1e00be??_0x8392f1;},'CUFVY':function(_0x9326ce,_0x544797,_0x4da93f,_0x1d4ba7){return _0x9326ce(_0x544797,_0x4da93f,_0x1d4ba7);},'puKSq':_0x20192e(0xf1),'Ehpfl':'error','UDNBf':'close'},_0x5e9885=_0x17d2a8[_0x20192e(0x100)](buildPlaywrightCliInvocation,_0x35ed79[_0x20192e(0xfe)],_0x35ed79[_0x20192e(0x103)],_0x35ed79['commandArgs']);return new Promise((_0x19116f,_0x304b5f)=>{const _0x11e1cd=_0x20192e,_0x409927={'vvDSn':function(_0x46b28f,_0x74a452){return _0x46b28f(_0x74a452);},'xhjmd':function(_0x4306f6,_0x15f559){return _0x17d2a8['wdmTX'](_0x4306f6,_0x15f559);},'uvQrf':function(_0x4a7c41,_0x34c823){return _0x17d2a8['CjrKl'](_0x4a7c41,_0x34c823);},'fJAZv':function(_0x4c05ac,_0x302b71){return _0x4c05ac(_0x302b71);},'wmJkR':function(_0x5f2c10,_0x54c2b9){return _0x5f2c10(_0x54c2b9);}},_0x82e8fa=_0x17d2a8[_0x11e1cd(0x100)](spawn,_0x5e9885[_0x11e1cd(0x118)],_0x5e9885[_0x11e1cd(0xff)],{'cwd':_0x35ed79['cwd'],'env':_0x35ed79[_0x11e1cd(0xf4)],'stdio':[_0x11e1cd(0x128),'pipe','pipe']});let _0x2fd08a='',_0x45fbed='',_0x414605=![];const _0x27ac7d=_0x35ed79['timeoutMs']&&_0x35ed79[_0x11e1cd(0x11c)]>0x0?setTimeout(()=>{const _0xe71b90=_0x11e1cd;_0x414605=!![],_0x82e8fa[_0xe71b90(0x124)](_0xe71b90(0x108)),setTimeout(()=>{const _0x42276d=_0xe71b90;try{_0x82e8fa['kill'](_0x42276d(0x126));}catch{}},0x3e8);},_0x35ed79[_0x11e1cd(0x11c)]):null;_0x82e8fa[_0x11e1cd(0x117)]?.['on'](_0x17d2a8['puKSq'],_0x29d990=>{_0x2fd08a+=_0x29d990['toString']();}),_0x82e8fa['stderr']?.['on']('data',_0x1dc3fb=>{_0x45fbed+=_0x1dc3fb['toString']();}),_0x82e8fa['on'](_0x17d2a8[_0x11e1cd(0x10f)],_0x518f3e=>{const _0x5ca300=_0x11e1cd;if(_0x27ac7d)_0x409927[_0x5ca300(0x113)](clearTimeout,_0x27ac7d);_0x409927['xhjmd'](_0x304b5f,_0x518f3e);}),_0x82e8fa['on'](_0x17d2a8[_0x11e1cd(0x125)],(_0x115d84,_0x14965d)=>{const _0x65db37=_0x11e1cd;if(_0x27ac7d)_0x409927[_0x65db37(0x10d)](clearTimeout,_0x27ac7d);if(_0x115d84===0x0){_0x19116f({'stdout':_0x2fd08a,'stderr':_0x45fbed,'invocation':_0x5e9885});return;}const _0x5a16e6=_0x414605?_0x65db37(0x122)+_0x35ed79['timeoutMs']+'ms':_0x65db37(0x10c)+_0x409927['uvQrf'](_0x115d84,'null')+'\x20signal='+(_0x14965d??'null');_0x304b5f(new Error(_0x65db37(0x120)+_0x5e9885['subcommand']+'\x20'+_0x5a16e6+_0x65db37(0x102)+_0x409927['fJAZv'](truncateOutput,_0x2fd08a)+_0x65db37(0x11f)+_0x409927[_0x65db37(0x112)](truncateOutput,_0x45fbed)));});});}export function extractBashCommand(_0x402243){const _0x2a64e9=_0x33f2,_0x2eff4a={'cUfwM':'cmd','UZHHP':function(_0x23b082,_0x1cba34){return _0x23b082===_0x1cba34;},'qWHvF':_0x2a64e9(0x121),'pRlHZ':function(_0x280eef,_0x4308e2){return _0x280eef??_0x4308e2;}},_0x48d62c=[_0x2a64e9(0x118),_0x2eff4a[_0x2a64e9(0xed)],_0x2a64e9(0x116),_0x2a64e9(0xfa)];for(const _0x368f6 of _0x48d62c){const _0xf96bbf=_0x402243[_0x368f6];if(_0x2eff4a[_0x2a64e9(0x11d)](typeof _0xf96bbf,_0x2eff4a['qWHvF'])&&_0xf96bbf['trim']())return _0xf96bbf;}const _0x482ef9=Object[_0x2a64e9(0xf9)](_0x402243)['find'](_0x43b528=>typeof _0x43b528===_0x2a64e9(0x121)&&_0x43b528['trim']()['length']>0x0);return _0x2eff4a['pRlHZ'](_0x482ef9,null);}export function parsePlaywrightCliCommand(_0x27c7f3){const _0x10fc92=_0x33f2,_0x4f7d04=_0x27c7f3[_0x10fc92(0x115)](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x4f7d04?.[0x1]??null;}
@@ -1 +1 @@
1
- function _0x5626(){const _0x125a3a=['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','7azofhv','8wkMTBU','7096668RVBjqL','1483565rThrvM','72pDTCui','915474qhUwdI','455778jiwziI','49737BckMOr','269793biDvTb','11kLaDMG','21780590KXetuL'];_0x5626=function(){return _0x125a3a;};return _0x5626();}(function(_0x5e4476,_0x22f1ef){const _0x38554f=_0x111e,_0x211ce2=_0x5e4476();while(!![]){try{const _0x10d7f6=parseInt(_0x38554f(0xac))/0x1+-parseInt(_0x38554f(0xaa))/0x2+-parseInt(_0x38554f(0xad))/0x3+parseInt(_0x38554f(0xb2))/0x4*(parseInt(_0x38554f(0xa8))/0x5)+-parseInt(_0x38554f(0xb3))/0x6*(parseInt(_0x38554f(0xb1))/0x7)+-parseInt(_0x38554f(0xa9))/0x8*(parseInt(_0x38554f(0xab))/0x9)+parseInt(_0x38554f(0xaf))/0xa*(parseInt(_0x38554f(0xae))/0xb);if(_0x10d7f6===_0x22f1ef)break;else _0x211ce2['push'](_0x211ce2['shift']());}catch(_0x4a77f4){_0x211ce2['push'](_0x211ce2['shift']());}}}(_0x5626,0x9b076));const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';function _0x111e(_0xf86b50,_0x9b8435){_0xf86b50=_0xf86b50-0xa8;const _0x5626cb=_0x5626();let _0x111ea4=_0x5626cb[_0xf86b50];return _0x111ea4;}export function formatProfileRequiredMessage(_0x1118ed){const _0x39da30=_0x111e,_0x5dfd9a={'izzEb':function(_0x1fcd49,_0x32f907){return _0x1fcd49(_0x32f907);}},_0x31dc34=_0x1118ed?_0x5dfd9a['izzEb'](_0x1118ed,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x39da30(0xb0)+_0x31dc34+'.';}
1
+ function _0xd11b(_0x3f5272,_0x49fd6e){_0x3f5272=_0x3f5272-0x18e;const _0x2e3bab=_0x2e3b();let _0xd11bc6=_0x2e3bab[_0x3f5272];return _0xd11bc6;}(function(_0x5681de,_0x5208c4){const _0x40854a=_0xd11b,_0x3bcb3c=_0x5681de();while(!![]){try{const _0x343f8a=parseInt(_0x40854a(0x193))/0x1*(parseInt(_0x40854a(0x191))/0x2)+-parseInt(_0x40854a(0x18e))/0x3+parseInt(_0x40854a(0x192))/0x4*(parseInt(_0x40854a(0x198))/0x5)+parseInt(_0x40854a(0x190))/0x6*(parseInt(_0x40854a(0x18f))/0x7)+-parseInt(_0x40854a(0x195))/0x8+parseInt(_0x40854a(0x194))/0x9+-parseInt(_0x40854a(0x197))/0xa;if(_0x343f8a===_0x5208c4)break;else _0x3bcb3c['push'](_0x3bcb3c['shift']());}catch(_0x6f333e){_0x3bcb3c['push'](_0x3bcb3c['shift']());}}}(_0x2e3b,0x987c6));const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';export function formatProfileRequiredMessage(_0x4402db){const _0x2142be=_0xd11b,_0x290580=_0x4402db?_0x4402db(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x2142be(0x196)+_0x290580+'.';}function _0x2e3b(){const _0x1210ad=['697515TlrkSA','3003nlnngC','6942xDClXi','98566VeHRyT','4552120bojaxs','13VwqXAU','7993620jVzjWv','8673672efVYdS','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','12219460uZvsNH','5wNCHix'];_0x2e3b=function(){return _0x1210ad;};return _0x2e3b();}
@@ -1 +1 @@
1
- (function(_0x3b3269,_0x55ff32){const _0x261e05=_0x532a,_0xc7d949=_0x3b3269();while(!![]){try{const _0x3cb957=parseInt(_0x261e05(0x1e9))/0x1*(parseInt(_0x261e05(0x1f1))/0x2)+parseInt(_0x261e05(0x1fb))/0x3*(parseInt(_0x261e05(0x1f7))/0x4)+parseInt(_0x261e05(0x1e8))/0x5*(parseInt(_0x261e05(0x1ef))/0x6)+parseInt(_0x261e05(0x1f0))/0x7*(parseInt(_0x261e05(0x1eb))/0x8)+-parseInt(_0x261e05(0x1f6))/0x9+parseInt(_0x261e05(0x1ed))/0xa*(-parseInt(_0x261e05(0x1f8))/0xb)+parseInt(_0x261e05(0x1ec))/0xc*(-parseInt(_0x261e05(0x1f3))/0xd);if(_0x3cb957===_0x55ff32)break;else _0xc7d949['push'](_0xc7d949['shift']());}catch(_0x1c981d){_0xc7d949['push'](_0xc7d949['shift']());}}}(_0x5082,0x5290f));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x12b9cf=_0x532a,_0x1e6198={'qhCTy':function(_0x194d0a,_0x3071f0){return _0x194d0a+_0x3071f0;},'NubwE':function(_0x1eff43,_0x53ef27){return _0x1eff43+_0x53ef27;},'nopRN':function(_0x4b5432,_0x12ba4d){return _0x4b5432+_0x12ba4d;},'cytbs':'<div\x20class=\x22ranger-banner__content\x22>','mIytK':_0x12b9cf(0x1f5),'AsFkT':'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','BOtES':_0x12b9cf(0x1fc),'VGLcO':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0x341277=_0x1e6198['qhCTy'](_0x1e6198['NubwE'](_0x1e6198[_0x12b9cf(0x1ea)](_0x1e6198['cytbs'],'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>')+'<div\x20class=\x22ranger-banner__message\x22>',_0x1e6198[_0x12b9cf(0x1f9)])+_0x1e6198['AsFkT'],'</div>')+_0x1e6198['BOtES']+_0x1e6198[_0x12b9cf(0x1fa)],_0x371d29=_0x12b9cf(0x1ee);return _0x12b9cf(0x1f2)+JSON['stringify'](_0x341277)+';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20'+JSON['stringify'](_0x371d29)+';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a';})());function _0x5082(){const _0x5380bc=['\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','71240LVDxwq','addInitScript','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','4511637RQRImb','712vOVGts','11858Hgqcge','mIytK','VGLcO','2589udxSgC','</div>','21515lRKKfu','17971HJxzHm','nopRN','97912cbHaYQ','396CwDjFN','2590AAhrFz','\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','276FPGKXD','203aNJEkI','66RFtSdY'];_0x5082=function(){return _0x5380bc;};return _0x5082();}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x532a(_0x3a78b8,_0xa96297){_0x3a78b8=_0x3a78b8-0x1e8;const _0x508275=_0x5082();let _0x532a18=_0x508275[_0x3a78b8];return _0x532a18;}export async function addProfileSetupBanner(_0x4afc73){const _0x52ccd7=_0x532a;await _0x4afc73[_0x52ccd7(0x1f4)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
1
+ (function(_0x3f8dcb,_0xfaf72f){const _0x61959=_0x413f,_0x5ae498=_0x3f8dcb();while(!![]){try{const _0x37af33=-parseInt(_0x61959(0x9e))/0x1*(parseInt(_0x61959(0x9b))/0x2)+-parseInt(_0x61959(0x91))/0x3*(parseInt(_0x61959(0x9c))/0x4)+-parseInt(_0x61959(0x96))/0x5+-parseInt(_0x61959(0x93))/0x6*(-parseInt(_0x61959(0x94))/0x7)+parseInt(_0x61959(0x9a))/0x8*(-parseInt(_0x61959(0x9d))/0x9)+parseInt(_0x61959(0x92))/0xa+parseInt(_0x61959(0x99))/0xb;if(_0x37af33===_0xfaf72f)break;else _0x5ae498['push'](_0x5ae498['shift']());}catch(_0x34182f){_0x5ae498['push'](_0x5ae498['shift']());}}}(_0x1df7,0xded33));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x53c55d=_0x413f,_0x2eb403={'mySsT':function(_0x1583a3,_0x1ee6eb){return _0x1583a3+_0x1ee6eb;},'mvsGa':'<div\x20class=\x22ranger-banner__content\x22>','oSoIV':_0x53c55d(0x9f),'lioBg':'<div\x20class=\x22ranger-banner__message\x22>','aKDWg':'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','eqiLj':_0x53c55d(0x95)},_0x1bc32c=_0x2eb403[_0x53c55d(0x97)](_0x2eb403['mySsT'](_0x2eb403['mvsGa']+_0x2eb403[_0x53c55d(0xa0)],_0x2eb403['lioBg'])+_0x53c55d(0xa1)+_0x2eb403['aKDWg']+'</div>','</div>')+_0x2eb403['eqiLj'],_0x31b5cc='\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 _0x53c55d(0xa3)+JSON[_0x53c55d(0x98)](_0x1bc32c)+';\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[_0x53c55d(0x98)](_0x31b5cc)+_0x53c55d(0xa2);})());function _0x1df7(){const _0x5a8ea8=['\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','addInitScript','3DUUnaP','10285260VIclTs','6OYPIYj','1606703XvUgsp','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','8758710cMCZhD','mySsT','stringify','28852307VpmGUr','195296NtTRVL','46108ZCYabr','2756004pqwcRF','135iAIJgj','7xttYyw','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','oSoIV','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>',';\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'];_0x1df7=function(){return _0x5a8ea8;};return _0x1df7();}function _0x413f(_0x54f123,_0x17f081){_0x54f123=_0x54f123-0x90;const _0x1df73f=_0x1df7();let _0x413f02=_0x1df73f[_0x54f123];return _0x413f02;}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x137561){const _0x48d6be=_0x413f;await _0x137561[_0x48d6be(0x90)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
@@ -1 +1 @@
1
- (function(_0x5e2ee0,_0x2352ec){const _0xc7ad37=_0x5ba3,_0x2ec169=_0x5e2ee0();while(!![]){try{const _0x532657=-parseInt(_0xc7ad37(0x170))/0x1*(parseInt(_0xc7ad37(0x16c))/0x2)+-parseInt(_0xc7ad37(0x15b))/0x3*(parseInt(_0xc7ad37(0x16b))/0x4)+-parseInt(_0xc7ad37(0x163))/0x5*(parseInt(_0xc7ad37(0x15f))/0x6)+-parseInt(_0xc7ad37(0x166))/0x7*(-parseInt(_0xc7ad37(0x16d))/0x8)+parseInt(_0xc7ad37(0x165))/0x9*(-parseInt(_0xc7ad37(0x169))/0xa)+parseInt(_0xc7ad37(0x168))/0xb*(parseInt(_0xc7ad37(0x16e))/0xc)+parseInt(_0xc7ad37(0x162))/0xd*(parseInt(_0xc7ad37(0x15d))/0xe);if(_0x532657===_0x2352ec)break;else _0x2ec169['push'](_0x2ec169['shift']());}catch(_0xc4eac7){_0x2ec169['push'](_0x2ec169['shift']());}}}(_0x37bc,0x52d4d));function _0x5ba3(_0x2ff2d1,_0x51f2cb){_0x2ff2d1=_0x2ff2d1-0x15b;const _0x37bce9=_0x37bc();let _0x5ba325=_0x37bce9[_0x2ff2d1];return _0x5ba325;}function _0x37bc(){const _0x2413d0=['507429xkkIIf','2595691JLYtqh','utf-8','44CNWdQB','70kGUEIT','string','376XGUdMV','272kXKObz','8CTPYbl','1956048AoBUsu','VbQuD','739TlpAPc','4116vHFMYQ','model','861182DsKjsw','TxaGI','156GtcVfO','object','AIHgH','13DdfUUa','23255DpdDMy','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'];_0x37bc=function(){return _0x2413d0;};return _0x37bc();}import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){return join(getRangerDir(),'config.json');}export async function loadRangerConfig(){const _0xaaacba=_0x5ba3,_0x1f4343={'TxaGI':function(_0x39cbea,_0x7d29e){return _0x39cbea(_0x7d29e);},'HmYht':function(_0x384bf0,_0x16ec91,_0x56358a){return _0x384bf0(_0x16ec91,_0x56358a);},'XyaeO':function(_0x17fd69,_0x34e01b){return _0x17fd69!==_0x34e01b;},'AIHgH':_0xaaacba(0x16a),'VbQuD':function(_0x2b8c67,_0x1543aa){return _0x2b8c67(_0x1543aa);}},_0x399ea2=getRangerConfigPath();if(!_0x1f4343[_0xaaacba(0x15e)](existsSync,_0x399ea2))return{};try{const _0x3223a3=await _0x1f4343['HmYht'](readFile,_0x399ea2,_0xaaacba(0x167)),_0x3f1669=JSON['parse'](_0x3223a3);if(!_0x3f1669||_0x1f4343['XyaeO'](typeof _0x3f1669,_0xaaacba(0x160))||Array['isArray'](_0x3f1669))return{};const _0x258ba1={},_0x52b96f=_0x3f1669[_0xaaacba(0x15c)];return typeof _0x52b96f===_0x1f4343[_0xaaacba(0x161)]&&(_0x258ba1['model']=_0x52b96f),_0x258ba1;}catch(_0x1974c8){const _0x23007a=_0x1974c8 instanceof Error?_0x1974c8['message']:_0x1f4343[_0xaaacba(0x16f)](String,_0x1974c8);return console['warn'](_0xaaacba(0x164)+_0x399ea2+':\x20'+_0x23007a),{};}}
1
+ (function(_0x22ebb4,_0x2a38c7){const _0x3eb5da=_0x5203,_0x31f6d8=_0x22ebb4();while(!![]){try{const _0x20a2c0=-parseInt(_0x3eb5da(0xff))/0x1+parseInt(_0x3eb5da(0x109))/0x2*(parseInt(_0x3eb5da(0xfb))/0x3)+-parseInt(_0x3eb5da(0xf6))/0x4+-parseInt(_0x3eb5da(0xfa))/0x5+-parseInt(_0x3eb5da(0x10a))/0x6*(parseInt(_0x3eb5da(0x106))/0x7)+-parseInt(_0x3eb5da(0x104))/0x8+-parseInt(_0x3eb5da(0xf8))/0x9*(-parseInt(_0x3eb5da(0xfe))/0xa);if(_0x20a2c0===_0x2a38c7)break;else _0x31f6d8['push'](_0x31f6d8['shift']());}catch(_0x2739bc){_0x31f6d8['push'](_0x31f6d8['shift']());}}}(_0x38fd,0x6c4b0));import{readFile}from'fs/promises';import{existsSync}from'fs';function _0x5203(_0x2d4055,_0x3f7437){_0x2d4055=_0x2d4055-0xf6;const _0x38fd16=_0x38fd();let _0x52032b=_0x38fd16[_0x2d4055];return _0x52032b;}import{join}from'path';import{getRangerDir}from'./rangerRoot.js';function _0x38fd(){const _0x30311c=['1017465NFgSfY','14166FAkAhB','FLtsT','uRmQv','770pPoxZw','659037ChXYya','parse','object','model','config.json','3049256OZLtYc','warn','77IGmJSG','QQJPq','OCtHo','218oYiHic','21822tYnvYr','1802852SZHsaE','tPzQE','194409ActAbo','string'];_0x38fd=function(){return _0x30311c;};return _0x38fd();}export function getRangerConfigPath(){const _0xf48ae=_0x5203,_0x5c6e47={'yuwlK':function(_0xbca0cb,_0x3f4206,_0x140a8e){return _0xbca0cb(_0x3f4206,_0x140a8e);}};return _0x5c6e47['yuwlK'](join,getRangerDir(),_0xf48ae(0x103));}export async function loadRangerConfig(){const _0x4ae050=_0x5203,_0x3ceffc={'tPzQE':function(_0x3b8b92,_0x4dda3f){return _0x3b8b92(_0x4dda3f);},'FLtsT':function(_0x31e9b6,_0x2c3437,_0x3e577c){return _0x31e9b6(_0x2c3437,_0x3e577c);},'OCtHo':function(_0x185a11,_0x4b6193){return _0x185a11!==_0x4b6193;},'uRmQv':_0x4ae050(0x101),'QQJPq':function(_0x239d62,_0x324010){return _0x239d62 instanceof _0x324010;}},_0xdd7b4e=getRangerConfigPath();if(!_0x3ceffc['tPzQE'](existsSync,_0xdd7b4e))return{};try{const _0x5b5f53=await _0x3ceffc[_0x4ae050(0xfc)](readFile,_0xdd7b4e,'utf-8'),_0x7c610=JSON[_0x4ae050(0x100)](_0x5b5f53);if(!_0x7c610||_0x3ceffc[_0x4ae050(0x108)](typeof _0x7c610,_0x3ceffc[_0x4ae050(0xfd)])||Array['isArray'](_0x7c610))return{};const _0x15c708={},_0x30090e=_0x7c610[_0x4ae050(0x102)];return typeof _0x30090e===_0x4ae050(0xf9)&&(_0x15c708[_0x4ae050(0x102)]=_0x30090e),_0x15c708;}catch(_0x220088){const _0x5ccf51=_0x3ceffc[_0x4ae050(0x107)](_0x220088,Error)?_0x220088['message']:_0x3ceffc[_0x4ae050(0xf7)](String,_0x220088);return console[_0x4ae050(0x105)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0xdd7b4e+':\x20'+_0x5ccf51),{};}}
@@ -1 +1 @@
1
- (function(_0x5c3429,_0x4d4c51){const _0x7b44ca=_0x173c,_0x42d14c=_0x5c3429();while(!![]){try{const _0x376570=-parseInt(_0x7b44ca(0x107))/0x1*(-parseInt(_0x7b44ca(0x104))/0x2)+-parseInt(_0x7b44ca(0xfb))/0x3*(parseInt(_0x7b44ca(0xfc))/0x4)+-parseInt(_0x7b44ca(0x108))/0x5*(-parseInt(_0x7b44ca(0xfa))/0x6)+-parseInt(_0x7b44ca(0xf8))/0x7+parseInt(_0x7b44ca(0xff))/0x8+parseInt(_0x7b44ca(0x105))/0x9+-parseInt(_0x7b44ca(0x106))/0xa;if(_0x376570===_0x4d4c51)break;else _0x42d14c['push'](_0x42d14c['shift']());}catch(_0x164e12){_0x42d14c['push'](_0x42d14c['shift']());}}}(_0x1f6f,0xc0a8d));import{dirname,join,parse}from'path';function _0x173c(_0x394fc8,_0x5c6679){_0x394fc8=_0x394fc8-0xf8;const _0x1f6ff1=_0x1f6f();let _0x173c63=_0x1f6ff1[_0x394fc8];return _0x173c63;}import{existsSync}from'fs';function _0x1f6f(){const _0x48f5b5=['EpdBf','.ranger','6196mdNEAh','12496374MtGfdq','7937040IZNYvt','53SfAVFW','3528365CUiwBH','5046384apGOJn','nXyLv','6LVfwbu','3090255KAuhoR','4AYirxw','segub','exdTh','8603848BiDvyG','.git','WCWmp'];_0x1f6f=function(){return _0x48f5b5;};return _0x1f6f();}import{homedir}from'os';export function getRangerRoot(){const _0x379a74=_0x173c,_0x15afe4={'gKzXw':function(_0x379703,_0x5ff300){return _0x379703(_0x5ff300);},'wHGfp':function(_0x1ef062,_0x3f7979,_0x945eff){return _0x1ef062(_0x3f7979,_0x945eff);},'MlaQy':function(_0x1097ef,_0x306cc5){return _0x1097ef(_0x306cc5);},'smHnQ':'.ranger','WCWmp':function(_0x4bc4c6){return _0x4bc4c6();}};let _0x3e80d0=process['cwd']();const _0x502de8=parse(_0x3e80d0)['root'];while(_0x3e80d0!==_0x502de8){if(_0x15afe4['gKzXw'](existsSync,_0x15afe4['wHGfp'](join,_0x3e80d0,'.ranger')))return _0x3e80d0;_0x3e80d0=dirname(_0x3e80d0);}if(_0x15afe4['MlaQy'](existsSync,join(_0x502de8,_0x15afe4['smHnQ'])))return _0x502de8;const _0x474921=_0x15afe4[_0x379a74(0x101)](findGitRoot);if(_0x474921)return _0x474921;return process['cwd']();}export function getRangerDir(){const _0x2262ea=_0x173c;return join(getRangerRoot(),_0x2262ea(0x103));}export function findGitRoot(){const _0x7c236a=_0x173c,_0x551ac8={'EpdBf':function(_0x3a526d,_0x1a3706){return _0x3a526d(_0x1a3706);},'CBimD':function(_0x30f933,_0x4cbc88){return _0x30f933!==_0x4cbc88;},'gyArV':function(_0x268885,_0x5e5ca,_0x5d2346){return _0x268885(_0x5e5ca,_0x5d2346);},'nXyLv':_0x7c236a(0x100),'TmLZL':function(_0x37378a,_0x6648ab){return _0x37378a(_0x6648ab);},'exdTh':function(_0x4622e0,_0x3aba88,_0x40b10a){return _0x4622e0(_0x3aba88,_0x40b10a);}};let _0x3e5bde=process['cwd']();const _0x1be861=_0x551ac8[_0x7c236a(0x102)](parse,_0x3e5bde)['root'];while(_0x551ac8['CBimD'](_0x3e5bde,_0x1be861)){if(existsSync(_0x551ac8['gyArV'](join,_0x3e5bde,_0x551ac8[_0x7c236a(0xf9)])))return _0x3e5bde;_0x3e5bde=_0x551ac8['TmLZL'](dirname,_0x3e5bde);}if(_0x551ac8['TmLZL'](existsSync,_0x551ac8[_0x7c236a(0xfe)](join,_0x1be861,_0x7c236a(0x100))))return _0x1be861;return null;}export function getRangerHomeDir(){const _0x3aae55=_0x173c,_0x23f24e={'gJWiy':function(_0x31255a){return _0x31255a();},'segub':'.ranger'};return join(_0x23f24e['gJWiy'](homedir),_0x23f24e[_0x3aae55(0xfd)]);}
1
+ function _0x4bbb(_0x1d2a73,_0x49268c){_0x1d2a73=_0x1d2a73-0x19a;const _0xe051d6=_0xe051();let _0x4bbb22=_0xe051d6[_0x1d2a73];return _0x4bbb22;}(function(_0x45230a,_0x249c23){const _0x466008=_0x4bbb,_0x33bb5a=_0x45230a();while(!![]){try{const _0x56f1fe=-parseInt(_0x466008(0x1ab))/0x1+parseInt(_0x466008(0x1a6))/0x2+parseInt(_0x466008(0x1ad))/0x3*(parseInt(_0x466008(0x1a2))/0x4)+-parseInt(_0x466008(0x1a0))/0x5*(parseInt(_0x466008(0x19f))/0x6)+parseInt(_0x466008(0x1a5))/0x7+-parseInt(_0x466008(0x1ac))/0x8*(-parseInt(_0x466008(0x19a))/0x9)+-parseInt(_0x466008(0x19b))/0xa*(-parseInt(_0x466008(0x1aa))/0xb);if(_0x56f1fe===_0x249c23)break;else _0x33bb5a['push'](_0x33bb5a['shift']());}catch(_0x2a1281){_0x33bb5a['push'](_0x33bb5a['shift']());}}}(_0xe051,0x9e864));import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x4a5126=_0x4bbb,_0x5bcdd5={'roFzG':function(_0x4eb79e,_0x263d6e){return _0x4eb79e(_0x263d6e);},'NhZtb':function(_0x4536d7,_0x6b6417,_0xe04a8d){return _0x4536d7(_0x6b6417,_0xe04a8d);}};let _0x2b2b8f=process['cwd']();const _0x292005=_0x5bcdd5['roFzG'](parse,_0x2b2b8f)[_0x4a5126(0x1a7)];while(_0x2b2b8f!==_0x292005){if(existsSync(join(_0x2b2b8f,'.ranger')))return _0x2b2b8f;_0x2b2b8f=dirname(_0x2b2b8f);}if(existsSync(_0x5bcdd5[_0x4a5126(0x19d)](join,_0x292005,_0x4a5126(0x1a8))))return _0x292005;const _0x36d4ea=findGitRoot();if(_0x36d4ea)return _0x36d4ea;return process[_0x4a5126(0x19e)]();}export function getRangerDir(){const _0x556293=_0x4bbb,_0x112ee={'VgpWa':function(_0x33d948,_0x597870,_0xa4de0a){return _0x33d948(_0x597870,_0xa4de0a);},'UIWsW':function(_0x155667){return _0x155667();},'fZdQe':'.ranger'};return _0x112ee[_0x556293(0x1a3)](join,_0x112ee[_0x556293(0x19c)](getRangerRoot),_0x112ee['fZdQe']);}function _0xe051(){const _0x1468c5=['VWdpE','2072632gsDNGq','VgpWa','iyvae','1718073ZfRHDS','586878pEHdCQ','root','.ranger','AjIUP','4213hjfrul','1128197EolKyL','16UIWVwD','3qgqZns','3062709hSDYfa','21350AXkHnv','UIWsW','NhZtb','cwd','4666980KgaJJY','5ataHvT'];_0xe051=function(){return _0x1468c5;};return _0xe051();}export function findGitRoot(){const _0x28ff68=_0x4bbb,_0x1c1288={'rwNge':function(_0x23bf23,_0x2157f2){return _0x23bf23(_0x2157f2);},'VWdpE':function(_0x19732d,_0x4c6be6,_0x5afbc3){return _0x19732d(_0x4c6be6,_0x5afbc3);},'iyvae':'.git'};let _0x4c7793=process[_0x28ff68(0x19e)]();const _0x47611c=parse(_0x4c7793)[_0x28ff68(0x1a7)];while(_0x4c7793!==_0x47611c){if(_0x1c1288['rwNge'](existsSync,_0x1c1288[_0x28ff68(0x1a1)](join,_0x4c7793,'.git')))return _0x4c7793;_0x4c7793=dirname(_0x4c7793);}if(existsSync(join(_0x47611c,_0x1c1288[_0x28ff68(0x1a4)])))return _0x47611c;return null;}export function getRangerHomeDir(){const _0x5a9e21=_0x4bbb,_0x34d421={'bbaJc':function(_0x547f4f,_0x4e2c3c,_0x12a42a){return _0x547f4f(_0x4e2c3c,_0x12a42a);},'AjIUP':function(_0x5101f1){return _0x5101f1();}};return _0x34d421['bbaJc'](join,_0x34d421[_0x5a9e21(0x1a9)](homedir),_0x5a9e21(0x1a8));}
@@ -1 +1 @@
1
- (function(_0x9078aa,_0x334142){const _0x10477e=_0x5558,_0x446e09=_0x9078aa();while(!![]){try{const _0x418ae0=parseInt(_0x10477e(0x157))/0x1+parseInt(_0x10477e(0x15c))/0x2*(-parseInt(_0x10477e(0x14b))/0x3)+parseInt(_0x10477e(0x14a))/0x4+parseInt(_0x10477e(0x158))/0x5+-parseInt(_0x10477e(0x149))/0x6+parseInt(_0x10477e(0x15b))/0x7+parseInt(_0x10477e(0x13d))/0x8*(-parseInt(_0x10477e(0x142))/0x9);if(_0x418ae0===_0x334142)break;else _0x446e09['push'](_0x446e09['shift']());}catch(_0x3ad299){_0x446e09['push'](_0x446e09['shift']());}}}(_0x13b9,0xee057));function _0x5558(_0x3da1df,_0x4c7b40){_0x3da1df=_0x3da1df-0x13b;const _0x13b98f=_0x13b9();let _0x55581c=_0x13b98f[_0x3da1df];return _0x55581c;}import{readdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';export async function collectScreenshots(_0x384347){const _0x222db7=_0x5558,_0x3a0791={'ddKbe':function(_0x4abdf1,_0xbca83e){return _0x4abdf1(_0xbca83e);},'UsVIq':function(_0xdd1d98,_0x33bc5e,_0x1f8e21){return _0xdd1d98(_0x33bc5e,_0x1f8e21);}},_0x1e53d6=[],_0x3f9766=[];if(!_0x3a0791[_0x222db7(0x152)](existsSync,_0x384347))return{'screenshots':_0x1e53d6,'paths':_0x3f9766};const _0x5694ab=await _0x3a0791[_0x222db7(0x152)](readdir,_0x384347),_0x50f19b=_0x5694ab['filter'](_0x286aed=>/\.(png|jpg|jpeg|gif|webp)$/i['test'](_0x286aed))[_0x222db7(0x15a)]();for(const _0x52cdf1 of _0x50f19b){const _0x5454ad=_0x3a0791[_0x222db7(0x140)](join,_0x384347,_0x52cdf1);_0x1e53d6[_0x222db7(0x154)]({'filename':_0x52cdf1,'path':_0x5454ad,'relativePath':'./'+_0x52cdf1}),_0x3f9766[_0x222db7(0x154)](_0x5454ad);}return{'screenshots':_0x1e53d6,'paths':_0x3f9766};}function getSeverityEmoji(_0x57933d){const _0xe878e3=_0x5558,_0x366d25={'WPZFK':_0xe878e3(0x143),'DNQAb':_0xe878e3(0x150)};switch(_0x57933d){case _0x366d25['WPZFK']:return'🔴';case _0x366d25[_0xe878e3(0x13b)]:return'🟠';default:return'⚪';}}function _0x13b9(){const _0x2a926d=['42910bcGrPd','slice','DNQAb','relativePath','728dsubOq','map','replace','UsVIq','filename','60381UaBpQF','BLOCKER','split','toUpperCase','toISOString','PASSED','length','8378148HihVee','2345920GAmPgH','201lZFGvs','**URL:**\x20','QsqGi','includes','description','MAJOR','###\x20Issues\x20Found\x20(','ddKbe','**Status:**\x20','push','**Duration:**\x20','screenshot','1753509cFroyn','1971255xIdKmx','join','sort','11795399lGywSN'];_0x13b9=function(){return _0x2a926d;};return _0x13b9();}function formatScreenshotCaption(_0x5eeafe){const _0x1f2a23=_0x5558,_0xbc4101=_0x5eeafe[_0x1f2a23(0x13f)](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0x17ae80=_0xbc4101[_0x1f2a23(0x13f)](/^\d+-/,'');return _0x17ae80[_0x1f2a23(0x144)]('-')[_0x1f2a23(0x13e)](_0x336f2d=>_0x336f2d['charAt'](0x0)[_0x1f2a23(0x145)]()+_0x336f2d[_0x1f2a23(0x15d)](0x1))[_0x1f2a23(0x159)]('\x20');}export function generateMarkdownReport(_0xe12978){const _0x51d7f7=_0x5558,_0x28988c={'QsqGi':function(_0x468075,_0x4aa3bc){return _0x468075>_0x4aa3bc;}},{sessionId:_0x2ab399,task:_0x1d5833,url:_0x21064b,success:_0x3a9c4b,summary:_0x532f1a,issues:_0x5d8cfb,screenshots:_0x1325fe,durationMs:_0x10b488,traceViewerUrl:_0x26b5bc}=_0xe12978,_0x36cf97=new Date()[_0x51d7f7(0x146)](),_0x4e8d13=(_0x10b488/0x3e8)['toFixed'](0x1),_0x388704=[];_0x388704['push']('#\x20Verification\x20Report'),_0x388704['push'](''),_0x388704['push']('**Session:**\x20`'+_0x2ab399+'`'),_0x388704[_0x51d7f7(0x154)]('**Generated:**\x20'+_0x36cf97),_0x388704[_0x51d7f7(0x154)](_0x51d7f7(0x155)+_0x4e8d13+'s'),_0x388704['push'](''),_0x388704[_0x51d7f7(0x154)]('##\x20Task'),_0x388704['push'](''),_0x388704[_0x51d7f7(0x154)](_0x51d7f7(0x14c)+_0x21064b),_0x388704[_0x51d7f7(0x154)](''),_0x388704['push']('>\x20'+_0x1d5833),_0x388704[_0x51d7f7(0x154)](''),_0x388704['push']('##\x20Result'),_0x388704[_0x51d7f7(0x154)]('');const _0x29b841=_0x3a9c4b?'✅':'❌';_0x388704['push'](_0x51d7f7(0x153)+_0x29b841+'\x20'+(_0x3a9c4b?_0x51d7f7(0x147):'ISSUES\x20FOUND')),_0x388704[_0x51d7f7(0x154)](''),_0x388704['push']('###\x20Summary'),_0x388704['push'](''),_0x388704[_0x51d7f7(0x154)](_0x532f1a),_0x388704[_0x51d7f7(0x154)]('');if(_0x5d8cfb&&_0x5d8cfb['length']>0x0){_0x388704['push'](_0x51d7f7(0x151)+_0x5d8cfb[_0x51d7f7(0x148)]+')'),_0x388704['push']('');for(const _0x43fbc4 of _0x5d8cfb){const _0x52d025=getSeverityEmoji(_0x43fbc4['severity']);_0x388704['push']('####\x20'+_0x52d025+'\x20['+_0x43fbc4['severity']+']\x20Issue'),_0x388704[_0x51d7f7(0x154)](''),_0x388704['push'](_0x43fbc4[_0x51d7f7(0x14f)]),_0x388704[_0x51d7f7(0x154)]('');if(_0x43fbc4[_0x51d7f7(0x156)]){const _0x4d7e21=_0x43fbc4['screenshot'],_0x4770f3=_0x1325fe['find'](_0x46ed47=>_0x46ed47[_0x51d7f7(0x141)]===_0x4d7e21||_0x46ed47['filename'][_0x51d7f7(0x14e)](_0x4d7e21));_0x4770f3&&(_0x388704[_0x51d7f7(0x154)]('**Screenshot:**'),_0x388704[_0x51d7f7(0x154)](''),_0x388704[_0x51d7f7(0x154)]('!['+_0x4d7e21+']('+_0x4770f3[_0x51d7f7(0x13c)]+')'),_0x388704['push'](''));}}}if(_0x28988c[_0x51d7f7(0x14d)](_0x1325fe['length'],0x0)){_0x388704[_0x51d7f7(0x154)]('##\x20Screenshots\x20('+_0x1325fe['length']+')'),_0x388704[_0x51d7f7(0x154)]('');for(const _0x567b4b of _0x1325fe){const _0x15f907=formatScreenshotCaption(_0x567b4b[_0x51d7f7(0x141)]);_0x388704[_0x51d7f7(0x154)]('###\x20'+_0x15f907),_0x388704['push'](''),_0x388704['push']('!['+_0x567b4b[_0x51d7f7(0x141)]+']('+_0x567b4b['relativePath']+')'),_0x388704[_0x51d7f7(0x154)]('');}}return _0x26b5bc&&(_0x388704['push']('---'),_0x388704[_0x51d7f7(0x154)](''),_0x388704['push']('**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer]('+_0x26b5bc+')'),_0x388704['push']('')),_0x388704['join']('\x0a');}
1
+ (function(_0x6f24cb,_0x3af782){const _0xf2b099=_0x4642,_0x521374=_0x6f24cb();while(!![]){try{const _0x59be27=-parseInt(_0xf2b099(0x1cc))/0x1*(-parseInt(_0xf2b099(0x1db))/0x2)+parseInt(_0xf2b099(0x1e5))/0x3*(parseInt(_0xf2b099(0x1df))/0x4)+-parseInt(_0xf2b099(0x1e7))/0x5*(parseInt(_0xf2b099(0x1e4))/0x6)+parseInt(_0xf2b099(0x1d6))/0x7*(parseInt(_0xf2b099(0x1de))/0x8)+-parseInt(_0xf2b099(0x1e8))/0x9+-parseInt(_0xf2b099(0x1ce))/0xa*(parseInt(_0xf2b099(0x1e1))/0xb)+parseInt(_0xf2b099(0x1e9))/0xc*(parseInt(_0xf2b099(0x1cd))/0xd);if(_0x59be27===_0x3af782)break;else _0x521374['push'](_0x521374['shift']());}catch(_0x3f3d69){_0x521374['push'](_0x521374['shift']());}}}(_0x3913,0xe9ff2));import{readdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';export async function collectScreenshots(_0x5780db){const _0x233e20=_0x4642,_0x1cc9e0={'hWzzG':function(_0x2884b4,_0x584da4){return _0x2884b4(_0x584da4);},'fKIJR':function(_0x5de84a,_0x592e6e,_0x1f267a){return _0x5de84a(_0x592e6e,_0x1f267a);}},_0x5eb1c3=[],_0x1a15ba=[];if(!_0x1cc9e0['hWzzG'](existsSync,_0x5780db))return{'screenshots':_0x5eb1c3,'paths':_0x1a15ba};const _0x3e9387=await _0x1cc9e0['hWzzG'](readdir,_0x5780db),_0x5adfa3=_0x3e9387['filter'](_0x20787f=>/\.(png|jpg|jpeg|gif|webp)$/i[_0x233e20(0x1e0)](_0x20787f))['sort']();for(const _0x58a6f3 of _0x5adfa3){const _0x3bc85b=_0x1cc9e0[_0x233e20(0x1cb)](join,_0x5780db,_0x58a6f3);_0x5eb1c3['push']({'filename':_0x58a6f3,'path':_0x3bc85b,'relativePath':'./'+_0x58a6f3}),_0x1a15ba['push'](_0x3bc85b);}return{'screenshots':_0x5eb1c3,'paths':_0x1a15ba};}function getSeverityEmoji(_0x537626){const _0x1f3a3b=_0x4642,_0x55118c={'FBqys':'BLOCKER'};switch(_0x537626){case _0x55118c[_0x1f3a3b(0x1eb)]:return'🔴';case'MAJOR':return'🟠';default:return'⚪';}}function _0x4642(_0xbb50ab,_0x1eed26){_0xbb50ab=_0xbb50ab-0x1cb;const _0x391377=_0x3913();let _0x46428d=_0x391377[_0xbb50ab];return _0x46428d;}function _0x3913(){const _0x408048=['1KLApQr','26tuIjki','235310tTEeKZ','replace','relativePath','severity','find','###\x20Issues\x20Found\x20(','##\x20Task','**Duration:**\x20','24031xhIstW','join','filename','###\x20Summary','**URL:**\x20','1027454TRLBpw','screenshot','#\x20Verification\x20Report','2912fUKkIS','4lybODs','test','781QTmCRt','length','**Status:**\x20','24HGIrJV','1063551KIogrP','slice','1986690edMUvk','615501MUhexW','13014216QEOFWW','push','FBqys','toUpperCase','ISSUES\x20FOUND','map','fKIJR'];_0x3913=function(){return _0x408048;};return _0x3913();}function formatScreenshotCaption(_0x500ac4){const _0x150340=_0x4642,_0x2e93da=_0x500ac4[_0x150340(0x1cf)](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0x48ee3a=_0x2e93da[_0x150340(0x1cf)](/^\d+-/,'');return _0x48ee3a['split']('-')[_0x150340(0x1ee)](_0xcd60f3=>_0xcd60f3['charAt'](0x0)[_0x150340(0x1ec)]()+_0xcd60f3[_0x150340(0x1e6)](0x1))[_0x150340(0x1d7)]('\x20');}export function generateMarkdownReport(_0x4ecd0d){const _0x502c2b=_0x4642,{sessionId:_0x5338bd,task:_0x5ab23f,url:_0x2c6fec,success:_0x4e68cd,summary:_0xccd628,issues:_0x5f4a39,screenshots:_0x1bbc61,durationMs:_0x5750a1,traceViewerUrl:_0x1bbb70}=_0x4ecd0d,_0xfa613b=new Date()['toISOString'](),_0x5870a2=(_0x5750a1/0x3e8)['toFixed'](0x1),_0x5f2ec8=[];_0x5f2ec8[_0x502c2b(0x1ea)](_0x502c2b(0x1dd)),_0x5f2ec8[_0x502c2b(0x1ea)](''),_0x5f2ec8['push']('**Session:**\x20`'+_0x5338bd+'`'),_0x5f2ec8[_0x502c2b(0x1ea)]('**Generated:**\x20'+_0xfa613b),_0x5f2ec8[_0x502c2b(0x1ea)](_0x502c2b(0x1d5)+_0x5870a2+'s'),_0x5f2ec8[_0x502c2b(0x1ea)](''),_0x5f2ec8['push'](_0x502c2b(0x1d4)),_0x5f2ec8[_0x502c2b(0x1ea)](''),_0x5f2ec8[_0x502c2b(0x1ea)](_0x502c2b(0x1da)+_0x2c6fec),_0x5f2ec8[_0x502c2b(0x1ea)](''),_0x5f2ec8[_0x502c2b(0x1ea)]('>\x20'+_0x5ab23f),_0x5f2ec8['push'](''),_0x5f2ec8[_0x502c2b(0x1ea)]('##\x20Result'),_0x5f2ec8[_0x502c2b(0x1ea)]('');const _0x320940=_0x4e68cd?'✅':'❌';_0x5f2ec8[_0x502c2b(0x1ea)](_0x502c2b(0x1e3)+_0x320940+'\x20'+(_0x4e68cd?'PASSED':_0x502c2b(0x1ed))),_0x5f2ec8[_0x502c2b(0x1ea)](''),_0x5f2ec8['push'](_0x502c2b(0x1d9)),_0x5f2ec8[_0x502c2b(0x1ea)](''),_0x5f2ec8[_0x502c2b(0x1ea)](_0xccd628),_0x5f2ec8[_0x502c2b(0x1ea)]('');if(_0x5f4a39&&_0x5f4a39['length']>0x0){_0x5f2ec8[_0x502c2b(0x1ea)](_0x502c2b(0x1d3)+_0x5f4a39['length']+')'),_0x5f2ec8['push']('');for(const _0x50a24f of _0x5f4a39){const _0x249ff4=getSeverityEmoji(_0x50a24f[_0x502c2b(0x1d1)]);_0x5f2ec8[_0x502c2b(0x1ea)]('####\x20'+_0x249ff4+'\x20['+_0x50a24f['severity']+']\x20Issue'),_0x5f2ec8['push'](''),_0x5f2ec8['push'](_0x50a24f['description']),_0x5f2ec8['push']('');if(_0x50a24f['screenshot']){const _0x53949c=_0x50a24f[_0x502c2b(0x1dc)],_0x340a1c=_0x1bbc61[_0x502c2b(0x1d2)](_0x3e09e0=>_0x3e09e0['filename']===_0x53949c||_0x3e09e0[_0x502c2b(0x1d8)]['includes'](_0x53949c));_0x340a1c&&(_0x5f2ec8[_0x502c2b(0x1ea)]('**Screenshot:**'),_0x5f2ec8[_0x502c2b(0x1ea)](''),_0x5f2ec8['push']('!['+_0x53949c+']('+_0x340a1c[_0x502c2b(0x1d0)]+')'),_0x5f2ec8['push'](''));}}}if(_0x1bbc61[_0x502c2b(0x1e2)]>0x0){_0x5f2ec8[_0x502c2b(0x1ea)]('##\x20Screenshots\x20('+_0x1bbc61['length']+')'),_0x5f2ec8[_0x502c2b(0x1ea)]('');for(const _0x3d9070 of _0x1bbc61){const _0x800bab=formatScreenshotCaption(_0x3d9070[_0x502c2b(0x1d8)]);_0x5f2ec8[_0x502c2b(0x1ea)]('###\x20'+_0x800bab),_0x5f2ec8['push'](''),_0x5f2ec8['push']('!['+_0x3d9070['filename']+']('+_0x3d9070[_0x502c2b(0x1d0)]+')'),_0x5f2ec8[_0x502c2b(0x1ea)]('');}}return _0x1bbb70&&(_0x5f2ec8['push']('---'),_0x5f2ec8['push'](''),_0x5f2ec8[_0x502c2b(0x1ea)]('**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer]('+_0x1bbb70+')'),_0x5f2ec8[_0x502c2b(0x1ea)]('')),_0x5f2ec8[_0x502c2b(0x1d7)]('\x0a');}
@@ -1 +1 @@
1
- function _0x2321(){const _0x381000=['2750839XdKvDt','label','1330102eKyEvc','2219253KUMYhx','4qtUCHR','54750LmGLXv','954088APlnUA','baseDelayMs','),\x20retrying\x20in\x20','maxRetries','error','3469330abdhpv','27LWvehd','2617374zXTlbu'];_0x2321=function(){return _0x381000;};return _0x2321();}(function(_0x592fae,_0x52cadb){const _0x318e24=_0x27f2,_0x4d2fac=_0x592fae();while(!![]){try{const _0x4ddf63=-parseInt(_0x318e24(0x14c))/0x1+-parseInt(_0x318e24(0x149))/0x2+parseInt(_0x318e24(0x14a))/0x3+parseInt(_0x318e24(0x14b))/0x4*(parseInt(_0x318e24(0x144))/0x5)+parseInt(_0x318e24(0x146))/0x6+-parseInt(_0x318e24(0x147))/0x7+-parseInt(_0x318e24(0x14d))/0x8*(parseInt(_0x318e24(0x145))/0x9);if(_0x4ddf63===_0x52cadb)break;else _0x4d2fac['push'](_0x4d2fac['shift']());}catch(_0x432f8a){_0x4d2fac['push'](_0x4d2fac['shift']());}}}(_0x2321,0x617b5));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x27f2(_0x8d45a2,_0x9f3299){_0x8d45a2=_0x8d45a2-0x144;const _0x23214a=_0x2321();let _0x27f21d=_0x23214a[_0x8d45a2];return _0x27f21d;}export async function withRetry(_0x5ed22e,_0x4f5036){const _0x10732d=_0x27f2,_0x4f54c9={'rWkcR':function(_0x412f04,_0x2b6888){return _0x412f04(_0x2b6888);},'jxkLx':function(_0x290ea4,_0x39a9fa){return _0x290ea4+_0x39a9fa;}},_0x5a1b8b=_0x4f5036?.[_0x10732d(0x150)]??DEFAULT_MAX_RETRIES,_0x3f7813=_0x4f5036?.[_0x10732d(0x14e)]??DEFAULT_BASE_DELAY_MS;let _0x36adab;for(let _0x4ddbd7=0x0;_0x4ddbd7<=_0x5a1b8b;_0x4ddbd7++){try{return await _0x5ed22e();}catch(_0x3253e7){_0x36adab=_0x3253e7 instanceof Error?_0x3253e7:new Error(_0x4f54c9['rWkcR'](String,_0x3253e7));if(_0x4ddbd7<_0x5a1b8b){const _0x56bd17=_0x3f7813*Math['pow'](0x2,_0x4ddbd7);_0x4f5036?.[_0x10732d(0x148)]&&console[_0x10732d(0x151)](_0x4f5036['label']+'\x20failed\x20(attempt\x20'+(_0x4ddbd7+0x1)+'/'+_0x4f54c9['jxkLx'](_0x5a1b8b,0x1)+_0x10732d(0x14f)+_0x56bd17+'ms...'),await new Promise(_0x5696eb=>setTimeout(_0x5696eb,_0x56bd17));}}}throw _0x36adab;}
1
+ function _0x5717(_0x301a41,_0x3bf02f){_0x301a41=_0x301a41-0xc6;const _0x449c89=_0x449c();let _0x571747=_0x449c89[_0x301a41];return _0x571747;}(function(_0x47bc93,_0x40b499){const _0x35f841=_0x5717,_0x144eaa=_0x47bc93();while(!![]){try{const _0xeac8b5=-parseInt(_0x35f841(0xd0))/0x1+-parseInt(_0x35f841(0xd3))/0x2+parseInt(_0x35f841(0xd1))/0x3*(parseInt(_0x35f841(0xcf))/0x4)+-parseInt(_0x35f841(0xc9))/0x5+parseInt(_0x35f841(0xca))/0x6*(parseInt(_0x35f841(0xc7))/0x7)+parseInt(_0x35f841(0xce))/0x8+parseInt(_0x35f841(0xd4))/0x9*(-parseInt(_0x35f841(0xcc))/0xa);if(_0xeac8b5===_0x40b499)break;else _0x144eaa['push'](_0x144eaa['shift']());}catch(_0x370597){_0x144eaa['push'](_0x144eaa['shift']());}}}(_0x449c,0xcad39));function _0x449c(){const _0x57f11b=['20GWhfRv','ms...','10090608foArtO','1624868YukCpF','760400djzvME','9UWIFfU','baseDelayMs','404540JDkgzk','3527514rUPHLy','lzjtc','106148lJrSSK','ocFsb','1257050xfuEvN','138DbwLnz','),\x20retrying\x20in\x20'];_0x449c=function(){return _0x57f11b;};return _0x449c();}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x2e2086,_0x56875d){const _0x342eee=_0x5717,_0x129330={'lzjtc':function(_0x2ffd7b){return _0x2ffd7b();},'ocFsb':function(_0x5e2b44,_0x8c3cc6){return _0x5e2b44(_0x8c3cc6);}},_0x166889=_0x56875d?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x59379e=_0x56875d?.[_0x342eee(0xd2)]??DEFAULT_BASE_DELAY_MS;let _0x344619;for(let _0x20c236=0x0;_0x20c236<=_0x166889;_0x20c236++){try{return await _0x129330[_0x342eee(0xc6)](_0x2e2086);}catch(_0x51b596){_0x344619=_0x51b596 instanceof Error?_0x51b596:new Error(_0x129330[_0x342eee(0xc8)](String,_0x51b596));if(_0x20c236<_0x166889){const _0x2cfdd1=_0x59379e*Math['pow'](0x2,_0x20c236);_0x56875d?.['label']&&console['error'](_0x56875d['label']+'\x20failed\x20(attempt\x20'+(_0x20c236+0x1)+'/'+(_0x166889+0x1)+_0x342eee(0xcb)+_0x2cfdd1+_0x342eee(0xcd)),await new Promise(_0x36232b=>setTimeout(_0x36232b,_0x2cfdd1));}}}throw _0x344619;}
@@ -1 +1 @@
1
- const _0x5a9f62=_0x5e4d;(function(_0x386baa,_0x4825e8){const _0x4f6973=_0x5e4d,_0x19f575=_0x386baa();while(!![]){try{const _0x200461=-parseInt(_0x4f6973(0x1b5))/0x1*(-parseInt(_0x4f6973(0x1c2))/0x2)+-parseInt(_0x4f6973(0x1c4))/0x3*(-parseInt(_0x4f6973(0x1c6))/0x4)+-parseInt(_0x4f6973(0x1bd))/0x5*(-parseInt(_0x4f6973(0x1b7))/0x6)+-parseInt(_0x4f6973(0x19e))/0x7*(parseInt(_0x4f6973(0x1b4))/0x8)+parseInt(_0x4f6973(0x1a1))/0x9+parseInt(_0x4f6973(0x1cc))/0xa+-parseInt(_0x4f6973(0x1a0))/0xb;if(_0x200461===_0x4825e8)break;else _0x19f575['push'](_0x19f575['shift']());}catch(_0x58df77){_0x19f575['push'](_0x19f575['shift']());}}}(_0x593a,0x9b36d));import*as _0x4a9c57 from'fs';import*as _0x291f35 from'path';import*as _0x12a9e8 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x291f35['join'](_0x12a9e8['homedir'](),_0x5a9f62(0x19f),'.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function _0x5e4d(_0x5f306a,_0xee11bc){_0x5f306a=_0x5f306a-0x199;const _0x593ad5=_0x593a();let _0x5e4db3=_0x593ad5[_0x5f306a];return _0x5e4db3;}function loadCache(){const _0x33a71c=_0x5a9f62,_0x162d7d={'SxbJH':'utf-8','NakUA':function(_0x4bb395){return _0x4bb395();}};try{if(_0x4a9c57['existsSync'](CACHE_FILE)){const _0xe65a88=JSON[_0x33a71c(0x199)](_0x4a9c57['readFileSync'](CACHE_FILE,_0x162d7d[_0x33a71c(0x1aa)]));return{'version':0x3,'sessions':_0xe65a88['sessions']||{},'branches':_0xe65a88[_0x33a71c(0x1a3)]||{},'lastEnabledSessionClearedAt':_0xe65a88[_0x33a71c(0x1ba)]};}}catch{}return _0x162d7d[_0x33a71c(0x1c0)](createEmptyCache);}function saveCache(_0x584d9f){const _0x442eec=_0x5a9f62;try{const _0x31b065=_0x291f35['dirname'](CACHE_FILE);!_0x4a9c57['existsSync'](_0x31b065)&&_0x4a9c57[_0x442eec(0x1be)](_0x31b065,{'recursive':!![]}),_0x4a9c57[_0x442eec(0x1a9)](CACHE_FILE,JSON['stringify'](_0x584d9f,null,0x2));}catch{}}export function getCurrentBranch(){const _0x11a1f0=_0x5a9f62,_0x501e4d={'NqyPX':'utf-8','qrPxd':'pipe','RQguf':function(_0x35c786,_0x365d6c){return _0x35c786===_0x365d6c;},'TeNfs':_0x11a1f0(0x1c8)};try{const _0x3c2cca=execSync(_0x11a1f0(0x1ad),{'encoding':_0x501e4d['NqyPX'],'stdio':[_0x501e4d[_0x11a1f0(0x1b1)],'pipe','pipe']})[_0x11a1f0(0x19b)]();if(!_0x3c2cca||_0x501e4d['RQguf'](_0x3c2cca,_0x501e4d[_0x11a1f0(0x1ca)]))return null;return _0x3c2cca;}catch{return null;}}export function enableBranch(_0x43b59c){const _0x1d9677={'LbNjb':function(_0x31e316){return _0x31e316();}},_0x1e46d0=_0x1d9677['LbNjb'](loadCache);_0x1e46d0['branches'][_0x43b59c]=!![],saveCache(_0x1e46d0);}export function disableBranch(_0x1f7437){const _0x23b59d=_0x5a9f62,_0x3a2ec7={'CcOAB':function(_0x42e666,_0x24991d){return _0x42e666(_0x24991d);}},_0x183b64=loadCache();delete _0x183b64[_0x23b59d(0x1a3)][_0x1f7437],_0x3a2ec7[_0x23b59d(0x1ce)](saveCache,_0x183b64);}export function isBranchEnabled(_0x12240c){const _0x16e9be=_0x5a9f62,_0x1975d2={'DoaLc':function(_0x35a0ca){return _0x35a0ca();},'tEvld':function(_0x30906a,_0x154a9f){return _0x30906a===_0x154a9f;}},_0x596ecf=_0x1975d2['DoaLc'](loadCache);return _0x1975d2[_0x16e9be(0x1a8)](_0x596ecf[_0x16e9be(0x1a3)][_0x12240c],!![]);}function getOrCreateSession(_0x13f5a3,_0x39aa60){const _0x198b0e=_0x5a9f62;return!_0x13f5a3['sessions'][_0x39aa60]&&(_0x13f5a3[_0x198b0e(0x1ae)][_0x39aa60]={}),_0x13f5a3['sessions'][_0x39aa60];}export function enableSession(_0x3a59ef){const _0x24ba07=_0x5a9f62,_0x87f457={'cnuZM':function(_0x289305){return _0x289305();},'jLHUi':'master','WgIFK':function(_0x2eccc4,_0x4ef6a){return _0x2eccc4(_0x4ef6a);}},_0x5e76d7=_0x87f457['cnuZM'](loadCache),_0x1c0858=getOrCreateSession(_0x5e76d7,_0x3a59ef);_0x1c0858['enabled']=!![];const _0x52523e=getCurrentBranch();_0x52523e&&_0x52523e!==_0x24ba07(0x1b2)&&_0x52523e!==_0x87f457['jLHUi']&&(_0x5e76d7['branches'][_0x52523e]=!![],_0x1c0858[_0x24ba07(0x1c9)]=_0x52523e),_0x87f457['WgIFK'](saveCache,_0x5e76d7);}export function isSessionEnabled(_0x5b37fc){const _0x49cb63=_0x5a9f62,_0x87adbe={'RIUBx':function(_0x187917){return _0x187917();},'koeqb':function(_0x2f4bb7,_0x38bcc9){return _0x2f4bb7===_0x38bcc9;},'kSUQJ':function(_0x483510,_0x4e32cd){return _0x483510||_0x4e32cd;}},_0x2ae5e8=_0x87adbe['RIUBx'](loadCache),_0x4c1a72=_0x87adbe[_0x49cb63(0x1c7)](getCurrentBranch);if(!_0x4c1a72||_0x4c1a72==='main'||_0x4c1a72==='master')return _0x87adbe['koeqb'](_0x2ae5e8['sessions'][_0x5b37fc]?.['enabled'],!![]);const _0x34b12f=_0x2ae5e8[_0x49cb63(0x1a3)][_0x4c1a72]===!![],_0x2e5d73=_0x2ae5e8[_0x49cb63(0x1ae)][_0x5b37fc]?.[_0x49cb63(0x1bb)]===!![];return _0x87adbe[_0x49cb63(0x1af)](_0x34b12f,_0x2e5d73);}export function disableSession(_0x152dce){const _0x31a126=_0x5a9f62,_0x4a1af4={'edFcw':function(_0x1ddd3b,_0x51deae){return _0x1ddd3b(_0x51deae);}},_0xdaf051=loadCache(),_0x3e3836=getOrCreateSession(_0xdaf051,_0x152dce);_0x3e3836['enabled']=![],_0x4a1af4[_0x31a126(0x1ac)](saveCache,_0xdaf051);}export function updateBranchTracking(_0x212e3f){const _0x1dc074=_0x5a9f62,_0x39ac90={'asCeg':'main','DJAid':function(_0x456f81,_0x4faf25){return _0x456f81===_0x4faf25;},'jfVHF':_0x1dc074(0x1c1),'EooDV':function(_0x52b0e7,_0x406d01){return _0x52b0e7!==_0x406d01;}},_0x50c8d0=loadCache(),_0x35a089=_0x50c8d0[_0x1dc074(0x1ae)][_0x212e3f];if(!_0x35a089?.['enabled'])return;const _0x476bd5=getCurrentBranch();if(!_0x476bd5||_0x476bd5===_0x39ac90['asCeg']||_0x39ac90[_0x1dc074(0x1b8)](_0x476bd5,_0x39ac90[_0x1dc074(0x1c3)]))return;_0x39ac90[_0x1dc074(0x1bf)](_0x35a089[_0x1dc074(0x1c9)],_0x476bd5)&&(_0x50c8d0[_0x1dc074(0x1a3)][_0x476bd5]=!![],_0x35a089['currentBranch']=_0x476bd5,saveCache(_0x50c8d0));}export function initBranchTracking(_0x460fd5){const _0x151a9c=_0x5a9f62,_0x49ad8e={'arxmK':function(_0x54434f){return _0x54434f();},'yjdnT':'master','FuVBI':function(_0x2f15a3,_0x2d57bb){return _0x2f15a3===_0x2d57bb;}},_0x544232=loadCache(),_0x4bc764=_0x49ad8e[_0x151a9c(0x1b0)](getCurrentBranch);if(!_0x4bc764||_0x4bc764==='main'||_0x4bc764===_0x49ad8e[_0x151a9c(0x1a7)])return;if(_0x49ad8e['FuVBI'](_0x544232[_0x151a9c(0x1a3)][_0x4bc764],!![])){const _0x516ba1=getOrCreateSession(_0x544232,_0x460fd5);_0x516ba1['enabled']=!![],_0x516ba1[_0x151a9c(0x1c9)]=_0x4bc764,saveCache(_0x544232);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x2feea9){const _0x3080d2=_0x5a9f62,_0x560269={'SuwLF':function(_0x237c5e){return _0x237c5e();}},_0x457322=_0x560269['SuwLF'](loadCache),_0x7a6cc7=_0x457322['sessions'][_0x2feea9];_0x7a6cc7?.['enabled']&&(_0x457322['lastEnabledSessionClearedAt']=Date[_0x3080d2(0x1a5)](),saveCache(_0x457322));}export function shouldAutoEnableAfterClear(_0x2e3bf0){const _0x23208d=_0x5a9f62,_0x448eaf={'RvOJT':function(_0x5725ff,_0x3b0d19){return _0x5725ff!==_0x3b0d19;},'DAVxS':_0x23208d(0x1c5),'ugirt':function(_0x47717b,_0x5a888f){return _0x47717b<=_0x5a888f;}};if(_0x448eaf['RvOJT'](_0x2e3bf0,_0x448eaf[_0x23208d(0x1bc)]))return![];const _0x56a021=loadCache(),_0x4288ba=_0x56a021[_0x23208d(0x1ba)];if(!_0x4288ba)return![];const _0xe9742a=Date['now']()-_0x4288ba;return _0x448eaf[_0x23208d(0x1b6)](_0xe9742a,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x4385d4){const _0x10d5f3=_0x5a9f62,_0x28ba99={'EOzjh':function(_0x33e37e,_0x4fa585){return _0x33e37e!==_0x4fa585;}},_0x17c4ab=loadCache(),_0x9dfa9=getOrCreateSession(_0x17c4ab,_0x4385d4);_0x9dfa9['enabled']=!![];const _0xe04754=getCurrentBranch();_0xe04754&&_0xe04754!==_0x10d5f3(0x1b2)&&_0x28ba99[_0x10d5f3(0x19c)](_0xe04754,_0x10d5f3(0x1c1))&&(_0x9dfa9[_0x10d5f3(0x1c9)]=_0xe04754),delete _0x17c4ab['lastEnabledSessionClearedAt'],saveCache(_0x17c4ab);}export function registerSession(_0x5e654d,_0x3e8bb8){const _0x2f0de7=_0x5a9f62,_0x240266={'tppTz':function(_0x28f56c,_0x114003,_0x23e67d){return _0x28f56c(_0x114003,_0x23e67d);}},_0x5a19ae=loadCache(),_0x2a1e2a=_0x240266['tppTz'](getOrCreateSession,_0x5a19ae,_0x5e654d);_0x2a1e2a[_0x2f0de7(0x1a4)]=_0x3e8bb8,_0x2a1e2a[_0x2f0de7(0x1b3)]=new Date()['toISOString'](),saveCache(_0x5a19ae);}export function getSessionEntry(_0x232767){const _0x3d1a54=_0x5a9f62,_0xa45238={'recCd':function(_0x4acc97){return _0x4acc97();}},_0xfbe64c=_0xa45238[_0x3d1a54(0x1cf)](loadCache),_0x7e04ab=_0xfbe64c['sessions'][_0x232767];if(_0x7e04ab?.[_0x3d1a54(0x1a4)]&&_0x7e04ab?.[_0x3d1a54(0x1b3)])return{'featureId':_0x7e04ab[_0x3d1a54(0x1a4)],'registeredAt':_0x7e04ab[_0x3d1a54(0x1b3)]};return null;}export function unregisterSession(_0x5a7763){const _0x456b7f=_0x5a9f62,_0x13d5f4=loadCache(),_0xa47500=_0x13d5f4['sessions'][_0x5a7763];_0xa47500&&(delete _0xa47500[_0x456b7f(0x1a4)],delete _0xa47500[_0x456b7f(0x1b3)],saveCache(_0x13d5f4));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x39200e){const _0x531a36=_0x5a9f62,_0x3797bd={'hijKq':function(_0x34848d,_0x48667a,_0x42b113){return _0x34848d(_0x48667a,_0x42b113);},'gqJsR':function(_0x314f93,_0x458428){return _0x314f93(_0x458428);}},_0x24f712=loadCache(),_0x17d18e=_0x3797bd[_0x531a36(0x1cd)](getOrCreateSession,_0x24f712,_0x39200e),_0x5167a0=_0x17d18e[_0x531a36(0x1cb)]||0x0,_0x4e9a54=Date['now']();if(_0x4e9a54-_0x5167a0>=PLAN_REMINDER_INTERVAL_MS)return _0x17d18e[_0x531a36(0x1cb)]=_0x4e9a54,_0x3797bd[_0x531a36(0x19a)](saveCache,_0x24f712),!![];return![];}export function shouldShowStopReminder(_0x32ba62){const _0x750e7e=_0x5a9f62,_0x10bdc5={'wxgbp':function(_0x407e3e,_0x55f5cc,_0x515283){return _0x407e3e(_0x55f5cc,_0x515283);},'xyByV':function(_0x45f30b,_0x485053){return _0x45f30b>=_0x485053;},'RFrdV':function(_0x2ac73a,_0x1fa97b){return _0x2ac73a-_0x1fa97b;}},_0x25628e=loadCache(),_0x83ab1=_0x10bdc5[_0x750e7e(0x1a2)](getOrCreateSession,_0x25628e,_0x32ba62),_0xabd1c1=_0x83ab1['lastStopReminderAt']||0x0,_0x578983=Date['now']();if(_0x10bdc5[_0x750e7e(0x1b9)](_0x10bdc5['RFrdV'](_0x578983,_0xabd1c1),STOP_REMINDER_INTERVAL_MS))return _0x83ab1[_0x750e7e(0x1ab)]=_0x578983,saveCache(_0x25628e),!![];return![];}export function hasSessionBeenPrompted(_0x41d4ca){const _0x122723=loadCache();return _0x122723['sessions'][_0x41d4ca]?.['prompted']===!![];}function _0x593a(){const _0x524115=['now','XSyrh','yjdnT','tEvld','writeFileSync','SxbJH','lastStopReminderAt','edFcw','git\x20rev-parse\x20--abbrev-ref\x20HEAD','sessions','kSUQJ','arxmK','qrPxd','main','registeredAt','8voUlSg','1NnzEXz','ugirt','42414ikvAxo','DJAid','xyByV','lastEnabledSessionClearedAt','enabled','DAVxS','440tbFGSK','mkdirSync','EooDV','NakUA','master','1845164HhKLAg','jfVHF','119631eJgiQL','clear','68USYgvE','RIUBx','HEAD','currentBranch','TeNfs','lastPlanReminderAt','7173780xZCvIA','hijKq','CcOAB','recCd','parse','gqJsR','trim','EOzjh','prompted','2219329vDcxBT','.claude','24207953ntSjBe','1922274IjAnFr','wxgbp','branches','featureId'];_0x593a=function(){return _0x524115;};return _0x593a();}export function markSessionPrompted(_0x434c4f){const _0x450239=_0x5a9f62,_0x4a57ce={'SDqIo':function(_0x28418e){return _0x28418e();},'XSyrh':function(_0x2892a3,_0x6ebab4,_0x2b85a6){return _0x2892a3(_0x6ebab4,_0x2b85a6);}},_0x13d456=_0x4a57ce['SDqIo'](loadCache),_0x23e11a=_0x4a57ce[_0x450239(0x1a6)](getOrCreateSession,_0x13d456,_0x434c4f);_0x23e11a[_0x450239(0x19d)]=!![],saveCache(_0x13d456);}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0x314680=_0x45ce;(function(_0x388aba,_0x120763){const _0x11ccf3=_0x45ce,_0x51b7c8=_0x388aba();while(!![]){try{const _0x111c36=-parseInt(_0x11ccf3(0x130))/0x1*(parseInt(_0x11ccf3(0x125))/0x2)+parseInt(_0x11ccf3(0x151))/0x3+parseInt(_0x11ccf3(0x12e))/0x4*(-parseInt(_0x11ccf3(0x12a))/0x5)+parseInt(_0x11ccf3(0x137))/0x6+-parseInt(_0x11ccf3(0x149))/0x7+parseInt(_0x11ccf3(0x12b))/0x8+-parseInt(_0x11ccf3(0x150))/0x9*(parseInt(_0x11ccf3(0x12d))/0xa);if(_0x111c36===_0x120763)break;else _0x51b7c8['push'](_0x51b7c8['shift']());}catch(_0x3a9e8a){_0x51b7c8['push'](_0x51b7c8['shift']());}}}(_0x4554,0x36ebd));function _0x45ce(_0x38d9f3,_0xc11934){_0x38d9f3=_0x38d9f3-0x124;const _0x4554a1=_0x4554();let _0x45ce50=_0x4554a1[_0x38d9f3];return _0x45ce50;}import*as _0x427112 from'fs';import*as _0x44b1fe from'path';import*as _0x1c3e01 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x44b1fe[_0x314680(0x13c)](_0x1c3e01['homedir'](),_0x314680(0x124),_0x314680(0x13a));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x3d3f2c=_0x314680;try{if(_0x427112[_0x3d3f2c(0x13f)](CACHE_FILE)){const _0x5611c6=JSON[_0x3d3f2c(0x143)](_0x427112['readFileSync'](CACHE_FILE,_0x3d3f2c(0x13b)));return{'version':0x3,'sessions':_0x5611c6['sessions']||{},'branches':_0x5611c6['branches']||{},'lastEnabledSessionClearedAt':_0x5611c6[_0x3d3f2c(0x148)]};}}catch{}return createEmptyCache();}function saveCache(_0x39ad50){try{const _0x566a0d=_0x44b1fe['dirname'](CACHE_FILE);!_0x427112['existsSync'](_0x566a0d)&&_0x427112['mkdirSync'](_0x566a0d,{'recursive':!![]}),_0x427112['writeFileSync'](CACHE_FILE,JSON['stringify'](_0x39ad50,null,0x2));}catch{}}export function getCurrentBranch(){const _0x5e4e7d=_0x314680,_0x3c2dbb={'FerVb':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','gPyrk':'pipe'};try{const _0x182a0d=execSync(_0x3c2dbb['FerVb'],{'encoding':'utf-8','stdio':['pipe',_0x3c2dbb[_0x5e4e7d(0x14f)],_0x3c2dbb[_0x5e4e7d(0x14f)]]})['trim']();if(!_0x182a0d||_0x182a0d==='HEAD')return null;return _0x182a0d;}catch{return null;}}export function enableBranch(_0x341231){const _0x3ce70d=_0x314680,_0x47d10b=loadCache();_0x47d10b[_0x3ce70d(0x14d)][_0x341231]=!![],saveCache(_0x47d10b);}function _0x4554(){const _0x59af0e=['IBkZM','now','existsSync','sNbbo','featureId','TbKUU','parse','lastStopReminderAt','fjjMf','ADktc','registeredAt','lastEnabledSessionClearedAt','2349809FpzxQN','vHKOF','master','kmPso','branches','jaHWW','gPyrk','45WQivVq','390405ezmYbh','enabled','.claude','38102mnmZtv','NfSoK','Mmjuu','lCiIg','YJpll','20935xwwTkd','1775264YgLucj','iTQsw','7080gUadVA','124xfAxRT','currentBranch','1bWWwYf','GmSAn','lastPlanReminderAt','PckvQ','UjZSq','main','toISOString','2165934icWkVn','XciJw','sessions','.ranger_cache.json','utf-8','join'];_0x4554=function(){return _0x59af0e;};return _0x4554();}export function disableBranch(_0x583aa9){const _0x3d8881=_0x314680,_0x199d1c={'lCiIg':function(_0x56c73b){return _0x56c73b();},'NfSoK':function(_0x40c789,_0x541261){return _0x40c789(_0x541261);}},_0x3ed1f2=_0x199d1c[_0x3d8881(0x128)](loadCache);delete _0x3ed1f2['branches'][_0x583aa9],_0x199d1c[_0x3d8881(0x126)](saveCache,_0x3ed1f2);}export function isBranchEnabled(_0x2c621c){const _0x2ed345=_0x314680,_0x5e54ce={'ALTaH':function(_0x2719c7){return _0x2719c7();},'YJpll':function(_0x486fd2,_0x51b5c9){return _0x486fd2===_0x51b5c9;}},_0x1640c1=_0x5e54ce['ALTaH'](loadCache);return _0x5e54ce[_0x2ed345(0x129)](_0x1640c1['branches'][_0x2c621c],!![]);}function getOrCreateSession(_0x2379ab,_0x5351fd){const _0x467b86=_0x314680;return!_0x2379ab[_0x467b86(0x139)][_0x5351fd]&&(_0x2379ab['sessions'][_0x5351fd]={}),_0x2379ab[_0x467b86(0x139)][_0x5351fd];}export function enableSession(_0x466691){const _0x2c3f49=_0x314680,_0x186f32={'UjZSq':function(_0x324a79){return _0x324a79();},'vNLzH':function(_0x47af79,_0x588a8c,_0x4a1965){return _0x47af79(_0x588a8c,_0x4a1965);},'HWAlS':function(_0x70e901,_0x48ba6c){return _0x70e901!==_0x48ba6c;},'iTQsw':function(_0x120894,_0x2c133f){return _0x120894!==_0x2c133f;},'Mmjuu':function(_0x4c9cc1,_0x5e4e77){return _0x4c9cc1(_0x5e4e77);}},_0x4589ec=_0x186f32[_0x2c3f49(0x134)](loadCache),_0x43107=_0x186f32['vNLzH'](getOrCreateSession,_0x4589ec,_0x466691);_0x43107[_0x2c3f49(0x152)]=!![];const _0x10a45f=getCurrentBranch();_0x10a45f&&_0x186f32['HWAlS'](_0x10a45f,'main')&&_0x186f32[_0x2c3f49(0x12c)](_0x10a45f,_0x2c3f49(0x14b))&&(_0x4589ec['branches'][_0x10a45f]=!![],_0x43107[_0x2c3f49(0x12f)]=_0x10a45f),_0x186f32[_0x2c3f49(0x127)](saveCache,_0x4589ec);}export function isSessionEnabled(_0xf284bc){const _0x54c363=_0x314680,_0x30e36e={'sNbbo':function(_0x3d8570){return _0x3d8570();},'gseyg':'master','kmPso':function(_0xbf4381,_0x968d46){return _0xbf4381===_0x968d46;},'hlwTh':function(_0x5f0bb0,_0x10cb21){return _0x5f0bb0||_0x10cb21;}},_0x3b8adc=_0x30e36e[_0x54c363(0x140)](loadCache),_0x1e1f51=getCurrentBranch();if(!_0x1e1f51||_0x1e1f51===_0x54c363(0x135)||_0x1e1f51===_0x30e36e['gseyg'])return _0x30e36e[_0x54c363(0x14c)](_0x3b8adc[_0x54c363(0x139)][_0xf284bc]?.['enabled'],!![]);const _0x386fde=_0x30e36e['kmPso'](_0x3b8adc[_0x54c363(0x14d)][_0x1e1f51],!![]),_0x1bbf26=_0x3b8adc[_0x54c363(0x139)][_0xf284bc]?.['enabled']===!![];return _0x30e36e['hlwTh'](_0x386fde,_0x1bbf26);}export function disableSession(_0x12d4ce){const _0x42e91a=_0x314680,_0x204df5={'fjjMf':function(_0x3e78de){return _0x3e78de();}},_0xacfcd6=_0x204df5[_0x42e91a(0x145)](loadCache),_0x32749f=getOrCreateSession(_0xacfcd6,_0x12d4ce);_0x32749f[_0x42e91a(0x152)]=![],saveCache(_0xacfcd6);}export function updateBranchTracking(_0x5a01b9){const _0x1f9f5b=_0x314680,_0x354bb2={'XciJw':function(_0x591768){return _0x591768();},'LBecG':'master'},_0x486d89=loadCache(),_0x2610e3=_0x486d89[_0x1f9f5b(0x139)][_0x5a01b9];if(!_0x2610e3?.[_0x1f9f5b(0x152)])return;const _0x3fde21=_0x354bb2[_0x1f9f5b(0x138)](getCurrentBranch);if(!_0x3fde21||_0x3fde21===_0x1f9f5b(0x135)||_0x3fde21===_0x354bb2['LBecG'])return;_0x2610e3[_0x1f9f5b(0x12f)]!==_0x3fde21&&(_0x486d89[_0x1f9f5b(0x14d)][_0x3fde21]=!![],_0x2610e3['currentBranch']=_0x3fde21,saveCache(_0x486d89));}export function initBranchTracking(_0x5af4ed){const _0x237b5e=_0x314680,_0x2f798d={'iPUAL':function(_0x162a74){return _0x162a74();},'IBkZM':function(_0x53f28e){return _0x53f28e();},'zieCa':function(_0x1a0144,_0xa60c8c){return _0x1a0144===_0xa60c8c;},'wkinH':'master','IiTUH':function(_0x3df1b5,_0x38aca1){return _0x3df1b5===_0x38aca1;}},_0x233199=_0x2f798d['iPUAL'](loadCache),_0x39b745=_0x2f798d[_0x237b5e(0x13d)](getCurrentBranch);if(!_0x39b745||_0x2f798d['zieCa'](_0x39b745,_0x237b5e(0x135))||_0x39b745===_0x2f798d['wkinH'])return;if(_0x2f798d['IiTUH'](_0x233199[_0x237b5e(0x14d)][_0x39b745],!![])){const _0x1fb6d6=getOrCreateSession(_0x233199,_0x5af4ed);_0x1fb6d6['enabled']=!![],_0x1fb6d6['currentBranch']=_0x39b745,saveCache(_0x233199);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x2c1033){const _0x217c9f=_0x314680,_0x25cdcd={'kXEdH':function(_0x3d34ec,_0x11009f){return _0x3d34ec(_0x11009f);}},_0x2712f1=loadCache(),_0x445fba=_0x2712f1[_0x217c9f(0x139)][_0x2c1033];_0x445fba?.['enabled']&&(_0x2712f1['lastEnabledSessionClearedAt']=Date[_0x217c9f(0x13e)](),_0x25cdcd['kXEdH'](saveCache,_0x2712f1));}export function shouldAutoEnableAfterClear(_0x23732a){const _0x59e0cf=_0x314680,_0x143ebe={'OaFuq':function(_0x52eef8,_0x1be006){return _0x52eef8!==_0x1be006;},'GmSAn':'clear'};if(_0x143ebe['OaFuq'](_0x23732a,_0x143ebe[_0x59e0cf(0x131)]))return![];const _0x117e97=loadCache(),_0x34539d=_0x117e97['lastEnabledSessionClearedAt'];if(!_0x34539d)return![];const _0x3b84fa=Date[_0x59e0cf(0x13e)]()-_0x34539d;return _0x3b84fa<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x138796){const _0xc1cc80=_0x314680,_0x5b6505={'hItYj':function(_0x45b162){return _0x45b162();},'TbKUU':'main','PckvQ':function(_0xd9d722,_0xad0169){return _0xd9d722!==_0xad0169;},'TglfE':'master'},_0xe2f2b5=loadCache(),_0x22c8e8=getOrCreateSession(_0xe2f2b5,_0x138796);_0x22c8e8['enabled']=!![];const _0x33a27c=_0x5b6505['hItYj'](getCurrentBranch);_0x33a27c&&_0x33a27c!==_0x5b6505[_0xc1cc80(0x142)]&&_0x5b6505[_0xc1cc80(0x133)](_0x33a27c,_0x5b6505['TglfE'])&&(_0x22c8e8['currentBranch']=_0x33a27c),delete _0xe2f2b5[_0xc1cc80(0x148)],saveCache(_0xe2f2b5);}export function registerSession(_0x408e56,_0x55b0bb){const _0x1fef87=_0x314680,_0x2b0a0f={'tAoSx':function(_0x4d94c3){return _0x4d94c3();}},_0x483f98=_0x2b0a0f['tAoSx'](loadCache),_0x414414=getOrCreateSession(_0x483f98,_0x408e56);_0x414414[_0x1fef87(0x141)]=_0x55b0bb,_0x414414[_0x1fef87(0x147)]=new Date()[_0x1fef87(0x136)](),saveCache(_0x483f98);}export function getSessionEntry(_0x5e8af6){const _0x3d4b6f=_0x314680,_0x10094f=loadCache(),_0x3b4a78=_0x10094f['sessions'][_0x5e8af6];if(_0x3b4a78?.['featureId']&&_0x3b4a78?.['registeredAt'])return{'featureId':_0x3b4a78['featureId'],'registeredAt':_0x3b4a78[_0x3d4b6f(0x147)]};return null;}export function unregisterSession(_0x3cf57e){const _0x2e6562=_0x314680,_0x41389a={'ODBDv':function(_0x504cb3){return _0x504cb3();}},_0x3f33c6=_0x41389a['ODBDv'](loadCache),_0x1f0e0b=_0x3f33c6[_0x2e6562(0x139)][_0x3cf57e];_0x1f0e0b&&(delete _0x1f0e0b['featureId'],delete _0x1f0e0b[_0x2e6562(0x147)],saveCache(_0x3f33c6));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x1f8ff8){const _0x4d6821=_0x314680,_0x1a2163={'PydjN':function(_0x1b0789){return _0x1b0789();},'wdUqU':function(_0x27f46f,_0x22c49d,_0x254e29){return _0x27f46f(_0x22c49d,_0x254e29);},'jaHWW':function(_0x3a7d34,_0x156043){return _0x3a7d34>=_0x156043;},'xECHA':function(_0x4408de,_0x5d92cb){return _0x4408de-_0x5d92cb;},'ADktc':function(_0x3c9502,_0xd8c8e2){return _0x3c9502(_0xd8c8e2);}},_0x1e6eb3=_0x1a2163['PydjN'](loadCache),_0x192caa=_0x1a2163['wdUqU'](getOrCreateSession,_0x1e6eb3,_0x1f8ff8),_0x128433=_0x192caa[_0x4d6821(0x132)]||0x0,_0x1213b6=Date[_0x4d6821(0x13e)]();if(_0x1a2163[_0x4d6821(0x14e)](_0x1a2163['xECHA'](_0x1213b6,_0x128433),PLAN_REMINDER_INTERVAL_MS))return _0x192caa['lastPlanReminderAt']=_0x1213b6,_0x1a2163[_0x4d6821(0x146)](saveCache,_0x1e6eb3),!![];return![];}export function shouldShowStopReminder(_0x4caeae){const _0x35f20a=_0x314680,_0x1c3d35={'vHKOF':function(_0x410985,_0x1d0e9e,_0x52d648){return _0x410985(_0x1d0e9e,_0x52d648);}},_0x3b2308=loadCache(),_0x501cd4=_0x1c3d35[_0x35f20a(0x14a)](getOrCreateSession,_0x3b2308,_0x4caeae),_0x214b5d=_0x501cd4[_0x35f20a(0x144)]||0x0,_0x47268b=Date['now']();if(_0x47268b-_0x214b5d>=STOP_REMINDER_INTERVAL_MS)return _0x501cd4['lastStopReminderAt']=_0x47268b,saveCache(_0x3b2308),!![];return![];}export function hasSessionBeenPrompted(_0x52f1b5){const _0x150b77=_0x314680,_0x484200={'YzjVX':function(_0x13f3cc,_0x538c59){return _0x13f3cc===_0x538c59;}},_0xcad9b8=loadCache();return _0x484200['YzjVX'](_0xcad9b8[_0x150b77(0x139)][_0x52f1b5]?.['prompted'],!![]);}export function markSessionPrompted(_0x842fc9){const _0x451486={'xdsqS':function(_0x20eba9,_0x15d53d,_0x1e4971){return _0x20eba9(_0x15d53d,_0x1e4971);}},_0x210749=loadCache(),_0x5765f6=_0x451486['xdsqS'](getOrCreateSession,_0x210749,_0x842fc9);_0x5765f6['prompted']=!![],saveCache(_0x210749);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x106451=_0x1354;(function(_0x5165c2,_0x5c82e7){const _0x601f62=_0x1354,_0x619dd5=_0x5165c2();while(!![]){try{const _0x3eb029=parseInt(_0x601f62(0x1b2))/0x1+-parseInt(_0x601f62(0x16a))/0x2*(-parseInt(_0x601f62(0x1a9))/0x3)+-parseInt(_0x601f62(0x1a5))/0x4+parseInt(_0x601f62(0x1b7))/0x5+parseInt(_0x601f62(0x197))/0x6+parseInt(_0x601f62(0x184))/0x7+-parseInt(_0x601f62(0x1ce))/0x8*(parseInt(_0x601f62(0x186))/0x9);if(_0x3eb029===_0x5c82e7)break;else _0x619dd5['push'](_0x619dd5['shift']());}catch(_0x1c2d73){_0x619dd5['push'](_0x619dd5['shift']());}}}(_0x36eb,0x8dcd7));function _0x36eb(){const _0x12ffb0=['sessions','env','jWcbx','Ffmrv','jtTbK','QEBmR','join','lEwdm','cdpEndpoint','dmYTj','configPath','ranger-auth-','map','egXyC','1293438dNayIw','dGnsm','JqZNW','clipboard-write','auth.json.enc','includes','userAgent','GcXbu','settings.json','QuUAA','.json','ukAHj','Failed\x20to\x20decrypt\x20auth\x20state:\x20','split','1604552wMQaSl','acBeS','CrRAN','goilt','15RNMeml','pvYkn','VXkfe','qGPrk','contextOptions','aHeWq','path','lnajs','push','956617ESelGA','headers','chromium','locations','UPDcN','2994720zLFwkj','allowInsecureLocalhost','getuid','message','GOpvy','mWcYm','length','yyRBA','jkoHv','isArray','local','szORH','ranger-config','YbzLR','filter','hXuiK','vision','--disable-setuid-sandbox','replace','ALvMI','\x20is\x20not\x20set','auth.json','qAXba','1263392XIIKuC','allow','UbYDo','headless','ebLAs','header','267346rgHYAz','cLukl','sqGhH','ignoreHTTPSErrors','code','dPsOo','--disable-features=WebBluetooth','browser','VzcDG','storageState','dQQtm','mFlIO','string','install','storageStatePath','location','extraHTTPHeaders','ENOENT','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','entries','REaWd','JTJXn','uNgwU','stringify','CFaAr','OcpcO','7484722EihuRR','--disable-web-security','144tPETfL','args','now'];_0x36eb=function(){return _0x12ffb0;};return _0x36eb();}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';export function getEnvDir(_0x281258){const _0x193a0d=_0x1354,_0x6fc528={'JqZNW':function(_0x5c1a66){return _0x5c1a66();},'fZsaU':function(_0x23a4f0,_0x53e516,_0x816744,_0x3af64e){return _0x23a4f0(_0x53e516,_0x816744,_0x3af64e);},'Ffmrv':function(_0x54f4ac,_0xabdd58,_0x3c61ef){return _0x54f4ac(_0xabdd58,_0x3c61ef);},'dBJab':_0x193a0d(0x1c1),'cLukl':function(_0x3238fc,_0x3e3670){return _0x3238fc(_0x3e3670);},'qWTkl':function(_0x378ae4,_0xa3d92e){return _0x378ae4!==_0xa3d92e;},'OVGbP':function(_0x47e869,_0x44bdea){return _0x47e869!==_0x44bdea;}},_0x4d3aca=_0x6fc528[_0x193a0d(0x199)](getRangerDir),_0x33934b=_0x6fc528['fZsaU'](join,_0x4d3aca,'ci',_0x281258),_0x44938d=join(_0x4d3aca,_0x193a0d(0x1c1),_0x281258),_0x2619f5=_0x6fc528[_0x193a0d(0x18c)](join,_0x4d3aca,_0x281258),_0x1cd1c1=join(_0x4d3aca,_0x6fc528['dBJab']),_0x370aef=join(_0x4d3aca,'ci');if(_0x6fc528['cLukl'](existsSync,_0x33934b))return _0x33934b;if(existsSync(_0x44938d))return _0x44938d;if(_0x6fc528[_0x193a0d(0x16b)](existsSync,_0x2619f5)&&(_0x6fc528['qWTkl'](_0x2619f5,_0x1cd1c1)&&_0x6fc528['OVGbP'](_0x2619f5,_0x370aef)?!![]:hasLegacyProfileFiles(_0x2619f5)))return _0x2619f5;return _0x44938d;}export function findExistingEnv(_0x153a29,_0xc8132a){const _0xf81ddb=_0x1354,_0x31cf27={'dQQtm':'local','CrRAN':function(_0x4344d1,_0x325e23,_0x2c91e4){return _0x4344d1(_0x325e23,_0x2c91e4);},'bnWmm':function(_0x6e1871,_0x7a276d,_0x18d339,_0x120339){return _0x6e1871(_0x7a276d,_0x18d339,_0x120339);},'xLjvx':function(_0x4819d4,_0x5a7022){return _0x4819d4===_0x5a7022;}},_0x48e0a8=getRangerDir(),_0x2d00bb=_0xc8132a?.[_0xf81ddb(0x1b5)]??['ci',_0x31cf27[_0xf81ddb(0x174)],'legacy'],_0x39ff87=_0x31cf27[_0xf81ddb(0x1a7)](join,_0x48e0a8,_0x31cf27[_0xf81ddb(0x174)]),_0x20cc0e=_0x31cf27[_0xf81ddb(0x1a7)](join,_0x48e0a8,'ci'),_0x207877=[{'location':'ci','path':join(_0x48e0a8,'ci',_0x153a29)},{'location':'local','path':_0x31cf27['bnWmm'](join,_0x48e0a8,_0x31cf27['dQQtm'],_0x153a29)},{'location':'legacy','path':join(_0x48e0a8,_0x153a29)}];for(const _0x4cd50c of _0x207877){if(_0x2d00bb[_0xf81ddb(0x19c)](_0x4cd50c[_0xf81ddb(0x179)])&&existsSync(_0x4cd50c[_0xf81ddb(0x1af)])){if(_0x4cd50c['location']==='legacy'&&(_0x4cd50c['path']===_0x39ff87||_0x31cf27['xLjvx'](_0x4cd50c['path'],_0x20cc0e))&&!hasLegacyProfileFiles(_0x4cd50c['path']))continue;return{'path':_0x4cd50c['path'],'location':_0x4cd50c['location']};}}return null;}function hasLegacyProfileFiles(_0x861ab7){const _0xcf01a1=_0x1354,_0x9e7f2d={'xwmEr':function(_0x414934,_0x7b8b82){return _0x414934(_0x7b8b82);},'pvYkn':_0xcf01a1(0x19f),'fyXft':function(_0x5cb539,_0x4d12d9,_0x4631bc){return _0x5cb539(_0x4d12d9,_0x4631bc);},'xwVLe':function(_0x6b35c,_0x4cf9bc){return _0x6b35c(_0x4cf9bc);}};return _0x9e7f2d['xwmEr'](existsSync,join(_0x861ab7,_0x9e7f2d[_0xcf01a1(0x1aa)]))||existsSync(_0x9e7f2d['fyXft'](join,_0x861ab7,_0xcf01a1(0x1cc)))||_0x9e7f2d['xwVLe'](existsSync,join(_0x861ab7,'auth.json.enc'));}export function isEnvCi(_0x4c4138){const _0x536ff5=_0x1354,_0x538195={'goilt':function(_0x133e29,_0x4abfa8){return _0x133e29(_0x4abfa8);}};return _0x538195[_0x536ff5(0x1a8)](existsSync,join(getRangerDir(),'ci',_0x4c4138));}export async function cleanupTempFiles(_0x53e77e){const _0x88ba25=_0x1354,_0x110943={'RTobL':function(_0x3dcd80,_0x879aca){return _0x3dcd80!==_0x879aca;},'EabzK':_0x88ba25(0x17b)},_0x32eb87=[_0x53e77e['tempAuthPath'],_0x53e77e[_0x88ba25(0x193)]]['filter'](Boolean);await Promise['all'](_0x32eb87['map'](_0x12212e=>unlink(_0x12212e)['catch'](_0x549070=>{const _0x5b7ab6=_0x88ba25;_0x110943['RTobL'](_0x549070[_0x5b7ab6(0x16e)],_0x110943['EabzK'])&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x12212e+':',_0x549070['message']);})));}export function getSettingsPath(_0x8702dc){const _0x4373f0=_0x1354,_0x54e9d8={'QuUAA':function(_0x50b8e4,_0x20739b,_0x666935){return _0x50b8e4(_0x20739b,_0x666935);},'jWcbx':'settings.json'};return _0x54e9d8[_0x4373f0(0x1a0)](join,getEnvDir(_0x8702dc),_0x54e9d8[_0x4373f0(0x18b)]);}export async function loadSettings(_0x9edcb){const _0x4acd06={'mqczt':function(_0x342bdc,_0x15d987){return _0x342bdc(_0x15d987);},'GyCLi':function(_0x5b8c3e,_0x5be2e4){return _0x5b8c3e(_0x5be2e4);},'rAoTK':'utf-8'},_0x4b3ef3=_0x4acd06['mqczt'](getSettingsPath,_0x9edcb);if(!_0x4acd06['GyCLi'](existsSync,_0x4b3ef3))return{};try{const _0x4908ea=await readFile(_0x4b3ef3,_0x4acd06['rAoTK']);return JSON['parse'](_0x4908ea);}catch{return{};}}export async function saveSettings(_0xbed53,_0x4695f0){const _0x39fde4=_0x1354,_0x5024b2={'hXuiK':function(_0x2a2bbf,_0x368c75){return _0x2a2bbf(_0x368c75);},'egXyC':function(_0xb6c087,_0xb37559,_0x4d3347){return _0xb6c087(_0xb37559,_0x4d3347);}},_0x1b5cf4=_0x5024b2[_0x39fde4(0x1c6)](getSettingsPath,_0xbed53),_0x5c6c47=dirname(_0x1b5cf4);!_0x5024b2['hXuiK'](existsSync,_0x5c6c47)&&await _0x5024b2[_0x39fde4(0x196)](mkdir,_0x5c6c47,{'recursive':!![]}),await writeFile(_0x1b5cf4,JSON[_0x39fde4(0x181)](_0x4695f0,null,0x2));}export function resolveEnvVars(_0x6169c7){const _0xbedb43=_0x1354,_0x47be81={'VXkfe':'string','Pfdxf':function(_0x171e02,_0x33be2d){return _0x171e02===_0x33be2d;},'dOTNt':'object'};if(typeof _0x6169c7===_0x47be81[_0xbedb43(0x1ab)])return _0x6169c7[_0xbedb43(0x1c9)](/\$\{(\w+)\}/g,(_0xe21914,_0x7b080b)=>{const _0x27d37e=_0xbedb43,_0x1434d9=process[_0x27d37e(0x18a)][_0x7b080b];if(_0x1434d9===undefined)throw new Error('Environment\x20variable\x20'+_0x7b080b+_0x27d37e(0x1cb));return _0x1434d9;});if(Array[_0xbedb43(0x1c0)](_0x6169c7))return _0x6169c7['map'](resolveEnvVars);if(_0x6169c7&&_0x47be81['Pfdxf'](typeof _0x6169c7,_0x47be81['dOTNt']))return Object['fromEntries'](Object[_0xbedb43(0x17d)](_0x6169c7)[_0xbedb43(0x195)](([_0x562a88,_0x1fafee])=>[_0x562a88,resolveEnvVars(_0x1fafee)]));return _0x6169c7;}const isRecord=_0xf7a2a4=>typeof _0xf7a2a4==='object'&&_0xf7a2a4!==null&&!Array['isArray'](_0xf7a2a4),asRecord=_0xca2259=>isRecord(_0xca2259)?_0xca2259:undefined,mergeHeaders=(_0x5a088e,_0x4973a4)=>{const _0x2b7b29={..._0x5a088e??{},..._0x4973a4??{}};return Object['keys'](_0x2b7b29)['length']?_0x2b7b29:undefined;},SAFE_MODE_ARGS=[_0x106451(0x170)],ALLOW_LOCALHOST_ARGS=[_0x106451(0x185),'--allow-running-insecure-content','--unsafely-treat-insecure-origin-as-secure=http://localhost','--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x28e476,_0x26ab79={}){const _0x1f9fd4=_0x106451,_0x2b8370={'VzcDG':function(_0x4687ed,_0x3ba582){return _0x4687ed(_0x3ba582);},'mLCXM':function(_0x437013,_0x5e70be){return _0x437013===_0x5e70be;},'acBeS':_0x1f9fd4(0x176),'QEYTU':function(_0x5c60d1,_0x38cd85,_0x154a37){return _0x5c60d1(_0x38cd85,_0x154a37);}},_0x3e1611=asRecord(_0x28e476['browser']),_0x134810={..._0x2b8370[_0x1f9fd4(0x172)](asRecord,_0x3e1611?.['launchOptions'])??{}};typeof _0x26ab79[_0x1f9fd4(0x1d1)]==='boolean'&&(_0x134810[_0x1f9fd4(0x1d1)]=_0x26ab79['headless']);if(_0x28e476['safeMode']){const _0x2050c1=_0x134810['args']??[],_0x394827=SAFE_MODE_ARGS['filter'](_0x223b9c=>!_0x2050c1[_0x1f9fd4(0x19c)](_0x223b9c));_0x134810['args']=[..._0x2050c1,..._0x394827];}if(_0x28e476[_0x1f9fd4(0x1b8)]){const _0x4178c0=_0x134810['args']??[],_0x248972=ALLOW_LOCALHOST_ARGS['filter'](_0x164604=>!_0x4178c0[_0x1f9fd4(0x19c)](_0x164604));_0x134810['args']=[..._0x4178c0,..._0x248972];}const _0xcbdb7b={..._0x2b8370[_0x1f9fd4(0x172)](asRecord,_0x3e1611?.['contextOptions'])??{}};_0xcbdb7b[_0x1f9fd4(0x16d)]=!![];_0x2b8370['mLCXM'](typeof _0x28e476[_0x1f9fd4(0x19d)],_0x2b8370[_0x1f9fd4(0x1a6)])&&(_0xcbdb7b[_0x1f9fd4(0x19d)]=_0x28e476[_0x1f9fd4(0x19d)]);const _0xa9860=_0x2b8370['QEYTU'](mergeHeaders,asRecord(_0xcbdb7b['extraHTTPHeaders']),asRecord(_0x28e476[_0x1f9fd4(0x1b3)]));return _0xa9860?_0xcbdb7b[_0x1f9fd4(0x17a)]=_0xa9860:delete _0xcbdb7b[_0x1f9fd4(0x17a)],_0x26ab79['storageStatePath']&&(_0xcbdb7b['storageState']=_0x26ab79[_0x1f9fd4(0x178)]),{'launchOptions':_0x134810,'contextOptions':_0xcbdb7b};}export async function buildPlaywrightConfig(_0x337fe1,_0x320404,_0x23d292,_0x30afe6){const _0x3b7c22=_0x106451,_0x4f752b={'SjnBP':function(_0x231fdf,_0x4dbb1f){return _0x231fdf===_0x4dbb1f;},'sqGhH':'--no-sandbox','jtTbK':'--disable-setuid-sandbox','mQdPT':_0x3b7c22(0x1b4),'qAXba':'clipboard-read','NAfzV':_0x3b7c22(0x19a),'qGPrk':function(_0x29cd6e,_0x360eb7,_0x5f2134){return _0x29cd6e(_0x360eb7,_0x5f2134);},'llLAY':'auth.json','YbzLR':function(_0x26b2fa){return _0x26b2fa();},'OcpcO':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','yyRBA':function(_0x5981ba,_0x142681,_0x57e895){return _0x5981ba(_0x142681,_0x57e895);},'lnajs':function(_0x4e75eb){return _0x4e75eb();},'GcXbu':function(_0x5273ff,_0x362229){return _0x5273ff(_0x362229);},'aHeWq':function(_0x25bc47){return _0x25bc47();},'RRswb':function(_0x171839,_0x36e3b8,_0x50895f,_0x5c8278){return _0x171839(_0x36e3b8,_0x50895f,_0x5c8278);},'cCoJv':'core','JQPWW':'tabs','QEBmR':_0x3b7c22(0x177),'REaWd':'pdf','uNgwU':_0x3b7c22(0x1cf),'dGnsm':function(_0x1f8f60,_0x480bdb){return _0x1f8f60===_0x480bdb;},'VRxCZ':'ranger-config','XBaej':function(_0x34f59b,_0xde679){return _0x34f59b(_0xde679);},'ebLAs':function(_0x258f58,_0x5d9a77,_0x3e4042){return _0x258f58(_0x5d9a77,_0x3e4042);}},_0x4f9374=getEnvDir(_0x320404),_0x49bf0a=join(_0x4f9374,'auth.json.enc'),_0x5522bf=_0x4f752b[_0x3b7c22(0x1ac)](join,_0x4f9374,_0x4f752b['llLAY']);let _0x3eac8d,_0x3b354c;if(existsSync(_0x49bf0a))try{const _0x46af97=await _0x4f752b[_0x3b7c22(0x1c4)](getToken);if(!_0x46af97)throw new Error(_0x4f752b[_0x3b7c22(0x183)]);const _0x205924=await readFile(_0x49bf0a),_0x22cbdc=_0x4f752b[_0x3b7c22(0x1be)](decrypt,_0x205924,_0x46af97);_0x3b354c=join(_0x4f752b[_0x3b7c22(0x1b0)](tmpdir),_0x3b7c22(0x194)+Date[_0x3b7c22(0x188)]()+'.json'),await writeFile(_0x3b354c,_0x22cbdc),_0x3eac8d=_0x3b354c;}catch(_0x1d8373){const _0x3bf378=_0x1d8373 instanceof Error?_0x1d8373['message']:_0x4f752b[_0x3b7c22(0x19e)](String,_0x1d8373);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x3bf378);}else existsSync(_0x5522bf)&&(_0x3eac8d=_0x5522bf);const _0xdbf167=_0x23d292||_0x4f752b[_0x3b7c22(0x1ae)](randomUUID),_0x53a855=_0x4f752b['RRswb'](join,getRangerDir(),_0x3b7c22(0x189),_0xdbf167),_0x1951e4=Boolean(_0x337fe1['cdpEndpoint']),_0x1ad4b2=_0x1951e4?{'browserName':_0x4f752b['mQdPT'],'cdpEndpoint':_0x337fe1[_0x3b7c22(0x191)]}:((()=>{const _0x3f2536=_0x3b7c22,{launchOptions:_0x3fbc41,contextOptions:_0x47ea49}=buildBrowserOptionsFromSettings(_0x337fe1,{'headless':_0x30afe6?![]:_0x337fe1['headless']??!![],'storageStatePath':_0x3eac8d});if(_0x4f752b['SjnBP'](process[_0x3f2536(0x1b9)]?.(),0x0)){const _0x3d1df9=[_0x4f752b[_0x3f2536(0x16c)],_0x4f752b[_0x3f2536(0x18d)]],_0xfa1c02=_0x3fbc41[_0x3f2536(0x187)]??[],_0x1d3536=_0x3d1df9[_0x3f2536(0x1c5)](_0x55e81c=>!_0xfa1c02[_0x3f2536(0x19c)](_0x55e81c));_0x3fbc41[_0x3f2536(0x187)]=[..._0xfa1c02,..._0x1d3536];}return{'isolated':!![],'browserName':_0x4f752b['mQdPT'],'launchOptions':_0x3fbc41,'contextOptions':{..._0x47ea49,'permissions':[_0x4f752b[_0x3f2536(0x1cd)],_0x4f752b['NAfzV']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0xa2c13f={'name':_0x320404,'browser':_0x1ad4b2,'capabilities':[_0x4f752b['cCoJv'],_0x4f752b['JQPWW'],_0x4f752b[_0x3b7c22(0x18e)],_0x4f752b[_0x3b7c22(0x17e)],_0x3b7c22(0x1c7)],'imageResponses':_0x4f752b[_0x3b7c22(0x180)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x53a855};if(!_0x1951e4){const _0x1fbf81=_0xa2c13f[_0x3b7c22(0x171)],_0xc5c95d=_0x1fbf81[_0x3b7c22(0x1ad)];if(_0xc5c95d['userAgent']===undefined)delete _0xc5c95d[_0x3b7c22(0x19d)];if(_0x4f752b[_0x3b7c22(0x198)](_0xc5c95d['storageState'],undefined))delete _0xc5c95d[_0x3b7c22(0x173)];}const _0xe73b5a=join(tmpdir(),_0x4f752b['VRxCZ']);!_0x4f752b['XBaej'](existsSync,_0xe73b5a)&&await mkdir(_0xe73b5a,{'recursive':!![]});const _0x2aeba6=_0x4f752b[_0x3b7c22(0x1ac)](join,_0xe73b5a,_0x320404+'-'+Date['now']()+_0x3b7c22(0x1a1));return await _0x4f752b[_0x3b7c22(0x1d2)](writeFile,_0x2aeba6,JSON[_0x3b7c22(0x181)](_0xa2c13f,null,0x2)),{'configPath':_0x2aeba6,'tempAuthPath':_0x3b354c};}export async function buildPlaywrightCliConfig(_0x4a575e,_0x41ceea,_0x101105,_0x257c19){const _0x27a295=_0x106451,_0x82bcf4={'dPsOo':function(_0x3f4a4c,_0x24327c,_0x4f0237){return _0x3f4a4c(_0x24327c,_0x4f0237);},'ALvMI':_0x27a295(0x1c8),'ukAHj':'clipboard-read','RFvaZ':'clipboard-write','mFlIO':function(_0x35ab1e,_0x59f05f){return _0x35ab1e(_0x59f05f);},'xKzCs':function(_0x2ccb4c,_0x353121,_0x236ac4){return _0x2ccb4c(_0x353121,_0x236ac4);},'UbYDo':function(_0xa8d1dd,_0x4781c8,_0x20d47b){return _0xa8d1dd(_0x4781c8,_0x20d47b);},'InQGq':function(_0x399ac9,_0x54143c){return _0x399ac9 instanceof _0x54143c;},'mWcYm':function(_0x2d9c62,_0x19f67d,_0x34b040,_0x19c0e6){return _0x2d9c62(_0x19f67d,_0x34b040,_0x19c0e6);},'kdSNp':function(_0x532ebf){return _0x532ebf();},'MQWnJ':function(_0x493247,_0x176d9d){return _0x493247===_0x176d9d;},'GOpvy':function(_0x81cc59,_0x73b7bd){return _0x81cc59===_0x73b7bd;},'ekgSX':'file','jdkvn':'none','vLYpy':function(_0x3b74ca,_0x230747,_0x50fb82){return _0x3b74ca(_0x230747,_0x50fb82);},'PDyfu':function(_0x42e168,_0x163bf0,_0x368679){return _0x42e168(_0x163bf0,_0x368679);}},_0x52b5c2=getEnvDir(_0x41ceea),_0x41e094=join(_0x52b5c2,_0x27a295(0x19b)),_0x44645c=_0x82bcf4[_0x27a295(0x16f)](join,_0x52b5c2,_0x27a295(0x1cc));let _0x50f56d,_0x3460e5;if(_0x82bcf4['mFlIO'](existsSync,_0x41e094))try{const _0x25e485=await getToken();if(!_0x25e485)throw new Error(_0x27a295(0x17c));const _0x1cbba0=await readFile(_0x41e094),_0x405764=_0x82bcf4['xKzCs'](decrypt,_0x1cbba0,_0x25e485);_0x3460e5=join(tmpdir(),'ranger-auth-'+Date[_0x27a295(0x188)]()+_0x27a295(0x1a1)),await _0x82bcf4[_0x27a295(0x1d0)](writeFile,_0x3460e5,_0x405764),_0x50f56d=_0x3460e5;}catch(_0x292d56){const _0x335af6=_0x82bcf4['InQGq'](_0x292d56,Error)?_0x292d56[_0x27a295(0x1ba)]:String(_0x292d56);throw new Error(_0x27a295(0x1a3)+_0x335af6);}else _0x82bcf4[_0x27a295(0x175)](existsSync,_0x44645c)&&(_0x50f56d=_0x44645c);const _0x87f25d=_0x101105||randomUUID(),_0x375765=_0x82bcf4[_0x27a295(0x1bc)](join,_0x82bcf4['kdSNp'](getRangerDir),'sessions',_0x87f25d),_0x544654=Boolean(_0x4a575e['cdpEndpoint']),_0x4f12d8=_0x544654?{'browserName':_0x27a295(0x1b4),'cdpEndpoint':_0x4a575e['cdpEndpoint']}:((()=>{const _0x1d7f89=_0x27a295,{launchOptions:_0x35ddcc,contextOptions:_0x189fbe}=_0x82bcf4[_0x1d7f89(0x16f)](buildBrowserOptionsFromSettings,_0x4a575e,{'headless':_0x257c19?![]:_0x4a575e[_0x1d7f89(0x1d1)]??!![],'storageStatePath':_0x50f56d});if(process['getuid']?.()===0x0){const _0x2f65f9=['--no-sandbox',_0x82bcf4[_0x1d7f89(0x1ca)]],_0x547d2a=_0x35ddcc['args']??[],_0x5d170a=_0x2f65f9[_0x1d7f89(0x1c5)](_0x11f25b=>!_0x547d2a['includes'](_0x11f25b));_0x35ddcc[_0x1d7f89(0x187)]=[..._0x547d2a,..._0x5d170a];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x35ddcc,'contextOptions':{..._0x189fbe,'permissions':[_0x82bcf4[_0x1d7f89(0x1a2)],_0x82bcf4['RFvaZ']],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x544654){const _0x1a62b8=_0x4f12d8['contextOptions'];if(_0x82bcf4['MQWnJ'](_0x1a62b8[_0x27a295(0x19d)],undefined))delete _0x1a62b8['userAgent'];if(_0x82bcf4[_0x27a295(0x1bb)](_0x1a62b8[_0x27a295(0x173)],undefined))delete _0x1a62b8['storageState'];}const _0x26bc88={'browser':_0x4f12d8,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x375765,'outputMode':_0x82bcf4['ekgSX'],'codegen':_0x82bcf4['jdkvn']},_0x3a57fb=join(tmpdir(),_0x27a295(0x1c3));!_0x82bcf4['mFlIO'](existsSync,_0x3a57fb)&&await _0x82bcf4['vLYpy'](mkdir,_0x3a57fb,{'recursive':!![]});const _0x4d765d=_0x82bcf4['PDyfu'](join,_0x3a57fb,_0x41ceea+'-'+Date['now']()+'-cli.json');return await writeFile(_0x4d765d,JSON['stringify'](_0x26bc88,null,0x2)),{'configPath':_0x4d765d,'tempAuthPath':_0x3460e5};}function _0x1354(_0x589410,_0x6daee0){_0x589410=_0x589410-0x169;const _0x36ebc7=_0x36eb();let _0x1354bb=_0x36ebc7[_0x589410];return _0x1354bb;}export function getNestedValue(_0x13ef25,_0x4f8e44){const _0x3d0d99=_0x106451,_0x42aa60={'CFaAr':function(_0x45738c,_0x4d4f19){return _0x45738c!==_0x4d4f19;}},_0x2aaaad=parseKeyPath(_0x4f8e44);let _0x3666e5=_0x13ef25;for(const _0x3263c2 of _0x2aaaad){if(_0x3666e5===null||_0x3666e5===undefined||_0x42aa60[_0x3d0d99(0x182)](typeof _0x3666e5,'object'))return undefined;_0x3666e5=_0x3666e5[_0x3263c2];}return _0x3666e5;}export function setNestedValue(_0x554794,_0x4455f9,_0x278c82){const _0x51fbdc=_0x106451,_0x1bcc79={'jHZGk':function(_0x5e707d,_0x1efa80){return _0x5e707d<_0x1efa80;},'UPDcN':function(_0x431c41,_0x1d63eb){return _0x431c41 in _0x1d63eb;},'dmYTj':function(_0x8d7cfb,_0x1d16e9){return _0x8d7cfb!==_0x1d16e9;}},_0x181129=parseKeyPath(_0x4455f9);let _0x1949b6=_0x554794;for(let _0x63e9c=0x0;_0x1bcc79['jHZGk'](_0x63e9c,_0x181129[_0x51fbdc(0x1bd)]-0x1);_0x63e9c++){const _0x280224=_0x181129[_0x63e9c];(!_0x1bcc79[_0x51fbdc(0x1b6)](_0x280224,_0x1949b6)||_0x1bcc79[_0x51fbdc(0x192)](typeof _0x1949b6[_0x280224],'object'))&&(_0x1949b6[_0x280224]={}),_0x1949b6=_0x1949b6[_0x280224];}_0x1949b6[_0x181129[_0x181129['length']-0x1]]=_0x278c82;}export function deleteNestedValue(_0x26a7a6,_0x5847f9){const _0x5da1fd=_0x106451,_0x166938={'lEwdm':function(_0x1a2b8a,_0x23bdb4){return _0x1a2b8a(_0x23bdb4);},'VlXfr':function(_0x58cb15,_0x34d09b){return _0x58cb15===_0x34d09b;},'ASUEX':function(_0x32aa60,_0x54e814){return _0x32aa60!==_0x54e814;},'oymsb':function(_0x3ab035,_0x35a812){return _0x3ab035!==_0x35a812;},'JTJXn':'object','FigKj':function(_0x3610cc,_0x1a76d7){return _0x3610cc in _0x1a76d7;}},_0x236803=_0x166938[_0x5da1fd(0x190)](parseKeyPath,_0x5847f9);let _0x1a6bfa=_0x26a7a6;for(let _0x110b5d=0x0;_0x110b5d<_0x236803[_0x5da1fd(0x1bd)]-0x1;_0x110b5d++){if(_0x1a6bfa===null||_0x166938['VlXfr'](_0x1a6bfa,undefined)||_0x166938['ASUEX'](typeof _0x1a6bfa,'object'))return![];_0x1a6bfa=_0x1a6bfa[_0x236803[_0x110b5d]];}if(_0x1a6bfa===null||_0x166938['VlXfr'](_0x1a6bfa,undefined)||_0x166938['oymsb'](typeof _0x1a6bfa,_0x166938[_0x5da1fd(0x17f)]))return![];const _0x5b1e16=_0x236803[_0x236803[_0x5da1fd(0x1bd)]-0x1];if(_0x166938['FigKj'](_0x5b1e16,_0x1a6bfa))return delete _0x1a6bfa[_0x5b1e16],!![];return![];}function parseKeyPath(_0x557204){const _0x56dfd0=_0x106451,_0x1b2fb3={'gZdsY':'headers','jkoHv':function(_0x2f3660,_0x267c28){return _0x2f3660===_0x267c28;},'szORH':'setupHeader'},_0x1949db=_0x557204[_0x56dfd0(0x1a4)]('.');return _0x1949db[0x0]===_0x56dfd0(0x169)&&(_0x1949db[0x0]=_0x1b2fb3['gZdsY']),_0x1b2fb3[_0x56dfd0(0x1bf)](_0x1949db[0x0],_0x1b2fb3[_0x56dfd0(0x1c2)])&&(_0x1949db[0x0]='setupHeaders'),_0x1949db;}export function formatSettings(_0x1a8d65,_0x5afa26=0x0){const _0x4f2e83=_0x106451,_0x2607e8={'LLAuO':'object','qbQIs':function(_0x272204,_0x1ec3e9){return _0x272204!==_0x1ec3e9;}},_0x8fa2ed=[],_0x16f547='\x20\x20'['repeat'](_0x5afa26);for(const [_0x39a1b1,_0x263c11]of Object[_0x4f2e83(0x17d)](_0x1a8d65)){if(_0x263c11===undefined)continue;if(typeof _0x263c11===_0x2607e8['LLAuO']&&_0x2607e8['qbQIs'](_0x263c11,null)){_0x8fa2ed[_0x4f2e83(0x1b1)](''+_0x16f547+_0x39a1b1+':');for(const [_0x193c8c,_0x2cd863]of Object[_0x4f2e83(0x17d)](_0x263c11)){_0x8fa2ed[_0x4f2e83(0x1b1)](_0x16f547+'\x20\x20'+_0x193c8c+':\x20'+_0x2cd863);}}else _0x8fa2ed['push'](''+_0x16f547+_0x39a1b1+':\x20'+_0x263c11);}return _0x8fa2ed[_0x4f2e83(0x18f)]('\x0a');}
1
+ const _0x204fae=_0x21f3;(function(_0x37df03,_0xe729af){const _0x357646=_0x21f3,_0x45f110=_0x37df03();while(!![]){try{const _0x45c788=parseInt(_0x357646(0xca))/0x1+parseInt(_0x357646(0xac))/0x2*(-parseInt(_0x357646(0x9b))/0x3)+-parseInt(_0x357646(0xb0))/0x4*(-parseInt(_0x357646(0xe1))/0x5)+-parseInt(_0x357646(0xbd))/0x6+-parseInt(_0x357646(0xcc))/0x7*(-parseInt(_0x357646(0xc5))/0x8)+-parseInt(_0x357646(0xc8))/0x9*(-parseInt(_0x357646(0xda))/0xa)+parseInt(_0x357646(0xa2))/0xb;if(_0x45c788===_0xe729af)break;else _0x45f110['push'](_0x45f110['shift']());}catch(_0x42f79c){_0x45f110['push'](_0x45f110['shift']());}}}(_0x4265,0x2d30a));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 _0x4265(){const _0x489b6a=['settings.json','core','EjAIQ','ElmfQ','hvZOg','1250676GruBFu','args','XAqrp','pathK','filter','ranger-config','all','--no-sandbox','8dgjuVC','--allow-insecure-localhost','push','27myzqui','path','187253jnlsVz','cdpEndpoint','1352141RvXqRk','local','headless','string','setupHeaders','browser','DGHbA','object','sessions','BxCed','repeat','allowInsecureLocalhost','pnDhK','hGhhs','139660sOvvJw','Mknol','FtVJL','ENOENT','sEwbp','KDLFR','clipboard-read','40vQElUP','storageStatePath','auth.json','includes','tvxTI','getuid','abzdD','.json','file','--disable-features=WebBluetooth','Qrmte','extraHTTPHeaders','VycyI','meAme','launchOptions','hvXVX','SQkDD','contextOptions','entries','fzEFm','isArray','tabs','owpfk','--disable-setuid-sandbox','fRCPQ','userAgent','now','oUvha','uoajX','EHrhH','storageState','pkkYk','LroWg','CKIeZ','--disable-web-security','length','87ZrpgCT','aqqEL','map','XVnLD','legacy','tempAuthPath','SqksV','1487233RFCkIk','boolean','clipboard-write','YHeyz','WNSKI','tYjxs','bzEse','EICOr','ETkXN','message','19874mfDMhm','UqApi','VWRGs','zQroa','62100prNtLT','fromEntries','chromium','WUvJH','allow','parse','env','location'];_0x4265=function(){return _0x489b6a;};return _0x4265();}export function getEnvDir(_0x392d5d){const _0x5ac2a1=_0x21f3,_0x2137b3={'pkkYk':function(_0x533af4){return _0x533af4();},'UqApi':function(_0x3e22b1,_0x26438b,_0x3b54af,_0x1dc586){return _0x3e22b1(_0x26438b,_0x3b54af,_0x1dc586);},'hDLQQ':'local','tYjxs':function(_0x542d77,_0x5c12d0,_0x4774e6){return _0x542d77(_0x5c12d0,_0x4774e6);},'EICOr':function(_0x3303da,_0x4e5ddb){return _0x3303da(_0x4e5ddb);}},_0xe0034b=_0x2137b3[_0x5ac2a1(0x96)](getRangerDir),_0x2f7342=_0x2137b3['UqApi'](join,_0xe0034b,'ci',_0x392d5d),_0x2291a3=_0x2137b3[_0x5ac2a1(0xad)](join,_0xe0034b,_0x2137b3['hDLQQ'],_0x392d5d),_0x1d803d=join(_0xe0034b,_0x392d5d),_0x50e939=_0x2137b3[_0x5ac2a1(0xa7)](join,_0xe0034b,_0x5ac2a1(0xcd)),_0x2efceb=join(_0xe0034b,'ci');if(_0x2137b3[_0x5ac2a1(0xa9)](existsSync,_0x2f7342))return _0x2f7342;if(existsSync(_0x2291a3))return _0x2291a3;if(existsSync(_0x1d803d)&&(_0x1d803d!==_0x50e939&&_0x1d803d!==_0x2efceb?!![]:hasLegacyProfileFiles(_0x1d803d)))return _0x1d803d;return _0x2291a3;}export function findExistingEnv(_0x3959d8,_0x315053){const _0x20f9e6=_0x21f3,_0x258e9c={'Mknol':_0x20f9e6(0xcd),'uywsQ':function(_0x3929a1,_0x302ff0){return _0x3929a1===_0x302ff0;},'fzEFm':function(_0x266f06,_0x252f7c){return _0x266f06(_0x252f7c);}},_0xc1171b=getRangerDir(),_0x4311de=_0x315053?.['locations']??['ci',_0x258e9c[_0x20f9e6(0xdb)],_0x20f9e6(0x9f)],_0x5221dc=join(_0xc1171b,_0x258e9c['Mknol']),_0x34b975=join(_0xc1171b,'ci'),_0x4e42ce=[{'location':'ci','path':join(_0xc1171b,'ci',_0x3959d8)},{'location':_0x258e9c[_0x20f9e6(0xdb)],'path':join(_0xc1171b,'local',_0x3959d8)},{'location':'legacy','path':join(_0xc1171b,_0x3959d8)}];for(const _0x580379 of _0x4e42ce){if(_0x4311de[_0x20f9e6(0xe4)](_0x580379[_0x20f9e6(0xb7)])&&existsSync(_0x580379[_0x20f9e6(0xc9)])){if(_0x580379['location']==='legacy'&&(_0x580379[_0x20f9e6(0xc9)]===_0x5221dc||_0x258e9c['uywsQ'](_0x580379[_0x20f9e6(0xc9)],_0x34b975))&&!_0x258e9c[_0x20f9e6(0xf4)](hasLegacyProfileFiles,_0x580379['path']))continue;return{'path':_0x580379['path'],'location':_0x580379['location']};}}return null;}function hasLegacyProfileFiles(_0x29ae82){const _0x1a1ea3=_0x21f3,_0x16cbe1={'ZcQHe':function(_0x1d0f20,_0x4f1920,_0x16ed75){return _0x1d0f20(_0x4f1920,_0x16ed75);},'tvxTI':function(_0x5cdc92,_0x4ce12f){return _0x5cdc92(_0x4ce12f);},'KDLFR':function(_0x27d61b,_0x299d73){return _0x27d61b(_0x299d73);},'SqksV':'auth.json.enc'};return existsSync(_0x16cbe1['ZcQHe'](join,_0x29ae82,_0x1a1ea3(0xb8)))||_0x16cbe1[_0x1a1ea3(0xe5)](existsSync,join(_0x29ae82,'auth.json'))||_0x16cbe1[_0x1a1ea3(0xdf)](existsSync,_0x16cbe1['ZcQHe'](join,_0x29ae82,_0x16cbe1[_0x1a1ea3(0xa1)]));}export function isEnvCi(_0x105ff2){const _0xddbc5b=_0x21f3,_0x2a6d6e={'hvXVX':function(_0x41985e,_0x159b77){return _0x41985e(_0x159b77);},'meAme':function(_0x4ba93c){return _0x4ba93c();}};return _0x2a6d6e[_0xddbc5b(0xf0)](existsSync,join(_0x2a6d6e[_0xddbc5b(0xee)](getRangerDir),'ci',_0x105ff2));}export async function cleanupTempFiles(_0x468a19){const _0x39ac32=_0x21f3,_0x478d4f={'VROkd':function(_0x5915ed,_0x2de111){return _0x5915ed!==_0x2de111;}},_0x5cb762=[_0x468a19[_0x39ac32(0xa0)],_0x468a19['configPath']]['filter'](Boolean);await Promise[_0x39ac32(0xc3)](_0x5cb762['map'](_0x1eeeac=>unlink(_0x1eeeac)['catch'](_0x514b8e=>{const _0x3f1a4e=_0x39ac32;_0x478d4f['VROkd'](_0x514b8e['code'],_0x3f1a4e(0xdd))&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x1eeeac+':',_0x514b8e[_0x3f1a4e(0xab)]);})));}export function getSettingsPath(_0x59c655){const _0x52875a=_0x21f3,_0x39f245={'iLlEA':function(_0x3353fd,_0x208fcd,_0x3ba389){return _0x3353fd(_0x208fcd,_0x3ba389);},'VWRGs':_0x52875a(0xb8)};return _0x39f245['iLlEA'](join,getEnvDir(_0x59c655),_0x39f245[_0x52875a(0xae)]);}export async function loadSettings(_0x4f1b7a){const _0x750a37=_0x21f3,_0x2bb8fb={'yotfI':function(_0x3ec97d,_0x15538e){return _0x3ec97d(_0x15538e);},'ZCJCf':function(_0x15a999,_0x1625c7){return _0x15a999(_0x1625c7);},'skPQU':function(_0xb0837c,_0x67a7bc,_0x2045d8){return _0xb0837c(_0x67a7bc,_0x2045d8);}},_0x57e399=_0x2bb8fb['yotfI'](getSettingsPath,_0x4f1b7a);if(!_0x2bb8fb['ZCJCf'](existsSync,_0x57e399))return{};try{const _0x190e68=await _0x2bb8fb['skPQU'](readFile,_0x57e399,'utf-8');return JSON[_0x750a37(0xb5)](_0x190e68);}catch{return{};}}export async function saveSettings(_0x2cd9a8,_0x395021){const _0x560851=_0x21f3,_0x164b72={'zQroa':function(_0x2513ea,_0x57fb4b){return _0x2513ea(_0x57fb4b);},'EjAIQ':function(_0x4c2e11,_0x32f29d,_0x1af0b3){return _0x4c2e11(_0x32f29d,_0x1af0b3);}},_0x5ad298=_0x164b72[_0x560851(0xaf)](getSettingsPath,_0x2cd9a8),_0x24b397=_0x164b72[_0x560851(0xaf)](dirname,_0x5ad298);!existsSync(_0x24b397)&&await _0x164b72['EjAIQ'](mkdir,_0x24b397,{'recursive':!![]}),await _0x164b72[_0x560851(0xba)](writeFile,_0x5ad298,JSON['stringify'](_0x395021,null,0x2));}export function resolveEnvVars(_0xa4d8f8){const _0x1ab9a1=_0x21f3,_0x3368ed={'XAqrp':function(_0x4bdb4e,_0x5e5fab){return _0x4bdb4e===_0x5e5fab;}};if(_0x3368ed[_0x1ab9a1(0xbf)](typeof _0xa4d8f8,_0x1ab9a1(0xcf)))return _0xa4d8f8['replace'](/\$\{(\w+)\}/g,(_0x5ce6c8,_0x13313e)=>{const _0x38ae4b=_0x1ab9a1,_0x57ac4b=process[_0x38ae4b(0xb6)][_0x13313e];if(_0x57ac4b===undefined)throw new Error('Environment\x20variable\x20'+_0x13313e+'\x20is\x20not\x20set');return _0x57ac4b;});if(Array[_0x1ab9a1(0x8b)](_0xa4d8f8))return _0xa4d8f8[_0x1ab9a1(0x9d)](resolveEnvVars);if(_0xa4d8f8&&typeof _0xa4d8f8==='object')return Object[_0x1ab9a1(0xb1)](Object['entries'](_0xa4d8f8)['map'](([_0x4b520f,_0x3f31d1])=>[_0x4b520f,resolveEnvVars(_0x3f31d1)]));return _0xa4d8f8;}const isRecord=_0x82afbd=>typeof _0x82afbd==='object'&&_0x82afbd!==null&&!Array[_0x204fae(0x8b)](_0x82afbd),asRecord=_0x5a28a0=>isRecord(_0x5a28a0)?_0x5a28a0:undefined,mergeHeaders=(_0x410c01,_0x4f9b59)=>{const _0x30a88f=_0x204fae,_0x53ffb7={'CedRj':function(_0x137dc5,_0x5bbbfa){return _0x137dc5??_0x5bbbfa;}},_0x2cb2fa={..._0x53ffb7['CedRj'](_0x410c01,{}),..._0x4f9b59??{}};return Object['keys'](_0x2cb2fa)[_0x30a88f(0x9a)]?_0x2cb2fa:undefined;},SAFE_MODE_ARGS=[_0x204fae(0xea)],ALLOW_LOCALHOST_ARGS=[_0x204fae(0x99),'--allow-running-insecure-content','--unsafely-treat-insecure-origin-as-secure=http://localhost',_0x204fae(0xc6)];export function buildBrowserOptionsFromSettings(_0x13eea8,_0x43ec8c={}){const _0x218d09=_0x204fae,_0x2f0632={'gYFiU':function(_0x5b3b18,_0x3a9f53){return _0x5b3b18(_0x3a9f53);},'KhxVx':_0x218d09(0xa3),'DDtQI':function(_0xfd578,_0x4a17dd){return _0xfd578(_0x4a17dd);},'ElmfQ':function(_0x4c0ee6,_0xb2f49f){return _0x4c0ee6===_0xb2f49f;},'FtVJL':_0x218d09(0xcf),'beEjI':function(_0x11413d,_0x88097,_0x3874bf){return _0x11413d(_0x88097,_0x3874bf);}},_0x235f6f=asRecord(_0x13eea8[_0x218d09(0xd1)]),_0x2eef0b={..._0x2f0632['gYFiU'](asRecord,_0x235f6f?.[_0x218d09(0xef)])??{}};typeof _0x43ec8c[_0x218d09(0xce)]===_0x2f0632['KhxVx']&&(_0x2eef0b['headless']=_0x43ec8c['headless']);if(_0x13eea8['safeMode']){const _0x3a5a0e=_0x2eef0b[_0x218d09(0xbe)]??[],_0x5b8522=SAFE_MODE_ARGS[_0x218d09(0xc1)](_0x3a2d77=>!_0x3a5a0e['includes'](_0x3a2d77));_0x2eef0b[_0x218d09(0xbe)]=[..._0x3a5a0e,..._0x5b8522];}if(_0x13eea8[_0x218d09(0xd7)]){const _0x20bd71=_0x2eef0b['args']??[],_0x3689f4=ALLOW_LOCALHOST_ARGS['filter'](_0x5df028=>!_0x20bd71[_0x218d09(0xe4)](_0x5df028));_0x2eef0b['args']=[..._0x20bd71,..._0x3689f4];}const _0x2da0ea={..._0x2f0632['DDtQI'](asRecord,_0x235f6f?.['contextOptions'])??{}};_0x2da0ea['ignoreHTTPSErrors']=!![];_0x2f0632[_0x218d09(0xbb)](typeof _0x13eea8[_0x218d09(0x90)],_0x2f0632[_0x218d09(0xdc)])&&(_0x2da0ea['userAgent']=_0x13eea8['userAgent']);const _0x467d8e=_0x2f0632['beEjI'](mergeHeaders,_0x2f0632['DDtQI'](asRecord,_0x2da0ea['extraHTTPHeaders']),asRecord(_0x13eea8['headers']));return _0x467d8e?_0x2da0ea['extraHTTPHeaders']=_0x467d8e:delete _0x2da0ea[_0x218d09(0xec)],_0x43ec8c[_0x218d09(0xe2)]&&(_0x2da0ea['storageState']=_0x43ec8c['storageStatePath']),{'launchOptions':_0x2eef0b,'contextOptions':_0x2da0ea};}export async function buildPlaywrightConfig(_0x4e9a4e,_0x55ff9a,_0x58fad4,_0x599372){const _0x37bb39=_0x204fae,_0x50bc2f={'VycyI':_0x37bb39(0xe0),'iKPcg':function(_0x1a89c9,_0x1973df){return _0x1a89c9(_0x1973df);},'RtHtE':_0x37bb39(0xe3),'XVnLD':function(_0x4968c6){return _0x4968c6();},'YHeyz':function(_0x63ac09,_0x5c2839){return _0x63ac09(_0x5c2839);},'oUvha':function(_0x6bcb52,_0x3dfe39,_0x11e490){return _0x6bcb52(_0x3dfe39,_0x11e490);},'sciIx':function(_0x1adf34){return _0x1adf34();},'GHcCo':function(_0x18bf0c){return _0x18bf0c();},'SQkDD':function(_0x48faf2,_0x4571e7,_0x4339b5,_0x50405b){return _0x48faf2(_0x4571e7,_0x4339b5,_0x50405b);},'QkfLB':function(_0x58455b){return _0x58455b();},'yuScv':_0x37bb39(0x8c),'uThaY':function(_0xe8fe25,_0x1fc2b7){return _0xe8fe25===_0x1fc2b7;},'owpfk':function(_0x1a1d81,_0x3b40b5,_0x43037e){return _0x1a1d81(_0x3b40b5,_0x43037e);}},_0x2bc8f6=_0x50bc2f['iKPcg'](getEnvDir,_0x55ff9a),_0x2b6ef9=join(_0x2bc8f6,'auth.json.enc'),_0x3892b1=join(_0x2bc8f6,_0x50bc2f['RtHtE']);let _0x30d29c,_0x3b523a;if(existsSync(_0x2b6ef9))try{const _0x3eb001=await _0x50bc2f[_0x37bb39(0x9e)](getToken);if(!_0x3eb001)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x2951dc=await _0x50bc2f[_0x37bb39(0xa5)](readFile,_0x2b6ef9),_0x2f2fb8=_0x50bc2f[_0x37bb39(0x92)](decrypt,_0x2951dc,_0x3eb001);_0x3b523a=join(_0x50bc2f['sciIx'](tmpdir),'ranger-auth-'+Date['now']()+_0x37bb39(0xe8)),await writeFile(_0x3b523a,_0x2f2fb8),_0x30d29c=_0x3b523a;}catch(_0x2db870){const _0x1c270f=_0x2db870 instanceof Error?_0x2db870[_0x37bb39(0xab)]:String(_0x2db870);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x1c270f);}else existsSync(_0x3892b1)&&(_0x30d29c=_0x3892b1);const _0x1084a1=_0x58fad4||_0x50bc2f['GHcCo'](randomUUID),_0x4f54f3=_0x50bc2f[_0x37bb39(0xf1)](join,_0x50bc2f['QkfLB'](getRangerDir),_0x37bb39(0xd4),_0x1084a1),_0x2be073=Boolean(_0x4e9a4e[_0x37bb39(0xcb)]),_0x2a2015=_0x2be073?{'browserName':'chromium','cdpEndpoint':_0x4e9a4e[_0x37bb39(0xcb)]}:((()=>{const _0x3ae781=_0x37bb39,{launchOptions:_0x6991af,contextOptions:_0x1719de}=buildBrowserOptionsFromSettings(_0x4e9a4e,{'headless':_0x599372?![]:_0x4e9a4e[_0x3ae781(0xce)]??!![],'storageStatePath':_0x30d29c});if(process['getuid']?.()===0x0){const _0x2a2546=['--no-sandbox',_0x3ae781(0x8e)],_0x714134=_0x6991af['args']??[],_0x266beb=_0x2a2546['filter'](_0x5d10f5=>!_0x714134['includes'](_0x5d10f5));_0x6991af[_0x3ae781(0xbe)]=[..._0x714134,..._0x266beb];}return{'isolated':!![],'browserName':_0x3ae781(0xb2),'launchOptions':_0x6991af,'contextOptions':{..._0x1719de,'permissions':[_0x50bc2f[_0x3ae781(0xed)],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x1f4907={'name':_0x55ff9a,'browser':_0x2a2015,'capabilities':[_0x37bb39(0xb9),_0x50bc2f['yuScv'],'install','pdf','vision'],'imageResponses':_0x37bb39(0xb4),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4f54f3};if(!_0x2be073){const _0x4aa063=_0x1f4907['browser'],_0x4993c4=_0x4aa063[_0x37bb39(0xf2)];if(_0x50bc2f['uThaY'](_0x4993c4[_0x37bb39(0x90)],undefined))delete _0x4993c4['userAgent'];if(_0x4993c4[_0x37bb39(0x95)]===undefined)delete _0x4993c4[_0x37bb39(0x95)];}const _0x448e22=join(_0x50bc2f[_0x37bb39(0x9e)](tmpdir),_0x37bb39(0xc2));!existsSync(_0x448e22)&&await mkdir(_0x448e22,{'recursive':!![]});const _0x334e37=_0x50bc2f[_0x37bb39(0x8d)](join,_0x448e22,_0x55ff9a+'-'+Date[_0x37bb39(0x91)]()+'.json');return await writeFile(_0x334e37,JSON['stringify'](_0x1f4907,null,0x2)),{'configPath':_0x334e37,'tempAuthPath':_0x3b523a};}export async function buildPlaywrightCliConfig(_0x555361,_0x556d99,_0x549343,_0x161494){const _0x43fb6d=_0x204fae,_0x14aee4={'APEBE':_0x43fb6d(0xc4),'pathK':_0x43fb6d(0x8e),'CDiXX':_0x43fb6d(0xe0),'tmXPP':_0x43fb6d(0xa4),'sEwbp':function(_0xc75616,_0x2edc8c){return _0xc75616(_0x2edc8c);},'hvZOg':function(_0x1ae875,_0x3f19c7,_0x2c443e){return _0x1ae875(_0x3f19c7,_0x2c443e);},'ImeRJ':_0x43fb6d(0xe3),'ETkXN':function(_0x1e7094){return _0x1e7094();},'hGhhs':function(_0x11a1fd,_0x38c1fb){return _0x11a1fd instanceof _0x38c1fb;},'uoajX':function(_0x3a2733,_0x2673ae,_0x392684,_0x186efd){return _0x3a2733(_0x2673ae,_0x392684,_0x186efd);},'aqqEL':_0x43fb6d(0xd4),'rkSEd':function(_0x40a882,_0x60ca5c){return _0x40a882(_0x60ca5c);},'WNSKI':function(_0x2de01b,_0x326107){return _0x2de01b===_0x326107;},'QkWot':_0x43fb6d(0xe9),'EHrhH':'none','CKIeZ':function(_0x36553f,_0x331707,_0x560ab7){return _0x36553f(_0x331707,_0x560ab7);},'iQMYt':_0x43fb6d(0xc2),'ULGfA':function(_0x2d675a,_0x217260){return _0x2d675a(_0x217260);},'pnDhK':function(_0x290480,_0x5b6c4e,_0x395805){return _0x290480(_0x5b6c4e,_0x395805);}},_0xe8176=_0x14aee4['sEwbp'](getEnvDir,_0x556d99),_0x1248f0=join(_0xe8176,'auth.json.enc'),_0x65c613=_0x14aee4[_0x43fb6d(0xbc)](join,_0xe8176,_0x14aee4['ImeRJ']);let _0x3494a8,_0x2cf3a0;if(_0x14aee4[_0x43fb6d(0xde)](existsSync,_0x1248f0))try{const _0x2c58ab=await getToken();if(!_0x2c58ab)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x12de8a=await readFile(_0x1248f0),_0x4723f9=decrypt(_0x12de8a,_0x2c58ab);_0x2cf3a0=join(_0x14aee4[_0x43fb6d(0xaa)](tmpdir),'ranger-auth-'+Date[_0x43fb6d(0x91)]()+'.json'),await _0x14aee4['hvZOg'](writeFile,_0x2cf3a0,_0x4723f9),_0x3494a8=_0x2cf3a0;}catch(_0x4941d0){const _0x45d102=_0x14aee4[_0x43fb6d(0xd9)](_0x4941d0,Error)?_0x4941d0['message']:String(_0x4941d0);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x45d102);}else _0x14aee4[_0x43fb6d(0xde)](existsSync,_0x65c613)&&(_0x3494a8=_0x65c613);const _0x3c5ea5=_0x549343||_0x14aee4['ETkXN'](randomUUID),_0x488623=_0x14aee4[_0x43fb6d(0x93)](join,getRangerDir(),_0x14aee4[_0x43fb6d(0x9c)],_0x3c5ea5),_0x503c73=_0x14aee4['rkSEd'](Boolean,_0x555361[_0x43fb6d(0xcb)]),_0xca3b65=_0x503c73?{'browserName':_0x43fb6d(0xb2),'cdpEndpoint':_0x555361[_0x43fb6d(0xcb)]}:((()=>{const _0xf2cd63=_0x43fb6d,{launchOptions:_0x3e59be,contextOptions:_0x420fcc}=buildBrowserOptionsFromSettings(_0x555361,{'headless':_0x161494?![]:_0x555361['headless']??!![],'storageStatePath':_0x3494a8});if(process[_0xf2cd63(0xe6)]?.()===0x0){const _0x879644=[_0x14aee4['APEBE'],_0x14aee4[_0xf2cd63(0xc0)]],_0x1b037a=_0x3e59be['args']??[],_0x392415=_0x879644[_0xf2cd63(0xc1)](_0x5ef7ad=>!_0x1b037a['includes'](_0x5ef7ad));_0x3e59be[_0xf2cd63(0xbe)]=[..._0x1b037a,..._0x392415];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x3e59be,'contextOptions':{..._0x420fcc,'permissions':[_0x14aee4['CDiXX'],_0x14aee4['tmXPP']],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x503c73){const _0x41a6f5=_0xca3b65[_0x43fb6d(0xf2)];if(_0x14aee4[_0x43fb6d(0xa6)](_0x41a6f5['userAgent'],undefined))delete _0x41a6f5[_0x43fb6d(0x90)];if(_0x14aee4[_0x43fb6d(0xa6)](_0x41a6f5[_0x43fb6d(0x95)],undefined))delete _0x41a6f5['storageState'];}const _0x657598={'browser':_0xca3b65,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x488623,'outputMode':_0x14aee4['QkWot'],'codegen':_0x14aee4[_0x43fb6d(0x94)]},_0x597388=_0x14aee4[_0x43fb6d(0x98)](join,_0x14aee4['ETkXN'](tmpdir),_0x14aee4['iQMYt']);!_0x14aee4['ULGfA'](existsSync,_0x597388)&&await _0x14aee4[_0x43fb6d(0x98)](mkdir,_0x597388,{'recursive':!![]});const _0x4db5b1=_0x14aee4[_0x43fb6d(0xd8)](join,_0x597388,_0x556d99+'-'+Date['now']()+'-cli.json');return await writeFile(_0x4db5b1,JSON['stringify'](_0x657598,null,0x2)),{'configPath':_0x4db5b1,'tempAuthPath':_0x2cf3a0};}export function getNestedValue(_0xba9cfe,_0x5c5dda){const _0x258215=_0x204fae,_0x180643={'VfxuE':function(_0x58605e,_0x291c15){return _0x58605e===_0x291c15;},'WUvJH':function(_0xaa07b2,_0x1d00be){return _0xaa07b2===_0x1d00be;},'abzdD':_0x258215(0xd3)},_0x400520=parseKeyPath(_0x5c5dda);let _0x2853dd=_0xba9cfe;for(const _0x44fdb9 of _0x400520){if(_0x180643['VfxuE'](_0x2853dd,null)||_0x180643[_0x258215(0xb3)](_0x2853dd,undefined)||typeof _0x2853dd!==_0x180643[_0x258215(0xe7)])return undefined;_0x2853dd=_0x2853dd[_0x44fdb9];}return _0x2853dd;}function _0x21f3(_0x2a47fe,_0x156c1d){_0x2a47fe=_0x2a47fe-0x8b;const _0x426592=_0x4265();let _0x21f3df=_0x426592[_0x2a47fe];return _0x21f3df;}export function setNestedValue(_0x2e36fc,_0x4ec5e1,_0x5cc355){const _0x19c0b8=_0x204fae,_0x2610c2={'lFoyH':function(_0x5a1758,_0x167ff8){return _0x5a1758<_0x167ff8;},'abnVa':function(_0x29737b,_0x3cdca7){return _0x29737b-_0x3cdca7;},'BwMWw':function(_0x49b6cb,_0x1dd3de){return _0x49b6cb in _0x1dd3de;},'hCJai':function(_0x268f8c,_0x546ed0){return _0x268f8c!==_0x546ed0;}},_0x539b31=parseKeyPath(_0x4ec5e1);let _0x75a857=_0x2e36fc;for(let _0x334485=0x0;_0x2610c2['lFoyH'](_0x334485,_0x2610c2['abnVa'](_0x539b31[_0x19c0b8(0x9a)],0x1));_0x334485++){const _0x53f445=_0x539b31[_0x334485];(!_0x2610c2['BwMWw'](_0x53f445,_0x75a857)||_0x2610c2['hCJai'](typeof _0x75a857[_0x53f445],'object'))&&(_0x75a857[_0x53f445]={}),_0x75a857=_0x75a857[_0x53f445];}_0x75a857[_0x539b31[_0x539b31[_0x19c0b8(0x9a)]-0x1]]=_0x5cc355;}export function deleteNestedValue(_0xd40a60,_0x578c75){const _0x5db874=_0x204fae,_0xf5a92b={'egFDq':function(_0x1168f5,_0x434f8b){return _0x1168f5<_0x434f8b;},'BxCed':function(_0x19b151,_0x1767b7){return _0x19b151-_0x1767b7;},'NwgNd':function(_0x53e6c9,_0x4b0f67){return _0x53e6c9===_0x4b0f67;},'DGHbA':function(_0x9c3c08,_0x3b0723){return _0x9c3c08!==_0x3b0723;},'fRCPQ':function(_0x3b4dac,_0x19af44){return _0x3b4dac-_0x19af44;},'bzEse':function(_0x1d0e62,_0x2bdd83){return _0x1d0e62 in _0x2bdd83;}},_0x19efd8=parseKeyPath(_0x578c75);let _0x2daa68=_0xd40a60;for(let _0x4e8118=0x0;_0xf5a92b['egFDq'](_0x4e8118,_0xf5a92b[_0x5db874(0xd5)](_0x19efd8[_0x5db874(0x9a)],0x1));_0x4e8118++){if(_0xf5a92b['NwgNd'](_0x2daa68,null)||_0x2daa68===undefined||_0xf5a92b[_0x5db874(0xd2)](typeof _0x2daa68,'object'))return![];_0x2daa68=_0x2daa68[_0x19efd8[_0x4e8118]];}if(_0x2daa68===null||_0x2daa68===undefined||typeof _0x2daa68!=='object')return![];const _0x3aed5c=_0x19efd8[_0xf5a92b[_0x5db874(0x8f)](_0x19efd8[_0x5db874(0x9a)],0x1)];if(_0xf5a92b[_0x5db874(0xa8)](_0x3aed5c,_0x2daa68))return delete _0x2daa68[_0x3aed5c],!![];return![];}function parseKeyPath(_0x5aebe5){const _0x47b142=_0x204fae,_0x28475b={'fJixj':function(_0x54799b,_0x4aa5e1){return _0x54799b===_0x4aa5e1;}},_0x1fff50=_0x5aebe5['split']('.');return _0x28475b['fJixj'](_0x1fff50[0x0],'header')&&(_0x1fff50[0x0]='headers'),_0x1fff50[0x0]==='setupHeader'&&(_0x1fff50[0x0]=_0x47b142(0xd0)),_0x1fff50;}export function formatSettings(_0x471e0e,_0x5e004b=0x0){const _0x371069=_0x204fae,_0x2818e4={'LroWg':function(_0x52f379,_0x42966e){return _0x52f379===_0x42966e;},'Qrmte':function(_0xed513d,_0x58314a){return _0xed513d!==_0x58314a;}},_0x4e2ee8=[],_0x54c841='\x20\x20'[_0x371069(0xd6)](_0x5e004b);for(const [_0x32512a,_0x3db4ea]of Object['entries'](_0x471e0e)){if(_0x2818e4[_0x371069(0x97)](_0x3db4ea,undefined))continue;if(typeof _0x3db4ea===_0x371069(0xd3)&&_0x2818e4[_0x371069(0xeb)](_0x3db4ea,null)){_0x4e2ee8['push'](''+_0x54c841+_0x32512a+':');for(const [_0x655b5,_0xaa05bb]of Object[_0x371069(0xf3)](_0x3db4ea)){_0x4e2ee8[_0x371069(0xc7)](_0x54c841+'\x20\x20'+_0x655b5+':\x20'+_0xaa05bb);}}else _0x4e2ee8['push'](''+_0x54c841+_0x32512a+':\x20'+_0x3db4ea);}return _0x4e2ee8['join']('\x0a');}
@@ -1 +1 @@
1
- (function(_0x1be7c6,_0x1616f7){const _0x4d3cb2=_0x4d95,_0x1f695f=_0x1be7c6();while(!![]){try{const _0x946c01=parseInt(_0x4d3cb2(0x146))/0x1+-parseInt(_0x4d3cb2(0x13d))/0x2*(-parseInt(_0x4d3cb2(0x144))/0x3)+parseInt(_0x4d3cb2(0x140))/0x4+parseInt(_0x4d3cb2(0x145))/0x5*(parseInt(_0x4d3cb2(0x142))/0x6)+-parseInt(_0x4d3cb2(0x143))/0x7+parseInt(_0x4d3cb2(0x13c))/0x8*(-parseInt(_0x4d3cb2(0x141))/0x9)+-parseInt(_0x4d3cb2(0x13b))/0xa;if(_0x946c01===_0x1616f7)break;else _0x1f695f['push'](_0x1f695f['shift']());}catch(_0x58591e){_0x1f695f['push'](_0x1f695f['shift']());}}}(_0x502a,0x4ba88));function _0x502a(){const _0x1b0b7e=['7042000AlznYj','40DzhZqZ','410594DrQGsJ','rOscG','utf-8','1831032tXWOst','674091kSkOfx','24YYHwoy','1770377CJnqxg','3gbaJID','465720lkjzUi','605871FROSdr','AqedV'];_0x502a=function(){return _0x1b0b7e;};return _0x502a();}import{readFileSync}from'fs';function _0x4d95(_0x3d9c7c,_0x2d689){_0x3d9c7c=_0x3d9c7c-0x13a;const _0x502a84=_0x502a();let _0x4d95a8=_0x502a84[_0x3d9c7c];return _0x4d95a8;}import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x566b2b){const _0xd78fa5=_0x4d95,_0x3b4caf={'SFFmA':function(_0x4a8b4c,_0x5b7e57,_0x3613a2,_0x21556f,_0x5edeb7){return _0x4a8b4c(_0x5b7e57,_0x3613a2,_0x21556f,_0x5edeb7);},'AqedV':function(_0xcd4f58,_0x1d44ab,_0x1a1bd4){return _0xcd4f58(_0x1d44ab,_0x1a1bd4);}},_0x51df53=_0x3b4caf['SFFmA'](join,__dirname,'..','..','skills'),_0x41d5a1=join(_0x51df53,_0x566b2b);try{return _0x3b4caf[_0xd78fa5(0x13a)](readFileSync,_0x41d5a1,_0xd78fa5(0x13f));}catch{return'';}}export function getRangerSkillContent(){const _0x1487eb=_0x4d95,_0x1e26c8={'rOscG':'ranger/SKILL.md'};return readSkillContent(_0x1e26c8[_0x1487eb(0x13e)]);}
1
+ function _0x5672(_0x2dce6a,_0x5d53a8){_0x2dce6a=_0x2dce6a-0x1f3;const _0x47a78d=_0x47a7();let _0x567260=_0x47a78d[_0x2dce6a];return _0x567260;}(function(_0x36b033,_0x57130e){const _0x6b827f=_0x5672,_0x4deed9=_0x36b033();while(!![]){try{const _0x481f98=parseInt(_0x6b827f(0x1f4))/0x1*(-parseInt(_0x6b827f(0x1fc))/0x2)+parseInt(_0x6b827f(0x1fd))/0x3+parseInt(_0x6b827f(0x1f3))/0x4*(parseInt(_0x6b827f(0x1f6))/0x5)+parseInt(_0x6b827f(0x1f9))/0x6*(parseInt(_0x6b827f(0x1ff))/0x7)+parseInt(_0x6b827f(0x1fa))/0x8*(-parseInt(_0x6b827f(0x200))/0x9)+parseInt(_0x6b827f(0x1f7))/0xa*(parseInt(_0x6b827f(0x1fb))/0xb)+-parseInt(_0x6b827f(0x1fe))/0xc*(parseInt(_0x6b827f(0x201))/0xd);if(_0x481f98===_0x57130e)break;else _0x4deed9['push'](_0x4deed9['shift']());}catch(_0x3a972d){_0x4deed9['push'](_0x4deed9['shift']());}}}(_0x47a7,0x3a0f0));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x51f139){const _0x50440b=_0x5672,_0xb00d0f={'oqWds':function(_0x9a12ee,_0xe3541d,_0x2537f4,_0x39f695,_0x25a973){return _0x9a12ee(_0xe3541d,_0x2537f4,_0x39f695,_0x25a973);},'ZXXEr':'skills','TcwMm':function(_0x2c0724,_0x5b0424,_0x3cd610){return _0x2c0724(_0x5b0424,_0x3cd610);}},_0x5e26fc=_0xb00d0f['oqWds'](join,__dirname,'..','..',_0xb00d0f[_0x50440b(0x203)]),_0x42caa5=_0xb00d0f['TcwMm'](join,_0x5e26fc,_0x51f139);try{return readFileSync(_0x42caa5,'utf-8');}catch{return'';}}export function getRangerSkillContent(){const _0x312ea2=_0x5672,_0x8462d5={'ErZsQ':function(_0x160b76,_0x5034fe){return _0x160b76(_0x5034fe);},'StOnG':_0x312ea2(0x202)};return _0x8462d5[_0x312ea2(0x1f8)](readSkillContent,_0x8462d5[_0x312ea2(0x1f5)]);}function _0x47a7(){const _0x13a172=['104032ExEuwN','922185iFZOIB','324JgMjqe','3137743pzdOKB','35514HxwRTL','276406uamenZ','ranger/SKILL.md','ZXXEr','316doPVOi','1FBDXgI','StOnG','11690fRetbr','10BBMUoJ','ErZsQ','6PllEiU','632grBsEJ','2588146JSrtEL'];_0x47a7=function(){return _0x13a172;};return _0x47a7();}
@@ -1 +1 @@
1
- const _0x1aa37a=_0x4103;(function(_0x3f4dff,_0x1de582){const _0x5de9d0=_0x4103,_0x5aaa03=_0x3f4dff();while(!![]){try{const _0x3afa14=-parseInt(_0x5de9d0(0x1d4))/0x1*(-parseInt(_0x5de9d0(0x1e6))/0x2)+-parseInt(_0x5de9d0(0x1da))/0x3+-parseInt(_0x5de9d0(0x1cc))/0x4*(-parseInt(_0x5de9d0(0x1d6))/0x5)+parseInt(_0x5de9d0(0x1c8))/0x6*(-parseInt(_0x5de9d0(0x1e7))/0x7)+parseInt(_0x5de9d0(0x1de))/0x8+-parseInt(_0x5de9d0(0x1ce))/0x9+-parseInt(_0x5de9d0(0x1d0))/0xa*(-parseInt(_0x5de9d0(0x1cb))/0xb);if(_0x3afa14===_0x1de582)break;else _0x5aaa03['push'](_0x5aaa03['shift']());}catch(_0x5727de){_0x5aaa03['push'](_0x5aaa03['shift']());}}}(_0xa1dd,0xb85c8));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';function _0x4103(_0x4b9a79,_0x42cf58){_0x4b9a79=_0x4b9a79-0x1c7;const _0xa1ddf1=_0xa1dd();let _0x4103f8=_0xa1ddf1[_0x4b9a79];return _0x4103f8;}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',_0x1aa37a(0x1e0),'feature-tracker'];export async function installSkill(_0x5cee02,_0x2dea26={}){const _0x20d498=_0x1aa37a,_0x43e53f={'LDuoW':'project','NNOKp':_0x20d498(0x1d7),'ACwvn':function(_0x3b6d23,_0x37b360,_0x556572){return _0x3b6d23(_0x37b360,_0x556572);},'jQnNP':function(_0x3df868,_0x148e01){return _0x3df868(_0x148e01);},'lfTuq':function(_0x258127,_0x3e6031){return _0x258127(_0x3e6031);},'GoRIB':function(_0x3073ab,_0x19b541){return _0x3073ab(_0x19b541);},'yxdKc':function(_0x4f52d7,_0x583671){return _0x4f52d7&&_0x583671;},'boNrd':'opencode','taNgc':function(_0x5670b2,_0x25d804,_0xb749d7){return _0x5670b2(_0x25d804,_0xb749d7);},'KMRcT':function(_0x5c730a,_0x5b8392,_0x4c00be){return _0x5c730a(_0x5b8392,_0x4c00be);},'xVtYU':_0x20d498(0x1e1),'Rivah':'utf-8','arqqT':function(_0x202ede,_0x438bcd,_0x5aae41){return _0x202ede(_0x438bcd,_0x5aae41);},'LAWTN':function(_0x50b3c3,_0x13658f){return _0x50b3c3>_0x13658f;},'xVMYN':function(_0x336123,_0x139ae5,_0x58c33e,_0x5a418a){return _0x336123(_0x139ae5,_0x58c33e,_0x5a418a);}},{level:level=_0x43e53f[_0x20d498(0x1d2)],cliVersion:_0x162b9e,platform:platform=_0x43e53f['NNOKp']}=_0x2dea26,_0x5a63a9=getSourceSkillsDir(),_0xce72c1=_0x43e53f['ACwvn'](join,_0x5a63a9,_0x5cee02),_0x3657b2=join(_0x5a63a9,_0x5cee02+_0x20d498(0x1dc)),_0x3229e0=_0x43e53f['jQnNP'](existsSync,_0xce72c1)&&_0x43e53f['lfTuq'](statSync,_0xce72c1)[_0x20d498(0x1db)]()&&existsSync(join(_0xce72c1,_0x20d498(0x1e1))),_0x132452=_0x43e53f['GoRIB'](existsSync,_0x3657b2);if(_0x43e53f[_0x20d498(0x1e2)](!_0x3229e0,!_0x132452))return console[_0x20d498(0x1d1)](_0x20d498(0x1dd)+_0x5cee02),![];const _0x57c589=platform===_0x43e53f['boNrd']?getOpencodeSkillsDir(level):getSkillsDir(level),_0x3ab815=_0x43e53f['taNgc'](join,_0x57c589,_0x5cee02);await _0x43e53f['KMRcT'](mkdir,_0x3ab815,{'recursive':!![]});let _0x3a73e3,_0x5213e2=[];if(_0x3229e0){const _0x5c1a05=await readdir(_0xce72c1),_0x487a89=_0x5c1a05['filter'](_0x12a7eb=>_0x12a7eb['endsWith']('.md'));for(const _0x14a2b2 of _0x487a89){const _0x965527=join(_0xce72c1,_0x14a2b2),_0x18521e=_0x43e53f['taNgc'](join,_0x3ab815,_0x14a2b2);await _0x43e53f[_0x20d498(0x1e3)](copyFile,_0x965527,_0x18521e),_0x5213e2['push'](_0x14a2b2);}_0x3a73e3=await readFile(join(_0xce72c1,_0x43e53f['xVtYU']),_0x43e53f[_0x20d498(0x1cd)]);}else{_0x3a73e3=await readFile(_0x3657b2,_0x20d498(0x1e4));const _0x1d7444=_0x43e53f['arqqT'](join,_0x3ab815,_0x20d498(0x1e1));await writeFile(_0x1d7444,_0x3a73e3,'utf-8'),_0x5213e2['push'](_0x43e53f['xVtYU']);}const {name:_0x20b637}=_0x43e53f[_0x20d498(0x1c9)](parseFrontmatter,_0x3a73e3);return console['log']('\x20\x20Installed\x20skill:\x20'+_0x20b637),console[_0x20d498(0x1ca)](_0x20d498(0x1d5)+_0x3ab815),_0x43e53f['LAWTN'](_0x5213e2['length'],0x1)&&console[_0x20d498(0x1ca)]('\x20\x20Files:\x20'+_0x5213e2['join'](',\x20')),_0x43e53f['xVMYN'](logLocalAgentInstallation,_0x5cee02,{'skillDisplayName':_0x20b637,'installLevel':level},_0x162b9e)[_0x20d498(0x1c7)](()=>{}),!![];}function getSourceSkillsDir(){const _0x1f2791=_0x1aa37a,_0x1fc216={'kvjce':function(_0x49306e,_0x2dd1a4,_0x5d1805,_0x31c44a,_0x3a233b){return _0x49306e(_0x2dd1a4,_0x5d1805,_0x31c44a,_0x3a233b);},'qzfsj':function(_0x58a540,_0x922df0,_0x2358af,_0x3ad112,_0x1e68ef,_0x303a13){return _0x58a540(_0x922df0,_0x2358af,_0x3ad112,_0x1e68ef,_0x303a13);},'VzEsx':_0x1f2791(0x1d8),'neYIW':function(_0x3951e2,_0x50ef91){return _0x3951e2(_0x50ef91);}},_0x309069=[_0x1fc216['kvjce'](join,__dirname,'..','..','skills'),_0x1fc216[_0x1f2791(0x1d9)](join,__dirname,'..','..','..',_0x1fc216[_0x1f2791(0x1df)])];for(const _0x5ae98d of _0x309069){if(_0x1fc216[_0x1f2791(0x1cf)](existsSync,_0x5ae98d))return _0x5ae98d;}return _0x309069[0x0];}function parseFrontmatter(_0x224a50){const _0x183207=_0x1aa37a,_0x1dfa32={'SvpQn':'Invalid\x20skill\x20frontmatter'},_0x5070ee=_0x224a50[_0x183207(0x1d3)](/^---\n([\s\S]+?)\n---/);if(!_0x5070ee)throw new Error(_0x1dfa32['SvpQn']);const _0x287a24=_0x5070ee[0x1],_0xb3fa02=_0x287a24['match'](/name:\s*(.+)/),_0x4a7f13=_0x287a24['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0xb3fa02?.[0x1][_0x183207(0x1e5)]()||'','description':_0x4a7f13?.[0x1][_0x183207(0x1e5)]()||''};}function _0xa1dd(){const _0x56c971=['neYIW','20LLpWlR','warn','LDuoW','match','3xOqMwd','\x20\x20Location:\x20','13955XDxVRx','claude','skills','qzfsj','3949932MfRThs','isDirectory','.md','\x20\x20Skill\x20not\x20found:\x20','7252992qxtrko','VzEsx','bug-bash','SKILL.md','yxdKc','KMRcT','utf-8','trim','493042ORmBKA','588469SYRLft','catch','54lxnQBl','lfTuq','log','3102275mbxNrg','1208PwzVzT','Rivah','2022552NzvXti'];_0xa1dd=function(){return _0x56c971;};return _0xa1dd();}export async function removeSkill(_0x5c0e9a,_0x881d0f){const _0x1ae178=_0x1aa37a,_0x2803e6={'rrDAB':function(_0x295a7f,_0x3bc2de){return _0x295a7f(_0x3bc2de);}},_0x1607e7=_0x2803e6['rrDAB'](getSkillsDir,_0x881d0f),_0xceb4f3=join(_0x1607e7,_0x5c0e9a);if(!existsSync(_0xceb4f3))return![];try{return await rm(_0xceb4f3,{'recursive':!![]}),console[_0x1ae178(0x1ca)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x5c0e9a),!![];}catch{return console[_0x1ae178(0x1d1)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x5c0e9a),![];}}
1
+ function _0x193d(_0x583268,_0x5e9de2){_0x583268=_0x583268-0x10a;const _0xa895f3=_0xa895();let _0x193dd4=_0xa895f3[_0x583268];return _0x193dd4;}const _0x2feb93=_0x193d;(function(_0x32844c,_0x307971){const _0x2d4339=_0x193d,_0x42fde5=_0x32844c();while(!![]){try{const _0x483fcd=parseInt(_0x2d4339(0x129))/0x1*(-parseInt(_0x2d4339(0x126))/0x2)+parseInt(_0x2d4339(0x12d))/0x3+parseInt(_0x2d4339(0x10e))/0x4*(-parseInt(_0x2d4339(0x12b))/0x5)+-parseInt(_0x2d4339(0x10a))/0x6+-parseInt(_0x2d4339(0x118))/0x7+-parseInt(_0x2d4339(0x128))/0x8+-parseInt(_0x2d4339(0x112))/0x9*(-parseInt(_0x2d4339(0x124))/0xa);if(_0x483fcd===_0x307971)break;else _0x42fde5['push'](_0x42fde5['shift']());}catch(_0x194428){_0x42fde5['push'](_0x42fde5['shift']());}}}(_0xa895,0x41d91));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';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);export const RANGER_MANAGED_SKILLS=[_0x2feb93(0x12c)];export const DEPRECATED_SKILLS=['e2e-test-recommender',_0x2feb93(0x12a),_0x2feb93(0x117)];export async function installSkill(_0x21a919,_0x457c6b={}){const _0x1d896e=_0x2feb93,_0x38b405={'DVvkM':'project','ONXDa':_0x1d896e(0x110),'ZDKXk':function(_0x32deac,_0x5be152,_0xaeddcb){return _0x32deac(_0x5be152,_0xaeddcb);},'alAMW':function(_0x587f10,_0x4b2f9b,_0x2a07aa){return _0x587f10(_0x4b2f9b,_0x2a07aa);},'WVSps':function(_0x41ff25,_0xe4c71b){return _0x41ff25(_0xe4c71b);},'mskxT':function(_0x140365,_0x3d01a7,_0xe20c25){return _0x140365(_0x3d01a7,_0xe20c25);},'JVteU':function(_0x37d613,_0x30045f){return _0x37d613===_0x30045f;},'ULjCM':_0x1d896e(0x11f),'YbMIW':function(_0x117620,_0x311eb2,_0x356780){return _0x117620(_0x311eb2,_0x356780);},'jtnbI':function(_0x40994f,_0x173df1,_0x3e27e2){return _0x40994f(_0x173df1,_0x3e27e2);},'KabbE':function(_0x5d996d,_0x1eaa67,_0x1558b6){return _0x5d996d(_0x1eaa67,_0x1558b6);},'UhJIg':_0x1d896e(0x11e),'Aksii':'SKILL.md','tmSoI':function(_0x1c0d9e,_0x6dadd2){return _0x1c0d9e(_0x6dadd2);}},{level:level=_0x38b405[_0x1d896e(0x10b)],cliVersion:_0x250659,platform:platform=_0x38b405[_0x1d896e(0x130)]}=_0x457c6b,_0x51725d=getSourceSkillsDir(),_0x20e21c=_0x38b405['ZDKXk'](join,_0x51725d,_0x21a919),_0x4214c9=_0x38b405[_0x1d896e(0x113)](join,_0x51725d,_0x21a919+_0x1d896e(0x114)),_0x166dbd=_0x38b405['WVSps'](existsSync,_0x20e21c)&&statSync(_0x20e21c)['isDirectory']()&&_0x38b405['WVSps'](existsSync,_0x38b405['mskxT'](join,_0x20e21c,_0x1d896e(0x11b))),_0x2c941f=existsSync(_0x4214c9);if(!_0x166dbd&&!_0x2c941f)return console[_0x1d896e(0x127)]('\x20\x20Skill\x20not\x20found:\x20'+_0x21a919),![];const _0x6a1547=_0x38b405['JVteU'](platform,_0x38b405['ULjCM'])?_0x38b405[_0x1d896e(0x10f)](getOpencodeSkillsDir,level):_0x38b405['WVSps'](getSkillsDir,level),_0x1f5eb4=_0x38b405[_0x1d896e(0x11a)](join,_0x6a1547,_0x21a919);await _0x38b405['jtnbI'](mkdir,_0x1f5eb4,{'recursive':!![]});let _0x1c62e7,_0x3bbea4=[];if(_0x166dbd){const _0x389c86=await readdir(_0x20e21c),_0x139db1=_0x389c86[_0x1d896e(0x123)](_0x203617=>_0x203617[_0x1d896e(0x12f)](_0x1d896e(0x114)));for(const _0x368cd8 of _0x139db1){const _0x385406=_0x38b405[_0x1d896e(0x120)](join,_0x20e21c,_0x368cd8),_0x3677ce=_0x38b405[_0x1d896e(0x125)](join,_0x1f5eb4,_0x368cd8);await _0x38b405[_0x1d896e(0x121)](copyFile,_0x385406,_0x3677ce),_0x3bbea4[_0x1d896e(0x119)](_0x368cd8);}_0x1c62e7=await _0x38b405[_0x1d896e(0x120)](readFile,join(_0x20e21c,'SKILL.md'),_0x38b405[_0x1d896e(0x12e)]);}else{_0x1c62e7=await readFile(_0x4214c9,_0x38b405[_0x1d896e(0x12e)]);const _0x4161e6=_0x38b405['ZDKXk'](join,_0x1f5eb4,_0x38b405[_0x1d896e(0x111)]);await writeFile(_0x4161e6,_0x1c62e7,'utf-8'),_0x3bbea4['push'](_0x38b405['Aksii']);}const {name:_0x54ef55}=_0x38b405[_0x1d896e(0x122)](parseFrontmatter,_0x1c62e7);return console[_0x1d896e(0x10d)]('\x20\x20Installed\x20skill:\x20'+_0x54ef55),console[_0x1d896e(0x10d)]('\x20\x20Location:\x20'+_0x1f5eb4),_0x3bbea4['length']>0x1&&console['log']('\x20\x20Files:\x20'+_0x3bbea4[_0x1d896e(0x11d)](',\x20')),logLocalAgentInstallation(_0x21a919,{'skillDisplayName':_0x54ef55,'installLevel':level},_0x250659)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x30b694=_0x2feb93,_0x914b06={'Wzoni':function(_0x1e1aa5,_0x43f54d,_0x4f1087,_0x5b96e2,_0x11a3b5,_0x435edf){return _0x1e1aa5(_0x43f54d,_0x4f1087,_0x5b96e2,_0x11a3b5,_0x435edf);},'PStzy':function(_0x8d06b7,_0x167e74){return _0x8d06b7(_0x167e74);}},_0x4b18c7=[join(__dirname,'..','..',_0x30b694(0x10c)),_0x914b06['Wzoni'](join,__dirname,'..','..','..',_0x30b694(0x10c))];for(const _0x5a7e9b of _0x4b18c7){if(_0x914b06['PStzy'](existsSync,_0x5a7e9b))return _0x5a7e9b;}return _0x4b18c7[0x0];}function _0xa895(){const _0x23d269=['WVSps','claude','Aksii','31869eSXShq','alAMW','.md','trim','match','feature-tracker','1040431YkueYx','push','YbMIW','SKILL.md','\x20\x20Removed\x20deprecated\x20skill:\x20','join','utf-8','opencode','KabbE','mskxT','tmSoI','filter','5090fFiVMT','ZDKXk','485542VCgHgt','warn','995712ZrvZog','1TJZGdC','bug-bash','2452135vVpHie','ranger','24783ytiguR','UhJIg','endsWith','ONXDa','3207732eNnrKq','DVvkM','skills','log','4aqNmYV'];_0xa895=function(){return _0x23d269;};return _0xa895();}function parseFrontmatter(_0x4c85f1){const _0x18f7be=_0x2feb93,_0xab7cd5=_0x4c85f1[_0x18f7be(0x116)](/^---\n([\s\S]+?)\n---/);if(!_0xab7cd5)throw new Error('Invalid\x20skill\x20frontmatter');const _0xbff4c3=_0xab7cd5[0x1],_0x69e984=_0xbff4c3[_0x18f7be(0x116)](/name:\s*(.+)/),_0x53957f=_0xbff4c3[_0x18f7be(0x116)](/description:\s*"?(.+?)"?\n/);return{'name':_0x69e984?.[0x1][_0x18f7be(0x115)]()||'','description':_0x53957f?.[0x1]['trim']()||''};}export async function removeSkill(_0x5c8a28,_0x4e242f){const _0x9a8ef2=_0x2feb93,_0x4707c3={'gYYNd':function(_0x3432ef,_0x5ec26e){return _0x3432ef(_0x5ec26e);}},_0x58a76c=getSkillsDir(_0x4e242f),_0x1f0a95=join(_0x58a76c,_0x5c8a28);if(!_0x4707c3['gYYNd'](existsSync,_0x1f0a95))return![];try{return await rm(_0x1f0a95,{'recursive':!![]}),console['log'](_0x9a8ef2(0x11c)+_0x5c8a28),!![];}catch{return console['warn']('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x5c8a28),![];}}