@ranger-testing/ranger-cli 2.5.1 → 2.5.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/mcpBootstrap.js +1 -0
  25. package/build/commands/setup/claude.js +1 -1
  26. package/build/commands/setup/opencode.js +1 -1
  27. package/build/commands/setupCi.js +1 -1
  28. package/build/commands/skillup.js +1 -1
  29. package/build/commands/start.js +1 -1
  30. package/build/commands/status.js +1 -1
  31. package/build/commands/update.js +1 -1
  32. package/build/commands/updateEnv.js +1 -1
  33. package/build/commands/useEnv.js +1 -1
  34. package/build/commands/utils/activeProfile.js +1 -1
  35. package/build/commands/utils/agentEnv.js +1 -1
  36. package/build/commands/utils/browserSessionsApi.js +1 -1
  37. package/build/commands/utils/claudeConfig.js +1 -1
  38. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  39. package/build/commands/utils/claudePlugin.js +1 -1
  40. package/build/commands/utils/crypto.js +1 -1
  41. package/build/commands/utils/desirePathLog.js +1 -1
  42. package/build/commands/utils/deviceAuth.js +1 -1
  43. package/build/commands/utils/environment.js +1 -1
  44. package/build/commands/utils/featureApi.js +1 -1
  45. package/build/commands/utils/fixWebmDuration.js +1 -1
  46. package/build/commands/utils/keychain.js +1 -1
  47. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  48. package/build/commands/utils/mcpImageBase64.js +1 -1
  49. package/build/commands/utils/model.js +1 -1
  50. package/build/commands/utils/opencodeConfig.js +1 -1
  51. package/build/commands/utils/playwrightCli.js +1 -1
  52. package/build/commands/utils/profileMessages.js +1 -1
  53. package/build/commands/utils/profileSetupBanner.js +1 -1
  54. package/build/commands/utils/rangerConfig.js +1 -1
  55. package/build/commands/utils/rangerRoot.js +1 -1
  56. package/build/commands/utils/retry.js +1 -1
  57. package/build/commands/utils/sessionCache.js +1 -1
  58. package/build/commands/utils/settings.js +1 -1
  59. package/build/commands/utils/skillContent.js +1 -1
  60. package/build/commands/utils/skills.js +1 -1
  61. package/build/commands/utils/stitchWebmFiles.js +1 -1
  62. package/build/commands/utils/telemetry.js +1 -1
  63. package/build/commands/utils/tokenRefresh.js +1 -1
  64. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  65. package/build/commands/utils/userApi.js +1 -1
  66. package/build/commands/utils/version.js +1 -1
  67. package/build/commands/verifyFeature.js +1 -1
  68. package/build/commands/verifyFeatureCli.js +1 -1
  69. package/package.json +1 -1
  70. package/build/commands/utils/featureReportGenerator.js +0 -1
  71. package/build/commands/utils/git.js +0 -1
  72. package/build/commands/utils/reportGenerator.js +0 -1
  73. package/build/commands/verifyInBrowser.js +0 -1
@@ -1 +1 @@
1
- (function(_0x144da8,_0x5e1fe1){const _0x147c05=_0x3251,_0x54056b=_0x144da8();while(!![]){try{const _0xadd46a=-parseInt(_0x147c05(0x175))/0x1+parseInt(_0x147c05(0x189))/0x2+parseInt(_0x147c05(0x180))/0x3*(-parseInt(_0x147c05(0x190))/0x4)+-parseInt(_0x147c05(0x173))/0x5*(-parseInt(_0x147c05(0x16f))/0x6)+-parseInt(_0x147c05(0x18e))/0x7+-parseInt(_0x147c05(0x19e))/0x8*(parseInt(_0x147c05(0x182))/0x9)+parseInt(_0x147c05(0x19c))/0xa;if(_0xadd46a===_0x5e1fe1)break;else _0x54056b['push'](_0x54056b['shift']());}catch(_0x1f3424){_0x54056b['push'](_0x54056b['shift']());}}}(_0x1687,0x1e14d));import{readFile,stat}from'fs/promises';import{extname}from'path';import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x3f2aba){const _0x4af4ad=_0x3251,_0x1f3d82={'iyiOi':function(_0x3a5958,_0x75f2ea){return _0x3a5958===_0x75f2ea;},'gjDDd':'object','HFbdT':function(_0x54259a,_0x2eccae){return _0x54259a!==_0x2eccae;}};return _0x1f3d82['iyiOi'](typeof _0x3f2aba,_0x1f3d82[_0x4af4ad(0x19b)])&&_0x1f3d82[_0x4af4ad(0x184)](_0x3f2aba,null);}function isImageBlock(_0x3a2b28){const _0x44cab6=_0x3251,_0x3994a2={'wNRFq':_0x44cab6(0x17c)};return isRecord(_0x3a2b28)&&_0x3a2b28['type']===_0x3994a2['wNRFq'];}function isDataUrl(_0x47a099){const _0x2154b2=_0x3251;return _0x47a099[_0x2154b2(0x186)](_0x2154b2(0x16d));}function parseDataUrl(_0x3799cc){const _0x40ce45=_0x3251,_0x33982b={'ZPQmC':function(_0x9ff2c5,_0x2fb04a){return _0x9ff2c5(_0x2fb04a);}},_0x3bb3a8=/^data:([^;]+);base64,(.+)$/[_0x40ce45(0x169)](_0x3799cc);if(!_0x3bb3a8)return null;const _0x3658df=_0x3bb3a8[0x1]['toLowerCase']();if(!_0x33982b['ZPQmC'](isValidMediaType,_0x3658df))return null;return{'data':_0x3bb3a8[0x2],'mediaType':_0x3658df};}function isValidMediaType(_0x29a984){const _0x4fa682=_0x3251,_0x3bbfdc={'uxtgw':_0x4fa682(0x172),'KXrjL':'image/webp'};return[_0x4fa682(0x198),'image/png',_0x3bbfdc[_0x4fa682(0x170)],_0x3bbfdc[_0x4fa682(0x174)]][_0x4fa682(0x191)](_0x29a984);}function inferMediaType(_0x3c269f,_0x223ec6){const _0x483d02=_0x3251,_0x5344b2={'yiwXU':function(_0x3842c9,_0x540295){return _0x3842c9(_0x540295);},'JiXTO':function(_0x1116e9,_0x1ababa){return _0x1116e9(_0x1ababa);},'MTNDs':'image/jpeg','aleSO':'png','erYBe':'image/png','QNqOb':_0x483d02(0x172)};if(_0x3c269f){const _0x154a77=_0x3c269f['toLowerCase']()['split'](';')[0x0][_0x483d02(0x18d)]();if(_0x5344b2[_0x483d02(0x199)](isValidMediaType,_0x154a77))return _0x154a77;}const _0x725a16=_0x5344b2[_0x483d02(0x19a)](extname,_0x223ec6)['toLowerCase']()[_0x483d02(0x181)]('.','');switch(_0x725a16){case'jpg':case _0x483d02(0x17f):return _0x5344b2['MTNDs'];case _0x5344b2[_0x483d02(0x18b)]:return _0x5344b2[_0x483d02(0x179)];case _0x483d02(0x176):return _0x5344b2['QNqOb'];case'webp':return'image/webp';default:return _0x5344b2['erYBe'];}}async function readImageFromUrl(_0x4f1766){const _0x2b5d9c=_0x3251,_0x151b51={'MlyTt':function(_0x40553b,_0x7c93a7){return _0x40553b(_0x7c93a7);},'WEujV':_0x2b5d9c(0x17a),'fnVJZ':_0x2b5d9c(0x185),'pKdFG':function(_0x363b86,_0x1376e1){return _0x363b86(_0x1376e1);},'oAFQQ':_0x2b5d9c(0x194),'UyCRI':'http://','NgAQe':function(_0x3e0429,_0x553b26,_0xa29129){return _0x3e0429(_0x553b26,_0xa29129);},'SkxRK':function(_0x56a471,_0x3c57f7){return _0x56a471>_0x3c57f7;},'RIlIH':_0x2b5d9c(0x183),'flZUZ':function(_0x8385af,_0x49d3ae){return _0x8385af(_0x49d3ae);}};if(isDataUrl(_0x4f1766)){const _0x11c518=_0x151b51[_0x2b5d9c(0x17e)](parseDataUrl,_0x4f1766);if(_0x11c518)return _0x11c518;throw new Error(_0x151b51['WEujV']);}if(_0x4f1766['startsWith'](_0x151b51['fnVJZ'])){const _0x3a5011=_0x151b51[_0x2b5d9c(0x1a0)](fileURLToPath,_0x4f1766),_0x6db7d0=await _0x151b51[_0x2b5d9c(0x17e)](stat,_0x3a5011);if(_0x6db7d0['size']>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x2b5d9c(0x19d));const _0x2a23bb=await _0x151b51[_0x2b5d9c(0x17e)](readFile,_0x3a5011);return{'data':_0x2a23bb[_0x2b5d9c(0x193)](_0x151b51['oAFQQ']),'mediaType':inferMediaType(null,_0x3a5011)};}if(_0x4f1766['startsWith'](_0x151b51['UyCRI'])||_0x4f1766[_0x2b5d9c(0x186)]('https://')){const _0x1d8eb9=await _0x151b51['NgAQe'](fetch,_0x4f1766,{'signal':AbortSignal['timeout'](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x1d8eb9['ok'])throw new Error('Failed\x20to\x20fetch\x20image:\x20'+_0x1d8eb9['status']);const _0x4ac178=_0x1d8eb9['headers'][_0x2b5d9c(0x18c)](_0x2b5d9c(0x18a));if(_0x4ac178){const _0x1f6bb5=Number(_0x4ac178);if(!Number[_0x2b5d9c(0x197)](_0x1f6bb5)&&_0x1f6bb5>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x2b5d9c(0x195)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x1e6b08=await _0x1d8eb9[_0x2b5d9c(0x192)]();if(_0x151b51['SkxRK'](_0x1e6b08[_0x2b5d9c(0x177)],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');return{'data':Buffer['from'](_0x1e6b08)['toString'](_0x151b51['oAFQQ']),'mediaType':_0x151b51['NgAQe'](inferMediaType,_0x1d8eb9[_0x2b5d9c(0x1a1)][_0x2b5d9c(0x18c)](_0x151b51['RIlIH']),_0x4f1766)};}const _0x294c8e=await _0x151b51[_0x2b5d9c(0x1a0)](stat,_0x4f1766);if(_0x151b51[_0x2b5d9c(0x19f)](_0x294c8e['size'],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x2b5d9c(0x195)+MAX_IMAGE_SIZE_BYTES+_0x2b5d9c(0x19d));const _0x11d05f=await _0x151b51['flZUZ'](readFile,_0x4f1766);return{'data':_0x11d05f['toString'](_0x151b51['oAFQQ']),'mediaType':inferMediaType(null,_0x4f1766)};}async function convertImageBlockToBase64(_0x4793ce){const _0xbc73de=_0x3251,_0x3b343e={'TWFGl':'base64','ZBTJY':function(_0x548354,_0x900bf8){return _0x548354(_0x900bf8);}};if(_0x4793ce[_0xbc73de(0x17d)]?.['type']===_0x3b343e['TWFGl'])return{'updated':![],'block':_0x4793ce};if(_0x4793ce['data']&&_0x4793ce['mimeType'])return{'updated':![],'block':_0x4793ce};const _0x3185bf=_0x4793ce['source']?.['url']??_0x4793ce['url'];if(!_0x3185bf)return{'updated':![],'block':_0x4793ce};const _0x7f98bd=await _0x3b343e['ZBTJY'](readImageFromUrl,_0x3185bf);return{'updated':!![],'block':{..._0x4793ce,'source':{'type':_0x3b343e['TWFGl'],'media_type':_0x7f98bd['mediaType'],'data':_0x7f98bd['data']},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x3a3bbb){const _0x90108f=_0x3251,_0x5a5eeb={'aHgWZ':function(_0x41bb45,_0x34faab){return _0x41bb45(_0x34faab);}};if(!_0x5a5eeb[_0x90108f(0x171)](isRecord,_0x3a3bbb))return{'updated':![],'output':_0x3a3bbb};const _0x54b9df=_0x3a3bbb[_0x90108f(0x188)];if(!Array['isArray'](_0x54b9df))return{'updated':![],'output':_0x3a3bbb};let _0x18ff6f=![];const _0x171335=await Promise['all'](_0x54b9df['map'](async _0x832f3=>{const _0x45779d=_0x90108f;if(!isImageBlock(_0x832f3))return _0x832f3;try{const _0x501a22=await _0x5a5eeb[_0x45779d(0x171)](convertImageBlockToBase64,_0x832f3);if(_0x501a22[_0x45779d(0x1a2)])_0x18ff6f=!![];return _0x501a22['block'];}catch{return _0x832f3;}}));if(!_0x18ff6f)return{'updated':![],'output':_0x3a3bbb};return{'updated':!![],'output':{..._0x3a3bbb,'content':_0x171335}};}function _0x1687(){const _0x373b10=['pKdFG','headers','updated','exec','waPmn','HJjEN','output','data:','value','70482YsydPJ','uxtgw','aHgWZ','image/gif','25zPCSsc','KXrjL','192308tsKPIh','gif','byteLength','PostToolUse','erYBe','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','charCodeAt','image','source','MlyTt','jpeg','222jkGrZw','replace','9qpfkCL','content-type','HFbdT','file://','startsWith','vZOII','content','6000qbtnhJ','content-length','aleSO','get','trim','765870TvMVmE','string','4468YAWiQU','includes','arrayBuffer','toString','base64','Image\x20exceeds\x20size\x20limit\x20(','VJiYH','isNaN','image/jpeg','yiwXU','JiXTO','gjDDd','6758410WZqbxH','\x20bytes)','1839896JdYyIQ','SkxRK'];_0x1687=function(){return _0x373b10;};return _0x1687();}function sanitizeLoneSurrogates(_0x5e1a3c){const _0x1e2d31=_0x3251,_0x472ebd={'UuOoK':function(_0x350d13,_0xd69524){return _0x350d13<=_0xd69524;},'waPmn':function(_0xa73224,_0x57e8ce){return _0xa73224>=_0x57e8ce;},'HJjEN':function(_0x28645c,_0x58d14a){return _0x28645c+_0x58d14a;}};let _0x465d87=![],_0x10f66a='';for(let _0x3580c3=0x0;_0x3580c3<_0x5e1a3c['length'];_0x3580c3+=0x1){const _0xf9d5c8=_0x5e1a3c[_0x1e2d31(0x17b)](_0x3580c3);if(_0xf9d5c8>=0xd800&&_0x472ebd['UuOoK'](_0xf9d5c8,0xdbff)){const _0x581360=_0x5e1a3c['charCodeAt'](_0x3580c3+0x1);if(_0x472ebd[_0x1e2d31(0x16a)](_0x581360,0xdc00)&&_0x581360<=0xdfff){_0x10f66a+=_0x472ebd[_0x1e2d31(0x16b)](_0x5e1a3c[_0x3580c3],_0x5e1a3c[_0x3580c3+0x1]),_0x3580c3+=0x1;continue;}_0x465d87=!![],_0x10f66a+='�';continue;}if(_0xf9d5c8>=0xdc00&&_0x472ebd['UuOoK'](_0xf9d5c8,0xdfff)){_0x465d87=!![],_0x10f66a+='�';continue;}_0x10f66a+=_0x5e1a3c[_0x3580c3];}return _0x465d87?{'updated':_0x465d87,'value':_0x10f66a}:{'updated':_0x465d87,'value':_0x5e1a3c};}function _0x3251(_0xf67896,_0x27076f){_0xf67896=_0xf67896-0x169;const _0x16874a=_0x1687();let _0x325158=_0x16874a[_0xf67896];return _0x325158;}function sanitizeLoneSurrogatesDeep(_0x51f9a3){const _0x2c2519=_0x3251,_0x28ea76={'fdMUD':function(_0x43119c,_0x34da58){return _0x43119c(_0x34da58);},'VJiYH':function(_0x1f6d27,_0x253db0){return _0x1f6d27===_0x253db0;},'vZOII':function(_0x2782e4,_0x551bba){return _0x2782e4(_0x551bba);}};if(_0x28ea76[_0x2c2519(0x196)](typeof _0x51f9a3,_0x2c2519(0x18f)))return _0x28ea76[_0x2c2519(0x187)](sanitizeLoneSurrogates,_0x51f9a3);if(Array['isArray'](_0x51f9a3)){let _0x3009e1=![];const _0xd496f6=_0x51f9a3['map'](_0x3bc8c6=>{const _0x6c3d4e=_0x2c2519,_0x434b4c=_0x28ea76['fdMUD'](sanitizeLoneSurrogatesDeep,_0x3bc8c6);return _0x434b4c['updated']&&(_0x3009e1=!![]),_0x434b4c[_0x6c3d4e(0x16e)];});return _0x3009e1?{'updated':!![],'value':_0xd496f6}:{'updated':![],'value':_0x51f9a3};}if(!isRecord(_0x51f9a3))return{'updated':![],'value':_0x51f9a3};let _0x39379d=![];const _0x33c683=Object['entries'](_0x51f9a3)['map'](([_0x38b772,_0x11028d])=>{const _0x5cc8ef=_0x2c2519,_0x2e7452=_0x28ea76['fdMUD'](sanitizeLoneSurrogatesDeep,_0x11028d);return _0x2e7452['updated']&&(_0x39379d=!![]),[_0x38b772,_0x2e7452[_0x5cc8ef(0x16e)]];});return _0x39379d?{'updated':!![],'value':Object['fromEntries'](_0x33c683)}:{'updated':![],'value':_0x51f9a3};}export function createMcpImageBase64Hook(){const _0x3f167d={'IldSf':function(_0x7c58e7,_0x13889e){return _0x7c58e7(_0x13889e);}};return async _0xddf625=>{const _0xd1cbde=_0x3251;if(_0xddf625['hook_event_name']!=='PostToolUse')return{};const _0x49180c=_0xddf625,_0x45f5b1=await convertToolOutputImagesToBase64(_0x49180c['tool_response']),_0x239723=_0x3f167d['IldSf'](sanitizeLoneSurrogatesDeep,_0x45f5b1[_0xd1cbde(0x16c)]),_0x263780=_0x45f5b1['updated']||_0x239723['updated'];if(!_0x263780)return{};return{'hookSpecificOutput':{'hookEventName':_0xd1cbde(0x178),'updatedMCPToolOutput':_0x239723['value']}};};}
1
+ (function(_0x2d7b15,_0x3e8d7e){const _0x5c10a8=_0x38d4,_0x832acf=_0x2d7b15();while(!![]){try{const _0x50f97f=parseInt(_0x5c10a8(0xe1))/0x1*(-parseInt(_0x5c10a8(0xd0))/0x2)+-parseInt(_0x5c10a8(0xfa))/0x3+-parseInt(_0x5c10a8(0xce))/0x4*(parseInt(_0x5c10a8(0xf8))/0x5)+-parseInt(_0x5c10a8(0xcf))/0x6*(parseInt(_0x5c10a8(0xea))/0x7)+-parseInt(_0x5c10a8(0xfe))/0x8*(-parseInt(_0x5c10a8(0xf2))/0x9)+parseInt(_0x5c10a8(0x10d))/0xa*(parseInt(_0x5c10a8(0xd6))/0xb)+-parseInt(_0x5c10a8(0xeb))/0xc*(-parseInt(_0x5c10a8(0xdf))/0xd);if(_0x50f97f===_0x3e8d7e)break;else _0x832acf['push'](_0x832acf['shift']());}catch(_0x4deb47){_0x832acf['push'](_0x832acf['shift']());}}}(_0x1045,0xa10b9));import{readFile,stat}from'fs/promises';import{extname}from'path';function _0x38d4(_0x450c56,_0x5ec01f){_0x450c56=_0x450c56-0xcb;const _0x104554=_0x1045();let _0x38d4c5=_0x104554[_0x450c56];return _0x38d4c5;}import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x4124ca){const _0x19aa36=_0x38d4,_0x2eb6d5={'baVAQ':function(_0x24d7c2,_0x12e8bc){return _0x24d7c2===_0x12e8bc;}};return _0x2eb6d5['baVAQ'](typeof _0x4124ca,_0x19aa36(0xed))&&_0x4124ca!==null;}function isImageBlock(_0x128831){const _0x210cc8=_0x38d4,_0x2e6d83={'xCBJA':function(_0x3f3dec,_0x7daf2b){return _0x3f3dec(_0x7daf2b);},'CWQeH':function(_0xb240c7,_0x2db74a){return _0xb240c7===_0x2db74a;},'vlMwN':_0x210cc8(0xf5)};return _0x2e6d83[_0x210cc8(0xfc)](isRecord,_0x128831)&&_0x2e6d83[_0x210cc8(0xe7)](_0x128831['type'],_0x2e6d83[_0x210cc8(0xe9)]);}function isDataUrl(_0x22cb84){const _0x59ea04=_0x38d4,_0x3a4a77={'ujsTS':'data:'};return _0x22cb84['startsWith'](_0x3a4a77[_0x59ea04(0xff)]);}function parseDataUrl(_0x11a469){const _0x41e84c=_0x38d4,_0x348420={'vwspK':function(_0x2a844b,_0x81c543){return _0x2a844b(_0x81c543);}},_0x466a04=/^data:([^;]+);base64,(.+)$/[_0x41e84c(0xe3)](_0x11a469);if(!_0x466a04)return null;const _0x5cd147=_0x466a04[0x1][_0x41e84c(0xe4)]();if(!_0x348420[_0x41e84c(0xd4)](isValidMediaType,_0x5cd147))return null;return{'data':_0x466a04[0x2],'mediaType':_0x5cd147};}function isValidMediaType(_0x295523){const _0x5c509c=_0x38d4,_0x31a63a={'zQhQo':_0x5c509c(0xe6)};return['image/jpeg',_0x5c509c(0xe2),'image/gif',_0x31a63a[_0x5c509c(0xec)]]['includes'](_0x295523);}function inferMediaType(_0x5cb0ed,_0x1e740f){const _0x4b27b=_0x38d4,_0x203a39={'HjdZX':function(_0x5d7d10,_0x2b46ae){return _0x5d7d10(_0x2b46ae);},'HVOxz':_0x4b27b(0x10b),'dJxBR':'image/png','slEEd':_0x4b27b(0xcd),'PNMgp':_0x4b27b(0x104)};if(_0x5cb0ed){const _0x5ed5c5=_0x5cb0ed['toLowerCase']()['split'](';')[0x0]['trim']();if(isValidMediaType(_0x5ed5c5))return _0x5ed5c5;}const _0x2af695=_0x203a39[_0x4b27b(0xd3)](extname,_0x1e740f)[_0x4b27b(0xe4)]()['replace']('.','');switch(_0x2af695){case _0x203a39[_0x4b27b(0xdc)]:case _0x4b27b(0xee):return'image/jpeg';case'png':return _0x203a39['dJxBR'];case _0x203a39['slEEd']:return _0x203a39['PNMgp'];case'webp':return'image/webp';default:return _0x203a39['dJxBR'];}}function _0x1045(){const _0xb25e08=['xANVm','toString','HVOxz','byteLength','block','299EkUoxY','Image\x20exceeds\x20size\x20limit\x20(','33856ZIhNUy','image/png','exec','toLowerCase','updated','image/webp','CWQeH','VmrAc','vlMwN','35YtWKLD','1273332cYPnam','zQhQo','object','jpeg','bLlpf','map','rmZjl','42327FEKzzi','\x20bytes)','base64','image','mediaType','QbMiq','28870kzMPeD','https://','2569191BRDYBk','Failed\x20to\x20fetch\x20image:\x20','xCBJA','type','344qCxPPw','ujsTS','value','fromEntries','YYYAS','string','image/gif','length','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','entries','PlRHG','content','headers','jpg','timeout','610wMSAcv','rnKcb','wNiJF','gif','844UOnovW','197226hIZlUh','62LVPNRz','http://','arrayBuffer','HjdZX','vwspK','YQkhu','235411BYsEps','size','pGYsk','startsWith'];_0x1045=function(){return _0xb25e08;};return _0x1045();}async function readImageFromUrl(_0x10499f){const _0x48d469=_0x38d4,_0x4933d0={'LZLDO':function(_0x9e6576,_0x384cd3){return _0x9e6576(_0x384cd3);},'QbMiq':_0x48d469(0x106),'TDXoA':'file://','nBuBv':'base64','rmZjl':'content-length','ApcKk':function(_0x1f6be8,_0x5763f0){return _0x1f6be8(_0x5763f0);},'pGYsk':function(_0x550cb5,_0x5bb4c2){return _0x550cb5>_0x5bb4c2;}};if(isDataUrl(_0x10499f)){const _0x20e661=_0x4933d0['LZLDO'](parseDataUrl,_0x10499f);if(_0x20e661)return _0x20e661;throw new Error(_0x4933d0[_0x48d469(0xf7)]);}if(_0x10499f['startsWith'](_0x4933d0['TDXoA'])){const _0x308ca8=fileURLToPath(_0x10499f),_0x26e145=await stat(_0x308ca8);if(_0x26e145[_0x48d469(0xd7)]>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x48d469(0xf3));const _0x13d201=await readFile(_0x308ca8);return{'data':_0x13d201['toString'](_0x4933d0['nBuBv']),'mediaType':inferMediaType(null,_0x308ca8)};}if(_0x10499f['startsWith'](_0x48d469(0xd1))||_0x10499f[_0x48d469(0xd9)](_0x48d469(0xf9))){const _0x513bbd=await fetch(_0x10499f,{'signal':AbortSignal[_0x48d469(0x10c)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x513bbd['ok'])throw new Error(_0x48d469(0xfb)+_0x513bbd['status']);const _0x170b8f=_0x513bbd['headers']['get'](_0x4933d0[_0x48d469(0xf1)]);if(_0x170b8f){const _0x4890d0=_0x4933d0['ApcKk'](Number,_0x170b8f);if(!Number['isNaN'](_0x4890d0)&&_0x4933d0['pGYsk'](_0x4890d0,MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x2ae5fc=await _0x513bbd[_0x48d469(0xd2)]();if(_0x2ae5fc[_0x48d469(0xdd)]>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x48d469(0xf3));return{'data':Buffer['from'](_0x2ae5fc)['toString'](_0x4933d0['nBuBv']),'mediaType':inferMediaType(_0x513bbd[_0x48d469(0x10a)]['get']('content-type'),_0x10499f)};}const _0x3a8f1a=await stat(_0x10499f);if(_0x4933d0[_0x48d469(0xd8)](_0x3a8f1a[_0x48d469(0xd7)],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x48d469(0xe0)+MAX_IMAGE_SIZE_BYTES+_0x48d469(0xf3));const _0x3e4763=await _0x4933d0['ApcKk'](readFile,_0x10499f);return{'data':_0x3e4763[_0x48d469(0xdb)]('base64'),'mediaType':inferMediaType(null,_0x10499f)};}async function convertImageBlockToBase64(_0x1b986f){const _0x23926a=_0x38d4,_0x33675a={'xANVm':function(_0x220408,_0x210d89){return _0x220408===_0x210d89;}};if(_0x33675a[_0x23926a(0xda)](_0x1b986f['source']?.[_0x23926a(0xfd)],_0x23926a(0xf4)))return{'updated':![],'block':_0x1b986f};if(_0x1b986f['data']&&_0x1b986f['mimeType'])return{'updated':![],'block':_0x1b986f};const _0x4b6e05=_0x1b986f['source']?.['url']??_0x1b986f['url'];if(!_0x4b6e05)return{'updated':![],'block':_0x1b986f};const _0x285b42=await readImageFromUrl(_0x4b6e05);return{'updated':!![],'block':{..._0x1b986f,'source':{'type':_0x23926a(0xf4),'media_type':_0x285b42[_0x23926a(0xf6)],'data':_0x285b42['data']},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x2215df){const _0x425e63=_0x38d4,_0x3b3441={'WAqjx':function(_0x26561c,_0x3af896){return _0x26561c(_0x3af896);}};if(!_0x3b3441['WAqjx'](isRecord,_0x2215df))return{'updated':![],'output':_0x2215df};const _0x1351af=_0x2215df[_0x425e63(0x109)];if(!Array['isArray'](_0x1351af))return{'updated':![],'output':_0x2215df};let _0x38bdd3=![];const _0x32b60f=await Promise['all'](_0x1351af[_0x425e63(0xf0)](async _0x3c0060=>{const _0x322063=_0x425e63;if(!isImageBlock(_0x3c0060))return _0x3c0060;try{const _0x4eaea9=await convertImageBlockToBase64(_0x3c0060);if(_0x4eaea9['updated'])_0x38bdd3=!![];return _0x4eaea9[_0x322063(0xde)];}catch{return _0x3c0060;}}));if(!_0x38bdd3)return{'updated':![],'output':_0x2215df};return{'updated':!![],'output':{..._0x2215df,'content':_0x32b60f}};}function sanitizeLoneSurrogates(_0x3facc8){const _0x563d3a=_0x38d4,_0x2c0136={'YYYAS':function(_0x268600,_0x3adceb){return _0x268600>=_0x3adceb;},'VmrAc':function(_0x2d0899,_0x24db4f){return _0x2d0899<=_0x24db4f;},'rnKcb':function(_0x2b85a0,_0x557d85){return _0x2b85a0+_0x557d85;},'zJiwb':function(_0x13c69a,_0x379e9b){return _0x13c69a>=_0x379e9b;},'wNiJF':function(_0x1ad22c,_0x16ecd2){return _0x1ad22c+_0x16ecd2;},'YQkhu':function(_0x506a0a,_0x110b5d){return _0x506a0a<=_0x110b5d;}};let _0x11b2be=![],_0x25b5e3='';for(let _0x27ed65=0x0;_0x27ed65<_0x3facc8[_0x563d3a(0x105)];_0x27ed65+=0x1){const _0x414398=_0x3facc8['charCodeAt'](_0x27ed65);if(_0x2c0136[_0x563d3a(0x102)](_0x414398,0xd800)&&_0x2c0136['VmrAc'](_0x414398,0xdbff)){const _0x249f95=_0x3facc8['charCodeAt'](_0x2c0136[_0x563d3a(0xcb)](_0x27ed65,0x1));if(_0x2c0136['zJiwb'](_0x249f95,0xdc00)&&_0x2c0136[_0x563d3a(0xe8)](_0x249f95,0xdfff)){_0x25b5e3+=_0x2c0136[_0x563d3a(0xcc)](_0x3facc8[_0x27ed65],_0x3facc8[_0x27ed65+0x1]),_0x27ed65+=0x1;continue;}_0x11b2be=!![],_0x25b5e3+='�';continue;}if(_0x2c0136[_0x563d3a(0x102)](_0x414398,0xdc00)&&_0x2c0136[_0x563d3a(0xd5)](_0x414398,0xdfff)){_0x11b2be=!![],_0x25b5e3+='�';continue;}_0x25b5e3+=_0x3facc8[_0x27ed65];}return _0x11b2be?{'updated':_0x11b2be,'value':_0x25b5e3}:{'updated':_0x11b2be,'value':_0x3facc8};}function sanitizeLoneSurrogatesDeep(_0xf4755c){const _0x307b1d=_0x38d4,_0x47bc63={'PlRHG':function(_0x2b7e,_0x15f1e3){return _0x2b7e(_0x15f1e3);}};if(typeof _0xf4755c===_0x307b1d(0x103))return sanitizeLoneSurrogates(_0xf4755c);if(Array['isArray'](_0xf4755c)){let _0xe98025=![];const _0x49368b=_0xf4755c['map'](_0x32336a=>{const _0x182628=_0x307b1d,_0x4dc083=sanitizeLoneSurrogatesDeep(_0x32336a);return _0x4dc083[_0x182628(0xe5)]&&(_0xe98025=!![]),_0x4dc083['value'];});return _0xe98025?{'updated':!![],'value':_0x49368b}:{'updated':![],'value':_0xf4755c};}if(!_0x47bc63[_0x307b1d(0x108)](isRecord,_0xf4755c))return{'updated':![],'value':_0xf4755c};let _0x5c7151=![];const _0x35dcbd=Object[_0x307b1d(0x107)](_0xf4755c)['map'](([_0x43a31a,_0x4b7511])=>{const _0x4d7c93=sanitizeLoneSurrogatesDeep(_0x4b7511);return _0x4d7c93['updated']&&(_0x5c7151=!![]),[_0x43a31a,_0x4d7c93['value']];});return _0x5c7151?{'updated':!![],'value':Object[_0x307b1d(0x101)](_0x35dcbd)}:{'updated':![],'value':_0xf4755c};}export function createMcpImageBase64Hook(){const _0x32d8d1={'DMoBo':'PostToolUse','bLlpf':function(_0x49ccc4,_0x5e4c26){return _0x49ccc4(_0x5e4c26);}};return async _0x51ed3b=>{const _0x81d6ce=_0x38d4;if(_0x51ed3b['hook_event_name']!==_0x32d8d1['DMoBo'])return{};const _0x3d7784=_0x51ed3b,_0x2a420f=await _0x32d8d1[_0x81d6ce(0xef)](convertToolOutputImagesToBase64,_0x3d7784['tool_response']),_0x5188db=sanitizeLoneSurrogatesDeep(_0x2a420f['output']),_0x18abc0=_0x2a420f['updated']||_0x5188db[_0x81d6ce(0xe5)];if(!_0x18abc0)return{};return{'hookSpecificOutput':{'hookEventName':_0x32d8d1['DMoBo'],'updatedMCPToolOutput':_0x5188db[_0x81d6ce(0x100)]}};};}
@@ -1 +1 @@
1
- function _0x2ba4(_0x286054,_0x3b0fc7){_0x286054=_0x286054-0x144;const _0x8d9b4e=_0x8d9b();let _0x2ba4c5=_0x8d9b4e[_0x286054];return _0x2ba4c5;}const _0x34ef09=_0x2ba4;(function(_0x22ef99,_0x2674a7){const _0x460efa=_0x2ba4,_0x1eedec=_0x22ef99();while(!![]){try{const _0x417365=parseInt(_0x460efa(0x148))/0x1+parseInt(_0x460efa(0x144))/0x2+-parseInt(_0x460efa(0x14b))/0x3+parseInt(_0x460efa(0x147))/0x4*(-parseInt(_0x460efa(0x149))/0x5)+-parseInt(_0x460efa(0x146))/0x6*(parseInt(_0x460efa(0x14d))/0x7)+parseInt(_0x460efa(0x14a))/0x8+-parseInt(_0x460efa(0x145))/0x9;if(_0x417365===_0x2674a7)break;else _0x1eedec['push'](_0x1eedec['shift']());}catch(_0x446671){_0x1eedec['push'](_0x1eedec['shift']());}}}(_0x8d9b,0x2dee2));const VERIFY_MODEL_ALIASES={'opus':'claude-opus-4-6','sonnet':_0x34ef09(0x14e)};export const DEFAULT_VERIFY_MODEL='claude-sonnet-4-6';export function resolveVerifyModel(_0x4f6f5a){const _0x56a2d1=_0x34ef09,_0x1d123a={'jnbXo':function(_0x3a4df6,_0x253981){return _0x3a4df6??_0x253981;}};if(!_0x4f6f5a)return undefined;const _0x51b090=_0x4f6f5a['trim']();if(!_0x51b090)return undefined;const _0x3dfbe8=VERIFY_MODEL_ALIASES[_0x51b090[_0x56a2d1(0x14c)]()];return _0x1d123a['jnbXo'](_0x3dfbe8,_0x51b090);}function _0x8d9b(){const _0x51be46=['588462VngRQJ','claude-sonnet-4-6','656112sCfRDe','2690586KUkmIo','6CnrkUX','14116EgszFv','68523zQGBPO','45baBunl','2523416IUTqMA','327285kjtOkE','toLowerCase'];_0x8d9b=function(){return _0x51be46;};return _0x8d9b();}
1
+ const _0x167997=_0xffa9;(function(_0x1a2add,_0x3889ab){const _0xeeffd7=_0xffa9,_0x528006=_0x1a2add();while(!![]){try{const _0x592e9a=parseInt(_0xeeffd7(0xa0))/0x1+parseInt(_0xeeffd7(0xa5))/0x2+-parseInt(_0xeeffd7(0xa4))/0x3*(parseInt(_0xeeffd7(0xaa))/0x4)+parseInt(_0xeeffd7(0xa2))/0x5+parseInt(_0xeeffd7(0xa9))/0x6*(parseInt(_0xeeffd7(0xa1))/0x7)+-parseInt(_0xeeffd7(0xa7))/0x8+-parseInt(_0xeeffd7(0xa8))/0x9;if(_0x592e9a===_0x3889ab)break;else _0x528006['push'](_0x528006['shift']());}catch(_0x4a2a44){_0x528006['push'](_0x528006['shift']());}}}(_0x58ed,0xcd287));function _0x58ed(){const _0x46fb08=['18655497zAUomU','645252oAukfy','1068jURGpo','1432746UfVUHq','28lRNsyi','6258730dINwme','claude-sonnet-4-6','1503sfbfco','2037800UOHLeK','claude-opus-4-6','8693064eJawFb'];_0x58ed=function(){return _0x46fb08;};return _0x58ed();}const VERIFY_MODEL_ALIASES={'opus':_0x167997(0xa6),'sonnet':'claude-sonnet-4-6'};function _0xffa9(_0x3be1a9,_0x50202b){_0x3be1a9=_0x3be1a9-0xa0;const _0x58ed92=_0x58ed();let _0xffa9da=_0x58ed92[_0x3be1a9];return _0xffa9da;}export const DEFAULT_VERIFY_MODEL=_0x167997(0xa3);export function resolveVerifyModel(_0x51f5fd){if(!_0x51f5fd)return undefined;const _0x6130a8=_0x51f5fd['trim']();if(!_0x6130a8)return undefined;const _0x4b6190=VERIFY_MODEL_ALIASES[_0x6130a8['toLowerCase']()];return _0x4b6190??_0x6130a8;}
@@ -1 +1 @@
1
- (function(_0x427f81,_0x9b2edf){var _0x3fe4e3=_0x4cf7,_0x474c52=_0x427f81();while(!![]){try{var _0x4256f3=parseInt(_0x3fe4e3(0x119))/0x1+-parseInt(_0x3fe4e3(0x11b))/0x2*(-parseInt(_0x3fe4e3(0x113))/0x3)+-parseInt(_0x3fe4e3(0x10f))/0x4*(parseInt(_0x3fe4e3(0x120))/0x5)+-parseInt(_0x3fe4e3(0x114))/0x6+-parseInt(_0x3fe4e3(0x10e))/0x7*(-parseInt(_0x3fe4e3(0x121))/0x8)+-parseInt(_0x3fe4e3(0x112))/0x9*(-parseInt(_0x3fe4e3(0x11c))/0xa)+parseInt(_0x3fe4e3(0x115))/0xb*(parseInt(_0x3fe4e3(0x11d))/0xc);if(_0x4256f3===_0x9b2edf)break;else _0x474c52['push'](_0x474c52['shift']());}catch(_0x3a0e5){_0x474c52['push'](_0x474c52['shift']());}}}(_0x1ed5,0xbfa84));import{homedir}from'os';import{join}from'path';import{getProjectRoot}from'./claudeConfig.js';function _0x1ed5(){var _0x304212=['OPENCODE_CONFIG_DIR','9iiIqbe','51KwMTnm','9371094vOmkZy','2519xolAvP','pEoBv','YulPh','XDG_CONFIG_HOME','662680nnXOtX','wySZf','113574IiqEzV','9300540kaWgPV','62628XNXZSR','.config','mBBFO','1995qosjUS','10576hWNDfq','854nYbkOJ','15716HkLyoo','env'];_0x1ed5=function(){return _0x304212;};return _0x1ed5();}export function getOpencodeConfigDir(_0x4151c5){var _0x50a75c=_0x4cf7,_0x1253e={'rbQJW':function(_0x315720,_0xc64022){return _0x315720===_0xc64022;},'pEoBv':function(_0x9cec80,_0x5a4c31,_0x5d34c6){return _0x9cec80(_0x5a4c31,_0x5d34c6);},'wySZf':'opencode','mBBFO':function(_0x444150){return _0x444150();},'zYasF':_0x50a75c(0x11e),'YulPh':function(_0x5b3484,_0x54e407,_0x25947f){return _0x5b3484(_0x54e407,_0x25947f);},'sUBnW':function(_0x4b5b78){return _0x4b5b78();},'czQIj':'.opencode'};if(process[_0x50a75c(0x110)][_0x50a75c(0x111)])return process['env'][_0x50a75c(0x111)];if(_0x1253e['rbQJW'](_0x4151c5,'user')){if(process['env'][_0x50a75c(0x118)])return _0x1253e[_0x50a75c(0x116)](join,process[_0x50a75c(0x110)]['XDG_CONFIG_HOME'],_0x1253e[_0x50a75c(0x11a)]);return join(_0x1253e[_0x50a75c(0x11f)](homedir),_0x1253e['zYasF'],_0x1253e[_0x50a75c(0x11a)]);}return _0x1253e[_0x50a75c(0x117)](join,_0x1253e['sUBnW'](getProjectRoot),_0x1253e['czQIj']);}function _0x4cf7(_0x181698,_0x423970){_0x181698=_0x181698-0x10e;var _0x1ed594=_0x1ed5();var _0x4cf708=_0x1ed594[_0x181698];return _0x4cf708;}export function getOpencodeSkillsDir(_0x47a7d7){return join(getOpencodeConfigDir(_0x47a7d7),'skills');}
1
+ function _0x1a61(_0x2dfaed,_0x29f6e8){_0x2dfaed=_0x2dfaed-0x95;var _0xefe20d=_0xefe2();var _0x1a618a=_0xefe20d[_0x2dfaed];return _0x1a618a;}(function(_0x1a1672,_0x2aefaa){var _0xa86ddc=_0x1a61,_0x5ea954=_0x1a1672();while(!![]){try{var _0x131ec2=parseInt(_0xa86ddc(0xa1))/0x1*(-parseInt(_0xa86ddc(0x9c))/0x2)+-parseInt(_0xa86ddc(0xa0))/0x3+-parseInt(_0xa86ddc(0x9d))/0x4+-parseInt(_0xa86ddc(0xa2))/0x5+parseInt(_0xa86ddc(0x9b))/0x6+parseInt(_0xa86ddc(0x9e))/0x7*(-parseInt(_0xa86ddc(0x96))/0x8)+parseInt(_0xa86ddc(0x98))/0x9*(parseInt(_0xa86ddc(0xa3))/0xa);if(_0x131ec2===_0x2aefaa)break;else _0x5ea954['push'](_0x5ea954['shift']());}catch(_0x3743d0){_0x5ea954['push'](_0x5ea954['shift']());}}}(_0xefe2,0xe89de));import{homedir}from'os';import{join}from'path';import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0x523e71){var _0x289339=_0x1a61,_0x4803ad={'QvdWy':function(_0x3e8dda,_0x20d898,_0x399e2d){return _0x3e8dda(_0x20d898,_0x399e2d);},'xOlZS':function(_0x432287){return _0x432287();},'GWynx':'.opencode'};if(process['env']['OPENCODE_CONFIG_DIR'])return process[_0x289339(0x9a)]['OPENCODE_CONFIG_DIR'];if(_0x523e71==='user'){if(process[_0x289339(0x9a)][_0x289339(0x9f)])return _0x4803ad[_0x289339(0x99)](join,process[_0x289339(0x9a)][_0x289339(0x9f)],'opencode');return join(homedir(),'.config','opencode');}return join(_0x4803ad[_0x289339(0x97)](getProjectRoot),_0x4803ad['GWynx']);}export function getOpencodeSkillsDir(_0x444157){var _0x160f61=_0x1a61,_0x11c97b={'VbRWm':function(_0x144721,_0x566a63){return _0x144721(_0x566a63);},'kDsGT':'skills'};return join(_0x11c97b['VbRWm'](getOpencodeConfigDir,_0x444157),_0x11c97b[_0x160f61(0x95)]);}function _0xefe2(){var _0x41ce18=['QvdWy','env','1761798JTjgPj','46FjvLBy','898888COimmm','9337622Lyfigp','XDG_CONFIG_HOME','2156769AdBgTi','76993MDOOlj','5580300wnVZBn','11647310KOggcH','kDsGT','8MuFyER','xOlZS','45LirSQL'];_0xefe2=function(){return _0x41ce18;};return _0xefe2();}
@@ -1 +1 @@
1
- const _0xa02688=_0x1d83;(function(_0x514380,_0xcb30f5){const _0x2dc569=_0x1d83,_0x1de4a3=_0x514380();while(!![]){try{const _0x3db824=parseInt(_0x2dc569(0x17d))/0x1+-parseInt(_0x2dc569(0x16c))/0x2+parseInt(_0x2dc569(0x164))/0x3+parseInt(_0x2dc569(0x171))/0x4*(parseInt(_0x2dc569(0x15d))/0x5)+parseInt(_0x2dc569(0x178))/0x6+-parseInt(_0x2dc569(0x153))/0x7+parseInt(_0x2dc569(0x160))/0x8;if(_0x3db824===_0xcb30f5)break;else _0x1de4a3['push'](_0x1de4a3['shift']());}catch(_0x4f4522){_0x1de4a3['push'](_0x1de4a3['shift']());}}}(_0x31b8,0x260ee));function _0x1d83(_0x2d3358,_0x3af105){_0x2d3358=_0x2d3358-0x14e;const _0x31b8c4=_0x31b8();let _0x1d83c6=_0x31b8c4[_0x2d3358];return _0x1d83c6;}import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0xa02688(0x172);function toPlaywrightCliSessionKey(_0x2a6be0){const _0x3d9aa9=_0xa02688,_0x4e7235={'yPubu':_0x3d9aa9(0x151),'VrFKG':'hex'},_0x236661=createHash(_0x4e7235['yPubu'])[_0x3d9aa9(0x15f)](_0x2a6be0)['digest'](_0x4e7235['VrFKG'])[_0x3d9aa9(0x17e)](0x0,0xc);return'rg-'+_0x236661;}function shellQuote(_0x5a4049){return'\x27'+_0x5a4049['replace'](/'/g,'\x27\x5c\x27\x27')+'\x27';}function _0x31b8(){const _0x49812a=['unknown','string','length','18444LoFPIS','CLCZS','script','data','join','map','sVuKW','sessionId','229370QIvgnA','dNKBd','hCWAv','pipe','timed\x20out\x20after\x20','844JIsBEG','@playwright/cli','null','stderr','toString','values','VaEmY','844848mxCFlX','uKwpb','INhnL','ignore','error','193347scqMAy','slice','trim','\x0astdout:\x20','ZrRxk','timeoutMs','nPTgN','sha256','find','1330049XlFmAp','command','commandArgs','configPath','kill','HmFfB','...','\x0astderr:\x20','--config','-s=','985QGOKnG','bash_command','update','629664EdsQth'];_0x31b8=function(){return _0x49812a;};return _0x31b8();}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x589dd9){return SAFE_SHELL_TOKEN['test'](_0x589dd9)?_0x589dd9:shellQuote(_0x589dd9);}export function buildPlaywrightCliInvocation(_0x124ed2,_0x37beda,_0x4496e1){const _0x13183d=_0xa02688,_0x522da5={'LOHxt':'npx','PIrIB':function(_0x31a5df,_0x2548bd){return _0x31a5df(_0x2548bd);},'HmFfB':function(_0x1a69ce,_0x271838){return _0x1a69ce(_0x271838);}},_0x1c48fb=toPlaywrightCliSessionKey(_0x124ed2),[_0x17d1e1=_0x13183d(0x161)]=_0x4496e1,_0x6d184f=[PLAYWRIGHT_CLI_BINARY,_0x13183d(0x15c)+_0x1c48fb,'--config',_0x37beda,..._0x4496e1];return{'command':'npx','args':_0x6d184f,'shellCommand':[_0x522da5['LOHxt'],PLAYWRIGHT_CLI_BINARY,_0x13183d(0x15c)+_0x522da5['PIrIB'](quoteShellArg,_0x1c48fb),'--config',_0x522da5[_0x13183d(0x158)](quoteShellArg,_0x37beda),..._0x4496e1[_0x13183d(0x169)](quoteShellArg)][_0x13183d(0x168)]('\x20'),'subcommand':_0x17d1e1};}export function buildPlaywrightCliCommandPrefix(_0xbb4bbf,_0x4e83fc){const _0x4e5cf9=_0xa02688,_0x1d9ad7={'sVuKW':function(_0x626917,_0x1178c0){return _0x626917(_0x1178c0);},'oZiuJ':'npx','xglYZ':_0x4e5cf9(0x15b)},_0x35d353=_0x1d9ad7[_0x4e5cf9(0x16a)](toPlaywrightCliSessionKey,_0xbb4bbf);return[_0x1d9ad7['oZiuJ'],PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x35d353),_0x1d9ad7['xglYZ'],quoteShellArg(_0x4e83fc)][_0x4e5cf9(0x168)]('\x20');}function truncateOutput(_0x28aa00,_0x353fc4=0x7d0){const _0x1e2bc9=_0xa02688,_0x18cbed={'dNKBd':function(_0x3d4053,_0x559568){return _0x3d4053>_0x559568;},'nPTgN':function(_0x28a35e,_0x3518cc){return _0x28a35e+_0x3518cc;}};return _0x18cbed[_0x1e2bc9(0x16d)](_0x28aa00['length'],_0x353fc4)?_0x18cbed[_0x1e2bc9(0x150)](_0x28aa00['slice'](0x0,_0x353fc4),_0x1e2bc9(0x159)):_0x28aa00;}export async function runPlaywrightCliCommand(_0x2aa5db){const _0x4fa281=_0xa02688,_0x41b876={'VaEmY':'SIGKILL','WGrPX':'SIGTERM','OAyjI':function(_0x28247b,_0x2e3433,_0x8ea836){return _0x28247b(_0x2e3433,_0x8ea836);},'ZrRxk':function(_0x8dc4e9,_0x725a22){return _0x8dc4e9(_0x725a22);},'uKwpb':function(_0x1517fb,_0x401252){return _0x1517fb(_0x401252);},'CLCZS':'null','eMMeU':_0x4fa281(0x17b),'hCWAv':_0x4fa281(0x16f)},_0x1281e5=buildPlaywrightCliInvocation(_0x2aa5db[_0x4fa281(0x16b)],_0x2aa5db[_0x4fa281(0x156)],_0x2aa5db[_0x4fa281(0x155)]);return new Promise((_0x351b68,_0x130ba6)=>{const _0x554d87=_0x4fa281,_0x29d616=spawn(_0x1281e5[_0x554d87(0x154)],_0x1281e5['args'],{'cwd':_0x2aa5db['cwd'],'env':_0x2aa5db['env'],'stdio':[_0x41b876['eMMeU'],_0x554d87(0x16f),_0x41b876[_0x554d87(0x16e)]]});let _0x23495c='',_0x48d039='',_0x3326ad=![];const _0x11ea56=_0x2aa5db['timeoutMs']&&_0x2aa5db[_0x554d87(0x14f)]>0x0?setTimeout(()=>{const _0x1f95c9=_0x554d87,_0x410f14={'IHqRR':_0x41b876[_0x1f95c9(0x177)]};_0x3326ad=!![],_0x29d616[_0x1f95c9(0x157)](_0x41b876['WGrPX']),_0x41b876['OAyjI'](setTimeout,()=>{try{_0x29d616['kill'](_0x410f14['IHqRR']);}catch{}},0x3e8);},_0x2aa5db[_0x554d87(0x14f)]):null;_0x29d616['stdout']?.['on']('data',_0x546777=>{_0x23495c+=_0x546777['toString']();}),_0x29d616[_0x554d87(0x174)]?.['on'](_0x554d87(0x167),_0x180f9d=>{const _0x39b2a7=_0x554d87;_0x48d039+=_0x180f9d[_0x39b2a7(0x175)]();}),_0x29d616['on'](_0x554d87(0x17c),_0x35e809=>{const _0x5c285f=_0x554d87;if(_0x11ea56)clearTimeout(_0x11ea56);_0x41b876[_0x5c285f(0x14e)](_0x130ba6,_0x35e809);}),_0x29d616['on']('close',(_0x361c7d,_0x584e0b)=>{const _0x35d298=_0x554d87;if(_0x11ea56)_0x41b876['uKwpb'](clearTimeout,_0x11ea56);if(_0x361c7d===0x0){_0x41b876[_0x35d298(0x179)](_0x351b68,{'stdout':_0x23495c,'stderr':_0x48d039,'invocation':_0x1281e5});return;}const _0x50f0c6=_0x3326ad?_0x35d298(0x170)+_0x2aa5db[_0x35d298(0x14f)]+'ms':'exited\x20with\x20code='+(_0x361c7d??_0x35d298(0x173))+'\x20signal='+(_0x584e0b??_0x41b876[_0x35d298(0x165)]);_0x130ba6(new Error('playwright-cli\x20'+_0x1281e5['subcommand']+'\x20'+_0x50f0c6+_0x35d298(0x180)+_0x41b876[_0x35d298(0x179)](truncateOutput,_0x23495c)+_0x35d298(0x15a)+truncateOutput(_0x48d039)));});});}export function extractBashCommand(_0x56ab21){const _0x3a53c6=_0xa02688,_0x567ab7={'INhnL':_0x3a53c6(0x166),'uKFBp':_0x3a53c6(0x15e),'PEHbF':function(_0xe593ae,_0x3c5604){return _0xe593ae===_0x3c5604;},'sTaYO':'string'},_0x36ed67=['command','cmd',_0x567ab7[_0x3a53c6(0x17a)],_0x567ab7['uKFBp']];for(const _0x425983 of _0x36ed67){const _0x3f6752=_0x56ab21[_0x425983];if(_0x567ab7['PEHbF'](typeof _0x3f6752,_0x567ab7['sTaYO'])&&_0x3f6752[_0x3a53c6(0x17f)]())return _0x3f6752;}const _0x184f6=Object[_0x3a53c6(0x176)](_0x56ab21)[_0x3a53c6(0x152)](_0xf948eb=>typeof _0xf948eb===_0x3a53c6(0x162)&&_0xf948eb[_0x3a53c6(0x17f)]()[_0x3a53c6(0x163)]>0x0);return _0x184f6??null;}export function parsePlaywrightCliCommand(_0x2c5197){const _0x129d0a=_0x2c5197['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x129d0a?.[0x1]??null;}
1
+ const _0x47626b=_0x554b;function _0x554b(_0x1525ce,_0x3a6857){_0x1525ce=_0x1525ce-0x17f;const _0x52ea68=_0x52ea();let _0x554b07=_0x52ea68[_0x1525ce];return _0x554b07;}(function(_0x16ec94,_0x28fd53){const _0x2c67c5=_0x554b,_0x3f9ddd=_0x16ec94();while(!![]){try{const _0x11cb8d=-parseInt(_0x2c67c5(0x197))/0x1*(-parseInt(_0x2c67c5(0x182))/0x2)+-parseInt(_0x2c67c5(0x1b2))/0x3+parseInt(_0x2c67c5(0x1b5))/0x4+-parseInt(_0x2c67c5(0x18c))/0x5*(-parseInt(_0x2c67c5(0x193))/0x6)+parseInt(_0x2c67c5(0x196))/0x7+parseInt(_0x2c67c5(0x1b4))/0x8+-parseInt(_0x2c67c5(0x18d))/0x9;if(_0x11cb8d===_0x28fd53)break;else _0x3f9ddd['push'](_0x3f9ddd['shift']());}catch(_0x38237b){_0x3f9ddd['push'](_0x3f9ddd['shift']());}}}(_0x52ea,0xee920));import{spawn}from'child_process';import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY=_0x47626b(0x181);function toPlaywrightCliSessionKey(_0x3c11e3){const _0x2ed47f=_0x47626b,_0x2fab5f={'LJmHG':'sha256','pamYv':_0x2ed47f(0x1b0)},_0x18632d=createHash(_0x2fab5f[_0x2ed47f(0x191)])[_0x2ed47f(0x190)](_0x3c11e3)[_0x2ed47f(0x17f)](_0x2fab5f[_0x2ed47f(0x1a2)])['slice'](0x0,0xc);return _0x2ed47f(0x18e)+_0x18632d;}function shellQuote(_0x3e6563){return'\x27'+_0x3e6563['replace'](/'/g,'\x27\x5c\x27\x27')+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0x2228dd){const _0x460de6={'lwqBn':function(_0x1b9cd7,_0x24de93){return _0x1b9cd7(_0x24de93);}};return SAFE_SHELL_TOKEN['test'](_0x2228dd)?_0x2228dd:_0x460de6['lwqBn'](shellQuote,_0x2228dd);}export function buildPlaywrightCliInvocation(_0x459802,_0x420020,_0x563b97){const _0x5e9083=_0x47626b,_0x4a769b={'CfRGw':function(_0x4db4e5,_0x33d892){return _0x4db4e5(_0x33d892);},'lVyBt':_0x5e9083(0x183),'VnFlO':function(_0x11b503,_0x80c266){return _0x11b503(_0x80c266);},'onlzN':_0x5e9083(0x194),'NMpMM':function(_0x46bfad,_0x4d6574){return _0x46bfad(_0x4d6574);}},_0x157612=_0x4a769b[_0x5e9083(0x18b)](toPlaywrightCliSessionKey,_0x459802),[_0x5efa2f=_0x4a769b['lVyBt']]=_0x563b97,_0x85bd88=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x157612,_0x5e9083(0x194),_0x420020,..._0x563b97];return{'command':_0x5e9083(0x180),'args':_0x85bd88,'shellCommand':[_0x5e9083(0x180),PLAYWRIGHT_CLI_BINARY,'-s='+_0x4a769b['VnFlO'](quoteShellArg,_0x157612),_0x4a769b[_0x5e9083(0x1a6)],_0x4a769b['NMpMM'](quoteShellArg,_0x420020),..._0x563b97['map'](quoteShellArg)]['join']('\x20'),'subcommand':_0x5efa2f};}export function buildPlaywrightCliCommandPrefix(_0x3e397d,_0x211c27){const _0x5774d1=_0x47626b,_0x1a7744={'xHNNJ':_0x5774d1(0x180),'dXHyl':function(_0x2d4822,_0x57bf49){return _0x2d4822(_0x57bf49);},'MFlYV':'--config'},_0x1ab7b1=toPlaywrightCliSessionKey(_0x3e397d);return[_0x1a7744['xHNNJ'],PLAYWRIGHT_CLI_BINARY,_0x5774d1(0x1a0)+_0x1a7744[_0x5774d1(0x1ad)](quoteShellArg,_0x1ab7b1),_0x1a7744['MFlYV'],quoteShellArg(_0x211c27)][_0x5774d1(0x188)]('\x20');}function _0x52ea(){const _0x2b2704=['YUurz','kill','close','stdout','-s=','rQtqn','pamYv','toString','pipe','command','onlzN','AXRBm','slice','EaeQf','CdENH','values','stderr','dXHyl','trim','\x0astdout:\x20','hex','sessionId','1953516BAANZG','exited\x20with\x20code=','5407128nUMLEQ','762784JuKAmE','string','script','find','digest','npx','@playwright/cli','2vRZurO','unknown','DWCXJ','bash_command','null','subcommand','join','env','dIMJx','CfRGw','405tdpfox','23420232hCrHPo','rg-','cmd','update','LJmHG','wxUar','27036PhfBPF','--config','SIGKILL','9496186kEZlst','1642433OnGveS','timeoutMs','data','aAvFj','args'];_0x52ea=function(){return _0x2b2704;};return _0x52ea();}function truncateOutput(_0x361b1b,_0x4bb90e=0x7d0){const _0x298acb=_0x47626b,_0x2a2d12={'TtHON':function(_0x3c3ea8,_0xc25de3){return _0x3c3ea8>_0xc25de3;},'YpcGs':function(_0x1902a0,_0x1c1c62){return _0x1902a0+_0x1c1c62;},'cowwv':'...'};return _0x2a2d12['TtHON'](_0x361b1b['length'],_0x4bb90e)?_0x2a2d12['YpcGs'](_0x361b1b[_0x298acb(0x1a8)](0x0,_0x4bb90e),_0x2a2d12['cowwv']):_0x361b1b;}export async function runPlaywrightCliCommand(_0x534628){const _0x245ed1=_0x47626b,_0x45b610={'wxUar':function(_0x16e087,_0x2df891){return _0x16e087(_0x2df891);},'OXJGZ':function(_0x4a4219,_0xaadbe6){return _0x4a4219===_0xaadbe6;},'YUurz':function(_0x3b8c3c,_0xcde517){return _0x3b8c3c??_0xcde517;},'CdENH':_0x245ed1(0x186),'dIMJx':function(_0x109792,_0x5484a4){return _0x109792(_0x5484a4);},'aAvFj':function(_0x4468e7,_0x32e7d8){return _0x4468e7(_0x32e7d8);},'cVDly':'ignore','vTJHg':function(_0x1f8526,_0x4c45c8){return _0x1f8526>_0x4c45c8;},'rQtqn':_0x245ed1(0x199),'nCDju':'error'},_0x42f88c=buildPlaywrightCliInvocation(_0x534628[_0x245ed1(0x1b1)],_0x534628['configPath'],_0x534628['commandArgs']);return new Promise((_0x5adaaa,_0x477511)=>{const _0x5197a4=_0x245ed1,_0x524308={'DWCXJ':_0x5197a4(0x195),'JUAcM':function(_0xccec43,_0x1dad35){const _0x2c22ff=_0x5197a4;return _0x45b610[_0x2c22ff(0x192)](_0xccec43,_0x1dad35);}},_0xb7679a=spawn(_0x42f88c[_0x5197a4(0x1a5)],_0x42f88c[_0x5197a4(0x19b)],{'cwd':_0x534628['cwd'],'env':_0x534628[_0x5197a4(0x189)],'stdio':[_0x45b610['cVDly'],_0x5197a4(0x1a4),_0x5197a4(0x1a4)]});let _0x502931='',_0x2d7a9f='',_0x3601fa=![];const _0x39b09c=_0x534628['timeoutMs']&&_0x45b610['vTJHg'](_0x534628['timeoutMs'],0x0)?setTimeout(()=>{const _0x54e51d=_0x5197a4,_0x1dbc40={'wASCs':_0x524308[_0x54e51d(0x184)]};_0x3601fa=!![],_0xb7679a['kill']('SIGTERM'),setTimeout(()=>{const _0x50b2e1=_0x54e51d;try{_0xb7679a[_0x50b2e1(0x19d)](_0x1dbc40['wASCs']);}catch{}},0x3e8);},_0x534628[_0x5197a4(0x198)]):null;_0xb7679a[_0x5197a4(0x19f)]?.['on'](_0x45b610[_0x5197a4(0x1a1)],_0x540656=>{_0x502931+=_0x540656['toString']();}),_0xb7679a[_0x5197a4(0x1ac)]?.['on'](_0x5197a4(0x199),_0x52c3be=>{const _0x35f8ce=_0x5197a4;_0x2d7a9f+=_0x52c3be[_0x35f8ce(0x1a3)]();}),_0xb7679a['on'](_0x45b610['nCDju'],_0x4e9883=>{if(_0x39b09c)_0x524308['JUAcM'](clearTimeout,_0x39b09c);_0x477511(_0x4e9883);}),_0xb7679a['on'](_0x5197a4(0x19e),(_0x1731d7,_0x113673)=>{const _0x528019=_0x5197a4;if(_0x39b09c)_0x45b610[_0x528019(0x192)](clearTimeout,_0x39b09c);if(_0x45b610['OXJGZ'](_0x1731d7,0x0)){_0x5adaaa({'stdout':_0x502931,'stderr':_0x2d7a9f,'invocation':_0x42f88c});return;}const _0x1eef12=_0x3601fa?'timed\x20out\x20after\x20'+_0x534628['timeoutMs']+'ms':_0x528019(0x1b3)+_0x45b610['YUurz'](_0x1731d7,'null')+'\x20signal='+_0x45b610[_0x528019(0x19c)](_0x113673,_0x45b610[_0x528019(0x1aa)]);_0x45b610[_0x528019(0x18a)](_0x477511,new Error('playwright-cli\x20'+_0x42f88c[_0x528019(0x187)]+'\x20'+_0x1eef12+_0x528019(0x1af)+_0x45b610[_0x528019(0x19a)](truncateOutput,_0x502931)+'\x0astderr:\x20'+truncateOutput(_0x2d7a9f)));});});}export function extractBashCommand(_0x2239c6){const _0x471ba8=_0x47626b,_0x20991f={'eMJPg':_0x471ba8(0x1a5),'AXRBm':function(_0x28b9af,_0x46de69){return _0x28b9af===_0x46de69;},'EaeQf':function(_0x21479e,_0x59daef){return _0x21479e??_0x59daef;}},_0x16f894=[_0x20991f['eMJPg'],_0x471ba8(0x18f),_0x471ba8(0x1b7),_0x471ba8(0x185)];for(const _0x2d6ddd of _0x16f894){const _0x3c0d7b=_0x2239c6[_0x2d6ddd];if(_0x20991f[_0x471ba8(0x1a7)](typeof _0x3c0d7b,_0x471ba8(0x1b6))&&_0x3c0d7b['trim']())return _0x3c0d7b;}const _0x537ffb=Object[_0x471ba8(0x1ab)](_0x2239c6)[_0x471ba8(0x1b8)](_0x26dd32=>typeof _0x26dd32==='string'&&_0x26dd32[_0x471ba8(0x1ae)]()['length']>0x0);return _0x20991f[_0x471ba8(0x1a9)](_0x537ffb,null);}export function parsePlaywrightCliCommand(_0x39e2af){const _0x69c0ff=_0x39e2af['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0x69c0ff?.[0x1]??null;}
@@ -1 +1 @@
1
- (function(_0x24517e,_0x74bf37){const _0x186865=_0x4258,_0x5b76cb=_0x24517e();while(!![]){try{const _0x1c9fda=parseInt(_0x186865(0x183))/0x1+parseInt(_0x186865(0x189))/0x2*(-parseInt(_0x186865(0x18a))/0x3)+-parseInt(_0x186865(0x187))/0x4*(-parseInt(_0x186865(0x181))/0x5)+parseInt(_0x186865(0x180))/0x6+-parseInt(_0x186865(0x182))/0x7*(parseInt(_0x186865(0x188))/0x8)+-parseInt(_0x186865(0x186))/0x9*(parseInt(_0x186865(0x185))/0xa)+-parseInt(_0x186865(0x184))/0xb;if(_0x1c9fda===_0x74bf37)break;else _0x5b76cb['push'](_0x5b76cb['shift']());}catch(_0x1a0964){_0x5b76cb['push'](_0x5b76cb['shift']());}}}(_0x2a85,0xa90b0));function _0x4258(_0x2b3df3,_0x100aa8){_0x2b3df3=_0x2b3df3-0x180;const _0x2a8527=_0x2a85();let _0x425856=_0x2a8527[_0x2b3df3];return _0x425856;}const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';function _0x2a85(){const _0xebe415=['10vLbCum','1799406yglCga','4ZBVBaK','1897296fZbSpt','357142msBmPt','3VcOxVA','2854050lqDnbr','5862305ExjgSk','21NgXCZK','1298513gpmipj','12806838lhnSeX'];_0x2a85=function(){return _0xebe415;};return _0x2a85();}export function formatProfileRequiredMessage(_0x522c20){const _0x8d534e=_0x522c20?_0x522c20(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up\x20explaining\x20how\x20to\x20access\x20the\x20app.\x20To\x20set\x20up\x20a\x20profile\x20now,\x20run\x20'+_0x8d534e+'.';}
1
+ const _0x44e812=_0x4628;function _0x4628(_0x29103a,_0x2d45f8){_0x29103a=_0x29103a-0x156;const _0x5bee4b=_0x5bee();let _0x462899=_0x5bee4b[_0x29103a];return _0x462899;}(function(_0x9ea120,_0x1157fb){const _0x153686=_0x4628,_0xf2b0dc=_0x9ea120();while(!![]){try{const _0x339d3d=-parseInt(_0x153686(0x156))/0x1+-parseInt(_0x153686(0x15b))/0x2+parseInt(_0x153686(0x158))/0x3*(-parseInt(_0x153686(0x15e))/0x4)+-parseInt(_0x153686(0x157))/0x5*(parseInt(_0x153686(0x163))/0x6)+-parseInt(_0x153686(0x15d))/0x7+-parseInt(_0x153686(0x15a))/0x8*(parseInt(_0x153686(0x162))/0x9)+parseInt(_0x153686(0x15c))/0xa*(parseInt(_0x153686(0x160))/0xb);if(_0x339d3d===_0x1157fb)break;else _0xf2b0dc['push'](_0xf2b0dc['shift']());}catch(_0x5ba368){_0xf2b0dc['push'](_0xf2b0dc['shift']());}}}(_0x5bee,0xb7fab));function _0x5bee(){const _0x6b49c9=['ranger\x20profile\x20add\x20local','9814648TlvzYt','2026042wsGfOT','110MmqIfa','3039841zTzvkR','524iQLSgN','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','4661833MIizxq','mnHFQ','9pCUhcB','30RZlXSB','561495rfnWMH','376060XuKDhM','6792lqfQWc'];_0x5bee=function(){return _0x6b49c9;};return _0x5bee();}const DEFAULT_PROFILE_COMMAND=_0x44e812(0x159);export function formatProfileRequiredMessage(_0x50812b){const _0x2dbbc3=_0x44e812,_0x98f7f5={'mnHFQ':function(_0x54a140,_0x42ce00){return _0x54a140(_0x42ce00);}},_0x4c67a6=_0x50812b?_0x98f7f5[_0x2dbbc3(0x161)](_0x50812b,DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x2dbbc3(0x15f)+_0x4c67a6+'.';}
@@ -1 +1 @@
1
- (function(_0x4f31ca,_0x42c80f){const _0x595659=_0x5629,_0x427e64=_0x4f31ca();while(!![]){try{const _0x1af4bf=parseInt(_0x595659(0xa3))/0x1+-parseInt(_0x595659(0xa6))/0x2+-parseInt(_0x595659(0xa4))/0x3+parseInt(_0x595659(0xac))/0x4*(parseInt(_0x595659(0xb1))/0x5)+-parseInt(_0x595659(0xae))/0x6+-parseInt(_0x595659(0xb2))/0x7+-parseInt(_0x595659(0xb3))/0x8*(-parseInt(_0x595659(0xa9))/0x9);if(_0x1af4bf===_0x42c80f)break;else _0x427e64['push'](_0x427e64['shift']());}catch(_0x4c47a9){_0x427e64['push'](_0x427e64['shift']());}}}(_0x49d4,0x9ea20));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x297b99=_0x5629,_0x32ed1a={'xxuHk':function(_0x1c7801,_0x372348){return _0x1c7801+_0x372348;},'OpKvY':function(_0x54e2cc,_0x538eed){return _0x54e2cc+_0x538eed;},'VXSJM':_0x297b99(0xa2),'SjTUV':'<div\x20class=\x22ranger-banner__message\x22>','StAWa':'</div>'},_0x3025c4=_0x32ed1a['xxuHk'](_0x32ed1a['OpKvY'](_0x32ed1a['VXSJM']+_0x297b99(0xa5)+_0x32ed1a[_0x297b99(0xb0)],_0x297b99(0xaf)),'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>')+_0x32ed1a[_0x297b99(0xad)]+_0x32ed1a[_0x297b99(0xad)]+'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>',_0x17caf6=_0x297b99(0xa7);return _0x297b99(0xab)+JSON[_0x297b99(0xaa)](_0x3025c4)+';\x0a\x0a\x20\x20\x20\x20const\x20style\x20=\x20document.createElement(\x27style\x27);\x0a\x20\x20\x20\x20style.id\x20=\x20styleId;\x0a\x20\x20\x20\x20style.textContent\x20=\x20'+JSON['stringify'](_0x17caf6)+';\x0a\x0a\x20\x20\x20\x20const\x20head\x20=\x20document.head\x20||\x20document.getElementsByTagName(\x27head\x27)[0];\x0a\x20\x20\x20\x20if\x20(head)\x20{\x0a\x20\x20\x20\x20\x20\x20head.appendChild(style);\x0a\x20\x20\x20\x20}\x0a\x20\x20\x20\x20document.body.appendChild(banner);\x0a\x0a\x20\x20\x20\x20const\x20previousPaddingTop\x20=\x20document.body.style.paddingTop;\x0a\x20\x20\x20\x20const\x20updateOffset\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20const\x20height\x20=\x20banner.getBoundingClientRect().height;\x0a\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20height\x20+\x20\x27px\x27;\x0a\x20\x20\x20\x20};\x0a\x0a\x20\x20\x20\x20updateOffset();\x0a\x20\x20\x20\x20window.addEventListener(\x27resize\x27,\x20updateOffset);\x0a\x0a\x20\x20\x20\x20const\x20closeButton\x20=\x20banner.querySelector(\x27.ranger-banner__close\x27);\x0a\x20\x20\x20\x20if\x20(closeButton)\x20{\x0a\x20\x20\x20\x20\x20\x20closeButton.addEventListener(\x27click\x27,\x20()\x20=>\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20window.removeEventListener(\x27resize\x27,\x20updateOffset);\x0a\x20\x20\x20\x20\x20\x20\x20\x20banner.remove();\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(style.parentNode)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20style.parentNode.removeChild(style);\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20document.body.style.paddingTop\x20=\x20previousPaddingTop;\x0a\x20\x20\x20\x20\x20\x20\x20\x20if\x20(storage)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20storage.setItem(dismissedKey,\x20\x271\x27);\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20catch\x20{}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20});\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20if\x20(document.readyState\x20===\x20\x27loading\x27)\x20{\x0a\x20\x20\x20\x20document.addEventListener(\x27DOMContentLoaded\x27,\x20inject);\x0a\x20\x20}\x20else\x20{\x0a\x20\x20\x20\x20inject();\x0a\x20\x20}\x0a})();\x0a';})());function _0x49d4(){const _0x49c245=['\x0a#ranger-profile-setup-banner\x20{\x0a\x20\x20position:\x20fixed;\x0a\x20\x20top:\x200;\x0a\x20\x20left:\x200;\x0a\x20\x20right:\x200;\x0a\x20\x20z-index:\x202147483647;\x0a\x20\x20display:\x20flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20space-between;\x0a\x20\x20gap:\x2012px;\x0a\x20\x20padding:\x2010px\x2016px;\x0a\x20\x20background:\x20#EE9322;\x0a\x20\x20color:\x20#f9f6f6;\x0a\x20\x20font-family:\x20\x22Space\x20Grotesk\x22,\x20ui-sans-serif,\x20system-ui,\x20-apple-system,\x20\x22Segoe\x20UI\x22,\x20sans-serif;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201.4;\x0a\x20\x20border-bottom:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.25);\x0a\x20\x20box-shadow:\x200\x202px\x206px\x20rgba(32,\x208,\x209,\x200.2);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__content\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-direction:\x20column;\x0a\x20\x20align-items:\x20flex-start;\x0a\x20\x20gap:\x204px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__heading\x20{\x0a\x20\x20font-weight:\x20700;\x0a\x20\x20letter-spacing:\x200.02em;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__message\x20{\x0a\x20\x20display:\x20flex;\x0a\x20\x20flex-wrap:\x20wrap;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20gap:\x206px;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__title\x20{\x0a\x20\x20font-weight:\x20600;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20display:\x20inline-flex;\x0a\x20\x20align-items:\x20center;\x0a\x20\x20justify-content:\x20center;\x0a\x20\x20width:\x2028px;\x0a\x20\x20height:\x2028px;\x0a\x20\x20border-radius:\x206px;\x0a\x20\x20border:\x201px\x20solid\x20rgba(255,\x20255,\x20255,\x200.45);\x0a\x20\x20background:\x20transparent;\x0a\x20\x20color:\x20#fdf7f7;\x0a\x20\x20cursor:\x20pointer;\x0a\x20\x20font-size:\x2014px;\x0a\x20\x20line-height:\x201;\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:hover\x20{\x0a\x20\x20background:\x20rgba(255,\x20255,\x20255,\x200.18);\x0a}\x0a\x0a#ranger-profile-setup-banner\x20.ranger-banner__close:focus\x20{\x0a\x20\x20outline:\x202px\x20solid\x20#ffffff;\x0a\x20\x20outline-offset:\x202px;\x0a}\x0a\x0a@media\x20(max-width:\x20640px)\x20{\x0a\x20\x20#ranger-profile-setup-banner\x20{\x0a\x20\x20\x20\x20align-items:\x20flex-start;\x0a\x20\x20}\x0a\x0a\x20\x20#ranger-profile-setup-banner\x20.ranger-banner__close\x20{\x0a\x20\x20\x20\x20margin-top:\x202px;\x0a\x20\x20}\x0a}\x0a','addInitScript','12276CyhHsa','stringify','\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20','154796FUnHfA','StAWa','966930QHdPJI','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','SjTUV','115WuaEde','8163939XvGzjj','13696tbeFMc','<div\x20class=\x22ranger-banner__content\x22>','452969QJMQXX','2332206YiSfmQ','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','1847240BiyiuO'];_0x49d4=function(){return _0x49c245;};return _0x49d4();}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x5629(_0x18ffe1,_0x2320d1){_0x18ffe1=_0x18ffe1-0xa2;const _0x49d408=_0x49d4();let _0x5629dd=_0x49d408[_0x18ffe1];return _0x5629dd;}export async function addProfileSetupBanner(_0x31b644){const _0xc3d363=_0x5629;await _0x31b644[_0xc3d363(0xa8)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
1
+ (function(_0x3c9965,_0x4edba8){const _0x41f0d4=_0x4f41,_0x3d3408=_0x3c9965();while(!![]){try{const _0x187e8a=parseInt(_0x41f0d4(0x9f))/0x1*(parseInt(_0x41f0d4(0xa2))/0x2)+-parseInt(_0x41f0d4(0xaa))/0x3+-parseInt(_0x41f0d4(0xa8))/0x4*(parseInt(_0x41f0d4(0xa0))/0x5)+-parseInt(_0x41f0d4(0xa5))/0x6*(parseInt(_0x41f0d4(0xa4))/0x7)+parseInt(_0x41f0d4(0x95))/0x8+-parseInt(_0x41f0d4(0x9d))/0x9+-parseInt(_0x41f0d4(0x96))/0xa*(-parseInt(_0x41f0d4(0xa3))/0xb);if(_0x187e8a===_0x4edba8)break;else _0x3d3408['push'](_0x3d3408['shift']());}catch(_0x2fb587){_0x3d3408['push'](_0x3d3408['shift']());}}}(_0x7a43,0xecbbc));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x434fb6=_0x4f41,_0x255df4={'aXZHp':function(_0x59281c,_0x5e5fd3){return _0x59281c+_0x5e5fd3;},'MMoha':function(_0x520c0c,_0x5e9241){return _0x520c0c+_0x5e9241;},'GUVZA':function(_0x10bd7b,_0x338fae){return _0x10bd7b+_0x338fae;},'OGXbp':'<div\x20class=\x22ranger-banner__content\x22>','nMSXW':_0x434fb6(0xa7),'WRbnp':_0x434fb6(0x99),'wPvod':'<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>'},_0xd48ae7=_0x255df4[_0x434fb6(0xa9)](_0x255df4[_0x434fb6(0x9b)](_0x255df4[_0x434fb6(0xa6)](_0x255df4[_0x434fb6(0x97)],_0x255df4[_0x434fb6(0x9e)]),'<div\x20class=\x22ranger-banner__message\x22>')+'<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>',_0x434fb6(0x9c))+_0x255df4[_0x434fb6(0xa1)]+_0x255df4['WRbnp']+_0x255df4[_0x434fb6(0x94)],_0x3a64a3='\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 _0x434fb6(0x9a)+JSON['stringify'](_0xd48ae7)+';\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[_0x434fb6(0x98)](_0x3a64a3)+';\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 _0x4f41(_0x5598d1,_0x22d8c5){_0x5598d1=_0x5598d1-0x94;const _0x7a43e=_0x7a43();let _0x4f4176=_0x7a43e[_0x5598d1];return _0x4f4176;}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}function _0x7a43(){const _0xdb4370=['WRbnp','2TKypbi','121omQQnQ','445718fOleyG','48zVRRqI','GUVZA','<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>','612nSgFsb','aXZHp','1658289oZqtMz','wPvod','10259248NeNAQY','1682840chjuWW','OGXbp','stringify','</div>','\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20','MMoha','<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>','9734265btIaWq','nMSXW','1269813hNqixt','42155KLJkei'];_0x7a43=function(){return _0xdb4370;};return _0x7a43();}export async function addProfileSetupBanner(_0x46e90c){await _0x46e90c['addInitScript']({'content':PROFILE_SETUP_BANNER_SCRIPT});}
@@ -1 +1 @@
1
- (function(_0x170e65,_0x43c8dc){const _0x9c8f70=_0x19c2,_0x2e2179=_0x170e65();while(!![]){try{const _0x4c9947=-parseInt(_0x9c8f70(0x1b8))/0x1+parseInt(_0x9c8f70(0x1ac))/0x2+-parseInt(_0x9c8f70(0x1bb))/0x3*(parseInt(_0x9c8f70(0x1b1))/0x4)+parseInt(_0x9c8f70(0x1b9))/0x5*(-parseInt(_0x9c8f70(0x1ae))/0x6)+parseInt(_0x9c8f70(0x1b4))/0x7*(-parseInt(_0x9c8f70(0x1c1))/0x8)+parseInt(_0x9c8f70(0x1b2))/0x9*(parseInt(_0x9c8f70(0x1b6))/0xa)+parseInt(_0x9c8f70(0x1af))/0xb*(parseInt(_0x9c8f70(0x1c0))/0xc);if(_0x4c9947===_0x43c8dc)break;else _0x2e2179['push'](_0x2e2179['shift']());}catch(_0x25165e){_0x2e2179['push'](_0x2e2179['shift']());}}}(_0x3970,0xe23f6));function _0x3970(){const _0x3795df=['utf-8','11506831FnPfJN','warn','1210910FlUmSi','model','1475498qquSzu','815DvFNBQ','object','4395wJuWrX','dQASL','dySTb','message','config.json','23942448UoLjpK','8uXpWZO','yrlZz','2380312YhckeQ','parse','29478vYOltV','22KIMQVN','isArray','4548LCctXb','99oslXZB'];_0x3970=function(){return _0x3795df;};return _0x3970();}import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';export function getRangerConfigPath(){const _0x570d83=_0x19c2,_0x5890e6={'rIoQM':function(_0x5649b3){return _0x5649b3();}};return join(_0x5890e6['rIoQM'](getRangerDir),_0x570d83(0x1bf));}function _0x19c2(_0x2a430d,_0x284be6){_0x2a430d=_0x2a430d-0x1ac;const _0x397089=_0x3970();let _0x19c29e=_0x397089[_0x2a430d];return _0x19c29e;}export async function loadRangerConfig(){const _0x55da11=_0x19c2,_0x12844d={'kPdJX':function(_0x2707ee){return _0x2707ee();},'dQASL':function(_0x13590b,_0x3bf48c){return _0x13590b!==_0x3bf48c;},'yrlZz':_0x55da11(0x1ba),'dySTb':function(_0x1f5199,_0x52766a){return _0x1f5199===_0x52766a;}},_0x30a955=_0x12844d['kPdJX'](getRangerConfigPath);if(!existsSync(_0x30a955))return{};try{const _0x322ad7=await readFile(_0x30a955,_0x55da11(0x1b3)),_0xd49a3b=JSON[_0x55da11(0x1ad)](_0x322ad7);if(!_0xd49a3b||_0x12844d[_0x55da11(0x1bc)](typeof _0xd49a3b,_0x12844d[_0x55da11(0x1c2)])||Array[_0x55da11(0x1b0)](_0xd49a3b))return{};const _0x514309={},_0x4fa0fa=_0xd49a3b['model'];return _0x12844d[_0x55da11(0x1bd)](typeof _0x4fa0fa,'string')&&(_0x514309[_0x55da11(0x1b7)]=_0x4fa0fa),_0x514309;}catch(_0x10a583){const _0x3b70e5=_0x10a583 instanceof Error?_0x10a583[_0x55da11(0x1be)]:String(_0x10a583);return console[_0x55da11(0x1b5)]('Failed\x20to\x20read\x20Ranger\x20config\x20at\x20'+_0x30a955+':\x20'+_0x3b70e5),{};}}
1
+ (function(_0x24afb5,_0x5be248){const _0x1b4640=_0x4ebb,_0x160198=_0x24afb5();while(!![]){try{const _0x316535=parseInt(_0x1b4640(0x1d5))/0x1*(parseInt(_0x1b4640(0x1da))/0x2)+-parseInt(_0x1b4640(0x1db))/0x3*(-parseInt(_0x1b4640(0x1d2))/0x4)+-parseInt(_0x1b4640(0x1e8))/0x5*(-parseInt(_0x1b4640(0x1dd))/0x6)+-parseInt(_0x1b4640(0x1de))/0x7*(-parseInt(_0x1b4640(0x1e0))/0x8)+-parseInt(_0x1b4640(0x1e7))/0x9*(parseInt(_0x1b4640(0x1d6))/0xa)+-parseInt(_0x1b4640(0x1e3))/0xb*(parseInt(_0x1b4640(0x1e6))/0xc)+-parseInt(_0x1b4640(0x1e1))/0xd;if(_0x316535===_0x5be248)break;else _0x160198['push'](_0x160198['shift']());}catch(_0x565f15){_0x160198['push'](_0x160198['shift']());}}}(_0x57ad,0x41784));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';function _0x57ad(){const _0xeb3f34=['217184YTzQNh','BCxib','kPKUg','240fQaBbg','6705ZGmTHq','20ZOoabW','jXKMO','npOcs','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','208bBVIZa','object','XfEfC','473630yGxeMA','520DZFYsI','FSzkG','YBwXU','message','2IbJigz','5514GiLerU','model','729942tthTaW','3857CtxurW','isArray','4720qMtWjN','8828820BZpnUV','NSLff'];_0x57ad=function(){return _0xeb3f34;};return _0x57ad();}import{getRangerDir}from'./rangerRoot.js';function _0x4ebb(_0x369ab4,_0x27cce9){_0x369ab4=_0x369ab4-0x1d0;const _0x57ade2=_0x57ad();let _0x4ebb1b=_0x57ade2[_0x369ab4];return _0x4ebb1b;}export function getRangerConfigPath(){const _0x5db5b9=_0x4ebb,_0x101671={'FSzkG':function(_0x22895f,_0x292268,_0x36f693){return _0x22895f(_0x292268,_0x36f693);},'XfEfC':function(_0x859d49){return _0x859d49();},'OsVKa':'config.json'};return _0x101671[_0x5db5b9(0x1d7)](join,_0x101671[_0x5db5b9(0x1d4)](getRangerDir),_0x101671['OsVKa']);}export async function loadRangerConfig(){const _0x347460=_0x4ebb,_0x16fd52={'npOcs':function(_0xb41a41){return _0xb41a41();},'jXKMO':function(_0x158568,_0x3468d8){return _0x158568(_0x3468d8);},'YBwXU':function(_0x283190,_0x35d259,_0xb1fe9d){return _0x283190(_0x35d259,_0xb1fe9d);},'kPKUg':'utf-8','BCxib':function(_0x5dae33,_0x469613){return _0x5dae33!==_0x469613;},'IOmhi':'string','HVenO':function(_0x4602fe,_0x54b191){return _0x4602fe instanceof _0x54b191;},'NSLff':function(_0x49cf2b,_0x598c4c){return _0x49cf2b(_0x598c4c);}},_0xc0234b=_0x16fd52[_0x347460(0x1d0)](getRangerConfigPath);if(!_0x16fd52[_0x347460(0x1e9)](existsSync,_0xc0234b))return{};try{const _0x411511=await _0x16fd52[_0x347460(0x1d8)](readFile,_0xc0234b,_0x16fd52[_0x347460(0x1e5)]),_0x2e7f0a=JSON['parse'](_0x411511);if(!_0x2e7f0a||_0x16fd52[_0x347460(0x1e4)](typeof _0x2e7f0a,_0x347460(0x1d3))||Array[_0x347460(0x1df)](_0x2e7f0a))return{};const _0x176682={},_0x5e15c5=_0x2e7f0a[_0x347460(0x1dc)];return typeof _0x5e15c5===_0x16fd52['IOmhi']&&(_0x176682[_0x347460(0x1dc)]=_0x5e15c5),_0x176682;}catch(_0x556918){const _0x2172e8=_0x16fd52['HVenO'](_0x556918,Error)?_0x556918[_0x347460(0x1d9)]:_0x16fd52[_0x347460(0x1e2)](String,_0x556918);return console['warn'](_0x347460(0x1d1)+_0xc0234b+':\x20'+_0x2172e8),{};}}
@@ -1 +1 @@
1
- function _0x2fab(){const _0xf38434=['468vQicRK','39645OBXXcM','34328lOvJPF','523512akwDut','132FBFAWb','root','8MYZsuv','uFXcx','gmuEd','902684ZwekBp','.git','22nGFdSg','1525707rhOvQo','vdJnX','398790czTjYz','RjKbz','100odhYgj','rtFCH','IJBop','5153ULnPfm','XjUKS','.ranger'];_0x2fab=function(){return _0xf38434;};return _0x2fab();}(function(_0x494172,_0x4bd741){const _0x1daa4a=_0x5163,_0x12e189=_0x494172();while(!![]){try{const _0x46a208=-parseInt(_0x1daa4a(0x112))/0x1*(parseInt(_0x1daa4a(0x10a))/0x2)+-parseInt(_0x1daa4a(0x10b))/0x3+parseInt(_0x1daa4a(0x108))/0x4+parseInt(_0x1daa4a(0x100))/0x5*(parseInt(_0x1daa4a(0xff))/0x6)+parseInt(_0x1daa4a(0x101))/0x7*(-parseInt(_0x1daa4a(0x105))/0x8)+parseInt(_0x1daa4a(0x10d))/0x9*(-parseInt(_0x1daa4a(0x10f))/0xa)+parseInt(_0x1daa4a(0x102))/0xb*(parseInt(_0x1daa4a(0x103))/0xc);if(_0x46a208===_0x4bd741)break;else _0x12e189['push'](_0x12e189['shift']());}catch(_0x92d5dd){_0x12e189['push'](_0x12e189['shift']());}}}(_0x2fab,0x56855));import{dirname,join,parse}from'path';import{existsSync}from'fs';function _0x5163(_0x184225,_0x520277){_0x184225=_0x184225-0xff;const _0x2fab0c=_0x2fab();let _0x516365=_0x2fab0c[_0x184225];return _0x516365;}import{homedir}from'os';export function getRangerRoot(){const _0x866094=_0x5163,_0x3f9f20={'RjKbz':function(_0x45e108,_0x19c05e){return _0x45e108(_0x19c05e);},'zianc':function(_0x17215a,_0x38ac4b){return _0x17215a!==_0x38ac4b;},'QKriO':function(_0x8089bf,_0x49caea){return _0x8089bf(_0x49caea);},'fDUiz':function(_0x3fa7b1,_0x5b6c89,_0x12893d){return _0x3fa7b1(_0x5b6c89,_0x12893d);},'XjUKS':'.ranger','rtFCH':function(_0x29623f,_0x2a3d5b){return _0x29623f(_0x2a3d5b);}};let _0x25fadd=process['cwd']();const _0x25e8e4=_0x3f9f20[_0x866094(0x10e)](parse,_0x25fadd)[_0x866094(0x104)];while(_0x3f9f20['zianc'](_0x25fadd,_0x25e8e4)){if(_0x3f9f20['QKriO'](existsSync,_0x3f9f20['fDUiz'](join,_0x25fadd,_0x3f9f20[_0x866094(0x113)])))return _0x25fadd;_0x25fadd=dirname(_0x25fadd);}if(_0x3f9f20[_0x866094(0x110)](existsSync,join(_0x25e8e4,_0x3f9f20['XjUKS'])))return _0x25e8e4;const _0x885cbf=findGitRoot();if(_0x885cbf)return _0x885cbf;return process['cwd']();}export function getRangerDir(){const _0x21de5b=_0x5163,_0x44a674={'vdJnX':function(_0xa00ac5){return _0xa00ac5();}};return join(_0x44a674[_0x21de5b(0x10c)](getRangerRoot),_0x21de5b(0x114));}export function findGitRoot(){const _0x17ff3e=_0x5163,_0x2e1623={'UooUb':function(_0xe51672,_0x3ca893){return _0xe51672(_0x3ca893);},'CPSEj':function(_0x4af735,_0x435c90){return _0x4af735(_0x435c90);},'IJBop':function(_0x36d229,_0x5a58ea){return _0x36d229(_0x5a58ea);},'essQb':'.git'};let _0x37218a=process['cwd']();const _0x3987a4=_0x2e1623['UooUb'](parse,_0x37218a)['root'];while(_0x37218a!==_0x3987a4){if(_0x2e1623['CPSEj'](existsSync,join(_0x37218a,_0x17ff3e(0x109))))return _0x37218a;_0x37218a=dirname(_0x37218a);}if(_0x2e1623[_0x17ff3e(0x111)](existsSync,join(_0x3987a4,_0x2e1623['essQb'])))return _0x3987a4;return null;}export function getRangerHomeDir(){const _0x45baf0=_0x5163,_0x29c98f={'uFXcx':function(_0x47230f,_0x4fb981,_0x187578){return _0x47230f(_0x4fb981,_0x187578);},'gmuEd':function(_0x1ae4a5){return _0x1ae4a5();}};return _0x29c98f[_0x45baf0(0x106)](join,_0x29c98f[_0x45baf0(0x107)](homedir),_0x45baf0(0x114));}
1
+ (function(_0x575ef3,_0x3696f1){const _0x1c75f2=_0xedc9,_0x50af57=_0x575ef3();while(!![]){try{const _0x472ec1=-parseInt(_0x1c75f2(0xa4))/0x1*(-parseInt(_0x1c75f2(0xa3))/0x2)+-parseInt(_0x1c75f2(0xab))/0x3*(parseInt(_0x1c75f2(0xb0))/0x4)+-parseInt(_0x1c75f2(0xa5))/0x5*(-parseInt(_0x1c75f2(0xb6))/0x6)+parseInt(_0x1c75f2(0xb8))/0x7*(parseInt(_0x1c75f2(0xa6))/0x8)+parseInt(_0x1c75f2(0xac))/0x9*(-parseInt(_0x1c75f2(0xa1))/0xa)+parseInt(_0x1c75f2(0xb7))/0xb*(parseInt(_0x1c75f2(0xa7))/0xc)+parseInt(_0x1c75f2(0xa9))/0xd*(-parseInt(_0x1c75f2(0xaa))/0xe);if(_0x472ec1===_0x3696f1)break;else _0x50af57['push'](_0x50af57['shift']());}catch(_0x653341){_0x50af57['push'](_0x50af57['shift']());}}}(_0x8855,0x6bc1c));function _0xedc9(_0x40db86,_0x41b2d8){_0x40db86=_0x40db86-0xa1;const _0x8855d3=_0x8855();let _0xedc996=_0x8855d3[_0x40db86];return _0xedc996;}import{dirname,join,parse}from'path';import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x580292=_0xedc9,_0x1acc51={'vcTUa':'.ranger','jEVmG':function(_0x1626bf,_0x2429c9,_0x49d447){return _0x1626bf(_0x2429c9,_0x49d447);},'zmRmH':function(_0x27c22a){return _0x27c22a();}};let _0x265b8b=process[_0x580292(0xa2)]();const _0xbcb5d2=parse(_0x265b8b)['root'];while(_0x265b8b!==_0xbcb5d2){if(existsSync(join(_0x265b8b,_0x1acc51[_0x580292(0xad)])))return _0x265b8b;_0x265b8b=dirname(_0x265b8b);}if(existsSync(_0x1acc51[_0x580292(0xaf)](join,_0xbcb5d2,_0x1acc51[_0x580292(0xad)])))return _0xbcb5d2;const _0x1e3859=_0x1acc51['zmRmH'](findGitRoot);if(_0x1e3859)return _0x1e3859;return process[_0x580292(0xa2)]();}export function getRangerDir(){const _0x25183c=_0xedc9,_0x52b964={'SgHJe':function(_0xddd0b7,_0x3e8a26,_0x4cbf88){return _0xddd0b7(_0x3e8a26,_0x4cbf88);},'BCQYh':function(_0x31c86e){return _0x31c86e();},'UltTo':_0x25183c(0xb4)};return _0x52b964['SgHJe'](join,_0x52b964[_0x25183c(0xb3)](getRangerRoot),_0x52b964['UltTo']);}export function findGitRoot(){const _0x97272a=_0xedc9,_0x55482b={'TYCzN':function(_0x49c53f,_0x1788cb){return _0x49c53f!==_0x1788cb;},'pHePA':function(_0x754eee,_0xd95de2){return _0x754eee(_0xd95de2);},'Npsbd':function(_0x233db5,_0x51c8fc,_0xdc3196){return _0x233db5(_0x51c8fc,_0xdc3196);},'FSLfi':'.git'};let _0x308b2e=process[_0x97272a(0xa2)]();const _0xef2d41=parse(_0x308b2e)[_0x97272a(0xb1)];while(_0x55482b[_0x97272a(0xae)](_0x308b2e,_0xef2d41)){if(_0x55482b[_0x97272a(0xb5)](existsSync,_0x55482b[_0x97272a(0xa8)](join,_0x308b2e,'.git')))return _0x308b2e;_0x308b2e=dirname(_0x308b2e);}if(existsSync(join(_0xef2d41,_0x55482b[_0x97272a(0xb9)])))return _0xef2d41;return null;}function _0x8855(){const _0x1d77e8=['5173164JFGUVf','Npsbd','310297NxRfvs','462prBotq','3YyTsuL','27DaWkxD','vcTUa','TYCzN','jEVmG','1359388NCrpGW','root','anagL','BCQYh','.ranger','pHePA','6ObvCRA','11YANERC','189lYnEeR','FSLfi','324730icoSNN','cwd','3728qVJQrn','197wfIXpI','4275385mwnUGd','3832fdvTDH'];_0x8855=function(){return _0x1d77e8;};return _0x8855();}export function getRangerHomeDir(){const _0x5c2c6e=_0xedc9,_0x14ec09={'anagL':_0x5c2c6e(0xb4)};return join(homedir(),_0x14ec09[_0x5c2c6e(0xb2)]);}
@@ -1 +1 @@
1
- (function(_0x50704e,_0x4ef7d7){const _0x1c79ad=_0x29d8,_0x278126=_0x50704e();while(!![]){try{const _0x255fe4=parseInt(_0x1c79ad(0x104))/0x1+-parseInt(_0x1c79ad(0x10c))/0x2+-parseInt(_0x1c79ad(0x105))/0x3+-parseInt(_0x1c79ad(0x103))/0x4*(-parseInt(_0x1c79ad(0x10d))/0x5)+-parseInt(_0x1c79ad(0x10b))/0x6*(-parseInt(_0x1c79ad(0x109))/0x7)+-parseInt(_0x1c79ad(0x101))/0x8+parseInt(_0x1c79ad(0x107))/0x9;if(_0x255fe4===_0x4ef7d7)break;else _0x278126['push'](_0x278126['shift']());}catch(_0x1fe7f6){_0x278126['push'](_0x278126['shift']());}}}(_0x44fd,0x51cc3));function _0x29d8(_0x203d11,_0x2427de){_0x203d11=_0x203d11-0x100;const _0x44fd36=_0x44fd();let _0x29d864=_0x44fd36[_0x203d11];return _0x29d864;}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x44e984,_0x4b20fa){const _0x373866=_0x29d8,_0x1c02cd={'IdIgJ':function(_0x555ddf){return _0x555ddf();},'qPoHV':function(_0x429bd0,_0x3b62e8){return _0x429bd0(_0x3b62e8);},'HZKYe':function(_0x33ee76,_0x4fd467){return _0x33ee76*_0x4fd467;},'oRJCw':function(_0x3acf18,_0x591be5){return _0x3acf18+_0x591be5;}},_0xdf8d12=_0x4b20fa?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x3f7ca1=_0x4b20fa?.[_0x373866(0x108)]??DEFAULT_BASE_DELAY_MS;let _0x534517;for(let _0xbde9e5=0x0;_0xbde9e5<=_0xdf8d12;_0xbde9e5++){try{return await _0x1c02cd[_0x373866(0x100)](_0x44e984);}catch(_0x3d18c4){_0x534517=_0x3d18c4 instanceof Error?_0x3d18c4:new Error(_0x1c02cd[_0x373866(0x10e)](String,_0x3d18c4));if(_0xbde9e5<_0xdf8d12){const _0x49c908=_0x1c02cd[_0x373866(0x106)](_0x3f7ca1,Math[_0x373866(0x10a)](0x2,_0xbde9e5));_0x4b20fa?.['label']&&console['error'](_0x4b20fa['label']+'\x20failed\x20(attempt\x20'+_0x1c02cd['oRJCw'](_0xbde9e5,0x1)+'/'+(_0xdf8d12+0x1)+_0x373866(0x102)+_0x49c908+'ms...'),await new Promise(_0x1e981e=>setTimeout(_0x1e981e,_0x49c908));}}}throw _0x534517;}function _0x44fd(){const _0x4fdc3a=['baseDelayMs','686AgpJaO','pow','38604zcVWeF','1312844RdmvgF','26515koQNwK','qPoHV','IdIgJ','164296GkLoGH','),\x20retrying\x20in\x20','144FParWN','208475sYcXlK','1001691dEybkW','HZKYe','2843856zExWeN'];_0x44fd=function(){return _0x4fdc3a;};return _0x44fd();}
1
+ (function(_0xc0cf37,_0x5f3b72){const _0x3286e7=_0xb2d3,_0x227bdf=_0xc0cf37();while(!![]){try{const _0x54422f=-parseInt(_0x3286e7(0x1bf))/0x1*(-parseInt(_0x3286e7(0x1c7))/0x2)+parseInt(_0x3286e7(0x1c9))/0x3+parseInt(_0x3286e7(0x1c1))/0x4+-parseInt(_0x3286e7(0x1c4))/0x5*(parseInt(_0x3286e7(0x1c0))/0x6)+-parseInt(_0x3286e7(0x1cc))/0x7+parseInt(_0x3286e7(0x1cb))/0x8+-parseInt(_0x3286e7(0x1c6))/0x9;if(_0x54422f===_0x5f3b72)break;else _0x227bdf['push'](_0x227bdf['shift']());}catch(_0x227d7d){_0x227bdf['push'](_0x227bdf['shift']());}}}(_0x240d,0x2ea11));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x240d(){const _0x20c26f=['baseDelayMs','1VphSIw','222pJRDAx','975784yCjCYb','maxRetries','label','50095fHYure','ms...','2454606YqKqAt','277918CuIsyI','pow','1140072hWMFRg','error','967984OukEDA','346479dVrXwX'];_0x240d=function(){return _0x20c26f;};return _0x240d();}function _0xb2d3(_0x3c1c4e,_0x47ff5b){_0x3c1c4e=_0x3c1c4e-0x1bf;const _0x240d33=_0x240d();let _0xb2d3df=_0x240d33[_0x3c1c4e];return _0xb2d3df;}export async function withRetry(_0x1f0f43,_0x258048){const _0x2cfc8b=_0xb2d3,_0x41866f={'TKQls':function(_0x7f5445,_0x3af576){return _0x7f5445<=_0x3af576;},'yYAqp':function(_0xe7ae3c){return _0xe7ae3c();},'XqDHt':function(_0x39ffe8,_0x3f494f){return _0x39ffe8 instanceof _0x3f494f;},'CEkej':function(_0x2687f0,_0x280961){return _0x2687f0(_0x280961);}},_0x25f77d=_0x258048?.[_0x2cfc8b(0x1c2)]??DEFAULT_MAX_RETRIES,_0x2e4956=_0x258048?.[_0x2cfc8b(0x1cd)]??DEFAULT_BASE_DELAY_MS;let _0x4b9861;for(let _0xea201e=0x0;_0x41866f['TKQls'](_0xea201e,_0x25f77d);_0xea201e++){try{return await _0x41866f['yYAqp'](_0x1f0f43);}catch(_0x24dec4){_0x4b9861=_0x41866f['XqDHt'](_0x24dec4,Error)?_0x24dec4:new Error(_0x41866f['CEkej'](String,_0x24dec4));if(_0xea201e<_0x25f77d){const _0x12c9c9=_0x2e4956*Math[_0x2cfc8b(0x1c8)](0x2,_0xea201e);_0x258048?.['label']&&console[_0x2cfc8b(0x1ca)](_0x258048[_0x2cfc8b(0x1c3)]+'\x20failed\x20(attempt\x20'+(_0xea201e+0x1)+'/'+(_0x25f77d+0x1)+'),\x20retrying\x20in\x20'+_0x12c9c9+_0x2cfc8b(0x1c5)),await new Promise(_0x3e2f3a=>setTimeout(_0x3e2f3a,_0x12c9c9));}}}throw _0x4b9861;}
@@ -1 +1 @@
1
- const _0x5d4704=_0x3d47;(function(_0x1520b6,_0x1bfbd3){const _0x26a199=_0x3d47,_0x383c13=_0x1520b6();while(!![]){try{const _0x2580f3=parseInt(_0x26a199(0x13d))/0x1*(parseInt(_0x26a199(0x166))/0x2)+parseInt(_0x26a199(0x152))/0x3+parseInt(_0x26a199(0x15f))/0x4*(parseInt(_0x26a199(0x13b))/0x5)+parseInt(_0x26a199(0x147))/0x6+parseInt(_0x26a199(0x15d))/0x7*(-parseInt(_0x26a199(0x169))/0x8)+parseInt(_0x26a199(0x146))/0x9+parseInt(_0x26a199(0x165))/0xa*(-parseInt(_0x26a199(0x156))/0xb);if(_0x2580f3===_0x1bfbd3)break;else _0x383c13['push'](_0x383c13['shift']());}catch(_0x389da6){_0x383c13['push'](_0x383c13['shift']());}}}(_0xda68,0x3d316));import*as _0x49ec3a from'fs';import*as _0x3a596b from'path';import*as _0x14f13d from'os';import{execSync}from'child_process';const CACHE_FILE=_0x3a596b[_0x5d4704(0x15e)](_0x14f13d['homedir'](),_0x5d4704(0x13c),_0x5d4704(0x15c));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x38e44f=_0x5d4704,_0x48fa5c={'tULmI':'utf-8','QGdGL':function(_0x2e47a0){return _0x2e47a0();}};try{if(_0x49ec3a[_0x38e44f(0x153)](CACHE_FILE)){const _0x5bdbd2=JSON['parse'](_0x49ec3a['readFileSync'](CACHE_FILE,_0x48fa5c['tULmI']));return{'version':0x3,'sessions':_0x5bdbd2[_0x38e44f(0x14b)]||{},'branches':_0x5bdbd2['branches']||{},'lastEnabledSessionClearedAt':_0x5bdbd2['lastEnabledSessionClearedAt']};}}catch{}return _0x48fa5c[_0x38e44f(0x167)](createEmptyCache);}function _0xda68(){const _0x456500=['1815228NUTZzX','QUDRg','htamr','pipe','sessions','xZGDF','lastStopReminderAt','wFpEq','featureId','lastEnabledSessionClearedAt','trim','689541DlBkXd','existsSync','prompted','pMVqU','11asKrOe','tyFFX','now','gCHYb','branches','FILof','.ranger_cache.json','999411QeZXMn','join','1268vBBiLW','main','utf-8','enabled','ZMUIC','gUYXF','8174980ZlLgkn','474766JISDlb','QGdGL','cThJk','16vOTKUf','1030fcwfsb','.claude','2kILgxm','CJegF','IlRbB','aveQN','rLYje','TIMff','git\x20rev-parse\x20--abbrev-ref\x20HEAD','zAFfS','master','2531133IKwGLy'];_0xda68=function(){return _0x456500;};return _0xda68();}function _0x3d47(_0x3930ac,_0x36b001){_0x3930ac=_0x3930ac-0x13b;const _0xda68aa=_0xda68();let _0x3d476c=_0xda68aa[_0x3930ac];return _0x3d476c;}function saveCache(_0xd7f610){try{const _0x2ae428=_0x3a596b['dirname'](CACHE_FILE);!_0x49ec3a['existsSync'](_0x2ae428)&&_0x49ec3a['mkdirSync'](_0x2ae428,{'recursive':!![]}),_0x49ec3a['writeFileSync'](CACHE_FILE,JSON['stringify'](_0xd7f610,null,0x2));}catch{}}export function getCurrentBranch(){const _0x5c5a8c=_0x5d4704,_0xdc092b={'tIOYa':_0x5c5a8c(0x161),'TIMff':_0x5c5a8c(0x14a),'elrXQ':'HEAD'};try{const _0x34b71e=execSync(_0x5c5a8c(0x143),{'encoding':_0xdc092b['tIOYa'],'stdio':[_0xdc092b[_0x5c5a8c(0x142)],_0xdc092b[_0x5c5a8c(0x142)],_0xdc092b['TIMff']]})[_0x5c5a8c(0x151)]();if(!_0x34b71e||_0x34b71e===_0xdc092b['elrXQ'])return null;return _0x34b71e;}catch{return null;}}export function enableBranch(_0x4f5be1){const _0x2276f8=_0x5d4704,_0x4b1947={'ZvvkH':function(_0x5e2b50,_0x223078){return _0x5e2b50(_0x223078);}},_0x52b94c=loadCache();_0x52b94c[_0x2276f8(0x15a)][_0x4f5be1]=!![],_0x4b1947['ZvvkH'](saveCache,_0x52b94c);}export function disableBranch(_0x103fda){const _0x29e715={'dtCWu':function(_0x57566d){return _0x57566d();},'DnGID':function(_0x425545,_0x2701bc){return _0x425545(_0x2701bc);}},_0x1597d6=_0x29e715['dtCWu'](loadCache);delete _0x1597d6['branches'][_0x103fda],_0x29e715['DnGID'](saveCache,_0x1597d6);}export function isBranchEnabled(_0x12775e){const _0x3db233=_0x5d4704,_0x3faa51={'jqAxL':function(_0x4dadac,_0x1625d1){return _0x4dadac===_0x1625d1;}},_0xbd9bbd=loadCache();return _0x3faa51['jqAxL'](_0xbd9bbd[_0x3db233(0x15a)][_0x12775e],!![]);}function getOrCreateSession(_0x34491a,_0x159739){const _0x151e69=_0x5d4704;return!_0x34491a['sessions'][_0x159739]&&(_0x34491a[_0x151e69(0x14b)][_0x159739]={}),_0x34491a['sessions'][_0x159739];}export function enableSession(_0xbd4c3c){const _0xb3ceb5=_0x5d4704,_0x51a3b5={'FILof':function(_0x33b3c4){return _0x33b3c4();},'aveQN':function(_0x4c2d83,_0x44cd87){return _0x4c2d83!==_0x44cd87;},'pMVqU':function(_0x13119b,_0x4fa549){return _0x13119b(_0x4fa549);}},_0x44a176=_0x51a3b5[_0xb3ceb5(0x15b)](loadCache),_0x2599f7=getOrCreateSession(_0x44a176,_0xbd4c3c);_0x2599f7[_0xb3ceb5(0x162)]=!![];const _0x16b107=_0x51a3b5['FILof'](getCurrentBranch);_0x16b107&&_0x51a3b5[_0xb3ceb5(0x140)](_0x16b107,'main')&&_0x51a3b5['aveQN'](_0x16b107,_0xb3ceb5(0x145))&&(_0x44a176[_0xb3ceb5(0x15a)][_0x16b107]=!![],_0x2599f7['currentBranch']=_0x16b107),_0x51a3b5[_0xb3ceb5(0x155)](saveCache,_0x44a176);}export function isSessionEnabled(_0x9ceef0){const _0x51e19f=_0x5d4704,_0x471518={'UjDUp':function(_0x4af69e,_0xbbfae9){return _0x4af69e===_0xbbfae9;},'QUDRg':'master','FIHuH':function(_0x24a151,_0x21e20c){return _0x24a151===_0x21e20c;},'xZGDF':function(_0x59a04b,_0x2da13e){return _0x59a04b||_0x2da13e;}},_0x2e0e42=loadCache(),_0x336cb7=getCurrentBranch();if(!_0x336cb7||_0x336cb7===_0x51e19f(0x160)||_0x471518['UjDUp'](_0x336cb7,_0x471518[_0x51e19f(0x148)]))return _0x2e0e42['sessions'][_0x9ceef0]?.['enabled']===!![];const _0x4c7af7=_0x2e0e42[_0x51e19f(0x15a)][_0x336cb7]===!![],_0x233f40=_0x471518['FIHuH'](_0x2e0e42['sessions'][_0x9ceef0]?.['enabled'],!![]);return _0x471518[_0x51e19f(0x14c)](_0x4c7af7,_0x233f40);}export function disableSession(_0x1e7002){const _0x147ddc=_0x5d4704,_0x1e3727=loadCache(),_0x2e4586=getOrCreateSession(_0x1e3727,_0x1e7002);_0x2e4586[_0x147ddc(0x162)]=![],saveCache(_0x1e3727);}export function updateBranchTracking(_0x39d199){const _0x1ac070=_0x5d4704,_0x10356d={'IlRbB':function(_0x118fbc){return _0x118fbc();},'tyFFX':function(_0x2ef187,_0x1bcebc){return _0x2ef187===_0x1bcebc;},'gCHYb':'main','rLYje':function(_0x485872,_0xaca9cb){return _0x485872(_0xaca9cb);}},_0x1da79e=_0x10356d[_0x1ac070(0x13f)](loadCache),_0xcee4c4=_0x1da79e['sessions'][_0x39d199];if(!_0xcee4c4?.[_0x1ac070(0x162)])return;const _0x350792=getCurrentBranch();if(!_0x350792||_0x10356d['tyFFX'](_0x350792,_0x10356d[_0x1ac070(0x159)])||_0x10356d[_0x1ac070(0x157)](_0x350792,'master'))return;_0xcee4c4['currentBranch']!==_0x350792&&(_0x1da79e[_0x1ac070(0x15a)][_0x350792]=!![],_0xcee4c4['currentBranch']=_0x350792,_0x10356d[_0x1ac070(0x141)](saveCache,_0x1da79e));}export function initBranchTracking(_0x125636){const _0x4b5a3d=_0x5d4704,_0x3318f0={'ctKJB':'main','vLmfs':'master','cThJk':function(_0x1e0d76,_0x2d40f2){return _0x1e0d76===_0x2d40f2;}},_0xa2f7a9=loadCache(),_0xeb5f8c=getCurrentBranch();if(!_0xeb5f8c||_0xeb5f8c===_0x3318f0['ctKJB']||_0xeb5f8c===_0x3318f0['vLmfs'])return;if(_0x3318f0[_0x4b5a3d(0x168)](_0xa2f7a9['branches'][_0xeb5f8c],!![])){const _0x44b5da=getOrCreateSession(_0xa2f7a9,_0x125636);_0x44b5da[_0x4b5a3d(0x162)]=!![],_0x44b5da['currentBranch']=_0xeb5f8c,saveCache(_0xa2f7a9);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x136593){const _0x1d6f5c=_0x5d4704,_0x322fdd={'ZMUIC':function(_0x45ee34){return _0x45ee34();}},_0x1bfbff=_0x322fdd[_0x1d6f5c(0x163)](loadCache),_0x302a2c=_0x1bfbff['sessions'][_0x136593];_0x302a2c?.[_0x1d6f5c(0x162)]&&(_0x1bfbff[_0x1d6f5c(0x150)]=Date['now'](),saveCache(_0x1bfbff));}export function shouldAutoEnableAfterClear(_0x251877){const _0x462033=_0x5d4704,_0x389946={'htamr':function(_0x3745de,_0x32769c){return _0x3745de-_0x32769c;},'RanES':function(_0x4b27c9,_0x4a93c2){return _0x4b27c9<=_0x4a93c2;}};if(_0x251877!=='clear')return![];const _0x1a6a7a=loadCache(),_0x3079eb=_0x1a6a7a[_0x462033(0x150)];if(!_0x3079eb)return![];const _0x5b21b8=_0x389946[_0x462033(0x149)](Date['now'](),_0x3079eb);return _0x389946['RanES'](_0x5b21b8,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0xc83e03){const _0x33a38c=_0x5d4704,_0x24c057={'TOYTo':function(_0x4e9e9a,_0x4b30e7){return _0x4e9e9a!==_0x4b30e7;},'pCZhx':function(_0x4eecdd,_0xc96173){return _0x4eecdd(_0xc96173);}},_0x31e9b7=loadCache(),_0x17526b=getOrCreateSession(_0x31e9b7,_0xc83e03);_0x17526b['enabled']=!![];const _0x140c5f=getCurrentBranch();_0x140c5f&&_0x24c057['TOYTo'](_0x140c5f,_0x33a38c(0x160))&&_0x140c5f!==_0x33a38c(0x145)&&(_0x17526b['currentBranch']=_0x140c5f),delete _0x31e9b7['lastEnabledSessionClearedAt'],_0x24c057['pCZhx'](saveCache,_0x31e9b7);}export function registerSession(_0x5ce388,_0xdf9758){const _0x5e7a8e={'HCHOe':function(_0x5c49cc){return _0x5c49cc();},'KnMQV':function(_0x39c056,_0x365afe){return _0x39c056(_0x365afe);}},_0x1d9839=_0x5e7a8e['HCHOe'](loadCache),_0x558ab1=getOrCreateSession(_0x1d9839,_0x5ce388);_0x558ab1['featureId']=_0xdf9758,_0x558ab1['registeredAt']=new Date()['toISOString'](),_0x5e7a8e['KnMQV'](saveCache,_0x1d9839);}export function getSessionEntry(_0x208acf){const _0x302f2f=_0x5d4704,_0x265056=loadCache(),_0x33f6b8=_0x265056['sessions'][_0x208acf];if(_0x33f6b8?.['featureId']&&_0x33f6b8?.['registeredAt'])return{'featureId':_0x33f6b8[_0x302f2f(0x14f)],'registeredAt':_0x33f6b8['registeredAt']};return null;}export function unregisterSession(_0x3b69e0){const _0x6b9cb0=_0x5d4704,_0x37326e={'FaaBJ':function(_0x56dda2){return _0x56dda2();},'CJegF':function(_0x5a0415,_0x5072ee){return _0x5a0415(_0x5072ee);}},_0x237509=_0x37326e['FaaBJ'](loadCache),_0x4a96e4=_0x237509[_0x6b9cb0(0x14b)][_0x3b69e0];_0x4a96e4&&(delete _0x4a96e4['featureId'],delete _0x4a96e4['registeredAt'],_0x37326e[_0x6b9cb0(0x13e)](saveCache,_0x237509));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x183452){const _0x45ebf4=_0x5d4704,_0x2de09e={'gUYXF':function(_0x19c527){return _0x19c527();},'TOKoc':function(_0x4cb454,_0x22bf4e){return _0x4cb454>=_0x22bf4e;},'bloEg':function(_0x52834e,_0x243286){return _0x52834e(_0x243286);}},_0x56ffdb=_0x2de09e[_0x45ebf4(0x164)](loadCache),_0xe9df8f=getOrCreateSession(_0x56ffdb,_0x183452),_0x5983ae=_0xe9df8f['lastPlanReminderAt']||0x0,_0xbabb96=Date['now']();if(_0x2de09e['TOKoc'](_0xbabb96-_0x5983ae,PLAN_REMINDER_INTERVAL_MS))return _0xe9df8f['lastPlanReminderAt']=_0xbabb96,_0x2de09e['bloEg'](saveCache,_0x56ffdb),!![];return![];}export function shouldShowStopReminder(_0x2c6c0a){const _0x5eae3b=_0x5d4704,_0x58d0a9={'NwVBi':function(_0xf42f45,_0x531016){return _0xf42f45-_0x531016;},'zAFfS':function(_0x1405a5,_0x6088d5){return _0x1405a5(_0x6088d5);}},_0x1a4539=loadCache(),_0x29f7e1=getOrCreateSession(_0x1a4539,_0x2c6c0a),_0x1d6ebc=_0x29f7e1[_0x5eae3b(0x14d)]||0x0,_0x31f907=Date[_0x5eae3b(0x158)]();if(_0x58d0a9['NwVBi'](_0x31f907,_0x1d6ebc)>=STOP_REMINDER_INTERVAL_MS)return _0x29f7e1['lastStopReminderAt']=_0x31f907,_0x58d0a9[_0x5eae3b(0x144)](saveCache,_0x1a4539),!![];return![];}export function hasSessionBeenPrompted(_0x1ee6f1){const _0x1593cf=_0x5d4704,_0x17eb57={'wFpEq':function(_0x57253b){return _0x57253b();}},_0x25786d=_0x17eb57[_0x1593cf(0x14e)](loadCache);return _0x25786d['sessions'][_0x1ee6f1]?.[_0x1593cf(0x154)]===!![];}export function markSessionPrompted(_0xc1102){const _0x1dad25=loadCache(),_0x526e2c=getOrCreateSession(_0x1dad25,_0xc1102);_0x526e2c['prompted']=!![],saveCache(_0x1dad25);}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0xa20fdd=_0x3382;(function(_0x4f9df0,_0x207b3e){const _0x27ca27=_0x3382,_0x270610=_0x4f9df0();while(!![]){try{const _0x4a35e8=parseInt(_0x27ca27(0x1eb))/0x1+-parseInt(_0x27ca27(0x1f0))/0x2+parseInt(_0x27ca27(0x1d8))/0x3+-parseInt(_0x27ca27(0x1e8))/0x4+parseInt(_0x27ca27(0x206))/0x5+parseInt(_0x27ca27(0x203))/0x6*(-parseInt(_0x27ca27(0x1ea))/0x7)+parseInt(_0x27ca27(0x204))/0x8;if(_0x4a35e8===_0x207b3e)break;else _0x270610['push'](_0x270610['shift']());}catch(_0x25d82f){_0x270610['push'](_0x270610['shift']());}}}(_0x2dca,0x3990c));function _0x2dca(){const _0x273c40=['RhTyU','MOtds','lastPlanReminderAt','yteDp','registeredAt','FQjyz','git\x20rev-parse\x20--abbrev-ref\x20HEAD','stringify','12YzqDqW','3897280doFZDz','main','170315IXnrcS','562188YRkyFz','branches','existsSync','whvmZ','vnKOk','KjOZt','prompted','sessions','master','mkdirSync','trim','VVeRC','YWjax','XTRzc','NekmN','NyhhH','1691068iJFpSN','uZsZX','1038674VpddtW','354840bWpxpS','enabled','JNWTu','currentBranch','homedir','216280PrEjWF','featureId','now','toISOString','qeSfe','oKbtx','FKwLL','HEAD','lastStopReminderAt','WPeyS','lastEnabledSessionClearedAt'];_0x2dca=function(){return _0x273c40;};return _0x2dca();}import*as _0x189c73 from'fs';import*as _0x84f579 from'path';import*as _0x4f2b67 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x84f579['join'](_0x4f2b67[_0xa20fdd(0x1ef)](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x3ed425=_0xa20fdd,_0x1bae0c={'qeSfe':function(_0x1cf16c){return _0x1cf16c();}};try{if(_0x189c73[_0x3ed425(0x1da)](CACHE_FILE)){const _0xf2f6e6=JSON['parse'](_0x189c73['readFileSync'](CACHE_FILE,'utf-8'));return{'version':0x3,'sessions':_0xf2f6e6['sessions']||{},'branches':_0xf2f6e6[_0x3ed425(0x1d9)]||{},'lastEnabledSessionClearedAt':_0xf2f6e6['lastEnabledSessionClearedAt']};}}catch{}return _0x1bae0c[_0x3ed425(0x1f4)](createEmptyCache);}function saveCache(_0x52a868){const _0x4fd908=_0xa20fdd;try{const _0x58192a=_0x84f579['dirname'](CACHE_FILE);!_0x189c73['existsSync'](_0x58192a)&&_0x189c73[_0x4fd908(0x1e1)](_0x58192a,{'recursive':!![]}),_0x189c73['writeFileSync'](CACHE_FILE,JSON[_0x4fd908(0x202)](_0x52a868,null,0x2));}catch{}}export function getCurrentBranch(){const _0xf5ff75=_0xa20fdd,_0x2e479e={'cJTOW':function(_0x52233a,_0x1a1d08,_0x1a14c3){return _0x52233a(_0x1a1d08,_0x1a14c3);},'RhTyU':'pipe','MSOKq':_0xf5ff75(0x1f7)};try{const _0x37f8ea=_0x2e479e['cJTOW'](execSync,_0xf5ff75(0x201),{'encoding':'utf-8','stdio':[_0x2e479e[_0xf5ff75(0x1fb)],_0x2e479e['RhTyU'],'pipe']})[_0xf5ff75(0x1e2)]();if(!_0x37f8ea||_0x37f8ea===_0x2e479e['MSOKq'])return null;return _0x37f8ea;}catch{return null;}}export function enableBranch(_0x552ca8){const _0x17a600={'KlqEi':function(_0x2e8964){return _0x2e8964();},'JjKzb':function(_0x21dacf,_0x8c771b){return _0x21dacf(_0x8c771b);}},_0x4f72c7=_0x17a600['KlqEi'](loadCache);_0x4f72c7['branches'][_0x552ca8]=!![],_0x17a600['JjKzb'](saveCache,_0x4f72c7);}export function disableBranch(_0x1c29e2){const _0xcf2db1=_0xa20fdd,_0x5b43f3={'NyhhH':function(_0x3f3001,_0x4995e2){return _0x3f3001(_0x4995e2);}},_0x433524=loadCache();delete _0x433524[_0xcf2db1(0x1d9)][_0x1c29e2],_0x5b43f3[_0xcf2db1(0x1e7)](saveCache,_0x433524);}export function isBranchEnabled(_0x267849){const _0x16ad63={'FltIs':function(_0x31b9c3){return _0x31b9c3();},'oRETq':function(_0x41330f,_0x4f0ca0){return _0x41330f===_0x4f0ca0;}},_0x47eea=_0x16ad63['FltIs'](loadCache);return _0x16ad63['oRETq'](_0x47eea['branches'][_0x267849],!![]);}function getOrCreateSession(_0x5cbf2b,_0x427c73){const _0x24ccc4=_0xa20fdd;return!_0x5cbf2b[_0x24ccc4(0x1df)][_0x427c73]&&(_0x5cbf2b[_0x24ccc4(0x1df)][_0x427c73]={}),_0x5cbf2b['sessions'][_0x427c73];}export function enableSession(_0x1c2629){const _0x3284d0=_0xa20fdd,_0x44de05=loadCache(),_0x656943=getOrCreateSession(_0x44de05,_0x1c2629);_0x656943['enabled']=!![];const _0x43074c=getCurrentBranch();_0x43074c&&_0x43074c!=='main'&&_0x43074c!==_0x3284d0(0x1e0)&&(_0x44de05[_0x3284d0(0x1d9)][_0x43074c]=!![],_0x656943['currentBranch']=_0x43074c),saveCache(_0x44de05);}export function isSessionEnabled(_0x49173a){const _0xebc2fc=_0xa20fdd,_0x33a150={'qMkpw':function(_0x41fa14){return _0x41fa14();},'oKbtx':function(_0xe0d3a1,_0x287b7e){return _0xe0d3a1===_0x287b7e;},'OWBNL':function(_0x3076f6,_0x87b3a5){return _0x3076f6||_0x87b3a5;}},_0x178527=_0x33a150['qMkpw'](loadCache),_0x1e85e0=_0x33a150['qMkpw'](getCurrentBranch);if(!_0x1e85e0||_0x1e85e0===_0xebc2fc(0x205)||_0x1e85e0===_0xebc2fc(0x1e0))return _0x33a150[_0xebc2fc(0x1f5)](_0x178527['sessions'][_0x49173a]?.[_0xebc2fc(0x1ec)],!![]);const _0xadaffa=_0x178527[_0xebc2fc(0x1d9)][_0x1e85e0]===!![],_0x7818b1=_0x178527['sessions'][_0x49173a]?.['enabled']===!![];return _0x33a150['OWBNL'](_0xadaffa,_0x7818b1);}export function disableSession(_0x22eea0){const _0x275164=loadCache(),_0x5b34ea=getOrCreateSession(_0x275164,_0x22eea0);_0x5b34ea['enabled']=![],saveCache(_0x275164);}export function updateBranchTracking(_0x377e32){const _0xf3b834=_0xa20fdd,_0xf892bb={'WSmtz':function(_0x4a6d7a){return _0x4a6d7a();},'YWjax':function(_0x336b50,_0x4544d7){return _0x336b50===_0x4544d7;},'ptMCk':'main','vaEaS':'master','FKwLL':function(_0x5417c6,_0x3d9a3e){return _0x5417c6(_0x3d9a3e);}},_0x4a16d4=_0xf892bb['WSmtz'](loadCache),_0x435b8f=_0x4a16d4['sessions'][_0x377e32];if(!_0x435b8f?.['enabled'])return;const _0x111b03=getCurrentBranch();if(!_0x111b03||_0xf892bb[_0xf3b834(0x1e4)](_0x111b03,_0xf892bb['ptMCk'])||_0xf892bb['YWjax'](_0x111b03,_0xf892bb['vaEaS']))return;_0x435b8f[_0xf3b834(0x1ee)]!==_0x111b03&&(_0x4a16d4['branches'][_0x111b03]=!![],_0x435b8f[_0xf3b834(0x1ee)]=_0x111b03,_0xf892bb[_0xf3b834(0x1f6)](saveCache,_0x4a16d4));}export function initBranchTracking(_0x2d494b){const _0x379c04=_0xa20fdd,_0x29669b={'WPeyS':function(_0x5784ec,_0x4f7c40){return _0x5784ec===_0x4f7c40;},'NekmN':function(_0x428109,_0x4dde5b){return _0x428109===_0x4dde5b;},'kAFJD':function(_0x4fd37f,_0x4b6914,_0x14e034){return _0x4fd37f(_0x4b6914,_0x14e034);}},_0xb69740=loadCache(),_0x30991a=getCurrentBranch();if(!_0x30991a||_0x29669b[_0x379c04(0x1f9)](_0x30991a,'main')||_0x30991a==='master')return;if(_0x29669b[_0x379c04(0x1e6)](_0xb69740[_0x379c04(0x1d9)][_0x30991a],!![])){const _0x4ae596=_0x29669b['kAFJD'](getOrCreateSession,_0xb69740,_0x2d494b);_0x4ae596['enabled']=!![],_0x4ae596['currentBranch']=_0x30991a,saveCache(_0xb69740);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x5ac1f6){const _0x4ec2b4=_0xa20fdd,_0x592b40={'yteDp':function(_0x3cd012,_0xf6ee53){return _0x3cd012(_0xf6ee53);}},_0x5df16e=loadCache(),_0x192bd8=_0x5df16e['sessions'][_0x5ac1f6];_0x192bd8?.[_0x4ec2b4(0x1ec)]&&(_0x5df16e['lastEnabledSessionClearedAt']=Date['now'](),_0x592b40[_0x4ec2b4(0x1fe)](saveCache,_0x5df16e));}export function shouldAutoEnableAfterClear(_0xe2cb9e){const _0x146bbc=_0xa20fdd,_0x1a9fa7={'MSiIp':function(_0x47af46){return _0x47af46();},'vnKOk':function(_0x80ec8b,_0x560c85){return _0x80ec8b-_0x560c85;}};if(_0xe2cb9e!=='clear')return![];const _0x236588=_0x1a9fa7['MSiIp'](loadCache),_0x17d1e2=_0x236588[_0x146bbc(0x1fa)];if(!_0x17d1e2)return![];const _0x31a6fb=_0x1a9fa7[_0x146bbc(0x1dc)](Date[_0x146bbc(0x1f2)](),_0x17d1e2);return _0x31a6fb<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x3fb623){const _0x4040b3=_0xa20fdd,_0x441969={'EfvFS':function(_0x57c6b1){return _0x57c6b1();},'bNkji':function(_0x4b793a,_0x5c3e82,_0xd9f5d4){return _0x4b793a(_0x5c3e82,_0xd9f5d4);},'JNWTu':function(_0x34a047,_0x210d93){return _0x34a047!==_0x210d93;},'VVeRC':_0x4040b3(0x205),'iXoqW':function(_0x3a4b9d,_0x881df9){return _0x3a4b9d!==_0x881df9;},'ZDlYO':'master'},_0x50ae70=_0x441969['EfvFS'](loadCache),_0x5f3869=_0x441969['bNkji'](getOrCreateSession,_0x50ae70,_0x3fb623);_0x5f3869[_0x4040b3(0x1ec)]=!![];const _0xd0500=getCurrentBranch();_0xd0500&&_0x441969[_0x4040b3(0x1ed)](_0xd0500,_0x441969[_0x4040b3(0x1e3)])&&_0x441969['iXoqW'](_0xd0500,_0x441969['ZDlYO'])&&(_0x5f3869[_0x4040b3(0x1ee)]=_0xd0500),delete _0x50ae70['lastEnabledSessionClearedAt'],saveCache(_0x50ae70);}export function registerSession(_0x464b03,_0x5f1c49){const _0x54c4ae=_0xa20fdd,_0x404315=loadCache(),_0x117571=getOrCreateSession(_0x404315,_0x464b03);_0x117571['featureId']=_0x5f1c49,_0x117571[_0x54c4ae(0x1ff)]=new Date()[_0x54c4ae(0x1f3)](),saveCache(_0x404315);}export function getSessionEntry(_0x419cb5){const _0x56f6a0=_0xa20fdd,_0x4f1480={'KjOZt':function(_0x15800a){return _0x15800a();}},_0x3da93f=_0x4f1480[_0x56f6a0(0x1dd)](loadCache),_0x38b83c=_0x3da93f[_0x56f6a0(0x1df)][_0x419cb5];if(_0x38b83c?.[_0x56f6a0(0x1f1)]&&_0x38b83c?.['registeredAt'])return{'featureId':_0x38b83c['featureId'],'registeredAt':_0x38b83c['registeredAt']};return null;}export function unregisterSession(_0x1a6ec8){const _0x459dac=_0xa20fdd,_0x1e4e0f={'Qfasu':function(_0x2cd068){return _0x2cd068();},'MOtds':function(_0x182c93,_0xae34af){return _0x182c93(_0xae34af);}},_0xb45c52=_0x1e4e0f['Qfasu'](loadCache),_0x13b11f=_0xb45c52[_0x459dac(0x1df)][_0x1a6ec8];_0x13b11f&&(delete _0x13b11f['featureId'],delete _0x13b11f['registeredAt'],_0x1e4e0f[_0x459dac(0x1fc)](saveCache,_0xb45c52));}function _0x3382(_0x21073b,_0x5bd25f){_0x21073b=_0x21073b-0x1d8;const _0x2dca07=_0x2dca();let _0x33821e=_0x2dca07[_0x21073b];return _0x33821e;}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x2aafae){const _0x217b23=_0xa20fdd,_0x4c6e6d={'uZsZX':function(_0x35e132,_0x16fa6a){return _0x35e132>=_0x16fa6a;},'FQjyz':function(_0x3a73f6,_0x44e244){return _0x3a73f6-_0x44e244;},'DbGsT':function(_0x462e66,_0xbbb23){return _0x462e66(_0xbbb23);}},_0x4394b6=loadCache(),_0x63c53f=getOrCreateSession(_0x4394b6,_0x2aafae),_0x347c1a=_0x63c53f[_0x217b23(0x1fd)]||0x0,_0x56a910=Date['now']();if(_0x4c6e6d[_0x217b23(0x1e9)](_0x4c6e6d[_0x217b23(0x200)](_0x56a910,_0x347c1a),PLAN_REMINDER_INTERVAL_MS))return _0x63c53f[_0x217b23(0x1fd)]=_0x56a910,_0x4c6e6d['DbGsT'](saveCache,_0x4394b6),!![];return![];}export function shouldShowStopReminder(_0x4e38ad){const _0x1d64b8=_0xa20fdd,_0x960dce={'SHnDK':function(_0x2e9599){return _0x2e9599();},'BTMdb':function(_0x56598b,_0x1d6da9,_0x647737){return _0x56598b(_0x1d6da9,_0x647737);},'nrZIW':function(_0x15d2f8,_0x44cbe9){return _0x15d2f8-_0x44cbe9;}},_0x2d3034=_0x960dce['SHnDK'](loadCache),_0x35cceb=_0x960dce['BTMdb'](getOrCreateSession,_0x2d3034,_0x4e38ad),_0x96a3a5=_0x35cceb[_0x1d64b8(0x1f8)]||0x0,_0x1d2c13=Date['now']();if(_0x960dce['nrZIW'](_0x1d2c13,_0x96a3a5)>=STOP_REMINDER_INTERVAL_MS)return _0x35cceb['lastStopReminderAt']=_0x1d2c13,saveCache(_0x2d3034),!![];return![];}export function hasSessionBeenPrompted(_0x4801b7){const _0x2da654=_0xa20fdd,_0xb39f3a={'XTRzc':function(_0xd7ba5a,_0x4553e4){return _0xd7ba5a===_0x4553e4;}},_0x46ec00=loadCache();return _0xb39f3a[_0x2da654(0x1e5)](_0x46ec00['sessions'][_0x4801b7]?.[_0x2da654(0x1de)],!![]);}export function markSessionPrompted(_0x426125){const _0x5935a1=_0xa20fdd,_0x3f2ab1={'DkaYm':function(_0x1c9e3a){return _0x1c9e3a();},'whvmZ':function(_0x3b152d,_0x55104b,_0x3b0d6f){return _0x3b152d(_0x55104b,_0x3b0d6f);}},_0x3ed26e=_0x3f2ab1['DkaYm'](loadCache),_0x90a567=_0x3f2ab1[_0x5935a1(0x1db)](getOrCreateSession,_0x3ed26e,_0x426125);_0x90a567['prompted']=!![],saveCache(_0x3ed26e);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x44d6f0=_0x33f6;function _0x5c68(){const _0x3d814d=['--disable-setuid-sandbox','utf-8','PCYAr','11awHDjO','UUbLw','XsIFD','sessions','file','3KJFLOF','pweVV','CjVGm','warn','178341BzeLWs','allowInsecureLocalhost','XGdLu','258993ltoJTp','UaWJT','.json','ZHyfn','TzABd','oFxxi','-cli.json','storageStatePath','yLqGS','stringify','BONWq','--disable-web-security','40zIeHnw','auth.json','entries','345214VKyReX','configPath','mCcfK','fHIwN','EXNsz','CmuyB','replace','object','mLOtu','YxpMI','repeat','yxUjQ','length','auth.json.enc','headless','welvA','parse','zWCRr','vision','launchOptions','userAgent','rangerDir','--disable-features=WebBluetooth','headers','path','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','14945pJHjcR','cdpEndpoint','isArray','push','catch','oHNip','WhkSp','now','xOyvQ','args','storageState','LvWZk','rAAHt','YopFL','KkKuA','contextOptions','cYiUk','message','432lHqzQw','vosyc','--unsafely-treat-insecure-origin-as-secure=http://localhost','yYFke','UJnIx','328068SzFDQH','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','browser','FBQZI','GXvGa','extraHTTPHeaders','legacy','nZFSn','QNDjR','map','QiTfv','getuid','env','othMU','boolean','YPtUe','ranger-config','8286700ooxoji','dpxwP','Tthwy','string','zVXTH','eSafq','tabs','kGnqe','--no-sandbox','IPFgX','chromium','header','allow','includes','184878JPOscJ','QPTLY','NiDgO','location','filter','SDNUG','--allow-insecure-localhost'];_0x5c68=function(){return _0x3d814d;};return _0x5c68();}function _0x33f6(_0x514e1e,_0x2f80e2){_0x514e1e=_0x514e1e-0x180;const _0x5c68cc=_0x5c68();let _0x33f6ab=_0x5c68cc[_0x514e1e];return _0x33f6ab;}(function(_0x1f8250,_0x505c4c){const _0x1505b1=_0x33f6,_0x5c7149=_0x1f8250();while(!![]){try{const _0x2c2546=-parseInt(_0x1505b1(0x1ae))/0x1+-parseInt(_0x1505b1(0x1c0))/0x2*(parseInt(_0x1505b1(0x1aa))/0x3)+parseInt(_0x1505b1(0x1f1))/0x4+-parseInt(_0x1505b1(0x1da))/0x5*(parseInt(_0x1505b1(0x1ec))/0x6)+parseInt(_0x1505b1(0x1b1))/0x7*(-parseInt(_0x1505b1(0x1bd))/0x8)+-parseInt(_0x1505b1(0x19b))/0x9+parseInt(_0x1505b1(0x18d))/0xa*(parseInt(_0x1505b1(0x1a5))/0xb);if(_0x2c2546===_0x505c4c)break;else _0x5c7149['push'](_0x5c7149['shift']());}catch(_0xc35fb1){_0x5c7149['push'](_0x5c7149['shift']());}}}(_0x5c68,0x21ef2));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir}from'./rangerRoot.js';export function getEnvDir(_0x3be4c8){const _0x45aeee=_0x33f6,_0x42e81a={'xOyvQ':function(_0x122bf5){return _0x122bf5();},'welvA':function(_0x3578dc,_0x57c9bf,_0x91882,_0x5b978d){return _0x3578dc(_0x57c9bf,_0x91882,_0x5b978d);},'XGdLu':'local','pMDyV':function(_0x568665,_0x568de8,_0x1fcf47){return _0x568665(_0x568de8,_0x1fcf47);},'eSafq':function(_0x4c0033,_0x435b9a){return _0x4c0033(_0x435b9a);},'WXUKo':function(_0x54e295,_0x5c9a95){return _0x54e295!==_0x5c9a95;},'LvWZk':function(_0x19430f,_0xbff6ef){return _0x19430f(_0xbff6ef);}},_0x10044c=_0x42e81a[_0x45aeee(0x1e2)](getRangerDir),_0x17b73b=_0x42e81a[_0x45aeee(0x1cf)](join,_0x10044c,'ci',_0x3be4c8),_0x322070=join(_0x10044c,_0x42e81a[_0x45aeee(0x1b0)],_0x3be4c8),_0x5c2b95=join(_0x10044c,_0x3be4c8),_0x35f4c4=_0x42e81a['pMDyV'](join,_0x10044c,_0x42e81a['XGdLu']),_0x2552bf=join(_0x10044c,'ci');if(existsSync(_0x17b73b))return _0x17b73b;if(_0x42e81a[_0x45aeee(0x192)](existsSync,_0x322070))return _0x322070;if(_0x42e81a['eSafq'](existsSync,_0x5c2b95)&&(_0x42e81a['WXUKo'](_0x5c2b95,_0x35f4c4)&&_0x5c2b95!==_0x2552bf?!![]:_0x42e81a[_0x45aeee(0x1e5)](hasLegacyProfileFiles,_0x5c2b95)))return _0x5c2b95;return _0x322070;}export function findExistingEnv(_0x3e2c3f,_0x3c6d1b){const _0x5043dc=_0x33f6,_0x561d9f={'mZHXF':function(_0x52eb5d){return _0x52eb5d();},'GXvGa':'local','EXNsz':function(_0x3ab589,_0x421081,_0x3ffb75){return _0x3ab589(_0x421081,_0x3ffb75);},'XPLGW':function(_0x178abe,_0x506030,_0x29bae5,_0x636171){return _0x178abe(_0x506030,_0x29bae5,_0x636171);},'ngpeM':'legacy','fHIwN':function(_0x5a288f,_0x446e6e){return _0x5a288f===_0x446e6e;}},_0x2c5acc=_0x3c6d1b?.[_0x5043dc(0x1d5)]??_0x561d9f['mZHXF'](getRangerDir),_0x315dec=_0x3c6d1b?.['locations']??['ci',_0x561d9f[_0x5043dc(0x180)],_0x5043dc(0x182)],_0x49df10=join(_0x2c5acc,_0x561d9f['GXvGa']),_0x47c32a=_0x561d9f['EXNsz'](join,_0x2c5acc,'ci'),_0x15bfa7=[{'location':'ci','path':join(_0x2c5acc,'ci',_0x3e2c3f)},{'location':_0x561d9f['GXvGa'],'path':_0x561d9f['XPLGW'](join,_0x2c5acc,'local',_0x3e2c3f)},{'location':_0x561d9f['ngpeM'],'path':_0x561d9f[_0x5043dc(0x1c4)](join,_0x2c5acc,_0x3e2c3f)}];for(const _0x34095b of _0x15bfa7){if(_0x315dec['includes'](_0x34095b[_0x5043dc(0x19e)])&&existsSync(_0x34095b['path'])){if(_0x561d9f[_0x5043dc(0x1c3)](_0x34095b[_0x5043dc(0x19e)],_0x5043dc(0x182))&&(_0x34095b[_0x5043dc(0x1d8)]===_0x49df10||_0x561d9f[_0x5043dc(0x1c3)](_0x34095b['path'],_0x47c32a))&&!hasLegacyProfileFiles(_0x34095b[_0x5043dc(0x1d8)]))continue;return{'path':_0x34095b['path'],'location':_0x34095b['location']};}}return null;}function hasLegacyProfileFiles(_0x16a036){const _0x2cea82=_0x33f6,_0x3e61aa={'CmuyB':function(_0x508765,_0x40d0ec){return _0x508765(_0x40d0ec);},'cYiUk':function(_0x4c717c,_0x655b74,_0x5a19bc){return _0x4c717c(_0x655b74,_0x5a19bc);},'TzABd':_0x2cea82(0x1be),'ZHyfn':function(_0x1e3034,_0x3889dc){return _0x1e3034(_0x3889dc);},'nZFSn':function(_0x1e694b,_0x3b0e74,_0x4a630b){return _0x1e694b(_0x3b0e74,_0x4a630b);},'gFLFg':_0x2cea82(0x1cd)};return _0x3e61aa[_0x2cea82(0x1c5)](existsSync,_0x3e61aa[_0x2cea82(0x1ea)](join,_0x16a036,'settings.json'))||existsSync(join(_0x16a036,_0x3e61aa[_0x2cea82(0x1b5)]))||_0x3e61aa[_0x2cea82(0x1b4)](existsSync,_0x3e61aa[_0x2cea82(0x183)](join,_0x16a036,_0x3e61aa['gFLFg']));}export function isEnvCi(_0x4433d1){const _0x2c155c={'BhCHl':function(_0xbd5b59,_0x1ac1ca,_0x46a844,_0x21b086){return _0xbd5b59(_0x1ac1ca,_0x46a844,_0x21b086);},'zahvE':function(_0x54654f){return _0x54654f();}};return existsSync(_0x2c155c['BhCHl'](join,_0x2c155c['zahvE'](getRangerDir),'ci',_0x4433d1));}export async function cleanupTempFiles(_0x3a8650){const _0x2ae37d=_0x33f6,_0x14077d={'JcgdA':function(_0x20f58f,_0x574eb5){return _0x20f58f!==_0x574eb5;},'mRKGZ':'ENOENT'},_0x13d613=[_0x3a8650['tempAuthPath'],_0x3a8650[_0x2ae37d(0x1c1)]][_0x2ae37d(0x19f)](Boolean);await Promise['all'](_0x13d613[_0x2ae37d(0x185)](_0x39c6cd=>unlink(_0x39c6cd)[_0x2ae37d(0x1de)](_0x58a6f0=>{const _0x8fd210=_0x2ae37d;_0x14077d['JcgdA'](_0x58a6f0['code'],_0x14077d['mRKGZ'])&&console[_0x8fd210(0x1ad)](_0x8fd210(0x1d9)+_0x39c6cd+':',_0x58a6f0[_0x8fd210(0x1eb)]);})));}export function getSettingsPath(_0xb980b0){const _0x49e45f={'Wycpo':function(_0x147c04,_0x231dfb){return _0x147c04(_0x231dfb);},'jyAUv':'settings.json'};return join(_0x49e45f['Wycpo'](getEnvDir,_0xb980b0),_0x49e45f['jyAUv']);}export async function loadSettings(_0x223564){const _0x3511ea=_0x33f6,_0x5a4617={'Tthwy':function(_0x84d45f,_0x40ed12){return _0x84d45f(_0x40ed12);},'oHNip':function(_0x99bedc,_0x17d51d){return _0x99bedc(_0x17d51d);},'FBQZI':function(_0xbd5aba,_0x17d30e,_0x4b6fbe){return _0xbd5aba(_0x17d30e,_0x4b6fbe);},'wRrqa':_0x3511ea(0x1a3)},_0x7de015=_0x5a4617[_0x3511ea(0x18f)](getSettingsPath,_0x223564);if(!_0x5a4617[_0x3511ea(0x1df)](existsSync,_0x7de015))return{};try{const _0x289f7f=await _0x5a4617[_0x3511ea(0x1f4)](readFile,_0x7de015,_0x5a4617['wRrqa']);return JSON[_0x3511ea(0x1d0)](_0x289f7f);}catch{return{};}}export async function saveSettings(_0x32e7f0,_0x413e1e){const _0x5dc487=_0x33f6,_0x34e735={'nnbbX':function(_0x38915d,_0x1336d1){return _0x38915d(_0x1336d1);},'hRxVD':function(_0x42bf39,_0x5f02a0){return _0x42bf39(_0x5f02a0);},'kGnqe':function(_0x517f67,_0x3f7752,_0x18d2fc){return _0x517f67(_0x3f7752,_0x18d2fc);}},_0x40e95b=_0x34e735['nnbbX'](getSettingsPath,_0x32e7f0),_0x4edf79=_0x34e735['hRxVD'](dirname,_0x40e95b);!_0x34e735['hRxVD'](existsSync,_0x4edf79)&&await mkdir(_0x4edf79,{'recursive':!![]}),await _0x34e735[_0x5dc487(0x194)](writeFile,_0x40e95b,JSON[_0x5dc487(0x1ba)](_0x413e1e,null,0x2));}export function resolveEnvVars(_0x468dbd){const _0x2a81f3=_0x33f6,_0x225eae={'YxpMI':_0x2a81f3(0x1c7)};if(typeof _0x468dbd==='string')return _0x468dbd[_0x2a81f3(0x1c6)](/\$\{(\w+)\}/g,(_0x22c27e,_0x129f0e)=>{const _0x4fa738=_0x2a81f3,_0x4f4603=process[_0x4fa738(0x188)][_0x129f0e];if(_0x4f4603===undefined)throw new Error('Environment\x20variable\x20'+_0x129f0e+'\x20is\x20not\x20set');return _0x4f4603;});if(Array[_0x2a81f3(0x1dc)](_0x468dbd))return _0x468dbd[_0x2a81f3(0x185)](resolveEnvVars);if(_0x468dbd&&typeof _0x468dbd===_0x225eae[_0x2a81f3(0x1c9)])return Object['fromEntries'](Object[_0x2a81f3(0x1bf)](_0x468dbd)['map'](([_0xe5bb8b,_0x3b846e])=>[_0xe5bb8b,resolveEnvVars(_0x3b846e)]));return _0x468dbd;}const isRecord=_0x5859fd=>typeof _0x5859fd===_0x44d6f0(0x1c7)&&_0x5859fd!==null&&!Array['isArray'](_0x5859fd),asRecord=_0x34237a=>isRecord(_0x34237a)?_0x34237a:undefined,mergeHeaders=(_0x2cef56,_0x210eb9)=>{const _0x9bf8e9=_0x44d6f0,_0x188674={..._0x2cef56??{},..._0x210eb9??{}};return Object['keys'](_0x188674)[_0x9bf8e9(0x1cc)]?_0x188674:undefined;},SAFE_MODE_ARGS=[_0x44d6f0(0x1d6)],ALLOW_LOCALHOST_ARGS=[_0x44d6f0(0x1bc),'--allow-running-insecure-content',_0x44d6f0(0x1ee),_0x44d6f0(0x1a1)];export function buildBrowserOptionsFromSettings(_0x10bded,_0x534dad={}){const _0x50b89f=_0x44d6f0,_0x46ce87={'oFxxi':function(_0x506e5e,_0xc1220d){return _0x506e5e(_0xc1220d);},'BONWq':function(_0x50cc1e,_0x5789c7){return _0x50cc1e(_0x5789c7);},'YPtUe':function(_0x191566,_0x26fb2c){return _0x191566===_0x26fb2c;},'VekvZ':function(_0x3e9d6f,_0x2b0d19){return _0x3e9d6f===_0x2b0d19;},'mLOtu':function(_0x50faea,_0x52757e){return _0x50faea(_0x52757e);}},_0x21085b=_0x46ce87[_0x50b89f(0x1b6)](asRecord,_0x10bded[_0x50b89f(0x1f3)]),_0x117142={..._0x46ce87[_0x50b89f(0x1bb)](asRecord,_0x21085b?.[_0x50b89f(0x1d3)])??{}};_0x46ce87[_0x50b89f(0x18b)](typeof _0x534dad[_0x50b89f(0x1ce)],_0x50b89f(0x18a))&&(_0x117142['headless']=_0x534dad[_0x50b89f(0x1ce)]);if(_0x10bded['safeMode']){const _0x14b234=_0x117142['args']??[],_0x4c7ee6=SAFE_MODE_ARGS['filter'](_0x20d96e=>!_0x14b234['includes'](_0x20d96e));_0x117142['args']=[..._0x14b234,..._0x4c7ee6];}if(_0x10bded[_0x50b89f(0x1af)]){const _0x5e9e98=_0x117142['args']??[],_0xd5a560=ALLOW_LOCALHOST_ARGS[_0x50b89f(0x19f)](_0x2a0589=>!_0x5e9e98['includes'](_0x2a0589));_0x117142['args']=[..._0x5e9e98,..._0xd5a560];}const _0x5212ec={..._0x46ce87[_0x50b89f(0x1bb)](asRecord,_0x21085b?.[_0x50b89f(0x1e9)])??{}};_0x5212ec['ignoreHTTPSErrors']=!![];_0x46ce87['VekvZ'](typeof _0x10bded['userAgent'],_0x50b89f(0x190))&&(_0x5212ec['userAgent']=_0x10bded['userAgent']);const _0x3a564e=mergeHeaders(asRecord(_0x5212ec['extraHTTPHeaders']),_0x46ce87[_0x50b89f(0x1c8)](asRecord,_0x10bded['headers']));return _0x3a564e?_0x5212ec[_0x50b89f(0x181)]=_0x3a564e:delete _0x5212ec[_0x50b89f(0x181)],_0x534dad[_0x50b89f(0x1b8)]&&(_0x5212ec['storageState']=_0x534dad[_0x50b89f(0x1b8)]),{'launchOptions':_0x117142,'contextOptions':_0x5212ec};}export async function buildPlaywrightConfig(_0x10c783,_0x39c1b1,_0x1cf782,_0x4e9a23){const _0x260293=_0x44d6f0,_0xbe7634={'rXjHQ':function(_0x30656b,_0x75e6d3,_0x6be976){return _0x30656b(_0x75e6d3,_0x6be976);},'PYFFn':'--no-sandbox','yLqGS':_0x260293(0x1a2),'UaWJT':_0x260293(0x197),'zWCRr':'clipboard-read','PCYAr':function(_0x12c361,_0xe5348a){return _0x12c361(_0xe5348a);},'eFTcu':_0x260293(0x1cd),'UIdxE':function(_0x483a60,_0x3ce816,_0x21090b){return _0x483a60(_0x3ce816,_0x21090b);},'IPFgX':function(_0x19726d){return _0x19726d();},'zEMJW':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','XsIFD':function(_0x548424,_0x8de873,_0x1d6f54){return _0x548424(_0x8de873,_0x1d6f54);},'RyLwE':function(_0x54e1cc,_0x3ed7d3){return _0x54e1cc(_0x3ed7d3);},'eslpQ':function(_0x4cbfb6,_0x53f8d7,_0x5c57c4,_0x17c9ac){return _0x4cbfb6(_0x53f8d7,_0x5c57c4,_0x17c9ac);},'ZVtCc':_0x260293(0x1a8),'nDXny':_0x260293(0x1d2),'KkKuA':function(_0x3d1200,_0x2b32e6,_0xf708d1){return _0x3d1200(_0x2b32e6,_0xf708d1);}},_0x5d59fc=_0xbe7634[_0x260293(0x1a4)](getEnvDir,_0x39c1b1),_0x3d5d1d=_0xbe7634['rXjHQ'](join,_0x5d59fc,_0xbe7634['eFTcu']),_0xc60803=_0xbe7634['UIdxE'](join,_0x5d59fc,'auth.json');let _0x3af44f,_0x486a02;if(_0xbe7634['PCYAr'](existsSync,_0x3d5d1d))try{const _0x302ca3=await _0xbe7634[_0x260293(0x196)](getToken);if(!_0x302ca3)throw new Error(_0xbe7634['zEMJW']);const _0x4bf6e1=await _0xbe7634['PCYAr'](readFile,_0x3d5d1d),_0xde9d32=decrypt(_0x4bf6e1,_0x302ca3);_0x486a02=_0xbe7634[_0x260293(0x1a7)](join,_0xbe7634['IPFgX'](tmpdir),'ranger-auth-'+Date[_0x260293(0x1e1)]()+'.json'),await _0xbe7634[_0x260293(0x1a7)](writeFile,_0x486a02,_0xde9d32),_0x3af44f=_0x486a02;}catch(_0x7c5967){const _0x22a849=_0x7c5967 instanceof Error?_0x7c5967[_0x260293(0x1eb)]:_0xbe7634['RyLwE'](String,_0x7c5967);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x22a849);}else _0xbe7634['PCYAr'](existsSync,_0xc60803)&&(_0x3af44f=_0xc60803);const _0x33b84f=_0x1cf782||randomUUID(),_0x5357fa=_0xbe7634['eslpQ'](join,_0xbe7634[_0x260293(0x196)](getRangerDir),_0xbe7634['ZVtCc'],_0x33b84f),_0x367d10=_0xbe7634['RyLwE'](Boolean,_0x10c783['cdpEndpoint']),_0x302ca2=_0x367d10?{'browserName':_0x260293(0x197),'cdpEndpoint':_0x10c783['cdpEndpoint']}:((()=>{const _0x2b4f49=_0x260293,{launchOptions:_0xaea335,contextOptions:_0x1ef0b3}=_0xbe7634['rXjHQ'](buildBrowserOptionsFromSettings,_0x10c783,{'headless':_0x4e9a23?![]:_0x10c783[_0x2b4f49(0x1ce)]??!![],'storageStatePath':_0x3af44f});if(process['getuid']?.()===0x0){const _0x6fd625=[_0xbe7634['PYFFn'],_0xbe7634[_0x2b4f49(0x1b9)]],_0x5736cb=_0xaea335[_0x2b4f49(0x1e3)]??[],_0x1cc644=_0x6fd625['filter'](_0x251eab=>!_0x5736cb[_0x2b4f49(0x19a)](_0x251eab));_0xaea335['args']=[..._0x5736cb,..._0x1cc644];}return{'isolated':!![],'browserName':_0xbe7634[_0x2b4f49(0x1b2)],'launchOptions':_0xaea335,'contextOptions':{..._0x1ef0b3,'permissions':[_0xbe7634[_0x2b4f49(0x1d1)],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x3539aa={'name':_0x39c1b1,'browser':_0x302ca2,'capabilities':['core',_0x260293(0x193),'install','pdf',_0xbe7634['nDXny']],'imageResponses':_0x260293(0x199),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5357fa};if(!_0x367d10){const _0x27b2db=_0x3539aa[_0x260293(0x1f3)],_0x4d10fb=_0x27b2db['contextOptions'];if(_0x4d10fb[_0x260293(0x1d4)]===undefined)delete _0x4d10fb['userAgent'];if(_0x4d10fb[_0x260293(0x1e4)]===undefined)delete _0x4d10fb['storageState'];}const _0x133315=_0xbe7634[_0x260293(0x1e8)](join,tmpdir(),'ranger-config');!existsSync(_0x133315)&&await mkdir(_0x133315,{'recursive':!![]});const _0x291a25=_0xbe7634[_0x260293(0x1a7)](join,_0x133315,_0x39c1b1+'-'+Date['now']()+_0x260293(0x1b3));return await writeFile(_0x291a25,JSON['stringify'](_0x3539aa,null,0x2)),{'configPath':_0x291a25,'tempAuthPath':_0x486a02};}export async function buildPlaywrightCliConfig(_0x87612e,_0x58db56,_0x33cb5b,_0x4bfbbf){const _0x4554e0=_0x44d6f0,_0x195077={'yxUjQ':function(_0x24856b,_0x53427b){return _0x24856b===_0x53427b;},'GKVmf':'clipboard-read','hjupk':'clipboard-write','othMU':'auth.json.enc','pweVV':function(_0xc068b7,_0xe89ecb){return _0xc068b7(_0xe89ecb);},'WaenQ':function(_0x2a8dd0){return _0x2a8dd0();},'SDNUG':_0x4554e0(0x1f2),'gSFmZ':function(_0x2bef11,_0x45ee48,_0x5ec660){return _0x2bef11(_0x45ee48,_0x5ec660);},'CjVGm':function(_0x1ae477,_0x3a4f8a,_0x273dd4){return _0x1ae477(_0x3a4f8a,_0x273dd4);},'RFwEK':function(_0x3ba6d8,_0x14d9ed,_0x485bcb){return _0x3ba6d8(_0x14d9ed,_0x485bcb);},'QPTLY':function(_0x230db5,_0x33e772){return _0x230db5(_0x33e772);},'yDgWH':function(_0xc03b57,_0x3cfaae){return _0xc03b57(_0x3cfaae);},'NiDfO':function(_0x1f97ff,_0x325d76,_0x43d657,_0x578134){return _0x1f97ff(_0x325d76,_0x43d657,_0x578134);},'NiDgO':function(_0x466fd9){return _0x466fd9();},'vosyc':function(_0x48e236,_0x399470,_0x1b52a8){return _0x48e236(_0x399470,_0x1b52a8);}},_0xdc2a7e=getEnvDir(_0x58db56),_0x4832db=join(_0xdc2a7e,_0x195077[_0x4554e0(0x189)]),_0x4915aa=join(_0xdc2a7e,_0x4554e0(0x1be));let _0x55a54d,_0x4adfd7;if(_0x195077[_0x4554e0(0x1ab)](existsSync,_0x4832db))try{const _0x294996=await _0x195077['WaenQ'](getToken);if(!_0x294996)throw new Error(_0x195077[_0x4554e0(0x1a0)]);const _0x37d919=await readFile(_0x4832db),_0x2fb612=_0x195077['gSFmZ'](decrypt,_0x37d919,_0x294996);_0x4adfd7=_0x195077[_0x4554e0(0x1ac)](join,tmpdir(),'ranger-auth-'+Date['now']()+_0x4554e0(0x1b3)),await _0x195077['RFwEK'](writeFile,_0x4adfd7,_0x2fb612),_0x55a54d=_0x4adfd7;}catch(_0x1707c7){const _0x4d6f39=_0x1707c7 instanceof Error?_0x1707c7['message']:_0x195077[_0x4554e0(0x19c)](String,_0x1707c7);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x4d6f39);}else _0x195077['yDgWH'](existsSync,_0x4915aa)&&(_0x55a54d=_0x4915aa);const _0x5a4f19=_0x33cb5b||randomUUID(),_0x4d8ed8=_0x195077['NiDfO'](join,_0x195077[_0x4554e0(0x19d)](getRangerDir),_0x4554e0(0x1a8),_0x5a4f19),_0x4f6d03=Boolean(_0x87612e['cdpEndpoint']),_0x98fbed=_0x4f6d03?{'browserName':_0x4554e0(0x197),'cdpEndpoint':_0x87612e[_0x4554e0(0x1db)]}:((()=>{const _0xcf664a=_0x4554e0,{launchOptions:_0x6f6c59,contextOptions:_0x127f23}=buildBrowserOptionsFromSettings(_0x87612e,{'headless':_0x4bfbbf?![]:_0x87612e[_0xcf664a(0x1ce)]??!![],'storageStatePath':_0x55a54d});if(_0x195077[_0xcf664a(0x1cb)](process[_0xcf664a(0x187)]?.(),0x0)){const _0x2150c5=[_0xcf664a(0x195),'--disable-setuid-sandbox'],_0x21864a=_0x6f6c59['args']??[],_0x329c23=_0x2150c5[_0xcf664a(0x19f)](_0x203869=>!_0x21864a[_0xcf664a(0x19a)](_0x203869));_0x6f6c59['args']=[..._0x21864a,..._0x329c23];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x6f6c59,'contextOptions':{..._0x127f23,'permissions':[_0x195077['GKVmf'],_0x195077['hjupk']],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x4f6d03){const _0x593c03=_0x98fbed['contextOptions'];if(_0x593c03[_0x4554e0(0x1d4)]===undefined)delete _0x593c03['userAgent'];if(_0x593c03['storageState']===undefined)delete _0x593c03[_0x4554e0(0x1e4)];}const _0x6fab1f={'browser':_0x98fbed,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4d8ed8,'outputMode':_0x4554e0(0x1a9),'codegen':'none'},_0x277b27=join(tmpdir(),_0x4554e0(0x18c));!existsSync(_0x277b27)&&await mkdir(_0x277b27,{'recursive':!![]});const _0x2a22ed=join(_0x277b27,_0x58db56+'-'+Date['now']()+_0x4554e0(0x1b7));return await _0x195077[_0x4554e0(0x1ed)](writeFile,_0x2a22ed,JSON['stringify'](_0x6fab1f,null,0x2)),{'configPath':_0x2a22ed,'tempAuthPath':_0x4adfd7};}export function getNestedValue(_0x293c05,_0x506367){const _0x161bdd=_0x44d6f0,_0xb220f9={'mCcfK':function(_0x18a37b,_0x3dcbd1){return _0x18a37b(_0x3dcbd1);},'waRUJ':function(_0x1d58ff,_0x5dc236){return _0x1d58ff===_0x5dc236;},'bEOFH':function(_0x4fed20,_0x360be2){return _0x4fed20===_0x360be2;},'UUbLw':'object'},_0x39b3bd=_0xb220f9[_0x161bdd(0x1c2)](parseKeyPath,_0x506367);let _0x221035=_0x293c05;for(const _0x3eb957 of _0x39b3bd){if(_0xb220f9['waRUJ'](_0x221035,null)||_0xb220f9['bEOFH'](_0x221035,undefined)||typeof _0x221035!==_0xb220f9[_0x161bdd(0x1a6)])return undefined;_0x221035=_0x221035[_0x3eb957];}return _0x221035;}export function setNestedValue(_0x547932,_0x41c5e6,_0x5c3e5e){const _0x35ee60=_0x44d6f0,_0x5b4450={'dpxwP':function(_0xdb2ae,_0x13839e){return _0xdb2ae(_0x13839e);},'zVXTH':function(_0x227975,_0x13373d){return _0x227975-_0x13373d;},'nJnlr':function(_0x5e644b,_0xc488c1){return _0x5e644b-_0xc488c1;}},_0x366e47=_0x5b4450[_0x35ee60(0x18e)](parseKeyPath,_0x41c5e6);let _0x11a639=_0x547932;for(let _0x397bbb=0x0;_0x397bbb<_0x5b4450[_0x35ee60(0x191)](_0x366e47[_0x35ee60(0x1cc)],0x1);_0x397bbb++){const _0x53a625=_0x366e47[_0x397bbb];(!(_0x53a625 in _0x11a639)||typeof _0x11a639[_0x53a625]!==_0x35ee60(0x1c7))&&(_0x11a639[_0x53a625]={}),_0x11a639=_0x11a639[_0x53a625];}_0x11a639[_0x366e47[_0x5b4450['nJnlr'](_0x366e47[_0x35ee60(0x1cc)],0x1)]]=_0x5c3e5e;}export function deleteNestedValue(_0x1b51aa,_0xf23b3e){const _0x47d85e=_0x44d6f0,_0x360156={'rAAHt':function(_0x31845b,_0x4089cc){return _0x31845b(_0x4089cc);},'yYFke':function(_0x40c777,_0x418f33){return _0x40c777<_0x418f33;},'VDTjF':function(_0x6180b9,_0x2fbe77){return _0x6180b9-_0x2fbe77;},'QiTfv':'object','uXeDn':function(_0x312a64,_0x4951f5){return _0x312a64===_0x4951f5;},'IHHWQ':function(_0x4a3268,_0x14e47c){return _0x4a3268===_0x14e47c;},'UJnIx':function(_0x39f6f7,_0x44f965){return _0x39f6f7!==_0x44f965;},'YopFL':function(_0x1d0804,_0x249c28){return _0x1d0804-_0x249c28;}},_0x5bceab=_0x360156[_0x47d85e(0x1e6)](parseKeyPath,_0xf23b3e);let _0x5483d7=_0x1b51aa;for(let _0x168dae=0x0;_0x360156[_0x47d85e(0x1ef)](_0x168dae,_0x360156['VDTjF'](_0x5bceab['length'],0x1));_0x168dae++){if(_0x5483d7===null||_0x5483d7===undefined||typeof _0x5483d7!==_0x360156[_0x47d85e(0x186)])return![];_0x5483d7=_0x5483d7[_0x5bceab[_0x168dae]];}if(_0x360156['uXeDn'](_0x5483d7,null)||_0x360156['IHHWQ'](_0x5483d7,undefined)||_0x360156[_0x47d85e(0x1f0)](typeof _0x5483d7,_0x47d85e(0x1c7)))return![];const _0x1a734c=_0x5bceab[_0x360156[_0x47d85e(0x1e7)](_0x5bceab[_0x47d85e(0x1cc)],0x1)];if(_0x1a734c in _0x5483d7)return delete _0x5483d7[_0x1a734c],!![];return![];}function parseKeyPath(_0x19ab5c){const _0xb00dc3=_0x44d6f0,_0x38a3c0={'WhkSp':function(_0x3b2369,_0x18cb59){return _0x3b2369===_0x18cb59;},'eLemo':_0xb00dc3(0x198),'QNDjR':_0xb00dc3(0x1d7)},_0x445fe9=_0x19ab5c['split']('.');return _0x38a3c0['WhkSp'](_0x445fe9[0x0],_0x38a3c0['eLemo'])&&(_0x445fe9[0x0]=_0x38a3c0[_0xb00dc3(0x184)]),_0x38a3c0[_0xb00dc3(0x1e0)](_0x445fe9[0x0],'setupHeader')&&(_0x445fe9[0x0]='setupHeaders'),_0x445fe9;}export function formatSettings(_0x2afc58,_0xb37184=0x0){const _0x1b94b5=_0x44d6f0,_0x5d9c0c={'PlyAI':function(_0x110ae1,_0x1e304a){return _0x110ae1===_0x1e304a;},'XuxyZ':function(_0x485038,_0x4e7c5d){return _0x485038===_0x4e7c5d;},'OxxGv':function(_0x267146,_0x53cc16){return _0x267146!==_0x53cc16;}},_0x112bd9=[],_0xdc766f='\x20\x20'[_0x1b94b5(0x1ca)](_0xb37184);for(const [_0x348102,_0x5f59b4]of Object[_0x1b94b5(0x1bf)](_0x2afc58)){if(_0x5d9c0c['PlyAI'](_0x5f59b4,undefined))continue;if(_0x5d9c0c['XuxyZ'](typeof _0x5f59b4,'object')&&_0x5d9c0c['OxxGv'](_0x5f59b4,null)){_0x112bd9['push'](''+_0xdc766f+_0x348102+':');for(const [_0x1f03fd,_0x560b8a]of Object['entries'](_0x5f59b4)){_0x112bd9[_0x1b94b5(0x1dd)](_0xdc766f+'\x20\x20'+_0x1f03fd+':\x20'+_0x560b8a);}}else _0x112bd9['push'](''+_0xdc766f+_0x348102+':\x20'+_0x5f59b4);}return _0x112bd9['join']('\x0a');}
1
+ const _0x57b256=_0x3ccc;(function(_0x38cd7b,_0xf81611){const _0x3448ee=_0x3ccc,_0x317328=_0x38cd7b();while(!![]){try{const _0xe9452d=-parseInt(_0x3448ee(0x124))/0x1+parseInt(_0x3448ee(0x127))/0x2+-parseInt(_0x3448ee(0x10d))/0x3*(-parseInt(_0x3448ee(0x121))/0x4)+parseInt(_0x3448ee(0x12a))/0x5*(parseInt(_0x3448ee(0xea))/0x6)+parseInt(_0x3448ee(0x10c))/0x7*(parseInt(_0x3448ee(0xe0))/0x8)+parseInt(_0x3448ee(0x104))/0x9*(parseInt(_0x3448ee(0xfd))/0xa)+parseInt(_0x3448ee(0x131))/0xb*(-parseInt(_0x3448ee(0x11f))/0xc);if(_0xe9452d===_0xf81611)break;else _0x317328['push'](_0x317328['shift']());}catch(_0x16d43a){_0x317328['push'](_0x317328['shift']());}}}(_0x41b8,0x376b6));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(_0x595e4c){const _0x3568de=_0x3ccc,_0x425193={'FAllw':'local','faGQV':function(_0x482712,_0x548e76,_0x524cfe){return _0x482712(_0x548e76,_0x524cfe);},'Fezxa':function(_0x3888f2,_0x194cee){return _0x3888f2(_0x194cee);},'uahku':function(_0x97bf99,_0x50cabc){return _0x97bf99!==_0x50cabc;}},_0x59a6bf=getRangerDir(),_0x1dd587=join(_0x59a6bf,'ci',_0x595e4c),_0x16a001=join(_0x59a6bf,_0x425193[_0x3568de(0x136)],_0x595e4c),_0x3ab213=join(_0x59a6bf,_0x595e4c),_0x27dddc=_0x425193['faGQV'](join,_0x59a6bf,_0x425193[_0x3568de(0x136)]),_0x243d90=join(_0x59a6bf,'ci');if(existsSync(_0x1dd587))return _0x1dd587;if(_0x425193['Fezxa'](existsSync,_0x16a001))return _0x16a001;if(existsSync(_0x3ab213)&&(_0x3ab213!==_0x27dddc&&_0x425193[_0x3568de(0xef)](_0x3ab213,_0x243d90)?!![]:hasLegacyProfileFiles(_0x3ab213)))return _0x3ab213;return _0x16a001;}export function findExistingEnv(_0xfdd2c,_0x396eaa){const _0x184674=_0x3ccc,_0x129752={'bdVJB':function(_0x16b91b){return _0x16b91b();},'KLOiL':_0x184674(0x12b),'vQsQz':function(_0x4104cb,_0x5f3713,_0x1773f1,_0xbfb8da){return _0x4104cb(_0x5f3713,_0x1773f1,_0xbfb8da);},'FNboY':_0x184674(0x111),'dTdfm':function(_0x3a823d,_0x50e22e){return _0x3a823d(_0x50e22e);},'KVFJd':function(_0x42299f,_0x4ea99a){return _0x42299f===_0x4ea99a;},'dhJyT':function(_0x2fa1fe,_0x35786c){return _0x2fa1fe===_0x35786c;},'QTOiS':function(_0x2843f1,_0x469d16){return _0x2843f1(_0x469d16);}},_0x38162c=_0x396eaa?.['rangerDir']??_0x129752['bdVJB'](getRangerDir),_0x4f27a3=_0x396eaa?.['locations']??['ci',_0x129752['KLOiL'],'legacy'],_0x320f37=join(_0x38162c,_0x129752['KLOiL']),_0x1d762a=join(_0x38162c,'ci'),_0x52540c=[{'location':'ci','path':join(_0x38162c,'ci',_0xfdd2c)},{'location':_0x129752[_0x184674(0xfb)],'path':_0x129752['vQsQz'](join,_0x38162c,_0x129752['KLOiL'],_0xfdd2c)},{'location':_0x129752['FNboY'],'path':join(_0x38162c,_0xfdd2c)}];for(const _0x4c73b1 of _0x52540c){if(_0x4f27a3[_0x184674(0x137)](_0x4c73b1['location'])&&_0x129752[_0x184674(0x116)](existsSync,_0x4c73b1['path'])){if(_0x4c73b1[_0x184674(0xe3)]===_0x129752[_0x184674(0x139)]&&(_0x129752['KVFJd'](_0x4c73b1['path'],_0x320f37)||_0x129752[_0x184674(0x102)](_0x4c73b1[_0x184674(0x114)],_0x1d762a))&&!_0x129752[_0x184674(0x100)](hasLegacyProfileFiles,_0x4c73b1['path']))continue;return{'path':_0x4c73b1['path'],'location':_0x4c73b1[_0x184674(0xe3)]};}}return null;}function hasLegacyProfileFiles(_0x468801){const _0x5e446c=_0x3ccc,_0x47af3a={'fPcUy':function(_0x7b9abc,_0x5315a8){return _0x7b9abc(_0x5315a8);},'QxOCu':function(_0x3bd34e,_0x2fc676){return _0x3bd34e(_0x2fc676);},'gzuyG':_0x5e446c(0xe4)};return _0x47af3a[_0x5e446c(0xdb)](existsSync,join(_0x468801,'settings.json'))||_0x47af3a[_0x5e446c(0xfe)](existsSync,join(_0x468801,'auth.json'))||existsSync(join(_0x468801,_0x47af3a['gzuyG']));}export function isEnvCi(_0x585525){const _0x31f35a={'YHbMK':function(_0x10b46a,_0x8bc02f){return _0x10b46a(_0x8bc02f);},'LAedV':function(_0x3c8dda){return _0x3c8dda();}};return _0x31f35a['YHbMK'](existsSync,join(_0x31f35a['LAedV'](getRangerDir),'ci',_0x585525));}export async function cleanupTempFiles(_0x2538bb){const _0x400356=_0x3ccc,_0x50cc8c={'TaLKL':function(_0x33679b,_0x2c1c18){return _0x33679b!==_0x2c1c18;},'tqoom':'ENOENT'},_0x3e3011=[_0x2538bb[_0x400356(0xfa)],_0x2538bb[_0x400356(0x140)]]['filter'](Boolean);await Promise[_0x400356(0xda)](_0x3e3011['map'](_0x26caf3=>unlink(_0x26caf3)['catch'](_0x4ffae0=>{const _0x348781=_0x400356;_0x50cc8c[_0x348781(0xe9)](_0x4ffae0[_0x348781(0x145)],_0x50cc8c['tqoom'])&&console[_0x348781(0xde)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x26caf3+':',_0x4ffae0[_0x348781(0x110)]);})));}export function getSettingsPath(_0x4e2fcc){const _0x284ea1=_0x3ccc,_0x1af884={'lsKRI':function(_0x16168d,_0x5bb6f2,_0x215067){return _0x16168d(_0x5bb6f2,_0x215067);},'SxQkU':_0x284ea1(0xd8)};return _0x1af884[_0x284ea1(0x113)](join,getEnvDir(_0x4e2fcc),_0x1af884[_0x284ea1(0xf2)]);}export async function loadSettings(_0x59b6f9){const _0x4873bf=_0x3ccc,_0x4cadc2={'etlQg':_0x4873bf(0x128)},_0x35acc3=getSettingsPath(_0x59b6f9);if(!existsSync(_0x35acc3))return{};try{const _0x3c4bc9=await readFile(_0x35acc3,_0x4cadc2['etlQg']);return JSON[_0x4873bf(0xce)](_0x3c4bc9);}catch{return{};}}export async function saveSettings(_0x3b8b20,_0x254a5d){const _0x270544=_0x3ccc,_0x37b422={'Pelmj':function(_0x475a46,_0xe4e2c4){return _0x475a46(_0xe4e2c4);}},_0x17b996=getSettingsPath(_0x3b8b20),_0x4739f9=dirname(_0x17b996);!_0x37b422['Pelmj'](existsSync,_0x4739f9)&&await mkdir(_0x4739f9,{'recursive':!![]}),await writeFile(_0x17b996,JSON[_0x270544(0x134)](_0x254a5d,null,0x2));}export function resolveEnvVars(_0x1eef41){const _0xcf32f2=_0x3ccc,_0x2ceed8={'AenhI':function(_0x2e241a,_0x34d216){return _0x2e241a===_0x34d216;},'AYtpW':_0xcf32f2(0xf1)};if(typeof _0x1eef41===_0xcf32f2(0x135))return _0x1eef41['replace'](/\$\{(\w+)\}/g,(_0x1845c9,_0x237422)=>{const _0x84f051=_0xcf32f2,_0xfbdcc5=process[_0x84f051(0x12f)][_0x237422];if(_0x2ceed8['AenhI'](_0xfbdcc5,undefined))throw new Error(_0x84f051(0xfc)+_0x237422+'\x20is\x20not\x20set');return _0xfbdcc5;});if(Array['isArray'](_0x1eef41))return _0x1eef41[_0xcf32f2(0x11d)](resolveEnvVars);if(_0x1eef41&&typeof _0x1eef41===_0x2ceed8[_0xcf32f2(0x12c)])return Object['fromEntries'](Object['entries'](_0x1eef41)[_0xcf32f2(0x11d)](([_0x485c68,_0x1a1e39])=>[_0x485c68,resolveEnvVars(_0x1a1e39)]));return _0x1eef41;}const isRecord=_0x361bed=>typeof _0x361bed===_0x57b256(0xf1)&&_0x361bed!==null&&!Array[_0x57b256(0x11a)](_0x361bed),asRecord=_0xa47494=>isRecord(_0xa47494)?_0xa47494:undefined,mergeHeaders=(_0x1159a1,_0x244493)=>{const _0x334f92=_0x57b256,_0x5337bc={'qDtDr':function(_0x481941,_0x3dfc62){return _0x481941??_0x3dfc62;}},_0x67b2d5={..._0x5337bc[_0x334f92(0xd1)](_0x1159a1,{}),..._0x244493??{}};return Object['keys'](_0x67b2d5)[_0x334f92(0x117)]?_0x67b2d5:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=[_0x57b256(0xf8),_0x57b256(0xd9),_0x57b256(0xcf),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x1499ba,_0x56bcb8={}){const _0x5751e5=_0x57b256,_0x1641a2={'xURKA':function(_0x442a9c,_0x10c02b){return _0x442a9c(_0x10c02b);},'arbKH':function(_0x53867e,_0x52f517){return _0x53867e===_0x52f517;},'NBPlq':function(_0x53b071,_0x367e5b,_0x8b6fa3){return _0x53b071(_0x367e5b,_0x8b6fa3);},'cmjjG':function(_0xa947bb,_0x68183c){return _0xa947bb(_0x68183c);},'nHIMS':function(_0x31f38d,_0x15528e){return _0x31f38d(_0x15528e);}},_0x4af137=_0x1641a2['xURKA'](asRecord,_0x1499ba[_0x5751e5(0x130)]),_0x2b8455={...asRecord(_0x4af137?.[_0x5751e5(0x126)])??{}};_0x1641a2['arbKH'](typeof _0x56bcb8['headless'],_0x5751e5(0xd0))&&(_0x2b8455['headless']=_0x56bcb8['headless']);if(_0x1499ba[_0x5751e5(0x13a)]){const _0x268396=_0x2b8455['args']??[],_0x4843f8=SAFE_MODE_ARGS['filter'](_0x10a3e2=>!_0x268396[_0x5751e5(0x137)](_0x10a3e2));_0x2b8455[_0x5751e5(0x107)]=[..._0x268396,..._0x4843f8];}if(_0x1499ba[_0x5751e5(0x119)]){const _0x23d2ae=_0x2b8455[_0x5751e5(0x107)]??[],_0x5aa918=ALLOW_LOCALHOST_ARGS['filter'](_0x481928=>!_0x23d2ae['includes'](_0x481928));_0x2b8455[_0x5751e5(0x107)]=[..._0x23d2ae,..._0x5aa918];}const _0x2a478a={...asRecord(_0x4af137?.[_0x5751e5(0x141)])??{}};_0x2a478a[_0x5751e5(0x133)]=!![];typeof _0x1499ba[_0x5751e5(0x13e)]==='string'&&(_0x2a478a[_0x5751e5(0x13e)]=_0x1499ba['userAgent']);const _0x270a5d=_0x1641a2[_0x5751e5(0xeb)](mergeHeaders,_0x1641a2['cmjjG'](asRecord,_0x2a478a[_0x5751e5(0xe2)]),_0x1641a2['nHIMS'](asRecord,_0x1499ba[_0x5751e5(0x13f)]));return _0x270a5d?_0x2a478a['extraHTTPHeaders']=_0x270a5d:delete _0x2a478a['extraHTTPHeaders'],_0x56bcb8[_0x5751e5(0xf4)]&&(_0x2a478a[_0x5751e5(0xe8)]=_0x56bcb8[_0x5751e5(0xf4)]),{'launchOptions':_0x2b8455,'contextOptions':_0x2a478a};}export async function buildPlaywrightConfig(_0x2bb9f9,_0x2619ee,_0x213c1e,_0x3ad7a8){const _0x536f7c=_0x57b256,_0x3d220e={'wxeeB':function(_0x439c90,_0x55d761,_0x15a97d){return _0x439c90(_0x55d761,_0x15a97d);},'cSYjj':function(_0x2f4f54,_0x227a8d){return _0x2f4f54===_0x227a8d;},'IOtLA':'--no-sandbox','fRfUQ':'--disable-setuid-sandbox','PgRvQ':_0x536f7c(0x12e),'lEevM':_0x536f7c(0x13b),'CrsLi':function(_0x21840d,_0x1f322b){return _0x21840d(_0x1f322b);},'uPSWa':function(_0x4c5a9e,_0x3bfb08,_0x24e2e4){return _0x4c5a9e(_0x3bfb08,_0x24e2e4);},'XhQIy':_0x536f7c(0x13c),'TRlpv':function(_0x3b50ae,_0xb35cb8){return _0x3b50ae(_0xb35cb8);},'ZoImL':function(_0x2fe60c){return _0x2fe60c();},'rbplD':_0x536f7c(0xd4),'lbyRT':function(_0x2cf35b,_0x33f841){return _0x2cf35b(_0x33f841);},'sjUiD':_0x536f7c(0x112),'inhpb':'install','vIeAQ':function(_0xdc927f,_0x5d49e5){return _0xdc927f===_0x5d49e5;},'GotSn':function(_0x4593c3){return _0x4593c3();},'DwYCQ':function(_0x334987,_0xe9db2d,_0x3e2f5d){return _0x334987(_0xe9db2d,_0x3e2f5d);},'yonbl':function(_0x5d8cbc,_0x5ba0e1,_0x3cb02c){return _0x5d8cbc(_0x5ba0e1,_0x3cb02c);}},_0x4348df=_0x3d220e[_0x536f7c(0xdc)](getEnvDir,_0x2619ee),_0x3d6b37=join(_0x4348df,'auth.json.enc'),_0x5ca92e=_0x3d220e['uPSWa'](join,_0x4348df,_0x3d220e[_0x536f7c(0x142)]);let _0x3c97c6,_0x4fd583;if(existsSync(_0x3d6b37))try{const _0x56275d=await getToken();if(!_0x56275d)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x23ed58=await readFile(_0x3d6b37),_0x2621c9=decrypt(_0x23ed58,_0x56275d);_0x4fd583=join(tmpdir(),_0x536f7c(0xdf)+Date[_0x536f7c(0x11e)]()+'.json'),await writeFile(_0x4fd583,_0x2621c9),_0x3c97c6=_0x4fd583;}catch(_0x440061){const _0x98217a=_0x440061 instanceof Error?_0x440061['message']:_0x3d220e['TRlpv'](String,_0x440061);throw new Error(_0x536f7c(0x132)+_0x98217a);}else _0x3d220e[_0x536f7c(0xe1)](existsSync,_0x5ca92e)&&(_0x3c97c6=_0x5ca92e);const _0x15a1c7=_0x213c1e||_0x3d220e['ZoImL'](randomUUID),_0x38b680=join(getRangerDir(),_0x3d220e['rbplD'],_0x15a1c7),_0xc93d8b=_0x3d220e['lbyRT'](Boolean,_0x2bb9f9['cdpEndpoint']),_0x19293d=_0xc93d8b?{'browserName':_0x3d220e[_0x536f7c(0xe6)],'cdpEndpoint':_0x2bb9f9['cdpEndpoint']}:((()=>{const _0x3b03e6=_0x536f7c,{launchOptions:_0x322799,contextOptions:_0x32b6db}=_0x3d220e[_0x3b03e6(0xd7)](buildBrowserOptionsFromSettings,_0x2bb9f9,{'headless':_0x3ad7a8?![]:_0x2bb9f9['headless']??!![],'storageStatePath':_0x3c97c6});if(_0x3d220e[_0x3b03e6(0xf7)](process[_0x3b03e6(0x125)]?.(),0x0)){const _0x35d891=[_0x3d220e['IOtLA'],_0x3d220e['fRfUQ']],_0x879d6f=_0x322799['args']??[],_0x29b6fe=_0x35d891[_0x3b03e6(0xd5)](_0x48f423=>!_0x879d6f[_0x3b03e6(0x137)](_0x48f423));_0x322799[_0x3b03e6(0x107)]=[..._0x879d6f,..._0x29b6fe];}return{'isolated':!![],'browserName':_0x3d220e['PgRvQ'],'launchOptions':_0x322799,'contextOptions':{..._0x32b6db,'permissions':[_0x3b03e6(0x103),_0x3d220e[_0x3b03e6(0x122)]],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x436017={'name':_0x2619ee,'browser':_0x19293d,'capabilities':[_0x3d220e['sjUiD'],'tabs',_0x3d220e['inhpb'],'pdf',_0x536f7c(0x10a)],'imageResponses':_0x536f7c(0xf3),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x38b680};if(!_0xc93d8b){const _0x43a299=_0x436017[_0x536f7c(0x130)],_0x4726f0=_0x43a299['contextOptions'];if(_0x4726f0['userAgent']===undefined)delete _0x4726f0['userAgent'];if(_0x3d220e['vIeAQ'](_0x4726f0['storageState'],undefined))delete _0x4726f0['storageState'];}const _0x20a5cc=_0x3d220e[_0x536f7c(0xd7)](join,_0x3d220e[_0x536f7c(0x105)](tmpdir),_0x536f7c(0x129));!existsSync(_0x20a5cc)&&await mkdir(_0x20a5cc,{'recursive':!![]});const _0x50afa0=_0x3d220e[_0x536f7c(0x143)](join,_0x20a5cc,_0x2619ee+'-'+Date[_0x536f7c(0x11e)]()+'.json');return await _0x3d220e['yonbl'](writeFile,_0x50afa0,JSON[_0x536f7c(0x134)](_0x436017,null,0x2)),{'configPath':_0x50afa0,'tempAuthPath':_0x4fd583};}export async function buildPlaywrightCliConfig(_0x5cbbd3,_0x381923,_0x57640d,_0x1dd3d7){const _0x379be9=_0x57b256,_0x1c2393={'oPeNH':function(_0x38f66b,_0x1c21c9){return _0x38f66b===_0x1c21c9;},'OrFeT':_0x379be9(0xd6),'dZtwh':'clipboard-read','yolxd':function(_0x5c047f,_0x3f2abb,_0x43a462){return _0x5c047f(_0x3f2abb,_0x43a462);},'zBxfr':_0x379be9(0xe4),'bsCaT':function(_0x4ac01d,_0x5399f0,_0x3fd4e4){return _0x4ac01d(_0x5399f0,_0x3fd4e4);},'IYmEW':'auth.json','OQKMK':function(_0x457b40){return _0x457b40();},'cHBgR':function(_0x2151e0,_0xce7530){return _0x2151e0(_0xce7530);},'bVPxR':function(_0x491678){return _0x491678();},'mqbBH':function(_0x3f589f,_0x35692f,_0x19aadc){return _0x3f589f(_0x35692f,_0x19aadc);},'yHorb':function(_0x112a04,_0x28a448){return _0x112a04 instanceof _0x28a448;},'Mckqe':function(_0x5a2461,_0x473f84){return _0x5a2461(_0x473f84);},'DcFpM':function(_0x211777,_0x976248,_0x2060f2,_0x421ace){return _0x211777(_0x976248,_0x2060f2,_0x421ace);},'xAcMD':_0x379be9(0xd4),'wKURZ':function(_0x52b54b){return _0x52b54b();},'BdPbz':_0x379be9(0x129),'DNcNo':function(_0x4108b8,_0x38f9b9,_0x3e3b0f){return _0x4108b8(_0x38f9b9,_0x3e3b0f);}},_0x44c636=getEnvDir(_0x381923),_0x1d9534=_0x1c2393['yolxd'](join,_0x44c636,_0x1c2393[_0x379be9(0x138)]),_0x11b20a=_0x1c2393['bsCaT'](join,_0x44c636,_0x1c2393['IYmEW']);let _0x1c9329,_0x26b217;if(existsSync(_0x1d9534))try{const _0x11709e=await _0x1c2393[_0x379be9(0x11c)](getToken);if(!_0x11709e)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x287c78=await _0x1c2393[_0x379be9(0xe7)](readFile,_0x1d9534),_0x31e5c0=decrypt(_0x287c78,_0x11709e);_0x26b217=join(_0x1c2393['bVPxR'](tmpdir),_0x379be9(0xdf)+Date['now']()+_0x379be9(0xf9)),await _0x1c2393['mqbBH'](writeFile,_0x26b217,_0x31e5c0),_0x1c9329=_0x26b217;}catch(_0x1b3cec){const _0x40b49d=_0x1c2393['yHorb'](_0x1b3cec,Error)?_0x1b3cec[_0x379be9(0x110)]:String(_0x1b3cec);throw new Error(_0x379be9(0x132)+_0x40b49d);}else _0x1c2393[_0x379be9(0xd2)](existsSync,_0x11b20a)&&(_0x1c9329=_0x11b20a);const _0xb74060=_0x57640d||_0x1c2393[_0x379be9(0xff)](randomUUID),_0x482ef9=_0x1c2393[_0x379be9(0xed)](join,_0x1c2393[_0x379be9(0x11c)](getRangerDir),_0x1c2393[_0x379be9(0x118)],_0xb74060),_0x25600c=Boolean(_0x5cbbd3[_0x379be9(0x101)]),_0x222d2b=_0x25600c?{'browserName':'chromium','cdpEndpoint':_0x5cbbd3[_0x379be9(0x101)]}:((()=>{const _0x87cb01=_0x379be9,{launchOptions:_0x29cd7b,contextOptions:_0x5dfcc1}=buildBrowserOptionsFromSettings(_0x5cbbd3,{'headless':_0x1dd3d7?![]:_0x5cbbd3[_0x87cb01(0x106)]??!![],'storageStatePath':_0x1c9329});if(_0x1c2393[_0x87cb01(0xf6)](process[_0x87cb01(0x125)]?.(),0x0)){const _0x44499d=[_0x87cb01(0x10f),_0x1c2393[_0x87cb01(0x10b)]],_0x1a0018=_0x29cd7b[_0x87cb01(0x107)]??[],_0x4b9516=_0x44499d[_0x87cb01(0xd5)](_0x3a3bd4=>!_0x1a0018[_0x87cb01(0x137)](_0x3a3bd4));_0x29cd7b[_0x87cb01(0x107)]=[..._0x1a0018,..._0x4b9516];}return{'isolated':!![],'browserName':_0x87cb01(0x12e),'launchOptions':_0x29cd7b,'contextOptions':{..._0x5dfcc1,'permissions':[_0x1c2393[_0x87cb01(0xcd)],_0x87cb01(0x13b)],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x25600c){const _0x1f40a7=_0x222d2b['contextOptions'];if(_0x1c2393[_0x379be9(0xf6)](_0x1f40a7[_0x379be9(0x13e)],undefined))delete _0x1f40a7[_0x379be9(0x13e)];if(_0x1f40a7[_0x379be9(0xe8)]===undefined)delete _0x1f40a7['storageState'];}const _0x166488={'browser':_0x222d2b,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x482ef9,'outputMode':_0x379be9(0x108),'codegen':_0x379be9(0x109)},_0x61e789=_0x1c2393[_0x379be9(0xec)](join,_0x1c2393['wKURZ'](tmpdir),_0x1c2393[_0x379be9(0x115)]);!existsSync(_0x61e789)&&await mkdir(_0x61e789,{'recursive':!![]});const _0x4e5eba=_0x1c2393['DNcNo'](join,_0x61e789,_0x381923+'-'+Date['now']()+_0x379be9(0x11b));return await _0x1c2393['bsCaT'](writeFile,_0x4e5eba,JSON[_0x379be9(0x134)](_0x166488,null,0x2)),{'configPath':_0x4e5eba,'tempAuthPath':_0x26b217};}export function getNestedValue(_0x350708,_0x3e66ab){const _0x26da55=_0x57b256,_0xa1c388={'ffuFH':function(_0x5d4905,_0x4e616d){return _0x5d4905===_0x4e616d;},'QfmGE':function(_0x2a35ee,_0x2b24ac){return _0x2a35ee!==_0x2b24ac;}},_0x16d38a=parseKeyPath(_0x3e66ab);let _0x196739=_0x350708;for(const _0x10c0da of _0x16d38a){if(_0xa1c388['ffuFH'](_0x196739,null)||_0x196739===undefined||_0xa1c388[_0x26da55(0x13d)](typeof _0x196739,'object'))return undefined;_0x196739=_0x196739[_0x10c0da];}return _0x196739;}export function setNestedValue(_0x5cb873,_0x143490,_0x2c343b){const _0x2deb19=_0x57b256,_0x13322e={'kIfIm':function(_0x5832da,_0x1d50c9){return _0x5832da(_0x1d50c9);},'vmRIk':function(_0x20a63a,_0x1d4ae2){return _0x20a63a in _0x1d4ae2;}},_0x365326=_0x13322e[_0x2deb19(0x12d)](parseKeyPath,_0x143490);let _0x2ce916=_0x5cb873;for(let _0x154f0d=0x0;_0x154f0d<_0x365326['length']-0x1;_0x154f0d++){const _0x314ad6=_0x365326[_0x154f0d];(!_0x13322e[_0x2deb19(0xe5)](_0x314ad6,_0x2ce916)||typeof _0x2ce916[_0x314ad6]!==_0x2deb19(0xf1))&&(_0x2ce916[_0x314ad6]={}),_0x2ce916=_0x2ce916[_0x314ad6];}_0x2ce916[_0x365326[_0x365326['length']-0x1]]=_0x2c343b;}function _0x3ccc(_0x113b59,_0x56e619){_0x113b59=_0x113b59-0xcc;const _0x41b87c=_0x41b8();let _0x3ccc3f=_0x41b87c[_0x113b59];return _0x3ccc3f;}export function deleteNestedValue(_0x3c3238,_0xe5408a){const _0x337188=_0x57b256,_0x32e1ed={'sKqfQ':function(_0x2d2996,_0x53b333){return _0x2d2996(_0x53b333);},'IIEfN':function(_0x4d267d,_0x26e9c8){return _0x4d267d<_0x26e9c8;},'nRbbK':function(_0x41ef7c,_0x4f75bf){return _0x41ef7c===_0x4f75bf;},'lbUOy':_0x337188(0xf1),'aJkCi':function(_0x1551c1,_0x544090){return _0x1551c1===_0x544090;}},_0x2742f6=_0x32e1ed[_0x337188(0xdd)](parseKeyPath,_0xe5408a);let _0x10b888=_0x3c3238;for(let _0x4e1ced=0x0;_0x32e1ed['IIEfN'](_0x4e1ced,_0x2742f6['length']-0x1);_0x4e1ced++){if(_0x32e1ed['nRbbK'](_0x10b888,null)||_0x10b888===undefined||typeof _0x10b888!==_0x32e1ed[_0x337188(0x10e)])return![];_0x10b888=_0x10b888[_0x2742f6[_0x4e1ced]];}if(_0x10b888===null||_0x32e1ed['aJkCi'](_0x10b888,undefined)||typeof _0x10b888!==_0x337188(0xf1))return![];const _0x4e07c0=_0x2742f6[_0x2742f6['length']-0x1];if(_0x4e07c0 in _0x10b888)return delete _0x10b888[_0x4e07c0],!![];return![];}function parseKeyPath(_0x149c55){const _0x358f8b=_0x57b256,_0x10905d={'NLLlS':_0x358f8b(0xcc),'dJjdY':function(_0x38845a,_0x43480a){return _0x38845a===_0x43480a;},'CkzlX':'setupHeaders'},_0x57f11f=_0x149c55[_0x358f8b(0xee)]('.');return _0x57f11f[0x0]===_0x10905d['NLLlS']&&(_0x57f11f[0x0]='headers'),_0x10905d[_0x358f8b(0x123)](_0x57f11f[0x0],'setupHeader')&&(_0x57f11f[0x0]=_0x10905d['CkzlX']),_0x57f11f;}export function formatSettings(_0x538991,_0x301c6e=0x0){const _0x57add3=_0x57b256,_0x4c3cab={'uInds':function(_0x284c53,_0x3f4ce0){return _0x284c53===_0x3f4ce0;},'jfqCn':function(_0x26c919,_0x12ab04){return _0x26c919===_0x12ab04;},'mYKjQ':function(_0x9b7ea,_0x5b968c){return _0x9b7ea!==_0x5b968c;}},_0x122d9d=[],_0x5b3001='\x20\x20'[_0x57add3(0x144)](_0x301c6e);for(const [_0x440d6d,_0x358878]of Object['entries'](_0x538991)){if(_0x4c3cab['uInds'](_0x358878,undefined))continue;if(_0x4c3cab['jfqCn'](typeof _0x358878,'object')&&_0x4c3cab[_0x57add3(0xd3)](_0x358878,null)){_0x122d9d['push'](''+_0x5b3001+_0x440d6d+':');for(const [_0x372706,_0x5ea932]of Object[_0x57add3(0xf5)](_0x358878)){_0x122d9d[_0x57add3(0x120)](_0x5b3001+'\x20\x20'+_0x372706+':\x20'+_0x5ea932);}}else _0x122d9d['push'](''+_0x5b3001+_0x440d6d+':\x20'+_0x358878);}return _0x122d9d[_0x57add3(0xf0)]('\x0a');}function _0x41b8(){const _0x1bd1ab=['lEevM','dJjdY','308546WpwRqR','getuid','launchOptions','258840YHqEej','utf-8','ranger-config','3275vhieVh','local','AYtpW','kIfIm','chromium','env','browser','11cTUROH','Failed\x20to\x20decrypt\x20auth\x20state:\x20','ignoreHTTPSErrors','stringify','string','FAllw','includes','zBxfr','FNboY','safeMode','clipboard-write','auth.json','QfmGE','userAgent','headers','configPath','contextOptions','XhQIy','DwYCQ','repeat','code','header','dZtwh','parse','--unsafely-treat-insecure-origin-as-secure=http://localhost','boolean','qDtDr','Mckqe','mYKjQ','sessions','filter','--disable-setuid-sandbox','wxeeB','settings.json','--allow-running-insecure-content','all','fPcUy','CrsLi','sKqfQ','warn','ranger-auth-','38352WofPUG','TRlpv','extraHTTPHeaders','location','auth.json.enc','vmRIk','PgRvQ','cHBgR','storageState','TaLKL','558qafOQs','NBPlq','mqbBH','DcFpM','split','uahku','join','object','SxQkU','allow','storageStatePath','entries','oPeNH','cSYjj','--disable-web-security','.json','tempAuthPath','KLOiL','Environment\x20variable\x20','3357740NztSIQ','QxOCu','bVPxR','QTOiS','cdpEndpoint','dhJyT','clipboard-read','9YpehPO','GotSn','headless','args','file','none','vision','OrFeT','483wHtCcV','213KLKxoJ','lbUOy','--no-sandbox','message','legacy','core','lsKRI','path','BdPbz','dTdfm','length','xAcMD','allowInsecureLocalhost','isArray','-cli.json','OQKMK','map','now','7091256xsvWom','push','15188cohEOA'];_0x41b8=function(){return _0x1bd1ab;};return _0x41b8();}
@@ -1 +1 @@
1
- function _0x2306(_0x27cf02,_0x134d45){_0x27cf02=_0x27cf02-0x1f2;const _0x369933=_0x3699();let _0x230608=_0x369933[_0x27cf02];return _0x230608;}(function(_0x1cf22a,_0x61481f){const _0x180eaf=_0x2306,_0x1f9c1c=_0x1cf22a();while(!![]){try{const _0x3957c3=parseInt(_0x180eaf(0x1f8))/0x1*(-parseInt(_0x180eaf(0x1f7))/0x2)+-parseInt(_0x180eaf(0x1f6))/0x3*(parseInt(_0x180eaf(0x1f3))/0x4)+-parseInt(_0x180eaf(0x1fa))/0x5+-parseInt(_0x180eaf(0x1fb))/0x6*(parseInt(_0x180eaf(0x1f5))/0x7)+-parseInt(_0x180eaf(0x1f9))/0x8+-parseInt(_0x180eaf(0x1fc))/0x9+parseInt(_0x180eaf(0x1f2))/0xa*(parseInt(_0x180eaf(0x1f4))/0xb);if(_0x3957c3===_0x61481f)break;else _0x1f9c1c['push'](_0x1f9c1c['shift']());}catch(_0xf612c){_0x1f9c1c['push'](_0x1f9c1c['shift']());}}}(_0x3699,0xb6440));import{readFileSync}from'fs';function _0x3699(){const _0x38bb72=['208234DJcBFm','2thpSod','2546600HAkRXQ','5033305GhUbFP','18DGuHzy','12236382XGRmFA','utf-8','30QKEgQa','209724lxPJEK','19082679VFYLiL','3406963NjFRoV','6nGIocq'];_0x3699=function(){return _0x38bb72;};return _0x3699();}import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x5702ec){const _0x21278e=_0x2306,_0x37f6a9={'jatLi':'skills','EuOTz':_0x21278e(0x1fd)},_0x5e3b31=join(__dirname,'..','..',_0x37f6a9['jatLi']),_0x569648=join(_0x5e3b31,_0x5702ec);try{return readFileSync(_0x569648,_0x37f6a9['EuOTz']);}catch{return'';}}export function getRangerSkillContent(){return readSkillContent('ranger/SKILL.md');}
1
+ (function(_0x402599,_0x30ebe7){const _0x1d4891=_0x5e30,_0x277b32=_0x402599();while(!![]){try{const _0xd8744b=parseInt(_0x1d4891(0xbb))/0x1+-parseInt(_0x1d4891(0xbc))/0x2+parseInt(_0x1d4891(0xbd))/0x3*(-parseInt(_0x1d4891(0xb7))/0x4)+-parseInt(_0x1d4891(0xc1))/0x5*(-parseInt(_0x1d4891(0xc2))/0x6)+parseInt(_0x1d4891(0xb9))/0x7*(parseInt(_0x1d4891(0xb8))/0x8)+parseInt(_0x1d4891(0xbf))/0x9*(-parseInt(_0x1d4891(0xba))/0xa)+parseInt(_0x1d4891(0xbe))/0xb;if(_0xd8744b===_0x30ebe7)break;else _0x277b32['push'](_0x277b32['shift']());}catch(_0x23423b){_0x277b32['push'](_0x277b32['shift']());}}}(_0x5d7b,0x487fd));import{readFileSync}from'fs';import{dirname,join}from'path';function _0x5e30(_0x489991,_0x506036){_0x489991=_0x489991-0xb7;const _0x5d7be9=_0x5d7b();let _0x5e30df=_0x5d7be9[_0x489991];return _0x5e30df;}import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x3ee2c6){const _0x4503bd={'LtUbF':'utf-8'},_0x4bbe8c=join(__dirname,'..','..','skills'),_0x5bccf9=join(_0x4bbe8c,_0x3ee2c6);try{return readFileSync(_0x5bccf9,_0x4503bd['LtUbF']);}catch{return'';}}export function getRangerSkillContent(){const _0x14b492=_0x5e30,_0x4db122={'QTJik':_0x14b492(0xc0)};return readSkillContent(_0x4db122['QTJik']);}function _0x5d7b(){const _0x3b15f7=['53224NDGKIT','14cvTjna','19350gWRGnt','578315snQhJD','1079184LcAWwN','84306cpUQvq','8193911ncuoOq','1719lWSNYl','ranger/SKILL.md','365mAucgJ','37788ECVbpt','84blOorl'];_0x5d7b=function(){return _0x3b15f7;};return _0x5d7b();}
@@ -1 +1 @@
1
- const _0x5381d9=_0x2a9f;(function(_0x4abc94,_0x2b0b60){const _0x144072=_0x2a9f,_0x583ec2=_0x4abc94();while(!![]){try{const _0x454d40=parseInt(_0x144072(0x11f))/0x1+-parseInt(_0x144072(0x10f))/0x2*(-parseInt(_0x144072(0x10b))/0x3)+-parseInt(_0x144072(0x117))/0x4*(parseInt(_0x144072(0x11b))/0x5)+parseInt(_0x144072(0x116))/0x6+-parseInt(_0x144072(0x125))/0x7*(-parseInt(_0x144072(0x108))/0x8)+parseInt(_0x144072(0x10d))/0x9*(parseInt(_0x144072(0x107))/0xa)+-parseInt(_0x144072(0x10e))/0xb*(parseInt(_0x144072(0x111))/0xc);if(_0x454d40===_0x2b0b60)break;else _0x583ec2['push'](_0x583ec2['shift']());}catch(_0x29759f){_0x583ec2['push'](_0x583ec2['shift']());}}}(_0x2d80,0x62da5));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';function _0x2d80(){const _0x55b3b5=['zRDWF','ZvojA','\x20\x20Removed\x20deprecated\x20skill:\x20','feature-tracker','QdDnp','\x20\x20Files:\x20','dKmlv','nwuJR','1142630nxbrvV','8YhlEdu','GQKFl','IIeub','3GtYbnQ','bug-bash','9IfkDMP','553905IdfwMg','174358WilUeW','warn','60zejzuZ','\x20\x20Location:\x20','.md','dURqB','push','83082GEorDB','8rweHDM','claude','join','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','1881960ajiYMB','match','TadXF','PWGQG','731873VEyuJG','utf-8','e2e-test-recommender','ranger','PjiqA','oXcoP','3236086aDHCvk','\x20\x20Installed\x20skill:\x20','log','catch','kcaKS','XiCdO'];_0x2d80=function(){return _0x55b3b5;};return _0x2d80();}function _0x2a9f(_0x269bdc,_0x506536){_0x269bdc=_0x269bdc-0x107;const _0x2d80d4=_0x2d80();let _0x2a9fc9=_0x2d80d4[_0x269bdc];return _0x2a9fc9;}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x5381d9(0x122)];export const DEPRECATED_SKILLS=[_0x5381d9(0x121),_0x5381d9(0x10c),_0x5381d9(0x12e)];export async function installSkill(_0x1a8ce3,_0x86c380={}){const _0x3cda21=_0x5381d9,_0xb7c938={'zRDWF':'project','GQKFl':function(_0x5d0e77){return _0x5d0e77();},'XiCdO':function(_0x387e75,_0x1c20fa,_0x4c4129){return _0x387e75(_0x1c20fa,_0x4c4129);},'QdDnp':function(_0x3f1a64,_0x46d238){return _0x3f1a64(_0x46d238);},'PWGQG':'SKILL.md','nwuJR':function(_0x5587a8,_0x4264d7){return _0x5587a8===_0x4264d7;},'TadXF':'opencode','xtAGW':function(_0x34760f,_0x3740bc,_0x489b3a){return _0x34760f(_0x3740bc,_0x489b3a);},'oXcoP':function(_0x47c3bd,_0x48402b,_0x31b453){return _0x47c3bd(_0x48402b,_0x31b453);},'IIeub':_0x3cda21(0x120),'EQfKt':function(_0x4e755b,_0x4a76c7,_0x2af9fd){return _0x4e755b(_0x4a76c7,_0x2af9fd);},'ZvojA':function(_0x2786dd,_0x556a37,_0x21cc94,_0x3aeea0){return _0x2786dd(_0x556a37,_0x21cc94,_0x3aeea0);},'PjiqA':function(_0x72fe9b,_0x3a8da2){return _0x72fe9b>_0x3a8da2;}},{level:level=_0xb7c938[_0x3cda21(0x12b)],cliVersion:_0x58c09a,platform:platform=_0x3cda21(0x118)}=_0x86c380,_0x938c8e=_0xb7c938[_0x3cda21(0x109)](getSourceSkillsDir),_0x814ab9=join(_0x938c8e,_0x1a8ce3),_0x391db1=_0xb7c938[_0x3cda21(0x12a)](join,_0x938c8e,_0x1a8ce3+_0x3cda21(0x113)),_0x1880af=_0xb7c938[_0x3cda21(0x12f)](existsSync,_0x814ab9)&&_0xb7c938[_0x3cda21(0x12f)](statSync,_0x814ab9)['isDirectory']()&&existsSync(_0xb7c938[_0x3cda21(0x12a)](join,_0x814ab9,_0xb7c938['PWGQG'])),_0x19d790=_0xb7c938[_0x3cda21(0x12f)](existsSync,_0x391db1);if(!_0x1880af&&!_0x19d790)return console['warn']('\x20\x20Skill\x20not\x20found:\x20'+_0x1a8ce3),![];const _0x1a1519=_0xb7c938[_0x3cda21(0x132)](platform,_0xb7c938[_0x3cda21(0x11d)])?getOpencodeSkillsDir(level):getSkillsDir(level),_0x5a81ee=join(_0x1a1519,_0x1a8ce3);await _0xb7c938['xtAGW'](mkdir,_0x5a81ee,{'recursive':!![]});let _0x590573,_0x10764c=[];if(_0x1880af){const _0x5d74c1=await readdir(_0x814ab9),_0x3bc900=_0x5d74c1['filter'](_0x6df991=>_0x6df991['endsWith'](_0x3cda21(0x113)));for(const _0x5ca6a4 of _0x3bc900){const _0x2a5815=join(_0x814ab9,_0x5ca6a4),_0x2c307d=_0xb7c938[_0x3cda21(0x124)](join,_0x5a81ee,_0x5ca6a4);await copyFile(_0x2a5815,_0x2c307d),_0x10764c[_0x3cda21(0x115)](_0x5ca6a4);}_0x590573=await _0xb7c938['XiCdO'](readFile,join(_0x814ab9,_0xb7c938['PWGQG']),_0xb7c938[_0x3cda21(0x10a)]);}else{_0x590573=await readFile(_0x391db1,_0x3cda21(0x120));const _0xaf6725=_0xb7c938['EQfKt'](join,_0x5a81ee,_0xb7c938['PWGQG']);await _0xb7c938[_0x3cda21(0x12c)](writeFile,_0xaf6725,_0x590573,'utf-8'),_0x10764c['push'](_0xb7c938[_0x3cda21(0x11e)]);}const {name:_0x2a8821}=parseFrontmatter(_0x590573);return console['log'](_0x3cda21(0x126)+_0x2a8821),console[_0x3cda21(0x127)](_0x3cda21(0x112)+_0x5a81ee),_0xb7c938[_0x3cda21(0x123)](_0x10764c['length'],0x1)&&console['log'](_0x3cda21(0x130)+_0x10764c[_0x3cda21(0x119)](',\x20')),_0xb7c938[_0x3cda21(0x12c)](logLocalAgentInstallation,_0x1a8ce3,{'skillDisplayName':_0x2a8821,'installLevel':level},_0x58c09a)[_0x3cda21(0x128)](()=>{}),!![];}function getSourceSkillsDir(){const _0x3a0485=_0x5381d9,_0xcc2e5d={'kcaKS':'skills','dURqB':function(_0x54519d,_0x5c467f){return _0x54519d(_0x5c467f);}},_0xfd6339=[join(__dirname,'..','..',_0xcc2e5d[_0x3a0485(0x129)]),join(__dirname,'..','..','..',_0xcc2e5d[_0x3a0485(0x129)])];for(const _0x48e2fa of _0xfd6339){if(_0xcc2e5d[_0x3a0485(0x114)](existsSync,_0x48e2fa))return _0x48e2fa;}return _0xfd6339[0x0];}function parseFrontmatter(_0x4cdd13){const _0x219b9e=_0x5381d9,_0xc11fd5=_0x4cdd13['match'](/^---\n([\s\S]+?)\n---/);if(!_0xc11fd5)throw new Error('Invalid\x20skill\x20frontmatter');const _0x1472b1=_0xc11fd5[0x1],_0x14731d=_0x1472b1[_0x219b9e(0x11c)](/name:\s*(.+)/),_0x1a2954=_0x1472b1['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0x14731d?.[0x1]['trim']()||'','description':_0x1a2954?.[0x1]['trim']()||''};}export async function removeSkill(_0x18615d,_0x18d501){const _0x281553=_0x5381d9,_0x4947ba={'dKmlv':function(_0x25c120,_0x59181e,_0x5c9387){return _0x25c120(_0x59181e,_0x5c9387);}},_0x560d34=getSkillsDir(_0x18d501),_0x45c08c=_0x4947ba[_0x281553(0x131)](join,_0x560d34,_0x18615d);if(!existsSync(_0x45c08c))return![];try{return await rm(_0x45c08c,{'recursive':!![]}),console[_0x281553(0x127)](_0x281553(0x12d)+_0x18615d),!![];}catch{return console[_0x281553(0x110)](_0x281553(0x11a)+_0x18615d),![];}}
1
+ function _0x35ef(_0x517b6b,_0x5e93da){_0x517b6b=_0x517b6b-0x120;const _0x248360=_0x2483();let _0x35efdd=_0x248360[_0x517b6b];return _0x35efdd;}const _0x5d4958=_0x35ef;(function(_0x3f418f,_0x5dea5){const _0x2dd7f6=_0x35ef,_0x16e317=_0x3f418f();while(!![]){try{const _0x14e8c5=parseInt(_0x2dd7f6(0x120))/0x1*(-parseInt(_0x2dd7f6(0x13b))/0x2)+parseInt(_0x2dd7f6(0x132))/0x3+parseInt(_0x2dd7f6(0x123))/0x4+parseInt(_0x2dd7f6(0x136))/0x5*(-parseInt(_0x2dd7f6(0x145))/0x6)+parseInt(_0x2dd7f6(0x144))/0x7*(-parseInt(_0x2dd7f6(0x142))/0x8)+-parseInt(_0x2dd7f6(0x121))/0x9*(-parseInt(_0x2dd7f6(0x140))/0xa)+-parseInt(_0x2dd7f6(0x129))/0xb;if(_0x14e8c5===_0x5dea5)break;else _0x16e317['push'](_0x16e317['shift']());}catch(_0xf0da9e){_0x16e317['push'](_0x16e317['shift']());}}}(_0x2483,0xe4ab5));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';function _0x2483(){const _0x4dbb4d=['6633968BbGwFw','ranger','feature-tracker','isDirectory','claude','\x20\x20Skill\x20not\x20found:\x20','warn','MwjYS','e2e-test-recommender','4912635wiMniZ','push','gtJeC','Invalid\x20skill\x20frontmatter','5TaolOG','join','jLUBm','log','opencode','12eSZKaf','endsWith','UeVEJ','match','\x20\x20Location:\x20','4823190VrjWgp','SKILL.md','7001976gSxgeY','uCYaU','7EGgptX','11096346eHFBDu','project','89017BkuYjk','27mTCKWR','SZogs','6855820xWObsv','trim','CoPUB','VlNcf','HUcrH','utf-8'];_0x2483=function(){return _0x4dbb4d;};return _0x2483();}import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x5d4958(0x12a)];export const DEPRECATED_SKILLS=[_0x5d4958(0x131),'bug-bash',_0x5d4958(0x12b)];export async function installSkill(_0x43aa75,_0x2c35df={}){const _0x599c2c=_0x5d4958,_0x549cb7={'UpAcZ':_0x599c2c(0x12d),'HUcrH':function(_0x51e5d0,_0x41cc83,_0xbf5a02){return _0x51e5d0(_0x41cc83,_0xbf5a02);},'gtJeC':function(_0x284d5f,_0x25d332){return _0x284d5f(_0x25d332);},'jLUBm':_0x599c2c(0x141),'SZogs':function(_0x309600,_0x5b6db9){return _0x309600===_0x5b6db9;},'VlNcf':function(_0x557e6e,_0x1123ec){return _0x557e6e(_0x1123ec);},'BmSGJ':_0x599c2c(0x128),'fTyWb':function(_0x5ac8e4,_0x2c3034,_0x580a3a){return _0x5ac8e4(_0x2c3034,_0x580a3a);},'CoPUB':function(_0x18547d,_0x10b8e3,_0x49b347,_0x5c2daa){return _0x18547d(_0x10b8e3,_0x49b347,_0x5c2daa);},'vHTqG':function(_0x119cfa,_0x40c69c){return _0x119cfa>_0x40c69c;}},{level:level=_0x599c2c(0x146),cliVersion:_0x200871,platform:platform=_0x549cb7['UpAcZ']}=_0x2c35df,_0x6be351=getSourceSkillsDir(),_0x2bc0f8=_0x549cb7['HUcrH'](join,_0x6be351,_0x43aa75),_0x4e9456=join(_0x6be351,_0x43aa75+'.md'),_0x2e6769=_0x549cb7['gtJeC'](existsSync,_0x2bc0f8)&&_0x549cb7[_0x599c2c(0x134)](statSync,_0x2bc0f8)[_0x599c2c(0x12c)]()&&_0x549cb7['gtJeC'](existsSync,_0x549cb7['HUcrH'](join,_0x2bc0f8,_0x549cb7[_0x599c2c(0x138)])),_0x33bc63=existsSync(_0x4e9456);if(!_0x2e6769&&!_0x33bc63)return console[_0x599c2c(0x12f)](_0x599c2c(0x12e)+_0x43aa75),![];const _0x278745=_0x549cb7[_0x599c2c(0x122)](platform,_0x599c2c(0x13a))?getOpencodeSkillsDir(level):getSkillsDir(level),_0x4d378e=_0x549cb7[_0x599c2c(0x127)](join,_0x278745,_0x43aa75);await _0x549cb7[_0x599c2c(0x127)](mkdir,_0x4d378e,{'recursive':!![]});let _0x2d6761,_0x3a8721=[];if(_0x2e6769){const _0x1eeb0a=await _0x549cb7[_0x599c2c(0x126)](readdir,_0x2bc0f8),_0x5047cf=_0x1eeb0a['filter'](_0xd4c262=>_0xd4c262[_0x599c2c(0x13c)]('.md'));for(const _0x128a09 of _0x5047cf){const _0x2b546c=_0x549cb7['HUcrH'](join,_0x2bc0f8,_0x128a09),_0x207061=_0x549cb7[_0x599c2c(0x127)](join,_0x4d378e,_0x128a09);await copyFile(_0x2b546c,_0x207061),_0x3a8721[_0x599c2c(0x133)](_0x128a09);}_0x2d6761=await readFile(join(_0x2bc0f8,_0x549cb7['jLUBm']),_0x549cb7['BmSGJ']);}else{_0x2d6761=await _0x549cb7[_0x599c2c(0x127)](readFile,_0x4e9456,_0x599c2c(0x128));const _0x135410=_0x549cb7['fTyWb'](join,_0x4d378e,_0x549cb7['jLUBm']);await _0x549cb7[_0x599c2c(0x125)](writeFile,_0x135410,_0x2d6761,_0x599c2c(0x128)),_0x3a8721[_0x599c2c(0x133)](_0x549cb7[_0x599c2c(0x138)]);}const {name:_0x2a6500}=_0x549cb7['VlNcf'](parseFrontmatter,_0x2d6761);return console['log']('\x20\x20Installed\x20skill:\x20'+_0x2a6500),console['log'](_0x599c2c(0x13f)+_0x4d378e),_0x549cb7['vHTqG'](_0x3a8721['length'],0x1)&&console['log']('\x20\x20Files:\x20'+_0x3a8721[_0x599c2c(0x137)](',\x20')),logLocalAgentInstallation(_0x43aa75,{'skillDisplayName':_0x2a6500,'installLevel':level},_0x200871)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x1cd63f=_0x5d4958,_0x3ade9d={'UeVEJ':function(_0x42e792,_0x3f4184,_0x5ee8ee,_0x36a6a9,_0x4dc96d,_0x4ccaab){return _0x42e792(_0x3f4184,_0x5ee8ee,_0x36a6a9,_0x4dc96d,_0x4ccaab);}},_0x4c9d35=[join(__dirname,'..','..','skills'),_0x3ade9d[_0x1cd63f(0x13d)](join,__dirname,'..','..','..','skills')];for(const _0x2e2dbe of _0x4c9d35){if(existsSync(_0x2e2dbe))return _0x2e2dbe;}return _0x4c9d35[0x0];}function parseFrontmatter(_0x1aac68){const _0x9f9ee1=_0x5d4958,_0x1ed862={'MwjYS':_0x9f9ee1(0x135)},_0x315011=_0x1aac68['match'](/^---\n([\s\S]+?)\n---/);if(!_0x315011)throw new Error(_0x1ed862[_0x9f9ee1(0x130)]);const _0x3e624b=_0x315011[0x1],_0x4eaf30=_0x3e624b['match'](/name:\s*(.+)/),_0x5a7d3b=_0x3e624b[_0x9f9ee1(0x13e)](/description:\s*"?(.+?)"?\n/);return{'name':_0x4eaf30?.[0x1][_0x9f9ee1(0x124)]()||'','description':_0x5a7d3b?.[0x1][_0x9f9ee1(0x124)]()||''};}export async function removeSkill(_0x21bb5c,_0x4ddd49){const _0x539131=_0x5d4958,_0x59446f={'uCYaU':function(_0x161338,_0x9ffea9,_0x555cc6){return _0x161338(_0x9ffea9,_0x555cc6);}},_0xe7fac9=getSkillsDir(_0x4ddd49),_0xfed6aa=_0x59446f[_0x539131(0x143)](join,_0xe7fac9,_0x21bb5c);if(!existsSync(_0xfed6aa))return![];try{return await rm(_0xfed6aa,{'recursive':!![]}),console[_0x539131(0x139)]('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x21bb5c),!![];}catch{return console['warn']('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x21bb5c),![];}}