@ranger-testing/ranger-cli 3.1.3-alpha.e1ca941-42 → 3.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) 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/deleteProfile.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/organizationEnvApi.js +1 -1
  60. package/build/commands/utils/playwrightCli.js +1 -1
  61. package/build/commands/utils/profileMessages.js +1 -1
  62. package/build/commands/utils/profileSetupBanner.js +1 -1
  63. package/build/commands/utils/projectsConfig.js +1 -1
  64. package/build/commands/utils/rangerConfig.js +1 -1
  65. package/build/commands/utils/rangerRoot.js +1 -1
  66. package/build/commands/utils/rangerwrightCli.js +1 -1
  67. package/build/commands/utils/resolveProfileContext.js +1 -1
  68. package/build/commands/utils/resolveProfileUrl.js +1 -1
  69. package/build/commands/utils/retry.js +1 -1
  70. package/build/commands/utils/sessionCache.js +1 -1
  71. package/build/commands/utils/settings.js +1 -1
  72. package/build/commands/utils/skillContent.js +1 -1
  73. package/build/commands/utils/skills.js +1 -1
  74. package/build/commands/utils/stitchWebmFiles.js +1 -1
  75. package/build/commands/utils/telemetry.js +1 -1
  76. package/build/commands/utils/tokenRefresh.js +1 -1
  77. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  78. package/build/commands/utils/tunnelClient.js +1 -1
  79. package/build/commands/utils/userApi.js +1 -1
  80. package/build/commands/utils/version.js +1 -1
  81. package/build/commands/verifyFeature.js +1 -1
  82. package/build/commands/verifyFeatureCli.js +1 -1
  83. package/build/commands/verifyFeatureNovaCli.js +1 -1
  84. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  85. package/package.json +2 -2
@@ -1 +1 @@
1
- (function(_0x25de18,_0x289c40){const _0x584e3b=_0x1a6e,_0x42816c=_0x25de18();while(!![]){try{const _0x664faa=parseInt(_0x584e3b(0x1cc))/0x1*(-parseInt(_0x584e3b(0x1cb))/0x2)+-parseInt(_0x584e3b(0x1bf))/0x3+-parseInt(_0x584e3b(0x1d0))/0x4+parseInt(_0x584e3b(0x1da))/0x5*(-parseInt(_0x584e3b(0x1c4))/0x6)+parseInt(_0x584e3b(0x1d1))/0x7+parseInt(_0x584e3b(0x1ce))/0x8*(parseInt(_0x584e3b(0x1bd))/0x9)+parseInt(_0x584e3b(0x1bb))/0xa*(parseInt(_0x584e3b(0x1bc))/0xb);if(_0x664faa===_0x289c40)break;else _0x42816c['push'](_0x42816c['shift']());}catch(_0x585a26){_0x42816c['push'](_0x42816c['shift']());}}}(_0x27a5,0xd3407));import{existsSync}from'fs';import _0xe72293 from'inquirer';import{ApiError,fetchAuthConfig,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';function _0x1a6e(_0x44da53,_0x5f5560){_0x44da53=_0x44da53-0x1b3;const _0x27a595=_0x27a5();let _0x1a6e73=_0x27a595[_0x44da53];return _0x1a6e73;}import{isInteractive,resolveAuthEnvironmentLocally}from'./cloudProfileSession.js';import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x414ce4){const _0x43bafd=_0x1a6e,_0x7fff4f={'eiGjO':function(_0xb17b65,_0xbfb307){return _0xb17b65+_0xbfb307;},'HVXjw':_0x43bafd(0x1d4),'gKMGv':_0x43bafd(0x1df),'PpKkp':function(_0xe2b6c6,_0x55307c){return _0xe2b6c6(_0x55307c);},'oAwUH':function(_0x4ad334,_0x4315ad){return _0x4ad334(_0x4315ad);},'qQumH':function(_0x85f723,_0x13555c){return _0x85f723===_0x13555c;},'VciFZ':function(_0x1a1fc7,_0x2e16d1){return _0x1a1fc7&&_0x2e16d1;},'WMObE':function(_0x4d7d0c,_0x42045c){return _0x4d7d0c+_0x42045c;},'yHeaQ':function(_0x170e9f,_0x1e02a1){return _0x170e9f+_0x1e02a1;},'tvnya':'\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20','iMwFj':function(_0x22e66f){return _0x22e66f();},'FftMJ':_0x43bafd(0x1ba),'RhWvW':'cloud','ZSDLY':_0x43bafd(0x1c5),'zeifU':function(_0x444935,_0x63fa96){return _0x444935===_0x63fa96;},'OtpIY':function(_0x326cb5,_0x401c0e,_0x1221f8){return _0x326cb5(_0x401c0e,_0x1221f8);},'eMTnb':function(_0x79a438,_0x4a48ae){return _0x79a438(_0x4a48ae);}},_0x38faa0=_0x414ce4['profile'];let _0x5a2c97=_0x414ce4['profile']??await readActiveProfileName(),_0x39eb04=null;if(!_0x5a2c97&&process[_0x43bafd(0x1e5)]['RANGER_TEST_USERNAME']){const _0x2c77ac=await resolveAdHocProfile();_0x2c77ac&&(_0x5a2c97=_0x2c77ac['name'],_0x39eb04=_0x2c77ac[_0x43bafd(0x1cd)]);}if(!_0x5a2c97)try{const _0x338fbb=await listCloudProfiles();if(_0x338fbb[_0x43bafd(0x1b7)]===0x1){const _0x1fa548=_0x338fbb[0x0];_0x5a2c97=_0x1fa548['name'],console[_0x43bafd(0x1d8)](_0x43bafd(0x1b6)+_0x1fa548['name']),console[_0x43bafd(0x1d8)](_0x43bafd(0x1b4));}}catch{}if(!_0x5a2c97)throw new Error(_0x7fff4f['eiGjO'](_0x7fff4f[_0x43bafd(0x1c2)]+_0x7fff4f['gKMGv']+'\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a',_0x43bafd(0x1c7))+'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.');const _0x50806e=getEnvDir(_0x5a2c97),_0x22779c=_0x7fff4f['PpKkp'](existsSync,_0x50806e);let _0x16cadf=_0x39eb04,_0x33892d=![];if(!_0x16cadf)try{_0x16cadf=await _0x7fff4f['oAwUH'](fetchCloudProfile,_0x5a2c97);if(!_0x16cadf)_0x33892d=!![];}catch(_0x568457){_0x568457 instanceof ApiError&&_0x7fff4f[_0x43bafd(0x1d2)](_0x568457[_0x43bafd(0x1db)],0x194)&&(_0x33892d=!![]);}if(_0x7fff4f['VciFZ'](_0x38faa0,_0x33892d)&&!_0x22779c&&!_0x16cadf)throw new Error(_0x7fff4f['WMObE'](_0x7fff4f[_0x43bafd(0x1ca)]('Profile\x20\x22'+_0x38faa0+'\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a',_0x7fff4f[_0x43bafd(0x1d6)]),'`ranger\x20profile\x20add`\x20to\x20create\x20one.'));if(_0x7fff4f['VciFZ'](_0x16cadf,_0x22779c)){let _0x3f7ccb=!![];if(_0x7fff4f[_0x43bafd(0x1c6)](isInteractive)){const {source:_0x22ef5b}=await _0xe72293['prompt']([{'type':'list','name':_0x43bafd(0x1d5),'message':_0x43bafd(0x1c9)+_0x5a2c97+_0x43bafd(0x1d9),'choices':[{'name':_0x7fff4f['FftMJ'],'value':_0x7fff4f['RhWvW']},{'name':'Local\x20profile','value':_0x7fff4f[_0x43bafd(0x1dc)]}],'default':_0x43bafd(0x1b5)}]);_0x3f7ccb=_0x7fff4f[_0x43bafd(0x1e3)](_0x22ef5b,_0x43bafd(0x1b5));}if(!_0x3f7ccb)_0x16cadf=null;}const _0x24d900=readProfileOverrides(process[_0x43bafd(0x1b3)](),_0x5a2c97);let _0x4e0a48=null,_0x495861,_0x19a90b,_0x30622f,_0x47c88d,_0x4333e1=null,_0x1e8c79;const _0x1f58f1=expandOverrides(_0x24d900),_0x20db4b=readUrlEnvVars();if(_0x16cadf){_0x4e0a48=_0x16cadf;const _0x3203d9=_0x16cadf['settings']??{},_0x19d9f4=_0x7fff4f['OtpIY'](mergeCloudProfileSettings,_0x3203d9,_0x24d900??undefined),_0x9b992f={..._0x16cadf,'settings':_0x19d9f4};_0x4333e1={'baseUrl':_0x7fff4f['PpKkp'](expandString,_0x3203d9['baseUrl']),'startPath':expandString(_0x3203d9[_0x43bafd(0x1d7)])};const _0x5222b2=await fetchAuthConfig(),_0x53cfc4=_0x5222b2?_0x7fff4f[_0x43bafd(0x1de)](resolveAuthEnvironmentLocally,_0x5222b2,_0x16cadf['environmentKey']):null;_0x1e8c79=_0x53cfc4?.['domains']?.[0x0];const _0x30d849=resolveProfileUrl({'flagBaseUrl':_0x414ce4[_0x43bafd(0x1e1)],'flagStartPath':_0x414ce4['startPath'],'envBaseUrl':_0x20db4b['envBaseUrl'],'envStartPath':_0x20db4b[_0x43bafd(0x1d3)],'projectOverrides':_0x1f58f1,'cloudSettings':_0x4333e1,'authEnvironmentDomain':_0x1e8c79}),_0xe6ca2c=process['env'][_0x43bafd(0x1cf)];if(_0xe6ca2c){if(!existsSync(_0xe6ca2c))throw new Error(_0x43bafd(0x1e4)+_0xe6ca2c+_0x43bafd(0x1e6));_0x495861=_0xe6ca2c,_0x19a90b=resolveEnvVars(_0x19d9f4),_0x30622f=Boolean(_0x19a90b[_0x43bafd(0x1c1)]);}else{const _0x65fb3=await _0x7fff4f['OtpIY'](resolveCloudProfileSession,_0x9b992f,{'effectiveBaseUrl':_0x30d849['baseUrl'],'telemetry':_0x414ce4[_0x43bafd(0x1dd)]});_0x495861=_0x65fb3[_0x43bafd(0x1c8)],_0x19a90b=_0x7fff4f['eMTnb'](resolveEnvVars,_0x65fb3['settings']),_0x30622f=Boolean(_0x19a90b['cdpEndpoint']),_0x1e8c79=_0x65fb3[_0x43bafd(0x1c3)]?.['domains']?.[0x0];}}else{if(!_0x22779c)throw new Error('Profile\x20\x22'+_0x5a2c97+'\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x5a2c97);const _0x17277d=await _0x7fff4f[_0x43bafd(0x1e0)](loadSettings,_0x5a2c97);_0x19a90b=_0x7fff4f['eMTnb'](resolveEnvVars,_0x17277d),_0x30622f=_0x7fff4f['PpKkp'](Boolean,_0x19a90b[_0x43bafd(0x1c1)]),_0x47c88d=_0x19a90b[_0x43bafd(0x1e1)];}const _0x3f1bb2=_0x7fff4f['PpKkp'](resolveProfileUrl,{'flagBaseUrl':_0x414ce4[_0x43bafd(0x1e1)],'flagStartPath':_0x414ce4['startPath'],'envBaseUrl':_0x20db4b['envBaseUrl'],'envStartPath':_0x20db4b['envStartPath'],'localSettingsBaseUrl':_0x47c88d,'projectOverrides':_0x1f58f1,'cloudSettings':_0x4333e1,'authEnvironmentDomain':_0x1e8c79}),_0x4b915d=_0x3f1bb2[_0x43bafd(0x1be)]??_0x3f1bb2['baseUrl'];if(_0x7fff4f[_0x43bafd(0x1b9)](!_0x4b915d,!_0x30622f))throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0x5a2c97+'\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20'+_0x5a2c97+_0x43bafd(0x1e2));return{'activeProfile':_0x5a2c97,'resolvedCloudProfile':_0x4e0a48,'cloudAuthPath':_0x495861,'resolvedSettings':_0x19a90b,'isCdpMode':_0x30622f,'url':_0x4b915d,'startPath':_0x3f1bb2['startPath']};}function expandString(_0x3077d6){const _0x326f18=_0x1a6e;if(typeof _0x3077d6!==_0x326f18(0x1c0))return _0x3077d6;return resolveEnvVars(_0x3077d6);}function _0x27a5(){const _0x593b4f=['1318655sWWwgS','status','ZSDLY','telemetry','OtpIY','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','oAwUH','baseUrl','\x20baseUrl\x20<url>','zeifU','RANGER_SESSION_STATE_PATH=','env','\x20does\x20not\x20exist.','cwd','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','cloud','\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20','length','oJrZP','VciFZ','Cloud\x20profile\x20(recommended)','11688730qSdhsI','11xoMCPu','2007vYpRBg','url','980457kqrXlu','string','cdpEndpoint','HVXjw','resolvedEnv','6cvmiks','local','iMwFj','\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','authPath','Profile\x20\x22','yHeaQ','4cJrnFS','623947DQVRDU','profile','20192EDjSFm','RANGER_SESSION_STATE_PATH','100572vIIZjU','6980043WIhZhu','qQumH','envStartPath','Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','source','tvnya','startPath','log','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?'];_0x27a5=function(){return _0x593b4f;};return _0x27a5();}function expandOverrides(_0x1a7528){const _0x192860=_0x1a6e,_0x3fb3e7={'oJrZP':_0x192860(0x1c0)};if(!_0x1a7528)return _0x1a7528;const _0x2255ff={..._0x1a7528};return typeof _0x2255ff['baseUrl']===_0x3fb3e7[_0x192860(0x1b8)]&&(_0x2255ff[_0x192860(0x1e1)]=resolveEnvVars(_0x2255ff['baseUrl'])),typeof _0x2255ff['startPath']===_0x3fb3e7[_0x192860(0x1b8)]&&(_0x2255ff[_0x192860(0x1d7)]=resolveEnvVars(_0x2255ff['startPath'])),_0x2255ff;}
1
+ (function(_0x4f3377,_0x46ea60){const _0x2428bb=_0x3e18,_0x39c414=_0x4f3377();while(!![]){try{const _0x159596=-parseInt(_0x2428bb(0x111))/0x1*(-parseInt(_0x2428bb(0x10c))/0x2)+-parseInt(_0x2428bb(0x10e))/0x3*(-parseInt(_0x2428bb(0x113))/0x4)+parseInt(_0x2428bb(0x13e))/0x5+-parseInt(_0x2428bb(0x112))/0x6+parseInt(_0x2428bb(0x115))/0x7+parseInt(_0x2428bb(0x12e))/0x8*(parseInt(_0x2428bb(0x11a))/0x9)+-parseInt(_0x2428bb(0x107))/0xa;if(_0x159596===_0x46ea60)break;else _0x39c414['push'](_0x39c414['shift']());}catch(_0x43b236){_0x39c414['push'](_0x39c414['shift']());}}}(_0x4e76,0x3878a));import{existsSync}from'fs';import _0x2465fc from'inquirer';import{ApiError,fetchAuthConfig,fetchCloudProfile,listCloudProfiles,resolveAdHocProfile,resolveCloudProfileSession}from'./cloudProfile.js';import{isInteractive,resolveAuthEnvironmentLocally}from'./cloudProfileSession.js';function _0x3e18(_0x7f15ac,_0x5c8f80){_0x7f15ac=_0x7f15ac-0x107;const _0x4e764c=_0x4e76();let _0x3e1881=_0x4e764c[_0x7f15ac];return _0x3e1881;}function _0x4e76(){const _0x311c6f=['cdpEndpoint','\x20\x20-\x20set\x20RANGER_TEST_USERNAME\x20(+\x20RANGER_TEST_PASSWORD)\x20to\x20materialize\x20one,\x20or\x0a','\x20\x20(pass\x20--profile\x20<name>\x20to\x20pin,\x20or\x20RANGER_TEST_USERNAME=...\x20to\x20materialize\x20a\x20new\x20one)','RANGER_SESSION_STATE_PATH','name','396410IqhBiq','startPath','geIBg','2957100AizRhR','url','YzDoi','\x22\x20not\x20found\x20locally\x20or\x20in\x20the\x20cloud.\x0a','ZyJfE','94326TSjVza','string','1070841YCLmoL','Cloud\x20profile\x20(recommended)','source','2laBlvz','2167452UgJuEl','4aABWiT','log','976472cYMMZI','length','profile','TobHl','domains','8217ovFdNk','env','MPZGm','aykcK','local','resolvedEnv','\x22\x20exists\x20both\x20locally\x20and\x20in\x20the\x20cloud.\x20Which\x20one\x20should\x20be\x20used?','`ranger\x20profile\x20add`\x20to\x20create\x20one.','ZYPuT','TtESc','cloud','fCgtX','WQHrK','\x22.\x20Run:\x20ranger\x20profile\x20config\x20set\x20','telemetry','\x20baseUrl\x20<url>','Profile\x20\x22','baseUrl','\x20does\x20not\x20exist.','RANGER_SESSION_STATE_PATH=','1912YMlpZS','Local\x20profile','\x20\x20-\x20run\x20`ranger\x20profile\x20use\x20<name>`\x20once,\x20or\x0a','envStartPath','pGZuJ','RANGER_TEST_USERNAME','\x20\x20-\x20pass\x20--profile\x20<name>\x20/\x20set\x20RANGER_PROFILE,\x20or\x0a','wvaRq','pHYdu','LjgGb','prompt'];_0x4e76=function(){return _0x311c6f;};return _0x4e76();}import{mergeCloudProfileSettings,readProfileOverrides}from'./projectsConfig.js';import{readUrlEnvVars,resolveProfileUrl}from'./resolveProfileUrl.js';import{getEnvDir,loadSettings,resolveEnvVars}from'./settings.js';import{readActiveProfileName}from'./activeProfile.js';export async function resolveProfileContext(_0x5632c6){const _0x4fcf45=_0x3e18,_0x688991={'aykcK':function(_0x4871e7){return _0x4871e7();},'MPZGm':function(_0x24a436){return _0x24a436();},'TobHl':function(_0x41fee6,_0x5c12cc){return _0x41fee6===_0x5c12cc;},'geIBg':function(_0x1ba8af,_0x24a81f){return _0x1ba8af+_0x24a81f;},'Ophph':'Ranger\x20can\x27t\x20verify\x20with\x20a\x20browser\x20until\x20a\x20profile\x20is\x20set\x20up.\x20Options:\x0a','GxBDt':_0x4fcf45(0x134),'YjYdi':_0x4fcf45(0x130),'eTcxU':'\x20\x20-\x20run\x20`ranger\x20profile\x20add\x20<name>`\x20to\x20create\x20a\x20new\x20one.','ZYPuT':function(_0xdd2395,_0x57f4be){return _0xdd2395(_0x57f4be);},'fCgtX':function(_0x236daa,_0x1227cc){return _0x236daa(_0x1227cc);},'wvaRq':function(_0x3e4349,_0x5f5c26){return _0x3e4349===_0x5f5c26;},'WQHrK':function(_0x2496f9,_0x1cb1d0){return _0x2496f9&&_0x1cb1d0;},'LjgGb':_0x4fcf45(0x121),'RuyRs':'list','heHLc':_0x4fcf45(0x10f),'ZzJeh':_0x4fcf45(0x124),'pHYdu':_0x4fcf45(0x11e),'MVQtY':function(_0xeded6e){return _0xeded6e();},'doaQI':function(_0x5220b4,_0x3093dc){return _0x5220b4(_0x3093dc);},'AkGVv':function(_0x3beb1d,_0x4e9ea8){return _0x3beb1d(_0x4e9ea8);},'WWmOR':function(_0x1bbe00,_0x1e549b,_0x20b6df){return _0x1bbe00(_0x1e549b,_0x20b6df);},'uTrtZ':function(_0x17f280,_0x335d2c){return _0x17f280(_0x335d2c);},'YzDoi':function(_0x138b4d,_0x303fff){return _0x138b4d&&_0x303fff;}},_0x469dbe=_0x5632c6['profile'];let _0x550c53=_0x5632c6[_0x4fcf45(0x117)]??await _0x688991[_0x4fcf45(0x11d)](readActiveProfileName),_0x314baa=null;if(!_0x550c53&&process[_0x4fcf45(0x11b)][_0x4fcf45(0x133)]){const _0x2aaa7d=await _0x688991[_0x4fcf45(0x11c)](resolveAdHocProfile);_0x2aaa7d&&(_0x550c53=_0x2aaa7d[_0x4fcf45(0x13d)],_0x314baa=_0x2aaa7d['profile']);}if(!_0x550c53)try{const _0x39f403=await listCloudProfiles();if(_0x688991[_0x4fcf45(0x118)](_0x39f403[_0x4fcf45(0x116)],0x1)){const _0x105da4=_0x39f403[0x0];_0x550c53=_0x105da4['name'],console['log']('\x0aUsing\x20the\x20only\x20cloud\x20profile\x20for\x20your\x20org:\x20'+_0x105da4['name']),console[_0x4fcf45(0x114)](_0x4fcf45(0x13b));}}catch{}if(!_0x550c53)throw new Error(_0x688991[_0x4fcf45(0x140)](_0x688991['Ophph'],_0x4fcf45(0x13a))+_0x688991['GxBDt']+_0x688991['YjYdi']+_0x688991['eTcxU']);const _0x409dfc=_0x688991[_0x4fcf45(0x122)](getEnvDir,_0x550c53),_0x32f1ad=_0x688991[_0x4fcf45(0x122)](existsSync,_0x409dfc);let _0x3b250f=_0x314baa,_0x2a872e=![];if(!_0x3b250f)try{_0x3b250f=await _0x688991[_0x4fcf45(0x125)](fetchCloudProfile,_0x550c53);if(!_0x3b250f)_0x2a872e=!![];}catch(_0x21ffc2){_0x21ffc2 instanceof ApiError&&_0x688991[_0x4fcf45(0x135)](_0x21ffc2['status'],0x194)&&(_0x2a872e=!![]);}if(_0x688991['WQHrK'](_0x469dbe,_0x2a872e)&&!_0x32f1ad&&!_0x3b250f)throw new Error(_0x688991['geIBg'](_0x4fcf45(0x12a)+_0x469dbe+_0x4fcf45(0x10a),'\x20\x20Run\x20`ranger\x20profile\x20ls`\x20to\x20see\x20available\x20profiles,\x20or\x20')+_0x688991[_0x4fcf45(0x137)]);if(_0x688991[_0x4fcf45(0x126)](_0x3b250f,_0x32f1ad)){let _0x15a627=!![];if(isInteractive()){const {source:_0x30b31b}=await _0x2465fc[_0x4fcf45(0x138)]([{'type':_0x688991['RuyRs'],'name':_0x4fcf45(0x110),'message':_0x4fcf45(0x12a)+_0x550c53+_0x4fcf45(0x120),'choices':[{'name':_0x688991['heHLc'],'value':_0x688991['ZzJeh']},{'name':_0x4fcf45(0x12f),'value':_0x688991[_0x4fcf45(0x136)]}],'default':_0x4fcf45(0x124)}]);_0x15a627=_0x30b31b===_0x688991['ZzJeh'];}if(!_0x15a627)_0x3b250f=null;}const _0x5c0d60=readProfileOverrides(process['cwd'](),_0x550c53);let _0x1d61e1=null,_0x2b50c3,_0x21cc55,_0x26ff9f,_0x2e1536,_0x108ae4=null,_0x4bc819;const _0x4ae194=_0x688991[_0x4fcf45(0x125)](expandOverrides,_0x5c0d60),_0x551a2c=_0x688991['MPZGm'](readUrlEnvVars);if(_0x3b250f){_0x1d61e1=_0x3b250f;const _0x2aaa3d=_0x3b250f['settings']??{},_0x14193c=mergeCloudProfileSettings(_0x2aaa3d,_0x5c0d60??undefined),_0xd9a07={..._0x3b250f,'settings':_0x14193c};_0x108ae4={'baseUrl':expandString(_0x2aaa3d[_0x4fcf45(0x12b)]),'startPath':_0x688991[_0x4fcf45(0x125)](expandString,_0x2aaa3d[_0x4fcf45(0x13f)])};const _0x3e01f5=await _0x688991['MVQtY'](fetchAuthConfig),_0xd0e6c2=_0x3e01f5?resolveAuthEnvironmentLocally(_0x3e01f5,_0x3b250f['environmentKey']):null;_0x4bc819=_0xd0e6c2?.[_0x4fcf45(0x119)]?.[0x0];const _0x15e950=resolveProfileUrl({'flagBaseUrl':_0x5632c6['baseUrl'],'flagStartPath':_0x5632c6['startPath'],'envBaseUrl':_0x551a2c['envBaseUrl'],'envStartPath':_0x551a2c[_0x4fcf45(0x131)],'projectOverrides':_0x4ae194,'cloudSettings':_0x108ae4,'authEnvironmentDomain':_0x4bc819}),_0x32522f=process[_0x4fcf45(0x11b)][_0x4fcf45(0x13c)];if(_0x32522f){if(!_0x688991['doaQI'](existsSync,_0x32522f))throw new Error(_0x4fcf45(0x12d)+_0x32522f+_0x4fcf45(0x12c));_0x2b50c3=_0x32522f,_0x21cc55=_0x688991['ZYPuT'](resolveEnvVars,_0x14193c),_0x26ff9f=_0x688991['AkGVv'](Boolean,_0x21cc55['cdpEndpoint']);}else{const _0x27c02a=await _0x688991['WWmOR'](resolveCloudProfileSession,_0xd9a07,{'effectiveBaseUrl':_0x15e950['baseUrl'],'telemetry':_0x5632c6[_0x4fcf45(0x128)]});_0x2b50c3=_0x27c02a['authPath'],_0x21cc55=resolveEnvVars(_0x27c02a['settings']),_0x26ff9f=Boolean(_0x21cc55['cdpEndpoint']),_0x4bc819=_0x27c02a[_0x4fcf45(0x11f)]?.[_0x4fcf45(0x119)]?.[0x0];}}else{if(!_0x32f1ad)throw new Error('Profile\x20\x22'+_0x550c53+'\x22\x20not\x20found.\x20Run:\x20ranger\x20profile\x20add\x20'+_0x550c53);const _0x48498a=await _0x688991['uTrtZ'](loadSettings,_0x550c53);_0x21cc55=resolveEnvVars(_0x48498a),_0x26ff9f=Boolean(_0x21cc55[_0x4fcf45(0x139)]),_0x2e1536=_0x21cc55['baseUrl'];}const _0x3a9c88=resolveProfileUrl({'flagBaseUrl':_0x5632c6[_0x4fcf45(0x12b)],'flagStartPath':_0x5632c6[_0x4fcf45(0x13f)],'envBaseUrl':_0x551a2c['envBaseUrl'],'envStartPath':_0x551a2c[_0x4fcf45(0x131)],'localSettingsBaseUrl':_0x2e1536,'projectOverrides':_0x4ae194,'cloudSettings':_0x108ae4,'authEnvironmentDomain':_0x4bc819}),_0x1f66ab=_0x3a9c88[_0x4fcf45(0x108)]??_0x3a9c88['baseUrl'];if(_0x688991[_0x4fcf45(0x109)](!_0x1f66ab,!_0x26ff9f))throw new Error('No\x20baseUrl\x20configured\x20for\x20profile\x20\x22'+_0x550c53+_0x4fcf45(0x127)+_0x550c53+_0x4fcf45(0x129));return{'activeProfile':_0x550c53,'resolvedCloudProfile':_0x1d61e1,'cloudAuthPath':_0x2b50c3,'resolvedSettings':_0x21cc55,'isCdpMode':_0x26ff9f,'url':_0x1f66ab,'startPath':_0x3a9c88[_0x4fcf45(0x13f)]};}function expandString(_0x10038a){const _0x27d47e=_0x3e18,_0x45fb7d={'zhKgn':function(_0x3f8832,_0x4485f6){return _0x3f8832!==_0x4485f6;},'zyLzh':_0x27d47e(0x10d)};if(_0x45fb7d['zhKgn'](typeof _0x10038a,_0x45fb7d['zyLzh']))return _0x10038a;return resolveEnvVars(_0x10038a);}function expandOverrides(_0x534f16){const _0x321ba7=_0x3e18,_0x4c9e47={'pGZuJ':_0x321ba7(0x10d),'TtESc':function(_0x1e40ed,_0x5217fc){return _0x1e40ed(_0x5217fc);},'ZyJfE':function(_0x2c44cb,_0x4b27cd){return _0x2c44cb===_0x4b27cd;}};if(!_0x534f16)return _0x534f16;const _0x961422={..._0x534f16};return typeof _0x961422[_0x321ba7(0x12b)]===_0x4c9e47[_0x321ba7(0x132)]&&(_0x961422['baseUrl']=_0x4c9e47[_0x321ba7(0x123)](resolveEnvVars,_0x961422[_0x321ba7(0x12b)])),_0x4c9e47[_0x321ba7(0x10b)](typeof _0x961422['startPath'],_0x4c9e47['pGZuJ'])&&(_0x961422[_0x321ba7(0x13f)]=resolveEnvVars(_0x961422[_0x321ba7(0x13f)])),_0x961422;}
@@ -1 +1 @@
1
- (function(_0x3fe408,_0xc80ee9){const _0x413996=_0x5b3c,_0x49d77b=_0x3fe408();while(!![]){try{const _0x56c81d=parseInt(_0x413996(0x9c))/0x1*(parseInt(_0x413996(0xa7))/0x2)+-parseInt(_0x413996(0xa9))/0x3*(parseInt(_0x413996(0x96))/0x4)+parseInt(_0x413996(0xa5))/0x5+-parseInt(_0x413996(0x95))/0x6+-parseInt(_0x413996(0xa8))/0x7+-parseInt(_0x413996(0x9f))/0x8*(-parseInt(_0x413996(0x9a))/0x9)+parseInt(_0x413996(0xa4))/0xa*(parseInt(_0x413996(0xad))/0xb);if(_0x56c81d===_0xc80ee9)break;else _0x49d77b['push'](_0x49d77b['shift']());}catch(_0x496318){_0x49d77b['push'](_0x49d77b['shift']());}}}(_0x3c11,0xca7ba));function firstDefined(..._0x4e8903){const _0x4fdbda=_0x5b3c,_0x75d2e1={'wwteF':function(_0x3fabd3,_0x550359){return _0x3fabd3!==_0x550359;}};for(const _0x2d3a84 of _0x4e8903){if(_0x2d3a84!==undefined&&_0x75d2e1[_0x4fdbda(0x94)](_0x2d3a84,null)&&_0x2d3a84!=='')return _0x2d3a84;}return undefined;}function _0x3c11(){const _0x418ea5=['17JFdzlQ','test','rBsjD','9890024cIpEnh','uqBxr','RANGER_START_PATH','txaND','string','2223640raMhKJ','5898840VfxEer','Tmhen','458hcREeF','10975608tNFtpe','2436mBHRmV','USIcZ','slice','cloudSettings','154xDWorj','wwteF','9508656umTwZV','7640UBDOmu','flagBaseUrl','flagStartPath','projectOverrides','9LOFDnR','FtnER'];_0x3c11=function(){return _0x418ea5;};return _0x3c11();}function normalizeAuthEnvironmentDomain(_0x56d483){const _0x39e905=_0x5b3c;if(!_0x56d483)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0x39e905(0x9d)](_0x56d483))return _0x56d483;return'https://'+_0x56d483;}export function resolveBaseUrl(_0x5f26a5){const _0x19b3bd=_0x5b3c,_0x21b0e4={'USIcZ':function(_0x49d2c6,_0x1fef57){return _0x49d2c6 in _0x1fef57;},'txaND':'baseUrl','HTgHq':function(_0x24730a,_0x149010){return _0x24730a===_0x149010;},'FtnER':function(_0x4a017b,_0x5269f5){return _0x4a017b(_0x5269f5);}},_0x44a83b=_0x5f26a5['projectOverrides'],_0x397885=!!_0x44a83b&&_0x21b0e4[_0x19b3bd(0xaa)](_0x21b0e4[_0x19b3bd(0xa2)],_0x44a83b),_0x28c776=_0x44a83b?.['baseUrl'],_0x205bd9=!(_0x397885&&_0x28c776===null);return firstDefined(_0x5f26a5[_0x19b3bd(0x97)],_0x5f26a5['envBaseUrl'],_0x5f26a5['localSettingsBaseUrl'],_0x21b0e4['HTgHq'](typeof _0x28c776,'string')?_0x28c776:undefined,_0x205bd9?_0x5f26a5[_0x19b3bd(0xac)]?.['baseUrl']:undefined,_0x205bd9?_0x21b0e4[_0x19b3bd(0x9b)](normalizeAuthEnvironmentDomain,_0x5f26a5['authEnvironmentDomain']):undefined);}function _0x5b3c(_0x580b53,_0x208de9){_0x580b53=_0x580b53-0x94;const _0x3c110d=_0x3c11();let _0x5b3c8d=_0x3c110d[_0x580b53];return _0x5b3c8d;}export function resolveStartPath(_0x5a1700){const _0x4b7d41=_0x5b3c,_0x343d22={'Tmhen':'startPath','uqBxr':function(_0x242ddb,_0x4b9053,_0x523304,_0x4e3532,_0x1b569c){return _0x242ddb(_0x4b9053,_0x523304,_0x4e3532,_0x1b569c);},'ckpTw':function(_0x235428,_0x94c265){return _0x235428===_0x94c265;},'vFAkQ':_0x4b7d41(0xa3)},_0x29f95a=_0x5a1700[_0x4b7d41(0x99)],_0x121eef=!!_0x29f95a&&_0x343d22[_0x4b7d41(0xa6)]in _0x29f95a,_0x4df2c5=_0x29f95a?.['startPath'],_0x2deb58=!(_0x121eef&&_0x4df2c5===null);return _0x343d22[_0x4b7d41(0xa0)](firstDefined,_0x5a1700[_0x4b7d41(0x98)],_0x5a1700['envStartPath'],_0x343d22['ckpTw'](typeof _0x4df2c5,_0x343d22['vFAkQ'])?_0x4df2c5:undefined,_0x2deb58?_0x5a1700[_0x4b7d41(0xac)]?.['startPath']:undefined);}export function joinBaseAndPath(_0x4c918f,_0x45d5f7){const _0x1b4d53=_0x5b3c,_0x5b1385={'rBsjD':function(_0x1fe1df,_0xfe4c65){return _0x1fe1df+_0xfe4c65;}};if(!_0x4c918f)return undefined;if(!_0x45d5f7)return _0x4c918f;const _0x7230fa=_0x4c918f['endsWith']('/')?_0x4c918f[_0x1b4d53(0xab)](0x0,-0x1):_0x4c918f,_0x37b71f=_0x45d5f7['startsWith']('/')?_0x45d5f7:'/'+_0x45d5f7;return _0x5b1385[_0x1b4d53(0x9e)](_0x7230fa,_0x37b71f);}export function resolveProfileUrl(_0x4ad581){const _0x301a36={'RyBZk':function(_0x25bdee,_0x363709){return _0x25bdee(_0x363709);},'flCMU':function(_0x49c06a,_0x4f4c3e,_0x211988){return _0x49c06a(_0x4f4c3e,_0x211988);}},_0x149b08=resolveBaseUrl(_0x4ad581),_0x5d11b3=_0x301a36['RyBZk'](resolveStartPath,_0x4ad581);return{'baseUrl':_0x149b08,'startPath':_0x5d11b3,'url':_0x301a36['flCMU'](joinBaseAndPath,_0x149b08,_0x5d11b3)};}export function readUrlEnvVars(_0x1dc0e9=process['env']){const _0x9a828f=_0x5b3c;return{'envBaseUrl':_0x1dc0e9['RANGER_BASE_URL'],'envStartPath':_0x1dc0e9[_0x9a828f(0xa1)]};}
1
+ const _0xa86bb8=_0x2b93;(function(_0x29f40b,_0x1d1a4d){const _0x4bc609=_0x2b93,_0x3b1f75=_0x29f40b();while(!![]){try{const _0x6a19e0=-parseInt(_0x4bc609(0x135))/0x1*(parseInt(_0x4bc609(0x12e))/0x2)+-parseInt(_0x4bc609(0x13f))/0x3*(parseInt(_0x4bc609(0x131))/0x4)+parseInt(_0x4bc609(0x138))/0x5+parseInt(_0x4bc609(0x139))/0x6*(-parseInt(_0x4bc609(0x136))/0x7)+parseInt(_0x4bc609(0x13d))/0x8*(-parseInt(_0x4bc609(0x129))/0x9)+parseInt(_0x4bc609(0x13c))/0xa*(parseInt(_0x4bc609(0x137))/0xb)+parseInt(_0x4bc609(0x13e))/0xc;if(_0x6a19e0===_0x1d1a4d)break;else _0x3b1f75['push'](_0x3b1f75['shift']());}catch(_0x55bfea){_0x3b1f75['push'](_0x3b1f75['shift']());}}}(_0x486d,0x38df0));function firstDefined(..._0x30a625){const _0x5055d={'LzrqR':function(_0x166cae,_0x547abb){return _0x166cae!==_0x547abb;},'WRoTk':function(_0x112bec,_0x18a183){return _0x112bec!==_0x18a183;}};for(const _0x1381ff of _0x30a625){if(_0x5055d['LzrqR'](_0x1381ff,undefined)&&_0x5055d['LzrqR'](_0x1381ff,null)&&_0x5055d['WRoTk'](_0x1381ff,''))return _0x1381ff;}return undefined;}function _0x486d(){const _0x5a1a2d=['2220rePgMj','48kfnqDZ','5381376zZqBNB','430932ohSVGQ','477837SCbYLH','SSCJP','test','endsWith','RANGER_START_PATH','204052oOifJU','startPath','RANGER_BASE_URL','4nWAFSb','WvoHh','cloudSettings','startsWith','4VcEJjR','7CrewlJ','19679LnTlCB','1380225rFZcMo','110406bOcNUD','env','projectOverrides'];_0x486d=function(){return _0x5a1a2d;};return _0x486d();}function normalizeAuthEnvironmentDomain(_0x1a36de){const _0x3f7338=_0x2b93;if(!_0x1a36de)return undefined;if(/^[a-z][a-z0-9+.-]*:\/\//i[_0x3f7338(0x12b)](_0x1a36de))return _0x1a36de;return'https://'+_0x1a36de;}export function resolveBaseUrl(_0x391849){const _0x2c43f2=_0x2b93,_0xba971b={'CxGFP':function(_0x3c5b76,_0x343b50){return _0x3c5b76 in _0x343b50;},'aZuza':function(_0x7eb659,_0x12ee39){return _0x7eb659===_0x12ee39;},'SSCJP':'string','gmebt':function(_0x5d57f4,_0x37936f){return _0x5d57f4(_0x37936f);}},_0x297686=_0x391849['projectOverrides'],_0x4def3c=!!_0x297686&&_0xba971b['CxGFP']('baseUrl',_0x297686),_0x6c01b5=_0x297686?.['baseUrl'],_0x2054ad=!(_0x4def3c&&_0xba971b['aZuza'](_0x6c01b5,null));return firstDefined(_0x391849['flagBaseUrl'],_0x391849['envBaseUrl'],_0x391849['localSettingsBaseUrl'],typeof _0x6c01b5===_0xba971b[_0x2c43f2(0x12a)]?_0x6c01b5:undefined,_0x2054ad?_0x391849[_0x2c43f2(0x133)]?.['baseUrl']:undefined,_0x2054ad?_0xba971b['gmebt'](normalizeAuthEnvironmentDomain,_0x391849['authEnvironmentDomain']):undefined);}function _0x2b93(_0x294b95,_0x79dfb8){_0x294b95=_0x294b95-0x129;const _0x486d22=_0x486d();let _0x2b93b2=_0x486d22[_0x294b95];return _0x2b93b2;}export function resolveStartPath(_0x405354){const _0xf92b3c=_0x2b93,_0x2d863a={'WvoHh':function(_0x384883,_0x1167d3,_0x19d1a1,_0x13df17,_0x51548d){return _0x384883(_0x1167d3,_0x19d1a1,_0x13df17,_0x51548d);},'zuumC':'string'},_0x3a71f1=_0x405354[_0xf92b3c(0x13b)],_0x31dcc2=!!_0x3a71f1&&'startPath'in _0x3a71f1,_0x3fcc6d=_0x3a71f1?.[_0xf92b3c(0x12f)],_0x53177d=!(_0x31dcc2&&_0x3fcc6d===null);return _0x2d863a[_0xf92b3c(0x132)](firstDefined,_0x405354['flagStartPath'],_0x405354['envStartPath'],typeof _0x3fcc6d===_0x2d863a['zuumC']?_0x3fcc6d:undefined,_0x53177d?_0x405354[_0xf92b3c(0x133)]?.['startPath']:undefined);}export function joinBaseAndPath(_0x2e4199,_0x5ab40b){const _0x4f3bba=_0x2b93;if(!_0x2e4199)return undefined;if(!_0x5ab40b)return _0x2e4199;const _0x3731a1=_0x2e4199[_0x4f3bba(0x12c)]('/')?_0x2e4199['slice'](0x0,-0x1):_0x2e4199,_0x44b7b1=_0x5ab40b[_0x4f3bba(0x134)]('/')?_0x5ab40b:'/'+_0x5ab40b;return _0x3731a1+_0x44b7b1;}export function resolveProfileUrl(_0x31aee4){const _0x5a97a8={'MQCsm':function(_0x2d1784,_0x482387){return _0x2d1784(_0x482387);}},_0x3b3727=resolveBaseUrl(_0x31aee4),_0x391e24=_0x5a97a8['MQCsm'](resolveStartPath,_0x31aee4);return{'baseUrl':_0x3b3727,'startPath':_0x391e24,'url':joinBaseAndPath(_0x3b3727,_0x391e24)};}export function readUrlEnvVars(_0x5b8b3f=process[_0xa86bb8(0x13a)]){const _0x350cc7=_0xa86bb8;return{'envBaseUrl':_0x5b8b3f[_0x350cc7(0x130)],'envStartPath':_0x5b8b3f[_0x350cc7(0x12d)]};}
@@ -1 +1 @@
1
- function _0x3e3b(_0x3c3eb9,_0x2d7751){_0x3c3eb9=_0x3c3eb9-0xd4;const _0x16a5bc=_0x16a5();let _0x3e3ba8=_0x16a5bc[_0x3c3eb9];return _0x3e3ba8;}function _0x16a5(){const _0x92575e=['1499460tqCjbI','317046TYrUSG','maxRetries','49TggILS','label','15wCSNiw','pow','baseDelayMs','58IkllAX','1138DLwkNY','29772ZmNEoQ','),\x20retrying\x20in\x20','2032mttTLO','1010756cRzrPS','zwkpk','495mKXDoQ','42220dVvpSA','9713796CFqIKz'];_0x16a5=function(){return _0x92575e;};return _0x16a5();}(function(_0x1db35d,_0x51df75){const _0x3a3b35=_0x3e3b,_0x409416=_0x1db35d();while(!![]){try{const _0x5a2f3c=-parseInt(_0x3a3b35(0xd4))/0x1*(parseInt(_0x3a3b35(0xd5))/0x2)+parseInt(_0x3a3b35(0xde))/0x3+parseInt(_0x3a3b35(0xd9))/0x4*(parseInt(_0x3a3b35(0xe3))/0x5)+-parseInt(_0x3a3b35(0xdf))/0x6*(parseInt(_0x3a3b35(0xe1))/0x7)+parseInt(_0x3a3b35(0xd8))/0x8*(-parseInt(_0x3a3b35(0xd6))/0x9)+parseInt(_0x3a3b35(0xdc))/0xa*(-parseInt(_0x3a3b35(0xdb))/0xb)+parseInt(_0x3a3b35(0xdd))/0xc;if(_0x5a2f3c===_0x51df75)break;else _0x409416['push'](_0x409416['shift']());}catch(_0x986132){_0x409416['push'](_0x409416['shift']());}}}(_0x16a5,0x9ad93));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x17b220,_0x3a3576){const _0x5245a5=_0x3e3b,_0x529acd={'MCknL':function(_0x1e3be8,_0x9d85d0){return _0x1e3be8(_0x9d85d0);},'iUOGY':function(_0x4a404c,_0xb9a62c){return _0x4a404c*_0xb9a62c;},'zwkpk':function(_0x888fc,_0x4c52a1){return _0x888fc+_0x4c52a1;}},_0x35ba2d=_0x3a3576?.[_0x5245a5(0xe0)]??DEFAULT_MAX_RETRIES,_0x155f20=_0x3a3576?.[_0x5245a5(0xe5)]??DEFAULT_BASE_DELAY_MS;let _0x56db88;for(let _0x4b0754=0x0;_0x4b0754<=_0x35ba2d;_0x4b0754++){try{return await _0x17b220();}catch(_0x527813){_0x56db88=_0x527813 instanceof Error?_0x527813:new Error(_0x529acd['MCknL'](String,_0x527813));if(_0x4b0754<_0x35ba2d){const _0x4005a8=_0x529acd['iUOGY'](_0x155f20,Math[_0x5245a5(0xe4)](0x2,_0x4b0754));_0x3a3576?.['label']&&console['error'](_0x3a3576[_0x5245a5(0xe2)]+'\x20failed\x20(attempt\x20'+_0x529acd[_0x5245a5(0xda)](_0x4b0754,0x1)+'/'+(_0x35ba2d+0x1)+_0x5245a5(0xd7)+_0x4005a8+'ms...'),await new Promise(_0xe2badd=>setTimeout(_0xe2badd,_0x4005a8));}}}throw _0x56db88;}
1
+ function _0x1968(){const _0x5ffc0b=['error','54836ZnMCUw','baseDelayMs','Szomp','4023207QuiPdJ','1950865qogCHA','255002wXFYuy','4724528ijhRCt','12jMrlAw','ms...','pGaEE','label','1909852UGMHjv','373708xYPWfr','\x20failed\x20(attempt\x20','12CTrLMI','maxRetries'];_0x1968=function(){return _0x5ffc0b;};return _0x1968();}(function(_0x43d727,_0x4c6a1e){const _0x3d8844=_0x3967,_0x12e836=_0x43d727();while(!![]){try{const _0xc0ae24=parseInt(_0x3d8844(0x8a))/0x1+-parseInt(_0x3d8844(0x94))/0x2+parseInt(_0x3d8844(0x8c))/0x3*(parseInt(_0x3d8844(0x8f))/0x4)+-parseInt(_0x3d8844(0x93))/0x5+-parseInt(_0x3d8844(0x96))/0x6*(-parseInt(_0x3d8844(0x89))/0x7)+-parseInt(_0x3d8844(0x95))/0x8+parseInt(_0x3d8844(0x92))/0x9;if(_0xc0ae24===_0x4c6a1e)break;else _0x12e836['push'](_0x12e836['shift']());}catch(_0x3b8896){_0x12e836['push'](_0x12e836['shift']());}}}(_0x1968,0x4c6a7));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x3967(_0xf7cc55,_0x3e3ab1){_0xf7cc55=_0xf7cc55-0x87;const _0x196842=_0x1968();let _0x39673f=_0x196842[_0xf7cc55];return _0x39673f;}export async function withRetry(_0x33d54a,_0x3d4b40){const _0x34b1ed=_0x3967,_0x312bf1={'pGaEE':function(_0x240fb4,_0x4053ff){return _0x240fb4(_0x4053ff);},'Szomp':function(_0x3e956e,_0x11bb2c){return _0x3e956e+_0x11bb2c;}},_0x1ff87d=_0x3d4b40?.[_0x34b1ed(0x8d)]??DEFAULT_MAX_RETRIES,_0x22d51e=_0x3d4b40?.[_0x34b1ed(0x90)]??DEFAULT_BASE_DELAY_MS;let _0x2504ac;for(let _0x3e5c8e=0x0;_0x3e5c8e<=_0x1ff87d;_0x3e5c8e++){try{return await _0x33d54a();}catch(_0x26db13){_0x2504ac=_0x26db13 instanceof Error?_0x26db13:new Error(_0x312bf1[_0x34b1ed(0x87)](String,_0x26db13));if(_0x3e5c8e<_0x1ff87d){const _0x49a865=_0x22d51e*Math['pow'](0x2,_0x3e5c8e);_0x3d4b40?.['label']&&console[_0x34b1ed(0x8e)](_0x3d4b40[_0x34b1ed(0x88)]+_0x34b1ed(0x8b)+_0x312bf1[_0x34b1ed(0x91)](_0x3e5c8e,0x1)+'/'+_0x312bf1['Szomp'](_0x1ff87d,0x1)+'),\x20retrying\x20in\x20'+_0x49a865+_0x34b1ed(0x97)),await new Promise(_0x5502f1=>setTimeout(_0x5502f1,_0x49a865));}}}throw _0x2504ac;}
@@ -1 +1 @@
1
- const _0x1838c3=_0x22fc;(function(_0x1d92e1,_0x567def){const _0x4229f8=_0x22fc,_0x1c92dd=_0x1d92e1();while(!![]){try{const _0x56457f=-parseInt(_0x4229f8(0x1d4))/0x1*(parseInt(_0x4229f8(0x1d8))/0x2)+-parseInt(_0x4229f8(0x1e5))/0x3+-parseInt(_0x4229f8(0x1d2))/0x4+-parseInt(_0x4229f8(0x1f0))/0x5*(parseInt(_0x4229f8(0x1df))/0x6)+parseInt(_0x4229f8(0x1db))/0x7*(-parseInt(_0x4229f8(0x1be))/0x8)+parseInt(_0x4229f8(0x1f6))/0x9+parseInt(_0x4229f8(0x1bf))/0xa;if(_0x56457f===_0x567def)break;else _0x1c92dd['push'](_0x1c92dd['shift']());}catch(_0x47b42e){_0x1c92dd['push'](_0x1c92dd['shift']());}}}(_0x3d7e,0xeac82));import*as _0x14eaaa from'fs';import*as _0x5d964d from'path';import*as _0x18a6e6 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x5d964d[_0x1838c3(0x1f9)](_0x18a6e6['homedir'](),_0x1838c3(0x1d6),'.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x2295fd=_0x1838c3,_0x14b4d2={'UfCdk':_0x2295fd(0x1cf),'iIHcZ':function(_0x55b881){return _0x55b881();}};try{if(_0x14eaaa[_0x2295fd(0x1ea)](CACHE_FILE)){const _0x336865=JSON['parse'](_0x14eaaa['readFileSync'](CACHE_FILE,_0x14b4d2[_0x2295fd(0x1c7)]));return{'version':0x3,'sessions':_0x336865['sessions']||{},'branches':_0x336865[_0x2295fd(0x1e6)]||{},'lastEnabledSessionClearedAt':_0x336865[_0x2295fd(0x1e7)]};}}catch{}return _0x14b4d2['iIHcZ'](createEmptyCache);}function saveCache(_0x3b3dae){const _0x5ec746=_0x1838c3;try{const _0x167f5c=_0x5d964d['dirname'](CACHE_FILE);!_0x14eaaa['existsSync'](_0x167f5c)&&_0x14eaaa[_0x5ec746(0x1e2)](_0x167f5c,{'recursive':!![]}),_0x14eaaa[_0x5ec746(0x1cc)](CACHE_FILE,JSON['stringify'](_0x3b3dae,null,0x2));}catch{}}export function getCurrentBranch(){const _0x562118=_0x1838c3,_0x1ffa0b={'TjzKd':function(_0x2b6ad9,_0x43ac09,_0x47357e){return _0x2b6ad9(_0x43ac09,_0x47357e);},'nxGTJ':_0x562118(0x1ca),'wWJWJ':'pipe','JreQl':function(_0x1f1981,_0x12fc17){return _0x1f1981===_0x12fc17;},'KRpxl':'HEAD'};try{const _0x4f25d8=_0x1ffa0b[_0x562118(0x1dc)](execSync,_0x1ffa0b[_0x562118(0x1c0)],{'encoding':_0x562118(0x1cf),'stdio':[_0x1ffa0b['wWJWJ'],_0x1ffa0b[_0x562118(0x1cb)],_0x1ffa0b['wWJWJ']]})['trim']();if(!_0x4f25d8||_0x1ffa0b['JreQl'](_0x4f25d8,_0x1ffa0b[_0x562118(0x1c2)]))return null;return _0x4f25d8;}catch{return null;}}export function enableBranch(_0x32a5de){const _0x58ab96=_0x1838c3,_0x1e73e2={'hgPpN':function(_0x10ed98){return _0x10ed98();}},_0xb559b7=_0x1e73e2[_0x58ab96(0x1ee)](loadCache);_0xb559b7['branches'][_0x32a5de]=!![],saveCache(_0xb559b7);}export function disableBranch(_0x591314){const _0x359ca8=_0x1838c3,_0x45515a={'iAdkt':function(_0x29fc77){return _0x29fc77();}},_0x345d3f=_0x45515a[_0x359ca8(0x1e8)](loadCache);delete _0x345d3f[_0x359ca8(0x1e6)][_0x591314],saveCache(_0x345d3f);}export function isBranchEnabled(_0x49c821){const _0x801644=_0x1838c3,_0x5d2ede={'cFCyn':function(_0x10fd82){return _0x10fd82();},'vulKT':function(_0x836125,_0x46d1ef){return _0x836125===_0x46d1ef;}},_0x2cc326=_0x5d2ede[_0x801644(0x1d7)](loadCache);return _0x5d2ede['vulKT'](_0x2cc326[_0x801644(0x1e6)][_0x49c821],!![]);}function getOrCreateSession(_0x321004,_0x5daf2d){const _0x576c97=_0x1838c3;return!_0x321004['sessions'][_0x5daf2d]&&(_0x321004[_0x576c97(0x1c3)][_0x5daf2d]={}),_0x321004[_0x576c97(0x1c3)][_0x5daf2d];}export function enableSession(_0x3e95cd){const _0x161a3b=_0x1838c3,_0xde133c={'zBneE':function(_0x470e29){return _0x470e29();},'LDpnw':function(_0x459c32,_0xeacd7a){return _0x459c32!==_0xeacd7a;},'zWQRi':_0x161a3b(0x1f5),'fMkvV':function(_0x27ba1b,_0x5cc52a){return _0x27ba1b(_0x5cc52a);}},_0x557a68=_0xde133c[_0x161a3b(0x1d0)](loadCache),_0x1f4795=getOrCreateSession(_0x557a68,_0x3e95cd);_0x1f4795['enabled']=!![];const _0xb7cfb8=getCurrentBranch();_0xb7cfb8&&_0xde133c[_0x161a3b(0x1d1)](_0xb7cfb8,_0xde133c[_0x161a3b(0x1c1)])&&_0xde133c['LDpnw'](_0xb7cfb8,_0x161a3b(0x1d9))&&(_0x557a68[_0x161a3b(0x1e6)][_0xb7cfb8]=!![],_0x1f4795[_0x161a3b(0x1d5)]=_0xb7cfb8),_0xde133c[_0x161a3b(0x1e4)](saveCache,_0x557a68);}function _0x22fc(_0x50b97b,_0x345fe9){_0x50b97b=_0x50b97b-0x1be;const _0x3d7e6f=_0x3d7e();let _0x22fcf8=_0x3d7e6f[_0x50b97b];return _0x22fcf8;}export function isSessionEnabled(_0x5d8cf2){const _0x41c3c9=_0x1838c3,_0x435f3c={'hkGTf':function(_0x1bf97e){return _0x1bf97e();},'wqvlR':function(_0xb50732,_0x4a8d3e){return _0xb50732===_0x4a8d3e;},'LiHHJ':_0x41c3c9(0x1f5),'hWuZc':function(_0x131013,_0x4abe8){return _0x131013===_0x4abe8;}},_0x1c6754=_0x435f3c[_0x41c3c9(0x1d3)](loadCache),_0x33e47e=getCurrentBranch();if(!_0x33e47e||_0x435f3c['wqvlR'](_0x33e47e,_0x435f3c[_0x41c3c9(0x1e9)])||_0x33e47e==='master')return _0x1c6754[_0x41c3c9(0x1c3)][_0x5d8cf2]?.['enabled']===!![];const _0x3fb4ad=_0x435f3c['hWuZc'](_0x1c6754['branches'][_0x33e47e],!![]),_0x1a229f=_0x1c6754[_0x41c3c9(0x1c3)][_0x5d8cf2]?.['enabled']===!![];return _0x3fb4ad||_0x1a229f;}export function disableSession(_0x4492a4){const _0x28b062={'Ckmar':function(_0x1807b6,_0x22e366){return _0x1807b6(_0x22e366);}},_0x1cc459=loadCache(),_0x19f45a=getOrCreateSession(_0x1cc459,_0x4492a4);_0x19f45a['enabled']=![],_0x28b062['Ckmar'](saveCache,_0x1cc459);}export function updateBranchTracking(_0x44ffc8){const _0x2f3094=_0x1838c3,_0x24cf5a={'xyrLg':function(_0x3609dd){return _0x3609dd();},'AxNlm':function(_0x18cc7e,_0x18cfec){return _0x18cc7e===_0x18cfec;},'YhOgn':'master','uRBRR':function(_0x2e0bb7,_0x5958a2){return _0x2e0bb7!==_0x5958a2;}},_0x193cdf=loadCache(),_0x4c97f9=_0x193cdf['sessions'][_0x44ffc8];if(!_0x4c97f9?.['enabled'])return;const _0x16ea32=_0x24cf5a[_0x2f3094(0x1eb)](getCurrentBranch);if(!_0x16ea32||_0x24cf5a['AxNlm'](_0x16ea32,'main')||_0x16ea32===_0x24cf5a[_0x2f3094(0x1c6)])return;_0x24cf5a['uRBRR'](_0x4c97f9[_0x2f3094(0x1d5)],_0x16ea32)&&(_0x193cdf[_0x2f3094(0x1e6)][_0x16ea32]=!![],_0x4c97f9[_0x2f3094(0x1d5)]=_0x16ea32,saveCache(_0x193cdf));}export function initBranchTracking(_0x290666){const _0x4d7cc9=_0x1838c3,_0xe594d2={'srAYB':function(_0x28233b){return _0x28233b();},'BvHvN':function(_0x2a4b42,_0x2ee5b2){return _0x2a4b42(_0x2ee5b2);}},_0x2877c7=loadCache(),_0x135e1a=_0xe594d2['srAYB'](getCurrentBranch);if(!_0x135e1a||_0x135e1a==='main'||_0x135e1a===_0x4d7cc9(0x1d9))return;if(_0x2877c7[_0x4d7cc9(0x1e6)][_0x135e1a]===!![]){const _0x54fc2e=getOrCreateSession(_0x2877c7,_0x290666);_0x54fc2e['enabled']=!![],_0x54fc2e['currentBranch']=_0x135e1a,_0xe594d2[_0x4d7cc9(0x1c5)](saveCache,_0x2877c7);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x862606){const _0x3812bc=_0x1838c3,_0x595e7d=loadCache(),_0x57072a=_0x595e7d['sessions'][_0x862606];_0x57072a?.['enabled']&&(_0x595e7d[_0x3812bc(0x1e7)]=Date[_0x3812bc(0x1dd)](),saveCache(_0x595e7d));}export function shouldAutoEnableAfterClear(_0x53362b){const _0x43dac4=_0x1838c3,_0x227321={'VaolJ':function(_0xcafe7b,_0x4e4b78){return _0xcafe7b!==_0x4e4b78;},'ICdoV':function(_0x2a6d35,_0x2d4318){return _0x2a6d35-_0x2d4318;},'oyChn':function(_0x10466f,_0x574755){return _0x10466f<=_0x574755;}};if(_0x227321['VaolJ'](_0x53362b,_0x43dac4(0x1ef)))return![];const _0x4de370=loadCache(),_0x5969a7=_0x4de370[_0x43dac4(0x1e7)];if(!_0x5969a7)return![];const _0x417594=_0x227321[_0x43dac4(0x1f7)](Date[_0x43dac4(0x1dd)](),_0x5969a7);return _0x227321[_0x43dac4(0x1da)](_0x417594,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x5b67ad){const _0x2082b=_0x1838c3,_0x524352={'tjdhJ':function(_0x1ca34d,_0x3ad75b,_0x1fd401){return _0x1ca34d(_0x3ad75b,_0x1fd401);},'AiwSb':function(_0x13fcef){return _0x13fcef();},'hmkmn':function(_0x1caf38,_0x3b60d4){return _0x1caf38!==_0x3b60d4;},'dlDQK':_0x2082b(0x1d9)},_0x43d7fa=loadCache(),_0x447654=_0x524352['tjdhJ'](getOrCreateSession,_0x43d7fa,_0x5b67ad);_0x447654[_0x2082b(0x1e0)]=!![];const _0x31f2ac=_0x524352[_0x2082b(0x1c9)](getCurrentBranch);_0x31f2ac&&_0x524352[_0x2082b(0x1e1)](_0x31f2ac,_0x2082b(0x1f5))&&_0x524352['hmkmn'](_0x31f2ac,_0x524352['dlDQK'])&&(_0x447654[_0x2082b(0x1d5)]=_0x31f2ac),delete _0x43d7fa['lastEnabledSessionClearedAt'],saveCache(_0x43d7fa);}export function registerSession(_0x28a9d6,_0x15d429){const _0x4afd1a=_0x1838c3,_0x379951={'ofEvQ':function(_0x349e93,_0x2bb14e,_0x34c854){return _0x349e93(_0x2bb14e,_0x34c854);},'DIuHp':function(_0x3019f3,_0x325e6e){return _0x3019f3(_0x325e6e);}},_0x3a879d=loadCache(),_0x3b769f=_0x379951['ofEvQ'](getOrCreateSession,_0x3a879d,_0x28a9d6);_0x3b769f[_0x4afd1a(0x1c8)]=_0x15d429,_0x3b769f['registeredAt']=new Date()[_0x4afd1a(0x1f4)](),_0x379951['DIuHp'](saveCache,_0x3a879d);}export function getSessionEntry(_0x111561){const _0x4daef4=_0x1838c3,_0x3eb76d={'PiqYH':function(_0x21ac25){return _0x21ac25();}},_0x4eaefd=_0x3eb76d['PiqYH'](loadCache),_0x351383=_0x4eaefd['sessions'][_0x111561];if(_0x351383?.[_0x4daef4(0x1c8)]&&_0x351383?.['registeredAt'])return{'featureId':_0x351383[_0x4daef4(0x1c8)],'registeredAt':_0x351383[_0x4daef4(0x1e3)]};return null;}export function unregisterSession(_0x58396f){const _0x3b4543=_0x1838c3,_0x91ebce={'aoHvM':function(_0x47bcdc){return _0x47bcdc();},'MZEPB':function(_0x207133,_0x3cbc81){return _0x207133(_0x3cbc81);}},_0xd6c34b=_0x91ebce[_0x3b4543(0x1c4)](loadCache),_0x2b5b01=_0xd6c34b['sessions'][_0x58396f];_0x2b5b01&&(delete _0x2b5b01[_0x3b4543(0x1c8)],delete _0x2b5b01['registeredAt'],_0x91ebce['MZEPB'](saveCache,_0xd6c34b));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x7037a5){const _0x1b1c86=_0x1838c3,_0x28e471={'tduQz':function(_0xcb5412){return _0xcb5412();},'urXCN':function(_0x1bcbdf,_0x3508a0,_0x1a7cbe){return _0x1bcbdf(_0x3508a0,_0x1a7cbe);},'pxNjq':function(_0x115183,_0x423cd2){return _0x115183-_0x423cd2;},'IWNKl':function(_0x240df7,_0x5a3cce){return _0x240df7(_0x5a3cce);}},_0x5d7dfa=_0x28e471['tduQz'](loadCache),_0x2abb4c=_0x28e471[_0x1b1c86(0x1ed)](getOrCreateSession,_0x5d7dfa,_0x7037a5),_0x353cd0=_0x2abb4c['lastPlanReminderAt']||0x0,_0x3aca05=Date[_0x1b1c86(0x1dd)]();if(_0x28e471['pxNjq'](_0x3aca05,_0x353cd0)>=PLAN_REMINDER_INTERVAL_MS)return _0x2abb4c[_0x1b1c86(0x1f2)]=_0x3aca05,_0x28e471[_0x1b1c86(0x1de)](saveCache,_0x5d7dfa),!![];return![];}export function shouldShowStopReminder(_0x51fc15){const _0x3efcc8=_0x1838c3,_0x434adb={'iXJEu':function(_0x38e5c9,_0x1d7a46){return _0x38e5c9>=_0x1d7a46;}},_0x53e569=loadCache(),_0x1c47a5=getOrCreateSession(_0x53e569,_0x51fc15),_0x3a269a=_0x1c47a5[_0x3efcc8(0x1cd)]||0x0,_0x28957a=Date['now']();if(_0x434adb[_0x3efcc8(0x1ce)](_0x28957a-_0x3a269a,STOP_REMINDER_INTERVAL_MS))return _0x1c47a5[_0x3efcc8(0x1cd)]=_0x28957a,saveCache(_0x53e569),!![];return![];}export function hasSessionBeenPrompted(_0x1127dd){const _0x498e3b=_0x1838c3,_0xc6d80c={'MyUGP':function(_0x2c5bd8){return _0x2c5bd8();},'iruqe':function(_0x4267d0,_0x554062){return _0x4267d0===_0x554062;}},_0x33aca1=_0xc6d80c['MyUGP'](loadCache);return _0xc6d80c[_0x498e3b(0x1f8)](_0x33aca1[_0x498e3b(0x1c3)][_0x1127dd]?.[_0x498e3b(0x1f3)],!![]);}function _0x3d7e(){const _0x3b84d9=['nxGTJ','zWQRi','KRpxl','sessions','aoHvM','BvHvN','YhOgn','UfCdk','featureId','AiwSb','git\x20rev-parse\x20--abbrev-ref\x20HEAD','wWJWJ','writeFileSync','lastStopReminderAt','iXJEu','utf-8','zBneE','LDpnw','3869112WUKMAX','hkGTf','2sQIaBH','currentBranch','.claude','cFCyn','1550126Nqqlhv','master','oyChn','259dleHSl','TjzKd','now','IWNKl','24qBbUWk','enabled','hmkmn','mkdirSync','registeredAt','fMkvV','3840678CAwkaq','branches','lastEnabledSessionClearedAt','iAdkt','LiHHJ','existsSync','xyrLg','BWqBl','urXCN','hgPpN','clear','182615lgiQGO','EXExi','lastPlanReminderAt','prompted','toISOString','main','6478254KWpRhD','ICdoV','iruqe','join','375616TrrFCB','59228060Gnoybj'];_0x3d7e=function(){return _0x3b84d9;};return _0x3d7e();}export function markSessionPrompted(_0x40e708){const _0x3dee80=_0x1838c3,_0xc8c3b0={'BWqBl':function(_0x3dbac0){return _0x3dbac0();},'EXExi':function(_0x359f7b,_0x18ef59){return _0x359f7b(_0x18ef59);}},_0x1a366b=_0xc8c3b0[_0x3dee80(0x1ec)](loadCache),_0x291f4d=getOrCreateSession(_0x1a366b,_0x40e708);_0x291f4d['prompted']=!![],_0xc8c3b0[_0x3dee80(0x1f1)](saveCache,_0x1a366b);}export function getCacheFile(){return CACHE_FILE;}
1
+ function _0x35ac(_0x38b2e9,_0x31116f){_0x38b2e9=_0x38b2e9-0xd4;const _0x1127dc=_0x1127();let _0x35acc4=_0x1127dc[_0x38b2e9];return _0x35acc4;}const _0x52cf63=_0x35ac;(function(_0x2e029f,_0x546f21){const _0x8847c7=_0x35ac,_0xab5c9a=_0x2e029f();while(!![]){try{const _0x1f44d5=parseInt(_0x8847c7(0x102))/0x1+parseInt(_0x8847c7(0xdf))/0x2*(parseInt(_0x8847c7(0xfd))/0x3)+parseInt(_0x8847c7(0xf8))/0x4*(-parseInt(_0x8847c7(0xd4))/0x5)+-parseInt(_0x8847c7(0xf9))/0x6+parseInt(_0x8847c7(0x100))/0x7*(-parseInt(_0x8847c7(0x105))/0x8)+-parseInt(_0x8847c7(0xe6))/0x9+parseInt(_0x8847c7(0xfc))/0xa;if(_0x1f44d5===_0x546f21)break;else _0xab5c9a['push'](_0xab5c9a['shift']());}catch(_0x58ab42){_0xab5c9a['push'](_0xab5c9a['shift']());}}}(_0x1127,0x3e5b4));import*as _0x29a1dd from'fs';import*as _0x1ff4e3 from'path';import*as _0x23bf79 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x1ff4e3[_0x52cf63(0xe4)](_0x23bf79['homedir'](),'.claude',_0x52cf63(0xd8));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function _0x1127(){const _0x2d62aa=['main','.ranger_cache.json','HEAD','gVsVn','VBunH','now','JvSzM','writeFileSync','6814zzTOKl','PALPB','JoNHq','GpPba','lastStopReminderAt','join','TVaNe','3145293tJdbda','KQGqs','featureId','master','prompted','trim','stringify','registeredAt','yOOYH','lastPlanReminderAt','xODhY','sessions','PSQFO','AdrLH','lastEnabledSessionClearedAt','pipe','parse','dirname','774792uBnmOK','628098HXAJyH','veLYn','AiRcw','4378810zmxbzO','312ecCCSP','enabled','fBiOn','94423gEgdSc','currentBranch','399182gJBwOZ','kpsHZ','BqHpo','56fbTZfm','utf-8','ZqmSy','branches','10hZsVhb','WMNQe','SgKnk'];_0x1127=function(){return _0x2d62aa;};return _0x1127();}function loadCache(){const _0x4eae9f=_0x52cf63,_0x1d36e8={'efUgL':function(_0x54b7bf){return _0x54b7bf();}};try{if(_0x29a1dd['existsSync'](CACHE_FILE)){const _0x9f4900=JSON[_0x4eae9f(0xf6)](_0x29a1dd['readFileSync'](CACHE_FILE,'utf-8'));return{'version':0x3,'sessions':_0x9f4900['sessions']||{},'branches':_0x9f4900[_0x4eae9f(0x108)]||{},'lastEnabledSessionClearedAt':_0x9f4900['lastEnabledSessionClearedAt']};}}catch{}return _0x1d36e8['efUgL'](createEmptyCache);}function saveCache(_0x3f0524){const _0x3878d8=_0x52cf63;try{const _0x7c8bbe=_0x1ff4e3[_0x3878d8(0xf7)](CACHE_FILE);!_0x29a1dd['existsSync'](_0x7c8bbe)&&_0x29a1dd['mkdirSync'](_0x7c8bbe,{'recursive':!![]}),_0x29a1dd[_0x3878d8(0xde)](CACHE_FILE,JSON[_0x3878d8(0xec)](_0x3f0524,null,0x2));}catch{}}export function getCurrentBranch(){const _0x39ac77=_0x52cf63,_0x2f3f87={'BeKdd':_0x39ac77(0x106),'yMjjl':_0x39ac77(0xf5),'UYOUZ':_0x39ac77(0xd9)};try{const _0x4afc38=execSync('git\x20rev-parse\x20--abbrev-ref\x20HEAD',{'encoding':_0x2f3f87['BeKdd'],'stdio':[_0x39ac77(0xf5),_0x39ac77(0xf5),_0x2f3f87['yMjjl']]})[_0x39ac77(0xeb)]();if(!_0x4afc38||_0x4afc38===_0x2f3f87['UYOUZ'])return null;return _0x4afc38;}catch{return null;}}export function enableBranch(_0x337726){const _0x36b281=_0x52cf63,_0x41dae9={'AlYcu':function(_0x3a99c2){return _0x3a99c2();},'PSQFO':function(_0x23754e,_0x526fd3){return _0x23754e(_0x526fd3);}},_0x1ae6ab=_0x41dae9['AlYcu'](loadCache);_0x1ae6ab[_0x36b281(0x108)][_0x337726]=!![],_0x41dae9[_0x36b281(0xf2)](saveCache,_0x1ae6ab);}export function disableBranch(_0x479162){const _0x43e9c0=loadCache();delete _0x43e9c0['branches'][_0x479162],saveCache(_0x43e9c0);}export function isBranchEnabled(_0xff6492){const _0xb36a88=_0x52cf63,_0x2d4261={'dTfUZ':function(_0x1ceefa){return _0x1ceefa();},'BejXK':function(_0x11e57f,_0x296493){return _0x11e57f===_0x296493;}},_0x2ea6ff=_0x2d4261['dTfUZ'](loadCache);return _0x2d4261['BejXK'](_0x2ea6ff[_0xb36a88(0x108)][_0xff6492],!![]);}function getOrCreateSession(_0x26b09f,_0x19e153){const _0x136d2b=_0x52cf63;return!_0x26b09f[_0x136d2b(0xf1)][_0x19e153]&&(_0x26b09f[_0x136d2b(0xf1)][_0x19e153]={}),_0x26b09f[_0x136d2b(0xf1)][_0x19e153];}export function enableSession(_0x499f0e){const _0x1e875c=_0x52cf63,_0x257044={'MlGac':function(_0x578955){return _0x578955();},'xODhY':function(_0x468b3d,_0x52357e,_0x25ebdf){return _0x468b3d(_0x52357e,_0x25ebdf);}},_0x585164=_0x257044['MlGac'](loadCache),_0x375ca8=_0x257044[_0x1e875c(0xf0)](getOrCreateSession,_0x585164,_0x499f0e);_0x375ca8['enabled']=!![];const _0x469692=_0x257044['MlGac'](getCurrentBranch);_0x469692&&_0x469692!==_0x1e875c(0xd7)&&_0x469692!==_0x1e875c(0xe9)&&(_0x585164[_0x1e875c(0x108)][_0x469692]=!![],_0x375ca8[_0x1e875c(0x101)]=_0x469692),saveCache(_0x585164);}export function isSessionEnabled(_0x537525){const _0x59e622=_0x52cf63,_0x3acc02={'pURQB':'master','AiRcw':function(_0x5a4327,_0x37dc02){return _0x5a4327===_0x37dc02;}},_0x3d0466=loadCache(),_0x2ee599=getCurrentBranch();if(!_0x2ee599||_0x2ee599==='main'||_0x2ee599===_0x3acc02['pURQB'])return _0x3acc02[_0x59e622(0xfb)](_0x3d0466[_0x59e622(0xf1)][_0x537525]?.[_0x59e622(0xfe)],!![]);const _0x1e98d4=_0x3d0466['branches'][_0x2ee599]===!![],_0x1bfa4c=_0x3acc02[_0x59e622(0xfb)](_0x3d0466[_0x59e622(0xf1)][_0x537525]?.[_0x59e622(0xfe)],!![]);return _0x1e98d4||_0x1bfa4c;}export function disableSession(_0x21d04e){const _0x4f8c12=_0x52cf63,_0x4ff298={'WMNQe':function(_0x723616){return _0x723616();},'GpPba':function(_0x343a29,_0x2eed52){return _0x343a29(_0x2eed52);}},_0x31048f=_0x4ff298[_0x4f8c12(0xd5)](loadCache),_0x2c1415=getOrCreateSession(_0x31048f,_0x21d04e);_0x2c1415[_0x4f8c12(0xfe)]=![],_0x4ff298[_0x4f8c12(0xe2)](saveCache,_0x31048f);}export function updateBranchTracking(_0x1d6b7a){const _0x59f183=_0x52cf63,_0x1f1d36={'Szqky':function(_0x318ef6){return _0x318ef6();},'DRsvX':function(_0x30edb6){return _0x30edb6();},'yOOYH':function(_0x5811bc,_0x23357e){return _0x5811bc===_0x23357e;},'Hpktl':function(_0x195608,_0x306dc7){return _0x195608!==_0x306dc7;},'QAbMO':function(_0x7a80a3,_0x1e33f1){return _0x7a80a3(_0x1e33f1);}},_0x13b27d=_0x1f1d36['Szqky'](loadCache),_0x406949=_0x13b27d[_0x59f183(0xf1)][_0x1d6b7a];if(!_0x406949?.['enabled'])return;const _0x24848f=_0x1f1d36['DRsvX'](getCurrentBranch);if(!_0x24848f||_0x1f1d36['yOOYH'](_0x24848f,_0x59f183(0xd7))||_0x1f1d36[_0x59f183(0xee)](_0x24848f,_0x59f183(0xe9)))return;_0x1f1d36['Hpktl'](_0x406949['currentBranch'],_0x24848f)&&(_0x13b27d[_0x59f183(0x108)][_0x24848f]=!![],_0x406949['currentBranch']=_0x24848f,_0x1f1d36['QAbMO'](saveCache,_0x13b27d));}export function initBranchTracking(_0x7bf3a9){const _0x27870e=_0x52cf63,_0x36c9f3={'KQGqs':function(_0x2c8bf5){return _0x2c8bf5();},'rwUBW':function(_0x1d3bda,_0xce8654){return _0x1d3bda===_0xce8654;},'QBrsq':_0x27870e(0xd7),'gVsVn':'master','BqHpo':function(_0x234186,_0x59d614,_0x2f754b){return _0x234186(_0x59d614,_0x2f754b);},'gQkLv':function(_0x32175b,_0x2b7c81){return _0x32175b(_0x2b7c81);}},_0x12fa13=loadCache(),_0x25a7a0=_0x36c9f3[_0x27870e(0xe7)](getCurrentBranch);if(!_0x25a7a0||_0x36c9f3['rwUBW'](_0x25a7a0,_0x36c9f3['QBrsq'])||_0x25a7a0===_0x36c9f3[_0x27870e(0xda)])return;if(_0x36c9f3['rwUBW'](_0x12fa13['branches'][_0x25a7a0],!![])){const _0x3cb0d7=_0x36c9f3[_0x27870e(0x104)](getOrCreateSession,_0x12fa13,_0x7bf3a9);_0x3cb0d7['enabled']=!![],_0x3cb0d7[_0x27870e(0x101)]=_0x25a7a0,_0x36c9f3['gQkLv'](saveCache,_0x12fa13);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;export function recordEnabledSessionCleared(_0x332981){const _0x2db52c=_0x52cf63,_0x28c85b={'fBiOn':function(_0x41effd,_0x67f900){return _0x41effd(_0x67f900);}},_0x3f9c44=loadCache(),_0x20f922=_0x3f9c44[_0x2db52c(0xf1)][_0x332981];_0x20f922?.['enabled']&&(_0x3f9c44['lastEnabledSessionClearedAt']=Date[_0x2db52c(0xdc)](),_0x28c85b[_0x2db52c(0xff)](saveCache,_0x3f9c44));}export function shouldAutoEnableAfterClear(_0x288faf){const _0x238c02=_0x52cf63,_0xa2b10c={'kpsHZ':function(_0x144c89,_0x371089){return _0x144c89!==_0x371089;},'AUBgC':'clear','IFADf':function(_0xa75e06){return _0xa75e06();},'JvSzM':function(_0xdcb5ee,_0x597d8b){return _0xdcb5ee-_0x597d8b;},'PALPB':function(_0x15269f,_0x5047d0){return _0x15269f<=_0x5047d0;}};if(_0xa2b10c[_0x238c02(0x103)](_0x288faf,_0xa2b10c['AUBgC']))return![];const _0x3ce69f=_0xa2b10c['IFADf'](loadCache),_0x356feb=_0x3ce69f[_0x238c02(0xf4)];if(!_0x356feb)return![];const _0x56f4af=_0xa2b10c[_0x238c02(0xdd)](Date['now'](),_0x356feb);return _0xa2b10c[_0x238c02(0xe0)](_0x56f4af,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0xcc22e){const _0x1414d2=_0x52cf63,_0x14f81a={'JoNHq':function(_0x96c4f2,_0x3d6ae7,_0x6e6122){return _0x96c4f2(_0x3d6ae7,_0x6e6122);},'wjJrz':_0x1414d2(0xe9),'SgKnk':function(_0x5c8e94,_0x285ac9){return _0x5c8e94(_0x285ac9);}},_0x2cf330=loadCache(),_0x644c55=_0x14f81a[_0x1414d2(0xe1)](getOrCreateSession,_0x2cf330,_0xcc22e);_0x644c55['enabled']=!![];const _0x9ea494=getCurrentBranch();_0x9ea494&&_0x9ea494!=='main'&&_0x9ea494!==_0x14f81a['wjJrz']&&(_0x644c55[_0x1414d2(0x101)]=_0x9ea494),delete _0x2cf330[_0x1414d2(0xf4)],_0x14f81a[_0x1414d2(0xd6)](saveCache,_0x2cf330);}export function registerSession(_0x35f7a9,_0x9c19d9){const _0x20ea21=_0x52cf63,_0xf5d11a={'TVaNe':function(_0x329419){return _0x329419();},'ZNdWR':function(_0x36c8e6,_0xca756e,_0x3f161c){return _0x36c8e6(_0xca756e,_0x3f161c);}},_0x45d779=_0xf5d11a[_0x20ea21(0xe5)](loadCache),_0x3277f5=_0xf5d11a['ZNdWR'](getOrCreateSession,_0x45d779,_0x35f7a9);_0x3277f5[_0x20ea21(0xe8)]=_0x9c19d9,_0x3277f5['registeredAt']=new Date()['toISOString'](),saveCache(_0x45d779);}export function getSessionEntry(_0x5ca201){const _0x1b531b=_0x52cf63,_0x213354={'veLYn':function(_0x4ac737){return _0x4ac737();}},_0x1d3c0e=_0x213354[_0x1b531b(0xfa)](loadCache),_0x182fae=_0x1d3c0e['sessions'][_0x5ca201];if(_0x182fae?.[_0x1b531b(0xe8)]&&_0x182fae?.['registeredAt'])return{'featureId':_0x182fae['featureId'],'registeredAt':_0x182fae[_0x1b531b(0xed)]};return null;}export function unregisterSession(_0xd42d0e){const _0x45d825=loadCache(),_0x7efb23=_0x45d825['sessions'][_0xd42d0e];_0x7efb23&&(delete _0x7efb23['featureId'],delete _0x7efb23['registeredAt'],saveCache(_0x45d825));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x2b0c5d){const _0x54e211=_0x52cf63,_0x2295b1={'RVJcq':function(_0x474f55,_0x2bf9f2,_0x500d38){return _0x474f55(_0x2bf9f2,_0x500d38);},'bZoHh':function(_0x31e267,_0x342a98){return _0x31e267>=_0x342a98;},'jBnrr':function(_0x350122,_0x5dfca2){return _0x350122-_0x5dfca2;}},_0x3ffcf6=loadCache(),_0x55d497=_0x2295b1['RVJcq'](getOrCreateSession,_0x3ffcf6,_0x2b0c5d),_0x12553a=_0x55d497[_0x54e211(0xef)]||0x0,_0x20d78a=Date['now']();if(_0x2295b1['bZoHh'](_0x2295b1['jBnrr'](_0x20d78a,_0x12553a),PLAN_REMINDER_INTERVAL_MS))return _0x55d497[_0x54e211(0xef)]=_0x20d78a,saveCache(_0x3ffcf6),!![];return![];}export function shouldShowStopReminder(_0x57f5bb){const _0xc429bd=_0x52cf63,_0x4a374e={'AdrLH':function(_0x33cc41){return _0x33cc41();},'abPyu':function(_0x25a7b7,_0x2cbd4c){return _0x25a7b7>=_0x2cbd4c;},'VBunH':function(_0x78bdd4,_0x181d96){return _0x78bdd4-_0x181d96;},'rjlme':function(_0x257745,_0x30b579){return _0x257745(_0x30b579);}},_0x289ee2=_0x4a374e[_0xc429bd(0xf3)](loadCache),_0xff2fb7=getOrCreateSession(_0x289ee2,_0x57f5bb),_0x54347b=_0xff2fb7[_0xc429bd(0xe3)]||0x0,_0x4c4ff6=Date['now']();if(_0x4a374e['abPyu'](_0x4a374e[_0xc429bd(0xdb)](_0x4c4ff6,_0x54347b),STOP_REMINDER_INTERVAL_MS))return _0xff2fb7[_0xc429bd(0xe3)]=_0x4c4ff6,_0x4a374e['rjlme'](saveCache,_0x289ee2),!![];return![];}export function hasSessionBeenPrompted(_0x5da4ff){const _0x589b9b=_0x52cf63,_0x116024=loadCache();return _0x116024['sessions'][_0x5da4ff]?.[_0x589b9b(0xea)]===!![];}export function markSessionPrompted(_0x2e2000){const _0x374539=_0x52cf63,_0x3bb315={'ZqmSy':function(_0xaf8f24){return _0xaf8f24();},'tkEAR':function(_0x17f0f9,_0x7a750e,_0x107f0c){return _0x17f0f9(_0x7a750e,_0x107f0c);}},_0x554ff6=_0x3bb315[_0x374539(0x107)](loadCache),_0x405451=_0x3bb315['tkEAR'](getOrCreateSession,_0x554ff6,_0x2e2000);_0x405451['prompted']=!![],saveCache(_0x554ff6);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x1f0ad9=_0x47e9;(function(_0x35e1eb,_0x36c5c7){const _0x1ab00d=_0x47e9,_0x1ba2f5=_0x35e1eb();while(!![]){try{const _0x2cb6e8=-parseInt(_0x1ab00d(0x1e3))/0x1+parseInt(_0x1ab00d(0x1ee))/0x2+parseInt(_0x1ab00d(0x23c))/0x3*(parseInt(_0x1ab00d(0x1e7))/0x4)+parseInt(_0x1ab00d(0x1f6))/0x5*(-parseInt(_0x1ab00d(0x1fe))/0x6)+-parseInt(_0x1ab00d(0x1fb))/0x7+parseInt(_0x1ab00d(0x23d))/0x8+parseInt(_0x1ab00d(0x1f2))/0x9;if(_0x2cb6e8===_0x36c5c7)break;else _0x1ba2f5['push'](_0x1ba2f5['shift']());}catch(_0x256acc){_0x1ba2f5['push'](_0x1ba2f5['shift']());}}}(_0x3fd7,0xae509));import{readFile,writeFile,mkdir,unlink}from'fs/promises';function _0x3fd7(){const _0x2c04c1=['wdKTI','stNvu','OZmKf','chromium','fmdmn','bWSPn','legacy','all','string','QLaiQ','ENOENT','split','497827fOXAPR','repeat','.json','executablePath','4kOgeDb','EvtgJ','header','parse','KxKTH','filter','settings.json','1631378jcsaQm','IANpn','catch','join','12100509iQqEpX','pdf','gjDDQ','TkFME','5931110RMLTyi','aELBT','RaDCQ','hERmT','--disable-features=WebBluetooth','4562831FWvRwP','boolean','lxdoT','6cpFQdO','pNBDK','IQXtB','\x22\x20to\x20legacy\x20path\x20','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a','storageState','iYUtl','forWrite','isArray','xXOTe','--no-sandbox','agAgz','userAgent','aSWLi','tWfuM','auth.json','Awqob','zlQVP','emQoT','dWfli','cdpEndpoint','XXfZD','--disable-web-security','keys','drYAL','XAWpQ','clipboard-write','cZExQ','LCKcT','emAUS','FGlsd','WktYv','ranger-config','safeMode','dHPMx','path','ignoreHTTPSErrors','map','efcYn','Failed\x20to\x20decrypt\x20auth\x20state:\x20','now','KqidD','--allow-insecure-localhost','--disable-setuid-sandbox','endsWith','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','OdCrt','-cli','DxaNB','amsxl','storageStatePath','baseUrl','extraHTTPHeaders','auth.json.enc','browser','getuid','setupHeaders','stagehand','contextOptions','KurYN','allow','qAilj','2225814oSgiJe','1181976TqBlSF','env','sessions','tOjoF','playwright-cli','dGxmx','args','length','object','fromEntries','--unsafely-treat-insecure-origin-as-secure=http://localhost','configPath','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','core','push','includes','headless','file','local','slwnW','entries'];_0x3fd7=function(){return _0x2c04c1;};return _0x3fd7();}import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{chromium}from'playwright';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x288e1f,_0xe51316){const _0x34a8a3=_0x47e9,_0x45304f={'ZboOC':function(_0x137a13,_0x4b2a8f,_0x55dbd5,_0x379a4e){return _0x137a13(_0x4b2a8f,_0x55dbd5,_0x379a4e);},'dWfli':function(_0x42ceb9,_0x4a0a4c,_0x5353a8){return _0x42ceb9(_0x4a0a4c,_0x5353a8);},'EvtgJ':function(_0x360b9d,_0x379607,_0x1b2693){return _0x360b9d(_0x379607,_0x1b2693);},'bWSPn':function(_0x4aea6a,_0x22a9a5){return _0x4aea6a(_0x22a9a5);},'RaDCQ':function(_0x51e20e,_0x17f46b){return _0x51e20e!==_0x17f46b;}},_0x16a03a=_0x45304f['ZboOC'](join,_0xe51316,'ci',_0x288e1f),_0x5ae453=join(_0xe51316,_0x34a8a3(0x24f),_0x288e1f),_0x19af9e=_0x45304f[_0x34a8a3(0x211)](join,_0xe51316,_0x288e1f),_0x48df19=join(_0xe51316,_0x34a8a3(0x24f)),_0x4b02c6=_0x45304f[_0x34a8a3(0x1e8)](join,_0xe51316,'ci');if(existsSync(_0x16a03a))return _0x16a03a;if(_0x45304f[_0x34a8a3(0x1dc)](existsSync,_0x5ae453))return _0x5ae453;if(existsSync(_0x19af9e)&&(_0x45304f[_0x34a8a3(0x1f8)](_0x19af9e,_0x48df19)&&_0x45304f[_0x34a8a3(0x1f8)](_0x19af9e,_0x4b02c6)?!![]:hasLegacyProfileFiles(_0x19af9e)))return _0x19af9e;return null;}export function getEnvDir(_0x1fabb7,_0x55233c={}){const _0x3b412a=_0x47e9,_0x3f0a63={'amsxl':function(_0x1e35e3,_0x4c7e1a,_0x2c773f){return _0x1e35e3(_0x4c7e1a,_0x2c773f);},'OdCrt':function(_0x50ada2,_0x434769){return _0x50ada2(_0x434769);},'huUGH':function(_0xeee981,_0x3c9d89,_0x5228df){return _0xeee981(_0x3c9d89,_0x5228df);},'bHIiO':function(_0x35ec3a,_0x35005a,_0x260464,_0x1464d2){return _0x35ec3a(_0x35005a,_0x260464,_0x1464d2);},'aELBT':_0x3b412a(0x24f)},_0x2bc379=getRangerDir(),_0x565b80=_0x3f0a63[_0x3b412a(0x22f)](findEnvInRoot,_0x1fabb7,_0x2bc379);if(_0x565b80){if(_0x55233c[_0x3b412a(0x205)]&&_0x3f0a63[_0x3b412a(0x22c)](isLegacyEnvPath,_0x565b80))throw _0x3f0a63['huUGH'](legacyWriteError,_0x1fabb7,_0x565b80);return _0x565b80;}const _0x46ac87=getRangerHomeDir();if(_0x46ac87!==_0x2bc379){const _0x8652e6=findEnvInRoot(_0x1fabb7,_0x46ac87);if(_0x8652e6){if(_0x55233c[_0x3b412a(0x205)]&&isLegacyEnvPath(_0x8652e6))throw legacyWriteError(_0x1fabb7,_0x8652e6);return _0x8652e6;}}const _0x167af0=_0x3f0a63['bHIiO'](join,_0x46ac87,_0x3f0a63[_0x3b412a(0x1f7)],_0x1fabb7);if(_0x55233c['forWrite'])throw legacyWriteError(_0x1fabb7,_0x167af0);return _0x167af0;}function isLegacyEnvPath(_0x3339cd){const _0x37209e=_0x47e9,_0xda6afb={'PxOMd':function(_0x1e662c){return _0x1e662c();},'NUDGP':function(_0x59b8a7,_0x49335f){return _0x59b8a7+_0x49335f;}},_0x372fbf=getRangerDir(),_0x7136f8=_0xda6afb['PxOMd'](getRangerHomeDir);for(const _0xbc997c of new Set([_0x372fbf,_0x7136f8])){const _0x2865a6=_0xbc997c[_0x37209e(0x22a)]('/')?_0xbc997c:_0xda6afb['NUDGP'](_0xbc997c,'/');if(_0x3339cd===_0xbc997c||_0x3339cd['startsWith'](_0x2865a6))return!![];}return![];}function legacyWriteError(_0xca273f,_0x49ab0c){const _0x422c02=_0x47e9,_0x510f87={'gjDDQ':function(_0x445bf5,_0xa6ea9d){return _0x445bf5+_0xa6ea9d;}};return new Error(_0x510f87[_0x422c02(0x1f4)](_0x510f87[_0x422c02(0x1f4)]('Refusing\x20to\x20write\x20profile\x20\x22'+_0xca273f+_0x422c02(0x201)+_0x49ab0c+'.\x0a',_0x422c02(0x202))+'\x20\x20ranger\x20profile\x20add\x20<name>\x0a',_0x422c02(0x22b)));}export function findExistingEnv(_0x15580c,_0x2f3013){const _0x137366=_0x47e9,_0x2910f2={'OZmKf':_0x137366(0x1dd),'lxdoT':function(_0x5ef9cf,_0x2bae1a,_0x374882){return _0x5ef9cf(_0x2bae1a,_0x374882);},'wdKTI':function(_0x1d112a,_0x4616f9){return _0x1d112a(_0x4616f9);},'MBtId':function(_0x535cef,_0x2b5f96){return _0x535cef===_0x2b5f96;},'pDdUk':function(_0x2a9a09,_0x2e140a){return _0x2a9a09===_0x2e140a;}},_0x3c7b9b=_0x2f3013?.['rangerDir'],_0x57d7de=_0x3c7b9b?[_0x3c7b9b]:[getRangerDir(),getRangerHomeDir()][_0x137366(0x1ec)]((_0x182869,_0x8d2478,_0xe969b7)=>_0xe969b7['indexOf'](_0x182869)===_0x8d2478),_0x3952ca=_0x2f3013?.['locations']??['ci',_0x137366(0x24f),_0x2910f2[_0x137366(0x1d9)]];for(const _0x1f7b5b of _0x57d7de){const _0xc3c225=_0x2910f2[_0x137366(0x1fd)](join,_0x1f7b5b,_0x137366(0x24f)),_0x3fd1a3=join(_0x1f7b5b,'ci'),_0x64785=[{'location':'ci','path':join(_0x1f7b5b,'ci',_0x15580c)},{'location':'local','path':join(_0x1f7b5b,_0x137366(0x24f),_0x15580c)},{'location':_0x137366(0x1dd),'path':join(_0x1f7b5b,_0x15580c)}];for(const _0x488a66 of _0x64785){if(_0x3952ca[_0x137366(0x24c)](_0x488a66['location'])&&_0x2910f2[_0x137366(0x1d7)](existsSync,_0x488a66[_0x137366(0x221)])){if(_0x2910f2['MBtId'](_0x488a66['location'],_0x2910f2['OZmKf'])&&(_0x488a66[_0x137366(0x221)]===_0xc3c225||_0x2910f2['pDdUk'](_0x488a66[_0x137366(0x221)],_0x3fd1a3))&&!hasLegacyProfileFiles(_0x488a66[_0x137366(0x221)]))continue;return{'path':_0x488a66[_0x137366(0x221)],'location':_0x488a66['location']};}}}return null;}function hasLegacyProfileFiles(_0x3f6b69){const _0x190634=_0x47e9,_0x27e8f0={'QLaiQ':function(_0x20f0b4,_0x25c9bb){return _0x20f0b4(_0x25c9bb);}};return _0x27e8f0[_0x190634(0x1e0)](existsSync,join(_0x3f6b69,_0x190634(0x1ed)))||_0x27e8f0[_0x190634(0x1e0)](existsSync,join(_0x3f6b69,_0x190634(0x20d)))||_0x27e8f0['QLaiQ'](existsSync,join(_0x3f6b69,_0x190634(0x233)));}export function isEnvCi(_0xbe52ff){const _0x39ee24=_0x47e9,_0x269b04={'xXOTe':function(_0x2e1761,_0x1e7ba0,_0x5962f7,_0x1a1e53){return _0x2e1761(_0x1e7ba0,_0x5962f7,_0x1a1e53);},'qBHmN':function(_0x3f6419){return _0x3f6419();},'SAoqf':function(_0x2d30fd){return _0x2d30fd();},'Awqob':function(_0x106b86){return _0x106b86();},'QEefw':function(_0x11b09b,_0x41639e){return _0x11b09b(_0x41639e);},'hNXol':function(_0x4dd231,_0x3c5f13,_0x59f51c,_0x1adae6){return _0x4dd231(_0x3c5f13,_0x59f51c,_0x1adae6);}};if(existsSync(_0x269b04[_0x39ee24(0x207)](join,_0x269b04['qBHmN'](getRangerDir),'ci',_0xbe52ff)))return!![];const _0x2e53ba=_0x269b04['SAoqf'](getRangerHomeDir);if(_0x2e53ba!==_0x269b04[_0x39ee24(0x20e)](getRangerDir)&&_0x269b04['QEefw'](existsSync,_0x269b04['hNXol'](join,_0x2e53ba,'ci',_0xbe52ff)))return!![];return![];}export async function cleanupTempFiles(_0x40b047){const _0x3e13bc=_0x47e9,_0x4b3124={'uDBIe':function(_0x54f6f6,_0x450474){return _0x54f6f6!==_0x450474;}},_0x2c3eff=[_0x40b047['tempAuthPath'],_0x40b047[_0x3e13bc(0x248)]]['filter'](Boolean);await Promise[_0x3e13bc(0x1de)](_0x2c3eff['map'](_0xf4524d=>unlink(_0xf4524d)['catch'](_0x13845a=>{const _0x1bda06=_0x3e13bc;_0x4b3124['uDBIe'](_0x13845a['code'],_0x1bda06(0x1e1))&&console['warn'](_0x1bda06(0x249)+_0xf4524d+':',_0x13845a['message']);})));}export function getSettingsPath(_0x33c88f){const _0x49941a=_0x47e9;return join(getEnvDir(_0x33c88f),_0x49941a(0x1ed));}export async function loadSettings(_0xbfb6bb){const _0x11d144=_0x47e9,_0x1e9b61={'fmdmn':function(_0x1699b7,_0x164a7c){return _0x1699b7(_0x164a7c);},'XAWpQ':function(_0x144ec4,_0x48dbb4,_0x2aa754){return _0x144ec4(_0x48dbb4,_0x2aa754);},'AnWdm':'utf-8'},_0x2d69ea=getSettingsPath(_0xbfb6bb);if(!_0x1e9b61[_0x11d144(0x1db)](existsSync,_0x2d69ea))return{};try{const _0x2d0ddb=await _0x1e9b61[_0x11d144(0x217)](readFile,_0x2d69ea,_0x1e9b61['AnWdm']);return JSON[_0x11d144(0x1ea)](_0x2d0ddb);}catch{return{};}}export async function saveSettings(_0x1786f6,_0x436c00){const _0x1beda7=_0x47e9,_0x400f1f={'pNBDK':function(_0x3e9876,_0x33d405){return _0x3e9876(_0x33d405);},'dOHCb':function(_0x36e854,_0x1f61ba,_0x29bf2a){return _0x36e854(_0x1f61ba,_0x29bf2a);},'efcYn':function(_0x450cdc,_0x25256f,_0x25a032){return _0x450cdc(_0x25256f,_0x25a032);}},_0x2dc05a=getSettingsPath(_0x1786f6),_0x3a327b=_0x400f1f['pNBDK'](dirname,_0x2dc05a);!_0x400f1f[_0x1beda7(0x1ff)](existsSync,_0x3a327b)&&await _0x400f1f['dOHCb'](mkdir,_0x3a327b,{'recursive':!![]}),await _0x400f1f[_0x1beda7(0x224)](writeFile,_0x2dc05a,JSON['stringify'](_0x436c00,null,0x2));}export function resolveEnvVars(_0x493d9e){const _0x211eae=_0x47e9,_0x4173f1={'SXbdx':_0x211eae(0x1df)};if(typeof _0x493d9e===_0x4173f1['SXbdx'])return _0x493d9e['replace'](/\$\{(\w+)\}/g,(_0x2eee8f,_0x3f0df5)=>{const _0xe69beb=_0x211eae,_0xeed412=process[_0xe69beb(0x23e)][_0x3f0df5];if(_0xeed412===undefined)throw new Error('Environment\x20variable\x20'+_0x3f0df5+'\x20is\x20not\x20set');return _0xeed412;});if(Array[_0x211eae(0x206)](_0x493d9e))return _0x493d9e['map'](resolveEnvVars);if(_0x493d9e&&typeof _0x493d9e==='object')return Object[_0x211eae(0x246)](Object[_0x211eae(0x1d6)](_0x493d9e)[_0x211eae(0x223)](([_0x280bed,_0x594be0])=>[_0x280bed,resolveEnvVars(_0x594be0)]));return _0x493d9e;}const isRecord=_0x50347f=>typeof _0x50347f==='object'&&_0x50347f!==null&&!Array['isArray'](_0x50347f),asRecord=_0x2a950a=>isRecord(_0x2a950a)?_0x2a950a:undefined,mergeHeaders=(_0x473084,_0xdedd36)=>{const _0x3728c9=_0x47e9,_0x2200fe={'XXfZD':function(_0x550412,_0x210087){return _0x550412??_0x210087;}},_0x3b750b={..._0x2200fe[_0x3728c9(0x213)](_0x473084,{}),..._0xdedd36??{}};return Object[_0x3728c9(0x215)](_0x3b750b)[_0x3728c9(0x244)]?_0x3b750b:undefined;},SAFE_MODE_ARGS=[_0x1f0ad9(0x1fa)],ALLOW_LOCALHOST_ARGS=[_0x1f0ad9(0x214),'--allow-running-insecure-content',_0x1f0ad9(0x247),_0x1f0ad9(0x228)];function _0x47e9(_0x4b2059,_0x537a4d){_0x4b2059=_0x4b2059-0x1d5;const _0x3fd77f=_0x3fd7();let _0x47e921=_0x3fd77f[_0x4b2059];return _0x47e921;}export function buildBrowserOptionsFromSettings(_0x43f73b,_0x335172={}){const _0x696a4f=_0x1f0ad9,_0x7592c7={'vMCkn':function(_0x1f94ab,_0x520f08){return _0x1f94ab(_0x520f08);},'stNvu':function(_0x2122c6,_0x54ad52){return _0x2122c6===_0x54ad52;}},_0x10931f=_0x7592c7['vMCkn'](asRecord,_0x43f73b[_0x696a4f(0x234)]),_0x5da93b={...asRecord(_0x10931f?.['launchOptions'])??{}};typeof _0x335172['headless']===_0x696a4f(0x1fc)&&(_0x5da93b['headless']=_0x335172[_0x696a4f(0x24d)]);if(_0x43f73b[_0x696a4f(0x21f)]){const _0x357e88=_0x5da93b[_0x696a4f(0x243)]??[],_0xf21045=SAFE_MODE_ARGS[_0x696a4f(0x1ec)](_0x18e74d=>!_0x357e88[_0x696a4f(0x24c)](_0x18e74d));_0x5da93b[_0x696a4f(0x243)]=[..._0x357e88,..._0xf21045];}if(_0x43f73b['allowInsecureLocalhost']){const _0x24f9a7=_0x5da93b[_0x696a4f(0x243)]??[],_0x2016b9=ALLOW_LOCALHOST_ARGS['filter'](_0xfe98ca=>!_0x24f9a7[_0x696a4f(0x24c)](_0xfe98ca));_0x5da93b['args']=[..._0x24f9a7,..._0x2016b9];}const _0x378f40={...asRecord(_0x10931f?.['contextOptions'])??{}};_0x378f40[_0x696a4f(0x222)]=!![];_0x7592c7[_0x696a4f(0x1d8)](typeof _0x43f73b[_0x696a4f(0x20a)],_0x696a4f(0x1df))&&(_0x378f40['userAgent']=_0x43f73b['userAgent']);const _0x1d3976=mergeHeaders(_0x7592c7['vMCkn'](asRecord,_0x378f40[_0x696a4f(0x232)]),asRecord(_0x43f73b['headers']));return _0x1d3976?_0x378f40[_0x696a4f(0x232)]=_0x1d3976:delete _0x378f40['extraHTTPHeaders'],_0x335172[_0x696a4f(0x230)]&&(_0x378f40[_0x696a4f(0x203)]=_0x335172['storageStatePath']),{'launchOptions':_0x5da93b,'contextOptions':_0x378f40};}export async function resolveProfileStorageState(_0x7d817c){const _0x4e533b=_0x1f0ad9,_0x503bcd={'iYUtl':function(_0x562b16,_0x2e3cb1){return _0x562b16(_0x2e3cb1);}};return _0x503bcd[_0x4e533b(0x204)](resolveLocalAuthPath,getEnvDir(_0x7d817c));}async function resolveLocalAuthPath(_0x11c2dc){const _0x4cf39a=_0x1f0ad9,_0x2ea274={'KqidD':function(_0x331d88,_0x562a96,_0x2735a8){return _0x331d88(_0x562a96,_0x2735a8);},'slwnW':'auth.json','cZExQ':function(_0x47004d,_0x523c06){return _0x47004d(_0x523c06);},'LCKcT':function(_0x35f5d8,_0x5a19d4){return _0x35f5d8(_0x5a19d4);}},_0x107682=_0x2ea274[_0x4cf39a(0x227)](join,_0x11c2dc,_0x4cf39a(0x233)),_0x4cac6b=_0x2ea274[_0x4cf39a(0x227)](join,_0x11c2dc,_0x2ea274[_0x4cf39a(0x1d5)]);if(_0x2ea274[_0x4cf39a(0x219)](existsSync,_0x107682))try{const _0x1638b1=await getToken();if(!_0x1638b1)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x2ec1db=await readFile(_0x107682),_0x13de5a=_0x2ea274['KqidD'](decrypt,_0x2ec1db,_0x1638b1),_0x24b965=join(tmpdir(),'ranger-auth-'+Date[_0x4cf39a(0x226)]()+_0x4cf39a(0x1e5));return await writeFile(_0x24b965,_0x13de5a),{'storageStatePath':_0x24b965,'tempAuthPath':_0x24b965};}catch(_0x3fe2cc){const _0x1c66c5=_0x3fe2cc instanceof Error?_0x3fe2cc['message']:_0x2ea274['cZExQ'](String,_0x3fe2cc);throw new Error(_0x4cf39a(0x225)+_0x1c66c5);}if(_0x2ea274[_0x4cf39a(0x21a)](existsSync,_0x4cac6b))return{'storageStatePath':_0x4cac6b};return{};}export async function buildPlaywrightConfig(_0x8975aa,_0x59d0ca,_0x1fb27c,_0x29e9cd,_0x22b882){const _0x930d82=_0x1f0ad9,_0x46c810={'FGlsd':function(_0x37876c,_0xe2f637,_0xb7dbb0,_0x12b71a,_0xe6606c,_0x4c6283,_0x2ad007){return _0x37876c(_0xe2f637,_0xb7dbb0,_0x12b71a,_0xe6606c,_0x4c6283,_0x2ad007);},'yVAZc':_0x930d82(0x237)};if(_0x22b882)return _0x46c810['FGlsd'](buildPlaywrightConfigCore,_0x8975aa,_0x22b882,_0x59d0ca,_0x1fb27c,_0x29e9cd,'stagehand');const {storageStatePath:_0x416344,tempAuthPath:_0x318e4b}=await resolveLocalAuthPath(getEnvDir(_0x59d0ca));try{const _0x26185d=await _0x46c810[_0x930d82(0x21c)](buildPlaywrightConfigCore,_0x8975aa,_0x416344,_0x59d0ca,_0x1fb27c,_0x29e9cd,_0x46c810['yVAZc']);return{..._0x26185d,'tempAuthPath':_0x318e4b};}catch(_0x5ea96a){_0x318e4b&&await unlink(_0x318e4b)['catch'](()=>{});throw _0x5ea96a;}}export async function buildPlaywrightConfigCore(_0x5e3d6f,_0xbf1747,_0xceb040,_0x12688a,_0x4ec2c2,_0x577bbe=_0x1f0ad9(0x237)){const _0x1ef01f=_0x1f0ad9,_0x5be85a={'WPSuz':_0x1ef01f(0x229),'WYAPS':_0x1ef01f(0x218),'WktYv':function(_0x208c15){return _0x208c15();},'jrBvx':_0x1ef01f(0x1da),'OfCYC':_0x1ef01f(0x24e),'IpDAK':'tabs','ZjRve':function(_0x30d002,_0x208906){return _0x30d002===_0x208906;},'DxaNB':function(_0x4d22e6,_0xf00d,_0x190e6f){return _0x4d22e6(_0xf00d,_0x190e6f);},'sxohG':'ranger-config','mPwNp':function(_0x4079ba,_0x33fb58){return _0x4079ba===_0x33fb58;}},_0x4f4d02=_0x12688a||randomUUID(),_0x52a8ad=join(_0x5be85a[_0x1ef01f(0x21d)](getRangerDir),'sessions',_0x4f4d02),_0x37f2b2=Boolean(_0x5e3d6f[_0x1ef01f(0x212)]),_0x2d27bc=_0x37f2b2?{'browserName':_0x5be85a['jrBvx'],'cdpEndpoint':_0x5e3d6f[_0x1ef01f(0x212)]}:((()=>{const _0x55028b=_0x1ef01f,{launchOptions:_0x107eca,contextOptions:_0x5ee926}=buildBrowserOptionsFromSettings(_0x5e3d6f,{'headless':_0x4ec2c2?![]:_0x5e3d6f[_0x55028b(0x24d)]??!![],'storageStatePath':_0xbf1747});if(process[_0x55028b(0x235)]?.()===0x0){const _0x3a13ca=[_0x55028b(0x208),_0x5be85a['WPSuz']],_0x259d5a=_0x107eca[_0x55028b(0x243)]??[],_0x5095bd=_0x3a13ca['filter'](_0x5cffb9=>!_0x259d5a['includes'](_0x5cffb9));_0x107eca['args']=[..._0x259d5a,..._0x5095bd];}return{'isolated':!![],'browserName':'chromium','launchOptions':_0x107eca,'contextOptions':{..._0x5ee926,'permissions':['clipboard-read',_0x5be85a['WYAPS']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x3e51a1=_0x577bbe===_0x1ef01f(0x241)?{'browser':_0x2d27bc,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x52a8ad,'outputMode':_0x5be85a['OfCYC'],'codegen':'none'}:{'name':_0xceb040,'browser':_0x2d27bc,'capabilities':[_0x1ef01f(0x24a),_0x5be85a['IpDAK'],'install',_0x1ef01f(0x1f3),'vision'],'imageResponses':_0x1ef01f(0x23a),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x52a8ad};if(!_0x37f2b2){const _0x356def=_0x3e51a1['browser'],_0x24789e=_0x356def['contextOptions'];if(_0x5be85a['ZjRve'](_0x24789e[_0x1ef01f(0x20a)],undefined))delete _0x24789e['userAgent'];if(_0x24789e['storageState']===undefined)delete _0x24789e['storageState'];}const _0x517965=_0x5be85a[_0x1ef01f(0x22e)](join,_0x5be85a['WktYv'](tmpdir),_0x5be85a['sxohG']);!existsSync(_0x517965)&&await mkdir(_0x517965,{'recursive':!![]});const _0x3c1454=_0x5be85a['mPwNp'](_0x577bbe,_0x1ef01f(0x241))?_0x1ef01f(0x22d):'',_0x49b34b=join(_0x517965,_0xceb040+'-'+Date[_0x1ef01f(0x226)]()+_0x3c1454+_0x1ef01f(0x1e5));return await writeFile(_0x49b34b,JSON['stringify'](_0x3e51a1,null,0x2)),{'configPath':_0x49b34b,'storageStatePath':_0xbf1747};}export async function buildPlaywrightCliConfig(_0x27c095,_0x211b70,_0x175c6d,_0x4197ef,_0x400c85){const _0x524415=_0x1f0ad9,_0xe1332b={'rpWMr':function(_0x151621,_0x8be0d2){return _0x151621(_0x8be0d2);},'AWWgS':function(_0x2ce90d,_0x2a77d1,_0x4a8fec,_0x35c3a1,_0x497bf3,_0x350c12,_0x229210){return _0x2ce90d(_0x2a77d1,_0x4a8fec,_0x35c3a1,_0x497bf3,_0x350c12,_0x229210);}};if(_0x400c85)return buildPlaywrightConfigCore(_0x27c095,_0x400c85,_0x211b70,_0x175c6d,_0x4197ef,_0x524415(0x241));const {storageStatePath:_0x5adb63,tempAuthPath:_0x4d7e8b}=await resolveLocalAuthPath(_0xe1332b['rpWMr'](getEnvDir,_0x211b70));try{const _0x4aaced=await _0xe1332b['AWWgS'](buildPlaywrightConfigCore,_0x27c095,_0x5adb63,_0x211b70,_0x175c6d,_0x4197ef,'playwright-cli');return{..._0x4aaced,'tempAuthPath':_0x4d7e8b};}catch(_0x392e17){_0x4d7e8b&&await unlink(_0x4d7e8b)[_0x524415(0x1f0)](()=>{});throw _0x392e17;}}export async function buildRangerwrightCliConfig(_0x35bba7,_0x38c0fa,_0x1a36f6,_0x2a6e6f,_0x454925){const _0x22aef6=_0x1f0ad9,_0x3eabb4={'aSWLi':function(_0x426379,_0x50912e){return _0x426379===_0x50912e;},'RtLdt':'chromium','dWRqJ':'clipboard-read','tOjoF':function(_0xfd9148){return _0xfd9148();},'JVRkb':_0x22aef6(0x23f),'dDaYF':function(_0x2d7469,_0x6bfc21){return _0x2d7469(_0x6bfc21);},'dGxmx':function(_0x2f1d9b,_0x84f0fe,_0x225c56){return _0x2f1d9b(_0x84f0fe,_0x225c56);}},{storageStatePath:_0x257926,tempAuthPath:_0x312747}=_0x454925?{'storageStatePath':_0x454925,'tempAuthPath':undefined}:await resolveLocalAuthPath(getEnvDir(_0x38c0fa)),_0x51ec57=_0x1a36f6||_0x3eabb4['tOjoF'](randomUUID),_0x53e73d=join(_0x3eabb4[_0x22aef6(0x240)](getRangerDir),_0x3eabb4['JVRkb'],_0x51ec57),_0x20791a=_0x3eabb4['dDaYF'](Boolean,_0x35bba7[_0x22aef6(0x212)]),_0x175d3a=_0x20791a?{'browserName':'chromium','cdpEndpoint':_0x35bba7['cdpEndpoint']}:((()=>{const _0x2702e4=_0x22aef6,{launchOptions:_0x2c4bf8,contextOptions:_0x20ace2}=buildBrowserOptionsFromSettings(_0x35bba7,{'headless':_0x2a6e6f?![]:_0x35bba7[_0x2702e4(0x24d)]??!![],'storageStatePath':_0x257926});if(_0x3eabb4[_0x2702e4(0x20b)](process['getuid']?.(),0x0)){const _0x3c8636=[_0x2702e4(0x208),'--disable-setuid-sandbox'],_0x1464f0=_0x2c4bf8[_0x2702e4(0x243)]??[],_0x5d2566=_0x3c8636['filter'](_0x1a80bf=>!_0x1464f0['includes'](_0x1a80bf));_0x2c4bf8[_0x2702e4(0x243)]=[..._0x1464f0,..._0x5d2566];}return{'browserName':_0x3eabb4['RtLdt'],'launchOptions':_0x2c4bf8,'contextOptions':{..._0x20ace2,'permissions':[_0x3eabb4['dWRqJ'],_0x2702e4(0x218)],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x20791a){const _0x316e0c=_0x175d3a[_0x22aef6(0x238)];if(_0x316e0c){if(_0x3eabb4[_0x22aef6(0x20b)](_0x316e0c['userAgent'],undefined))delete _0x316e0c['userAgent'];if(_0x316e0c[_0x22aef6(0x203)]===undefined)delete _0x316e0c['storageState'];}}const _0x5677d8={'browser':_0x175d3a,'outputDir':_0x53e73d,'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'settle':{'navigationLoadTimeoutMs':0x7530,'networkSettleTimeoutMs':0x1388,'networkIdleWindowMs':0x1f4,'postActionAnimationFrameCount':0x2}};let _0x1300b7;try{const _0x330a5d=_0x3eabb4[_0x22aef6(0x242)](join,_0x3eabb4['tOjoF'](tmpdir),_0x22aef6(0x21e));!existsSync(_0x330a5d)&&await mkdir(_0x330a5d,{'recursive':!![]}),_0x1300b7=join(_0x330a5d,_0x38c0fa+'-'+Date['now']()+'-rangerwright.json'),await writeFile(_0x1300b7,JSON['stringify'](_0x5677d8,null,0x2));}catch(_0x88a602){_0x312747&&await unlink(_0x312747)['catch'](()=>{});throw _0x88a602;}return{'configPath':_0x1300b7,'storageStatePath':_0x257926,'tempAuthPath':_0x312747,'outputDir':_0x53e73d};}export async function buildNovaActCliConfig(_0x1e09e5,_0x4c6ccc,_0x484093,_0x3e2194,_0x795d8a){const _0x5709b2=_0x1f0ad9,_0x405018={'bxrtE':function(_0x5a0209,_0x2b8871){return _0x5a0209(_0x2b8871);},'egJbz':function(_0x58eaf2,_0x1d54f9){return _0x58eaf2(_0x1d54f9);},'kAkTp':function(_0x2d802a){return _0x2d802a();},'NLhIc':function(_0x30c7a1,_0x43db75,_0x5201d2,_0x191649){return _0x30c7a1(_0x43db75,_0x5201d2,_0x191649);},'dHPMx':'nova-user-data','qAilj':function(_0xc49d2,_0x38cb3c,_0x9827d){return _0xc49d2(_0x38cb3c,_0x9827d);},'TkFME':function(_0x1f4b0f,_0x52cc1f){return _0x1f4b0f===_0x52cc1f;},'tWfuM':_0x5709b2(0x1df),'KxKTH':function(_0x38aeb2,_0x4877f5){return _0x38aeb2===_0x4877f5;},'wzXrK':function(_0x2ac6ee,_0x113733){return _0x2ac6ee(_0x113733);}},{storageStatePath:_0xb41240,tempAuthPath:_0xd63b3d}=_0x795d8a?{'storageStatePath':_0x795d8a,'tempAuthPath':undefined}:await _0x405018['bxrtE'](resolveLocalAuthPath,_0x405018['egJbz'](getEnvDir,_0x4c6ccc)),_0x1c6e1a=_0x484093||_0x405018['kAkTp'](randomUUID),_0x2e21dc=_0x405018['NLhIc'](join,getRangerDir(),'sessions',_0x1c6e1a),_0x173e1b=join(_0x2e21dc,_0x405018[_0x5709b2(0x220)]),_0x42d318=_0xb41240?_0x405018[_0x5709b2(0x23b)](join,_0x173e1b,'Default'):undefined,{launchOptions:_0xa84ff0,contextOptions:_0x59fc5a}=buildBrowserOptionsFromSettings(_0x1e09e5,{'headless':_0x3e2194?![]:_0x1e09e5[_0x5709b2(0x24d)]??!![],'storageStatePath':_0xb41240});if(_0x405018[_0x5709b2(0x1f5)](process['getuid']?.(),0x0)){const _0x57b710=[_0x5709b2(0x208),'--disable-setuid-sandbox'],_0x344202=_0xa84ff0[_0x5709b2(0x243)]??[],_0x2fcc7c=_0x57b710['filter'](_0x38aef4=>!_0x344202['includes'](_0x38aef4));_0xa84ff0[_0x5709b2(0x243)]=[..._0x344202,..._0x2fcc7c];}const _0x1210c8=typeof _0xa84ff0[_0x5709b2(0x1e6)]===_0x405018[_0x5709b2(0x20c)]?_0xa84ff0['executablePath']:_0xb41240?chromium[_0x5709b2(0x1e6)]():undefined;return{'storageStatePath':_0xb41240,'tempAuthPath':_0xd63b3d,'baseUrl':_0x1e09e5[_0x5709b2(0x231)],'headless':Boolean(_0xa84ff0[_0x5709b2(0x24d)]),'userDataDir':_0x173e1b,'browserProfilePath':_0x42d318,'executablePath':_0x1210c8,'launchArgs':Array['isArray'](_0xa84ff0[_0x5709b2(0x243)])?_0xa84ff0['args']['filter'](_0x347df5=>typeof _0x347df5===_0x5709b2(0x1df)):[],'userAgent':_0x405018[_0x5709b2(0x1eb)](typeof _0x59fc5a[_0x5709b2(0x20a)],'string')?_0x59fc5a['userAgent']:undefined,'extraHTTPHeaders':_0x59fc5a[_0x5709b2(0x232)],'allowInsecureLocalhost':Boolean(_0x1e09e5['allowInsecureLocalhost']),'safeMode':_0x405018['wzXrK'](Boolean,_0x1e09e5['safeMode']),'cdpEndpoint':_0x1e09e5[_0x5709b2(0x212)],'isCdpMode':Boolean(_0x1e09e5['cdpEndpoint'])};}export function getNestedValue(_0x94e9ae,_0x4034b8){const _0x52aa96=_0x1f0ad9,_0x171197={'NAeXp':function(_0x2b871b,_0x9fd540){return _0x2b871b(_0x9fd540);},'GWHLJ':function(_0x3ee471,_0x2c1a09){return _0x3ee471===_0x2c1a09;},'kIpBf':function(_0x3dcfba,_0x297e1f){return _0x3dcfba===_0x297e1f;},'ijJKn':function(_0xbb8a95,_0xe51eda){return _0xbb8a95!==_0xe51eda;}},_0x4628a8=_0x171197['NAeXp'](parseKeyPath,_0x4034b8);let _0x38d0e6=_0x94e9ae;for(const _0xfa2c24 of _0x4628a8){if(_0x171197['GWHLJ'](_0x38d0e6,null)||_0x171197['kIpBf'](_0x38d0e6,undefined)||_0x171197['ijJKn'](typeof _0x38d0e6,_0x52aa96(0x245)))return undefined;_0x38d0e6=_0x38d0e6[_0xfa2c24];}return _0x38d0e6;}export function setNestedValue(_0x985907,_0x37053f,_0x120f1d){const _0x4cbb8c=_0x1f0ad9,_0x25745c={'IANpn':function(_0x45cc29,_0x27178d){return _0x45cc29<_0x27178d;},'zlQVP':function(_0x127821,_0x725f76){return _0x127821 in _0x725f76;},'CEzPA':function(_0x20f55a,_0x55fddd){return _0x20f55a!==_0x55fddd;},'QcqWY':_0x4cbb8c(0x245)},_0x43b24b=parseKeyPath(_0x37053f);let _0xe0e418=_0x985907;for(let _0x232733=0x0;_0x25745c[_0x4cbb8c(0x1ef)](_0x232733,_0x43b24b[_0x4cbb8c(0x244)]-0x1);_0x232733++){const _0x10f30e=_0x43b24b[_0x232733];(!_0x25745c[_0x4cbb8c(0x20f)](_0x10f30e,_0xe0e418)||_0x25745c['CEzPA'](typeof _0xe0e418[_0x10f30e],_0x25745c['QcqWY']))&&(_0xe0e418[_0x10f30e]={}),_0xe0e418=_0xe0e418[_0x10f30e];}_0xe0e418[_0x43b24b[_0x43b24b['length']-0x1]]=_0x120f1d;}export function deleteNestedValue(_0xe909f9,_0x2dca65){const _0x1307ab=_0x1f0ad9,_0x1f6b26={'IQXtB':function(_0x2c4e22,_0x1bf423){return _0x2c4e22(_0x1bf423);},'emAUS':function(_0x45fa90,_0x182e0b){return _0x45fa90<_0x182e0b;},'KurYN':function(_0xd1a7c5,_0x5b2f4f){return _0xd1a7c5-_0x5b2f4f;},'agAgz':'object','hERmT':function(_0x154732,_0x581dc3){return _0x154732 in _0x581dc3;}},_0x6f8a6f=_0x1f6b26[_0x1307ab(0x200)](parseKeyPath,_0x2dca65);let _0x47cf30=_0xe909f9;for(let _0xb9a19c=0x0;_0x1f6b26[_0x1307ab(0x21b)](_0xb9a19c,_0x1f6b26[_0x1307ab(0x239)](_0x6f8a6f['length'],0x1));_0xb9a19c++){if(_0x47cf30===null||_0x47cf30===undefined||typeof _0x47cf30!==_0x1f6b26[_0x1307ab(0x209)])return![];_0x47cf30=_0x47cf30[_0x6f8a6f[_0xb9a19c]];}if(_0x47cf30===null||_0x47cf30===undefined||typeof _0x47cf30!==_0x1f6b26[_0x1307ab(0x209)])return![];const _0x3c5908=_0x6f8a6f[_0x6f8a6f[_0x1307ab(0x244)]-0x1];if(_0x1f6b26[_0x1307ab(0x1f9)](_0x3c5908,_0x47cf30))return delete _0x47cf30[_0x3c5908],!![];return![];}function parseKeyPath(_0x17e1e8){const _0x14bad4=_0x1f0ad9,_0x36bba0={'xMmCj':_0x14bad4(0x1e9),'MAtjT':'headers','LgeSV':function(_0x37d896,_0x272870){return _0x37d896===_0x272870;},'emQoT':'setupHeader'},_0x146a75=_0x17e1e8[_0x14bad4(0x1e2)]('.');return _0x146a75[0x0]===_0x36bba0['xMmCj']&&(_0x146a75[0x0]=_0x36bba0['MAtjT']),_0x36bba0['LgeSV'](_0x146a75[0x0],_0x36bba0[_0x14bad4(0x210)])&&(_0x146a75[0x0]=_0x14bad4(0x236)),_0x146a75;}export function formatSettings(_0x2b70fd,_0x14b2c4=0x0){const _0x2a1f38=_0x1f0ad9,_0x37b877={'zEenn':function(_0x1653a0,_0x3bf537){return _0x1653a0===_0x3bf537;},'drYAL':_0x2a1f38(0x245)},_0x1a3395=[],_0x2d5918='\x20\x20'[_0x2a1f38(0x1e4)](_0x14b2c4);for(const [_0x2ccfbf,_0xfb8cc8]of Object[_0x2a1f38(0x1d6)](_0x2b70fd)){if(_0xfb8cc8===undefined)continue;if(_0x37b877['zEenn'](typeof _0xfb8cc8,_0x37b877[_0x2a1f38(0x216)])&&_0xfb8cc8!==null){_0x1a3395[_0x2a1f38(0x24b)](''+_0x2d5918+_0x2ccfbf+':');for(const [_0x7a85b2,_0x340947]of Object['entries'](_0xfb8cc8)){_0x1a3395['push'](_0x2d5918+'\x20\x20'+_0x7a85b2+':\x20'+_0x340947);}}else _0x1a3395['push'](''+_0x2d5918+_0x2ccfbf+':\x20'+_0xfb8cc8);}return _0x1a3395[_0x2a1f38(0x1f1)]('\x0a');}
1
+ const _0x5c96a9=_0x2d84;(function(_0x3bf310,_0x581c7c){const _0x2818f3=_0x2d84,_0x4a6ede=_0x3bf310();while(!![]){try{const _0x4c75c2=parseInt(_0x2818f3(0x1a9))/0x1*(-parseInt(_0x2818f3(0x1a4))/0x2)+parseInt(_0x2818f3(0x1a7))/0x3+-parseInt(_0x2818f3(0x17d))/0x4*(-parseInt(_0x2818f3(0x1ba))/0x5)+-parseInt(_0x2818f3(0x1b5))/0x6*(parseInt(_0x2818f3(0x1d5))/0x7)+parseInt(_0x2818f3(0x1fa))/0x8+parseInt(_0x2818f3(0x194))/0x9+parseInt(_0x2818f3(0x1fd))/0xa*(-parseInt(_0x2818f3(0x188))/0xb);if(_0x4c75c2===_0x581c7c)break;else _0x4a6ede['push'](_0x4a6ede['shift']());}catch(_0x4f6c65){_0x4a6ede['push'](_0x4a6ede['shift']());}}}(_0x380e,0xf1ad7));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';function _0x2d84(_0x1b6cf4,_0x39b7c1){_0x1b6cf4=_0x1b6cf4-0x17d;const _0x380eb0=_0x380e();let _0x2d8465=_0x380eb0[_0x1b6cf4];return _0x2d8465;}import{tmpdir}from'os';import{randomUUID}from'crypto';import{chromium}from'playwright';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x29e4f4,_0xf4f84f){const _0x23aa58=_0x2d84,_0x4d81cf={'sboGU':function(_0x58be16,_0x5e4da1,_0x39e0d8,_0x6760b5){return _0x58be16(_0x5e4da1,_0x39e0d8,_0x6760b5);},'ODDTC':_0x23aa58(0x1dd),'jrQJC':function(_0x48ae6b,_0x30db29,_0x21cfe6){return _0x48ae6b(_0x30db29,_0x21cfe6);},'qhNyB':function(_0x865b93,_0x3981d6){return _0x865b93(_0x3981d6);},'xNibV':function(_0x4a7f12,_0x33cd11){return _0x4a7f12!==_0x33cd11;}},_0x4c14ba=join(_0xf4f84f,'ci',_0x29e4f4),_0x16d2af=_0x4d81cf[_0x23aa58(0x1b0)](join,_0xf4f84f,_0x4d81cf[_0x23aa58(0x1da)],_0x29e4f4),_0x39fcca=_0x4d81cf[_0x23aa58(0x1e5)](join,_0xf4f84f,_0x29e4f4),_0x174fdf=join(_0xf4f84f,'local'),_0x376b9b=_0x4d81cf['jrQJC'](join,_0xf4f84f,'ci');if(_0x4d81cf[_0x23aa58(0x1aa)](existsSync,_0x4c14ba))return _0x4c14ba;if(existsSync(_0x16d2af))return _0x16d2af;if(existsSync(_0x39fcca)&&(_0x4d81cf[_0x23aa58(0x1cd)](_0x39fcca,_0x174fdf)&&_0x39fcca!==_0x376b9b?!![]:hasLegacyProfileFiles(_0x39fcca)))return _0x39fcca;return null;}export function getEnvDir(_0x5387a9,_0x5c6bbd={}){const _0x2ea599=_0x2d84,_0x401594={'bysMo':function(_0x59444a){return _0x59444a();},'qdycN':function(_0x4dc1e5,_0x3be819,_0x4478a3){return _0x4dc1e5(_0x3be819,_0x4478a3);},'nWUIc':function(_0x2f30bb,_0x33c6cb){return _0x2f30bb(_0x33c6cb);},'ijRAC':function(_0xdb509b,_0xba1564){return _0xdb509b!==_0xba1564;}},_0x199484=_0x401594[_0x2ea599(0x1bf)](getRangerDir),_0x584431=_0x401594['qdycN'](findEnvInRoot,_0x5387a9,_0x199484);if(_0x584431){if(_0x5c6bbd[_0x2ea599(0x1db)]&&_0x401594['nWUIc'](isLegacyEnvPath,_0x584431))throw legacyWriteError(_0x5387a9,_0x584431);return _0x584431;}const _0x3059de=_0x401594[_0x2ea599(0x1bf)](getRangerHomeDir);if(_0x401594['ijRAC'](_0x3059de,_0x199484)){const _0x251a86=findEnvInRoot(_0x5387a9,_0x3059de);if(_0x251a86){if(_0x5c6bbd['forWrite']&&isLegacyEnvPath(_0x251a86))throw legacyWriteError(_0x5387a9,_0x251a86);return _0x251a86;}}const _0x482f78=join(_0x3059de,'local',_0x5387a9);if(_0x5c6bbd[_0x2ea599(0x1db)])throw legacyWriteError(_0x5387a9,_0x482f78);return _0x482f78;}function isLegacyEnvPath(_0x227167){const _0xb9d5cb=_0x2d84,_0x1268ad={'EZKXv':function(_0x19be7b,_0x3677f1){return _0x19be7b+_0x3677f1;},'ZNlJl':function(_0x175d70,_0x3a60b6){return _0x175d70===_0x3a60b6;}},_0x34e2d1=getRangerDir(),_0x1d98c7=getRangerHomeDir();for(const _0x5941d6 of new Set([_0x34e2d1,_0x1d98c7])){const _0x2fad23=_0x5941d6[_0xb9d5cb(0x1c0)]('/')?_0x5941d6:_0x1268ad[_0xb9d5cb(0x1bd)](_0x5941d6,'/');if(_0x1268ad['ZNlJl'](_0x227167,_0x5941d6)||_0x227167[_0xb9d5cb(0x1bb)](_0x2fad23))return!![];}return![];}function legacyWriteError(_0x52fab6,_0x452113){const _0x3e892c=_0x2d84,_0x5462f4={'tVHEJ':function(_0x50b37f,_0x19be52){return _0x50b37f+_0x19be52;}};return new Error(_0x5462f4['tVHEJ']('Refusing\x20to\x20write\x20profile\x20\x22'+_0x52fab6+_0x3e892c(0x1ab)+_0x452113+'.\x0a','That\x20directory\x20is\x20read-only\x20now.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:\x0a')+'\x20\x20ranger\x20profile\x20add\x20<name>\x0a'+_0x3e892c(0x18b));}export function findExistingEnv(_0x4e0c58,_0xf09e8){const _0xd4749e=_0x2d84,_0x1e6985={'uznzT':'legacy','nGRWb':function(_0x379bff,_0x2784c0,_0x30e034){return _0x379bff(_0x2784c0,_0x30e034);},'WSIRv':'local','jZPWo':function(_0x4e876a,_0x488941,_0x518b32,_0x22066f){return _0x4e876a(_0x488941,_0x518b32,_0x22066f);},'DZjVU':function(_0x4067bd,_0x2312d3){return _0x4067bd(_0x2312d3);}},_0x1d2083=_0xf09e8?.[_0xd4749e(0x1c6)],_0x5e1c99=_0x1d2083?[_0x1d2083]:[getRangerDir(),getRangerHomeDir()]['filter']((_0x409c3f,_0x10f127,_0x24b771)=>_0x24b771['indexOf'](_0x409c3f)===_0x10f127),_0x175710=_0xf09e8?.['locations']??['ci','local',_0x1e6985[_0xd4749e(0x1e9)]];for(const _0x293953 of _0x5e1c99){const _0x2d7bf3=_0x1e6985[_0xd4749e(0x18e)](join,_0x293953,_0x1e6985[_0xd4749e(0x1cb)]),_0x586f02=_0x1e6985[_0xd4749e(0x18e)](join,_0x293953,'ci'),_0x559c41=[{'location':'ci','path':_0x1e6985['jZPWo'](join,_0x293953,'ci',_0x4e0c58)},{'location':_0x1e6985[_0xd4749e(0x1cb)],'path':_0x1e6985[_0xd4749e(0x190)](join,_0x293953,_0x1e6985['WSIRv'],_0x4e0c58)},{'location':_0x1e6985[_0xd4749e(0x1e9)],'path':_0x1e6985['nGRWb'](join,_0x293953,_0x4e0c58)}];for(const _0x3818f6 of _0x559c41){if(_0x175710['includes'](_0x3818f6['location'])&&existsSync(_0x3818f6[_0xd4749e(0x1a0)])){if(_0x3818f6[_0xd4749e(0x1f4)]===_0xd4749e(0x1c7)&&(_0x3818f6['path']===_0x2d7bf3||_0x3818f6[_0xd4749e(0x1a0)]===_0x586f02)&&!_0x1e6985['DZjVU'](hasLegacyProfileFiles,_0x3818f6[_0xd4749e(0x1a0)]))continue;return{'path':_0x3818f6['path'],'location':_0x3818f6[_0xd4749e(0x1f4)]};}}}return null;}function hasLegacyProfileFiles(_0x182fbb){const _0x2184e6=_0x2d84;return existsSync(join(_0x182fbb,'settings.json'))||existsSync(join(_0x182fbb,'auth.json'))||existsSync(join(_0x182fbb,_0x2184e6(0x18c)));}export function isEnvCi(_0xf1106b){const _0x14cc34=_0x2d84,_0x3ba096={'mTUkR':function(_0x583090,_0xf9fab8){return _0x583090(_0xf9fab8);},'jDotW':function(_0x208d14,_0x4a3f41,_0x5648c7,_0x1787ad){return _0x208d14(_0x4a3f41,_0x5648c7,_0x1787ad);},'getAg':function(_0x2b6819){return _0x2b6819();},'agJlT':function(_0x170aa0){return _0x170aa0();},'WdfPz':function(_0x1c65ec,_0x82c58b){return _0x1c65ec(_0x82c58b);}};if(_0x3ba096[_0x14cc34(0x1fe)](existsSync,_0x3ba096[_0x14cc34(0x18d)](join,getRangerDir(),'ci',_0xf1106b)))return!![];const _0x1a73e1=_0x3ba096[_0x14cc34(0x19e)](getRangerHomeDir);if(_0x1a73e1!==_0x3ba096[_0x14cc34(0x195)](getRangerDir)&&_0x3ba096[_0x14cc34(0x1d4)](existsSync,_0x3ba096[_0x14cc34(0x18d)](join,_0x1a73e1,'ci',_0xf1106b)))return!![];return![];}export async function cleanupTempFiles(_0x1fd57a){const _0x2a8ae3=_0x2d84,_0x59bd59={'JpGXK':function(_0x1f4fab,_0x1c5d40){return _0x1f4fab!==_0x1c5d40;}},_0x13323=[_0x1fd57a['tempAuthPath'],_0x1fd57a[_0x2a8ae3(0x1ce)]]['filter'](Boolean);await Promise[_0x2a8ae3(0x17e)](_0x13323[_0x2a8ae3(0x1c1)](_0x273997=>unlink(_0x273997)[_0x2a8ae3(0x1d6)](_0x1d0b0a=>{const _0x49d411=_0x2a8ae3;_0x59bd59['JpGXK'](_0x1d0b0a[_0x49d411(0x1b2)],'ENOENT')&&console[_0x49d411(0x1b3)]('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x273997+':',_0x1d0b0a[_0x49d411(0x1f0)]);})));}function _0x380e(){const _0x46f857=['catch','-rangerwright.json','extraHTTPHeaders','wQIEi','ODDTC','forWrite','aizRu','local','ffEmN','xTyQC','auth.json','playwright-cli','parse','filter','clipboard-write','jrQJC','getuid','cdpEndpoint','fHcyT','uznzT','stagehand','SBzeo','utf-8','executablePath','browser','oqFKL','message','xyEEB','ibnlY','KRPyY','location','tdLQo','jZDad','allow','storageState','VczlU','8992888IwSTbW','isArray','ranger-auth-','22490AXzgLb','mTUkR','sessions','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','vision','kTtPK','safeMode','mOacM','dHAgq','4LjAeDh','all','SSRzJ','Kcdxt','userAgent','QjIun','contextOptions','wPitP','args','uQGyZ','headers','2035ljFYhZ','allowInsecureLocalhost','setupHeader','See\x20https://docs.ranger.net/main/concepts/profiles\x20for\x20setup\x20options.','auth.json.enc','jDotW','nGRWb','storageStatePath','jZPWo','suRBx','oejto','includes','12394845aGfmLj','agJlT','setupHeaders','now','gyocz','entries','eYjgH','nUFiK','Failed\x20to\x20decrypt\x20auth\x20state:\x20','QYKLO','getAg','object','path','ydOOm','clipboard-read','TDOdi','171338dzGBgO','tabs','split','4044168DvlllE','push','21SDCxVX','qhNyB','\x22\x20to\x20legacy\x20path\x20','ranger-config','WVIdh','XYDDS','--no-sandbox','sboGU','JCZZA','code','warn','IWdSq','6svBKJB','fromEntries','.json','length','--allow-running-insecure-content','3308105mIXmaR','startsWith','install','EZKXv','AqudS','bysMo','endsWith','map','string','IwCQf','EmLoN','VyMkR','rangerDir','legacy','cklwX','env','--unsafely-treat-insecure-origin-as-secure=http://localhost','WSIRv','zhkve','xNibV','configPath','\x20is\x20not\x20set','headless','pOeGB','chromium','join','WdfPz','9141776YAfJRf'];_0x380e=function(){return _0x46f857;};return _0x380e();}export function getSettingsPath(_0x1ab1e8){const _0x38519d=_0x2d84,_0x3a5495={'aizRu':function(_0x10b097,_0x1220dd,_0x552828){return _0x10b097(_0x1220dd,_0x552828);},'KRPyY':'settings.json'};return _0x3a5495[_0x38519d(0x1dc)](join,getEnvDir(_0x1ab1e8),_0x3a5495[_0x38519d(0x1f3)]);}export async function loadSettings(_0x22827f){const _0x269887=_0x2d84,_0x201dff={'rkbIb':function(_0x59bd87,_0x4b4bf6){return _0x59bd87(_0x4b4bf6);}},_0x4d6c41=getSettingsPath(_0x22827f);if(!_0x201dff['rkbIb'](existsSync,_0x4d6c41))return{};try{const _0x359d81=await readFile(_0x4d6c41,_0x269887(0x1ec));return JSON[_0x269887(0x1e2)](_0x359d81);}catch{return{};}}export async function saveSettings(_0x1fcba8,_0x9cf980){const _0x3a2c10=_0x2d84,_0x2ff7d6={'BTXAc':function(_0x5b0675,_0x5c9010){return _0x5b0675(_0x5c9010);},'ffEmN':function(_0x3b95a5,_0x328a60,_0x47de71){return _0x3b95a5(_0x328a60,_0x47de71);}},_0x108d6b=getSettingsPath(_0x1fcba8),_0xdc4b61=dirname(_0x108d6b);!_0x2ff7d6['BTXAc'](existsSync,_0xdc4b61)&&await _0x2ff7d6[_0x3a2c10(0x1de)](mkdir,_0xdc4b61,{'recursive':!![]}),await writeFile(_0x108d6b,JSON['stringify'](_0x9cf980,null,0x2));}export function resolveEnvVars(_0x4f5def){const _0x41f119=_0x2d84,_0x4dc264={'IwCQf':'string'};if(typeof _0x4f5def===_0x4dc264[_0x41f119(0x1c3)])return _0x4f5def['replace'](/\$\{(\w+)\}/g,(_0x492bcf,_0x51cfc7)=>{const _0x3cd50a=_0x41f119,_0x1f6761=process[_0x3cd50a(0x1c9)][_0x51cfc7];if(_0x1f6761===undefined)throw new Error('Environment\x20variable\x20'+_0x51cfc7+_0x3cd50a(0x1cf));return _0x1f6761;});if(Array['isArray'](_0x4f5def))return _0x4f5def[_0x41f119(0x1c1)](resolveEnvVars);if(_0x4f5def&&typeof _0x4f5def==='object')return Object[_0x41f119(0x1b6)](Object[_0x41f119(0x199)](_0x4f5def)[_0x41f119(0x1c1)](([_0x4e46ff,_0x5e0db7])=>[_0x4e46ff,resolveEnvVars(_0x5e0db7)]));return _0x4f5def;}const isRecord=_0x2866f8=>typeof _0x2866f8===_0x5c96a9(0x19f)&&_0x2866f8!==null&&!Array[_0x5c96a9(0x1fb)](_0x2866f8),asRecord=_0x559a8b=>isRecord(_0x559a8b)?_0x559a8b:undefined,mergeHeaders=(_0x12c16b,_0xdcdfd3)=>{const _0x1b6a30=_0x5c96a9,_0x390e1f={..._0x12c16b??{},..._0xdcdfd3??{}};return Object['keys'](_0x390e1f)[_0x1b6a30(0x1b8)]?_0x390e1f:undefined;},SAFE_MODE_ARGS=['--disable-features=WebBluetooth'],ALLOW_LOCALHOST_ARGS=['--disable-web-security',_0x5c96a9(0x1b9),_0x5c96a9(0x1ca),'--allow-insecure-localhost'];export function buildBrowserOptionsFromSettings(_0x5c7c01,_0x223ad6={}){const _0xb17ac4=_0x5c96a9,_0x4403d7={'qNeJm':function(_0xe3273d,_0x35ab99){return _0xe3273d(_0x35ab99);},'PJeJg':'boolean','LNKhI':function(_0x51ef7a,_0x115dbb){return _0x51ef7a(_0x115dbb);},'qjNAT':function(_0x48db79,_0x5030e7,_0x277f14){return _0x48db79(_0x5030e7,_0x277f14);},'wQIEi':function(_0x4ee424,_0x80c700){return _0x4ee424(_0x80c700);},'ydOOm':function(_0x525b52,_0x35e0e6){return _0x525b52(_0x35e0e6);}},_0xe7c77a=_0x4403d7['qNeJm'](asRecord,_0x5c7c01[_0xb17ac4(0x1ee)]),_0x2ffeac={...asRecord(_0xe7c77a?.['launchOptions'])??{}};typeof _0x223ad6['headless']===_0x4403d7['PJeJg']&&(_0x2ffeac[_0xb17ac4(0x1d0)]=_0x223ad6['headless']);if(_0x5c7c01[_0xb17ac4(0x203)]){const _0x44179b=_0x2ffeac[_0xb17ac4(0x185)]??[],_0x14d039=SAFE_MODE_ARGS[_0xb17ac4(0x1e3)](_0x3a79ad=>!_0x44179b[_0xb17ac4(0x193)](_0x3a79ad));_0x2ffeac['args']=[..._0x44179b,..._0x14d039];}if(_0x5c7c01['allowInsecureLocalhost']){const _0x3d6d25=_0x2ffeac[_0xb17ac4(0x185)]??[],_0x52b03d=ALLOW_LOCALHOST_ARGS['filter'](_0x4720a4=>!_0x3d6d25['includes'](_0x4720a4));_0x2ffeac[_0xb17ac4(0x185)]=[..._0x3d6d25,..._0x52b03d];}const _0x482bea={..._0x4403d7['LNKhI'](asRecord,_0xe7c77a?.[_0xb17ac4(0x183)])??{}};_0x482bea['ignoreHTTPSErrors']=!![];typeof _0x5c7c01[_0xb17ac4(0x181)]===_0xb17ac4(0x1c2)&&(_0x482bea[_0xb17ac4(0x181)]=_0x5c7c01[_0xb17ac4(0x181)]);const _0x11fc25=_0x4403d7['qjNAT'](mergeHeaders,_0x4403d7[_0xb17ac4(0x1d9)](asRecord,_0x482bea['extraHTTPHeaders']),_0x4403d7[_0xb17ac4(0x1a1)](asRecord,_0x5c7c01[_0xb17ac4(0x187)]));return _0x11fc25?_0x482bea[_0xb17ac4(0x1d8)]=_0x11fc25:delete _0x482bea['extraHTTPHeaders'],_0x223ad6['storageStatePath']&&(_0x482bea['storageState']=_0x223ad6[_0xb17ac4(0x18f)]),{'launchOptions':_0x2ffeac,'contextOptions':_0x482bea};}export async function resolveProfileStorageState(_0x417238){const _0x102a73=_0x5c96a9,_0x24acdc={'XYDDS':function(_0x59972a,_0x1739d5){return _0x59972a(_0x1739d5);},'JCZZA':function(_0x3875f7,_0x342b6b){return _0x3875f7(_0x342b6b);}};return _0x24acdc[_0x102a73(0x1ae)](resolveLocalAuthPath,_0x24acdc[_0x102a73(0x1b1)](getEnvDir,_0x417238));}async function resolveLocalAuthPath(_0x4db8b8){const _0x5b81e2=_0x5c96a9,_0x46cc53={'fHcyT':function(_0xb5e425,_0x11498e){return _0xb5e425(_0x11498e);},'SSRzJ':function(_0x43f853){return _0x43f853();},'dHAgq':_0x5b81e2(0x200),'sMOPn':function(_0x2bb4e5,_0xa12f3c){return _0x2bb4e5(_0xa12f3c);},'dDFoX':function(_0x288760,_0x31ef17,_0x10557e){return _0x288760(_0x31ef17,_0x10557e);},'wPitP':function(_0x1d221c,_0x4a30ab,_0xb89be2){return _0x1d221c(_0x4a30ab,_0xb89be2);}},_0x3dcc2b=join(_0x4db8b8,'auth.json.enc'),_0x2ad885=join(_0x4db8b8,_0x5b81e2(0x1e0));if(_0x46cc53[_0x5b81e2(0x1e8)](existsSync,_0x3dcc2b))try{const _0x200d46=await _0x46cc53[_0x5b81e2(0x17f)](getToken);if(!_0x200d46)throw new Error(_0x46cc53[_0x5b81e2(0x205)]);const _0x3464aa=await _0x46cc53['sMOPn'](readFile,_0x3dcc2b),_0x121550=_0x46cc53['dDFoX'](decrypt,_0x3464aa,_0x200d46),_0x2aacc8=join(_0x46cc53['SSRzJ'](tmpdir),_0x5b81e2(0x1fc)+Date[_0x5b81e2(0x197)]()+_0x5b81e2(0x1b7));return await _0x46cc53[_0x5b81e2(0x184)](writeFile,_0x2aacc8,_0x121550),{'storageStatePath':_0x2aacc8,'tempAuthPath':_0x2aacc8};}catch(_0x4ebe55){const _0x33c705=_0x4ebe55 instanceof Error?_0x4ebe55[_0x5b81e2(0x1f0)]:String(_0x4ebe55);throw new Error(_0x5b81e2(0x19c)+_0x33c705);}if(existsSync(_0x2ad885))return{'storageStatePath':_0x2ad885};return{};}export async function buildPlaywrightConfig(_0x503a4c,_0x1fdbcd,_0x23db34,_0x5054d5,_0x4eb5b0){const _0x43157b=_0x5c96a9,_0x18f9a8={'EmLoN':function(_0x1d4aca,_0x55930f,_0x340642,_0x1cc34f,_0x4d3cbe,_0x1d3a00,_0x408957){return _0x1d4aca(_0x55930f,_0x340642,_0x1cc34f,_0x4d3cbe,_0x1d3a00,_0x408957);},'iLfwz':'stagehand','Kcdxt':function(_0x3a49ed,_0x15a3a3){return _0x3a49ed(_0x15a3a3);}};if(_0x4eb5b0)return _0x18f9a8[_0x43157b(0x1c4)](buildPlaywrightConfigCore,_0x503a4c,_0x4eb5b0,_0x1fdbcd,_0x23db34,_0x5054d5,_0x18f9a8['iLfwz']);const {storageStatePath:_0x4ba7d5,tempAuthPath:_0x4dfc69}=await resolveLocalAuthPath(_0x18f9a8[_0x43157b(0x180)](getEnvDir,_0x1fdbcd));try{const _0x443249=await _0x18f9a8[_0x43157b(0x1c4)](buildPlaywrightConfigCore,_0x503a4c,_0x4ba7d5,_0x1fdbcd,_0x23db34,_0x5054d5,_0x43157b(0x1ea));return{..._0x443249,'tempAuthPath':_0x4dfc69};}catch(_0x492219){_0x4dfc69&&await unlink(_0x4dfc69)['catch'](()=>{});throw _0x492219;}}export async function buildPlaywrightConfigCore(_0x222af8,_0x58b4a9,_0x486418,_0x4854bd,_0x12aa4e,_0x3ab30a=_0x5c96a9(0x1ea)){const _0x2ddc72=_0x5c96a9,_0x738210={'zhkve':function(_0x515cf9,_0x252fe5){return _0x515cf9===_0x252fe5;},'uQGyZ':'--disable-setuid-sandbox','xTyQC':'chromium','AhPSb':_0x2ddc72(0x1e4),'QYKLO':_0x2ddc72(0x1e1),'SBzeo':'core','pOeGB':_0x2ddc72(0x201),'jZDad':function(_0x276599,_0x36a92b,_0x510b54){return _0x276599(_0x36a92b,_0x510b54);},'pdCYz':'-cli'},_0x316c10=_0x4854bd||randomUUID(),_0xb8f3b2=join(getRangerDir(),'sessions',_0x316c10),_0x23e495=Boolean(_0x222af8['cdpEndpoint']),_0x3915a8=_0x23e495?{'browserName':_0x738210[_0x2ddc72(0x1df)],'cdpEndpoint':_0x222af8[_0x2ddc72(0x1e7)]}:((()=>{const _0x573cca=_0x2ddc72,{launchOptions:_0xd03839,contextOptions:_0xa94bd8}=buildBrowserOptionsFromSettings(_0x222af8,{'headless':_0x12aa4e?![]:_0x222af8[_0x573cca(0x1d0)]??!![],'storageStatePath':_0x58b4a9});if(_0x738210[_0x573cca(0x1cc)](process[_0x573cca(0x1e6)]?.(),0x0)){const _0x22bd1b=[_0x573cca(0x1af),_0x738210[_0x573cca(0x186)]],_0x5a19db=_0xd03839[_0x573cca(0x185)]??[],_0x2ffbc3=_0x22bd1b[_0x573cca(0x1e3)](_0x143f5f=>!_0x5a19db[_0x573cca(0x193)](_0x143f5f));_0xd03839['args']=[..._0x5a19db,..._0x2ffbc3];}return{'isolated':!![],'browserName':_0x738210[_0x573cca(0x1df)],'launchOptions':_0xd03839,'contextOptions':{..._0xa94bd8,'permissions':['clipboard-read',_0x738210['AhPSb']],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x52ecab=_0x3ab30a===_0x738210[_0x2ddc72(0x19d)]?{'browser':_0x3915a8,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0xb8f3b2,'outputMode':'file','codegen':'none'}:{'name':_0x486418,'browser':_0x3915a8,'capabilities':[_0x738210[_0x2ddc72(0x1eb)],_0x2ddc72(0x1a5),_0x2ddc72(0x1bc),'pdf',_0x738210[_0x2ddc72(0x1d1)]],'imageResponses':_0x2ddc72(0x1f7),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0xb8f3b2};if(!_0x23e495){const _0xedca64=_0x52ecab[_0x2ddc72(0x1ee)],_0x187ebc=_0xedca64[_0x2ddc72(0x183)];if(_0x738210['zhkve'](_0x187ebc['userAgent'],undefined))delete _0x187ebc['userAgent'];if(_0x738210[_0x2ddc72(0x1cc)](_0x187ebc['storageState'],undefined))delete _0x187ebc[_0x2ddc72(0x1f8)];}const _0x3a3977=_0x738210[_0x2ddc72(0x1f6)](join,tmpdir(),'ranger-config');!existsSync(_0x3a3977)&&await mkdir(_0x3a3977,{'recursive':!![]});const _0x23a1b6=_0x3ab30a==='playwright-cli'?_0x738210['pdCYz']:'',_0x201ed0=_0x738210['jZDad'](join,_0x3a3977,_0x486418+'-'+Date['now']()+_0x23a1b6+_0x2ddc72(0x1b7));return await writeFile(_0x201ed0,JSON['stringify'](_0x52ecab,null,0x2)),{'configPath':_0x201ed0,'storageStatePath':_0x58b4a9};}export async function buildPlaywrightCliConfig(_0x5dd4fe,_0x4b350d,_0x438979,_0x5986ed,_0x33fb3b){const _0x30ab25=_0x5c96a9,_0x1648eb={'IVJDe':function(_0x2c35cd,_0x21ecdd,_0x276b5a,_0x449565,_0x1d2643,_0xf5e0a1,_0x3a2774){return _0x2c35cd(_0x21ecdd,_0x276b5a,_0x449565,_0x1d2643,_0xf5e0a1,_0x3a2774);},'WVIdh':'playwright-cli','VyMkR':function(_0x2569bd,_0x453d05){return _0x2569bd(_0x453d05);}};if(_0x33fb3b)return _0x1648eb['IVJDe'](buildPlaywrightConfigCore,_0x5dd4fe,_0x33fb3b,_0x4b350d,_0x438979,_0x5986ed,_0x1648eb[_0x30ab25(0x1ad)]);const {storageStatePath:_0x21c069,tempAuthPath:_0x28db43}=await _0x1648eb[_0x30ab25(0x1c5)](resolveLocalAuthPath,getEnvDir(_0x4b350d));try{const _0x138ae0=await _0x1648eb['IVJDe'](buildPlaywrightConfigCore,_0x5dd4fe,_0x21c069,_0x4b350d,_0x438979,_0x5986ed,_0x1648eb[_0x30ab25(0x1ad)]);return{..._0x138ae0,'tempAuthPath':_0x28db43};}catch(_0x3c9649){_0x28db43&&await unlink(_0x28db43)[_0x30ab25(0x1d6)](()=>{});throw _0x3c9649;}}export async function buildRangerwrightCliConfig(_0x398ea0,_0x39c254,_0x174afa,_0x19d0ce,_0x116145){const _0x5e805e=_0x5c96a9,_0x2721af={'ibnlY':function(_0x4b28b5,_0x6befdb,_0x334464){return _0x4b28b5(_0x6befdb,_0x334464);},'oejto':function(_0x4d0ac4,_0x4554da){return _0x4d0ac4===_0x4554da;},'hrHPo':_0x5e805e(0x1af),'MJZKZ':'--disable-setuid-sandbox','QjIun':function(_0x777637,_0x523205){return _0x777637(_0x523205);},'gyocz':function(_0x4f7af3){return _0x4f7af3();},'AtScG':'chromium','Lfvxp':function(_0x3327d2,_0x198411){return _0x3327d2===_0x198411;},'IWdSq':function(_0x5a08e6,_0x59b451,_0x55ad08){return _0x5a08e6(_0x59b451,_0x55ad08);},'mOacM':function(_0x1914d9,_0x2d67e3,_0x7d1a4d){return _0x1914d9(_0x2d67e3,_0x7d1a4d);},'oqFKL':function(_0x38a6b9,_0x22fd4e){return _0x38a6b9(_0x22fd4e);}},{storageStatePath:_0x25d91d,tempAuthPath:_0x2a6a6b}=_0x116145?{'storageStatePath':_0x116145,'tempAuthPath':undefined}:await _0x2721af['QjIun'](resolveLocalAuthPath,_0x2721af[_0x5e805e(0x182)](getEnvDir,_0x39c254)),_0x193f39=_0x174afa||_0x2721af[_0x5e805e(0x198)](randomUUID),_0xf43b52=join(_0x2721af['gyocz'](getRangerDir),'sessions',_0x193f39),_0x484c5a=_0x2721af[_0x5e805e(0x182)](Boolean,_0x398ea0[_0x5e805e(0x1e7)]),_0x23de40=_0x484c5a?{'browserName':_0x2721af['AtScG'],'cdpEndpoint':_0x398ea0['cdpEndpoint']}:((()=>{const _0x37d5d2=_0x5e805e,{launchOptions:_0x5ecefe,contextOptions:_0x5a38eb}=_0x2721af[_0x37d5d2(0x1f2)](buildBrowserOptionsFromSettings,_0x398ea0,{'headless':_0x19d0ce?![]:_0x398ea0['headless']??!![],'storageStatePath':_0x25d91d});if(_0x2721af[_0x37d5d2(0x192)](process['getuid']?.(),0x0)){const _0x409e84=[_0x2721af['hrHPo'],_0x2721af['MJZKZ']],_0x546ac6=_0x5ecefe['args']??[],_0x30ed32=_0x409e84['filter'](_0x5a86c3=>!_0x546ac6[_0x37d5d2(0x193)](_0x5a86c3));_0x5ecefe['args']=[..._0x546ac6,..._0x30ed32];}return{'browserName':_0x37d5d2(0x1d2),'launchOptions':_0x5ecefe,'contextOptions':{..._0x5a38eb,'permissions':[_0x37d5d2(0x1a2),_0x37d5d2(0x1e4)],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x484c5a){const _0x43cc3a=_0x23de40[_0x5e805e(0x183)];if(_0x43cc3a){if(_0x2721af['Lfvxp'](_0x43cc3a['userAgent'],undefined))delete _0x43cc3a[_0x5e805e(0x181)];if(_0x43cc3a['storageState']===undefined)delete _0x43cc3a[_0x5e805e(0x1f8)];}}const _0x1fdd16={'browser':_0x23de40,'outputDir':_0xf43b52,'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'settle':{'navigationLoadTimeoutMs':0x7530,'networkSettleTimeoutMs':0x1388,'networkIdleWindowMs':0x1f4,'postActionAnimationFrameCount':0x2}};let _0x32d619;try{const _0x5a4ac4=_0x2721af[_0x5e805e(0x1b4)](join,tmpdir(),_0x5e805e(0x1ac));!existsSync(_0x5a4ac4)&&await mkdir(_0x5a4ac4,{'recursive':!![]}),_0x32d619=_0x2721af[_0x5e805e(0x204)](join,_0x5a4ac4,_0x39c254+'-'+Date[_0x5e805e(0x197)]()+_0x5e805e(0x1d7)),await _0x2721af[_0x5e805e(0x1b4)](writeFile,_0x32d619,JSON['stringify'](_0x1fdd16,null,0x2));}catch(_0x2846a7){_0x2a6a6b&&await _0x2721af[_0x5e805e(0x1ef)](unlink,_0x2a6a6b)[_0x5e805e(0x1d6)](()=>{});throw _0x2846a7;}return{'configPath':_0x32d619,'storageStatePath':_0x25d91d,'tempAuthPath':_0x2a6a6b,'outputDir':_0xf43b52};}export async function buildNovaActCliConfig(_0x271ced,_0x40f296,_0x2949fb,_0x419118,_0x25faa4){const _0x378255=_0x5c96a9,_0xe14ad9={'nUFiK':function(_0x1766e7,_0x583209){return _0x1766e7(_0x583209);},'qmOZG':function(_0x47a007,_0x1d3440,_0x7b788c,_0x5c25df){return _0x47a007(_0x1d3440,_0x7b788c,_0x5c25df);},'AqudS':function(_0x4f6830){return _0x4f6830();},'tdLQo':_0x378255(0x1ff),'ZzKzb':'nova-user-data','VLESD':function(_0x1b3eab,_0x1581b6){return _0x1b3eab===_0x1581b6;},'VczlU':'--disable-setuid-sandbox','MyKQK':'string','oKImT':function(_0x491fa8,_0x242a2f){return _0x491fa8(_0x242a2f);}},{storageStatePath:_0x1de2f9,tempAuthPath:_0x736b74}=_0x25faa4?{'storageStatePath':_0x25faa4,'tempAuthPath':undefined}:await _0xe14ad9[_0x378255(0x19b)](resolveLocalAuthPath,getEnvDir(_0x40f296)),_0x29b083=_0x2949fb||randomUUID(),_0x20cc6b=_0xe14ad9['qmOZG'](join,_0xe14ad9[_0x378255(0x1be)](getRangerDir),_0xe14ad9[_0x378255(0x1f5)],_0x29b083),_0x3e8b62=join(_0x20cc6b,_0xe14ad9['ZzKzb']),_0xfab338=_0x1de2f9?join(_0x3e8b62,'Default'):undefined,{launchOptions:_0x1c79aa,contextOptions:_0x301c19}=buildBrowserOptionsFromSettings(_0x271ced,{'headless':_0x419118?![]:_0x271ced[_0x378255(0x1d0)]??!![],'storageStatePath':_0x1de2f9});if(_0xe14ad9['VLESD'](process[_0x378255(0x1e6)]?.(),0x0)){const _0x7f7dba=['--no-sandbox',_0xe14ad9[_0x378255(0x1f9)]],_0x9ecb7=_0x1c79aa['args']??[],_0x47805d=_0x7f7dba[_0x378255(0x1e3)](_0x91f09f=>!_0x9ecb7['includes'](_0x91f09f));_0x1c79aa['args']=[..._0x9ecb7,..._0x47805d];}const _0x4b07de=typeof _0x1c79aa[_0x378255(0x1ed)]===_0xe14ad9['MyKQK']?_0x1c79aa['executablePath']:_0x1de2f9?chromium['executablePath']():undefined;return{'storageStatePath':_0x1de2f9,'tempAuthPath':_0x736b74,'baseUrl':_0x271ced['baseUrl'],'headless':_0xe14ad9['nUFiK'](Boolean,_0x1c79aa['headless']),'userDataDir':_0x3e8b62,'browserProfilePath':_0xfab338,'executablePath':_0x4b07de,'launchArgs':Array[_0x378255(0x1fb)](_0x1c79aa['args'])?_0x1c79aa[_0x378255(0x185)][_0x378255(0x1e3)](_0x30e30d=>typeof _0x30e30d==='string'):[],'userAgent':typeof _0x301c19['userAgent']===_0x378255(0x1c2)?_0x301c19[_0x378255(0x181)]:undefined,'extraHTTPHeaders':_0x301c19[_0x378255(0x1d8)],'allowInsecureLocalhost':_0xe14ad9[_0x378255(0x19b)](Boolean,_0x271ced[_0x378255(0x189)]),'safeMode':Boolean(_0x271ced[_0x378255(0x203)]),'cdpEndpoint':_0x271ced['cdpEndpoint'],'isCdpMode':_0xe14ad9['oKImT'](Boolean,_0x271ced['cdpEndpoint'])};}export function getNestedValue(_0x294254,_0x1c4a26){const _0x731f42=_0x5c96a9,_0x3d081f={'eYjgH':function(_0x43455d,_0x1d6d01){return _0x43455d===_0x1d6d01;},'xyEEB':function(_0x2c4f0c,_0x3c5f54){return _0x2c4f0c!==_0x3c5f54;},'suRBx':_0x731f42(0x19f)},_0x3611eb=parseKeyPath(_0x1c4a26);let _0x4c524b=_0x294254;for(const _0x18b435 of _0x3611eb){if(_0x3d081f[_0x731f42(0x19a)](_0x4c524b,null)||_0x3d081f[_0x731f42(0x19a)](_0x4c524b,undefined)||_0x3d081f[_0x731f42(0x1f1)](typeof _0x4c524b,_0x3d081f[_0x731f42(0x191)]))return undefined;_0x4c524b=_0x4c524b[_0x18b435];}return _0x4c524b;}export function setNestedValue(_0x4a844e,_0x6c9bc,_0x246845){const _0x295bfb=_0x5c96a9,_0x454f92=parseKeyPath(_0x6c9bc);let _0x42456e=_0x4a844e;for(let _0x22acf6=0x0;_0x22acf6<_0x454f92[_0x295bfb(0x1b8)]-0x1;_0x22acf6++){const _0x4b1816=_0x454f92[_0x22acf6];(!(_0x4b1816 in _0x42456e)||typeof _0x42456e[_0x4b1816]!==_0x295bfb(0x19f))&&(_0x42456e[_0x4b1816]={}),_0x42456e=_0x42456e[_0x4b1816];}_0x42456e[_0x454f92[_0x454f92['length']-0x1]]=_0x246845;}export function deleteNestedValue(_0x41080d,_0x4cd996){const _0x2c075d=_0x5c96a9,_0x6c7d44={'lyVQP':function(_0x3310cc,_0xc870d9){return _0x3310cc===_0xc870d9;},'PimDV':function(_0x285450,_0x100334){return _0x285450!==_0x100334;},'uulkb':'object','cklwX':function(_0x473a4f,_0x3d4c8f){return _0x473a4f===_0x3d4c8f;},'JUJpN':function(_0x59cbb7,_0x4699a2){return _0x59cbb7 in _0x4699a2;}},_0x1d3157=parseKeyPath(_0x4cd996);let _0x4b229f=_0x41080d;for(let _0x504059=0x0;_0x504059<_0x1d3157['length']-0x1;_0x504059++){if(_0x4b229f===null||_0x6c7d44['lyVQP'](_0x4b229f,undefined)||_0x6c7d44['PimDV'](typeof _0x4b229f,_0x6c7d44['uulkb']))return![];_0x4b229f=_0x4b229f[_0x1d3157[_0x504059]];}if(_0x6c7d44[_0x2c075d(0x1c8)](_0x4b229f,null)||_0x4b229f===undefined||typeof _0x4b229f!==_0x6c7d44['uulkb'])return![];const _0x53c4ce=_0x1d3157[_0x1d3157[_0x2c075d(0x1b8)]-0x1];if(_0x6c7d44['JUJpN'](_0x53c4ce,_0x4b229f))return delete _0x4b229f[_0x53c4ce],!![];return![];}function parseKeyPath(_0x230b73){const _0x4dd2e1=_0x5c96a9,_0x268ff4={'SwMbe':_0x4dd2e1(0x187),'kTtPK':_0x4dd2e1(0x196)},_0x253de2=_0x230b73[_0x4dd2e1(0x1a6)]('.');return _0x253de2[0x0]==='header'&&(_0x253de2[0x0]=_0x268ff4['SwMbe']),_0x253de2[0x0]===_0x4dd2e1(0x18a)&&(_0x253de2[0x0]=_0x268ff4[_0x4dd2e1(0x202)]),_0x253de2;}export function formatSettings(_0x10e3f1,_0xbac08=0x0){const _0x218766=_0x5c96a9,_0x18dff6={'TDOdi':function(_0x566160,_0x24bf98){return _0x566160===_0x24bf98;},'HDwFC':_0x218766(0x19f),'pohTR':function(_0x2c999b,_0x537a62){return _0x2c999b!==_0x537a62;}},_0x4b71cf=[],_0x5df6b8='\x20\x20'['repeat'](_0xbac08);for(const [_0x394f8c,_0x419042]of Object[_0x218766(0x199)](_0x10e3f1)){if(_0x18dff6[_0x218766(0x1a3)](_0x419042,undefined))continue;if(typeof _0x419042===_0x18dff6['HDwFC']&&_0x18dff6['pohTR'](_0x419042,null)){_0x4b71cf['push'](''+_0x5df6b8+_0x394f8c+':');for(const [_0x91cb0a,_0x579fb9]of Object['entries'](_0x419042)){_0x4b71cf[_0x218766(0x1a8)](_0x5df6b8+'\x20\x20'+_0x91cb0a+':\x20'+_0x579fb9);}}else _0x4b71cf['push'](''+_0x5df6b8+_0x394f8c+':\x20'+_0x419042);}return _0x4b71cf[_0x218766(0x1d3)]('\x0a');}
@@ -1 +1 @@
1
- function _0x4aad(_0xa5b7a6,_0x5138c2){_0xa5b7a6=_0xa5b7a6-0x9f;const _0x49ea2f=_0x49ea();let _0x4aada5=_0x49ea2f[_0xa5b7a6];return _0x4aada5;}(function(_0x368cbc,_0x1f28f2){const _0x5eaf67=_0x4aad,_0x1912af=_0x368cbc();while(!![]){try{const _0x5a709c=-parseInt(_0x5eaf67(0xa0))/0x1*(-parseInt(_0x5eaf67(0xa7))/0x2)+-parseInt(_0x5eaf67(0xaa))/0x3*(-parseInt(_0x5eaf67(0xa6))/0x4)+parseInt(_0x5eaf67(0xa2))/0x5*(-parseInt(_0x5eaf67(0xa5))/0x6)+parseInt(_0x5eaf67(0xa1))/0x7+parseInt(_0x5eaf67(0xa8))/0x8+-parseInt(_0x5eaf67(0xa9))/0x9+parseInt(_0x5eaf67(0xa4))/0xa*(-parseInt(_0x5eaf67(0xab))/0xb);if(_0x5a709c===_0x1f28f2)break;else _0x1912af['push'](_0x1912af['shift']());}catch(_0x124169){_0x1912af['push'](_0x1912af['shift']());}}}(_0x49ea,0x2c344));function _0x49ea(){const _0x12d7e9=['15zBlTKM','341jUmwWz','gZkZL','utf-8','1906LmOuNj','1482138AfYWen','11835zOwZkK','OnfXH','107390qSrASu','54jYkaoo','257224lyCMSA','166mkpstH','244384zAssjL','1680642qANAun'];_0x49ea=function(){return _0x12d7e9;};return _0x49ea();}import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x1bc46b){const _0xb0decb=_0x4aad,_0x3b0295={'OnfXH':function(_0x45a016,_0x7a7593,_0x5734ed,_0x76fa4d,_0x286320){return _0x45a016(_0x7a7593,_0x5734ed,_0x76fa4d,_0x286320);},'cMphl':function(_0x50e876,_0x2e2834,_0x57f201){return _0x50e876(_0x2e2834,_0x57f201);}},_0x28662f=_0x3b0295[_0xb0decb(0xa3)](join,__dirname,'..','..','skills'),_0x3056c0=_0x3b0295['cMphl'](join,_0x28662f,_0x1bc46b);try{return readFileSync(_0x3056c0,_0xb0decb(0x9f));}catch{return'';}}export function getRangerSkillContent(){const _0x16a988=_0x4aad,_0x18a068={'gZkZL':function(_0x395a2a,_0x5f8b7b){return _0x395a2a(_0x5f8b7b);}};return _0x18a068[_0x16a988(0xac)](readSkillContent,'ranger/SKILL.md');}
1
+ (function(_0x260810,_0xfff391){const _0x126928=_0x3892,_0x375467=_0x260810();while(!![]){try{const _0x24e331=parseInt(_0x126928(0xd4))/0x1*(-parseInt(_0x126928(0xcd))/0x2)+-parseInt(_0x126928(0xd3))/0x3*(-parseInt(_0x126928(0xca))/0x4)+-parseInt(_0x126928(0xc8))/0x5+-parseInt(_0x126928(0xcb))/0x6+-parseInt(_0x126928(0xce))/0x7*(-parseInt(_0x126928(0xcf))/0x8)+-parseInt(_0x126928(0xd6))/0x9*(-parseInt(_0x126928(0xd1))/0xa)+-parseInt(_0x126928(0xcc))/0xb*(-parseInt(_0x126928(0xc9))/0xc);if(_0x24e331===_0xfff391)break;else _0x375467['push'](_0x375467['shift']());}catch(_0x8f585c){_0x375467['push'](_0x375467['shift']());}}}(_0x4db1,0xbaf64));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function _0x4db1(){const _0x2ce460=['3242NKAoyg','7VSUMac','7395368DLHpru','elzMU','226220HNhBar','ranger/SKILL.md','105117ZjSzEO','485EMFzYq','skills','279oecKei','7188780SlKWXK','372OTqBnY','80uGgRjd','8793468DWpmNi','755392oGkkwX'];_0x4db1=function(){return _0x2ce460;};return _0x4db1();}export function readSkillContent(_0x5de34d){const _0x54b619=_0x3892,_0x44d327={'elzMU':function(_0x503abe,_0x38ee38,_0x21a49a){return _0x503abe(_0x38ee38,_0x21a49a);}},_0x4f8b52=join(__dirname,'..','..',_0x54b619(0xd5)),_0x5d6b1e=join(_0x4f8b52,_0x5de34d);try{return _0x44d327[_0x54b619(0xd0)](readFileSync,_0x5d6b1e,'utf-8');}catch{return'';}}function _0x3892(_0x565eb6,_0x7911c9){_0x565eb6=_0x565eb6-0xc8;const _0x4db14a=_0x4db1();let _0x3892c6=_0x4db14a[_0x565eb6];return _0x3892c6;}export function getRangerSkillContent(){const _0x1d0431=_0x3892;return readSkillContent(_0x1d0431(0xd2));}
@@ -1 +1 @@
1
- const _0x35e3b9=_0x5120;(function(_0x1d39ee,_0x40a30e){const _0x477c80=_0x5120,_0x51928d=_0x1d39ee();while(!![]){try{const _0x1c1c9b=-parseInt(_0x477c80(0x15a))/0x1+parseInt(_0x477c80(0x15e))/0x2*(-parseInt(_0x477c80(0x163))/0x3)+-parseInt(_0x477c80(0x170))/0x4*(-parseInt(_0x477c80(0x14e))/0x5)+parseInt(_0x477c80(0x14f))/0x6+-parseInt(_0x477c80(0x15f))/0x7*(-parseInt(_0x477c80(0x16d))/0x8)+-parseInt(_0x477c80(0x167))/0x9*(parseInt(_0x477c80(0x154))/0xa)+parseInt(_0x477c80(0x168))/0xb*(parseInt(_0x477c80(0x165))/0xc);if(_0x1c1c9b===_0x40a30e)break;else _0x51928d['push'](_0x51928d['shift']());}catch(_0x252718){_0x51928d['push'](_0x51928d['shift']());}}}(_0x16df,0xe3081));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function _0x16df(){const _0x4a66fa=['\x20\x20Removed\x20deprecated\x20skill:\x20','cZsqO','1171554ICqRcK','zzRfk','warn','.md','158014RLuOXR','18655jKvLLR','gFFlS','kvmFB','SKILL.md','51LndaAC','eTwQD','26434812ChxQeI','\x20\x20Skill\x20not\x20found:\x20','14963184nOLpTA','11IxMpWR','lrxRZ','ranger','log','length','5208lDGgvJ','filter','rBrdp','280828zviyEx','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','xuNPx','e2e-test-recommender','JsIFc','5NLxrEY','6594882iuiZDR','endsWith','UVjFL','trim','match','10FxDRQH','push','\x20\x20Location:\x20','opencode'];_0x16df=function(){return _0x4a66fa;};return _0x16df();}export const RANGER_MANAGED_SKILLS=[_0x35e3b9(0x16a)];export const DEPRECATED_SKILLS=[_0x35e3b9(0x14c),'bug-bash','feature-tracker'];export async function installSkill(_0x60154f,_0x5e685a={}){const _0x5a7f44=_0x35e3b9,_0x2d5b1b={'uqMag':function(_0x47b2c3){return _0x47b2c3();},'DqocV':function(_0x5348b7,_0x335992,_0xfb4fb3){return _0x5348b7(_0x335992,_0xfb4fb3);},'gFFlS':function(_0x3611f9,_0xe79736){return _0x3611f9(_0xe79736);},'lrxRZ':function(_0x37db1b,_0x277895){return _0x37db1b(_0x277895);},'Duszz':function(_0x485763,_0x2b4f56){return _0x485763===_0x2b4f56;},'xuNPx':function(_0x57330b,_0x57b624){return _0x57330b(_0x57b624);},'kvmFB':function(_0x3cf46f,_0x2054aa){return _0x3cf46f(_0x2054aa);},'JsIFc':function(_0x6d6bab,_0x2f90be,_0x4335df){return _0x6d6bab(_0x2f90be,_0x4335df);},'UVjFL':function(_0xdc85ba,_0x512443,_0x1986af){return _0xdc85ba(_0x512443,_0x1986af);},'fVWvh':function(_0x3c1554,_0x486c67,_0x2e99bf){return _0x3c1554(_0x486c67,_0x2e99bf);},'kAlpC':'utf-8','rBrdp':function(_0x6476e4,_0x2cd22a,_0x363442){return _0x6476e4(_0x2cd22a,_0x363442);},'SlWjn':function(_0x562ab0,_0x5cea18,_0x396ec3){return _0x562ab0(_0x5cea18,_0x396ec3);},'cZsqO':'SKILL.md','mVpGG':function(_0xfd7ac0,_0x189169,_0x4f747d,_0xa5339d){return _0xfd7ac0(_0x189169,_0x4f747d,_0xa5339d);}},{level:level='project',cliVersion:_0x5a99e9,platform:platform='claude'}=_0x5e685a,_0x449a05=_0x2d5b1b['uqMag'](getSourceSkillsDir),_0xfee8c0=join(_0x449a05,_0x60154f),_0x3a1d51=_0x2d5b1b['DqocV'](join,_0x449a05,_0x60154f+_0x5a7f44(0x15d)),_0x3bfba6=existsSync(_0xfee8c0)&&_0x2d5b1b[_0x5a7f44(0x160)](statSync,_0xfee8c0)['isDirectory']()&&_0x2d5b1b[_0x5a7f44(0x160)](existsSync,join(_0xfee8c0,_0x5a7f44(0x162))),_0xc384f3=_0x2d5b1b[_0x5a7f44(0x169)](existsSync,_0x3a1d51);if(!_0x3bfba6&&!_0xc384f3)return console['warn'](_0x5a7f44(0x166)+_0x60154f),![];const _0x2ce86c=_0x2d5b1b['Duszz'](platform,_0x5a7f44(0x157))?_0x2d5b1b[_0x5a7f44(0x172)](getOpencodeSkillsDir,level):_0x2d5b1b[_0x5a7f44(0x161)](getSkillsDir,level),_0x2a7257=_0x2d5b1b['JsIFc'](join,_0x2ce86c,_0x60154f);await _0x2d5b1b[_0x5a7f44(0x151)](mkdir,_0x2a7257,{'recursive':!![]});let _0x502407,_0x3ea735=[];if(_0x3bfba6){const _0x4ba921=await readdir(_0xfee8c0),_0x3ce95d=_0x4ba921[_0x5a7f44(0x16e)](_0x1ba3ef=>_0x1ba3ef[_0x5a7f44(0x150)](_0x5a7f44(0x15d)));for(const _0x319044 of _0x3ce95d){const _0x18807e=_0x2d5b1b['fVWvh'](join,_0xfee8c0,_0x319044),_0x312078=join(_0x2a7257,_0x319044);await copyFile(_0x18807e,_0x312078),_0x3ea735[_0x5a7f44(0x155)](_0x319044);}_0x502407=await _0x2d5b1b[_0x5a7f44(0x14d)](readFile,join(_0xfee8c0,_0x5a7f44(0x162)),_0x2d5b1b['kAlpC']);}else{_0x502407=await _0x2d5b1b[_0x5a7f44(0x16f)](readFile,_0x3a1d51,_0x2d5b1b['kAlpC']);const _0x4c4d4b=_0x2d5b1b['SlWjn'](join,_0x2a7257,_0x2d5b1b[_0x5a7f44(0x159)]);await writeFile(_0x4c4d4b,_0x502407,'utf-8'),_0x3ea735[_0x5a7f44(0x155)](_0x2d5b1b[_0x5a7f44(0x159)]);}const {name:_0xd2ec4d}=parseFrontmatter(_0x502407);return console['log']('\x20\x20Installed\x20skill:\x20'+_0xd2ec4d),console[_0x5a7f44(0x16b)](_0x5a7f44(0x156)+_0x2a7257),_0x3ea735[_0x5a7f44(0x16c)]>0x1&&console[_0x5a7f44(0x16b)]('\x20\x20Files:\x20'+_0x3ea735['join'](',\x20')),_0x2d5b1b['mVpGG'](logLocalAgentInstallation,_0x60154f,{'skillDisplayName':_0xd2ec4d,'installLevel':level},_0x5a99e9)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x59a18e=_0x35e3b9,_0x2c0627={'eTwQD':function(_0x3922fa,_0x2ad53c,_0x21a961,_0x380480,_0x5ca342){return _0x3922fa(_0x2ad53c,_0x21a961,_0x380480,_0x5ca342);},'zzRfk':'skills'},_0x5b6ae0=[_0x2c0627[_0x59a18e(0x164)](join,__dirname,'..','..',_0x2c0627['zzRfk']),join(__dirname,'..','..','..',_0x2c0627[_0x59a18e(0x15b)])];for(const _0x308b76 of _0x5b6ae0){if(existsSync(_0x308b76))return _0x308b76;}return _0x5b6ae0[0x0];}function _0x5120(_0x505ed8,_0x182edb){_0x505ed8=_0x505ed8-0x14c;const _0x16dfc1=_0x16df();let _0x512035=_0x16dfc1[_0x505ed8];return _0x512035;}function parseFrontmatter(_0x262e99){const _0x2a3128=_0x35e3b9,_0x5ab89c=_0x262e99['match'](/^---\n([\s\S]+?)\n---/);if(!_0x5ab89c)throw new Error('Invalid\x20skill\x20frontmatter');const _0x38d5d6=_0x5ab89c[0x1],_0x518f7f=_0x38d5d6[_0x2a3128(0x153)](/name:\s*(.+)/),_0x1f127=_0x38d5d6['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0x518f7f?.[0x1][_0x2a3128(0x152)]()||'','description':_0x1f127?.[0x1]['trim']()||''};}export async function removeSkill(_0x331fd7,_0x4c92ba){const _0x304a67=_0x35e3b9,_0x502400={'zHVQf':function(_0x1ee65f,_0x3cf56f,_0x1ca0b2){return _0x1ee65f(_0x3cf56f,_0x1ca0b2);},'QrIzO':function(_0x2c3e82,_0x4df231){return _0x2c3e82(_0x4df231);}},_0x3d7b9c=getSkillsDir(_0x4c92ba),_0x4d67cf=_0x502400['zHVQf'](join,_0x3d7b9c,_0x331fd7);if(!_0x502400['QrIzO'](existsSync,_0x4d67cf))return![];try{return await rm(_0x4d67cf,{'recursive':!![]}),console[_0x304a67(0x16b)](_0x304a67(0x158)+_0x331fd7),!![];}catch{return console[_0x304a67(0x15c)](_0x304a67(0x171)+_0x331fd7),![];}}
1
+ function _0x579d(_0x11d0c1,_0x252921){_0x11d0c1=_0x11d0c1-0x1ae;const _0x38ad98=_0x38ad();let _0x579db5=_0x38ad98[_0x11d0c1];return _0x579db5;}function _0x38ad(){const _0xb87f11=['169262poVhcn','35bjATtc','Invalid\x20skill\x20frontmatter','eWAWv','IfoNs','project','utf-8','13449123hMccGD','sUico','tXmFT','catch','867756TNHCTk','ruPVF','log','e2e-test-recommender','9768815gSbgvc','ranger','\x20\x20Skill\x20not\x20found:\x20','21zXjRLI','uHmEU','filter','trim','push','match','feature-tracker','SKILL.md','\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20','bug-bash','4690628DAzxHN','obVTD','4422008EPGaFI','.md','\x20\x20Removed\x20deprecated\x20skill:\x20','10gplFtQ','303979BGUiWC','\x20\x20Files:\x20'];_0x38ad=function(){return _0xb87f11;};return _0x38ad();}const _0x547f4f=_0x579d;(function(_0x10a62f,_0x18974a){const _0x34c9e9=_0x579d,_0x21d6ed=_0x10a62f();while(!![]){try{const _0x160371=-parseInt(_0x34c9e9(0x1c2))/0x1+parseInt(_0x34c9e9(0x1c4))/0x2*(parseInt(_0x34c9e9(0x1b2))/0x3)+-parseInt(_0x34c9e9(0x1bc))/0x4+-parseInt(_0x34c9e9(0x1c5))/0x5*(-parseInt(_0x34c9e9(0x1cf))/0x6)+-parseInt(_0x34c9e9(0x1af))/0x7+parseInt(_0x34c9e9(0x1be))/0x8+-parseInt(_0x34c9e9(0x1cb))/0x9*(-parseInt(_0x34c9e9(0x1c1))/0xa);if(_0x160371===_0x18974a)break;else _0x21d6ed['push'](_0x21d6ed['shift']());}catch(_0x508ec0){_0x21d6ed['push'](_0x21d6ed['shift']());}}}(_0x38ad,0xbe5c4));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const RANGER_MANAGED_SKILLS=[_0x547f4f(0x1b0)];export const DEPRECATED_SKILLS=[_0x547f4f(0x1ae),_0x547f4f(0x1bb),_0x547f4f(0x1b8)];export async function installSkill(_0x503285,_0x5e0d7f={}){const _0x32fe7c=_0x547f4f,_0x4cfcb6={'eWAWv':function(_0x2088fe){return _0x2088fe();},'sUico':function(_0x20e908,_0x315fb2,_0x26f160){return _0x20e908(_0x315fb2,_0x26f160);},'IfoNs':function(_0x17c4a9,_0x59aef4,_0x322339){return _0x17c4a9(_0x59aef4,_0x322339);},'kwMeE':function(_0xa54004,_0x510de0){return _0xa54004(_0x510de0);},'uHmEU':function(_0x12debb,_0x5c5458,_0x36a262){return _0x12debb(_0x5c5458,_0x36a262);},'ruPVF':_0x32fe7c(0x1b9),'obVTD':'opencode','LoFbD':function(_0x228e52,_0x2eed31){return _0x228e52(_0x2eed31);},'YSGmv':function(_0x505d26,_0x32c6c5,_0x384df8){return _0x505d26(_0x32c6c5,_0x384df8);},'ulhWz':function(_0x4c71cd,_0x2115cb,_0x2e3029){return _0x4c71cd(_0x2115cb,_0x2e3029);},'tXmFT':function(_0x19fe8a,_0x2de727,_0x4e78bb,_0x50c7c4){return _0x19fe8a(_0x2de727,_0x4e78bb,_0x50c7c4);},'uJpRq':_0x32fe7c(0x1ca)},{level:level=_0x32fe7c(0x1c9),cliVersion:_0x17adab,platform:platform='claude'}=_0x5e0d7f,_0x319c3f=_0x4cfcb6[_0x32fe7c(0x1c7)](getSourceSkillsDir),_0x208479=_0x4cfcb6[_0x32fe7c(0x1cc)](join,_0x319c3f,_0x503285),_0x18f3f4=_0x4cfcb6[_0x32fe7c(0x1c8)](join,_0x319c3f,_0x503285+_0x32fe7c(0x1bf)),_0x3f46e3=_0x4cfcb6['kwMeE'](existsSync,_0x208479)&&statSync(_0x208479)['isDirectory']()&&existsSync(_0x4cfcb6[_0x32fe7c(0x1b3)](join,_0x208479,_0x4cfcb6[_0x32fe7c(0x1d0)])),_0x2dec00=existsSync(_0x18f3f4);if(!_0x3f46e3&&!_0x2dec00)return console['warn'](_0x32fe7c(0x1b1)+_0x503285),![];const _0x2c749f=platform===_0x4cfcb6[_0x32fe7c(0x1bd)]?_0x4cfcb6['LoFbD'](getOpencodeSkillsDir,level):getSkillsDir(level),_0x1b59d1=join(_0x2c749f,_0x503285);await _0x4cfcb6['YSGmv'](mkdir,_0x1b59d1,{'recursive':!![]});let _0x434649,_0x27d78f=[];if(_0x3f46e3){const _0x2b9652=await readdir(_0x208479),_0x4fb59f=_0x2b9652[_0x32fe7c(0x1b4)](_0x39212d=>_0x39212d['endsWith'](_0x32fe7c(0x1bf)));for(const _0x4fdb5c of _0x4fb59f){const _0x474e2a=join(_0x208479,_0x4fdb5c),_0xb35bce=_0x4cfcb6[_0x32fe7c(0x1c8)](join,_0x1b59d1,_0x4fdb5c);await _0x4cfcb6['uHmEU'](copyFile,_0x474e2a,_0xb35bce),_0x27d78f['push'](_0x4fdb5c);}_0x434649=await readFile(join(_0x208479,_0x32fe7c(0x1b9)),'utf-8');}else{_0x434649=await _0x4cfcb6['ulhWz'](readFile,_0x18f3f4,'utf-8');const _0x1cae85=join(_0x1b59d1,'SKILL.md');await _0x4cfcb6[_0x32fe7c(0x1cd)](writeFile,_0x1cae85,_0x434649,_0x4cfcb6['uJpRq']),_0x27d78f[_0x32fe7c(0x1b6)](_0x32fe7c(0x1b9));}const {name:_0x1fe673}=parseFrontmatter(_0x434649);return console[_0x32fe7c(0x1d1)]('\x20\x20Installed\x20skill:\x20'+_0x1fe673),console[_0x32fe7c(0x1d1)]('\x20\x20Location:\x20'+_0x1b59d1),_0x27d78f['length']>0x1&&console[_0x32fe7c(0x1d1)](_0x32fe7c(0x1c3)+_0x27d78f['join'](',\x20')),logLocalAgentInstallation(_0x503285,{'skillDisplayName':_0x1fe673,'installLevel':level},_0x17adab)[_0x32fe7c(0x1ce)](()=>{}),!![];}function getSourceSkillsDir(){const _0x17e8f0={'wDugz':'skills','wjEyO':function(_0x43690d,_0x54888c){return _0x43690d(_0x54888c);}},_0x1b7db2=[join(__dirname,'..','..',_0x17e8f0['wDugz']),join(__dirname,'..','..','..','skills')];for(const _0x4b4f2f of _0x1b7db2){if(_0x17e8f0['wjEyO'](existsSync,_0x4b4f2f))return _0x4b4f2f;}return _0x1b7db2[0x0];}function parseFrontmatter(_0x5675d9){const _0x3fbc7c=_0x547f4f,_0x579541=_0x5675d9[_0x3fbc7c(0x1b7)](/^---\n([\s\S]+?)\n---/);if(!_0x579541)throw new Error(_0x3fbc7c(0x1c6));const _0x3fadf1=_0x579541[0x1],_0x1877ee=_0x3fadf1[_0x3fbc7c(0x1b7)](/name:\s*(.+)/),_0x5a458c=_0x3fadf1['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0x1877ee?.[0x1]['trim']()||'','description':_0x5a458c?.[0x1][_0x3fbc7c(0x1b5)]()||''};}export async function removeSkill(_0x31e8aa,_0x4ef016){const _0x553b3c=_0x547f4f,_0x3632a9={'CMxnk':function(_0x166d03,_0x3ee3c1){return _0x166d03(_0x3ee3c1);}},_0x10cf23=getSkillsDir(_0x4ef016),_0x18a21f=join(_0x10cf23,_0x31e8aa);if(!_0x3632a9['CMxnk'](existsSync,_0x18a21f))return![];try{return await rm(_0x18a21f,{'recursive':!![]}),console['log'](_0x553b3c(0x1c0)+_0x31e8aa),!![];}catch{return console['warn'](_0x553b3c(0x1ba)+_0x31e8aa),![];}}
@@ -1 +1 @@
1
- const _0xc3913b=_0x4621;function _0x472b(){const _0x11eacb=['IdRaB','error','jRHqi','clusters','svOlw','gfcRA','maxTicks','fyLNX','hundk','331499ZLdVcJ','qddHF','GwhuP','push','kbePJ','argv','jKZBK','NYbEf','30wMdHSr','stitchWebmFiles.ts','from','exit','HEjKv','Stitched\x20','YgLcf','TWChh','omUeT','1224414knSOiX','qYpCo','11465wtkSvg','bodyAfterTimestamp','readInt16BE','4458000vXPsaW','BCoiE','MfmxH','VAABF','tgTVN','KUJRD','slice','log','\x20files\x20->\x20','drLgr','DlKMF','TOQxH','ZrzIa','beXqy','oxjuk','alloc','timestamp','481937JYaHiI','FexMj','2uXvmBi','jEGqV','XZBsp','indexOf','ertCR','12GNMwTe','vntLU','floor','length','copy','tPFLY','dNSyu','GNQVC','356Gaggdd','yxRiv','znJdW','619713BMbxnB','Qsvet','concat','123277YDgFkZ','bFIyG'];_0x472b=function(){return _0x11eacb;};return _0x472b();}(function(_0x2acc28,_0x579587){const _0x49a7a0=_0x4621,_0x1e55b6=_0x2acc28();while(!![]){try{const _0x3f8165=-parseInt(_0x49a7a0(0xeb))/0x1*(parseInt(_0x49a7a0(0xed))/0x2)+parseInt(_0x49a7a0(0x11c))/0x3+-parseInt(_0x49a7a0(0xfa))/0x4*(parseInt(_0x49a7a0(0xd7))/0x5)+parseInt(_0x49a7a0(0xf2))/0x6*(-parseInt(_0x49a7a0(0x10b))/0x7)+parseInt(_0x49a7a0(0xda))/0x8+parseInt(_0x49a7a0(0xfd))/0x9+-parseInt(_0x49a7a0(0x113))/0xa*(-parseInt(_0x49a7a0(0x100))/0xb);if(_0x3f8165===_0x579587)break;else _0x1e55b6['push'](_0x1e55b6['shift']());}catch(_0x5014cb){_0x1e55b6['push'](_0x1e55b6['shift']());}}}(_0x472b,0x461a2));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_SIMPLE_BLOCK=0xa3;function readVint(_0xb5ed25,_0x4aec5d){const _0x24789d=_0x4621,_0x54830e={'czita':function(_0x5dbb2e,_0x13ec33){return _0x5dbb2e>=_0x13ec33;},'MfmxH':function(_0x19be31,_0xbc18a7){return _0x19be31&_0xbc18a7;},'vntLU':function(_0x28efaa,_0x24bf50){return _0x28efaa-_0x24bf50;},'ifUNC':function(_0x3a5bfe,_0x50acf8){return _0x3a5bfe+_0x50acf8;}};if(_0x54830e['czita'](_0x4aec5d,_0xb5ed25[_0x24789d(0xf5)]))return[0x0,0x0];const _0x297520=_0xb5ed25[_0x4aec5d];let _0x3450ed=0x1,_0x4c4218=0x80;while(_0x3450ed<=0x8&&!(_0x297520&_0x4c4218)){_0x3450ed++,_0x4c4218>>=0x1;}if(_0x4aec5d+_0x3450ed>_0xb5ed25['length'])return[0x0,0x0];let _0x1763b8=_0x54830e[_0x24789d(0xdc)](_0x297520,_0x54830e[_0x24789d(0xf3)](_0x4c4218,0x1));for(let _0xf2205b=0x1;_0xf2205b<_0x3450ed;_0xf2205b++){_0x1763b8=_0x1763b8*0x100+_0xb5ed25[_0x54830e['ifUNC'](_0x4aec5d,_0xf2205b)];}return[_0x1763b8,_0x3450ed];}function readId(_0x5bba0d,_0x59fe54){const _0x2e35ae=_0x4621,_0x2ceb95={'omUeT':function(_0x51da32,_0x3c77c1){return _0x51da32+_0x3c77c1;},'ILNtI':function(_0x51eff0,_0x809c3){return _0x51eff0<_0x809c3;},'BCoiE':function(_0xfc8496,_0x3f7423){return _0xfc8496*_0x3f7423;}};if(_0x59fe54>=_0x5bba0d['length'])return[0x0,0x0];const _0x4e2659=_0x5bba0d[_0x59fe54];let _0x3ef81f;if(_0x4e2659>=0x80)_0x3ef81f=0x1;else{if(_0x4e2659>=0x40)_0x3ef81f=0x2;else{if(_0x4e2659>=0x20)_0x3ef81f=0x3;else{if(_0x4e2659>=0x10)_0x3ef81f=0x4;else return[_0x4e2659,0x1];}}}if(_0x2ceb95[_0x2e35ae(0x11b)](_0x59fe54,_0x3ef81f)>_0x5bba0d[_0x2e35ae(0xf5)])return[0x0,0x0];let _0x278e1b=0x0;for(let _0x5dda7f=0x0;_0x2ceb95['ILNtI'](_0x5dda7f,_0x3ef81f);_0x5dda7f++){_0x278e1b=_0x2ceb95[_0x2e35ae(0xdb)](_0x278e1b,0x100)+_0x5bba0d[_0x2ceb95['omUeT'](_0x59fe54,_0x5dda7f)];}return[_0x278e1b,_0x3ef81f];}function _0x4621(_0x8995c7,_0x3151f5){_0x8995c7=_0x8995c7-0xd7;const _0x472b7f=_0x472b();let _0x46219a=_0x472b7f[_0x8995c7];return _0x46219a;}function readUint(_0x504db8,_0x312c3f,_0x5e8cb9){const _0x4d92d9=_0x4621,_0x593691={'hAhth':function(_0x161d5c,_0x289f5d){return _0x161d5c<_0x289f5d;},'ZrzIa':function(_0xa63d01,_0x302ae2){return _0xa63d01+_0x302ae2;}};let _0x48c440=0x0;for(let _0x504b0d=0x0;_0x593691['hAhth'](_0x504b0d,_0x5e8cb9);_0x504b0d++){_0x48c440=_0x593691[_0x4d92d9(0xe6)](_0x48c440*0x100,_0x504db8[_0x312c3f+_0x504b0d]);}return _0x48c440;}function isUnknownSize(_0x51cda5,_0x13eee4){const _0x439f35=_0x4621,_0x20e510={'qYpCo':function(_0x3c8e4,_0x1be7ea){return _0x3c8e4-_0x1be7ea;}};return _0x51cda5===_0x20e510[_0x439f35(0x11d)](Math['pow'](0x2,0x7*_0x13eee4),0x1);}function writeVint(_0x3be58a,_0xea3b58){const _0x208569=_0x4621,_0x26b92b={'IdRaB':function(_0x39249e,_0x5ba817){return _0x39249e||_0x5ba817;},'Akcfn':function(_0x1d6d45,_0x4db16f){return _0x1d6d45<_0x4db16f;},'UnZDR':function(_0x1fd2b1,_0x58072e){return _0x1fd2b1*_0x58072e;},'TOQxH':function(_0x8c7ffc,_0x14f1a8){return _0x8c7ffc-_0x14f1a8;},'Ebwkb':function(_0x46f315,_0xb7f5b6){return _0x46f315&_0xb7f5b6;},'JbAgb':function(_0x27583d,_0x4683ee){return _0x27583d/_0x4683ee;}};let _0x1ec2f2=_0x26b92b[_0x208569(0x102)](_0xea3b58,0x1);while(_0x26b92b['Akcfn'](Math['pow'](0x2,_0x26b92b['UnZDR'](0x7,_0x1ec2f2))-0x2,_0x3be58a))_0x1ec2f2++;const _0x19515b=Buffer['alloc'](_0x1ec2f2);for(let _0x1ed74f=_0x26b92b[_0x208569(0xe5)](_0x1ec2f2,0x1);_0x1ed74f>=0x0;_0x1ed74f--){_0x19515b[_0x1ed74f]=_0x26b92b['Ebwkb'](_0x3be58a,0xff),_0x3be58a=Math['floor'](_0x26b92b['JbAgb'](_0x3be58a,0x100));}return _0x19515b[0x0]|=0x1<<0x8-_0x1ec2f2,_0x19515b;}function writeUint(_0x412794,_0x3c3a46){const _0x3c16f5=_0x4621,_0xe59179={'AdIEE':function(_0x29b5dd,_0x5f1213){return _0x29b5dd-_0x5f1213;}},_0x2bcc82=Buffer[_0x3c16f5(0xe9)](_0x3c3a46);for(let _0x1c3a8f=_0xe59179['AdIEE'](_0x3c3a46,0x1);_0x1c3a8f>=0x0;_0x1c3a8f--){_0x2bcc82[_0x1c3a8f]=_0x412794&0xff,_0x412794=Math[_0x3c16f5(0xf4)](_0x412794/0x100);}return _0x2bcc82;}function writeUnknownSizeVint(_0x590f88){const _0x2767af=_0x4621,_0x53160d={'oxjuk':function(_0x281be8,_0x5cdee2){return _0x281be8-_0x5cdee2;}},_0x29f861=Buffer[_0x2767af(0xe9)](_0x590f88,0xff);return _0x29f861[0x0]=0xff>>_0x53160d[_0x2767af(0xe8)](_0x590f88,0x1),_0x29f861;}function uintSize(_0x40bb71){const _0x21f6c7=_0x4621,_0x260818={'VAABF':function(_0x4763c2,_0x40fd79){return _0x4763c2===_0x40fd79;},'TWChh':function(_0x3ee6fa,_0x13c92b){return _0x3ee6fa>_0x13c92b;},'SQQvM':function(_0x24856b,_0x3c6684){return _0x24856b/_0x3c6684;}};if(_0x260818[_0x21f6c7(0xdd)](_0x40bb71,0x0))return 0x1;let _0x1ea482=0x0,_0x409c5c=_0x40bb71;while(_0x260818[_0x21f6c7(0x11a)](_0x409c5c,0x0)){_0x1ea482++,_0x409c5c=Math['floor'](_0x260818['SQQvM'](_0x409c5c,0x100));}return _0x1ea482;}function findTimestampScale(_0x484f42,_0x1eaf14){const _0x4ed432=_0x4621,_0x1d8bf8={'GNQVC':function(_0x412e70,_0xa289c0){return _0x412e70+_0xa289c0;},'GwhuP':function(_0x41119c,_0x433c0b){return _0x41119c<_0x433c0b;},'fyLNX':function(_0x16ec14,_0x496a26,_0x4e593e){return _0x16ec14(_0x496a26,_0x4e593e);},'tPFLY':function(_0x20fc7f,_0x5077c6){return _0x20fc7f===_0x5077c6;},'dNSyu':function(_0x3fb343,_0x1d9f25){return _0x3fb343+_0x1d9f25;},'pZzhD':function(_0x7d6d75,_0x1d10ba,_0x1f8e93){return _0x7d6d75(_0x1d10ba,_0x1f8e93);},'txFqY':function(_0x275017,_0x27b201){return _0x275017+_0x27b201;}};let _0x374740=_0x1eaf14;const _0x573285=Math['min'](_0x484f42[_0x4ed432(0xf5)],_0x1d8bf8['GNQVC'](_0x1eaf14,0x2710));while(_0x1d8bf8[_0x4ed432(0x10d)](_0x374740,_0x573285)){const [_0x485445,_0x572e4a]=readId(_0x484f42,_0x374740),[_0x29ff08,_0xaef361]=_0x1d8bf8['fyLNX'](readVint,_0x484f42,_0x374740+_0x572e4a);if(_0x1d8bf8['tPFLY'](_0x485445,ID_INFO)){let _0x4b4c20=_0x1d8bf8[_0x4ed432(0xf9)](_0x374740+_0x572e4a,_0xaef361);const _0x3c1716=_0x1d8bf8['GNQVC'](_0x4b4c20,_0x29ff08);while(_0x4b4c20<_0x3c1716){const [_0x233ba8,_0x3f2d7c]=_0x1d8bf8[_0x4ed432(0x109)](readId,_0x484f42,_0x4b4c20),[_0x271369,_0x524beb]=_0x1d8bf8[_0x4ed432(0x109)](readVint,_0x484f42,_0x4b4c20+_0x3f2d7c);if(_0x233ba8===ID_TIMESTAMP_SCALE)return readUint(_0x484f42,_0x1d8bf8[_0x4ed432(0xf8)](_0x4b4c20+_0x3f2d7c,_0x524beb),_0x271369);_0x4b4c20+=_0x1d8bf8[_0x4ed432(0xf8)](_0x3f2d7c,_0x524beb)+_0x271369;}break;}if(_0x1d8bf8[_0x4ed432(0xf7)](_0x485445,ID_CLUSTER))break;if(_0x1d8bf8['pZzhD'](isUnknownSize,_0x29ff08,_0xaef361))break;_0x374740+=_0x1d8bf8['txFqY'](_0x572e4a+_0xaef361,_0x29ff08);}return 0xf4240;}function findFirstClusterOffset(_0x4f10f4,_0x4cec3d){const _0x45bfe8=_0x4621,_0x2fad94={'MhRka':function(_0x5ad2dd,_0x461749){return _0x5ad2dd<_0x461749;},'ALKBN':function(_0x4c66cf,_0x1ba35f,_0x3e5efc){return _0x4c66cf(_0x1ba35f,_0x3e5efc);},'qddHF':function(_0x37fd4e,_0x161c0a){return _0x37fd4e+_0x161c0a;}};let _0x1aad88=_0x4cec3d;while(_0x2fad94['MhRka'](_0x1aad88,_0x4f10f4[_0x45bfe8(0xf5)])){const [_0x538a0d,_0xcfb983]=readId(_0x4f10f4,_0x1aad88);if(_0x538a0d===ID_CLUSTER)return _0x1aad88;const [_0x40eb23,_0x70db8b]=readVint(_0x4f10f4,_0x1aad88+_0xcfb983);if(_0x2fad94['ALKBN'](isUnknownSize,_0x40eb23,_0x70db8b))return _0x1aad88;_0x1aad88+=_0x2fad94[_0x45bfe8(0x10c)](_0x2fad94['qddHF'](_0xcfb983,_0x70db8b),_0x40eb23);}return _0x4f10f4[_0x45bfe8(0xf5)];}function findClusterEnd(_0x3b8261,_0x40d1e6,_0x6fc84e,_0x3e9651){const _0x1d4bdc={'hdfnm':function(_0x42b718,_0xa9c3ae,_0x987ad8){return _0x42b718(_0xa9c3ae,_0x987ad8);},'cWKBM':function(_0x40e068,_0x1cfd61){return _0x40e068+_0x1cfd61;}};if(!isUnknownSize(_0x6fc84e,_0x3e9651))return _0x40d1e6+_0x6fc84e;const _0x4efe6d=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x3f1867=_0x40d1e6;while(_0x3f1867<_0x3b8261['length']-0x4){const [_0x2dcce2,_0x2b8894]=readId(_0x3b8261,_0x3f1867);if(_0x4efe6d['has'](_0x2dcce2))return _0x3f1867;const [_0x1105f7,_0x568120]=readVint(_0x3b8261,_0x3f1867+_0x2b8894);if(_0x1d4bdc['hdfnm'](isUnknownSize,_0x1105f7,_0x568120))return _0x3b8261['length'];_0x3f1867+=_0x1d4bdc['cWKBM'](_0x2b8894,_0x568120)+_0x1105f7;}return _0x3b8261['length'];}function extractClusters(_0x15a0f1,_0x8b7ea2){const _0x54eb3c=_0x4621,_0x5a94ff={'Qsvet':function(_0x35966f,_0x195f6c){return _0x35966f<_0x195f6c;},'KUJRD':function(_0x5bb2aa,_0x7b0f8a){return _0x5bb2aa===_0x7b0f8a;},'mDxPM':function(_0x5b5aad,_0x221b23){return _0x5b5aad!==_0x221b23;},'NYbEf':function(_0x117a1e,_0x39365b){return _0x117a1e+_0x39365b;},'QSFWA':function(_0x20fdb2,_0x9df418,_0x272b3c){return _0x20fdb2(_0x9df418,_0x272b3c);},'GJqdf':function(_0x2673d6,_0x4d580f,_0x76fd8f){return _0x2673d6(_0x4d580f,_0x76fd8f);},'jKZBK':function(_0x341181,_0xa3baa,_0x3b7a18,_0x477b30){return _0x341181(_0xa3baa,_0x3b7a18,_0x477b30);},'HEjKv':function(_0x5bfcad,_0x2dbd2f){return _0x5bfcad+_0x2dbd2f;},'znJdW':function(_0x5a260c,_0x12ed68){return _0x5a260c+_0x12ed68;},'HOaWg':function(_0x1b6416,_0x216f8d){return _0x1b6416+_0x216f8d;},'FexMj':function(_0x3265e6,_0x2c4827){return _0x3265e6+_0x2c4827;},'yxRiv':function(_0x424a10,_0x17b034){return _0x424a10>_0x17b034;},'kEaHo':function(_0x50325b,_0x58a073){return _0x50325b+_0x58a073;}},_0x396451=[],_0x4fece3=Buffer[_0x54eb3c(0x115)]([0x1f,0x43,0xb6,0x75]);let _0x514630=0x0;while(_0x5a94ff[_0x54eb3c(0xfe)](_0x514630,_0x15a0f1['length'])){const _0xd32187=_0x15a0f1[_0x54eb3c(0xf0)](_0x4fece3,_0x514630);if(_0x5a94ff['KUJRD'](_0xd32187,-0x1))break;const [_0x4443b3,_0xd03a1b]=readId(_0x15a0f1,_0xd32187);if(_0x5a94ff['mDxPM'](_0x4443b3,ID_CLUSTER)){_0x514630=_0x5a94ff[_0x54eb3c(0x112)](_0xd32187,0x1);continue;}const [_0x523325,_0x2a7992]=readVint(_0x15a0f1,_0xd32187+_0xd03a1b),_0x19357c=_0x5a94ff[_0x54eb3c(0x112)](_0xd32187+_0xd03a1b,_0x2a7992),_0x51de94=findClusterEnd(_0x15a0f1,_0x19357c,_0x523325,_0x2a7992);let _0x19ad68=_0x19357c,_0x2fe3d1=0x0,_0x7c2c68=0x2,_0x4b286b=![],_0x2b9068=Buffer[_0x54eb3c(0xe9)](0x0),_0x34b28a=Buffer['alloc'](0x0);while(_0x19ad68<_0x51de94){const [_0x1b3eb6,_0x2c1e41]=_0x5a94ff['QSFWA'](readId,_0x15a0f1,_0x19ad68),[_0x299391,_0x35c218]=_0x5a94ff['GJqdf'](readVint,_0x15a0f1,_0x19ad68+_0x2c1e41);if(_0x1b3eb6===ID_TIMESTAMP){_0x2fe3d1=_0x5a94ff[_0x54eb3c(0x111)](readUint,_0x15a0f1,_0x5a94ff[_0x54eb3c(0x112)](_0x5a94ff[_0x54eb3c(0x117)](_0x19ad68,_0x2c1e41),_0x35c218),_0x299391),_0x7c2c68=_0x299391,_0x4b286b=!![],_0x2b9068=_0x15a0f1['slice'](_0x19357c,_0x19ad68);const _0x2ecf22=_0x5a94ff[_0x54eb3c(0xfc)](_0x5a94ff['znJdW'](_0x5a94ff['HOaWg'](_0x19ad68,_0x2c1e41),_0x35c218),_0x299391);_0x34b28a=_0x15a0f1['slice'](_0x2ecf22,_0x51de94);break;}if(_0x5a94ff[_0x54eb3c(0xdf)](_0x1b3eb6,ID_CLUSTER))break;if(isUnknownSize(_0x299391,_0x35c218))break;_0x19ad68+=_0x5a94ff[_0x54eb3c(0xec)](_0x2c1e41,_0x35c218)+_0x299391;}!_0x4b286b&&(_0x34b28a=_0x15a0f1[_0x54eb3c(0xe0)](_0x19357c,_0x51de94));let _0x587add=_0x2fe3d1;_0x19ad68=_0x19357c;while(_0x19ad68<_0x51de94){const [_0x5ace91,_0x43de75]=_0x5a94ff['QSFWA'](readId,_0x15a0f1,_0x19ad68),[_0x2fc138,_0x10af2c]=readVint(_0x15a0f1,_0x19ad68+_0x43de75);if(_0x5a94ff[_0x54eb3c(0xdf)](_0x5ace91,ID_SIMPLE_BLOCK)&&_0x2fc138>=0x4){const _0x3b2972=_0x19ad68+_0x43de75+_0x10af2c,[,_0xadab9f]=_0x5a94ff['QSFWA'](readVint,_0x15a0f1,_0x3b2972),_0x4ef02e=_0x15a0f1[_0x54eb3c(0xd9)](_0x3b2972+_0xadab9f),_0x4b549a=_0x2fe3d1+_0x4ef02e;if(_0x5a94ff[_0x54eb3c(0xfb)](_0x4b549a,_0x587add))_0x587add=_0x4b549a;}if(_0x5a94ff[_0x54eb3c(0xdf)](_0x5ace91,ID_CLUSTER))break;if(isUnknownSize(_0x2fc138,_0x10af2c))break;_0x19ad68+=_0x5a94ff[_0x54eb3c(0x112)](_0x5a94ff['kEaHo'](_0x43de75,_0x10af2c),_0x2fc138);}_0x396451[_0x54eb3c(0x10e)]({'timestamp':_0x2fe3d1,'maxTicks':_0x587add,'bodyBeforeTimestamp':_0x2b9068,'bodyAfterTimestamp':_0x34b28a,'timestampElementSize':_0x7c2c68}),_0x514630=_0x51de94;}return _0x396451;}function parseWebm(_0x4dd1d8){const _0x8e87b9=_0x4621,_0x3eb857={'NQoDm':function(_0x12e605,_0x4e452a,_0xab9795){return _0x12e605(_0x4e452a,_0xab9795);},'bFIyG':function(_0x3e2101,_0x50838b){return _0x3e2101+_0x50838b;},'YgLcf':function(_0x3c279f,_0x36e2fd,_0x1c3c1f){return _0x3c279f(_0x36e2fd,_0x1c3c1f);},'KDITo':function(_0x3e9d98,_0x2b1e54){return _0x3e9d98+_0x2b1e54;},'gfcRA':function(_0x4136fd,_0x1e00cb,_0xbf52bb){return _0x4136fd(_0x1e00cb,_0xbf52bb);},'svOlw':function(_0x348604,_0x4c43a6){return _0x348604>_0x4c43a6;}};let _0x22eae7=0x0;const [,_0x29ed11]=_0x3eb857['NQoDm'](readId,_0x4dd1d8,_0x22eae7),[_0x562bad,_0x328b35]=_0x3eb857['NQoDm'](readVint,_0x4dd1d8,_0x22eae7+_0x29ed11);_0x22eae7+=_0x3eb857[_0x8e87b9(0x101)](_0x3eb857['bFIyG'](_0x29ed11,_0x328b35),_0x562bad);const [_0x1f2aed,_0x36349d]=readId(_0x4dd1d8,_0x22eae7);if(_0x1f2aed!==ID_SEGMENT)return null;const [,_0x5aca61]=_0x3eb857[_0x8e87b9(0x119)](readVint,_0x4dd1d8,_0x22eae7+_0x36349d),_0x2d1d0f=_0x3eb857[_0x8e87b9(0x101)](_0x3eb857['KDITo'](_0x22eae7,_0x36349d),_0x5aca61),_0x33af91=findTimestampScale(_0x4dd1d8,_0x2d1d0f),_0x1aba5c=_0x3eb857[_0x8e87b9(0x107)](findFirstClusterOffset,_0x4dd1d8,_0x2d1d0f),_0x4742b8=_0x4dd1d8['slice'](0x0,_0x1aba5c),_0x4d7b29=extractClusters(_0x4dd1d8,_0x33af91);let _0x416619=0x0;for(const _0x5f58d3 of _0x4d7b29){if(_0x3eb857[_0x8e87b9(0x106)](_0x5f58d3[_0x8e87b9(0x108)],_0x416619))_0x416619=_0x5f58d3['maxTicks'];}return{'header':_0x4742b8,'clusters':_0x4d7b29,'timestampScale':_0x33af91,'maxTimestampTicks':_0x416619};}function buildCluster(_0x3beb8b,_0x29cc30,_0x104d02){const _0x2564dd=_0x4621,_0x43d416={'jRHqi':function(_0x36e77f,_0x41bac9){return _0x36e77f(_0x41bac9);},'yuRIF':function(_0x315827,_0x5399b9,_0x3ba38b){return _0x315827(_0x5399b9,_0x3ba38b);}},_0x158319=Buffer[_0x2564dd(0x115)]([0x1f,0x43,0xb6,0x75]),_0xe59f68=Math['max'](0x4,_0x43d416['jRHqi'](uintSize,_0x3beb8b)),_0x48eea0=Buffer['concat']([Buffer[_0x2564dd(0x115)]([ID_TIMESTAMP]),_0x43d416[_0x2564dd(0x104)](writeVint,_0xe59f68),_0x43d416['yuRIF'](writeUint,_0x3beb8b,_0xe59f68)]),_0x120a43=Buffer['concat']([_0x29cc30,_0x48eea0,_0x104d02]),_0x47beb7=writeVint(_0x120a43['length']);return Buffer[_0x2564dd(0xff)]([_0x158319,_0x47beb7,_0x120a43]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x33813c){const _0x18b666=_0x4621,_0x210a7a={'jEGqV':function(_0x4d46d8,_0x2945c5,_0xc4ee2c){return _0x4d46d8(_0x2945c5,_0xc4ee2c);},'DlKMF':function(_0x3d40e4,_0x17216c){return _0x3d40e4+_0x17216c;},'beXqy':function(_0x561cd0,_0x3d1681){return _0x561cd0+_0x3d1681;},'ertCR':function(_0x1f33a2,_0x4b56c7,_0x226e08){return _0x1f33a2(_0x4b56c7,_0x226e08);},'etTtz':function(_0x575f9d,_0xca13d8){return _0x575f9d+_0xca13d8;},'CMedD':function(_0xa65b4f,_0x18e0d5){return _0xa65b4f+_0x18e0d5;},'dbXTc':function(_0x41749e,_0x580b1e){return _0x41749e<_0x580b1e;},'drLgr':function(_0x3a6760,_0x494dd2,_0x4ae0ad){return _0x3a6760(_0x494dd2,_0x4ae0ad);},'WkzVq':function(_0x486262,_0x2b60f8){return _0x486262+_0x2b60f8;},'pROgg':function(_0x5d571f,_0x25278e,_0xf202ba){return _0x5d571f(_0x25278e,_0xf202ba);},'kbePJ':function(_0x4ffdef,_0x3524fb){return _0x4ffdef+_0x3524fb;}},_0x3b8540=Buffer[_0x18b666(0x115)](_0x33813c);let _0x311461=0x0;const [,_0xbafa13]=_0x210a7a['jEGqV'](readId,_0x3b8540,_0x311461),[_0x2e8de1,_0x46c555]=readVint(_0x3b8540,_0x210a7a['DlKMF'](_0x311461,_0xbafa13)),_0x1d1e48=_0x210a7a['beXqy'](_0x210a7a['beXqy'](_0x311461,_0xbafa13),_0x46c555)+_0x2e8de1,[,_0x365ef5]=_0x210a7a[_0x18b666(0xf1)](readId,_0x3b8540,_0x1d1e48),[,_0x4b70ee]=readVint(_0x3b8540,_0x1d1e48+_0x365ef5),_0x12a855=_0x210a7a[_0x18b666(0xe7)](_0x210a7a['etTtz'](_0x1d1e48,_0x365ef5),_0x4b70ee),_0x3dd030=writeUnknownSizeVint(_0x4b70ee);_0x3dd030[_0x18b666(0xf6)](_0x3b8540,_0x210a7a['CMedD'](_0x1d1e48,_0x365ef5));let _0x557ec3=_0x12a855;const _0x5208c3=Math['min'](_0x3b8540[_0x18b666(0xf5)],_0x12a855+0x2710);while(_0x210a7a['dbXTc'](_0x557ec3,_0x5208c3)){const [_0x5358e5,_0x56305a]=_0x210a7a[_0x18b666(0xee)](readId,_0x3b8540,_0x557ec3),[_0x4172e6,_0x2457c8]=_0x210a7a['drLgr'](readVint,_0x3b8540,_0x557ec3+_0x56305a);if(_0x5358e5===ID_CLUSTER)break;if(_0x210a7a[_0x18b666(0xee)](isUnknownSize,_0x4172e6,_0x2457c8))break;if(_0x5358e5===ID_INFO){const _0x5cbfc8=_0x210a7a[_0x18b666(0xe4)](_0x210a7a['WkzVq'](_0x557ec3,_0x56305a),_0x2457c8),_0x55890a=_0x210a7a['WkzVq'](_0x5cbfc8,_0x4172e6),_0x3974cd=[];let _0x983b70=_0x5cbfc8;while(_0x983b70<_0x55890a){const [_0x306f24,_0x5e04e6]=_0x210a7a['pROgg'](readId,_0x3b8540,_0x983b70),[_0xf75fc8,_0x819473]=readVint(_0x3b8540,_0x983b70+_0x5e04e6),_0x3e5289=_0x5e04e6+_0x819473+_0xf75fc8;_0x306f24!==ID_DURATION&&_0x3974cd[_0x18b666(0x10e)](_0x3b8540[_0x18b666(0xe0)](_0x983b70,_0x210a7a['etTtz'](_0x983b70,_0x3e5289))),_0x983b70+=_0x3e5289;}const _0x408064=Buffer[_0x18b666(0xff)](_0x3974cd),_0x11ddfc=Buffer[_0x18b666(0xff)]([_0x3b8540['slice'](_0x557ec3,_0x557ec3+_0x56305a),_0x210a7a[_0x18b666(0xe3)](writeVint,_0x408064[_0x18b666(0xf5)],_0x2457c8)]);return Buffer['concat']([_0x3b8540['slice'](0x0,_0x557ec3),_0x11ddfc,_0x408064,_0x3b8540['slice'](_0x55890a)]);}_0x557ec3+=_0x210a7a[_0x18b666(0x10f)](_0x56305a,_0x2457c8)+_0x4172e6;}return _0x3b8540;}export function stitchWebmFiles(_0x15c04d,_0x1b4e9a){const _0x26981b=_0x4621,_0x25d022={'XZBsp':function(_0x57bbb7,_0x15fd8e){return _0x57bbb7===_0x15fd8e;},'hundk':function(_0x21e400,_0xcd80e5){return _0x21e400(_0xcd80e5);},'tgTVN':function(_0x228d68,_0x8b19a6){return _0x228d68+_0x8b19a6;},'wUmJv':function(_0xd30917,_0x55e131,_0x1623be){return _0xd30917(_0x55e131,_0x1623be);}};if(_0x15c04d['length']<=0x1)return![];const _0x3a8ddb=[];for(const _0x1cb20e of _0x15c04d){const _0xb8a358=readFileSync(_0x1cb20e),_0xac0dc1=parseWebm(_0xb8a358);if(!_0xac0dc1||_0x25d022[_0x26981b(0xef)](_0xac0dc1[_0x26981b(0x105)]['length'],0x0))return![];_0x3a8ddb[_0x26981b(0x10e)](_0xac0dc1);}const _0x312e6f=_0x3a8ddb[0x0],_0x1756e4=_0x25d022[_0x26981b(0x10a)](rebuildHeaderWithoutDuration,_0x312e6f['header']),_0x52c922=[_0x1756e4];let _0x397977=0x0;for(let _0x1cd243=0x0;_0x1cd243<_0x3a8ddb[_0x26981b(0xf5)];_0x1cd243++){const _0x16af68=_0x3a8ddb[_0x1cd243];for(const _0x14dd13 of _0x16af68[_0x26981b(0x105)]){const _0x30e6ec=_0x14dd13[_0x26981b(0xea)]+_0x397977;_0x52c922[_0x26981b(0x10e)](buildCluster(_0x30e6ec,_0x14dd13['bodyBeforeTimestamp'],_0x14dd13[_0x26981b(0xd8)]));}const _0x4b28c6=0x1e;_0x397977+=_0x25d022[_0x26981b(0xde)](_0x16af68['maxTimestampTicks'],_0x4b28c6);}return _0x25d022['wUmJv'](writeFileSync,_0x1b4e9a,Buffer['concat'](_0x52c922)),!![];}if(process['argv'][0x1]?.['endsWith'](_0xc3913b(0x114))||process[_0xc3913b(0x110)][0x1]?.['endsWith']('stitchWebmFiles.js')){const args=process['argv']['slice'](0x2);args['length']<0x3&&(console[_0xc3913b(0x103)]('Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>'),process[_0xc3913b(0x116)](0x1));const output=args[args['length']-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0xc3913b(0xe1)](_0xc3913b(0x118)+inputs['length']+_0xc3913b(0xe2)+output):console['log']('Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.');}
1
+ const _0x1fb672=_0x297f;(function(_0x269a16,_0x3ca6ea){const _0x559eeb=_0x297f,_0x24d126=_0x269a16();while(!![]){try{const _0x5b026c=parseInt(_0x559eeb(0xa3))/0x1+parseInt(_0x559eeb(0x8f))/0x2+-parseInt(_0x559eeb(0xb3))/0x3+-parseInt(_0x559eeb(0xa4))/0x4*(-parseInt(_0x559eeb(0xa1))/0x5)+-parseInt(_0x559eeb(0xbb))/0x6*(parseInt(_0x559eeb(0xc7))/0x7)+-parseInt(_0x559eeb(0xc3))/0x8*(parseInt(_0x559eeb(0x8e))/0x9)+parseInt(_0x559eeb(0xba))/0xa;if(_0x5b026c===_0x3ca6ea)break;else _0x24d126['push'](_0x24d126['shift']());}catch(_0x545482){_0x24d126['push'](_0x24d126['shift']());}}}(_0x4a78,0x5fa6d));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x4e2de7,_0x60bd0c){const _0x6ecd60=_0x297f,_0x32b122={'OfYGg':function(_0x114a69,_0x1b2c99){return _0x114a69<=_0x1b2c99;},'GKMgX':function(_0x52042e,_0x4e995d){return _0x52042e&_0x4e995d;},'HdRbe':function(_0x4f4174,_0x57c1e6){return _0x4f4174-_0x57c1e6;},'FwUCm':function(_0x5d83b3,_0x212504){return _0x5d83b3+_0x212504;},'EpxtO':function(_0x4571f0,_0x57998c){return _0x4571f0*_0x57998c;}};if(_0x60bd0c>=_0x4e2de7['length'])return[0x0,0x0];const _0x34864d=_0x4e2de7[_0x60bd0c];let _0x576dc7=0x1,_0x3dd210=0x80;while(_0x32b122[_0x6ecd60(0xc9)](_0x576dc7,0x8)&&!_0x32b122['GKMgX'](_0x34864d,_0x3dd210)){_0x576dc7++,_0x3dd210>>=0x1;}if(_0x60bd0c+_0x576dc7>_0x4e2de7[_0x6ecd60(0xd0)])return[0x0,0x0];let _0x2fd3ab=_0x34864d&_0x32b122['HdRbe'](_0x3dd210,0x1);for(let _0x3e0bb4=0x1;_0x3e0bb4<_0x576dc7;_0x3e0bb4++){_0x2fd3ab=_0x32b122['FwUCm'](_0x32b122['EpxtO'](_0x2fd3ab,0x100),_0x4e2de7[_0x32b122[_0x6ecd60(0xbf)](_0x60bd0c,_0x3e0bb4)]);}return[_0x2fd3ab,_0x576dc7];}function readId(_0x24dd97,_0x442e06){const _0x2be40a=_0x297f,_0x405281={'GuBzy':function(_0x16fbcb,_0x511ca1){return _0x16fbcb>=_0x511ca1;},'tdXvD':function(_0x46bf63,_0x270aa5){return _0x46bf63+_0x270aa5;},'mrAWd':function(_0x5deabb,_0x37c44b){return _0x5deabb*_0x37c44b;},'yIvtp':function(_0xe484b8,_0x3f215c){return _0xe484b8+_0x3f215c;}};if(_0x442e06>=_0x24dd97[_0x2be40a(0xd0)])return[0x0,0x0];const _0x368727=_0x24dd97[_0x442e06];let _0x586753;if(_0x368727>=0x80)_0x586753=0x1;else{if(_0x405281['GuBzy'](_0x368727,0x40))_0x586753=0x2;else{if(_0x405281[_0x2be40a(0xc2)](_0x368727,0x20))_0x586753=0x3;else{if(_0x368727>=0x10)_0x586753=0x4;else return[_0x368727,0x1];}}}if(_0x405281[_0x2be40a(0x9e)](_0x442e06,_0x586753)>_0x24dd97['length'])return[0x0,0x0];let _0x49ca4c=0x0;for(let _0x2a8d13=0x0;_0x2a8d13<_0x586753;_0x2a8d13++){_0x49ca4c=_0x405281['tdXvD'](_0x405281[_0x2be40a(0x9d)](_0x49ca4c,0x100),_0x24dd97[_0x405281[_0x2be40a(0x93)](_0x442e06,_0x2a8d13)]);}return[_0x49ca4c,_0x586753];}function readUint(_0x22f5ef,_0x5f3fc2,_0x49af2d){let _0x23b14f=0x0;for(let _0xfba4d7=0x0;_0xfba4d7<_0x49af2d;_0xfba4d7++){_0x23b14f=_0x23b14f*0x100+_0x22f5ef[_0x5f3fc2+_0xfba4d7];}return _0x23b14f;}function isUnknownSize(_0x8bf82b,_0x4a54de){const _0x4e2f8a=_0x297f,_0x1809de={'IbpYP':function(_0x368ace,_0x5cd829){return _0x368ace===_0x5cd829;},'VHCWt':function(_0x3ac7e5,_0x30682b){return _0x3ac7e5-_0x30682b;},'AnROI':function(_0x168bf1,_0x546461){return _0x168bf1*_0x546461;}};return _0x1809de['IbpYP'](_0x8bf82b,_0x1809de['VHCWt'](Math['pow'](0x2,_0x1809de[_0x4e2f8a(0xcf)](0x7,_0x4a54de)),0x1));}function writeVint(_0x47d458,_0x870dff){const _0x1bc4b3=_0x297f,_0x584c26={'cyrKi':function(_0x1c1ad6,_0x4a7355){return _0x1c1ad6-_0x4a7355;},'zpARz':function(_0x54db19,_0x1b1697){return _0x54db19*_0x1b1697;},'YxLPt':function(_0x4c4b41,_0x39c6df){return _0x4c4b41>=_0x39c6df;}};let _0x1d25b0=_0x870dff||0x1;while(_0x584c26['cyrKi'](Math[_0x1bc4b3(0x8a)](0x2,_0x584c26[_0x1bc4b3(0x8d)](0x7,_0x1d25b0)),0x2)<_0x47d458)_0x1d25b0++;const _0x2a7de9=Buffer['alloc'](_0x1d25b0);for(let _0x5480b1=_0x1d25b0-0x1;_0x584c26[_0x1bc4b3(0xd5)](_0x5480b1,0x0);_0x5480b1--){_0x2a7de9[_0x5480b1]=_0x47d458&0xff,_0x47d458=Math['floor'](_0x47d458/0x100);}return _0x2a7de9[0x0]|=0x1<<0x8-_0x1d25b0,_0x2a7de9;}function writeUint(_0x37cca4,_0x26b124){const _0x2789c2=_0x297f,_0xa5f637={'TckGq':function(_0x453c4b,_0x47db96){return _0x453c4b-_0x47db96;},'KjoiA':function(_0x201bd5,_0x4cc649){return _0x201bd5>=_0x4cc649;},'HHIwk':function(_0x3d5142,_0x4a7201){return _0x3d5142/_0x4a7201;}},_0x593809=Buffer['alloc'](_0x26b124);for(let _0x11e3ec=_0xa5f637['TckGq'](_0x26b124,0x1);_0xa5f637['KjoiA'](_0x11e3ec,0x0);_0x11e3ec--){_0x593809[_0x11e3ec]=_0x37cca4&0xff,_0x37cca4=Math[_0x2789c2(0xac)](_0xa5f637[_0x2789c2(0xb6)](_0x37cca4,0x100));}return _0x593809;}function _0x4a78(){const _0x189734=['push','yIvtp','DXycE','\x20files\x20->\x20','min','JUqDF','bodyBeforeTimestamp','tnTzx','GtvmL','ftIRt','max','mrAWd','tdXvD','timestamp','rmTeQ','335hRspsx','endsWith','512243qoLPJF','45672DbRNlf','clusters','FXoSY','fhAko','log','prMKr','error','EfrJm','floor','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','OOICV','slice','has','rpmpE','SOhto','1725393uhVJGW','concat','dvZzi','HHIwk','scjaz','copy','PGdfg','6057230xpNGkD','63078XMFDux','JtRvG','readInt16BE','ZcEWk','FwUCm','Stitched\x20','LUEcn','GuBzy','144344CwGLBR','MhqyB','from','KeZDx','259dwjzJd','header','OfYGg','wFaGS','QwNdn','Ndghy','VdjLh','owCQo','AnROI','length','sFEAo','oKfFQ','YVcfd','MRwYg','YxLPt','maxTimestampTicks','argv','BlDPM','alloc','pow','kCrum','EfOgP','zpARz','279QIioGi','64524mlaTpa','keTyM','PlLRk'];_0x4a78=function(){return _0x189734;};return _0x4a78();}function writeUnknownSizeVint(_0x291573){const _0x3cd15f=_0x297f,_0x26a2f3={'OOICV':function(_0x213b7b,_0x160e23){return _0x213b7b>>_0x160e23;},'PlLRk':function(_0x59ff94,_0xbc1128){return _0x59ff94-_0xbc1128;}},_0x5f5780=Buffer[_0x3cd15f(0x89)](_0x291573,0xff);return _0x5f5780[0x0]=_0x26a2f3[_0x3cd15f(0xae)](0xff,_0x26a2f3[_0x3cd15f(0x91)](_0x291573,0x1)),_0x5f5780;}function uintSize(_0x1a2869){if(_0x1a2869===0x0)return 0x1;let _0x15f8fa=0x0,_0x22c0c5=_0x1a2869;while(_0x22c0c5>0x0){_0x15f8fa++,_0x22c0c5=Math['floor'](_0x22c0c5/0x100);}return _0x15f8fa;}function _0x297f(_0x3a8679,_0x223de5){_0x3a8679=_0x3a8679-0x88;const _0x4a78d6=_0x4a78();let _0x297f87=_0x4a78d6[_0x3a8679];return _0x297f87;}function findTimestampScale(_0xd3aa6e,_0xed3875){const _0xeb584a=_0x297f,_0x162da6={'ZcEWk':function(_0x1ecd8e,_0x20aed7){return _0x1ecd8e+_0x20aed7;},'tnTzx':function(_0x5b0308,_0x38ae3e){return _0x5b0308<_0x38ae3e;},'ftIRt':function(_0x190413,_0x2204b9,_0x375310){return _0x190413(_0x2204b9,_0x375310);},'LUEcn':function(_0x32c1ba,_0x1a3a4e,_0x124a41){return _0x32c1ba(_0x1a3a4e,_0x124a41);},'MRwYg':function(_0x564206,_0x5f0a9a){return _0x564206<_0x5f0a9a;},'rmTeQ':function(_0x2124b5,_0x291eca){return _0x2124b5===_0x291eca;},'Ndghy':function(_0x343de3,_0x3fdc8b,_0x17f3c2,_0x2ebe15){return _0x343de3(_0x3fdc8b,_0x17f3c2,_0x2ebe15);},'prMKr':function(_0x2a1b7a,_0x26b829){return _0x2a1b7a+_0x26b829;}};let _0x2a5dc3=_0xed3875;const _0x17c5d9=Math['min'](_0xd3aa6e[_0xeb584a(0xd0)],_0x162da6['ZcEWk'](_0xed3875,0x2710));while(_0x162da6[_0xeb584a(0x99)](_0x2a5dc3,_0x17c5d9)){const [_0x17090a,_0x5cb417]=_0x162da6['ftIRt'](readId,_0xd3aa6e,_0x2a5dc3),[_0x4a0a06,_0xf0247a]=_0x162da6[_0xeb584a(0xc1)](readVint,_0xd3aa6e,_0x2a5dc3+_0x5cb417);if(_0x17090a===ID_INFO){let _0x56db77=_0x2a5dc3+_0x5cb417+_0xf0247a;const _0x5a7ecf=_0x162da6[_0xeb584a(0xbe)](_0x56db77,_0x4a0a06);while(_0x162da6[_0xeb584a(0xd4)](_0x56db77,_0x5a7ecf)){const [_0xc7a223,_0x1f1910]=readId(_0xd3aa6e,_0x56db77),[_0x2c19b1,_0x379975]=_0x162da6[_0xeb584a(0x9b)](readVint,_0xd3aa6e,_0x162da6['ZcEWk'](_0x56db77,_0x1f1910));if(_0x162da6[_0xeb584a(0xa0)](_0xc7a223,ID_TIMESTAMP_SCALE))return _0x162da6[_0xeb584a(0xcc)](readUint,_0xd3aa6e,_0x162da6[_0xeb584a(0xa9)](_0x56db77,_0x1f1910)+_0x379975,_0x2c19b1);_0x56db77+=_0x1f1910+_0x379975+_0x2c19b1;}break;}if(_0x17090a===ID_CLUSTER)break;if(_0x162da6[_0xeb584a(0xc1)](isUnknownSize,_0x4a0a06,_0xf0247a))break;_0x2a5dc3+=_0x162da6['prMKr'](_0x5cb417+_0xf0247a,_0x4a0a06);}return 0xf4240;}function findFirstClusterOffset(_0x59c9ad,_0x63cbd){const _0x4d9f7f=_0x297f,_0x18b1bc={'GtvmL':function(_0x531d1f,_0x2a2518){return _0x531d1f<_0x2a2518;},'rzSqn':function(_0x276d66,_0x4393b7,_0x533bc1){return _0x276d66(_0x4393b7,_0x533bc1);},'fhAko':function(_0x4ffde8,_0x4af5e0){return _0x4ffde8+_0x4af5e0;},'PZcro':function(_0x2764d8,_0x18ca27,_0x511cd3){return _0x2764d8(_0x18ca27,_0x511cd3);}};let _0x1a0b76=_0x63cbd;while(_0x18b1bc[_0x4d9f7f(0x9a)](_0x1a0b76,_0x59c9ad[_0x4d9f7f(0xd0)])){const [_0x4b8959,_0x44bb24]=_0x18b1bc['rzSqn'](readId,_0x59c9ad,_0x1a0b76);if(_0x4b8959===ID_CLUSTER)return _0x1a0b76;const [_0x4af360,_0x236c41]=readVint(_0x59c9ad,_0x18b1bc[_0x4d9f7f(0xa7)](_0x1a0b76,_0x44bb24));if(_0x18b1bc['PZcro'](isUnknownSize,_0x4af360,_0x236c41))return _0x1a0b76;_0x1a0b76+=_0x44bb24+_0x236c41+_0x4af360;}return _0x59c9ad['length'];}function findClusterEnd(_0x5dc2d5,_0x4139f3,_0x30bc81,_0x25ae99){const _0x2ada82=_0x297f,_0x43f5cc={'oKfFQ':function(_0x8bc66,_0x24a1cb,_0x45fe04){return _0x8bc66(_0x24a1cb,_0x45fe04);},'hqKhU':function(_0x582877,_0x475ded){return _0x582877+_0x475ded;},'voUAc':function(_0x4fb647,_0x12996a){return _0x4fb647+_0x12996a;}};if(!isUnknownSize(_0x30bc81,_0x25ae99))return _0x4139f3+_0x30bc81;const _0x2eae49=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x4ad377=_0x4139f3;while(_0x4ad377<_0x5dc2d5['length']-0x4){const [_0x1debeb,_0x5a4411]=_0x43f5cc[_0x2ada82(0xd2)](readId,_0x5dc2d5,_0x4ad377);if(_0x2eae49[_0x2ada82(0xb0)](_0x1debeb))return _0x4ad377;const [_0x200ac7,_0x28e5ae]=_0x43f5cc['oKfFQ'](readVint,_0x5dc2d5,_0x4ad377+_0x5a4411);if(_0x43f5cc[_0x2ada82(0xd2)](isUnknownSize,_0x200ac7,_0x28e5ae))return _0x5dc2d5['length'];_0x4ad377+=_0x43f5cc['hqKhU'](_0x43f5cc['voUAc'](_0x5a4411,_0x28e5ae),_0x200ac7);}return _0x5dc2d5['length'];}function extractClusters(_0x344fe3,_0x14d91d){const _0x474171=_0x297f,_0x20dbfe={'JtRvG':function(_0x19a877,_0xcf14a6){return _0x19a877<_0xcf14a6;},'dvZzi':function(_0x343220,_0xa93e77){return _0x343220!==_0xa93e77;},'EfrJm':function(_0x332c2f,_0x3c321e,_0x1748e5){return _0x332c2f(_0x3c321e,_0x1748e5);},'KeZDx':function(_0x56e893,_0x5a9839){return _0x56e893+_0x5a9839;},'DXycE':function(_0xbedbba,_0x48ecc6,_0x21102a){return _0xbedbba(_0x48ecc6,_0x21102a);},'zaNht':function(_0x3b94f9,_0xdc972d,_0x2b1280){return _0x3b94f9(_0xdc972d,_0x2b1280);},'FXoSY':function(_0x48d003,_0x46ed69){return _0x48d003+_0x46ed69;},'KvhrG':function(_0x18d080,_0x4168ae){return _0x18d080===_0x4168ae;},'mESgK':function(_0x411270,_0x1ce125,_0x5d4abe,_0xadcdd5){return _0x411270(_0x1ce125,_0x5d4abe,_0xadcdd5);},'jCJfn':function(_0x45a297,_0x165311){return _0x45a297+_0x165311;},'wFaGS':function(_0x2eb4c2,_0x4c93de){return _0x2eb4c2+_0x4c93de;},'rpmpE':function(_0x5b5192,_0x5314e8){return _0x5b5192===_0x5314e8;},'keTyM':function(_0x26f819,_0x353c71){return _0x26f819+_0x353c71;},'EGzGB':function(_0x15a4f6,_0xa76bb4){return _0x15a4f6>=_0xa76bb4;},'SuAwV':function(_0x7f5106,_0x1534e7,_0x3fd44a){return _0x7f5106(_0x1534e7,_0x3fd44a);},'kCrum':function(_0x703410,_0x5f4ad3){return _0x703410+_0x5f4ad3;}},_0x58ef3c=[],_0x5bb472=Buffer[_0x474171(0xc5)]([0x1f,0x43,0xb6,0x75]);let _0x295550=0x0;while(_0x20dbfe['JtRvG'](_0x295550,_0x344fe3['length'])){const _0x52311c=_0x344fe3['indexOf'](_0x5bb472,_0x295550);if(_0x52311c===-0x1)break;const [_0x49ea9a,_0x3d9257]=readId(_0x344fe3,_0x52311c);if(_0x20dbfe[_0x474171(0xb5)](_0x49ea9a,ID_CLUSTER)){_0x295550=_0x52311c+0x1;continue;}const [_0x4a77e4,_0x1d23cc]=_0x20dbfe[_0x474171(0xab)](readVint,_0x344fe3,_0x20dbfe['KeZDx'](_0x52311c,_0x3d9257)),_0x51349f=_0x52311c+_0x3d9257+_0x1d23cc,_0xb1af3=findClusterEnd(_0x344fe3,_0x51349f,_0x4a77e4,_0x1d23cc);let _0x516e3b=_0x51349f,_0x843a4=0x0,_0x2047de=0x2,_0x172500=![],_0x14f185=Buffer['alloc'](0x0),_0x4ba051=Buffer[_0x474171(0x89)](0x0);while(_0x20dbfe[_0x474171(0xbc)](_0x516e3b,_0xb1af3)){const [_0x11cb22,_0x4fdd56]=_0x20dbfe['DXycE'](readId,_0x344fe3,_0x516e3b),[_0x1e6c47,_0x28cfd6]=_0x20dbfe['zaNht'](readVint,_0x344fe3,_0x20dbfe['FXoSY'](_0x516e3b,_0x4fdd56));if(_0x20dbfe['KvhrG'](_0x11cb22,ID_TIMESTAMP)){_0x843a4=_0x20dbfe['mESgK'](readUint,_0x344fe3,_0x20dbfe['jCJfn'](_0x516e3b,_0x4fdd56)+_0x28cfd6,_0x1e6c47),_0x2047de=_0x1e6c47,_0x172500=!![],_0x14f185=_0x344fe3['slice'](_0x51349f,_0x516e3b);const _0x1395c6=_0x20dbfe[_0x474171(0xa6)](_0x20dbfe[_0x474171(0xca)](_0x516e3b+_0x4fdd56,_0x28cfd6),_0x1e6c47);_0x4ba051=_0x344fe3['slice'](_0x1395c6,_0xb1af3);break;}if(_0x20dbfe[_0x474171(0xb1)](_0x11cb22,ID_CLUSTER))break;if(_0x20dbfe['DXycE'](isUnknownSize,_0x1e6c47,_0x28cfd6))break;_0x516e3b+=_0x20dbfe[_0x474171(0xa6)](_0x4fdd56+_0x28cfd6,_0x1e6c47);}!_0x172500&&(_0x4ba051=_0x344fe3[_0x474171(0xaf)](_0x51349f,_0xb1af3));let _0x26b0ba=_0x843a4;_0x516e3b=_0x51349f;while(_0x516e3b<_0xb1af3){const [_0x5a32b2,_0x3915a3]=_0x20dbfe[_0x474171(0x94)](readId,_0x344fe3,_0x516e3b),[_0x5619ed,_0x46b04e]=readVint(_0x344fe3,_0x20dbfe[_0x474171(0x90)](_0x516e3b,_0x3915a3));if(_0x5a32b2===ID_SIMPLE_BLOCK&&_0x20dbfe['EGzGB'](_0x5619ed,0x4)){const _0x25519b=_0x20dbfe[_0x474171(0xc6)](_0x20dbfe['keTyM'](_0x516e3b,_0x3915a3),_0x46b04e),[,_0x4fe996]=_0x20dbfe[_0x474171(0x94)](readVint,_0x344fe3,_0x25519b),_0x5d2c9b=_0x344fe3[_0x474171(0xbd)](_0x25519b+_0x4fe996),_0x3361b3=_0x20dbfe['KeZDx'](_0x843a4,_0x5d2c9b);if(_0x3361b3>_0x26b0ba)_0x26b0ba=_0x3361b3;}if(_0x5a32b2===ID_CLUSTER)break;if(_0x20dbfe['SuAwV'](isUnknownSize,_0x5619ed,_0x46b04e))break;_0x516e3b+=_0x20dbfe[_0x474171(0x8b)](_0x3915a3,_0x46b04e)+_0x5619ed;}_0x58ef3c['push']({'timestamp':_0x843a4,'maxTicks':_0x26b0ba,'bodyBeforeTimestamp':_0x14f185,'bodyAfterTimestamp':_0x4ba051,'timestampElementSize':_0x2047de}),_0x295550=_0xb1af3;}return _0x58ef3c;}function parseWebm(_0x24f06a){const _0x4e4fea=_0x297f,_0x5eb800={'sFEAo':function(_0x4be242,_0x4a5bc6,_0x31ace0){return _0x4be242(_0x4a5bc6,_0x31ace0);},'OdhEP':function(_0x3034db,_0x44e23e,_0x82c13f){return _0x3034db(_0x44e23e,_0x82c13f);},'CHWmV':function(_0x2e8f7d,_0x418695){return _0x2e8f7d+_0x418695;},'MHztI':function(_0x1e482b,_0x103683){return _0x1e482b+_0x103683;}};let _0x34ab98=0x0;const [,_0x476132]=_0x5eb800[_0x4e4fea(0xd1)](readId,_0x24f06a,_0x34ab98),[_0x217378,_0x9036e1]=_0x5eb800['OdhEP'](readVint,_0x24f06a,_0x5eb800['CHWmV'](_0x34ab98,_0x476132));_0x34ab98+=_0x5eb800['MHztI'](_0x5eb800['CHWmV'](_0x476132,_0x9036e1),_0x217378);const [_0x37c852,_0x2c6d7e]=readId(_0x24f06a,_0x34ab98);if(_0x37c852!==ID_SEGMENT)return null;const [,_0x5178b5]=readVint(_0x24f06a,_0x34ab98+_0x2c6d7e),_0x141e8c=_0x5eb800['CHWmV'](_0x34ab98+_0x2c6d7e,_0x5178b5),_0x2c9186=findTimestampScale(_0x24f06a,_0x141e8c),_0x140c7d=findFirstClusterOffset(_0x24f06a,_0x141e8c),_0x3d81e8=_0x24f06a[_0x4e4fea(0xaf)](0x0,_0x140c7d),_0x5ee4be=extractClusters(_0x24f06a,_0x2c9186);let _0x49bacf=0x0;for(const _0xd83866 of _0x5ee4be){if(_0xd83866['maxTicks']>_0x49bacf)_0x49bacf=_0xd83866['maxTicks'];}return{'header':_0x3d81e8,'clusters':_0x5ee4be,'timestampScale':_0x2c9186,'maxTimestampTicks':_0x49bacf};}function buildCluster(_0x368fc9,_0x4db6c3,_0x116406){const _0xdf03da=_0x297f,_0x5de23c={'tjLbZ':function(_0x2cc76b,_0x23237e){return _0x2cc76b(_0x23237e);}},_0x235cb3=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0x4922d1=Math[_0xdf03da(0x9c)](0x4,uintSize(_0x368fc9)),_0x368e71=Buffer[_0xdf03da(0xb4)]([Buffer[_0xdf03da(0xc5)]([ID_TIMESTAMP]),writeVint(_0x4922d1),writeUint(_0x368fc9,_0x4922d1)]),_0x56962b=Buffer[_0xdf03da(0xb4)]([_0x4db6c3,_0x368e71,_0x116406]),_0x3040a3=_0x5de23c['tjLbZ'](writeVint,_0x56962b[_0xdf03da(0xd0)]);return Buffer['concat']([_0x235cb3,_0x3040a3,_0x56962b]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0xb379c7){const _0x7a9442=_0x297f,_0x125bf1={'JUqDF':function(_0x4fa76e,_0x5a3d9b){return _0x4fa76e+_0x5a3d9b;},'PGdfg':function(_0x3ea704,_0x1e8343,_0x3fa439){return _0x3ea704(_0x1e8343,_0x3fa439);},'owCQo':function(_0x5b32e1,_0x2b0214){return _0x5b32e1+_0x2b0214;},'GeEuu':function(_0x129240,_0x217080){return _0x129240(_0x217080);},'YVcfd':function(_0x41b771,_0xa30100){return _0x41b771<_0xa30100;},'EfOgP':function(_0x19b23f,_0x1d513b){return _0x19b23f+_0x1d513b;},'BlDPM':function(_0x11bcaf,_0x2784c9){return _0x11bcaf+_0x2784c9;},'VdjLh':function(_0x16eff4,_0x202163){return _0x16eff4+_0x202163;},'QwNdn':function(_0x39c967,_0x8b6c94,_0x5184da){return _0x39c967(_0x8b6c94,_0x5184da);}},_0x139a87=Buffer[_0x7a9442(0xc5)](_0xb379c7);let _0x2adbb6=0x0;const [,_0x3e1eb6]=readId(_0x139a87,_0x2adbb6),[_0x5936f2,_0x1b9690]=readVint(_0x139a87,_0x2adbb6+_0x3e1eb6),_0x174686=_0x125bf1['JUqDF'](_0x125bf1[_0x7a9442(0x97)](_0x2adbb6+_0x3e1eb6,_0x1b9690),_0x5936f2),[,_0xc2c054]=readId(_0x139a87,_0x174686),[,_0x45b27b]=_0x125bf1['PGdfg'](readVint,_0x139a87,_0x174686+_0xc2c054),_0x3f8ec6=_0x125bf1[_0x7a9442(0xce)](_0x125bf1['JUqDF'](_0x174686,_0xc2c054),_0x45b27b),_0x1973ae=_0x125bf1['GeEuu'](writeUnknownSizeVint,_0x45b27b);_0x1973ae[_0x7a9442(0xb8)](_0x139a87,_0x174686+_0xc2c054);let _0x5a24c4=_0x3f8ec6;const _0x4b0bfd=Math[_0x7a9442(0x96)](_0x139a87[_0x7a9442(0xd0)],_0x3f8ec6+0x2710);while(_0x125bf1[_0x7a9442(0xd3)](_0x5a24c4,_0x4b0bfd)){const [_0x17ae7f,_0x3ae159]=_0x125bf1['PGdfg'](readId,_0x139a87,_0x5a24c4),[_0x127d02,_0x45dfcb]=_0x125bf1[_0x7a9442(0xb9)](readVint,_0x139a87,_0x5a24c4+_0x3ae159);if(_0x17ae7f===ID_CLUSTER)break;if(_0x125bf1['PGdfg'](isUnknownSize,_0x127d02,_0x45dfcb))break;if(_0x17ae7f===ID_INFO){const _0xf8cbcf=_0x125bf1[_0x7a9442(0x8c)](_0x125bf1[_0x7a9442(0x88)](_0x5a24c4,_0x3ae159),_0x45dfcb),_0x10f011=_0xf8cbcf+_0x127d02,_0x2240a1=[];let _0x50a784=_0xf8cbcf;while(_0x50a784<_0x10f011){const [_0x582a79,_0x3db83b]=readId(_0x139a87,_0x50a784),[_0x2a00c5,_0x5a000d]=_0x125bf1[_0x7a9442(0xb9)](readVint,_0x139a87,_0x125bf1[_0x7a9442(0xcd)](_0x50a784,_0x3db83b)),_0x3bbf60=_0x3db83b+_0x5a000d+_0x2a00c5;_0x582a79!==ID_DURATION&&_0x2240a1[_0x7a9442(0x92)](_0x139a87['slice'](_0x50a784,_0x50a784+_0x3bbf60)),_0x50a784+=_0x3bbf60;}const _0x528273=Buffer[_0x7a9442(0xb4)](_0x2240a1),_0x22a0dd=Buffer['concat']([_0x139a87[_0x7a9442(0xaf)](_0x5a24c4,_0x5a24c4+_0x3ae159),_0x125bf1[_0x7a9442(0xcb)](writeVint,_0x528273[_0x7a9442(0xd0)],_0x45dfcb)]);return Buffer['concat']([_0x139a87['slice'](0x0,_0x5a24c4),_0x22a0dd,_0x528273,_0x139a87[_0x7a9442(0xaf)](_0x10f011)]);}_0x5a24c4+=_0x125bf1[_0x7a9442(0xce)](_0x3ae159+_0x45dfcb,_0x127d02);}return _0x139a87;}export function stitchWebmFiles(_0x15a6cc,_0x398c87){const _0x5234c6=_0x297f,_0x2bd021={'FbhgR':function(_0xbebf1e,_0x41836e){return _0xbebf1e<=_0x41836e;},'MhqyB':function(_0x37037b,_0x46e5ac){return _0x37037b(_0x46e5ac);},'scjaz':function(_0x1ca94f,_0x381d4f,_0x2c6ee7,_0x31ac9b){return _0x1ca94f(_0x381d4f,_0x2c6ee7,_0x31ac9b);},'SOhto':function(_0x1a5b88,_0x42320e,_0x4d4a3c){return _0x1a5b88(_0x42320e,_0x4d4a3c);}};if(_0x2bd021['FbhgR'](_0x15a6cc['length'],0x1))return![];const _0x3d61f8=[];for(const _0x4c3a47 of _0x15a6cc){const _0x5be394=readFileSync(_0x4c3a47),_0x3fd563=_0x2bd021[_0x5234c6(0xc4)](parseWebm,_0x5be394);if(!_0x3fd563||_0x3fd563[_0x5234c6(0xa5)][_0x5234c6(0xd0)]===0x0)return![];_0x3d61f8['push'](_0x3fd563);}const _0x5be689=_0x3d61f8[0x0],_0x57cd7e=rebuildHeaderWithoutDuration(_0x5be689[_0x5234c6(0xc8)]),_0x3ac36c=[_0x57cd7e];let _0x1e6462=0x0;for(let _0x1eda32=0x0;_0x1eda32<_0x3d61f8[_0x5234c6(0xd0)];_0x1eda32++){const _0x419323=_0x3d61f8[_0x1eda32];for(const _0x9323aa of _0x419323['clusters']){const _0x203d63=_0x9323aa[_0x5234c6(0x9f)]+_0x1e6462;_0x3ac36c['push'](_0x2bd021[_0x5234c6(0xb7)](buildCluster,_0x203d63,_0x9323aa[_0x5234c6(0x98)],_0x9323aa['bodyAfterTimestamp']));}const _0x998d05=0x1e;_0x1e6462+=_0x419323[_0x5234c6(0xd6)]+_0x998d05;}return _0x2bd021[_0x5234c6(0xb2)](writeFileSync,_0x398c87,Buffer['concat'](_0x3ac36c)),!![];}if(process['argv'][0x1]?.['endsWith']('stitchWebmFiles.ts')||process[_0x1fb672(0xd7)][0x1]?.[_0x1fb672(0xa2)]('stitchWebmFiles.js')){const args=process[_0x1fb672(0xd7)][_0x1fb672(0xaf)](0x2);args[_0x1fb672(0xd0)]<0x3&&(console[_0x1fb672(0xaa)]('Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>'),process['exit'](0x1));const output=args[args['length']-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x1fb672(0xa8)](_0x1fb672(0xc0)+inputs['length']+_0x1fb672(0x95)+output):console[_0x1fb672(0xa8)](_0x1fb672(0xad));}