@ranger-testing/ranger-cli 3.1.6-alpha.aca5f9c-53 → 3.1.6-alpha.cbf7608-55

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 (86) hide show
  1. package/build/cli.js +1 -1
  2. package/build/commands/addEnv.js +1 -1
  3. package/build/commands/authEncrypt.js +1 -1
  4. package/build/commands/clean.js +1 -1
  5. package/build/commands/config.js +1 -1
  6. package/build/commands/deleteProfile.js +1 -1
  7. package/build/commands/env.js +1 -1
  8. package/build/commands/feature.js +1 -1
  9. package/build/commands/hook.js +1 -1
  10. package/build/commands/hooks/autoPrompt.js +1 -1
  11. package/build/commands/hooks/disable.js +1 -1
  12. package/build/commands/hooks/enable.js +1 -1
  13. package/build/commands/hooks/exitPlanMode.js +1 -1
  14. package/build/commands/hooks/index.js +1 -1
  15. package/build/commands/hooks/output.js +1 -1
  16. package/build/commands/hooks/planReminder.js +1 -1
  17. package/build/commands/hooks/planStart.js +1 -1
  18. package/build/commands/hooks/postEdit.js +1 -1
  19. package/build/commands/hooks/preCompact.js +1 -1
  20. package/build/commands/hooks/sessionEnd.js +1 -1
  21. package/build/commands/hooks/sessionStart.js +1 -1
  22. package/build/commands/hooks/stopHook.js +1 -1
  23. package/build/commands/index.js +1 -1
  24. package/build/commands/login.js +1 -1
  25. package/build/commands/mcpBootstrap.js +1 -1
  26. package/build/commands/migrateProfile.js +1 -1
  27. package/build/commands/setup/claude.js +1 -1
  28. package/build/commands/setup/opencode.js +1 -1
  29. package/build/commands/setupCi.js +1 -1
  30. package/build/commands/skillup.js +1 -1
  31. package/build/commands/start.js +1 -1
  32. package/build/commands/status.js +1 -1
  33. package/build/commands/update.js +1 -1
  34. package/build/commands/updateEnv.js +1 -1
  35. package/build/commands/useEnv.js +1 -1
  36. package/build/commands/utils/activeProfile.js +1 -1
  37. package/build/commands/utils/agentEnv.js +1 -1
  38. package/build/commands/utils/browserSessionsApi.js +1 -1
  39. package/build/commands/utils/claudeConfig.js +1 -1
  40. package/build/commands/utils/claudeOverrideSettings.js +1 -1
  41. package/build/commands/utils/claudePlugin.js +1 -1
  42. package/build/commands/utils/cloudProfile.js +1 -1
  43. package/build/commands/utils/cloudProfileSession.js +1 -1
  44. package/build/commands/utils/crypto.js +1 -1
  45. package/build/commands/utils/desirePathLog.js +1 -1
  46. package/build/commands/utils/deviceAuth.js +1 -1
  47. package/build/commands/utils/environment.js +1 -1
  48. package/build/commands/utils/featureApi.js +1 -1
  49. package/build/commands/utils/fixWebmDuration.js +1 -1
  50. package/build/commands/utils/gitTracked.js +1 -1
  51. package/build/commands/utils/keychain.js +1 -1
  52. package/build/commands/utils/legacyWarning.js +1 -1
  53. package/build/commands/utils/localAgentInstallationsApi.js +1 -1
  54. package/build/commands/utils/matchAuthEnvironment.js +1 -1
  55. package/build/commands/utils/mcpImageBase64.js +1 -1
  56. package/build/commands/utils/model.js +1 -1
  57. package/build/commands/utils/novaActCli.js +1 -1
  58. package/build/commands/utils/opencodeConfig.js +1 -1
  59. package/build/commands/utils/organizationEnvApi.js +1 -1
  60. package/build/commands/utils/playwrightCli.js +1 -1
  61. package/build/commands/utils/profileMessages.js +1 -1
  62. package/build/commands/utils/profileSetupBanner.js +1 -1
  63. package/build/commands/utils/projectsConfig.js +1 -1
  64. package/build/commands/utils/rangerConfig.js +1 -1
  65. package/build/commands/utils/rangerRoot.js +1 -1
  66. package/build/commands/utils/rangerwrightCli.js +1 -1
  67. package/build/commands/utils/resolveProfileContext.js +1 -1
  68. package/build/commands/utils/resolveProfileUrl.js +1 -1
  69. package/build/commands/utils/retry.js +1 -1
  70. package/build/commands/utils/scenarioOriginCheck.js +1 -1
  71. package/build/commands/utils/sessionCache.js +1 -1
  72. package/build/commands/utils/settings.js +1 -1
  73. package/build/commands/utils/skillContent.js +1 -1
  74. package/build/commands/utils/skills.js +1 -1
  75. package/build/commands/utils/stitchWebmFiles.js +1 -1
  76. package/build/commands/utils/telemetry.js +1 -1
  77. package/build/commands/utils/tokenRefresh.js +1 -1
  78. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  79. package/build/commands/utils/tunnelClient.js +1 -1
  80. package/build/commands/utils/userApi.js +1 -1
  81. package/build/commands/utils/version.js +1 -1
  82. package/build/commands/verifyFeature.js +1 -1
  83. package/build/commands/verifyFeatureCli.js +1 -1
  84. package/build/commands/verifyFeatureNovaCli.js +1 -1
  85. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  86. package/package.json +14 -5
@@ -1 +1 @@
1
- const _0x1cad9f=_0x18dd;(function(_0x52e604,_0x528122){const _0x21097b=_0x18dd,_0x2c9ee1=_0x52e604();while(!![]){try{const _0x4ebae6=-parseInt(_0x21097b(0x225))/0x1+parseInt(_0x21097b(0x21c))/0x2*(-parseInt(_0x21097b(0x21a))/0x3)+parseInt(_0x21097b(0x22d))/0x4+-parseInt(_0x21097b(0x206))/0x5+-parseInt(_0x21097b(0x227))/0x6+-parseInt(_0x21097b(0x22e))/0x7*(-parseInt(_0x21097b(0x1fc))/0x8)+-parseInt(_0x21097b(0x21e))/0x9*(-parseInt(_0x21097b(0x218))/0xa);if(_0x4ebae6===_0x528122)break;else _0x2c9ee1['push'](_0x2c9ee1['shift']());}catch(_0x84013){_0x2c9ee1['push'](_0x2c9ee1['shift']());}}}(_0x4061,0x410c1));function _0x18dd(_0x51db1f,_0x4974a9){_0x51db1f=_0x51db1f-0x1ef;const _0x406143=_0x4061();let _0x18dd8b=_0x406143[_0x51db1f];return _0x18dd8b;}import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_DURATION=0x4489,ID_VOID=0xec,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x3c8773,_0x8babdf){const _0x1fe175=_0x18dd,_0x32cbe5={'uYVYh':function(_0x572322,_0x5b4e3c){return _0x572322>=_0x5b4e3c;},'JcJpa':function(_0x280d00,_0x8d891f){return _0x280d00>_0x8d891f;},'gnDbL':function(_0x5211cb,_0x16102c){return _0x5211cb<_0x16102c;},'UsTKy':function(_0x3afd57,_0xb8e4da){return _0x3afd57*_0xb8e4da;}};if(_0x32cbe5[_0x1fe175(0x234)](_0x8babdf,_0x3c8773['length']))return[0x0,0x0];const _0x4651c0=_0x3c8773[_0x8babdf];let _0xa3752d=0x1,_0x2d359e=0x80;while(_0xa3752d<=0x8&&!(_0x4651c0&_0x2d359e)){_0xa3752d++,_0x2d359e>>=0x1;}if(_0x32cbe5[_0x1fe175(0x238)](_0x8babdf+_0xa3752d,_0x3c8773['length']))return[0x0,0x0];let _0x5e0feb=_0x4651c0&_0x2d359e-0x1;for(let _0x60a474=0x1;_0x32cbe5[_0x1fe175(0x239)](_0x60a474,_0xa3752d);_0x60a474++){_0x5e0feb=_0x32cbe5[_0x1fe175(0x1f8)](_0x5e0feb,0x100)+_0x3c8773[_0x8babdf+_0x60a474];}return[_0x5e0feb,_0xa3752d];}function readId(_0x1ff09a,_0x398567){const _0x2fe6ad=_0x18dd,_0x284497={'tGQqe':function(_0x223e31,_0x13f0dd){return _0x223e31>=_0x13f0dd;},'hYyAY':function(_0x1f780f,_0x5a9d66){return _0x1f780f>=_0x5a9d66;},'dnidq':function(_0x33b4b8,_0x28e0db){return _0x33b4b8>_0x28e0db;},'OeFDh':function(_0x15e289,_0x3573f9){return _0x15e289+_0x3573f9;},'rIpsr':function(_0x179f9f,_0x36728c){return _0x179f9f<_0x36728c;},'iLwfb':function(_0x565de5,_0x2613cf){return _0x565de5+_0x2613cf;}};if(_0x284497['tGQqe'](_0x398567,_0x1ff09a[_0x2fe6ad(0x1f3)]))return[0x0,0x0];const _0x16a40a=_0x1ff09a[_0x398567];let _0xd70bd2;if(_0x16a40a>=0x80)_0xd70bd2=0x1;else{if(_0x284497[_0x2fe6ad(0x21f)](_0x16a40a,0x40))_0xd70bd2=0x2;else{if(_0x16a40a>=0x20)_0xd70bd2=0x3;else{if(_0x16a40a>=0x10)_0xd70bd2=0x4;else return[_0x16a40a,0x1];}}}if(_0x284497['dnidq'](_0x284497[_0x2fe6ad(0x228)](_0x398567,_0xd70bd2),_0x1ff09a[_0x2fe6ad(0x1f3)]))return[0x0,0x0];let _0x5c0dea=0x0;for(let _0x48e687=0x0;_0x284497['rIpsr'](_0x48e687,_0xd70bd2);_0x48e687++){_0x5c0dea=_0x284497[_0x2fe6ad(0x233)](_0x5c0dea*0x100,_0x1ff09a[_0x398567+_0x48e687]);}return[_0x5c0dea,_0xd70bd2];}function readUint(_0x468cda,_0x5ad5b5,_0x2fdf4e){const _0xb34bef=_0x18dd,_0x5e2315={'WJgsy':function(_0x63a193,_0x395152){return _0x63a193+_0x395152;},'LRCXV':function(_0x553d43,_0x361bfb){return _0x553d43*_0x361bfb;},'QfENO':function(_0x135f9b,_0x2619fe){return _0x135f9b+_0x2619fe;}};let _0x1f7338=0x0;for(let _0x45a887=0x0;_0x45a887<_0x2fdf4e;_0x45a887++){_0x1f7338=_0x5e2315['WJgsy'](_0x5e2315[_0xb34bef(0x207)](_0x1f7338,0x100),_0x468cda[_0x5e2315['QfENO'](_0x5ad5b5,_0x45a887)]);}return _0x1f7338;}function isUnknownSize(_0x95a52,_0x726fa0){const _0x590a18=_0x18dd,_0x3c6392={'DVgIB':function(_0x8d23f0,_0x3a1b6e){return _0x8d23f0-_0x3a1b6e;},'PatoJ':function(_0x3ae555,_0x3d84f8){return _0x3ae555*_0x3d84f8;}};return _0x95a52===_0x3c6392[_0x590a18(0x23a)](Math[_0x590a18(0x1f5)](0x2,_0x3c6392['PatoJ'](0x7,_0x726fa0)),0x1);}function writeId(_0x5d2975){const _0x42f04b=_0x18dd,_0x4e115a={'CZWtH':function(_0x10e187,_0x17fc81){return _0x10e187<=_0x17fc81;},'oywYh':function(_0x2c49b1,_0x2c3cc3){return _0x2c49b1&_0x2c3cc3;},'ilZYs':function(_0x453fc6,_0x5f14c4){return _0x453fc6&_0x5f14c4;},'csJbE':function(_0xd7f8fa,_0x2e4e9c){return _0xd7f8fa&_0x2e4e9c;},'uCCQJ':function(_0x23cf0c,_0x400484){return _0x23cf0c>>_0x400484;},'ibAem':function(_0x26d9e1,_0x130cd0){return _0x26d9e1&_0x130cd0;},'EgaCZ':function(_0x4a05c2,_0x1e4dee){return _0x4a05c2&_0x1e4dee;}};if(_0x5d2975<=0xff)return Buffer['from']([_0x5d2975]);if(_0x4e115a[_0x42f04b(0x23b)](_0x5d2975,0xffff))return Buffer[_0x42f04b(0x23c)]([_0x4e115a[_0x42f04b(0x204)](_0x5d2975>>0x8,0xff),_0x4e115a['ilZYs'](_0x5d2975,0xff)]);if(_0x4e115a['CZWtH'](_0x5d2975,0xffffff))return Buffer['from']([_0x4e115a[_0x42f04b(0x204)](_0x5d2975>>0x10,0xff),_0x5d2975>>0x8&0xff,_0x4e115a['oywYh'](_0x5d2975,0xff)]);return Buffer['from']([_0x4e115a['csJbE'](_0x4e115a[_0x42f04b(0x201)](_0x5d2975,0x18),0xff),_0x5d2975>>0x10&0xff,_0x4e115a['ibAem'](_0x4e115a[_0x42f04b(0x201)](_0x5d2975,0x8),0xff),_0x4e115a['EgaCZ'](_0x5d2975,0xff)]);}function writeVint(_0x40b056,_0xb1a92a){const _0x1390b2=_0x18dd,_0x680c8d={'jHjKV':function(_0x205e35,_0x11b58c){return _0x205e35||_0x11b58c;},'SGcKr':function(_0x1b19f1,_0xfc523a){return _0x1b19f1*_0xfc523a;},'westI':function(_0x2e7ae3,_0x98c18a){return _0x2e7ae3>=_0x98c18a;},'bgHOa':function(_0x55986c,_0x41791b){return _0x55986c&_0x41791b;},'eBVKk':function(_0x34cf2f,_0x572f5a){return _0x34cf2f<<_0x572f5a;}};let _0x23113d=_0x680c8d['jHjKV'](_0xb1a92a,0x1);while(Math['pow'](0x2,_0x680c8d['SGcKr'](0x7,_0x23113d))-0x2<_0x40b056)_0x23113d++;const _0x567a87=Buffer[_0x1390b2(0x20f)](_0x23113d);for(let _0x59ad51=_0x23113d-0x1;_0x680c8d[_0x1390b2(0x22f)](_0x59ad51,0x0);_0x59ad51--){_0x567a87[_0x59ad51]=_0x680c8d['bgHOa'](_0x40b056,0xff),_0x40b056=Math['floor'](_0x40b056/0x100);}return _0x567a87[0x0]|=_0x680c8d[_0x1390b2(0x200)](0x1,0x8-_0x23113d),_0x567a87;}function writeFloat64(_0x3c99da){const _0x4ffd0b=_0x18dd,_0x3ede59=Buffer['alloc'](0x8);return _0x3ede59[_0x4ffd0b(0x1f9)](_0x3c99da,0x0),_0x3ede59;}function writeVoid(_0x1a96fe){const _0x1b5e89=_0x18dd,_0x23e7da={'ynkpM':function(_0x4f8709,_0x4f2062){return _0x4f8709<=_0x4f2062;},'zmzNa':function(_0x88eaf4,_0xf3aa90){return _0x88eaf4-_0xf3aa90;},'UVmbH':function(_0x10acbb,_0x20b5a1){return _0x10acbb>=_0x20b5a1;},'PiyyP':function(_0x2be9d8,_0x300680){return _0x2be9d8*_0x300680;}};for(let _0x5b781d=0x1;_0x23e7da[_0x1b5e89(0x1f2)](_0x5b781d,0x8);_0x5b781d++){const _0x7ec653=_0x23e7da[_0x1b5e89(0x219)](_0x1a96fe-0x1,_0x5b781d);if(_0x23e7da[_0x1b5e89(0x229)](_0x7ec653,0x0)&&_0x7ec653<=Math['pow'](0x2,_0x23e7da['PiyyP'](0x7,_0x5b781d))-0x2)return Buffer[_0x1b5e89(0x213)]([Buffer['from']([ID_VOID]),writeVint(_0x7ec653,_0x5b781d),Buffer['alloc'](_0x7ec653)]);}return Buffer['alloc'](0x0);}function findElement(_0x3e5774,_0xdaf244,_0x4b07c6,_0x1cf0dc){const _0x2bfa7e=_0x18dd,_0x51ae32={'FZUMI':function(_0x257aaf,_0x4c0743,_0x8e378b){return _0x257aaf(_0x4c0743,_0x8e378b);},'rOqrr':function(_0x1def47,_0x27fc5b,_0x12dd27){return _0x1def47(_0x27fc5b,_0x12dd27);},'iBFSn':function(_0x3becac,_0x4d2b81){return _0x3becac===_0x4d2b81;},'wruxO':function(_0x1b58ab,_0x2e0af4,_0x5d18f5){return _0x1b58ab(_0x2e0af4,_0x5d18f5);},'yLkFN':function(_0x2e7302,_0x4dab8d){return _0x2e7302+_0x4dab8d;}};let _0x42c8c3=_0xdaf244;while(_0x42c8c3<_0x4b07c6){const [_0x19415c,_0xcc027e]=_0x51ae32[_0x2bfa7e(0x236)](readId,_0x3e5774,_0x42c8c3),[_0x515495,_0x36fd5e]=_0x51ae32[_0x2bfa7e(0x1fe)](readVint,_0x3e5774,_0x42c8c3+_0xcc027e);if(_0x51ae32[_0x2bfa7e(0x222)](_0x19415c,_0x1cf0dc))return{'offset':_0x42c8c3,'idLen':_0xcc027e,'sizeLen':_0x36fd5e,'dataSize':_0x515495,'dataOffset':_0x42c8c3+_0xcc027e+_0x36fd5e};if(_0x51ae32['wruxO'](isUnknownSize,_0x515495,_0x36fd5e))break;_0x42c8c3+=_0x51ae32['yLkFN'](_0x51ae32[_0x2bfa7e(0x22a)](_0xcc027e,_0x36fd5e),_0x515495);}return null;}function computeDurationMs(_0x49e0c1,_0x16a8d7){const _0x5e2376=_0x18dd,_0x583ecf={'rGnts':function(_0x2fc3e2,_0x5dfafa){return _0x2fc3e2===_0x5dfafa;},'AEQpc':function(_0x323cb4,_0x768e3){return _0x323cb4<_0x768e3;},'aePlv':function(_0x4c0b7f,_0x5f5bd7){return _0x4c0b7f!==_0x5f5bd7;},'oywQb':function(_0x5aa297,_0x466b74){return _0x5aa297+_0x466b74;},'GrwpC':function(_0x2f9110,_0x23c4bf,_0x528083){return _0x2f9110(_0x23c4bf,_0x528083);},'Yabag':function(_0xb62b1a,_0x260393){return _0xb62b1a-_0x260393;},'MoOgG':function(_0x3015eb,_0x54b822){return _0x3015eb+_0x54b822;},'EspjX':function(_0x57e486,_0x418c77){return _0x57e486<_0x418c77;},'jzFVT':function(_0x178df7,_0x552e5d,_0x2cd82a){return _0x178df7(_0x552e5d,_0x2cd82a);},'wahiC':function(_0x4311d6,_0x301480){return _0x4311d6+_0x301480;},'QvNJv':function(_0x16af24,_0x528f27,_0x326288,_0x16a786){return _0x16af24(_0x528f27,_0x326288,_0x16a786);},'lKfhD':function(_0x3f71e9,_0xa9ce0b){return _0x3f71e9*_0xa9ce0b;},'UAzbq':function(_0x5b3041,_0x1bfc70){return _0x5b3041>_0x1bfc70;},'fIeKF':function(_0x535b6a,_0xa5ccea){return _0x535b6a+_0xa5ccea;}};let _0x2cb89d=0x0;const _0x43faf3=Buffer[_0x5e2376(0x23c)]([0x1f,0x43,0xb6,0x75]);let _0x3fc65b=_0x49e0c1[_0x5e2376(0x205)](_0x43faf3);if(_0x583ecf['rGnts'](_0x3fc65b,-0x1))return 0x0;while(_0x583ecf[_0x5e2376(0x22c)](_0x3fc65b,_0x49e0c1['length'])){const [_0x55da7d,_0x165c5e]=readId(_0x49e0c1,_0x3fc65b);if(_0x583ecf[_0x5e2376(0x1f4)](_0x55da7d,ID_CLUSTER))break;const [_0x4f907b,_0x1870f4]=readVint(_0x49e0c1,_0x583ecf['oywQb'](_0x3fc65b,_0x165c5e)),_0xcbc844=_0x3fc65b+_0x165c5e+_0x1870f4,_0x2111e8=_0x583ecf['GrwpC'](isUnknownSize,_0x4f907b,_0x1870f4);let _0x159149;if(_0x2111e8){let _0x4a57d6=_0xcbc844;while(_0x583ecf[_0x5e2376(0x22c)](_0x4a57d6,_0x583ecf[_0x5e2376(0x212)](_0x49e0c1[_0x5e2376(0x1f3)],0x4))){const [_0x2179e1,_0x181ca1]=readId(_0x49e0c1,_0x4a57d6);if(_0x583ecf['rGnts'](_0x2179e1,ID_CLUSTER)){_0x159149=_0x4a57d6;break;}const [_0x5a0d70,_0x5cbdc7]=_0x583ecf[_0x5e2376(0x1ff)](readVint,_0x49e0c1,_0x583ecf[_0x5e2376(0x217)](_0x4a57d6,_0x181ca1));if(isUnknownSize(_0x5a0d70,_0x5cbdc7)){_0x159149=_0x49e0c1[_0x5e2376(0x1f3)];break;}_0x4a57d6+=_0x583ecf['oywQb'](_0x181ca1+_0x5cbdc7,_0x5a0d70);}_0x159149??=_0x49e0c1[_0x5e2376(0x1f3)];}else _0x159149=_0x583ecf[_0x5e2376(0x217)](_0xcbc844,_0x4f907b);let _0x38cfdd=0x0,_0x1c0dd4=_0xcbc844;while(_0x583ecf[_0x5e2376(0x20c)](_0x1c0dd4,_0x159149)){const [_0x1b5a41,_0x569f55]=_0x583ecf[_0x5e2376(0x22b)](readId,_0x49e0c1,_0x1c0dd4),[_0x39436e,_0x500250]=readVint(_0x49e0c1,_0x583ecf['wahiC'](_0x1c0dd4,_0x569f55));if(_0x1b5a41===ID_TIMESTAMP)_0x38cfdd=_0x583ecf[_0x5e2376(0x221)](readUint,_0x49e0c1,_0x583ecf[_0x5e2376(0x217)](_0x583ecf['oywQb'](_0x1c0dd4,_0x569f55),_0x500250),_0x39436e);else{if(_0x1b5a41===ID_SIMPLE_BLOCK&&_0x39436e>=0x4){const _0xd0abd5=_0x1c0dd4+_0x569f55+_0x500250,[,_0x392e01]=readVint(_0x49e0c1,_0xd0abd5),_0x88d838=_0x49e0c1['readInt16BE'](_0xd0abd5+_0x392e01),_0x34426b=_0x583ecf['lKfhD'](_0x38cfdd+_0x88d838,_0x16a8d7)/0xf4240;_0x583ecf[_0x5e2376(0x231)](_0x34426b,_0x2cb89d)&&(_0x2cb89d=_0x34426b);}else{if(_0x1b5a41===ID_CLUSTER)break;}}if(isUnknownSize(_0x39436e,_0x500250))break;_0x1c0dd4+=_0x583ecf[_0x5e2376(0x1fd)](_0x569f55+_0x500250,_0x39436e);}_0x3fc65b=_0x159149;}return _0x2cb89d;}function _0x4061(){const _0x35f0be=['QvNJv','iBFSn','TsGmc','Could\x20not\x20find\x20Info\x20element','456512QbZjgm','MCtgv','2395782LYGsXn','OeFDh','UVmbH','yLkFN','jzFVT','AEQpc','901728VMTlao','827428WSWCxf','westI','VjmpG','UAzbq','dataOffset','iLwfb','uYVYh','QoJAf','FZUMI','QBWOC','JcJpa','gnDbL','DVgIB','CZWtH','from','edUgA','oRPhO','min','ynkpM','length','aePlv','pow','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','ClJlF','UsTKy','writeDoubleBE','error','AtQCG','16IgOsEY','fIeKF','rOqrr','GrwpC','eBVKk','uCCQJ','wjZrR','QaICS','oywYh','indexOf','1163460FACOWp','LRCXV','HxhBX','RlpFE','dataSize','LikBE','EspjX','fixWebmDuration.ts','Could\x20not\x20compute\x20duration','alloc','argv','Fixed:\x20','Yabag','concat','UdzHh','offset','uSPUz','MoOgG','100QYiAGj','zmzNa','295149JFnnEU','slice','4xeIRNU','log','980874nzUnRq','hYyAY','endsWith'];_0x4061=function(){return _0x35f0be;};return _0x4061();}export function fixWebmDuration(_0x44e8fc,_0x188381){const _0x383e10=_0x18dd,_0x57e00e={'UdzHh':function(_0x2fc1c3,_0x15f3c5,_0x5340d0){return _0x2fc1c3(_0x15f3c5,_0x5340d0);},'QBWOC':function(_0xb8876b,_0x550c2d){return _0xb8876b+_0x550c2d;},'HxhBX':function(_0x8d9c9c,_0x4d529f){return _0x8d9c9c+_0x4d529f;},'aBFEB':function(_0x3d5554,_0x46daa2,_0xf47b5c){return _0x3d5554(_0x46daa2,_0xf47b5c);},'MCtgv':function(_0x14c8a5,_0x2ef4a5){return _0x14c8a5+_0x2ef4a5;},'TsGmc':function(_0xbb9264,_0xc12f3b){return _0xbb9264<_0xc12f3b;},'BxJuW':function(_0x140211,_0x563f07,_0x2ba8b3){return _0x140211(_0x563f07,_0x2ba8b3);},'AXrhK':function(_0x4fb7e9,_0x1f4d89,_0x4b6132){return _0x4fb7e9(_0x1f4d89,_0x4b6132);},'QoJAf':function(_0x56f5fd,_0x2a2782){return _0x56f5fd===_0x2a2782;},'RlpFE':_0x383e10(0x224),'LikBE':function(_0x36f09f,_0xf3c2c8,_0x45f6ff,_0x295217,_0x1f0419){return _0x36f09f(_0xf3c2c8,_0x45f6ff,_0x295217,_0x1f0419);},'AtQCG':function(_0x2c1737,_0x35a9dd){return _0x2c1737+_0x35a9dd;},'wjZrR':function(_0x3eeb94,_0x2bcecc,_0xd31dee,_0x4f8365){return _0x3eeb94(_0x2bcecc,_0xd31dee,_0x4f8365);},'uSPUz':function(_0x1bdf86,_0xe73e97){return _0x1bdf86<=_0xe73e97;},'oRPhO':_0x383e10(0x20e),'BYLJK':function(_0x50bd95,_0x1ea436){return _0x50bd95/_0x1ea436;},'fNumF':function(_0x480d5d,_0x27b5d7){return _0x480d5d(_0x27b5d7);},'ClJlF':function(_0x1b7221,_0x27ded5){return _0x1b7221(_0x27ded5);},'VjmpG':function(_0x256a29,_0x570aac){return _0x256a29(_0x570aac);},'YOUfc':function(_0x150e6d,_0x48f59a){return _0x150e6d<_0x48f59a;},'OICRd':function(_0x4add1e,_0x2b58e2,_0x55fa8e){return _0x4add1e(_0x2b58e2,_0x55fa8e);},'QaICS':function(_0x15e74d,_0x549615,_0x37be24,_0x4e3aa1,_0x46a0c5,_0x2478d1,_0x2beabe){return _0x15e74d(_0x549615,_0x37be24,_0x4e3aa1,_0x46a0c5,_0x2478d1,_0x2beabe);}},_0x3d7b2a=readFileSync(_0x44e8fc);let _0x282ded=0x0;const [_0x453f2a,_0x4b9ae2]=readId(_0x3d7b2a,_0x282ded),[_0x998fdb,_0x122aee]=_0x57e00e[_0x383e10(0x214)](readVint,_0x3d7b2a,_0x57e00e[_0x383e10(0x237)](_0x282ded,_0x4b9ae2));_0x282ded+=_0x57e00e['HxhBX'](_0x57e00e['QBWOC'](_0x4b9ae2,_0x122aee),_0x998fdb);const [_0x22aebf,_0x19b348]=_0x57e00e['aBFEB'](readId,_0x3d7b2a,_0x282ded);if(_0x22aebf!==ID_SEGMENT)return console[_0x383e10(0x1fa)]('Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment'),![];const [,_0x1570d2]=readVint(_0x3d7b2a,_0x282ded+_0x19b348),_0x420769=_0x57e00e['QBWOC'](_0x282ded+_0x19b348,_0x1570d2);let _0x293365=_0x420769;const _0x5a6c07=Math[_0x383e10(0x1f1)](_0x3d7b2a['length'],_0x57e00e[_0x383e10(0x226)](_0x420769,0x2710));let _0x221602=null,_0x8bf177=null;while(_0x57e00e[_0x383e10(0x223)](_0x293365,_0x5a6c07)){const [_0x41e70b,_0x5cd8db]=_0x57e00e['BxJuW'](readId,_0x3d7b2a,_0x293365),[_0x337347,_0x4a7a0c]=_0x57e00e['AXrhK'](readVint,_0x3d7b2a,_0x293365+_0x5cd8db);_0x57e00e['QoJAf'](_0x41e70b,ID_VOID)&&!_0x221602&&(_0x221602={'offset':_0x293365,'idLen':_0x5cd8db,'sizeLen':_0x4a7a0c,'dataSize':_0x337347,'dataOffset':_0x293365+_0x5cd8db+_0x4a7a0c});if(_0x41e70b===ID_INFO){_0x8bf177={'offset':_0x293365,'idLen':_0x5cd8db,'sizeLen':_0x4a7a0c,'dataSize':_0x337347,'dataOffset':_0x57e00e['HxhBX'](_0x293365,_0x5cd8db)+_0x4a7a0c};break;}if(_0x57e00e[_0x383e10(0x235)](_0x41e70b,ID_CLUSTER))break;if(isUnknownSize(_0x337347,_0x4a7a0c))break;_0x293365+=_0x5cd8db+_0x4a7a0c+_0x337347;}if(!_0x8bf177)return console['error'](_0x57e00e[_0x383e10(0x209)]),![];const _0x58b278=_0x57e00e[_0x383e10(0x20b)](findElement,_0x3d7b2a,_0x8bf177[_0x383e10(0x232)],_0x8bf177['dataOffset']+_0x8bf177['dataSize'],ID_DURATION);if(_0x58b278)return![];const _0x59838d=findElement(_0x3d7b2a,_0x8bf177[_0x383e10(0x232)],_0x57e00e[_0x383e10(0x1fb)](_0x8bf177['dataOffset'],_0x8bf177['dataSize']),ID_TIMESTAMP_SCALE);let _0x4a4847=0xf4240;_0x59838d&&(_0x4a4847=_0x57e00e[_0x383e10(0x202)](readUint,_0x3d7b2a,_0x59838d['dataOffset'],_0x59838d[_0x383e10(0x20a)]));const _0x1d4c78=computeDurationMs(_0x3d7b2a,_0x4a4847);if(_0x57e00e[_0x383e10(0x216)](_0x1d4c78,0x0))return console['error'](_0x57e00e[_0x383e10(0x1f0)]),![];const _0xf64683=_0x57e00e['BYLJK'](_0x1d4c78*0xf4240,_0x4a4847),_0x480793=Buffer['concat']([_0x57e00e['fNumF'](writeId,ID_DURATION),_0x57e00e[_0x383e10(0x1f7)](writeVint,0x8),_0x57e00e[_0x383e10(0x230)](writeFloat64,_0xf64683)]),_0x94221d=_0x480793[_0x383e10(0x1f3)];if(!_0x221602||_0x221602[_0x383e10(0x215)]<_0x8bf177['offset']){if(_0x221602){const _0x5507f=_0x57e00e['AtQCG'](_0x221602['idLen'],_0x221602['sizeLen'])+_0x221602['dataSize'],_0x4e41b7=_0x5507f-_0x94221d;if(_0x57e00e['YOUfc'](_0x4e41b7,0x2))return rewriteFile(_0x3d7b2a,_0x8bf177,_0x480793,_0x4a4847,_0x1d4c78,_0x188381);const _0x278eb1=_0x57e00e['HxhBX'](_0x8bf177[_0x383e10(0x20a)],_0x94221d),_0x382d34=Buffer['concat']([_0x57e00e[_0x383e10(0x1f7)](writeId,ID_INFO),_0x57e00e[_0x383e10(0x214)](writeVint,_0x278eb1,_0x8bf177['sizeLen'])]),_0x5c1376=_0x3d7b2a[_0x383e10(0x21b)](_0x8bf177['dataOffset'],_0x8bf177[_0x383e10(0x232)]+_0x8bf177[_0x383e10(0x20a)]),_0x387d80=_0x57e00e['VjmpG'](writeVoid,_0x4e41b7),_0x535b1e=_0x3d7b2a['slice'](0x0,_0x221602['offset']),_0x359929=_0x3d7b2a['slice'](_0x57e00e[_0x383e10(0x208)](_0x8bf177[_0x383e10(0x232)],_0x8bf177['dataSize']));return _0x57e00e['OICRd'](writeFileSync,_0x188381,Buffer['concat']([_0x535b1e,_0x387d80,_0x382d34,_0x5c1376,_0x480793,_0x359929])),!![];}}return _0x57e00e[_0x383e10(0x203)](rewriteFile,_0x3d7b2a,_0x8bf177,_0x480793,_0x4a4847,_0x1d4c78,_0x188381);}function rewriteFile(_0x4aabe9,_0x45fbee,_0x1279fd,_0x15b40c,_0x5f58b0,_0x539a34){const _0x5f27fd=_0x18dd,_0x325bf7={'NAKoq':function(_0x43a58d,_0x19532b){return _0x43a58d+_0x19532b;},'edUgA':function(_0x5b4f79,_0x1b477c,_0x240778){return _0x5b4f79(_0x1b477c,_0x240778);}},_0x1cb2b3=_0x45fbee['dataSize']+_0x1279fd['length'],_0x3f710c=Buffer['concat']([writeId(ID_INFO),writeVint(_0x1cb2b3)]),_0x29d186=_0x325bf7['NAKoq'](_0x45fbee['idLen'],_0x45fbee['sizeLen']),_0x4943be=_0x4aabe9[_0x5f27fd(0x21b)](0x0,_0x45fbee[_0x5f27fd(0x215)]),_0x283046=_0x4aabe9['slice'](_0x45fbee['dataOffset'],_0x45fbee[_0x5f27fd(0x232)]+_0x45fbee[_0x5f27fd(0x20a)]),_0x302037=_0x4aabe9['slice'](_0x325bf7['NAKoq'](_0x45fbee[_0x5f27fd(0x215)]+_0x29d186,_0x45fbee[_0x5f27fd(0x20a)]));return _0x325bf7[_0x5f27fd(0x1ef)](writeFileSync,_0x539a34,Buffer[_0x5f27fd(0x213)]([_0x4943be,_0x3f710c,_0x283046,_0x1279fd,_0x302037])),!![];}if(process['argv'][0x1]?.[_0x1cad9f(0x220)](_0x1cad9f(0x20d))||process['argv'][0x1]?.[_0x1cad9f(0x220)]('fixWebmDuration.js')){const input=process[_0x1cad9f(0x210)][0x2],output=process[_0x1cad9f(0x210)][0x3];(!input||!output)&&(console[_0x1cad9f(0x1fa)]('Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>'),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0x1cad9f(0x21d)](_0x1cad9f(0x211)+output):console[_0x1cad9f(0x21d)](_0x1cad9f(0x1f6));}
1
+ const _0x540dbe=_0x275a;(function(_0x103aab,_0x27b5c5){const _0x39ce34=_0x275a,_0x205a5d=_0x103aab();while(!![]){try{const _0x4b6aad=parseInt(_0x39ce34(0x177))/0x1+-parseInt(_0x39ce34(0x16f))/0x2+-parseInt(_0x39ce34(0x157))/0x3*(parseInt(_0x39ce34(0x15d))/0x4)+-parseInt(_0x39ce34(0x17b))/0x5*(parseInt(_0x39ce34(0x14e))/0x6)+-parseInt(_0x39ce34(0x179))/0x7+-parseInt(_0x39ce34(0x15c))/0x8*(parseInt(_0x39ce34(0x167))/0x9)+parseInt(_0x39ce34(0x181))/0xa;if(_0x4b6aad===_0x27b5c5)break;else _0x205a5d['push'](_0x205a5d['shift']());}catch(_0x32972c){_0x205a5d['push'](_0x205a5d['shift']());}}}(_0x2598,0xb39a0));import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_DURATION=0x4489,ID_VOID=0xec,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_SIMPLE_BLOCK=0xa3;function _0x275a(_0x2a3e8f,_0x1c2afc){_0x2a3e8f=_0x2a3e8f-0x144;const _0x259802=_0x2598();let _0x275a40=_0x259802[_0x2a3e8f];return _0x275a40;}function readVint(_0x1494ea,_0x93b10){const _0x4c9fac=_0x275a,_0x1de7ab={'xzyDi':function(_0x3a0c1f,_0x5f27d8){return _0x3a0c1f>=_0x5f27d8;},'zCFUk':function(_0xea303a,_0x3a2763){return _0xea303a&_0x3a2763;},'pDAnS':function(_0x304ccb,_0x466058){return _0x304ccb&_0x466058;},'NNCCz':function(_0x222213,_0x5aa751){return _0x222213*_0x5aa751;}};if(_0x1de7ab[_0x4c9fac(0x15a)](_0x93b10,_0x1494ea[_0x4c9fac(0x178)]))return[0x0,0x0];const _0x401519=_0x1494ea[_0x93b10];let _0x4766a1=0x1,_0x1cb766=0x80;while(_0x4766a1<=0x8&&!_0x1de7ab['zCFUk'](_0x401519,_0x1cb766)){_0x4766a1++,_0x1cb766>>=0x1;}if(_0x93b10+_0x4766a1>_0x1494ea['length'])return[0x0,0x0];let _0x2711b1=_0x1de7ab['pDAnS'](_0x401519,_0x1cb766-0x1);for(let _0x4e5d45=0x1;_0x4e5d45<_0x4766a1;_0x4e5d45++){_0x2711b1=_0x1de7ab[_0x4c9fac(0x17d)](_0x2711b1,0x100)+_0x1494ea[_0x93b10+_0x4e5d45];}return[_0x2711b1,_0x4766a1];}function _0x2598(){const _0x81d717=['1344092gMkROy','concat','Could\x20not\x20find\x20Info\x20element','knBqR','dataSize','offset','NVlhw','BoimO','1428807bMSGPU','length','10181479CNJIvr','XdnDW','27255vnbrwS','YhJBV','NNCCz','endsWith','tDzVC','error','40918820MejLFI','writeDoubleBE','sZVuJ','fdxpH','fLwuX','WircQ','GQlAq','exit','slice','sizeLen','log','354VJiByF','CFUyg','etJuZ','pow','indexOf','Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>','rHqhz','xgBLp','from','9sachLo','PZDiP','argv','xzyDi','otWzC','32ReqLwX','1279916NzyvZV','tAvAt','ejmfp','jfTwy','NWlIb','WsjUl','vMwbE','cuCHD','wSggl','rUGkL','3098142KAXMMs','UunVh','XNtTG','dataOffset','tkPpo','PtCVX','min','UTcZr'];_0x2598=function(){return _0x81d717;};return _0x2598();}function readId(_0x27c9d4,_0x326769){const _0x279f92=_0x275a,_0x8c7ae0={'Suryr':function(_0x23472b,_0x2910b4){return _0x23472b>=_0x2910b4;},'SrIXl':function(_0x5cb1c3,_0x3a72d5){return _0x5cb1c3>=_0x3a72d5;}};if(_0x326769>=_0x27c9d4['length'])return[0x0,0x0];const _0x7e4193=_0x27c9d4[_0x326769];let _0x53e5e7;if(_0x8c7ae0['Suryr'](_0x7e4193,0x80))_0x53e5e7=0x1;else{if(_0x8c7ae0['SrIXl'](_0x7e4193,0x40))_0x53e5e7=0x2;else{if(_0x7e4193>=0x20)_0x53e5e7=0x3;else{if(_0x7e4193>=0x10)_0x53e5e7=0x4;else return[_0x7e4193,0x1];}}}if(_0x326769+_0x53e5e7>_0x27c9d4[_0x279f92(0x178)])return[0x0,0x0];let _0x48345d=0x0;for(let _0x367606=0x0;_0x367606<_0x53e5e7;_0x367606++){_0x48345d=_0x48345d*0x100+_0x27c9d4[_0x326769+_0x367606];}return[_0x48345d,_0x53e5e7];}function readUint(_0x4c2485,_0x50fbd1,_0x2e5689){let _0x32c3ab=0x0;for(let _0x2880fd=0x0;_0x2880fd<_0x2e5689;_0x2880fd++){_0x32c3ab=_0x32c3ab*0x100+_0x4c2485[_0x50fbd1+_0x2880fd];}return _0x32c3ab;}function isUnknownSize(_0x3346c4,_0x4f765f){const _0x2e8e52=_0x275a,_0x1f2afa={'rHqhz':function(_0x520857,_0x15db0e){return _0x520857*_0x15db0e;}};return _0x3346c4===Math[_0x2e8e52(0x151)](0x2,_0x1f2afa[_0x2e8e52(0x154)](0x7,_0x4f765f))-0x1;}function writeId(_0x43ec86){const _0x1f0296=_0x275a,_0x3a460b={'EoRCW':function(_0x456051,_0x16ea11){return _0x456051<=_0x16ea11;},'xgBLp':function(_0x5d1345,_0x485887){return _0x5d1345&_0x485887;},'NVlhw':function(_0x599eea,_0x2647f0){return _0x599eea>>_0x2647f0;},'UTcZr':function(_0x4f6dd8,_0x444079){return _0x4f6dd8&_0x444079;},'jfTwy':function(_0x3d7f7a,_0x5be698){return _0x3d7f7a<=_0x5be698;},'knBqR':function(_0x5ed1fc,_0x2418ca){return _0x5ed1fc&_0x2418ca;},'UunVh':function(_0x899ec8,_0x376b4e){return _0x899ec8&_0x376b4e;},'tDzVC':function(_0xd8736a,_0x533804){return _0xd8736a&_0x533804;}};if(_0x43ec86<=0xff)return Buffer['from']([_0x43ec86]);if(_0x3a460b['EoRCW'](_0x43ec86,0xffff))return Buffer['from']([_0x3a460b[_0x1f0296(0x155)](_0x3a460b[_0x1f0296(0x175)](_0x43ec86,0x8),0xff),_0x3a460b[_0x1f0296(0x16e)](_0x43ec86,0xff)]);if(_0x3a460b[_0x1f0296(0x160)](_0x43ec86,0xffffff))return Buffer[_0x1f0296(0x156)]([_0x3a460b[_0x1f0296(0x172)](_0x43ec86>>0x10,0xff),_0x3a460b[_0x1f0296(0x168)](_0x43ec86>>0x8,0xff),_0x43ec86&0xff]);return Buffer[_0x1f0296(0x156)]([_0x43ec86>>0x18&0xff,_0x43ec86>>0x10&0xff,_0x3a460b[_0x1f0296(0x17f)](_0x43ec86>>0x8,0xff),_0x3a460b['UTcZr'](_0x43ec86,0xff)]);}function writeVint(_0x48cc07,_0x5e6cef){const _0x432095=_0x275a,_0x2ed2da={'mvnbv':function(_0x391e9b,_0x3017f2){return _0x391e9b<_0x3017f2;},'ymhnC':function(_0x114ba8,_0x2f16d6){return _0x114ba8-_0x2f16d6;},'WsjUl':function(_0x27998f,_0x27348a){return _0x27998f*_0x27348a;},'YhJBV':function(_0x456f55,_0x1c9882){return _0x456f55>=_0x1c9882;},'VPZrG':function(_0x2c49a1,_0x208d30){return _0x2c49a1/_0x208d30;}};let _0x8b24da=_0x5e6cef||0x1;while(_0x2ed2da['mvnbv'](_0x2ed2da['ymhnC'](Math['pow'](0x2,_0x2ed2da[_0x432095(0x162)](0x7,_0x8b24da)),0x2),_0x48cc07))_0x8b24da++;const _0xb9fb9c=Buffer['alloc'](_0x8b24da);for(let _0x2ba76a=_0x8b24da-0x1;_0x2ed2da[_0x432095(0x17c)](_0x2ba76a,0x0);_0x2ba76a--){_0xb9fb9c[_0x2ba76a]=_0x48cc07&0xff,_0x48cc07=Math['floor'](_0x2ed2da['VPZrG'](_0x48cc07,0x100));}return _0xb9fb9c[0x0]|=0x1<<0x8-_0x8b24da,_0xb9fb9c;}function writeFloat64(_0x1f8610){const _0x4f50c5=_0x275a,_0x237c79=Buffer['alloc'](0x8);return _0x237c79[_0x4f50c5(0x144)](_0x1f8610,0x0),_0x237c79;}function writeVoid(_0xc9f3b1){const _0x52cbe4=_0x275a,_0x3cc902={'qWvvD':function(_0x4b04c6,_0x47568){return _0x4b04c6*_0x47568;}};for(let _0x453919=0x1;_0x453919<=0x8;_0x453919++){const _0x6172bc=_0xc9f3b1-0x1-_0x453919;if(_0x6172bc>=0x0&&_0x6172bc<=Math['pow'](0x2,_0x3cc902['qWvvD'](0x7,_0x453919))-0x2)return Buffer[_0x52cbe4(0x170)]([Buffer['from']([ID_VOID]),writeVint(_0x6172bc,_0x453919),Buffer['alloc'](_0x6172bc)]);}return Buffer['alloc'](0x0);}function findElement(_0x114188,_0x10607d,_0x460890,_0x32280c){const _0x135286=_0x275a,_0x56f35d={'sZVuJ':function(_0x5237c7,_0x3cc525){return _0x5237c7+_0x3cc525;},'iHioL':function(_0x575152,_0x1cb568){return _0x575152+_0x1cb568;},'WrWzE':function(_0x2003a8,_0x2df760,_0x54f44a){return _0x2003a8(_0x2df760,_0x54f44a);}};let _0xd9d151=_0x10607d;while(_0xd9d151<_0x460890){const [_0x39a3f4,_0x41c020]=readId(_0x114188,_0xd9d151),[_0x2df5e6,_0x137054]=readVint(_0x114188,_0x56f35d[_0x135286(0x145)](_0xd9d151,_0x41c020));if(_0x39a3f4===_0x32280c)return{'offset':_0xd9d151,'idLen':_0x41c020,'sizeLen':_0x137054,'dataSize':_0x2df5e6,'dataOffset':_0x56f35d['iHioL'](_0xd9d151,_0x41c020)+_0x137054};if(_0x56f35d['WrWzE'](isUnknownSize,_0x2df5e6,_0x137054))break;_0xd9d151+=_0x41c020+_0x137054+_0x2df5e6;}return null;}function computeDurationMs(_0x13215f,_0x37da55){const _0x4108a8=_0x275a,_0x6a780e={'ejmfp':function(_0x28228f,_0x3ec771){return _0x28228f!==_0x3ec771;},'cuCHD':function(_0x466348,_0x45aa83){return _0x466348+_0x45aa83;},'XdnDW':function(_0x1b0d23,_0x432f64){return _0x1b0d23<_0x432f64;},'NvPzi':function(_0xe1b9ac,_0x25c4bf,_0x353a50){return _0xe1b9ac(_0x25c4bf,_0x353a50);},'etJuZ':function(_0x1387f3,_0x299100){return _0x1387f3===_0x299100;},'GQlAq':function(_0x590ee0,_0x1e0877,_0x5d82fe){return _0x590ee0(_0x1e0877,_0x5d82fe);},'fdxpH':function(_0x1845b5,_0x30f9fe){return _0x1845b5+_0x30f9fe;},'BoimO':function(_0x2c6478,_0x1bb1f,_0x99c22,_0x1fdc33){return _0x2c6478(_0x1bb1f,_0x99c22,_0x1fdc33);},'rUGkL':function(_0x28ed90,_0x55b337){return _0x28ed90+_0x55b337;},'yyOSL':function(_0x506597,_0x963a36){return _0x506597>=_0x963a36;},'CYTUc':function(_0x5f6aea,_0x5925fc){return _0x5f6aea+_0x5925fc;},'yWXxB':function(_0x44a78c,_0x1688e0){return _0x44a78c/_0x1688e0;},'PtCVX':function(_0x4d7f72,_0x2c4a25){return _0x4d7f72*_0x2c4a25;},'tkPpo':function(_0x14120a,_0x40767d){return _0x14120a>_0x40767d;},'fLwuX':function(_0x21fc15,_0x252a54){return _0x21fc15===_0x252a54;},'TVzlQ':function(_0x2025c4,_0x4fac68,_0xcf52eb){return _0x2025c4(_0x4fac68,_0xcf52eb);}};let _0x327f2c=0x0;const _0x8dd264=Buffer[_0x4108a8(0x156)]([0x1f,0x43,0xb6,0x75]);let _0x502d97=_0x13215f[_0x4108a8(0x152)](_0x8dd264);if(_0x502d97===-0x1)return 0x0;while(_0x502d97<_0x13215f['length']){const [_0xc37cc5,_0x53a1c8]=readId(_0x13215f,_0x502d97);if(_0x6a780e[_0x4108a8(0x15f)](_0xc37cc5,ID_CLUSTER))break;const [_0x1c2584,_0x4b5ef2]=readVint(_0x13215f,_0x6a780e[_0x4108a8(0x164)](_0x502d97,_0x53a1c8)),_0xc65950=_0x502d97+_0x53a1c8+_0x4b5ef2,_0x2abfa5=isUnknownSize(_0x1c2584,_0x4b5ef2);let _0x3ba2d4;if(_0x2abfa5){let _0x45d16f=_0xc65950;while(_0x6a780e[_0x4108a8(0x17a)](_0x45d16f,_0x13215f[_0x4108a8(0x178)]-0x4)){const [_0x17792b,_0x1b187c]=_0x6a780e['NvPzi'](readId,_0x13215f,_0x45d16f);if(_0x6a780e[_0x4108a8(0x150)](_0x17792b,ID_CLUSTER)){_0x3ba2d4=_0x45d16f;break;}const [_0x97b120,_0xf93188]=readVint(_0x13215f,_0x45d16f+_0x1b187c);if(_0x6a780e[_0x4108a8(0x149)](isUnknownSize,_0x97b120,_0xf93188)){_0x3ba2d4=_0x13215f['length'];break;}_0x45d16f+=_0x6a780e['cuCHD'](_0x1b187c+_0xf93188,_0x97b120);}_0x3ba2d4??=_0x13215f[_0x4108a8(0x178)];}else _0x3ba2d4=_0x6a780e['fdxpH'](_0xc65950,_0x1c2584);let _0x5da18f=0x0,_0xf6120c=_0xc65950;while(_0xf6120c<_0x3ba2d4){const [_0x41c94a,_0x34b5c1]=readId(_0x13215f,_0xf6120c),[_0x3ffae2,_0x55ca91]=_0x6a780e['GQlAq'](readVint,_0x13215f,_0x6a780e['cuCHD'](_0xf6120c,_0x34b5c1));if(_0x41c94a===ID_TIMESTAMP)_0x5da18f=_0x6a780e[_0x4108a8(0x176)](readUint,_0x13215f,_0x6a780e['rUGkL'](_0x6a780e[_0x4108a8(0x166)](_0xf6120c,_0x34b5c1),_0x55ca91),_0x3ffae2);else{if(_0x41c94a===ID_SIMPLE_BLOCK&&_0x6a780e['yyOSL'](_0x3ffae2,0x4)){const _0x27f139=_0x6a780e['CYTUc'](_0x6a780e['cuCHD'](_0xf6120c,_0x34b5c1),_0x55ca91),[,_0x5619b9]=readVint(_0x13215f,_0x27f139),_0x4b5e29=_0x13215f['readInt16BE'](_0x6a780e[_0x4108a8(0x146)](_0x27f139,_0x5619b9)),_0x58ef08=_0x6a780e['yWXxB'](_0x6a780e[_0x4108a8(0x16c)](_0x6a780e['rUGkL'](_0x5da18f,_0x4b5e29),_0x37da55),0xf4240);_0x6a780e[_0x4108a8(0x16b)](_0x58ef08,_0x327f2c)&&(_0x327f2c=_0x58ef08);}else{if(_0x6a780e[_0x4108a8(0x147)](_0x41c94a,ID_CLUSTER))break;}}if(_0x6a780e['TVzlQ'](isUnknownSize,_0x3ffae2,_0x55ca91))break;_0xf6120c+=_0x34b5c1+_0x55ca91+_0x3ffae2;}_0x502d97=_0x3ba2d4;}return _0x327f2c;}export function fixWebmDuration(_0x3b6bb3,_0x1024e9){const _0x4fd880=_0x275a,_0x4a0edf={'GqsXo':function(_0x3ed3d1,_0x15f3bf){return _0x3ed3d1(_0x15f3bf);},'nlBBn':function(_0x5d4592,_0xb3df38,_0x37fb0d){return _0x5d4592(_0xb3df38,_0x37fb0d);},'WircQ':function(_0x2f34d5,_0x4471e8){return _0x2f34d5+_0x4471e8;},'PZDiP':function(_0x45ca31,_0x20e6b7){return _0x45ca31+_0x20e6b7;},'CFUyg':function(_0x32432e,_0x1d77f6){return _0x32432e!==_0x1d77f6;},'xxDZN':function(_0x3a17a1,_0x2445fe,_0xa8afc9){return _0x3a17a1(_0x2445fe,_0xa8afc9);},'MFbOQ':function(_0x51f159,_0xafe0d){return _0x51f159<_0xafe0d;},'XNtTG':function(_0x224321,_0x4dcc6e){return _0x224321+_0x4dcc6e;},'sUzqM':function(_0x34a470,_0x41f7bf,_0x37b472){return _0x34a470(_0x41f7bf,_0x37b472);},'wSggl':function(_0x15b014,_0x564fd0){return _0x15b014+_0x564fd0;},'otWzC':_0x4fd880(0x171),'BdjQT':function(_0x142c29,_0x48541c,_0x3d291b,_0x462f9c){return _0x142c29(_0x48541c,_0x3d291b,_0x462f9c);},'prOUE':function(_0x2d89f0,_0x210f56){return _0x2d89f0<=_0x210f56;},'NWlIb':function(_0x1ac687,_0xcb1247){return _0x1ac687(_0xcb1247);},'MQDJK':function(_0x45f3c1,_0x1ceaaa){return _0x45f3c1+_0x1ceaaa;},'tAvAt':function(_0x269a1a,_0x31fdb5){return _0x269a1a+_0x31fdb5;},'slVna':function(_0x5d0831,_0x2931b2){return _0x5d0831+_0x2931b2;},'dVCIP':function(_0x3c4f3c,_0x9b0ea9){return _0x3c4f3c(_0x9b0ea9);},'kVtct':function(_0x446fca,_0x435a13){return _0x446fca+_0x435a13;}},_0x49f1da=_0x4a0edf['GqsXo'](readFileSync,_0x3b6bb3);let _0xf56a9a=0x0;const [_0x30f4ca,_0x19159d]=_0x4a0edf['nlBBn'](readId,_0x49f1da,_0xf56a9a),[_0x4539d4,_0x14bc32]=readVint(_0x49f1da,_0xf56a9a+_0x19159d);_0xf56a9a+=_0x4a0edf['WircQ'](_0x4a0edf['PZDiP'](_0x19159d,_0x14bc32),_0x4539d4);const [_0x289c62,_0x36e884]=readId(_0x49f1da,_0xf56a9a);if(_0x4a0edf[_0x4fd880(0x14f)](_0x289c62,ID_SEGMENT))return console[_0x4fd880(0x180)]('Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment'),![];const [,_0x5e39e9]=_0x4a0edf['xxDZN'](readVint,_0x49f1da,_0xf56a9a+_0x36e884),_0x1acdbb=_0x4a0edf['PZDiP'](_0x4a0edf['PZDiP'](_0xf56a9a,_0x36e884),_0x5e39e9);let _0x4708f8=_0x1acdbb;const _0x23448a=Math[_0x4fd880(0x16d)](_0x49f1da['length'],_0x4a0edf['WircQ'](_0x1acdbb,0x2710));let _0x297b43=null,_0x5827a8=null;while(_0x4a0edf['MFbOQ'](_0x4708f8,_0x23448a)){const [_0x42beb5,_0x53da98]=readId(_0x49f1da,_0x4708f8),[_0x5e0a8e,_0x16048c]=readVint(_0x49f1da,_0x4708f8+_0x53da98);_0x42beb5===ID_VOID&&!_0x297b43&&(_0x297b43={'offset':_0x4708f8,'idLen':_0x53da98,'sizeLen':_0x16048c,'dataSize':_0x5e0a8e,'dataOffset':_0x4a0edf['XNtTG'](_0x4708f8,_0x53da98)+_0x16048c});if(_0x42beb5===ID_INFO){_0x5827a8={'offset':_0x4708f8,'idLen':_0x53da98,'sizeLen':_0x16048c,'dataSize':_0x5e0a8e,'dataOffset':_0x4a0edf['PZDiP'](_0x4708f8,_0x53da98)+_0x16048c};break;}if(_0x42beb5===ID_CLUSTER)break;if(_0x4a0edf['sUzqM'](isUnknownSize,_0x5e0a8e,_0x16048c))break;_0x4708f8+=_0x4a0edf[_0x4fd880(0x158)](_0x4a0edf[_0x4fd880(0x165)](_0x53da98,_0x16048c),_0x5e0a8e);}if(!_0x5827a8)return console['error'](_0x4a0edf[_0x4fd880(0x15b)]),![];const _0x3262b1=findElement(_0x49f1da,_0x5827a8['dataOffset'],_0x4a0edf[_0x4fd880(0x148)](_0x5827a8['dataOffset'],_0x5827a8['dataSize']),ID_DURATION);if(_0x3262b1)return![];const _0x560f95=findElement(_0x49f1da,_0x5827a8['dataOffset'],_0x5827a8[_0x4fd880(0x16a)]+_0x5827a8['dataSize'],ID_TIMESTAMP_SCALE);let _0x5a76e5=0xf4240;_0x560f95&&(_0x5a76e5=_0x4a0edf['BdjQT'](readUint,_0x49f1da,_0x560f95[_0x4fd880(0x16a)],_0x560f95['dataSize']));const _0x1cf40f=computeDurationMs(_0x49f1da,_0x5a76e5);if(_0x4a0edf['prOUE'](_0x1cf40f,0x0))return console['error']('Could\x20not\x20compute\x20duration'),![];const _0x3ed57c=_0x1cf40f*0xf4240/_0x5a76e5,_0x2a26f7=Buffer['concat']([_0x4a0edf[_0x4fd880(0x161)](writeId,ID_DURATION),writeVint(0x8),writeFloat64(_0x3ed57c)]),_0x1f4d04=_0x2a26f7['length'];if(!_0x297b43||_0x297b43['offset']<_0x5827a8[_0x4fd880(0x174)]){if(_0x297b43){const _0x4b8495=_0x4a0edf[_0x4fd880(0x169)](_0x4a0edf['MQDJK'](_0x297b43['idLen'],_0x297b43['sizeLen']),_0x297b43[_0x4fd880(0x173)]),_0xbc31ae=_0x4b8495-_0x1f4d04;if(_0xbc31ae<0x2)return rewriteFile(_0x49f1da,_0x5827a8,_0x2a26f7,_0x5a76e5,_0x1cf40f,_0x1024e9);const _0x5e629d=_0x4a0edf[_0x4fd880(0x15e)](_0x5827a8[_0x4fd880(0x173)],_0x1f4d04),_0x1478ee=Buffer['concat']([writeId(ID_INFO),writeVint(_0x5e629d,_0x5827a8[_0x4fd880(0x14c)])]),_0x2c08da=_0x49f1da[_0x4fd880(0x14b)](_0x5827a8['dataOffset'],_0x4a0edf['slVna'](_0x5827a8[_0x4fd880(0x16a)],_0x5827a8[_0x4fd880(0x173)])),_0x4e6e31=_0x4a0edf['dVCIP'](writeVoid,_0xbc31ae),_0x498eb2=_0x49f1da['slice'](0x0,_0x297b43[_0x4fd880(0x174)]),_0x45cd30=_0x49f1da['slice'](_0x4a0edf['kVtct'](_0x5827a8['dataOffset'],_0x5827a8['dataSize']));return writeFileSync(_0x1024e9,Buffer['concat']([_0x498eb2,_0x4e6e31,_0x1478ee,_0x2c08da,_0x2a26f7,_0x45cd30])),!![];}}return rewriteFile(_0x49f1da,_0x5827a8,_0x2a26f7,_0x5a76e5,_0x1cf40f,_0x1024e9);}function rewriteFile(_0x1bae17,_0x582712,_0x2ab2e2,_0x132c85,_0x12185d,_0x4f6c9f){const _0x3a2ba2=_0x275a,_0x1096ba={'vMwbE':function(_0x34d1c3,_0xa643d0){return _0x34d1c3(_0xa643d0);},'npmrW':function(_0x5b9529,_0x438d0a){return _0x5b9529+_0x438d0a;},'CfOzo':function(_0x4e5795,_0x2f5e84){return _0x4e5795+_0x2f5e84;}},_0x406202=_0x582712['dataSize']+_0x2ab2e2[_0x3a2ba2(0x178)],_0x1f1246=Buffer[_0x3a2ba2(0x170)]([_0x1096ba[_0x3a2ba2(0x163)](writeId,ID_INFO),writeVint(_0x406202)]),_0x175e8d=_0x1096ba['npmrW'](_0x582712['idLen'],_0x582712[_0x3a2ba2(0x14c)]),_0x1edd3c=_0x1bae17[_0x3a2ba2(0x14b)](0x0,_0x582712[_0x3a2ba2(0x174)]),_0xace9eb=_0x1bae17[_0x3a2ba2(0x14b)](_0x582712[_0x3a2ba2(0x16a)],_0x1096ba['npmrW'](_0x582712[_0x3a2ba2(0x16a)],_0x582712['dataSize'])),_0x4fdc36=_0x1bae17['slice'](_0x1096ba['CfOzo'](_0x1096ba['npmrW'](_0x582712['offset'],_0x175e8d),_0x582712[_0x3a2ba2(0x173)]));return writeFileSync(_0x4f6c9f,Buffer['concat']([_0x1edd3c,_0x1f1246,_0xace9eb,_0x2ab2e2,_0x4fdc36])),!![];}if(process['argv'][0x1]?.['endsWith']('fixWebmDuration.ts')||process[_0x540dbe(0x159)][0x1]?.[_0x540dbe(0x17e)]('fixWebmDuration.js')){const input=process['argv'][0x2],output=process['argv'][0x3];(!input||!output)&&(console['error'](_0x540dbe(0x153)),process[_0x540dbe(0x14a)](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0x540dbe(0x14d)]('Fixed:\x20'+output):console['log']('File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.');}
@@ -1 +1 @@
1
- function _0x20e8(){const _0x2efe4c=['19505223vhAsSI','4993226UaKMfs','954290tryhcU','1578mUMxYy','XLBRi','68620SFgBGs','392930ivpCXe','10516616zPEUnE','git','183MmgNQt','9175zpKIzX','ls-files'];_0x20e8=function(){return _0x2efe4c;};return _0x20e8();}(function(_0x532bd8,_0x3e3df1){const _0x28875c=_0x26cb,_0x14973f=_0x532bd8();while(!![]){try{const _0x1075cf=-parseInt(_0x28875c(0xe1))/0x1+-parseInt(_0x28875c(0xe9))/0x2+-parseInt(_0x28875c(0xe4))/0x3*(-parseInt(_0x28875c(0xe0))/0x4)+parseInt(_0x28875c(0xe5))/0x5*(parseInt(_0x28875c(0xde))/0x6)+-parseInt(_0x28875c(0xe8))/0x7+-parseInt(_0x28875c(0xe2))/0x8+parseInt(_0x28875c(0xe7))/0x9;if(_0x1075cf===_0x3e3df1)break;else _0x14973f['push'](_0x14973f['shift']());}catch(_0x15760b){_0x14973f['push'](_0x14973f['shift']());}}}(_0x20e8,0xc2e81));import{execFile as _0x5305f3}from'child_process';function _0x26cb(_0x3d0017,_0x518eed){_0x3d0017=_0x3d0017-0xde;const _0x20e897=_0x20e8();let _0x26cba7=_0x20e897[_0x3d0017];return _0x26cba7;}import{promisify}from'util';const execFile=promisify(_0x5305f3);export async function isPathGitTracked(_0x449a02){const _0x34fa5c=_0x26cb,_0x18a77a={'XLBRi':function(_0x24f739,_0x4d9484,_0x1106e8,_0x5af2ec){return _0x24f739(_0x4d9484,_0x1106e8,_0x5af2ec);},'bslUf':_0x34fa5c(0xe6)};try{return await _0x18a77a[_0x34fa5c(0xdf)](execFile,_0x34fa5c(0xe3),[_0x18a77a['bslUf'],'--error-unmatch',_0x449a02],{'cwd':process['cwd']()}),!![];}catch{return![];}}
1
+ (function(_0x22d6e0,_0x396b98){const _0x168e83=_0x4a3e,_0x4d89d6=_0x22d6e0();while(!![]){try{const _0x513c6f=parseInt(_0x168e83(0x200))/0x1+parseInt(_0x168e83(0x202))/0x2*(-parseInt(_0x168e83(0x1fd))/0x3)+-parseInt(_0x168e83(0x1f4))/0x4*(parseInt(_0x168e83(0x1f7))/0x5)+parseInt(_0x168e83(0x1f5))/0x6*(parseInt(_0x168e83(0x1fa))/0x7)+parseInt(_0x168e83(0x1fc))/0x8+parseInt(_0x168e83(0x1fb))/0x9*(parseInt(_0x168e83(0x201))/0xa)+-parseInt(_0x168e83(0x1f6))/0xb;if(_0x513c6f===_0x396b98)break;else _0x4d89d6['push'](_0x4d89d6['shift']());}catch(_0x1b0725){_0x4d89d6['push'](_0x4d89d6['shift']());}}}(_0x5100,0xa8b8c));function _0x5100(){const _0x5bc7a3=['404cdOono','133194PcnarE','10139338tHlUnE','50280wyTdjk','caSoM','cwd','322DCTRvW','36tojIrm','7692072jOUiYS','33jFnAoC','ls-files','--error-unmatch','838219aqwqUj','2498830nUahbA','216712zrovgG'];_0x5100=function(){return _0x5bc7a3;};return _0x5100();}function _0x4a3e(_0x9865a8,_0x1192d8){_0x9865a8=_0x9865a8-0x1f4;const _0x5100f5=_0x5100();let _0x4a3e3c=_0x5100f5[_0x9865a8];return _0x4a3e3c;}import{execFile as _0x4ed734}from'child_process';import{promisify}from'util';const execFile=promisify(_0x4ed734);export async function isPathGitTracked(_0x50446d){const _0x11499f=_0x4a3e,_0x1ab732={'aYXqB':function(_0x4e0fc2,_0xac2a5,_0x519ec4,_0xb7ff0){return _0x4e0fc2(_0xac2a5,_0x519ec4,_0xb7ff0);},'caSoM':'git'};try{return await _0x1ab732['aYXqB'](execFile,_0x1ab732[_0x11499f(0x1f8)],[_0x11499f(0x1fe),_0x11499f(0x1ff),_0x50446d],{'cwd':process[_0x11499f(0x1f9)]()}),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const _0x5e7d77=_0x4cc8;(function(_0x1f83b4,_0x374343){const _0x2a78a6=_0x4cc8,_0x2e70a5=_0x1f83b4();while(!![]){try{const _0x4c5b9a=-parseInt(_0x2a78a6(0x12f))/0x1+parseInt(_0x2a78a6(0x13b))/0x2+-parseInt(_0x2a78a6(0x125))/0x3+-parseInt(_0x2a78a6(0x14b))/0x4+parseInt(_0x2a78a6(0x15e))/0x5*(parseInt(_0x2a78a6(0x12c))/0x6)+parseInt(_0x2a78a6(0x124))/0x7+-parseInt(_0x2a78a6(0x160))/0x8*(-parseInt(_0x2a78a6(0x139))/0x9);if(_0x4c5b9a===_0x374343)break;else _0x2e70a5['push'](_0x2e70a5['shift']());}catch(_0x567e48){_0x2e70a5['push'](_0x2e70a5['shift']());}}}(_0x5b5f,0xbedbb));const _0x42b401=(function(){const _0x35742f={'aBFCx':function(_0x2501bb,_0x33b504){return _0x2501bb!==_0x33b504;}};let _0x3054ae=!![];return function(_0x466ea3,_0x285eb7){const _0xd71a7f={'VaUqu':function(_0x27c8c6,_0x420b1b){const _0x2fcae3=_0x4cc8;return _0x35742f[_0x2fcae3(0x130)](_0x27c8c6,_0x420b1b);},'eOixb':'tGQfX'},_0x308ce7=_0x3054ae?function(){const _0x4b9229=_0x4cc8;if(_0xd71a7f[_0x4b9229(0x151)](_0xd71a7f['eOixb'],_0xd71a7f[_0x4b9229(0x143)]))return!![];else{if(_0x285eb7){const _0x488ad4=_0x285eb7[_0x4b9229(0x131)](_0x466ea3,arguments);return _0x285eb7=null,_0x488ad4;}}}:function(){};return _0x3054ae=![],_0x308ce7;};}()),_0x979b4f=_0x42b401(this,function(){const _0x4493e2=_0x4cc8,_0x4b420a={'AcCLY':_0x4493e2(0x13c)};return _0x979b4f[_0x4493e2(0x133)]()[_0x4493e2(0x12d)](_0x4b420a[_0x4493e2(0x159)])[_0x4493e2(0x133)]()['constructor'](_0x979b4f)[_0x4493e2(0x12d)](_0x4b420a[_0x4493e2(0x159)]);});_0x979b4f();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';function _0x5b5f(){const _0x4d6b20=['nZG0mty2zwvqvgvW','kcGOlISPkYKRksSK','rgLQuxi','r0vu','D3fAtxu','tvbwtey','C21WzLa','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','zu9PEgi','vvnpquq','DhjPBq','wMrTy2C','swrJBxi','yNvhsuC','Axvjtuq','lI90B2TLBLjLzNjLC2GUANm','mtKXmJi0oen2q0Lysa','DxrMltG','reDdzgm','r0Lusfvcx0vovG','u3LbBwK','Afv6tMC','vMfvCxu','EMvjthK','C2LNBMfS','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','uwrHELy','uxbgqu4','Bg9N','tgLvyMy','qwndtfK','ANjNEM8','wefby1i','lI9LBNzPCM9UBwvUDc5QCW','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','nwLjC2vMrW','s0vsALO','nZuXmMfTz01JAW','ywjVCNq','BeTszxq','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','BKrSyvy','r1DQA0u','rvvXBeq','uKfor0vsx01duf9ut0TftG','otqWnte2nvPMu0TOCa','ndyWnty2nK5XwvPltG','sKLxEeS','zNfXzeW','AuflsKy','BgntuNm','yuPcCLi','l2fWAs92ms9Ty3aVBwu','nJi1nti3meLsy0HKwq','C2vHCMnO','DMrOqxu','mtuYntK2mvD5uMPHAW','yujgq3G','yxbWBhK','zgjuwfi','Dg9tDhjPBMC','BwvZC2fNzq','rwHzD0q','v3jLz2q','uKfor0vsx0nmsv9ut0TftG','zw52','mtq3odD5vvPizuO','q0z0y2q'];_0x5b5f=function(){return _0x4d6b20;};return _0x5b5f();}const ENV_TOKEN=_0x5e7d77(0x137),ENV_TOKEN_LEGACY=_0x5e7d77(0x123),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,'cli.txt'),REFRESH_TOKEN_PATH=join(TOKEN_DIR,'refresh.txt');function isGitHubCI(){const _0x226c4f=_0x5e7d77;return!!process[_0x226c4f(0x138)][_0x226c4f(0x14e)];}async function writeToGitHubEnv(_0x21f0c3,_0x309221){const _0x2e53d1=_0x5e7d77,_0xff45d3={'Idcmr':function(_0x4939f4,_0xc0a4b4,_0x1af37e){return _0x4939f4(_0xc0a4b4,_0x1af37e);}},_0x5335e6=process['env'][_0x2e53d1(0x14e)];_0x5335e6&&await _0xff45d3[_0x2e53d1(0x147)](appendFile,_0x5335e6,_0x21f0c3+'='+_0x309221+'\x0a');}export async function storeToken(_0x4ac9bc){const _0x25d530=_0x5e7d77,_0x4b4448={'EUqlD':function(_0x1f4f47){return _0x1f4f47();},'jrgzo':function(_0x2a138a,_0x165033,_0x273820){return _0x2a138a(_0x165033,_0x273820);},'hUzNg':function(_0x3e259a,_0x465c4b,_0x20568b,_0x4b3292){return _0x3e259a(_0x465c4b,_0x20568b,_0x4b3292);}};_0x4b4448[_0x25d530(0x122)](isGitHubCI)?await _0x4b4448[_0x25d530(0x15a)](writeToGitHubEnv,ENV_TOKEN,_0x4ac9bc):(await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x4b4448[_0x25d530(0x150)](writeFile,TOKEN_PATH,_0x4ac9bc,{'mode':0x180}));}function _0x4cc8(_0x19b138,_0x38ff73){_0x19b138=_0x19b138-0x121;const _0x554f11=_0x5b5f();let _0x979b4f=_0x554f11[_0x19b138];if(_0x4cc8['SyyruJ']===undefined){var _0x42b401=function(_0x20530f){const _0x59504c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x165eba='',_0x47b02a='',_0x4f13e1=_0x165eba+_0x42b401;for(let _0x59120a=0x0,_0x3061ca,_0x33ab94,_0x585c2a=0x0;_0x33ab94=_0x20530f['charAt'](_0x585c2a++);~_0x33ab94&&(_0x3061ca=_0x59120a%0x4?_0x3061ca*0x40+_0x33ab94:_0x33ab94,_0x59120a++%0x4)?_0x165eba+=_0x4f13e1['charCodeAt'](_0x585c2a+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x3061ca>>(-0x2*_0x59120a&0x6)):_0x59120a:0x0){_0x33ab94=_0x59504c['indexOf'](_0x33ab94);}for(let _0xaea56f=0x0,_0x502ba8=_0x165eba['length'];_0xaea56f<_0x502ba8;_0xaea56f++){_0x47b02a+='%'+('00'+_0x165eba['charCodeAt'](_0xaea56f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x47b02a);};_0x4cc8['mqrJxp']=_0x42b401,_0x4cc8['UOwdrH']={},_0x4cc8['SyyruJ']=!![];}const _0x5b5feb=_0x554f11[0x0],_0x4cc819=_0x19b138+_0x5b5feb,_0x326e27=_0x4cc8['UOwdrH'][_0x4cc819];if(!_0x326e27){const _0x4a6252=function(_0x1ecea9){this['iJRPLT']=_0x1ecea9,this['XOgjyS']=[0x1,0x0,0x0],this['kgaYmX']=function(){return'newState';},this['kAhDvD']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['OXZlYS']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x4a6252['prototype']['zSzyLN']=function(){const _0x32ce99=new RegExp(this['kAhDvD']+this['OXZlYS']),_0x35c7c5=_0x32ce99['test'](this['kgaYmX']['toString']())?--this['XOgjyS'][0x1]:--this['XOgjyS'][0x0];return this['XlVtNk'](_0x35c7c5);},_0x4a6252['prototype']['XlVtNk']=function(_0x1924c4){if(!Boolean(~_0x1924c4))return _0x1924c4;return this['LDyZJq'](this['iJRPLT']);},_0x4a6252['prototype']['LDyZJq']=function(_0x818fa){for(let _0x152d76=0x0,_0x4887a2=this['XOgjyS']['length'];_0x152d76<_0x4887a2;_0x152d76++){this['XOgjyS']['push'](Math['round'](Math['random']())),_0x4887a2=this['XOgjyS']['length'];}return _0x818fa(this['XOgjyS'][0x0]);},new _0x4a6252(_0x4cc8)['zSzyLN'](),_0x979b4f=_0x4cc8['mqrJxp'](_0x979b4f),_0x4cc8['UOwdrH'][_0x4cc819]=_0x979b4f;}else _0x979b4f=_0x326e27;return _0x979b4f;}export async function getToken(){const _0x73bcc7=_0x5e7d77,_0x183802={'zeILy':function(_0x2b148e,_0x4780de){return _0x2b148e!==_0x4780de;},'Zdmcg':_0x73bcc7(0x15f),'hwTck':'fofEO','IwMdQ':function(_0x22d8c2,_0x686e08,_0x2a785c){return _0x22d8c2(_0x686e08,_0x2a785c);},'MPVLF':_0x73bcc7(0x14c),'smpfP':function(_0xc899bc){return _0xc899bc();},'NOxvr':function(_0x2115db,_0x172cdb){return _0x2115db(_0x172cdb);},'DGCdc':'../mcpBootstrap.js','XxvkE':function(_0x1f4d4f,_0x400daf){return _0x1f4d4f===_0x400daf;},'sqmqV':_0x73bcc7(0x155),'fqqdL':_0x73bcc7(0x154),'QmpCp':function(_0x115505){return _0x115505();},'cNXZR':'Re-authorize\x20the\x20Ranger\x20MCP\x20connection,\x20then\x20retry.'};if(process[_0x73bcc7(0x138)][ENV_TOKEN]){if(_0x183802[_0x73bcc7(0x152)](_0x183802[_0x73bcc7(0x146)],_0x183802['hwTck']))return process['env'][ENV_TOKEN];else{if(_0x3c8777){const _0x36b976=_0x3e2de7['apply'](_0x430b1d,arguments);return _0x49f4df=null,_0x36b976;}}}if(process['env'][ENV_TOKEN_LEGACY])return process[_0x73bcc7(0x138)][ENV_TOKEN_LEGACY];let _0x2d2098=null;try{_0x2d2098=(await _0x183802['IwMdQ'](readFile,TOKEN_PATH,_0x183802[_0x73bcc7(0x140)]))[_0x73bcc7(0x145)]()||null;}catch{const _0x5410ec=await _0x183802[_0x73bcc7(0x141)](tryRefreshToken);return _0x5410ec;}if(!_0x2d2098)return null;const _0x218463=await checkTokenValid(_0x2d2098);if(_0x218463)return _0x2d2098;const _0x395b0e=await _0x183802['NOxvr'](tryPromoteRefreshToken,_0x2d2098);if(_0x395b0e)return _0x395b0e;const _0x44d15a=await _0x183802[_0x73bcc7(0x141)](tryRefreshToken);if(_0x44d15a)return _0x44d15a;const {getMcpAuthOrigin:_0x41c3d3,mcpBootstrap:_0x5b908f}=await import(_0x183802[_0x73bcc7(0x14d)]),_0x1e2691=await _0x183802[_0x73bcc7(0x141)](_0x41c3d3);if(_0x1e2691){if(_0x183802['XxvkE']('QdazV',_0x183802['sqmqV']))try{console[_0x73bcc7(0x157)](_0x183802[_0x73bcc7(0x127)]),await _0x183802['QmpCp'](_0x5b908f);const _0x4b73e6=await tryRefreshToken();if(_0x4b73e6)return _0x4b73e6;}catch(_0x556596){const _0x4e8687=_0x556596 instanceof Error?_0x556596[_0x73bcc7(0x134)]:String(_0x556596);throw new Error('MCP\x20re-authentication\x20failed:\x20'+_0x4e8687+'\x0a'+_0x183802['cNXZR']);}else return!!_0x23abe5[_0x73bcc7(0x138)]['GITHUB_ENV'];}throw new Error(_0x73bcc7(0x15d));}async function checkTokenValid(_0x1ed583){const _0x5df7d3=_0x5e7d77,_0x4aa0b0={'dbTXR':_0x5df7d3(0x13c),'lcSRs':function(_0x46453b,_0x240150){return _0x46453b!==_0x240150;},'iAKJF':_0x5df7d3(0x126),'aJBrR':function(_0xa4e670,_0x61f89f,_0x4c058e){return _0xa4e670(_0x61f89f,_0x4c058e);},'XAAcR':_0x5df7d3(0x13e),'GWjkE':function(_0x377254,_0x56ddf2){return _0x377254(_0x56ddf2);}},_0x422aa5=new AbortController(),_0x5071fb=setTimeout(()=>_0x422aa5[_0x5df7d3(0x161)](),0x1388);try{if(_0x4aa0b0[_0x5df7d3(0x129)](_0x4aa0b0[_0x5df7d3(0x128)],_0x4aa0b0[_0x5df7d3(0x128)]))return _0x1b9d1b[_0x5df7d3(0x133)]()[_0x5df7d3(0x12d)](_0x5df7d3(0x13c))[_0x5df7d3(0x133)]()['constructor'](_0x2489cc)[_0x5df7d3(0x12d)](QeTXIP[_0x5df7d3(0x132)]);else{const {getApiBaseUrl:_0x470735}=await import(_0x5df7d3(0x15c)),_0x36426f=_0x470735(),_0x482011=await _0x4aa0b0[_0x5df7d3(0x12a)](fetch,_0x36426f+_0x5df7d3(0x12b),{'method':_0x4aa0b0[_0x5df7d3(0x15b)],'headers':{'Authorization':'Bearer\x20'+_0x1ed583},'signal':_0x422aa5[_0x5df7d3(0x153)]});return _0x482011['ok'];}}catch{return!![];}finally{_0x4aa0b0[_0x5df7d3(0x121)](clearTimeout,_0x5071fb);}}async function tryRefreshToken(){const _0x6587ac=_0x5e7d77,_0x3e9b9c={'DijQr':_0x6587ac(0x14a),'iuIMD':function(_0x4b434f){return _0x4b434f();}},{refreshCliToken:_0x4cd778}=await import(_0x3e9b9c[_0x6587ac(0x13d)]);return _0x3e9b9c[_0x6587ac(0x149)](_0x4cd778);}async function tryPromoteRefreshToken(_0x552014){const _0x45865f=_0x5e7d77,_0x78254a={'aGFug':'./tokenRefresh.js','LiUbf':function(_0x686521,_0x2ff1b7,_0x29b826){return _0x686521(_0x2ff1b7,_0x29b826);}},{refreshPartnerCliToken:_0x5700a6}=await import(_0x78254a['aGFug']);return _0x78254a[_0x45865f(0x158)](_0x5700a6,_0x552014,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x241448=_0x5e7d77,_0x159f38={'qysCn':function(_0x2c6aa1,_0x3556a1){return _0x2c6aa1(_0x3556a1);},'nDlaV':function(_0x3bd0db,_0x17efd7){return _0x3bd0db!==_0x17efd7;},'wqZMu':_0x241448(0x136)};try{return await _0x159f38['qysCn'](unlink,TOKEN_PATH),!![];}catch{return _0x159f38[_0x241448(0x164)](_0x241448(0x136),_0x159f38[_0x241448(0x13f)])?_0x11757c[_0x241448(0x138)][_0x115cfe]:![];}}export async function storeRefreshToken(_0x5cc118){const _0xdb3381=_0x5e7d77,_0x4f0578={'zGbvc':function(_0x2440a6,_0x3e14a0,_0x17f917){return _0x2440a6(_0x3e14a0,_0x17f917);},'EhYwD':function(_0x796c8a,_0x253f86,_0x414077,_0x2dffac){return _0x796c8a(_0x253f86,_0x414077,_0x2dffac);}};await _0x4f0578['zGbvc'](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x4f0578[_0xdb3381(0x135)](writeFile,REFRESH_TOKEN_PATH,_0x5cc118,{'mode':0x180});}export async function getRefreshToken(){const _0x1eb373=_0x5e7d77,_0x3fe6c8={'buGIG':function(_0x40c46a,_0x4f0fce){return _0x40c46a instanceof _0x4f0fce;},'lKRet':function(_0x2af6de,_0x8b6cf4){return _0x2af6de+_0x8b6cf4;},'vdhAu':_0x1eb373(0x163),'CFtcd':function(_0x5713fd,_0x54e630){return _0x5713fd!==_0x54e630;},'QpFAN':_0x1eb373(0x14f)};try{if(_0x3fe6c8[_0x1eb373(0x13a)]('SyAmi',_0x3fe6c8[_0x1eb373(0x156)])){const _0x131f86=_0x3fe6c8[_0x1eb373(0x148)](_0x526df1,_0x49b417)?_0x3c2dfe['message']:_0x40e3ae(_0x3726ae);throw new _0x8a4eba(_0x3fe6c8[_0x1eb373(0x162)](_0x1eb373(0x142)+_0x131f86+'\x0a',_0x3fe6c8[_0x1eb373(0x12e)]));}else{const _0x38bd8f=await readFile(REFRESH_TOKEN_PATH,_0x1eb373(0x14c));return _0x38bd8f[_0x1eb373(0x145)]()||null;}}catch{return null;}}export async function deleteRefreshToken(){try{return await unlink(REFRESH_TOKEN_PATH),!![];}catch{return![];}}export async function deleteAllCredentials(){const _0xfcff8c=_0x5e7d77,_0x2af9a1={'USOAD':function(_0x332dc2){return _0x332dc2();}};await deleteToken(),await _0x2af9a1[_0xfcff8c(0x144)](deleteRefreshToken);}
1
+ const _0x4f14ea=_0x4243;(function(_0x2e86c1,_0x23ab08){const _0x1fac72=_0x4243,_0x5a6c74=_0x2e86c1();while(!![]){try{const _0x4e9f36=parseInt(_0x1fac72(0x130))/0x1+parseInt(_0x1fac72(0x10e))/0x2*(parseInt(_0x1fac72(0x12f))/0x3)+parseInt(_0x1fac72(0x122))/0x4*(parseInt(_0x1fac72(0x11b))/0x5)+parseInt(_0x1fac72(0x117))/0x6*(parseInt(_0x1fac72(0x142))/0x7)+parseInt(_0x1fac72(0x134))/0x8*(-parseInt(_0x1fac72(0x123))/0x9)+parseInt(_0x1fac72(0x132))/0xa+-parseInt(_0x1fac72(0x135))/0xb*(parseInt(_0x1fac72(0x12e))/0xc);if(_0x4e9f36===_0x23ab08)break;else _0x5a6c74['push'](_0x5a6c74['shift']());}catch(_0xae1f4e){_0x5a6c74['push'](_0x5a6c74['shift']());}}}(_0x598d,0x9a1f1));const _0x16e4b1=(function(){let _0x375575=!![];return function(_0x52426c,_0x383431){const _0x5be9d1=_0x375575?function(){if(_0x383431){const _0x801550=_0x383431['apply'](_0x52426c,arguments);return _0x383431=null,_0x801550;}}:function(){};return _0x375575=![],_0x5be9d1;};}()),_0x3e7ea3=_0x16e4b1(this,function(){const _0x1b8741=_0x4243,_0x2cf217={'Fcyqr':_0x1b8741(0x111)};return _0x3e7ea3[_0x1b8741(0x13b)]()['search'](_0x2cf217[_0x1b8741(0x110)])[_0x1b8741(0x13b)]()['constructor'](_0x3e7ea3)[_0x1b8741(0x115)](_0x2cf217[_0x1b8741(0x110)]);});_0x3e7ea3();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x4f14ea(0x146),ENV_TOKEN_LEGACY='RANGER_MCP_TOKEN',TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x4f14ea(0x13a)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x4f14ea(0x14b));function isGitHubCI(){const _0x2c240f=_0x4f14ea;return!!process[_0x2c240f(0x120)][_0x2c240f(0x112)];}async function writeToGitHubEnv(_0x48aa23,_0x54a921){const _0x2a1bfc=_0x4f14ea,_0x2a3ffe={'rwzVB':function(_0x453d2a,_0x3e8eec){return _0x453d2a===_0x3e8eec;},'vYUFZ':_0x2a1bfc(0x140)},_0x5a8123=process[_0x2a1bfc(0x120)][_0x2a1bfc(0x112)];if(_0x5a8123){if(_0x2a3ffe[_0x2a1bfc(0x129)](_0x2a3ffe[_0x2a1bfc(0x138)],_0x2a3ffe['vYUFZ']))await appendFile(_0x5a8123,_0x48aa23+'='+_0x54a921+'\x0a');else return![];}}export async function storeToken(_0x37c1d0){const _0x26c799=_0x4f14ea,_0x5863ff={'JJrua':function(_0x3e241d,_0x1ce1f0,_0x170538){return _0x3e241d(_0x1ce1f0,_0x170538);},'jWIYh':function(_0x5f0091,_0x4c7f83,_0x10974f){return _0x5f0091(_0x4c7f83,_0x10974f);}};isGitHubCI()?await _0x5863ff['JJrua'](writeToGitHubEnv,ENV_TOKEN,_0x37c1d0):(await _0x5863ff[_0x26c799(0x149)](mkdir,TOKEN_DIR,{'recursive':!![]}),await writeFile(TOKEN_PATH,_0x37c1d0,{'mode':0x180}));}export async function getToken(){const _0x1f16f6=_0x4f14ea,_0x308805={'BgCVG':function(_0x28709f,_0xfa04d3,_0x14adfa){return _0x28709f(_0xfa04d3,_0x14adfa);},'ibsUi':_0x1f16f6(0x121),'Dmzcn':function(_0x3b0859){return _0x3b0859();},'NONNV':function(_0x574a5b,_0x192f61){return _0x574a5b(_0x192f61);},'ZxsQg':function(_0x466b67,_0x30077e){return _0x466b67(_0x30077e);},'tGhBj':function(_0x1e6641){return _0x1e6641();},'KKnsr':'Session\x20expired.\x20Re-authenticating\x20via\x20MCP\x20bootstrap...','gyRrm':function(_0x19502b,_0x51520e){return _0x19502b+_0x51520e;},'ofyKx':_0x1f16f6(0x11e)};if(process['env'][ENV_TOKEN])return process[_0x1f16f6(0x120)][ENV_TOKEN];if(process[_0x1f16f6(0x120)][ENV_TOKEN_LEGACY])return process['env'][ENV_TOKEN_LEGACY];let _0x5f2b76=null;try{_0x5f2b76=(await _0x308805[_0x1f16f6(0x12b)](readFile,TOKEN_PATH,_0x308805['ibsUi']))[_0x1f16f6(0x12a)]()||null;}catch{const _0x598412=await _0x308805['Dmzcn'](tryRefreshToken);return _0x598412;}if(!_0x5f2b76)return null;const _0x28e660=await _0x308805[_0x1f16f6(0x13c)](checkTokenValid,_0x5f2b76);if(_0x28e660)return _0x5f2b76;const _0x3cc107=await _0x308805[_0x1f16f6(0x13f)](tryPromoteRefreshToken,_0x5f2b76);if(_0x3cc107)return _0x3cc107;const _0x1d146a=await _0x308805[_0x1f16f6(0x118)](tryRefreshToken);if(_0x1d146a)return _0x1d146a;const {getMcpAuthOrigin:_0x3f345a,mcpBootstrap:_0xb2f323}=await import(_0x1f16f6(0x14d)),_0x397882=await _0x308805[_0x1f16f6(0x118)](_0x3f345a);if(_0x397882)try{console[_0x1f16f6(0x14c)](_0x308805['KKnsr']),await _0x308805[_0x1f16f6(0x118)](_0xb2f323);const _0x2beebf=await tryRefreshToken();if(_0x2beebf)return _0x2beebf;}catch(_0x32d4bc){const _0x5318b2=_0x32d4bc instanceof Error?_0x32d4bc['message']:_0x308805[_0x1f16f6(0x13c)](String,_0x32d4bc);throw new Error(_0x308805[_0x1f16f6(0x131)](_0x1f16f6(0x11f)+_0x5318b2+'\x0a',_0x1f16f6(0x126)));}throw new Error(_0x308805[_0x1f16f6(0x139)]);}function _0x4243(_0x3231e1,_0x9edc7f){_0x3231e1=_0x3231e1-0x10d;const _0x31aebb=_0x598d();let _0x3e7ea3=_0x31aebb[_0x3231e1];if(_0x4243['LAwnpQ']===undefined){var _0x16e4b1=function(_0x3b2164){const _0x18026b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x578370='',_0x5b76ce='',_0x371c20=_0x578370+_0x16e4b1;for(let _0x5690b3=0x0,_0xd58b12,_0xac3d77,_0x3d884e=0x0;_0xac3d77=_0x3b2164['charAt'](_0x3d884e++);~_0xac3d77&&(_0xd58b12=_0x5690b3%0x4?_0xd58b12*0x40+_0xac3d77:_0xac3d77,_0x5690b3++%0x4)?_0x578370+=_0x371c20['charCodeAt'](_0x3d884e+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0xd58b12>>(-0x2*_0x5690b3&0x6)):_0x5690b3:0x0){_0xac3d77=_0x18026b['indexOf'](_0xac3d77);}for(let _0x365b8d=0x0,_0x5e8102=_0x578370['length'];_0x365b8d<_0x5e8102;_0x365b8d++){_0x5b76ce+='%'+('00'+_0x578370['charCodeAt'](_0x365b8d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5b76ce);};_0x4243['WofZTU']=_0x16e4b1,_0x4243['FKwhpP']={},_0x4243['LAwnpQ']=!![];}const _0x598d06=_0x31aebb[0x0],_0x4243af=_0x3231e1+_0x598d06,_0x32b763=_0x4243['FKwhpP'][_0x4243af];if(!_0x32b763){const _0x275b5f=function(_0x246013){this['vliiOP']=_0x246013,this['hmKOLZ']=[0x1,0x0,0x0],this['WtRqMc']=function(){return'newState';},this['dmllTx']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['owgPST']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x275b5f['prototype']['DxYjmG']=function(){const _0x2a5b9a=new RegExp(this['dmllTx']+this['owgPST']),_0x185a88=_0x2a5b9a['test'](this['WtRqMc']['toString']())?--this['hmKOLZ'][0x1]:--this['hmKOLZ'][0x0];return this['zkMfXO'](_0x185a88);},_0x275b5f['prototype']['zkMfXO']=function(_0x558ecb){if(!Boolean(~_0x558ecb))return _0x558ecb;return this['OnPrnF'](this['vliiOP']);},_0x275b5f['prototype']['OnPrnF']=function(_0x1c061a){for(let _0x148065=0x0,_0x4c2d12=this['hmKOLZ']['length'];_0x148065<_0x4c2d12;_0x148065++){this['hmKOLZ']['push'](Math['round'](Math['random']())),_0x4c2d12=this['hmKOLZ']['length'];}return _0x1c061a(this['hmKOLZ'][0x0]);},new _0x275b5f(_0x4243)['DxYjmG'](),_0x3e7ea3=_0x4243['WofZTU'](_0x3e7ea3),_0x4243['FKwhpP'][_0x4243af]=_0x3e7ea3;}else _0x3e7ea3=_0x32b763;return _0x3e7ea3;}async function checkTokenValid(_0x3348b6){const _0x1cc3aa=_0x4f14ea,_0x309850={'ZwWGT':function(_0x2f1669,_0x27d09e,_0x180446){return _0x2f1669(_0x27d09e,_0x180446);},'caVKy':_0x1cc3aa(0x13e),'ywqRR':function(_0x390501){return _0x390501();},'rlrKZ':_0x1cc3aa(0x136),'FHaVV':function(_0x4f2ec3,_0x1b7fb3){return _0x4f2ec3(_0x1b7fb3);}},_0x2f92c9=new AbortController(),_0x1cd671=_0x309850[_0x1cc3aa(0x116)](setTimeout,()=>_0x2f92c9[_0x1cc3aa(0x12c)](),0x1388);try{const {getApiBaseUrl:_0x1b09db}=await import(_0x309850[_0x1cc3aa(0x10f)]),_0x140a7b=_0x309850[_0x1cc3aa(0x10d)](_0x1b09db),_0x2ed7ea=await _0x309850[_0x1cc3aa(0x116)](fetch,_0x140a7b+_0x1cc3aa(0x144),{'method':_0x309850[_0x1cc3aa(0x133)],'headers':{'Authorization':_0x1cc3aa(0x114)+_0x3348b6},'signal':_0x2f92c9[_0x1cc3aa(0x119)]});return _0x2ed7ea['ok'];}catch{return!![];}finally{_0x309850['FHaVV'](clearTimeout,_0x1cd671);}}async function tryRefreshToken(){const _0x3da378=_0x4f14ea,_0x3dfbc4={'bfhwn':'./tokenRefresh.js','hySRL':function(_0x3364e2){return _0x3364e2();}},{refreshCliToken:_0x5974a9}=await import(_0x3dfbc4[_0x3da378(0x143)]);return _0x3dfbc4[_0x3da378(0x124)](_0x5974a9);}async function tryPromoteRefreshToken(_0x1b7d41){const _0x53e06a=_0x4f14ea,_0x34fc3f={'riKGY':_0x53e06a(0x14a),'HecQr':function(_0x5bac20,_0x21d236,_0x5eb012){return _0x5bac20(_0x21d236,_0x5eb012);}},{refreshPartnerCliToken:_0x3b5ff6}=await import(_0x34fc3f['riKGY']);return _0x34fc3f['HecQr'](_0x3b5ff6,_0x1b7d41,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x4d4882=_0x4f14ea,_0x312ff0={'qCOyq':function(_0x14b7ee,_0x1516ab){return _0x14b7ee(_0x1516ab);},'chYrN':function(_0xf90f22,_0x5d222a){return _0xf90f22===_0x5d222a;},'ogMXO':_0x4d4882(0x141)};try{return await _0x312ff0[_0x4d4882(0x145)](unlink,TOKEN_PATH),!![];}catch{if(_0x312ff0['chYrN']('MJMBv',_0x312ff0[_0x4d4882(0x147)])){if(_0x4826fd){const _0x530326=_0x369fd0['apply'](_0xa9911a,arguments);return _0x18a006=null,_0x530326;}}else return![];}}function _0x598d(){const _0x48232a=['ywjVCNq','CurSsM4','nte3ntC5mMDHt1LbAa','mZyWmdLxzK9LA0G','ntuYotuWA0reqvDW','z3LsCM0','mZaWnty3meX5Auv3vG','CMXYs1O','ofPPwwfTBq','mtfRChz3CwK','r0vu','rgXPEuy','DLLvrLO','B2z5s3G','y2XPlNr4Da','Dg9tDhjPBMC','tK9otLy','A0r4Ag8','lI9LBNzPCM9UBwvUDc5QCW','wNHZuwC','v2rvDfm','DMHou0i','mtmZnZy1mujYCM9tsq','yMzOD24','l2fWAs92ms9Ty3aVBwu','CunpExe','uKfor0vsx0nmsv9ut0TftG','B2Dnwe8','vuXhBgW','ALDjwwG','lI90B2TLBLjLzNjLC2GUANm','CMvMCMvZAc50Ehq','Bg9N','lI4VBwnWqM9VDhn0CMfWlMPZ','ExDXuLi','mZzmzxH3C2m','y2fws3K','rMn5Cxi','kcGOlISPkYKRksSK','r0Lusfvcx0vovG','BwvZC2fNzq','qMvHCMvYia','C2vHCMnO','wNDxr1q','mtHTy1H3zvO','DeDOqMO','C2LNBMfS','u0nbwgq','nJbMyNHytLq','CgX4wui','DhzItM0','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','zw52','DxrMltG','mtyYnda4CNzmEerJ','otyWnZi5m2Pgufjnva','AhLtuKW','yNbsyLG','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','q2rND2e','qvnhs0G','CND6vKi','DhjPBq','qMDdvKC'];_0x598d=function(){return _0x48232a;};return _0x598d();}export async function storeRefreshToken(_0x4c469e){const _0x3b2d43=_0x4f14ea,_0x358351={'ASGKH':function(_0x54118e,_0x401313,_0x1de863){return _0x54118e(_0x401313,_0x1de863);},'ULGll':function(_0xb6e37c,_0x7a1eed,_0x32b68d,_0x18d6f1){return _0xb6e37c(_0x7a1eed,_0x32b68d,_0x18d6f1);}};await _0x358351[_0x3b2d43(0x128)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x358351[_0x3b2d43(0x148)](writeFile,REFRESH_TOKEN_PATH,_0x4c469e,{'mode':0x180});}export async function getRefreshToken(){const _0x136bf9=_0x4f14ea,_0x20e574={'plxYB':function(_0x43331e,_0x3940d4){return _0x43331e+_0x3940d4;},'Cdgwa':_0x136bf9(0x126),'Xtfpp':function(_0x8e22e,_0x4c559a){return _0x8e22e===_0x4c559a;},'SCAXd':_0x136bf9(0x125),'JWNXV':_0x136bf9(0x12d),'kDxho':function(_0x3ef1c7,_0x317f2e,_0x32f406){return _0x3ef1c7(_0x317f2e,_0x32f406);},'tvbNm':_0x136bf9(0x121)};try{if(_0x20e574['Xtfpp'](_0x20e574[_0x136bf9(0x11a)],_0x20e574['JWNXV'])){const _0x1cefdc=_0x5d1072 instanceof _0x73f75f?_0x68e98a[_0x136bf9(0x113)]:_0x4c5c90(_0x2ab334);throw new _0x7a968f(_0x20e574[_0x136bf9(0x11c)](_0x136bf9(0x11f)+_0x1cefdc+'\x0a',_0x20e574[_0x136bf9(0x127)]));}else{const _0x2366ea=await _0x20e574[_0x136bf9(0x13d)](readFile,REFRESH_TOKEN_PATH,_0x20e574[_0x136bf9(0x11d)]);return _0x2366ea[_0x136bf9(0x12a)]()||null;}}catch{return null;}}export async function deleteRefreshToken(){const _0x24793c={'yYTgm':function(_0x1eb9d6,_0x5bf505){return _0x1eb9d6(_0x5bf505);}};try{return await _0x24793c['yYTgm'](unlink,REFRESH_TOKEN_PATH),!![];}catch{return![];}}export async function deleteAllCredentials(){const _0x34a7f2=_0x4f14ea,_0x32ae37={'Czjfo':function(_0x36e17c){return _0x36e17c();},'DliyF':function(_0x3b69d8){return _0x3b69d8();}};await _0x32ae37['Czjfo'](deleteToken),await _0x32ae37[_0x34a7f2(0x137)](deleteRefreshToken);}
@@ -1 +1 @@
1
- const _0x1d5069=_0x8a3b;(function(_0x31cfc6,_0x607fa2){const _0x20f5df=_0x8a3b,_0xff609d=_0x31cfc6();while(!![]){try{const _0x120363=-parseInt(_0x20f5df(0x18e))/0x1+-parseInt(_0x20f5df(0x189))/0x2+parseInt(_0x20f5df(0x19a))/0x3+-parseInt(_0x20f5df(0x198))/0x4*(parseInt(_0x20f5df(0x182))/0x5)+-parseInt(_0x20f5df(0x197))/0x6+-parseInt(_0x20f5df(0x18b))/0x7*(-parseInt(_0x20f5df(0x195))/0x8)+parseInt(_0x20f5df(0x18f))/0x9;if(_0x120363===_0x607fa2)break;else _0xff609d['push'](_0xff609d['shift']());}catch(_0x21fc7d){_0xff609d['push'](_0xff609d['shift']());}}}(_0x141e,0x64743));import{existsSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function _0x141e(){const _0xd81f7b=['filter','local','HvBUC','ddfLJ','⚠\x20\x20Legacy\x20Ranger\x20paths\x20detected\x20(read-only):','6475464NmPZRY','toISOString','3945348HyWsZD','20RGwWmv','slice','1743669snKDWS','use','RujkC','setup','.legacy-warning-','verify','MXvkI','stderr','setup-ci','cZmKP','467440QCwflp','write','tXYot','lWtGQ','kMDwB','length','map','925408QXzGRU','UHZjj','7CFLewm','NCDwi','\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20<name>','340417uGfqrW','8540298EzXlRM'];_0x141e=function(){return _0xd81f7b;};return _0x141e();}function _0x8a3b(_0x33a645,_0x3a0117){_0x33a645=_0x33a645-0x17b;const _0x141eaf=_0x141e();let _0x8a3bf3=_0x141eaf[_0x33a645];return _0x8a3bf3;}function detectLegacyPaths(){const _0x13736d=_0x8a3b,_0x35bd99={'tmoot':function(_0x6ce3fa){return _0x6ce3fa();},'NCDwi':function(_0x1c9f94){return _0x1c9f94();},'ddfLJ':function(_0x101a1e,_0x32ae65,_0x8f97f7){return _0x101a1e(_0x32ae65,_0x8f97f7);},'lWtGQ':_0x13736d(0x191),'jDzwx':'active-profile.txt'},_0x47459e=_0x35bd99['tmoot'](getRangerDir),_0x5a49ff=_0x35bd99[_0x13736d(0x18c)](getRangerHomeDir);return[join(_0x47459e,'local'),join(_0x47459e,'ci'),_0x35bd99[_0x13736d(0x193)](join,_0x5a49ff,_0x35bd99[_0x13736d(0x185)]),join(_0x47459e,_0x35bd99['jDzwx'])][_0x13736d(0x190)](_0x124c77=>existsSync(_0x124c77));}function flagFilePath(){const _0x2d2e24=_0x8a3b,_0x4d6b99={'cZmKP':function(_0x5ab6b2){return _0x5ab6b2();}},_0x579ebb=new Date()[_0x2d2e24(0x196)]()[_0x2d2e24(0x199)](0x0,0xa);return join(_0x4d6b99[_0x2d2e24(0x181)](getRangerHomeDir),_0x2d2e24(0x17c)+_0x579ebb);}export function showLegacyDeprecationWarning(){const _0x17e8c1=_0x8a3b,_0x9de254={'MXvkI':_0x17e8c1(0x194),'OGlaj':'\x20\x20\x20For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:','TkadU':'\x20\x20\x20\x20\x20https://docs.ranger.net/main/concepts/profiles','HvBUC':'\x20\x20\x20Delete\x20these\x20paths\x20after\x20you\x20have\x20re-auth-ed.','RujkC':function(_0x17b87d,_0x10641a,_0xa69346){return _0x17b87d(_0x10641a,_0xa69346);},'kMDwB':function(_0x468657){return _0x468657();},'tXYot':function(_0x324bda,_0x484984,_0x393753,_0x5ccc3f){return _0x324bda(_0x484984,_0x393753,_0x5ccc3f);}},_0x1e2316=detectLegacyPaths();if(_0x1e2316[_0x17e8c1(0x187)]===0x0)return;const _0x3e7f23=flagFilePath();if(existsSync(_0x3e7f23))return;const _0x345234=['',_0x9de254[_0x17e8c1(0x17e)],..._0x1e2316[_0x17e8c1(0x188)](_0x22f34c=>'\x20\x20\x20\x20\x20'+_0x22f34c),'','\x20\x20\x20Ranger\x20no\x20longer\x20writes\x20to\x20these\x20paths.\x20Existing\x20sessions\x20there\x20still\x20work','\x20\x20\x20as\x20a\x20fallback.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:','',_0x17e8c1(0x18d),'',_0x9de254['OGlaj'],_0x9de254['TkadU'],'',_0x9de254[_0x17e8c1(0x192)],''];process[_0x17e8c1(0x17f)][_0x17e8c1(0x183)](_0x345234['join']('\x0a')+'\x0a');try{_0x9de254[_0x17e8c1(0x19c)](mkdirSync,_0x9de254[_0x17e8c1(0x186)](getRangerHomeDir),{'recursive':!![]}),_0x9de254[_0x17e8c1(0x184)](writeFileSync,_0x3e7f23,'',{'mode':0x180});}catch{}}const PROFILE_TOUCHING_COMMANDS=new Set(['go',_0x1d5069(0x17d),'verify-feature','profile','profiles',_0x1d5069(0x17b),_0x1d5069(0x180),'start',_0x1d5069(0x19b)]);export function shouldShowLegacyWarning(_0x4e173c){const _0xcecf21=_0x1d5069,_0x1ada0f={'UHZjj':'--help','qaLxG':function(_0xbc7507,_0x4d7a77){return _0xbc7507===_0x4d7a77;}},_0x5f358c=_0x4e173c[0x2];if(!_0x5f358c)return![];if(_0x5f358c['startsWith']('-'))return![];if(!PROFILE_TOUCHING_COMMANDS['has'](_0x5f358c))return![];for(let _0x31a737=0x3;_0x31a737<_0x4e173c[_0xcecf21(0x187)];_0x31a737++){if(_0x4e173c[_0x31a737]===_0x1ada0f[_0xcecf21(0x18a)]||_0x1ada0f['qaLxG'](_0x4e173c[_0x31a737],'-h'))return![];}return!![];}
1
+ const _0x5a4cd4=_0x555f;(function(_0x11cebf,_0x4449a1){const _0x2d8a45=_0x555f,_0x4f9f03=_0x11cebf();while(!![]){try{const _0x293e43=parseInt(_0x2d8a45(0x147))/0x1*(-parseInt(_0x2d8a45(0x159))/0x2)+-parseInt(_0x2d8a45(0x14c))/0x3+parseInt(_0x2d8a45(0x142))/0x4*(-parseInt(_0x2d8a45(0x154))/0x5)+parseInt(_0x2d8a45(0x13d))/0x6*(parseInt(_0x2d8a45(0x158))/0x7)+-parseInt(_0x2d8a45(0x13f))/0x8*(-parseInt(_0x2d8a45(0x15b))/0x9)+-parseInt(_0x2d8a45(0x14e))/0xa+parseInt(_0x2d8a45(0x145))/0xb*(parseInt(_0x2d8a45(0x15f))/0xc);if(_0x293e43===_0x4449a1)break;else _0x4f9f03['push'](_0x4f9f03['shift']());}catch(_0x5723b7){_0x4f9f03['push'](_0x4f9f03['shift']());}}}(_0x2c9b,0x67426));import{existsSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function detectLegacyPaths(){const _0x40931d=_0x555f,_0x16f7f1={'aAlYe':function(_0x1efd8b){return _0x1efd8b();},'lmuvt':function(_0xaf79a){return _0xaf79a();},'YFcpV':function(_0x342e31,_0x463a5d,_0x354377){return _0x342e31(_0x463a5d,_0x354377);}},_0x52b46b=_0x16f7f1['aAlYe'](getRangerDir),_0x48bcb2=_0x16f7f1['lmuvt'](getRangerHomeDir);return[_0x16f7f1['YFcpV'](join,_0x52b46b,'local'),join(_0x52b46b,'ci'),join(_0x48bcb2,'local'),_0x16f7f1[_0x40931d(0x14d)](join,_0x52b46b,'active-profile.txt')]['filter'](_0x1fac7e=>existsSync(_0x1fac7e));}function flagFilePath(){const _0x59f3f3=_0x555f,_0x1818e8={'qRODN':function(_0x47638a,_0x37b02a,_0xf6e4e3){return _0x47638a(_0x37b02a,_0xf6e4e3);}},_0x241bab=new Date()['toISOString']()[_0x59f3f3(0x15e)](0x0,0xa);return _0x1818e8['qRODN'](join,getRangerHomeDir(),'.legacy-warning-'+_0x241bab);}export function showLegacyDeprecationWarning(){const _0x1bb868=_0x555f,_0x298bbc={'jpDUS':function(_0x59a370){return _0x59a370();},'jJenU':function(_0x2d6ed0,_0x4d1383){return _0x2d6ed0(_0x4d1383);},'DDXZD':_0x1bb868(0x141),'TjLct':_0x1bb868(0x157),'PUpOR':function(_0x1d4f05,_0x58ab50){return _0x1d4f05+_0x58ab50;},'XCsRo':function(_0x5dc8da,_0x168418,_0x1b8b8b,_0x5996ad){return _0x5dc8da(_0x168418,_0x1b8b8b,_0x5996ad);}},_0x4bb1c=_0x298bbc[_0x1bb868(0x14f)](detectLegacyPaths);if(_0x4bb1c['length']===0x0)return;const _0x56292d=_0x298bbc[_0x1bb868(0x14f)](flagFilePath);if(_0x298bbc[_0x1bb868(0x155)](existsSync,_0x56292d))return;const _0x2ea240=['',_0x298bbc['DDXZD'],..._0x4bb1c['map'](_0x1ca5b3=>_0x1bb868(0x15d)+_0x1ca5b3),'',_0x1bb868(0x149),_0x298bbc[_0x1bb868(0x151)],'',_0x1bb868(0x146),'','\x20\x20\x20For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:',_0x1bb868(0x15c),'',_0x1bb868(0x143),''];process[_0x1bb868(0x150)]['write'](_0x298bbc[_0x1bb868(0x152)](_0x2ea240['join']('\x0a'),'\x0a'));try{mkdirSync(_0x298bbc['jpDUS'](getRangerHomeDir),{'recursive':!![]}),_0x298bbc[_0x1bb868(0x156)](writeFileSync,_0x56292d,'',{'mode':0x180});}catch{}}function _0x555f(_0x5794ce,_0x1d8552){_0x5794ce=_0x5794ce-0x13d;const _0x2c9bcc=_0x2c9b();let _0x555f45=_0x2c9bcc[_0x5794ce];return _0x555f45;}const PROFILE_TOUCHING_COMMANDS=new Set(['go',_0x5a4cd4(0x140),_0x5a4cd4(0x13e),_0x5a4cd4(0x14b),_0x5a4cd4(0x15a),_0x5a4cd4(0x14a),_0x5a4cd4(0x144),'start',_0x5a4cd4(0x153)]);function _0x2c9b(){const _0x5a9a79=['PUpOR','use','460jkKmFW','jJenU','XCsRo','\x20\x20\x20as\x20a\x20fallback.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:','7ewbvgZ','20tBqBFC','profiles','63594xevusr','\x20\x20\x20\x20\x20https://docs.ranger.net/main/concepts/profiles','\x20\x20\x20\x20\x20','slice','24GqOQLt','1229808lBEHlM','verify-feature','400XkbZLQ','verify','⚠\x20\x20Legacy\x20Ranger\x20paths\x20detected\x20(read-only):','34928jFlaMp','\x20\x20\x20Delete\x20these\x20paths\x20after\x20you\x20have\x20re-auth-ed.','setup-ci','6124558HvUkDh','\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20<name>','24327DYRoxk','has','\x20\x20\x20Ranger\x20no\x20longer\x20writes\x20to\x20these\x20paths.\x20Existing\x20sessions\x20there\x20still\x20work','setup','profile','464205YdvihS','YFcpV','475250GfqKwy','jpDUS','stderr','TjLct'];_0x2c9b=function(){return _0x5a9a79;};return _0x2c9b();}export function shouldShowLegacyWarning(_0xb40439){const _0x2214f1=_0x5a4cd4,_0x354dfe={'zrTid':function(_0x1af72b,_0x17ecd0){return _0x1af72b===_0x17ecd0;}},_0x454446=_0xb40439[0x2];if(!_0x454446)return![];if(_0x454446['startsWith']('-'))return![];if(!PROFILE_TOUCHING_COMMANDS[_0x2214f1(0x148)](_0x454446))return![];for(let _0x4565e7=0x3;_0x4565e7<_0xb40439['length'];_0x4565e7++){if(_0xb40439[_0x4565e7]==='--help'||_0x354dfe['zrTid'](_0xb40439[_0x4565e7],'-h'))return![];}return!![];}
@@ -1 +1 @@
1
- function _0x7975(_0x18cc6,_0x3f6059){_0x18cc6=_0x18cc6-0x1bf;const _0x13aeb4=_0x1962();let _0x432213=_0x13aeb4[_0x18cc6];if(_0x7975['NWhYvM']===undefined){var _0x3ab78f=function(_0x1e42c4){const _0x423ecc='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3e0e31='',_0x3b5156='',_0x2250a9=_0x3e0e31+_0x3ab78f;for(let _0x1a1538=0x0,_0x37229a,_0x252452,_0x47cbdb=0x0;_0x252452=_0x1e42c4['charAt'](_0x47cbdb++);~_0x252452&&(_0x37229a=_0x1a1538%0x4?_0x37229a*0x40+_0x252452:_0x252452,_0x1a1538++%0x4)?_0x3e0e31+=_0x2250a9['charCodeAt'](_0x47cbdb+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x37229a>>(-0x2*_0x1a1538&0x6)):_0x1a1538:0x0){_0x252452=_0x423ecc['indexOf'](_0x252452);}for(let _0x47c203=0x0,_0x2da6be=_0x3e0e31['length'];_0x47c203<_0x2da6be;_0x47c203++){_0x3b5156+='%'+('00'+_0x3e0e31['charCodeAt'](_0x47c203)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3b5156);};_0x7975['ESPnOB']=_0x3ab78f,_0x7975['EqJxgj']={},_0x7975['NWhYvM']=!![];}const _0x19627c=_0x13aeb4[0x0],_0x79754e=_0x18cc6+_0x19627c,_0x532ba6=_0x7975['EqJxgj'][_0x79754e];if(!_0x532ba6){const _0x40344a=function(_0x2d07db){this['QSaEir']=_0x2d07db,this['dELtay']=[0x1,0x0,0x0],this['nYUlNp']=function(){return'newState';},this['wFRRMI']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['OFFoEl']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x40344a['prototype']['CXRXZO']=function(){const _0x7d372a=new RegExp(this['wFRRMI']+this['OFFoEl']),_0x2b9444=_0x7d372a['test'](this['nYUlNp']['toString']())?--this['dELtay'][0x1]:--this['dELtay'][0x0];return this['vXANMC'](_0x2b9444);},_0x40344a['prototype']['vXANMC']=function(_0x5ae00c){if(!Boolean(~_0x5ae00c))return _0x5ae00c;return this['mMVweq'](this['QSaEir']);},_0x40344a['prototype']['mMVweq']=function(_0x201e65){for(let _0x340fc0=0x0,_0x5a5c80=this['dELtay']['length'];_0x340fc0<_0x5a5c80;_0x340fc0++){this['dELtay']['push'](Math['round'](Math['random']())),_0x5a5c80=this['dELtay']['length'];}return _0x201e65(this['dELtay'][0x0]);},new _0x40344a(_0x7975)['CXRXZO'](),_0x432213=_0x7975['ESPnOB'](_0x432213),_0x7975['EqJxgj'][_0x79754e]=_0x432213;}else _0x432213=_0x532ba6;return _0x432213;}(function(_0x1abc8b,_0x55c3c8){const _0x95a16a=_0x7975,_0x5be749=_0x1abc8b();while(!![]){try{const _0x1a1488=-parseInt(_0x95a16a(0x1cb))/0x1+parseInt(_0x95a16a(0x1ca))/0x2+parseInt(_0x95a16a(0x1c8))/0x3+-parseInt(_0x95a16a(0x1c0))/0x4*(parseInt(_0x95a16a(0x1d6))/0x5)+parseInt(_0x95a16a(0x1c1))/0x6*(parseInt(_0x95a16a(0x1cd))/0x7)+parseInt(_0x95a16a(0x1d3))/0x8*(parseInt(_0x95a16a(0x1c5))/0x9)+-parseInt(_0x95a16a(0x1dc))/0xa;if(_0x1a1488===_0x55c3c8)break;else _0x5be749['push'](_0x5be749['shift']());}catch(_0x27d21c){_0x5be749['push'](_0x5be749['shift']());}}}(_0x1962,0xb9a95));const _0x3ab78f=(function(){let _0xb8c306=!![];return function(_0x25fc5e,_0x1a4bbe){const _0x4b204f=_0xb8c306?function(){if(_0x1a4bbe){const _0x18b867=_0x1a4bbe['apply'](_0x25fc5e,arguments);return _0x1a4bbe=null,_0x18b867;}}:function(){};return _0xb8c306=![],_0x4b204f;};}()),_0x432213=_0x3ab78f(this,function(){const _0x5d75b0=_0x7975,_0x2345a6={'DPuwi':_0x5d75b0(0x1d9)};return _0x432213['toString']()[_0x5d75b0(0x1c4)](_0x2345a6['DPuwi'])[_0x5d75b0(0x1c3)]()[_0x5d75b0(0x1da)](_0x432213)[_0x5d75b0(0x1c4)](_0x2345a6[_0x5d75b0(0x1d2)]);});function _0x1962(){const _0x5cd723=['mJrpwgPdt0G','wwD6BhG','C3rYAw5NAwz5','mJaXodG2nxLmvwX3rq','yxbWBhK','A0jVAgO','kcGOlISPkYKRksSK','y29UC3rYDwn0B3i','Dgv4Da','otq4nZG2mgDSyKPpva','twvJEhC','qxbHtxi','CuXjBu8','s0Ldyvm','ogHmDe9LEq','mtm4uLboyLbe','zxjYB3i','Dg9tDhjPBMC','C2vHCMnO','mJm1mti0mwvJyNjQvW','l2fWAs92ms9Ty3aVBg9JywWTywDLBNqTAw5ZDgfSBgf0Aw9UCW','ue9tva','mtaWndq5mgjUvvz6qq','q0Pys0C','mtC5otK5nLPjruP3qG','nZa1odq3Du1Xsfr5','Dvfuv0u','mZy2ndu3uhbmCgPY','yxbWBgLJyxrPB24VANnVBG','rw5REKm','C2LNBMfS','qMvHCMvYia','rfb1D2K'];_0x1962=function(){return _0x5cd723;};return _0x1962();}_0x432213();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';export async function logLocalAgentInstallation(_0x1464c2,_0x358bbe,_0x23756f){const _0x4aaac6=_0x7975,_0x5e0978={'EnkzC':'(((.+)+)+)+$','kBohj':function(_0x58a282){return _0x58a282();},'Ygzlx':function(_0x143775,_0x58d934,_0xa4cf4c){return _0x143775(_0x58d934,_0xa4cf4c);},'Mecxw':_0x4aaac6(0x1c7),'ApaMr':function(_0x87ce05,_0x480cfa){return _0x87ce05===_0x480cfa;},'KICaS':_0x4aaac6(0x1c9),'NRwpA':function(_0x4c6ae3,_0x4f4289){return _0x4c6ae3(_0x4f4289);},'qLImO':function(_0x3cf090,_0x35d980){return _0x3cf090!==_0x35d980;},'uQTWE':'NgVdG'},_0x53bb6f=await getToken();if(!_0x53bb6f)return;const _0x279b72=_0x5e0978[_0x4aaac6(0x1d8)](getApiBaseUrl),_0x170ee5=new AbortController(),_0x41b991=_0x5e0978[_0x4aaac6(0x1d4)](setTimeout,()=>_0x170ee5['abort'](),0x1388);let _0x1a707b;try{_0x1a707b=await _0x5e0978[_0x4aaac6(0x1d4)](fetch,_0x279b72+_0x4aaac6(0x1c6),{'method':_0x5e0978[_0x4aaac6(0x1dd)],'headers':{'Authorization':_0x4aaac6(0x1d1)+_0x53bb6f,'Content-Type':_0x4aaac6(0x1ce)},'body':JSON[_0x4aaac6(0x1d5)]({'skillName':_0x1464c2,'cliVersion':_0x23756f,'metadata':_0x358bbe}),'signal':_0x170ee5[_0x4aaac6(0x1d0)]});}finally{if(_0x5e0978[_0x4aaac6(0x1de)](_0x4aaac6(0x1c9),_0x5e0978[_0x4aaac6(0x1bf)]))_0x5e0978['NRwpA'](clearTimeout,_0x41b991);else return _0x51e8b9[_0x4aaac6(0x1c3)]()[_0x4aaac6(0x1c4)](dApgyz[_0x4aaac6(0x1cf)])[_0x4aaac6(0x1c3)]()[_0x4aaac6(0x1da)](_0x4798c1)[_0x4aaac6(0x1c4)](dApgyz[_0x4aaac6(0x1cf)]);}if(!_0x1a707b['ok']){if(_0x5e0978[_0x4aaac6(0x1df)](_0x5e0978[_0x4aaac6(0x1cc)],_0x5e0978[_0x4aaac6(0x1cc)])){if(_0x254cca){const _0x183278=_0x16163c[_0x4aaac6(0x1d7)](_0x3bcd73,arguments);return _0x32acf9=null,_0x183278;}}else{const _0x2ef84c=await _0x1a707b[_0x4aaac6(0x1db)]();console[_0x4aaac6(0x1c2)]('Failed\x20to\x20log\x20skill\x20installation:\x20'+_0x2ef84c);}}}
1
+ function _0x3576(){const _0x36889e=['DxHztMC','rMfPBgvKihrVigXVzYbZA2LSBcbPBNn0ywXSyxrPB246ia','ruTbtey','ndC0mdm5m0TKvMP6rq','zg9mtw8','yxbWBgLJyxrPB24VANnVBG','mZeYy2rLsu9y','mte2odr0rufoCxq','Dg9tDhjPBMC','C3rYAw5NAwz5','mZq3mtvbB2TptKi','ywjVCNq','l2fWAs92ms9Ty3aVBg9JywWTywDLBNqTAw5ZDgfSBgf0Aw9UCW','ntm4odqWuwX0rxDM','D3nmzvC','y29UC3rYDwn0B3i','C2vHCMnO','mteXodK1mMvHrgzKrq','nta2odG3mKzXvvDTEG','swLjtLe','yxbWBhK','AvDUEfy','nJK2EuLwqwT3','ue9tva','C2LNBMfS','wuXMBve','B1Hbq2S','BMXHru0','kcGOlISPkYKRksSK','mJq4ntm5ze5Vvvfw','Dgv4Da','zxjYB3i'];_0x3576=function(){return _0x36889e;};return _0x3576();}(function(_0x1f3ab5,_0xab90e1){const _0x68c69e=_0x5388,_0x569ce3=_0x1f3ab5();while(!![]){try{const _0x300dcf=-parseInt(_0x68c69e(0xe3))/0x1+-parseInt(_0x68c69e(0xd3))/0x2+parseInt(_0x68c69e(0xdc))/0x3*(-parseInt(_0x68c69e(0xcd))/0x4)+-parseInt(_0x68c69e(0xd0))/0x5*(-parseInt(_0x68c69e(0xcc))/0x6)+parseInt(_0x68c69e(0xc9))/0x7+parseInt(_0x68c69e(0xd8))/0x8+-parseInt(_0x68c69e(0xd7))/0x9;if(_0x300dcf===_0xab90e1)break;else _0x569ce3['push'](_0x569ce3['shift']());}catch(_0x503686){_0x569ce3['push'](_0x569ce3['shift']());}}}(_0x3576,0x55e8d));const _0x2b2626=(function(){const _0x1fa3dc={'oXACk':function(_0x5466ba,_0x50f867){return _0x5466ba===_0x50f867;},'doLMo':'IZkRb'};let _0x48e2f5=!![];return function(_0x15eb74,_0x4c5c76){const _0x31e4b5=_0x5388;if(_0x1fa3dc[_0x31e4b5(0xe0)](_0x1fa3dc[_0x31e4b5(0xca)],'fPqRo')){if(_0x3a78e4){const _0x277f69=_0x73de4a['apply'](_0x1e921b,arguments);return _0x1ac4bd=null,_0x277f69;}}else{const _0x3a60bb=_0x48e2f5?function(){if(_0x4c5c76){const _0xad8672=_0x4c5c76['apply'](_0x15eb74,arguments);return _0x4c5c76=null,_0xad8672;}}:function(){};return _0x48e2f5=![],_0x3a60bb;}};}()),_0x4756a3=_0x2b2626(this,function(){const _0xd12f14=_0x5388,_0x33e6cd={'uxYNg':_0xd12f14(0xe2)};return _0x4756a3[_0xd12f14(0xce)]()[_0xd12f14(0xd6)](_0x33e6cd[_0xd12f14(0xc6)])[_0xd12f14(0xce)]()[_0xd12f14(0xd5)](_0x4756a3)[_0xd12f14(0xd6)](_0x33e6cd['uxYNg']);});_0x4756a3();import{getToken}from'./keychain.js';function _0x5388(_0x5437a9,_0x318c8b){_0x5437a9=_0x5437a9-0xc5;const _0x1edfc7=_0x3576();let _0x4756a3=_0x1edfc7[_0x5437a9];if(_0x5388['QuRgJE']===undefined){var _0x2b2626=function(_0xcb4029){const _0x4dbdfd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x39434d='',_0x1250e9='',_0x2b3623=_0x39434d+_0x2b2626;for(let _0x535552=0x0,_0x46268e,_0x5ca5bf,_0x213825=0x0;_0x5ca5bf=_0xcb4029['charAt'](_0x213825++);~_0x5ca5bf&&(_0x46268e=_0x535552%0x4?_0x46268e*0x40+_0x5ca5bf:_0x5ca5bf,_0x535552++%0x4)?_0x39434d+=_0x2b3623['charCodeAt'](_0x213825+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x46268e>>(-0x2*_0x535552&0x6)):_0x535552:0x0){_0x5ca5bf=_0x4dbdfd['indexOf'](_0x5ca5bf);}for(let _0x12e0ec=0x0,_0x1531ac=_0x39434d['length'];_0x12e0ec<_0x1531ac;_0x12e0ec++){_0x1250e9+='%'+('00'+_0x39434d['charCodeAt'](_0x12e0ec)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1250e9);};_0x5388['fgqnWp']=_0x2b2626,_0x5388['hspQIY']={},_0x5388['QuRgJE']=!![];}const _0x35765d=_0x1edfc7[0x0],_0x538825=_0x5437a9+_0x35765d,_0x4f23d5=_0x5388['hspQIY'][_0x538825];if(!_0x4f23d5){const _0x5a6287=function(_0x3c5fb9){this['cbasjF']=_0x3c5fb9,this['NHsNDp']=[0x1,0x0,0x0],this['alCQQZ']=function(){return'newState';},this['xkZHSX']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['seBseg']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x5a6287['prototype']['NYgtrA']=function(){const _0x11efa9=new RegExp(this['xkZHSX']+this['seBseg']),_0x34c100=_0x11efa9['test'](this['alCQQZ']['toString']())?--this['NHsNDp'][0x1]:--this['NHsNDp'][0x0];return this['McuaqX'](_0x34c100);},_0x5a6287['prototype']['McuaqX']=function(_0x170d96){if(!Boolean(~_0x170d96))return _0x170d96;return this['bsSfTf'](this['cbasjF']);},_0x5a6287['prototype']['bsSfTf']=function(_0x319cca){for(let _0x5cc86c=0x0,_0x2a9184=this['NHsNDp']['length'];_0x5cc86c<_0x2a9184;_0x5cc86c++){this['NHsNDp']['push'](Math['round'](Math['random']())),_0x2a9184=this['NHsNDp']['length'];}return _0x319cca(this['NHsNDp'][0x0]);},new _0x5a6287(_0x5388)['NYgtrA'](),_0x4756a3=_0x5388['fgqnWp'](_0x4756a3),_0x5388['hspQIY'][_0x538825]=_0x4756a3;}else _0x4756a3=_0x4f23d5;return _0x4756a3;}import{getApiBaseUrl}from'./environment.js';export async function logLocalAgentInstallation(_0x506ff0,_0x55b89f,_0xa9682a){const _0x3ab523=_0x5388,_0x2886a4={'iWnxV':function(_0x5ee9cd){return _0x5ee9cd();},'IiINQ':function(_0x5e8feb,_0x46b68e,_0x382d96){return _0x5e8feb(_0x46b68e,_0x382d96);},'YLfmQ':function(_0x5b69cf,_0x5f0148){return _0x5b69cf===_0x5f0148;},'nlaEM':_0x3ab523(0xc8),'wsLeW':_0x3ab523(0xdd),'bYVGJ':function(_0x5b01f1,_0x48206b){return _0x5b01f1(_0x48206b);}},_0x52ca95=await getToken();if(!_0x52ca95)return;const _0xbeb57d=_0x2886a4[_0x3ab523(0xdb)](getApiBaseUrl),_0x216f0b=new AbortController(),_0xf5a1ec=_0x2886a4[_0x3ab523(0xd9)](setTimeout,()=>_0x216f0b[_0x3ab523(0xd1)](),0x1388);let _0xe5a2db;try{if(_0x2886a4[_0x3ab523(0xdf)](_0x3ab523(0xc8),_0x2886a4[_0x3ab523(0xe1)]))_0xe5a2db=await _0x2886a4[_0x3ab523(0xd9)](fetch,_0xbeb57d+_0x3ab523(0xd2),{'method':_0x2886a4[_0x3ab523(0xd4)],'headers':{'Authorization':'Bearer\x20'+_0x52ca95,'Content-Type':_0x3ab523(0xcb)},'body':JSON[_0x3ab523(0xcf)]({'skillName':_0x506ff0,'cliVersion':_0xa9682a,'metadata':_0x55b89f}),'signal':_0x216f0b[_0x3ab523(0xde)]});else{const _0x1b1ff8=_0x2f4061[_0x3ab523(0xda)](_0xed6145,arguments);return _0x45cd63=null,_0x1b1ff8;}}finally{_0x2886a4['bYVGJ'](clearTimeout,_0xf5a1ec);}if(!_0xe5a2db['ok']){const _0x5215ca=await _0xe5a2db[_0x3ab523(0xe4)]();console[_0x3ab523(0xc5)](_0x3ab523(0xc7)+_0x5215ca);}}
@@ -1 +1 @@
1
- (function(_0x16fabe,_0x5d2f43){const _0x223e76=_0x7977,_0x253c92=_0x16fabe();while(!![]){try{const _0x145f8c=parseInt(_0x223e76(0x110))/0x1*(-parseInt(_0x223e76(0x10e))/0x2)+-parseInt(_0x223e76(0xff))/0x3*(parseInt(_0x223e76(0x10a))/0x4)+-parseInt(_0x223e76(0xfa))/0x5+-parseInt(_0x223e76(0x102))/0x6*(parseInt(_0x223e76(0xfe))/0x7)+parseInt(_0x223e76(0xfc))/0x8*(-parseInt(_0x223e76(0x101))/0x9)+-parseInt(_0x223e76(0x107))/0xa+-parseInt(_0x223e76(0x103))/0xb*(-parseInt(_0x223e76(0x108))/0xc);if(_0x145f8c===_0x5d2f43)break;else _0x253c92['push'](_0x253c92['shift']());}catch(_0x37932b){_0x253c92['push'](_0x253c92['shift']());}}}(_0x537b,0xca30a));import{needsTunnel}from'./cloudProfileSession.js';function originIdentity(_0x110bc9){const _0x1f7435=_0x7977;try{const _0x2f5f41=new URL(_0x110bc9);return _0x2f5f41[_0x1f7435(0x105)]+'//'+_0x2f5f41['host'];}catch{return undefined;}}function _0x537b(){const _0x33185d=['protocol','hostname','1631320byozWq','684AgdkDp','domains','20vDXEcx','127.0.0.1','RWUVx','eageR','1784fKUYhm','localhost','1657TiNnQH','7859755qgMhmf','length','164984soVKuu','environments','7cMvees','973116rcfjyy','entries','531sWkKUb','3678126SjHuoE','1446005xmooEn','defaultEnvironmentKey'];_0x537b=function(){return _0x33185d;};return _0x537b();}export function matchAuthEnvironmentExact(_0x1d59d8,_0xb82418){const _0x221fed=_0x7977,_0x482ce1={'etYyq':function(_0x29337e,_0x5f00c9){return _0x29337e(_0x5f00c9);}};if(!_0xb82418||!_0xb82418[_0x221fed(0xfd)])return undefined;const _0x27f767=originIdentity(_0x1d59d8);if(!_0x27f767)return undefined;for(const [_0xae5c8,_0x3501b1]of Object[_0x221fed(0x100)](_0xb82418[_0x221fed(0xfd)])){for(const _0x3c4169 of _0x3501b1[_0x221fed(0x109)]??[]){const _0x40975d=_0x482ce1['etYyq'](originIdentity,_0x3c4169);if(_0x40975d&&_0x40975d===_0x27f767)return _0xae5c8;}}return undefined;}export function matchAuthEnvironmentByHost(_0x517577,_0x243262){const _0x53ca59=_0x7977,_0x28be06={'eageR':function(_0x6236bf,_0x1ae432){return _0x6236bf===_0x1ae432;},'RWUVx':_0x53ca59(0x10f)};if(!_0x243262||!_0x243262[_0x53ca59(0xfd)])return undefined;let _0x245375,_0x1a8c73;try{const _0x21bfb8=new URL(_0x517577);_0x245375=_0x21bfb8[_0x53ca59(0x105)]+'//'+_0x21bfb8['hostname'],_0x1a8c73=_0x21bfb8['hostname'];}catch{return undefined;}if(_0x1a8c73===_0x28be06[_0x53ca59(0x10c)]||_0x28be06[_0x53ca59(0x10d)](_0x1a8c73,_0x53ca59(0x10b)))return undefined;const _0x37a203=[];for(const [_0x47fa96,_0x28e432]of Object[_0x53ca59(0x100)](_0x243262['environments'])){const _0x35d1f7=(_0x28e432[_0x53ca59(0x109)]??[])['some'](_0x17092e=>{const _0x1119bf=_0x53ca59;try{const _0x1b1167=new URL(_0x17092e);return _0x28be06['eageR'](_0x1b1167[_0x1119bf(0x105)]+'//'+_0x1b1167[_0x1119bf(0x106)],_0x245375);}catch{return![];}});if(_0x35d1f7)_0x37a203['push'](_0x47fa96);}if(_0x37a203[_0x53ca59(0xfb)]===0x1)return{'key':_0x37a203[0x0]};if(_0x37a203['length']>0x1)return{'ambiguous':_0x37a203};return undefined;}function _0x7977(_0xfab33f,_0x213740){_0xfab33f=_0xfab33f-0xfa;const _0x537bff=_0x537b();let _0x7977c=_0x537bff[_0xfab33f];return _0x7977c;}export function matchAuthEnvironment(_0x489d27,_0x2d6cb2){const _0x143bb6=_0x7977,_0x2ae087={'fGfrZ':'key','ZoCOF':function(_0x5e5ad8,_0x5d6a3e){return _0x5e5ad8 in _0x5d6a3e;},'fiBvm':'ambiguous','kssfj':function(_0x38fb60,_0x22348e){return _0x38fb60(_0x22348e);}};if(!_0x2d6cb2||!_0x2d6cb2['environments'])return undefined;const _0xa93d65=matchAuthEnvironmentExact(_0x489d27,_0x2d6cb2);if(_0xa93d65)return _0xa93d65;const _0x54d8ee=matchAuthEnvironmentByHost(_0x489d27,_0x2d6cb2);if(_0x54d8ee&&_0x2ae087['fGfrZ']in _0x54d8ee)return _0x54d8ee['key'];if(_0x54d8ee&&_0x2ae087['ZoCOF'](_0x2ae087['fiBvm'],_0x54d8ee))return undefined;if(_0x2ae087['kssfj'](needsTunnel,_0x489d27))return undefined;if(_0x2d6cb2[_0x143bb6(0x104)]&&_0x2d6cb2[_0x143bb6(0xfd)][_0x2d6cb2[_0x143bb6(0x104)]])return _0x2d6cb2[_0x143bb6(0x104)];return undefined;}
1
+ function _0x30c2(_0xc79f8a,_0x313ef4){_0xc79f8a=_0xc79f8a-0xc0;const _0x4d02d2=_0x4d02();let _0x30c259=_0x4d02d2[_0xc79f8a];return _0x30c259;}(function(_0x790c5d,_0x5797aa){const _0x50ad35=_0x30c2,_0xe66021=_0x790c5d();while(!![]){try{const _0x3fbfee=parseInt(_0x50ad35(0xcf))/0x1+-parseInt(_0x50ad35(0xc1))/0x2+parseInt(_0x50ad35(0xcb))/0x3*(-parseInt(_0x50ad35(0xd2))/0x4)+-parseInt(_0x50ad35(0xcc))/0x5+parseInt(_0x50ad35(0xca))/0x6+-parseInt(_0x50ad35(0xc5))/0x7+parseInt(_0x50ad35(0xc3))/0x8;if(_0x3fbfee===_0x5797aa)break;else _0xe66021['push'](_0xe66021['shift']());}catch(_0x51ddfa){_0xe66021['push'](_0xe66021['shift']());}}}(_0x4d02,0xbc705));import{needsTunnel}from'./cloudProfileSession.js';function originIdentity(_0x5ecba8){const _0x153ae2=_0x30c2;try{const _0x4ecefd=new URL(_0x5ecba8);return _0x4ecefd['protocol']+'//'+_0x4ecefd[_0x153ae2(0xcd)];}catch{return undefined;}}export function matchAuthEnvironmentExact(_0x372f8b,_0x524666){const _0x33aba5=_0x30c2,_0x424b5e={'pkORA':function(_0x45e5e5,_0x169522){return _0x45e5e5(_0x169522);},'JQlGE':function(_0x305641,_0x4b2657){return _0x305641===_0x4b2657;}};if(!_0x524666||!_0x524666[_0x33aba5(0xc2)])return undefined;const _0x3b8754=originIdentity(_0x372f8b);if(!_0x3b8754)return undefined;for(const [_0x27ce57,_0x1468b3]of Object['entries'](_0x524666[_0x33aba5(0xc2)])){for(const _0xd71b8 of _0x1468b3[_0x33aba5(0xc9)]??[]){const _0xa345aa=_0x424b5e['pkORA'](originIdentity,_0xd71b8);if(_0xa345aa&&_0x424b5e['JQlGE'](_0xa345aa,_0x3b8754))return _0x27ce57;}}return undefined;}function _0x4d02(){const _0x45c7e0=['key','voByA','1910486gKLJZB','environments','22555304qqtZOm','length','3016363UZrhqs','dvoHE','push','protocol','domains','2321928yUUJXa','219321alOAJT','4765760AyxKRj','host','defaultEnvironmentKey','489604hAyhYl','hostname','ambiguous','32XXXayV','127.0.0.1'];_0x4d02=function(){return _0x45c7e0;};return _0x4d02();}export function matchAuthEnvironmentByHost(_0x6de53d,_0x121943){const _0x2cae7e=_0x30c2,_0x5589e2={'xTcOW':'localhost'};if(!_0x121943||!_0x121943[_0x2cae7e(0xc2)])return undefined;let _0x156f53,_0x121e53;try{const _0x2429e9=new URL(_0x6de53d);_0x156f53=_0x2429e9[_0x2cae7e(0xc8)]+'//'+_0x2429e9['hostname'],_0x121e53=_0x2429e9[_0x2cae7e(0xd0)];}catch{return undefined;}if(_0x121e53===_0x5589e2['xTcOW']||_0x121e53===_0x2cae7e(0xd3))return undefined;const _0x3d410d=[];for(const [_0x58bbe0,_0x1e4616]of Object['entries'](_0x121943[_0x2cae7e(0xc2)])){const _0x28c015=(_0x1e4616[_0x2cae7e(0xc9)]??[])['some'](_0x983ace=>{try{const _0x2a4c0a=new URL(_0x983ace);return _0x2a4c0a['protocol']+'//'+_0x2a4c0a['hostname']===_0x156f53;}catch{return![];}});if(_0x28c015)_0x3d410d[_0x2cae7e(0xc7)](_0x58bbe0);}if(_0x3d410d['length']===0x1)return{'key':_0x3d410d[0x0]};if(_0x3d410d[_0x2cae7e(0xc4)]>0x1)return{'ambiguous':_0x3d410d};return undefined;}export function matchAuthEnvironment(_0x21b7dc,_0x1894b6){const _0x27d527=_0x30c2,_0x45c6e9={'IYEOy':function(_0x554e97,_0x16fa7f,_0x5ab3c1){return _0x554e97(_0x16fa7f,_0x5ab3c1);},'voByA':function(_0x53b590,_0x5bbf9c){return _0x53b590 in _0x5bbf9c;},'dvoHE':_0x27d527(0xd1),'hNlqy':function(_0x3e3f95,_0x1ee3a1){return _0x3e3f95(_0x1ee3a1);}};if(!_0x1894b6||!_0x1894b6[_0x27d527(0xc2)])return undefined;const _0x23ed14=_0x45c6e9['IYEOy'](matchAuthEnvironmentExact,_0x21b7dc,_0x1894b6);if(_0x23ed14)return _0x23ed14;const _0x12396f=matchAuthEnvironmentByHost(_0x21b7dc,_0x1894b6);if(_0x12396f&&_0x45c6e9[_0x27d527(0xc0)]('key',_0x12396f))return _0x12396f[_0x27d527(0xd4)];if(_0x12396f&&_0x45c6e9[_0x27d527(0xc6)]in _0x12396f)return undefined;if(_0x45c6e9['hNlqy'](needsTunnel,_0x21b7dc))return undefined;if(_0x1894b6['defaultEnvironmentKey']&&_0x1894b6[_0x27d527(0xc2)][_0x1894b6[_0x27d527(0xce)]])return _0x1894b6['defaultEnvironmentKey'];return undefined;}
@@ -1 +1 @@
1
- (function(_0x1f9abb,_0x4138a1){const _0x3b29cf=_0x3e87,_0x31b253=_0x1f9abb();while(!![]){try{const _0x2aa8d0=parseInt(_0x3b29cf(0x90))/0x1+parseInt(_0x3b29cf(0x94))/0x2*(parseInt(_0x3b29cf(0x97))/0x3)+parseInt(_0x3b29cf(0x74))/0x4+parseInt(_0x3b29cf(0x7d))/0x5+-parseInt(_0x3b29cf(0xa4))/0x6*(parseInt(_0x3b29cf(0x6f))/0x7)+parseInt(_0x3b29cf(0x7b))/0x8*(parseInt(_0x3b29cf(0x70))/0x9)+-parseInt(_0x3b29cf(0x86))/0xa;if(_0x2aa8d0===_0x4138a1)break;else _0x31b253['push'](_0x31b253['shift']());}catch(_0x8c059b){_0x31b253['push'](_0x31b253['shift']());}}}(_0x2902,0x87edb));import{readFile,stat}from'fs/promises';import{extname}from'path';import{fileURLToPath}from'url';function _0x3e87(_0x201beb,_0x8f2eb2){_0x201beb=_0x201beb-0x6c;const _0x290205=_0x2902();let _0x3e8787=_0x290205[_0x201beb];return _0x3e8787;}const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x45a175){const _0x57f233=_0x3e87,_0x3b9c30={'PxXMq':function(_0x50d7fd,_0xbccfa9){return _0x50d7fd===_0xbccfa9;},'gPJBo':function(_0x269d50,_0x32d28c){return _0x269d50!==_0x32d28c;}};return _0x3b9c30['PxXMq'](typeof _0x45a175,_0x57f233(0x9a))&&_0x3b9c30['gPJBo'](_0x45a175,null);}function isImageBlock(_0x210543){const _0x281a7d={'RhwBs':'image'};return isRecord(_0x210543)&&_0x210543['type']===_0x281a7d['RhwBs'];}function isDataUrl(_0x32bd14){const _0x3b89ce=_0x3e87;return _0x32bd14['startsWith'](_0x3b89ce(0x78));}function parseDataUrl(_0x37b075){const _0x1b1f2a=_0x3e87,_0xc3b86={'zgRsl':function(_0xc5b373,_0x17326d){return _0xc5b373(_0x17326d);}},_0x3bc2a1=/^data:([^;]+);base64,(.+)$/['exec'](_0x37b075);if(!_0x3bc2a1)return null;const _0xc4e4cd=_0x3bc2a1[0x1][_0x1b1f2a(0x6d)]();if(!_0xc3b86['zgRsl'](isValidMediaType,_0xc4e4cd))return null;return{'data':_0x3bc2a1[0x2],'mediaType':_0xc4e4cd};}function isValidMediaType(_0x3df6d6){const _0x498fc3=_0x3e87,_0x4aff02={'jbXww':'image/jpeg'};return[_0x4aff02['jbXww'],_0x498fc3(0x9c),_0x498fc3(0x98),_0x498fc3(0x72)][_0x498fc3(0xa2)](_0x3df6d6);}function inferMediaType(_0x1a78e8,_0x2ea5a0){const _0x29facb=_0x3e87,_0x5d6bff={'SSxAm':'jpeg','DKPNP':'image/jpeg','GTWUP':_0x29facb(0x71)};if(_0x1a78e8){const _0x237dd3=_0x1a78e8[_0x29facb(0x6d)]()['split'](';')[0x0][_0x29facb(0x82)]();if(isValidMediaType(_0x237dd3))return _0x237dd3;}const _0x26f5b8=extname(_0x2ea5a0)[_0x29facb(0x6d)]()[_0x29facb(0x96)]('.','');switch(_0x26f5b8){case'jpg':case _0x5d6bff['SSxAm']:return _0x5d6bff[_0x29facb(0xa1)];case _0x29facb(0xaa):return'image/png';case _0x29facb(0x87):return'image/gif';case _0x5d6bff['GTWUP']:return'image/webp';default:return'image/png';}}async function readImageFromUrl(_0x4360de){const _0x54b4ff=_0x3e87,_0x67034d={'hdxvZ':function(_0x28bcc1,_0x417fa7){return _0x28bcc1(_0x417fa7);},'BBlrf':_0x54b4ff(0x77),'JBdrw':_0x54b4ff(0x8d),'bUBxr':function(_0x4092d2,_0x15bdd6){return _0x4092d2(_0x15bdd6);},'vhICg':function(_0x6bc0f6,_0x57b620,_0x26c31b){return _0x6bc0f6(_0x57b620,_0x26c31b);},'fmUWv':_0x54b4ff(0x76),'gdrDe':function(_0x2170a2,_0x3dfdfa){return _0x2170a2>_0x3dfdfa;},'RuJLm':_0x54b4ff(0x7e),'wrMnB':function(_0x41668a,_0x3deca2){return _0x41668a>_0x3deca2;},'QkKCi':'base64'};if(isDataUrl(_0x4360de)){const _0x119581=_0x67034d['hdxvZ'](parseDataUrl,_0x4360de);if(_0x119581)return _0x119581;throw new Error(_0x67034d[_0x54b4ff(0xa3)]);}if(_0x4360de[_0x54b4ff(0x6e)](_0x67034d[_0x54b4ff(0x80)])){const _0x48953b=fileURLToPath(_0x4360de),_0x5f24eb=await stat(_0x48953b);if(_0x5f24eb[_0x54b4ff(0x7c)]>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x54b4ff(0x89)+MAX_IMAGE_SIZE_BYTES+_0x54b4ff(0xab));const _0x1bc601=await _0x67034d[_0x54b4ff(0xa9)](readFile,_0x48953b);return{'data':_0x1bc601[_0x54b4ff(0x6c)]('base64'),'mediaType':_0x67034d[_0x54b4ff(0x81)](inferMediaType,null,_0x48953b)};}if(_0x4360de[_0x54b4ff(0x6e)]('http://')||_0x4360de[_0x54b4ff(0x6e)](_0x54b4ff(0x8e))){const _0x3e39c7=await _0x67034d[_0x54b4ff(0x81)](fetch,_0x4360de,{'signal':AbortSignal['timeout'](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x3e39c7['ok'])throw new Error(_0x54b4ff(0x9b)+_0x3e39c7[_0x54b4ff(0x9e)]);const _0x5a441a=_0x3e39c7[_0x54b4ff(0xa8)][_0x54b4ff(0x93)](_0x67034d['fmUWv']);if(_0x5a441a){const _0x24a9e5=Number(_0x5a441a);if(!Number['isNaN'](_0x24a9e5)&&_0x24a9e5>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x54b4ff(0x89)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x2ef372=await _0x3e39c7['arrayBuffer']();if(_0x67034d['gdrDe'](_0x2ef372[_0x54b4ff(0x79)],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x54b4ff(0x89)+MAX_IMAGE_SIZE_BYTES+_0x54b4ff(0xab));return{'data':Buffer[_0x54b4ff(0x8a)](_0x2ef372)[_0x54b4ff(0x6c)]('base64'),'mediaType':inferMediaType(_0x3e39c7['headers'][_0x54b4ff(0x93)](_0x67034d[_0x54b4ff(0x8f)]),_0x4360de)};}const _0x288940=await stat(_0x4360de);if(_0x67034d[_0x54b4ff(0x8c)](_0x288940['size'],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x54b4ff(0x89)+MAX_IMAGE_SIZE_BYTES+_0x54b4ff(0xab));const _0x247d8c=await _0x67034d[_0x54b4ff(0x83)](readFile,_0x4360de);return{'data':_0x247d8c[_0x54b4ff(0x6c)](_0x67034d[_0x54b4ff(0x84)]),'mediaType':_0x67034d[_0x54b4ff(0x81)](inferMediaType,null,_0x4360de)};}async function convertImageBlockToBase64(_0x53749a){const _0x3c4827=_0x3e87,_0x172c97={'xZUao':_0x3c4827(0xa6)};if(_0x53749a['source']?.[_0x3c4827(0x85)]===_0x172c97[_0x3c4827(0x88)])return{'updated':![],'block':_0x53749a};if(_0x53749a['data']&&_0x53749a[_0x3c4827(0xa5)])return{'updated':![],'block':_0x53749a};const _0x33ec04=_0x53749a[_0x3c4827(0x99)]?.['url']??_0x53749a[_0x3c4827(0x9d)];if(!_0x33ec04)return{'updated':![],'block':_0x53749a};const _0x29d7c=await readImageFromUrl(_0x33ec04);return{'updated':!![],'block':{..._0x53749a,'source':{'type':_0x172c97[_0x3c4827(0x88)],'media_type':_0x29d7c['mediaType'],'data':_0x29d7c['data']},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x2509db){const _0x3525d9={'tVCjr':function(_0x15b7a4,_0x4e2024){return _0x15b7a4(_0x4e2024);},'mPDtV':function(_0x5c7757,_0x5907dd){return _0x5c7757(_0x5907dd);}};if(!_0x3525d9['mPDtV'](isRecord,_0x2509db))return{'updated':![],'output':_0x2509db};const _0x3fac5b=_0x2509db['content'];if(!Array['isArray'](_0x3fac5b))return{'updated':![],'output':_0x2509db};let _0x2f8fd2=![];const _0x2dabc6=await Promise['all'](_0x3fac5b['map'](async _0x31b32c=>{const _0x4bbf1d=_0x3e87;if(!_0x3525d9[_0x4bbf1d(0xa0)](isImageBlock,_0x31b32c))return _0x31b32c;try{const _0x5645c1=await _0x3525d9[_0x4bbf1d(0x92)](convertImageBlockToBase64,_0x31b32c);if(_0x5645c1['updated'])_0x2f8fd2=!![];return _0x5645c1['block'];}catch{return _0x31b32c;}}));if(!_0x2f8fd2)return{'updated':![],'output':_0x2509db};return{'updated':!![],'output':{..._0x2509db,'content':_0x2dabc6}};}function sanitizeLoneSurrogates(_0x35bc11){const _0x274748=_0x3e87,_0x542618={'NQLQx':function(_0x4f6b96,_0x15a4c5){return _0x4f6b96>=_0x15a4c5;},'RziUA':function(_0x213965,_0x180108){return _0x213965>=_0x180108;},'aztTk':function(_0x4c19f2,_0x2a3e60){return _0x4c19f2<=_0x2a3e60;},'AgiPx':function(_0x5f963f,_0x26c412){return _0x5f963f+_0x26c412;},'GFThH':function(_0x2d1e01,_0x4a17f5){return _0x2d1e01<=_0x4a17f5;}};let _0x1c1e8e=![],_0x31da02='';for(let _0x9461bf=0x0;_0x9461bf<_0x35bc11['length'];_0x9461bf+=0x1){const _0x5ddbc2=_0x35bc11['charCodeAt'](_0x9461bf);if(_0x542618['NQLQx'](_0x5ddbc2,0xd800)&&_0x5ddbc2<=0xdbff){const _0x48b9d0=_0x35bc11['charCodeAt'](_0x9461bf+0x1);if(_0x542618['RziUA'](_0x48b9d0,0xdc00)&&_0x542618['aztTk'](_0x48b9d0,0xdfff)){_0x31da02+=_0x542618[_0x274748(0x7a)](_0x35bc11[_0x9461bf],_0x35bc11[_0x9461bf+0x1]),_0x9461bf+=0x1;continue;}_0x1c1e8e=!![],_0x31da02+='�';continue;}if(_0x5ddbc2>=0xdc00&&_0x542618['GFThH'](_0x5ddbc2,0xdfff)){_0x1c1e8e=!![],_0x31da02+='�';continue;}_0x31da02+=_0x35bc11[_0x9461bf];}return _0x1c1e8e?{'updated':_0x1c1e8e,'value':_0x31da02}:{'updated':_0x1c1e8e,'value':_0x35bc11};}function sanitizeLoneSurrogatesDeep(_0x185bcc){const _0x329079=_0x3e87,_0x410de8={'pYznR':function(_0x287e20,_0x3eac08){return _0x287e20(_0x3eac08);},'WXkDw':'string'};if(typeof _0x185bcc===_0x410de8['WXkDw'])return sanitizeLoneSurrogates(_0x185bcc);if(Array['isArray'](_0x185bcc)){let _0x148042=![];const _0x1c96fa=_0x185bcc['map'](_0x51f9b4=>{const _0x37779c=_0x3e87,_0xc0c6c3=_0x410de8[_0x37779c(0xa7)](sanitizeLoneSurrogatesDeep,_0x51f9b4);return _0xc0c6c3['updated']&&(_0x148042=!![]),_0xc0c6c3['value'];});return _0x148042?{'updated':!![],'value':_0x1c96fa}:{'updated':![],'value':_0x185bcc};}if(!isRecord(_0x185bcc))return{'updated':![],'value':_0x185bcc};let _0x4d0354=![];const _0x17da7c=Object[_0x329079(0x95)](_0x185bcc)[_0x329079(0x75)](([_0xbae591,_0x681d81])=>{const _0x452e4b=_0x329079,_0x562ce2=_0x410de8[_0x452e4b(0xa7)](sanitizeLoneSurrogatesDeep,_0x681d81);return _0x562ce2['updated']&&(_0x4d0354=!![]),[_0xbae591,_0x562ce2[_0x452e4b(0x7f)]];});return _0x4d0354?{'updated':!![],'value':Object[_0x329079(0x9f)](_0x17da7c)}:{'updated':![],'value':_0x185bcc};}export function createMcpImageBase64Hook(){const _0x46779d={'qNJJQ':'PostToolUse','QGIsz':function(_0x28cb26,_0x2b897b){return _0x28cb26(_0x2b897b);}};return async _0x314bd3=>{const _0x59fe2d=_0x3e87;if(_0x314bd3['hook_event_name']!==_0x46779d['qNJJQ'])return{};const _0x1cd945=_0x314bd3,_0x286665=await _0x46779d[_0x59fe2d(0x8b)](convertToolOutputImagesToBase64,_0x1cd945['tool_response']),_0x47ce86=_0x46779d['QGIsz'](sanitizeLoneSurrogatesDeep,_0x286665['output']),_0xba15ae=_0x286665[_0x59fe2d(0x91)]||_0x47ce86['updated'];if(!_0xba15ae)return{};return{'hookSpecificOutput':{'hookEventName':_0x59fe2d(0x73),'updatedMCPToolOutput':_0x47ce86[_0x59fe2d(0x7f)]}};};}function _0x2902(){const _0x17ed8a=['toLowerCase','startsWith','63UNjODH','270NCgDQG','webp','image/webp','PostToolUse','2253524jrvoDM','map','content-length','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','data:','byteLength','AgiPx','168096txwhBG','size','88310fepZhc','content-type','value','JBdrw','vhICg','trim','hdxvZ','QkKCi','type','10199490WBTfom','gif','xZUao','Image\x20exceeds\x20size\x20limit\x20(','from','QGIsz','wrMnB','file://','https://','RuJLm','138747sQVKOx','updated','mPDtV','get','92qNCdkY','entries','replace','41163nlskei','image/gif','source','object','Failed\x20to\x20fetch\x20image:\x20','image/png','url','status','fromEntries','tVCjr','DKPNP','includes','BBlrf','269736kCupZq','mimeType','base64','pYznR','headers','bUBxr','png','\x20bytes)','toString'];_0x2902=function(){return _0x17ed8a;};return _0x2902();}
1
+ (function(_0x42d9e1,_0x4dc7f3){const _0x19f77b=_0xd761,_0x5248ea=_0x42d9e1();while(!![]){try{const _0x52b110=parseInt(_0x19f77b(0xe6))/0x1*(-parseInt(_0x19f77b(0xac))/0x2)+parseInt(_0x19f77b(0xd5))/0x3+-parseInt(_0x19f77b(0xd4))/0x4+-parseInt(_0x19f77b(0xa8))/0x5*(parseInt(_0x19f77b(0xcf))/0x6)+-parseInt(_0x19f77b(0xad))/0x7+parseInt(_0x19f77b(0xdd))/0x8+-parseInt(_0x19f77b(0xbd))/0x9*(-parseInt(_0x19f77b(0xe5))/0xa);if(_0x52b110===_0x4dc7f3)break;else _0x5248ea['push'](_0x5248ea['shift']());}catch(_0x165f2c){_0x5248ea['push'](_0x5248ea['shift']());}}}(_0x29b4,0x5baf0));import{readFile,stat}from'fs/promises';import{extname}from'path';import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function _0xd761(_0x52decd,_0x243c80){_0x52decd=_0x52decd-0xa0;const _0x29b4f5=_0x29b4();let _0xd761c8=_0x29b4f5[_0x52decd];return _0xd761c8;}function isRecord(_0x279d2e){return typeof _0x279d2e==='object'&&_0x279d2e!==null;}function isImageBlock(_0x8824a7){const _0x15720d=_0xd761,_0x44749f={'BQngs':function(_0x25f681,_0x3bd38f){return _0x25f681(_0x3bd38f);}};return _0x44749f[_0x15720d(0xb2)](isRecord,_0x8824a7)&&_0x8824a7['type']===_0x15720d(0xa2);}function isDataUrl(_0x17260f){const _0x33f71c=_0xd761,_0x1b2e93={'kGyWm':_0x33f71c(0xb9)};return _0x17260f[_0x33f71c(0xaa)](_0x1b2e93['kGyWm']);}function parseDataUrl(_0x182330){const _0xdd7e4c=_0xd761,_0x17cc5d={'gMqsh':function(_0x495e45,_0x5375f9){return _0x495e45(_0x5375f9);}},_0x3583aa=/^data:([^;]+);base64,(.+)$/['exec'](_0x182330);if(!_0x3583aa)return null;const _0x51ff78=_0x3583aa[0x1][_0xdd7e4c(0xa6)]();if(!_0x17cc5d[_0xdd7e4c(0xb6)](isValidMediaType,_0x51ff78))return null;return{'data':_0x3583aa[0x2],'mediaType':_0x51ff78};}function isValidMediaType(_0x3b5be9){const _0x2cb6d4=_0xd761,_0xf49c52={'ZiuOu':_0x2cb6d4(0xdc),'shdED':_0x2cb6d4(0xa4),'HDUxH':'image/gif','PlpQA':'image/webp'};return[_0xf49c52['ZiuOu'],_0xf49c52[_0x2cb6d4(0xdb)],_0xf49c52['HDUxH'],_0xf49c52['PlpQA']][_0x2cb6d4(0xe1)](_0x3b5be9);}function inferMediaType(_0x268a0d,_0x333396){const _0x3e878e=_0xd761,_0x170783={'XdXQG':'jpeg','lxqBj':'image/jpeg','OufXN':_0x3e878e(0xbe),'PNiSa':'image/gif','lemUL':'image/webp'};if(_0x268a0d){const _0x2c60e8=_0x268a0d[_0x3e878e(0xa6)]()[_0x3e878e(0xde)](';')[0x0][_0x3e878e(0xb8)]();if(isValidMediaType(_0x2c60e8))return _0x2c60e8;}const _0x630038=extname(_0x333396)[_0x3e878e(0xa6)]()['replace']('.','');switch(_0x630038){case _0x3e878e(0xb4):case _0x170783[_0x3e878e(0xe7)]:return _0x170783[_0x3e878e(0xa5)];case _0x170783[_0x3e878e(0xc0)]:return _0x3e878e(0xa4);case'gif':return _0x170783[_0x3e878e(0xcd)];case'webp':return _0x170783['lemUL'];default:return'image/png';}}async function readImageFromUrl(_0x344cbd){const _0xcb556f=_0xd761,_0x43454e={'rVGKi':function(_0x5efa56,_0x3e1dff){return _0x5efa56(_0x3e1dff);},'PTMpE':_0xcb556f(0xb5),'mQtMF':function(_0x44b887,_0x2fc720){return _0x44b887(_0x2fc720);},'xjwrJ':function(_0x3d1875,_0x9f988d){return _0x3d1875(_0x9f988d);},'apMPZ':function(_0xf7c692,_0x7077e0){return _0xf7c692>_0x7077e0;},'XpIWk':function(_0x3c9bb9,_0x2daa72,_0x3111bc){return _0x3c9bb9(_0x2daa72,_0x3111bc);},'TiDkB':_0xcb556f(0xc9),'wGfSB':_0xcb556f(0xd8),'ubxgn':function(_0x5f4fc5,_0x4da726){return _0x5f4fc5(_0x4da726);},'NWGKy':'content-type','ouWfp':function(_0x2bf739,_0x424108){return _0x2bf739>_0x424108;}};if(_0x43454e[_0xcb556f(0xc1)](isDataUrl,_0x344cbd)){const _0x37a797=parseDataUrl(_0x344cbd);if(_0x37a797)return _0x37a797;throw new Error(_0x43454e['PTMpE']);}if(_0x344cbd[_0xcb556f(0xaa)]('file://')){const _0x493f2e=_0x43454e['mQtMF'](fileURLToPath,_0x344cbd),_0x30a276=await _0x43454e[_0xcb556f(0xaf)](stat,_0x493f2e);if(_0x43454e['apMPZ'](_0x30a276[_0xcb556f(0xca)],MAX_IMAGE_SIZE_BYTES))throw new Error(_0xcb556f(0xce)+MAX_IMAGE_SIZE_BYTES+_0xcb556f(0xe8));const _0x5b9790=await _0x43454e['mQtMF'](readFile,_0x493f2e);return{'data':_0x5b9790[_0xcb556f(0xc4)](_0xcb556f(0xda)),'mediaType':_0x43454e['XpIWk'](inferMediaType,null,_0x493f2e)};}if(_0x344cbd['startsWith'](_0x43454e[_0xcb556f(0xa0)])||_0x344cbd[_0xcb556f(0xaa)](_0xcb556f(0xd9))){const _0x22df34=await fetch(_0x344cbd,{'signal':AbortSignal[_0xcb556f(0xe0)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x22df34['ok'])throw new Error(_0xcb556f(0xe3)+_0x22df34['status']);const _0x28e898=_0x22df34[_0xcb556f(0xc7)]['get'](_0x43454e[_0xcb556f(0xae)]);if(_0x28e898){const _0x23bf4c=_0x43454e['ubxgn'](Number,_0x28e898);if(!Number[_0xcb556f(0xc6)](_0x23bf4c)&&_0x23bf4c>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x12fbff=await _0x22df34[_0xcb556f(0xa7)]();if(_0x12fbff[_0xcb556f(0xd2)]>MAX_IMAGE_SIZE_BYTES)throw new Error(_0xcb556f(0xce)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');return{'data':Buffer['from'](_0x12fbff)['toString']('base64'),'mediaType':inferMediaType(_0x22df34['headers']['get'](_0x43454e[_0xcb556f(0xe2)]),_0x344cbd)};}const _0x330c3b=await _0x43454e['mQtMF'](stat,_0x344cbd);if(_0x43454e[_0xcb556f(0xc2)](_0x330c3b[_0xcb556f(0xca)],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x1e1741=await readFile(_0x344cbd);return{'data':_0x1e1741['toString']('base64'),'mediaType':inferMediaType(null,_0x344cbd)};}async function convertImageBlockToBase64(_0x39c36b){const _0x11c257=_0xd761,_0x16c63d={'domMo':function(_0x2ed6f4,_0xc288ca){return _0x2ed6f4===_0xc288ca;},'iGVZr':function(_0x1260ec,_0x5e929c){return _0x1260ec(_0x5e929c);},'gBEvd':'base64'};if(_0x16c63d['domMo'](_0x39c36b[_0x11c257(0xa3)]?.['type'],'base64'))return{'updated':![],'block':_0x39c36b};if(_0x39c36b['data']&&_0x39c36b[_0x11c257(0xbf)])return{'updated':![],'block':_0x39c36b};const _0x18aafe=_0x39c36b['source']?.['url']??_0x39c36b[_0x11c257(0xb3)];if(!_0x18aafe)return{'updated':![],'block':_0x39c36b};const _0x4fda08=await _0x16c63d[_0x11c257(0xb0)](readImageFromUrl,_0x18aafe);return{'updated':!![],'block':{..._0x39c36b,'source':{'type':_0x16c63d['gBEvd'],'media_type':_0x4fda08['mediaType'],'data':_0x4fda08[_0x11c257(0xc8)]},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x402fa9){const _0x4ce261=_0xd761,_0x28a851={'nkGWV':function(_0x41586a,_0x4bf70b){return _0x41586a(_0x4bf70b);}};if(!isRecord(_0x402fa9))return{'updated':![],'output':_0x402fa9};const _0x7d2c2d=_0x402fa9[_0x4ce261(0xe9)];if(!Array['isArray'](_0x7d2c2d))return{'updated':![],'output':_0x402fa9};let _0x4c7cc6=![];const _0x511092=await Promise['all'](_0x7d2c2d['map'](async _0x53ff59=>{const _0x106400=_0x4ce261;if(!isImageBlock(_0x53ff59))return _0x53ff59;try{const _0x49bdf2=await _0x28a851['nkGWV'](convertImageBlockToBase64,_0x53ff59);if(_0x49bdf2[_0x106400(0xa9)])_0x4c7cc6=!![];return _0x49bdf2[_0x106400(0xb1)];}catch{return _0x53ff59;}}));if(!_0x4c7cc6)return{'updated':![],'output':_0x402fa9};return{'updated':!![],'output':{..._0x402fa9,'content':_0x511092}};}function sanitizeLoneSurrogates(_0x27272c){const _0xb03d3a=_0xd761,_0x10a5e7={'eRity':function(_0x58eaa5,_0x337d87){return _0x58eaa5<_0x337d87;},'wSrwK':function(_0x5cd35b,_0x11db88){return _0x5cd35b>=_0x11db88;},'NMXHS':function(_0x25046d,_0x49940e){return _0x25046d<=_0x49940e;},'FbFnj':function(_0x3d62ce,_0x9bf438){return _0x3d62ce+_0x9bf438;},'MCVyY':function(_0x4fd952,_0x245440){return _0x4fd952<=_0x245440;},'ybBmF':function(_0x4e960f,_0x19e11b){return _0x4e960f+_0x19e11b;}};let _0x65158c=![],_0x49b771='';for(let _0x643574=0x0;_0x10a5e7['eRity'](_0x643574,_0x27272c[_0xb03d3a(0xcb)]);_0x643574+=0x1){const _0x1f2fd1=_0x27272c[_0xb03d3a(0xc5)](_0x643574);if(_0x10a5e7['wSrwK'](_0x1f2fd1,0xd800)&&_0x10a5e7[_0xb03d3a(0xd6)](_0x1f2fd1,0xdbff)){const _0x5cb0d9=_0x27272c['charCodeAt'](_0x10a5e7[_0xb03d3a(0xd7)](_0x643574,0x1));if(_0x5cb0d9>=0xdc00&&_0x10a5e7[_0xb03d3a(0xbc)](_0x5cb0d9,0xdfff)){_0x49b771+=_0x27272c[_0x643574]+_0x27272c[_0x10a5e7[_0xb03d3a(0xdf)](_0x643574,0x1)],_0x643574+=0x1;continue;}_0x65158c=!![],_0x49b771+='�';continue;}if(_0x1f2fd1>=0xdc00&&_0x1f2fd1<=0xdfff){_0x65158c=!![],_0x49b771+='�';continue;}_0x49b771+=_0x27272c[_0x643574];}return _0x65158c?{'updated':_0x65158c,'value':_0x49b771}:{'updated':_0x65158c,'value':_0x27272c};}function _0x29b4(){const _0x153729=['ouWfp','PostToolUse','toString','charCodeAt','isNaN','headers','data','http://','size','length','rRJXe','PNiSa','Image\x20exceeds\x20size\x20limit\x20(','558oxThJV','output','hook_event_name','byteLength','map','486984nGweGs','1278351TLzIdZ','NMXHS','FbFnj','content-length','https://','base64','shdED','image/jpeg','1479224LhGIvh','split','ybBmF','timeout','includes','NWGKy','Failed\x20to\x20fetch\x20image:\x20','jAIqj','110kPSUYZ','13vSGjlo','XdXQG','\x20bytes)','content','TiDkB','Zssvh','image','source','image/png','lxqBj','toLowerCase','arrayBuffer','28915yCWBjE','updated','startsWith','value','115174oqjObg','4593113LoZxLY','wGfSB','xjwrJ','iGVZr','block','BQngs','url','jpg','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','gMqsh','kstBq','trim','data:','isArray','oftLl','MCVyY','1496349qHdDQT','png','mimeType','OufXN','rVGKi'];_0x29b4=function(){return _0x153729;};return _0x29b4();}function sanitizeLoneSurrogatesDeep(_0x265a12){const _0x1a5958=_0xd761,_0x43a48d={'Zssvh':function(_0x3d8450,_0x27009a){return _0x3d8450(_0x27009a);},'oftLl':function(_0x43ccd4,_0x3282e6){return _0x43ccd4===_0x3282e6;},'rRJXe':'string','bQsbc':function(_0x1530d4,_0x25a50a){return _0x1530d4(_0x25a50a);}};if(_0x43a48d[_0x1a5958(0xbb)](typeof _0x265a12,_0x43a48d[_0x1a5958(0xcc)]))return sanitizeLoneSurrogates(_0x265a12);if(Array[_0x1a5958(0xba)](_0x265a12)){let _0x35c860=![];const _0x44615e=_0x265a12['map'](_0xdd3ccc=>{const _0x516ad8=_0x1a5958,_0x238a1a=_0x43a48d[_0x516ad8(0xa1)](sanitizeLoneSurrogatesDeep,_0xdd3ccc);return _0x238a1a['updated']&&(_0x35c860=!![]),_0x238a1a[_0x516ad8(0xab)];});return _0x35c860?{'updated':!![],'value':_0x44615e}:{'updated':![],'value':_0x265a12};}if(!_0x43a48d['bQsbc'](isRecord,_0x265a12))return{'updated':![],'value':_0x265a12};let _0x3e5ac9=![];const _0x67da4a=Object['entries'](_0x265a12)[_0x1a5958(0xd3)](([_0x11cd15,_0x28f53d])=>{const _0x3b603f=_0x1a5958,_0x11d159=sanitizeLoneSurrogatesDeep(_0x28f53d);return _0x11d159['updated']&&(_0x3e5ac9=!![]),[_0x11cd15,_0x11d159[_0x3b603f(0xab)]];});return _0x3e5ac9?{'updated':!![],'value':Object['fromEntries'](_0x67da4a)}:{'updated':![],'value':_0x265a12};}export function createMcpImageBase64Hook(){const _0x1502ca={'jAIqj':function(_0x57124b,_0x29ea59){return _0x57124b!==_0x29ea59;},'kstBq':function(_0x51c191,_0x4ead85){return _0x51c191(_0x4ead85);}};return async _0x329881=>{const _0x32d8f1=_0xd761;if(_0x1502ca[_0x32d8f1(0xe4)](_0x329881[_0x32d8f1(0xd1)],_0x32d8f1(0xc3)))return{};const _0x27baca=_0x329881,_0x566d7b=await _0x1502ca['kstBq'](convertToolOutputImagesToBase64,_0x27baca['tool_response']),_0x2440c9=_0x1502ca[_0x32d8f1(0xb7)](sanitizeLoneSurrogatesDeep,_0x566d7b[_0x32d8f1(0xd0)]),_0x4894d4=_0x566d7b[_0x32d8f1(0xa9)]||_0x2440c9[_0x32d8f1(0xa9)];if(!_0x4894d4)return{};return{'hookSpecificOutput':{'hookEventName':'PostToolUse','updatedMCPToolOutput':_0x2440c9['value']}};};}
@@ -1 +1 @@
1
- function _0xd7fc(_0x57673f,_0x163b5d){_0x57673f=_0x57673f-0x1e5;const _0x56cd30=_0x56cd();let _0xd7fc52=_0x56cd30[_0x57673f];return _0xd7fc52;}const _0x374416=_0xd7fc;(function(_0x3f290b,_0x1f3bc2){const _0x5db996=_0xd7fc,_0x3c65b9=_0x3f290b();while(!![]){try{const _0x10f4a0=-parseInt(_0x5db996(0x1ef))/0x1*(parseInt(_0x5db996(0x1f0))/0x2)+-parseInt(_0x5db996(0x1ee))/0x3+parseInt(_0x5db996(0x1e7))/0x4+parseInt(_0x5db996(0x1e8))/0x5+-parseInt(_0x5db996(0x1ea))/0x6+parseInt(_0x5db996(0x1ec))/0x7*(-parseInt(_0x5db996(0x1e5))/0x8)+parseInt(_0x5db996(0x1e9))/0x9*(parseInt(_0x5db996(0x1ed))/0xa);if(_0x10f4a0===_0x1f3bc2)break;else _0x3c65b9['push'](_0x3c65b9['shift']());}catch(_0x57eb55){_0x3c65b9['push'](_0x3c65b9['shift']());}}}(_0x56cd,0xe32e4));function _0x56cd(){const _0x2b5ce2=['trim','2951753CXqxtL','20PniSBv','1252236aBFKAe','4uRsqYg','874254OIkcNG','claude-opus-4-6','8iJKWSZ','toLowerCase','4063032sHnyWD','8050090ztBDhI','9026928rNQzjX','6681774WagXLS'];_0x56cd=function(){return _0x2b5ce2;};return _0x56cd();}const VERIFY_MODEL_ALIASES={'opus':_0x374416(0x1f1),'sonnet':'claude-sonnet-4-6'};export const DEFAULT_VERIFY_MODEL='claude-sonnet-4-6';export function resolveVerifyModel(_0x444b27){const _0x50415f=_0x374416,_0x1c0025={'eGMVW':function(_0x538e7d,_0x13ea67){return _0x538e7d??_0x13ea67;}};if(!_0x444b27)return undefined;const _0x555d42=_0x444b27[_0x50415f(0x1eb)]();if(!_0x555d42)return undefined;const _0x23aca0=VERIFY_MODEL_ALIASES[_0x555d42[_0x50415f(0x1e6)]()];return _0x1c0025['eGMVW'](_0x23aca0,_0x555d42);}
1
+ const _0x4fca22=_0x1443;(function(_0x3b3820,_0x2f46ee){const _0x4c80cb=_0x1443,_0x3bad8e=_0x3b3820();while(!![]){try{const _0x584dd8=-parseInt(_0x4c80cb(0x1e6))/0x1*(parseInt(_0x4c80cb(0x1ed))/0x2)+-parseInt(_0x4c80cb(0x1ec))/0x3*(parseInt(_0x4c80cb(0x1e3))/0x4)+-parseInt(_0x4c80cb(0x1ee))/0x5+-parseInt(_0x4c80cb(0x1e1))/0x6+-parseInt(_0x4c80cb(0x1e5))/0x7+parseInt(_0x4c80cb(0x1e4))/0x8*(parseInt(_0x4c80cb(0x1e9))/0x9)+-parseInt(_0x4c80cb(0x1e7))/0xa*(-parseInt(_0x4c80cb(0x1e8))/0xb);if(_0x584dd8===_0x2f46ee)break;else _0x3bad8e['push'](_0x3bad8e['shift']());}catch(_0x511c21){_0x3bad8e['push'](_0x3bad8e['shift']());}}}(_0x59a9,0x29832));const VERIFY_MODEL_ALIASES={'opus':_0x4fca22(0x1eb),'sonnet':_0x4fca22(0x1ea)};export const DEFAULT_VERIFY_MODEL='claude-sonnet-4-6';function _0x59a9(){const _0x3368cd=['212091ETBbtW','2030067IsDaWY','claude-sonnet-4-6','claude-opus-4-6','3yfeKLS','3754xOZlne','175845FitCmo','1059432ydMVsI','trim','684212VQnSZl','8aRGJov','1646988mJaHEe','142KllyVJ','430DlOdZk'];_0x59a9=function(){return _0x3368cd;};return _0x59a9();}function _0x1443(_0xbd618e,_0xc439d8){_0xbd618e=_0xbd618e-0x1e1;const _0x59a922=_0x59a9();let _0x144355=_0x59a922[_0xbd618e];return _0x144355;}export function resolveVerifyModel(_0x254072){const _0x75601f=_0x4fca22;if(!_0x254072)return undefined;const _0x35f1d9=_0x254072[_0x75601f(0x1e2)]();if(!_0x35f1d9)return undefined;const _0x19544d=VERIFY_MODEL_ALIASES[_0x35f1d9['toLowerCase']()];return _0x19544d??_0x35f1d9;}