@ranger-testing/ranger-cli 3.1.2 → 3.1.3-alpha.2c5eb8e-44

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 (85) 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/sessionCache.js +1 -1
  71. package/build/commands/utils/settings.js +1 -1
  72. package/build/commands/utils/skillContent.js +1 -1
  73. package/build/commands/utils/skills.js +1 -1
  74. package/build/commands/utils/stitchWebmFiles.js +1 -1
  75. package/build/commands/utils/telemetry.js +1 -1
  76. package/build/commands/utils/tokenRefresh.js +1 -1
  77. package/build/commands/utils/traceSnapshotMapper.js +1 -1
  78. package/build/commands/utils/tunnelClient.js +1 -1
  79. package/build/commands/utils/userApi.js +1 -1
  80. package/build/commands/utils/version.js +1 -1
  81. package/build/commands/verifyFeature.js +1 -1
  82. package/build/commands/verifyFeatureCli.js +1 -1
  83. package/build/commands/verifyFeatureNovaCli.js +1 -1
  84. package/build/commands/verifyFeatureRangerwrightCli.js +1 -1
  85. package/package.json +2 -2
@@ -1 +1 @@
1
- const _0x536bb3=_0x45c8;(function(_0x4308c7,_0x5a5547){const _0x514545=_0x45c8,_0x5cc1a5=_0x4308c7();while(!![]){try{const _0x593840=-parseInt(_0x514545(0x1e5))/0x1+parseInt(_0x514545(0x1a8))/0x2*(parseInt(_0x514545(0x1e6))/0x3)+-parseInt(_0x514545(0x1c3))/0x4+-parseInt(_0x514545(0x1d4))/0x5+parseInt(_0x514545(0x1cc))/0x6*(-parseInt(_0x514545(0x1b0))/0x7)+parseInt(_0x514545(0x1c2))/0x8*(-parseInt(_0x514545(0x1c0))/0x9)+parseInt(_0x514545(0x1d9))/0xa;if(_0x593840===_0x5a5547)break;else _0x5cc1a5['push'](_0x5cc1a5['shift']());}catch(_0x5ec268){_0x5cc1a5['push'](_0x5cc1a5['shift']());}}}(_0x1056,0x53a8e));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(_0x1b72d7,_0xf1ff5f){const _0x182d65=_0x45c8,_0x22187f={'JpFyR':function(_0x440783,_0x35d551){return _0x440783&_0x35d551;},'JdsYa':function(_0x31fc76,_0x18d800){return _0x31fc76+_0x18d800;},'KqxZq':function(_0x244781,_0x1c58cc){return _0x244781&_0x1c58cc;},'JsZNt':function(_0x12330f,_0x20e09a){return _0x12330f-_0x20e09a;},'BhsOP':function(_0x49011e,_0x4f3676){return _0x49011e<_0x4f3676;}};if(_0xf1ff5f>=_0x1b72d7['length'])return[0x0,0x0];const _0x117cdb=_0x1b72d7[_0xf1ff5f];let _0x341866=0x1,_0x4316ff=0x80;while(_0x341866<=0x8&&!_0x22187f['JpFyR'](_0x117cdb,_0x4316ff)){_0x341866++,_0x4316ff>>=0x1;}if(_0x22187f[_0x182d65(0x1cf)](_0xf1ff5f,_0x341866)>_0x1b72d7[_0x182d65(0x1df)])return[0x0,0x0];let _0x416acf=_0x22187f['KqxZq'](_0x117cdb,_0x22187f[_0x182d65(0x1bd)](_0x4316ff,0x1));for(let _0x3432de=0x1;_0x22187f[_0x182d65(0x1db)](_0x3432de,_0x341866);_0x3432de++){_0x416acf=_0x416acf*0x100+_0x1b72d7[_0xf1ff5f+_0x3432de];}return[_0x416acf,_0x341866];}function readId(_0x44d465,_0x378d02){const _0x54c227=_0x45c8,_0x42abb1={'DxGTu':function(_0x425d7b,_0x2fc4fd){return _0x425d7b>=_0x2fc4fd;},'coxkO':function(_0x41d461,_0x94808a){return _0x41d461>_0x94808a;},'WeIDg':function(_0x11ef60,_0x3d1b79){return _0x11ef60<_0x3d1b79;}};if(_0x378d02>=_0x44d465['length'])return[0x0,0x0];const _0x2d6d34=_0x44d465[_0x378d02];let _0x43bd65;if(_0x2d6d34>=0x80)_0x43bd65=0x1;else{if(_0x2d6d34>=0x40)_0x43bd65=0x2;else{if(_0x42abb1[_0x54c227(0x1b5)](_0x2d6d34,0x20))_0x43bd65=0x3;else{if(_0x2d6d34>=0x10)_0x43bd65=0x4;else return[_0x2d6d34,0x1];}}}if(_0x42abb1[_0x54c227(0x1d2)](_0x378d02+_0x43bd65,_0x44d465['length']))return[0x0,0x0];let _0x41445a=0x0;for(let _0x5809a2=0x0;_0x42abb1[_0x54c227(0x1ca)](_0x5809a2,_0x43bd65);_0x5809a2++){_0x41445a=_0x41445a*0x100+_0x44d465[_0x378d02+_0x5809a2];}return[_0x41445a,_0x43bd65];}function readUint(_0x16ebfe,_0xa8fe4d,_0x2ed643){const _0xb28ef9={'fYgKG':function(_0x19cac6,_0x182cc7){return _0x19cac6<_0x182cc7;},'YGAvR':function(_0x1be2b6,_0xe6eb9b){return _0x1be2b6*_0xe6eb9b;},'PxHhN':function(_0x3c1b33,_0xc11da2){return _0x3c1b33+_0xc11da2;}};let _0x421b3e=0x0;for(let _0x75359=0x0;_0xb28ef9['fYgKG'](_0x75359,_0x2ed643);_0x75359++){_0x421b3e=_0xb28ef9['YGAvR'](_0x421b3e,0x100)+_0x16ebfe[_0xb28ef9['PxHhN'](_0xa8fe4d,_0x75359)];}return _0x421b3e;}function isUnknownSize(_0x51b9b7,_0x530e60){const _0x210e15=_0x45c8,_0x20e2ee={'MiRwH':function(_0x1ac874,_0x24c14c){return _0x1ac874===_0x24c14c;},'SjsdP':function(_0x2e45c8,_0x5da3be){return _0x2e45c8-_0x5da3be;},'AOgei':function(_0xe0485,_0x44fbad){return _0xe0485*_0x44fbad;}};return _0x20e2ee[_0x210e15(0x1da)](_0x51b9b7,_0x20e2ee[_0x210e15(0x1d8)](Math[_0x210e15(0x1e7)](0x2,_0x20e2ee[_0x210e15(0x1b8)](0x7,_0x530e60)),0x1));}function writeId(_0x5ec97e){const _0x5643ef=_0x45c8,_0x3dd24f={'sQMSX':function(_0x1fd4f0,_0x42e6ef){return _0x1fd4f0&_0x42e6ef;},'stgpr':function(_0x34ab33,_0x4f7e0a){return _0x34ab33&_0x4f7e0a;},'vFhFr':function(_0x14d586,_0x56e6ea){return _0x14d586&_0x56e6ea;},'tqwVW':function(_0x5712a4,_0x2ed3ea){return _0x5712a4&_0x2ed3ea;}};if(_0x5ec97e<=0xff)return Buffer[_0x5643ef(0x1ee)]([_0x5ec97e]);if(_0x5ec97e<=0xffff)return Buffer[_0x5643ef(0x1ee)]([_0x3dd24f[_0x5643ef(0x1ec)](_0x5ec97e>>0x8,0xff),_0x5ec97e&0xff]);if(_0x5ec97e<=0xffffff)return Buffer[_0x5643ef(0x1ee)]([_0x5ec97e>>0x10&0xff,_0x3dd24f[_0x5643ef(0x1dd)](_0x5ec97e>>0x8,0xff),_0x3dd24f[_0x5643ef(0x1ad)](_0x5ec97e,0xff)]);return Buffer[_0x5643ef(0x1ee)]([_0x3dd24f[_0x5643ef(0x1dd)](_0x5ec97e>>0x18,0xff),_0x5ec97e>>0x10&0xff,_0x3dd24f[_0x5643ef(0x1af)](_0x5ec97e>>0x8,0xff),_0x5ec97e&0xff]);}function writeVint(_0x2d7588,_0x25c13d){const _0x678838=_0x45c8,_0x1da0d3={'yLdbH':function(_0x416ef6,_0x3d34ab){return _0x416ef6-_0x3d34ab;},'yntEF':function(_0x3ee5d2,_0x11d78d){return _0x3ee5d2*_0x11d78d;},'EFHzh':function(_0x4b2b71,_0x39b5f7){return _0x4b2b71/_0x39b5f7;},'NVAsG':function(_0x48c1fe,_0x56326d){return _0x48c1fe<<_0x56326d;}};let _0x1e0f54=_0x25c13d||0x1;while(_0x1da0d3[_0x678838(0x1d3)](Math['pow'](0x2,_0x1da0d3['yntEF'](0x7,_0x1e0f54)),0x2)<_0x2d7588)_0x1e0f54++;const _0x3cc90b=Buffer['alloc'](_0x1e0f54);for(let _0x180db7=_0x1da0d3['yLdbH'](_0x1e0f54,0x1);_0x180db7>=0x0;_0x180db7--){_0x3cc90b[_0x180db7]=_0x2d7588&0xff,_0x2d7588=Math[_0x678838(0x1e0)](_0x1da0d3['EFHzh'](_0x2d7588,0x100));}return _0x3cc90b[0x0]|=_0x1da0d3[_0x678838(0x1f1)](0x1,_0x1da0d3[_0x678838(0x1d3)](0x8,_0x1e0f54)),_0x3cc90b;}function writeFloat64(_0x39ba4d){const _0x41e07e=_0x45c8,_0x4c863f=Buffer[_0x41e07e(0x1a9)](0x8);return _0x4c863f[_0x41e07e(0x1e4)](_0x39ba4d,0x0),_0x4c863f;}function writeVoid(_0x358cab){const _0x1fc03f=_0x45c8,_0x5ed1e9={'Yhwnb':function(_0x5a89b2,_0x47bd30){return _0x5a89b2<=_0x47bd30;},'qhLTR':function(_0x18a603,_0x4947db){return _0x18a603-_0x4947db;},'TErKF':function(_0x44c640,_0x145d45){return _0x44c640-_0x145d45;},'iUHVI':function(_0x84d69c,_0xa763d5){return _0x84d69c>=_0xa763d5;},'evOqi':function(_0x8adcbb,_0x52dce9){return _0x8adcbb*_0x52dce9;},'lfIaz':function(_0x354697,_0x48eea6,_0x531660){return _0x354697(_0x48eea6,_0x531660);}};for(let _0x6aa1d0=0x1;_0x5ed1e9[_0x1fc03f(0x1d1)](_0x6aa1d0,0x8);_0x6aa1d0++){const _0x1d6aa4=_0x5ed1e9[_0x1fc03f(0x1de)](_0x5ed1e9[_0x1fc03f(0x1dc)](_0x358cab,0x1),_0x6aa1d0);if(_0x5ed1e9['iUHVI'](_0x1d6aa4,0x0)&&_0x5ed1e9[_0x1fc03f(0x1d1)](_0x1d6aa4,Math['pow'](0x2,_0x5ed1e9[_0x1fc03f(0x1bc)](0x7,_0x6aa1d0))-0x2))return Buffer[_0x1fc03f(0x1cb)]([Buffer['from']([ID_VOID]),_0x5ed1e9[_0x1fc03f(0x1ce)](writeVint,_0x1d6aa4,_0x6aa1d0),Buffer['alloc'](_0x1d6aa4)]);}return Buffer[_0x1fc03f(0x1a9)](0x0);}function findElement(_0x4483cd,_0x433f05,_0x12f0ad,_0x229ad3){const _0xc7ccfc=_0x45c8,_0x321d78={'qsGQP':function(_0x3d5605,_0x224b96,_0x4de0c0){return _0x3d5605(_0x224b96,_0x4de0c0);},'QsvQS':function(_0x4008f1,_0x11059b){return _0x4008f1+_0x11059b;},'hKrUG':function(_0x27aced,_0x1ee9ec){return _0x27aced+_0x1ee9ec;}};let _0x4e9a13=_0x433f05;while(_0x4e9a13<_0x12f0ad){const [_0x5a3bde,_0x3b0b5e]=_0x321d78['qsGQP'](readId,_0x4483cd,_0x4e9a13),[_0x4b3103,_0x597e5b]=readVint(_0x4483cd,_0x4e9a13+_0x3b0b5e);if(_0x5a3bde===_0x229ad3)return{'offset':_0x4e9a13,'idLen':_0x3b0b5e,'sizeLen':_0x597e5b,'dataSize':_0x4b3103,'dataOffset':_0x321d78['QsvQS'](_0x4e9a13,_0x3b0b5e)+_0x597e5b};if(isUnknownSize(_0x4b3103,_0x597e5b))break;_0x4e9a13+=_0x321d78[_0xc7ccfc(0x1f0)](_0x321d78['hKrUG'](_0x3b0b5e,_0x597e5b),_0x4b3103);}return null;}function _0x1056(){const _0x1efda3=['wQnkD','argv','dataSize','DxGTu','PdtBU','idLen','AOgei','dfxRV','wVDni','YuhqV','evOqi','JsZNt','endsWith','Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>','3686751JiSwTS','error','8FaNTmL','2297520wfvhEw','Could\x20not\x20find\x20Info\x20element','VzjlH','fixWebmDuration.js','sizeLen','eOUNm','slice','WeIDg','concat','3232914ZRwbhQ','offset','lfIaz','JdsYa','log','Yhwnb','coxkO','yLdbH','931185nogtlk','VmUrI','OMvwV','Fixed:\x20','SjsdP','24714160ZBleDr','MiRwH','BhsOP','TErKF','stgpr','qhLTR','length','floor','OQJrQ','bfPuJ','UcqAS','writeDoubleBE','536066iiidpt','15WiGFCk','pow','hjErG','dataOffset','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','fJbPf','sQMSX','LorlX','from','rBzRs','QsvQS','NVAsG','Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','46558KVfqhC','alloc','mKiuM','jeYba','TvatG','vFhFr','hYRar','tqwVW','7YpnjUu','GdAwM'];_0x1056=function(){return _0x1efda3;};return _0x1056();}function computeDurationMs(_0x539478,_0x2723a0){const _0x91dd8b=_0x45c8,_0x93dbaf={'GdAwM':function(_0x207553,_0x45d766){return _0x207553===_0x45d766;},'rIqZc':function(_0x5fb91c,_0x107d01,_0x2ccc76){return _0x5fb91c(_0x107d01,_0x2ccc76);},'wVDni':function(_0x6d984d,_0x2d3f34){return _0x6d984d!==_0x2d3f34;},'wQnkD':function(_0x271517,_0x1f31b3){return _0x271517+_0x1f31b3;},'bfPuJ':function(_0x16f441,_0x1eb811){return _0x16f441+_0x1eb811;},'jeYba':function(_0x184767,_0x56e70b,_0x1fb14c){return _0x184767(_0x56e70b,_0x1fb14c);},'TdCkK':function(_0x33938c,_0x379f52){return _0x33938c===_0x379f52;},'AUBBQ':function(_0x80a7f1,_0x300aa4){return _0x80a7f1+_0x300aa4;},'rAmgp':function(_0x3856ef,_0x184111){return _0x3856ef<_0x184111;},'qeHJI':function(_0x29618d,_0x5d8588){return _0x29618d===_0x5d8588;},'MHNoT':function(_0x118519,_0x4d021d){return _0x118519===_0x4d021d;},'hYRar':function(_0x50ed42,_0x294cf3){return _0x50ed42+_0x294cf3;},'VQyts':function(_0x42f0ea,_0x1ede1a,_0x23b4d3){return _0x42f0ea(_0x1ede1a,_0x23b4d3);},'fJbPf':function(_0x34e018,_0x3f4be9){return _0x34e018+_0x3f4be9;},'eOUNm':function(_0x48c727,_0x4ef88f){return _0x48c727+_0x4ef88f;},'bPRTa':function(_0x3737ac,_0x3a39ad){return _0x3737ac+_0x3a39ad;}};let _0x294406=0x0;const _0x27f742=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x47fb74=_0x539478['indexOf'](_0x27f742);if(_0x93dbaf[_0x91dd8b(0x1b1)](_0x47fb74,-0x1))return 0x0;while(_0x47fb74<_0x539478[_0x91dd8b(0x1df)]){const [_0x4c2477,_0x204c23]=_0x93dbaf['rIqZc'](readId,_0x539478,_0x47fb74);if(_0x93dbaf[_0x91dd8b(0x1ba)](_0x4c2477,ID_CLUSTER))break;const [_0x16e25f,_0x58d0fa]=_0x93dbaf['rIqZc'](readVint,_0x539478,_0x93dbaf['wQnkD'](_0x47fb74,_0x204c23)),_0x526b47=_0x93dbaf[_0x91dd8b(0x1e2)](_0x93dbaf[_0x91dd8b(0x1b2)](_0x47fb74,_0x204c23),_0x58d0fa),_0x451683=_0x93dbaf[_0x91dd8b(0x1ab)](isUnknownSize,_0x16e25f,_0x58d0fa);let _0x16a7fd;if(_0x451683){let _0x5f4b6c=_0x526b47;while(_0x5f4b6c<_0x539478[_0x91dd8b(0x1df)]-0x4){const [_0xe9cc6d,_0x4c757c]=readId(_0x539478,_0x5f4b6c);if(_0x93dbaf['TdCkK'](_0xe9cc6d,ID_CLUSTER)){_0x16a7fd=_0x5f4b6c;break;}const [_0x5b28b6,_0x24f8cf]=readVint(_0x539478,_0x93dbaf['bfPuJ'](_0x5f4b6c,_0x4c757c));if(isUnknownSize(_0x5b28b6,_0x24f8cf)){_0x16a7fd=_0x539478['length'];break;}_0x5f4b6c+=_0x93dbaf['AUBBQ'](_0x4c757c,_0x24f8cf)+_0x5b28b6;}_0x16a7fd??=_0x539478['length'];}else _0x16a7fd=_0x526b47+_0x16e25f;let _0x2c405=0x0,_0x161358=_0x526b47;while(_0x93dbaf['rAmgp'](_0x161358,_0x16a7fd)){const [_0x701d73,_0xc7aaf1]=_0x93dbaf['rIqZc'](readId,_0x539478,_0x161358),[_0x2bcb49,_0x32bb58]=_0x93dbaf['jeYba'](readVint,_0x539478,_0x161358+_0xc7aaf1);if(_0x93dbaf['qeHJI'](_0x701d73,ID_TIMESTAMP))_0x2c405=readUint(_0x539478,_0x93dbaf[_0x91dd8b(0x1e2)](_0x93dbaf['wQnkD'](_0x161358,_0xc7aaf1),_0x32bb58),_0x2bcb49);else{if(_0x93dbaf['MHNoT'](_0x701d73,ID_SIMPLE_BLOCK)&&_0x2bcb49>=0x4){const _0x131c1e=_0x93dbaf[_0x91dd8b(0x1b2)](_0x93dbaf[_0x91dd8b(0x1ae)](_0x161358,_0xc7aaf1),_0x32bb58),[,_0x543b1d]=_0x93dbaf['VQyts'](readVint,_0x539478,_0x131c1e),_0x354721=_0x539478['readInt16BE'](_0x93dbaf[_0x91dd8b(0x1eb)](_0x131c1e,_0x543b1d)),_0x49a7f4=_0x93dbaf[_0x91dd8b(0x1c8)](_0x2c405,_0x354721)*_0x2723a0/0xf4240;_0x49a7f4>_0x294406&&(_0x294406=_0x49a7f4);}else{if(_0x701d73===ID_CLUSTER)break;}}if(isUnknownSize(_0x2bcb49,_0x32bb58))break;_0x161358+=_0x93dbaf['bfPuJ'](_0x93dbaf['bPRTa'](_0xc7aaf1,_0x32bb58),_0x2bcb49);}_0x47fb74=_0x16a7fd;}return _0x294406;}function _0x45c8(_0x5e4210,_0x15d282){_0x5e4210=_0x5e4210-0x1a8;const _0x105607=_0x1056();let _0x45c8dd=_0x105607[_0x5e4210];return _0x45c8dd;}export function fixWebmDuration(_0x1fa2ae,_0xe20524){const _0x1b73ea=_0x45c8,_0x36006c={'PdtBU':function(_0x1e706b,_0x4c32bd){return _0x1e706b(_0x4c32bd);},'mOAuv':function(_0x2f72f0,_0x137a19,_0x9d8756){return _0x2f72f0(_0x137a19,_0x9d8756);},'OMvwV':function(_0x2b0ba0,_0x1bbed6){return _0x2b0ba0+_0x1bbed6;},'wUYvP':function(_0x212b8e,_0x15fe82){return _0x212b8e!==_0x15fe82;},'VmUrI':function(_0x49c0cb,_0x24f707){return _0x49c0cb+_0x24f707;},'PCDQw':function(_0x52b561,_0x57c0d2){return _0x52b561<_0x57c0d2;},'MkLQh':function(_0x3c0728,_0x41b1e9,_0x4f9252){return _0x3c0728(_0x41b1e9,_0x4f9252);},'OtDbw':function(_0x173631,_0x137c98,_0x5a91d2){return _0x173631(_0x137c98,_0x5a91d2);},'VzjlH':function(_0x19523d,_0xd597c0){return _0x19523d+_0xd597c0;},'LorlX':function(_0x59bec2,_0x474a57){return _0x59bec2+_0x474a57;},'OQJrQ':function(_0x347bd0,_0x5ad8b6){return _0x347bd0===_0x5ad8b6;},'KPIwN':function(_0x571435,_0x59a724){return _0x571435+_0x59a724;},'ybJzC':function(_0x50bbec,_0x24508b,_0x5f0b43,_0x25552c,_0x2f3341){return _0x50bbec(_0x24508b,_0x5f0b43,_0x25552c,_0x2f3341);},'sMVwv':function(_0x154f1b,_0x54680c){return _0x154f1b+_0x54680c;},'dfxRV':function(_0x17b926,_0x4c4867,_0x4a93f6){return _0x17b926(_0x4c4867,_0x4a93f6);},'NCEBJ':function(_0xcc5602,_0x5cc48d){return _0xcc5602<=_0x5cc48d;},'NVzQO':'Could\x20not\x20compute\x20duration','eJVnY':function(_0x1f7538,_0x33fdfd){return _0x1f7538/_0x33fdfd;},'mKiuM':function(_0x1da2e4,_0x93066b){return _0x1da2e4<_0x93066b;},'YuhqV':function(_0xae7c94,_0x411b20){return _0xae7c94+_0x411b20;},'hjErG':function(_0xa87286,_0x50b9b1,_0x52b639,_0x133de3,_0x481987,_0x3f14de,_0x300a46){return _0xa87286(_0x50b9b1,_0x52b639,_0x133de3,_0x481987,_0x3f14de,_0x300a46);},'TfEiU':function(_0x4a5f25,_0x530c23,_0x449eb6){return _0x4a5f25(_0x530c23,_0x449eb6);},'TvatG':function(_0x5d6a4e,_0xd9c7e3,_0x5ce5ee,_0x3d5e37,_0x4ae753,_0x14028b,_0x25d55e){return _0x5d6a4e(_0xd9c7e3,_0x5ce5ee,_0x3d5e37,_0x4ae753,_0x14028b,_0x25d55e);}},_0x38ba8e=_0x36006c[_0x1b73ea(0x1b6)](readFileSync,_0x1fa2ae);let _0x1a5349=0x0;const [_0x574c5e,_0x4c9a10]=readId(_0x38ba8e,_0x1a5349),[_0x5f2821,_0x7c33fe]=_0x36006c['mOAuv'](readVint,_0x38ba8e,_0x36006c[_0x1b73ea(0x1d6)](_0x1a5349,_0x4c9a10));_0x1a5349+=_0x36006c['OMvwV'](_0x4c9a10+_0x7c33fe,_0x5f2821);const [_0x5c6e91,_0x5bff5e]=readId(_0x38ba8e,_0x1a5349);if(_0x36006c['wUYvP'](_0x5c6e91,ID_SEGMENT))return console[_0x1b73ea(0x1c1)](_0x1b73ea(0x1f2)),![];const [,_0xbb6215]=_0x36006c['mOAuv'](readVint,_0x38ba8e,_0x36006c[_0x1b73ea(0x1d6)](_0x1a5349,_0x5bff5e)),_0x13f66f=_0x1a5349+_0x5bff5e+_0xbb6215;let _0x67b825=_0x13f66f;const _0x49ba97=Math['min'](_0x38ba8e['length'],_0x36006c[_0x1b73ea(0x1d5)](_0x13f66f,0x2710));let _0x89c18b=null,_0x1c23d8=null;while(_0x36006c['PCDQw'](_0x67b825,_0x49ba97)){const [_0x234da8,_0x2413b7]=_0x36006c['MkLQh'](readId,_0x38ba8e,_0x67b825),[_0x397534,_0x12bc49]=_0x36006c['OtDbw'](readVint,_0x38ba8e,_0x36006c[_0x1b73ea(0x1c5)](_0x67b825,_0x2413b7));_0x234da8===ID_VOID&&!_0x89c18b&&(_0x89c18b={'offset':_0x67b825,'idLen':_0x2413b7,'sizeLen':_0x12bc49,'dataSize':_0x397534,'dataOffset':_0x36006c[_0x1b73ea(0x1ed)](_0x67b825,_0x2413b7)+_0x12bc49});if(_0x234da8===ID_INFO){_0x1c23d8={'offset':_0x67b825,'idLen':_0x2413b7,'sizeLen':_0x12bc49,'dataSize':_0x397534,'dataOffset':_0x67b825+_0x2413b7+_0x12bc49};break;}if(_0x36006c[_0x1b73ea(0x1e1)](_0x234da8,ID_CLUSTER))break;if(isUnknownSize(_0x397534,_0x12bc49))break;_0x67b825+=_0x36006c['KPIwN'](_0x2413b7+_0x12bc49,_0x397534);}if(!_0x1c23d8)return console[_0x1b73ea(0x1c1)](_0x1b73ea(0x1c4)),![];const _0x459894=_0x36006c['ybJzC'](findElement,_0x38ba8e,_0x1c23d8[_0x1b73ea(0x1e9)],_0x36006c['sMVwv'](_0x1c23d8['dataOffset'],_0x1c23d8['dataSize']),ID_DURATION);if(_0x459894)return![];const _0x3e7f10=findElement(_0x38ba8e,_0x1c23d8['dataOffset'],_0x36006c['OMvwV'](_0x1c23d8[_0x1b73ea(0x1e9)],_0x1c23d8['dataSize']),ID_TIMESTAMP_SCALE);let _0x48de46=0xf4240;_0x3e7f10&&(_0x48de46=readUint(_0x38ba8e,_0x3e7f10[_0x1b73ea(0x1e9)],_0x3e7f10['dataSize']));const _0x5b0c87=_0x36006c[_0x1b73ea(0x1b9)](computeDurationMs,_0x38ba8e,_0x48de46);if(_0x36006c['NCEBJ'](_0x5b0c87,0x0))return console[_0x1b73ea(0x1c1)](_0x36006c['NVzQO']),![];const _0x150f4c=_0x36006c['eJVnY'](_0x5b0c87*0xf4240,_0x48de46),_0x13e42c=Buffer['concat']([writeId(ID_DURATION),_0x36006c['PdtBU'](writeVint,0x8),_0x36006c['PdtBU'](writeFloat64,_0x150f4c)]),_0x2c34ac=_0x13e42c[_0x1b73ea(0x1df)];if(!_0x89c18b||_0x36006c[_0x1b73ea(0x1aa)](_0x89c18b[_0x1b73ea(0x1cd)],_0x1c23d8['offset'])){if(_0x89c18b){const _0x16b72b=_0x36006c[_0x1b73ea(0x1bb)](_0x89c18b['idLen']+_0x89c18b[_0x1b73ea(0x1c7)],_0x89c18b['dataSize']),_0x4cd29f=_0x16b72b-_0x2c34ac;if(_0x4cd29f<0x2)return _0x36006c[_0x1b73ea(0x1e8)](rewriteFile,_0x38ba8e,_0x1c23d8,_0x13e42c,_0x48de46,_0x5b0c87,_0xe20524);const _0x3d841d=_0x1c23d8['dataSize']+_0x2c34ac,_0x140cba=Buffer[_0x1b73ea(0x1cb)]([_0x36006c['PdtBU'](writeId,ID_INFO),_0x36006c['TfEiU'](writeVint,_0x3d841d,_0x1c23d8['sizeLen'])]),_0x3ff6c6=_0x38ba8e[_0x1b73ea(0x1c9)](_0x1c23d8[_0x1b73ea(0x1e9)],_0x36006c[_0x1b73ea(0x1d5)](_0x1c23d8[_0x1b73ea(0x1e9)],_0x1c23d8['dataSize'])),_0x5dbb6e=writeVoid(_0x4cd29f),_0x3c1dd7=_0x38ba8e[_0x1b73ea(0x1c9)](0x0,_0x89c18b['offset']),_0x239d01=_0x38ba8e['slice'](_0x36006c[_0x1b73ea(0x1d5)](_0x1c23d8['dataOffset'],_0x1c23d8[_0x1b73ea(0x1b4)]));return writeFileSync(_0xe20524,Buffer[_0x1b73ea(0x1cb)]([_0x3c1dd7,_0x5dbb6e,_0x140cba,_0x3ff6c6,_0x13e42c,_0x239d01])),!![];}}return _0x36006c[_0x1b73ea(0x1ac)](rewriteFile,_0x38ba8e,_0x1c23d8,_0x13e42c,_0x48de46,_0x5b0c87,_0xe20524);}function rewriteFile(_0x46c675,_0x5bb0e3,_0x11e4e8,_0x5afbe5,_0x5102a4,_0x194c20){const _0x88ca95=_0x45c8,_0x56f705={'rBzRs':function(_0xc5b9bc,_0x4e859e){return _0xc5b9bc+_0x4e859e;},'UcqAS':function(_0x489e63,_0x2e7376){return _0x489e63(_0x2e7376);},'UtqCH':function(_0x174ced,_0x47f0ec){return _0x174ced+_0x47f0ec;},'stTvG':function(_0x4c2f3e,_0x310143){return _0x4c2f3e+_0x310143;},'TLPjU':function(_0x1ab691,_0x5cfa7a,_0x149e35){return _0x1ab691(_0x5cfa7a,_0x149e35);}},_0x34c878=_0x56f705[_0x88ca95(0x1ef)](_0x5bb0e3[_0x88ca95(0x1b4)],_0x11e4e8[_0x88ca95(0x1df)]),_0x58ef94=Buffer[_0x88ca95(0x1cb)]([_0x56f705[_0x88ca95(0x1e3)](writeId,ID_INFO),_0x56f705['UcqAS'](writeVint,_0x34c878)]),_0x59740e=_0x56f705[_0x88ca95(0x1ef)](_0x5bb0e3[_0x88ca95(0x1b7)],_0x5bb0e3[_0x88ca95(0x1c7)]),_0x54efd7=_0x46c675['slice'](0x0,_0x5bb0e3[_0x88ca95(0x1cd)]),_0x268961=_0x46c675[_0x88ca95(0x1c9)](_0x5bb0e3['dataOffset'],_0x56f705['UtqCH'](_0x5bb0e3[_0x88ca95(0x1e9)],_0x5bb0e3['dataSize'])),_0x5221f8=_0x46c675[_0x88ca95(0x1c9)](_0x56f705['stTvG'](_0x56f705['UtqCH'](_0x5bb0e3['offset'],_0x59740e),_0x5bb0e3[_0x88ca95(0x1b4)]));return _0x56f705['TLPjU'](writeFileSync,_0x194c20,Buffer['concat']([_0x54efd7,_0x58ef94,_0x268961,_0x11e4e8,_0x5221f8])),!![];}if(process['argv'][0x1]?.[_0x536bb3(0x1be)]('fixWebmDuration.ts')||process[_0x536bb3(0x1b3)][0x1]?.['endsWith'](_0x536bb3(0x1c6))){const input=process['argv'][0x2],output=process[_0x536bb3(0x1b3)][0x3];(!input||!output)&&(console['error'](_0x536bb3(0x1bf)),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0x536bb3(0x1d0)](_0x536bb3(0x1d7)+output):console['log'](_0x536bb3(0x1ea));}
1
+ const _0x2333cd=_0x48ab;(function(_0x245a5e,_0x567e36){const _0x54d009=_0x48ab,_0x49832e=_0x245a5e();while(!![]){try{const _0xd3e707=-parseInt(_0x54d009(0x82))/0x1*(parseInt(_0x54d009(0x7e))/0x2)+parseInt(_0x54d009(0x9c))/0x3+parseInt(_0x54d009(0x77))/0x4+parseInt(_0x54d009(0x93))/0x5*(-parseInt(_0x54d009(0xa5))/0x6)+parseInt(_0x54d009(0x9b))/0x7+-parseInt(_0x54d009(0x92))/0x8*(-parseInt(_0x54d009(0x8e))/0x9)+parseInt(_0x54d009(0x89))/0xa;if(_0xd3e707===_0x567e36)break;else _0x49832e['push'](_0x49832e['shift']());}catch(_0x3e99d3){_0x49832e['push'](_0x49832e['shift']());}}}(_0xe2a1,0x8646a));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(_0x10e252,_0x3e6309){const _0x4ad549=_0x48ab,_0x1fbb22={'aHHPt':function(_0x18a3d3,_0x2d9cff){return _0x18a3d3>=_0x2d9cff;},'eQxuA':function(_0x4025ef,_0x471c75){return _0x4025ef&_0x471c75;},'iOVoN':function(_0x53951e,_0x4a8710){return _0x53951e&_0x4a8710;},'URHty':function(_0x197f92,_0x3fb3a7){return _0x197f92-_0x3fb3a7;},'CsGhk':function(_0x42e9e7,_0x43120b){return _0x42e9e7*_0x43120b;},'XmwUD':function(_0x2e014b,_0x57835f){return _0x2e014b+_0x57835f;}};if(_0x1fbb22[_0x4ad549(0x81)](_0x3e6309,_0x10e252[_0x4ad549(0x94)]))return[0x0,0x0];const _0x52d8da=_0x10e252[_0x3e6309];let _0x4307c6=0x1,_0x13b70c=0x80;while(_0x4307c6<=0x8&&!_0x1fbb22['eQxuA'](_0x52d8da,_0x13b70c)){_0x4307c6++,_0x13b70c>>=0x1;}if(_0x3e6309+_0x4307c6>_0x10e252['length'])return[0x0,0x0];let _0x443204=_0x1fbb22['iOVoN'](_0x52d8da,_0x1fbb22['URHty'](_0x13b70c,0x1));for(let _0x3f85b6=0x1;_0x3f85b6<_0x4307c6;_0x3f85b6++){_0x443204=_0x1fbb22['CsGhk'](_0x443204,0x100)+_0x10e252[_0x1fbb22[_0x4ad549(0x64)](_0x3e6309,_0x3f85b6)];}return[_0x443204,_0x4307c6];}function readId(_0x1fa2be,_0x3f0d2a){const _0x1ef063=_0x48ab,_0x8e5ddb={'gQiNh':function(_0x1369f8,_0x635e93){return _0x1369f8>=_0x635e93;},'SJzKm':function(_0x23a7e0,_0x431647){return _0x23a7e0>=_0x431647;},'SCTit':function(_0x384a25,_0x189715){return _0x384a25>=_0x189715;},'VjGRL':function(_0x4bc5e5,_0x19d7b4){return _0x4bc5e5+_0x19d7b4;},'odGhm':function(_0x9b29c7,_0x53fb47){return _0x9b29c7<_0x53fb47;},'OcVxg':function(_0xf7ac55,_0x5c9fdb){return _0xf7ac55+_0x5c9fdb;}};if(_0x3f0d2a>=_0x1fa2be[_0x1ef063(0x94)])return[0x0,0x0];const _0x2d577e=_0x1fa2be[_0x3f0d2a];let _0x3c0a83;if(_0x8e5ddb['gQiNh'](_0x2d577e,0x80))_0x3c0a83=0x1;else{if(_0x2d577e>=0x40)_0x3c0a83=0x2;else{if(_0x8e5ddb['SJzKm'](_0x2d577e,0x20))_0x3c0a83=0x3;else{if(_0x8e5ddb['SCTit'](_0x2d577e,0x10))_0x3c0a83=0x4;else return[_0x2d577e,0x1];}}}if(_0x8e5ddb[_0x1ef063(0x7a)](_0x3f0d2a,_0x3c0a83)>_0x1fa2be['length'])return[0x0,0x0];let _0x4f5e0d=0x0;for(let _0x4486f5=0x0;_0x8e5ddb['odGhm'](_0x4486f5,_0x3c0a83);_0x4486f5++){_0x4f5e0d=_0x8e5ddb[_0x1ef063(0x95)](_0x4f5e0d*0x100,_0x1fa2be[_0x3f0d2a+_0x4486f5]);}return[_0x4f5e0d,_0x3c0a83];}function readUint(_0x1b9309,_0xf72ad6,_0x1b5902){const _0xd21732=_0x48ab,_0x36b269={'yKNYj':function(_0x1c042e,_0x148b57){return _0x1c042e*_0x148b57;},'uLPiU':function(_0x40d0a1,_0x59cd7c){return _0x40d0a1+_0x59cd7c;}};let _0x114e1c=0x0;for(let _0x34c972=0x0;_0x34c972<_0x1b5902;_0x34c972++){_0x114e1c=_0x36b269[_0xd21732(0x87)](_0x114e1c,0x100)+_0x1b9309[_0x36b269[_0xd21732(0x8c)](_0xf72ad6,_0x34c972)];}return _0x114e1c;}function isUnknownSize(_0x4b428a,_0x38348c){const _0x294541=_0x48ab,_0x32faf6={'oVsbG':function(_0x2c2a79,_0x6fe481){return _0x2c2a79===_0x6fe481;},'nPyhO':function(_0x15928a,_0x31037d){return _0x15928a*_0x31037d;}};return _0x32faf6['oVsbG'](_0x4b428a,Math['pow'](0x2,_0x32faf6[_0x294541(0x6b)](0x7,_0x38348c))-0x1);}function writeId(_0x365b25){const _0x470a23=_0x48ab,_0x946e4c={'fNVsg':function(_0x12066c,_0x59c7e5){return _0x12066c<=_0x59c7e5;},'YOVQM':function(_0x271c9b,_0x12e7c5){return _0x271c9b<=_0x12e7c5;},'ciYAc':function(_0x1d7dfe,_0x50f79e){return _0x1d7dfe&_0x50f79e;},'ppDdg':function(_0x485a42,_0x341430){return _0x485a42&_0x341430;},'RjYvy':function(_0x1500eb,_0x5344ed){return _0x1500eb>>_0x5344ed;}};if(_0x946e4c['fNVsg'](_0x365b25,0xff))return Buffer[_0x470a23(0x6a)]([_0x365b25]);if(_0x946e4c[_0x470a23(0xa4)](_0x365b25,0xffff))return Buffer['from']([_0x946e4c[_0x470a23(0xa1)](_0x365b25>>0x8,0xff),_0x365b25&0xff]);if(_0x365b25<=0xffffff)return Buffer['from']([_0x365b25>>0x10&0xff,_0x365b25>>0x8&0xff,_0x365b25&0xff]);return Buffer[_0x470a23(0x6a)]([_0x365b25>>0x18&0xff,_0x365b25>>0x10&0xff,_0x946e4c['ppDdg'](_0x946e4c['RjYvy'](_0x365b25,0x8),0xff),_0x946e4c[_0x470a23(0x72)](_0x365b25,0xff)]);}function writeVint(_0x25f71a,_0x8b4a35){const _0x1c0670=_0x48ab,_0x31affb={'RvIAa':function(_0x2aa83b,_0x54f2aa){return _0x2aa83b||_0x54f2aa;},'eZAci':function(_0x4fcd00,_0x2f143e){return _0x4fcd00<_0x2f143e;},'ZQiFG':function(_0x377d00,_0x3ccaa4){return _0x377d00*_0x3ccaa4;},'VIGUv':function(_0x4fa06f,_0x250077){return _0x4fa06f-_0x250077;},'zrloR':function(_0x41df43,_0x5f78a2){return _0x41df43>=_0x5f78a2;},'kzXvU':function(_0x10e1cb,_0x78b751){return _0x10e1cb/_0x78b751;}};let _0x11a137=_0x31affb[_0x1c0670(0x75)](_0x8b4a35,0x1);while(_0x31affb[_0x1c0670(0x8d)](Math['pow'](0x2,_0x31affb[_0x1c0670(0x99)](0x7,_0x11a137))-0x2,_0x25f71a))_0x11a137++;const _0x3c8d14=Buffer[_0x1c0670(0x7c)](_0x11a137);for(let _0x1186ca=_0x31affb['VIGUv'](_0x11a137,0x1);_0x31affb[_0x1c0670(0x70)](_0x1186ca,0x0);_0x1186ca--){_0x3c8d14[_0x1186ca]=_0x25f71a&0xff,_0x25f71a=Math[_0x1c0670(0x90)](_0x31affb['kzXvU'](_0x25f71a,0x100));}return _0x3c8d14[0x0]|=0x1<<0x8-_0x11a137,_0x3c8d14;}function writeFloat64(_0x26ef9b){const _0x60952e=_0x48ab,_0x257295=Buffer[_0x60952e(0x7c)](0x8);return _0x257295['writeDoubleBE'](_0x26ef9b,0x0),_0x257295;}function _0x48ab(_0x3b8abe,_0x829f1f){_0x3b8abe=_0x3b8abe-0x64;const _0xe2a18c=_0xe2a1();let _0x48abf6=_0xe2a18c[_0x3b8abe];return _0x48abf6;}function writeVoid(_0x200895){const _0x2a3c35=_0x48ab,_0x2fbbec={'bFiST':function(_0x173323,_0x4e943c){return _0x173323<=_0x4e943c;},'iTDIR':function(_0x51c993,_0x2618ca){return _0x51c993>=_0x2618ca;},'LmkmT':function(_0x4a8b38,_0x9452cb){return _0x4a8b38<=_0x9452cb;},'RFPNW':function(_0x2cbe9d,_0x27c4c1){return _0x2cbe9d-_0x27c4c1;}};for(let _0x8373f2=0x1;_0x2fbbec['bFiST'](_0x8373f2,0x8);_0x8373f2++){const _0xbeb0b2=_0x200895-0x1-_0x8373f2;if(_0x2fbbec[_0x2a3c35(0x86)](_0xbeb0b2,0x0)&&_0x2fbbec['LmkmT'](_0xbeb0b2,_0x2fbbec['RFPNW'](Math['pow'](0x2,0x7*_0x8373f2),0x2)))return Buffer['concat']([Buffer[_0x2a3c35(0x6a)]([ID_VOID]),writeVint(_0xbeb0b2,_0x8373f2),Buffer[_0x2a3c35(0x7c)](_0xbeb0b2)]);}return Buffer[_0x2a3c35(0x7c)](0x0);}function findElement(_0x2ac7ec,_0x3630c8,_0x181780,_0x4f6347){const _0x40f3b9=_0x48ab,_0x257748={'urebm':function(_0x1745fd,_0x1b83c4,_0x529134){return _0x1745fd(_0x1b83c4,_0x529134);},'tcKMf':function(_0x42799c,_0x32de02,_0x48c601){return _0x42799c(_0x32de02,_0x48c601);},'lfqtf':function(_0x356a23,_0x5c3071){return _0x356a23+_0x5c3071;},'kOjKa':function(_0x4e8414,_0x5e1ee2){return _0x4e8414===_0x5e1ee2;},'ElHuh':function(_0x1b56d8,_0x49e7f6){return _0x1b56d8+_0x49e7f6;}};let _0x3c958d=_0x3630c8;while(_0x3c958d<_0x181780){const [_0x3e4b46,_0x267e2c]=_0x257748['urebm'](readId,_0x2ac7ec,_0x3c958d),[_0x54075d,_0x392d54]=_0x257748[_0x40f3b9(0x65)](readVint,_0x2ac7ec,_0x257748['lfqtf'](_0x3c958d,_0x267e2c));if(_0x257748['kOjKa'](_0x3e4b46,_0x4f6347))return{'offset':_0x3c958d,'idLen':_0x267e2c,'sizeLen':_0x392d54,'dataSize':_0x54075d,'dataOffset':_0x257748[_0x40f3b9(0x9f)](_0x3c958d,_0x267e2c)+_0x392d54};if(isUnknownSize(_0x54075d,_0x392d54))break;_0x3c958d+=_0x257748['ElHuh'](_0x267e2c+_0x392d54,_0x54075d);}return null;}function _0xe2a1(){const _0x4ed9ca=['iTDIR','yKNYj','Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','2811480BnDSma','mrtnh','log','uLPiU','eZAci','2515491ggSBsn','concat','floor','VUVdI','8pxtmpy','40isAHMi','length','OcVxg','ANmyV','indexOf','UUVXT','ZQiFG','uMReD','2729993tnhkOE','220536Wkbxci','WOcRv','endsWith','lfqtf','mBDuE','ciYAc','nyEDR','offset','YOVQM','600576NPaOgD','GbHGX','XmwUD','tcKMf','TcjYf','hTojV','Okyqx','dataOffset','from','nPyhO','argv','qVuqc','Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','zrloR','OwMfd','ppDdg','dataSize','WnTNQ','RvIAa','cQyrK','4313176wihana','EmHjQ','Could\x20not\x20find\x20Info\x20element','VjGRL','slice','alloc','Could\x20not\x20compute\x20duration','10WCmJoJ','error','QMcGr','aHHPt','150338Euqhov','XNWiF','uUJgW','GALno'];_0xe2a1=function(){return _0x4ed9ca;};return _0xe2a1();}function computeDurationMs(_0x38fb34,_0x5d0d2a){const _0x62105=_0x48ab,_0x289656={'XNWiF':function(_0x75fc17,_0x5f0bfc,_0x4d0bcf){return _0x75fc17(_0x5f0bfc,_0x4d0bcf);},'zTpUw':function(_0x4ead20,_0x157b95){return _0x4ead20!==_0x157b95;},'uMReD':function(_0x4af552,_0x51483a){return _0x4af552+_0x51483a;},'pFNPf':function(_0x7eb1d,_0x3da2e1,_0x4a005d){return _0x7eb1d(_0x3da2e1,_0x4a005d);},'uUJgW':function(_0xf39360,_0x21705d){return _0xf39360+_0x21705d;},'mrtnh':function(_0x4f2db4,_0x5b0ac8,_0x54bfef){return _0x4f2db4(_0x5b0ac8,_0x54bfef);},'QMcGr':function(_0x340944,_0x392c3e,_0x5cea7b){return _0x340944(_0x392c3e,_0x5cea7b);},'VUVdI':function(_0xee744b,_0x48ba25){return _0xee744b===_0x48ba25;},'hTojV':function(_0x5b2ac5,_0x43b7ed,_0x48ee29,_0x9db8a4){return _0x5b2ac5(_0x43b7ed,_0x48ee29,_0x9db8a4);},'UUVXT':function(_0x406516,_0x5e2381){return _0x406516+_0x5e2381;},'OdODA':function(_0xf3a966,_0x212714){return _0xf3a966===_0x212714;},'GbHGX':function(_0x3a3cb1,_0xe65052){return _0x3a3cb1+_0xe65052;},'GsIkW':function(_0x6a0d57,_0x38be3a){return _0x6a0d57/_0x38be3a;},'LXDrX':function(_0x2a2fe6,_0x2d47ed){return _0x2a2fe6*_0x2d47ed;},'nyEDR':function(_0x1c2540,_0xebe8db){return _0x1c2540+_0xebe8db;},'xCnac':function(_0x2aab00,_0x1e51d5){return _0x2aab00===_0x1e51d5;},'ENSBW':function(_0x1e30bb,_0x56e7a0){return _0x1e30bb+_0x56e7a0;}};let _0x54315d=0x0;const _0x5925f8=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x28d847=_0x38fb34[_0x62105(0x97)](_0x5925f8);if(_0x28d847===-0x1)return 0x0;while(_0x28d847<_0x38fb34[_0x62105(0x94)]){const [_0x75f0a2,_0x3849c8]=_0x289656['XNWiF'](readId,_0x38fb34,_0x28d847);if(_0x289656['zTpUw'](_0x75f0a2,ID_CLUSTER))break;const [_0x5cb112,_0x1800c1]=readVint(_0x38fb34,_0x28d847+_0x3849c8),_0x52f659=_0x289656[_0x62105(0x9a)](_0x28d847+_0x3849c8,_0x1800c1),_0x141109=_0x289656[_0x62105(0x83)](isUnknownSize,_0x5cb112,_0x1800c1);let _0x217e98;if(_0x141109){let _0x56d645=_0x52f659;while(_0x56d645<_0x38fb34['length']-0x4){const [_0x133ba8,_0x58aa6d]=readId(_0x38fb34,_0x56d645);if(_0x133ba8===ID_CLUSTER){_0x217e98=_0x56d645;break;}const [_0x41bbc7,_0x283290]=_0x289656['pFNPf'](readVint,_0x38fb34,_0x289656['uUJgW'](_0x56d645,_0x58aa6d));if(_0x289656[_0x62105(0x8a)](isUnknownSize,_0x41bbc7,_0x283290)){_0x217e98=_0x38fb34[_0x62105(0x94)];break;}_0x56d645+=_0x289656['uMReD'](_0x289656[_0x62105(0x84)](_0x58aa6d,_0x283290),_0x41bbc7);}_0x217e98??=_0x38fb34['length'];}else _0x217e98=_0x289656['uUJgW'](_0x52f659,_0x5cb112);let _0x133463=0x0,_0x1f065e=_0x52f659;while(_0x1f065e<_0x217e98){const [_0xfc7543,_0x2a4b93]=readId(_0x38fb34,_0x1f065e),[_0x578e1f,_0xeb496d]=_0x289656[_0x62105(0x80)](readVint,_0x38fb34,_0x289656[_0x62105(0x84)](_0x1f065e,_0x2a4b93));if(_0x289656[_0x62105(0x91)](_0xfc7543,ID_TIMESTAMP))_0x133463=_0x289656[_0x62105(0x67)](readUint,_0x38fb34,_0x289656[_0x62105(0x98)](_0x1f065e,_0x2a4b93)+_0xeb496d,_0x578e1f);else{if(_0x289656['OdODA'](_0xfc7543,ID_SIMPLE_BLOCK)&&_0x578e1f>=0x4){const _0x493261=_0x289656[_0x62105(0xa6)](_0x1f065e,_0x2a4b93)+_0xeb496d,[,_0x591b40]=readVint(_0x38fb34,_0x493261),_0x175ffe=_0x38fb34['readInt16BE'](_0x493261+_0x591b40),_0x1a779d=_0x289656['GsIkW'](_0x289656['LXDrX'](_0x289656[_0x62105(0xa2)](_0x133463,_0x175ffe),_0x5d0d2a),0xf4240);_0x1a779d>_0x54315d&&(_0x54315d=_0x1a779d);}else{if(_0x289656['xCnac'](_0xfc7543,ID_CLUSTER))break;}}if(_0x289656['XNWiF'](isUnknownSize,_0x578e1f,_0xeb496d))break;_0x1f065e+=_0x289656['ENSBW'](_0x289656['uUJgW'](_0x2a4b93,_0xeb496d),_0x578e1f);}_0x28d847=_0x217e98;}return _0x54315d;}export function fixWebmDuration(_0x2db8f7,_0x592be8){const _0x3e4d29=_0x48ab,_0x1a00dd={'TcjYf':function(_0x35a5f0,_0x3e912e){return _0x35a5f0+_0x3e912e;},'mBDuE':_0x3e4d29(0x88),'KxELZ':function(_0x2d9d85,_0x232711,_0x298cfa){return _0x2d9d85(_0x232711,_0x298cfa);},'WOcRv':function(_0x52e31b,_0x3f7333){return _0x52e31b+_0x3f7333;},'GALno':function(_0x358a6a,_0x3850d9){return _0x358a6a+_0x3850d9;},'gZRGi':function(_0x43cd1b,_0x3afc61,_0x361f9a){return _0x43cd1b(_0x3afc61,_0x361f9a);},'ANmyV':function(_0x5aa2fa,_0x1995be){return _0x5aa2fa===_0x1995be;},'kUHCV':function(_0x2a5dc4,_0x462e1e){return _0x2a5dc4===_0x462e1e;},'Okyqx':_0x3e4d29(0x79),'Arugs':function(_0x2f9c12,_0x59e19e){return _0x2f9c12+_0x59e19e;},'mRmEn':function(_0x55f9f6,_0x40ae07,_0x349d47,_0x3b3e76,_0x1a24cf){return _0x55f9f6(_0x40ae07,_0x349d47,_0x3b3e76,_0x1a24cf);},'qVuqc':function(_0x348965,_0x528939,_0x4cb0db){return _0x348965(_0x528939,_0x4cb0db);},'DCREX':function(_0x1791d5,_0x46af0f){return _0x1791d5<=_0x46af0f;},'OIapE':function(_0x4fb872,_0x472a8d){return _0x4fb872(_0x472a8d);},'cQyrK':function(_0x1b2f5d,_0x1fd497){return _0x1b2f5d(_0x1fd497);},'kSGdM':function(_0x55f8c9,_0x23c456){return _0x55f8c9-_0x23c456;},'EmHjQ':function(_0x4e0e3c,_0x130564){return _0x4e0e3c<_0x130564;},'qqwnN':function(_0x158557,_0x2181a1){return _0x158557(_0x2181a1);},'WnTNQ':function(_0xf5e434,_0x24f092,_0x55f9b4){return _0xf5e434(_0x24f092,_0x55f9b4);}},_0x2cd874=readFileSync(_0x2db8f7);let _0x132ce=0x0;const [_0x3f3727,_0x3bf652]=readId(_0x2cd874,_0x132ce),[_0xfbdb42,_0x10a78d]=readVint(_0x2cd874,_0x132ce+_0x3bf652);_0x132ce+=_0x1a00dd[_0x3e4d29(0x66)](_0x3bf652+_0x10a78d,_0xfbdb42);const [_0x11b52f,_0x366df5]=readId(_0x2cd874,_0x132ce);if(_0x11b52f!==ID_SEGMENT)return console[_0x3e4d29(0x7f)](_0x1a00dd[_0x3e4d29(0xa0)]),![];const [,_0x45d15f]=_0x1a00dd['KxELZ'](readVint,_0x2cd874,_0x1a00dd[_0x3e4d29(0x9d)](_0x132ce,_0x366df5)),_0x18a7ab=_0x1a00dd['GALno'](_0x132ce,_0x366df5)+_0x45d15f;let _0x30c3cf=_0x18a7ab;const _0x8792c0=Math['min'](_0x2cd874[_0x3e4d29(0x94)],_0x18a7ab+0x2710);let _0x309731=null,_0x3a716b=null;while(_0x30c3cf<_0x8792c0){const [_0x544fae,_0x457981]=_0x1a00dd['gZRGi'](readId,_0x2cd874,_0x30c3cf),[_0x2303c0,_0x2c5d20]=readVint(_0x2cd874,_0x30c3cf+_0x457981);_0x1a00dd[_0x3e4d29(0x96)](_0x544fae,ID_VOID)&&!_0x309731&&(_0x309731={'offset':_0x30c3cf,'idLen':_0x457981,'sizeLen':_0x2c5d20,'dataSize':_0x2303c0,'dataOffset':_0x1a00dd['WOcRv'](_0x30c3cf,_0x457981)+_0x2c5d20});if(_0x544fae===ID_INFO){_0x3a716b={'offset':_0x30c3cf,'idLen':_0x457981,'sizeLen':_0x2c5d20,'dataSize':_0x2303c0,'dataOffset':_0x1a00dd[_0x3e4d29(0x85)](_0x30c3cf,_0x457981)+_0x2c5d20};break;}if(_0x1a00dd['kUHCV'](_0x544fae,ID_CLUSTER))break;if(isUnknownSize(_0x2303c0,_0x2c5d20))break;_0x30c3cf+=_0x1a00dd[_0x3e4d29(0x85)](_0x1a00dd['GALno'](_0x457981,_0x2c5d20),_0x2303c0);}if(!_0x3a716b)return console['error'](_0x1a00dd[_0x3e4d29(0x68)]),![];const _0x11584f=findElement(_0x2cd874,_0x3a716b[_0x3e4d29(0x69)],_0x1a00dd['Arugs'](_0x3a716b['dataOffset'],_0x3a716b[_0x3e4d29(0x73)]),ID_DURATION);if(_0x11584f)return![];const _0x497382=_0x1a00dd['mRmEn'](findElement,_0x2cd874,_0x3a716b['dataOffset'],_0x1a00dd[_0x3e4d29(0x85)](_0x3a716b['dataOffset'],_0x3a716b['dataSize']),ID_TIMESTAMP_SCALE);let _0x24638b=0xf4240;_0x497382&&(_0x24638b=readUint(_0x2cd874,_0x497382[_0x3e4d29(0x69)],_0x497382[_0x3e4d29(0x73)]));const _0x490690=_0x1a00dd[_0x3e4d29(0x6d)](computeDurationMs,_0x2cd874,_0x24638b);if(_0x1a00dd['DCREX'](_0x490690,0x0))return console['error'](_0x3e4d29(0x7d)),![];const _0xddc0d=_0x490690*0xf4240/_0x24638b,_0x1fe024=Buffer[_0x3e4d29(0x8f)]([_0x1a00dd['OIapE'](writeId,ID_DURATION),_0x1a00dd['OIapE'](writeVint,0x8),_0x1a00dd[_0x3e4d29(0x76)](writeFloat64,_0xddc0d)]),_0x3a6e16=_0x1fe024[_0x3e4d29(0x94)];if(!_0x309731||_0x309731[_0x3e4d29(0xa3)]<_0x3a716b['offset']){if(_0x309731){const _0x190282=_0x309731['idLen']+_0x309731['sizeLen']+_0x309731['dataSize'],_0x4f7072=_0x1a00dd['kSGdM'](_0x190282,_0x3a6e16);if(_0x1a00dd[_0x3e4d29(0x78)](_0x4f7072,0x2))return rewriteFile(_0x2cd874,_0x3a716b,_0x1fe024,_0x24638b,_0x490690,_0x592be8);const _0x4e65ed=_0x3a716b[_0x3e4d29(0x73)]+_0x3a6e16,_0x70dc82=Buffer['concat']([_0x1a00dd['qqwnN'](writeId,ID_INFO),_0x1a00dd['WnTNQ'](writeVint,_0x4e65ed,_0x3a716b['sizeLen'])]),_0x3e7d61=_0x2cd874['slice'](_0x3a716b[_0x3e4d29(0x69)],_0x3a716b[_0x3e4d29(0x69)]+_0x3a716b[_0x3e4d29(0x73)]),_0x592c98=writeVoid(_0x4f7072),_0x3669dd=_0x2cd874['slice'](0x0,_0x309731['offset']),_0x57b2d9=_0x2cd874[_0x3e4d29(0x7b)](_0x3a716b[_0x3e4d29(0x69)]+_0x3a716b['dataSize']);return _0x1a00dd[_0x3e4d29(0x74)](writeFileSync,_0x592be8,Buffer['concat']([_0x3669dd,_0x592c98,_0x70dc82,_0x3e7d61,_0x1fe024,_0x57b2d9])),!![];}}return rewriteFile(_0x2cd874,_0x3a716b,_0x1fe024,_0x24638b,_0x490690,_0x592be8);}function rewriteFile(_0x104d72,_0x19eac,_0x494e14,_0x20e703,_0x1aa7f7,_0xef4645){const _0x24cc1a=_0x48ab,_0x3e9a2a={'kLoBx':function(_0x422e40,_0x47fdcd){return _0x422e40(_0x47fdcd);},'lrJBk':function(_0x270287,_0x37b9a1){return _0x270287(_0x37b9a1);},'OwMfd':function(_0x5afe57,_0x10d6ca){return _0x5afe57+_0x10d6ca;}},_0xf3bf68=_0x19eac['dataSize']+_0x494e14['length'],_0x3a9539=Buffer[_0x24cc1a(0x8f)]([_0x3e9a2a['kLoBx'](writeId,ID_INFO),_0x3e9a2a['lrJBk'](writeVint,_0xf3bf68)]),_0x309ae7=_0x19eac['idLen']+_0x19eac['sizeLen'],_0x3fc76d=_0x104d72[_0x24cc1a(0x7b)](0x0,_0x19eac['offset']),_0x550385=_0x104d72[_0x24cc1a(0x7b)](_0x19eac[_0x24cc1a(0x69)],_0x3e9a2a[_0x24cc1a(0x71)](_0x19eac['dataOffset'],_0x19eac[_0x24cc1a(0x73)])),_0x1a3242=_0x104d72[_0x24cc1a(0x7b)](_0x3e9a2a['OwMfd'](_0x19eac['offset'],_0x309ae7)+_0x19eac[_0x24cc1a(0x73)]);return writeFileSync(_0xef4645,Buffer[_0x24cc1a(0x8f)]([_0x3fc76d,_0x3a9539,_0x550385,_0x494e14,_0x1a3242])),!![];}if(process[_0x2333cd(0x6c)][0x1]?.[_0x2333cd(0x9e)]('fixWebmDuration.ts')||process['argv'][0x1]?.[_0x2333cd(0x9e)]('fixWebmDuration.js')){const input=process['argv'][0x2],output=process['argv'][0x3];(!input||!output)&&(console[_0x2333cd(0x7f)](_0x2333cd(0x6e)),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0x2333cd(0x8b)]('Fixed:\x20'+output):console[_0x2333cd(0x8b)](_0x2333cd(0x6f));}
@@ -1 +1 @@
1
- function _0x47bc(){const _0x15af5c=['1784poXPRt','--error-unmatch','434xhnKLt','55467MwMAtN','7651xWkCnP','26776600wcJmgQ','19593bEHMKI','2660212SVUodM','6126oBzIAz','1226605EivKVE','cwd','git','1240793MAlNrO','rYDkG'];_0x47bc=function(){return _0x15af5c;};return _0x47bc();}function _0x27f9(_0x2a19b8,_0x222024){_0x2a19b8=_0x2a19b8-0x68;const _0x47bc4f=_0x47bc();let _0x27f94a=_0x47bc4f[_0x2a19b8];return _0x27f94a;}(function(_0x48f5d5,_0x1d4112){const _0x214cbe=_0x27f9,_0x2b888c=_0x48f5d5();while(!![]){try{const _0x1d5a31=-parseInt(_0x214cbe(0x70))/0x1+-parseInt(_0x214cbe(0x74))/0x2*(-parseInt(_0x214cbe(0x6a))/0x3)+parseInt(_0x214cbe(0x6b))/0x4+-parseInt(_0x214cbe(0x6d))/0x5+parseInt(_0x214cbe(0x6c))/0x6*(-parseInt(_0x214cbe(0x68))/0x7)+parseInt(_0x214cbe(0x72))/0x8*(-parseInt(_0x214cbe(0x75))/0x9)+parseInt(_0x214cbe(0x69))/0xa;if(_0x1d5a31===_0x1d4112)break;else _0x2b888c['push'](_0x2b888c['shift']());}catch(_0x3a773a){_0x2b888c['push'](_0x2b888c['shift']());}}}(_0x47bc,0xbf4a4));import{execFile as _0x3f22df}from'child_process';import{promisify}from'util';const execFile=promisify(_0x3f22df);export async function isPathGitTracked(_0x5ed9e5){const _0x9f65fb=_0x27f9,_0x10f442={'rYDkG':_0x9f65fb(0x73)};try{return await execFile(_0x9f65fb(0x6f),['ls-files',_0x10f442[_0x9f65fb(0x71)],_0x5ed9e5],{'cwd':process[_0x9f65fb(0x6e)]()}),!![];}catch{return![];}}
1
+ function _0x4a87(_0x1073d2,_0x4dda56){_0x1073d2=_0x1073d2-0xd9;const _0x23c7ef=_0x23c7();let _0x4a8721=_0x23c7ef[_0x1073d2];return _0x4a8721;}(function(_0x55a454,_0x7dfe3b){const _0x476224=_0x4a87,_0x252dec=_0x55a454();while(!![]){try{const _0x4022a5=parseInt(_0x476224(0xdd))/0x1*(-parseInt(_0x476224(0xdb))/0x2)+-parseInt(_0x476224(0xd9))/0x3+parseInt(_0x476224(0xdc))/0x4*(-parseInt(_0x476224(0xda))/0x5)+parseInt(_0x476224(0xe5))/0x6*(-parseInt(_0x476224(0xde))/0x7)+-parseInt(_0x476224(0xe4))/0x8+-parseInt(_0x476224(0xe0))/0x9*(-parseInt(_0x476224(0xe3))/0xa)+parseInt(_0x476224(0xe1))/0xb;if(_0x4022a5===_0x7dfe3b)break;else _0x252dec['push'](_0x252dec['shift']());}catch(_0x14b961){_0x252dec['push'](_0x252dec['shift']());}}}(_0x23c7,0x73496));import{execFile as _0x4cef20}from'child_process';function _0x23c7(){const _0x2502b8=['XVuCv','8882110cpHKbp','967568TadxhH','14730NLgvTJ','git','901677jJGcLK','1216290TPqVVY','404884SLmkyo','12veBrGn','1DkEQyt','875DuWuEo','ls-files','9FVOhzI','13690589hkLenh'];_0x23c7=function(){return _0x2502b8;};return _0x23c7();}import{promisify}from'util';const execFile=promisify(_0x4cef20);export async function isPathGitTracked(_0x54ab25){const _0x21e151=_0x4a87,_0x1e4a56={'XVuCv':_0x21e151(0xdf),'obAeE':'--error-unmatch'};try{return await execFile(_0x21e151(0xe6),[_0x1e4a56[_0x21e151(0xe2)],_0x1e4a56['obAeE'],_0x54ab25],{'cwd':process['cwd']()}),!![];}catch{return![];}}
@@ -1 +1 @@
1
- const _0x18f25d=_0x3d94;(function(_0x4a212f,_0x21ed50){const _0xee6e89=_0x3d94,_0x2ffeb5=_0x4a212f();while(!![]){try{const _0x36e237=-parseInt(_0xee6e89(0x108))/0x1*(parseInt(_0xee6e89(0x106))/0x2)+-parseInt(_0xee6e89(0xe4))/0x3+-parseInt(_0xee6e89(0xd1))/0x4*(parseInt(_0xee6e89(0xc3))/0x5)+parseInt(_0xee6e89(0xdd))/0x6+parseInt(_0xee6e89(0xb9))/0x7+-parseInt(_0xee6e89(0xec))/0x8*(-parseInt(_0xee6e89(0xc0))/0x9)+parseInt(_0xee6e89(0xde))/0xa*(parseInt(_0xee6e89(0xf3))/0xb);if(_0x36e237===_0x21ed50)break;else _0x2ffeb5['push'](_0x2ffeb5['shift']());}catch(_0x411693){_0x2ffeb5['push'](_0x2ffeb5['shift']());}}}(_0x556f,0xa43b2));function _0x3d94(_0x53abf9,_0x2842ed){_0x53abf9=_0x53abf9-0xb6;const _0x3ae81b=_0x556f();let _0x526c62=_0x3ae81b[_0x53abf9];if(_0x3d94['WlSLdU']===undefined){var _0x59d372=function(_0xa0e5a6){const _0x2ef603='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xe19645='',_0x3b1072='',_0x481f90=_0xe19645+_0x59d372;for(let _0x2ee778=0x0,_0x2e4e5e,_0x136a94,_0x2fd121=0x0;_0x136a94=_0xa0e5a6['charAt'](_0x2fd121++);~_0x136a94&&(_0x2e4e5e=_0x2ee778%0x4?_0x2e4e5e*0x40+_0x136a94:_0x136a94,_0x2ee778++%0x4)?_0xe19645+=_0x481f90['charCodeAt'](_0x2fd121+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x2e4e5e>>(-0x2*_0x2ee778&0x6)):_0x2ee778:0x0){_0x136a94=_0x2ef603['indexOf'](_0x136a94);}for(let _0xa99eb=0x0,_0xf4d73b=_0xe19645['length'];_0xa99eb<_0xf4d73b;_0xa99eb++){_0x3b1072+='%'+('00'+_0xe19645['charCodeAt'](_0xa99eb)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3b1072);};_0x3d94['gcFvvn']=_0x59d372,_0x3d94['RVfqRK']={},_0x3d94['WlSLdU']=!![];}const _0x556fc5=_0x3ae81b[0x0],_0x3d947b=_0x53abf9+_0x556fc5,_0x3c7792=_0x3d94['RVfqRK'][_0x3d947b];if(!_0x3c7792){const _0x35ee96=function(_0x42d348){this['EFHZMy']=_0x42d348,this['WTvdiy']=[0x1,0x0,0x0],this['KwEyIR']=function(){return'newState';},this['ConyyM']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['uPuCNE']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x35ee96['prototype']['ZlTrZr']=function(){const _0x19fdcb=new RegExp(this['ConyyM']+this['uPuCNE']),_0x3a652b=_0x19fdcb['test'](this['KwEyIR']['toString']())?--this['WTvdiy'][0x1]:--this['WTvdiy'][0x0];return this['IIcVRL'](_0x3a652b);},_0x35ee96['prototype']['IIcVRL']=function(_0x1c33aa){if(!Boolean(~_0x1c33aa))return _0x1c33aa;return this['bsleif'](this['EFHZMy']);},_0x35ee96['prototype']['bsleif']=function(_0x1497f3){for(let _0x5be865=0x0,_0x3ab174=this['WTvdiy']['length'];_0x5be865<_0x3ab174;_0x5be865++){this['WTvdiy']['push'](Math['round'](Math['random']())),_0x3ab174=this['WTvdiy']['length'];}return _0x1497f3(this['WTvdiy'][0x0]);},new _0x35ee96(_0x3d94)['ZlTrZr'](),_0x526c62=_0x3d94['gcFvvn'](_0x526c62),_0x3d94['RVfqRK'][_0x3d947b]=_0x526c62;}else _0x526c62=_0x3c7792;return _0x526c62;}const _0x59d372=(function(){const _0x890821=_0x3d94,_0x3c45ab={'oaYyG':function(_0x39fce8,_0x237df2){return _0x39fce8===_0x237df2;},'huDPP':'FHSBm','Vpuod':'YtviP','oShml':function(_0x2689db,_0x340cf9){return _0x2689db===_0x340cf9;},'NpCAn':_0x890821(0xf2),'uSKtf':_0x890821(0xf8),'TbUwR':function(_0x187abf,_0x4842b4){return _0x187abf instanceof _0x4842b4;},'KRyJs':function(_0x485dfd,_0x53bc29){return _0x485dfd+_0x53bc29;},'JnWRN':_0x890821(0xd5)};let _0x1786b7=!![];return function(_0x526941,_0x1c3d4f){const _0x411b44=_0x890821,_0x2ad47b={'ZAIiQ':function(_0x510bd7,_0x44e3b1){const _0x53bc8d=_0x3d94;return _0x3c45ab[_0x53bc8d(0xc5)](_0x510bd7,_0x44e3b1);},'pTmmb':function(_0x5169fc,_0x1b82fb){return _0x5169fc(_0x1b82fb);},'sCefW':function(_0x309ccb,_0x5c810b){const _0x4ffada=_0x3d94;return _0x3c45ab[_0x4ffada(0xef)](_0x309ccb,_0x5c810b);}};if(_0x411b44(0xca)===_0x3c45ab[_0x411b44(0xcf)]){const _0x5c4082=_0x2ad47b['ZAIiQ'](_0x4acbdb,_0x37c6c1)?_0x36e2fb[_0x411b44(0xfa)]:_0x2ad47b[_0x411b44(0xb8)](_0x22eb3a,_0x1029d2);throw new _0x5b2b96(_0x2ad47b['sCefW'](_0x411b44(0xe7)+_0x5c4082+'\x0a','Re-authorize\x20the\x20Ranger\x20MCP\x20connection,\x20then\x20retry.'));}else{const _0x51fcc1=_0x1786b7?function(){const _0x45be20=_0x411b44;if(_0x3c45ab[_0x45be20(0xd9)](_0x3c45ab['huDPP'],_0x3c45ab[_0x45be20(0xfd)])){if(_0x57f622){const _0x1fc53f=_0x21e02e[_0x45be20(0xbe)](_0x5872b3,arguments);return _0x4581d2=null,_0x1fc53f;}}else{if(_0x1c3d4f){if(_0x3c45ab[_0x45be20(0xcb)](_0x3c45ab[_0x45be20(0xfb)],_0x3c45ab[_0x45be20(0xea)]))return![];else{const _0x4cff37=_0x1c3d4f['apply'](_0x526941,arguments);return _0x1c3d4f=null,_0x4cff37;}}}}:function(){};return _0x1786b7=![],_0x51fcc1;}};}()),_0x526c62=_0x59d372(this,function(){const _0x51f874=_0x3d94,_0x1b5cdb={'vymDQ':_0x51f874(0x101)};return _0x526c62[_0x51f874(0xf4)]()[_0x51f874(0xe1)](_0x1b5cdb[_0x51f874(0xdb)])[_0x51f874(0xf4)]()[_0x51f874(0xd7)](_0x526c62)['search'](_0x1b5cdb[_0x51f874(0xdb)]);});_0x526c62();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x18f25d(0xbc),ENV_TOKEN_LEGACY=_0x18f25d(0xd8),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x18f25d(0xbb)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x18f25d(0xcc));function isGitHubCI(){const _0x578477=_0x18f25d;return!!process[_0x578477(0xd0)][_0x578477(0xdc)];}async function writeToGitHubEnv(_0x4ec1e8,_0x27882f){const _0x3dc2f9=process['env']['GITHUB_ENV'];_0x3dc2f9&&await appendFile(_0x3dc2f9,_0x4ec1e8+'='+_0x27882f+'\x0a');}export async function storeToken(_0x2d20fc){const _0x2cf754=_0x18f25d,_0x1b8f50={'GVeLt':function(_0x49ba14,_0x18e71f,_0x1381ae){return _0x49ba14(_0x18e71f,_0x1381ae);},'orGKb':function(_0x11daf3,_0x4b2acb,_0x1da4e3){return _0x11daf3(_0x4b2acb,_0x1da4e3);}};isGitHubCI()?await _0x1b8f50[_0x2cf754(0xf5)](writeToGitHubEnv,ENV_TOKEN,_0x2d20fc):(await _0x1b8f50[_0x2cf754(0xc8)](mkdir,TOKEN_DIR,{'recursive':!![]}),await writeFile(TOKEN_PATH,_0x2d20fc,{'mode':0x180}));}export async function getToken(){const _0x50047f=_0x18f25d,_0x3c5c3e={'nnMGn':function(_0x3d9cba,_0x5b05a5){return _0x3d9cba(_0x5b05a5);},'cKWNY':_0x50047f(0xd6),'Fopft':function(_0x4b13a6){return _0x4b13a6();},'hZIuT':function(_0x4ab2fd,_0x37c31b){return _0x4ab2fd(_0x37c31b);},'SjzaL':_0x50047f(0xff),'wCGtl':function(_0x43455d,_0x498c51){return _0x43455d!==_0x498c51;},'lAzqg':_0x50047f(0xc2),'fQgGy':_0x50047f(0xc4),'jfDML':function(_0x3a133e){return _0x3a133e();},'bghXl':function(_0x378640,_0x3b005a){return _0x378640 instanceof _0x3b005a;},'fSdDe':function(_0x3384fa,_0x3728c5){return _0x3384fa+_0x3728c5;},'qyoNz':_0x50047f(0xda),'oOaDy':_0x50047f(0xe0)};if(process[_0x50047f(0xd0)][ENV_TOKEN])return process[_0x50047f(0xd0)][ENV_TOKEN];if(process[_0x50047f(0xd0)][ENV_TOKEN_LEGACY])return process[_0x50047f(0xd0)][ENV_TOKEN_LEGACY];let _0x737b3c=null;try{_0x737b3c=(await readFile(TOKEN_PATH,_0x3c5c3e[_0x50047f(0xe3)]))[_0x50047f(0xe9)]()||null;}catch{const _0x39fb99=await _0x3c5c3e[_0x50047f(0xed)](tryRefreshToken);return _0x39fb99;}if(!_0x737b3c)return null;const _0x25a876=await _0x3c5c3e[_0x50047f(0x105)](checkTokenValid,_0x737b3c);if(_0x25a876)return _0x737b3c;const _0x5b2ad0=await _0x3c5c3e[_0x50047f(0xf6)](tryPromoteRefreshToken,_0x737b3c);if(_0x5b2ad0)return _0x5b2ad0;const _0x23b4ed=await tryRefreshToken();if(_0x23b4ed)return _0x23b4ed;const {getMcpAuthOrigin:_0x5b3ab6,mcpBootstrap:_0x5c9691}=await import(_0x3c5c3e['SjzaL']),_0x1e0648=await _0x5b3ab6();if(_0x1e0648)try{if(_0x3c5c3e[_0x50047f(0xe8)](_0x50047f(0xc2),_0x3c5c3e['lAzqg']))_0x3c5c3e[_0x50047f(0xf6)](_0x5a0651,_0x20736e);else{console[_0x50047f(0xdf)](_0x3c5c3e[_0x50047f(0x103)]),await _0x3c5c3e[_0x50047f(0xf1)](_0x5c9691);const _0x55e60a=await tryRefreshToken();if(_0x55e60a)return _0x55e60a;}}catch(_0x3c4b24){const _0x53d7ba=_0x3c5c3e[_0x50047f(0xce)](_0x3c4b24,Error)?_0x3c4b24['message']:_0x3c5c3e['hZIuT'](String,_0x3c4b24);throw new Error(_0x3c5c3e['fSdDe'](_0x50047f(0xe7)+_0x53d7ba+'\x0a',_0x3c5c3e[_0x50047f(0x107)]));}throw new Error(_0x3c5c3e[_0x50047f(0x104)]);}async function checkTokenValid(_0x11d074){const _0x21e58b=_0x18f25d,_0x4435f6={'pbjxz':function(_0x266368,_0xdc7cba,_0x321e23){return _0x266368(_0xdc7cba,_0x321e23);},'lnAvE':function(_0x733d09,_0x3c94ec){return _0x733d09!==_0x3c94ec;},'KBWGy':_0x21e58b(0xd4),'PDnlx':_0x21e58b(0xc7),'ithxM':_0x21e58b(0xd2),'xLabl':'jvOPV','xxpIz':function(_0x2df3f6,_0x3a65ea){return _0x2df3f6(_0x3a65ea);}},_0x5a031d=new AbortController(),_0x3f9f0f=_0x4435f6[_0x21e58b(0xe6)](setTimeout,()=>_0x5a031d[_0x21e58b(0x100)](),0x1388);try{if(_0x4435f6['lnAvE'](_0x4435f6[_0x21e58b(0xbf)],_0x4435f6[_0x21e58b(0xbf)]))return null;else{const {getApiBaseUrl:_0x318a84}=await import(_0x4435f6[_0x21e58b(0xd3)]),_0x317b1f=_0x318a84(),_0x35df59=await _0x4435f6[_0x21e58b(0xe6)](fetch,_0x317b1f+_0x21e58b(0xf9),{'method':_0x4435f6['ithxM'],'headers':{'Authorization':_0x21e58b(0xbd)+_0x11d074},'signal':_0x5a031d['signal']});return _0x35df59['ok'];}}catch{return _0x21e58b(0x109)===_0x4435f6['xLabl']?!![]:![];}finally{_0x4435f6['xxpIz'](clearTimeout,_0x3f9f0f);}}async function tryRefreshToken(){const _0xcb2072=_0x18f25d,_0x3ab040={'SwzFF':function(_0x1ea655){return _0x1ea655();}},{refreshCliToken:_0x2da170}=await import(_0xcb2072(0xc9));return _0x3ab040['SwzFF'](_0x2da170);}async function tryPromoteRefreshToken(_0x3bfa8f){const _0x1fe123=_0x18f25d,_0x23b320={'mvQpK':_0x1fe123(0xc9),'CBony':function(_0x392ea1,_0x2d871c,_0x1c0e92){return _0x392ea1(_0x2d871c,_0x1c0e92);}},{refreshPartnerCliToken:_0x1ba0a2}=await import(_0x23b320[_0x1fe123(0xc6)]);return _0x23b320[_0x1fe123(0xee)](_0x1ba0a2,_0x3bfa8f,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x217fe4=_0x18f25d,_0x14d845={'yQnEs':function(_0x597f62,_0x16cf3f){return _0x597f62===_0x16cf3f;},'WVhhb':_0x217fe4(0xf7),'EphZo':_0x217fe4(0xeb),'stSyI':function(_0x34ab86,_0x51a347){return _0x34ab86(_0x51a347);}};try{return _0x14d845[_0x217fe4(0x102)](_0x14d845[_0x217fe4(0xba)],_0x14d845[_0x217fe4(0xfc)])?_0x5a4df4['env'][_0x55d383]:(await _0x14d845[_0x217fe4(0xe5)](unlink,TOKEN_PATH),!![]);}catch{return![];}}export async function storeRefreshToken(_0x54736e){const _0x53b298={'guppe':function(_0x4cf355,_0x538193,_0x4d1618,_0x44e9f9){return _0x4cf355(_0x538193,_0x4d1618,_0x44e9f9);}};await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x53b298['guppe'](writeFile,REFRESH_TOKEN_PATH,_0x54736e,{'mode':0x180});}export async function getRefreshToken(){const _0x3fa5af=_0x18f25d,_0x16de7c={'FAfXd':'MrBzg','NzFem':_0x3fa5af(0xd6)};try{if(_0x16de7c[_0x3fa5af(0xb6)]!==_0x16de7c['FAfXd'])return!!_0x296b9f['env'][_0x3fa5af(0xdc)];else{const _0xc49926=await readFile(REFRESH_TOKEN_PATH,_0x16de7c['NzFem']);return _0xc49926[_0x3fa5af(0xe9)]()||null;}}catch{return null;}}function _0x556f(){const _0x4167f0=['yMDOwgW','sM5xuK4','zw52','mtyWsLrkBg5o','r0vu','uerUBhG','Du9dy1O','vK1VtvC','DxrMltG','y29UC3rYDwn0B3i','uKfor0vsx01duf9ut0TftG','B2fzEuC','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','DNLTrfe','r0Lusfvcx0vovG','nJe3mtaWvuzKANnT','mJq3nZKWzMrtCfbv','Bg9N','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','C2vHCMnO','sxPJzKK','y0TxtLK','otyXmtKXA0nqz0HX','C3rtEuK','CgjQEhO','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','D0nhDgW','DhjPBq','DvnlDgy','rLnqwMC','mJqWmJqWofn6vMzjtW','rM9WzNq','q0jVBNK','s1j5sNm','zNvxtxu','AMzetuW','C1Dryui','mZn3Aw5Kvvq','Dg9tDhjPBMC','r1zLthq','BM5nr24','CKLNC1i','DxPvs2G','l2fWAs92ms9Ty3aVBwu','BwvZC2fNzq','tNbdqw4','rxbOwM8','vNb1B2q','B2f3t1a','lI4VBwnWqM9VDhn0CMfWlMPZ','ywjVCNq','kcGOlISPkYKRksSK','EvfUrxm','zLfNr3K','B09HrhK','AfPjDvq','nfn4tvn6DW','CxLVtNO','ntu3ndLgzNrzDfq','ANzpufy','rKfMwgq','tKjHzfm','CfrTBwi','nti3nZGZovzYr2Hbtq','v1zOAgi','y2XPlNr4Da','uKfor0vsx0nmsv9ut0TftG','qMvHCMvYia','yxbWBhK','s0jxr3K','ouzhBM1VEG','AhPVz1G','vhbfwgy','mtu4nJb6ENzNs2u','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','vgjvD1i','BxzrCeS','lI9LBNzPCM9UBwvUDc5QCW','B3jhs2i','lI90B2TLBLjLzNjLC2GUANm','vLjzD0C','B1nOBwW','CMvMCMvZAc50Ehq','C1v1C2q'];_0x556f=function(){return _0x4167f0;};return _0x556f();}export async function deleteRefreshToken(){const _0x5c7996=_0x18f25d,_0x1941fb={'hzogX':_0x5c7996(0xcd),'gzQaL':function(_0x50ab8b,_0x3618ee){return _0x50ab8b(_0x3618ee);},'fuWMu':function(_0x54890e,_0x7e242c){return _0x54890e===_0x7e242c;},'oawOP':'NBadS'};try{return _0x1941fb[_0x5c7996(0xc1)]===_0x5c7996(0xcd)?(await _0x1941fb['gzQaL'](unlink,REFRESH_TOKEN_PATH),!![]):_0x2053ee[_0x5c7996(0xd0)][_0x444962];}catch{if(_0x1941fb[_0x5c7996(0xf0)](_0x5c7996(0xb7),_0x1941fb[_0x5c7996(0xfe)]))return![];else{const _0x266cc1=_0x35ee96?function(){const _0x4eb992=_0x5c7996;if(_0x5be865){const _0x3eaf3a=_0x12f85d[_0x4eb992(0xbe)](_0xf91d14,arguments);return _0x391b31=null,_0x3eaf3a;}}:function(){};return _0x1497f3=![],_0x266cc1;}}}export async function deleteAllCredentials(){const _0x62e094=_0x18f25d,_0x121960={'IzcfI':function(_0x1c97de){return _0x1c97de();},'ZfQtK':function(_0x4ceff1){return _0x4ceff1();}};await _0x121960[_0x62e094(0xe2)](deleteToken),await _0x121960['ZfQtK'](deleteRefreshToken);}
1
+ function _0x3408(_0x39a7c4,_0x217830){_0x39a7c4=_0x39a7c4-0xcb;const _0x4ff566=_0x1d97();let _0x39977e=_0x4ff566[_0x39a7c4];if(_0x3408['eATAPP']===undefined){var _0xcec9c2=function(_0xd735e1){const _0x4d29dc='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2428b0='',_0x38adc5='',_0x1e4e34=_0x2428b0+_0xcec9c2;for(let _0x53e3e8=0x0,_0x310caa,_0x5ca386,_0x51b990=0x0;_0x5ca386=_0xd735e1['charAt'](_0x51b990++);~_0x5ca386&&(_0x310caa=_0x53e3e8%0x4?_0x310caa*0x40+_0x5ca386:_0x5ca386,_0x53e3e8++%0x4)?_0x2428b0+=_0x1e4e34['charCodeAt'](_0x51b990+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x310caa>>(-0x2*_0x53e3e8&0x6)):_0x53e3e8:0x0){_0x5ca386=_0x4d29dc['indexOf'](_0x5ca386);}for(let _0x5e2304=0x0,_0x1bd4a9=_0x2428b0['length'];_0x5e2304<_0x1bd4a9;_0x5e2304++){_0x38adc5+='%'+('00'+_0x2428b0['charCodeAt'](_0x5e2304)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x38adc5);};_0x3408['BzJuUm']=_0xcec9c2,_0x3408['XATQDZ']={},_0x3408['eATAPP']=!![];}const _0x1d9763=_0x4ff566[0x0],_0x3408cc=_0x39a7c4+_0x1d9763,_0x13a813=_0x3408['XATQDZ'][_0x3408cc];if(!_0x13a813){const _0x539b4c=function(_0x14dcf1){this['JgLvYf']=_0x14dcf1,this['eQoncl']=[0x1,0x0,0x0],this['LVDFkk']=function(){return'newState';},this['txdtuF']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['vjqkTi']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x539b4c['prototype']['sBRBgU']=function(){const _0x66711a=new RegExp(this['txdtuF']+this['vjqkTi']),_0x32945b=_0x66711a['test'](this['LVDFkk']['toString']())?--this['eQoncl'][0x1]:--this['eQoncl'][0x0];return this['GIpnCD'](_0x32945b);},_0x539b4c['prototype']['GIpnCD']=function(_0x117ce2){if(!Boolean(~_0x117ce2))return _0x117ce2;return this['mfGrQk'](this['JgLvYf']);},_0x539b4c['prototype']['mfGrQk']=function(_0x22a7c5){for(let _0x272050=0x0,_0x167662=this['eQoncl']['length'];_0x272050<_0x167662;_0x272050++){this['eQoncl']['push'](Math['round'](Math['random']())),_0x167662=this['eQoncl']['length'];}return _0x22a7c5(this['eQoncl'][0x0]);},new _0x539b4c(_0x3408)['sBRBgU'](),_0x39977e=_0x3408['BzJuUm'](_0x39977e),_0x3408['XATQDZ'][_0x3408cc]=_0x39977e;}else _0x39977e=_0x13a813;return _0x39977e;}const _0x4aed46=_0x3408;(function(_0x3f29cc,_0x4163c7){const _0x4fc78d=_0x3408,_0x2d6b12=_0x3f29cc();while(!![]){try{const _0x55565d=parseInt(_0x4fc78d(0xd4))/0x1+parseInt(_0x4fc78d(0xe6))/0x2+-parseInt(_0x4fc78d(0xd6))/0x3*(parseInt(_0x4fc78d(0x114))/0x4)+-parseInt(_0x4fc78d(0xea))/0x5+parseInt(_0x4fc78d(0xd8))/0x6*(-parseInt(_0x4fc78d(0x10d))/0x7)+-parseInt(_0x4fc78d(0x11b))/0x8*(-parseInt(_0x4fc78d(0xdd))/0x9)+-parseInt(_0x4fc78d(0xdb))/0xa*(-parseInt(_0x4fc78d(0x102))/0xb);if(_0x55565d===_0x4163c7)break;else _0x2d6b12['push'](_0x2d6b12['shift']());}catch(_0x466d61){_0x2d6b12['push'](_0x2d6b12['shift']());}}}(_0x1d97,0x38199));const _0xcec9c2=(function(){const _0x21e824=_0x3408,_0x667555={'cjwmZ':_0x21e824(0xe5),'xERUw':function(_0x5e6c4f,_0x46a04b){return _0x5e6c4f===_0x46a04b;},'uzFYl':_0x21e824(0xff)};let _0x437c5e=!![];return function(_0x518e3f,_0x3bab6f){const _0xd8dcd8=_0x21e824;if(_0x667555['xERUw'](_0x667555[_0xd8dcd8(0x116)],_0xd8dcd8(0xef)))return!![];else{const _0xd7626=_0x437c5e?function(){const _0x3dd258=_0xd8dcd8;if(_0x667555[_0x3dd258(0xfe)]!=='gCqNS')return!!_0x23a127[_0x3dd258(0x11d)]['GITHUB_ENV'];else{if(_0x3bab6f){if(_0x667555[_0x3dd258(0xf9)]('cpMnZ','cpMnZ')){const _0x26006f=_0x3bab6f['apply'](_0x518e3f,arguments);return _0x3bab6f=null,_0x26006f;}else _0x2231d6(_0x4dab5b);}}}:function(){};return _0x437c5e=![],_0xd7626;}};}()),_0x39977e=_0xcec9c2(this,function(){const _0x2e2ebc=_0x3408,_0x5927d0={'uAlTP':_0x2e2ebc(0x111)};return _0x39977e['toString']()[_0x2e2ebc(0x105)](_0x5927d0[_0x2e2ebc(0xf7)])[_0x2e2ebc(0xeb)]()[_0x2e2ebc(0xe3)](_0x39977e)[_0x2e2ebc(0x105)](_0x2e2ebc(0x111));});_0x39977e();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x4aed46(0xec),ENV_TOKEN_LEGACY='RANGER_MCP_TOKEN',TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x4aed46(0xcc)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x4aed46(0xd5));function isGitHubCI(){return!!process['env']['GITHUB_ENV'];}async function writeToGitHubEnv(_0x309e7a,_0x382cd9){const _0x34f6e3=_0x4aed46,_0x43cf98={'BUqaB':function(_0x32b95f,_0x10621e,_0x4efff6){return _0x32b95f(_0x10621e,_0x4efff6);}},_0x51a17d=process[_0x34f6e3(0x11d)][_0x34f6e3(0xd2)];_0x51a17d&&await _0x43cf98[_0x34f6e3(0x104)](appendFile,_0x51a17d,_0x309e7a+'='+_0x382cd9+'\x0a');}export async function storeToken(_0x5e138b){const _0x6ed05=_0x4aed46,_0x24ad8d={'WNURV':function(_0x395864){return _0x395864();},'aIOqg':function(_0xe0e322,_0x10b0f2,_0x406848){return _0xe0e322(_0x10b0f2,_0x406848);},'leaQE':function(_0x5480e5,_0x5dca6c,_0xf83de,_0x1b1cd3){return _0x5480e5(_0x5dca6c,_0xf83de,_0x1b1cd3);}};_0x24ad8d[_0x6ed05(0x110)](isGitHubCI)?await _0x24ad8d[_0x6ed05(0x119)](writeToGitHubEnv,ENV_TOKEN,_0x5e138b):(await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x24ad8d[_0x6ed05(0xf5)](writeFile,TOKEN_PATH,_0x5e138b,{'mode':0x180}));}export async function getToken(){const _0x190e7d=_0x4aed46,_0xdce44e={'yzZST':_0x190e7d(0x111),'uOxAY':function(_0x1e5b88,_0x38de6b,_0x1ac3eb){return _0x1e5b88(_0x38de6b,_0x1ac3eb);},'vviAG':function(_0x32fc4f){return _0x32fc4f();},'rpPEd':function(_0xadcd05,_0x473b22){return _0xadcd05(_0x473b22);},'EJXuX':_0x190e7d(0x117),'QlTvC':function(_0x5c4589){return _0x5c4589();},'tfFrt':_0x190e7d(0xe7),'OGGXP':_0x190e7d(0x10e),'YzRYG':_0x190e7d(0xfd),'jiUEY':function(_0x12ef9f){return _0x12ef9f();},'ngxYM':function(_0xc4f8fa,_0x4d93df){return _0xc4f8fa!==_0x4d93df;},'pQYMa':_0x190e7d(0x109),'pREGV':function(_0x130179,_0x3df49b){return _0x130179 instanceof _0x3df49b;},'ZYpWh':function(_0x2e96f5,_0x5cc820){return _0x2e96f5(_0x5cc820);},'SaOzs':_0x190e7d(0xd7)};if(process[_0x190e7d(0x11d)][ENV_TOKEN])return process[_0x190e7d(0x11d)][ENV_TOKEN];if(process[_0x190e7d(0x11d)][ENV_TOKEN_LEGACY])return process[_0x190e7d(0x11d)][ENV_TOKEN_LEGACY];let _0x39ff6c=null;try{_0x39ff6c=(await _0xdce44e['uOxAY'](readFile,TOKEN_PATH,_0x190e7d(0x10a)))[_0x190e7d(0xf8)]()||null;}catch{const _0x1c2ee2=await _0xdce44e[_0x190e7d(0xd0)](tryRefreshToken);return _0x1c2ee2;}if(!_0x39ff6c)return null;const _0x363055=await _0xdce44e[_0x190e7d(0xe4)](checkTokenValid,_0x39ff6c);if(_0x363055)return _0x39ff6c;const _0x432ee9=await _0xdce44e[_0x190e7d(0xe4)](tryPromoteRefreshToken,_0x39ff6c);if(_0x432ee9)return _0x432ee9;const _0x779b8b=await _0xdce44e['vviAG'](tryRefreshToken);if(_0x779b8b)return _0x779b8b;const {getMcpAuthOrigin:_0x11ff3f,mcpBootstrap:_0x207814}=await import(_0xdce44e[_0x190e7d(0xdf)]),_0x5c2d98=await _0xdce44e['QlTvC'](_0x11ff3f);if(_0x5c2d98){if(_0xdce44e[_0x190e7d(0xfb)]!==_0xdce44e[_0x190e7d(0xf1)])try{console[_0x190e7d(0xee)](_0xdce44e['YzRYG']),await _0xdce44e[_0x190e7d(0xfc)](_0x207814);const _0xe6ceec=await _0xdce44e[_0x190e7d(0x11a)](tryRefreshToken);if(_0xe6ceec)return _0xe6ceec;}catch(_0x45bd09){if(_0xdce44e[_0x190e7d(0xf4)](_0xdce44e[_0x190e7d(0xcd)],_0xdce44e[_0x190e7d(0xcd)])){const _0x2c32a1=_0x1134b3[_0x190e7d(0xf3)](_0x493957,arguments);return _0x2361d7=null,_0x2c32a1;}else{const _0x96068e=_0xdce44e[_0x190e7d(0x108)](_0x45bd09,Error)?_0x45bd09['message']:_0xdce44e[_0x190e7d(0x115)](String,_0x45bd09);throw new Error(_0x190e7d(0xed)+_0x96068e+'\x0a'+_0xdce44e[_0x190e7d(0xda)]);}}else return _0x2a5967[_0x190e7d(0xeb)]()[_0x190e7d(0x105)](YZRcrZ[_0x190e7d(0xde)])[_0x190e7d(0xeb)]()[_0x190e7d(0xe3)](_0x33b721)[_0x190e7d(0x105)](YZRcrZ[_0x190e7d(0xde)]);}throw new Error('Your\x20session\x20has\x20expired.\x20Please\x20run\x20`ranger\x20login`\x20to\x20re-authenticate.');}async function checkTokenValid(_0x5ef066){const _0x5f355a=_0x4aed46,_0x36e5c1={'tJfoM':function(_0x5ca3c6,_0x4505a9){return _0x5ca3c6 instanceof _0x4505a9;},'xzfXg':function(_0x159cda,_0x58f309){return _0x159cda(_0x58f309);},'bEUJS':'Re-authorize\x20the\x20Ranger\x20MCP\x20connection,\x20then\x20retry.','JrZrv':function(_0x55ae28,_0x2dc2f2,_0x395993){return _0x55ae28(_0x2dc2f2,_0x395993);},'wghsv':_0x5f355a(0x100),'phLtC':function(_0x12715a){return _0x12715a();},'xqKVn':function(_0x44710e,_0x49919b,_0x143edd){return _0x44710e(_0x49919b,_0x143edd);},'gIfyO':_0x5f355a(0x11e),'aMAVL':function(_0x3c5ec2,_0x3010e9){return _0x3c5ec2===_0x3010e9;},'JwVxc':_0x5f355a(0xf2),'OOofO':_0x5f355a(0x11f)},_0x39213d=new AbortController(),_0x395187=_0x36e5c1[_0x5f355a(0xcf)](setTimeout,()=>_0x39213d[_0x5f355a(0x103)](),0x1388);try{const {getApiBaseUrl:_0x7275d0}=await import(_0x36e5c1[_0x5f355a(0xf6)]),_0x361bcb=_0x36e5c1['phLtC'](_0x7275d0),_0x485ee9=await _0x36e5c1[_0x5f355a(0xce)](fetch,_0x361bcb+_0x5f355a(0x101),{'method':_0x36e5c1[_0x5f355a(0x10b)],'headers':{'Authorization':_0x5f355a(0xe1)+_0x5ef066},'signal':_0x39213d['signal']});return _0x485ee9['ok'];}catch{return!![];}finally{if(_0x36e5c1[_0x5f355a(0xe8)](_0x36e5c1[_0x5f355a(0x10c)],_0x36e5c1[_0x5f355a(0x112)])){const _0x5dcfb0=_0x36e5c1[_0x5f355a(0xd9)](_0x5624cd,_0x348b7f)?_0x1d3cfd[_0x5f355a(0x106)]:_0x36e5c1[_0x5f355a(0xd1)](_0x5e7348,_0x2011d8);throw new _0x4e9e79(_0x5f355a(0xed)+_0x5dcfb0+'\x0a'+_0x36e5c1[_0x5f355a(0xe0)]);}else clearTimeout(_0x395187);}}async function tryRefreshToken(){const _0x13a998=_0x4aed46,_0x551bb9={'UjPKc':_0x13a998(0xfa),'iDxKP':function(_0x432433){return _0x432433();}},{refreshCliToken:_0x32e58b}=await import(_0x551bb9[_0x13a998(0xe9)]);return _0x551bb9[_0x13a998(0x11c)](_0x32e58b);}async function tryPromoteRefreshToken(_0x3f768b){const _0x14a0a5={'SmNcN':'./tokenRefresh.js'},{refreshPartnerCliToken:_0x54552b}=await import(_0x14a0a5['SmNcN']);return _0x54552b(_0x3f768b,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x19b0cc=_0x4aed46,_0x4c25a1={'JoAvL':'HBcBQ','ktPnI':function(_0xd7d8c8,_0x55f8b5){return _0xd7d8c8(_0x55f8b5);}};try{return _0x4c25a1['JoAvL']!==_0x19b0cc(0x10f)?_0x163e3e[_0x19b0cc(0x11d)][_0x5c28be]:(await _0x4c25a1[_0x19b0cc(0xcb)](unlink,TOKEN_PATH),!![]);}catch{return![];}}export async function storeRefreshToken(_0x2bed5b){const _0x24c261=_0x4aed46,_0x43ae86={'grMEt':function(_0x477f38,_0x2b9ec1,_0x35a330){return _0x477f38(_0x2b9ec1,_0x35a330);},'lJEcu':function(_0x1e01e6,_0x2e3637,_0x58420d,_0x328e26){return _0x1e01e6(_0x2e3637,_0x58420d,_0x328e26);}};await _0x43ae86[_0x24c261(0xdc)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x43ae86['lJEcu'](writeFile,REFRESH_TOKEN_PATH,_0x2bed5b,{'mode':0x180});}function _0x1d97(){const _0x5cef52=['qLvXyui','C2vHCMnO','BwvZC2fNzq','DNrKBfK','Cfjfr1y','AvjWwxO','DxrMltG','z0LMEu8','sNDwEgm','nJn1vLb5Bfq','yuHdqMW','sejJqLe','v05vuLy','kcGOlISPkYKRksSK','t09VzK8','s3vNtvm','mtzktwLlALO','wLLWv2G','DxPgwwW','lI4VBwnWqM9VDhn0CMfWlMPZ','vwXzzuK','yuLpCwC','uwXuDKm','ndHiEK5Ouwi','Aur4s1a','zw52','r0vu','D01gs2K','A3rqBKK','y2XPlNr4Da','Cffztwe','EhflvM4','sNjACNy','DNzPquC','EhPMwgC','r0Lusfvcx0vovG','EMPNAvq','mZG3nJvNzMrICMe','CMvMCMvZAc50Ehq','mtu0mZqXq2zTq2nv','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','mJmXnZuWExDeCLDM','DePMB00','u2fpENm','nZq2mdCWrePoyKvc','z3jnrxq','nJa2odyXAvzivNrQ','ExPAu1q','ruPyDvG','yKvvsLm','qMvHCMvYia','rwXKtwy','y29UC3rYDwn0B3i','CNbqrwq','z0nXtLm','ndK5mJC0rMLlyw1f','veXVwxm','yu1bvKW','vwPqs2m','mtqXnda2nwDwAg9Ztq','Dg9tDhjPBMC','uKfor0vsx0nmsv9ut0TftG','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','Bg9N','B2fKsw0','CKLoswS','t0Dhwfa','B0XmA0C','yxbWBhK','BMD4wu0','BgvHuuu','D2DOC3y','DufSvfa','DhjPBq','EevsvxC','lI90B2TLBLjLzNjLC2GUANm','DgzgCNq','AMLvrvK','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','y2P3BvO','svnsExG','lI9LBNzPCM9UBwvUDc5QCW','l2fWAs92ms9Ty3aVBwu','ntvgzezeq1m','ywjVCNq'];_0x1d97=function(){return _0x5cef52;};return _0x1d97();}export async function getRefreshToken(){const _0x34b70c=_0x4aed46,_0x15de6a={'UlYeI':function(_0x5f5093,_0x1c78dc){return _0x5f5093===_0x1c78dc;},'vtdlY':function(_0x161ebb,_0x47ad36,_0x280e3c){return _0x161ebb(_0x47ad36,_0x280e3c);},'EldMf':'utf-8'};try{if(_0x15de6a[_0x34b70c(0x118)](_0x34b70c(0xd3),_0x34b70c(0xd3))){const _0x27e546=await _0x15de6a[_0x34b70c(0x107)](readFile,REFRESH_TOKEN_PATH,_0x15de6a[_0x34b70c(0xe2)]);return _0x27e546[_0x34b70c(0xf8)]()||null;}else return null;}catch{return null;}}export async function deleteRefreshToken(){const _0x3ce49d=_0x4aed46,_0x4afcbb={'rINIk':function(_0x519291,_0x17c7fe){return _0x519291(_0x17c7fe);}};try{return await _0x4afcbb[_0x3ce49d(0xf0)](unlink,REFRESH_TOKEN_PATH),!![];}catch{return![];}}export async function deleteAllCredentials(){const _0x271ebe=_0x4aed46,_0x10e8cd={'KugMS':function(_0x173c49){return _0x173c49();}};await deleteToken(),await _0x10e8cd[_0x271ebe(0x113)](deleteRefreshToken);}
@@ -1 +1 @@
1
- const _0x3b78e9=_0x1a84;(function(_0x488591,_0x291e68){const _0x5525d7=_0x1a84,_0x2422ff=_0x488591();while(!![]){try{const _0x349f8d=-parseInt(_0x5525d7(0x168))/0x1+-parseInt(_0x5525d7(0x162))/0x2*(-parseInt(_0x5525d7(0x16c))/0x3)+-parseInt(_0x5525d7(0x165))/0x4+parseInt(_0x5525d7(0x153))/0x5*(parseInt(_0x5525d7(0x163))/0x6)+-parseInt(_0x5525d7(0x15a))/0x7+parseInt(_0x5525d7(0x155))/0x8*(parseInt(_0x5525d7(0x152))/0x9)+-parseInt(_0x5525d7(0x154))/0xa*(-parseInt(_0x5525d7(0x161))/0xb);if(_0x349f8d===_0x291e68)break;else _0x2422ff['push'](_0x2422ff['shift']());}catch(_0x282f9d){_0x2422ff['push'](_0x2422ff['shift']());}}}(_0x31ee,0x20e27));function _0x31ee(){const _0x23d2c9=['1698DrXRHB','\x20\x20\x20Delete\x20these\x20paths\x20after\x20you\x20have\x20re-auth-ed.','920848nBxGgH','\x20\x20\x20\x20\x20https://docs.ranger.net/main/concepts/profiles','\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20<name>','242206mMhxFJ','CYiAN','toISOString','JMzbd','17676rsJlhX','⚠\x20\x20Legacy\x20Ranger\x20paths\x20detected\x20(read-only):','slice','504uKfwJc','3895jUKEYN','10iOGjEe','32072vfMjCk','setup-ci','profiles','local','length','1763384siHqnX','start','--help','filter','verify-feature','\x20\x20\x20as\x20a\x20fallback.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:','\x20\x20\x20\x20\x20','1897412jHnlOM','82lWZrtY'];_0x31ee=function(){return _0x23d2c9;};return _0x31ee();}import{existsSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function detectLegacyPaths(){const _0x2747d4=_0x1a84,_0x2ac319={'CYiAN':function(_0x1bce6f,_0x31233d,_0x44a630){return _0x1bce6f(_0x31233d,_0x44a630);},'kXMJn':function(_0x93889f,_0x4b4ddd,_0x47d49b){return _0x93889f(_0x4b4ddd,_0x47d49b);},'SDfKP':'active-profile.txt'},_0x44c292=getRangerDir(),_0x5dc2ac=getRangerHomeDir();return[_0x2ac319[_0x2747d4(0x169)](join,_0x44c292,_0x2747d4(0x158)),_0x2ac319['CYiAN'](join,_0x44c292,'ci'),join(_0x5dc2ac,_0x2747d4(0x158)),_0x2ac319['kXMJn'](join,_0x44c292,_0x2ac319['SDfKP'])][_0x2747d4(0x15d)](_0x31867b=>existsSync(_0x31867b));}function _0x1a84(_0x3fe640,_0x4eddef){_0x3fe640=_0x3fe640-0x150;const _0x31ee0c=_0x31ee();let _0x1a8414=_0x31ee0c[_0x3fe640];return _0x1a8414;}function flagFilePath(){const _0x4700ca=_0x1a84,_0x510920=new Date()[_0x4700ca(0x16a)]()[_0x4700ca(0x151)](0x0,0xa);return join(getRangerHomeDir(),'.legacy-warning-'+_0x510920);}export function showLegacyDeprecationWarning(){const _0x226484=_0x1a84,_0x42d112={'ZWBTq':function(_0x2da943){return _0x2da943();},'UUIeT':_0x226484(0x150),'gkMAE':'\x20\x20\x20For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:','EyoZK':_0x226484(0x164)},_0x3b37c0=_0x42d112['ZWBTq'](detectLegacyPaths);if(_0x3b37c0[_0x226484(0x159)]===0x0)return;const _0x29f3f1=flagFilePath();if(existsSync(_0x29f3f1))return;const _0x209a90=['',_0x42d112['UUIeT'],..._0x3b37c0['map'](_0x3c7a68=>_0x226484(0x160)+_0x3c7a68),'','\x20\x20\x20Ranger\x20no\x20longer\x20writes\x20to\x20these\x20paths.\x20Existing\x20sessions\x20there\x20still\x20work',_0x226484(0x15f),'',_0x226484(0x167),'',_0x42d112['gkMAE'],_0x226484(0x166),'',_0x42d112['EyoZK'],''];process['stderr']['write'](_0x209a90['join']('\x0a')+'\x0a');try{mkdirSync(getRangerHomeDir(),{'recursive':!![]}),writeFileSync(_0x29f3f1,'',{'mode':0x180});}catch{}}const PROFILE_TOUCHING_COMMANDS=new Set(['go','verify',_0x3b78e9(0x15e),'profile',_0x3b78e9(0x157),'setup',_0x3b78e9(0x156),_0x3b78e9(0x15b),'use']);export function shouldShowLegacyWarning(_0x57ab02){const _0x17f00b=_0x3b78e9,_0x1ede4d={'nxFwq':function(_0x252f5a,_0x1132b3){return _0x252f5a<_0x1132b3;},'JMzbd':_0x17f00b(0x15c),'gkHob':function(_0x11989c,_0x477e72){return _0x11989c===_0x477e72;}},_0x34d8a2=_0x57ab02[0x2];if(!_0x34d8a2)return![];if(_0x34d8a2['startsWith']('-'))return![];if(!PROFILE_TOUCHING_COMMANDS['has'](_0x34d8a2))return![];for(let _0x2f317c=0x3;_0x1ede4d['nxFwq'](_0x2f317c,_0x57ab02['length']);_0x2f317c++){if(_0x57ab02[_0x2f317c]===_0x1ede4d[_0x17f00b(0x16b)]||_0x1ede4d['gkHob'](_0x57ab02[_0x2f317c],'-h'))return![];}return!![];}
1
+ const _0x7029f7=_0x2fc7;(function(_0x2541e9,_0x5d0b5c){const _0x4f761f=_0x2fc7,_0x35fe65=_0x2541e9();while(!![]){try{const _0x132854=-parseInt(_0x4f761f(0x186))/0x1+-parseInt(_0x4f761f(0x175))/0x2+-parseInt(_0x4f761f(0x16e))/0x3*(-parseInt(_0x4f761f(0x183))/0x4)+-parseInt(_0x4f761f(0x16b))/0x5+parseInt(_0x4f761f(0x185))/0x6*(parseInt(_0x4f761f(0x17f))/0x7)+-parseInt(_0x4f761f(0x187))/0x8*(-parseInt(_0x4f761f(0x171))/0x9)+-parseInt(_0x4f761f(0x17e))/0xa;if(_0x132854===_0x5d0b5c)break;else _0x35fe65['push'](_0x35fe65['shift']());}catch(_0x33a350){_0x35fe65['push'](_0x35fe65['shift']());}}}(_0x18ca,0x37ef6));function _0x2fc7(_0xd8400e,_0x36f35b){_0xd8400e=_0xd8400e-0x168;const _0x18ca80=_0x18ca();let _0x2fc7ca=_0x18ca80[_0xd8400e];return _0x2fc7ca;}import{existsSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function _0x18ca(){const _0x501ff5=['profile','map','9321MvRFtI','filter','uVKRZ','207ieZLjj','zjWAc','NcPAF','CEJEM','40644MrwsYG','toISOString','iHUJi','\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20<name>','\x20\x20\x20Delete\x20these\x20paths\x20after\x20you\x20have\x20re-auth-ed.','\x20\x20\x20as\x20a\x20fallback.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:','length','vJznN','\x20\x20\x20For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:','1109780NJRuXy','14cecNkj','TnDHr','\x20\x20\x20\x20\x20https://docs.ranger.net/main/concepts/profiles','⚠\x20\x20Legacy\x20Ranger\x20paths\x20detected\x20(read-only):','92uLsbEY','KwAVf','106044VTRYqP','20946zZSzHz','127240BGCqVB','use','HvPgT','.legacy-warning-','456340SYNdHw'];_0x18ca=function(){return _0x501ff5;};return _0x18ca();}function detectLegacyPaths(){const _0xe53580=_0x2fc7,_0xa045f0={'HvPgT':function(_0x528024,_0x19107e,_0x36c352){return _0x528024(_0x19107e,_0x36c352);},'hNLKd':'local','zjWAc':function(_0x11459e,_0x26ed60,_0x20ac9f){return _0x11459e(_0x26ed60,_0x20ac9f);},'KwAVf':function(_0x48b80b,_0x38fb28,_0x1326f7){return _0x48b80b(_0x38fb28,_0x1326f7);}},_0x5bf70b=getRangerDir(),_0x323f23=getRangerHomeDir();return[_0xa045f0[_0xe53580(0x169)](join,_0x5bf70b,_0xa045f0['hNLKd']),_0xa045f0[_0xe53580(0x172)](join,_0x5bf70b,'ci'),_0xa045f0[_0xe53580(0x184)](join,_0x323f23,'local'),join(_0x5bf70b,'active-profile.txt')][_0xe53580(0x16f)](_0x28f8dd=>existsSync(_0x28f8dd));}function flagFilePath(){const _0x595dbe=_0x2fc7,_0x543951={'mPeHP':function(_0x2ae1e5,_0x1c71bd,_0x13a993){return _0x2ae1e5(_0x1c71bd,_0x13a993);},'dlYYw':function(_0x432066){return _0x432066();}},_0x6bde5f=new Date()[_0x595dbe(0x176)]()['slice'](0x0,0xa);return _0x543951['mPeHP'](join,_0x543951['dlYYw'](getRangerHomeDir),_0x595dbe(0x16a)+_0x6bde5f);}export function showLegacyDeprecationWarning(){const _0x59de6d=_0x2fc7,_0x2e45e={'NcPAF':function(_0x57c66d){return _0x57c66d();},'Espzu':_0x59de6d(0x182),'vJznN':'\x20\x20\x20Ranger\x20no\x20longer\x20writes\x20to\x20these\x20paths.\x20Existing\x20sessions\x20there\x20still\x20work','TAqVs':_0x59de6d(0x17a),'OFkTD':_0x59de6d(0x181),'TnDHr':_0x59de6d(0x179),'CEJEM':function(_0x47b2fb){return _0x47b2fb();},'iHUJi':function(_0x1ea472,_0x2d8260,_0x5ef5ed,_0x5f3f1a){return _0x1ea472(_0x2d8260,_0x5ef5ed,_0x5f3f1a);}},_0x16a8e6=_0x2e45e[_0x59de6d(0x173)](detectLegacyPaths);if(_0x16a8e6[_0x59de6d(0x17b)]===0x0)return;const _0x3c7c23=flagFilePath();if(existsSync(_0x3c7c23))return;const _0x1a5bb6=['',_0x2e45e['Espzu'],..._0x16a8e6[_0x59de6d(0x16d)](_0x3ae753=>'\x20\x20\x20\x20\x20'+_0x3ae753),'',_0x2e45e[_0x59de6d(0x17c)],_0x2e45e['TAqVs'],'',_0x59de6d(0x178),'',_0x59de6d(0x17d),_0x2e45e['OFkTD'],'',_0x2e45e[_0x59de6d(0x180)],''];process['stderr']['write'](_0x1a5bb6['join']('\x0a')+'\x0a');try{mkdirSync(_0x2e45e[_0x59de6d(0x174)](getRangerHomeDir),{'recursive':!![]}),_0x2e45e[_0x59de6d(0x177)](writeFileSync,_0x3c7c23,'',{'mode':0x180});}catch{}}const PROFILE_TOUCHING_COMMANDS=new Set(['go','verify','verify-feature',_0x7029f7(0x16c),'profiles','setup','setup-ci','start',_0x7029f7(0x168)]);export function shouldShowLegacyWarning(_0x449e3d){const _0x7eec60=_0x7029f7,_0x1e86b6={'XVCag':function(_0x1891b8,_0x41ef4d){return _0x1891b8<_0x41ef4d;},'uVKRZ':'--help','vzOQS':function(_0x2cd0b6,_0x2fe776){return _0x2cd0b6===_0x2fe776;}},_0x47b188=_0x449e3d[0x2];if(!_0x47b188)return![];if(_0x47b188['startsWith']('-'))return![];if(!PROFILE_TOUCHING_COMMANDS['has'](_0x47b188))return![];for(let _0x5c3cb3=0x3;_0x1e86b6['XVCag'](_0x5c3cb3,_0x449e3d['length']);_0x5c3cb3++){if(_0x449e3d[_0x5c3cb3]===_0x1e86b6[_0x7eec60(0x170)]||_0x1e86b6['vzOQS'](_0x449e3d[_0x5c3cb3],'-h'))return![];}return!![];}
@@ -1 +1 @@
1
- function _0x15ad(_0x250534,_0x228712){_0x250534=_0x250534-0x1d5;const _0x1039f2=_0x49de();let _0x300e5c=_0x1039f2[_0x250534];if(_0x15ad['ZGxkrH']===undefined){var _0x41b052=function(_0x266c9c){const _0x4a5fc5='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1ebc30='',_0x5d1917='',_0x4f6f09=_0x1ebc30+_0x41b052;for(let _0x1a9481=0x0,_0x23f3e4,_0x5d73a3,_0x358ee0=0x0;_0x5d73a3=_0x266c9c['charAt'](_0x358ee0++);~_0x5d73a3&&(_0x23f3e4=_0x1a9481%0x4?_0x23f3e4*0x40+_0x5d73a3:_0x5d73a3,_0x1a9481++%0x4)?_0x1ebc30+=_0x4f6f09['charCodeAt'](_0x358ee0+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x23f3e4>>(-0x2*_0x1a9481&0x6)):_0x1a9481:0x0){_0x5d73a3=_0x4a5fc5['indexOf'](_0x5d73a3);}for(let _0x30ed46=0x0,_0x16d2ff=_0x1ebc30['length'];_0x30ed46<_0x16d2ff;_0x30ed46++){_0x5d1917+='%'+('00'+_0x1ebc30['charCodeAt'](_0x30ed46)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5d1917);};_0x15ad['jsBzyT']=_0x41b052,_0x15ad['RSIysB']={},_0x15ad['ZGxkrH']=!![];}const _0x49deb0=_0x1039f2[0x0],_0x15adc8=_0x250534+_0x49deb0,_0x57cd0b=_0x15ad['RSIysB'][_0x15adc8];if(!_0x57cd0b){const _0x3a8cfa=function(_0x685eda){this['EWASJs']=_0x685eda,this['reWCrf']=[0x1,0x0,0x0],this['SsyFWp']=function(){return'newState';},this['IXntDJ']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['NJPGDa']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x3a8cfa['prototype']['yjacek']=function(){const _0x1b1fed=new RegExp(this['IXntDJ']+this['NJPGDa']),_0x10260d=_0x1b1fed['test'](this['SsyFWp']['toString']())?--this['reWCrf'][0x1]:--this['reWCrf'][0x0];return this['CLoWFf'](_0x10260d);},_0x3a8cfa['prototype']['CLoWFf']=function(_0x50b22a){if(!Boolean(~_0x50b22a))return _0x50b22a;return this['iGwKCh'](this['EWASJs']);},_0x3a8cfa['prototype']['iGwKCh']=function(_0x50c336){for(let _0x39332f=0x0,_0x45631d=this['reWCrf']['length'];_0x39332f<_0x45631d;_0x39332f++){this['reWCrf']['push'](Math['round'](Math['random']())),_0x45631d=this['reWCrf']['length'];}return _0x50c336(this['reWCrf'][0x0]);},new _0x3a8cfa(_0x15ad)['yjacek'](),_0x300e5c=_0x15ad['jsBzyT'](_0x300e5c),_0x15ad['RSIysB'][_0x15adc8]=_0x300e5c;}else _0x300e5c=_0x57cd0b;return _0x300e5c;}function _0x49de(){const _0x470333=['vMTtuwy','B1veAxO','zxjYB3i','qMvHCMvYia','ndG0mti4A0LlrwjK','ntmZmMvdyLr2Eq','verzwM0','ue9tva','sLvVufi','yxbWBgLJyxrPB24VANnVBG','Dgv4Da','odiWDMvlDNHg','nM94uNzoAa','rg1Zrum','ndm4ntC0ngXgrffUqq','t253EK0','A0TMCg0','y29UC3rYDwn0B3i','wgLIvLK','s3D4CLK','oda1q3vztg9T','t2L4Bvu','rMfPBgvKihrVigXVzYbZA2LSBcbPBNn0ywXSyxrPB246ia','rfL4r3C','ueXsqxO','kcGOlISPkYKRksSK','mJHlCvDuuum','ywjVCNq','C2vHCMnO','mZi5ntHtrNrxywK','DhfAzuS','l2fWAs92ms9Ty3aVBg9JywWTywDLBNqTAw5ZDgfSBgf0Aw9UCW','mZmXodqYzwvMB3DZ','ntmXnJCYz2nLvMPw','zLnrANq','yxbWBhK','ndi5n0zPvNPhvG','C3rYAw5NAwz5','Dg9tDhjPBMC'];_0x49de=function(){return _0x470333;};return _0x49de();}(function(_0x30843c,_0x249238){const _0x5955b5=_0x15ad,_0x4f8538=_0x30843c();while(!![]){try{const _0x389f5a=parseInt(_0x5955b5(0x1eb))/0x1*(parseInt(_0x5955b5(0x1fa))/0x2)+-parseInt(_0x5955b5(0x1e7))/0x3+parseInt(_0x5955b5(0x1f3))/0x4*(-parseInt(_0x5955b5(0x1db))/0x5)+parseInt(_0x5955b5(0x1e8))/0x6*(parseInt(_0x5955b5(0x1e1))/0x7)+parseInt(_0x5955b5(0x1f2))/0x8+parseInt(_0x5955b5(0x1e4))/0x9*(-parseInt(_0x5955b5(0x1f9))/0xa)+parseInt(_0x5955b5(0x1d5))/0xb;if(_0x389f5a===_0x249238)break;else _0x4f8538['push'](_0x4f8538['shift']());}catch(_0x4cb149){_0x4f8538['push'](_0x4f8538['shift']());}}}(_0x49de,0x31158));const _0x41b052=(function(){const _0x1e0df6=_0x15ad,_0x4791f3={'OixmU':_0x1e0df6(0x1da)};let _0x42a21c=!![];return function(_0x277ecf,_0x495d64){const _0x2c6fdd=_0x42a21c?function(){const _0x46ed3d=_0x15ad;if(_0x4791f3['OixmU']!==_0x4791f3[_0x46ed3d(0x1dc)]){const _0x8d64b4=_0x4d1730[_0x46ed3d(0x1ea)](_0x4ce444,arguments);return _0x3bd8d6=null,_0x8d64b4;}else{if(_0x495d64){const _0x311007=_0x495d64[_0x46ed3d(0x1ea)](_0x277ecf,arguments);return _0x495d64=null,_0x311007;}}}:function(){};return _0x42a21c=![],_0x2c6fdd;};}()),_0x300e5c=_0x41b052(this,function(){const _0x1984d7=_0x15ad,_0xf14e9={'oUDiz':_0x1984d7(0x1e0)};return _0x300e5c['toString']()[_0x1984d7(0x1e3)](_0xf14e9[_0x1984d7(0x1ef)])[_0x1984d7(0x1ed)]()[_0x1984d7(0x1d8)](_0x300e5c)[_0x1984d7(0x1e3)](_0xf14e9[_0x1984d7(0x1ef)]);});_0x300e5c();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';export async function logLocalAgentInstallation(_0x479f95,_0x415cff,_0x577c79){const _0x58c204=_0x15ad,_0x4608c2={'VkSQf':function(_0x1732ec){return _0x1732ec();},'OnwzM':_0x58c204(0x1df),'TDYZm':function(_0x4fcdbf,_0x37f96d,_0x3bb09f){return _0x4fcdbf(_0x37f96d,_0x3bb09f);},'fSQjt':function(_0x1980a0,_0x5ae0af){return _0x1980a0!==_0x5ae0af;},'DYxGw':_0x58c204(0x1d9),'tqZeK':_0x58c204(0x1f5),'JUoPR':function(_0x24127f,_0x3e19e2){return _0x24127f===_0x3e19e2;},'DmsEC':function(_0xec439,_0x2d25a8){return _0xec439(_0x2d25a8);}},_0x1995f7=await _0x4608c2[_0x58c204(0x1ee)](getToken);if(!_0x1995f7){if(_0x4608c2[_0x58c204(0x1d6)]!==_0x4608c2[_0x58c204(0x1d6)]){if(_0x458b10){const _0x5bcb96=_0x4a4cfb[_0x58c204(0x1ea)](_0x4436a2,arguments);return _0x30a0ae=null,_0x5bcb96;}}else return;}const _0x39737d=_0x4608c2['VkSQf'](getApiBaseUrl),_0x375421=new AbortController(),_0x59e1a9=_0x4608c2[_0x58c204(0x1f4)](setTimeout,()=>_0x375421[_0x58c204(0x1e2)](),0x1388);let _0x48ac32;try{if(_0x4608c2[_0x58c204(0x1e9)](_0x4608c2['DYxGw'],_0x4608c2[_0x58c204(0x1de)]))return;else _0x48ac32=await _0x4608c2[_0x58c204(0x1f4)](fetch,_0x39737d+_0x58c204(0x1e6),{'method':_0x4608c2[_0x58c204(0x1e5)],'headers':{'Authorization':_0x58c204(0x1f1)+_0x1995f7,'Content-Type':_0x58c204(0x1f7)},'body':JSON[_0x58c204(0x1ec)]({'skillName':_0x479f95,'cliVersion':_0x577c79,'metadata':_0x415cff}),'signal':_0x375421['signal']});}finally{if(_0x4608c2[_0x58c204(0x1f6)](_0x58c204(0x1d7),_0x58c204(0x1d7)))_0x4608c2[_0x58c204(0x1fb)](clearTimeout,_0x59e1a9);else{const _0xc5c27=_0x3a8cfa?function(){const _0x5d0e26=_0x58c204;if(_0x39332f){const _0x533171=_0x539202[_0x5d0e26(0x1ea)](_0x156c95,arguments);return _0x443d80=null,_0x533171;}}:function(){};return _0x50c336=![],_0xc5c27;}}if(!_0x48ac32['ok']){const _0x369ada=await _0x48ac32[_0x58c204(0x1f8)]();console[_0x58c204(0x1f0)](_0x58c204(0x1dd)+_0x369ada);}}
1
+ function _0x5e1b(_0xb4b40e,_0x46291d){_0xb4b40e=_0xb4b40e-0x1e4;const _0x180063=_0x1117();let _0x42d982=_0x180063[_0xb4b40e];if(_0x5e1b['XjWinN']===undefined){var _0x3674d0=function(_0xb471f9){const _0x134180='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x58db54='',_0x2e1246='',_0x411b29=_0x58db54+_0x3674d0;for(let _0x4c0848=0x0,_0x221f8c,_0x1493e1,_0x5362fb=0x0;_0x1493e1=_0xb471f9['charAt'](_0x5362fb++);~_0x1493e1&&(_0x221f8c=_0x4c0848%0x4?_0x221f8c*0x40+_0x1493e1:_0x1493e1,_0x4c0848++%0x4)?_0x58db54+=_0x411b29['charCodeAt'](_0x5362fb+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x221f8c>>(-0x2*_0x4c0848&0x6)):_0x4c0848:0x0){_0x1493e1=_0x134180['indexOf'](_0x1493e1);}for(let _0x2820d9=0x0,_0xa62457=_0x58db54['length'];_0x2820d9<_0xa62457;_0x2820d9++){_0x2e1246+='%'+('00'+_0x58db54['charCodeAt'](_0x2820d9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2e1246);};_0x5e1b['BYQWey']=_0x3674d0,_0x5e1b['VcahJZ']={},_0x5e1b['XjWinN']=!![];}const _0x1117f3=_0x180063[0x0],_0x5e1b2f=_0xb4b40e+_0x1117f3,_0x1b0b13=_0x5e1b['VcahJZ'][_0x5e1b2f];if(!_0x1b0b13){const _0x3043d7=function(_0x131533){this['yqkcuF']=_0x131533,this['ItOAcD']=[0x1,0x0,0x0],this['rBkCFr']=function(){return'newState';},this['lzEchL']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['dUiPOu']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x3043d7['prototype']['bVkTyJ']=function(){const _0x3bcc6e=new RegExp(this['lzEchL']+this['dUiPOu']),_0x2fbe61=_0x3bcc6e['test'](this['rBkCFr']['toString']())?--this['ItOAcD'][0x1]:--this['ItOAcD'][0x0];return this['QsqcGY'](_0x2fbe61);},_0x3043d7['prototype']['QsqcGY']=function(_0x54d24c){if(!Boolean(~_0x54d24c))return _0x54d24c;return this['wFYyir'](this['yqkcuF']);},_0x3043d7['prototype']['wFYyir']=function(_0x13b12c){for(let _0xcec827=0x0,_0x135fa5=this['ItOAcD']['length'];_0xcec827<_0x135fa5;_0xcec827++){this['ItOAcD']['push'](Math['round'](Math['random']())),_0x135fa5=this['ItOAcD']['length'];}return _0x13b12c(this['ItOAcD'][0x0]);},new _0x3043d7(_0x5e1b)['bVkTyJ'](),_0x42d982=_0x5e1b['BYQWey'](_0x42d982),_0x5e1b['VcahJZ'][_0x5e1b2f]=_0x42d982;}else _0x42d982=_0x1b0b13;return _0x42d982;}function _0x1117(){const _0x26f6f7=['qMvHCMvYia','vKvgq1e','mJq2ndy3munxuvjlsa','ue9tva','ntCYmdi0me5ItufsDq','C3rYAw5NAwz5','y29UC3rYDwn0B3i','yxbWBgLJyxrPB24VANnVBG','otyZmtuYuhb0shjz','C2vHCMnO','Dg9tDhjPBMC','ogDJEu9YvW','BeDhsu4','mtyZmZm4nePID25dvq','mJu3mdi4m1PqyMv4AG','rMfPBgvKihrVigXVzYbZA2LSBcbPBNn0ywXSyxrPB246ia','kcGOlISPkYKRksSK','mMDxwgH0Bq','zxjYB3i','mZe4mZa5mejXq29kyG','BMz0ufy','nZa1odCZBKvZuwTQ'];_0x1117=function(){return _0x26f6f7;};return _0x1117();}(function(_0x8f2a4d,_0x26f7e9){const _0x5c485f=_0x5e1b,_0x1f0ce0=_0x8f2a4d();while(!![]){try{const _0x3a1fef=parseInt(_0x5c485f(0x1ee))/0x1+-parseInt(_0x5c485f(0x1f7))/0x2*(-parseInt(_0x5c485f(0x1e8))/0x3)+-parseInt(_0x5c485f(0x1f3))/0x4+-parseInt(_0x5c485f(0x1ea))/0x5+parseInt(_0x5c485f(0x1f9))/0x6+parseInt(_0x5c485f(0x1e5))/0x7*(parseInt(_0x5c485f(0x1f1))/0x8)+-parseInt(_0x5c485f(0x1f4))/0x9;if(_0x3a1fef===_0x26f7e9)break;else _0x1f0ce0['push'](_0x1f0ce0['shift']());}catch(_0x59ec4c){_0x1f0ce0['push'](_0x1f0ce0['shift']());}}}(_0x1117,0x8d222));const _0x3674d0=(function(){let _0x1897d2=!![];return function(_0x3c5242,_0x23fdbd){const _0x432f26=_0x1897d2?function(){if(_0x23fdbd){const _0x3ec400=_0x23fdbd['apply'](_0x3c5242,arguments);return _0x23fdbd=null,_0x3ec400;}}:function(){};return _0x1897d2=![],_0x432f26;};}()),_0x42d982=_0x3674d0(this,function(){const _0x4acb0c=_0x5e1b,_0x2f40f5={'nftPV':_0x4acb0c(0x1f6)};return _0x42d982[_0x4acb0c(0x1f0)]()[_0x4acb0c(0x1ef)](_0x2f40f5[_0x4acb0c(0x1e4)])[_0x4acb0c(0x1f0)]()[_0x4acb0c(0x1ec)](_0x42d982)[_0x4acb0c(0x1ef)](_0x2f40f5[_0x4acb0c(0x1e4)]);});_0x42d982();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';export async function logLocalAgentInstallation(_0x194c74,_0x3d36b3,_0x83e8b0){const _0x1049c3=_0x5e1b,_0x20c91b={'lGGIN':function(_0x540da2){return _0x540da2();},'AglMo':function(_0x2173e4){return _0x2173e4();},'VEFCQ':_0x1049c3(0x1ed),'mGtPK':function(_0x5c8426,_0x193243){return _0x5c8426(_0x193243);}},_0x505459=await _0x20c91b[_0x1049c3(0x1f2)](getToken);if(!_0x505459)return;const _0x598dc0=_0x20c91b['AglMo'](getApiBaseUrl),_0x55da1f=new AbortController(),_0xeaca9f=setTimeout(()=>_0x55da1f['abort'](),0x1388);let _0x252699;try{_0x252699=await fetch(_0x598dc0+'/api/v1/mcp/local-agent-installations',{'method':_0x1049c3(0x1e9),'headers':{'Authorization':_0x1049c3(0x1e6)+_0x505459,'Content-Type':_0x20c91b[_0x1049c3(0x1e7)]},'body':JSON[_0x1049c3(0x1eb)]({'skillName':_0x194c74,'cliVersion':_0x83e8b0,'metadata':_0x3d36b3}),'signal':_0x55da1f['signal']});}finally{_0x20c91b['mGtPK'](clearTimeout,_0xeaca9f);}if(!_0x252699['ok']){const _0x319a18=await _0x252699['text']();console[_0x1049c3(0x1f8)](_0x1049c3(0x1f5)+_0x319a18);}}
@@ -1 +1 @@
1
- (function(_0x538be9,_0xe1b7c7){const _0x4f1f62=_0x22dc,_0x13e8dc=_0x538be9();while(!![]){try{const _0x341cb0=-parseInt(_0x4f1f62(0x116))/0x1*(parseInt(_0x4f1f62(0x11c))/0x2)+parseInt(_0x4f1f62(0x112))/0x3*(-parseInt(_0x4f1f62(0x117))/0x4)+parseInt(_0x4f1f62(0x11a))/0x5*(parseInt(_0x4f1f62(0x11b))/0x6)+-parseInt(_0x4f1f62(0x114))/0x7*(parseInt(_0x4f1f62(0x113))/0x8)+parseInt(_0x4f1f62(0x110))/0x9+-parseInt(_0x4f1f62(0x11d))/0xa+-parseInt(_0x4f1f62(0x118))/0xb*(-parseInt(_0x4f1f62(0x111))/0xc);if(_0x341cb0===_0xe1b7c7)break;else _0x13e8dc['push'](_0x13e8dc['shift']());}catch(_0x5332aa){_0x13e8dc['push'](_0x13e8dc['shift']());}}}(_0xfeb4,0x6b8b3));function _0x22dc(_0x2adf14,_0x2839cb){_0x2adf14=_0x2adf14-0x110;const _0xfeb4a5=_0xfeb4();let _0x22dcc6=_0xfeb4a5[_0x2adf14];return _0x22dcc6;}function originIdentity(_0x5aca0f){try{const _0x2a5f6c=new URL(_0x5aca0f);return _0x2a5f6c['protocol']+'//'+_0x2a5f6c['host'];}catch{return undefined;}}function _0xfeb4(){const _0x418b38=['292QhsSOv','1722985HUNnOa','environments','1813210xENClJ','12cOuKeD','2UHOyLQ','5944630gTXJUT','6341238HnPjzV','60IXUyMb','31353ooBCPj','71880qidWbH','273oRpBZh','defaultEnvironmentKey','64741vQDAnc'];_0xfeb4=function(){return _0x418b38;};return _0xfeb4();}export function matchAuthEnvironment(_0x21d3c6,_0x3fd898){const _0x3de22b=_0x22dc,_0x222365={'tFRsD':function(_0x49aca3,_0x366cf9){return _0x49aca3(_0x366cf9);}};if(!_0x3fd898||!_0x3fd898['environments'])return undefined;const _0x30bf94=_0x222365['tFRsD'](originIdentity,_0x21d3c6);if(!_0x30bf94){if(_0x3fd898['defaultEnvironmentKey']&&_0x3fd898[_0x3de22b(0x119)][_0x3fd898[_0x3de22b(0x115)]])return _0x3fd898[_0x3de22b(0x115)];return undefined;}for(const [_0xe183c0,_0x261167]of Object['entries'](_0x3fd898[_0x3de22b(0x119)])){for(const _0x45f160 of _0x261167['domains']??[]){const _0x14df5d=_0x222365['tFRsD'](originIdentity,_0x45f160);if(_0x14df5d&&_0x14df5d===_0x30bf94)return _0xe183c0;}}if(_0x3fd898[_0x3de22b(0x115)]&&_0x3fd898[_0x3de22b(0x119)][_0x3fd898['defaultEnvironmentKey']])return _0x3fd898['defaultEnvironmentKey'];return undefined;}
1
+ function _0x2759(_0x315947,_0x2ae6ae){_0x315947=_0x315947-0xc3;const _0x245219=_0x2452();let _0x2759e2=_0x245219[_0x315947];return _0x2759e2;}(function(_0x5e4373,_0x4be3a8){const _0x336b6a=_0x2759,_0x2bbfb8=_0x5e4373();while(!![]){try{const _0x58565b=parseInt(_0x336b6a(0xc4))/0x1+parseInt(_0x336b6a(0xca))/0x2*(-parseInt(_0x336b6a(0xcb))/0x3)+-parseInt(_0x336b6a(0xc3))/0x4*(parseInt(_0x336b6a(0xc7))/0x5)+parseInt(_0x336b6a(0xc5))/0x6+-parseInt(_0x336b6a(0xc8))/0x7*(parseInt(_0x336b6a(0xcc))/0x8)+-parseInt(_0x336b6a(0xc6))/0x9+parseInt(_0x336b6a(0xcd))/0xa;if(_0x58565b===_0x4be3a8)break;else _0x2bbfb8['push'](_0x2bbfb8['shift']());}catch(_0x3d2c45){_0x2bbfb8['push'](_0x2bbfb8['shift']());}}}(_0x2452,0x22179));function _0x2452(){const _0x306bba=['defaultEnvironmentKey','domains','312FQWxOC','129585nFHNTF','1083120fWkPtr','1038312WOqPnt','9895aZyHgP','70VFzLbW','environments','22bVePMd','38028ilqEHo','120200hmDTDn','3889520LYIEZj','entries'];_0x2452=function(){return _0x306bba;};return _0x2452();}function originIdentity(_0x86e60){try{const _0x1bebde=new URL(_0x86e60);return _0x1bebde['protocol']+'//'+_0x1bebde['host'];}catch{return undefined;}}export function matchAuthEnvironment(_0xd6a580,_0x43d57a){const _0xe73f76=_0x2759,_0xd66808={'YaJSo':function(_0xe46d1,_0x4fe81e){return _0xe46d1(_0x4fe81e);}};if(!_0x43d57a||!_0x43d57a[_0xe73f76(0xc9)])return undefined;const _0x476ef2=_0xd66808['YaJSo'](originIdentity,_0xd6a580);if(!_0x476ef2){if(_0x43d57a['defaultEnvironmentKey']&&_0x43d57a['environments'][_0x43d57a[_0xe73f76(0xcf)]])return _0x43d57a[_0xe73f76(0xcf)];return undefined;}for(const [_0x56f9a1,_0x1d5495]of Object[_0xe73f76(0xce)](_0x43d57a[_0xe73f76(0xc9)])){for(const _0x42c5cb of _0x1d5495[_0xe73f76(0xd0)]??[]){const _0x30f3e6=originIdentity(_0x42c5cb);if(_0x30f3e6&&_0x30f3e6===_0x476ef2)return _0x56f9a1;}}if(_0x43d57a[_0xe73f76(0xcf)]&&_0x43d57a[_0xe73f76(0xc9)][_0x43d57a[_0xe73f76(0xcf)]])return _0x43d57a[_0xe73f76(0xcf)];return undefined;}
@@ -1 +1 @@
1
- (function(_0xadd692,_0x4ec209){const _0x34e088=_0x3e0a,_0x484285=_0xadd692();while(!![]){try{const _0x50c4ce=parseInt(_0x34e088(0x111))/0x1*(parseInt(_0x34e088(0x12f))/0x2)+-parseInt(_0x34e088(0x115))/0x3+-parseInt(_0x34e088(0xfe))/0x4+-parseInt(_0x34e088(0x11f))/0x5*(-parseInt(_0x34e088(0x13a))/0x6)+-parseInt(_0x34e088(0x139))/0x7*(parseInt(_0x34e088(0x106))/0x8)+parseInt(_0x34e088(0xf8))/0x9*(-parseInt(_0x34e088(0x10f))/0xa)+-parseInt(_0x34e088(0x129))/0xb*(-parseInt(_0x34e088(0xfb))/0xc);if(_0x50c4ce===_0x4ec209)break;else _0x484285['push'](_0x484285['shift']());}catch(_0x15e34b){_0x484285['push'](_0x484285['shift']());}}}(_0x5eee,0x8db85));import{readFile,stat}from'fs/promises';function _0x3e0a(_0x40ff76,_0x4abd07){_0x40ff76=_0x40ff76-0xf6;const _0x5eee5d=_0x5eee();let _0x3e0a8b=_0x5eee5d[_0x40ff76];return _0x3e0a8b;}import{extname}from'path';function _0x5eee(){const _0x4f6444=['1048089tskaYw','map','image/webp','EfipG','webp','PostToolUse','image','GfgRh','arrayBuffer','wJXsG','835xzEiFa','qkEXY','toString','charCodeAt','tool_response','trim','toLowerCase','type','jpeg','ZAILd','11yHYfIG','fromEntries','output','source','file://','eriib','248UrbQcg','data:','\x20bytes)','eQuNw','mimeType','xViyU','length','image/png','GDCVz','image/jpeg','35pFCPGx','35052twYYSb','QAlCu','SuChH','hook_event_name','odxvV','3756582mSuYGV','GhUkv','jpg','11796744lfZvdh','TKtSy','png','510996JNsltz','status','Image\x20exceeds\x20size\x20limit\x20(','base64','get','headers','ngaXQ','includes','1684920rCKyam','TjWBv','exec','image/gif','NuZJe','QgryF','updated','startsWith','content-type','20CDWvon','DzdNL','7958FksRyt','FnymE','all','gif'];_0x5eee=function(){return _0x4f6444;};return _0x5eee();}import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0xba3383){const _0x21792b=_0x3e0a,_0x28f41e={'xViyU':function(_0x5a969f,_0xbc581a){return _0x5a969f===_0xbc581a;},'ZAILd':'object'};return _0x28f41e[_0x21792b(0x134)](typeof _0xba3383,_0x28f41e[_0x21792b(0x128)])&&_0xba3383!==null;}function isImageBlock(_0x236ba9){const _0x42e0c1=_0x3e0a,_0x546850={'TjWBv':function(_0x24c9bc,_0x2551ef){return _0x24c9bc(_0x2551ef);}};return _0x546850[_0x42e0c1(0x107)](isRecord,_0x236ba9)&&_0x236ba9['type']===_0x42e0c1(0x11b);}function isDataUrl(_0x6a224b){const _0x35a8e1=_0x3e0a;return _0x6a224b[_0x35a8e1(0x10d)](_0x35a8e1(0x130));}function parseDataUrl(_0x1ac5fd){const _0x26e56e=_0x3e0a,_0x108a4b=/^data:([^;]+);base64,(.+)$/[_0x26e56e(0x108)](_0x1ac5fd);if(!_0x108a4b)return null;const _0x5d02a9=_0x108a4b[0x1][_0x26e56e(0x125)]();if(!isValidMediaType(_0x5d02a9))return null;return{'data':_0x108a4b[0x2],'mediaType':_0x5d02a9};}function isValidMediaType(_0x5a709b){const _0x3d7b1f=_0x3e0a,_0x3fb816={'NvhiN':_0x3d7b1f(0x138),'hRODj':_0x3d7b1f(0x136)};return[_0x3fb816['NvhiN'],_0x3fb816['hRODj'],'image/gif',_0x3d7b1f(0x117)][_0x3d7b1f(0x105)](_0x5a709b);}function inferMediaType(_0x1d9f07,_0x1af097){const _0x4f743e=_0x3e0a,_0x101bc2={'caqws':function(_0x201e65,_0x1c1b93){return _0x201e65(_0x1c1b93);},'wsbzb':_0x4f743e(0xfa),'GhUkv':_0x4f743e(0x127),'AgTRx':'image/jpeg','DzdNL':_0x4f743e(0xfd),'wJXsG':'image/png'};if(_0x1d9f07){const _0x537bfa=_0x1d9f07['toLowerCase']()['split'](';')[0x0][_0x4f743e(0x124)]();if(_0x101bc2['caqws'](isValidMediaType,_0x537bfa))return _0x537bfa;}const _0x334de3=extname(_0x1af097)[_0x4f743e(0x125)]()['replace']('.','');switch(_0x334de3){case _0x101bc2['wsbzb']:case _0x101bc2[_0x4f743e(0xf9)]:return _0x101bc2['AgTRx'];case _0x101bc2[_0x4f743e(0x110)]:return'image/png';case _0x4f743e(0x114):return _0x4f743e(0x109);case _0x4f743e(0x119):return'image/webp';default:return _0x101bc2[_0x4f743e(0x11e)];}}async function readImageFromUrl(_0x4eb292){const _0x466909=_0x3e0a,_0x2eef9e={'GfgRh':function(_0x17f391,_0x179971){return _0x17f391(_0x179971);},'eriib':'Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','YdmzZ':_0x466909(0x12d),'QgryF':function(_0xc0e0bc,_0x5e5b6f){return _0xc0e0bc(_0x5e5b6f);},'RfAZl':function(_0x251565,_0x16db89){return _0x251565(_0x16db89);},'eQuNw':'base64','MXKoH':'https://','GDCVz':function(_0xbdeb1a,_0x49b2fb,_0x35a47d){return _0xbdeb1a(_0x49b2fb,_0x35a47d);},'QOxAk':function(_0x3e490c,_0x8a1878){return _0x3e490c>_0x8a1878;},'spOAE':function(_0x2b743a,_0x3fa001){return _0x2b743a(_0x3fa001);},'usVja':function(_0x1ce58b,_0x22ed45){return _0x1ce58b(_0x22ed45);}};if(_0x2eef9e[_0x466909(0x11c)](isDataUrl,_0x4eb292)){const _0xf0447f=parseDataUrl(_0x4eb292);if(_0xf0447f)return _0xf0447f;throw new Error(_0x2eef9e[_0x466909(0x12e)]);}if(_0x4eb292[_0x466909(0x10d)](_0x2eef9e['YdmzZ'])){const _0x14e4aa=_0x2eef9e[_0x466909(0x11c)](fileURLToPath,_0x4eb292),_0x3a590a=await _0x2eef9e[_0x466909(0x10b)](stat,_0x14e4aa);if(_0x3a590a['size']>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x3ccbe8=await _0x2eef9e['RfAZl'](readFile,_0x14e4aa);return{'data':_0x3ccbe8['toString'](_0x2eef9e[_0x466909(0x132)]),'mediaType':inferMediaType(null,_0x14e4aa)};}if(_0x4eb292[_0x466909(0x10d)]('http://')||_0x4eb292[_0x466909(0x10d)](_0x2eef9e['MXKoH'])){const _0x8c938b=await _0x2eef9e[_0x466909(0x137)](fetch,_0x4eb292,{'signal':AbortSignal['timeout'](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x8c938b['ok'])throw new Error('Failed\x20to\x20fetch\x20image:\x20'+_0x8c938b[_0x466909(0xff)]);const _0x583ea6=_0x8c938b['headers']['get']('content-length');if(_0x583ea6){const _0x54686b=Number(_0x583ea6);if(!Number['isNaN'](_0x54686b)&&_0x2eef9e['QOxAk'](_0x54686b,MAX_IMAGE_SIZE_BYTES))throw new Error(_0x466909(0x100)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x8ac34f=await _0x8c938b[_0x466909(0x11d)]();if(_0x8ac34f['byteLength']>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x466909(0x100)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');return{'data':Buffer['from'](_0x8ac34f)[_0x466909(0x121)](_0x2eef9e[_0x466909(0x132)]),'mediaType':_0x2eef9e['GDCVz'](inferMediaType,_0x8c938b[_0x466909(0x103)][_0x466909(0x102)](_0x466909(0x10e)),_0x4eb292)};}const _0x4a9ffd=await _0x2eef9e['spOAE'](stat,_0x4eb292);if(_0x4a9ffd['size']>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x466909(0x100)+MAX_IMAGE_SIZE_BYTES+_0x466909(0x131));const _0x403f38=await _0x2eef9e['usVja'](readFile,_0x4eb292);return{'data':_0x403f38[_0x466909(0x121)](_0x466909(0x101)),'mediaType':inferMediaType(null,_0x4eb292)};}async function convertImageBlockToBase64(_0x2eba06){const _0x5be053=_0x3e0a,_0x1fcf24={'Kmlat':function(_0x4507a0,_0x2a6453){return _0x4507a0===_0x2a6453;},'pTdNp':function(_0x23a7cc,_0x36d61a){return _0x23a7cc(_0x36d61a);},'BjdXP':_0x5be053(0x101)};if(_0x1fcf24['Kmlat'](_0x2eba06[_0x5be053(0x12c)]?.[_0x5be053(0x126)],'base64'))return{'updated':![],'block':_0x2eba06};if(_0x2eba06['data']&&_0x2eba06[_0x5be053(0x133)])return{'updated':![],'block':_0x2eba06};const _0xab515d=_0x2eba06['source']?.['url']??_0x2eba06['url'];if(!_0xab515d)return{'updated':![],'block':_0x2eba06};const _0x20717a=await _0x1fcf24['pTdNp'](readImageFromUrl,_0xab515d);return{'updated':!![],'block':{..._0x2eba06,'source':{'type':_0x1fcf24['BjdXP'],'media_type':_0x20717a['mediaType'],'data':_0x20717a['data']},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x3189d0){const _0xe2c6b8=_0x3e0a,_0x2b7654={'BxtgY':function(_0x4451f9,_0x988b4b){return _0x4451f9(_0x988b4b);},'bvQhM':function(_0x3372ab,_0x3744f3){return _0x3372ab(_0x3744f3);}};if(!_0x2b7654['bvQhM'](isRecord,_0x3189d0))return{'updated':![],'output':_0x3189d0};const _0x3e6aa3=_0x3189d0['content'];if(!Array['isArray'](_0x3e6aa3))return{'updated':![],'output':_0x3189d0};let _0xcd7b98=![];const _0x4960d0=await Promise[_0xe2c6b8(0x113)](_0x3e6aa3[_0xe2c6b8(0x116)](async _0x4cd900=>{const _0x12fce0=_0xe2c6b8;if(!_0x2b7654['BxtgY'](isImageBlock,_0x4cd900))return _0x4cd900;try{const _0x55ec2a=await convertImageBlockToBase64(_0x4cd900);if(_0x55ec2a[_0x12fce0(0x10c)])_0xcd7b98=!![];return _0x55ec2a['block'];}catch{return _0x4cd900;}}));if(!_0xcd7b98)return{'updated':![],'output':_0x3189d0};return{'updated':!![],'output':{..._0x3189d0,'content':_0x4960d0}};}function sanitizeLoneSurrogates(_0x790564){const _0x401b29=_0x3e0a,_0x42499a={'NuZJe':function(_0x32dd78,_0x34509f){return _0x32dd78<_0x34509f;},'EfipG':function(_0x318203,_0x47f273){return _0x318203>=_0x47f273;},'SuChH':function(_0x5011d9,_0xeba708){return _0x5011d9<=_0xeba708;},'QAlCu':function(_0x47ccce,_0x115a85){return _0x47ccce+_0x115a85;},'qkEXY':function(_0x33e1a4,_0x52631c){return _0x33e1a4>=_0x52631c;}};let _0x4fef02=![],_0x2752c2='';for(let _0x52bd8e=0x0;_0x42499a[_0x401b29(0x10a)](_0x52bd8e,_0x790564[_0x401b29(0x135)]);_0x52bd8e+=0x1){const _0x30eb7b=_0x790564[_0x401b29(0x122)](_0x52bd8e);if(_0x42499a[_0x401b29(0x118)](_0x30eb7b,0xd800)&&_0x42499a[_0x401b29(0x13c)](_0x30eb7b,0xdbff)){const _0xa4133c=_0x790564['charCodeAt'](_0x42499a[_0x401b29(0x13b)](_0x52bd8e,0x1));if(_0xa4133c>=0xdc00&&_0xa4133c<=0xdfff){_0x2752c2+=_0x790564[_0x52bd8e]+_0x790564[_0x52bd8e+0x1],_0x52bd8e+=0x1;continue;}_0x4fef02=!![],_0x2752c2+='�';continue;}if(_0x42499a[_0x401b29(0x120)](_0x30eb7b,0xdc00)&&_0x30eb7b<=0xdfff){_0x4fef02=!![],_0x2752c2+='�';continue;}_0x2752c2+=_0x790564[_0x52bd8e];}return _0x4fef02?{'updated':_0x4fef02,'value':_0x2752c2}:{'updated':_0x4fef02,'value':_0x790564};}function sanitizeLoneSurrogatesDeep(_0x5d88a3){const _0x15a10b=_0x3e0a,_0x1b92b0={'odxvV':function(_0x4c0a96,_0x13aa46){return _0x4c0a96(_0x13aa46);},'ngaXQ':function(_0x2b9b1c,_0x214de5){return _0x2b9b1c===_0x214de5;},'ffebK':'string'};if(_0x1b92b0[_0x15a10b(0x104)](typeof _0x5d88a3,_0x1b92b0['ffebK']))return _0x1b92b0['odxvV'](sanitizeLoneSurrogates,_0x5d88a3);if(Array['isArray'](_0x5d88a3)){let _0x435faa=![];const _0x39126e=_0x5d88a3[_0x15a10b(0x116)](_0x50faa1=>{const _0x4838d1=_0x15a10b,_0x382d03=_0x1b92b0['odxvV'](sanitizeLoneSurrogatesDeep,_0x50faa1);return _0x382d03[_0x4838d1(0x10c)]&&(_0x435faa=!![]),_0x382d03['value'];});return _0x435faa?{'updated':!![],'value':_0x39126e}:{'updated':![],'value':_0x5d88a3};}if(!_0x1b92b0[_0x15a10b(0xf7)](isRecord,_0x5d88a3))return{'updated':![],'value':_0x5d88a3};let _0x3b71a5=![];const _0xcbad2f=Object['entries'](_0x5d88a3)[_0x15a10b(0x116)](([_0x270f59,_0x403aed])=>{const _0x5817b9=_0x15a10b,_0x1f5472=sanitizeLoneSurrogatesDeep(_0x403aed);return _0x1f5472[_0x5817b9(0x10c)]&&(_0x3b71a5=!![]),[_0x270f59,_0x1f5472['value']];});return _0x3b71a5?{'updated':!![],'value':Object[_0x15a10b(0x12a)](_0xcbad2f)}:{'updated':![],'value':_0x5d88a3};}export function createMcpImageBase64Hook(){const _0x2a1548=_0x3e0a,_0x162675={'FnymE':_0x2a1548(0x11a),'TKtSy':function(_0x10860e,_0x53a9b6){return _0x10860e(_0x53a9b6);}};return async _0x25dbc9=>{const _0x43407e=_0x2a1548;if(_0x25dbc9[_0x43407e(0xf6)]!==_0x162675[_0x43407e(0x112)])return{};const _0x153af2=_0x25dbc9,_0xa76e28=await _0x162675['TKtSy'](convertToolOutputImagesToBase64,_0x153af2[_0x43407e(0x123)]),_0x12c85c=_0x162675[_0x43407e(0xfc)](sanitizeLoneSurrogatesDeep,_0xa76e28[_0x43407e(0x12b)]),_0x5ae05e=_0xa76e28[_0x43407e(0x10c)]||_0x12c85c[_0x43407e(0x10c)];if(!_0x5ae05e)return{};return{'hookSpecificOutput':{'hookEventName':'PostToolUse','updatedMCPToolOutput':_0x12c85c['value']}};};}
1
+ (function(_0xd6cbc4,_0x5b6508){const _0x499294=_0x5f5c,_0x5b646e=_0xd6cbc4();while(!![]){try{const _0x1216a6=parseInt(_0x499294(0x21c))/0x1+-parseInt(_0x499294(0x214))/0x2*(parseInt(_0x499294(0x1e8))/0x3)+parseInt(_0x499294(0x21f))/0x4+-parseInt(_0x499294(0x1f5))/0x5+-parseInt(_0x499294(0x1f2))/0x6*(-parseInt(_0x499294(0x1ef))/0x7)+parseInt(_0x499294(0x20d))/0x8*(-parseInt(_0x499294(0x201))/0x9)+parseInt(_0x499294(0x211))/0xa;if(_0x1216a6===_0x5b6508)break;else _0x5b646e['push'](_0x5b646e['shift']());}catch(_0x315162){_0x5b646e['push'](_0x5b646e['shift']());}}}(_0x48a1,0x94205));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(_0x482716){const _0x16156d=_0x5f5c,_0x1f5d97={'faELB':function(_0x2ad0cc,_0x59da4b){return _0x2ad0cc!==_0x59da4b;}};return typeof _0x482716===_0x16156d(0x20b)&&_0x1f5d97[_0x16156d(0x1f4)](_0x482716,null);}function isImageBlock(_0x3084ef){const _0x243424=_0x5f5c,_0x3895ea={'imAjG':function(_0x2d5895,_0xbf31e6){return _0x2d5895(_0xbf31e6);}};return _0x3895ea['imAjG'](isRecord,_0x3084ef)&&_0x3084ef[_0x243424(0x216)]==='image';}function isDataUrl(_0x481a19){const _0x79b359=_0x5f5c,_0x1f9a61={'BxUfs':_0x79b359(0x1f8)};return _0x481a19[_0x79b359(0x21b)](_0x1f9a61['BxUfs']);}function parseDataUrl(_0x1cc4d5){const _0x3e5024=_0x5f5c,_0x331a26={'jIyOY':function(_0x3b69be,_0x3f7eaf){return _0x3b69be(_0x3f7eaf);}},_0x32513a=/^data:([^;]+);base64,(.+)$/['exec'](_0x1cc4d5);if(!_0x32513a)return null;const _0x55650a=_0x32513a[0x1][_0x3e5024(0x205)]();if(!_0x331a26['jIyOY'](isValidMediaType,_0x55650a))return null;return{'data':_0x32513a[0x2],'mediaType':_0x55650a};}function isValidMediaType(_0xec6be9){const _0x267202=_0x5f5c,_0x48db4b={'KKBDb':_0x267202(0x215)};return['image/jpeg',_0x48db4b['KKBDb'],_0x267202(0x1fc),'image/webp'][_0x267202(0x1f7)](_0xec6be9);}function inferMediaType(_0x58ee03,_0x4d9b49){const _0x59244a=_0x5f5c,_0x29bc44={'VsVbJ':function(_0xff0ec0,_0x2ae812){return _0xff0ec0(_0x2ae812);},'zAkSt':'jpg','BFcda':'jpeg','HMgak':'image/jpeg','Meuhh':_0x59244a(0x209),'drdAZ':'image/png','tjRga':'gif','yyVGD':_0x59244a(0x20f)};if(_0x58ee03){const _0x3ab9b6=_0x58ee03[_0x59244a(0x205)]()[_0x59244a(0x207)](';')[0x0]['trim']();if(isValidMediaType(_0x3ab9b6))return _0x3ab9b6;}const _0x4ff199=_0x29bc44['VsVbJ'](extname,_0x4d9b49)['toLowerCase']()['replace']('.','');switch(_0x4ff199){case _0x29bc44['zAkSt']:case _0x29bc44['BFcda']:return _0x29bc44[_0x59244a(0x21a)];case _0x29bc44[_0x59244a(0x1f3)]:return _0x29bc44['drdAZ'];case _0x29bc44[_0x59244a(0x1f0)]:return _0x59244a(0x1fc);case _0x59244a(0x225):return _0x29bc44[_0x59244a(0x200)];default:return'image/png';}}function _0x5f5c(_0x5c259c,_0x3388bf){_0x5c259c=_0x5c259c-0x1e8;const _0x48a1d6=_0x48a1();let _0x5f5c1a=_0x48a1d6[_0x5c259c];return _0x5f5c1a;}async function readImageFromUrl(_0x420588){const _0x48ba81=_0x5f5c,_0x55f283={'dCyMY':function(_0x30a38e,_0x3d2e7d){return _0x30a38e(_0x3d2e7d);},'nkuMG':'Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','CZgEp':'file://','LGnfE':function(_0x82f285,_0x21a6ae){return _0x82f285(_0x21a6ae);},'PttZc':function(_0x9532a0,_0x3787e0){return _0x9532a0>_0x3787e0;},'HLAwt':function(_0x208afd,_0x482d41,_0x1696e7){return _0x208afd(_0x482d41,_0x1696e7);},'MAmrE':_0x48ba81(0x202),'IOQpZ':_0x48ba81(0x1f6),'Awtlw':function(_0xfde46d,_0x5dfbc3,_0x5d3905){return _0xfde46d(_0x5dfbc3,_0x5d3905);}};if(_0x55f283['dCyMY'](isDataUrl,_0x420588)){const _0x26c1e8=parseDataUrl(_0x420588);if(_0x26c1e8)return _0x26c1e8;throw new Error(_0x55f283['nkuMG']);}if(_0x420588[_0x48ba81(0x21b)](_0x55f283['CZgEp'])){const _0x58a0dd=_0x55f283['LGnfE'](fileURLToPath,_0x420588),_0x55ff90=await stat(_0x58a0dd);if(_0x55f283[_0x48ba81(0x20e)](_0x55ff90[_0x48ba81(0x1f1)],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x100508=await readFile(_0x58a0dd);return{'data':_0x100508['toString']('base64'),'mediaType':_0x55f283['HLAwt'](inferMediaType,null,_0x58a0dd)};}if(_0x420588[_0x48ba81(0x21b)](_0x48ba81(0x222))||_0x420588[_0x48ba81(0x21b)](_0x55f283['MAmrE'])){const _0x35ac5e=await fetch(_0x420588,{'signal':AbortSignal[_0x48ba81(0x1f9)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x35ac5e['ok'])throw new Error(_0x48ba81(0x1e9)+_0x35ac5e[_0x48ba81(0x1ed)]);const _0x5518a7=_0x35ac5e['headers'][_0x48ba81(0x223)](_0x48ba81(0x220));if(_0x5518a7){const _0x2c2509=Number(_0x5518a7);if(!Number['isNaN'](_0x2c2509)&&_0x55f283[_0x48ba81(0x20e)](_0x2c2509,MAX_IMAGE_SIZE_BYTES))throw new Error(_0x48ba81(0x206)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x5cf2f7=await _0x35ac5e[_0x48ba81(0x1fa)]();if(_0x55f283[_0x48ba81(0x20e)](_0x5cf2f7[_0x48ba81(0x1ec)],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');return{'data':Buffer['from'](_0x5cf2f7)[_0x48ba81(0x208)](_0x55f283[_0x48ba81(0x210)]),'mediaType':_0x55f283[_0x48ba81(0x203)](inferMediaType,_0x35ac5e['headers']['get']('content-type'),_0x420588)};}const _0x4af87e=await stat(_0x420588);if(_0x55f283['PttZc'](_0x4af87e[_0x48ba81(0x1f1)],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x55cbca=await readFile(_0x420588);return{'data':_0x55cbca[_0x48ba81(0x208)](_0x55f283['IOQpZ']),'mediaType':_0x55f283[_0x48ba81(0x226)](inferMediaType,null,_0x420588)};}async function convertImageBlockToBase64(_0x48a82b){const _0x233473=_0x5f5c,_0x4b9371={'MRypE':function(_0x264aa9,_0x2f0d6e){return _0x264aa9===_0x2f0d6e;},'EdSug':function(_0x2226c5,_0x197c99){return _0x2226c5(_0x197c99);}};if(_0x4b9371[_0x233473(0x224)](_0x48a82b[_0x233473(0x21e)]?.[_0x233473(0x216)],'base64'))return{'updated':![],'block':_0x48a82b};if(_0x48a82b['data']&&_0x48a82b[_0x233473(0x217)])return{'updated':![],'block':_0x48a82b};const _0x3b6235=_0x48a82b['source']?.[_0x233473(0x1ff)]??_0x48a82b['url'];if(!_0x3b6235)return{'updated':![],'block':_0x48a82b};const _0x497f47=await _0x4b9371['EdSug'](readImageFromUrl,_0x3b6235);return{'updated':!![],'block':{..._0x48a82b,'source':{'type':_0x233473(0x1f6),'media_type':_0x497f47['mediaType'],'data':_0x497f47[_0x233473(0x212)]},'url':undefined}};}function _0x48a1(){const _0x27adec=['webp','HLAwt','updated','JUBBU','map','37941cBvxYF','Failed\x20to\x20fetch\x20image:\x20','oWXPS','tool_response','byteLength','status','value','77mgqnXR','tjRga','size','45642JiMIMw','Meuhh','faELB','1009545rGNDrn','base64','includes','data:','timeout','arrayBuffer','charCodeAt','image/gif','isArray','length','url','yyVGD','14715UqVqRR','https://','Awtlw','PostToolUse','toLowerCase','Image\x20exceeds\x20size\x20limit\x20(','split','toString','png','block','object','output','1160nQlguk','PttZc','image/webp','IOQpZ','5468270PPsBsX','data','hook_event_name','56GnUVJc','image/png','type','mimeType','IpRPP','content','HMgak','startsWith','523977zRHcxW','fromEntries','source','981376kaAkZJ','content-length','TdXYX','http://','get','MRypE'];_0x48a1=function(){return _0x27adec;};return _0x48a1();}async function convertToolOutputImagesToBase64(_0xff5f7d){const _0x4b770c=_0x5f5c,_0x51b046={'cSSeU':function(_0x587500,_0x1d81ea){return _0x587500(_0x1d81ea);}};if(!_0x51b046['cSSeU'](isRecord,_0xff5f7d))return{'updated':![],'output':_0xff5f7d};const _0x20da72=_0xff5f7d[_0x4b770c(0x219)];if(!Array[_0x4b770c(0x1fd)](_0x20da72))return{'updated':![],'output':_0xff5f7d};let _0x161ffd=![];const _0x4f6fa9=await Promise['all'](_0x20da72['map'](async _0x601699=>{const _0x579ee5=_0x4b770c;if(!isImageBlock(_0x601699))return _0x601699;try{const _0x198166=await convertImageBlockToBase64(_0x601699);if(_0x198166[_0x579ee5(0x227)])_0x161ffd=!![];return _0x198166[_0x579ee5(0x20a)];}catch{return _0x601699;}}));if(!_0x161ffd)return{'updated':![],'output':_0xff5f7d};return{'updated':!![],'output':{..._0xff5f7d,'content':_0x4f6fa9}};}function sanitizeLoneSurrogates(_0x352d3f){const _0x248a3a=_0x5f5c,_0x25c262={'IpRPP':function(_0x348d84,_0x3ac221){return _0x348d84<=_0x3ac221;},'TwBFu':function(_0x497ca6,_0x3a0ba5){return _0x497ca6>=_0x3a0ba5;}};let _0x35528d=![],_0x4e1ebe='';for(let _0x1c633e=0x0;_0x1c633e<_0x352d3f[_0x248a3a(0x1fe)];_0x1c633e+=0x1){const _0x9d124b=_0x352d3f[_0x248a3a(0x1fb)](_0x1c633e);if(_0x9d124b>=0xd800&&_0x25c262[_0x248a3a(0x218)](_0x9d124b,0xdbff)){const _0x33328c=_0x352d3f[_0x248a3a(0x1fb)](_0x1c633e+0x1);if(_0x33328c>=0xdc00&&_0x33328c<=0xdfff){_0x4e1ebe+=_0x352d3f[_0x1c633e]+_0x352d3f[_0x1c633e+0x1],_0x1c633e+=0x1;continue;}_0x35528d=!![],_0x4e1ebe+='�';continue;}if(_0x25c262['TwBFu'](_0x9d124b,0xdc00)&&_0x25c262['IpRPP'](_0x9d124b,0xdfff)){_0x35528d=!![],_0x4e1ebe+='�';continue;}_0x4e1ebe+=_0x352d3f[_0x1c633e];}return _0x35528d?{'updated':_0x35528d,'value':_0x4e1ebe}:{'updated':_0x35528d,'value':_0x352d3f};}function sanitizeLoneSurrogatesDeep(_0x3aee95){const _0x22eab2=_0x5f5c,_0x1182a9={'JUBBU':function(_0x44cc03,_0x2e3aee){return _0x44cc03(_0x2e3aee);},'TdXYX':function(_0x454a47,_0x4e555){return _0x454a47(_0x4e555);}};if(typeof _0x3aee95==='string')return sanitizeLoneSurrogates(_0x3aee95);if(Array['isArray'](_0x3aee95)){let _0x3fdb43=![];const _0x59c642=_0x3aee95['map'](_0x1968f9=>{const _0x221787=_0x5f5c,_0x44c4ca=_0x1182a9[_0x221787(0x228)](sanitizeLoneSurrogatesDeep,_0x1968f9);return _0x44c4ca[_0x221787(0x227)]&&(_0x3fdb43=!![]),_0x44c4ca['value'];});return _0x3fdb43?{'updated':!![],'value':_0x59c642}:{'updated':![],'value':_0x3aee95};}if(!_0x1182a9[_0x22eab2(0x221)](isRecord,_0x3aee95))return{'updated':![],'value':_0x3aee95};let _0x5bbe11=![];const _0x2288bb=Object['entries'](_0x3aee95)[_0x22eab2(0x229)](([_0x28fc39,_0x12338c])=>{const _0x16e637=_0x22eab2,_0x149200=_0x1182a9[_0x16e637(0x221)](sanitizeLoneSurrogatesDeep,_0x12338c);return _0x149200[_0x16e637(0x227)]&&(_0x5bbe11=!![]),[_0x28fc39,_0x149200['value']];});return _0x5bbe11?{'updated':!![],'value':Object[_0x22eab2(0x21d)](_0x2288bb)}:{'updated':![],'value':_0x3aee95};}export function createMcpImageBase64Hook(){const _0x1027e7=_0x5f5c,_0x420cc8={'mfmOc':function(_0x3fcb9c,_0x4e0e50){return _0x3fcb9c!==_0x4e0e50;},'sYArc':function(_0x2f710f,_0x52fde4){return _0x2f710f(_0x52fde4);},'oWXPS':_0x1027e7(0x204)};return async _0xbd1e12=>{const _0x25ae7f=_0x1027e7;if(_0x420cc8['mfmOc'](_0xbd1e12[_0x25ae7f(0x213)],_0x25ae7f(0x204)))return{};const _0x132da7=_0xbd1e12,_0x41c031=await _0x420cc8['sYArc'](convertToolOutputImagesToBase64,_0x132da7[_0x25ae7f(0x1eb)]),_0x21f379=sanitizeLoneSurrogatesDeep(_0x41c031[_0x25ae7f(0x20c)]),_0x21be6c=_0x41c031['updated']||_0x21f379['updated'];if(!_0x21be6c)return{};return{'hookSpecificOutput':{'hookEventName':_0x420cc8[_0x25ae7f(0x1ea)],'updatedMCPToolOutput':_0x21f379[_0x25ae7f(0x1ee)]}};};}
@@ -1 +1 @@
1
- const _0x44014f=_0x3ef6;(function(_0x88d3ad,_0x1ce447){const _0x2d6b1c=_0x3ef6,_0x1d2ab9=_0x88d3ad();while(!![]){try{const _0x32a734=parseInt(_0x2d6b1c(0x11c))/0x1*(parseInt(_0x2d6b1c(0x11e))/0x2)+parseInt(_0x2d6b1c(0x121))/0x3+-parseInt(_0x2d6b1c(0x11f))/0x4*(-parseInt(_0x2d6b1c(0x122))/0x5)+-parseInt(_0x2d6b1c(0x124))/0x6+parseInt(_0x2d6b1c(0x120))/0x7+parseInt(_0x2d6b1c(0x11b))/0x8+-parseInt(_0x2d6b1c(0x123))/0x9;if(_0x32a734===_0x1ce447)break;else _0x1d2ab9['push'](_0x1d2ab9['shift']());}catch(_0x13fe44){_0x1d2ab9['push'](_0x1d2ab9['shift']());}}}(_0x7268,0xd4912));function _0x3ef6(_0x52e338,_0x163fd0){_0x52e338=_0x52e338-0x11b;const _0x7268d0=_0x7268();let _0x3ef66b=_0x7268d0[_0x52e338];return _0x3ef66b;}const VERIFY_MODEL_ALIASES={'opus':'claude-opus-4-6','sonnet':_0x44014f(0x125)};function _0x7268(){const _0x3a4f22=['1CBqFFq','trim','2296114YddGCv','4mVAXVf','5415949XRExSz','4122696cCoVwQ','8225225txhTAW','41536071ALIOVi','384798LCSXvi','claude-sonnet-4-6','4871080eWHcxk'];_0x7268=function(){return _0x3a4f22;};return _0x7268();}export const DEFAULT_VERIFY_MODEL='claude-sonnet-4-6';export function resolveVerifyModel(_0x4bd13a){const _0x2cd539=_0x44014f,_0x5b532f={'jFiDD':function(_0x192dec,_0x4d5a2a){return _0x192dec??_0x4d5a2a;}};if(!_0x4bd13a)return undefined;const _0x4d9444=_0x4bd13a[_0x2cd539(0x11d)]();if(!_0x4d9444)return undefined;const _0x29d972=VERIFY_MODEL_ALIASES[_0x4d9444['toLowerCase']()];return _0x5b532f['jFiDD'](_0x29d972,_0x4d9444);}
1
+ const _0x2751e7=_0x5c78;function _0x5c78(_0x5856ee,_0x50baa0){_0x5856ee=_0x5856ee-0x1b5;const _0x286477=_0x2864();let _0x5c78bd=_0x286477[_0x5856ee];return _0x5c78bd;}(function(_0x2a6f2c,_0x26fa52){const _0x204f2f=_0x5c78,_0x28f93b=_0x2a6f2c();while(!![]){try{const _0xc40f31=-parseInt(_0x204f2f(0x1c0))/0x1+-parseInt(_0x204f2f(0x1bb))/0x2+parseInt(_0x204f2f(0x1b8))/0x3+-parseInt(_0x204f2f(0x1b7))/0x4*(parseInt(_0x204f2f(0x1b5))/0x5)+parseInt(_0x204f2f(0x1bc))/0x6*(parseInt(_0x204f2f(0x1ba))/0x7)+-parseInt(_0x204f2f(0x1b9))/0x8*(parseInt(_0x204f2f(0x1bd))/0x9)+parseInt(_0x204f2f(0x1be))/0xa*(parseInt(_0x204f2f(0x1bf))/0xb);if(_0xc40f31===_0x26fa52)break;else _0x28f93b['push'](_0x28f93b['shift']());}catch(_0x3665b6){_0x28f93b['push'](_0x28f93b['shift']());}}}(_0x2864,0x74d8a));const VERIFY_MODEL_ALIASES={'opus':_0x2751e7(0x1b6),'sonnet':'claude-sonnet-4-6'};export const DEFAULT_VERIFY_MODEL='claude-sonnet-4-6';export function resolveVerifyModel(_0x5b55ed){if(!_0x5b55ed)return undefined;const _0x48d6a0=_0x5b55ed['trim']();if(!_0x48d6a0)return undefined;const _0x5b8df3=VERIFY_MODEL_ALIASES[_0x48d6a0['toLowerCase']()];return _0x5b8df3??_0x48d6a0;}function _0x2864(){const _0x20e43c=['527612bpLsMz','4011270MTWWcc','558PShATA','430WnMFkK','344927vkrJaI','782586KosGeq','145hGomnB','claude-opus-4-6','120556gfCviM','2240253FvPDYi','47048oGeTgT','7tLawFh'];_0x2864=function(){return _0x20e43c;};return _0x2864();}