@ranger-testing/ranger-cli 2.4.4 → 2.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/setup/claude.js +1 -1
  25. package/build/commands/setup/opencode.js +1 -1
  26. package/build/commands/setupCi.js +1 -1
  27. package/build/commands/skillup.js +1 -1
  28. package/build/commands/start.js +1 -1
  29. package/build/commands/status.js +1 -1
  30. package/build/commands/update.js +1 -1
  31. package/build/commands/updateEnv.js +1 -1
  32. package/build/commands/useEnv.js +1 -1
  33. package/build/commands/utils/activeProfile.js +1 -1
  34. package/build/commands/utils/agentEnv.js +1 -1
  35. package/build/commands/utils/browserSessionsApi.js +1 -1
  36. package/build/commands/utils/claudeConfig.js +1 -1
  37. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  38. package/build/commands/utils/claudePlugin.js +1 -1
  39. package/build/commands/utils/crypto.js +1 -1
  40. package/build/commands/utils/desirePathLog.js +1 -1
  41. package/build/commands/utils/deviceAuth.js +1 -1
  42. package/build/commands/utils/environment.js +1 -1
  43. package/build/commands/utils/featureApi.js +1 -1
  44. package/build/commands/utils/featureReportGenerator.js +1 -1
  45. package/build/commands/utils/fixWebmDuration.js +1 -1
  46. package/build/commands/utils/git.js +1 -1
  47. package/build/commands/utils/keychain.js +1 -1
  48. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  49. package/build/commands/utils/mcpImageBase64.js +1 -1
  50. package/build/commands/utils/model.js +1 -1
  51. package/build/commands/utils/opencodeConfig.js +1 -1
  52. package/build/commands/utils/playwrightCli.js +1 -1
  53. package/build/commands/utils/profileMessages.js +1 -1
  54. package/build/commands/utils/profileSetupBanner.js +1 -1
  55. package/build/commands/utils/rangerConfig.js +1 -1
  56. package/build/commands/utils/rangerRoot.js +1 -1
  57. package/build/commands/utils/reportGenerator.js +1 -1
  58. package/build/commands/utils/retry.js +1 -1
  59. package/build/commands/utils/sessionCache.js +1 -1
  60. package/build/commands/utils/settings.js +1 -1
  61. package/build/commands/utils/skillContent.js +1 -1
  62. package/build/commands/utils/skills.js +1 -1
  63. package/build/commands/utils/stitchWebmFiles.js +1 -1
  64. package/build/commands/utils/telemetry.js +1 -1
  65. package/build/commands/utils/tokenRefresh.js +1 -0
  66. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  67. package/build/commands/utils/userApi.js +1 -1
  68. package/build/commands/utils/version.js +1 -1
  69. package/build/commands/verifyFeature.js +1 -1
  70. package/build/commands/verifyFeatureCli.js +1 -1
  71. package/build/commands/verifyInBrowser.js +1 -1
  72. package/package.json +1 -1
@@ -1 +1 @@
1
- const _0xfe6e9a=_0x2881;(function(_0x197155,_0x1a035a){const _0x254497=_0x2881,_0x4a3a43=_0x197155();while(!![]){try{const _0x31511f=parseInt(_0x254497(0x108))/0x1*(parseInt(_0x254497(0x107))/0x2)+-parseInt(_0x254497(0x105))/0x3*(parseInt(_0x254497(0x103))/0x4)+-parseInt(_0x254497(0x109))/0x5*(parseInt(_0x254497(0x106))/0x6)+-parseInt(_0x254497(0x10e))/0x7+parseInt(_0x254497(0x10d))/0x8+-parseInt(_0x254497(0x10b))/0x9+-parseInt(_0x254497(0x104))/0xa*(-parseInt(_0x254497(0x10a))/0xb);if(_0x31511f===_0x1a035a)break;else _0x4a3a43['push'](_0x4a3a43['shift']());}catch(_0x3c10c0){_0x4a3a43['push'](_0x4a3a43['shift']());}}}(_0x5133,0xe1eef));function _0x2881(_0x1295d0,_0x490b4e){_0x1295d0=_0x1295d0-0x103;const _0x513346=_0x5133();let _0x28815f=_0x513346[_0x1295d0];return _0x28815f;}const VERIFY_MODEL_ALIASES={'opus':_0xfe6e9a(0x10c),'sonnet':_0xfe6e9a(0x10f)};export const DEFAULT_VERIFY_MODEL=_0xfe6e9a(0x10f);function _0x5133(){const _0x226eae=['11TBcBcZ','7895772sguiVC','claude-opus-4-6','913168fCLYws','3175886iuOppd','claude-sonnet-4-6','toLowerCase','20RiPUpg','30471670mbbWaB','709971aZeRgW','195882EBpXfX','268066vECwGv','5tKyeSM','60XEiLVC'];_0x5133=function(){return _0x226eae;};return _0x5133();}export function resolveVerifyModel(_0x19d703){const _0x549749=_0xfe6e9a;if(!_0x19d703)return undefined;const _0xfada84=_0x19d703['trim']();if(!_0xfada84)return undefined;const _0x487617=VERIFY_MODEL_ALIASES[_0xfada84[_0x549749(0x110)]()];return _0x487617??_0xfada84;}
1
+ const _0x102e54=_0x10f4;(function(_0x10d231,_0x152aa7){const _0x473844=_0x10f4,_0x1999e8=_0x10d231();while(!![]){try{const _0x21294e=parseInt(_0x473844(0xab))/0x1+-parseInt(_0x473844(0xa3))/0x2*(parseInt(_0x473844(0xa5))/0x3)+-parseInt(_0x473844(0xa0))/0x4*(-parseInt(_0x473844(0xa2))/0x5)+parseInt(_0x473844(0xad))/0x6*(-parseInt(_0x473844(0xa4))/0x7)+-parseInt(_0x473844(0xaa))/0x8*(-parseInt(_0x473844(0xa8))/0x9)+-parseInt(_0x473844(0xac))/0xa+parseInt(_0x473844(0xa6))/0xb;if(_0x21294e===_0x152aa7)break;else _0x1999e8['push'](_0x1999e8['shift']());}catch(_0x4668f4){_0x1999e8['push'](_0x1999e8['shift']());}}}(_0x5795,0x8d41e));const VERIFY_MODEL_ALIASES={'opus':'claude-opus-4-6','sonnet':_0x102e54(0xa1)};function _0x10f4(_0x4f547c,_0x342cde){_0x4f547c=_0x4f547c-0xa0;const _0x57953b=_0x5795();let _0x10f48b=_0x57953b[_0x4f547c];return _0x10f48b;}function _0x5795(){const _0x1d92de=['18Eiecuz','toLowerCase','2353504mpmmSc','850241FKHkVp','11383720wcRcxC','1680366OwZlwk','8klpWMK','claude-sonnet-4-6','2218660AvEJFK','24RZnERd','7QFbODo','177207qlHjyO','4177470qfcIDX','trim'];_0x5795=function(){return _0x1d92de;};return _0x5795();}export const DEFAULT_VERIFY_MODEL='claude-sonnet-4-6';export function resolveVerifyModel(_0x4a83ab){const _0x108e98=_0x102e54;if(!_0x4a83ab)return undefined;const _0x4240fc=_0x4a83ab[_0x108e98(0xa7)]();if(!_0x4240fc)return undefined;const _0x153814=VERIFY_MODEL_ALIASES[_0x4240fc[_0x108e98(0xa9)]()];return _0x153814??_0x4240fc;}
@@ -1 +1 @@
1
- (function(_0x150069,_0xe6442f){var _0x588970=_0x3177,_0x5007fb=_0x150069();while(!![]){try{var _0x454494=parseInt(_0x588970(0xb2))/0x1*(parseInt(_0x588970(0xae))/0x2)+-parseInt(_0x588970(0xb3))/0x3*(-parseInt(_0x588970(0xaf))/0x4)+parseInt(_0x588970(0xb5))/0x5+-parseInt(_0x588970(0xb7))/0x6+-parseInt(_0x588970(0xba))/0x7+parseInt(_0x588970(0xb4))/0x8*(parseInt(_0x588970(0xb1))/0x9)+-parseInt(_0x588970(0xb0))/0xa;if(_0x454494===_0xe6442f)break;else _0x5007fb['push'](_0x5007fb['shift']());}catch(_0x28d4d0){_0x5007fb['push'](_0x5007fb['shift']());}}}(_0x2826,0x24a82));function _0x2826(){var _0xd9dc85=['2895240opWrwZ','2689749tKJVAg','98507SukjtD','7764BvGjQn','8lWBFcQ','156265tumjUG','dJJYj','1237974zOTbxt','XDG_CONFIG_HOME','env','199374QfMcJS','skills','OYmRu','Afkbz','2RwOhFI','380wfwfQv'];_0x2826=function(){return _0xd9dc85;};return _0x2826();}import{homedir}from'os';import{join}from'path';import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0x2a2a35){var _0x3113b1=_0x3177,_0x267752={'BCatB':function(_0x9504e2,_0x52a01f){return _0x9504e2===_0x52a01f;},'EYkeK':function(_0x55e0c8,_0x47209e,_0x2d7768,_0x5ec8de){return _0x55e0c8(_0x47209e,_0x2d7768,_0x5ec8de);},'HOaTs':function(_0x2be60d){return _0x2be60d();},'Afkbz':'opencode'};if(process['env']['OPENCODE_CONFIG_DIR'])return process[_0x3113b1(0xb9)]['OPENCODE_CONFIG_DIR'];if(_0x267752['BCatB'](_0x2a2a35,'user')){if(process[_0x3113b1(0xb9)][_0x3113b1(0xb8)])return join(process['env']['XDG_CONFIG_HOME'],'opencode');return _0x267752['EYkeK'](join,_0x267752['HOaTs'](homedir),'.config',_0x267752[_0x3113b1(0xad)]);}return join(getProjectRoot(),'.opencode');}function _0x3177(_0x2c85d7,_0x60c541){_0x2c85d7=_0x2c85d7-0xad;var _0x282684=_0x2826();var _0x317776=_0x282684[_0x2c85d7];return _0x317776;}export function getOpencodeSkillsDir(_0x2d3032){var _0x35f322=_0x3177,_0x2117ab={'dJJYj':function(_0x5a0139,_0x140c85,_0x436434){return _0x5a0139(_0x140c85,_0x436434);},'xoKSD':function(_0x1c8d79,_0x58de5d){return _0x1c8d79(_0x58de5d);},'OYmRu':_0x35f322(0xbb)};return _0x2117ab[_0x35f322(0xb6)](join,_0x2117ab['xoKSD'](getOpencodeConfigDir,_0x2d3032),_0x2117ab[_0x35f322(0xbc)]);}
1
+ function _0x3083(_0x126833,_0x4fadc3){_0x126833=_0x126833-0x1e5;var _0x3060c9=_0x3060();var _0x3083d5=_0x3060c9[_0x126833];return _0x3083d5;}(function(_0x2eb563,_0x4bd6bb){var _0xfbbd21=_0x3083,_0x2aee4d=_0x2eb563();while(!![]){try{var _0x15812a=parseInt(_0xfbbd21(0x1e9))/0x1*(parseInt(_0xfbbd21(0x1fb))/0x2)+-parseInt(_0xfbbd21(0x1f6))/0x3*(parseInt(_0xfbbd21(0x1f4))/0x4)+-parseInt(_0xfbbd21(0x1ee))/0x5*(parseInt(_0xfbbd21(0x1fa))/0x6)+parseInt(_0xfbbd21(0x1f8))/0x7+parseInt(_0xfbbd21(0x1f9))/0x8*(parseInt(_0xfbbd21(0x1e5))/0x9)+parseInt(_0xfbbd21(0x1f3))/0xa+parseInt(_0xfbbd21(0x1e7))/0xb*(-parseInt(_0xfbbd21(0x1ed))/0xc);if(_0x15812a===_0x4bd6bb)break;else _0x2aee4d['push'](_0x2aee4d['shift']());}catch(_0x4ad02){_0x2aee4d['push'](_0x2aee4d['shift']());}}}(_0x3060,0xbf7f5));function _0x3060(){var _0x5d6590=['3470gWZlvb','874206jJCKeY','XDG_CONFIG_HOME','11320243bEGQaj','BkwCT','673lRjCDu','.config','.opencode','EwBLW','24pkhmSy','5rmMVUx','eQUyI','RFwPK','env','DYvlu','11268140wWybRf','9188rJXxAy','Xevbt','1845gJLFyJ','uyLOk','8419348OIFWiu','128HigVMG','4776738uVZhmR'];_0x3060=function(){return _0x5d6590;};return _0x3060();}import{homedir}from'os';import{join}from'path';import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0x3c928b){var _0x4687d5=_0x3083,_0x264c29={'OZkeW':function(_0x299b42,_0x5c34f3,_0x32ea07){return _0x299b42(_0x5c34f3,_0x32ea07);},'Xevbt':'opencode','eQUyI':function(_0x560bb0,_0x59999a,_0x40677c,_0x3cba5f){return _0x560bb0(_0x59999a,_0x40677c,_0x3cba5f);},'DYvlu':function(_0x4eeb3f){return _0x4eeb3f();},'BkwCT':_0x4687d5(0x1ea),'EwBLW':function(_0x16fa65,_0x304121,_0x1d0eaa){return _0x16fa65(_0x304121,_0x1d0eaa);},'uyLOk':function(_0x21872a){return _0x21872a();},'EtNTq':_0x4687d5(0x1eb)};if(process['env']['OPENCODE_CONFIG_DIR'])return process[_0x4687d5(0x1f1)]['OPENCODE_CONFIG_DIR'];if(_0x3c928b==='user'){if(process[_0x4687d5(0x1f1)]['XDG_CONFIG_HOME'])return _0x264c29['OZkeW'](join,process[_0x4687d5(0x1f1)][_0x4687d5(0x1e6)],_0x264c29[_0x4687d5(0x1f5)]);return _0x264c29[_0x4687d5(0x1ef)](join,_0x264c29[_0x4687d5(0x1f2)](homedir),_0x264c29[_0x4687d5(0x1e8)],_0x264c29['Xevbt']);}return _0x264c29[_0x4687d5(0x1ec)](join,_0x264c29[_0x4687d5(0x1f7)](getProjectRoot),_0x264c29['EtNTq']);}export function getOpencodeSkillsDir(_0x27d5cb){var _0x326df8=_0x3083,_0x117454={'RFwPK':function(_0x1e58f4,_0x212a32,_0x3110ba){return _0x1e58f4(_0x212a32,_0x3110ba);}};return _0x117454[_0x326df8(0x1f0)](join,getOpencodeConfigDir(_0x27d5cb),'skills');}
@@ -1 +1 @@
1
- (function(_0x71a5dc,_0x508a23){const _0x295318=_0x5a1b,_0x53a037=_0x71a5dc();while(!![]){try{const _0x3b6d06=parseInt(_0x295318(0x139))/0x1+parseInt(_0x295318(0x136))/0x2*(parseInt(_0x295318(0x137))/0x3)+parseInt(_0x295318(0x12c))/0x4*(parseInt(_0x295318(0x14a))/0x5)+-parseInt(_0x295318(0x144))/0x6+parseInt(_0x295318(0x11c))/0x7*(-parseInt(_0x295318(0x124))/0x8)+-parseInt(_0x295318(0x149))/0x9*(-parseInt(_0x295318(0x150))/0xa)+-parseInt(_0x295318(0x140))/0xb;if(_0x3b6d06===_0x508a23)break;else _0x53a037['push'](_0x53a037['shift']());}catch(_0x4a887a){_0x53a037['push'](_0x53a037['shift']());}}}(_0x212b,0x26530));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function toPlaywrightCliSessionKey(_0x5746af){const _0x2fefe8=_0x5a1b,_0xb4ead0={'uYEtq':'hex'},_0x409c79=createHash(_0x2fefe8(0x123))[_0x2fefe8(0x12f)](_0x5746af)[_0x2fefe8(0x11f)](_0xb4ead0['uYEtq'])[_0x2fefe8(0x12a)](0x0,0xc);return'rg-'+_0x409c79;}function shellQuote(_0x1c8919){const _0x532767=_0x5a1b;return'\x27'+_0x1c8919[_0x532767(0x12d)](/'/g,_0x532767(0x11b))+'\x27';}function _0x212b(){const _0x1fedb8=['length','188gfJMEJ','6141ZBbWLK','UJgfk','52811cUQLVi','mkikB','subcommand','trim','unknown','yPTAH','script','2299572GnJmcl','test','ignore','values','44148sjRtWu','tjApx','join','--config','string','834633RLENQG','914360WMiMQc','sessionId','-s=','timed\x20out\x20after\x20','null','bash_command','20FFSZQA','SIGKILL','\x27\x5c\x27\x27','413lvloWt','xCXwg','error','digest','timeoutMs','pipe','command','sha256','32568snFefC','bPUvN','stdout','LGJNF','cwd','configPath','slice','pZRGV','4IqHGoP','replace','\x20signal=','update','toString','commandArgs','LFcaM','npx','WLSJn'];_0x212b=function(){return _0x1fedb8;};return _0x212b();}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x32019d){const _0x5e3db0=_0x5a1b;return SAFE_SHELL_TOKEN[_0x5e3db0(0x141)](_0x32019d)?_0x32019d:shellQuote(_0x32019d);}export function buildPlaywrightCliInvocation(_0xd6e427,_0x5bbe22,_0x46f1df){const _0x40dc73=_0x5a1b,_0x1ed34c={'BJyLm':'npx','zyyVF':function(_0x182938,_0x2ebb84){return _0x182938(_0x2ebb84);}},_0x8a19fa=toPlaywrightCliSessionKey(_0xd6e427),[_0x6567a1=_0x40dc73(0x13d)]=_0x46f1df,_0x40ae32=[PLAYWRIGHT_CLI_BINARY,_0x40dc73(0x14c)+_0x8a19fa,_0x40dc73(0x147),_0x5bbe22,..._0x46f1df];return{'command':_0x1ed34c['BJyLm'],'args':_0x40ae32,'shellCommand':['npx',PLAYWRIGHT_CLI_BINARY,'-s='+_0x1ed34c['zyyVF'](quoteShellArg,_0x8a19fa),'--config',quoteShellArg(_0x5bbe22),..._0x46f1df['map'](quoteShellArg)][_0x40dc73(0x146)]('\x20'),'subcommand':_0x6567a1};}function _0x5a1b(_0x119a2f,_0x5156a8){_0x119a2f=_0x119a2f-0x11b;const _0x212b2d=_0x212b();let _0x5a1bbc=_0x212b2d[_0x119a2f];return _0x5a1bbc;}export function buildPlaywrightCliCommandPrefix(_0x3734be,_0x5d436f){const _0x681345=_0x5a1b,_0x2e8a92={'yPTAH':_0x681345(0x133),'tjApx':function(_0x2e04b1,_0xd36c57){return _0x2e04b1(_0xd36c57);}},_0x2de65a=toPlaywrightCliSessionKey(_0x3734be);return[_0x2e8a92[_0x681345(0x13e)],PLAYWRIGHT_CLI_BINARY,_0x681345(0x14c)+quoteShellArg(_0x2de65a),_0x681345(0x147),_0x2e8a92[_0x681345(0x145)](quoteShellArg,_0x5d436f)][_0x681345(0x146)]('\x20');}function truncateOutput(_0x2f736e,_0x149c4c=0x7d0){const _0x85b39e=_0x5a1b,_0x126789={'pZRGV':function(_0x1cfb7e,_0x431433){return _0x1cfb7e>_0x431433;},'UJgfk':function(_0x327612,_0x204798){return _0x327612+_0x204798;}};return _0x126789[_0x85b39e(0x12b)](_0x2f736e['length'],_0x149c4c)?_0x126789[_0x85b39e(0x138)](_0x2f736e[_0x85b39e(0x12a)](0x0,_0x149c4c),'...'):_0x2f736e;}export async function runPlaywrightCliCommand(_0x155629){const _0x10e011=_0x5a1b,_0x531f61={'mkikB':'SIGTERM','PmvFL':function(_0x48f928,_0x9ebe35,_0x562a74){return _0x48f928(_0x9ebe35,_0x562a74);},'jIAVk':function(_0x5ac5df,_0x224f45){return _0x5ac5df??_0x224f45;},'umKjJ':'null','JYRMX':function(_0x2ad3e9,_0x585f18){return _0x2ad3e9(_0x585f18);},'RnDZV':function(_0x48a824,_0x15663c,_0x12f1f9,_0x109e09){return _0x48a824(_0x15663c,_0x12f1f9,_0x109e09);},'msFgU':_0x10e011(0x142),'ncAKT':function(_0x2079dd,_0x588401){return _0x2079dd>_0x588401;},'AaEQK':function(_0x1aa383,_0x4e1fdd,_0x230073){return _0x1aa383(_0x4e1fdd,_0x230073);},'bPUvN':'data','tBOIX':_0x10e011(0x11e),'gbVLK':'close'},_0x3e9fa0=buildPlaywrightCliInvocation(_0x155629[_0x10e011(0x14b)],_0x155629[_0x10e011(0x129)],_0x155629[_0x10e011(0x131)]);return new Promise((_0x74f6c1,_0x4bd510)=>{const _0x47d309=_0x10e011,_0x3a428c={'LFcaM':function(_0x5df3b6,_0x247d16){return _0x5df3b6(_0x247d16);},'LGJNF':function(_0x427bb6,_0x319db4){return _0x427bb6(_0x319db4);}},_0x4c1cef=_0x531f61['RnDZV'](spawn,_0x3e9fa0[_0x47d309(0x122)],_0x3e9fa0['args'],{'cwd':_0x155629[_0x47d309(0x128)],'env':_0x155629['env'],'stdio':[_0x531f61['msFgU'],'pipe',_0x47d309(0x121)]});let _0x5f38cb='',_0x361bc0='',_0x8f1a72=![];const _0x35ce84=_0x155629['timeoutMs']&&_0x531f61['ncAKT'](_0x155629[_0x47d309(0x120)],0x0)?_0x531f61['AaEQK'](setTimeout,()=>{const _0x4f800b=_0x47d309;_0x8f1a72=!![],_0x4c1cef['kill'](_0x531f61[_0x4f800b(0x13a)]),_0x531f61['PmvFL'](setTimeout,()=>{const _0x357e2c=_0x4f800b;try{_0x4c1cef['kill'](_0x357e2c(0x151));}catch{}},0x3e8);},_0x155629[_0x47d309(0x120)]):null;_0x4c1cef[_0x47d309(0x126)]?.['on'](_0x531f61[_0x47d309(0x125)],_0x4839bc=>{_0x5f38cb+=_0x4839bc['toString']();}),_0x4c1cef['stderr']?.['on'](_0x531f61['bPUvN'],_0x184076=>{const _0x595df5=_0x47d309;_0x361bc0+=_0x184076[_0x595df5(0x130)]();}),_0x4c1cef['on'](_0x531f61['tBOIX'],_0x17661e=>{const _0x56e2fa=_0x47d309;if(_0x35ce84)_0x3a428c[_0x56e2fa(0x132)](clearTimeout,_0x35ce84);_0x3a428c[_0x56e2fa(0x127)](_0x4bd510,_0x17661e);}),_0x4c1cef['on'](_0x531f61['gbVLK'],(_0x5aaf7c,_0x136fa6)=>{const _0x395c18=_0x47d309;if(_0x35ce84)clearTimeout(_0x35ce84);if(_0x5aaf7c===0x0){_0x74f6c1({'stdout':_0x5f38cb,'stderr':_0x361bc0,'invocation':_0x3e9fa0});return;}const _0x2f05fb=_0x8f1a72?_0x395c18(0x14d)+_0x155629['timeoutMs']+'ms':'exited\x20with\x20code='+_0x531f61['jIAVk'](_0x5aaf7c,_0x395c18(0x14e))+_0x395c18(0x12e)+(_0x136fa6??_0x531f61['umKjJ']);_0x4bd510(new Error('playwright-cli\x20'+_0x3e9fa0[_0x395c18(0x13b)]+'\x20'+_0x2f05fb+'\x0astdout:\x20'+truncateOutput(_0x5f38cb)+'\x0astderr:\x20'+_0x531f61['JYRMX'](truncateOutput,_0x361bc0)));});});}export function extractBashCommand(_0x1d853a){const _0x2c1c07=_0x5a1b,_0x324995={'pfMaR':'cmd','xCXwg':_0x2c1c07(0x14f),'ykPhc':function(_0x3c18de,_0x47c2d8){return _0x3c18de===_0x47c2d8;},'WLSJn':_0x2c1c07(0x148)},_0x17bff0=[_0x2c1c07(0x122),_0x324995['pfMaR'],_0x2c1c07(0x13f),_0x324995[_0x2c1c07(0x11d)]];for(const _0x48f22 of _0x17bff0){const _0x516540=_0x1d853a[_0x48f22];if(_0x324995['ykPhc'](typeof _0x516540,_0x324995[_0x2c1c07(0x134)])&&_0x516540['trim']())return _0x516540;}const _0x49fedf=Object[_0x2c1c07(0x143)](_0x1d853a)['find'](_0x1618ea=>typeof _0x1618ea===_0x2c1c07(0x148)&&_0x1618ea[_0x2c1c07(0x13c)]()[_0x2c1c07(0x135)]>0x0);return _0x49fedf??null;}export function parsePlaywrightCliCommand(_0x37ef52){const _0x270fee=_0x37ef52['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x270fee?.[0x1]??null;}
1
+ (function(_0x2a5e9d,_0x280829){const _0x21af7c=_0x4f53,_0xe5784e=_0x2a5e9d();while(!![]){try{const _0x55487f=-parseInt(_0x21af7c(0x167))/0x1*(-parseInt(_0x21af7c(0x151))/0x2)+parseInt(_0x21af7c(0x166))/0x3*(parseInt(_0x21af7c(0x177))/0x4)+parseInt(_0x21af7c(0x187))/0x5*(parseInt(_0x21af7c(0x155))/0x6)+parseInt(_0x21af7c(0x161))/0x7*(-parseInt(_0x21af7c(0x181))/0x8)+-parseInt(_0x21af7c(0x174))/0x9+parseInt(_0x21af7c(0x17d))/0xa+-parseInt(_0x21af7c(0x170))/0xb;if(_0x55487f===_0x280829)break;else _0xe5784e['push'](_0xe5784e['shift']());}catch(_0xdade9a){_0xe5784e['push'](_0xe5784e['shift']());}}}(_0x50b1,0x663e5));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function toPlaywrightCliSessionKey(_0x1ffe79){const _0x3f7999=_0x4f53,_0x2cc1d2={'gfoJc':function(_0x33190,_0x1ca85b){return _0x33190(_0x1ca85b);},'ZIcCi':'hex'},_0x3148d6=_0x2cc1d2['gfoJc'](createHash,_0x3f7999(0x154))[_0x3f7999(0x171)](_0x1ffe79)['digest'](_0x2cc1d2['ZIcCi'])[_0x3f7999(0x178)](0x0,0xc);return _0x3f7999(0x159)+_0x3148d6;}function _0x4f53(_0x34aabc,_0x45439c){_0x34aabc=_0x34aabc-0x151;const _0x50b1fa=_0x50b1();let _0x4f53ad=_0x50b1fa[_0x34aabc];return _0x4f53ad;}function shellQuote(_0x19ff81){const _0x16d8dc=_0x4f53;return'\x27'+_0x19ff81[_0x16d8dc(0x158)](/'/g,_0x16d8dc(0x176))+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;function _0x50b1(){const _0x3e7f7d=['--config','\x20signal=','1337645TwFDMM','15866dORarA','playwright-cli\x20','TWObc','sha256','6hDClbb','nNCiF','cwd','replace','rg-','error','nhRtY','hihFo','stdout','gdLXj','command','length','1183AKtfkY','zUQRg','timed\x20out\x20after\x20','configPath','SIGTERM','7470UMnlAk','103jAWMqB','yRxZy','kill','values','vyZfN','toString','trim','bfeet','env','8883083SVWXuG','update','npx','bash_command','1478340iGIPWi','script','\x27\x5c\x27\x27','1220zrJoCZ','slice','timeoutMs','stderr','join','null','2020750onKpcK','ignore','Xtkwd','args','31032AxBuUT','mbDcb','map','string'];_0x50b1=function(){return _0x3e7f7d;};return _0x50b1();}export function quoteShellArg(_0x7b2f7f){const _0x44d132=_0x4f53,_0x144ebb={'bfeet':function(_0x371cda,_0x35941c){return _0x371cda(_0x35941c);}};return SAFE_SHELL_TOKEN['test'](_0x7b2f7f)?_0x7b2f7f:_0x144ebb[_0x44d132(0x16e)](shellQuote,_0x7b2f7f);}export function buildPlaywrightCliInvocation(_0x51430c,_0x575dad,_0x4befc6){const _0x2afdc1=_0x4f53,_0x7910d3={'DqBme':function(_0x27984a,_0x421513){return _0x27984a(_0x421513);},'nxaIO':'--config','mbDcb':'npx'},_0x496797=_0x7910d3['DqBme'](toPlaywrightCliSessionKey,_0x51430c),[_0x5c1e24='unknown']=_0x4befc6,_0x968897=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x496797,_0x7910d3['nxaIO'],_0x575dad,..._0x4befc6];return{'command':_0x7910d3[_0x2afdc1(0x182)],'args':_0x968897,'shellCommand':[_0x7910d3['mbDcb'],PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x496797),_0x2afdc1(0x185),quoteShellArg(_0x575dad),..._0x4befc6[_0x2afdc1(0x183)](quoteShellArg)][_0x2afdc1(0x17b)]('\x20'),'subcommand':_0x5c1e24};}export function buildPlaywrightCliCommandPrefix(_0x56e042,_0x1c2dc8){const _0x5c7a23=_0x4f53,_0x2a235c={'OMRjf':_0x5c7a23(0x172),'WLRoZ':function(_0x4e1c63,_0x1dd8ba){return _0x4e1c63(_0x1dd8ba);}},_0x34faf3=toPlaywrightCliSessionKey(_0x56e042);return[_0x2a235c['OMRjf'],PLAYWRIGHT_CLI_BINARY,'-s='+_0x2a235c['WLRoZ'](quoteShellArg,_0x34faf3),'--config',quoteShellArg(_0x1c2dc8)]['join']('\x20');}function truncateOutput(_0x51e85e,_0x3cd9f6=0x7d0){const _0x4bbe08=_0x4f53,_0xd3890b={'SZmJo':function(_0x588e62,_0x5365b0){return _0x588e62>_0x5365b0;},'vWthB':'...'};return _0xd3890b['SZmJo'](_0x51e85e['length'],_0x3cd9f6)?_0x51e85e[_0x4bbe08(0x178)](0x0,_0x3cd9f6)+_0xd3890b['vWthB']:_0x51e85e;}export async function runPlaywrightCliCommand(_0x34650b){const _0x105df1=_0x4f53,_0x4d62fd={'kvVLz':'SIGKILL','TtlxF':function(_0x358dd2,_0x3ac46e){return _0x358dd2(_0x3ac46e);},'Xtkwd':function(_0x296ed3,_0x5bb16a){return _0x296ed3(_0x5bb16a);},'TWObc':_0x105df1(0x17c),'nNCiF':function(_0x5928c8,_0x5f90de,_0x33122f,_0x2272c7){return _0x5928c8(_0x5f90de,_0x33122f,_0x2272c7);},'mwgMF':_0x105df1(0x17e),'CkYcs':'pipe','gdLXj':function(_0x1b5369,_0xd4f9e7){return _0x1b5369>_0xd4f9e7;},'YHesg':function(_0x3a4db3,_0x3e5885,_0x314b26){return _0x3a4db3(_0x3e5885,_0x314b26);},'jHVlA':'data','NKtXO':_0x105df1(0x15a),'hihFo':function(_0x359289,_0x1f444d,_0x550b94,_0x1960c4){return _0x359289(_0x1f444d,_0x550b94,_0x1960c4);}},_0x368f7a=_0x4d62fd[_0x105df1(0x15c)](buildPlaywrightCliInvocation,_0x34650b['sessionId'],_0x34650b[_0x105df1(0x164)],_0x34650b['commandArgs']);return new Promise((_0x546f92,_0x2b9e1e)=>{const _0x45025c=_0x105df1,_0x56139f={'yRxZy':function(_0x3debba,_0x542ea8){const _0x323496=_0x4f53;return _0x4d62fd[_0x323496(0x17f)](_0x3debba,_0x542ea8);},'zUQRg':_0x4d62fd[_0x45025c(0x153)],'ZqmOu':function(_0x2eae46,_0x556de7){return _0x2eae46??_0x556de7;},'nhRtY':function(_0x223801,_0x12d145){return _0x223801(_0x12d145);}},_0xa60567=_0x4d62fd[_0x45025c(0x156)](spawn,_0x368f7a[_0x45025c(0x15f)],_0x368f7a[_0x45025c(0x180)],{'cwd':_0x34650b[_0x45025c(0x157)],'env':_0x34650b[_0x45025c(0x16f)],'stdio':[_0x4d62fd['mwgMF'],'pipe',_0x4d62fd['CkYcs']]});let _0x2e2a59='',_0x1fb234='',_0x3d351e=![];const _0x36507f=_0x34650b['timeoutMs']&&_0x4d62fd[_0x45025c(0x15e)](_0x34650b['timeoutMs'],0x0)?_0x4d62fd['YHesg'](setTimeout,()=>{const _0x1acb98=_0x45025c,_0x1db88d={'vyZfN':_0x4d62fd['kvVLz']};_0x3d351e=!![],_0xa60567[_0x1acb98(0x169)](_0x1acb98(0x165)),setTimeout(()=>{const _0x55edb4=_0x1acb98;try{_0xa60567[_0x55edb4(0x169)](_0x1db88d[_0x55edb4(0x16b)]);}catch{}},0x3e8);},_0x34650b['timeoutMs']):null;_0xa60567[_0x45025c(0x15d)]?.['on']('data',_0x4b5f59=>{_0x2e2a59+=_0x4b5f59['toString']();}),_0xa60567[_0x45025c(0x17a)]?.['on'](_0x4d62fd['jHVlA'],_0x15f0a1=>{const _0x4760f9=_0x45025c;_0x1fb234+=_0x15f0a1[_0x4760f9(0x16c)]();}),_0xa60567['on'](_0x4d62fd['NKtXO'],_0x8e9fef=>{if(_0x36507f)_0x4d62fd['TtlxF'](clearTimeout,_0x36507f);_0x2b9e1e(_0x8e9fef);}),_0xa60567['on']('close',(_0x247880,_0x44a46f)=>{const _0x32379a=_0x45025c;if(_0x36507f)_0x56139f['yRxZy'](clearTimeout,_0x36507f);if(_0x247880===0x0){_0x56139f[_0x32379a(0x168)](_0x546f92,{'stdout':_0x2e2a59,'stderr':_0x1fb234,'invocation':_0x368f7a});return;}const _0x50b65f=_0x3d351e?_0x32379a(0x163)+_0x34650b[_0x32379a(0x179)]+'ms':'exited\x20with\x20code='+(_0x247880??_0x56139f[_0x32379a(0x162)])+_0x32379a(0x186)+_0x56139f['ZqmOu'](_0x44a46f,_0x32379a(0x17c));_0x56139f[_0x32379a(0x168)](_0x2b9e1e,new Error(_0x32379a(0x152)+_0x368f7a['subcommand']+'\x20'+_0x50b65f+'\x0astdout:\x20'+_0x56139f[_0x32379a(0x15b)](truncateOutput,_0x2e2a59)+'\x0astderr:\x20'+_0x56139f[_0x32379a(0x15b)](truncateOutput,_0x1fb234)));});});}export function extractBashCommand(_0x16872e){const _0x359e70=_0x4f53,_0x5e432e={'UTWaC':'command','ZXxDf':_0x359e70(0x173)},_0x22fea7=[_0x5e432e['UTWaC'],'cmd',_0x359e70(0x175),_0x5e432e['ZXxDf']];for(const _0x1090fb of _0x22fea7){const _0x47385d=_0x16872e[_0x1090fb];if(typeof _0x47385d==='string'&&_0x47385d[_0x359e70(0x16d)]())return _0x47385d;}const _0x14291d=Object[_0x359e70(0x16a)](_0x16872e)['find'](_0x54ac22=>typeof _0x54ac22===_0x359e70(0x184)&&_0x54ac22[_0x359e70(0x16d)]()[_0x359e70(0x160)]>0x0);return _0x14291d??null;}export function parsePlaywrightCliCommand(_0x56a959){const _0x29a234=_0x56a959['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x29a234?.[0x1]??null;}
@@ -1 +1 @@
1
- function _0x5626(){const _0x125a3a=['Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20','7azofhv','8wkMTBU','7096668RVBjqL','1483565rThrvM','72pDTCui','915474qhUwdI','455778jiwziI','49737BckMOr','269793biDvTb','11kLaDMG','21780590KXetuL'];_0x5626=function(){return _0x125a3a;};return _0x5626();}(function(_0x5e4476,_0x22f1ef){const _0x38554f=_0x111e,_0x211ce2=_0x5e4476();while(!![]){try{const _0x10d7f6=parseInt(_0x38554f(0xac))/0x1+-parseInt(_0x38554f(0xaa))/0x2+-parseInt(_0x38554f(0xad))/0x3+parseInt(_0x38554f(0xb2))/0x4*(parseInt(_0x38554f(0xa8))/0x5)+-parseInt(_0x38554f(0xb3))/0x6*(parseInt(_0x38554f(0xb1))/0x7)+-parseInt(_0x38554f(0xa9))/0x8*(parseInt(_0x38554f(0xab))/0x9)+parseInt(_0x38554f(0xaf))/0xa*(parseInt(_0x38554f(0xae))/0xb);if(_0x10d7f6===_0x22f1ef)break;else _0x211ce2['push'](_0x211ce2['shift']());}catch(_0x4a77f4){_0x211ce2['push'](_0x211ce2['shift']());}}}(_0x5626,0x9b076));const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';function _0x111e(_0xf86b50,_0x9b8435){_0xf86b50=_0xf86b50-0xa8;const _0x5626cb=_0x5626();let _0x111ea4=_0x5626cb[_0xf86b50];return _0x111ea4;}export function formatProfileRequiredMessage(_0x1118ed){const _0x39da30=_0x111e,_0x5dfd9a={'izzEb':function(_0x1fcd49,_0x32f907){return _0x1fcd49(_0x32f907);}},_0x31dc34=_0x1118ed?_0x5dfd9a['izzEb'](_0x1118ed,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x39da30(0xb0)+_0x31dc34+'.';}
1
+ const _0x289797=_0x49c3;function _0x49c3(_0x4b091e,_0x26ad8a){_0x4b091e=_0x4b091e-0xb8;const _0x5da701=_0x5da7();let _0x49c3e5=_0x5da701[_0x4b091e];return _0x49c3e5;}(function(_0x530b68,_0x3e62d3){const _0x1b056b=_0x49c3,_0x56e9a8=_0x530b68();while(!![]){try{const _0x349ce2=-parseInt(_0x1b056b(0xc1))/0x1*(parseInt(_0x1b056b(0xc3))/0x2)+-parseInt(_0x1b056b(0xbd))/0x3*(-parseInt(_0x1b056b(0xc4))/0x4)+-parseInt(_0x1b056b(0xb8))/0x5+-parseInt(_0x1b056b(0xc5))/0x6+parseInt(_0x1b056b(0xb9))/0x7*(parseInt(_0x1b056b(0xbc))/0x8)+parseInt(_0x1b056b(0xc2))/0x9*(parseInt(_0x1b056b(0xbf))/0xa)+parseInt(_0x1b056b(0xba))/0xb*(-parseInt(_0x1b056b(0xbb))/0xc);if(_0x349ce2===_0x3e62d3)break;else _0x56e9a8['push'](_0x56e9a8['shift']());}catch(_0x1f21c6){_0x56e9a8['push'](_0x56e9a8['shift']());}}}(_0x5da7,0x9d030));const DEFAULT_PROFILE_COMMAND=_0x289797(0xbe);export function formatProfileRequiredMessage(_0x578455){const _0x5b3cf6=_0x289797,_0x4d6978={'GYKTA':function(_0x43986c,_0x5535da){return _0x43986c(_0x5535da);}},_0x1e3590=_0x578455?_0x4d6978[_0x5b3cf6(0xc0)](_0x578455,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'+_0x1e3590+'.';}function _0x5da7(){const _0x889681=['179824XGBDrm','261BNhais','2SCxbQF','36ELJqNI','1883196czuXru','1270575fGoqJk','7SPDgid','10005303NcjDxS','12BMArcM','10056624ZEGZmo','308589yDfoJo','ranger\x20profile\x20add\x20local','40570iVifZQ','GYKTA'];_0x5da7=function(){return _0x889681;};return _0x5da7();}
@@ -1 +1 @@
1
- (function(_0x3b3269,_0x55ff32){const _0x261e05=_0x532a,_0xc7d949=_0x3b3269();while(!![]){try{const _0x3cb957=parseInt(_0x261e05(0x1e9))/0x1*(parseInt(_0x261e05(0x1f1))/0x2)+parseInt(_0x261e05(0x1fb))/0x3*(parseInt(_0x261e05(0x1f7))/0x4)+parseInt(_0x261e05(0x1e8))/0x5*(parseInt(_0x261e05(0x1ef))/0x6)+parseInt(_0x261e05(0x1f0))/0x7*(parseInt(_0x261e05(0x1eb))/0x8)+-parseInt(_0x261e05(0x1f6))/0x9+parseInt(_0x261e05(0x1ed))/0xa*(-parseInt(_0x261e05(0x1f8))/0xb)+parseInt(_0x261e05(0x1ec))/0xc*(-parseInt(_0x261e05(0x1f3))/0xd);if(_0x3cb957===_0x55ff32)break;else _0xc7d949['push'](_0xc7d949['shift']());}catch(_0x1c981d){_0xc7d949['push'](_0xc7d949['shift']());}}}(_0x5082,0x5290f));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x12b9cf=_0x532a,_0x1e6198={'qhCTy':function(_0x194d0a,_0x3071f0){return _0x194d0a+_0x3071f0;},'NubwE':function(_0x1eff43,_0x53ef27){return _0x1eff43+_0x53ef27;},'nopRN':function(_0x4b5432,_0x12ba4d){return _0x4b5432+_0x12ba4d;},'cytbs':'<div\x20class=\x22ranger-banner__content\x22>','mIytK':_0x12b9cf(0x1f5),'AsFkT':'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','BOtES':_0x12b9cf(0x1fc),'VGLcO':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0x341277=_0x1e6198['qhCTy'](_0x1e6198['NubwE'](_0x1e6198[_0x12b9cf(0x1ea)](_0x1e6198['cytbs'],'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>')+'<div\x20class=\x22ranger-banner__message\x22>',_0x1e6198[_0x12b9cf(0x1f9)])+_0x1e6198['AsFkT'],'</div>')+_0x1e6198['BOtES']+_0x1e6198[_0x12b9cf(0x1fa)],_0x371d29=_0x12b9cf(0x1ee);return _0x12b9cf(0x1f2)+JSON['stringify'](_0x341277)+';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20'+JSON['stringify'](_0x371d29)+';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a';})());function _0x5082(){const _0x5380bc=['\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20','71240LVDxwq','addInitScript','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','4511637RQRImb','712vOVGts','11858Hgqcge','mIytK','VGLcO','2589udxSgC','</div>','21515lRKKfu','17971HJxzHm','nopRN','97912cbHaYQ','396CwDjFN','2590AAhrFz','\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a','276FPGKXD','203aNJEkI','66RFtSdY'];_0x5082=function(){return _0x5380bc;};return _0x5082();}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x532a(_0x3a78b8,_0xa96297){_0x3a78b8=_0x3a78b8-0x1e8;const _0x508275=_0x5082();let _0x532a18=_0x508275[_0x3a78b8];return _0x532a18;}export async function addProfileSetupBanner(_0x4afc73){const _0x52ccd7=_0x532a;await _0x4afc73[_0x52ccd7(0x1f4)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
1
+ function _0x1483(){const _0x4a00bd=['2641qmSqBS','2226615mhqiVn','160464pHESbD','8202971WsdTBH','3428700NhHCLP','stringify','iWXoz','dqWVS','nGeDj','\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','OFouT',';\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','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','515116qAGTRg','BmePh','PRnox','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','944044wMuIKU'];_0x1483=function(){return _0x4a00bd;};return _0x1483();}(function(_0x2257a1,_0xde4d7b){const _0x3f5815=_0x402c,_0x9914d0=_0x2257a1();while(!![]){try{const _0x539ccd=parseInt(_0x3f5815(0x1bd))/0x1+parseInt(_0x3f5815(0x1b8))/0x2+parseInt(_0x3f5815(0x1bf))/0x3+parseInt(_0x3f5815(0x1bc))/0x4+parseInt(_0x3f5815(0x1be))/0x5+parseInt(_0x3f5815(0x1c1))/0x6+-parseInt(_0x3f5815(0x1c0))/0x7;if(_0x539ccd===_0xde4d7b)break;else _0x9914d0['push'](_0x9914d0['shift']());}catch(_0x4b3c31){_0x9914d0['push'](_0x9914d0['shift']());}}}(_0x1483,0x6057a));function _0x402c(_0x282665,_0x2597c4){_0x282665=_0x282665-0x1b2;const _0x148319=_0x1483();let _0x402ce2=_0x148319[_0x282665];return _0x402ce2;}const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x7f9970=_0x402c,_0x42604d={'nGeDj':function(_0x2fdbb3,_0x1f70b7){return _0x2fdbb3+_0x1f70b7;},'PRnox':_0x7f9970(0x1b7),'OFouT':'<div\x20class=\x22ranger-banner__message\x22>','iWXoz':'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','dqWVS':'</div>','BmePh':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0x52a19a=_0x42604d[_0x7f9970(0x1b3)](_0x42604d['nGeDj']('<div\x20class=\x22ranger-banner__content\x22>',_0x42604d[_0x7f9970(0x1ba)])+_0x42604d[_0x7f9970(0x1b5)]+_0x7f9970(0x1bb)+_0x42604d[_0x7f9970(0x1c3)],_0x42604d['dqWVS'])+_0x42604d[_0x7f9970(0x1b2)]+_0x42604d[_0x7f9970(0x1b9)],_0x28187e='\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 _0x7f9970(0x1b4)+JSON[_0x7f9970(0x1c2)](_0x52a19a)+';\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'](_0x28187e)+_0x7f9970(0x1b6);})());export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x12a532){await _0x12a532['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
@@ -1 +1 @@
1
- (function(_0x5e2ee0,_0x2352ec){const _0xc7ad37=_0x5ba3,_0x2ec169=_0x5e2ee0();while(!![]){try{const _0x532657=-parseInt(_0xc7ad37(0x170))/0x1*(parseInt(_0xc7ad37(0x16c))/0x2)+-parseInt(_0xc7ad37(0x15b))/0x3*(parseInt(_0xc7ad37(0x16b))/0x4)+-parseInt(_0xc7ad37(0x163))/0x5*(parseInt(_0xc7ad37(0x15f))/0x6)+-parseInt(_0xc7ad37(0x166))/0x7*(-parseInt(_0xc7ad37(0x16d))/0x8)+parseInt(_0xc7ad37(0x165))/0x9*(-parseInt(_0xc7ad37(0x169))/0xa)+parseInt(_0xc7ad37(0x168))/0xb*(parseInt(_0xc7ad37(0x16e))/0xc)+parseInt(_0xc7ad37(0x162))/0xd*(parseInt(_0xc7ad37(0x15d))/0xe);if(_0x532657===_0x2352ec)break;else _0x2ec169['push'](_0x2ec169['shift']());}catch(_0xc4eac7){_0x2ec169['push'](_0x2ec169['shift']());}}}(_0x37bc,0x52d4d));function _0x5ba3(_0x2ff2d1,_0x51f2cb){_0x2ff2d1=_0x2ff2d1-0x15b;const _0x37bce9=_0x37bc();let _0x5ba325=_0x37bce9[_0x2ff2d1];return _0x5ba325;}function _0x37bc(){const _0x2413d0=['507429xkkIIf','2595691JLYtqh','utf-8','44CNWdQB','70kGUEIT','string','376XGUdMV','272kXKObz','8CTPYbl','1956048AoBUsu','VbQuD','739TlpAPc','4116vHFMYQ','model','861182DsKjsw','TxaGI','156GtcVfO','object','AIHgH','13DdfUUa','23255DpdDMy','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'];_0x37bc=function(){return _0x2413d0;};return _0x37bc();}import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){return join(getRangerDir(),'config.json');}export async function loadRangerConfig(){const _0xaaacba=_0x5ba3,_0x1f4343={'TxaGI':function(_0x39cbea,_0x7d29e){return _0x39cbea(_0x7d29e);},'HmYht':function(_0x384bf0,_0x16ec91,_0x56358a){return _0x384bf0(_0x16ec91,_0x56358a);},'XyaeO':function(_0x17fd69,_0x34e01b){return _0x17fd69!==_0x34e01b;},'AIHgH':_0xaaacba(0x16a),'VbQuD':function(_0x2b8c67,_0x1543aa){return _0x2b8c67(_0x1543aa);}},_0x399ea2=getRangerConfigPath();if(!_0x1f4343[_0xaaacba(0x15e)](existsSync,_0x399ea2))return{};try{const _0x3223a3=await _0x1f4343['HmYht'](readFile,_0x399ea2,_0xaaacba(0x167)),_0x3f1669=JSON['parse'](_0x3223a3);if(!_0x3f1669||_0x1f4343['XyaeO'](typeof _0x3f1669,_0xaaacba(0x160))||Array['isArray'](_0x3f1669))return{};const _0x258ba1={},_0x52b96f=_0x3f1669[_0xaaacba(0x15c)];return typeof _0x52b96f===_0x1f4343[_0xaaacba(0x161)]&&(_0x258ba1['model']=_0x52b96f),_0x258ba1;}catch(_0x1974c8){const _0x23007a=_0x1974c8 instanceof Error?_0x1974c8['message']:_0x1f4343[_0xaaacba(0x16f)](String,_0x1974c8);return console['warn'](_0xaaacba(0x164)+_0x399ea2+':\x20'+_0x23007a),{};}}
1
+ function _0x3980(){const _0x2c831c=['790380UKubKW','1614873dhjntx','warn','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','1234868OUNNEM','342344JUhEHK','ZHwOD','GabOj','202636jePaYG','550300pXHoRm','isArray','model','string','86wyUoGs','30yUcUGk','2762GjeChp','27UmzZYp'];_0x3980=function(){return _0x2c831c;};return _0x3980();}(function(_0xc383cd,_0x25d31b){const _0x14d4e8=_0x4231,_0x561de3=_0xc383cd();while(!![]){try{const _0x1ee17e=parseInt(_0x14d4e8(0x146))/0x1*(-parseInt(_0x14d4e8(0x144))/0x2)+parseInt(_0x14d4e8(0x149))/0x3+-parseInt(_0x14d4e8(0x13b))/0x4+parseInt(_0x14d4e8(0x140))/0x5+parseInt(_0x14d4e8(0x145))/0x6*(-parseInt(_0x14d4e8(0x13f))/0x7)+-parseInt(_0x14d4e8(0x13c))/0x8+-parseInt(_0x14d4e8(0x147))/0x9*(-parseInt(_0x14d4e8(0x148))/0xa);if(_0x1ee17e===_0x25d31b)break;else _0x561de3['push'](_0x561de3['shift']());}catch(_0x4523ad){_0x561de3['push'](_0x561de3['shift']());}}}(_0x3980,0x42071));import{readFile}from'fs/promises';function _0x4231(_0xa0c73a,_0x39ff81){_0xa0c73a=_0xa0c73a-0x139;const _0x39809b=_0x3980();let _0x423140=_0x39809b[_0xa0c73a];return _0x423140;}import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){return join(getRangerDir(),'config.json');}export async function loadRangerConfig(){const _0x459319=_0x4231,_0x53d4a2={'DGdfR':'utf-8','GabOj':_0x459319(0x143),'ZHwOD':function(_0x58f1d0,_0x35f8df){return _0x58f1d0(_0x35f8df);}},_0x580324=getRangerConfigPath();if(!existsSync(_0x580324))return{};try{const _0x574ea0=await readFile(_0x580324,_0x53d4a2['DGdfR']),_0x30260f=JSON['parse'](_0x574ea0);if(!_0x30260f||typeof _0x30260f!=='object'||Array[_0x459319(0x141)](_0x30260f))return{};const _0x13fd71={},_0x48715e=_0x30260f[_0x459319(0x142)];return typeof _0x48715e===_0x53d4a2[_0x459319(0x13e)]&&(_0x13fd71[_0x459319(0x142)]=_0x48715e),_0x13fd71;}catch(_0x33adb1){const _0x4af248=_0x33adb1 instanceof Error?_0x33adb1['message']:_0x53d4a2[_0x459319(0x13d)](String,_0x33adb1);return console[_0x459319(0x139)](_0x459319(0x13a)+_0x580324+':\x20'+_0x4af248),{};}}
@@ -1 +1 @@
1
- (function(_0x5c3429,_0x4d4c51){const _0x7b44ca=_0x173c,_0x42d14c=_0x5c3429();while(!![]){try{const _0x376570=-parseInt(_0x7b44ca(0x107))/0x1*(-parseInt(_0x7b44ca(0x104))/0x2)+-parseInt(_0x7b44ca(0xfb))/0x3*(parseInt(_0x7b44ca(0xfc))/0x4)+-parseInt(_0x7b44ca(0x108))/0x5*(-parseInt(_0x7b44ca(0xfa))/0x6)+-parseInt(_0x7b44ca(0xf8))/0x7+parseInt(_0x7b44ca(0xff))/0x8+parseInt(_0x7b44ca(0x105))/0x9+-parseInt(_0x7b44ca(0x106))/0xa;if(_0x376570===_0x4d4c51)break;else _0x42d14c['push'](_0x42d14c['shift']());}catch(_0x164e12){_0x42d14c['push'](_0x42d14c['shift']());}}}(_0x1f6f,0xc0a8d));import{dirname,join,parse}from'path';function _0x173c(_0x394fc8,_0x5c6679){_0x394fc8=_0x394fc8-0xf8;const _0x1f6ff1=_0x1f6f();let _0x173c63=_0x1f6ff1[_0x394fc8];return _0x173c63;}import{existsSync}from'fs';function _0x1f6f(){const _0x48f5b5=['EpdBf','.ranger','6196mdNEAh','12496374MtGfdq','7937040IZNYvt','53SfAVFW','3528365CUiwBH','5046384apGOJn','nXyLv','6LVfwbu','3090255KAuhoR','4AYirxw','segub','exdTh','8603848BiDvyG','.git','WCWmp'];_0x1f6f=function(){return _0x48f5b5;};return _0x1f6f();}import{homedir}from'os';export function getRangerRoot(){const _0x379a74=_0x173c,_0x15afe4={'gKzXw':function(_0x379703,_0x5ff300){return _0x379703(_0x5ff300);},'wHGfp':function(_0x1ef062,_0x3f7979,_0x945eff){return _0x1ef062(_0x3f7979,_0x945eff);},'MlaQy':function(_0x1097ef,_0x306cc5){return _0x1097ef(_0x306cc5);},'smHnQ':'.ranger','WCWmp':function(_0x4bc4c6){return _0x4bc4c6();}};let _0x3e80d0=process['cwd']();const _0x502de8=parse(_0x3e80d0)['root'];while(_0x3e80d0!==_0x502de8){if(_0x15afe4['gKzXw'](existsSync,_0x15afe4['wHGfp'](join,_0x3e80d0,'.ranger')))return _0x3e80d0;_0x3e80d0=dirname(_0x3e80d0);}if(_0x15afe4['MlaQy'](existsSync,join(_0x502de8,_0x15afe4['smHnQ'])))return _0x502de8;const _0x474921=_0x15afe4[_0x379a74(0x101)](findGitRoot);if(_0x474921)return _0x474921;return process['cwd']();}export function getRangerDir(){const _0x2262ea=_0x173c;return join(getRangerRoot(),_0x2262ea(0x103));}export function findGitRoot(){const _0x7c236a=_0x173c,_0x551ac8={'EpdBf':function(_0x3a526d,_0x1a3706){return _0x3a526d(_0x1a3706);},'CBimD':function(_0x30f933,_0x4cbc88){return _0x30f933!==_0x4cbc88;},'gyArV':function(_0x268885,_0x5e5ca,_0x5d2346){return _0x268885(_0x5e5ca,_0x5d2346);},'nXyLv':_0x7c236a(0x100),'TmLZL':function(_0x37378a,_0x6648ab){return _0x37378a(_0x6648ab);},'exdTh':function(_0x4622e0,_0x3aba88,_0x40b10a){return _0x4622e0(_0x3aba88,_0x40b10a);}};let _0x3e5bde=process['cwd']();const _0x1be861=_0x551ac8[_0x7c236a(0x102)](parse,_0x3e5bde)['root'];while(_0x551ac8['CBimD'](_0x3e5bde,_0x1be861)){if(existsSync(_0x551ac8['gyArV'](join,_0x3e5bde,_0x551ac8[_0x7c236a(0xf9)])))return _0x3e5bde;_0x3e5bde=_0x551ac8['TmLZL'](dirname,_0x3e5bde);}if(_0x551ac8['TmLZL'](existsSync,_0x551ac8[_0x7c236a(0xfe)](join,_0x1be861,_0x7c236a(0x100))))return _0x1be861;return null;}export function getRangerHomeDir(){const _0x3aae55=_0x173c,_0x23f24e={'gJWiy':function(_0x31255a){return _0x31255a();},'segub':'.ranger'};return join(_0x23f24e['gJWiy'](homedir),_0x23f24e[_0x3aae55(0xfd)]);}
1
+ (function(_0x568dd2,_0x2ce881){const _0x1dec4e=_0x3a6e,_0x52c625=_0x568dd2();while(!![]){try{const _0x2b04e8=parseInt(_0x1dec4e(0x14d))/0x1*(-parseInt(_0x1dec4e(0x146))/0x2)+-parseInt(_0x1dec4e(0x149))/0x3+parseInt(_0x1dec4e(0x148))/0x4*(-parseInt(_0x1dec4e(0x142))/0x5)+-parseInt(_0x1dec4e(0x13c))/0x6*(parseInt(_0x1dec4e(0x140))/0x7)+parseInt(_0x1dec4e(0x145))/0x8+-parseInt(_0x1dec4e(0x13f))/0x9+parseInt(_0x1dec4e(0x141))/0xa*(parseInt(_0x1dec4e(0x13d))/0xb);if(_0x2b04e8===_0x2ce881)break;else _0x52c625['push'](_0x52c625['shift']());}catch(_0x1694e5){_0x52c625['push'](_0x52c625['shift']());}}}(_0xdf68,0x276d0));import{dirname,join,parse}from'path';function _0xdf68(){const _0x1a0673=['IAhjI','EsqNB','248657nzCCnZ','mCwNl','cwd','884478AZLeAL','4945413tjyVJK','.ranger','631503dmcJMO','14FhbAjC','20bFlAWx','465zsiesb','TKzQh','toCko','1044232rZAKNO','2qKTeuU','pSlAo','3452zxGyWM','522894hIqkUe','GyxWq'];_0xdf68=function(){return _0x1a0673;};return _0xdf68();}import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x146e96=_0x3a6e,_0x45cfc={'UwLUX':function(_0x42a264,_0x3a2f68){return _0x42a264(_0x3a2f68);},'RQMaV':function(_0x40631f,_0x3302a8){return _0x40631f(_0x3302a8);},'IAhjI':function(_0xb3ffb1,_0x3b51fc,_0x5bae4c){return _0xb3ffb1(_0x3b51fc,_0x5bae4c);},'EsqNB':_0x146e96(0x13e),'GyxWq':function(_0x43daa7){return _0x43daa7();}};let _0x1daf3=process[_0x146e96(0x14f)]();const _0x5f6960=_0x45cfc['UwLUX'](parse,_0x1daf3)['root'];while(_0x1daf3!==_0x5f6960){if(_0x45cfc['RQMaV'](existsSync,_0x45cfc[_0x146e96(0x14b)](join,_0x1daf3,_0x45cfc[_0x146e96(0x14c)])))return _0x1daf3;_0x1daf3=dirname(_0x1daf3);}if(existsSync(join(_0x5f6960,'.ranger')))return _0x5f6960;const _0x495abf=_0x45cfc[_0x146e96(0x14a)](findGitRoot);if(_0x495abf)return _0x495abf;return process['cwd']();}export function getRangerDir(){const _0x3b0942=_0x3a6e,_0x150383={'TKzQh':function(_0x11eb36,_0x129c60,_0x6aa2d2){return _0x11eb36(_0x129c60,_0x6aa2d2);},'DsAKm':function(_0x59999c){return _0x59999c();},'SBljD':'.ranger'};return _0x150383[_0x3b0942(0x143)](join,_0x150383['DsAKm'](getRangerRoot),_0x150383['SBljD']);}export function findGitRoot(){const _0xa0fbdf=_0x3a6e,_0x23d0ef={'lLrwQ':function(_0x57c4ba,_0x31692b){return _0x57c4ba!==_0x31692b;},'toCko':function(_0x8366e4,_0xff1c0,_0x2a4bf7){return _0x8366e4(_0xff1c0,_0x2a4bf7);},'mCwNl':function(_0x3e6684,_0x4140b0){return _0x3e6684(_0x4140b0);},'pSlAo':function(_0x50b00e,_0x4cdb3f,_0x3767ff){return _0x50b00e(_0x4cdb3f,_0x3767ff);}};let _0xf7716b=process[_0xa0fbdf(0x14f)]();const _0x77d723=parse(_0xf7716b)['root'];while(_0x23d0ef['lLrwQ'](_0xf7716b,_0x77d723)){if(existsSync(_0x23d0ef[_0xa0fbdf(0x144)](join,_0xf7716b,'.git')))return _0xf7716b;_0xf7716b=_0x23d0ef[_0xa0fbdf(0x14e)](dirname,_0xf7716b);}if(_0x23d0ef[_0xa0fbdf(0x14e)](existsSync,_0x23d0ef[_0xa0fbdf(0x147)](join,_0x77d723,'.git')))return _0x77d723;return null;}function _0x3a6e(_0x17f734,_0x31b603){_0x17f734=_0x17f734-0x13c;const _0xdf68ca=_0xdf68();let _0x3a6ec3=_0xdf68ca[_0x17f734];return _0x3a6ec3;}export function getRangerHomeDir(){const _0x2cd740={'OPQfL':function(_0x269e65){return _0x269e65();},'AqbXM':'.ranger'};return join(_0x2cd740['OPQfL'](homedir),_0x2cd740['AqbXM']);}
@@ -1 +1 @@
1
- (function(_0x9078aa,_0x334142){const _0x10477e=_0x5558,_0x446e09=_0x9078aa();while(!![]){try{const _0x418ae0=parseInt(_0x10477e(0x157))/0x1+parseInt(_0x10477e(0x15c))/0x2*(-parseInt(_0x10477e(0x14b))/0x3)+parseInt(_0x10477e(0x14a))/0x4+parseInt(_0x10477e(0x158))/0x5+-parseInt(_0x10477e(0x149))/0x6+parseInt(_0x10477e(0x15b))/0x7+parseInt(_0x10477e(0x13d))/0x8*(-parseInt(_0x10477e(0x142))/0x9);if(_0x418ae0===_0x334142)break;else _0x446e09['push'](_0x446e09['shift']());}catch(_0x3ad299){_0x446e09['push'](_0x446e09['shift']());}}}(_0x13b9,0xee057));function _0x5558(_0x3da1df,_0x4c7b40){_0x3da1df=_0x3da1df-0x13b;const _0x13b98f=_0x13b9();let _0x55581c=_0x13b98f[_0x3da1df];return _0x55581c;}import{readdir}from'fs/promises';import{join}from'path';import{existsSync}from'fs';export async function collectScreenshots(_0x384347){const _0x222db7=_0x5558,_0x3a0791={'ddKbe':function(_0x4abdf1,_0xbca83e){return _0x4abdf1(_0xbca83e);},'UsVIq':function(_0xdd1d98,_0x33bc5e,_0x1f8e21){return _0xdd1d98(_0x33bc5e,_0x1f8e21);}},_0x1e53d6=[],_0x3f9766=[];if(!_0x3a0791[_0x222db7(0x152)](existsSync,_0x384347))return{'screenshots':_0x1e53d6,'paths':_0x3f9766};const _0x5694ab=await _0x3a0791[_0x222db7(0x152)](readdir,_0x384347),_0x50f19b=_0x5694ab['filter'](_0x286aed=>/\.(png|jpg|jpeg|gif|webp)$/i['test'](_0x286aed))[_0x222db7(0x15a)]();for(const _0x52cdf1 of _0x50f19b){const _0x5454ad=_0x3a0791[_0x222db7(0x140)](join,_0x384347,_0x52cdf1);_0x1e53d6[_0x222db7(0x154)]({'filename':_0x52cdf1,'path':_0x5454ad,'relativePath':'./'+_0x52cdf1}),_0x3f9766[_0x222db7(0x154)](_0x5454ad);}return{'screenshots':_0x1e53d6,'paths':_0x3f9766};}function getSeverityEmoji(_0x57933d){const _0xe878e3=_0x5558,_0x366d25={'WPZFK':_0xe878e3(0x143),'DNQAb':_0xe878e3(0x150)};switch(_0x57933d){case _0x366d25['WPZFK']:return'🔴';case _0x366d25[_0xe878e3(0x13b)]:return'🟠';default:return'⚪';}}function _0x13b9(){const _0x2a926d=['42910bcGrPd','slice','DNQAb','relativePath','728dsubOq','map','replace','UsVIq','filename','60381UaBpQF','BLOCKER','split','toUpperCase','toISOString','PASSED','length','8378148HihVee','2345920GAmPgH','201lZFGvs','**URL:**\x20','QsqGi','includes','description','MAJOR','###\x20Issues\x20Found\x20(','ddKbe','**Status:**\x20','push','**Duration:**\x20','screenshot','1753509cFroyn','1971255xIdKmx','join','sort','11795399lGywSN'];_0x13b9=function(){return _0x2a926d;};return _0x13b9();}function formatScreenshotCaption(_0x5eeafe){const _0x1f2a23=_0x5558,_0xbc4101=_0x5eeafe[_0x1f2a23(0x13f)](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0x17ae80=_0xbc4101[_0x1f2a23(0x13f)](/^\d+-/,'');return _0x17ae80[_0x1f2a23(0x144)]('-')[_0x1f2a23(0x13e)](_0x336f2d=>_0x336f2d['charAt'](0x0)[_0x1f2a23(0x145)]()+_0x336f2d[_0x1f2a23(0x15d)](0x1))[_0x1f2a23(0x159)]('\x20');}export function generateMarkdownReport(_0xe12978){const _0x51d7f7=_0x5558,_0x28988c={'QsqGi':function(_0x468075,_0x4aa3bc){return _0x468075>_0x4aa3bc;}},{sessionId:_0x2ab399,task:_0x1d5833,url:_0x21064b,success:_0x3a9c4b,summary:_0x532f1a,issues:_0x5d8cfb,screenshots:_0x1325fe,durationMs:_0x10b488,traceViewerUrl:_0x26b5bc}=_0xe12978,_0x36cf97=new Date()[_0x51d7f7(0x146)](),_0x4e8d13=(_0x10b488/0x3e8)['toFixed'](0x1),_0x388704=[];_0x388704['push']('#\x20Verification\x20Report'),_0x388704['push'](''),_0x388704['push']('**Session:**\x20`'+_0x2ab399+'`'),_0x388704[_0x51d7f7(0x154)]('**Generated:**\x20'+_0x36cf97),_0x388704[_0x51d7f7(0x154)](_0x51d7f7(0x155)+_0x4e8d13+'s'),_0x388704['push'](''),_0x388704[_0x51d7f7(0x154)]('##\x20Task'),_0x388704['push'](''),_0x388704[_0x51d7f7(0x154)](_0x51d7f7(0x14c)+_0x21064b),_0x388704[_0x51d7f7(0x154)](''),_0x388704['push']('>\x20'+_0x1d5833),_0x388704[_0x51d7f7(0x154)](''),_0x388704['push']('##\x20Result'),_0x388704[_0x51d7f7(0x154)]('');const _0x29b841=_0x3a9c4b?'✅':'❌';_0x388704['push'](_0x51d7f7(0x153)+_0x29b841+'\x20'+(_0x3a9c4b?_0x51d7f7(0x147):'ISSUES\x20FOUND')),_0x388704[_0x51d7f7(0x154)](''),_0x388704['push']('###\x20Summary'),_0x388704['push'](''),_0x388704[_0x51d7f7(0x154)](_0x532f1a),_0x388704[_0x51d7f7(0x154)]('');if(_0x5d8cfb&&_0x5d8cfb['length']>0x0){_0x388704['push'](_0x51d7f7(0x151)+_0x5d8cfb[_0x51d7f7(0x148)]+')'),_0x388704['push']('');for(const _0x43fbc4 of _0x5d8cfb){const _0x52d025=getSeverityEmoji(_0x43fbc4['severity']);_0x388704['push']('####\x20'+_0x52d025+'\x20['+_0x43fbc4['severity']+']\x20Issue'),_0x388704[_0x51d7f7(0x154)](''),_0x388704['push'](_0x43fbc4[_0x51d7f7(0x14f)]),_0x388704[_0x51d7f7(0x154)]('');if(_0x43fbc4[_0x51d7f7(0x156)]){const _0x4d7e21=_0x43fbc4['screenshot'],_0x4770f3=_0x1325fe['find'](_0x46ed47=>_0x46ed47[_0x51d7f7(0x141)]===_0x4d7e21||_0x46ed47['filename'][_0x51d7f7(0x14e)](_0x4d7e21));_0x4770f3&&(_0x388704[_0x51d7f7(0x154)]('**Screenshot:**'),_0x388704[_0x51d7f7(0x154)](''),_0x388704[_0x51d7f7(0x154)]('!['+_0x4d7e21+']('+_0x4770f3[_0x51d7f7(0x13c)]+')'),_0x388704['push'](''));}}}if(_0x28988c[_0x51d7f7(0x14d)](_0x1325fe['length'],0x0)){_0x388704[_0x51d7f7(0x154)]('##\x20Screenshots\x20('+_0x1325fe['length']+')'),_0x388704[_0x51d7f7(0x154)]('');for(const _0x567b4b of _0x1325fe){const _0x15f907=formatScreenshotCaption(_0x567b4b[_0x51d7f7(0x141)]);_0x388704[_0x51d7f7(0x154)]('###\x20'+_0x15f907),_0x388704['push'](''),_0x388704['push']('!['+_0x567b4b[_0x51d7f7(0x141)]+']('+_0x567b4b['relativePath']+')'),_0x388704[_0x51d7f7(0x154)]('');}}return _0x26b5bc&&(_0x388704['push']('---'),_0x388704[_0x51d7f7(0x154)](''),_0x388704['push']('**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer]('+_0x26b5bc+')'),_0x388704['push']('')),_0x388704['join']('\x0a');}
1
+ (function(_0x338e44,_0x34c18b){const _0x4e49c7=_0xd7bf,_0x12934e=_0x338e44();while(!![]){try{const _0xcb0ad0=-parseInt(_0x4e49c7(0x1e6))/0x1*(parseInt(_0x4e49c7(0x201))/0x2)+-parseInt(_0x4e49c7(0x1ec))/0x3*(parseInt(_0x4e49c7(0x1f5))/0x4)+-parseInt(_0x4e49c7(0x200))/0x5*(parseInt(_0x4e49c7(0x1fc))/0x6)+-parseInt(_0x4e49c7(0x1f6))/0x7*(parseInt(_0x4e49c7(0x1f1))/0x8)+-parseInt(_0x4e49c7(0x1f8))/0x9+-parseInt(_0x4e49c7(0x1f7))/0xa*(parseInt(_0x4e49c7(0x1ed))/0xb)+-parseInt(_0x4e49c7(0x1eb))/0xc*(-parseInt(_0x4e49c7(0x1f4))/0xd);if(_0xcb0ad0===_0x34c18b)break;else _0x12934e['push'](_0x12934e['shift']());}catch(_0x1a86aa){_0x12934e['push'](_0x12934e['shift']());}}}(_0x4b49,0xa0f54));import{readdir}from'fs/promises';function _0x4b49(){const _0x581f6b=['gdQoB','101628QaAJit','39mDTGkR','9025082exbDNv','push','##\x20Result','**URL:**\x20','4800mzpDYc','length','join','6253BpygxZ','60328DOuwLu','1435ZLnpRL','10oRszCk','10761543TUcWKN','###\x20','BLOCKER','description','1552422ynCQed','sort','relativePath','**Full\x20Trace:**\x20[View\x20in\x20Playwright\x20Trace\x20Viewer](','5zPZUdj','18434pLkgqE','includes','filename','####\x20','**Screenshot:**','replace','##\x20Task','**Status:**\x20','PEMbX','**Duration:**\x20','severity','MAJOR','89ymAdiU','filter','screenshot','ynvta'];_0x4b49=function(){return _0x581f6b;};return _0x4b49();}import{join}from'path';import{existsSync}from'fs';export async function collectScreenshots(_0x27576b){const _0x1e69b1=_0xd7bf,_0x80edae={'PEMbX':function(_0x249254,_0x4f7d15,_0x15aeaa){return _0x249254(_0x4f7d15,_0x15aeaa);}},_0x359acf=[],_0x53dd48=[];if(!existsSync(_0x27576b))return{'screenshots':_0x359acf,'paths':_0x53dd48};const _0x3dd9d7=await readdir(_0x27576b),_0x4ed4cf=_0x3dd9d7[_0x1e69b1(0x1e7)](_0x5ba868=>/\.(png|jpg|jpeg|gif|webp)$/i['test'](_0x5ba868))[_0x1e69b1(0x1fd)]();for(const _0x476155 of _0x4ed4cf){const _0x548eee=_0x80edae[_0x1e69b1(0x1e2)](join,_0x27576b,_0x476155);_0x359acf[_0x1e69b1(0x1ee)]({'filename':_0x476155,'path':_0x548eee,'relativePath':'./'+_0x476155}),_0x53dd48['push'](_0x548eee);}return{'screenshots':_0x359acf,'paths':_0x53dd48};}function _0xd7bf(_0x410643,_0x238531){_0x410643=_0x410643-0x1df;const _0x4b492c=_0x4b49();let _0xd7bf91=_0x4b492c[_0x410643];return _0xd7bf91;}function getSeverityEmoji(_0x334012){const _0xd918e9=_0xd7bf;switch(_0x334012){case _0xd918e9(0x1fa):return'🔴';case _0xd918e9(0x1e5):return'🟠';default:return'⚪';}}function formatScreenshotCaption(_0x4c4d17){const _0x5e172b=_0xd7bf,_0xe1c326=_0x4c4d17['replace'](/\.(png|jpg|jpeg|gif|webp)$/i,''),_0x146b2b=_0xe1c326[_0x5e172b(0x1df)](/^\d+-/,'');return _0x146b2b['split']('-')['map'](_0x4e7b80=>_0x4e7b80['charAt'](0x0)['toUpperCase']()+_0x4e7b80['slice'](0x1))['join']('\x20');}export function generateMarkdownReport(_0x3b68da){const _0x2779b4=_0xd7bf,_0x13b2b3={'ynvta':function(_0x105274,_0xd2c9bc){return _0x105274>_0xd2c9bc;},'gdQoB':function(_0xdf6982,_0x367cea){return _0xdf6982(_0x367cea);}},{sessionId:_0x47504c,task:_0x1d378e,url:_0x586e86,success:_0x13fd7b,summary:_0x144784,issues:_0x349aa8,screenshots:_0x4500e2,durationMs:_0x500867,traceViewerUrl:_0x6e944c}=_0x3b68da,_0xbffff5=new Date()['toISOString'](),_0xa74cb4=(_0x500867/0x3e8)['toFixed'](0x1),_0x579e4a=[];_0x579e4a['push']('#\x20Verification\x20Report'),_0x579e4a['push'](''),_0x579e4a['push']('**Session:**\x20`'+_0x47504c+'`'),_0x579e4a['push']('**Generated:**\x20'+_0xbffff5),_0x579e4a[_0x2779b4(0x1ee)](_0x2779b4(0x1e3)+_0xa74cb4+'s'),_0x579e4a[_0x2779b4(0x1ee)](''),_0x579e4a['push'](_0x2779b4(0x1e0)),_0x579e4a[_0x2779b4(0x1ee)](''),_0x579e4a['push'](_0x2779b4(0x1f0)+_0x586e86),_0x579e4a['push'](''),_0x579e4a['push']('>\x20'+_0x1d378e),_0x579e4a['push'](''),_0x579e4a['push'](_0x2779b4(0x1ef)),_0x579e4a['push']('');const _0x5b8517=_0x13fd7b?'✅':'❌';_0x579e4a[_0x2779b4(0x1ee)](_0x2779b4(0x1e1)+_0x5b8517+'\x20'+(_0x13fd7b?'PASSED':'ISSUES\x20FOUND')),_0x579e4a['push'](''),_0x579e4a[_0x2779b4(0x1ee)]('###\x20Summary'),_0x579e4a['push'](''),_0x579e4a[_0x2779b4(0x1ee)](_0x144784),_0x579e4a['push']('');if(_0x349aa8&&_0x13b2b3['ynvta'](_0x349aa8['length'],0x0)){_0x579e4a['push']('###\x20Issues\x20Found\x20('+_0x349aa8[_0x2779b4(0x1f2)]+')'),_0x579e4a[_0x2779b4(0x1ee)]('');for(const _0x1cfd0d of _0x349aa8){const _0x293483=getSeverityEmoji(_0x1cfd0d[_0x2779b4(0x1e4)]);_0x579e4a[_0x2779b4(0x1ee)](_0x2779b4(0x204)+_0x293483+'\x20['+_0x1cfd0d['severity']+']\x20Issue'),_0x579e4a['push'](''),_0x579e4a[_0x2779b4(0x1ee)](_0x1cfd0d[_0x2779b4(0x1fb)]),_0x579e4a[_0x2779b4(0x1ee)]('');if(_0x1cfd0d['screenshot']){const _0x1753ce=_0x1cfd0d[_0x2779b4(0x1e8)],_0x333fbc=_0x4500e2['find'](_0x45ac53=>_0x45ac53['filename']===_0x1753ce||_0x45ac53['filename'][_0x2779b4(0x202)](_0x1753ce));_0x333fbc&&(_0x579e4a[_0x2779b4(0x1ee)](_0x2779b4(0x205)),_0x579e4a[_0x2779b4(0x1ee)](''),_0x579e4a[_0x2779b4(0x1ee)]('!['+_0x1753ce+']('+_0x333fbc[_0x2779b4(0x1fe)]+')'),_0x579e4a['push'](''));}}}if(_0x13b2b3[_0x2779b4(0x1e9)](_0x4500e2[_0x2779b4(0x1f2)],0x0)){_0x579e4a['push']('##\x20Screenshots\x20('+_0x4500e2['length']+')'),_0x579e4a[_0x2779b4(0x1ee)]('');for(const _0x49c428 of _0x4500e2){const _0x3ae8b4=_0x13b2b3[_0x2779b4(0x1ea)](formatScreenshotCaption,_0x49c428[_0x2779b4(0x203)]);_0x579e4a[_0x2779b4(0x1ee)](_0x2779b4(0x1f9)+_0x3ae8b4),_0x579e4a[_0x2779b4(0x1ee)](''),_0x579e4a[_0x2779b4(0x1ee)]('!['+_0x49c428[_0x2779b4(0x203)]+']('+_0x49c428['relativePath']+')'),_0x579e4a[_0x2779b4(0x1ee)]('');}}return _0x6e944c&&(_0x579e4a['push']('---'),_0x579e4a[_0x2779b4(0x1ee)](''),_0x579e4a[_0x2779b4(0x1ee)](_0x2779b4(0x1ff)+_0x6e944c+')'),_0x579e4a[_0x2779b4(0x1ee)]('')),_0x579e4a[_0x2779b4(0x1f3)]('\x0a');}
@@ -1 +1 @@
1
- function _0x2321(){const _0x381000=['2750839XdKvDt','label','1330102eKyEvc','2219253KUMYhx','4qtUCHR','54750LmGLXv','954088APlnUA','baseDelayMs','),\x20retrying\x20in\x20','maxRetries','error','3469330abdhpv','27LWvehd','2617374zXTlbu'];_0x2321=function(){return _0x381000;};return _0x2321();}(function(_0x592fae,_0x52cadb){const _0x318e24=_0x27f2,_0x4d2fac=_0x592fae();while(!![]){try{const _0x4ddf63=-parseInt(_0x318e24(0x14c))/0x1+-parseInt(_0x318e24(0x149))/0x2+parseInt(_0x318e24(0x14a))/0x3+parseInt(_0x318e24(0x14b))/0x4*(parseInt(_0x318e24(0x144))/0x5)+parseInt(_0x318e24(0x146))/0x6+-parseInt(_0x318e24(0x147))/0x7+-parseInt(_0x318e24(0x14d))/0x8*(parseInt(_0x318e24(0x145))/0x9);if(_0x4ddf63===_0x52cadb)break;else _0x4d2fac['push'](_0x4d2fac['shift']());}catch(_0x432f8a){_0x4d2fac['push'](_0x4d2fac['shift']());}}}(_0x2321,0x617b5));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x27f2(_0x8d45a2,_0x9f3299){_0x8d45a2=_0x8d45a2-0x144;const _0x23214a=_0x2321();let _0x27f21d=_0x23214a[_0x8d45a2];return _0x27f21d;}export async function withRetry(_0x5ed22e,_0x4f5036){const _0x10732d=_0x27f2,_0x4f54c9={'rWkcR':function(_0x412f04,_0x2b6888){return _0x412f04(_0x2b6888);},'jxkLx':function(_0x290ea4,_0x39a9fa){return _0x290ea4+_0x39a9fa;}},_0x5a1b8b=_0x4f5036?.[_0x10732d(0x150)]??DEFAULT_MAX_RETRIES,_0x3f7813=_0x4f5036?.[_0x10732d(0x14e)]??DEFAULT_BASE_DELAY_MS;let _0x36adab;for(let _0x4ddbd7=0x0;_0x4ddbd7<=_0x5a1b8b;_0x4ddbd7++){try{return await _0x5ed22e();}catch(_0x3253e7){_0x36adab=_0x3253e7 instanceof Error?_0x3253e7:new Error(_0x4f54c9['rWkcR'](String,_0x3253e7));if(_0x4ddbd7<_0x5a1b8b){const _0x56bd17=_0x3f7813*Math['pow'](0x2,_0x4ddbd7);_0x4f5036?.[_0x10732d(0x148)]&&console[_0x10732d(0x151)](_0x4f5036['label']+'\x20failed\x20(attempt\x20'+(_0x4ddbd7+0x1)+'/'+_0x4f54c9['jxkLx'](_0x5a1b8b,0x1)+_0x10732d(0x14f)+_0x56bd17+'ms...'),await new Promise(_0x5696eb=>setTimeout(_0x5696eb,_0x56bd17));}}}throw _0x36adab;}
1
+ function _0x5ccf(){const _0x2f72dd=['SsBna','7328528tEwiys','\x20failed\x20(attempt\x20','447926kLQvLC','1289040JReuem','error','8YfXYQz','3617908cAfgxJ','baseDelayMs','1738041iIsSzs','label','304787ZRqcAw','pow','157260HQpxEd'];_0x5ccf=function(){return _0x2f72dd;};return _0x5ccf();}(function(_0x212520,_0x5e0f7a){const _0x2388b5=_0x3b6b,_0x5eb79b=_0x212520();while(!![]){try{const _0x34795d=-parseInt(_0x2388b5(0x1d6))/0x1+parseInt(_0x2388b5(0x1ce))/0x2+parseInt(_0x2388b5(0x1d4))/0x3+-parseInt(_0x2388b5(0x1d1))/0x4*(-parseInt(_0x2388b5(0x1d8))/0x5)+parseInt(_0x2388b5(0x1cf))/0x6+parseInt(_0x2388b5(0x1d2))/0x7+-parseInt(_0x2388b5(0x1cc))/0x8;if(_0x34795d===_0x5e0f7a)break;else _0x5eb79b['push'](_0x5eb79b['shift']());}catch(_0x1238ef){_0x5eb79b['push'](_0x5eb79b['shift']());}}}(_0x5ccf,0x5c0d5));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x3b6b(_0x19f3fa,_0x28cb8e){_0x19f3fa=_0x19f3fa-0x1cc;const _0x5ccfea=_0x5ccf();let _0x3b6b92=_0x5ccfea[_0x19f3fa];return _0x3b6b92;}export async function withRetry(_0x4c4ddc,_0x44da9c){const _0x4d4f14=_0x3b6b,_0x581b25={'SsBna':function(_0x9cc778,_0x439709){return _0x9cc778(_0x439709);},'ViqDb':function(_0x3711c6,_0x4607d4){return _0x3711c6+_0x4607d4;}},_0x327cfb=_0x44da9c?.['maxRetries']??DEFAULT_MAX_RETRIES,_0xdc0661=_0x44da9c?.[_0x4d4f14(0x1d3)]??DEFAULT_BASE_DELAY_MS;let _0x5c31ea;for(let _0x4ee4d3=0x0;_0x4ee4d3<=_0x327cfb;_0x4ee4d3++){try{return await _0x4c4ddc();}catch(_0x182e59){_0x5c31ea=_0x182e59 instanceof Error?_0x182e59:new Error(_0x581b25[_0x4d4f14(0x1d9)](String,_0x182e59));if(_0x4ee4d3<_0x327cfb){const _0x246504=_0xdc0661*Math[_0x4d4f14(0x1d7)](0x2,_0x4ee4d3);_0x44da9c?.['label']&&console[_0x4d4f14(0x1d0)](_0x44da9c[_0x4d4f14(0x1d5)]+_0x4d4f14(0x1cd)+_0x581b25['ViqDb'](_0x4ee4d3,0x1)+'/'+(_0x327cfb+0x1)+'),\x20retrying\x20in\x20'+_0x246504+'ms...'),await new Promise(_0x35224c=>setTimeout(_0x35224c,_0x246504));}}}throw _0x5c31ea;}
@@ -1 +1 @@
1
- const _0x5a9f62=_0x5e4d;(function(_0x386baa,_0x4825e8){const _0x4f6973=_0x5e4d,_0x19f575=_0x386baa();while(!![]){try{const _0x200461=-parseInt(_0x4f6973(0x1b5))/0x1*(-parseInt(_0x4f6973(0x1c2))/0x2)+-parseInt(_0x4f6973(0x1c4))/0x3*(-parseInt(_0x4f6973(0x1c6))/0x4)+-parseInt(_0x4f6973(0x1bd))/0x5*(-parseInt(_0x4f6973(0x1b7))/0x6)+-parseInt(_0x4f6973(0x19e))/0x7*(parseInt(_0x4f6973(0x1b4))/0x8)+parseInt(_0x4f6973(0x1a1))/0x9+parseInt(_0x4f6973(0x1cc))/0xa+-parseInt(_0x4f6973(0x1a0))/0xb;if(_0x200461===_0x4825e8)break;else _0x19f575['push'](_0x19f575['shift']());}catch(_0x58df77){_0x19f575['push'](_0x19f575['shift']());}}}(_0x593a,0x9b36d));import*as _0x4a9c57 from'fs';import*as _0x291f35 from'path';import*as _0x12a9e8 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x291f35['join'](_0x12a9e8['homedir'](),_0x5a9f62(0x19f),'.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function _0x5e4d(_0x5f306a,_0xee11bc){_0x5f306a=_0x5f306a-0x199;const _0x593ad5=_0x593a();let _0x5e4db3=_0x593ad5[_0x5f306a];return _0x5e4db3;}function loadCache(){const _0x33a71c=_0x5a9f62,_0x162d7d={'SxbJH':'utf-8','NakUA':function(_0x4bb395){return _0x4bb395();}};try{if(_0x4a9c57['existsSync'](CACHE_FILE)){const _0xe65a88=JSON[_0x33a71c(0x199)](_0x4a9c57['readFileSync'](CACHE_FILE,_0x162d7d[_0x33a71c(0x1aa)]));return{'version':0x3,'sessions':_0xe65a88['sessions']||{},'branches':_0xe65a88[_0x33a71c(0x1a3)]||{},'lastEnabledSessionClearedAt':_0xe65a88[_0x33a71c(0x1ba)]};}}catch{}return _0x162d7d[_0x33a71c(0x1c0)](createEmptyCache);}function saveCache(_0x584d9f){const _0x442eec=_0x5a9f62;try{const _0x31b065=_0x291f35['dirname'](CACHE_FILE);!_0x4a9c57['existsSync'](_0x31b065)&&_0x4a9c57[_0x442eec(0x1be)](_0x31b065,{'recursive':!![]}),_0x4a9c57[_0x442eec(0x1a9)](CACHE_FILE,JSON['stringify'](_0x584d9f,null,0x2));}catch{}}export function getCurrentBranch(){const _0x11a1f0=_0x5a9f62,_0x501e4d={'NqyPX':'utf-8','qrPxd':'pipe','RQguf':function(_0x35c786,_0x365d6c){return _0x35c786===_0x365d6c;},'TeNfs':_0x11a1f0(0x1c8)};try{const _0x3c2cca=execSync(_0x11a1f0(0x1ad),{'encoding':_0x501e4d['NqyPX'],'stdio':[_0x501e4d[_0x11a1f0(0x1b1)],'pipe','pipe']})[_0x11a1f0(0x19b)]();if(!_0x3c2cca||_0x501e4d['RQguf'](_0x3c2cca,_0x501e4d[_0x11a1f0(0x1ca)]))return null;return _0x3c2cca;}catch{return null;}}export function enableBranch(_0x43b59c){const _0x1d9677={'LbNjb':function(_0x31e316){return _0x31e316();}},_0x1e46d0=_0x1d9677['LbNjb'](loadCache);_0x1e46d0['branches'][_0x43b59c]=!![],saveCache(_0x1e46d0);}export function disableBranch(_0x1f7437){const _0x23b59d=_0x5a9f62,_0x3a2ec7={'CcOAB':function(_0x42e666,_0x24991d){return _0x42e666(_0x24991d);}},_0x183b64=loadCache();delete _0x183b64[_0x23b59d(0x1a3)][_0x1f7437],_0x3a2ec7[_0x23b59d(0x1ce)](saveCache,_0x183b64);}export function isBranchEnabled(_0x12240c){const _0x16e9be=_0x5a9f62,_0x1975d2={'DoaLc':function(_0x35a0ca){return _0x35a0ca();},'tEvld':function(_0x30906a,_0x154a9f){return _0x30906a===_0x154a9f;}},_0x596ecf=_0x1975d2['DoaLc'](loadCache);return _0x1975d2[_0x16e9be(0x1a8)](_0x596ecf[_0x16e9be(0x1a3)][_0x12240c],!![]);}function getOrCreateSession(_0x13f5a3,_0x39aa60){const _0x198b0e=_0x5a9f62;return!_0x13f5a3['sessions'][_0x39aa60]&&(_0x13f5a3[_0x198b0e(0x1ae)][_0x39aa60]={}),_0x13f5a3['sessions'][_0x39aa60];}export function enableSession(_0x3a59ef){const _0x24ba07=_0x5a9f62,_0x87f457={'cnuZM':function(_0x289305){return _0x289305();},'jLHUi':'master','WgIFK':function(_0x2eccc4,_0x4ef6a){return _0x2eccc4(_0x4ef6a);}},_0x5e76d7=_0x87f457['cnuZM'](loadCache),_0x1c0858=getOrCreateSession(_0x5e76d7,_0x3a59ef);_0x1c0858['enabled']=!![];const _0x52523e=getCurrentBranch();_0x52523e&&_0x52523e!==_0x24ba07(0x1b2)&&_0x52523e!==_0x87f457['jLHUi']&&(_0x5e76d7['branches'][_0x52523e]=!![],_0x1c0858[_0x24ba07(0x1c9)]=_0x52523e),_0x87f457['WgIFK'](saveCache,_0x5e76d7);}export function isSessionEnabled(_0x5b37fc){const _0x49cb63=_0x5a9f62,_0x87adbe={'RIUBx':function(_0x187917){return _0x187917();},'koeqb':function(_0x2f4bb7,_0x38bcc9){return _0x2f4bb7===_0x38bcc9;},'kSUQJ':function(_0x483510,_0x4e32cd){return _0x483510||_0x4e32cd;}},_0x2ae5e8=_0x87adbe['RIUBx'](loadCache),_0x4c1a72=_0x87adbe[_0x49cb63(0x1c7)](getCurrentBranch);if(!_0x4c1a72||_0x4c1a72==='main'||_0x4c1a72==='master')return _0x87adbe['koeqb'](_0x2ae5e8['sessions'][_0x5b37fc]?.['enabled'],!![]);const _0x34b12f=_0x2ae5e8[_0x49cb63(0x1a3)][_0x4c1a72]===!![],_0x2e5d73=_0x2ae5e8[_0x49cb63(0x1ae)][_0x5b37fc]?.[_0x49cb63(0x1bb)]===!![];return _0x87adbe[_0x49cb63(0x1af)](_0x34b12f,_0x2e5d73);}export function disableSession(_0x152dce){const _0x31a126=_0x5a9f62,_0x4a1af4={'edFcw':function(_0x1ddd3b,_0x51deae){return _0x1ddd3b(_0x51deae);}},_0xdaf051=loadCache(),_0x3e3836=getOrCreateSession(_0xdaf051,_0x152dce);_0x3e3836['enabled']=![],_0x4a1af4[_0x31a126(0x1ac)](saveCache,_0xdaf051);}export function updateBranchTracking(_0x212e3f){const _0x1dc074=_0x5a9f62,_0x39ac90={'asCeg':'main','DJAid':function(_0x456f81,_0x4faf25){return _0x456f81===_0x4faf25;},'jfVHF':_0x1dc074(0x1c1),'EooDV':function(_0x52b0e7,_0x406d01){return _0x52b0e7!==_0x406d01;}},_0x50c8d0=loadCache(),_0x35a089=_0x50c8d0[_0x1dc074(0x1ae)][_0x212e3f];if(!_0x35a089?.['enabled'])return;const _0x476bd5=getCurrentBranch();if(!_0x476bd5||_0x476bd5===_0x39ac90['asCeg']||_0x39ac90[_0x1dc074(0x1b8)](_0x476bd5,_0x39ac90[_0x1dc074(0x1c3)]))return;_0x39ac90[_0x1dc074(0x1bf)](_0x35a089[_0x1dc074(0x1c9)],_0x476bd5)&&(_0x50c8d0[_0x1dc074(0x1a3)][_0x476bd5]=!![],_0x35a089['currentBranch']=_0x476bd5,saveCache(_0x50c8d0));}export function initBranchTracking(_0x460fd5){const _0x151a9c=_0x5a9f62,_0x49ad8e={'arxmK':function(_0x54434f){return _0x54434f();},'yjdnT':'master','FuVBI':function(_0x2f15a3,_0x2d57bb){return _0x2f15a3===_0x2d57bb;}},_0x544232=loadCache(),_0x4bc764=_0x49ad8e[_0x151a9c(0x1b0)](getCurrentBranch);if(!_0x4bc764||_0x4bc764==='main'||_0x4bc764===_0x49ad8e[_0x151a9c(0x1a7)])return;if(_0x49ad8e['FuVBI'](_0x544232[_0x151a9c(0x1a3)][_0x4bc764],!![])){const _0x516ba1=getOrCreateSession(_0x544232,_0x460fd5);_0x516ba1['enabled']=!![],_0x516ba1[_0x151a9c(0x1c9)]=_0x4bc764,saveCache(_0x544232);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x2feea9){const _0x3080d2=_0x5a9f62,_0x560269={'SuwLF':function(_0x237c5e){return _0x237c5e();}},_0x457322=_0x560269['SuwLF'](loadCache),_0x7a6cc7=_0x457322['sessions'][_0x2feea9];_0x7a6cc7?.['enabled']&&(_0x457322['lastEnabledSessionClearedAt']=Date[_0x3080d2(0x1a5)](),saveCache(_0x457322));}export function shouldAutoEnableAfterClear(_0x2e3bf0){const _0x23208d=_0x5a9f62,_0x448eaf={'RvOJT':function(_0x5725ff,_0x3b0d19){return _0x5725ff!==_0x3b0d19;},'DAVxS':_0x23208d(0x1c5),'ugirt':function(_0x47717b,_0x5a888f){return _0x47717b<=_0x5a888f;}};if(_0x448eaf['RvOJT'](_0x2e3bf0,_0x448eaf[_0x23208d(0x1bc)]))return![];const _0x56a021=loadCache(),_0x4288ba=_0x56a021[_0x23208d(0x1ba)];if(!_0x4288ba)return![];const _0xe9742a=Date['now']()-_0x4288ba;return _0x448eaf[_0x23208d(0x1b6)](_0xe9742a,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x4385d4){const _0x10d5f3=_0x5a9f62,_0x28ba99={'EOzjh':function(_0x33e37e,_0x4fa585){return _0x33e37e!==_0x4fa585;}},_0x17c4ab=loadCache(),_0x9dfa9=getOrCreateSession(_0x17c4ab,_0x4385d4);_0x9dfa9['enabled']=!![];const _0xe04754=getCurrentBranch();_0xe04754&&_0xe04754!==_0x10d5f3(0x1b2)&&_0x28ba99[_0x10d5f3(0x19c)](_0xe04754,_0x10d5f3(0x1c1))&&(_0x9dfa9[_0x10d5f3(0x1c9)]=_0xe04754),delete _0x17c4ab['lastEnabledSessionClearedAt'],saveCache(_0x17c4ab);}export function registerSession(_0x5e654d,_0x3e8bb8){const _0x2f0de7=_0x5a9f62,_0x240266={'tppTz':function(_0x28f56c,_0x114003,_0x23e67d){return _0x28f56c(_0x114003,_0x23e67d);}},_0x5a19ae=loadCache(),_0x2a1e2a=_0x240266['tppTz'](getOrCreateSession,_0x5a19ae,_0x5e654d);_0x2a1e2a[_0x2f0de7(0x1a4)]=_0x3e8bb8,_0x2a1e2a[_0x2f0de7(0x1b3)]=new Date()['toISOString'](),saveCache(_0x5a19ae);}export function getSessionEntry(_0x232767){const _0x3d1a54=_0x5a9f62,_0xa45238={'recCd':function(_0x4acc97){return _0x4acc97();}},_0xfbe64c=_0xa45238[_0x3d1a54(0x1cf)](loadCache),_0x7e04ab=_0xfbe64c['sessions'][_0x232767];if(_0x7e04ab?.[_0x3d1a54(0x1a4)]&&_0x7e04ab?.[_0x3d1a54(0x1b3)])return{'featureId':_0x7e04ab[_0x3d1a54(0x1a4)],'registeredAt':_0x7e04ab[_0x3d1a54(0x1b3)]};return null;}export function unregisterSession(_0x5a7763){const _0x456b7f=_0x5a9f62,_0x13d5f4=loadCache(),_0xa47500=_0x13d5f4['sessions'][_0x5a7763];_0xa47500&&(delete _0xa47500[_0x456b7f(0x1a4)],delete _0xa47500[_0x456b7f(0x1b3)],saveCache(_0x13d5f4));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x39200e){const _0x531a36=_0x5a9f62,_0x3797bd={'hijKq':function(_0x34848d,_0x48667a,_0x42b113){return _0x34848d(_0x48667a,_0x42b113);},'gqJsR':function(_0x314f93,_0x458428){return _0x314f93(_0x458428);}},_0x24f712=loadCache(),_0x17d18e=_0x3797bd[_0x531a36(0x1cd)](getOrCreateSession,_0x24f712,_0x39200e),_0x5167a0=_0x17d18e[_0x531a36(0x1cb)]||0x0,_0x4e9a54=Date['now']();if(_0x4e9a54-_0x5167a0>=PLAN_REMINDER_INTERVAL_MS)return _0x17d18e[_0x531a36(0x1cb)]=_0x4e9a54,_0x3797bd[_0x531a36(0x19a)](saveCache,_0x24f712),!![];return![];}export function shouldShowStopReminder(_0x32ba62){const _0x750e7e=_0x5a9f62,_0x10bdc5={'wxgbp':function(_0x407e3e,_0x55f5cc,_0x515283){return _0x407e3e(_0x55f5cc,_0x515283);},'xyByV':function(_0x45f30b,_0x485053){return _0x45f30b>=_0x485053;},'RFrdV':function(_0x2ac73a,_0x1fa97b){return _0x2ac73a-_0x1fa97b;}},_0x25628e=loadCache(),_0x83ab1=_0x10bdc5[_0x750e7e(0x1a2)](getOrCreateSession,_0x25628e,_0x32ba62),_0xabd1c1=_0x83ab1['lastStopReminderAt']||0x0,_0x578983=Date['now']();if(_0x10bdc5[_0x750e7e(0x1b9)](_0x10bdc5['RFrdV'](_0x578983,_0xabd1c1),STOP_REMINDER_INTERVAL_MS))return _0x83ab1[_0x750e7e(0x1ab)]=_0x578983,saveCache(_0x25628e),!![];return![];}export function hasSessionBeenPrompted(_0x41d4ca){const _0x122723=loadCache();return _0x122723['sessions'][_0x41d4ca]?.['prompted']===!![];}function _0x593a(){const _0x524115=['now','XSyrh','yjdnT','tEvld','writeFileSync','SxbJH','lastStopReminderAt','edFcw','git\x20rev-parse\x20--abbrev-ref\x20HEAD','sessions','kSUQJ','arxmK','qrPxd','main','registeredAt','8voUlSg','1NnzEXz','ugirt','42414ikvAxo','DJAid','xyByV','lastEnabledSessionClearedAt','enabled','DAVxS','440tbFGSK','mkdirSync','EooDV','NakUA','master','1845164HhKLAg','jfVHF','119631eJgiQL','clear','68USYgvE','RIUBx','HEAD','currentBranch','TeNfs','lastPlanReminderAt','7173780xZCvIA','hijKq','CcOAB','recCd','parse','gqJsR','trim','EOzjh','prompted','2219329vDcxBT','.claude','24207953ntSjBe','1922274IjAnFr','wxgbp','branches','featureId'];_0x593a=function(){return _0x524115;};return _0x593a();}export function markSessionPrompted(_0x434c4f){const _0x450239=_0x5a9f62,_0x4a57ce={'SDqIo':function(_0x28418e){return _0x28418e();},'XSyrh':function(_0x2892a3,_0x6ebab4,_0x2b85a6){return _0x2892a3(_0x6ebab4,_0x2b85a6);}},_0x13d456=_0x4a57ce['SDqIo'](loadCache),_0x23e11a=_0x4a57ce[_0x450239(0x1a6)](getOrCreateSession,_0x13d456,_0x434c4f);_0x23e11a[_0x450239(0x19d)]=!![],saveCache(_0x13d456);}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0x7d69f4=_0x5073;(function(_0x2e87fe,_0x4db20e){const _0x35fc66=_0x5073,_0x240c80=_0x2e87fe();while(!![]){try{const _0xf190fc=parseInt(_0x35fc66(0x199))/0x1+-parseInt(_0x35fc66(0x196))/0x2*(parseInt(_0x35fc66(0x184))/0x3)+parseInt(_0x35fc66(0x1a1))/0x4*(-parseInt(_0x35fc66(0x1a2))/0x5)+parseInt(_0x35fc66(0x1a7))/0x6+parseInt(_0x35fc66(0x193))/0x7+parseInt(_0x35fc66(0x19f))/0x8*(parseInt(_0x35fc66(0x18d))/0x9)+parseInt(_0x35fc66(0x195))/0xa;if(_0xf190fc===_0x4db20e)break;else _0x240c80['push'](_0x240c80['shift']());}catch(_0x5b0e6c){_0x240c80['push'](_0x240c80['shift']());}}}(_0x1a4c,0x69ee7));import*as _0x478e53 from'fs';import*as _0x2f3b8b from'path';import*as _0x250aeb from'os';function _0x1a4c(){const _0x14a65e=['YDUMR','enabled','SVufW','now','lastStopReminderAt','1104QhWWzK','existsSync','379572jDEQsG','45wPCnSU','parse','MihPm','lastPlanReminderAt','hmbNI','3274878VHNmQL','DVhZk','picjF','leBwO','gWQcl','writeFileSync','mkdirSync','.claude','21RMxBaq','NvpHM','aESoH','lastEnabledSessionClearedAt','yjLBF','.ranger_cache.json','DsBkb','git\x20rev-parse\x20--abbrev-ref\x20HEAD','currentBranch','2241ibzARm','master','sessions','branches','rXvNL','UcgVa','1310764kWjLgx','main','8990510UelLPe','220522mOLmZS','join','hvHdC','393281pSKCOx'];_0x1a4c=function(){return _0x14a65e;};return _0x1a4c();}import{execSync}from'child_process';const CACHE_FILE=_0x2f3b8b[_0x7d69f4(0x197)](_0x250aeb['homedir'](),_0x7d69f4(0x183),_0x7d69f4(0x189));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x114773=_0x7d69f4,_0x2db585={'ltFMO':'utf-8'};try{if(_0x478e53[_0x114773(0x1a0)](CACHE_FILE)){const _0xeb870f=JSON[_0x114773(0x1a3)](_0x478e53['readFileSync'](CACHE_FILE,_0x2db585['ltFMO']));return{'version':0x3,'sessions':_0xeb870f['sessions']||{},'branches':_0xeb870f['branches']||{},'lastEnabledSessionClearedAt':_0xeb870f['lastEnabledSessionClearedAt']};}}catch{}return createEmptyCache();}function saveCache(_0x51d73f){const _0x1db935=_0x7d69f4;try{const _0x503695=_0x2f3b8b['dirname'](CACHE_FILE);!_0x478e53['existsSync'](_0x503695)&&_0x478e53[_0x1db935(0x1ad)](_0x503695,{'recursive':!![]}),_0x478e53[_0x1db935(0x1ac)](CACHE_FILE,JSON['stringify'](_0x51d73f,null,0x2));}catch{}}export function getCurrentBranch(){const _0x193734=_0x7d69f4,_0x5e77c6={'ZmfXu':function(_0x32e177,_0x43a441,_0x465673){return _0x32e177(_0x43a441,_0x465673);},'aESoH':'utf-8','DVhZk':'pipe','OrarZ':'HEAD'};try{const _0x1a5251=_0x5e77c6['ZmfXu'](execSync,_0x193734(0x18b),{'encoding':_0x5e77c6[_0x193734(0x186)],'stdio':[_0x5e77c6['DVhZk'],_0x5e77c6['DVhZk'],_0x5e77c6[_0x193734(0x1a8)]]})['trim']();if(!_0x1a5251||_0x1a5251===_0x5e77c6['OrarZ'])return null;return _0x1a5251;}catch{return null;}}export function enableBranch(_0x75ab81){const _0x313f7f=loadCache();_0x313f7f['branches'][_0x75ab81]=!![],saveCache(_0x313f7f);}export function disableBranch(_0xc288c6){const _0xc27599=_0x7d69f4,_0x57be18=loadCache();delete _0x57be18[_0xc27599(0x190)][_0xc288c6],saveCache(_0x57be18);}export function isBranchEnabled(_0x2ef802){const _0x39e7bd=_0x7d69f4,_0x1e49c2={'yjLBF':function(_0x5dc538){return _0x5dc538();}},_0x966172=_0x1e49c2[_0x39e7bd(0x188)](loadCache);return _0x966172['branches'][_0x2ef802]===!![];}function getOrCreateSession(_0x3451fc,_0x394fa1){const _0x4358c4=_0x7d69f4;return!_0x3451fc[_0x4358c4(0x18f)][_0x394fa1]&&(_0x3451fc[_0x4358c4(0x18f)][_0x394fa1]={}),_0x3451fc[_0x4358c4(0x18f)][_0x394fa1];}export function enableSession(_0x349798){const _0x11ff81=_0x7d69f4,_0x140ba2={'LEnFD':function(_0x2e148c){return _0x2e148c();},'urGuI':function(_0x57de3f,_0x2013b0,_0x52235){return _0x57de3f(_0x2013b0,_0x52235);},'fNhwB':function(_0x35b9b8,_0x3014fb){return _0x35b9b8!==_0x3014fb;},'PvDxb':function(_0x2f9c06,_0x2c8a0d){return _0x2f9c06(_0x2c8a0d);}},_0x2c24b3=_0x140ba2['LEnFD'](loadCache),_0x3a4f44=_0x140ba2['urGuI'](getOrCreateSession,_0x2c24b3,_0x349798);_0x3a4f44[_0x11ff81(0x19b)]=!![];const _0x40cfa1=getCurrentBranch();_0x40cfa1&&_0x140ba2['fNhwB'](_0x40cfa1,'main')&&_0x40cfa1!==_0x11ff81(0x18e)&&(_0x2c24b3['branches'][_0x40cfa1]=!![],_0x3a4f44['currentBranch']=_0x40cfa1),_0x140ba2['PvDxb'](saveCache,_0x2c24b3);}export function isSessionEnabled(_0x4d4892){const _0x209faa=_0x7d69f4,_0x4a78f1={'BfLia':function(_0xbc06c4){return _0xbc06c4();},'YDUMR':function(_0x147bf8,_0x297140){return _0x147bf8===_0x297140;},'ZOWOm':function(_0x4b6523,_0x1b3a5f){return _0x4b6523===_0x1b3a5f;}},_0x150e0e=_0x4a78f1['BfLia'](loadCache),_0x493470=getCurrentBranch();if(!_0x493470||_0x4a78f1[_0x209faa(0x19a)](_0x493470,_0x209faa(0x194))||_0x4a78f1['ZOWOm'](_0x493470,'master'))return _0x150e0e[_0x209faa(0x18f)][_0x4d4892]?.[_0x209faa(0x19b)]===!![];const _0x116331=_0x150e0e['branches'][_0x493470]===!![],_0x43b3e5=_0x4a78f1[_0x209faa(0x19a)](_0x150e0e[_0x209faa(0x18f)][_0x4d4892]?.['enabled'],!![]);return _0x116331||_0x43b3e5;}export function disableSession(_0x137509){const _0x9f7d56=_0x7d69f4,_0x482cbd={'leBwO':function(_0x4aac44,_0x152131,_0x4b51e0){return _0x4aac44(_0x152131,_0x4b51e0);},'HNfMH':function(_0x2a71b0,_0x36a644){return _0x2a71b0(_0x36a644);}},_0x122fad=loadCache(),_0x26dfab=_0x482cbd[_0x9f7d56(0x1aa)](getOrCreateSession,_0x122fad,_0x137509);_0x26dfab[_0x9f7d56(0x19b)]=![],_0x482cbd['HNfMH'](saveCache,_0x122fad);}export function updateBranchTracking(_0x176062){const _0x5099e8=_0x7d69f4,_0x33f112={'rXvNL':function(_0x2e1331,_0x6e80c7){return _0x2e1331===_0x6e80c7;},'DsBkb':_0x5099e8(0x194),'NvpHM':function(_0x5740be,_0x1f45fb){return _0x5740be(_0x1f45fb);}},_0x61994c=loadCache(),_0xdace6b=_0x61994c[_0x5099e8(0x18f)][_0x176062];if(!_0xdace6b?.['enabled'])return;const _0x2b330a=getCurrentBranch();if(!_0x2b330a||_0x33f112['rXvNL'](_0x2b330a,_0x33f112[_0x5099e8(0x18a)])||_0x33f112[_0x5099e8(0x191)](_0x2b330a,'master'))return;_0xdace6b['currentBranch']!==_0x2b330a&&(_0x61994c['branches'][_0x2b330a]=!![],_0xdace6b[_0x5099e8(0x18c)]=_0x2b330a,_0x33f112[_0x5099e8(0x185)](saveCache,_0x61994c));}export function initBranchTracking(_0x8a1988){const _0x271728=_0x7d69f4,_0x384ed6={'hvHdC':function(_0x37a478){return _0x37a478();},'SVufW':'main','kgYQh':function(_0xe8b2b7,_0x2ebd28){return _0xe8b2b7===_0x2ebd28;},'slZHV':'master','NPbHg':function(_0x548c60,_0x3019ee){return _0x548c60===_0x3019ee;},'PhXmW':function(_0x280ba2,_0x18764d,_0x5f3c3a){return _0x280ba2(_0x18764d,_0x5f3c3a);},'plntY':function(_0x303114,_0x1e21b4){return _0x303114(_0x1e21b4);}},_0x26b3b6=loadCache(),_0x3b1593=_0x384ed6[_0x271728(0x198)](getCurrentBranch);if(!_0x3b1593||_0x3b1593===_0x384ed6[_0x271728(0x19c)]||_0x384ed6['kgYQh'](_0x3b1593,_0x384ed6['slZHV']))return;if(_0x384ed6['NPbHg'](_0x26b3b6[_0x271728(0x190)][_0x3b1593],!![])){const _0x4b234=_0x384ed6['PhXmW'](getOrCreateSession,_0x26b3b6,_0x8a1988);_0x4b234[_0x271728(0x19b)]=!![],_0x4b234['currentBranch']=_0x3b1593,_0x384ed6['plntY'](saveCache,_0x26b3b6);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x1cc91c){const _0x62330c=_0x7d69f4,_0x33f47a={'CzesT':function(_0x390a7b){return _0x390a7b();}},_0x16378c=_0x33f47a['CzesT'](loadCache),_0x2f738f=_0x16378c['sessions'][_0x1cc91c];_0x2f738f?.[_0x62330c(0x19b)]&&(_0x16378c[_0x62330c(0x187)]=Date['now'](),saveCache(_0x16378c));}export function shouldAutoEnableAfterClear(_0x243fcc){const _0x2bee43=_0x7d69f4,_0x45b0fa={'gWQcl':function(_0x2d5e67,_0x46db00){return _0x2d5e67!==_0x46db00;},'hwbBk':'clear','YkNcK':function(_0x5ff0ce,_0x349867){return _0x5ff0ce-_0x349867;},'picjF':function(_0x1d5e3d,_0x2dfa79){return _0x1d5e3d<=_0x2dfa79;}};if(_0x45b0fa[_0x2bee43(0x1ab)](_0x243fcc,_0x45b0fa['hwbBk']))return![];const _0x3f1d2c=loadCache(),_0x5bb715=_0x3f1d2c[_0x2bee43(0x187)];if(!_0x5bb715)return![];const _0x487bb5=_0x45b0fa['YkNcK'](Date[_0x2bee43(0x19d)](),_0x5bb715);return _0x45b0fa[_0x2bee43(0x1a9)](_0x487bb5,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x4e1441){const _0x42b990={'JjulX':function(_0x17077e,_0x59ccf8,_0x5a5724){return _0x17077e(_0x59ccf8,_0x5a5724);},'xlWjT':function(_0x579f97,_0x171a0c){return _0x579f97!==_0x171a0c;},'GHaYd':'main','epXOC':'master','WgabT':function(_0x1f14f0,_0x1e4156){return _0x1f14f0(_0x1e4156);}},_0x413aa2=loadCache(),_0xdf6117=_0x42b990['JjulX'](getOrCreateSession,_0x413aa2,_0x4e1441);_0xdf6117['enabled']=!![];const _0x5f288b=getCurrentBranch();_0x5f288b&&_0x42b990['xlWjT'](_0x5f288b,_0x42b990['GHaYd'])&&_0x5f288b!==_0x42b990['epXOC']&&(_0xdf6117['currentBranch']=_0x5f288b),delete _0x413aa2['lastEnabledSessionClearedAt'],_0x42b990['WgabT'](saveCache,_0x413aa2);}export function registerSession(_0x1399ca,_0x35145b){const _0x488cc7={'SDErZ':function(_0x2f0ce4,_0xa3cdee,_0x282b57){return _0x2f0ce4(_0xa3cdee,_0x282b57);},'atUpG':function(_0x163fcf,_0x548bbf){return _0x163fcf(_0x548bbf);}},_0x2b22da=loadCache(),_0x4e5df6=_0x488cc7['SDErZ'](getOrCreateSession,_0x2b22da,_0x1399ca);_0x4e5df6['featureId']=_0x35145b,_0x4e5df6['registeredAt']=new Date()['toISOString'](),_0x488cc7['atUpG'](saveCache,_0x2b22da);}export function getSessionEntry(_0x123faf){const _0xf0c2df=_0x7d69f4,_0x206f31={'hmbNI':function(_0x5e0b37){return _0x5e0b37();}},_0x64c3b8=_0x206f31[_0xf0c2df(0x1a6)](loadCache),_0x316700=_0x64c3b8[_0xf0c2df(0x18f)][_0x123faf];if(_0x316700?.['featureId']&&_0x316700?.['registeredAt'])return{'featureId':_0x316700['featureId'],'registeredAt':_0x316700['registeredAt']};return null;}export function unregisterSession(_0x349533){const _0xe8e657=_0x7d69f4,_0x5769eb=loadCache(),_0x2809ae=_0x5769eb[_0xe8e657(0x18f)][_0x349533];_0x2809ae&&(delete _0x2809ae['featureId'],delete _0x2809ae['registeredAt'],saveCache(_0x5769eb));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;function _0x5073(_0x921a04,_0x3a65c3){_0x921a04=_0x921a04-0x183;const _0x1a4ce5=_0x1a4c();let _0x50736e=_0x1a4ce5[_0x921a04];return _0x50736e;}export function shouldShowPlanReminder(_0x23b53b){const _0x5c3ffc=_0x7d69f4,_0x290911=loadCache(),_0x568c49=getOrCreateSession(_0x290911,_0x23b53b),_0x92e86a=_0x568c49['lastPlanReminderAt']||0x0,_0x3c1ea7=Date['now']();if(_0x3c1ea7-_0x92e86a>=PLAN_REMINDER_INTERVAL_MS)return _0x568c49[_0x5c3ffc(0x1a5)]=_0x3c1ea7,saveCache(_0x290911),!![];return![];}export function shouldShowStopReminder(_0x11d465){const _0x41859a=_0x7d69f4,_0xb8832f={'LTnnG':function(_0x17e6c6){return _0x17e6c6();},'IFMBV':function(_0x4d5ab6,_0x3d49ad){return _0x4d5ab6>=_0x3d49ad;},'MihPm':function(_0x2aec20,_0x53182b){return _0x2aec20-_0x53182b;},'UcgVa':function(_0x3a652c,_0xc310f5){return _0x3a652c(_0xc310f5);}},_0x991622=_0xb8832f['LTnnG'](loadCache),_0xf6f80c=getOrCreateSession(_0x991622,_0x11d465),_0x1ff51b=_0xf6f80c['lastStopReminderAt']||0x0,_0x4f5bb8=Date[_0x41859a(0x19d)]();if(_0xb8832f['IFMBV'](_0xb8832f[_0x41859a(0x1a4)](_0x4f5bb8,_0x1ff51b),STOP_REMINDER_INTERVAL_MS))return _0xf6f80c[_0x41859a(0x19e)]=_0x4f5bb8,_0xb8832f[_0x41859a(0x192)](saveCache,_0x991622),!![];return![];}export function hasSessionBeenPrompted(_0x4b4e95){const _0x126958=_0x7d69f4,_0xbd22ce={'cSuUJ':function(_0x375dba){return _0x375dba();}},_0x1d7a2b=_0xbd22ce['cSuUJ'](loadCache);return _0x1d7a2b[_0x126958(0x18f)][_0x4b4e95]?.['prompted']===!![];}export function markSessionPrompted(_0x500db5){const _0x16ea3b={'kAPQu':function(_0x2e6138){return _0x2e6138();},'dTcjw':function(_0x15eccd,_0x4c6ac3,_0x4fcc70){return _0x15eccd(_0x4c6ac3,_0x4fcc70);}},_0x2860ba=_0x16ea3b['kAPQu'](loadCache),_0x5e8039=_0x16ea3b['dTcjw'](getOrCreateSession,_0x2860ba,_0x500db5);_0x5e8039['prompted']=!![],saveCache(_0x2860ba);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x106451=_0x1354;(function(_0x5165c2,_0x5c82e7){const _0x601f62=_0x1354,_0x619dd5=_0x5165c2();while(!![]){try{const _0x3eb029=parseInt(_0x601f62(0x1b2))/0x1+-parseInt(_0x601f62(0x16a))/0x2*(-parseInt(_0x601f62(0x1a9))/0x3)+-parseInt(_0x601f62(0x1a5))/0x4+parseInt(_0x601f62(0x1b7))/0x5+parseInt(_0x601f62(0x197))/0x6+parseInt(_0x601f62(0x184))/0x7+-parseInt(_0x601f62(0x1ce))/0x8*(parseInt(_0x601f62(0x186))/0x9);if(_0x3eb029===_0x5c82e7)break;else _0x619dd5['push'](_0x619dd5['shift']());}catch(_0x1c2d73){_0x619dd5['push'](_0x619dd5['shift']());}}}(_0x36eb,0x8dcd7));function _0x36eb(){const _0x12ffb0=['sessions','env','jWcbx','Ffmrv','jtTbK','QEBmR','join','lEwdm','cdpEndpoint','dmYTj','configPath','ranger-auth-','map','egXyC','1293438dNayIw','dGnsm','JqZNW','clipboard-write','auth.json.enc','includes','userAgent','GcXbu','settings.json','QuUAA','.json','ukAHj','Failed\x20to\x20decrypt\x20auth\x20state:\x20','split','1604552wMQaSl','acBeS','CrRAN','goilt','15RNMeml','pvYkn','VXkfe','qGPrk','contextOptions','aHeWq','path','lnajs','push','956617ESelGA','headers','chromium','locations','UPDcN','2994720zLFwkj','allowInsecureLocalhost','getuid','message','GOpvy','mWcYm','length','yyRBA','jkoHv','isArray','local','szORH','ranger-config','YbzLR','filter','hXuiK','vision','--disable-setuid-sandbox','replace','ALvMI','\x20is\x20not\x20set','auth.json','qAXba','1263392XIIKuC','allow','UbYDo','headless','ebLAs','header','267346rgHYAz','cLukl','sqGhH','ignoreHTTPSErrors','code','dPsOo','--disable-features=WebBluetooth','browser','VzcDG','storageState','dQQtm','mFlIO','string','install','storageStatePath','location','extraHTTPHeaders','ENOENT','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','entries','REaWd','JTJXn','uNgwU','stringify','CFaAr','OcpcO','7484722EihuRR','--disable-web-security','144tPETfL','args','now'];_0x36eb=function(){return _0x12ffb0;};return _0x36eb();}import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir}from'./rangerRoot.js';export function getEnvDir(_0x281258){const _0x193a0d=_0x1354,_0x6fc528={'JqZNW':function(_0x5c1a66){return _0x5c1a66();},'fZsaU':function(_0x23a4f0,_0x53e516,_0x816744,_0x3af64e){return _0x23a4f0(_0x53e516,_0x816744,_0x3af64e);},'Ffmrv':function(_0x54f4ac,_0xabdd58,_0x3c61ef){return _0x54f4ac(_0xabdd58,_0x3c61ef);},'dBJab':_0x193a0d(0x1c1),'cLukl':function(_0x3238fc,_0x3e3670){return _0x3238fc(_0x3e3670);},'qWTkl':function(_0x378ae4,_0xa3d92e){return _0x378ae4!==_0xa3d92e;},'OVGbP':function(_0x47e869,_0x44bdea){return _0x47e869!==_0x44bdea;}},_0x4d3aca=_0x6fc528[_0x193a0d(0x199)](getRangerDir),_0x33934b=_0x6fc528['fZsaU'](join,_0x4d3aca,'ci',_0x281258),_0x44938d=join(_0x4d3aca,_0x193a0d(0x1c1),_0x281258),_0x2619f5=_0x6fc528[_0x193a0d(0x18c)](join,_0x4d3aca,_0x281258),_0x1cd1c1=join(_0x4d3aca,_0x6fc528['dBJab']),_0x370aef=join(_0x4d3aca,'ci');if(_0x6fc528['cLukl'](existsSync,_0x33934b))return _0x33934b;if(existsSync(_0x44938d))return _0x44938d;if(_0x6fc528[_0x193a0d(0x16b)](existsSync,_0x2619f5)&&(_0x6fc528['qWTkl'](_0x2619f5,_0x1cd1c1)&&_0x6fc528['OVGbP'](_0x2619f5,_0x370aef)?!![]:hasLegacyProfileFiles(_0x2619f5)))return _0x2619f5;return _0x44938d;}export function findExistingEnv(_0x153a29,_0xc8132a){const _0xf81ddb=_0x1354,_0x31cf27={'dQQtm':'local','CrRAN':function(_0x4344d1,_0x325e23,_0x2c91e4){return _0x4344d1(_0x325e23,_0x2c91e4);},'bnWmm':function(_0x6e1871,_0x7a276d,_0x18d339,_0x120339){return _0x6e1871(_0x7a276d,_0x18d339,_0x120339);},'xLjvx':function(_0x4819d4,_0x5a7022){return _0x4819d4===_0x5a7022;}},_0x48e0a8=getRangerDir(),_0x2d00bb=_0xc8132a?.[_0xf81ddb(0x1b5)]??['ci',_0x31cf27[_0xf81ddb(0x174)],'legacy'],_0x39ff87=_0x31cf27[_0xf81ddb(0x1a7)](join,_0x48e0a8,_0x31cf27[_0xf81ddb(0x174)]),_0x20cc0e=_0x31cf27[_0xf81ddb(0x1a7)](join,_0x48e0a8,'ci'),_0x207877=[{'location':'ci','path':join(_0x48e0a8,'ci',_0x153a29)},{'location':'local','path':_0x31cf27['bnWmm'](join,_0x48e0a8,_0x31cf27['dQQtm'],_0x153a29)},{'location':'legacy','path':join(_0x48e0a8,_0x153a29)}];for(const _0x4cd50c of _0x207877){if(_0x2d00bb[_0xf81ddb(0x19c)](_0x4cd50c[_0xf81ddb(0x179)])&&existsSync(_0x4cd50c[_0xf81ddb(0x1af)])){if(_0x4cd50c['location']==='legacy'&&(_0x4cd50c['path']===_0x39ff87||_0x31cf27['xLjvx'](_0x4cd50c['path'],_0x20cc0e))&&!hasLegacyProfileFiles(_0x4cd50c['path']))continue;return{'path':_0x4cd50c['path'],'location':_0x4cd50c['location']};}}return null;}function hasLegacyProfileFiles(_0x861ab7){const _0xcf01a1=_0x1354,_0x9e7f2d={'xwmEr':function(_0x414934,_0x7b8b82){return _0x414934(_0x7b8b82);},'pvYkn':_0xcf01a1(0x19f),'fyXft':function(_0x5cb539,_0x4d12d9,_0x4631bc){return _0x5cb539(_0x4d12d9,_0x4631bc);},'xwVLe':function(_0x6b35c,_0x4cf9bc){return _0x6b35c(_0x4cf9bc);}};return _0x9e7f2d['xwmEr'](existsSync,join(_0x861ab7,_0x9e7f2d[_0xcf01a1(0x1aa)]))||existsSync(_0x9e7f2d['fyXft'](join,_0x861ab7,_0xcf01a1(0x1cc)))||_0x9e7f2d['xwVLe'](existsSync,join(_0x861ab7,'auth.json.enc'));}export function isEnvCi(_0x4c4138){const _0x536ff5=_0x1354,_0x538195={'goilt':function(_0x133e29,_0x4abfa8){return _0x133e29(_0x4abfa8);}};return _0x538195[_0x536ff5(0x1a8)](existsSync,join(getRangerDir(),'ci',_0x4c4138));}export async function cleanupTempFiles(_0x53e77e){const _0x88ba25=_0x1354,_0x110943={'RTobL':function(_0x3dcd80,_0x879aca){return _0x3dcd80!==_0x879aca;},'EabzK':_0x88ba25(0x17b)},_0x32eb87=[_0x53e77e['tempAuthPath'],_0x53e77e[_0x88ba25(0x193)]]['filter'](Boolean);await Promise['all'](_0x32eb87['map'](_0x12212e=>unlink(_0x12212e)['catch'](_0x549070=>{const _0x5b7ab6=_0x88ba25;_0x110943['RTobL'](_0x549070[_0x5b7ab6(0x16e)],_0x110943['EabzK'])&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x12212e+':',_0x549070['message']);})));}export function getSettingsPath(_0x8702dc){const _0x4373f0=_0x1354,_0x54e9d8={'QuUAA':function(_0x50b8e4,_0x20739b,_0x666935){return _0x50b8e4(_0x20739b,_0x666935);},'jWcbx':'settings.json'};return _0x54e9d8[_0x4373f0(0x1a0)](join,getEnvDir(_0x8702dc),_0x54e9d8[_0x4373f0(0x18b)]);}export async function loadSettings(_0x9edcb){const _0x4acd06={'mqczt':function(_0x342bdc,_0x15d987){return _0x342bdc(_0x15d987);},'GyCLi':function(_0x5b8c3e,_0x5be2e4){return _0x5b8c3e(_0x5be2e4);},'rAoTK':'utf-8'},_0x4b3ef3=_0x4acd06['mqczt'](getSettingsPath,_0x9edcb);if(!_0x4acd06['GyCLi'](existsSync,_0x4b3ef3))return{};try{const _0x4908ea=await readFile(_0x4b3ef3,_0x4acd06['rAoTK']);return JSON['parse'](_0x4908ea);}catch{return{};}}export async function saveSettings(_0xbed53,_0x4695f0){const _0x39fde4=_0x1354,_0x5024b2={'hXuiK':function(_0x2a2bbf,_0x368c75){return _0x2a2bbf(_0x368c75);},'egXyC':function(_0xb6c087,_0xb37559,_0x4d3347){return _0xb6c087(_0xb37559,_0x4d3347);}},_0x1b5cf4=_0x5024b2[_0x39fde4(0x1c6)](getSettingsPath,_0xbed53),_0x5c6c47=dirname(_0x1b5cf4);!_0x5024b2['hXuiK'](existsSync,_0x5c6c47)&&await _0x5024b2[_0x39fde4(0x196)](mkdir,_0x5c6c47,{'recursive':!![]}),await writeFile(_0x1b5cf4,JSON[_0x39fde4(0x181)](_0x4695f0,null,0x2));}export function resolveEnvVars(_0x6169c7){const _0xbedb43=_0x1354,_0x47be81={'VXkfe':'string','Pfdxf':function(_0x171e02,_0x33be2d){return _0x171e02===_0x33be2d;},'dOTNt':'object'};if(typeof _0x6169c7===_0x47be81[_0xbedb43(0x1ab)])return _0x6169c7[_0xbedb43(0x1c9)](/\$\{(\w+)\}/g,(_0xe21914,_0x7b080b)=>{const _0x27d37e=_0xbedb43,_0x1434d9=process[_0x27d37e(0x18a)][_0x7b080b];if(_0x1434d9===undefined)throw new Error('Environment\x20variable\x20'+_0x7b080b+_0x27d37e(0x1cb));return _0x1434d9;});if(Array[_0xbedb43(0x1c0)](_0x6169c7))return _0x6169c7['map'](resolveEnvVars);if(_0x6169c7&&_0x47be81['Pfdxf'](typeof _0x6169c7,_0x47be81['dOTNt']))return Object['fromEntries'](Object[_0xbedb43(0x17d)](_0x6169c7)[_0xbedb43(0x195)](([_0x562a88,_0x1fafee])=>[_0x562a88,resolveEnvVars(_0x1fafee)]));return _0x6169c7;}const isRecord=_0xf7a2a4=>typeof _0xf7a2a4==='object'&&_0xf7a2a4!==null&&!Array['isArray'](_0xf7a2a4),asRecord=_0xca2259=>isRecord(_0xca2259)?_0xca2259:undefined,mergeHeaders=(_0x5a088e,_0x4973a4)=>{const _0x2b7b29={..._0x5a088e??{},..._0x4973a4??{}};return Object['keys'](_0x2b7b29)['length']?_0x2b7b29:undefined;},SAFE_MODE_ARGS=[_0x106451(0x170)],ALLOW_LOCALHOST_ARGS=[_0x106451(0x185),'--allow-running-insecure-content','--unsafely-treat-insecure-origin-as-secure=http://localhost','--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x28e476,_0x26ab79={}){const _0x1f9fd4=_0x106451,_0x2b8370={'VzcDG':function(_0x4687ed,_0x3ba582){return _0x4687ed(_0x3ba582);},'mLCXM':function(_0x437013,_0x5e70be){return _0x437013===_0x5e70be;},'acBeS':_0x1f9fd4(0x176),'QEYTU':function(_0x5c60d1,_0x38cd85,_0x154a37){return _0x5c60d1(_0x38cd85,_0x154a37);}},_0x3e1611=asRecord(_0x28e476['browser']),_0x134810={..._0x2b8370[_0x1f9fd4(0x172)](asRecord,_0x3e1611?.['launchOptions'])??{}};typeof _0x26ab79[_0x1f9fd4(0x1d1)]==='boolean'&&(_0x134810[_0x1f9fd4(0x1d1)]=_0x26ab79['headless']);if(_0x28e476['safeMode']){const _0x2050c1=_0x134810['args']??[],_0x394827=SAFE_MODE_ARGS['filter'](_0x223b9c=>!_0x2050c1[_0x1f9fd4(0x19c)](_0x223b9c));_0x134810['args']=[..._0x2050c1,..._0x394827];}if(_0x28e476[_0x1f9fd4(0x1b8)]){const _0x4178c0=_0x134810['args']??[],_0x248972=ALLOW_LOCALHOST_ARGS['filter'](_0x164604=>!_0x4178c0[_0x1f9fd4(0x19c)](_0x164604));_0x134810['args']=[..._0x4178c0,..._0x248972];}const _0xcbdb7b={..._0x2b8370[_0x1f9fd4(0x172)](asRecord,_0x3e1611?.['contextOptions'])??{}};_0xcbdb7b[_0x1f9fd4(0x16d)]=!![];_0x2b8370['mLCXM'](typeof _0x28e476[_0x1f9fd4(0x19d)],_0x2b8370[_0x1f9fd4(0x1a6)])&&(_0xcbdb7b[_0x1f9fd4(0x19d)]=_0x28e476[_0x1f9fd4(0x19d)]);const _0xa9860=_0x2b8370['QEYTU'](mergeHeaders,asRecord(_0xcbdb7b['extraHTTPHeaders']),asRecord(_0x28e476[_0x1f9fd4(0x1b3)]));return _0xa9860?_0xcbdb7b[_0x1f9fd4(0x17a)]=_0xa9860:delete _0xcbdb7b[_0x1f9fd4(0x17a)],_0x26ab79['storageStatePath']&&(_0xcbdb7b['storageState']=_0x26ab79[_0x1f9fd4(0x178)]),{'launchOptions':_0x134810,'contextOptions':_0xcbdb7b};}export async function buildPlaywrightConfig(_0x337fe1,_0x320404,_0x23d292,_0x30afe6){const _0x3b7c22=_0x106451,_0x4f752b={'SjnBP':function(_0x231fdf,_0x4dbb1f){return _0x231fdf===_0x4dbb1f;},'sqGhH':'--no-sandbox','jtTbK':'--disable-setuid-sandbox','mQdPT':_0x3b7c22(0x1b4),'qAXba':'clipboard-read','NAfzV':_0x3b7c22(0x19a),'qGPrk':function(_0x29cd6e,_0x360eb7,_0x5f2134){return _0x29cd6e(_0x360eb7,_0x5f2134);},'llLAY':'auth.json','YbzLR':function(_0x26b2fa){return _0x26b2fa();},'OcpcO':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','yyRBA':function(_0x5981ba,_0x142681,_0x57e895){return _0x5981ba(_0x142681,_0x57e895);},'lnajs':function(_0x4e75eb){return _0x4e75eb();},'GcXbu':function(_0x5273ff,_0x362229){return _0x5273ff(_0x362229);},'aHeWq':function(_0x25bc47){return _0x25bc47();},'RRswb':function(_0x171839,_0x36e3b8,_0x50895f,_0x5c8278){return _0x171839(_0x36e3b8,_0x50895f,_0x5c8278);},'cCoJv':'core','JQPWW':'tabs','QEBmR':_0x3b7c22(0x177),'REaWd':'pdf','uNgwU':_0x3b7c22(0x1cf),'dGnsm':function(_0x1f8f60,_0x480bdb){return _0x1f8f60===_0x480bdb;},'VRxCZ':'ranger-config','XBaej':function(_0x34f59b,_0xde679){return _0x34f59b(_0xde679);},'ebLAs':function(_0x258f58,_0x5d9a77,_0x3e4042){return _0x258f58(_0x5d9a77,_0x3e4042);}},_0x4f9374=getEnvDir(_0x320404),_0x49bf0a=join(_0x4f9374,'auth.json.enc'),_0x5522bf=_0x4f752b[_0x3b7c22(0x1ac)](join,_0x4f9374,_0x4f752b['llLAY']);let _0x3eac8d,_0x3b354c;if(existsSync(_0x49bf0a))try{const _0x46af97=await _0x4f752b[_0x3b7c22(0x1c4)](getToken);if(!_0x46af97)throw new Error(_0x4f752b[_0x3b7c22(0x183)]);const _0x205924=await readFile(_0x49bf0a),_0x22cbdc=_0x4f752b[_0x3b7c22(0x1be)](decrypt,_0x205924,_0x46af97);_0x3b354c=join(_0x4f752b[_0x3b7c22(0x1b0)](tmpdir),_0x3b7c22(0x194)+Date[_0x3b7c22(0x188)]()+'.json'),await writeFile(_0x3b354c,_0x22cbdc),_0x3eac8d=_0x3b354c;}catch(_0x1d8373){const _0x3bf378=_0x1d8373 instanceof Error?_0x1d8373['message']:_0x4f752b[_0x3b7c22(0x19e)](String,_0x1d8373);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x3bf378);}else existsSync(_0x5522bf)&&(_0x3eac8d=_0x5522bf);const _0xdbf167=_0x23d292||_0x4f752b[_0x3b7c22(0x1ae)](randomUUID),_0x53a855=_0x4f752b['RRswb'](join,getRangerDir(),_0x3b7c22(0x189),_0xdbf167),_0x1951e4=Boolean(_0x337fe1['cdpEndpoint']),_0x1ad4b2=_0x1951e4?{'browserName':_0x4f752b['mQdPT'],'cdpEndpoint':_0x337fe1[_0x3b7c22(0x191)]}:((()=>{const _0x3f2536=_0x3b7c22,{launchOptions:_0x3fbc41,contextOptions:_0x47ea49}=buildBrowserOptionsFromSettings(_0x337fe1,{'headless':_0x30afe6?![]:_0x337fe1['headless']??!![],'storageStatePath':_0x3eac8d});if(_0x4f752b['SjnBP'](process[_0x3f2536(0x1b9)]?.(),0x0)){const _0x3d1df9=[_0x4f752b[_0x3f2536(0x16c)],_0x4f752b[_0x3f2536(0x18d)]],_0xfa1c02=_0x3fbc41[_0x3f2536(0x187)]??[],_0x1d3536=_0x3d1df9[_0x3f2536(0x1c5)](_0x55e81c=>!_0xfa1c02[_0x3f2536(0x19c)](_0x55e81c));_0x3fbc41[_0x3f2536(0x187)]=[..._0xfa1c02,..._0x1d3536];}return{'isolated':!![],'browserName':_0x4f752b['mQdPT'],'launchOptions':_0x3fbc41,'contextOptions':{..._0x47ea49,'permissions':[_0x4f752b[_0x3f2536(0x1cd)],_0x4f752b['NAfzV']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0xa2c13f={'name':_0x320404,'browser':_0x1ad4b2,'capabilities':[_0x4f752b['cCoJv'],_0x4f752b['JQPWW'],_0x4f752b[_0x3b7c22(0x18e)],_0x4f752b[_0x3b7c22(0x17e)],_0x3b7c22(0x1c7)],'imageResponses':_0x4f752b[_0x3b7c22(0x180)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x53a855};if(!_0x1951e4){const _0x1fbf81=_0xa2c13f[_0x3b7c22(0x171)],_0xc5c95d=_0x1fbf81[_0x3b7c22(0x1ad)];if(_0xc5c95d['userAgent']===undefined)delete _0xc5c95d[_0x3b7c22(0x19d)];if(_0x4f752b[_0x3b7c22(0x198)](_0xc5c95d['storageState'],undefined))delete _0xc5c95d[_0x3b7c22(0x173)];}const _0xe73b5a=join(tmpdir(),_0x4f752b['VRxCZ']);!_0x4f752b['XBaej'](existsSync,_0xe73b5a)&&await mkdir(_0xe73b5a,{'recursive':!![]});const _0x2aeba6=_0x4f752b[_0x3b7c22(0x1ac)](join,_0xe73b5a,_0x320404+'-'+Date['now']()+_0x3b7c22(0x1a1));return await _0x4f752b[_0x3b7c22(0x1d2)](writeFile,_0x2aeba6,JSON[_0x3b7c22(0x181)](_0xa2c13f,null,0x2)),{'configPath':_0x2aeba6,'tempAuthPath':_0x3b354c};}export async function buildPlaywrightCliConfig(_0x4a575e,_0x41ceea,_0x101105,_0x257c19){const _0x27a295=_0x106451,_0x82bcf4={'dPsOo':function(_0x3f4a4c,_0x24327c,_0x4f0237){return _0x3f4a4c(_0x24327c,_0x4f0237);},'ALvMI':_0x27a295(0x1c8),'ukAHj':'clipboard-read','RFvaZ':'clipboard-write','mFlIO':function(_0x35ab1e,_0x59f05f){return _0x35ab1e(_0x59f05f);},'xKzCs':function(_0x2ccb4c,_0x353121,_0x236ac4){return _0x2ccb4c(_0x353121,_0x236ac4);},'UbYDo':function(_0xa8d1dd,_0x4781c8,_0x20d47b){return _0xa8d1dd(_0x4781c8,_0x20d47b);},'InQGq':function(_0x399ac9,_0x54143c){return _0x399ac9 instanceof _0x54143c;},'mWcYm':function(_0x2d9c62,_0x19f67d,_0x34b040,_0x19c0e6){return _0x2d9c62(_0x19f67d,_0x34b040,_0x19c0e6);},'kdSNp':function(_0x532ebf){return _0x532ebf();},'MQWnJ':function(_0x493247,_0x176d9d){return _0x493247===_0x176d9d;},'GOpvy':function(_0x81cc59,_0x73b7bd){return _0x81cc59===_0x73b7bd;},'ekgSX':'file','jdkvn':'none','vLYpy':function(_0x3b74ca,_0x230747,_0x50fb82){return _0x3b74ca(_0x230747,_0x50fb82);},'PDyfu':function(_0x42e168,_0x163bf0,_0x368679){return _0x42e168(_0x163bf0,_0x368679);}},_0x52b5c2=getEnvDir(_0x41ceea),_0x41e094=join(_0x52b5c2,_0x27a295(0x19b)),_0x44645c=_0x82bcf4[_0x27a295(0x16f)](join,_0x52b5c2,_0x27a295(0x1cc));let _0x50f56d,_0x3460e5;if(_0x82bcf4['mFlIO'](existsSync,_0x41e094))try{const _0x25e485=await getToken();if(!_0x25e485)throw new Error(_0x27a295(0x17c));const _0x1cbba0=await readFile(_0x41e094),_0x405764=_0x82bcf4['xKzCs'](decrypt,_0x1cbba0,_0x25e485);_0x3460e5=join(tmpdir(),'ranger-auth-'+Date[_0x27a295(0x188)]()+_0x27a295(0x1a1)),await _0x82bcf4[_0x27a295(0x1d0)](writeFile,_0x3460e5,_0x405764),_0x50f56d=_0x3460e5;}catch(_0x292d56){const _0x335af6=_0x82bcf4['InQGq'](_0x292d56,Error)?_0x292d56[_0x27a295(0x1ba)]:String(_0x292d56);throw new Error(_0x27a295(0x1a3)+_0x335af6);}else _0x82bcf4[_0x27a295(0x175)](existsSync,_0x44645c)&&(_0x50f56d=_0x44645c);const _0x87f25d=_0x101105||randomUUID(),_0x375765=_0x82bcf4[_0x27a295(0x1bc)](join,_0x82bcf4['kdSNp'](getRangerDir),'sessions',_0x87f25d),_0x544654=Boolean(_0x4a575e['cdpEndpoint']),_0x4f12d8=_0x544654?{'browserName':_0x27a295(0x1b4),'cdpEndpoint':_0x4a575e['cdpEndpoint']}:((()=>{const _0x1d7f89=_0x27a295,{launchOptions:_0x35ddcc,contextOptions:_0x189fbe}=_0x82bcf4[_0x1d7f89(0x16f)](buildBrowserOptionsFromSettings,_0x4a575e,{'headless':_0x257c19?![]:_0x4a575e[_0x1d7f89(0x1d1)]??!![],'storageStatePath':_0x50f56d});if(process['getuid']?.()===0x0){const _0x2f65f9=['--no-sandbox',_0x82bcf4[_0x1d7f89(0x1ca)]],_0x547d2a=_0x35ddcc['args']??[],_0x5d170a=_0x2f65f9[_0x1d7f89(0x1c5)](_0x11f25b=>!_0x547d2a['includes'](_0x11f25b));_0x35ddcc[_0x1d7f89(0x187)]=[..._0x547d2a,..._0x5d170a];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x35ddcc,'contextOptions':{..._0x189fbe,'permissions':[_0x82bcf4[_0x1d7f89(0x1a2)],_0x82bcf4['RFvaZ']],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x544654){const _0x1a62b8=_0x4f12d8['contextOptions'];if(_0x82bcf4['MQWnJ'](_0x1a62b8[_0x27a295(0x19d)],undefined))delete _0x1a62b8['userAgent'];if(_0x82bcf4[_0x27a295(0x1bb)](_0x1a62b8[_0x27a295(0x173)],undefined))delete _0x1a62b8['storageState'];}const _0x26bc88={'browser':_0x4f12d8,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x375765,'outputMode':_0x82bcf4['ekgSX'],'codegen':_0x82bcf4['jdkvn']},_0x3a57fb=join(tmpdir(),_0x27a295(0x1c3));!_0x82bcf4['mFlIO'](existsSync,_0x3a57fb)&&await _0x82bcf4['vLYpy'](mkdir,_0x3a57fb,{'recursive':!![]});const _0x4d765d=_0x82bcf4['PDyfu'](join,_0x3a57fb,_0x41ceea+'-'+Date['now']()+'-cli.json');return await writeFile(_0x4d765d,JSON['stringify'](_0x26bc88,null,0x2)),{'configPath':_0x4d765d,'tempAuthPath':_0x3460e5};}function _0x1354(_0x589410,_0x6daee0){_0x589410=_0x589410-0x169;const _0x36ebc7=_0x36eb();let _0x1354bb=_0x36ebc7[_0x589410];return _0x1354bb;}export function getNestedValue(_0x13ef25,_0x4f8e44){const _0x3d0d99=_0x106451,_0x42aa60={'CFaAr':function(_0x45738c,_0x4d4f19){return _0x45738c!==_0x4d4f19;}},_0x2aaaad=parseKeyPath(_0x4f8e44);let _0x3666e5=_0x13ef25;for(const _0x3263c2 of _0x2aaaad){if(_0x3666e5===null||_0x3666e5===undefined||_0x42aa60[_0x3d0d99(0x182)](typeof _0x3666e5,'object'))return undefined;_0x3666e5=_0x3666e5[_0x3263c2];}return _0x3666e5;}export function setNestedValue(_0x554794,_0x4455f9,_0x278c82){const _0x51fbdc=_0x106451,_0x1bcc79={'jHZGk':function(_0x5e707d,_0x1efa80){return _0x5e707d<_0x1efa80;},'UPDcN':function(_0x431c41,_0x1d63eb){return _0x431c41 in _0x1d63eb;},'dmYTj':function(_0x8d7cfb,_0x1d16e9){return _0x8d7cfb!==_0x1d16e9;}},_0x181129=parseKeyPath(_0x4455f9);let _0x1949b6=_0x554794;for(let _0x63e9c=0x0;_0x1bcc79['jHZGk'](_0x63e9c,_0x181129[_0x51fbdc(0x1bd)]-0x1);_0x63e9c++){const _0x280224=_0x181129[_0x63e9c];(!_0x1bcc79[_0x51fbdc(0x1b6)](_0x280224,_0x1949b6)||_0x1bcc79[_0x51fbdc(0x192)](typeof _0x1949b6[_0x280224],'object'))&&(_0x1949b6[_0x280224]={}),_0x1949b6=_0x1949b6[_0x280224];}_0x1949b6[_0x181129[_0x181129['length']-0x1]]=_0x278c82;}export function deleteNestedValue(_0x26a7a6,_0x5847f9){const _0x5da1fd=_0x106451,_0x166938={'lEwdm':function(_0x1a2b8a,_0x23bdb4){return _0x1a2b8a(_0x23bdb4);},'VlXfr':function(_0x58cb15,_0x34d09b){return _0x58cb15===_0x34d09b;},'ASUEX':function(_0x32aa60,_0x54e814){return _0x32aa60!==_0x54e814;},'oymsb':function(_0x3ab035,_0x35a812){return _0x3ab035!==_0x35a812;},'JTJXn':'object','FigKj':function(_0x3610cc,_0x1a76d7){return _0x3610cc in _0x1a76d7;}},_0x236803=_0x166938[_0x5da1fd(0x190)](parseKeyPath,_0x5847f9);let _0x1a6bfa=_0x26a7a6;for(let _0x110b5d=0x0;_0x110b5d<_0x236803[_0x5da1fd(0x1bd)]-0x1;_0x110b5d++){if(_0x1a6bfa===null||_0x166938['VlXfr'](_0x1a6bfa,undefined)||_0x166938['ASUEX'](typeof _0x1a6bfa,'object'))return![];_0x1a6bfa=_0x1a6bfa[_0x236803[_0x110b5d]];}if(_0x1a6bfa===null||_0x166938['VlXfr'](_0x1a6bfa,undefined)||_0x166938['oymsb'](typeof _0x1a6bfa,_0x166938[_0x5da1fd(0x17f)]))return![];const _0x5b1e16=_0x236803[_0x236803[_0x5da1fd(0x1bd)]-0x1];if(_0x166938['FigKj'](_0x5b1e16,_0x1a6bfa))return delete _0x1a6bfa[_0x5b1e16],!![];return![];}function parseKeyPath(_0x557204){const _0x56dfd0=_0x106451,_0x1b2fb3={'gZdsY':'headers','jkoHv':function(_0x2f3660,_0x267c28){return _0x2f3660===_0x267c28;},'szORH':'setupHeader'},_0x1949db=_0x557204[_0x56dfd0(0x1a4)]('.');return _0x1949db[0x0]===_0x56dfd0(0x169)&&(_0x1949db[0x0]=_0x1b2fb3['gZdsY']),_0x1b2fb3[_0x56dfd0(0x1bf)](_0x1949db[0x0],_0x1b2fb3[_0x56dfd0(0x1c2)])&&(_0x1949db[0x0]='setupHeaders'),_0x1949db;}export function formatSettings(_0x1a8d65,_0x5afa26=0x0){const _0x4f2e83=_0x106451,_0x2607e8={'LLAuO':'object','qbQIs':function(_0x272204,_0x1ec3e9){return _0x272204!==_0x1ec3e9;}},_0x8fa2ed=[],_0x16f547='\x20\x20'['repeat'](_0x5afa26);for(const [_0x39a1b1,_0x263c11]of Object[_0x4f2e83(0x17d)](_0x1a8d65)){if(_0x263c11===undefined)continue;if(typeof _0x263c11===_0x2607e8['LLAuO']&&_0x2607e8['qbQIs'](_0x263c11,null)){_0x8fa2ed[_0x4f2e83(0x1b1)](''+_0x16f547+_0x39a1b1+':');for(const [_0x193c8c,_0x2cd863]of Object[_0x4f2e83(0x17d)](_0x263c11)){_0x8fa2ed[_0x4f2e83(0x1b1)](_0x16f547+'\x20\x20'+_0x193c8c+':\x20'+_0x2cd863);}}else _0x8fa2ed['push'](''+_0x16f547+_0x39a1b1+':\x20'+_0x263c11);}return _0x8fa2ed[_0x4f2e83(0x18f)]('\x0a');}
1
+ const _0x39628a=_0x4fb7;(function(_0x444661,_0x31fcbd){const _0x3a0e84=_0x4fb7,_0x141a37=_0x444661();while(!![]){try{const _0x4a5dd3=parseInt(_0x3a0e84(0x153))/0x1*(parseInt(_0x3a0e84(0x161))/0x2)+parseInt(_0x3a0e84(0x146))/0x3+-parseInt(_0x3a0e84(0x12f))/0x4+parseInt(_0x3a0e84(0x142))/0x5+-parseInt(_0x3a0e84(0x158))/0x6+parseInt(_0x3a0e84(0x10f))/0x7*(parseInt(_0x3a0e84(0x151))/0x8)+-parseInt(_0x3a0e84(0x133))/0x9;if(_0x4a5dd3===_0x31fcbd)break;else _0x141a37['push'](_0x141a37['shift']());}catch(_0x4f8401){_0x141a37['push'](_0x141a37['shift']());}}}(_0x391e,0x9fd85));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(_0x565b0b){const _0x12f517=_0x4fb7,_0x2a8821={'RoZVx':function(_0x426fcc,_0x12f306,_0x4f9e0f){return _0x426fcc(_0x12f306,_0x4f9e0f);},'uXfzg':_0x12f517(0x122),'equbk':function(_0x4b6071,_0x5d7a17){return _0x4b6071(_0x5d7a17);},'sPtGU':function(_0xa0ba0c,_0x2ec9f1){return _0xa0ba0c!==_0x2ec9f1;}},_0x34d109=getRangerDir(),_0x716de3=join(_0x34d109,'ci',_0x565b0b),_0x452a27=join(_0x34d109,_0x12f517(0x122),_0x565b0b),_0x58dd4d=join(_0x34d109,_0x565b0b),_0x277077=_0x2a8821['RoZVx'](join,_0x34d109,_0x2a8821[_0x12f517(0x150)]),_0x12a19a=join(_0x34d109,'ci');if(existsSync(_0x716de3))return _0x716de3;if(_0x2a8821[_0x12f517(0x145)](existsSync,_0x452a27))return _0x452a27;if(existsSync(_0x58dd4d)&&(_0x58dd4d!==_0x277077&&_0x2a8821['sPtGU'](_0x58dd4d,_0x12a19a)?!![]:_0x2a8821[_0x12f517(0x145)](hasLegacyProfileFiles,_0x58dd4d)))return _0x58dd4d;return _0x452a27;}export function findExistingEnv(_0x55acfe,_0x98947a){const _0x57733d=_0x4fb7,_0x3321aa={'fpBae':function(_0x39ef32){return _0x39ef32();},'dqfoh':_0x57733d(0x122),'tIWST':function(_0xb365c3,_0x2e3d21,_0x1875e4){return _0xb365c3(_0x2e3d21,_0x1875e4);},'wgphK':function(_0x3ea048,_0x15ef53,_0x4d969b,_0x1cfe22){return _0x3ea048(_0x15ef53,_0x4d969b,_0x1cfe22);},'qXGGN':function(_0x535243,_0x4cea3a,_0x5656e7){return _0x535243(_0x4cea3a,_0x5656e7);},'JjBln':function(_0x47012a,_0x1fbc8e){return _0x47012a(_0x1fbc8e);},'Ifndd':'legacy','uJvTV':function(_0x40be1b,_0x25e7b9){return _0x40be1b===_0x25e7b9;}},_0x5beb54=_0x3321aa['fpBae'](getRangerDir),_0xe94c0=_0x98947a?.[_0x57733d(0x131)]??['ci',_0x3321aa['dqfoh'],_0x57733d(0x10e)],_0x2f71cd=_0x3321aa['tIWST'](join,_0x5beb54,_0x57733d(0x122)),_0x2f0c4a=join(_0x5beb54,'ci'),_0x9a04ee=[{'location':'ci','path':join(_0x5beb54,'ci',_0x55acfe)},{'location':'local','path':_0x3321aa['wgphK'](join,_0x5beb54,_0x3321aa['dqfoh'],_0x55acfe)},{'location':_0x57733d(0x10e),'path':_0x3321aa[_0x57733d(0x13b)](join,_0x5beb54,_0x55acfe)}];for(const _0x105632 of _0x9a04ee){if(_0xe94c0[_0x57733d(0x121)](_0x105632[_0x57733d(0x116)])&&_0x3321aa['JjBln'](existsSync,_0x105632[_0x57733d(0x13a)])){if(_0x105632[_0x57733d(0x116)]===_0x3321aa['Ifndd']&&(_0x3321aa[_0x57733d(0x147)](_0x105632['path'],_0x2f71cd)||_0x105632[_0x57733d(0x13a)]===_0x2f0c4a)&&!_0x3321aa['JjBln'](hasLegacyProfileFiles,_0x105632['path']))continue;return{'path':_0x105632[_0x57733d(0x13a)],'location':_0x105632['location']};}}return null;}function hasLegacyProfileFiles(_0x4f2ec0){const _0x1461d5=_0x4fb7,_0x5dc149={'oVUtx':function(_0x558da5,_0x50e04f){return _0x558da5(_0x50e04f);},'GzSmz':_0x1461d5(0x15d),'OggWR':function(_0xb835b2,_0x4475d5){return _0xb835b2(_0x4475d5);},'pjoTV':_0x1461d5(0x109)};return existsSync(join(_0x4f2ec0,_0x1461d5(0x106)))||_0x5dc149['oVUtx'](existsSync,join(_0x4f2ec0,_0x5dc149[_0x1461d5(0xf8)]))||_0x5dc149[_0x1461d5(0x154)](existsSync,join(_0x4f2ec0,_0x5dc149[_0x1461d5(0x123)]));}export function isEnvCi(_0x14d167){const _0x53103a=_0x4fb7,_0x125388={'svDAX':function(_0x83eba5,_0x1b4254,_0x5612c,_0x1fa081){return _0x83eba5(_0x1b4254,_0x5612c,_0x1fa081);},'bioOq':function(_0xb774ab){return _0xb774ab();}};return existsSync(_0x125388['svDAX'](join,_0x125388[_0x53103a(0xfe)](getRangerDir),'ci',_0x14d167));}export async function cleanupTempFiles(_0x5e842a){const _0x13c8ab=_0x4fb7,_0x442aba={'StMIC':function(_0xf775a8,_0xb75e2f){return _0xf775a8!==_0xb75e2f;},'cYTDl':_0x13c8ab(0x130)},_0x20cf8b=[_0x5e842a[_0x13c8ab(0x14d)],_0x5e842a[_0x13c8ab(0x11b)]][_0x13c8ab(0x11f)](Boolean);await Promise[_0x13c8ab(0x10b)](_0x20cf8b[_0x13c8ab(0x11c)](_0x302c3f=>unlink(_0x302c3f)['catch'](_0x2ae83a=>{const _0x158106=_0x13c8ab;_0x442aba[_0x158106(0x11e)](_0x2ae83a[_0x158106(0x110)],_0x442aba[_0x158106(0x105)])&&console['warn'](_0x158106(0x118)+_0x302c3f+':',_0x2ae83a[_0x158106(0x102)]);})));}export function getSettingsPath(_0x1137b1){const _0x3e99a9=_0x4fb7,_0x590f2e={'ZLstm':function(_0x440b4f,_0x1d8d13){return _0x440b4f(_0x1d8d13);}};return join(_0x590f2e[_0x3e99a9(0x157)](getEnvDir,_0x1137b1),'settings.json');}export async function loadSettings(_0x57da6e){const _0x287ee0=_0x4fb7,_0x4d10b9={'hurbP':function(_0x3bae7c,_0x226659){return _0x3bae7c(_0x226659);},'ldvDl':function(_0x1bd5de,_0x5aac77,_0x358084){return _0x1bd5de(_0x5aac77,_0x358084);}},_0x23d12b=_0x4d10b9[_0x287ee0(0x126)](getSettingsPath,_0x57da6e);if(!existsSync(_0x23d12b))return{};try{const _0x4cac3b=await _0x4d10b9['ldvDl'](readFile,_0x23d12b,_0x287ee0(0x15e));return JSON[_0x287ee0(0x117)](_0x4cac3b);}catch{return{};}}export async function saveSettings(_0x320001,_0x2fb9db){const _0x5d906f=_0x4fb7,_0x40e04b={'qndLb':function(_0x190a49,_0x511bcb){return _0x190a49(_0x511bcb);},'VvnEJ':function(_0x21f719,_0x2994a1,_0x2de37c){return _0x21f719(_0x2994a1,_0x2de37c);}},_0x551082=getSettingsPath(_0x320001),_0xf9c74d=dirname(_0x551082);!_0x40e04b['qndLb'](existsSync,_0xf9c74d)&&await _0x40e04b['VvnEJ'](mkdir,_0xf9c74d,{'recursive':!![]}),await writeFile(_0x551082,JSON[_0x5d906f(0x13c)](_0x2fb9db,null,0x2));}export function resolveEnvVars(_0x12b827){const _0x1dcb14=_0x4fb7,_0x2c7da5={'PSJBC':_0x1dcb14(0xfc),'LlByi':function(_0x298b40,_0x2b05bf){return _0x298b40===_0x2b05bf;},'UahDs':'object'};if(typeof _0x12b827===_0x2c7da5['PSJBC'])return _0x12b827['replace'](/\$\{(\w+)\}/g,(_0x42fcbd,_0x31fd3d)=>{const _0x2c8728=_0x1dcb14,_0x23008a=process['env'][_0x31fd3d];if(_0x23008a===undefined)throw new Error(_0x2c8728(0x101)+_0x31fd3d+_0x2c8728(0xf3));return _0x23008a;});if(Array['isArray'](_0x12b827))return _0x12b827[_0x1dcb14(0x11c)](resolveEnvVars);if(_0x12b827&&_0x2c7da5['LlByi'](typeof _0x12b827,_0x2c7da5['UahDs']))return Object[_0x1dcb14(0x13e)](Object['entries'](_0x12b827)['map'](([_0x44fd73,_0x52433e])=>[_0x44fd73,resolveEnvVars(_0x52433e)]));return _0x12b827;}const isRecord=_0x15e120=>typeof _0x15e120===_0x39628a(0x14c)&&_0x15e120!==null&&!Array[_0x39628a(0xf7)](_0x15e120),asRecord=_0xaaf14f=>isRecord(_0xaaf14f)?_0xaaf14f:undefined,mergeHeaders=(_0x270750,_0x1b7740)=>{const _0xdc378d=_0x39628a,_0x5d187f={'pRJws':function(_0x36209b,_0x36f6f2){return _0x36209b??_0x36f6f2;}},_0x2da93e={..._0x5d187f['pRJws'](_0x270750,{}),..._0x1b7740??{}};return Object[_0xdc378d(0x148)](_0x2da93e)['length']?_0x2da93e:undefined;},SAFE_MODE_ARGS=[_0x39628a(0x149)],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content',_0x39628a(0x138),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x5439b7,_0x499a9f={}){const _0x4fdb88=_0x39628a,_0x38f0c={'FuPpB':function(_0x2e5489,_0x456c50){return _0x2e5489===_0x456c50;},'wETej':_0x4fdb88(0xfd),'IkYqN':function(_0xd08fa5,_0x100dcf,_0x2e7296){return _0xd08fa5(_0x100dcf,_0x2e7296);},'oaREN':function(_0x32db4a,_0x4e6fb9){return _0x32db4a(_0x4e6fb9);}},_0x4a37f2=asRecord(_0x5439b7[_0x4fdb88(0x10a)]),_0x5e9a10={...asRecord(_0x4a37f2?.[_0x4fdb88(0x12a)])??{}};_0x38f0c[_0x4fdb88(0xf9)](typeof _0x499a9f[_0x4fdb88(0xf1)],_0x38f0c[_0x4fdb88(0x143)])&&(_0x5e9a10[_0x4fdb88(0xf1)]=_0x499a9f['headless']);if(_0x5439b7['safeMode']){const _0x4942fa=_0x5e9a10[_0x4fdb88(0xee)]??[],_0x43453f=SAFE_MODE_ARGS['filter'](_0x1f2a79=>!_0x4942fa['includes'](_0x1f2a79));_0x5e9a10[_0x4fdb88(0xee)]=[..._0x4942fa,..._0x43453f];}if(_0x5439b7['allowInsecureLocalhost']){const _0x43f9af=_0x5e9a10[_0x4fdb88(0xee)]??[],_0x38f7c9=ALLOW_LOCALHOST_ARGS['filter'](_0x41e624=>!_0x43f9af['includes'](_0x41e624));_0x5e9a10['args']=[..._0x43f9af,..._0x38f7c9];}const _0xae1ec2={...asRecord(_0x4a37f2?.['contextOptions'])??{}};_0xae1ec2[_0x4fdb88(0x13d)]=!![];typeof _0x5439b7['userAgent']===_0x4fdb88(0xfc)&&(_0xae1ec2['userAgent']=_0x5439b7[_0x4fdb88(0xf5)]);const _0x186841=_0x38f0c[_0x4fdb88(0x162)](mergeHeaders,_0x38f0c[_0x4fdb88(0x111)](asRecord,_0xae1ec2['extraHTTPHeaders']),asRecord(_0x5439b7[_0x4fdb88(0x15a)]));return _0x186841?_0xae1ec2[_0x4fdb88(0x15f)]=_0x186841:delete _0xae1ec2[_0x4fdb88(0x15f)],_0x499a9f[_0x4fdb88(0x144)]&&(_0xae1ec2[_0x4fdb88(0x112)]=_0x499a9f[_0x4fdb88(0x144)]),{'launchOptions':_0x5e9a10,'contextOptions':_0xae1ec2};}export async function buildPlaywrightConfig(_0x350273,_0x440cb6,_0x42078d,_0x55cc2a){const _0x20035d=_0x39628a,_0x4836fd={'kTuoK':function(_0x91452f,_0x2e69a1){return _0x91452f===_0x2e69a1;},'QVtrG':_0x20035d(0x127),'mcmzV':'--disable-setuid-sandbox','GeceP':_0x20035d(0x152),'PHenX':function(_0x503232){return _0x503232();},'XoXmj':function(_0x45a7c7,_0x3e23f8,_0x5b52ed){return _0x45a7c7(_0x3e23f8,_0x5b52ed);},'yEcJC':function(_0x5325ae,_0x4ceaad,_0x4ce452){return _0x5325ae(_0x4ceaad,_0x4ce452);},'YmMJt':function(_0x5af801,_0xd7f0ed){return _0x5af801(_0xd7f0ed);},'NNpsX':function(_0x39fbf9){return _0x39fbf9();},'HsxLf':function(_0x49b1c7){return _0x49b1c7();},'QGhlz':'sessions','KilSq':_0x20035d(0xff),'zxfiN':_0x20035d(0xf6),'dFGIk':_0x20035d(0x12b),'YUnKw':_0x20035d(0x156),'iySri':_0x20035d(0x115),'trHui':function(_0x1d9561,_0x477c5c){return _0x1d9561(_0x477c5c);}},_0x161ed4=getEnvDir(_0x440cb6),_0x2990dd=join(_0x161ed4,_0x20035d(0x109)),_0x3c8c67=join(_0x161ed4,'auth.json');let _0x29d911,_0x3306cf;if(existsSync(_0x2990dd))try{const _0x1b68f4=await _0x4836fd[_0x20035d(0x108)](getToken);if(!_0x1b68f4)throw new Error(_0x20035d(0x114));const _0x22da94=await readFile(_0x2990dd),_0x59b1ee=_0x4836fd[_0x20035d(0x119)](decrypt,_0x22da94,_0x1b68f4);_0x3306cf=join(_0x4836fd['PHenX'](tmpdir),_0x20035d(0x124)+Date['now']()+'.json'),await _0x4836fd[_0x20035d(0x11d)](writeFile,_0x3306cf,_0x59b1ee),_0x29d911=_0x3306cf;}catch(_0xa16db8){const _0x43dc2d=_0xa16db8 instanceof Error?_0xa16db8['message']:String(_0xa16db8);throw new Error(_0x20035d(0x11a)+_0x43dc2d);}else _0x4836fd['YmMJt'](existsSync,_0x3c8c67)&&(_0x29d911=_0x3c8c67);const _0x59b8df=_0x42078d||_0x4836fd[_0x20035d(0xf4)](randomUUID),_0x35a2ac=join(_0x4836fd['HsxLf'](getRangerDir),_0x4836fd['QGhlz'],_0x59b8df),_0x2464a5=_0x4836fd['YmMJt'](Boolean,_0x350273[_0x20035d(0x136)]),_0xe14406=_0x2464a5?{'browserName':_0x20035d(0x10d),'cdpEndpoint':_0x350273[_0x20035d(0x136)]}:((()=>{const _0x50aa7f=_0x20035d,{launchOptions:_0x41a7ee,contextOptions:_0x1afab6}=buildBrowserOptionsFromSettings(_0x350273,{'headless':_0x55cc2a?![]:_0x350273['headless']??!![],'storageStatePath':_0x29d911});if(_0x4836fd['kTuoK'](process['getuid']?.(),0x0)){const _0x2fffa5=[_0x4836fd['QVtrG'],_0x4836fd['mcmzV']],_0x24ea81=_0x41a7ee['args']??[],_0x5999dd=_0x2fffa5[_0x50aa7f(0x11f)](_0x18cebc=>!_0x24ea81['includes'](_0x18cebc));_0x41a7ee[_0x50aa7f(0xee)]=[..._0x24ea81,..._0x5999dd];}return{'isolated':!![],'browserName':_0x50aa7f(0x10d),'launchOptions':_0x41a7ee,'contextOptions':{..._0x1afab6,'permissions':[_0x50aa7f(0x113),_0x4836fd['GeceP']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x332e97={'name':_0x440cb6,'browser':_0xe14406,'capabilities':[_0x4836fd['KilSq'],_0x4836fd[_0x20035d(0x15c)],_0x4836fd[_0x20035d(0x12e)],_0x4836fd['YUnKw'],'vision'],'imageResponses':_0x4836fd[_0x20035d(0x128)],'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x35a2ac};if(!_0x2464a5){const _0x4b8be9=_0x332e97[_0x20035d(0x10a)],_0x17d20e=_0x4b8be9['contextOptions'];if(_0x17d20e['userAgent']===undefined)delete _0x17d20e['userAgent'];if(_0x17d20e[_0x20035d(0x112)]===undefined)delete _0x17d20e['storageState'];}const _0x31cb95=join(tmpdir(),_0x20035d(0xfb));!_0x4836fd['trHui'](existsSync,_0x31cb95)&&await mkdir(_0x31cb95,{'recursive':!![]});const _0x2ade42=_0x4836fd['XoXmj'](join,_0x31cb95,_0x440cb6+'-'+Date['now']()+_0x20035d(0x14f));return await writeFile(_0x2ade42,JSON[_0x20035d(0x13c)](_0x332e97,null,0x2)),{'configPath':_0x2ade42,'tempAuthPath':_0x3306cf};}function _0x391e(){const _0x3b8ca7=['string','boolean','bioOq','core','PNtXU','Environment\x20variable\x20','message','contextOptions','-cli.json','cYTDl','settings.json','bpGlD','PHenX','auth.json.enc','browser','all','none','chromium','legacy','11452qFOHYz','code','oaREN','storageState','clipboard-read','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','allow','location','parse','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','XoXmj','Failed\x20to\x20decrypt\x20auth\x20state:\x20','configPath','map','yEcJC','StMIC','filter','aSfEv','includes','local','pjoTV','ranger-auth-','ZdbwC','hurbP','--no-sandbox','iySri','BINFE','launchOptions','install','DsbNz','szpEg','dFGIk','1146240rwTmsA','ENOENT','locations','iJgJD','16556553XUBBiq','yyxfJ','setupHeaders','cdpEndpoint','header','--unsafely-treat-insecure-origin-as-secure=http://localhost','push','path','qXGGN','stringify','ignoreHTTPSErrors','fromEntries','VqudC','jnIZx','join','2038790zgpeIF','wETej','storageStatePath','equbk','3732852puReJP','uJvTV','keys','--disable-features=WebBluetooth','length','ugngM','object','tempAuthPath','gbMKH','.json','uXfzg','5416VArdje','clipboard-write','1633HByoLP','OggWR','YAiJU','pdf','ZLstm','6583902RuLcEb','YnDSN','headers','split','zxfiN','auth.json','utf-8','extraHTTPHeaders','now','1370EKIpvM','IkYqN','--disable-setuid-sandbox','args','QbjoC','ulTjS','headless','QeGHA','\x20is\x20not\x20set','NNpsX','userAgent','tabs','isArray','GzSmz','FuPpB','tWNAw','ranger-config'];_0x391e=function(){return _0x3b8ca7;};return _0x391e();}export async function buildPlaywrightCliConfig(_0x4951a0,_0xfbf1dd,_0x52da5f,_0x17ba98){const _0x2dc5ca=_0x39628a,_0x19d5ba={'QeGHA':function(_0xda287d,_0x3ec60a,_0x3ed864){return _0xda287d(_0x3ec60a,_0x3ed864);},'ugngM':function(_0x9b52db,_0x1934cf){return _0x9b52db===_0x1934cf;},'pEPAH':_0x2dc5ca(0x127),'lAfED':'chromium','PNtXU':function(_0xf07732,_0x2eb588){return _0xf07732(_0x2eb588);},'VqudC':_0x2dc5ca(0x15d),'ZdbwC':function(_0x1f79a6,_0x3e66eb){return _0x1f79a6(_0x3e66eb);},'szpEg':function(_0x2da835){return _0x2da835();},'DsbNz':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','QbjoC':function(_0x42f15a,_0x21da35,_0x344fa2){return _0x42f15a(_0x21da35,_0x344fa2);},'gbMKH':function(_0x3d56b1,_0x3e3382){return _0x3d56b1(_0x3e3382);},'ODlSY':function(_0x2deb60){return _0x2deb60();},'jnIZx':function(_0x44872e){return _0x44872e();},'NRbaK':'file','iJgJD':_0x2dc5ca(0x10c),'bpGlD':function(_0x2498d6,_0x5128b3){return _0x2498d6(_0x5128b3);},'TJISr':function(_0x569c6f,_0x2b1ea4,_0x1beffc){return _0x569c6f(_0x2b1ea4,_0x1beffc);}},_0x2e2f7b=_0x19d5ba[_0x2dc5ca(0x100)](getEnvDir,_0xfbf1dd),_0x33f601=join(_0x2e2f7b,_0x2dc5ca(0x109)),_0x4c55bf=_0x19d5ba[_0x2dc5ca(0xf2)](join,_0x2e2f7b,_0x19d5ba[_0x2dc5ca(0x13f)]);let _0xf42b6f,_0x1004c7;if(_0x19d5ba[_0x2dc5ca(0x125)](existsSync,_0x33f601))try{const _0x3a4248=await _0x19d5ba['szpEg'](getToken);if(!_0x3a4248)throw new Error(_0x19d5ba[_0x2dc5ca(0x12c)]);const _0x145d7b=await readFile(_0x33f601),_0x421819=_0x19d5ba[_0x2dc5ca(0xf2)](decrypt,_0x145d7b,_0x3a4248);_0x1004c7=_0x19d5ba[_0x2dc5ca(0xf2)](join,tmpdir(),'ranger-auth-'+Date[_0x2dc5ca(0x160)]()+'.json'),await _0x19d5ba['QbjoC'](writeFile,_0x1004c7,_0x421819),_0xf42b6f=_0x1004c7;}catch(_0x4c2a08){const _0x32e340=_0x4c2a08 instanceof Error?_0x4c2a08['message']:_0x19d5ba[_0x2dc5ca(0x100)](String,_0x4c2a08);throw new Error(_0x2dc5ca(0x11a)+_0x32e340);}else _0x19d5ba['gbMKH'](existsSync,_0x4c55bf)&&(_0xf42b6f=_0x4c55bf);const _0x216726=_0x52da5f||_0x19d5ba['ODlSY'](randomUUID),_0x777db8=join(_0x19d5ba[_0x2dc5ca(0x140)](getRangerDir),'sessions',_0x216726),_0x535763=_0x19d5ba[_0x2dc5ca(0x14e)](Boolean,_0x4951a0[_0x2dc5ca(0x136)]),_0x4e70b5=_0x535763?{'browserName':_0x2dc5ca(0x10d),'cdpEndpoint':_0x4951a0[_0x2dc5ca(0x136)]}:((()=>{const _0x2db742=_0x2dc5ca,{launchOptions:_0xd35feb,contextOptions:_0x48f81b}=_0x19d5ba['QeGHA'](buildBrowserOptionsFromSettings,_0x4951a0,{'headless':_0x17ba98?![]:_0x4951a0['headless']??!![],'storageStatePath':_0xf42b6f});if(_0x19d5ba[_0x2db742(0x14b)](process['getuid']?.(),0x0)){const _0x1f7ef7=[_0x19d5ba['pEPAH'],_0x2db742(0x163)],_0x560056=_0xd35feb[_0x2db742(0xee)]??[],_0x20ba7a=_0x1f7ef7[_0x2db742(0x11f)](_0x2d5487=>!_0x560056['includes'](_0x2d5487));_0xd35feb['args']=[..._0x560056,..._0x20ba7a];}return{'isolated':!![],'browserName':_0x19d5ba['lAfED'],'launchOptions':_0xd35feb,'contextOptions':{..._0x48f81b,'permissions':['clipboard-read','clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x535763){const _0x3be8bb=_0x4e70b5[_0x2dc5ca(0x103)];if(_0x3be8bb['userAgent']===undefined)delete _0x3be8bb['userAgent'];if(_0x19d5ba['ugngM'](_0x3be8bb['storageState'],undefined))delete _0x3be8bb['storageState'];}const _0xa6e8cf={'browser':_0x4e70b5,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x777db8,'outputMode':_0x19d5ba['NRbaK'],'codegen':_0x19d5ba[_0x2dc5ca(0x132)]},_0x134987=_0x19d5ba[_0x2dc5ca(0xef)](join,_0x19d5ba[_0x2dc5ca(0x12d)](tmpdir),'ranger-config');!_0x19d5ba[_0x2dc5ca(0x107)](existsSync,_0x134987)&&await mkdir(_0x134987,{'recursive':!![]});const _0x1a2343=join(_0x134987,_0xfbf1dd+'-'+Date['now']()+_0x2dc5ca(0x104));return await _0x19d5ba['TJISr'](writeFile,_0x1a2343,JSON['stringify'](_0xa6e8cf,null,0x2)),{'configPath':_0x1a2343,'tempAuthPath':_0x1004c7};}export function getNestedValue(_0x352d53,_0x156f5a){const _0x97ae5c=_0x39628a,_0x5d8a0d={'ulTjS':function(_0x2f0707,_0x399ed1){return _0x2f0707(_0x399ed1);},'YAiJU':function(_0x599e04,_0x69381f){return _0x599e04===_0x69381f;},'BINFE':function(_0x2117df,_0x5075f8){return _0x2117df!==_0x5075f8;}},_0x583f31=_0x5d8a0d[_0x97ae5c(0xf0)](parseKeyPath,_0x156f5a);let _0x3a2152=_0x352d53;for(const _0x2e2da3 of _0x583f31){if(_0x5d8a0d['YAiJU'](_0x3a2152,null)||_0x5d8a0d[_0x97ae5c(0x155)](_0x3a2152,undefined)||_0x5d8a0d[_0x97ae5c(0x129)](typeof _0x3a2152,'object'))return undefined;_0x3a2152=_0x3a2152[_0x2e2da3];}return _0x3a2152;}export function setNestedValue(_0xb7adbd,_0x53e213,_0x41e4a4){const _0x46a808=_0x39628a,_0x31340e={'fWHBk':function(_0x241ac9,_0x5dcd7d){return _0x241ac9(_0x5dcd7d);},'CzLOe':function(_0x1c1991,_0x7f3281){return _0x1c1991<_0x7f3281;},'tWNAw':function(_0x2e7749,_0x2330f1){return _0x2e7749 in _0x2330f1;},'YnDSN':function(_0x841a10,_0x3dcfc3){return _0x841a10-_0x3dcfc3;}},_0x3a64ef=_0x31340e['fWHBk'](parseKeyPath,_0x53e213);let _0x242a69=_0xb7adbd;for(let _0x2527e9=0x0;_0x31340e['CzLOe'](_0x2527e9,_0x3a64ef['length']-0x1);_0x2527e9++){const _0x344653=_0x3a64ef[_0x2527e9];(!_0x31340e[_0x46a808(0xfa)](_0x344653,_0x242a69)||typeof _0x242a69[_0x344653]!==_0x46a808(0x14c))&&(_0x242a69[_0x344653]={}),_0x242a69=_0x242a69[_0x344653];}_0x242a69[_0x3a64ef[_0x31340e[_0x46a808(0x159)](_0x3a64ef['length'],0x1)]]=_0x41e4a4;}export function deleteNestedValue(_0x16671d,_0x124225){const _0x9392bc=_0x39628a,_0x3559bd={'aZsDO':function(_0x1ecbcc,_0x3ff7f2){return _0x1ecbcc-_0x3ff7f2;},'aSfEv':function(_0x20a36e,_0x2bad2f){return _0x20a36e===_0x2bad2f;},'yyxfJ':_0x9392bc(0x14c),'QhMfb':function(_0x361464,_0x1a3bf1){return _0x361464!==_0x1a3bf1;}},_0x2e257f=parseKeyPath(_0x124225);let _0x3e38fc=_0x16671d;for(let _0x1a4445=0x0;_0x1a4445<_0x3559bd['aZsDO'](_0x2e257f[_0x9392bc(0x14a)],0x1);_0x1a4445++){if(_0x3559bd[_0x9392bc(0x120)](_0x3e38fc,null)||_0x3e38fc===undefined||typeof _0x3e38fc!==_0x3559bd[_0x9392bc(0x134)])return![];_0x3e38fc=_0x3e38fc[_0x2e257f[_0x1a4445]];}if(_0x3e38fc===null||_0x3e38fc===undefined||_0x3559bd['QhMfb'](typeof _0x3e38fc,_0x3559bd[_0x9392bc(0x134)]))return![];const _0xa138ae=_0x2e257f[_0x2e257f['length']-0x1];if(_0xa138ae in _0x3e38fc)return delete _0x3e38fc[_0xa138ae],!![];return![];}function parseKeyPath(_0x147d85){const _0x151f46=_0x39628a,_0x7baa8e={'QIgIW':function(_0x416a44,_0x3e6665){return _0x416a44===_0x3e6665;},'DmadB':'setupHeader'},_0x35f1ff=_0x147d85[_0x151f46(0x15b)]('.');return _0x7baa8e['QIgIW'](_0x35f1ff[0x0],_0x151f46(0x137))&&(_0x35f1ff[0x0]='headers'),_0x7baa8e['QIgIW'](_0x35f1ff[0x0],_0x7baa8e['DmadB'])&&(_0x35f1ff[0x0]=_0x151f46(0x135)),_0x35f1ff;}function _0x4fb7(_0x56f97b,_0x518ff9){_0x56f97b=_0x56f97b-0xee;const _0x391ebe=_0x391e();let _0x4fb7dc=_0x391ebe[_0x56f97b];return _0x4fb7dc;}export function formatSettings(_0xa163a1,_0x476485=0x0){const _0x45b535=_0x39628a,_0x50ffb6={'tmlZY':function(_0x438604,_0x189bac){return _0x438604===_0x189bac;}},_0x4e6634=[],_0x469bab='\x20\x20'['repeat'](_0x476485);for(const [_0x5c24c7,_0x546fa4]of Object['entries'](_0xa163a1)){if(_0x50ffb6['tmlZY'](_0x546fa4,undefined))continue;if(typeof _0x546fa4==='object'&&_0x546fa4!==null){_0x4e6634[_0x45b535(0x139)](''+_0x469bab+_0x5c24c7+':');for(const [_0xe742c3,_0x55b2e1]of Object['entries'](_0x546fa4)){_0x4e6634['push'](_0x469bab+'\x20\x20'+_0xe742c3+':\x20'+_0x55b2e1);}}else _0x4e6634[_0x45b535(0x139)](''+_0x469bab+_0x5c24c7+':\x20'+_0x546fa4);}return _0x4e6634[_0x45b535(0x141)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x1be7c6,_0x1616f7){const _0x4d3cb2=_0x4d95,_0x1f695f=_0x1be7c6();while(!![]){try{const _0x946c01=parseInt(_0x4d3cb2(0x146))/0x1+-parseInt(_0x4d3cb2(0x13d))/0x2*(-parseInt(_0x4d3cb2(0x144))/0x3)+parseInt(_0x4d3cb2(0x140))/0x4+parseInt(_0x4d3cb2(0x145))/0x5*(parseInt(_0x4d3cb2(0x142))/0x6)+-parseInt(_0x4d3cb2(0x143))/0x7+parseInt(_0x4d3cb2(0x13c))/0x8*(-parseInt(_0x4d3cb2(0x141))/0x9)+-parseInt(_0x4d3cb2(0x13b))/0xa;if(_0x946c01===_0x1616f7)break;else _0x1f695f['push'](_0x1f695f['shift']());}catch(_0x58591e){_0x1f695f['push'](_0x1f695f['shift']());}}}(_0x502a,0x4ba88));function _0x502a(){const _0x1b0b7e=['7042000AlznYj','40DzhZqZ','410594DrQGsJ','rOscG','utf-8','1831032tXWOst','674091kSkOfx','24YYHwoy','1770377CJnqxg','3gbaJID','465720lkjzUi','605871FROSdr','AqedV'];_0x502a=function(){return _0x1b0b7e;};return _0x502a();}import{readFileSync}from'fs';function _0x4d95(_0x3d9c7c,_0x2d689){_0x3d9c7c=_0x3d9c7c-0x13a;const _0x502a84=_0x502a();let _0x4d95a8=_0x502a84[_0x3d9c7c];return _0x4d95a8;}import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x566b2b){const _0xd78fa5=_0x4d95,_0x3b4caf={'SFFmA':function(_0x4a8b4c,_0x5b7e57,_0x3613a2,_0x21556f,_0x5edeb7){return _0x4a8b4c(_0x5b7e57,_0x3613a2,_0x21556f,_0x5edeb7);},'AqedV':function(_0xcd4f58,_0x1d44ab,_0x1a1bd4){return _0xcd4f58(_0x1d44ab,_0x1a1bd4);}},_0x51df53=_0x3b4caf['SFFmA'](join,__dirname,'..','..','skills'),_0x41d5a1=join(_0x51df53,_0x566b2b);try{return _0x3b4caf[_0xd78fa5(0x13a)](readFileSync,_0x41d5a1,_0xd78fa5(0x13f));}catch{return'';}}export function getRangerSkillContent(){const _0x1487eb=_0x4d95,_0x1e26c8={'rOscG':'ranger/SKILL.md'};return readSkillContent(_0x1e26c8[_0x1487eb(0x13e)]);}
1
+ (function(_0x4430c2,_0x5b1624){const _0x1f96ef=_0x3795,_0x59fe88=_0x4430c2();while(!![]){try{const _0x5cfb76=parseInt(_0x1f96ef(0x1ea))/0x1+-parseInt(_0x1f96ef(0x1e9))/0x2+parseInt(_0x1f96ef(0x1ec))/0x3+parseInt(_0x1f96ef(0x1ee))/0x4+parseInt(_0x1f96ef(0x1ef))/0x5+parseInt(_0x1f96ef(0x1eb))/0x6+-parseInt(_0x1f96ef(0x1e8))/0x7;if(_0x5cfb76===_0x5b1624)break;else _0x59fe88['push'](_0x59fe88['shift']());}catch(_0x13cb55){_0x59fe88['push'](_0x59fe88['shift']());}}}(_0x744e,0xb3528));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function _0x3795(_0x4e5886,_0x567f8a){_0x4e5886=_0x4e5886-0x1e8;const _0x744eeb=_0x744e();let _0x379528=_0x744eeb[_0x4e5886];return _0x379528;}export function readSkillContent(_0x4aba73){const _0x21e676=_0x3795,_0x5a1089={'ZqseW':'skills','YCNmK':function(_0x18f477,_0x515ece,_0x212144){return _0x18f477(_0x515ece,_0x212144);},'vttDV':'utf-8'},_0xe4133a=join(__dirname,'..','..',_0x5a1089['ZqseW']),_0x5774e1=_0x5a1089['YCNmK'](join,_0xe4133a,_0x4aba73);try{return readFileSync(_0x5774e1,_0x5a1089[_0x21e676(0x1ed)]);}catch{return'';}}export function getRangerSkillContent(){return readSkillContent('ranger/SKILL.md');}function _0x744e(){const _0x3ed701=['4535105PzacxA','20996773EHdcug','466396dvACyK','1076687KqHOqt','7809378zqUQFO','164922YSNToJ','vttDV','2507984bpEfIU'];_0x744e=function(){return _0x3ed701;};return _0x744e();}
@@ -1 +1 @@
1
- const _0x1aa37a=_0x4103;(function(_0x3f4dff,_0x1de582){const _0x5de9d0=_0x4103,_0x5aaa03=_0x3f4dff();while(!![]){try{const _0x3afa14=-parseInt(_0x5de9d0(0x1d4))/0x1*(-parseInt(_0x5de9d0(0x1e6))/0x2)+-parseInt(_0x5de9d0(0x1da))/0x3+-parseInt(_0x5de9d0(0x1cc))/0x4*(-parseInt(_0x5de9d0(0x1d6))/0x5)+parseInt(_0x5de9d0(0x1c8))/0x6*(-parseInt(_0x5de9d0(0x1e7))/0x7)+parseInt(_0x5de9d0(0x1de))/0x8+-parseInt(_0x5de9d0(0x1ce))/0x9+-parseInt(_0x5de9d0(0x1d0))/0xa*(-parseInt(_0x5de9d0(0x1cb))/0xb);if(_0x3afa14===_0x1de582)break;else _0x5aaa03['push'](_0x5aaa03['shift']());}catch(_0x5727de){_0x5aaa03['push'](_0x5aaa03['shift']());}}}(_0xa1dd,0xb85c8));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';function _0x4103(_0x4b9a79,_0x42cf58){_0x4b9a79=_0x4b9a79-0x1c7;const _0xa1ddf1=_0xa1dd();let _0x4103f8=_0xa1ddf1[_0x4b9a79];return _0x4103f8;}import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=['ranger'];export const DEPRECATED_SKILLS=['e2e-test-recommender',_0x1aa37a(0x1e0),'feature-tracker'];export async function installSkill(_0x5cee02,_0x2dea26={}){const _0x20d498=_0x1aa37a,_0x43e53f={'LDuoW':'project','NNOKp':_0x20d498(0x1d7),'ACwvn':function(_0x3b6d23,_0x37b360,_0x556572){return _0x3b6d23(_0x37b360,_0x556572);},'jQnNP':function(_0x3df868,_0x148e01){return _0x3df868(_0x148e01);},'lfTuq':function(_0x258127,_0x3e6031){return _0x258127(_0x3e6031);},'GoRIB':function(_0x3073ab,_0x19b541){return _0x3073ab(_0x19b541);},'yxdKc':function(_0x4f52d7,_0x583671){return _0x4f52d7&&_0x583671;},'boNrd':'opencode','taNgc':function(_0x5670b2,_0x25d804,_0xb749d7){return _0x5670b2(_0x25d804,_0xb749d7);},'KMRcT':function(_0x5c730a,_0x5b8392,_0x4c00be){return _0x5c730a(_0x5b8392,_0x4c00be);},'xVtYU':_0x20d498(0x1e1),'Rivah':'utf-8','arqqT':function(_0x202ede,_0x438bcd,_0x5aae41){return _0x202ede(_0x438bcd,_0x5aae41);},'LAWTN':function(_0x50b3c3,_0x13658f){return _0x50b3c3>_0x13658f;},'xVMYN':function(_0x336123,_0x139ae5,_0x58c33e,_0x5a418a){return _0x336123(_0x139ae5,_0x58c33e,_0x5a418a);}},{level:level=_0x43e53f[_0x20d498(0x1d2)],cliVersion:_0x162b9e,platform:platform=_0x43e53f['NNOKp']}=_0x2dea26,_0x5a63a9=getSourceSkillsDir(),_0xce72c1=_0x43e53f['ACwvn'](join,_0x5a63a9,_0x5cee02),_0x3657b2=join(_0x5a63a9,_0x5cee02+_0x20d498(0x1dc)),_0x3229e0=_0x43e53f['jQnNP'](existsSync,_0xce72c1)&&_0x43e53f['lfTuq'](statSync,_0xce72c1)[_0x20d498(0x1db)]()&&existsSync(join(_0xce72c1,_0x20d498(0x1e1))),_0x132452=_0x43e53f['GoRIB'](existsSync,_0x3657b2);if(_0x43e53f[_0x20d498(0x1e2)](!_0x3229e0,!_0x132452))return console[_0x20d498(0x1d1)](_0x20d498(0x1dd)+_0x5cee02),![];const _0x57c589=platform===_0x43e53f['boNrd']?getOpencodeSkillsDir(level):getSkillsDir(level),_0x3ab815=_0x43e53f['taNgc'](join,_0x57c589,_0x5cee02);await _0x43e53f['KMRcT'](mkdir,_0x3ab815,{'recursive':!![]});let _0x3a73e3,_0x5213e2=[];if(_0x3229e0){const _0x5c1a05=await readdir(_0xce72c1),_0x487a89=_0x5c1a05['filter'](_0x12a7eb=>_0x12a7eb['endsWith']('.md'));for(const _0x14a2b2 of _0x487a89){const _0x965527=join(_0xce72c1,_0x14a2b2),_0x18521e=_0x43e53f['taNgc'](join,_0x3ab815,_0x14a2b2);await _0x43e53f[_0x20d498(0x1e3)](copyFile,_0x965527,_0x18521e),_0x5213e2['push'](_0x14a2b2);}_0x3a73e3=await readFile(join(_0xce72c1,_0x43e53f['xVtYU']),_0x43e53f[_0x20d498(0x1cd)]);}else{_0x3a73e3=await readFile(_0x3657b2,_0x20d498(0x1e4));const _0x1d7444=_0x43e53f['arqqT'](join,_0x3ab815,_0x20d498(0x1e1));await writeFile(_0x1d7444,_0x3a73e3,'utf-8'),_0x5213e2['push'](_0x43e53f['xVtYU']);}const {name:_0x20b637}=_0x43e53f[_0x20d498(0x1c9)](parseFrontmatter,_0x3a73e3);return console['log']('\x20\x20Installed\x20skill:\x20'+_0x20b637),console[_0x20d498(0x1ca)](_0x20d498(0x1d5)+_0x3ab815),_0x43e53f['LAWTN'](_0x5213e2['length'],0x1)&&console[_0x20d498(0x1ca)]('\x20\x20Files:\x20'+_0x5213e2['join'](',\x20')),_0x43e53f['xVMYN'](logLocalAgentInstallation,_0x5cee02,{'skillDisplayName':_0x20b637,'installLevel':level},_0x162b9e)[_0x20d498(0x1c7)](()=>{}),!![];}function getSourceSkillsDir(){const _0x1f2791=_0x1aa37a,_0x1fc216={'kvjce':function(_0x49306e,_0x2dd1a4,_0x5d1805,_0x31c44a,_0x3a233b){return _0x49306e(_0x2dd1a4,_0x5d1805,_0x31c44a,_0x3a233b);},'qzfsj':function(_0x58a540,_0x922df0,_0x2358af,_0x3ad112,_0x1e68ef,_0x303a13){return _0x58a540(_0x922df0,_0x2358af,_0x3ad112,_0x1e68ef,_0x303a13);},'VzEsx':_0x1f2791(0x1d8),'neYIW':function(_0x3951e2,_0x50ef91){return _0x3951e2(_0x50ef91);}},_0x309069=[_0x1fc216['kvjce'](join,__dirname,'..','..','skills'),_0x1fc216[_0x1f2791(0x1d9)](join,__dirname,'..','..','..',_0x1fc216[_0x1f2791(0x1df)])];for(const _0x5ae98d of _0x309069){if(_0x1fc216[_0x1f2791(0x1cf)](existsSync,_0x5ae98d))return _0x5ae98d;}return _0x309069[0x0];}function parseFrontmatter(_0x224a50){const _0x183207=_0x1aa37a,_0x1dfa32={'SvpQn':'Invalid\x20skill\x20frontmatter'},_0x5070ee=_0x224a50[_0x183207(0x1d3)](/^---\n([\s\S]+?)\n---/);if(!_0x5070ee)throw new Error(_0x1dfa32['SvpQn']);const _0x287a24=_0x5070ee[0x1],_0xb3fa02=_0x287a24['match'](/name:\s*(.+)/),_0x4a7f13=_0x287a24['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0xb3fa02?.[0x1][_0x183207(0x1e5)]()||'','description':_0x4a7f13?.[0x1][_0x183207(0x1e5)]()||''};}function _0xa1dd(){const _0x56c971=['neYIW','20LLpWlR','warn','LDuoW','match','3xOqMwd','\x20\x20Location:\x20','13955XDxVRx','claude','skills','qzfsj','3949932MfRThs','isDirectory','.md','\x20\x20Skill\x20not\x20found:\x20','7252992qxtrko','VzEsx','bug-bash','SKILL.md','yxdKc','KMRcT','utf-8','trim','493042ORmBKA','588469SYRLft','catch','54lxnQBl','lfTuq','log','3102275mbxNrg','1208PwzVzT','Rivah','2022552NzvXti'];_0xa1dd=function(){return _0x56c971;};return _0xa1dd();}export async function removeSkill(_0x5c0e9a,_0x881d0f){const _0x1ae178=_0x1aa37a,_0x2803e6={'rrDAB':function(_0x295a7f,_0x3bc2de){return _0x295a7f(_0x3bc2de);}},_0x1607e7=_0x2803e6['rrDAB'](getSkillsDir,_0x881d0f),_0xceb4f3=join(_0x1607e7,_0x5c0e9a);if(!existsSync(_0xceb4f3))return![];try{return await rm(_0xceb4f3,{'recursive':!![]}),console[_0x1ae178(0x1ca)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x5c0e9a),!![];}catch{return console[_0x1ae178(0x1d1)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x5c0e9a),![];}}
1
+ const _0x2f4eef=_0x42e1;(function(_0x2ba860,_0x4e6fb9){const _0x41ed3d=_0x42e1,_0x1c7cae=_0x2ba860();while(!![]){try{const _0x509359=-parseInt(_0x41ed3d(0x8a))/0x1*(-parseInt(_0x41ed3d(0x91))/0x2)+parseInt(_0x41ed3d(0x82))/0x3+parseInt(_0x41ed3d(0x98))/0x4*(parseInt(_0x41ed3d(0x85))/0x5)+-parseInt(_0x41ed3d(0x94))/0x6+-parseInt(_0x41ed3d(0x92))/0x7+-parseInt(_0x41ed3d(0x83))/0x8*(-parseInt(_0x41ed3d(0x9b))/0x9)+-parseInt(_0x41ed3d(0x86))/0xa*(parseInt(_0x41ed3d(0x8f))/0xb);if(_0x509359===_0x4e6fb9)break;else _0x1c7cae['push'](_0x1c7cae['shift']());}catch(_0x3656bf){_0x1c7cae['push'](_0x1c7cae['shift']());}}}(_0x49e5,0x6e4bb));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';function _0x42e1(_0x587464,_0x48a9b7){_0x587464=_0x587464-0x7e;const _0x49e56a=_0x49e5();let _0x42e1a1=_0x49e56a[_0x587464];return _0x42e1a1;}import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';function _0x49e5(){const _0x156806=['WjSGd','.md','log','join','skills','1611960FCsMte','5502488BnVGtZ','isDirectory','30aGyngd','2824690CazXng','length','catch','opencode','11497KKaDzQ','\x20\x20Location:\x20','qAKrV','filter','yeqDe','11AztFGh','ZmHYF','2hyYaho','5092465EtdJOT','utf-8','2953446gIhuCn','AvEAs','ranger','SKILL.md','478232MwmCqv','Invalid\x20skill\x20frontmatter','nawoL','9ucojyv','warn','push','match'];_0x49e5=function(){return _0x156806;};return _0x49e5();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x2f4eef(0x96)];export const DEPRECATED_SKILLS=['e2e-test-recommender','bug-bash','feature-tracker'];export async function installSkill(_0x6b7f65,_0x428973={}){const _0x5cdea5=_0x2f4eef,_0x30dc1e={'EwflX':'claude','xeKfV':function(_0x561c73,_0x4266e2){return _0x561c73(_0x4266e2);},'qAKrV':function(_0x29295d,_0x55e918){return _0x29295d(_0x55e918);},'nawoL':function(_0x524ce8,_0x269cbc,_0x3dffc1){return _0x524ce8(_0x269cbc,_0x3dffc1);},'rJKqp':function(_0x90c025,_0xf8f633){return _0x90c025&&_0xf8f633;},'FhZfZ':function(_0x1db111,_0x5aa91b){return _0x1db111===_0x5aa91b;},'yeqDe':_0x5cdea5(0x89),'ZmHYF':function(_0x1753d7,_0x193ac4,_0x26f676){return _0x1753d7(_0x193ac4,_0x26f676);},'RVhWC':function(_0x1ce57f,_0x59f5a4){return _0x1ce57f(_0x59f5a4);},'AvEAs':'SKILL.md','PcvXO':_0x5cdea5(0x93),'dSTyP':function(_0x19e9d5,_0x422864,_0x5e594e,_0x3b8e7a){return _0x19e9d5(_0x422864,_0x5e594e,_0x3b8e7a);},'WjSGd':function(_0x37b16a,_0x20537c,_0x1f0258,_0x19c822){return _0x37b16a(_0x20537c,_0x1f0258,_0x19c822);}},{level:level='project',cliVersion:_0x211722,platform:platform=_0x30dc1e['EwflX']}=_0x428973,_0x4142c1=getSourceSkillsDir(),_0xa0f80e=join(_0x4142c1,_0x6b7f65),_0x12c3a7=join(_0x4142c1,_0x6b7f65+_0x5cdea5(0x7e)),_0x5a46cf=_0x30dc1e['xeKfV'](existsSync,_0xa0f80e)&&_0x30dc1e[_0x5cdea5(0x8c)](statSync,_0xa0f80e)[_0x5cdea5(0x84)]()&&existsSync(_0x30dc1e['nawoL'](join,_0xa0f80e,'SKILL.md')),_0x540c20=_0x30dc1e['xeKfV'](existsSync,_0x12c3a7);if(_0x30dc1e['rJKqp'](!_0x5a46cf,!_0x540c20))return console['warn']('\x20\x20Skill\x20not\x20found:\x20'+_0x6b7f65),![];const _0x103b6f=_0x30dc1e['FhZfZ'](platform,_0x30dc1e[_0x5cdea5(0x8e)])?getOpencodeSkillsDir(level):_0x30dc1e['qAKrV'](getSkillsDir,level),_0x3a0046=_0x30dc1e['ZmHYF'](join,_0x103b6f,_0x6b7f65);await _0x30dc1e['nawoL'](mkdir,_0x3a0046,{'recursive':!![]});let _0x3caa2b,_0x3f9b5e=[];if(_0x5a46cf){const _0xb6e38=await _0x30dc1e['RVhWC'](readdir,_0xa0f80e),_0x436bfa=_0xb6e38[_0x5cdea5(0x8d)](_0x6a918c=>_0x6a918c['endsWith'](_0x5cdea5(0x7e)));for(const _0x25d8ac of _0x436bfa){const _0x36da5f=_0x30dc1e[_0x5cdea5(0x90)](join,_0xa0f80e,_0x25d8ac),_0x344802=join(_0x3a0046,_0x25d8ac);await copyFile(_0x36da5f,_0x344802),_0x3f9b5e[_0x5cdea5(0x9d)](_0x25d8ac);}_0x3caa2b=await readFile(join(_0xa0f80e,_0x30dc1e[_0x5cdea5(0x95)]),_0x30dc1e['PcvXO']);}else{_0x3caa2b=await _0x30dc1e[_0x5cdea5(0x9a)](readFile,_0x12c3a7,'utf-8');const _0x196875=join(_0x3a0046,_0x30dc1e['AvEAs']);await _0x30dc1e['dSTyP'](writeFile,_0x196875,_0x3caa2b,_0x5cdea5(0x93)),_0x3f9b5e[_0x5cdea5(0x9d)](_0x5cdea5(0x97));}const {name:_0x2cc538}=parseFrontmatter(_0x3caa2b);return console['log']('\x20\x20Installed\x20skill:\x20'+_0x2cc538),console['log'](_0x5cdea5(0x8b)+_0x3a0046),_0x3f9b5e[_0x5cdea5(0x87)]>0x1&&console[_0x5cdea5(0x7f)]('\x20\x20Files:\x20'+_0x3f9b5e[_0x5cdea5(0x80)](',\x20')),_0x30dc1e[_0x5cdea5(0x9f)](logLocalAgentInstallation,_0x6b7f65,{'skillDisplayName':_0x2cc538,'installLevel':level},_0x211722)[_0x5cdea5(0x88)](()=>{}),!![];}function getSourceSkillsDir(){const _0x1daf22=_0x2f4eef,_0x2fd41a={'Ftugb':function(_0x241cb3,_0x79d5cd,_0x13510a,_0x10e75d,_0x4d06d0){return _0x241cb3(_0x79d5cd,_0x13510a,_0x10e75d,_0x4d06d0);}},_0xc4b24d=[_0x2fd41a['Ftugb'](join,__dirname,'..','..',_0x1daf22(0x81)),join(__dirname,'..','..','..','skills')];for(const _0x5a018c of _0xc4b24d){if(existsSync(_0x5a018c))return _0x5a018c;}return _0xc4b24d[0x0];}function parseFrontmatter(_0x326ce7){const _0x212d68=_0x2f4eef,_0xc63c86={'UrrVZ':_0x212d68(0x99)},_0x5c5d67=_0x326ce7[_0x212d68(0x9e)](/^---\n([\s\S]+?)\n---/);if(!_0x5c5d67)throw new Error(_0xc63c86['UrrVZ']);const _0x510428=_0x5c5d67[0x1],_0x100e20=_0x510428[_0x212d68(0x9e)](/name:\s*(.+)/),_0x38ec13=_0x510428[_0x212d68(0x9e)](/description:\s*"?(.+?)"?\n/);return{'name':_0x100e20?.[0x1]['trim']()||'','description':_0x38ec13?.[0x1]['trim']()||''};}export async function removeSkill(_0x181b14,_0x35230f){const _0x1076b4=_0x2f4eef,_0x594084={'lpLSz':function(_0x24cd70,_0x5dc116){return _0x24cd70(_0x5dc116);},'azwZY':function(_0x116317,_0x19608f){return _0x116317(_0x19608f);}},_0x5693b7=_0x594084['lpLSz'](getSkillsDir,_0x35230f),_0x3c4dca=join(_0x5693b7,_0x181b14);if(!_0x594084['azwZY'](existsSync,_0x3c4dca))return![];try{return await rm(_0x3c4dca,{'recursive':!![]}),console[_0x1076b4(0x7f)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x181b14),!![];}catch{return console[_0x1076b4(0x9c)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x181b14),![];}}