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

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 (87) 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/build/skills/ranger/SKILL.md +1 -0
  87. 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 _0x1cad9f=_0x18dd;(function(_0x52e604,_0x528122){const _0x21097b=_0x18dd,_0x2c9ee1=_0x52e604();while(!![]){try{const _0x4ebae6=-parseInt(_0x21097b(0x225))/0x1+parseInt(_0x21097b(0x21c))/0x2*(-parseInt(_0x21097b(0x21a))/0x3)+parseInt(_0x21097b(0x22d))/0x4+-parseInt(_0x21097b(0x206))/0x5+-parseInt(_0x21097b(0x227))/0x6+-parseInt(_0x21097b(0x22e))/0x7*(-parseInt(_0x21097b(0x1fc))/0x8)+-parseInt(_0x21097b(0x21e))/0x9*(-parseInt(_0x21097b(0x218))/0xa);if(_0x4ebae6===_0x528122)break;else _0x2c9ee1['push'](_0x2c9ee1['shift']());}catch(_0x84013){_0x2c9ee1['push'](_0x2c9ee1['shift']());}}}(_0x4061,0x410c1));function _0x18dd(_0x51db1f,_0x4974a9){_0x51db1f=_0x51db1f-0x1ef;const _0x406143=_0x4061();let _0x18dd8b=_0x406143[_0x51db1f];return _0x18dd8b;}import{readFileSync,writeFileSync}from'fs';const ID_SEGMENT=0x18538067,ID_INFO=0x1549a966,ID_TIMESTAMP_SCALE=0x2ad7b1,ID_DURATION=0x4489,ID_VOID=0xec,ID_CLUSTER=0x1f43b675,ID_TIMESTAMP=0xe7,ID_SIMPLE_BLOCK=0xa3;function readVint(_0x3c8773,_0x8babdf){const _0x1fe175=_0x18dd,_0x32cbe5={'uYVYh':function(_0x572322,_0x5b4e3c){return _0x572322>=_0x5b4e3c;},'JcJpa':function(_0x280d00,_0x8d891f){return _0x280d00>_0x8d891f;},'gnDbL':function(_0x5211cb,_0x16102c){return _0x5211cb<_0x16102c;},'UsTKy':function(_0x3afd57,_0xb8e4da){return _0x3afd57*_0xb8e4da;}};if(_0x32cbe5[_0x1fe175(0x234)](_0x8babdf,_0x3c8773['length']))return[0x0,0x0];const _0x4651c0=_0x3c8773[_0x8babdf];let _0xa3752d=0x1,_0x2d359e=0x80;while(_0xa3752d<=0x8&&!(_0x4651c0&_0x2d359e)){_0xa3752d++,_0x2d359e>>=0x1;}if(_0x32cbe5[_0x1fe175(0x238)](_0x8babdf+_0xa3752d,_0x3c8773['length']))return[0x0,0x0];let _0x5e0feb=_0x4651c0&_0x2d359e-0x1;for(let _0x60a474=0x1;_0x32cbe5[_0x1fe175(0x239)](_0x60a474,_0xa3752d);_0x60a474++){_0x5e0feb=_0x32cbe5[_0x1fe175(0x1f8)](_0x5e0feb,0x100)+_0x3c8773[_0x8babdf+_0x60a474];}return[_0x5e0feb,_0xa3752d];}function readId(_0x1ff09a,_0x398567){const _0x2fe6ad=_0x18dd,_0x284497={'tGQqe':function(_0x223e31,_0x13f0dd){return _0x223e31>=_0x13f0dd;},'hYyAY':function(_0x1f780f,_0x5a9d66){return _0x1f780f>=_0x5a9d66;},'dnidq':function(_0x33b4b8,_0x28e0db){return _0x33b4b8>_0x28e0db;},'OeFDh':function(_0x15e289,_0x3573f9){return _0x15e289+_0x3573f9;},'rIpsr':function(_0x179f9f,_0x36728c){return _0x179f9f<_0x36728c;},'iLwfb':function(_0x565de5,_0x2613cf){return _0x565de5+_0x2613cf;}};if(_0x284497['tGQqe'](_0x398567,_0x1ff09a[_0x2fe6ad(0x1f3)]))return[0x0,0x0];const _0x16a40a=_0x1ff09a[_0x398567];let _0xd70bd2;if(_0x16a40a>=0x80)_0xd70bd2=0x1;else{if(_0x284497[_0x2fe6ad(0x21f)](_0x16a40a,0x40))_0xd70bd2=0x2;else{if(_0x16a40a>=0x20)_0xd70bd2=0x3;else{if(_0x16a40a>=0x10)_0xd70bd2=0x4;else return[_0x16a40a,0x1];}}}if(_0x284497['dnidq'](_0x284497[_0x2fe6ad(0x228)](_0x398567,_0xd70bd2),_0x1ff09a[_0x2fe6ad(0x1f3)]))return[0x0,0x0];let _0x5c0dea=0x0;for(let _0x48e687=0x0;_0x284497['rIpsr'](_0x48e687,_0xd70bd2);_0x48e687++){_0x5c0dea=_0x284497[_0x2fe6ad(0x233)](_0x5c0dea*0x100,_0x1ff09a[_0x398567+_0x48e687]);}return[_0x5c0dea,_0xd70bd2];}function readUint(_0x468cda,_0x5ad5b5,_0x2fdf4e){const _0xb34bef=_0x18dd,_0x5e2315={'WJgsy':function(_0x63a193,_0x395152){return _0x63a193+_0x395152;},'LRCXV':function(_0x553d43,_0x361bfb){return _0x553d43*_0x361bfb;},'QfENO':function(_0x135f9b,_0x2619fe){return _0x135f9b+_0x2619fe;}};let _0x1f7338=0x0;for(let _0x45a887=0x0;_0x45a887<_0x2fdf4e;_0x45a887++){_0x1f7338=_0x5e2315['WJgsy'](_0x5e2315[_0xb34bef(0x207)](_0x1f7338,0x100),_0x468cda[_0x5e2315['QfENO'](_0x5ad5b5,_0x45a887)]);}return _0x1f7338;}function isUnknownSize(_0x95a52,_0x726fa0){const _0x590a18=_0x18dd,_0x3c6392={'DVgIB':function(_0x8d23f0,_0x3a1b6e){return _0x8d23f0-_0x3a1b6e;},'PatoJ':function(_0x3ae555,_0x3d84f8){return _0x3ae555*_0x3d84f8;}};return _0x95a52===_0x3c6392[_0x590a18(0x23a)](Math[_0x590a18(0x1f5)](0x2,_0x3c6392['PatoJ'](0x7,_0x726fa0)),0x1);}function writeId(_0x5d2975){const _0x42f04b=_0x18dd,_0x4e115a={'CZWtH':function(_0x10e187,_0x17fc81){return _0x10e187<=_0x17fc81;},'oywYh':function(_0x2c49b1,_0x2c3cc3){return _0x2c49b1&_0x2c3cc3;},'ilZYs':function(_0x453fc6,_0x5f14c4){return _0x453fc6&_0x5f14c4;},'csJbE':function(_0xd7f8fa,_0x2e4e9c){return _0xd7f8fa&_0x2e4e9c;},'uCCQJ':function(_0x23cf0c,_0x400484){return _0x23cf0c>>_0x400484;},'ibAem':function(_0x26d9e1,_0x130cd0){return _0x26d9e1&_0x130cd0;},'EgaCZ':function(_0x4a05c2,_0x1e4dee){return _0x4a05c2&_0x1e4dee;}};if(_0x5d2975<=0xff)return Buffer['from']([_0x5d2975]);if(_0x4e115a[_0x42f04b(0x23b)](_0x5d2975,0xffff))return Buffer[_0x42f04b(0x23c)]([_0x4e115a[_0x42f04b(0x204)](_0x5d2975>>0x8,0xff),_0x4e115a['ilZYs'](_0x5d2975,0xff)]);if(_0x4e115a['CZWtH'](_0x5d2975,0xffffff))return Buffer['from']([_0x4e115a[_0x42f04b(0x204)](_0x5d2975>>0x10,0xff),_0x5d2975>>0x8&0xff,_0x4e115a['oywYh'](_0x5d2975,0xff)]);return Buffer['from']([_0x4e115a['csJbE'](_0x4e115a[_0x42f04b(0x201)](_0x5d2975,0x18),0xff),_0x5d2975>>0x10&0xff,_0x4e115a['ibAem'](_0x4e115a[_0x42f04b(0x201)](_0x5d2975,0x8),0xff),_0x4e115a['EgaCZ'](_0x5d2975,0xff)]);}function writeVint(_0x40b056,_0xb1a92a){const _0x1390b2=_0x18dd,_0x680c8d={'jHjKV':function(_0x205e35,_0x11b58c){return _0x205e35||_0x11b58c;},'SGcKr':function(_0x1b19f1,_0xfc523a){return _0x1b19f1*_0xfc523a;},'westI':function(_0x2e7ae3,_0x98c18a){return _0x2e7ae3>=_0x98c18a;},'bgHOa':function(_0x55986c,_0x41791b){return _0x55986c&_0x41791b;},'eBVKk':function(_0x34cf2f,_0x572f5a){return _0x34cf2f<<_0x572f5a;}};let _0x23113d=_0x680c8d['jHjKV'](_0xb1a92a,0x1);while(Math['pow'](0x2,_0x680c8d['SGcKr'](0x7,_0x23113d))-0x2<_0x40b056)_0x23113d++;const _0x567a87=Buffer[_0x1390b2(0x20f)](_0x23113d);for(let _0x59ad51=_0x23113d-0x1;_0x680c8d[_0x1390b2(0x22f)](_0x59ad51,0x0);_0x59ad51--){_0x567a87[_0x59ad51]=_0x680c8d['bgHOa'](_0x40b056,0xff),_0x40b056=Math['floor'](_0x40b056/0x100);}return _0x567a87[0x0]|=_0x680c8d[_0x1390b2(0x200)](0x1,0x8-_0x23113d),_0x567a87;}function writeFloat64(_0x3c99da){const _0x4ffd0b=_0x18dd,_0x3ede59=Buffer['alloc'](0x8);return _0x3ede59[_0x4ffd0b(0x1f9)](_0x3c99da,0x0),_0x3ede59;}function writeVoid(_0x1a96fe){const _0x1b5e89=_0x18dd,_0x23e7da={'ynkpM':function(_0x4f8709,_0x4f2062){return _0x4f8709<=_0x4f2062;},'zmzNa':function(_0x88eaf4,_0xf3aa90){return _0x88eaf4-_0xf3aa90;},'UVmbH':function(_0x10acbb,_0x20b5a1){return _0x10acbb>=_0x20b5a1;},'PiyyP':function(_0x2be9d8,_0x300680){return _0x2be9d8*_0x300680;}};for(let _0x5b781d=0x1;_0x23e7da[_0x1b5e89(0x1f2)](_0x5b781d,0x8);_0x5b781d++){const _0x7ec653=_0x23e7da[_0x1b5e89(0x219)](_0x1a96fe-0x1,_0x5b781d);if(_0x23e7da[_0x1b5e89(0x229)](_0x7ec653,0x0)&&_0x7ec653<=Math['pow'](0x2,_0x23e7da['PiyyP'](0x7,_0x5b781d))-0x2)return Buffer[_0x1b5e89(0x213)]([Buffer['from']([ID_VOID]),writeVint(_0x7ec653,_0x5b781d),Buffer['alloc'](_0x7ec653)]);}return Buffer['alloc'](0x0);}function findElement(_0x3e5774,_0xdaf244,_0x4b07c6,_0x1cf0dc){const _0x2bfa7e=_0x18dd,_0x51ae32={'FZUMI':function(_0x257aaf,_0x4c0743,_0x8e378b){return _0x257aaf(_0x4c0743,_0x8e378b);},'rOqrr':function(_0x1def47,_0x27fc5b,_0x12dd27){return _0x1def47(_0x27fc5b,_0x12dd27);},'iBFSn':function(_0x3becac,_0x4d2b81){return _0x3becac===_0x4d2b81;},'wruxO':function(_0x1b58ab,_0x2e0af4,_0x5d18f5){return _0x1b58ab(_0x2e0af4,_0x5d18f5);},'yLkFN':function(_0x2e7302,_0x4dab8d){return _0x2e7302+_0x4dab8d;}};let _0x42c8c3=_0xdaf244;while(_0x42c8c3<_0x4b07c6){const [_0x19415c,_0xcc027e]=_0x51ae32[_0x2bfa7e(0x236)](readId,_0x3e5774,_0x42c8c3),[_0x515495,_0x36fd5e]=_0x51ae32[_0x2bfa7e(0x1fe)](readVint,_0x3e5774,_0x42c8c3+_0xcc027e);if(_0x51ae32[_0x2bfa7e(0x222)](_0x19415c,_0x1cf0dc))return{'offset':_0x42c8c3,'idLen':_0xcc027e,'sizeLen':_0x36fd5e,'dataSize':_0x515495,'dataOffset':_0x42c8c3+_0xcc027e+_0x36fd5e};if(_0x51ae32['wruxO'](isUnknownSize,_0x515495,_0x36fd5e))break;_0x42c8c3+=_0x51ae32['yLkFN'](_0x51ae32[_0x2bfa7e(0x22a)](_0xcc027e,_0x36fd5e),_0x515495);}return null;}function computeDurationMs(_0x49e0c1,_0x16a8d7){const _0x5e2376=_0x18dd,_0x583ecf={'rGnts':function(_0x2fc3e2,_0x5dfafa){return _0x2fc3e2===_0x5dfafa;},'AEQpc':function(_0x323cb4,_0x768e3){return _0x323cb4<_0x768e3;},'aePlv':function(_0x4c0b7f,_0x5f5bd7){return _0x4c0b7f!==_0x5f5bd7;},'oywQb':function(_0x5aa297,_0x466b74){return _0x5aa297+_0x466b74;},'GrwpC':function(_0x2f9110,_0x23c4bf,_0x528083){return _0x2f9110(_0x23c4bf,_0x528083);},'Yabag':function(_0xb62b1a,_0x260393){return _0xb62b1a-_0x260393;},'MoOgG':function(_0x3015eb,_0x54b822){return _0x3015eb+_0x54b822;},'EspjX':function(_0x57e486,_0x418c77){return _0x57e486<_0x418c77;},'jzFVT':function(_0x178df7,_0x552e5d,_0x2cd82a){return _0x178df7(_0x552e5d,_0x2cd82a);},'wahiC':function(_0x4311d6,_0x301480){return _0x4311d6+_0x301480;},'QvNJv':function(_0x16af24,_0x528f27,_0x326288,_0x16a786){return _0x16af24(_0x528f27,_0x326288,_0x16a786);},'lKfhD':function(_0x3f71e9,_0xa9ce0b){return _0x3f71e9*_0xa9ce0b;},'UAzbq':function(_0x5b3041,_0x1bfc70){return _0x5b3041>_0x1bfc70;},'fIeKF':function(_0x535b6a,_0xa5ccea){return _0x535b6a+_0xa5ccea;}};let _0x2cb89d=0x0;const _0x43faf3=Buffer[_0x5e2376(0x23c)]([0x1f,0x43,0xb6,0x75]);let _0x3fc65b=_0x49e0c1[_0x5e2376(0x205)](_0x43faf3);if(_0x583ecf['rGnts'](_0x3fc65b,-0x1))return 0x0;while(_0x583ecf[_0x5e2376(0x22c)](_0x3fc65b,_0x49e0c1['length'])){const [_0x55da7d,_0x165c5e]=readId(_0x49e0c1,_0x3fc65b);if(_0x583ecf[_0x5e2376(0x1f4)](_0x55da7d,ID_CLUSTER))break;const [_0x4f907b,_0x1870f4]=readVint(_0x49e0c1,_0x583ecf['oywQb'](_0x3fc65b,_0x165c5e)),_0xcbc844=_0x3fc65b+_0x165c5e+_0x1870f4,_0x2111e8=_0x583ecf['GrwpC'](isUnknownSize,_0x4f907b,_0x1870f4);let _0x159149;if(_0x2111e8){let _0x4a57d6=_0xcbc844;while(_0x583ecf[_0x5e2376(0x22c)](_0x4a57d6,_0x583ecf[_0x5e2376(0x212)](_0x49e0c1[_0x5e2376(0x1f3)],0x4))){const [_0x2179e1,_0x181ca1]=readId(_0x49e0c1,_0x4a57d6);if(_0x583ecf['rGnts'](_0x2179e1,ID_CLUSTER)){_0x159149=_0x4a57d6;break;}const [_0x5a0d70,_0x5cbdc7]=_0x583ecf[_0x5e2376(0x1ff)](readVint,_0x49e0c1,_0x583ecf[_0x5e2376(0x217)](_0x4a57d6,_0x181ca1));if(isUnknownSize(_0x5a0d70,_0x5cbdc7)){_0x159149=_0x49e0c1[_0x5e2376(0x1f3)];break;}_0x4a57d6+=_0x583ecf['oywQb'](_0x181ca1+_0x5cbdc7,_0x5a0d70);}_0x159149??=_0x49e0c1[_0x5e2376(0x1f3)];}else _0x159149=_0x583ecf[_0x5e2376(0x217)](_0xcbc844,_0x4f907b);let _0x38cfdd=0x0,_0x1c0dd4=_0xcbc844;while(_0x583ecf[_0x5e2376(0x20c)](_0x1c0dd4,_0x159149)){const [_0x1b5a41,_0x569f55]=_0x583ecf[_0x5e2376(0x22b)](readId,_0x49e0c1,_0x1c0dd4),[_0x39436e,_0x500250]=readVint(_0x49e0c1,_0x583ecf['wahiC'](_0x1c0dd4,_0x569f55));if(_0x1b5a41===ID_TIMESTAMP)_0x38cfdd=_0x583ecf[_0x5e2376(0x221)](readUint,_0x49e0c1,_0x583ecf[_0x5e2376(0x217)](_0x583ecf['oywQb'](_0x1c0dd4,_0x569f55),_0x500250),_0x39436e);else{if(_0x1b5a41===ID_SIMPLE_BLOCK&&_0x39436e>=0x4){const _0xd0abd5=_0x1c0dd4+_0x569f55+_0x500250,[,_0x392e01]=readVint(_0x49e0c1,_0xd0abd5),_0x88d838=_0x49e0c1['readInt16BE'](_0xd0abd5+_0x392e01),_0x34426b=_0x583ecf['lKfhD'](_0x38cfdd+_0x88d838,_0x16a8d7)/0xf4240;_0x583ecf[_0x5e2376(0x231)](_0x34426b,_0x2cb89d)&&(_0x2cb89d=_0x34426b);}else{if(_0x1b5a41===ID_CLUSTER)break;}}if(isUnknownSize(_0x39436e,_0x500250))break;_0x1c0dd4+=_0x583ecf[_0x5e2376(0x1fd)](_0x569f55+_0x500250,_0x39436e);}_0x3fc65b=_0x159149;}return _0x2cb89d;}function _0x4061(){const _0x35f0be=['QvNJv','iBFSn','TsGmc','Could\x20not\x20find\x20Info\x20element','456512QbZjgm','MCtgv','2395782LYGsXn','OeFDh','UVmbH','yLkFN','jzFVT','AEQpc','901728VMTlao','827428WSWCxf','westI','VjmpG','UAzbq','dataOffset','iLwfb','uYVYh','QoJAf','FZUMI','QBWOC','JcJpa','gnDbL','DVgIB','CZWtH','from','edUgA','oRPhO','min','ynkpM','length','aePlv','pow','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','ClJlF','UsTKy','writeDoubleBE','error','AtQCG','16IgOsEY','fIeKF','rOqrr','GrwpC','eBVKk','uCCQJ','wjZrR','QaICS','oywYh','indexOf','1163460FACOWp','LRCXV','HxhBX','RlpFE','dataSize','LikBE','EspjX','fixWebmDuration.ts','Could\x20not\x20compute\x20duration','alloc','argv','Fixed:\x20','Yabag','concat','UdzHh','offset','uSPUz','MoOgG','100QYiAGj','zmzNa','295149JFnnEU','slice','4xeIRNU','log','980874nzUnRq','hYyAY','endsWith'];_0x4061=function(){return _0x35f0be;};return _0x4061();}export function fixWebmDuration(_0x44e8fc,_0x188381){const _0x383e10=_0x18dd,_0x57e00e={'UdzHh':function(_0x2fc1c3,_0x15f3c5,_0x5340d0){return _0x2fc1c3(_0x15f3c5,_0x5340d0);},'QBWOC':function(_0xb8876b,_0x550c2d){return _0xb8876b+_0x550c2d;},'HxhBX':function(_0x8d9c9c,_0x4d529f){return _0x8d9c9c+_0x4d529f;},'aBFEB':function(_0x3d5554,_0x46daa2,_0xf47b5c){return _0x3d5554(_0x46daa2,_0xf47b5c);},'MCtgv':function(_0x14c8a5,_0x2ef4a5){return _0x14c8a5+_0x2ef4a5;},'TsGmc':function(_0xbb9264,_0xc12f3b){return _0xbb9264<_0xc12f3b;},'BxJuW':function(_0x140211,_0x563f07,_0x2ba8b3){return _0x140211(_0x563f07,_0x2ba8b3);},'AXrhK':function(_0x4fb7e9,_0x1f4d89,_0x4b6132){return _0x4fb7e9(_0x1f4d89,_0x4b6132);},'QoJAf':function(_0x56f5fd,_0x2a2782){return _0x56f5fd===_0x2a2782;},'RlpFE':_0x383e10(0x224),'LikBE':function(_0x36f09f,_0xf3c2c8,_0x45f6ff,_0x295217,_0x1f0419){return _0x36f09f(_0xf3c2c8,_0x45f6ff,_0x295217,_0x1f0419);},'AtQCG':function(_0x2c1737,_0x35a9dd){return _0x2c1737+_0x35a9dd;},'wjZrR':function(_0x3eeb94,_0x2bcecc,_0xd31dee,_0x4f8365){return _0x3eeb94(_0x2bcecc,_0xd31dee,_0x4f8365);},'uSPUz':function(_0x1bdf86,_0xe73e97){return _0x1bdf86<=_0xe73e97;},'oRPhO':_0x383e10(0x20e),'BYLJK':function(_0x50bd95,_0x1ea436){return _0x50bd95/_0x1ea436;},'fNumF':function(_0x480d5d,_0x27b5d7){return _0x480d5d(_0x27b5d7);},'ClJlF':function(_0x1b7221,_0x27ded5){return _0x1b7221(_0x27ded5);},'VjmpG':function(_0x256a29,_0x570aac){return _0x256a29(_0x570aac);},'YOUfc':function(_0x150e6d,_0x48f59a){return _0x150e6d<_0x48f59a;},'OICRd':function(_0x4add1e,_0x2b58e2,_0x55fa8e){return _0x4add1e(_0x2b58e2,_0x55fa8e);},'QaICS':function(_0x15e74d,_0x549615,_0x37be24,_0x4e3aa1,_0x46a0c5,_0x2478d1,_0x2beabe){return _0x15e74d(_0x549615,_0x37be24,_0x4e3aa1,_0x46a0c5,_0x2478d1,_0x2beabe);}},_0x3d7b2a=readFileSync(_0x44e8fc);let _0x282ded=0x0;const [_0x453f2a,_0x4b9ae2]=readId(_0x3d7b2a,_0x282ded),[_0x998fdb,_0x122aee]=_0x57e00e[_0x383e10(0x214)](readVint,_0x3d7b2a,_0x57e00e[_0x383e10(0x237)](_0x282ded,_0x4b9ae2));_0x282ded+=_0x57e00e['HxhBX'](_0x57e00e['QBWOC'](_0x4b9ae2,_0x122aee),_0x998fdb);const [_0x22aebf,_0x19b348]=_0x57e00e['aBFEB'](readId,_0x3d7b2a,_0x282ded);if(_0x22aebf!==ID_SEGMENT)return console[_0x383e10(0x1fa)]('Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment'),![];const [,_0x1570d2]=readVint(_0x3d7b2a,_0x282ded+_0x19b348),_0x420769=_0x57e00e['QBWOC'](_0x282ded+_0x19b348,_0x1570d2);let _0x293365=_0x420769;const _0x5a6c07=Math[_0x383e10(0x1f1)](_0x3d7b2a['length'],_0x57e00e[_0x383e10(0x226)](_0x420769,0x2710));let _0x221602=null,_0x8bf177=null;while(_0x57e00e[_0x383e10(0x223)](_0x293365,_0x5a6c07)){const [_0x41e70b,_0x5cd8db]=_0x57e00e['BxJuW'](readId,_0x3d7b2a,_0x293365),[_0x337347,_0x4a7a0c]=_0x57e00e['AXrhK'](readVint,_0x3d7b2a,_0x293365+_0x5cd8db);_0x57e00e['QoJAf'](_0x41e70b,ID_VOID)&&!_0x221602&&(_0x221602={'offset':_0x293365,'idLen':_0x5cd8db,'sizeLen':_0x4a7a0c,'dataSize':_0x337347,'dataOffset':_0x293365+_0x5cd8db+_0x4a7a0c});if(_0x41e70b===ID_INFO){_0x8bf177={'offset':_0x293365,'idLen':_0x5cd8db,'sizeLen':_0x4a7a0c,'dataSize':_0x337347,'dataOffset':_0x57e00e['HxhBX'](_0x293365,_0x5cd8db)+_0x4a7a0c};break;}if(_0x57e00e[_0x383e10(0x235)](_0x41e70b,ID_CLUSTER))break;if(isUnknownSize(_0x337347,_0x4a7a0c))break;_0x293365+=_0x5cd8db+_0x4a7a0c+_0x337347;}if(!_0x8bf177)return console['error'](_0x57e00e[_0x383e10(0x209)]),![];const _0x58b278=_0x57e00e[_0x383e10(0x20b)](findElement,_0x3d7b2a,_0x8bf177[_0x383e10(0x232)],_0x8bf177['dataOffset']+_0x8bf177['dataSize'],ID_DURATION);if(_0x58b278)return![];const _0x59838d=findElement(_0x3d7b2a,_0x8bf177[_0x383e10(0x232)],_0x57e00e[_0x383e10(0x1fb)](_0x8bf177['dataOffset'],_0x8bf177['dataSize']),ID_TIMESTAMP_SCALE);let _0x4a4847=0xf4240;_0x59838d&&(_0x4a4847=_0x57e00e[_0x383e10(0x202)](readUint,_0x3d7b2a,_0x59838d['dataOffset'],_0x59838d[_0x383e10(0x20a)]));const _0x1d4c78=computeDurationMs(_0x3d7b2a,_0x4a4847);if(_0x57e00e[_0x383e10(0x216)](_0x1d4c78,0x0))return console['error'](_0x57e00e[_0x383e10(0x1f0)]),![];const _0xf64683=_0x57e00e['BYLJK'](_0x1d4c78*0xf4240,_0x4a4847),_0x480793=Buffer['concat']([_0x57e00e['fNumF'](writeId,ID_DURATION),_0x57e00e[_0x383e10(0x1f7)](writeVint,0x8),_0x57e00e[_0x383e10(0x230)](writeFloat64,_0xf64683)]),_0x94221d=_0x480793[_0x383e10(0x1f3)];if(!_0x221602||_0x221602[_0x383e10(0x215)]<_0x8bf177['offset']){if(_0x221602){const _0x5507f=_0x57e00e['AtQCG'](_0x221602['idLen'],_0x221602['sizeLen'])+_0x221602['dataSize'],_0x4e41b7=_0x5507f-_0x94221d;if(_0x57e00e['YOUfc'](_0x4e41b7,0x2))return rewriteFile(_0x3d7b2a,_0x8bf177,_0x480793,_0x4a4847,_0x1d4c78,_0x188381);const _0x278eb1=_0x57e00e['HxhBX'](_0x8bf177[_0x383e10(0x20a)],_0x94221d),_0x382d34=Buffer['concat']([_0x57e00e[_0x383e10(0x1f7)](writeId,ID_INFO),_0x57e00e[_0x383e10(0x214)](writeVint,_0x278eb1,_0x8bf177['sizeLen'])]),_0x5c1376=_0x3d7b2a[_0x383e10(0x21b)](_0x8bf177['dataOffset'],_0x8bf177[_0x383e10(0x232)]+_0x8bf177[_0x383e10(0x20a)]),_0x387d80=_0x57e00e['VjmpG'](writeVoid,_0x4e41b7),_0x535b1e=_0x3d7b2a['slice'](0x0,_0x221602['offset']),_0x359929=_0x3d7b2a['slice'](_0x57e00e[_0x383e10(0x208)](_0x8bf177[_0x383e10(0x232)],_0x8bf177['dataSize']));return _0x57e00e['OICRd'](writeFileSync,_0x188381,Buffer['concat']([_0x535b1e,_0x387d80,_0x382d34,_0x5c1376,_0x480793,_0x359929])),!![];}}return _0x57e00e[_0x383e10(0x203)](rewriteFile,_0x3d7b2a,_0x8bf177,_0x480793,_0x4a4847,_0x1d4c78,_0x188381);}function rewriteFile(_0x4aabe9,_0x45fbee,_0x1279fd,_0x15b40c,_0x5f58b0,_0x539a34){const _0x5f27fd=_0x18dd,_0x325bf7={'NAKoq':function(_0x43a58d,_0x19532b){return _0x43a58d+_0x19532b;},'edUgA':function(_0x5b4f79,_0x1b477c,_0x240778){return _0x5b4f79(_0x1b477c,_0x240778);}},_0x1cb2b3=_0x45fbee['dataSize']+_0x1279fd['length'],_0x3f710c=Buffer['concat']([writeId(ID_INFO),writeVint(_0x1cb2b3)]),_0x29d186=_0x325bf7['NAKoq'](_0x45fbee['idLen'],_0x45fbee['sizeLen']),_0x4943be=_0x4aabe9[_0x5f27fd(0x21b)](0x0,_0x45fbee[_0x5f27fd(0x215)]),_0x283046=_0x4aabe9['slice'](_0x45fbee['dataOffset'],_0x45fbee[_0x5f27fd(0x232)]+_0x45fbee[_0x5f27fd(0x20a)]),_0x302037=_0x4aabe9['slice'](_0x325bf7['NAKoq'](_0x45fbee[_0x5f27fd(0x215)]+_0x29d186,_0x45fbee[_0x5f27fd(0x20a)]));return _0x325bf7[_0x5f27fd(0x1ef)](writeFileSync,_0x539a34,Buffer[_0x5f27fd(0x213)]([_0x4943be,_0x3f710c,_0x283046,_0x1279fd,_0x302037])),!![];}if(process['argv'][0x1]?.[_0x1cad9f(0x220)](_0x1cad9f(0x20d))||process['argv'][0x1]?.[_0x1cad9f(0x220)]('fixWebmDuration.js')){const input=process[_0x1cad9f(0x210)][0x2],output=process[_0x1cad9f(0x210)][0x3];(!input||!output)&&(console[_0x1cad9f(0x1fa)]('Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>'),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0x1cad9f(0x21d)](_0x1cad9f(0x211)+output):console[_0x1cad9f(0x21d)](_0x1cad9f(0x1f6));}
@@ -1 +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 _0x20e8(){const _0x2efe4c=['19505223vhAsSI','4993226UaKMfs','954290tryhcU','1578mUMxYy','XLBRi','68620SFgBGs','392930ivpCXe','10516616zPEUnE','git','183MmgNQt','9175zpKIzX','ls-files'];_0x20e8=function(){return _0x2efe4c;};return _0x20e8();}(function(_0x532bd8,_0x3e3df1){const _0x28875c=_0x26cb,_0x14973f=_0x532bd8();while(!![]){try{const _0x1075cf=-parseInt(_0x28875c(0xe1))/0x1+-parseInt(_0x28875c(0xe9))/0x2+-parseInt(_0x28875c(0xe4))/0x3*(-parseInt(_0x28875c(0xe0))/0x4)+parseInt(_0x28875c(0xe5))/0x5*(parseInt(_0x28875c(0xde))/0x6)+-parseInt(_0x28875c(0xe8))/0x7+-parseInt(_0x28875c(0xe2))/0x8+parseInt(_0x28875c(0xe7))/0x9;if(_0x1075cf===_0x3e3df1)break;else _0x14973f['push'](_0x14973f['shift']());}catch(_0x15760b){_0x14973f['push'](_0x14973f['shift']());}}}(_0x20e8,0xc2e81));import{execFile as _0x5305f3}from'child_process';function _0x26cb(_0x3d0017,_0x518eed){_0x3d0017=_0x3d0017-0xde;const _0x20e897=_0x20e8();let _0x26cba7=_0x20e897[_0x3d0017];return _0x26cba7;}import{promisify}from'util';const execFile=promisify(_0x5305f3);export async function isPathGitTracked(_0x449a02){const _0x34fa5c=_0x26cb,_0x18a77a={'XLBRi':function(_0x24f739,_0x4d9484,_0x1106e8,_0x5af2ec){return _0x24f739(_0x4d9484,_0x1106e8,_0x5af2ec);},'bslUf':_0x34fa5c(0xe6)};try{return await _0x18a77a[_0x34fa5c(0xdf)](execFile,_0x34fa5c(0xe3),[_0x18a77a['bslUf'],'--error-unmatch',_0x449a02],{'cwd':process['cwd']()}),!![];}catch{return![];}}
@@ -1 +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 _0x5e7d77=_0x4cc8;(function(_0x1f83b4,_0x374343){const _0x2a78a6=_0x4cc8,_0x2e70a5=_0x1f83b4();while(!![]){try{const _0x4c5b9a=-parseInt(_0x2a78a6(0x12f))/0x1+parseInt(_0x2a78a6(0x13b))/0x2+-parseInt(_0x2a78a6(0x125))/0x3+-parseInt(_0x2a78a6(0x14b))/0x4+parseInt(_0x2a78a6(0x15e))/0x5*(parseInt(_0x2a78a6(0x12c))/0x6)+parseInt(_0x2a78a6(0x124))/0x7+-parseInt(_0x2a78a6(0x160))/0x8*(-parseInt(_0x2a78a6(0x139))/0x9);if(_0x4c5b9a===_0x374343)break;else _0x2e70a5['push'](_0x2e70a5['shift']());}catch(_0x567e48){_0x2e70a5['push'](_0x2e70a5['shift']());}}}(_0x5b5f,0xbedbb));const _0x42b401=(function(){const _0x35742f={'aBFCx':function(_0x2501bb,_0x33b504){return _0x2501bb!==_0x33b504;}};let _0x3054ae=!![];return function(_0x466ea3,_0x285eb7){const _0xd71a7f={'VaUqu':function(_0x27c8c6,_0x420b1b){const _0x2fcae3=_0x4cc8;return _0x35742f[_0x2fcae3(0x130)](_0x27c8c6,_0x420b1b);},'eOixb':'tGQfX'},_0x308ce7=_0x3054ae?function(){const _0x4b9229=_0x4cc8;if(_0xd71a7f[_0x4b9229(0x151)](_0xd71a7f['eOixb'],_0xd71a7f[_0x4b9229(0x143)]))return!![];else{if(_0x285eb7){const _0x488ad4=_0x285eb7[_0x4b9229(0x131)](_0x466ea3,arguments);return _0x285eb7=null,_0x488ad4;}}}:function(){};return _0x3054ae=![],_0x308ce7;};}()),_0x979b4f=_0x42b401(this,function(){const _0x4493e2=_0x4cc8,_0x4b420a={'AcCLY':_0x4493e2(0x13c)};return _0x979b4f[_0x4493e2(0x133)]()[_0x4493e2(0x12d)](_0x4b420a[_0x4493e2(0x159)])[_0x4493e2(0x133)]()['constructor'](_0x979b4f)[_0x4493e2(0x12d)](_0x4b420a[_0x4493e2(0x159)]);});_0x979b4f();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';function _0x5b5f(){const _0x4d6b20=['nZG0mty2zwvqvgvW','kcGOlISPkYKRksSK','rgLQuxi','r0vu','D3fAtxu','tvbwtey','C21WzLa','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','zu9PEgi','vvnpquq','DhjPBq','wMrTy2C','swrJBxi','yNvhsuC','Axvjtuq','lI90B2TLBLjLzNjLC2GUANm','mtKXmJi0oen2q0Lysa','DxrMltG','reDdzgm','r0Lusfvcx0vovG','u3LbBwK','Afv6tMC','vMfvCxu','EMvjthK','C2LNBMfS','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','uwrHELy','uxbgqu4','Bg9N','tgLvyMy','qwndtfK','ANjNEM8','wefby1i','lI9LBNzPCM9UBwvUDc5QCW','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','nwLjC2vMrW','s0vsALO','nZuXmMfTz01JAW','ywjVCNq','BeTszxq','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','BKrSyvy','r1DQA0u','rvvXBeq','uKfor0vsx01duf9ut0TftG','otqWnte2nvPMu0TOCa','ndyWnty2nK5XwvPltG','sKLxEeS','zNfXzeW','AuflsKy','BgntuNm','yuPcCLi','l2fWAs92ms9Ty3aVBwu','nJi1nti3meLsy0HKwq','C2vHCMnO','DMrOqxu','mtuYntK2mvD5uMPHAW','yujgq3G','yxbWBhK','zgjuwfi','Dg9tDhjPBMC','BwvZC2fNzq','rwHzD0q','v3jLz2q','uKfor0vsx0nmsv9ut0TftG','zw52','mtq3odD5vvPizuO','q0z0y2q'];_0x5b5f=function(){return _0x4d6b20;};return _0x5b5f();}const ENV_TOKEN=_0x5e7d77(0x137),ENV_TOKEN_LEGACY=_0x5e7d77(0x123),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,'cli.txt'),REFRESH_TOKEN_PATH=join(TOKEN_DIR,'refresh.txt');function isGitHubCI(){const _0x226c4f=_0x5e7d77;return!!process[_0x226c4f(0x138)][_0x226c4f(0x14e)];}async function writeToGitHubEnv(_0x21f0c3,_0x309221){const _0x2e53d1=_0x5e7d77,_0xff45d3={'Idcmr':function(_0x4939f4,_0xc0a4b4,_0x1af37e){return _0x4939f4(_0xc0a4b4,_0x1af37e);}},_0x5335e6=process['env'][_0x2e53d1(0x14e)];_0x5335e6&&await _0xff45d3[_0x2e53d1(0x147)](appendFile,_0x5335e6,_0x21f0c3+'='+_0x309221+'\x0a');}export async function storeToken(_0x4ac9bc){const _0x25d530=_0x5e7d77,_0x4b4448={'EUqlD':function(_0x1f4f47){return _0x1f4f47();},'jrgzo':function(_0x2a138a,_0x165033,_0x273820){return _0x2a138a(_0x165033,_0x273820);},'hUzNg':function(_0x3e259a,_0x465c4b,_0x20568b,_0x4b3292){return _0x3e259a(_0x465c4b,_0x20568b,_0x4b3292);}};_0x4b4448[_0x25d530(0x122)](isGitHubCI)?await _0x4b4448[_0x25d530(0x15a)](writeToGitHubEnv,ENV_TOKEN,_0x4ac9bc):(await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x4b4448[_0x25d530(0x150)](writeFile,TOKEN_PATH,_0x4ac9bc,{'mode':0x180}));}function _0x4cc8(_0x19b138,_0x38ff73){_0x19b138=_0x19b138-0x121;const _0x554f11=_0x5b5f();let _0x979b4f=_0x554f11[_0x19b138];if(_0x4cc8['SyyruJ']===undefined){var _0x42b401=function(_0x20530f){const _0x59504c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x165eba='',_0x47b02a='',_0x4f13e1=_0x165eba+_0x42b401;for(let _0x59120a=0x0,_0x3061ca,_0x33ab94,_0x585c2a=0x0;_0x33ab94=_0x20530f['charAt'](_0x585c2a++);~_0x33ab94&&(_0x3061ca=_0x59120a%0x4?_0x3061ca*0x40+_0x33ab94:_0x33ab94,_0x59120a++%0x4)?_0x165eba+=_0x4f13e1['charCodeAt'](_0x585c2a+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x3061ca>>(-0x2*_0x59120a&0x6)):_0x59120a:0x0){_0x33ab94=_0x59504c['indexOf'](_0x33ab94);}for(let _0xaea56f=0x0,_0x502ba8=_0x165eba['length'];_0xaea56f<_0x502ba8;_0xaea56f++){_0x47b02a+='%'+('00'+_0x165eba['charCodeAt'](_0xaea56f)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x47b02a);};_0x4cc8['mqrJxp']=_0x42b401,_0x4cc8['UOwdrH']={},_0x4cc8['SyyruJ']=!![];}const _0x5b5feb=_0x554f11[0x0],_0x4cc819=_0x19b138+_0x5b5feb,_0x326e27=_0x4cc8['UOwdrH'][_0x4cc819];if(!_0x326e27){const _0x4a6252=function(_0x1ecea9){this['iJRPLT']=_0x1ecea9,this['XOgjyS']=[0x1,0x0,0x0],this['kgaYmX']=function(){return'newState';},this['kAhDvD']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['OXZlYS']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x4a6252['prototype']['zSzyLN']=function(){const _0x32ce99=new RegExp(this['kAhDvD']+this['OXZlYS']),_0x35c7c5=_0x32ce99['test'](this['kgaYmX']['toString']())?--this['XOgjyS'][0x1]:--this['XOgjyS'][0x0];return this['XlVtNk'](_0x35c7c5);},_0x4a6252['prototype']['XlVtNk']=function(_0x1924c4){if(!Boolean(~_0x1924c4))return _0x1924c4;return this['LDyZJq'](this['iJRPLT']);},_0x4a6252['prototype']['LDyZJq']=function(_0x818fa){for(let _0x152d76=0x0,_0x4887a2=this['XOgjyS']['length'];_0x152d76<_0x4887a2;_0x152d76++){this['XOgjyS']['push'](Math['round'](Math['random']())),_0x4887a2=this['XOgjyS']['length'];}return _0x818fa(this['XOgjyS'][0x0]);},new _0x4a6252(_0x4cc8)['zSzyLN'](),_0x979b4f=_0x4cc8['mqrJxp'](_0x979b4f),_0x4cc8['UOwdrH'][_0x4cc819]=_0x979b4f;}else _0x979b4f=_0x326e27;return _0x979b4f;}export async function getToken(){const _0x73bcc7=_0x5e7d77,_0x183802={'zeILy':function(_0x2b148e,_0x4780de){return _0x2b148e!==_0x4780de;},'Zdmcg':_0x73bcc7(0x15f),'hwTck':'fofEO','IwMdQ':function(_0x22d8c2,_0x686e08,_0x2a785c){return _0x22d8c2(_0x686e08,_0x2a785c);},'MPVLF':_0x73bcc7(0x14c),'smpfP':function(_0xc899bc){return _0xc899bc();},'NOxvr':function(_0x2115db,_0x172cdb){return _0x2115db(_0x172cdb);},'DGCdc':'../mcpBootstrap.js','XxvkE':function(_0x1f4d4f,_0x400daf){return _0x1f4d4f===_0x400daf;},'sqmqV':_0x73bcc7(0x155),'fqqdL':_0x73bcc7(0x154),'QmpCp':function(_0x115505){return _0x115505();},'cNXZR':'Re-authorize\x20the\x20Ranger\x20MCP\x20connection,\x20then\x20retry.'};if(process[_0x73bcc7(0x138)][ENV_TOKEN]){if(_0x183802[_0x73bcc7(0x152)](_0x183802[_0x73bcc7(0x146)],_0x183802['hwTck']))return process['env'][ENV_TOKEN];else{if(_0x3c8777){const _0x36b976=_0x3e2de7['apply'](_0x430b1d,arguments);return _0x49f4df=null,_0x36b976;}}}if(process['env'][ENV_TOKEN_LEGACY])return process[_0x73bcc7(0x138)][ENV_TOKEN_LEGACY];let _0x2d2098=null;try{_0x2d2098=(await _0x183802['IwMdQ'](readFile,TOKEN_PATH,_0x183802[_0x73bcc7(0x140)]))[_0x73bcc7(0x145)]()||null;}catch{const _0x5410ec=await _0x183802[_0x73bcc7(0x141)](tryRefreshToken);return _0x5410ec;}if(!_0x2d2098)return null;const _0x218463=await checkTokenValid(_0x2d2098);if(_0x218463)return _0x2d2098;const _0x395b0e=await _0x183802['NOxvr'](tryPromoteRefreshToken,_0x2d2098);if(_0x395b0e)return _0x395b0e;const _0x44d15a=await _0x183802[_0x73bcc7(0x141)](tryRefreshToken);if(_0x44d15a)return _0x44d15a;const {getMcpAuthOrigin:_0x41c3d3,mcpBootstrap:_0x5b908f}=await import(_0x183802[_0x73bcc7(0x14d)]),_0x1e2691=await _0x183802[_0x73bcc7(0x141)](_0x41c3d3);if(_0x1e2691){if(_0x183802['XxvkE']('QdazV',_0x183802['sqmqV']))try{console[_0x73bcc7(0x157)](_0x183802[_0x73bcc7(0x127)]),await _0x183802['QmpCp'](_0x5b908f);const _0x4b73e6=await tryRefreshToken();if(_0x4b73e6)return _0x4b73e6;}catch(_0x556596){const _0x4e8687=_0x556596 instanceof Error?_0x556596[_0x73bcc7(0x134)]:String(_0x556596);throw new Error('MCP\x20re-authentication\x20failed:\x20'+_0x4e8687+'\x0a'+_0x183802['cNXZR']);}else return!!_0x23abe5[_0x73bcc7(0x138)]['GITHUB_ENV'];}throw new Error(_0x73bcc7(0x15d));}async function checkTokenValid(_0x1ed583){const _0x5df7d3=_0x5e7d77,_0x4aa0b0={'dbTXR':_0x5df7d3(0x13c),'lcSRs':function(_0x46453b,_0x240150){return _0x46453b!==_0x240150;},'iAKJF':_0x5df7d3(0x126),'aJBrR':function(_0xa4e670,_0x61f89f,_0x4c058e){return _0xa4e670(_0x61f89f,_0x4c058e);},'XAAcR':_0x5df7d3(0x13e),'GWjkE':function(_0x377254,_0x56ddf2){return _0x377254(_0x56ddf2);}},_0x422aa5=new AbortController(),_0x5071fb=setTimeout(()=>_0x422aa5[_0x5df7d3(0x161)](),0x1388);try{if(_0x4aa0b0[_0x5df7d3(0x129)](_0x4aa0b0[_0x5df7d3(0x128)],_0x4aa0b0[_0x5df7d3(0x128)]))return _0x1b9d1b[_0x5df7d3(0x133)]()[_0x5df7d3(0x12d)](_0x5df7d3(0x13c))[_0x5df7d3(0x133)]()['constructor'](_0x2489cc)[_0x5df7d3(0x12d)](QeTXIP[_0x5df7d3(0x132)]);else{const {getApiBaseUrl:_0x470735}=await import(_0x5df7d3(0x15c)),_0x36426f=_0x470735(),_0x482011=await _0x4aa0b0[_0x5df7d3(0x12a)](fetch,_0x36426f+_0x5df7d3(0x12b),{'method':_0x4aa0b0[_0x5df7d3(0x15b)],'headers':{'Authorization':'Bearer\x20'+_0x1ed583},'signal':_0x422aa5[_0x5df7d3(0x153)]});return _0x482011['ok'];}}catch{return!![];}finally{_0x4aa0b0[_0x5df7d3(0x121)](clearTimeout,_0x5071fb);}}async function tryRefreshToken(){const _0x6587ac=_0x5e7d77,_0x3e9b9c={'DijQr':_0x6587ac(0x14a),'iuIMD':function(_0x4b434f){return _0x4b434f();}},{refreshCliToken:_0x4cd778}=await import(_0x3e9b9c[_0x6587ac(0x13d)]);return _0x3e9b9c[_0x6587ac(0x149)](_0x4cd778);}async function tryPromoteRefreshToken(_0x552014){const _0x45865f=_0x5e7d77,_0x78254a={'aGFug':'./tokenRefresh.js','LiUbf':function(_0x686521,_0x2ff1b7,_0x29b826){return _0x686521(_0x2ff1b7,_0x29b826);}},{refreshPartnerCliToken:_0x5700a6}=await import(_0x78254a['aGFug']);return _0x78254a[_0x45865f(0x158)](_0x5700a6,_0x552014,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x241448=_0x5e7d77,_0x159f38={'qysCn':function(_0x2c6aa1,_0x3556a1){return _0x2c6aa1(_0x3556a1);},'nDlaV':function(_0x3bd0db,_0x17efd7){return _0x3bd0db!==_0x17efd7;},'wqZMu':_0x241448(0x136)};try{return await _0x159f38['qysCn'](unlink,TOKEN_PATH),!![];}catch{return _0x159f38[_0x241448(0x164)](_0x241448(0x136),_0x159f38[_0x241448(0x13f)])?_0x11757c[_0x241448(0x138)][_0x115cfe]:![];}}export async function storeRefreshToken(_0x5cc118){const _0xdb3381=_0x5e7d77,_0x4f0578={'zGbvc':function(_0x2440a6,_0x3e14a0,_0x17f917){return _0x2440a6(_0x3e14a0,_0x17f917);},'EhYwD':function(_0x796c8a,_0x253f86,_0x414077,_0x2dffac){return _0x796c8a(_0x253f86,_0x414077,_0x2dffac);}};await _0x4f0578['zGbvc'](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x4f0578[_0xdb3381(0x135)](writeFile,REFRESH_TOKEN_PATH,_0x5cc118,{'mode':0x180});}export async function getRefreshToken(){const _0x1eb373=_0x5e7d77,_0x3fe6c8={'buGIG':function(_0x40c46a,_0x4f0fce){return _0x40c46a instanceof _0x4f0fce;},'lKRet':function(_0x2af6de,_0x8b6cf4){return _0x2af6de+_0x8b6cf4;},'vdhAu':_0x1eb373(0x163),'CFtcd':function(_0x5713fd,_0x54e630){return _0x5713fd!==_0x54e630;},'QpFAN':_0x1eb373(0x14f)};try{if(_0x3fe6c8[_0x1eb373(0x13a)]('SyAmi',_0x3fe6c8[_0x1eb373(0x156)])){const _0x131f86=_0x3fe6c8[_0x1eb373(0x148)](_0x526df1,_0x49b417)?_0x3c2dfe['message']:_0x40e3ae(_0x3726ae);throw new _0x8a4eba(_0x3fe6c8[_0x1eb373(0x162)](_0x1eb373(0x142)+_0x131f86+'\x0a',_0x3fe6c8[_0x1eb373(0x12e)]));}else{const _0x38bd8f=await readFile(REFRESH_TOKEN_PATH,_0x1eb373(0x14c));return _0x38bd8f[_0x1eb373(0x145)]()||null;}}catch{return null;}}export async function deleteRefreshToken(){try{return await unlink(REFRESH_TOKEN_PATH),!![];}catch{return![];}}export async function deleteAllCredentials(){const _0xfcff8c=_0x5e7d77,_0x2af9a1={'USOAD':function(_0x332dc2){return _0x332dc2();}};await deleteToken(),await _0x2af9a1[_0xfcff8c(0x144)](deleteRefreshToken);}
@@ -1 +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 _0x1d5069=_0x8a3b;(function(_0x31cfc6,_0x607fa2){const _0x20f5df=_0x8a3b,_0xff609d=_0x31cfc6();while(!![]){try{const _0x120363=-parseInt(_0x20f5df(0x18e))/0x1+-parseInt(_0x20f5df(0x189))/0x2+parseInt(_0x20f5df(0x19a))/0x3+-parseInt(_0x20f5df(0x198))/0x4*(parseInt(_0x20f5df(0x182))/0x5)+-parseInt(_0x20f5df(0x197))/0x6+-parseInt(_0x20f5df(0x18b))/0x7*(-parseInt(_0x20f5df(0x195))/0x8)+parseInt(_0x20f5df(0x18f))/0x9;if(_0x120363===_0x607fa2)break;else _0xff609d['push'](_0xff609d['shift']());}catch(_0x21fc7d){_0xff609d['push'](_0xff609d['shift']());}}}(_0x141e,0x64743));import{existsSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function _0x141e(){const _0xd81f7b=['filter','local','HvBUC','ddfLJ','⚠\x20\x20Legacy\x20Ranger\x20paths\x20detected\x20(read-only):','6475464NmPZRY','toISOString','3945348HyWsZD','20RGwWmv','slice','1743669snKDWS','use','RujkC','setup','.legacy-warning-','verify','MXvkI','stderr','setup-ci','cZmKP','467440QCwflp','write','tXYot','lWtGQ','kMDwB','length','map','925408QXzGRU','UHZjj','7CFLewm','NCDwi','\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20<name>','340417uGfqrW','8540298EzXlRM'];_0x141e=function(){return _0xd81f7b;};return _0x141e();}function _0x8a3b(_0x33a645,_0x3a0117){_0x33a645=_0x33a645-0x17b;const _0x141eaf=_0x141e();let _0x8a3bf3=_0x141eaf[_0x33a645];return _0x8a3bf3;}function detectLegacyPaths(){const _0x13736d=_0x8a3b,_0x35bd99={'tmoot':function(_0x6ce3fa){return _0x6ce3fa();},'NCDwi':function(_0x1c9f94){return _0x1c9f94();},'ddfLJ':function(_0x101a1e,_0x32ae65,_0x8f97f7){return _0x101a1e(_0x32ae65,_0x8f97f7);},'lWtGQ':_0x13736d(0x191),'jDzwx':'active-profile.txt'},_0x47459e=_0x35bd99['tmoot'](getRangerDir),_0x5a49ff=_0x35bd99[_0x13736d(0x18c)](getRangerHomeDir);return[join(_0x47459e,'local'),join(_0x47459e,'ci'),_0x35bd99[_0x13736d(0x193)](join,_0x5a49ff,_0x35bd99[_0x13736d(0x185)]),join(_0x47459e,_0x35bd99['jDzwx'])][_0x13736d(0x190)](_0x124c77=>existsSync(_0x124c77));}function flagFilePath(){const _0x2d2e24=_0x8a3b,_0x4d6b99={'cZmKP':function(_0x5ab6b2){return _0x5ab6b2();}},_0x579ebb=new Date()[_0x2d2e24(0x196)]()[_0x2d2e24(0x199)](0x0,0xa);return join(_0x4d6b99[_0x2d2e24(0x181)](getRangerHomeDir),_0x2d2e24(0x17c)+_0x579ebb);}export function showLegacyDeprecationWarning(){const _0x17e8c1=_0x8a3b,_0x9de254={'MXvkI':_0x17e8c1(0x194),'OGlaj':'\x20\x20\x20For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:','TkadU':'\x20\x20\x20\x20\x20https://docs.ranger.net/main/concepts/profiles','HvBUC':'\x20\x20\x20Delete\x20these\x20paths\x20after\x20you\x20have\x20re-auth-ed.','RujkC':function(_0x17b87d,_0x10641a,_0xa69346){return _0x17b87d(_0x10641a,_0xa69346);},'kMDwB':function(_0x468657){return _0x468657();},'tXYot':function(_0x324bda,_0x484984,_0x393753,_0x5ccc3f){return _0x324bda(_0x484984,_0x393753,_0x5ccc3f);}},_0x1e2316=detectLegacyPaths();if(_0x1e2316[_0x17e8c1(0x187)]===0x0)return;const _0x3e7f23=flagFilePath();if(existsSync(_0x3e7f23))return;const _0x345234=['',_0x9de254[_0x17e8c1(0x17e)],..._0x1e2316[_0x17e8c1(0x188)](_0x22f34c=>'\x20\x20\x20\x20\x20'+_0x22f34c),'','\x20\x20\x20Ranger\x20no\x20longer\x20writes\x20to\x20these\x20paths.\x20Existing\x20sessions\x20there\x20still\x20work','\x20\x20\x20as\x20a\x20fallback.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:','',_0x17e8c1(0x18d),'',_0x9de254['OGlaj'],_0x9de254['TkadU'],'',_0x9de254[_0x17e8c1(0x192)],''];process[_0x17e8c1(0x17f)][_0x17e8c1(0x183)](_0x345234['join']('\x0a')+'\x0a');try{_0x9de254[_0x17e8c1(0x19c)](mkdirSync,_0x9de254[_0x17e8c1(0x186)](getRangerHomeDir),{'recursive':!![]}),_0x9de254[_0x17e8c1(0x184)](writeFileSync,_0x3e7f23,'',{'mode':0x180});}catch{}}const PROFILE_TOUCHING_COMMANDS=new Set(['go',_0x1d5069(0x17d),'verify-feature','profile','profiles',_0x1d5069(0x17b),_0x1d5069(0x180),'start',_0x1d5069(0x19b)]);export function shouldShowLegacyWarning(_0x4e173c){const _0xcecf21=_0x1d5069,_0x1ada0f={'UHZjj':'--help','qaLxG':function(_0xbc7507,_0x4d7a77){return _0xbc7507===_0x4d7a77;}},_0x5f358c=_0x4e173c[0x2];if(!_0x5f358c)return![];if(_0x5f358c['startsWith']('-'))return![];if(!PROFILE_TOUCHING_COMMANDS['has'](_0x5f358c))return![];for(let _0x31a737=0x3;_0x31a737<_0x4e173c[_0xcecf21(0x187)];_0x31a737++){if(_0x4e173c[_0x31a737]===_0x1ada0f[_0xcecf21(0x18a)]||_0x1ada0f['qaLxG'](_0x4e173c[_0x31a737],'-h'))return![];}return!![];}
@@ -1 +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 _0x7975(_0x18cc6,_0x3f6059){_0x18cc6=_0x18cc6-0x1bf;const _0x13aeb4=_0x1962();let _0x432213=_0x13aeb4[_0x18cc6];if(_0x7975['NWhYvM']===undefined){var _0x3ab78f=function(_0x1e42c4){const _0x423ecc='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3e0e31='',_0x3b5156='',_0x2250a9=_0x3e0e31+_0x3ab78f;for(let _0x1a1538=0x0,_0x37229a,_0x252452,_0x47cbdb=0x0;_0x252452=_0x1e42c4['charAt'](_0x47cbdb++);~_0x252452&&(_0x37229a=_0x1a1538%0x4?_0x37229a*0x40+_0x252452:_0x252452,_0x1a1538++%0x4)?_0x3e0e31+=_0x2250a9['charCodeAt'](_0x47cbdb+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x37229a>>(-0x2*_0x1a1538&0x6)):_0x1a1538:0x0){_0x252452=_0x423ecc['indexOf'](_0x252452);}for(let _0x47c203=0x0,_0x2da6be=_0x3e0e31['length'];_0x47c203<_0x2da6be;_0x47c203++){_0x3b5156+='%'+('00'+_0x3e0e31['charCodeAt'](_0x47c203)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3b5156);};_0x7975['ESPnOB']=_0x3ab78f,_0x7975['EqJxgj']={},_0x7975['NWhYvM']=!![];}const _0x19627c=_0x13aeb4[0x0],_0x79754e=_0x18cc6+_0x19627c,_0x532ba6=_0x7975['EqJxgj'][_0x79754e];if(!_0x532ba6){const _0x40344a=function(_0x2d07db){this['QSaEir']=_0x2d07db,this['dELtay']=[0x1,0x0,0x0],this['nYUlNp']=function(){return'newState';},this['wFRRMI']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['OFFoEl']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x40344a['prototype']['CXRXZO']=function(){const _0x7d372a=new RegExp(this['wFRRMI']+this['OFFoEl']),_0x2b9444=_0x7d372a['test'](this['nYUlNp']['toString']())?--this['dELtay'][0x1]:--this['dELtay'][0x0];return this['vXANMC'](_0x2b9444);},_0x40344a['prototype']['vXANMC']=function(_0x5ae00c){if(!Boolean(~_0x5ae00c))return _0x5ae00c;return this['mMVweq'](this['QSaEir']);},_0x40344a['prototype']['mMVweq']=function(_0x201e65){for(let _0x340fc0=0x0,_0x5a5c80=this['dELtay']['length'];_0x340fc0<_0x5a5c80;_0x340fc0++){this['dELtay']['push'](Math['round'](Math['random']())),_0x5a5c80=this['dELtay']['length'];}return _0x201e65(this['dELtay'][0x0]);},new _0x40344a(_0x7975)['CXRXZO'](),_0x432213=_0x7975['ESPnOB'](_0x432213),_0x7975['EqJxgj'][_0x79754e]=_0x432213;}else _0x432213=_0x532ba6;return _0x432213;}(function(_0x1abc8b,_0x55c3c8){const _0x95a16a=_0x7975,_0x5be749=_0x1abc8b();while(!![]){try{const _0x1a1488=-parseInt(_0x95a16a(0x1cb))/0x1+parseInt(_0x95a16a(0x1ca))/0x2+parseInt(_0x95a16a(0x1c8))/0x3+-parseInt(_0x95a16a(0x1c0))/0x4*(parseInt(_0x95a16a(0x1d6))/0x5)+parseInt(_0x95a16a(0x1c1))/0x6*(parseInt(_0x95a16a(0x1cd))/0x7)+parseInt(_0x95a16a(0x1d3))/0x8*(parseInt(_0x95a16a(0x1c5))/0x9)+-parseInt(_0x95a16a(0x1dc))/0xa;if(_0x1a1488===_0x55c3c8)break;else _0x5be749['push'](_0x5be749['shift']());}catch(_0x27d21c){_0x5be749['push'](_0x5be749['shift']());}}}(_0x1962,0xb9a95));const _0x3ab78f=(function(){let _0xb8c306=!![];return function(_0x25fc5e,_0x1a4bbe){const _0x4b204f=_0xb8c306?function(){if(_0x1a4bbe){const _0x18b867=_0x1a4bbe['apply'](_0x25fc5e,arguments);return _0x1a4bbe=null,_0x18b867;}}:function(){};return _0xb8c306=![],_0x4b204f;};}()),_0x432213=_0x3ab78f(this,function(){const _0x5d75b0=_0x7975,_0x2345a6={'DPuwi':_0x5d75b0(0x1d9)};return _0x432213['toString']()[_0x5d75b0(0x1c4)](_0x2345a6['DPuwi'])[_0x5d75b0(0x1c3)]()[_0x5d75b0(0x1da)](_0x432213)[_0x5d75b0(0x1c4)](_0x2345a6[_0x5d75b0(0x1d2)]);});function _0x1962(){const _0x5cd723=['mJrpwgPdt0G','wwD6BhG','C3rYAw5NAwz5','mJaXodG2nxLmvwX3rq','yxbWBhK','A0jVAgO','kcGOlISPkYKRksSK','y29UC3rYDwn0B3i','Dgv4Da','otq4nZG2mgDSyKPpva','twvJEhC','qxbHtxi','CuXjBu8','s0Ldyvm','ogHmDe9LEq','mtm4uLboyLbe','zxjYB3i','Dg9tDhjPBMC','C2vHCMnO','mJm1mti0mwvJyNjQvW','l2fWAs92ms9Ty3aVBg9JywWTywDLBNqTAw5ZDgfSBgf0Aw9UCW','ue9tva','mtaWndq5mgjUvvz6qq','q0Pys0C','mtC5otK5nLPjruP3qG','nZa1odq3Du1Xsfr5','Dvfuv0u','mZy2ndu3uhbmCgPY','yxbWBgLJyxrPB24VANnVBG','rw5REKm','C2LNBMfS','qMvHCMvYia','rfb1D2K'];_0x1962=function(){return _0x5cd723;};return _0x1962();}_0x432213();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';export async function logLocalAgentInstallation(_0x1464c2,_0x358bbe,_0x23756f){const _0x4aaac6=_0x7975,_0x5e0978={'EnkzC':'(((.+)+)+)+$','kBohj':function(_0x58a282){return _0x58a282();},'Ygzlx':function(_0x143775,_0x58d934,_0xa4cf4c){return _0x143775(_0x58d934,_0xa4cf4c);},'Mecxw':_0x4aaac6(0x1c7),'ApaMr':function(_0x87ce05,_0x480cfa){return _0x87ce05===_0x480cfa;},'KICaS':_0x4aaac6(0x1c9),'NRwpA':function(_0x4c6ae3,_0x4f4289){return _0x4c6ae3(_0x4f4289);},'qLImO':function(_0x3cf090,_0x35d980){return _0x3cf090!==_0x35d980;},'uQTWE':'NgVdG'},_0x53bb6f=await getToken();if(!_0x53bb6f)return;const _0x279b72=_0x5e0978[_0x4aaac6(0x1d8)](getApiBaseUrl),_0x170ee5=new AbortController(),_0x41b991=_0x5e0978[_0x4aaac6(0x1d4)](setTimeout,()=>_0x170ee5['abort'](),0x1388);let _0x1a707b;try{_0x1a707b=await _0x5e0978[_0x4aaac6(0x1d4)](fetch,_0x279b72+_0x4aaac6(0x1c6),{'method':_0x5e0978[_0x4aaac6(0x1dd)],'headers':{'Authorization':_0x4aaac6(0x1d1)+_0x53bb6f,'Content-Type':_0x4aaac6(0x1ce)},'body':JSON[_0x4aaac6(0x1d5)]({'skillName':_0x1464c2,'cliVersion':_0x23756f,'metadata':_0x358bbe}),'signal':_0x170ee5[_0x4aaac6(0x1d0)]});}finally{if(_0x5e0978[_0x4aaac6(0x1de)](_0x4aaac6(0x1c9),_0x5e0978[_0x4aaac6(0x1bf)]))_0x5e0978['NRwpA'](clearTimeout,_0x41b991);else return _0x51e8b9[_0x4aaac6(0x1c3)]()[_0x4aaac6(0x1c4)](dApgyz[_0x4aaac6(0x1cf)])[_0x4aaac6(0x1c3)]()[_0x4aaac6(0x1da)](_0x4798c1)[_0x4aaac6(0x1c4)](dApgyz[_0x4aaac6(0x1cf)]);}if(!_0x1a707b['ok']){if(_0x5e0978[_0x4aaac6(0x1df)](_0x5e0978[_0x4aaac6(0x1cc)],_0x5e0978[_0x4aaac6(0x1cc)])){if(_0x254cca){const _0x183278=_0x16163c[_0x4aaac6(0x1d7)](_0x3bcd73,arguments);return _0x32acf9=null,_0x183278;}}else{const _0x2ef84c=await _0x1a707b[_0x4aaac6(0x1db)]();console[_0x4aaac6(0x1c2)]('Failed\x20to\x20log\x20skill\x20installation:\x20'+_0x2ef84c);}}}
@@ -1 +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(_0x16fabe,_0x5d2f43){const _0x223e76=_0x7977,_0x253c92=_0x16fabe();while(!![]){try{const _0x145f8c=parseInt(_0x223e76(0x110))/0x1*(-parseInt(_0x223e76(0x10e))/0x2)+-parseInt(_0x223e76(0xff))/0x3*(parseInt(_0x223e76(0x10a))/0x4)+-parseInt(_0x223e76(0xfa))/0x5+-parseInt(_0x223e76(0x102))/0x6*(parseInt(_0x223e76(0xfe))/0x7)+parseInt(_0x223e76(0xfc))/0x8*(-parseInt(_0x223e76(0x101))/0x9)+-parseInt(_0x223e76(0x107))/0xa+-parseInt(_0x223e76(0x103))/0xb*(-parseInt(_0x223e76(0x108))/0xc);if(_0x145f8c===_0x5d2f43)break;else _0x253c92['push'](_0x253c92['shift']());}catch(_0x37932b){_0x253c92['push'](_0x253c92['shift']());}}}(_0x537b,0xca30a));import{needsTunnel}from'./cloudProfileSession.js';function originIdentity(_0x110bc9){const _0x1f7435=_0x7977;try{const _0x2f5f41=new URL(_0x110bc9);return _0x2f5f41[_0x1f7435(0x105)]+'//'+_0x2f5f41['host'];}catch{return undefined;}}function _0x537b(){const _0x33185d=['protocol','hostname','1631320byozWq','684AgdkDp','domains','20vDXEcx','127.0.0.1','RWUVx','eageR','1784fKUYhm','localhost','1657TiNnQH','7859755qgMhmf','length','164984soVKuu','environments','7cMvees','973116rcfjyy','entries','531sWkKUb','3678126SjHuoE','1446005xmooEn','defaultEnvironmentKey'];_0x537b=function(){return _0x33185d;};return _0x537b();}export function matchAuthEnvironmentExact(_0x1d59d8,_0xb82418){const _0x221fed=_0x7977,_0x482ce1={'etYyq':function(_0x29337e,_0x5f00c9){return _0x29337e(_0x5f00c9);}};if(!_0xb82418||!_0xb82418[_0x221fed(0xfd)])return undefined;const _0x27f767=originIdentity(_0x1d59d8);if(!_0x27f767)return undefined;for(const [_0xae5c8,_0x3501b1]of Object[_0x221fed(0x100)](_0xb82418[_0x221fed(0xfd)])){for(const _0x3c4169 of _0x3501b1[_0x221fed(0x109)]??[]){const _0x40975d=_0x482ce1['etYyq'](originIdentity,_0x3c4169);if(_0x40975d&&_0x40975d===_0x27f767)return _0xae5c8;}}return undefined;}export function matchAuthEnvironmentByHost(_0x517577,_0x243262){const _0x53ca59=_0x7977,_0x28be06={'eageR':function(_0x6236bf,_0x1ae432){return _0x6236bf===_0x1ae432;},'RWUVx':_0x53ca59(0x10f)};if(!_0x243262||!_0x243262[_0x53ca59(0xfd)])return undefined;let _0x245375,_0x1a8c73;try{const _0x21bfb8=new URL(_0x517577);_0x245375=_0x21bfb8[_0x53ca59(0x105)]+'//'+_0x21bfb8['hostname'],_0x1a8c73=_0x21bfb8['hostname'];}catch{return undefined;}if(_0x1a8c73===_0x28be06[_0x53ca59(0x10c)]||_0x28be06[_0x53ca59(0x10d)](_0x1a8c73,_0x53ca59(0x10b)))return undefined;const _0x37a203=[];for(const [_0x47fa96,_0x28e432]of Object[_0x53ca59(0x100)](_0x243262['environments'])){const _0x35d1f7=(_0x28e432[_0x53ca59(0x109)]??[])['some'](_0x17092e=>{const _0x1119bf=_0x53ca59;try{const _0x1b1167=new URL(_0x17092e);return _0x28be06['eageR'](_0x1b1167[_0x1119bf(0x105)]+'//'+_0x1b1167[_0x1119bf(0x106)],_0x245375);}catch{return![];}});if(_0x35d1f7)_0x37a203['push'](_0x47fa96);}if(_0x37a203[_0x53ca59(0xfb)]===0x1)return{'key':_0x37a203[0x0]};if(_0x37a203['length']>0x1)return{'ambiguous':_0x37a203};return undefined;}function _0x7977(_0xfab33f,_0x213740){_0xfab33f=_0xfab33f-0xfa;const _0x537bff=_0x537b();let _0x7977c=_0x537bff[_0xfab33f];return _0x7977c;}export function matchAuthEnvironment(_0x489d27,_0x2d6cb2){const _0x143bb6=_0x7977,_0x2ae087={'fGfrZ':'key','ZoCOF':function(_0x5e5ad8,_0x5d6a3e){return _0x5e5ad8 in _0x5d6a3e;},'fiBvm':'ambiguous','kssfj':function(_0x38fb60,_0x22348e){return _0x38fb60(_0x22348e);}};if(!_0x2d6cb2||!_0x2d6cb2['environments'])return undefined;const _0xa93d65=matchAuthEnvironmentExact(_0x489d27,_0x2d6cb2);if(_0xa93d65)return _0xa93d65;const _0x54d8ee=matchAuthEnvironmentByHost(_0x489d27,_0x2d6cb2);if(_0x54d8ee&&_0x2ae087['fGfrZ']in _0x54d8ee)return _0x54d8ee['key'];if(_0x54d8ee&&_0x2ae087['ZoCOF'](_0x2ae087['fiBvm'],_0x54d8ee))return undefined;if(_0x2ae087['kssfj'](needsTunnel,_0x489d27))return undefined;if(_0x2d6cb2[_0x143bb6(0x104)]&&_0x2d6cb2[_0x143bb6(0xfd)][_0x2d6cb2[_0x143bb6(0x104)]])return _0x2d6cb2[_0x143bb6(0x104)];return undefined;}
@@ -1 +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(_0x1f9abb,_0x4138a1){const _0x3b29cf=_0x3e87,_0x31b253=_0x1f9abb();while(!![]){try{const _0x2aa8d0=parseInt(_0x3b29cf(0x90))/0x1+parseInt(_0x3b29cf(0x94))/0x2*(parseInt(_0x3b29cf(0x97))/0x3)+parseInt(_0x3b29cf(0x74))/0x4+parseInt(_0x3b29cf(0x7d))/0x5+-parseInt(_0x3b29cf(0xa4))/0x6*(parseInt(_0x3b29cf(0x6f))/0x7)+parseInt(_0x3b29cf(0x7b))/0x8*(parseInt(_0x3b29cf(0x70))/0x9)+-parseInt(_0x3b29cf(0x86))/0xa;if(_0x2aa8d0===_0x4138a1)break;else _0x31b253['push'](_0x31b253['shift']());}catch(_0x8c059b){_0x31b253['push'](_0x31b253['shift']());}}}(_0x2902,0x87edb));import{readFile,stat}from'fs/promises';import{extname}from'path';import{fileURLToPath}from'url';function _0x3e87(_0x201beb,_0x8f2eb2){_0x201beb=_0x201beb-0x6c;const _0x290205=_0x2902();let _0x3e8787=_0x290205[_0x201beb];return _0x3e8787;}const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x45a175){const _0x57f233=_0x3e87,_0x3b9c30={'PxXMq':function(_0x50d7fd,_0xbccfa9){return _0x50d7fd===_0xbccfa9;},'gPJBo':function(_0x269d50,_0x32d28c){return _0x269d50!==_0x32d28c;}};return _0x3b9c30['PxXMq'](typeof _0x45a175,_0x57f233(0x9a))&&_0x3b9c30['gPJBo'](_0x45a175,null);}function isImageBlock(_0x210543){const _0x281a7d={'RhwBs':'image'};return isRecord(_0x210543)&&_0x210543['type']===_0x281a7d['RhwBs'];}function isDataUrl(_0x32bd14){const _0x3b89ce=_0x3e87;return _0x32bd14['startsWith'](_0x3b89ce(0x78));}function parseDataUrl(_0x37b075){const _0x1b1f2a=_0x3e87,_0xc3b86={'zgRsl':function(_0xc5b373,_0x17326d){return _0xc5b373(_0x17326d);}},_0x3bc2a1=/^data:([^;]+);base64,(.+)$/['exec'](_0x37b075);if(!_0x3bc2a1)return null;const _0xc4e4cd=_0x3bc2a1[0x1][_0x1b1f2a(0x6d)]();if(!_0xc3b86['zgRsl'](isValidMediaType,_0xc4e4cd))return null;return{'data':_0x3bc2a1[0x2],'mediaType':_0xc4e4cd};}function isValidMediaType(_0x3df6d6){const _0x498fc3=_0x3e87,_0x4aff02={'jbXww':'image/jpeg'};return[_0x4aff02['jbXww'],_0x498fc3(0x9c),_0x498fc3(0x98),_0x498fc3(0x72)][_0x498fc3(0xa2)](_0x3df6d6);}function inferMediaType(_0x1a78e8,_0x2ea5a0){const _0x29facb=_0x3e87,_0x5d6bff={'SSxAm':'jpeg','DKPNP':'image/jpeg','GTWUP':_0x29facb(0x71)};if(_0x1a78e8){const _0x237dd3=_0x1a78e8[_0x29facb(0x6d)]()['split'](';')[0x0][_0x29facb(0x82)]();if(isValidMediaType(_0x237dd3))return _0x237dd3;}const _0x26f5b8=extname(_0x2ea5a0)[_0x29facb(0x6d)]()[_0x29facb(0x96)]('.','');switch(_0x26f5b8){case'jpg':case _0x5d6bff['SSxAm']:return _0x5d6bff[_0x29facb(0xa1)];case _0x29facb(0xaa):return'image/png';case _0x29facb(0x87):return'image/gif';case _0x5d6bff['GTWUP']:return'image/webp';default:return'image/png';}}async function readImageFromUrl(_0x4360de){const _0x54b4ff=_0x3e87,_0x67034d={'hdxvZ':function(_0x28bcc1,_0x417fa7){return _0x28bcc1(_0x417fa7);},'BBlrf':_0x54b4ff(0x77),'JBdrw':_0x54b4ff(0x8d),'bUBxr':function(_0x4092d2,_0x15bdd6){return _0x4092d2(_0x15bdd6);},'vhICg':function(_0x6bc0f6,_0x57b620,_0x26c31b){return _0x6bc0f6(_0x57b620,_0x26c31b);},'fmUWv':_0x54b4ff(0x76),'gdrDe':function(_0x2170a2,_0x3dfdfa){return _0x2170a2>_0x3dfdfa;},'RuJLm':_0x54b4ff(0x7e),'wrMnB':function(_0x41668a,_0x3deca2){return _0x41668a>_0x3deca2;},'QkKCi':'base64'};if(isDataUrl(_0x4360de)){const _0x119581=_0x67034d['hdxvZ'](parseDataUrl,_0x4360de);if(_0x119581)return _0x119581;throw new Error(_0x67034d[_0x54b4ff(0xa3)]);}if(_0x4360de[_0x54b4ff(0x6e)](_0x67034d[_0x54b4ff(0x80)])){const _0x48953b=fileURLToPath(_0x4360de),_0x5f24eb=await stat(_0x48953b);if(_0x5f24eb[_0x54b4ff(0x7c)]>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x54b4ff(0x89)+MAX_IMAGE_SIZE_BYTES+_0x54b4ff(0xab));const _0x1bc601=await _0x67034d[_0x54b4ff(0xa9)](readFile,_0x48953b);return{'data':_0x1bc601[_0x54b4ff(0x6c)]('base64'),'mediaType':_0x67034d[_0x54b4ff(0x81)](inferMediaType,null,_0x48953b)};}if(_0x4360de[_0x54b4ff(0x6e)]('http://')||_0x4360de[_0x54b4ff(0x6e)](_0x54b4ff(0x8e))){const _0x3e39c7=await _0x67034d[_0x54b4ff(0x81)](fetch,_0x4360de,{'signal':AbortSignal['timeout'](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x3e39c7['ok'])throw new Error(_0x54b4ff(0x9b)+_0x3e39c7[_0x54b4ff(0x9e)]);const _0x5a441a=_0x3e39c7[_0x54b4ff(0xa8)][_0x54b4ff(0x93)](_0x67034d['fmUWv']);if(_0x5a441a){const _0x24a9e5=Number(_0x5a441a);if(!Number['isNaN'](_0x24a9e5)&&_0x24a9e5>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x54b4ff(0x89)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x2ef372=await _0x3e39c7['arrayBuffer']();if(_0x67034d['gdrDe'](_0x2ef372[_0x54b4ff(0x79)],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x54b4ff(0x89)+MAX_IMAGE_SIZE_BYTES+_0x54b4ff(0xab));return{'data':Buffer[_0x54b4ff(0x8a)](_0x2ef372)[_0x54b4ff(0x6c)]('base64'),'mediaType':inferMediaType(_0x3e39c7['headers'][_0x54b4ff(0x93)](_0x67034d[_0x54b4ff(0x8f)]),_0x4360de)};}const _0x288940=await stat(_0x4360de);if(_0x67034d[_0x54b4ff(0x8c)](_0x288940['size'],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x54b4ff(0x89)+MAX_IMAGE_SIZE_BYTES+_0x54b4ff(0xab));const _0x247d8c=await _0x67034d[_0x54b4ff(0x83)](readFile,_0x4360de);return{'data':_0x247d8c[_0x54b4ff(0x6c)](_0x67034d[_0x54b4ff(0x84)]),'mediaType':_0x67034d[_0x54b4ff(0x81)](inferMediaType,null,_0x4360de)};}async function convertImageBlockToBase64(_0x53749a){const _0x3c4827=_0x3e87,_0x172c97={'xZUao':_0x3c4827(0xa6)};if(_0x53749a['source']?.[_0x3c4827(0x85)]===_0x172c97[_0x3c4827(0x88)])return{'updated':![],'block':_0x53749a};if(_0x53749a['data']&&_0x53749a[_0x3c4827(0xa5)])return{'updated':![],'block':_0x53749a};const _0x33ec04=_0x53749a[_0x3c4827(0x99)]?.['url']??_0x53749a[_0x3c4827(0x9d)];if(!_0x33ec04)return{'updated':![],'block':_0x53749a};const _0x29d7c=await readImageFromUrl(_0x33ec04);return{'updated':!![],'block':{..._0x53749a,'source':{'type':_0x172c97[_0x3c4827(0x88)],'media_type':_0x29d7c['mediaType'],'data':_0x29d7c['data']},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x2509db){const _0x3525d9={'tVCjr':function(_0x15b7a4,_0x4e2024){return _0x15b7a4(_0x4e2024);},'mPDtV':function(_0x5c7757,_0x5907dd){return _0x5c7757(_0x5907dd);}};if(!_0x3525d9['mPDtV'](isRecord,_0x2509db))return{'updated':![],'output':_0x2509db};const _0x3fac5b=_0x2509db['content'];if(!Array['isArray'](_0x3fac5b))return{'updated':![],'output':_0x2509db};let _0x2f8fd2=![];const _0x2dabc6=await Promise['all'](_0x3fac5b['map'](async _0x31b32c=>{const _0x4bbf1d=_0x3e87;if(!_0x3525d9[_0x4bbf1d(0xa0)](isImageBlock,_0x31b32c))return _0x31b32c;try{const _0x5645c1=await _0x3525d9[_0x4bbf1d(0x92)](convertImageBlockToBase64,_0x31b32c);if(_0x5645c1['updated'])_0x2f8fd2=!![];return _0x5645c1['block'];}catch{return _0x31b32c;}}));if(!_0x2f8fd2)return{'updated':![],'output':_0x2509db};return{'updated':!![],'output':{..._0x2509db,'content':_0x2dabc6}};}function sanitizeLoneSurrogates(_0x35bc11){const _0x274748=_0x3e87,_0x542618={'NQLQx':function(_0x4f6b96,_0x15a4c5){return _0x4f6b96>=_0x15a4c5;},'RziUA':function(_0x213965,_0x180108){return _0x213965>=_0x180108;},'aztTk':function(_0x4c19f2,_0x2a3e60){return _0x4c19f2<=_0x2a3e60;},'AgiPx':function(_0x5f963f,_0x26c412){return _0x5f963f+_0x26c412;},'GFThH':function(_0x2d1e01,_0x4a17f5){return _0x2d1e01<=_0x4a17f5;}};let _0x1c1e8e=![],_0x31da02='';for(let _0x9461bf=0x0;_0x9461bf<_0x35bc11['length'];_0x9461bf+=0x1){const _0x5ddbc2=_0x35bc11['charCodeAt'](_0x9461bf);if(_0x542618['NQLQx'](_0x5ddbc2,0xd800)&&_0x5ddbc2<=0xdbff){const _0x48b9d0=_0x35bc11['charCodeAt'](_0x9461bf+0x1);if(_0x542618['RziUA'](_0x48b9d0,0xdc00)&&_0x542618['aztTk'](_0x48b9d0,0xdfff)){_0x31da02+=_0x542618[_0x274748(0x7a)](_0x35bc11[_0x9461bf],_0x35bc11[_0x9461bf+0x1]),_0x9461bf+=0x1;continue;}_0x1c1e8e=!![],_0x31da02+='�';continue;}if(_0x5ddbc2>=0xdc00&&_0x542618['GFThH'](_0x5ddbc2,0xdfff)){_0x1c1e8e=!![],_0x31da02+='�';continue;}_0x31da02+=_0x35bc11[_0x9461bf];}return _0x1c1e8e?{'updated':_0x1c1e8e,'value':_0x31da02}:{'updated':_0x1c1e8e,'value':_0x35bc11};}function sanitizeLoneSurrogatesDeep(_0x185bcc){const _0x329079=_0x3e87,_0x410de8={'pYznR':function(_0x287e20,_0x3eac08){return _0x287e20(_0x3eac08);},'WXkDw':'string'};if(typeof _0x185bcc===_0x410de8['WXkDw'])return sanitizeLoneSurrogates(_0x185bcc);if(Array['isArray'](_0x185bcc)){let _0x148042=![];const _0x1c96fa=_0x185bcc['map'](_0x51f9b4=>{const _0x37779c=_0x3e87,_0xc0c6c3=_0x410de8[_0x37779c(0xa7)](sanitizeLoneSurrogatesDeep,_0x51f9b4);return _0xc0c6c3['updated']&&(_0x148042=!![]),_0xc0c6c3['value'];});return _0x148042?{'updated':!![],'value':_0x1c96fa}:{'updated':![],'value':_0x185bcc};}if(!isRecord(_0x185bcc))return{'updated':![],'value':_0x185bcc};let _0x4d0354=![];const _0x17da7c=Object[_0x329079(0x95)](_0x185bcc)[_0x329079(0x75)](([_0xbae591,_0x681d81])=>{const _0x452e4b=_0x329079,_0x562ce2=_0x410de8[_0x452e4b(0xa7)](sanitizeLoneSurrogatesDeep,_0x681d81);return _0x562ce2['updated']&&(_0x4d0354=!![]),[_0xbae591,_0x562ce2[_0x452e4b(0x7f)]];});return _0x4d0354?{'updated':!![],'value':Object[_0x329079(0x9f)](_0x17da7c)}:{'updated':![],'value':_0x185bcc};}export function createMcpImageBase64Hook(){const _0x46779d={'qNJJQ':'PostToolUse','QGIsz':function(_0x28cb26,_0x2b897b){return _0x28cb26(_0x2b897b);}};return async _0x314bd3=>{const _0x59fe2d=_0x3e87;if(_0x314bd3['hook_event_name']!==_0x46779d['qNJJQ'])return{};const _0x1cd945=_0x314bd3,_0x286665=await _0x46779d[_0x59fe2d(0x8b)](convertToolOutputImagesToBase64,_0x1cd945['tool_response']),_0x47ce86=_0x46779d['QGIsz'](sanitizeLoneSurrogatesDeep,_0x286665['output']),_0xba15ae=_0x286665[_0x59fe2d(0x91)]||_0x47ce86['updated'];if(!_0xba15ae)return{};return{'hookSpecificOutput':{'hookEventName':_0x59fe2d(0x73),'updatedMCPToolOutput':_0x47ce86[_0x59fe2d(0x7f)]}};};}function _0x2902(){const _0x17ed8a=['toLowerCase','startsWith','63UNjODH','270NCgDQG','webp','image/webp','PostToolUse','2253524jrvoDM','map','content-length','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','data:','byteLength','AgiPx','168096txwhBG','size','88310fepZhc','content-type','value','JBdrw','vhICg','trim','hdxvZ','QkKCi','type','10199490WBTfom','gif','xZUao','Image\x20exceeds\x20size\x20limit\x20(','from','QGIsz','wrMnB','file://','https://','RuJLm','138747sQVKOx','updated','mPDtV','get','92qNCdkY','entries','replace','41163nlskei','image/gif','source','object','Failed\x20to\x20fetch\x20image:\x20','image/png','url','status','fromEntries','tVCjr','DKPNP','includes','BBlrf','269736kCupZq','mimeType','base64','pYznR','headers','bUBxr','png','\x20bytes)','toString'];_0x2902=function(){return _0x17ed8a;};return _0x2902();}
@@ -1 +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
+ function _0xd7fc(_0x57673f,_0x163b5d){_0x57673f=_0x57673f-0x1e5;const _0x56cd30=_0x56cd();let _0xd7fc52=_0x56cd30[_0x57673f];return _0xd7fc52;}const _0x374416=_0xd7fc;(function(_0x3f290b,_0x1f3bc2){const _0x5db996=_0xd7fc,_0x3c65b9=_0x3f290b();while(!![]){try{const _0x10f4a0=-parseInt(_0x5db996(0x1ef))/0x1*(parseInt(_0x5db996(0x1f0))/0x2)+-parseInt(_0x5db996(0x1ee))/0x3+parseInt(_0x5db996(0x1e7))/0x4+parseInt(_0x5db996(0x1e8))/0x5+-parseInt(_0x5db996(0x1ea))/0x6+parseInt(_0x5db996(0x1ec))/0x7*(-parseInt(_0x5db996(0x1e5))/0x8)+parseInt(_0x5db996(0x1e9))/0x9*(parseInt(_0x5db996(0x1ed))/0xa);if(_0x10f4a0===_0x1f3bc2)break;else _0x3c65b9['push'](_0x3c65b9['shift']());}catch(_0x57eb55){_0x3c65b9['push'](_0x3c65b9['shift']());}}}(_0x56cd,0xe32e4));function _0x56cd(){const _0x2b5ce2=['trim','2951753CXqxtL','20PniSBv','1252236aBFKAe','4uRsqYg','874254OIkcNG','claude-opus-4-6','8iJKWSZ','toLowerCase','4063032sHnyWD','8050090ztBDhI','9026928rNQzjX','6681774WagXLS'];_0x56cd=function(){return _0x2b5ce2;};return _0x56cd();}const VERIFY_MODEL_ALIASES={'opus':_0x374416(0x1f1),'sonnet':'claude-sonnet-4-6'};export const DEFAULT_VERIFY_MODEL='claude-sonnet-4-6';export function resolveVerifyModel(_0x444b27){const _0x50415f=_0x374416,_0x1c0025={'eGMVW':function(_0x538e7d,_0x13ea67){return _0x538e7d??_0x13ea67;}};if(!_0x444b27)return undefined;const _0x555d42=_0x444b27[_0x50415f(0x1eb)]();if(!_0x555d42)return undefined;const _0x23aca0=VERIFY_MODEL_ALIASES[_0x555d42[_0x50415f(0x1e6)]()];return _0x1c0025['eGMVW'](_0x23aca0,_0x555d42);}