@ranger-testing/ranger-cli 2.5.1 → 2.5.2

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 (73) 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/mcpBootstrap.js +1 -0
  25. package/build/commands/setup/claude.js +1 -1
  26. package/build/commands/setup/opencode.js +1 -1
  27. package/build/commands/setupCi.js +1 -1
  28. package/build/commands/skillup.js +1 -1
  29. package/build/commands/start.js +1 -1
  30. package/build/commands/status.js +1 -1
  31. package/build/commands/update.js +1 -1
  32. package/build/commands/updateEnv.js +1 -1
  33. package/build/commands/useEnv.js +1 -1
  34. package/build/commands/utils/activeProfile.js +1 -1
  35. package/build/commands/utils/agentEnv.js +1 -1
  36. package/build/commands/utils/browserSessionsApi.js +1 -1
  37. package/build/commands/utils/claudeConfig.js +1 -1
  38. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  39. package/build/commands/utils/claudePlugin.js +1 -1
  40. package/build/commands/utils/crypto.js +1 -1
  41. package/build/commands/utils/desirePathLog.js +1 -1
  42. package/build/commands/utils/deviceAuth.js +1 -1
  43. package/build/commands/utils/environment.js +1 -1
  44. package/build/commands/utils/featureApi.js +1 -1
  45. package/build/commands/utils/fixWebmDuration.js +1 -1
  46. package/build/commands/utils/keychain.js +1 -1
  47. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  48. package/build/commands/utils/mcpImageBase64.js +1 -1
  49. package/build/commands/utils/model.js +1 -1
  50. package/build/commands/utils/opencodeConfig.js +1 -1
  51. package/build/commands/utils/playwrightCli.js +1 -1
  52. package/build/commands/utils/profileMessages.js +1 -1
  53. package/build/commands/utils/profileSetupBanner.js +1 -1
  54. package/build/commands/utils/rangerConfig.js +1 -1
  55. package/build/commands/utils/rangerRoot.js +1 -1
  56. package/build/commands/utils/retry.js +1 -1
  57. package/build/commands/utils/sessionCache.js +1 -1
  58. package/build/commands/utils/settings.js +1 -1
  59. package/build/commands/utils/skillContent.js +1 -1
  60. package/build/commands/utils/skills.js +1 -1
  61. package/build/commands/utils/stitchWebmFiles.js +1 -1
  62. package/build/commands/utils/telemetry.js +1 -1
  63. package/build/commands/utils/tokenRefresh.js +1 -1
  64. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  65. package/build/commands/utils/userApi.js +1 -1
  66. package/build/commands/utils/version.js +1 -1
  67. package/build/commands/verifyFeature.js +1 -1
  68. package/build/commands/verifyFeatureCli.js +1 -1
  69. package/package.json +1 -1
  70. package/build/commands/utils/featureReportGenerator.js +0 -1
  71. package/build/commands/utils/git.js +0 -1
  72. package/build/commands/utils/reportGenerator.js +0 -1
  73. package/build/commands/verifyInBrowser.js +0 -1
@@ -1 +1 @@
1
- const _0xa02688=_0x1d83;(function(_0x514380,_0xcb30f5){const _0x2dc569=_0x1d83,_0x1de4a3=_0x514380();while(!![]){try{const _0x3db824=parseInt(_0x2dc569(0x17d))/0x1+-parseInt(_0x2dc569(0x16c))/0x2+parseInt(_0x2dc569(0x164))/0x3+parseInt(_0x2dc569(0x171))/0x4*(parseInt(_0x2dc569(0x15d))/0x5)+parseInt(_0x2dc569(0x178))/0x6+-parseInt(_0x2dc569(0x153))/0x7+parseInt(_0x2dc569(0x160))/0x8;if(_0x3db824===_0xcb30f5)break;else _0x1de4a3['push'](_0x1de4a3['shift']());}catch(_0x4f4522){_0x1de4a3['push'](_0x1de4a3['shift']());}}}(_0x31b8,0x260ee));function _0x1d83(_0x2d3358,_0x3af105){_0x2d3358=_0x2d3358-0x14e;const _0x31b8c4=_0x31b8();let _0x1d83c6=_0x31b8c4[_0x2d3358];return _0x1d83c6;}import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0xa02688(0x172);function toPlaywrightCliSessionKey(_0x2a6be0){const _0x3d9aa9=_0xa02688,_0x4e7235={'yPubu':_0x3d9aa9(0x151),'VrFKG':'hex'},_0x236661=createHash(_0x4e7235['yPubu'])[_0x3d9aa9(0x15f)](_0x2a6be0)['digest'](_0x4e7235['VrFKG'])[_0x3d9aa9(0x17e)](0x0,0xc);return'rg-'+_0x236661;}function shellQuote(_0x5a4049){return'\x27'+_0x5a4049['replace'](/'/g,'\x27\x5c\x27\x27')+'\x27';}function _0x31b8(){const _0x49812a=['unknown','string','length','18444LoFPIS','CLCZS','script','data','join','map','sVuKW','sessionId','229370QIvgnA','dNKBd','hCWAv','pipe','timed\x20out\x20after\x20','844JIsBEG','@playwright/cli','null','stderr','toString','values','VaEmY','844848mxCFlX','uKwpb','INhnL','ignore','error','193347scqMAy','slice','trim','\x0astdout:\x20','ZrRxk','timeoutMs','nPTgN','sha256','find','1330049XlFmAp','command','commandArgs','configPath','kill','HmFfB','...','\x0astderr:\x20','--config','-s=','985QGOKnG','bash_command','update','629664EdsQth'];_0x31b8=function(){return _0x49812a;};return _0x31b8();}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x589dd9){return SAFE_SHELL_TOKEN['test'](_0x589dd9)?_0x589dd9:shellQuote(_0x589dd9);}export function buildPlaywrightCliInvocation(_0x124ed2,_0x37beda,_0x4496e1){const _0x13183d=_0xa02688,_0x522da5={'LOHxt':'npx','PIrIB':function(_0x31a5df,_0x2548bd){return _0x31a5df(_0x2548bd);},'HmFfB':function(_0x1a69ce,_0x271838){return _0x1a69ce(_0x271838);}},_0x1c48fb=toPlaywrightCliSessionKey(_0x124ed2),[_0x17d1e1=_0x13183d(0x161)]=_0x4496e1,_0x6d184f=[PLAYWRIGHT_CLI_BINARY,_0x13183d(0x15c)+_0x1c48fb,'--config',_0x37beda,..._0x4496e1];return{'command':'npx','args':_0x6d184f,'shellCommand':[_0x522da5['LOHxt'],PLAYWRIGHT_CLI_BINARY,_0x13183d(0x15c)+_0x522da5['PIrIB'](quoteShellArg,_0x1c48fb),'--config',_0x522da5[_0x13183d(0x158)](quoteShellArg,_0x37beda),..._0x4496e1[_0x13183d(0x169)](quoteShellArg)][_0x13183d(0x168)]('\x20'),'subcommand':_0x17d1e1};}export function buildPlaywrightCliCommandPrefix(_0xbb4bbf,_0x4e83fc){const _0x4e5cf9=_0xa02688,_0x1d9ad7={'sVuKW':function(_0x626917,_0x1178c0){return _0x626917(_0x1178c0);},'oZiuJ':'npx','xglYZ':_0x4e5cf9(0x15b)},_0x35d353=_0x1d9ad7[_0x4e5cf9(0x16a)](toPlaywrightCliSessionKey,_0xbb4bbf);return[_0x1d9ad7['oZiuJ'],PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x35d353),_0x1d9ad7['xglYZ'],quoteShellArg(_0x4e83fc)][_0x4e5cf9(0x168)]('\x20');}function truncateOutput(_0x28aa00,_0x353fc4=0x7d0){const _0x1e2bc9=_0xa02688,_0x18cbed={'dNKBd':function(_0x3d4053,_0x559568){return _0x3d4053>_0x559568;},'nPTgN':function(_0x28a35e,_0x3518cc){return _0x28a35e+_0x3518cc;}};return _0x18cbed[_0x1e2bc9(0x16d)](_0x28aa00['length'],_0x353fc4)?_0x18cbed[_0x1e2bc9(0x150)](_0x28aa00['slice'](0x0,_0x353fc4),_0x1e2bc9(0x159)):_0x28aa00;}export async function runPlaywrightCliCommand(_0x2aa5db){const _0x4fa281=_0xa02688,_0x41b876={'VaEmY':'SIGKILL','WGrPX':'SIGTERM','OAyjI':function(_0x28247b,_0x2e3433,_0x8ea836){return _0x28247b(_0x2e3433,_0x8ea836);},'ZrRxk':function(_0x8dc4e9,_0x725a22){return _0x8dc4e9(_0x725a22);},'uKwpb':function(_0x1517fb,_0x401252){return _0x1517fb(_0x401252);},'CLCZS':'null','eMMeU':_0x4fa281(0x17b),'hCWAv':_0x4fa281(0x16f)},_0x1281e5=buildPlaywrightCliInvocation(_0x2aa5db[_0x4fa281(0x16b)],_0x2aa5db[_0x4fa281(0x156)],_0x2aa5db[_0x4fa281(0x155)]);return new Promise((_0x351b68,_0x130ba6)=>{const _0x554d87=_0x4fa281,_0x29d616=spawn(_0x1281e5[_0x554d87(0x154)],_0x1281e5['args'],{'cwd':_0x2aa5db['cwd'],'env':_0x2aa5db['env'],'stdio':[_0x41b876['eMMeU'],_0x554d87(0x16f),_0x41b876[_0x554d87(0x16e)]]});let _0x23495c='',_0x48d039='',_0x3326ad=![];const _0x11ea56=_0x2aa5db['timeoutMs']&&_0x2aa5db[_0x554d87(0x14f)]>0x0?setTimeout(()=>{const _0x1f95c9=_0x554d87,_0x410f14={'IHqRR':_0x41b876[_0x1f95c9(0x177)]};_0x3326ad=!![],_0x29d616[_0x1f95c9(0x157)](_0x41b876['WGrPX']),_0x41b876['OAyjI'](setTimeout,()=>{try{_0x29d616['kill'](_0x410f14['IHqRR']);}catch{}},0x3e8);},_0x2aa5db[_0x554d87(0x14f)]):null;_0x29d616['stdout']?.['on']('data',_0x546777=>{_0x23495c+=_0x546777['toString']();}),_0x29d616[_0x554d87(0x174)]?.['on'](_0x554d87(0x167),_0x180f9d=>{const _0x39b2a7=_0x554d87;_0x48d039+=_0x180f9d[_0x39b2a7(0x175)]();}),_0x29d616['on'](_0x554d87(0x17c),_0x35e809=>{const _0x5c285f=_0x554d87;if(_0x11ea56)clearTimeout(_0x11ea56);_0x41b876[_0x5c285f(0x14e)](_0x130ba6,_0x35e809);}),_0x29d616['on']('close',(_0x361c7d,_0x584e0b)=>{const _0x35d298=_0x554d87;if(_0x11ea56)_0x41b876['uKwpb'](clearTimeout,_0x11ea56);if(_0x361c7d===0x0){_0x41b876[_0x35d298(0x179)](_0x351b68,{'stdout':_0x23495c,'stderr':_0x48d039,'invocation':_0x1281e5});return;}const _0x50f0c6=_0x3326ad?_0x35d298(0x170)+_0x2aa5db[_0x35d298(0x14f)]+'ms':'exited\x20with\x20code='+(_0x361c7d??_0x35d298(0x173))+'\x20signal='+(_0x584e0b??_0x41b876[_0x35d298(0x165)]);_0x130ba6(new Error('playwright-cli\x20'+_0x1281e5['subcommand']+'\x20'+_0x50f0c6+_0x35d298(0x180)+_0x41b876[_0x35d298(0x179)](truncateOutput,_0x23495c)+_0x35d298(0x15a)+truncateOutput(_0x48d039)));});});}export function extractBashCommand(_0x56ab21){const _0x3a53c6=_0xa02688,_0x567ab7={'INhnL':_0x3a53c6(0x166),'uKFBp':_0x3a53c6(0x15e),'PEHbF':function(_0xe593ae,_0x3c5604){return _0xe593ae===_0x3c5604;},'sTaYO':'string'},_0x36ed67=['command','cmd',_0x567ab7[_0x3a53c6(0x17a)],_0x567ab7['uKFBp']];for(const _0x425983 of _0x36ed67){const _0x3f6752=_0x56ab21[_0x425983];if(_0x567ab7['PEHbF'](typeof _0x3f6752,_0x567ab7['sTaYO'])&&_0x3f6752[_0x3a53c6(0x17f)]())return _0x3f6752;}const _0x184f6=Object[_0x3a53c6(0x176)](_0x56ab21)[_0x3a53c6(0x152)](_0xf948eb=>typeof _0xf948eb===_0x3a53c6(0x162)&&_0xf948eb[_0x3a53c6(0x17f)]()[_0x3a53c6(0x163)]>0x0);return _0x184f6??null;}export function parsePlaywrightCliCommand(_0x2c5197){const _0x129d0a=_0x2c5197['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x129d0a?.[0x1]??null;}
1
+ const _0x18854d=_0x23aa;(function(_0x13ebab,_0x316790){const _0x412623=_0x23aa,_0x55424f=_0x13ebab();while(!![]){try{const _0x24e30a=-parseInt(_0x412623(0x20e))/0x1*(parseInt(_0x412623(0x1e8))/0x2)+-parseInt(_0x412623(0x1fb))/0x3*(parseInt(_0x412623(0x1ef))/0x4)+parseInt(_0x412623(0x20a))/0x5+parseInt(_0x412623(0x1fa))/0x6*(-parseInt(_0x412623(0x1f8))/0x7)+-parseInt(_0x412623(0x207))/0x8+-parseInt(_0x412623(0x206))/0x9*(-parseInt(_0x412623(0x202))/0xa)+parseInt(_0x412623(0x1f2))/0xb;if(_0x24e30a===_0x316790)break;else _0x55424f['push'](_0x55424f['shift']());}catch(_0x1344bb){_0x55424f['push'](_0x55424f['shift']());}}}(_0x1c5e,0xd861c));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0x18854d(0x1f3);function toPlaywrightCliSessionKey(_0x30e939){const _0x212cb8=_0x18854d,_0x2e645d={'SOZbV':'sha256','PNVkT':_0x212cb8(0x210)},_0x534b53=createHash(_0x2e645d[_0x212cb8(0x1e4)])['update'](_0x30e939)[_0x212cb8(0x20f)](_0x2e645d[_0x212cb8(0x1f0)])[_0x212cb8(0x1f5)](0x0,0xc);return'rg-'+_0x534b53;}function _0x1c5e(){const _0x3b233b=['3646447mlbYbS','BBVWg','18LhvNMU','76035uVccHp','...','trim','env','command','SIGTERM','Aanws','1062390sqMDaE','replace','MbfIu','cwd','9lUXRRu','11309392PLLqQa','--config','toString','1155760gPwFkD','timeoutMs','HLZvO','kill','38327ySAqAj','digest','hex','npx','sessionId','NlcfI','GsPfs','SIGKILL','string','\x27\x5c\x27\x27','values','SOZbV','fDhFe','bQYLI','stderr','62bDEOvJ','dcvBl','TprLQ','playwright-cli\x20','configPath','TFLZv','pipe','220cGKZwu','PNVkT','YKeUn','67182038uhKNbx','@playwright/cli','test','slice','length','TobwB'];_0x1c5e=function(){return _0x3b233b;};return _0x1c5e();}function shellQuote(_0x34c232){const _0x14a471=_0x18854d;return'\x27'+_0x34c232[_0x14a471(0x203)](/'/g,_0x14a471(0x1e2))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x54f174){const _0x22e339=_0x18854d;return SAFE_SHELL_TOKEN[_0x22e339(0x1f4)](_0x54f174)?_0x54f174:shellQuote(_0x54f174);}export function buildPlaywrightCliInvocation(_0x38aca9,_0xa2950,_0x5eae34){const _0x1193b1=_0x18854d,_0x249cdd={'Sqvos':'unknown','KXcBY':_0x1193b1(0x1dc),'xZLvD':'--config','BBVWg':function(_0x384e39,_0x411d0e){return _0x384e39(_0x411d0e);}},_0x378ab0=toPlaywrightCliSessionKey(_0x38aca9),[_0x28d6b2=_0x249cdd['Sqvos']]=_0x5eae34,_0x462600=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x378ab0,_0x1193b1(0x208),_0xa2950,..._0x5eae34];return{'command':_0x249cdd['KXcBY'],'args':_0x462600,'shellCommand':[_0x1193b1(0x1dc),PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x378ab0),_0x249cdd['xZLvD'],_0x249cdd[_0x1193b1(0x1f9)](quoteShellArg,_0xa2950),..._0x5eae34['map'](quoteShellArg)]['join']('\x20'),'subcommand':_0x28d6b2};}function _0x23aa(_0x4c2110,_0x11cf22){_0x4c2110=_0x4c2110-0x1dc;const _0x1c5e0e=_0x1c5e();let _0x23aac7=_0x1c5e0e[_0x4c2110];return _0x23aac7;}export function buildPlaywrightCliCommandPrefix(_0x4a6bad,_0x3f7cc9){const _0x228558=_0x18854d,_0x1fd9d4={'YKeUn':function(_0x1448f0,_0x2fa103){return _0x1448f0(_0x2fa103);},'TobwB':_0x228558(0x1dc),'fDhFe':'--config','TFLZv':function(_0x3c1a27,_0x474813){return _0x3c1a27(_0x474813);}},_0x5de948=_0x1fd9d4[_0x228558(0x1f1)](toPlaywrightCliSessionKey,_0x4a6bad);return[_0x1fd9d4[_0x228558(0x1f7)],PLAYWRIGHT_CLI_BINARY,'-s='+_0x1fd9d4['YKeUn'](quoteShellArg,_0x5de948),_0x1fd9d4[_0x228558(0x1e5)],_0x1fd9d4[_0x228558(0x1ed)](quoteShellArg,_0x3f7cc9)]['join']('\x20');}function truncateOutput(_0x119e1c,_0x271a99=0x7d0){const _0x589940=_0x18854d,_0x2aaf77={'SwcWv':function(_0x253427,_0x583a2d){return _0x253427+_0x583a2d;},'dcvBl':_0x589940(0x1fc)};return _0x119e1c[_0x589940(0x1f6)]>_0x271a99?_0x2aaf77['SwcWv'](_0x119e1c[_0x589940(0x1f5)](0x0,_0x271a99),_0x2aaf77[_0x589940(0x1e9)]):_0x119e1c;}export async function runPlaywrightCliCommand(_0x37c435){const _0x5167fe=_0x18854d,_0xaf4626={'sxYEd':function(_0x5dfa19,_0x32d933){return _0x5dfa19===_0x32d933;},'TprLQ':function(_0x1a9e35,_0x6194){return _0x1a9e35??_0x6194;},'HLZvO':'null','bQYLI':function(_0x536ee6,_0x49761c){return _0x536ee6(_0x49761c);},'NlcfI':function(_0x210ecf,_0x17b75f,_0x56a2f1,_0x1b754b){return _0x210ecf(_0x17b75f,_0x56a2f1,_0x1b754b);},'GfQNa':'ignore','GsPfs':'pipe','Aanws':function(_0x3d5645,_0x4f240d){return _0x3d5645>_0x4f240d;},'MbfIu':'error','iHSzY':function(_0x3497de,_0x1f3863,_0x5406e9,_0x29d5cd){return _0x3497de(_0x1f3863,_0x5406e9,_0x29d5cd);}},_0x204ea7=_0xaf4626['iHSzY'](buildPlaywrightCliInvocation,_0x37c435[_0x5167fe(0x1dd)],_0x37c435[_0x5167fe(0x1ec)],_0x37c435['commandArgs']);return new Promise((_0xa0e3a2,_0x3c5966)=>{const _0x23b7c7=_0x5167fe,_0x249d01=_0xaf4626[_0x23b7c7(0x1de)](spawn,_0x204ea7['command'],_0x204ea7['args'],{'cwd':_0x37c435[_0x23b7c7(0x205)],'env':_0x37c435[_0x23b7c7(0x1fe)],'stdio':[_0xaf4626['GfQNa'],_0x23b7c7(0x1ee),_0xaf4626[_0x23b7c7(0x1df)]]});let _0x1a8054='',_0x1ec79f='',_0x1be34=![];const _0x15ed64=_0x37c435['timeoutMs']&&_0xaf4626[_0x23b7c7(0x201)](_0x37c435['timeoutMs'],0x0)?setTimeout(()=>{const _0x132956=_0x23b7c7;_0x1be34=!![],_0x249d01[_0x132956(0x20d)](_0x132956(0x200)),setTimeout(()=>{const _0x4c78b3=_0x132956;try{_0x249d01[_0x4c78b3(0x20d)](_0x4c78b3(0x1e0));}catch{}},0x3e8);},_0x37c435['timeoutMs']):null;_0x249d01['stdout']?.['on']('data',_0x14d833=>{const _0x1f2ed0=_0x23b7c7;_0x1a8054+=_0x14d833[_0x1f2ed0(0x209)]();}),_0x249d01[_0x23b7c7(0x1e7)]?.['on']('data',_0x1bd081=>{_0x1ec79f+=_0x1bd081['toString']();}),_0x249d01['on'](_0xaf4626[_0x23b7c7(0x204)],_0x24a2b5=>{if(_0x15ed64)clearTimeout(_0x15ed64);_0x3c5966(_0x24a2b5);}),_0x249d01['on']('close',(_0x4834a3,_0x4c9b30)=>{const _0xbe0bad=_0x23b7c7;if(_0x15ed64)clearTimeout(_0x15ed64);if(_0xaf4626['sxYEd'](_0x4834a3,0x0)){_0xa0e3a2({'stdout':_0x1a8054,'stderr':_0x1ec79f,'invocation':_0x204ea7});return;}const _0x303bd1=_0x1be34?'timed\x20out\x20after\x20'+_0x37c435[_0xbe0bad(0x20b)]+'ms':'exited\x20with\x20code='+_0xaf4626[_0xbe0bad(0x1ea)](_0x4834a3,_0xaf4626[_0xbe0bad(0x20c)])+'\x20signal='+(_0x4c9b30??_0xaf4626['HLZvO']);_0xaf4626['bQYLI'](_0x3c5966,new Error(_0xbe0bad(0x1eb)+_0x204ea7['subcommand']+'\x20'+_0x303bd1+'\x0astdout:\x20'+_0xaf4626[_0xbe0bad(0x1e6)](truncateOutput,_0x1a8054)+'\x0astderr:\x20'+_0xaf4626[_0xbe0bad(0x1e6)](truncateOutput,_0x1ec79f)));});});}export function extractBashCommand(_0x5c0a6b){const _0x23ca76=_0x18854d,_0x146ca2={'bvCrZ':_0x23ca76(0x1ff),'HJshr':'script'},_0x3679ce=[_0x146ca2['bvCrZ'],'cmd',_0x146ca2['HJshr'],'bash_command'];for(const _0x3dac90 of _0x3679ce){const _0x17f65c=_0x5c0a6b[_0x3dac90];if(typeof _0x17f65c===_0x23ca76(0x1e1)&&_0x17f65c[_0x23ca76(0x1fd)]())return _0x17f65c;}const _0x5ed796=Object[_0x23ca76(0x1e3)](_0x5c0a6b)['find'](_0x5a312e=>typeof _0x5a312e===_0x23ca76(0x1e1)&&_0x5a312e[_0x23ca76(0x1fd)]()['length']>0x0);return _0x5ed796??null;}export function parsePlaywrightCliCommand(_0x1fc0c0){const _0x6eec41=_0x1fc0c0['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x6eec41?.[0x1]??null;}
@@ -1 +1 @@
1
- (function(_0x24517e,_0x74bf37){const _0x186865=_0x4258,_0x5b76cb=_0x24517e();while(!![]){try{const _0x1c9fda=parseInt(_0x186865(0x183))/0x1+parseInt(_0x186865(0x189))/0x2*(-parseInt(_0x186865(0x18a))/0x3)+-parseInt(_0x186865(0x187))/0x4*(-parseInt(_0x186865(0x181))/0x5)+parseInt(_0x186865(0x180))/0x6+-parseInt(_0x186865(0x182))/0x7*(parseInt(_0x186865(0x188))/0x8)+-parseInt(_0x186865(0x186))/0x9*(parseInt(_0x186865(0x185))/0xa)+-parseInt(_0x186865(0x184))/0xb;if(_0x1c9fda===_0x74bf37)break;else _0x5b76cb['push'](_0x5b76cb['shift']());}catch(_0x1a0964){_0x5b76cb['push'](_0x5b76cb['shift']());}}}(_0x2a85,0xa90b0));function _0x4258(_0x2b3df3,_0x100aa8){_0x2b3df3=_0x2b3df3-0x180;const _0x2a8527=_0x2a85();let _0x425856=_0x2a8527[_0x2b3df3];return _0x425856;}const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';function _0x2a85(){const _0xebe415=['10vLbCum','1799406yglCga','4ZBVBaK','1897296fZbSpt','357142msBmPt','3VcOxVA','2854050lqDnbr','5862305ExjgSk','21NgXCZK','1298513gpmipj','12806838lhnSeX'];_0x2a85=function(){return _0xebe415;};return _0x2a85();}export function formatProfileRequiredMessage(_0x522c20){const _0x8d534e=_0x522c20?_0x522c20(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20'+_0x8d534e+'.';}
1
+ const _0x335ea9=_0x3338;(function(_0x39f9cc,_0x196a17){const _0x2aa461=_0x3338,_0x2e3c7d=_0x39f9cc();while(!![]){try{const _0x4b6cb4=-parseInt(_0x2aa461(0x1de))/0x1+parseInt(_0x2aa461(0x1e1))/0x2*(parseInt(_0x2aa461(0x1dd))/0x3)+parseInt(_0x2aa461(0x1db))/0x4+parseInt(_0x2aa461(0x1df))/0x5*(parseInt(_0x2aa461(0x1e4))/0x6)+-parseInt(_0x2aa461(0x1e0))/0x7*(-parseInt(_0x2aa461(0x1d9))/0x8)+-parseInt(_0x2aa461(0x1dc))/0x9*(-parseInt(_0x2aa461(0x1da))/0xa)+-parseInt(_0x2aa461(0x1d8))/0xb;if(_0x4b6cb4===_0x196a17)break;else _0x2e3c7d['push'](_0x2e3c7d['shift']());}catch(_0x4d1fe7){_0x2e3c7d['push'](_0x2e3c7d['shift']());}}}(_0x256f,0x744f7));function _0x256f(){const _0x5c4c01=['1353cpTDaB','252840DVIGpC','1392240TdhxEY','623cZjjhy','632oAslIC','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','ranger\x20profile\x20add\x20local','6MlMbRG','2881043AqYKCM','40392aYTqLp','7180WCJMaf','457492lWiEeH','81maebCM'];_0x256f=function(){return _0x5c4c01;};return _0x256f();}function _0x3338(_0x446766,_0x5d75b4){_0x446766=_0x446766-0x1d8;const _0x256f73=_0x256f();let _0x3338b7=_0x256f73[_0x446766];return _0x3338b7;}const DEFAULT_PROFILE_COMMAND=_0x335ea9(0x1e3);export function formatProfileRequiredMessage(_0x2fe7ef){const _0x41b75c=_0x335ea9,_0x2cf923=_0x2fe7ef?_0x2fe7ef(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x41b75c(0x1e2)+_0x2cf923+'.';}
@@ -1 +1 @@
1
- (function(_0x4f31ca,_0x42c80f){const _0x595659=_0x5629,_0x427e64=_0x4f31ca();while(!![]){try{const _0x1af4bf=parseInt(_0x595659(0xa3))/0x1+-parseInt(_0x595659(0xa6))/0x2+-parseInt(_0x595659(0xa4))/0x3+parseInt(_0x595659(0xac))/0x4*(parseInt(_0x595659(0xb1))/0x5)+-parseInt(_0x595659(0xae))/0x6+-parseInt(_0x595659(0xb2))/0x7+-parseInt(_0x595659(0xb3))/0x8*(-parseInt(_0x595659(0xa9))/0x9);if(_0x1af4bf===_0x42c80f)break;else _0x427e64['push'](_0x427e64['shift']());}catch(_0x4c47a9){_0x427e64['push'](_0x427e64['shift']());}}}(_0x49d4,0x9ea20));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x297b99=_0x5629,_0x32ed1a={'xxuHk':function(_0x1c7801,_0x372348){return _0x1c7801+_0x372348;},'OpKvY':function(_0x54e2cc,_0x538eed){return _0x54e2cc+_0x538eed;},'VXSJM':_0x297b99(0xa2),'SjTUV':'<div\x20class=\x22ranger-banner__message\x22>','StAWa':'</div>'},_0x3025c4=_0x32ed1a['xxuHk'](_0x32ed1a['OpKvY'](_0x32ed1a['VXSJM']+_0x297b99(0xa5)+_0x32ed1a[_0x297b99(0xb0)],_0x297b99(0xaf)),'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>')+_0x32ed1a[_0x297b99(0xad)]+_0x32ed1a[_0x297b99(0xad)]+'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>',_0x17caf6=_0x297b99(0xa7);return _0x297b99(0xab)+JSON[_0x297b99(0xaa)](_0x3025c4)+';\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'](_0x17caf6)+';\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 _0x49d4(){const _0x49c245=['\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','addInitScript','12276CyhHsa','stringify','\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20','154796FUnHfA','StAWa','966930QHdPJI','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','SjTUV','115WuaEde','8163939XvGzjj','13696tbeFMc','<div\x20class=\x22ranger-banner__content\x22>','452969QJMQXX','2332206YiSfmQ','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','1847240BiyiuO'];_0x49d4=function(){return _0x49c245;};return _0x49d4();}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x5629(_0x18ffe1,_0x2320d1){_0x18ffe1=_0x18ffe1-0xa2;const _0x49d408=_0x49d4();let _0x5629dd=_0x49d408[_0x18ffe1];return _0x5629dd;}export async function addProfileSetupBanner(_0x31b644){const _0xc3d363=_0x5629;await _0x31b644[_0xc3d363(0xa8)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
1
+ (function(_0x1151ce,_0x2cabc2){const _0x54d9ac=_0x4f57,_0x177dc0=_0x1151ce();while(!![]){try{const _0x2346dc=parseInt(_0x54d9ac(0x133))/0x1+-parseInt(_0x54d9ac(0x127))/0x2*(-parseInt(_0x54d9ac(0x135))/0x3)+-parseInt(_0x54d9ac(0x125))/0x4*(parseInt(_0x54d9ac(0x126))/0x5)+-parseInt(_0x54d9ac(0x12e))/0x6+parseInt(_0x54d9ac(0x131))/0x7*(parseInt(_0x54d9ac(0x12a))/0x8)+-parseInt(_0x54d9ac(0x12c))/0x9+parseInt(_0x54d9ac(0x136))/0xa;if(_0x2346dc===_0x2cabc2)break;else _0x177dc0['push'](_0x177dc0['shift']());}catch(_0x285930){_0x177dc0['push'](_0x177dc0['shift']());}}}(_0x2f7a,0x50ac7));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x59730a=_0x4f57,_0x43ba0b={'USzvp':function(_0x36c456,_0x3e84bb){return _0x36c456+_0x3e84bb;},'ZCPTc':function(_0x28c9c1,_0x1bbdd7){return _0x28c9c1+_0x1bbdd7;},'Lzsqx':function(_0x3b6673,_0x30e4dc){return _0x3b6673+_0x30e4dc;},'HOweQ':function(_0x24b0cd,_0xc4c7f2){return _0x24b0cd+_0xc4c7f2;},'RgGas':_0x59730a(0x138),'AHIKf':_0x59730a(0x134)},_0x2c386e=_0x43ba0b['USzvp'](_0x43ba0b['ZCPTc'](_0x43ba0b['Lzsqx'](_0x43ba0b['HOweQ']('<div\x20class=\x22ranger-banner__content\x22>'+_0x59730a(0x128),_0x59730a(0x130)),_0x43ba0b['RgGas'])+_0x59730a(0x12f),'</div>'),'</div>')+_0x43ba0b[_0x59730a(0x137)],_0x20c450='\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 _0x59730a(0x129)+JSON[_0x59730a(0x12b)](_0x2c386e)+_0x59730a(0x12d)+JSON['stringify'](_0x20c450)+_0x59730a(0x132);})());function _0x4f57(_0x12041d,_0xa058c6){_0x12041d=_0x12041d-0x125;const _0x2f7a12=_0x2f7a();let _0x4f57d9=_0x2f7a12[_0x12041d];return _0x4f57d9;}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x2f7a(){const _0x3a1ec1=['2056ZzygzI','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','\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','24YzgYdG','stringify','4370454LFGSed',';\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','1788450MtKBQy','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','<div\x20class=\x22ranger-banner__message\x22>','1492519jaiTge',';\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','98353frVMsP','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','1455eNegav','528540kxGdWR','AHIKf','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','4904ucHyCi','715fyGCkS'];_0x2f7a=function(){return _0x3a1ec1;};return _0x2f7a();}export async function addProfileSetupBanner(_0x458d02){await _0x458d02['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
@@ -1 +1 @@
1
- (function(_0x170e65,_0x43c8dc){const _0x9c8f70=_0x19c2,_0x2e2179=_0x170e65();while(!![]){try{const _0x4c9947=-parseInt(_0x9c8f70(0x1b8))/0x1+parseInt(_0x9c8f70(0x1ac))/0x2+-parseInt(_0x9c8f70(0x1bb))/0x3*(parseInt(_0x9c8f70(0x1b1))/0x4)+parseInt(_0x9c8f70(0x1b9))/0x5*(-parseInt(_0x9c8f70(0x1ae))/0x6)+parseInt(_0x9c8f70(0x1b4))/0x7*(-parseInt(_0x9c8f70(0x1c1))/0x8)+parseInt(_0x9c8f70(0x1b2))/0x9*(parseInt(_0x9c8f70(0x1b6))/0xa)+parseInt(_0x9c8f70(0x1af))/0xb*(parseInt(_0x9c8f70(0x1c0))/0xc);if(_0x4c9947===_0x43c8dc)break;else _0x2e2179['push'](_0x2e2179['shift']());}catch(_0x25165e){_0x2e2179['push'](_0x2e2179['shift']());}}}(_0x3970,0xe23f6));function _0x3970(){const _0x3795df=['utf-8','11506831FnPfJN','warn','1210910FlUmSi','model','1475498qquSzu','815DvFNBQ','object','4395wJuWrX','dQASL','dySTb','message','config.json','23942448UoLjpK','8uXpWZO','yrlZz','2380312YhckeQ','parse','29478vYOltV','22KIMQVN','isArray','4548LCctXb','99oslXZB'];_0x3970=function(){return _0x3795df;};return _0x3970();}import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x570d83=_0x19c2,_0x5890e6={'rIoQM':function(_0x5649b3){return _0x5649b3();}};return join(_0x5890e6['rIoQM'](getRangerDir),_0x570d83(0x1bf));}function _0x19c2(_0x2a430d,_0x284be6){_0x2a430d=_0x2a430d-0x1ac;const _0x397089=_0x3970();let _0x19c29e=_0x397089[_0x2a430d];return _0x19c29e;}export async function loadRangerConfig(){const _0x55da11=_0x19c2,_0x12844d={'kPdJX':function(_0x2707ee){return _0x2707ee();},'dQASL':function(_0x13590b,_0x3bf48c){return _0x13590b!==_0x3bf48c;},'yrlZz':_0x55da11(0x1ba),'dySTb':function(_0x1f5199,_0x52766a){return _0x1f5199===_0x52766a;}},_0x30a955=_0x12844d['kPdJX'](getRangerConfigPath);if(!existsSync(_0x30a955))return{};try{const _0x322ad7=await readFile(_0x30a955,_0x55da11(0x1b3)),_0xd49a3b=JSON[_0x55da11(0x1ad)](_0x322ad7);if(!_0xd49a3b||_0x12844d[_0x55da11(0x1bc)](typeof _0xd49a3b,_0x12844d[_0x55da11(0x1c2)])||Array[_0x55da11(0x1b0)](_0xd49a3b))return{};const _0x514309={},_0x4fa0fa=_0xd49a3b['model'];return _0x12844d[_0x55da11(0x1bd)](typeof _0x4fa0fa,'string')&&(_0x514309[_0x55da11(0x1b7)]=_0x4fa0fa),_0x514309;}catch(_0x10a583){const _0x3b70e5=_0x10a583 instanceof Error?_0x10a583[_0x55da11(0x1be)]:String(_0x10a583);return console[_0x55da11(0x1b5)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x30a955+':\x20'+_0x3b70e5),{};}}
1
+ (function(_0x521f08,_0x156720){const _0x1da1b2=_0x117c,_0x3e1375=_0x521f08();while(!![]){try{const _0xcf1f79=-parseInt(_0x1da1b2(0x1b6))/0x1*(parseInt(_0x1da1b2(0x1c0))/0x2)+-parseInt(_0x1da1b2(0x1bf))/0x3+-parseInt(_0x1da1b2(0x1b8))/0x4*(parseInt(_0x1da1b2(0x1c7))/0x5)+-parseInt(_0x1da1b2(0x1cb))/0x6+-parseInt(_0x1da1b2(0x1c6))/0x7+-parseInt(_0x1da1b2(0x1c2))/0x8*(-parseInt(_0x1da1b2(0x1c3))/0x9)+parseInt(_0x1da1b2(0x1b7))/0xa;if(_0xcf1f79===_0x156720)break;else _0x3e1375['push'](_0x3e1375['shift']());}catch(_0x594233){_0x3e1375['push'](_0x3e1375['shift']());}}}(_0x430e,0xe25e3));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';function _0x117c(_0x5e3bfe,_0x4569f8){_0x5e3bfe=_0x5e3bfe-0x1b5;const _0x430ec6=_0x430e();let _0x117cf7=_0x430ec6[_0x5e3bfe];return _0x117cf7;}import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x67bd94=_0x117c,_0x2c4bb7={'zuoNY':function(_0x5da6e4){return _0x5da6e4();},'BHeEc':'config.json'};return join(_0x2c4bb7[_0x67bd94(0x1c5)](getRangerDir),_0x2c4bb7['BHeEc']);}export async function loadRangerConfig(){const _0x4b5a83=_0x117c,_0x55c82c={'uqqoD':function(_0x1672a9){return _0x1672a9();},'FiMBN':function(_0x3955b3,_0x554f3e){return _0x3955b3(_0x554f3e);},'GtFWM':function(_0x2f23e6,_0x1b04ec,_0x31174e){return _0x2f23e6(_0x1b04ec,_0x31174e);},'FlAEU':function(_0x2f12ab,_0x5207ad){return _0x2f12ab!==_0x5207ad;},'WuoyJ':_0x4b5a83(0x1ca),'JorDp':function(_0xce27f5,_0x39d75e){return _0xce27f5===_0x39d75e;},'iYnkA':function(_0x515939,_0x3e3228){return _0x515939 instanceof _0x3e3228;},'VtCNQ':function(_0x11da8e,_0x5a4d9e){return _0x11da8e(_0x5a4d9e);}},_0x44bad1=_0x55c82c[_0x4b5a83(0x1be)](getRangerConfigPath);if(!_0x55c82c['FiMBN'](existsSync,_0x44bad1))return{};try{const _0x3de940=await _0x55c82c['GtFWM'](readFile,_0x44bad1,_0x4b5a83(0x1c4)),_0x1037cb=JSON[_0x4b5a83(0x1c8)](_0x3de940);if(!_0x1037cb||_0x55c82c[_0x4b5a83(0x1b5)](typeof _0x1037cb,_0x55c82c['WuoyJ'])||Array[_0x4b5a83(0x1bc)](_0x1037cb))return{};const _0x3ce412={},_0x1b3be6=_0x1037cb[_0x4b5a83(0x1bd)];return _0x55c82c[_0x4b5a83(0x1c9)](typeof _0x1b3be6,_0x4b5a83(0x1ba))&&(_0x3ce412[_0x4b5a83(0x1bd)]=_0x1b3be6),_0x3ce412;}catch(_0x460f7a){const _0x1d399f=_0x55c82c[_0x4b5a83(0x1b9)](_0x460f7a,Error)?_0x460f7a['message']:_0x55c82c['VtCNQ'](String,_0x460f7a);return console[_0x4b5a83(0x1c1)](_0x4b5a83(0x1bb)+_0x44bad1+':\x20'+_0x1d399f),{};}}function _0x430e(){const _0x29a5d4=['warn','32520NTNpkA','3933TtNWqA','utf-8','zuoNY','8594264xRSAZD','10trqAXS','parse','JorDp','object','5435220PNQDOA','FlAEU','1ZBGUjt','29577080YGvEPq','405416WStsUj','iYnkA','string','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','isArray','model','uqqoD','3076101TouhOJ','890426SbKFJT'];_0x430e=function(){return _0x29a5d4;};return _0x430e();}
@@ -1 +1 @@
1
- function _0x2fab(){const _0xf38434=['468vQicRK','39645OBXXcM','34328lOvJPF','523512akwDut','132FBFAWb','root','8MYZsuv','uFXcx','gmuEd','902684ZwekBp','.git','22nGFdSg','1525707rhOvQo','vdJnX','398790czTjYz','RjKbz','100odhYgj','rtFCH','IJBop','5153ULnPfm','XjUKS','.ranger'];_0x2fab=function(){return _0xf38434;};return _0x2fab();}(function(_0x494172,_0x4bd741){const _0x1daa4a=_0x5163,_0x12e189=_0x494172();while(!![]){try{const _0x46a208=-parseInt(_0x1daa4a(0x112))/0x1*(parseInt(_0x1daa4a(0x10a))/0x2)+-parseInt(_0x1daa4a(0x10b))/0x3+parseInt(_0x1daa4a(0x108))/0x4+parseInt(_0x1daa4a(0x100))/0x5*(parseInt(_0x1daa4a(0xff))/0x6)+parseInt(_0x1daa4a(0x101))/0x7*(-parseInt(_0x1daa4a(0x105))/0x8)+parseInt(_0x1daa4a(0x10d))/0x9*(-parseInt(_0x1daa4a(0x10f))/0xa)+parseInt(_0x1daa4a(0x102))/0xb*(parseInt(_0x1daa4a(0x103))/0xc);if(_0x46a208===_0x4bd741)break;else _0x12e189['push'](_0x12e189['shift']());}catch(_0x92d5dd){_0x12e189['push'](_0x12e189['shift']());}}}(_0x2fab,0x56855));import{dirname,join,parse}from'path';import{existsSync}from'fs';function _0x5163(_0x184225,_0x520277){_0x184225=_0x184225-0xff;const _0x2fab0c=_0x2fab();let _0x516365=_0x2fab0c[_0x184225];return _0x516365;}import{homedir}from'os';export function getRangerRoot(){const _0x866094=_0x5163,_0x3f9f20={'RjKbz':function(_0x45e108,_0x19c05e){return _0x45e108(_0x19c05e);},'zianc':function(_0x17215a,_0x38ac4b){return _0x17215a!==_0x38ac4b;},'QKriO':function(_0x8089bf,_0x49caea){return _0x8089bf(_0x49caea);},'fDUiz':function(_0x3fa7b1,_0x5b6c89,_0x12893d){return _0x3fa7b1(_0x5b6c89,_0x12893d);},'XjUKS':'.ranger','rtFCH':function(_0x29623f,_0x2a3d5b){return _0x29623f(_0x2a3d5b);}};let _0x25fadd=process['cwd']();const _0x25e8e4=_0x3f9f20[_0x866094(0x10e)](parse,_0x25fadd)[_0x866094(0x104)];while(_0x3f9f20['zianc'](_0x25fadd,_0x25e8e4)){if(_0x3f9f20['QKriO'](existsSync,_0x3f9f20['fDUiz'](join,_0x25fadd,_0x3f9f20[_0x866094(0x113)])))return _0x25fadd;_0x25fadd=dirname(_0x25fadd);}if(_0x3f9f20[_0x866094(0x110)](existsSync,join(_0x25e8e4,_0x3f9f20['XjUKS'])))return _0x25e8e4;const _0x885cbf=findGitRoot();if(_0x885cbf)return _0x885cbf;return process['cwd']();}export function getRangerDir(){const _0x21de5b=_0x5163,_0x44a674={'vdJnX':function(_0xa00ac5){return _0xa00ac5();}};return join(_0x44a674[_0x21de5b(0x10c)](getRangerRoot),_0x21de5b(0x114));}export function findGitRoot(){const _0x17ff3e=_0x5163,_0x2e1623={'UooUb':function(_0xe51672,_0x3ca893){return _0xe51672(_0x3ca893);},'CPSEj':function(_0x4af735,_0x435c90){return _0x4af735(_0x435c90);},'IJBop':function(_0x36d229,_0x5a58ea){return _0x36d229(_0x5a58ea);},'essQb':'.git'};let _0x37218a=process['cwd']();const _0x3987a4=_0x2e1623['UooUb'](parse,_0x37218a)['root'];while(_0x37218a!==_0x3987a4){if(_0x2e1623['CPSEj'](existsSync,join(_0x37218a,_0x17ff3e(0x109))))return _0x37218a;_0x37218a=dirname(_0x37218a);}if(_0x2e1623[_0x17ff3e(0x111)](existsSync,join(_0x3987a4,_0x2e1623['essQb'])))return _0x3987a4;return null;}export function getRangerHomeDir(){const _0x45baf0=_0x5163,_0x29c98f={'uFXcx':function(_0x47230f,_0x4fb981,_0x187578){return _0x47230f(_0x4fb981,_0x187578);},'gmuEd':function(_0x1ae4a5){return _0x1ae4a5();}};return _0x29c98f[_0x45baf0(0x106)](join,_0x29c98f[_0x45baf0(0x107)](homedir),_0x45baf0(0x114));}
1
+ (function(_0x424fe0,_0x3e9117){const _0xb83a99=_0x227c,_0x18b75a=_0x424fe0();while(!![]){try{const _0x3ba6e8=parseInt(_0xb83a99(0xf3))/0x1+-parseInt(_0xb83a99(0xed))/0x2+parseInt(_0xb83a99(0xe7))/0x3+parseInt(_0xb83a99(0xe9))/0x4*(parseInt(_0xb83a99(0xe8))/0x5)+parseInt(_0xb83a99(0xf2))/0x6*(-parseInt(_0xb83a99(0xf1))/0x7)+parseInt(_0xb83a99(0xf0))/0x8*(-parseInt(_0xb83a99(0xe4))/0x9)+-parseInt(_0xb83a99(0xeb))/0xa;if(_0x3ba6e8===_0x3e9117)break;else _0x18b75a['push'](_0x18b75a['shift']());}catch(_0x40964e){_0x18b75a['push'](_0x18b75a['shift']());}}}(_0x3edd,0xdba3a));function _0x227c(_0x251bea,_0x11e1cf){_0x251bea=_0x251bea-0xdf;const _0x3eddb5=_0x3edd();let _0x227c3e=_0x3eddb5[_0x251bea];return _0x227c3e;}import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x112f56=_0x227c,_0x4b385c={'fqKej':function(_0x45a62b,_0x1c3348){return _0x45a62b!==_0x1c3348;},'FAXPF':function(_0x1a1daf,_0x279717,_0x1e70e7){return _0x1a1daf(_0x279717,_0x1e70e7);},'xrhHJ':_0x112f56(0xe6)};let _0x229276=process[_0x112f56(0xdf)]();const _0x54660b=parse(_0x229276)['root'];while(_0x4b385c[_0x112f56(0xf5)](_0x229276,_0x54660b)){if(existsSync(_0x4b385c[_0x112f56(0xf6)](join,_0x229276,_0x4b385c[_0x112f56(0xe0)])))return _0x229276;_0x229276=dirname(_0x229276);}if(existsSync(join(_0x54660b,_0x4b385c[_0x112f56(0xe0)])))return _0x54660b;const _0x48ca01=findGitRoot();if(_0x48ca01)return _0x48ca01;return process[_0x112f56(0xdf)]();}export function getRangerDir(){const _0x5aa5ea=_0x227c,_0x36f5aa={'CItCo':function(_0x33faae){return _0x33faae();},'GZXjt':'.ranger'};return join(_0x36f5aa['CItCo'](getRangerRoot),_0x36f5aa[_0x5aa5ea(0xee)]);}function _0x3edd(){const _0x1eca99=['ZLrJH','35576WewcED','2282DGtVls','14088nxzIoM','801676UskgZE','aPsJu','fqKej','FAXPF','cwd','xrhHJ','ookpk','rGSZk','xUkTf','99cuasJe','root','.ranger','4059981cECtKU','2168195pjzJar','8AwvwoQ','.git','8221620mMbsbM','YJiLJ','972224EgoCUJ','GZXjt'];_0x3edd=function(){return _0x1eca99;};return _0x3edd();}export function findGitRoot(){const _0xd28b3c=_0x227c,_0xf03e56={'ookpk':function(_0x5025e4,_0x5ba664){return _0x5025e4!==_0x5ba664;},'ZLrJH':function(_0x35fea4,_0x1f0867){return _0x35fea4(_0x1f0867);},'YJiLJ':function(_0xcc8cbe,_0x13b535,_0x574672){return _0xcc8cbe(_0x13b535,_0x574672);},'xUkTf':'.git'};let _0x3264e6=process[_0xd28b3c(0xdf)]();const _0xeb32d1=parse(_0x3264e6)[_0xd28b3c(0xe5)];while(_0xf03e56[_0xd28b3c(0xe1)](_0x3264e6,_0xeb32d1)){if(existsSync(join(_0x3264e6,_0xd28b3c(0xea))))return _0x3264e6;_0x3264e6=dirname(_0x3264e6);}if(_0xf03e56[_0xd28b3c(0xef)](existsSync,_0xf03e56[_0xd28b3c(0xec)](join,_0xeb32d1,_0xf03e56[_0xd28b3c(0xe3)])))return _0xeb32d1;return null;}export function getRangerHomeDir(){const _0x9a2d40=_0x227c,_0x1893e1={'aPsJu':function(_0xa61946){return _0xa61946();},'rGSZk':'.ranger'};return join(_0x1893e1[_0x9a2d40(0xf4)](homedir),_0x1893e1[_0x9a2d40(0xe2)]);}
@@ -1 +1 @@
1
- (function(_0x50704e,_0x4ef7d7){const _0x1c79ad=_0x29d8,_0x278126=_0x50704e();while(!![]){try{const _0x255fe4=parseInt(_0x1c79ad(0x104))/0x1+-parseInt(_0x1c79ad(0x10c))/0x2+-parseInt(_0x1c79ad(0x105))/0x3+-parseInt(_0x1c79ad(0x103))/0x4*(-parseInt(_0x1c79ad(0x10d))/0x5)+-parseInt(_0x1c79ad(0x10b))/0x6*(-parseInt(_0x1c79ad(0x109))/0x7)+-parseInt(_0x1c79ad(0x101))/0x8+parseInt(_0x1c79ad(0x107))/0x9;if(_0x255fe4===_0x4ef7d7)break;else _0x278126['push'](_0x278126['shift']());}catch(_0x1fe7f6){_0x278126['push'](_0x278126['shift']());}}}(_0x44fd,0x51cc3));function _0x29d8(_0x203d11,_0x2427de){_0x203d11=_0x203d11-0x100;const _0x44fd36=_0x44fd();let _0x29d864=_0x44fd36[_0x203d11];return _0x29d864;}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x44e984,_0x4b20fa){const _0x373866=_0x29d8,_0x1c02cd={'IdIgJ':function(_0x555ddf){return _0x555ddf();},'qPoHV':function(_0x429bd0,_0x3b62e8){return _0x429bd0(_0x3b62e8);},'HZKYe':function(_0x33ee76,_0x4fd467){return _0x33ee76*_0x4fd467;},'oRJCw':function(_0x3acf18,_0x591be5){return _0x3acf18+_0x591be5;}},_0xdf8d12=_0x4b20fa?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x3f7ca1=_0x4b20fa?.[_0x373866(0x108)]??DEFAULT_BASE_DELAY_MS;let _0x534517;for(let _0xbde9e5=0x0;_0xbde9e5<=_0xdf8d12;_0xbde9e5++){try{return await _0x1c02cd[_0x373866(0x100)](_0x44e984);}catch(_0x3d18c4){_0x534517=_0x3d18c4 instanceof Error?_0x3d18c4:new Error(_0x1c02cd[_0x373866(0x10e)](String,_0x3d18c4));if(_0xbde9e5<_0xdf8d12){const _0x49c908=_0x1c02cd[_0x373866(0x106)](_0x3f7ca1,Math[_0x373866(0x10a)](0x2,_0xbde9e5));_0x4b20fa?.['label']&&console['error'](_0x4b20fa['label']+'\x20failed\x20(attempt\x20'+_0x1c02cd['oRJCw'](_0xbde9e5,0x1)+'/'+(_0xdf8d12+0x1)+_0x373866(0x102)+_0x49c908+'ms...'),await new Promise(_0x1e981e=>setTimeout(_0x1e981e,_0x49c908));}}}throw _0x534517;}function _0x44fd(){const _0x4fdc3a=['baseDelayMs','686AgpJaO','pow','38604zcVWeF','1312844RdmvgF','26515koQNwK','qPoHV','IdIgJ','164296GkLoGH','),\x20retrying\x20in\x20','144FParWN','208475sYcXlK','1001691dEybkW','HZKYe','2843856zExWeN'];_0x44fd=function(){return _0x4fdc3a;};return _0x44fd();}
1
+ function _0x373e(_0x3a169c,_0x385807){_0x3a169c=_0x3a169c-0xf9;const _0x1dff78=_0x1dff();let _0x373e60=_0x1dff78[_0x3a169c];return _0x373e60;}(function(_0x4980a9,_0xc2a748){const _0x196a66=_0x373e,_0x2929b1=_0x4980a9();while(!![]){try{const _0x1d1384=-parseInt(_0x196a66(0xfc))/0x1*(parseInt(_0x196a66(0xfe))/0x2)+parseInt(_0x196a66(0xff))/0x3+parseInt(_0x196a66(0x106))/0x4*(-parseInt(_0x196a66(0x105))/0x5)+-parseInt(_0x196a66(0xf9))/0x6+parseInt(_0x196a66(0xfa))/0x7+-parseInt(_0x196a66(0x103))/0x8*(-parseInt(_0x196a66(0xfd))/0x9)+-parseInt(_0x196a66(0x100))/0xa*(parseInt(_0x196a66(0x104))/0xb);if(_0x1d1384===_0xc2a748)break;else _0x2929b1['push'](_0x2929b1['shift']());}catch(_0x52b957){_0x2929b1['push'](_0x2929b1['shift']());}}}(_0x1dff,0x89419));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x1dff(){const _0x38f6e7=['5812504JgWlRf','77nxTSnZ','45zMGSBw','156192XOewAh','3331530DWsozq','6127478KVbLNh','label','6454xxTMyb','9IKuWlK','174iHeEjO','1498935GEheHf','101680sElSVb','ms...','\x20failed\x20(attempt\x20'];_0x1dff=function(){return _0x38f6e7;};return _0x1dff();}export async function withRetry(_0x2cb9a8,_0x293fe0){const _0xd0a630=_0x373e,_0x35306f={'JCUwl':function(_0x287631,_0x1913f5){return _0x287631<=_0x1913f5;},'mQblG':function(_0x21b699,_0x10e61d){return _0x21b699<_0x10e61d;},'SGouD':function(_0x1403e0,_0x281899){return _0x1403e0*_0x281899;},'yvonO':function(_0x40599a,_0x524a98){return _0x40599a+_0x524a98;}},_0x32c01c=_0x293fe0?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x4eebb9=_0x293fe0?.['baseDelayMs']??DEFAULT_BASE_DELAY_MS;let _0x179ae2;for(let _0x1e5eb4=0x0;_0x35306f['JCUwl'](_0x1e5eb4,_0x32c01c);_0x1e5eb4++){try{return await _0x2cb9a8();}catch(_0x5270c6){_0x179ae2=_0x5270c6 instanceof Error?_0x5270c6:new Error(String(_0x5270c6));if(_0x35306f['mQblG'](_0x1e5eb4,_0x32c01c)){const _0x15323e=_0x35306f['SGouD'](_0x4eebb9,Math['pow'](0x2,_0x1e5eb4));_0x293fe0?.[_0xd0a630(0xfb)]&&console['error'](_0x293fe0['label']+_0xd0a630(0x102)+(_0x1e5eb4+0x1)+'/'+_0x35306f['yvonO'](_0x32c01c,0x1)+'),\x20retrying\x20in\x20'+_0x15323e+_0xd0a630(0x101)),await new Promise(_0x3985e7=>setTimeout(_0x3985e7,_0x15323e));}}}throw _0x179ae2;}
@@ -1 +1 @@
1
- const _0x5d4704=_0x3d47;(function(_0x1520b6,_0x1bfbd3){const _0x26a199=_0x3d47,_0x383c13=_0x1520b6();while(!![]){try{const _0x2580f3=parseInt(_0x26a199(0x13d))/0x1*(parseInt(_0x26a199(0x166))/0x2)+parseInt(_0x26a199(0x152))/0x3+parseInt(_0x26a199(0x15f))/0x4*(parseInt(_0x26a199(0x13b))/0x5)+parseInt(_0x26a199(0x147))/0x6+parseInt(_0x26a199(0x15d))/0x7*(-parseInt(_0x26a199(0x169))/0x8)+parseInt(_0x26a199(0x146))/0x9+parseInt(_0x26a199(0x165))/0xa*(-parseInt(_0x26a199(0x156))/0xb);if(_0x2580f3===_0x1bfbd3)break;else _0x383c13['push'](_0x383c13['shift']());}catch(_0x389da6){_0x383c13['push'](_0x383c13['shift']());}}}(_0xda68,0x3d316));import*as _0x49ec3a from'fs';import*as _0x3a596b from'path';import*as _0x14f13d from'os';import{execSync}from'child_process';const CACHE_FILE=_0x3a596b[_0x5d4704(0x15e)](_0x14f13d['homedir'](),_0x5d4704(0x13c),_0x5d4704(0x15c));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x38e44f=_0x5d4704,_0x48fa5c={'tULmI':'utf-8','QGdGL':function(_0x2e47a0){return _0x2e47a0();}};try{if(_0x49ec3a[_0x38e44f(0x153)](CACHE_FILE)){const _0x5bdbd2=JSON['parse'](_0x49ec3a['readFileSync'](CACHE_FILE,_0x48fa5c['tULmI']));return{'version':0x3,'sessions':_0x5bdbd2[_0x38e44f(0x14b)]||{},'branches':_0x5bdbd2['branches']||{},'lastEnabledSessionClearedAt':_0x5bdbd2['lastEnabledSessionClearedAt']};}}catch{}return _0x48fa5c[_0x38e44f(0x167)](createEmptyCache);}function _0xda68(){const _0x456500=['1815228NUTZzX','QUDRg','htamr','pipe','sessions','xZGDF','lastStopReminderAt','wFpEq','featureId','lastEnabledSessionClearedAt','trim','689541DlBkXd','existsSync','prompted','pMVqU','11asKrOe','tyFFX','now','gCHYb','branches','FILof','.ranger_cache.json','999411QeZXMn','join','1268vBBiLW','main','utf-8','enabled','ZMUIC','gUYXF','8174980ZlLgkn','474766JISDlb','QGdGL','cThJk','16vOTKUf','1030fcwfsb','.claude','2kILgxm','CJegF','IlRbB','aveQN','rLYje','TIMff','git\x20rev-parse\x20--abbrev-ref\x20HEAD','zAFfS','master','2531133IKwGLy'];_0xda68=function(){return _0x456500;};return _0xda68();}function _0x3d47(_0x3930ac,_0x36b001){_0x3930ac=_0x3930ac-0x13b;const _0xda68aa=_0xda68();let _0x3d476c=_0xda68aa[_0x3930ac];return _0x3d476c;}function saveCache(_0xd7f610){try{const _0x2ae428=_0x3a596b['dirname'](CACHE_FILE);!_0x49ec3a['existsSync'](_0x2ae428)&&_0x49ec3a['mkdirSync'](_0x2ae428,{'recursive':!![]}),_0x49ec3a['writeFileSync'](CACHE_FILE,JSON['stringify'](_0xd7f610,null,0x2));}catch{}}export function getCurrentBranch(){const _0x5c5a8c=_0x5d4704,_0xdc092b={'tIOYa':_0x5c5a8c(0x161),'TIMff':_0x5c5a8c(0x14a),'elrXQ':'HEAD'};try{const _0x34b71e=execSync(_0x5c5a8c(0x143),{'encoding':_0xdc092b['tIOYa'],'stdio':[_0xdc092b[_0x5c5a8c(0x142)],_0xdc092b[_0x5c5a8c(0x142)],_0xdc092b['TIMff']]})[_0x5c5a8c(0x151)]();if(!_0x34b71e||_0x34b71e===_0xdc092b['elrXQ'])return null;return _0x34b71e;}catch{return null;}}export function enableBranch(_0x4f5be1){const _0x2276f8=_0x5d4704,_0x4b1947={'ZvvkH':function(_0x5e2b50,_0x223078){return _0x5e2b50(_0x223078);}},_0x52b94c=loadCache();_0x52b94c[_0x2276f8(0x15a)][_0x4f5be1]=!![],_0x4b1947['ZvvkH'](saveCache,_0x52b94c);}export function disableBranch(_0x103fda){const _0x29e715={'dtCWu':function(_0x57566d){return _0x57566d();},'DnGID':function(_0x425545,_0x2701bc){return _0x425545(_0x2701bc);}},_0x1597d6=_0x29e715['dtCWu'](loadCache);delete _0x1597d6['branches'][_0x103fda],_0x29e715['DnGID'](saveCache,_0x1597d6);}export function isBranchEnabled(_0x12775e){const _0x3db233=_0x5d4704,_0x3faa51={'jqAxL':function(_0x4dadac,_0x1625d1){return _0x4dadac===_0x1625d1;}},_0xbd9bbd=loadCache();return _0x3faa51['jqAxL'](_0xbd9bbd[_0x3db233(0x15a)][_0x12775e],!![]);}function getOrCreateSession(_0x34491a,_0x159739){const _0x151e69=_0x5d4704;return!_0x34491a['sessions'][_0x159739]&&(_0x34491a[_0x151e69(0x14b)][_0x159739]={}),_0x34491a['sessions'][_0x159739];}export function enableSession(_0xbd4c3c){const _0xb3ceb5=_0x5d4704,_0x51a3b5={'FILof':function(_0x33b3c4){return _0x33b3c4();},'aveQN':function(_0x4c2d83,_0x44cd87){return _0x4c2d83!==_0x44cd87;},'pMVqU':function(_0x13119b,_0x4fa549){return _0x13119b(_0x4fa549);}},_0x44a176=_0x51a3b5[_0xb3ceb5(0x15b)](loadCache),_0x2599f7=getOrCreateSession(_0x44a176,_0xbd4c3c);_0x2599f7[_0xb3ceb5(0x162)]=!![];const _0x16b107=_0x51a3b5['FILof'](getCurrentBranch);_0x16b107&&_0x51a3b5[_0xb3ceb5(0x140)](_0x16b107,'main')&&_0x51a3b5['aveQN'](_0x16b107,_0xb3ceb5(0x145))&&(_0x44a176[_0xb3ceb5(0x15a)][_0x16b107]=!![],_0x2599f7['currentBranch']=_0x16b107),_0x51a3b5[_0xb3ceb5(0x155)](saveCache,_0x44a176);}export function isSessionEnabled(_0x9ceef0){const _0x51e19f=_0x5d4704,_0x471518={'UjDUp':function(_0x4af69e,_0xbbfae9){return _0x4af69e===_0xbbfae9;},'QUDRg':'master','FIHuH':function(_0x24a151,_0x21e20c){return _0x24a151===_0x21e20c;},'xZGDF':function(_0x59a04b,_0x2da13e){return _0x59a04b||_0x2da13e;}},_0x2e0e42=loadCache(),_0x336cb7=getCurrentBranch();if(!_0x336cb7||_0x336cb7===_0x51e19f(0x160)||_0x471518['UjDUp'](_0x336cb7,_0x471518[_0x51e19f(0x148)]))return _0x2e0e42['sessions'][_0x9ceef0]?.['enabled']===!![];const _0x4c7af7=_0x2e0e42[_0x51e19f(0x15a)][_0x336cb7]===!![],_0x233f40=_0x471518['FIHuH'](_0x2e0e42['sessions'][_0x9ceef0]?.['enabled'],!![]);return _0x471518[_0x51e19f(0x14c)](_0x4c7af7,_0x233f40);}export function disableSession(_0x1e7002){const _0x147ddc=_0x5d4704,_0x1e3727=loadCache(),_0x2e4586=getOrCreateSession(_0x1e3727,_0x1e7002);_0x2e4586[_0x147ddc(0x162)]=![],saveCache(_0x1e3727);}export function updateBranchTracking(_0x39d199){const _0x1ac070=_0x5d4704,_0x10356d={'IlRbB':function(_0x118fbc){return _0x118fbc();},'tyFFX':function(_0x2ef187,_0x1bcebc){return _0x2ef187===_0x1bcebc;},'gCHYb':'main','rLYje':function(_0x485872,_0xaca9cb){return _0x485872(_0xaca9cb);}},_0x1da79e=_0x10356d[_0x1ac070(0x13f)](loadCache),_0xcee4c4=_0x1da79e['sessions'][_0x39d199];if(!_0xcee4c4?.[_0x1ac070(0x162)])return;const _0x350792=getCurrentBranch();if(!_0x350792||_0x10356d['tyFFX'](_0x350792,_0x10356d[_0x1ac070(0x159)])||_0x10356d[_0x1ac070(0x157)](_0x350792,'master'))return;_0xcee4c4['currentBranch']!==_0x350792&&(_0x1da79e[_0x1ac070(0x15a)][_0x350792]=!![],_0xcee4c4['currentBranch']=_0x350792,_0x10356d[_0x1ac070(0x141)](saveCache,_0x1da79e));}export function initBranchTracking(_0x125636){const _0x4b5a3d=_0x5d4704,_0x3318f0={'ctKJB':'main','vLmfs':'master','cThJk':function(_0x1e0d76,_0x2d40f2){return _0x1e0d76===_0x2d40f2;}},_0xa2f7a9=loadCache(),_0xeb5f8c=getCurrentBranch();if(!_0xeb5f8c||_0xeb5f8c===_0x3318f0['ctKJB']||_0xeb5f8c===_0x3318f0['vLmfs'])return;if(_0x3318f0[_0x4b5a3d(0x168)](_0xa2f7a9['branches'][_0xeb5f8c],!![])){const _0x44b5da=getOrCreateSession(_0xa2f7a9,_0x125636);_0x44b5da[_0x4b5a3d(0x162)]=!![],_0x44b5da['currentBranch']=_0xeb5f8c,saveCache(_0xa2f7a9);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x136593){const _0x1d6f5c=_0x5d4704,_0x322fdd={'ZMUIC':function(_0x45ee34){return _0x45ee34();}},_0x1bfbff=_0x322fdd[_0x1d6f5c(0x163)](loadCache),_0x302a2c=_0x1bfbff['sessions'][_0x136593];_0x302a2c?.[_0x1d6f5c(0x162)]&&(_0x1bfbff[_0x1d6f5c(0x150)]=Date['now'](),saveCache(_0x1bfbff));}export function shouldAutoEnableAfterClear(_0x251877){const _0x462033=_0x5d4704,_0x389946={'htamr':function(_0x3745de,_0x32769c){return _0x3745de-_0x32769c;},'RanES':function(_0x4b27c9,_0x4a93c2){return _0x4b27c9<=_0x4a93c2;}};if(_0x251877!=='clear')return![];const _0x1a6a7a=loadCache(),_0x3079eb=_0x1a6a7a[_0x462033(0x150)];if(!_0x3079eb)return![];const _0x5b21b8=_0x389946[_0x462033(0x149)](Date['now'](),_0x3079eb);return _0x389946['RanES'](_0x5b21b8,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0xc83e03){const _0x33a38c=_0x5d4704,_0x24c057={'TOYTo':function(_0x4e9e9a,_0x4b30e7){return _0x4e9e9a!==_0x4b30e7;},'pCZhx':function(_0x4eecdd,_0xc96173){return _0x4eecdd(_0xc96173);}},_0x31e9b7=loadCache(),_0x17526b=getOrCreateSession(_0x31e9b7,_0xc83e03);_0x17526b['enabled']=!![];const _0x140c5f=getCurrentBranch();_0x140c5f&&_0x24c057['TOYTo'](_0x140c5f,_0x33a38c(0x160))&&_0x140c5f!==_0x33a38c(0x145)&&(_0x17526b['currentBranch']=_0x140c5f),delete _0x31e9b7['lastEnabledSessionClearedAt'],_0x24c057['pCZhx'](saveCache,_0x31e9b7);}export function registerSession(_0x5ce388,_0xdf9758){const _0x5e7a8e={'HCHOe':function(_0x5c49cc){return _0x5c49cc();},'KnMQV':function(_0x39c056,_0x365afe){return _0x39c056(_0x365afe);}},_0x1d9839=_0x5e7a8e['HCHOe'](loadCache),_0x558ab1=getOrCreateSession(_0x1d9839,_0x5ce388);_0x558ab1['featureId']=_0xdf9758,_0x558ab1['registeredAt']=new Date()['toISOString'](),_0x5e7a8e['KnMQV'](saveCache,_0x1d9839);}export function getSessionEntry(_0x208acf){const _0x302f2f=_0x5d4704,_0x265056=loadCache(),_0x33f6b8=_0x265056['sessions'][_0x208acf];if(_0x33f6b8?.['featureId']&&_0x33f6b8?.['registeredAt'])return{'featureId':_0x33f6b8[_0x302f2f(0x14f)],'registeredAt':_0x33f6b8['registeredAt']};return null;}export function unregisterSession(_0x3b69e0){const _0x6b9cb0=_0x5d4704,_0x37326e={'FaaBJ':function(_0x56dda2){return _0x56dda2();},'CJegF':function(_0x5a0415,_0x5072ee){return _0x5a0415(_0x5072ee);}},_0x237509=_0x37326e['FaaBJ'](loadCache),_0x4a96e4=_0x237509[_0x6b9cb0(0x14b)][_0x3b69e0];_0x4a96e4&&(delete _0x4a96e4['featureId'],delete _0x4a96e4['registeredAt'],_0x37326e[_0x6b9cb0(0x13e)](saveCache,_0x237509));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x183452){const _0x45ebf4=_0x5d4704,_0x2de09e={'gUYXF':function(_0x19c527){return _0x19c527();},'TOKoc':function(_0x4cb454,_0x22bf4e){return _0x4cb454>=_0x22bf4e;},'bloEg':function(_0x52834e,_0x243286){return _0x52834e(_0x243286);}},_0x56ffdb=_0x2de09e[_0x45ebf4(0x164)](loadCache),_0xe9df8f=getOrCreateSession(_0x56ffdb,_0x183452),_0x5983ae=_0xe9df8f['lastPlanReminderAt']||0x0,_0xbabb96=Date['now']();if(_0x2de09e['TOKoc'](_0xbabb96-_0x5983ae,PLAN_REMINDER_INTERVAL_MS))return _0xe9df8f['lastPlanReminderAt']=_0xbabb96,_0x2de09e['bloEg'](saveCache,_0x56ffdb),!![];return![];}export function shouldShowStopReminder(_0x2c6c0a){const _0x5eae3b=_0x5d4704,_0x58d0a9={'NwVBi':function(_0xf42f45,_0x531016){return _0xf42f45-_0x531016;},'zAFfS':function(_0x1405a5,_0x6088d5){return _0x1405a5(_0x6088d5);}},_0x1a4539=loadCache(),_0x29f7e1=getOrCreateSession(_0x1a4539,_0x2c6c0a),_0x1d6ebc=_0x29f7e1[_0x5eae3b(0x14d)]||0x0,_0x31f907=Date[_0x5eae3b(0x158)]();if(_0x58d0a9['NwVBi'](_0x31f907,_0x1d6ebc)>=STOP_REMINDER_INTERVAL_MS)return _0x29f7e1['lastStopReminderAt']=_0x31f907,_0x58d0a9[_0x5eae3b(0x144)](saveCache,_0x1a4539),!![];return![];}export function hasSessionBeenPrompted(_0x1ee6f1){const _0x1593cf=_0x5d4704,_0x17eb57={'wFpEq':function(_0x57253b){return _0x57253b();}},_0x25786d=_0x17eb57[_0x1593cf(0x14e)](loadCache);return _0x25786d['sessions'][_0x1ee6f1]?.[_0x1593cf(0x154)]===!![];}export function markSessionPrompted(_0xc1102){const _0x1dad25=loadCache(),_0x526e2c=getOrCreateSession(_0x1dad25,_0xc1102);_0x526e2c['prompted']=!![],saveCache(_0x1dad25);}export function getCacheFile(){return CACHE_FILE;}
1
+ (function(_0xb68f5c,_0x4bf02e){const _0x57363a=_0xb547,_0xfc208e=_0xb68f5c();while(!![]){try{const _0xd5e899=parseInt(_0x57363a(0x11c))/0x1*(parseInt(_0x57363a(0x12b))/0x2)+-parseInt(_0x57363a(0x12e))/0x3+parseInt(_0x57363a(0x131))/0x4*(-parseInt(_0x57363a(0x14e))/0x5)+parseInt(_0x57363a(0x120))/0x6*(parseInt(_0x57363a(0x14a))/0x7)+-parseInt(_0x57363a(0x139))/0x8*(-parseInt(_0x57363a(0x141))/0x9)+parseInt(_0x57363a(0x14f))/0xa*(parseInt(_0x57363a(0x145))/0xb)+parseInt(_0x57363a(0x11d))/0xc*(-parseInt(_0x57363a(0x14c))/0xd);if(_0xd5e899===_0x4bf02e)break;else _0xfc208e['push'](_0xfc208e['shift']());}catch(_0x4bc179){_0xfc208e['push'](_0xfc208e['shift']());}}}(_0x1b7f,0xd2abd));import*as _0x251069 from'fs';import*as _0x1bba8b from'path';import*as _0x537558 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x1bba8b['join'](_0x537558['homedir'](),'.claude','.ranger_cache.json');function _0xb547(_0x52fa5a,_0x530ed2){_0x52fa5a=_0x52fa5a-0x11b;const _0x1b7f89=_0x1b7f();let _0xb54746=_0x1b7f89[_0x52fa5a];return _0xb54746;}function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x5e3691=_0xb547,_0x340ee1={'XXtqP':function(_0x1f246c){return _0x1f246c();}};try{if(_0x251069[_0x5e3691(0x148)](CACHE_FILE)){const _0x564275=JSON['parse'](_0x251069[_0x5e3691(0x12f)](CACHE_FILE,_0x5e3691(0x149)));return{'version':0x3,'sessions':_0x564275[_0x5e3691(0x123)]||{},'branches':_0x564275[_0x5e3691(0x150)]||{},'lastEnabledSessionClearedAt':_0x564275[_0x5e3691(0x136)]};}}catch{}return _0x340ee1['XXtqP'](createEmptyCache);}function saveCache(_0x3046e9){const _0x367b0d=_0xb547;try{const _0xc075cc=_0x1bba8b['dirname'](CACHE_FILE);!_0x251069[_0x367b0d(0x148)](_0xc075cc)&&_0x251069[_0x367b0d(0x11e)](_0xc075cc,{'recursive':!![]}),_0x251069['writeFileSync'](CACHE_FILE,JSON[_0x367b0d(0x122)](_0x3046e9,null,0x2));}catch{}}export function getCurrentBranch(){const _0x22dd4c=_0xb547,_0x1d4450={'heFzq':function(_0x36b9dd,_0x4f246e,_0x58f999){return _0x36b9dd(_0x4f246e,_0x58f999);},'cZbbs':'utf-8','CtZzg':'pipe'};try{const _0x49e6ff=_0x1d4450['heFzq'](execSync,_0x22dd4c(0x144),{'encoding':_0x1d4450[_0x22dd4c(0x12a)],'stdio':['pipe',_0x1d4450['CtZzg'],_0x22dd4c(0x135)]})[_0x22dd4c(0x13c)]();if(!_0x49e6ff||_0x49e6ff==='HEAD')return null;return _0x49e6ff;}catch{return null;}}function _0x1b7f(){const _0x1b4d30=['4FwNUsq','IpJuc','WhKDj','4314414uEDycu','readFileSync','enabled','4NxHqjg','prompted','registeredAt','dJOSQ','pipe','lastEnabledSessionClearedAt','CnAuY','cXveT','8QMqpPc','naUjh','MqOys','trim','TNCaa','rGqbt','WKsEQ','now','4931505bNXkkB','lastPlanReminderAt','kfUFI','git\x20rev-parse\x20--abbrev-ref\x20HEAD','49753loRhPA','yuKpy','XIaGe','existsSync','utf-8','18242RFvcZy','currentBranch','26azVFbI','master','1576550zULisk','2900XuAQLq','branches','DOeIa','kdFaG','abkQO','IHCOg','597676XoZJVV','10950012PLUsMF','mkdirSync','dgmbs','3192MBbNfU','lastStopReminderAt','stringify','sessions','ZHdCh','hOiqV','main','bItji','featureId','aZdJk','cZbbs'];_0x1b7f=function(){return _0x1b4d30;};return _0x1b7f();}export function enableBranch(_0x496f21){const _0x253835=_0xb547,_0x1d4537={'abkQO':function(_0x3bba67){return _0x3bba67();},'dJOSQ':function(_0x13ff24,_0xc91922){return _0x13ff24(_0xc91922);}},_0x395d37=_0x1d4537[_0x253835(0x153)](loadCache);_0x395d37[_0x253835(0x150)][_0x496f21]=!![],_0x1d4537[_0x253835(0x134)](saveCache,_0x395d37);}export function disableBranch(_0xbf0022){const _0x30c234=_0xb547,_0x4645ce={'CfLZe':function(_0x2d1167,_0x5f2290){return _0x2d1167(_0x5f2290);}},_0x3c764b=loadCache();delete _0x3c764b[_0x30c234(0x150)][_0xbf0022],_0x4645ce['CfLZe'](saveCache,_0x3c764b);}export function isBranchEnabled(_0xb63fa8){const _0x1571e4=_0xb547,_0x20c385={'naUjh':function(_0x1a2e81,_0x5ecd47){return _0x1a2e81===_0x5ecd47;}},_0x44b6b9=loadCache();return _0x20c385[_0x1571e4(0x13a)](_0x44b6b9[_0x1571e4(0x150)][_0xb63fa8],!![]);}function getOrCreateSession(_0x4d643c,_0x3acc79){return!_0x4d643c['sessions'][_0x3acc79]&&(_0x4d643c['sessions'][_0x3acc79]={}),_0x4d643c['sessions'][_0x3acc79];}export function enableSession(_0x45693a){const _0x2e1c41=_0xb547,_0x1ab823={'ZHdCh':function(_0x10b291,_0x120bd2,_0x4d0047){return _0x10b291(_0x120bd2,_0x4d0047);},'yQsHg':function(_0x4e6851,_0x35ca68){return _0x4e6851!==_0x35ca68;}},_0x1faada=loadCache(),_0x11e53e=_0x1ab823[_0x2e1c41(0x124)](getOrCreateSession,_0x1faada,_0x45693a);_0x11e53e[_0x2e1c41(0x130)]=!![];const _0x4ae275=getCurrentBranch();_0x4ae275&&_0x1ab823['yQsHg'](_0x4ae275,'main')&&_0x1ab823['yQsHg'](_0x4ae275,'master')&&(_0x1faada[_0x2e1c41(0x150)][_0x4ae275]=!![],_0x11e53e['currentBranch']=_0x4ae275),saveCache(_0x1faada);}export function isSessionEnabled(_0x211350){const _0xf49431=_0xb547,_0x55effe={'yuKpy':function(_0x18c33a){return _0x18c33a();},'bItji':'main','IHCOg':function(_0x4b5955,_0x4495dd){return _0x4b5955===_0x4495dd;}},_0x4f948a=loadCache(),_0x384983=_0x55effe[_0xf49431(0x146)](getCurrentBranch);if(!_0x384983||_0x384983===_0x55effe[_0xf49431(0x127)]||_0x384983==='master')return _0x55effe['IHCOg'](_0x4f948a[_0xf49431(0x123)][_0x211350]?.[_0xf49431(0x130)],!![]);const _0x3a87cf=_0x4f948a['branches'][_0x384983]===!![],_0x1b3de2=_0x55effe[_0xf49431(0x11b)](_0x4f948a[_0xf49431(0x123)][_0x211350]?.[_0xf49431(0x130)],!![]);return _0x3a87cf||_0x1b3de2;}export function disableSession(_0x163fb4){const _0x541138=_0xb547,_0x2dfcc9={'rGqbt':function(_0x5e50d8){return _0x5e50d8();},'QbhFK':function(_0x127454,_0x576fbd){return _0x127454(_0x576fbd);}},_0x3fc0d8=_0x2dfcc9[_0x541138(0x13e)](loadCache),_0x1db8e6=getOrCreateSession(_0x3fc0d8,_0x163fb4);_0x1db8e6[_0x541138(0x130)]=![],_0x2dfcc9['QbhFK'](saveCache,_0x3fc0d8);}export function updateBranchTracking(_0x5e179a){const _0x405990=_0xb547,_0x4af3a6={'MqOys':function(_0x572693){return _0x572693();},'IpJuc':function(_0x5bd5b9,_0x5c3ce0){return _0x5bd5b9===_0x5c3ce0;},'xbwzO':_0x405990(0x14d),'GxzGr':function(_0x366f42,_0x894a8c){return _0x366f42!==_0x894a8c;}},_0x8f538d=_0x4af3a6[_0x405990(0x13b)](loadCache),_0x42f8a7=_0x8f538d[_0x405990(0x123)][_0x5e179a];if(!_0x42f8a7?.['enabled'])return;const _0x4354d5=_0x4af3a6[_0x405990(0x13b)](getCurrentBranch);if(!_0x4354d5||_0x4af3a6[_0x405990(0x12c)](_0x4354d5,_0x405990(0x126))||_0x4354d5===_0x4af3a6['xbwzO'])return;_0x4af3a6['GxzGr'](_0x42f8a7['currentBranch'],_0x4354d5)&&(_0x8f538d['branches'][_0x4354d5]=!![],_0x42f8a7['currentBranch']=_0x4354d5,saveCache(_0x8f538d));}export function initBranchTracking(_0x2957cc){const _0x135261=_0xb547,_0x5812e9={'dsJsC':function(_0x486cd2){return _0x486cd2();},'ywIKB':function(_0x366a2d,_0x525acb){return _0x366a2d===_0x525acb;},'twHnk':function(_0x3d49e1,_0x47f9ba){return _0x3d49e1(_0x47f9ba);}},_0x34d328=_0x5812e9['dsJsC'](loadCache),_0x5befac=_0x5812e9['dsJsC'](getCurrentBranch);if(!_0x5befac||_0x5812e9['ywIKB'](_0x5befac,_0x135261(0x126))||_0x5befac==='master')return;if(_0x34d328[_0x135261(0x150)][_0x5befac]===!![]){const _0x241d4f=getOrCreateSession(_0x34d328,_0x2957cc);_0x241d4f[_0x135261(0x130)]=!![],_0x241d4f[_0x135261(0x14b)]=_0x5befac,_0x5812e9['twHnk'](saveCache,_0x34d328);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x393afc){const _0x2174b1=_0xb547,_0x35423f={'ZevFJ':function(_0x3ea7bb){return _0x3ea7bb();},'WhKDj':function(_0x40f30a,_0x3f738a){return _0x40f30a(_0x3f738a);}},_0x422551=_0x35423f['ZevFJ'](loadCache),_0x25a72c=_0x422551['sessions'][_0x393afc];_0x25a72c?.['enabled']&&(_0x422551['lastEnabledSessionClearedAt']=Date[_0x2174b1(0x140)](),_0x35423f[_0x2174b1(0x12d)](saveCache,_0x422551));}export function shouldAutoEnableAfterClear(_0x1e7a4e){const _0x1a09a4=_0xb547,_0x55b1dd={'gxUYj':'clear','iBkGa':function(_0x39e0d6){return _0x39e0d6();}};if(_0x1e7a4e!==_0x55b1dd['gxUYj'])return![];const _0x42ede9=_0x55b1dd['iBkGa'](loadCache),_0x4efe96=_0x42ede9[_0x1a09a4(0x136)];if(!_0x4efe96)return![];const _0x3d4a08=Date['now']()-_0x4efe96;return _0x3d4a08<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x498013){const _0x541f18=_0xb547,_0x3612e7={'CnAuY':function(_0x5d3bf9){return _0x5d3bf9();},'hOiqV':function(_0x2bbdd6,_0x5f3d76,_0x182b78){return _0x2bbdd6(_0x5f3d76,_0x182b78);},'hqsFq':function(_0x3f99bd,_0x13887a){return _0x3f99bd!==_0x13887a;},'aZdJk':'master','kdFaG':function(_0x33e578,_0x244b9d){return _0x33e578(_0x244b9d);}},_0x414999=_0x3612e7[_0x541f18(0x137)](loadCache),_0x15ec1f=_0x3612e7[_0x541f18(0x125)](getOrCreateSession,_0x414999,_0x498013);_0x15ec1f['enabled']=!![];const _0x532451=getCurrentBranch();_0x532451&&_0x532451!==_0x541f18(0x126)&&_0x3612e7['hqsFq'](_0x532451,_0x3612e7[_0x541f18(0x129)])&&(_0x15ec1f[_0x541f18(0x14b)]=_0x532451),delete _0x414999['lastEnabledSessionClearedAt'],_0x3612e7[_0x541f18(0x152)](saveCache,_0x414999);}export function registerSession(_0x6496c9,_0x7b2b9e){const _0x520200=_0xb547,_0x2f08bd={'cXveT':function(_0x55fcc7){return _0x55fcc7();},'qWsoI':function(_0x67fb8e,_0x3936e1,_0xd512b9){return _0x67fb8e(_0x3936e1,_0xd512b9);},'XIaGe':function(_0x3ff9ed,_0x2cd1e4){return _0x3ff9ed(_0x2cd1e4);}},_0x2121a3=_0x2f08bd[_0x520200(0x138)](loadCache),_0x46e110=_0x2f08bd['qWsoI'](getOrCreateSession,_0x2121a3,_0x6496c9);_0x46e110['featureId']=_0x7b2b9e,_0x46e110['registeredAt']=new Date()['toISOString'](),_0x2f08bd[_0x520200(0x147)](saveCache,_0x2121a3);}export function getSessionEntry(_0x3f44e2){const _0x322d24=_0xb547,_0x3ef84c={'IOdRz':function(_0x1dffe1){return _0x1dffe1();}},_0x54dc69=_0x3ef84c['IOdRz'](loadCache),_0x52be8f=_0x54dc69['sessions'][_0x3f44e2];if(_0x52be8f?.['featureId']&&_0x52be8f?.['registeredAt'])return{'featureId':_0x52be8f[_0x322d24(0x128)],'registeredAt':_0x52be8f['registeredAt']};return null;}export function unregisterSession(_0xc9c234){const _0x5e3699=_0xb547,_0x511f1d={'TNCaa':function(_0x45245d,_0x5d5a9e){return _0x45245d(_0x5d5a9e);}},_0x960ba9=loadCache(),_0x546cd6=_0x960ba9['sessions'][_0xc9c234];_0x546cd6&&(delete _0x546cd6[_0x5e3699(0x128)],delete _0x546cd6[_0x5e3699(0x133)],_0x511f1d[_0x5e3699(0x13d)](saveCache,_0x960ba9));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x2b7906){const _0x3fc63b=_0xb547,_0x3f63fd={'dgmbs':function(_0xd49e96,_0x33d924,_0x598ce1){return _0xd49e96(_0x33d924,_0x598ce1);},'DOeIa':function(_0x3e6546,_0x16eb99){return _0x3e6546>=_0x16eb99;},'kfUFI':function(_0x25378b,_0x5256d0){return _0x25378b-_0x5256d0;},'dpBiB':function(_0xfd300f,_0x12aef9){return _0xfd300f(_0x12aef9);}},_0x57e2da=loadCache(),_0x44d78d=_0x3f63fd[_0x3fc63b(0x11f)](getOrCreateSession,_0x57e2da,_0x2b7906),_0x32eac3=_0x44d78d[_0x3fc63b(0x142)]||0x0,_0x530277=Date[_0x3fc63b(0x140)]();if(_0x3f63fd[_0x3fc63b(0x151)](_0x3f63fd[_0x3fc63b(0x143)](_0x530277,_0x32eac3),PLAN_REMINDER_INTERVAL_MS))return _0x44d78d['lastPlanReminderAt']=_0x530277,_0x3f63fd['dpBiB'](saveCache,_0x57e2da),!![];return![];}export function shouldShowStopReminder(_0x31baf8){const _0x31eb73=_0xb547,_0x2be185={'WKsEQ':function(_0x2dbbc7,_0x41b034,_0x10b3f2){return _0x2dbbc7(_0x41b034,_0x10b3f2);},'LSRWc':function(_0x5ec8f2,_0x15370a){return _0x5ec8f2(_0x15370a);}},_0x1adc05=loadCache(),_0x4acd2f=_0x2be185[_0x31eb73(0x13f)](getOrCreateSession,_0x1adc05,_0x31baf8),_0x62fb49=_0x4acd2f[_0x31eb73(0x121)]||0x0,_0x444949=Date[_0x31eb73(0x140)]();if(_0x444949-_0x62fb49>=STOP_REMINDER_INTERVAL_MS)return _0x4acd2f[_0x31eb73(0x121)]=_0x444949,_0x2be185['LSRWc'](saveCache,_0x1adc05),!![];return![];}export function hasSessionBeenPrompted(_0x40c176){const _0x2e4bec=_0xb547,_0x22bbaf=loadCache();return _0x22bbaf['sessions'][_0x40c176]?.[_0x2e4bec(0x132)]===!![];}export function markSessionPrompted(_0x826918){const _0x5477fc=_0xb547,_0x5e8762=loadCache(),_0x4a287d=getOrCreateSession(_0x5e8762,_0x826918);_0x4a287d[_0x5477fc(0x132)]=!![],saveCache(_0x5e8762);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x44d6f0=_0x33f6;function _0x5c68(){const _0x3d814d=['--disable-setuid-sandbox','utf-8','PCYAr','11awHDjO','UUbLw','XsIFD','sessions','file','3KJFLOF','pweVV','CjVGm','warn','178341BzeLWs','allowInsecureLocalhost','XGdLu','258993ltoJTp','UaWJT','.json','ZHyfn','TzABd','oFxxi','-cli.json','storageStatePath','yLqGS','stringify','BONWq','--disable-web-security','40zIeHnw','auth.json','entries','345214VKyReX','configPath','mCcfK','fHIwN','EXNsz','CmuyB','replace','object','mLOtu','YxpMI','repeat','yxUjQ','length','auth.json.enc','headless','welvA','parse','zWCRr','vision','launchOptions','userAgent','rangerDir','--disable-features=WebBluetooth','headers','path','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','14945pJHjcR','cdpEndpoint','isArray','push','catch','oHNip','WhkSp','now','xOyvQ','args','storageState','LvWZk','rAAHt','YopFL','KkKuA','contextOptions','cYiUk','message','432lHqzQw','vosyc','--unsafely-treat-insecure-origin-as-secure=http://localhost','yYFke','UJnIx','328068SzFDQH','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','browser','FBQZI','GXvGa','extraHTTPHeaders','legacy','nZFSn','QNDjR','map','QiTfv','getuid','env','othMU','boolean','YPtUe','ranger-config','8286700ooxoji','dpxwP','Tthwy','string','zVXTH','eSafq','tabs','kGnqe','--no-sandbox','IPFgX','chromium','header','allow','includes','184878JPOscJ','QPTLY','NiDgO','location','filter','SDNUG','--allow-insecure-localhost'];_0x5c68=function(){return _0x3d814d;};return _0x5c68();}function _0x33f6(_0x514e1e,_0x2f80e2){_0x514e1e=_0x514e1e-0x180;const _0x5c68cc=_0x5c68();let _0x33f6ab=_0x5c68cc[_0x514e1e];return _0x33f6ab;}(function(_0x1f8250,_0x505c4c){const _0x1505b1=_0x33f6,_0x5c7149=_0x1f8250();while(!![]){try{const _0x2c2546=-parseInt(_0x1505b1(0x1ae))/0x1+-parseInt(_0x1505b1(0x1c0))/0x2*(parseInt(_0x1505b1(0x1aa))/0x3)+parseInt(_0x1505b1(0x1f1))/0x4+-parseInt(_0x1505b1(0x1da))/0x5*(parseInt(_0x1505b1(0x1ec))/0x6)+parseInt(_0x1505b1(0x1b1))/0x7*(-parseInt(_0x1505b1(0x1bd))/0x8)+-parseInt(_0x1505b1(0x19b))/0x9+parseInt(_0x1505b1(0x18d))/0xa*(parseInt(_0x1505b1(0x1a5))/0xb);if(_0x2c2546===_0x505c4c)break;else _0x5c7149['push'](_0x5c7149['shift']());}catch(_0xc35fb1){_0x5c7149['push'](_0x5c7149['shift']());}}}(_0x5c68,0x21ef2));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(_0x3be4c8){const _0x45aeee=_0x33f6,_0x42e81a={'xOyvQ':function(_0x122bf5){return _0x122bf5();},'welvA':function(_0x3578dc,_0x57c9bf,_0x91882,_0x5b978d){return _0x3578dc(_0x57c9bf,_0x91882,_0x5b978d);},'XGdLu':'local','pMDyV':function(_0x568665,_0x568de8,_0x1fcf47){return _0x568665(_0x568de8,_0x1fcf47);},'eSafq':function(_0x4c0033,_0x435b9a){return _0x4c0033(_0x435b9a);},'WXUKo':function(_0x54e295,_0x5c9a95){return _0x54e295!==_0x5c9a95;},'LvWZk':function(_0x19430f,_0xbff6ef){return _0x19430f(_0xbff6ef);}},_0x10044c=_0x42e81a[_0x45aeee(0x1e2)](getRangerDir),_0x17b73b=_0x42e81a[_0x45aeee(0x1cf)](join,_0x10044c,'ci',_0x3be4c8),_0x322070=join(_0x10044c,_0x42e81a[_0x45aeee(0x1b0)],_0x3be4c8),_0x5c2b95=join(_0x10044c,_0x3be4c8),_0x35f4c4=_0x42e81a['pMDyV'](join,_0x10044c,_0x42e81a['XGdLu']),_0x2552bf=join(_0x10044c,'ci');if(existsSync(_0x17b73b))return _0x17b73b;if(_0x42e81a[_0x45aeee(0x192)](existsSync,_0x322070))return _0x322070;if(_0x42e81a['eSafq'](existsSync,_0x5c2b95)&&(_0x42e81a['WXUKo'](_0x5c2b95,_0x35f4c4)&&_0x5c2b95!==_0x2552bf?!![]:_0x42e81a[_0x45aeee(0x1e5)](hasLegacyProfileFiles,_0x5c2b95)))return _0x5c2b95;return _0x322070;}export function findExistingEnv(_0x3e2c3f,_0x3c6d1b){const _0x5043dc=_0x33f6,_0x561d9f={'mZHXF':function(_0x52eb5d){return _0x52eb5d();},'GXvGa':'local','EXNsz':function(_0x3ab589,_0x421081,_0x3ffb75){return _0x3ab589(_0x421081,_0x3ffb75);},'XPLGW':function(_0x178abe,_0x506030,_0x29bae5,_0x636171){return _0x178abe(_0x506030,_0x29bae5,_0x636171);},'ngpeM':'legacy','fHIwN':function(_0x5a288f,_0x446e6e){return _0x5a288f===_0x446e6e;}},_0x2c5acc=_0x3c6d1b?.[_0x5043dc(0x1d5)]??_0x561d9f['mZHXF'](getRangerDir),_0x315dec=_0x3c6d1b?.['locations']??['ci',_0x561d9f[_0x5043dc(0x180)],_0x5043dc(0x182)],_0x49df10=join(_0x2c5acc,_0x561d9f['GXvGa']),_0x47c32a=_0x561d9f['EXNsz'](join,_0x2c5acc,'ci'),_0x15bfa7=[{'location':'ci','path':join(_0x2c5acc,'ci',_0x3e2c3f)},{'location':_0x561d9f['GXvGa'],'path':_0x561d9f['XPLGW'](join,_0x2c5acc,'local',_0x3e2c3f)},{'location':_0x561d9f['ngpeM'],'path':_0x561d9f[_0x5043dc(0x1c4)](join,_0x2c5acc,_0x3e2c3f)}];for(const _0x34095b of _0x15bfa7){if(_0x315dec['includes'](_0x34095b[_0x5043dc(0x19e)])&&existsSync(_0x34095b['path'])){if(_0x561d9f[_0x5043dc(0x1c3)](_0x34095b[_0x5043dc(0x19e)],_0x5043dc(0x182))&&(_0x34095b[_0x5043dc(0x1d8)]===_0x49df10||_0x561d9f[_0x5043dc(0x1c3)](_0x34095b['path'],_0x47c32a))&&!hasLegacyProfileFiles(_0x34095b[_0x5043dc(0x1d8)]))continue;return{'path':_0x34095b['path'],'location':_0x34095b['location']};}}return null;}function hasLegacyProfileFiles(_0x16a036){const _0x2cea82=_0x33f6,_0x3e61aa={'CmuyB':function(_0x508765,_0x40d0ec){return _0x508765(_0x40d0ec);},'cYiUk':function(_0x4c717c,_0x655b74,_0x5a19bc){return _0x4c717c(_0x655b74,_0x5a19bc);},'TzABd':_0x2cea82(0x1be),'ZHyfn':function(_0x1e3034,_0x3889dc){return _0x1e3034(_0x3889dc);},'nZFSn':function(_0x1e694b,_0x3b0e74,_0x4a630b){return _0x1e694b(_0x3b0e74,_0x4a630b);},'gFLFg':_0x2cea82(0x1cd)};return _0x3e61aa[_0x2cea82(0x1c5)](existsSync,_0x3e61aa[_0x2cea82(0x1ea)](join,_0x16a036,'settings.json'))||existsSync(join(_0x16a036,_0x3e61aa[_0x2cea82(0x1b5)]))||_0x3e61aa[_0x2cea82(0x1b4)](existsSync,_0x3e61aa[_0x2cea82(0x183)](join,_0x16a036,_0x3e61aa['gFLFg']));}export function isEnvCi(_0x4433d1){const _0x2c155c={'BhCHl':function(_0xbd5b59,_0x1ac1ca,_0x46a844,_0x21b086){return _0xbd5b59(_0x1ac1ca,_0x46a844,_0x21b086);},'zahvE':function(_0x54654f){return _0x54654f();}};return existsSync(_0x2c155c['BhCHl'](join,_0x2c155c['zahvE'](getRangerDir),'ci',_0x4433d1));}export async function cleanupTempFiles(_0x3a8650){const _0x2ae37d=_0x33f6,_0x14077d={'JcgdA':function(_0x20f58f,_0x574eb5){return _0x20f58f!==_0x574eb5;},'mRKGZ':'ENOENT'},_0x13d613=[_0x3a8650['tempAuthPath'],_0x3a8650[_0x2ae37d(0x1c1)]][_0x2ae37d(0x19f)](Boolean);await Promise['all'](_0x13d613[_0x2ae37d(0x185)](_0x39c6cd=>unlink(_0x39c6cd)[_0x2ae37d(0x1de)](_0x58a6f0=>{const _0x8fd210=_0x2ae37d;_0x14077d['JcgdA'](_0x58a6f0['code'],_0x14077d['mRKGZ'])&&console[_0x8fd210(0x1ad)](_0x8fd210(0x1d9)+_0x39c6cd+':',_0x58a6f0[_0x8fd210(0x1eb)]);})));}export function getSettingsPath(_0xb980b0){const _0x49e45f={'Wycpo':function(_0x147c04,_0x231dfb){return _0x147c04(_0x231dfb);},'jyAUv':'settings.json'};return join(_0x49e45f['Wycpo'](getEnvDir,_0xb980b0),_0x49e45f['jyAUv']);}export async function loadSettings(_0x223564){const _0x3511ea=_0x33f6,_0x5a4617={'Tthwy':function(_0x84d45f,_0x40ed12){return _0x84d45f(_0x40ed12);},'oHNip':function(_0x99bedc,_0x17d51d){return _0x99bedc(_0x17d51d);},'FBQZI':function(_0xbd5aba,_0x17d30e,_0x4b6fbe){return _0xbd5aba(_0x17d30e,_0x4b6fbe);},'wRrqa':_0x3511ea(0x1a3)},_0x7de015=_0x5a4617[_0x3511ea(0x18f)](getSettingsPath,_0x223564);if(!_0x5a4617[_0x3511ea(0x1df)](existsSync,_0x7de015))return{};try{const _0x289f7f=await _0x5a4617[_0x3511ea(0x1f4)](readFile,_0x7de015,_0x5a4617['wRrqa']);return JSON[_0x3511ea(0x1d0)](_0x289f7f);}catch{return{};}}export async function saveSettings(_0x32e7f0,_0x413e1e){const _0x5dc487=_0x33f6,_0x34e735={'nnbbX':function(_0x38915d,_0x1336d1){return _0x38915d(_0x1336d1);},'hRxVD':function(_0x42bf39,_0x5f02a0){return _0x42bf39(_0x5f02a0);},'kGnqe':function(_0x517f67,_0x3f7752,_0x18d2fc){return _0x517f67(_0x3f7752,_0x18d2fc);}},_0x40e95b=_0x34e735['nnbbX'](getSettingsPath,_0x32e7f0),_0x4edf79=_0x34e735['hRxVD'](dirname,_0x40e95b);!_0x34e735['hRxVD'](existsSync,_0x4edf79)&&await mkdir(_0x4edf79,{'recursive':!![]}),await _0x34e735[_0x5dc487(0x194)](writeFile,_0x40e95b,JSON[_0x5dc487(0x1ba)](_0x413e1e,null,0x2));}export function resolveEnvVars(_0x468dbd){const _0x2a81f3=_0x33f6,_0x225eae={'YxpMI':_0x2a81f3(0x1c7)};if(typeof _0x468dbd==='string')return _0x468dbd[_0x2a81f3(0x1c6)](/\$\{(\w+)\}/g,(_0x22c27e,_0x129f0e)=>{const _0x4fa738=_0x2a81f3,_0x4f4603=process[_0x4fa738(0x188)][_0x129f0e];if(_0x4f4603===undefined)throw new Error('Environment\x20variable\x20'+_0x129f0e+'\x20is\x20not\x20set');return _0x4f4603;});if(Array[_0x2a81f3(0x1dc)](_0x468dbd))return _0x468dbd[_0x2a81f3(0x185)](resolveEnvVars);if(_0x468dbd&&typeof _0x468dbd===_0x225eae[_0x2a81f3(0x1c9)])return Object['fromEntries'](Object[_0x2a81f3(0x1bf)](_0x468dbd)['map'](([_0xe5bb8b,_0x3b846e])=>[_0xe5bb8b,resolveEnvVars(_0x3b846e)]));return _0x468dbd;}const isRecord=_0x5859fd=>typeof _0x5859fd===_0x44d6f0(0x1c7)&&_0x5859fd!==null&&!Array['isArray'](_0x5859fd),asRecord=_0x34237a=>isRecord(_0x34237a)?_0x34237a:undefined,mergeHeaders=(_0x2cef56,_0x210eb9)=>{const _0x9bf8e9=_0x44d6f0,_0x188674={..._0x2cef56??{},..._0x210eb9??{}};return Object['keys'](_0x188674)[_0x9bf8e9(0x1cc)]?_0x188674:undefined;},SAFE_MODE_ARGS=[_0x44d6f0(0x1d6)],ALLOW_LOCALHOST_ARGS=[_0x44d6f0(0x1bc),'--allow-running-insecure-content',_0x44d6f0(0x1ee),_0x44d6f0(0x1a1)];export function buildBrowserOptionsFromSettings(_0x10bded,_0x534dad={}){const _0x50b89f=_0x44d6f0,_0x46ce87={'oFxxi':function(_0x506e5e,_0xc1220d){return _0x506e5e(_0xc1220d);},'BONWq':function(_0x50cc1e,_0x5789c7){return _0x50cc1e(_0x5789c7);},'YPtUe':function(_0x191566,_0x26fb2c){return _0x191566===_0x26fb2c;},'VekvZ':function(_0x3e9d6f,_0x2b0d19){return _0x3e9d6f===_0x2b0d19;},'mLOtu':function(_0x50faea,_0x52757e){return _0x50faea(_0x52757e);}},_0x21085b=_0x46ce87[_0x50b89f(0x1b6)](asRecord,_0x10bded[_0x50b89f(0x1f3)]),_0x117142={..._0x46ce87[_0x50b89f(0x1bb)](asRecord,_0x21085b?.[_0x50b89f(0x1d3)])??{}};_0x46ce87[_0x50b89f(0x18b)](typeof _0x534dad[_0x50b89f(0x1ce)],_0x50b89f(0x18a))&&(_0x117142['headless']=_0x534dad[_0x50b89f(0x1ce)]);if(_0x10bded['safeMode']){const _0x14b234=_0x117142['args']??[],_0x4c7ee6=SAFE_MODE_ARGS['filter'](_0x20d96e=>!_0x14b234['includes'](_0x20d96e));_0x117142['args']=[..._0x14b234,..._0x4c7ee6];}if(_0x10bded[_0x50b89f(0x1af)]){const _0x5e9e98=_0x117142['args']??[],_0xd5a560=ALLOW_LOCALHOST_ARGS[_0x50b89f(0x19f)](_0x2a0589=>!_0x5e9e98['includes'](_0x2a0589));_0x117142['args']=[..._0x5e9e98,..._0xd5a560];}const _0x5212ec={..._0x46ce87[_0x50b89f(0x1bb)](asRecord,_0x21085b?.[_0x50b89f(0x1e9)])??{}};_0x5212ec['ignoreHTTPSErrors']=!![];_0x46ce87['VekvZ'](typeof _0x10bded['userAgent'],_0x50b89f(0x190))&&(_0x5212ec['userAgent']=_0x10bded['userAgent']);const _0x3a564e=mergeHeaders(asRecord(_0x5212ec['extraHTTPHeaders']),_0x46ce87[_0x50b89f(0x1c8)](asRecord,_0x10bded['headers']));return _0x3a564e?_0x5212ec[_0x50b89f(0x181)]=_0x3a564e:delete _0x5212ec[_0x50b89f(0x181)],_0x534dad[_0x50b89f(0x1b8)]&&(_0x5212ec['storageState']=_0x534dad[_0x50b89f(0x1b8)]),{'launchOptions':_0x117142,'contextOptions':_0x5212ec};}export async function buildPlaywrightConfig(_0x10c783,_0x39c1b1,_0x1cf782,_0x4e9a23){const _0x260293=_0x44d6f0,_0xbe7634={'rXjHQ':function(_0x30656b,_0x75e6d3,_0x6be976){return _0x30656b(_0x75e6d3,_0x6be976);},'PYFFn':'--no-sandbox','yLqGS':_0x260293(0x1a2),'UaWJT':_0x260293(0x197),'zWCRr':'clipboard-read','PCYAr':function(_0x12c361,_0xe5348a){return _0x12c361(_0xe5348a);},'eFTcu':_0x260293(0x1cd),'UIdxE':function(_0x483a60,_0x3ce816,_0x21090b){return _0x483a60(_0x3ce816,_0x21090b);},'IPFgX':function(_0x19726d){return _0x19726d();},'zEMJW':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','XsIFD':function(_0x548424,_0x8de873,_0x1d6f54){return _0x548424(_0x8de873,_0x1d6f54);},'RyLwE':function(_0x54e1cc,_0x3ed7d3){return _0x54e1cc(_0x3ed7d3);},'eslpQ':function(_0x4cbfb6,_0x53f8d7,_0x5c57c4,_0x17c9ac){return _0x4cbfb6(_0x53f8d7,_0x5c57c4,_0x17c9ac);},'ZVtCc':_0x260293(0x1a8),'nDXny':_0x260293(0x1d2),'KkKuA':function(_0x3d1200,_0x2b32e6,_0xf708d1){return _0x3d1200(_0x2b32e6,_0xf708d1);}},_0x5d59fc=_0xbe7634[_0x260293(0x1a4)](getEnvDir,_0x39c1b1),_0x3d5d1d=_0xbe7634['rXjHQ'](join,_0x5d59fc,_0xbe7634['eFTcu']),_0xc60803=_0xbe7634['UIdxE'](join,_0x5d59fc,'auth.json');let _0x3af44f,_0x486a02;if(_0xbe7634['PCYAr'](existsSync,_0x3d5d1d))try{const _0x302ca3=await _0xbe7634[_0x260293(0x196)](getToken);if(!_0x302ca3)throw new Error(_0xbe7634['zEMJW']);const _0x4bf6e1=await _0xbe7634['PCYAr'](readFile,_0x3d5d1d),_0xde9d32=decrypt(_0x4bf6e1,_0x302ca3);_0x486a02=_0xbe7634[_0x260293(0x1a7)](join,_0xbe7634['IPFgX'](tmpdir),'ranger-auth-'+Date[_0x260293(0x1e1)]()+'.json'),await _0xbe7634[_0x260293(0x1a7)](writeFile,_0x486a02,_0xde9d32),_0x3af44f=_0x486a02;}catch(_0x7c5967){const _0x22a849=_0x7c5967 instanceof Error?_0x7c5967[_0x260293(0x1eb)]:_0xbe7634['RyLwE'](String,_0x7c5967);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x22a849);}else _0xbe7634['PCYAr'](existsSync,_0xc60803)&&(_0x3af44f=_0xc60803);const _0x33b84f=_0x1cf782||randomUUID(),_0x5357fa=_0xbe7634['eslpQ'](join,_0xbe7634[_0x260293(0x196)](getRangerDir),_0xbe7634['ZVtCc'],_0x33b84f),_0x367d10=_0xbe7634['RyLwE'](Boolean,_0x10c783['cdpEndpoint']),_0x302ca2=_0x367d10?{'browserName':_0x260293(0x197),'cdpEndpoint':_0x10c783['cdpEndpoint']}:((()=>{const _0x2b4f49=_0x260293,{launchOptions:_0xaea335,contextOptions:_0x1ef0b3}=_0xbe7634['rXjHQ'](buildBrowserOptionsFromSettings,_0x10c783,{'headless':_0x4e9a23?![]:_0x10c783[_0x2b4f49(0x1ce)]??!![],'storageStatePath':_0x3af44f});if(process['getuid']?.()===0x0){const _0x6fd625=[_0xbe7634['PYFFn'],_0xbe7634[_0x2b4f49(0x1b9)]],_0x5736cb=_0xaea335[_0x2b4f49(0x1e3)]??[],_0x1cc644=_0x6fd625['filter'](_0x251eab=>!_0x5736cb[_0x2b4f49(0x19a)](_0x251eab));_0xaea335['args']=[..._0x5736cb,..._0x1cc644];}return{'isolated':!![],'browserName':_0xbe7634[_0x2b4f49(0x1b2)],'launchOptions':_0xaea335,'contextOptions':{..._0x1ef0b3,'permissions':[_0xbe7634[_0x2b4f49(0x1d1)],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x3539aa={'name':_0x39c1b1,'browser':_0x302ca2,'capabilities':['core',_0x260293(0x193),'install','pdf',_0xbe7634['nDXny']],'imageResponses':_0x260293(0x199),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5357fa};if(!_0x367d10){const _0x27b2db=_0x3539aa[_0x260293(0x1f3)],_0x4d10fb=_0x27b2db['contextOptions'];if(_0x4d10fb[_0x260293(0x1d4)]===undefined)delete _0x4d10fb['userAgent'];if(_0x4d10fb[_0x260293(0x1e4)]===undefined)delete _0x4d10fb['storageState'];}const _0x133315=_0xbe7634[_0x260293(0x1e8)](join,tmpdir(),'ranger-config');!existsSync(_0x133315)&&await mkdir(_0x133315,{'recursive':!![]});const _0x291a25=_0xbe7634[_0x260293(0x1a7)](join,_0x133315,_0x39c1b1+'-'+Date['now']()+_0x260293(0x1b3));return await writeFile(_0x291a25,JSON['stringify'](_0x3539aa,null,0x2)),{'configPath':_0x291a25,'tempAuthPath':_0x486a02};}export async function buildPlaywrightCliConfig(_0x87612e,_0x58db56,_0x33cb5b,_0x4bfbbf){const _0x4554e0=_0x44d6f0,_0x195077={'yxUjQ':function(_0x24856b,_0x53427b){return _0x24856b===_0x53427b;},'GKVmf':'clipboard-read','hjupk':'clipboard-write','othMU':'auth.json.enc','pweVV':function(_0xc068b7,_0xe89ecb){return _0xc068b7(_0xe89ecb);},'WaenQ':function(_0x2a8dd0){return _0x2a8dd0();},'SDNUG':_0x4554e0(0x1f2),'gSFmZ':function(_0x2bef11,_0x45ee48,_0x5ec660){return _0x2bef11(_0x45ee48,_0x5ec660);},'CjVGm':function(_0x1ae477,_0x3a4f8a,_0x273dd4){return _0x1ae477(_0x3a4f8a,_0x273dd4);},'RFwEK':function(_0x3ba6d8,_0x14d9ed,_0x485bcb){return _0x3ba6d8(_0x14d9ed,_0x485bcb);},'QPTLY':function(_0x230db5,_0x33e772){return _0x230db5(_0x33e772);},'yDgWH':function(_0xc03b57,_0x3cfaae){return _0xc03b57(_0x3cfaae);},'NiDfO':function(_0x1f97ff,_0x325d76,_0x43d657,_0x578134){return _0x1f97ff(_0x325d76,_0x43d657,_0x578134);},'NiDgO':function(_0x466fd9){return _0x466fd9();},'vosyc':function(_0x48e236,_0x399470,_0x1b52a8){return _0x48e236(_0x399470,_0x1b52a8);}},_0xdc2a7e=getEnvDir(_0x58db56),_0x4832db=join(_0xdc2a7e,_0x195077[_0x4554e0(0x189)]),_0x4915aa=join(_0xdc2a7e,_0x4554e0(0x1be));let _0x55a54d,_0x4adfd7;if(_0x195077[_0x4554e0(0x1ab)](existsSync,_0x4832db))try{const _0x294996=await _0x195077['WaenQ'](getToken);if(!_0x294996)throw new Error(_0x195077[_0x4554e0(0x1a0)]);const _0x37d919=await readFile(_0x4832db),_0x2fb612=_0x195077['gSFmZ'](decrypt,_0x37d919,_0x294996);_0x4adfd7=_0x195077[_0x4554e0(0x1ac)](join,tmpdir(),'ranger-auth-'+Date['now']()+_0x4554e0(0x1b3)),await _0x195077['RFwEK'](writeFile,_0x4adfd7,_0x2fb612),_0x55a54d=_0x4adfd7;}catch(_0x1707c7){const _0x4d6f39=_0x1707c7 instanceof Error?_0x1707c7['message']:_0x195077[_0x4554e0(0x19c)](String,_0x1707c7);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x4d6f39);}else _0x195077['yDgWH'](existsSync,_0x4915aa)&&(_0x55a54d=_0x4915aa);const _0x5a4f19=_0x33cb5b||randomUUID(),_0x4d8ed8=_0x195077['NiDfO'](join,_0x195077[_0x4554e0(0x19d)](getRangerDir),_0x4554e0(0x1a8),_0x5a4f19),_0x4f6d03=Boolean(_0x87612e['cdpEndpoint']),_0x98fbed=_0x4f6d03?{'browserName':_0x4554e0(0x197),'cdpEndpoint':_0x87612e[_0x4554e0(0x1db)]}:((()=>{const _0xcf664a=_0x4554e0,{launchOptions:_0x6f6c59,contextOptions:_0x127f23}=buildBrowserOptionsFromSettings(_0x87612e,{'headless':_0x4bfbbf?![]:_0x87612e[_0xcf664a(0x1ce)]??!![],'storageStatePath':_0x55a54d});if(_0x195077[_0xcf664a(0x1cb)](process[_0xcf664a(0x187)]?.(),0x0)){const _0x2150c5=[_0xcf664a(0x195),'--disable-setuid-sandbox'],_0x21864a=_0x6f6c59['args']??[],_0x329c23=_0x2150c5[_0xcf664a(0x19f)](_0x203869=>!_0x21864a[_0xcf664a(0x19a)](_0x203869));_0x6f6c59['args']=[..._0x21864a,..._0x329c23];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x6f6c59,'contextOptions':{..._0x127f23,'permissions':[_0x195077['GKVmf'],_0x195077['hjupk']],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x4f6d03){const _0x593c03=_0x98fbed['contextOptions'];if(_0x593c03[_0x4554e0(0x1d4)]===undefined)delete _0x593c03['userAgent'];if(_0x593c03['storageState']===undefined)delete _0x593c03[_0x4554e0(0x1e4)];}const _0x6fab1f={'browser':_0x98fbed,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4d8ed8,'outputMode':_0x4554e0(0x1a9),'codegen':'none'},_0x277b27=join(tmpdir(),_0x4554e0(0x18c));!existsSync(_0x277b27)&&await mkdir(_0x277b27,{'recursive':!![]});const _0x2a22ed=join(_0x277b27,_0x58db56+'-'+Date['now']()+_0x4554e0(0x1b7));return await _0x195077[_0x4554e0(0x1ed)](writeFile,_0x2a22ed,JSON['stringify'](_0x6fab1f,null,0x2)),{'configPath':_0x2a22ed,'tempAuthPath':_0x4adfd7};}export function getNestedValue(_0x293c05,_0x506367){const _0x161bdd=_0x44d6f0,_0xb220f9={'mCcfK':function(_0x18a37b,_0x3dcbd1){return _0x18a37b(_0x3dcbd1);},'waRUJ':function(_0x1d58ff,_0x5dc236){return _0x1d58ff===_0x5dc236;},'bEOFH':function(_0x4fed20,_0x360be2){return _0x4fed20===_0x360be2;},'UUbLw':'object'},_0x39b3bd=_0xb220f9[_0x161bdd(0x1c2)](parseKeyPath,_0x506367);let _0x221035=_0x293c05;for(const _0x3eb957 of _0x39b3bd){if(_0xb220f9['waRUJ'](_0x221035,null)||_0xb220f9['bEOFH'](_0x221035,undefined)||typeof _0x221035!==_0xb220f9[_0x161bdd(0x1a6)])return undefined;_0x221035=_0x221035[_0x3eb957];}return _0x221035;}export function setNestedValue(_0x547932,_0x41c5e6,_0x5c3e5e){const _0x35ee60=_0x44d6f0,_0x5b4450={'dpxwP':function(_0xdb2ae,_0x13839e){return _0xdb2ae(_0x13839e);},'zVXTH':function(_0x227975,_0x13373d){return _0x227975-_0x13373d;},'nJnlr':function(_0x5e644b,_0xc488c1){return _0x5e644b-_0xc488c1;}},_0x366e47=_0x5b4450[_0x35ee60(0x18e)](parseKeyPath,_0x41c5e6);let _0x11a639=_0x547932;for(let _0x397bbb=0x0;_0x397bbb<_0x5b4450[_0x35ee60(0x191)](_0x366e47[_0x35ee60(0x1cc)],0x1);_0x397bbb++){const _0x53a625=_0x366e47[_0x397bbb];(!(_0x53a625 in _0x11a639)||typeof _0x11a639[_0x53a625]!==_0x35ee60(0x1c7))&&(_0x11a639[_0x53a625]={}),_0x11a639=_0x11a639[_0x53a625];}_0x11a639[_0x366e47[_0x5b4450['nJnlr'](_0x366e47[_0x35ee60(0x1cc)],0x1)]]=_0x5c3e5e;}export function deleteNestedValue(_0x1b51aa,_0xf23b3e){const _0x47d85e=_0x44d6f0,_0x360156={'rAAHt':function(_0x31845b,_0x4089cc){return _0x31845b(_0x4089cc);},'yYFke':function(_0x40c777,_0x418f33){return _0x40c777<_0x418f33;},'VDTjF':function(_0x6180b9,_0x2fbe77){return _0x6180b9-_0x2fbe77;},'QiTfv':'object','uXeDn':function(_0x312a64,_0x4951f5){return _0x312a64===_0x4951f5;},'IHHWQ':function(_0x4a3268,_0x14e47c){return _0x4a3268===_0x14e47c;},'UJnIx':function(_0x39f6f7,_0x44f965){return _0x39f6f7!==_0x44f965;},'YopFL':function(_0x1d0804,_0x249c28){return _0x1d0804-_0x249c28;}},_0x5bceab=_0x360156[_0x47d85e(0x1e6)](parseKeyPath,_0xf23b3e);let _0x5483d7=_0x1b51aa;for(let _0x168dae=0x0;_0x360156[_0x47d85e(0x1ef)](_0x168dae,_0x360156['VDTjF'](_0x5bceab['length'],0x1));_0x168dae++){if(_0x5483d7===null||_0x5483d7===undefined||typeof _0x5483d7!==_0x360156[_0x47d85e(0x186)])return![];_0x5483d7=_0x5483d7[_0x5bceab[_0x168dae]];}if(_0x360156['uXeDn'](_0x5483d7,null)||_0x360156['IHHWQ'](_0x5483d7,undefined)||_0x360156[_0x47d85e(0x1f0)](typeof _0x5483d7,_0x47d85e(0x1c7)))return![];const _0x1a734c=_0x5bceab[_0x360156[_0x47d85e(0x1e7)](_0x5bceab[_0x47d85e(0x1cc)],0x1)];if(_0x1a734c in _0x5483d7)return delete _0x5483d7[_0x1a734c],!![];return![];}function parseKeyPath(_0x19ab5c){const _0xb00dc3=_0x44d6f0,_0x38a3c0={'WhkSp':function(_0x3b2369,_0x18cb59){return _0x3b2369===_0x18cb59;},'eLemo':_0xb00dc3(0x198),'QNDjR':_0xb00dc3(0x1d7)},_0x445fe9=_0x19ab5c['split']('.');return _0x38a3c0['WhkSp'](_0x445fe9[0x0],_0x38a3c0['eLemo'])&&(_0x445fe9[0x0]=_0x38a3c0[_0xb00dc3(0x184)]),_0x38a3c0[_0xb00dc3(0x1e0)](_0x445fe9[0x0],'setupHeader')&&(_0x445fe9[0x0]='setupHeaders'),_0x445fe9;}export function formatSettings(_0x2afc58,_0xb37184=0x0){const _0x1b94b5=_0x44d6f0,_0x5d9c0c={'PlyAI':function(_0x110ae1,_0x1e304a){return _0x110ae1===_0x1e304a;},'XuxyZ':function(_0x485038,_0x4e7c5d){return _0x485038===_0x4e7c5d;},'OxxGv':function(_0x267146,_0x53cc16){return _0x267146!==_0x53cc16;}},_0x112bd9=[],_0xdc766f='\x20\x20'[_0x1b94b5(0x1ca)](_0xb37184);for(const [_0x348102,_0x5f59b4]of Object[_0x1b94b5(0x1bf)](_0x2afc58)){if(_0x5d9c0c['PlyAI'](_0x5f59b4,undefined))continue;if(_0x5d9c0c['XuxyZ'](typeof _0x5f59b4,'object')&&_0x5d9c0c['OxxGv'](_0x5f59b4,null)){_0x112bd9['push'](''+_0xdc766f+_0x348102+':');for(const [_0x1f03fd,_0x560b8a]of Object['entries'](_0x5f59b4)){_0x112bd9[_0x1b94b5(0x1dd)](_0xdc766f+'\x20\x20'+_0x1f03fd+':\x20'+_0x560b8a);}}else _0x112bd9['push'](''+_0xdc766f+_0x348102+':\x20'+_0x5f59b4);}return _0x112bd9['join']('\x0a');}
1
+ const _0x4b6d94=_0xe175;(function(_0x457c50,_0x18e922){const _0x198358=_0xe175,_0x27213e=_0x457c50();while(!![]){try{const _0x2787f9=-parseInt(_0x198358(0xf9))/0x1+-parseInt(_0x198358(0x125))/0x2*(parseInt(_0x198358(0x121))/0x3)+-parseInt(_0x198358(0xda))/0x4*(parseInt(_0x198358(0xe8))/0x5)+-parseInt(_0x198358(0x109))/0x6+parseInt(_0x198358(0xe0))/0x7*(parseInt(_0x198358(0x13b))/0x8)+parseInt(_0x198358(0x129))/0x9+parseInt(_0x198358(0x134))/0xa*(parseInt(_0x198358(0x127))/0xb);if(_0x2787f9===_0x18e922)break;else _0x27213e['push'](_0x27213e['shift']());}catch(_0x4eef72){_0x27213e['push'](_0x27213e['shift']());}}}(_0x4917,0x6220f));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(_0x348c1e){const _0x4f288f=_0xe175,_0xcdf808={'ytYCQ':function(_0x8b9743){return _0x8b9743();},'nHKts':function(_0x2fff4c,_0x161d7f,_0x3dfc1d,_0x326674){return _0x2fff4c(_0x161d7f,_0x3dfc1d,_0x326674);},'bgGhz':function(_0xb15bf6,_0x31165a,_0x2636ec,_0xb8405){return _0xb15bf6(_0x31165a,_0x2636ec,_0xb8405);},'ImKJp':'local','MJNlK':function(_0x22267e,_0x4d6289,_0x9594b3){return _0x22267e(_0x4d6289,_0x9594b3);},'acxUJ':function(_0xe69e55,_0x5efb43,_0x2ae27b){return _0xe69e55(_0x5efb43,_0x2ae27b);},'alrKS':function(_0x5c2441,_0x21be1c){return _0x5c2441(_0x21be1c);}},_0x508c45=_0xcdf808[_0x4f288f(0x12c)](getRangerDir),_0x4c74ce=_0xcdf808['nHKts'](join,_0x508c45,'ci',_0x348c1e),_0x44ed53=_0xcdf808[_0x4f288f(0x100)](join,_0x508c45,_0xcdf808[_0x4f288f(0x131)],_0x348c1e),_0x20898d=_0xcdf808['MJNlK'](join,_0x508c45,_0x348c1e),_0x49f358=_0xcdf808[_0x4f288f(0x11a)](join,_0x508c45,_0xcdf808['ImKJp']),_0x194fce=join(_0x508c45,'ci');if(existsSync(_0x4c74ce))return _0x4c74ce;if(existsSync(_0x44ed53))return _0x44ed53;if(_0xcdf808['alrKS'](existsSync,_0x20898d)&&(_0x20898d!==_0x49f358&&_0x20898d!==_0x194fce?!![]:hasLegacyProfileFiles(_0x20898d)))return _0x20898d;return _0x44ed53;}export function findExistingEnv(_0x1839ca,_0x43f15f){const _0x36bebb=_0xe175,_0x4ba7c8={'drYdc':function(_0x2638c9){return _0x2638c9();},'bgsVi':function(_0x4ef7a2,_0x307f94,_0x4ed382){return _0x4ef7a2(_0x307f94,_0x4ed382);},'UwHFN':'local','oKYNc':function(_0x122319,_0x29120f){return _0x122319(_0x29120f);},'pVabS':function(_0x4bfc62,_0x3e622b){return _0x4bfc62===_0x3e622b;},'QBaez':function(_0xf65e99,_0x46630e){return _0xf65e99(_0x46630e);}},_0x2caeb6=_0x43f15f?.['rangerDir']??_0x4ba7c8['drYdc'](getRangerDir),_0x58f714=_0x43f15f?.['locations']??['ci','local','legacy'],_0x50259d=_0x4ba7c8['bgsVi'](join,_0x2caeb6,_0x36bebb(0x136)),_0x4cdc6b=_0x4ba7c8[_0x36bebb(0x122)](join,_0x2caeb6,'ci'),_0x2aa28c=[{'location':'ci','path':join(_0x2caeb6,'ci',_0x1839ca)},{'location':_0x4ba7c8[_0x36bebb(0xfa)],'path':join(_0x2caeb6,_0x4ba7c8[_0x36bebb(0xfa)],_0x1839ca)},{'location':_0x36bebb(0xfd),'path':join(_0x2caeb6,_0x1839ca)}];for(const _0x2c7ad8 of _0x2aa28c){if(_0x58f714['includes'](_0x2c7ad8['location'])&&_0x4ba7c8[_0x36bebb(0xdf)](existsSync,_0x2c7ad8['path'])){if(_0x4ba7c8[_0x36bebb(0xfb)](_0x2c7ad8['location'],'legacy')&&(_0x2c7ad8['path']===_0x50259d||_0x2c7ad8['path']===_0x4cdc6b)&&!_0x4ba7c8[_0x36bebb(0xf7)](hasLegacyProfileFiles,_0x2c7ad8[_0x36bebb(0x11c)]))continue;return{'path':_0x2c7ad8['path'],'location':_0x2c7ad8['location']};}}return null;}function hasLegacyProfileFiles(_0x5c4cfe){const _0xe260bf={'dwiHu':function(_0x264972,_0x58c6eb){return _0x264972(_0x58c6eb);},'ttrjV':function(_0x1b5702,_0x509c51,_0x1020e1){return _0x1b5702(_0x509c51,_0x1020e1);},'RGpEx':function(_0x167f66,_0x459d59){return _0x167f66(_0x459d59);},'PDHBb':'auth.json.enc'};return existsSync(join(_0x5c4cfe,'settings.json'))||_0xe260bf['dwiHu'](existsSync,_0xe260bf['ttrjV'](join,_0x5c4cfe,'auth.json'))||_0xe260bf['RGpEx'](existsSync,join(_0x5c4cfe,_0xe260bf['PDHBb']));}export function isEnvCi(_0x3b941b){return existsSync(join(getRangerDir(),'ci',_0x3b941b));}function _0xe175(_0x856be0,_0x3b3b5a){_0x856be0=_0x856be0-0xd9;const _0x491700=_0x4917();let _0xe1757d=_0x491700[_0x856be0];return _0xe1757d;}export async function cleanupTempFiles(_0x4195cc){const _0x24fede=_0xe175,_0x27617f={'bVGxM':function(_0x38c5f1,_0x263de5){return _0x38c5f1!==_0x263de5;}},_0x3bfde2=[_0x4195cc[_0x24fede(0x10b)],_0x4195cc['configPath']]['filter'](Boolean);await Promise['all'](_0x3bfde2['map'](_0x3f3f2=>unlink(_0x3f3f2)[_0x24fede(0x10f)](_0x4eee41=>{const _0x1c23d1=_0x24fede;_0x27617f['bVGxM'](_0x4eee41['code'],'ENOENT')&&console[_0x1c23d1(0xe9)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x3f3f2+':',_0x4eee41[_0x1c23d1(0x13a)]);})));}export function getSettingsPath(_0x23e140){const _0x23343e=_0xe175,_0x5e1801={'ZEEmc':function(_0x2db7d2,_0x46c596,_0x46bccf){return _0x2db7d2(_0x46c596,_0x46bccf);},'MnzJn':'settings.json'};return _0x5e1801[_0x23343e(0x108)](join,getEnvDir(_0x23e140),_0x5e1801['MnzJn']);}export async function loadSettings(_0x51dde6){const _0x17e591=_0xe175,_0x532fb7={'nVPbG':function(_0x281695,_0x3a1f3b){return _0x281695(_0x3a1f3b);},'FiZLY':_0x17e591(0x11f)},_0x1dba76=_0x532fb7['nVPbG'](getSettingsPath,_0x51dde6);if(!existsSync(_0x1dba76))return{};try{const _0x452011=await readFile(_0x1dba76,_0x532fb7[_0x17e591(0xde)]);return JSON['parse'](_0x452011);}catch{return{};}}export async function saveSettings(_0x3d0089,_0x5f4760){const _0x1622e1=_0xe175,_0x42ed6b={'JrOFx':function(_0x2e51e1,_0x4a3173){return _0x2e51e1(_0x4a3173);},'DfnnX':function(_0x173060,_0x484818){return _0x173060(_0x484818);},'NsHrY':function(_0x159c7e,_0x293beb,_0x3f3480){return _0x159c7e(_0x293beb,_0x3f3480);}},_0x1ce041=_0x42ed6b['JrOFx'](getSettingsPath,_0x3d0089),_0x2a57e4=dirname(_0x1ce041);!_0x42ed6b[_0x1622e1(0x117)](existsSync,_0x2a57e4)&&await mkdir(_0x2a57e4,{'recursive':!![]}),await _0x42ed6b['NsHrY'](writeFile,_0x1ce041,JSON[_0x1622e1(0x104)](_0x5f4760,null,0x2));}export function resolveEnvVars(_0x416f97){const _0x48a611=_0xe175,_0x37463f={'asdJU':function(_0x423ee7,_0x7b950f){return _0x423ee7===_0x7b950f;},'ThRQg':_0x48a611(0xe3)};if(_0x37463f[_0x48a611(0x128)](typeof _0x416f97,_0x37463f['ThRQg']))return _0x416f97[_0x48a611(0xee)](/\$\{(\w+)\}/g,(_0x237bd8,_0x380305)=>{const _0x3e86e5=process['env'][_0x380305];if(_0x3e86e5===undefined)throw new Error('Environment\x20variable\x20'+_0x380305+'\x20is\x20not\x20set');return _0x3e86e5;});if(Array[_0x48a611(0x10a)](_0x416f97))return _0x416f97[_0x48a611(0xfe)](resolveEnvVars);if(_0x416f97&&typeof _0x416f97==='object')return Object['fromEntries'](Object['entries'](_0x416f97)[_0x48a611(0xfe)](([_0x14987f,_0x25f467])=>[_0x14987f,resolveEnvVars(_0x25f467)]));return _0x416f97;}const isRecord=_0x2c791b=>typeof _0x2c791b==='object'&&_0x2c791b!==null&&!Array['isArray'](_0x2c791b),asRecord=_0x5ca490=>isRecord(_0x5ca490)?_0x5ca490:undefined,mergeHeaders=(_0x393961,_0x670b32)=>{const _0x1d3a08=_0xe175,_0x214abd={'WcZGz':function(_0x26c707,_0x349d54){return _0x26c707??_0x349d54;}},_0x31c2b0={..._0x214abd[_0x1d3a08(0xe2)](_0x393961,{}),..._0x670b32??{}};return Object['keys'](_0x31c2b0)[_0x1d3a08(0x116)]?_0x31c2b0:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=[_0x4b6d94(0xec),_0x4b6d94(0x11e),_0x4b6d94(0x132),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x328fa6,_0x3d7d0a={}){const _0x47e096=_0x4b6d94,_0x8ccc7c={'GYUsv':'boolean','lpzdz':function(_0x1ccf73,_0x23a577){return _0x1ccf73(_0x23a577);},'ellua':_0x47e096(0xe3)},_0x8552a5=asRecord(_0x328fa6['browser']),_0x55ea57={...asRecord(_0x8552a5?.[_0x47e096(0xf6)])??{}};typeof _0x3d7d0a['headless']===_0x8ccc7c[_0x47e096(0x105)]&&(_0x55ea57[_0x47e096(0xef)]=_0x3d7d0a[_0x47e096(0xef)]);if(_0x328fa6[_0x47e096(0xf5)]){const _0x2e4c8d=_0x55ea57['args']??[],_0x2b9837=SAFE_MODE_ARGS['filter'](_0x3a791d=>!_0x2e4c8d['includes'](_0x3a791d));_0x55ea57[_0x47e096(0xf0)]=[..._0x2e4c8d,..._0x2b9837];}if(_0x328fa6['allowInsecureLocalhost']){const _0x549968=_0x55ea57['args']??[],_0x251c9b=ALLOW_LOCALHOST_ARGS[_0x47e096(0x111)](_0x30caf9=>!_0x549968['includes'](_0x30caf9));_0x55ea57[_0x47e096(0xf0)]=[..._0x549968,..._0x251c9b];}const _0x1a379a={..._0x8ccc7c['lpzdz'](asRecord,_0x8552a5?.['contextOptions'])??{}};_0x1a379a['ignoreHTTPSErrors']=!![];typeof _0x328fa6[_0x47e096(0x10e)]===_0x8ccc7c[_0x47e096(0x12f)]&&(_0x1a379a[_0x47e096(0x10e)]=_0x328fa6[_0x47e096(0x10e)]);const _0x11bee8=mergeHeaders(asRecord(_0x1a379a['extraHTTPHeaders']),asRecord(_0x328fa6['headers']));return _0x11bee8?_0x1a379a[_0x47e096(0x101)]=_0x11bee8:delete _0x1a379a['extraHTTPHeaders'],_0x3d7d0a['storageStatePath']&&(_0x1a379a['storageState']=_0x3d7d0a['storageStatePath']),{'launchOptions':_0x55ea57,'contextOptions':_0x1a379a};}function _0x4917(){const _0x3d9bd7=['GYUsv','egaGu','WxUpY','ZEEmc','233934qlXdbm','isArray','tempAuthPath','mNroG','sessions','userAgent','catch','hXlkm','filter','includes','WpsMq','LqLOR','auth.json','length','DfnnX','UHsGS','yhIPp','acxUJ','eQiYd','path','tGpwG','--allow-running-insecure-content','utf-8','setupHeader','3InAhfL','bgsVi','--no-sandbox','header','1266946nwspyb','WCUtI','4497141rySLIU','asdJU','1588401SpVfCt','.json','MKWIK','ytYCQ','core','ZnMcZ','ellua','hVTVh','ImKJp','--unsafely-treat-insecure-origin-as-secure=http://localhost','join','40xPZVyI','vision','local','WzVVk','JINbb','--disable-setuid-sandbox','message','5048CbqiyF','Uahbi','FTyXB','gfTiL','4TLXVoV','trBUC','allow','none','FiZLY','oKYNc','4585qbiUmq','clipboard-write','WcZGz','string','ranger-auth-','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','now','MVWXI','2565715YiEPxL','warn','ranger-config','Failed\x20to\x20decrypt\x20auth\x20state:\x20','--disable-web-security','KXZMb','replace','headless','args','clipboard-read','storageState','Btqcz','-cli.json','safeMode','launchOptions','QBaez','split','637578oYwccQ','UwHFN','pVabS','cdpEndpoint','legacy','map','IJREE','bgGhz','extraHTTPHeaders','setupHeaders','CqYGy','stringify'];_0x4917=function(){return _0x3d9bd7;};return _0x4917();}export async function buildPlaywrightConfig(_0x54c17b,_0x3e286c,_0x9feff4,_0x42b082){const _0x5aec0e=_0x4b6d94,_0x101aff={'ckYbA':_0x5aec0e(0x139),'SfdkT':_0x5aec0e(0xf1),'mNroG':_0x5aec0e(0xe1),'FTyXB':function(_0x16d975,_0x46b77f,_0x21cb51){return _0x16d975(_0x46b77f,_0x21cb51);},'uMYUW':function(_0x37fa93,_0x3544c7){return _0x37fa93(_0x3544c7);},'LqLOR':function(_0x28bf2f){return _0x28bf2f();},'xbSZb':function(_0x567432,_0x3c6242){return _0x567432(_0x3c6242);},'LvkIz':function(_0x5767c5,_0x20428c,_0x78b0b){return _0x5767c5(_0x20428c,_0x78b0b);},'rlHCk':function(_0x1db2e9,_0x1852b9,_0x4ca3d7,_0x377d5c){return _0x1db2e9(_0x1852b9,_0x4ca3d7,_0x377d5c);},'QdImV':_0x5aec0e(0x12d),'ltOMQ':'tabs','pzZJk':_0x5aec0e(0x135),'rGSNm':_0x5aec0e(0xdc),'WpsMq':function(_0x13c04e,_0x252be4){return _0x13c04e===_0x252be4;},'gfTiL':function(_0x28b2c3,_0x5af891){return _0x28b2c3===_0x5af891;},'MVWXI':'ranger-config'},_0x4ea93e=getEnvDir(_0x3e286c),_0x1d1e23=_0x101aff[_0x5aec0e(0x13d)](join,_0x4ea93e,'auth.json.enc'),_0x1215ea=join(_0x4ea93e,_0x5aec0e(0x115));let _0x33cc45,_0x2cb4b9;if(_0x101aff['uMYUW'](existsSync,_0x1d1e23))try{const _0x273227=await _0x101aff[_0x5aec0e(0x114)](getToken);if(!_0x273227)throw new Error(_0x5aec0e(0xe5));const _0x4467cc=await _0x101aff['xbSZb'](readFile,_0x1d1e23),_0x489e0f=decrypt(_0x4467cc,_0x273227);_0x2cb4b9=_0x101aff['FTyXB'](join,tmpdir(),'ranger-auth-'+Date['now']()+_0x5aec0e(0x12a)),await _0x101aff['LvkIz'](writeFile,_0x2cb4b9,_0x489e0f),_0x33cc45=_0x2cb4b9;}catch(_0x26445d){const _0x4428d1=_0x26445d instanceof Error?_0x26445d['message']:String(_0x26445d);throw new Error(_0x5aec0e(0xeb)+_0x4428d1);}else _0x101aff['uMYUW'](existsSync,_0x1215ea)&&(_0x33cc45=_0x1215ea);const _0x5d1472=_0x9feff4||_0x101aff[_0x5aec0e(0x114)](randomUUID),_0x5edd07=_0x101aff['rlHCk'](join,getRangerDir(),_0x5aec0e(0x10d),_0x5d1472),_0x17019c=Boolean(_0x54c17b['cdpEndpoint']),_0x9c9e2a=_0x17019c?{'browserName':'chromium','cdpEndpoint':_0x54c17b['cdpEndpoint']}:((()=>{const _0x4384f8=_0x5aec0e,{launchOptions:_0x639c92,contextOptions:_0x40bbeb}=buildBrowserOptionsFromSettings(_0x54c17b,{'headless':_0x42b082?![]:_0x54c17b[_0x4384f8(0xef)]??!![],'storageStatePath':_0x33cc45});if(process['getuid']?.()===0x0){const _0x2d2cd8=[_0x4384f8(0x123),_0x101aff['ckYbA']],_0x2ebe11=_0x639c92[_0x4384f8(0xf0)]??[],_0x46a6b3=_0x2d2cd8[_0x4384f8(0x111)](_0x350b39=>!_0x2ebe11['includes'](_0x350b39));_0x639c92[_0x4384f8(0xf0)]=[..._0x2ebe11,..._0x46a6b3];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x639c92,'contextOptions':{..._0x40bbeb,'permissions':[_0x101aff['SfdkT'],_0x101aff[_0x4384f8(0x10c)]],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x329bd9={'name':_0x3e286c,'browser':_0x9c9e2a,'capabilities':[_0x101aff['QdImV'],_0x101aff['ltOMQ'],'install','pdf',_0x101aff['pzZJk']],'imageResponses':_0x101aff['rGSNm'],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5edd07};if(!_0x17019c){const _0x486f49=_0x329bd9['browser'],_0x4b9ac4=_0x486f49['contextOptions'];if(_0x101aff[_0x5aec0e(0x113)](_0x4b9ac4['userAgent'],undefined))delete _0x4b9ac4[_0x5aec0e(0x10e)];if(_0x101aff[_0x5aec0e(0xd9)](_0x4b9ac4[_0x5aec0e(0xf2)],undefined))delete _0x4b9ac4[_0x5aec0e(0xf2)];}const _0x4a57c4=join(tmpdir(),_0x101aff[_0x5aec0e(0xe7)]);!existsSync(_0x4a57c4)&&await mkdir(_0x4a57c4,{'recursive':!![]});const _0x4dcda9=_0x101aff[_0x5aec0e(0x13d)](join,_0x4a57c4,_0x3e286c+'-'+Date[_0x5aec0e(0xe6)]()+'.json');return await _0x101aff[_0x5aec0e(0x13d)](writeFile,_0x4dcda9,JSON['stringify'](_0x329bd9,null,0x2)),{'configPath':_0x4dcda9,'tempAuthPath':_0x2cb4b9};}export async function buildPlaywrightCliConfig(_0x968492,_0x28a91b,_0x37302c,_0x1c4d69){const _0x3a4b7c=_0x4b6d94,_0x1951d9={'WxUpY':function(_0x581678,_0xcb04e7,_0x30c20d){return _0x581678(_0xcb04e7,_0x30c20d);},'FvMjb':function(_0xc06740,_0x40c509){return _0xc06740===_0x40c509;},'fVQWL':'--no-sandbox','YyMtN':'clipboard-read','Btqcz':function(_0x30f538,_0x424501,_0x337316){return _0x30f538(_0x424501,_0x337316);},'PofJx':'auth.json.enc','ZnMcZ':function(_0x50e674,_0x5382fb){return _0x50e674(_0x5382fb);},'WCUtI':function(_0x29bca6){return _0x29bca6();},'iXZQo':function(_0x95e511,_0xf9a50e){return _0x95e511(_0xf9a50e);},'ksbMA':function(_0x3a3936,_0x40ac8c,_0x2b0cf8){return _0x3a3936(_0x40ac8c,_0x2b0cf8);},'YOaYu':function(_0x2cf1ec){return _0x2cf1ec();},'hVTVh':function(_0x2f4923,_0x50ce15){return _0x2f4923(_0x50ce15);},'yhIPp':function(_0x1d2fb5,_0x4b04e1,_0x201906,_0x5de13c){return _0x1d2fb5(_0x4b04e1,_0x201906,_0x5de13c);},'MKWIK':'sessions','WzVVk':'chromium','Uahbi':function(_0x4a4cc2,_0xb5cb20){return _0x4a4cc2===_0xb5cb20;},'CqYGy':'file','eIuhR':_0x3a4b7c(0xea),'hXlkm':function(_0x148483,_0x403731,_0x147e93){return _0x148483(_0x403731,_0x147e93);}},_0x535186=getEnvDir(_0x28a91b),_0x5791ff=_0x1951d9['Btqcz'](join,_0x535186,_0x1951d9['PofJx']),_0x153b50=_0x1951d9[_0x3a4b7c(0xf3)](join,_0x535186,_0x3a4b7c(0x115));let _0xf7a5f0,_0x50e47f;if(_0x1951d9[_0x3a4b7c(0x12e)](existsSync,_0x5791ff))try{const _0x3be990=await _0x1951d9[_0x3a4b7c(0x126)](getToken);if(!_0x3be990)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x30f2e6=await _0x1951d9['iXZQo'](readFile,_0x5791ff),_0x511e18=_0x1951d9['ksbMA'](decrypt,_0x30f2e6,_0x3be990);_0x50e47f=join(_0x1951d9['YOaYu'](tmpdir),_0x3a4b7c(0xe4)+Date['now']()+'.json'),await _0x1951d9['Btqcz'](writeFile,_0x50e47f,_0x511e18),_0xf7a5f0=_0x50e47f;}catch(_0x548738){const _0x142bd5=_0x548738 instanceof Error?_0x548738[_0x3a4b7c(0x13a)]:String(_0x548738);throw new Error(_0x3a4b7c(0xeb)+_0x142bd5);}else _0x1951d9[_0x3a4b7c(0x130)](existsSync,_0x153b50)&&(_0xf7a5f0=_0x153b50);const _0x1835ff=_0x37302c||randomUUID(),_0x19d543=_0x1951d9[_0x3a4b7c(0x119)](join,_0x1951d9['WCUtI'](getRangerDir),_0x1951d9[_0x3a4b7c(0x12b)],_0x1835ff),_0x268358=Boolean(_0x968492[_0x3a4b7c(0xfc)]),_0x10e248=_0x268358?{'browserName':_0x1951d9[_0x3a4b7c(0x137)],'cdpEndpoint':_0x968492[_0x3a4b7c(0xfc)]}:((()=>{const _0x1337b9=_0x3a4b7c,{launchOptions:_0xee3523,contextOptions:_0x3a564b}=_0x1951d9[_0x1337b9(0x107)](buildBrowserOptionsFromSettings,_0x968492,{'headless':_0x1c4d69?![]:_0x968492[_0x1337b9(0xef)]??!![],'storageStatePath':_0xf7a5f0});if(_0x1951d9['FvMjb'](process['getuid']?.(),0x0)){const _0x4d341f=[_0x1951d9['fVQWL'],_0x1337b9(0x139)],_0x4606b5=_0xee3523['args']??[],_0x36959f=_0x4d341f[_0x1337b9(0x111)](_0x33ec7f=>!_0x4606b5[_0x1337b9(0x112)](_0x33ec7f));_0xee3523[_0x1337b9(0xf0)]=[..._0x4606b5,..._0x36959f];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0xee3523,'contextOptions':{..._0x3a564b,'permissions':[_0x1951d9['YyMtN'],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x268358){const _0xfde5f4=_0x10e248['contextOptions'];if(_0x1951d9[_0x3a4b7c(0x13c)](_0xfde5f4[_0x3a4b7c(0x10e)],undefined))delete _0xfde5f4[_0x3a4b7c(0x10e)];if(_0xfde5f4[_0x3a4b7c(0xf2)]===undefined)delete _0xfde5f4['storageState'];}const _0x210b40={'browser':_0x10e248,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x19d543,'outputMode':_0x1951d9[_0x3a4b7c(0x103)],'codegen':_0x3a4b7c(0xdd)},_0x1abeb9=join(tmpdir(),_0x1951d9['eIuhR']);!_0x1951d9[_0x3a4b7c(0x12e)](existsSync,_0x1abeb9)&&await mkdir(_0x1abeb9,{'recursive':!![]});const _0x1cb3ed=_0x1951d9[_0x3a4b7c(0x110)](join,_0x1abeb9,_0x28a91b+'-'+Date[_0x3a4b7c(0xe6)]()+_0x3a4b7c(0xf4));return await _0x1951d9['WxUpY'](writeFile,_0x1cb3ed,JSON[_0x3a4b7c(0x104)](_0x210b40,null,0x2)),{'configPath':_0x1cb3ed,'tempAuthPath':_0x50e47f};}export function getNestedValue(_0x40ae83,_0x1f7125){const _0x2014c0=_0x4b6d94,_0x175277={'UHsGS':function(_0x38be4c,_0x28e6e3){return _0x38be4c(_0x28e6e3);},'DAeoZ':function(_0x1a8c00,_0x29a9e3){return _0x1a8c00===_0x29a9e3;},'trBUC':'object'},_0x30e93a=_0x175277[_0x2014c0(0x118)](parseKeyPath,_0x1f7125);let _0x20e1d7=_0x40ae83;for(const _0x96176f of _0x30e93a){if(_0x175277['DAeoZ'](_0x20e1d7,null)||_0x20e1d7===undefined||typeof _0x20e1d7!==_0x175277[_0x2014c0(0xdb)])return undefined;_0x20e1d7=_0x20e1d7[_0x96176f];}return _0x20e1d7;}export function setNestedValue(_0x69bcbd,_0x1b77f6,_0x48bb59){const _0x4bb0f5=_0x4b6d94,_0x40a84f={'IJREE':function(_0x4c7d88,_0x3f8db2){return _0x4c7d88(_0x3f8db2);},'qgCOD':function(_0x2c3bcc,_0x507ae5){return _0x2c3bcc<_0x507ae5;},'mVqeG':function(_0x338b91,_0x3576a5){return _0x338b91!==_0x3576a5;}},_0x1b276b=_0x40a84f[_0x4bb0f5(0xff)](parseKeyPath,_0x1b77f6);let _0x431b38=_0x69bcbd;for(let _0x5b4195=0x0;_0x40a84f['qgCOD'](_0x5b4195,_0x1b276b[_0x4bb0f5(0x116)]-0x1);_0x5b4195++){const _0x1cac2a=_0x1b276b[_0x5b4195];(!(_0x1cac2a in _0x431b38)||_0x40a84f['mVqeG'](typeof _0x431b38[_0x1cac2a],'object'))&&(_0x431b38[_0x1cac2a]={}),_0x431b38=_0x431b38[_0x1cac2a];}_0x431b38[_0x1b276b[_0x1b276b['length']-0x1]]=_0x48bb59;}export function deleteNestedValue(_0x3f12ec,_0x505b9a){const _0x200686=_0x4b6d94,_0x2f07d6={'XKBSZ':function(_0x4e2f53,_0x22640b){return _0x4e2f53<_0x22640b;},'egaGu':function(_0x1f102b,_0x3a72d7){return _0x1f102b-_0x3a72d7;},'JINbb':'object','tGpwG':function(_0x2af453,_0x296bab){return _0x2af453===_0x296bab;},'VROLr':function(_0x196c2a,_0x1b02df){return _0x196c2a in _0x1b02df;}},_0x564c06=parseKeyPath(_0x505b9a);let _0x34dc95=_0x3f12ec;for(let _0x3a8c69=0x0;_0x2f07d6['XKBSZ'](_0x3a8c69,_0x2f07d6[_0x200686(0x106)](_0x564c06['length'],0x1));_0x3a8c69++){if(_0x34dc95===null||_0x34dc95===undefined||typeof _0x34dc95!==_0x2f07d6[_0x200686(0x138)])return![];_0x34dc95=_0x34dc95[_0x564c06[_0x3a8c69]];}if(_0x2f07d6[_0x200686(0x11d)](_0x34dc95,null)||_0x34dc95===undefined||typeof _0x34dc95!==_0x2f07d6[_0x200686(0x138)])return![];const _0xc6f29d=_0x564c06[_0x2f07d6['egaGu'](_0x564c06[_0x200686(0x116)],0x1)];if(_0x2f07d6['VROLr'](_0xc6f29d,_0x34dc95))return delete _0x34dc95[_0xc6f29d],!![];return![];}function parseKeyPath(_0x3b5817){const _0x40b682=_0x4b6d94,_0x27e4e1={'eQiYd':_0x40b682(0x124),'KXZMb':function(_0xd02dfd,_0x39a462){return _0xd02dfd===_0x39a462;}},_0x780ee7=_0x3b5817[_0x40b682(0xf8)]('.');return _0x780ee7[0x0]===_0x27e4e1[_0x40b682(0x11b)]&&(_0x780ee7[0x0]='headers'),_0x27e4e1[_0x40b682(0xed)](_0x780ee7[0x0],_0x40b682(0x120))&&(_0x780ee7[0x0]=_0x40b682(0x102)),_0x780ee7;}export function formatSettings(_0x134cbf,_0x294d8f=0x0){const _0x1caf68=_0x4b6d94,_0x600d7f={'fMdcp':function(_0x2ffc98,_0x3f0d97){return _0x2ffc98===_0x3f0d97;},'AIjFB':function(_0x5862c5,_0x519f62){return _0x5862c5===_0x519f62;}},_0x220145=[],_0x2479b3='\x20\x20'['repeat'](_0x294d8f);for(const [_0x32d13c,_0x5ebe74]of Object['entries'](_0x134cbf)){if(_0x600d7f['fMdcp'](_0x5ebe74,undefined))continue;if(_0x600d7f['AIjFB'](typeof _0x5ebe74,'object')&&_0x5ebe74!==null){_0x220145['push'](''+_0x2479b3+_0x32d13c+':');for(const [_0xbc1c7f,_0x1b66ea]of Object['entries'](_0x5ebe74)){_0x220145['push'](_0x2479b3+'\x20\x20'+_0xbc1c7f+':\x20'+_0x1b66ea);}}else _0x220145['push'](''+_0x2479b3+_0x32d13c+':\x20'+_0x5ebe74);}return _0x220145[_0x1caf68(0x133)]('\x0a');}
@@ -1 +1 @@
1
- function _0x2306(_0x27cf02,_0x134d45){_0x27cf02=_0x27cf02-0x1f2;const _0x369933=_0x3699();let _0x230608=_0x369933[_0x27cf02];return _0x230608;}(function(_0x1cf22a,_0x61481f){const _0x180eaf=_0x2306,_0x1f9c1c=_0x1cf22a();while(!![]){try{const _0x3957c3=parseInt(_0x180eaf(0x1f8))/0x1*(-parseInt(_0x180eaf(0x1f7))/0x2)+-parseInt(_0x180eaf(0x1f6))/0x3*(parseInt(_0x180eaf(0x1f3))/0x4)+-parseInt(_0x180eaf(0x1fa))/0x5+-parseInt(_0x180eaf(0x1fb))/0x6*(parseInt(_0x180eaf(0x1f5))/0x7)+-parseInt(_0x180eaf(0x1f9))/0x8+-parseInt(_0x180eaf(0x1fc))/0x9+parseInt(_0x180eaf(0x1f2))/0xa*(parseInt(_0x180eaf(0x1f4))/0xb);if(_0x3957c3===_0x61481f)break;else _0x1f9c1c['push'](_0x1f9c1c['shift']());}catch(_0xf612c){_0x1f9c1c['push'](_0x1f9c1c['shift']());}}}(_0x3699,0xb6440));import{readFileSync}from'fs';function _0x3699(){const _0x38bb72=['208234DJcBFm','2thpSod','2546600HAkRXQ','5033305GhUbFP','18DGuHzy','12236382XGRmFA','utf-8','30QKEgQa','209724lxPJEK','19082679VFYLiL','3406963NjFRoV','6nGIocq'];_0x3699=function(){return _0x38bb72;};return _0x3699();}import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x5702ec){const _0x21278e=_0x2306,_0x37f6a9={'jatLi':'skills','EuOTz':_0x21278e(0x1fd)},_0x5e3b31=join(__dirname,'..','..',_0x37f6a9['jatLi']),_0x569648=join(_0x5e3b31,_0x5702ec);try{return readFileSync(_0x569648,_0x37f6a9['EuOTz']);}catch{return'';}}export function getRangerSkillContent(){return readSkillContent('ranger/SKILL.md');}
1
+ (function(_0x22d1f5,_0x1f1235){const _0x579968=_0x4604,_0x2b1971=_0x22d1f5();while(!![]){try{const _0x8ee79e=-parseInt(_0x579968(0x1d9))/0x1*(-parseInt(_0x579968(0x1dc))/0x2)+parseInt(_0x579968(0x1d4))/0x3+-parseInt(_0x579968(0x1d5))/0x4+-parseInt(_0x579968(0x1d7))/0x5*(-parseInt(_0x579968(0x1da))/0x6)+-parseInt(_0x579968(0x1d6))/0x7+-parseInt(_0x579968(0x1d8))/0x8+parseInt(_0x579968(0x1db))/0x9;if(_0x8ee79e===_0x1f1235)break;else _0x2b1971['push'](_0x2b1971['shift']());}catch(_0x4cb978){_0x2b1971['push'](_0x2b1971['shift']());}}}(_0x5cff,0x3562c));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';function _0x4604(_0x5b2d68,_0x26886e){_0x5b2d68=_0x5b2d68-0x1d4;const _0x5cff3c=_0x5cff();let _0x4604b7=_0x5cff3c[_0x5b2d68];return _0x4604b7;}function _0x5cff(){const _0x9476f6=['286761JMGJjN','1637436RzfFwk','571060IIyrDf','541630zblEpP','430520eztkeA','26223sTlCIY','6BBSBMc','2439504amYvVe','22MXdUJJ'];_0x5cff=function(){return _0x9476f6;};return _0x5cff();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x5b1772){const _0x449bf4={'hgKAH':function(_0x7492d9,_0x16dbef,_0x4efdb6,_0x7dcd36,_0x33d791){return _0x7492d9(_0x16dbef,_0x4efdb6,_0x7dcd36,_0x33d791);},'ZwFMy':'skills','JlQXB':function(_0x494921,_0x5c84d1,_0x4fb15a){return _0x494921(_0x5c84d1,_0x4fb15a);}},_0x379f6f=_0x449bf4['hgKAH'](join,__dirname,'..','..',_0x449bf4['ZwFMy']),_0x227cb9=join(_0x379f6f,_0x5b1772);try{return _0x449bf4['JlQXB'](readFileSync,_0x227cb9,'utf-8');}catch{return'';}}export function getRangerSkillContent(){return readSkillContent('ranger/SKILL.md');}
@@ -1 +1 @@
1
- const _0x5381d9=_0x2a9f;(function(_0x4abc94,_0x2b0b60){const _0x144072=_0x2a9f,_0x583ec2=_0x4abc94();while(!![]){try{const _0x454d40=parseInt(_0x144072(0x11f))/0x1+-parseInt(_0x144072(0x10f))/0x2*(-parseInt(_0x144072(0x10b))/0x3)+-parseInt(_0x144072(0x117))/0x4*(parseInt(_0x144072(0x11b))/0x5)+parseInt(_0x144072(0x116))/0x6+-parseInt(_0x144072(0x125))/0x7*(-parseInt(_0x144072(0x108))/0x8)+parseInt(_0x144072(0x10d))/0x9*(parseInt(_0x144072(0x107))/0xa)+-parseInt(_0x144072(0x10e))/0xb*(parseInt(_0x144072(0x111))/0xc);if(_0x454d40===_0x2b0b60)break;else _0x583ec2['push'](_0x583ec2['shift']());}catch(_0x29759f){_0x583ec2['push'](_0x583ec2['shift']());}}}(_0x2d80,0x62da5));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';function _0x2d80(){const _0x55b3b5=['zRDWF','ZvojA','\x20\x20Removed\x20deprecated\x20skill:\x20','feature-tracker','QdDnp','\x20\x20Files:\x20','dKmlv','nwuJR','1142630nxbrvV','8YhlEdu','GQKFl','IIeub','3GtYbnQ','bug-bash','9IfkDMP','553905IdfwMg','174358WilUeW','warn','60zejzuZ','\x20\x20Location:\x20','.md','dURqB','push','83082GEorDB','8rweHDM','claude','join','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','1881960ajiYMB','match','TadXF','PWGQG','731873VEyuJG','utf-8','e2e-test-recommender','ranger','PjiqA','oXcoP','3236086aDHCvk','\x20\x20Installed\x20skill:\x20','log','catch','kcaKS','XiCdO'];_0x2d80=function(){return _0x55b3b5;};return _0x2d80();}function _0x2a9f(_0x269bdc,_0x506536){_0x269bdc=_0x269bdc-0x107;const _0x2d80d4=_0x2d80();let _0x2a9fc9=_0x2d80d4[_0x269bdc];return _0x2a9fc9;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x5381d9(0x122)];export const DEPRECATED_SKILLS=[_0x5381d9(0x121),_0x5381d9(0x10c),_0x5381d9(0x12e)];export async function installSkill(_0x1a8ce3,_0x86c380={}){const _0x3cda21=_0x5381d9,_0xb7c938={'zRDWF':'project','GQKFl':function(_0x5d0e77){return _0x5d0e77();},'XiCdO':function(_0x387e75,_0x1c20fa,_0x4c4129){return _0x387e75(_0x1c20fa,_0x4c4129);},'QdDnp':function(_0x3f1a64,_0x46d238){return _0x3f1a64(_0x46d238);},'PWGQG':'SKILL.md','nwuJR':function(_0x5587a8,_0x4264d7){return _0x5587a8===_0x4264d7;},'TadXF':'opencode','xtAGW':function(_0x34760f,_0x3740bc,_0x489b3a){return _0x34760f(_0x3740bc,_0x489b3a);},'oXcoP':function(_0x47c3bd,_0x48402b,_0x31b453){return _0x47c3bd(_0x48402b,_0x31b453);},'IIeub':_0x3cda21(0x120),'EQfKt':function(_0x4e755b,_0x4a76c7,_0x2af9fd){return _0x4e755b(_0x4a76c7,_0x2af9fd);},'ZvojA':function(_0x2786dd,_0x556a37,_0x21cc94,_0x3aeea0){return _0x2786dd(_0x556a37,_0x21cc94,_0x3aeea0);},'PjiqA':function(_0x72fe9b,_0x3a8da2){return _0x72fe9b>_0x3a8da2;}},{level:level=_0xb7c938[_0x3cda21(0x12b)],cliVersion:_0x58c09a,platform:platform=_0x3cda21(0x118)}=_0x86c380,_0x938c8e=_0xb7c938[_0x3cda21(0x109)](getSourceSkillsDir),_0x814ab9=join(_0x938c8e,_0x1a8ce3),_0x391db1=_0xb7c938[_0x3cda21(0x12a)](join,_0x938c8e,_0x1a8ce3+_0x3cda21(0x113)),_0x1880af=_0xb7c938[_0x3cda21(0x12f)](existsSync,_0x814ab9)&&_0xb7c938[_0x3cda21(0x12f)](statSync,_0x814ab9)['isDirectory']()&&existsSync(_0xb7c938[_0x3cda21(0x12a)](join,_0x814ab9,_0xb7c938['PWGQG'])),_0x19d790=_0xb7c938[_0x3cda21(0x12f)](existsSync,_0x391db1);if(!_0x1880af&&!_0x19d790)return console['warn']('\x20\x20Skill\x20not\x20found:\x20'+_0x1a8ce3),![];const _0x1a1519=_0xb7c938[_0x3cda21(0x132)](platform,_0xb7c938[_0x3cda21(0x11d)])?getOpencodeSkillsDir(level):getSkillsDir(level),_0x5a81ee=join(_0x1a1519,_0x1a8ce3);await _0xb7c938['xtAGW'](mkdir,_0x5a81ee,{'recursive':!![]});let _0x590573,_0x10764c=[];if(_0x1880af){const _0x5d74c1=await readdir(_0x814ab9),_0x3bc900=_0x5d74c1['filter'](_0x6df991=>_0x6df991['endsWith'](_0x3cda21(0x113)));for(const _0x5ca6a4 of _0x3bc900){const _0x2a5815=join(_0x814ab9,_0x5ca6a4),_0x2c307d=_0xb7c938[_0x3cda21(0x124)](join,_0x5a81ee,_0x5ca6a4);await copyFile(_0x2a5815,_0x2c307d),_0x10764c[_0x3cda21(0x115)](_0x5ca6a4);}_0x590573=await _0xb7c938['XiCdO'](readFile,join(_0x814ab9,_0xb7c938['PWGQG']),_0xb7c938[_0x3cda21(0x10a)]);}else{_0x590573=await readFile(_0x391db1,_0x3cda21(0x120));const _0xaf6725=_0xb7c938['EQfKt'](join,_0x5a81ee,_0xb7c938['PWGQG']);await _0xb7c938[_0x3cda21(0x12c)](writeFile,_0xaf6725,_0x590573,'utf-8'),_0x10764c['push'](_0xb7c938[_0x3cda21(0x11e)]);}const {name:_0x2a8821}=parseFrontmatter(_0x590573);return console['log'](_0x3cda21(0x126)+_0x2a8821),console[_0x3cda21(0x127)](_0x3cda21(0x112)+_0x5a81ee),_0xb7c938[_0x3cda21(0x123)](_0x10764c['length'],0x1)&&console['log'](_0x3cda21(0x130)+_0x10764c[_0x3cda21(0x119)](',\x20')),_0xb7c938[_0x3cda21(0x12c)](logLocalAgentInstallation,_0x1a8ce3,{'skillDisplayName':_0x2a8821,'installLevel':level},_0x58c09a)[_0x3cda21(0x128)](()=>{}),!![];}function getSourceSkillsDir(){const _0x3a0485=_0x5381d9,_0xcc2e5d={'kcaKS':'skills','dURqB':function(_0x54519d,_0x5c467f){return _0x54519d(_0x5c467f);}},_0xfd6339=[join(__dirname,'..','..',_0xcc2e5d[_0x3a0485(0x129)]),join(__dirname,'..','..','..',_0xcc2e5d[_0x3a0485(0x129)])];for(const _0x48e2fa of _0xfd6339){if(_0xcc2e5d[_0x3a0485(0x114)](existsSync,_0x48e2fa))return _0x48e2fa;}return _0xfd6339[0x0];}function parseFrontmatter(_0x4cdd13){const _0x219b9e=_0x5381d9,_0xc11fd5=_0x4cdd13['match'](/^---\n([\s\S]+?)\n---/);if(!_0xc11fd5)throw new Error('Invalid\x20skill\x20frontmatter');const _0x1472b1=_0xc11fd5[0x1],_0x14731d=_0x1472b1[_0x219b9e(0x11c)](/name:\s*(.+)/),_0x1a2954=_0x1472b1['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0x14731d?.[0x1]['trim']()||'','description':_0x1a2954?.[0x1]['trim']()||''};}export async function removeSkill(_0x18615d,_0x18d501){const _0x281553=_0x5381d9,_0x4947ba={'dKmlv':function(_0x25c120,_0x59181e,_0x5c9387){return _0x25c120(_0x59181e,_0x5c9387);}},_0x560d34=getSkillsDir(_0x18d501),_0x45c08c=_0x4947ba[_0x281553(0x131)](join,_0x560d34,_0x18615d);if(!existsSync(_0x45c08c))return![];try{return await rm(_0x45c08c,{'recursive':!![]}),console[_0x281553(0x127)](_0x281553(0x12d)+_0x18615d),!![];}catch{return console[_0x281553(0x110)](_0x281553(0x11a)+_0x18615d),![];}}
1
+ const _0x2d7cc7=_0x2d6b;function _0x2d6b(_0x55c0aa,_0x332b01){_0x55c0aa=_0x55c0aa-0x6b;const _0x348244=_0x3482();let _0x2d6b0c=_0x348244[_0x55c0aa];return _0x2d6b0c;}(function(_0x45e253,_0x250d08){const _0x2057a8=_0x2d6b,_0x5933c3=_0x45e253();while(!![]){try{const _0xbd9909=-parseInt(_0x2057a8(0x8d))/0x1+parseInt(_0x2057a8(0x74))/0x2*(-parseInt(_0x2057a8(0x71))/0x3)+-parseInt(_0x2057a8(0x6b))/0x4*(-parseInt(_0x2057a8(0x7e))/0x5)+parseInt(_0x2057a8(0x8c))/0x6*(-parseInt(_0x2057a8(0x8e))/0x7)+-parseInt(_0x2057a8(0x7d))/0x8+parseInt(_0x2057a8(0x70))/0x9*(parseInt(_0x2057a8(0x7b))/0xa)+-parseInt(_0x2057a8(0x84))/0xb*(-parseInt(_0x2057a8(0x8f))/0xc);if(_0xbd9909===_0x250d08)break;else _0x5933c3['push'](_0x5933c3['shift']());}catch(_0x355197){_0x5933c3['push'](_0x5933c3['shift']());}}}(_0x3482,0x3f0ff));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';function _0x3482(){const _0x315ad8=['match','54IhiVhE','3TLARqz','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','push','997882smgHNQ','Invalid\x20skill\x20frontmatter','join','SKILL.md','EAoAt','ObfWN','utf-8','7170Qyapri','bug-bash','2101480pehYHE','780GSvnIy','vNNjW','\x20\x20Location:\x20','\x20\x20Skill\x20not\x20found:\x20','yEuMU','log','15862dwKBBe','catch','isDirectory','UtciM','skills','\x20\x20Removed\x20deprecated\x20skill:\x20','project','JGFEM','24mKbXGl','207915bivTZm','774319hanuka','9732NUIAwc','hQide','\x20\x20Files:\x20','.md','e2e-test-recommender','trim','filter','length','YkdLb','12732derSeG','hfTmD','ranger','VqYMa'];_0x3482=function(){return _0x315ad8;};return _0x3482();}import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x2d7cc7(0x6d)];export const DEPRECATED_SKILLS=[_0x2d7cc7(0x93),_0x2d7cc7(0x7c),'feature-tracker'];export async function installSkill(_0xfcdaf0,_0x5ded94={}){const _0x143551=_0x2d7cc7,_0xdb0ba0={'EAoAt':_0x143551(0x8a),'ObfWN':'claude','hQide':function(_0x1eb3e6,_0x58de61,_0x27db5a){return _0x1eb3e6(_0x58de61,_0x27db5a);},'hfTmD':function(_0x2ff31d,_0x5d4f37){return _0x2ff31d(_0x5d4f37);},'wfhLF':function(_0x3565ff,_0x222cd4){return _0x3565ff(_0x222cd4);},'YkdLb':function(_0x347bb9,_0x2a757d){return _0x347bb9===_0x2a757d;},'NJHLM':'opencode','UQNEh':function(_0x3fb7b8,_0xa109dc,_0x11c740){return _0x3fb7b8(_0xa109dc,_0x11c740);},'yEuMU':function(_0x51f8c9,_0x6f8dc3,_0x122bc2){return _0x51f8c9(_0x6f8dc3,_0x122bc2);},'VqYMa':_0x143551(0x77),'JGFEM':function(_0x4d8d10,_0x1ba87d,_0x452952,_0x5e29ce){return _0x4d8d10(_0x1ba87d,_0x452952,_0x5e29ce);},'UgDDP':_0x143551(0x7a),'vNNjW':function(_0x5a0943,_0x38cde7){return _0x5a0943>_0x38cde7;}},{level:level=_0xdb0ba0[_0x143551(0x78)],cliVersion:_0x3b47b5,platform:platform=_0xdb0ba0[_0x143551(0x79)]}=_0x5ded94,_0x5c1b1c=getSourceSkillsDir(),_0x52b97d=join(_0x5c1b1c,_0xfcdaf0),_0x5e357d=_0xdb0ba0[_0x143551(0x90)](join,_0x5c1b1c,_0xfcdaf0+'.md'),_0x47e88d=existsSync(_0x52b97d)&&_0xdb0ba0['hfTmD'](statSync,_0x52b97d)[_0x143551(0x86)]()&&_0xdb0ba0[_0x143551(0x6c)](existsSync,_0xdb0ba0['hQide'](join,_0x52b97d,'SKILL.md')),_0x410221=_0xdb0ba0['wfhLF'](existsSync,_0x5e357d);if(!_0x47e88d&&!_0x410221)return console['warn'](_0x143551(0x81)+_0xfcdaf0),![];const _0x10fe9c=_0xdb0ba0[_0x143551(0x97)](platform,_0xdb0ba0['NJHLM'])?getOpencodeSkillsDir(level):getSkillsDir(level),_0x5ec1e0=join(_0x10fe9c,_0xfcdaf0);await mkdir(_0x5ec1e0,{'recursive':!![]});let _0x4dc7a0,_0x111aa3=[];if(_0x47e88d){const _0x2a0fe7=await readdir(_0x52b97d),_0x5df285=_0x2a0fe7[_0x143551(0x95)](_0x2b4ce8=>_0x2b4ce8['endsWith'](_0x143551(0x92)));for(const _0x4f7a8f of _0x5df285){const _0x1bf38c=join(_0x52b97d,_0x4f7a8f),_0x3848b3=_0xdb0ba0['UQNEh'](join,_0x5ec1e0,_0x4f7a8f);await _0xdb0ba0[_0x143551(0x82)](copyFile,_0x1bf38c,_0x3848b3),_0x111aa3['push'](_0x4f7a8f);}_0x4dc7a0=await _0xdb0ba0['hQide'](readFile,join(_0x52b97d,_0x143551(0x77)),_0x143551(0x7a));}else{_0x4dc7a0=await readFile(_0x5e357d,'utf-8');const _0x526159=join(_0x5ec1e0,_0xdb0ba0[_0x143551(0x6e)]);await _0xdb0ba0[_0x143551(0x8b)](writeFile,_0x526159,_0x4dc7a0,_0xdb0ba0['UgDDP']),_0x111aa3[_0x143551(0x73)](_0xdb0ba0['VqYMa']);}const {name:_0x259e50}=parseFrontmatter(_0x4dc7a0);return console['log']('\x20\x20Installed\x20skill:\x20'+_0x259e50),console[_0x143551(0x83)](_0x143551(0x80)+_0x5ec1e0),_0xdb0ba0[_0x143551(0x7f)](_0x111aa3[_0x143551(0x96)],0x1)&&console[_0x143551(0x83)](_0x143551(0x91)+_0x111aa3[_0x143551(0x76)](',\x20')),_0xdb0ba0[_0x143551(0x8b)](logLocalAgentInstallation,_0xfcdaf0,{'skillDisplayName':_0x259e50,'installLevel':level},_0x3b47b5)[_0x143551(0x85)](()=>{}),!![];}function getSourceSkillsDir(){const _0x4c2520=_0x2d7cc7,_0x2e3d3c={'Cptva':_0x4c2520(0x88)},_0x4a1363=[join(__dirname,'..','..',_0x4c2520(0x88)),join(__dirname,'..','..','..',_0x2e3d3c['Cptva'])];for(const _0x202730 of _0x4a1363){if(existsSync(_0x202730))return _0x202730;}return _0x4a1363[0x0];}function parseFrontmatter(_0x3ee83d){const _0x2691ae=_0x2d7cc7,_0x45f843=_0x3ee83d['match'](/^---\n([\s\S]+?)\n---/);if(!_0x45f843)throw new Error(_0x2691ae(0x75));const _0x407a90=_0x45f843[0x1],_0xcdb5f8=_0x407a90[_0x2691ae(0x6f)](/name:\s*(.+)/),_0x29cb9e=_0x407a90['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0xcdb5f8?.[0x1][_0x2691ae(0x94)]()||'','description':_0x29cb9e?.[0x1][_0x2691ae(0x94)]()||''};}export async function removeSkill(_0x1204c2,_0x23a6e9){const _0x4696ca=_0x2d7cc7,_0x4da0c2={'JvBND':function(_0x2ad1f3,_0x5f20b2){return _0x2ad1f3(_0x5f20b2);},'UtciM':function(_0x187579,_0x40450a,_0x5d6e78){return _0x187579(_0x40450a,_0x5d6e78);}},_0x4477e4=_0x4da0c2['JvBND'](getSkillsDir,_0x23a6e9),_0x27623c=_0x4da0c2[_0x4696ca(0x87)](join,_0x4477e4,_0x1204c2);if(!_0x4da0c2['JvBND'](existsSync,_0x27623c))return![];try{return await rm(_0x27623c,{'recursive':!![]}),console['log'](_0x4696ca(0x89)+_0x1204c2),!![];}catch{return console['warn'](_0x4696ca(0x72)+_0x1204c2),![];}}
@@ -1 +1 @@
1
- const _0xb0519e=_0x27be;(function(_0x96cf7a,_0x54b970){const _0x146da2=_0x27be,_0x22f9a8=_0x96cf7a();while(!![]){try{const _0x37263f=parseInt(_0x146da2(0x107))/0x1*(parseInt(_0x146da2(0x137))/0x2)+-parseInt(_0x146da2(0x148))/0x3*(-parseInt(_0x146da2(0x12a))/0x4)+-parseInt(_0x146da2(0x140))/0x5+-parseInt(_0x146da2(0x127))/0x6+parseInt(_0x146da2(0x124))/0x7+-parseInt(_0x146da2(0x134))/0x8*(-parseInt(_0x146da2(0x133))/0x9)+-parseInt(_0x146da2(0x123))/0xa;if(_0x37263f===_0x54b970)break;else _0x22f9a8['push'](_0x22f9a8['shift']());}catch(_0x419c81){_0x22f9a8['push'](_0x22f9a8['shift']());}}}(_0x15cf,0xe1806));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x5e4190,_0x18ab48){const _0x27a532=_0x27be,_0x18f791={'EAwBW':function(_0x310658,_0x56d770){return _0x310658&_0x56d770;},'WRKJY':function(_0x46dc78,_0x1685ee){return _0x46dc78&_0x1685ee;},'CowKd':function(_0x11b59a,_0xc9207c){return _0x11b59a-_0xc9207c;},'WaKYW':function(_0x3d81aa,_0x11531a){return _0x3d81aa*_0x11531a;},'PmXcP':function(_0x1a44cb,_0x22624f){return _0x1a44cb+_0x22624f;}};if(_0x18ab48>=_0x5e4190[_0x27a532(0x149)])return[0x0,0x0];const _0x255171=_0x5e4190[_0x18ab48];let _0x71f61d=0x1,_0x4bcff9=0x80;while(_0x71f61d<=0x8&&!_0x18f791['EAwBW'](_0x255171,_0x4bcff9)){_0x71f61d++,_0x4bcff9>>=0x1;}if(_0x18ab48+_0x71f61d>_0x5e4190[_0x27a532(0x149)])return[0x0,0x0];let _0x5b7e0d=_0x18f791[_0x27a532(0x144)](_0x255171,_0x18f791['CowKd'](_0x4bcff9,0x1));for(let _0x1ecf15=0x1;_0x1ecf15<_0x71f61d;_0x1ecf15++){_0x5b7e0d=_0x18f791[_0x27a532(0x139)](_0x5b7e0d,0x100)+_0x5e4190[_0x18f791[_0x27a532(0x13d)](_0x18ab48,_0x1ecf15)];}return[_0x5b7e0d,_0x71f61d];}function readId(_0x4da475,_0x400c59){const _0x4fa70c=_0x27be,_0x4342f3={'zAGTA':function(_0x34b6ca,_0x249be7){return _0x34b6ca>=_0x249be7;},'fMoWf':function(_0x3f3a45,_0x597d1a){return _0x3f3a45>=_0x597d1a;},'IauYH':function(_0x535990,_0x4cf626){return _0x535990<_0x4cf626;},'CkIuF':function(_0x326fcf,_0x4dd117){return _0x326fcf*_0x4dd117;}};if(_0x400c59>=_0x4da475['length'])return[0x0,0x0];const _0x35d971=_0x4da475[_0x400c59];let _0x5a8896;if(_0x35d971>=0x80)_0x5a8896=0x1;else{if(_0x35d971>=0x40)_0x5a8896=0x2;else{if(_0x4342f3['zAGTA'](_0x35d971,0x20))_0x5a8896=0x3;else{if(_0x4342f3[_0x4fa70c(0x11e)](_0x35d971,0x10))_0x5a8896=0x4;else return[_0x35d971,0x1];}}}if(_0x400c59+_0x5a8896>_0x4da475['length'])return[0x0,0x0];let _0x2b311f=0x0;for(let _0x56106d=0x0;_0x4342f3['IauYH'](_0x56106d,_0x5a8896);_0x56106d++){_0x2b311f=_0x4342f3[_0x4fa70c(0x14b)](_0x2b311f,0x100)+_0x4da475[_0x400c59+_0x56106d];}return[_0x2b311f,_0x5a8896];}function readUint(_0x5ed875,_0x253fd3,_0x2fcb38){const _0xd7d884=_0x27be,_0x344851={'zaulm':function(_0xc9a19e,_0x12e82a){return _0xc9a19e<_0x12e82a;},'VawBd':function(_0x1e413c,_0x564893){return _0x1e413c+_0x564893;}};let _0x4f12ef=0x0;for(let _0x4bfe9f=0x0;_0x344851[_0xd7d884(0x121)](_0x4bfe9f,_0x2fcb38);_0x4bfe9f++){_0x4f12ef=_0x344851['VawBd'](_0x4f12ef*0x100,_0x5ed875[_0x253fd3+_0x4bfe9f]);}return _0x4f12ef;}function isUnknownSize(_0x5de4d8,_0x25ff6d){const _0x2140c4=_0x27be,_0x595ac2={'lzRVV':function(_0x3aa0bc,_0x592afe){return _0x3aa0bc===_0x592afe;},'uIrqn':function(_0x2906b4,_0x2f3880){return _0x2906b4-_0x2f3880;},'uKLfz':function(_0x17d9f2,_0x122599){return _0x17d9f2*_0x122599;}};return _0x595ac2[_0x2140c4(0x119)](_0x5de4d8,_0x595ac2[_0x2140c4(0x12c)](Math[_0x2140c4(0x136)](0x2,_0x595ac2[_0x2140c4(0x126)](0x7,_0x25ff6d)),0x1));}function _0x15cf(){const _0x252851=['WRKJY','Stitched\x20','NnGkn','floor','474AOkldm','length','GQPFQ','CkIuF','tEztu','635765gmWrCz','FGASz','max','lMcjC','gBhKm','oxLJW','slice','vyqFX','MGEbB','QMfhy','rLIiG','bwSyP','from','min','BEXeO','argv','LnYAF','bodyAfterTimestamp','lzRVV','alXko','indexOf','alloc','uieQo','fMoWf','\x20files\x20->\x20','NABhS','zaulm','push','16902080sjTTXo','10632524ArrJXI','icCwK','uKLfz','4241640BxqjAb','HTyty','UpLqs','14108PvTPmy','SYxSG','uIrqn','readInt16BE','clusters','kIQGm','rjOmU','RwsvP','VPzSV','4348566roXmaj','24roSebY','shXUU','pow','2dZudvt','mJDSv','WaKYW','JZzuO','dBebI','timestamp','PmXcP','RsXnz','HtPZU','4203415HLVrxH','EbTpt','srNQn','concat'];_0x15cf=function(){return _0x252851;};return _0x15cf();}function writeVint(_0x41b399,_0x1400c3){const _0x527bd7=_0x27be,_0x18c8be={'labuw':function(_0x1be155,_0xdd90ef){return _0x1be155||_0xdd90ef;},'NRAIl':function(_0x5665a5,_0x3e98c4){return _0x5665a5<_0x3e98c4;},'HtPZU':function(_0x3e1768,_0x529403){return _0x3e1768-_0x529403;},'srNQn':function(_0xb526be,_0x398271){return _0xb526be*_0x398271;},'YMzIq':function(_0x1f6f5f,_0x5bece9){return _0x1f6f5f<<_0x5bece9;}};let _0x5867d1=_0x18c8be['labuw'](_0x1400c3,0x1);while(_0x18c8be['NRAIl'](_0x18c8be[_0x527bd7(0x13f)](Math['pow'](0x2,_0x18c8be[_0x527bd7(0x142)](0x7,_0x5867d1)),0x2),_0x41b399))_0x5867d1++;const _0x2aa6d1=Buffer['alloc'](_0x5867d1);for(let _0x5cc2f7=_0x5867d1-0x1;_0x5cc2f7>=0x0;_0x5cc2f7--){_0x2aa6d1[_0x5cc2f7]=_0x41b399&0xff,_0x41b399=Math['floor'](_0x41b399/0x100);}return _0x2aa6d1[0x0]|=_0x18c8be['YMzIq'](0x1,_0x18c8be['HtPZU'](0x8,_0x5867d1)),_0x2aa6d1;}function writeUint(_0x4228bc,_0x20e8e1){const _0xcfa0d1=_0x27be,_0x4ba6f9={'rLIiG':function(_0x21c0a1,_0x14b815){return _0x21c0a1-_0x14b815;},'rjOmU':function(_0x22508e,_0x384088){return _0x22508e>=_0x384088;},'GQPFQ':function(_0x34eca0,_0x1d1e4c){return _0x34eca0&_0x1d1e4c;},'XBnpU':function(_0x3c7320,_0x2510dd){return _0x3c7320/_0x2510dd;}},_0x2253f4=Buffer['alloc'](_0x20e8e1);for(let _0x5931c7=_0x4ba6f9[_0xcfa0d1(0x111)](_0x20e8e1,0x1);_0x4ba6f9[_0xcfa0d1(0x130)](_0x5931c7,0x0);_0x5931c7--){_0x2253f4[_0x5931c7]=_0x4ba6f9[_0xcfa0d1(0x14a)](_0x4228bc,0xff),_0x4228bc=Math[_0xcfa0d1(0x147)](_0x4ba6f9['XBnpU'](_0x4228bc,0x100));}return _0x2253f4;}function _0x27be(_0x375716,_0x502aee){_0x375716=_0x375716-0x107;const _0x15cf86=_0x15cf();let _0x27bebd=_0x15cf86[_0x375716];return _0x27bebd;}function writeUnknownSizeVint(_0xf070b6){const _0x36972c={'tyKkF':function(_0x5b9210,_0x48989a){return _0x5b9210-_0x48989a;}},_0x572406=Buffer['alloc'](_0xf070b6,0xff);return _0x572406[0x0]=0xff>>_0x36972c['tyKkF'](_0xf070b6,0x1),_0x572406;}function uintSize(_0x59d843){const _0x32e835=_0x27be,_0x4f1864={'AguDl':function(_0x47a604,_0x26dd10){return _0x47a604===_0x26dd10;}};if(_0x4f1864['AguDl'](_0x59d843,0x0))return 0x1;let _0x206e99=0x0,_0x3fb8d1=_0x59d843;while(_0x3fb8d1>0x0){_0x206e99++,_0x3fb8d1=Math[_0x32e835(0x147)](_0x3fb8d1/0x100);}return _0x206e99;}function findTimestampScale(_0x52d359,_0x2eb010){const _0x1ba4c3=_0x27be,_0x3b5627={'LnYAF':function(_0x4064a8,_0x50b4c8){return _0x4064a8+_0x50b4c8;},'HTyty':function(_0x97d448,_0x1570e5,_0x5a0545){return _0x97d448(_0x1570e5,_0x5a0545);},'UpLqs':function(_0xb2e2f5,_0x32f4e9,_0x521a08){return _0xb2e2f5(_0x32f4e9,_0x521a08);},'ZQbFQ':function(_0x26b7ba,_0x44b313){return _0x26b7ba===_0x44b313;},'shXUU':function(_0x552f62,_0x69c9f,_0x25651b,_0x105ac9){return _0x552f62(_0x69c9f,_0x25651b,_0x105ac9);},'FGASz':function(_0x98c812,_0x3df387){return _0x98c812+_0x3df387;},'RwsvP':function(_0x509e83,_0x40291d){return _0x509e83+_0x40291d;},'adKww':function(_0x1cd527,_0x565064){return _0x1cd527===_0x565064;}};let _0x56d603=_0x2eb010;const _0x10b713=Math[_0x1ba4c3(0x114)](_0x52d359['length'],_0x3b5627[_0x1ba4c3(0x117)](_0x2eb010,0x2710));while(_0x56d603<_0x10b713){const [_0x5be263,_0x52363d]=_0x3b5627[_0x1ba4c3(0x128)](readId,_0x52d359,_0x56d603),[_0x365364,_0xc819dd]=_0x3b5627[_0x1ba4c3(0x129)](readVint,_0x52d359,_0x56d603+_0x52363d);if(_0x3b5627['ZQbFQ'](_0x5be263,ID_INFO)){let _0x240bde=_0x56d603+_0x52363d+_0xc819dd;const _0x3403a9=_0x240bde+_0x365364;while(_0x240bde<_0x3403a9){const [_0x3f4404,_0x270ee1]=readId(_0x52d359,_0x240bde),[_0x26e58e,_0x12f872]=readVint(_0x52d359,_0x240bde+_0x270ee1);if(_0x3f4404===ID_TIMESTAMP_SCALE)return _0x3b5627[_0x1ba4c3(0x135)](readUint,_0x52d359,_0x3b5627[_0x1ba4c3(0x108)](_0x3b5627[_0x1ba4c3(0x131)](_0x240bde,_0x270ee1),_0x12f872),_0x26e58e);_0x240bde+=_0x3b5627[_0x1ba4c3(0x108)](_0x270ee1+_0x12f872,_0x26e58e);}break;}if(_0x3b5627['adKww'](_0x5be263,ID_CLUSTER))break;if(isUnknownSize(_0x365364,_0xc819dd))break;_0x56d603+=_0x52363d+_0xc819dd+_0x365364;}return 0xf4240;}function findFirstClusterOffset(_0x1c5a34,_0x56f747){const _0x4e5cc8=_0x27be,_0xba979f={'MGEbB':function(_0x1fbc7c,_0x37eb1d){return _0x1fbc7c===_0x37eb1d;},'xdZfE':function(_0x2c6d8a,_0x158839){return _0x2c6d8a+_0x158839;}};let _0xe8e51=_0x56f747;while(_0xe8e51<_0x1c5a34[_0x4e5cc8(0x149)]){const [_0x1df3f1,_0x4cb497]=readId(_0x1c5a34,_0xe8e51);if(_0xba979f[_0x4e5cc8(0x10f)](_0x1df3f1,ID_CLUSTER))return _0xe8e51;const [_0x4fa480,_0x2cde6c]=readVint(_0x1c5a34,_0xba979f['xdZfE'](_0xe8e51,_0x4cb497));if(isUnknownSize(_0x4fa480,_0x2cde6c))return _0xe8e51;_0xe8e51+=_0x4cb497+_0x2cde6c+_0x4fa480;}return _0x1c5a34['length'];}function findClusterEnd(_0x1b750d,_0x40bcf9,_0x4989d8,_0x3a0d4c){const _0x378d77=_0x27be,_0x5ed38c={'THLht':function(_0x381571,_0x5c8420,_0x5d8431){return _0x381571(_0x5c8420,_0x5d8431);},'kIQGm':function(_0x40d280,_0x1cd3f4){return _0x40d280+_0x1cd3f4;},'NABhS':function(_0x273b9c,_0x26a1fd){return _0x273b9c<_0x26a1fd;},'QMfhy':function(_0x1760d7,_0x36cf2f,_0x5a44f3){return _0x1760d7(_0x36cf2f,_0x5a44f3);},'VWQVW':function(_0x5eda5e,_0x277aac,_0x4ce98d){return _0x5eda5e(_0x277aac,_0x4ce98d);},'OyBzy':function(_0x38b444,_0x2bd2de,_0x51abe6){return _0x38b444(_0x2bd2de,_0x51abe6);}};if(!_0x5ed38c['THLht'](isUnknownSize,_0x4989d8,_0x3a0d4c))return _0x5ed38c['kIQGm'](_0x40bcf9,_0x4989d8);const _0x15ced0=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x79196=_0x40bcf9;while(_0x5ed38c[_0x378d77(0x120)](_0x79196,_0x1b750d['length']-0x4)){const [_0x2b6f10,_0x4e0f83]=_0x5ed38c[_0x378d77(0x110)](readId,_0x1b750d,_0x79196);if(_0x15ced0['has'](_0x2b6f10))return _0x79196;const [_0x7fa499,_0x4816b2]=_0x5ed38c['VWQVW'](readVint,_0x1b750d,_0x5ed38c[_0x378d77(0x12f)](_0x79196,_0x4e0f83));if(_0x5ed38c['OyBzy'](isUnknownSize,_0x7fa499,_0x4816b2))return _0x1b750d['length'];_0x79196+=_0x4e0f83+_0x4816b2+_0x7fa499;}return _0x1b750d[_0x378d77(0x149)];}function extractClusters(_0xce5e52,_0x1993e5){const _0x43dbf9=_0x27be,_0x1fd7fe={'pIyNK':function(_0x16b4d9,_0xdb15ad){return _0x16b4d9<_0xdb15ad;},'WsllK':function(_0x20c81c,_0x776eed){return _0x20c81c===_0x776eed;},'fcudl':function(_0x5142fc,_0x19c8af,_0x19e9e9){return _0x5142fc(_0x19c8af,_0x19e9e9);},'icCwK':function(_0x1be810,_0x54330a,_0x275e2e){return _0x1be810(_0x54330a,_0x275e2e);},'gBhKm':function(_0x5e000d,_0x57f91a){return _0x5e000d+_0x57f91a;},'XyFSX':function(_0x523a90,_0x36e006){return _0x523a90<_0x36e006;},'rfziz':function(_0x154cf2,_0x3dcff2,_0x1f327a){return _0x154cf2(_0x3dcff2,_0x1f327a);},'NnGkn':function(_0x31597e,_0x534cfb){return _0x31597e===_0x534cfb;},'vyqFX':function(_0x53ebed,_0x3789a1){return _0x53ebed+_0x3789a1;},'EbTpt':function(_0x42c7e6,_0x3d3f9e){return _0x42c7e6===_0x3d3f9e;},'nQrrC':function(_0x21d4e9,_0x32e589){return _0x21d4e9+_0x32e589;},'JZzuO':function(_0x582882,_0x26da7a){return _0x582882<_0x26da7a;}},_0x325af8=[],_0x393f08=Buffer[_0x43dbf9(0x113)]([0x1f,0x43,0xb6,0x75]);let _0x5ce631=0x0;while(_0x1fd7fe['pIyNK'](_0x5ce631,_0xce5e52[_0x43dbf9(0x149)])){const _0x3f3d1c=_0xce5e52[_0x43dbf9(0x11b)](_0x393f08,_0x5ce631);if(_0x1fd7fe['WsllK'](_0x3f3d1c,-0x1))break;const [_0x16e1f4,_0x2f4115]=_0x1fd7fe['fcudl'](readId,_0xce5e52,_0x3f3d1c);if(_0x16e1f4!==ID_CLUSTER){_0x5ce631=_0x3f3d1c+0x1;continue;}const [_0x1c1bfd,_0x3d522e]=_0x1fd7fe[_0x43dbf9(0x125)](readVint,_0xce5e52,_0x3f3d1c+_0x2f4115),_0x12fc55=_0x1fd7fe['gBhKm'](_0x3f3d1c+_0x2f4115,_0x3d522e),_0x27ce3e=findClusterEnd(_0xce5e52,_0x12fc55,_0x1c1bfd,_0x3d522e);let _0x52b32d=_0x12fc55,_0x36799f=0x0,_0x430830=0x2,_0x5c34ee=![],_0x4a4ea4=Buffer[_0x43dbf9(0x11c)](0x0),_0x2acc44=Buffer[_0x43dbf9(0x11c)](0x0);while(_0x1fd7fe['XyFSX'](_0x52b32d,_0x27ce3e)){const [_0x4eae1d,_0x18e785]=_0x1fd7fe['rfziz'](readId,_0xce5e52,_0x52b32d),[_0x5640ad,_0x3c40d2]=readVint(_0xce5e52,_0x52b32d+_0x18e785);if(_0x1fd7fe[_0x43dbf9(0x146)](_0x4eae1d,ID_TIMESTAMP)){_0x36799f=readUint(_0xce5e52,_0x1fd7fe[_0x43dbf9(0x10b)](_0x1fd7fe['vyqFX'](_0x52b32d,_0x18e785),_0x3c40d2),_0x5640ad),_0x430830=_0x5640ad,_0x5c34ee=!![],_0x4a4ea4=_0xce5e52[_0x43dbf9(0x10d)](_0x12fc55,_0x52b32d);const _0x1439fe=_0x52b32d+_0x18e785+_0x3c40d2+_0x5640ad;_0x2acc44=_0xce5e52[_0x43dbf9(0x10d)](_0x1439fe,_0x27ce3e);break;}if(_0x1fd7fe[_0x43dbf9(0x141)](_0x4eae1d,ID_CLUSTER))break;if(_0x1fd7fe['rfziz'](isUnknownSize,_0x5640ad,_0x3c40d2))break;_0x52b32d+=_0x1fd7fe['nQrrC'](_0x1fd7fe[_0x43dbf9(0x10e)](_0x18e785,_0x3c40d2),_0x5640ad);}!_0x5c34ee&&(_0x2acc44=_0xce5e52[_0x43dbf9(0x10d)](_0x12fc55,_0x27ce3e));let _0x35b7f1=_0x36799f;_0x52b32d=_0x12fc55;while(_0x1fd7fe[_0x43dbf9(0x13a)](_0x52b32d,_0x27ce3e)){const [_0x15713f,_0x19fb64]=readId(_0xce5e52,_0x52b32d),[_0x28cba5,_0x50d5a0]=readVint(_0xce5e52,_0x1fd7fe['vyqFX'](_0x52b32d,_0x19fb64));if(_0x15713f===ID_SIMPLE_BLOCK&&_0x28cba5>=0x4){const _0x5a83bf=_0x1fd7fe['nQrrC'](_0x52b32d+_0x19fb64,_0x50d5a0),[,_0x283142]=_0x1fd7fe['rfziz'](readVint,_0xce5e52,_0x5a83bf),_0x52a903=_0xce5e52[_0x43dbf9(0x12d)](_0x1fd7fe[_0x43dbf9(0x10e)](_0x5a83bf,_0x283142)),_0x5045a7=_0x1fd7fe['nQrrC'](_0x36799f,_0x52a903);if(_0x5045a7>_0x35b7f1)_0x35b7f1=_0x5045a7;}if(_0x15713f===ID_CLUSTER)break;if(isUnknownSize(_0x28cba5,_0x50d5a0))break;_0x52b32d+=_0x1fd7fe['vyqFX'](_0x1fd7fe['nQrrC'](_0x19fb64,_0x50d5a0),_0x28cba5);}_0x325af8[_0x43dbf9(0x122)]({'timestamp':_0x36799f,'maxTicks':_0x35b7f1,'bodyBeforeTimestamp':_0x4a4ea4,'bodyAfterTimestamp':_0x2acc44,'timestampElementSize':_0x430830}),_0x5ce631=_0x27ce3e;}return _0x325af8;}function parseWebm(_0xd6b819){const _0x5cad80=_0x27be,_0x2da5f4={'VPzSV':function(_0x5641fa,_0x75352d,_0x328cf6){return _0x5641fa(_0x75352d,_0x328cf6);},'pIdKB':function(_0xe95004,_0x4361f5){return _0xe95004+_0x4361f5;},'XjWnH':function(_0x3a1b98,_0x59181d){return _0x3a1b98+_0x59181d;},'mJDSv':function(_0x4396e7,_0x44c5e7){return _0x4396e7!==_0x44c5e7;},'lMcjC':function(_0x14d7bd,_0x15a6b8){return _0x14d7bd+_0x15a6b8;}};let _0x56e9db=0x0;const [,_0x385b78]=readId(_0xd6b819,_0x56e9db),[_0x18408b,_0x2b5f86]=_0x2da5f4[_0x5cad80(0x132)](readVint,_0xd6b819,_0x2da5f4['pIdKB'](_0x56e9db,_0x385b78));_0x56e9db+=_0x2da5f4['XjWnH'](_0x385b78+_0x2b5f86,_0x18408b);const [_0x1769bc,_0x20158e]=readId(_0xd6b819,_0x56e9db);if(_0x2da5f4[_0x5cad80(0x138)](_0x1769bc,ID_SEGMENT))return null;const [,_0xe21129]=readVint(_0xd6b819,_0x56e9db+_0x20158e),_0x48974c=_0x2da5f4['XjWnH'](_0x2da5f4[_0x5cad80(0x10a)](_0x56e9db,_0x20158e),_0xe21129),_0x5d4d0e=findTimestampScale(_0xd6b819,_0x48974c),_0x3f375d=_0x2da5f4[_0x5cad80(0x132)](findFirstClusterOffset,_0xd6b819,_0x48974c),_0x3ac29f=_0xd6b819[_0x5cad80(0x10d)](0x0,_0x3f375d),_0x43640f=_0x2da5f4['VPzSV'](extractClusters,_0xd6b819,_0x5d4d0e);let _0x6de9ad=0x0;for(const _0x141bc7 of _0x43640f){if(_0x141bc7['maxTicks']>_0x6de9ad)_0x6de9ad=_0x141bc7['maxTicks'];}return{'header':_0x3ac29f,'clusters':_0x43640f,'timestampScale':_0x5d4d0e,'maxTimestampTicks':_0x6de9ad};}function buildCluster(_0x170c2a,_0xdbff01,_0x192361){const _0x4f6250=_0x27be,_0x538ac0={'vnLhk':function(_0x20781c,_0x420535){return _0x20781c(_0x420535);}},_0x282442=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0x135a68=Math[_0x4f6250(0x109)](0x4,uintSize(_0x170c2a)),_0x240b25=Buffer['concat']([Buffer[_0x4f6250(0x113)]([ID_TIMESTAMP]),_0x538ac0['vnLhk'](writeVint,_0x135a68),writeUint(_0x170c2a,_0x135a68)]),_0x4b4a84=Buffer['concat']([_0xdbff01,_0x240b25,_0x192361]),_0x397c81=writeVint(_0x4b4a84[_0x4f6250(0x149)]);return Buffer[_0x4f6250(0x143)]([_0x282442,_0x397c81,_0x4b4a84]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x37125a){const _0x3316fa=_0x27be,_0x2666a7={'oxLJW':function(_0xd13cf5,_0x9c9328,_0x45537c){return _0xd13cf5(_0x9c9328,_0x45537c);},'bwSyP':function(_0x49d93c,_0x190d1c){return _0x49d93c+_0x190d1c;},'uieQo':function(_0x4840eb,_0x3fdc0a){return _0x4840eb+_0x3fdc0a;},'avplK':function(_0x560a7d,_0x2dc62f,_0x4ce7c1){return _0x560a7d(_0x2dc62f,_0x4ce7c1);},'SYxSG':function(_0x5e612d,_0x103d29){return _0x5e612d+_0x103d29;},'tEztu':function(_0x533dfb,_0x472c8e){return _0x533dfb===_0x472c8e;},'zcFLe':function(_0x4bf512,_0x35909d){return _0x4bf512<_0x35909d;},'alXko':function(_0x254037,_0x430238,_0x5d07d4){return _0x254037(_0x430238,_0x5d07d4);},'RsXnz':function(_0x285162,_0x3c5546){return _0x285162+_0x3c5546;}},_0x5afe2c=Buffer['from'](_0x37125a);let _0x419313=0x0;const [,_0x2ca4c3]=readId(_0x5afe2c,_0x419313),[_0x402627,_0x482e58]=_0x2666a7[_0x3316fa(0x10c)](readVint,_0x5afe2c,_0x419313+_0x2ca4c3),_0x3446bf=_0x419313+_0x2ca4c3+_0x482e58+_0x402627,[,_0x2edc41]=readId(_0x5afe2c,_0x3446bf),[,_0x5a43c7]=readVint(_0x5afe2c,_0x3446bf+_0x2edc41),_0x56b2c2=_0x2666a7['bwSyP'](_0x3446bf,_0x2edc41)+_0x5a43c7,_0x3827d7=writeUnknownSizeVint(_0x5a43c7);_0x3827d7['copy'](_0x5afe2c,_0x2666a7['bwSyP'](_0x3446bf,_0x2edc41));let _0x25e793=_0x56b2c2;const _0x31ea70=Math['min'](_0x5afe2c['length'],_0x2666a7[_0x3316fa(0x11d)](_0x56b2c2,0x2710));while(_0x25e793<_0x31ea70){const [_0x2ab89b,_0x231ccc]=_0x2666a7['avplK'](readId,_0x5afe2c,_0x25e793),[_0x5e1539,_0x559481]=_0x2666a7[_0x3316fa(0x10c)](readVint,_0x5afe2c,_0x2666a7[_0x3316fa(0x12b)](_0x25e793,_0x231ccc));if(_0x2666a7[_0x3316fa(0x14c)](_0x2ab89b,ID_CLUSTER))break;if(isUnknownSize(_0x5e1539,_0x559481))break;if(_0x2ab89b===ID_INFO){const _0x230361=_0x2666a7[_0x3316fa(0x112)](_0x25e793+_0x231ccc,_0x559481),_0x29ffa2=_0x230361+_0x5e1539,_0x196082=[];let _0x330622=_0x230361;while(_0x2666a7['zcFLe'](_0x330622,_0x29ffa2)){const [_0x2ffddc,_0x38ff4d]=readId(_0x5afe2c,_0x330622),[_0x17a7d9,_0x3efa29]=_0x2666a7['alXko'](readVint,_0x5afe2c,_0x330622+_0x38ff4d),_0x58ca9=_0x38ff4d+_0x3efa29+_0x17a7d9;_0x2ffddc!==ID_DURATION&&_0x196082['push'](_0x5afe2c['slice'](_0x330622,_0x330622+_0x58ca9)),_0x330622+=_0x58ca9;}const _0x4a8002=Buffer[_0x3316fa(0x143)](_0x196082),_0x309153=Buffer[_0x3316fa(0x143)]([_0x5afe2c['slice'](_0x25e793,_0x2666a7[_0x3316fa(0x13e)](_0x25e793,_0x231ccc)),_0x2666a7[_0x3316fa(0x11a)](writeVint,_0x4a8002['length'],_0x559481)]);return Buffer[_0x3316fa(0x143)]([_0x5afe2c['slice'](0x0,_0x25e793),_0x309153,_0x4a8002,_0x5afe2c[_0x3316fa(0x10d)](_0x29ffa2)]);}_0x25e793+=_0x2666a7['RsXnz'](_0x2666a7[_0x3316fa(0x112)](_0x231ccc,_0x559481),_0x5e1539);}return _0x5afe2c;}export function stitchWebmFiles(_0x201b09,_0x374c60){const _0x379bce=_0x27be,_0x4376b7={'NAvam':function(_0x5e1ea7,_0x472d6b){return _0x5e1ea7<=_0x472d6b;},'BEXeO':function(_0x327428,_0x26ca46){return _0x327428(_0x26ca46);},'dBebI':function(_0x314812,_0x129cf0,_0xd7bbdf,_0x3a5a98){return _0x314812(_0x129cf0,_0xd7bbdf,_0x3a5a98);},'ViOGv':function(_0x1d1996,_0x56394e){return _0x1d1996+_0x56394e;}};if(_0x4376b7['NAvam'](_0x201b09['length'],0x1))return![];const _0x1e49e7=[];for(const _0x9c8538 of _0x201b09){const _0x106c2b=_0x4376b7[_0x379bce(0x115)](readFileSync,_0x9c8538),_0x36a708=_0x4376b7['BEXeO'](parseWebm,_0x106c2b);if(!_0x36a708||_0x36a708[_0x379bce(0x12e)]['length']===0x0)return![];_0x1e49e7[_0x379bce(0x122)](_0x36a708);}const _0x5b3122=_0x1e49e7[0x0],_0x507ded=rebuildHeaderWithoutDuration(_0x5b3122['header']),_0x308184=[_0x507ded];let _0x3e7e85=0x0;for(let _0x23c412=0x0;_0x23c412<_0x1e49e7[_0x379bce(0x149)];_0x23c412++){const _0x3a452d=_0x1e49e7[_0x23c412];for(const _0x31baff of _0x3a452d['clusters']){const _0x39bcd8=_0x31baff[_0x379bce(0x13c)]+_0x3e7e85;_0x308184[_0x379bce(0x122)](_0x4376b7[_0x379bce(0x13b)](buildCluster,_0x39bcd8,_0x31baff['bodyBeforeTimestamp'],_0x31baff[_0x379bce(0x118)]));}const _0x44bbfb=0x1e;_0x3e7e85+=_0x4376b7['ViOGv'](_0x3a452d['maxTimestampTicks'],_0x44bbfb);}return writeFileSync(_0x374c60,Buffer[_0x379bce(0x143)](_0x308184)),!![];}if(process[_0xb0519e(0x116)][0x1]?.['endsWith']('stitchWebmFiles.ts')||process[_0xb0519e(0x116)][0x1]?.['endsWith']('stitchWebmFiles.js')){const args=process['argv']['slice'](0x2);args[_0xb0519e(0x149)]<0x3&&(console['error']('Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>'),process['exit'](0x1));const output=args[args['length']-0x1],inputs=args[_0xb0519e(0x10d)](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console['log'](_0xb0519e(0x145)+inputs[_0xb0519e(0x149)]+_0xb0519e(0x11f)+output):console['log']('Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.');}
1
+ function _0x5b76(){const _0x400018=['Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','lZvBe','max','has','argv','aIDsX','push','bodyAfterTimestamp','eraSi','clusters','BoIes','sEWPY','134094aizPEm','90IeEpin','bodyBeforeTimestamp','105sNhorg','copy','endsWith','235QTXSTF','QVYAe','exit','XtvKE','maxTimestampTicks','MfVFo','wStvD','QuTKC','length','vVqGU','QhADZ','slice','2byYZyO','WPKcc','AcHgV','LUDgA','IkZAv','tCEDe','HGLGb','pow','UlYmc','UtLKC','7660BFdfwt','EYXuA','QsxiN','400455UcQIZf','jRgec','header','48dOfzrz','timestamp','IIgXH','6716898qdoIpO','124383JiysNQ','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','from','WAJkd','kwqsm','NOEtJ','log','alloc','5329973xJwJZh','DHTXM','concat','OMjQk','lrRbj','FGVco','enaOW','indexOf','GSWcC','maxTicks','ulTQB','733232EdEaWs'];_0x5b76=function(){return _0x400018;};return _0x5b76();}const _0xba6e0c=_0x11b5;(function(_0x571973,_0x16ca0f){const _0xa89e4b=_0x11b5,_0x5c4fea=_0x571973();while(!![]){try{const _0x19d05c=-parseInt(_0xa89e4b(0x1c7))/0x1*(parseInt(_0xa89e4b(0x1b5))/0x2)+-parseInt(_0xa89e4b(0x195))/0x3+-parseInt(_0xa89e4b(0x1d1))/0x4*(parseInt(_0xa89e4b(0x1bb))/0x5)+parseInt(_0xa89e4b(0x194))/0x6+parseInt(_0xa89e4b(0x1b8))/0x7*(parseInt(_0xa89e4b(0x1a8))/0x8)+parseInt(_0xa89e4b(0x18e))/0x9*(parseInt(_0xa89e4b(0x1b6))/0xa)+-parseInt(_0xa89e4b(0x19d))/0xb*(parseInt(_0xa89e4b(0x191))/0xc);if(_0x19d05c===_0x16ca0f)break;else _0x5c4fea['push'](_0x5c4fea['shift']());}catch(_0x218ebe){_0x5c4fea['push'](_0x5c4fea['shift']());}}}(_0x5b76,0xa8b48));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x5bf263,_0xfd0e11){const _0x2bf270=_0x11b5,_0xf21cfb={'QVYAe':function(_0x475b5c,_0x5f055b){return _0x475b5c<=_0x5f055b;},'dwbyH':function(_0x4530d5,_0x549993){return _0x4530d5>_0x549993;},'bEESh':function(_0x1c8c01,_0x51004c){return _0x1c8c01+_0x51004c;},'NOEtJ':function(_0x57d3e3,_0x36e4fb){return _0x57d3e3*_0x36e4fb;}};if(_0xfd0e11>=_0x5bf263['length'])return[0x0,0x0];const _0x15d3cc=_0x5bf263[_0xfd0e11];let _0x3f7182=0x1,_0x523090=0x80;while(_0xf21cfb[_0x2bf270(0x1bc)](_0x3f7182,0x8)&&!(_0x15d3cc&_0x523090)){_0x3f7182++,_0x523090>>=0x1;}if(_0xf21cfb['dwbyH'](_0xf21cfb['bEESh'](_0xfd0e11,_0x3f7182),_0x5bf263[_0x2bf270(0x1c3)]))return[0x0,0x0];let _0x30e178=_0x15d3cc&_0x523090-0x1;for(let _0x5e63f5=0x1;_0x5e63f5<_0x3f7182;_0x5e63f5++){_0x30e178=_0xf21cfb['bEESh'](_0xf21cfb[_0x2bf270(0x19a)](_0x30e178,0x100),_0x5bf263[_0xf21cfb['bEESh'](_0xfd0e11,_0x5e63f5)]);}return[_0x30e178,_0x3f7182];}function readId(_0x17c7d4,_0xaf73cf){const _0x2eaa6c=_0x11b5,_0x2d4090={'lrRbj':function(_0x548ffd,_0x1ebbbf){return _0x548ffd>=_0x1ebbbf;},'WUgXJ':function(_0x8178c8,_0x14581a){return _0x8178c8>=_0x14581a;},'RTVff':function(_0x43a399,_0x40ccdf){return _0x43a399+_0x40ccdf;},'JcJgj':function(_0x1bed5d,_0x9c3851){return _0x1bed5d*_0x9c3851;}};if(_0xaf73cf>=_0x17c7d4['length'])return[0x0,0x0];const _0x3cd449=_0x17c7d4[_0xaf73cf];let _0x79a898;if(_0x2d4090[_0x2eaa6c(0x1a1)](_0x3cd449,0x80))_0x79a898=0x1;else{if(_0x3cd449>=0x40)_0x79a898=0x2;else{if(_0x3cd449>=0x20)_0x79a898=0x3;else{if(_0x2d4090['WUgXJ'](_0x3cd449,0x10))_0x79a898=0x4;else return[_0x3cd449,0x1];}}}if(_0x2d4090['RTVff'](_0xaf73cf,_0x79a898)>_0x17c7d4[_0x2eaa6c(0x1c3)])return[0x0,0x0];let _0x80d807=0x0;for(let _0x7fe6fb=0x0;_0x7fe6fb<_0x79a898;_0x7fe6fb++){_0x80d807=_0x2d4090['JcJgj'](_0x80d807,0x100)+_0x17c7d4[_0xaf73cf+_0x7fe6fb];}return[_0x80d807,_0x79a898];}function readUint(_0x5a4233,_0xdf29c1,_0x54ad4f){const _0x514155={'ShDIV':function(_0x227c2c,_0x4ccfa1){return _0x227c2c*_0x4ccfa1;}};let _0x15aa6b=0x0;for(let _0x79239b=0x0;_0x79239b<_0x54ad4f;_0x79239b++){_0x15aa6b=_0x514155['ShDIV'](_0x15aa6b,0x100)+_0x5a4233[_0xdf29c1+_0x79239b];}return _0x15aa6b;}function isUnknownSize(_0x102b18,_0x359348){const _0x18c710=_0x11b5,_0x3d0a71={'vRvoz':function(_0x310ea4,_0x2e6fb7){return _0x310ea4===_0x2e6fb7;}};return _0x3d0a71['vRvoz'](_0x102b18,Math[_0x18c710(0x1ce)](0x2,0x7*_0x359348)-0x1);}function writeVint(_0x5906d0,_0x4fd4ec){const _0x49a6a4=_0x11b5,_0x291fa9={'bOooI':function(_0x23f3f9,_0xe98fce){return _0x23f3f9-_0xe98fce;},'AYjOU':function(_0xfa8a8f,_0x588740){return _0xfa8a8f/_0x588740;},'ldyvX':function(_0x1113eb,_0x19d14f){return _0x1113eb-_0x19d14f;}};let _0x20c62c=_0x4fd4ec||0x1;while(_0x291fa9['bOooI'](Math[_0x49a6a4(0x1ce)](0x2,0x7*_0x20c62c),0x2)<_0x5906d0)_0x20c62c++;const _0x285104=Buffer[_0x49a6a4(0x19c)](_0x20c62c);for(let _0x575c0f=_0x20c62c-0x1;_0x575c0f>=0x0;_0x575c0f--){_0x285104[_0x575c0f]=_0x5906d0&0xff,_0x5906d0=Math['floor'](_0x291fa9['AYjOU'](_0x5906d0,0x100));}return _0x285104[0x0]|=0x1<<_0x291fa9['ldyvX'](0x8,_0x20c62c),_0x285104;}function writeUint(_0x867e8f,_0x5ca415){const _0x578799=_0x11b5,_0x11c080={'BoIes':function(_0xb6620d,_0x4d2cf9){return _0xb6620d&_0x4d2cf9;},'TPOOS':function(_0x5ca715,_0x5dc4e4){return _0x5ca715/_0x5dc4e4;}},_0x168127=Buffer['alloc'](_0x5ca415);for(let _0x52d54b=_0x5ca415-0x1;_0x52d54b>=0x0;_0x52d54b--){_0x168127[_0x52d54b]=_0x11c080[_0x578799(0x1b3)](_0x867e8f,0xff),_0x867e8f=Math['floor'](_0x11c080['TPOOS'](_0x867e8f,0x100));}return _0x168127;}function writeUnknownSizeVint(_0x4802ad){const _0x4717cc=_0x11b5,_0x43bee1={'tCEDe':function(_0x389220,_0x3de7a3){return _0x389220>>_0x3de7a3;},'UlOjX':function(_0x395520,_0x3affe4){return _0x395520-_0x3affe4;}},_0x35f22a=Buffer['alloc'](_0x4802ad,0xff);return _0x35f22a[0x0]=_0x43bee1[_0x4717cc(0x1cc)](0xff,_0x43bee1['UlOjX'](_0x4802ad,0x1)),_0x35f22a;}function uintSize(_0x5aa832){const _0x5b7ab5={'DLWJd':function(_0x2e2ff2,_0x5d249c){return _0x2e2ff2===_0x5d249c;},'LyUTd':function(_0x1d4b71,_0x8c5e1){return _0x1d4b71>_0x8c5e1;}};if(_0x5b7ab5['DLWJd'](_0x5aa832,0x0))return 0x1;let _0x3ce2a4=0x0,_0x546c7d=_0x5aa832;while(_0x5b7ab5['LyUTd'](_0x546c7d,0x0)){_0x3ce2a4++,_0x546c7d=Math['floor'](_0x546c7d/0x100);}return _0x3ce2a4;}function findTimestampScale(_0x25bd4f,_0xe1e79f){const _0x59eb6c=_0x11b5,_0x5506ea={'HGLGb':function(_0x1bfe7f,_0x755f2){return _0x1bfe7f+_0x755f2;},'UFWuv':function(_0x51ac03,_0x4af127){return _0x51ac03<_0x4af127;},'enaOW':function(_0x1f3a88,_0x342048){return _0x1f3a88+_0x342048;},'jRgec':function(_0x5e7161,_0x5b8090){return _0x5e7161===_0x5b8090;},'aIDsX':function(_0x3ab68c,_0x12420a){return _0x3ab68c+_0x12420a;},'klSBe':function(_0x257734,_0x4faf21){return _0x257734<_0x4faf21;},'FGVco':function(_0x1102e4,_0x468ead,_0x418f24){return _0x1102e4(_0x468ead,_0x418f24);},'OMjQk':function(_0x6490e0,_0x322bcb){return _0x6490e0+_0x322bcb;},'LUDgA':function(_0x410b8b,_0x431ac2){return _0x410b8b===_0x431ac2;},'Nqyjy':function(_0x36eb51,_0x378ba3){return _0x36eb51+_0x378ba3;}};let _0x29a1eb=_0xe1e79f;const _0x478661=Math['min'](_0x25bd4f['length'],_0x5506ea['HGLGb'](_0xe1e79f,0x2710));while(_0x5506ea['UFWuv'](_0x29a1eb,_0x478661)){const [_0x25a18a,_0x520e36]=readId(_0x25bd4f,_0x29a1eb),[_0x3c4e1f,_0x2dd69d]=readVint(_0x25bd4f,_0x5506ea[_0x59eb6c(0x1a3)](_0x29a1eb,_0x520e36));if(_0x5506ea[_0x59eb6c(0x18f)](_0x25a18a,ID_INFO)){let _0x35ec86=_0x5506ea['aIDsX'](_0x5506ea[_0x59eb6c(0x1a3)](_0x29a1eb,_0x520e36),_0x2dd69d);const _0x4467bc=_0x35ec86+_0x3c4e1f;while(_0x5506ea['klSBe'](_0x35ec86,_0x4467bc)){const [_0x583fce,_0x289f03]=readId(_0x25bd4f,_0x35ec86),[_0x3783e4,_0x1ebdc2]=_0x5506ea[_0x59eb6c(0x1a2)](readVint,_0x25bd4f,_0x5506ea[_0x59eb6c(0x1a0)](_0x35ec86,_0x289f03));if(_0x5506ea[_0x59eb6c(0x1ca)](_0x583fce,ID_TIMESTAMP_SCALE))return readUint(_0x25bd4f,_0x35ec86+_0x289f03+_0x1ebdc2,_0x3783e4);_0x35ec86+=_0x5506ea[_0x59eb6c(0x1ae)](_0x5506ea[_0x59eb6c(0x1cd)](_0x289f03,_0x1ebdc2),_0x3783e4);}break;}if(_0x25a18a===ID_CLUSTER)break;if(_0x5506ea['FGVco'](isUnknownSize,_0x3c4e1f,_0x2dd69d))break;_0x29a1eb+=_0x5506ea['Nqyjy'](_0x520e36,_0x2dd69d)+_0x3c4e1f;}return 0xf4240;}function findFirstClusterOffset(_0x20d2a1,_0x2b6d21){const _0x5c61df=_0x11b5,_0x2180f5={'AcHgV':function(_0x49caf0,_0x53b9e0){return _0x49caf0<_0x53b9e0;},'QsxiN':function(_0x2f81da,_0x4b1787,_0x46fad9){return _0x2f81da(_0x4b1787,_0x46fad9);}};let _0x4b879b=_0x2b6d21;while(_0x2180f5[_0x5c61df(0x1c9)](_0x4b879b,_0x20d2a1['length'])){const [_0x160686,_0x567ab0]=_0x2180f5['QsxiN'](readId,_0x20d2a1,_0x4b879b);if(_0x160686===ID_CLUSTER)return _0x4b879b;const [_0x1cb0ed,_0x443559]=_0x2180f5[_0x5c61df(0x18d)](readVint,_0x20d2a1,_0x4b879b+_0x567ab0);if(isUnknownSize(_0x1cb0ed,_0x443559))return _0x4b879b;_0x4b879b+=_0x567ab0+_0x443559+_0x1cb0ed;}return _0x20d2a1['length'];}function findClusterEnd(_0x28dfcd,_0x3f67a2,_0x506291,_0x24bf10){const _0x3daaa0=_0x11b5,_0x56420f={'QuTKC':function(_0x802ce4,_0x45acaa){return _0x802ce4+_0x45acaa;},'vVqGU':function(_0x365c46,_0x243183,_0x57ba04){return _0x365c46(_0x243183,_0x57ba04);},'hcsQI':function(_0x26dfad,_0x5a6634){return _0x26dfad+_0x5a6634;}};if(!isUnknownSize(_0x506291,_0x24bf10))return _0x56420f[_0x3daaa0(0x1c2)](_0x3f67a2,_0x506291);const _0x3825f8=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0xbb0fe8=_0x3f67a2;while(_0xbb0fe8<_0x28dfcd[_0x3daaa0(0x1c3)]-0x4){const [_0x358684,_0x5f5209]=_0x56420f['vVqGU'](readId,_0x28dfcd,_0xbb0fe8);if(_0x3825f8[_0x3daaa0(0x1ac)](_0x358684))return _0xbb0fe8;const [_0x285c81,_0x309583]=_0x56420f[_0x3daaa0(0x1c4)](readVint,_0x28dfcd,_0xbb0fe8+_0x5f5209);if(_0x56420f[_0x3daaa0(0x1c4)](isUnknownSize,_0x285c81,_0x309583))return _0x28dfcd['length'];_0xbb0fe8+=_0x56420f['hcsQI'](_0x5f5209,_0x309583)+_0x285c81;}return _0x28dfcd['length'];}function extractClusters(_0x46adbf,_0x1096e9){const _0xa8085b=_0x11b5,_0x2ae9d1={'DHTXM':function(_0x469252,_0x5d1249){return _0x469252<_0x5d1249;},'eraSi':function(_0x5c4256,_0x3a7e36){return _0x5c4256===_0x3a7e36;},'WPKcc':function(_0x53e06f,_0x576bf2,_0x43d413){return _0x53e06f(_0x576bf2,_0x43d413);},'GSWcC':function(_0x5d005e,_0x3f292f){return _0x5d005e+_0x3f292f;},'XtvKE':function(_0x45e226,_0x17c0f1){return _0x45e226+_0x17c0f1;},'OMCNP':function(_0x1e5ee9,_0x4dd103){return _0x1e5ee9+_0x4dd103;},'BLXZY':function(_0x588051,_0x37750d,_0x5b137e,_0x5d0f8a,_0x4fdd6b){return _0x588051(_0x37750d,_0x5b137e,_0x5d0f8a,_0x4fdd6b);},'EYXuA':function(_0x29354a,_0x591c45,_0xd63b8f){return _0x29354a(_0x591c45,_0xd63b8f);},'QhADZ':function(_0x935f06,_0x137a78){return _0x935f06===_0x137a78;},'ZNtmU':function(_0x5e4e42,_0x5cba83,_0x232632,_0x50ee46){return _0x5e4e42(_0x5cba83,_0x232632,_0x50ee46);},'UtLKC':function(_0x3cff31,_0x5ecf5a){return _0x3cff31+_0x5ecf5a;},'ulTQB':function(_0xad715f,_0x289419){return _0xad715f+_0x289419;},'cxxvl':function(_0x35564e,_0x1ff7fa){return _0x35564e+_0x1ff7fa;},'kwqsm':function(_0x4bf352,_0x2ee068){return _0x4bf352+_0x2ee068;},'RJpCH':function(_0x298bab,_0x507f34,_0x230906){return _0x298bab(_0x507f34,_0x230906);},'sEWPY':function(_0x2d8343,_0x4244d4){return _0x2d8343>=_0x4244d4;},'dHyXV':function(_0x2a7ff3,_0x514ef9){return _0x2a7ff3>_0x514ef9;}},_0x5cf342=[],_0x4e3457=Buffer[_0xa8085b(0x197)]([0x1f,0x43,0xb6,0x75]);let _0x236dd9=0x0;while(_0x2ae9d1[_0xa8085b(0x19e)](_0x236dd9,_0x46adbf[_0xa8085b(0x1c3)])){const _0x539f9a=_0x46adbf[_0xa8085b(0x1a4)](_0x4e3457,_0x236dd9);if(_0x2ae9d1[_0xa8085b(0x1b1)](_0x539f9a,-0x1))break;const [_0x436a2f,_0x2a7641]=_0x2ae9d1[_0xa8085b(0x1c8)](readId,_0x46adbf,_0x539f9a);if(_0x436a2f!==ID_CLUSTER){_0x236dd9=_0x2ae9d1[_0xa8085b(0x1a5)](_0x539f9a,0x1);continue;}const [_0x1f17c3,_0x232a17]=_0x2ae9d1[_0xa8085b(0x1c8)](readVint,_0x46adbf,_0x539f9a+_0x2a7641),_0x3dd035=_0x2ae9d1[_0xa8085b(0x1be)](_0x2ae9d1['OMCNP'](_0x539f9a,_0x2a7641),_0x232a17),_0x5135c0=_0x2ae9d1['BLXZY'](findClusterEnd,_0x46adbf,_0x3dd035,_0x1f17c3,_0x232a17);let _0x4f19d9=_0x3dd035,_0x127ea6=0x0,_0x2f6737=0x2,_0x2dfa53=![],_0x33e2c1=Buffer['alloc'](0x0),_0x308520=Buffer[_0xa8085b(0x19c)](0x0);while(_0x4f19d9<_0x5135c0){const [_0x26abae,_0x3aa81c]=readId(_0x46adbf,_0x4f19d9),[_0x262d8d,_0x282fdf]=_0x2ae9d1[_0xa8085b(0x1d2)](readVint,_0x46adbf,_0x4f19d9+_0x3aa81c);if(_0x2ae9d1[_0xa8085b(0x1c5)](_0x26abae,ID_TIMESTAMP)){_0x127ea6=_0x2ae9d1['ZNtmU'](readUint,_0x46adbf,_0x2ae9d1[_0xa8085b(0x1d0)](_0x2ae9d1[_0xa8085b(0x1a7)](_0x4f19d9,_0x3aa81c),_0x282fdf),_0x262d8d),_0x2f6737=_0x262d8d,_0x2dfa53=!![],_0x33e2c1=_0x46adbf[_0xa8085b(0x1c6)](_0x3dd035,_0x4f19d9);const _0x573137=_0x2ae9d1['cxxvl'](_0x4f19d9+_0x3aa81c,_0x282fdf)+_0x262d8d;_0x308520=_0x46adbf[_0xa8085b(0x1c6)](_0x573137,_0x5135c0);break;}if(_0x2ae9d1[_0xa8085b(0x1b1)](_0x26abae,ID_CLUSTER))break;if(isUnknownSize(_0x262d8d,_0x282fdf))break;_0x4f19d9+=_0x2ae9d1['kwqsm'](_0x2ae9d1[_0xa8085b(0x199)](_0x3aa81c,_0x282fdf),_0x262d8d);}!_0x2dfa53&&(_0x308520=_0x46adbf[_0xa8085b(0x1c6)](_0x3dd035,_0x5135c0));let _0x206d54=_0x127ea6;_0x4f19d9=_0x3dd035;while(_0x2ae9d1[_0xa8085b(0x19e)](_0x4f19d9,_0x5135c0)){const [_0x25b72d,_0x4b466e]=readId(_0x46adbf,_0x4f19d9),[_0x32f3dc,_0x1e1ae3]=_0x2ae9d1['RJpCH'](readVint,_0x46adbf,_0x2ae9d1['GSWcC'](_0x4f19d9,_0x4b466e));if(_0x25b72d===ID_SIMPLE_BLOCK&&_0x2ae9d1[_0xa8085b(0x1b4)](_0x32f3dc,0x4)){const _0x3e78ad=_0x2ae9d1['ulTQB'](_0x4f19d9,_0x4b466e)+_0x1e1ae3,[,_0x1cd39e]=_0x2ae9d1[_0xa8085b(0x1c8)](readVint,_0x46adbf,_0x3e78ad),_0x100fbc=_0x46adbf['readInt16BE'](_0x3e78ad+_0x1cd39e),_0x2e544a=_0x127ea6+_0x100fbc;if(_0x2ae9d1['dHyXV'](_0x2e544a,_0x206d54))_0x206d54=_0x2e544a;}if(_0x2ae9d1[_0xa8085b(0x1c5)](_0x25b72d,ID_CLUSTER))break;if(isUnknownSize(_0x32f3dc,_0x1e1ae3))break;_0x4f19d9+=_0x2ae9d1[_0xa8085b(0x1be)](_0x4b466e+_0x1e1ae3,_0x32f3dc);}_0x5cf342['push']({'timestamp':_0x127ea6,'maxTicks':_0x206d54,'bodyBeforeTimestamp':_0x33e2c1,'bodyAfterTimestamp':_0x308520,'timestampElementSize':_0x2f6737}),_0x236dd9=_0x5135c0;}return _0x5cf342;}function parseWebm(_0x43ee09){const _0x3b6809=_0x11b5,_0x533d77={'lZvBe':function(_0x4ee954,_0x19c5a4,_0x247987){return _0x4ee954(_0x19c5a4,_0x247987);},'hDSFA':function(_0x4d8eb3,_0xb527b4){return _0x4d8eb3+_0xb527b4;},'Yjemx':function(_0x11c8f0,_0x155cae){return _0x11c8f0!==_0x155cae;},'aiRXE':function(_0x45b93b,_0x40df3a){return _0x45b93b>_0x40df3a;}};let _0x43df1c=0x0;const [,_0x3ad795]=_0x533d77[_0x3b6809(0x1aa)](readId,_0x43ee09,_0x43df1c),[_0x570c35,_0x18f449]=readVint(_0x43ee09,_0x533d77['hDSFA'](_0x43df1c,_0x3ad795));_0x43df1c+=_0x533d77['hDSFA'](_0x533d77['hDSFA'](_0x3ad795,_0x18f449),_0x570c35);const [_0x325df9,_0x219d52]=readId(_0x43ee09,_0x43df1c);if(_0x533d77['Yjemx'](_0x325df9,ID_SEGMENT))return null;const [,_0x498b7c]=readVint(_0x43ee09,_0x43df1c+_0x219d52),_0x1ff8ff=_0x533d77['hDSFA'](_0x43df1c+_0x219d52,_0x498b7c),_0x428a6a=findTimestampScale(_0x43ee09,_0x1ff8ff),_0x440b08=findFirstClusterOffset(_0x43ee09,_0x1ff8ff),_0x4102c4=_0x43ee09[_0x3b6809(0x1c6)](0x0,_0x440b08),_0x392ec6=_0x533d77[_0x3b6809(0x1aa)](extractClusters,_0x43ee09,_0x428a6a);let _0x26cc8e=0x0;for(const _0x43069a of _0x392ec6){if(_0x533d77['aiRXE'](_0x43069a[_0x3b6809(0x1a6)],_0x26cc8e))_0x26cc8e=_0x43069a[_0x3b6809(0x1a6)];}return{'header':_0x4102c4,'clusters':_0x392ec6,'timestampScale':_0x428a6a,'maxTimestampTicks':_0x26cc8e};}function buildCluster(_0x5b43dc,_0x2ddd94,_0x34dd15){const _0x4b6729=_0x11b5,_0x1ed508={'kIveN':function(_0x35471b,_0x3e6e6f){return _0x35471b(_0x3e6e6f);},'jLwyW':function(_0x155c5b,_0x2aada2,_0x54e9f7){return _0x155c5b(_0x2aada2,_0x54e9f7);}},_0x1b773d=Buffer[_0x4b6729(0x197)]([0x1f,0x43,0xb6,0x75]),_0x4f616f=Math[_0x4b6729(0x1ab)](0x4,uintSize(_0x5b43dc)),_0x582231=Buffer['concat']([Buffer['from']([ID_TIMESTAMP]),_0x1ed508['kIveN'](writeVint,_0x4f616f),_0x1ed508['jLwyW'](writeUint,_0x5b43dc,_0x4f616f)]),_0x2de85a=Buffer[_0x4b6729(0x19f)]([_0x2ddd94,_0x582231,_0x34dd15]),_0x15d8d7=writeVint(_0x2de85a['length']);return Buffer[_0x4b6729(0x19f)]([_0x1b773d,_0x15d8d7,_0x2de85a]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x2ed4ac){const _0x454c24=_0x11b5,_0x51bb4a={'lAsXR':function(_0x5114ce,_0x476177,_0x1fb722){return _0x5114ce(_0x476177,_0x1fb722);},'UlYmc':function(_0x1cce4f,_0x2ff77c,_0x4df38c){return _0x1cce4f(_0x2ff77c,_0x4df38c);},'IkZAv':function(_0x13a3e1,_0x323286){return _0x13a3e1+_0x323286;},'fEsnd':function(_0x3c2119,_0x27e4da){return _0x3c2119+_0x27e4da;},'iwApT':function(_0x393cae,_0x15a6e1){return _0x393cae+_0x15a6e1;},'pqvjO':function(_0x28fe09,_0x257b02,_0x2d3fb1){return _0x28fe09(_0x257b02,_0x2d3fb1);},'cfWqh':function(_0x3d6062,_0x2f401e){return _0x3d6062+_0x2f401e;},'ktXXN':function(_0xac0329,_0xf48247){return _0xac0329<_0xf48247;},'IIgXH':function(_0x405744,_0x33debe){return _0x405744+_0x33debe;},'MfVFo':function(_0xf337f3,_0x16e868){return _0xf337f3+_0x16e868;}},_0x48a5fe=Buffer['from'](_0x2ed4ac);let _0x727e18=0x0;const [,_0x191473]=_0x51bb4a['lAsXR'](readId,_0x48a5fe,_0x727e18),[_0x393f1d,_0x377019]=_0x51bb4a['UlYmc'](readVint,_0x48a5fe,_0x51bb4a[_0x454c24(0x1cb)](_0x727e18,_0x191473)),_0x33e769=_0x51bb4a[_0x454c24(0x1cb)](_0x51bb4a[_0x454c24(0x1cb)](_0x727e18,_0x191473)+_0x377019,_0x393f1d),[,_0x1e08a7]=readId(_0x48a5fe,_0x33e769),[,_0x540cce]=_0x51bb4a[_0x454c24(0x1cf)](readVint,_0x48a5fe,_0x51bb4a['IkZAv'](_0x33e769,_0x1e08a7)),_0x472117=_0x51bb4a['fEsnd'](_0x33e769+_0x1e08a7,_0x540cce),_0x1e19f8=writeUnknownSizeVint(_0x540cce);_0x1e19f8[_0x454c24(0x1b9)](_0x48a5fe,_0x51bb4a['iwApT'](_0x33e769,_0x1e08a7));let _0x5ab55d=_0x472117;const _0x5d0335=Math['min'](_0x48a5fe[_0x454c24(0x1c3)],_0x51bb4a['IkZAv'](_0x472117,0x2710));while(_0x5ab55d<_0x5d0335){const [_0x488e73,_0x3a2256]=_0x51bb4a['pqvjO'](readId,_0x48a5fe,_0x5ab55d),[_0x4c497e,_0x556aef]=readVint(_0x48a5fe,_0x51bb4a['fEsnd'](_0x5ab55d,_0x3a2256));if(_0x488e73===ID_CLUSTER)break;if(isUnknownSize(_0x4c497e,_0x556aef))break;if(_0x488e73===ID_INFO){const _0x3bbf6d=_0x51bb4a['cfWqh'](_0x5ab55d+_0x3a2256,_0x556aef),_0x2971b8=_0x51bb4a['fEsnd'](_0x3bbf6d,_0x4c497e),_0x314a83=[];let _0x5a8f66=_0x3bbf6d;while(_0x51bb4a['ktXXN'](_0x5a8f66,_0x2971b8)){const [_0xd2864c,_0x1100fd]=readId(_0x48a5fe,_0x5a8f66),[_0x7f2840,_0x3e1f49]=_0x51bb4a['UlYmc'](readVint,_0x48a5fe,_0x51bb4a[_0x454c24(0x193)](_0x5a8f66,_0x1100fd)),_0x233453=_0x1100fd+_0x3e1f49+_0x7f2840;_0xd2864c!==ID_DURATION&&_0x314a83['push'](_0x48a5fe['slice'](_0x5a8f66,_0x51bb4a[_0x454c24(0x1c0)](_0x5a8f66,_0x233453))),_0x5a8f66+=_0x233453;}const _0x472331=Buffer['concat'](_0x314a83),_0x53282c=Buffer[_0x454c24(0x19f)]([_0x48a5fe['slice'](_0x5ab55d,_0x5ab55d+_0x3a2256),writeVint(_0x472331['length'],_0x556aef)]);return Buffer[_0x454c24(0x19f)]([_0x48a5fe['slice'](0x0,_0x5ab55d),_0x53282c,_0x472331,_0x48a5fe['slice'](_0x2971b8)]);}_0x5ab55d+=_0x51bb4a[_0x454c24(0x1c0)](_0x3a2256+_0x556aef,_0x4c497e);}return _0x48a5fe;}function _0x11b5(_0x51e792,_0x46064f){_0x51e792=_0x51e792-0x18d;const _0x5b760e=_0x5b76();let _0x11b5b8=_0x5b760e[_0x51e792];return _0x11b5b8;}export function stitchWebmFiles(_0x5d28bb,_0x2f0c1e){const _0x5b5d68=_0x11b5,_0x4df286={'WAJkd':function(_0x885179,_0x1411b6){return _0x885179<=_0x1411b6;},'wStvD':function(_0x3438c8,_0x51ad59){return _0x3438c8(_0x51ad59);},'phTjy':function(_0x3f2aa7,_0x337618){return _0x3f2aa7<_0x337618;},'vODpQ':function(_0x54682f,_0x380a62,_0x549cc9){return _0x54682f(_0x380a62,_0x549cc9);}};if(_0x4df286[_0x5b5d68(0x198)](_0x5d28bb['length'],0x1))return![];const _0x45ca0f=[];for(const _0x38e71f of _0x5d28bb){const _0x5b7ab4=readFileSync(_0x38e71f),_0x4a084d=_0x4df286[_0x5b5d68(0x1c1)](parseWebm,_0x5b7ab4);if(!_0x4a084d||_0x4a084d[_0x5b5d68(0x1b2)]['length']===0x0)return![];_0x45ca0f[_0x5b5d68(0x1af)](_0x4a084d);}const _0x21529f=_0x45ca0f[0x0],_0x14ebcc=_0x4df286['wStvD'](rebuildHeaderWithoutDuration,_0x21529f[_0x5b5d68(0x190)]),_0xd54a9b=[_0x14ebcc];let _0x48b10e=0x0;for(let _0x29452c=0x0;_0x4df286['phTjy'](_0x29452c,_0x45ca0f['length']);_0x29452c++){const _0x52f7d5=_0x45ca0f[_0x29452c];for(const _0x4c79df of _0x52f7d5[_0x5b5d68(0x1b2)]){const _0x23e1c3=_0x4c79df[_0x5b5d68(0x192)]+_0x48b10e;_0xd54a9b[_0x5b5d68(0x1af)](buildCluster(_0x23e1c3,_0x4c79df[_0x5b5d68(0x1b7)],_0x4c79df[_0x5b5d68(0x1b0)]));}const _0x4c1ce3=0x1e;_0x48b10e+=_0x52f7d5[_0x5b5d68(0x1bf)]+_0x4c1ce3;}return _0x4df286['vODpQ'](writeFileSync,_0x2f0c1e,Buffer['concat'](_0xd54a9b)),!![];}if(process['argv'][0x1]?.[_0xba6e0c(0x1ba)]('stitchWebmFiles.ts')||process[_0xba6e0c(0x1ad)][0x1]?.['endsWith']('stitchWebmFiles.js')){const args=process['argv'][_0xba6e0c(0x1c6)](0x2);args[_0xba6e0c(0x1c3)]<0x3&&(console['error'](_0xba6e0c(0x1a9)),process[_0xba6e0c(0x1bd)](0x1));const output=args[args[_0xba6e0c(0x1c3)]-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0xba6e0c(0x19b)]('Stitched\x20'+inputs[_0xba6e0c(0x1c3)]+'\x20files\x20->\x20'+output):console[_0xba6e0c(0x19b)](_0xba6e0c(0x196));}