@ranger-testing/ranger-cli 2.4.4 → 2.4.5
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.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/featureReportGenerator.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/git.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/reportGenerator.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -0
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyInBrowser.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x1654(){const _0x2b22ae=['81101zonyhi','mOewv','uYzEv','igKVZ','Efqsd','IBynk','log','UBJCx','YVJTy','AyUcn','GbsUw','4176368iPvgbn','3045nyuqBR','524718xIjHdc','8739945sSMovI','header','Stitched\x20','max','UITVw','hMLXB','wjqse','MTzAE','RVwrA','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','nGLOG','WCpEO','floor','JyvIV','Akagm','pow','SNzyk','pjthD','zsXJG','slice','BIBbX','bodyAfterTimestamp','qvhFp','push','length','2aDRfjn','tWLqP','792705ccmTfU','error','DocFh','qCuCe','OKToM','ROGag','tVNcP','JPAMF','HKkAV','VWiRK','yJbsk','ekfvK','maxTimestampTicks','fxlgv','3288qIIwvn','maxTicks','concat','readInt16BE','BxcLw','SxOsP','NvFXs','argv','495044hfEtEI','vunxp','alloc'];_0x1654=function(){return _0x2b22ae;};return _0x1654();}const _0x52d624=_0x54da;(function(_0xe6cd50,_0x198467){const _0x4a1a0a=_0x54da,_0x5a8832=_0xe6cd50();while(!![]){try{const _0x121de1=-parseInt(_0x4a1a0a(0x149))/0x1*(-parseInt(_0x4a1a0a(0x12e))/0x2)+parseInt(_0x4a1a0a(0x156))/0x3+parseInt(_0x4a1a0a(0x146))/0x4+parseInt(_0x4a1a0a(0x130))/0x5+parseInt(_0x4a1a0a(0x13e))/0x6*(parseInt(_0x4a1a0a(0x155))/0x7)+parseInt(_0x4a1a0a(0x154))/0x8+-parseInt(_0x4a1a0a(0x157))/0x9;if(_0x121de1===_0x198467)break;else _0x5a8832['push'](_0x5a8832['shift']());}catch(_0x21125d){_0x5a8832['push'](_0x5a8832['shift']());}}}(_0x1654,0x4ffce));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(_0x525f44,_0x45610f){const _0x3ea4e6=_0x54da,_0x5224db={'zagSN':function(_0x348e0d,_0x2ca59e){return _0x348e0d<=_0x2ca59e;},'EPGcJ':function(_0x2e4beb,_0x1e3caa){return _0x2e4beb&_0x1e3caa;},'SxOsP':function(_0x1d4065,_0x1a6d7b){return _0x1d4065-_0x1a6d7b;},'eEyQv':function(_0xc069e7,_0x385559){return _0xc069e7*_0x385559;}};if(_0x45610f>=_0x525f44[_0x3ea4e6(0x12d)])return[0x0,0x0];const _0x1b0903=_0x525f44[_0x45610f];let _0x21df95=0x1,_0x2a1e63=0x80;while(_0x5224db['zagSN'](_0x21df95,0x8)&&!(_0x1b0903&_0x2a1e63)){_0x21df95++,_0x2a1e63>>=0x1;}if(_0x45610f+_0x21df95>_0x525f44['length'])return[0x0,0x0];let _0x208679=_0x5224db['EPGcJ'](_0x1b0903,_0x5224db[_0x3ea4e6(0x143)](_0x2a1e63,0x1));for(let _0x55a5c2=0x1;_0x55a5c2<_0x21df95;_0x55a5c2++){_0x208679=_0x5224db['eEyQv'](_0x208679,0x100)+_0x525f44[_0x45610f+_0x55a5c2];}return[_0x208679,_0x21df95];}function _0x54da(_0x3acf60,_0x32bd24){_0x3acf60=_0x3acf60-0x118;const _0x165403=_0x1654();let _0x54da6c=_0x165403[_0x3acf60];return _0x54da6c;}function readId(_0x5e8b66,_0x105428){const _0x431cd7=_0x54da,_0x164f0d={'VxTMG':function(_0x1965a5,_0x3785db){return _0x1965a5>=_0x3785db;},'zsXJG':function(_0x115a84,_0x14d555){return _0x115a84>=_0x14d555;},'uYzEv':function(_0x1714e9,_0x4c91e7){return _0x1714e9>=_0x4c91e7;},'VttFk':function(_0x1e88ad,_0x3747f3){return _0x1e88ad+_0x3747f3;},'HVYtM':function(_0x5040b7,_0x5b57ac){return _0x5040b7+_0x5b57ac;}};if(_0x164f0d['VxTMG'](_0x105428,_0x5e8b66['length']))return[0x0,0x0];const _0x5ade76=_0x5e8b66[_0x105428];let _0x4e676e;if(_0x164f0d[_0x431cd7(0x127)](_0x5ade76,0x80))_0x4e676e=0x1;else{if(_0x164f0d[_0x431cd7(0x14b)](_0x5ade76,0x40))_0x4e676e=0x2;else{if(_0x5ade76>=0x20)_0x4e676e=0x3;else{if(_0x5ade76>=0x10)_0x4e676e=0x4;else return[_0x5ade76,0x1];}}}if(_0x164f0d['VttFk'](_0x105428,_0x4e676e)>_0x5e8b66[_0x431cd7(0x12d)])return[0x0,0x0];let _0x1822d3=0x0;for(let _0x4ea0ca=0x0;_0x4ea0ca<_0x4e676e;_0x4ea0ca++){_0x1822d3=_0x1822d3*0x100+_0x5e8b66[_0x164f0d['HVYtM'](_0x105428,_0x4ea0ca)];}return[_0x1822d3,_0x4e676e];}function readUint(_0x12e77e,_0xe757b3,_0x4cd8ef){const _0x2fa15d=_0x54da,_0x1f3dd9={'ZRmqa':function(_0x32e5f7,_0x5c5b5d){return _0x32e5f7+_0x5c5b5d;},'tVNcP':function(_0x4f7d22,_0x5638af){return _0x4f7d22+_0x5638af;}};let _0x695415=0x0;for(let _0x560de5=0x0;_0x560de5<_0x4cd8ef;_0x560de5++){_0x695415=_0x1f3dd9['ZRmqa'](_0x695415*0x100,_0x12e77e[_0x1f3dd9[_0x2fa15d(0x136)](_0xe757b3,_0x560de5)]);}return _0x695415;}function isUnknownSize(_0x20e203,_0x570261){const _0x157006=_0x54da,_0x349ed4={'NvFXs':function(_0x2e6dc9,_0x1197a4){return _0x2e6dc9*_0x1197a4;}};return _0x20e203===Math['pow'](0x2,_0x349ed4[_0x157006(0x144)](0x7,_0x570261))-0x1;}function writeVint(_0x3f5b18,_0x4c4658){const _0x26bb96=_0x54da,_0x2cbab2={'JyvIV':function(_0xd1464e,_0x3d3c14){return _0xd1464e-_0x3d3c14;},'Efqsd':function(_0x19fa19,_0x19887f){return _0x19fa19-_0x19887f;},'fxlgv':function(_0x5e6074,_0x56350a){return _0x5e6074&_0x56350a;},'RVwrA':function(_0x1018ba,_0x4a8936){return _0x1018ba<<_0x4a8936;}};let _0x244dda=_0x4c4658||0x1;while(_0x2cbab2[_0x26bb96(0x122)](Math[_0x26bb96(0x124)](0x2,0x7*_0x244dda),0x2)<_0x3f5b18)_0x244dda++;const _0x17768c=Buffer['alloc'](_0x244dda);for(let _0x3e0c8b=_0x2cbab2[_0x26bb96(0x14d)](_0x244dda,0x1);_0x3e0c8b>=0x0;_0x3e0c8b--){_0x17768c[_0x3e0c8b]=_0x2cbab2[_0x26bb96(0x13d)](_0x3f5b18,0xff),_0x3f5b18=Math[_0x26bb96(0x121)](_0x3f5b18/0x100);}return _0x17768c[0x0]|=_0x2cbab2[_0x26bb96(0x11d)](0x1,_0x2cbab2[_0x26bb96(0x122)](0x8,_0x244dda)),_0x17768c;}function writeUint(_0x27e23e,_0x11fd90){const _0x62d1a=_0x54da,_0x3122a7=Buffer['alloc'](_0x11fd90);for(let _0xd168ed=_0x11fd90-0x1;_0xd168ed>=0x0;_0xd168ed--){_0x3122a7[_0xd168ed]=_0x27e23e&0xff,_0x27e23e=Math[_0x62d1a(0x121)](_0x27e23e/0x100);}return _0x3122a7;}function writeUnknownSizeVint(_0x2cdfb7){const _0x38e917=_0x54da,_0x5325a4={'Akagm':function(_0x3827ed,_0x50feb0){return _0x3827ed>>_0x50feb0;}},_0x15a9b9=Buffer['alloc'](_0x2cdfb7,0xff);return _0x15a9b9[0x0]=_0x5325a4[_0x38e917(0x123)](0xff,_0x2cdfb7-0x1),_0x15a9b9;}function uintSize(_0x2c8435){const _0x466ba8=_0x54da,_0x570b23={'YVJTy':function(_0x178edd,_0x292bba){return _0x178edd===_0x292bba;},'jmdNL':function(_0x28af12,_0x4b5450){return _0x28af12/_0x4b5450;}};if(_0x570b23[_0x466ba8(0x151)](_0x2c8435,0x0))return 0x1;let _0x14a42c=0x0,_0x95b40e=_0x2c8435;while(_0x95b40e>0x0){_0x14a42c++,_0x95b40e=Math['floor'](_0x570b23['jmdNL'](_0x95b40e,0x100));}return _0x14a42c;}function findTimestampScale(_0x5bc0b2,_0xfe970e){const _0x107ca1=_0x54da,_0x13ac33={'IBynk':function(_0x2f9456,_0x422806,_0xb9b91c){return _0x2f9456(_0x422806,_0xb9b91c);},'DocFh':function(_0x394cc7,_0x343b0c){return _0x394cc7+_0x343b0c;},'YPaim':function(_0x58483a,_0x2f6b4a){return _0x58483a<_0x2f6b4a;},'dqyOY':function(_0x51fa06,_0x1c88e4,_0x1eb933){return _0x51fa06(_0x1c88e4,_0x1eb933);},'pQkCV':function(_0x16a726,_0x24175d,_0x12a9f6){return _0x16a726(_0x24175d,_0x12a9f6);},'VWiRK':function(_0x405bfc,_0x2f18bc,_0x264b1a,_0x232f31){return _0x405bfc(_0x2f18bc,_0x264b1a,_0x232f31);},'DOwxX':function(_0x122f0b,_0x354716){return _0x122f0b===_0x354716;},'GbsUw':function(_0x3f6c90,_0x360ad6){return _0x3f6c90+_0x360ad6;}};let _0x5794f1=_0xfe970e;const _0xfb653b=Math['min'](_0x5bc0b2['length'],_0xfe970e+0x2710);while(_0x5794f1<_0xfb653b){const [_0x3b2419,_0x49794b]=_0x13ac33[_0x107ca1(0x14e)](readId,_0x5bc0b2,_0x5794f1),[_0x541af1,_0x19cb9e]=readVint(_0x5bc0b2,_0x13ac33['DocFh'](_0x5794f1,_0x49794b));if(_0x3b2419===ID_INFO){let _0x4f554d=_0x13ac33[_0x107ca1(0x132)](_0x5794f1+_0x49794b,_0x19cb9e);const _0x503723=_0x13ac33['DocFh'](_0x4f554d,_0x541af1);while(_0x13ac33['YPaim'](_0x4f554d,_0x503723)){const [_0x5b6dea,_0x8948fb]=_0x13ac33['dqyOY'](readId,_0x5bc0b2,_0x4f554d),[_0x32e361,_0x3c1d55]=_0x13ac33['pQkCV'](readVint,_0x5bc0b2,_0x13ac33[_0x107ca1(0x132)](_0x4f554d,_0x8948fb));if(_0x5b6dea===ID_TIMESTAMP_SCALE)return _0x13ac33[_0x107ca1(0x139)](readUint,_0x5bc0b2,_0x4f554d+_0x8948fb+_0x3c1d55,_0x32e361);_0x4f554d+=_0x13ac33['DocFh'](_0x8948fb+_0x3c1d55,_0x32e361);}break;}if(_0x13ac33['DOwxX'](_0x3b2419,ID_CLUSTER))break;if(isUnknownSize(_0x541af1,_0x19cb9e))break;_0x5794f1+=_0x13ac33[_0x107ca1(0x153)](_0x49794b+_0x19cb9e,_0x541af1);}return 0xf4240;}function findFirstClusterOffset(_0x5a5ecc,_0x10c53d){const _0x362b96=_0x54da,_0x4e5a65={'wjqse':function(_0x1ef6fb,_0x10464c){return _0x1ef6fb<_0x10464c;},'SNzyk':function(_0x2392ba,_0x1c5221,_0xb06979){return _0x2392ba(_0x1c5221,_0xb06979);}};let _0xc1ebdc=_0x10c53d;while(_0x4e5a65[_0x362b96(0x11b)](_0xc1ebdc,_0x5a5ecc[_0x362b96(0x12d)])){const [_0xc5f607,_0x3846e9]=_0x4e5a65[_0x362b96(0x125)](readId,_0x5a5ecc,_0xc1ebdc);if(_0xc5f607===ID_CLUSTER)return _0xc1ebdc;const [_0x303c76,_0x29990f]=readVint(_0x5a5ecc,_0xc1ebdc+_0x3846e9);if(isUnknownSize(_0x303c76,_0x29990f))return _0xc1ebdc;_0xc1ebdc+=_0x3846e9+_0x29990f+_0x303c76;}return _0x5a5ecc[_0x362b96(0x12d)];}function findClusterEnd(_0x2eeb3c,_0x4089e0,_0x3b0fc6,_0x417528){const _0xfa9b0f=_0x54da,_0x4c8ee5={'DlkuP':function(_0x2d0d2f,_0x208c5f,_0x2feca7){return _0x2d0d2f(_0x208c5f,_0x2feca7);},'cPnsw':function(_0x2a855b,_0x2ba9de){return _0x2a855b+_0x2ba9de;},'xTjRc':function(_0x20e1a7,_0x5f4eb1){return _0x20e1a7-_0x5f4eb1;},'wxqIP':function(_0x4082f5,_0x304722,_0x103446){return _0x4082f5(_0x304722,_0x103446);},'yJbsk':function(_0xbd4563,_0x4600a6,_0x576c61){return _0xbd4563(_0x4600a6,_0x576c61);},'qyqgD':function(_0x177d2a,_0x4a34c8){return _0x177d2a+_0x4a34c8;}};if(!_0x4c8ee5['DlkuP'](isUnknownSize,_0x3b0fc6,_0x417528))return _0x4c8ee5['cPnsw'](_0x4089e0,_0x3b0fc6);const _0x119335=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x7fca2d=_0x4089e0;while(_0x7fca2d<_0x4c8ee5['xTjRc'](_0x2eeb3c['length'],0x4)){const [_0x5c1760,_0x270588]=_0x4c8ee5['wxqIP'](readId,_0x2eeb3c,_0x7fca2d);if(_0x119335['has'](_0x5c1760))return _0x7fca2d;const [_0x146b5a,_0x1b512c]=readVint(_0x2eeb3c,_0x7fca2d+_0x270588);if(_0x4c8ee5[_0xfa9b0f(0x13a)](isUnknownSize,_0x146b5a,_0x1b512c))return _0x2eeb3c[_0xfa9b0f(0x12d)];_0x7fca2d+=_0x4c8ee5['qyqgD'](_0x270588,_0x1b512c)+_0x146b5a;}return _0x2eeb3c['length'];}function extractClusters(_0x34ebf0,_0x438645){const _0x153e4f=_0x54da,_0x18c208={'iAOCS':function(_0x45dbe4,_0x1ae193){return _0x45dbe4<_0x1ae193;},'qvhFp':function(_0x1c08c7,_0x25e5eb){return _0x1c08c7===_0x25e5eb;},'anonH':function(_0x140051,_0x6766c7,_0x1ba161){return _0x140051(_0x6766c7,_0x1ba161);},'gkLnB':function(_0x49c2e5,_0x326052){return _0x49c2e5!==_0x326052;},'nGLOG':function(_0x249f93,_0x9ea1d1){return _0x249f93+_0x9ea1d1;},'uArWI':function(_0x43ac1c,_0x21c223,_0x2dc898){return _0x43ac1c(_0x21c223,_0x2dc898);},'ROGag':function(_0x5665fd,_0x594b37){return _0x5665fd+_0x594b37;},'jvPjI':function(_0x4a51af,_0x380cb0,_0xca59a1,_0x2b3fde){return _0x4a51af(_0x380cb0,_0xca59a1,_0x2b3fde);},'MXfxv':function(_0x49e270,_0x1b298c){return _0x49e270+_0x1b298c;},'WsyQz':function(_0x4d56f4,_0x500fa5,_0x59fa73){return _0x4d56f4(_0x500fa5,_0x59fa73);},'znLMA':function(_0x44a68f,_0x22ccfa,_0x2a5b94){return _0x44a68f(_0x22ccfa,_0x2a5b94);},'AyUcn':function(_0x28d763,_0x414611,_0x36d029){return _0x28d763(_0x414611,_0x36d029);},'UITVw':function(_0x1c5cc4,_0x4e9896){return _0x1c5cc4+_0x4e9896;}},_0xd44e25=[],_0x8908ca=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0xf86482=0x0;while(_0x18c208['iAOCS'](_0xf86482,_0x34ebf0['length'])){const _0xd3e0af=_0x34ebf0['indexOf'](_0x8908ca,_0xf86482);if(_0x18c208[_0x153e4f(0x12b)](_0xd3e0af,-0x1))break;const [_0x13e415,_0x4909f0]=_0x18c208['anonH'](readId,_0x34ebf0,_0xd3e0af);if(_0x18c208['gkLnB'](_0x13e415,ID_CLUSTER)){_0xf86482=_0x18c208[_0x153e4f(0x11f)](_0xd3e0af,0x1);continue;}const [_0x3319b0,_0x3cec4a]=readVint(_0x34ebf0,_0xd3e0af+_0x4909f0),_0xaaa302=_0xd3e0af+_0x4909f0+_0x3cec4a,_0x4c6be7=findClusterEnd(_0x34ebf0,_0xaaa302,_0x3319b0,_0x3cec4a);let _0x4685e3=_0xaaa302,_0xe52e84=0x0,_0xd9aad2=0x2,_0x35c7f5=![],_0x3b0206=Buffer[_0x153e4f(0x148)](0x0),_0x4e82ed=Buffer['alloc'](0x0);while(_0x4685e3<_0x4c6be7){const [_0x37d5cd,_0xccb31c]=_0x18c208['uArWI'](readId,_0x34ebf0,_0x4685e3),[_0x15f893,_0x36b443]=readVint(_0x34ebf0,_0x18c208[_0x153e4f(0x135)](_0x4685e3,_0xccb31c));if(_0x37d5cd===ID_TIMESTAMP){_0xe52e84=_0x18c208['jvPjI'](readUint,_0x34ebf0,_0x18c208['MXfxv'](_0x18c208['MXfxv'](_0x4685e3,_0xccb31c),_0x36b443),_0x15f893),_0xd9aad2=_0x15f893,_0x35c7f5=!![],_0x3b0206=_0x34ebf0['slice'](_0xaaa302,_0x4685e3);const _0x3d7ca3=_0x4685e3+_0xccb31c+_0x36b443+_0x15f893;_0x4e82ed=_0x34ebf0['slice'](_0x3d7ca3,_0x4c6be7);break;}if(_0x37d5cd===ID_CLUSTER)break;if(_0x18c208['WsyQz'](isUnknownSize,_0x15f893,_0x36b443))break;_0x4685e3+=_0xccb31c+_0x36b443+_0x15f893;}!_0x35c7f5&&(_0x4e82ed=_0x34ebf0[_0x153e4f(0x128)](_0xaaa302,_0x4c6be7));let _0x9f7d0c=_0xe52e84;_0x4685e3=_0xaaa302;while(_0x4685e3<_0x4c6be7){const [_0x5e4dc7,_0x787a95]=_0x18c208['znLMA'](readId,_0x34ebf0,_0x4685e3),[_0x2bdc20,_0x232ffa]=_0x18c208[_0x153e4f(0x152)](readVint,_0x34ebf0,_0x4685e3+_0x787a95);if(_0x5e4dc7===ID_SIMPLE_BLOCK&&_0x2bdc20>=0x4){const _0x11aef3=_0x18c208['MXfxv'](_0x4685e3,_0x787a95)+_0x232ffa,[,_0x5647da]=readVint(_0x34ebf0,_0x11aef3),_0x930d46=_0x34ebf0[_0x153e4f(0x141)](_0x18c208[_0x153e4f(0x119)](_0x11aef3,_0x5647da)),_0x448c4b=_0x18c208[_0x153e4f(0x11f)](_0xe52e84,_0x930d46);if(_0x448c4b>_0x9f7d0c)_0x9f7d0c=_0x448c4b;}if(_0x5e4dc7===ID_CLUSTER)break;if(isUnknownSize(_0x2bdc20,_0x232ffa))break;_0x4685e3+=_0x18c208['MXfxv'](_0x787a95,_0x232ffa)+_0x2bdc20;}_0xd44e25[_0x153e4f(0x12c)]({'timestamp':_0xe52e84,'maxTicks':_0x9f7d0c,'bodyBeforeTimestamp':_0x3b0206,'bodyAfterTimestamp':_0x4e82ed,'timestampElementSize':_0xd9aad2}),_0xf86482=_0x4c6be7;}return _0xd44e25;}function parseWebm(_0x489331){const _0x49365d=_0x54da,_0x36b206={'rFBgD':function(_0x105a65,_0x1f96c8){return _0x105a65+_0x1f96c8;},'tWLqP':function(_0x21af4d,_0x36f8d7,_0x4d943c){return _0x21af4d(_0x36f8d7,_0x4d943c);},'igKVZ':function(_0x5dfa3f,_0x381948){return _0x5dfa3f!==_0x381948;},'UBJCx':function(_0x5359c6,_0x387bb3){return _0x5359c6+_0x387bb3;},'hMLXB':function(_0x3f10c0,_0x2d70fb,_0x4291ac){return _0x3f10c0(_0x2d70fb,_0x4291ac);},'OKToM':function(_0x4ecc2b,_0x218918,_0x6347cd){return _0x4ecc2b(_0x218918,_0x6347cd);},'RhVUX':function(_0x3abdfd,_0x10d14d,_0x4a0d31){return _0x3abdfd(_0x10d14d,_0x4a0d31);}};let _0x4c434f=0x0;const [,_0x44f3c6]=readId(_0x489331,_0x4c434f),[_0x404b1b,_0x2b01f0]=readVint(_0x489331,_0x36b206['rFBgD'](_0x4c434f,_0x44f3c6));_0x4c434f+=_0x44f3c6+_0x2b01f0+_0x404b1b;const [_0x4d7a00,_0x194acb]=_0x36b206[_0x49365d(0x12f)](readId,_0x489331,_0x4c434f);if(_0x36b206[_0x49365d(0x14c)](_0x4d7a00,ID_SEGMENT))return null;const [,_0x201a14]=_0x36b206[_0x49365d(0x12f)](readVint,_0x489331,_0x36b206[_0x49365d(0x150)](_0x4c434f,_0x194acb)),_0x572aaa=_0x4c434f+_0x194acb+_0x201a14,_0x3ebc53=_0x36b206[_0x49365d(0x11a)](findTimestampScale,_0x489331,_0x572aaa),_0x3b64e9=_0x36b206[_0x49365d(0x134)](findFirstClusterOffset,_0x489331,_0x572aaa),_0x2a8a77=_0x489331['slice'](0x0,_0x3b64e9),_0x2d295f=_0x36b206['RhVUX'](extractClusters,_0x489331,_0x3ebc53);let _0x26eedf=0x0;for(const _0x3e6b34 of _0x2d295f){if(_0x3e6b34['maxTicks']>_0x26eedf)_0x26eedf=_0x3e6b34[_0x49365d(0x13f)];}return{'header':_0x2a8a77,'clusters':_0x2d295f,'timestampScale':_0x3ebc53,'maxTimestampTicks':_0x26eedf};}function buildCluster(_0x593a73,_0x598032,_0x2d26fd){const _0x427237=_0x54da,_0x1f0fc5={'gJZzv':function(_0x492d39,_0x447269){return _0x492d39(_0x447269);},'xLEMa':function(_0x53aabb,_0x1e51b5){return _0x53aabb(_0x1e51b5);}},_0x2d25e0=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0x4dbbec=Math[_0x427237(0x118)](0x4,_0x1f0fc5['gJZzv'](uintSize,_0x593a73)),_0x30ea8c=Buffer['concat']([Buffer['from']([ID_TIMESTAMP]),writeVint(_0x4dbbec),writeUint(_0x593a73,_0x4dbbec)]),_0x46fb23=Buffer['concat']([_0x598032,_0x30ea8c,_0x2d26fd]),_0x166c94=_0x1f0fc5['xLEMa'](writeVint,_0x46fb23['length']);return Buffer['concat']([_0x2d25e0,_0x166c94,_0x46fb23]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x573340){const _0x2bf3b0=_0x54da,_0x737b08={'HKkAV':function(_0x19fe40,_0x52525a,_0x4fff46){return _0x19fe40(_0x52525a,_0x4fff46);},'BIBbX':function(_0xa6fd9f,_0x21a352){return _0xa6fd9f+_0x21a352;},'MTzAE':function(_0x3152d5,_0x3f762a){return _0x3152d5(_0x3f762a);},'mOewv':function(_0x5686aa,_0x1f0b21){return _0x5686aa===_0x1f0b21;},'pjthD':function(_0x51c0b7,_0x31554a,_0x2461b2){return _0x51c0b7(_0x31554a,_0x2461b2);},'vunxp':function(_0x9d05ff,_0x154637){return _0x9d05ff+_0x154637;},'ekfvK':function(_0x305fac,_0x25e16c){return _0x305fac+_0x25e16c;},'BxcLw':function(_0x1fbf14,_0x4510a7,_0x473862){return _0x1fbf14(_0x4510a7,_0x473862);},'XfNRV':function(_0x3d751e,_0x1e5f0d){return _0x3d751e+_0x1e5f0d;},'JPAMF':function(_0x56ba7d,_0x55c1f4,_0x1f5641){return _0x56ba7d(_0x55c1f4,_0x1f5641);}},_0x4fe3b1=Buffer['from'](_0x573340);let _0x55fe21=0x0;const [,_0x3681b4]=readId(_0x4fe3b1,_0x55fe21),[_0x199e30,_0x22f785]=_0x737b08[_0x2bf3b0(0x138)](readVint,_0x4fe3b1,_0x737b08[_0x2bf3b0(0x129)](_0x55fe21,_0x3681b4)),_0xefa7df=_0x737b08['BIBbX'](_0x55fe21,_0x3681b4)+_0x22f785+_0x199e30,[,_0x5a7b0f]=_0x737b08['HKkAV'](readId,_0x4fe3b1,_0xefa7df),[,_0x26ae1c]=readVint(_0x4fe3b1,_0x737b08['BIBbX'](_0xefa7df,_0x5a7b0f)),_0x33a180=_0x737b08['BIBbX'](_0xefa7df,_0x5a7b0f)+_0x26ae1c,_0x36e387=_0x737b08[_0x2bf3b0(0x11c)](writeUnknownSizeVint,_0x26ae1c);_0x36e387['copy'](_0x4fe3b1,_0xefa7df+_0x5a7b0f);let _0x2ad800=_0x33a180;const _0x47ff73=Math['min'](_0x4fe3b1[_0x2bf3b0(0x12d)],_0x33a180+0x2710);while(_0x2ad800<_0x47ff73){const [_0x5f19e6,_0x39cf67]=readId(_0x4fe3b1,_0x2ad800),[_0x535717,_0x23704b]=readVint(_0x4fe3b1,_0x737b08['BIBbX'](_0x2ad800,_0x39cf67));if(_0x737b08[_0x2bf3b0(0x14a)](_0x5f19e6,ID_CLUSTER))break;if(_0x737b08[_0x2bf3b0(0x126)](isUnknownSize,_0x535717,_0x23704b))break;if(_0x5f19e6===ID_INFO){const _0x31fd53=_0x737b08[_0x2bf3b0(0x129)](_0x737b08[_0x2bf3b0(0x147)](_0x2ad800,_0x39cf67),_0x23704b),_0xada7b5=_0x737b08['ekfvK'](_0x31fd53,_0x535717),_0x8bcfd2=[];let _0x34c9f9=_0x31fd53;while(_0x34c9f9<_0xada7b5){const [_0x47340d,_0x52ae86]=_0x737b08[_0x2bf3b0(0x142)](readId,_0x4fe3b1,_0x34c9f9),[_0x4bb76a,_0x178d94]=readVint(_0x4fe3b1,_0x737b08['XfNRV'](_0x34c9f9,_0x52ae86)),_0x549126=_0x737b08[_0x2bf3b0(0x147)](_0x52ae86+_0x178d94,_0x4bb76a);_0x47340d!==ID_DURATION&&_0x8bcfd2['push'](_0x4fe3b1['slice'](_0x34c9f9,_0x34c9f9+_0x549126)),_0x34c9f9+=_0x549126;}const _0x4ed535=Buffer['concat'](_0x8bcfd2),_0x1edf1e=Buffer[_0x2bf3b0(0x140)]([_0x4fe3b1['slice'](_0x2ad800,_0x2ad800+_0x39cf67),_0x737b08[_0x2bf3b0(0x137)](writeVint,_0x4ed535[_0x2bf3b0(0x12d)],_0x23704b)]);return Buffer['concat']([_0x4fe3b1[_0x2bf3b0(0x128)](0x0,_0x2ad800),_0x1edf1e,_0x4ed535,_0x4fe3b1[_0x2bf3b0(0x128)](_0xada7b5)]);}_0x2ad800+=_0x737b08[_0x2bf3b0(0x13b)](_0x39cf67,_0x23704b)+_0x535717;}return _0x4fe3b1;}export function stitchWebmFiles(_0x1400ac,_0x45cc82){const _0x3f1e2f=_0x54da,_0x1a8af7={'kNunE':function(_0x2c7ecf,_0x24df3e){return _0x2c7ecf<=_0x24df3e;},'dECmG':function(_0x39998e,_0x352c5a){return _0x39998e===_0x352c5a;},'WCpEO':function(_0x55ff17,_0x5df6fe){return _0x55ff17(_0x5df6fe);},'qCuCe':function(_0x259d5a,_0x4e04e8){return _0x259d5a+_0x4e04e8;},'XrQMl':function(_0x35c824,_0x35e7ad){return _0x35c824+_0x35e7ad;}};if(_0x1a8af7['kNunE'](_0x1400ac['length'],0x1))return![];const _0x451328=[];for(const _0x4aef20 of _0x1400ac){const _0x32451b=readFileSync(_0x4aef20),_0x562e3b=parseWebm(_0x32451b);if(!_0x562e3b||_0x1a8af7['dECmG'](_0x562e3b['clusters'][_0x3f1e2f(0x12d)],0x0))return![];_0x451328[_0x3f1e2f(0x12c)](_0x562e3b);}const _0x4dc389=_0x451328[0x0],_0x304dbe=_0x1a8af7[_0x3f1e2f(0x120)](rebuildHeaderWithoutDuration,_0x4dc389[_0x3f1e2f(0x158)]),_0x4871fa=[_0x304dbe];let _0x2a7a71=0x0;for(let _0xa3febb=0x0;_0xa3febb<_0x451328[_0x3f1e2f(0x12d)];_0xa3febb++){const _0x3ef7e6=_0x451328[_0xa3febb];for(const _0x34a44d of _0x3ef7e6['clusters']){const _0x1e1049=_0x1a8af7[_0x3f1e2f(0x133)](_0x34a44d['timestamp'],_0x2a7a71);_0x4871fa['push'](buildCluster(_0x1e1049,_0x34a44d['bodyBeforeTimestamp'],_0x34a44d[_0x3f1e2f(0x12a)]));}const _0x57a5b2=0x1e;_0x2a7a71+=_0x1a8af7['XrQMl'](_0x3ef7e6[_0x3f1e2f(0x13c)],_0x57a5b2);}return writeFileSync(_0x45cc82,Buffer[_0x3f1e2f(0x140)](_0x4871fa)),!![];}if(process['argv'][0x1]?.['endsWith']('stitchWebmFiles.ts')||process['argv'][0x1]?.['endsWith']('stitchWebmFiles.js')){const args=process[_0x52d624(0x145)][_0x52d624(0x128)](0x2);args[_0x52d624(0x12d)]<0x3&&(console[_0x52d624(0x131)]('Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>'),process['exit'](0x1));const output=args[args['length']-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x52d624(0x14f)](_0x52d624(0x159)+inputs['length']+'\x20files\x20->\x20'+output):console[_0x52d624(0x14f)](_0x52d624(0x11e));}
|
|
1
|
+
const _0x2919ab=_0x30e3;(function(_0x355ec2,_0x4e851d){const _0x4b7546=_0x30e3,_0x552cf5=_0x355ec2();while(!![]){try{const _0x14aeb3=-parseInt(_0x4b7546(0x82))/0x1*(parseInt(_0x4b7546(0x94))/0x2)+-parseInt(_0x4b7546(0xa1))/0x3*(parseInt(_0x4b7546(0xb5))/0x4)+-parseInt(_0x4b7546(0x84))/0x5*(parseInt(_0x4b7546(0x8e))/0x6)+-parseInt(_0x4b7546(0x9c))/0x7+parseInt(_0x4b7546(0xb7))/0x8*(parseInt(_0x4b7546(0xa6))/0x9)+parseInt(_0x4b7546(0xaf))/0xa*(parseInt(_0x4b7546(0xa2))/0xb)+parseInt(_0x4b7546(0xad))/0xc;if(_0x14aeb3===_0x4e851d)break;else _0x552cf5['push'](_0x552cf5['shift']());}catch(_0x1f279d){_0x552cf5['push'](_0x552cf5['shift']());}}}(_0x1e2f,0x46d23));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(_0xf80a27,_0x404212){const _0x2b9e06=_0x30e3,_0x245b50={'EpySZ':function(_0x920517,_0x1b6f8b){return _0x920517<=_0x1b6f8b;},'QGQHa':function(_0x3cf0d1,_0xd7e9a){return _0x3cf0d1>_0xd7e9a;},'LUYHA':function(_0x4c1fc1,_0x53515b){return _0x4c1fc1&_0x53515b;}};if(_0x404212>=_0xf80a27['length'])return[0x0,0x0];const _0x4c1476=_0xf80a27[_0x404212];let _0x299d9f=0x1,_0x1fa090=0x80;while(_0x245b50['EpySZ'](_0x299d9f,0x8)&&!(_0x4c1476&_0x1fa090)){_0x299d9f++,_0x1fa090>>=0x1;}if(_0x245b50[_0x2b9e06(0x97)](_0x404212+_0x299d9f,_0xf80a27[_0x2b9e06(0xa3)]))return[0x0,0x0];let _0x859f9a=_0x245b50['LUYHA'](_0x4c1476,_0x1fa090-0x1);for(let _0x257079=0x1;_0x257079<_0x299d9f;_0x257079++){_0x859f9a=_0x859f9a*0x100+_0xf80a27[_0x404212+_0x257079];}return[_0x859f9a,_0x299d9f];}function _0x1e2f(){const _0xde7c8c=['FgPqF','FUTqL','9628116kznUDa','copy','160aJAHfq','gswib','mAqCf','VZCvd','micuj','cqDqA','8628UaMNml','slice','24QHIUAn','hgsko','from','alloc','stitchWebmFiles.js','pow','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','readInt16BE','RkIpC','YwDRi','ckoeo','min','16897oBAZom','floor','10vFhefO','AsBkr','ZARCH','HWQBg','push','gWjYV','qcZVB','bodyBeforeTimestamp','zlEcW','stitchWebmFiles.ts','730098LotiCc','onPoO','Aoumi','bodyAfterTimestamp','NmYTb','YZiFx','46oJkEda','maxTicks','rOZld','QGQHa','header','VeeDi','OHKfg','concat','996506VQRZlf','IwQBn','Rgltl','gvbGk','indexOf','732OZEmVP','330231kNbLWX','length','lgsON','nKfXN','924201SFqubj','SfcVa','ZHNBv','log','nDrmw'];_0x1e2f=function(){return _0xde7c8c;};return _0x1e2f();}function readId(_0x57eba8,_0xe682fa){const _0x2b3cb6=_0x30e3,_0x2e6005={'HWQBg':function(_0x209bb4,_0x82ecf6){return _0x209bb4>=_0x82ecf6;},'FgPqF':function(_0x274748,_0x518107){return _0x274748>=_0x518107;},'VeeDi':function(_0x32b107,_0x4b91c6){return _0x32b107>_0x4b91c6;},'cJjBL':function(_0x493f2d,_0x4ac56d){return _0x493f2d+_0x4ac56d;}};if(_0xe682fa>=_0x57eba8[_0x2b3cb6(0xa3)])return[0x0,0x0];const _0x4e14ee=_0x57eba8[_0xe682fa];let _0x107c03;if(_0x2e6005[_0x2b3cb6(0x87)](_0x4e14ee,0x80))_0x107c03=0x1;else{if(_0x4e14ee>=0x40)_0x107c03=0x2;else{if(_0x4e14ee>=0x20)_0x107c03=0x3;else{if(_0x2e6005[_0x2b3cb6(0xab)](_0x4e14ee,0x10))_0x107c03=0x4;else return[_0x4e14ee,0x1];}}}if(_0x2e6005[_0x2b3cb6(0x99)](_0xe682fa+_0x107c03,_0x57eba8['length']))return[0x0,0x0];let _0x3e6926=0x0;for(let _0x5711a0=0x0;_0x5711a0<_0x107c03;_0x5711a0++){_0x3e6926=_0x3e6926*0x100+_0x57eba8[_0x2e6005['cJjBL'](_0xe682fa,_0x5711a0)];}return[_0x3e6926,_0x107c03];}function readUint(_0x16587b,_0x296a72,_0x5bf1c4){const _0x45aac4={'alKIr':function(_0x2267c7,_0x400300){return _0x2267c7+_0x400300;}};let _0x1b445d=0x0;for(let _0x5cec2d=0x0;_0x5cec2d<_0x5bf1c4;_0x5cec2d++){_0x1b445d=_0x45aac4['alKIr'](_0x1b445d*0x100,_0x16587b[_0x296a72+_0x5cec2d]);}return _0x1b445d;}function isUnknownSize(_0x2c88a1,_0x5a6fe7){const _0x70a6fb=_0x30e3,_0x1d83f9={'vKQNr':function(_0x59d304,_0x2ab01b){return _0x59d304===_0x2ab01b;},'qcZVB':function(_0x8022c3,_0x468da2){return _0x8022c3-_0x468da2;},'RRXca':function(_0xad4070,_0x52e758){return _0xad4070*_0x52e758;}};return _0x1d83f9['vKQNr'](_0x2c88a1,_0x1d83f9[_0x70a6fb(0x8a)](Math[_0x70a6fb(0xbc)](0x2,_0x1d83f9['RRXca'](0x7,_0x5a6fe7)),0x1));}function writeVint(_0x50d7f9,_0x233dc1){const _0x2975ac=_0x30e3,_0x379252={'ABFbY':function(_0x9b2afe,_0x24439d){return _0x9b2afe<_0x24439d;},'hgsko':function(_0x4b65cb,_0x357212){return _0x4b65cb-_0x357212;},'NAaJL':function(_0x1284df,_0x3bd629){return _0x1284df>=_0x3bd629;},'wJjxJ':function(_0x5d14e9,_0x9eb45c){return _0x5d14e9/_0x9eb45c;},'onPoO':function(_0x2cbc89,_0x1ef187){return _0x2cbc89<<_0x1ef187;}};let _0x4e9dd3=_0x233dc1||0x1;while(_0x379252['ABFbY'](_0x379252['hgsko'](Math[_0x2975ac(0xbc)](0x2,0x7*_0x4e9dd3),0x2),_0x50d7f9))_0x4e9dd3++;const _0x5e9994=Buffer['alloc'](_0x4e9dd3);for(let _0xf67b99=_0x379252[_0x2975ac(0xb8)](_0x4e9dd3,0x1);_0x379252['NAaJL'](_0xf67b99,0x0);_0xf67b99--){_0x5e9994[_0xf67b99]=_0x50d7f9&0xff,_0x50d7f9=Math['floor'](_0x379252['wJjxJ'](_0x50d7f9,0x100));}return _0x5e9994[0x0]|=_0x379252[_0x2975ac(0x8f)](0x1,0x8-_0x4e9dd3),_0x5e9994;}function writeUint(_0xc414e3,_0xdc7457){const _0x2ba9cb=_0x30e3,_0x1314ee={'qJucf':function(_0x243753,_0x4cc3cf){return _0x243753>=_0x4cc3cf;},'ckoeo':function(_0x24dd3d,_0x4d2bf9){return _0x24dd3d/_0x4d2bf9;}},_0x39277f=Buffer[_0x2ba9cb(0xba)](_0xdc7457);for(let _0x4aa965=_0xdc7457-0x1;_0x1314ee['qJucf'](_0x4aa965,0x0);_0x4aa965--){_0x39277f[_0x4aa965]=_0xc414e3&0xff,_0xc414e3=Math[_0x2ba9cb(0x83)](_0x1314ee[_0x2ba9cb(0x80)](_0xc414e3,0x100));}return _0x39277f;}function writeUnknownSizeVint(_0x4dc048){const _0x49e152=Buffer['alloc'](_0x4dc048,0xff);return _0x49e152[0x0]=0xff>>_0x4dc048-0x1,_0x49e152;}function uintSize(_0x1ee4c5){const _0x1360ab=_0x30e3,_0x1fe002={'mxmdL':function(_0x33873e,_0xe15b1f){return _0x33873e===_0xe15b1f;},'rOZld':function(_0x4d66f8,_0x3bdad5){return _0x4d66f8>_0x3bdad5;}};if(_0x1fe002['mxmdL'](_0x1ee4c5,0x0))return 0x1;let _0x4972b6=0x0,_0x131e0d=_0x1ee4c5;while(_0x1fe002[_0x1360ab(0x96)](_0x131e0d,0x0)){_0x4972b6++,_0x131e0d=Math['floor'](_0x131e0d/0x100);}return _0x4972b6;}function findTimestampScale(_0x1dc350,_0x5f17c2){const _0x3356f2=_0x30e3,_0x3b5528={'bbDqz':function(_0x593766,_0x878fa){return _0x593766<_0x878fa;},'micuj':function(_0x35a150,_0x363158,_0x101f85){return _0x35a150(_0x363158,_0x101f85);},'AXGsE':function(_0x116a08,_0x4ae13e){return _0x116a08===_0x4ae13e;},'CkWpM':function(_0x2d4251,_0x34424){return _0x2d4251+_0x34424;},'pbzDD':function(_0x44e503,_0x1a2ff6){return _0x44e503===_0x1a2ff6;}};let _0x56f283=_0x5f17c2;const _0x490d32=Math[_0x3356f2(0x81)](_0x1dc350['length'],_0x5f17c2+0x2710);while(_0x3b5528['bbDqz'](_0x56f283,_0x490d32)){const [_0x39a905,_0x2e2f45]=_0x3b5528['micuj'](readId,_0x1dc350,_0x56f283),[_0x1ffb99,_0x4e3a1c]=readVint(_0x1dc350,_0x56f283+_0x2e2f45);if(_0x3b5528['AXGsE'](_0x39a905,ID_INFO)){let _0x535b63=_0x56f283+_0x2e2f45+_0x4e3a1c;const _0x326579=_0x3b5528['CkWpM'](_0x535b63,_0x1ffb99);while(_0x3b5528['bbDqz'](_0x535b63,_0x326579)){const [_0x28f5a1,_0x267aee]=readId(_0x1dc350,_0x535b63),[_0x409973,_0x59c748]=_0x3b5528[_0x3356f2(0xb3)](readVint,_0x1dc350,_0x535b63+_0x267aee);if(_0x28f5a1===ID_TIMESTAMP_SCALE)return readUint(_0x1dc350,_0x3b5528['CkWpM'](_0x535b63+_0x267aee,_0x59c748),_0x409973);_0x535b63+=_0x267aee+_0x59c748+_0x409973;}break;}if(_0x3b5528['pbzDD'](_0x39a905,ID_CLUSTER))break;if(_0x3b5528['micuj'](isUnknownSize,_0x1ffb99,_0x4e3a1c))break;_0x56f283+=_0x2e2f45+_0x4e3a1c+_0x1ffb99;}return 0xf4240;}function findFirstClusterOffset(_0x5f045c,_0x107864){const _0x5f4636=_0x30e3,_0x21b722={'oeSFf':function(_0x55a461,_0x42f07c){return _0x55a461+_0x42f07c;},'nMVQG':function(_0x38ab87,_0x4d239c,_0x135df1){return _0x38ab87(_0x4d239c,_0x135df1);}};let _0xf0a5f3=_0x107864;while(_0xf0a5f3<_0x5f045c['length']){const [_0x1fe99c,_0x148e54]=readId(_0x5f045c,_0xf0a5f3);if(_0x1fe99c===ID_CLUSTER)return _0xf0a5f3;const [_0x599d41,_0x10dfe6]=readVint(_0x5f045c,_0x21b722['oeSFf'](_0xf0a5f3,_0x148e54));if(_0x21b722['nMVQG'](isUnknownSize,_0x599d41,_0x10dfe6))return _0xf0a5f3;_0xf0a5f3+=_0x148e54+_0x10dfe6+_0x599d41;}return _0x5f045c[_0x5f4636(0xa3)];}function findClusterEnd(_0x190a92,_0x2c3441,_0x563698,_0x43ca87){const _0x14ff25=_0x30e3,_0x53e2a2={'Rgltl':function(_0x1be0cd,_0x4745e4,_0x28f91e){return _0x1be0cd(_0x4745e4,_0x28f91e);},'aIHSm':function(_0x120c4a,_0x95a4f2){return _0x120c4a-_0x95a4f2;},'mAqCf':function(_0xc90dc0,_0x3966b5,_0x3d14fc){return _0xc90dc0(_0x3966b5,_0x3d14fc);},'etWce':function(_0xd803d6,_0x5d4162){return _0xd803d6+_0x5d4162;}};if(!_0x53e2a2[_0x14ff25(0x9e)](isUnknownSize,_0x563698,_0x43ca87))return _0x2c3441+_0x563698;const _0x103f40=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x554861=_0x2c3441;while(_0x554861<_0x53e2a2['aIHSm'](_0x190a92['length'],0x4)){const [_0x693924,_0x37c45e]=_0x53e2a2[_0x14ff25(0xb1)](readId,_0x190a92,_0x554861);if(_0x103f40['has'](_0x693924))return _0x554861;const [_0x16c213,_0x2d6675]=readVint(_0x190a92,_0x554861+_0x37c45e);if(_0x53e2a2[_0x14ff25(0x9e)](isUnknownSize,_0x16c213,_0x2d6675))return _0x190a92[_0x14ff25(0xa3)];_0x554861+=_0x53e2a2['etWce'](_0x53e2a2['etWce'](_0x37c45e,_0x2d6675),_0x16c213);}return _0x190a92['length'];}function extractClusters(_0x3b6fc2,_0x17cf40){const _0x14f432=_0x30e3,_0xd87629={'kpdEZ':function(_0x220739,_0x512698){return _0x220739===_0x512698;},'zlEcW':function(_0x1dd9cf,_0x309d12,_0x525159){return _0x1dd9cf(_0x309d12,_0x525159);},'gWjYV':function(_0x52e807,_0x2986e5){return _0x52e807!==_0x2986e5;},'nKfXN':function(_0x49668d,_0x1e4cbe){return _0x49668d+_0x1e4cbe;},'FUTqL':function(_0x5b6597,_0x24d439){return _0x5b6597+_0x24d439;},'gvbGk':function(_0x1d27f7,_0x52b5ec,_0x3faa71,_0x404360,_0x3ae47b){return _0x1d27f7(_0x52b5ec,_0x3faa71,_0x404360,_0x3ae47b);},'eQEbn':function(_0x1fe7d3,_0x1fb049){return _0x1fe7d3+_0x1fb049;},'NCnqo':function(_0x4079a8,_0xcfd656){return _0x4079a8+_0xcfd656;},'xHeli':function(_0x48aa93,_0x1539a2){return _0x48aa93+_0x1539a2;},'FfTbp':function(_0x100a84,_0x3883e4){return _0x100a84<_0x3883e4;},'uPmld':function(_0x5c72fd,_0x3d617d){return _0x5c72fd>_0x3d617d;},'IgNKj':function(_0x16621d,_0x30b365){return _0x16621d===_0x30b365;},'NmYTb':function(_0x2aec64,_0x5053e2){return _0x2aec64+_0x5053e2;}},_0x4687b3=[],_0x590f70=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x329066=0x0;while(_0x329066<_0x3b6fc2[_0x14f432(0xa3)]){const _0x56300a=_0x3b6fc2[_0x14f432(0xa0)](_0x590f70,_0x329066);if(_0xd87629['kpdEZ'](_0x56300a,-0x1))break;const [_0x4a65c2,_0x120a69]=_0xd87629['zlEcW'](readId,_0x3b6fc2,_0x56300a);if(_0xd87629[_0x14f432(0x89)](_0x4a65c2,ID_CLUSTER)){_0x329066=_0x56300a+0x1;continue;}const [_0x5b0bbc,_0x55ce72]=readVint(_0x3b6fc2,_0xd87629[_0x14f432(0xa5)](_0x56300a,_0x120a69)),_0x196a37=_0xd87629[_0x14f432(0xac)](_0x56300a+_0x120a69,_0x55ce72),_0x3ac6c3=_0xd87629[_0x14f432(0x9f)](findClusterEnd,_0x3b6fc2,_0x196a37,_0x5b0bbc,_0x55ce72);let _0x5b4cf3=_0x196a37,_0x129bf3=0x0,_0x27bc3e=0x2,_0x51a34f=![],_0x34876e=Buffer['alloc'](0x0),_0x30c609=Buffer['alloc'](0x0);while(_0x5b4cf3<_0x3ac6c3){const [_0x45d0cb,_0x367ba1]=readId(_0x3b6fc2,_0x5b4cf3),[_0x26d6f5,_0x348772]=_0xd87629[_0x14f432(0x8c)](readVint,_0x3b6fc2,_0xd87629['FUTqL'](_0x5b4cf3,_0x367ba1));if(_0x45d0cb===ID_TIMESTAMP){_0x129bf3=readUint(_0x3b6fc2,_0x5b4cf3+_0x367ba1+_0x348772,_0x26d6f5),_0x27bc3e=_0x26d6f5,_0x51a34f=!![],_0x34876e=_0x3b6fc2[_0x14f432(0xb6)](_0x196a37,_0x5b4cf3);const _0x52e183=_0xd87629['eQEbn'](_0xd87629['NCnqo'](_0x5b4cf3,_0x367ba1)+_0x348772,_0x26d6f5);_0x30c609=_0x3b6fc2[_0x14f432(0xb6)](_0x52e183,_0x3ac6c3);break;}if(_0x45d0cb===ID_CLUSTER)break;if(isUnknownSize(_0x26d6f5,_0x348772))break;_0x5b4cf3+=_0xd87629[_0x14f432(0xac)](_0xd87629['xHeli'](_0x367ba1,_0x348772),_0x26d6f5);}!_0x51a34f&&(_0x30c609=_0x3b6fc2['slice'](_0x196a37,_0x3ac6c3));let _0x3069a9=_0x129bf3;_0x5b4cf3=_0x196a37;while(_0xd87629['FfTbp'](_0x5b4cf3,_0x3ac6c3)){const [_0x431003,_0x572aec]=readId(_0x3b6fc2,_0x5b4cf3),[_0x4d9e02,_0x9a9c56]=readVint(_0x3b6fc2,_0x5b4cf3+_0x572aec);if(_0x431003===ID_SIMPLE_BLOCK&&_0x4d9e02>=0x4){const _0x2fcd40=_0xd87629['xHeli'](_0x5b4cf3+_0x572aec,_0x9a9c56),[,_0x90eb41]=_0xd87629[_0x14f432(0x8c)](readVint,_0x3b6fc2,_0x2fcd40),_0x4a62d9=_0x3b6fc2[_0x14f432(0xbe)](_0xd87629['xHeli'](_0x2fcd40,_0x90eb41)),_0x4dde79=_0x129bf3+_0x4a62d9;if(_0xd87629['uPmld'](_0x4dde79,_0x3069a9))_0x3069a9=_0x4dde79;}if(_0xd87629['IgNKj'](_0x431003,ID_CLUSTER))break;if(isUnknownSize(_0x4d9e02,_0x9a9c56))break;_0x5b4cf3+=_0xd87629[_0x14f432(0x92)](_0x572aec+_0x9a9c56,_0x4d9e02);}_0x4687b3['push']({'timestamp':_0x129bf3,'maxTicks':_0x3069a9,'bodyBeforeTimestamp':_0x34876e,'bodyAfterTimestamp':_0x30c609,'timestampElementSize':_0x27bc3e}),_0x329066=_0x3ac6c3;}return _0x4687b3;}function parseWebm(_0x2273c3){const _0x568b59=_0x30e3,_0x183793={'nDrmw':function(_0x3b9497,_0x36ca1c){return _0x3b9497+_0x36ca1c;},'cqDqA':function(_0x2e849b,_0x159085){return _0x2e849b+_0x159085;},'RkIpC':function(_0x41471c,_0x4e9df8,_0x5909aa){return _0x41471c(_0x4e9df8,_0x5909aa);},'keQPT':function(_0x35d9b6,_0x55d2e4){return _0x35d9b6+_0x55d2e4;},'lgsON':function(_0x1b6d3d,_0x3b8956,_0x65a77d){return _0x1b6d3d(_0x3b8956,_0x65a77d);}};let _0x39709b=0x0;const [,_0x4c56b0]=readId(_0x2273c3,_0x39709b),[_0x2a1d24,_0xb92b7a]=readVint(_0x2273c3,_0x183793[_0x568b59(0xaa)](_0x39709b,_0x4c56b0));_0x39709b+=_0x183793[_0x568b59(0xb4)](_0x183793['nDrmw'](_0x4c56b0,_0xb92b7a),_0x2a1d24);const [_0x26cfe6,_0x1a6388]=_0x183793['RkIpC'](readId,_0x2273c3,_0x39709b);if(_0x26cfe6!==ID_SEGMENT)return null;const [,_0x3a9644]=_0x183793['RkIpC'](readVint,_0x2273c3,_0x183793['keQPT'](_0x39709b,_0x1a6388)),_0x5e506f=_0x39709b+_0x1a6388+_0x3a9644,_0x2b68b8=findTimestampScale(_0x2273c3,_0x5e506f),_0x17bffc=_0x183793[_0x568b59(0xbf)](findFirstClusterOffset,_0x2273c3,_0x5e506f),_0x2ab8c3=_0x2273c3[_0x568b59(0xb6)](0x0,_0x17bffc),_0x4e4011=_0x183793[_0x568b59(0xa4)](extractClusters,_0x2273c3,_0x2b68b8);let _0x3a0178=0x0;for(const _0x803a3f of _0x4e4011){if(_0x803a3f[_0x568b59(0x95)]>_0x3a0178)_0x3a0178=_0x803a3f[_0x568b59(0x95)];}return{'header':_0x2ab8c3,'clusters':_0x4e4011,'timestampScale':_0x2b68b8,'maxTimestampTicks':_0x3a0178};}function buildCluster(_0x3489fc,_0x5293d6,_0x2025f9){const _0x2fc2ae=_0x30e3,_0x31627d={'gswib':function(_0x537e3b,_0x516d17){return _0x537e3b(_0x516d17);}},_0x2fcbe2=Buffer[_0x2fc2ae(0xb9)]([0x1f,0x43,0xb6,0x75]),_0x422f56=Math['max'](0x4,uintSize(_0x3489fc)),_0x523e12=Buffer[_0x2fc2ae(0x9b)]([Buffer[_0x2fc2ae(0xb9)]([ID_TIMESTAMP]),_0x31627d['gswib'](writeVint,_0x422f56),writeUint(_0x3489fc,_0x422f56)]),_0x3e783f=Buffer[_0x2fc2ae(0x9b)]([_0x5293d6,_0x523e12,_0x2025f9]),_0x55b01f=_0x31627d[_0x2fc2ae(0xb0)](writeVint,_0x3e783f['length']);return Buffer['concat']([_0x2fcbe2,_0x55b01f,_0x3e783f]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x1cb362){const _0x270e50=_0x30e3,_0x163f74={'ZARCH':function(_0x2fd238,_0x534b37,_0x542958){return _0x2fd238(_0x534b37,_0x542958);},'AsBkr':function(_0x2ebb46,_0x17752b){return _0x2ebb46+_0x17752b;},'SfcVa':function(_0x43d1f2,_0x1ff8cf){return _0x43d1f2+_0x1ff8cf;},'LjGZl':function(_0x48eec8,_0x91673a,_0x3f0f10){return _0x48eec8(_0x91673a,_0x3f0f10);},'Aoumi':function(_0x27900a,_0x5ab5b7,_0x6b457f){return _0x27900a(_0x5ab5b7,_0x6b457f);},'ZHNBv':function(_0x214c98,_0xeaa0f4){return _0x214c98+_0xeaa0f4;},'YZiFx':function(_0x3305fb,_0x48ad1c){return _0x3305fb(_0x48ad1c);},'OHKfg':function(_0x338662,_0x3a4ebb){return _0x338662<_0x3a4ebb;},'IwQBn':function(_0x248ff5,_0x148f2d){return _0x248ff5+_0x148f2d;},'YwDRi':function(_0x2a3a7e,_0x41527b){return _0x2a3a7e+_0x41527b;}},_0x461c29=Buffer['from'](_0x1cb362);let _0x3d9112=0x0;const [,_0x11ec74]=_0x163f74[_0x270e50(0x86)](readId,_0x461c29,_0x3d9112),[_0x181782,_0x616de1]=readVint(_0x461c29,_0x3d9112+_0x11ec74),_0x56d715=_0x163f74[_0x270e50(0x85)](_0x163f74['SfcVa'](_0x3d9112,_0x11ec74),_0x616de1)+_0x181782,[,_0x1cd91e]=_0x163f74['LjGZl'](readId,_0x461c29,_0x56d715),[,_0x4703e7]=_0x163f74[_0x270e50(0x90)](readVint,_0x461c29,_0x56d715+_0x1cd91e),_0xe74510=_0x163f74[_0x270e50(0xa7)](_0x163f74['ZHNBv'](_0x56d715,_0x1cd91e),_0x4703e7),_0x558eb8=_0x163f74[_0x270e50(0x93)](writeUnknownSizeVint,_0x4703e7);_0x558eb8[_0x270e50(0xae)](_0x461c29,_0x56d715+_0x1cd91e);let _0x5b8017=_0xe74510;const _0x5c71e2=Math[_0x270e50(0x81)](_0x461c29['length'],_0xe74510+0x2710);while(_0x5b8017<_0x5c71e2){const [_0x442f3c,_0x47dbe6]=readId(_0x461c29,_0x5b8017),[_0x4844bd,_0x196485]=readVint(_0x461c29,_0x5b8017+_0x47dbe6);if(_0x442f3c===ID_CLUSTER)break;if(isUnknownSize(_0x4844bd,_0x196485))break;if(_0x442f3c===ID_INFO){const _0x5f236c=_0x163f74['ZHNBv'](_0x5b8017,_0x47dbe6)+_0x196485,_0x2dc63f=_0x163f74[_0x270e50(0xa7)](_0x5f236c,_0x4844bd),_0x26dc98=[];let _0xff8fb9=_0x5f236c;while(_0x163f74[_0x270e50(0x9a)](_0xff8fb9,_0x2dc63f)){const [_0x27c61c,_0x527aa3]=_0x163f74[_0x270e50(0x90)](readId,_0x461c29,_0xff8fb9),[_0x33d50d,_0x434608]=readVint(_0x461c29,_0xff8fb9+_0x527aa3),_0x889393=_0x163f74[_0x270e50(0xa8)](_0x163f74[_0x270e50(0x9d)](_0x527aa3,_0x434608),_0x33d50d);_0x27c61c!==ID_DURATION&&_0x26dc98['push'](_0x461c29['slice'](_0xff8fb9,_0xff8fb9+_0x889393)),_0xff8fb9+=_0x889393;}const _0x5e06a2=Buffer[_0x270e50(0x9b)](_0x26dc98),_0x3879bb=Buffer['concat']([_0x461c29['slice'](_0x5b8017,_0x163f74[_0x270e50(0xc0)](_0x5b8017,_0x47dbe6)),_0x163f74['ZARCH'](writeVint,_0x5e06a2['length'],_0x196485)]);return Buffer['concat']([_0x461c29['slice'](0x0,_0x5b8017),_0x3879bb,_0x5e06a2,_0x461c29['slice'](_0x2dc63f)]);}_0x5b8017+=_0x47dbe6+_0x196485+_0x4844bd;}return _0x461c29;}export function stitchWebmFiles(_0x504eb6,_0x9795b0){const _0x2fa856=_0x30e3,_0x2eac76={'VZCvd':function(_0x1eaad3,_0x2cac8a){return _0x1eaad3<=_0x2cac8a;},'PiVvC':function(_0x4cae21,_0x9c12cf){return _0x4cae21(_0x9c12cf);},'qCVOi':function(_0xada1c5,_0x8aadbf){return _0xada1c5<_0x8aadbf;},'xjwCr':function(_0x2e5250,_0x1765ed,_0x3370b5){return _0x2e5250(_0x1765ed,_0x3370b5);}};if(_0x2eac76[_0x2fa856(0xb2)](_0x504eb6['length'],0x1))return![];const _0x2a2e1e=[];for(const _0x40b2cc of _0x504eb6){const _0x26d955=_0x2eac76['PiVvC'](readFileSync,_0x40b2cc),_0x246136=_0x2eac76['PiVvC'](parseWebm,_0x26d955);if(!_0x246136||_0x246136['clusters'][_0x2fa856(0xa3)]===0x0)return![];_0x2a2e1e[_0x2fa856(0x88)](_0x246136);}const _0x1fefe9=_0x2a2e1e[0x0],_0x146172=rebuildHeaderWithoutDuration(_0x1fefe9[_0x2fa856(0x98)]),_0x36f665=[_0x146172];let _0x5cf1b1=0x0;for(let _0x5b4109=0x0;_0x2eac76['qCVOi'](_0x5b4109,_0x2a2e1e['length']);_0x5b4109++){const _0xbef835=_0x2a2e1e[_0x5b4109];for(const _0x3edb3c of _0xbef835['clusters']){const _0x449efa=_0x3edb3c['timestamp']+_0x5cf1b1;_0x36f665[_0x2fa856(0x88)](buildCluster(_0x449efa,_0x3edb3c[_0x2fa856(0x8b)],_0x3edb3c[_0x2fa856(0x91)]));}const _0x53d154=0x1e;_0x5cf1b1+=_0xbef835['maxTimestampTicks']+_0x53d154;}return _0x2eac76['xjwCr'](writeFileSync,_0x9795b0,Buffer[_0x2fa856(0x9b)](_0x36f665)),!![];}function _0x30e3(_0x36f3fa,_0x4c02ce){_0x36f3fa=_0x36f3fa-0x80;const _0x1e2f1e=_0x1e2f();let _0x30e327=_0x1e2f1e[_0x36f3fa];return _0x30e327;}if(process['argv'][0x1]?.['endsWith'](_0x2919ab(0x8d))||process['argv'][0x1]?.['endsWith'](_0x2919ab(0xbb))){const args=process['argv']['slice'](0x2);args[_0x2919ab(0xa3)]<0x3&&(console['error']('Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>'),process['exit'](0x1));const output=args[args['length']-0x1],inputs=args[_0x2919ab(0xb6)](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x2919ab(0xa9)]('Stitched\x20'+inputs[_0x2919ab(0xa3)]+'\x20files\x20->\x20'+output):console['log'](_0x2919ab(0xbd));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x267dc6=_0x1b5b;function _0x5e97(){const _0x37c938=['8UlvJBa','6PmnMyp','tCHeu','isCI','evaluation','length','utf-8','trackCommandError','192165GgRyhx','\x20event(s)\x20to\x20','buffer','mXtjP','phaseStartTimes','commandStartTime','trackCommandStart','flushing','commandId','stdout','featureId','sendBatch','5635042cpzGir','sendImmediate','nodeVersion','POST','now','trackPhaseEnd','eventType','15uroTIV','1152596kHqhFh','xXzvj','efWyh','finally','5670207PitqXM','browserSessionId','...','error','delete','checklistItemId','splice','iBRBi','catch','6HZdmVJ','isTty','cliVersion','kNPNs','setContext','phase','flushAsync','env','Authorization','flush','789644SfVrzr','Unknown','5756860FUNnHV','errorType','11rAxVqy','IIVVd','DEBUG','deviceId','phaseCounter','7244760EoymlU','buildEvent','outcome','trackCommandEnd','get','set','trackPhaseStart','mAqEq','platform','yMEdD','command','command_end'];_0x5e97=function(){return _0x37c938;};return _0x5e97();}function _0x1b5b(_0xe134d1,_0x5987b1){_0xe134d1=_0xe134d1-0x155;const _0x5e973e=_0x5e97();let _0x1b5b3b=_0x5e973e[_0xe134d1];return _0x1b5b3b;}(function(_0x51c480,_0x30b458){const _0x37939d=_0x1b5b,_0x2c0148=_0x51c480();while(!![]){try{const _0xadcba=-parseInt(_0x37939d(0x16f))/0x1+parseInt(_0x37939d(0x19c))/0x2*(-parseInt(_0x37939d(0x15b))/0x3)+parseInt(_0x37939d(0x186))/0x4*(parseInt(_0x37939d(0x16e))/0x5)+-parseInt(_0x37939d(0x17c))/0x6*(-parseInt(_0x37939d(0x167))/0x7)+-parseInt(_0x37939d(0x19b))/0x8*(-parseInt(_0x37939d(0x173))/0x9)+-parseInt(_0x37939d(0x188))/0xa+parseInt(_0x37939d(0x18a))/0xb*(parseInt(_0x37939d(0x18f))/0xc);if(_0xadcba===_0x30b458)break;else _0x2c0148['push'](_0x2c0148['shift']());}catch(_0xb56530){_0x2c0148['push'](_0x2c0148['shift']());}}}(_0x5e97,0xad791));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 getDeviceId(){const _0x4a62a3=_0x1b5b,_0x183940={'BdxlJ':function(_0x5451b0){return _0x5451b0();},'yMEdD':'.ranger','sOOwk':'.session','qlWVA':_0x4a62a3(0x159),'Absno':function(_0x1aeec5){return _0x1aeec5();},'efWyh':function(_0x26de7e){return _0x26de7e();}};if(cachedDeviceId)return cachedDeviceId;try{const _0x2959a8=join(_0x183940['BdxlJ'](homedir),_0x183940[_0x4a62a3(0x198)]),_0x3a0dad=join(_0x2959a8,_0x183940['sOOwk']);if(existsSync(_0x3a0dad)){cachedDeviceId=readFileSync(_0x3a0dad,_0x183940['qlWVA'])['trim']();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=_0x183940['Absno'](randomUUID),mkdirSync(_0x2959a8,{'recursive':!![]}),writeFileSync(_0x3a0dad,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=_0x183940[_0x4a62a3(0x171)](randomUUID),cachedDeviceId;}}export class TelemetryCollector{['buffer']=[];[_0x267dc6(0x163)];[_0x267dc6(0x199)];[_0x267dc6(0x160)];['phaseCounter']=0x0;['phaseStartTimes']=new Map();['flushing']=null;['deviceId'];['cliVersion'];[_0x267dc6(0x169)];['platform'];[_0x267dc6(0x17d)];[_0x267dc6(0x156)];['featureId'];['checklistItemId'];['browserSessionId'];['transport'];constructor(_0x40ca31){const _0x5a41b1=_0x267dc6,_0x4dceb8={'xXzvj':function(_0xe24da2){return _0xe24da2();},'ZGiqx':function(_0x21ca65){return _0x21ca65();}};this[_0x5a41b1(0x163)]=randomUUID(),this[_0x5a41b1(0x199)]=_0x40ca31,this[_0x5a41b1(0x160)]=Date[_0x5a41b1(0x16b)](),this['deviceId']=_0x4dceb8[_0x5a41b1(0x170)](getDeviceId),this['cliVersion']=_0x4dceb8['ZGiqx'](getCurrentVersion),this[_0x5a41b1(0x169)]=process['version'],this['platform']=process[_0x5a41b1(0x197)],this[_0x5a41b1(0x17d)]=process[_0x5a41b1(0x164)]['isTTY']??![],this['isCI']=!!(process['env']['CI']||process[_0x5a41b1(0x183)]['GITHUB_ACTIONS']);}[_0x267dc6(0x180)](_0x5593c9){const _0x54b681=_0x267dc6;if(_0x5593c9['featureId'])this[_0x54b681(0x165)]=_0x5593c9[_0x54b681(0x165)];if(_0x5593c9['checklistItemId'])this[_0x54b681(0x178)]=_0x5593c9[_0x54b681(0x178)];if(_0x5593c9[_0x54b681(0x174)])this[_0x54b681(0x174)]=_0x5593c9[_0x54b681(0x174)];if(_0x5593c9['transport'])this['transport']=_0x5593c9['transport'];}async[_0x267dc6(0x161)](_0xc991ce){const _0x5745f2=_0x267dc6,_0x469660=this[_0x5745f2(0x190)]({'eventType':'command_start','metadata':_0xc991ce});await this['sendImmediate'](_0x469660);}async[_0x267dc6(0x192)](_0x1bcd48,_0x138763){const _0x5050b5=_0x267dc6,_0x5447a6={'tCHeu':function(_0x3194c4,_0x4b547c){return _0x3194c4-_0x4b547c;}},_0x366746=this[_0x5050b5(0x190)]({'eventType':_0x5050b5(0x19a),'outcome':_0x1bcd48,'durationMs':_0x5447a6[_0x5050b5(0x155)](Date[_0x5050b5(0x16b)](),this['commandStartTime']),'metadata':_0x138763});await this['sendImmediate'](_0x366746),await this[_0x5050b5(0x185)]();}async['trackCommandError'](_0x5bcc7a,_0x2cff44){const _0x257692=_0x267dc6,_0x38f3b1={'mAqEq':'command_error','iBRBi':function(_0x290cfc,_0x51b2c5){return _0x290cfc instanceof _0x51b2c5;}},_0x55452e=this[_0x257692(0x190)]({'eventType':_0x38f3b1[_0x257692(0x196)],'errorMessage':truncate(_0x5bcc7a instanceof Error?_0x5bcc7a['message']:String(_0x5bcc7a),0x1f4),'errorType':_0x38f3b1[_0x257692(0x17a)](_0x5bcc7a,Error)?_0x5bcc7a['constructor']['name']:_0x257692(0x187),'durationMs':Date['now']()-this['commandStartTime'],'metadata':_0x2cff44});await this[_0x257692(0x168)](_0x55452e),await this[_0x257692(0x185)]();}[_0x267dc6(0x195)](_0x40bf6f,_0x193242){const _0x517d75=_0x267dc6,_0x390584={'mXtjP':'phase_start'};this[_0x517d75(0x18e)]++,this[_0x517d75(0x15f)][_0x517d75(0x194)](_0x40bf6f,Date[_0x517d75(0x16b)]());const _0x58f5d9=this['buildEvent']({'eventType':_0x390584[_0x517d75(0x15e)],'phase':_0x40bf6f,'phaseIndex':this[_0x517d75(0x18e)],'metadata':_0x193242});this[_0x517d75(0x15d)]['push'](_0x58f5d9);}[_0x267dc6(0x16c)](_0x26e754,_0x5ee7e4){const _0x10e7cd=_0x267dc6,_0x5f29df=this['phaseStartTimes']['get'](_0x26e754),_0x5491a9=_0x5f29df?Date['now']()-_0x5f29df:undefined;this['phaseStartTimes'][_0x10e7cd(0x177)](_0x26e754);const _0x135d42=this[_0x10e7cd(0x190)]({'eventType':'phase_end','phase':_0x26e754,'durationMs':_0x5491a9,'metadata':_0x5ee7e4});this['buffer']['push'](_0x135d42),this[_0x10e7cd(0x15d)]['length']>=0xa&&this['flushAsync']();}async['trackPhaseError'](_0x51add2,_0x37b51e,_0x28c22b){const _0x47823e=_0x267dc6,_0x4d2764={'ffNBU':'phase_error','IIVVd':function(_0x7d59db,_0x3d483f,_0x26fed3){return _0x7d59db(_0x3d483f,_0x26fed3);},'nUwyd':function(_0x27e706,_0x18d0b8){return _0x27e706(_0x18d0b8);}},_0xb9f9c7=this[_0x47823e(0x15f)][_0x47823e(0x193)](_0x51add2),_0x354f19=_0xb9f9c7?Date[_0x47823e(0x16b)]()-_0xb9f9c7:undefined;this[_0x47823e(0x15f)]['delete'](_0x51add2);const _0x404c3f=this['buildEvent']({'eventType':_0x4d2764['ffNBU'],'phase':_0x51add2,'durationMs':_0x354f19,'errorMessage':_0x4d2764[_0x47823e(0x18b)](truncate,_0x37b51e instanceof Error?_0x37b51e['message']:_0x4d2764['nUwyd'](String,_0x37b51e),0x1f4),'errorType':_0x37b51e instanceof Error?_0x37b51e['constructor']['name']:_0x47823e(0x187),'metadata':_0x28c22b});await this[_0x47823e(0x168)](_0x404c3f);}async['flush'](){const _0x1b67a9=_0x267dc6;if(this['buffer']['length']===0x0)return;const _0x200c38=this[_0x1b67a9(0x15d)][_0x1b67a9(0x179)](0x0);try{await this[_0x1b67a9(0x166)](_0x200c38);}catch{}}['buildEvent'](_0x5b9f99){const _0x2f4713=_0x267dc6;return{'eventType':_0x5b9f99[_0x2f4713(0x16d)],'command':this[_0x2f4713(0x199)],'commandId':this['commandId'],'deviceId':this[_0x2f4713(0x18d)],'timestamp':new Date()['toISOString'](),'durationMs':_0x5b9f99['durationMs'],'phase':_0x5b9f99[_0x2f4713(0x181)],'phaseIndex':_0x5b9f99['phaseIndex'],'outcome':_0x5b9f99[_0x2f4713(0x191)],'errorMessage':_0x5b9f99['errorMessage'],'errorType':_0x5b9f99[_0x2f4713(0x189)],'featureId':this['featureId'],'checklistItemId':this['checklistItemId'],'browserSessionId':this['browserSessionId'],'transport':this['transport'],'evaluation':_0x5b9f99[_0x2f4713(0x157)],'cliVersion':this[_0x2f4713(0x17e)],'nodeVersion':this['nodeVersion'],'platform':this[_0x2f4713(0x197)],'cwd':process['cwd'](),'isTty':this['isTty'],'isCI':this[_0x2f4713(0x156)],'metadata':_0x5b9f99['metadata']};}async[_0x267dc6(0x168)](_0x3d6b68){try{await this['sendBatch']([_0x3d6b68]);}catch{}}[_0x267dc6(0x182)](){const _0x208e23=_0x267dc6;if(this[_0x208e23(0x162)])return;this['flushing']=this['flush']()[_0x208e23(0x172)](()=>{this['flushing']=null;});}async[_0x267dc6(0x166)](_0x796679){const _0x2493d8=_0x267dc6,_0x48b77d={'kNPNs':'application/json','QTiGG':function(_0x6e7a08,_0x16f99a){return _0x6e7a08(_0x16f99a);}},_0x4ab60e=await getToken()[_0x2493d8(0x17b)](()=>null),_0x520a57=getApiBaseUrl(),_0x551ca5={'Content-Type':_0x48b77d[_0x2493d8(0x17f)]};_0x4ab60e&&(_0x551ca5[_0x2493d8(0x184)]='Bearer\x20'+_0x4ab60e);const _0x2f3326={'events':_0x796679};process['env'][_0x2493d8(0x18c)]&&console[_0x2493d8(0x176)]('[telemetry]\x20Sending\x20'+_0x796679['length']+_0x2493d8(0x15c)+_0x520a57+'/api/v1/mcp/cli-telemetry');const _0x5f291b=new AbortController(),_0x35a9e2=setTimeout(()=>_0x5f291b['abort'](),0x1388);try{await fetch(_0x520a57+'/api/v1/mcp/cli-telemetry',{'method':_0x2493d8(0x16a),'headers':_0x551ca5,'body':JSON['stringify'](_0x2f3326),'signal':_0x5f291b['signal']});}finally{_0x48b77d['QTiGG'](clearTimeout,_0x35a9e2);}}}let currentCollector=null;export function createTelemetryCollector(_0x7c10b4){return currentCollector=new TelemetryCollector(_0x7c10b4),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0xd5e221,_0x55b65e,_0x15fe1b){const _0x391069=_0x267dc6,_0x330ad4={'EkJgQ':'success'},_0xa7e1a=createTelemetryCollector(_0xd5e221);await _0xa7e1a['trackCommandStart'](_0x15fe1b);try{const _0x48b23d=await _0x55b65e(_0xa7e1a);return await _0xa7e1a[_0x391069(0x192)](_0x330ad4['EkJgQ']),_0x48b23d;}catch(_0x57b6f8){await _0xa7e1a[_0x391069(0x15a)](_0x57b6f8);throw _0x57b6f8;}finally{await _0xa7e1a['flush']();}}function truncate(_0x2021cf,_0x52680e){const _0x314684=_0x267dc6;return _0x2021cf[_0x314684(0x158)]>_0x52680e?_0x2021cf['slice'](0x0,_0x52680e)+_0x314684(0x175):_0x2021cf;}
|
|
1
|
+
const _0x58ace2=_0x58a9;(function(_0x366139,_0x4180b4){const _0x380fe4=_0x58a9,_0xfd92c2=_0x366139();while(!![]){try{const _0x2e838f=-parseInt(_0x380fe4(0x15e))/0x1*(parseInt(_0x380fe4(0x1a2))/0x2)+-parseInt(_0x380fe4(0x17b))/0x3+-parseInt(_0x380fe4(0x187))/0x4+parseInt(_0x380fe4(0x164))/0x5+-parseInt(_0x380fe4(0x186))/0x6+parseInt(_0x380fe4(0x157))/0x7+parseInt(_0x380fe4(0x16d))/0x8*(parseInt(_0x380fe4(0x16e))/0x9);if(_0x2e838f===_0x4180b4)break;else _0xfd92c2['push'](_0xfd92c2['shift']());}catch(_0xf749db){_0xfd92c2['push'](_0xfd92c2['shift']());}}}(_0x2e4b,0x6dc99));function _0x58a9(_0x37a364,_0x1c7c63){_0x37a364=_0x37a364-0x157;const _0x2e4b5d=_0x2e4b();let _0x58a932=_0x2e4b5d[_0x37a364];return _0x58a932;}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 getDeviceId(){const _0xe1536d=_0x58a9,_0x1e03f6={'MATit':function(_0x3c0b32,_0x351128,_0x489b02){return _0x3c0b32(_0x351128,_0x489b02);},'OgGRu':'.session','tPjtX':_0xe1536d(0x16f),'TnLtJ':function(_0x2e9414){return _0x2e9414();},'PoFsy':function(_0x8da087,_0x18fcee,_0x303b86){return _0x8da087(_0x18fcee,_0x303b86);},'viGKo':function(_0x252013,_0x240c32,_0x34054e){return _0x252013(_0x240c32,_0x34054e);}};if(cachedDeviceId)return cachedDeviceId;try{const _0xea117c=_0x1e03f6[_0xe1536d(0x158)](join,homedir(),'.ranger'),_0x146ea5=join(_0xea117c,_0x1e03f6['OgGRu']);if(existsSync(_0x146ea5)){cachedDeviceId=readFileSync(_0x146ea5,_0x1e03f6['tPjtX'])['trim']();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=_0x1e03f6[_0xe1536d(0x1a3)](randomUUID),_0x1e03f6[_0xe1536d(0x18b)](mkdirSync,_0xea117c,{'recursive':!![]}),_0x1e03f6[_0xe1536d(0x174)](writeFileSync,_0x146ea5,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=randomUUID(),cachedDeviceId;}}export class TelemetryCollector{['buffer']=[];[_0x58ace2(0x15f)];['command'];[_0x58ace2(0x173)];['phaseCounter']=0x0;['phaseStartTimes']=new Map();[_0x58ace2(0x15a)]=null;[_0x58ace2(0x197)];['cliVersion'];[_0x58ace2(0x19f)];[_0x58ace2(0x160)];['isTty'];['isCI'];[_0x58ace2(0x170)];['checklistItemId'];[_0x58ace2(0x172)];[_0x58ace2(0x198)];constructor(_0x12a0b0){const _0x479cb7=_0x58ace2,_0x5630b0={'zJtVR':function(_0x53608b){return _0x53608b();}},_0x1e392d='0|1|6|5|4|2|7|8|3'['split']('|');let _0x4d5f80=0x0;while(!![]){switch(_0x1e392d[_0x4d5f80++]){case'0':this[_0x479cb7(0x15f)]=_0x5630b0['zJtVR'](randomUUID);continue;case'1':this[_0x479cb7(0x178)]=_0x12a0b0;continue;case'2':this[_0x479cb7(0x19f)]=process['version'];continue;case'3':this[_0x479cb7(0x185)]=!!(process[_0x479cb7(0x19a)]['CI']||process['env'][_0x479cb7(0x177)]);continue;case'4':this[_0x479cb7(0x16b)]=getCurrentVersion();continue;case'5':this['deviceId']=getDeviceId();continue;case'6':this['commandStartTime']=Date['now']();continue;case'7':this[_0x479cb7(0x160)]=process['platform'];continue;case'8':this['isTty']=process[_0x479cb7(0x1a7)]['isTTY']??![];continue;}break;}}[_0x58ace2(0x15d)](_0x45bf05){const _0x532b6e=_0x58ace2;if(_0x45bf05[_0x532b6e(0x170)])this[_0x532b6e(0x170)]=_0x45bf05['featureId'];if(_0x45bf05['checklistItemId'])this[_0x532b6e(0x194)]=_0x45bf05[_0x532b6e(0x194)];if(_0x45bf05[_0x532b6e(0x172)])this['browserSessionId']=_0x45bf05['browserSessionId'];if(_0x45bf05['transport'])this['transport']=_0x45bf05[_0x532b6e(0x198)];}async['trackCommandStart'](_0x503dfa){const _0x210a71=_0x58ace2,_0x5f43f5=this[_0x210a71(0x165)]({'eventType':'command_start','metadata':_0x503dfa});await this['sendImmediate'](_0x5f43f5);}async[_0x58ace2(0x171)](_0x150512,_0x381cbc){const _0x168f6b=_0x58ace2,_0x75f502={'FCtRR':function(_0x499b5e,_0x58ddd6){return _0x499b5e-_0x58ddd6;}},_0x5def36=this[_0x168f6b(0x165)]({'eventType':'command_end','outcome':_0x150512,'durationMs':_0x75f502['FCtRR'](Date['now'](),this[_0x168f6b(0x173)]),'metadata':_0x381cbc});await this[_0x168f6b(0x15b)](_0x5def36),await this['flush']();}async['trackCommandError'](_0x179320,_0x2577a6){const _0x251cc8=_0x58ace2,_0x5556ef={'sWYKx':function(_0x2d188d,_0x1ab2a7){return _0x2d188d instanceof _0x1ab2a7;},'hlHVC':function(_0x12ccc0,_0x134f46){return _0x12ccc0 instanceof _0x134f46;},'qSuBu':function(_0x20693f,_0xf4b741){return _0x20693f-_0xf4b741;}},_0x1de09c=this['buildEvent']({'eventType':_0x251cc8(0x159),'errorMessage':truncate(_0x5556ef[_0x251cc8(0x191)](_0x179320,Error)?_0x179320['message']:String(_0x179320),0x1f4),'errorType':_0x5556ef[_0x251cc8(0x18f)](_0x179320,Error)?_0x179320['constructor']['name']:'Unknown','durationMs':_0x5556ef[_0x251cc8(0x161)](Date[_0x251cc8(0x193)](),this[_0x251cc8(0x173)]),'metadata':_0x2577a6});await this['sendImmediate'](_0x1de09c),await this['flush']();}['trackPhaseStart'](_0xef4cc3,_0x319c96){const _0x433ce9=_0x58ace2,_0x4b02fd={'LRcMa':'phase_start'};this['phaseCounter']++,this['phaseStartTimes'][_0x433ce9(0x196)](_0xef4cc3,Date['now']());const _0x409f26=this[_0x433ce9(0x165)]({'eventType':_0x4b02fd['LRcMa'],'phase':_0xef4cc3,'phaseIndex':this['phaseCounter'],'metadata':_0x319c96});this[_0x433ce9(0x16c)][_0x433ce9(0x18c)](_0x409f26);}[_0x58ace2(0x17c)](_0x13cc53,_0x1ff24d){const _0x29950f=_0x58ace2,_0xa9f67b={'hLPWN':function(_0xc0bd24,_0x38aa60){return _0xc0bd24-_0x38aa60;},'FUNYy':function(_0x3e750e,_0x2cf5dc){return _0x3e750e>=_0x2cf5dc;}},_0x4a46a5=this[_0x29950f(0x1a5)]['get'](_0x13cc53),_0x2931b9=_0x4a46a5?_0xa9f67b[_0x29950f(0x16a)](Date['now'](),_0x4a46a5):undefined;this[_0x29950f(0x1a5)][_0x29950f(0x18e)](_0x13cc53);const _0x112d07=this['buildEvent']({'eventType':_0x29950f(0x17a),'phase':_0x13cc53,'durationMs':_0x2931b9,'metadata':_0x1ff24d});this[_0x29950f(0x16c)][_0x29950f(0x18c)](_0x112d07),_0xa9f67b['FUNYy'](this['buffer'][_0x29950f(0x199)],0xa)&&this['flushAsync']();}async[_0x58ace2(0x17d)](_0x4d3c39,_0x3ea8c1,_0x1169f0){const _0x4cf928=_0x58ace2,_0xcd9c94=this[_0x4cf928(0x1a5)]['get'](_0x4d3c39),_0x2568e5=_0xcd9c94?Date[_0x4cf928(0x193)]()-_0xcd9c94:undefined;this['phaseStartTimes']['delete'](_0x4d3c39);const _0x13ac79=this[_0x4cf928(0x165)]({'eventType':_0x4cf928(0x19e),'phase':_0x4d3c39,'durationMs':_0x2568e5,'errorMessage':truncate(_0x3ea8c1 instanceof Error?_0x3ea8c1[_0x4cf928(0x19c)]:String(_0x3ea8c1),0x1f4),'errorType':_0x3ea8c1 instanceof Error?_0x3ea8c1['constructor'][_0x4cf928(0x168)]:_0x4cf928(0x1a6),'metadata':_0x1169f0});await this['sendImmediate'](_0x13ac79);}async[_0x58ace2(0x15c)](){const _0x27e1b2=_0x58ace2,_0x24c7b1={'TUuUd':function(_0x547b35,_0x9ae02e){return _0x547b35===_0x9ae02e;}};if(_0x24c7b1[_0x27e1b2(0x175)](this[_0x27e1b2(0x16c)]['length'],0x0))return;const _0x26fac=this['buffer'][_0x27e1b2(0x190)](0x0);try{await this['sendBatch'](_0x26fac);}catch{}}['buildEvent'](_0x84f4d0){const _0x22ee5f=_0x58ace2;return{'eventType':_0x84f4d0[_0x22ee5f(0x17f)],'command':this['command'],'commandId':this[_0x22ee5f(0x15f)],'deviceId':this[_0x22ee5f(0x197)],'timestamp':new Date()[_0x22ee5f(0x195)](),'durationMs':_0x84f4d0[_0x22ee5f(0x1a4)],'phase':_0x84f4d0['phase'],'phaseIndex':_0x84f4d0[_0x22ee5f(0x18a)],'outcome':_0x84f4d0[_0x22ee5f(0x189)],'errorMessage':_0x84f4d0['errorMessage'],'errorType':_0x84f4d0['errorType'],'featureId':this[_0x22ee5f(0x170)],'checklistItemId':this['checklistItemId'],'browserSessionId':this[_0x22ee5f(0x172)],'transport':this['transport'],'evaluation':_0x84f4d0[_0x22ee5f(0x181)],'cliVersion':this['cliVersion'],'nodeVersion':this[_0x22ee5f(0x19f)],'platform':this[_0x22ee5f(0x160)],'cwd':process[_0x22ee5f(0x18d)](),'isTty':this[_0x22ee5f(0x180)],'isCI':this[_0x22ee5f(0x185)],'metadata':_0x84f4d0['metadata']};}async[_0x58ace2(0x15b)](_0x33a955){const _0x47e43d=_0x58ace2;try{await this[_0x47e43d(0x179)]([_0x33a955]);}catch{}}['flushAsync'](){const _0x2a7de8=_0x58ace2;if(this[_0x2a7de8(0x15a)])return;this[_0x2a7de8(0x15a)]=this[_0x2a7de8(0x15c)]()['finally'](()=>{const _0x357674=_0x2a7de8;this[_0x357674(0x15a)]=null;});}async[_0x58ace2(0x179)](_0x5f3f0c){const _0x4119c0=_0x58ace2,_0x47db43={'atnkn':function(_0x400290){return _0x400290();},'zVBhM':function(_0x2bf3fc,_0xeef32b,_0x2b5a1d){return _0x2bf3fc(_0xeef32b,_0x2b5a1d);},'lKaQu':function(_0x344dc2,_0x4cb489){return _0x344dc2(_0x4cb489);}},_0x2d17ab=await _0x47db43[_0x4119c0(0x188)](getToken)['catch'](()=>null),_0x51fdec=_0x47db43['atnkn'](getApiBaseUrl),_0x35e87e={'Content-Type':_0x4119c0(0x182)};_0x2d17ab&&(_0x35e87e['Authorization']=_0x4119c0(0x19b)+_0x2d17ab);const _0x47d6fe={'events':_0x5f3f0c};process[_0x4119c0(0x19a)]['DEBUG']&&console['error'](_0x4119c0(0x19d)+_0x5f3f0c['length']+_0x4119c0(0x176)+_0x51fdec+'/api/v1/mcp/cli-telemetry');const _0x2dabaf=new AbortController(),_0x1fc1f7=_0x47db43[_0x4119c0(0x183)](setTimeout,()=>_0x2dabaf['abort'](),0x1388);try{await fetch(_0x51fdec+_0x4119c0(0x1a1),{'method':_0x4119c0(0x17e),'headers':_0x35e87e,'body':JSON[_0x4119c0(0x169)](_0x47d6fe),'signal':_0x2dabaf['signal']});}finally{_0x47db43['lKaQu'](clearTimeout,_0x1fc1f7);}}}let currentCollector=null;export function createTelemetryCollector(_0x2c154f){return currentCollector=new TelemetryCollector(_0x2c154f),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0xb05710,_0x3ed7c9,_0x53ff92){const _0xfe4859=_0x58ace2,_0x43f791={'nkBXB':function(_0x5c84b2,_0x21f3c9){return _0x5c84b2(_0x21f3c9);},'vUjFm':_0xfe4859(0x184)},_0x3fd695=_0x43f791['nkBXB'](createTelemetryCollector,_0xb05710);await _0x3fd695[_0xfe4859(0x166)](_0x53ff92);try{const _0x91c38c=await _0x3ed7c9(_0x3fd695);return await _0x3fd695[_0xfe4859(0x171)](_0x43f791['vUjFm']),_0x91c38c;}catch(_0x219a1b){await _0x3fd695['trackCommandError'](_0x219a1b);throw _0x219a1b;}finally{await _0x3fd695[_0xfe4859(0x15c)]();}}function truncate(_0x2af803,_0x11b1f7){const _0x39df6e=_0x58ace2,_0x537c1a={'CsngH':function(_0x38fd37,_0x161240){return _0x38fd37>_0x161240;},'ZMqYl':function(_0x1aa51d,_0x3acb6f){return _0x1aa51d+_0x3acb6f;},'djsUw':_0x39df6e(0x162)};return _0x537c1a[_0x39df6e(0x163)](_0x2af803['length'],_0x11b1f7)?_0x537c1a[_0x39df6e(0x167)](_0x2af803[_0x39df6e(0x1a0)](0x0,_0x11b1f7),_0x537c1a[_0x39df6e(0x192)]):_0x2af803;}function _0x2e4b(){const _0xbafca3=['sWYKx','djsUw','now','checklistItemId','toISOString','set','deviceId','transport','length','env','Bearer\x20','message','[telemetry]\x20Sending\x20','phase_error','nodeVersion','slice','/api/v1/mcp/cli-telemetry','2394YYKNrB','TnLtJ','durationMs','phaseStartTimes','Unknown','stdout','5199691ffQecF','MATit','command_error','flushing','sendImmediate','flush','setContext','590DwywQI','commandId','platform','qSuBu','...','CsngH','3131895VjXFCT','buildEvent','trackCommandStart','ZMqYl','name','stringify','hLPWN','cliVersion','buffer','6385584fLfhVj','9cVwnHL','utf-8','featureId','trackCommandEnd','browserSessionId','commandStartTime','viGKo','TUuUd','\x20event(s)\x20to\x20','GITHUB_ACTIONS','command','sendBatch','phase_end','1123788sNzJaL','trackPhaseEnd','trackPhaseError','POST','eventType','isTty','evaluation','application/json','zVBhM','success','isCI','1436472wYGLiJ','1589852OKuqqV','atnkn','outcome','phaseIndex','PoFsy','push','cwd','delete','hlHVC','splice'];_0x2e4b=function(){return _0xbafca3;};return _0x2e4b();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x3d8e09,_0x7f0acd){const _0x3254d2=_0x1e82,_0xab7ff4=_0x3d8e09();while(!![]){try{const _0x8c4fb5=-parseInt(_0x3254d2(0x1a9))/0x1+parseInt(_0x3254d2(0x1a7))/0x2*(parseInt(_0x3254d2(0x19c))/0x3)+parseInt(_0x3254d2(0x199))/0x4*(-parseInt(_0x3254d2(0x1a8))/0x5)+-parseInt(_0x3254d2(0x1aa))/0x6+parseInt(_0x3254d2(0x1a3))/0x7*(-parseInt(_0x3254d2(0x1a1))/0x8)+-parseInt(_0x3254d2(0x19f))/0x9+parseInt(_0x3254d2(0x19e))/0xa;if(_0x8c4fb5===_0x7f0acd)break;else _0xab7ff4['push'](_0xab7ff4['shift']());}catch(_0x6212f9){_0xab7ff4['push'](_0xab7ff4['shift']());}}}(_0x281d,0x428e8));function _0x1e82(_0x1e5f0b,_0x267f04){_0x1e5f0b=_0x1e5f0b-0x199;const _0x281d70=_0x281d();let _0x1e829d=_0x281d70[_0x1e5f0b];return _0x1e829d;}function _0x281d(){const _0x58e20c=['16zpdvCn','DbAVd','166033JASxcV','application/json','token','/cli-auth/refresh','4xxvLra','6425NiiynP','152468SccShy','1130886XhDfeB','888ozoaQm','refreshToken','xBEgN','14199uxodVU','timeout','9409930AAZBhS','37674UbWXca','sHiHU'];_0x281d=function(){return _0x58e20c;};return _0x281d();}import{getApiBaseUrl}from'./environment.js';import{getRefreshToken,storeToken,storeRefreshToken}from'./keychain.js';export async function refreshCliToken(){const _0x110c6b=_0x1e82,_0x28ba56={'sHiHU':function(_0x5f0dd0){return _0x5f0dd0();},'DbAVd':function(_0x393fcd,_0x26a723,_0x5c59e6){return _0x393fcd(_0x26a723,_0x5c59e6);},'hYbBA':_0x110c6b(0x1a4),'xBEgN':function(_0xd734c2,_0x1f7159){return _0xd734c2(_0x1f7159);}},_0x269cbf=await _0x28ba56[_0x110c6b(0x1a0)](getRefreshToken);if(!_0x269cbf)return null;const _0x225736=getApiBaseUrl();try{const _0x32b630=await _0x28ba56[_0x110c6b(0x1a2)](fetch,_0x225736+_0x110c6b(0x1a6),{'method':'POST','headers':{'Content-Type':_0x28ba56['hYbBA']},'body':JSON['stringify']({'refreshToken':_0x269cbf}),'signal':AbortSignal[_0x110c6b(0x19d)](0x2710)});if(!_0x32b630['ok'])return null;const _0x357037=await _0x32b630['json']();return await _0x28ba56[_0x110c6b(0x19b)](storeToken,_0x357037['token']),await storeRefreshToken(_0x357037[_0x110c6b(0x19a)]),_0x357037[_0x110c6b(0x1a5)];}catch{return null;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x5de6(_0x4fc34a,_0x36b845){_0x4fc34a=_0x4fc34a-0x166;const _0x3db872=_0x3db8();let _0x5de6b0=_0x3db872[_0x4fc34a];return _0x5de6b0;}(function(_0x5816eb,_0x5cfb44){const _0x31fdf2=_0x5de6,_0x294216=_0x5816eb();while(!![]){try{const _0x5b3c22=-parseInt(_0x31fdf2(0x167))/0x1*(-parseInt(_0x31fdf2(0x166))/0x2)+-parseInt(_0x31fdf2(0x17f))/0x3*(parseInt(_0x31fdf2(0x16e))/0x4)+-parseInt(_0x31fdf2(0x18d))/0x5*(-parseInt(_0x31fdf2(0x168))/0x6)+-parseInt(_0x31fdf2(0x18a))/0x7*(parseInt(_0x31fdf2(0x186))/0x8)+parseInt(_0x31fdf2(0x17e))/0x9*(-parseInt(_0x31fdf2(0x183))/0xa)+parseInt(_0x31fdf2(0x16c))/0xb*(parseInt(_0x31fdf2(0x185))/0xc)+parseInt(_0x31fdf2(0x17b))/0xd;if(_0x5b3c22===_0x5cfb44)break;else _0x294216['push'](_0x294216['shift']());}catch(_0x1b5014){_0x294216['push'](_0x294216['shift']());}}}(_0x3db8,0xbe093));function _0x3db8(){const _0xdda93d=['8703006LbLMTT','string','push','6651ZMkcKc','468FHkRVk','isDirectory','capturedAt','split','9560GzZlbN','before','12FVzNLc','2161088vXAupV','pageId','xXbbU','hXaYU','14tjpawt','navigated','type','6740DCKFnu','startTime','dkIzf','values','endTime','callId','length','frame-snapshot','indexOf','frameUrl','params','sort','2779934vTzrnB','1LenIcX','1632WDzTyG','goto','DRDXS','afterSnapshot','10028062CxQoTM','get','33656iJCmjI','.trace','find','filter','url','point','beforeSnapshot','kwnSj','GOOeu','method','snapshotName','inputSnapshot','NMgkS'];_0x3db8=function(){return _0xdda93d;};return _0x3db8();}import{readdir,readFile}from'fs/promises';import{join}from'path';export async function mapStepsToTraceSnapshots(_0x5d6718,_0x5e9484){const _0x12bf83=_0x5de6,_0x395f69={'mAOQZ':function(_0x4368eb,_0x229bbc,_0x313edc){return _0x4368eb(_0x229bbc,_0x313edc);},'uMzCj':function(_0x598549,_0x98051f){return _0x598549(_0x98051f);},'nODkU':_0x12bf83(0x16f),'DRDXS':function(_0x27b5dc,_0x45730b){return _0x27b5dc===_0x45730b;},'kwnSj':'utf-8','NMgkS':_0x12bf83(0x184),'MXvem':'after','GOOeu':function(_0x2cc1e0,_0x585f4a){return _0x2cc1e0===_0x585f4a;},'hXaYU':function(_0x52479f,_0x5b1f67){return _0x52479f===_0x5b1f67;},'MIxyA':_0x12bf83(0x18b),'dkIzf':function(_0x37c99f,_0x34946c){return _0x37c99f-_0x34946c;},'xXbbU':function(_0x4c821c,_0x115783){return _0x4c821c>=_0x115783;},'AfMci':function(_0x3b026f,_0x480325){return _0x3b026f+_0x480325;}},_0x1333a8=new Map();if(_0x5e9484[_0x12bf83(0x193)]===0x0)return _0x1333a8;const _0x3c4a62=[],_0x277e7b=async _0x150857=>{const _0x1614d8=_0x12bf83,_0x4d50c2=await _0x395f69['mAOQZ'](readdir,_0x150857,{'withFileTypes':!![]});for(const _0x125f83 of _0x4d50c2){const _0x81e367=join(_0x150857,_0x125f83['name']);if(_0x125f83[_0x1614d8(0x180)]())await _0x395f69['uMzCj'](_0x277e7b,_0x81e367);else _0x125f83['name']['endsWith'](_0x395f69['nODkU'])&&_0x3c4a62['push'](_0x81e367);}};await _0x277e7b(_0x5d6718);if(_0x395f69[_0x12bf83(0x16a)](_0x3c4a62[_0x12bf83(0x193)],0x0))return _0x1333a8;const _0x4f446c=[];for(const _0x1a44bc of _0x3c4a62){const _0x1f7981=await readFile(_0x1a44bc,_0x395f69[_0x12bf83(0x175)]),_0x465d1e=_0x1f7981[_0x12bf83(0x182)]('\x0a')[_0x12bf83(0x171)](_0x34c1a6=>_0x34c1a6['trim']());for(const _0x551aa9 of _0x465d1e){try{_0x4f446c[_0x12bf83(0x17d)](JSON['parse'](_0x551aa9));}catch{}}}if(_0x4f446c[_0x12bf83(0x193)]===0x0)return _0x1333a8;const _0xd742d9=_0x4f446c[_0x12bf83(0x170)](_0x36930a=>_0x36930a[_0x12bf83(0x18c)]==='context-options');if(!_0xd742d9)return _0x1333a8;const _0x169fe1=_0xd742d9['wallTime']-_0xd742d9['monotonicTime'],_0x1a22f3=new Map();for(const _0x437f85 of _0x4f446c){switch(_0x437f85[_0x12bf83(0x18c)]){case _0x395f69[_0x12bf83(0x17a)]:{const _0x5bb210=_0x437f85;_0x1a22f3['set'](_0x5bb210[_0x12bf83(0x192)],{'callId':_0x5bb210['callId'],'startTime':_0x5bb210[_0x12bf83(0x18e)],'endTime':0x0,'method':_0x5bb210[_0x12bf83(0x177)],'apiName':_0x5bb210['apiName'],'params':_0x5bb210[_0x12bf83(0x197)],'pageId':_0x5bb210[_0x12bf83(0x187)],'beforeSnapshot':_0x5bb210['beforeSnapshot']});break;}case'input':{const _0x14b108=_0x437f85,_0xc21fd5=_0x1a22f3['get'](_0x14b108[_0x12bf83(0x192)]);if(_0xc21fd5){if(_0x14b108[_0x12bf83(0x179)])_0xc21fd5[_0x12bf83(0x179)]=_0x14b108[_0x12bf83(0x179)];if(_0x14b108[_0x12bf83(0x173)])_0xc21fd5[_0x12bf83(0x173)]=_0x14b108[_0x12bf83(0x173)];}break;}case _0x395f69['MXvem']:{const _0x1c70e6=_0x437f85,_0x181814=_0x1a22f3['get'](_0x1c70e6[_0x12bf83(0x192)]);if(_0x181814){_0x181814['endTime']=_0x1c70e6[_0x12bf83(0x191)];if(_0x1c70e6[_0x12bf83(0x16b)])_0x181814['afterSnapshot']=_0x1c70e6[_0x12bf83(0x16b)];}break;}}}const _0x2a8673=Array['from'](_0x1a22f3[_0x12bf83(0x190)]())['filter'](_0x40b3f4=>_0x40b3f4['endTime']>0x0&&(_0x40b3f4[_0x12bf83(0x16b)]||_0x40b3f4[_0x12bf83(0x174)]))[_0x12bf83(0x198)]((_0xd5b647,_0xbbff1f)=>_0xd5b647['startTime']-_0xbbff1f['startTime']);if(_0x395f69[_0x12bf83(0x176)](_0x2a8673['length'],0x0))return _0x1333a8;const _0xb3c734=new Map();for(const _0x102cf5 of _0x4f446c){if(_0x102cf5[_0x12bf83(0x18c)]===_0x12bf83(0x194)){const _0x38b070=_0x102cf5['snapshot'];_0x38b070?.[_0x12bf83(0x178)]&&_0x38b070?.['frameUrl']&&_0xb3c734['set'](_0x38b070[_0x12bf83(0x178)],_0x38b070[_0x12bf83(0x196)]);}}const _0x8c6f76=new Map();for(const _0x3c9d5c of _0x2a8673){const _0x4c9b1e=_0x3c9d5c['params']?.['url'];_0x3c9d5c[_0x12bf83(0x177)]===_0x12bf83(0x169)&&typeof _0x4c9b1e==='string'&&_0x3c9d5c[_0x12bf83(0x187)]&&_0x8c6f76['set'](_0x3c9d5c[_0x12bf83(0x187)],_0x4c9b1e);}for(const _0x3c3bb6 of _0x4f446c){const _0x5113ba=_0x3c3bb6,_0x4f2aa9=_0x5113ba['params'],_0x105957=_0x4f2aa9?.[_0x12bf83(0x172)];_0x5113ba['type']==='event'&&_0x395f69['hXaYU'](_0x5113ba['method'],_0x395f69['MIxyA'])&&typeof _0x105957==='string'&&_0x395f69[_0x12bf83(0x16a)](typeof _0x5113ba[_0x12bf83(0x187)],_0x12bf83(0x17c))&&_0x8c6f76['set'](_0x5113ba[_0x12bf83(0x187)],_0x105957);}for(const _0x2242ed of _0x5e9484){const _0x5ed836=new Date(_0x2242ed[_0x12bf83(0x181)])['getTime'](),_0x1319c7=_0x5ed836-_0x169fe1;let _0x1f7eb6=null,_0x3ef126=Infinity;for(const _0x55ebe2 of _0x2a8673){const _0xdc738c=Math['abs'](_0x395f69[_0x12bf83(0x18f)](_0x55ebe2['endTime'],_0x1319c7));_0xdc738c<_0x3ef126&&(_0x3ef126=_0xdc738c,_0x1f7eb6=_0x55ebe2);}if(!_0x1f7eb6)continue;const _0x29f3da=_0x1f7eb6[_0x12bf83(0x16b)]||_0x1f7eb6[_0x12bf83(0x174)];if(!_0x29f3da)continue;const _0x472263=_0x1f7eb6[_0x12bf83(0x187)]||'page@0';let _0x58de8b=_0xb3c734[_0x12bf83(0x16d)](_0x29f3da)||_0x8c6f76['get'](_0x472263)||'';if(!_0x58de8b)for(let _0x346bb3=_0x2a8673[_0x12bf83(0x195)](_0x1f7eb6);_0x395f69['xXbbU'](_0x346bb3,0x0);_0x346bb3--){const _0x59cfb7=_0x2a8673[_0x346bb3][_0x12bf83(0x197)]?.[_0x12bf83(0x172)];if(_0x2a8673[_0x346bb3][_0x12bf83(0x177)]==='goto'&&_0x395f69[_0x12bf83(0x189)](typeof _0x59cfb7,_0x12bf83(0x17c))){_0x58de8b=_0x59cfb7;break;}}let _0x343232,_0x486bb6;const _0x44d5b7=_0x2a8673[_0x12bf83(0x195)](_0x1f7eb6);if(_0x395f69[_0x12bf83(0x188)](_0x44d5b7,0x0)&&_0x44d5b7<_0x2a8673['length']-0x1){const _0x2cf599=_0x2a8673[_0x395f69['AfMci'](_0x44d5b7,0x1)];_0x2cf599[_0x12bf83(0x173)]&&_0x2cf599['inputSnapshot']&&(_0x343232=_0x2cf599[_0x12bf83(0x173)],_0x486bb6=_0x2cf599[_0x12bf83(0x179)]);}_0x1333a8['set'](_0x2242ed['stepId'],{'snapshotName':_0x29f3da,'inputSnapshotName':_0x486bb6,'pageId':_0x472263,'pageUrl':_0x58de8b,'callId':_0x1f7eb6[_0x12bf83(0x192)],'point':_0x343232});}return _0x1333a8;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5d4433,_0x2acc28){const _0x81101f=_0x12f5,_0x2adb32=_0x5d4433();while(!![]){try{const _0x178822=parseInt(_0x81101f(0x90))/0x1*(parseInt(_0x81101f(0x97))/0x2)+-parseInt(_0x81101f(0x92))/0x3*(-parseInt(_0x81101f(0x8c))/0x4)+parseInt(_0x81101f(0x91))/0x5*(parseInt(_0x81101f(0x95))/0x6)+parseInt(_0x81101f(0x8f))/0x7*(parseInt(_0x81101f(0x96))/0x8)+parseInt(_0x81101f(0x8b))/0x9+-parseInt(_0x81101f(0x99))/0xa+parseInt(_0x81101f(0x93))/0xb*(-parseInt(_0x81101f(0x94))/0xc);if(_0x178822===_0x2acc28)break;else _0x2adb32['push'](_0x2adb32['shift']());}catch(_0x57f44a){_0x2adb32['push'](_0x2adb32['shift']());}}}(_0x1cbb,0x425ec));function _0x1cbb(){const _0x119dec=['51963aQgrwf','1645897zEncdk','36wOYFYm','1902UPeKfb','8PNKOLM','88904bhllrh','json','4718630iQXqtK','1505079bqWgCc','104GZxvMC','status','GET','1093736dkepWw','9dmXoOw','295qjdNnM'];_0x1cbb=function(){return _0x119dec;};return _0x1cbb();}function _0x12f5(_0x13bf2a,_0x3d44c8){_0x13bf2a=_0x13bf2a-0x8b;const _0x1cbbd0=_0x1cbb();let _0x12f574=_0x1cbbd0[_0x13bf2a];return _0x12f574;}import{getApiBaseUrl}from'./environment.js';export async function getCurrentUser(_0x1ae4b8){const _0x3eae2e=_0x12f5,_0x4dd005=getApiBaseUrl();try{const _0x5c4df3=await fetch(_0x4dd005+'/api/v1/mcp/me',{'method':_0x3eae2e(0x8e),'headers':{'Authorization':'Bearer\x20'+_0x1ae4b8}});if(!_0x5c4df3['ok'])return{'success':![],'error':_0x5c4df3[_0x3eae2e(0x8d)]+'\x20'+_0x5c4df3['statusText'],'status':_0x5c4df3[_0x3eae2e(0x8d)]};const _0x223268=await _0x5c4df3[_0x3eae2e(0x98)]();return{'success':!![],'user':_0x223268};}catch(_0x16adc6){return{'success':![],'error':_0x16adc6 instanceof Error?_0x16adc6['message']:String(_0x16adc6)};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3e8607=_0x5ce8;(function(_0x1fc2b8,_0x3030da){const _0x441f80=_0x5ce8,_0x2b9146=_0x1fc2b8();while(!![]){try{const _0x2cfcac=parseInt(_0x441f80(0x177))/0x1*(parseInt(_0x441f80(0x171))/0x2)+-parseInt(_0x441f80(0x182))/0x3*(parseInt(_0x441f80(0x180))/0x4)+parseInt(_0x441f80(0x17f))/0x5*(-parseInt(_0x441f80(0x186))/0x6)+-parseInt(_0x441f80(0x179))/0x7+parseInt(_0x441f80(0x172))/0x8*(parseInt(_0x441f80(0x17e))/0x9)+-parseInt(_0x441f80(0x184))/0xa*(-parseInt(_0x441f80(0x175))/0xb)+-parseInt(_0x441f80(0x185))/0xc*(-parseInt(_0x441f80(0x17b))/0xd);if(_0x2cfcac===_0x3030da)break;else _0x2b9146['push'](_0x2b9146['shift']());}catch(_0x72e60a){_0x2b9146['push'](_0x2b9146['shift']());}}}(_0x120a,0xb8381));import{readFileSync}from'fs';import{existsSync}from'fs';import{execSync}from'child_process';import{fileURLToPath}from'url';import{dirname,join}from'path';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);function _0x5ce8(_0x2fd0fe,_0x161440){_0x2fd0fe=_0x2fd0fe-0x171;const _0x120a36=_0x120a();let _0x5ce82a=_0x120a36[_0x2fd0fe];return _0x5ce82a;}export const PACKAGE_NAME=_0x3e8607(0x178);export function getCurrentVersion(){const _0x3a963e=_0x3e8607,_0x5b2027={'CTedX':'package.json','XOuIp':_0x3a963e(0x176)},_0x3a34be=[join(__dirname,'..','..',_0x3a963e(0x183)),join(__dirname,'..','..','..',_0x5b2027[_0x3a963e(0x17d)])];for(const _0xb1538c of _0x3a34be){if(existsSync(_0xb1538c))try{const _0x99f4b1=JSON['parse'](readFileSync(_0xb1538c,_0x5b2027['XOuIp']));return _0x99f4b1[_0x3a963e(0x174)]||_0x3a963e(0x181);}catch{continue;}}return'unknown';}export function getLatestVersion(){const _0x14c3dd=_0x3e8607,_0x4491db={'bkedn':function(_0x1b169a,_0x2021d3){return _0x1b169a instanceof _0x2021d3;}};try{const _0x46cd59=execSync(_0x14c3dd(0x187)+PACKAGE_NAME+'\x20version',{'encoding':_0x14c3dd(0x176),'timeout':0x2710,'stdio':[_0x14c3dd(0x17a),_0x14c3dd(0x17a),'pipe']});return{'version':_0x46cd59[_0x14c3dd(0x17c)]()};}catch(_0x9a3c32){const _0x4df5ce=_0x4491db['bkedn'](_0x9a3c32,Error)?_0x9a3c32['message']:String(_0x9a3c32);return{'error':_0x4df5ce};}}export function compareVersions(_0x367687,_0x242576){const _0x23bc1c=_0x3e8607,_0x232f0a=_0x367687['split']('.')[_0x23bc1c(0x173)](Number),_0x404ece=_0x242576['split']('.')[_0x23bc1c(0x173)](Number);for(let _0x517c35=0x0;_0x517c35<0x3;_0x517c35++){const _0x598310=_0x232f0a[_0x517c35]||0x0,_0x21f5b0=_0x404ece[_0x517c35]||0x0;if(_0x21f5b0>_0x598310)return 0x1;if(_0x21f5b0<_0x598310)return-0x1;}return 0x0;}function _0x120a(){const _0x519a93=['1960428XgKcUz','276sURdpa','npm\x20view\x20','560314mzXJdb','152CKawLd','map','version','1222716KSkoSL','utf-8','1ubMTxt','@ranger-testing/ranger-cli','1652882rUDCzi','pipe','91PoTySb','trim','CTedX','616617dkuzOP','117940CQVBWu','4822128SonhSM','unknown','3HrSRKt','package.json','50rQDmor'];_0x120a=function(){return _0x519a93;};return _0x120a();}
|