@ranger-testing/ranger-cli 2.5.3 → 2.5.4-alpha.ed286f1-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) 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 -1
  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 +6 -2
@@ -1 +1 @@
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
+ (function(_0x2e2734,_0x341b66){const _0x2da91d=_0x2b93,_0xe7052=_0x2e2734();while(!![]){try{const _0x31cc0d=parseInt(_0x2da91d(0x18b))/0x1+-parseInt(_0x2da91d(0x165))/0x2+parseInt(_0x2da91d(0x18f))/0x3*(-parseInt(_0x2da91d(0x166))/0x4)+parseInt(_0x2da91d(0x191))/0x5+parseInt(_0x2da91d(0x154))/0x6*(-parseInt(_0x2da91d(0x170))/0x7)+-parseInt(_0x2da91d(0x190))/0x8*(parseInt(_0x2da91d(0x18a))/0x9)+parseInt(_0x2da91d(0x16d))/0xa;if(_0x31cc0d===_0x341b66)break;else _0xe7052['push'](_0xe7052['shift']());}catch(_0x3e3276){_0xe7052['push'](_0xe7052['shift']());}}}(_0x9e05,0xd437c));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(_0x4cd7d2){return typeof _0x4cd7d2==='object'&&_0x4cd7d2!==null;}function isImageBlock(_0x492f7d){const _0x53ba84=_0x2b93,_0x287728={'PsWVb':function(_0x6cfe97,_0x46f673){return _0x6cfe97===_0x46f673;}};return isRecord(_0x492f7d)&&_0x287728[_0x53ba84(0x180)](_0x492f7d[_0x53ba84(0x175)],'image');}function isDataUrl(_0x29ac56){const _0x454907=_0x2b93;return _0x29ac56['startsWith'](_0x454907(0x15f));}function parseDataUrl(_0xbac98b){const _0x27c4f1=_0x2b93,_0x1f266f={'cdBLp':function(_0x304115,_0x45c6af){return _0x304115(_0x45c6af);}},_0x227ae2=/^data:([^;]+);base64,(.+)$/['exec'](_0xbac98b);if(!_0x227ae2)return null;const _0x5b2149=_0x227ae2[0x1][_0x27c4f1(0x177)]();if(!_0x1f266f['cdBLp'](isValidMediaType,_0x5b2149))return null;return{'data':_0x227ae2[0x2],'mediaType':_0x5b2149};}function isValidMediaType(_0x2c5392){const _0x419ca4=_0x2b93,_0x53a744={'uiZWB':'image/png','khgSL':_0x419ca4(0x189),'rFKSZ':'image/webp'};return['image/jpeg',_0x53a744[_0x419ca4(0x16c)],_0x53a744[_0x419ca4(0x16b)],_0x53a744[_0x419ca4(0x155)]][_0x419ca4(0x159)](_0x2c5392);}function inferMediaType(_0x45a5ee,_0x399fdf){const _0x2575c9=_0x2b93,_0x2227f1={'KGnCi':function(_0x3935ad,_0x207dd1){return _0x3935ad(_0x207dd1);},'uIwzC':function(_0x5b0b3d,_0x21d4bc){return _0x5b0b3d(_0x21d4bc);},'mEXGR':_0x2575c9(0x17e),'tvgJk':_0x2575c9(0x185),'fZdeC':'png','lnsXP':_0x2575c9(0x189),'NaBZc':'webp'};if(_0x45a5ee){const _0x31cfbd=_0x45a5ee[_0x2575c9(0x177)]()['split'](';')[0x0]['trim']();if(_0x2227f1[_0x2575c9(0x17b)](isValidMediaType,_0x31cfbd))return _0x31cfbd;}const _0x14e679=_0x2227f1['uIwzC'](extname,_0x399fdf)['toLowerCase']()[_0x2575c9(0x174)]('.','');switch(_0x14e679){case _0x2227f1[_0x2575c9(0x16f)]:case _0x2227f1[_0x2575c9(0x15e)]:return'image/jpeg';case _0x2227f1['fZdeC']:return'image/png';case'gif':return _0x2227f1['lnsXP'];case _0x2227f1['NaBZc']:return'image/webp';default:return'image/png';}}async function readImageFromUrl(_0x1288dc){const _0x719bb2=_0x2b93,_0x15d617={'quMJA':function(_0x1fd059,_0x53f508){return _0x1fd059(_0x53f508);},'TcZKf':'Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','IkHHg':function(_0x927b56,_0x3386c7){return _0x927b56(_0x3386c7);},'etDjP':'http://','ASgmc':_0x719bb2(0x171),'gEWcv':function(_0x413774,_0x59846e){return _0x413774(_0x59846e);},'UzJIO':function(_0x49919e,_0x1715f0){return _0x49919e>_0x1715f0;},'eksvh':'base64','YWhiw':function(_0x51c9a2,_0x1613a1,_0x553f06){return _0x51c9a2(_0x1613a1,_0x553f06);}};if(_0x15d617['quMJA'](isDataUrl,_0x1288dc)){const _0x4cca54=parseDataUrl(_0x1288dc);if(_0x4cca54)return _0x4cca54;throw new Error(_0x15d617[_0x719bb2(0x182)]);}if(_0x1288dc[_0x719bb2(0x173)]('file://')){const _0x432e2d=fileURLToPath(_0x1288dc),_0x58545d=await stat(_0x432e2d);if(_0x58545d[_0x719bb2(0x187)]>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x461507=await _0x15d617['IkHHg'](readFile,_0x432e2d);return{'data':_0x461507[_0x719bb2(0x161)](_0x719bb2(0x186)),'mediaType':inferMediaType(null,_0x432e2d)};}if(_0x1288dc[_0x719bb2(0x173)](_0x15d617[_0x719bb2(0x179)])||_0x1288dc[_0x719bb2(0x173)]('https://')){const _0x15b4b8=await fetch(_0x1288dc,{'signal':AbortSignal['timeout'](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x15b4b8['ok'])throw new Error(_0x719bb2(0x168)+_0x15b4b8['status']);const _0x48917c=_0x15b4b8['headers']['get'](_0x15d617['ASgmc']);if(_0x48917c){const _0x95a476=_0x15d617['quMJA'](Number,_0x48917c);if(!Number[_0x719bb2(0x188)](_0x95a476)&&_0x95a476>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x719bb2(0x15b));}const _0x38ae46=await _0x15b4b8[_0x719bb2(0x183)]();if(_0x38ae46[_0x719bb2(0x157)]>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');return{'data':Buffer['from'](_0x38ae46)[_0x719bb2(0x161)]('base64'),'mediaType':inferMediaType(_0x15b4b8[_0x719bb2(0x158)][_0x719bb2(0x162)](_0x719bb2(0x17d)),_0x1288dc)};}const _0x184710=await _0x15d617['gEWcv'](stat,_0x1288dc);if(_0x15d617['UzJIO'](_0x184710[_0x719bb2(0x187)],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x719bb2(0x15b));const _0x1293f2=await readFile(_0x1288dc);return{'data':_0x1293f2[_0x719bb2(0x161)](_0x15d617[_0x719bb2(0x178)]),'mediaType':_0x15d617[_0x719bb2(0x169)](inferMediaType,null,_0x1288dc)};}async function convertImageBlockToBase64(_0x12d625){const _0x292d97=_0x2b93,_0x3bcd11={'zJWEB':function(_0xe519da,_0x134a94){return _0xe519da===_0x134a94;},'icxpl':'base64'};if(_0x3bcd11['zJWEB'](_0x12d625[_0x292d97(0x164)]?.[_0x292d97(0x175)],_0x3bcd11[_0x292d97(0x167)]))return{'updated':![],'block':_0x12d625};if(_0x12d625['data']&&_0x12d625[_0x292d97(0x17a)])return{'updated':![],'block':_0x12d625};const _0x1aca36=_0x12d625[_0x292d97(0x164)]?.['url']??_0x12d625[_0x292d97(0x160)];if(!_0x1aca36)return{'updated':![],'block':_0x12d625};const _0x38a4c6=await readImageFromUrl(_0x1aca36);return{'updated':!![],'block':{..._0x12d625,'source':{'type':_0x292d97(0x186),'media_type':_0x38a4c6['mediaType'],'data':_0x38a4c6[_0x292d97(0x156)]},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x599128){const _0x31eb4d=_0x2b93,_0x18321c={'pwCQt':function(_0x5ea652,_0x2d6890){return _0x5ea652(_0x2d6890);}};if(!_0x18321c['pwCQt'](isRecord,_0x599128))return{'updated':![],'output':_0x599128};const _0x3b5100=_0x599128['content'];if(!Array[_0x31eb4d(0x15a)](_0x3b5100))return{'updated':![],'output':_0x599128};let _0x588536=![];const _0x40cac2=await Promise[_0x31eb4d(0x18c)](_0x3b5100['map'](async _0xc97d79=>{const _0x465c37=_0x31eb4d;if(!isImageBlock(_0xc97d79))return _0xc97d79;try{const _0x105100=await convertImageBlockToBase64(_0xc97d79);if(_0x105100[_0x465c37(0x18e)])_0x588536=!![];return _0x105100['block'];}catch{return _0xc97d79;}}));if(!_0x588536)return{'updated':![],'output':_0x599128};return{'updated':!![],'output':{..._0x599128,'content':_0x40cac2}};}function sanitizeLoneSurrogates(_0x9ca066){const _0xaa396e=_0x2b93,_0xe77fbc={'lGfyA':function(_0x4e981b,_0x2a9160){return _0x4e981b+_0x2a9160;},'waeaq':function(_0xeb3b0f,_0xf236f1){return _0xeb3b0f>=_0xf236f1;},'lmtAz':function(_0x13f7ac,_0x1c1ab3){return _0x13f7ac<=_0x1c1ab3;},'lDgnx':function(_0x442d8f,_0x166f37){return _0x442d8f<=_0x166f37;}};let _0x276193=![],_0x3f4646='';for(let _0x2f7af9=0x0;_0x2f7af9<_0x9ca066[_0xaa396e(0x15d)];_0x2f7af9+=0x1){const _0x503681=_0x9ca066[_0xaa396e(0x163)](_0x2f7af9);if(_0x503681>=0xd800&&_0x503681<=0xdbff){const _0x37986d=_0x9ca066[_0xaa396e(0x163)](_0xe77fbc[_0xaa396e(0x16a)](_0x2f7af9,0x1));if(_0xe77fbc[_0xaa396e(0x176)](_0x37986d,0xdc00)&&_0xe77fbc[_0xaa396e(0x184)](_0x37986d,0xdfff)){_0x3f4646+=_0x9ca066[_0x2f7af9]+_0x9ca066[_0xe77fbc['lGfyA'](_0x2f7af9,0x1)],_0x2f7af9+=0x1;continue;}_0x276193=!![],_0x3f4646+='�';continue;}if(_0x503681>=0xdc00&&_0xe77fbc[_0xaa396e(0x181)](_0x503681,0xdfff)){_0x276193=!![],_0x3f4646+='�';continue;}_0x3f4646+=_0x9ca066[_0x2f7af9];}return _0x276193?{'updated':_0x276193,'value':_0x3f4646}:{'updated':_0x276193,'value':_0x9ca066};}function sanitizeLoneSurrogatesDeep(_0x2740f5){const _0x3ad727=_0x2b93,_0x8a78ea={'KOuaZ':function(_0x5e7af9,_0x158e96){return _0x5e7af9(_0x158e96);},'Yvxqz':function(_0x252f00,_0x13445c){return _0x252f00===_0x13445c;}};if(_0x8a78ea['Yvxqz'](typeof _0x2740f5,'string'))return sanitizeLoneSurrogates(_0x2740f5);if(Array[_0x3ad727(0x15a)](_0x2740f5)){let _0x4f0e41=![];const _0x3634b8=_0x2740f5['map'](_0xfa7776=>{const _0xe657b8=_0x3ad727,_0x4f99e5=_0x8a78ea[_0xe657b8(0x17f)](sanitizeLoneSurrogatesDeep,_0xfa7776);return _0x4f99e5[_0xe657b8(0x18e)]&&(_0x4f0e41=!![]),_0x4f99e5['value'];});return _0x4f0e41?{'updated':!![],'value':_0x3634b8}:{'updated':![],'value':_0x2740f5};}if(!isRecord(_0x2740f5))return{'updated':![],'value':_0x2740f5};let _0x10c460=![];const _0x181e67=Object[_0x3ad727(0x172)](_0x2740f5)[_0x3ad727(0x15c)](([_0x1dc1be,_0x546c02])=>{const _0x410f8b=sanitizeLoneSurrogatesDeep(_0x546c02);return _0x410f8b['updated']&&(_0x10c460=!![]),[_0x1dc1be,_0x410f8b['value']];});return _0x10c460?{'updated':!![],'value':Object['fromEntries'](_0x181e67)}:{'updated':![],'value':_0x2740f5};}function _0x2b93(_0x4db43a,_0x3b4dc9){_0x4db43a=_0x4db43a-0x154;const _0x9e05f4=_0x9e05();let _0x2b93f2=_0x9e05f4[_0x4db43a];return _0x2b93f2;}export function createMcpImageBase64Hook(){const _0x12ac10={'SjgkI':function(_0x4573c6,_0x19ff0e){return _0x4573c6!==_0x19ff0e;},'NqEfu':'PostToolUse'};return async _0x37e2a6=>{const _0x53d655=_0x2b93;if(_0x12ac10['SjgkI'](_0x37e2a6['hook_event_name'],_0x12ac10[_0x53d655(0x16e)]))return{};const _0xd7e4f1=_0x37e2a6,_0x521925=await convertToolOutputImagesToBase64(_0xd7e4f1[_0x53d655(0x18d)]),_0x32cd00=sanitizeLoneSurrogatesDeep(_0x521925[_0x53d655(0x17c)]),_0x4dd1fa=_0x521925[_0x53d655(0x18e)]||_0x32cd00[_0x53d655(0x18e)];if(!_0x4dd1fa)return{};return{'hookSpecificOutput':{'hookEventName':'PostToolUse','updatedMCPToolOutput':_0x32cd00['value']}};};}function _0x9e05(){const _0x5d8591=['url','toString','get','charCodeAt','source','2694472IRycpK','4GMdYgP','icxpl','Failed\x20to\x20fetch\x20image:\x20','YWhiw','lGfyA','khgSL','uiZWB','38751670pQDBAH','NqEfu','mEXGR','8310050sPdaWo','content-length','entries','startsWith','replace','type','waeaq','toLowerCase','eksvh','etDjP','mimeType','KGnCi','output','content-type','jpg','KOuaZ','PsWVb','lDgnx','TcZKf','arrayBuffer','lmtAz','jpeg','base64','size','isNaN','image/gif','135CQXuic','695710VKxLRC','all','tool_response','updated','3863655sTXMfE','587960jNezcP','6115315ycPjGq','6yboljg','rFKSZ','data','byteLength','headers','includes','isArray','\x20bytes)','map','length','tvgJk','data:'];_0x9e05=function(){return _0x5d8591;};return _0x9e05();}
@@ -1 +1 @@
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
+ const _0x164851=_0x5461;(function(_0x5695b3,_0xdfebe7){const _0x1e422b=_0x5461,_0x265ddc=_0x5695b3();while(!![]){try{const _0x2cad0c=-parseInt(_0x1e422b(0x1a0))/0x1*(-parseInt(_0x1e422b(0x19e))/0x2)+parseInt(_0x1e422b(0x1a2))/0x3+parseInt(_0x1e422b(0x1a6))/0x4*(-parseInt(_0x1e422b(0x19c))/0x5)+parseInt(_0x1e422b(0x19d))/0x6+-parseInt(_0x1e422b(0x1a3))/0x7+parseInt(_0x1e422b(0x1a7))/0x8*(-parseInt(_0x1e422b(0x1a1))/0x9)+-parseInt(_0x1e422b(0x1a4))/0xa;if(_0x2cad0c===_0xdfebe7)break;else _0x265ddc['push'](_0x265ddc['shift']());}catch(_0x1d6634){_0x265ddc['push'](_0x265ddc['shift']());}}}(_0x5a0f,0x597f6));const VERIFY_MODEL_ALIASES={'opus':_0x164851(0x1a5),'sonnet':'claude-sonnet-4-6'};export const DEFAULT_VERIFY_MODEL=_0x164851(0x19f);function _0x5461(_0x28c163,_0x598d9){_0x28c163=_0x28c163-0x19b;const _0x5a0fc4=_0x5a0f();let _0x54616d=_0x5a0fc4[_0x28c163];return _0x54616d;}export function resolveVerifyModel(_0x407c34){const _0x11cbdd=_0x164851;if(!_0x407c34)return undefined;const _0x14faf8=_0x407c34[_0x11cbdd(0x19b)]();if(!_0x14faf8)return undefined;const _0xef75d1=VERIFY_MODEL_ALIASES[_0x14faf8['toLowerCase']()];return _0xef75d1??_0x14faf8;}function _0x5a0f(){const _0x529e08=['117120tlqVxj','claude-opus-4-6','34312BaEATk','104MNbQvm','trim','115ThErsj','1872078ijzsQb','2KKGwDt','claude-sonnet-4-6','105331sPxYzK','99810HdQtyv','1616622eEJkQX','1655220psnMDS'];_0x5a0f=function(){return _0x529e08;};return _0x5a0f();}
@@ -1 +1 @@
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
+ (function(_0x55bd89,_0x279f32){var _0x5bb2a2=_0x5ea5,_0x4c05f3=_0x55bd89();while(!![]){try{var _0x43aed9=-parseInt(_0x5bb2a2(0x171))/0x1+-parseInt(_0x5bb2a2(0x176))/0x2+-parseInt(_0x5bb2a2(0x16a))/0x3+parseInt(_0x5bb2a2(0x173))/0x4*(-parseInt(_0x5bb2a2(0x16c))/0x5)+-parseInt(_0x5bb2a2(0x172))/0x6+parseInt(_0x5bb2a2(0x178))/0x7+parseInt(_0x5bb2a2(0x175))/0x8;if(_0x43aed9===_0x279f32)break;else _0x4c05f3['push'](_0x4c05f3['shift']());}catch(_0x3ed82f){_0x4c05f3['push'](_0x4c05f3['shift']());}}}(_0x6ad4,0xb0810));import{homedir}from'os';import{join}from'path';import{getProjectRoot}from'./claudeConfig.js';export function getOpencodeConfigDir(_0x389e46){var _0x5d05d0=_0x5ea5,_0x1da763={'sxiFl':function(_0x15b602,_0x4b64cc){return _0x15b602===_0x4b64cc;},'ahGma':function(_0x541989,_0x1b59ee,_0x6eca63,_0x42bb66){return _0x541989(_0x1b59ee,_0x6eca63,_0x42bb66);},'mAPDL':function(_0x320c2f){return _0x320c2f();},'HysVa':_0x5d05d0(0x174),'BJVDH':_0x5d05d0(0x179)};if(process[_0x5d05d0(0x177)]['OPENCODE_CONFIG_DIR'])return process[_0x5d05d0(0x177)]['OPENCODE_CONFIG_DIR'];if(_0x1da763[_0x5d05d0(0x16e)](_0x389e46,'user')){if(process['env'][_0x5d05d0(0x16b)])return join(process['env']['XDG_CONFIG_HOME'],_0x5d05d0(0x174));return _0x1da763[_0x5d05d0(0x16f)](join,_0x1da763['mAPDL'](homedir),'.config',_0x1da763[_0x5d05d0(0x169)]);}return join(getProjectRoot(),_0x1da763['BJVDH']);}function _0x5ea5(_0x3e4b7c,_0x1ca14d){_0x3e4b7c=_0x3e4b7c-0x169;var _0x6ad453=_0x6ad4();var _0x5ea5e2=_0x6ad453[_0x3e4b7c];return _0x5ea5e2;}function _0x6ad4(){var _0x5282b3=['HysVa','480876QcXeFu','XDG_CONFIG_HOME','400vlfVEM','CNpar','sxiFl','ahGma','skills','1273627djbelg','4939290yoyJws','19164mnXEEb','opencode','25869464gJJspD','1709654guqCTf','env','6891626IIVtGS','.opencode'];_0x6ad4=function(){return _0x5282b3;};return _0x6ad4();}export function getOpencodeSkillsDir(_0x3a06b8){var _0x1d6ae9=_0x5ea5,_0x32c6a9={'CNpar':function(_0x20e701,_0x1e72e5,_0xfd004c){return _0x20e701(_0x1e72e5,_0xfd004c);},'LbDDT':_0x1d6ae9(0x170)};return _0x32c6a9[_0x1d6ae9(0x16d)](join,getOpencodeConfigDir(_0x3a06b8),_0x32c6a9['LbDDT']);}
@@ -1 +1 @@
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
+ (function(_0x3679ef,_0x4efd59){const _0x1cfea8=_0x4a4c,_0x29f160=_0x3679ef();while(!![]){try{const _0x43d27f=parseInt(_0x1cfea8(0x1e6))/0x1+parseInt(_0x1cfea8(0x1f8))/0x2+-parseInt(_0x1cfea8(0x206))/0x3*(parseInt(_0x1cfea8(0x204))/0x4)+-parseInt(_0x1cfea8(0x1f2))/0x5*(-parseInt(_0x1cfea8(0x20f))/0x6)+parseInt(_0x1cfea8(0x216))/0x7*(parseInt(_0x1cfea8(0x210))/0x8)+-parseInt(_0x1cfea8(0x20e))/0x9*(-parseInt(_0x1cfea8(0x203))/0xa)+-parseInt(_0x1cfea8(0x1fd))/0xb*(parseInt(_0x1cfea8(0x20a))/0xc);if(_0x43d27f===_0x4efd59)break;else _0x29f160['push'](_0x29f160['shift']());}catch(_0x45be04){_0x29f160['push'](_0x29f160['shift']());}}}(_0x2c7f,0xd8fee));import{spawn}from'child_process';function _0x4a4c(_0x57206c,_0x26229c){_0x57206c=_0x57206c-0x1e2;const _0x2c7f2c=_0x2c7f();let _0x4a4ca2=_0x2c7f2c[_0x57206c];return _0x4a4ca2;}function _0x2c7f(){const _0x20a3b7=['map','315WMwsbb','error','NMeAV','pumee','tqWrx','null','1665224dWdjDp','\x20signal=','tcKEO','commandArgs','...','qVbTa','sessionId','ignore','toString','JlFci','pipe','cmd','115zzzqmY','SIGTERM','hex','timeoutMs','trim','script','682150lIKSjU','xKRsa','args','jrSsA','configPath','44671ygnXDH','timed\x20out\x20after\x20','subcommand','command','npx','stdout','1582230xnDqLd','28qIJlTj','update','257442kTrPVR','rg-','WJxiV','find','4692JfXuMJ','--config','slice','SIGKILL','18uXLRhc','91146cgaIxE','72040usUqnJ','unknown','\x0astdout:\x20','length','string'];_0x2c7f=function(){return _0x20a3b7;};return _0x2c7f();}import{createHash}from'crypto';export const PLAYWRIGHT_CLI_BINARY='@playwright/cli';function toPlaywrightCliSessionKey(_0x106861){const _0x1876e6=_0x4a4c,_0x3b303f={'CvjWy':_0x1876e6(0x1f4)},_0x226a27=createHash('sha256')[_0x1876e6(0x205)](_0x106861)['digest'](_0x3b303f['CvjWy'])[_0x1876e6(0x20c)](0x0,0xc);return _0x1876e6(0x207)+_0x226a27;}function shellQuote(_0x30b103){return'\x27'+_0x30b103['replace'](/'/g,'\x27\x5c\x27\x27')+'\x27';}const SAFE_SHELL_TOKEN=/^[A-Za-z0-9_./:@%+=,-]+$/;export function quoteShellArg(_0xa88fb6){const _0x15b805={'XFhxe':function(_0x5bc1c6,_0x47816d){return _0x5bc1c6(_0x47816d);}};return SAFE_SHELL_TOKEN['test'](_0xa88fb6)?_0xa88fb6:_0x15b805['XFhxe'](shellQuote,_0xa88fb6);}export function buildPlaywrightCliInvocation(_0x676093,_0x28f3da,_0x493ea7){const _0x1a0ca6=_0x4a4c,_0x6158f9={'qVbTa':function(_0x5c2155,_0x3303e7){return _0x5c2155(_0x3303e7);},'iepxp':_0x1a0ca6(0x211),'WJxiV':_0x1a0ca6(0x201),'NMeAV':_0x1a0ca6(0x20b)},_0x4f3c5c=_0x6158f9['qVbTa'](toPlaywrightCliSessionKey,_0x676093),[_0x1385ea=_0x6158f9['iepxp']]=_0x493ea7,_0x12b185=[PLAYWRIGHT_CLI_BINARY,'-s='+_0x4f3c5c,_0x1a0ca6(0x20b),_0x28f3da,..._0x493ea7];return{'command':_0x6158f9['WJxiV'],'args':_0x12b185,'shellCommand':[_0x6158f9[_0x1a0ca6(0x208)],PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x4f3c5c),_0x6158f9[_0x1a0ca6(0x1e2)],_0x6158f9[_0x1a0ca6(0x1eb)](quoteShellArg,_0x28f3da),..._0x493ea7[_0x1a0ca6(0x215)](quoteShellArg)]['join']('\x20'),'subcommand':_0x1385ea};}export function buildPlaywrightCliCommandPrefix(_0x546ec9,_0x5e9da7){const _0x1223f7=_0x4a4c,_0xced0d1={'DmVxD':_0x1223f7(0x201),'tqWrx':'--config','NWFVt':function(_0x9870ef,_0x4c5e4e){return _0x9870ef(_0x4c5e4e);}},_0x18aef4=toPlaywrightCliSessionKey(_0x546ec9);return[_0xced0d1['DmVxD'],PLAYWRIGHT_CLI_BINARY,'-s='+quoteShellArg(_0x18aef4),_0xced0d1[_0x1223f7(0x1e4)],_0xced0d1['NWFVt'](quoteShellArg,_0x5e9da7)]['join']('\x20');}function truncateOutput(_0x4b56b7,_0x3ad106=0x7d0){const _0x5b956b=_0x4a4c,_0x1985da={'Vonud':function(_0x314dd2,_0x6f84f6){return _0x314dd2+_0x6f84f6;},'AFXvP':_0x5b956b(0x1ea)};return _0x4b56b7[_0x5b956b(0x213)]>_0x3ad106?_0x1985da['Vonud'](_0x4b56b7[_0x5b956b(0x20c)](0x0,_0x3ad106),_0x1985da['AFXvP']):_0x4b56b7;}export async function runPlaywrightCliCommand(_0x199098){const _0x3d0cd2=_0x4a4c,_0x58a8d5={'tcKEO':function(_0x47dbb0,_0x6f6685,_0x29a031){return _0x47dbb0(_0x6f6685,_0x29a031);},'lkLJl':function(_0x3c75a8,_0x4f300c){return _0x3c75a8(_0x4f300c);},'ocXCx':function(_0xcff8e0,_0x43325e){return _0xcff8e0??_0x43325e;},'kuIKR':'pipe','JlFci':'data','qqdKY':_0x3d0cd2(0x217)},_0x2e4d7b=buildPlaywrightCliInvocation(_0x199098[_0x3d0cd2(0x1ec)],_0x199098[_0x3d0cd2(0x1fc)],_0x199098[_0x3d0cd2(0x1e9)]);return new Promise((_0x5af520,_0x5142e4)=>{const _0x5bfc3f=_0x3d0cd2,_0x2e7641={'clVvM':function(_0x309b19,_0x417625){return _0x309b19(_0x417625);},'xKRsa':function(_0x5f94f0,_0x3b6c31){return _0x58a8d5['ocXCx'](_0x5f94f0,_0x3b6c31);},'DbMUB':'null','pumee':function(_0x3d5bb7,_0x40244a){return _0x3d5bb7(_0x40244a);}},_0x3faf32=spawn(_0x2e4d7b[_0x5bfc3f(0x200)],_0x2e4d7b[_0x5bfc3f(0x1fa)],{'cwd':_0x199098['cwd'],'env':_0x199098['env'],'stdio':[_0x5bfc3f(0x1ed),_0x58a8d5['kuIKR'],_0x5bfc3f(0x1f0)]});let _0x57be18='',_0x22c7b1='',_0xdfbe24=![];const _0x355177=_0x199098['timeoutMs']&&_0x199098['timeoutMs']>0x0?setTimeout(()=>{const _0xa518aa=_0x5bfc3f;_0xdfbe24=!![],_0x3faf32['kill'](_0xa518aa(0x1f3)),_0x58a8d5[_0xa518aa(0x1e8)](setTimeout,()=>{const _0x1566f2=_0xa518aa;try{_0x3faf32['kill'](_0x1566f2(0x20d));}catch{}},0x3e8);},_0x199098[_0x5bfc3f(0x1f5)]):null;_0x3faf32[_0x5bfc3f(0x202)]?.['on'](_0x58a8d5[_0x5bfc3f(0x1ef)],_0x215eee=>{const _0x575ef7=_0x5bfc3f;_0x57be18+=_0x215eee[_0x575ef7(0x1ee)]();}),_0x3faf32['stderr']?.['on']('data',_0x3f29a7=>{_0x22c7b1+=_0x3f29a7['toString']();}),_0x3faf32['on'](_0x58a8d5['qqdKY'],_0x5358e0=>{if(_0x355177)clearTimeout(_0x355177);_0x58a8d5['lkLJl'](_0x5142e4,_0x5358e0);}),_0x3faf32['on']('close',(_0x2fbf41,_0x5a1a3c)=>{const _0x5cd2c6=_0x5bfc3f;if(_0x355177)_0x2e7641['clVvM'](clearTimeout,_0x355177);if(_0x2fbf41===0x0){_0x5af520({'stdout':_0x57be18,'stderr':_0x22c7b1,'invocation':_0x2e4d7b});return;}const _0x3142e9=_0xdfbe24?_0x5cd2c6(0x1fe)+_0x199098[_0x5cd2c6(0x1f5)]+'ms':'exited\x20with\x20code='+_0x2e7641[_0x5cd2c6(0x1f9)](_0x2fbf41,_0x2e7641['DbMUB'])+_0x5cd2c6(0x1e7)+(_0x5a1a3c??_0x5cd2c6(0x1e5));_0x2e7641[_0x5cd2c6(0x1e3)](_0x5142e4,new Error('playwright-cli\x20'+_0x2e4d7b[_0x5cd2c6(0x1ff)]+'\x20'+_0x3142e9+_0x5cd2c6(0x212)+truncateOutput(_0x57be18)+'\x0astderr:\x20'+truncateOutput(_0x22c7b1)));});});}export function extractBashCommand(_0x25bddf){const _0x3815e0=_0x4a4c,_0x140aee={'jrSsA':_0x3815e0(0x1f1),'wdNOo':'bash_command','hXToy':function(_0x5ab5bf,_0x54d065){return _0x5ab5bf===_0x54d065;}},_0xee1490=[_0x3815e0(0x200),_0x140aee[_0x3815e0(0x1fb)],_0x3815e0(0x1f7),_0x140aee['wdNOo']];for(const _0x53047c of _0xee1490){const _0x436f32=_0x25bddf[_0x53047c];if(_0x140aee['hXToy'](typeof _0x436f32,_0x3815e0(0x214))&&_0x436f32['trim']())return _0x436f32;}const _0x3a13eb=Object['values'](_0x25bddf)[_0x3815e0(0x209)](_0x3ff320=>typeof _0x3ff320===_0x3815e0(0x214)&&_0x3ff320[_0x3815e0(0x1f6)]()[_0x3815e0(0x213)]>0x0);return _0x3a13eb??null;}export function parsePlaywrightCliCommand(_0x29bcf6){const _0xdf8307=_0x29bcf6['match'](/(?:^|\s)(?:npx\s+)?(?:@playwright\/cli|playwright-cli)\s+(?:-s=\S+\s+)?(?:--config(?:=|\s+)(?:"[^"]+"|'[^']+'|\S+)\s+)?([a-z-]+)/);return _0xdf8307?.[0x1]??null;}
@@ -1 +1 @@
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
+ (function(_0x28f81c,_0x22933c){const _0x5ae3ab=_0x2297,_0x2d230d=_0x28f81c();while(!![]){try{const _0x5f3538=-parseInt(_0x5ae3ab(0x113))/0x1+-parseInt(_0x5ae3ab(0x110))/0x2*(-parseInt(_0x5ae3ab(0x10c))/0x3)+parseInt(_0x5ae3ab(0x116))/0x4+-parseInt(_0x5ae3ab(0x10f))/0x5+parseInt(_0x5ae3ab(0x111))/0x6*(parseInt(_0x5ae3ab(0x10d))/0x7)+parseInt(_0x5ae3ab(0x115))/0x8*(parseInt(_0x5ae3ab(0x10e))/0x9)+-parseInt(_0x5ae3ab(0x112))/0xa*(parseInt(_0x5ae3ab(0x117))/0xb);if(_0x5f3538===_0x22933c)break;else _0x2d230d['push'](_0x2d230d['shift']());}catch(_0x4c8867){_0x2d230d['push'](_0x2d230d['shift']());}}}(_0x46ea,0xa359f));function _0x46ea(){const _0x2135c7=['8uosIjq','3687804ZfJMQo','23856745KUbgjS','3sdeBhP','7ijqzwG','7642926DDybXt','1013390XjuTZp','1219748QAgaur','6164142NKLNAd','10kkjtBq','367836jIkxxk','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'];_0x46ea=function(){return _0x2135c7;};return _0x46ea();}function _0x2297(_0x4b643f,_0x2a2e12){_0x4b643f=_0x4b643f-0x10c;const _0x46ea3e=_0x46ea();let _0x22976a=_0x46ea3e[_0x4b643f];return _0x22976a;}const DEFAULT_PROFILE_COMMAND='ranger\x20profile\x20add\x20local';export function formatProfileRequiredMessage(_0x460be2){const _0x2a1164=_0x2297,_0x544377=_0x460be2?_0x460be2(DEFAULT_PROFILE_COMMAND):DEFAULT_PROFILE_COMMAND;return _0x2a1164(0x114)+_0x544377+'.';}
@@ -1 +1 @@
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
+ function _0x5f14(){const _0x4930af=['273358wAiiIz','45LKLdXt','PsPlh','<span\x20class=\x22ranger-banner__title\x22>Profile\x20setup:</span>','<div\x20class=\x22ranger-banner__content\x22>','2GMwgWN','52560BistCw','vhjGG','36GXoZVG','660646GChRhy','fZTqV','addInitScript','541090gGBowl','<button\x20class=\x22ranger-banner__close\x22\x20type=\x22button\x22\x20aria-label=\x22Dismiss\x20banner\x22>X</button>','992976dsSpsH','717344RVlZMa','2876755hjEWil','VYaMh','</div>',';\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'];_0x5f14=function(){return _0x4930af;};return _0x5f14();}(function(_0x239ed2,_0x44b7d4){const _0x2b9bfd=_0x484c,_0x19686a=_0x239ed2();while(!![]){try{const _0x31b310=-parseInt(_0x2b9bfd(0x173))/0x1*(-parseInt(_0x2b9bfd(0x16e))/0x2)+-parseInt(_0x2b9bfd(0x174))/0x3+parseInt(_0x2b9bfd(0x168))/0x4+-parseInt(_0x2b9bfd(0x16a))/0x5+-parseInt(_0x2b9bfd(0x176))/0x6*(-parseInt(_0x2b9bfd(0x177))/0x7)+parseInt(_0x2b9bfd(0x169))/0x8+-parseInt(_0x2b9bfd(0x16f))/0x9*(parseInt(_0x2b9bfd(0x166))/0xa);if(_0x31b310===_0x44b7d4)break;else _0x19686a['push'](_0x19686a['shift']());}catch(_0x3fd885){_0x19686a['push'](_0x19686a['shift']());}}}(_0x5f14,0x4cb0a));const PROFILE_SETUP_BANNER_SCRIPT=((()=>{const _0x304bc1=_0x484c,_0x5f1280={'vhjGG':function(_0x1b1608,_0x503352){return _0x1b1608+_0x503352;},'nlcYM':_0x304bc1(0x172),'EWZoQ':'<div\x20class=\x22ranger-banner__message\x22>','PsPlh':_0x304bc1(0x171),'VYaMh':_0x304bc1(0x16c),'fZTqV':_0x304bc1(0x167)},_0x181881=_0x5f1280[_0x304bc1(0x175)](_0x5f1280[_0x304bc1(0x175)](_0x5f1280['nlcYM']+'<div\x20class=\x22ranger-banner__heading\x22>Ranger\x20Feature\x20Review</div>'+_0x5f1280['EWZoQ']+_0x5f1280[_0x304bc1(0x170)],'<span\x20class=\x22ranger-banner__text\x22>navigate\x20to\x20your\x20locally\x20running\x20app\x20and\x20log\x20in.\x20Close\x20the\x20browser\x20window\x20when\x20you\x20are\x20done.</span>')+_0x5f1280[_0x304bc1(0x16b)]+_0x5f1280['VYaMh'],_0x5f1280[_0x304bc1(0x178)]),_0xa9a6b1='\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'\x0a(()\x20=>\x20{\x0a\x20\x20const\x20bannerId\x20=\x20\x27ranger-profile-setup-banner\x27;\x0a\x20\x20const\x20styleId\x20=\x20\x27ranger-profile-setup-banner-style\x27;\x0a\x20\x20const\x20dismissedKey\x20=\x20\x27rangerProfileBannerDismissed\x27;\x0a\x0a\x20\x20const\x20getStorage\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20try\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20window.sessionStorage;\x0a\x20\x20\x20\x20}\x20catch\x20{\x0a\x20\x20\x20\x20\x20\x20return\x20null;\x0a\x20\x20\x20\x20}\x0a\x20\x20};\x0a\x0a\x20\x20const\x20storage\x20=\x20getStorage();\x0a\x20\x20if\x20(storage\x20&&\x20storage.getItem(dismissedKey)\x20===\x20\x271\x27)\x20{\x0a\x20\x20\x20\x20return;\x0a\x20\x20}\x0a\x0a\x20\x20const\x20inject\x20=\x20()\x20=>\x20{\x0a\x20\x20\x20\x20if\x20(document.getElementById(bannerId))\x20return;\x0a\x0a\x20\x20\x20\x20const\x20banner\x20=\x20document.createElement(\x27div\x27);\x0a\x20\x20\x20\x20banner.id\x20=\x20bannerId;\x0a\x20\x20\x20\x20banner.setAttribute(\x27role\x27,\x20\x27region\x27);\x0a\x20\x20\x20\x20banner.setAttribute(\x27aria-label\x27,\x20\x27Ranger\x20profile\x20setup\x27);\x0a\x20\x20\x20\x20banner.innerHTML\x20=\x20'+JSON['stringify'](_0x181881)+_0x304bc1(0x16d)+JSON['stringify'](_0xa9a6b1)+';\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 _0x484c(_0x415276,_0x34130a){_0x415276=_0x415276-0x166;const _0x5f147f=_0x5f14();let _0x484cae=_0x5f147f[_0x415276];return _0x484cae;}export function getProfileSetupBannerScript(){return PROFILE_SETUP_BANNER_SCRIPT;}export async function addProfileSetupBanner(_0x5e6f51){const _0xe9b98b=_0x484c;await _0x5e6f51[_0xe9b98b(0x179)]({'content':PROFILE_SETUP_BANNER_SCRIPT});}
@@ -1 +1 @@
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
+ (function(_0x374fc6,_0x210a53){const _0x7ee09=_0x3b1a,_0x2531f9=_0x374fc6();while(!![]){try{const _0x3f3cc6=parseInt(_0x7ee09(0x78))/0x1+-parseInt(_0x7ee09(0x77))/0x2+-parseInt(_0x7ee09(0x85))/0x3+parseInt(_0x7ee09(0x82))/0x4*(-parseInt(_0x7ee09(0x76))/0x5)+-parseInt(_0x7ee09(0x84))/0x6*(-parseInt(_0x7ee09(0x73))/0x7)+parseInt(_0x7ee09(0x75))/0x8+-parseInt(_0x7ee09(0x81))/0x9;if(_0x3f3cc6===_0x210a53)break;else _0x2531f9['push'](_0x2531f9['shift']());}catch(_0x5537a2){_0x2531f9['push'](_0x2531f9['shift']());}}}(_0x50a0,0x41c34));import{readFile}from'fs/promises';import{existsSync}from'fs';import{join}from'path';import{getRangerDir}from'./rangerRoot.js';function _0x3b1a(_0x1777e4,_0x1adfd7){_0x1777e4=_0x1777e4-0x72;const _0x50a011=_0x50a0();let _0x3b1a16=_0x50a011[_0x1777e4];return _0x3b1a16;}function _0x50a0(){const _0x38551f=['warn','TerEv','1128231fqhTvw','4Tytfkq','utf-8','50376tRIFdD','116670anoKYA','config.json','224BlStEU','Failed\x20to\x20read\x20Ranger\x20config\x20at\x20','3509984bQpujF','1829570ghzwan','621272uHtjuZ','402743AdZrBk','YWGlz','zkkAa','message','rZFCJ','isArray','parse'];_0x50a0=function(){return _0x38551f;};return _0x50a0();}export function getRangerConfigPath(){const _0x295975=_0x3b1a,_0x2fca2e={'TerEv':function(_0x197314,_0x38bbbe,_0x24c2b8){return _0x197314(_0x38bbbe,_0x24c2b8);},'rZFCJ':_0x295975(0x72)};return _0x2fca2e[_0x295975(0x80)](join,getRangerDir(),_0x2fca2e[_0x295975(0x7c)]);}export async function loadRangerConfig(){const _0x4dbc79=_0x3b1a,_0x1b97da={'zkkAa':function(_0x39cb37){return _0x39cb37();},'IMtSu':function(_0x6c08e9,_0xe59616){return _0x6c08e9(_0xe59616);},'YWGlz':function(_0x53d175,_0x2f4e70){return _0x53d175!==_0x2f4e70;},'dphRM':'object','rremL':function(_0x1ce4c4,_0x2a309b){return _0x1ce4c4===_0x2a309b;}},_0x34cc3a=_0x1b97da[_0x4dbc79(0x7a)](getRangerConfigPath);if(!_0x1b97da['IMtSu'](existsSync,_0x34cc3a))return{};try{const _0xcba5e5=await readFile(_0x34cc3a,_0x4dbc79(0x83)),_0x1c83ec=JSON[_0x4dbc79(0x7e)](_0xcba5e5);if(!_0x1c83ec||_0x1b97da[_0x4dbc79(0x79)](typeof _0x1c83ec,_0x1b97da['dphRM'])||Array[_0x4dbc79(0x7d)](_0x1c83ec))return{};const _0x3abbad={},_0x12c5e4=_0x1c83ec['model'];return _0x1b97da['rremL'](typeof _0x12c5e4,'string')&&(_0x3abbad['model']=_0x12c5e4),_0x3abbad;}catch(_0x50b347){const _0x3a4f19=_0x50b347 instanceof Error?_0x50b347[_0x4dbc79(0x7b)]:String(_0x50b347);return console[_0x4dbc79(0x7f)](_0x4dbc79(0x74)+_0x34cc3a+':\x20'+_0x3a4f19),{};}}
@@ -1 +1 @@
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
+ (function(_0xe3fc0a,_0x5a2aa0){const _0x109cde=_0x18b6,_0x59179e=_0xe3fc0a();while(!![]){try{const _0x2b29f9=parseInt(_0x109cde(0x13e))/0x1*(-parseInt(_0x109cde(0x138))/0x2)+parseInt(_0x109cde(0x141))/0x3+parseInt(_0x109cde(0x135))/0x4*(-parseInt(_0x109cde(0x133))/0x5)+parseInt(_0x109cde(0x13c))/0x6+-parseInt(_0x109cde(0x136))/0x7*(parseInt(_0x109cde(0x13a))/0x8)+parseInt(_0x109cde(0x143))/0x9+parseInt(_0x109cde(0x134))/0xa*(-parseInt(_0x109cde(0x13d))/0xb);if(_0x2b29f9===_0x5a2aa0)break;else _0x59179e['push'](_0x59179e['shift']());}catch(_0x3b6e06){_0x59179e['push'](_0x59179e['shift']());}}}(_0x13b2,0x34918));import{dirname,join,parse}from'path';function _0x13b2(){const _0x58e370=['.ranger','1415WSEIWj','232930wWnjrx','3740rtgBDO','12194OJQJeN','HKZwE','12nlaQHK','MSbCB','24EzKlDX','cwd','2567544FnaRin','143CvHwUr','5428nHmIIU','root','Virkq','986664dvFvhM','lUfgy','573444iNcwKq','.git'];_0x13b2=function(){return _0x58e370;};return _0x13b2();}function _0x18b6(_0x4e7c04,_0x285754){_0x4e7c04=_0x4e7c04-0x131;const _0x13b2b8=_0x13b2();let _0x18b6d1=_0x13b2b8[_0x4e7c04];return _0x18b6d1;}import{existsSync}from'fs';import{homedir}from'os';export function getRangerRoot(){const _0x112c97=_0x18b6,_0x562118={'srtLT':function(_0xd11ee0,_0x181bbc){return _0xd11ee0(_0x181bbc);},'HKZwE':function(_0x33cfe9,_0x224cc0){return _0x33cfe9!==_0x224cc0;},'ZFRjO':function(_0x36fbb8,_0x2a047f){return _0x36fbb8(_0x2a047f);},'qbIuf':function(_0x2e0dc6,_0x3e4c2c,_0x592051){return _0x2e0dc6(_0x3e4c2c,_0x592051);},'JntJP':function(_0x5b2e8b){return _0x5b2e8b();}};let _0x5f0f79=process['cwd']();const _0x57dfcd=_0x562118['srtLT'](parse,_0x5f0f79)[_0x112c97(0x13f)];while(_0x562118[_0x112c97(0x137)](_0x5f0f79,_0x57dfcd)){if(existsSync(join(_0x5f0f79,'.ranger')))return _0x5f0f79;_0x5f0f79=_0x562118['ZFRjO'](dirname,_0x5f0f79);}if(existsSync(_0x562118['qbIuf'](join,_0x57dfcd,'.ranger')))return _0x57dfcd;const _0x584b10=_0x562118['JntJP'](findGitRoot);if(_0x584b10)return _0x584b10;return process[_0x112c97(0x13b)]();}export function getRangerDir(){const _0xb331ba=_0x18b6;return join(getRangerRoot(),_0xb331ba(0x132));}export function findGitRoot(){const _0x216a6c=_0x18b6,_0x50e51f={'rNvEE':function(_0x3aa1c9,_0x3d7f8d){return _0x3aa1c9!==_0x3d7f8d;},'Virkq':function(_0x104c45,_0x11385c){return _0x104c45(_0x11385c);},'MSbCB':_0x216a6c(0x131)};let _0x3039f9=process['cwd']();const _0x175da0=parse(_0x3039f9)['root'];while(_0x50e51f['rNvEE'](_0x3039f9,_0x175da0)){if(_0x50e51f[_0x216a6c(0x140)](existsSync,join(_0x3039f9,'.git')))return _0x3039f9;_0x3039f9=dirname(_0x3039f9);}if(existsSync(join(_0x175da0,_0x50e51f[_0x216a6c(0x139)])))return _0x175da0;return null;}export function getRangerHomeDir(){const _0x3af30f=_0x18b6,_0xd1582c={'lUfgy':function(_0x29a6af,_0x3348c0,_0x143ea4){return _0x29a6af(_0x3348c0,_0x143ea4);}};return _0xd1582c[_0x3af30f(0x142)](join,homedir(),'.ranger');}
@@ -1 +1 @@
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
+ (function(_0xad35fb,_0x45105a){const _0x5d5ebc=_0x529e,_0x18033c=_0xad35fb();while(!![]){try{const _0x27b099=parseInt(_0x5d5ebc(0x155))/0x1+parseInt(_0x5d5ebc(0x15d))/0x2*(-parseInt(_0x5d5ebc(0x161))/0x3)+parseInt(_0x5d5ebc(0x160))/0x4+-parseInt(_0x5d5ebc(0x15a))/0x5*(-parseInt(_0x5d5ebc(0x154))/0x6)+parseInt(_0x5d5ebc(0x15c))/0x7*(parseInt(_0x5d5ebc(0x153))/0x8)+-parseInt(_0x5d5ebc(0x15f))/0x9*(parseInt(_0x5d5ebc(0x163))/0xa)+parseInt(_0x5d5ebc(0x159))/0xb*(parseInt(_0x5d5ebc(0x162))/0xc);if(_0x27b099===_0x45105a)break;else _0x18033c['push'](_0x18033c['shift']());}catch(_0x48e66a){_0x18033c['push'](_0x18033c['shift']());}}}(_0x1743,0x72182));function _0x529e(_0xe2462e,_0x2e6ec2){_0xe2462e=_0xe2462e-0x153;const _0x17435e=_0x1743();let _0x529ea5=_0x17435e[_0xe2462e];return _0x529ea5;}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x1743(){const _0x5462a2=['\x20failed\x20(attempt\x20','4316337SzWmFw','1055632wCnwYg','15AqGwHx','7808244JQaEMb','10pkUrbl','712bXtqHI','4158762goQsua','129118FbpbXc','baseDelayMs','WgOHj','pow','11hSOuLq','5qjelhG','error','854twdEWI','320310dQDayP'];_0x1743=function(){return _0x5462a2;};return _0x1743();}export async function withRetry(_0x18c997,_0x29b47e){const _0x18e5d0=_0x529e,_0x1e7f1a={'uwjjh':function(_0x54fc45){return _0x54fc45();},'WgOHj':function(_0x2976e1,_0x48bec8){return _0x2976e1(_0x48bec8);},'GhCNT':function(_0x4b5d82,_0x57f0cd){return _0x4b5d82+_0x57f0cd;}},_0x2b9432=_0x29b47e?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x38b3dc=_0x29b47e?.[_0x18e5d0(0x156)]??DEFAULT_BASE_DELAY_MS;let _0x228d76;for(let _0x4bc3cb=0x0;_0x4bc3cb<=_0x2b9432;_0x4bc3cb++){try{return await _0x1e7f1a['uwjjh'](_0x18c997);}catch(_0x260418){_0x228d76=_0x260418 instanceof Error?_0x260418:new Error(_0x1e7f1a[_0x18e5d0(0x157)](String,_0x260418));if(_0x4bc3cb<_0x2b9432){const _0x102d2b=_0x38b3dc*Math[_0x18e5d0(0x158)](0x2,_0x4bc3cb);_0x29b47e?.['label']&&console[_0x18e5d0(0x15b)](_0x29b47e['label']+_0x18e5d0(0x15e)+_0x1e7f1a['GhCNT'](_0x4bc3cb,0x1)+'/'+(_0x2b9432+0x1)+'),\x20retrying\x20in\x20'+_0x102d2b+'ms...'),await new Promise(_0x4d2e45=>setTimeout(_0x4d2e45,_0x102d2b));}}}throw _0x228d76;}
@@ -1 +1 @@
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
+ const _0x517922=_0x2607;function _0xfc8a(){const _0x1c50c7=['branches','ekdrD','7LjyefA','eRZRX','mJkqL','hNTFg','fmEuq','419023OgsDfH','yixBw','toISOString','clear','JEEvo','JfeiX','1052860zSVlGf','770kvILiC','ADyFh','CoeVb','HsEXf','registeredAt','lastEnabledSessionClearedAt','sessions','ZlYGp','existsSync','pipe','writeFileSync','main','5538992PhZHqn','2539074nkqPit','ScydU','.ranger_cache.json','VtOdl','8721558tLDhQY','readFileSync','NNpVk','uhmPl','trim','currentBranch','prompted','pNyHo','oGGLl','IveYN','1mCjGCc','XtqEh','now','NCcJD','785202YwaenG','geYwR','parse','lastStopReminderAt','pgaXu','featureId','utf-8','enabled','JWHaK','4naPolE','dlvWE','FADVX','master','2252742GQiyOg'];_0xfc8a=function(){return _0x1c50c7;};return _0xfc8a();}(function(_0x31d1e0,_0x28bc9a){const _0x44cd3c=_0x2607,_0xe105ce=_0x31d1e0();while(!![]){try{const _0x563f0e=parseInt(_0x44cd3c(0x1b5))/0x1*(parseInt(_0x44cd3c(0x1b9))/0x2)+-parseInt(_0x44cd3c(0x1a7))/0x3+parseInt(_0x44cd3c(0x1c2))/0x4*(parseInt(_0x44cd3c(0x199))/0x5)+-parseInt(_0x44cd3c(0x18b))/0x6*(parseInt(_0x44cd3c(0x18e))/0x7)+-parseInt(_0x44cd3c(0x1a6))/0x8+-parseInt(_0x44cd3c(0x1ab))/0x9+-parseInt(_0x44cd3c(0x19a))/0xa*(-parseInt(_0x44cd3c(0x193))/0xb);if(_0x563f0e===_0x28bc9a)break;else _0xe105ce['push'](_0xe105ce['shift']());}catch(_0x5c694d){_0xe105ce['push'](_0xe105ce['shift']());}}}(_0xfc8a,0x9f71b));import*as _0x1b23ea from'fs';import*as _0x46316f from'path';import*as _0x2dd39d from'os';import{execSync}from'child_process';const CACHE_FILE=_0x46316f['join'](_0x2dd39d['homedir'](),'.claude',_0x517922(0x1a9));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x5de02c=_0x517922,_0x12a7a7={'ScydU':function(_0x1e320e){return _0x1e320e();}};try{if(_0x1b23ea[_0x5de02c(0x1a2)](CACHE_FILE)){const _0x2ad642=JSON[_0x5de02c(0x1bb)](_0x1b23ea[_0x5de02c(0x1ac)](CACHE_FILE,_0x5de02c(0x1bf)));return{'version':0x3,'sessions':_0x2ad642['sessions']||{},'branches':_0x2ad642[_0x5de02c(0x18c)]||{},'lastEnabledSessionClearedAt':_0x2ad642[_0x5de02c(0x19f)]};}}catch{}return _0x12a7a7[_0x5de02c(0x1a8)](createEmptyCache);}function saveCache(_0x28a30b){const _0x14e1ee=_0x517922;try{const _0x4f3c17=_0x46316f['dirname'](CACHE_FILE);!_0x1b23ea['existsSync'](_0x4f3c17)&&_0x1b23ea['mkdirSync'](_0x4f3c17,{'recursive':!![]}),_0x1b23ea[_0x14e1ee(0x1a4)](CACHE_FILE,JSON['stringify'](_0x28a30b,null,0x2));}catch{}}export function getCurrentBranch(){const _0x5df841=_0x517922,_0x2a1feb={'ekdrD':function(_0x3e5ec3,_0x2de131,_0x3fa6b4){return _0x3e5ec3(_0x2de131,_0x3fa6b4);},'YdqSA':_0x5df841(0x1bf),'NCcJD':'pipe','pNyHo':function(_0xa0abc1,_0x66bcc2){return _0xa0abc1===_0x66bcc2;}};try{const _0x3af86f=_0x2a1feb[_0x5df841(0x18d)](execSync,'git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0x2a1feb['YdqSA'],'stdio':[_0x2a1feb[_0x5df841(0x1b8)],_0x2a1feb[_0x5df841(0x1b8)],_0x5df841(0x1a3)]})[_0x5df841(0x1af)]();if(!_0x3af86f||_0x2a1feb[_0x5df841(0x1b2)](_0x3af86f,'HEAD'))return null;return _0x3af86f;}catch{return null;}}export function enableBranch(_0x16c862){const _0xd6ada9=_0x517922,_0x3ef623={'Btqgs':function(_0x3d1e83){return _0x3d1e83();}},_0x14c731=_0x3ef623['Btqgs'](loadCache);_0x14c731[_0xd6ada9(0x18c)][_0x16c862]=!![],saveCache(_0x14c731);}export function disableBranch(_0x43faf4){const _0x19924c=_0x517922,_0x1c6f0b={'NSbbk':function(_0x8c183d){return _0x8c183d();},'ZlYGp':function(_0x244d4a,_0x1c1374){return _0x244d4a(_0x1c1374);}},_0x137f7a=_0x1c6f0b['NSbbk'](loadCache);delete _0x137f7a['branches'][_0x43faf4],_0x1c6f0b[_0x19924c(0x1a1)](saveCache,_0x137f7a);}export function isBranchEnabled(_0x1682ef){const _0x52b600=_0x517922,_0x5cc88c={'PqBju':function(_0xd58f78){return _0xd58f78();},'FYXAi':function(_0x2715a3,_0x97429f){return _0x2715a3===_0x97429f;}},_0x592847=_0x5cc88c['PqBju'](loadCache);return _0x5cc88c['FYXAi'](_0x592847[_0x52b600(0x18c)][_0x1682ef],!![]);}function getOrCreateSession(_0x4aa763,_0x6b505d){const _0x4b370=_0x517922;return!_0x4aa763[_0x4b370(0x1a0)][_0x6b505d]&&(_0x4aa763[_0x4b370(0x1a0)][_0x6b505d]={}),_0x4aa763['sessions'][_0x6b505d];}export function enableSession(_0x3f05a0){const _0x2ede03=_0x517922,_0x4e54cf={'jWkjc':function(_0x1e7b0d,_0x464361,_0xc18095){return _0x1e7b0d(_0x464361,_0xc18095);},'scOQh':function(_0x12b2b3,_0x5e0d1b){return _0x12b2b3!==_0x5e0d1b;},'rrkae':_0x2ede03(0x18a),'XtqEh':function(_0x5980ff,_0x3af21c){return _0x5980ff(_0x3af21c);}},_0x5ab90f=loadCache(),_0x44d6bc=_0x4e54cf['jWkjc'](getOrCreateSession,_0x5ab90f,_0x3f05a0);_0x44d6bc[_0x2ede03(0x1c0)]=!![];const _0x28277d=getCurrentBranch();_0x28277d&&_0x28277d!=='main'&&_0x4e54cf['scOQh'](_0x28277d,_0x4e54cf['rrkae'])&&(_0x5ab90f[_0x2ede03(0x18c)][_0x28277d]=!![],_0x44d6bc[_0x2ede03(0x1b0)]=_0x28277d),_0x4e54cf[_0x2ede03(0x1b6)](saveCache,_0x5ab90f);}export function isSessionEnabled(_0x3a3def){const _0x4ddec5=_0x517922,_0x4a9d6d={'VtOdl':function(_0x272daa){return _0x272daa();},'pxfpc':_0x4ddec5(0x1a5),'oglpX':function(_0x28eb94,_0x50d21f){return _0x28eb94===_0x50d21f;},'XxIoa':_0x4ddec5(0x18a),'TAlCp':function(_0x5a8392,_0x41b5db){return _0x5a8392===_0x41b5db;},'IveYN':function(_0x3c1723,_0x5cd4d8){return _0x3c1723===_0x5cd4d8;}},_0x2ee892=loadCache(),_0x279c62=_0x4a9d6d[_0x4ddec5(0x1aa)](getCurrentBranch);if(!_0x279c62||_0x279c62===_0x4a9d6d['pxfpc']||_0x4a9d6d['oglpX'](_0x279c62,_0x4a9d6d['XxIoa']))return _0x4a9d6d['TAlCp'](_0x2ee892[_0x4ddec5(0x1a0)][_0x3a3def]?.['enabled'],!![]);const _0x20d84f=_0x2ee892['branches'][_0x279c62]===!![],_0x7f4564=_0x4a9d6d[_0x4ddec5(0x1b4)](_0x2ee892['sessions'][_0x3a3def]?.[_0x4ddec5(0x1c0)],!![]);return _0x20d84f||_0x7f4564;}export function disableSession(_0x5f481c){const _0x17bf10=_0x517922,_0x3320d2={'CoeVb':function(_0x3ce80b,_0x571ef6){return _0x3ce80b(_0x571ef6);}},_0x6371fc=loadCache(),_0x42ca08=getOrCreateSession(_0x6371fc,_0x5f481c);_0x42ca08[_0x17bf10(0x1c0)]=![],_0x3320d2[_0x17bf10(0x19c)](saveCache,_0x6371fc);}export function updateBranchTracking(_0x3f663a){const _0x6a491e=_0x517922,_0x2d4cdd={'yixBw':function(_0x5ba0cd){return _0x5ba0cd();},'NNpVk':function(_0x565406,_0x54b7f8){return _0x565406===_0x54b7f8;},'oKuty':_0x6a491e(0x1a5),'HsEXf':function(_0x54f97d,_0xf8c7e7){return _0x54f97d!==_0xf8c7e7;}},_0xf1586f=_0x2d4cdd[_0x6a491e(0x194)](loadCache),_0x327b42=_0xf1586f['sessions'][_0x3f663a];if(!_0x327b42?.['enabled'])return;const _0x5302a8=_0x2d4cdd[_0x6a491e(0x194)](getCurrentBranch);if(!_0x5302a8||_0x2d4cdd['NNpVk'](_0x5302a8,_0x2d4cdd['oKuty'])||_0x2d4cdd[_0x6a491e(0x1ad)](_0x5302a8,'master'))return;_0x2d4cdd[_0x6a491e(0x19d)](_0x327b42[_0x6a491e(0x1b0)],_0x5302a8)&&(_0xf1586f[_0x6a491e(0x18c)][_0x5302a8]=!![],_0x327b42[_0x6a491e(0x1b0)]=_0x5302a8,saveCache(_0xf1586f));}export function initBranchTracking(_0x8271a0){const _0x4c4ab1=_0x517922,_0x117d09={'cfCyZ':function(_0x5762d8){return _0x5762d8();},'JEEvo':function(_0x1e6ee2,_0x8e64da){return _0x1e6ee2===_0x8e64da;},'tYfJc':function(_0x4878ed,_0x3ce29e,_0x308d84){return _0x4878ed(_0x3ce29e,_0x308d84);},'VEeRY':function(_0x39a627,_0x3e5413){return _0x39a627(_0x3e5413);}},_0x45c7f6=_0x117d09['cfCyZ'](loadCache),_0x41e37c=_0x117d09['cfCyZ'](getCurrentBranch);if(!_0x41e37c||_0x117d09[_0x4c4ab1(0x197)](_0x41e37c,'main')||_0x41e37c==='master')return;if(_0x45c7f6['branches'][_0x41e37c]===!![]){const _0x1f763b=_0x117d09['tYfJc'](getOrCreateSession,_0x45c7f6,_0x8271a0);_0x1f763b[_0x4c4ab1(0x1c0)]=!![],_0x1f763b[_0x4c4ab1(0x1b0)]=_0x41e37c,_0x117d09['VEeRY'](saveCache,_0x45c7f6);}}function _0x2607(_0x27860d,_0x2b6eb2){_0x27860d=_0x27860d-0x188;const _0xfc8a9b=_0xfc8a();let _0x260776=_0xfc8a9b[_0x27860d];return _0x260776;}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x58f3b0){const _0x2f3ba1=_0x517922,_0x25dc84=loadCache(),_0x3a6f48=_0x25dc84['sessions'][_0x58f3b0];_0x3a6f48?.[_0x2f3ba1(0x1c0)]&&(_0x25dc84['lastEnabledSessionClearedAt']=Date['now'](),saveCache(_0x25dc84));}export function shouldAutoEnableAfterClear(_0x21492b){const _0x5228cd=_0x517922,_0x25b985={'dlvWE':function(_0x39d485,_0x170cb2){return _0x39d485!==_0x170cb2;},'uhmPl':_0x5228cd(0x196),'OODwr':function(_0x4bdc8f){return _0x4bdc8f();},'pkXeR':function(_0x536ea0,_0x4ac78a){return _0x536ea0-_0x4ac78a;},'ooktw':function(_0x5683b1,_0x536e74){return _0x5683b1<=_0x536e74;}};if(_0x25b985[_0x5228cd(0x188)](_0x21492b,_0x25b985[_0x5228cd(0x1ae)]))return![];const _0x3b17f9=_0x25b985['OODwr'](loadCache),_0x8d4c4=_0x3b17f9['lastEnabledSessionClearedAt'];if(!_0x8d4c4)return![];const _0x48a0c0=_0x25b985['pkXeR'](Date[_0x5228cd(0x1b7)](),_0x8d4c4);return _0x25b985['ooktw'](_0x48a0c0,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x9e2a0){const _0x123d44=_0x517922,_0x12418c={'mJkqL':function(_0x52c37b){return _0x52c37b();},'fmEuq':function(_0x4a26f6,_0x5df294){return _0x4a26f6!==_0x5df294;},'geYwR':_0x123d44(0x1a5),'DfkgU':_0x123d44(0x18a),'ADyFh':function(_0x53a73b,_0x5cf8be){return _0x53a73b(_0x5cf8be);}},_0x27b527=_0x12418c[_0x123d44(0x190)](loadCache),_0xf92c4f=getOrCreateSession(_0x27b527,_0x9e2a0);_0xf92c4f[_0x123d44(0x1c0)]=!![];const _0x502ba0=getCurrentBranch();_0x502ba0&&_0x12418c[_0x123d44(0x192)](_0x502ba0,_0x12418c[_0x123d44(0x1ba)])&&_0x502ba0!==_0x12418c['DfkgU']&&(_0xf92c4f[_0x123d44(0x1b0)]=_0x502ba0),delete _0x27b527[_0x123d44(0x19f)],_0x12418c[_0x123d44(0x19b)](saveCache,_0x27b527);}export function registerSession(_0x213bdb,_0x55c7d4){const _0x2b74ad=_0x517922,_0x55e668={'GKVcT':function(_0x261b62){return _0x261b62();},'FADVX':function(_0x5dda6f,_0x1480e5,_0x133466){return _0x5dda6f(_0x1480e5,_0x133466);}},_0x114c13=_0x55e668['GKVcT'](loadCache),_0x3999c1=_0x55e668[_0x2b74ad(0x189)](getOrCreateSession,_0x114c13,_0x213bdb);_0x3999c1['featureId']=_0x55c7d4,_0x3999c1['registeredAt']=new Date()[_0x2b74ad(0x195)](),saveCache(_0x114c13);}export function getSessionEntry(_0x1fe9a1){const _0x4a55fd=_0x517922,_0x1d2eba={'hNTFg':function(_0x5e5649){return _0x5e5649();}},_0x3b9715=_0x1d2eba[_0x4a55fd(0x191)](loadCache),_0x38ee5b=_0x3b9715[_0x4a55fd(0x1a0)][_0x1fe9a1];if(_0x38ee5b?.['featureId']&&_0x38ee5b?.[_0x4a55fd(0x19e)])return{'featureId':_0x38ee5b[_0x4a55fd(0x1be)],'registeredAt':_0x38ee5b['registeredAt']};return null;}export function unregisterSession(_0x201851){const _0x41b9c5=_0x517922,_0x5ab6b9={'JWHaK':function(_0x2a9ebd,_0x4500ca){return _0x2a9ebd(_0x4500ca);}},_0x34b3d7=loadCache(),_0x26b306=_0x34b3d7[_0x41b9c5(0x1a0)][_0x201851];_0x26b306&&(delete _0x26b306[_0x41b9c5(0x1be)],delete _0x26b306['registeredAt'],_0x5ab6b9[_0x41b9c5(0x1c1)](saveCache,_0x34b3d7));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x49bb0a){const _0x2990a0=_0x517922,_0xa6b186={'pgaXu':function(_0x2e0f2f){return _0x2e0f2f();},'eRZRX':function(_0x3c9c5e,_0x8e701d){return _0x3c9c5e>=_0x8e701d;},'JfeiX':function(_0x50c592,_0x326551){return _0x50c592-_0x326551;}},_0x3955dd=_0xa6b186[_0x2990a0(0x1bd)](loadCache),_0x199982=getOrCreateSession(_0x3955dd,_0x49bb0a),_0x1ffa49=_0x199982['lastPlanReminderAt']||0x0,_0x3946f8=Date[_0x2990a0(0x1b7)]();if(_0xa6b186[_0x2990a0(0x18f)](_0xa6b186[_0x2990a0(0x198)](_0x3946f8,_0x1ffa49),PLAN_REMINDER_INTERVAL_MS))return _0x199982['lastPlanReminderAt']=_0x3946f8,saveCache(_0x3955dd),!![];return![];}export function shouldShowStopReminder(_0x40acd4){const _0x29fdc4=_0x517922,_0x5771ca={'hiLKg':function(_0x3ad0a9,_0x3c6553){return _0x3ad0a9-_0x3c6553;},'oGGLl':function(_0x53490c,_0x32a1f8){return _0x53490c(_0x32a1f8);}},_0x2377c9=loadCache(),_0x292fd9=getOrCreateSession(_0x2377c9,_0x40acd4),_0x173051=_0x292fd9[_0x29fdc4(0x1bc)]||0x0,_0x140c89=Date['now']();if(_0x5771ca['hiLKg'](_0x140c89,_0x173051)>=STOP_REMINDER_INTERVAL_MS)return _0x292fd9[_0x29fdc4(0x1bc)]=_0x140c89,_0x5771ca[_0x29fdc4(0x1b3)](saveCache,_0x2377c9),!![];return![];}export function hasSessionBeenPrompted(_0xf8e20){const _0x10dac2=_0x517922,_0x29ddf0={'zcVQR':function(_0x5aea25){return _0x5aea25();}},_0x53c1d2=_0x29ddf0['zcVQR'](loadCache);return _0x53c1d2[_0x10dac2(0x1a0)][_0xf8e20]?.[_0x10dac2(0x1b1)]===!![];}export function markSessionPrompted(_0x239168){const _0x2e692=_0x517922,_0x4fd908={'uFgPm':function(_0x396e2d){return _0x396e2d();}},_0x5aa4e4=_0x4fd908['uFgPm'](loadCache),_0x2e2feb=getOrCreateSession(_0x5aa4e4,_0x239168);_0x2e2feb[_0x2e692(0x1b1)]=!![],saveCache(_0x5aa4e4);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
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
+ const _0x5554aa=_0x5b22;(function(_0x5e62fd,_0x183022){const _0x3dfa42=_0x5b22,_0xd9e22f=_0x5e62fd();while(!![]){try{const _0x2fafa9=parseInt(_0x3dfa42(0x1c0))/0x1+parseInt(_0x3dfa42(0x17f))/0x2+parseInt(_0x3dfa42(0x179))/0x3+parseInt(_0x3dfa42(0x196))/0x4*(parseInt(_0x3dfa42(0x194))/0x5)+parseInt(_0x3dfa42(0x17c))/0x6+parseInt(_0x3dfa42(0x1c3))/0x7*(parseInt(_0x3dfa42(0x1ac))/0x8)+-parseInt(_0x3dfa42(0x1ab))/0x9;if(_0x2fafa9===_0x183022)break;else _0xd9e22f['push'](_0xd9e22f['shift']());}catch(_0x261c25){_0xd9e22f['push'](_0xd9e22f['shift']());}}}(_0x4b20,0x2790c));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(_0x244c2a){const _0x2f54f2=_0x5b22,_0x464406={'wIrnc':function(_0x391ba7){return _0x391ba7();},'KkkKt':function(_0x24ac77,_0x3d2147,_0x5c8ebe,_0x10af36){return _0x24ac77(_0x3d2147,_0x5c8ebe,_0x10af36);},'LzWvj':function(_0x49c6f9,_0x51b01c,_0x393d68,_0x46afb6){return _0x49c6f9(_0x51b01c,_0x393d68,_0x46afb6);},'vfMqH':function(_0x3af4dc,_0xd553a,_0x22c56){return _0x3af4dc(_0xd553a,_0x22c56);},'LOGcn':function(_0x44f8c5,_0x360b56,_0x1f263a){return _0x44f8c5(_0x360b56,_0x1f263a);},'elNPF':'local','tXIUd':function(_0x358c5d,_0x397565){return _0x358c5d(_0x397565);},'INWiC':function(_0xe028f,_0x4b404e){return _0xe028f(_0x4b404e);},'NcLIT':function(_0x35f2e2,_0x23514c){return _0x35f2e2!==_0x23514c;}},_0x2d11ae=_0x464406[_0x2f54f2(0x180)](getRangerDir),_0x62e468=_0x464406['KkkKt'](join,_0x2d11ae,'ci',_0x244c2a),_0x983be8=_0x464406['LzWvj'](join,_0x2d11ae,'local',_0x244c2a),_0x4fa1cd=_0x464406['vfMqH'](join,_0x2d11ae,_0x244c2a),_0x1eadb0=_0x464406['LOGcn'](join,_0x2d11ae,_0x464406[_0x2f54f2(0x183)]),_0x45f90d=join(_0x2d11ae,'ci');if(existsSync(_0x62e468))return _0x62e468;if(_0x464406[_0x2f54f2(0x199)](existsSync,_0x983be8))return _0x983be8;if(_0x464406['INWiC'](existsSync,_0x4fa1cd)&&(_0x464406['NcLIT'](_0x4fa1cd,_0x1eadb0)&&_0x4fa1cd!==_0x45f90d?!![]:hasLegacyProfileFiles(_0x4fa1cd)))return _0x4fa1cd;return _0x983be8;}function _0x4b20(){const _0x48b179=['ranger-auth-','645820yWDYFT','wIrnc','length','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','elNPF','isArray','path','.json','allow','IQFcA','xGLZz','Failed\x20to\x20decrypt\x20auth\x20state:\x20','sessions','auth.json','clipboard-read','locations','rdrIh','setupHeaders','hsKXu','CoSCb','--allow-insecure-localhost','634105qrnsQU','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','8CZGAQO','location','push','tXIUd','install','PGcSK','CUzBX','NXQdp','code','GXGEl','--disable-features=WebBluetooth','RilNg','catch','ENOENT','wxUyd','parse','RPnEr','BFscJ','now','file','bKYjN','6409980QUZFud','32FnUubC','itkTf','lPsSB','stringify','kcrTI','storageStatePath','gcRED','ranger-config','headless','env','all','includes','map','args','lEGCh','\x20is\x20not\x20set','qFxhP','legacy','RfRNp','nmEax','87609xtYDbm','qTirF','contextOptions','107989zLVNjj','message','Trxuc','join','KuTxJ','object','storageState','repeat','vision','--disable-setuid-sandbox','filter','zXEkq','header','headers','auth.json.enc','pdf','tEGbs','huEUD','ZhNHG','getuid','391650fIySvP','KnyPg','cdpEndpoint','107166dWArzU','extraHTTPHeaders'];_0x4b20=function(){return _0x48b179;};return _0x4b20();}export function findExistingEnv(_0x432cdf,_0x343c30){const _0x3708c4=_0x5b22,_0x4da36b={'wWWlm':_0x3708c4(0x1bd),'QHeYO':function(_0x48c20f,_0x435894,_0x43dfa4){return _0x48c20f(_0x435894,_0x43dfa4);},'KuTxJ':'local','KnyPg':function(_0xae0a6b,_0x85d9da,_0xf9aa63,_0x4b5450){return _0xae0a6b(_0x85d9da,_0xf9aa63,_0x4b5450);},'huEUD':function(_0x266a21,_0x4f3254){return _0x266a21===_0x4f3254;}},_0x470862=_0x343c30?.['rangerDir']??getRangerDir(),_0x177e83=_0x343c30?.[_0x3708c4(0x18e)]??['ci','local',_0x4da36b['wWWlm']],_0x4e1b97=_0x4da36b['QHeYO'](join,_0x470862,_0x4da36b[_0x3708c4(0x1c7)]),_0x3f2175=join(_0x470862,'ci'),_0x4b4504=[{'location':'ci','path':join(_0x470862,'ci',_0x432cdf)},{'location':_0x4da36b[_0x3708c4(0x1c7)],'path':_0x4da36b[_0x3708c4(0x17a)](join,_0x470862,_0x4da36b['KuTxJ'],_0x432cdf)},{'location':_0x4da36b['wWWlm'],'path':join(_0x470862,_0x432cdf)}];for(const _0x5afaef of _0x4b4504){if(_0x177e83[_0x3708c4(0x1b7)](_0x5afaef['location'])&&existsSync(_0x5afaef['path'])){if(_0x4da36b[_0x3708c4(0x176)](_0x5afaef['location'],_0x4da36b['wWWlm'])&&(_0x4da36b[_0x3708c4(0x176)](_0x5afaef[_0x3708c4(0x185)],_0x4e1b97)||_0x5afaef[_0x3708c4(0x185)]===_0x3f2175)&&!hasLegacyProfileFiles(_0x5afaef[_0x3708c4(0x185)]))continue;return{'path':_0x5afaef[_0x3708c4(0x185)],'location':_0x5afaef[_0x3708c4(0x197)]};}}return null;}function hasLegacyProfileFiles(_0x20104e){const _0x12d320=_0x5b22,_0x23f519={'lEGCh':'settings.json','KmOGP':function(_0x2cd837,_0x22e1aa,_0x40241c){return _0x2cd837(_0x22e1aa,_0x40241c);},'igzBy':function(_0x244eee,_0x548aef){return _0x244eee(_0x548aef);},'wxUyd':'auth.json.enc'};return existsSync(join(_0x20104e,_0x23f519[_0x12d320(0x1ba)]))||existsSync(_0x23f519['KmOGP'](join,_0x20104e,'auth.json'))||_0x23f519['igzBy'](existsSync,join(_0x20104e,_0x23f519[_0x12d320(0x1a4)]));}export function isEnvCi(_0x49998e){const _0x18d90a={'HPjvV':function(_0x43ec2e,_0x42df81){return _0x43ec2e(_0x42df81);},'LbutA':function(_0x5e0ee7,_0x4ea968,_0x1870fb,_0x12e6b5){return _0x5e0ee7(_0x4ea968,_0x1870fb,_0x12e6b5);},'EUHYz':function(_0x355d9d){return _0x355d9d();}};return _0x18d90a['HPjvV'](existsSync,_0x18d90a['LbutA'](join,_0x18d90a['EUHYz'](getRangerDir),'ci',_0x49998e));}export async function cleanupTempFiles(_0x27e8a8){const _0x239973=_0x5b22,_0x313d9f=[_0x27e8a8['tempAuthPath'],_0x27e8a8['configPath']][_0x239973(0x1cd)](Boolean);await Promise[_0x239973(0x1b6)](_0x313d9f['map'](_0x199c4d=>unlink(_0x199c4d)[_0x239973(0x1a2)](_0x43c53e=>{const _0x1afdab=_0x239973;_0x43c53e[_0x1afdab(0x19e)]!==_0x1afdab(0x1a3)&&console['warn'](_0x1afdab(0x195)+_0x199c4d+':',_0x43c53e[_0x1afdab(0x1c4)]);})));}export function getSettingsPath(_0x3b1269){const _0x370527=_0x5b22,_0x285219={'xGLZz':function(_0x472c7e,_0x42cd4b,_0x1200c9){return _0x472c7e(_0x42cd4b,_0x1200c9);},'GXGEl':'settings.json'};return _0x285219[_0x370527(0x189)](join,getEnvDir(_0x3b1269),_0x285219[_0x370527(0x19f)]);}export async function loadSettings(_0x1d7336){const _0x1558fe=_0x5b22,_0x3a180e={'aseIB':function(_0x4e00c2,_0x286ab1){return _0x4e00c2(_0x286ab1);}},_0x4f995e=_0x3a180e['aseIB'](getSettingsPath,_0x1d7336);if(!existsSync(_0x4f995e))return{};try{const _0x57eaa6=await readFile(_0x4f995e,'utf-8');return JSON[_0x1558fe(0x1a5)](_0x57eaa6);}catch{return{};}}export async function saveSettings(_0x347fa5,_0x52ddea){const _0x18aba9=_0x5b22,_0x5cad33={'tEGbs':function(_0x963df3,_0x2fdd05){return _0x963df3(_0x2fdd05);},'WyAlh':function(_0x142f72,_0x277c6e){return _0x142f72(_0x277c6e);}},_0x58902a=getSettingsPath(_0x347fa5),_0x35bab4=_0x5cad33[_0x18aba9(0x175)](dirname,_0x58902a);!_0x5cad33['WyAlh'](existsSync,_0x35bab4)&&await mkdir(_0x35bab4,{'recursive':!![]}),await writeFile(_0x58902a,JSON['stringify'](_0x52ddea,null,0x2));}export function resolveEnvVars(_0x338118){const _0x55bb22=_0x5b22,_0x46cacd={'pfxPG':function(_0x209734,_0x2c5f2d){return _0x209734===_0x2c5f2d;}};if(typeof _0x338118==='string')return _0x338118['replace'](/\$\{(\w+)\}/g,(_0x5d671c,_0x282e48)=>{const _0x2525c3=_0x5b22,_0x5bbb1f=process[_0x2525c3(0x1b5)][_0x282e48];if(_0x5bbb1f===undefined)throw new Error('Environment\x20variable\x20'+_0x282e48+_0x2525c3(0x1bb));return _0x5bbb1f;});if(Array[_0x55bb22(0x184)](_0x338118))return _0x338118['map'](resolveEnvVars);if(_0x338118&&_0x46cacd['pfxPG'](typeof _0x338118,'object'))return Object['fromEntries'](Object['entries'](_0x338118)[_0x55bb22(0x1b8)](([_0xa300ea,_0x424dca])=>[_0xa300ea,resolveEnvVars(_0x424dca)]));return _0x338118;}const isRecord=_0x1131b9=>typeof _0x1131b9===_0x5554aa(0x1c8)&&_0x1131b9!==null&&!Array['isArray'](_0x1131b9),asRecord=_0x58ed90=>isRecord(_0x58ed90)?_0x58ed90:undefined,mergeHeaders=(_0x164f16,_0x2a95dd)=>{const _0x460d0a=_0x5554aa,_0x579925={'ZhNHG':function(_0x478f6f,_0x1506fc){return _0x478f6f??_0x1506fc;}},_0x1805d4={..._0x579925[_0x460d0a(0x177)](_0x164f16,{}),..._0x2a95dd??{}};return Object['keys'](_0x1805d4)['length']?_0x1805d4:undefined;},SAFE_MODE_ARGS=[_0x5554aa(0x1a0)],ALLOW_LOCALHOST_ARGS=['--disable-web-security','--allow-running-insecure-content','--unsafely-treat-insecure-origin-as-secure=http://localhost',_0x5554aa(0x193)];export function buildBrowserOptionsFromSettings(_0x4d748e,_0x36495={}){const _0x25da63=_0x5554aa,_0x4a49a5={'YGiLx':function(_0x280807,_0x1eb054){return _0x280807(_0x1eb054);},'CCrVq':function(_0x18d280,_0x34c343){return _0x18d280===_0x34c343;},'vtHNG':function(_0x515a2c,_0x61d3b0,_0x3de2eb){return _0x515a2c(_0x61d3b0,_0x3de2eb);},'RPnEr':function(_0x1d8587,_0x489f97){return _0x1d8587(_0x489f97);}},_0x861012=_0x4a49a5['YGiLx'](asRecord,_0x4d748e['browser']),_0x241668={..._0x4a49a5['YGiLx'](asRecord,_0x861012?.['launchOptions'])??{}};_0x4a49a5['CCrVq'](typeof _0x36495[_0x25da63(0x1b4)],'boolean')&&(_0x241668['headless']=_0x36495[_0x25da63(0x1b4)]);if(_0x4d748e['safeMode']){const _0x17cfd4=_0x241668['args']??[],_0x1fdf19=SAFE_MODE_ARGS['filter'](_0x3de10c=>!_0x17cfd4['includes'](_0x3de10c));_0x241668['args']=[..._0x17cfd4,..._0x1fdf19];}if(_0x4d748e['allowInsecureLocalhost']){const _0x1e0002=_0x241668[_0x25da63(0x1b9)]??[],_0x48a1e3=ALLOW_LOCALHOST_ARGS['filter'](_0x4cc711=>!_0x1e0002['includes'](_0x4cc711));_0x241668['args']=[..._0x1e0002,..._0x48a1e3];}const _0xb8f93e={...asRecord(_0x861012?.[_0x25da63(0x1c2)])??{}};_0xb8f93e['ignoreHTTPSErrors']=!![];typeof _0x4d748e['userAgent']==='string'&&(_0xb8f93e['userAgent']=_0x4d748e['userAgent']);const _0x488ada=_0x4a49a5['vtHNG'](mergeHeaders,_0x4a49a5[_0x25da63(0x1a6)](asRecord,_0xb8f93e['extraHTTPHeaders']),asRecord(_0x4d748e[_0x25da63(0x1d0)]));return _0x488ada?_0xb8f93e[_0x25da63(0x17d)]=_0x488ada:delete _0xb8f93e[_0x25da63(0x17d)],_0x36495[_0x25da63(0x1b1)]&&(_0xb8f93e[_0x25da63(0x1c9)]=_0x36495[_0x25da63(0x1b1)]),{'launchOptions':_0x241668,'contextOptions':_0xb8f93e};}export async function buildPlaywrightConfig(_0x4b25e1,_0x5ed7b2,_0x3f4726,_0x4c88a3){const _0x577301=_0x5554aa,_0x352190={'Comix':function(_0x4ace5b,_0x4f8358){return _0x4ace5b===_0x4f8358;},'PGcSK':'chromium','TnWtA':_0x577301(0x18d),'PrIbX':function(_0x4e0510,_0x53ff89){return _0x4e0510(_0x53ff89);},'NXQdp':function(_0x4c1e4b,_0x2bcf16,_0x1c9ff8){return _0x4c1e4b(_0x2bcf16,_0x1c9ff8);},'BNlKz':'auth.json.enc','jFuvX':function(_0x4f3140,_0x1fbbc7,_0x3bf5a1){return _0x4f3140(_0x1fbbc7,_0x3bf5a1);},'qFxhP':function(_0x690d45,_0x322a51){return _0x690d45(_0x322a51);},'hsKXu':function(_0x18c80d){return _0x18c80d();},'UlfeF':_0x577301(0x182),'odHLD':function(_0xd533e8,_0x1282a7,_0x496b6c){return _0xd533e8(_0x1282a7,_0x496b6c);},'itkTf':function(_0x29d8fa,_0x61c760){return _0x29d8fa instanceof _0x61c760;},'ZJKbg':function(_0x381ea0){return _0x381ea0();},'zXEkq':function(_0x3e62e3,_0x1ed0dd,_0x375608,_0x201445){return _0x3e62e3(_0x1ed0dd,_0x375608,_0x201445);},'kcrTI':function(_0x222062){return _0x222062();},'nmEax':function(_0x50db47,_0x1f8458){return _0x50db47(_0x1f8458);},'RilNg':'core','MJjuq':function(_0x541699,_0x11d5e7){return _0x541699===_0x11d5e7;},'DMSjQ':function(_0x237123,_0x5d06c7){return _0x237123===_0x5d06c7;},'ojnUs':function(_0x5d4d95,_0x58ae23,_0x4679f7){return _0x5d4d95(_0x58ae23,_0x4679f7);}},_0x3684c2=_0x352190['PrIbX'](getEnvDir,_0x5ed7b2),_0x510750=_0x352190[_0x577301(0x19d)](join,_0x3684c2,_0x352190['BNlKz']),_0x561157=_0x352190['jFuvX'](join,_0x3684c2,'auth.json');let _0x2fef8d,_0x1d4835;if(_0x352190[_0x577301(0x1bc)](existsSync,_0x510750))try{const _0x113246=await _0x352190['hsKXu'](getToken);if(!_0x113246)throw new Error(_0x352190['UlfeF']);const _0x19464b=await readFile(_0x510750),_0x2c9b47=_0x352190['odHLD'](decrypt,_0x19464b,_0x113246);_0x1d4835=_0x352190['jFuvX'](join,_0x352190[_0x577301(0x191)](tmpdir),_0x577301(0x17e)+Date['now']()+_0x577301(0x186)),await writeFile(_0x1d4835,_0x2c9b47),_0x2fef8d=_0x1d4835;}catch(_0x5ce918){const _0x21b639=_0x352190[_0x577301(0x1ad)](_0x5ce918,Error)?_0x5ce918[_0x577301(0x1c4)]:String(_0x5ce918);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x21b639);}else _0x352190[_0x577301(0x1bc)](existsSync,_0x561157)&&(_0x2fef8d=_0x561157);const _0x1edb91=_0x3f4726||_0x352190['ZJKbg'](randomUUID),_0x3c6264=_0x352190[_0x577301(0x1ce)](join,_0x352190[_0x577301(0x1b0)](getRangerDir),_0x577301(0x18b),_0x1edb91),_0x1c09bc=_0x352190[_0x577301(0x1bf)](Boolean,_0x4b25e1[_0x577301(0x17b)]),_0x4d8dd1=_0x1c09bc?{'browserName':_0x352190[_0x577301(0x19b)],'cdpEndpoint':_0x4b25e1[_0x577301(0x17b)]}:((()=>{const _0x29cf59=_0x577301,{launchOptions:_0x2e06e0,contextOptions:_0x247b8a}=buildBrowserOptionsFromSettings(_0x4b25e1,{'headless':_0x4c88a3?![]:_0x4b25e1[_0x29cf59(0x1b4)]??!![],'storageStatePath':_0x2fef8d});if(_0x352190['Comix'](process[_0x29cf59(0x178)]?.(),0x0)){const _0x2d1bf9=['--no-sandbox','--disable-setuid-sandbox'],_0x154c6f=_0x2e06e0['args']??[],_0x31335a=_0x2d1bf9[_0x29cf59(0x1cd)](_0x1ec289=>!_0x154c6f['includes'](_0x1ec289));_0x2e06e0[_0x29cf59(0x1b9)]=[..._0x154c6f,..._0x31335a];}return{'isolated':!![],'browserName':_0x352190['PGcSK'],'launchOptions':_0x2e06e0,'contextOptions':{..._0x247b8a,'permissions':[_0x352190['TnWtA'],'clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x399fa3={'name':_0x5ed7b2,'browser':_0x4d8dd1,'capabilities':[_0x352190[_0x577301(0x1a1)],'tabs',_0x577301(0x19a),_0x577301(0x1d2),_0x577301(0x1cb)],'imageResponses':_0x577301(0x187),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x3c6264};if(!_0x1c09bc){const _0x2128ac=_0x399fa3['browser'],_0x5c98fe=_0x2128ac['contextOptions'];if(_0x352190['MJjuq'](_0x5c98fe['userAgent'],undefined))delete _0x5c98fe['userAgent'];if(_0x352190['DMSjQ'](_0x5c98fe['storageState'],undefined))delete _0x5c98fe['storageState'];}const _0xd49a72=join(tmpdir(),_0x577301(0x1b3));!existsSync(_0xd49a72)&&await _0x352190['ojnUs'](mkdir,_0xd49a72,{'recursive':!![]});const _0x133fcd=join(_0xd49a72,_0x5ed7b2+'-'+Date[_0x577301(0x1a8)]()+'.json');return await writeFile(_0x133fcd,JSON[_0x577301(0x1af)](_0x399fa3,null,0x2)),{'configPath':_0x133fcd,'tempAuthPath':_0x1d4835};}export async function buildPlaywrightCliConfig(_0x28c71d,_0x491460,_0x1c62ce,_0x446aec){const _0x46d515=_0x5554aa,_0x302895={'BFscJ':_0x46d515(0x1cc),'pTVlu':'chromium','lPsSB':function(_0xaf9afe,_0x126cd7,_0x25ece1){return _0xaf9afe(_0x126cd7,_0x25ece1);},'aQenB':_0x46d515(0x18c),'HxWDT':'No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','Tohta':function(_0x1aa767,_0x165384){return _0x1aa767(_0x165384);},'niMfC':function(_0xb38838,_0x437bdc){return _0xb38838(_0x437bdc);},'gcRED':function(_0x4e1539){return _0x4e1539();},'TYFcw':function(_0x1f27e9,_0x10f6ac){return _0x1f27e9===_0x10f6ac;},'TRURM':'none','OnXGy':function(_0x39fe47){return _0x39fe47();},'IQFcA':_0x46d515(0x1b3),'CUzBX':function(_0x30b6ce,_0x80feaf,_0x151a03){return _0x30b6ce(_0x80feaf,_0x151a03);}},_0x176c59=getEnvDir(_0x491460),_0x491d5e=_0x302895[_0x46d515(0x1ae)](join,_0x176c59,_0x46d515(0x1d1)),_0x3661dc=join(_0x176c59,_0x302895['aQenB']);let _0xc29f7e,_0x283f31;if(existsSync(_0x491d5e))try{const _0x53bdce=await getToken();if(!_0x53bdce)throw new Error(_0x302895['HxWDT']);const _0x49aa8c=await _0x302895['Tohta'](readFile,_0x491d5e),_0x3794e5=decrypt(_0x49aa8c,_0x53bdce);_0x283f31=join(tmpdir(),_0x46d515(0x17e)+Date[_0x46d515(0x1a8)]()+'.json'),await _0x302895[_0x46d515(0x1ae)](writeFile,_0x283f31,_0x3794e5),_0xc29f7e=_0x283f31;}catch(_0x207c9){const _0x3544a3=_0x207c9 instanceof Error?_0x207c9[_0x46d515(0x1c4)]:_0x302895['niMfC'](String,_0x207c9);throw new Error(_0x46d515(0x18a)+_0x3544a3);}else existsSync(_0x3661dc)&&(_0xc29f7e=_0x3661dc);const _0x4cbc1a=_0x1c62ce||_0x302895[_0x46d515(0x1b2)](randomUUID),_0x20b362=join(_0x302895[_0x46d515(0x1b2)](getRangerDir),'sessions',_0x4cbc1a),_0x3053a5=Boolean(_0x28c71d['cdpEndpoint']),_0x49164a=_0x3053a5?{'browserName':'chromium','cdpEndpoint':_0x28c71d['cdpEndpoint']}:((()=>{const _0x5a204b=_0x46d515,{launchOptions:_0x340d73,contextOptions:_0xf8249a}=buildBrowserOptionsFromSettings(_0x28c71d,{'headless':_0x446aec?![]:_0x28c71d[_0x5a204b(0x1b4)]??!![],'storageStatePath':_0xc29f7e});if(process[_0x5a204b(0x178)]?.()===0x0){const _0x4b6742=['--no-sandbox',_0x302895[_0x5a204b(0x1a7)]],_0x32a806=_0x340d73[_0x5a204b(0x1b9)]??[],_0x30e8ea=_0x4b6742['filter'](_0x48269c=>!_0x32a806[_0x5a204b(0x1b7)](_0x48269c));_0x340d73['args']=[..._0x32a806,..._0x30e8ea];}return{'isolated':!![],'browserName':_0x302895['pTVlu'],'launchOptions':_0x340d73,'contextOptions':{..._0xf8249a,'permissions':['clipboard-read','clipboard-write'],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x3053a5){const _0x776532=_0x49164a[_0x46d515(0x1c2)];if(_0x776532['userAgent']===undefined)delete _0x776532['userAgent'];if(_0x302895['TYFcw'](_0x776532['storageState'],undefined))delete _0x776532['storageState'];}const _0x29d665={'browser':_0x49164a,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x20b362,'outputMode':_0x46d515(0x1a9),'codegen':_0x302895['TRURM']},_0x1408b8=join(_0x302895['OnXGy'](tmpdir),_0x302895[_0x46d515(0x188)]);!existsSync(_0x1408b8)&&await _0x302895['lPsSB'](mkdir,_0x1408b8,{'recursive':!![]});const _0xd96d5e=_0x302895['lPsSB'](join,_0x1408b8,_0x491460+'-'+Date['now']()+'-cli.json');return await _0x302895[_0x46d515(0x19c)](writeFile,_0xd96d5e,JSON[_0x46d515(0x1af)](_0x29d665,null,0x2)),{'configPath':_0xd96d5e,'tempAuthPath':_0x283f31};}function _0x5b22(_0x1c134a,_0x316822){_0x1c134a=_0x1c134a-0x175;const _0x4b20a3=_0x4b20();let _0x5b2227=_0x4b20a3[_0x1c134a];return _0x5b2227;}export function getNestedValue(_0x2a3d86,_0x33dd14){const _0x1f0ee7=_0x5554aa,_0x146769={'qTirF':function(_0x4172f6,_0x541fd0){return _0x4172f6(_0x541fd0);},'rdrIh':function(_0x1d061,_0x1c9715){return _0x1d061===_0x1c9715;},'fqQYz':function(_0x1da1cc,_0x19e273){return _0x1da1cc!==_0x19e273;}},_0x5bff55=_0x146769[_0x1f0ee7(0x1c1)](parseKeyPath,_0x33dd14);let _0x3a986a=_0x2a3d86;for(const _0x1136c9 of _0x5bff55){if(_0x146769[_0x1f0ee7(0x18f)](_0x3a986a,null)||_0x3a986a===undefined||_0x146769['fqQYz'](typeof _0x3a986a,'object'))return undefined;_0x3a986a=_0x3a986a[_0x1136c9];}return _0x3a986a;}export function setNestedValue(_0x44eb47,_0xe1201f,_0x2c541c){const _0x3108a6=_0x5554aa,_0x506fe5={'CoSCb':function(_0x509ca4,_0x504e47){return _0x509ca4-_0x504e47;}},_0x4b11a6=parseKeyPath(_0xe1201f);let _0x4be38b=_0x44eb47;for(let _0xf1607d=0x0;_0xf1607d<_0x4b11a6['length']-0x1;_0xf1607d++){const _0x4caf1c=_0x4b11a6[_0xf1607d];(!(_0x4caf1c in _0x4be38b)||typeof _0x4be38b[_0x4caf1c]!==_0x3108a6(0x1c8))&&(_0x4be38b[_0x4caf1c]={}),_0x4be38b=_0x4be38b[_0x4caf1c];}_0x4be38b[_0x4b11a6[_0x506fe5[_0x3108a6(0x192)](_0x4b11a6[_0x3108a6(0x181)],0x1)]]=_0x2c541c;}export function deleteNestedValue(_0x8e20d2,_0x9033a7){const _0xf01974=_0x5554aa,_0x3f3a21={'YNUbR':function(_0x252f1e,_0x186afb){return _0x252f1e===_0x186afb;},'KkyZZ':function(_0x3af313,_0x2bb0fa){return _0x3af313!==_0x2bb0fa;},'vzSXr':'object','Trxuc':function(_0xa3546a,_0x47cf7f){return _0xa3546a===_0x47cf7f;}},_0x230f17=parseKeyPath(_0x9033a7);let _0x122edb=_0x8e20d2;for(let _0x158932=0x0;_0x158932<_0x230f17['length']-0x1;_0x158932++){if(_0x3f3a21['YNUbR'](_0x122edb,null)||_0x122edb===undefined||_0x3f3a21['KkyZZ'](typeof _0x122edb,_0x3f3a21['vzSXr']))return![];_0x122edb=_0x122edb[_0x230f17[_0x158932]];}if(_0x3f3a21['YNUbR'](_0x122edb,null)||_0x3f3a21[_0xf01974(0x1c5)](_0x122edb,undefined)||typeof _0x122edb!==_0x3f3a21['vzSXr'])return![];const _0x514094=_0x230f17[_0x230f17[_0xf01974(0x181)]-0x1];if(_0x514094 in _0x122edb)return delete _0x122edb[_0x514094],!![];return![];}function parseKeyPath(_0x2b6783){const _0x4cea73=_0x5554aa,_0x18fd67={'dVujr':function(_0x4709b7,_0x569ea0){return _0x4709b7===_0x569ea0;},'hxuHy':_0x4cea73(0x1cf),'bKYjN':'headers','tFdBJ':'setupHeader','Vyqeb':_0x4cea73(0x190)},_0x2057e9=_0x2b6783['split']('.');return _0x18fd67['dVujr'](_0x2057e9[0x0],_0x18fd67['hxuHy'])&&(_0x2057e9[0x0]=_0x18fd67[_0x4cea73(0x1aa)]),_0x18fd67['dVujr'](_0x2057e9[0x0],_0x18fd67['tFdBJ'])&&(_0x2057e9[0x0]=_0x18fd67['Vyqeb']),_0x2057e9;}export function formatSettings(_0x168e68,_0x2c1d8f=0x0){const _0x38b93c=_0x5554aa,_0x2fb193={'RfRNp':function(_0x3123fd,_0x5be04a){return _0x3123fd===_0x5be04a;},'xRjwk':'object'},_0x4b6255=[],_0xba7fed='\x20\x20'[_0x38b93c(0x1ca)](_0x2c1d8f);for(const [_0x56ec3c,_0x470892]of Object['entries'](_0x168e68)){if(_0x470892===undefined)continue;if(_0x2fb193[_0x38b93c(0x1be)](typeof _0x470892,_0x2fb193['xRjwk'])&&_0x470892!==null){_0x4b6255[_0x38b93c(0x198)](''+_0xba7fed+_0x56ec3c+':');for(const [_0x3c26e7,_0x3075dd]of Object['entries'](_0x470892)){_0x4b6255['push'](_0xba7fed+'\x20\x20'+_0x3c26e7+':\x20'+_0x3075dd);}}else _0x4b6255[_0x38b93c(0x198)](''+_0xba7fed+_0x56ec3c+':\x20'+_0x470892);}return _0x4b6255[_0x38b93c(0x1c6)]('\x0a');}
@@ -1 +1 @@
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
+ (function(_0x38fa97,_0x143c8d){const _0x3e761e=_0x5d0f,_0x18e76e=_0x38fa97();while(!![]){try{const _0x2fd256=-parseInt(_0x3e761e(0x19d))/0x1+parseInt(_0x3e761e(0x1a5))/0x2+parseInt(_0x3e761e(0x1a3))/0x3+parseInt(_0x3e761e(0x1a1))/0x4+-parseInt(_0x3e761e(0x19e))/0x5+parseInt(_0x3e761e(0x19c))/0x6+-parseInt(_0x3e761e(0x1a0))/0x7*(parseInt(_0x3e761e(0x1a4))/0x8);if(_0x2fd256===_0x143c8d)break;else _0x18e76e['push'](_0x18e76e['shift']());}catch(_0x24e9e8){_0x18e76e['push'](_0x18e76e['shift']());}}}(_0x359e,0xacfe6));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x1d18bf){const _0xcec362=_0x5d0f,_0x25ce19={'VfyEC':'skills','XJbLV':function(_0xbf1135,_0x278325,_0x5611a6){return _0xbf1135(_0x278325,_0x5611a6);}},_0x3c9ebe=join(__dirname,'..','..',_0x25ce19['VfyEC']),_0x4bfb44=join(_0x3c9ebe,_0x1d18bf);try{return _0x25ce19['XJbLV'](readFileSync,_0x4bfb44,_0xcec362(0x19f));}catch{return'';}}function _0x5d0f(_0x1c7b41,_0x5dc21a){_0x1c7b41=_0x1c7b41-0x19c;const _0x359e3c=_0x359e();let _0x5d0fcc=_0x359e3c[_0x1c7b41];return _0x5d0fcc;}function _0x359e(){const _0x580264=['8561RSJPvF','673384GPiguy','ranger/SKILL.md','4216260ScfIfU','2600FrJkXb','2340602RVyhCa','1657212JZysjJ','883205LOEaFj','5155035lqIVwV','utf-8'];_0x359e=function(){return _0x580264;};return _0x359e();}export function getRangerSkillContent(){const _0x25f26e=_0x5d0f;return readSkillContent(_0x25f26e(0x1a2));}
@@ -1 +1 @@
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),![];}}
1
+ const _0x1e69e5=_0x3135;(function(_0xa259a9,_0x35be0a){const _0x353fc4=_0x3135,_0x25e71d=_0xa259a9();while(!![]){try{const _0x418c0c=parseInt(_0x353fc4(0x196))/0x1*(parseInt(_0x353fc4(0x197))/0x2)+parseInt(_0x353fc4(0x18f))/0x3+parseInt(_0x353fc4(0x19b))/0x4+parseInt(_0x353fc4(0x18b))/0x5*(-parseInt(_0x353fc4(0x18e))/0x6)+parseInt(_0x353fc4(0x198))/0x7+parseInt(_0x353fc4(0x19d))/0x8*(-parseInt(_0x353fc4(0x187))/0x9)+-parseInt(_0x353fc4(0x182))/0xa;if(_0x418c0c===_0x35be0a)break;else _0x25e71d['push'](_0x25e71d['shift']());}catch(_0xb526b0){_0x25e71d['push'](_0x25e71d['shift']());}}}(_0x559d,0x1b346));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';function _0x3135(_0x4389ed,_0x3907a6){_0x4389ed=_0x4389ed-0x178;const _0x559d93=_0x559d();let _0x31359b=_0x559d93[_0x4389ed];return _0x31359b;}import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x1e69e5(0x17c)];export const DEPRECATED_SKILLS=['e2e-test-recommender',_0x1e69e5(0x185),'feature-tracker'];export async function installSkill(_0x3c9b93,_0x5c7bcd={}){const _0x42ea2d=_0x1e69e5,_0x247479={'RqAsn':_0x42ea2d(0x17b),'ElXUC':function(_0x436ec8){return _0x436ec8();},'gLdVr':function(_0x325a41,_0x18a493,_0x48a893){return _0x325a41(_0x18a493,_0x48a893);},'UISoM':function(_0x41e0a9,_0x758036,_0x5b93cc){return _0x41e0a9(_0x758036,_0x5b93cc);},'LrXvf':function(_0xb72b5e,_0x3606b1){return _0xb72b5e(_0x3606b1);},'cHSQN':function(_0x183aa0,_0x3c6e3c){return _0x183aa0(_0x3c6e3c);},'ZyZZp':function(_0x420c86,_0x4d13f6,_0x158c10){return _0x420c86(_0x4d13f6,_0x158c10);},'lLlww':function(_0x36e0e9,_0x1785e1){return _0x36e0e9(_0x1785e1);},'NGOgQ':function(_0x5823de,_0x3b82a5,_0x42cd3d){return _0x5823de(_0x3b82a5,_0x42cd3d);},'vXhUH':_0x42ea2d(0x194),'DZJrt':function(_0x4f46ea,_0x2a1f77,_0x48cac2){return _0x4f46ea(_0x2a1f77,_0x48cac2);},'qADbB':function(_0x1e6ac2,_0x22ad60,_0x4086f4,_0x36b9f4){return _0x1e6ac2(_0x22ad60,_0x4086f4,_0x36b9f4);}},{level:level=_0x42ea2d(0x17e),cliVersion:_0x2dc6fa,platform:platform=_0x247479['RqAsn']}=_0x5c7bcd,_0xa746f7=_0x247479['ElXUC'](getSourceSkillsDir),_0x184c91=_0x247479['gLdVr'](join,_0xa746f7,_0x3c9b93),_0x23df11=_0x247479['UISoM'](join,_0xa746f7,_0x3c9b93+_0x42ea2d(0x190)),_0x3ad1db=_0x247479['LrXvf'](existsSync,_0x184c91)&&_0x247479[_0x42ea2d(0x17d)](statSync,_0x184c91)[_0x42ea2d(0x189)]()&&existsSync(_0x247479[_0x42ea2d(0x180)](join,_0x184c91,'SKILL.md')),_0x12e9c4=existsSync(_0x23df11);if(!_0x3ad1db&&!_0x12e9c4)return console[_0x42ea2d(0x186)](_0x42ea2d(0x192)+_0x3c9b93),![];const _0x3731f8=platform===_0x42ea2d(0x195)?getOpencodeSkillsDir(level):getSkillsDir(level),_0x212750=join(_0x3731f8,_0x3c9b93);await _0x247479['gLdVr'](mkdir,_0x212750,{'recursive':!![]});let _0x37a97b,_0x14c9ec=[];if(_0x3ad1db){const _0x35bbc1=await _0x247479[_0x42ea2d(0x178)](readdir,_0x184c91),_0x5a5fc8=_0x35bbc1[_0x42ea2d(0x18d)](_0x23f8ac=>_0x23f8ac['endsWith'](_0x42ea2d(0x190)));for(const _0x5dbe08 of _0x5a5fc8){const _0x15c730=_0x247479[_0x42ea2d(0x17a)](join,_0x184c91,_0x5dbe08),_0x25375f=_0x247479[_0x42ea2d(0x19c)](join,_0x212750,_0x5dbe08);await copyFile(_0x15c730,_0x25375f),_0x14c9ec['push'](_0x5dbe08);}_0x37a97b=await readFile(_0x247479[_0x42ea2d(0x179)](join,_0x184c91,'SKILL.md'),'utf-8');}else{_0x37a97b=await _0x247479[_0x42ea2d(0x17a)](readFile,_0x23df11,_0x247479['vXhUH']);const _0x4dd165=_0x247479['DZJrt'](join,_0x212750,_0x42ea2d(0x193));await writeFile(_0x4dd165,_0x37a97b,'utf-8'),_0x14c9ec['push']('SKILL.md');}const {name:_0xfe3fca}=_0x247479['cHSQN'](parseFrontmatter,_0x37a97b);return console[_0x42ea2d(0x19a)]('\x20\x20Installed\x20skill:\x20'+_0xfe3fca),console['log']('\x20\x20Location:\x20'+_0x212750),_0x14c9ec['length']>0x1&&console['log'](_0x42ea2d(0x199)+_0x14c9ec['join'](',\x20')),_0x247479[_0x42ea2d(0x183)](logLocalAgentInstallation,_0x3c9b93,{'skillDisplayName':_0xfe3fca,'installLevel':level},_0x2dc6fa)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x1dc02c=_0x1e69e5,_0x18fa64={'PMpZx':function(_0x36ae69,_0x10e609,_0x2d212c,_0x22bd02,_0x3de25d,_0x256585){return _0x36ae69(_0x10e609,_0x2d212c,_0x22bd02,_0x3de25d,_0x256585);},'dOmct':_0x1dc02c(0x184),'bsQEv':function(_0x3b38c5,_0x1946bf){return _0x3b38c5(_0x1946bf);}},_0x408bbe=[join(__dirname,'..','..','skills'),_0x18fa64[_0x1dc02c(0x188)](join,__dirname,'..','..','..',_0x18fa64[_0x1dc02c(0x18a)])];for(const _0x548a6d of _0x408bbe){if(_0x18fa64['bsQEv'](existsSync,_0x548a6d))return _0x548a6d;}return _0x408bbe[0x0];}function parseFrontmatter(_0xb54784){const _0x52e8be=_0x1e69e5,_0x3600ae=_0xb54784['match'](/^---\n([\s\S]+?)\n---/);if(!_0x3600ae)throw new Error('Invalid\x20skill\x20frontmatter');const _0x3f93fd=_0x3600ae[0x1],_0x4d9da3=_0x3f93fd[_0x52e8be(0x181)](/name:\s*(.+)/),_0x3d4f02=_0x3f93fd[_0x52e8be(0x181)](/description:\s*"?(.+?)"?\n/);return{'name':_0x4d9da3?.[0x1][_0x52e8be(0x18c)]()||'','description':_0x3d4f02?.[0x1]['trim']()||''};}function _0x559d(){const _0x314a28=['ZyZZp','match','1653810VXeTib','qADbB','skills','bug-bash','warn','129663lvOqLo','PMpZx','isDirectory','dOmct','283240wSIrET','trim','filter','6fbTFWQ','181860hhDshB','.md','eBPZG','\x20\x20Skill\x20not\x20found:\x20','SKILL.md','utf-8','opencode','79847MtrQcL','2UHCUob','428785nYkeaL','\x20\x20Files:\x20','log','584576SYGRYS','NGOgQ','8YIKYDs','lLlww','UISoM','gLdVr','claude','ranger','cHSQN','project','GfdZT'];_0x559d=function(){return _0x314a28;};return _0x559d();}export async function removeSkill(_0x59dcc6,_0x23e588){const _0xecd729=_0x1e69e5,_0x55e1c2={'GfdZT':function(_0x1d4af6,_0x1108d9){return _0x1d4af6(_0x1108d9);},'UkDZH':function(_0x3abdba,_0x4538f3,_0x30582f){return _0x3abdba(_0x4538f3,_0x30582f);},'eBPZG':function(_0x3a8fd0,_0x31519e){return _0x3a8fd0(_0x31519e);}},_0x2fd09a=_0x55e1c2[_0xecd729(0x17f)](getSkillsDir,_0x23e588),_0xbe36b1=_0x55e1c2['UkDZH'](join,_0x2fd09a,_0x59dcc6);if(!_0x55e1c2[_0xecd729(0x191)](existsSync,_0xbe36b1))return![];try{return await rm(_0xbe36b1,{'recursive':!![]}),console['log']('\x20\x20Removed\x20deprecated\x20skill:\x20'+_0x59dcc6),!![];}catch{return console[_0xecd729(0x186)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x59dcc6),![];}}