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

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 +1 -1
@@ -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 _0x5bad05=_0x2116;function _0x2116(_0xbbae24,_0x99d104){_0xbbae24=_0xbbae24-0x192;const _0x3231f8=_0x3231();let _0x211669=_0x3231f8[_0xbbae24];return _0x211669;}(function(_0xfe8ded,_0x252b95){const _0x55bfd9=_0x2116,_0x592992=_0xfe8ded();while(!![]){try{const _0x34ad2c=parseInt(_0x55bfd9(0x1b4))/0x1*(-parseInt(_0x55bfd9(0x1b0))/0x2)+-parseInt(_0x55bfd9(0x1c5))/0x3+parseInt(_0x55bfd9(0x1c3))/0x4*(parseInt(_0x55bfd9(0x19a))/0x5)+parseInt(_0x55bfd9(0x1d4))/0x6*(-parseInt(_0x55bfd9(0x1b9))/0x7)+parseInt(_0x55bfd9(0x1ca))/0x8+-parseInt(_0x55bfd9(0x1ae))/0x9+parseInt(_0x55bfd9(0x196))/0xa;if(_0x34ad2c===_0x252b95)break;else _0x592992['push'](_0x592992['shift']());}catch(_0x1cdfea){_0x592992['push'](_0x592992['shift']());}}}(_0x3231,0x72e26));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(_0x5ac2a6,_0xd6935a){const _0x43a57b=_0x2116,_0x39a8d2={'dKyAZ':function(_0x563ab3,_0x34e1a3){return _0x563ab3>=_0x34e1a3;},'wpyfW':function(_0x353f64,_0x8b0342){return _0x353f64<=_0x8b0342;},'cUjvb':function(_0xd7b8f5,_0x35f30b){return _0xd7b8f5+_0x35f30b;},'sGmJV':function(_0x132c71,_0xbde0ea){return _0x132c71&_0xbde0ea;},'sXIER':function(_0x2dbcbd,_0x36bcb8){return _0x2dbcbd*_0x36bcb8;}};if(_0x39a8d2[_0x43a57b(0x1a2)](_0xd6935a,_0x5ac2a6['length']))return[0x0,0x0];const _0x513e58=_0x5ac2a6[_0xd6935a];let _0x3a05b0=0x1,_0x5eac0a=0x80;while(_0x39a8d2[_0x43a57b(0x1bd)](_0x3a05b0,0x8)&&!(_0x513e58&_0x5eac0a)){_0x3a05b0++,_0x5eac0a>>=0x1;}if(_0x39a8d2['cUjvb'](_0xd6935a,_0x3a05b0)>_0x5ac2a6['length'])return[0x0,0x0];let _0x3706e5=_0x39a8d2['sGmJV'](_0x513e58,_0x5eac0a-0x1);for(let _0x761381=0x1;_0x761381<_0x3a05b0;_0x761381++){_0x3706e5=_0x39a8d2[_0x43a57b(0x1a1)](_0x3706e5,0x100)+_0x5ac2a6[_0x39a8d2['cUjvb'](_0xd6935a,_0x761381)];}return[_0x3706e5,_0x3a05b0];}function readId(_0x56d7bf,_0x1e0829){const _0x2e33dc=_0x2116,_0x47606d={'jYYWC':function(_0x4793d2,_0x4412d2){return _0x4793d2>=_0x4412d2;},'VfPQw':function(_0x38c7e8,_0x525dbd){return _0x38c7e8>=_0x525dbd;},'HaxHW':function(_0x57698a,_0x273223){return _0x57698a+_0x273223;},'VUXET':function(_0x516512,_0x2b611c){return _0x516512<_0x2b611c;}};if(_0x1e0829>=_0x56d7bf[_0x2e33dc(0x1c6)])return[0x0,0x0];const _0x12fa72=_0x56d7bf[_0x1e0829];let _0x46768d;if(_0x47606d['jYYWC'](_0x12fa72,0x80))_0x46768d=0x1;else{if(_0x12fa72>=0x40)_0x46768d=0x2;else{if(_0x47606d['jYYWC'](_0x12fa72,0x20))_0x46768d=0x3;else{if(_0x47606d['VfPQw'](_0x12fa72,0x10))_0x46768d=0x4;else return[_0x12fa72,0x1];}}}if(_0x47606d[_0x2e33dc(0x1bf)](_0x1e0829,_0x46768d)>_0x56d7bf[_0x2e33dc(0x1c6)])return[0x0,0x0];let _0x45c076=0x0;for(let _0x498427=0x0;_0x47606d[_0x2e33dc(0x1ac)](_0x498427,_0x46768d);_0x498427++){_0x45c076=_0x45c076*0x100+_0x56d7bf[_0x47606d['HaxHW'](_0x1e0829,_0x498427)];}return[_0x45c076,_0x46768d];}function _0x3231(){const _0x2aa1d7=['7826436LVosFD','concat','2eXmQuI','QdWuO','YxHAF','lbAAt','95086ekZmBj','fixWebmDuration.ts','SidKx','fsgNV','mcpDI','1358HMclVk','gsCBE','lddHJ','berEq','wpyfW','dbtrE','HaxHW','Yvmya','eOFdh','error','1747508JJkfcC','offset','1730028SmYYsr','length','EYlwR','Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>','argv','227824woglLH','dataSize','rcoWb','CuIsB','BggIe','jrBrK','KQPbj','UlYcQ','lXtZs','Zqlmt','24546dgnCJh','dataOffset','slice','sizeLen','log','YUMCA','UwXRH','PNjeo','alloc','vMjsO','23402310vrfelo','ieHfL','hcPKD','ElefS','5hekpvZ','endsWith','stvfQ','IthWf','VTcqg','fixWebmDuration.js','bASvs','sXIER','dKyAZ','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','CVVmc','Ktivt','cPydL','pSmQM','IWdsZ','Could\x20not\x20compute\x20duration','pow','OgCis','VUXET','from'];_0x3231=function(){return _0x2aa1d7;};return _0x3231();}function readUint(_0x47ca43,_0x1b7673,_0x55951c){const _0x282b37=_0x2116,_0x1cb578={'mjWxy':function(_0x4cbf70,_0x2bb641){return _0x4cbf70*_0x2bb641;},'jrBrK':function(_0x141b70,_0x5cef1f){return _0x141b70+_0x5cef1f;}};let _0x22aae5=0x0;for(let _0x229932=0x0;_0x229932<_0x55951c;_0x229932++){_0x22aae5=_0x1cb578['mjWxy'](_0x22aae5,0x100)+_0x47ca43[_0x1cb578[_0x282b37(0x1cf)](_0x1b7673,_0x229932)];}return _0x22aae5;}function isUnknownSize(_0x2ade86,_0x1ec7d7){const _0x1129b4=_0x2116,_0xc2aa7={'zylKJ':function(_0x574926,_0x792acd){return _0x574926-_0x792acd;}};return _0x2ade86===_0xc2aa7['zylKJ'](Math[_0x1129b4(0x1aa)](0x2,0x7*_0x1ec7d7),0x1);}function writeId(_0x1991de){const _0x182a9a=_0x2116,_0x5d4e69={'bYxkJ':function(_0xa7656f,_0x27f32a){return _0xa7656f<=_0x27f32a;},'fsgNV':function(_0x4cfada,_0xa4fc76){return _0x4cfada<=_0xa4fc76;},'IiFqZ':function(_0x429ef5,_0x601b99){return _0x429ef5&_0x601b99;},'lmxOF':function(_0x5672ad,_0x2a2416){return _0x5672ad<=_0x2a2416;},'rcoWb':function(_0x3dbced,_0x39e310){return _0x3dbced&_0x39e310;},'Ubklk':function(_0x28b043,_0x2b2ffb){return _0x28b043>>_0x2b2ffb;},'YUMCA':function(_0x192363,_0x442261){return _0x192363&_0x442261;},'lXtZs':function(_0x1b14a0,_0x14b5a8){return _0x1b14a0>>_0x14b5a8;},'stvfQ':function(_0x17a42b,_0x383946){return _0x17a42b&_0x383946;}};if(_0x5d4e69['bYxkJ'](_0x1991de,0xff))return Buffer[_0x182a9a(0x1ad)]([_0x1991de]);if(_0x5d4e69[_0x182a9a(0x1b7)](_0x1991de,0xffff))return Buffer['from']([_0x1991de>>0x8&0xff,_0x5d4e69['IiFqZ'](_0x1991de,0xff)]);if(_0x5d4e69['lmxOF'](_0x1991de,0xffffff))return Buffer[_0x182a9a(0x1ad)]([_0x5d4e69[_0x182a9a(0x1cc)](_0x5d4e69['Ubklk'](_0x1991de,0x10),0xff),_0x1991de>>0x8&0xff,_0x5d4e69['rcoWb'](_0x1991de,0xff)]);return Buffer[_0x182a9a(0x1ad)]([_0x5d4e69[_0x182a9a(0x1d9)](_0x5d4e69[_0x182a9a(0x1d2)](_0x1991de,0x18),0xff),_0x5d4e69[_0x182a9a(0x1cc)](_0x5d4e69['lXtZs'](_0x1991de,0x10),0xff),_0x5d4e69[_0x182a9a(0x1d2)](_0x1991de,0x8)&0xff,_0x5d4e69[_0x182a9a(0x19c)](_0x1991de,0xff)]);}function writeVint(_0x3a9616,_0x25e2cc){const _0xf1273=_0x2116,_0x327af0={'CrnyZ':function(_0x13df58,_0x276082){return _0x13df58||_0x276082;},'hcPKD':function(_0x26dd29,_0x2f6b8c){return _0x26dd29-_0x2f6b8c;},'UQciC':function(_0x2e9dc6,_0x14e4fc){return _0x2e9dc6*_0x14e4fc;},'PNjeo':function(_0x4f4a21,_0x45f0fb){return _0x4f4a21-_0x45f0fb;},'Ktivt':function(_0x2818d1,_0x3ac4d0){return _0x2818d1&_0x3ac4d0;},'wfZgP':function(_0x1a4ba8,_0x5773bc){return _0x1a4ba8/_0x5773bc;}};let _0x2bfaa6=_0x327af0['CrnyZ'](_0x25e2cc,0x1);while(_0x327af0[_0xf1273(0x198)](Math['pow'](0x2,_0x327af0['UQciC'](0x7,_0x2bfaa6)),0x2)<_0x3a9616)_0x2bfaa6++;const _0x586873=Buffer['alloc'](_0x2bfaa6);for(let _0x21d59d=_0x327af0[_0xf1273(0x193)](_0x2bfaa6,0x1);_0x21d59d>=0x0;_0x21d59d--){_0x586873[_0x21d59d]=_0x327af0[_0xf1273(0x1a5)](_0x3a9616,0xff),_0x3a9616=Math['floor'](_0x327af0['wfZgP'](_0x3a9616,0x100));}return _0x586873[0x0]|=0x1<<0x8-_0x2bfaa6,_0x586873;}function writeFloat64(_0x581d1a){const _0xb4236c=Buffer['alloc'](0x8);return _0xb4236c['writeDoubleBE'](_0x581d1a,0x0),_0xb4236c;}function writeVoid(_0x136b26){const _0x11a1bc=_0x2116,_0x60a035={'SidKx':function(_0x4664aa,_0x39b80b){return _0x4664aa<=_0x39b80b;},'EYlwR':function(_0x4a6edb,_0x426fe2){return _0x4a6edb-_0x426fe2;},'UwXRH':function(_0x1d7a8d,_0x37e298){return _0x1d7a8d>=_0x37e298;},'KQPbj':function(_0x2627fb,_0x3367f7){return _0x2627fb*_0x3367f7;},'BggIe':function(_0x331d56,_0x186eb5,_0x5440cc){return _0x331d56(_0x186eb5,_0x5440cc);}};for(let _0x58cd2a=0x1;_0x60a035[_0x11a1bc(0x1b6)](_0x58cd2a,0x8);_0x58cd2a++){const _0x5b7fb9=_0x60a035[_0x11a1bc(0x1c7)](_0x136b26-0x1,_0x58cd2a);if(_0x60a035[_0x11a1bc(0x192)](_0x5b7fb9,0x0)&&_0x5b7fb9<=_0x60a035['EYlwR'](Math[_0x11a1bc(0x1aa)](0x2,_0x60a035[_0x11a1bc(0x1d0)](0x7,_0x58cd2a)),0x2))return Buffer['concat']([Buffer[_0x11a1bc(0x1ad)]([ID_VOID]),_0x60a035[_0x11a1bc(0x1ce)](writeVint,_0x5b7fb9,_0x58cd2a),Buffer[_0x11a1bc(0x194)](_0x5b7fb9)]);}return Buffer['alloc'](0x0);}function findElement(_0x303d16,_0x2c53b0,_0x1c048d,_0x4fcca3){const _0x4d9fa1=_0x2116,_0x28b4ba={'YxHAF':function(_0x18a764,_0x5e63b1){return _0x18a764<_0x5e63b1;},'IWdsZ':function(_0x3e03ef,_0x1f5935){return _0x3e03ef+_0x1f5935;},'Zqlmt':function(_0x56cba0,_0x362cfa){return _0x56cba0+_0x362cfa;},'iOyXG':function(_0xa1a9ef,_0x422fa9){return _0xa1a9ef+_0x422fa9;},'tAQWw':function(_0x27bd20,_0x79a671,_0x3bb668){return _0x27bd20(_0x79a671,_0x3bb668);}};let _0xd4c6bb=_0x2c53b0;while(_0x28b4ba[_0x4d9fa1(0x1b2)](_0xd4c6bb,_0x1c048d)){const [_0x401d92,_0x462d85]=readId(_0x303d16,_0xd4c6bb),[_0x77a909,_0x5ed969]=readVint(_0x303d16,_0x28b4ba[_0x4d9fa1(0x1a8)](_0xd4c6bb,_0x462d85));if(_0x401d92===_0x4fcca3)return{'offset':_0xd4c6bb,'idLen':_0x462d85,'sizeLen':_0x5ed969,'dataSize':_0x77a909,'dataOffset':_0x28b4ba['Zqlmt'](_0x28b4ba['iOyXG'](_0xd4c6bb,_0x462d85),_0x5ed969)};if(_0x28b4ba['tAQWw'](isUnknownSize,_0x77a909,_0x5ed969))break;_0xd4c6bb+=_0x28b4ba[_0x4d9fa1(0x1d3)](_0x28b4ba['iOyXG'](_0x462d85,_0x5ed969),_0x77a909);}return null;}function computeDurationMs(_0x3b6bf3,_0x1659f0){const _0x456aca=_0x2116,_0xe07f5e={'CuIsB':function(_0x221d5b,_0x512c9d){return _0x221d5b<_0x512c9d;},'ElefS':function(_0x24cb67,_0x7f60f2){return _0x24cb67+_0x7f60f2;},'mGhbP':function(_0x3be697,_0x2b261b){return _0x3be697-_0x2b261b;},'LmIvc':function(_0x2fca8d,_0x47f618){return _0x2fca8d===_0x47f618;},'FbilR':function(_0x26933e,_0x1f1d8c,_0x241dcd){return _0x26933e(_0x1f1d8c,_0x241dcd);},'UlYcQ':function(_0x589ec2,_0x5b0010){return _0x589ec2+_0x5b0010;},'eOFdh':function(_0xc66ed9,_0x4a3897){return _0xc66ed9===_0x4a3897;},'zuKhC':function(_0x16392c,_0x435e0b){return _0x16392c>=_0x435e0b;},'dbtrE':function(_0x59c408,_0x9a5e48){return _0x59c408/_0x9a5e48;},'wGZqZ':function(_0x30d352,_0x380078){return _0x30d352*_0x380078;},'gsCBE':function(_0x29fc45,_0x12d205){return _0x29fc45===_0x12d205;},'IthWf':function(_0x4e3de9,_0x2b6e4e,_0x287a3f){return _0x4e3de9(_0x2b6e4e,_0x287a3f);}};let _0x2ad870=0x0;const _0x41b3d6=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x30bd6b=_0x3b6bf3['indexOf'](_0x41b3d6);if(_0x30bd6b===-0x1)return 0x0;while(_0xe07f5e[_0x456aca(0x1cd)](_0x30bd6b,_0x3b6bf3[_0x456aca(0x1c6)])){const [_0x405bb9,_0x30ce22]=readId(_0x3b6bf3,_0x30bd6b);if(_0x405bb9!==ID_CLUSTER)break;const [_0x5f5a0a,_0x10ba38]=readVint(_0x3b6bf3,_0x30bd6b+_0x30ce22),_0x5b26d6=_0xe07f5e[_0x456aca(0x199)](_0x30bd6b+_0x30ce22,_0x10ba38),_0x508b4a=isUnknownSize(_0x5f5a0a,_0x10ba38);let _0x19c49;if(_0x508b4a){let _0x381f50=_0x5b26d6;while(_0x381f50<_0xe07f5e['mGhbP'](_0x3b6bf3['length'],0x4)){const [_0x275dd5,_0x1bb1e7]=readId(_0x3b6bf3,_0x381f50);if(_0xe07f5e['LmIvc'](_0x275dd5,ID_CLUSTER)){_0x19c49=_0x381f50;break;}const [_0xfabb25,_0x1e4425]=readVint(_0x3b6bf3,_0x381f50+_0x1bb1e7);if(_0xe07f5e['FbilR'](isUnknownSize,_0xfabb25,_0x1e4425)){_0x19c49=_0x3b6bf3[_0x456aca(0x1c6)];break;}_0x381f50+=_0xe07f5e[_0x456aca(0x199)](_0xe07f5e[_0x456aca(0x199)](_0x1bb1e7,_0x1e4425),_0xfabb25);}_0x19c49??=_0x3b6bf3['length'];}else _0x19c49=_0xe07f5e[_0x456aca(0x1d1)](_0x5b26d6,_0x5f5a0a);let _0x29b585=0x0,_0x1caca8=_0x5b26d6;while(_0x1caca8<_0x19c49){const [_0x36eb63,_0x57772d]=readId(_0x3b6bf3,_0x1caca8),[_0x55f98d,_0x22dd49]=readVint(_0x3b6bf3,_0x1caca8+_0x57772d);if(_0xe07f5e[_0x456aca(0x1c1)](_0x36eb63,ID_TIMESTAMP))_0x29b585=readUint(_0x3b6bf3,_0xe07f5e[_0x456aca(0x1d1)](_0x1caca8,_0x57772d)+_0x22dd49,_0x55f98d);else{if(_0x36eb63===ID_SIMPLE_BLOCK&&_0xe07f5e['zuKhC'](_0x55f98d,0x4)){const _0x5a732c=_0x1caca8+_0x57772d+_0x22dd49,[,_0x1603c0]=readVint(_0x3b6bf3,_0x5a732c),_0x182ddd=_0x3b6bf3['readInt16BE'](_0x5a732c+_0x1603c0),_0x4155d8=_0xe07f5e[_0x456aca(0x1be)](_0xe07f5e['wGZqZ'](_0x29b585+_0x182ddd,_0x1659f0),0xf4240);_0x4155d8>_0x2ad870&&(_0x2ad870=_0x4155d8);}else{if(_0xe07f5e[_0x456aca(0x1ba)](_0x36eb63,ID_CLUSTER))break;}}if(_0xe07f5e[_0x456aca(0x19d)](isUnknownSize,_0x55f98d,_0x22dd49))break;_0x1caca8+=_0x57772d+_0x22dd49+_0x55f98d;}_0x30bd6b=_0x19c49;}return _0x2ad870;}export function fixWebmDuration(_0x208725,_0xa02b82){const _0x3b040a=_0x2116,_0x267e0c={'uZHmQ':function(_0x32542a,_0x29942e){return _0x32542a(_0x29942e);},'pSmQM':function(_0x36245a,_0x4847c8,_0xc16e98){return _0x36245a(_0x4847c8,_0xc16e98);},'CVVmc':function(_0x28b650,_0x26c7d6){return _0x28b650+_0x26c7d6;},'cPydL':function(_0x336619,_0x53faac,_0x47102e){return _0x336619(_0x53faac,_0x47102e);},'EJSLL':function(_0xd031f3,_0x40d853){return _0xd031f3!==_0x40d853;},'FCSJy':'Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','vMjsO':function(_0x52c94d,_0x45e38c,_0x296a85){return _0x52c94d(_0x45e38c,_0x296a85);},'bASvs':function(_0x4be6a5,_0x445d4b){return _0x4be6a5+_0x445d4b;},'YFNYD':function(_0xb9ab70,_0x2fd98a){return _0xb9ab70===_0x2fd98a;},'mqHaV':function(_0x2685f9,_0x444752,_0x3bae2a){return _0x2685f9(_0x444752,_0x3bae2a);},'mcpDI':function(_0x436f8a,_0x8c4947){return _0x436f8a+_0x8c4947;},'LQcrQ':'Could\x20not\x20find\x20Info\x20element','YoTyM':function(_0x20ce28,_0x50af72,_0x25d145,_0x31a224){return _0x20ce28(_0x50af72,_0x25d145,_0x31a224);},'ieHfL':function(_0x52eecb,_0x2c22f9,_0x44cd13){return _0x52eecb(_0x2c22f9,_0x44cd13);},'GlYgB':function(_0x3d66be,_0x4eb3d7){return _0x3d66be<=_0x4eb3d7;},'WCVST':function(_0x1fbbad,_0xdf11d3){return _0x1fbbad*_0xdf11d3;},'berEq':function(_0x33cbf3,_0x4367af){return _0x33cbf3(_0x4367af);},'lbAAt':function(_0x54ce30,_0x5833dd){return _0x54ce30<_0x5833dd;},'OgCis':function(_0x4acce7,_0x2e6186){return _0x4acce7-_0x2e6186;},'VTcqg':function(_0x3f90de,_0x15238f){return _0x3f90de+_0x15238f;}},_0x40d096=_0x267e0c['uZHmQ'](readFileSync,_0x208725);let _0x468948=0x0;const [_0x2482f8,_0x3c3513]=readId(_0x40d096,_0x468948),[_0x4d318f,_0x46c926]=_0x267e0c[_0x3b040a(0x1a7)](readVint,_0x40d096,_0x267e0c['CVVmc'](_0x468948,_0x3c3513));_0x468948+=_0x267e0c['CVVmc'](_0x3c3513+_0x46c926,_0x4d318f);const [_0x2d8113,_0x16e442]=_0x267e0c[_0x3b040a(0x1a6)](readId,_0x40d096,_0x468948);if(_0x267e0c['EJSLL'](_0x2d8113,ID_SEGMENT))return console[_0x3b040a(0x1c2)](_0x267e0c['FCSJy']),![];const [,_0x3bf654]=_0x267e0c[_0x3b040a(0x195)](readVint,_0x40d096,_0x468948+_0x16e442),_0x2a34f4=_0x267e0c[_0x3b040a(0x1a0)](_0x468948,_0x16e442)+_0x3bf654;let _0xb76721=_0x2a34f4;const _0x1af440=Math['min'](_0x40d096['length'],_0x267e0c[_0x3b040a(0x1a4)](_0x2a34f4,0x2710));let _0x2059c6=null,_0x328303=null;while(_0xb76721<_0x1af440){const [_0x3dbc1c,_0x2e6ba3]=_0x267e0c[_0x3b040a(0x195)](readId,_0x40d096,_0xb76721),[_0x1a5a56,_0x14cdc3]=_0x267e0c['pSmQM'](readVint,_0x40d096,_0x267e0c['bASvs'](_0xb76721,_0x2e6ba3));_0x3dbc1c===ID_VOID&&!_0x2059c6&&(_0x2059c6={'offset':_0xb76721,'idLen':_0x2e6ba3,'sizeLen':_0x14cdc3,'dataSize':_0x1a5a56,'dataOffset':_0x267e0c['bASvs'](_0xb76721,_0x2e6ba3)+_0x14cdc3});if(_0x3dbc1c===ID_INFO){_0x328303={'offset':_0xb76721,'idLen':_0x2e6ba3,'sizeLen':_0x14cdc3,'dataSize':_0x1a5a56,'dataOffset':_0x267e0c['bASvs'](_0x267e0c['CVVmc'](_0xb76721,_0x2e6ba3),_0x14cdc3)};break;}if(_0x267e0c['YFNYD'](_0x3dbc1c,ID_CLUSTER))break;if(_0x267e0c['mqHaV'](isUnknownSize,_0x1a5a56,_0x14cdc3))break;_0xb76721+=_0x267e0c[_0x3b040a(0x1b8)](_0x2e6ba3+_0x14cdc3,_0x1a5a56);}if(!_0x328303)return console[_0x3b040a(0x1c2)](_0x267e0c['LQcrQ']),![];const _0xb0cdc=findElement(_0x40d096,_0x328303['dataOffset'],_0x328303[_0x3b040a(0x1d5)]+_0x328303['dataSize'],ID_DURATION);if(_0xb0cdc)return![];const _0x2ed519=findElement(_0x40d096,_0x328303[_0x3b040a(0x1d5)],_0x267e0c['bASvs'](_0x328303['dataOffset'],_0x328303[_0x3b040a(0x1cb)]),ID_TIMESTAMP_SCALE);let _0x106ce7=0xf4240;_0x2ed519&&(_0x106ce7=_0x267e0c['YoTyM'](readUint,_0x40d096,_0x2ed519[_0x3b040a(0x1d5)],_0x2ed519[_0x3b040a(0x1cb)]));const _0x40ca03=_0x267e0c[_0x3b040a(0x197)](computeDurationMs,_0x40d096,_0x106ce7);if(_0x267e0c['GlYgB'](_0x40ca03,0x0))return console[_0x3b040a(0x1c2)](_0x3b040a(0x1a9)),![];const _0x3ecba2=_0x267e0c['WCVST'](_0x40ca03,0xf4240)/_0x106ce7,_0x4f2224=Buffer[_0x3b040a(0x1af)]([writeId(ID_DURATION),_0x267e0c[_0x3b040a(0x1bc)](writeVint,0x8),writeFloat64(_0x3ecba2)]),_0x2e9b08=_0x4f2224['length'];if(!_0x2059c6||_0x267e0c[_0x3b040a(0x1b3)](_0x2059c6['offset'],_0x328303['offset'])){if(_0x2059c6){const _0xe28261=_0x2059c6['idLen']+_0x2059c6[_0x3b040a(0x1d7)]+_0x2059c6['dataSize'],_0x259a60=_0x267e0c[_0x3b040a(0x1ab)](_0xe28261,_0x2e9b08);if(_0x259a60<0x2)return rewriteFile(_0x40d096,_0x328303,_0x4f2224,_0x106ce7,_0x40ca03,_0xa02b82);const _0x347fbf=_0x267e0c[_0x3b040a(0x19e)](_0x328303['dataSize'],_0x2e9b08),_0x10d5db=Buffer[_0x3b040a(0x1af)]([_0x267e0c['uZHmQ'](writeId,ID_INFO),writeVint(_0x347fbf,_0x328303['sizeLen'])]),_0x314a0c=_0x40d096[_0x3b040a(0x1d6)](_0x328303['dataOffset'],_0x267e0c[_0x3b040a(0x1a4)](_0x328303[_0x3b040a(0x1d5)],_0x328303['dataSize'])),_0x58e4dd=_0x267e0c['berEq'](writeVoid,_0x259a60),_0x145203=_0x40d096['slice'](0x0,_0x2059c6[_0x3b040a(0x1c4)]),_0x5ba07b=_0x40d096[_0x3b040a(0x1d6)](_0x328303[_0x3b040a(0x1d5)]+_0x328303[_0x3b040a(0x1cb)]);return writeFileSync(_0xa02b82,Buffer[_0x3b040a(0x1af)]([_0x145203,_0x58e4dd,_0x10d5db,_0x314a0c,_0x4f2224,_0x5ba07b])),!![];}}return rewriteFile(_0x40d096,_0x328303,_0x4f2224,_0x106ce7,_0x40ca03,_0xa02b82);}function rewriteFile(_0x4ac8bf,_0x5ceb8f,_0x1272a4,_0x8d2ddb,_0x37af4a,_0x271860){const _0xc53155=_0x2116,_0x38e902={'lddHJ':function(_0x2c53a7,_0x74c32b){return _0x2c53a7(_0x74c32b);},'uEeXa':function(_0xbb9b9d,_0x43001f){return _0xbb9b9d+_0x43001f;},'Yvmya':function(_0x563c1e,_0x29ed1b){return _0x563c1e+_0x29ed1b;},'QdWuO':function(_0x3c26d5,_0x16c3d2,_0x54aec0){return _0x3c26d5(_0x16c3d2,_0x54aec0);}},_0x2ab525=_0x5ceb8f[_0xc53155(0x1cb)]+_0x1272a4[_0xc53155(0x1c6)],_0xc154bc=Buffer[_0xc53155(0x1af)]([_0x38e902[_0xc53155(0x1bb)](writeId,ID_INFO),_0x38e902[_0xc53155(0x1bb)](writeVint,_0x2ab525)]),_0xf3881c=_0x38e902['uEeXa'](_0x5ceb8f['idLen'],_0x5ceb8f['sizeLen']),_0x1900c4=_0x4ac8bf['slice'](0x0,_0x5ceb8f[_0xc53155(0x1c4)]),_0x482846=_0x4ac8bf['slice'](_0x5ceb8f['dataOffset'],_0x38e902[_0xc53155(0x1c0)](_0x5ceb8f['dataOffset'],_0x5ceb8f[_0xc53155(0x1cb)])),_0x442cd0=_0x4ac8bf[_0xc53155(0x1d6)](_0x5ceb8f['offset']+_0xf3881c+_0x5ceb8f[_0xc53155(0x1cb)]);return _0x38e902[_0xc53155(0x1b1)](writeFileSync,_0x271860,Buffer['concat']([_0x1900c4,_0xc154bc,_0x482846,_0x1272a4,_0x442cd0])),!![];}if(process[_0x5bad05(0x1c9)][0x1]?.[_0x5bad05(0x19b)](_0x5bad05(0x1b5))||process['argv'][0x1]?.[_0x5bad05(0x19b)](_0x5bad05(0x19f))){const input=process['argv'][0x2],output=process['argv'][0x3];(!input||!output)&&(console['error'](_0x5bad05(0x1c8)),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console['log']('Fixed:\x20'+output):console[_0x5bad05(0x1d8)](_0x5bad05(0x1a3));}
@@ -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(_0x1e009d,_0x38b0ee){const _0x2e04de=_0x1a9d,_0x4acbaa=_0x1e009d();while(!![]){try{const _0x2abf29=-parseInt(_0x2e04de(0xdc))/0x1+parseInt(_0x2e04de(0xe2))/0x2*(parseInt(_0x2e04de(0xdf))/0x3)+-parseInt(_0x2e04de(0xe1))/0x4*(parseInt(_0x2e04de(0xd8))/0x5)+-parseInt(_0x2e04de(0xd9))/0x6*(parseInt(_0x2e04de(0xe0))/0x7)+parseInt(_0x2e04de(0xda))/0x8*(-parseInt(_0x2e04de(0xde))/0x9)+-parseInt(_0x2e04de(0xdb))/0xa+-parseInt(_0x2e04de(0xdd))/0xb*(-parseInt(_0x2e04de(0xd6))/0xc);if(_0x2abf29===_0x38b0ee)break;else _0x4acbaa['push'](_0x4acbaa['shift']());}catch(_0x37f14a){_0x4acbaa['push'](_0x4acbaa['shift']());}}}(_0x2d26,0x32e01));function _0x1a9d(_0x42a63e,_0x2581d8){_0x42a63e=_0x42a63e-0xd6;const _0x2d2673=_0x2d26();let _0x1a9dbc=_0x2d2673[_0x42a63e];return _0x1a9dbc;}function _0x2d26(){const _0xaf97d3=['4070060blvPhJ','245856FKPyuK','3883CpJzXT','180fZBoPs','48RcSVxV','7TJBvsZ','3476VCTWbW','36956zIkheH','41808QqXucl','cwd','1970YGDZtX','1018362MwxWPt','60856ZXdITr'];_0x2d26=function(){return _0xaf97d3;};return _0x2d26();}import{execFile as _0xa77ea7}from'child_process';import{promisify}from'util';const execFile=promisify(_0xa77ea7);export async function isPathGitTracked(_0x22f89f){const _0x438488=_0x1a9d,_0x334b85={'UvQiX':'ls-files','JxKuU':'--error-unmatch'};try{return await execFile('git',[_0x334b85['UvQiX'],_0x334b85['JxKuU'],_0x22f89f],{'cwd':process[_0x438488(0xd7)]()}),!![];}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 _0x4433e2=_0x2472;(function(_0x2f6896,_0x43f904){const _0x38c307=_0x2472,_0x185350=_0x2f6896();while(!![]){try{const _0x30ebb4=-parseInt(_0x38c307(0x83))/0x1*(-parseInt(_0x38c307(0x76))/0x2)+-parseInt(_0x38c307(0xb8))/0x3*(parseInt(_0x38c307(0xb7))/0x4)+-parseInt(_0x38c307(0xc0))/0x5+parseInt(_0x38c307(0x85))/0x6*(parseInt(_0x38c307(0xb4))/0x7)+-parseInt(_0x38c307(0x71))/0x8+parseInt(_0x38c307(0xba))/0x9+parseInt(_0x38c307(0x70))/0xa*(parseInt(_0x38c307(0xb3))/0xb);if(_0x30ebb4===_0x43f904)break;else _0x185350['push'](_0x185350['shift']());}catch(_0x47c79f){_0x185350['push'](_0x185350['shift']());}}}(_0x4808,0x3acc1));const _0x13a27a=(function(){const _0x562a82=_0x2472,_0x1cf47d={'CGBNa':function(_0x3e4185,_0x3eef33){return _0x3e4185===_0x3eef33;},'JYfNx':_0x562a82(0x9e),'vkAGf':function(_0x2793a6,_0x57175a){return _0x2793a6(_0x57175a);},'YyOXI':_0x562a82(0xb5),'qjGas':_0x562a82(0x6b)};let _0x6b3ae=!![];return function(_0x46338c,_0x88fbd0){const _0x5c53b9=_0x562a82,_0xd1e2f2={'PhAtd':function(_0x33136e,_0x599e43){const _0x39023b=_0x2472;return _0x1cf47d[_0x39023b(0xc5)](_0x33136e,_0x599e43);},'EerOe':_0x1cf47d[_0x5c53b9(0x9a)]};if(_0x1cf47d[_0x5c53b9(0x95)]!==_0x5c53b9(0x6b))_0xd1e2f2[_0x5c53b9(0xa0)](_0x14e5a6,_0x35e86b);else{const _0x3daa2d=_0x6b3ae?function(){const _0x1a4452=_0x5c53b9;if(_0x88fbd0){if(_0x1cf47d[_0x1a4452(0x98)](_0x1a4452(0x9e),_0x1cf47d[_0x1a4452(0x8f)])){const _0x2c23eb=_0x88fbd0[_0x1a4452(0x6f)](_0x46338c,arguments);return _0x88fbd0=null,_0x2c23eb;}else return _0x3e087c['toString']()[_0x1a4452(0x8b)](_0xd1e2f2[_0x1a4452(0x96)])[_0x1a4452(0xc1)]()[_0x1a4452(0xb1)](_0x26d739)[_0x1a4452(0x8b)]('(((.+)+)+)+$');}}:function(){};return _0x6b3ae=![],_0x3daa2d;}};}()),_0x5d196e=_0x13a27a(this,function(){const _0x2d5b0e=_0x2472,_0x2fb791={'IsGMS':_0x2d5b0e(0xb5)};return _0x5d196e['toString']()[_0x2d5b0e(0x8b)](_0x2fb791[_0x2d5b0e(0x74)])[_0x2d5b0e(0xc1)]()[_0x2d5b0e(0xb1)](_0x5d196e)[_0x2d5b0e(0x8b)](_0x2d5b0e(0xb5));});_0x5d196e();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';function _0x4808(){const _0x4688c0=['z0nNzfi','mtuXmdeYmhz0r05ktW','Dg9tDhjPBMC','uNPruuS','yuv6EeC','lI90B2TLBLjLzNjLC2GUANm','DMTbr2y','DgDcCuS','uKfor0vsx01duf9ut0TftG','q1vTufG','ExLzt3K','zMvlt0G','D3jPwvG','yxbWBhK','mJmXnZG5meDyBLbxva','mZyWoduZnMDwtfjQtq','Eujiy0u','ENzpDMi','sxnhtvm','C25Yueq','mZzKuuHyugi','teHQz3i','DujOswK','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','twvOqNm','ueHrwfy','ChfxA0y','DhjPBq','yvHbtMG','Cgrzueq','yMz1D0W','r1nRr1C','l2fWAs92ms9Ty3aVBwu','nZeZngnqswP0rq','DfLOrKy','mtmXnZq4nMX5BuHRuW','CfvHs2G','sKfQBe0','zNrPC3i','EKrIExa','z3H2Bgq','C2vHCMnO','AfHosfG','CMvMCMvZAc50Ehq','DxrMltG','sLLMtNG','t3nzvLa','ENjLqM8','vM1rvfO','tuXWr2u','r0vu','CwPhyxm','rwvYt2u','v090t3K','q0DctMe','Evz3Efe','wxLpweK','r0Lusfvcx0vovG','q3jUAhe','yvn4yuO','CKL1B00','lI4VBwnWqM9VDhn0CMfWlMPZ','ugHbDgq','zwfovgm','BwvZC2fNzq','y2XPlNr4Da','tMjnuMS','zw52','reP2uw4','tef0BMq','ELnUruC','vMPRv0G','DwLTveq','ywfct3q','A3PZr1G','tNndC3q','u1rxrwq','y1DjCe8','BKLHr0q','y29UC3rYDwn0B3i','CwzQyNK','mtf1rNniEw4','mtr3C2rvqMO','kcGOlISPkYKRksSK','qLzODNq','nZuWofzHv3jNzq','owriAfLNsG','lI9LBNzPCM9UBwvUDc5QCW','mtGWmtCYogfyzMXOAW','qMrbrhi','BeXyCfu','Ee9zv3e','rhfzvw4'];_0x4808=function(){return _0x4688c0;};return _0x4808();}const ENV_TOKEN='RANGER_CLI_TOKEN',ENV_TOKEN_LEGACY=_0x4433e2(0xc7),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x4433e2(0xa3)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x4433e2(0x8d));function isGitHubCI(){const _0x16ec4b=_0x4433e2;return!!process[_0x16ec4b(0xa5)][_0x16ec4b(0x9b)];}async function writeToGitHubEnv(_0x493ec0,_0x516d3e){const _0x1cfeb4=_0x4433e2,_0x330cc7={'uBhIi':function(_0x49702c,_0x2edd11,_0x20c6ad){return _0x49702c(_0x2edd11,_0x20c6ad);}},_0x475a64=process[_0x1cfeb4(0xa5)][_0x1cfeb4(0x9b)];_0x475a64&&await _0x330cc7[_0x1cfeb4(0x78)](appendFile,_0x475a64,_0x493ec0+'='+_0x516d3e+'\x0a');}export async function storeToken(_0x232a6d){const _0x4979d8=_0x4433e2,_0x52a856={'ghwQA':function(_0xe39427){return _0xe39427();},'uimTD':function(_0x2e5a2d,_0x2582ab){return _0x2e5a2d===_0x2582ab;},'pqWkF':'iwgSh','STWEd':function(_0x2781b1,_0x545dea,_0xe6ab70){return _0x2781b1(_0x545dea,_0xe6ab70);},'snrPD':_0x4979d8(0x86),'BdADr':function(_0x520c82,_0x5ac76d,_0x2a35ae){return _0x520c82(_0x5ac76d,_0x2a35ae);},'MehBs':function(_0x529fe7,_0x4ef8bd,_0x3e0208,_0x57ff8f){return _0x529fe7(_0x4ef8bd,_0x3e0208,_0x57ff8f);}};if(_0x52a856['ghwQA'](isGitHubCI)){if(_0x52a856[_0x4979d8(0xaa)](_0x52a856[_0x4979d8(0x7c)],_0x52a856[_0x4979d8(0x7c)]))await _0x52a856[_0x4979d8(0xae)](writeToGitHubEnv,ENV_TOKEN,_0x232a6d);else return _0x31f006['env'][_0xd0407f];}else{if(_0x52a856[_0x4979d8(0xaa)](_0x52a856['snrPD'],_0x52a856[_0x4979d8(0x75)]))await _0x52a856[_0x4979d8(0xbb)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x52a856[_0x4979d8(0x7a)](writeFile,TOKEN_PATH,_0x232a6d,{'mode':0x180});else{const _0x448df2=_0x4e63f8[_0x4979d8(0x6f)](_0x3a6deb,arguments);return _0x5bf009=null,_0x448df2;}}}function _0x2472(_0x3f13c6,_0x4f3c5f){_0x3f13c6=_0x3f13c6-0x6b;const _0x2cd28d=_0x4808();let _0x5d196e=_0x2cd28d[_0x3f13c6];if(_0x2472['yIAXYT']===undefined){var _0x13a27a=function(_0x326699){const _0x1ec61c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5b0d7c='',_0x3b3e33='',_0x33ab62=_0x5b0d7c+_0x13a27a;for(let _0x265a8f=0x0,_0x35116c,_0x19c55a,_0x571c2c=0x0;_0x19c55a=_0x326699['charAt'](_0x571c2c++);~_0x19c55a&&(_0x35116c=_0x265a8f%0x4?_0x35116c*0x40+_0x19c55a:_0x19c55a,_0x265a8f++%0x4)?_0x5b0d7c+=_0x33ab62['charCodeAt'](_0x571c2c+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x35116c>>(-0x2*_0x265a8f&0x6)):_0x265a8f:0x0){_0x19c55a=_0x1ec61c['indexOf'](_0x19c55a);}for(let _0x5b01c2=0x0,_0x9ace13=_0x5b0d7c['length'];_0x5b01c2<_0x9ace13;_0x5b01c2++){_0x3b3e33+='%'+('00'+_0x5b0d7c['charCodeAt'](_0x5b01c2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3b3e33);};_0x2472['lmGUAT']=_0x13a27a,_0x2472['jucUhZ']={},_0x2472['yIAXYT']=!![];}const _0x4808e5=_0x2cd28d[0x0],_0x247260=_0x3f13c6+_0x4808e5,_0x4e7ace=_0x2472['jucUhZ'][_0x247260];if(!_0x4e7ace){const _0x1e188a=function(_0x34d072){this['GMKSJT']=_0x34d072,this['RxIGNl']=[0x1,0x0,0x0],this['kEiWwI']=function(){return'newState';},this['TrINap']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['GzGXYW']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x1e188a['prototype']['qLDzZY']=function(){const _0x513f36=new RegExp(this['TrINap']+this['GzGXYW']),_0x4d3232=_0x513f36['test'](this['kEiWwI']['toString']())?--this['RxIGNl'][0x1]:--this['RxIGNl'][0x0];return this['yHvIZq'](_0x4d3232);},_0x1e188a['prototype']['yHvIZq']=function(_0x251f60){if(!Boolean(~_0x251f60))return _0x251f60;return this['pAYHkS'](this['GMKSJT']);},_0x1e188a['prototype']['pAYHkS']=function(_0x166d26){for(let _0x2bef41=0x0,_0x5e9ad9=this['RxIGNl']['length'];_0x2bef41<_0x5e9ad9;_0x2bef41++){this['RxIGNl']['push'](Math['round'](Math['random']())),_0x5e9ad9=this['RxIGNl']['length'];}return _0x166d26(this['RxIGNl'][0x0]);},new _0x1e188a(_0x2472)['qLDzZY'](),_0x5d196e=_0x2472['lmGUAT'](_0x5d196e),_0x2472['jucUhZ'][_0x247260]=_0x5d196e;}else _0x5d196e=_0x4e7ace;return _0x5d196e;}export async function getToken(){const _0x56bafe=_0x4433e2,_0x3161fd={'OsYVP':function(_0x18caa1,_0x3fc905){return _0x18caa1===_0x3fc905;},'yVwxQ':_0x56bafe(0x77),'zSnEG':function(_0x1b5cf7,_0x230ab2){return _0x1b5cf7!==_0x230ab2;},'gxvld':_0x56bafe(0xc6),'DJvQn':function(_0x202afa,_0x5f550f,_0x43ba2b){return _0x202afa(_0x5f550f,_0x43ba2b);},'VmQTZ':_0x56bafe(0x8e),'bfuwL':function(_0x451ebc){return _0x451ebc();},'RzQQK':function(_0xa0e204,_0x9dfb56){return _0xa0e204(_0x9dfb56);},'gCgdR':_0x56bafe(0x9f),'VjkWH':_0x56bafe(0x89),'yyYOy':_0x56bafe(0x79),'pdYPD':function(_0xe63351,_0x58da0e){return _0xe63351 instanceof _0x58da0e;},'wTiZW':function(_0x49e47e,_0x2f0b05){return _0x49e47e(_0x2f0b05);},'WOtOy':function(_0x30b823,_0x2563b1){return _0x30b823+_0x2563b1;},'lLXpU':'Re-authorize\x20the\x20Ranger\x20MCP\x20connection,\x20then\x20retry.','aSxaJ':'Your\x20session\x20has\x20expired.\x20Please\x20run\x20`ranger\x20login`\x20to\x20re-authenticate.'};if(process['env'][ENV_TOKEN])return _0x3161fd[_0x56bafe(0x90)](_0x3161fd[_0x56bafe(0x99)],_0x56bafe(0x77))?process[_0x56bafe(0xa5)][ENV_TOKEN]:null;if(process[_0x56bafe(0xa5)][ENV_TOKEN_LEGACY])return process[_0x56bafe(0xa5)][ENV_TOKEN_LEGACY];let _0xb8e72b=null;try{if(_0x3161fd['zSnEG'](_0x3161fd[_0x56bafe(0x8a)],_0x56bafe(0xc6)))return _0x281160[_0x56bafe(0xa5)][_0x2ebc63];else _0xb8e72b=(await _0x3161fd[_0x56bafe(0xa6)](readFile,TOKEN_PATH,_0x3161fd[_0x56bafe(0x92)]))[_0x56bafe(0x7d)]()||null;}catch{const _0x323c3f=await _0x3161fd[_0x56bafe(0x80)](tryRefreshToken);return _0x323c3f;}if(!_0xb8e72b)return null;const _0x4350ce=await _0x3161fd[_0x56bafe(0xc2)](checkTokenValid,_0xb8e72b);if(_0x4350ce)return _0xb8e72b;const _0x3b8b20=await _0x3161fd[_0x56bafe(0xc2)](tryPromoteRefreshToken,_0xb8e72b);if(_0x3b8b20)return _0x3b8b20;const _0x3e384f=await tryRefreshToken();if(_0x3e384f)return _0x3e384f;const {getMcpAuthOrigin:_0x4a1973,mcpBootstrap:_0x18aed0}=await import(_0x3161fd[_0x56bafe(0xbf)]),_0x30ec90=await _0x4a1973();if(_0x30ec90)try{if(_0x3161fd[_0x56bafe(0xa8)](_0x3161fd[_0x56bafe(0xa9)],_0x3161fd[_0x56bafe(0xa9)]))return![];else{console['log'](_0x3161fd[_0x56bafe(0x6c)]),await _0x3161fd[_0x56bafe(0x80)](_0x18aed0);const _0x1c3398=await _0x3161fd['bfuwL'](tryRefreshToken);if(_0x1c3398)return _0x1c3398;}}catch(_0x14027b){if(_0x3161fd[_0x56bafe(0x90)](_0x56bafe(0xb0),'qukfB'))return!!_0x110668[_0x56bafe(0xa5)][_0x56bafe(0x9b)];else{const _0x5a0c7d=_0x3161fd[_0x56bafe(0x7f)](_0x14027b,Error)?_0x14027b[_0x56bafe(0xa2)]:_0x3161fd['wTiZW'](String,_0x14027b);throw new Error(_0x3161fd[_0x56bafe(0x97)]('MCP\x20re-authentication\x20failed:\x20'+_0x5a0c7d+'\x0a',_0x3161fd[_0x56bafe(0xbc)]));}}throw new Error(_0x3161fd[_0x56bafe(0x9d)]);}async function checkTokenValid(_0x4a7df5){const _0x25059b=_0x4433e2,_0x47e707={'Crnhq':function(_0x410d29,_0x3fbd92,_0x6ce683){return _0x410d29(_0x3fbd92,_0x6ce683);},'qfjby':_0x25059b(0xb9),'hXNHX':function(_0x293ee9){return _0x293ee9();},'RSIzN':function(_0x5511cf,_0x3c85d4,_0x42bb1f){return _0x5511cf(_0x3c85d4,_0x42bb1f);},'DqYUn':function(_0x52d837,_0x4f719b){return _0x52d837===_0x4f719b;},'tYhFF':_0x25059b(0x72),'KjxbC':_0x25059b(0xac),'NsCst':function(_0xe9ac55,_0x192211){return _0xe9ac55(_0x192211);}},_0x4593b8=new AbortController(),_0x3fdc0e=_0x47e707[_0x25059b(0x9c)](setTimeout,()=>_0x4593b8['abort'](),0x1388);try{const {getApiBaseUrl:_0x3def9a}=await import(_0x47e707[_0x25059b(0xb2)]),_0x4ac98c=_0x47e707[_0x25059b(0x8c)](_0x3def9a),_0xcae750=await _0x47e707['RSIzN'](fetch,_0x4ac98c+_0x25059b(0x82),{'method':_0x25059b(0x94),'headers':{'Authorization':'Bearer\x20'+_0x4a7df5},'signal':_0x4593b8['signal']});return _0xcae750['ok'];}catch{return!![];}finally{if(_0x47e707[_0x25059b(0xbe)](_0x47e707[_0x25059b(0x84)],_0x47e707['KjxbC'])){if(_0x23b512){const _0x484e5e=_0x540f24[_0x25059b(0x6f)](_0x18652b,arguments);return _0x354d1c=null,_0x484e5e;}}else _0x47e707[_0x25059b(0xad)](clearTimeout,_0x3fdc0e);}}async function tryRefreshToken(){const _0x488a45=_0x4433e2,_0x1c994b={'MLpGe':function(_0x1952ae){return _0x1952ae();}},{refreshCliToken:_0x222de5}=await import(_0x488a45(0xc4));return _0x1c994b[_0x488a45(0x93)](_0x222de5);}async function tryPromoteRefreshToken(_0x461275){const _0x11f7bd=_0x4433e2,_0x41aeda={'eaNTc':_0x11f7bd(0xc4),'zvOvb':function(_0x371108,_0x227353,_0x4d887f){return _0x371108(_0x227353,_0x4d887f);}},{refreshPartnerCliToken:_0x5453a5}=await import(_0x41aeda[_0x11f7bd(0xa1)]);return _0x41aeda[_0x11f7bd(0x73)](_0x5453a5,_0x461275,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x5e39e2=_0x4433e2,_0x1d38a8={'BVhvt':function(_0x1a8dad,_0x5424b6){return _0x1a8dad instanceof _0x5424b6;},'ftisr':function(_0x35c923,_0x3002f3){return _0x35c923(_0x3002f3);},'eUpto':'Re-authorize\x20the\x20Ranger\x20MCP\x20connection,\x20then\x20retry.','zreBo':function(_0x1f6c71,_0x4c0a94){return _0x1f6c71!==_0x4c0a94;},'aaBOt':_0x5e39e2(0xa7),'xOYWq':'DJwZy'};try{return _0x1d38a8[_0x5e39e2(0x91)](_0x1d38a8[_0x5e39e2(0xab)],_0x1d38a8[_0x5e39e2(0xab)])?![]:(await _0x1d38a8[_0x5e39e2(0x88)](unlink,TOKEN_PATH),!![]);}catch{if(_0x1d38a8[_0x5e39e2(0xbd)]===_0x5e39e2(0x6e)){const _0x109317=_0x1d38a8[_0x5e39e2(0xb6)](_0x24ef37,_0x146583)?_0x21990f[_0x5e39e2(0xa2)]:_0x1d38a8[_0x5e39e2(0x88)](_0x4417b1,_0xfa691a);throw new _0x32806b('MCP\x20re-authentication\x20failed:\x20'+_0x109317+'\x0a'+_0x1d38a8['eUpto']);}else return![];}}export async function storeRefreshToken(_0x1f0a4){const _0x299648={'XmNlM':function(_0x4cf2c6,_0xf1c7f2,_0x419b5e){return _0x4cf2c6(_0xf1c7f2,_0x419b5e);}};await _0x299648['XmNlM'](mkdir,TOKEN_DIR,{'recursive':!![]}),await writeFile(REFRESH_TOKEN_PATH,_0x1f0a4,{'mode':0x180});}export async function getRefreshToken(){const _0x3fe4d7=_0x4433e2,_0x511101={'cWIpO':function(_0x5e6475,_0x2f4f23,_0x2dbc90){return _0x5e6475(_0x2f4f23,_0x2dbc90);},'PHQXV':_0x3fe4d7(0x8e),'JAjlM':function(_0x280606,_0x57adc6){return _0x280606===_0x57adc6;},'GSkGW':_0x3fe4d7(0xa4),'aXANh':_0x3fe4d7(0x6d)};try{const _0x43a7c7=await _0x511101[_0x3fe4d7(0xaf)](readFile,REFRESH_TOKEN_PATH,_0x511101[_0x3fe4d7(0x7b)]);return _0x43a7c7[_0x3fe4d7(0x7d)]()||null;}catch{return _0x511101[_0x3fe4d7(0x87)](_0x511101[_0x3fe4d7(0x81)],_0x511101[_0x3fe4d7(0x7e)])?!![]:null;}}export async function deleteRefreshToken(){const _0x19f956=_0x4433e2,_0x39eb56={'aEzxG':function(_0x26b4dd,_0x5a5e3d){return _0x26b4dd(_0x5a5e3d);}};try{return await _0x39eb56[_0x19f956(0xc3)](unlink,REFRESH_TOKEN_PATH),!![];}catch{return![];}}export async function deleteAllCredentials(){const _0xd60529={'MyNMo':function(_0xb6f93e){return _0xb6f93e();}};await deleteToken(),await _0xd60529['MyNMo'](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
+ function _0x4a09(_0x1165b6,_0xba936c){_0x1165b6=_0x1165b6-0xbb;const _0x2ce817=_0x2ce8();let _0x4a0919=_0x2ce817[_0x1165b6];return _0x4a0919;}const _0x5295aa=_0x4a09;function _0x2ce8(){const _0x3d86af=['20kormAX','local','verify-feature','nkgOn','4oWpHCY','150mnicKN','\x20\x20\x20Delete\x20these\x20paths\x20after\x20you\x20have\x20re-auth-ed.','use','2916939LDYpah','FrJEX','--help','.legacy-warning-','546644uoewDh','524338KchWvS','PgIlc','active-profile.txt','\x20\x20\x20\x20\x20https://docs.ranger.net/main/concepts/profiles','iEmZY','861510YmWRln','979077NaGpUf','8460351KqDeai','profile','join','start','105021DBVhcF','IanOp','80nDXpfK','\x20\x20\x20Ranger\x20no\x20longer\x20writes\x20to\x20these\x20paths.\x20Existing\x20sessions\x20there\x20still\x20work','profiles'];_0x2ce8=function(){return _0x3d86af;};return _0x2ce8();}(function(_0x39a867,_0x19f53c){const _0x61d56c=_0x4a09,_0x19d1bf=_0x39a867();while(!![]){try{const _0x452309=-parseInt(_0x61d56c(0xcd))/0x1+-parseInt(_0x61d56c(0xce))/0x2+parseInt(_0x61d56c(0xc9))/0x3*(parseInt(_0x61d56c(0xc5))/0x4)+-parseInt(_0x61d56c(0xc1))/0x5*(-parseInt(_0x61d56c(0xd3))/0x6)+parseInt(_0x61d56c(0xbc))/0x7*(parseInt(_0x61d56c(0xbe))/0x8)+parseInt(_0x61d56c(0xd5))/0x9+parseInt(_0x61d56c(0xc6))/0xa*(-parseInt(_0x61d56c(0xd4))/0xb);if(_0x452309===_0x19f53c)break;else _0x19d1bf['push'](_0x19d1bf['shift']());}catch(_0x388619){_0x19d1bf['push'](_0x19d1bf['shift']());}}}(_0x2ce8,0x78504));import{existsSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function detectLegacyPaths(){const _0x5139cf=_0x4a09,_0x2ffc07={'IanOp':function(_0x528767,_0x5778b7,_0x57129e){return _0x528767(_0x5778b7,_0x57129e);},'iEmZY':'local','PgIlc':function(_0x425046,_0x11c95c,_0x5e0735){return _0x425046(_0x11c95c,_0x5e0735);},'FrJEX':_0x5139cf(0xd0)},_0x125187=getRangerDir(),_0x2db2e0=getRangerHomeDir();return[_0x2ffc07[_0x5139cf(0xbd)](join,_0x125187,_0x2ffc07[_0x5139cf(0xd2)]),join(_0x125187,'ci'),join(_0x2db2e0,_0x5139cf(0xc2)),_0x2ffc07[_0x5139cf(0xcf)](join,_0x125187,_0x2ffc07[_0x5139cf(0xca)])]['filter'](_0x43c8c1=>existsSync(_0x43c8c1));}function flagFilePath(){const _0x9822bd=_0x4a09,_0x523fe1=new Date()['toISOString']()['slice'](0x0,0xa);return join(getRangerHomeDir(),_0x9822bd(0xcc)+_0x523fe1);}export function showLegacyDeprecationWarning(){const _0x477fc9=_0x4a09,_0x462405={'nkgOn':function(_0x1cf6ef){return _0x1cf6ef();},'UGxeu':_0x477fc9(0xbf),'Gwcmc':_0x477fc9(0xc7),'WzbEj':function(_0x3b5ea9){return _0x3b5ea9();}},_0x406c10=_0x462405[_0x477fc9(0xc4)](detectLegacyPaths);if(_0x406c10['length']===0x0)return;const _0x184d05=flagFilePath();if(existsSync(_0x184d05))return;const _0x4e68f2=['','⚠\x20\x20Legacy\x20Ranger\x20paths\x20detected\x20(read-only):',..._0x406c10['map'](_0x1ac70b=>'\x20\x20\x20\x20\x20'+_0x1ac70b),'',_0x462405['UGxeu'],'\x20\x20\x20as\x20a\x20fallback.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:','','\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20<name>','','\x20\x20\x20For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:',_0x477fc9(0xd1),'',_0x462405['Gwcmc'],''];process['stderr']['write'](_0x4e68f2[_0x477fc9(0xd7)]('\x0a')+'\x0a');try{mkdirSync(_0x462405['WzbEj'](getRangerHomeDir),{'recursive':!![]}),writeFileSync(_0x184d05,'',{'mode':0x180});}catch{}}const PROFILE_TOUCHING_COMMANDS=new Set(['go','verify',_0x5295aa(0xc3),_0x5295aa(0xd6),_0x5295aa(0xc0),'setup','setup-ci',_0x5295aa(0xbb),_0x5295aa(0xc8)]);export function shouldShowLegacyWarning(_0x228122){const _0x2fc50b=_0x5295aa,_0x17e738={'PPZcE':function(_0x21d2d8,_0x2a9fe2){return _0x21d2d8===_0x2a9fe2;}},_0x305d66=_0x228122[0x2];if(!_0x305d66)return![];if(_0x305d66['startsWith']('-'))return![];if(!PROFILE_TOUCHING_COMMANDS['has'](_0x305d66))return![];for(let _0x5c38c7=0x3;_0x5c38c7<_0x228122['length'];_0x5c38c7++){if(_0x17e738['PPZcE'](_0x228122[_0x5c38c7],_0x2fc50b(0xcb))||_0x228122[_0x5c38c7]==='-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(_0x44402d,_0x47b0f1){const _0x4e699a=_0x2c6a,_0x265fb1=_0x44402d();while(!![]){try{const _0x161e4d=-parseInt(_0x4e699a(0xba))/0x1*(parseInt(_0x4e699a(0xac))/0x2)+parseInt(_0x4e699a(0xb3))/0x3+-parseInt(_0x4e699a(0xc4))/0x4*(parseInt(_0x4e699a(0xbc))/0x5)+-parseInt(_0x4e699a(0xa8))/0x6+parseInt(_0x4e699a(0xab))/0x7*(-parseInt(_0x4e699a(0xbd))/0x8)+parseInt(_0x4e699a(0xb6))/0x9*(parseInt(_0x4e699a(0xb9))/0xa)+parseInt(_0x4e699a(0xb5))/0xb*(parseInt(_0x4e699a(0xb4))/0xc);if(_0x161e4d===_0x47b0f1)break;else _0x265fb1['push'](_0x265fb1['shift']());}catch(_0x149f3e){_0x265fb1['push'](_0x265fb1['shift']());}}}(_0x2742,0x382c2));const _0x1791a8=(function(){let _0x2b13b4=!![];return function(_0x44f865,_0x51d530){const _0x59e4eb=_0x2c6a,_0x3d5473={'AwEtJ':function(_0xe0d058,_0x57525a){return _0xe0d058===_0x57525a;},'OsCXp':_0x59e4eb(0xae)},_0x2ecd4e=_0x2b13b4?function(){const _0x5ea735=_0x59e4eb;if(_0x3d5473[_0x5ea735(0xb2)](_0x3d5473[_0x5ea735(0xc1)],_0x3d5473[_0x5ea735(0xc1)])){if(_0x51d530){const _0x578cdf=_0x51d530['apply'](_0x44f865,arguments);return _0x51d530=null,_0x578cdf;}}else{const _0xc46cc9=_0x6e7f16[_0x5ea735(0xaa)](_0x532bf5,arguments);return _0x38548f=null,_0xc46cc9;}}:function(){};return _0x2b13b4=![],_0x2ecd4e;};}()),_0x340147=_0x1791a8(this,function(){const _0x126b6a=_0x2c6a,_0x21d6e5={'mnmQN':_0x126b6a(0xbb)};return _0x340147[_0x126b6a(0xad)]()[_0x126b6a(0xc6)](_0x21d6e5['mnmQN'])[_0x126b6a(0xad)]()[_0x126b6a(0xc3)](_0x340147)[_0x126b6a(0xc6)](_0x126b6a(0xbb));});function _0x2c6a(_0x3a5bbd,_0x59a40b){_0x3a5bbd=_0x3a5bbd-0xa5;const _0x17ba25=_0x2742();let _0x340147=_0x17ba25[_0x3a5bbd];if(_0x2c6a['azCLPo']===undefined){var _0x1791a8=function(_0x2b0ae8){const _0x5ee70e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2363c4='',_0x1c8390='',_0x1646f4=_0x2363c4+_0x1791a8;for(let _0xa6340a=0x0,_0x2e0a66,_0x5ae292,_0xf19c47=0x0;_0x5ae292=_0x2b0ae8['charAt'](_0xf19c47++);~_0x5ae292&&(_0x2e0a66=_0xa6340a%0x4?_0x2e0a66*0x40+_0x5ae292:_0x5ae292,_0xa6340a++%0x4)?_0x2363c4+=_0x1646f4['charCodeAt'](_0xf19c47+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x2e0a66>>(-0x2*_0xa6340a&0x6)):_0xa6340a:0x0){_0x5ae292=_0x5ee70e['indexOf'](_0x5ae292);}for(let _0x275350=0x0,_0x10c2f7=_0x2363c4['length'];_0x275350<_0x10c2f7;_0x275350++){_0x1c8390+='%'+('00'+_0x2363c4['charCodeAt'](_0x275350)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1c8390);};_0x2c6a['npiwHS']=_0x1791a8,_0x2c6a['SumBhy']={},_0x2c6a['azCLPo']=!![];}const _0x2742bf=_0x17ba25[0x0],_0x2c6ada=_0x3a5bbd+_0x2742bf,_0x34d6e9=_0x2c6a['SumBhy'][_0x2c6ada];if(!_0x34d6e9){const _0x3db6f1=function(_0x3838e2){this['izzQzD']=_0x3838e2,this['zsOfZg']=[0x1,0x0,0x0],this['ARRVhw']=function(){return'newState';},this['hYhlxM']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['DEOWEu']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x3db6f1['prototype']['xqbgFR']=function(){const _0x3f4bac=new RegExp(this['hYhlxM']+this['DEOWEu']),_0x31368b=_0x3f4bac['test'](this['ARRVhw']['toString']())?--this['zsOfZg'][0x1]:--this['zsOfZg'][0x0];return this['txKVhl'](_0x31368b);},_0x3db6f1['prototype']['txKVhl']=function(_0x54a5cc){if(!Boolean(~_0x54a5cc))return _0x54a5cc;return this['xYpXIX'](this['izzQzD']);},_0x3db6f1['prototype']['xYpXIX']=function(_0xa6572e){for(let _0x1cb164=0x0,_0x2edaa2=this['zsOfZg']['length'];_0x1cb164<_0x2edaa2;_0x1cb164++){this['zsOfZg']['push'](Math['round'](Math['random']())),_0x2edaa2=this['zsOfZg']['length'];}return _0xa6572e(this['zsOfZg'][0x0]);},new _0x3db6f1(_0x2c6a)['xqbgFR'](),_0x340147=_0x2c6a['npiwHS'](_0x340147),_0x2c6a['SumBhy'][_0x2c6ada]=_0x340147;}else _0x340147=_0x34d6e9;return _0x340147;}_0x340147();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';export async function logLocalAgentInstallation(_0xefc1a2,_0x3d1e38,_0x558176){const _0x59daec=_0x2c6a,_0x404415={'FrSAZ':function(_0x2e3a9b,_0x1bf9c3){return _0x2e3a9b(_0x1bf9c3);},'CaGJw':function(_0x5da77c){return _0x5da77c();},'RoZKZ':function(_0x11fe8d,_0x5635a4,_0x10ef84){return _0x11fe8d(_0x5635a4,_0x10ef84);},'BlnDb':'POST','oUZyG':_0x59daec(0xc7),'TmMUH':function(_0x53809f,_0x54f029){return _0x53809f===_0x54f029;},'fomay':_0x59daec(0xbe)},_0x276a6f=await _0x404415[_0x59daec(0xc2)](getToken);if(!_0x276a6f)return;const _0x5a6fc8=getApiBaseUrl(),_0x90dcf6=new AbortController(),_0x49bc48=_0x404415[_0x59daec(0xc5)](setTimeout,()=>_0x90dcf6[_0x59daec(0xa6)](),0x1388);let _0xc057ea;try{_0xc057ea=await _0x404415[_0x59daec(0xc5)](fetch,_0x5a6fc8+_0x59daec(0xbf),{'method':_0x404415[_0x59daec(0xb0)],'headers':{'Authorization':_0x59daec(0xa7)+_0x276a6f,'Content-Type':_0x404415['oUZyG']},'body':JSON[_0x59daec(0xb1)]({'skillName':_0xefc1a2,'cliVersion':_0x558176,'metadata':_0x3d1e38}),'signal':_0x90dcf6[_0x59daec(0xc0)]});}finally{_0x404415[_0x59daec(0xb8)](_0x404415[_0x59daec(0xaf)],_0x404415[_0x59daec(0xaf)])?_0x404415['FrSAZ'](clearTimeout,_0x49bc48):_0x404415['FrSAZ'](_0x22b948,_0x241317);}if(!_0xc057ea['ok']){const _0x5169b5=await _0xc057ea[_0x59daec(0xa9)]();console[_0x59daec(0xb7)](_0x59daec(0xa5)+_0x5169b5);}}function _0x2742(){const _0x27718c=['l2fWAs92ms9Ty3aVBg9JywWTywDLBNqTAw5ZDgfSBgf0Aw9UCW','C2LNBMfS','t3ndwha','q2fhsNC','y29UC3rYDwn0B3i','ntjfrMHgsuW','uM9As1O','C2vHCMnO','yxbWBgLJyxrPB24VANnVBG','rMfPBgvKihrVigXVzYbZA2LSBcbPBNn0ywXSyxrPB246ia','ywjVCNq','qMvHCMvYia','mty3mZu1meTou25Kua','Dgv4Da','yxbWBhK','mJCZz3bpzeP4','mJK4B1juCuHd','Dg9tDhjPBMC','rxbKsLC','zM9TyxK','qMXUrgi','C3rYAw5NAwz5','qxDfDeO','mtm2mZKXmxDlvMnJua','mtjrALnmBeC','mZC5mtCZm09KuuLUsa','ovvlvMTguq','zxjYB3i','vg1nvuG','mJuYndm1mgLprhHNrW','mZu0tLLzuuPq','kcGOlISPkYKRksSK','ntu3mZvmDMXWCMC','nZa3otj6A3Lzuhy','rg5jqLG'];_0x2742=function(){return _0x27718c;};return _0x2742();}
@@ -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 _0x3997(){const _0x14dd3f=['domains','127.0.0.1','RfoPC','24NgcAyn','859620JSFhHw','localhost','16004860fCuXCg','defaultEnvironmentKey','794429WpoxYU','protocol','2365008bLarjf','936lYdLtA','3sbqHvu','2503459YQdWsu','iPrYD','654154ooIgLp','18999MSTBXm','hostname','ONhWC','host','environments','length'];_0x3997=function(){return _0x14dd3f;};return _0x3997();}(function(_0x10f5bb,_0x2531c8){const _0x229f60=_0x4428,_0x3c3d03=_0x10f5bb();while(!![]){try{const _0x429247=parseInt(_0x229f60(0xa9))/0x1+parseInt(_0x229f60(0x9a))/0x2*(-parseInt(_0x229f60(0x97))/0x3)+parseInt(_0x229f60(0xa4))/0x4*(-parseInt(_0x229f60(0xa5))/0x5)+-parseInt(_0x229f60(0x95))/0x6+-parseInt(_0x229f60(0x98))/0x7+-parseInt(_0x229f60(0x96))/0x8*(-parseInt(_0x229f60(0x9b))/0x9)+parseInt(_0x229f60(0xa7))/0xa;if(_0x429247===_0x2531c8)break;else _0x3c3d03['push'](_0x3c3d03['shift']());}catch(_0x268855){_0x3c3d03['push'](_0x3c3d03['shift']());}}}(_0x3997,0x81c14));import{needsTunnel}from'./cloudProfileSession.js';function _0x4428(_0x5c5825,_0x3cb300){_0x5c5825=_0x5c5825-0x95;const _0x399738=_0x3997();let _0x442806=_0x399738[_0x5c5825];return _0x442806;}function originIdentity(_0xaa06ab){const _0x53065f=_0x4428;try{const _0x3db2b9=new URL(_0xaa06ab);return _0x3db2b9['protocol']+'//'+_0x3db2b9[_0x53065f(0x9e)];}catch{return undefined;}}export function matchAuthEnvironmentExact(_0x2a9a89,_0x5b7757){const _0x4c42bb=_0x4428,_0x5460d9={'iPrYD':function(_0x4729f5,_0x4fe41b){return _0x4729f5(_0x4fe41b);}};if(!_0x5b7757||!_0x5b7757[_0x4c42bb(0x9f)])return undefined;const _0x1994e5=_0x5460d9[_0x4c42bb(0x99)](originIdentity,_0x2a9a89);if(!_0x1994e5)return undefined;for(const [_0x459889,_0x3819fa]of Object['entries'](_0x5b7757[_0x4c42bb(0x9f)])){for(const _0xa7615c of _0x3819fa['domains']??[]){const _0x519d79=originIdentity(_0xa7615c);if(_0x519d79&&_0x519d79===_0x1994e5)return _0x459889;}}return undefined;}export function matchAuthEnvironmentByHost(_0xfd5e91,_0x27054d){const _0x23e86f=_0x4428,_0x1bbde8={'RfoPC':function(_0x158f63,_0xcc0d25){return _0x158f63===_0xcc0d25;}};if(!_0x27054d||!_0x27054d[_0x23e86f(0x9f)])return undefined;let _0x3d08ef,_0x1ac154;try{const _0xdcfe43=new URL(_0xfd5e91);_0x3d08ef=_0xdcfe43[_0x23e86f(0xaa)]+'//'+_0xdcfe43[_0x23e86f(0x9c)],_0x1ac154=_0xdcfe43[_0x23e86f(0x9c)];}catch{return undefined;}if(_0x1bbde8[_0x23e86f(0xa3)](_0x1ac154,_0x23e86f(0xa6))||_0x1ac154===_0x23e86f(0xa2))return undefined;const _0x2fc68d=[];for(const [_0x3ca222,_0x560cca]of Object['entries'](_0x27054d['environments'])){const _0x16a481=(_0x560cca[_0x23e86f(0xa1)]??[])['some'](_0x504824=>{const _0x1cd4d9=_0x23e86f;try{const _0x2f81b6=new URL(_0x504824);return _0x1bbde8[_0x1cd4d9(0xa3)](_0x2f81b6['protocol']+'//'+_0x2f81b6[_0x1cd4d9(0x9c)],_0x3d08ef);}catch{return![];}});if(_0x16a481)_0x2fc68d['push'](_0x3ca222);}if(_0x1bbde8['RfoPC'](_0x2fc68d['length'],0x1))return{'key':_0x2fc68d[0x0]};if(_0x2fc68d[_0x23e86f(0xa0)]>0x1)return{'ambiguous':_0x2fc68d};return undefined;}export function matchAuthEnvironment(_0x20756d,_0x4a4938){const _0x5a06f6=_0x4428,_0x3e56df={'nYoSL':function(_0x2f5783,_0x3e42c5,_0xdb1df4){return _0x2f5783(_0x3e42c5,_0xdb1df4);},'NbnSj':function(_0x5ca500,_0x2dc32e){return _0x5ca500 in _0x2dc32e;},'AKWnn':function(_0x4984db,_0x727116){return _0x4984db in _0x727116;},'WaKCZ':'ambiguous','ONhWC':function(_0x362c1e,_0x500661){return _0x362c1e(_0x500661);}};if(!_0x4a4938||!_0x4a4938['environments'])return undefined;const _0x14fb01=_0x3e56df['nYoSL'](matchAuthEnvironmentExact,_0x20756d,_0x4a4938);if(_0x14fb01)return _0x14fb01;const _0x40a3ee=_0x3e56df['nYoSL'](matchAuthEnvironmentByHost,_0x20756d,_0x4a4938);if(_0x40a3ee&&_0x3e56df['NbnSj']('key',_0x40a3ee))return _0x40a3ee['key'];if(_0x40a3ee&&_0x3e56df['AKWnn'](_0x3e56df['WaKCZ'],_0x40a3ee))return undefined;if(_0x3e56df[_0x5a06f6(0x9d)](needsTunnel,_0x20756d))return undefined;if(_0x4a4938['defaultEnvironmentKey']&&_0x4a4938['environments'][_0x4a4938['defaultEnvironmentKey']])return _0x4a4938[_0x5a06f6(0xa8)];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(_0x5ecf29,_0x5a863f){const _0x48f16b=_0x45bd,_0xbb99b3=_0x5ecf29();while(!![]){try{const _0x34e12e=-parseInt(_0x48f16b(0xa1))/0x1*(parseInt(_0x48f16b(0x88))/0x2)+-parseInt(_0x48f16b(0x8d))/0x3+parseInt(_0x48f16b(0xae))/0x4*(parseInt(_0x48f16b(0xb0))/0x5)+-parseInt(_0x48f16b(0xaa))/0x6*(-parseInt(_0x48f16b(0x92))/0x7)+parseInt(_0x48f16b(0x89))/0x8+-parseInt(_0x48f16b(0x80))/0x9*(parseInt(_0x48f16b(0x95))/0xa)+parseInt(_0x48f16b(0x9a))/0xb*(parseInt(_0x48f16b(0xab))/0xc);if(_0x34e12e===_0x5a863f)break;else _0xbb99b3['push'](_0xbb99b3['shift']());}catch(_0x41ced4){_0xbb99b3['push'](_0xbb99b3['shift']());}}}(_0x1b78,0x49a37));function _0x45bd(_0x5b68ff,_0x1899f8){_0x5b68ff=_0x5b68ff-0x7c;const _0x1b789d=_0x1b78();let _0x45bdac=_0x1b789d[_0x5b68ff];return _0x45bdac;}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 isRecord(_0x2fac7e){const _0x1cd3f8=_0x45bd,_0x54efa9={'tcdpX':function(_0x3b9f79,_0x55a3ea){return _0x3b9f79!==_0x55a3ea;}};return typeof _0x2fac7e===_0x1cd3f8(0xa0)&&_0x54efa9['tcdpX'](_0x2fac7e,null);}function isImageBlock(_0x25ecd7){const _0x53536c=_0x45bd,_0x3192d8={'UieAP':function(_0x28e8f0,_0x2321a7){return _0x28e8f0(_0x2321a7);}};return _0x3192d8['UieAP'](isRecord,_0x25ecd7)&&_0x25ecd7[_0x53536c(0xad)]===_0x53536c(0x94);}function isDataUrl(_0x5d795d){const _0x60aec6=_0x45bd;return _0x5d795d['startsWith'](_0x60aec6(0x8a));}function parseDataUrl(_0x3c6481){const _0x42b57d=_0x45bd,_0x466471={'tiOVi':function(_0x1b2208,_0x474c90){return _0x1b2208(_0x474c90);}},_0x4c8a7b=/^data:([^;]+);base64,(.+)$/['exec'](_0x3c6481);if(!_0x4c8a7b)return null;const _0x5887bd=_0x4c8a7b[0x1]['toLowerCase']();if(!_0x466471[_0x42b57d(0x86)](isValidMediaType,_0x5887bd))return null;return{'data':_0x4c8a7b[0x2],'mediaType':_0x5887bd};}function isValidMediaType(_0x463024){const _0x474af9={'GtFgq':'image/jpeg'};return[_0x474af9['GtFgq'],'image/png','image/gif','image/webp']['includes'](_0x463024);}function inferMediaType(_0xa6e909,_0x1dd6f2){const _0x301e10=_0x45bd,_0x459fec={'OgJRS':function(_0x3a3a9d,_0x5025e1){return _0x3a3a9d(_0x5025e1);},'yClqI':'jpeg','qhXdw':'gif','mtIjq':'image/webp'};if(_0xa6e909){const _0x19a37f=_0xa6e909['toLowerCase']()['split'](';')[0x0][_0x301e10(0xaf)]();if(isValidMediaType(_0x19a37f))return _0x19a37f;}const _0x410d34=_0x459fec[_0x301e10(0xac)](extname,_0x1dd6f2)['toLowerCase']()[_0x301e10(0xb1)]('.','');switch(_0x410d34){case'jpg':case _0x459fec[_0x301e10(0x99)]:return _0x301e10(0x9b);case'png':return _0x301e10(0x8b);case _0x459fec[_0x301e10(0x8c)]:return'image/gif';case'webp':return _0x459fec['mtIjq'];default:return'image/png';}}async function readImageFromUrl(_0x4b574b){const _0x19e1a6=_0x45bd,_0x4268ab={'qiLnn':function(_0x2945b6,_0x59fcdf){return _0x2945b6(_0x59fcdf);},'rQRuo':'Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','ATEFO':function(_0x536226,_0x34b047){return _0x536226>_0x34b047;},'HKHeQ':'base64','PgqIg':'content-length','wIguB':function(_0x17192e,_0x4b37bd){return _0x17192e(_0x4b37bd);},'PiEXx':function(_0x2fd194,_0x30b122){return _0x2fd194(_0x30b122);},'MgWzG':function(_0x5f8826,_0x25172d,_0x32461a){return _0x5f8826(_0x25172d,_0x32461a);}};if(_0x4268ab[_0x19e1a6(0x7c)](isDataUrl,_0x4b574b)){const _0x31e9d9=parseDataUrl(_0x4b574b);if(_0x31e9d9)return _0x31e9d9;throw new Error(_0x4268ab['rQRuo']);}if(_0x4b574b['startsWith']('file://')){const _0x1893d6=_0x4268ab[_0x19e1a6(0x7c)](fileURLToPath,_0x4b574b),_0xcf2259=await _0x4268ab['qiLnn'](stat,_0x1893d6);if(_0x4268ab[_0x19e1a6(0x97)](_0xcf2259[_0x19e1a6(0x91)],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x19e1a6(0xa8));const _0x2d3091=await _0x4268ab[_0x19e1a6(0x7c)](readFile,_0x1893d6);return{'data':_0x2d3091[_0x19e1a6(0xa9)](_0x4268ab[_0x19e1a6(0x9c)]),'mediaType':inferMediaType(null,_0x1893d6)};}if(_0x4b574b[_0x19e1a6(0x9f)]('http://')||_0x4b574b[_0x19e1a6(0x9f)](_0x19e1a6(0x7d))){const _0x517fb7=await fetch(_0x4b574b,{'signal':AbortSignal[_0x19e1a6(0xa6)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x517fb7['ok'])throw new Error('Failed\x20to\x20fetch\x20image:\x20'+_0x517fb7['status']);const _0x1287c8=_0x517fb7[_0x19e1a6(0x84)][_0x19e1a6(0xa2)](_0x4268ab[_0x19e1a6(0x8e)]);if(_0x1287c8){const _0x1084e5=Number(_0x1287c8);if(!Number['isNaN'](_0x1084e5)&&_0x1084e5>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x19e1a6(0x9d)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x35b6e8=await _0x517fb7[_0x19e1a6(0x90)]();if(_0x35b6e8['byteLength']>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x19e1a6(0x9d)+MAX_IMAGE_SIZE_BYTES+_0x19e1a6(0xa8));return{'data':Buffer['from'](_0x35b6e8)[_0x19e1a6(0xa9)](_0x4268ab[_0x19e1a6(0x9c)]),'mediaType':inferMediaType(_0x517fb7[_0x19e1a6(0x84)]['get']('content-type'),_0x4b574b)};}const _0x5a295e=await _0x4268ab['wIguB'](stat,_0x4b574b);if(_0x5a295e[_0x19e1a6(0x91)]>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x19e1a6(0xa8));const _0x40e352=await _0x4268ab['PiEXx'](readFile,_0x4b574b);return{'data':_0x40e352[_0x19e1a6(0xa9)](_0x4268ab[_0x19e1a6(0x9c)]),'mediaType':_0x4268ab[_0x19e1a6(0xa4)](inferMediaType,null,_0x4b574b)};}async function convertImageBlockToBase64(_0x260691){const _0xd2f6a0=_0x45bd;if(_0x260691[_0xd2f6a0(0x9e)]?.[_0xd2f6a0(0xad)]==='base64')return{'updated':![],'block':_0x260691};if(_0x260691['data']&&_0x260691['mimeType'])return{'updated':![],'block':_0x260691};const _0x20e239=_0x260691['source']?.[_0xd2f6a0(0x8f)]??_0x260691[_0xd2f6a0(0x8f)];if(!_0x20e239)return{'updated':![],'block':_0x260691};const _0x4531d5=await readImageFromUrl(_0x20e239);return{'updated':!![],'block':{..._0x260691,'source':{'type':'base64','media_type':_0x4531d5[_0xd2f6a0(0x87)],'data':_0x4531d5['data']},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x1bc41b){if(!isRecord(_0x1bc41b))return{'updated':![],'output':_0x1bc41b};const _0x56c5d7=_0x1bc41b['content'];if(!Array['isArray'](_0x56c5d7))return{'updated':![],'output':_0x1bc41b};let _0x54ad5d=![];const _0x156484=await Promise['all'](_0x56c5d7['map'](async _0x525255=>{const _0x5398b7=_0x45bd;if(!isImageBlock(_0x525255))return _0x525255;try{const _0x909237=await convertImageBlockToBase64(_0x525255);if(_0x909237['updated'])_0x54ad5d=!![];return _0x909237[_0x5398b7(0x98)];}catch{return _0x525255;}}));if(!_0x54ad5d)return{'updated':![],'output':_0x1bc41b};return{'updated':!![],'output':{..._0x1bc41b,'content':_0x156484}};}function _0x1b78(){const _0xec12a1=['https://','BnflU','tool_response','42039hLrqhr','HJZvE','charCodeAt','value','headers','jwqpc','tiOVi','mediaType','12qPZOex','1333456PPaByr','data:','image/png','qhXdw','473691wbIXtu','PgqIg','url','arrayBuffer','size','3317461sicZtm','isArray','image','1010DgfyLJ','output','ATEFO','block','yClqI','121lnOpkT','image/jpeg','HKHeQ','Image\x20exceeds\x20size\x20limit\x20(','source','startsWith','object','70111SqQoZG','get','updated','MgWzG','nqBsj','timeout','map','\x20bytes)','toString','6oKTqYO','253956LFnxpe','OgJRS','type','1492vYlmYq','trim','6415SUkuCW','replace','qiLnn'];_0x1b78=function(){return _0xec12a1;};return _0x1b78();}function sanitizeLoneSurrogates(_0x1309df){const _0x3d4b11=_0x45bd,_0x27b572={'sAONV':function(_0xe98917,_0x252ebd){return _0xe98917<=_0x252ebd;},'HJZvE':function(_0x4c6fd8,_0x3e5531){return _0x4c6fd8<=_0x3e5531;},'RdxKD':function(_0x349d17,_0x221519){return _0x349d17+_0x221519;},'dUAmO':function(_0x1e747d,_0x8be16f){return _0x1e747d>=_0x8be16f;},'RzIMY':function(_0x2a66d7,_0x1536d7){return _0x2a66d7<=_0x1536d7;}};let _0x1c429d=![],_0x9b08c9='';for(let _0x1e1140=0x0;_0x1e1140<_0x1309df['length'];_0x1e1140+=0x1){const _0x28fbec=_0x1309df[_0x3d4b11(0x82)](_0x1e1140);if(_0x28fbec>=0xd800&&_0x27b572['sAONV'](_0x28fbec,0xdbff)){const _0x2b486a=_0x1309df['charCodeAt'](_0x1e1140+0x1);if(_0x2b486a>=0xdc00&&_0x27b572[_0x3d4b11(0x81)](_0x2b486a,0xdfff)){_0x9b08c9+=_0x27b572['RdxKD'](_0x1309df[_0x1e1140],_0x1309df[_0x1e1140+0x1]),_0x1e1140+=0x1;continue;}_0x1c429d=!![],_0x9b08c9+='�';continue;}if(_0x27b572['dUAmO'](_0x28fbec,0xdc00)&&_0x27b572['RzIMY'](_0x28fbec,0xdfff)){_0x1c429d=!![],_0x9b08c9+='�';continue;}_0x9b08c9+=_0x1309df[_0x1e1140];}return _0x1c429d?{'updated':_0x1c429d,'value':_0x9b08c9}:{'updated':_0x1c429d,'value':_0x1309df};}function sanitizeLoneSurrogatesDeep(_0x4bac1c){const _0x5137f2=_0x45bd,_0x2cff6c={'Qxogi':function(_0x2fac5b,_0x41f556){return _0x2fac5b(_0x41f556);},'bhcic':function(_0xb41c04,_0x5c0216){return _0xb41c04===_0x5c0216;},'nqBsj':function(_0x1f1844,_0x5abc1b){return _0x1f1844(_0x5abc1b);}};if(_0x2cff6c['bhcic'](typeof _0x4bac1c,'string'))return _0x2cff6c['Qxogi'](sanitizeLoneSurrogates,_0x4bac1c);if(Array[_0x5137f2(0x93)](_0x4bac1c)){let _0x52f0c1=![];const _0x1c7e8c=_0x4bac1c[_0x5137f2(0xa7)](_0x3b058e=>{const _0x25c7e8=_0x5137f2,_0x12d402=_0x2cff6c['Qxogi'](sanitizeLoneSurrogatesDeep,_0x3b058e);return _0x12d402['updated']&&(_0x52f0c1=!![]),_0x12d402[_0x25c7e8(0x83)];});return _0x52f0c1?{'updated':!![],'value':_0x1c7e8c}:{'updated':![],'value':_0x4bac1c};}if(!_0x2cff6c[_0x5137f2(0xa5)](isRecord,_0x4bac1c))return{'updated':![],'value':_0x4bac1c};let _0x59b6d2=![];const _0x1c182a=Object['entries'](_0x4bac1c)[_0x5137f2(0xa7)](([_0x157381,_0x141c76])=>{const _0x3095b4=sanitizeLoneSurrogatesDeep(_0x141c76);return _0x3095b4['updated']&&(_0x59b6d2=!![]),[_0x157381,_0x3095b4['value']];});return _0x59b6d2?{'updated':!![],'value':Object['fromEntries'](_0x1c182a)}:{'updated':![],'value':_0x4bac1c};}export function createMcpImageBase64Hook(){const _0x624c34={'jwqpc':function(_0x46d41f,_0x1bc161){return _0x46d41f!==_0x1bc161;},'tmLYb':'PostToolUse','BnflU':function(_0x573d7c,_0xc0ac5){return _0x573d7c(_0xc0ac5);}};return async _0x1a0719=>{const _0x265266=_0x45bd;if(_0x624c34[_0x265266(0x85)](_0x1a0719['hook_event_name'],_0x624c34['tmLYb']))return{};const _0x2cb813=_0x1a0719,_0x6561ac=await _0x624c34[_0x265266(0x7e)](convertToolOutputImagesToBase64,_0x2cb813[_0x265266(0x7f)]),_0x1bab53=_0x624c34[_0x265266(0x7e)](sanitizeLoneSurrogatesDeep,_0x6561ac[_0x265266(0x96)]),_0x4f1a5f=_0x6561ac[_0x265266(0xa3)]||_0x1bab53['updated'];if(!_0x4f1a5f)return{};return{'hookSpecificOutput':{'hookEventName':'PostToolUse','updatedMCPToolOutput':_0x1bab53['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
+ function _0x3f14(){const _0x54d9b7=['claude-opus-4-6','9450960sMwnuZ','155739KjipPr','12729870cqQKST','488CFhOxk','2AQkcsi','35623oTAXVZ','65967630RlsOUM','1288elAtya','10740YXUGLu','claude-sonnet-4-6','5850755uCScWr'];_0x3f14=function(){return _0x54d9b7;};return _0x3f14();}const _0x35f791=_0xb848;function _0xb848(_0x576745,_0x502a80){_0x576745=_0x576745-0x1dd;const _0x3f14c1=_0x3f14();let _0xb84877=_0x3f14c1[_0x576745];return _0xb84877;}(function(_0x4cb785,_0x25beb3){const _0x10e74c=_0xb848,_0x3c77ed=_0x4cb785();while(!![]){try{const _0x1524fa=parseInt(_0x10e74c(0x1e8))/0x1*(-parseInt(_0x10e74c(0x1df))/0x2)+-parseInt(_0x10e74c(0x1e3))/0x3*(parseInt(_0x10e74c(0x1e2))/0x4)+-parseInt(_0x10e74c(0x1e5))/0x5+-parseInt(_0x10e74c(0x1e7))/0x6+parseInt(_0x10e74c(0x1e0))/0x7*(-parseInt(_0x10e74c(0x1de))/0x8)+-parseInt(_0x10e74c(0x1dd))/0x9+parseInt(_0x10e74c(0x1e1))/0xa;if(_0x1524fa===_0x25beb3)break;else _0x3c77ed['push'](_0x3c77ed['shift']());}catch(_0x3dc3a9){_0x3c77ed['push'](_0x3c77ed['shift']());}}}(_0x3f14,0xc7bae));const VERIFY_MODEL_ALIASES={'opus':_0x35f791(0x1e6),'sonnet':'claude-sonnet-4-6'};export const DEFAULT_VERIFY_MODEL=_0x35f791(0x1e4);export function resolveVerifyModel(_0x4dc861){if(!_0x4dc861)return undefined;const _0xa87f5=_0x4dc861['trim']();if(!_0xa87f5)return undefined;const _0x350190=VERIFY_MODEL_ALIASES[_0xa87f5['toLowerCase']()];return _0x350190??_0xa87f5;}