@ranger-testing/ranger-cli 2.4.0 → 2.4.1

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 (70) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/env.js +1 -1
  7. package/build/commands/feature.js +1 -1
  8. package/build/commands/hook.js +1 -1
  9. package/build/commands/hooks/autoPrompt.js +1 -1
  10. package/build/commands/hooks/disable.js +1 -1
  11. package/build/commands/hooks/enable.js +1 -1
  12. package/build/commands/hooks/exitPlanMode.js +1 -1
  13. package/build/commands/hooks/index.js +1 -1
  14. package/build/commands/hooks/output.js +1 -1
  15. package/build/commands/hooks/planReminder.js +1 -1
  16. package/build/commands/hooks/planStart.js +1 -1
  17. package/build/commands/hooks/postEdit.js +1 -1
  18. package/build/commands/hooks/preCompact.js +1 -1
  19. package/build/commands/hooks/sessionEnd.js +1 -1
  20. package/build/commands/hooks/sessionStart.js +1 -1
  21. package/build/commands/hooks/stopHook.js +1 -1
  22. package/build/commands/index.js +1 -1
  23. package/build/commands/login.js +1 -1
  24. package/build/commands/setup/claude.js +1 -1
  25. package/build/commands/setup/opencode.js +1 -1
  26. package/build/commands/setupCi.js +1 -1
  27. package/build/commands/skillup.js +1 -1
  28. package/build/commands/start.js +1 -1
  29. package/build/commands/status.js +1 -1
  30. package/build/commands/update.js +1 -1
  31. package/build/commands/updateEnv.js +1 -1
  32. package/build/commands/useEnv.js +1 -1
  33. package/build/commands/utils/activeProfile.js +1 -1
  34. package/build/commands/utils/agentEnv.js +1 -1
  35. package/build/commands/utils/browserSessionsApi.js +1 -1
  36. package/build/commands/utils/claudeConfig.js +1 -1
  37. package/build/commands/utils/claudePlugin.js +1 -1
  38. package/build/commands/utils/crypto.js +1 -1
  39. package/build/commands/utils/desirePathLog.js +1 -1
  40. package/build/commands/utils/deviceAuth.js +1 -1
  41. package/build/commands/utils/environment.js +1 -1
  42. package/build/commands/utils/featureApi.js +1 -1
  43. package/build/commands/utils/featureReportGenerator.js +1 -1
  44. package/build/commands/utils/fixWebmDuration.js +1 -1
  45. package/build/commands/utils/git.js +1 -1
  46. package/build/commands/utils/keychain.js +1 -1
  47. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  48. package/build/commands/utils/mcpImageBase64.js +1 -1
  49. package/build/commands/utils/model.js +1 -1
  50. package/build/commands/utils/opencodeConfig.js +1 -1
  51. package/build/commands/utils/playwrightCli.js +1 -1
  52. package/build/commands/utils/profileMessages.js +1 -1
  53. package/build/commands/utils/profileSetupBanner.js +1 -1
  54. package/build/commands/utils/rangerConfig.js +1 -1
  55. package/build/commands/utils/rangerRoot.js +1 -1
  56. package/build/commands/utils/reportGenerator.js +1 -1
  57. package/build/commands/utils/retry.js +1 -1
  58. package/build/commands/utils/sessionCache.js +1 -1
  59. package/build/commands/utils/settings.js +1 -1
  60. package/build/commands/utils/skillContent.js +1 -1
  61. package/build/commands/utils/skills.js +1 -1
  62. package/build/commands/utils/stitchWebmFiles.js +1 -1
  63. package/build/commands/utils/telemetry.js +1 -1
  64. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  65. package/build/commands/utils/userApi.js +1 -1
  66. package/build/commands/utils/version.js +1 -1
  67. package/build/commands/verifyFeature.js +1 -1
  68. package/build/commands/verifyFeatureCli.js +1 -1
  69. package/build/commands/verifyInBrowser.js +1 -1
  70. package/package.json +1 -1
@@ -1 +1 @@
1
- const _0x4d14b1=_0x140a;(function(_0x152dc2,_0x2ed228){const _0x1813cb=_0x140a,_0x98c7aa=_0x152dc2();while(!![]){try{const _0x41837e=parseInt(_0x1813cb(0x108))/0x1*(-parseInt(_0x1813cb(0xdc))/0x2)+parseInt(_0x1813cb(0xd5))/0x3*(parseInt(_0x1813cb(0xe8))/0x4)+parseInt(_0x1813cb(0xd2))/0x5*(-parseInt(_0x1813cb(0xdd))/0x6)+-parseInt(_0x1813cb(0xf8))/0x7*(parseInt(_0x1813cb(0xf4))/0x8)+-parseInt(_0x1813cb(0x115))/0x9*(parseInt(_0x1813cb(0xd7))/0xa)+-parseInt(_0x1813cb(0xcd))/0xb+parseInt(_0x1813cb(0xd4))/0xc*(parseInt(_0x1813cb(0xe2))/0xd);if(_0x41837e===_0x2ed228)break;else _0x98c7aa['push'](_0x98c7aa['shift']());}catch(_0x20bc2f){_0x98c7aa['push'](_0x98c7aa['shift']());}}}(_0x5426,0x3135f));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 _0x140a(_0x49d150,_0x20ef9c){_0x49d150=_0x49d150-0xcc;const _0x5426af=_0x5426();let _0x140aac=_0x5426af[_0x49d150];return _0x140aac;}function readVint(_0x27750c,_0x3c7722){const _0x5be956=_0x140a,_0x2f54f6={'nAdYg':function(_0xf596d,_0x2364c8){return _0xf596d>=_0x2364c8;},'UjkWE':function(_0x1b11ce,_0x50db26){return _0x1b11ce<=_0x50db26;},'OYjxN':function(_0x5a9ef5,_0x10ebfb){return _0x5a9ef5&_0x10ebfb;},'RrwQC':function(_0x5af66e,_0x4b08ef){return _0x5af66e>_0x4b08ef;},'AQmrU':function(_0x20abb2,_0x490c2f){return _0x20abb2-_0x490c2f;},'wkQog':function(_0x2f8ed4,_0x1777cb){return _0x2f8ed4+_0x1777cb;},'nWiJg':function(_0x2e75c4,_0x1a1fe6){return _0x2e75c4*_0x1a1fe6;}};if(_0x2f54f6['nAdYg'](_0x3c7722,_0x27750c[_0x5be956(0x107)]))return[0x0,0x0];const _0x4cc634=_0x27750c[_0x3c7722];let _0x1a74d8=0x1,_0x221dc8=0x80;while(_0x2f54f6['UjkWE'](_0x1a74d8,0x8)&&!_0x2f54f6[_0x5be956(0x10a)](_0x4cc634,_0x221dc8)){_0x1a74d8++,_0x221dc8>>=0x1;}if(_0x2f54f6[_0x5be956(0xfa)](_0x3c7722+_0x1a74d8,_0x27750c[_0x5be956(0x107)]))return[0x0,0x0];let _0x16e295=_0x4cc634&_0x2f54f6['AQmrU'](_0x221dc8,0x1);for(let _0x138971=0x1;_0x138971<_0x1a74d8;_0x138971++){_0x16e295=_0x2f54f6['wkQog'](_0x2f54f6[_0x5be956(0xd1)](_0x16e295,0x100),_0x27750c[_0x3c7722+_0x138971]);}return[_0x16e295,_0x1a74d8];}function readId(_0x2b0299,_0x54b4d5){const _0x58dd60=_0x140a,_0x124cf0={'LdRex':function(_0x2ff527,_0x5d2bf7){return _0x2ff527>=_0x5d2bf7;},'pTPUF':function(_0x1a9a19,_0xee397e){return _0x1a9a19>=_0xee397e;},'rzShP':function(_0x160b37,_0x47cb02){return _0x160b37+_0x47cb02;},'NqzZs':function(_0x1dc3f0,_0x252923){return _0x1dc3f0+_0x252923;}};if(_0x124cf0[_0x58dd60(0xe4)](_0x54b4d5,_0x2b0299[_0x58dd60(0x107)]))return[0x0,0x0];const _0x51665d=_0x2b0299[_0x54b4d5];let _0x1bff24;if(_0x124cf0[_0x58dd60(0xe4)](_0x51665d,0x80))_0x1bff24=0x1;else{if(_0x51665d>=0x40)_0x1bff24=0x2;else{if(_0x51665d>=0x20)_0x1bff24=0x3;else{if(_0x124cf0[_0x58dd60(0xe9)](_0x51665d,0x10))_0x1bff24=0x4;else return[_0x51665d,0x1];}}}if(_0x54b4d5+_0x1bff24>_0x2b0299['length'])return[0x0,0x0];let _0x392c3f=0x0;for(let _0x5d7373=0x0;_0x5d7373<_0x1bff24;_0x5d7373++){_0x392c3f=_0x124cf0['rzShP'](_0x392c3f*0x100,_0x2b0299[_0x124cf0['NqzZs'](_0x54b4d5,_0x5d7373)]);}return[_0x392c3f,_0x1bff24];}function readUint(_0xd5578a,_0x5d2194,_0x516d6b){const _0x232281=_0x140a,_0x596ad6={'LuanU':function(_0x49ac15,_0x49360a){return _0x49ac15*_0x49360a;},'lgPaH':function(_0x2292e6,_0x3b146a){return _0x2292e6+_0x3b146a;}};let _0x4823aa=0x0;for(let _0x3c006a=0x0;_0x3c006a<_0x516d6b;_0x3c006a++){_0x4823aa=_0x596ad6['LuanU'](_0x4823aa,0x100)+_0xd5578a[_0x596ad6[_0x232281(0xe5)](_0x5d2194,_0x3c006a)];}return _0x4823aa;}function isUnknownSize(_0x26d687,_0x1aec79){const _0x5c3b75={'cRMMH':function(_0xbf71f8,_0x30e559){return _0xbf71f8===_0x30e559;}};return _0x5c3b75['cRMMH'](_0x26d687,Math['pow'](0x2,0x7*_0x1aec79)-0x1);}function writeVint(_0x450dca,_0x36a5e3){const _0x4363a9=_0x140a,_0x438bda={'BtwPW':function(_0x5bc9fa,_0x4eeece){return _0x5bc9fa||_0x4eeece;},'lrNWo':function(_0x2d9ca1,_0x149034){return _0x2d9ca1-_0x149034;}};let _0x23d1dd=_0x438bda[_0x4363a9(0xf1)](_0x36a5e3,0x1);while(Math[_0x4363a9(0x100)](0x2,0x7*_0x23d1dd)-0x2<_0x450dca)_0x23d1dd++;const _0x1888ff=Buffer[_0x4363a9(0x10f)](_0x23d1dd);for(let _0x28416b=_0x438bda['lrNWo'](_0x23d1dd,0x1);_0x28416b>=0x0;_0x28416b--){_0x1888ff[_0x28416b]=_0x450dca&0xff,_0x450dca=Math[_0x4363a9(0x104)](_0x450dca/0x100);}return _0x1888ff[0x0]|=0x1<<0x8-_0x23d1dd,_0x1888ff;}function writeUint(_0x11261f,_0x323320){const _0x40c198=_0x140a,_0x1ab73d={'AQFpg':function(_0x2c7a24,_0xe6c2a0){return _0x2c7a24-_0xe6c2a0;},'jThVx':function(_0x3035a2,_0xe4b649){return _0x3035a2/_0xe4b649;}},_0x232f51=Buffer['alloc'](_0x323320);for(let _0x480e10=_0x1ab73d[_0x40c198(0xf7)](_0x323320,0x1);_0x480e10>=0x0;_0x480e10--){_0x232f51[_0x480e10]=_0x11261f&0xff,_0x11261f=Math['floor'](_0x1ab73d[_0x40c198(0xfb)](_0x11261f,0x100));}return _0x232f51;}function writeUnknownSizeVint(_0x1837ae){const _0x243ba2=_0x140a,_0x2d1b6d={'FHijY':function(_0x5502a2,_0x1b9385){return _0x5502a2>>_0x1b9385;},'CQaoq':function(_0x51d2fe,_0x3b307f){return _0x51d2fe-_0x3b307f;}},_0x4fe737=Buffer[_0x243ba2(0x10f)](_0x1837ae,0xff);return _0x4fe737[0x0]=_0x2d1b6d[_0x243ba2(0xda)](0xff,_0x2d1b6d[_0x243ba2(0x10c)](_0x1837ae,0x1)),_0x4fe737;}function uintSize(_0x41f0f3){const _0x513ae2=_0x140a,_0x1720b3={'SPzZl':function(_0x4d576b,_0x2f9e32){return _0x4d576b===_0x2f9e32;},'bAsph':function(_0x13acf2,_0x1f2b31){return _0x13acf2/_0x1f2b31;}};if(_0x1720b3[_0x513ae2(0xd3)](_0x41f0f3,0x0))return 0x1;let _0x5b5a40=0x0,_0x2e0e01=_0x41f0f3;while(_0x2e0e01>0x0){_0x5b5a40++,_0x2e0e01=Math[_0x513ae2(0x104)](_0x1720b3['bAsph'](_0x2e0e01,0x100));}return _0x5b5a40;}function findTimestampScale(_0x5d25c7,_0x5d0a42){const _0x4a5059=_0x140a,_0x31e45e={'yTqpK':function(_0x18ecf0,_0x170501){return _0x18ecf0<_0x170501;},'NTzou':function(_0x2227e7,_0x52e9f1){return _0x2227e7===_0x52e9f1;},'eMJQO':function(_0x38fe67,_0x1212b4){return _0x38fe67+_0x1212b4;},'fsJpo':function(_0x10852a,_0xa5ded2){return _0x10852a+_0xa5ded2;},'HNBHT':function(_0x12621d,_0x58f7db,_0x2536ac){return _0x12621d(_0x58f7db,_0x2536ac);},'Cmfno':function(_0x4f4951,_0x3ceb47){return _0x4f4951+_0x3ceb47;}};let _0x997226=_0x5d0a42;const _0x2fa7da=Math['min'](_0x5d25c7['length'],_0x5d0a42+0x2710);while(_0x31e45e['yTqpK'](_0x997226,_0x2fa7da)){const [_0x118e24,_0x68380e]=readId(_0x5d25c7,_0x997226),[_0x7e3abe,_0x30f134]=readVint(_0x5d25c7,_0x997226+_0x68380e);if(_0x31e45e[_0x4a5059(0xfd)](_0x118e24,ID_INFO)){let _0x427e50=_0x31e45e[_0x4a5059(0xdb)](_0x31e45e['fsJpo'](_0x997226,_0x68380e),_0x30f134);const _0x5c6760=_0x31e45e[_0x4a5059(0xfe)](_0x427e50,_0x7e3abe);while(_0x427e50<_0x5c6760){const [_0x301fb9,_0x176dd0]=_0x31e45e[_0x4a5059(0x114)](readId,_0x5d25c7,_0x427e50),[_0x12e104,_0x5effeb]=readVint(_0x5d25c7,_0x427e50+_0x176dd0);if(_0x301fb9===ID_TIMESTAMP_SCALE)return readUint(_0x5d25c7,_0x31e45e[_0x4a5059(0xdb)](_0x31e45e['fsJpo'](_0x427e50,_0x176dd0),_0x5effeb),_0x12e104);_0x427e50+=_0x31e45e['Cmfno'](_0x31e45e[_0x4a5059(0xdb)](_0x176dd0,_0x5effeb),_0x12e104);}break;}if(_0x31e45e['NTzou'](_0x118e24,ID_CLUSTER))break;if(isUnknownSize(_0x7e3abe,_0x30f134))break;_0x997226+=_0x31e45e[_0x4a5059(0xff)](_0x68380e+_0x30f134,_0x7e3abe);}return 0xf4240;}function findFirstClusterOffset(_0x102a9f,_0x518cfd){const _0x454ae1=_0x140a,_0x2f6d6f={'klRSG':function(_0x1d4254,_0xe66b08){return _0x1d4254<_0xe66b08;},'EJvho':function(_0x17cf30,_0x3c97b8,_0x551767){return _0x17cf30(_0x3c97b8,_0x551767);},'aAesf':function(_0x37fafa,_0x5f5c83,_0xa3e6c7){return _0x37fafa(_0x5f5c83,_0xa3e6c7);},'tDhOt':function(_0x514011,_0x5be38c){return _0x514011+_0x5be38c;}};let _0x59755a=_0x518cfd;while(_0x2f6d6f[_0x454ae1(0xdf)](_0x59755a,_0x102a9f['length'])){const [_0x4fe4e9,_0xa7da9b]=_0x2f6d6f[_0x454ae1(0xd6)](readId,_0x102a9f,_0x59755a);if(_0x4fe4e9===ID_CLUSTER)return _0x59755a;const [_0x3566c9,_0x5573ad]=_0x2f6d6f['aAesf'](readVint,_0x102a9f,_0x59755a+_0xa7da9b);if(isUnknownSize(_0x3566c9,_0x5573ad))return _0x59755a;_0x59755a+=_0x2f6d6f['tDhOt'](_0xa7da9b,_0x5573ad)+_0x3566c9;}return _0x102a9f['length'];}function findClusterEnd(_0x25ae69,_0x30c8f0,_0x5970db,_0x5e2237){const _0x1c9f05=_0x140a,_0x57a1e0={'AaFDU':function(_0x22f227,_0x4673bf,_0x1f52f1){return _0x22f227(_0x4673bf,_0x1f52f1);},'GPQoe':function(_0x12a596,_0x5d89bc){return _0x12a596<_0x5d89bc;},'JUMfP':function(_0x492e5f,_0x35c29a){return _0x492e5f-_0x35c29a;},'odPgE':function(_0x3df4f4,_0x50b32a){return _0x3df4f4+_0x50b32a;}};if(!_0x57a1e0['AaFDU'](isUnknownSize,_0x5970db,_0x5e2237))return _0x30c8f0+_0x5970db;const _0xc22f8=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x2a6391=_0x30c8f0;while(_0x57a1e0['GPQoe'](_0x2a6391,_0x57a1e0[_0x1c9f05(0xd8)](_0x25ae69['length'],0x4))){const [_0x4da89f,_0x765dd0]=readId(_0x25ae69,_0x2a6391);if(_0xc22f8[_0x1c9f05(0xce)](_0x4da89f))return _0x2a6391;const [_0x1714b2,_0x2f8e24]=readVint(_0x25ae69,_0x2a6391+_0x765dd0);if(isUnknownSize(_0x1714b2,_0x2f8e24))return _0x25ae69[_0x1c9f05(0x107)];_0x2a6391+=_0x57a1e0[_0x1c9f05(0x109)](_0x765dd0+_0x2f8e24,_0x1714b2);}return _0x25ae69[_0x1c9f05(0x107)];}function extractClusters(_0x3d5182,_0x34fab8){const _0x21caad=_0x140a,_0x3fe301={'cMYps':function(_0x1d1c6f,_0xef5f48){return _0x1d1c6f<_0xef5f48;},'DqUyx':function(_0x16186a,_0x49641c){return _0x16186a===_0x49641c;},'AfXFU':function(_0x788a,_0x2017ce,_0x4daece){return _0x788a(_0x2017ce,_0x4daece);},'sHTKR':function(_0x247b7d,_0x1a763b){return _0x247b7d+_0x1a763b;},'Yjwlt':function(_0x5488f6,_0x3a3fa4){return _0x5488f6+_0x3a3fa4;},'hFFRA':function(_0x4f3dfe,_0x9fa831){return _0x4f3dfe+_0x9fa831;},'WNfZR':function(_0x860112,_0x3160ef){return _0x860112+_0x3160ef;},'fkuWT':function(_0x5b3070,_0x10169c){return _0x5b3070+_0x10169c;}},_0x396a11=[],_0x39fb3d=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x2aa4ac=0x0;while(_0x3fe301['cMYps'](_0x2aa4ac,_0x3d5182['length'])){const _0x570c11=_0x3d5182[_0x21caad(0xd0)](_0x39fb3d,_0x2aa4ac);if(_0x3fe301[_0x21caad(0xcc)](_0x570c11,-0x1))break;const [_0x2105f7,_0x4d7268]=readId(_0x3d5182,_0x570c11);if(_0x2105f7!==ID_CLUSTER){_0x2aa4ac=_0x570c11+0x1;continue;}const [_0x5bd3f3,_0x3eb5d2]=_0x3fe301[_0x21caad(0x10e)](readVint,_0x3d5182,_0x570c11+_0x4d7268),_0x1bc335=_0x570c11+_0x4d7268+_0x3eb5d2,_0x248b3f=findClusterEnd(_0x3d5182,_0x1bc335,_0x5bd3f3,_0x3eb5d2);let _0x106d5d=_0x1bc335,_0xef7c23=0x0,_0xe887d0=0x2,_0x250d7f=![],_0x23ba02=Buffer['alloc'](0x0),_0x180ce5=Buffer[_0x21caad(0x10f)](0x0);while(_0x3fe301['cMYps'](_0x106d5d,_0x248b3f)){const [_0xb942ac,_0x3c12b4]=readId(_0x3d5182,_0x106d5d),[_0x4032f2,_0x4bdd5a]=readVint(_0x3d5182,_0x106d5d+_0x3c12b4);if(_0xb942ac===ID_TIMESTAMP){_0xef7c23=readUint(_0x3d5182,_0x3fe301['sHTKR'](_0x106d5d+_0x3c12b4,_0x4bdd5a),_0x4032f2),_0xe887d0=_0x4032f2,_0x250d7f=!![],_0x23ba02=_0x3d5182[_0x21caad(0xf6)](_0x1bc335,_0x106d5d);const _0x13481c=_0x3fe301[_0x21caad(0xee)](_0x3fe301['Yjwlt'](_0x106d5d+_0x3c12b4,_0x4bdd5a),_0x4032f2);_0x180ce5=_0x3d5182['slice'](_0x13481c,_0x248b3f);break;}if(_0xb942ac===ID_CLUSTER)break;if(_0x3fe301['AfXFU'](isUnknownSize,_0x4032f2,_0x4bdd5a))break;_0x106d5d+=_0x3fe301['Yjwlt'](_0x3fe301['sHTKR'](_0x3c12b4,_0x4bdd5a),_0x4032f2);}!_0x250d7f&&(_0x180ce5=_0x3d5182[_0x21caad(0xf6)](_0x1bc335,_0x248b3f));let _0x1f62ca=_0xef7c23;_0x106d5d=_0x1bc335;while(_0x3fe301['cMYps'](_0x106d5d,_0x248b3f)){const [_0x5b1074,_0x17276c]=readId(_0x3d5182,_0x106d5d),[_0x6c34c9,_0x55937a]=readVint(_0x3d5182,_0x3fe301[_0x21caad(0xe7)](_0x106d5d,_0x17276c));if(_0x5b1074===ID_SIMPLE_BLOCK&&_0x6c34c9>=0x4){const _0x407e55=_0x3fe301['Yjwlt'](_0x3fe301['WNfZR'](_0x106d5d,_0x17276c),_0x55937a),[,_0x277e58]=readVint(_0x3d5182,_0x407e55),_0x290508=_0x3d5182[_0x21caad(0xeb)](_0x407e55+_0x277e58),_0x560cc7=_0xef7c23+_0x290508;if(_0x560cc7>_0x1f62ca)_0x1f62ca=_0x560cc7;}if(_0x3fe301['DqUyx'](_0x5b1074,ID_CLUSTER))break;if(isUnknownSize(_0x6c34c9,_0x55937a))break;_0x106d5d+=_0x3fe301[_0x21caad(0xef)](_0x3fe301['fkuWT'](_0x17276c,_0x55937a),_0x6c34c9);}_0x396a11['push']({'timestamp':_0xef7c23,'maxTicks':_0x1f62ca,'bodyBeforeTimestamp':_0x23ba02,'bodyAfterTimestamp':_0x180ce5,'timestampElementSize':_0xe887d0}),_0x2aa4ac=_0x248b3f;}return _0x396a11;}function parseWebm(_0x86291e){const _0x491522=_0x140a,_0x41fe76={'qSsSM':function(_0x5b894d,_0x46b2d3,_0x2cf384){return _0x5b894d(_0x46b2d3,_0x2cf384);},'UiWSp':function(_0x14a01d,_0x4598fc){return _0x14a01d+_0x4598fc;},'NEItQ':function(_0x5525aa,_0x2328ff,_0x2b89d3){return _0x5525aa(_0x2328ff,_0x2b89d3);},'cTPmC':function(_0x26c862,_0x389649,_0x35afa7){return _0x26c862(_0x389649,_0x35afa7);},'ZFDwb':function(_0x3c7a49,_0x2e359e){return _0x3c7a49>_0x2e359e;}};let _0x20c70b=0x0;const [,_0x4bb952]=readId(_0x86291e,_0x20c70b),[_0x16ad7a,_0x1b0c44]=_0x41fe76['qSsSM'](readVint,_0x86291e,_0x20c70b+_0x4bb952);_0x20c70b+=_0x41fe76[_0x491522(0xf9)](_0x4bb952+_0x1b0c44,_0x16ad7a);const [_0x54f332,_0x538bce]=readId(_0x86291e,_0x20c70b);if(_0x54f332!==ID_SEGMENT)return null;const [,_0xae5c00]=_0x41fe76['NEItQ'](readVint,_0x86291e,_0x41fe76[_0x491522(0xf9)](_0x20c70b,_0x538bce)),_0x5efc3f=_0x20c70b+_0x538bce+_0xae5c00,_0x328019=findTimestampScale(_0x86291e,_0x5efc3f),_0x408342=_0x41fe76[_0x491522(0xea)](findFirstClusterOffset,_0x86291e,_0x5efc3f),_0x254159=_0x86291e[_0x491522(0xf6)](0x0,_0x408342),_0x5998d3=extractClusters(_0x86291e,_0x328019);let _0x2dad02=0x0;for(const _0x49974a of _0x5998d3){if(_0x41fe76[_0x491522(0x110)](_0x49974a['maxTicks'],_0x2dad02))_0x2dad02=_0x49974a[_0x491522(0x112)];}return{'header':_0x254159,'clusters':_0x5998d3,'timestampScale':_0x328019,'maxTimestampTicks':_0x2dad02};}function _0x5426(){const _0x1bc6a4=['AQFpg','140YLPWoT','UiWSp','RrwQC','jThVx','VqeGZ','NTzou','fsJpo','Cmfno','pow','endsWith','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','stitchWebmFiles.js','floor','stitchWebmFiles.ts','KhFDl','length','1xJrXiT','odPgE','OYjxN','min','CQaoq','XoEJw','AfXFU','alloc','ZFDwb','elPdn','maxTicks','LiBgD','HNBHT','7380GGnWkK','bodyBeforeTimestamp','DqUyx','1933756zNqgMq','has','timestamp','indexOf','nWiJg','59525TFWqLX','SPzZl','124248BZbGpu','1085487HFjgyO','EJvho','250MSiuRC','JUMfP','wlWpk','FHijY','eMJQO','148498MDTOfM','6PSCpcq','argv','klRSG','header','maxTimestampTicks','156ZDCdAP','concat','LdRex','lgPaH','max','hFFRA','4yxhhue','pTPUF','cTPmC','readInt16BE','clusters','QpBKK','sHTKR','WNfZR','gmTjs','BtwPW','log','copy','824CUqroj','Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.','slice'];_0x5426=function(){return _0x1bc6a4;};return _0x5426();}function buildCluster(_0xb1d357,_0x17b4ef,_0x514809){const _0x5e2a62=_0x140a,_0x11076a={'LiBgD':function(_0x40a3f0,_0x1e4953,_0x57672c){return _0x40a3f0(_0x1e4953,_0x57672c);},'mTJrp':function(_0x20009d,_0x4c4bbd){return _0x20009d(_0x4c4bbd);}},_0x19e667=Buffer['from']([0x1f,0x43,0xb6,0x75]),_0x569b70=Math[_0x5e2a62(0xe6)](0x4,uintSize(_0xb1d357)),_0x4fa2a7=Buffer['concat']([Buffer['from']([ID_TIMESTAMP]),writeVint(_0x569b70),_0x11076a[_0x5e2a62(0x113)](writeUint,_0xb1d357,_0x569b70)]),_0x3d91c8=Buffer[_0x5e2a62(0xe3)]([_0x17b4ef,_0x4fa2a7,_0x514809]),_0x74c8ea=_0x11076a['mTJrp'](writeVint,_0x3d91c8['length']);return Buffer['concat']([_0x19e667,_0x74c8ea,_0x3d91c8]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x259913){const _0x4581e6=_0x140a,_0x194403={'XoEJw':function(_0x422dfb,_0x5eb786,_0x1e83dd){return _0x422dfb(_0x5eb786,_0x1e83dd);},'elPdn':function(_0x2c0d35,_0x2b13f8){return _0x2c0d35+_0x2b13f8;},'gmTjs':function(_0x8fb5a9,_0x304ddd,_0x4275ec){return _0x8fb5a9(_0x304ddd,_0x4275ec);},'KhFDl':function(_0x345dea,_0x5c9f8c){return _0x345dea+_0x5c9f8c;},'Ujvsq':function(_0x128e00,_0x33e11a){return _0x128e00(_0x33e11a);},'QvfJA':function(_0x19e9f2,_0x10e7ab){return _0x19e9f2+_0x10e7ab;},'wlWpk':function(_0xceb5fc,_0x14bf47){return _0xceb5fc===_0x14bf47;},'VqeGZ':function(_0x277bef,_0x3a6395){return _0x277bef+_0x3a6395;},'KhvxU':function(_0x53b8ab,_0x2990a2){return _0x53b8ab+_0x2990a2;}},_0x5e9557=Buffer['from'](_0x259913);let _0x490107=0x0;const [,_0x22ef53]=_0x194403[_0x4581e6(0x10d)](readId,_0x5e9557,_0x490107),[_0x5d0594,_0x20f826]=readVint(_0x5e9557,_0x490107+_0x22ef53),_0x4809c6=_0x194403['elPdn'](_0x194403['elPdn'](_0x490107,_0x22ef53),_0x20f826)+_0x5d0594,[,_0xd97e94]=_0x194403[_0x4581e6(0xf0)](readId,_0x5e9557,_0x4809c6),[,_0x264507]=readVint(_0x5e9557,_0x194403['KhFDl'](_0x4809c6,_0xd97e94)),_0x599f06=_0x4809c6+_0xd97e94+_0x264507,_0x166880=_0x194403['Ujvsq'](writeUnknownSizeVint,_0x264507);_0x166880[_0x4581e6(0xf3)](_0x5e9557,_0x4809c6+_0xd97e94);let _0x2416dc=_0x599f06;const _0x5c03f9=Math[_0x4581e6(0x10b)](_0x5e9557[_0x4581e6(0x107)],_0x194403[_0x4581e6(0x111)](_0x599f06,0x2710));while(_0x2416dc<_0x5c03f9){const [_0x13ed7a,_0x48287f]=_0x194403['gmTjs'](readId,_0x5e9557,_0x2416dc),[_0x2eb8d3,_0x16fe96]=readVint(_0x5e9557,_0x194403['QvfJA'](_0x2416dc,_0x48287f));if(_0x194403[_0x4581e6(0xd9)](_0x13ed7a,ID_CLUSTER))break;if(isUnknownSize(_0x2eb8d3,_0x16fe96))break;if(_0x13ed7a===ID_INFO){const _0xa9add9=_0x194403[_0x4581e6(0x106)](_0x2416dc,_0x48287f)+_0x16fe96,_0x43057c=_0xa9add9+_0x2eb8d3,_0x3d3ff6=[];let _0x3463dd=_0xa9add9;while(_0x3463dd<_0x43057c){const [_0x1f3261,_0x306220]=_0x194403[_0x4581e6(0xf0)](readId,_0x5e9557,_0x3463dd),[_0x1a2030,_0x2c9e6f]=readVint(_0x5e9557,_0x3463dd+_0x306220),_0x5b5713=_0x306220+_0x2c9e6f+_0x1a2030;_0x1f3261!==ID_DURATION&&_0x3d3ff6['push'](_0x5e9557[_0x4581e6(0xf6)](_0x3463dd,_0x194403[_0x4581e6(0xfc)](_0x3463dd,_0x5b5713))),_0x3463dd+=_0x5b5713;}const _0x4160f9=Buffer[_0x4581e6(0xe3)](_0x3d3ff6),_0x51526a=Buffer[_0x4581e6(0xe3)]([_0x5e9557[_0x4581e6(0xf6)](_0x2416dc,_0x2416dc+_0x48287f),writeVint(_0x4160f9['length'],_0x16fe96)]);return Buffer['concat']([_0x5e9557[_0x4581e6(0xf6)](0x0,_0x2416dc),_0x51526a,_0x4160f9,_0x5e9557['slice'](_0x43057c)]);}_0x2416dc+=_0x194403['KhvxU'](_0x194403[_0x4581e6(0xfc)](_0x48287f,_0x16fe96),_0x2eb8d3);}return _0x5e9557;}export function stitchWebmFiles(_0x13efe8,_0x42fd7d){const _0x2e0f97=_0x140a,_0x22c454={'QpBKK':function(_0x10d961,_0x34867c){return _0x10d961(_0x34867c);},'ZEjWb':function(_0x1f995a,_0x159f88){return _0x1f995a+_0x159f88;},'zfoNT':function(_0x5d938b,_0x1b6804,_0x3036ed,_0x30e258){return _0x5d938b(_0x1b6804,_0x3036ed,_0x30e258);}};if(_0x13efe8[_0x2e0f97(0x107)]<=0x1)return![];const _0x3f15ac=[];for(const _0x1c6d92 of _0x13efe8){const _0x16612f=readFileSync(_0x1c6d92),_0x30a745=parseWebm(_0x16612f);if(!_0x30a745||_0x30a745[_0x2e0f97(0xec)]['length']===0x0)return![];_0x3f15ac['push'](_0x30a745);}const _0x3a5e07=_0x3f15ac[0x0],_0x26423d=_0x22c454[_0x2e0f97(0xed)](rebuildHeaderWithoutDuration,_0x3a5e07[_0x2e0f97(0xe0)]),_0x549e1c=[_0x26423d];let _0x37fe52=0x0;for(let _0x114b53=0x0;_0x114b53<_0x3f15ac['length'];_0x114b53++){const _0x34ada7=_0x3f15ac[_0x114b53];for(const _0x22854b of _0x34ada7[_0x2e0f97(0xec)]){const _0x15af23=_0x22c454['ZEjWb'](_0x22854b[_0x2e0f97(0xcf)],_0x37fe52);_0x549e1c['push'](_0x22c454['zfoNT'](buildCluster,_0x15af23,_0x22854b[_0x2e0f97(0x116)],_0x22854b['bodyAfterTimestamp']));}const _0x5ec15a=0x1e;_0x37fe52+=_0x34ada7[_0x2e0f97(0xe1)]+_0x5ec15a;}return writeFileSync(_0x42fd7d,Buffer['concat'](_0x549e1c)),!![];}if(process['argv'][0x1]?.[_0x4d14b1(0x101)](_0x4d14b1(0x105))||process[_0x4d14b1(0xde)][0x1]?.['endsWith'](_0x4d14b1(0x103))){const args=process['argv'][_0x4d14b1(0xf6)](0x2);args[_0x4d14b1(0x107)]<0x3&&(console['error'](_0x4d14b1(0x102)),process['exit'](0x1));const output=args[args[_0x4d14b1(0x107)]-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x4d14b1(0xf2)]('Stitched\x20'+inputs['length']+'\x20files\x20->\x20'+output):console[_0x4d14b1(0xf2)](_0x4d14b1(0xf5));}
1
+ function _0x19d0(_0xd60711,_0x272f97){_0xd60711=_0xd60711-0xd5;const _0x67126f=_0x6712();let _0x19d090=_0x67126f[_0xd60711];return _0x19d090;}const _0x5b2481=_0x19d0;(function(_0x233c88,_0x5c1ec4){const _0x3bbbc9=_0x19d0,_0x67e671=_0x233c88();while(!![]){try{const _0xa3ccf1=-parseInt(_0x3bbbc9(0x101))/0x1+parseInt(_0x3bbbc9(0x10f))/0x2*(parseInt(_0x3bbbc9(0x10d))/0x3)+-parseInt(_0x3bbbc9(0x117))/0x4+-parseInt(_0x3bbbc9(0xd7))/0x5+parseInt(_0x3bbbc9(0xe1))/0x6+-parseInt(_0x3bbbc9(0x113))/0x7+parseInt(_0x3bbbc9(0x10a))/0x8*(parseInt(_0x3bbbc9(0x11e))/0x9);if(_0xa3ccf1===_0x5c1ec4)break;else _0x67e671['push'](_0x67e671['shift']());}catch(_0x55ed1c){_0x67e671['push'](_0x67e671['shift']());}}}(_0x6712,0x51e73));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(_0x352831,_0x583d65){const _0x4f8074=_0x19d0,_0x582688={'NoPfs':function(_0x1fc7dd,_0x5a39c0){return _0x1fc7dd>=_0x5a39c0;},'tRrfA':function(_0x20e11d,_0xa92346){return _0x20e11d<=_0xa92346;},'ZDfYd':function(_0x5b4259,_0x9c4061){return _0x5b4259+_0x9c4061;}};if(_0x582688[_0x4f8074(0xdc)](_0x583d65,_0x352831[_0x4f8074(0x110)]))return[0x0,0x0];const _0x3b318a=_0x352831[_0x583d65];let _0x456b77=0x1,_0x3f8581=0x80;while(_0x582688[_0x4f8074(0x107)](_0x456b77,0x8)&&!(_0x3b318a&_0x3f8581)){_0x456b77++,_0x3f8581>>=0x1;}if(_0x582688['ZDfYd'](_0x583d65,_0x456b77)>_0x352831['length'])return[0x0,0x0];let _0x36aa88=_0x3b318a&_0x3f8581-0x1;for(let _0x45df18=0x1;_0x45df18<_0x456b77;_0x45df18++){_0x36aa88=_0x582688['ZDfYd'](_0x36aa88*0x100,_0x352831[_0x583d65+_0x45df18]);}return[_0x36aa88,_0x456b77];}function readId(_0xb8d9dd,_0x3dee9f){const _0x5bac91=_0x19d0,_0x1bf61e={'munNK':function(_0x26948e,_0x4dc995){return _0x26948e>=_0x4dc995;},'EXfXB':function(_0x4fc6e9,_0x407d97){return _0x4fc6e9+_0x407d97;}};if(_0x3dee9f>=_0xb8d9dd[_0x5bac91(0x110)])return[0x0,0x0];const _0x31a68f=_0xb8d9dd[_0x3dee9f];let _0x5e1745;if(_0x1bf61e[_0x5bac91(0xde)](_0x31a68f,0x80))_0x5e1745=0x1;else{if(_0x31a68f>=0x40)_0x5e1745=0x2;else{if(_0x31a68f>=0x20)_0x5e1745=0x3;else{if(_0x31a68f>=0x10)_0x5e1745=0x4;else return[_0x31a68f,0x1];}}}if(_0x3dee9f+_0x5e1745>_0xb8d9dd[_0x5bac91(0x110)])return[0x0,0x0];let _0x1ae997=0x0;for(let _0x371fb0=0x0;_0x371fb0<_0x5e1745;_0x371fb0++){_0x1ae997=_0x1ae997*0x100+_0xb8d9dd[_0x1bf61e[_0x5bac91(0xf6)](_0x3dee9f,_0x371fb0)];}return[_0x1ae997,_0x5e1745];}function readUint(_0x22ba89,_0x35c8e5,_0x1950b7){const _0x20eeca=_0x19d0,_0x5c6fd5={'QDBDE':function(_0x1e83e5,_0x5a29f3){return _0x1e83e5<_0x5a29f3;},'tMOmq':function(_0x304cc0,_0x3de451){return _0x304cc0*_0x3de451;}};let _0x2eb1d0=0x0;for(let _0x1ba89a=0x0;_0x5c6fd5['QDBDE'](_0x1ba89a,_0x1950b7);_0x1ba89a++){_0x2eb1d0=_0x5c6fd5[_0x20eeca(0xf7)](_0x2eb1d0,0x100)+_0x22ba89[_0x35c8e5+_0x1ba89a];}return _0x2eb1d0;}function isUnknownSize(_0x2df414,_0x175300){const _0x5cc76e=_0x19d0,_0x3fcaa3={'abEsD':function(_0x4ab7e5,_0xb629e4){return _0x4ab7e5===_0xb629e4;},'iITMa':function(_0x2c76c6,_0x23116d){return _0x2c76c6*_0x23116d;}};return _0x3fcaa3['abEsD'](_0x2df414,Math[_0x5cc76e(0x106)](0x2,_0x3fcaa3['iITMa'](0x7,_0x175300))-0x1);}function writeVint(_0x59bf84,_0x48250b){const _0x2f0e57=_0x19d0,_0x5e0397={'nZzjk':function(_0x15b6be,_0x1974f0){return _0x15b6be-_0x1974f0;},'jjdQT':function(_0x45a417,_0x26e785){return _0x45a417<<_0x26e785;}};let _0x2fc879=_0x48250b||0x1;while(_0x5e0397['nZzjk'](Math['pow'](0x2,0x7*_0x2fc879),0x2)<_0x59bf84)_0x2fc879++;const _0x573cb8=Buffer['alloc'](_0x2fc879);for(let _0xd9d30d=_0x2fc879-0x1;_0xd9d30d>=0x0;_0xd9d30d--){_0x573cb8[_0xd9d30d]=_0x59bf84&0xff,_0x59bf84=Math[_0x2f0e57(0xf3)](_0x59bf84/0x100);}return _0x573cb8[0x0]|=_0x5e0397['jjdQT'](0x1,0x8-_0x2fc879),_0x573cb8;}function writeUint(_0x105184,_0x13cefd){const _0x251b6c=_0x19d0,_0x134ee5={'jNZnd':function(_0x35df4b,_0x5769ca){return _0x35df4b-_0x5769ca;},'XSJga':function(_0x2347ed,_0x316313){return _0x2347ed>=_0x316313;},'aMDmZ':function(_0x332cce,_0x5c233f){return _0x332cce/_0x5c233f;}},_0x159f0a=Buffer[_0x251b6c(0xd5)](_0x13cefd);for(let _0x1186d5=_0x134ee5[_0x251b6c(0xec)](_0x13cefd,0x1);_0x134ee5[_0x251b6c(0xf1)](_0x1186d5,0x0);_0x1186d5--){_0x159f0a[_0x1186d5]=_0x105184&0xff,_0x105184=Math[_0x251b6c(0xf3)](_0x134ee5[_0x251b6c(0x11d)](_0x105184,0x100));}return _0x159f0a;}function writeUnknownSizeVint(_0x324752){const _0x5a4c2b={'gEZch':function(_0x3c5aed,_0x1dad49){return _0x3c5aed>>_0x1dad49;}},_0x15ef63=Buffer['alloc'](_0x324752,0xff);return _0x15ef63[0x0]=_0x5a4c2b['gEZch'](0xff,_0x324752-0x1),_0x15ef63;}function uintSize(_0x121fd5){const _0x18a669=_0x19d0,_0x43a41b={'lXdnG':function(_0x26952,_0x3d10f7){return _0x26952/_0x3d10f7;}};if(_0x121fd5===0x0)return 0x1;let _0x13fe96=0x0,_0x17f465=_0x121fd5;while(_0x17f465>0x0){_0x13fe96++,_0x17f465=Math['floor'](_0x43a41b[_0x18a669(0xf2)](_0x17f465,0x100));}return _0x13fe96;}function findTimestampScale(_0x1aa60d,_0xdef368){const _0xee4764=_0x19d0,_0x1cdf61={'yEUjz':function(_0x542c43,_0x2f394b){return _0x542c43+_0x2f394b;},'gMgOa':function(_0x381911,_0x5acae9){return _0x381911<_0x5acae9;},'EZXxK':function(_0xad7981,_0x36d83e,_0x5daf12){return _0xad7981(_0x36d83e,_0x5daf12);},'yQMnD':function(_0xb52feb,_0x572df7){return _0xb52feb+_0x572df7;},'FbabG':function(_0x3cfedf,_0x16041f,_0x4ad298){return _0x3cfedf(_0x16041f,_0x4ad298);},'klbLU':function(_0x5b1804,_0x8c53b0,_0x447e03){return _0x5b1804(_0x8c53b0,_0x447e03);},'odMdt':function(_0x425535,_0x1b02c6,_0x595bf1,_0x665c4f){return _0x425535(_0x1b02c6,_0x595bf1,_0x665c4f);},'wEkZH':function(_0x2043be,_0x272d2c,_0x5e7507){return _0x2043be(_0x272d2c,_0x5e7507);}};let _0xf0fd73=_0xdef368;const _0x2c97b5=Math[_0xee4764(0xe4)](_0x1aa60d['length'],_0x1cdf61['yEUjz'](_0xdef368,0x2710));while(_0x1cdf61[_0xee4764(0xeb)](_0xf0fd73,_0x2c97b5)){const [_0x12ad57,_0xfbf3fa]=readId(_0x1aa60d,_0xf0fd73),[_0x18f7f5,_0x5bb603]=_0x1cdf61['EZXxK'](readVint,_0x1aa60d,_0xf0fd73+_0xfbf3fa);if(_0x12ad57===ID_INFO){let _0x2c7255=_0x1cdf61['yQMnD'](_0x1cdf61[_0xee4764(0xda)](_0xf0fd73,_0xfbf3fa),_0x5bb603);const _0x11fb87=_0x2c7255+_0x18f7f5;while(_0x1cdf61[_0xee4764(0xeb)](_0x2c7255,_0x11fb87)){const [_0x22ce91,_0xe3abd7]=_0x1cdf61[_0xee4764(0x102)](readId,_0x1aa60d,_0x2c7255),[_0x3ba337,_0x3c268a]=_0x1cdf61['klbLU'](readVint,_0x1aa60d,_0x2c7255+_0xe3abd7);if(_0x22ce91===ID_TIMESTAMP_SCALE)return _0x1cdf61['odMdt'](readUint,_0x1aa60d,_0x2c7255+_0xe3abd7+_0x3c268a,_0x3ba337);_0x2c7255+=_0xe3abd7+_0x3c268a+_0x3ba337;}break;}if(_0x12ad57===ID_CLUSTER)break;if(_0x1cdf61['wEkZH'](isUnknownSize,_0x18f7f5,_0x5bb603))break;_0xf0fd73+=_0x1cdf61[_0xee4764(0x11c)](_0xfbf3fa,_0x5bb603)+_0x18f7f5;}return 0xf4240;}function findFirstClusterOffset(_0x574bbf,_0x4fc2fd){const _0x48fa66=_0x19d0,_0x52b5cd={'aApLT':function(_0x44a269,_0x1ff6b9){return _0x44a269<_0x1ff6b9;},'XCTqT':function(_0x321469,_0x313206){return _0x321469===_0x313206;},'QXULi':function(_0x411ef2,_0x368922,_0x4b61d6){return _0x411ef2(_0x368922,_0x4b61d6);},'KhdPR':function(_0x567736,_0x32647d){return _0x567736+_0x32647d;},'sQtyP':function(_0x137135,_0x4cda90,_0xc3b6d8){return _0x137135(_0x4cda90,_0xc3b6d8);}};let _0xb7eb4b=_0x4fc2fd;while(_0x52b5cd['aApLT'](_0xb7eb4b,_0x574bbf['length'])){const [_0x580d86,_0x1c5685]=readId(_0x574bbf,_0xb7eb4b);if(_0x52b5cd[_0x48fa66(0xe3)](_0x580d86,ID_CLUSTER))return _0xb7eb4b;const [_0x2665bb,_0xb64ecd]=_0x52b5cd['QXULi'](readVint,_0x574bbf,_0x52b5cd[_0x48fa66(0xfb)](_0xb7eb4b,_0x1c5685));if(_0x52b5cd['sQtyP'](isUnknownSize,_0x2665bb,_0xb64ecd))return _0xb7eb4b;_0xb7eb4b+=_0x1c5685+_0xb64ecd+_0x2665bb;}return _0x574bbf[_0x48fa66(0x110)];}function findClusterEnd(_0x4f43ec,_0x47279c,_0x9500ae,_0x46a520){const _0x2734b5=_0x19d0,_0x527af6={'vnbdV':function(_0x585e5d,_0x302485){return _0x585e5d+_0x302485;},'jfFOq':function(_0x5baad2,_0x47b460){return _0x5baad2-_0x47b460;},'ijbgw':function(_0x28a7e8,_0x2cea3,_0x4f6781){return _0x28a7e8(_0x2cea3,_0x4f6781);},'nPRnf':function(_0x35f4a9,_0x3fd861,_0x25cafb){return _0x35f4a9(_0x3fd861,_0x25cafb);}};if(!isUnknownSize(_0x9500ae,_0x46a520))return _0x527af6['vnbdV'](_0x47279c,_0x9500ae);const _0x2c732c=new Set([ID_CLUSTER,0x1c53bb6b,0x1254c367]);let _0x2cd4d9=_0x47279c;while(_0x2cd4d9<_0x527af6['jfFOq'](_0x4f43ec['length'],0x4)){const [_0x8968cb,_0x4eba13]=_0x527af6[_0x2734b5(0xea)](readId,_0x4f43ec,_0x2cd4d9);if(_0x2c732c[_0x2734b5(0xf5)](_0x8968cb))return _0x2cd4d9;const [_0x56ad0b,_0x48accb]=_0x527af6[_0x2734b5(0xea)](readVint,_0x4f43ec,_0x2cd4d9+_0x4eba13);if(_0x527af6[_0x2734b5(0xf4)](isUnknownSize,_0x56ad0b,_0x48accb))return _0x4f43ec[_0x2734b5(0x110)];_0x2cd4d9+=_0x527af6['vnbdV'](_0x4eba13+_0x48accb,_0x56ad0b);}return _0x4f43ec['length'];}function _0x6712(){const _0xca736b=['stitchWebmFiles.js','pow','tRrfA','\x20files\x20->\x20','wpRQh','3632SpQOtD','icSTP','IPXIm','747zKyQeb','slice','752eJhkBK','length','from','concat','4583040VzkZsl','rJmZu','aqEYQ','error','2566856AnRoQR','clusters','argv','vbWVy','endsWith','yEUjz','aMDmZ','32463ReAIUN','alloc','bodyAfterTimestamp','1744060PiEQny','push','YVUdA','yQMnD','PFfLl','NoPfs','header','munNK','readInt16BE','Usage:\x20stitchWebmFiles\x20<input1.webm>\x20<input2.webm>\x20[...]\x20<output.webm>','3452502jUNkcR','FrrDp','XCTqT','min','PwTFC','nSsNV','ylEgx','lNioB','maxTicks','ijbgw','gMgOa','jNZnd','ojTvd','BqnBM','dUaSX','dxxOo','XSJga','lXdnG','floor','nPRnf','has','EXfXB','tMOmq','DfHgW','ODWpi','nvabm','KhdPR','SpsKT','erIsM','TrUqY','pUONW','JvHpc','325898MiQPVE','FbabG','exit','log'];_0x6712=function(){return _0xca736b;};return _0x6712();}function extractClusters(_0x17806a,_0x5352ff){const _0x215979=_0x19d0,_0x55cf59={'nvabm':function(_0x102a67,_0x3f957e){return _0x102a67+_0x3f957e;},'pUONW':function(_0x574625,_0x481e11,_0x12582d){return _0x574625(_0x481e11,_0x12582d);},'SpsKT':function(_0x204086,_0x5e6a55,_0x1ee983,_0x324d5f){return _0x204086(_0x5e6a55,_0x1ee983,_0x324d5f);},'vbWVy':function(_0x24ba53,_0x6505c7){return _0x24ba53+_0x6505c7;},'SHjDg':function(_0x28635e,_0x2d27e7){return _0x28635e+_0x2d27e7;},'lNioB':function(_0x3305e4,_0x10b2e5){return _0x3305e4+_0x10b2e5;},'sCKqO':function(_0x4dd2d6,_0x252a2b,_0x4fe65e){return _0x4dd2d6(_0x252a2b,_0x4fe65e);},'JbkAa':function(_0x5ebf42,_0x377a28){return _0x5ebf42+_0x377a28;},'iwoYs':function(_0x4c0e3d,_0xff38db){return _0x4c0e3d<_0xff38db;},'ylEgx':function(_0x171870,_0x4f062c,_0xfc8890){return _0x171870(_0x4f062c,_0xfc8890);},'FrrDp':function(_0x69c098,_0x12b6ef){return _0x69c098===_0x12b6ef;},'jbXav':function(_0x22b713,_0x2a84e2){return _0x22b713>=_0x2a84e2;},'YVfob':function(_0x1ed368,_0x48f027){return _0x1ed368+_0x48f027;},'IPXIm':function(_0x4010a3,_0x227a5d){return _0x4010a3>_0x227a5d;},'YVUdA':function(_0x4fe171,_0x105e17){return _0x4fe171===_0x105e17;},'fxJyG':function(_0x2a0e98,_0x1b68d1){return _0x2a0e98+_0x1b68d1;}},_0x1c0918=[],_0x4ea64e=Buffer[_0x215979(0x111)]([0x1f,0x43,0xb6,0x75]);let _0x4c29ee=0x0;while(_0x4c29ee<_0x17806a['length']){const _0x3deb37=_0x17806a['indexOf'](_0x4ea64e,_0x4c29ee);if(_0x3deb37===-0x1)break;const [_0x18790a,_0x3d5cc6]=readId(_0x17806a,_0x3deb37);if(_0x18790a!==ID_CLUSTER){_0x4c29ee=_0x55cf59['nvabm'](_0x3deb37,0x1);continue;}const [_0x22f19a,_0x27a747]=readVint(_0x17806a,_0x3deb37+_0x3d5cc6),_0x43db94=_0x55cf59[_0x215979(0xfa)](_0x3deb37+_0x3d5cc6,_0x27a747),_0x5c9274=findClusterEnd(_0x17806a,_0x43db94,_0x22f19a,_0x27a747);let _0x59272c=_0x43db94,_0x48bb70=0x0,_0x4bcf7d=0x2,_0x3fcb23=![],_0xed8ca4=Buffer['alloc'](0x0),_0x15fbdb=Buffer['alloc'](0x0);while(_0x59272c<_0x5c9274){const [_0x28fb2c,_0x2360da]=_0x55cf59[_0x215979(0xff)](readId,_0x17806a,_0x59272c),[_0xbf3e94,_0x6c9d4d]=readVint(_0x17806a,_0x55cf59['nvabm'](_0x59272c,_0x2360da));if(_0x28fb2c===ID_TIMESTAMP){_0x48bb70=_0x55cf59[_0x215979(0xfc)](readUint,_0x17806a,_0x55cf59[_0x215979(0x11a)](_0x59272c,_0x2360da)+_0x6c9d4d,_0xbf3e94),_0x4bcf7d=_0xbf3e94,_0x3fcb23=!![],_0xed8ca4=_0x17806a['slice'](_0x43db94,_0x59272c);const _0x217ae7=_0x55cf59['SHjDg'](_0x55cf59[_0x215979(0xe8)](_0x59272c+_0x2360da,_0x6c9d4d),_0xbf3e94);_0x15fbdb=_0x17806a['slice'](_0x217ae7,_0x5c9274);break;}if(_0x28fb2c===ID_CLUSTER)break;if(_0x55cf59['sCKqO'](isUnknownSize,_0xbf3e94,_0x6c9d4d))break;_0x59272c+=_0x55cf59['JbkAa'](_0x2360da+_0x6c9d4d,_0xbf3e94);}!_0x3fcb23&&(_0x15fbdb=_0x17806a['slice'](_0x43db94,_0x5c9274));let _0x3cea63=_0x48bb70;_0x59272c=_0x43db94;while(_0x55cf59['iwoYs'](_0x59272c,_0x5c9274)){const [_0x11cca6,_0x2135cd]=_0x55cf59[_0x215979(0xe7)](readId,_0x17806a,_0x59272c),[_0x37bbfb,_0x28de73]=readVint(_0x17806a,_0x59272c+_0x2135cd);if(_0x55cf59[_0x215979(0xe2)](_0x11cca6,ID_SIMPLE_BLOCK)&&_0x55cf59['jbXav'](_0x37bbfb,0x4)){const _0x442ceb=_0x55cf59['vbWVy'](_0x59272c,_0x2135cd)+_0x28de73,[,_0x2e655]=_0x55cf59['pUONW'](readVint,_0x17806a,_0x442ceb),_0x8c0d74=_0x17806a[_0x215979(0xdf)](_0x442ceb+_0x2e655),_0x22068b=_0x55cf59['YVfob'](_0x48bb70,_0x8c0d74);if(_0x55cf59[_0x215979(0x10c)](_0x22068b,_0x3cea63))_0x3cea63=_0x22068b;}if(_0x55cf59[_0x215979(0xd9)](_0x11cca6,ID_CLUSTER))break;if(isUnknownSize(_0x37bbfb,_0x28de73))break;_0x59272c+=_0x55cf59['fxJyG'](_0x2135cd+_0x28de73,_0x37bbfb);}_0x1c0918[_0x215979(0xd8)]({'timestamp':_0x48bb70,'maxTicks':_0x3cea63,'bodyBeforeTimestamp':_0xed8ca4,'bodyAfterTimestamp':_0x15fbdb,'timestampElementSize':_0x4bcf7d}),_0x4c29ee=_0x5c9274;}return _0x1c0918;}function parseWebm(_0x449110){const _0x12cedf=_0x19d0,_0x3b36aa={'WhQMy':function(_0x195ff5,_0x5916e9,_0x1d20f5){return _0x195ff5(_0x5916e9,_0x1d20f5);},'PwTFC':function(_0x565e92,_0x34e2c5){return _0x565e92+_0x34e2c5;},'jECVT':function(_0x1ff209,_0x270a00){return _0x1ff209!==_0x270a00;},'DfHgW':function(_0x1ad737,_0x15e2b2){return _0x1ad737+_0x15e2b2;},'hgJXN':function(_0x4861ae,_0x3ce3cb,_0x586588){return _0x4861ae(_0x3ce3cb,_0x586588);}};let _0xa35bde=0x0;const [,_0x23af89]=_0x3b36aa['WhQMy'](readId,_0x449110,_0xa35bde),[_0x235fa9,_0x5ae712]=readVint(_0x449110,_0xa35bde+_0x23af89);_0xa35bde+=_0x3b36aa[_0x12cedf(0xe5)](_0x23af89,_0x5ae712)+_0x235fa9;const [_0x55d8c2,_0x4a44d7]=_0x3b36aa['WhQMy'](readId,_0x449110,_0xa35bde);if(_0x3b36aa['jECVT'](_0x55d8c2,ID_SEGMENT))return null;const [,_0x484ee0]=readVint(_0x449110,_0xa35bde+_0x4a44d7),_0x10fc9e=_0x3b36aa[_0x12cedf(0xf8)](_0xa35bde,_0x4a44d7)+_0x484ee0,_0x59041d=_0x3b36aa['hgJXN'](findTimestampScale,_0x449110,_0x10fc9e),_0x364f78=findFirstClusterOffset(_0x449110,_0x10fc9e),_0x3a13f6=_0x449110[_0x12cedf(0x10e)](0x0,_0x364f78),_0x3c0011=extractClusters(_0x449110,_0x59041d);let _0x35ebf2=0x0;for(const _0x1b0ed9 of _0x3c0011){if(_0x1b0ed9[_0x12cedf(0xe9)]>_0x35ebf2)_0x35ebf2=_0x1b0ed9[_0x12cedf(0xe9)];}return{'header':_0x3a13f6,'clusters':_0x3c0011,'timestampScale':_0x59041d,'maxTimestampTicks':_0x35ebf2};}function buildCluster(_0x5a361e,_0x2f3be8,_0x28e335){const _0x4d4a57=_0x19d0,_0x2ad0b7={'TrUqY':function(_0x9930c1,_0x7a8086){return _0x9930c1(_0x7a8086);},'OKruR':function(_0x57cdff,_0x483907,_0x2105db){return _0x57cdff(_0x483907,_0x2105db);}},_0x5ef1b8=Buffer[_0x4d4a57(0x111)]([0x1f,0x43,0xb6,0x75]),_0xf55e06=Math['max'](0x4,_0x2ad0b7[_0x4d4a57(0xfe)](uintSize,_0x5a361e)),_0x484e52=Buffer['concat']([Buffer[_0x4d4a57(0x111)]([ID_TIMESTAMP]),writeVint(_0xf55e06),_0x2ad0b7['OKruR'](writeUint,_0x5a361e,_0xf55e06)]),_0x3bbf34=Buffer[_0x4d4a57(0x112)]([_0x2f3be8,_0x484e52,_0x28e335]),_0x983958=writeVint(_0x3bbf34[_0x4d4a57(0x110)]);return Buffer['concat']([_0x5ef1b8,_0x983958,_0x3bbf34]);}const ID_DURATION=0x4489;function rebuildHeaderWithoutDuration(_0x35c411){const _0x1a82e8=_0x19d0,_0x14b006={'erIsM':function(_0xe202d6,_0x5b831b,_0x4269fd){return _0xe202d6(_0x5b831b,_0x4269fd);},'bueFp':function(_0x240f23,_0x350986,_0x1af37b){return _0x240f23(_0x350986,_0x1af37b);},'rJmZu':function(_0x1b82c5,_0x1735cb){return _0x1b82c5+_0x1735cb;},'PFfLl':function(_0x17584e,_0x2eb712){return _0x17584e+_0x2eb712;},'ODWpi':function(_0x4aa2ac,_0x155680){return _0x4aa2ac+_0x155680;},'ojTvd':function(_0x9ac159,_0x45a610,_0x4b8bbd){return _0x9ac159(_0x45a610,_0x4b8bbd);},'gSjUn':function(_0x304ddb,_0x30316c){return _0x304ddb===_0x30316c;},'icSTP':function(_0x2a05a1,_0x47eaa3,_0xc882d3){return _0x2a05a1(_0x47eaa3,_0xc882d3);},'JvHpc':function(_0x50ecda,_0x5a2b41){return _0x50ecda<_0x5a2b41;},'dUaSX':function(_0x4b4ec0,_0x1858c4,_0x261c96){return _0x4b4ec0(_0x1858c4,_0x261c96);},'aqEYQ':function(_0x4bb9af,_0x988d5c){return _0x4bb9af+_0x988d5c;},'BqnBM':function(_0x206be9,_0x2675fb){return _0x206be9!==_0x2675fb;},'SsYgG':function(_0x55b09f,_0x1fdcdb,_0x59de38){return _0x55b09f(_0x1fdcdb,_0x59de38);},'gSfVD':function(_0x29d87b,_0x189bd1){return _0x29d87b+_0x189bd1;}},_0x29f54e=Buffer['from'](_0x35c411);let _0x257976=0x0;const [,_0x54bf65]=_0x14b006[_0x1a82e8(0xfd)](readId,_0x29f54e,_0x257976),[_0x1d0f7d,_0x390e4d]=_0x14b006['erIsM'](readVint,_0x29f54e,_0x257976+_0x54bf65),_0x37a97e=_0x257976+_0x54bf65+_0x390e4d+_0x1d0f7d,[,_0x34f7de]=readId(_0x29f54e,_0x37a97e),[,_0x19e204]=_0x14b006['bueFp'](readVint,_0x29f54e,_0x14b006[_0x1a82e8(0x114)](_0x37a97e,_0x34f7de)),_0x58e36b=_0x14b006[_0x1a82e8(0xdb)](_0x37a97e+_0x34f7de,_0x19e204),_0x2ed7e1=writeUnknownSizeVint(_0x19e204);_0x2ed7e1['copy'](_0x29f54e,_0x14b006['ODWpi'](_0x37a97e,_0x34f7de));let _0x4b90d1=_0x58e36b;const _0x32c4d3=Math['min'](_0x29f54e[_0x1a82e8(0x110)],_0x58e36b+0x2710);while(_0x4b90d1<_0x32c4d3){const [_0x2eca8b,_0xabe68a]=_0x14b006[_0x1a82e8(0xed)](readId,_0x29f54e,_0x4b90d1),[_0x1a33a8,_0x74f821]=_0x14b006['ojTvd'](readVint,_0x29f54e,_0x14b006['ODWpi'](_0x4b90d1,_0xabe68a));if(_0x14b006['gSjUn'](_0x2eca8b,ID_CLUSTER))break;if(_0x14b006[_0x1a82e8(0x10b)](isUnknownSize,_0x1a33a8,_0x74f821))break;if(_0x2eca8b===ID_INFO){const _0x1eb20b=_0x4b90d1+_0xabe68a+_0x74f821,_0x598552=_0x14b006[_0x1a82e8(0xf9)](_0x1eb20b,_0x1a33a8),_0x5aa77c=[];let _0x1cfa2d=_0x1eb20b;while(_0x14b006[_0x1a82e8(0x100)](_0x1cfa2d,_0x598552)){const [_0x2dde91,_0x1a540d]=readId(_0x29f54e,_0x1cfa2d),[_0x4159c2,_0x3aba38]=_0x14b006[_0x1a82e8(0xef)](readVint,_0x29f54e,_0x14b006[_0x1a82e8(0xdb)](_0x1cfa2d,_0x1a540d)),_0x43a879=_0x14b006[_0x1a82e8(0x115)](_0x1a540d+_0x3aba38,_0x4159c2);_0x14b006[_0x1a82e8(0xee)](_0x2dde91,ID_DURATION)&&_0x5aa77c[_0x1a82e8(0xd8)](_0x29f54e[_0x1a82e8(0x10e)](_0x1cfa2d,_0x14b006['aqEYQ'](_0x1cfa2d,_0x43a879))),_0x1cfa2d+=_0x43a879;}const _0x2d0cbe=Buffer[_0x1a82e8(0x112)](_0x5aa77c),_0x45567f=Buffer['concat']([_0x29f54e['slice'](_0x4b90d1,_0x14b006[_0x1a82e8(0xf9)](_0x4b90d1,_0xabe68a)),_0x14b006['SsYgG'](writeVint,_0x2d0cbe[_0x1a82e8(0x110)],_0x74f821)]);return Buffer[_0x1a82e8(0x112)]([_0x29f54e[_0x1a82e8(0x10e)](0x0,_0x4b90d1),_0x45567f,_0x2d0cbe,_0x29f54e['slice'](_0x598552)]);}_0x4b90d1+=_0x14b006['PFfLl'](_0x14b006['gSfVD'](_0xabe68a,_0x74f821),_0x1a33a8);}return _0x29f54e;}export function stitchWebmFiles(_0x582b1d,_0x2894fb){const _0x14d50a=_0x19d0,_0x48fea2={'zFzop':function(_0x488666,_0x2ac4e8){return _0x488666<=_0x2ac4e8;},'dxxOo':function(_0x5d8109,_0x2776e2){return _0x5d8109(_0x2776e2);},'nSsNV':function(_0x83793d,_0x59f0a2){return _0x83793d===_0x59f0a2;},'iavxN':function(_0x130edb,_0xb60eb5){return _0x130edb<_0xb60eb5;},'TqHbR':function(_0xd1f7a6,_0x5dab7c){return _0xd1f7a6+_0x5dab7c;},'wpRQh':function(_0x242d4e,_0x3d7288,_0x2faa23,_0x1e7a27){return _0x242d4e(_0x3d7288,_0x2faa23,_0x1e7a27);}};if(_0x48fea2['zFzop'](_0x582b1d[_0x14d50a(0x110)],0x1))return![];const _0x579e55=[];for(const _0x29e881 of _0x582b1d){const _0x1d2ea1=readFileSync(_0x29e881),_0xde723c=_0x48fea2['dxxOo'](parseWebm,_0x1d2ea1);if(!_0xde723c||_0x48fea2[_0x14d50a(0xe6)](_0xde723c[_0x14d50a(0x118)]['length'],0x0))return![];_0x579e55[_0x14d50a(0xd8)](_0xde723c);}const _0x4dace7=_0x579e55[0x0],_0x1a212b=_0x48fea2[_0x14d50a(0xf0)](rebuildHeaderWithoutDuration,_0x4dace7[_0x14d50a(0xdd)]),_0xf4026d=[_0x1a212b];let _0x42a8d0=0x0;for(let _0x970457=0x0;_0x48fea2['iavxN'](_0x970457,_0x579e55['length']);_0x970457++){const _0x2e2603=_0x579e55[_0x970457];for(const _0x1ee9cc of _0x2e2603['clusters']){const _0x301ce5=_0x48fea2['TqHbR'](_0x1ee9cc['timestamp'],_0x42a8d0);_0xf4026d[_0x14d50a(0xd8)](_0x48fea2[_0x14d50a(0x109)](buildCluster,_0x301ce5,_0x1ee9cc['bodyBeforeTimestamp'],_0x1ee9cc[_0x14d50a(0xd6)]));}const _0x3063e2=0x1e;_0x42a8d0+=_0x2e2603['maxTimestampTicks']+_0x3063e2;}return writeFileSync(_0x2894fb,Buffer[_0x14d50a(0x112)](_0xf4026d)),!![];}if(process[_0x5b2481(0x119)][0x1]?.[_0x5b2481(0x11b)]('stitchWebmFiles.ts')||process[_0x5b2481(0x119)][0x1]?.['endsWith'](_0x5b2481(0x105))){const args=process['argv']['slice'](0x2);args['length']<0x3&&(console[_0x5b2481(0x116)](_0x5b2481(0xe0)),process[_0x5b2481(0x103)](0x1));const output=args[args[_0x5b2481(0x110)]-0x1],inputs=args['slice'](0x0,-0x1),ok=stitchWebmFiles(inputs,output);ok?console[_0x5b2481(0x104)]('Stitched\x20'+inputs[_0x5b2481(0x110)]+_0x5b2481(0x108)+output):console[_0x5b2481(0x104)]('Stitching\x20failed\x20or\x20only\x20one\x20input\x20file.');}
@@ -1 +1 @@
1
- const _0x4307e9=_0x33f4;(function(_0xff323f,_0x33ec3e){const _0x3a12e8=_0x33f4,_0x12c01b=_0xff323f();while(!![]){try{const _0x252972=-parseInt(_0x3a12e8(0x20b))/0x1*(parseInt(_0x3a12e8(0x215))/0x2)+parseInt(_0x3a12e8(0x1fc))/0x3+-parseInt(_0x3a12e8(0x21d))/0x4*(parseInt(_0x3a12e8(0x1fb))/0x5)+parseInt(_0x3a12e8(0x225))/0x6+parseInt(_0x3a12e8(0x20c))/0x7+parseInt(_0x3a12e8(0x22b))/0x8+-parseInt(_0x3a12e8(0x211))/0x9*(parseInt(_0x3a12e8(0x20a))/0xa);if(_0x252972===_0x33ec3e)break;else _0x12c01b['push'](_0x12c01b['shift']());}catch(_0x512c70){_0x12c01b['push'](_0x12c01b['shift']());}}}(_0x96bc,0x7032e));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 _0x5896ef=_0x33f4,_0x25a066={'xMulB':function(_0xb9b23e,_0x369c4c,_0x4df4b9){return _0xb9b23e(_0x369c4c,_0x4df4b9);},'GyPNu':_0x5896ef(0x201),'sXyHu':function(_0x43d596){return _0x43d596();}};if(cachedDeviceId)return cachedDeviceId;try{const _0x1f1e38=_0x25a066[_0x5896ef(0x223)](join,homedir(),_0x25a066['GyPNu']),_0x46a809=_0x25a066[_0x5896ef(0x223)](join,_0x1f1e38,'.session');if(existsSync(_0x46a809)){cachedDeviceId=readFileSync(_0x46a809,_0x5896ef(0x1ee))['trim']();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=_0x25a066[_0x5896ef(0x1f3)](randomUUID),_0x25a066['xMulB'](mkdirSync,_0x1f1e38,{'recursive':!![]}),writeFileSync(_0x46a809,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=randomUUID(),cachedDeviceId;}}export class TelemetryCollector{[_0x4307e9(0x220)]=[];[_0x4307e9(0x212)];['command'];[_0x4307e9(0x1f2)];['phaseCounter']=0x0;[_0x4307e9(0x1fe)]=new Map();['flushing']=null;[_0x4307e9(0x1f6)];['cliVersion'];['nodeVersion'];[_0x4307e9(0x213)];[_0x4307e9(0x1f0)];['isCI'];['featureId'];[_0x4307e9(0x209)];['browserSessionId'];['transport'];constructor(_0x3d747c){const _0xf6c92a=_0x4307e9,_0x13d75e={'bDBmu':'8|4|2|3|1|5|6|0|7','dshbX':function(_0x34d439){return _0x34d439();},'EdGXR':function(_0x28a8c7){return _0x28a8c7();}},_0x47db6d=_0x13d75e['bDBmu'][_0xf6c92a(0x1ea)]('|');let _0x413207=0x0;while(!![]){switch(_0x47db6d[_0x413207++]){case'0':this['isTty']=process['stdout']['isTTY']??![];continue;case'1':this[_0xf6c92a(0x218)]=getCurrentVersion();continue;case'2':this['commandStartTime']=Date['now']();continue;case'3':this['deviceId']=_0x13d75e[_0xf6c92a(0x227)](getDeviceId);continue;case'4':this['command']=_0x3d747c;continue;case'5':this['nodeVersion']=process[_0xf6c92a(0x20f)];continue;case'6':this[_0xf6c92a(0x213)]=process['platform'];continue;case'7':this['isCI']=!!(process[_0xf6c92a(0x1ed)]['CI']||process['env'][_0xf6c92a(0x21a)]);continue;case'8':this['commandId']=_0x13d75e['EdGXR'](randomUUID);continue;}break;}}['setContext'](_0x53eaa2){const _0x1af770=_0x4307e9;if(_0x53eaa2['featureId'])this['featureId']=_0x53eaa2['featureId'];if(_0x53eaa2['checklistItemId'])this['checklistItemId']=_0x53eaa2['checklistItemId'];if(_0x53eaa2['browserSessionId'])this['browserSessionId']=_0x53eaa2['browserSessionId'];if(_0x53eaa2[_0x1af770(0x206)])this['transport']=_0x53eaa2['transport'];}async[_0x4307e9(0x1f8)](_0x31e514){const _0x594903=_0x4307e9,_0x312b78={'hIxtO':'command_start'},_0x396fbb=this['buildEvent']({'eventType':_0x312b78['hIxtO'],'metadata':_0x31e514});await this[_0x594903(0x226)](_0x396fbb);}async['trackCommandEnd'](_0x401c01,_0x206c13){const _0x436151=_0x4307e9,_0x19c65f=this['buildEvent']({'eventType':_0x436151(0x1f4),'outcome':_0x401c01,'durationMs':Date[_0x436151(0x1ec)]()-this['commandStartTime'],'metadata':_0x206c13});await this[_0x436151(0x226)](_0x19c65f),await this['flush']();}async[_0x4307e9(0x207)](_0x31342f,_0x2882fd){const _0x451efe=_0x4307e9,_0x18fd06={'CUATn':'command_error','zWuFG':function(_0x3e46a0,_0x4d9a57,_0x31359e){return _0x3e46a0(_0x4d9a57,_0x31359e);},'epgbF':function(_0x485d1e,_0x27f30a){return _0x485d1e(_0x27f30a);}},_0x5ed56a=this['buildEvent']({'eventType':_0x18fd06[_0x451efe(0x224)],'errorMessage':_0x18fd06['zWuFG'](truncate,_0x31342f instanceof Error?_0x31342f['message']:_0x18fd06['epgbF'](String,_0x31342f),0x1f4),'errorType':_0x31342f instanceof Error?_0x31342f['constructor']['name']:_0x451efe(0x1f9),'durationMs':Date[_0x451efe(0x1ec)]()-this[_0x451efe(0x1f2)],'metadata':_0x2882fd});await this['sendImmediate'](_0x5ed56a),await this['flush']();}[_0x4307e9(0x1f5)](_0x4e0110,_0x196068){const _0x4d7d8b=_0x4307e9,_0x42052d={'yfCbN':'phase_start'};this[_0x4d7d8b(0x20e)]++,this[_0x4d7d8b(0x1fe)]['set'](_0x4e0110,Date['now']());const _0x12c8a5=this['buildEvent']({'eventType':_0x42052d[_0x4d7d8b(0x202)],'phase':_0x4e0110,'phaseIndex':this['phaseCounter'],'metadata':_0x196068});this['buffer'][_0x4d7d8b(0x1fa)](_0x12c8a5);}['trackPhaseEnd'](_0x46a0c2,_0x43bbff){const _0x3f4af1=_0x4307e9,_0x4ef105={'RPEWb':function(_0xda7021,_0x933cab){return _0xda7021-_0x933cab;},'JqqGk':_0x3f4af1(0x20d)},_0x45b243=this[_0x3f4af1(0x1fe)]['get'](_0x46a0c2),_0x58969b=_0x45b243?_0x4ef105[_0x3f4af1(0x217)](Date[_0x3f4af1(0x1ec)](),_0x45b243):undefined;this['phaseStartTimes']['delete'](_0x46a0c2);const _0x129c51=this['buildEvent']({'eventType':_0x4ef105['JqqGk'],'phase':_0x46a0c2,'durationMs':_0x58969b,'metadata':_0x43bbff});this[_0x3f4af1(0x220)]['push'](_0x129c51),this['buffer'][_0x3f4af1(0x204)]>=0xa&&this[_0x3f4af1(0x1f7)]();}async[_0x4307e9(0x222)](_0x408332,_0x898541,_0x2580fa){const _0x14f665=_0x4307e9,_0x252adb=this[_0x14f665(0x1fe)]['get'](_0x408332),_0x3f9107=_0x252adb?Date[_0x14f665(0x1ec)]()-_0x252adb:undefined;this[_0x14f665(0x1fe)]['delete'](_0x408332);const _0x3ff72a=this['buildEvent']({'eventType':_0x14f665(0x219),'phase':_0x408332,'durationMs':_0x3f9107,'errorMessage':truncate(_0x898541 instanceof Error?_0x898541[_0x14f665(0x205)]:String(_0x898541),0x1f4),'errorType':_0x898541 instanceof Error?_0x898541['constructor']['name']:_0x14f665(0x1f9),'metadata':_0x2580fa});await this[_0x14f665(0x226)](_0x3ff72a);}async[_0x4307e9(0x228)](){const _0x2e6908=_0x4307e9;if(this[_0x2e6908(0x220)]['length']===0x0)return;const _0x4e0d19=this[_0x2e6908(0x220)][_0x2e6908(0x1fd)](0x0);try{await this['sendBatch'](_0x4e0d19);}catch{}}['buildEvent'](_0x1cb47e){const _0x454116=_0x4307e9;return{'eventType':_0x1cb47e['eventType'],'command':this['command'],'commandId':this[_0x454116(0x212)],'deviceId':this['deviceId'],'timestamp':new Date()[_0x454116(0x214)](),'durationMs':_0x1cb47e['durationMs'],'phase':_0x1cb47e[_0x454116(0x1ff)],'phaseIndex':_0x1cb47e['phaseIndex'],'outcome':_0x1cb47e['outcome'],'errorMessage':_0x1cb47e['errorMessage'],'errorType':_0x1cb47e['errorType'],'featureId':this[_0x454116(0x21c)],'checklistItemId':this['checklistItemId'],'browserSessionId':this['browserSessionId'],'transport':this['transport'],'evaluation':_0x1cb47e[_0x454116(0x22a)],'cliVersion':this[_0x454116(0x218)],'nodeVersion':this['nodeVersion'],'platform':this['platform'],'cwd':process['cwd'](),'isTty':this[_0x454116(0x1f0)],'isCI':this[_0x454116(0x1eb)],'metadata':_0x1cb47e[_0x454116(0x200)]};}async[_0x4307e9(0x226)](_0x9b403a){const _0x2d2601=_0x4307e9;try{await this[_0x2d2601(0x229)]([_0x9b403a]);}catch{}}[_0x4307e9(0x1f7)](){const _0x5c89f1=_0x4307e9;if(this[_0x5c89f1(0x216)])return;this[_0x5c89f1(0x216)]=this['flush']()['finally'](()=>{const _0x4ce6c2=_0x5c89f1;this[_0x4ce6c2(0x216)]=null;});}async['sendBatch'](_0x3a61c8){const _0x5f00b2=_0x4307e9,_0x1ed178={'LfyoH':function(_0x1d5582){return _0x1d5582();},'BvPqS':_0x5f00b2(0x22c),'nZuvM':function(_0x3ca123,_0x30b589,_0x2a6c26){return _0x3ca123(_0x30b589,_0x2a6c26);}},_0x4bd13a=await _0x1ed178['LfyoH'](getToken)['catch'](()=>null),_0x3d91a0=getApiBaseUrl(),_0x5354c5={'Content-Type':'application/json'};_0x4bd13a&&(_0x5354c5[_0x1ed178['BvPqS']]='Bearer\x20'+_0x4bd13a);const _0x2f952b={'events':_0x3a61c8};process['env'][_0x5f00b2(0x208)]&&console[_0x5f00b2(0x221)]('[telemetry]\x20Sending\x20'+_0x3a61c8['length']+'\x20event(s)\x20to\x20'+_0x3d91a0+_0x5f00b2(0x210));const _0x42a14c=new AbortController(),_0x50ceb9=_0x1ed178[_0x5f00b2(0x21b)](setTimeout,()=>_0x42a14c[_0x5f00b2(0x1ef)](),0x1388);try{await fetch(_0x3d91a0+'/api/v1/mcp/cli-telemetry',{'method':_0x5f00b2(0x21e),'headers':_0x5354c5,'body':JSON[_0x5f00b2(0x21f)](_0x2f952b),'signal':_0x42a14c['signal']});}finally{clearTimeout(_0x50ceb9);}}}let currentCollector=null;function _0x33f4(_0x150a82,_0x3e815e){_0x150a82=_0x150a82-0x1ea;const _0x96bc0d=_0x96bc();let _0x33f492=_0x96bc0d[_0x150a82];return _0x33f492;}export function createTelemetryCollector(_0x1f8855){return currentCollector=new TelemetryCollector(_0x1f8855),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0x4d835c,_0x2a1f7b,_0x3bc928){const _0x3232fb=_0x4307e9,_0x306e35={'WfarO':'success'},_0x3e80f8=createTelemetryCollector(_0x4d835c);await _0x3e80f8[_0x3232fb(0x1f8)](_0x3bc928);try{const _0x4cdbe8=await _0x2a1f7b(_0x3e80f8);return await _0x3e80f8['trackCommandEnd'](_0x306e35[_0x3232fb(0x1f1)]),_0x4cdbe8;}catch(_0x43aeb2){await _0x3e80f8['trackCommandError'](_0x43aeb2);throw _0x43aeb2;}finally{await _0x3e80f8['flush']();}}function _0x96bc(){const _0x41132d=['commandStartTime','sXyHu','command_end','trackPhaseStart','deviceId','flushAsync','trackCommandStart','Unknown','push','620pIcGxq','1436148pWmNuZ','splice','phaseStartTimes','phase','metadata','.ranger','yfCbN','slice','length','message','transport','trackCommandError','DEBUG','checklistItemId','10LOOjGc','1LEXlGb','2770012KEPTts','phase_end','phaseCounter','version','/api/v1/mcp/cli-telemetry','3053367GFUTVk','commandId','platform','toISOString','1019706XiVhbs','flushing','RPEWb','cliVersion','phase_error','GITHUB_ACTIONS','nZuvM','featureId','14524xmTAtw','POST','stringify','buffer','error','trackPhaseError','xMulB','CUATn','3817638uJPMTJ','sendImmediate','dshbX','flush','sendBatch','evaluation','1985768hjOaYP','Authorization','split','isCI','now','env','utf-8','abort','isTty','WfarO'];_0x96bc=function(){return _0x41132d;};return _0x96bc();}function truncate(_0x5da84f,_0x337e2e){const _0x434d00=_0x4307e9,_0x5d65eb={'EGGYy':'...'};return _0x5da84f[_0x434d00(0x204)]>_0x337e2e?_0x5da84f[_0x434d00(0x203)](0x0,_0x337e2e)+_0x5d65eb['EGGYy']:_0x5da84f;}
1
+ const _0x443264=_0x44ed;function _0x22fa(){const _0x2be631=['phaseCounter','bxZEf','16pckWCG','POST','INJwb','slice','cwd','NCdbb','2458936WNrhOv','trackPhaseError','cliVersion','...','sendBatch','sendImmediate','checklistItemId','command','142761mvfYWo','stdout','650556NmjlCa','RxLsU','commandStartTime','platform','phase_end','deviceId','outcome','DEBUG','eventType','tRXAo','trackPhaseStart','name','utf-8','browserSessionId','WAIIG','Authorization','push','43440edEzFg','command_start','message','wMLuI','Unknown','nodeVersion','buildEvent','now','trackPhaseEnd','phase_start','trim','get','PmbQF','945801hXsvoD','command_error','trackCommandEnd','command_end','BhyhI','errorType','version','buffer','4035934sbFVgE','GITHUB_ACTIONS','aynIO','iUhhp','success','delete','toISOString','phaseStartTimes','errorMessage','/api/v1/mcp/cli-telemetry','constructor','set','flush','phase_error','isTty','[telemetry]\x20Sending\x20','\x20event(s)\x20to\x20','env','LMCAY','splice','transport','featureId','phaseIndex','flushing','trackCommandStart','395CQFdKm','abort','pilPm','isCI','length','riuBv','eAUGx','commandId','8iyMmlS','CtWEy','3565330SonGHN','signal'];_0x22fa=function(){return _0x2be631;};return _0x22fa();}(function(_0x1a65aa,_0x5540cf){const _0x1fdb99=_0x44ed,_0x5c0bbc=_0x1a65aa();while(!![]){try{const _0x44afa0=parseInt(_0x1fdb99(0x1f5))/0x1+parseInt(_0x1fdb99(0x23c))/0x2*(parseInt(_0x1fdb99(0x1f3))/0x3)+parseInt(_0x1fdb99(0x1eb))/0x4+parseInt(_0x1fdb99(0x234))/0x5*(-parseInt(_0x1fdb99(0x206))/0x6)+-parseInt(_0x1fdb99(0x21b))/0x7+-parseInt(_0x1fdb99(0x1e5))/0x8*(parseInt(_0x1fdb99(0x213))/0x9)+parseInt(_0x1fdb99(0x23e))/0xa;if(_0x44afa0===_0x5540cf)break;else _0x5c0bbc['push'](_0x5c0bbc['shift']());}catch(_0x3bc9e7){_0x5c0bbc['push'](_0x5c0bbc['shift']());}}}(_0x22fa,0x6eb5f));function _0x44ed(_0x2183fc,_0x2bf93e){_0x2183fc=_0x2183fc-0x1e4;const _0x22fac2=_0x22fa();let _0x44edcc=_0x22fac2[_0x2183fc];return _0x44edcc;}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 _0x236461=_0x44ed,_0x4a7675={'bxZEf':'.session','RxLsU':function(_0xec51dc,_0x36c038){return _0xec51dc(_0x36c038);},'udLVR':_0x236461(0x201),'aynIO':function(_0x3de419,_0x46dcf5,_0x5a29e2){return _0x3de419(_0x46dcf5,_0x5a29e2);},'lfZRx':function(_0x4f6e24,_0x2951a4,_0x2a2bdb){return _0x4f6e24(_0x2951a4,_0x2a2bdb);},'CtWEy':function(_0x3cd3fc){return _0x3cd3fc();}};if(cachedDeviceId)return cachedDeviceId;try{const _0x1c0333=join(homedir(),'.ranger'),_0x320ec0=join(_0x1c0333,_0x4a7675[_0x236461(0x1e4)]);if(_0x4a7675[_0x236461(0x1f6)](existsSync,_0x320ec0)){cachedDeviceId=readFileSync(_0x320ec0,_0x4a7675['udLVR'])[_0x236461(0x210)]();if(cachedDeviceId)return cachedDeviceId;}return cachedDeviceId=randomUUID(),_0x4a7675[_0x236461(0x21d)](mkdirSync,_0x1c0333,{'recursive':!![]}),_0x4a7675['lfZRx'](writeFileSync,_0x320ec0,cachedDeviceId),cachedDeviceId;}catch{return cachedDeviceId=_0x4a7675[_0x236461(0x23d)](randomUUID),cachedDeviceId;}}export class TelemetryCollector{['buffer']=[];[_0x443264(0x23b)];[_0x443264(0x1f2)];[_0x443264(0x1f7)];[_0x443264(0x240)]=0x0;[_0x443264(0x222)]=new Map();['flushing']=null;[_0x443264(0x1fa)];[_0x443264(0x1ed)];[_0x443264(0x20b)];['platform'];[_0x443264(0x229)];[_0x443264(0x237)];['featureId'];['checklistItemId'];[_0x443264(0x202)];[_0x443264(0x22f)];constructor(_0x1c1d9e){const _0x95084d=_0x443264,_0x1cfe65={'SNQlL':'1|5|4|2|7|6|8|0|3','eTIkq':function(_0x3fc578){return _0x3fc578();},'riuBv':function(_0x4e2883){return _0x4e2883();}},_0x135df0=_0x1cfe65['SNQlL']['split']('|');let _0x243286=0x0;while(!![]){switch(_0x135df0[_0x243286++]){case'0':this[_0x95084d(0x229)]=process[_0x95084d(0x1f4)]['isTTY']??![];continue;case'1':this['commandId']=randomUUID();continue;case'2':this[_0x95084d(0x1fa)]=_0x1cfe65['eTIkq'](getDeviceId);continue;case'3':this[_0x95084d(0x237)]=!!(process['env']['CI']||process[_0x95084d(0x22c)][_0x95084d(0x21c)]);continue;case'4':this['commandStartTime']=Date[_0x95084d(0x20d)]();continue;case'5':this['command']=_0x1c1d9e;continue;case'6':this['nodeVersion']=process[_0x95084d(0x219)];continue;case'7':this[_0x95084d(0x1ed)]=_0x1cfe65[_0x95084d(0x239)](getCurrentVersion);continue;case'8':this['platform']=process['platform'];continue;}break;}}['setContext'](_0x4143ad){const _0x37fb87=_0x443264;if(_0x4143ad['featureId'])this['featureId']=_0x4143ad[_0x37fb87(0x230)];if(_0x4143ad['checklistItemId'])this['checklistItemId']=_0x4143ad[_0x37fb87(0x1f1)];if(_0x4143ad['browserSessionId'])this[_0x37fb87(0x202)]=_0x4143ad[_0x37fb87(0x202)];if(_0x4143ad['transport'])this[_0x37fb87(0x22f)]=_0x4143ad[_0x37fb87(0x22f)];}async[_0x443264(0x233)](_0x38a2bb){const _0x55da43=_0x443264,_0x49e0cc={'NCdbb':_0x55da43(0x207)},_0x124f2d=this[_0x55da43(0x20c)]({'eventType':_0x49e0cc[_0x55da43(0x1ea)],'metadata':_0x38a2bb});await this['sendImmediate'](_0x124f2d);}async[_0x443264(0x215)](_0x21980e,_0x207d20){const _0x1868fc=_0x443264,_0x4b6f19={'BhyhI':_0x1868fc(0x216),'JXjAQ':function(_0x3eb6b8,_0x171b34){return _0x3eb6b8-_0x171b34;}},_0x5c08d8=this[_0x1868fc(0x20c)]({'eventType':_0x4b6f19[_0x1868fc(0x217)],'outcome':_0x21980e,'durationMs':_0x4b6f19['JXjAQ'](Date[_0x1868fc(0x20d)](),this[_0x1868fc(0x1f7)]),'metadata':_0x207d20});await this['sendImmediate'](_0x5c08d8),await this[_0x1868fc(0x227)]();}async['trackCommandError'](_0x556897,_0x5d6922){const _0x1fec07=_0x443264,_0x46857a={'aHXMu':function(_0x81beb1,_0x1514ed,_0xec20e9){return _0x81beb1(_0x1514ed,_0xec20e9);},'WAIIG':function(_0x1f6f98,_0x128ef8){return _0x1f6f98(_0x128ef8);},'pilPm':_0x1fec07(0x20a)},_0x13f042=this['buildEvent']({'eventType':_0x1fec07(0x214),'errorMessage':_0x46857a['aHXMu'](truncate,_0x556897 instanceof Error?_0x556897[_0x1fec07(0x208)]:_0x46857a[_0x1fec07(0x203)](String,_0x556897),0x1f4),'errorType':_0x556897 instanceof Error?_0x556897[_0x1fec07(0x225)][_0x1fec07(0x200)]:_0x46857a[_0x1fec07(0x236)],'durationMs':Date['now']()-this[_0x1fec07(0x1f7)],'metadata':_0x5d6922});await this['sendImmediate'](_0x13f042),await this['flush']();}[_0x443264(0x1ff)](_0x3c4240,_0x2af014){const _0x3ab550=_0x443264,_0x27c70a={'LMCAY':_0x3ab550(0x20f)};this[_0x3ab550(0x240)]++,this[_0x3ab550(0x222)][_0x3ab550(0x226)](_0x3c4240,Date['now']());const _0x2a3cac=this[_0x3ab550(0x20c)]({'eventType':_0x27c70a[_0x3ab550(0x22d)],'phase':_0x3c4240,'phaseIndex':this['phaseCounter'],'metadata':_0x2af014});this[_0x3ab550(0x21a)]['push'](_0x2a3cac);}[_0x443264(0x20e)](_0xb947af,_0x5b7c50){const _0x5e87f4=_0x443264,_0x4132c3={'HiLza':function(_0x4c14ab,_0x1279d9){return _0x4c14ab-_0x1279d9;},'INJwb':_0x5e87f4(0x1f9)},_0x1ecb53=this[_0x5e87f4(0x222)][_0x5e87f4(0x211)](_0xb947af),_0x33553e=_0x1ecb53?_0x4132c3['HiLza'](Date['now'](),_0x1ecb53):undefined;this[_0x5e87f4(0x222)][_0x5e87f4(0x220)](_0xb947af);const _0x2fecba=this['buildEvent']({'eventType':_0x4132c3[_0x5e87f4(0x1e7)],'phase':_0xb947af,'durationMs':_0x33553e,'metadata':_0x5b7c50});this[_0x5e87f4(0x21a)][_0x5e87f4(0x205)](_0x2fecba),this['buffer'][_0x5e87f4(0x238)]>=0xa&&this['flushAsync']();}async[_0x443264(0x1ec)](_0xb90057,_0x227818,_0x14cc83){const _0x20f199=_0x443264,_0x901538={'UsYty':function(_0x44fd4a,_0x33e8b7){return _0x44fd4a-_0x33e8b7;},'iUhhp':function(_0x100cbe,_0x184cf3){return _0x100cbe instanceof _0x184cf3;},'IDPfp':function(_0x19322e,_0x356105){return _0x19322e(_0x356105);},'tRXAo':'Unknown'},_0x227aab=this[_0x20f199(0x222)][_0x20f199(0x211)](_0xb90057),_0x1840e2=_0x227aab?_0x901538['UsYty'](Date[_0x20f199(0x20d)](),_0x227aab):undefined;this['phaseStartTimes']['delete'](_0xb90057);const _0x1f5725=this[_0x20f199(0x20c)]({'eventType':_0x20f199(0x228),'phase':_0xb90057,'durationMs':_0x1840e2,'errorMessage':truncate(_0x901538[_0x20f199(0x21e)](_0x227818,Error)?_0x227818[_0x20f199(0x208)]:_0x901538['IDPfp'](String,_0x227818),0x1f4),'errorType':_0x901538['iUhhp'](_0x227818,Error)?_0x227818['constructor']['name']:_0x901538[_0x20f199(0x1fe)],'metadata':_0x14cc83});await this['sendImmediate'](_0x1f5725);}async[_0x443264(0x227)](){const _0x17cec9=_0x443264,_0x413dc2={'wMLuI':function(_0x485990,_0x2c15fc){return _0x485990===_0x2c15fc;}};if(_0x413dc2[_0x17cec9(0x209)](this['buffer']['length'],0x0))return;const _0x148ec5=this[_0x17cec9(0x21a)][_0x17cec9(0x22e)](0x0);try{await this['sendBatch'](_0x148ec5);}catch{}}[_0x443264(0x20c)](_0x107dff){const _0x420be2=_0x443264;return{'eventType':_0x107dff[_0x420be2(0x1fd)],'command':this['command'],'commandId':this[_0x420be2(0x23b)],'deviceId':this[_0x420be2(0x1fa)],'timestamp':new Date()[_0x420be2(0x221)](),'durationMs':_0x107dff['durationMs'],'phase':_0x107dff['phase'],'phaseIndex':_0x107dff[_0x420be2(0x231)],'outcome':_0x107dff[_0x420be2(0x1fb)],'errorMessage':_0x107dff[_0x420be2(0x223)],'errorType':_0x107dff[_0x420be2(0x218)],'featureId':this[_0x420be2(0x230)],'checklistItemId':this[_0x420be2(0x1f1)],'browserSessionId':this['browserSessionId'],'transport':this['transport'],'evaluation':_0x107dff['evaluation'],'cliVersion':this['cliVersion'],'nodeVersion':this['nodeVersion'],'platform':this[_0x420be2(0x1f8)],'cwd':process[_0x420be2(0x1e9)](),'isTty':this[_0x420be2(0x229)],'isCI':this['isCI'],'metadata':_0x107dff['metadata']};}async[_0x443264(0x1f0)](_0x91c0e5){const _0x59fb7f=_0x443264;try{await this[_0x59fb7f(0x1ef)]([_0x91c0e5]);}catch{}}['flushAsync'](){const _0x476985=_0x443264;if(this['flushing'])return;this['flushing']=this[_0x476985(0x227)]()['finally'](()=>{const _0xcbf2=_0x476985;this[_0xcbf2(0x232)]=null;});}async['sendBatch'](_0x5249a9){const _0x3863c8=_0x443264,_0x1d7660={'eAUGx':function(_0x4953f0){return _0x4953f0();},'sZskw':'application/json','xWwVq':_0x3863c8(0x204)},_0x30c6b0=await _0x1d7660[_0x3863c8(0x23a)](getToken)['catch'](()=>null),_0x38dd18=_0x1d7660['eAUGx'](getApiBaseUrl),_0x6b4821={'Content-Type':_0x1d7660['sZskw']};_0x30c6b0&&(_0x6b4821[_0x1d7660['xWwVq']]='Bearer\x20'+_0x30c6b0);const _0x3b0d8b={'events':_0x5249a9};process[_0x3863c8(0x22c)][_0x3863c8(0x1fc)]&&console['error'](_0x3863c8(0x22a)+_0x5249a9[_0x3863c8(0x238)]+_0x3863c8(0x22b)+_0x38dd18+'/api/v1/mcp/cli-telemetry');const _0x53911f=new AbortController(),_0x11d2a3=setTimeout(()=>_0x53911f[_0x3863c8(0x235)](),0x1388);try{await fetch(_0x38dd18+_0x3863c8(0x224),{'method':_0x3863c8(0x1e6),'headers':_0x6b4821,'body':JSON['stringify'](_0x3b0d8b),'signal':_0x53911f[_0x3863c8(0x23f)]});}finally{clearTimeout(_0x11d2a3);}}}let currentCollector=null;export function createTelemetryCollector(_0x3fa490){return currentCollector=new TelemetryCollector(_0x3fa490),currentCollector;}export function getCurrentCollector(){return currentCollector;}export async function withTelemetry(_0x59229d,_0x1b8c2a,_0x1210c7){const _0x4600c0=_0x443264,_0x43a827=createTelemetryCollector(_0x59229d);await _0x43a827['trackCommandStart'](_0x1210c7);try{const _0x47be9f=await _0x1b8c2a(_0x43a827);return await _0x43a827['trackCommandEnd'](_0x4600c0(0x21f)),_0x47be9f;}catch(_0x443778){await _0x43a827['trackCommandError'](_0x443778);throw _0x443778;}finally{await _0x43a827[_0x4600c0(0x227)]();}}function truncate(_0x26dbfc,_0x3e7bb8){const _0x53ec0e=_0x443264,_0x2b7e5d={'DWRxw':function(_0x19503d,_0x4d1e6f){return _0x19503d>_0x4d1e6f;},'PmbQF':function(_0x4e0e28,_0x570fba){return _0x4e0e28+_0x570fba;}};return _0x2b7e5d['DWRxw'](_0x26dbfc['length'],_0x3e7bb8)?_0x2b7e5d[_0x53ec0e(0x212)](_0x26dbfc[_0x53ec0e(0x1e8)](0x0,_0x3e7bb8),_0x53ec0e(0x1ee)):_0x26dbfc;}
@@ -1 +1 @@
1
- function _0x5dab(_0x40cdc8,_0x234de5){_0x40cdc8=_0x40cdc8-0x1d4;const _0x4779bc=_0x4779();let _0x5dabba=_0x4779bc[_0x40cdc8];return _0x5dabba;}(function(_0x5797dc,_0x486e45){const _0x1bf14a=_0x5dab,_0x352c5a=_0x5797dc();while(!![]){try{const _0x6ca04=-parseInt(_0x1bf14a(0x1d5))/0x1+parseInt(_0x1bf14a(0x204))/0x2*(parseInt(_0x1bf14a(0x205))/0x3)+-parseInt(_0x1bf14a(0x1dc))/0x4*(parseInt(_0x1bf14a(0x201))/0x5)+-parseInt(_0x1bf14a(0x1f9))/0x6+-parseInt(_0x1bf14a(0x1d7))/0x7+-parseInt(_0x1bf14a(0x1f3))/0x8+parseInt(_0x1bf14a(0x1fa))/0x9;if(_0x6ca04===_0x486e45)break;else _0x352c5a['push'](_0x352c5a['shift']());}catch(_0x3905ce){_0x352c5a['push'](_0x352c5a['shift']());}}}(_0x4779,0xcf8bb));import{readdir,readFile}from'fs/promises';import{join}from'path';function _0x4779(){const _0x3ee411=['values','wbXSd','7128456qnSJYp','49618818urtjfp','odNPi','inputSnapshot','frameUrl','from','indexOf','navigated','7715PRlIKY','length','GyXFW','4BghPwP','93189zKRegp','params','string','1163470MVLvaA','afterSnapshot','5949440KjIFZr','sort','zNbhy','pageId','snapshotName','204xjLSiM','after','find','apiName','context-options','LvaLf','name','url','get','type','method','XzOSJ','.trace','filter','nssOA','endTime','point','input','snapshot','utf-8','PXxbm','set','before','11560496kMpeaZ','callId','startTime','abs'];_0x4779=function(){return _0x3ee411;};return _0x4779();}export async function mapStepsToTraceSnapshots(_0x1bc7e5,_0x5c07b5){const _0x42b067=_0x5dab,_0x407412={'oZLyk':function(_0x2a3020,_0x6d4f85,_0x239cba){return _0x2a3020(_0x6d4f85,_0x239cba);},'PXxbm':function(_0xabdab1,_0x4b8625){return _0xabdab1(_0x4b8625);},'ufUCl':_0x42b067(0x1e8),'WhJLs':function(_0x5c2756,_0x4cc1bd,_0x20bb67){return _0x5c2756(_0x4cc1bd,_0x20bb67);},'nftJP':_0x42b067(0x1ef),'ZrqjT':_0x42b067(0x1f2),'TqaPo':_0x42b067(0x1ed),'LvaLf':_0x42b067(0x1dd),'WtKcb':function(_0x30280e,_0x1d58a1){return _0x30280e===_0x1d58a1;},'nQOxT':function(_0x41eafe,_0x18d968){return _0x41eafe===_0x18d968;},'XzOSJ':'goto','odNPi':function(_0x1ee880,_0x27ea4c){return _0x1ee880===_0x27ea4c;},'ArIWz':function(_0x5197ed,_0x42f2f1){return _0x5197ed===_0x42f2f1;},'UwAVc':'string','GyXFW':function(_0x49c5fa,_0x101b95){return _0x49c5fa-_0x101b95;},'wbXSd':function(_0x20a72f,_0x287b44){return _0x20a72f<_0x287b44;},'zNbhy':'page@0','GolEd':function(_0x2c7c22,_0x4aeaac){return _0x2c7c22>=_0x4aeaac;},'nssOA':function(_0x180575,_0xb6b42c){return _0x180575+_0xb6b42c;}},_0x2299f1=new Map();if(_0x5c07b5[_0x42b067(0x202)]===0x0)return _0x2299f1;const _0x732f3e=[],_0x1e5725=async _0x3815ec=>{const _0x10ff37=_0x42b067,_0x5dc0eb=await readdir(_0x3815ec,{'withFileTypes':!![]});for(const _0x59b977 of _0x5dc0eb){const _0x651c68=_0x407412['oZLyk'](join,_0x3815ec,_0x59b977[_0x10ff37(0x1e2)]);if(_0x59b977['isDirectory']())await _0x407412[_0x10ff37(0x1f0)](_0x1e5725,_0x651c68);else _0x59b977[_0x10ff37(0x1e2)]['endsWith'](_0x407412['ufUCl'])&&_0x732f3e['push'](_0x651c68);}};await _0x407412[_0x42b067(0x1f0)](_0x1e5725,_0x1bc7e5);if(_0x732f3e['length']===0x0)return _0x2299f1;const _0x1b25c6=[];for(const _0x232140 of _0x732f3e){const _0x473de9=await _0x407412['WhJLs'](readFile,_0x232140,_0x407412['nftJP']),_0x41ba0c=_0x473de9['split']('\x0a')[_0x42b067(0x1e9)](_0x312232=>_0x312232['trim']());for(const _0x4b169f of _0x41ba0c){try{_0x1b25c6['push'](JSON['parse'](_0x4b169f));}catch{}}}if(_0x1b25c6[_0x42b067(0x202)]===0x0)return _0x2299f1;const _0x2d0260=_0x1b25c6[_0x42b067(0x1de)](_0x599905=>_0x599905[_0x42b067(0x1e5)]===_0x42b067(0x1e0));if(!_0x2d0260)return _0x2299f1;const _0x54fab4=_0x2d0260['wallTime']-_0x2d0260['monotonicTime'],_0x5a6634=new Map();for(const _0x146e63 of _0x1b25c6){switch(_0x146e63[_0x42b067(0x1e5)]){case _0x407412['ZrqjT']:{const _0x2c09ff=_0x146e63;_0x5a6634[_0x42b067(0x1f1)](_0x2c09ff[_0x42b067(0x1f4)],{'callId':_0x2c09ff['callId'],'startTime':_0x2c09ff[_0x42b067(0x1f5)],'endTime':0x0,'method':_0x2c09ff['method'],'apiName':_0x2c09ff[_0x42b067(0x1df)],'params':_0x2c09ff['params'],'pageId':_0x2c09ff[_0x42b067(0x1da)],'beforeSnapshot':_0x2c09ff['beforeSnapshot']});break;}case _0x407412['TqaPo']:{const _0x12da9c=_0x146e63,_0x1ff2db=_0x5a6634['get'](_0x12da9c['callId']);if(_0x1ff2db){if(_0x12da9c[_0x42b067(0x1fc)])_0x1ff2db[_0x42b067(0x1fc)]=_0x12da9c[_0x42b067(0x1fc)];if(_0x12da9c[_0x42b067(0x1ec)])_0x1ff2db['point']=_0x12da9c[_0x42b067(0x1ec)];}break;}case _0x407412[_0x42b067(0x1e1)]:{const _0x17b87a=_0x146e63,_0x23cced=_0x5a6634[_0x42b067(0x1e4)](_0x17b87a[_0x42b067(0x1f4)]);if(_0x23cced){_0x23cced[_0x42b067(0x1eb)]=_0x17b87a[_0x42b067(0x1eb)];if(_0x17b87a[_0x42b067(0x1d6)])_0x23cced['afterSnapshot']=_0x17b87a['afterSnapshot'];}break;}}}const _0x252d1d=Array[_0x42b067(0x1fe)](_0x5a6634[_0x42b067(0x1f7)]())[_0x42b067(0x1e9)](_0x15d55a=>_0x15d55a[_0x42b067(0x1eb)]>0x0&&(_0x15d55a['afterSnapshot']||_0x15d55a['beforeSnapshot']))[_0x42b067(0x1d8)]((_0x6fd488,_0xfe0cc5)=>_0x6fd488[_0x42b067(0x1f5)]-_0xfe0cc5[_0x42b067(0x1f5)]);if(_0x407412['WtKcb'](_0x252d1d['length'],0x0))return _0x2299f1;const _0x4c1906=new Map();for(const _0x1e93c3 of _0x1b25c6){if(_0x407412['nQOxT'](_0x1e93c3[_0x42b067(0x1e5)],'frame-snapshot')){const _0x5ec280=_0x1e93c3[_0x42b067(0x1ee)];_0x5ec280?.[_0x42b067(0x1db)]&&_0x5ec280?.[_0x42b067(0x1fd)]&&_0x4c1906['set'](_0x5ec280['snapshotName'],_0x5ec280[_0x42b067(0x1fd)]);}}const _0x2c4d93=new Map();for(const _0x213df9 of _0x252d1d){const _0x13c5d8=_0x213df9[_0x42b067(0x206)]?.[_0x42b067(0x1e3)];_0x213df9['method']===_0x407412[_0x42b067(0x1e7)]&&typeof _0x13c5d8===_0x42b067(0x1d4)&&_0x213df9['pageId']&&_0x2c4d93[_0x42b067(0x1f1)](_0x213df9[_0x42b067(0x1da)],_0x13c5d8);}for(const _0x4eab8e of _0x1b25c6){const _0x3dfcf8=_0x4eab8e,_0x32fd46=_0x3dfcf8['params'],_0x5d9291=_0x32fd46?.[_0x42b067(0x1e3)];_0x407412[_0x42b067(0x1fb)](_0x3dfcf8['type'],'event')&&_0x407412['ArIWz'](_0x3dfcf8[_0x42b067(0x1e6)],_0x42b067(0x200))&&_0x407412[_0x42b067(0x1fb)](typeof _0x5d9291,_0x42b067(0x1d4))&&typeof _0x3dfcf8[_0x42b067(0x1da)]===_0x407412['UwAVc']&&_0x2c4d93['set'](_0x3dfcf8['pageId'],_0x5d9291);}for(const _0x34ad8c of _0x5c07b5){const _0x30d38a=new Date(_0x34ad8c['capturedAt'])['getTime'](),_0x4bf3b3=_0x407412[_0x42b067(0x203)](_0x30d38a,_0x54fab4);let _0x42f83a=null,_0x2f7865=Infinity;for(const _0x34265e of _0x252d1d){const _0x395d4b=Math[_0x42b067(0x1f6)](_0x34265e[_0x42b067(0x1eb)]-_0x4bf3b3);_0x407412[_0x42b067(0x1f8)](_0x395d4b,_0x2f7865)&&(_0x2f7865=_0x395d4b,_0x42f83a=_0x34265e);}if(!_0x42f83a)continue;const _0x408fb6=_0x42f83a[_0x42b067(0x1d6)]||_0x42f83a['beforeSnapshot'];if(!_0x408fb6)continue;const _0x363eb4=_0x42f83a[_0x42b067(0x1da)]||_0x407412[_0x42b067(0x1d9)];let _0xe7f1d7=_0x4c1906[_0x42b067(0x1e4)](_0x408fb6)||_0x2c4d93['get'](_0x363eb4)||'';if(!_0xe7f1d7)for(let _0x943e3=_0x252d1d['indexOf'](_0x42f83a);_0x943e3>=0x0;_0x943e3--){const _0x322ffd=_0x252d1d[_0x943e3][_0x42b067(0x206)]?.[_0x42b067(0x1e3)];if(_0x407412[_0x42b067(0x1fb)](_0x252d1d[_0x943e3]['method'],_0x407412[_0x42b067(0x1e7)])&&_0x407412['odNPi'](typeof _0x322ffd,'string')){_0xe7f1d7=_0x322ffd;break;}}let _0x3e14bd,_0xa40524;const _0x462192=_0x252d1d[_0x42b067(0x1ff)](_0x42f83a);if(_0x407412['GolEd'](_0x462192,0x0)&&_0x407412['wbXSd'](_0x462192,_0x407412['GyXFW'](_0x252d1d[_0x42b067(0x202)],0x1))){const _0x29ce56=_0x252d1d[_0x407412[_0x42b067(0x1ea)](_0x462192,0x1)];_0x29ce56[_0x42b067(0x1ec)]&&_0x29ce56[_0x42b067(0x1fc)]&&(_0x3e14bd=_0x29ce56[_0x42b067(0x1ec)],_0xa40524=_0x29ce56['inputSnapshot']);}_0x2299f1['set'](_0x34ad8c['stepId'],{'snapshotName':_0x408fb6,'inputSnapshotName':_0xa40524,'pageId':_0x363eb4,'pageUrl':_0xe7f1d7,'callId':_0x42f83a['callId'],'point':_0x3e14bd});}return _0x2299f1;}
1
+ (function(_0xb9919f,_0x2bc926){const _0x3fa86f=_0x3b2b,_0x5984e0=_0xb9919f();while(!![]){try{const _0x35d900=parseInt(_0x3fa86f(0x13e))/0x1+-parseInt(_0x3fa86f(0x149))/0x2*(parseInt(_0x3fa86f(0x12f))/0x3)+parseInt(_0x3fa86f(0x13b))/0x4+-parseInt(_0x3fa86f(0x132))/0x5+-parseInt(_0x3fa86f(0x14a))/0x6*(parseInt(_0x3fa86f(0x14f))/0x7)+parseInt(_0x3fa86f(0x15e))/0x8*(-parseInt(_0x3fa86f(0x154))/0x9)+-parseInt(_0x3fa86f(0x12e))/0xa*(-parseInt(_0x3fa86f(0x14b))/0xb);if(_0x35d900===_0x2bc926)break;else _0x5984e0['push'](_0x5984e0['shift']());}catch(_0x86b2ef){_0x5984e0['push'](_0x5984e0['shift']());}}}(_0x4b12,0xd219d));function _0x4b12(){const _0x100f41=['SEuyQ','27mKyHaJ','eduuH','afterSnapshot','IXKOz','XyIcj','point','pageId','abs','utf-8','monotonicTime','190160GgBJUq','hxUrV','1740GeMeJU','493203JWxySm','FqtRM','getTime','2918895UwPrVS','get','push','name','apiName','callId','frame-snapshot','url','goto','1989580jXUCqu','inputSnapshot','string','1040814PnQiPR','startTime','params','filter','ghGrQ','context-options','bOEBM','type','set','EDcPd','values','10uhBOZN','126gHjuTp','71896ccjjZd','beforeSnapshot','mtnvS','frameUrl','112602klvGOP','input','method','length'];_0x4b12=function(){return _0x100f41;};return _0x4b12();}import{readdir,readFile}from'fs/promises';function _0x3b2b(_0x339a1a,_0x1eac39){_0x339a1a=_0x339a1a-0x12e;const _0x4b1216=_0x4b12();let _0x3b2bee=_0x4b1216[_0x339a1a];return _0x3b2bee;}import{join}from'path';export async function mapStepsToTraceSnapshots(_0x137202,_0x137f30){const _0x1bf89f=_0x3b2b,_0x254e0b={'SEuyQ':function(_0x8e2dc2,_0x47dcc0,_0x978843){return _0x8e2dc2(_0x47dcc0,_0x978843);},'FqtRM':function(_0x340eea,_0x399ee9){return _0x340eea(_0x399ee9);},'ghGrQ':function(_0x309861,_0x597033){return _0x309861===_0x597033;},'hxUrV':function(_0x575222,_0x43a1ce){return _0x575222===_0x43a1ce;},'mtnvS':function(_0xd60731,_0x4f06c8){return _0xd60731===_0x4f06c8;},'vddiS':function(_0xdd11fa,_0x5cbd3f){return _0xdd11fa-_0x5cbd3f;},'XyIcj':'before','CmeNZ':_0x1bf89f(0x150),'GcizL':'after','KjgUQ':function(_0x4970b9,_0x5142ca){return _0x4970b9===_0x5142ca;},'eduuH':_0x1bf89f(0x13d),'IXKOz':function(_0x5e863f,_0x118efd){return _0x5e863f===_0x118efd;},'XlgGl':function(_0x54ef68,_0x21f180){return _0x54ef68-_0x21f180;},'EDcPd':function(_0x56352f,_0x3dd1bc){return _0x56352f<_0x3dd1bc;},'bOEBM':function(_0x13832c,_0x31b60c){return _0x13832c<_0x31b60c;}},_0x1f845c=new Map();if(_0x254e0b[_0x1bf89f(0x142)](_0x137f30[_0x1bf89f(0x152)],0x0))return _0x1f845c;const _0x3c02a4=[],_0x3bb5f5=async _0x356f5e=>{const _0x1ed261=_0x1bf89f,_0x3cbf5e=await readdir(_0x356f5e,{'withFileTypes':!![]});for(const _0x5534ed of _0x3cbf5e){const _0x4f2a5a=_0x254e0b[_0x1ed261(0x153)](join,_0x356f5e,_0x5534ed[_0x1ed261(0x135)]);if(_0x5534ed['isDirectory']())await _0x254e0b[_0x1ed261(0x130)](_0x3bb5f5,_0x4f2a5a);else _0x5534ed['name']['endsWith']('.trace')&&_0x3c02a4['push'](_0x4f2a5a);}};await _0x254e0b[_0x1bf89f(0x130)](_0x3bb5f5,_0x137202);if(_0x254e0b[_0x1bf89f(0x15f)](_0x3c02a4['length'],0x0))return _0x1f845c;const _0x3498e=[];for(const _0x43c9d3 of _0x3c02a4){const _0x593bcd=await readFile(_0x43c9d3,_0x1bf89f(0x15c)),_0x14b05b=_0x593bcd['split']('\x0a')[_0x1bf89f(0x141)](_0x10b4a2=>_0x10b4a2['trim']());for(const _0x485b86 of _0x14b05b){try{_0x3498e[_0x1bf89f(0x134)](JSON['parse'](_0x485b86));}catch{}}}if(_0x254e0b[_0x1bf89f(0x14d)](_0x3498e[_0x1bf89f(0x152)],0x0))return _0x1f845c;const _0x39dc97=_0x3498e['find'](_0xe09c8f=>_0xe09c8f['type']===_0x1bf89f(0x143));if(!_0x39dc97)return _0x1f845c;const _0x3232ca=_0x254e0b['vddiS'](_0x39dc97['wallTime'],_0x39dc97[_0x1bf89f(0x15d)]),_0x176f38=new Map();for(const _0x3c3884 of _0x3498e){switch(_0x3c3884['type']){case _0x254e0b[_0x1bf89f(0x158)]:{const _0x2a8014=_0x3c3884;_0x176f38[_0x1bf89f(0x146)](_0x2a8014[_0x1bf89f(0x137)],{'callId':_0x2a8014['callId'],'startTime':_0x2a8014[_0x1bf89f(0x13f)],'endTime':0x0,'method':_0x2a8014[_0x1bf89f(0x151)],'apiName':_0x2a8014[_0x1bf89f(0x136)],'params':_0x2a8014[_0x1bf89f(0x140)],'pageId':_0x2a8014[_0x1bf89f(0x15a)],'beforeSnapshot':_0x2a8014[_0x1bf89f(0x14c)]});break;}case _0x254e0b['CmeNZ']:{const _0x392fbc=_0x3c3884,_0x179ec5=_0x176f38[_0x1bf89f(0x133)](_0x392fbc['callId']);if(_0x179ec5){if(_0x392fbc[_0x1bf89f(0x13c)])_0x179ec5[_0x1bf89f(0x13c)]=_0x392fbc[_0x1bf89f(0x13c)];if(_0x392fbc['point'])_0x179ec5[_0x1bf89f(0x159)]=_0x392fbc['point'];}break;}case _0x254e0b['GcizL']:{const _0x3572f5=_0x3c3884,_0x4d76a2=_0x176f38['get'](_0x3572f5[_0x1bf89f(0x137)]);if(_0x4d76a2){_0x4d76a2['endTime']=_0x3572f5['endTime'];if(_0x3572f5[_0x1bf89f(0x156)])_0x4d76a2['afterSnapshot']=_0x3572f5[_0x1bf89f(0x156)];}break;}}}const _0x2d98fc=Array['from'](_0x176f38[_0x1bf89f(0x148)]())[_0x1bf89f(0x141)](_0x4cd1f6=>_0x4cd1f6['endTime']>0x0&&(_0x4cd1f6[_0x1bf89f(0x156)]||_0x4cd1f6[_0x1bf89f(0x14c)]))['sort']((_0x449027,_0x7b9923)=>_0x449027['startTime']-_0x7b9923[_0x1bf89f(0x13f)]);if(_0x2d98fc['length']===0x0)return _0x1f845c;const _0xd63fab=new Map();for(const _0x27be01 of _0x3498e){if(_0x27be01['type']===_0x1bf89f(0x138)){const _0x5f5823=_0x27be01['snapshot'];_0x5f5823?.['snapshotName']&&_0x5f5823?.['frameUrl']&&_0xd63fab['set'](_0x5f5823['snapshotName'],_0x5f5823[_0x1bf89f(0x14e)]);}}const _0x7f4696=new Map();for(const _0x24939e of _0x2d98fc){const _0x1851f4=_0x24939e[_0x1bf89f(0x140)]?.[_0x1bf89f(0x139)];_0x24939e['method']===_0x1bf89f(0x13a)&&typeof _0x1851f4==='string'&&_0x24939e['pageId']&&_0x7f4696['set'](_0x24939e['pageId'],_0x1851f4);}for(const _0x43493e of _0x3498e){const _0x5b6343=_0x43493e,_0xf8824f=_0x5b6343['params'],_0x3ebd8e=_0xf8824f?.[_0x1bf89f(0x139)];_0x5b6343[_0x1bf89f(0x145)]==='event'&&_0x254e0b['KjgUQ'](_0x5b6343[_0x1bf89f(0x151)],'navigated')&&_0x254e0b[_0x1bf89f(0x14d)](typeof _0x3ebd8e,_0x254e0b[_0x1bf89f(0x155)])&&_0x254e0b[_0x1bf89f(0x157)](typeof _0x5b6343['pageId'],_0x254e0b['eduuH'])&&_0x7f4696[_0x1bf89f(0x146)](_0x5b6343[_0x1bf89f(0x15a)],_0x3ebd8e);}for(const _0x184f13 of _0x137f30){const _0x268144=new Date(_0x184f13['capturedAt'])[_0x1bf89f(0x131)](),_0x2b9e2d=_0x254e0b['XlgGl'](_0x268144,_0x3232ca);let _0x14b19c=null,_0x577396=Infinity;for(const _0x536c9b of _0x2d98fc){const _0x2179c4=Math[_0x1bf89f(0x15b)](_0x254e0b['XlgGl'](_0x536c9b['endTime'],_0x2b9e2d));_0x254e0b[_0x1bf89f(0x147)](_0x2179c4,_0x577396)&&(_0x577396=_0x2179c4,_0x14b19c=_0x536c9b);}if(!_0x14b19c)continue;const _0x41dd4c=_0x14b19c['afterSnapshot']||_0x14b19c['beforeSnapshot'];if(!_0x41dd4c)continue;const _0x501aba=_0x14b19c[_0x1bf89f(0x15a)]||'page@0';let _0x108f86=_0xd63fab['get'](_0x41dd4c)||_0x7f4696[_0x1bf89f(0x133)](_0x501aba)||'';if(!_0x108f86)for(let _0x18aa15=_0x2d98fc['indexOf'](_0x14b19c);_0x18aa15>=0x0;_0x18aa15--){const _0x539af4=_0x2d98fc[_0x18aa15][_0x1bf89f(0x140)]?.['url'];if(_0x2d98fc[_0x18aa15][_0x1bf89f(0x151)]===_0x1bf89f(0x13a)&&typeof _0x539af4===_0x254e0b['eduuH']){_0x108f86=_0x539af4;break;}}let _0x23d0b9,_0x32787c;const _0x94f7ec=_0x2d98fc['indexOf'](_0x14b19c);if(_0x94f7ec>=0x0&&_0x254e0b[_0x1bf89f(0x144)](_0x94f7ec,_0x254e0b['vddiS'](_0x2d98fc['length'],0x1))){const _0x3d71f0=_0x2d98fc[_0x94f7ec+0x1];_0x3d71f0['point']&&_0x3d71f0['inputSnapshot']&&(_0x23d0b9=_0x3d71f0[_0x1bf89f(0x159)],_0x32787c=_0x3d71f0['inputSnapshot']);}_0x1f845c[_0x1bf89f(0x146)](_0x184f13['stepId'],{'snapshotName':_0x41dd4c,'inputSnapshotName':_0x32787c,'pageId':_0x501aba,'pageUrl':_0x108f86,'callId':_0x14b19c['callId'],'point':_0x23d0b9});}return _0x1f845c;}
@@ -1 +1 @@
1
- function _0x5b9e(_0x5dfa8f,_0x555718){_0x5dfa8f=_0x5dfa8f-0x167;const _0x39fbe4=_0x39fb();let _0x5b9e5c=_0x39fbe4[_0x5dfa8f];return _0x5b9e5c;}function _0x39fb(){const _0x126ce6=['1112420ZWoPSg','22967WoYuXd','1311860FLOmTv','1788990Ruhtkr','2590750cFGdrD','169335sOQAkS','message','45lzVGvt','2744mdbRcS','47124qHdGkg','2124rIPREO','6rhVlEU','2FHVlAr','json'];_0x39fb=function(){return _0x126ce6;};return _0x39fb();}(function(_0x134c5b,_0x1fe0a5){const _0xfb5e13=_0x5b9e,_0x6d48e0=_0x134c5b();while(!![]){try{const _0x514a85=parseInt(_0xfb5e13(0x16e))/0x1*(parseInt(_0xfb5e13(0x170))/0x2)+parseInt(_0xfb5e13(0x167))/0x3+-parseInt(_0xfb5e13(0x172))/0x4+-parseInt(_0xfb5e13(0x174))/0x5*(parseInt(_0xfb5e13(0x16d))/0x6)+parseInt(_0xfb5e13(0x171))/0x7*(-parseInt(_0xfb5e13(0x16a))/0x8)+-parseInt(_0xfb5e13(0x169))/0x9*(-parseInt(_0xfb5e13(0x173))/0xa)+parseInt(_0xfb5e13(0x16b))/0xb*(parseInt(_0xfb5e13(0x16c))/0xc);if(_0x514a85===_0x1fe0a5)break;else _0x6d48e0['push'](_0x6d48e0['shift']());}catch(_0x55ec4d){_0x6d48e0['push'](_0x6d48e0['shift']());}}}(_0x39fb,0xcf8d2));import{getApiBaseUrl}from'./environment.js';export async function getCurrentUser(_0x2be411){const _0x48b085=_0x5b9e,_0x3b8c2a={'nHgfT':function(_0x4ed035){return _0x4ed035();},'CuCaY':function(_0x4b15c0,_0x1bc2b9,_0x56105f){return _0x4b15c0(_0x1bc2b9,_0x56105f);},'sCrSH':function(_0x44944e,_0x2a9221){return _0x44944e instanceof _0x2a9221;}},_0x1f7816=_0x3b8c2a['nHgfT'](getApiBaseUrl);try{const _0x16910a=await _0x3b8c2a['CuCaY'](fetch,_0x1f7816+'/api/v1/mcp/me',{'method':'GET','headers':{'Authorization':'Bearer\x20'+_0x2be411}});if(!_0x16910a['ok'])return{'success':![],'error':_0x16910a['status']+'\x20'+_0x16910a['statusText'],'status':_0x16910a['status']};const _0x51e78e=await _0x16910a[_0x48b085(0x16f)]();return{'success':!![],'user':_0x51e78e};}catch(_0x26cb54){return{'success':![],'error':_0x3b8c2a['sCrSH'](_0x26cb54,Error)?_0x26cb54[_0x48b085(0x168)]:String(_0x26cb54)};}}
1
+ function _0x7724(_0x550961,_0x3e02fc){_0x550961=_0x550961-0x1d8;const _0x4c4db4=_0x4c4d();let _0x772417=_0x4c4db4[_0x550961];return _0x772417;}(function(_0x227cbf,_0x1f59e3){const _0x1f1279=_0x7724,_0x1f63e2=_0x227cbf();while(!![]){try{const _0x38e4e9=-parseInt(_0x1f1279(0x1df))/0x1*(-parseInt(_0x1f1279(0x1e3))/0x2)+parseInt(_0x1f1279(0x1e7))/0x3+-parseInt(_0x1f1279(0x1d8))/0x4+-parseInt(_0x1f1279(0x1dc))/0x5*(parseInt(_0x1f1279(0x1de))/0x6)+parseInt(_0x1f1279(0x1e1))/0x7+-parseInt(_0x1f1279(0x1d9))/0x8+parseInt(_0x1f1279(0x1e4))/0x9;if(_0x38e4e9===_0x1f59e3)break;else _0x1f63e2['push'](_0x1f63e2['shift']());}catch(_0x30dcca){_0x1f63e2['push'](_0x1f63e2['shift']());}}}(_0x4c4d,0xd56be));function _0x4c4d(){const _0x37d55c=['Bearer\x20','1325562tNQifP','1523qLduaP','statusText','622664SGIvLM','/api/v1/mcp/me','2246qVQGMM','26532657bKPxTZ','nWYsk','json','1529520akYJzn','GET','6149112ZRDgmG','12161440cCeRIG','message','status','30eBCCSJ'];_0x4c4d=function(){return _0x37d55c;};return _0x4c4d();}import{getApiBaseUrl}from'./environment.js';export async function getCurrentUser(_0x5db0fa){const _0x1f9258=_0x7724,_0x3c909d={'FOXqg':function(_0x11d3a7,_0x1fa0a2,_0x41d503){return _0x11d3a7(_0x1fa0a2,_0x41d503);},'nWYsk':function(_0xf4db2e,_0x321974){return _0xf4db2e instanceof _0x321974;}},_0x4d66be=getApiBaseUrl();try{const _0x5f0e87=await _0x3c909d['FOXqg'](fetch,_0x4d66be+_0x1f9258(0x1e2),{'method':_0x1f9258(0x1e8),'headers':{'Authorization':_0x1f9258(0x1dd)+_0x5db0fa}});if(!_0x5f0e87['ok'])return{'success':![],'error':_0x5f0e87['status']+'\x20'+_0x5f0e87[_0x1f9258(0x1e0)],'status':_0x5f0e87[_0x1f9258(0x1db)]};const _0x47b243=await _0x5f0e87[_0x1f9258(0x1e6)]();return{'success':!![],'user':_0x47b243};}catch(_0x330c9b){return{'success':![],'error':_0x3c909d[_0x1f9258(0x1e5)](_0x330c9b,Error)?_0x330c9b[_0x1f9258(0x1da)]:String(_0x330c9b)};}}
@@ -1 +1 @@
1
- (function(_0x29ad17,_0x2fbc8c){const _0x2435ed=_0x4c1b,_0x2a6901=_0x29ad17();while(!![]){try{const _0x34be0b=parseInt(_0x2435ed(0xa8))/0x1+-parseInt(_0x2435ed(0xa9))/0x2+-parseInt(_0x2435ed(0xa7))/0x3*(parseInt(_0x2435ed(0xa2))/0x4)+parseInt(_0x2435ed(0xa5))/0x5*(parseInt(_0x2435ed(0xb4))/0x6)+-parseInt(_0x2435ed(0xae))/0x7+parseInt(_0x2435ed(0xb6))/0x8+parseInt(_0x2435ed(0xac))/0x9*(-parseInt(_0x2435ed(0xb2))/0xa);if(_0x34be0b===_0x2fbc8c)break;else _0x2a6901['push'](_0x2a6901['shift']());}catch(_0x399f1d){_0x2a6901['push'](_0x2a6901['shift']());}}}(_0x5859,0x4cc63));import{readFileSync}from'fs';import{existsSync}from'fs';function _0x4c1b(_0x308abc,_0x334fc7){_0x308abc=_0x308abc-0x9d;const _0x585955=_0x5859();let _0x4c1b3a=_0x585955[_0x308abc];return _0x4c1b3a;}import{execSync}from'child_process';import{fileURLToPath}from'url';import{dirname,join}from'path';function _0x5859(){const _0x10ac55=['version','583415iXvuek','map','eApac','utf-8','500KYGbhB','parse','42jhSxUY','ZakdH','1433056SzZvSy','split','pipe','mvESG','bcSFR','trim','98052dlbLid','fytPH','npm\x20view\x20','216065fUXqVo','unknown','45YHGjGw','613118AKWdFh','311568UBoKlm','kRCmG','\x20version','31221aGpfZp'];_0x5859=function(){return _0x10ac55;};return _0x5859();}const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const PACKAGE_NAME='@ranger-testing/ranger-cli';export function getCurrentVersion(){const _0x2e6a20=_0x4c1b,_0x342e1e={'SmJZs':function(_0x4fa5b1,_0x28b5bd){return _0x4fa5b1(_0x28b5bd);},'ZakdH':function(_0x2a25b2,_0x5e3f5d,_0x464b9a){return _0x2a25b2(_0x5e3f5d,_0x464b9a);},'mvESG':_0x2e6a20(0xa6)},_0x4a1afc=[join(__dirname,'..','..','package.json'),join(__dirname,'..','..','..','package.json')];for(const _0x28d568 of _0x4a1afc){if(_0x342e1e['SmJZs'](existsSync,_0x28d568))try{const _0x2811a9=JSON[_0x2e6a20(0xb3)](_0x342e1e[_0x2e6a20(0xb5)](readFileSync,_0x28d568,_0x2e6a20(0xb1)));return _0x2811a9[_0x2e6a20(0xad)]||'unknown';}catch{continue;}}return _0x342e1e[_0x2e6a20(0x9f)];}export function getLatestVersion(){const _0x614c9c=_0x4c1b,_0x58fe66={'fytPH':function(_0x5db92d,_0xe77434,_0x52f4ad){return _0x5db92d(_0xe77434,_0x52f4ad);},'lUOfE':_0x614c9c(0xb1),'iRTrc':_0x614c9c(0x9e),'bcSFR':function(_0x2abc95,_0x1141ec){return _0x2abc95 instanceof _0x1141ec;},'kRCmG':function(_0x174036,_0x50e3c8){return _0x174036(_0x50e3c8);}};try{const _0x5b742b=_0x58fe66[_0x614c9c(0xa3)](execSync,_0x614c9c(0xa4)+PACKAGE_NAME+_0x614c9c(0xab),{'encoding':_0x58fe66['lUOfE'],'timeout':0x2710,'stdio':[_0x58fe66['iRTrc'],_0x614c9c(0x9e),_0x614c9c(0x9e)]});return{'version':_0x5b742b[_0x614c9c(0xa1)]()};}catch(_0x4ae5cc){const _0x5f2c3d=_0x58fe66[_0x614c9c(0xa0)](_0x4ae5cc,Error)?_0x4ae5cc['message']:_0x58fe66[_0x614c9c(0xaa)](String,_0x4ae5cc);return{'error':_0x5f2c3d};}}export function compareVersions(_0x3f4e3b,_0x25af5b){const _0x40ca28=_0x4c1b,_0x3bca5f={'eApac':function(_0x1d61ce,_0x2bcc62){return _0x1d61ce<_0x2bcc62;},'uVBjG':function(_0x545b98,_0x225268){return _0x545b98>_0x225268;}},_0x48d834=_0x3f4e3b[_0x40ca28(0x9d)]('.')[_0x40ca28(0xaf)](Number),_0x26ccca=_0x25af5b[_0x40ca28(0x9d)]('.')['map'](Number);for(let _0x420c21=0x0;_0x3bca5f[_0x40ca28(0xb0)](_0x420c21,0x3);_0x420c21++){const _0x66603f=_0x48d834[_0x420c21]||0x0,_0x277b16=_0x26ccca[_0x420c21]||0x0;if(_0x3bca5f['uVBjG'](_0x277b16,_0x66603f))return 0x1;if(_0x277b16<_0x66603f)return-0x1;}return 0x0;}
1
+ (function(_0x34bb6c,_0x386bdf){const _0x5e7332=_0x1e08,_0x35004a=_0x34bb6c();while(!![]){try{const _0x1cd233=parseInt(_0x5e7332(0x194))/0x1+parseInt(_0x5e7332(0x1a0))/0x2+-parseInt(_0x5e7332(0x191))/0x3+parseInt(_0x5e7332(0x19a))/0x4+-parseInt(_0x5e7332(0x1a3))/0x5+-parseInt(_0x5e7332(0x198))/0x6+-parseInt(_0x5e7332(0x19c))/0x7;if(_0x1cd233===_0x386bdf)break;else _0x35004a['push'](_0x35004a['shift']());}catch(_0x1dc812){_0x35004a['push'](_0x35004a['shift']());}}}(_0x46e2,0xb0232));import{readFileSync}from'fs';function _0x46e2(){const _0x41b31c=['veYBJ','142972uUEAUj','map','package.json','tcDRe','1978806TMzSTx','split','5723912XIGevy','gDMgC','4987500cFBRGT','version','lSTMC','EFwUW','1562794GThhkF','QbjdX','\x20version','838150sJBztY','iDnLx','1271874eYHySL','mmRWa'];_0x46e2=function(){return _0x41b31c;};return _0x46e2();}import{existsSync}from'fs';import{execSync}from'child_process';function _0x1e08(_0x970957,_0x33b427){_0x970957=_0x970957-0x191;const _0x46e28c=_0x46e2();let _0x1e0863=_0x46e28c[_0x970957];return _0x1e0863;}import{fileURLToPath}from'url';import{dirname,join}from'path';const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename);export const PACKAGE_NAME='@ranger-testing/ranger-cli';export function getCurrentVersion(){const _0x5333d7=_0x1e08,_0xa659b8={'veYBJ':function(_0x25fdf9,_0x1276ad,_0x1246e8,_0x17b76d,_0x53329d){return _0x25fdf9(_0x1276ad,_0x1246e8,_0x17b76d,_0x53329d);},'FfAsY':'package.json','QbjdX':function(_0x256a31,_0x16cf2e){return _0x256a31(_0x16cf2e);},'EFwUW':function(_0x799c71,_0x4d956e,_0x1be2b4){return _0x799c71(_0x4d956e,_0x1be2b4);},'uFBTM':'utf-8','wBTlH':'unknown'},_0x348f89=[_0xa659b8[_0x5333d7(0x193)](join,__dirname,'..','..',_0xa659b8['FfAsY']),join(__dirname,'..','..','..',_0x5333d7(0x196))];for(const _0x585d86 of _0x348f89){if(_0xa659b8[_0x5333d7(0x1a1)](existsSync,_0x585d86))try{const _0x14da49=JSON['parse'](_0xa659b8[_0x5333d7(0x19f)](readFileSync,_0x585d86,_0xa659b8['uFBTM']));return _0x14da49[_0x5333d7(0x19d)]||_0xa659b8['wBTlH'];}catch{continue;}}return'unknown';}export function getLatestVersion(){const _0x26b5cc=_0x1e08,_0x41ef8e={'iDnLx':function(_0x15541e,_0x371626,_0xa1f8e){return _0x15541e(_0x371626,_0xa1f8e);},'lSTMC':'pipe','gDMgC':function(_0x47c533,_0x3bfd9b){return _0x47c533(_0x3bfd9b);}};try{const _0x3d8583=_0x41ef8e[_0x26b5cc(0x1a4)](execSync,'npm\x20view\x20'+PACKAGE_NAME+_0x26b5cc(0x1a2),{'encoding':'utf-8','timeout':0x2710,'stdio':[_0x41ef8e['lSTMC'],_0x41ef8e[_0x26b5cc(0x19e)],_0x41ef8e['lSTMC']]});return{'version':_0x3d8583['trim']()};}catch(_0x2163c0){const _0x3aabdc=_0x2163c0 instanceof Error?_0x2163c0['message']:_0x41ef8e[_0x26b5cc(0x19b)](String,_0x2163c0);return{'error':_0x3aabdc};}}export function compareVersions(_0x4d82b8,_0x453fbd){const _0x4df7c5=_0x1e08,_0x15e2c0={'mmRWa':function(_0x42528f,_0x46e38b){return _0x42528f<_0x46e38b;},'tcDRe':function(_0x435d52,_0x4ba36c){return _0x435d52>_0x4ba36c;},'dgpfb':function(_0x1960d8,_0x2a3871){return _0x1960d8<_0x2a3871;}},_0x797d10=_0x4d82b8[_0x4df7c5(0x199)]('.')[_0x4df7c5(0x195)](Number),_0x4efa69=_0x453fbd['split']('.')[_0x4df7c5(0x195)](Number);for(let _0x5d02df=0x0;_0x15e2c0[_0x4df7c5(0x192)](_0x5d02df,0x3);_0x5d02df++){const _0x53e426=_0x797d10[_0x5d02df]||0x0,_0x2e30fa=_0x4efa69[_0x5d02df]||0x0;if(_0x15e2c0[_0x4df7c5(0x197)](_0x2e30fa,_0x53e426))return 0x1;if(_0x15e2c0['dgpfb'](_0x2e30fa,_0x53e426))return-0x1;}return 0x0;}