@ranger-testing/ranger-cli 3.1.6-alpha.4287155-52 → 3.1.6-alpha.4de822b-51

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 _0x5c8da6=_0x4f8e;(function(_0x61f61,_0x53c48d){const _0x2e2f6c=_0x4f8e,_0x5ea69e=_0x61f61();while(!![]){try{const _0xdd8690=parseInt(_0x2e2f6c(0x128))/0x1+-parseInt(_0x2e2f6c(0x151))/0x2*(parseInt(_0x2e2f6c(0x14b))/0x3)+-parseInt(_0x2e2f6c(0x11d))/0x4*(parseInt(_0x2e2f6c(0x13f))/0x5)+-parseInt(_0x2e2f6c(0x132))/0x6+parseInt(_0x2e2f6c(0x124))/0x7+-parseInt(_0x2e2f6c(0x12b))/0x8*(parseInt(_0x2e2f6c(0x157))/0x9)+-parseInt(_0x2e2f6c(0x140))/0xa*(-parseInt(_0x2e2f6c(0x130))/0xb);if(_0xdd8690===_0x53c48d)break;else _0x5ea69e['push'](_0x5ea69e['shift']());}catch(_0x15695f){_0x5ea69e['push'](_0x5ea69e['shift']());}}}(_0x2a52,0x8e8a5));import{readFileSync,writeFileSync}from'fs';function _0x4f8e(_0x5249bf,_0x558a83){_0x5249bf=_0x5249bf-0x11c;const _0x2a52b5=_0x2a52();let _0x4f8e07=_0x2a52b5[_0x5249bf];return _0x4f8e07;}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(_0xe1423c,_0x46f03e){const _0x4a20cd=_0x4f8e,_0x232472={'lPmsv':function(_0x163dad,_0x482e73){return _0x163dad>=_0x482e73;}};if(_0x232472['lPmsv'](_0x46f03e,_0xe1423c['length']))return[0x0,0x0];const _0x336ed3=_0xe1423c[_0x46f03e];let _0x2542eb=0x1,_0x7f8e94=0x80;while(_0x2542eb<=0x8&&!(_0x336ed3&_0x7f8e94)){_0x2542eb++,_0x7f8e94>>=0x1;}if(_0x46f03e+_0x2542eb>_0xe1423c[_0x4a20cd(0x12e)])return[0x0,0x0];let _0x268986=_0x336ed3&_0x7f8e94-0x1;for(let _0x4362a4=0x1;_0x4362a4<_0x2542eb;_0x4362a4++){_0x268986=_0x268986*0x100+_0xe1423c[_0x46f03e+_0x4362a4];}return[_0x268986,_0x2542eb];}function readId(_0x362513,_0x20dd22){const _0x2d965a=_0x4f8e,_0x462bf6={'BjKfw':function(_0x14fb06,_0x20c12c){return _0x14fb06>=_0x20c12c;},'peklO':function(_0x461cbc,_0x50cd82){return _0x461cbc>=_0x50cd82;},'ktgTF':function(_0x584e95,_0x5917fb){return _0x584e95+_0x5917fb;},'ebrkM':function(_0x3c80b4,_0xbdd0d9){return _0x3c80b4*_0xbdd0d9;}};if(_0x462bf6[_0x2d965a(0x152)](_0x20dd22,_0x362513[_0x2d965a(0x12e)]))return[0x0,0x0];const _0x5ef26e=_0x362513[_0x20dd22];let _0x256b16;if(_0x462bf6['BjKfw'](_0x5ef26e,0x80))_0x256b16=0x1;else{if(_0x462bf6[_0x2d965a(0x145)](_0x5ef26e,0x40))_0x256b16=0x2;else{if(_0x5ef26e>=0x20)_0x256b16=0x3;else{if(_0x462bf6['peklO'](_0x5ef26e,0x10))_0x256b16=0x4;else return[_0x5ef26e,0x1];}}}if(_0x462bf6['ktgTF'](_0x20dd22,_0x256b16)>_0x362513['length'])return[0x0,0x0];let _0x1d948b=0x0;for(let _0x3ff7d9=0x0;_0x3ff7d9<_0x256b16;_0x3ff7d9++){_0x1d948b=_0x462bf6[_0x2d965a(0x136)](_0x1d948b,0x100)+_0x362513[_0x462bf6[_0x2d965a(0x12c)](_0x20dd22,_0x3ff7d9)];}return[_0x1d948b,_0x256b16];}function readUint(_0x3c33da,_0x413a7e,_0x29c73c){const _0x21d578=_0x4f8e,_0x268d14={'nEOrx':function(_0x275f58,_0x4e20df){return _0x275f58+_0x4e20df;},'CpPPG':function(_0x33eab0,_0x2252ef){return _0x33eab0*_0x2252ef;}};let _0x4874b4=0x0;for(let _0x5055ed=0x0;_0x5055ed<_0x29c73c;_0x5055ed++){_0x4874b4=_0x268d14[_0x21d578(0x13e)](_0x268d14[_0x21d578(0x12a)](_0x4874b4,0x100),_0x3c33da[_0x413a7e+_0x5055ed]);}return _0x4874b4;}function _0x2a52(){const _0x53c502=['iITPC','pow','OKswM','TvYJI','2zwhZcN','BjKfw','WhwIj','slice','fsjXC','BKiTs','144nzrrJD','error','4mAQtXj','writeDoubleBE','LMKtm','kTPyR','min','ufduu','jdiaj','6853000ONIFWQ','nrcZO','BwZXB','dataOffset','632124aVGhOG','argv','CpPPG','426320DDnouN','ktgTF','Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>','length','kdJXT','2228182eaRgLp','mdMEo','1402134QuCKfY','Could\x20not\x20find\x20Info\x20element','sILfU','sizeLen','ebrkM','tJUXr','wFYXr','egLyF','ibRYf','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','Vqddn','from','nEOrx','4005785FNhqRt','80narrAp','offset','tDNJv','iRYRI','PnCZI','peklO','fixWebmDuration.ts','idLen','concat','dataSize','npAMR','2280867KtseqT','rSWEi'];_0x2a52=function(){return _0x53c502;};return _0x2a52();}function isUnknownSize(_0x1a0aa7,_0x5a1527){const _0x5088f1=_0x4f8e,_0x4d005a={'doLUL':function(_0x36043f,_0x5deefe){return _0x36043f-_0x5deefe;},'qvYhF':function(_0x1af278,_0x3e871d){return _0x1af278*_0x3e871d;}};return _0x1a0aa7===_0x4d005a['doLUL'](Math[_0x5088f1(0x14e)](0x2,_0x4d005a['qvYhF'](0x7,_0x5a1527)),0x1);}function writeId(_0x49b7e4){const _0x53ff7c=_0x4f8e,_0x45083e={'QmpuG':function(_0x25c07b,_0x25cfeb){return _0x25c07b<=_0x25cfeb;},'ibRYf':function(_0x56ee40,_0x147ee5){return _0x56ee40&_0x147ee5;},'nfjcR':function(_0x4bacf0,_0x20b2ff){return _0x4bacf0&_0x20b2ff;},'YZlZb':function(_0x55ce9e,_0x8c067f){return _0x55ce9e<=_0x8c067f;},'ctWAk':function(_0x109607,_0x19cb68){return _0x109607&_0x19cb68;},'WhwIj':function(_0x54c57a,_0x3f40d5){return _0x54c57a>>_0x3f40d5;},'BKiTs':function(_0x2542fc,_0xcd0cd7){return _0x2542fc&_0xcd0cd7;}};if(_0x49b7e4<=0xff)return Buffer['from']([_0x49b7e4]);if(_0x45083e['QmpuG'](_0x49b7e4,0xffff))return Buffer['from']([_0x45083e[_0x53ff7c(0x13a)](_0x49b7e4>>0x8,0xff),_0x45083e['nfjcR'](_0x49b7e4,0xff)]);if(_0x45083e['YZlZb'](_0x49b7e4,0xffffff))return Buffer['from']([_0x45083e[_0x53ff7c(0x13a)](_0x49b7e4>>0x10,0xff),_0x45083e['ctWAk'](_0x45083e[_0x53ff7c(0x153)](_0x49b7e4,0x8),0xff),_0x49b7e4&0xff]);return Buffer[_0x53ff7c(0x13d)]([_0x49b7e4>>0x18&0xff,_0x45083e[_0x53ff7c(0x153)](_0x49b7e4,0x10)&0xff,_0x45083e[_0x53ff7c(0x156)](_0x49b7e4>>0x8,0xff),_0x49b7e4&0xff]);}function writeVint(_0x482de6,_0x4a55de){const _0x1cdf6f=_0x4f8e,_0x179b58={'susAc':function(_0x3c188c,_0x2c6e9f){return _0x3c188c||_0x2c6e9f;},'DRMYt':function(_0x4b8aed,_0x477f96){return _0x4b8aed*_0x477f96;},'EWZqL':function(_0x1ccdfe,_0x511c4c){return _0x1ccdfe-_0x511c4c;},'ueIhV':function(_0x176cb8,_0x2ba0b3){return _0x176cb8>=_0x2ba0b3;},'LHeSJ':function(_0x2cc7e5,_0x3d9b9b){return _0x2cc7e5&_0x3d9b9b;},'wzZky':function(_0x52976e,_0x5545ed){return _0x52976e/_0x5545ed;}};let _0x3eeae3=_0x179b58['susAc'](_0x4a55de,0x1);while(Math[_0x1cdf6f(0x14e)](0x2,_0x179b58['DRMYt'](0x7,_0x3eeae3))-0x2<_0x482de6)_0x3eeae3++;const _0x177ef3=Buffer['alloc'](_0x3eeae3);for(let _0xbb41de=_0x179b58['EWZqL'](_0x3eeae3,0x1);_0x179b58['ueIhV'](_0xbb41de,0x0);_0xbb41de--){_0x177ef3[_0xbb41de]=_0x179b58['LHeSJ'](_0x482de6,0xff),_0x482de6=Math['floor'](_0x179b58['wzZky'](_0x482de6,0x100));}return _0x177ef3[0x0]|=0x1<<_0x179b58['EWZqL'](0x8,_0x3eeae3),_0x177ef3;}function writeFloat64(_0x17669c){const _0x31ca7b=_0x4f8e,_0x5b8bb9=Buffer['alloc'](0x8);return _0x5b8bb9[_0x31ca7b(0x11e)](_0x17669c,0x0),_0x5b8bb9;}function writeVoid(_0x65d20d){const _0x285809=_0x4f8e,_0x30dd7b={'pDGZm':function(_0x3e3758,_0x589807){return _0x3e3758<=_0x589807;},'InsiU':function(_0x949ee4,_0x23a40b){return _0x949ee4-_0x23a40b;},'NYtzm':function(_0x425c8c,_0x2d4916){return _0x425c8c>=_0x2d4916;}};for(let _0x3ec1e2=0x1;_0x30dd7b['pDGZm'](_0x3ec1e2,0x8);_0x3ec1e2++){const _0x512577=_0x30dd7b['InsiU'](_0x30dd7b['InsiU'](_0x65d20d,0x1),_0x3ec1e2);if(_0x30dd7b['NYtzm'](_0x512577,0x0)&&_0x512577<=Math[_0x285809(0x14e)](0x2,0x7*_0x3ec1e2)-0x2)return Buffer[_0x285809(0x148)]([Buffer['from']([ID_VOID]),writeVint(_0x512577,_0x3ec1e2),Buffer['alloc'](_0x512577)]);}return Buffer['alloc'](0x0);}function findElement(_0x596193,_0xf3d008,_0x300be1,_0x3e73ac){const _0x4f2a4d=_0x4f8e,_0x368551={'wFYXr':function(_0x1927cb,_0x7b5990){return _0x1927cb+_0x7b5990;},'wFjrd':function(_0x3b6554,_0x278c58,_0x31848f){return _0x3b6554(_0x278c58,_0x31848f);}};let _0x4c6ca1=_0xf3d008;while(_0x4c6ca1<_0x300be1){const [_0x5495a7,_0x2900e2]=readId(_0x596193,_0x4c6ca1),[_0x3367da,_0x44feee]=readVint(_0x596193,_0x4c6ca1+_0x2900e2);if(_0x5495a7===_0x3e73ac)return{'offset':_0x4c6ca1,'idLen':_0x2900e2,'sizeLen':_0x44feee,'dataSize':_0x3367da,'dataOffset':_0x368551['wFYXr'](_0x4c6ca1+_0x2900e2,_0x44feee)};if(_0x368551['wFjrd'](isUnknownSize,_0x3367da,_0x44feee))break;_0x4c6ca1+=_0x368551['wFYXr'](_0x368551[_0x4f2a4d(0x138)](_0x2900e2,_0x44feee),_0x3367da);}return null;}function computeDurationMs(_0x2fdbf6,_0x474941){const _0x1e2247=_0x4f8e,_0x4b24c6={'iITPC':function(_0x5495a4,_0x3285fa){return _0x5495a4===_0x3285fa;},'kTPyR':function(_0x3e9c75,_0x4f303d){return _0x3e9c75!==_0x4f303d;},'iRYRI':function(_0x332dc6,_0x224aa7){return _0x332dc6+_0x224aa7;},'BwZXB':function(_0x368a5c,_0x593bc4){return _0x368a5c-_0x593bc4;},'kdJXT':function(_0x38e835,_0x542f9a,_0x4d1112){return _0x38e835(_0x542f9a,_0x4d1112);},'BlAfZ':function(_0x215970,_0x26e0ac){return _0x215970===_0x26e0ac;},'rSWEi':function(_0x4c5a7b,_0x39679e,_0x8ce183){return _0x4c5a7b(_0x39679e,_0x8ce183);},'tJUXr':function(_0x333326,_0x2a9c4f){return _0x333326+_0x2a9c4f;},'egLyF':function(_0x12d619,_0x2c11c1){return _0x12d619+_0x2c11c1;},'iXMVz':function(_0x4675ad,_0x47baaa){return _0x4675ad>=_0x47baaa;},'whuHp':function(_0x10356b,_0x1d15f2){return _0x10356b+_0x1d15f2;},'TvYJI':function(_0x3814b0,_0x416a17){return _0x3814b0>_0x416a17;},'CeTBO':function(_0x4004b2,_0x3d31c0){return _0x4004b2+_0x3d31c0;}};let _0x2249ea=0x0;const _0x13e9d5=Buffer[_0x1e2247(0x13d)]([0x1f,0x43,0xb6,0x75]);let _0x4642bc=_0x2fdbf6['indexOf'](_0x13e9d5);if(_0x4b24c6[_0x1e2247(0x14d)](_0x4642bc,-0x1))return 0x0;while(_0x4642bc<_0x2fdbf6['length']){const [_0x1bb945,_0x3b93a1]=readId(_0x2fdbf6,_0x4642bc);if(_0x4b24c6[_0x1e2247(0x120)](_0x1bb945,ID_CLUSTER))break;const [_0x41ff88,_0x4ae5d6]=readVint(_0x2fdbf6,_0x4642bc+_0x3b93a1),_0x48040c=_0x4b24c6['iRYRI'](_0x4642bc,_0x3b93a1)+_0x4ae5d6,_0x40db99=isUnknownSize(_0x41ff88,_0x4ae5d6);let _0x1a1de;if(_0x40db99){let _0x539e4c=_0x48040c;while(_0x539e4c<_0x4b24c6[_0x1e2247(0x126)](_0x2fdbf6['length'],0x4)){const [_0x1492d9,_0x38b590]=_0x4b24c6['kdJXT'](readId,_0x2fdbf6,_0x539e4c);if(_0x4b24c6['BlAfZ'](_0x1492d9,ID_CLUSTER)){_0x1a1de=_0x539e4c;break;}const [_0x21db74,_0x31d556]=readVint(_0x2fdbf6,_0x539e4c+_0x38b590);if(_0x4b24c6[_0x1e2247(0x14c)](isUnknownSize,_0x21db74,_0x31d556)){_0x1a1de=_0x2fdbf6[_0x1e2247(0x12e)];break;}_0x539e4c+=_0x4b24c6[_0x1e2247(0x143)](_0x38b590,_0x31d556)+_0x21db74;}_0x1a1de??=_0x2fdbf6[_0x1e2247(0x12e)];}else _0x1a1de=_0x4b24c6[_0x1e2247(0x137)](_0x48040c,_0x41ff88);let _0x45dc17=0x0,_0x59e743=_0x48040c;while(_0x59e743<_0x1a1de){const [_0x20c6c5,_0x24ec92]=readId(_0x2fdbf6,_0x59e743),[_0x48e7f8,_0x39ea57]=readVint(_0x2fdbf6,_0x4b24c6[_0x1e2247(0x143)](_0x59e743,_0x24ec92));if(_0x20c6c5===ID_TIMESTAMP)_0x45dc17=readUint(_0x2fdbf6,_0x4b24c6[_0x1e2247(0x139)](_0x59e743+_0x24ec92,_0x39ea57),_0x48e7f8);else{if(_0x20c6c5===ID_SIMPLE_BLOCK&&_0x4b24c6['iXMVz'](_0x48e7f8,0x4)){const _0x5a905c=_0x59e743+_0x24ec92+_0x39ea57,[,_0x2c46b9]=_0x4b24c6[_0x1e2247(0x12f)](readVint,_0x2fdbf6,_0x5a905c),_0x43cd1b=_0x2fdbf6['readInt16BE'](_0x5a905c+_0x2c46b9),_0x18e15b=_0x4b24c6['whuHp'](_0x45dc17,_0x43cd1b)*_0x474941/0xf4240;_0x4b24c6[_0x1e2247(0x150)](_0x18e15b,_0x2249ea)&&(_0x2249ea=_0x18e15b);}else{if(_0x20c6c5===ID_CLUSTER)break;}}if(isUnknownSize(_0x48e7f8,_0x39ea57))break;_0x59e743+=_0x4b24c6['CeTBO'](_0x24ec92,_0x39ea57)+_0x48e7f8;}_0x4642bc=_0x1a1de;}return _0x2249ea;}export function fixWebmDuration(_0x46627e,_0x2f8566){const _0x346707=_0x4f8e,_0x181398={'Htyrz':function(_0x4eb4e6,_0x46f6ab){return _0x4eb4e6(_0x46f6ab);},'nPNwb':function(_0x2e074e,_0xe917d2,_0x2382e9){return _0x2e074e(_0xe917d2,_0x2382e9);},'sILfU':function(_0x2307c9,_0x492940){return _0x2307c9+_0x492940;},'lfXad':function(_0x7d9468,_0x2bcf97){return _0x7d9468!==_0x2bcf97;},'diNhu':'Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','nrcZO':function(_0x4cc872,_0x44aef7){return _0x4cc872+_0x44aef7;},'jdiaj':function(_0x112c38,_0x5cfc7b){return _0x112c38+_0x5cfc7b;},'ufduu':function(_0xcd4482,_0x141e89){return _0xcd4482<_0x141e89;},'npAMR':function(_0xb94fee,_0x3162e3,_0x212b7c){return _0xb94fee(_0x3162e3,_0x212b7c);},'vJJkJ':function(_0x493798,_0x8ad422){return _0x493798===_0x8ad422;},'Vqddn':function(_0x478e4b,_0x374fa9){return _0x478e4b+_0x374fa9;},'LMKtm':function(_0x569676,_0x5e20fb){return _0x569676===_0x5e20fb;},'fsjXC':_0x346707(0x133),'YVVCT':function(_0x47cdb2,_0x18f6f8,_0x4194ed,_0x52fa96,_0x53ff41){return _0x47cdb2(_0x18f6f8,_0x4194ed,_0x52fa96,_0x53ff41);},'tDNJv':function(_0xeb03bd,_0x35e6f2,_0x332e67,_0x49f90e){return _0xeb03bd(_0x35e6f2,_0x332e67,_0x49f90e);},'LsYgt':function(_0x3ad648,_0x13d990){return _0x3ad648<=_0x13d990;},'tVrWE':function(_0x19b754,_0x3e49c7){return _0x19b754(_0x3e49c7);},'mdMEo':function(_0x220310,_0x157080){return _0x220310<_0x157080;},'MTCta':function(_0x3365ff,_0x45e5c0){return _0x3365ff<_0x45e5c0;},'DJoRA':function(_0x41df7c,_0x7c74a6,_0x40f652){return _0x41df7c(_0x7c74a6,_0x40f652);},'OKswM':function(_0x41263b,_0x1d23b6,_0x45d008,_0x8e1026,_0x134434,_0x426fe9,_0x142a11){return _0x41263b(_0x1d23b6,_0x45d008,_0x8e1026,_0x134434,_0x426fe9,_0x142a11);}},_0xdd76e9=_0x181398['Htyrz'](readFileSync,_0x46627e);let _0x56dd2a=0x0;const [_0x493240,_0x3fabb9]=_0x181398['nPNwb'](readId,_0xdd76e9,_0x56dd2a),[_0x2aa513,_0x5df63a]=readVint(_0xdd76e9,_0x56dd2a+_0x3fabb9);_0x56dd2a+=_0x181398[_0x346707(0x134)](_0x181398['sILfU'](_0x3fabb9,_0x5df63a),_0x2aa513);const [_0x15477c,_0x4f1f64]=readId(_0xdd76e9,_0x56dd2a);if(_0x181398['lfXad'](_0x15477c,ID_SEGMENT))return console['error'](_0x181398['diNhu']),![];const [,_0x3f7436]=readVint(_0xdd76e9,_0x56dd2a+_0x4f1f64),_0xe135a7=_0x181398['sILfU'](_0x181398['nrcZO'](_0x56dd2a,_0x4f1f64),_0x3f7436);let _0x28b089=_0xe135a7;const _0x218d99=Math[_0x346707(0x121)](_0xdd76e9['length'],_0x181398[_0x346707(0x123)](_0xe135a7,0x2710));let _0x49da45=null,_0x12dbe7=null;while(_0x181398[_0x346707(0x122)](_0x28b089,_0x218d99)){const [_0x5aefcf,_0x4ddaf1]=_0x181398[_0x346707(0x14a)](readId,_0xdd76e9,_0x28b089),[_0x34e1d0,_0x49ea1e]=readVint(_0xdd76e9,_0x28b089+_0x4ddaf1);_0x181398['vJJkJ'](_0x5aefcf,ID_VOID)&&!_0x49da45&&(_0x49da45={'offset':_0x28b089,'idLen':_0x4ddaf1,'sizeLen':_0x49ea1e,'dataSize':_0x34e1d0,'dataOffset':_0x181398[_0x346707(0x13c)](_0x28b089+_0x4ddaf1,_0x49ea1e)});if(_0x181398[_0x346707(0x11f)](_0x5aefcf,ID_INFO)){_0x12dbe7={'offset':_0x28b089,'idLen':_0x4ddaf1,'sizeLen':_0x49ea1e,'dataSize':_0x34e1d0,'dataOffset':_0x28b089+_0x4ddaf1+_0x49ea1e};break;}if(_0x5aefcf===ID_CLUSTER)break;if(isUnknownSize(_0x34e1d0,_0x49ea1e))break;_0x28b089+=_0x181398[_0x346707(0x125)](_0x4ddaf1,_0x49ea1e)+_0x34e1d0;}if(!_0x12dbe7)return console['error'](_0x181398[_0x346707(0x155)]),![];const _0x23bfa8=_0x181398['YVVCT'](findElement,_0xdd76e9,_0x12dbe7[_0x346707(0x127)],_0x181398[_0x346707(0x13c)](_0x12dbe7[_0x346707(0x127)],_0x12dbe7['dataSize']),ID_DURATION);if(_0x23bfa8)return![];const _0x1692ac=findElement(_0xdd76e9,_0x12dbe7['dataOffset'],_0x12dbe7[_0x346707(0x127)]+_0x12dbe7['dataSize'],ID_TIMESTAMP_SCALE);let _0x1b4d0d=0xf4240;_0x1692ac&&(_0x1b4d0d=_0x181398[_0x346707(0x142)](readUint,_0xdd76e9,_0x1692ac[_0x346707(0x127)],_0x1692ac['dataSize']));const _0x33893d=_0x181398[_0x346707(0x14a)](computeDurationMs,_0xdd76e9,_0x1b4d0d);if(_0x181398['LsYgt'](_0x33893d,0x0))return console[_0x346707(0x11c)]('Could\x20not\x20compute\x20duration'),![];const _0x462c9d=_0x33893d*0xf4240/_0x1b4d0d,_0x21d2b5=Buffer['concat']([_0x181398['Htyrz'](writeId,ID_DURATION),writeVint(0x8),_0x181398['tVrWE'](writeFloat64,_0x462c9d)]),_0x4757e2=_0x21d2b5['length'];if(!_0x49da45||_0x181398[_0x346707(0x131)](_0x49da45[_0x346707(0x141)],_0x12dbe7[_0x346707(0x141)])){if(_0x49da45){const _0x2efa61=_0x49da45[_0x346707(0x147)]+_0x49da45[_0x346707(0x135)]+_0x49da45[_0x346707(0x149)],_0x5b59c5=_0x2efa61-_0x4757e2;if(_0x181398['MTCta'](_0x5b59c5,0x2))return rewriteFile(_0xdd76e9,_0x12dbe7,_0x21d2b5,_0x1b4d0d,_0x33893d,_0x2f8566);const _0x31dfda=_0x12dbe7[_0x346707(0x149)]+_0x4757e2,_0xb78071=Buffer[_0x346707(0x148)]([writeId(ID_INFO),writeVint(_0x31dfda,_0x12dbe7['sizeLen'])]),_0xdf541c=_0xdd76e9['slice'](_0x12dbe7['dataOffset'],_0x181398[_0x346707(0x123)](_0x12dbe7['dataOffset'],_0x12dbe7['dataSize'])),_0x36c60d=writeVoid(_0x5b59c5),_0x191970=_0xdd76e9['slice'](0x0,_0x49da45[_0x346707(0x141)]),_0x41e155=_0xdd76e9['slice'](_0x12dbe7['dataOffset']+_0x12dbe7[_0x346707(0x149)]);return _0x181398['DJoRA'](writeFileSync,_0x2f8566,Buffer['concat']([_0x191970,_0x36c60d,_0xb78071,_0xdf541c,_0x21d2b5,_0x41e155])),!![];}}return _0x181398[_0x346707(0x14f)](rewriteFile,_0xdd76e9,_0x12dbe7,_0x21d2b5,_0x1b4d0d,_0x33893d,_0x2f8566);}function rewriteFile(_0xb7ff5c,_0x18755c,_0x446266,_0x3e477d,_0x58b3c2,_0x224b56){const _0x23a625=_0x4f8e,_0x1264b9={'fxAnY':function(_0x19754d,_0xf41a51){return _0x19754d+_0xf41a51;},'PnCZI':function(_0x40c24d,_0x5a7798){return _0x40c24d(_0x5a7798);},'AnFOz':function(_0x35514e,_0x3733e4){return _0x35514e+_0x3733e4;}},_0x3cc115=_0x1264b9['fxAnY'](_0x18755c['dataSize'],_0x446266['length']),_0x1ac975=Buffer[_0x23a625(0x148)]([writeId(ID_INFO),_0x1264b9[_0x23a625(0x144)](writeVint,_0x3cc115)]),_0x303986=_0x18755c['idLen']+_0x18755c['sizeLen'],_0x37c605=_0xb7ff5c[_0x23a625(0x154)](0x0,_0x18755c['offset']),_0x131ae5=_0xb7ff5c[_0x23a625(0x154)](_0x18755c['dataOffset'],_0x1264b9['AnFOz'](_0x18755c[_0x23a625(0x127)],_0x18755c[_0x23a625(0x149)])),_0x4b312c=_0xb7ff5c['slice'](_0x1264b9['fxAnY'](_0x18755c['offset'],_0x303986)+_0x18755c[_0x23a625(0x149)]);return writeFileSync(_0x224b56,Buffer['concat']([_0x37c605,_0x1ac975,_0x131ae5,_0x446266,_0x4b312c])),!![];}if(process['argv'][0x1]?.['endsWith'](_0x5c8da6(0x146))||process[_0x5c8da6(0x129)][0x1]?.['endsWith']('fixWebmDuration.js')){const input=process['argv'][0x2],output=process[_0x5c8da6(0x129)][0x3];(!input||!output)&&(console[_0x5c8da6(0x11c)](_0x5c8da6(0x12d)),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console['log']('Fixed:\x20'+output):console['log'](_0x5c8da6(0x13b));}
1
+ const _0x2da988=_0x2731;(function(_0x32d8e1,_0x31f910){const _0x518d73=_0x2731,_0x4fd285=_0x32d8e1();while(!![]){try{const _0x293810=parseInt(_0x518d73(0xc9))/0x1+-parseInt(_0x518d73(0xa5))/0x2*(parseInt(_0x518d73(0xe7))/0x3)+parseInt(_0x518d73(0xaf))/0x4+-parseInt(_0x518d73(0xc1))/0x5*(-parseInt(_0x518d73(0xe2))/0x6)+-parseInt(_0x518d73(0xad))/0x7+parseInt(_0x518d73(0xbd))/0x8*(-parseInt(_0x518d73(0xd6))/0x9)+parseInt(_0x518d73(0xac))/0xa*(-parseInt(_0x518d73(0xec))/0xb);if(_0x293810===_0x31f910)break;else _0x4fd285['push'](_0x4fd285['shift']());}catch(_0x1658d9){_0x4fd285['push'](_0x4fd285['shift']());}}}(_0x5781,0x3bfb1));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(_0x35b084,_0x2966e5){const _0x19e927=_0x2731,_0x27c7c6={'GYiWc':function(_0x3fb9be,_0x50c867){return _0x3fb9be>=_0x50c867;},'hhfEv':function(_0xf3a27b,_0x22250e){return _0xf3a27b<=_0x22250e;},'ZthGX':function(_0x39f1c9,_0x4234be){return _0x39f1c9&_0x4234be;},'tQeGn':function(_0xcf9d45,_0x4620d4){return _0xcf9d45+_0x4620d4;},'DzweO':function(_0x3c9925,_0x1384da){return _0x3c9925-_0x1384da;},'TbsUw':function(_0x4bdaf5,_0x25ad53){return _0x4bdaf5+_0x25ad53;}};if(_0x27c7c6['GYiWc'](_0x2966e5,_0x35b084[_0x19e927(0xa0)]))return[0x0,0x0];const _0x470754=_0x35b084[_0x2966e5];let _0x560566=0x1,_0x58058a=0x80;while(_0x27c7c6['hhfEv'](_0x560566,0x8)&&!_0x27c7c6['ZthGX'](_0x470754,_0x58058a)){_0x560566++,_0x58058a>>=0x1;}if(_0x27c7c6[_0x19e927(0xe8)](_0x2966e5,_0x560566)>_0x35b084[_0x19e927(0xa0)])return[0x0,0x0];let _0x143573=_0x470754&_0x27c7c6[_0x19e927(0xdd)](_0x58058a,0x1);for(let _0x2ab633=0x1;_0x2ab633<_0x560566;_0x2ab633++){_0x143573=_0x27c7c6[_0x19e927(0xe1)](_0x143573*0x100,_0x35b084[_0x27c7c6['tQeGn'](_0x2966e5,_0x2ab633)]);}return[_0x143573,_0x560566];}function readId(_0x1c7cde,_0x4c20c6){const _0x31c8e2=_0x2731,_0x21b276={'dcThX':function(_0x206629,_0x4439f2){return _0x206629>=_0x4439f2;},'dkdtM':function(_0x173465,_0x335438){return _0x173465>=_0x335438;},'bhqqL':function(_0x50a447,_0x397a4e){return _0x50a447>=_0x397a4e;},'iazOU':function(_0x527fb7,_0x57c09d){return _0x527fb7>=_0x57c09d;},'ZLSyg':function(_0x28315a,_0x275a23){return _0x28315a+_0x275a23;},'IBstL':function(_0x626c3d,_0x55fb6f){return _0x626c3d<_0x55fb6f;},'NQWxM':function(_0x4d3131,_0x4cd9af){return _0x4d3131+_0x4cd9af;}};if(_0x21b276['dcThX'](_0x4c20c6,_0x1c7cde[_0x31c8e2(0xa0)]))return[0x0,0x0];const _0x2a546b=_0x1c7cde[_0x4c20c6];let _0x5c1a23;if(_0x21b276[_0x31c8e2(0xba)](_0x2a546b,0x80))_0x5c1a23=0x1;else{if(_0x21b276[_0x31c8e2(0xe0)](_0x2a546b,0x40))_0x5c1a23=0x2;else{if(_0x2a546b>=0x20)_0x5c1a23=0x3;else{if(_0x21b276[_0x31c8e2(0xd8)](_0x2a546b,0x10))_0x5c1a23=0x4;else return[_0x2a546b,0x1];}}}if(_0x21b276[_0x31c8e2(0xcd)](_0x4c20c6,_0x5c1a23)>_0x1c7cde[_0x31c8e2(0xa0)])return[0x0,0x0];let _0x373453=0x0;for(let _0xed73c3=0x0;_0x21b276['IBstL'](_0xed73c3,_0x5c1a23);_0xed73c3++){_0x373453=_0x21b276['NQWxM'](_0x373453*0x100,_0x1c7cde[_0x4c20c6+_0xed73c3]);}return[_0x373453,_0x5c1a23];}function readUint(_0x494b4d,_0x1c3250,_0x65fcaa){const _0x4d1828=_0x2731,_0x4e3382={'OVZoy':function(_0x10689c,_0x5b8a89){return _0x10689c<_0x5b8a89;},'xqmHW':function(_0x438b35,_0x395d32){return _0x438b35+_0x395d32;},'meLoy':function(_0x4a7855,_0x493ee8){return _0x4a7855*_0x493ee8;}};let _0x1cfb9d=0x0;for(let _0x2c6940=0x0;_0x4e3382[_0x4d1828(0xeb)](_0x2c6940,_0x65fcaa);_0x2c6940++){_0x1cfb9d=_0x4e3382['xqmHW'](_0x4e3382[_0x4d1828(0xd0)](_0x1cfb9d,0x100),_0x494b4d[_0x1c3250+_0x2c6940]);}return _0x1cfb9d;}function isUnknownSize(_0x372197,_0x3361f1){const _0x1039fc=_0x2731,_0x44e5bb={'ENsKi':function(_0x2c3b66,_0x5d0aed){return _0x2c3b66-_0x5d0aed;}};return _0x372197===_0x44e5bb[_0x1039fc(0xc8)](Math[_0x1039fc(0xed)](0x2,0x7*_0x3361f1),0x1);}function writeId(_0x2c324a){const _0x1959d3=_0x2731,_0x147e94={'fJkSX':function(_0x1b5107,_0x7fb021){return _0x1b5107<=_0x7fb021;},'UilBt':function(_0x3e16cc,_0x23e788){return _0x3e16cc<=_0x23e788;},'wokak':function(_0x454781,_0x1d7bea){return _0x454781&_0x1d7bea;},'YYNgI':function(_0x120b29,_0x27e0bc){return _0x120b29>>_0x27e0bc;},'qmmzp':function(_0x412921,_0x23b8ff){return _0x412921>>_0x23b8ff;},'wXjyk':function(_0x83f7f9,_0x5d3fb8){return _0x83f7f9&_0x5d3fb8;},'qLeON':function(_0x1f4fe8,_0x20175b){return _0x1f4fe8>>_0x20175b;}};if(_0x147e94[_0x1959d3(0xda)](_0x2c324a,0xff))return Buffer['from']([_0x2c324a]);if(_0x147e94[_0x1959d3(0xd9)](_0x2c324a,0xffff))return Buffer[_0x1959d3(0xb3)]([_0x2c324a>>0x8&0xff,_0x147e94[_0x1959d3(0xa2)](_0x2c324a,0xff)]);if(_0x2c324a<=0xffffff)return Buffer['from']([_0x2c324a>>0x10&0xff,_0x147e94['wokak'](_0x147e94['YYNgI'](_0x2c324a,0x8),0xff),_0x147e94['wokak'](_0x2c324a,0xff)]);return Buffer[_0x1959d3(0xb3)]([_0x147e94[_0x1959d3(0xef)](_0x2c324a,0x18)&0xff,_0x2c324a>>0x10&0xff,_0x147e94[_0x1959d3(0xb5)](_0x147e94['qLeON'](_0x2c324a,0x8),0xff),_0x2c324a&0xff]);}function _0x2731(_0x18b459,_0x24be5a){_0x18b459=_0x18b459-0xa0;const _0x578109=_0x5781();let _0x2731b8=_0x578109[_0x18b459];return _0x2731b8;}function writeVint(_0x5e3c60,_0x403b75){const _0xbad81f=_0x2731,_0x3d3eae={'MxrOE':function(_0x32e90,_0x5be3dc){return _0x32e90<_0x5be3dc;},'VDfrV':function(_0xc1fa77,_0xa4c680){return _0xc1fa77*_0xa4c680;},'feDgL':function(_0x2b951f,_0x542420){return _0x2b951f>=_0x542420;}};let _0x3d2d9d=_0x403b75||0x1;while(_0x3d3eae['MxrOE'](Math[_0xbad81f(0xed)](0x2,_0x3d3eae[_0xbad81f(0xb8)](0x7,_0x3d2d9d))-0x2,_0x5e3c60))_0x3d2d9d++;const _0x39036a=Buffer['alloc'](_0x3d2d9d);for(let _0x2b7eaf=_0x3d2d9d-0x1;_0x3d3eae['feDgL'](_0x2b7eaf,0x0);_0x2b7eaf--){_0x39036a[_0x2b7eaf]=_0x5e3c60&0xff,_0x5e3c60=Math[_0xbad81f(0xab)](_0x5e3c60/0x100);}return _0x39036a[0x0]|=0x1<<0x8-_0x3d2d9d,_0x39036a;}function writeFloat64(_0x2911bd){const _0x3a3c62=Buffer['alloc'](0x8);return _0x3a3c62['writeDoubleBE'](_0x2911bd,0x0),_0x3a3c62;}function writeVoid(_0x474be0){const _0x26101c=_0x2731,_0x64adee={'tOdVV':function(_0x5c6319,_0x2c9d7f){return _0x5c6319<=_0x2c9d7f;},'GbcCY':function(_0x19fd9c,_0x44883f){return _0x19fd9c-_0x44883f;},'CPFOg':function(_0x1e6e3e,_0x17765c){return _0x1e6e3e-_0x17765c;}};for(let _0x2e3e0b=0x1;_0x64adee[_0x26101c(0xc5)](_0x2e3e0b,0x8);_0x2e3e0b++){const _0x348520=_0x64adee[_0x26101c(0xa6)](_0x64adee[_0x26101c(0xc0)](_0x474be0,0x1),_0x2e3e0b);if(_0x348520>=0x0&&_0x64adee[_0x26101c(0xc5)](_0x348520,Math[_0x26101c(0xed)](0x2,0x7*_0x2e3e0b)-0x2))return Buffer[_0x26101c(0xd1)]([Buffer['from']([ID_VOID]),writeVint(_0x348520,_0x2e3e0b),Buffer['alloc'](_0x348520)]);}return Buffer[_0x26101c(0xb9)](0x0);}function findElement(_0x3f6a79,_0x62c6d6,_0x53c971,_0x4898de){const _0x3ece12=_0x2731,_0x2f5604={'dELpC':function(_0x41b560,_0x4683b8){return _0x41b560<_0x4683b8;},'lbCsp':function(_0x1e8500,_0x5d9787,_0x373d84){return _0x1e8500(_0x5d9787,_0x373d84);},'agRtS':function(_0x49d4a4,_0x45847d){return _0x49d4a4+_0x45847d;},'zNVep':function(_0x18b7f9,_0x1c83fb){return _0x18b7f9+_0x1c83fb;}};let _0x425f76=_0x62c6d6;while(_0x2f5604[_0x3ece12(0xde)](_0x425f76,_0x53c971)){const [_0x36add7,_0x17a7fc]=_0x2f5604['lbCsp'](readId,_0x3f6a79,_0x425f76),[_0x3545af,_0x37841f]=readVint(_0x3f6a79,_0x2f5604[_0x3ece12(0xb2)](_0x425f76,_0x17a7fc));if(_0x36add7===_0x4898de)return{'offset':_0x425f76,'idLen':_0x17a7fc,'sizeLen':_0x37841f,'dataSize':_0x3545af,'dataOffset':_0x425f76+_0x17a7fc+_0x37841f};if(isUnknownSize(_0x3545af,_0x37841f))break;_0x425f76+=_0x2f5604['zNVep'](_0x2f5604['zNVep'](_0x17a7fc,_0x37841f),_0x3545af);}return null;}function computeDurationMs(_0x548ed6,_0x725113){const _0x11c7c4=_0x2731,_0x17ed5d={'mYzCm':function(_0x1b47e2,_0x23b8c1){return _0x1b47e2<_0x23b8c1;},'vkPcd':function(_0x30a8ac,_0x580436,_0x459934){return _0x30a8ac(_0x580436,_0x459934);},'MVjzZ':function(_0x37d5d7,_0x5a735a){return _0x37d5d7+_0x5a735a;},'cVSLo':function(_0x286ef0,_0x15d975){return _0x286ef0+_0x15d975;},'jnISe':function(_0x1626db,_0x10488e,_0x442d0f){return _0x1626db(_0x10488e,_0x442d0f);},'BWCHx':function(_0x25004c,_0x252a7a){return _0x25004c-_0x252a7a;},'OkVMX':function(_0x2b9de7,_0x17cb28){return _0x2b9de7===_0x17cb28;},'LuimS':function(_0x350de2,_0x4ddd91,_0x1a8700){return _0x350de2(_0x4ddd91,_0x1a8700);},'tVJbg':function(_0x52fd2b,_0x483279,_0x11736c,_0x43e768){return _0x52fd2b(_0x483279,_0x11736c,_0x43e768);},'SqvHU':function(_0x1227a6,_0x1458e5){return _0x1227a6===_0x1458e5;},'fwZaO':function(_0x31afb9,_0x2e1841){return _0x31afb9>=_0x2e1841;},'RoebA':function(_0x526eed,_0x16fefb){return _0x526eed/_0x16fefb;},'Tilow':function(_0x3d0fb3,_0x12e699){return _0x3d0fb3>_0x12e699;},'UXyga':function(_0x3b8869,_0x4f852c){return _0x3b8869+_0x4f852c;}};let _0x1dd5a5=0x0;const _0x51aab3=Buffer[_0x11c7c4(0xb3)]([0x1f,0x43,0xb6,0x75]);let _0x317e67=_0x548ed6[_0x11c7c4(0xbc)](_0x51aab3);if(_0x317e67===-0x1)return 0x0;while(_0x17ed5d['mYzCm'](_0x317e67,_0x548ed6[_0x11c7c4(0xa0)])){const [_0x3728c9,_0x3b98e2]=readId(_0x548ed6,_0x317e67);if(_0x3728c9!==ID_CLUSTER)break;const [_0x1bda21,_0x517f4f]=_0x17ed5d['vkPcd'](readVint,_0x548ed6,_0x17ed5d[_0x11c7c4(0xa8)](_0x317e67,_0x3b98e2)),_0x3715bb=_0x17ed5d['cVSLo'](_0x317e67,_0x3b98e2)+_0x517f4f,_0x1891dc=_0x17ed5d[_0x11c7c4(0xcf)](isUnknownSize,_0x1bda21,_0x517f4f);let _0x339d64;if(_0x1891dc){let _0x62915c=_0x3715bb;while(_0x62915c<_0x17ed5d[_0x11c7c4(0xdc)](_0x548ed6['length'],0x4)){const [_0x54ab0c,_0x424417]=readId(_0x548ed6,_0x62915c);if(_0x17ed5d[_0x11c7c4(0xa3)](_0x54ab0c,ID_CLUSTER)){_0x339d64=_0x62915c;break;}const [_0x2d5df3,_0xb459fa]=_0x17ed5d[_0x11c7c4(0xbf)](readVint,_0x548ed6,_0x62915c+_0x424417);if(isUnknownSize(_0x2d5df3,_0xb459fa)){_0x339d64=_0x548ed6['length'];break;}_0x62915c+=_0x17ed5d[_0x11c7c4(0xa8)](_0x17ed5d['MVjzZ'](_0x424417,_0xb459fa),_0x2d5df3);}_0x339d64??=_0x548ed6[_0x11c7c4(0xa0)];}else _0x339d64=_0x3715bb+_0x1bda21;let _0x26d622=0x0,_0x106d7e=_0x3715bb;while(_0x106d7e<_0x339d64){const [_0x4c8a1a,_0x440b5c]=readId(_0x548ed6,_0x106d7e),[_0x50d352,_0x2a419c]=readVint(_0x548ed6,_0x106d7e+_0x440b5c);if(_0x4c8a1a===ID_TIMESTAMP)_0x26d622=_0x17ed5d[_0x11c7c4(0xca)](readUint,_0x548ed6,_0x17ed5d['cVSLo'](_0x106d7e,_0x440b5c)+_0x2a419c,_0x50d352);else{if(_0x17ed5d[_0x11c7c4(0xce)](_0x4c8a1a,ID_SIMPLE_BLOCK)&&_0x17ed5d['fwZaO'](_0x50d352,0x4)){const _0x38f2b2=_0x17ed5d[_0x11c7c4(0xdf)](_0x106d7e,_0x440b5c)+_0x2a419c,[,_0x5ad280]=readVint(_0x548ed6,_0x38f2b2),_0x1e0253=_0x548ed6['readInt16BE'](_0x38f2b2+_0x5ad280),_0x263449=_0x17ed5d['RoebA']((_0x26d622+_0x1e0253)*_0x725113,0xf4240);_0x17ed5d[_0x11c7c4(0xae)](_0x263449,_0x1dd5a5)&&(_0x1dd5a5=_0x263449);}else{if(_0x4c8a1a===ID_CLUSTER)break;}}if(isUnknownSize(_0x50d352,_0x2a419c))break;_0x106d7e+=_0x17ed5d[_0x11c7c4(0xbb)](_0x440b5c+_0x2a419c,_0x50d352);}_0x317e67=_0x339d64;}return _0x1dd5a5;}export function fixWebmDuration(_0x1383be,_0x4d4672){const _0x4b8f66=_0x2731,_0xfcdbb0={'jWfjS':function(_0xd7382,_0x2602d1,_0x291cb5){return _0xd7382(_0x2602d1,_0x291cb5);},'uQamf':function(_0x42c3c3,_0x4ab364){return _0x42c3c3+_0x4ab364;},'nEiek':function(_0x35915d,_0x243bb5,_0x289f69){return _0x35915d(_0x243bb5,_0x289f69);},'IQxom':function(_0x180a28,_0x1a3299){return _0x180a28!==_0x1a3299;},'ncrue':'Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','JWznJ':function(_0x458230,_0x10719a){return _0x458230+_0x10719a;},'EEvqT':function(_0x3ff1ea,_0x26d874){return _0x3ff1ea<_0x26d874;},'MXFGq':function(_0xb51a9f,_0x391b1f,_0x1f94b7){return _0xb51a9f(_0x391b1f,_0x1f94b7);},'bpDQm':function(_0x3251be,_0x31836d){return _0x3251be+_0x31836d;},'SnnPu':function(_0x5f2b57,_0x760c0b){return _0x5f2b57===_0x760c0b;},'yuDPJ':function(_0x2dc4da,_0x5610c0){return _0x2dc4da===_0x5610c0;},'BXkrc':function(_0x379634,_0x77e21a){return _0x379634+_0x77e21a;},'zeTRK':function(_0x5f1233,_0x3af6a5){return _0x5f1233+_0x3af6a5;},'lhiEv':function(_0x1b0e94,_0x5c1810,_0x1b2146,_0x75b680,_0x239352){return _0x1b0e94(_0x5c1810,_0x1b2146,_0x75b680,_0x239352);},'anOAg':function(_0x379b38,_0x28a46f){return _0x379b38+_0x28a46f;},'YoLuD':function(_0x5e02db,_0x12ca17){return _0x5e02db+_0x12ca17;},'FAEVV':function(_0x5b704c,_0x425de7,_0x248d35,_0x1b42db){return _0x5b704c(_0x425de7,_0x248d35,_0x1b42db);},'UaoNp':function(_0x42be63,_0x5d0f0b,_0x2e148b){return _0x42be63(_0x5d0f0b,_0x2e148b);},'Zyzpw':function(_0x1cb43c,_0x2fe1a4){return _0x1cb43c<=_0x2fe1a4;},'bjjaX':function(_0x584b91,_0x330ba1){return _0x584b91*_0x330ba1;},'bUGvT':function(_0x1daa56,_0x4549ec){return _0x1daa56<_0x4549ec;},'acmQL':function(_0x443429,_0x4555e4,_0x56e704){return _0x443429(_0x4555e4,_0x56e704);},'sSNOB':function(_0x114862,_0x22949d){return _0x114862+_0x22949d;},'lLeIv':function(_0x4b8cf6,_0x3d880b){return _0x4b8cf6(_0x3d880b);},'fxGvd':function(_0x1cdfdb,_0x3c5b15,_0x7c1e62){return _0x1cdfdb(_0x3c5b15,_0x7c1e62);},'mNpiA':function(_0x145265,_0x2ff7d1,_0x1451a7,_0x3b3929,_0x3c0d96,_0x4a21e8,_0x1f8d80){return _0x145265(_0x2ff7d1,_0x1451a7,_0x3b3929,_0x3c0d96,_0x4a21e8,_0x1f8d80);}},_0x4dce1e=readFileSync(_0x1383be);let _0x1baac5=0x0;const [_0x5c92d7,_0x11c5d7]=readId(_0x4dce1e,_0x1baac5),[_0x1ce48f,_0x4f426a]=_0xfcdbb0['jWfjS'](readVint,_0x4dce1e,_0xfcdbb0['uQamf'](_0x1baac5,_0x11c5d7));_0x1baac5+=_0x11c5d7+_0x4f426a+_0x1ce48f;const [_0x1c7371,_0x353809]=_0xfcdbb0[_0x4b8f66(0xbe)](readId,_0x4dce1e,_0x1baac5);if(_0xfcdbb0[_0x4b8f66(0xe9)](_0x1c7371,ID_SEGMENT))return console[_0x4b8f66(0xe6)](_0xfcdbb0['ncrue']),![];const [,_0x16f84f]=_0xfcdbb0['jWfjS'](readVint,_0x4dce1e,_0x1baac5+_0x353809),_0x352ddd=_0xfcdbb0[_0x4b8f66(0xa7)](_0x1baac5+_0x353809,_0x16f84f);let _0xf11b0a=_0x352ddd;const _0x55a70c=Math[_0x4b8f66(0xaa)](_0x4dce1e['length'],_0x352ddd+0x2710);let _0x119a6c=null,_0x4e4401=null;while(_0xfcdbb0[_0x4b8f66(0xee)](_0xf11b0a,_0x55a70c)){const [_0x4b327c,_0x5cfbec]=readId(_0x4dce1e,_0xf11b0a),[_0x3417ef,_0x48ad8a]=_0xfcdbb0['MXFGq'](readVint,_0x4dce1e,_0xfcdbb0[_0x4b8f66(0xa4)](_0xf11b0a,_0x5cfbec));_0xfcdbb0['SnnPu'](_0x4b327c,ID_VOID)&&!_0x119a6c&&(_0x119a6c={'offset':_0xf11b0a,'idLen':_0x5cfbec,'sizeLen':_0x48ad8a,'dataSize':_0x3417ef,'dataOffset':_0xf11b0a+_0x5cfbec+_0x48ad8a});if(_0xfcdbb0[_0x4b8f66(0xb1)](_0x4b327c,ID_INFO)){_0x4e4401={'offset':_0xf11b0a,'idLen':_0x5cfbec,'sizeLen':_0x48ad8a,'dataSize':_0x3417ef,'dataOffset':_0xfcdbb0[_0x4b8f66(0xe4)](_0xfcdbb0[_0x4b8f66(0xd2)](_0xf11b0a,_0x5cfbec),_0x48ad8a)};break;}if(_0x4b327c===ID_CLUSTER)break;if(isUnknownSize(_0x3417ef,_0x48ad8a))break;_0xf11b0a+=_0xfcdbb0['zeTRK'](_0x5cfbec,_0x48ad8a)+_0x3417ef;}if(!_0x4e4401)return console['error']('Could\x20not\x20find\x20Info\x20element'),![];const _0xcc022b=_0xfcdbb0[_0x4b8f66(0xd3)](findElement,_0x4dce1e,_0x4e4401[_0x4b8f66(0xdb)],_0xfcdbb0['anOAg'](_0x4e4401[_0x4b8f66(0xdb)],_0x4e4401[_0x4b8f66(0xc2)]),ID_DURATION);if(_0xcc022b)return![];const _0xdfd70f=findElement(_0x4dce1e,_0x4e4401['dataOffset'],_0xfcdbb0[_0x4b8f66(0xb0)](_0x4e4401[_0x4b8f66(0xdb)],_0x4e4401[_0x4b8f66(0xc2)]),ID_TIMESTAMP_SCALE);let _0x32490f=0xf4240;_0xdfd70f&&(_0x32490f=_0xfcdbb0[_0x4b8f66(0xc7)](readUint,_0x4dce1e,_0xdfd70f['dataOffset'],_0xdfd70f['dataSize']));const _0x34c286=_0xfcdbb0[_0x4b8f66(0xc4)](computeDurationMs,_0x4dce1e,_0x32490f);if(_0xfcdbb0[_0x4b8f66(0xc6)](_0x34c286,0x0))return console['error']('Could\x20not\x20compute\x20duration'),![];const _0x33b2db=_0xfcdbb0['bjjaX'](_0x34c286,0xf4240)/_0x32490f,_0x3709b2=Buffer[_0x4b8f66(0xd1)]([writeId(ID_DURATION),writeVint(0x8),writeFloat64(_0x33b2db)]),_0x35e72c=_0x3709b2[_0x4b8f66(0xa0)];if(!_0x119a6c||_0x119a6c['offset']<_0x4e4401['offset']){if(_0x119a6c){const _0x48fe43=_0xfcdbb0[_0x4b8f66(0xb0)](_0x119a6c['idLen'],_0x119a6c[_0x4b8f66(0xd5)])+_0x119a6c['dataSize'],_0x23ff55=_0x48fe43-_0x35e72c;if(_0xfcdbb0[_0x4b8f66(0xa1)](_0x23ff55,0x2))return rewriteFile(_0x4dce1e,_0x4e4401,_0x3709b2,_0x32490f,_0x34c286,_0x4d4672);const _0x23247b=_0xfcdbb0[_0x4b8f66(0xd2)](_0x4e4401[_0x4b8f66(0xc2)],_0x35e72c),_0x8eaae2=Buffer['concat']([writeId(ID_INFO),_0xfcdbb0[_0x4b8f66(0xe5)](writeVint,_0x23247b,_0x4e4401['sizeLen'])]),_0x5b291f=_0x4dce1e['slice'](_0x4e4401[_0x4b8f66(0xdb)],_0xfcdbb0['sSNOB'](_0x4e4401[_0x4b8f66(0xdb)],_0x4e4401['dataSize'])),_0x5c6d73=_0xfcdbb0['lLeIv'](writeVoid,_0x23ff55),_0x505b1b=_0x4dce1e[_0x4b8f66(0xb6)](0x0,_0x119a6c['offset']),_0x4f13af=_0x4dce1e[_0x4b8f66(0xb6)](_0x4e4401[_0x4b8f66(0xdb)]+_0x4e4401[_0x4b8f66(0xc2)]);return _0xfcdbb0[_0x4b8f66(0xcc)](writeFileSync,_0x4d4672,Buffer[_0x4b8f66(0xd1)]([_0x505b1b,_0x5c6d73,_0x8eaae2,_0x5b291f,_0x3709b2,_0x4f13af])),!![];}}return _0xfcdbb0[_0x4b8f66(0xd7)](rewriteFile,_0x4dce1e,_0x4e4401,_0x3709b2,_0x32490f,_0x34c286,_0x4d4672);}function rewriteFile(_0x552f40,_0x4ae47c,_0x59be61,_0x2a7e9c,_0x13ffbf,_0x5574dc){const _0x694655=_0x2731,_0x5697d5={'QchBE':function(_0x9bd194,_0x27f4be){return _0x9bd194+_0x27f4be;},'GuElV':function(_0x5420f8,_0xe95d54){return _0x5420f8+_0xe95d54;}},_0x52c172=_0x5697d5['QchBE'](_0x4ae47c['dataSize'],_0x59be61['length']),_0x6c0b26=Buffer[_0x694655(0xd1)]([writeId(ID_INFO),writeVint(_0x52c172)]),_0xfd67fb=_0x5697d5['QchBE'](_0x4ae47c[_0x694655(0xcb)],_0x4ae47c[_0x694655(0xd5)]),_0x384377=_0x552f40[_0x694655(0xb6)](0x0,_0x4ae47c['offset']),_0x226fa1=_0x552f40['slice'](_0x4ae47c['dataOffset'],_0x5697d5['GuElV'](_0x4ae47c['dataOffset'],_0x4ae47c['dataSize'])),_0xd28d7f=_0x552f40[_0x694655(0xb6)](_0x5697d5['GuElV'](_0x5697d5['QchBE'](_0x4ae47c['offset'],_0xfd67fb),_0x4ae47c['dataSize']));return writeFileSync(_0x5574dc,Buffer[_0x694655(0xd1)]([_0x384377,_0x6c0b26,_0x226fa1,_0x59be61,_0xd28d7f])),!![];}function _0x5781(){const _0x2c7734=['1579977KNLjpg','Tilow','1145500cUHwPc','YoLuD','yuDPJ','agRtS','from','log','wXjyk','slice','exit','VDfrV','alloc','dkdtM','UXyga','indexOf','8mkKeGm','nEiek','LuimS','CPFOg','15SZHFyd','dataSize','endsWith','UaoNp','tOdVV','Zyzpw','FAEVV','ENsKi','369037SrQZGM','tVJbg','idLen','fxGvd','ZLSyg','SqvHU','jnISe','meLoy','concat','BXkrc','lhiEv','argv','sizeLen','864477IDWgEb','mNpiA','iazOU','UilBt','fJkSX','dataOffset','BWCHx','DzweO','dELpC','cVSLo','bhqqL','TbsUw','661806oQbstD','Fixed:\x20','uQamf','acmQL','error','456867fLvcHo','tQeGn','IQxom','fixWebmDuration.ts','OVZoy','77YVNesO','pow','EEvqT','qmmzp','length','bUGvT','wokak','OkVMX','bpDQm','2WhmlJg','GbcCY','JWznJ','MVjzZ','fixWebmDuration.js','min','floor','380830hCIRRj'];_0x5781=function(){return _0x2c7734;};return _0x5781();}if(process['argv'][0x1]?.[_0x2da988(0xc3)](_0x2da988(0xea))||process[_0x2da988(0xd4)][0x1]?.[_0x2da988(0xc3)](_0x2da988(0xa9))){const input=process[_0x2da988(0xd4)][0x2],output=process['argv'][0x3];(!input||!output)&&(console['error']('Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>'),process[_0x2da988(0xb7)](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0x2da988(0xb4)](_0x2da988(0xe3)+output):console['log']('File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.');}
@@ -1 +1 @@
1
- (function(_0x5a2bcd,_0x26ea6d){const _0x35bd16=_0x5ac6,_0x3a320b=_0x5a2bcd();while(!![]){try{const _0x1f033a=parseInt(_0x35bd16(0xc0))/0x1+-parseInt(_0x35bd16(0xb5))/0x2+parseInt(_0x35bd16(0xbf))/0x3*(parseInt(_0x35bd16(0xb7))/0x4)+parseInt(_0x35bd16(0xbe))/0x5*(-parseInt(_0x35bd16(0xbb))/0x6)+-parseInt(_0x35bd16(0xb9))/0x7+parseInt(_0x35bd16(0xba))/0x8+parseInt(_0x35bd16(0xb8))/0x9*(parseInt(_0x35bd16(0xbc))/0xa);if(_0x1f033a===_0x26ea6d)break;else _0x3a320b['push'](_0x3a320b['shift']());}catch(_0x456244){_0x3a320b['push'](_0x3a320b['shift']());}}}(_0x2923,0x1e615));import{execFile as _0x1d6539}from'child_process';function _0x2923(){const _0x4708cc=['69862EbuXmQ','ls-files','vBmSE','456542PDssLn','iIhDJ','815264aDniXP','108HtwweV','878864LULxUF','1867880FoDNKG','6bgSppD','55730THzBDV','cwd','478895ZzOuGL','3PvFVKz'];_0x2923=function(){return _0x4708cc;};return _0x2923();}import{promisify}from'util';function _0x5ac6(_0x1920f2,_0x32b022){_0x1920f2=_0x1920f2-0xb5;const _0x29232b=_0x2923();let _0x5ac672=_0x29232b[_0x1920f2];return _0x5ac672;}const execFile=promisify(_0x1d6539);export async function isPathGitTracked(_0x3326b8){const _0x465427=_0x5ac6,_0x650d7f={'vBmSE':function(_0x2114cd,_0x417d46,_0x501121,_0x4200d1){return _0x2114cd(_0x417d46,_0x501121,_0x4200d1);},'iIhDJ':_0x465427(0xc1)};try{return await _0x650d7f[_0x465427(0xc2)](execFile,'git',[_0x650d7f[_0x465427(0xb6)],'--error-unmatch',_0x3326b8],{'cwd':process[_0x465427(0xbd)]()}),!![];}catch{return![];}}
1
+ (function(_0x3a23f8,_0x240ef3){const _0x24726e=_0x2d23,_0x201867=_0x3a23f8();while(!![]){try{const _0x19ef53=-parseInt(_0x24726e(0xfb))/0x1*(-parseInt(_0x24726e(0xf8))/0x2)+-parseInt(_0x24726e(0xf6))/0x3+parseInt(_0x24726e(0xf3))/0x4*(parseInt(_0x24726e(0xf9))/0x5)+-parseInt(_0x24726e(0xf4))/0x6*(parseInt(_0x24726e(0x100))/0x7)+parseInt(_0x24726e(0xfa))/0x8+-parseInt(_0x24726e(0xf2))/0x9+-parseInt(_0x24726e(0xfc))/0xa*(-parseInt(_0x24726e(0xfe))/0xb);if(_0x19ef53===_0x240ef3)break;else _0x201867['push'](_0x201867['shift']());}catch(_0x3ab8cd){_0x201867['push'](_0x201867['shift']());}}}(_0x2d7c,0x41f82));function _0x2d23(_0x4d4909,_0x56e121){_0x4d4909=_0x4d4909-0xf1;const _0x2d7cf0=_0x2d7c();let _0x2d234e=_0x2d7cf0[_0x4d4909];return _0x2d234e;}import{execFile as _0x56551b}from'child_process';import{promisify}from'util';const execFile=promisify(_0x56551b);export async function isPathGitTracked(_0x28030a){const _0x5d414e=_0x2d23,_0x3fd8a5={'DPMBh':function(_0x47c5b9,_0x169e45,_0x2239a2,_0x428b9f){return _0x47c5b9(_0x169e45,_0x2239a2,_0x428b9f);},'knsqo':_0x5d414e(0xff)};try{return await _0x3fd8a5[_0x5d414e(0xf7)](execFile,_0x3fd8a5['knsqo'],[_0x5d414e(0xf5),_0x5d414e(0xf1),_0x28030a],{'cwd':process[_0x5d414e(0xfd)]()}),!![];}catch{return![];}}function _0x2d7c(){const _0x11f855=['--error-unmatch','2586519ZJAPFx','6344xKjNnx','21726OBkRIG','ls-files','1559715gMsvUz','DPMBh','386oLpVle','565qDAgxt','785888GxTasf','309pVMdjj','1843560BTblbt','cwd','66menzCR','git','707qOwsDS'];_0x2d7c=function(){return _0x11f855;};return _0x2d7c();}
@@ -1 +1 @@
1
- const _0x19b8b3=_0x4d8e;function _0xe463(){const _0x95cd37=['mZiXntv6AMHfyLa','mty2ogvjsxvXtG','r0Lusfvcx0vovG','Bhrbweu','Cgv3tee','zxvksLi','BhzgEui','rfjxuKG','mte3mJiWodHHtu9VzLq','n3nzC051DG','mJa3mtu3mfjtyxvtzW','r0vu','yxbWBhK','rwfRruS','ALnrr1O','vxDICMm','vMHKyNq','BwvZC2fNzq','uKfor0vsx0nmsv9ut0TftG','mtaZvej6sKT2','qMvHCMvYia','ruTmsey','u2TPBMW','kcGOlISPkYKRksSK','rgfKDMW','Dg9tDhjPBMC','ExbpBfK','mJG3odzSshLNB3y','uKnRv3C','tunOD1e','zw52','DMHnrM0','zg90qvy','lI90B2TLBLjLzNjLC2GUANm','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','C2vHCMnO','zevxrMS','ufDzr08','DxrMltG','u0vsCMm','rvPqs3e','mZiWnJuWofnWzufdvq','vgTQseO','y2XPlNr4Da','C2XJzxi','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','ywjVCNq','mtjSwfntD3O','mJm1ndiZmJfwC0Huu2W','mtqZnti0ng9oEuzXDG','DhjPBq','wK5Lv2y','B3nJqLy','veXhuha','C2TQrxy','ruvhwNK','l2fWAs92ms9Ty3aVBwu','C2LNBMfS','uevACeG','mJD3B0fSwMe','uMfQrvm','quHmzK4','uKHLvxK','lI4VBwnWqM9VDhn0CMfWlMPZ'];_0xe463=function(){return _0x95cd37;};return _0xe463();}(function(_0xe48f50,_0x11b386){const _0x1ec4e0=_0x4d8e,_0x44e1e9=_0xe48f50();while(!![]){try{const _0x17ba4a=parseInt(_0x1ec4e0(0x219))/0x1*(parseInt(_0x1ec4e0(0x221))/0x2)+parseInt(_0x1ec4e0(0x1ef))/0x3+-parseInt(_0x1ec4e0(0x1f7))/0x4+-parseInt(_0x1ec4e0(0x206))/0x5*(-parseInt(_0x1ec4e0(0x207))/0x6)+-parseInt(_0x1ec4e0(0x20f))/0x7*(parseInt(_0x1ec4e0(0x20e))/0x8)+-parseInt(_0x1ec4e0(0x201))/0x9*(-parseInt(_0x1ec4e0(0x210))/0xa)+-parseInt(_0x1ec4e0(0x1f6))/0xb*(parseInt(_0x1ec4e0(0x1f5))/0xc);if(_0x17ba4a===_0x11b386)break;else _0x44e1e9['push'](_0x44e1e9['shift']());}catch(_0x534d2a){_0x44e1e9['push'](_0x44e1e9['shift']());}}}(_0xe463,0xf33e1));const _0x487fd9=(function(){const _0xf88998=_0x4d8e,_0x13e615={'DRWRH':function(_0x459f57,_0x228167){return _0x459f57===_0x228167;},'lBlCQ':_0xf88998(0x21e)};let _0x17f37f=!![];return function(_0x2bbbbf,_0x130d47){const _0x5c0760=_0x17f37f?function(){const _0x28b25a=_0x4d8e;if(_0x13e615[_0x28b25a(0x20d)](_0x28b25a(0x21e),_0x13e615['lBlCQ'])){if(_0x130d47){const _0x4ff327=_0x130d47[_0x28b25a(0x212)](_0x2bbbbf,arguments);return _0x130d47=null,_0x4ff327;}}else return null;}:function(){};return _0x17f37f=![],_0x5c0760;};}()),_0x4c2161=_0x487fd9(this,function(){const _0x5a1017=_0x4d8e,_0x1d560b={'ZNeWf':_0x5a1017(0x21d)};return _0x4c2161[_0x5a1017(0x21f)]()[_0x5a1017(0x1e9)](_0x1d560b[_0x5a1017(0x1f9)])['toString']()['constructor'](_0x4c2161)[_0x5a1017(0x1e9)](_0x1d560b[_0x5a1017(0x1f9)]);});_0x4c2161();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x19b8b3(0x218),ENV_TOKEN_LEGACY='RANGER_MCP_TOKEN',TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x19b8b3(0x1f1)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,'refresh.txt');function isGitHubCI(){const _0x5b1d76=_0x19b8b3;return!!process[_0x5b1d76(0x224)][_0x5b1d76(0x208)];}async function writeToGitHubEnv(_0x28b9de,_0x3d8152){const _0x322317=_0x19b8b3,_0x270283={'SERrc':function(_0x44f298,_0x36d885,_0x21d93c){return _0x44f298(_0x36d885,_0x21d93c);}},_0x541c14=process[_0x322317(0x224)][_0x322317(0x208)];_0x541c14&&await _0x270283[_0x322317(0x1ed)](appendFile,_0x541c14,_0x28b9de+'='+_0x3d8152+'\x0a');}export async function storeToken(_0x3a94e8){const _0x56bbaf=_0x19b8b3,_0x2c204e={'jSQGZ':function(_0x12b580){return _0x12b580();},'EKLHF':function(_0x28df2c,_0x2e5c15,_0x1cfe6c){return _0x28df2c(_0x2e5c15,_0x1cfe6c);},'PEZpH':function(_0x29eb24,_0x3cb0f7,_0x19d72a){return _0x29eb24(_0x3cb0f7,_0x19d72a);},'skjEv':function(_0x2229a0,_0x3e65a9,_0x4a0172,_0x49fec3){return _0x2229a0(_0x3e65a9,_0x4a0172,_0x49fec3);}};_0x2c204e[_0x56bbaf(0x214)](isGitHubCI)?await _0x2c204e[_0x56bbaf(0x21b)](writeToGitHubEnv,ENV_TOKEN,_0x3a94e8):(await _0x2c204e[_0x56bbaf(0x200)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x2c204e[_0x56bbaf(0x1fc)](writeFile,TOKEN_PATH,_0x3a94e8,{'mode':0x180}));}export async function getToken(){const _0x161b29=_0x19b8b3,_0x4f7134={'RCkWw':function(_0x304475,_0x545c8d,_0x6ecd0f){return _0x304475(_0x545c8d,_0x6ecd0f);},'TLGPp':_0x161b29(0x215),'AHLfN':function(_0xc25a43){return _0xc25a43();},'TkjHJ':function(_0x779d4b,_0x296556){return _0x779d4b(_0x296556);},'Skinl':function(_0x334a09,_0x27922b){return _0x334a09(_0x27922b);},'lvFyB':_0x161b29(0x205),'euJJR':function(_0x956b3a,_0x4e41d9){return _0x956b3a instanceof _0x4e41d9;},'cZPIl':_0x161b29(0x1e7)};if(process[_0x161b29(0x224)][ENV_TOKEN])return process[_0x161b29(0x224)][ENV_TOKEN];if(process[_0x161b29(0x224)][ENV_TOKEN_LEGACY])return process[_0x161b29(0x224)][ENV_TOKEN_LEGACY];let _0x4ac6ed=null;try{_0x4ac6ed=(await _0x4f7134[_0x161b29(0x222)](readFile,TOKEN_PATH,_0x161b29(0x1ec)))[_0x161b29(0x1f8)]()||null;}catch{if(_0x4f7134[_0x161b29(0x1fb)]!==_0x4f7134[_0x161b29(0x1fb)]){if(_0x1b0e94){const _0xda7d7e=_0x4da283['apply'](_0xc63510,arguments);return _0x3912ec=null,_0xda7d7e;}}else{const _0x283e7b=await _0x4f7134['AHLfN'](tryRefreshToken);return _0x283e7b;}}if(!_0x4ac6ed)return null;const _0x2904cd=await _0x4f7134[_0x161b29(0x1f0)](checkTokenValid,_0x4ac6ed);if(_0x2904cd)return _0x4ac6ed;const _0xae451d=await _0x4f7134[_0x161b29(0x21c)](tryPromoteRefreshToken,_0x4ac6ed);if(_0xae451d)return _0xae451d;const _0x340e7e=await _0x4f7134['AHLfN'](tryRefreshToken);if(_0x340e7e)return _0x340e7e;const {getMcpAuthOrigin:_0x47d021,mcpBootstrap:_0x3c4bde}=await import(_0x4f7134[_0x161b29(0x20c)]),_0x43b97d=await _0x47d021();if(_0x43b97d)try{console['log']('Session\x20expired.\x20Re-authenticating\x20via\x20MCP\x20bootstrap...'),await _0x4f7134[_0x161b29(0x203)](_0x3c4bde);const _0x48a900=await _0x4f7134[_0x161b29(0x203)](tryRefreshToken);if(_0x48a900)return _0x48a900;}catch(_0x3355ea){const _0x22576f=_0x4f7134[_0x161b29(0x20b)](_0x3355ea,Error)?_0x3355ea[_0x161b29(0x217)]:_0x4f7134[_0x161b29(0x1f0)](String,_0x3355ea);throw new Error(_0x161b29(0x1f3)+_0x22576f+'\x0a'+_0x4f7134['cZPIl']);}throw new Error(_0x161b29(0x1e8));}async function checkTokenValid(_0x41fe9a){const _0xe7d50d=_0x19b8b3,_0x2c03c8={'dEWFk':function(_0x27853c,_0x233cb2){return _0x27853c+_0x233cb2;},'RHeUy':_0xe7d50d(0x1e7),'slcer':function(_0x4fdc88,_0x136404,_0x1dd959){return _0x4fdc88(_0x136404,_0x1dd959);},'ypOlY':'./environment.js','EEGZy':function(_0x2910da){return _0x2910da();},'MChwQ':_0xe7d50d(0x211),'PWYGO':_0xe7d50d(0x1fa)},_0x3ecf22=new AbortController(),_0x573d13=_0x2c03c8[_0xe7d50d(0x1f2)](setTimeout,()=>_0x3ecf22[_0xe7d50d(0x1f4)](),0x1388);try{const {getApiBaseUrl:_0x3bc19b}=await import(_0x2c03c8[_0xe7d50d(0x220)]),_0xb172ea=_0x2c03c8[_0xe7d50d(0x1fd)](_0x3bc19b),_0xfc22ad=await _0x2c03c8['slcer'](fetch,_0xb172ea+_0xe7d50d(0x1fe),{'method':_0x2c03c8[_0xe7d50d(0x223)],'headers':{'Authorization':_0xe7d50d(0x21a)+_0x41fe9a},'signal':_0x3ecf22[_0xe7d50d(0x1ff)]});return _0xfc22ad['ok'];}catch{if(_0x2c03c8[_0xe7d50d(0x1eb)]===_0x2c03c8[_0xe7d50d(0x1eb)])return!![];else{const _0x2481f7=_0x3b29cd instanceof _0x920acb?_0x10d31a[_0xe7d50d(0x217)]:_0x8cef7c(_0x2cd57c);throw new _0x50ce37(_0x2c03c8[_0xe7d50d(0x1ea)]('MCP\x20re-authentication\x20failed:\x20'+_0x2481f7+'\x0a',_0x2c03c8[_0xe7d50d(0x204)]));}}finally{clearTimeout(_0x573d13);}}async function tryRefreshToken(){const _0x169fcd=_0x19b8b3,_0x4df9b7={'EZPKq':_0x169fcd(0x1e6),'dotAV':function(_0x5b5ee3){return _0x5b5ee3();}},{refreshCliToken:_0x346b9f}=await import(_0x4df9b7[_0x169fcd(0x1ee)]);return _0x4df9b7[_0x169fcd(0x226)](_0x346b9f);}async function tryPromoteRefreshToken(_0x423699){const _0x1267f5=_0x19b8b3,_0x31dc71={'RajES':'./tokenRefresh.js','gSHAp':function(_0x16f3f1,_0x3912d2,_0x11ca34){return _0x16f3f1(_0x3912d2,_0x11ca34);}},{refreshPartnerCliToken:_0x41b3c1}=await import(_0x31dc71[_0x1267f5(0x202)]);return _0x31dc71['gSHAp'](_0x41b3c1,_0x423699,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x3906be={'DraUJ':function(_0x59ff39,_0x1975e7){return _0x59ff39(_0x1975e7);}};try{return await _0x3906be['DraUJ'](unlink,TOKEN_PATH),!![];}catch{return![];}}export async function storeRefreshToken(_0x1577cc){const _0x2df25e=_0x19b8b3,_0x4cac2c={'Vhdbt':function(_0x166949,_0x198ded,_0x1e356f,_0x4bcdbe){return _0x166949(_0x198ded,_0x1e356f,_0x4bcdbe);}};await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x4cac2c[_0x2df25e(0x216)](writeFile,REFRESH_TOKEN_PATH,_0x1577cc,{'mode':0x180});}export async function getRefreshToken(){const _0x27b016=_0x19b8b3,_0x25c3aa={'ltAXE':function(_0x433b14,_0x2bf169,_0x16bf93){return _0x433b14(_0x2bf169,_0x16bf93);},'EakEK':_0x27b016(0x1ec),'aSXmw':function(_0xd34ae2,_0x3f931f){return _0xd34ae2!==_0x3f931f;}};try{const _0x173a17=await _0x25c3aa[_0x27b016(0x209)](readFile,REFRESH_TOKEN_PATH,_0x25c3aa[_0x27b016(0x213)]);return _0x173a17['trim']()||null;}catch{return _0x25c3aa['aSXmw'](_0x27b016(0x225),_0x27b016(0x225))?![]:null;}}export async function deleteRefreshToken(){const _0x48ddad={'ieoFE':function(_0x58e865,_0x5a74f5){return _0x58e865(_0x5a74f5);}};try{return await _0x48ddad['ieoFE'](unlink,REFRESH_TOKEN_PATH),!![];}catch{return![];}}function _0x4d8e(_0x4ac0df,_0xace236){_0x4ac0df=_0x4ac0df-0x1e6;const _0x3a858e=_0xe463();let _0x4c2161=_0x3a858e[_0x4ac0df];if(_0x4d8e['phRbJp']===undefined){var _0x487fd9=function(_0x3abfd6){const _0x2564bb='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x17097f='',_0x3bed88='',_0xffd719=_0x17097f+_0x487fd9;for(let _0x561f61=0x0,_0x38d52b,_0x15e812,_0x5e4bb4=0x0;_0x15e812=_0x3abfd6['charAt'](_0x5e4bb4++);~_0x15e812&&(_0x38d52b=_0x561f61%0x4?_0x38d52b*0x40+_0x15e812:_0x15e812,_0x561f61++%0x4)?_0x17097f+=_0xffd719['charCodeAt'](_0x5e4bb4+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x38d52b>>(-0x2*_0x561f61&0x6)):_0x561f61:0x0){_0x15e812=_0x2564bb['indexOf'](_0x15e812);}for(let _0x300a1b=0x0,_0x5e35ae=_0x17097f['length'];_0x300a1b<_0x5e35ae;_0x300a1b++){_0x3bed88+='%'+('00'+_0x17097f['charCodeAt'](_0x300a1b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3bed88);};_0x4d8e['lJcvNF']=_0x487fd9,_0x4d8e['KLeylv']={},_0x4d8e['phRbJp']=!![];}const _0xe46355=_0x3a858e[0x0],_0x4d8e1a=_0x4ac0df+_0xe46355,_0x3489f2=_0x4d8e['KLeylv'][_0x4d8e1a];if(!_0x3489f2){const _0xb531af=function(_0xb0f66b){this['nLOnDg']=_0xb0f66b,this['RMJbeJ']=[0x1,0x0,0x0],this['BwuzZI']=function(){return'newState';},this['QvvKZE']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['qtWeKG']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0xb531af['prototype']['WodDpb']=function(){const _0xc435a5=new RegExp(this['QvvKZE']+this['qtWeKG']),_0x567025=_0xc435a5['test'](this['BwuzZI']['toString']())?--this['RMJbeJ'][0x1]:--this['RMJbeJ'][0x0];return this['IyWnKa'](_0x567025);},_0xb531af['prototype']['IyWnKa']=function(_0x20ff7e){if(!Boolean(~_0x20ff7e))return _0x20ff7e;return this['MZacyu'](this['nLOnDg']);},_0xb531af['prototype']['MZacyu']=function(_0x438590){for(let _0x30038f=0x0,_0x5aadca=this['RMJbeJ']['length'];_0x30038f<_0x5aadca;_0x30038f++){this['RMJbeJ']['push'](Math['round'](Math['random']())),_0x5aadca=this['RMJbeJ']['length'];}return _0x438590(this['RMJbeJ'][0x0]);},new _0xb531af(_0x4d8e)['WodDpb'](),_0x4c2161=_0x4d8e['lJcvNF'](_0x4c2161),_0x4d8e['KLeylv'][_0x4d8e1a]=_0x4c2161;}else _0x4c2161=_0x3489f2;return _0x4c2161;}export async function deleteAllCredentials(){const _0x41fd65=_0x19b8b3,_0x38a34e={'pewLA':function(_0x40ac72){return _0x40ac72();}};await _0x38a34e[_0x41fd65(0x20a)](deleteToken),await _0x38a34e[_0x41fd65(0x20a)](deleteRefreshToken);}
1
+ const _0x323987=_0x4843;(function(_0x145897,_0x168aac){const _0x1b19da=_0x4843,_0x4321bf=_0x145897();while(!![]){try{const _0x36a412=parseInt(_0x1b19da(0x1ae))/0x1+parseInt(_0x1b19da(0x1ad))/0x2+parseInt(_0x1b19da(0x1b5))/0x3+-parseInt(_0x1b19da(0x1c6))/0x4*(-parseInt(_0x1b19da(0x1b3))/0x5)+-parseInt(_0x1b19da(0x1af))/0x6*(-parseInt(_0x1b19da(0x1e5))/0x7)+parseInt(_0x1b19da(0x1a7))/0x8*(-parseInt(_0x1b19da(0x1b0))/0x9)+-parseInt(_0x1b19da(0x1e6))/0xa;if(_0x36a412===_0x168aac)break;else _0x4321bf['push'](_0x4321bf['shift']());}catch(_0x545052){_0x4321bf['push'](_0x4321bf['shift']());}}}(_0x4b0d,0x2f366));const _0x3ab002=(function(){const _0x5a0e8c={'VJaPD':'ygCPy'};let _0x5ca241=!![];return function(_0x214a6b,_0x15bbb5){const _0x38c954=_0x4843,_0x53d2f7={'eHBtw':_0x5a0e8c[_0x38c954(0x1a9)]},_0x4b2dda=_0x5ca241?function(){const _0x14e03d=_0x38c954;if(_0x15bbb5){if(_0x53d2f7['eHBtw']!==_0x53d2f7[_0x14e03d(0x1db)])return!![];else{const _0x2aaf52=_0x15bbb5[_0x14e03d(0x19e)](_0x214a6b,arguments);return _0x15bbb5=null,_0x2aaf52;}}}:function(){};return _0x5ca241=![],_0x4b2dda;};}()),_0x16562a=_0x3ab002(this,function(){const _0x4c09ff=_0x4843,_0x5c1734={'QOJri':_0x4c09ff(0x1d5)};return _0x16562a[_0x4c09ff(0x1c3)]()[_0x4c09ff(0x19d)](_0x5c1734[_0x4c09ff(0x1df)])[_0x4c09ff(0x1c3)]()[_0x4c09ff(0x1ba)](_0x16562a)[_0x4c09ff(0x19d)](_0x5c1734[_0x4c09ff(0x1df)]);});_0x16562a();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x323987(0x19f),ENV_TOKEN_LEGACY='RANGER_MCP_TOKEN',TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x323987(0x1a4)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x323987(0x1d8));function isGitHubCI(){const _0x3e3231=_0x323987;return!!process[_0x3e3231(0x1a3)]['GITHUB_ENV'];}async function writeToGitHubEnv(_0x32803c,_0x17ed28){const _0x3a0955=_0x323987,_0x6e892c={'xRaYf':'cRjFT','JhRpj':_0x3a0955(0x1c5)},_0x16b02a=process['env'][_0x3a0955(0x1c8)];if(_0x16b02a){if(_0x6e892c[_0x3a0955(0x1d0)]===_0x6e892c[_0x3a0955(0x1e1)])return!!_0x109358['env'][_0x3a0955(0x1c8)];else await appendFile(_0x16b02a,_0x32803c+'='+_0x17ed28+'\x0a');}}function _0x4b0d(){const _0x1bed11=['ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','qLvOzhO','zuHcDhC','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','r0DUuxe','sNjvqva','uu9kCMK','BfzUEwm','sMHsCgO','A3rYvgC','C2LNBMfS','suXQy0W','mtyXDxzHCNjh','mtaYmdC3mhvkAKHxwq','uNr3ve4','seXhrvq','zuzIu2m','Exjdvve','rxHTBhu','C2vHCMnO','yxbWBhK','uKfor0vsx0nmsv9ut0TftG','lI90B2TLBLjLzNjLC2GUANm','Bg9N','zNHpwMe','zw52','y2XPlNr4Da','C3HKAvG','qMvHCMvYia','mtm2q1LZvM5m','qvLZuMC','vKPHueq','zLnMDKe','BwHtCuK','zKjmz0K','mtm4nJK0t1PdyMzS','ndmZmuX0z25SAW','mZG3nZjoqLfMELe','mtK3mdGYBhHxANvU','A0vIsgO','uNHlzKC','ntvoufbgqLK','zKrHt0e','otiYota1rfjywKnw','vuPLue4','txrwCMG','zfDpCgK','rLDoz2W','y29UC3rYDwn0B3i','rNrHDMO','ywjVCNq','D0nwwLK','lI9LBNzPCM9UBwvUDc5QCW','C2zMwLa','C3Dzy0W','vMLkv1G','uhnPrg0','Dg9tDhjPBMC','l2fWAs92ms9Ty3aVBwu','Ew92rKG','ntaXmdrrA1rozfK','BfzAtgm','r0Lusfvcx0vovG','vxnHEeG','BeDlBhG','Ag1svum','rgz5D2q','D1zgCNG','sfHhywG','ufvLv3C','EfjHwwy','CxHLDxm','u3HJDK4','ALbxCxm','D0jxENq','kcGOlISPkYKRksSK','DhjPBq','yMnnz0O','CMvMCMvZAc50Ehq'];_0x4b0d=function(){return _0x1bed11;};return _0x4b0d();}export async function storeToken(_0x55171c){const _0xbaf621=_0x323987,_0x3e3dfb={'fDaOA':function(_0x5be670){return _0x5be670();},'ktrTg':function(_0xe472b6,_0x3f03f2,_0xdd69cc){return _0xe472b6(_0x3f03f2,_0xdd69cc);},'fBLgI':function(_0x439fdc,_0x2c1704,_0x491127,_0x42ce53){return _0x439fdc(_0x2c1704,_0x491127,_0x42ce53);}};_0x3e3dfb[_0xbaf621(0x1b4)](isGitHubCI)?await _0x3e3dfb[_0xbaf621(0x1e2)](writeToGitHubEnv,ENV_TOKEN,_0x55171c):(await _0x3e3dfb[_0xbaf621(0x1e2)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x3e3dfb[_0xbaf621(0x1ac)](writeFile,TOKEN_PATH,_0x55171c,{'mode':0x180}));}export async function getToken(){const _0x5b5d95=_0x323987,_0x960427={'lGKlx':function(_0x408fdd,_0xaa7207){return _0x408fdd(_0xaa7207);},'bfmxY':_0x5b5d95(0x1cd),'AYsRg':_0x5b5d95(0x1cb),'ILjcL':function(_0x4f8e55,_0x3ffcce){return _0x4f8e55!==_0x3ffcce;},'eFbSc':_0x5b5d95(0x1b7),'fSfvA':'utf-8','PsiDm':_0x5b5d95(0x1bb),'wBWzt':function(_0x12cb68){return _0x12cb68();},'LkBLo':function(_0x35645e,_0xc91d38){return _0x35645e(_0xc91d38);},'GGnQq':'../mcpBootstrap.js','jxgSN':function(_0x638cdd){return _0x638cdd();},'bcMgJ':_0x5b5d95(0x1cf),'sffZP':_0x5b5d95(0x1dc),'yrCUQ':function(_0x65c03e){return _0x65c03e();},'MFSOs':function(_0x1db9cd,_0x90b299){return _0x1db9cd instanceof _0x90b299;},'qxeus':function(_0x19e70e,_0x1baaba){return _0x19e70e(_0x1baaba);},'swYcL':function(_0x50cd1b,_0x3d7b24){return _0x50cd1b+_0x3d7b24;},'ViJWX':'Re-authorize\x20the\x20Ranger\x20MCP\x20connection,\x20then\x20retry.','UJePN':_0x5b5d95(0x1d9)};if(process[_0x5b5d95(0x1a3)][ENV_TOKEN])return process['env'][ENV_TOKEN];if(process[_0x5b5d95(0x1a3)][ENV_TOKEN_LEGACY]){if(_0x960427['bfmxY']===_0x960427[_0x5b5d95(0x1a8)]){if(_0x5e59c3){const _0x1607d5=_0x29dd95[_0x5b5d95(0x19e)](_0x34683b,arguments);return _0x3f9b3f=null,_0x1607d5;}}else return process[_0x5b5d95(0x1a3)][ENV_TOKEN_LEGACY];}let _0x318faa=null;try{if(_0x960427[_0x5b5d95(0x1e4)](_0x960427[_0x5b5d95(0x19a)],_0x5b5d95(0x1c7)))_0x318faa=(await readFile(TOKEN_PATH,_0x960427[_0x5b5d95(0x1aa)]))['trim']()||null;else return null;}catch{if(_0x960427[_0x5b5d95(0x1e4)](_0x5b5d95(0x1bb),_0x960427[_0x5b5d95(0x1c2)])){const _0x34c44d=_0x280cea?function(){if(_0x2e648b){const _0x4b581d=_0xe52b2d['apply'](_0x5b2686,arguments);return _0xb7c73d=null,_0x4b581d;}}:function(){};return _0x225391=![],_0x34c44d;}else{const _0x479ea0=await _0x960427[_0x5b5d95(0x1d4)](tryRefreshToken);return _0x479ea0;}}if(!_0x318faa)return null;const _0x3e3660=await _0x960427[_0x5b5d95(0x1ca)](checkTokenValid,_0x318faa);if(_0x3e3660)return _0x318faa;const _0x35b686=await _0x960427['LkBLo'](tryPromoteRefreshToken,_0x318faa);if(_0x35b686)return _0x35b686;const _0x2b314e=await tryRefreshToken();if(_0x2b314e)return _0x2b314e;const {getMcpAuthOrigin:_0x4eeeaa,mcpBootstrap:_0x2548c4}=await import(_0x960427[_0x5b5d95(0x1dd)]),_0xd39782=await _0x960427['jxgSN'](_0x4eeeaa);if(_0xd39782)try{if(_0x960427[_0x5b5d95(0x1d7)]!==_0x960427['bcMgJ'])_0x960427['lGKlx'](_0x5dacc0,_0x160a08);else{console[_0x5b5d95(0x1a1)](_0x960427[_0x5b5d95(0x1bf)]),await _0x960427['jxgSN'](_0x2548c4);const _0x487985=await _0x960427[_0x5b5d95(0x19b)](tryRefreshToken);if(_0x487985)return _0x487985;}}catch(_0x71a6d8){const _0xaeef32=_0x960427['MFSOs'](_0x71a6d8,Error)?_0x71a6d8['message']:_0x960427[_0x5b5d95(0x1d1)](String,_0x71a6d8);throw new Error(_0x960427[_0x5b5d95(0x1c0)]('MCP\x20re-authentication\x20failed:\x20'+_0xaeef32+'\x0a',_0x960427[_0x5b5d95(0x1c1)]));}throw new Error(_0x960427[_0x5b5d95(0x1b6)]);}async function checkTokenValid(_0x38adb2){const _0x1826ca=_0x323987,_0x1dccf2={'jPWqs':function(_0x463f8a,_0x3809b2,_0x1a60c4){return _0x463f8a(_0x3809b2,_0x1a60c4);},'Dfywd':_0x1826ca(0x1be),'JrUAP':'GET','sxdiX':function(_0x53b11f,_0x1553ff){return _0x53b11f!==_0x1553ff;},'wCVZY':_0x1826ca(0x1ab),'Exmlu':function(_0x25c769,_0x4421e7){return _0x25c769(_0x4421e7);}},_0x18d406=new AbortController(),_0x3090e2=_0x1dccf2['jPWqs'](setTimeout,()=>_0x18d406[_0x1826ca(0x1bc)](),0x1388);try{const {getApiBaseUrl:_0x2d9cd1}=await import(_0x1dccf2[_0x1826ca(0x1cc)]),_0x23979a=_0x2d9cd1(),_0x6ce962=await _0x1dccf2[_0x1826ca(0x1d3)](fetch,_0x23979a+_0x1826ca(0x1c4),{'method':_0x1dccf2[_0x1826ca(0x1de)],'headers':{'Authorization':_0x1826ca(0x1a6)+_0x38adb2},'signal':_0x18d406[_0x1826ca(0x1e3)]});return _0x6ce962['ok'];}catch{return!![];}finally{if(_0x1dccf2[_0x1826ca(0x1a5)](_0x1826ca(0x1e7),_0x1dccf2[_0x1826ca(0x1bd)]))_0x1dccf2[_0x1826ca(0x19c)](clearTimeout,_0x3090e2);else return _0x5660f7['env'][_0x481ed2];}}function _0x4843(_0x88e133,_0x451dd7){_0x88e133=_0x88e133-0x199;const _0x39ad7f=_0x4b0d();let _0x16562a=_0x39ad7f[_0x88e133];if(_0x4843['cfqqTC']===undefined){var _0x3ab002=function(_0x29b3df){const _0x359351='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x53ae9e='',_0x15a8ca='',_0x54ca61=_0x53ae9e+_0x3ab002;for(let _0xff5daa=0x0,_0x4f9535,_0x2a6269,_0x2bfd53=0x0;_0x2a6269=_0x29b3df['charAt'](_0x2bfd53++);~_0x2a6269&&(_0x4f9535=_0xff5daa%0x4?_0x4f9535*0x40+_0x2a6269:_0x2a6269,_0xff5daa++%0x4)?_0x53ae9e+=_0x54ca61['charCodeAt'](_0x2bfd53+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x4f9535>>(-0x2*_0xff5daa&0x6)):_0xff5daa:0x0){_0x2a6269=_0x359351['indexOf'](_0x2a6269);}for(let _0x4a3068=0x0,_0x20216f=_0x53ae9e['length'];_0x4a3068<_0x20216f;_0x4a3068++){_0x15a8ca+='%'+('00'+_0x53ae9e['charCodeAt'](_0x4a3068)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x15a8ca);};_0x4843['anCmqM']=_0x3ab002,_0x4843['gDpALp']={},_0x4843['cfqqTC']=!![];}const _0x4b0dc0=_0x39ad7f[0x0],_0x484376=_0x88e133+_0x4b0dc0,_0x278e9d=_0x4843['gDpALp'][_0x484376];if(!_0x278e9d){const _0x280cea=function(_0x528c53){this['ZajTeq']=_0x528c53,this['ZUVwzF']=[0x1,0x0,0x0],this['tafwyo']=function(){return'newState';},this['iQWlJh']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['HDPsmq']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x280cea['prototype']['EUXduH']=function(){const _0x493e96=new RegExp(this['iQWlJh']+this['HDPsmq']),_0x19a8c0=_0x493e96['test'](this['tafwyo']['toString']())?--this['ZUVwzF'][0x1]:--this['ZUVwzF'][0x0];return this['sXiNvx'](_0x19a8c0);},_0x280cea['prototype']['sXiNvx']=function(_0x149d81){if(!Boolean(~_0x149d81))return _0x149d81;return this['Ccnpoj'](this['ZajTeq']);},_0x280cea['prototype']['Ccnpoj']=function(_0x225391){for(let _0x2e648b=0x0,_0x24569e=this['ZUVwzF']['length'];_0x2e648b<_0x24569e;_0x2e648b++){this['ZUVwzF']['push'](Math['round'](Math['random']())),_0x24569e=this['ZUVwzF']['length'];}return _0x225391(this['ZUVwzF'][0x0]);},new _0x280cea(_0x4843)['EUXduH'](),_0x16562a=_0x4843['anCmqM'](_0x16562a),_0x4843['gDpALp'][_0x484376]=_0x16562a;}else _0x16562a=_0x278e9d;return _0x16562a;}async function tryRefreshToken(){const _0x11c9d3=_0x323987,_0x18b5c7={'SMOfu':_0x11c9d3(0x1a0),'wMbkw':function(_0x23f6bf){return _0x23f6bf();}},{refreshCliToken:_0x2acd15}=await import(_0x18b5c7['SMOfu']);return _0x18b5c7['wMbkw'](_0x2acd15);}async function tryPromoteRefreshToken(_0x4c9392){const _0x52d1e5=_0x323987,_0x341cfe={'FWNgl':function(_0xe92fa2,_0x57bdff,_0xbe720){return _0xe92fa2(_0x57bdff,_0xbe720);}},{refreshPartnerCliToken:_0x13648e}=await import('./tokenRefresh.js');return _0x341cfe[_0x52d1e5(0x1b9)](_0x13648e,_0x4c9392,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x2d9d0e=_0x323987,_0x1e70a5={'dWOpi':_0x2d9d0e(0x1d5),'RxKfG':function(_0x3b6fa7,_0x4506e5){return _0x3b6fa7===_0x4506e5;},'rCsUi':'IrwFx','lVnyc':'ShZDS','fxOZa':_0x2d9d0e(0x1da)};try{return _0x1e70a5[_0x2d9d0e(0x1b2)](_0x1e70a5['rCsUi'],_0x1e70a5['rCsUi'])?(await unlink(TOKEN_PATH),!![]):_0x8a42c8[_0x2d9d0e(0x1c3)]()[_0x2d9d0e(0x19d)](_0x2d9d0e(0x1d5))[_0x2d9d0e(0x1c3)]()[_0x2d9d0e(0x1ba)](_0x5aaa5e)[_0x2d9d0e(0x19d)](NnPUos[_0x2d9d0e(0x1b8)]);}catch{if(_0x1e70a5[_0x2d9d0e(0x1e0)]===_0x1e70a5[_0x2d9d0e(0x1a2)]){const _0x4326e7=_0x17208d['apply'](_0x481659,arguments);return _0x481274=null,_0x4326e7;}else return![];}}export async function storeRefreshToken(_0x4f3fa9){const _0x2a9942=_0x323987,_0x25055b={'UsaxH':function(_0x25b18a,_0x28379b,_0x5d3e44){return _0x25b18a(_0x28379b,_0x5d3e44);},'SxcvN':function(_0x5a78d9,_0x4f8269,_0x35ce08,_0x47574b){return _0x5a78d9(_0x4f8269,_0x35ce08,_0x47574b);}};await _0x25055b[_0x2a9942(0x1c9)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x25055b[_0x2a9942(0x1d2)](writeFile,REFRESH_TOKEN_PATH,_0x4f3fa9,{'mode':0x180});}export async function getRefreshToken(){const _0x480dfd=_0x323987,_0x56f139={'HLGET':function(_0x4907f2,_0x5c2e4d,_0x47ec29){return _0x4907f2(_0x5c2e4d,_0x47ec29);},'kEbHj':'utf-8'};try{const _0x5c0cb1=await _0x56f139[_0x480dfd(0x199)](readFile,REFRESH_TOKEN_PATH,_0x56f139[_0x480dfd(0x1b1)]);return _0x5c0cb1[_0x480dfd(0x1d6)]()||null;}catch{return null;}}export async function deleteRefreshToken(){const _0x4612a4={'TakYN':function(_0xd6096,_0x561d38){return _0xd6096(_0x561d38);}};try{return await _0x4612a4['TakYN'](unlink,REFRESH_TOKEN_PATH),!![];}catch{return![];}}export async function deleteAllCredentials(){const _0xd95249=_0x323987,_0x3c5737={'HXGah':function(_0x1f541d){return _0x1f541d();}};await _0x3c5737[_0xd95249(0x1ce)](deleteToken),await _0x3c5737[_0xd95249(0x1ce)](deleteRefreshToken);}
@@ -1 +1 @@
1
- const _0x1591cd=_0x115b;function _0x3e92(){const _0x2c32e7=['13229034nVthXV','bcNbM','2075152ZWOqLE','--help','map','profiles','9567RmXgKT','JyDfk','local','AWxdp','slice','\x20\x20\x20Ranger\x20no\x20longer\x20writes\x20to\x20these\x20paths.\x20Existing\x20sessions\x20there\x20still\x20work','6NfdXfH','\x20\x20\x20\x20\x20https://docs.ranger.net/main/concepts/profiles','hwoiG','AiyeD','use','34360SKgCWx','4169485YxOgao','\x20\x20\x20Delete\x20these\x20paths\x20after\x20you\x20have\x20re-auth-ed.','active-profile.txt','530010HhtUFu','9369IxofrJ','has','10219744hjzAOd','join','PlFGe','startsWith','Qpkar','bnDwj','start','790qmxntg','length','verify-feature','\x20\x20\x20For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:'];_0x3e92=function(){return _0x2c32e7;};return _0x3e92();}(function(_0x55d607,_0x50a924){const _0x9a348f=_0x115b,_0xe4d1e0=_0x55d607();while(!![]){try{const _0x49c21b=parseInt(_0x9a348f(0x156))/0x1+parseInt(_0x9a348f(0x13d))/0x2*(-parseInt(_0x9a348f(0x157))/0x3)+-parseInt(_0x9a348f(0x143))/0x4+-parseInt(_0x9a348f(0x153))/0x5*(parseInt(_0x9a348f(0x14d))/0x6)+-parseInt(_0x9a348f(0x141))/0x7+parseInt(_0x9a348f(0x159))/0x8+-parseInt(_0x9a348f(0x147))/0x9*(-parseInt(_0x9a348f(0x152))/0xa);if(_0x49c21b===_0x50a924)break;else _0xe4d1e0['push'](_0xe4d1e0['shift']());}catch(_0x48c47d){_0xe4d1e0['push'](_0xe4d1e0['shift']());}}}(_0x3e92,0xf0306));import{existsSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function detectLegacyPaths(){const _0x2cd6bc=_0x115b,_0x166ede={'PlFGe':function(_0x26b1b3){return _0x26b1b3();},'Qpkar':function(_0x2b498d){return _0x2b498d();},'JyDfk':function(_0x58e44e,_0x31fcba,_0x4c9a11){return _0x58e44e(_0x31fcba,_0x4c9a11);},'hwoiG':function(_0x2ab17d,_0x370d2c,_0x11820d){return _0x2ab17d(_0x370d2c,_0x11820d);}},_0x52cd89=_0x166ede[_0x2cd6bc(0x15b)](getRangerDir),_0x10464c=_0x166ede[_0x2cd6bc(0x15d)](getRangerHomeDir);return[join(_0x52cd89,_0x2cd6bc(0x149)),join(_0x52cd89,'ci'),_0x166ede[_0x2cd6bc(0x148)](join,_0x10464c,'local'),_0x166ede[_0x2cd6bc(0x14f)](join,_0x52cd89,_0x2cd6bc(0x155))]['filter'](_0x5aaade=>existsSync(_0x5aaade));}function flagFilePath(){const _0x18d008=_0x115b,_0x3c57df={'AWxdp':function(_0x5ba663,_0x2a01e9,_0x4ab200){return _0x5ba663(_0x2a01e9,_0x4ab200);},'bcNbM':function(_0x35c3f2){return _0x35c3f2();}},_0x20162c=new Date()['toISOString']()[_0x18d008(0x14b)](0x0,0xa);return _0x3c57df[_0x18d008(0x14a)](join,_0x3c57df[_0x18d008(0x142)](getRangerHomeDir),'.legacy-warning-'+_0x20162c);}function _0x115b(_0x582043,_0x414f55){_0x582043=_0x582043-0x13d;const _0x3e92ab=_0x3e92();let _0x115b75=_0x3e92ab[_0x582043];return _0x115b75;}export function showLegacyDeprecationWarning(){const _0x564ad3=_0x115b,_0x10764e={'bnDwj':function(_0x3ee57a){return _0x3ee57a();},'sGmBy':_0x564ad3(0x14c),'AiyeD':'\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20<name>','PXTmk':_0x564ad3(0x14e),'xHDcC':_0x564ad3(0x154),'sezuF':function(_0x4c7942,_0x47d1f5){return _0x4c7942+_0x47d1f5;},'ROmNj':function(_0x2719fd,_0x2be468,_0x419e4a,_0x24aa2d){return _0x2719fd(_0x2be468,_0x419e4a,_0x24aa2d);}},_0x25c5a6=_0x10764e[_0x564ad3(0x15e)](detectLegacyPaths);if(_0x25c5a6[_0x564ad3(0x13e)]===0x0)return;const _0x18959a=flagFilePath();if(existsSync(_0x18959a))return;const _0x58288b=['','⚠\x20\x20Legacy\x20Ranger\x20paths\x20detected\x20(read-only):',..._0x25c5a6[_0x564ad3(0x145)](_0x4a00e2=>'\x20\x20\x20\x20\x20'+_0x4a00e2),'',_0x10764e['sGmBy'],'\x20\x20\x20as\x20a\x20fallback.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:','',_0x10764e[_0x564ad3(0x150)],'',_0x564ad3(0x140),_0x10764e['PXTmk'],'',_0x10764e['xHDcC'],''];process['stderr']['write'](_0x10764e['sezuF'](_0x58288b[_0x564ad3(0x15a)]('\x0a'),'\x0a'));try{mkdirSync(getRangerHomeDir(),{'recursive':!![]}),_0x10764e['ROmNj'](writeFileSync,_0x18959a,'',{'mode':0x180});}catch{}}const PROFILE_TOUCHING_COMMANDS=new Set(['go','verify',_0x1591cd(0x13f),'profile',_0x1591cd(0x146),'setup','setup-ci',_0x1591cd(0x15f),_0x1591cd(0x151)]);export function shouldShowLegacyWarning(_0x5764cc){const _0x5c6b8e=_0x1591cd,_0x265eb4={'PcbZH':function(_0x55f93b,_0x35bc1a){return _0x55f93b<_0x35bc1a;}},_0x155eb3=_0x5764cc[0x2];if(!_0x155eb3)return![];if(_0x155eb3[_0x5c6b8e(0x15c)]('-'))return![];if(!PROFILE_TOUCHING_COMMANDS[_0x5c6b8e(0x158)](_0x155eb3))return![];for(let _0x412f72=0x3;_0x265eb4['PcbZH'](_0x412f72,_0x5764cc['length']);_0x412f72++){if(_0x5764cc[_0x412f72]===_0x5c6b8e(0x144)||_0x5764cc[_0x412f72]==='-h')return![];}return!![];}
1
+ const _0x354e61=_0x2a20;(function(_0x19059b,_0x154ddb){const _0x449863=_0x2a20,_0x18a32f=_0x19059b();while(!![]){try{const _0x3ebdb0=-parseInt(_0x449863(0xff))/0x1+-parseInt(_0x449863(0x111))/0x2+-parseInt(_0x449863(0x100))/0x3*(-parseInt(_0x449863(0x10d))/0x4)+parseInt(_0x449863(0xf4))/0x5*(-parseInt(_0x449863(0x10f))/0x6)+-parseInt(_0x449863(0xf2))/0x7+-parseInt(_0x449863(0x105))/0x8*(-parseInt(_0x449863(0x10b))/0x9)+parseInt(_0x449863(0x108))/0xa*(parseInt(_0x449863(0x10e))/0xb);if(_0x3ebdb0===_0x154ddb)break;else _0x18a32f['push'](_0x18a32f['shift']());}catch(_0x57fc28){_0x18a32f['push'](_0x18a32f['shift']());}}}(_0xafd2,0xcf8b3));import{existsSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function _0x2a20(_0x110d25,_0x44ef7b){_0x110d25=_0x110d25-0xf0;const _0xafd2d5=_0xafd2();let _0x2a206f=_0xafd2d5[_0x110d25];return _0x2a206f;}function detectLegacyPaths(){const _0x323092=_0x2a20,_0x30f1f7={'CUlCG':function(_0x193512){return _0x193512();},'jWDnT':function(_0x3c9b2b,_0x26d6da,_0x51e56a){return _0x3c9b2b(_0x26d6da,_0x51e56a);}},_0x32ac57=_0x30f1f7['CUlCG'](getRangerDir),_0x499e16=getRangerHomeDir();return[join(_0x32ac57,'local'),join(_0x32ac57,'ci'),_0x30f1f7['jWDnT'](join,_0x499e16,'local'),join(_0x32ac57,_0x323092(0x112))]['filter'](_0xb78731=>existsSync(_0xb78731));}function flagFilePath(){const _0x835df8=_0x2a20,_0x13013b={'pxyac':function(_0x2bb056,_0x38f6cc,_0x265c3a){return _0x2bb056(_0x38f6cc,_0x265c3a);},'ExOjs':function(_0x23cfff){return _0x23cfff();}},_0x45a0d9=new Date()['toISOString']()[_0x835df8(0x103)](0x0,0xa);return _0x13013b['pxyac'](join,_0x13013b['ExOjs'](getRangerHomeDir),_0x835df8(0x104)+_0x45a0d9);}export function showLegacyDeprecationWarning(){const _0x870461=_0x2a20,_0x499f92={'zSDQp':function(_0x275c57){return _0x275c57();},'BNgoI':_0x870461(0x106),'yrsMt':'\x20\x20\x20as\x20a\x20fallback.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:','orZda':_0x870461(0xf1),'kuZbq':_0x870461(0x109),'DUKeU':_0x870461(0x107),'jAyuH':function(_0x4821fc,_0x294f62,_0xe4cef4){return _0x4821fc(_0x294f62,_0xe4cef4);},'jllRW':function(_0x2efedf){return _0x2efedf();},'FLCNT':function(_0x4d786d,_0x4fcf97,_0x1bb758,_0x5124d9){return _0x4d786d(_0x4fcf97,_0x1bb758,_0x5124d9);}},_0x4d3c16=detectLegacyPaths();if(_0x4d3c16['length']===0x0)return;const _0x32aa7f=_0x499f92['zSDQp'](flagFilePath);if(existsSync(_0x32aa7f))return;const _0x4058f8=['',_0x870461(0x101),..._0x4d3c16['map'](_0x258a38=>_0x870461(0x110)+_0x258a38),'',_0x499f92['BNgoI'],_0x499f92[_0x870461(0xfb)],'',_0x499f92[_0x870461(0xf6)],'',_0x870461(0xfc),_0x499f92[_0x870461(0xfe)],'',_0x499f92[_0x870461(0x10a)],''];process[_0x870461(0xf0)][_0x870461(0x102)](_0x4058f8[_0x870461(0xf5)]('\x0a')+'\x0a');try{_0x499f92[_0x870461(0xfd)](mkdirSync,_0x499f92['jllRW'](getRangerHomeDir),{'recursive':!![]}),_0x499f92['FLCNT'](writeFileSync,_0x32aa7f,'',{'mode':0x180});}catch{}}const PROFILE_TOUCHING_COMMANDS=new Set(['go',_0x354e61(0x10c),'verify-feature','profile','profiles','setup','setup-ci','start','use']);function _0xafd2(){const _0x4ba2dc=['300YHZopK','\x20\x20\x20\x20\x20','410030yZoGQv','active-profile.txt','stderr','\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20<name>','8941499wTIzTf','startsWith','38375PtLpdT','join','orZda','length','--help','DhIPO','has','yrsMt','\x20\x20\x20For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:','jAyuH','kuZbq','283932RSsoNc','3665982Klskqn','⚠\x20\x20Legacy\x20Ranger\x20paths\x20detected\x20(read-only):','write','slice','.legacy-warning-','3345776fDHFII','\x20\x20\x20Ranger\x20no\x20longer\x20writes\x20to\x20these\x20paths.\x20Existing\x20sessions\x20there\x20still\x20work','\x20\x20\x20Delete\x20these\x20paths\x20after\x20you\x20have\x20re-auth-ed.','10jnKOOg','\x20\x20\x20\x20\x20https://docs.ranger.net/main/concepts/profiles','DUKeU','9TECDfl','verify','4HQmqlE','14959307VpMCQt'];_0xafd2=function(){return _0x4ba2dc;};return _0xafd2();}export function shouldShowLegacyWarning(_0x6e9746){const _0x2bf397=_0x354e61,_0x92b831={'DhIPO':function(_0x43d39a,_0x170fef){return _0x43d39a<_0x170fef;},'CKZnV':function(_0x47cf08,_0x406e31){return _0x47cf08===_0x406e31;}},_0x5d8496=_0x6e9746[0x2];if(!_0x5d8496)return![];if(_0x5d8496[_0x2bf397(0xf3)]('-'))return![];if(!PROFILE_TOUCHING_COMMANDS[_0x2bf397(0xfa)](_0x5d8496))return![];for(let _0x36cf24=0x3;_0x92b831[_0x2bf397(0xf9)](_0x36cf24,_0x6e9746[_0x2bf397(0xf7)]);_0x36cf24++){if(_0x6e9746[_0x36cf24]===_0x2bf397(0xf8)||_0x92b831['CKZnV'](_0x6e9746[_0x36cf24],'-h'))return![];}return!![];}
@@ -1 +1 @@
1
- (function(_0x27ce38,_0x348d98){const _0x4bee9a=_0x32b1,_0x1dd05b=_0x27ce38();while(!![]){try{const _0x34198a=-parseInt(_0x4bee9a(0x1a7))/0x1+-parseInt(_0x4bee9a(0x1a9))/0x2*(parseInt(_0x4bee9a(0x1af))/0x3)+-parseInt(_0x4bee9a(0x1a1))/0x4+-parseInt(_0x4bee9a(0x1b2))/0x5+parseInt(_0x4bee9a(0x1b3))/0x6+parseInt(_0x4bee9a(0x1ae))/0x7+parseInt(_0x4bee9a(0x199))/0x8;if(_0x34198a===_0x348d98)break;else _0x1dd05b['push'](_0x1dd05b['shift']());}catch(_0x5293ee){_0x1dd05b['push'](_0x1dd05b['shift']());}}}(_0x588e,0x423c5));const _0x190595=(function(){const _0x4a03fe=_0x32b1,_0x33f693={'zLcAZ':function(_0x3a8a06,_0x765335){return _0x3a8a06!==_0x765335;},'ugarX':_0x4a03fe(0x1aa),'AGcbP':'(((.+)+)+)+$'};let _0x2d4d81=!![];return function(_0x4377f1,_0x1ad8a2){const _0x3c8ef9=_0x4a03fe,_0x511d34={'qmrER':_0x33f693[_0x3c8ef9(0x19a)]},_0x58d951=_0x2d4d81?function(){const _0x4a6a1b=_0x3c8ef9;if(_0x33f693[_0x4a6a1b(0x1b9)](_0x4a6a1b(0x1b6),_0x33f693['ugarX'])){if(_0x1ad8a2){const _0x48f0ff=_0x1ad8a2[_0x4a6a1b(0x1b4)](_0x4377f1,arguments);return _0x1ad8a2=null,_0x48f0ff;}}else return _0x5dfa24[_0x4a6a1b(0x1b0)]()[_0x4a6a1b(0x198)](_0x511d34[_0x4a6a1b(0x1a4)])['toString']()[_0x4a6a1b(0x1a3)](_0x42e3c8)[_0x4a6a1b(0x198)](_0x511d34[_0x4a6a1b(0x1a4)]);}:function(){};return _0x2d4d81=![],_0x58d951;};}()),_0x4c28b5=_0x190595(this,function(){const _0x2c6e57=_0x32b1,_0x4b2a15={'rqdyv':_0x2c6e57(0x1a8)};return _0x4c28b5[_0x2c6e57(0x1b0)]()[_0x2c6e57(0x198)](_0x2c6e57(0x1a8))[_0x2c6e57(0x1b0)]()[_0x2c6e57(0x1a3)](_0x4c28b5)[_0x2c6e57(0x198)](_0x4b2a15[_0x2c6e57(0x1b8)]);});function _0x588e(){const _0x4d0d17=['B2LkzLK','s2DyAwG','EMHZAMK','AM9fzhC','t2nLAhi','mtG3odq2mgDPwKrHDG','DwvHv3e','y29UC3rYDwn0B3i','Cw1Yrvi','ywjVCNq','v1LTrfu','nZC4ntrvvgTWuwi','kcGOlISPkYKRksSK','ody5ogfWB0PTwG','AerrwKm','Dgv4Da','zxjYB3i','qMvHCMvYia','mJyWmZq2oe5ODerOyG','owLXA2TPzG','Dg9tDhjPBMC','ChfYsLK','mtm5ntGWyMTWt3D2','nda4mZCYBxD6Exzq','yxbWBhK','q0zOuKu','uwPszxe','zLfwzeS','CNfKExy','EKXJqvO','sfLYD0W','rMfPBgvKihrVigXVzYbZA2LSBcbPBNn0ywXSyxrPB246ia','C3rYAw5NAwz5','ue9tva','C2vHCMnO','mZm1nZK3nMnwDezjtq','quDJyLa','C2LNBMfS'];_0x588e=function(){return _0x4d0d17;};return _0x588e();}_0x4c28b5();function _0x32b1(_0x2d703a,_0x5b1a6b){_0x2d703a=_0x2d703a-0x197;const _0x3b5b9a=_0x588e();let _0x4c28b5=_0x3b5b9a[_0x2d703a];if(_0x32b1['TzFuEI']===undefined){var _0x190595=function(_0x471937){const _0x4ec13a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x58a76d='',_0x329faf='',_0x4407a8=_0x58a76d+_0x190595;for(let _0x24dea0=0x0,_0x55aff5,_0x200f14,_0x57b7fe=0x0;_0x200f14=_0x471937['charAt'](_0x57b7fe++);~_0x200f14&&(_0x55aff5=_0x24dea0%0x4?_0x55aff5*0x40+_0x200f14:_0x200f14,_0x24dea0++%0x4)?_0x58a76d+=_0x4407a8['charCodeAt'](_0x57b7fe+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x55aff5>>(-0x2*_0x24dea0&0x6)):_0x24dea0:0x0){_0x200f14=_0x4ec13a['indexOf'](_0x200f14);}for(let _0x6be651=0x0,_0x4cac8d=_0x58a76d['length'];_0x6be651<_0x4cac8d;_0x6be651++){_0x329faf+='%'+('00'+_0x58a76d['charCodeAt'](_0x6be651)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x329faf);};_0x32b1['CVyhax']=_0x190595,_0x32b1['jmhJdM']={},_0x32b1['TzFuEI']=!![];}const _0x588e48=_0x3b5b9a[0x0],_0x32b187=_0x2d703a+_0x588e48,_0x2d9b7c=_0x32b1['jmhJdM'][_0x32b187];if(!_0x2d9b7c){const _0x59c7e3=function(_0xcdd6c4){this['GUGcwu']=_0xcdd6c4,this['YwlalE']=[0x1,0x0,0x0],this['TZtLuU']=function(){return'newState';},this['hPlUAM']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['GcNYii']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x59c7e3['prototype']['NVMGom']=function(){const _0x5f4416=new RegExp(this['hPlUAM']+this['GcNYii']),_0x931a98=_0x5f4416['test'](this['TZtLuU']['toString']())?--this['YwlalE'][0x1]:--this['YwlalE'][0x0];return this['zHGMkd'](_0x931a98);},_0x59c7e3['prototype']['zHGMkd']=function(_0x5ac528){if(!Boolean(~_0x5ac528))return _0x5ac528;return this['SOPouo'](this['GUGcwu']);},_0x59c7e3['prototype']['SOPouo']=function(_0x431236){for(let _0x162867=0x0,_0xe4e977=this['YwlalE']['length'];_0x162867<_0xe4e977;_0x162867++){this['YwlalE']['push'](Math['round'](Math['random']())),_0xe4e977=this['YwlalE']['length'];}return _0x431236(this['YwlalE'][0x0]);},new _0x59c7e3(_0x32b1)['NVMGom'](),_0x4c28b5=_0x32b1['CVyhax'](_0x4c28b5),_0x32b1['jmhJdM'][_0x32b187]=_0x4c28b5;}else _0x4c28b5=_0x2d9b7c;return _0x4c28b5;}import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';export async function logLocalAgentInstallation(_0x1a99e4,_0x47ef0d,_0x579ab7){const _0x258b91=_0x32b1,_0x39a356={'HYrwL':function(_0x52d5c4,_0x1a63a2,_0x2c703a){return _0x52d5c4(_0x1a63a2,_0x2c703a);},'joEdw':function(_0x3b1f88,_0x3f76c4,_0x53ce96){return _0x3b1f88(_0x3f76c4,_0x53ce96);},'CFhRE':'application/json','bAjEx':function(_0x245279,_0x46a9d0){return _0x245279===_0x46a9d0;},'Ocehr':_0x258b91(0x19c),'zhsji':_0x258b91(0x1a6),'pqrJY':function(_0x2b3700,_0x9a9cfa){return _0x2b3700(_0x9a9cfa);},'HwWpn':_0x258b91(0x1a2),'fQVdK':'mHvXd'},_0x56007f=await getToken();if(!_0x56007f){if(_0x258b91(0x19d)==='QRgko')_0x2928e8(_0x46b630);else return;}const _0xd474e3=getApiBaseUrl(),_0x51d8d5=new AbortController(),_0xa3f42b=_0x39a356[_0x258b91(0x1ba)](setTimeout,()=>_0x51d8d5[_0x258b91(0x1a5)](),0x1388);let _0x26289c;try{_0x26289c=await _0x39a356[_0x258b91(0x19f)](fetch,_0xd474e3+'/api/v1/mcp/local-agent-installations',{'method':_0x258b91(0x197),'headers':{'Authorization':_0x258b91(0x1ad)+_0x56007f,'Content-Type':_0x39a356[_0x258b91(0x1b5)]},'body':JSON[_0x258b91(0x1bc)]({'skillName':_0x1a99e4,'cliVersion':_0x579ab7,'metadata':_0x47ef0d}),'signal':_0x51d8d5[_0x258b91(0x19b)]});}finally{if(_0x39a356['bAjEx'](_0x39a356[_0x258b91(0x1a0)],_0x39a356[_0x258b91(0x19e)]))return;else _0x39a356[_0x258b91(0x1b1)](clearTimeout,_0xa3f42b);}if(!_0x26289c['ok']){if(_0x39a356['HwWpn']!==_0x39a356[_0x258b91(0x1b7)]){const _0x49b650=await _0x26289c[_0x258b91(0x1ab)]();console[_0x258b91(0x1ac)](_0x258b91(0x1bb)+_0x49b650);}else{const _0xeb2f38=_0x59c7e3?function(){if(_0x162867){const _0x4ea48d=_0x32e315['apply'](_0x2c82c2,arguments);return _0x4ed751=null,_0x4ea48d;}}:function(){};return _0x431236=![],_0xeb2f38;}}}
1
+ (function(_0x3b52f9,_0x2973f9){const _0xda5e99=_0x1274,_0x9a7469=_0x3b52f9();while(!![]){try{const _0x35b428=parseInt(_0xda5e99(0xe7))/0x1*(-parseInt(_0xda5e99(0xdd))/0x2)+parseInt(_0xda5e99(0xd5))/0x3*(parseInt(_0xda5e99(0xf0))/0x4)+-parseInt(_0xda5e99(0xe9))/0x5+parseInt(_0xda5e99(0xf5))/0x6+-parseInt(_0xda5e99(0xd6))/0x7*(parseInt(_0xda5e99(0xe6))/0x8)+parseInt(_0xda5e99(0xe4))/0x9*(-parseInt(_0xda5e99(0xf6))/0xa)+parseInt(_0xda5e99(0xe8))/0xb*(parseInt(_0xda5e99(0xe0))/0xc);if(_0x35b428===_0x2973f9)break;else _0x9a7469['push'](_0x9a7469['shift']());}catch(_0x59f41e){_0x9a7469['push'](_0x9a7469['shift']());}}}(_0x130a,0x7702a));const _0x13908c=(function(){let _0x64a0d1=!![];return function(_0x2ce619,_0x5dee9e){const _0x3ce5d2={'jjReg':function(_0x479bfe,_0x4714c1){return _0x479bfe===_0x4714c1;}},_0x4a0ae9=_0x64a0d1?function(){const _0x257980=_0x1274;if(_0x5dee9e){if(_0x3ce5d2[_0x257980(0xd9)](_0x257980(0xf1),_0x257980(0xf1))){const _0x405314=_0x5dee9e[_0x257980(0xec)](_0x2ce619,arguments);return _0x5dee9e=null,_0x405314;}else{if(_0x3eae27){const _0x22e64e=_0xfabaeb[_0x257980(0xec)](_0x190fb7,arguments);return _0x1db95c=null,_0x22e64e;}}}}:function(){};return _0x64a0d1=![],_0x4a0ae9;};}()),_0x5e4202=_0x13908c(this,function(){const _0x16b52c=_0x1274,_0xc234bd={'pHXSR':_0x16b52c(0xd7)};return _0x5e4202[_0x16b52c(0xee)]()[_0x16b52c(0xdb)](_0xc234bd[_0x16b52c(0xde)])['toString']()[_0x16b52c(0xf2)](_0x5e4202)[_0x16b52c(0xdb)](_0xc234bd[_0x16b52c(0xde)]);});_0x5e4202();function _0x1274(_0x28a1a7,_0x4a957f){_0x28a1a7=_0x28a1a7-0xd5;const _0x4be15f=_0x130a();let _0x5e4202=_0x4be15f[_0x28a1a7];if(_0x1274['oVhQmu']===undefined){var _0x13908c=function(_0x3bca39){const _0x2c2794='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4f2fc3='',_0x32f9d1='',_0x35da37=_0x4f2fc3+_0x13908c;for(let _0x53ff3b=0x0,_0x3e240a,_0x409e10,_0x4d8b8a=0x0;_0x409e10=_0x3bca39['charAt'](_0x4d8b8a++);~_0x409e10&&(_0x3e240a=_0x53ff3b%0x4?_0x3e240a*0x40+_0x409e10:_0x409e10,_0x53ff3b++%0x4)?_0x4f2fc3+=_0x35da37['charCodeAt'](_0x4d8b8a+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x3e240a>>(-0x2*_0x53ff3b&0x6)):_0x53ff3b:0x0){_0x409e10=_0x2c2794['indexOf'](_0x409e10);}for(let _0x3fcaae=0x0,_0x542232=_0x4f2fc3['length'];_0x3fcaae<_0x542232;_0x3fcaae++){_0x32f9d1+='%'+('00'+_0x4f2fc3['charCodeAt'](_0x3fcaae)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x32f9d1);};_0x1274['htjXbf']=_0x13908c,_0x1274['aoaXdP']={},_0x1274['oVhQmu']=!![];}const _0x130af0=_0x4be15f[0x0],_0x12744c=_0x28a1a7+_0x130af0,_0x3c78b1=_0x1274['aoaXdP'][_0x12744c];if(!_0x3c78b1){const _0x4f580a=function(_0x497f48){this['nnORnc']=_0x497f48,this['yDEKmP']=[0x1,0x0,0x0],this['ErBaGU']=function(){return'newState';},this['WSrJoO']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['oCJOJb']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x4f580a['prototype']['soVgEu']=function(){const _0x2e8edd=new RegExp(this['WSrJoO']+this['oCJOJb']),_0x345786=_0x2e8edd['test'](this['ErBaGU']['toString']())?--this['yDEKmP'][0x1]:--this['yDEKmP'][0x0];return this['xzFwXz'](_0x345786);},_0x4f580a['prototype']['xzFwXz']=function(_0x2eefbc){if(!Boolean(~_0x2eefbc))return _0x2eefbc;return this['QqsWMP'](this['nnORnc']);},_0x4f580a['prototype']['QqsWMP']=function(_0x3fcd03){for(let _0x14150e=0x0,_0x2ec089=this['yDEKmP']['length'];_0x14150e<_0x2ec089;_0x14150e++){this['yDEKmP']['push'](Math['round'](Math['random']())),_0x2ec089=this['yDEKmP']['length'];}return _0x3fcd03(this['yDEKmP'][0x0]);},new _0x4f580a(_0x1274)['soVgEu'](),_0x5e4202=_0x1274['htjXbf'](_0x5e4202),_0x1274['aoaXdP'][_0x12744c]=_0x5e4202;}else _0x5e4202=_0x3c78b1;return _0x5e4202;}import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';function _0x130a(){const _0x3989c8=['mZqWyujrsxPn','otm1ndmWCMnIC29S','mJe0ndfVEKLLvwe','kcGOlISPkYKRksSK','rMfPBgvKihrVigXVzYbZA2LSBcbPBNn0ywXSyxrPB246ia','AMPszwC','yxbWBgLJyxrPB24VANnVBG','C2vHCMnO','se55why','mZeXmgr3BxzuBq','CeHyu1i','DeDmyxm','mta0ntCZnZzjsLnIEva','BKPns0C','ue9tva','qMvHCMvYia','mtKZoty4yK9YCenl','uvnitK4','mJa4offPuuPWsW','mtu0tNH3BuLS','mJjKq3zcC0S','mJGWoti5mhrgq1ftDa','C2LNBMfS','vwznt0S','yxbWBhK','Dgv4Da','Dg9tDhjPBMC','ywjVCNq','nfPXDMfXEa','ALPUAgS','y29UC3rYDwn0B3i','C3rYAw5NAwz5','zxjYB3i','ndu5nZC5ngPHq0HQDG'];_0x130a=function(){return _0x3989c8;};return _0x130a();}export async function logLocalAgentInstallation(_0x5ee516,_0xd4faeb,_0x47b208){const _0x4a61f2=_0x1274,_0x5556c5={'HNyXv':function(_0x509bd7){return _0x509bd7();},'nJMKG':_0x4a61f2(0xe5),'nYuey':'fOfTK','tGLas':function(_0x3f482d,_0x32c923,_0x5c9889){return _0x3f482d(_0x32c923,_0x5c9889);},'UfMOK':_0x4a61f2(0xe2),'FlLZh':_0x4a61f2(0xda),'kwBAA':function(_0x5ac77e,_0x4bd53c){return _0x5ac77e(_0x4bd53c);}},_0x50af64=await _0x5556c5[_0x4a61f2(0xdc)](getToken);if(!_0x50af64){if(_0x5556c5[_0x4a61f2(0xe1)]!==_0x5556c5['nYuey'])return;else{const _0x7f3fc4=_0x10dc62[_0x4a61f2(0xec)](_0x534428,arguments);return _0x72e9da=null,_0x7f3fc4;}}const _0x530822=_0x5556c5['HNyXv'](getApiBaseUrl),_0x3e3ff7=new AbortController(),_0x4fcdf5=_0x5556c5[_0x4a61f2(0xdf)](setTimeout,()=>_0x3e3ff7[_0x4a61f2(0xef)](),0x1388);let _0x2db636;try{_0x2db636=await _0x5556c5[_0x4a61f2(0xdf)](fetch,_0x530822+'/api/v1/mcp/local-agent-installations',{'method':_0x5556c5[_0x4a61f2(0xeb)],'headers':{'Authorization':_0x4a61f2(0xe3)+_0x50af64,'Content-Type':_0x5556c5['FlLZh']},'body':JSON[_0x4a61f2(0xf3)]({'skillName':_0x5ee516,'cliVersion':_0x47b208,'metadata':_0xd4faeb}),'signal':_0x3e3ff7[_0x4a61f2(0xea)]});}finally{_0x5556c5['kwBAA'](clearTimeout,_0x4fcdf5);}if(!_0x2db636['ok']){const _0x815bef=await _0x2db636[_0x4a61f2(0xed)]();console[_0x4a61f2(0xf4)](_0x4a61f2(0xd8)+_0x815bef);}}
@@ -1 +1 @@
1
- (function(_0x38f36a,_0x4fff8e){const _0x4c5cdc=_0x5973,_0x3b5cec=_0x38f36a();while(!![]){try{const _0x5e67c9=parseInt(_0x4c5cdc(0x158))/0x1*(-parseInt(_0x4c5cdc(0x151))/0x2)+parseInt(_0x4c5cdc(0x14c))/0x3+-parseInt(_0x4c5cdc(0x142))/0x4+-parseInt(_0x4c5cdc(0x14a))/0x5*(-parseInt(_0x4c5cdc(0x14f))/0x6)+parseInt(_0x4c5cdc(0x14e))/0x7*(-parseInt(_0x4c5cdc(0x14b))/0x8)+parseInt(_0x4c5cdc(0x147))/0x9*(parseInt(_0x4c5cdc(0x156))/0xa)+parseInt(_0x4c5cdc(0x150))/0xb*(parseInt(_0x4c5cdc(0x146))/0xc);if(_0x5e67c9===_0x4fff8e)break;else _0x3b5cec['push'](_0x3b5cec['shift']());}catch(_0x533742){_0x3b5cec['push'](_0x3b5cec['shift']());}}}(_0x1a77,0xde409));import{needsTunnel}from'./cloudProfileSession.js';function originIdentity(_0x2122bc){try{const _0x4933eb=new URL(_0x2122bc);return _0x4933eb['protocol']+'//'+_0x4933eb['host'];}catch{return undefined;}}function _0x1a77(){const _0x4f217e=['4321GCpDBT','domains','tDCRf','cLFHB','push','3640112RADNOn','GiRsu','127.0.0.1','key','5194344dUOcMk','9MVLiTD','environments','hostname','5GVYxCI','416536eBaBJv','4244712qOapNk','defaultEnvironmentKey','175EQjMbM','3400134oTbcRV','11TwqOUi','482OfHYhT','DiqSS','localhost','protocol','vkRcV','17489540DByYNZ','CdPDT'];_0x1a77=function(){return _0x4f217e;};return _0x1a77();}export function matchAuthEnvironmentExact(_0x19d9cb,_0x3c99b1){const _0x5f283f=_0x5973,_0x296e8f={'DiqSS':function(_0x438d67,_0x1d30be){return _0x438d67(_0x1d30be);}};if(!_0x3c99b1||!_0x3c99b1[_0x5f283f(0x148)])return undefined;const _0x313087=_0x296e8f[_0x5f283f(0x152)](originIdentity,_0x19d9cb);if(!_0x313087)return undefined;for(const [_0x4c3cc3,_0x368b0e]of Object['entries'](_0x3c99b1['environments'])){for(const _0x937a50 of _0x368b0e[_0x5f283f(0x13e)]??[]){const _0x200e31=_0x296e8f[_0x5f283f(0x152)](originIdentity,_0x937a50);if(_0x200e31&&_0x200e31===_0x313087)return _0x4c3cc3;}}return undefined;}export function matchAuthEnvironmentByHost(_0x3d5bd1,_0x2803f9){const _0x3faa78=_0x5973,_0x302ee9={'CdPDT':function(_0xd2a2ee,_0x35b8f4){return _0xd2a2ee===_0x35b8f4;},'fvIhT':function(_0x1b3659,_0x56dd08){return _0x1b3659===_0x56dd08;},'dnZHv':_0x3faa78(0x153),'GfTHJ':_0x3faa78(0x144),'cLFHB':function(_0x21306a,_0x30c307){return _0x21306a===_0x30c307;},'Iqmei':function(_0x32eec2,_0x385415){return _0x32eec2>_0x385415;}};if(!_0x2803f9||!_0x2803f9['environments'])return undefined;let _0x1c17b2,_0x556546;try{const _0x56637c=new URL(_0x3d5bd1);_0x1c17b2=_0x56637c[_0x3faa78(0x154)]+'//'+_0x56637c[_0x3faa78(0x149)],_0x556546=_0x56637c['hostname'];}catch{return undefined;}if(_0x302ee9['fvIhT'](_0x556546,_0x302ee9['dnZHv'])||_0x556546===_0x302ee9['GfTHJ'])return undefined;const _0x58478b=[];for(const [_0x5d1eea,_0x5f5ab0]of Object['entries'](_0x2803f9[_0x3faa78(0x148)])){const _0x2ed762=(_0x5f5ab0[_0x3faa78(0x13e)]??[])['some'](_0x5cf501=>{const _0x19876d=_0x3faa78;try{const _0xb160aa=new URL(_0x5cf501);return _0x302ee9[_0x19876d(0x157)](_0xb160aa['protocol']+'//'+_0xb160aa[_0x19876d(0x149)],_0x1c17b2);}catch{return![];}});if(_0x2ed762)_0x58478b[_0x3faa78(0x141)](_0x5d1eea);}if(_0x302ee9[_0x3faa78(0x140)](_0x58478b['length'],0x1))return{'key':_0x58478b[0x0]};if(_0x302ee9['Iqmei'](_0x58478b['length'],0x1))return{'ambiguous':_0x58478b};return undefined;}function _0x5973(_0x1bcdbf,_0x26daab){_0x1bcdbf=_0x1bcdbf-0x13e;const _0x1a77ec=_0x1a77();let _0x59738b=_0x1a77ec[_0x1bcdbf];return _0x59738b;}export function matchAuthEnvironment(_0x3389d8,_0x1044bb){const _0x5f5985=_0x5973,_0xf3af6f={'DVopu':function(_0xdc2009,_0x4de189,_0x5283fd){return _0xdc2009(_0x4de189,_0x5283fd);},'tDCRf':_0x5f5985(0x145),'GiRsu':function(_0x3d1ef2,_0x35337c){return _0x3d1ef2 in _0x35337c;},'KdXfT':'ambiguous','vkRcV':function(_0x21b575,_0x506987){return _0x21b575(_0x506987);}};if(!_0x1044bb||!_0x1044bb['environments'])return undefined;const _0x4af62d=matchAuthEnvironmentExact(_0x3389d8,_0x1044bb);if(_0x4af62d)return _0x4af62d;const _0xbde723=_0xf3af6f['DVopu'](matchAuthEnvironmentByHost,_0x3389d8,_0x1044bb);if(_0xbde723&&_0xf3af6f[_0x5f5985(0x13f)]in _0xbde723)return _0xbde723[_0x5f5985(0x145)];if(_0xbde723&&_0xf3af6f[_0x5f5985(0x143)](_0xf3af6f['KdXfT'],_0xbde723))return undefined;if(_0xf3af6f[_0x5f5985(0x155)](needsTunnel,_0x3389d8))return undefined;if(_0x1044bb['defaultEnvironmentKey']&&_0x1044bb[_0x5f5985(0x148)][_0x1044bb[_0x5f5985(0x14d)]])return _0x1044bb[_0x5f5985(0x14d)];return undefined;}
1
+ (function(_0x454f74,_0x379f50){const _0x999703=_0x2356,_0x535572=_0x454f74();while(!![]){try{const _0x52aa8c=parseInt(_0x999703(0xb2))/0x1+-parseInt(_0x999703(0xb5))/0x2+parseInt(_0x999703(0xb9))/0x3+-parseInt(_0x999703(0xc1))/0x4+-parseInt(_0x999703(0xba))/0x5+parseInt(_0x999703(0xb4))/0x6+-parseInt(_0x999703(0xbb))/0x7;if(_0x52aa8c===_0x379f50)break;else _0x535572['push'](_0x535572['shift']());}catch(_0x54cb83){_0x535572['push'](_0x535572['shift']());}}}(_0x451e,0x5054c));function _0x451e(){const _0x1a6791=['127.0.0.1','HerUr','hostname','hdhYd','554663SGrPfA','defaultEnvironmentKey','3023364RJprxb','306126TegHsW','protocol','entries','Ktegn','336186MrbYVf','1518460TrAXBj','1347227vczmuh','environments','length','host','vKYML','key','769468bZHvGa','localhost','push'];_0x451e=function(){return _0x1a6791;};return _0x451e();}import{needsTunnel}from'./cloudProfileSession.js';function _0x2356(_0x593c24,_0xfceffd){_0x593c24=_0x593c24-0xb0;const _0x451e29=_0x451e();let _0x23564e=_0x451e29[_0x593c24];return _0x23564e;}function originIdentity(_0x190509){const _0x2fdf6f=_0x2356;try{const _0x7fc995=new URL(_0x190509);return _0x7fc995['protocol']+'//'+_0x7fc995[_0x2fdf6f(0xbe)];}catch{return undefined;}}export function matchAuthEnvironmentExact(_0x33b649,_0x3378e2){const _0x4ea409=_0x2356;if(!_0x3378e2||!_0x3378e2['environments'])return undefined;const _0x55dfa0=originIdentity(_0x33b649);if(!_0x55dfa0)return undefined;for(const [_0x41e6c5,_0x20a9f7]of Object[_0x4ea409(0xb7)](_0x3378e2[_0x4ea409(0xbc)])){for(const _0x4c2180 of _0x20a9f7['domains']??[]){const _0x3f6f86=originIdentity(_0x4c2180);if(_0x3f6f86&&_0x3f6f86===_0x55dfa0)return _0x41e6c5;}}return undefined;}export function matchAuthEnvironmentByHost(_0x14086a,_0x3b0bc3){const _0x4f40b9=_0x2356,_0x292283={'hdhYd':function(_0xf5f62e,_0x266408){return _0xf5f62e===_0x266408;},'GAaLW':_0x4f40b9(0xc2),'HerUr':_0x4f40b9(0xc4)};if(!_0x3b0bc3||!_0x3b0bc3['environments'])return undefined;let _0x296965,_0x1dff1c;try{const _0x37482c=new URL(_0x14086a);_0x296965=_0x37482c['protocol']+'//'+_0x37482c[_0x4f40b9(0xb0)],_0x1dff1c=_0x37482c[_0x4f40b9(0xb0)];}catch{return undefined;}if(_0x1dff1c===_0x292283['GAaLW']||_0x1dff1c===_0x292283[_0x4f40b9(0xc5)])return undefined;const _0x581dd7=[];for(const [_0x50b2ce,_0x54de8e]of Object['entries'](_0x3b0bc3[_0x4f40b9(0xbc)])){const _0x27274a=(_0x54de8e['domains']??[])['some'](_0x56ab17=>{const _0x1b691d=_0x4f40b9;try{const _0x5d6206=new URL(_0x56ab17);return _0x292283[_0x1b691d(0xb1)](_0x5d6206[_0x1b691d(0xb6)]+'//'+_0x5d6206[_0x1b691d(0xb0)],_0x296965);}catch{return![];}});if(_0x27274a)_0x581dd7[_0x4f40b9(0xc3)](_0x50b2ce);}if(_0x581dd7[_0x4f40b9(0xbd)]===0x1)return{'key':_0x581dd7[0x0]};if(_0x581dd7[_0x4f40b9(0xbd)]>0x1)return{'ambiguous':_0x581dd7};return undefined;}export function matchAuthEnvironment(_0x22834a,_0x50528f){const _0x5e17c4=_0x2356,_0x345d5d={'nfviM':function(_0x46c302,_0x104a47,_0x164a28){return _0x46c302(_0x104a47,_0x164a28);},'Ktegn':function(_0x2df55b,_0x4b775c){return _0x2df55b in _0x4b775c;},'vKYML':'ambiguous','rObPl':function(_0x1b4ced,_0x346897){return _0x1b4ced(_0x346897);}};if(!_0x50528f||!_0x50528f[_0x5e17c4(0xbc)])return undefined;const _0x2b2163=_0x345d5d['nfviM'](matchAuthEnvironmentExact,_0x22834a,_0x50528f);if(_0x2b2163)return _0x2b2163;const _0x1d47f6=matchAuthEnvironmentByHost(_0x22834a,_0x50528f);if(_0x1d47f6&&_0x345d5d[_0x5e17c4(0xb8)](_0x5e17c4(0xc0),_0x1d47f6))return _0x1d47f6['key'];if(_0x1d47f6&&_0x345d5d['Ktegn'](_0x345d5d[_0x5e17c4(0xbf)],_0x1d47f6))return undefined;if(_0x345d5d['rObPl'](needsTunnel,_0x22834a))return undefined;if(_0x50528f['defaultEnvironmentKey']&&_0x50528f['environments'][_0x50528f[_0x5e17c4(0xb3)]])return _0x50528f[_0x5e17c4(0xb3)];return undefined;}
@@ -1 +1 @@
1
- (function(_0x4acf7a,_0x2ed82a){const _0x2555fc=_0x5155,_0x22ea6f=_0x4acf7a();while(!![]){try{const _0x4ef36a=-parseInt(_0x2555fc(0xca))/0x1*(parseInt(_0x2555fc(0xfb))/0x2)+-parseInt(_0x2555fc(0xd1))/0x3*(parseInt(_0x2555fc(0xee))/0x4)+-parseInt(_0x2555fc(0xd3))/0x5+-parseInt(_0x2555fc(0xf0))/0x6*(parseInt(_0x2555fc(0xf8))/0x7)+parseInt(_0x2555fc(0xf1))/0x8+parseInt(_0x2555fc(0xda))/0x9*(-parseInt(_0x2555fc(0xf6))/0xa)+-parseInt(_0x2555fc(0xc0))/0xb*(-parseInt(_0x2555fc(0xdf))/0xc);if(_0x4ef36a===_0x2ed82a)break;else _0x22ea6f['push'](_0x22ea6f['shift']());}catch(_0x47a779){_0x22ea6f['push'](_0x22ea6f['shift']());}}}(_0x33a0,0x3957b));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(_0xc53a42){const _0x58324a=_0x5155,_0x132b26={'ovLqk':_0x58324a(0xf5),'VDZbW':function(_0x266d32,_0x507636){return _0x266d32!==_0x507636;}};return typeof _0xc53a42===_0x132b26[_0x58324a(0xe8)]&&_0x132b26['VDZbW'](_0xc53a42,null);}function isImageBlock(_0x1d5d51){const _0x51d67f=_0x5155,_0x29744d={'peoIM':function(_0x272ac6,_0x2b6767){return _0x272ac6(_0x2b6767);},'tWaFm':function(_0xa55116,_0x4f39b9){return _0xa55116===_0x4f39b9;},'OeHPa':_0x51d67f(0xd7)};return _0x29744d[_0x51d67f(0xcc)](isRecord,_0x1d5d51)&&_0x29744d['tWaFm'](_0x1d5d51['type'],_0x29744d['OeHPa']);}function isDataUrl(_0x262377){const _0x458c0e=_0x5155,_0x274e9f={'QVMFv':'data:'};return _0x262377['startsWith'](_0x274e9f[_0x458c0e(0xd5)]);}function parseDataUrl(_0x80c5a0){const _0x1b6fe0=_0x5155,_0x15c51d={'epzkE':function(_0x58c707,_0x2f4788){return _0x58c707(_0x2f4788);}},_0x1f4f36=/^data:([^;]+);base64,(.+)$/['exec'](_0x80c5a0);if(!_0x1f4f36)return null;const _0xad1e78=_0x1f4f36[0x1][_0x1b6fe0(0xe1)]();if(!_0x15c51d[_0x1b6fe0(0x101)](isValidMediaType,_0xad1e78))return null;return{'data':_0x1f4f36[0x2],'mediaType':_0xad1e78};}function _0x5155(_0x329e42,_0x529067){_0x329e42=_0x329e42-0xba;const _0x33a0cc=_0x33a0();let _0x51555d=_0x33a0cc[_0x329e42];return _0x51555d;}function isValidMediaType(_0x54280c){const _0x31d536=_0x5155,_0x58610e={'KYyNy':'image/webp'};return[_0x31d536(0xc6),'image/png','image/gif',_0x58610e['KYyNy']][_0x31d536(0xe6)](_0x54280c);}function inferMediaType(_0x3aaf83,_0x26051d){const _0x26a4fe=_0x5155,_0x1e85b6={'Sjnkh':_0x26a4fe(0xf4)};if(_0x3aaf83){const _0x3064c8=_0x3aaf83[_0x26a4fe(0xe1)]()[_0x26a4fe(0xfa)](';')[0x0]['trim']();if(isValidMediaType(_0x3064c8))return _0x3064c8;}const _0x408216=extname(_0x26051d)['toLowerCase']()[_0x26a4fe(0xcd)]('.','');switch(_0x408216){case _0x26a4fe(0x100):case _0x26a4fe(0xe2):return _0x26a4fe(0xc6);case _0x1e85b6[_0x26a4fe(0xd8)]:return _0x26a4fe(0xc2);case'gif':return _0x26a4fe(0xdc);case'webp':return _0x26a4fe(0xef);default:return'image/png';}}async function readImageFromUrl(_0x286bcd){const _0x302f51=_0x5155,_0x80f063={'BVjKm':function(_0x9a9ea9,_0x4214ce){return _0x9a9ea9(_0x4214ce);},'twBIW':_0x302f51(0xba),'Befca':function(_0x4ba5fd,_0x574a8b){return _0x4ba5fd(_0x574a8b);},'RaKbi':function(_0x284d57,_0x3d3105){return _0x284d57>_0x3d3105;},'WmMcF':_0x302f51(0xd6),'nwmlS':_0x302f51(0xc3),'JLYuy':function(_0x409485,_0x3c6ea4,_0x511ed0){return _0x409485(_0x3c6ea4,_0x511ed0);},'xsVXP':_0x302f51(0xfc)};if(isDataUrl(_0x286bcd)){const _0x5930d7=_0x80f063[_0x302f51(0xec)](parseDataUrl,_0x286bcd);if(_0x5930d7)return _0x5930d7;throw new Error(_0x80f063[_0x302f51(0xf2)]);}if(_0x286bcd[_0x302f51(0xe9)]('file://')){const _0x1daa29=_0x80f063['Befca'](fileURLToPath,_0x286bcd),_0x562d0a=await stat(_0x1daa29);if(_0x80f063['RaKbi'](_0x562d0a['size'],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x302f51(0xe0)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x558b4c=await readFile(_0x1daa29);return{'data':_0x558b4c[_0x302f51(0xbe)](_0x80f063['WmMcF']),'mediaType':inferMediaType(null,_0x1daa29)};}if(_0x286bcd[_0x302f51(0xe9)](_0x80f063[_0x302f51(0xf7)])||_0x286bcd[_0x302f51(0xe9)](_0x302f51(0xc4))){const _0x331bf0=await _0x80f063['JLYuy'](fetch,_0x286bcd,{'signal':AbortSignal[_0x302f51(0xde)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x331bf0['ok'])throw new Error('Failed\x20to\x20fetch\x20image:\x20'+_0x331bf0['status']);const _0x5a6697=_0x331bf0['headers']['get'](_0x80f063[_0x302f51(0xc1)]);if(_0x5a6697){const _0x4768e4=Number(_0x5a6697);if(!Number[_0x302f51(0xe3)](_0x4768e4)&&_0x80f063[_0x302f51(0xd0)](_0x4768e4,MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x302f51(0xd4));}const _0x510415=await _0x331bf0['arrayBuffer']();if(_0x510415[_0x302f51(0xd2)]>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x302f51(0xd4));return{'data':Buffer['from'](_0x510415)['toString'](_0x80f063[_0x302f51(0xbd)]),'mediaType':inferMediaType(_0x331bf0[_0x302f51(0xed)]['get']('content-type'),_0x286bcd)};}const _0x38b47e=await stat(_0x286bcd);if(_0x38b47e['size']>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x302f51(0xe0)+MAX_IMAGE_SIZE_BYTES+_0x302f51(0xd4));const _0x2c2d2c=await readFile(_0x286bcd);return{'data':_0x2c2d2c[_0x302f51(0xbe)](_0x80f063[_0x302f51(0xbd)]),'mediaType':inferMediaType(null,_0x286bcd)};}async function convertImageBlockToBase64(_0x1b7b63){const _0x4c5438=_0x5155,_0x34b54f={'CSbjD':function(_0x788a76,_0x409831){return _0x788a76===_0x409831;},'WfUjN':_0x4c5438(0xd6)};if(_0x34b54f[_0x4c5438(0xcb)](_0x1b7b63['source']?.['type'],_0x4c5438(0xd6)))return{'updated':![],'block':_0x1b7b63};if(_0x1b7b63[_0x4c5438(0xc9)]&&_0x1b7b63[_0x4c5438(0xc5)])return{'updated':![],'block':_0x1b7b63};const _0x2de52b=_0x1b7b63[_0x4c5438(0xc8)]?.[_0x4c5438(0xff)]??_0x1b7b63[_0x4c5438(0xff)];if(!_0x2de52b)return{'updated':![],'block':_0x1b7b63};const _0x3f66c6=await readImageFromUrl(_0x2de52b);return{'updated':!![],'block':{..._0x1b7b63,'source':{'type':_0x34b54f[_0x4c5438(0xfd)],'media_type':_0x3f66c6['mediaType'],'data':_0x3f66c6['data']},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x18ea32){const _0x471cf3=_0x5155,_0x53ef41={'ssgIV':function(_0x3c841e,_0x350c55){return _0x3c841e(_0x350c55);}};if(!isRecord(_0x18ea32))return{'updated':![],'output':_0x18ea32};const _0x59e396=_0x18ea32[_0x471cf3(0xdb)];if(!Array['isArray'](_0x59e396))return{'updated':![],'output':_0x18ea32};let _0x1d7898=![];const _0x340588=await Promise[_0x471cf3(0xcf)](_0x59e396[_0x471cf3(0xeb)](async _0x6c8684=>{const _0x5806bb=_0x471cf3;if(!_0x53ef41[_0x5806bb(0xbc)](isImageBlock,_0x6c8684))return _0x6c8684;try{const _0x3026e1=await convertImageBlockToBase64(_0x6c8684);if(_0x3026e1['updated'])_0x1d7898=!![];return _0x3026e1['block'];}catch{return _0x6c8684;}}));if(!_0x1d7898)return{'updated':![],'output':_0x18ea32};return{'updated':!![],'output':{..._0x18ea32,'content':_0x340588}};}function sanitizeLoneSurrogates(_0x558a10){const _0x31a4d9=_0x5155,_0x28b228={'uAHpU':function(_0x53695d,_0x13a3a1){return _0x53695d>=_0x13a3a1;},'pKVIA':function(_0x45c66e,_0x4c087d){return _0x45c66e<=_0x4c087d;},'ltogh':function(_0x37becc,_0x2983c6){return _0x37becc+_0x2983c6;}};let _0x4a6cff=![],_0x395d81='';for(let _0x4d9ed8=0x0;_0x4d9ed8<_0x558a10[_0x31a4d9(0xbb)];_0x4d9ed8+=0x1){const _0x41d83b=_0x558a10['charCodeAt'](_0x4d9ed8);if(_0x28b228['uAHpU'](_0x41d83b,0xd800)&&_0x28b228[_0x31a4d9(0xe7)](_0x41d83b,0xdbff)){const _0x130d30=_0x558a10['charCodeAt'](_0x4d9ed8+0x1);if(_0x28b228[_0x31a4d9(0xfe)](_0x130d30,0xdc00)&&_0x130d30<=0xdfff){_0x395d81+=_0x558a10[_0x4d9ed8]+_0x558a10[_0x28b228['ltogh'](_0x4d9ed8,0x1)],_0x4d9ed8+=0x1;continue;}_0x4a6cff=!![],_0x395d81+='�';continue;}if(_0x41d83b>=0xdc00&&_0x28b228['pKVIA'](_0x41d83b,0xdfff)){_0x4a6cff=!![],_0x395d81+='�';continue;}_0x395d81+=_0x558a10[_0x4d9ed8];}return _0x4a6cff?{'updated':_0x4a6cff,'value':_0x395d81}:{'updated':_0x4a6cff,'value':_0x558a10};}function _0x33a0(){const _0x1a934e=['555591NgjKfT','byteLength','847925odPkcm','\x20bytes)','QVMFv','base64','image','Sjnkh','value','9oobUFa','content','image/gif','lBbje','timeout','132xjljMT','Image\x20exceeds\x20size\x20limit\x20(','toLowerCase','jpeg','isNaN','PostToolUse','updated','includes','pKVIA','ovLqk','startsWith','output','map','BVjKm','headers','4djywgp','image/webp','60WNylYq','268912QxSeDg','twBIW','isArray','png','object','753140enRHPi','nwmlS','23135WJHwFf','entries','split','74314zCdGEq','content-length','WfUjN','uAHpU','url','jpg','epzkE','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','length','ssgIV','WmMcF','toString','deqgX','924506bvgUms','xsVXP','image/png','http://','https://','mimeType','image/jpeg','hook_event_name','source','data','7PPeuaO','CSbjD','peoIM','replace','SPHqm','all','RaKbi'];_0x33a0=function(){return _0x1a934e;};return _0x33a0();}function sanitizeLoneSurrogatesDeep(_0x2995df){const _0x50818d=_0x5155,_0x26cf59={'deqgX':function(_0x1f30ad,_0x2cd5e5){return _0x1f30ad(_0x2cd5e5);},'lBbje':'string'};if(typeof _0x2995df===_0x26cf59[_0x50818d(0xdd)])return sanitizeLoneSurrogates(_0x2995df);if(Array[_0x50818d(0xf3)](_0x2995df)){let _0x2228ee=![];const _0x2df67b=_0x2995df['map'](_0x58afb7=>{const _0x22827=_0x50818d,_0x16a2a0=_0x26cf59['deqgX'](sanitizeLoneSurrogatesDeep,_0x58afb7);return _0x16a2a0['updated']&&(_0x2228ee=!![]),_0x16a2a0[_0x22827(0xd9)];});return _0x2228ee?{'updated':!![],'value':_0x2df67b}:{'updated':![],'value':_0x2995df};}if(!isRecord(_0x2995df))return{'updated':![],'value':_0x2995df};let _0x5b7476=![];const _0x1cc0eb=Object[_0x50818d(0xf9)](_0x2995df)[_0x50818d(0xeb)](([_0x232571,_0x35421d])=>{const _0xc916e7=_0x50818d,_0x2852f9=_0x26cf59[_0xc916e7(0xbf)](sanitizeLoneSurrogatesDeep,_0x35421d);return _0x2852f9[_0xc916e7(0xe5)]&&(_0x5b7476=!![]),[_0x232571,_0x2852f9[_0xc916e7(0xd9)]];});return _0x5b7476?{'updated':!![],'value':Object['fromEntries'](_0x1cc0eb)}:{'updated':![],'value':_0x2995df};}export function createMcpImageBase64Hook(){const _0x22cf53={'SPHqm':function(_0x5304b3,_0x378aa7){return _0x5304b3(_0x378aa7);}};return async _0x234739=>{const _0x39657c=_0x5155;if(_0x234739[_0x39657c(0xc7)]!==_0x39657c(0xe4))return{};const _0x1d0627=_0x234739,_0x42fc74=await _0x22cf53[_0x39657c(0xce)](convertToolOutputImagesToBase64,_0x1d0627['tool_response']),_0x11fe73=sanitizeLoneSurrogatesDeep(_0x42fc74[_0x39657c(0xea)]),_0x2da5a5=_0x42fc74['updated']||_0x11fe73[_0x39657c(0xe5)];if(!_0x2da5a5)return{};return{'hookSpecificOutput':{'hookEventName':'PostToolUse','updatedMCPToolOutput':_0x11fe73['value']}};};}
1
+ (function(_0x28d735,_0x429f8b){const _0x19e8c4=_0x46e3,_0x31e139=_0x28d735();while(!![]){try{const _0x1b330b=-parseInt(_0x19e8c4(0x171))/0x1+parseInt(_0x19e8c4(0x177))/0x2*(parseInt(_0x19e8c4(0x141))/0x3)+-parseInt(_0x19e8c4(0x165))/0x4+parseInt(_0x19e8c4(0x156))/0x5*(-parseInt(_0x19e8c4(0x161))/0x6)+parseInt(_0x19e8c4(0x150))/0x7*(-parseInt(_0x19e8c4(0x14c))/0x8)+parseInt(_0x19e8c4(0x16a))/0x9*(-parseInt(_0x19e8c4(0x13d))/0xa)+parseInt(_0x19e8c4(0x13e))/0xb;if(_0x1b330b===_0x429f8b)break;else _0x31e139['push'](_0x31e139['shift']());}catch(_0x32b073){_0x31e139['push'](_0x31e139['shift']());}}}(_0x13da,0xcbf22));import{readFile,stat}from'fs/promises';import{extname}from'path';import{fileURLToPath}from'url';function _0x13da(){const _0x30af9f=['get','object','fmnSb','isNaN','fQgNU','timeout','replace','type','png','3816VgUZzy','charCodeAt','base64','pILnm','3702912TWXbhO','zPbWy','gCeuk','hook_event_name','value','5702499bUDpWT','startsWith','GuYjE','UWpDu','image/png','data','url','325762biAECV','beqoP','mCOEI','QMjwE','image/jpeg','PostToolUse','178612GnIaXp','mAoiJ','webp','gif','headers','map','tool_response','Image\x20exceeds\x20size\x20limit\x20(','UqmLt','XWtQO','mAPze','qqJYY','mediaType','toLowerCase','20vgqYkz','38534628bTIKCh','byteLength','image','21WyAdbQ','pakpu','string','image/gif','output','NIyTV','updated','arrayBuffer','XGLEp','kMBSW','\x20bytes)','2136XttNfS','zBHaZ','data:','content','14812kDgLsb','http://','https://','content-length','all','USdSC','1645ldsIPo','image/webp'];_0x13da=function(){return _0x30af9f;};return _0x13da();}const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x16c3b4){const _0x11737e=_0x46e3;return typeof _0x16c3b4===_0x11737e(0x159)&&_0x16c3b4!==null;}function isImageBlock(_0xc74a25){const _0x44ee13=_0x46e3,_0x2f411a={'GuYjE':function(_0x5ea931,_0xe0d9de){return _0x5ea931===_0xe0d9de;},'mAPze':_0x44ee13(0x140)};return isRecord(_0xc74a25)&&_0x2f411a[_0x44ee13(0x16c)](_0xc74a25[_0x44ee13(0x15f)],_0x2f411a[_0x44ee13(0x181)]);}function isDataUrl(_0x3d73cd){const _0xc0498a=_0x46e3;return _0x3d73cd[_0xc0498a(0x16b)](_0xc0498a(0x14e));}function parseDataUrl(_0x6b00c8){const _0xc64b6e=_0x46e3,_0x5627d6={'beqoP':function(_0x25412d,_0xc9826f){return _0x25412d(_0xc9826f);}},_0x94f899=/^data:([^;]+);base64,(.+)$/['exec'](_0x6b00c8);if(!_0x94f899)return null;const _0x3f8c26=_0x94f899[0x1][_0xc64b6e(0x13c)]();if(!_0x5627d6[_0xc64b6e(0x172)](isValidMediaType,_0x3f8c26))return null;return{'data':_0x94f899[0x2],'mediaType':_0x3f8c26};}function isValidMediaType(_0x35af5b){const _0x2986b1=_0x46e3,_0x7b586b={'XWtQO':'image/gif','UqmLt':_0x2986b1(0x157)};return['image/jpeg',_0x2986b1(0x16e),_0x7b586b[_0x2986b1(0x180)],_0x7b586b[_0x2986b1(0x17f)]]['includes'](_0x35af5b);}function _0x46e3(_0x362e5c,_0x59fa7d){_0x362e5c=_0x362e5c-0x13a;const _0x13daf5=_0x13da();let _0x46e378=_0x13daf5[_0x362e5c];return _0x46e378;}function inferMediaType(_0x250bf7,_0xa01876){const _0x1534b=_0x46e3,_0xd9b84c={'gCeuk':'jpeg','zPbWy':_0x1534b(0x160),'NWvud':_0x1534b(0x144),'fQgNU':_0x1534b(0x179),'UWpDu':_0x1534b(0x157),'NIyTV':_0x1534b(0x16e)};if(_0x250bf7){const _0x648cdd=_0x250bf7['toLowerCase']()['split'](';')[0x0]['trim']();if(isValidMediaType(_0x648cdd))return _0x648cdd;}const _0x49c81f=extname(_0xa01876)[_0x1534b(0x13c)]()[_0x1534b(0x15e)]('.','');switch(_0x49c81f){case'jpg':case _0xd9b84c[_0x1534b(0x167)]:return _0x1534b(0x175);case _0xd9b84c[_0x1534b(0x166)]:return'image/png';case _0x1534b(0x17a):return _0xd9b84c['NWvud'];case _0xd9b84c[_0x1534b(0x15c)]:return _0xd9b84c[_0x1534b(0x16d)];default:return _0xd9b84c[_0x1534b(0x146)];}}async function readImageFromUrl(_0xafd64e){const _0x34f465=_0x46e3,_0x113531={'QMjwE':'file://','gumXt':function(_0x54f203,_0x1d1b22){return _0x54f203(_0x1d1b22);},'mCOEI':_0x34f465(0x153),'GquXU':function(_0x52eadd,_0x3ce060){return _0x52eadd(_0x3ce060);},'vWhNz':function(_0x438bd8,_0x279b2d){return _0x438bd8>_0x279b2d;},'dqkvC':'base64','pILnm':'content-type','TAEwU':function(_0x12a0fd,_0x41f90d,_0x385391){return _0x12a0fd(_0x41f90d,_0x385391);}};if(isDataUrl(_0xafd64e)){const _0x2d74cc=parseDataUrl(_0xafd64e);if(_0x2d74cc)return _0x2d74cc;throw new Error('Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content');}if(_0xafd64e[_0x34f465(0x16b)](_0x113531[_0x34f465(0x174)])){const _0x54963d=fileURLToPath(_0xafd64e),_0x39a414=await _0x113531['gumXt'](stat,_0x54963d);if(_0x39a414['size']>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x29ae49=await readFile(_0x54963d);return{'data':_0x29ae49['toString']('base64'),'mediaType':inferMediaType(null,_0x54963d)};}if(_0xafd64e['startsWith'](_0x34f465(0x151))||_0xafd64e[_0x34f465(0x16b)](_0x34f465(0x152))){const _0x48c893=await fetch(_0xafd64e,{'signal':AbortSignal[_0x34f465(0x15d)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x48c893['ok'])throw new Error('Failed\x20to\x20fetch\x20image:\x20'+_0x48c893['status']);const _0xd3c1b6=_0x48c893[_0x34f465(0x17b)][_0x34f465(0x158)](_0x113531[_0x34f465(0x173)]);if(_0xd3c1b6){const _0x164698=_0x113531['GquXU'](Number,_0xd3c1b6);if(!Number[_0x34f465(0x15b)](_0x164698)&&_0x113531['vWhNz'](_0x164698,MAX_IMAGE_SIZE_BYTES))throw new Error(_0x34f465(0x17e)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x46de87=await _0x48c893[_0x34f465(0x148)]();if(_0x113531['vWhNz'](_0x46de87[_0x34f465(0x13f)],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x34f465(0x17e)+MAX_IMAGE_SIZE_BYTES+_0x34f465(0x14b));return{'data':Buffer['from'](_0x46de87)['toString'](_0x113531['dqkvC']),'mediaType':inferMediaType(_0x48c893[_0x34f465(0x17b)]['get'](_0x113531[_0x34f465(0x164)]),_0xafd64e)};}const _0x49494f=await stat(_0xafd64e);if(_0x49494f['size']>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x34f465(0x17e)+MAX_IMAGE_SIZE_BYTES+_0x34f465(0x14b));const _0x1962fe=await _0x113531['GquXU'](readFile,_0xafd64e);return{'data':_0x1962fe['toString'](_0x34f465(0x163)),'mediaType':_0x113531['TAEwU'](inferMediaType,null,_0xafd64e)};}async function convertImageBlockToBase64(_0x18fe21){const _0x5ed8e0=_0x46e3,_0x2283a1={'zBHaZ':function(_0x2a1128,_0x148bc1){return _0x2a1128===_0x148bc1;},'fmnSb':_0x5ed8e0(0x163)};if(_0x2283a1[_0x5ed8e0(0x14d)](_0x18fe21['source']?.[_0x5ed8e0(0x15f)],_0x2283a1[_0x5ed8e0(0x15a)]))return{'updated':![],'block':_0x18fe21};if(_0x18fe21[_0x5ed8e0(0x16f)]&&_0x18fe21['mimeType'])return{'updated':![],'block':_0x18fe21};const _0x38b404=_0x18fe21['source']?.[_0x5ed8e0(0x170)]??_0x18fe21['url'];if(!_0x38b404)return{'updated':![],'block':_0x18fe21};const _0x4edb9e=await readImageFromUrl(_0x38b404);return{'updated':!![],'block':{..._0x18fe21,'source':{'type':_0x5ed8e0(0x163),'media_type':_0x4edb9e[_0x5ed8e0(0x13b)],'data':_0x4edb9e['data']},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x421737){const _0x30ea70=_0x46e3,_0x1990cb={'kMBSW':function(_0xf582f2,_0x48932e){return _0xf582f2(_0x48932e);},'qqJYY':function(_0x557d8,_0x36daf4){return _0x557d8(_0x36daf4);}};if(!_0x1990cb[_0x30ea70(0x13a)](isRecord,_0x421737))return{'updated':![],'output':_0x421737};const _0x352f6f=_0x421737[_0x30ea70(0x14f)];if(!Array['isArray'](_0x352f6f))return{'updated':![],'output':_0x421737};let _0x116c17=![];const _0x137d5b=await Promise[_0x30ea70(0x154)](_0x352f6f[_0x30ea70(0x17c)](async _0x3b1c04=>{const _0x1b0a6e=_0x30ea70;if(!isImageBlock(_0x3b1c04))return _0x3b1c04;try{const _0x464b0b=await _0x1990cb[_0x1b0a6e(0x14a)](convertImageBlockToBase64,_0x3b1c04);if(_0x464b0b[_0x1b0a6e(0x147)])_0x116c17=!![];return _0x464b0b['block'];}catch{return _0x3b1c04;}}));if(!_0x116c17)return{'updated':![],'output':_0x421737};return{'updated':!![],'output':{..._0x421737,'content':_0x137d5b}};}function sanitizeLoneSurrogates(_0x3d9ac3){const _0x364011=_0x46e3,_0x2a6df8={'pakpu':function(_0x54b580,_0x43eb28){return _0x54b580>=_0x43eb28;},'mmOQc':function(_0x63c569,_0x1f185b){return _0x63c569<=_0x1f185b;},'XGLEp':function(_0x1919d2,_0x289c8e){return _0x1919d2<=_0x289c8e;},'xHVMh':function(_0x5e9ce4,_0x69b938){return _0x5e9ce4+_0x69b938;},'eNrSm':function(_0xe7af1b,_0x1dfda4){return _0xe7af1b+_0x1dfda4;}};let _0x91b033=![],_0x48190c='';for(let _0x34b0c9=0x0;_0x34b0c9<_0x3d9ac3['length'];_0x34b0c9+=0x1){const _0x2538c4=_0x3d9ac3[_0x364011(0x162)](_0x34b0c9);if(_0x2a6df8[_0x364011(0x142)](_0x2538c4,0xd800)&&_0x2a6df8['mmOQc'](_0x2538c4,0xdbff)){const _0x37b4a4=_0x3d9ac3[_0x364011(0x162)](_0x34b0c9+0x1);if(_0x37b4a4>=0xdc00&&_0x2a6df8[_0x364011(0x149)](_0x37b4a4,0xdfff)){_0x48190c+=_0x2a6df8['xHVMh'](_0x3d9ac3[_0x34b0c9],_0x3d9ac3[_0x2a6df8['eNrSm'](_0x34b0c9,0x1)]),_0x34b0c9+=0x1;continue;}_0x91b033=!![],_0x48190c+='�';continue;}if(_0x2a6df8[_0x364011(0x142)](_0x2538c4,0xdc00)&&_0x2538c4<=0xdfff){_0x91b033=!![],_0x48190c+='�';continue;}_0x48190c+=_0x3d9ac3[_0x34b0c9];}return _0x91b033?{'updated':_0x91b033,'value':_0x48190c}:{'updated':_0x91b033,'value':_0x3d9ac3};}function sanitizeLoneSurrogatesDeep(_0x5cbc8e){const _0x34ed5c=_0x46e3,_0xd4e0f={'mAoiJ':function(_0x385a33,_0x4261b5){return _0x385a33(_0x4261b5);},'nphsD':function(_0x2a5f24,_0xf284ac){return _0x2a5f24(_0xf284ac);},'xLlyr':_0x34ed5c(0x143)};if(typeof _0x5cbc8e===_0xd4e0f['xLlyr'])return _0xd4e0f['nphsD'](sanitizeLoneSurrogates,_0x5cbc8e);if(Array['isArray'](_0x5cbc8e)){let _0x1c6eb3=![];const _0x391e57=_0x5cbc8e['map'](_0x47b078=>{const _0x164241=_0x34ed5c,_0x286100=_0xd4e0f[_0x164241(0x178)](sanitizeLoneSurrogatesDeep,_0x47b078);return _0x286100[_0x164241(0x147)]&&(_0x1c6eb3=!![]),_0x286100['value'];});return _0x1c6eb3?{'updated':!![],'value':_0x391e57}:{'updated':![],'value':_0x5cbc8e};}if(!isRecord(_0x5cbc8e))return{'updated':![],'value':_0x5cbc8e};let _0x7d6f69=![];const _0x3ea9f2=Object['entries'](_0x5cbc8e)[_0x34ed5c(0x17c)](([_0x19dcdd,_0xf810ab])=>{const _0x59eeaa=_0x34ed5c,_0x89aabd=_0xd4e0f['nphsD'](sanitizeLoneSurrogatesDeep,_0xf810ab);return _0x89aabd[_0x59eeaa(0x147)]&&(_0x7d6f69=!![]),[_0x19dcdd,_0x89aabd[_0x59eeaa(0x169)]];});return _0x7d6f69?{'updated':!![],'value':Object['fromEntries'](_0x3ea9f2)}:{'updated':![],'value':_0x5cbc8e};}export function createMcpImageBase64Hook(){const _0x5da04a={'USdSC':function(_0x2ff003,_0x2125ad){return _0x2ff003!==_0x2125ad;},'VcJJS':function(_0x5ae2af,_0x468cec){return _0x5ae2af(_0x468cec);},'FkGfh':function(_0x5734b3,_0xf5bba9){return _0x5734b3(_0xf5bba9);}};return async _0x9230b9=>{const _0x516b8b=_0x46e3;if(_0x5da04a[_0x516b8b(0x155)](_0x9230b9[_0x516b8b(0x168)],_0x516b8b(0x176)))return{};const _0x63f6a0=_0x9230b9,_0x19f612=await _0x5da04a['VcJJS'](convertToolOutputImagesToBase64,_0x63f6a0[_0x516b8b(0x17d)]),_0x21427b=_0x5da04a['FkGfh'](sanitizeLoneSurrogatesDeep,_0x19f612[_0x516b8b(0x145)]),_0x330158=_0x19f612[_0x516b8b(0x147)]||_0x21427b['updated'];if(!_0x330158)return{};return{'hookSpecificOutput':{'hookEventName':'PostToolUse','updatedMCPToolOutput':_0x21427b['value']}};};}
@@ -1 +1 @@
1
- function _0x4efb(){const _0x1d8b5d=['63fNWrie','686652xiOLFt','311136OFuEqn','claude-opus-4-6','60qBhvzU','4066245UOfnut','11HjfaMn','1953468HVmnYi','5805720LgfNyu','toLowerCase','45458XMLxoX','5506728rzNHYl'];_0x4efb=function(){return _0x1d8b5d;};return _0x4efb();}function _0x42fd(_0x2b4993,_0x439ff6){_0x2b4993=_0x2b4993-0x1c6;const _0x4efb2e=_0x4efb();let _0x42fdd9=_0x4efb2e[_0x2b4993];return _0x42fdd9;}const _0x4ea732=_0x42fd;(function(_0x1b5d99,_0x62718f){const _0xf4df6f=_0x42fd,_0x2955a1=_0x1b5d99();while(!![]){try{const _0x154ecf=parseInt(_0xf4df6f(0x1cb))/0x1*(parseInt(_0xf4df6f(0x1cf))/0x2)+-parseInt(_0xf4df6f(0x1cc))/0x3+-parseInt(_0xf4df6f(0x1d0))/0x4+-parseInt(_0xf4df6f(0x1cd))/0x5+-parseInt(_0xf4df6f(0x1c6))/0x6*(-parseInt(_0xf4df6f(0x1d1))/0x7)+-parseInt(_0xf4df6f(0x1c7))/0x8+-parseInt(_0xf4df6f(0x1ca))/0x9*(-parseInt(_0xf4df6f(0x1c9))/0xa);if(_0x154ecf===_0x62718f)break;else _0x2955a1['push'](_0x2955a1['shift']());}catch(_0x5defbf){_0x2955a1['push'](_0x2955a1['shift']());}}}(_0x4efb,0xba449));const VERIFY_MODEL_ALIASES={'opus':_0x4ea732(0x1c8),'sonnet':'claude-sonnet-4-6'};export const DEFAULT_VERIFY_MODEL='claude-sonnet-4-6';export function resolveVerifyModel(_0x4f0ba9){const _0x23450b=_0x4ea732;if(!_0x4f0ba9)return undefined;const _0x1a941a=_0x4f0ba9['trim']();if(!_0x1a941a)return undefined;const _0x2b63c1=VERIFY_MODEL_ALIASES[_0x1a941a[_0x23450b(0x1ce)]()];return _0x2b63c1??_0x1a941a;}
1
+ const _0x8775a9=_0x14b4;(function(_0x3a6a82,_0x1e53c0){const _0x1b3d8a=_0x14b4,_0xd8304d=_0x3a6a82();while(!![]){try{const _0x3652ea=-parseInt(_0x1b3d8a(0x149))/0x1+parseInt(_0x1b3d8a(0x14c))/0x2+parseInt(_0x1b3d8a(0x14b))/0x3*(-parseInt(_0x1b3d8a(0x148))/0x4)+-parseInt(_0x1b3d8a(0x146))/0x5+parseInt(_0x1b3d8a(0x151))/0x6*(parseInt(_0x1b3d8a(0x150))/0x7)+-parseInt(_0x1b3d8a(0x147))/0x8*(parseInt(_0x1b3d8a(0x145))/0x9)+parseInt(_0x1b3d8a(0x14e))/0xa;if(_0x3652ea===_0x1e53c0)break;else _0xd8304d['push'](_0xd8304d['shift']());}catch(_0x2b05f0){_0xd8304d['push'](_0xd8304d['shift']());}}}(_0x2a91,0xbd7fb));const VERIFY_MODEL_ALIASES={'opus':_0x8775a9(0x14a),'sonnet':_0x8775a9(0x14f)};function _0x14b4(_0x2ab5cf,_0x9a51ed){_0x2ab5cf=_0x2ab5cf-0x145;const _0x2a91e3=_0x2a91();let _0x14b49a=_0x2a91e3[_0x2ab5cf];return _0x14b49a;}export const DEFAULT_VERIFY_MODEL='claude-sonnet-4-6';function _0x2a91(){const _0x466f89=['111OsMarM','1142604ctiwUb','trim','35775700xmamag','claude-sonnet-4-6','42EPVyHY','1359198XErNiF','10005921EjZUpg','5555425YMQkUM','8pakOGm','122308uagNfz','1377680vbeyVo','claude-opus-4-6'];_0x2a91=function(){return _0x466f89;};return _0x2a91();}export function resolveVerifyModel(_0x5a7949){const _0x4331ea=_0x8775a9;if(!_0x5a7949)return undefined;const _0x471cd3=_0x5a7949[_0x4331ea(0x14d)]();if(!_0x471cd3)return undefined;const _0xfc3ca8=VERIFY_MODEL_ALIASES[_0x471cd3['toLowerCase']()];return _0xfc3ca8??_0x471cd3;}