@ranger-testing/ranger-cli 2.5.4-alpha.071b7bd-1 → 2.5.4-alpha.a70fc60-4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/mcpBootstrap.js +1 -1
  25. package/build/commands/migrateProfile.js +1 -0
  26. package/build/commands/setup/claude.js +1 -1
  27. package/build/commands/setup/opencode.js +1 -1
  28. package/build/commands/setupCi.js +1 -1
  29. package/build/commands/skillup.js +1 -1
  30. package/build/commands/start.js +1 -1
  31. package/build/commands/status.js +1 -1
  32. package/build/commands/update.js +1 -1
  33. package/build/commands/updateEnv.js +1 -1
  34. package/build/commands/useEnv.js +1 -1
  35. package/build/commands/utils/activeProfile.js +1 -1
  36. package/build/commands/utils/agentEnv.js +1 -1
  37. package/build/commands/utils/browserSessionsApi.js +1 -1
  38. package/build/commands/utils/claudeConfig.js +1 -1
  39. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  40. package/build/commands/utils/claudePlugin.js +1 -1
  41. package/build/commands/utils/cloudProfile.js +1 -0
  42. package/build/commands/utils/cloudProfileSession.js +1 -0
  43. package/build/commands/utils/crypto.js +1 -1
  44. package/build/commands/utils/desirePathLog.js +1 -1
  45. package/build/commands/utils/deviceAuth.js +1 -1
  46. package/build/commands/utils/environment.js +1 -1
  47. package/build/commands/utils/featureApi.js +1 -1
  48. package/build/commands/utils/fixWebmDuration.js +1 -1
  49. package/build/commands/utils/gitTracked.js +1 -0
  50. package/build/commands/utils/keychain.js +1 -1
  51. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  52. package/build/commands/utils/matchAuthEnvironment.js +1 -0
  53. package/build/commands/utils/mcpImageBase64.js +1 -1
  54. package/build/commands/utils/model.js +1 -1
  55. package/build/commands/utils/opencodeConfig.js +1 -1
  56. package/build/commands/utils/playwrightCli.js +1 -1
  57. package/build/commands/utils/profileMessages.js +1 -1
  58. package/build/commands/utils/profileSetupBanner.js +1 -1
  59. package/build/commands/utils/projectsConfig.js +1 -0
  60. package/build/commands/utils/rangerConfig.js +1 -1
  61. package/build/commands/utils/rangerRoot.js +1 -1
  62. package/build/commands/utils/resolveProfileContext.js +1 -0
  63. package/build/commands/utils/resolveProfileUrl.js +1 -0
  64. package/build/commands/utils/retry.js +1 -1
  65. package/build/commands/utils/sessionCache.js +1 -1
  66. package/build/commands/utils/settings.js +1 -1
  67. package/build/commands/utils/skillContent.js +1 -1
  68. package/build/commands/utils/skills.js +1 -1
  69. package/build/commands/utils/stitchWebmFiles.js +1 -1
  70. package/build/commands/utils/telemetry.js +1 -1
  71. package/build/commands/utils/tokenRefresh.js +1 -1
  72. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  73. package/build/commands/utils/userApi.js +1 -1
  74. package/build/commands/utils/version.js +1 -1
  75. package/build/commands/verifyFeature.js +1 -1
  76. package/build/commands/verifyFeatureCli.js +1 -1
  77. package/build/skills/ranger/SKILL.md +1 -1
  78. package/package.json +6 -2
@@ -1 +1 @@
1
- (function(_0x3c7e37,_0x3bcc22){const _0x22dad0=_0x1366,_0x3e108f=_0x3c7e37();while(!![]){try{const _0xe8d0cb=parseInt(_0x22dad0(0x88))/0x1*(-parseInt(_0x22dad0(0x85))/0x2)+parseInt(_0x22dad0(0x8f))/0x3*(-parseInt(_0x22dad0(0x8a))/0x4)+parseInt(_0x22dad0(0x8d))/0x5*(-parseInt(_0x22dad0(0x8e))/0x6)+-parseInt(_0x22dad0(0x87))/0x7*(-parseInt(_0x22dad0(0x84))/0x8)+parseInt(_0x22dad0(0x89))/0x9*(parseInt(_0x22dad0(0x92))/0xa)+parseInt(_0x22dad0(0x83))/0xb+parseInt(_0x22dad0(0x91))/0xc;if(_0xe8d0cb===_0x3bcc22)break;else _0x3e108f['push'](_0x3e108f['shift']());}catch(_0x567221){_0x3e108f['push'](_0x3e108f['shift']());}}}(_0x135b,0xbae60));const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;export async function withRetry(_0x4e955c,_0x234cd1){const _0x165e90=_0x1366,_0x1f3425={'Fzear':function(_0x33e303,_0x26aec3){return _0x33e303 instanceof _0x26aec3;},'rNDUq':function(_0x31034b,_0x116a63){return _0x31034b+_0x116a63;}},_0x58146f=_0x234cd1?.['maxRetries']??DEFAULT_MAX_RETRIES,_0x4bfbb3=_0x234cd1?.[_0x165e90(0x90)]??DEFAULT_BASE_DELAY_MS;let _0x2ddaab;for(let _0xdb92fa=0x0;_0xdb92fa<=_0x58146f;_0xdb92fa++){try{return await _0x4e955c();}catch(_0x3396a2){_0x2ddaab=_0x1f3425[_0x165e90(0x86)](_0x3396a2,Error)?_0x3396a2:new Error(String(_0x3396a2));if(_0xdb92fa<_0x58146f){const _0x1263b7=_0x4bfbb3*Math['pow'](0x2,_0xdb92fa);_0x234cd1?.['label']&&console['error'](_0x234cd1['label']+_0x165e90(0x8c)+(_0xdb92fa+0x1)+'/'+_0x1f3425['rNDUq'](_0x58146f,0x1)+_0x165e90(0x8b)+_0x1263b7+'ms...'),await new Promise(_0x39168b=>setTimeout(_0x39168b,_0x1263b7));}}}throw _0x2ddaab;}function _0x1366(_0x34ec88,_0x341709){_0x34ec88=_0x34ec88-0x83;const _0x135b24=_0x135b();let _0x136636=_0x135b24[_0x34ec88];return _0x136636;}function _0x135b(){const _0x1929a5=['10896556POelKP','78928FacXtS','873640XJSGad','Fzear','847TIDpty','1VKRzCV','225exRJmz','4HUTVVe','),\x20retrying\x20in\x20','\x20failed\x20(attempt\x20','5krdHkQ','1164156jBccHt','3997977uUvKUU','baseDelayMs','484608UQUcbX','201710JxnqFW'];_0x135b=function(){return _0x1929a5;};return _0x135b();}
1
+ (function(_0x21fe29,_0x10e599){const _0x24bd4c=_0x1f18,_0x3157bf=_0x21fe29();while(!![]){try{const _0x45c535=parseInt(_0x24bd4c(0x1b8))/0x1*(parseInt(_0x24bd4c(0x1ba))/0x2)+parseInt(_0x24bd4c(0x1bd))/0x3+parseInt(_0x24bd4c(0x1b6))/0x4+-parseInt(_0x24bd4c(0x1b7))/0x5+parseInt(_0x24bd4c(0x1b3))/0x6*(parseInt(_0x24bd4c(0x1b4))/0x7)+-parseInt(_0x24bd4c(0x1b1))/0x8*(-parseInt(_0x24bd4c(0x1af))/0x9)+-parseInt(_0x24bd4c(0x1ad))/0xa*(parseInt(_0x24bd4c(0x1bb))/0xb);if(_0x45c535===_0x10e599)break;else _0x3157bf['push'](_0x3157bf['shift']());}catch(_0x338ebb){_0x3157bf['push'](_0x3157bf['shift']());}}}(_0x431f,0x75d86));function _0x431f(){const _0x1fad23=['5577366mjmuWL','7hdjybt','TcHjh','2073428MaBpHF','2756795zySuZR','3KOEeQH','label','59914KnvqtM','8190809wmboHq','OBTNA','396006bgkDpE','baseDelayMs','20LgBqZQ','ms...','6750sJpalY','maxRetries','9104mrXWvH','\x20failed\x20(attempt\x20'];_0x431f=function(){return _0x1fad23;};return _0x431f();}const DEFAULT_MAX_RETRIES=0x3,DEFAULT_BASE_DELAY_MS=0x1f4;function _0x1f18(_0x50b05e,_0x28c6b0){_0x50b05e=_0x50b05e-0x1ad;const _0x431f91=_0x431f();let _0x1f18e5=_0x431f91[_0x50b05e];return _0x1f18e5;}export async function withRetry(_0x453206,_0x878ce8){const _0x1d8f34=_0x1f18,_0x58939a={'OBTNA':function(_0x2209af,_0x52c141){return _0x2209af<=_0x52c141;},'TcHjh':function(_0x1497c4,_0xa47254){return _0x1497c4 instanceof _0xa47254;},'urPPE':function(_0x201cc7,_0x1aebe6){return _0x201cc7<_0x1aebe6;},'xZdCq':function(_0x38177a,_0x3e2e38){return _0x38177a+_0x3e2e38;}},_0x484a0b=_0x878ce8?.[_0x1d8f34(0x1b0)]??DEFAULT_MAX_RETRIES,_0x4c3e9d=_0x878ce8?.[_0x1d8f34(0x1be)]??DEFAULT_BASE_DELAY_MS;let _0x5d6d69;for(let _0x3024f6=0x0;_0x58939a[_0x1d8f34(0x1bc)](_0x3024f6,_0x484a0b);_0x3024f6++){try{return await _0x453206();}catch(_0x115ad1){_0x5d6d69=_0x58939a[_0x1d8f34(0x1b5)](_0x115ad1,Error)?_0x115ad1:new Error(String(_0x115ad1));if(_0x58939a['urPPE'](_0x3024f6,_0x484a0b)){const _0x1a3b4a=_0x4c3e9d*Math['pow'](0x2,_0x3024f6);_0x878ce8?.['label']&&console['error'](_0x878ce8[_0x1d8f34(0x1b9)]+_0x1d8f34(0x1b2)+_0x58939a['xZdCq'](_0x3024f6,0x1)+'/'+(_0x484a0b+0x1)+'),\x20retrying\x20in\x20'+_0x1a3b4a+_0x1d8f34(0x1ae)),await new Promise(_0x50e60c=>setTimeout(_0x50e60c,_0x1a3b4a));}}}throw _0x5d6d69;}
@@ -1 +1 @@
1
- const _0x1163a4=_0x9a3d;(function(_0x3d7113,_0x57e34d){const _0x1a2570=_0x9a3d,_0x302edd=_0x3d7113();while(!![]){try{const _0x1a3996=-parseInt(_0x1a2570(0x12a))/0x1+-parseInt(_0x1a2570(0x154))/0x2+parseInt(_0x1a2570(0x14c))/0x3+parseInt(_0x1a2570(0x153))/0x4+-parseInt(_0x1a2570(0x158))/0x5*(-parseInt(_0x1a2570(0x15a))/0x6)+-parseInt(_0x1a2570(0x152))/0x7+-parseInt(_0x1a2570(0x150))/0x8*(parseInt(_0x1a2570(0x13f))/0x9);if(_0x1a3996===_0x57e34d)break;else _0x302edd['push'](_0x302edd['shift']());}catch(_0x589c46){_0x302edd['push'](_0x302edd['shift']());}}}(_0x1217,0xdbbe5));import*as _0x6bef61 from'fs';import*as _0x1ec0ae from'path';import*as _0x24d619 from'os';import{execSync}from'child_process';const CACHE_FILE=_0x1ec0ae[_0x1163a4(0x12c)](_0x24d619['homedir'](),'.claude',_0x1163a4(0x13a));function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x4c7b5c=_0x1163a4,_0x1fc4c5={'YJxWd':'utf-8','zCDag':function(_0x105c17){return _0x105c17();}};try{if(_0x6bef61['existsSync'](CACHE_FILE)){const _0x59e428=JSON['parse'](_0x6bef61[_0x4c7b5c(0x13c)](CACHE_FILE,_0x1fc4c5['YJxWd']));return{'version':0x3,'sessions':_0x59e428['sessions']||{},'branches':_0x59e428[_0x4c7b5c(0x142)]||{},'lastEnabledSessionClearedAt':_0x59e428[_0x4c7b5c(0x135)]};}}catch{}return _0x1fc4c5['zCDag'](createEmptyCache);}function saveCache(_0x30a335){const _0x1ea24e=_0x1163a4;try{const _0x305b3b=_0x1ec0ae['dirname'](CACHE_FILE);!_0x6bef61[_0x1ea24e(0x14f)](_0x305b3b)&&_0x6bef61['mkdirSync'](_0x305b3b,{'recursive':!![]}),_0x6bef61[_0x1ea24e(0x157)](CACHE_FILE,JSON[_0x1ea24e(0x147)](_0x30a335,null,0x2));}catch{}}export function getCurrentBranch(){const _0x5b7f5a=_0x1163a4,_0x5b0632={'KMsJn':function(_0x426cd1,_0x28d320,_0x3d6373){return _0x426cd1(_0x28d320,_0x3d6373);},'zViLq':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','oToFC':'utf-8','ebXVS':_0x5b7f5a(0x12b)};try{const _0x55fb5d=_0x5b0632[_0x5b7f5a(0x146)](execSync,_0x5b0632['zViLq'],{'encoding':_0x5b0632[_0x5b7f5a(0x12d)],'stdio':['pipe',_0x5b7f5a(0x137),'pipe']})[_0x5b7f5a(0x129)]();if(!_0x55fb5d||_0x55fb5d===_0x5b0632['ebXVS'])return null;return _0x55fb5d;}catch{return null;}}export function enableBranch(_0x2daa8b){const _0x168e38=_0x1163a4,_0xb043e2={'bQqUF':function(_0x5f264a,_0x4bbaa8){return _0x5f264a(_0x4bbaa8);}},_0x69833d=loadCache();_0x69833d[_0x168e38(0x142)][_0x2daa8b]=!![],_0xb043e2[_0x168e38(0x155)](saveCache,_0x69833d);}export function disableBranch(_0x56bf72){const _0x4364e5=_0x1163a4,_0x56ca60={'FAYZB':function(_0x357358){return _0x357358();}},_0x58c107=_0x56ca60[_0x4364e5(0x131)](loadCache);delete _0x58c107['branches'][_0x56bf72],saveCache(_0x58c107);}export function isBranchEnabled(_0x3d7a9e){const _0x4f94c4=_0x1163a4,_0x50cca9={'rjMDT':function(_0x3f374b){return _0x3f374b();}},_0x1021e1=_0x50cca9['rjMDT'](loadCache);return _0x1021e1[_0x4f94c4(0x142)][_0x3d7a9e]===!![];}function getOrCreateSession(_0x2b730c,_0x3aeeff){const _0x48dcd2=_0x1163a4;return!_0x2b730c[_0x48dcd2(0x13b)][_0x3aeeff]&&(_0x2b730c[_0x48dcd2(0x13b)][_0x3aeeff]={}),_0x2b730c['sessions'][_0x3aeeff];}export function enableSession(_0x4b2144){const _0x428792=_0x1163a4,_0x33ea3d={'wuGZQ':function(_0x54476a){return _0x54476a();},'kRsXA':_0x428792(0x156),'jByfv':function(_0x4d3208,_0x20f0b1){return _0x4d3208!==_0x20f0b1;},'aWAEF':function(_0x568b8b,_0x40b3cb){return _0x568b8b(_0x40b3cb);}},_0x1cda8a=_0x33ea3d[_0x428792(0x132)](loadCache),_0x584868=getOrCreateSession(_0x1cda8a,_0x4b2144);_0x584868[_0x428792(0x14b)]=!![];const _0xa02b49=_0x33ea3d[_0x428792(0x132)](getCurrentBranch);_0xa02b49&&_0xa02b49!==_0x33ea3d['kRsXA']&&_0x33ea3d[_0x428792(0x12f)](_0xa02b49,'master')&&(_0x1cda8a[_0x428792(0x142)][_0xa02b49]=!![],_0x584868['currentBranch']=_0xa02b49),_0x33ea3d[_0x428792(0x134)](saveCache,_0x1cda8a);}export function isSessionEnabled(_0x1f8e37){const _0x1cca79=_0x1163a4,_0x37f827={'oeueB':function(_0x35fe57,_0x572933){return _0x35fe57===_0x572933;},'KUJsv':function(_0xd03eed,_0x5ab3ef){return _0xd03eed||_0x5ab3ef;}},_0x2b2996=loadCache(),_0x5a417d=getCurrentBranch();if(!_0x5a417d||_0x5a417d===_0x1cca79(0x156)||_0x5a417d==='master')return _0x37f827[_0x1cca79(0x159)](_0x2b2996['sessions'][_0x1f8e37]?.[_0x1cca79(0x14b)],!![]);const _0x48d389=_0x37f827[_0x1cca79(0x159)](_0x2b2996['branches'][_0x5a417d],!![]),_0x16e13d=_0x2b2996[_0x1cca79(0x13b)][_0x1f8e37]?.['enabled']===!![];return _0x37f827['KUJsv'](_0x48d389,_0x16e13d);}export function disableSession(_0x33efbc){const _0x5209f8=loadCache(),_0x5751ed=getOrCreateSession(_0x5209f8,_0x33efbc);_0x5751ed['enabled']=![],saveCache(_0x5209f8);}export function updateBranchTracking(_0x55da2d){const _0x5d3012=_0x1163a4,_0x3b410b={'RESIY':function(_0x25df92){return _0x25df92();},'BCjqL':function(_0x4f0a92){return _0x4f0a92();},'oisUE':function(_0x31e318,_0x24b64c){return _0x31e318===_0x24b64c;}},_0x1f641f=_0x3b410b[_0x5d3012(0x14a)](loadCache),_0x581a25=_0x1f641f[_0x5d3012(0x13b)][_0x55da2d];if(!_0x581a25?.[_0x5d3012(0x14b)])return;const _0x1edc90=_0x3b410b[_0x5d3012(0x145)](getCurrentBranch);if(!_0x1edc90||_0x1edc90===_0x5d3012(0x156)||_0x3b410b['oisUE'](_0x1edc90,'master'))return;_0x581a25['currentBranch']!==_0x1edc90&&(_0x1f641f['branches'][_0x1edc90]=!![],_0x581a25['currentBranch']=_0x1edc90,saveCache(_0x1f641f));}export function initBranchTracking(_0x34bf65){const _0x428bec=_0x1163a4,_0x450d50={'xXfZG':function(_0x4b7aa2){return _0x4b7aa2();},'TTvpD':function(_0x2f07ee,_0xda5a1f){return _0x2f07ee===_0xda5a1f;},'RJoRJ':_0x428bec(0x156),'VSrFv':_0x428bec(0x13d),'XCpET':function(_0x2bd4cc,_0x200549){return _0x2bd4cc===_0x200549;},'PIfgs':function(_0x15db55,_0x45fc4c){return _0x15db55(_0x45fc4c);}},_0x395543=_0x450d50['xXfZG'](loadCache),_0x3b96b1=getCurrentBranch();if(!_0x3b96b1||_0x450d50[_0x428bec(0x13e)](_0x3b96b1,_0x450d50[_0x428bec(0x151)])||_0x3b96b1===_0x450d50[_0x428bec(0x128)])return;if(_0x450d50[_0x428bec(0x148)](_0x395543[_0x428bec(0x142)][_0x3b96b1],!![])){const _0x545d87=getOrCreateSession(_0x395543,_0x34bf65);_0x545d87['enabled']=!![],_0x545d87['currentBranch']=_0x3b96b1,_0x450d50['PIfgs'](saveCache,_0x395543);}}function _0x9a3d(_0x902526,_0x506972){_0x902526=_0x902526-0x128;const _0x121716=_0x1217();let _0x9a3d5=_0x121716[_0x902526];return _0x9a3d5;}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;function _0x1217(){const _0x354edc=['wuGZQ','registeredAt','aWAEF','lastEnabledSessionClearedAt','yGFGh','pipe','Mlshk','QadGs','.ranger_cache.json','sessions','readFileSync','master','TTvpD','4442598HLkzAy','toISOString','currentBranch','branches','clear','dQwNl','BCjqL','KMsJn','stringify','XCpET','featureId','RESIY','enabled','3097122KbPUhv','ggBJc','qAGFr','existsSync','8gbAgEf','RJoRJ','3530653KULULB','166600cXpREO','404676hlTXMs','bQqUF','main','writeFileSync','5iFlLNy','oeueB','10093026jEhIEs','VLXIJ','VSrFv','trim','655787UsIrIb','HEAD','join','oToFC','lastPlanReminderAt','jByfv','now','FAYZB'];_0x1217=function(){return _0x354edc;};return _0x1217();}export function recordEnabledSessionCleared(_0xa82821){const _0x9e0f7f=_0x1163a4,_0x1e9a7a={'dQwNl':function(_0x4cb970){return _0x4cb970();},'Qgzzv':function(_0xbabfca,_0x42f167){return _0xbabfca(_0x42f167);}},_0x50f5fb=_0x1e9a7a[_0x9e0f7f(0x144)](loadCache),_0x5b4607=_0x50f5fb[_0x9e0f7f(0x13b)][_0xa82821];_0x5b4607?.[_0x9e0f7f(0x14b)]&&(_0x50f5fb[_0x9e0f7f(0x135)]=Date[_0x9e0f7f(0x130)](),_0x1e9a7a['Qgzzv'](saveCache,_0x50f5fb));}export function shouldAutoEnableAfterClear(_0x274258){const _0x5a718c=_0x1163a4,_0x17b54d={'dNfAl':function(_0x304d17,_0x1637e9){return _0x304d17!==_0x1637e9;},'ZNAHf':function(_0x52f0cc){return _0x52f0cc();},'NqBrL':function(_0x4fba2c,_0x199705){return _0x4fba2c-_0x199705;}};if(_0x17b54d['dNfAl'](_0x274258,_0x5a718c(0x143)))return![];const _0x415311=_0x17b54d['ZNAHf'](loadCache),_0x3dd4d7=_0x415311[_0x5a718c(0x135)];if(!_0x3dd4d7)return![];const _0x1d3393=_0x17b54d['NqBrL'](Date['now'](),_0x3dd4d7);return _0x1d3393<=CLEAR_AUTO_ENABLE_WINDOW_MS;}export function autoEnableAfterClear(_0x270534){const _0x2ad4cb=_0x1163a4,_0x8cc36b={'WvgDD':function(_0x47477a){return _0x47477a();},'QadGs':function(_0xf68932){return _0xf68932();},'pDbuF':function(_0x6967a2,_0x5914e5){return _0x6967a2!==_0x5914e5;},'uSVnV':_0x2ad4cb(0x156)},_0x5ac978=_0x8cc36b['WvgDD'](loadCache),_0x2fa05b=getOrCreateSession(_0x5ac978,_0x270534);_0x2fa05b[_0x2ad4cb(0x14b)]=!![];const _0x2e83a7=_0x8cc36b[_0x2ad4cb(0x139)](getCurrentBranch);_0x2e83a7&&_0x8cc36b['pDbuF'](_0x2e83a7,_0x8cc36b['uSVnV'])&&_0x2e83a7!=='master'&&(_0x2fa05b[_0x2ad4cb(0x141)]=_0x2e83a7),delete _0x5ac978['lastEnabledSessionClearedAt'],saveCache(_0x5ac978);}export function registerSession(_0x12b5ea,_0x2b19ae){const _0x4bff65=_0x1163a4,_0xcd4e57={'Mlshk':function(_0x1f4199){return _0x1f4199();},'VgidW':function(_0x546545,_0x3a5d73,_0x432974){return _0x546545(_0x3a5d73,_0x432974);},'nhKwO':function(_0x3845df,_0x30f923){return _0x3845df(_0x30f923);}},_0xa01ac6=_0xcd4e57[_0x4bff65(0x138)](loadCache),_0x39eeef=_0xcd4e57['VgidW'](getOrCreateSession,_0xa01ac6,_0x12b5ea);_0x39eeef[_0x4bff65(0x149)]=_0x2b19ae,_0x39eeef[_0x4bff65(0x133)]=new Date()[_0x4bff65(0x140)](),_0xcd4e57['nhKwO'](saveCache,_0xa01ac6);}export function getSessionEntry(_0x7b35e9){const _0x51fd41=_0x1163a4,_0x3a42cf=loadCache(),_0x3338f4=_0x3a42cf[_0x51fd41(0x13b)][_0x7b35e9];if(_0x3338f4?.['featureId']&&_0x3338f4?.['registeredAt'])return{'featureId':_0x3338f4['featureId'],'registeredAt':_0x3338f4['registeredAt']};return null;}export function unregisterSession(_0x5bd4a9){const _0x58b274=_0x1163a4,_0x4c7ec0=loadCache(),_0x4c533a=_0x4c7ec0[_0x58b274(0x13b)][_0x5bd4a9];_0x4c533a&&(delete _0x4c533a[_0x58b274(0x149)],delete _0x4c533a['registeredAt'],saveCache(_0x4c7ec0));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x1d7c46){const _0x57ace0=_0x1163a4,_0x52dad7={'qAGFr':function(_0x5f0a60,_0x2c556f){return _0x5f0a60>=_0x2c556f;}},_0x4ae304=loadCache(),_0x3541e0=getOrCreateSession(_0x4ae304,_0x1d7c46),_0x67efa9=_0x3541e0['lastPlanReminderAt']||0x0,_0x1a2264=Date[_0x57ace0(0x130)]();if(_0x52dad7[_0x57ace0(0x14e)](_0x1a2264-_0x67efa9,PLAN_REMINDER_INTERVAL_MS))return _0x3541e0[_0x57ace0(0x12e)]=_0x1a2264,saveCache(_0x4ae304),!![];return![];}export function shouldShowStopReminder(_0x429f5d){const _0x27d630=_0x1163a4,_0x11e7f7={'ggBJc':function(_0x568535,_0x50b339,_0x24fd2a){return _0x568535(_0x50b339,_0x24fd2a);},'VLXIJ':function(_0x1af084,_0x1340ab){return _0x1af084>=_0x1340ab;},'yGFGh':function(_0x5b66f9,_0x3d9b5e){return _0x5b66f9-_0x3d9b5e;}},_0x27acab=loadCache(),_0x3abf9a=_0x11e7f7[_0x27d630(0x14d)](getOrCreateSession,_0x27acab,_0x429f5d),_0x47210b=_0x3abf9a['lastStopReminderAt']||0x0,_0x34669d=Date[_0x27d630(0x130)]();if(_0x11e7f7[_0x27d630(0x15b)](_0x11e7f7[_0x27d630(0x136)](_0x34669d,_0x47210b),STOP_REMINDER_INTERVAL_MS))return _0x3abf9a['lastStopReminderAt']=_0x34669d,saveCache(_0x27acab),!![];return![];}export function hasSessionBeenPrompted(_0x27b3d4){const _0x125a81=loadCache();return _0x125a81['sessions'][_0x27b3d4]?.['prompted']===!![];}export function markSessionPrompted(_0x492b0b){const _0x6940ac={'yUgIC':function(_0x16a786,_0x4f37eb){return _0x16a786(_0x4f37eb);}},_0x112249=loadCache(),_0x4cf3c5=getOrCreateSession(_0x112249,_0x492b0b);_0x4cf3c5['prompted']=!![],_0x6940ac['yUgIC'](saveCache,_0x112249);}export function getCacheFile(){return CACHE_FILE;}
1
+ const _0xe64401=_0x6942;(function(_0x293251,_0x2aee33){const _0x37a1e8=_0x6942,_0x8e8f80=_0x293251();while(!![]){try{const _0x4deb69=parseInt(_0x37a1e8(0xc9))/0x1+parseInt(_0x37a1e8(0xc4))/0x2+parseInt(_0x37a1e8(0x9b))/0x3+-parseInt(_0x37a1e8(0xa1))/0x4*(-parseInt(_0x37a1e8(0xaa))/0x5)+parseInt(_0x37a1e8(0xa9))/0x6*(parseInt(_0x37a1e8(0xbd))/0x7)+parseInt(_0x37a1e8(0xb3))/0x8+-parseInt(_0x37a1e8(0x9a))/0x9;if(_0x4deb69===_0x2aee33)break;else _0x8e8f80['push'](_0x8e8f80['shift']());}catch(_0x4363ca){_0x8e8f80['push'](_0x8e8f80['shift']());}}}(_0x47a8,0x34f87));import*as _0x5d2aa5 from'fs';import*as _0x384bb5 from'path';import*as _0x22a86d from'os';import{execSync}from'child_process';const CACHE_FILE=_0x384bb5[_0xe64401(0xaf)](_0x22a86d['homedir'](),'.claude','.ranger_cache.json');function createEmptyCache(){return{'version':0x3,'sessions':{},'branches':{}};}function loadCache(){const _0x4244d5=_0xe64401,_0x472e64={'bMLgG':function(_0x425b68){return _0x425b68();}};try{if(_0x5d2aa5['existsSync'](CACHE_FILE)){const _0x5e7f5d=JSON[_0x4244d5(0xbf)](_0x5d2aa5['readFileSync'](CACHE_FILE,_0x4244d5(0xb9)));return{'version':0x3,'sessions':_0x5e7f5d[_0x4244d5(0x98)]||{},'branches':_0x5e7f5d['branches']||{},'lastEnabledSessionClearedAt':_0x5e7f5d['lastEnabledSessionClearedAt']};}}catch{}return _0x472e64['bMLgG'](createEmptyCache);}function saveCache(_0x276e41){const _0x19bac6=_0xe64401;try{const _0x27392a=_0x384bb5[_0x19bac6(0xc8)](CACHE_FILE);!_0x5d2aa5[_0x19bac6(0x9c)](_0x27392a)&&_0x5d2aa5['mkdirSync'](_0x27392a,{'recursive':!![]}),_0x5d2aa5[_0x19bac6(0xc5)](CACHE_FILE,JSON[_0x19bac6(0xa6)](_0x276e41,null,0x2));}catch{}}export function getCurrentBranch(){const _0x3eb0b3=_0xe64401,_0x3216cc={'fjTsD':'git\x20rev-parse\x20--abbrev-ref\x20HEAD','eEWuV':_0x3eb0b3(0xb9),'PhVBR':'pipe'};try{const _0x1f85f4=execSync(_0x3216cc[_0x3eb0b3(0xb5)],{'encoding':_0x3216cc['eEWuV'],'stdio':[_0x3216cc[_0x3eb0b3(0xb7)],_0x3216cc[_0x3eb0b3(0xb7)],_0x3eb0b3(0xb6)]})[_0x3eb0b3(0xac)]();if(!_0x1f85f4||_0x1f85f4==='HEAD')return null;return _0x1f85f4;}catch{return null;}}export function enableBranch(_0x5aece7){const _0xf04021=loadCache();_0xf04021['branches'][_0x5aece7]=!![],saveCache(_0xf04021);}export function disableBranch(_0x24f9ba){const _0xdae885=_0xe64401,_0x27b259=loadCache();delete _0x27b259[_0xdae885(0xa3)][_0x24f9ba],saveCache(_0x27b259);}export function isBranchEnabled(_0xbc2ae){const _0x293af8=_0xe64401,_0x114e68={'LbaOo':function(_0x2996b3){return _0x2996b3();}},_0x4634a1=_0x114e68['LbaOo'](loadCache);return _0x4634a1[_0x293af8(0xa3)][_0xbc2ae]===!![];}function getOrCreateSession(_0x565b96,_0x407060){return!_0x565b96['sessions'][_0x407060]&&(_0x565b96['sessions'][_0x407060]={}),_0x565b96['sessions'][_0x407060];}export function enableSession(_0x5444b7){const _0x4e911e=_0xe64401,_0x56ff5e={'mpMak':function(_0xed335f){return _0xed335f();},'KpJwd':function(_0x14ef29,_0x296745){return _0x14ef29!==_0x296745;},'ifhvM':'main','oqEGy':function(_0x459390,_0x5486e7){return _0x459390(_0x5486e7);}},_0x204b57=_0x56ff5e['mpMak'](loadCache),_0x31c430=getOrCreateSession(_0x204b57,_0x5444b7);_0x31c430['enabled']=!![];const _0x35d13f=getCurrentBranch();_0x35d13f&&_0x56ff5e[_0x4e911e(0xc6)](_0x35d13f,_0x56ff5e[_0x4e911e(0xc0)])&&_0x35d13f!==_0x4e911e(0xb8)&&(_0x204b57[_0x4e911e(0xa3)][_0x35d13f]=!![],_0x31c430['currentBranch']=_0x35d13f),_0x56ff5e['oqEGy'](saveCache,_0x204b57);}export function isSessionEnabled(_0x56a67f){const _0xb3fd5b=_0xe64401,_0x2536d6={'gaiCX':function(_0x18ac99){return _0x18ac99();},'RXEgp':function(_0x22a780,_0x56c414){return _0x22a780===_0x56c414;},'ymajo':function(_0x4da143,_0x2db52a){return _0x4da143===_0x2db52a;},'JnCCa':function(_0x1afa41,_0x35b15e){return _0x1afa41===_0x35b15e;},'RfEFr':function(_0x340741,_0x5be512){return _0x340741||_0x5be512;}},_0x53b10e=loadCache(),_0x2ea36f=_0x2536d6[_0xb3fd5b(0xb0)](getCurrentBranch);if(!_0x2ea36f||_0x2536d6['RXEgp'](_0x2ea36f,'main')||_0x2536d6[_0xb3fd5b(0xca)](_0x2ea36f,'master'))return _0x53b10e[_0xb3fd5b(0x98)][_0x56a67f]?.[_0xb3fd5b(0x95)]===!![];const _0x582ddb=_0x2536d6['RXEgp'](_0x53b10e[_0xb3fd5b(0xa3)][_0x2ea36f],!![]),_0x427fe6=_0x2536d6[_0xb3fd5b(0x9e)](_0x53b10e[_0xb3fd5b(0x98)][_0x56a67f]?.[_0xb3fd5b(0x95)],!![]);return _0x2536d6[_0xb3fd5b(0xc3)](_0x582ddb,_0x427fe6);}export function disableSession(_0x17c3ce){const _0x30aad2=_0xe64401,_0x1cb6e2={'SCuRg':function(_0x2be6a3){return _0x2be6a3();},'ZVXtp':function(_0x5cc558,_0x2ac0f1,_0x2699db){return _0x5cc558(_0x2ac0f1,_0x2699db);},'jkYkT':function(_0x4f75be,_0x53bcc1){return _0x4f75be(_0x53bcc1);}},_0x45b361=_0x1cb6e2[_0x30aad2(0xa7)](loadCache),_0x51339b=_0x1cb6e2[_0x30aad2(0xa4)](getOrCreateSession,_0x45b361,_0x17c3ce);_0x51339b['enabled']=![],_0x1cb6e2[_0x30aad2(0xba)](saveCache,_0x45b361);}export function updateBranchTracking(_0x55db73){const _0x10aafd=_0xe64401,_0x405ac7={'AqQnM':function(_0x2863ec){return _0x2863ec();},'MPPXc':function(_0x4bd2c5,_0x31839e){return _0x4bd2c5===_0x31839e;},'wqtfU':_0x10aafd(0xbb),'GAGPr':'master','iHKNy':function(_0x5a715c,_0x94d6ed){return _0x5a715c!==_0x94d6ed;},'xkHcv':function(_0x41c3b1,_0x2392db){return _0x41c3b1(_0x2392db);}},_0x4b9f27=loadCache(),_0x5de611=_0x4b9f27[_0x10aafd(0x98)][_0x55db73];if(!_0x5de611?.['enabled'])return;const _0x53aa9b=_0x405ac7['AqQnM'](getCurrentBranch);if(!_0x53aa9b||_0x405ac7['MPPXc'](_0x53aa9b,_0x405ac7[_0x10aafd(0xa5)])||_0x53aa9b===_0x405ac7[_0x10aafd(0xbc)])return;_0x405ac7['iHKNy'](_0x5de611[_0x10aafd(0x9f)],_0x53aa9b)&&(_0x4b9f27['branches'][_0x53aa9b]=!![],_0x5de611[_0x10aafd(0x9f)]=_0x53aa9b,_0x405ac7[_0x10aafd(0x9d)](saveCache,_0x4b9f27));}export function initBranchTracking(_0x2e3bd5){const _0x1a6dd7=_0xe64401,_0x41c25e={'EsrPY':function(_0x446c2a){return _0x446c2a();},'jNlTj':function(_0x5675f5,_0x4e138d){return _0x5675f5===_0x4e138d;},'SmBGm':_0x1a6dd7(0xb8),'TeiJx':function(_0x171eb6,_0x42b53c,_0x1d48dd){return _0x171eb6(_0x42b53c,_0x1d48dd);}},_0x12e2cb=_0x41c25e['EsrPY'](loadCache),_0x46b045=getCurrentBranch();if(!_0x46b045||_0x41c25e['jNlTj'](_0x46b045,_0x1a6dd7(0xbb))||_0x46b045===_0x41c25e['SmBGm'])return;if(_0x12e2cb['branches'][_0x46b045]===!![]){const _0x38ba76=_0x41c25e['TeiJx'](getOrCreateSession,_0x12e2cb,_0x2e3bd5);_0x38ba76[_0x1a6dd7(0x95)]=!![],_0x38ba76[_0x1a6dd7(0x9f)]=_0x46b045,saveCache(_0x12e2cb);}}const CLEAR_AUTO_ENABLE_WINDOW_MS=0x1388;function _0x6942(_0x55ad94,_0x49e518){_0x55ad94=_0x55ad94-0x94;const _0x47a8d9=_0x47a8();let _0x6942f2=_0x47a8d9[_0x55ad94];return _0x6942f2;}export function recordEnabledSessionCleared(_0x105cac){const _0x2de0b3=loadCache(),_0x2adafd=_0x2de0b3['sessions'][_0x105cac];_0x2adafd?.['enabled']&&(_0x2de0b3['lastEnabledSessionClearedAt']=Date['now'](),saveCache(_0x2de0b3));}export function shouldAutoEnableAfterClear(_0x12e723){const _0x97237=_0xe64401,_0x44a20d={'dDlKi':_0x97237(0xae),'CErfo':function(_0x4f8907,_0x1c55fe){return _0x4f8907-_0x1c55fe;},'ZKXwX':function(_0x38dfd1,_0x143564){return _0x38dfd1<=_0x143564;}};if(_0x12e723!==_0x44a20d[_0x97237(0x99)])return![];const _0x4b63d6=loadCache(),_0x424629=_0x4b63d6[_0x97237(0xad)];if(!_0x424629)return![];const _0x49f91f=_0x44a20d[_0x97237(0xb1)](Date['now'](),_0x424629);return _0x44a20d['ZKXwX'](_0x49f91f,CLEAR_AUTO_ENABLE_WINDOW_MS);}export function autoEnableAfterClear(_0x2b972f){const _0x262732=_0xe64401,_0x352ab3={'NolXU':function(_0x42263d){return _0x42263d();},'Nxogm':function(_0x305c00,_0x2adae7,_0x929db){return _0x305c00(_0x2adae7,_0x929db);},'KnbYL':function(_0x5774f4,_0x4e603e){return _0x5774f4!==_0x4e603e;},'BsvvF':_0x262732(0xbb),'mxNqx':function(_0x23f48f,_0x3b01a1){return _0x23f48f(_0x3b01a1);}},_0x4a37d7=_0x352ab3[_0x262732(0xc7)](loadCache),_0x50c0af=_0x352ab3['Nxogm'](getOrCreateSession,_0x4a37d7,_0x2b972f);_0x50c0af[_0x262732(0x95)]=!![];const _0x20330b=getCurrentBranch();_0x20330b&&_0x352ab3[_0x262732(0x94)](_0x20330b,_0x352ab3['BsvvF'])&&_0x352ab3[_0x262732(0x94)](_0x20330b,_0x262732(0xb8))&&(_0x50c0af['currentBranch']=_0x20330b),delete _0x4a37d7['lastEnabledSessionClearedAt'],_0x352ab3['mxNqx'](saveCache,_0x4a37d7);}export function registerSession(_0x36023c,_0x15b163){const _0x3a4680=_0xe64401,_0x1f10cd=loadCache(),_0x49fb13=getOrCreateSession(_0x1f10cd,_0x36023c);_0x49fb13[_0x3a4680(0xb4)]=_0x15b163,_0x49fb13['registeredAt']=new Date()['toISOString'](),saveCache(_0x1f10cd);}export function getSessionEntry(_0x198c06){const _0x3a6cc9=_0xe64401,_0x144293=loadCache(),_0x3bf88b=_0x144293['sessions'][_0x198c06];if(_0x3bf88b?.[_0x3a6cc9(0xb4)]&&_0x3bf88b?.['registeredAt'])return{'featureId':_0x3bf88b[_0x3a6cc9(0xb4)],'registeredAt':_0x3bf88b['registeredAt']};return null;}export function unregisterSession(_0x3ee27b){const _0x9c374a=_0xe64401,_0x2a5d94={'VtLrC':function(_0x268840){return _0x268840();}},_0x506060=_0x2a5d94['VtLrC'](loadCache),_0x57648d=_0x506060['sessions'][_0x3ee27b];_0x57648d&&(delete _0x57648d['featureId'],delete _0x57648d[_0x9c374a(0x97)],saveCache(_0x506060));}const PLAN_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8,STOP_REMINDER_INTERVAL_MS=0x5*0x3c*0x3e8;export function shouldShowPlanReminder(_0x2de1ee){const _0x39568b=_0xe64401,_0x104552={'dDbmL':function(_0x31f864,_0x574bb8,_0x456192){return _0x31f864(_0x574bb8,_0x456192);},'iiMUL':function(_0x4577c4,_0x15f7a4){return _0x4577c4>=_0x15f7a4;},'QeBOB':function(_0x22b7d1,_0x4caa25){return _0x22b7d1-_0x4caa25;}},_0x485fab=loadCache(),_0xd848d1=_0x104552['dDbmL'](getOrCreateSession,_0x485fab,_0x2de1ee),_0x30da86=_0xd848d1['lastPlanReminderAt']||0x0,_0x4b1bdd=Date[_0x39568b(0xa8)]();if(_0x104552[_0x39568b(0xbe)](_0x104552[_0x39568b(0xa2)](_0x4b1bdd,_0x30da86),PLAN_REMINDER_INTERVAL_MS))return _0xd848d1['lastPlanReminderAt']=_0x4b1bdd,saveCache(_0x485fab),!![];return![];}export function shouldShowStopReminder(_0x112ddd){const _0x4fc693=_0xe64401,_0x2912ea={'HCknw':function(_0x473cdb){return _0x473cdb();},'rfDLA':function(_0x34db2e,_0xfab8ca,_0x48718b){return _0x34db2e(_0xfab8ca,_0x48718b);},'JCCuV':function(_0x1f86b9,_0x50ca34){return _0x1f86b9>=_0x50ca34;},'JKvCf':function(_0x21dbca,_0x222941){return _0x21dbca-_0x222941;}},_0x87de2e=_0x2912ea[_0x4fc693(0x96)](loadCache),_0x246fec=_0x2912ea[_0x4fc693(0xb2)](getOrCreateSession,_0x87de2e,_0x112ddd),_0x521f9c=_0x246fec[_0x4fc693(0xc2)]||0x0,_0x91389e=Date[_0x4fc693(0xa8)]();if(_0x2912ea[_0x4fc693(0xab)](_0x2912ea['JKvCf'](_0x91389e,_0x521f9c),STOP_REMINDER_INTERVAL_MS))return _0x246fec[_0x4fc693(0xc2)]=_0x91389e,saveCache(_0x87de2e),!![];return![];}function _0x47a8(){const _0x30ab18=['SCuRg','now','105654yUVMcf','1270ONtsnI','JCCuV','trim','lastEnabledSessionClearedAt','clear','join','gaiCX','CErfo','rfDLA','1965792nZOrNV','featureId','fjTsD','pipe','PhVBR','master','utf-8','jkYkT','main','GAGPr','28tsTXPy','iiMUL','parse','ifhvM','cOJBT','lastStopReminderAt','RfEFr','482584LajpKf','writeFileSync','KpJwd','NolXU','dirname','73278JarbnR','ymajo','KnbYL','enabled','HCknw','registeredAt','sessions','dDlKi','8122482JJUDKu','1224651eRllNB','existsSync','xkHcv','JnCCa','currentBranch','prompted','1268OvFtNY','QeBOB','branches','ZVXtp','wqtfU','stringify'];_0x47a8=function(){return _0x30ab18;};return _0x47a8();}export function hasSessionBeenPrompted(_0x592e24){const _0x4b30a7=_0xe64401,_0x593273={'UXpQh':function(_0x52d144,_0x594bfa){return _0x52d144===_0x594bfa;}},_0x5e3ffc=loadCache();return _0x593273['UXpQh'](_0x5e3ffc[_0x4b30a7(0x98)][_0x592e24]?.['prompted'],!![]);}export function markSessionPrompted(_0x3b5625){const _0x5c6312=_0xe64401,_0x4ff664={'cOJBT':function(_0x4d4a47){return _0x4d4a47();},'vuDXM':function(_0x175b1e,_0x504d67,_0x1cccd5){return _0x175b1e(_0x504d67,_0x1cccd5);}},_0x224ba9=_0x4ff664[_0x5c6312(0xc1)](loadCache),_0x304c4d=_0x4ff664['vuDXM'](getOrCreateSession,_0x224ba9,_0x3b5625);_0x304c4d[_0x5c6312(0xa0)]=!![],saveCache(_0x224ba9);}export function getCacheFile(){return CACHE_FILE;}
@@ -1 +1 @@
1
- const _0x493253=_0x3f22;(function(_0x246105,_0x5c4747){const _0x5c981e=_0x3f22,_0x5e387a=_0x246105();while(!![]){try{const _0x1e14fb=parseInt(_0x5c981e(0x115))/0x1*(parseInt(_0x5c981e(0x168))/0x2)+parseInt(_0x5c981e(0x12c))/0x3*(parseInt(_0x5c981e(0x110))/0x4)+parseInt(_0x5c981e(0x10c))/0x5+-parseInt(_0x5c981e(0x118))/0x6+-parseInt(_0x5c981e(0x103))/0x7*(-parseInt(_0x5c981e(0x107))/0x8)+parseInt(_0x5c981e(0x141))/0x9*(-parseInt(_0x5c981e(0x11e))/0xa)+-parseInt(_0x5c981e(0x144))/0xb*(parseInt(_0x5c981e(0x155))/0xc);if(_0x1e14fb===_0x5c4747)break;else _0x5e387a['push'](_0x5e387a['shift']());}catch(_0x39a308){_0x5e387a['push'](_0x5e387a['shift']());}}}(_0x2803,0x335ff));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir}from'./rangerRoot.js';export function getEnvDir(_0x3a139e){const _0x526143=_0x3f22,_0x42b02d={'YgSzM':function(_0x1cebc3,_0x2d8b64,_0x38dd9f,_0x155245){return _0x1cebc3(_0x2d8b64,_0x38dd9f,_0x155245);},'GJkHW':function(_0x29b183,_0x261a9b,_0x27680e){return _0x29b183(_0x261a9b,_0x27680e);},'DJSTP':function(_0x343f54,_0x5a0c7a,_0x5784a4){return _0x343f54(_0x5a0c7a,_0x5784a4);},'cbzsL':function(_0x53705b,_0x51670b){return _0x53705b(_0x51670b);},'pDwmX':function(_0x2a97a8,_0x2f9d4f){return _0x2a97a8!==_0x2f9d4f;}},_0x183a88=getRangerDir(),_0x329873=_0x42b02d['YgSzM'](join,_0x183a88,'ci',_0x3a139e),_0x164664=join(_0x183a88,_0x526143(0x15a),_0x3a139e),_0x23bf70=_0x42b02d[_0x526143(0x123)](join,_0x183a88,_0x3a139e),_0xc5f76d=_0x42b02d[_0x526143(0x14d)](join,_0x183a88,_0x526143(0x15a)),_0x2cae97=join(_0x183a88,'ci');if(_0x42b02d[_0x526143(0x149)](existsSync,_0x329873))return _0x329873;if(existsSync(_0x164664))return _0x164664;if(existsSync(_0x23bf70)&&(_0x23bf70!==_0xc5f76d&&_0x42b02d[_0x526143(0x106)](_0x23bf70,_0x2cae97)?!![]:hasLegacyProfileFiles(_0x23bf70)))return _0x23bf70;return _0x164664;}export function findExistingEnv(_0x4086e6,_0xa4e8e){const _0x406550=_0x3f22,_0x5d2312={'OsvQj':function(_0x42b927){return _0x42b927();},'ifTXS':_0x406550(0x15a),'eZisl':function(_0x1aa357,_0x34278d,_0x484a89){return _0x1aa357(_0x34278d,_0x484a89);},'wTILl':function(_0x3c9ca0,_0x2c0f39){return _0x3c9ca0===_0x2c0f39;}},_0x388df9=_0xa4e8e?.['rangerDir']??_0x5d2312[_0x406550(0x116)](getRangerDir),_0x363da5=_0xa4e8e?.['locations']??['ci',_0x5d2312[_0x406550(0x14c)],_0x406550(0x12b)],_0x36790a=_0x5d2312['eZisl'](join,_0x388df9,_0x5d2312[_0x406550(0x14c)]),_0x910116=join(_0x388df9,'ci'),_0x29fb97=[{'location':'ci','path':join(_0x388df9,'ci',_0x4086e6)},{'location':_0x5d2312['ifTXS'],'path':join(_0x388df9,_0x406550(0x15a),_0x4086e6)},{'location':_0x406550(0x12b),'path':join(_0x388df9,_0x4086e6)}];for(const _0x402ac9 of _0x29fb97){if(_0x363da5[_0x406550(0x132)](_0x402ac9[_0x406550(0x146)])&&existsSync(_0x402ac9[_0x406550(0x152)])){if(_0x402ac9[_0x406550(0x146)]==='legacy'&&(_0x402ac9[_0x406550(0x152)]===_0x36790a||_0x5d2312['wTILl'](_0x402ac9['path'],_0x910116))&&!hasLegacyProfileFiles(_0x402ac9[_0x406550(0x152)]))continue;return{'path':_0x402ac9[_0x406550(0x152)],'location':_0x402ac9[_0x406550(0x146)]};}}return null;}function hasLegacyProfileFiles(_0x4a4993){const _0x1c36f4=_0x3f22,_0x3f35cc={'TcNew':function(_0x52925f,_0x575019){return _0x52925f(_0x575019);},'jURYp':'settings.json','FPHLw':'auth.json','XMSDy':function(_0x5da501,_0x48d365,_0x4baa36){return _0x5da501(_0x48d365,_0x4baa36);}};return _0x3f35cc['TcNew'](existsSync,join(_0x4a4993,_0x3f35cc[_0x1c36f4(0x138)]))||existsSync(join(_0x4a4993,_0x3f35cc['FPHLw']))||existsSync(_0x3f35cc[_0x1c36f4(0x165)](join,_0x4a4993,_0x1c36f4(0x117)));}export function isEnvCi(_0x1d6e83){return existsSync(join(getRangerDir(),'ci',_0x1d6e83));}function _0x2803(){const _0x52c0ad=['replace','12rVEZPO','XRKma','TDBhK','Brmjo','--disable-features=WebBluetooth','local','--disable-setuid-sandbox','vision','clipboard-write','settings.json','args','install','AdOAR','headless','safeMode','xqldV','XMSDy','NfPRg','object','202KvtmzH','3934JcXcKv','map','entries','pDwmX','5816lUpvaA','keys','contextOptions','Failed\x20to\x20clean\x20up\x20temp\x20file\x20','sXJgc','2055185FhJaua','xdqGx','string','repeat','4szVGgb','--allow-running-insecure-content','ycTSm','VVChD','core','3011VmcrBR','OsvQj','auth.json.enc','1227528rYefbp','storageState','ranger-config','length','now','header','152930EgVSPC','setupHeader','launchOptions','uNetp','dGebd','GJkHW','clipboard-read','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','--allow-insecure-localhost','auth.json','AdkOA','none','ignoreHTTPSErrors','legacy','845274ZmPZPY','pdf','stringify','browser','headers','zWTBL','includes','rFKTo','HBVjj','fromEntries','filter','kwNDU','jURYp','BEVjs','userAgent','WZKBm','cdpEndpoint','allow','push','extraHTTPHeaders','tabs','72EDcjlQ','isArray','catch','9549287luLmFd','wbRcj','location','xEhri','getuid','cbzsL','message','all','ifTXS','DJSTP','dgfRT','env','chromium','LnQMM','path','OWxOH'];_0x2803=function(){return _0x52c0ad;};return _0x2803();}export async function cleanupTempFiles(_0x10de7b){const _0x2a86c0=_0x3f22,_0x25bf41={'YeloG':function(_0x498000,_0x24d5d2){return _0x498000!==_0x24d5d2;},'ToicD':'ENOENT'},_0x42b12f=[_0x10de7b['tempAuthPath'],_0x10de7b['configPath']]['filter'](Boolean);await Promise[_0x2a86c0(0x14b)](_0x42b12f['map'](_0x31988a=>unlink(_0x31988a)[_0x2a86c0(0x143)](_0x202759=>{const _0x4784cf=_0x2a86c0;_0x25bf41['YeloG'](_0x202759['code'],_0x25bf41['ToicD'])&&console['warn'](_0x4784cf(0x10a)+_0x31988a+':',_0x202759[_0x4784cf(0x14a)]);})));}export function getSettingsPath(_0x2cb9ff){const _0x545ebd=_0x3f22;return join(getEnvDir(_0x2cb9ff),_0x545ebd(0x15e));}export async function loadSettings(_0x49c129){const _0x1457a1=_0x3f22,_0x606682={'dgfRT':function(_0x542b39,_0x4cb2cb){return _0x542b39(_0x4cb2cb);}},_0x4f85b3=_0x606682[_0x1457a1(0x14e)](getSettingsPath,_0x49c129);if(!_0x606682['dgfRT'](existsSync,_0x4f85b3))return{};try{const _0x2aafa4=await readFile(_0x4f85b3,'utf-8');return JSON['parse'](_0x2aafa4);}catch{return{};}}export async function saveSettings(_0x54cf84,_0x4326af){const _0x53ead5=_0x3f22,_0x3b3586={'qlHqA':function(_0x5e159a,_0x4a2060){return _0x5e159a(_0x4a2060);},'DaHIq':function(_0x55e218,_0xbbcede){return _0x55e218(_0xbbcede);},'VVChD':function(_0x2a3a7c,_0x15a49f,_0x105851){return _0x2a3a7c(_0x15a49f,_0x105851);}},_0x5c55cb=_0x3b3586['qlHqA'](getSettingsPath,_0x54cf84),_0x1ceec9=dirname(_0x5c55cb);!_0x3b3586['DaHIq'](existsSync,_0x1ceec9)&&await _0x3b3586[_0x53ead5(0x113)](mkdir,_0x1ceec9,{'recursive':!![]}),await _0x3b3586['VVChD'](writeFile,_0x5c55cb,JSON[_0x53ead5(0x12e)](_0x4326af,null,0x2));}export function resolveEnvVars(_0x3afc42){const _0x4c54af=_0x3f22,_0xf959ec={'hWefO':_0x4c54af(0x167)};if(typeof _0x3afc42===_0x4c54af(0x10e))return _0x3afc42[_0x4c54af(0x154)](/\$\{(\w+)\}/g,(_0xd12825,_0x3b4ce8)=>{const _0x1680a9=_0x4c54af,_0x17f5c1=process[_0x1680a9(0x14f)][_0x3b4ce8];if(_0x17f5c1===undefined)throw new Error('Environment\x20variable\x20'+_0x3b4ce8+'\x20is\x20not\x20set');return _0x17f5c1;});if(Array['isArray'](_0x3afc42))return _0x3afc42[_0x4c54af(0x104)](resolveEnvVars);if(_0x3afc42&&typeof _0x3afc42===_0xf959ec['hWefO'])return Object[_0x4c54af(0x135)](Object[_0x4c54af(0x105)](_0x3afc42)['map'](([_0x5d43c6,_0x379155])=>[_0x5d43c6,resolveEnvVars(_0x379155)]));return _0x3afc42;}function _0x3f22(_0x58af24,_0x2cc985){_0x58af24=_0x58af24-0x103;const _0x28035e=_0x2803();let _0x3f22a8=_0x28035e[_0x58af24];return _0x3f22a8;}const isRecord=_0x528d95=>typeof _0x528d95==='object'&&_0x528d95!==null&&!Array[_0x493253(0x142)](_0x528d95),asRecord=_0x3a176e=>isRecord(_0x3a176e)?_0x3a176e:undefined,mergeHeaders=(_0xfc8245,_0x59073e)=>{const _0x4e69cf=_0x493253,_0x43a9c4={'uNetp':function(_0x5b4225,_0x66ff8d){return _0x5b4225??_0x66ff8d;}},_0x237d67={..._0xfc8245??{},..._0x43a9c4[_0x4e69cf(0x121)](_0x59073e,{})};return Object[_0x4e69cf(0x108)](_0x237d67)['length']?_0x237d67:undefined;},SAFE_MODE_ARGS=[_0x493253(0x159)],ALLOW_LOCALHOST_ARGS=['--disable-web-security',_0x493253(0x111),'--unsafely-treat-insecure-origin-as-secure=http://localhost',_0x493253(0x126)];export function buildBrowserOptionsFromSettings(_0x1b445d,_0x341390={}){const _0x330785=_0x493253,_0x3772ed={'MxVwk':function(_0x2f3e70,_0x379c61){return _0x2f3e70(_0x379c61);},'rWvMD':function(_0x6994fd,_0x105609){return _0x6994fd===_0x105609;},'LVdir':function(_0x5aab03,_0x78e3e7,_0x3e2131){return _0x5aab03(_0x78e3e7,_0x3e2131);},'WSVoK':function(_0x3778cd,_0x4bd552){return _0x3778cd(_0x4bd552);}},_0x5f2a1f=_0x3772ed['MxVwk'](asRecord,_0x1b445d['browser']),_0x51c435={...asRecord(_0x5f2a1f?.[_0x330785(0x120)])??{}};_0x3772ed['rWvMD'](typeof _0x341390[_0x330785(0x162)],'boolean')&&(_0x51c435['headless']=_0x341390[_0x330785(0x162)]);if(_0x1b445d[_0x330785(0x163)]){const _0x3101be=_0x51c435['args']??[],_0x2dee5b=SAFE_MODE_ARGS[_0x330785(0x136)](_0x371df9=>!_0x3101be[_0x330785(0x132)](_0x371df9));_0x51c435['args']=[..._0x3101be,..._0x2dee5b];}if(_0x1b445d['allowInsecureLocalhost']){const _0x4d89cc=_0x51c435[_0x330785(0x15f)]??[],_0x145e07=ALLOW_LOCALHOST_ARGS['filter'](_0x4c4832=>!_0x4d89cc[_0x330785(0x132)](_0x4c4832));_0x51c435[_0x330785(0x15f)]=[..._0x4d89cc,..._0x145e07];}const _0x3a6272={...asRecord(_0x5f2a1f?.[_0x330785(0x109)])??{}};_0x3a6272[_0x330785(0x12a)]=!![];_0x3772ed['rWvMD'](typeof _0x1b445d[_0x330785(0x13a)],'string')&&(_0x3a6272['userAgent']=_0x1b445d['userAgent']);const _0x595f9f=_0x3772ed['LVdir'](mergeHeaders,asRecord(_0x3a6272['extraHTTPHeaders']),_0x3772ed['WSVoK'](asRecord,_0x1b445d[_0x330785(0x130)]));return _0x595f9f?_0x3a6272[_0x330785(0x13f)]=_0x595f9f:delete _0x3a6272['extraHTTPHeaders'],_0x341390['storageStatePath']&&(_0x3a6272['storageState']=_0x341390['storageStatePath']),{'launchOptions':_0x51c435,'contextOptions':_0x3a6272};}export async function buildPlaywrightConfig(_0x1faf25,_0xa486aa,_0x242d19,_0x2a68b3){const _0x54d1a8=_0x493253,_0x283385={'Rileq':function(_0x19c3a1,_0x11cd05,_0xf6b1b5){return _0x19c3a1(_0x11cd05,_0xf6b1b5);},'BXjlX':function(_0x468283,_0x51fe93){return _0x468283===_0x51fe93;},'SfKgz':_0x54d1a8(0x124),'Brmjo':_0x54d1a8(0x15d),'xdqGx':'auth.json.enc','AdkOA':function(_0x21f24a,_0xe4be2f){return _0x21f24a(_0xe4be2f);},'wGWYS':function(_0x13bf4c,_0x30e0a8,_0x28687e){return _0x13bf4c(_0x30e0a8,_0x28687e);},'dPwDW':function(_0x5ba9f6){return _0x5ba9f6();},'fOqhB':function(_0x3eaf71,_0x30034f){return _0x3eaf71 instanceof _0x30034f;},'HBVjj':function(_0x239b67,_0x51d0d0,_0x255392,_0x282898){return _0x239b67(_0x51d0d0,_0x255392,_0x282898);},'XiKSC':'chromium','ZmJjO':_0x54d1a8(0x114),'NfPRg':_0x54d1a8(0x140),'UrDwS':_0x54d1a8(0x160),'LnQMM':function(_0x45528d,_0x500df4,_0x1474ea){return _0x45528d(_0x500df4,_0x1474ea);},'sXJgc':function(_0x496ca3){return _0x496ca3();},'BUdLD':function(_0x1c6dfa,_0x2c0d43,_0xb2fe26){return _0x1c6dfa(_0x2c0d43,_0xb2fe26);}},_0x26873f=getEnvDir(_0xa486aa),_0x46a1b7=join(_0x26873f,_0x283385[_0x54d1a8(0x10d)]),_0x55a3a6=join(_0x26873f,'auth.json');let _0x32e2fa,_0x3bf9a3;if(_0x283385['AdkOA'](existsSync,_0x46a1b7))try{const _0x57af10=await getToken();if(!_0x57af10)throw new Error('No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]');const _0x3e2cb1=await readFile(_0x46a1b7),_0x472661=decrypt(_0x3e2cb1,_0x57af10);_0x3bf9a3=_0x283385['wGWYS'](join,_0x283385['dPwDW'](tmpdir),'ranger-auth-'+Date['now']()+'.json'),await writeFile(_0x3bf9a3,_0x472661),_0x32e2fa=_0x3bf9a3;}catch(_0x5edcc8){const _0x1a6e01=_0x283385['fOqhB'](_0x5edcc8,Error)?_0x5edcc8[_0x54d1a8(0x14a)]:String(_0x5edcc8);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x1a6e01);}else existsSync(_0x55a3a6)&&(_0x32e2fa=_0x55a3a6);const _0xa6bc40=_0x242d19||randomUUID(),_0x4f9c5e=_0x283385[_0x54d1a8(0x134)](join,_0x283385['dPwDW'](getRangerDir),'sessions',_0xa6bc40),_0x359c7c=_0x283385[_0x54d1a8(0x128)](Boolean,_0x1faf25['cdpEndpoint']),_0xcd46bc=_0x359c7c?{'browserName':_0x283385['XiKSC'],'cdpEndpoint':_0x1faf25[_0x54d1a8(0x13c)]}:((()=>{const _0x332222=_0x54d1a8,{launchOptions:_0x490d7e,contextOptions:_0x51e10f}=_0x283385['Rileq'](buildBrowserOptionsFromSettings,_0x1faf25,{'headless':_0x2a68b3?![]:_0x1faf25['headless']??!![],'storageStatePath':_0x32e2fa});if(_0x283385['BXjlX'](process['getuid']?.(),0x0)){const _0x34700d=['--no-sandbox','--disable-setuid-sandbox'],_0x23f2a0=_0x490d7e[_0x332222(0x15f)]??[],_0x257418=_0x34700d['filter'](_0x287ea0=>!_0x23f2a0['includes'](_0x287ea0));_0x490d7e[_0x332222(0x15f)]=[..._0x23f2a0,..._0x257418];}return{'isolated':!![],'browserName':_0x332222(0x150),'launchOptions':_0x490d7e,'contextOptions':{..._0x51e10f,'permissions':[_0x283385['SfKgz'],_0x283385[_0x332222(0x158)]],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x2f01ac={'name':_0xa486aa,'browser':_0xcd46bc,'capabilities':[_0x283385['ZmJjO'],_0x283385[_0x54d1a8(0x166)],_0x283385['UrDwS'],_0x54d1a8(0x12d),_0x54d1a8(0x15c)],'imageResponses':_0x54d1a8(0x13d),'saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x4f9c5e};if(!_0x359c7c){const _0x4dab2d=_0x2f01ac[_0x54d1a8(0x12f)],_0x299039=_0x4dab2d['contextOptions'];if(_0x299039[_0x54d1a8(0x13a)]===undefined)delete _0x299039['userAgent'];if(_0x299039[_0x54d1a8(0x119)]===undefined)delete _0x299039[_0x54d1a8(0x119)];}const _0x5e7178=_0x283385[_0x54d1a8(0x151)](join,_0x283385[_0x54d1a8(0x10b)](tmpdir),_0x54d1a8(0x11a));!existsSync(_0x5e7178)&&await mkdir(_0x5e7178,{'recursive':!![]});const _0x28e6a0=_0x283385['BUdLD'](join,_0x5e7178,_0xa486aa+'-'+Date['now']()+'.json');return await _0x283385['LnQMM'](writeFile,_0x28e6a0,JSON['stringify'](_0x2f01ac,null,0x2)),{'configPath':_0x28e6a0,'tempAuthPath':_0x3bf9a3};}export async function buildPlaywrightCliConfig(_0x354493,_0x13f223,_0x3c8f2e,_0x17f7e0){const _0x11b131=_0x493253,_0x846786={'nONLr':function(_0x57fff5,_0xc4ca5d,_0x5c439b){return _0x57fff5(_0xc4ca5d,_0x5c439b);},'AdOAR':function(_0x4f3821,_0x328c35){return _0x4f3821===_0x328c35;},'ZOlie':'--no-sandbox','hhLRu':_0x11b131(0x15b),'xEhri':'clipboard-write','ycTSm':function(_0x56fbff,_0x30736f,_0x9149cf){return _0x56fbff(_0x30736f,_0x9149cf);},'NeyDV':_0x11b131(0x127),'dGebd':function(_0x801456,_0x112bde){return _0x801456(_0x112bde);},'rFKTo':_0x11b131(0x125),'wbRcj':function(_0x9a5382){return _0x9a5382();},'TDBhK':function(_0x2bbecc,_0x2352be){return _0x2bbecc instanceof _0x2352be;},'FvNDf':function(_0x537664,_0x4c3c9f){return _0x537664(_0x4c3c9f);},'oHOSY':_0x11b131(0x129),'YDcTo':function(_0x396a41,_0x1f45b3,_0x4cada5){return _0x396a41(_0x1f45b3,_0x4cada5);},'PRnRV':_0x11b131(0x11a),'gwFOd':function(_0x585824,_0x48f18c,_0x537f6a){return _0x585824(_0x48f18c,_0x537f6a);}},_0x17ded0=getEnvDir(_0x13f223),_0x276c3d=_0x846786[_0x11b131(0x112)](join,_0x17ded0,_0x11b131(0x117)),_0x5c0e7a=join(_0x17ded0,_0x846786['NeyDV']);let _0x54f399,_0x376461;if(_0x846786[_0x11b131(0x122)](existsSync,_0x276c3d))try{const _0x136310=await getToken();if(!_0x136310)throw new Error(_0x846786[_0x11b131(0x133)]);const _0x5aee71=await readFile(_0x276c3d),_0x4baaf7=decrypt(_0x5aee71,_0x136310);_0x376461=_0x846786['ycTSm'](join,_0x846786['wbRcj'](tmpdir),'ranger-auth-'+Date[_0x11b131(0x11c)]()+'.json'),await writeFile(_0x376461,_0x4baaf7),_0x54f399=_0x376461;}catch(_0x5a9e70){const _0x56a160=_0x846786[_0x11b131(0x157)](_0x5a9e70,Error)?_0x5a9e70['message']:_0x846786[_0x11b131(0x122)](String,_0x5a9e70);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x56a160);}else _0x846786['FvNDf'](existsSync,_0x5c0e7a)&&(_0x54f399=_0x5c0e7a);const _0x50a966=_0x3c8f2e||randomUUID(),_0x53d644=join(_0x846786[_0x11b131(0x145)](getRangerDir),'sessions',_0x50a966),_0x35bb7e=Boolean(_0x354493[_0x11b131(0x13c)]),_0x3f74b8=_0x35bb7e?{'browserName':_0x11b131(0x150),'cdpEndpoint':_0x354493['cdpEndpoint']}:((()=>{const _0x17437d=_0x11b131,{launchOptions:_0x3efcd9,contextOptions:_0x2d7cb1}=_0x846786['nONLr'](buildBrowserOptionsFromSettings,_0x354493,{'headless':_0x17f7e0?![]:_0x354493['headless']??!![],'storageStatePath':_0x54f399});if(_0x846786[_0x17437d(0x161)](process[_0x17437d(0x148)]?.(),0x0)){const _0x25d063=[_0x846786['ZOlie'],_0x846786['hhLRu']],_0x5aefd8=_0x3efcd9[_0x17437d(0x15f)]??[],_0x378b01=_0x25d063['filter'](_0x32d265=>!_0x5aefd8[_0x17437d(0x132)](_0x32d265));_0x3efcd9[_0x17437d(0x15f)]=[..._0x5aefd8,..._0x378b01];}return{'isolated':!![],'browserName':_0x17437d(0x150),'launchOptions':_0x3efcd9,'contextOptions':{..._0x2d7cb1,'permissions':['clipboard-read',_0x846786[_0x17437d(0x147)]],'viewport':{'width':0x500,'height':0x2d0}}};})());if(!_0x35bb7e){const _0x3687e3=_0x3f74b8['contextOptions'];if(_0x3687e3[_0x11b131(0x13a)]===undefined)delete _0x3687e3[_0x11b131(0x13a)];if(_0x3687e3['storageState']===undefined)delete _0x3687e3[_0x11b131(0x119)];}const _0x5faafa={'browser':_0x3f74b8,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x53d644,'outputMode':'file','codegen':_0x846786['oHOSY']},_0x2b6654=_0x846786['YDcTo'](join,tmpdir(),_0x846786['PRnRV']);!_0x846786['dGebd'](existsSync,_0x2b6654)&&await mkdir(_0x2b6654,{'recursive':!![]});const _0x1f2135=_0x846786['gwFOd'](join,_0x2b6654,_0x13f223+'-'+Date[_0x11b131(0x11c)]()+'-cli.json');return await writeFile(_0x1f2135,JSON[_0x11b131(0x12e)](_0x5faafa,null,0x2)),{'configPath':_0x1f2135,'tempAuthPath':_0x376461};}export function getNestedValue(_0x3bd404,_0xed0ead){const _0xe535f4={'ANytb':function(_0x279be9,_0x2bd83a){return _0x279be9(_0x2bd83a);},'ZViiz':function(_0x3cb647,_0x24ad55){return _0x3cb647!==_0x24ad55;}},_0x1f7d64=_0xe535f4['ANytb'](parseKeyPath,_0xed0ead);let _0x1c7eba=_0x3bd404;for(const _0x383c65 of _0x1f7d64){if(_0x1c7eba===null||_0x1c7eba===undefined||_0xe535f4['ZViiz'](typeof _0x1c7eba,'object'))return undefined;_0x1c7eba=_0x1c7eba[_0x383c65];}return _0x1c7eba;}export function setNestedValue(_0x1ea900,_0x741543,_0xbc2ed5){const _0x36e61e=_0x493253,_0x4aba32={'CSIQq':function(_0x4a6766,_0x388d8e){return _0x4a6766<_0x388d8e;},'BEVjs':function(_0x2a48ca,_0x45c126){return _0x2a48ca in _0x45c126;},'eRzSu':function(_0x58954c,_0x50656c){return _0x58954c!==_0x50656c;},'sSzKv':_0x36e61e(0x167),'ZxyKY':function(_0x1af015,_0x4820fb){return _0x1af015-_0x4820fb;}},_0x2e579e=parseKeyPath(_0x741543);let _0x4edfd1=_0x1ea900;for(let _0x474c23=0x0;_0x4aba32['CSIQq'](_0x474c23,_0x2e579e[_0x36e61e(0x11b)]-0x1);_0x474c23++){const _0x535ed9=_0x2e579e[_0x474c23];(!_0x4aba32[_0x36e61e(0x139)](_0x535ed9,_0x4edfd1)||_0x4aba32['eRzSu'](typeof _0x4edfd1[_0x535ed9],_0x4aba32['sSzKv']))&&(_0x4edfd1[_0x535ed9]={}),_0x4edfd1=_0x4edfd1[_0x535ed9];}_0x4edfd1[_0x2e579e[_0x4aba32['ZxyKY'](_0x2e579e['length'],0x1)]]=_0xbc2ed5;}export function deleteNestedValue(_0x3e66d4,_0x535a3f){const _0x7f8d5a=_0x493253,_0x5ddb9c={'OWxOH':function(_0x3a999c,_0x27b1f7){return _0x3a999c-_0x27b1f7;},'zWTBL':function(_0x5a2a73,_0x21f86c){return _0x5a2a73!==_0x21f86c;},'xqldV':'object','ZGtcG':function(_0x1895f6,_0x1bf421){return _0x1895f6===_0x1bf421;},'kPCox':function(_0x1dcf65,_0x3779a1){return _0x1dcf65-_0x3779a1;},'ZRGhZ':function(_0x480fd6,_0x24875e){return _0x480fd6 in _0x24875e;}},_0x5bec1a=parseKeyPath(_0x535a3f);let _0x4ea7fa=_0x3e66d4;for(let _0x434421=0x0;_0x434421<_0x5ddb9c[_0x7f8d5a(0x153)](_0x5bec1a['length'],0x1);_0x434421++){if(_0x4ea7fa===null||_0x4ea7fa===undefined||_0x5ddb9c[_0x7f8d5a(0x131)](typeof _0x4ea7fa,_0x5ddb9c[_0x7f8d5a(0x164)]))return![];_0x4ea7fa=_0x4ea7fa[_0x5bec1a[_0x434421]];}if(_0x5ddb9c['ZGtcG'](_0x4ea7fa,null)||_0x4ea7fa===undefined||_0x5ddb9c['zWTBL'](typeof _0x4ea7fa,_0x5ddb9c['xqldV']))return![];const _0x5eabf1=_0x5bec1a[_0x5ddb9c['kPCox'](_0x5bec1a['length'],0x1)];if(_0x5ddb9c['ZRGhZ'](_0x5eabf1,_0x4ea7fa))return delete _0x4ea7fa[_0x5eabf1],!![];return![];}function parseKeyPath(_0x271b27){const _0x51a4ea=_0x493253,_0x1fe251={'kwNDU':function(_0x4f920c,_0x1080ab){return _0x4f920c===_0x1080ab;},'WZKBm':_0x51a4ea(0x11f)},_0x4ae474=_0x271b27['split']('.');return _0x1fe251[_0x51a4ea(0x137)](_0x4ae474[0x0],_0x51a4ea(0x11d))&&(_0x4ae474[0x0]='headers'),_0x1fe251['kwNDU'](_0x4ae474[0x0],_0x1fe251[_0x51a4ea(0x13b)])&&(_0x4ae474[0x0]='setupHeaders'),_0x4ae474;}export function formatSettings(_0x532b22,_0x210445=0x0){const _0x541119=_0x493253,_0x3fe968={'XRKma':function(_0x5a4bf5,_0x1a1e4f){return _0x5a4bf5===_0x1a1e4f;}},_0x3db0d7=[],_0x33e1a8='\x20\x20'[_0x541119(0x10f)](_0x210445);for(const [_0x29447d,_0x30c4c0]of Object[_0x541119(0x105)](_0x532b22)){if(_0x30c4c0===undefined)continue;if(_0x3fe968[_0x541119(0x156)](typeof _0x30c4c0,_0x541119(0x167))&&_0x30c4c0!==null){_0x3db0d7[_0x541119(0x13e)](''+_0x33e1a8+_0x29447d+':');for(const [_0x304ae0,_0x4e55fe]of Object[_0x541119(0x105)](_0x30c4c0)){_0x3db0d7['push'](_0x33e1a8+'\x20\x20'+_0x304ae0+':\x20'+_0x4e55fe);}}else _0x3db0d7[_0x541119(0x13e)](''+_0x33e1a8+_0x29447d+':\x20'+_0x30c4c0);}return _0x3db0d7['join']('\x0a');}
1
+ const _0x1f68ed=_0x9bd2;(function(_0x5d8121,_0x162887){const _0x5040cc=_0x9bd2,_0x3b420c=_0x5d8121();while(!![]){try{const _0x25e747=parseInt(_0x5040cc(0x10e))/0x1*(-parseInt(_0x5040cc(0x122))/0x2)+parseInt(_0x5040cc(0xc6))/0x3*(-parseInt(_0x5040cc(0xd7))/0x4)+-parseInt(_0x5040cc(0xe6))/0x5+parseInt(_0x5040cc(0xd5))/0x6+parseInt(_0x5040cc(0xd4))/0x7*(-parseInt(_0x5040cc(0xeb))/0x8)+parseInt(_0x5040cc(0xf3))/0x9*(parseInt(_0x5040cc(0x111))/0xa)+parseInt(_0x5040cc(0x10b))/0xb;if(_0x25e747===_0x162887)break;else _0x3b420c['push'](_0x3b420c['shift']());}catch(_0x7d8a69){_0x3b420c['push'](_0x3b420c['shift']());}}}(_0x127e,0x6c9e9));import{readFile,writeFile,mkdir,unlink}from'fs/promises';import{join,dirname}from'path';import{existsSync}from'fs';import{tmpdir}from'os';import{randomUUID}from'crypto';import{decrypt}from'./crypto.js';import{getToken}from'./keychain.js';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function findEnvInRoot(_0x18af57,_0xb1ce30){const _0x5009e8=_0x9bd2,_0x3e25b5={'XmkEf':function(_0xaf411,_0x164af1,_0x211bfb,_0x1cd366){return _0xaf411(_0x164af1,_0x211bfb,_0x1cd366);},'NGPXb':function(_0xf5ce0e,_0x32940d,_0x35d0fe){return _0xf5ce0e(_0x32940d,_0x35d0fe);},'vCUyZ':'local','AERDo':function(_0xe4efd,_0x38f3ba,_0x35afcd){return _0xe4efd(_0x38f3ba,_0x35afcd);},'FoJKP':function(_0x2841fa,_0x267d4b){return _0x2841fa(_0x267d4b);},'TocNR':function(_0x1b268c,_0x2c7a02){return _0x1b268c(_0x2c7a02);},'RDLoo':function(_0x3c4498,_0x304270){return _0x3c4498!==_0x304270;},'zBnOQ':function(_0x4ccc9b,_0x20ee1f){return _0x4ccc9b!==_0x20ee1f;}},_0x489a0f=_0x3e25b5['XmkEf'](join,_0xb1ce30,'ci',_0x18af57),_0x33a665=_0x3e25b5[_0x5009e8(0xcc)](join,_0xb1ce30,'local',_0x18af57),_0x5b0b63=_0x3e25b5['NGPXb'](join,_0xb1ce30,_0x18af57),_0x558204=join(_0xb1ce30,_0x3e25b5['vCUyZ']),_0x5a7244=_0x3e25b5['AERDo'](join,_0xb1ce30,'ci');if(_0x3e25b5[_0x5009e8(0x128)](existsSync,_0x489a0f))return _0x489a0f;if(_0x3e25b5[_0x5009e8(0x128)](existsSync,_0x33a665))return _0x33a665;if(_0x3e25b5[_0x5009e8(0xe8)](existsSync,_0x5b0b63)&&(_0x3e25b5['RDLoo'](_0x5b0b63,_0x558204)&&_0x3e25b5[_0x5009e8(0xfd)](_0x5b0b63,_0x5a7244)?!![]:hasLegacyProfileFiles(_0x5b0b63)))return _0x5b0b63;return null;}export function getEnvDir(_0x568806){const _0x3a8328=_0x9bd2,_0x3b8668={'hUhBu':function(_0x36b531){return _0x36b531();}},_0x51e631=_0x3b8668[_0x3a8328(0xca)](getRangerDir),_0x28ced9=findEnvInRoot(_0x568806,_0x51e631);if(_0x28ced9)return _0x28ced9;const _0x4fc75d=_0x3b8668[_0x3a8328(0xca)](getRangerHomeDir);if(_0x4fc75d!==_0x51e631){const _0xbcc776=findEnvInRoot(_0x568806,_0x4fc75d);if(_0xbcc776)return _0xbcc776;}return join(_0x51e631,'local',_0x568806);}function _0x127e(){const _0x590b2d=['location','allowInsecureLocalhost','--disable-features=WebBluetooth','UVdcV','chromium','20858893alRnbL','zoQiG','join','3jCUFiK','install','JypxI','10dnCknN','--allow-insecure-localhost','DtmyV','ranger-auth-','vSJXs','No\x20API\x20token\x20found.\x20Run:\x20ranger\x20setup\x20[token]','isArray','fromEntries','PhhLO','jmsIF','parse','vwJVq','clipboard-write','HFhsj','iATMC','local','hvycM','575518EiwKIb','NUETt','fZSKC','includes','IKZJC','launchOptions','FoJKP','DSVZe','headless','qbuHv','setupHeaders','entries','header','xYBxc','235551WAHDRo','boolean','HzBPB','keys','hUhBu','rangerDir','XmkEf','BAXTO','UkBgv','browser','vision','ZEvZu','stringify','length','161wlCjiw','3711912fyXuGl','zhbiQ','16DZqKPS','qZAkJ','tabs','storageStatePath','now','extraHTTPHeaders','Gjikh','getuid','contextOptions','--disable-web-security','args','.json','settings.json','push','legacy','2054335ZLLzBX','repeat','TocNR','Qwsqm','storageState','273704yopeUG','replace','playwright-cli','core','cOpkB','lUCIZ','--no-sandbox','sessions','2745909hFxxjT','QHoej','dHhgP','\x20is\x20not\x20set','all','userAgent','auth.json','TLCzD','map','filter','zBnOQ','object','tempAuthPath','aIicT','MMmWb','PReWV','path','string','juEsP'];_0x127e=function(){return _0x590b2d;};return _0x127e();}export function findExistingEnv(_0x4402ae,_0x58be99){const _0x253d94=_0x9bd2,_0xd2531c={'aIicT':function(_0x127ae6){return _0x127ae6();},'WXQYu':_0x253d94(0x120),'uSEyx':function(_0x1d638a,_0x5b9ba0,_0x29f197){return _0x1d638a(_0x5b9ba0,_0x29f197);},'vSJXs':function(_0x300ac2,_0x518184,_0x5066c8,_0x42ee34){return _0x300ac2(_0x518184,_0x5066c8,_0x42ee34);},'Qwsqm':function(_0x4f057a,_0x55c341){return _0x4f057a(_0x55c341);},'fZSKC':function(_0x316db5,_0x119201){return _0x316db5===_0x119201;},'DSVZe':'legacy'},_0xa23e87=_0x58be99?.[_0x253d94(0xcb)],_0xb31c63=_0xa23e87?[_0xa23e87]:[getRangerDir(),_0xd2531c[_0x253d94(0x100)](getRangerHomeDir)][_0x253d94(0xfc)]((_0x57400f,_0x504062,_0x1dabf5)=>_0x1dabf5['indexOf'](_0x57400f)===_0x504062),_0x9e1969=_0x58be99?.['locations']??['ci',_0xd2531c['WXQYu'],'legacy'];for(const _0x204bfb of _0xb31c63){const _0x50e6e8=join(_0x204bfb,'local'),_0x2ed21b=_0xd2531c['uSEyx'](join,_0x204bfb,'ci'),_0x30a29e=[{'location':'ci','path':_0xd2531c[_0x253d94(0x115)](join,_0x204bfb,'ci',_0x4402ae)},{'location':_0x253d94(0x120),'path':join(_0x204bfb,_0xd2531c['WXQYu'],_0x4402ae)},{'location':_0x253d94(0xe5),'path':join(_0x204bfb,_0x4402ae)}];for(const _0x1dfc7a of _0x30a29e){if(_0x9e1969['includes'](_0x1dfc7a[_0x253d94(0x106)])&&_0xd2531c[_0x253d94(0xe9)](existsSync,_0x1dfc7a[_0x253d94(0x103)])){if(_0xd2531c['fZSKC'](_0x1dfc7a['location'],_0xd2531c[_0x253d94(0xbf)])&&(_0x1dfc7a[_0x253d94(0x103)]===_0x50e6e8||_0xd2531c[_0x253d94(0x124)](_0x1dfc7a[_0x253d94(0x103)],_0x2ed21b))&&!hasLegacyProfileFiles(_0x1dfc7a['path']))continue;return{'path':_0x1dfc7a['path'],'location':_0x1dfc7a['location']};}}}return null;}function hasLegacyProfileFiles(_0x114b04){const _0x6af39a=_0x9bd2,_0x2a5a07={'IKZJC':function(_0x2cfcfb,_0x2dba09,_0x28163e){return _0x2cfcfb(_0x2dba09,_0x28163e);},'fOuVR':'auth.json'};return existsSync(_0x2a5a07[_0x6af39a(0x126)](join,_0x114b04,_0x6af39a(0xe3)))||existsSync(_0x2a5a07[_0x6af39a(0x126)](join,_0x114b04,_0x2a5a07['fOuVR']))||existsSync(_0x2a5a07['IKZJC'](join,_0x114b04,'auth.json.enc'));}export function isEnvCi(_0x18e9d3){const _0x4dbbb5=_0x9bd2,_0x240217={'cQcGQ':function(_0x527769,_0x296680){return _0x527769(_0x296680);},'sVggk':function(_0x29b212,_0x18b615,_0x225e65,_0x307d95){return _0x29b212(_0x18b615,_0x225e65,_0x307d95);},'PhhLO':function(_0x495661){return _0x495661();}};return _0x240217['cQcGQ'](existsSync,_0x240217['sVggk'](join,_0x240217[_0x4dbbb5(0x119)](getRangerDir),'ci',_0x18e9d3));}export async function cleanupTempFiles(_0x44a6ee){const _0x3dae77=_0x9bd2,_0x326f85={'DlHaB':function(_0x3b4b82,_0x243b9b){return _0x3b4b82!==_0x243b9b;},'gtcaY':'ENOENT'},_0x69574e=[_0x44a6ee[_0x3dae77(0xff)],_0x44a6ee['configPath']]['filter'](Boolean);await Promise[_0x3dae77(0xf7)](_0x69574e['map'](_0x3dd628=>unlink(_0x3dd628)['catch'](_0x25bf30=>{_0x326f85['DlHaB'](_0x25bf30['code'],_0x326f85['gtcaY'])&&console['warn']('Failed\x20to\x20clean\x20up\x20temp\x20file\x20'+_0x3dd628+':',_0x25bf30['message']);})));}export function getSettingsPath(_0x383279){const _0x551720=_0x9bd2,_0x74b8e8={'damDm':function(_0x1613e6,_0x20b461,_0x577826){return _0x1613e6(_0x20b461,_0x577826);},'eLXqX':function(_0x2585bf,_0x54bdca){return _0x2585bf(_0x54bdca);},'igKYe':_0x551720(0xe3)};return _0x74b8e8['damDm'](join,_0x74b8e8['eLXqX'](getEnvDir,_0x383279),_0x74b8e8['igKYe']);}export async function loadSettings(_0x12ab60){const _0x223e9a=_0x9bd2,_0x4b8355={'jmsIF':function(_0x42ae,_0x14b83b){return _0x42ae(_0x14b83b);},'DtmyV':function(_0x1cdb61,_0x484b73,_0x575f92){return _0x1cdb61(_0x484b73,_0x575f92);}},_0x1fccba=getSettingsPath(_0x12ab60);if(!_0x4b8355[_0x223e9a(0x11a)](existsSync,_0x1fccba))return{};try{const _0x178295=await _0x4b8355[_0x223e9a(0x113)](readFile,_0x1fccba,'utf-8');return JSON[_0x223e9a(0x11b)](_0x178295);}catch{return{};}}export async function saveSettings(_0x40ea40,_0x381ef8){const _0x56f9a9=_0x9bd2,_0x42e6cb={'hvycM':function(_0x3eb2f4,_0x1862a7){return _0x3eb2f4(_0x1862a7);},'dHhgP':function(_0x433412,_0x2a1f26){return _0x433412(_0x2a1f26);},'iEHnG':function(_0x45739a,_0x5de50e,_0x38e458){return _0x45739a(_0x5de50e,_0x38e458);}},_0x57ee94=_0x42e6cb[_0x56f9a9(0x121)](getSettingsPath,_0x40ea40),_0x20c87a=_0x42e6cb['hvycM'](dirname,_0x57ee94);!_0x42e6cb[_0x56f9a9(0xf5)](existsSync,_0x20c87a)&&await _0x42e6cb['iEHnG'](mkdir,_0x20c87a,{'recursive':!![]}),await writeFile(_0x57ee94,JSON[_0x56f9a9(0xd2)](_0x381ef8,null,0x2));}export function resolveEnvVars(_0x4e9958){const _0x43052e=_0x9bd2,_0x2b93e1={'vKSgj':function(_0x10c4eb,_0x32a5c6){return _0x10c4eb===_0x32a5c6;},'hMfMX':_0x43052e(0x104),'zhbiQ':'object'};if(typeof _0x4e9958===_0x2b93e1['hMfMX'])return _0x4e9958[_0x43052e(0xec)](/\$\{(\w+)\}/g,(_0x126ecd,_0x2c6165)=>{const _0x349632=_0x43052e,_0x195c85=process['env'][_0x2c6165];if(_0x2b93e1['vKSgj'](_0x195c85,undefined))throw new Error('Environment\x20variable\x20'+_0x2c6165+_0x349632(0xf6));return _0x195c85;});if(Array[_0x43052e(0x117)](_0x4e9958))return _0x4e9958['map'](resolveEnvVars);if(_0x4e9958&&typeof _0x4e9958===_0x2b93e1[_0x43052e(0xd6)])return Object[_0x43052e(0x118)](Object[_0x43052e(0xc3)](_0x4e9958)[_0x43052e(0xfb)](([_0x1b6712,_0x12bbfd])=>[_0x1b6712,resolveEnvVars(_0x12bbfd)]));return _0x4e9958;}const isRecord=_0x523c32=>typeof _0x523c32==='object'&&_0x523c32!==null&&!Array[_0x1f68ed(0x117)](_0x523c32),asRecord=_0x31d35d=>isRecord(_0x31d35d)?_0x31d35d:undefined,mergeHeaders=(_0x308afd,_0x42b0b8)=>{const _0x403aaa=_0x1f68ed,_0x2045ad={'Gjikh':function(_0x484ba4,_0x53e6b5){return _0x484ba4??_0x53e6b5;}},_0x168c7b={..._0x2045ad['Gjikh'](_0x308afd,{}),..._0x2045ad[_0x403aaa(0xdd)](_0x42b0b8,{})};return Object[_0x403aaa(0xc9)](_0x168c7b)['length']?_0x168c7b:undefined;},SAFE_MODE_ARGS=[_0x1f68ed(0x108)],ALLOW_LOCALHOST_ARGS=[_0x1f68ed(0xe0),'--allow-running-insecure-content','--unsafely-treat-insecure-origin-as-secure=http://localhost',_0x1f68ed(0x112)];export function buildBrowserOptionsFromSettings(_0x3d28b,_0x9bda3d={}){const _0x2353b2=_0x1f68ed,_0x18f61a={'xYBxc':function(_0x452fe3,_0x2ead80){return _0x452fe3(_0x2ead80);},'FlOYm':function(_0x3946c0,_0x1792e4){return _0x3946c0===_0x1792e4;},'UkBgv':_0x2353b2(0xc7),'lGOLN':'string','MMmWb':function(_0x59b0df,_0x7ff0db,_0x539835){return _0x59b0df(_0x7ff0db,_0x539835);}},_0x1941e3=asRecord(_0x3d28b[_0x2353b2(0xcf)]),_0x3b4b08={..._0x18f61a[_0x2353b2(0xc5)](asRecord,_0x1941e3?.[_0x2353b2(0x127)])??{}};_0x18f61a['FlOYm'](typeof _0x9bda3d['headless'],_0x18f61a[_0x2353b2(0xce)])&&(_0x3b4b08['headless']=_0x9bda3d['headless']);if(_0x3d28b['safeMode']){const _0xb8f2e9=_0x3b4b08['args']??[],_0x4dfaa0=SAFE_MODE_ARGS[_0x2353b2(0xfc)](_0x2f60da=>!_0xb8f2e9[_0x2353b2(0x125)](_0x2f60da));_0x3b4b08[_0x2353b2(0xe1)]=[..._0xb8f2e9,..._0x4dfaa0];}if(_0x3d28b[_0x2353b2(0x107)]){const _0x5cf5ee=_0x3b4b08['args']??[],_0x2250ba=ALLOW_LOCALHOST_ARGS[_0x2353b2(0xfc)](_0x2cfb7d=>!_0x5cf5ee[_0x2353b2(0x125)](_0x2cfb7d));_0x3b4b08['args']=[..._0x5cf5ee,..._0x2250ba];}const _0x3f9ac3={...asRecord(_0x1941e3?.['contextOptions'])??{}};_0x3f9ac3['ignoreHTTPSErrors']=!![];typeof _0x3d28b[_0x2353b2(0xf8)]===_0x18f61a['lGOLN']&&(_0x3f9ac3['userAgent']=_0x3d28b[_0x2353b2(0xf8)]);const _0x13e94d=_0x18f61a[_0x2353b2(0x101)](mergeHeaders,asRecord(_0x3f9ac3['extraHTTPHeaders']),_0x18f61a['xYBxc'](asRecord,_0x3d28b['headers']));return _0x13e94d?_0x3f9ac3[_0x2353b2(0xdc)]=_0x13e94d:delete _0x3f9ac3[_0x2353b2(0xdc)],_0x9bda3d['storageStatePath']&&(_0x3f9ac3[_0x2353b2(0xea)]=_0x9bda3d[_0x2353b2(0xda)]),{'launchOptions':_0x3b4b08,'contextOptions':_0x3f9ac3};}async function resolveLocalAuthPath(_0x40639f){const _0x164fe2=_0x1f68ed,_0x1efc02={'QHVoi':function(_0x2d6772,_0x12b00c,_0x4bfac3){return _0x2d6772(_0x12b00c,_0x4bfac3);},'zmqjF':'auth.json.enc','JypxI':_0x164fe2(0xf9),'fwEvD':function(_0x2be459,_0x21b21a){return _0x2be459(_0x21b21a);},'ljozB':function(_0x385839,_0x2ac9c9){return _0x385839(_0x2ac9c9);},'kokeC':function(_0x2dd1e9,_0x3cf7e1){return _0x2dd1e9(_0x3cf7e1);},'juEsP':function(_0x3b55b7,_0x6d603c){return _0x3b55b7(_0x6d603c);}},_0x465803=_0x1efc02['QHVoi'](join,_0x40639f,_0x1efc02['zmqjF']),_0x2e530c=join(_0x40639f,_0x1efc02[_0x164fe2(0x110)]);if(_0x1efc02['fwEvD'](existsSync,_0x465803))try{const _0xb81025=await getToken();if(!_0xb81025)throw new Error(_0x164fe2(0x116));const _0x140de5=await _0x1efc02['ljozB'](readFile,_0x465803),_0x2166f6=decrypt(_0x140de5,_0xb81025),_0xbe9929=_0x1efc02['QHVoi'](join,tmpdir(),_0x164fe2(0x114)+Date[_0x164fe2(0xdb)]()+_0x164fe2(0xe2));return await writeFile(_0xbe9929,_0x2166f6),{'storageStatePath':_0xbe9929,'tempAuthPath':_0xbe9929};}catch(_0x502334){const _0x132399=_0x502334 instanceof Error?_0x502334['message']:_0x1efc02['kokeC'](String,_0x502334);throw new Error('Failed\x20to\x20decrypt\x20auth\x20state:\x20'+_0x132399);}if(_0x1efc02[_0x164fe2(0x105)](existsSync,_0x2e530c))return{'storageStatePath':_0x2e530c};return{};}export async function buildPlaywrightConfig(_0x3f230a,_0x3ebc85,_0x2e914f,_0x1dabb3,_0x1d160d){const _0x29628e=_0x1f68ed,_0x251c59={'NUETt':function(_0x289e6e,_0x2411a6,_0x48f0c5,_0x20dd9b,_0x5a5111,_0x1ec49f,_0x3bea70){return _0x289e6e(_0x2411a6,_0x48f0c5,_0x20dd9b,_0x5a5111,_0x1ec49f,_0x3bea70);},'PReWV':function(_0x4acf6e,_0x41927a){return _0x4acf6e(_0x41927a);}};if(_0x1d160d)return _0x251c59[_0x29628e(0x123)](buildPlaywrightConfigCore,_0x3f230a,_0x1d160d,_0x3ebc85,_0x2e914f,_0x1dabb3,'stagehand');const {storageStatePath:_0x239840,tempAuthPath:_0x46c480}=await _0x251c59[_0x29628e(0x102)](resolveLocalAuthPath,getEnvDir(_0x3ebc85)),_0x634a8a=await buildPlaywrightConfigCore(_0x3f230a,_0x239840,_0x3ebc85,_0x2e914f,_0x1dabb3,'stagehand');return{..._0x634a8a,'tempAuthPath':_0x46c480};}export async function buildPlaywrightConfigCore(_0xbf97d8,_0x5e107b,_0x477222,_0x375a98,_0x3066f9,_0x35d107='stagehand'){const _0x17edff=_0x1f68ed,_0x460dea={'lUCIZ':function(_0x150ddc,_0x2a5ffd){return _0x150ddc===_0x2a5ffd;},'NJaGL':'--disable-setuid-sandbox','UVdcV':_0x17edff(0x11d),'HFhsj':function(_0x4a4b73){return _0x4a4b73();},'BVJpY':function(_0x2e247c){return _0x2e247c();},'iATMC':_0x17edff(0xed),'zoQiG':'file','IyRIG':_0x17edff(0xd9),'vwJVq':_0x17edff(0xd0),'XFbOA':function(_0x37a992,_0x151365,_0x692be9){return _0x37a992(_0x151365,_0x692be9);},'mKHvM':'ranger-config','BAXTO':function(_0x53cd3f,_0x37effe,_0x4d1d23){return _0x53cd3f(_0x37effe,_0x4d1d23);},'qbuHv':'-cli'},_0xa06b34=_0x375a98||_0x460dea[_0x17edff(0x11e)](randomUUID),_0x5d68c5=join(_0x460dea['BVJpY'](getRangerDir),_0x17edff(0xf2),_0xa06b34),_0x4e2534=Boolean(_0xbf97d8['cdpEndpoint']),_0x4e82ea=_0x4e2534?{'browserName':_0x17edff(0x10a),'cdpEndpoint':_0xbf97d8['cdpEndpoint']}:((()=>{const _0x5666be=_0x17edff,{launchOptions:_0x50188c,contextOptions:_0x346569}=buildBrowserOptionsFromSettings(_0xbf97d8,{'headless':_0x3066f9?![]:_0xbf97d8[_0x5666be(0xc0)]??!![],'storageStatePath':_0x5e107b});if(_0x460dea[_0x5666be(0xf0)](process[_0x5666be(0xde)]?.(),0x0)){const _0x4a3f71=[_0x5666be(0xf1),_0x460dea['NJaGL']],_0x446bb8=_0x50188c[_0x5666be(0xe1)]??[],_0x23963f=_0x4a3f71[_0x5666be(0xfc)](_0x5d1e85=>!_0x446bb8[_0x5666be(0x125)](_0x5d1e85));_0x50188c[_0x5666be(0xe1)]=[..._0x446bb8,..._0x23963f];}return{'isolated':!![],'browserName':_0x5666be(0x10a),'launchOptions':_0x50188c,'contextOptions':{..._0x346569,'permissions':['clipboard-read',_0x460dea[_0x5666be(0x109)]],'viewport':{'width':0x500,'height':0x2d0}}};})()),_0x1ab22a=_0x35d107===_0x460dea['iATMC']?{'browser':_0x4e82ea,'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5d68c5,'outputMode':_0x460dea[_0x17edff(0x10c)],'codegen':'none'}:{'name':_0x477222,'browser':_0x4e82ea,'capabilities':[_0x17edff(0xee),_0x460dea['IyRIG'],_0x17edff(0x10f),'pdf',_0x460dea[_0x17edff(0x11c)]],'imageResponses':'allow','saveTrace':!![],'saveVideo':{'width':0x500,'height':0x2d0},'outputDir':_0x5d68c5};if(!_0x4e2534){const _0x335911=_0x1ab22a[_0x17edff(0xcf)],_0x54a52a=_0x335911[_0x17edff(0xdf)];if(_0x54a52a[_0x17edff(0xf8)]===undefined)delete _0x54a52a[_0x17edff(0xf8)];if(_0x54a52a[_0x17edff(0xea)]===undefined)delete _0x54a52a[_0x17edff(0xea)];}const _0x4a53a6=_0x460dea['XFbOA'](join,tmpdir(),_0x460dea['mKHvM']);!existsSync(_0x4a53a6)&&await _0x460dea[_0x17edff(0xcd)](mkdir,_0x4a53a6,{'recursive':!![]});const _0xa71db7=_0x35d107===_0x460dea[_0x17edff(0x11f)]?_0x460dea[_0x17edff(0xc1)]:'',_0xab2eaf=join(_0x4a53a6,_0x477222+'-'+Date['now']()+_0xa71db7+'.json');return await writeFile(_0xab2eaf,JSON['stringify'](_0x1ab22a,null,0x2)),{'configPath':_0xab2eaf};}export async function buildPlaywrightCliConfig(_0x2779ed,_0x7aca59,_0xa3b797,_0x18c039,_0x20b317){const _0x9e6bc3=_0x1f68ed,_0x2109c1={'QHoej':'playwright-cli','TLCzD':function(_0x20da6f,_0x5dbff5){return _0x20da6f(_0x5dbff5);}};if(_0x20b317)return buildPlaywrightConfigCore(_0x2779ed,_0x20b317,_0x7aca59,_0xa3b797,_0x18c039,_0x2109c1['QHoej']);const {storageStatePath:_0x333e06,tempAuthPath:_0x2384c0}=await resolveLocalAuthPath(_0x2109c1[_0x9e6bc3(0xfa)](getEnvDir,_0x7aca59)),_0xfb4291=await buildPlaywrightConfigCore(_0x2779ed,_0x333e06,_0x7aca59,_0xa3b797,_0x18c039,_0x2109c1[_0x9e6bc3(0xf4)]);return{..._0xfb4291,'tempAuthPath':_0x2384c0};}export function getNestedValue(_0x3ee6ec,_0x49bddf){const _0x5e5e67=_0x1f68ed,_0x29588d={'HzBPB':_0x5e5e67(0xfe)},_0x5528f7=parseKeyPath(_0x49bddf);let _0x1b3acd=_0x3ee6ec;for(const _0x483f75 of _0x5528f7){if(_0x1b3acd===null||_0x1b3acd===undefined||typeof _0x1b3acd!==_0x29588d[_0x5e5e67(0xc8)])return undefined;_0x1b3acd=_0x1b3acd[_0x483f75];}return _0x1b3acd;}export function setNestedValue(_0x1d2697,_0x49c557,_0x1e3794){const _0x4da44b=_0x1f68ed,_0x5213d1={'cOpkB':function(_0x473f40,_0x1d68b8){return _0x473f40<_0x1d68b8;},'BCciH':function(_0x211e7d,_0x5d708b){return _0x211e7d-_0x5d708b;},'ZEvZu':function(_0x56ce1c,_0x316dab){return _0x56ce1c-_0x316dab;}},_0x1eaf4a=parseKeyPath(_0x49c557);let _0x4dac57=_0x1d2697;for(let _0x49fbcc=0x0;_0x5213d1[_0x4da44b(0xef)](_0x49fbcc,_0x5213d1['BCciH'](_0x1eaf4a[_0x4da44b(0xd3)],0x1));_0x49fbcc++){const _0x2893df=_0x1eaf4a[_0x49fbcc];(!(_0x2893df in _0x4dac57)||typeof _0x4dac57[_0x2893df]!==_0x4da44b(0xfe))&&(_0x4dac57[_0x2893df]={}),_0x4dac57=_0x4dac57[_0x2893df];}_0x4dac57[_0x1eaf4a[_0x5213d1[_0x4da44b(0xd1)](_0x1eaf4a['length'],0x1)]]=_0x1e3794;}function _0x9bd2(_0x671a29,_0x2cb4d2){_0x671a29=_0x671a29-0xbf;const _0x127ee4=_0x127e();let _0x9bd21d=_0x127ee4[_0x671a29];return _0x9bd21d;}export function deleteNestedValue(_0x48bc22,_0x5592ce){const _0x33dfe0=_0x1f68ed,_0x2a9e92={'hSCkJ':function(_0x5548dd,_0x289e15){return _0x5548dd-_0x289e15;},'qZAkJ':function(_0x3292a4,_0x16053a){return _0x3292a4 in _0x16053a;}},_0x35a41f=parseKeyPath(_0x5592ce);let _0x2902b6=_0x48bc22;for(let _0x1da8c3=0x0;_0x1da8c3<_0x2a9e92['hSCkJ'](_0x35a41f['length'],0x1);_0x1da8c3++){if(_0x2902b6===null||_0x2902b6===undefined||typeof _0x2902b6!==_0x33dfe0(0xfe))return![];_0x2902b6=_0x2902b6[_0x35a41f[_0x1da8c3]];}if(_0x2902b6===null||_0x2902b6===undefined||typeof _0x2902b6!=='object')return![];const _0x37e1c9=_0x35a41f[_0x35a41f['length']-0x1];if(_0x2a9e92[_0x33dfe0(0xd8)](_0x37e1c9,_0x2902b6))return delete _0x2902b6[_0x37e1c9],!![];return![];}function parseKeyPath(_0x56c7e0){const _0x5b079c=_0x1f68ed,_0x531e90={'dyjzD':function(_0x46e63a,_0x4f5e0b){return _0x46e63a===_0x4f5e0b;},'Dnede':_0x5b079c(0xc4),'HEpgy':'headers'},_0x1d5fd2=_0x56c7e0['split']('.');return _0x531e90['dyjzD'](_0x1d5fd2[0x0],_0x531e90['Dnede'])&&(_0x1d5fd2[0x0]=_0x531e90['HEpgy']),_0x1d5fd2[0x0]==='setupHeader'&&(_0x1d5fd2[0x0]=_0x5b079c(0xc2)),_0x1d5fd2;}export function formatSettings(_0x4e14a0,_0x3ec3d7=0x0){const _0x538a3f=_0x1f68ed,_0x30569f={'fkmjf':function(_0x639610,_0x4eccc3){return _0x639610!==_0x4eccc3;}},_0x524004=[],_0x529c78='\x20\x20'[_0x538a3f(0xe7)](_0x3ec3d7);for(const [_0x387496,_0x14c9d1]of Object['entries'](_0x4e14a0)){if(_0x14c9d1===undefined)continue;if(typeof _0x14c9d1===_0x538a3f(0xfe)&&_0x30569f['fkmjf'](_0x14c9d1,null)){_0x524004['push'](''+_0x529c78+_0x387496+':');for(const [_0x42930c,_0x29d857]of Object['entries'](_0x14c9d1)){_0x524004['push'](_0x529c78+'\x20\x20'+_0x42930c+':\x20'+_0x29d857);}}else _0x524004[_0x538a3f(0xe4)](''+_0x529c78+_0x387496+':\x20'+_0x14c9d1);}return _0x524004[_0x538a3f(0x10d)]('\x0a');}
@@ -1 +1 @@
1
- (function(_0x3dc069,_0x2a31c7){const _0x23b669=_0x174d,_0x24c67f=_0x3dc069();while(!![]){try{const _0x4697a1=parseInt(_0x23b669(0x1c3))/0x1*(-parseInt(_0x23b669(0x1c6))/0x2)+-parseInt(_0x23b669(0x1bf))/0x3+-parseInt(_0x23b669(0x1c8))/0x4*(parseInt(_0x23b669(0x1c2))/0x5)+parseInt(_0x23b669(0x1c1))/0x6*(parseInt(_0x23b669(0x1c9))/0x7)+parseInt(_0x23b669(0x1c5))/0x8*(parseInt(_0x23b669(0x1c7))/0x9)+parseInt(_0x23b669(0x1bc))/0xa+-parseInt(_0x23b669(0x1c4))/0xb*(-parseInt(_0x23b669(0x1c0))/0xc);if(_0x4697a1===_0x2a31c7)break;else _0x24c67f['push'](_0x24c67f['shift']());}catch(_0xd385a1){_0x24c67f['push'](_0x24c67f['shift']());}}}(_0x33bd,0x38f07));function _0x174d(_0x147e84,_0x50e941){_0x147e84=_0x147e84-0x1bc;const _0x33bd7f=_0x33bd();let _0x174dbf=_0x33bd7f[_0x147e84];return _0x174dbf;}import{readFileSync}from'fs';function _0x33bd(){const _0x3278af=['80539fnmmEK','29029HUuPyh','5008ltXksA','10SkahiW','1728DWtTRw','1552972LuXWnR','21zZuXda','2908610KuXECI','OTnDj','gGWxz','705042wNGGGA','3012aFtAYW','371466zasdzA','5TMhDEc'];_0x33bd=function(){return _0x3278af;};return _0x33bd();}import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export function readSkillContent(_0x1c60bf){const _0x266b3d=_0x174d,_0x4b6cef={'WGoIH':'skills','gGWxz':function(_0x27a5b5,_0x24ffb8,_0x33bc41){return _0x27a5b5(_0x24ffb8,_0x33bc41);},'OTnDj':'utf-8'},_0x2fdf9a=join(__dirname,'..','..',_0x4b6cef['WGoIH']),_0x5e32cc=_0x4b6cef[_0x266b3d(0x1be)](join,_0x2fdf9a,_0x1c60bf);try{return readFileSync(_0x5e32cc,_0x4b6cef[_0x266b3d(0x1bd)]);}catch{return'';}}export function getRangerSkillContent(){return readSkillContent('ranger/SKILL.md');}
1
+ (function(_0x1adfef,_0x123b36){const _0xbe357=_0x3aaa,_0x5e0149=_0x1adfef();while(!![]){try{const _0x5235a6=-parseInt(_0xbe357(0x18b))/0x1+parseInt(_0xbe357(0x18e))/0x2+-parseInt(_0xbe357(0x187))/0x3*(-parseInt(_0xbe357(0x193))/0x4)+parseInt(_0xbe357(0x191))/0x5+parseInt(_0xbe357(0x18f))/0x6+-parseInt(_0xbe357(0x188))/0x7+-parseInt(_0xbe357(0x186))/0x8*(parseInt(_0xbe357(0x189))/0x9);if(_0x5235a6===_0x123b36)break;else _0x5e0149['push'](_0x5e0149['shift']());}catch(_0x2bcfbc){_0x5e0149['push'](_0x5e0149['shift']());}}}(_0x2eb9,0xcb6db));import{readFileSync}from'fs';import{dirname,join}from'path';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function _0x2eb9(){const _0xf8df22=['dqBTA','ranger/SKILL.md','1357102ZKItzd','2731062oQlHNk','utf-8','5942680TXkdJB','gYkpk','70880ALKPSY','696yHFPoy','153shbbfY','10148789eTLZpU','56862ljaBGt','HxSoG','393248albJVO'];_0x2eb9=function(){return _0xf8df22;};return _0x2eb9();}export function readSkillContent(_0x5e669a){const _0x3c5052=_0x3aaa,_0x2b8969={'drMCH':'skills','gYkpk':function(_0x24a3bd,_0x53df37,_0x490164){return _0x24a3bd(_0x53df37,_0x490164);},'oQZOP':function(_0x22eefe,_0x9de34,_0x360f40){return _0x22eefe(_0x9de34,_0x360f40);},'TMNth':_0x3c5052(0x190)},_0x221e8e=join(__dirname,'..','..',_0x2b8969['drMCH']),_0x2dfd50=_0x2b8969[_0x3c5052(0x192)](join,_0x221e8e,_0x5e669a);try{return _0x2b8969['oQZOP'](readFileSync,_0x2dfd50,_0x2b8969['TMNth']);}catch{return'';}}function _0x3aaa(_0x6a8772,_0x1ccdd5){_0x6a8772=_0x6a8772-0x186;const _0x2eb910=_0x2eb9();let _0x3aaac5=_0x2eb910[_0x6a8772];return _0x3aaac5;}export function getRangerSkillContent(){const _0x393913=_0x3aaa,_0x3dc1b5={'dqBTA':function(_0x4f0b51,_0x450b85){return _0x4f0b51(_0x450b85);},'HxSoG':_0x393913(0x18d)};return _0x3dc1b5[_0x393913(0x18c)](readSkillContent,_0x3dc1b5[_0x393913(0x18a)]);}
@@ -1 +1 @@
1
- (function(_0x17adc5,_0x3b10cc){const _0x1d3f3e=_0x33d5,_0x81e06a=_0x17adc5();while(!![]){try{const _0x2c0aec=parseInt(_0x1d3f3e(0x11c))/0x1*(parseInt(_0x1d3f3e(0x12b))/0x2)+parseInt(_0x1d3f3e(0x121))/0x3*(-parseInt(_0x1d3f3e(0x11f))/0x4)+-parseInt(_0x1d3f3e(0x120))/0x5+-parseInt(_0x1d3f3e(0x12f))/0x6*(-parseInt(_0x1d3f3e(0x119))/0x7)+-parseInt(_0x1d3f3e(0x12c))/0x8+parseInt(_0x1d3f3e(0x139))/0x9*(-parseInt(_0x1d3f3e(0x127))/0xa)+parseInt(_0x1d3f3e(0x11e))/0xb*(parseInt(_0x1d3f3e(0x136))/0xc);if(_0x2c0aec===_0x3b10cc)break;else _0x81e06a['push'](_0x81e06a['shift']());}catch(_0x168010){_0x81e06a['push'](_0x81e06a['shift']());}}}(_0x5222,0xb2842));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';function _0x33d5(_0x11094a,_0x2d5a22){_0x11094a=_0x11094a-0x119;const _0x5222c7=_0x5222();let _0x33d57f=_0x5222c7[_0x11094a];return _0x33d57f;}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=['ranger'];export const DEPRECATED_SKILLS=['e2e-test-recommender','bug-bash','feature-tracker'];function _0x5222(){const _0x51e262=['SKILL.md','length','opencode','claude','WWjQw','TFuWN','1416648oUVgOk','utf-8','join','63RvVQge','lNNqd','28jhWpLY','OmsgZ','\x20\x20Removed\x20deprecated\x20skill:\x20','236777aDMXDV','fKwdZ','143XzzrZb','4lwlfmX','1150025PuimIP','2477067zZrltc','trim','EMJoW','endsWith','match','KeDSO','243170SQetQv','\x20\x20Files:\x20','skills','project','6ENVUlN','10516656rXJhGO','log','catch','1539996SIFvEB'];_0x5222=function(){return _0x51e262;};return _0x5222();}export async function installSkill(_0x71ba4c,_0x5ea6a2={}){const _0x38e4a1=_0x33d5,_0x4abee5={'IGGMY':_0x38e4a1(0x133),'KeDSO':function(_0x504731,_0x376af2,_0x30c68c){return _0x504731(_0x376af2,_0x30c68c);},'tJKsM':function(_0x1cef2e,_0x1e4c07){return _0x1cef2e(_0x1e4c07);},'OmsgZ':function(_0x5c2e58,_0x39b3df){return _0x5c2e58(_0x39b3df);},'BDfgi':function(_0x137a32,_0xb7de){return _0x137a32&&_0xb7de;},'UoZxH':function(_0x1d9f34,_0x580a3b){return _0x1d9f34===_0x580a3b;},'TFuWN':_0x38e4a1(0x130),'lNNqd':'utf-8','izedW':function(_0x18d066,_0x9c789e,_0x17ba18,_0x3e08b){return _0x18d066(_0x9c789e,_0x17ba18,_0x3e08b);}},{level:level=_0x38e4a1(0x12a),cliVersion:_0x1ae97c,platform:platform=_0x4abee5['IGGMY']}=_0x5ea6a2,_0x3a0574=getSourceSkillsDir(),_0x2ddcb1=_0x4abee5[_0x38e4a1(0x126)](join,_0x3a0574,_0x71ba4c),_0x4b4808=join(_0x3a0574,_0x71ba4c+'.md'),_0x4b24ce=existsSync(_0x2ddcb1)&&_0x4abee5['tJKsM'](statSync,_0x2ddcb1)['isDirectory']()&&_0x4abee5[_0x38e4a1(0x11a)](existsSync,join(_0x2ddcb1,_0x38e4a1(0x130))),_0x53b96b=_0x4abee5[_0x38e4a1(0x11a)](existsSync,_0x4b4808);if(_0x4abee5['BDfgi'](!_0x4b24ce,!_0x53b96b))return console['warn']('\x20\x20Skill\x20not\x20found:\x20'+_0x71ba4c),![];const _0x54668a=_0x4abee5['UoZxH'](platform,_0x38e4a1(0x132))?_0x4abee5[_0x38e4a1(0x11a)](getOpencodeSkillsDir,level):_0x4abee5[_0x38e4a1(0x11a)](getSkillsDir,level),_0x2ace64=join(_0x54668a,_0x71ba4c);await _0x4abee5[_0x38e4a1(0x126)](mkdir,_0x2ace64,{'recursive':!![]});let _0x56a156,_0x3503bc=[];if(_0x4b24ce){const _0x258ea0=await _0x4abee5['OmsgZ'](readdir,_0x2ddcb1),_0x5b6623=_0x258ea0['filter'](_0x39657f=>_0x39657f[_0x38e4a1(0x124)]('.md'));for(const _0x4a2885 of _0x5b6623){const _0x2f16c0=join(_0x2ddcb1,_0x4a2885),_0x2dbecf=join(_0x2ace64,_0x4a2885);await copyFile(_0x2f16c0,_0x2dbecf),_0x3503bc['push'](_0x4a2885);}_0x56a156=await readFile(_0x4abee5[_0x38e4a1(0x126)](join,_0x2ddcb1,_0x4abee5[_0x38e4a1(0x135)]),'utf-8');}else{_0x56a156=await _0x4abee5[_0x38e4a1(0x126)](readFile,_0x4b4808,_0x38e4a1(0x137));const _0x55a0f1=join(_0x2ace64,_0x4abee5['TFuWN']);await writeFile(_0x55a0f1,_0x56a156,_0x4abee5[_0x38e4a1(0x13a)]),_0x3503bc['push'](_0x38e4a1(0x130));}const {name:_0x44976d}=parseFrontmatter(_0x56a156);return console[_0x38e4a1(0x12d)]('\x20\x20Installed\x20skill:\x20'+_0x44976d),console[_0x38e4a1(0x12d)]('\x20\x20Location:\x20'+_0x2ace64),_0x3503bc[_0x38e4a1(0x131)]>0x1&&console['log'](_0x38e4a1(0x128)+_0x3503bc[_0x38e4a1(0x138)](',\x20')),_0x4abee5['izedW'](logLocalAgentInstallation,_0x71ba4c,{'skillDisplayName':_0x44976d,'installLevel':level},_0x1ae97c)[_0x38e4a1(0x12e)](()=>{}),!![];}function getSourceSkillsDir(){const _0x48a5e2=_0x33d5,_0x1a4cd5={'WWjQw':'skills','sUYge':function(_0x261bf,_0x2ad2fc){return _0x261bf(_0x2ad2fc);}},_0x30c814=[join(__dirname,'..','..',_0x1a4cd5[_0x48a5e2(0x134)]),join(__dirname,'..','..','..',_0x48a5e2(0x129))];for(const _0xf733be of _0x30c814){if(_0x1a4cd5['sUYge'](existsSync,_0xf733be))return _0xf733be;}return _0x30c814[0x0];}function parseFrontmatter(_0x2f2118){const _0x2f945d=_0x33d5,_0x1ed8c2={'fpyjH':'Invalid\x20skill\x20frontmatter'},_0x1b3a39=_0x2f2118['match'](/^---\n([\s\S]+?)\n---/);if(!_0x1b3a39)throw new Error(_0x1ed8c2['fpyjH']);const _0x4806e8=_0x1b3a39[0x1],_0x2a5523=_0x4806e8[_0x2f945d(0x125)](/name:\s*(.+)/),_0x504999=_0x4806e8['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0x2a5523?.[0x1][_0x2f945d(0x122)]()||'','description':_0x504999?.[0x1][_0x2f945d(0x122)]()||''};}export async function removeSkill(_0x5cd103,_0x21c7d0){const _0x2a0076=_0x33d5,_0x69cc24={'EMJoW':function(_0x3f9ca5,_0xc09cdd,_0x4fe504){return _0x3f9ca5(_0xc09cdd,_0x4fe504);},'fKwdZ':function(_0x21b3da,_0x4bf8c4,_0x514875){return _0x21b3da(_0x4bf8c4,_0x514875);}},_0xdbe869=getSkillsDir(_0x21c7d0),_0x168df8=_0x69cc24[_0x2a0076(0x123)](join,_0xdbe869,_0x5cd103);if(!existsSync(_0x168df8))return![];try{return await _0x69cc24[_0x2a0076(0x11d)](rm,_0x168df8,{'recursive':!![]}),console['log'](_0x2a0076(0x11b)+_0x5cd103),!![];}catch{return console['warn']('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x5cd103),![];}}
1
+ const _0x592f1d=_0x1c90;(function(_0x551883,_0x8e59ff){const _0x5d8959=_0x1c90,_0x1f7324=_0x551883();while(!![]){try{const _0x2ec678=-parseInt(_0x5d8959(0x11a))/0x1*(parseInt(_0x5d8959(0x131))/0x2)+parseInt(_0x5d8959(0x12d))/0x3*(parseInt(_0x5d8959(0x114))/0x4)+parseInt(_0x5d8959(0x11b))/0x5*(-parseInt(_0x5d8959(0x119))/0x6)+parseInt(_0x5d8959(0x116))/0x7+-parseInt(_0x5d8959(0x11c))/0x8+-parseInt(_0x5d8959(0x134))/0x9+-parseInt(_0x5d8959(0x111))/0xa*(-parseInt(_0x5d8959(0x11d))/0xb);if(_0x2ec678===_0x8e59ff)break;else _0x1f7324['push'](_0x1f7324['shift']());}catch(_0x171492){_0x1f7324['push'](_0x1f7324['shift']());}}}(_0x2624,0xdb081));import{readFile,writeFile,mkdir,readdir,copyFile,rm}from'fs/promises';import{join,dirname}from'path';import{existsSync,statSync}from'fs';import{fileURLToPath}from'url';import{logLocalAgentInstallation}from'./localAgentInstallationsApi.js';function _0x2624(){const _0x409c52=['\x20\x20Installed\x20skill:\x20','trim','nrfiP','feature-tracker','6tgMKRl','warn','log','\x20\x20Location:\x20','2ILbtWv','claude','IyPlo','1251630bOTrCP','10lIueNA','oPQHN','skills','1768028CYwmOf','\x20\x20Skill\x20not\x20found:\x20','7646982kDmLCA','join','SdNuq','729996qdmeGQ','1423222wUbjjJ','20WMckbD','3456864fONVzw','15419547bxCJnC','length','\x20\x20Files:\x20','push','tPZGA','Jbsvz','akQSw','FTljp','dEKKp','OKmtz','SKILL.md','\x20\x20Removed\x20deprecated\x20skill:\x20'];_0x2624=function(){return _0x409c52;};return _0x2624();}import{getSkillsDir}from'./claudeConfig.js';import{getOpencodeSkillsDir}from'./opencodeConfig.js';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function _0x1c90(_0x3ccdf0,_0xf0ef99){_0x3ccdf0=_0x3ccdf0-0x111;const _0x262441=_0x2624();let _0x1c9056=_0x262441[_0x3ccdf0];return _0x1c9056;}export const RANGER_MANAGED_SKILLS=['ranger'];export const DEPRECATED_SKILLS=['e2e-test-recommender','bug-bash',_0x592f1d(0x12c)];export async function installSkill(_0xf1c54,_0x20d86a={}){const _0xc0db6e=_0x592f1d,_0x2e3472={'Nsbep':function(_0x4d1be5){return _0x4d1be5();},'tPZGA':function(_0x96e75c,_0x2ae551,_0x24f9b4){return _0x96e75c(_0x2ae551,_0x24f9b4);},'HQtWD':function(_0x2b3e02,_0x49566b){return _0x2b3e02(_0x49566b);},'GHoOy':function(_0x4fd161,_0xf17158,_0xcac82f){return _0x4fd161(_0xf17158,_0xcac82f);},'SdNuq':'SKILL.md','FTljp':function(_0x159fcf,_0x33417e){return _0x159fcf&&_0x33417e;},'OKmtz':function(_0x177b8a,_0x422cb2){return _0x177b8a===_0x422cb2;},'SWbDP':function(_0x4d5da1,_0x3d9dbd){return _0x4d5da1(_0x3d9dbd);},'IyPlo':function(_0x495f88,_0x2764df){return _0x495f88(_0x2764df);},'Poszb':function(_0x3cb115,_0x58e8e9,_0x3b28c5){return _0x3cb115(_0x58e8e9,_0x3b28c5);},'oPQHN':'utf-8','maWCU':function(_0x7cc018,_0x216366){return _0x7cc018(_0x216366);},'dEKKp':function(_0x1127b8,_0x166b4d,_0x104ed3,_0x12f73a){return _0x1127b8(_0x166b4d,_0x104ed3,_0x12f73a);}},{level:level='project',cliVersion:_0x2c2681,platform:platform=_0xc0db6e(0x132)}=_0x20d86a,_0xce5120=_0x2e3472['Nsbep'](getSourceSkillsDir),_0x17f738=_0x2e3472['tPZGA'](join,_0xce5120,_0xf1c54),_0x4846dd=_0x2e3472[_0xc0db6e(0x121)](join,_0xce5120,_0xf1c54+'.md'),_0x5f4f13=existsSync(_0x17f738)&&_0x2e3472['HQtWD'](statSync,_0x17f738)['isDirectory']()&&existsSync(_0x2e3472['GHoOy'](join,_0x17f738,_0x2e3472[_0xc0db6e(0x118)])),_0x33c01f=existsSync(_0x4846dd);if(_0x2e3472[_0xc0db6e(0x124)](!_0x5f4f13,!_0x33c01f))return console['warn'](_0xc0db6e(0x115)+_0xf1c54),![];const _0x45f9d7=_0x2e3472[_0xc0db6e(0x126)](platform,'opencode')?_0x2e3472['SWbDP'](getOpencodeSkillsDir,level):_0x2e3472[_0xc0db6e(0x133)](getSkillsDir,level),_0x35cdc8=_0x2e3472['tPZGA'](join,_0x45f9d7,_0xf1c54);await mkdir(_0x35cdc8,{'recursive':!![]});let _0x482b81,_0x510e51=[];if(_0x5f4f13){const _0x1097ad=await readdir(_0x17f738),_0x43f4b5=_0x1097ad['filter'](_0x439aeb=>_0x439aeb['endsWith']('.md'));for(const _0x3470a1 of _0x43f4b5){const _0x589b64=join(_0x17f738,_0x3470a1),_0xddf7af=_0x2e3472[_0xc0db6e(0x121)](join,_0x35cdc8,_0x3470a1);await _0x2e3472['Poszb'](copyFile,_0x589b64,_0xddf7af),_0x510e51[_0xc0db6e(0x120)](_0x3470a1);}_0x482b81=await _0x2e3472['Poszb'](readFile,_0x2e3472['tPZGA'](join,_0x17f738,_0x2e3472['SdNuq']),_0x2e3472[_0xc0db6e(0x112)]);}else{_0x482b81=await readFile(_0x4846dd,_0x2e3472['oPQHN']);const _0x7539ad=join(_0x35cdc8,_0xc0db6e(0x127));await writeFile(_0x7539ad,_0x482b81,'utf-8'),_0x510e51['push']('SKILL.md');}const {name:_0x1ebe55}=_0x2e3472['maWCU'](parseFrontmatter,_0x482b81);return console['log'](_0xc0db6e(0x129)+_0x1ebe55),console[_0xc0db6e(0x12f)](_0xc0db6e(0x130)+_0x35cdc8),_0x510e51[_0xc0db6e(0x11e)]>0x1&&console['log'](_0xc0db6e(0x11f)+_0x510e51[_0xc0db6e(0x117)](',\x20')),_0x2e3472[_0xc0db6e(0x125)](logLocalAgentInstallation,_0xf1c54,{'skillDisplayName':_0x1ebe55,'installLevel':level},_0x2c2681)['catch'](()=>{}),!![];}function getSourceSkillsDir(){const _0x149534=_0x592f1d,_0x2338c3={'WqXFe':function(_0x5b940a,_0x49c1bc,_0x1f3ae7,_0x164897,_0x1eb540){return _0x5b940a(_0x49c1bc,_0x1f3ae7,_0x164897,_0x1eb540);},'akQSw':_0x149534(0x113)},_0x5e67c1=[_0x2338c3['WqXFe'](join,__dirname,'..','..',_0x149534(0x113)),join(__dirname,'..','..','..',_0x2338c3[_0x149534(0x123)])];for(const _0x1c2293 of _0x5e67c1){if(existsSync(_0x1c2293))return _0x1c2293;}return _0x5e67c1[0x0];}function parseFrontmatter(_0x450f20){const _0x2621f2=_0x592f1d,_0x321555={'nrfiP':'Invalid\x20skill\x20frontmatter'},_0x266d6d=_0x450f20['match'](/^---\n([\s\S]+?)\n---/);if(!_0x266d6d)throw new Error(_0x321555[_0x2621f2(0x12b)]);const _0x5a2a60=_0x266d6d[0x1],_0x4259ba=_0x5a2a60['match'](/name:\s*(.+)/),_0x3d23d7=_0x5a2a60['match'](/description:\s*"?(.+?)"?\n/);return{'name':_0x4259ba?.[0x1][_0x2621f2(0x12a)]()||'','description':_0x3d23d7?.[0x1]['trim']()||''};}export async function removeSkill(_0x5a407e,_0x213d5a){const _0x267931=_0x592f1d,_0x10f597={'Jbsvz':function(_0x148948,_0x1a6c14){return _0x148948(_0x1a6c14);}},_0x5371fe=getSkillsDir(_0x213d5a),_0x375759=join(_0x5371fe,_0x5a407e);if(!_0x10f597[_0x267931(0x122)](existsSync,_0x375759))return![];try{return await rm(_0x375759,{'recursive':!![]}),console['log'](_0x267931(0x128)+_0x5a407e),!![];}catch{return console[_0x267931(0x12e)]('\x20\x20Failed\x20to\x20remove\x20deprecated\x20skill:\x20'+_0x5a407e),![];}}
@@ -1 +1 @@
1
- const _0x4bf298=_0xff40;(function(_0x3403fe,_0x2ef234){const _0x45bc19=_0xff40,_0x4d23a1=_0x3403fe();while(!![]){try{const _0x2321a7=-parseInt(_0x45bc19(0x13c))/0x1*(-parseInt(_0x45bc19(0x12a))/0x2)+-parseInt(_0x45bc19(0x130))/0x3*(-parseInt(_0x45bc19(0x158))/0x4)+-parseInt(_0x45bc19(0x11e))/0x5+-parseInt(_0x45bc19(0x14e))/0x6+-parseInt(_0x45bc19(0x144))/0x7*(parseInt(_0x45bc19(0x128))/0x8)+-parseInt(_0x45bc19(0x14f))/0x9+parseInt(_0x45bc19(0x15b))/0xa*(parseInt(_0x45bc19(0x132))/0xb);if(_0x2321a7===_0x2ef234)break;else _0x4d23a1['push'](_0x4d23a1['shift']());}catch(_0x2dc283){_0x4d23a1['push'](_0x4d23a1['shift']());}}}(_0x12ae,0x4040b));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(_0x404fb1,_0x23cad7){const _0x6e3a26=_0xff40,_0x1ddd33={'ZrpQU':function(_0x59eb93,_0x311cf9){return _0x59eb93&_0x311cf9;},'iJAcw':function(_0x26fa88,_0x3260b5){return _0x26fa88>_0x3260b5;},'UOraF':function(_0x290417,_0x7f6167){return _0x290417+_0x7f6167;},'jHkEE':function(_0x22ca28,_0x565932){return _0x22ca28<_0x565932;},'myADY':function(_0x56594d,_0x4f2be4){return _0x56594d*_0x4f2be4;},'RZVFQ':function(_0x47c9ac,_0xed2f20){return _0x47c9ac+_0xed2f20;}};if(_0x23cad7>=_0x404fb1[_0x6e3a26(0x149)])return[0x0,0x0];const _0x20a6d8=_0x404fb1[_0x23cad7];let _0x5e942f=0x1,_0x3cb35a=0x80;while(_0x5e942f<=0x8&&!_0x1ddd33[_0x6e3a26(0x136)](_0x20a6d8,_0x3cb35a)){_0x5e942f++,_0x3cb35a>>=0x1;}if(_0x1ddd33['iJAcw'](_0x1ddd33[_0x6e3a26(0x155)](_0x23cad7,_0x5e942f),_0x404fb1[_0x6e3a26(0x149)]))return[0x0,0x0];let _0x4fc1d8=_0x20a6d8&_0x3cb35a-0x1;for(let _0x5acb6b=0x1;_0x1ddd33['jHkEE'](_0x5acb6b,_0x5e942f);_0x5acb6b++){_0x4fc1d8=_0x1ddd33['UOraF'](_0x1ddd33['myADY'](_0x4fc1d8,0x100),_0x404fb1[_0x1ddd33[_0x6e3a26(0x153)](_0x23cad7,_0x5acb6b)]);}return[_0x4fc1d8,_0x5e942f];}function readId(_0x198de6,_0x308c9a){const _0x328e58=_0xff40,_0x31b5f2={'vUfdA':function(_0x34dbf6,_0x1288ea){return _0x34dbf6>=_0x1288ea;},'dLKjP':function(_0x1d94fb,_0x16111d){return _0x1d94fb>_0x16111d;},'svgai':function(_0x422480,_0x3ab949){return _0x422480+_0x3ab949;}};if(_0x308c9a>=_0x198de6[_0x328e58(0x149)])return[0x0,0x0];const _0x2acc57=_0x198de6[_0x308c9a];let _0x514d50;if(_0x2acc57>=0x80)_0x514d50=0x1;else{if(_0x2acc57>=0x40)_0x514d50=0x2;else{if(_0x2acc57>=0x20)_0x514d50=0x3;else{if(_0x31b5f2['vUfdA'](_0x2acc57,0x10))_0x514d50=0x4;else return[_0x2acc57,0x1];}}}if(_0x31b5f2[_0x328e58(0x13a)](_0x31b5f2[_0x328e58(0x11a)](_0x308c9a,_0x514d50),_0x198de6[_0x328e58(0x149)]))return[0x0,0x0];let _0x325b71=0x0;for(let _0x2f5632=0x0;_0x2f5632<_0x514d50;_0x2f5632++){_0x325b71=_0x325b71*0x100+_0x198de6[_0x308c9a+_0x2f5632];}return[_0x325b71,_0x514d50];}function readUint(_0x24187b,_0x5c3f3a,_0x11c601){const _0x2fdf8d=_0xff40,_0x370d2f={'LjJje':function(_0xf4e785,_0x12fadf){return _0xf4e785+_0x12fadf;},'lUxGH':function(_0x4f3567,_0x264125){return _0x4f3567*_0x264125;}};let _0x23fa89=0x0;for(let _0x467a95=0x0;_0x467a95<_0x11c601;_0x467a95++){_0x23fa89=_0x370d2f[_0x2fdf8d(0x122)](_0x370d2f['lUxGH'](_0x23fa89,0x100),_0x24187b[_0x5c3f3a+_0x467a95]);}return _0x23fa89;}function isUnknownSize(_0x26b105,_0x130e15){const _0x295ccf=_0xff40,_0x4116ee={'RXmwC':function(_0x29b659,_0x47879a){return _0x29b659*_0x47879a;}};return _0x26b105===Math['pow'](0x2,_0x4116ee[_0x295ccf(0x156)](0x7,_0x130e15))-0x1;}function writeVint(_0x48d6a9,_0x56da0a){const _0x19dbef=_0xff40,_0x5b458a={'BGqle':function(_0x352088,_0x289b2d){return _0x352088||_0x289b2d;},'CJgqz':function(_0xa959dd,_0x2906c6){return _0xa959dd<_0x2906c6;},'ZkNUY':function(_0x4e49a3,_0x25e6eb){return _0x4e49a3-_0x25e6eb;},'wHykk':function(_0x3b9f73,_0x5334d4){return _0x3b9f73*_0x5334d4;},'hANMi':function(_0x556eb4,_0x593a33){return _0x556eb4>=_0x593a33;},'BJdnI':function(_0x3cb90d,_0x400f8a){return _0x3cb90d<<_0x400f8a;},'nQiGZ':function(_0x42713b,_0x288f6d){return _0x42713b-_0x288f6d;}};let _0x566f5b=_0x5b458a['BGqle'](_0x56da0a,0x1);while(_0x5b458a['CJgqz'](_0x5b458a['ZkNUY'](Math[_0x19dbef(0x135)](0x2,_0x5b458a[_0x19dbef(0x13f)](0x7,_0x566f5b)),0x2),_0x48d6a9))_0x566f5b++;const _0x55bb51=Buffer[_0x19dbef(0x142)](_0x566f5b);for(let _0x3a0bda=_0x566f5b-0x1;_0x5b458a['hANMi'](_0x3a0bda,0x0);_0x3a0bda--){_0x55bb51[_0x3a0bda]=_0x48d6a9&0xff,_0x48d6a9=Math[_0x19dbef(0x152)](_0x48d6a9/0x100);}return _0x55bb51[0x0]|=_0x5b458a['BJdnI'](0x1,_0x5b458a[_0x19dbef(0x11f)](0x8,_0x566f5b)),_0x55bb51;}function writeUint(_0x5b69e3,_0x29f0ee){const _0xdcc8b=_0xff40,_0x59546f=Buffer[_0xdcc8b(0x142)](_0x29f0ee);for(let _0xe06e3a=_0x29f0ee-0x1;_0xe06e3a>=0x0;_0xe06e3a--){_0x59546f[_0xe06e3a]=_0x5b69e3&0xff,_0x5b69e3=Math[_0xdcc8b(0x152)](_0x5b69e3/0x100);}return _0x59546f;}function writeUnknownSizeVint(_0x216092){const _0x2f5d80={'FTtIZ':function(_0x588d72,_0x1db5b2){return _0x588d72>>_0x1db5b2;}},_0x3a4cab=Buffer['alloc'](_0x216092,0xff);return _0x3a4cab[0x0]=_0x2f5d80['FTtIZ'](0xff,_0x216092-0x1),_0x3a4cab;}function uintSize(_0x24aaba){const _0x2bf6d1=_0xff40,_0x245b87={'Lhelz':function(_0x4abce3,_0x48a5d0){return _0x4abce3>_0x48a5d0;}};if(_0x24aaba===0x0)return 0x1;let _0x146b62=0x0,_0x3eddda=_0x24aaba;while(_0x245b87['Lhelz'](_0x3eddda,0x0)){_0x146b62++,_0x3eddda=Math[_0x2bf6d1(0x152)](_0x3eddda/0x100);}return _0x146b62;}function findTimestampScale(_0x301cf5,_0x1eb556){const _0x316155=_0xff40,_0x19cb93={'IdbZq':function(_0x12e66e,_0x33fe5e){return _0x12e66e+_0x33fe5e;},'UgLZO':function(_0x4baf5f,_0x26c7a7){return _0x4baf5f<_0x26c7a7;},'ZeIHG':function(_0x3e65cb,_0x4a7537,_0x10eaa2){return _0x3e65cb(_0x4a7537,_0x10eaa2);},'KRnbF':function(_0xe6b705,_0x234793){return _0xe6b705===_0x234793;},'ZzWeE':function(_0x358a1c,_0x405d74){return _0x358a1c+_0x405d74;}};let _0x284d9e=_0x1eb556;const _0x35f916=Math[_0x316155(0x14d)](_0x301cf5['length'],_0x1eb556+0x2710);while(_0x284d9e<_0x35f916){const [_0x5917b5,_0x1bba95]=readId(_0x301cf5,_0x284d9e),[_0x360077,_0x37a3bb]=readVint(_0x301cf5,_0x284d9e+_0x1bba95);if(_0x5917b5===ID_INFO){let _0x1ce65f=_0x19cb93['IdbZq'](_0x284d9e,_0x1bba95)+_0x37a3bb;const _0x476877=_0x19cb93['IdbZq'](_0x1ce65f,_0x360077);while(_0x19cb93['UgLZO'](_0x1ce65f,_0x476877)){const [_0x2f4bf1,_0x3cded8]=_0x19cb93['ZeIHG'](readId,_0x301cf5,_0x1ce65f),[_0x553f9d,_0x2b4a5d]=_0x19cb93['ZeIHG'](readVint,_0x301cf5,_0x19cb93['IdbZq'](_0x1ce65f,_0x3cded8));if(_0x19cb93['KRnbF'](_0x2f4bf1,ID_TIMESTAMP_SCALE))return readUint(_0x301cf5,_0x19cb93[_0x316155(0x13b)](_0x19cb93['IdbZq'](_0x1ce65f,_0x3cded8),_0x2b4a5d),_0x553f9d);_0x1ce65f+=_0x3cded8+_0x2b4a5d+_0x553f9d;}break;}if(_0x19cb93[_0x316155(0x12c)](_0x5917b5,ID_CLUSTER))break;if(isUnknownSize(_0x360077,_0x37a3bb))break;_0x284d9e+=_0x1bba95+_0x37a3bb+_0x360077;}return 0xf4240;}function findFirstClusterOffset(_0x3d1d84,_0x195486){const _0x2595f1=_0xff40,_0x335983={'rIgiz':function(_0x320818,_0x534250){return _0x320818<_0x534250;},'KKyXa':function(_0x460138,_0x9dd34){return _0x460138===_0x9dd34;},'VLNAk':function(_0x52f9d0,_0x283abb,_0x11e7d2){return _0x52f9d0(_0x283abb,_0x11e7d2);},'ilGac':function(_0x52ded0,_0x9d16c2){return _0x52ded0+_0x9d16c2;}};let _0x2108bf=_0x195486;while(_0x335983['rIgiz'](_0x2108bf,_0x3d1d84[_0x2595f1(0x149)])){const [_0x5d1cda,_0x55b443]=readId(_0x3d1d84,_0x2108bf);if(_0x335983[_0x2595f1(0x131)](_0x5d1cda,ID_CLUSTER))return _0x2108bf;const [_0x1cd93c,_0x155dde]=readVint(_0x3d1d84,_0x2108bf+_0x55b443);if(_0x335983[_0x2595f1(0x12d)](isUnknownSize,_0x1cd93c,_0x155dde))return _0x2108bf;_0x2108bf+=_0x335983[_0x2595f1(0x12b)](_0x55b443,_0x155dde)+_0x1cd93c;}return _0x3d1d84['length'];}function findClusterEnd(_0x76e274,_0x4b14ae,_0x185caf,_0x2821ba){const _0x495c70=_0xff40,_0x100c8b={'ItcbT':function(_0x1fa48b,_0x5657fd,_0x2fb7cb){return _0x1fa48b(_0x5657fd,_0x2fb7cb);},'wDIJJ':function(_0x5f0d9f,_0x305052){return _0x5f0d9f+_0x305052;},'xStuz':function(_0xbe0f0,_0x31ad79,_0xc791d3){return _0xbe0f0(_0x31ad79,_0xc791d3);},'uwwqg':function(_0x4a55d1,_0x576933,_0x1706c3){return _0x4a55d1(_0x576933,_0x1706c3);}};if(!_0x100c8b[_0x495c70(0x127)](isUnknownSize,_0x185caf,_0x2821ba))return _0x100c8b[_0x495c70(0x138)](_0x4b14ae,_0x185caf);const _0x4fa29e=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x228339=_0x4b14ae;while(_0x228339<_0x76e274[_0x495c70(0x149)]-0x4){const [_0x160b7a,_0x15b678]=_0x100c8b['xStuz'](readId,_0x76e274,_0x228339);if(_0x4fa29e['has'](_0x160b7a))return _0x228339;const [_0xc8c659,_0xd32670]=_0x100c8b['uwwqg'](readVint,_0x76e274,_0x228339+_0x15b678);if(_0x100c8b[_0x495c70(0x127)](isUnknownSize,_0xc8c659,_0xd32670))return _0x76e274[_0x495c70(0x149)];_0x228339+=_0x15b678+_0xd32670+_0xc8c659;}return _0x76e274[_0x495c70(0x149)];}function extractClusters(_0x264b80,_0x486ee8){const _0x31f016=_0xff40,_0x2b96b3={'wXpfa':function(_0xd82f6e,_0x2bab30){return _0xd82f6e+_0x2bab30;},'dnctD':function(_0x4ca656,_0x2945cf){return _0x4ca656+_0x2945cf;},'DfarW':function(_0x23517f,_0x10feae){return _0x23517f<_0x10feae;},'itOub':function(_0x3a4521,_0x4bc005,_0x2fcf14){return _0x3a4521(_0x4bc005,_0x2fcf14);},'JaRhW':function(_0x32fc7e,_0x3b492d){return _0x32fc7e+_0x3b492d;},'Wlprz':function(_0x4c6476,_0xa34868){return _0x4c6476+_0xa34868;},'aEYpe':function(_0x34f1bd,_0x73eb22){return _0x34f1bd+_0x73eb22;},'iqtXU':function(_0x38ee8a,_0x1d0e65){return _0x38ee8a+_0x1d0e65;},'UmWEH':function(_0x4c631b,_0x4db06c,_0x29d666){return _0x4c631b(_0x4db06c,_0x29d666);},'MIFdd':function(_0x2fb737,_0x370189){return _0x2fb737+_0x370189;},'YOOUW':function(_0x3ee1ed,_0x1f6848){return _0x3ee1ed<_0x1f6848;},'YlFNz':function(_0x23ba68,_0x394746){return _0x23ba68>=_0x394746;},'hvagI':function(_0x446985,_0x308a72){return _0x446985+_0x308a72;},'qlwPp':function(_0x388256,_0x1d2e4a){return _0x388256+_0x1d2e4a;},'njLbJ':function(_0x223c47,_0x4b8164){return _0x223c47+_0x4b8164;},'hIzve':function(_0x527a74,_0x10e5ca){return _0x527a74===_0x10e5ca;},'pVVFu':function(_0x36b5c8,_0xde9f34){return _0x36b5c8+_0xde9f34;},'CcFoT':function(_0x113bd0,_0x2362eb){return _0x113bd0+_0x2362eb;}},_0x578203=[],_0x315f73=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x56d004=0x0;while(_0x56d004<_0x264b80['length']){const _0x476380=_0x264b80['indexOf'](_0x315f73,_0x56d004);if(_0x476380===-0x1)break;const [_0x39b7da,_0x4c4e3d]=readId(_0x264b80,_0x476380);if(_0x39b7da!==ID_CLUSTER){_0x56d004=_0x2b96b3[_0x31f016(0x121)](_0x476380,0x1);continue;}const [_0x9463df,_0x4f353e]=readVint(_0x264b80,_0x2b96b3['dnctD'](_0x476380,_0x4c4e3d)),_0x22638b=_0x476380+_0x4c4e3d+_0x4f353e,_0x5f4caa=findClusterEnd(_0x264b80,_0x22638b,_0x9463df,_0x4f353e);let _0x344e56=_0x22638b,_0x3b161b=0x0,_0x2ef02c=0x2,_0x1ef6c2=![],_0x2c8613=Buffer[_0x31f016(0x142)](0x0),_0x38d50a=Buffer[_0x31f016(0x142)](0x0);while(_0x2b96b3['DfarW'](_0x344e56,_0x5f4caa)){const [_0x54e3c1,_0x596371]=readId(_0x264b80,_0x344e56),[_0x4b10e7,_0x54edf0]=_0x2b96b3[_0x31f016(0x14c)](readVint,_0x264b80,_0x2b96b3['wXpfa'](_0x344e56,_0x596371));if(_0x54e3c1===ID_TIMESTAMP){_0x3b161b=readUint(_0x264b80,_0x2b96b3[_0x31f016(0x137)](_0x2b96b3[_0x31f016(0x13d)](_0x344e56,_0x596371),_0x54edf0),_0x4b10e7),_0x2ef02c=_0x4b10e7,_0x1ef6c2=!![],_0x2c8613=_0x264b80[_0x31f016(0x13e)](_0x22638b,_0x344e56);const _0x5e9248=_0x2b96b3[_0x31f016(0x11d)](_0x2b96b3[_0x31f016(0x120)](_0x344e56,_0x596371),_0x54edf0)+_0x4b10e7;_0x38d50a=_0x264b80[_0x31f016(0x13e)](_0x5e9248,_0x5f4caa);break;}if(_0x54e3c1===ID_CLUSTER)break;if(_0x2b96b3[_0x31f016(0x154)](isUnknownSize,_0x4b10e7,_0x54edf0))break;_0x344e56+=_0x2b96b3[_0x31f016(0x120)](_0x2b96b3[_0x31f016(0x139)](_0x596371,_0x54edf0),_0x4b10e7);}!_0x1ef6c2&&(_0x38d50a=_0x264b80['slice'](_0x22638b,_0x5f4caa));let _0x2065d8=_0x3b161b;_0x344e56=_0x22638b;while(_0x2b96b3['YOOUW'](_0x344e56,_0x5f4caa)){const [_0x3991ca,_0x1f6139]=_0x2b96b3['itOub'](readId,_0x264b80,_0x344e56),[_0x46a03d,_0x30af08]=readVint(_0x264b80,_0x2b96b3['Wlprz'](_0x344e56,_0x1f6139));if(_0x3991ca===ID_SIMPLE_BLOCK&&_0x2b96b3['YlFNz'](_0x46a03d,0x4)){const _0x5d1c31=_0x2b96b3['hvagI'](_0x2b96b3[_0x31f016(0x151)](_0x344e56,_0x1f6139),_0x30af08),[,_0x16ee89]=readVint(_0x264b80,_0x5d1c31),_0x5ded4c=_0x264b80[_0x31f016(0x123)](_0x2b96b3['njLbJ'](_0x5d1c31,_0x16ee89)),_0x233739=_0x2b96b3['Wlprz'](_0x3b161b,_0x5ded4c);if(_0x233739>_0x2065d8)_0x2065d8=_0x233739;}if(_0x2b96b3['hIzve'](_0x3991ca,ID_CLUSTER))break;if(isUnknownSize(_0x46a03d,_0x30af08))break;_0x344e56+=_0x2b96b3[_0x31f016(0x148)](_0x2b96b3['CcFoT'](_0x1f6139,_0x30af08),_0x46a03d);}_0x578203['push']({'timestamp':_0x3b161b,'maxTicks':_0x2065d8,'bodyBeforeTimestamp':_0x2c8613,'bodyAfterTimestamp':_0x38d50a,'timestampElementSize':_0x2ef02c}),_0x56d004=_0x5f4caa;}return _0x578203;}function parseWebm(_0xb69443){const _0x38e948=_0xff40,_0x51f98f={'eNDts':function(_0x203506,_0x289dfc){return _0x203506+_0x289dfc;},'ySPGB':function(_0x46c052,_0x5216ea){return _0x46c052!==_0x5216ea;},'jcAvi':function(_0x4018e8,_0x35112f,_0x3c26da){return _0x4018e8(_0x35112f,_0x3c26da);},'DgYWt':function(_0x15f99d,_0x52c43c){return _0x15f99d+_0x52c43c;}};let _0x7af1f2=0x0;const [,_0x2e133d]=readId(_0xb69443,_0x7af1f2),[_0x4a3cd6,_0x47e7bb]=readVint(_0xb69443,_0x51f98f[_0x38e948(0x12e)](_0x7af1f2,_0x2e133d));_0x7af1f2+=_0x51f98f['eNDts'](_0x2e133d+_0x47e7bb,_0x4a3cd6);const [_0x23872c,_0x19c758]=readId(_0xb69443,_0x7af1f2);if(_0x51f98f[_0x38e948(0x129)](_0x23872c,ID_SEGMENT))return null;const [,_0x296c2e]=_0x51f98f[_0x38e948(0x12f)](readVint,_0xb69443,_0x51f98f['DgYWt'](_0x7af1f2,_0x19c758)),_0x21e332=_0x7af1f2+_0x19c758+_0x296c2e,_0x48a146=_0x51f98f['jcAvi'](findTimestampScale,_0xb69443,_0x21e332),_0x442fdd=_0x51f98f['jcAvi'](findFirstClusterOffset,_0xb69443,_0x21e332),_0x113884=_0xb69443['slice'](0x0,_0x442fdd),_0x36e197=_0x51f98f[_0x38e948(0x12f)](extractClusters,_0xb69443,_0x48a146);let _0x5083cb=0x0;for(const _0x595a48 of _0x36e197){if(_0x595a48['maxTicks']>_0x5083cb)_0x5083cb=_0x595a48[_0x38e948(0x14b)];}return{'header':_0x113884,'clusters':_0x36e197,'timestampScale':_0x48a146,'maxTimestampTicks':_0x5083cb};}function buildCluster(_0x3d8f81,_0x54a047,_0x18e643){const _0x24e890=_0xff40,_0x309927={'VvSBM':function(_0x1e50c5,_0x4b988d){return _0x1e50c5(_0x4b988d);}},_0x2f76cb=Buffer[_0x24e890(0x15c)]([0x1f,0x43,0xb6,0x75]),_0x3cfc16=Math['max'](0x4,_0x309927[_0x24e890(0x118)](uintSize,_0x3d8f81)),_0x205b3f=Buffer[_0x24e890(0x11c)]([Buffer['from']([ID_TIMESTAMP]),_0x309927[_0x24e890(0x118)](writeVint,_0x3cfc16),writeUint(_0x3d8f81,_0x3cfc16)]),_0x4d7660=Buffer[_0x24e890(0x11c)]([_0x54a047,_0x205b3f,_0x18e643]),_0x88e185=_0x309927['VvSBM'](writeVint,_0x4d7660['length']);return Buffer['concat']([_0x2f76cb,_0x88e185,_0x4d7660]);}const ID_DURATION=0x4489;function _0xff40(_0x1b623a,_0x360572){_0x1b623a=_0x1b623a-0x117;const _0x12ae13=_0x12ae();let _0xff4084=_0x12ae13[_0x1b623a];return _0xff4084;}function rebuildHeaderWithoutDuration(_0x486ed9){const _0x23c6bb=_0xff40,_0x2397cb={'RMxXk':function(_0x5eb05e,_0x22de01,_0x8a79b6){return _0x5eb05e(_0x22de01,_0x8a79b6);},'wfBtl':function(_0x2837aa,_0x548698){return _0x2837aa+_0x548698;},'EgmgQ':function(_0x2fff93,_0x4ce2db,_0x46aad8){return _0x2fff93(_0x4ce2db,_0x46aad8);},'tAiPO':function(_0x5008ab,_0x457064,_0x2fa201){return _0x5008ab(_0x457064,_0x2fa201);},'CHxJB':function(_0x1c2601,_0x42186d){return _0x1c2601+_0x42186d;},'Hwhht':function(_0x5c9c03,_0x4380a4){return _0x5c9c03(_0x4380a4);},'bFeqL':function(_0x25b577,_0x2065f8){return _0x25b577+_0x2065f8;},'nEejA':function(_0x1dcaba,_0x5318b0,_0x3b5fd3){return _0x1dcaba(_0x5318b0,_0x3b5fd3);},'pdskK':function(_0x1ce892,_0x2c9f31){return _0x1ce892===_0x2c9f31;},'GPkia':function(_0x450625,_0x59a4ae){return _0x450625+_0x59a4ae;},'yvPUE':function(_0x29592f,_0xffc9e0){return _0x29592f<_0xffc9e0;},'rdDpZ':function(_0x99997b,_0x5c3505){return _0x99997b!==_0x5c3505;}},_0x5605c4=Buffer[_0x23c6bb(0x15c)](_0x486ed9);let _0x34be97=0x0;const [,_0x3ad0cb]=_0x2397cb['RMxXk'](readId,_0x5605c4,_0x34be97),[_0x23cb58,_0x409c58]=readVint(_0x5605c4,_0x2397cb['wfBtl'](_0x34be97,_0x3ad0cb)),_0x3d36a3=_0x2397cb[_0x23c6bb(0x150)](_0x34be97+_0x3ad0cb,_0x409c58)+_0x23cb58,[,_0x35be57]=_0x2397cb[_0x23c6bb(0x124)](readId,_0x5605c4,_0x3d36a3),[,_0x1d03f5]=_0x2397cb['tAiPO'](readVint,_0x5605c4,_0x2397cb[_0x23c6bb(0x119)](_0x3d36a3,_0x35be57)),_0x16c57b=_0x2397cb[_0x23c6bb(0x119)](_0x3d36a3,_0x35be57)+_0x1d03f5,_0x56fa61=_0x2397cb[_0x23c6bb(0x143)](writeUnknownSizeVint,_0x1d03f5);_0x56fa61['copy'](_0x5605c4,_0x3d36a3+_0x35be57);let _0x31f257=_0x16c57b;const _0x404ec2=Math['min'](_0x5605c4[_0x23c6bb(0x149)],_0x2397cb[_0x23c6bb(0x145)](_0x16c57b,0x2710));while(_0x31f257<_0x404ec2){const [_0x2d302e,_0x197c41]=_0x2397cb[_0x23c6bb(0x126)](readId,_0x5605c4,_0x31f257),[_0x26c9cb,_0xae3607]=readVint(_0x5605c4,_0x2397cb['CHxJB'](_0x31f257,_0x197c41));if(_0x2d302e===ID_CLUSTER)break;if(_0x2397cb[_0x23c6bb(0x146)](isUnknownSize,_0x26c9cb,_0xae3607))break;if(_0x2397cb[_0x23c6bb(0x141)](_0x2d302e,ID_INFO)){const _0x2978dc=_0x2397cb['GPkia'](_0x31f257,_0x197c41)+_0xae3607,_0x167868=_0x2978dc+_0x26c9cb,_0x415858=[];let _0x5dd825=_0x2978dc;while(_0x2397cb[_0x23c6bb(0x147)](_0x5dd825,_0x167868)){const [_0x362b4d,_0x43f35c]=_0x2397cb[_0x23c6bb(0x140)](readId,_0x5605c4,_0x5dd825),[_0x42c172,_0x8f5f17]=readVint(_0x5605c4,_0x2397cb[_0x23c6bb(0x150)](_0x5dd825,_0x43f35c)),_0x20d8e9=_0x43f35c+_0x8f5f17+_0x42c172;_0x2397cb['rdDpZ'](_0x362b4d,ID_DURATION)&&_0x415858['push'](_0x5605c4[_0x23c6bb(0x13e)](_0x5dd825,_0x2397cb['wfBtl'](_0x5dd825,_0x20d8e9))),_0x5dd825+=_0x20d8e9;}const _0x477859=Buffer[_0x23c6bb(0x11c)](_0x415858),_0xb11e59=Buffer[_0x23c6bb(0x11c)]([_0x5605c4['slice'](_0x31f257,_0x31f257+_0x197c41),writeVint(_0x477859[_0x23c6bb(0x149)],_0xae3607)]);return Buffer['concat']([_0x5605c4[_0x23c6bb(0x13e)](0x0,_0x31f257),_0xb11e59,_0x477859,_0x5605c4['slice'](_0x167868)]);}_0x31f257+=_0x197c41+_0xae3607+_0x26c9cb;}return _0x5605c4;}export function stitchWebmFiles(_0x3ad22d,_0x18970d){const _0x3ce4b1=_0xff40,_0x5a8d6b={'CQDkM':function(_0x1dc3c0,_0x2dc907){return _0x1dc3c0(_0x2dc907);},'JyqvD':function(_0x3276a1,_0x27ee06){return _0x3276a1+_0x27ee06;},'vyvnC':function(_0x40badc,_0x578e45,_0x2ea889){return _0x40badc(_0x578e45,_0x2ea889);}};if(_0x3ad22d[_0x3ce4b1(0x149)]<=0x1)return![];const _0x474b71=[];for(const _0x5a79b1 of _0x3ad22d){const _0x209a43=_0x5a8d6b[_0x3ce4b1(0x157)](readFileSync,_0x5a79b1),_0x45b301=parseWebm(_0x209a43);if(!_0x45b301||_0x45b301['clusters'][_0x3ce4b1(0x149)]===0x0)return![];_0x474b71['push'](_0x45b301);}const _0x148d44=_0x474b71[0x0],_0xaddd91=rebuildHeaderWithoutDuration(_0x148d44['header']),_0x1e91a7=[_0xaddd91];let _0x4d0c40=0x0;for(let _0xfb8d7a=0x0;_0xfb8d7a<_0x474b71['length'];_0xfb8d7a++){const _0x546adb=_0x474b71[_0xfb8d7a];for(const _0x6e070e of _0x546adb[_0x3ce4b1(0x125)]){const _0x105d0a=_0x6e070e['timestamp']+_0x4d0c40;_0x1e91a7['push'](buildCluster(_0x105d0a,_0x6e070e['bodyBeforeTimestamp'],_0x6e070e[_0x3ce4b1(0x14a)]));}const _0x5afc95=0x1e;_0x4d0c40+=_0x5a8d6b['JyqvD'](_0x546adb['maxTimestampTicks'],_0x5afc95);}return _0x5a8d6b[_0x3ce4b1(0x159)](writeFileSync,_0x18970d,Buffer[_0x3ce4b1(0x11c)](_0x1e91a7)),!![];}function _0x12ae(){const _0x14f381=['readInt16BE','EgmgQ','clusters','RMxXk','ItcbT','13128Dyqiqs','ySPGB','30qYzgGV','ilGac','KRnbF','VLNAk','eNDts','jcAvi','141rvslKE','KKyXa','13321726GVzvnA','argv','log','pow','ZrpQU','JaRhW','wDIJJ','MIFdd','dLKjP','ZzWeE','3891FcaIlR','Wlprz','slice','wHykk','tAiPO','pdskK','alloc','Hwhht','679pyHIub','bFeqL','nEejA','yvPUE','pVVFu','length','bodyAfterTimestamp','maxTicks','itOub','min','2765052FfSpmD','2261097BSkbcL','wfBtl','qlwPp','floor','RZVFQ','UmWEH','UOraF','RXmwC','CQDkM','17156uRVxEA','vyvnC','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','10xZBjgu','from','stitchWebmFiles.js','VvSBM','CHxJB','svgai','error','concat','aEYpe','1682915EMjCGb','nQiGZ','iqtXU','wXpfa','LjJje'];_0x12ae=function(){return _0x14f381;};return _0x12ae();}if(process['argv'][0x1]?.['endsWith']('stitchWebmFiles.ts')||process[_0x4bf298(0x133)][0x1]?.['endsWith'](_0x4bf298(0x117))){const args=process['argv'][_0x4bf298(0x13e)](0x2);args['length']<0x3&&(console[_0x4bf298(0x11b)]('Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>'),process['exit'](0x1));const output=args[args['length']-0x1],inputs=args[_0x4bf298(0x13e)](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console['log']('Stitched\x20'+inputs['length']+'\x20files\x20->\x20'+output):console[_0x4bf298(0x134)](_0x4bf298(0x15a));}
1
+ const _0x162add=_0xd240;(function(_0x47a6dc,_0xf88daf){const _0x426607=_0xd240,_0x2d9933=_0x47a6dc();while(!![]){try{const _0x4d044b=-parseInt(_0x426607(0x1de))/0x1+-parseInt(_0x426607(0x1f1))/0x2*(parseInt(_0x426607(0x1fb))/0x3)+parseInt(_0x426607(0x1cb))/0x4*(-parseInt(_0x426607(0x1d5))/0x5)+parseInt(_0x426607(0x1c6))/0x6*(parseInt(_0x426607(0x1fe))/0x7)+-parseInt(_0x426607(0x1f2))/0x8*(-parseInt(_0x426607(0x1d1))/0x9)+-parseInt(_0x426607(0x1f5))/0xa+parseInt(_0x426607(0x1cf))/0xb;if(_0x4d044b===_0xf88daf)break;else _0x2d9933['push'](_0x2d9933['shift']());}catch(_0x319345){_0x2d9933['push'](_0x2d9933['shift']());}}}(_0x32df,0x55786));function _0xd240(_0x35d04c,_0x635de4){_0x35d04c=_0x35d04c-0x1c0;const _0x32df05=_0x32df();let _0xd240c1=_0x32df05[_0x35d04c];return _0xd240c1;}import{readFileSync,writeFileSync}from'fs';function _0x32df(){const _0x291b11=['max','9qkURIw','jDEjG','argv','vwdUU','27865AvnbOE','from','uEzTX','\x20files\x20->\x20','header','pow','maxTimestampTicks','lPbbJ','sMQqv','527416KGYngf','log','clusters','nByKm','pJDSC','slice','YAaxl','bodyAfterTimestamp','dDmSR','tkycq','concat','qTGCO','oGHox','kIcqz','fbkMK','CNBaO','floor','endsWith','VpuVh','14VPgmWT','3545264OznIay','xQbre','stitchWebmFiles.js','977800tQNPNY','maxTicks','TPiNB','MZBag','readInt16BE','IGbUK','260610spgfIR','YpOKi','rzdnT','7QQNgRR','indexOf','Stitched\x20','fLCZp','length','OBpdF','aaQyq','exit','GFyIP','bodyBeforeTimestamp','gMLKR','gtwgT','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','BTdod','AAhzq','VKCfs','GvfZn','MNaxq','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','oRYrC','1008822BsDquu','TiVpQ','etfOJ','kdGrC','zDtIn','496OAtFqG','SxMFc','push','alloc','18294419DEhTDX'];_0x32df=function(){return _0x291b11;};return _0x32df();}const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x3fbf78,_0x430206){const _0xb42770=_0xd240,_0x32976f={'FxciC':function(_0x15eb5c,_0x46fd9c){return _0x15eb5c&_0x46fd9c;},'luVFM':function(_0x392070,_0x3de667){return _0x392070-_0x3de667;},'aaQyq':function(_0x30b460,_0x1a0ef3){return _0x30b460<_0x1a0ef3;},'ljBgS':function(_0x43d7ef,_0x1a8d85){return _0x43d7ef+_0x1a8d85;},'gWBPX':function(_0x19146c,_0x3b1c5e){return _0x19146c*_0x3b1c5e;}};if(_0x430206>=_0x3fbf78[_0xb42770(0x202)])return[0x0,0x0];const _0x6b798b=_0x3fbf78[_0x430206];let _0x502b39=0x1,_0x1bdf20=0x80;while(_0x502b39<=0x8&&!_0x32976f['FxciC'](_0x6b798b,_0x1bdf20)){_0x502b39++,_0x1bdf20>>=0x1;}if(_0x430206+_0x502b39>_0x3fbf78['length'])return[0x0,0x0];let _0x294926=_0x32976f['FxciC'](_0x6b798b,_0x32976f['luVFM'](_0x1bdf20,0x1));for(let _0x35bc5b=0x1;_0x32976f[_0xb42770(0x204)](_0x35bc5b,_0x502b39);_0x35bc5b++){_0x294926=_0x32976f['ljBgS'](_0x32976f['gWBPX'](_0x294926,0x100),_0x3fbf78[_0x32976f['ljBgS'](_0x430206,_0x35bc5b)]);}return[_0x294926,_0x502b39];}function readId(_0x3798f5,_0x1db96c){const _0x55e6f5=_0xd240,_0xf7524e={'MNaxq':function(_0x1beb45,_0xae0685){return _0x1beb45>=_0xae0685;},'hKZBj':function(_0x2dd7a6,_0x47d844){return _0x2dd7a6>=_0x47d844;},'plYgt':function(_0x2aa4dd,_0x2fa54a){return _0x2aa4dd>_0x2fa54a;},'VpuVh':function(_0x1d9d32,_0x4bb72a){return _0x1d9d32+_0x4bb72a;},'qTGCO':function(_0x41ff32,_0x204e79){return _0x41ff32+_0x204e79;}};if(_0xf7524e['MNaxq'](_0x1db96c,_0x3798f5['length']))return[0x0,0x0];const _0x949af5=_0x3798f5[_0x1db96c];let _0x4c452c;if(_0xf7524e[_0x55e6f5(0x1c3)](_0x949af5,0x80))_0x4c452c=0x1;else{if(_0xf7524e['hKZBj'](_0x949af5,0x40))_0x4c452c=0x2;else{if(_0x949af5>=0x20)_0x4c452c=0x3;else{if(_0x949af5>=0x10)_0x4c452c=0x4;else return[_0x949af5,0x1];}}}if(_0xf7524e['plYgt'](_0x1db96c+_0x4c452c,_0x3798f5[_0x55e6f5(0x202)]))return[0x0,0x0];let _0x227d26=0x0;for(let _0x1d5e9a=0x0;_0x1d5e9a<_0x4c452c;_0x1d5e9a++){_0x227d26=_0xf7524e[_0x55e6f5(0x1f0)](_0x227d26*0x100,_0x3798f5[_0xf7524e[_0x55e6f5(0x1e9)](_0x1db96c,_0x1d5e9a)]);}return[_0x227d26,_0x4c452c];}function readUint(_0x4f1766,_0x327a2f,_0x5eaf99){const _0x5ec647={'tLWZk':function(_0xbcccfe,_0x1fe91c){return _0xbcccfe+_0x1fe91c;}};let _0x2461fe=0x0;for(let _0x4fe0c4=0x0;_0x4fe0c4<_0x5eaf99;_0x4fe0c4++){_0x2461fe=_0x2461fe*0x100+_0x4f1766[_0x5ec647['tLWZk'](_0x327a2f,_0x4fe0c4)];}return _0x2461fe;}function isUnknownSize(_0x15843f,_0x5419e1){const _0x59ff55=_0xd240,_0x498fba={'LmwgN':function(_0x30275f,_0x707606){return _0x30275f===_0x707606;},'TPiNB':function(_0x182bf1,_0x388f1b){return _0x182bf1-_0x388f1b;},'qYxna':function(_0x11bae6,_0x449b36){return _0x11bae6*_0x449b36;}};return _0x498fba['LmwgN'](_0x15843f,_0x498fba[_0x59ff55(0x1f7)](Math[_0x59ff55(0x1da)](0x2,_0x498fba['qYxna'](0x7,_0x5419e1)),0x1));}function writeVint(_0x15e317,_0x19638c){const _0x37cb8d=_0xd240,_0x293923={'FVNsG':function(_0x1645f9,_0x9eece3){return _0x1645f9||_0x9eece3;},'mHKes':function(_0x1cdce5,_0x47d7b3){return _0x1cdce5-_0x47d7b3;},'IyiZa':function(_0x2de618,_0x39ec44){return _0x2de618>=_0x39ec44;},'kIcqz':function(_0x2a58d4,_0x5f1032){return _0x2a58d4/_0x5f1032;},'UNamK':function(_0x3bf096,_0x563d85){return _0x3bf096<<_0x563d85;}};let _0x1fe9be=_0x293923['FVNsG'](_0x19638c,0x1);while(_0x293923['mHKes'](Math[_0x37cb8d(0x1da)](0x2,0x7*_0x1fe9be),0x2)<_0x15e317)_0x1fe9be++;const _0x7bb35f=Buffer['alloc'](_0x1fe9be);for(let _0x6a3d2c=_0x1fe9be-0x1;_0x293923['IyiZa'](_0x6a3d2c,0x0);_0x6a3d2c--){_0x7bb35f[_0x6a3d2c]=_0x15e317&0xff,_0x15e317=Math['floor'](_0x293923[_0x37cb8d(0x1eb)](_0x15e317,0x100));}return _0x7bb35f[0x0]|=_0x293923['UNamK'](0x1,_0x293923['mHKes'](0x8,_0x1fe9be)),_0x7bb35f;}function writeUint(_0xa1edf6,_0x448457){const _0x1ccf9e=_0xd240,_0x5d3333={'dDmSR':function(_0x26d678,_0x579050){return _0x26d678&_0x579050;},'XtJTu':function(_0x15b250,_0x441abb){return _0x15b250/_0x441abb;}},_0x48efa5=Buffer['alloc'](_0x448457);for(let _0x407ffc=_0x448457-0x1;_0x407ffc>=0x0;_0x407ffc--){_0x48efa5[_0x407ffc]=_0x5d3333[_0x1ccf9e(0x1e6)](_0xa1edf6,0xff),_0xa1edf6=Math[_0x1ccf9e(0x1ee)](_0x5d3333['XtJTu'](_0xa1edf6,0x100));}return _0x48efa5;}function writeUnknownSizeVint(_0x35e988){const _0x4f979d={'OyErH':function(_0x193fc9,_0x2fb0a2){return _0x193fc9>>_0x2fb0a2;}},_0x41109d=Buffer['alloc'](_0x35e988,0xff);return _0x41109d[0x0]=_0x4f979d['OyErH'](0xff,_0x35e988-0x1),_0x41109d;}function uintSize(_0x53e37c){const _0x549312=_0xd240;if(_0x53e37c===0x0)return 0x1;let _0x35929a=0x0,_0x4c4d6b=_0x53e37c;while(_0x4c4d6b>0x0){_0x35929a++,_0x4c4d6b=Math[_0x549312(0x1ee)](_0x4c4d6b/0x100);}return _0x35929a;}function findTimestampScale(_0x2256c3,_0x53c575){const _0x31da4c=_0xd240,_0x93f04={'IGbUK':function(_0x1f746f,_0xaadf71){return _0x1f746f+_0xaadf71;},'vwdUU':function(_0xe4a973,_0x477a31){return _0xe4a973<_0x477a31;},'GFyIP':function(_0x3c8d8f,_0x524e93,_0x3d1ec4){return _0x3c8d8f(_0x524e93,_0x3d1ec4);},'jYqbz':function(_0x4c360b,_0x536fe5,_0x2e6fed,_0x41bea2){return _0x4c360b(_0x536fe5,_0x2e6fed,_0x41bea2);},'oRYrC':function(_0x3c62d7,_0x332cbe){return _0x3c62d7+_0x332cbe;},'etfOJ':function(_0x499d5b,_0x55336f){return _0x499d5b+_0x55336f;},'CNBaO':function(_0x464766,_0x44e4cd,_0x37df81){return _0x464766(_0x44e4cd,_0x37df81);}};let _0x379c02=_0x53c575;const _0xc8c16=Math['min'](_0x2256c3['length'],_0x93f04[_0x31da4c(0x1fa)](_0x53c575,0x2710));while(_0x93f04[_0x31da4c(0x1d4)](_0x379c02,_0xc8c16)){const [_0x29f665,_0xa33177]=_0x93f04[_0x31da4c(0x206)](readId,_0x2256c3,_0x379c02),[_0x460655,_0x3c2aeb]=readVint(_0x2256c3,_0x93f04[_0x31da4c(0x1fa)](_0x379c02,_0xa33177));if(_0x29f665===ID_INFO){let _0x2a9f0e=_0x93f04[_0x31da4c(0x1fa)](_0x93f04['IGbUK'](_0x379c02,_0xa33177),_0x3c2aeb);const _0x332cac=_0x93f04[_0x31da4c(0x1fa)](_0x2a9f0e,_0x460655);while(_0x2a9f0e<_0x332cac){const [_0x595b81,_0x5c2397]=readId(_0x2256c3,_0x2a9f0e),[_0x46a074,_0x5f1d2f]=_0x93f04['GFyIP'](readVint,_0x2256c3,_0x2a9f0e+_0x5c2397);if(_0x595b81===ID_TIMESTAMP_SCALE)return _0x93f04['jYqbz'](readUint,_0x2256c3,_0x93f04[_0x31da4c(0x1c5)](_0x93f04[_0x31da4c(0x1fa)](_0x2a9f0e,_0x5c2397),_0x5f1d2f),_0x46a074);_0x2a9f0e+=_0x93f04[_0x31da4c(0x1c8)](_0x5c2397,_0x5f1d2f)+_0x46a074;}break;}if(_0x29f665===ID_CLUSTER)break;if(_0x93f04[_0x31da4c(0x1ed)](isUnknownSize,_0x460655,_0x3c2aeb))break;_0x379c02+=_0x93f04[_0x31da4c(0x1c8)](_0xa33177+_0x3c2aeb,_0x460655);}return 0xf4240;}function findFirstClusterOffset(_0x28c43f,_0x955a63){const _0x9fd6ba=_0xd240,_0x4e588e={'YAaxl':function(_0x41fe8a,_0x3c74d1,_0x25a834){return _0x41fe8a(_0x3c74d1,_0x25a834);},'rzdnT':function(_0x486bf7,_0x5ffa1e){return _0x486bf7===_0x5ffa1e;},'SxMFc':function(_0x151fd5,_0x410f56){return _0x151fd5+_0x410f56;}};let _0x57651f=_0x955a63;while(_0x57651f<_0x28c43f[_0x9fd6ba(0x202)]){const [_0x46447d,_0x1d2970]=_0x4e588e[_0x9fd6ba(0x1e4)](readId,_0x28c43f,_0x57651f);if(_0x4e588e[_0x9fd6ba(0x1fd)](_0x46447d,ID_CLUSTER))return _0x57651f;const [_0x3ab9b0,_0x5a8d2e]=_0x4e588e[_0x9fd6ba(0x1e4)](readVint,_0x28c43f,_0x4e588e[_0x9fd6ba(0x1cc)](_0x57651f,_0x1d2970));if(isUnknownSize(_0x3ab9b0,_0x5a8d2e))return _0x57651f;_0x57651f+=_0x1d2970+_0x5a8d2e+_0x3ab9b0;}return _0x28c43f['length'];}function findClusterEnd(_0x13b52e,_0x514284,_0x109fa8,_0x54fe94){const _0x3673de=_0xd240,_0x38f58d={'VKCfs':function(_0x746607,_0x173192,_0x28ce83){return _0x746607(_0x173192,_0x28ce83);},'YpOKi':function(_0x324454,_0x32105d){return _0x324454<_0x32105d;},'oGHox':function(_0x4affc8,_0x3a7cdc){return _0x4affc8-_0x3a7cdc;},'zDtIn':function(_0x20dabb,_0x5bf22d){return _0x20dabb+_0x5bf22d;},'tkycq':function(_0x390b4a,_0x1c0404,_0x462cac){return _0x390b4a(_0x1c0404,_0x462cac);},'xQbre':function(_0x457e36,_0x32153e){return _0x457e36+_0x32153e;}};if(!_0x38f58d['VKCfs'](isUnknownSize,_0x109fa8,_0x54fe94))return _0x514284+_0x109fa8;const _0xfcc2d9=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x283177=_0x514284;while(_0x38f58d[_0x3673de(0x1fc)](_0x283177,_0x38f58d[_0x3673de(0x1ea)](_0x13b52e['length'],0x4))){const [_0x80321a,_0x3f7215]=readId(_0x13b52e,_0x283177);if(_0xfcc2d9['has'](_0x80321a))return _0x283177;const [_0x284f23,_0x5e04be]=_0x38f58d[_0x3673de(0x1c1)](readVint,_0x13b52e,_0x38f58d['zDtIn'](_0x283177,_0x3f7215));if(_0x38f58d[_0x3673de(0x1e7)](isUnknownSize,_0x284f23,_0x5e04be))return _0x13b52e[_0x3673de(0x202)];_0x283177+=_0x38f58d[_0x3673de(0x1ca)](_0x38f58d[_0x3673de(0x1f3)](_0x3f7215,_0x5e04be),_0x284f23);}return _0x13b52e[_0x3673de(0x202)];}function extractClusters(_0x608929,_0x2d5a23){const _0x57707c=_0xd240,_0x552e7f={'IUWbJ':function(_0x5f50d0,_0x3e0cff){return _0x5f50d0<_0x3e0cff;},'kdGrC':function(_0x818ac3,_0x126092,_0x36fbc2){return _0x818ac3(_0x126092,_0x36fbc2);},'lPbbJ':function(_0x438210,_0x2fd3bd){return _0x438210!==_0x2fd3bd;},'nByKm':function(_0x5761b9,_0x4f77e8){return _0x5761b9+_0x4f77e8;},'xwrvg':function(_0x4cae32,_0x2fef2a,_0x1c224b,_0x307ec5,_0x1d517f){return _0x4cae32(_0x2fef2a,_0x1c224b,_0x307ec5,_0x1d517f);},'brLJz':function(_0x400d85,_0x53924b){return _0x400d85<_0x53924b;},'gMLKR':function(_0x56f411,_0x5004b5,_0x52231f){return _0x56f411(_0x5004b5,_0x52231f);},'TntcY':function(_0xa4b7be,_0x36a50a){return _0xa4b7be+_0x36a50a;},'OBpdF':function(_0x4e9306,_0x1c6ffb,_0x4df9fb){return _0x4e9306(_0x1c6ffb,_0x4df9fb);},'sPmpJ':function(_0x248215,_0x5ee05f){return _0x248215+_0x5ee05f;},'CywTs':function(_0x3b3653,_0xbb8de4,_0x3209ce){return _0x3b3653(_0xbb8de4,_0x3209ce);},'MZBag':function(_0x268926,_0x9e6702){return _0x268926+_0x9e6702;},'LiQPF':function(_0x1d2b2a,_0x1e167e){return _0x1d2b2a+_0x1e167e;},'TiVpQ':function(_0x1ed22a,_0x594b33){return _0x1ed22a>_0x594b33;}},_0x542965=[],_0x129480=Buffer[_0x57707c(0x1d6)]([0x1f,0x43,0xb6,0x75]);let _0x223b26=0x0;while(_0x552e7f['IUWbJ'](_0x223b26,_0x608929['length'])){const _0x145f41=_0x608929[_0x57707c(0x1ff)](_0x129480,_0x223b26);if(_0x145f41===-0x1)break;const [_0x444bca,_0x418bea]=_0x552e7f[_0x57707c(0x1c9)](readId,_0x608929,_0x145f41);if(_0x552e7f[_0x57707c(0x1dc)](_0x444bca,ID_CLUSTER)){_0x223b26=_0x552e7f['nByKm'](_0x145f41,0x1);continue;}const [_0x3c2c49,_0x23dd54]=readVint(_0x608929,_0x145f41+_0x418bea),_0x242748=_0x145f41+_0x418bea+_0x23dd54,_0x2a975b=_0x552e7f['xwrvg'](findClusterEnd,_0x608929,_0x242748,_0x3c2c49,_0x23dd54);let _0x140c55=_0x242748,_0x330def=0x0,_0x2f8b0d=0x2,_0x1c3007=![],_0x331b99=Buffer['alloc'](0x0),_0x2a0e20=Buffer[_0x57707c(0x1ce)](0x0);while(_0x552e7f['brLJz'](_0x140c55,_0x2a975b)){const [_0x2552f1,_0x1c1fc9]=_0x552e7f[_0x57707c(0x208)](readId,_0x608929,_0x140c55),[_0x2f908e,_0x584f88]=_0x552e7f[_0x57707c(0x208)](readVint,_0x608929,_0x552e7f['nByKm'](_0x140c55,_0x1c1fc9));if(_0x2552f1===ID_TIMESTAMP){_0x330def=readUint(_0x608929,_0x552e7f[_0x57707c(0x1e1)](_0x140c55+_0x1c1fc9,_0x584f88),_0x2f908e),_0x2f8b0d=_0x2f908e,_0x1c3007=!![],_0x331b99=_0x608929[_0x57707c(0x1e3)](_0x242748,_0x140c55);const _0xcdd01b=_0x552e7f['TntcY'](_0x552e7f['TntcY'](_0x140c55,_0x1c1fc9)+_0x584f88,_0x2f908e);_0x2a0e20=_0x608929['slice'](_0xcdd01b,_0x2a975b);break;}if(_0x2552f1===ID_CLUSTER)break;if(_0x552e7f[_0x57707c(0x203)](isUnknownSize,_0x2f908e,_0x584f88))break;_0x140c55+=_0x552e7f[_0x57707c(0x1e1)](_0x552e7f['sPmpJ'](_0x1c1fc9,_0x584f88),_0x2f908e);}!_0x1c3007&&(_0x2a0e20=_0x608929['slice'](_0x242748,_0x2a975b));let _0x13c5ab=_0x330def;_0x140c55=_0x242748;while(_0x140c55<_0x2a975b){const [_0x3a78d1,_0xaae479]=_0x552e7f['CywTs'](readId,_0x608929,_0x140c55),[_0x43d810,_0xa4c3c9]=_0x552e7f[_0x57707c(0x208)](readVint,_0x608929,_0x552e7f['nByKm'](_0x140c55,_0xaae479));if(_0x3a78d1===ID_SIMPLE_BLOCK&&_0x43d810>=0x4){const _0x597e97=_0x552e7f[_0x57707c(0x1f8)](_0x140c55,_0xaae479)+_0xa4c3c9,[,_0x143b06]=_0x552e7f['OBpdF'](readVint,_0x608929,_0x597e97),_0x2b7b28=_0x608929[_0x57707c(0x1f9)](_0x552e7f['LiQPF'](_0x597e97,_0x143b06)),_0x22945e=_0x330def+_0x2b7b28;if(_0x552e7f[_0x57707c(0x1c7)](_0x22945e,_0x13c5ab))_0x13c5ab=_0x22945e;}if(_0x3a78d1===ID_CLUSTER)break;if(_0x552e7f[_0x57707c(0x208)](isUnknownSize,_0x43d810,_0xa4c3c9))break;_0x140c55+=_0xaae479+_0xa4c3c9+_0x43d810;}_0x542965[_0x57707c(0x1cd)]({'timestamp':_0x330def,'maxTicks':_0x13c5ab,'bodyBeforeTimestamp':_0x331b99,'bodyAfterTimestamp':_0x2a0e20,'timestampElementSize':_0x2f8b0d}),_0x223b26=_0x2a975b;}return _0x542965;}function parseWebm(_0x13040c){const _0x30f842=_0xd240,_0x495e85={'GvfZn':function(_0x5d9f67,_0x399300,_0x1e192e){return _0x5d9f67(_0x399300,_0x1e192e);},'sMQqv':function(_0x41cf05,_0x5ba10e){return _0x41cf05+_0x5ba10e;},'Powwn':function(_0x160439,_0x3b814d){return _0x160439+_0x3b814d;},'fbkMK':function(_0x11d0d0,_0x25bd88){return _0x11d0d0!==_0x25bd88;},'gDSMB':function(_0x54c2b2,_0x34c327,_0x5d3e07){return _0x54c2b2(_0x34c327,_0x5d3e07);},'UPvOF':function(_0x5c4cdc,_0x12e5d4,_0x59f1b6){return _0x5c4cdc(_0x12e5d4,_0x59f1b6);}};let _0x332951=0x0;const [,_0x2c9ba5]=readId(_0x13040c,_0x332951),[_0x4cbcca,_0x24bbd6]=_0x495e85[_0x30f842(0x1c2)](readVint,_0x13040c,_0x332951+_0x2c9ba5);_0x332951+=_0x495e85[_0x30f842(0x1dd)](_0x495e85['Powwn'](_0x2c9ba5,_0x24bbd6),_0x4cbcca);const [_0xddda42,_0x12253b]=readId(_0x13040c,_0x332951);if(_0x495e85[_0x30f842(0x1ec)](_0xddda42,ID_SEGMENT))return null;const [,_0x53195f]=_0x495e85['gDSMB'](readVint,_0x13040c,_0x332951+_0x12253b),_0x47e163=_0x332951+_0x12253b+_0x53195f,_0x591408=_0x495e85['UPvOF'](findTimestampScale,_0x13040c,_0x47e163),_0x3d008b=findFirstClusterOffset(_0x13040c,_0x47e163),_0x1f4eab=_0x13040c[_0x30f842(0x1e3)](0x0,_0x3d008b),_0x49e747=_0x495e85['GvfZn'](extractClusters,_0x13040c,_0x591408);let _0x3fd351=0x0;for(const _0x2a411b of _0x49e747){if(_0x2a411b['maxTicks']>_0x3fd351)_0x3fd351=_0x2a411b[_0x30f842(0x1f6)];}return{'header':_0x1f4eab,'clusters':_0x49e747,'timestampScale':_0x591408,'maxTimestampTicks':_0x3fd351};}function buildCluster(_0xc7c3f9,_0x1bf448,_0x400da0){const _0x23a8df=_0xd240,_0x105526={'BTdod':function(_0x55694c,_0x4007d9){return _0x55694c(_0x4007d9);},'itWoB':function(_0x4de6fc,_0x1ee1e2){return _0x4de6fc(_0x1ee1e2);},'LGnca':function(_0x1fdd2c,_0x3435a,_0x595507){return _0x1fdd2c(_0x3435a,_0x595507);},'mysJy':function(_0x406543,_0x4baf65){return _0x406543(_0x4baf65);}},_0x1eb449=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0x29bffa=Math[_0x23a8df(0x1d0)](0x4,_0x105526[_0x23a8df(0x20b)](uintSize,_0xc7c3f9)),_0x85dce0=Buffer[_0x23a8df(0x1e8)]([Buffer['from']([ID_TIMESTAMP]),_0x105526['itWoB'](writeVint,_0x29bffa),_0x105526['LGnca'](writeUint,_0xc7c3f9,_0x29bffa)]),_0x4ca6ed=Buffer[_0x23a8df(0x1e8)]([_0x1bf448,_0x85dce0,_0x400da0]),_0x5c29f1=_0x105526['mysJy'](writeVint,_0x4ca6ed[_0x23a8df(0x202)]);return Buffer['concat']([_0x1eb449,_0x5c29f1,_0x4ca6ed]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x3af550){const _0x61cd2c=_0xd240,_0x14ab48={'fYbUV':function(_0x466d14,_0x3ab614,_0x539fe2){return _0x466d14(_0x3ab614,_0x539fe2);},'jDEjG':function(_0x4fee76,_0x1a7625){return _0x4fee76+_0x1a7625;},'hcEpt':function(_0xfc2800,_0x3e18d9,_0x55278a){return _0xfc2800(_0x3e18d9,_0x55278a);},'AAhzq':function(_0x46d069,_0x21c9b2){return _0x46d069+_0x21c9b2;},'uEzTX':function(_0x4a7ad3,_0x57d99b){return _0x4a7ad3(_0x57d99b);},'gdBVp':function(_0x216c0d,_0x11f3f8){return _0x216c0d<_0x11f3f8;},'pJDSC':function(_0x1a4e94,_0xfa9078,_0x362f86){return _0x1a4e94(_0xfa9078,_0x362f86);},'VSCYa':function(_0x33e5f1,_0x2660cd){return _0x33e5f1===_0x2660cd;},'thyHp':function(_0xfd2ec9,_0x2fe0c7){return _0xfd2ec9<_0x2fe0c7;},'gtwgT':function(_0x434947,_0x41d7f5){return _0x434947+_0x41d7f5;}},_0x43c57e=Buffer['from'](_0x3af550);let _0x4f017c=0x0;const [,_0x3a9c56]=_0x14ab48['fYbUV'](readId,_0x43c57e,_0x4f017c),[_0x24d6fb,_0x3029ae]=readVint(_0x43c57e,_0x4f017c+_0x3a9c56),_0x1b4db1=_0x14ab48['jDEjG'](_0x14ab48['jDEjG'](_0x4f017c+_0x3a9c56,_0x3029ae),_0x24d6fb),[,_0xc64f4]=_0x14ab48['hcEpt'](readId,_0x43c57e,_0x1b4db1),[,_0x42916f]=_0x14ab48['fYbUV'](readVint,_0x43c57e,_0x1b4db1+_0xc64f4),_0x13f5b4=_0x14ab48['AAhzq'](_0x1b4db1+_0xc64f4,_0x42916f),_0xd9c4cf=_0x14ab48[_0x61cd2c(0x1d7)](writeUnknownSizeVint,_0x42916f);_0xd9c4cf['copy'](_0x43c57e,_0x1b4db1+_0xc64f4);let _0x3f6fe1=_0x13f5b4;const _0x4d2467=Math['min'](_0x43c57e[_0x61cd2c(0x202)],_0x13f5b4+0x2710);while(_0x14ab48['gdBVp'](_0x3f6fe1,_0x4d2467)){const [_0x2e18db,_0x1142a7]=_0x14ab48['hcEpt'](readId,_0x43c57e,_0x3f6fe1),[_0x4718f9,_0x3f530c]=readVint(_0x43c57e,_0x14ab48['AAhzq'](_0x3f6fe1,_0x1142a7));if(_0x2e18db===ID_CLUSTER)break;if(_0x14ab48[_0x61cd2c(0x1e2)](isUnknownSize,_0x4718f9,_0x3f530c))break;if(_0x14ab48['VSCYa'](_0x2e18db,ID_INFO)){const _0x3bb3dd=_0x14ab48['jDEjG'](_0x14ab48[_0x61cd2c(0x1c0)](_0x3f6fe1,_0x1142a7),_0x3f530c),_0x722bd1=_0x14ab48['AAhzq'](_0x3bb3dd,_0x4718f9),_0x3495b9=[];let _0x463ac2=_0x3bb3dd;while(_0x14ab48['thyHp'](_0x463ac2,_0x722bd1)){const [_0x312514,_0x58fd71]=readId(_0x43c57e,_0x463ac2),[_0x393ad3,_0x2e4606]=readVint(_0x43c57e,_0x463ac2+_0x58fd71),_0x8fd38e=_0x14ab48[_0x61cd2c(0x209)](_0x58fd71,_0x2e4606)+_0x393ad3;_0x312514!==ID_DURATION&&_0x3495b9['push'](_0x43c57e['slice'](_0x463ac2,_0x14ab48[_0x61cd2c(0x1d2)](_0x463ac2,_0x8fd38e))),_0x463ac2+=_0x8fd38e;}const _0xf38e52=Buffer[_0x61cd2c(0x1e8)](_0x3495b9),_0xb42212=Buffer[_0x61cd2c(0x1e8)]([_0x43c57e[_0x61cd2c(0x1e3)](_0x3f6fe1,_0x3f6fe1+_0x1142a7),writeVint(_0xf38e52['length'],_0x3f530c)]);return Buffer[_0x61cd2c(0x1e8)]([_0x43c57e['slice'](0x0,_0x3f6fe1),_0xb42212,_0xf38e52,_0x43c57e[_0x61cd2c(0x1e3)](_0x722bd1)]);}_0x3f6fe1+=_0x14ab48['jDEjG'](_0x1142a7,_0x3f530c)+_0x4718f9;}return _0x43c57e;}export function stitchWebmFiles(_0x3ead00,_0x30bd06){const _0x4f55de=_0xd240,_0x2973a9={'pMFta':function(_0x485252,_0x1733ec){return _0x485252(_0x1733ec);},'xEwkk':function(_0x491277,_0x326ffa){return _0x491277+_0x326ffa;},'fLCZp':function(_0x266649,_0x51dfc7,_0x55f5b5,_0xb2f262){return _0x266649(_0x51dfc7,_0x55f5b5,_0xb2f262);}};if(_0x3ead00['length']<=0x1)return![];const _0x470c2c=[];for(const _0x36c0bf of _0x3ead00){const _0x52bd94=_0x2973a9['pMFta'](readFileSync,_0x36c0bf),_0x373355=parseWebm(_0x52bd94);if(!_0x373355||_0x373355[_0x4f55de(0x1e0)]['length']===0x0)return![];_0x470c2c['push'](_0x373355);}const _0x46fe62=_0x470c2c[0x0],_0x34f675=_0x2973a9['pMFta'](rebuildHeaderWithoutDuration,_0x46fe62[_0x4f55de(0x1d9)]),_0x3848c7=[_0x34f675];let _0x358145=0x0;for(let _0x311fcc=0x0;_0x311fcc<_0x470c2c[_0x4f55de(0x202)];_0x311fcc++){const _0x56fe9d=_0x470c2c[_0x311fcc];for(const _0x1b21a7 of _0x56fe9d['clusters']){const _0x58da61=_0x2973a9['xEwkk'](_0x1b21a7['timestamp'],_0x358145);_0x3848c7['push'](_0x2973a9[_0x4f55de(0x201)](buildCluster,_0x58da61,_0x1b21a7[_0x4f55de(0x207)],_0x1b21a7[_0x4f55de(0x1e5)]));}const _0x3d23e9=0x1e;_0x358145+=_0x2973a9['xEwkk'](_0x56fe9d[_0x4f55de(0x1db)],_0x3d23e9);}return writeFileSync(_0x30bd06,Buffer[_0x4f55de(0x1e8)](_0x3848c7)),!![];}if(process['argv'][0x1]?.['endsWith']('stitchWebmFiles.ts')||process[_0x162add(0x1d3)][0x1]?.[_0x162add(0x1ef)](_0x162add(0x1f4))){const args=process['argv']['slice'](0x2);args[_0x162add(0x202)]<0x3&&(console['error'](_0x162add(0x20a)),process[_0x162add(0x205)](0x1));const output=args[args['length']-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x162add(0x1df)](_0x162add(0x200)+inputs['length']+_0x162add(0x1d8)+output):console[_0x162add(0x1df)](_0x162add(0x1c4));}
@@ -1 +1 @@
1
- const _0x18e8e7=_0x45a5;(function(_0x23a1d4,_0x4a25cc){const _0x388874=_0x45a5,_0x5d7a2e=_0x23a1d4();while(!![]){try{const _0x2eeba4=-parseInt(_0x388874(0x1df))/0x1+-parseInt(_0x388874(0x194))/0x2*(parseInt(_0x388874(0x19d))/0x3)+-parseInt(_0x388874(0x1b2))/0x4*(-parseInt(_0x388874(0x1ab))/0x5)+parseInt(_0x388874(0x1b8))/0x6*(-parseInt(_0x388874(0x1c9))/0x7)+-parseInt(_0x388874(0x1d1))/0x8*(parseInt(_0x388874(0x192))/0x9)+parseInt(_0x388874(0x1a3))/0xa*(-parseInt(_0x388874(0x1d8))/0xb)+parseInt(_0x388874(0x1cd))/0xc;if(_0x2eeba4===_0x4a25cc)break;else _0x5d7a2e['push'](_0x5d7a2e['shift']());}catch(_0x2c0dfe){_0x5d7a2e['push'](_0x5d7a2e['shift']());}}}(_0x413a,0xe392a));import{randomUUID}from'crypto';import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';import{homedir}from'os';import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';import{getCurrentVersion}from'./version.js';let cachedDeviceId=null;function _0x45a5(_0x256ec8,_0x38c99d){_0x256ec8=_0x256ec8-0x18f;const _0x413afc=_0x413a();let _0x45a547=_0x413afc[_0x256ec8];return _0x45a547;}function _0x413a(){const _0x29d31a=['trackCommandEnd','1202540hzCiKl','stdout','set','sendImmediate','isTty','DEBUG','trackPhaseEnd','bNfEs','67070QeQsBf','command_end','trackCommandStart','transport','auoSo','slice','IVcFS','212UyeHXI','/api/v1/mcp/cli-telemetry','rtiHb','flushAsync','oCkgN','application/json','56832ROZpTO','featureId','phaseIndex','pENlm','get','durationMs','errorType','itsaq','[telemetry]\x20Sending\x20','commandId','length','flushing','version','ItLfZ','command','phase_start','PmRIZ','938xvVcIA','browserSessionId','trackPhaseError','flush','99732936MLgFhD','mwjrU','buildEvent','UxRuz','428792PenRKq','sendBatch','setContext','mdlWq','rFeOB','phase_end','cwd','165nmxtIv','platform','isTTY','commandStartTime','push','deviceId','evaluation','1570038qCwMSF','message','nRLGA','KPQqk','cliVersion','297JIHLWZ','command_start','3346puFnnX','errorMessage','splice','3|0|6|8|7|2|4|1|5','ynFeO','eventType','buffer','success','phaseStartTimes','3009NLmiqD','env','trackCommandError','isCI','now'];_0x413a=function(){return _0x29d31a;};return _0x413a();}function getDeviceId(){const _0x109842=_0x45a5,_0x521adb={'kcfbM':function(_0x53cb4d,_0x28fb1b,_0x2302c8){return _0x53cb4d(_0x28fb1b,_0x2302c8);},'NkmAV':'.session','rFeOB':function(_0x3a024b,_0x5c80a7){return _0x3a024b(_0x5c80a7);},'PmRIZ':'utf-8','RRnJe':function(_0x409720){return _0x409720();}};if(cachedDeviceId)return cachedDeviceId;try{const _0x3c591e=join(homedir(),'.ranger'),_0x535bf4=_0x521adb['kcfbM'](join,_0x3c591e,_0x521adb['NkmAV']);if(_0x521adb[_0x109842(0x1d5)](existsSync,_0x535bf4)){cachedDeviceId=readFileSync(_0x535bf4,_0x521adb[_0x109842(0x1c8)])['trim']();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=randomUUID(),mkdirSync(_0x3c591e,{'recursive':!![]}),writeFileSync(_0x535bf4,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=_0x521adb['RRnJe'](randomUUID),cachedDeviceId;}}export class TelemetryCollector{['buffer']=[];[_0x18e8e7(0x1c1)];['command'];[_0x18e8e7(0x1db)];['phaseCounter']=0x0;['phaseStartTimes']=new Map();['flushing']=null;[_0x18e8e7(0x1dd)];[_0x18e8e7(0x191)];['nodeVersion'];['platform'];[_0x18e8e7(0x1a7)];['isCI'];['featureId'];['checklistItemId'];[_0x18e8e7(0x1ca)];['transport'];constructor(_0x40ce48){const _0x1d9e86=_0x18e8e7,_0x336a18={'BxDfR':_0x1d9e86(0x197),'bNfEs':function(_0x3ce939){return _0x3ce939();},'pENlm':function(_0x553c5a){return _0x553c5a();}},_0x4710f4=_0x336a18['BxDfR']['split']('|');let _0x34a36f=0x0;while(!![]){switch(_0x4710f4[_0x34a36f++]){case'0':this[_0x1d9e86(0x1c6)]=_0x40ce48;continue;case'1':this['isTty']=process[_0x1d9e86(0x1a4)][_0x1d9e86(0x1da)]??![];continue;case'2':this['nodeVersion']=process[_0x1d9e86(0x1c4)];continue;case'3':this[_0x1d9e86(0x1c1)]=_0x336a18[_0x1d9e86(0x1aa)](randomUUID);continue;case'4':this['platform']=process['platform'];continue;case'5':this[_0x1d9e86(0x1a0)]=!!(process['env']['CI']||process[_0x1d9e86(0x19e)]['GITHUB_ACTIONS']);continue;case'6':this[_0x1d9e86(0x1db)]=Date['now']();continue;case'7':this['cliVersion']=_0x336a18['bNfEs'](getCurrentVersion);continue;case'8':this[_0x1d9e86(0x1dd)]=_0x336a18[_0x1d9e86(0x1bb)](getDeviceId);continue;}break;}}[_0x18e8e7(0x1d3)](_0x3aa8ea){const _0x1573d0=_0x18e8e7;if(_0x3aa8ea['featureId'])this[_0x1573d0(0x1b9)]=_0x3aa8ea['featureId'];if(_0x3aa8ea['checklistItemId'])this['checklistItemId']=_0x3aa8ea['checklistItemId'];if(_0x3aa8ea[_0x1573d0(0x1ca)])this[_0x1573d0(0x1ca)]=_0x3aa8ea[_0x1573d0(0x1ca)];if(_0x3aa8ea[_0x1573d0(0x1ae)])this['transport']=_0x3aa8ea['transport'];}async['trackCommandStart'](_0x4037cf){const _0x1a1de6=_0x18e8e7,_0x285c3c=this['buildEvent']({'eventType':_0x1a1de6(0x193),'metadata':_0x4037cf});await this['sendImmediate'](_0x285c3c);}async[_0x18e8e7(0x1a2)](_0x2052e6,_0x1b786b){const _0x82ca7c=_0x18e8e7,_0xe58dd4=this['buildEvent']({'eventType':_0x82ca7c(0x1ac),'outcome':_0x2052e6,'durationMs':Date['now']()-this[_0x82ca7c(0x1db)],'metadata':_0x1b786b});await this[_0x82ca7c(0x1a6)](_0xe58dd4),await this['flush']();}async['trackCommandError'](_0x49b873,_0x43ed6b){const _0x41cbc1=_0x18e8e7,_0x92bb96={'oCkgN':'command_error','ZAnlw':function(_0x230c96,_0x121f15,_0x22c5c4){return _0x230c96(_0x121f15,_0x22c5c4);},'OTNNE':function(_0x119cd3,_0x55c384){return _0x119cd3 instanceof _0x55c384;},'KPQqk':function(_0x2a0359,_0x4e9b7d){return _0x2a0359(_0x4e9b7d);},'hNMTn':function(_0x4b7e7b,_0x151eb4){return _0x4b7e7b-_0x151eb4;}},_0x35f168=this['buildEvent']({'eventType':_0x92bb96[_0x41cbc1(0x1b6)],'errorMessage':_0x92bb96['ZAnlw'](truncate,_0x92bb96['OTNNE'](_0x49b873,Error)?_0x49b873[_0x41cbc1(0x1e0)]:_0x92bb96[_0x41cbc1(0x190)](String,_0x49b873),0x1f4),'errorType':_0x49b873 instanceof Error?_0x49b873['constructor']['name']:'Unknown','durationMs':_0x92bb96['hNMTn'](Date[_0x41cbc1(0x1a1)](),this['commandStartTime']),'metadata':_0x43ed6b});await this[_0x41cbc1(0x1a6)](_0x35f168),await this[_0x41cbc1(0x1cc)]();}['trackPhaseStart'](_0x437305,_0x3c268a){const _0x4de8af=_0x18e8e7,_0x5f5945={'lpaoM':_0x4de8af(0x1c7)};this['phaseCounter']++,this[_0x4de8af(0x19c)][_0x4de8af(0x1a5)](_0x437305,Date[_0x4de8af(0x1a1)]());const _0x455ee4=this[_0x4de8af(0x1cf)]({'eventType':_0x5f5945['lpaoM'],'phase':_0x437305,'phaseIndex':this['phaseCounter'],'metadata':_0x3c268a});this['buffer'][_0x4de8af(0x1dc)](_0x455ee4);}[_0x18e8e7(0x1a9)](_0x3601cc,_0x5872a3){const _0x4fd1dd=_0x18e8e7,_0x242fe6={'ItLfZ':function(_0x135544,_0x2cc346){return _0x135544-_0x2cc346;},'auoSo':_0x4fd1dd(0x1d6)},_0x16ff44=this[_0x4fd1dd(0x19c)][_0x4fd1dd(0x1bc)](_0x3601cc),_0x36d2a4=_0x16ff44?_0x242fe6[_0x4fd1dd(0x1c5)](Date[_0x4fd1dd(0x1a1)](),_0x16ff44):undefined;this['phaseStartTimes']['delete'](_0x3601cc);const _0x53ed39=this[_0x4fd1dd(0x1cf)]({'eventType':_0x242fe6[_0x4fd1dd(0x1af)],'phase':_0x3601cc,'durationMs':_0x36d2a4,'metadata':_0x5872a3});this[_0x4fd1dd(0x19a)]['push'](_0x53ed39),this[_0x4fd1dd(0x19a)]['length']>=0xa&&this['flushAsync']();}async[_0x18e8e7(0x1cb)](_0x4cdb9d,_0x586055,_0x285d43){const _0x35f033=_0x18e8e7,_0x33d4a2={'rtiHb':function(_0x9dc99d,_0x76b67e){return _0x9dc99d-_0x76b67e;},'nRLGA':'phase_error','MBSsz':function(_0xe0ad9e,_0x3891a7,_0x1c25f9){return _0xe0ad9e(_0x3891a7,_0x1c25f9);},'mwjrU':function(_0x7021d8,_0x4c8d1a){return _0x7021d8 instanceof _0x4c8d1a;},'WCVOc':'Unknown'},_0x4b68e8=this['phaseStartTimes']['get'](_0x4cdb9d),_0x36d23e=_0x4b68e8?_0x33d4a2[_0x35f033(0x1b4)](Date['now'](),_0x4b68e8):undefined;this[_0x35f033(0x19c)]['delete'](_0x4cdb9d);const _0x266d16=this['buildEvent']({'eventType':_0x33d4a2[_0x35f033(0x18f)],'phase':_0x4cdb9d,'durationMs':_0x36d23e,'errorMessage':_0x33d4a2['MBSsz'](truncate,_0x33d4a2[_0x35f033(0x1ce)](_0x586055,Error)?_0x586055['message']:String(_0x586055),0x1f4),'errorType':_0x586055 instanceof Error?_0x586055['constructor']['name']:_0x33d4a2['WCVOc'],'metadata':_0x285d43});await this[_0x35f033(0x1a6)](_0x266d16);}async['flush'](){const _0x1a9dc5=_0x18e8e7;if(this[_0x1a9dc5(0x19a)]['length']===0x0)return;const _0x3f8e89=this['buffer'][_0x1a9dc5(0x196)](0x0);try{await this[_0x1a9dc5(0x1d2)](_0x3f8e89);}catch{}}['buildEvent'](_0x2a327a){const _0x599cd3=_0x18e8e7;return{'eventType':_0x2a327a[_0x599cd3(0x199)],'command':this['command'],'commandId':this[_0x599cd3(0x1c1)],'deviceId':this['deviceId'],'timestamp':new Date()['toISOString'](),'durationMs':_0x2a327a[_0x599cd3(0x1bd)],'phase':_0x2a327a['phase'],'phaseIndex':_0x2a327a[_0x599cd3(0x1ba)],'outcome':_0x2a327a['outcome'],'errorMessage':_0x2a327a[_0x599cd3(0x195)],'errorType':_0x2a327a[_0x599cd3(0x1be)],'featureId':this[_0x599cd3(0x1b9)],'checklistItemId':this['checklistItemId'],'browserSessionId':this['browserSessionId'],'transport':this[_0x599cd3(0x1ae)],'evaluation':_0x2a327a[_0x599cd3(0x1de)],'cliVersion':this[_0x599cd3(0x191)],'nodeVersion':this['nodeVersion'],'platform':this[_0x599cd3(0x1d9)],'cwd':process[_0x599cd3(0x1d7)](),'isTty':this[_0x599cd3(0x1a7)],'isCI':this[_0x599cd3(0x1a0)],'metadata':_0x2a327a['metadata']};}async['sendImmediate'](_0xaa1599){try{await this['sendBatch']([_0xaa1599]);}catch{}}[_0x18e8e7(0x1b5)](){const _0x147ade=_0x18e8e7;if(this['flushing'])return;this[_0x147ade(0x1c3)]=this['flush']()['finally'](()=>{this['flushing']=null;});}async[_0x18e8e7(0x1d2)](_0x40d6b2){const _0x4e3fd3=_0x18e8e7,_0x431a8f={'CQgVc':function(_0x5f587f){return _0x5f587f();},'itsaq':'Authorization','EokjE':function(_0x174ee6,_0x150aaf,_0x5c1e8b){return _0x174ee6(_0x150aaf,_0x5c1e8b);},'jnGYB':'POST','mdlWq':function(_0x1c9204,_0x3f5467){return _0x1c9204(_0x3f5467);}},_0x6a94b8=await _0x431a8f['CQgVc'](getToken)['catch'](()=>null),_0x5c5dad=getApiBaseUrl(),_0x476034={'Content-Type':_0x4e3fd3(0x1b7)};_0x6a94b8&&(_0x476034[_0x431a8f[_0x4e3fd3(0x1bf)]]='Bearer\x20'+_0x6a94b8);const _0x24c9db={'events':_0x40d6b2};process['env'][_0x4e3fd3(0x1a8)]&&console['error'](_0x4e3fd3(0x1c0)+_0x40d6b2[_0x4e3fd3(0x1c2)]+'\x20event(s)\x20to\x20'+_0x5c5dad+'/api/v1/mcp/cli-telemetry');const _0x39a1e4=new AbortController(),_0x55478f=_0x431a8f['EokjE'](setTimeout,()=>_0x39a1e4['abort'](),0x1388);try{await fetch(_0x5c5dad+_0x4e3fd3(0x1b3),{'method':_0x431a8f['jnGYB'],'headers':_0x476034,'body':JSON['stringify'](_0x24c9db),'signal':_0x39a1e4['signal']});}finally{_0x431a8f[_0x4e3fd3(0x1d4)](clearTimeout,_0x55478f);}}}let currentCollector=null;export function createTelemetryCollector(_0x120dcb){return currentCollector=new TelemetryCollector(_0x120dcb),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0x4d74c6,_0x39f3f1,_0x4c0ff3){const _0x2e3282=_0x18e8e7,_0x2bb070={'UxRuz':function(_0x5e2f01,_0x46d175){return _0x5e2f01(_0x46d175);},'IVcFS':function(_0x54b5e9,_0x3a24ba){return _0x54b5e9(_0x3a24ba);},'JTVYH':_0x2e3282(0x19b)},_0x37b7ee=_0x2bb070[_0x2e3282(0x1d0)](createTelemetryCollector,_0x4d74c6);await _0x37b7ee[_0x2e3282(0x1ad)](_0x4c0ff3);try{const _0x507b5c=await _0x2bb070[_0x2e3282(0x1b1)](_0x39f3f1,_0x37b7ee);return await _0x37b7ee['trackCommandEnd'](_0x2bb070['JTVYH']),_0x507b5c;}catch(_0x39ed09){await _0x37b7ee[_0x2e3282(0x19f)](_0x39ed09);throw _0x39ed09;}finally{await _0x37b7ee['flush']();}}function truncate(_0x24ef19,_0x37a6c6){const _0x1530ea=_0x18e8e7,_0x436d4b={'ynFeO':function(_0x420eda,_0x4ed1d3){return _0x420eda>_0x4ed1d3;}};return _0x436d4b[_0x1530ea(0x198)](_0x24ef19[_0x1530ea(0x1c2)],_0x37a6c6)?_0x24ef19[_0x1530ea(0x1b0)](0x0,_0x37a6c6)+'...':_0x24ef19;}
1
+ const _0x149399=_0x150c;(function(_0x5d3d5c,_0x3e42b8){const _0x579240=_0x150c,_0x18beca=_0x5d3d5c();while(!![]){try{const _0x2939c8=-parseInt(_0x579240(0x1a4))/0x1*(parseInt(_0x579240(0x198))/0x2)+parseInt(_0x579240(0x1a0))/0x3+-parseInt(_0x579240(0x1a3))/0x4+-parseInt(_0x579240(0x18e))/0x5*(parseInt(_0x579240(0x1a7))/0x6)+-parseInt(_0x579240(0x17d))/0x7+parseInt(_0x579240(0x187))/0x8+parseInt(_0x579240(0x172))/0x9;if(_0x2939c8===_0x3e42b8)break;else _0x18beca['push'](_0x18beca['shift']());}catch(_0x1963da){_0x18beca['push'](_0x18beca['shift']());}}}(_0x369f,0x7a6a1));import{randomUUID}from'crypto';import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';import{homedir}from'os';import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';function _0x369f(){const _0x525abe=['flushAsync','commandStartTime','now','POST','version','2722748YIOqIT','phase','outcome','metadata','durationMs','gNCqc','command','DEBUG','platform','setContext','7922216cwxhsY','NaRMC','stdout','buffer','splice','checklistItemId','/api/v1/mcp/cli-telemetry','245oDfoFe','phaseCounter','sendBatch','env','[telemetry]\x20Sending\x20','constructor','message','isCI','nFjPg','phase_start','1154dJUkaX','push','zGtLX','trackCommandError','trackCommandEnd','HHroP','phaseStartTimes','mzbuc','189378usreya','slice','errorMessage','1355352KsyxfS','1633kIHLFu','UnGUr','cliVersion','106734TNByUu','MxFXL','cRwBR','stringify','sendImmediate','Unknown','LbRfE','flush','commandId','nodeVersion','command_error','transport','name','buildEvent','trackPhaseEnd','abort','WsBIl','success','.session','.ranger','NvJOd','trim','length','Bearer\x20','errorType','\x20event(s)\x20to\x20','utf-8','flushing','browserSessionId','delete','phase_error','isTty','loCjf','17907390RDlDgR','trackPhaseStart','split','featureId','catch','finally'];_0x369f=function(){return _0x525abe;};return _0x369f();}import{getCurrentVersion}from'./version.js';let cachedDeviceId=null;function getDeviceId(){const _0x2af51d=_0x150c,_0x37e01a={'LbRfE':function(_0xfca602,_0x402133,_0x2272c4){return _0xfca602(_0x402133,_0x2272c4);},'UnGUr':_0x2af51d(0x1b9),'loCjf':function(_0x18ee9f){return _0x18ee9f();}};if(cachedDeviceId)return cachedDeviceId;try{const _0x56ee16=join(homedir(),_0x2af51d(0x1ba)),_0x167989=_0x37e01a[_0x2af51d(0x1ad)](join,_0x56ee16,_0x37e01a[_0x2af51d(0x1a5)]);if(existsSync(_0x167989)){cachedDeviceId=readFileSync(_0x167989,_0x2af51d(0x16b))[_0x2af51d(0x166)]();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=randomUUID(),mkdirSync(_0x56ee16,{'recursive':!![]}),_0x37e01a[_0x2af51d(0x1ad)](writeFileSync,_0x167989,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=_0x37e01a[_0x2af51d(0x171)](randomUUID),cachedDeviceId;}}export class TelemetryCollector{[_0x149399(0x18a)]=[];['commandId'];[_0x149399(0x183)];['commandStartTime'];[_0x149399(0x18f)]=0x0;['phaseStartTimes']=new Map();[_0x149399(0x16c)]=null;['deviceId'];[_0x149399(0x1a6)];['nodeVersion'];[_0x149399(0x185)];[_0x149399(0x170)];[_0x149399(0x195)];['featureId'];[_0x149399(0x18c)];[_0x149399(0x16d)];['transport'];constructor(_0x46c66a){const _0x1668d0=_0x149399,_0x19b2c2={'rfAGy':function(_0x13e28c){return _0x13e28c();}},_0x3abdc6='4|1|8|2|7|6|5|0|3'[_0x1668d0(0x174)]('|');let _0x3d7e60=0x0;while(!![]){switch(_0x3abdc6[_0x3d7e60++]){case'0':this['isTty']=process[_0x1668d0(0x189)]['isTTY']??![];continue;case'1':this['command']=_0x46c66a;continue;case'2':this['deviceId']=_0x19b2c2['rfAGy'](getDeviceId);continue;case'3':this['isCI']=!!(process['env']['CI']||process['env']['GITHUB_ACTIONS']);continue;case'4':this[_0x1668d0(0x1af)]=randomUUID();continue;case'5':this[_0x1668d0(0x185)]=process['platform'];continue;case'6':this[_0x1668d0(0x1b0)]=process[_0x1668d0(0x17c)];continue;case'7':this[_0x1668d0(0x1a6)]=_0x19b2c2['rfAGy'](getCurrentVersion);continue;case'8':this[_0x1668d0(0x179)]=Date[_0x1668d0(0x17a)]();continue;}break;}}[_0x149399(0x186)](_0x1dbc5d){const _0x4a95bc=_0x149399;if(_0x1dbc5d['featureId'])this[_0x4a95bc(0x175)]=_0x1dbc5d['featureId'];if(_0x1dbc5d['checklistItemId'])this['checklistItemId']=_0x1dbc5d[_0x4a95bc(0x18c)];if(_0x1dbc5d[_0x4a95bc(0x16d)])this[_0x4a95bc(0x16d)]=_0x1dbc5d['browserSessionId'];if(_0x1dbc5d['transport'])this['transport']=_0x1dbc5d['transport'];}async['trackCommandStart'](_0x509d0a){const _0x445b07=_0x149399,_0x124447=this['buildEvent']({'eventType':'command_start','metadata':_0x509d0a});await this[_0x445b07(0x1ab)](_0x124447);}async[_0x149399(0x19c)](_0x24bb3b,_0x417e64){const _0x354682=_0x149399,_0x5109f5={'HHroP':'command_end'},_0x175910=this['buildEvent']({'eventType':_0x5109f5[_0x354682(0x19d)],'outcome':_0x24bb3b,'durationMs':Date['now']()-this[_0x354682(0x179)],'metadata':_0x417e64});await this[_0x354682(0x1ab)](_0x175910),await this[_0x354682(0x1ae)]();}async['trackCommandError'](_0x33de17,_0x441b6d){const _0x1f5c59=_0x149399,_0x2d34a2={'fSjAm':_0x1f5c59(0x1b1),'TjBDk':function(_0x43f9d9,_0x1e7bd0,_0xff3b09){return _0x43f9d9(_0x1e7bd0,_0xff3b09);},'LmRyz':function(_0x10ba5d,_0x10567a){return _0x10ba5d instanceof _0x10567a;},'TXJis':function(_0x4de3b3,_0x567953){return _0x4de3b3(_0x567953);},'nFjPg':function(_0x4834bd,_0x53d241){return _0x4834bd instanceof _0x53d241;}},_0x3d5e28=this['buildEvent']({'eventType':_0x2d34a2['fSjAm'],'errorMessage':_0x2d34a2['TjBDk'](truncate,_0x2d34a2['LmRyz'](_0x33de17,Error)?_0x33de17[_0x1f5c59(0x194)]:_0x2d34a2['TXJis'](String,_0x33de17),0x1f4),'errorType':_0x2d34a2[_0x1f5c59(0x196)](_0x33de17,Error)?_0x33de17[_0x1f5c59(0x193)][_0x1f5c59(0x1b3)]:'Unknown','durationMs':Date[_0x1f5c59(0x17a)]()-this['commandStartTime'],'metadata':_0x441b6d});await this[_0x1f5c59(0x1ab)](_0x3d5e28),await this[_0x1f5c59(0x1ae)]();}[_0x149399(0x173)](_0x1302b1,_0x25c68d){const _0x1fd279=_0x149399,_0x4bdffb={'SeWSP':_0x1fd279(0x197)};this[_0x1fd279(0x18f)]++,this['phaseStartTimes']['set'](_0x1302b1,Date['now']());const _0x4270e3=this['buildEvent']({'eventType':_0x4bdffb['SeWSP'],'phase':_0x1302b1,'phaseIndex':this['phaseCounter'],'metadata':_0x25c68d});this[_0x1fd279(0x18a)][_0x1fd279(0x199)](_0x4270e3);}[_0x149399(0x1b5)](_0x3206db,_0x3599fd){const _0x5dd733=_0x149399,_0x474fa0={'MxFXL':'phase_end'},_0x83d281=this[_0x5dd733(0x19e)]['get'](_0x3206db),_0x22c294=_0x83d281?Date[_0x5dd733(0x17a)]()-_0x83d281:undefined;this[_0x5dd733(0x19e)]['delete'](_0x3206db);const _0x5e9807=this[_0x5dd733(0x1b4)]({'eventType':_0x474fa0[_0x5dd733(0x1a8)],'phase':_0x3206db,'durationMs':_0x22c294,'metadata':_0x3599fd});this[_0x5dd733(0x18a)][_0x5dd733(0x199)](_0x5e9807),this[_0x5dd733(0x18a)][_0x5dd733(0x167)]>=0xa&&this[_0x5dd733(0x178)]();}async['trackPhaseError'](_0x6e4510,_0x3557ac,_0x2a2941){const _0x33cbd1=_0x149399,_0x23e017={'DUDTR':_0x33cbd1(0x16f),'NvJOd':function(_0x24e801,_0x126f03){return _0x24e801 instanceof _0x126f03;}},_0x3e7ece=this[_0x33cbd1(0x19e)]['get'](_0x6e4510),_0x543bfb=_0x3e7ece?Date[_0x33cbd1(0x17a)]()-_0x3e7ece:undefined;this[_0x33cbd1(0x19e)][_0x33cbd1(0x16e)](_0x6e4510);const _0x4a9289=this['buildEvent']({'eventType':_0x23e017['DUDTR'],'phase':_0x6e4510,'durationMs':_0x543bfb,'errorMessage':truncate(_0x23e017[_0x33cbd1(0x165)](_0x3557ac,Error)?_0x3557ac[_0x33cbd1(0x194)]:String(_0x3557ac),0x1f4),'errorType':_0x23e017[_0x33cbd1(0x165)](_0x3557ac,Error)?_0x3557ac[_0x33cbd1(0x193)]['name']:_0x33cbd1(0x1ac),'metadata':_0x2a2941});await this[_0x33cbd1(0x1ab)](_0x4a9289);}async['flush'](){const _0x25221b=_0x149399,_0x4bda7a={'gNCqc':function(_0x5a404e,_0x8be3ff){return _0x5a404e===_0x8be3ff;}};if(_0x4bda7a[_0x25221b(0x182)](this['buffer']['length'],0x0))return;const _0x25b475=this['buffer'][_0x25221b(0x18b)](0x0);try{await this['sendBatch'](_0x25b475);}catch{}}[_0x149399(0x1b4)](_0x130bee){const _0x1734be=_0x149399;return{'eventType':_0x130bee['eventType'],'command':this[_0x1734be(0x183)],'commandId':this[_0x1734be(0x1af)],'deviceId':this['deviceId'],'timestamp':new Date()['toISOString'](),'durationMs':_0x130bee[_0x1734be(0x181)],'phase':_0x130bee[_0x1734be(0x17e)],'phaseIndex':_0x130bee['phaseIndex'],'outcome':_0x130bee[_0x1734be(0x17f)],'errorMessage':_0x130bee[_0x1734be(0x1a2)],'errorType':_0x130bee[_0x1734be(0x169)],'featureId':this['featureId'],'checklistItemId':this['checklistItemId'],'browserSessionId':this['browserSessionId'],'transport':this[_0x1734be(0x1b2)],'evaluation':_0x130bee['evaluation'],'cliVersion':this['cliVersion'],'nodeVersion':this['nodeVersion'],'platform':this[_0x1734be(0x185)],'cwd':process['cwd'](),'isTty':this[_0x1734be(0x170)],'isCI':this[_0x1734be(0x195)],'metadata':_0x130bee[_0x1734be(0x180)]};}async['sendImmediate'](_0x2c9645){const _0x187ee8=_0x149399;try{await this[_0x187ee8(0x190)]([_0x2c9645]);}catch{}}[_0x149399(0x178)](){const _0x427078=_0x149399;if(this['flushing'])return;this['flushing']=this['flush']()[_0x427078(0x177)](()=>{this['flushing']=null;});}async[_0x149399(0x190)](_0x48380c){const _0x2d1328=_0x149399,_0x1da0a4={'mzbuc':function(_0x2e57b2,_0x40eeb0,_0x1d6a77){return _0x2e57b2(_0x40eeb0,_0x1d6a77);},'zGtLX':_0x2d1328(0x17b),'NaRMC':function(_0x4ae73c,_0x6f8ebd){return _0x4ae73c(_0x6f8ebd);}},_0x101ad5=await getToken()[_0x2d1328(0x176)](()=>null),_0x11b326=getApiBaseUrl(),_0x312d85={'Content-Type':'application/json'};_0x101ad5&&(_0x312d85['Authorization']=_0x2d1328(0x168)+_0x101ad5);const _0x48305b={'events':_0x48380c};process[_0x2d1328(0x191)][_0x2d1328(0x184)]&&console['error'](_0x2d1328(0x192)+_0x48380c[_0x2d1328(0x167)]+_0x2d1328(0x16a)+_0x11b326+_0x2d1328(0x18d));const _0x56122b=new AbortController(),_0x3be6ad=_0x1da0a4[_0x2d1328(0x19f)](setTimeout,()=>_0x56122b[_0x2d1328(0x1b6)](),0x1388);try{await _0x1da0a4[_0x2d1328(0x19f)](fetch,_0x11b326+'/api/v1/mcp/cli-telemetry',{'method':_0x1da0a4[_0x2d1328(0x19a)],'headers':_0x312d85,'body':JSON[_0x2d1328(0x1aa)](_0x48305b),'signal':_0x56122b['signal']});}finally{_0x1da0a4[_0x2d1328(0x188)](clearTimeout,_0x3be6ad);}}}function _0x150c(_0x233496,_0x17fa07){_0x233496=_0x233496-0x165;const _0x369f2e=_0x369f();let _0x150cfe=_0x369f2e[_0x233496];return _0x150cfe;}let currentCollector=null;export function createTelemetryCollector(_0x251948){return currentCollector=new TelemetryCollector(_0x251948),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0x175968,_0x57f29f,_0x3bba14){const _0x4a6d96=_0x149399,_0x5a8702={'TLoEp':function(_0x50923b,_0x373db6){return _0x50923b(_0x373db6);},'WsBIl':_0x4a6d96(0x1b8)},_0x53ef09=_0x5a8702['TLoEp'](createTelemetryCollector,_0x175968);await _0x53ef09['trackCommandStart'](_0x3bba14);try{const _0x590ffe=await _0x57f29f(_0x53ef09);return await _0x53ef09['trackCommandEnd'](_0x5a8702[_0x4a6d96(0x1b7)]),_0x590ffe;}catch(_0x383b16){await _0x53ef09[_0x4a6d96(0x19b)](_0x383b16);throw _0x383b16;}finally{await _0x53ef09[_0x4a6d96(0x1ae)]();}}function truncate(_0x1f6379,_0x30faab){const _0x48c70c=_0x149399,_0x77a6f9={'UYHFn':function(_0x3d7a48,_0x3b34fc){return _0x3d7a48>_0x3b34fc;},'cjSBA':function(_0x11f44d,_0x484ace){return _0x11f44d+_0x484ace;},'cRwBR':'...'};return _0x77a6f9['UYHFn'](_0x1f6379[_0x48c70c(0x167)],_0x30faab)?_0x77a6f9['cjSBA'](_0x1f6379[_0x48c70c(0x1a1)](0x0,_0x30faab),_0x77a6f9[_0x48c70c(0x1a9)]):_0x1f6379;}
@@ -1 +1 @@
1
- (function(_0x102281,_0x49649a){const _0x4b006d=_0x34d4,_0x2c0099=_0x102281();while(!![]){try{const _0x234316=parseInt(_0x4b006d(0xce))/0x1+parseInt(_0x4b006d(0xd7))/0x2+parseInt(_0x4b006d(0xd1))/0x3*(-parseInt(_0x4b006d(0xde))/0x4)+parseInt(_0x4b006d(0xda))/0x5*(-parseInt(_0x4b006d(0xcf))/0x6)+-parseInt(_0x4b006d(0xdd))/0x7+-parseInt(_0x4b006d(0xd2))/0x8+parseInt(_0x4b006d(0xdb))/0x9;if(_0x234316===_0x49649a)break;else _0x2c0099['push'](_0x2c0099['shift']());}catch(_0x5a6296){_0x2c0099['push'](_0x2c0099['shift']());}}}(_0x3ccf,0x45d6e));import{getApiBaseUrl}from'./environment.js';import{getRefreshToken,storeToken,storeRefreshToken}from'./keychain.js';export async function refreshCliToken(){const _0x588afe={'MtKOO':function(_0x5bd1b6){return _0x5bd1b6();},'SMzUR':function(_0x2486d3,_0x45d550){return _0x2486d3(_0x45d550);}},_0x24c2ba=await _0x588afe['MtKOO'](getRefreshToken);if(!_0x24c2ba)return null;const _0x56a7c1=await _0x588afe['SMzUR'](tryPartnerRefresh,_0x24c2ba);if(_0x56a7c1)return _0x56a7c1;return tryWorkosRefresh(_0x24c2ba);}function _0x3ccf(){const _0x1ac119=['token','2584955btrrEz','10465227tTJWgh','timeout','2938992kMkFtk','20svdanF','stringify','11304LmNuvt','6GuvGcx','json','15246jVNSAI','938448tlqwGl','/cli-auth/refresh','VKRrq','POST','application/json','383036jGYxHt','persistRefreshToken'];_0x3ccf=function(){return _0x1ac119;};return _0x3ccf();}export async function refreshPartnerCliToken(_0x4f2f45,_0x520d0f={}){const _0x3ffde7=_0x34d4,_0x40dc30={'MOJDs':function(_0x4ad013,_0x53c399){return _0x4ad013(_0x53c399);},'IuXNP':function(_0x3d3734,_0x202fe1){return _0x3d3734(_0x202fe1);}},_0x5b30cc=await _0x40dc30['MOJDs'](tryPartnerRefresh,_0x4f2f45);return _0x5b30cc&&_0x520d0f[_0x3ffde7(0xd8)]&&await _0x40dc30['IuXNP'](storeRefreshToken,_0x4f2f45),_0x5b30cc;}function _0x34d4(_0x793931,_0x22fb11){_0x793931=_0x793931-0xce;const _0x3ccff6=_0x3ccf();let _0x34d4ed=_0x3ccff6[_0x793931];return _0x34d4ed;}async function tryPartnerRefresh(_0x852f7e){const _0x59b151=_0x34d4,_0xaca819={'AHZQf':_0x59b151(0xd6),'VKRrq':function(_0x26efe6,_0x2273a5){return _0x26efe6(_0x2273a5);}},_0x23027b=getApiBaseUrl();try{const _0x275d93=await fetch(_0x23027b+'/cli-auth/partner-refresh',{'method':_0x59b151(0xd5),'headers':{'Content-Type':_0xaca819['AHZQf']},'body':JSON[_0x59b151(0xdf)]({'refreshToken':_0x852f7e}),'signal':AbortSignal[_0x59b151(0xdc)](0x2710)});if(!_0x275d93['ok'])return null;const _0x3d6534=await _0x275d93[_0x59b151(0xd0)]();return await _0xaca819[_0x59b151(0xd4)](storeToken,_0x3d6534['token']),_0x3d6534[_0x59b151(0xd9)];}catch{return null;}}async function tryWorkosRefresh(_0x2e3945){const _0x31d107=_0x34d4,_0x3694cb={'stghU':'POST','pAWwM':'application/json','CfHcN':function(_0x1b8c51,_0x20eed2){return _0x1b8c51(_0x20eed2);}},_0x562a42=getApiBaseUrl();try{const _0x51a046=await fetch(_0x562a42+_0x31d107(0xd3),{'method':_0x3694cb['stghU'],'headers':{'Content-Type':_0x3694cb['pAWwM']},'body':JSON['stringify']({'refreshToken':_0x2e3945}),'signal':AbortSignal[_0x31d107(0xdc)](0x2710)});if(!_0x51a046['ok'])return null;const _0x2e8965=await _0x51a046['json']();return await _0x3694cb['CfHcN'](storeToken,_0x2e8965[_0x31d107(0xd9)]),await storeRefreshToken(_0x2e8965['refreshToken']),_0x2e8965['token'];}catch{return null;}}
1
+ (function(_0x1e2a4e,_0x1ce848){const _0x10ca71=_0x29e5,_0x3462c4=_0x1e2a4e();while(!![]){try{const _0x20e40b=parseInt(_0x10ca71(0x190))/0x1+-parseInt(_0x10ca71(0x19b))/0x2+parseInt(_0x10ca71(0x194))/0x3+-parseInt(_0x10ca71(0x197))/0x4*(-parseInt(_0x10ca71(0x18c))/0x5)+-parseInt(_0x10ca71(0x196))/0x6+-parseInt(_0x10ca71(0x193))/0x7+parseInt(_0x10ca71(0x18a))/0x8*(parseInt(_0x10ca71(0x18e))/0x9);if(_0x20e40b===_0x1ce848)break;else _0x3462c4['push'](_0x3462c4['shift']());}catch(_0x16f4d2){_0x3462c4['push'](_0x3462c4['shift']());}}}(_0x59a2,0x1d65a));import{getApiBaseUrl}from'./environment.js';import{getRefreshToken,storeToken,storeRefreshToken}from'./keychain.js';export async function refreshCliToken(){const _0x459e21=_0x29e5,_0x252837={'svkvx':function(_0x29a5db){return _0x29a5db();}},_0x17a6b1=await _0x252837[_0x459e21(0x18f)](getRefreshToken);if(!_0x17a6b1)return null;const _0x30409e=await tryPartnerRefresh(_0x17a6b1);if(_0x30409e)return _0x30409e;return tryWorkosRefresh(_0x17a6b1);}export async function refreshPartnerCliToken(_0x95c2fa,_0x391256={}){const _0x37678b={'aBLps':function(_0x5e76f4,_0x417cce){return _0x5e76f4(_0x417cce);}},_0x396adf=await _0x37678b['aBLps'](tryPartnerRefresh,_0x95c2fa);return _0x396adf&&_0x391256['persistRefreshToken']&&await storeRefreshToken(_0x95c2fa),_0x396adf;}function _0x59a2(){const _0x3178b2=['timeout','379132mIAudH','refreshToken','/cli-auth/partner-refresh','tFpCf','2169184OtvBZs','json','185HSMtra','POST','9AYdFhr','svkvx','54491deuKdw','stringify','application/json','469623aWfxGz','46836QZUYGS','TtesF','301266HwttrZ','9300usziuO','ZNcLz','token'];_0x59a2=function(){return _0x3178b2;};return _0x59a2();}async function tryPartnerRefresh(_0x3993a1){const _0x24da05=_0x29e5,_0x4b6d1c={'TtesF':function(_0x53d9d6){return _0x53d9d6();},'ZTdvr':_0x24da05(0x18d),'ZNcLz':'application/json'},_0x1fd795=_0x4b6d1c[_0x24da05(0x195)](getApiBaseUrl);try{const _0x169a1f=await fetch(_0x1fd795+_0x24da05(0x188),{'method':_0x4b6d1c['ZTdvr'],'headers':{'Content-Type':_0x4b6d1c[_0x24da05(0x198)]},'body':JSON['stringify']({'refreshToken':_0x3993a1}),'signal':AbortSignal[_0x24da05(0x19a)](0x2710)});if(!_0x169a1f['ok'])return null;const _0x45bc4e=await _0x169a1f[_0x24da05(0x18b)]();return await storeToken(_0x45bc4e[_0x24da05(0x199)]),_0x45bc4e[_0x24da05(0x199)];}catch{return null;}}function _0x29e5(_0x363200,_0x57813a){_0x363200=_0x363200-0x187;const _0x59a2f8=_0x59a2();let _0x29e58d=_0x59a2f8[_0x363200];return _0x29e58d;}async function tryWorkosRefresh(_0x4f948f){const _0x4e7a3e=_0x29e5,_0x242d4a={'tFpCf':_0x4e7a3e(0x18d)},_0x1528df=getApiBaseUrl();try{const _0x5f460f=await fetch(_0x1528df+'/cli-auth/refresh',{'method':_0x242d4a[_0x4e7a3e(0x189)],'headers':{'Content-Type':_0x4e7a3e(0x192)},'body':JSON[_0x4e7a3e(0x191)]({'refreshToken':_0x4f948f}),'signal':AbortSignal['timeout'](0x2710)});if(!_0x5f460f['ok'])return null;const _0x30be0f=await _0x5f460f[_0x4e7a3e(0x18b)]();return await storeToken(_0x30be0f['token']),await storeRefreshToken(_0x30be0f[_0x4e7a3e(0x187)]),_0x30be0f[_0x4e7a3e(0x199)];}catch{return null;}}
@@ -1 +1 @@
1
- (function(_0x5103d0,_0x11c8dd){const _0x755f4a=_0x474e,_0xfacb4d=_0x5103d0();while(!![]){try{const _0x17f795=-parseInt(_0x755f4a(0x18e))/0x1+parseInt(_0x755f4a(0x17f))/0x2+-parseInt(_0x755f4a(0x18f))/0x3*(parseInt(_0x755f4a(0x1a9))/0x4)+-parseInt(_0x755f4a(0x18b))/0x5+parseInt(_0x755f4a(0x182))/0x6*(parseInt(_0x755f4a(0x1a4))/0x7)+parseInt(_0x755f4a(0x196))/0x8*(parseInt(_0x755f4a(0x197))/0x9)+parseInt(_0x755f4a(0x1a3))/0xa;if(_0x17f795===_0x11c8dd)break;else _0xfacb4d['push'](_0xfacb4d['shift']());}catch(_0x4c7d92){_0xfacb4d['push'](_0xfacb4d['shift']());}}}(_0x5f34,0xd8cd6));function _0x5f34(){const _0x557033=['split','6930220jqTsQn','filter','afterSnapshot','1488232dpXVCu','3yMMvxP','startTime','navigated','parse','edTri','frameUrl','beforeSnapshot','32Rqoqwg','3047076FWagde','length','inputSnapshot','method','url','endTime','NLFki','page@0','Uzldz','REtVW','abs','endsWith','25982670ZzXfje','7RHFiSp','values','get','push','qoOaG','4246412KAsxwD','monotonicTime','utf-8','indexOf','apiName','type','AqhWU','set','after','XfUda','1310176uPbtAy','pageId','before','1297740miWTeF','string','IiSkf','params','uyfed','point','input','KfpnT'];_0x5f34=function(){return _0x557033;};return _0x5f34();}import{readdir,readFile}from'fs/promises';import{join}from'path';function _0x474e(_0x30e393,_0x1ad7ed){_0x30e393=_0x30e393-0x178;const _0x5f3423=_0x5f34();let _0x474e8b=_0x5f3423[_0x30e393];return _0x474e8b;}export async function mapStepsToTraceSnapshots(_0x295817,_0x1db4e6){const _0x2b3888=_0x474e,_0x35cd40={'uyfed':function(_0x663b5e,_0x8cbcff){return _0x663b5e===_0x8cbcff;},'XfUda':function(_0x2d620c,_0x5c701c){return _0x2d620c===_0x5c701c;},'Ctvvw':_0x2b3888(0x1ab),'Uzldz':_0x2b3888(0x188),'mteZd':_0x2b3888(0x17d),'tkkfq':function(_0x3300c5,_0x580d50){return _0x3300c5===_0x580d50;},'qoOaG':'frame-snapshot','sPtqS':function(_0x3d2137,_0xfe9680){return _0x3d2137===_0xfe9680;},'QjnOO':'goto','AqhWU':function(_0x18c893,_0x1c5941){return _0x18c893===_0x1c5941;},'IiSkf':_0x2b3888(0x183),'edTri':function(_0x5842af,_0x32927a){return _0x5842af-_0x32927a;},'luwaw':_0x2b3888(0x19e),'NLFki':function(_0x22a2d3,_0x2dc73d){return _0x22a2d3>=_0x2dc73d;},'REtVW':function(_0x4c6338,_0x59a762){return _0x4c6338<_0x59a762;},'KfpnT':function(_0x1e0f9a,_0xe27e5e){return _0x1e0f9a+_0xe27e5e;}},_0xf63121=new Map();if(_0x35cd40[_0x2b3888(0x186)](_0x1db4e6[_0x2b3888(0x198)],0x0))return _0xf63121;const _0x2019d4=[],_0x1c9edc=async _0x2a1f06=>{const _0x320692=_0x2b3888,_0x346305=await readdir(_0x2a1f06,{'withFileTypes':!![]});for(const _0x5b9aee of _0x346305){const _0x528583=join(_0x2a1f06,_0x5b9aee['name']);if(_0x5b9aee['isDirectory']())await _0x1c9edc(_0x528583);else _0x5b9aee['name'][_0x320692(0x1a2)]('.trace')&&_0x2019d4[_0x320692(0x1a7)](_0x528583);}};await _0x1c9edc(_0x295817);if(_0x35cd40[_0x2b3888(0x17e)](_0x2019d4[_0x2b3888(0x198)],0x0))return _0xf63121;const _0x351624=[];for(const _0x5bda7c of _0x2019d4){const _0x197227=await readFile(_0x5bda7c,_0x35cd40['Ctvvw']),_0x1b5190=_0x197227[_0x2b3888(0x18a)]('\x0a')[_0x2b3888(0x18c)](_0x462ad0=>_0x462ad0['trim']());for(const _0x241bb9 of _0x1b5190){try{_0x351624['push'](JSON[_0x2b3888(0x192)](_0x241bb9));}catch{}}}if(_0x35cd40['uyfed'](_0x351624['length'],0x0))return _0xf63121;const _0x400ed6=_0x351624['find'](_0x494e74=>_0x494e74[_0x2b3888(0x17a)]==='context-options');if(!_0x400ed6)return _0xf63121;const _0x139304=_0x400ed6['wallTime']-_0x400ed6[_0x2b3888(0x1aa)],_0x192d2d=new Map();for(const _0x336bc9 of _0x351624){switch(_0x336bc9['type']){case _0x2b3888(0x181):{const _0x157c1f=_0x336bc9;_0x192d2d[_0x2b3888(0x17c)](_0x157c1f['callId'],{'callId':_0x157c1f['callId'],'startTime':_0x157c1f['startTime'],'endTime':0x0,'method':_0x157c1f['method'],'apiName':_0x157c1f[_0x2b3888(0x179)],'params':_0x157c1f['params'],'pageId':_0x157c1f['pageId'],'beforeSnapshot':_0x157c1f[_0x2b3888(0x195)]});break;}case _0x35cd40[_0x2b3888(0x19f)]:{const _0x2c7b45=_0x336bc9,_0x38725a=_0x192d2d['get'](_0x2c7b45['callId']);if(_0x38725a){if(_0x2c7b45[_0x2b3888(0x199)])_0x38725a['inputSnapshot']=_0x2c7b45[_0x2b3888(0x199)];if(_0x2c7b45['point'])_0x38725a['point']=_0x2c7b45[_0x2b3888(0x187)];}break;}case _0x35cd40['mteZd']:{const _0x3b996a=_0x336bc9,_0x19c8ee=_0x192d2d[_0x2b3888(0x1a6)](_0x3b996a['callId']);if(_0x19c8ee){_0x19c8ee[_0x2b3888(0x19c)]=_0x3b996a['endTime'];if(_0x3b996a[_0x2b3888(0x18d)])_0x19c8ee['afterSnapshot']=_0x3b996a['afterSnapshot'];}break;}}}const _0x455aa5=Array['from'](_0x192d2d[_0x2b3888(0x1a5)]())[_0x2b3888(0x18c)](_0x500566=>_0x500566['endTime']>0x0&&(_0x500566[_0x2b3888(0x18d)]||_0x500566['beforeSnapshot']))['sort']((_0x3291ab,_0x511c77)=>_0x3291ab['startTime']-_0x511c77[_0x2b3888(0x190)]);if(_0x35cd40[_0x2b3888(0x17e)](_0x455aa5[_0x2b3888(0x198)],0x0))return _0xf63121;const _0x3b83d6=new Map();for(const _0x362af9 of _0x351624){if(_0x35cd40['tkkfq'](_0x362af9[_0x2b3888(0x17a)],_0x35cd40[_0x2b3888(0x1a8)])){const _0x1ee2c1=_0x362af9['snapshot'];_0x1ee2c1?.['snapshotName']&&_0x1ee2c1?.[_0x2b3888(0x194)]&&_0x3b83d6['set'](_0x1ee2c1['snapshotName'],_0x1ee2c1[_0x2b3888(0x194)]);}}const _0x10ca16=new Map();for(const _0xc0f859 of _0x455aa5){const _0x222f67=_0xc0f859[_0x2b3888(0x185)]?.[_0x2b3888(0x19b)];_0x35cd40['sPtqS'](_0xc0f859[_0x2b3888(0x19a)],_0x35cd40['QjnOO'])&&_0x35cd40[_0x2b3888(0x17b)](typeof _0x222f67,_0x2b3888(0x183))&&_0xc0f859['pageId']&&_0x10ca16['set'](_0xc0f859[_0x2b3888(0x180)],_0x222f67);}for(const _0xecfdf9 of _0x351624){const _0x44f154=_0xecfdf9,_0x33f319=_0x44f154['params'],_0x5043cb=_0x33f319?.[_0x2b3888(0x19b)];_0x35cd40[_0x2b3888(0x186)](_0x44f154['type'],'event')&&_0x44f154[_0x2b3888(0x19a)]===_0x2b3888(0x191)&&typeof _0x5043cb===_0x35cd40[_0x2b3888(0x184)]&&_0x35cd40['tkkfq'](typeof _0x44f154['pageId'],_0x2b3888(0x183))&&_0x10ca16['set'](_0x44f154['pageId'],_0x5043cb);}for(const _0x4aad19 of _0x1db4e6){const _0x140b07=new Date(_0x4aad19['capturedAt'])['getTime'](),_0x1bc3da=_0x35cd40['edTri'](_0x140b07,_0x139304);let _0x3797e5=null,_0x6aff=Infinity;for(const _0x364fcf of _0x455aa5){const _0x432650=Math[_0x2b3888(0x1a1)](_0x35cd40[_0x2b3888(0x193)](_0x364fcf[_0x2b3888(0x19c)],_0x1bc3da));_0x432650<_0x6aff&&(_0x6aff=_0x432650,_0x3797e5=_0x364fcf);}if(!_0x3797e5)continue;const _0x5df356=_0x3797e5[_0x2b3888(0x18d)]||_0x3797e5[_0x2b3888(0x195)];if(!_0x5df356)continue;const _0x290c5f=_0x3797e5['pageId']||_0x35cd40['luwaw'];let _0x3a36d=_0x3b83d6['get'](_0x5df356)||_0x10ca16[_0x2b3888(0x1a6)](_0x290c5f)||'';if(!_0x3a36d)for(let _0x2175bd=_0x455aa5['indexOf'](_0x3797e5);_0x2175bd>=0x0;_0x2175bd--){const _0x339a4c=_0x455aa5[_0x2175bd]['params']?.['url'];if(_0x455aa5[_0x2175bd][_0x2b3888(0x19a)]==='goto'&&_0x35cd40['tkkfq'](typeof _0x339a4c,_0x35cd40['IiSkf'])){_0x3a36d=_0x339a4c;break;}}let _0x4bfdf7,_0x119a80;const _0x5321e7=_0x455aa5[_0x2b3888(0x178)](_0x3797e5);if(_0x35cd40[_0x2b3888(0x19d)](_0x5321e7,0x0)&&_0x35cd40[_0x2b3888(0x1a0)](_0x5321e7,_0x455aa5['length']-0x1)){const _0x2bf10e=_0x455aa5[_0x35cd40[_0x2b3888(0x189)](_0x5321e7,0x1)];_0x2bf10e['point']&&_0x2bf10e['inputSnapshot']&&(_0x4bfdf7=_0x2bf10e[_0x2b3888(0x187)],_0x119a80=_0x2bf10e['inputSnapshot']);}_0xf63121['set'](_0x4aad19['stepId'],{'snapshotName':_0x5df356,'inputSnapshotName':_0x119a80,'pageId':_0x290c5f,'pageUrl':_0x3a36d,'callId':_0x3797e5['callId'],'point':_0x4bfdf7});}return _0xf63121;}
1
+ function _0x4fa0(){const _0x59421c=['url','from','618bKfeSx','event','length','2138661RoFDDn','trim','string','abs','233MZfUfz','context-options','8139050QXAPaF','before','input','point','2158914NVThbK','21329OGcPko','wallTime','rqcID','afterSnapshot','frame-snapshot','154045ITHFMB','11gWBULE','pageId','set','inputSnapshot','callId','type','filter','name','snapshotName','wJJuP','push','XdpSE','gDNKx','method','page@0','beforeSnapshot','after','snapshot','4762224GlHxkK','endTime','4842VCKyLY','128azElcF','frameUrl','indexOf','monotonicTime','goto','fldoC','get','16zNoqog','params'];_0x4fa0=function(){return _0x59421c;};return _0x4fa0();}(function(_0x5ea585,_0x21dbd2){const _0x17f933=_0x31fb,_0xda45d4=_0x5ea585();while(!![]){try{const _0x4f7822=parseInt(_0x17f933(0x1d5))/0x1*(-parseInt(_0x17f933(0x1c2))/0x2)+parseInt(_0x17f933(0x1db))/0x3+parseInt(_0x17f933(0x1c3))/0x4*(-parseInt(_0x17f933(0x1e1))/0x5)+parseInt(_0x17f933(0x1ce))/0x6*(-parseInt(_0x17f933(0x1dc))/0x7)+parseInt(_0x17f933(0x1ca))/0x8*(parseInt(_0x17f933(0x1d1))/0x9)+parseInt(_0x17f933(0x1d7))/0xa*(parseInt(_0x17f933(0x1e2))/0xb)+parseInt(_0x17f933(0x1c0))/0xc;if(_0x4f7822===_0x21dbd2)break;else _0xda45d4['push'](_0xda45d4['shift']());}catch(_0x4f5fe7){_0xda45d4['push'](_0xda45d4['shift']());}}}(_0x4fa0,0x84487));function _0x31fb(_0x5d7619,_0xf510ce){_0x5d7619=_0x5d7619-0x1b8;const _0x4fa026=_0x4fa0();let _0x31fbdf=_0x4fa026[_0x5d7619];return _0x31fbdf;}import{readdir,readFile}from'fs/promises';import{join}from'path';export async function mapStepsToTraceSnapshots(_0x205718,_0x304c9e){const _0x2915b5=_0x31fb,_0x3ffeb6={'rqcID':'.trace','ujpYH':'utf-8','XdpSE':function(_0x3bdc1d,_0x3ff6ca){return _0x3bdc1d===_0x3ff6ca;},'gDNKx':_0x2915b5(0x1e0),'wJJuP':function(_0x4d9cb4,_0x2d1b79){return _0x4d9cb4===_0x2d1b79;},'fldoC':_0x2915b5(0x1d3),'lUeuG':'navigated','zHCcE':function(_0x56c86e,_0xffcc00){return _0x56c86e===_0xffcc00;},'SJBmG':_0x2915b5(0x1bc),'baupC':function(_0x204b5d,_0x1e99b9){return _0x204b5d>=_0x1e99b9;},'YgwWj':function(_0x534c7a,_0x237a9d){return _0x534c7a<_0x237a9d;}},_0x4b245c=new Map();if(_0x304c9e['length']===0x0)return _0x4b245c;const _0x128273=[],_0x3301f4=async _0x3ca64b=>{const _0x2f8b4b=_0x2915b5,_0x1f2359=await readdir(_0x3ca64b,{'withFileTypes':!![]});for(const _0x5e1f3f of _0x1f2359){const _0x53e9a7=join(_0x3ca64b,_0x5e1f3f[_0x2f8b4b(0x1e9)]);if(_0x5e1f3f['isDirectory']())await _0x3301f4(_0x53e9a7);else _0x5e1f3f['name']['endsWith'](_0x3ffeb6[_0x2f8b4b(0x1de)])&&_0x128273[_0x2f8b4b(0x1b8)](_0x53e9a7);}};await _0x3301f4(_0x205718);if(_0x128273[_0x2915b5(0x1d0)]===0x0)return _0x4b245c;const _0x44eef8=[];for(const _0x3ae48f of _0x128273){const _0x5eaec5=await readFile(_0x3ae48f,_0x3ffeb6['ujpYH']),_0x218d7b=_0x5eaec5['split']('\x0a')[_0x2915b5(0x1e8)](_0x2687a5=>_0x2687a5[_0x2915b5(0x1d2)]());for(const _0x2f07f4 of _0x218d7b){try{_0x44eef8['push'](JSON['parse'](_0x2f07f4));}catch{}}}if(_0x44eef8[_0x2915b5(0x1d0)]===0x0)return _0x4b245c;const _0x3e79c9=_0x44eef8['find'](_0x4a93ab=>_0x4a93ab['type']===_0x2915b5(0x1d6));if(!_0x3e79c9)return _0x4b245c;const _0x3abecd=_0x3e79c9[_0x2915b5(0x1dd)]-_0x3e79c9[_0x2915b5(0x1c6)],_0x1f72fe=new Map();for(const _0x5b7fa7 of _0x44eef8){switch(_0x5b7fa7['type']){case _0x2915b5(0x1d8):{const _0xfba0c3=_0x5b7fa7;_0x1f72fe['set'](_0xfba0c3[_0x2915b5(0x1e6)],{'callId':_0xfba0c3[_0x2915b5(0x1e6)],'startTime':_0xfba0c3['startTime'],'endTime':0x0,'method':_0xfba0c3[_0x2915b5(0x1bb)],'apiName':_0xfba0c3['apiName'],'params':_0xfba0c3['params'],'pageId':_0xfba0c3[_0x2915b5(0x1e3)],'beforeSnapshot':_0xfba0c3[_0x2915b5(0x1bd)]});break;}case _0x2915b5(0x1d9):{const _0x58ffc9=_0x5b7fa7,_0x2088c0=_0x1f72fe['get'](_0x58ffc9['callId']);if(_0x2088c0){if(_0x58ffc9[_0x2915b5(0x1e5)])_0x2088c0['inputSnapshot']=_0x58ffc9[_0x2915b5(0x1e5)];if(_0x58ffc9['point'])_0x2088c0[_0x2915b5(0x1da)]=_0x58ffc9['point'];}break;}case _0x2915b5(0x1be):{const _0x5ae44c=_0x5b7fa7,_0x4a92aa=_0x1f72fe['get'](_0x5ae44c['callId']);if(_0x4a92aa){_0x4a92aa[_0x2915b5(0x1c1)]=_0x5ae44c[_0x2915b5(0x1c1)];if(_0x5ae44c[_0x2915b5(0x1df)])_0x4a92aa[_0x2915b5(0x1df)]=_0x5ae44c[_0x2915b5(0x1df)];}break;}}}const _0x22f61c=Array[_0x2915b5(0x1cd)](_0x1f72fe['values']())['filter'](_0x575b42=>_0x575b42[_0x2915b5(0x1c1)]>0x0&&(_0x575b42['afterSnapshot']||_0x575b42[_0x2915b5(0x1bd)]))['sort']((_0x8f69af,_0x25baf3)=>_0x8f69af['startTime']-_0x25baf3['startTime']);if(_0x3ffeb6['XdpSE'](_0x22f61c[_0x2915b5(0x1d0)],0x0))return _0x4b245c;const _0x1f0641=new Map();for(const _0xd46a16 of _0x44eef8){if(_0x3ffeb6[_0x2915b5(0x1b9)](_0xd46a16[_0x2915b5(0x1e7)],_0x3ffeb6[_0x2915b5(0x1ba)])){const _0x2d405f=_0xd46a16[_0x2915b5(0x1bf)];_0x2d405f?.[_0x2915b5(0x1ea)]&&_0x2d405f?.[_0x2915b5(0x1c4)]&&_0x1f0641['set'](_0x2d405f['snapshotName'],_0x2d405f[_0x2915b5(0x1c4)]);}}const _0x508e24=new Map();for(const _0x4f9f1e of _0x22f61c){const _0x1c3043=_0x4f9f1e[_0x2915b5(0x1cb)]?.[_0x2915b5(0x1cc)];_0x3ffeb6['wJJuP'](_0x4f9f1e['method'],'goto')&&_0x3ffeb6['wJJuP'](typeof _0x1c3043,_0x3ffeb6[_0x2915b5(0x1c8)])&&_0x4f9f1e[_0x2915b5(0x1e3)]&&_0x508e24[_0x2915b5(0x1e4)](_0x4f9f1e['pageId'],_0x1c3043);}for(const _0x9f6f2d of _0x44eef8){const _0x2b9e7e=_0x9f6f2d,_0x597736=_0x2b9e7e[_0x2915b5(0x1cb)],_0x1252d1=_0x597736?.[_0x2915b5(0x1cc)];_0x3ffeb6[_0x2915b5(0x1eb)](_0x2b9e7e['type'],_0x2915b5(0x1cf))&&_0x2b9e7e[_0x2915b5(0x1bb)]===_0x3ffeb6['lUeuG']&&_0x3ffeb6[_0x2915b5(0x1b9)](typeof _0x1252d1,_0x3ffeb6['fldoC'])&&_0x3ffeb6['zHCcE'](typeof _0x2b9e7e[_0x2915b5(0x1e3)],_0x3ffeb6[_0x2915b5(0x1c8)])&&_0x508e24[_0x2915b5(0x1e4)](_0x2b9e7e[_0x2915b5(0x1e3)],_0x1252d1);}for(const _0xa8b690 of _0x304c9e){const _0x26a4e3=new Date(_0xa8b690['capturedAt'])['getTime'](),_0x505825=_0x26a4e3-_0x3abecd;let _0x8c4a84=null,_0x4252e8=Infinity;for(const _0x2e94f5 of _0x22f61c){const _0x3c611c=Math[_0x2915b5(0x1d4)](_0x2e94f5['endTime']-_0x505825);_0x3c611c<_0x4252e8&&(_0x4252e8=_0x3c611c,_0x8c4a84=_0x2e94f5);}if(!_0x8c4a84)continue;const _0x1b3bb6=_0x8c4a84['afterSnapshot']||_0x8c4a84[_0x2915b5(0x1bd)];if(!_0x1b3bb6)continue;const _0x4e41eb=_0x8c4a84[_0x2915b5(0x1e3)]||_0x3ffeb6['SJBmG'];let _0x28de74=_0x1f0641[_0x2915b5(0x1c9)](_0x1b3bb6)||_0x508e24[_0x2915b5(0x1c9)](_0x4e41eb)||'';if(!_0x28de74)for(let _0x3dc089=_0x22f61c[_0x2915b5(0x1c5)](_0x8c4a84);_0x3dc089>=0x0;_0x3dc089--){const _0x3846a3=_0x22f61c[_0x3dc089]['params']?.['url'];if(_0x22f61c[_0x3dc089][_0x2915b5(0x1bb)]===_0x2915b5(0x1c7)&&_0x3ffeb6['zHCcE'](typeof _0x3846a3,'string')){_0x28de74=_0x3846a3;break;}}let _0x2d41d5,_0x495eec;const _0x5d3643=_0x22f61c['indexOf'](_0x8c4a84);if(_0x3ffeb6['baupC'](_0x5d3643,0x0)&&_0x3ffeb6['YgwWj'](_0x5d3643,_0x22f61c[_0x2915b5(0x1d0)]-0x1)){const _0x409043=_0x22f61c[_0x5d3643+0x1];_0x409043['point']&&_0x409043[_0x2915b5(0x1e5)]&&(_0x2d41d5=_0x409043['point'],_0x495eec=_0x409043['inputSnapshot']);}_0x4b245c['set'](_0xa8b690['stepId'],{'snapshotName':_0x1b3bb6,'inputSnapshotName':_0x495eec,'pageId':_0x4e41eb,'pageUrl':_0x28de74,'callId':_0x8c4a84[_0x2915b5(0x1e6)],'point':_0x2d41d5});}return _0x4b245c;}
@@ -1 +1 @@
1
- (function(_0x545279,_0x2a831a){const _0x5865a6=_0xfb99,_0x382118=_0x545279();while(!![]){try{const _0xe288bd=-parseInt(_0x5865a6(0xf6))/0x1+-parseInt(_0x5865a6(0x100))/0x2*(-parseInt(_0x5865a6(0xf3))/0x3)+-parseInt(_0x5865a6(0xfe))/0x4+parseInt(_0x5865a6(0xff))/0x5*(parseInt(_0x5865a6(0x102))/0x6)+parseInt(_0x5865a6(0xf7))/0x7+-parseInt(_0x5865a6(0xf5))/0x8*(-parseInt(_0x5865a6(0x101))/0x9)+parseInt(_0x5865a6(0xfd))/0xa;if(_0xe288bd===_0x2a831a)break;else _0x382118['push'](_0x382118['shift']());}catch(_0x556441){_0x382118['push'](_0x382118['shift']());}}}(_0x2028,0x29ce2));function _0x2028(){const _0x288b27=['14SKQQZg','4419LdsXgF','796326suODBm','VncJI','68427FDUpqo','/api/v1/mcp/me','2568pJDvTj','334883eBycIr','1662717bJdwZt','WHYDj','statusText','message','GET','status','1187560CMWYEH','1200660naHSFH','5AHTKUT'];_0x2028=function(){return _0x288b27;};return _0x2028();}import{getApiBaseUrl}from'./environment.js';function _0xfb99(_0x23fdba,_0x2bf720){_0x23fdba=_0x23fdba-0xf3;const _0x202890=_0x2028();let _0xfb99d9=_0x202890[_0x23fdba];return _0xfb99d9;}export async function getCurrentUser(_0x7c7fe2){const _0x22abdd=_0xfb99,_0x7bc5d8={'XmzSR':function(_0x11c33a){return _0x11c33a();},'WHYDj':_0x22abdd(0xfb),'VncJI':function(_0x3f8d50,_0x1156ca){return _0x3f8d50 instanceof _0x1156ca;},'HsqrB':function(_0x5d8ad9,_0x139a80){return _0x5d8ad9(_0x139a80);}},_0x168ad8=_0x7bc5d8['XmzSR'](getApiBaseUrl);try{const _0x184d90=await fetch(_0x168ad8+_0x22abdd(0xf4),{'method':_0x7bc5d8[_0x22abdd(0xf8)],'headers':{'Authorization':'Bearer\x20'+_0x7c7fe2}});if(!_0x184d90['ok'])return{'success':![],'error':_0x184d90['status']+'\x20'+_0x184d90[_0x22abdd(0xf9)],'status':_0x184d90[_0x22abdd(0xfc)]};const _0x17e672=await _0x184d90['json']();return{'success':!![],'user':_0x17e672};}catch(_0x2618a3){return{'success':![],'error':_0x7bc5d8[_0x22abdd(0x103)](_0x2618a3,Error)?_0x2618a3[_0x22abdd(0xfa)]:_0x7bc5d8['HsqrB'](String,_0x2618a3)};}}
1
+ (function(_0x704a0e,_0x4ecd4f){const _0x9fc288=_0x3a94,_0x559e57=_0x704a0e();while(!![]){try{const _0x56e5d3=parseInt(_0x9fc288(0x124))/0x1*(parseInt(_0x9fc288(0x12d))/0x2)+parseInt(_0x9fc288(0x12b))/0x3+parseInt(_0x9fc288(0x123))/0x4+-parseInt(_0x9fc288(0x127))/0x5*(parseInt(_0x9fc288(0x12c))/0x6)+parseInt(_0x9fc288(0x12f))/0x7+-parseInt(_0x9fc288(0x126))/0x8+-parseInt(_0x9fc288(0x12e))/0x9;if(_0x56e5d3===_0x4ecd4f)break;else _0x559e57['push'](_0x559e57['shift']());}catch(_0x5162cf){_0x559e57['push'](_0x559e57['shift']());}}}(_0x5ccf,0x7899e));function _0x5ccf(){const _0x2c6917=['4090821ZULGpf','vEoaB','508652ShWSsv','1ivoYqh','json','2889040JHQxnB','7795HMBIXx','GET','status','Bearer\x20','270528aXaIlV','642ZWiJUd','495426SobAYd','247770dkNxgv'];_0x5ccf=function(){return _0x2c6917;};return _0x5ccf();}function _0x3a94(_0xd5c2e4,_0x2b19d8){_0xd5c2e4=_0xd5c2e4-0x122;const _0x5ccf05=_0x5ccf();let _0x3a94bf=_0x5ccf05[_0xd5c2e4];return _0x3a94bf;}import{getApiBaseUrl}from'./environment.js';export async function getCurrentUser(_0x3e41f2){const _0xc80b63=_0x3a94,_0x1328ee={'qHKcA':function(_0x35245a){return _0x35245a();},'tejKl':_0xc80b63(0x128),'vEoaB':function(_0x497148,_0x506398){return _0x497148 instanceof _0x506398;},'HuwdG':function(_0x2eb828,_0x3ad979){return _0x2eb828(_0x3ad979);}},_0x5a99d7=_0x1328ee['qHKcA'](getApiBaseUrl);try{const _0x2fa9ff=await fetch(_0x5a99d7+'/api/v1/mcp/me',{'method':_0x1328ee['tejKl'],'headers':{'Authorization':_0xc80b63(0x12a)+_0x3e41f2}});if(!_0x2fa9ff['ok'])return{'success':![],'error':_0x2fa9ff['status']+'\x20'+_0x2fa9ff['statusText'],'status':_0x2fa9ff[_0xc80b63(0x129)]};const _0x5b639e=await _0x2fa9ff[_0xc80b63(0x125)]();return{'success':!![],'user':_0x5b639e};}catch(_0x31d49a){return{'success':![],'error':_0x1328ee[_0xc80b63(0x122)](_0x31d49a,Error)?_0x31d49a['message']:_0x1328ee['HuwdG'](String,_0x31d49a)};}}