@ranger-testing/ranger-cli 2.4.6 → 2.5.0

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 (78) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/setup/claude.js +1 -1
  25. package/build/commands/setup/opencode.js +1 -1
  26. package/build/commands/setupCi.js +1 -1
  27. package/build/commands/skillup.js +1 -1
  28. package/build/commands/start.js +1 -1
  29. package/build/commands/status.js +1 -1
  30. package/build/commands/update.js +1 -1
  31. package/build/commands/updateEnv.js +1 -1
  32. package/build/commands/useEnv.js +1 -1
  33. package/build/commands/utils/activeProfile.js +1 -1
  34. package/build/commands/utils/agentEnv.js +1 -1
  35. package/build/commands/utils/browserSessionsApi.js +1 -1
  36. package/build/commands/utils/claudeConfig.js +1 -1
  37. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  38. package/build/commands/utils/claudePlugin.js +1 -1
  39. package/build/commands/utils/crypto.js +1 -1
  40. package/build/commands/utils/desirePathLog.js +1 -1
  41. package/build/commands/utils/deviceAuth.js +1 -1
  42. package/build/commands/utils/environment.js +1 -1
  43. package/build/commands/utils/featureApi.js +1 -1
  44. package/build/commands/utils/featureReportGenerator.js +1 -1
  45. package/build/commands/utils/fixWebmDuration.js +1 -1
  46. package/build/commands/utils/git.js +1 -1
  47. package/build/commands/utils/keychain.js +1 -1
  48. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  49. package/build/commands/utils/mcpImageBase64.js +1 -1
  50. package/build/commands/utils/model.js +1 -1
  51. package/build/commands/utils/opencodeConfig.js +1 -1
  52. package/build/commands/utils/playwrightCli.js +1 -1
  53. package/build/commands/utils/profileMessages.js +1 -1
  54. package/build/commands/utils/profileSetupBanner.js +1 -1
  55. package/build/commands/utils/rangerConfig.js +1 -1
  56. package/build/commands/utils/rangerRoot.js +1 -1
  57. package/build/commands/utils/reportGenerator.js +1 -1
  58. package/build/commands/utils/retry.js +1 -1
  59. package/build/commands/utils/sessionCache.js +1 -1
  60. package/build/commands/utils/settings.js +1 -1
  61. package/build/commands/utils/skillContent.js +1 -1
  62. package/build/commands/utils/skills.js +1 -1
  63. package/build/commands/utils/stitchWebmFiles.js +1 -1
  64. package/build/commands/utils/telemetry.js +1 -1
  65. package/build/commands/utils/tokenRefresh.js +1 -1
  66. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  67. package/build/commands/utils/userApi.js +1 -1
  68. package/build/commands/utils/version.js +1 -1
  69. package/build/commands/verifyFeature.js +1 -1
  70. package/build/commands/verifyFeatureCli.js +1 -1
  71. package/build/commands/verifyInBrowser.js +1 -1
  72. package/build/skills/ranger/SKILL.md +38 -41
  73. package/build/skills/ranger/create.md +5 -13
  74. package/build/skills/ranger/feedback.md +3 -3
  75. package/build/skills/ranger/start.md +13 -13
  76. package/build/skills/ranger/verify.md +15 -28
  77. package/package.json +5 -3
  78. package/scripts/postinstall.js +4 -1
@@ -1 +1 @@
1
- const _0x5973c6=_0x54d8;(function(_0x588849,_0x9b2bf9){const _0x16eef9=_0x54d8,_0x644b69=_0x588849();while(!![]){try{const _0x2f8deb=parseInt(_0x16eef9(0x175))/0x1+-parseInt(_0x16eef9(0x194))/0x2*(-parseInt(_0x16eef9(0x16e))/0x3)+parseInt(_0x16eef9(0x189))/0x4+parseInt(_0x16eef9(0x183))/0x5+parseInt(_0x16eef9(0x174))/0x6+parseInt(_0x16eef9(0x1b6))/0x7+-parseInt(_0x16eef9(0x1ac))/0x8;if(_0x2f8deb===_0x9b2bf9)break;else _0x644b69['push'](_0x644b69['shift']());}catch(_0x590427){_0x644b69['push'](_0x644b69['shift']());}}}(_0x416c,0x20f5f));function _0x54d8(_0x184c02,_0x5e93e6){_0x184c02=_0x184c02-0x169;const _0x416c1=_0x416c();let _0x54d817=_0x416c1[_0x184c02];return _0x54d817;}import{exec}from'child_process';import _0x4b814c from'inquirer';import{getCurrentEnvironment,ENVIRONMENT_CONFIGS,getApiBaseUrl}from'./environment.js';import{storeToken,storeRefreshToken}from'./keychain.js';const WORKOS_DEVICE_AUTH_URL=_0x5973c6(0x177),WORKOS_TOKEN_URL='https://api.workos.com/user_management/authenticate';export async function requestDeviceCode(_0xe2cd4d){const _0x55eb70=_0x5973c6,_0x4e02ef=await fetch(WORKOS_DEVICE_AUTH_URL,{'method':_0x55eb70(0x196),'headers':{'Content-Type':_0x55eb70(0x1b8)},'body':new URLSearchParams({'client_id':_0xe2cd4d})});if(!_0x4e02ef['ok']){const _0x435caf=await _0x4e02ef[_0x55eb70(0x1a1)]();throw new Error(_0x55eb70(0x184)+_0x4e02ef[_0x55eb70(0x198)]+'\x20'+_0x435caf);}return _0x4e02ef[_0x55eb70(0x1be)]();}export async function pollForTokens(_0x3636d5,_0x55dde6,_0x2b007b,_0xb9f6d){const _0xaaf9ce=_0x5973c6,_0x56a2fe={'ySoFv':function(_0x4208e4,_0x1e8180){return _0x4208e4*_0x1e8180;},'ndeyO':function(_0x224720,_0x192771,_0x21682c){return _0x224720(_0x192771,_0x21682c);},'efHVW':_0xaaf9ce(0x196),'GDzoF':_0xaaf9ce(0x1b8),'XTIGv':function(_0x368fed,_0x5b5039){return _0x368fed===_0x5b5039;},'JkbUt':'authorization_pending','iOaEg':function(_0x1311da,_0x3b7802){return _0x1311da===_0x3b7802;},'IBpxy':'slow_down','Ktevu':_0xaaf9ce(0x1b4)},_0x42c2c4=Date[_0xaaf9ce(0x1a2)]()+_0x56a2fe[_0xaaf9ce(0x19f)](_0xb9f6d,0x3e8);let _0x39f9d6=_0x2b007b*0x3e8;while(Date['now']()<_0x42c2c4){await sleep(_0x39f9d6);const _0x467936=await _0x56a2fe[_0xaaf9ce(0x181)](fetch,WORKOS_TOKEN_URL,{'method':_0x56a2fe['efHVW'],'headers':{'Content-Type':_0x56a2fe[_0xaaf9ce(0x190)]},'body':new URLSearchParams({'client_id':_0x3636d5,'device_code':_0x55dde6,'grant_type':_0xaaf9ce(0x178)})});if(_0x467936['ok'])return _0x467936[_0xaaf9ce(0x1be)]();const _0xae87f4=await _0x467936['json']();if(_0x56a2fe['XTIGv'](_0xae87f4[_0xaaf9ce(0x18d)],_0x56a2fe['JkbUt']))continue;if(_0x56a2fe[_0xaaf9ce(0x1bc)](_0xae87f4[_0xaaf9ce(0x18d)],_0x56a2fe[_0xaaf9ce(0x1bd)])){_0x39f9d6+=0x3e8;continue;}throw new Error(_0xae87f4['error_description']||_0xae87f4[_0xaaf9ce(0x18d)]||'Authentication\x20failed');}throw new Error(_0x56a2fe[_0xaaf9ce(0x195)]);}async function fetchUserProfile(_0x4840ad){const _0x2a3bd5=_0x5973c6,_0x181714={'OmagS':function(_0x598bcf,_0x5992b8,_0x8eae4f){return _0x598bcf(_0x5992b8,_0x8eae4f);},'hqtmP':'GET'},_0x5a8aed=getApiBaseUrl();try{const _0x4795d5=await _0x181714['OmagS'](fetch,_0x5a8aed+_0x2a3bd5(0x1ba),{'method':_0x181714['hqtmP'],'headers':{'workos-token':_0x4840ad}});if(_0x4795d5['ok'])return _0x4795d5['json']();}catch{}return null;}function buildKeyName(_0x1649f3,_0x5c7e07){const _0x28b909=_0x5973c6,_0x303379={'kGXle':function(_0x33440f,_0x1cb950){return _0x33440f===_0x1cb950;},'mVWmZ':function(_0x5eac51,_0x133f33){return _0x5eac51+_0x133f33;}},_0x27c335=_0x5c7e07['filter'](_0x5af07d=>_0x5af07d[_0x28b909(0x1aa)]===_0x1649f3||_0x5af07d[_0x28b909(0x1aa)]['startsWith'](_0x1649f3+'\x20('));if(_0x303379[_0x28b909(0x187)](_0x27c335[_0x28b909(0x1b7)],0x0))return _0x1649f3;return _0x1649f3+'\x20('+_0x303379['mVWmZ'](_0x27c335[_0x28b909(0x1b7)],0x1)+')';}export async function provisionApiKey(_0xd7d67c){const _0x24a72d=_0x5973c6,_0x35b39e={'UYept':function(_0x2457b6){return _0x2457b6();},'ZZRaa':'application/json','xPkui':function(_0x13c3ed,_0x5c7fd3,_0x2af2d4){return _0x13c3ed(_0x5c7fd3,_0x2af2d4);},'oecEB':_0x24a72d(0x186)},_0x531b68=_0x35b39e[_0x24a72d(0x193)](getApiBaseUrl),_0x2655c7={'Content-Type':_0x35b39e[_0x24a72d(0x17f)],'workos-token':_0xd7d67c},_0x5428e9=await fetchUserProfile(_0xd7d67c),_0xd404ac=_0x5428e9?.['firstName']||_0x5428e9?.[_0x24a72d(0x1b3)]?.[_0x24a72d(0x1a8)]('@')[0x0],_0x1dc476=_0xd404ac?_0xd404ac+_0x24a72d(0x1ad):'CLI\x20Key';let _0x354ea5=[];try{const _0xe94590=await fetch(_0x531b68+'/api-keys',{'method':_0x24a72d(0x192),'headers':_0x2655c7});if(_0xe94590['ok']){const _0x24bd47=await _0xe94590['json']();_0x354ea5=_0x24bd47[_0x24a72d(0x191)];}}catch{}const _0x1b25e9=_0x35b39e[_0x24a72d(0x1a0)](buildKeyName,_0x1dc476,_0x354ea5),_0x33ef2a=await fetch(_0x531b68+_0x24a72d(0x1bf),{'method':'POST','headers':_0x2655c7,'body':JSON['stringify']({'name':_0x1b25e9,'scope':_0x35b39e[_0x24a72d(0x1ab)]})});if(!_0x33ef2a['ok']){const _0x115ebc=await _0x33ef2a[_0x24a72d(0x1a1)]();throw new Error(_0x24a72d(0x17d)+_0x33ef2a['status']+'\x20'+_0x115ebc);}const _0x1caa0b=await _0x33ef2a['json']();return _0x1caa0b['apiKey']['token'];}function _0x416c(){const _0x1519d7=['email','Device\x20authorization\x20timed\x20out','Failed\x20to\x20provision\x20CLI\x20token:\x20','1445787prHKLc','length','application/x-www-form-urlencoded','hNhYw','/organization/me','expires_in','iOaEg','IBpxy','json','/api-keys','from','organizationId','KTsxl','stdout','isTTY','3579kLZFxT','win32','utf-8','user_code','Use:\x20ranger\x20setup\x20[token]\x20or\x20set\x20RANGER_CLI_TOKEN.','GGovh','1446924YwFdCi','157790roJPYA','Invalid\x20JWT\x20format','https://api.workos.com/user_management/authorize/device','urn:ietf:params:oauth:grant-type:device_code','platform','Qsizt','Failed\x20to\x20create\x20organization:\x20','write','Failed\x20to\x20provision\x20API\x20key:\x20','nNpOX','ZZRaa','UQLRL','ndeyO','device_code','770655sPMjKn','Failed\x20to\x20request\x20device\x20code:\x20','Failed\x20to\x20refresh\x20token\x20with\x20org:\x20','mcp:write','kGXle','If\x20the\x20browser\x20doesn\x27t\x20open,\x20visit:\x20','440572wqDxCc','dbnUk','CKJhy','access_token','error','toString','selected','GDzoF','apiKeys','GET','UYept','4wLoaOK','Ktevu','POST','workosClientId','status','refresh_token','application/json','CMvGm','map','verification_uri_complete','xdg-open','ySoFv','xPkui','text','now','IKwli','parse','hYuGh','pAVtm','Setting\x20up\x20your\x20organization...','split','log','name','oecEB','5897104NqppzT','\x27s\x20CLI\x20Key','fhMqw','token','ehcmD','QLveC','stdin'];_0x416c=function(){return _0x1519d7;};return _0x416c();}export function openBrowser(_0x2f0c16){const _0x12d91c=_0x5973c6,_0x2f1e1c={'tqtoC':'open','CKJhy':function(_0x504bb8,_0x4b3077){return _0x504bb8===_0x4b3077;},'IKwli':_0x12d91c(0x16f),'ptmvO':_0x12d91c(0x19e)},_0x15a801=process[_0x12d91c(0x179)],_0x58ae1a=_0x15a801==='darwin'?_0x2f1e1c['tqtoC']:_0x2f1e1c[_0x12d91c(0x18b)](_0x15a801,_0x2f1e1c[_0x12d91c(0x1a3)])?'start':_0x2f1e1c['ptmvO'];exec(_0x58ae1a+'\x20'+JSON['stringify'](_0x2f0c16));}function decodeJwtPayload(_0x156620){const _0x215bdd=_0x5973c6,_0x26a261={'hNhYw':_0x215bdd(0x176)},_0x12d318=_0x156620['split']('.');if(_0x12d318['length']!==0x3)throw new Error(_0x26a261[_0x215bdd(0x1b9)]);const _0x3f3959=Buffer[_0x215bdd(0x169)](_0x12d318[0x1],'base64url')[_0x215bdd(0x18e)](_0x215bdd(0x170));return JSON[_0x215bdd(0x1a4)](_0x3f3959);}async function selfServeSignup(_0x47268a){const _0x5c0b70=_0x5973c6,_0x2e78fe={'qQnAg':function(_0x124984,_0x22b9c2,_0x11df53){return _0x124984(_0x22b9c2,_0x11df53);},'CMvGm':'POST','sAKIb':'application/json'},_0x3a3d28=getApiBaseUrl(),_0x4805b1=await _0x2e78fe['qQnAg'](fetch,_0x3a3d28+'/organization/self-serve-signup',{'method':_0x2e78fe[_0x5c0b70(0x19b)],'headers':{'Content-Type':_0x2e78fe['sAKIb'],'workos-token':_0x47268a}});if(!_0x4805b1['ok']){const _0x54f364=await _0x4805b1[_0x5c0b70(0x1a1)]();throw new Error(_0x5c0b70(0x17b)+_0x4805b1['status']+'\x20'+_0x54f364);}return _0x4805b1['json']();}async function fetchMyMemberships(_0x5bcfc8){const _0x459d1b=_0x5973c6,_0x46e2ea={'Mfnew':function(_0x4eee8b){return _0x4eee8b();}},_0x1fec2b=_0x46e2ea['Mfnew'](getApiBaseUrl),_0x41ec63=await fetch(_0x1fec2b+'/organization/my-memberships',{'method':'GET','headers':{'workos-token':_0x5bcfc8}});if(!_0x41ec63['ok']){const _0x4d3283=await _0x41ec63[_0x459d1b(0x1a1)]();throw new Error('Failed\x20to\x20fetch\x20memberships:\x20'+_0x41ec63[_0x459d1b(0x198)]+'\x20'+_0x4d3283);}const _0x5a8d18=await _0x41ec63['json']();return _0x5a8d18['memberships'];}async function refreshTokenWithOrg(_0xfe228b,_0x16795d,_0x3bd905){const _0x38accd=_0x5973c6,_0x302e91={'UQLRL':function(_0x331ecc,_0x532c94,_0xb9d75d){return _0x331ecc(_0x532c94,_0xb9d75d);},'Rqjlf':'POST','pAVtm':_0x38accd(0x1b8),'dbnUk':'refresh_token'},_0x4705d4=await _0x302e91[_0x38accd(0x180)](fetch,WORKOS_TOKEN_URL,{'method':_0x302e91['Rqjlf'],'headers':{'Content-Type':_0x302e91[_0x38accd(0x1a6)]},'body':new URLSearchParams({'client_id':_0xfe228b,'grant_type':_0x302e91[_0x38accd(0x18a)],'refresh_token':_0x16795d,'organization_id':_0x3bd905})});if(!_0x4705d4['ok']){const _0x40fc95=await _0x4705d4['text']();throw new Error(_0x38accd(0x185)+_0x4705d4[_0x38accd(0x198)]+'\x20'+_0x40fc95);}return _0x4705d4[_0x38accd(0x1be)]();}async function provisionCliToken(_0x4c50d6){const _0x2ac5f6=_0x5973c6,_0x1154a4={'QLveC':function(_0x489efc,_0x342d29,_0x108009){return _0x489efc(_0x342d29,_0x108009);},'ehcmD':_0x2ac5f6(0x19a)},_0x811dac=getApiBaseUrl(),_0x345c6a=await _0x1154a4[_0x2ac5f6(0x1b1)](fetch,_0x811dac+'/cli-auth/token',{'method':_0x2ac5f6(0x196),'headers':{'Content-Type':_0x1154a4[_0x2ac5f6(0x1b0)],'workos-token':_0x4c50d6}});if(!_0x345c6a['ok']){const _0x570193=await _0x345c6a['text']();throw new Error(_0x2ac5f6(0x1b5)+_0x345c6a['status']+'\x20'+_0x570193);}return _0x345c6a['json']();}export async function runDeviceAuthFlow(){const _0x26b109=_0x5973c6,_0x30dcfb={'GGovh':function(_0x78168d){return _0x78168d();},'nNpOX':'\x0a🔐\x20Opening\x20browser\x20to\x20log\x20in...','bFCdr':'Waiting\x20for\x20authentication...','hYuGh':function(_0x2f8a8d,_0x807091){return _0x2f8a8d(_0x807091);},'BmFtU':function(_0x1074a1,_0x467ec6){return _0x1074a1===_0x467ec6;},'Qsizt':_0x26b109(0x1a7),'dmnlt':function(_0x291848,_0x2ddfb6){return _0x291848(_0x2ddfb6);},'KTsxl':function(_0x33a7ac,_0x1c85be){return _0x33a7ac+_0x1c85be;},'QETtc':'Multiple\x20organizations\x20available\x20but\x20cannot\x20prompt\x20for\x20selection\x20in\x20non-interactive\x20mode.\x0a','fhMqw':_0x26b109(0x172),'QyjuI':'list','uvKib':'Select\x20an\x20organization:'},_0xeae432=_0x30dcfb[_0x26b109(0x173)](getCurrentEnvironment),_0x227e92=ENVIRONMENT_CONFIGS[_0xeae432][_0x26b109(0x197)],_0x3bb2df=await requestDeviceCode(_0x227e92);console['log'](_0x30dcfb[_0x26b109(0x17e)]),console[_0x26b109(0x1a9)]('\x20\x20\x20A\x20human\x20needs\x20to\x20complete\x20authentication\x20in\x20the\x20browser.\x0a'),openBrowser(_0x3bb2df[_0x26b109(0x19d)]),console['log'](_0x26b109(0x188)+_0x3bb2df['verification_uri_complete']),console['log']('Code:\x20'+_0x3bb2df[_0x26b109(0x171)]+'\x0a'),process[_0x26b109(0x16c)][_0x26b109(0x17c)](_0x30dcfb['bFCdr']);let _0x5641c7=await pollForTokens(_0x227e92,_0x3bb2df[_0x26b109(0x182)],_0x3bb2df['interval'],_0x3bb2df[_0x26b109(0x1bb)]);console['log']('\x20✓');const _0xedbf7f=decodeJwtPayload(_0x5641c7['access_token']);if(!_0xedbf7f['org_id']){const _0x341331=await _0x30dcfb[_0x26b109(0x1a5)](fetchMyMemberships,_0x5641c7['access_token']);let _0x456d84;if(_0x30dcfb['BmFtU'](_0x341331[_0x26b109(0x1b7)],0x0)){process[_0x26b109(0x16c)]['write'](_0x30dcfb[_0x26b109(0x17a)]);const _0x2218b6=await _0x30dcfb['dmnlt'](selfServeSignup,_0x5641c7['access_token']);_0x456d84=_0x2218b6[_0x26b109(0x16a)],console[_0x26b109(0x1a9)]('\x20✓');}else{if(_0x30dcfb['BmFtU'](_0x341331['length'],0x1))_0x456d84=_0x341331[0x0]['organizationId'],console['log']('Using\x20organization:\x20'+_0x341331[0x0][_0x26b109(0x1aa)]);else{const _0x530d3b=process[_0x26b109(0x1b2)][_0x26b109(0x16d)]&&process['stdout'][_0x26b109(0x16d)];if(!_0x530d3b)throw new Error(_0x30dcfb[_0x26b109(0x16b)](_0x30dcfb['QETtc'],_0x30dcfb[_0x26b109(0x1ae)]));const {selected:_0x1cb89c}=await _0x4b814c['prompt']([{'type':_0x30dcfb['QyjuI'],'name':_0x26b109(0x18f),'message':_0x30dcfb['uvKib'],'choices':_0x341331[_0x26b109(0x19c)](_0x398413=>({'name':_0x398413['name'],'value':_0x398413['organizationId']}))}]);_0x456d84=_0x1cb89c;}}_0x5641c7=await refreshTokenWithOrg(_0x227e92,_0x5641c7[_0x26b109(0x199)],_0x456d84);}process[_0x26b109(0x16c)][_0x26b109(0x17c)]('Provisioning\x20CLI\x20token...');const _0x217c4f=await _0x30dcfb['hYuGh'](provisionCliToken,_0x5641c7[_0x26b109(0x18c)]);return console[_0x26b109(0x1a9)]('\x20✓'),await storeToken(_0x217c4f['token']),_0x5641c7['refresh_token']&&await storeRefreshToken(_0x5641c7['refresh_token']),_0x217c4f[_0x26b109(0x1af)];}function sleep(_0x8a22fe){return new Promise(_0x5586ce=>setTimeout(_0x5586ce,_0x8a22fe));}
1
+ const _0x111fe4=_0x5d57;(function(_0xb6899d,_0x4891b3){const _0x24f531=_0x5d57,_0x553985=_0xb6899d();while(!![]){try{const _0x3d1fce=-parseInt(_0x24f531(0xf9))/0x1*(parseInt(_0x24f531(0x100))/0x2)+-parseInt(_0x24f531(0xd3))/0x3+-parseInt(_0x24f531(0xc5))/0x4+-parseInt(_0x24f531(0xea))/0x5+-parseInt(_0x24f531(0xbd))/0x6+-parseInt(_0x24f531(0xc1))/0x7*(parseInt(_0x24f531(0x102))/0x8)+parseInt(_0x24f531(0xca))/0x9;if(_0x3d1fce===_0x4891b3)break;else _0x553985['push'](_0x553985['shift']());}catch(_0x294f0c){_0x553985['push'](_0x553985['shift']());}}}(_0x2f9d,0xa107c));import{spawn}from'child_process';import _0x2e0b18 from'inquirer';import{getCurrentEnvironment,ENVIRONMENT_CONFIGS,getApiBaseUrl}from'./environment.js';import{storeToken,storeRefreshToken}from'./keychain.js';const WORKOS_DEVICE_AUTH_URL=_0x111fe4(0xb5),WORKOS_TOKEN_URL='https://api.workos.com/user_management/authenticate';export async function requestDeviceCode(_0xcefcc3){const _0x4a7295=_0x111fe4,_0xa0fde3={'NaknE':_0x4a7295(0xe8),'BovxW':'application/x-www-form-urlencoded'},_0x18a75b=await fetch(WORKOS_DEVICE_AUTH_URL,{'method':_0xa0fde3[_0x4a7295(0xd8)],'headers':{'Content-Type':_0xa0fde3[_0x4a7295(0xda)]},'body':new URLSearchParams({'client_id':_0xcefcc3})});if(!_0x18a75b['ok']){const _0x49d531=await _0x18a75b['text']();throw new Error(_0x4a7295(0xb4)+_0x18a75b[_0x4a7295(0xe0)]+'\x20'+_0x49d531);}return _0x18a75b['json']();}export async function pollForTokens(_0x29d8ef,_0x5beb88,_0xb13cb8,_0xc6da45){const _0x178853=_0x111fe4,_0x1de62c={'tBhdk':function(_0x3d9699,_0x148282){return _0x3d9699*_0x148282;},'zHgXv':function(_0x760097,_0x34472e,_0x1562c9){return _0x760097(_0x34472e,_0x1562c9);},'yxkIy':_0x178853(0xe8),'lrcIJ':_0x178853(0xb1),'GyZcy':_0x178853(0xcf),'qlWdy':function(_0x375208,_0x3863f9){return _0x375208===_0x3863f9;},'TehXn':'slow_down','bplkg':_0x178853(0xc8)},_0x1a484e=Date['now']()+_0x1de62c[_0x178853(0xf0)](_0xc6da45,0x3e8);let _0x2751e9=_0xb13cb8*0x3e8;while(Date['now']()<_0x1a484e){await sleep(_0x2751e9);const _0x1ae9fa=await _0x1de62c[_0x178853(0xf5)](fetch,WORKOS_TOKEN_URL,{'method':_0x1de62c[_0x178853(0xce)],'headers':{'Content-Type':_0x1de62c['lrcIJ']},'body':new URLSearchParams({'client_id':_0x29d8ef,'device_code':_0x5beb88,'grant_type':_0x1de62c['GyZcy']})});if(_0x1ae9fa['ok'])return _0x1ae9fa[_0x178853(0xdf)]();const _0x5a8946=await _0x1ae9fa['json']();if(_0x5a8946['error']===_0x178853(0xbe))continue;if(_0x1de62c['qlWdy'](_0x5a8946['error'],_0x1de62c['TehXn'])){_0x2751e9+=0x3e8;continue;}throw new Error(_0x5a8946['error_description']||_0x5a8946['error']||_0x178853(0xd1));}throw new Error(_0x1de62c['bplkg']);}async function fetchUserProfile(_0x71f242){const _0x4f2f55=_0x111fe4,_0x429291={'pchsg':function(_0x156cf4){return _0x156cf4();},'yUNKy':'GET'},_0x2a3461=_0x429291['pchsg'](getApiBaseUrl);try{const _0x158680=await fetch(_0x2a3461+_0x4f2f55(0xc3),{'method':_0x429291[_0x4f2f55(0xde)],'headers':{'workos-token':_0x71f242}});if(_0x158680['ok'])return _0x158680['json']();}catch{}return null;}function buildKeyName(_0x25dfc6,_0x19409f){const _0x4b29e2=_0x111fe4,_0x581d7e={'uMwyV':function(_0x4a2d6a,_0x1beee6){return _0x4a2d6a===_0x1beee6;}},_0x326617=_0x19409f[_0x4b29e2(0xdd)](_0x174cce=>_0x174cce['name']===_0x25dfc6||_0x174cce[_0x4b29e2(0xc7)]['startsWith'](_0x25dfc6+'\x20('));if(_0x581d7e[_0x4b29e2(0xd6)](_0x326617['length'],0x0))return _0x25dfc6;return _0x25dfc6+'\x20('+(_0x326617['length']+0x1)+')';}function _0x2f9d(){const _0x2ae354=['Invalid\x20JWT\x20format','Waiting\x20for\x20authentication...','ignore','POST','xdg-open','3670255wtrIeK','darwin','utf-8','open','apiKey','token','tBhdk','Select\x20an\x20organization:','length','clQJG','application/json','zHgXv','CLI\x20Key','gMRHk','QLidX','6TDuojl','verification_uri_complete','oRaRM','firstName','organizationId','write','mcp:write','419326QoqSye','JTAli','8WMlCxZ','refresh_token','hRtNa','UtXFm','application/x-www-form-urlencoded','user_code','text','Failed\x20to\x20request\x20device\x20code:\x20','https://api.workos.com/user_management/authorize/device','unref','/organization/my-memberships','isTTY','JJzVT','from','\x27s\x20CLI\x20Key','stdout','7476690vhjeFc','authorization_pending','device_code','CRjYB','1780142ZWbhKu','list','/organization/me','interval','4671472syaILq','qdYfP','name','Device\x20authorization\x20timed\x20out','log','51494256GpSRWB','Provisioning\x20CLI\x20token...','selected','workosClientId','yxkIy','urn:ietf:params:oauth:grant-type:device_code','Failed\x20to\x20provision\x20CLI\x20token:\x20','Authentication\x20failed','wCHPF','1205058JkJpHy','GET','start','uMwyV','pCwZn','NaknE','HEjMT','BovxW','SlUnR','orjBH','filter','yUNKy','json','status','odmhH','\x0a🔐\x20Opening\x20browser\x20to\x20log\x20in...','Setting\x20up\x20your\x20organization...','platform'];_0x2f9d=function(){return _0x2ae354;};return _0x2f9d();}export async function provisionApiKey(_0x1bb8f3){const _0x3b69a4=_0x111fe4,_0x2ca423={'hRtNa':function(_0x4c1a70,_0x3eccd2){return _0x4c1a70(_0x3eccd2);},'QLidX':_0x3b69a4(0xf6),'wCHPF':function(_0x46b591,_0x47e817,_0x4e8d57){return _0x46b591(_0x47e817,_0x4e8d57);},'AIUTR':function(_0x3f6f20,_0x4336f2,_0x379caf){return _0x3f6f20(_0x4336f2,_0x379caf);},'FSWBQ':'POST'},_0x54b0e6=getApiBaseUrl(),_0x389fc6={'Content-Type':'application/json','workos-token':_0x1bb8f3},_0x7730cb=await _0x2ca423[_0x3b69a4(0xaf)](fetchUserProfile,_0x1bb8f3),_0x549ffd=_0x7730cb?.[_0x3b69a4(0xfc)]||_0x7730cb?.['email']?.['split']('@')[0x0],_0x339fdb=_0x549ffd?_0x549ffd+_0x3b69a4(0xbb):_0x2ca423[_0x3b69a4(0xf8)];let _0xa98c54=[];try{const _0x42a9c7=await fetch(_0x54b0e6+'/api-keys',{'method':'GET','headers':_0x389fc6});if(_0x42a9c7['ok']){const _0x52a153=await _0x42a9c7['json']();_0xa98c54=_0x52a153['apiKeys'];}}catch{}const _0x7dac5f=_0x2ca423[_0x3b69a4(0xd2)](buildKeyName,_0x339fdb,_0xa98c54),_0x7a05a6=await _0x2ca423['AIUTR'](fetch,_0x54b0e6+'/api-keys',{'method':_0x2ca423['FSWBQ'],'headers':_0x389fc6,'body':JSON['stringify']({'name':_0x7dac5f,'scope':_0x3b69a4(0xff)})});if(!_0x7a05a6['ok']){const _0x47e9fc=await _0x7a05a6['text']();throw new Error('Failed\x20to\x20provision\x20API\x20key:\x20'+_0x7a05a6['status']+'\x20'+_0x47e9fc);}const _0x2c4aaf=await _0x7a05a6['json']();return _0x2c4aaf[_0x3b69a4(0xee)][_0x3b69a4(0xef)];}export function openBrowser(_0x21830b){const _0x45e0e4=_0x111fe4,_0x1ac276={'gMRHk':'win32','kWhyk':function(_0x574a44,_0x48c7d5,_0x23556b,_0x14d89f){return _0x574a44(_0x48c7d5,_0x23556b,_0x14d89f);},'oTvHW':'cmd','mJSPZ':_0x45e0e4(0xd5),'orjBH':_0x45e0e4(0xeb),'SMVuC':_0x45e0e4(0xed)};try{if(process[_0x45e0e4(0xe4)]===_0x1ac276[_0x45e0e4(0xf7)]){const _0x218ae9=_0x1ac276['kWhyk'](spawn,_0x1ac276['oTvHW'],['/c',_0x1ac276['mJSPZ'],'',_0x21830b],{'detached':!![],'stdio':_0x45e0e4(0xe7),'windowsHide':!![]});_0x218ae9[_0x45e0e4(0xb6)]();return;}const _0x4e46aa=process['platform']===_0x1ac276[_0x45e0e4(0xdc)]?_0x1ac276['SMVuC']:_0x45e0e4(0xe9),_0x5d1339=_0x1ac276['kWhyk'](spawn,_0x4e46aa,[_0x21830b],{'detached':!![],'stdio':_0x45e0e4(0xe7)});_0x5d1339[_0x45e0e4(0xb6)]();}catch{}}function decodeJwtPayload(_0x28683e){const _0x468e0f=_0x111fe4,_0x1ddc35={'YcBQI':_0x468e0f(0xe5),'qdYfP':'base64url','pCwZn':_0x468e0f(0xec)},_0x4afed7=_0x28683e['split']('.');if(_0x4afed7[_0x468e0f(0xf2)]!==0x3)throw new Error(_0x1ddc35['YcBQI']);const _0x4d235e=Buffer[_0x468e0f(0xba)](_0x4afed7[0x1],_0x1ddc35[_0x468e0f(0xc6)])['toString'](_0x1ddc35[_0x468e0f(0xd7)]);return JSON['parse'](_0x4d235e);}async function selfServeSignup(_0xcd119e){const _0x5ab7e0=_0x111fe4,_0xe1a6cf={'cTzOE':function(_0x293b82){return _0x293b82();}},_0x49378f=_0xe1a6cf['cTzOE'](getApiBaseUrl),_0x451703=await fetch(_0x49378f+'/organization/self-serve-signup',{'method':'POST','headers':{'Content-Type':_0x5ab7e0(0xf4),'workos-token':_0xcd119e}});if(!_0x451703['ok']){const _0x33edbe=await _0x451703[_0x5ab7e0(0xb3)]();throw new Error('Failed\x20to\x20create\x20organization:\x20'+_0x451703['status']+'\x20'+_0x33edbe);}return _0x451703[_0x5ab7e0(0xdf)]();}async function fetchMyMemberships(_0x3c05bc){const _0x2ab783=_0x111fe4,_0x1e8c15={'oRaRM':function(_0x3332ec){return _0x3332ec();}},_0x2f1af4=_0x1e8c15[_0x2ab783(0xfb)](getApiBaseUrl),_0x389e93=await fetch(_0x2f1af4+_0x2ab783(0xb7),{'method':_0x2ab783(0xd4),'headers':{'workos-token':_0x3c05bc}});if(!_0x389e93['ok']){const _0x446b6a=await _0x389e93[_0x2ab783(0xb3)]();throw new Error('Failed\x20to\x20fetch\x20memberships:\x20'+_0x389e93['status']+'\x20'+_0x446b6a);}const _0x59898e=await _0x389e93['json']();return _0x59898e['memberships'];}async function refreshTokenWithOrg(_0x55ab06,_0x8a664b,_0xf9a0b0){const _0x24f34e=_0x111fe4,_0x54f109={'JTAli':_0x24f34e(0xe8),'UtXFm':_0x24f34e(0x103)},_0x4df7d9=await fetch(WORKOS_TOKEN_URL,{'method':_0x54f109[_0x24f34e(0x101)],'headers':{'Content-Type':'application/x-www-form-urlencoded'},'body':new URLSearchParams({'client_id':_0x55ab06,'grant_type':_0x54f109[_0x24f34e(0xb0)],'refresh_token':_0x8a664b,'organization_id':_0xf9a0b0})});if(!_0x4df7d9['ok']){const _0x26561d=await _0x4df7d9['text']();throw new Error('Failed\x20to\x20refresh\x20token\x20with\x20org:\x20'+_0x4df7d9[_0x24f34e(0xe0)]+'\x20'+_0x26561d);}return _0x4df7d9['json']();}async function provisionCliToken(_0x2346e4){const _0x38d07e=_0x111fe4,_0x2b4305={'CRjYB':'application/json'},_0x374997=getApiBaseUrl(),_0x32d1e7=await fetch(_0x374997+'/cli-auth/token',{'method':_0x38d07e(0xe8),'headers':{'Content-Type':_0x2b4305[_0x38d07e(0xc0)],'workos-token':_0x2346e4}});if(!_0x32d1e7['ok']){const _0x4746a9=await _0x32d1e7[_0x38d07e(0xb3)]();throw new Error(_0x38d07e(0xd0)+_0x32d1e7[_0x38d07e(0xe0)]+'\x20'+_0x4746a9);}return _0x32d1e7[_0x38d07e(0xdf)]();}function _0x5d57(_0x6570,_0x6f8b98){_0x6570=_0x6570-0xaf;const _0x2f9d13=_0x2f9d();let _0x5d5781=_0x2f9d13[_0x6570];return _0x5d5781;}export async function runDeviceAuthFlow(){const _0x484ae2=_0x111fe4,_0x255246={'SlUnR':function(_0x39d152){return _0x39d152();},'JJzVT':function(_0x29db82,_0x4d0293){return _0x29db82(_0x4d0293);},'nCcZi':_0x484ae2(0xe6),'clQJG':_0x484ae2(0xe3),'aLGcz':function(_0x3198a3,_0x57452a){return _0x3198a3+_0x57452a;},'HEjMT':_0x484ae2(0xcc),'AUEKi':_0x484ae2(0xf1),'odmhH':function(_0x43e5fe,_0x127f56,_0x2b1bf5,_0x49c832){return _0x43e5fe(_0x127f56,_0x2b1bf5,_0x49c832);}},_0x4854ff=_0x255246[_0x484ae2(0xdb)](getCurrentEnvironment),_0x161c2b=ENVIRONMENT_CONFIGS[_0x4854ff][_0x484ae2(0xcd)],_0x3fb8b9=await _0x255246[_0x484ae2(0xb9)](requestDeviceCode,_0x161c2b);console[_0x484ae2(0xc9)](_0x484ae2(0xe2)),console[_0x484ae2(0xc9)]('\x20\x20\x20A\x20human\x20needs\x20to\x20complete\x20authentication\x20in\x20the\x20browser.\x0a'),_0x255246[_0x484ae2(0xb9)](openBrowser,_0x3fb8b9[_0x484ae2(0xfa)]),console[_0x484ae2(0xc9)]('If\x20the\x20browser\x20doesn\x27t\x20open,\x20visit:\x20'+_0x3fb8b9[_0x484ae2(0xfa)]),console['log']('Code:\x20'+_0x3fb8b9[_0x484ae2(0xb2)]+'\x0a'),process['stdout']['write'](_0x255246['nCcZi']);let _0x3a5e09=await pollForTokens(_0x161c2b,_0x3fb8b9[_0x484ae2(0xbf)],_0x3fb8b9[_0x484ae2(0xc4)],_0x3fb8b9['expires_in']);console['log']('\x20✓');const _0x3a6f2d=decodeJwtPayload(_0x3a5e09['access_token']);if(!_0x3a6f2d['org_id']){const _0x136850=await fetchMyMemberships(_0x3a5e09['access_token']);let _0xdb0cb8;if(_0x136850[_0x484ae2(0xf2)]===0x0){process[_0x484ae2(0xbc)][_0x484ae2(0xfe)](_0x255246[_0x484ae2(0xf3)]);const _0x55efd6=await _0x255246['JJzVT'](selfServeSignup,_0x3a5e09['access_token']);_0xdb0cb8=_0x55efd6[_0x484ae2(0xfd)],console['log']('\x20✓');}else{if(_0x136850[_0x484ae2(0xf2)]===0x1)_0xdb0cb8=_0x136850[0x0]['organizationId'],console['log']('Using\x20organization:\x20'+_0x136850[0x0][_0x484ae2(0xc7)]);else{const _0x418372=process['stdin'][_0x484ae2(0xb8)]&&process[_0x484ae2(0xbc)]['isTTY'];if(!_0x418372)throw new Error(_0x255246['aLGcz']('Multiple\x20organizations\x20available\x20but\x20cannot\x20prompt\x20for\x20selection\x20in\x20non-interactive\x20mode.\x0a','Use:\x20ranger\x20setup\x20[token]\x20or\x20set\x20RANGER_CLI_TOKEN.'));const {selected:_0x5afb21}=await _0x2e0b18['prompt']([{'type':_0x484ae2(0xc2),'name':_0x255246[_0x484ae2(0xd9)],'message':_0x255246['AUEKi'],'choices':_0x136850['map'](_0x432b15=>({'name':_0x432b15[_0x484ae2(0xc7)],'value':_0x432b15[_0x484ae2(0xfd)]}))}]);_0xdb0cb8=_0x5afb21;}}_0x3a5e09=await _0x255246[_0x484ae2(0xe1)](refreshTokenWithOrg,_0x161c2b,_0x3a5e09['refresh_token'],_0xdb0cb8);}process['stdout'][_0x484ae2(0xfe)](_0x484ae2(0xcb));const _0x2f7214=await provisionCliToken(_0x3a5e09['access_token']);return console[_0x484ae2(0xc9)]('\x20✓'),await storeToken(_0x2f7214['token']),_0x3a5e09[_0x484ae2(0x103)]&&await _0x255246[_0x484ae2(0xb9)](storeRefreshToken,_0x3a5e09[_0x484ae2(0x103)]),_0x2f7214[_0x484ae2(0xef)];}function sleep(_0x15ae3f){return new Promise(_0x4cedcf=>setTimeout(_0x4cedcf,_0x15ae3f));}
@@ -1 +1 @@
1
- function _0x206f(_0x1b7777,_0x5bdc5b){_0x1b7777=_0x1b7777-0x184;const _0x10d7e2=_0x10d7();let _0x206f6e=_0x10d7e2[_0x1b7777];return _0x206f6e;}const _0x136913=_0x206f;function _0x10d7(){const _0x77497f=['1576702XRJYJh','129853rzceEA','playwright-cli','135jLujGy','RANGER_DISABLE_MCP','https://api.ranger.net','staging','5270670HRkzWn','otaWz','3177yGjyNX','974664CZXTSu','true','https://api.staging.ranger.net','3578025IWXSkY','mcp','7207676lsEmNV','env','aiProxyUrl','2564jlJAji','YEbzs','RANGER_CLI_ENV','RANGER_BYOK','https://ai-proxy-716115358910.us-central1.run.app','http://localhost:8080'];_0x10d7=function(){return _0x77497f;};return _0x10d7();}(function(_0x158a31,_0x524643){const _0x2b768f=_0x206f,_0x3fe753=_0x158a31();while(!![]){try{const _0x330758=-parseInt(_0x2b768f(0x191))/0x1+-parseInt(_0x2b768f(0x190))/0x2+parseInt(_0x2b768f(0x199))/0x3*(-parseInt(_0x2b768f(0x18a))/0x4)+parseInt(_0x2b768f(0x185))/0x5+parseInt(_0x2b768f(0x197))/0x6+-parseInt(_0x2b768f(0x187))/0x7+parseInt(_0x2b768f(0x19a))/0x8*(parseInt(_0x2b768f(0x193))/0x9);if(_0x330758===_0x524643)break;else _0x3fe753['push'](_0x3fe753['shift']());}catch(_0xa612fe){_0x3fe753['push'](_0x3fe753['shift']());}}}(_0x10d7,0xc20e6));export const ENVIRONMENT_CONFIGS={'prod':{'apiBaseUrl':_0x136913(0x195),'workosClientId':'client_01J9CBYM7M5ZETCF7G6614DXR2','aiProxyUrl':_0x136913(0x18e)},'staging':{'apiBaseUrl':_0x136913(0x184),'workosClientId':'client_01J9CBYM2DKWV9HM17D95Z540K','aiProxyUrl':'https://ai-proxy-301751771437.us-central1.run.app'},'local':{'apiBaseUrl':_0x136913(0x18f),'workosClientId':'client_01J9CBYM2DKWV9HM17D95Z540K','aiProxyUrl':'http://localhost:8090'}};export const DEFAULT_ENVIRONMENT='prod';export function isValidEnvironment(_0x3fa694){const _0x119a15=_0x136913,_0x1a5528={'otaWz':_0x119a15(0x196),'YEbzs':function(_0x453b6b,_0x331508){return _0x453b6b===_0x331508;},'fgPFY':'local'};return _0x3fa694==='prod'||_0x3fa694===_0x1a5528[_0x119a15(0x198)]||_0x1a5528[_0x119a15(0x18b)](_0x3fa694,_0x1a5528['fgPFY']);}export function getCurrentEnvironment(){const _0x500a4f=_0x136913,_0x199fa9=process[_0x500a4f(0x188)][_0x500a4f(0x18c)];if(_0x199fa9&&isValidEnvironment(_0x199fa9))return _0x199fa9;return DEFAULT_ENVIRONMENT;}export function getApiBaseUrl(){return ENVIRONMENT_CONFIGS[getCurrentEnvironment()]['apiBaseUrl'];}export function getAiProxyUrl(){const _0x4540c5=_0x136913;return ENVIRONMENT_CONFIGS[getCurrentEnvironment()][_0x4540c5(0x189)];}export function isByokEnabled(){const _0x4d5ed1=_0x136913,_0x2b7484={'osPhu':function(_0x42e939,_0x3903f6){return _0x42e939===_0x3903f6;}};return _0x2b7484['osPhu'](process['env'][_0x4d5ed1(0x18d)],_0x4d5ed1(0x19b));}export function isMcpDisabled(){const _0x57d9c7=_0x136913,_0x5c19c0={'AnRju':_0x57d9c7(0x19b)};return process['env'][_0x57d9c7(0x194)]===_0x5c19c0['AnRju'];}export function getVerificationTransport(){const _0x27de1c=_0x136913,_0x260d61={'DUXVG':function(_0xb9e60d){return _0xb9e60d();},'JtYlh':_0x27de1c(0x186)};return _0x260d61['DUXVG'](isMcpDisabled)?_0x27de1c(0x192):_0x260d61['JtYlh'];}
1
+ const _0x21862a=_0x289e;(function(_0x459f42,_0x1a7ee6){const _0x1f5383=_0x289e,_0x322182=_0x459f42();while(!![]){try{const _0x46b1b5=-parseInt(_0x1f5383(0x1f6))/0x1+-parseInt(_0x1f5383(0x202))/0x2*(parseInt(_0x1f5383(0x205))/0x3)+parseInt(_0x1f5383(0x1f9))/0x4*(-parseInt(_0x1f5383(0x208))/0x5)+parseInt(_0x1f5383(0x20e))/0x6+parseInt(_0x1f5383(0x1fc))/0x7+-parseInt(_0x1f5383(0x209))/0x8*(-parseInt(_0x1f5383(0x1ff))/0x9)+parseInt(_0x1f5383(0x1fa))/0xa*(parseInt(_0x1f5383(0x201))/0xb);if(_0x46b1b5===_0x1a7ee6)break;else _0x322182['push'](_0x322182['shift']());}catch(_0x33a13d){_0x322182['push'](_0x322182['shift']());}}}(_0x4cf1,0x2e92b));export const ENVIRONMENT_CONFIGS={'prod':{'apiBaseUrl':_0x21862a(0x200),'workosClientId':_0x21862a(0x204),'aiProxyUrl':'https://ai-proxy-716115358910.us-central1.run.app'},'staging':{'apiBaseUrl':'https://api.staging.ranger.net','workosClientId':'client_01J9CBYM2DKWV9HM17D95Z540K','aiProxyUrl':_0x21862a(0x1fe)},'local':{'apiBaseUrl':'http://localhost:8080','workosClientId':_0x21862a(0x20d),'aiProxyUrl':'http://localhost:8090'}};export const DEFAULT_ENVIRONMENT=_0x21862a(0x203);export function isValidEnvironment(_0x12cf48){const _0x245d8b=_0x21862a,_0x3433ca={'TJCwW':function(_0x2fb53a,_0x14a8ef){return _0x2fb53a===_0x14a8ef;}};return _0x3433ca['TJCwW'](_0x12cf48,'prod')||_0x12cf48===_0x245d8b(0x20c)||_0x12cf48===_0x245d8b(0x1fb);}function _0x4cf1(){const _0x575b05=['env','20tIePic','16gttuwN','RANGER_DISABLE_MCP','KusoG','staging','client_01J9CBYM2DKWV9HM17D95Z540K','1322790oaLBwp','svRAs','aiProxyUrl','37688YqEMij','mcp','UDPnW','82696PQhDIe','20LDiCbU','local','1151962Oilaxt','RANGER_CLI_ENV','https://ai-proxy-301751771437.us-central1.run.app','159678LvRctP','https://api.ranger.net','89903sDDvgL','956KFnbEQ','prod','client_01J9CBYM7M5ZETCF7G6614DXR2','789CnmOsB','apiBaseUrl'];_0x4cf1=function(){return _0x575b05;};return _0x4cf1();}export function getCurrentEnvironment(){const _0xb215b3=_0x21862a,_0x1798cd=process[_0xb215b3(0x207)][_0xb215b3(0x1fd)];if(_0x1798cd&&isValidEnvironment(_0x1798cd))return _0x1798cd;return DEFAULT_ENVIRONMENT;}export function getApiBaseUrl(){const _0x3b85c3=_0x21862a,_0x26fc50={'ofhIN':function(_0x5c8a6b){return _0x5c8a6b();}};return ENVIRONMENT_CONFIGS[_0x26fc50['ofhIN'](getCurrentEnvironment)][_0x3b85c3(0x206)];}export function getAiProxyUrl(){const _0xc3af44=_0x21862a,_0xfb314d={'KusoG':function(_0x13aa3b){return _0x13aa3b();}};return ENVIRONMENT_CONFIGS[_0xfb314d[_0xc3af44(0x20b)](getCurrentEnvironment)][_0xc3af44(0x1f5)];}export function isByokEnabled(){const _0x2390c1=_0x21862a,_0x386850={'zZVbM':function(_0x1b0739,_0x4666c9){return _0x1b0739===_0x4666c9;}};return _0x386850['zZVbM'](process[_0x2390c1(0x207)]['RANGER_BYOK'],'true');}function _0x289e(_0x25e96d,_0xeba68){_0x25e96d=_0x25e96d-0x1f4;const _0x4cf116=_0x4cf1();let _0x289e01=_0x4cf116[_0x25e96d];return _0x289e01;}export function isMcpDisabled(){const _0x362112=_0x21862a,_0x69973e={'cPOIm':function(_0xa4e193,_0x4fadc8){return _0xa4e193===_0x4fadc8;},'UDPnW':'true'};return _0x69973e['cPOIm'](process['env'][_0x362112(0x20a)],_0x69973e[_0x362112(0x1f8)]);}export function getVerificationTransport(){const _0xf89bb1=_0x21862a,_0x467ae1={'svRAs':function(_0x37df2b){return _0x37df2b();},'XagHP':_0xf89bb1(0x1f7)};return _0x467ae1[_0xf89bb1(0x1f4)](isMcpDisabled)?'playwright-cli':_0x467ae1['XagHP'];}
@@ -1 +1 @@
1
- (function(_0x379005,_0x5ea8c8){const _0x5437cd=_0x5742,_0x41e289=_0x379005();while(!![]){try{const _0x91c6bb=parseInt(_0x5437cd(0x1f6))/0x1+parseInt(_0x5437cd(0x1d4))/0x2*(-parseInt(_0x5437cd(0x1bd))/0x3)+-parseInt(_0x5437cd(0x1f5))/0x4*(-parseInt(_0x5437cd(0x1c0))/0x5)+parseInt(_0x5437cd(0x1ba))/0x6+parseInt(_0x5437cd(0x1e2))/0x7*(parseInt(_0x5437cd(0x1c4))/0x8)+parseInt(_0x5437cd(0x1f9))/0x9+parseInt(_0x5437cd(0x1ce))/0xa*(-parseInt(_0x5437cd(0x1c3))/0xb);if(_0x91c6bb===_0x5ea8c8)break;else _0x41e289['push'](_0x41e289['shift']());}catch(_0x3ece89){_0x41e289['push'](_0x41e289['shift']());}}}(_0x41ec,0x9d0f9));import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{withRetry}from'./retry.js';function _0x5742(_0x50cb7c,_0x233f80){_0x50cb7c=_0x50cb7c-0x1b2;const _0x41ec25=_0x41ec();let _0x5742c5=_0x41ec25[_0x50cb7c];return _0x5742c5;}export async function createFeature(_0x48eada){const _0x4bdf60=_0x5742,_0x10b1ed={'aldWY':function(_0x5cfe26){return _0x5cfe26();},'aXnPw':_0x4bdf60(0x1d9),'rgfxf':function(_0x1d8f9e){return _0x1d8f9e();},'sMgQr':_0x4bdf60(0x1d5),'SKXpw':'Feature\x20limit\x20exceeded'},_0xf8ad61=await _0x10b1ed[_0x4bdf60(0x1bc)](getToken);if(!_0xf8ad61)throw new Error(_0x10b1ed[_0x4bdf60(0x1eb)]);const _0x51974e=_0x10b1ed['rgfxf'](getApiBaseUrl),_0x311b98=await fetch(_0x51974e+_0x4bdf60(0x1f8),{'method':'POST','headers':{'Authorization':_0x4bdf60(0x1b9)+_0xf8ad61,'Content-Type':_0x10b1ed[_0x4bdf60(0x1fb)]},'body':JSON['stringify'](_0x48eada)});if(!_0x311b98['ok']){if(_0x311b98[_0x4bdf60(0x1f7)]===0x192){const _0x29e3ab=await _0x311b98[_0x4bdf60(0x1d6)](),_0x2205bb=_0x29e3ab['billingUrl']||'https://dashboard.ranger.net/billing';throw new Error((_0x29e3ab['message']||_0x10b1ed[_0x4bdf60(0x1e3)])+'\x0a\x0aUpgrade\x20your\x20plan:\x20'+_0x2205bb);}const _0x2813b9=await _0x311b98[_0x4bdf60(0x1ff)]();throw new Error('Failed\x20to\x20create\x20feature\x20review:\x20'+_0x2813b9);}return _0x311b98[_0x4bdf60(0x1d6)]();}export async function listFeatures(_0x29d79a){const _0x1761bc=_0x5742,_0x2f1642={'gZaAo':function(_0x353762){return _0x353762();},'bDTRv':_0x1761bc(0x1d9),'ypyZB':_0x1761bc(0x1cc),'Sxavj':_0x1761bc(0x1f3),'oeyqj':_0x1761bc(0x1d0),'jKjTR':_0x1761bc(0x1e5),'KkXzT':function(_0xd8e33f,_0x2adb2c,_0x3046bc){return _0xd8e33f(_0x2adb2c,_0x3046bc);}},_0xb085fa=await _0x2f1642['gZaAo'](getToken);if(!_0xb085fa)throw new Error(_0x2f1642['bDTRv']);const _0x3f0531=_0x2f1642[_0x1761bc(0x1cf)](getApiBaseUrl),_0x108bdb=new URLSearchParams();if(_0x29d79a?.[_0x1761bc(0x1cc)])_0x108bdb[_0x1761bc(0x1b8)](_0x2f1642['ypyZB'],_0x29d79a[_0x1761bc(0x1cc)]);if(_0x29d79a?.['gitBranch'])_0x108bdb[_0x1761bc(0x1b8)](_0x2f1642['Sxavj'],_0x29d79a['gitBranch']);if(_0x29d79a?.[_0x1761bc(0x1d0)])_0x108bdb[_0x1761bc(0x1b8)](_0x2f1642['oeyqj'],_0x29d79a['limit'][_0x1761bc(0x1df)]());if(_0x29d79a?.[_0x1761bc(0x1e4)])_0x108bdb['set'](_0x1761bc(0x1e4),_0x29d79a['offset'][_0x1761bc(0x1df)]());if(_0x29d79a?.['includeDeleted'])_0x108bdb[_0x1761bc(0x1b8)](_0x2f1642[_0x1761bc(0x1c7)],_0x1761bc(0x1fe));const _0x2e74a9=_0x3f0531+_0x1761bc(0x1f8)+(_0x108bdb[_0x1761bc(0x1df)]()?'?'+_0x108bdb['toString']():''),_0x4e442b=await _0x2f1642[_0x1761bc(0x1b7)](fetch,_0x2e74a9,{'method':_0x1761bc(0x1f0),'headers':{'Authorization':'Bearer\x20'+_0xb085fa}});if(!_0x4e442b['ok']){const _0x3bc917=await _0x4e442b[_0x1761bc(0x1ff)]();throw new Error('Failed\x20to\x20list\x20feature\x20reviews:\x20'+_0x3bc917);}return _0x4e442b[_0x1761bc(0x1d6)]();}export async function getFeature(_0x25c7a8){const _0x373041=_0x5742,_0x5a3e01={'hoziH':function(_0x38cead){return _0x38cead();},'Zqfop':_0x373041(0x1d9),'LFryk':function(_0x3a7d93,_0x48036e,_0x9957ba){return _0x3a7d93(_0x48036e,_0x9957ba);},'FwnDq':'GET'},_0x2eb02d=await _0x5a3e01[_0x373041(0x1dc)](getToken);if(!_0x2eb02d)throw new Error(_0x5a3e01['Zqfop']);const _0x15e4a9=getApiBaseUrl(),_0x41bc55=await _0x5a3e01[_0x373041(0x1d3)](fetch,_0x15e4a9+'/api/v1/mcp/features/'+_0x25c7a8,{'method':_0x5a3e01[_0x373041(0x1b6)],'headers':{'Authorization':'Bearer\x20'+_0x2eb02d}});if(!_0x41bc55['ok']){const _0x2b77cb=await _0x41bc55[_0x373041(0x1ff)]();throw new Error('Failed\x20to\x20get\x20feature\x20review:\x20'+_0x2b77cb);}return _0x41bc55['json']();}export async function updateFeature(_0x2490e7,_0x3396cd){const _0x247a1a=_0x5742,_0x5798af={'LocvJ':_0x247a1a(0x1d9),'PvDfd':function(_0x413621){return _0x413621();},'JCgvc':function(_0x5a9310,_0x385092,_0x4ce63f){return _0x5a9310(_0x385092,_0x4ce63f);}},_0x2ca557=await getToken();if(!_0x2ca557)throw new Error(_0x5798af[_0x247a1a(0x1bb)]);const _0x4bb15c=_0x5798af[_0x247a1a(0x1e9)](getApiBaseUrl),_0x4a242a=await _0x5798af['JCgvc'](fetch,_0x4bb15c+'/api/v1/mcp/features/'+_0x2490e7,{'method':_0x247a1a(0x1c2),'headers':{'Authorization':'Bearer\x20'+_0x2ca557,'Content-Type':'application/json'},'body':JSON[_0x247a1a(0x1cb)](_0x3396cd)});if(!_0x4a242a['ok']){const _0x4406a5=await _0x4a242a['text']();throw new Error(_0x247a1a(0x1e7)+_0x4406a5);}return _0x4a242a[_0x247a1a(0x1d6)]();}export async function createChecklistItem(_0x2ff337,_0x17ac3f,_0x190d6e){const _0x3a1abc=_0x5742,_0x6ff4f6={'ujHxP':function(_0x375ee7){return _0x375ee7();},'TCvpQ':_0x3a1abc(0x1d9),'uTtHn':function(_0x16b93a,_0x15c0ff,_0x31ef92){return _0x16b93a(_0x15c0ff,_0x31ef92);},'VYoBA':'POST','Vufqb':'application/json'},_0x569f82=await _0x6ff4f6['ujHxP'](getToken);if(!_0x569f82)throw new Error(_0x6ff4f6[_0x3a1abc(0x1d8)]);const _0xbd0409=getApiBaseUrl(),_0x3696d8=await _0x6ff4f6['uTtHn'](fetch,_0xbd0409+'/api/v1/mcp/features/'+_0x2ff337+'/checklist',{'method':_0x6ff4f6['VYoBA'],'headers':{'Authorization':'Bearer\x20'+_0x569f82,'Content-Type':_0x6ff4f6['Vufqb']},'body':JSON['stringify']({'description':_0x17ac3f,'position':_0x190d6e})});if(!_0x3696d8['ok']){const _0xeeafd7=await _0x3696d8['text']();throw new Error('Failed\x20to\x20create\x20scenario:\x20'+_0xeeafd7);}return _0x3696d8[_0x3a1abc(0x1d6)]();}export async function updateChecklistItem(_0x3839f9,_0x55f22b,_0x5e30cb){const _0x319e66=_0x5742,_0x59be5c={'dDWdR':_0x319e66(0x1d9),'AjPFv':function(_0x4e0458,_0x5a4a16,_0x8a7370){return _0x4e0458(_0x5a4a16,_0x8a7370);},'JKaFk':_0x319e66(0x1e1)};return _0x59be5c['AjPFv'](withRetry,async()=>{const _0x29a317=_0x319e66,_0x197b1d=await getToken();if(!_0x197b1d)throw new Error(_0x59be5c['dDWdR']);const _0x4778d1=getApiBaseUrl(),_0x3f7f35=await fetch(_0x4778d1+_0x29a317(0x1f4)+_0x3839f9+'/checklist/'+_0x55f22b,{'method':_0x29a317(0x1c2),'headers':{'Authorization':_0x29a317(0x1b9)+_0x197b1d,'Content-Type':_0x29a317(0x1d5)},'body':JSON['stringify'](_0x5e30cb)});if(!_0x3f7f35['ok']){const _0x25756d=await _0x3f7f35[_0x29a317(0x1ff)]();throw new Error('Failed\x20to\x20update\x20scenario:\x20'+_0x25756d);}return _0x3f7f35[_0x29a317(0x1d6)]();},{'label':_0x59be5c[_0x319e66(0x1c1)]});}export async function getFeatureReport(_0x114f37){const _0x53499d=_0x5742,_0x637db5={'qZEow':_0x53499d(0x1d9),'ETPwA':function(_0x5ae3d8){return _0x5ae3d8();}},_0x4944c1=await getToken();if(!_0x4944c1)throw new Error(_0x637db5['qZEow']);const _0x2d0755=_0x637db5[_0x53499d(0x1d1)](getApiBaseUrl),_0x22ffac=await fetch(_0x2d0755+_0x53499d(0x1f4)+_0x114f37+_0x53499d(0x1fd),{'method':'GET','headers':{'Authorization':'Bearer\x20'+_0x4944c1}});if(!_0x22ffac['ok']){const _0x3a9d54=await _0x22ffac['text']();throw new Error(_0x53499d(0x1f2)+_0x3a9d54);}return _0x22ffac['json']();}export async function getFeatureReportMarkdown(_0x1cca1d,_0x20c610){const _0x48a161=_0x5742,_0x58b4f4={'RVKvv':_0x48a161(0x1d9),'VXCmi':function(_0x137d2c,_0x310216){return _0x137d2c>_0x310216;},'tWJlA':'sessionId','qOWkL':function(_0xb271d5,_0x25d4f0,_0x4260b7){return _0xb271d5(_0x25d4f0,_0x4260b7);}},_0x432630=await getToken();if(!_0x432630)throw new Error(_0x58b4f4['RVKvv']);const _0x19d4a7=getApiBaseUrl(),_0x53a18d=new URLSearchParams(),_0x1e6743=_0x58b4f4['VXCmi'](_0x20c610?.['itemIds']?.['length']??0x0,0x0),_0x277588=Boolean(_0x20c610?.['sessionId']);_0x1e6743&&_0x20c610?.['itemIds']&&_0x53a18d[_0x48a161(0x1b8)]('itemIds',_0x20c610['itemIds'][_0x48a161(0x1e6)](','));_0x277588&&_0x20c610?.['sessionId']&&_0x53a18d[_0x48a161(0x1b8)](_0x58b4f4[_0x48a161(0x1e0)],_0x20c610[_0x48a161(0x1dd)]);!_0x1e6743&&!_0x277588&&_0x20c610?.[_0x48a161(0x1ec)]&&_0x53a18d['set']('style',_0x20c610['style']);const _0x26e57=_0x19d4a7+_0x48a161(0x1f4)+_0x1cca1d+_0x48a161(0x1f1),_0x1c9754=''+_0x26e57+(_0x53a18d[_0x48a161(0x1df)]()?'?'+_0x53a18d['toString']():''),_0x2d3315=await _0x58b4f4['qOWkL'](fetch,_0x1c9754,{'method':_0x48a161(0x1f0),'headers':{'Authorization':_0x48a161(0x1b9)+_0x432630}});if(!_0x2d3315['ok']){const _0x51f285=await _0x2d3315[_0x48a161(0x1ff)]();throw new Error(_0x48a161(0x1cd)+_0x51f285);}return _0x2d3315[_0x48a161(0x1ff)]();}export async function listFeatureSessions(_0x424ec1){const _0x4062cb=_0x5742,_0x3ae4f9={'tODIY':function(_0x852376){return _0x852376();},'gYQgH':_0x4062cb(0x1f0)},_0x51b516=await getToken();if(!_0x51b516)throw new Error(_0x4062cb(0x1d9));const _0x12c2ea=_0x3ae4f9['tODIY'](getApiBaseUrl),_0x35c593=await fetch(_0x12c2ea+'/api/v1/mcp/features/'+_0x424ec1+'/sessions',{'method':_0x3ae4f9['gYQgH'],'headers':{'Authorization':_0x4062cb(0x1b9)+_0x51b516}});if(!_0x35c593['ok']){const _0x16ddeb=await _0x35c593[_0x4062cb(0x1ff)]();throw new Error('Failed\x20to\x20list\x20sessions:\x20'+_0x16ddeb);}return _0x35c593[_0x4062cb(0x1d6)]();}export async function startSession(_0x4d7dc3,_0x5f1f4e){const _0x1197de=_0x5742,_0x5a92d5={'HvQPM':function(_0x29df3b){return _0x29df3b();},'ANozU':function(_0x17e7f3,_0x3fe6db,_0x3af64c){return _0x17e7f3(_0x3fe6db,_0x3af64c);}},_0x24b53f=await _0x5a92d5[_0x1197de(0x1bf)](getToken);if(!_0x24b53f)throw new Error(_0x1197de(0x1d9));const _0x5f0994=getApiBaseUrl(),_0x22c919=await _0x5a92d5[_0x1197de(0x1c9)](fetch,_0x5f0994+_0x1197de(0x1f4)+_0x4d7dc3+'/sessions/'+_0x5f1f4e+_0x1197de(0x1b3),{'method':'POST','headers':{'Authorization':'Bearer\x20'+_0x24b53f}});if(!_0x22c919['ok']){const _0x46475a=await _0x22c919[_0x1197de(0x1ff)]();throw new Error(_0x1197de(0x200)+_0x46475a);}return _0x22c919['json']();}function _0x41ec(){const _0x32bb9c=['/action-items','stringify','gitRepoUrl','Failed\x20to\x20get\x20feature\x20review\x20report\x20markdown:\x20','3899810ViCgIS','gZaAo','limit','ETPwA','Failed\x20to\x20delete\x20feature\x20review:\x20','LFryk','43432RskuRn','application/json','json','GYZLR','TCvpQ','No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','nIser','VsJuN','hoziH','sessionId','BQjCi','toString','tWJlA','updateChecklistItem','3983tfVQJm','SKXpw','offset','includeDeleted','join','Failed\x20to\x20update\x20feature\x20review:\x20','Mcruz','PvDfd','Failed\x20to\x20get\x20item\x20feedback:\x20','aXnPw','style','DELETE','POST','wrfJx','GET','/report/markdown','Failed\x20to\x20get\x20feature\x20review\x20report:\x20','gitBranch','/api/v1/mcp/features/','204mQchOi','679040fPsJcl','status','/api/v1/mcp/features','3602988icglZp','Failed\x20to\x20get\x20action\x20items:\x20','sMgQr','hIUSQ','/report','true','text','Failed\x20to\x20start\x20session:\x20','/restore','/start','YlDKl','luGjd','FwnDq','KkXzT','set','Bearer\x20','5840790gPtUgP','LocvJ','aldWY','3urhvRx','cdrCP','HvQPM','71105owPULK','JKaFk','PATCH','77MkBoQI','8672RhhFUy','FVvgA','xmmoL','jKjTR','pVXgQ','ANozU'];_0x41ec=function(){return _0x32bb9c;};return _0x41ec();}export async function concludeSession(_0x17b37d,_0x4c4cac){const _0x2e50de=_0x5742,_0x3acabc={'BpaVd':function(_0x4fce2e){return _0x4fce2e();},'YlDKl':_0x2e50de(0x1d9),'VsJuN':_0x2e50de(0x1ee)},_0x5a9e0d=await _0x3acabc['BpaVd'](getToken);if(!_0x5a9e0d)throw new Error(_0x3acabc[_0x2e50de(0x1b4)]);const _0x3e8467=getApiBaseUrl(),_0x29fcf9=await fetch(_0x3e8467+_0x2e50de(0x1f4)+_0x17b37d+'/sessions/'+_0x4c4cac+'/conclude',{'method':_0x3acabc[_0x2e50de(0x1db)],'headers':{'Authorization':_0x2e50de(0x1b9)+_0x5a9e0d}});if(!_0x29fcf9['ok']){const _0x19360b=await _0x29fcf9['text']();throw new Error('Failed\x20to\x20conclude\x20session:\x20'+_0x19360b);}return _0x29fcf9[_0x2e50de(0x1d6)]();}export async function getActionItems(_0x4345f9){const _0x5dd6cc=_0x5742,_0x5d148a={'Flvcv':function(_0x19b9e2){return _0x19b9e2();},'ANBux':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','luGjd':_0x5dd6cc(0x1f0)},_0x445d2b=await _0x5d148a['Flvcv'](getToken);if(!_0x445d2b)throw new Error(_0x5d148a['ANBux']);const _0x3f1e84=getApiBaseUrl(),_0xfb2620=await fetch(_0x3f1e84+_0x5dd6cc(0x1f4)+_0x4345f9+_0x5dd6cc(0x1ca),{'method':_0x5d148a[_0x5dd6cc(0x1b5)],'headers':{'Authorization':_0x5dd6cc(0x1b9)+_0x445d2b}});if(!_0xfb2620['ok']){const _0x345180=await _0xfb2620['text']();throw new Error(_0x5dd6cc(0x1fa)+_0x345180);}return _0xfb2620['json']();}export async function getItemFeedback(_0x55f2d6,_0x478736){const _0x18beea=_0x5742,_0x21d0b7={'GYZLR':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','xQSyV':function(_0x3985ff){return _0x3985ff();},'FVvgA':_0x18beea(0x1f0)},_0x218944=await getToken();if(!_0x218944)throw new Error(_0x21d0b7[_0x18beea(0x1d7)]);const _0x439c48=_0x21d0b7['xQSyV'](getApiBaseUrl),_0x5285d2=await fetch(_0x439c48+_0x18beea(0x1f4)+_0x55f2d6+'/checklist-items/'+_0x478736+'/feedback',{'method':_0x21d0b7[_0x18beea(0x1c5)],'headers':{'Authorization':_0x18beea(0x1b9)+_0x218944}});if(!_0x5285d2['ok']){const _0x233815=await _0x5285d2[_0x18beea(0x1ff)]();throw new Error(_0x18beea(0x1ea)+_0x233815);}return _0x5285d2[_0x18beea(0x1d6)]();}export async function markCommentsAddressed(_0x231b4c,_0x3bc0a0,_0x4f6ac3){const _0x168fb5=_0x5742,_0x3aba95={'cdrCP':function(_0x2cabc1){return _0x2cabc1();},'RuqHx':_0x168fb5(0x1d9),'wrfJx':function(_0xd1a276,_0x4593dc,_0x51fe6c){return _0xd1a276(_0x4593dc,_0x51fe6c);},'nIser':_0x168fb5(0x1d5)},_0x129e7e=await _0x3aba95[_0x168fb5(0x1be)](getToken);if(!_0x129e7e)throw new Error(_0x3aba95['RuqHx']);const _0x485eb5=getApiBaseUrl(),_0x3f1fcd=await _0x3aba95[_0x168fb5(0x1ef)](fetch,_0x485eb5+'/api/v1/mcp/features/'+_0x231b4c+'/comments/address',{'method':'POST','headers':{'Authorization':_0x168fb5(0x1b9)+_0x129e7e,'Content-Type':_0x3aba95[_0x168fb5(0x1da)]},'body':JSON[_0x168fb5(0x1cb)]({'checklistItemId':_0x3bc0a0,'commentIds':_0x4f6ac3})});if(!_0x3f1fcd['ok']){const _0x2acd3b=await _0x3f1fcd[_0x168fb5(0x1ff)]();throw new Error('Failed\x20to\x20mark\x20comments\x20as\x20addressed:\x20'+_0x2acd3b);}}export async function softDeleteFeature(_0xe90916){const _0x221c32=_0x5742,_0x146261={'xmmoL':function(_0x1b2a42){return _0x1b2a42();},'pVXgQ':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','Znnlj':function(_0x28fc6d){return _0x28fc6d();},'BQjCi':function(_0x3dd15c,_0x3d2272,_0x357fc5){return _0x3dd15c(_0x3d2272,_0x357fc5);},'Mcruz':_0x221c32(0x1ed)},_0x41cbf7=await _0x146261[_0x221c32(0x1c6)](getToken);if(!_0x41cbf7)throw new Error(_0x146261[_0x221c32(0x1c8)]);const _0x3f21eb=_0x146261['Znnlj'](getApiBaseUrl),_0x13901c=await _0x146261[_0x221c32(0x1de)](fetch,_0x3f21eb+_0x221c32(0x1f4)+_0xe90916,{'method':_0x146261[_0x221c32(0x1e8)],'headers':{'Authorization':_0x221c32(0x1b9)+_0x41cbf7}});if(!_0x13901c['ok']){const _0xd98bbb=await _0x13901c['text']();throw new Error(_0x221c32(0x1d2)+_0xd98bbb);}}export async function restoreFeature(_0x3e68fe){const _0x5e937f=_0x5742,_0x2734e8={'hIUSQ':function(_0x53d80c){return _0x53d80c();},'oqVbM':function(_0x872cb2,_0x130537,_0xe6d842){return _0x872cb2(_0x130537,_0xe6d842);},'VcOIS':_0x5e937f(0x1ee)},_0x5bc42a=await getToken();if(!_0x5bc42a)throw new Error(_0x5e937f(0x1d9));const _0x534f09=_0x2734e8[_0x5e937f(0x1fc)](getApiBaseUrl),_0x2758cb=await _0x2734e8['oqVbM'](fetch,_0x534f09+'/api/v1/mcp/features/'+_0x3e68fe+_0x5e937f(0x1b2),{'method':_0x2734e8['VcOIS'],'headers':{'Authorization':_0x5e937f(0x1b9)+_0x5bc42a}});if(!_0x2758cb['ok']){const _0x55c24c=await _0x2758cb[_0x5e937f(0x1ff)]();throw new Error('Failed\x20to\x20restore\x20feature\x20review:\x20'+_0x55c24c);}}
1
+ (function(_0x50e251,_0x436dfa){const _0x17a7b7=_0x40e3,_0x228a18=_0x50e251();while(!![]){try{const _0x507035=-parseInt(_0x17a7b7(0xdd))/0x1*(parseInt(_0x17a7b7(0xda))/0x2)+-parseInt(_0x17a7b7(0xbb))/0x3+-parseInt(_0x17a7b7(0xa9))/0x4+parseInt(_0x17a7b7(0xc8))/0x5*(parseInt(_0x17a7b7(0xbf))/0x6)+-parseInt(_0x17a7b7(0xa6))/0x7+-parseInt(_0x17a7b7(0xbe))/0x8*(-parseInt(_0x17a7b7(0xb8))/0x9)+parseInt(_0x17a7b7(0xc1))/0xa*(parseInt(_0x17a7b7(0xe1))/0xb);if(_0x507035===_0x436dfa)break;else _0x228a18['push'](_0x228a18['shift']());}catch(_0xaf0e4a){_0x228a18['push'](_0x228a18['shift']());}}}(_0x1894,0xaf1e9));import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{withRetry}from'./retry.js';export async function createFeature(_0x2fe560){const _0x323fd0=_0x40e3,_0xf3a908={'UERAJ':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','Xdkla':'application/json','JgGMv':'Feature\x20limit\x20exceeded'},_0xf1ba26=await getToken();if(!_0xf1ba26)throw new Error(_0xf3a908['UERAJ']);const _0x438407=getApiBaseUrl(),_0xdb5ca9=await fetch(_0x438407+'/api/v1/mcp/features',{'method':_0x323fd0(0xd5),'headers':{'Authorization':_0x323fd0(0xa7)+_0xf1ba26,'Content-Type':_0xf3a908['Xdkla']},'body':JSON['stringify'](_0x2fe560)});if(!_0xdb5ca9['ok']){if(_0xdb5ca9[_0x323fd0(0xe2)]===0x192){const _0x2378c3=await _0xdb5ca9['json'](),_0x378a93=_0x2378c3[_0x323fd0(0xb9)]||'https://dashboard.ranger.net/billing';throw new Error((_0x2378c3['message']||_0xf3a908['JgGMv'])+'\x0a\x0aUpgrade\x20your\x20plan:\x20'+_0x378a93);}const _0x4967cf=await _0xdb5ca9[_0x323fd0(0xa5)]();throw new Error('Failed\x20to\x20create\x20feature\x20review:\x20'+_0x4967cf);}return _0xdb5ca9[_0x323fd0(0x9f)]();}export async function listFeatures(_0x3f7523){const _0x342ca9=_0x40e3,_0x4c15d2={'cBMxh':function(_0x41e6a9){return _0x41e6a9();},'wQkyy':_0x342ca9(0xe6),'RYnoW':function(_0x3a404e){return _0x3a404e();},'ufuom':_0x342ca9(0xdb),'TMnoH':'offset','iKWWv':_0x342ca9(0xac)},_0x2389fb=await _0x4c15d2[_0x342ca9(0xd0)](getToken);if(!_0x2389fb)throw new Error(_0x4c15d2[_0x342ca9(0xb3)]);const _0xf38380=_0x4c15d2['RYnoW'](getApiBaseUrl),_0x576772=new URLSearchParams();if(_0x3f7523?.[_0x342ca9(0xdb)])_0x576772['set'](_0x4c15d2['ufuom'],_0x3f7523[_0x342ca9(0xdb)]);if(_0x3f7523?.['gitBranch'])_0x576772['set']('gitBranch',_0x3f7523['gitBranch']);if(_0x3f7523?.['limit'])_0x576772['set'](_0x342ca9(0xcd),_0x3f7523[_0x342ca9(0xcd)]['toString']());if(_0x3f7523?.['offset'])_0x576772[_0x342ca9(0xc5)](_0x4c15d2['TMnoH'],_0x3f7523['offset'][_0x342ca9(0xd9)]());if(_0x3f7523?.[_0x342ca9(0xcc)])_0x576772[_0x342ca9(0xc5)](_0x342ca9(0xcc),_0x4c15d2[_0x342ca9(0xdf)]);const _0x1c711c=_0xf38380+'/api/v1/mcp/features'+(_0x576772['toString']()?'?'+_0x576772['toString']():''),_0x5619eb=await fetch(_0x1c711c,{'method':'GET','headers':{'Authorization':'Bearer\x20'+_0x2389fb}});if(!_0x5619eb['ok']){const _0x414a53=await _0x5619eb[_0x342ca9(0xa5)]();throw new Error(_0x342ca9(0xd2)+_0x414a53);}return _0x5619eb[_0x342ca9(0x9f)]();}function _0x1894(){const _0x12d867=['Failed\x20to\x20update\x20feature\x20review:\x20','nIdBI','SlElw','includeDeleted','limit','gRVQg','fTgZk','cBMxh','mJBji','Failed\x20to\x20list\x20feature\x20reviews:\x20','SmEMB','/action-items','POST','zXTmF','Failed\x20to\x20get\x20feature\x20review\x20report\x20markdown:\x20','BxGBo','toString','2okNJQU','gitRepoUrl','TGfaJ','537342UxaXYU','style','iKWWv','Vyzvb','8767dQWokh','status','/comments/address','doKzd','sessionId','No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','itemIds','Failed\x20to\x20conclude\x20session:\x20','json','/sessions','application/json','/restore','Failed\x20to\x20update\x20scenario:\x20','PATCH','text','3580038nbNetE','Bearer\x20','RUubL','4162388RBQhVX','Failed\x20to\x20get\x20action\x20items:\x20','BGkpX','true','Failed\x20to\x20get\x20item\x20feedback:\x20','/start','/feedback','nvhwQ','/checklist-items/','HEFmZ','wQkyy','/sessions/','FcGNG','join','Failed\x20to\x20list\x20sessions:\x20','5124042dRsHum','billingUrl','OJQoA','1165182SwAuzj','TLEpl','/api/v1/mcp/features/','8cGAVXU','45618asmPOK','stringify','29320FYRbSI','Ywcgo','Failed\x20to\x20delete\x20feature\x20review:\x20','updateChecklistItem','set','Zmbsq','pWGmc','190TTHMnl'];_0x1894=function(){return _0x12d867;};return _0x1894();}export async function getFeature(_0x450c06){const _0x485bf1=_0x40e3,_0x4a2cb6={'bPtwZ':function(_0x3489dc){return _0x3489dc();},'Zmbsq':_0x485bf1(0xe6),'qTeim':function(_0x2f2e37,_0x385555,_0x465dbb){return _0x2f2e37(_0x385555,_0x465dbb);}},_0x47332f=await _0x4a2cb6['bPtwZ'](getToken);if(!_0x47332f)throw new Error(_0x4a2cb6[_0x485bf1(0xc6)]);const _0x331bb8=getApiBaseUrl(),_0x3f704e=await _0x4a2cb6['qTeim'](fetch,_0x331bb8+'/api/v1/mcp/features/'+_0x450c06,{'method':'GET','headers':{'Authorization':'Bearer\x20'+_0x47332f}});if(!_0x3f704e['ok']){const _0x2b5c64=await _0x3f704e['text']();throw new Error('Failed\x20to\x20get\x20feature\x20review:\x20'+_0x2b5c64);}return _0x3f704e['json']();}export async function updateFeature(_0x1c4b78,_0x526f42){const _0x2e0d70=_0x40e3,_0x13d532={'mJBji':_0x2e0d70(0xe6),'nvhwQ':function(_0x124151){return _0x124151();},'ropbd':_0x2e0d70(0xa4),'EtoqV':_0x2e0d70(0xa1)},_0x5e8296=await getToken();if(!_0x5e8296)throw new Error(_0x13d532[_0x2e0d70(0xd1)]);const _0x1c4552=_0x13d532[_0x2e0d70(0xb0)](getApiBaseUrl),_0x335a9c=await fetch(_0x1c4552+_0x2e0d70(0xbd)+_0x1c4b78,{'method':_0x13d532['ropbd'],'headers':{'Authorization':'Bearer\x20'+_0x5e8296,'Content-Type':_0x13d532['EtoqV']},'body':JSON[_0x2e0d70(0xc0)](_0x526f42)});if(!_0x335a9c['ok']){const _0x583332=await _0x335a9c[_0x2e0d70(0xa5)]();throw new Error(_0x2e0d70(0xc9)+_0x583332);}return _0x335a9c[_0x2e0d70(0x9f)]();}function _0x40e3(_0x15a029,_0x5ef2ec){_0x15a029=_0x15a029-0x9e;const _0x18941d=_0x1894();let _0x40e359=_0x18941d[_0x15a029];return _0x40e359;}export async function createChecklistItem(_0x33a310,_0x3055c7,_0xad5ec2){const _0x20ff79=_0x40e3,_0x5b25ae={'zzBRX':function(_0x5da76c,_0x19c8ed,_0x11f90b){return _0x5da76c(_0x19c8ed,_0x11f90b);},'HoUge':'POST'},_0x25f4ac=await getToken();if(!_0x25f4ac)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x41ccb6=getApiBaseUrl(),_0x551cd1=await _0x5b25ae['zzBRX'](fetch,_0x41ccb6+_0x20ff79(0xbd)+_0x33a310+'/checklist',{'method':_0x5b25ae['HoUge'],'headers':{'Authorization':'Bearer\x20'+_0x25f4ac,'Content-Type':'application/json'},'body':JSON[_0x20ff79(0xc0)]({'description':_0x3055c7,'position':_0xad5ec2})});if(!_0x551cd1['ok']){const _0x40640d=await _0x551cd1['text']();throw new Error('Failed\x20to\x20create\x20scenario:\x20'+_0x40640d);}return _0x551cd1['json']();}export async function updateChecklistItem(_0x58c12c,_0x1dcc88,_0x4a5f4c){const _0xb64486=_0x40e3,_0x28c118={'mXLTV':function(_0xe0f949){return _0xe0f949();},'lwfTH':function(_0x1475ba,_0x12afb9,_0x53960f){return _0x1475ba(_0x12afb9,_0x53960f);},'KRUwp':'PATCH','aQWJr':function(_0x1a643f,_0x2c1e11,_0xdba24){return _0x1a643f(_0x2c1e11,_0xdba24);},'Vyzvb':_0xb64486(0xc4)};return _0x28c118['aQWJr'](withRetry,async()=>{const _0x6dc36b=_0xb64486,_0x4f91b0=await _0x28c118['mXLTV'](getToken);if(!_0x4f91b0)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x59123c=getApiBaseUrl(),_0x24b79d=await _0x28c118['lwfTH'](fetch,_0x59123c+_0x6dc36b(0xbd)+_0x58c12c+'/checklist/'+_0x1dcc88,{'method':_0x28c118['KRUwp'],'headers':{'Authorization':_0x6dc36b(0xa7)+_0x4f91b0,'Content-Type':_0x6dc36b(0xa1)},'body':JSON[_0x6dc36b(0xc0)](_0x4a5f4c)});if(!_0x24b79d['ok']){const _0x1dbb39=await _0x24b79d['text']();throw new Error(_0x6dc36b(0xa3)+_0x1dbb39);}return _0x24b79d['json']();},{'label':_0x28c118[_0xb64486(0xe0)]});}export async function getFeatureReport(_0x2cdddc){const _0x3b96fe=_0x40e3,_0x1be3ef={'shWib':function(_0x1b8abc){return _0x1b8abc();},'gRVQg':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','LVwyT':function(_0x3dabf0){return _0x3dabf0();},'FQwdt':function(_0x432c1,_0x12dcf7,_0x42e888){return _0x432c1(_0x12dcf7,_0x42e888);}},_0x59dcb3=await _0x1be3ef['shWib'](getToken);if(!_0x59dcb3)throw new Error(_0x1be3ef[_0x3b96fe(0xce)]);const _0x1f6171=_0x1be3ef['LVwyT'](getApiBaseUrl),_0x577f78=await _0x1be3ef['FQwdt'](fetch,_0x1f6171+'/api/v1/mcp/features/'+_0x2cdddc+'/report',{'method':'GET','headers':{'Authorization':_0x3b96fe(0xa7)+_0x59dcb3}});if(!_0x577f78['ok']){const _0x550a51=await _0x577f78[_0x3b96fe(0xa5)]();throw new Error('Failed\x20to\x20get\x20feature\x20review\x20report:\x20'+_0x550a51);}return _0x577f78[_0x3b96fe(0x9f)]();}export async function getFeatureReportMarkdown(_0x2d6b74,_0x39abb1){const _0xfe1ad8=_0x40e3,_0x562487={'pWGmc':function(_0x166621){return _0x166621();},'FYjQj':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','SmEMB':function(_0x38d6a3,_0xffd5dd){return _0x38d6a3>_0xffd5dd;},'RMGFE':function(_0x3bc32d,_0x325a53){return _0x3bc32d(_0x325a53);},'TGfaJ':_0xfe1ad8(0xe5),'OJQoA':function(_0x2ef060,_0x3a1bf2){return _0x2ef060&&_0x3a1bf2;},'BGkpX':function(_0x24df4d,_0x284a9c,_0x54ac87){return _0x24df4d(_0x284a9c,_0x54ac87);}},_0x34bda9=await _0x562487[_0xfe1ad8(0xc7)](getToken);if(!_0x34bda9)throw new Error(_0x562487['FYjQj']);const _0x22ce97=getApiBaseUrl(),_0x11e681=new URLSearchParams(),_0x1592d2=_0x562487[_0xfe1ad8(0xd3)](_0x39abb1?.[_0xfe1ad8(0xe7)]?.['length']??0x0,0x0),_0x2ab187=_0x562487['RMGFE'](Boolean,_0x39abb1?.[_0xfe1ad8(0xe5)]);_0x1592d2&&_0x39abb1?.[_0xfe1ad8(0xe7)]&&_0x11e681['set']('itemIds',_0x39abb1[_0xfe1ad8(0xe7)][_0xfe1ad8(0xb6)](','));_0x2ab187&&_0x39abb1?.['sessionId']&&_0x11e681['set'](_0x562487[_0xfe1ad8(0xdc)],_0x39abb1['sessionId']);_0x562487[_0xfe1ad8(0xba)](!_0x1592d2,!_0x2ab187)&&_0x39abb1?.[_0xfe1ad8(0xde)]&&_0x11e681[_0xfe1ad8(0xc5)]('style',_0x39abb1['style']);const _0x1ed554=_0x22ce97+'/api/v1/mcp/features/'+_0x2d6b74+'/report/markdown',_0x176a51=''+_0x1ed554+(_0x11e681['toString']()?'?'+_0x11e681[_0xfe1ad8(0xd9)]():''),_0x2b01e4=await _0x562487[_0xfe1ad8(0xab)](fetch,_0x176a51,{'method':'GET','headers':{'Authorization':'Bearer\x20'+_0x34bda9}});if(!_0x2b01e4['ok']){const _0x5262e7=await _0x2b01e4['text']();throw new Error(_0xfe1ad8(0xd7)+_0x5262e7);}return _0x2b01e4[_0xfe1ad8(0xa5)]();}export async function listFeatureSessions(_0xc863b3){const _0x226175=_0x40e3,_0x331540={'SlElw':_0x226175(0xe6),'RUubL':function(_0x263e55,_0x1bbbff,_0x5f36c9){return _0x263e55(_0x1bbbff,_0x5f36c9);},'AALDp':'GET'},_0x4e65e1=await getToken();if(!_0x4e65e1)throw new Error(_0x331540[_0x226175(0xcb)]);const _0x2fc603=getApiBaseUrl(),_0x1ecdd0=await _0x331540[_0x226175(0xa8)](fetch,_0x2fc603+_0x226175(0xbd)+_0xc863b3+_0x226175(0xa0),{'method':_0x331540['AALDp'],'headers':{'Authorization':_0x226175(0xa7)+_0x4e65e1}});if(!_0x1ecdd0['ok']){const _0x2b08e8=await _0x1ecdd0['text']();throw new Error(_0x226175(0xb7)+_0x2b08e8);}return _0x1ecdd0[_0x226175(0x9f)]();}export async function startSession(_0x4fdaa2,_0x170e2a){const _0x20f953=_0x40e3,_0x3899e9={'TLEpl':_0x20f953(0xd5)},_0x26f7a8=await getToken();if(!_0x26f7a8)throw new Error(_0x20f953(0xe6));const _0x3e9bd0=getApiBaseUrl(),_0xf9a948=await fetch(_0x3e9bd0+'/api/v1/mcp/features/'+_0x4fdaa2+'/sessions/'+_0x170e2a+_0x20f953(0xae),{'method':_0x3899e9[_0x20f953(0xbc)],'headers':{'Authorization':'Bearer\x20'+_0x26f7a8}});if(!_0xf9a948['ok']){const _0x336c02=await _0xf9a948['text']();throw new Error('Failed\x20to\x20start\x20session:\x20'+_0x336c02);}return _0xf9a948[_0x20f953(0x9f)]();}export async function concludeSession(_0x1e8a9a,_0x34b23e){const _0x3e8e42=_0x40e3,_0xa025be={'BxGBo':function(_0x52c55c){return _0x52c55c();},'Ywcgo':function(_0x182be5,_0x319992,_0x4df809){return _0x182be5(_0x319992,_0x4df809);},'FcGNG':_0x3e8e42(0xd5)},_0x146e03=await _0xa025be[_0x3e8e42(0xd8)](getToken);if(!_0x146e03)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x4c82ef=_0xa025be['BxGBo'](getApiBaseUrl),_0x3ead77=await _0xa025be[_0x3e8e42(0xc2)](fetch,_0x4c82ef+_0x3e8e42(0xbd)+_0x1e8a9a+_0x3e8e42(0xb4)+_0x34b23e+'/conclude',{'method':_0xa025be[_0x3e8e42(0xb5)],'headers':{'Authorization':'Bearer\x20'+_0x146e03}});if(!_0x3ead77['ok']){const _0x1a1bf6=await _0x3ead77['text']();throw new Error(_0x3e8e42(0x9e)+_0x1a1bf6);}return _0x3ead77['json']();}export async function getActionItems(_0x1e5e46){const _0x38458a=_0x40e3,_0x3da850=await getToken();if(!_0x3da850)throw new Error(_0x38458a(0xe6));const _0x56d3e9=getApiBaseUrl(),_0x2d6343=await fetch(_0x56d3e9+'/api/v1/mcp/features/'+_0x1e5e46+_0x38458a(0xd4),{'method':'GET','headers':{'Authorization':'Bearer\x20'+_0x3da850}});if(!_0x2d6343['ok']){const _0x390d3d=await _0x2d6343['text']();throw new Error(_0x38458a(0xaa)+_0x390d3d);}return _0x2d6343[_0x38458a(0x9f)]();}export async function getItemFeedback(_0x5199de,_0x3fe409){const _0x39c4a0=_0x40e3,_0x28cfd7={'fTgZk':function(_0x1f890a){return _0x1f890a();},'RkaYa':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]'},_0x13cba8=await _0x28cfd7[_0x39c4a0(0xcf)](getToken);if(!_0x13cba8)throw new Error(_0x28cfd7['RkaYa']);const _0xa8158a=_0x28cfd7['fTgZk'](getApiBaseUrl),_0x4c9adc=await fetch(_0xa8158a+'/api/v1/mcp/features/'+_0x5199de+_0x39c4a0(0xb1)+_0x3fe409+_0x39c4a0(0xaf),{'method':'GET','headers':{'Authorization':_0x39c4a0(0xa7)+_0x13cba8}});if(!_0x4c9adc['ok']){const _0x169a62=await _0x4c9adc[_0x39c4a0(0xa5)]();throw new Error(_0x39c4a0(0xad)+_0x169a62);}return _0x4c9adc['json']();}export async function markCommentsAddressed(_0x52d871,_0x298377,_0x54ddd3){const _0x15c572=_0x40e3,_0x5ee6f8={'HEFmZ':function(_0x4cc7e5){return _0x4cc7e5();},'OaGeC':function(_0x33e723,_0x5ad4ab,_0x11c0b2){return _0x33e723(_0x5ad4ab,_0x11c0b2);},'zXTmF':'POST'},_0x3b1c04=await getToken();if(!_0x3b1c04)throw new Error('No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]');const _0x1a2bc1=_0x5ee6f8[_0x15c572(0xb2)](getApiBaseUrl),_0x2a34d3=await _0x5ee6f8['OaGeC'](fetch,_0x1a2bc1+'/api/v1/mcp/features/'+_0x52d871+_0x15c572(0xe3),{'method':_0x5ee6f8[_0x15c572(0xd6)],'headers':{'Authorization':'Bearer\x20'+_0x3b1c04,'Content-Type':'application/json'},'body':JSON[_0x15c572(0xc0)]({'checklistItemId':_0x298377,'commentIds':_0x54ddd3})});if(!_0x2a34d3['ok']){const _0x2da2da=await _0x2a34d3['text']();throw new Error('Failed\x20to\x20mark\x20comments\x20as\x20addressed:\x20'+_0x2da2da);}}export async function softDeleteFeature(_0x498698){const _0x552b76=_0x40e3,_0xc6dfd4={'nIdBI':function(_0x1ec000){return _0x1ec000();},'doKzd':'No\x20API\x20token\x20configured.\x20Run:\x20ranger\x20setup\x20[token]','yLvdW':function(_0x548cde,_0x36ce44,_0x5f21e4){return _0x548cde(_0x36ce44,_0x5f21e4);}},_0x2b3375=await _0xc6dfd4[_0x552b76(0xca)](getToken);if(!_0x2b3375)throw new Error(_0xc6dfd4[_0x552b76(0xe4)]);const _0x1be122=getApiBaseUrl(),_0x8460c7=await _0xc6dfd4['yLvdW'](fetch,_0x1be122+'/api/v1/mcp/features/'+_0x498698,{'method':'DELETE','headers':{'Authorization':_0x552b76(0xa7)+_0x2b3375}});if(!_0x8460c7['ok']){const _0x300f1d=await _0x8460c7['text']();throw new Error(_0x552b76(0xc3)+_0x300f1d);}}export async function restoreFeature(_0x434abc){const _0x3bbbbe=_0x40e3,_0x1be46e={'DdGXF':function(_0x3727fc){return _0x3727fc();},'ALupP':function(_0x461562,_0x5c02ea,_0x4692a8){return _0x461562(_0x5c02ea,_0x4692a8);}},_0x5f4a4c=await getToken();if(!_0x5f4a4c)throw new Error(_0x3bbbbe(0xe6));const _0x5ca2c1=_0x1be46e['DdGXF'](getApiBaseUrl),_0x27cee9=await _0x1be46e['ALupP'](fetch,_0x5ca2c1+'/api/v1/mcp/features/'+_0x434abc+_0x3bbbbe(0xa2),{'method':'POST','headers':{'Authorization':'Bearer\x20'+_0x5f4a4c}});if(!_0x27cee9['ok']){const _0x485126=await _0x27cee9['text']();throw new Error('Failed\x20to\x20restore\x20feature\x20review:\x20'+_0x485126);}}
@@ -1 +1 @@
1
- (function(_0x321ef9,_0xe02383){const _0xf21ed9=_0x860f,_0x49797c=_0x321ef9();while(!![]){try{const _0x104f85=parseInt(_0xf21ed9(0x7d))/0x1*(-parseInt(_0xf21ed9(0x97))/0x2)+-parseInt(_0xf21ed9(0xac))/0x3*(-parseInt(_0xf21ed9(0x8f))/0x4)+parseInt(_0xf21ed9(0x8d))/0x5*(parseInt(_0xf21ed9(0xb5))/0x6)+parseInt(_0xf21ed9(0x81))/0x7*(-parseInt(_0xf21ed9(0x8e))/0x8)+-parseInt(_0xf21ed9(0xb3))/0x9*(parseInt(_0xf21ed9(0x7b))/0xa)+-parseInt(_0xf21ed9(0x76))/0xb+parseInt(_0xf21ed9(0x8c))/0xc;if(_0x104f85===_0xe02383)break;else _0x49797c['push'](_0x49797c['shift']());}catch(_0x555cf9){_0x49797c['push'](_0x49797c['shift']());}}}(_0x5526,0x35e59));export function buildTraceViewerUrl(_0x4f7028){const _0xa46fd1=_0x860f,_0x389c11={'fRVzD':function(_0x49d1f9,_0x189c48){return _0x49d1f9(_0x189c48);}},_0x2007fd=_0x389c11[_0xa46fd1(0x79)](encodeURIComponent,_0x4f7028);return'https://trace.playwright.dev/?trace='+_0x2007fd;}function getStatusEmoji(_0x2a7cf7){const _0x4e13b9=_0x860f,_0x8df18c={'NRJjP':_0x4e13b9(0x88),'VhlzI':'in_progress','hLaca':'incomplete','eWcNh':_0x4e13b9(0x9e)};switch(_0x2a7cf7){case _0x8df18c['NRJjP']:case _0x4e13b9(0x66):return'✅';case'pending':case _0x8df18c['VhlzI']:return'🔄';case _0x8df18c['hLaca']:return'🟠';case _0x8df18c[_0x4e13b9(0x83)]:return'🛑';case _0x4e13b9(0x6a):return'⛔';default:return'❓';}}function _0x5526(){const _0x52dfcf=['completedAt','bSGzh','floor','verifiedAt','canceledReason','**Branch:**\x20','agentResponse','875765ewrgsm','closedAt','##\x20Description','fRVzD','bQJaK','24750GeJiEl','**Repository:**\x20','407998dqeQDm','blockedReason','##\x20Blocking\x20Issues','Unknown','149177usfLoy','No\x20Session','eWcNh','Completed','PMmSd','\x20|\x20','gitBranch','verified','gitRepoUrl','No\x20reason\x20provided','jQyiP','7974948icXkWK','125grXOCm','120MuXenn','48248sepTDL','N/A','-\x20**Status:**\x20Incomplete\x20-\x20requires\x20further\x20work','\x20verified)','-\x20**Session:**\x20','createdAt','**Completed:**\x20','substring','2vlDqZQ','-\x20**Blocked:**\x20','iteration','sesRO','-\x20**Closed:**\x20',':\x20Awaiting\x20Review','en-US','blocked','checklistItemId','-\x20**Reason:**\x20','short','NlPyU','nPuRF','numeric','-\x20**','filter','Session\x20','**:\x20','find','status','...','90SMRaHT','currentSession','BPGLS','|---------|----------|--------|----------|------|','Arett','KGHUg','description','1143gfJapW','tizqw','75822dKiQRW','browserSessionId','traceUrl','nboEu','###\x20','completed','##\x20Scenario\x20Progress\x20(','xYFOw','WVRbd','closed','sMdop','nDVit','push','length'];_0x5526=function(){return _0x52dfcf;};return _0x5526();}function formatDuration(_0x42e173){const _0x39d1cb=_0x860f,_0xb499f0={'bQJaK':function(_0x1583e9,_0x1819e4){return _0x1583e9===_0x1819e4;},'LYhbc':function(_0x5b965a,_0x26ff59){return _0x5b965a<_0x26ff59;},'jQyiP':function(_0x42d178,_0x1d12d9){return _0x42d178/_0x1d12d9;},'nboEu':function(_0x34961c,_0x10e7e7){return _0x34961c/_0x10e7e7;}};if(_0xb499f0['bQJaK'](_0x42e173,null)||_0xb499f0[_0x39d1cb(0x7a)](_0x42e173,undefined))return _0x39d1cb(0x90);if(_0xb499f0['LYhbc'](_0x42e173,0x3e8))return _0x42e173+'ms';const _0x5ad29b=Math[_0x39d1cb(0x71)](_0xb499f0[_0x39d1cb(0x8b)](_0x42e173,0x3e8));if(_0x5ad29b<0x3c)return _0x5ad29b+'s';const _0x4830bb=Math['floor'](_0xb499f0[_0x39d1cb(0xb8)](_0x5ad29b,0x3c)),_0x519b5e=_0x5ad29b%0x3c;return _0x4830bb+'m\x20'+_0x519b5e+'s';}function formatDate(_0x49aaca){const _0x12eb4c=_0x860f,_0x44dcce={'KGHUg':'N/A','nPuRF':_0x12eb4c(0x9d),'WOdZZ':_0x12eb4c(0xa4)};if(!_0x49aaca)return _0x44dcce[_0x12eb4c(0xb1)];return new Date(_0x49aaca)['toLocaleDateString'](_0x44dcce[_0x12eb4c(0xa3)],{'year':_0x12eb4c(0xa4),'month':_0x12eb4c(0xa1),'day':_0x44dcce['WOdZZ']});}function _0x860f(_0x5213e7,_0x43d23b){_0x5213e7=_0x5213e7-0x65;const _0x552651=_0x5526();let _0x860f1a=_0x552651[_0x5213e7];return _0x860f1a;}export function generateFeatureReport(_0x46e9b0){const _0x3cf2b5=_0x860f,_0x2f5797={'nDVit':'ready','nUTKu':'in_progress','Arett':_0x3cf2b5(0x66),'PMmSd':function(_0x5ab00a,_0x38504b){return _0x5ab00a(_0x38504b);},'sMdop':function(_0x43db8e,_0x18f287){return _0x43db8e(_0x18f287);},'WVRbd':function(_0x17001e,_0x336fb1){return _0x17001e===_0x336fb1;},'tizqw':'verified','NlPyU':_0x3cf2b5(0x9e),'bpgfA':function(_0x4d134a,_0x59b775){return _0x4d134a(_0x59b775);},'ywASa':'closed','xYFOw':'incomplete','sesRO':function(_0x3543b6,_0x269fa1){return _0x3543b6(_0x269fa1);},'YaLCu':_0x3cf2b5(0x8a),'aYlZC':'None','WbVMG':'##\x20All\x20Verification\x20Sessions','bSGzh':'|\x20Session\x20|\x20Scenario\x20|\x20Status\x20|\x20Duration\x20|\x20Date\x20|','aJCYj':function(_0x1b4dd9,_0x11b143){return _0x1b4dd9+_0x11b143;},'BPGLS':'N/A'},{feature:_0x570831,stats:_0x455f32,checklistItems:_0x512709,sessions:_0xf63fee}=_0x46e9b0,_0x4efe8f=[];_0x4efe8f[_0x3cf2b5(0x6d)]('#\x20Feature\x20Review\x20Report:\x20'+_0x570831['name']),_0x4efe8f['push']('');let _0x136d42,_0x139a07;if(_0x570831['completedAt'])_0x136d42=_0x3cf2b5(0x84),_0x139a07='✅';else{if(_0x570831[_0x3cf2b5(0xad)]){const _0x3cc9fe=_0x570831[_0x3cf2b5(0xad)][_0x3cf2b5(0xaa)];switch(_0x3cc9fe){case _0x2f5797[_0x3cf2b5(0x6c)]:_0x136d42=_0x3cf2b5(0xa7)+_0x570831[_0x3cf2b5(0xad)][_0x3cf2b5(0x99)]+':\x20Ready',_0x139a07='▶️';break;case _0x2f5797['nUTKu']:_0x136d42='Session\x20'+_0x570831[_0x3cf2b5(0xad)]['iteration']+':\x20In\x20Progress',_0x139a07='🔄';break;case _0x2f5797['Arett']:_0x136d42='Session\x20'+_0x570831['currentSession'][_0x3cf2b5(0x99)]+_0x3cf2b5(0x9c),_0x139a07='📊';break;default:_0x136d42=_0x3cf2b5(0x80),_0x139a07='❓';}}else _0x136d42=_0x3cf2b5(0x82),_0x139a07='⬜';}_0x4efe8f[_0x3cf2b5(0x6d)]('**Status:**\x20'+_0x139a07+'\x20'+_0x136d42),_0x4efe8f['push']('**Created:**\x20'+_0x2f5797[_0x3cf2b5(0x85)](formatDate,_0x570831[_0x3cf2b5(0x94)]));_0x570831[_0x3cf2b5(0x6f)]&&_0x4efe8f['push'](_0x3cf2b5(0x95)+formatDate(_0x570831['completedAt']));_0x570831[_0x3cf2b5(0x89)]&&_0x4efe8f['push'](_0x3cf2b5(0x7c)+_0x570831['gitRepoUrl']);_0x570831[_0x3cf2b5(0x87)]&&_0x4efe8f[_0x3cf2b5(0x6d)](_0x3cf2b5(0x74)+_0x570831['gitBranch']);_0x4efe8f['push']('');_0x570831[_0x3cf2b5(0xb2)]&&(_0x4efe8f[_0x3cf2b5(0x6d)](_0x3cf2b5(0x78)),_0x4efe8f['push'](''),_0x4efe8f['push'](_0x570831['description']),_0x4efe8f[_0x3cf2b5(0x6d)](''));const _0x4c03b0=_0x512709['filter'](_0x294db6=>_0x294db6['status']!==_0x3cf2b5(0x6a)),_0x4a1aee=_0x512709[_0x3cf2b5(0xa6)](_0x356aa0=>_0x356aa0[_0x3cf2b5(0xaa)]==='verified')[_0x3cf2b5(0x6e)];_0x4efe8f[_0x3cf2b5(0x6d)](_0x3cf2b5(0x67)+_0x4a1aee+'/'+_0x4c03b0['length']+_0x3cf2b5(0x92)),_0x4efe8f[_0x3cf2b5(0x6d)]('');for(const _0x21a16a of _0x512709){const _0xfbdd=_0x2f5797[_0x3cf2b5(0x6b)](getStatusEmoji,_0x21a16a[_0x3cf2b5(0xaa)]),_0x111e3f=_0x2f5797['WVRbd'](_0x21a16a[_0x3cf2b5(0xaa)],_0x3cf2b5(0x6a)),_0x301082=_0x111e3f?'~~':'',_0x11cb6a=_0x111e3f?'~~':'';_0x4efe8f['push'](_0x3cf2b5(0x65)+_0xfbdd+'\x20'+_0x301082+_0x21a16a[_0x3cf2b5(0xb2)]+_0x11cb6a),_0x4efe8f[_0x3cf2b5(0x6d)]('');_0x2f5797[_0x3cf2b5(0x69)](_0x21a16a['status'],_0x2f5797[_0x3cf2b5(0xb4)])&&_0x21a16a[_0x3cf2b5(0x72)]&&_0x4efe8f['push']('-\x20**Verified:**\x20'+_0x2f5797[_0x3cf2b5(0x85)](formatDate,_0x21a16a[_0x3cf2b5(0x72)]));_0x2f5797[_0x3cf2b5(0x69)](_0x21a16a[_0x3cf2b5(0xaa)],_0x2f5797[_0x3cf2b5(0xa2)])&&_0x21a16a['blockedAt']&&(_0x4efe8f[_0x3cf2b5(0x6d)](_0x3cf2b5(0x98)+_0x2f5797['bpgfA'](formatDate,_0x21a16a['blockedAt'])),_0x21a16a['blockedReason']&&_0x4efe8f[_0x3cf2b5(0x6d)](_0x3cf2b5(0xa0)+_0x21a16a[_0x3cf2b5(0x7e)]));_0x2f5797[_0x3cf2b5(0x69)](_0x21a16a['status'],_0x2f5797['ywASa'])&&_0x21a16a[_0x3cf2b5(0x77)]&&(_0x4efe8f[_0x3cf2b5(0x6d)](_0x3cf2b5(0x9b)+_0x2f5797['sMdop'](formatDate,_0x21a16a['closedAt'])),_0x21a16a[_0x3cf2b5(0x73)]&&_0x4efe8f['push']('-\x20**Reason:**\x20'+_0x21a16a['canceledReason']));_0x21a16a['status']===_0x2f5797[_0x3cf2b5(0x68)]&&_0x4efe8f['push'](_0x3cf2b5(0x91));if(_0x21a16a[_0x3cf2b5(0xb6)]){_0x4efe8f[_0x3cf2b5(0x6d)](_0x3cf2b5(0x93)+_0x21a16a['browserSessionId']);const _0x5af10a=_0xf63fee[_0x3cf2b5(0xa9)](_0x17d74e=>_0x17d74e['id']===_0x21a16a[_0x3cf2b5(0xb6)]);_0x5af10a&&(_0x5af10a[_0x3cf2b5(0x75)]&&_0x4efe8f[_0x3cf2b5(0x6d)]('-\x20**Summary:**\x20'+_0x5af10a[_0x3cf2b5(0x75)]),_0x5af10a[_0x3cf2b5(0xb7)]&&_0x4efe8f['push']('-\x20**Trace:**\x20[View\x20in\x20Playwright]('+_0x2f5797['sesRO'](buildTraceViewerUrl,_0x5af10a[_0x3cf2b5(0xb7)])+')'));}_0x4efe8f[_0x3cf2b5(0x6d)]('');}const _0x277aab=_0x512709[_0x3cf2b5(0xa6)](_0x51a6a9=>_0x51a6a9['status']===_0x3cf2b5(0x9e));if(_0x277aab[_0x3cf2b5(0x6e)]>0x0){_0x4efe8f['push'](_0x3cf2b5(0x7f)),_0x4efe8f[_0x3cf2b5(0x6d)]('');for(const _0x2c6873 of _0x277aab){_0x4efe8f['push'](_0x3cf2b5(0xa5)+_0x2c6873[_0x3cf2b5(0xb2)]+_0x3cf2b5(0xa8)+(_0x2c6873[_0x3cf2b5(0x7e)]||_0x2f5797['YaLCu']));}_0x4efe8f[_0x3cf2b5(0x6d)]('');}else _0x4efe8f['push']('##\x20Blocking\x20Issues'),_0x4efe8f['push'](''),_0x4efe8f[_0x3cf2b5(0x6d)](_0x2f5797['aYlZC']),_0x4efe8f[_0x3cf2b5(0x6d)]('');if(_0xf63fee[_0x3cf2b5(0x6e)]>0x0){_0x4efe8f[_0x3cf2b5(0x6d)](_0x2f5797['WbVMG']),_0x4efe8f['push'](''),_0x4efe8f['push'](_0x2f5797[_0x3cf2b5(0x70)]),_0x4efe8f['push'](_0x3cf2b5(0xaf));for(const _0x36ab09 of _0xf63fee){const _0x4f65b1=_0x36ab09[_0x3cf2b5(0x9f)]?_0x512709['find'](_0x3b8c92=>_0x3b8c92['id']===_0x36ab09['checklistItemId']):null,_0x5c7ca0=_0x4f65b1?_0x2f5797['aJCYj'](_0x4f65b1['description'][_0x3cf2b5(0x96)](0x0,0x1e),_0x4f65b1['description'][_0x3cf2b5(0x6e)]>0x1e?_0x3cf2b5(0xab):''):_0x2f5797[_0x3cf2b5(0xae)],_0x7c79ae=_0x36ab09['status']===_0x2f5797[_0x3cf2b5(0xb0)]?'✅':_0x36ab09['status']==='failed'?'❌':'🔄';_0x4efe8f[_0x3cf2b5(0x6d)]('|\x20'+_0x36ab09['id']+_0x3cf2b5(0x86)+_0x5c7ca0+'\x20|\x20'+_0x7c79ae+'\x20'+_0x36ab09[_0x3cf2b5(0xaa)]+'\x20|\x20'+_0x2f5797[_0x3cf2b5(0x9a)](formatDuration,_0x36ab09['durationMs'])+'\x20|\x20'+_0x2f5797[_0x3cf2b5(0x85)](formatDate,_0x36ab09[_0x3cf2b5(0x94)])+'\x20|');}_0x4efe8f[_0x3cf2b5(0x6d)]('');}return _0x4efe8f['join']('\x0a');}
1
+ (function(_0x23f79d,_0x36b7d0){const _0x1fb9a3=_0x14a6,_0x44474d=_0x23f79d();while(!![]){try{const _0x9a664d=parseInt(_0x1fb9a3(0x1a8))/0x1+parseInt(_0x1fb9a3(0x190))/0x2+-parseInt(_0x1fb9a3(0x185))/0x3*(parseInt(_0x1fb9a3(0x1ca))/0x4)+-parseInt(_0x1fb9a3(0x19c))/0x5+parseInt(_0x1fb9a3(0x18d))/0x6*(parseInt(_0x1fb9a3(0x1b2))/0x7)+-parseInt(_0x1fb9a3(0x194))/0x8+parseInt(_0x1fb9a3(0x197))/0x9*(parseInt(_0x1fb9a3(0x199))/0xa);if(_0x9a664d===_0x36b7d0)break;else _0x44474d['push'](_0x44474d['shift']());}catch(_0x5186bf){_0x44474d['push'](_0x44474d['shift']());}}}(_0x5e07,0xeb09f));export function buildTraceViewerUrl(_0x5333f5){const _0x5d9aa8=encodeURIComponent(_0x5333f5);return'https://trace.playwright.dev/?trace='+_0x5d9aa8;}function getStatusEmoji(_0x174eab){const _0x17bf4f=_0x14a6,_0x3f256f={'GuKUN':'verified','bYhsE':'completed','cyDOo':_0x17bf4f(0x1b8)};switch(_0x174eab){case _0x3f256f[_0x17bf4f(0x1c5)]:case _0x3f256f[_0x17bf4f(0x184)]:return'✅';case'pending':case _0x17bf4f(0x1a7):return'🔄';case _0x3f256f[_0x17bf4f(0x1a1)]:return'🟠';case _0x17bf4f(0x1ad):return'🛑';case _0x17bf4f(0x18e):return'⛔';default:return'❓';}}function _0x5e07(){const _0x4befce=['###\x20','traceUrl','1860640hIuvTH','-\x20**Blocked:**\x20','KceCi','15459624uQdKSJ','ready','10jCCMAz','CEkGq','Wkliy','7949570RcVWNY','**Status:**\x20','status','-\x20**Trace:**\x20[View\x20in\x20Playwright](','**Repository:**\x20','cyDOo','|\x20Session\x20|\x20Scenario\x20|\x20Status\x20|\x20Duration\x20|\x20Date\x20|','blockedReason','floor','completedAt','qSOvz','in_progress','596854DDAXjF','browserSessionId','find','LTNbG','roWnA','blocked','**:\x20','yoJRF','verified','failed','469goMAun','-\x20**Closed:**\x20','|---------|----------|--------|----------|------|','No\x20Session','-\x20**Verified:**\x20','-\x20**Status:**\x20Incomplete\x20-\x20requires\x20further\x20work','incomplete','substring','short','-\x20**Reason:**\x20','gitBranch','createdAt','vYfoV','jEewj','en-US','canceledReason','**Branch:**\x20','Completed','iteration','GuKUN','BcRWf','checklistItemId','push','RWtvT','4zGfHkA','length','filter','ESkmZ','closedAt',':\x20Awaiting\x20Review',':\x20In\x20Progress','completed','rJglP','bYhsE','1507851rdVWBj','None','##\x20Description','currentSession','durationMs','numeric','Session\x20','GAnNx','8124QFPSSI','closed','##\x20Scenario\x20Progress\x20(','1765044hXSTAn','blockedAt'];_0x5e07=function(){return _0x4befce;};return _0x5e07();}function _0x14a6(_0x43d380,_0x43d739){_0x43d380=_0x43d380-0x181;const _0x5e0744=_0x5e07();let _0x14a66e=_0x5e0744[_0x43d380];return _0x14a66e;}function formatDuration(_0x2cf9cf){const _0x1ec6a9=_0x14a6,_0x2237f2={'KsWVY':function(_0x1f8365,_0x5e0630){return _0x1f8365===_0x5e0630;},'roWnA':function(_0x1e8272,_0x12ecda){return _0x1e8272<_0x12ecda;},'KceCi':function(_0x1ab886,_0x1575b1){return _0x1ab886/_0x1575b1;}};if(_0x2237f2['KsWVY'](_0x2cf9cf,null)||_0x2cf9cf===undefined)return'N/A';if(_0x2237f2[_0x1ec6a9(0x1ac)](_0x2cf9cf,0x3e8))return _0x2cf9cf+'ms';const _0x4ad9f3=Math[_0x1ec6a9(0x1a4)](_0x2cf9cf/0x3e8);if(_0x4ad9f3<0x3c)return _0x4ad9f3+'s';const _0x1ccd97=Math['floor'](_0x2237f2[_0x1ec6a9(0x196)](_0x4ad9f3,0x3c)),_0x7c0ac5=_0x4ad9f3%0x3c;return _0x1ccd97+'m\x20'+_0x7c0ac5+'s';}function formatDate(_0x4a1007){const _0x5d3fb4=_0x14a6,_0xaef22b={'lfwgx':'N/A','CEkGq':_0x5d3fb4(0x18a),'oewoX':_0x5d3fb4(0x1ba)};if(!_0x4a1007)return _0xaef22b['lfwgx'];return new Date(_0x4a1007)['toLocaleDateString'](_0x5d3fb4(0x1c0),{'year':_0xaef22b[_0x5d3fb4(0x19a)],'month':_0xaef22b['oewoX'],'day':'numeric'});}export function generateFeatureReport(_0x4c91dc){const _0x4f9683=_0x14a6,_0x43338c={'qeNbf':_0x4f9683(0x1c3),'BcRWf':'in_progress','eqFRc':_0x4f9683(0x182),'UZPYa':'Unknown','ZAgcI':function(_0x221679,_0x5dfd92){return _0x221679(_0x5dfd92);},'adafO':function(_0x12af5b,_0x59bed8){return _0x12af5b===_0x59bed8;},'Wkliy':function(_0x3db76d,_0x562ffb){return _0x3db76d===_0x562ffb;},'bEwlF':_0x4f9683(0x1b0),'ESkmZ':function(_0x13f457,_0x15557f){return _0x13f457(_0x15557f);},'JyYQs':'blocked','nDuSH':function(_0x33eee2,_0x30e0ef){return _0x33eee2(_0x30e0ef);},'vYfoV':function(_0x4fbc2c,_0x4bc4b6){return _0x4fbc2c===_0x4bc4b6;},'YvOgq':'closed','LTNbG':function(_0x65a196,_0xcfccac){return _0x65a196(_0xcfccac);},'yoJRF':function(_0x208725,_0x4fb486){return _0x208725>_0x4fb486;},'gepuq':'##\x20Blocking\x20Issues','RWtvT':'No\x20reason\x20provided','GAnNx':_0x4f9683(0x186),'jEewj':'##\x20All\x20Verification\x20Sessions','qSOvz':_0x4f9683(0x1b4),'ZBqOk':function(_0x59d7cd,_0x2ac50f){return _0x59d7cd+_0x2ac50f;},'sBQGm':function(_0x3840f1,_0xe40586){return _0x3840f1===_0xe40586;},'zVTPZ':_0x4f9683(0x1b1),'rJglP':function(_0x2057ff,_0xee5c51){return _0x2057ff(_0xee5c51);}},{feature:_0x59ec96,stats:_0x24b708,checklistItems:_0x12a2c2,sessions:_0x2caaae}=_0x4c91dc,_0x129f51=[];_0x129f51['push']('#\x20Feature\x20Review\x20Report:\x20'+_0x59ec96['name']),_0x129f51['push']('');let _0x356425,_0x30075f;if(_0x59ec96[_0x4f9683(0x1a5)])_0x356425=_0x43338c['qeNbf'],_0x30075f='✅';else{if(_0x59ec96['currentSession']){const _0x1652e1=_0x59ec96['currentSession']['status'];switch(_0x1652e1){case _0x4f9683(0x198):_0x356425=_0x4f9683(0x18b)+_0x59ec96['currentSession'][_0x4f9683(0x1c4)]+':\x20Ready',_0x30075f='▶️';break;case _0x43338c[_0x4f9683(0x1c6)]:_0x356425='Session\x20'+_0x59ec96[_0x4f9683(0x188)][_0x4f9683(0x1c4)]+_0x4f9683(0x181),_0x30075f='🔄';break;case _0x43338c['eqFRc']:_0x356425='Session\x20'+_0x59ec96[_0x4f9683(0x188)][_0x4f9683(0x1c4)]+_0x4f9683(0x1cf),_0x30075f='📊';break;default:_0x356425=_0x43338c['UZPYa'],_0x30075f='❓';}}else _0x356425=_0x4f9683(0x1b5),_0x30075f='⬜';}_0x129f51['push'](_0x4f9683(0x19d)+_0x30075f+'\x20'+_0x356425),_0x129f51['push']('**Created:**\x20'+formatDate(_0x59ec96[_0x4f9683(0x1bd)]));_0x59ec96[_0x4f9683(0x1a5)]&&_0x129f51[_0x4f9683(0x1c8)]('**Completed:**\x20'+formatDate(_0x59ec96['completedAt']));_0x59ec96['gitRepoUrl']&&_0x129f51[_0x4f9683(0x1c8)](_0x4f9683(0x1a0)+_0x59ec96['gitRepoUrl']);_0x59ec96[_0x4f9683(0x1bc)]&&_0x129f51[_0x4f9683(0x1c8)](_0x4f9683(0x1c2)+_0x59ec96[_0x4f9683(0x1bc)]);_0x129f51['push']('');_0x59ec96['description']&&(_0x129f51[_0x4f9683(0x1c8)](_0x4f9683(0x187)),_0x129f51['push'](''),_0x129f51[_0x4f9683(0x1c8)](_0x59ec96['description']),_0x129f51['push'](''));const _0x124084=_0x12a2c2['filter'](_0x795272=>_0x795272[_0x4f9683(0x19e)]!=='closed'),_0x523c5e=_0x12a2c2['filter'](_0xdc52a2=>_0xdc52a2[_0x4f9683(0x19e)]===_0x4f9683(0x1b0))[_0x4f9683(0x1cb)];_0x129f51[_0x4f9683(0x1c8)](_0x4f9683(0x18f)+_0x523c5e+'/'+_0x124084[_0x4f9683(0x1cb)]+'\x20verified)'),_0x129f51['push']('');for(const _0x66be70 of _0x12a2c2){const _0x4db378=_0x43338c['ZAgcI'](getStatusEmoji,_0x66be70['status']),_0x1fdaaa=_0x43338c['adafO'](_0x66be70['status'],_0x4f9683(0x18e)),_0x46a814=_0x1fdaaa?'~~':'',_0xef4291=_0x1fdaaa?'~~':'';_0x129f51['push'](_0x4f9683(0x192)+_0x4db378+'\x20'+_0x46a814+_0x66be70['description']+_0xef4291),_0x129f51['push']('');_0x43338c[_0x4f9683(0x19b)](_0x66be70['status'],_0x43338c['bEwlF'])&&_0x66be70['verifiedAt']&&_0x129f51[_0x4f9683(0x1c8)](_0x4f9683(0x1b6)+_0x43338c['ESkmZ'](formatDate,_0x66be70['verifiedAt']));_0x66be70[_0x4f9683(0x19e)]===_0x43338c['JyYQs']&&_0x66be70[_0x4f9683(0x191)]&&(_0x129f51[_0x4f9683(0x1c8)](_0x4f9683(0x195)+_0x43338c['nDuSH'](formatDate,_0x66be70[_0x4f9683(0x191)])),_0x66be70[_0x4f9683(0x1a3)]&&_0x129f51['push'](_0x4f9683(0x1bb)+_0x66be70['blockedReason']));_0x43338c[_0x4f9683(0x1be)](_0x66be70['status'],_0x43338c['YvOgq'])&&_0x66be70[_0x4f9683(0x1ce)]&&(_0x129f51['push'](_0x4f9683(0x1b3)+_0x43338c[_0x4f9683(0x1ab)](formatDate,_0x66be70[_0x4f9683(0x1ce)])),_0x66be70['canceledReason']&&_0x129f51[_0x4f9683(0x1c8)]('-\x20**Reason:**\x20'+_0x66be70[_0x4f9683(0x1c1)]));_0x66be70['status']===_0x4f9683(0x1b8)&&_0x129f51[_0x4f9683(0x1c8)](_0x4f9683(0x1b7));if(_0x66be70[_0x4f9683(0x1a9)]){_0x129f51['push']('-\x20**Session:**\x20'+_0x66be70['browserSessionId']);const _0x2749b1=_0x2caaae['find'](_0x1dc88c=>_0x1dc88c['id']===_0x66be70['browserSessionId']);_0x2749b1&&(_0x2749b1['agentResponse']&&_0x129f51['push']('-\x20**Summary:**\x20'+_0x2749b1['agentResponse']),_0x2749b1['traceUrl']&&_0x129f51[_0x4f9683(0x1c8)](_0x4f9683(0x19f)+buildTraceViewerUrl(_0x2749b1[_0x4f9683(0x193)])+')'));}_0x129f51[_0x4f9683(0x1c8)]('');}const _0x1d159d=_0x12a2c2[_0x4f9683(0x1cc)](_0x524ead=>_0x524ead[_0x4f9683(0x19e)]==='blocked');if(_0x43338c['yoJRF'](_0x1d159d[_0x4f9683(0x1cb)],0x0)){_0x129f51['push'](_0x43338c['gepuq']),_0x129f51[_0x4f9683(0x1c8)]('');for(const _0x3a502b of _0x1d159d){_0x129f51['push']('-\x20**'+_0x3a502b['description']+_0x4f9683(0x1ae)+(_0x3a502b[_0x4f9683(0x1a3)]||_0x43338c[_0x4f9683(0x1c9)]));}_0x129f51['push']('');}else _0x129f51['push'](_0x43338c['gepuq']),_0x129f51[_0x4f9683(0x1c8)](''),_0x129f51['push'](_0x43338c[_0x4f9683(0x18c)]),_0x129f51['push']('');if(_0x2caaae['length']>0x0){_0x129f51[_0x4f9683(0x1c8)](_0x43338c[_0x4f9683(0x1bf)]),_0x129f51[_0x4f9683(0x1c8)](''),_0x129f51[_0x4f9683(0x1c8)](_0x4f9683(0x1a2)),_0x129f51['push'](_0x43338c[_0x4f9683(0x1a6)]);for(const _0x3ec129 of _0x2caaae){const _0x413101=_0x3ec129[_0x4f9683(0x1c7)]?_0x12a2c2[_0x4f9683(0x1aa)](_0x31b5db=>_0x31b5db['id']===_0x3ec129[_0x4f9683(0x1c7)]):null,_0x31f63b=_0x413101?_0x43338c['ZBqOk'](_0x413101['description'][_0x4f9683(0x1b9)](0x0,0x1e),_0x43338c[_0x4f9683(0x1af)](_0x413101['description']['length'],0x1e)?'...':''):'N/A',_0x3d859e=_0x43338c['sBQGm'](_0x3ec129[_0x4f9683(0x19e)],_0x43338c['eqFRc'])?'✅':_0x3ec129[_0x4f9683(0x19e)]===_0x43338c['zVTPZ']?'❌':'🔄';_0x129f51['push']('|\x20'+_0x3ec129['id']+'\x20|\x20'+_0x31f63b+'\x20|\x20'+_0x3d859e+'\x20'+_0x3ec129[_0x4f9683(0x19e)]+'\x20|\x20'+_0x43338c[_0x4f9683(0x1cd)](formatDuration,_0x3ec129[_0x4f9683(0x189)])+'\x20|\x20'+_0x43338c[_0x4f9683(0x183)](formatDate,_0x3ec129[_0x4f9683(0x1bd)])+'\x20|');}_0x129f51['push']('');}return _0x129f51['join']('\x0a');}
@@ -1 +1 @@
1
- const _0x5ad7fb=_0x2022;(function(_0x1b77aa,_0x1012b5){const _0x284aeb=_0x2022,_0x58b3bd=_0x1b77aa();while(!![]){try{const _0x4d8e42=parseInt(_0x284aeb(0x20a))/0x1+-parseInt(_0x284aeb(0x212))/0x2*(parseInt(_0x284aeb(0x1ff))/0x3)+parseInt(_0x284aeb(0x226))/0x4*(-parseInt(_0x284aeb(0x218))/0x5)+parseInt(_0x284aeb(0x1f5))/0x6*(-parseInt(_0x284aeb(0x22c))/0x7)+parseInt(_0x284aeb(0x21b))/0x8+-parseInt(_0x284aeb(0x20f))/0x9+parseInt(_0x284aeb(0x20c))/0xa;if(_0x4d8e42===_0x1012b5)break;else _0x58b3bd['push'](_0x58b3bd['shift']());}catch(_0x1f5bd0){_0x58b3bd['push'](_0x58b3bd['shift']());}}}(_0x4eca,0x32a66));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_DURATION=0x4489,ID_VOID=0xec,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x243b98,_0x4f31c1){const _0x43790f=_0x2022,_0x5f0d99={'EkppS':function(_0x2a2b77,_0x248d42){return _0x2a2b77>=_0x248d42;},'BvTAk':function(_0x1e84d4,_0x5cad75){return _0x1e84d4>_0x5cad75;},'JUnKu':function(_0x34f5c0,_0x3339b0){return _0x34f5c0&_0x3339b0;},'UbZoS':function(_0x464901,_0x3f0da8){return _0x464901+_0x3f0da8;}};if(_0x5f0d99['EkppS'](_0x4f31c1,_0x243b98['length']))return[0x0,0x0];const _0x108c88=_0x243b98[_0x4f31c1];let _0x2cdb1d=0x1,_0x4842b2=0x80;while(_0x2cdb1d<=0x8&&!(_0x108c88&_0x4842b2)){_0x2cdb1d++,_0x4842b2>>=0x1;}if(_0x5f0d99['BvTAk'](_0x4f31c1+_0x2cdb1d,_0x243b98[_0x43790f(0x1f2)]))return[0x0,0x0];let _0x14fa9e=_0x5f0d99['JUnKu'](_0x108c88,_0x4842b2-0x1);for(let _0x3e4341=0x1;_0x3e4341<_0x2cdb1d;_0x3e4341++){_0x14fa9e=_0x5f0d99[_0x43790f(0x1fc)](_0x14fa9e*0x100,_0x243b98[_0x4f31c1+_0x3e4341]);}return[_0x14fa9e,_0x2cdb1d];}function readId(_0x468868,_0x6bba38){const _0x51b1b5=_0x2022,_0x11bc48={'THsIt':function(_0x12eff1,_0x27f779){return _0x12eff1>=_0x27f779;},'KTOGv':function(_0x30137b,_0x572ba3){return _0x30137b<_0x572ba3;},'llZFZ':function(_0x51f78c,_0x36bf2f){return _0x51f78c+_0x36bf2f;},'Uqbio':function(_0x7c511c,_0x310326){return _0x7c511c+_0x310326;}};if(_0x11bc48[_0x51b1b5(0x217)](_0x6bba38,_0x468868['length']))return[0x0,0x0];const _0x397328=_0x468868[_0x6bba38];let _0x831ac;if(_0x397328>=0x80)_0x831ac=0x1;else{if(_0x397328>=0x40)_0x831ac=0x2;else{if(_0x11bc48['THsIt'](_0x397328,0x20))_0x831ac=0x3;else{if(_0x397328>=0x10)_0x831ac=0x4;else return[_0x397328,0x1];}}}if(_0x6bba38+_0x831ac>_0x468868[_0x51b1b5(0x1f2)])return[0x0,0x0];let _0x160751=0x0;for(let _0x92cdf8=0x0;_0x11bc48[_0x51b1b5(0x21d)](_0x92cdf8,_0x831ac);_0x92cdf8++){_0x160751=_0x11bc48['llZFZ'](_0x160751*0x100,_0x468868[_0x11bc48[_0x51b1b5(0x216)](_0x6bba38,_0x92cdf8)]);}return[_0x160751,_0x831ac];}function readUint(_0x7bd509,_0x12b984,_0x1d4139){const _0xd5bad7=_0x2022,_0x1951c1={'ZRYpm':function(_0x3cbf02,_0x57bb73){return _0x3cbf02<_0x57bb73;},'FfJEG':function(_0x428709,_0x24b7f6){return _0x428709+_0x24b7f6;}};let _0x20cfde=0x0;for(let _0x32b609=0x0;_0x1951c1[_0xd5bad7(0x227)](_0x32b609,_0x1d4139);_0x32b609++){_0x20cfde=_0x1951c1[_0xd5bad7(0x1f6)](_0x20cfde*0x100,_0x7bd509[_0x12b984+_0x32b609]);}return _0x20cfde;}function isUnknownSize(_0xad3c44,_0x2d97ce){const _0x1ccf37={'VYpTU':function(_0x2fb934,_0x4970a1){return _0x2fb934*_0x4970a1;}};return _0xad3c44===Math['pow'](0x2,_0x1ccf37['VYpTU'](0x7,_0x2d97ce))-0x1;}function writeId(_0x21a62c){const _0x42c667=_0x2022,_0x5a7a5b={'oOGnd':function(_0x3a60e3,_0x31a72a){return _0x3a60e3<=_0x31a72a;},'JzuUR':function(_0x5984df,_0x3f501d){return _0x5984df&_0x3f501d;},'rhPqO':function(_0x2ac64e,_0x378103){return _0x2ac64e>>_0x378103;},'SBcsq':function(_0x3936ec,_0x1f4283){return _0x3936ec&_0x1f4283;},'xhEMH':function(_0x1fa53f,_0xbe1a89){return _0x1fa53f>>_0xbe1a89;},'NgqlM':function(_0x29299e,_0x372abe){return _0x29299e&_0x372abe;},'Yhtww':function(_0x32e750,_0x5ed63a){return _0x32e750>>_0x5ed63a;}};if(_0x5a7a5b['oOGnd'](_0x21a62c,0xff))return Buffer[_0x42c667(0x203)]([_0x21a62c]);if(_0x21a62c<=0xffff)return Buffer['from']([_0x5a7a5b[_0x42c667(0x22a)](_0x5a7a5b[_0x42c667(0x220)](_0x21a62c,0x8),0xff),_0x5a7a5b['JzuUR'](_0x21a62c,0xff)]);if(_0x21a62c<=0xffffff)return Buffer[_0x42c667(0x203)]([_0x5a7a5b['SBcsq'](_0x21a62c>>0x10,0xff),_0x21a62c>>0x8&0xff,_0x21a62c&0xff]);return Buffer[_0x42c667(0x203)]([_0x5a7a5b[_0x42c667(0x22a)](_0x5a7a5b['xhEMH'](_0x21a62c,0x18),0xff),_0x5a7a5b['NgqlM'](_0x21a62c>>0x10,0xff),_0x5a7a5b['NgqlM'](_0x5a7a5b[_0x42c667(0x222)](_0x21a62c,0x8),0xff),_0x21a62c&0xff]);}function _0x2022(_0x4ca9e9,_0x3ec690){_0x4ca9e9=_0x4ca9e9-0x1f2;const _0x4eca41=_0x4eca();let _0x202278=_0x4eca41[_0x4ca9e9];return _0x202278;}function writeVint(_0x2190a0,_0x2cb9ce){const _0x334a74=_0x2022,_0x179e5f={'RxnGs':function(_0x3f75b1,_0x646c4d){return _0x3f75b1||_0x646c4d;},'SJZrP':function(_0x2a6461,_0x500304){return _0x2a6461<_0x500304;},'oNTJe':function(_0x11dbb5,_0x4c8589){return _0x11dbb5-_0x4c8589;},'STOUi':function(_0x34f5af,_0x489af5){return _0x34f5af-_0x489af5;},'xgxny':function(_0x76f067,_0x132a89){return _0x76f067&_0x132a89;},'FQjhl':function(_0xa7165b,_0x37397b){return _0xa7165b<<_0x37397b;},'gEvzT':function(_0x1ecdad,_0x47e5b8){return _0x1ecdad-_0x47e5b8;}};let _0x289249=_0x179e5f['RxnGs'](_0x2cb9ce,0x1);while(_0x179e5f['SJZrP'](_0x179e5f['oNTJe'](Math[_0x334a74(0x1f4)](0x2,0x7*_0x289249),0x2),_0x2190a0))_0x289249++;const _0xd36d53=Buffer[_0x334a74(0x211)](_0x289249);for(let _0x990d44=_0x179e5f['STOUi'](_0x289249,0x1);_0x990d44>=0x0;_0x990d44--){_0xd36d53[_0x990d44]=_0x179e5f['xgxny'](_0x2190a0,0xff),_0x2190a0=Math['floor'](_0x2190a0/0x100);}return _0xd36d53[0x0]|=_0x179e5f[_0x334a74(0x201)](0x1,_0x179e5f[_0x334a74(0x230)](0x8,_0x289249)),_0xd36d53;}function writeFloat64(_0x39daad){const _0x287118=Buffer['alloc'](0x8);return _0x287118['writeDoubleBE'](_0x39daad,0x0),_0x287118;}function writeVoid(_0x528f35){const _0x344f53=_0x2022,_0x5bea4c={'ZjeZW':function(_0x59670c,_0x4a55ef){return _0x59670c-_0x4a55ef;},'ZhyqD':function(_0x5c0c10,_0x1345be,_0x16b258){return _0x5c0c10(_0x1345be,_0x16b258);}};for(let _0x10cbc7=0x1;_0x10cbc7<=0x8;_0x10cbc7++){const _0x1e4c8c=_0x5bea4c[_0x344f53(0x1fb)](_0x528f35,0x1)-_0x10cbc7;if(_0x1e4c8c>=0x0&&_0x1e4c8c<=Math[_0x344f53(0x1f4)](0x2,0x7*_0x10cbc7)-0x2)return Buffer[_0x344f53(0x224)]([Buffer[_0x344f53(0x203)]([ID_VOID]),_0x5bea4c[_0x344f53(0x221)](writeVint,_0x1e4c8c,_0x10cbc7),Buffer['alloc'](_0x1e4c8c)]);}return Buffer['alloc'](0x0);}function findElement(_0x33dd15,_0x5730a4,_0x44f844,_0x1ca95d){const _0x1aaf13=_0x2022,_0x327db5={'cJgYJ':function(_0x1566d1,_0x473eac){return _0x1566d1<_0x473eac;},'pITXR':function(_0x179f8b,_0x447951){return _0x179f8b===_0x447951;},'CBoMB':function(_0x27f242,_0x4f1da5){return _0x27f242+_0x4f1da5;},'Esjzn':function(_0x10ce8a,_0x1d0283,_0x39ccab){return _0x10ce8a(_0x1d0283,_0x39ccab);},'woJHO':function(_0x48710e,_0x35c876){return _0x48710e+_0x35c876;}};let _0x4cb30d=_0x5730a4;while(_0x327db5[_0x1aaf13(0x1f3)](_0x4cb30d,_0x44f844)){const [_0x16f817,_0x1c0fdd]=readId(_0x33dd15,_0x4cb30d),[_0x25cf72,_0x4f3a2f]=readVint(_0x33dd15,_0x4cb30d+_0x1c0fdd);if(_0x327db5['pITXR'](_0x16f817,_0x1ca95d))return{'offset':_0x4cb30d,'idLen':_0x1c0fdd,'sizeLen':_0x4f3a2f,'dataSize':_0x25cf72,'dataOffset':_0x327db5[_0x1aaf13(0x1f8)](_0x4cb30d+_0x1c0fdd,_0x4f3a2f)};if(_0x327db5[_0x1aaf13(0x206)](isUnknownSize,_0x25cf72,_0x4f3a2f))break;_0x4cb30d+=_0x327db5['CBoMB'](_0x327db5[_0x1aaf13(0x1fe)](_0x1c0fdd,_0x4f3a2f),_0x25cf72);}return null;}function computeDurationMs(_0x53f243,_0x36e66f){const _0x20f389=_0x2022,_0x1811ed={'sInUB':function(_0x2df3df,_0x5a85e5){return _0x2df3df===_0x5a85e5;},'dvPLB':function(_0x5445fa,_0x533416){return _0x5445fa<_0x533416;},'GvzXX':function(_0x517d94,_0x11c156){return _0x517d94!==_0x11c156;},'hDFSZ':function(_0x289144,_0x565515,_0x1c61b6){return _0x289144(_0x565515,_0x1c61b6);},'MoXrF':function(_0x3aba85,_0x215a37){return _0x3aba85<_0x215a37;},'NJBSg':function(_0x27e08e,_0x148bed){return _0x27e08e+_0x148bed;},'elbpR':function(_0x102b65,_0x299e1f,_0x525050){return _0x102b65(_0x299e1f,_0x525050);},'Ymjyt':function(_0x3e3448,_0x302b8c){return _0x3e3448+_0x302b8c;},'isTGG':function(_0x3894ed,_0x432de8,_0x42d981,_0x1888d3){return _0x3894ed(_0x432de8,_0x42d981,_0x1888d3);},'VwqMj':function(_0x5e7466,_0x2e14c8,_0x15463f){return _0x5e7466(_0x2e14c8,_0x15463f);}};let _0x1c3dac=0x0;const _0x525235=Buffer[_0x20f389(0x203)]([0x1f,0x43,0xb6,0x75]);let _0x199c2c=_0x53f243[_0x20f389(0x1fa)](_0x525235);if(_0x1811ed[_0x20f389(0x209)](_0x199c2c,-0x1))return 0x0;while(_0x1811ed[_0x20f389(0x1f9)](_0x199c2c,_0x53f243['length'])){const [_0x250174,_0x7916f6]=readId(_0x53f243,_0x199c2c);if(_0x1811ed[_0x20f389(0x1fd)](_0x250174,ID_CLUSTER))break;const [_0x5d3494,_0x4a1f9a]=readVint(_0x53f243,_0x199c2c+_0x7916f6),_0xfa2d15=_0x199c2c+_0x7916f6+_0x4a1f9a,_0x4cdf09=_0x1811ed[_0x20f389(0x21f)](isUnknownSize,_0x5d3494,_0x4a1f9a);let _0x81c664;if(_0x4cdf09){let _0x378f50=_0xfa2d15;while(_0x1811ed[_0x20f389(0x21c)](_0x378f50,_0x53f243[_0x20f389(0x1f2)]-0x4)){const [_0x2b868c,_0x47c306]=readId(_0x53f243,_0x378f50);if(_0x2b868c===ID_CLUSTER){_0x81c664=_0x378f50;break;}const [_0x159ec6,_0x517ade]=readVint(_0x53f243,_0x1811ed[_0x20f389(0x207)](_0x378f50,_0x47c306));if(_0x1811ed[_0x20f389(0x20d)](isUnknownSize,_0x159ec6,_0x517ade)){_0x81c664=_0x53f243[_0x20f389(0x1f2)];break;}_0x378f50+=_0x1811ed['NJBSg'](_0x47c306+_0x517ade,_0x159ec6);}_0x81c664??=_0x53f243['length'];}else _0x81c664=_0x1811ed['Ymjyt'](_0xfa2d15,_0x5d3494);let _0x3dbe8b=0x0,_0x562b24=_0xfa2d15;while(_0x1811ed[_0x20f389(0x1f9)](_0x562b24,_0x81c664)){const [_0x213748,_0x2437de]=_0x1811ed[_0x20f389(0x21f)](readId,_0x53f243,_0x562b24),[_0x37fcfb,_0x9e27bd]=readVint(_0x53f243,_0x562b24+_0x2437de);if(_0x213748===ID_TIMESTAMP)_0x3dbe8b=_0x1811ed[_0x20f389(0x223)](readUint,_0x53f243,_0x562b24+_0x2437de+_0x9e27bd,_0x37fcfb);else{if(_0x213748===ID_SIMPLE_BLOCK&&_0x37fcfb>=0x4){const _0x5859d2=_0x1811ed['NJBSg'](_0x1811ed[_0x20f389(0x207)](_0x562b24,_0x2437de),_0x9e27bd),[,_0x391e70]=readVint(_0x53f243,_0x5859d2),_0x15ef57=_0x53f243['readInt16BE'](_0x5859d2+_0x391e70),_0x48e277=(_0x3dbe8b+_0x15ef57)*_0x36e66f/0xf4240;_0x48e277>_0x1c3dac&&(_0x1c3dac=_0x48e277);}else{if(_0x213748===ID_CLUSTER)break;}}if(_0x1811ed['VwqMj'](isUnknownSize,_0x37fcfb,_0x9e27bd))break;_0x562b24+=_0x2437de+_0x9e27bd+_0x37fcfb;}_0x199c2c=_0x81c664;}return _0x1c3dac;}export function fixWebmDuration(_0x3e5a0e,_0x520786){const _0xfeedb3=_0x2022,_0x34c4e3={'FFAtz':function(_0x5989de,_0x43e9ea){return _0x5989de+_0x43e9ea;},'gFcoV':_0xfeedb3(0x21a),'drFdk':function(_0x1afb6b,_0xe58627){return _0x1afb6b+_0xe58627;},'XNHCQ':function(_0xc481eb,_0x2a7f74){return _0xc481eb+_0x2a7f74;},'Gobps':function(_0x312e2e,_0x4bbacc){return _0x312e2e+_0x4bbacc;},'CugNI':function(_0x39b66d,_0x449ce7){return _0x39b66d+_0x449ce7;},'Wldmr':function(_0x1351dd,_0x5df584){return _0x1351dd===_0x5df584;},'rwGlV':'Could\x20not\x20find\x20Info\x20element','HnHzf':function(_0x3f99fe,_0x35fc43,_0x49b1db,_0x2d2c72,_0x502a03){return _0x3f99fe(_0x35fc43,_0x49b1db,_0x2d2c72,_0x502a03);},'ajzVU':function(_0x350c67,_0x42a0c0){return _0x350c67+_0x42a0c0;},'TGdQp':function(_0x202348,_0xc2e4c0,_0x98be2b){return _0x202348(_0xc2e4c0,_0x98be2b);},'YWdrt':_0xfeedb3(0x214),'EUFCy':function(_0xc3cf4b,_0x2d2531){return _0xc3cf4b(_0x2d2531);},'ZvnMH':function(_0x50444d,_0x3da117){return _0x50444d<_0x3da117;},'ocxfz':function(_0x20b2e0,_0x5d9bb4){return _0x20b2e0-_0x5d9bb4;},'TRttF':function(_0x54ead6,_0x4d2389,_0x55df3f,_0x3c934b,_0x322e07,_0x193bbe,_0x800528){return _0x54ead6(_0x4d2389,_0x55df3f,_0x3c934b,_0x322e07,_0x193bbe,_0x800528);}},_0x5b82e1=readFileSync(_0x3e5a0e);let _0x114013=0x0;const [_0x162218,_0x3a1153]=readId(_0x5b82e1,_0x114013),[_0x211bf8,_0x14ff45]=readVint(_0x5b82e1,_0x34c4e3[_0xfeedb3(0x229)](_0x114013,_0x3a1153));_0x114013+=_0x34c4e3['FFAtz'](_0x3a1153,_0x14ff45)+_0x211bf8;const [_0x552488,_0x48234e]=readId(_0x5b82e1,_0x114013);if(_0x552488!==ID_SEGMENT)return console['error'](_0x34c4e3[_0xfeedb3(0x228)]),![];const [,_0x2afd18]=readVint(_0x5b82e1,_0x114013+_0x48234e),_0x458514=_0x34c4e3['drFdk'](_0x114013+_0x48234e,_0x2afd18);let _0x2ad0f0=_0x458514;const _0x397911=Math[_0xfeedb3(0x20e)](_0x5b82e1[_0xfeedb3(0x1f2)],_0x34c4e3[_0xfeedb3(0x20b)](_0x458514,0x2710));let _0x12d253=null,_0x373c23=null;while(_0x2ad0f0<_0x397911){const [_0x4a9d8b,_0x38f6f7]=readId(_0x5b82e1,_0x2ad0f0),[_0x6c606,_0x38ed31]=readVint(_0x5b82e1,_0x2ad0f0+_0x38f6f7);_0x4a9d8b===ID_VOID&&!_0x12d253&&(_0x12d253={'offset':_0x2ad0f0,'idLen':_0x38f6f7,'sizeLen':_0x38ed31,'dataSize':_0x6c606,'dataOffset':_0x34c4e3['Gobps'](_0x2ad0f0,_0x38f6f7)+_0x38ed31});if(_0x4a9d8b===ID_INFO){_0x373c23={'offset':_0x2ad0f0,'idLen':_0x38f6f7,'sizeLen':_0x38ed31,'dataSize':_0x6c606,'dataOffset':_0x34c4e3['CugNI'](_0x2ad0f0,_0x38f6f7)+_0x38ed31};break;}if(_0x34c4e3['Wldmr'](_0x4a9d8b,ID_CLUSTER))break;if(isUnknownSize(_0x6c606,_0x38ed31))break;_0x2ad0f0+=_0x34c4e3[_0xfeedb3(0x20b)](_0x34c4e3['XNHCQ'](_0x38f6f7,_0x38ed31),_0x6c606);}if(!_0x373c23)return console[_0xfeedb3(0x22f)](_0x34c4e3[_0xfeedb3(0x22e)]),![];const _0x46bb1e=findElement(_0x5b82e1,_0x373c23['dataOffset'],_0x34c4e3[_0xfeedb3(0x20b)](_0x373c23['dataOffset'],_0x373c23[_0xfeedb3(0x202)]),ID_DURATION);if(_0x46bb1e)return![];const _0x36779a=_0x34c4e3['HnHzf'](findElement,_0x5b82e1,_0x373c23['dataOffset'],_0x34c4e3[_0xfeedb3(0x205)](_0x373c23['dataOffset'],_0x373c23[_0xfeedb3(0x202)]),ID_TIMESTAMP_SCALE);let _0x5b5515=0xf4240;_0x36779a&&(_0x5b5515=readUint(_0x5b82e1,_0x36779a[_0xfeedb3(0x21e)],_0x36779a['dataSize']));const _0x400a42=_0x34c4e3[_0xfeedb3(0x219)](computeDurationMs,_0x5b82e1,_0x5b5515);if(_0x400a42<=0x0)return console[_0xfeedb3(0x22f)](_0x34c4e3['YWdrt']),![];const _0x347b7c=_0x400a42*0xf4240/_0x5b5515,_0x11d7a7=Buffer['concat']([writeId(ID_DURATION),_0x34c4e3['EUFCy'](writeVint,0x8),_0x34c4e3[_0xfeedb3(0x225)](writeFloat64,_0x347b7c)]),_0x4e4610=_0x11d7a7['length'];if(!_0x12d253||_0x34c4e3['ZvnMH'](_0x12d253['offset'],_0x373c23[_0xfeedb3(0x210)])){if(_0x12d253){const _0x21ac83=_0x34c4e3['Gobps'](_0x12d253['idLen'],_0x12d253['sizeLen'])+_0x12d253['dataSize'],_0x50b425=_0x34c4e3['ocxfz'](_0x21ac83,_0x4e4610);if(_0x34c4e3['ZvnMH'](_0x50b425,0x2))return _0x34c4e3['TRttF'](rewriteFile,_0x5b82e1,_0x373c23,_0x11d7a7,_0x5b5515,_0x400a42,_0x520786);const _0x870c45=_0x373c23['dataSize']+_0x4e4610,_0xa03c14=Buffer['concat']([_0x34c4e3['EUFCy'](writeId,ID_INFO),writeVint(_0x870c45,_0x373c23['sizeLen'])]),_0x3a6169=_0x5b82e1['slice'](_0x373c23[_0xfeedb3(0x21e)],_0x373c23['dataOffset']+_0x373c23[_0xfeedb3(0x202)]),_0x4ac54d=_0x34c4e3[_0xfeedb3(0x225)](writeVoid,_0x50b425),_0x45e292=_0x5b82e1[_0xfeedb3(0x1f7)](0x0,_0x12d253[_0xfeedb3(0x210)]),_0xa2167a=_0x5b82e1['slice'](_0x373c23['dataOffset']+_0x373c23[_0xfeedb3(0x202)]);return _0x34c4e3[_0xfeedb3(0x219)](writeFileSync,_0x520786,Buffer['concat']([_0x45e292,_0x4ac54d,_0xa03c14,_0x3a6169,_0x11d7a7,_0xa2167a])),!![];}}return _0x34c4e3['TRttF'](rewriteFile,_0x5b82e1,_0x373c23,_0x11d7a7,_0x5b5515,_0x400a42,_0x520786);}function rewriteFile(_0x31efc3,_0x30fd7a,_0xf9de75,_0x46be4b,_0x14c3ce,_0x593b11){const _0x2cdbb=_0x2022,_0x337d32={'bAQCv':function(_0x553c33,_0xdd7e1f){return _0x553c33+_0xdd7e1f;}},_0x23b1f7=_0x337d32['bAQCv'](_0x30fd7a[_0x2cdbb(0x202)],_0xf9de75['length']),_0x77f026=Buffer['concat']([writeId(ID_INFO),writeVint(_0x23b1f7)]),_0x40c8af=_0x337d32[_0x2cdbb(0x215)](_0x30fd7a['idLen'],_0x30fd7a['sizeLen']),_0x36d21e=_0x31efc3['slice'](0x0,_0x30fd7a[_0x2cdbb(0x210)]),_0x50c3b0=_0x31efc3['slice'](_0x30fd7a['dataOffset'],_0x337d32['bAQCv'](_0x30fd7a[_0x2cdbb(0x21e)],_0x30fd7a[_0x2cdbb(0x202)])),_0x272fd3=_0x31efc3[_0x2cdbb(0x1f7)](_0x30fd7a['offset']+_0x40c8af+_0x30fd7a['dataSize']);return writeFileSync(_0x593b11,Buffer['concat']([_0x36d21e,_0x77f026,_0x50c3b0,_0xf9de75,_0x272fd3])),!![];}function _0x4eca(){const _0x51b21b=['1462964fFyLsq','ZRYpm','gFcoV','FFAtz','JzuUR','argv','371gKblSJ','Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>','rwGlV','error','gEvzT','length','cJgYJ','pow','31176THRmaI','FfJEG','slice','CBoMB','dvPLB','indexOf','ZjeZW','UbZoS','GvzXX','woJHO','48333roEozs','fixWebmDuration.js','FQjhl','dataSize','from','Fixed:\x20','ajzVU','Esjzn','NJBSg','fixWebmDuration.ts','sInUB','310087oWUnlT','XNHCQ','6839560RQnKcc','elbpR','min','1485234gMxOhg','offset','alloc','24VfZOhb','exit','Could\x20not\x20compute\x20duration','bAQCv','Uqbio','THsIt','5FNAGHw','TGdQp','Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','1703248NLnlvG','MoXrF','KTOGv','dataOffset','hDFSZ','rhPqO','ZhyqD','Yhtww','isTGG','concat','EUFCy'];_0x4eca=function(){return _0x51b21b;};return _0x4eca();}if(process[_0x5ad7fb(0x22b)][0x1]?.['endsWith'](_0x5ad7fb(0x208))||process['argv'][0x1]?.['endsWith'](_0x5ad7fb(0x200))){const input=process[_0x5ad7fb(0x22b)][0x2],output=process[_0x5ad7fb(0x22b)][0x3];(!input||!output)&&(console[_0x5ad7fb(0x22f)](_0x5ad7fb(0x22d)),process[_0x5ad7fb(0x213)](0x1));const fixed=fixWebmDuration(input,output);fixed?console['log'](_0x5ad7fb(0x204)+output):console['log']('File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.');}
1
+ const _0xf79410=_0x23e1;function _0x23e1(_0x46a31d,_0x1c4ff4){_0x46a31d=_0x46a31d-0x1da;const _0x170eab=_0x170e();let _0x23e168=_0x170eab[_0x46a31d];return _0x23e168;}(function(_0x498190,_0x45dd7d){const _0x5631c3=_0x23e1,_0x2f60ba=_0x498190();while(!![]){try{const _0x316a27=parseInt(_0x5631c3(0x212))/0x1+parseInt(_0x5631c3(0x1dd))/0x2*(parseInt(_0x5631c3(0x1e1))/0x3)+-parseInt(_0x5631c3(0x1f0))/0x4+-parseInt(_0x5631c3(0x204))/0x5*(-parseInt(_0x5631c3(0x208))/0x6)+parseInt(_0x5631c3(0x210))/0x7+-parseInt(_0x5631c3(0x202))/0x8+-parseInt(_0x5631c3(0x21a))/0x9*(parseInt(_0x5631c3(0x1f9))/0xa);if(_0x316a27===_0x45dd7d)break;else _0x2f60ba['push'](_0x2f60ba['shift']());}catch(_0x31cea5){_0x2f60ba['push'](_0x2f60ba['shift']());}}}(_0x170e,0xe4e0b));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_DURATION=0x4489,ID_VOID=0xec,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x1d5b87,_0x1231aa){const _0x151503=_0x23e1,_0x1cc64e={'JpEbG':function(_0x12cfa3,_0x2be114){return _0x12cfa3-_0x2be114;},'BhybF':function(_0x8ed945,_0x307b43){return _0x8ed945<_0x307b43;},'hxPYq':function(_0x3e43b8,_0x3cb67e){return _0x3e43b8*_0x3cb67e;},'KHfXD':function(_0x230696,_0x3499fb){return _0x230696+_0x3499fb;}};if(_0x1231aa>=_0x1d5b87['length'])return[0x0,0x0];const _0x33aeb3=_0x1d5b87[_0x1231aa];let _0x2ad674=0x1,_0x5a22cc=0x80;while(_0x2ad674<=0x8&&!(_0x33aeb3&_0x5a22cc)){_0x2ad674++,_0x5a22cc>>=0x1;}if(_0x1231aa+_0x2ad674>_0x1d5b87['length'])return[0x0,0x0];let _0x10e9f2=_0x33aeb3&_0x1cc64e['JpEbG'](_0x5a22cc,0x1);for(let _0x393ca8=0x1;_0x1cc64e[_0x151503(0x1df)](_0x393ca8,_0x2ad674);_0x393ca8++){_0x10e9f2=_0x1cc64e['hxPYq'](_0x10e9f2,0x100)+_0x1d5b87[_0x1cc64e[_0x151503(0x21b)](_0x1231aa,_0x393ca8)];}return[_0x10e9f2,_0x2ad674];}function readId(_0x4ce48f,_0x296ac4){const _0x2b8c83=_0x23e1,_0x4fe0be={'kNXpV':function(_0x1b851f,_0x31ca53){return _0x1b851f>=_0x31ca53;},'wiSbr':function(_0x22b6b3,_0x578915){return _0x22b6b3+_0x578915;},'QIWKC':function(_0x2d239e,_0x5b51ac){return _0x2d239e*_0x5b51ac;},'PigGP':function(_0x7e641d,_0x103ed3){return _0x7e641d+_0x103ed3;}};if(_0x296ac4>=_0x4ce48f['length'])return[0x0,0x0];const _0x1aa95e=_0x4ce48f[_0x296ac4];let _0x12400;if(_0x4fe0be['kNXpV'](_0x1aa95e,0x80))_0x12400=0x1;else{if(_0x1aa95e>=0x40)_0x12400=0x2;else{if(_0x1aa95e>=0x20)_0x12400=0x3;else{if(_0x4fe0be[_0x2b8c83(0x1f8)](_0x1aa95e,0x10))_0x12400=0x4;else return[_0x1aa95e,0x1];}}}if(_0x296ac4+_0x12400>_0x4ce48f['length'])return[0x0,0x0];let _0x4bb324=0x0;for(let _0xf99255=0x0;_0xf99255<_0x12400;_0xf99255++){_0x4bb324=_0x4fe0be['wiSbr'](_0x4fe0be[_0x2b8c83(0x1fa)](_0x4bb324,0x100),_0x4ce48f[_0x4fe0be['PigGP'](_0x296ac4,_0xf99255)]);}return[_0x4bb324,_0x12400];}function readUint(_0x1ea5a9,_0x354e4a,_0x11d0c2){const _0x3c2207=_0x23e1,_0x4c1247={'pKugp':function(_0x35269f,_0x1b6316){return _0x35269f+_0x1b6316;},'QqWVS':function(_0x5f378b,_0x35563a){return _0x5f378b*_0x35563a;}};let _0x5ab5a3=0x0;for(let _0x19ea62=0x0;_0x19ea62<_0x11d0c2;_0x19ea62++){_0x5ab5a3=_0x4c1247['pKugp'](_0x4c1247[_0x3c2207(0x1e4)](_0x5ab5a3,0x100),_0x1ea5a9[_0x354e4a+_0x19ea62]);}return _0x5ab5a3;}function isUnknownSize(_0x20564f,_0x5a93c9){const _0x33b09b=_0x23e1,_0x4b83b7={'ulQJO':function(_0x36cec3,_0x4fc69c){return _0x36cec3===_0x4fc69c;},'nvfAs':function(_0x12084a,_0xe24e04){return _0x12084a-_0xe24e04;}};return _0x4b83b7[_0x33b09b(0x1fd)](_0x20564f,_0x4b83b7[_0x33b09b(0x20c)](Math['pow'](0x2,0x7*_0x5a93c9),0x1));}function writeId(_0x280b98){const _0x5977ee=_0x23e1,_0x29be15={'tjWRL':function(_0x405e41,_0x1d13d6){return _0x405e41<=_0x1d13d6;},'NRYOw':function(_0x249a55,_0x2e3290){return _0x249a55&_0x2e3290;},'EOPRd':function(_0x3470fa,_0xa86a2d){return _0x3470fa&_0xa86a2d;},'GnpGv':function(_0x4e370a,_0x18a0df){return _0x4e370a>>_0x18a0df;},'bPpOC':function(_0x291230,_0x379556){return _0x291230&_0x379556;},'ljyYS':function(_0x171282,_0xd26fcf){return _0x171282>>_0xd26fcf;}};if(_0x280b98<=0xff)return Buffer['from']([_0x280b98]);if(_0x29be15['tjWRL'](_0x280b98,0xffff))return Buffer['from']([_0x280b98>>0x8&0xff,_0x29be15[_0x5977ee(0x216)](_0x280b98,0xff)]);if(_0x280b98<=0xffffff)return Buffer['from']([_0x29be15[_0x5977ee(0x1e0)](_0x29be15['GnpGv'](_0x280b98,0x10),0xff),_0x29be15[_0x5977ee(0x1ef)](_0x280b98>>0x8,0xff),_0x280b98&0xff]);return Buffer['from']([_0x29be15['NRYOw'](_0x280b98>>0x18,0xff),_0x29be15[_0x5977ee(0x1ef)](_0x29be15[_0x5977ee(0x1ea)](_0x280b98,0x10),0xff),_0x29be15['ljyYS'](_0x280b98,0x8)&0xff,_0x280b98&0xff]);}function writeVint(_0x40fb3f,_0xa2482c){const _0x302578=_0x23e1,_0x449c12={'raGNk':function(_0x4851d2,_0x40f7f7){return _0x4851d2||_0x40f7f7;},'GnbCI':function(_0x446287,_0x431a58){return _0x446287<_0x431a58;},'DYDPY':function(_0x4d75ae,_0x30efdb){return _0x4d75ae-_0x30efdb;},'QavVg':function(_0x51eda1,_0x4ddcd4){return _0x51eda1*_0x4ddcd4;},'tzFYG':function(_0x22c976,_0x3c47eb){return _0x22c976&_0x3c47eb;},'rloZz':function(_0x4642b3,_0xb665ac){return _0x4642b3/_0xb665ac;},'weunl':function(_0x148f68,_0x50ba06){return _0x148f68<<_0x50ba06;},'WEJkH':function(_0x19568a,_0x46a6e5){return _0x19568a-_0x46a6e5;}};let _0x36101b=_0x449c12[_0x302578(0x1fe)](_0xa2482c,0x1);while(_0x449c12[_0x302578(0x1f1)](_0x449c12[_0x302578(0x1ed)](Math['pow'](0x2,_0x449c12['QavVg'](0x7,_0x36101b)),0x2),_0x40fb3f))_0x36101b++;const _0x4b23b8=Buffer['alloc'](_0x36101b);for(let _0x4d7ef8=_0x449c12['DYDPY'](_0x36101b,0x1);_0x4d7ef8>=0x0;_0x4d7ef8--){_0x4b23b8[_0x4d7ef8]=_0x449c12[_0x302578(0x214)](_0x40fb3f,0xff),_0x40fb3f=Math[_0x302578(0x1e3)](_0x449c12[_0x302578(0x21c)](_0x40fb3f,0x100));}return _0x4b23b8[0x0]|=_0x449c12['weunl'](0x1,_0x449c12[_0x302578(0x217)](0x8,_0x36101b)),_0x4b23b8;}function writeFloat64(_0x164baf){const _0x63db62=_0x23e1,_0xb58e5c=Buffer['alloc'](0x8);return _0xb58e5c[_0x63db62(0x1e6)](_0x164baf,0x0),_0xb58e5c;}function writeVoid(_0x4e1b81){const _0x5a4312=_0x23e1,_0x1420c2={'RpfUq':function(_0x202cbb,_0x5213d5){return _0x202cbb<=_0x5213d5;},'LYFLA':function(_0x1518e1,_0x5b39d0){return _0x1518e1>=_0x5b39d0;},'eyaWc':function(_0xfeb730,_0x52acf3){return _0xfeb730*_0x52acf3;},'KwEOF':function(_0x383d7f,_0x106dc5,_0x58603d){return _0x383d7f(_0x106dc5,_0x58603d);}};for(let _0x506155=0x1;_0x1420c2['RpfUq'](_0x506155,0x8);_0x506155++){const _0x52cce0=_0x4e1b81-0x1-_0x506155;if(_0x1420c2[_0x5a4312(0x1da)](_0x52cce0,0x0)&&_0x52cce0<=Math[_0x5a4312(0x1f4)](0x2,_0x1420c2['eyaWc'](0x7,_0x506155))-0x2)return Buffer['concat']([Buffer['from']([ID_VOID]),_0x1420c2[_0x5a4312(0x1f7)](writeVint,_0x52cce0,_0x506155),Buffer['alloc'](_0x52cce0)]);}return Buffer['alloc'](0x0);}function findElement(_0x2d218e,_0x5ea370,_0x1fd280,_0x5ae750){const _0x212418={'jYOyQ':function(_0x4ef72a,_0x5c178b){return _0x4ef72a<_0x5c178b;},'SeZjh':function(_0x66f428,_0x22887d){return _0x66f428===_0x22887d;},'EKZRK':function(_0x59b839,_0x411dfe){return _0x59b839+_0x411dfe;},'UgUnE':function(_0x4fc908,_0x2e4ff5,_0x5c0554){return _0x4fc908(_0x2e4ff5,_0x5c0554);}};let _0x5568a8=_0x5ea370;while(_0x212418['jYOyQ'](_0x5568a8,_0x1fd280)){const [_0x9a33ce,_0x1f8ce]=readId(_0x2d218e,_0x5568a8),[_0x5e4272,_0x67f14]=readVint(_0x2d218e,_0x5568a8+_0x1f8ce);if(_0x212418['SeZjh'](_0x9a33ce,_0x5ae750))return{'offset':_0x5568a8,'idLen':_0x1f8ce,'sizeLen':_0x67f14,'dataSize':_0x5e4272,'dataOffset':_0x212418['EKZRK'](_0x5568a8,_0x1f8ce)+_0x67f14};if(_0x212418['UgUnE'](isUnknownSize,_0x5e4272,_0x67f14))break;_0x5568a8+=_0x1f8ce+_0x67f14+_0x5e4272;}return null;}function _0x170e(){const _0x421c46=['idZIh','pow','Could\x20not\x20compute\x20duration','osnuX','KwEOF','kNXpV','2983010BsSlaT','QIWKC','BcBbk','concat','ulQJO','raGNk','dataOffset','indexOf','fixWebmDuration.js','6443968DTTNsd','argv','3034285KyKJyl','readInt16BE','GApDw','HgTiG','18kGSPWL','ZwjXm','error','idLen','nvfAs','BDtEv','sizeLen','JZpBs','8482922MlwXxF','UgUBx','1167596EKYnum','offset','tzFYG','dataSize','NRYOw','WEJkH','ATQHC','NIOqG','81NsPbRk','KHfXD','rloZz','LYFLA','NCTtJ','HAhDO','202Ylqkrk','length','BhybF','EOPRd','14343DitvbO','fixWebmDuration.ts','floor','QqWVS','xoiDG','writeDoubleBE','JKiXU','ilKsG','lxrvd','ljyYS','eaDWz','slice','DYDPY','wecrV','bPpOC','1020824Wkewyj','GnbCI','EEWLp'];_0x170e=function(){return _0x421c46;};return _0x170e();}function computeDurationMs(_0x546e5e,_0x676be3){const _0x234dab=_0x23e1,_0x4dedac={'osnuX':function(_0xb759b9,_0x5b600a){return _0xb759b9<_0x5b600a;},'lxrvd':function(_0x3d1a01,_0x6c44,_0x50098b){return _0x3d1a01(_0x6c44,_0x50098b);},'sRIRa':function(_0x2fe62b,_0x1cf488){return _0x2fe62b!==_0x1cf488;},'JZpBs':function(_0x1987c2,_0x19ab4a){return _0x1987c2+_0x19ab4a;},'xoiDG':function(_0x3489d1,_0x4e3a00){return _0x3489d1+_0x4e3a00;},'kLqor':function(_0x170993,_0x4c7195){return _0x170993-_0x4c7195;},'wecrV':function(_0xe8a51b,_0xa83775,_0x1e5dae){return _0xe8a51b(_0xa83775,_0x1e5dae);},'HAhDO':function(_0x1d89ce,_0x270881){return _0x1d89ce===_0x270881;},'sMGFJ':function(_0x395696,_0xdaed78){return _0x395696/_0xdaed78;},'BcBbk':function(_0x4e8227,_0x52e644){return _0x4e8227*_0x52e644;},'wyruy':function(_0x5dd78a,_0x5284f7){return _0x5dd78a===_0x5284f7;}};let _0x36d640=0x0;const _0x337e00=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0xef9f6=_0x546e5e[_0x234dab(0x200)](_0x337e00);if(_0xef9f6===-0x1)return 0x0;while(_0x4dedac[_0x234dab(0x1f6)](_0xef9f6,_0x546e5e[_0x234dab(0x1de)])){const [_0x16bc01,_0x3a8f4b]=_0x4dedac[_0x234dab(0x1e9)](readId,_0x546e5e,_0xef9f6);if(_0x4dedac['sRIRa'](_0x16bc01,ID_CLUSTER))break;const [_0x3334de,_0x570a01]=readVint(_0x546e5e,_0x4dedac[_0x234dab(0x20f)](_0xef9f6,_0x3a8f4b)),_0x3c6edf=_0x4dedac[_0x234dab(0x1e5)](_0xef9f6,_0x3a8f4b)+_0x570a01,_0x17ee78=_0x4dedac[_0x234dab(0x1e9)](isUnknownSize,_0x3334de,_0x570a01);let _0xec85ec;if(_0x17ee78){let _0xe878ce=_0x3c6edf;while(_0xe878ce<_0x4dedac['kLqor'](_0x546e5e[_0x234dab(0x1de)],0x4)){const [_0x232e14,_0x3ec32b]=readId(_0x546e5e,_0xe878ce);if(_0x232e14===ID_CLUSTER){_0xec85ec=_0xe878ce;break;}const [_0x554c7d,_0x2b421c]=_0x4dedac[_0x234dab(0x1e9)](readVint,_0x546e5e,_0xe878ce+_0x3ec32b);if(_0x4dedac[_0x234dab(0x1e9)](isUnknownSize,_0x554c7d,_0x2b421c)){_0xec85ec=_0x546e5e['length'];break;}_0xe878ce+=_0x3ec32b+_0x2b421c+_0x554c7d;}_0xec85ec??=_0x546e5e['length'];}else _0xec85ec=_0x3c6edf+_0x3334de;let _0x3764a4=0x0,_0xa1acf7=_0x3c6edf;while(_0xa1acf7<_0xec85ec){const [_0x1918e5,_0x5f2599]=readId(_0x546e5e,_0xa1acf7),[_0x3919b5,_0x2435b]=_0x4dedac[_0x234dab(0x1ee)](readVint,_0x546e5e,_0x4dedac['xoiDG'](_0xa1acf7,_0x5f2599));if(_0x4dedac[_0x234dab(0x1dc)](_0x1918e5,ID_TIMESTAMP))_0x3764a4=readUint(_0x546e5e,_0x4dedac['xoiDG'](_0xa1acf7,_0x5f2599)+_0x2435b,_0x3919b5);else{if(_0x4dedac[_0x234dab(0x1dc)](_0x1918e5,ID_SIMPLE_BLOCK)&&_0x3919b5>=0x4){const _0xa4bf2a=_0x4dedac[_0x234dab(0x1e5)](_0xa1acf7+_0x5f2599,_0x2435b),[,_0x34899f]=readVint(_0x546e5e,_0xa4bf2a),_0x287e81=_0x546e5e[_0x234dab(0x205)](_0xa4bf2a+_0x34899f),_0x3db4d1=_0x4dedac['sMGFJ'](_0x4dedac[_0x234dab(0x1fb)](_0x4dedac['xoiDG'](_0x3764a4,_0x287e81),_0x676be3),0xf4240);_0x3db4d1>_0x36d640&&(_0x36d640=_0x3db4d1);}else{if(_0x4dedac['wyruy'](_0x1918e5,ID_CLUSTER))break;}}if(_0x4dedac[_0x234dab(0x1ee)](isUnknownSize,_0x3919b5,_0x2435b))break;_0xa1acf7+=_0x5f2599+_0x2435b+_0x3919b5;}_0xef9f6=_0xec85ec;}return _0x36d640;}export function fixWebmDuration(_0xcb8e59,_0xb78ac){const _0x30a951=_0x23e1,_0x39c5c2={'NCTtJ':function(_0x1030ac,_0x3e6794,_0x46a919){return _0x1030ac(_0x3e6794,_0x46a919);},'EEWLp':function(_0x1a9073,_0x204166){return _0x1a9073+_0x204166;},'ATQHC':function(_0xfdd398,_0x2b1bac){return _0xfdd398!==_0x2b1bac;},'HgTiG':function(_0x1b102c,_0x5a2234){return _0x1b102c+_0x5a2234;},'JKiXU':function(_0x54b9ea,_0x5c729d){return _0x54b9ea<_0x5c729d;},'vmIrQ':function(_0x37fa98,_0x9a7d87){return _0x37fa98+_0x9a7d87;},'BDtEv':function(_0x3c7f56,_0x55278b){return _0x3c7f56+_0x55278b;},'rnfOr':function(_0x278809,_0x4fb3f2){return _0x278809+_0x4fb3f2;},'GApDw':function(_0x4469ae,_0xc32545,_0x41eae6,_0x408092,_0x248f44){return _0x4469ae(_0xc32545,_0x41eae6,_0x408092,_0x248f44);},'kImgc':function(_0x5c40dd,_0x11d80a,_0x18305d,_0x4e1d8a){return _0x5c40dd(_0x11d80a,_0x18305d,_0x4e1d8a);},'NIOqG':function(_0x4c73eb,_0x2ba385){return _0x4c73eb<=_0x2ba385;},'ilKsG':function(_0x597248,_0x5df49e){return _0x597248*_0x5df49e;},'HddoS':function(_0x1c195c,_0x3e067e){return _0x1c195c(_0x3e067e);},'mfmoB':function(_0x403050,_0x2e4312){return _0x403050+_0x2e4312;},'ZwjXm':function(_0x331c56,_0x336a1b){return _0x331c56-_0x336a1b;},'idZIh':function(_0x4f2994,_0x8b2175){return _0x4f2994+_0x8b2175;}},_0x2d8691=readFileSync(_0xcb8e59);let _0x4eed0c=0x0;const [_0x1f81ad,_0x2e52ac]=readId(_0x2d8691,_0x4eed0c),[_0x290289,_0x22b2b4]=_0x39c5c2['NCTtJ'](readVint,_0x2d8691,_0x39c5c2[_0x30a951(0x1f2)](_0x4eed0c,_0x2e52ac));_0x4eed0c+=_0x39c5c2[_0x30a951(0x1f2)](_0x39c5c2['EEWLp'](_0x2e52ac,_0x22b2b4),_0x290289);const [_0x151319,_0x5027ad]=readId(_0x2d8691,_0x4eed0c);if(_0x39c5c2[_0x30a951(0x218)](_0x151319,ID_SEGMENT))return console[_0x30a951(0x20a)]('Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment'),![];const [,_0x106bf4]=_0x39c5c2[_0x30a951(0x1db)](readVint,_0x2d8691,_0x4eed0c+_0x5027ad),_0x5d2b53=_0x39c5c2[_0x30a951(0x207)](_0x4eed0c+_0x5027ad,_0x106bf4);let _0x2496fc=_0x5d2b53;const _0xc7b58c=Math['min'](_0x2d8691['length'],_0x5d2b53+0x2710);let _0x24ddb7=null,_0x56240c=null;while(_0x39c5c2[_0x30a951(0x1e7)](_0x2496fc,_0xc7b58c)){const [_0x42e9e1,_0x36337d]=_0x39c5c2['NCTtJ'](readId,_0x2d8691,_0x2496fc),[_0x163316,_0x28f7c5]=readVint(_0x2d8691,_0x39c5c2['vmIrQ'](_0x2496fc,_0x36337d));_0x42e9e1===ID_VOID&&!_0x24ddb7&&(_0x24ddb7={'offset':_0x2496fc,'idLen':_0x36337d,'sizeLen':_0x28f7c5,'dataSize':_0x163316,'dataOffset':_0x39c5c2['BDtEv'](_0x2496fc+_0x36337d,_0x28f7c5)});if(_0x42e9e1===ID_INFO){_0x56240c={'offset':_0x2496fc,'idLen':_0x36337d,'sizeLen':_0x28f7c5,'dataSize':_0x163316,'dataOffset':_0x2496fc+_0x36337d+_0x28f7c5};break;}if(_0x42e9e1===ID_CLUSTER)break;if(isUnknownSize(_0x163316,_0x28f7c5))break;_0x2496fc+=_0x39c5c2['rnfOr'](_0x39c5c2['vmIrQ'](_0x36337d,_0x28f7c5),_0x163316);}if(!_0x56240c)return console['error']('Could\x20not\x20find\x20Info\x20element'),![];const _0x322c7b=_0x39c5c2[_0x30a951(0x206)](findElement,_0x2d8691,_0x56240c[_0x30a951(0x1ff)],_0x39c5c2['HgTiG'](_0x56240c[_0x30a951(0x1ff)],_0x56240c['dataSize']),ID_DURATION);if(_0x322c7b)return![];const _0x20a19a=_0x39c5c2[_0x30a951(0x206)](findElement,_0x2d8691,_0x56240c[_0x30a951(0x1ff)],_0x39c5c2[_0x30a951(0x20d)](_0x56240c['dataOffset'],_0x56240c['dataSize']),ID_TIMESTAMP_SCALE);let _0xddd878=0xf4240;_0x20a19a&&(_0xddd878=_0x39c5c2['kImgc'](readUint,_0x2d8691,_0x20a19a[_0x30a951(0x1ff)],_0x20a19a[_0x30a951(0x215)]));const _0x53e268=computeDurationMs(_0x2d8691,_0xddd878);if(_0x39c5c2[_0x30a951(0x219)](_0x53e268,0x0))return console[_0x30a951(0x20a)](_0x30a951(0x1f5)),![];const _0x1ec7c6=_0x39c5c2[_0x30a951(0x1e8)](_0x53e268,0xf4240)/_0xddd878,_0x34acbc=Buffer[_0x30a951(0x1fc)]([_0x39c5c2['HddoS'](writeId,ID_DURATION),writeVint(0x8),_0x39c5c2['HddoS'](writeFloat64,_0x1ec7c6)]),_0x5d6141=_0x34acbc['length'];if(!_0x24ddb7||_0x24ddb7['offset']<_0x56240c['offset']){if(_0x24ddb7){const _0x2810d4=_0x39c5c2['mfmoB'](_0x39c5c2['HgTiG'](_0x24ddb7[_0x30a951(0x20b)],_0x24ddb7[_0x30a951(0x20e)]),_0x24ddb7[_0x30a951(0x215)]),_0x26aa50=_0x39c5c2[_0x30a951(0x209)](_0x2810d4,_0x5d6141);if(_0x26aa50<0x2)return rewriteFile(_0x2d8691,_0x56240c,_0x34acbc,_0xddd878,_0x53e268,_0xb78ac);const _0x101346=_0x39c5c2['BDtEv'](_0x56240c[_0x30a951(0x215)],_0x5d6141),_0x283c58=Buffer['concat']([writeId(ID_INFO),writeVint(_0x101346,_0x56240c['sizeLen'])]),_0x52419e=_0x2d8691['slice'](_0x56240c[_0x30a951(0x1ff)],_0x39c5c2[_0x30a951(0x1f3)](_0x56240c[_0x30a951(0x1ff)],_0x56240c[_0x30a951(0x215)])),_0x505822=writeVoid(_0x26aa50),_0x59877c=_0x2d8691['slice'](0x0,_0x24ddb7[_0x30a951(0x213)]),_0xe0fe1b=_0x2d8691['slice'](_0x56240c[_0x30a951(0x1ff)]+_0x56240c[_0x30a951(0x215)]);return writeFileSync(_0xb78ac,Buffer['concat']([_0x59877c,_0x505822,_0x283c58,_0x52419e,_0x34acbc,_0xe0fe1b])),!![];}}return rewriteFile(_0x2d8691,_0x56240c,_0x34acbc,_0xddd878,_0x53e268,_0xb78ac);}function rewriteFile(_0x3ebfea,_0x40f952,_0x492a3e,_0x457061,_0x5e31d4,_0x21cc0f){const _0xabc1=_0x23e1,_0xc0cbb6={'eaDWz':function(_0x43e530,_0x128247){return _0x43e530+_0x128247;},'hcRIb':function(_0x58f9db,_0x30b44e){return _0x58f9db(_0x30b44e);},'UgUBx':function(_0x34737e,_0x238a44){return _0x34737e+_0x238a44;}},_0x2bd5c6=_0xc0cbb6['eaDWz'](_0x40f952[_0xabc1(0x215)],_0x492a3e['length']),_0x437cb8=Buffer['concat']([_0xc0cbb6['hcRIb'](writeId,ID_INFO),writeVint(_0x2bd5c6)]),_0x62eee3=_0xc0cbb6[_0xabc1(0x1eb)](_0x40f952['idLen'],_0x40f952['sizeLen']),_0x4a010f=_0x3ebfea[_0xabc1(0x1ec)](0x0,_0x40f952['offset']),_0x5c2c91=_0x3ebfea['slice'](_0x40f952[_0xabc1(0x1ff)],_0xc0cbb6['eaDWz'](_0x40f952['dataOffset'],_0x40f952[_0xabc1(0x215)])),_0x5c033a=_0x3ebfea[_0xabc1(0x1ec)](_0xc0cbb6[_0xabc1(0x211)](_0x40f952['offset']+_0x62eee3,_0x40f952[_0xabc1(0x215)]));return writeFileSync(_0x21cc0f,Buffer['concat']([_0x4a010f,_0x437cb8,_0x5c2c91,_0x492a3e,_0x5c033a])),!![];}if(process['argv'][0x1]?.['endsWith'](_0xf79410(0x1e2))||process[_0xf79410(0x203)][0x1]?.['endsWith'](_0xf79410(0x201))){const input=process['argv'][0x2],output=process['argv'][0x3];(!input||!output)&&(console['error']('Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>'),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console['log']('Fixed:\x20'+output):console['log']('File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.');}
@@ -1 +1 @@
1
- (function(_0x117309,_0x40e687){const _0x6fcb41=_0x563e,_0x472b74=_0x117309();while(!![]){try{const _0x3f465f=parseInt(_0x6fcb41(0x1de))/0x1*(parseInt(_0x6fcb41(0x1e3))/0x2)+-parseInt(_0x6fcb41(0x1e8))/0x3+-parseInt(_0x6fcb41(0x1eb))/0x4+parseInt(_0x6fcb41(0x1df))/0x5+parseInt(_0x6fcb41(0x1e0))/0x6+-parseInt(_0x6fcb41(0x1da))/0x7*(parseInt(_0x6fcb41(0x1e4))/0x8)+parseInt(_0x6fcb41(0x1e2))/0x9;if(_0x3f465f===_0x40e687)break;else _0x472b74['push'](_0x472b74['shift']());}catch(_0x3a33f7){_0x472b74['push'](_0x472b74['shift']());}}}(_0x3936,0x644d2));function _0x563e(_0x41ecb9,_0x44cbe2){_0x41ecb9=_0x41ecb9-0x1da;const _0x393678=_0x3936();let _0x563e88=_0x393678[_0x41ecb9];return _0x563e88;}import{execSync}from'child_process';function _0x3936(){const _0x47771c=['wPRSU','276123aSbfTx','pipe','OKcFy','2132392AKUxoa','7ZeneWu','utf-8','git\x20remote\x20get-url\x20origin','replace','1YVnJgp','2261120jsMtlL','1722462Rqsrrb','FLKPo','2381256DezpUS','1393978ZGFINT','5319208PAUQWk','github.com/','cCdgR'];_0x3936=function(){return _0x47771c;};return _0x3936();}export function getGitBranch(){const _0x3a3179=_0x563e,_0x3b9f84={'FLKPo':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','GfIpi':_0x3a3179(0x1e9)};try{return execSync(_0x3b9f84[_0x3a3179(0x1e1)],{'encoding':'utf-8','stdio':['pipe',_0x3b9f84['GfIpi'],_0x3a3179(0x1e9)]})['trim']();}catch{return undefined;}}export function getGitRepoUrl(){const _0x4f9177=_0x563e,_0x3da7cd={'qohPR':_0x4f9177(0x1dc),'cCdgR':_0x4f9177(0x1db)};try{const _0x520954=execSync(_0x3da7cd['qohPR'],{'encoding':_0x3da7cd[_0x4f9177(0x1e6)],'stdio':['pipe','pipe',_0x4f9177(0x1e9)]})['trim']();return _0x520954['replace'](/\.git$/,'')['replace'](/^git@github\.com:/,_0x4f9177(0x1e5))[_0x4f9177(0x1dd)](/^https?:\/\//,'');}catch{return undefined;}}export function getGitInfo(){const _0x131ddc=_0x563e,_0x41f0fd={'wPRSU':function(_0x30d2d6){return _0x30d2d6();},'OKcFy':function(_0x1aa8cc){return _0x1aa8cc();}};return{'branch':_0x41f0fd[_0x131ddc(0x1e7)](getGitBranch),'repoUrl':_0x41f0fd[_0x131ddc(0x1ea)](getGitRepoUrl)};}
1
+ function _0x3f7b(){const _0x5e2386=['55381Irqtih','728ZEUHGm','10011TYTCXi','147140HqAOTo','6IjbjPw','7601hFtAgM','pipe','3898881UJjhwF','git\x20remote\x20get-url\x20origin','2610vtNaze','utf-8','pkTWK','VzbPA','1948304BaBgCY','24awscvL','3935511VjCYmC','github.com/','git\x20rev-parse\x20--abbrev-ref\x20HEAD','trim','replace'];_0x3f7b=function(){return _0x5e2386;};return _0x3f7b();}(function(_0x38485e,_0x459947){const _0x51f442=_0x3313,_0x24e1a3=_0x38485e();while(!![]){try{const _0x428738=parseInt(_0x51f442(0xc4))/0x1*(parseInt(_0x51f442(0xb4))/0x2)+-parseInt(_0x51f442(0xb2))/0x3*(parseInt(_0x51f442(0xc5))/0x4)+parseInt(_0x51f442(0xb3))/0x5*(-parseInt(_0x51f442(0xbe))/0x6)+parseInt(_0x51f442(0xb7))/0x7+-parseInt(_0x51f442(0xbd))/0x8+parseInt(_0x51f442(0xbf))/0x9+-parseInt(_0x51f442(0xb9))/0xa*(-parseInt(_0x51f442(0xb5))/0xb);if(_0x428738===_0x459947)break;else _0x24e1a3['push'](_0x24e1a3['shift']());}catch(_0x57962a){_0x24e1a3['push'](_0x24e1a3['shift']());}}}(_0x3f7b,0x5adcc));function _0x3313(_0x4c05f2,_0x14a4b7){_0x4c05f2=_0x4c05f2-0xb2;const _0x3f7b02=_0x3f7b();let _0x331336=_0x3f7b02[_0x4c05f2];return _0x331336;}import{execSync}from'child_process';export function getGitBranch(){const _0x51b843=_0x3313,_0xe7b2de={'lcJvo':function(_0xd8aa81,_0x161670,_0x7528e7){return _0xd8aa81(_0x161670,_0x7528e7);},'sfWFN':_0x51b843(0xb6)};try{return _0xe7b2de['lcJvo'](execSync,_0x51b843(0xc1),{'encoding':_0x51b843(0xba),'stdio':[_0x51b843(0xb6),'pipe',_0xe7b2de['sfWFN']]})[_0x51b843(0xc2)]();}catch{return undefined;}}export function getGitRepoUrl(){const _0x2afe7e=_0x3313,_0x528c46={'sFQcw':_0x2afe7e(0xb8),'RflSo':_0x2afe7e(0xb6),'pkTWK':_0x2afe7e(0xc0)};try{const _0x4f674f=execSync(_0x528c46['sFQcw'],{'encoding':_0x2afe7e(0xba),'stdio':[_0x528c46['RflSo'],_0x2afe7e(0xb6),'pipe']})[_0x2afe7e(0xc2)]();return _0x4f674f[_0x2afe7e(0xc3)](/\.git$/,'')[_0x2afe7e(0xc3)](/^git@github\.com:/,_0x528c46[_0x2afe7e(0xbb)])['replace'](/^https?:\/\//,'');}catch{return undefined;}}export function getGitInfo(){const _0x13a6d5=_0x3313,_0x87552f={'VzbPA':function(_0x3699c9){return _0x3699c9();}};return{'branch':_0x87552f[_0x13a6d5(0xbc)](getGitBranch),'repoUrl':_0x87552f[_0x13a6d5(0xbc)](getGitRepoUrl)};}
@@ -1 +1 @@
1
- const _0x5782dc=_0x3814;(function(_0x5e0243,_0x1c2d61){const _0x268972=_0x3814,_0x8a638d=_0x5e0243();while(!![]){try{const _0x92a438=-parseInt(_0x268972(0x217))/0x1+-parseInt(_0x268972(0x20e))/0x2+-parseInt(_0x268972(0x1f3))/0x3*(parseInt(_0x268972(0x216))/0x4)+parseInt(_0x268972(0x203))/0x5*(parseInt(_0x268972(0x219))/0x6)+-parseInt(_0x268972(0x213))/0x7+-parseInt(_0x268972(0x1ef))/0x8+parseInt(_0x268972(0x1fc))/0x9*(parseInt(_0x268972(0x200))/0xa);if(_0x92a438===_0x1c2d61)break;else _0x8a638d['push'](_0x8a638d['shift']());}catch(_0x2f0ebf){_0x8a638d['push'](_0x8a638d['shift']());}}}(_0x18e7,0x562f9));const _0x4e5f0e=(function(){const _0x293324=_0x3814,_0xbe788f={'ukQnA':function(_0x5c741a,_0xb03d5f){return _0x5c741a===_0xb03d5f;},'sINpT':_0x293324(0x210)};let _0x52d6bf=!![];return function(_0x45dd9a,_0xd39c64){const _0x3e3d14=_0x293324,_0x12af41={'zWbvn':function(_0xae6b04,_0x1c38ab){const _0x52c58e=_0x3814;return _0xbe788f[_0x52c58e(0x1e7)](_0xae6b04,_0x1c38ab);},'dBXFb':_0x3e3d14(0x218),'JQEZn':_0xbe788f[_0x3e3d14(0x20d)]},_0x5ca21c=_0x52d6bf?function(){const _0x234208=_0x3e3d14;if(_0x12af41[_0x234208(0x20f)](_0x234208(0x218),_0x12af41[_0x234208(0x1f6)])){if(_0xd39c64){if(_0x234208(0x201)!==_0x12af41[_0x234208(0x212)]){const _0x337848=_0xd39c64['apply'](_0x45dd9a,arguments);return _0xd39c64=null,_0x337848;}else return _0x45b577[_0x234208(0x1e8)][_0x40984d];}}else return!!_0x17386a['env'][_0x234208(0x20c)];}:function(){};return _0x52d6bf=![],_0x5ca21c;};}()),_0xa7b70d=_0x4e5f0e(this,function(){const _0x1c9e1b=_0x3814,_0x49df2e={'cCBRh':_0x1c9e1b(0x1f7)};return _0xa7b70d[_0x1c9e1b(0x1f8)]()[_0x1c9e1b(0x1ed)](_0x49df2e[_0x1c9e1b(0x202)])['toString']()['constructor'](_0xa7b70d)[_0x1c9e1b(0x1ed)](_0x49df2e[_0x1c9e1b(0x202)]);});_0xa7b70d();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';function _0x3814(_0x471807,_0x41ef7b){_0x471807=_0x471807-0x1e4;const _0x2a080d=_0x18e7();let _0xa7b70d=_0x2a080d[_0x471807];if(_0x3814['LIELrL']===undefined){var _0x4e5f0e=function(_0x68fd47){const _0x5a1b8b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x588854='',_0x549042='',_0x4d7880=_0x588854+_0x4e5f0e;for(let _0x5e042b=0x0,_0x5720a7,_0x50b835,_0x5cd040=0x0;_0x50b835=_0x68fd47['charAt'](_0x5cd040++);~_0x50b835&&(_0x5720a7=_0x5e042b%0x4?_0x5720a7*0x40+_0x50b835:_0x50b835,_0x5e042b++%0x4)?_0x588854+=_0x4d7880['charCodeAt'](_0x5cd040+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x5720a7>>(-0x2*_0x5e042b&0x6)):_0x5e042b:0x0){_0x50b835=_0x5a1b8b['indexOf'](_0x50b835);}for(let _0x121f50=0x0,_0x413192=_0x588854['length'];_0x121f50<_0x413192;_0x121f50++){_0x549042+='%'+('00'+_0x588854['charCodeAt'](_0x121f50)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x549042);};_0x3814['rHexev']=_0x4e5f0e,_0x3814['BrkMTl']={},_0x3814['LIELrL']=!![];}const _0x18e725=_0x2a080d[0x0],_0x3814f4=_0x471807+_0x18e725,_0x4aff02=_0x3814['BrkMTl'][_0x3814f4];if(!_0x4aff02){const _0x359f85=function(_0x55f967){this['URVlKA']=_0x55f967,this['eoaRZp']=[0x1,0x0,0x0],this['iTAsKz']=function(){return'newState';},this['jzSguT']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['xsNRYU']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x359f85['prototype']['SAHxBW']=function(){const _0x149860=new RegExp(this['jzSguT']+this['xsNRYU']),_0x28171c=_0x149860['test'](this['iTAsKz']['toString']())?--this['eoaRZp'][0x1]:--this['eoaRZp'][0x0];return this['yhlHOk'](_0x28171c);},_0x359f85['prototype']['yhlHOk']=function(_0x275b0d){if(!Boolean(~_0x275b0d))return _0x275b0d;return this['fdPRJR'](this['URVlKA']);},_0x359f85['prototype']['fdPRJR']=function(_0x2d3ed9){for(let _0x1cf11f=0x0,_0x386494=this['eoaRZp']['length'];_0x1cf11f<_0x386494;_0x1cf11f++){this['eoaRZp']['push'](Math['round'](Math['random']())),_0x386494=this['eoaRZp']['length'];}return _0x2d3ed9(this['eoaRZp'][0x0]);},new _0x359f85(_0x3814)['SAHxBW'](),_0xa7b70d=_0x3814['rHexev'](_0xa7b70d),_0x3814['BrkMTl'][_0x3814f4]=_0xa7b70d;}else _0xa7b70d=_0x4aff02;return _0xa7b70d;}const ENV_TOKEN=_0x5782dc(0x206),ENV_TOKEN_LEGACY=_0x5782dc(0x1f2),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x5782dc(0x207)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x5782dc(0x211));function isGitHubCI(){const _0xddecef=_0x5782dc;return!!process[_0xddecef(0x1e8)][_0xddecef(0x20c)];}function _0x18e7(){const _0xe2539e=['uKfor0vsx0nmsv9ut0TftG','y2XPlNr4Da','qLPRsgu','lI9LBNzPCM9UBwvUDc5QCW','CxvKBNi','r0vu','r0Lusfvcx0vovG','C0LoCfq','mte4mtKYmeLQugDgDq','ELDIDM4','B29IrMO','CMvMCMvZAc50Ehq','sLffwM4','mtK4otK0nKHrALnpyq','ExbxBfu','yxbWBhK','mtm5nJeYngjZz014AG','ntC1ndqXDfbAq0LS','A3HSqvC','nLbMCKjoBa','BgXTtMG','svDczu0','v3LUA0m','A1rnB2S','DwTrBKe','zw52','Buvezvm','svjLvu8','z0nOCwm','D09LsNK','C2vHCMnO','B1PJt3y','mJq4ntm0nhzkB3LIzq','tfjXDwW','DxrMltG','uKfor0vsx01duf9ut0TftG','nKzZtKDTzG','swHRDeS','r2P0yMe','zejyrMi','kcGOlISPkYKRksSK','Dg9tDhjPBMC','BurOrKG','re9Ky3C','rLjYsxq','mtuZA1n0qxfo','zwrnuKC','zM9kEgK','BezJDva','mtuWmZC2meHvA3njrG','y3vJtLi','y0ncuMG','mti4mde3mgzqq3nHDq','rfDSDK0','qMvHCMvYia'];_0x18e7=function(){return _0xe2539e;};return _0x18e7();}async function writeToGitHubEnv(_0x462544,_0x2f6e84){const _0x179ca8=_0x5782dc,_0x545a7e={'edMRG':function(_0x7224db,_0x5c1881){return _0x7224db!==_0x5c1881;},'WynkC':_0x179ca8(0x20a),'DWlvM':function(_0x33e726,_0x182764,_0x4a23c3){return _0x33e726(_0x182764,_0x4a23c3);}},_0x49f1a8=process[_0x179ca8(0x1e8)][_0x179ca8(0x20c)];if(_0x49f1a8){if(_0x545a7e[_0x179ca8(0x1fd)](_0x545a7e[_0x179ca8(0x1e5)],_0x545a7e[_0x179ca8(0x1e5)]))return!![];else await _0x545a7e[_0x179ca8(0x204)](appendFile,_0x49f1a8,_0x462544+'='+_0x2f6e84+'\x0a');}}export async function storeToken(_0x19e158){const _0x2198e6=_0x5782dc,_0x5745b6={'hcYbM':function(_0x54d2e4){return _0x54d2e4();},'LRqul':function(_0x532b2f,_0x49c3f7,_0x1404e){return _0x532b2f(_0x49c3f7,_0x1404e);},'gfPVb':function(_0x4b0167,_0x2eed65,_0x1c0fea){return _0x4b0167(_0x2eed65,_0x1c0fea);}};_0x5745b6['hcYbM'](isGitHubCI)?await _0x5745b6[_0x2198e6(0x1f0)](writeToGitHubEnv,ENV_TOKEN,_0x19e158):(await _0x5745b6['gfPVb'](mkdir,TOKEN_DIR,{'recursive':!![]}),await writeFile(TOKEN_PATH,_0x19e158,{'mode':0x180}));}export async function getToken(){const _0x2282c9=_0x5782dc,_0x1dbbe8={'Gjtba':function(_0x460883,_0x578da0){return _0x460883!==_0x578da0;},'fmIkp':_0x2282c9(0x1ff),'foJxi':function(_0x32b00a,_0x28d0f2,_0x1f4e75){return _0x32b00a(_0x28d0f2,_0x1f4e75);},'IReUO':function(_0x2b3bf4,_0x25a576){return _0x2b3bf4===_0x25a576;},'BZkHe':_0x2282c9(0x1ec),'FRrIt':function(_0x572be3,_0x2622c7){return _0x572be3(_0x2622c7);},'WLKDi':function(_0x46b5d2){return _0x46b5d2();},'TxRrR':'Your\x20session\x20has\x20expired.\x20Please\x20run\x20`ranger\x20login`\x20to\x20re-authenticate.'};if(process[_0x2282c9(0x1e8)][ENV_TOKEN])return _0x1dbbe8[_0x2282c9(0x1f5)](_0x1dbbe8['fmIkp'],_0x2282c9(0x1ff))?null:process['env'][ENV_TOKEN];if(process['env'][ENV_TOKEN_LEGACY])return process[_0x2282c9(0x1e8)][ENV_TOKEN_LEGACY];let _0x28cec0=null;try{_0x28cec0=(await _0x1dbbe8[_0x2282c9(0x1fe)](readFile,TOKEN_PATH,_0x2282c9(0x1f1)))['trim']()||null;}catch{if(_0x1dbbe8[_0x2282c9(0x1ea)](_0x1dbbe8[_0x2282c9(0x208)],_0x2282c9(0x1e6))){const _0x1bdc55=_0x359f85?function(){const _0x2514a4=_0x2282c9;if(_0x1cf11f){const _0x393af8=_0x487d27[_0x2514a4(0x215)](_0x4f7621,arguments);return _0x330171=null,_0x393af8;}}:function(){};return _0x2d3ed9=![],_0x1bdc55;}else return null;}if(!_0x28cec0)return null;const _0x23b085=await _0x1dbbe8[_0x2282c9(0x1fb)](checkTokenValid,_0x28cec0);if(_0x23b085)return _0x28cec0;const _0x49cc75=await _0x1dbbe8['WLKDi'](tryRefreshToken);if(_0x49cc75)return _0x49cc75;throw new Error(_0x1dbbe8['TxRrR']);}async function checkTokenValid(_0x59c119){const _0x52a428=_0x5782dc,_0x251a22={'gChqc':_0x52a428(0x209),'oZcOv':_0x52a428(0x20b)};try{const {getApiBaseUrl:_0xa24b10}=await import(_0x251a22[_0x52a428(0x1eb)]),_0x149b3a=_0xa24b10(),_0x529283=await fetch(_0x149b3a+'/api/v1/mcp/me',{'method':_0x251a22[_0x52a428(0x1ee)],'headers':{'Authorization':_0x52a428(0x205)+_0x59c119}});return _0x529283['ok'];}catch{return!![];}}async function tryRefreshToken(){const {refreshCliToken:_0x2cc09f}=await import('./tokenRefresh.js');return _0x2cc09f();}export async function deleteToken(){const _0x316abb=_0x5782dc,_0x1ea290={'IWBeM':function(_0x4a18c8,_0x36ca2e){return _0x4a18c8(_0x36ca2e);}};try{return await _0x1ea290[_0x316abb(0x1e4)](unlink,TOKEN_PATH),!![];}catch{return![];}}export async function storeRefreshToken(_0x4893cb){await mkdir(TOKEN_DIR,{'recursive':!![]}),await writeFile(REFRESH_TOKEN_PATH,_0x4893cb,{'mode':0x180});}export async function getRefreshToken(){const _0x320201=_0x5782dc,_0x2014ee={'IhktK':function(_0x1476f2,_0x477210,_0x4b184d){return _0x1476f2(_0x477210,_0x4b184d);},'ypWlU':_0x320201(0x1f1)};try{const _0x5a247e=await _0x2014ee[_0x320201(0x1f4)](readFile,REFRESH_TOKEN_PATH,_0x2014ee[_0x320201(0x214)]);return _0x5a247e['trim']()||null;}catch{return null;}}export async function deleteRefreshToken(){const _0x2406af=_0x5782dc,_0x2d5f9e={'mDhFH':function(_0x51808c,_0xaa276a){return _0x51808c(_0xaa276a);},'mEDeS':function(_0x1cda91,_0x49fe1c){return _0x1cda91===_0x49fe1c;},'gcrpZ':_0x2406af(0x1fa)};try{return await _0x2d5f9e[_0x2406af(0x1f9)](unlink,REFRESH_TOKEN_PATH),!![];}catch{return _0x2d5f9e[_0x2406af(0x1e9)](_0x2406af(0x21a),_0x2d5f9e['gcrpZ'])?_0x2c104b['env'][_0x23f30a]:![];}}export async function deleteAllCredentials(){await deleteToken(),await deleteRefreshToken();}
1
+ const _0x24c6d8=_0x48ef;function _0x48ef(_0x2f45af,_0x4622ed){_0x2f45af=_0x2f45af-0x1d5;const _0x15d2ad=_0x101a();let _0x11a1f2=_0x15d2ad[_0x2f45af];if(_0x48ef['VDYmSg']===undefined){var _0x54ba71=function(_0x583bc0){const _0x5ed9bc='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x39a27b='',_0x161d5f='',_0x396da1=_0x39a27b+_0x54ba71;for(let _0x2698b1=0x0,_0x3a4afa,_0x24a4f2,_0x3113ce=0x0;_0x24a4f2=_0x583bc0['charAt'](_0x3113ce++);~_0x24a4f2&&(_0x3a4afa=_0x2698b1%0x4?_0x3a4afa*0x40+_0x24a4f2:_0x24a4f2,_0x2698b1++%0x4)?_0x39a27b+=_0x396da1['charCodeAt'](_0x3113ce+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x3a4afa>>(-0x2*_0x2698b1&0x6)):_0x2698b1:0x0){_0x24a4f2=_0x5ed9bc['indexOf'](_0x24a4f2);}for(let _0x1a96d4=0x0,_0x137bfd=_0x39a27b['length'];_0x1a96d4<_0x137bfd;_0x1a96d4++){_0x161d5f+='%'+('00'+_0x39a27b['charCodeAt'](_0x1a96d4)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x161d5f);};_0x48ef['zKTTnd']=_0x54ba71,_0x48ef['CvoXWE']={},_0x48ef['VDYmSg']=!![];}const _0x101a0f=_0x15d2ad[0x0],_0x48efd3=_0x2f45af+_0x101a0f,_0x52c3a2=_0x48ef['CvoXWE'][_0x48efd3];if(!_0x52c3a2){const _0x13dc47=function(_0x4f7cc7){this['rsiMrk']=_0x4f7cc7,this['EfFwjF']=[0x1,0x0,0x0],this['owpBTp']=function(){return'newState';},this['UzpNGR']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['IPxqFa']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x13dc47['prototype']['vlHZyP']=function(){const _0x1afdb2=new RegExp(this['UzpNGR']+this['IPxqFa']),_0x33cd90=_0x1afdb2['test'](this['owpBTp']['toString']())?--this['EfFwjF'][0x1]:--this['EfFwjF'][0x0];return this['cTsAfR'](_0x33cd90);},_0x13dc47['prototype']['cTsAfR']=function(_0x1a88b7){if(!Boolean(~_0x1a88b7))return _0x1a88b7;return this['FlhJCg'](this['rsiMrk']);},_0x13dc47['prototype']['FlhJCg']=function(_0x1eb9bb){for(let _0x102850=0x0,_0x1b1f88=this['EfFwjF']['length'];_0x102850<_0x1b1f88;_0x102850++){this['EfFwjF']['push'](Math['round'](Math['random']())),_0x1b1f88=this['EfFwjF']['length'];}return _0x1eb9bb(this['EfFwjF'][0x0]);},new _0x13dc47(_0x48ef)['vlHZyP'](),_0x11a1f2=_0x48ef['zKTTnd'](_0x11a1f2),_0x48ef['CvoXWE'][_0x48efd3]=_0x11a1f2;}else _0x11a1f2=_0x52c3a2;return _0x11a1f2;}(function(_0x10acc8,_0x450c0c){const _0x50f38d=_0x48ef,_0x2955b5=_0x10acc8();while(!![]){try{const _0x30b2e4=-parseInt(_0x50f38d(0x203))/0x1+parseInt(_0x50f38d(0x1dc))/0x2+parseInt(_0x50f38d(0x202))/0x3*(parseInt(_0x50f38d(0x1d9))/0x4)+-parseInt(_0x50f38d(0x1fe))/0x5+-parseInt(_0x50f38d(0x1de))/0x6+-parseInt(_0x50f38d(0x1e5))/0x7*(-parseInt(_0x50f38d(0x1d6))/0x8)+-parseInt(_0x50f38d(0x1d5))/0x9*(-parseInt(_0x50f38d(0x1e8))/0xa);if(_0x30b2e4===_0x450c0c)break;else _0x2955b5['push'](_0x2955b5['shift']());}catch(_0xf8fa18){_0x2955b5['push'](_0x2955b5['shift']());}}}(_0x101a,0x9ced1));const _0x54ba71=(function(){let _0x445489=!![];return function(_0x1ea0d2,_0x21a8db){const _0x1d9ec9=_0x445489?function(){const _0x27f852=_0x48ef;if(_0x21a8db){const _0x43bfe9=_0x21a8db[_0x27f852(0x1f9)](_0x1ea0d2,arguments);return _0x21a8db=null,_0x43bfe9;}}:function(){};return _0x445489=![],_0x1d9ec9;};}()),_0x11a1f2=_0x54ba71(this,function(){const _0x534d43=_0x48ef,_0xdb64f4={'xEhSk':_0x534d43(0x1ea)};return _0x11a1f2[_0x534d43(0x1fb)]()[_0x534d43(0x1f2)](_0xdb64f4['xEhSk'])[_0x534d43(0x1fb)]()[_0x534d43(0x1f1)](_0x11a1f2)['search'](_0x534d43(0x1ea));});_0x11a1f2();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x24c6d8(0x1e3),ENV_TOKEN_LEGACY=_0x24c6d8(0x1d7),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x24c6d8(0x1f6)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x24c6d8(0x1f0));function isGitHubCI(){const _0x36cfa8=_0x24c6d8;return!!process[_0x36cfa8(0x1ef)][_0x36cfa8(0x1f5)];}async function writeToGitHubEnv(_0x417889,_0xc5b089){const _0xa8cf6e=_0x24c6d8,_0x79199c={'nmzCD':_0xa8cf6e(0x1ec),'QPGsX':function(_0xaf89ab,_0x413271,_0x551593){return _0xaf89ab(_0x413271,_0x551593);}},_0x352973=process[_0xa8cf6e(0x1ef)][_0xa8cf6e(0x1f5)];if(_0x352973){if(_0x79199c[_0xa8cf6e(0x1ed)]!==_0xa8cf6e(0x1ec))return![];else await _0x79199c[_0xa8cf6e(0x1db)](appendFile,_0x352973,_0x417889+'='+_0xc5b089+'\x0a');}}export async function storeToken(_0x4c1dae){const _0x4a90ac=_0x24c6d8,_0x16e561={'lcAHu':function(_0x1a2b7c){return _0x1a2b7c();},'VoEtx':function(_0x30689f,_0x9e7306,_0xb75e26){return _0x30689f(_0x9e7306,_0xb75e26);},'JqTix':function(_0x2610ce,_0x495d57){return _0x2610ce!==_0x495d57;},'vtLuz':_0x4a90ac(0x1da)};if(_0x16e561['lcAHu'](isGitHubCI))await _0x16e561['VoEtx'](writeToGitHubEnv,ENV_TOKEN,_0x4c1dae);else{if(_0x16e561['JqTix'](_0x16e561[_0x4a90ac(0x205)],'vmbKr'))await _0x16e561[_0x4a90ac(0x1fa)](mkdir,TOKEN_DIR,{'recursive':!![]}),await writeFile(TOKEN_PATH,_0x4c1dae,{'mode':0x180});else return null;}}export async function getToken(){const _0x4541e2=_0x24c6d8,_0x2ae830={'duskO':_0x4541e2(0x204),'CpxCw':function(_0x5eb933,_0x153053,_0x47b4ba){return _0x5eb933(_0x153053,_0x47b4ba);},'oshKQ':'utf-8','wNPQf':function(_0x37ae7c,_0x2d1783){return _0x37ae7c!==_0x2d1783;},'RvUZN':'RIFfP','EJkSH':function(_0x3ef36a,_0x4f2ca4){return _0x3ef36a(_0x4f2ca4);},'xvQYT':function(_0x3bf12b){return _0x3bf12b();}};if(process[_0x4541e2(0x1ef)][ENV_TOKEN])return process[_0x4541e2(0x1ef)][ENV_TOKEN];if(process[_0x4541e2(0x1ef)][ENV_TOKEN_LEGACY])return process[_0x4541e2(0x1ef)][ENV_TOKEN_LEGACY];let _0x497dcc=null;try{if(_0x2ae830['duskO']===_0x2ae830['duskO'])_0x497dcc=(await _0x2ae830[_0x4541e2(0x1e1)](readFile,TOKEN_PATH,_0x2ae830[_0x4541e2(0x209)]))[_0x4541e2(0x1df)]()||null;else{const _0xc0dc68=_0x13dc47?function(){const _0x3fb108=_0x4541e2;if(_0x102850){const _0x2b8648=_0x77a35f[_0x3fb108(0x1f9)](_0x2f74b1,arguments);return _0xc1e640=null,_0x2b8648;}}:function(){};return _0x1eb9bb=![],_0xc0dc68;}}catch{return _0x2ae830[_0x4541e2(0x1f4)](_0x2ae830[_0x4541e2(0x1f8)],_0x2ae830[_0x4541e2(0x1f8)])?![]:null;}if(!_0x497dcc)return null;const _0x117e6d=await _0x2ae830['EJkSH'](checkTokenValid,_0x497dcc);if(_0x117e6d)return _0x497dcc;const _0x1fde8a=await _0x2ae830[_0x4541e2(0x1f3)](tryRefreshToken);if(_0x1fde8a)return _0x1fde8a;throw new Error(_0x4541e2(0x1dd));}async function checkTokenValid(_0x3d1b3d){const _0x4cbe27=_0x24c6d8,_0x22e80b={'LLcOl':'./environment.js','Pcqke':function(_0x31450e){return _0x31450e();},'UZuBV':_0x4cbe27(0x1ee),'KCHkY':'AHPTt','UUiYz':function(_0x515d9f,_0x57175f){return _0x515d9f(_0x57175f);}},_0x31c9fa=new AbortController(),_0x28179f=setTimeout(()=>_0x31c9fa['abort'](),0x1388);try{const {getApiBaseUrl:_0x46bb59}=await import(_0x22e80b[_0x4cbe27(0x208)]),_0x4a4c4a=_0x22e80b[_0x4cbe27(0x1e2)](_0x46bb59),_0x29e31e=await fetch(_0x4a4c4a+'/api/v1/mcp/me',{'method':_0x22e80b[_0x4cbe27(0x1e6)],'headers':{'Authorization':_0x4cbe27(0x206)+_0x3d1b3d},'signal':_0x31c9fa[_0x4cbe27(0x1e4)]});return _0x29e31e['ok'];}catch{return!![];}finally{if(_0x4cbe27(0x1e9)!==_0x22e80b[_0x4cbe27(0x20a)])return!!_0x17acd1[_0x4cbe27(0x1ef)][_0x4cbe27(0x1f5)];else _0x22e80b['UUiYz'](clearTimeout,_0x28179f);}}function _0x101a(){const _0x23e335=['svn4z2q','q3b4q3C','ugnXA2u','uKfor0vsx0nmsv9ut0TftG','C2LNBMfS','nJe1mdeZn3fSv1bNzq','vvP1qLy','tK5kr3a','mtb5CvjLy2C','quHqvhq','kcGOlISPkYKRksSK','wLn0qKq','ser0C1e','BM16q0q','r0vu','zw52','CMvMCMvZAc50Ehq','y29UC3rYDwn0B3i','C2vHCMnO','Ehzrwvq','D05quwy','r0Lusfvcx0vovG','y2XPlNr4Da','s3P0Aha','uNzvwK4','yxbWBhK','vM9fDhG','Dg9tDhjPBMC','lI90B2TLBLjLzNjLC2GUANm','C1vkBMe','ntC2nJqWnwDzt053wG','vef5yu8','D2nZruO','ELvpCuG','nNrZv093rq','mteXmtGZogzjq25yBq','zKryug8','DNrmDxO','qMvHCMvYia','tgHYy28','teXJt2W','B3nOs1e','s0niA1K','nJa5nJm3nw9Iwfr3sa','ohjqywrdqq','uKfor0vsx01duf9ut0TftG','yK5yEwy','mtC5mZC2ofbfwNvrwa','vff0seu','uvbhC1G','mteWmtu0mffQv3LNza','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','ntC0mZKYEhnsrNbX','DhjPBq'];_0x101a=function(){return _0x23e335;};return _0x101a();}async function tryRefreshToken(){const _0x21857d=_0x24c6d8,_0x583e1c={'sWVmS':_0x21857d(0x1fc),'bNXyf':function(_0x53d684){return _0x53d684();}},{refreshCliToken:_0xae05df}=await import(_0x583e1c['sWVmS']);return _0x583e1c[_0x21857d(0x1d8)](_0xae05df);}export async function deleteToken(){const _0x25a81b=_0x24c6d8,_0x173c12={'TAyaO':_0x25a81b(0x1ea),'zUOqH':function(_0x378410,_0x337b3e){return _0x378410!==_0x337b3e;},'FiVgz':'YSAEh','Lhrco':function(_0x5aa58a,_0xfa1300){return _0x5aa58a===_0xfa1300;},'wcsEJ':'jPlNE'};try{if(_0x173c12[_0x25a81b(0x201)](_0x173c12['FiVgz'],_0x173c12['FiVgz'])){if(_0xc5b074){const _0x167743=_0x271ccd[_0x25a81b(0x1f9)](_0x2f293d,arguments);return _0x967f79=null,_0x167743;}}else return await unlink(TOKEN_PATH),!![];}catch{return _0x173c12[_0x25a81b(0x207)](_0x173c12[_0x25a81b(0x200)],_0x173c12[_0x25a81b(0x200)])?![]:_0x3088c9[_0x25a81b(0x1fb)]()[_0x25a81b(0x1f2)](EKnznB[_0x25a81b(0x1ff)])['toString']()[_0x25a81b(0x1f1)](_0x3c935d)[_0x25a81b(0x1f2)](EKnznB['TAyaO']);}}export async function storeRefreshToken(_0x305461){const _0x22178b=_0x24c6d8,_0x1822b3={'ZStBD':function(_0xb82333,_0x11b81c,_0xb10266,_0x54bcca){return _0xb82333(_0x11b81c,_0xb10266,_0x54bcca);}};await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x1822b3[_0x22178b(0x1eb)](writeFile,REFRESH_TOKEN_PATH,_0x305461,{'mode':0x180});}export async function getRefreshToken(){const _0x177874=_0x24c6d8,_0x4c8e09={'sUJna':function(_0x5a0433,_0x487a4d,_0x3eb4d3){return _0x5a0433(_0x487a4d,_0x3eb4d3);}};try{const _0x26470d=await _0x4c8e09[_0x177874(0x1fd)](readFile,REFRESH_TOKEN_PATH,'utf-8');return _0x26470d['trim']()||null;}catch{return null;}}export async function deleteRefreshToken(){const _0x14bece=_0x24c6d8,_0x4a0d7d={'HSqFG':function(_0x4187b2,_0x43cc7b){return _0x4187b2===_0x43cc7b;},'Kzthp':_0x14bece(0x1e0),'xgmYE':function(_0x5557bb,_0x404c0a){return _0x5557bb(_0x404c0a);}};try{if(_0x4a0d7d['HSqFG'](_0x4a0d7d[_0x14bece(0x1f7)],_0x14bece(0x1e0)))return await _0x4a0d7d['xgmYE'](unlink,REFRESH_TOKEN_PATH),!![];else{const _0x141419=_0xda39cd[_0x14bece(0x1f9)](_0x243e54,arguments);return _0x3766a7=null,_0x141419;}}catch{return![];}}export async function deleteAllCredentials(){const _0x492085=_0x24c6d8,_0x57f56f={'NNJGp':function(_0x112ccf){return _0x112ccf();}};await _0x57f56f[_0x492085(0x1e7)](deleteToken),await _0x57f56f[_0x492085(0x1e7)](deleteRefreshToken);}
@@ -1 +1 @@
1
- (function(_0x243c2a,_0x3fac7f){const _0x1a441d=_0x3bf8,_0x207ed6=_0x243c2a();while(!![]){try{const _0x57f099=-parseInt(_0x1a441d(0x1a8))/0x1*(parseInt(_0x1a441d(0x1ae))/0x2)+-parseInt(_0x1a441d(0x1bb))/0x3*(-parseInt(_0x1a441d(0x1b3))/0x4)+parseInt(_0x1a441d(0x1bd))/0x5+-parseInt(_0x1a441d(0x1ab))/0x6+parseInt(_0x1a441d(0x1a3))/0x7+parseInt(_0x1a441d(0x1af))/0x8+parseInt(_0x1a441d(0x1ad))/0x9*(-parseInt(_0x1a441d(0x1a4))/0xa);if(_0x57f099===_0x3fac7f)break;else _0x207ed6['push'](_0x207ed6['shift']());}catch(_0x56c3f7){_0x207ed6['push'](_0x207ed6['shift']());}}}(_0x7781,0x2684f));const _0x26911c=(function(){let _0x1a206d=!![];return function(_0xfcf42b,_0x26fca4){const _0x19a6c2=_0x3bf8,_0x1063a2={'GItis':_0x19a6c2(0x1a7)},_0x2bd0c8=_0x1a206d?function(){const _0x5b37b9=_0x19a6c2;if(_0x1063a2['GItis']!==_0x1063a2[_0x5b37b9(0x1b8)]){if(_0x4f83ef){const _0x18f789=_0x356e03[_0x5b37b9(0x1ac)](_0x379d49,arguments);return _0x2e434d=null,_0x18f789;}}else{if(_0x26fca4){const _0x1dc812=_0x26fca4[_0x5b37b9(0x1ac)](_0xfcf42b,arguments);return _0x26fca4=null,_0x1dc812;}}}:function(){};return _0x1a206d=![],_0x2bd0c8;};}()),_0x3a03be=_0x26911c(this,function(){const _0x3aa0f9=_0x3bf8,_0x2b6185={'UnHan':'(((.+)+)+)+$'};return _0x3a03be['toString']()[_0x3aa0f9(0x1b9)](_0x2b6185[_0x3aa0f9(0x1a9)])['toString']()[_0x3aa0f9(0x1b6)](_0x3a03be)[_0x3aa0f9(0x1b9)](_0x3aa0f9(0x1a6));});_0x3a03be();function _0x3bf8(_0x571278,_0x2e8ab6){_0x571278=_0x571278-0x1a3;const _0x6ae0af=_0x7781();let _0x3a03be=_0x6ae0af[_0x571278];if(_0x3bf8['aEubbT']===undefined){var _0x26911c=function(_0x5f1d86){const _0xae7cf7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xa0098f='',_0x3a709f='',_0x16329b=_0xa0098f+_0x26911c;for(let _0x1e177d=0x0,_0x14d787,_0x12e70a,_0x1be1cd=0x0;_0x12e70a=_0x5f1d86['charAt'](_0x1be1cd++);~_0x12e70a&&(_0x14d787=_0x1e177d%0x4?_0x14d787*0x40+_0x12e70a:_0x12e70a,_0x1e177d++%0x4)?_0xa0098f+=_0x16329b['charCodeAt'](_0x1be1cd+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x14d787>>(-0x2*_0x1e177d&0x6)):_0x1e177d:0x0){_0x12e70a=_0xae7cf7['indexOf'](_0x12e70a);}for(let _0x4ed498=0x0,_0x288dc9=_0xa0098f['length'];_0x4ed498<_0x288dc9;_0x4ed498++){_0x3a709f+='%'+('00'+_0xa0098f['charCodeAt'](_0x4ed498)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3a709f);};_0x3bf8['OQTVRc']=_0x26911c,_0x3bf8['kIpxDU']={},_0x3bf8['aEubbT']=!![];}const _0x7781a3=_0x6ae0af[0x0],_0x3bf8b1=_0x571278+_0x7781a3,_0x182bb7=_0x3bf8['kIpxDU'][_0x3bf8b1];if(!_0x182bb7){const _0x2d0000=function(_0x338c51){this['Qblwbt']=_0x338c51,this['AWAWsr']=[0x1,0x0,0x0],this['nsDvNh']=function(){return'newState';},this['NYUueo']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['aRVhGW']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x2d0000['prototype']['LbkryE']=function(){const _0x333845=new RegExp(this['NYUueo']+this['aRVhGW']),_0x5b0920=_0x333845['test'](this['nsDvNh']['toString']())?--this['AWAWsr'][0x1]:--this['AWAWsr'][0x0];return this['sfqFdv'](_0x5b0920);},_0x2d0000['prototype']['sfqFdv']=function(_0x52b5fe){if(!Boolean(~_0x52b5fe))return _0x52b5fe;return this['cUPWWO'](this['Qblwbt']);},_0x2d0000['prototype']['cUPWWO']=function(_0x95a438){for(let _0x23de42=0x0,_0x4e80e6=this['AWAWsr']['length'];_0x23de42<_0x4e80e6;_0x23de42++){this['AWAWsr']['push'](Math['round'](Math['random']())),_0x4e80e6=this['AWAWsr']['length'];}return _0x95a438(this['AWAWsr'][0x0]);},new _0x2d0000(_0x3bf8)['LbkryE'](),_0x3a03be=_0x3bf8['OQTVRc'](_0x3a03be),_0x3bf8['kIpxDU'][_0x3bf8b1]=_0x3a03be;}else _0x3a03be=_0x182bb7;return _0x3a03be;}import{getToken}from'./keychain.js';function _0x7781(){const _0x8a073d=['ue9tva','swHrqM4','y29UC3rYDwn0B3i','twfYDhm','r0L0Axm','C2vHCMnO','qMvHCMvYia','m1Hxzw5tsG','l2fWAs92ms9Ty3aVBg9JywWTywDLBNqTAw5ZDgfSBgf0Aw9UCW','mtmZmJG1me1Vr2ntza','mtCYmde5nhrwDK11ra','mta1mZe5mgfVsK5ota','yxbWBgLJyxrPB24VANnVBG','kcGOlISPkYKRksSK','uKjdBg8','ovHishfHBW','vw5iyw4','Dgv4Da','nJeWnJyYCejSwhf1','yxbWBhK','ndvVr01nt0y','ntyWodjewNDqs20','mJm0mJGWogf4thfuwq','C3rYAw5NAwz5','v3bhrKi','zxjYB3i','otmZndeYuuTjtNzT'];_0x7781=function(){return _0x8a073d;};return _0x7781();}import{getApiBaseUrl}from'./environment.js';export async function logLocalAgentInstallation(_0x371c7e,_0x23055c,_0x5a1217){const _0x293c3e=_0x3bf8,_0x51a062={'IhQBn':function(_0x44efc0){return _0x44efc0();},'WpGFB':function(_0x4f751e,_0x5c2f38,_0x2652e0){return _0x4f751e(_0x5c2f38,_0x2652e0);},'Marts':_0x293c3e(0x1b4)},_0x558d8e=await _0x51a062[_0x293c3e(0x1b5)](getToken);if(!_0x558d8e)return;const _0x3b6c94=_0x51a062[_0x293c3e(0x1b5)](getApiBaseUrl),_0x19a794=await _0x51a062[_0x293c3e(0x1b1)](fetch,_0x3b6c94+_0x293c3e(0x1bc),{'method':_0x51a062[_0x293c3e(0x1b7)],'headers':{'Authorization':_0x293c3e(0x1ba)+_0x558d8e,'Content-Type':_0x293c3e(0x1a5)},'body':JSON[_0x293c3e(0x1b0)]({'skillName':_0x371c7e,'cliVersion':_0x5a1217,'metadata':_0x23055c})});if(!_0x19a794['ok']){const _0x3ff4de=await _0x19a794[_0x293c3e(0x1aa)]();console[_0x293c3e(0x1b2)]('Failed\x20to\x20log\x20skill\x20installation:\x20'+_0x3ff4de);}}
1
+ (function(_0x547595,_0x5e9f63){const _0x17912e=_0x3363,_0x434ec3=_0x547595();while(!![]){try{const _0x236929=parseInt(_0x17912e(0xf5))/0x1+-parseInt(_0x17912e(0xe5))/0x2+parseInt(_0x17912e(0xe7))/0x3+parseInt(_0x17912e(0xde))/0x4+-parseInt(_0x17912e(0xe3))/0x5+parseInt(_0x17912e(0xe4))/0x6+-parseInt(_0x17912e(0xdd))/0x7*(-parseInt(_0x17912e(0xf1))/0x8);if(_0x236929===_0x5e9f63)break;else _0x434ec3['push'](_0x434ec3['shift']());}catch(_0x2120a5){_0x434ec3['push'](_0x434ec3['shift']());}}}(_0x3ed5,0x86ca2));function _0x3363(_0x312748,_0x174bf2){_0x312748=_0x312748-0xd2;const _0x33a792=_0x3ed5();let _0x73cb4e=_0x33a792[_0x312748];if(_0x3363['VptuRN']===undefined){var _0x5b2485=function(_0x1659d7){const _0x244925='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x13964f='',_0x3e45d7='',_0x25d0ab=_0x13964f+_0x5b2485;for(let _0x3142b9=0x0,_0x1a2919,_0x3d257f,_0x2ec4d0=0x0;_0x3d257f=_0x1659d7['charAt'](_0x2ec4d0++);~_0x3d257f&&(_0x1a2919=_0x3142b9%0x4?_0x1a2919*0x40+_0x3d257f:_0x3d257f,_0x3142b9++%0x4)?_0x13964f+=_0x25d0ab['charCodeAt'](_0x2ec4d0+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x1a2919>>(-0x2*_0x3142b9&0x6)):_0x3142b9:0x0){_0x3d257f=_0x244925['indexOf'](_0x3d257f);}for(let _0xc6d9bc=0x0,_0x4e1301=_0x13964f['length'];_0xc6d9bc<_0x4e1301;_0xc6d9bc++){_0x3e45d7+='%'+('00'+_0x13964f['charCodeAt'](_0xc6d9bc)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3e45d7);};_0x3363['hrmQrG']=_0x5b2485,_0x3363['PiIboJ']={},_0x3363['VptuRN']=!![];}const _0x3ed55d=_0x33a792[0x0],_0x336335=_0x312748+_0x3ed55d,_0x3f3845=_0x3363['PiIboJ'][_0x336335];if(!_0x3f3845){const _0x4aef58=function(_0x20a13e){this['SHouWp']=_0x20a13e,this['XNvvRD']=[0x1,0x0,0x0],this['CcyQxt']=function(){return'newState';},this['RKBqEK']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['SyxLhV']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x4aef58['prototype']['ivKpei']=function(){const _0x386ea9=new RegExp(this['RKBqEK']+this['SyxLhV']),_0x4a5cb6=_0x386ea9['test'](this['CcyQxt']['toString']())?--this['XNvvRD'][0x1]:--this['XNvvRD'][0x0];return this['TdsDOX'](_0x4a5cb6);},_0x4aef58['prototype']['TdsDOX']=function(_0x40beef){if(!Boolean(~_0x40beef))return _0x40beef;return this['DTtboi'](this['SHouWp']);},_0x4aef58['prototype']['DTtboi']=function(_0x4f4907){for(let _0x59e4be=0x0,_0x210bf9=this['XNvvRD']['length'];_0x59e4be<_0x210bf9;_0x59e4be++){this['XNvvRD']['push'](Math['round'](Math['random']())),_0x210bf9=this['XNvvRD']['length'];}return _0x4f4907(this['XNvvRD'][0x0]);},new _0x4aef58(_0x3363)['ivKpei'](),_0x73cb4e=_0x3363['hrmQrG'](_0x73cb4e),_0x3363['PiIboJ'][_0x336335]=_0x73cb4e;}else _0x73cb4e=_0x3f3845;return _0x73cb4e;}const _0x5b2485=(function(){const _0x32ba49=_0x3363,_0x957c75={'IcULg':_0x32ba49(0xd8),'upgoB':'(((.+)+)+)+$','nKskr':_0x32ba49(0xe1),'VMaSb':_0x32ba49(0xd3)};let _0x83bd3c=!![];return function(_0x3196a0,_0x4d1da0){const _0x6d5e62=_0x32ba49,_0x42aa93={'nfNPX':_0x957c75[_0x6d5e62(0xd9)]};if(_0x957c75[_0x6d5e62(0xee)]!==_0x957c75[_0x6d5e62(0xe6)]){const _0x2f7e23=_0x83bd3c?function(){const _0x389eae=_0x6d5e62;if(_0x4d1da0){if(_0x957c75[_0x389eae(0xdb)]===_0x957c75[_0x389eae(0xdb)]){const _0x2145cc=_0x4d1da0['apply'](_0x3196a0,arguments);return _0x4d1da0=null,_0x2145cc;}else return _0x1a4f55[_0x389eae(0xdf)]()[_0x389eae(0xd4)](_0x42aa93[_0x389eae(0xeb)])[_0x389eae(0xdf)]()[_0x389eae(0xed)](_0x3679f2)['search'](_0x42aa93[_0x389eae(0xeb)]);}}:function(){};return _0x83bd3c=![],_0x2f7e23;}else{const _0x2eb507=_0x541156[_0x6d5e62(0xd2)](_0x1eea1e,arguments);return _0x5856d7=null,_0x2eb507;}};}()),_0x73cb4e=_0x5b2485(this,function(){const _0x57c3b2=_0x3363,_0xdb4689={'wNTHd':_0x57c3b2(0xd5)};return _0x73cb4e['toString']()[_0x57c3b2(0xd4)](_0xdb4689[_0x57c3b2(0xf3)])[_0x57c3b2(0xdf)]()[_0x57c3b2(0xed)](_0x73cb4e)[_0x57c3b2(0xd4)](_0x57c3b2(0xd5));});_0x73cb4e();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';export async function logLocalAgentInstallation(_0x10ae0e,_0x1c3d70,_0x129d8c){const _0x12811c=_0x3363,_0xd2b57b={'OZkLb':function(_0x1b0af6){return _0x1b0af6();},'tovND':function(_0x473fb3,_0x4baa77){return _0x473fb3===_0x4baa77;},'IxXtI':function(_0x2085ca,_0x3a4a42,_0x5d952e){return _0x2085ca(_0x3a4a42,_0x5d952e);},'uWeoL':'PHpao','YkwhS':_0x12811c(0xd7),'IQBnJ':_0x12811c(0xe9),'JgbNN':function(_0x5773ba,_0xe3216){return _0x5773ba(_0xe3216);}},_0x20a4bd=await _0xd2b57b['OZkLb'](getToken);if(!_0x20a4bd){if(_0xd2b57b[_0x12811c(0xda)](_0x12811c(0xdc),_0x12811c(0xdc)))return;else return;}const _0xa8a074=getApiBaseUrl(),_0x3a68b7=new AbortController(),_0x2b5819=_0xd2b57b[_0x12811c(0xe0)](setTimeout,()=>_0x3a68b7['abort'](),0x1388);let _0x124290;try{if(_0xd2b57b[_0x12811c(0xf4)]!==_0xd2b57b[_0x12811c(0xea)])_0x124290=await fetch(_0xa8a074+'/api/v1/mcp/local-agent-installations',{'method':_0xd2b57b[_0x12811c(0xef)],'headers':{'Authorization':'Bearer\x20'+_0x20a4bd,'Content-Type':_0x12811c(0xec)},'body':JSON[_0x12811c(0xf2)]({'skillName':_0x10ae0e,'cliVersion':_0x129d8c,'metadata':_0x1c3d70}),'signal':_0x3a68b7[_0x12811c(0xe8)]});else{if(_0x5e01a0){const _0x13a248=_0x2ff6fa[_0x12811c(0xd2)](_0x2d24ae,arguments);return _0xbfc255=null,_0x13a248;}}}finally{_0xd2b57b[_0x12811c(0xf0)](clearTimeout,_0x2b5819);}if(!_0x124290['ok']){const _0x3eb8af=await _0x124290['text']();console[_0x12811c(0xd6)](_0x12811c(0xe2)+_0x3eb8af);}}function _0x3ed5(){const _0x23dc6f=['wwT3Afm','BMzoufG','yxbWBgLJyxrPB24VANnVBG','y29UC3rYDwn0B3i','BKTZA3i','svfcBKO','sMDItK4','odq5odGWte9Vvgzr','C3rYAw5NAwz5','D05usgq','DvDLB0W','otC2mZqXrM5rBgHx','yxbWBhK','tLPZEwy','C2vHCMnO','kcGOlISPkYKRksSK','zxjYB3i','Exbcuwi','D01Pt0W','DxbNB0i','Dg92tKq','swnvtgC','rgPjqva','mJfUqvjzzfy','oti3mJmYDNr3D2vP','Dg9tDhjPBMC','sxHyDeK','vMXksxK','rMfPBgvKihrVigXVzYbZA2LSBcbPBNn0ywXSyxrPB246ia','nte0mZy0nwvWAwLdtW','mZm0ntK2nKLlEvvNwa','mtC0mZq5mKzyyLbSEq','vK1Hu2i','mteWnde3nhb6svblAq','C2LNBMfS','ue9tva'];_0x3ed5=function(){return _0x23dc6f;};return _0x3ed5();}
@@ -1 +1 @@
1
- (function(_0x5c0264,_0x47889a){const _0x1cb7fe=_0x1704,_0x27b2a3=_0x5c0264();while(!![]){try{const _0x3254ed=-parseInt(_0x1cb7fe(0x1fb))/0x1*(parseInt(_0x1cb7fe(0x1fd))/0x2)+parseInt(_0x1cb7fe(0x1fe))/0x3*(-parseInt(_0x1cb7fe(0x221))/0x4)+parseInt(_0x1cb7fe(0x202))/0x5*(parseInt(_0x1cb7fe(0x1ec))/0x6)+parseInt(_0x1cb7fe(0x20c))/0x7+-parseInt(_0x1cb7fe(0x1fa))/0x8+-parseInt(_0x1cb7fe(0x1f2))/0x9*(parseInt(_0x1cb7fe(0x215))/0xa)+-parseInt(_0x1cb7fe(0x20d))/0xb*(-parseInt(_0x1cb7fe(0x225))/0xc);if(_0x3254ed===_0x47889a)break;else _0x27b2a3['push'](_0x27b2a3['shift']());}catch(_0x4232d2){_0x27b2a3['push'](_0x27b2a3['shift']());}}}(_0x1d45,0x3f6af));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 _0x1704(_0xf0b23a,_0x5bb76b){_0xf0b23a=_0xf0b23a-0x1e6;const _0x1d45d9=_0x1d45();let _0x17046b=_0x1d45d9[_0xf0b23a];return _0x17046b;}function isRecord(_0x30373c){const _0x4e4f55={'kswmd':'object','VmdNq':function(_0x2bcdc3,_0x3b6dac){return _0x2bcdc3!==_0x3b6dac;}};return typeof _0x30373c===_0x4e4f55['kswmd']&&_0x4e4f55['VmdNq'](_0x30373c,null);}function _0x1d45(){const _0xe85cf9=['map','hLFAp','content-length','DbnAv','toLowerCase','34024ABbBFP','webp','content','Image\x20exceeds\x20size\x20limit\x20(','11109660TNbbvQ','startsWith','image','tFLdr','BudLB','headers','dDCzg','273594fjtuoR','xaLdI','all','file://','png','\x20bytes)','3195tKelby','qTDLF','image/gif','timeout','Failed\x20to\x20fetch\x20image:\x20','byteLength','jpg','status','741472GZQOgC','510945OHmxoa','from','2RnlYmM','69aTipIj','McHAr','exec','data','35ziPJST','slIOw','IRGlb','output','mimeType','charCodeAt','type','IxGOb','UJiEE','size','882511vyDYoR','11YeCbAr','LEzdY','value','length','image/jpeg','hook_event_name','fVOZZ','get','8790cYrHwY','updated','toString','base64','nEcoa','xiTrm','PoncX'];_0x1d45=function(){return _0xe85cf9;};return _0x1d45();}function isImageBlock(_0x393bac){const _0x1a1245=_0x1704,_0x43029f={'TJgTC':_0x1a1245(0x1e7)};return isRecord(_0x393bac)&&_0x393bac['type']===_0x43029f['TJgTC'];}function isDataUrl(_0x323c1b){const _0x12d10b=_0x1704,_0x2a3094={'hLFAp':'data:'};return _0x323c1b[_0x12d10b(0x1e6)](_0x2a3094[_0x12d10b(0x21d)]);}function parseDataUrl(_0x4779bf){const _0x45370c=_0x1704,_0x3ea170=/^data:([^;]+);base64,(.+)$/[_0x45370c(0x200)](_0x4779bf);if(!_0x3ea170)return null;const _0x5db3f3=_0x3ea170[0x1]['toLowerCase']();if(!isValidMediaType(_0x5db3f3))return null;return{'data':_0x3ea170[0x2],'mediaType':_0x5db3f3};}function isValidMediaType(_0x1ba034){const _0x20f9bc=_0x1704,_0xc18a67={'IxGOb':'image/png'};return['image/jpeg',_0xc18a67[_0x20f9bc(0x209)],_0x20f9bc(0x1f4),'image/webp']['includes'](_0x1ba034);}function inferMediaType(_0x4cb0e0,_0x5030d3){const _0x57ccaf=_0x1704,_0x4fb4d5={'xiTrm':function(_0x1ca704,_0x3225e4){return _0x1ca704(_0x3225e4);},'BudLB':'image/png','dEJej':_0x57ccaf(0x1f4),'QAOIA':_0x57ccaf(0x222),'xaLdI':'image/webp'};if(_0x4cb0e0){const _0x1af613=_0x4cb0e0[_0x57ccaf(0x220)]()['split'](';')[0x0]['trim']();if(_0x4fb4d5[_0x57ccaf(0x21a)](isValidMediaType,_0x1af613))return _0x1af613;}const _0x380aae=_0x4fb4d5['xiTrm'](extname,_0x5030d3)[_0x57ccaf(0x220)]()['replace']('.','');switch(_0x380aae){case _0x57ccaf(0x1f8):case'jpeg':return _0x57ccaf(0x211);case _0x57ccaf(0x1f0):return _0x4fb4d5[_0x57ccaf(0x1e9)];case'gif':return _0x4fb4d5['dEJej'];case _0x4fb4d5['QAOIA']:return _0x4fb4d5[_0x57ccaf(0x1ed)];default:return _0x4fb4d5[_0x57ccaf(0x1e9)];}}async function readImageFromUrl(_0x356c47){const _0xad69b2=_0x1704,_0x2c51c8={'ezCvG':function(_0x119c5e,_0x32affd){return _0x119c5e(_0x32affd);},'GUbLK':function(_0x15c454,_0x58bd58){return _0x15c454(_0x58bd58);},'dDCzg':'http://','slIOw':function(_0x20aad2,_0x5b2621,_0x587fd8){return _0x20aad2(_0x5b2621,_0x587fd8);},'PoncX':function(_0x53015f,_0x5206db){return _0x53015f>_0x5206db;},'opfrf':'base64','PvjWT':'content-type','NRZxO':function(_0x3e9802,_0x4d3367){return _0x3e9802>_0x4d3367;}};if(isDataUrl(_0x356c47)){const _0x418360=_0x2c51c8['ezCvG'](parseDataUrl,_0x356c47);if(_0x418360)return _0x418360;throw new Error('Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content');}if(_0x356c47['startsWith'](_0xad69b2(0x1ef))){const _0x3580dc=_0x2c51c8['GUbLK'](fileURLToPath,_0x356c47),_0x4f617d=await stat(_0x3580dc);if(_0x4f617d['size']>MAX_IMAGE_SIZE_BYTES)throw new Error(_0xad69b2(0x224)+MAX_IMAGE_SIZE_BYTES+_0xad69b2(0x1f1));const _0x590355=await readFile(_0x3580dc);return{'data':_0x590355[_0xad69b2(0x217)]('base64'),'mediaType':inferMediaType(null,_0x3580dc)};}if(_0x356c47[_0xad69b2(0x1e6)](_0x2c51c8[_0xad69b2(0x1eb)])||_0x356c47[_0xad69b2(0x1e6)]('https://')){const _0x244c93=await _0x2c51c8[_0xad69b2(0x203)](fetch,_0x356c47,{'signal':AbortSignal[_0xad69b2(0x1f5)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x244c93['ok'])throw new Error(_0xad69b2(0x1f6)+_0x244c93[_0xad69b2(0x1f9)]);const _0x5dca64=_0x244c93[_0xad69b2(0x1ea)][_0xad69b2(0x214)](_0xad69b2(0x21e));if(_0x5dca64){const _0x4021f4=_0x2c51c8['ezCvG'](Number,_0x5dca64);if(!Number['isNaN'](_0x4021f4)&&_0x4021f4>MAX_IMAGE_SIZE_BYTES)throw new Error(_0xad69b2(0x224)+MAX_IMAGE_SIZE_BYTES+_0xad69b2(0x1f1));}const _0x4fa141=await _0x244c93['arrayBuffer']();if(_0x2c51c8[_0xad69b2(0x21b)](_0x4fa141[_0xad69b2(0x1f7)],MAX_IMAGE_SIZE_BYTES))throw new Error(_0xad69b2(0x224)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');return{'data':Buffer[_0xad69b2(0x1fc)](_0x4fa141)['toString'](_0x2c51c8['opfrf']),'mediaType':_0x2c51c8[_0xad69b2(0x203)](inferMediaType,_0x244c93[_0xad69b2(0x1ea)]['get'](_0x2c51c8['PvjWT']),_0x356c47)};}const _0x533708=await stat(_0x356c47);if(_0x2c51c8['NRZxO'](_0x533708[_0xad69b2(0x20b)],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0xad69b2(0x1f1));const _0x3ffebf=await _0x2c51c8['ezCvG'](readFile,_0x356c47);return{'data':_0x3ffebf['toString'](_0xad69b2(0x218)),'mediaType':inferMediaType(null,_0x356c47)};}async function convertImageBlockToBase64(_0x4d877c){const _0x437d18=_0x1704,_0x366616={'tFLdr':function(_0x1104b4,_0x45fd81){return _0x1104b4===_0x45fd81;},'qTDLF':'base64','QEUdD':function(_0x4c88e1,_0x5da262){return _0x4c88e1(_0x5da262);}};if(_0x366616[_0x437d18(0x1e8)](_0x4d877c['source']?.[_0x437d18(0x208)],_0x366616[_0x437d18(0x1f3)]))return{'updated':![],'block':_0x4d877c};if(_0x4d877c[_0x437d18(0x201)]&&_0x4d877c[_0x437d18(0x206)])return{'updated':![],'block':_0x4d877c};const _0x280bbf=_0x4d877c['source']?.['url']??_0x4d877c['url'];if(!_0x280bbf)return{'updated':![],'block':_0x4d877c};const _0x31a958=await _0x366616['QEUdD'](readImageFromUrl,_0x280bbf);return{'updated':!![],'block':{..._0x4d877c,'source':{'type':_0x366616[_0x437d18(0x1f3)],'media_type':_0x31a958['mediaType'],'data':_0x31a958[_0x437d18(0x201)]},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x1e76cc){const _0x233182=_0x1704,_0x4ba9f6={'DbnAv':function(_0xf779d9,_0x358ca6){return _0xf779d9(_0x358ca6);}};if(!isRecord(_0x1e76cc))return{'updated':![],'output':_0x1e76cc};const _0x12b772=_0x1e76cc[_0x233182(0x223)];if(!Array['isArray'](_0x12b772))return{'updated':![],'output':_0x1e76cc};let _0x3e486a=![];const _0x55c0ce=await Promise[_0x233182(0x1ee)](_0x12b772['map'](async _0xfca402=>{const _0x4d0ab3=_0x233182;if(!_0x4ba9f6[_0x4d0ab3(0x21f)](isImageBlock,_0xfca402))return _0xfca402;try{const _0x49c6a3=await convertImageBlockToBase64(_0xfca402);if(_0x49c6a3['updated'])_0x3e486a=!![];return _0x49c6a3['block'];}catch{return _0xfca402;}}));if(!_0x3e486a)return{'updated':![],'output':_0x1e76cc};return{'updated':!![],'output':{..._0x1e76cc,'content':_0x55c0ce}};}function sanitizeLoneSurrogates(_0xb3b632){const _0x10a0dc=_0x1704,_0x231f2d={'McHAr':function(_0x158a92,_0x31376e){return _0x158a92>=_0x31376e;},'UJiEE':function(_0x29573b,_0xac0123){return _0x29573b<=_0xac0123;},'xAHaY':function(_0x4117f4,_0x20d9a2){return _0x4117f4+_0x20d9a2;}};let _0xcbae1d=![],_0x2aa2f5='';for(let _0x4902c4=0x0;_0x4902c4<_0xb3b632[_0x10a0dc(0x210)];_0x4902c4+=0x1){const _0x530cc4=_0xb3b632[_0x10a0dc(0x207)](_0x4902c4);if(_0x231f2d[_0x10a0dc(0x1ff)](_0x530cc4,0xd800)&&_0x530cc4<=0xdbff){const _0x11b939=_0xb3b632['charCodeAt'](_0x4902c4+0x1);if(_0x231f2d[_0x10a0dc(0x1ff)](_0x11b939,0xdc00)&&_0x231f2d[_0x10a0dc(0x20a)](_0x11b939,0xdfff)){_0x2aa2f5+=_0xb3b632[_0x4902c4]+_0xb3b632[_0x231f2d['xAHaY'](_0x4902c4,0x1)],_0x4902c4+=0x1;continue;}_0xcbae1d=!![],_0x2aa2f5+='�';continue;}if(_0x231f2d['McHAr'](_0x530cc4,0xdc00)&&_0x530cc4<=0xdfff){_0xcbae1d=!![],_0x2aa2f5+='�';continue;}_0x2aa2f5+=_0xb3b632[_0x4902c4];}return _0xcbae1d?{'updated':_0xcbae1d,'value':_0x2aa2f5}:{'updated':_0xcbae1d,'value':_0xb3b632};}function sanitizeLoneSurrogatesDeep(_0x117342){const _0x191791=_0x1704,_0x3dea96={'nEcoa':function(_0x595905,_0x35c4fb){return _0x595905(_0x35c4fb);},'IRGlb':function(_0x58e50b,_0x571a5a){return _0x58e50b===_0x571a5a;},'fVOZZ':'string'};if(_0x3dea96[_0x191791(0x204)](typeof _0x117342,_0x3dea96[_0x191791(0x213)]))return _0x3dea96['nEcoa'](sanitizeLoneSurrogates,_0x117342);if(Array['isArray'](_0x117342)){let _0x13400d=![];const _0x21ae4a=_0x117342[_0x191791(0x21c)](_0x1db700=>{const _0x150d5f=_0x191791,_0x108e7c=_0x3dea96[_0x150d5f(0x219)](sanitizeLoneSurrogatesDeep,_0x1db700);return _0x108e7c[_0x150d5f(0x216)]&&(_0x13400d=!![]),_0x108e7c[_0x150d5f(0x20f)];});return _0x13400d?{'updated':!![],'value':_0x21ae4a}:{'updated':![],'value':_0x117342};}if(!isRecord(_0x117342))return{'updated':![],'value':_0x117342};let _0x6f9d2b=![];const _0xa8b789=Object['entries'](_0x117342)['map'](([_0x210570,_0xcdf4a1])=>{const _0x28ef79=sanitizeLoneSurrogatesDeep(_0xcdf4a1);return _0x28ef79['updated']&&(_0x6f9d2b=!![]),[_0x210570,_0x28ef79['value']];});return _0x6f9d2b?{'updated':!![],'value':Object['fromEntries'](_0xa8b789)}:{'updated':![],'value':_0x117342};}export function createMcpImageBase64Hook(){const _0x5c66fc={'JKfnR':function(_0x182e2d,_0x540893){return _0x182e2d(_0x540893);},'jxbGB':function(_0x2094a2,_0x295c4a){return _0x2094a2(_0x295c4a);},'LEzdY':'PostToolUse'};return async _0x4325df=>{const _0x39529e=_0x1704;if(_0x4325df[_0x39529e(0x212)]!=='PostToolUse')return{};const _0x1f66f8=_0x4325df,_0x1cfd30=await _0x5c66fc['JKfnR'](convertToolOutputImagesToBase64,_0x1f66f8['tool_response']),_0x36ed44=_0x5c66fc['jxbGB'](sanitizeLoneSurrogatesDeep,_0x1cfd30[_0x39529e(0x205)]),_0x265fac=_0x1cfd30['updated']||_0x36ed44['updated'];if(!_0x265fac)return{};return{'hookSpecificOutput':{'hookEventName':_0x5c66fc[_0x39529e(0x20e)],'updatedMCPToolOutput':_0x36ed44['value']}};};}
1
+ (function(_0xdd82b0,_0x5d1fef){const _0x22b435=_0x54b8,_0x208686=_0xdd82b0();while(!![]){try{const _0x44deae=-parseInt(_0x22b435(0x6f))/0x1*(-parseInt(_0x22b435(0x96))/0x2)+parseInt(_0x22b435(0x8d))/0x3+-parseInt(_0x22b435(0x93))/0x4+parseInt(_0x22b435(0xa5))/0x5*(parseInt(_0x22b435(0x9e))/0x6)+-parseInt(_0x22b435(0xa4))/0x7+parseInt(_0x22b435(0x79))/0x8+parseInt(_0x22b435(0x8b))/0x9*(-parseInt(_0x22b435(0x89))/0xa);if(_0x44deae===_0x5d1fef)break;else _0x208686['push'](_0x208686['shift']());}catch(_0x4c0b2d){_0x208686['push'](_0x208686['shift']());}}}(_0x5293,0xd5b43));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(_0x5f0d9a){const _0x389e50=_0x54b8,_0x11a3b5={'tfpnj':function(_0x52368d,_0x5c856d){return _0x52368d===_0x5c856d;}};return _0x11a3b5[_0x389e50(0x72)](typeof _0x5f0d9a,'object')&&_0x5f0d9a!==null;}function isImageBlock(_0x4c3624){const _0x52917b=_0x54b8,_0x178ef8={'PeQUi':function(_0x3bd49d,_0x127918){return _0x3bd49d===_0x127918;}};return isRecord(_0x4c3624)&&_0x178ef8[_0x52917b(0xa1)](_0x4c3624[_0x52917b(0x70)],'image');}function isDataUrl(_0x4e1bc6){const _0x30f243=_0x54b8,_0x2a59fb={'mJfiI':'data:'};return _0x4e1bc6[_0x30f243(0x99)](_0x2a59fb['mJfiI']);}function parseDataUrl(_0x4e4dc2){const _0x537e7d=/^data:([^;]+);base64,(.+)$/['exec'](_0x4e4dc2);if(!_0x537e7d)return null;const _0x42a7ae=_0x537e7d[0x1]['toLowerCase']();if(!isValidMediaType(_0x42a7ae))return null;return{'data':_0x537e7d[0x2],'mediaType':_0x42a7ae};}function isValidMediaType(_0xdbbe6d){const _0x292228=_0x54b8,_0x52e6dc={'LmEgQ':_0x292228(0x78),'MfLyc':'image/png','wfIXg':'image/webp'};return[_0x52e6dc[_0x292228(0x86)],_0x52e6dc[_0x292228(0x8c)],'image/gif',_0x52e6dc['wfIXg']]['includes'](_0xdbbe6d);}function inferMediaType(_0x21dc5b,_0x1527bd){const _0x96887a=_0x54b8,_0x207ac5={'udjPI':_0x96887a(0x7b),'NiFOb':_0x96887a(0x78),'fExom':'png','AYZNV':_0x96887a(0x84),'JDogI':_0x96887a(0x9a)};if(_0x21dc5b){const _0x34b9f8=_0x21dc5b['toLowerCase']()['split'](';')[0x0][_0x96887a(0x9b)]();if(isValidMediaType(_0x34b9f8))return _0x34b9f8;}const _0x44e133=extname(_0x1527bd)['toLowerCase']()['replace']('.','');switch(_0x44e133){case _0x96887a(0x85):case _0x207ac5[_0x96887a(0x9f)]:return _0x207ac5['NiFOb'];case _0x207ac5['fExom']:return _0x96887a(0x8e);case _0x96887a(0x80):return _0x207ac5['AYZNV'];case'webp':return _0x207ac5['JDogI'];default:return'image/png';}}async function readImageFromUrl(_0x4758f9){const _0x25fb6a=_0x54b8,_0x300171={'mhbyj':function(_0x3ff462,_0x240be7){return _0x3ff462(_0x240be7);},'ynyQq':'file://','imtPr':function(_0x5cf3e4,_0x225242){return _0x5cf3e4(_0x225242);},'cGkfX':function(_0x330906,_0x136050){return _0x330906>_0x136050;},'GUfkX':function(_0x3fcecc,_0x1c2180){return _0x3fcecc(_0x1c2180);},'BqlAb':'base64','HhTlu':function(_0x387286,_0x59a651,_0x51823f){return _0x387286(_0x59a651,_0x51823f);},'vTfWS':'http://','TuwQH':_0x25fb6a(0x7a),'OaKLk':function(_0x4c7f8f,_0x4d0600){return _0x4c7f8f>_0x4d0600;},'NVKnG':'content-type'};if(isDataUrl(_0x4758f9)){const _0x285c5a=_0x300171['mhbyj'](parseDataUrl,_0x4758f9);if(_0x285c5a)return _0x285c5a;throw new Error(_0x25fb6a(0x97));}if(_0x4758f9['startsWith'](_0x300171[_0x25fb6a(0xa0)])){const _0x2fb7e7=_0x300171[_0x25fb6a(0x7c)](fileURLToPath,_0x4758f9),_0x1e44a8=await _0x300171['imtPr'](stat,_0x2fb7e7);if(_0x300171[_0x25fb6a(0x76)](_0x1e44a8['size'],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x25fb6a(0x73)+MAX_IMAGE_SIZE_BYTES+_0x25fb6a(0x6c));const _0x1505d4=await _0x300171['GUfkX'](readFile,_0x2fb7e7);return{'data':_0x1505d4['toString'](_0x300171['BqlAb']),'mediaType':_0x300171[_0x25fb6a(0x82)](inferMediaType,null,_0x2fb7e7)};}if(_0x4758f9['startsWith'](_0x300171['vTfWS'])||_0x4758f9['startsWith']('https://')){const _0x26214a=await fetch(_0x4758f9,{'signal':AbortSignal[_0x25fb6a(0x6d)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x26214a['ok'])throw new Error(_0x25fb6a(0x94)+_0x26214a[_0x25fb6a(0x81)]);const _0x4c2051=_0x26214a['headers'][_0x25fb6a(0x71)](_0x300171[_0x25fb6a(0x8a)]);if(_0x4c2051){const _0x51f2f6=_0x300171['imtPr'](Number,_0x4c2051);if(!Number['isNaN'](_0x51f2f6)&&_0x300171['OaKLk'](_0x51f2f6,MAX_IMAGE_SIZE_BYTES))throw new Error(_0x25fb6a(0x73)+MAX_IMAGE_SIZE_BYTES+_0x25fb6a(0x6c));}const _0x301997=await _0x26214a['arrayBuffer']();if(_0x301997[_0x25fb6a(0x7f)]>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x25fb6a(0x73)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');return{'data':Buffer['from'](_0x301997)['toString'](_0x25fb6a(0xa3)),'mediaType':_0x300171['HhTlu'](inferMediaType,_0x26214a[_0x25fb6a(0x95)]['get'](_0x300171[_0x25fb6a(0x98)]),_0x4758f9)};}const _0x44454b=await stat(_0x4758f9);if(_0x300171['OaKLk'](_0x44454b['size'],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x5bd365=await _0x300171['imtPr'](readFile,_0x4758f9);return{'data':_0x5bd365['toString']('base64'),'mediaType':_0x300171[_0x25fb6a(0x82)](inferMediaType,null,_0x4758f9)};}async function convertImageBlockToBase64(_0x3015d4){const _0x28ac89=_0x54b8,_0xd2057f={'nkyZJ':function(_0x126e02,_0xe6f628){return _0x126e02===_0xe6f628;},'CzcHk':'base64'};if(_0xd2057f[_0x28ac89(0x88)](_0x3015d4['source']?.[_0x28ac89(0x70)],_0x28ac89(0xa3)))return{'updated':![],'block':_0x3015d4};if(_0x3015d4[_0x28ac89(0x8f)]&&_0x3015d4['mimeType'])return{'updated':![],'block':_0x3015d4};const _0x20fc5f=_0x3015d4[_0x28ac89(0x9c)]?.['url']??_0x3015d4['url'];if(!_0x20fc5f)return{'updated':![],'block':_0x3015d4};const _0x357398=await readImageFromUrl(_0x20fc5f);return{'updated':!![],'block':{..._0x3015d4,'source':{'type':_0xd2057f['CzcHk'],'media_type':_0x357398['mediaType'],'data':_0x357398['data']},'url':undefined}};}function _0x54b8(_0xf94212,_0x2f36da){_0xf94212=_0xf94212-0x6c;const _0x529368=_0x5293();let _0x54b892=_0x529368[_0xf94212];return _0x54b892;}async function convertToolOutputImagesToBase64(_0x1a1b1d){const _0x395138=_0x54b8,_0x39d39c={'mapVi':function(_0x282104,_0x2b125b){return _0x282104(_0x2b125b);}};if(!_0x39d39c[_0x395138(0x77)](isRecord,_0x1a1b1d))return{'updated':![],'output':_0x1a1b1d};const _0x366ec2=_0x1a1b1d['content'];if(!Array['isArray'](_0x366ec2))return{'updated':![],'output':_0x1a1b1d};let _0xad0e26=![];const _0x4ae343=await Promise['all'](_0x366ec2['map'](async _0x5f49f8=>{if(!isImageBlock(_0x5f49f8))return _0x5f49f8;try{const _0x58db0c=await convertImageBlockToBase64(_0x5f49f8);if(_0x58db0c['updated'])_0xad0e26=!![];return _0x58db0c['block'];}catch{return _0x5f49f8;}}));if(!_0xad0e26)return{'updated':![],'output':_0x1a1b1d};return{'updated':!![],'output':{..._0x1a1b1d,'content':_0x4ae343}};}function _0x5293(){const _0x54f5f3=['11790520yBsGmi','content-length','jpeg','mhbyj','map','hook_event_name','byteLength','gif','status','HhTlu','value','image/gif','jpg','LmEgQ','entries','nkyZJ','750BrPRit','TuwQH','32094oQSFAD','MfLyc','538704xguuzY','image/png','data','charCodeAt','string','length','1215592yPJIoS','Failed\x20to\x20fetch\x20image:\x20','headers','1448936IZxjEu','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','NVKnG','startsWith','image/webp','trim','source','PostToolUse','318MXeTbe','udjPI','ynyQq','PeQUi','tool_response','base64','10895262lvLGxA','58990NGgtis','\x20bytes)','timeout','updated','1SgBkEv','type','get','tfpnj','Image\x20exceeds\x20size\x20limit\x20(','XFPTu','isArray','cGkfX','mapVi','image/jpeg'];_0x5293=function(){return _0x54f5f3;};return _0x5293();}function sanitizeLoneSurrogates(_0x466574){const _0x1e41ef=_0x54b8,_0x48efa3={'jaXlZ':function(_0x52e413,_0x26480c){return _0x52e413<_0x26480c;},'UKXnJ':function(_0x5aaa45,_0x3bd5bf){return _0x5aaa45>=_0x3bd5bf;},'gOmjr':function(_0x4cd9e4,_0xd508d6){return _0x4cd9e4<=_0xd508d6;},'XFPTu':function(_0x4b7608,_0x308d65){return _0x4b7608>=_0x308d65;},'PXVKl':function(_0x4dd488,_0x4b150f){return _0x4dd488+_0x4b150f;},'lnvHN':function(_0xb120ab,_0x44e0db){return _0xb120ab+_0x44e0db;},'uXdlR':function(_0x379e71,_0x51785a){return _0x379e71>=_0x51785a;}};let _0x1c5cb7=![],_0x10cda5='';for(let _0x331c14=0x0;_0x48efa3['jaXlZ'](_0x331c14,_0x466574[_0x1e41ef(0x92)]);_0x331c14+=0x1){const _0x4ae763=_0x466574['charCodeAt'](_0x331c14);if(_0x48efa3['UKXnJ'](_0x4ae763,0xd800)&&_0x48efa3['gOmjr'](_0x4ae763,0xdbff)){const _0x6c648d=_0x466574[_0x1e41ef(0x90)](_0x331c14+0x1);if(_0x48efa3[_0x1e41ef(0x74)](_0x6c648d,0xdc00)&&_0x6c648d<=0xdfff){_0x10cda5+=_0x48efa3['PXVKl'](_0x466574[_0x331c14],_0x466574[_0x48efa3['lnvHN'](_0x331c14,0x1)]),_0x331c14+=0x1;continue;}_0x1c5cb7=!![],_0x10cda5+='�';continue;}if(_0x48efa3['uXdlR'](_0x4ae763,0xdc00)&&_0x4ae763<=0xdfff){_0x1c5cb7=!![],_0x10cda5+='�';continue;}_0x10cda5+=_0x466574[_0x331c14];}return _0x1c5cb7?{'updated':_0x1c5cb7,'value':_0x10cda5}:{'updated':_0x1c5cb7,'value':_0x466574};}function sanitizeLoneSurrogatesDeep(_0x5d7f73){const _0x54c503=_0x54b8,_0x20c33d={'PZgMP':function(_0x22a8b4,_0xda3671){return _0x22a8b4(_0xda3671);},'IwkBS':_0x54c503(0x91),'SsJyu':function(_0x40b8eb,_0x576cfd){return _0x40b8eb(_0x576cfd);}};if(typeof _0x5d7f73===_0x20c33d['IwkBS'])return _0x20c33d['SsJyu'](sanitizeLoneSurrogates,_0x5d7f73);if(Array[_0x54c503(0x75)](_0x5d7f73)){let _0x59ef59=![];const _0x4d0468=_0x5d7f73['map'](_0x566207=>{const _0x588939=_0x54c503,_0x50a9ff=sanitizeLoneSurrogatesDeep(_0x566207);return _0x50a9ff[_0x588939(0x6e)]&&(_0x59ef59=!![]),_0x50a9ff[_0x588939(0x83)];});return _0x59ef59?{'updated':!![],'value':_0x4d0468}:{'updated':![],'value':_0x5d7f73};}if(!_0x20c33d['SsJyu'](isRecord,_0x5d7f73))return{'updated':![],'value':_0x5d7f73};let _0x4a8a43=![];const _0x3a133b=Object[_0x54c503(0x87)](_0x5d7f73)[_0x54c503(0x7d)](([_0x540683,_0x88341c])=>{const _0x1c745d=_0x54c503,_0x58427=_0x20c33d['PZgMP'](sanitizeLoneSurrogatesDeep,_0x88341c);return _0x58427[_0x1c745d(0x6e)]&&(_0x4a8a43=!![]),[_0x540683,_0x58427[_0x1c745d(0x83)]];});return _0x4a8a43?{'updated':!![],'value':Object['fromEntries'](_0x3a133b)}:{'updated':![],'value':_0x5d7f73};}export function createMcpImageBase64Hook(){const _0x1a3a82=_0x54b8,_0x459301={'CtGJr':function(_0x17131b,_0x171fce){return _0x17131b(_0x171fce);},'HmPXG':_0x1a3a82(0x9d)};return async _0x51bea4=>{const _0x1f9c4c=_0x1a3a82;if(_0x51bea4[_0x1f9c4c(0x7e)]!=='PostToolUse')return{};const _0x165477=_0x51bea4,_0x45cf28=await _0x459301['CtGJr'](convertToolOutputImagesToBase64,_0x165477[_0x1f9c4c(0xa2)]),_0x47be90=sanitizeLoneSurrogatesDeep(_0x45cf28['output']),_0x59fd2=_0x45cf28[_0x1f9c4c(0x6e)]||_0x47be90['updated'];if(!_0x59fd2)return{};return{'hookSpecificOutput':{'hookEventName':_0x459301['HmPXG'],'updatedMCPToolOutput':_0x47be90['value']}};};}