@ranger-testing/ranger-cli 3.0.1-alpha.55b593b-29 → 3.0.1-alpha.bb18058-34
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.
- package/build/cli.js +1 -1
- package/build/commands/addEnv.js +1 -1
- package/build/commands/authEncrypt.js +1 -1
- package/build/commands/clean.js +1 -1
- package/build/commands/config.js +1 -1
- package/build/commands/deleteProfile.js +1 -1
- package/build/commands/env.js +1 -1
- package/build/commands/feature.js +1 -1
- package/build/commands/hook.js +1 -1
- package/build/commands/hooks/autoPrompt.js +1 -1
- package/build/commands/hooks/disable.js +1 -1
- package/build/commands/hooks/enable.js +1 -1
- package/build/commands/hooks/exitPlanMode.js +1 -1
- package/build/commands/hooks/index.js +1 -1
- package/build/commands/hooks/output.js +1 -1
- package/build/commands/hooks/planReminder.js +1 -1
- package/build/commands/hooks/planStart.js +1 -1
- package/build/commands/hooks/postEdit.js +1 -1
- package/build/commands/hooks/preCompact.js +1 -1
- package/build/commands/hooks/sessionEnd.js +1 -1
- package/build/commands/hooks/sessionStart.js +1 -1
- package/build/commands/hooks/stopHook.js +1 -1
- package/build/commands/index.js +1 -1
- package/build/commands/login.js +1 -1
- package/build/commands/mcpBootstrap.js +1 -1
- package/build/commands/migrateProfile.js +1 -1
- package/build/commands/setup/claude.js +1 -1
- package/build/commands/setup/opencode.js +1 -1
- package/build/commands/setupCi.js +1 -1
- package/build/commands/skillup.js +1 -1
- package/build/commands/start.js +1 -1
- package/build/commands/status.js +1 -1
- package/build/commands/update.js +1 -1
- package/build/commands/updateEnv.js +1 -1
- package/build/commands/useEnv.js +1 -1
- package/build/commands/utils/activeProfile.js +1 -1
- package/build/commands/utils/agentEnv.js +1 -1
- package/build/commands/utils/browserSessionsApi.js +1 -1
- package/build/commands/utils/claudeConfig.js +1 -1
- package/build/commands/utils/claudeOverrideSettings.js +1 -1
- package/build/commands/utils/claudePlugin.js +1 -1
- package/build/commands/utils/cloudProfile.js +1 -1
- package/build/commands/utils/cloudProfileSession.js +1 -1
- package/build/commands/utils/crypto.js +1 -1
- package/build/commands/utils/desirePathLog.js +1 -1
- package/build/commands/utils/deviceAuth.js +1 -1
- package/build/commands/utils/environment.js +1 -1
- package/build/commands/utils/featureApi.js +1 -1
- package/build/commands/utils/fixWebmDuration.js +1 -1
- package/build/commands/utils/gitTracked.js +1 -1
- package/build/commands/utils/keychain.js +1 -1
- package/build/commands/utils/legacyWarning.js +1 -1
- package/build/commands/utils/localAgentInstallationsApi.js +1 -1
- package/build/commands/utils/matchAuthEnvironment.js +1 -1
- package/build/commands/utils/mcpImageBase64.js +1 -1
- package/build/commands/utils/model.js +1 -1
- package/build/commands/utils/novaActCli.js +1 -1
- package/build/commands/utils/opencodeConfig.js +1 -1
- package/build/commands/utils/organizationEnvApi.js +1 -0
- package/build/commands/utils/playwrightCli.js +1 -1
- package/build/commands/utils/profileMessages.js +1 -1
- package/build/commands/utils/profileSetupBanner.js +1 -1
- package/build/commands/utils/projectsConfig.js +1 -1
- package/build/commands/utils/rangerConfig.js +1 -1
- package/build/commands/utils/rangerRoot.js +1 -1
- package/build/commands/utils/rangerwrightCli.js +1 -0
- package/build/commands/utils/resolveProfileContext.js +1 -1
- package/build/commands/utils/resolveProfileUrl.js +1 -1
- package/build/commands/utils/retry.js +1 -1
- package/build/commands/utils/sessionCache.js +1 -1
- package/build/commands/utils/settings.js +1 -1
- package/build/commands/utils/skillContent.js +1 -1
- package/build/commands/utils/skills.js +1 -1
- package/build/commands/utils/stitchWebmFiles.js +1 -1
- package/build/commands/utils/telemetry.js +1 -1
- package/build/commands/utils/tokenRefresh.js +1 -1
- package/build/commands/utils/traceSnapshotMapper.js +1 -1
- package/build/commands/utils/userApi.js +1 -1
- package/build/commands/utils/version.js +1 -1
- package/build/commands/verifyFeature.js +1 -1
- package/build/commands/verifyFeatureCli.js +1 -1
- package/build/commands/verifyFeatureNovaCli.js +1 -1
- package/build/commands/verifyFeatureRangerwrightCli.js +1 -0
- package/package.json +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xe73668=_0x4de7;(function(_0x2943e7,_0x25af40){const _0x497618=_0x4de7,_0x1ddd9f=_0x2943e7();while(!![]){try{const _0x218d3e=parseInt(_0x497618(0x14f))/0x1+-parseInt(_0x497618(0x13b))/0x2*(parseInt(_0x497618(0x12e))/0x3)+parseInt(_0x497618(0x16e))/0x4*(parseInt(_0x497618(0x139))/0x5)+-parseInt(_0x497618(0x143))/0x6+parseInt(_0x497618(0x130))/0x7*(parseInt(_0x497618(0x136))/0x8)+-parseInt(_0x497618(0x13d))/0x9+parseInt(_0x497618(0x168))/0xa;if(_0x218d3e===_0x25af40)break;else _0x1ddd9f['push'](_0x1ddd9f['shift']());}catch(_0x24e600){_0x1ddd9f['push'](_0x1ddd9f['shift']());}}}(_0x3712,0xcac29));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(_0x45d052,_0xbb8c2a){const _0x5ea3ac=_0x4de7,_0x2c6b9b={'ALsjF':function(_0x49a809,_0x465620){return _0x49a809>=_0x465620;},'utHtI':function(_0x46af21,_0x1ce0f1){return _0x46af21&_0x1ce0f1;},'ZMDrr':function(_0x152336,_0x549868){return _0x152336+_0x549868;},'faHiD':function(_0xb453be,_0x5700ef){return _0xb453be<_0x5700ef;}};if(_0x2c6b9b[_0x5ea3ac(0x15e)](_0xbb8c2a,_0x45d052[_0x5ea3ac(0x132)]))return[0x0,0x0];const _0x13fc16=_0x45d052[_0xbb8c2a];let _0x2b319e=0x1,_0x2df7c3=0x80;while(_0x2b319e<=0x8&&!_0x2c6b9b['utHtI'](_0x13fc16,_0x2df7c3)){_0x2b319e++,_0x2df7c3>>=0x1;}if(_0x2c6b9b[_0x5ea3ac(0x131)](_0xbb8c2a,_0x2b319e)>_0x45d052[_0x5ea3ac(0x132)])return[0x0,0x0];let _0x5f5a7a=_0x13fc16&_0x2df7c3-0x1;for(let _0x131468=0x1;_0x2c6b9b['faHiD'](_0x131468,_0x2b319e);_0x131468++){_0x5f5a7a=_0x5f5a7a*0x100+_0x45d052[_0xbb8c2a+_0x131468];}return[_0x5f5a7a,_0x2b319e];}function readId(_0x3fbc75,_0x831062){const _0xd31e95=_0x4de7,_0x5ecbc1={'DSOgG':function(_0x3818e3,_0x56075e){return _0x3818e3>=_0x56075e;},'HtLbb':function(_0x431814,_0x5ee06f){return _0x431814>=_0x5ee06f;},'qXJlZ':function(_0x14d69c,_0x2046a6){return _0x14d69c+_0x2046a6;}};if(_0x831062>=_0x3fbc75[_0xd31e95(0x132)])return[0x0,0x0];const _0x5a8f4a=_0x3fbc75[_0x831062];let _0x5b5f9a;if(_0x5ecbc1[_0xd31e95(0x15b)](_0x5a8f4a,0x80))_0x5b5f9a=0x1;else{if(_0x5a8f4a>=0x40)_0x5b5f9a=0x2;else{if(_0x5a8f4a>=0x20)_0x5b5f9a=0x3;else{if(_0x5ecbc1['HtLbb'](_0x5a8f4a,0x10))_0x5b5f9a=0x4;else return[_0x5a8f4a,0x1];}}}if(_0x831062+_0x5b5f9a>_0x3fbc75['length'])return[0x0,0x0];let _0x2ccd0b=0x0;for(let _0xba5023=0x0;_0xba5023<_0x5b5f9a;_0xba5023++){_0x2ccd0b=_0x5ecbc1['qXJlZ'](_0x2ccd0b*0x100,_0x3fbc75[_0x831062+_0xba5023]);}return[_0x2ccd0b,_0x5b5f9a];}function readUint(_0x458507,_0x480d07,_0x302820){const _0x5ba05e=_0x4de7,_0x417c4f={'pSxba':function(_0x496522,_0xe87938){return _0x496522<_0xe87938;},'TUQZB':function(_0xb6555a,_0x47aaf2){return _0xb6555a*_0x47aaf2;},'oGRqD':function(_0x14974d,_0x556add){return _0x14974d+_0x556add;}};let _0x400e15=0x0;for(let _0x476068=0x0;_0x417c4f['pSxba'](_0x476068,_0x302820);_0x476068++){_0x400e15=_0x417c4f['TUQZB'](_0x400e15,0x100)+_0x458507[_0x417c4f[_0x5ba05e(0x16c)](_0x480d07,_0x476068)];}return _0x400e15;}function isUnknownSize(_0x225eff,_0x864be5){const _0x74270c=_0x4de7,_0xe5be9b={'WnHTb':function(_0x1c0214,_0x107d6c){return _0x1c0214*_0x107d6c;}};return _0x225eff===Math[_0x74270c(0x12a)](0x2,_0xe5be9b['WnHTb'](0x7,_0x864be5))-0x1;}function writeId(_0x5f241e){const _0x597cb7=_0x4de7,_0x142b1e={'AgHfu':function(_0x3210db,_0x33e680){return _0x3210db<=_0x33e680;},'qetNX':function(_0x530ff5,_0x2d3eff){return _0x530ff5&_0x2d3eff;},'KlSnP':function(_0x5aae70,_0x361d9b){return _0x5aae70>>_0x361d9b;},'esOMH':function(_0x13f029,_0x2c869a){return _0x13f029&_0x2c869a;},'hYLsT':function(_0x2c75fa,_0x2cee23){return _0x2c75fa&_0x2cee23;},'uHWcV':function(_0x3eba19,_0x1f32c5){return _0x3eba19&_0x1f32c5;},'HdsKX':function(_0x465536,_0x52290e){return _0x465536&_0x52290e;}};if(_0x5f241e<=0xff)return Buffer[_0x597cb7(0x15d)]([_0x5f241e]);if(_0x142b1e[_0x597cb7(0x149)](_0x5f241e,0xffff))return Buffer[_0x597cb7(0x15d)]([_0x142b1e['qetNX'](_0x142b1e[_0x597cb7(0x14d)](_0x5f241e,0x8),0xff),_0x5f241e&0xff]);if(_0x142b1e[_0x597cb7(0x149)](_0x5f241e,0xffffff))return Buffer['from']([_0x142b1e['esOMH'](_0x5f241e>>0x10,0xff),_0x142b1e['hYLsT'](_0x5f241e>>0x8,0xff),_0x5f241e&0xff]);return Buffer[_0x597cb7(0x15d)]([_0x5f241e>>0x18&0xff,_0x142b1e['uHWcV'](_0x142b1e['KlSnP'](_0x5f241e,0x10),0xff),_0x142b1e['KlSnP'](_0x5f241e,0x8)&0xff,_0x142b1e[_0x597cb7(0x146)](_0x5f241e,0xff)]);}function writeVint(_0x3afb6f,_0x45d4d8){const _0x484c1c=_0x4de7,_0x31d6e0={'XMVGH':function(_0xf0d682,_0x3158c0){return _0xf0d682-_0x3158c0;},'wqyvf':function(_0x186d43,_0x4c2ed6){return _0x186d43&_0x4c2ed6;},'MGrJv':function(_0x3beb3f,_0x509185){return _0x3beb3f<<_0x509185;}};let _0x17a40e=_0x45d4d8||0x1;while(_0x31d6e0['XMVGH'](Math['pow'](0x2,0x7*_0x17a40e),0x2)<_0x3afb6f)_0x17a40e++;const _0x4ea088=Buffer['alloc'](_0x17a40e);for(let _0x2cb238=_0x17a40e-0x1;_0x2cb238>=0x0;_0x2cb238--){_0x4ea088[_0x2cb238]=_0x31d6e0[_0x484c1c(0x12f)](_0x3afb6f,0xff),_0x3afb6f=Math[_0x484c1c(0x158)](_0x3afb6f/0x100);}return _0x4ea088[0x0]|=_0x31d6e0[_0x484c1c(0x14a)](0x1,0x8-_0x17a40e),_0x4ea088;}function writeFloat64(_0x15abdb){const _0x2ca954=_0x4de7,_0xdadb74=Buffer[_0x2ca954(0x13c)](0x8);return _0xdadb74[_0x2ca954(0x166)](_0x15abdb,0x0),_0xdadb74;}function _0x4de7(_0x747a24,_0x158083){_0x747a24=_0x747a24-0x127;const _0x3712b4=_0x3712();let _0x4de7fc=_0x3712b4[_0x747a24];return _0x4de7fc;}function writeVoid(_0x5300eb){const _0x309a54=_0x4de7,_0x473538={'PitKX':function(_0x4ebdca,_0x538ab6){return _0x4ebdca<=_0x538ab6;},'qPSQv':function(_0x2dac69,_0x332ed3){return _0x2dac69-_0x332ed3;},'jcRbp':function(_0x91a519,_0x385455){return _0x91a519-_0x385455;},'JFqnm':function(_0x324ad4,_0x23c065){return _0x324ad4*_0x23c065;},'Npkxa':function(_0x224721,_0x330f88,_0x4390f6){return _0x224721(_0x330f88,_0x4390f6);}};for(let _0x5c701f=0x1;_0x473538['PitKX'](_0x5c701f,0x8);_0x5c701f++){const _0x23460e=_0x473538[_0x309a54(0x14e)](_0x5300eb-0x1,_0x5c701f);if(_0x23460e>=0x0&&_0x23460e<=_0x473538[_0x309a54(0x12d)](Math['pow'](0x2,_0x473538[_0x309a54(0x155)](0x7,_0x5c701f)),0x2))return Buffer[_0x309a54(0x134)]([Buffer['from']([ID_VOID]),_0x473538['Npkxa'](writeVint,_0x23460e,_0x5c701f),Buffer[_0x309a54(0x13c)](_0x23460e)]);}return Buffer[_0x309a54(0x13c)](0x0);}function findElement(_0x5e7597,_0x3efea1,_0x410dc6,_0x2b3456){const _0x26410c=_0x4de7,_0x5309df={'JsqfC':function(_0x64aa4d,_0x856e1b,_0x145c49){return _0x64aa4d(_0x856e1b,_0x145c49);},'kEJtR':function(_0x55a79e,_0xf56a4f){return _0x55a79e+_0xf56a4f;}};let _0xff37c6=_0x3efea1;while(_0xff37c6<_0x410dc6){const [_0x4b0154,_0x15f29d]=_0x5309df[_0x26410c(0x148)](readId,_0x5e7597,_0xff37c6),[_0x333783,_0x1505e5]=readVint(_0x5e7597,_0xff37c6+_0x15f29d);if(_0x4b0154===_0x2b3456)return{'offset':_0xff37c6,'idLen':_0x15f29d,'sizeLen':_0x1505e5,'dataSize':_0x333783,'dataOffset':_0xff37c6+_0x15f29d+_0x1505e5};if(_0x5309df[_0x26410c(0x148)](isUnknownSize,_0x333783,_0x1505e5))break;_0xff37c6+=_0x5309df[_0x26410c(0x147)](_0x15f29d,_0x1505e5)+_0x333783;}return null;}function computeDurationMs(_0x4f8682,_0x3e58b1){const _0x42e734=_0x4de7,_0x3035e3={'odotb':function(_0x56de17,_0x1044b4){return _0x56de17===_0x1044b4;},'OQkBa':function(_0x5c3bd3,_0x3798f5,_0x39eb4f){return _0x5c3bd3(_0x3798f5,_0x39eb4f);},'rgkNB':function(_0x4844e3,_0x4ae835){return _0x4844e3+_0x4ae835;},'kArDC':function(_0x48c1d4,_0x575580){return _0x48c1d4+_0x575580;},'bhLHI':function(_0x4e877f,_0x2f9da9){return _0x4e877f<_0x2f9da9;},'OSTag':function(_0x35b461,_0x40b3db){return _0x35b461-_0x40b3db;},'qlnQl':function(_0x56daec,_0x493ce8,_0x41bd7b){return _0x56daec(_0x493ce8,_0x41bd7b);},'JxVIP':function(_0xe38d1e,_0x387ccc){return _0xe38d1e+_0x387ccc;},'OOgTf':function(_0x5a9012,_0x30c0ac){return _0x5a9012+_0x30c0ac;},'PUgbZ':function(_0x56b921,_0x291028){return _0x56b921>_0x291028;},'WKdUx':function(_0x4798f3,_0x4b3b45){return _0x4798f3+_0x4b3b45;}};let _0x365f61=0x0;const _0x5066ce=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0xa5b0b4=_0x4f8682[_0x42e734(0x141)](_0x5066ce);if(_0x3035e3[_0x42e734(0x15c)](_0xa5b0b4,-0x1))return 0x0;while(_0xa5b0b4<_0x4f8682[_0x42e734(0x132)]){const [_0x2a4e6c,_0x3042a6]=readId(_0x4f8682,_0xa5b0b4);if(_0x2a4e6c!==ID_CLUSTER)break;const [_0x35bc4e,_0x514594]=_0x3035e3[_0x42e734(0x152)](readVint,_0x4f8682,_0x3035e3['rgkNB'](_0xa5b0b4,_0x3042a6)),_0x399808=_0x3035e3[_0x42e734(0x129)](_0xa5b0b4+_0x3042a6,_0x514594),_0x19257e=isUnknownSize(_0x35bc4e,_0x514594);let _0x58e301;if(_0x19257e){let _0x8905b2=_0x399808;while(_0x3035e3[_0x42e734(0x127)](_0x8905b2,_0x3035e3['OSTag'](_0x4f8682['length'],0x4))){const [_0x1f17b9,_0x512bb7]=readId(_0x4f8682,_0x8905b2);if(_0x1f17b9===ID_CLUSTER){_0x58e301=_0x8905b2;break;}const [_0x168fe7,_0x182c2f]=readVint(_0x4f8682,_0x8905b2+_0x512bb7);if(isUnknownSize(_0x168fe7,_0x182c2f)){_0x58e301=_0x4f8682['length'];break;}_0x8905b2+=_0x512bb7+_0x182c2f+_0x168fe7;}_0x58e301??=_0x4f8682[_0x42e734(0x132)];}else _0x58e301=_0x399808+_0x35bc4e;let _0x305420=0x0,_0x4f8ddb=_0x399808;while(_0x3035e3['bhLHI'](_0x4f8ddb,_0x58e301)){const [_0x18b42b,_0x3d7ac7]=readId(_0x4f8682,_0x4f8ddb),[_0x40d84b,_0x1b2220]=_0x3035e3['qlnQl'](readVint,_0x4f8682,_0x4f8ddb+_0x3d7ac7);if(_0x3035e3[_0x42e734(0x15c)](_0x18b42b,ID_TIMESTAMP))_0x305420=readUint(_0x4f8682,_0x3035e3['JxVIP'](_0x3035e3['rgkNB'](_0x4f8ddb,_0x3d7ac7),_0x1b2220),_0x40d84b);else{if(_0x18b42b===ID_SIMPLE_BLOCK&&_0x40d84b>=0x4){const _0x3689e9=_0x3035e3['OOgTf'](_0x3035e3['JxVIP'](_0x4f8ddb,_0x3d7ac7),_0x1b2220),[,_0x3e3aec]=_0x3035e3['OQkBa'](readVint,_0x4f8682,_0x3689e9),_0x190062=_0x4f8682[_0x42e734(0x128)](_0x3689e9+_0x3e3aec),_0x4958ca=(_0x305420+_0x190062)*_0x3e58b1/0xf4240;_0x3035e3['PUgbZ'](_0x4958ca,_0x365f61)&&(_0x365f61=_0x4958ca);}else{if(_0x18b42b===ID_CLUSTER)break;}}if(isUnknownSize(_0x40d84b,_0x1b2220))break;_0x4f8ddb+=_0x3035e3[_0x42e734(0x157)](_0x3d7ac7+_0x1b2220,_0x40d84b);}_0xa5b0b4=_0x58e301;}return _0x365f61;}export function fixWebmDuration(_0x36242a,_0x2e6acf){const _0x44e69f=_0x4de7,_0x144eba={'DeRgV':function(_0x426bbc,_0x3128b7,_0x5e4aa5){return _0x426bbc(_0x3128b7,_0x5e4aa5);},'ZnDXI':function(_0x591e8d,_0x4861c0){return _0x591e8d+_0x4861c0;},'AqUqZ':function(_0x4d4b58,_0x38b24d){return _0x4d4b58+_0x38b24d;},'Bwixt':function(_0x3b12d3,_0xe935ef){return _0x3b12d3+_0xe935ef;},'FNUuz':function(_0x5f1b90,_0x285258){return _0x5f1b90<_0x285258;},'nWhHa':function(_0x55e6f9,_0x15c2df,_0x20d69d){return _0x55e6f9(_0x15c2df,_0x20d69d);},'keokB':function(_0x4cf298,_0x9475ff){return _0x4cf298===_0x9475ff;},'shOpO':function(_0x223b37,_0x3c09c0){return _0x223b37+_0x3c09c0;},'Tjivu':function(_0x566973,_0x39374e){return _0x566973+_0x39374e;},'kQlaL':_0x44e69f(0x164),'qrAVO':function(_0x3fdee0,_0x5c4794,_0x167057,_0x3af8d2,_0x476112){return _0x3fdee0(_0x5c4794,_0x167057,_0x3af8d2,_0x476112);},'kzMny':function(_0x238457,_0x104b54){return _0x238457+_0x104b54;},'hqYAw':function(_0x22baaa,_0x434842,_0x4f82b2,_0xb98694,_0x13333a){return _0x22baaa(_0x434842,_0x4f82b2,_0xb98694,_0x13333a);},'XMhiq':function(_0xb68d4,_0x3bfb66){return _0xb68d4+_0x3bfb66;},'HfrwM':function(_0xeefc29,_0xa4602e){return _0xeefc29<=_0xa4602e;},'GhXGJ':'Could\x20not\x20compute\x20duration','HIbTU':function(_0x20594d,_0x259374){return _0x20594d/_0x259374;},'DKUsV':function(_0x26c0a2,_0x28f7b3){return _0x26c0a2(_0x28f7b3);},'WpnJv':function(_0x2cb249,_0x323fe9){return _0x2cb249<_0x323fe9;},'oUsJp':function(_0x54c355,_0x2bb6aa){return _0x54c355<_0x2bb6aa;},'dWiaT':function(_0x1c82b1,_0x323066){return _0x1c82b1(_0x323066);},'hdfqq':function(_0x58fcdf,_0x4e8cd5){return _0x58fcdf+_0x4e8cd5;}},_0x4cfde3=readFileSync(_0x36242a);let _0x169eb6=0x0;const [_0x5cf274,_0x3378c2]=_0x144eba[_0x44e69f(0x13a)](readId,_0x4cfde3,_0x169eb6),[_0xfec57a,_0x390f2a]=readVint(_0x4cfde3,_0x144eba[_0x44e69f(0x137)](_0x169eb6,_0x3378c2));_0x169eb6+=_0x144eba['AqUqZ'](_0x3378c2+_0x390f2a,_0xfec57a);const [_0x3ed9fb,_0x4e4fef]=readId(_0x4cfde3,_0x169eb6);if(_0x3ed9fb!==ID_SEGMENT)return console[_0x44e69f(0x133)](_0x44e69f(0x144)),![];const [,_0x372f31]=_0x144eba['DeRgV'](readVint,_0x4cfde3,_0x169eb6+_0x4e4fef),_0x2e5e90=_0x144eba['Bwixt'](_0x169eb6,_0x4e4fef)+_0x372f31;let _0xcc4e5a=_0x2e5e90;const _0x223e07=Math[_0x44e69f(0x165)](_0x4cfde3['length'],_0x2e5e90+0x2710);let _0x3adaf9=null,_0x4d385d=null;while(_0x144eba[_0x44e69f(0x156)](_0xcc4e5a,_0x223e07)){const [_0x638a4c,_0x8c9882]=_0x144eba['nWhHa'](readId,_0x4cfde3,_0xcc4e5a),[_0x591986,_0x4f0159]=readVint(_0x4cfde3,_0xcc4e5a+_0x8c9882);_0x144eba[_0x44e69f(0x15f)](_0x638a4c,ID_VOID)&&!_0x3adaf9&&(_0x3adaf9={'offset':_0xcc4e5a,'idLen':_0x8c9882,'sizeLen':_0x4f0159,'dataSize':_0x591986,'dataOffset':_0xcc4e5a+_0x8c9882+_0x4f0159});if(_0x638a4c===ID_INFO){_0x4d385d={'offset':_0xcc4e5a,'idLen':_0x8c9882,'sizeLen':_0x4f0159,'dataSize':_0x591986,'dataOffset':_0x144eba['Bwixt'](_0xcc4e5a,_0x8c9882)+_0x4f0159};break;}if(_0x144eba['keokB'](_0x638a4c,ID_CLUSTER))break;if(_0x144eba[_0x44e69f(0x142)](isUnknownSize,_0x591986,_0x4f0159))break;_0xcc4e5a+=_0x144eba['shOpO'](_0x144eba[_0x44e69f(0x138)](_0x8c9882,_0x4f0159),_0x591986);}if(!_0x4d385d)return console[_0x44e69f(0x133)](_0x144eba['kQlaL']),![];const _0x4f6603=_0x144eba['qrAVO'](findElement,_0x4cfde3,_0x4d385d[_0x44e69f(0x12b)],_0x144eba['kzMny'](_0x4d385d[_0x44e69f(0x12b)],_0x4d385d['dataSize']),ID_DURATION);if(_0x4f6603)return![];const _0x2c474a=_0x144eba['hqYAw'](findElement,_0x4cfde3,_0x4d385d['dataOffset'],_0x144eba['XMhiq'](_0x4d385d['dataOffset'],_0x4d385d[_0x44e69f(0x167)]),ID_TIMESTAMP_SCALE);let _0x298cd9=0xf4240;_0x2c474a&&(_0x298cd9=readUint(_0x4cfde3,_0x2c474a['dataOffset'],_0x2c474a['dataSize']));const _0x3eb08d=computeDurationMs(_0x4cfde3,_0x298cd9);if(_0x144eba['HfrwM'](_0x3eb08d,0x0))return console['error'](_0x144eba[_0x44e69f(0x16b)]),![];const _0x8e9b2d=_0x144eba[_0x44e69f(0x145)](_0x3eb08d*0xf4240,_0x298cd9),_0x2cdbac=Buffer[_0x44e69f(0x134)]([writeId(ID_DURATION),_0x144eba['DKUsV'](writeVint,0x8),writeFloat64(_0x8e9b2d)]),_0xafb678=_0x2cdbac[_0x44e69f(0x132)];if(!_0x3adaf9||_0x144eba[_0x44e69f(0x16a)](_0x3adaf9['offset'],_0x4d385d['offset'])){if(_0x3adaf9){const _0x4ede7f=_0x144eba['ZnDXI'](_0x3adaf9[_0x44e69f(0x15a)]+_0x3adaf9[_0x44e69f(0x154)],_0x3adaf9[_0x44e69f(0x167)]),_0x1c7dee=_0x4ede7f-_0xafb678;if(_0x144eba[_0x44e69f(0x153)](_0x1c7dee,0x2))return rewriteFile(_0x4cfde3,_0x4d385d,_0x2cdbac,_0x298cd9,_0x3eb08d,_0x2e6acf);const _0x2cbd00=_0x4d385d[_0x44e69f(0x167)]+_0xafb678,_0x4f1722=Buffer[_0x44e69f(0x134)]([writeId(ID_INFO),writeVint(_0x2cbd00,_0x4d385d['sizeLen'])]),_0x1e209c=_0x4cfde3['slice'](_0x4d385d['dataOffset'],_0x4d385d[_0x44e69f(0x12b)]+_0x4d385d['dataSize']),_0x165a24=_0x144eba[_0x44e69f(0x13e)](writeVoid,_0x1c7dee),_0x39ea2d=_0x4cfde3[_0x44e69f(0x140)](0x0,_0x3adaf9['offset']),_0x268602=_0x4cfde3['slice'](_0x144eba[_0x44e69f(0x159)](_0x4d385d['dataOffset'],_0x4d385d[_0x44e69f(0x167)]));return writeFileSync(_0x2e6acf,Buffer[_0x44e69f(0x134)]([_0x39ea2d,_0x165a24,_0x4f1722,_0x1e209c,_0x2cdbac,_0x268602])),!![];}}return rewriteFile(_0x4cfde3,_0x4d385d,_0x2cdbac,_0x298cd9,_0x3eb08d,_0x2e6acf);}function _0x3712(){const _0x5ac408=['WKdUx','floor','hdfqq','idLen','DSOgG','odotb','from','ALsjF','keokB','argv','OPuTr','endsWith','iSQiI','Could\x20not\x20find\x20Info\x20element','min','writeDoubleBE','dataSize','30317130WlmASA','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','WpnJv','GhXGJ','oGRqD','log','104MZNcWR','bhLHI','readInt16BE','kArDC','pow','dataOffset','RpMtr','jcRbp','74751qkoTGu','wqyvf','7LAzjyL','ZMDrr','length','error','concat','Fixed:\x20','1163704MpAQac','ZnDXI','Tjivu','224530SgLbwe','DeRgV','78GInEvK','alloc','14132439dutzDT','dWiaT','fixWebmDuration.ts','slice','indexOf','nWhHa','8420262BUXUnr','Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','HIbTU','HdsKX','kEJtR','JsqfC','AgHfu','MGrJv','Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>','exit','KlSnP','qPSQv','431184aPQoNM','bzXak','offset','OQkBa','oUsJp','sizeLen','JFqnm','FNUuz'];_0x3712=function(){return _0x5ac408;};return _0x3712();}function rewriteFile(_0x243bf8,_0x52b70e,_0x53ba4e,_0x2b03e0,_0x33cbdb,_0x3bdcf0){const _0x17ba36=_0x4de7,_0x215453={'iSQiI':function(_0x1ea2b9,_0x5eb998){return _0x1ea2b9+_0x5eb998;},'bzXak':function(_0x57de33,_0x25f0a2){return _0x57de33(_0x25f0a2);},'RpMtr':function(_0x32e2f6,_0x11b6a5){return _0x32e2f6+_0x11b6a5;},'OPuTr':function(_0x32bc2d,_0x4b1ca0,_0x563841){return _0x32bc2d(_0x4b1ca0,_0x563841);}},_0x5ad1ed=_0x215453[_0x17ba36(0x163)](_0x52b70e['dataSize'],_0x53ba4e['length']),_0x134487=Buffer['concat']([writeId(ID_INFO),_0x215453[_0x17ba36(0x150)](writeVint,_0x5ad1ed)]),_0xe73adf=_0x215453[_0x17ba36(0x163)](_0x52b70e[_0x17ba36(0x15a)],_0x52b70e[_0x17ba36(0x154)]),_0x337947=_0x243bf8[_0x17ba36(0x140)](0x0,_0x52b70e['offset']),_0x1360de=_0x243bf8['slice'](_0x52b70e['dataOffset'],_0x52b70e['dataOffset']+_0x52b70e['dataSize']),_0x5c78b9=_0x243bf8['slice'](_0x215453[_0x17ba36(0x12c)](_0x215453[_0x17ba36(0x163)](_0x52b70e[_0x17ba36(0x151)],_0xe73adf),_0x52b70e['dataSize']));return _0x215453[_0x17ba36(0x161)](writeFileSync,_0x3bdcf0,Buffer[_0x17ba36(0x134)]([_0x337947,_0x134487,_0x1360de,_0x53ba4e,_0x5c78b9])),!![];}if(process['argv'][0x1]?.[_0xe73668(0x162)](_0xe73668(0x13f))||process['argv'][0x1]?.['endsWith']('fixWebmDuration.js')){const input=process[_0xe73668(0x160)][0x2],output=process['argv'][0x3];(!input||!output)&&(console[_0xe73668(0x133)](_0xe73668(0x14b)),process[_0xe73668(0x14c)](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0xe73668(0x16d)](_0xe73668(0x135)+output):console['log'](_0xe73668(0x169));}
|
|
1
|
+
const _0x5b16d1=_0x4f11;(function(_0x5f1c26,_0x241234){const _0x34484e=_0x4f11,_0x13a8a7=_0x5f1c26();while(!![]){try{const _0x11ced9=parseInt(_0x34484e(0xab))/0x1+parseInt(_0x34484e(0xcb))/0x2*(-parseInt(_0x34484e(0xa9))/0x3)+parseInt(_0x34484e(0xbb))/0x4+parseInt(_0x34484e(0xa0))/0x5*(parseInt(_0x34484e(0xa7))/0x6)+parseInt(_0x34484e(0x9d))/0x7+-parseInt(_0x34484e(0x9a))/0x8*(parseInt(_0x34484e(0xb3))/0x9)+-parseInt(_0x34484e(0x88))/0xa*(parseInt(_0x34484e(0xa2))/0xb);if(_0x11ced9===_0x241234)break;else _0x13a8a7['push'](_0x13a8a7['shift']());}catch(_0x3d56c7){_0x13a8a7['push'](_0x13a8a7['shift']());}}}(_0x3fb6,0xd521e));import{readFileSync,writeFileSync}from'fs';function _0x4f11(_0x2ce157,_0x304bc2){_0x2ce157=_0x2ce157-0x88;const _0x3fb69e=_0x3fb6();let _0x4f11f1=_0x3fb69e[_0x2ce157];return _0x4f11f1;}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(_0x4cf4eb,_0xe50823){const _0x22e58c=_0x4f11,_0x381906={'vrCrU':function(_0x29e4ea,_0x2d01ee){return _0x29e4ea<=_0x2d01ee;},'eWXdl':function(_0x4f9484,_0x2b6bda){return _0x4f9484&_0x2b6bda;},'fsGcV':function(_0x53cbb1,_0x1ddc8d){return _0x53cbb1>_0x1ddc8d;},'jHjJd':function(_0x54499f,_0x2fcd58){return _0x54499f-_0x2fcd58;},'qYzfK':function(_0x4bb6dc,_0x4c47eb){return _0x4bb6dc<_0x4c47eb;},'bYnoy':function(_0x29bffa,_0x567607){return _0x29bffa+_0x567607;},'EcwLD':function(_0x50cc3c,_0x20263e){return _0x50cc3c*_0x20263e;}};if(_0xe50823>=_0x4cf4eb['length'])return[0x0,0x0];const _0x484a65=_0x4cf4eb[_0xe50823];let _0x2f44c9=0x1,_0x4616f5=0x80;while(_0x381906[_0x22e58c(0x93)](_0x2f44c9,0x8)&&!_0x381906[_0x22e58c(0xc3)](_0x484a65,_0x4616f5)){_0x2f44c9++,_0x4616f5>>=0x1;}if(_0x381906['fsGcV'](_0xe50823+_0x2f44c9,_0x4cf4eb[_0x22e58c(0x90)]))return[0x0,0x0];let _0x9d4003=_0x484a65&_0x381906['jHjJd'](_0x4616f5,0x1);for(let _0x4ed6de=0x1;_0x381906['qYzfK'](_0x4ed6de,_0x2f44c9);_0x4ed6de++){_0x9d4003=_0x381906[_0x22e58c(0xc2)](_0x381906[_0x22e58c(0xc5)](_0x9d4003,0x100),_0x4cf4eb[_0xe50823+_0x4ed6de]);}return[_0x9d4003,_0x2f44c9];}function readId(_0x5145b5,_0x5e14bb){const _0x2ac788=_0x4f11,_0x4c6632={'nLwZC':function(_0x298894,_0x1e6b35){return _0x298894>=_0x1e6b35;},'UxiQM':function(_0x555848,_0x7c0850){return _0x555848>=_0x7c0850;},'qDLTj':function(_0x393d5f,_0x381d98){return _0x393d5f<_0x381d98;},'bVigD':function(_0x4fd7a6,_0x17e293){return _0x4fd7a6+_0x17e293;}};if(_0x5e14bb>=_0x5145b5[_0x2ac788(0x90)])return[0x0,0x0];const _0x5643fe=_0x5145b5[_0x5e14bb];let _0xdb84be;if(_0x4c6632[_0x2ac788(0xbe)](_0x5643fe,0x80))_0xdb84be=0x1;else{if(_0x4c6632[_0x2ac788(0xcc)](_0x5643fe,0x40))_0xdb84be=0x2;else{if(_0x5643fe>=0x20)_0xdb84be=0x3;else{if(_0x5643fe>=0x10)_0xdb84be=0x4;else return[_0x5643fe,0x1];}}}if(_0x5e14bb+_0xdb84be>_0x5145b5[_0x2ac788(0x90)])return[0x0,0x0];let _0x408117=0x0;for(let _0x3c7f3f=0x0;_0x4c6632[_0x2ac788(0xad)](_0x3c7f3f,_0xdb84be);_0x3c7f3f++){_0x408117=_0x4c6632[_0x2ac788(0xaa)](_0x408117*0x100,_0x5145b5[_0x5e14bb+_0x3c7f3f]);}return[_0x408117,_0xdb84be];}function readUint(_0x4d4556,_0x4ac81c,_0x588273){const _0x50a6d9=_0x4f11,_0x255ff7={'PVBnh':function(_0x11bc5f,_0xf0ab62){return _0x11bc5f+_0xf0ab62;}};let _0x570aec=0x0;for(let _0x5a00da=0x0;_0x5a00da<_0x588273;_0x5a00da++){_0x570aec=_0x255ff7[_0x50a6d9(0xaf)](_0x570aec*0x100,_0x4d4556[_0x255ff7[_0x50a6d9(0xaf)](_0x4ac81c,_0x5a00da)]);}return _0x570aec;}function isUnknownSize(_0x2ed038,_0x6d6b26){const _0x5928aa={'gkrRk':function(_0x512240,_0x5e5055){return _0x512240-_0x5e5055;}};return _0x2ed038===_0x5928aa['gkrRk'](Math['pow'](0x2,0x7*_0x6d6b26),0x1);}function writeId(_0x4d3bf2){const _0xb555e1=_0x4f11,_0x26808f={'dncVg':function(_0x4595af,_0x42f3bd){return _0x4595af<=_0x42f3bd;},'GBtHE':function(_0x2690bd,_0x554a76){return _0x2690bd&_0x554a76;},'dwArn':function(_0x3d14e2,_0x4cfea4){return _0x3d14e2>>_0x4cfea4;},'ZuEmW':function(_0x12beff,_0x2d29cf){return _0x12beff&_0x2d29cf;},'QltSh':function(_0x3c3eb3,_0x4ed584){return _0x3c3eb3&_0x4ed584;},'SKWJZ':function(_0x45dd21,_0x343d85){return _0x45dd21&_0x343d85;},'GJAGy':function(_0x1e289a,_0x341457){return _0x1e289a&_0x341457;},'kcYMD':function(_0xd96778,_0x27552b){return _0xd96778>>_0x27552b;},'zSlAr':function(_0x24bb54,_0x1dbd91){return _0x24bb54&_0x1dbd91;}};if(_0x4d3bf2<=0xff)return Buffer['from']([_0x4d3bf2]);if(_0x26808f[_0xb555e1(0xc6)](_0x4d3bf2,0xffff))return Buffer[_0xb555e1(0x98)]([_0x26808f[_0xb555e1(0xcd)](_0x26808f['dwArn'](_0x4d3bf2,0x8),0xff),_0x4d3bf2&0xff]);if(_0x4d3bf2<=0xffffff)return Buffer[_0xb555e1(0x98)]([_0x26808f['ZuEmW'](_0x4d3bf2>>0x10,0xff),_0x4d3bf2>>0x8&0xff,_0x26808f[_0xb555e1(0x8f)](_0x4d3bf2,0xff)]);return Buffer['from']([_0x26808f[_0xb555e1(0x8a)](_0x4d3bf2>>0x18,0xff),_0x4d3bf2>>0x10&0xff,_0x26808f[_0xb555e1(0xc0)](_0x26808f[_0xb555e1(0x8d)](_0x4d3bf2,0x8),0xff),_0x26808f[_0xb555e1(0xa8)](_0x4d3bf2,0xff)]);}function writeVint(_0xd360fa,_0x247359){const _0x56721a=_0x4f11,_0x1d5ffd={'bTOqj':function(_0x452432,_0x3059b8){return _0x452432||_0x3059b8;},'LGOly':function(_0x2ec3f0,_0x5813a0){return _0x2ec3f0<_0x5813a0;},'OlhIY':function(_0x375fa8,_0x1157d9){return _0x375fa8-_0x1157d9;},'CKzxS':function(_0x564940,_0x337959){return _0x564940>=_0x337959;}};let _0x4a6ae8=_0x1d5ffd[_0x56721a(0xb8)](_0x247359,0x1);while(_0x1d5ffd[_0x56721a(0x89)](_0x1d5ffd['OlhIY'](Math['pow'](0x2,0x7*_0x4a6ae8),0x2),_0xd360fa))_0x4a6ae8++;const _0x2eed8e=Buffer[_0x56721a(0xca)](_0x4a6ae8);for(let _0x518c13=_0x4a6ae8-0x1;_0x1d5ffd['CKzxS'](_0x518c13,0x0);_0x518c13--){_0x2eed8e[_0x518c13]=_0xd360fa&0xff,_0xd360fa=Math['floor'](_0xd360fa/0x100);}return _0x2eed8e[0x0]|=0x1<<0x8-_0x4a6ae8,_0x2eed8e;}function writeFloat64(_0x30a27f){const _0x21e937=Buffer['alloc'](0x8);return _0x21e937['writeDoubleBE'](_0x30a27f,0x0),_0x21e937;}function _0x3fb6(){const _0x4d9c84=['RcnDI','5481152npMtRb','GUNwD','JNWkr','nLwZC','yWmHC','GJAGy','log','bYnoy','eWXdl','bvLnZ','EcwLD','dncVg','aKwiz','offset','exit','alloc','5332GbxGfS','UxiQM','GBtHE','fixWebmDuration.ts','PMLrW','dhNzs','concat','dataOffset','130eEMRRe','LGOly','SKWJZ','yWiST','readInt16BE','kcYMD','drOug','QltSh','length','udFBY','slice','vrCrU','idLen','PxjHd','KfgBf','argv','from','ocySY','1957816FCykwH','Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','indexOf','5913985rTfsCF','kdVRZ','Could\x20not\x20find\x20Info\x20element','260765vxMIhi','sizeLen','2151919SUYKqe','lJveA','KYKTu','kmdfA','PQAXH','66SalvEN','zSlAr','870BqWcgs','bVigD','1645208MTWOgw','TiGck','qDLTj','Could\x20not\x20compute\x20duration','PVBnh','dataSize','TzWXN','cOiRE','9KlRgyi','wkXVT','QfPiN','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','rOmcl','bTOqj','bKHDy'];_0x3fb6=function(){return _0x4d9c84;};return _0x3fb6();}function writeVoid(_0x8ccbb4){const _0x2cc4eb=_0x4f11,_0x593c9d={'pKFOY':function(_0x2ea33c,_0x2c5848){return _0x2ea33c<=_0x2c5848;},'dhNzs':function(_0xa26041,_0x36ccff){return _0xa26041-_0x36ccff;},'IZwQv':function(_0x320949,_0x15b94b){return _0x320949-_0x15b94b;}};for(let _0x3d5932=0x1;_0x593c9d['pKFOY'](_0x3d5932,0x8);_0x3d5932++){const _0x2b2773=_0x593c9d[_0x2cc4eb(0xd0)](_0x593c9d['dhNzs'](_0x8ccbb4,0x1),_0x3d5932);if(_0x2b2773>=0x0&&_0x2b2773<=_0x593c9d['IZwQv'](Math['pow'](0x2,0x7*_0x3d5932),0x2))return Buffer['concat']([Buffer[_0x2cc4eb(0x98)]([ID_VOID]),writeVint(_0x2b2773,_0x3d5932),Buffer['alloc'](_0x2b2773)]);}return Buffer['alloc'](0x0);}function findElement(_0x545d02,_0x358ff7,_0x1b0862,_0xc75c24){const _0x42e99f=_0x4f11,_0x49d642={'aKwiz':function(_0x55b533,_0x517a5c,_0x17dad0){return _0x55b533(_0x517a5c,_0x17dad0);},'KfgBf':function(_0x54466e,_0x11cfe8){return _0x54466e===_0x11cfe8;},'QfPiN':function(_0x12b132,_0x8173){return _0x12b132+_0x8173;}};let _0x35219d=_0x358ff7;while(_0x35219d<_0x1b0862){const [_0x25c288,_0x99af25]=_0x49d642[_0x42e99f(0xc7)](readId,_0x545d02,_0x35219d),[_0x2407c1,_0x449cb4]=_0x49d642['aKwiz'](readVint,_0x545d02,_0x35219d+_0x99af25);if(_0x49d642[_0x42e99f(0x96)](_0x25c288,_0xc75c24))return{'offset':_0x35219d,'idLen':_0x99af25,'sizeLen':_0x449cb4,'dataSize':_0x2407c1,'dataOffset':_0x49d642['QfPiN'](_0x35219d+_0x99af25,_0x449cb4)};if(isUnknownSize(_0x2407c1,_0x449cb4))break;_0x35219d+=_0x49d642[_0x42e99f(0xb5)](_0x49d642['QfPiN'](_0x99af25,_0x449cb4),_0x2407c1);}return null;}function computeDurationMs(_0x1c18c8,_0x27f2e4){const _0x8abd23=_0x4f11,_0x21c569={'bvLnZ':function(_0x222913,_0x22a476,_0x134567){return _0x222913(_0x22a476,_0x134567);},'cOiRE':function(_0x121125,_0x6407ef){return _0x121125+_0x6407ef;},'TzWXN':function(_0x10d5be,_0x63e648){return _0x10d5be+_0x63e648;},'yWmHC':function(_0x4fc49c,_0x1d16a9){return _0x4fc49c<_0x1d16a9;},'bKHDy':function(_0x5aeff7,_0x2a977a){return _0x5aeff7<_0x2a977a;},'qSBrp':function(_0x52acc2,_0x32f910,_0x5747b6){return _0x52acc2(_0x32f910,_0x5747b6);},'PQAXH':function(_0x19100a,_0x22d0db,_0x1a1161){return _0x19100a(_0x22d0db,_0x1a1161);},'TiGck':function(_0x42c32c,_0x420986){return _0x42c32c+_0x420986;},'wuzOr':function(_0x58b78f,_0x2cd10c){return _0x58b78f===_0x2cd10c;},'QYRwB':function(_0x116c47,_0x131f73){return _0x116c47>=_0x131f73;},'ofNMt':function(_0x16e2fc,_0x33bed1){return _0x16e2fc+_0x33bed1;},'udFBY':function(_0x50a012,_0x4e1b4d,_0x6854cb){return _0x50a012(_0x4e1b4d,_0x6854cb);},'GUNwD':function(_0x4ccb2b,_0x51fe2f){return _0x4ccb2b/_0x51fe2f;},'NXigg':function(_0x374794,_0x280baf){return _0x374794*_0x280baf;}};let _0x3f008a=0x0;const _0x28a22f=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0xa91d=_0x1c18c8[_0x8abd23(0x9c)](_0x28a22f);if(_0xa91d===-0x1)return 0x0;while(_0xa91d<_0x1c18c8['length']){const [_0x2f053a,_0x2b58f2]=readId(_0x1c18c8,_0xa91d);if(_0x2f053a!==ID_CLUSTER)break;const [_0x223889,_0x3a7e00]=_0x21c569[_0x8abd23(0xc4)](readVint,_0x1c18c8,_0x21c569['cOiRE'](_0xa91d,_0x2b58f2)),_0x5c7824=_0x21c569[_0x8abd23(0xb1)](_0xa91d+_0x2b58f2,_0x3a7e00),_0x1613c7=isUnknownSize(_0x223889,_0x3a7e00);let _0xa751b;if(_0x1613c7){let _0x537761=_0x5c7824;while(_0x21c569[_0x8abd23(0xbf)](_0x537761,_0x1c18c8['length']-0x4)){const [_0xa3f4e8,_0x137dbc]=readId(_0x1c18c8,_0x537761);if(_0xa3f4e8===ID_CLUSTER){_0xa751b=_0x537761;break;}const [_0x293137,_0x3d559a]=readVint(_0x1c18c8,_0x21c569[_0x8abd23(0xb2)](_0x537761,_0x137dbc));if(_0x21c569['bvLnZ'](isUnknownSize,_0x293137,_0x3d559a)){_0xa751b=_0x1c18c8[_0x8abd23(0x90)];break;}_0x537761+=_0x21c569['TzWXN'](_0x21c569[_0x8abd23(0xb2)](_0x137dbc,_0x3d559a),_0x293137);}_0xa751b??=_0x1c18c8['length'];}else _0xa751b=_0x5c7824+_0x223889;let _0x3f7df9=0x0,_0x53db7e=_0x5c7824;while(_0x21c569[_0x8abd23(0xb9)](_0x53db7e,_0xa751b)){const [_0x45b65f,_0x1030f2]=_0x21c569['qSBrp'](readId,_0x1c18c8,_0x53db7e),[_0x1687bb,_0x3256c0]=_0x21c569[_0x8abd23(0xa6)](readVint,_0x1c18c8,_0x21c569[_0x8abd23(0xac)](_0x53db7e,_0x1030f2));if(_0x21c569['wuzOr'](_0x45b65f,ID_TIMESTAMP))_0x3f7df9=readUint(_0x1c18c8,_0x21c569[_0x8abd23(0xb1)](_0x21c569[_0x8abd23(0xb2)](_0x53db7e,_0x1030f2),_0x3256c0),_0x1687bb);else{if(_0x21c569['wuzOr'](_0x45b65f,ID_SIMPLE_BLOCK)&&_0x21c569['QYRwB'](_0x1687bb,0x4)){const _0x58c7d8=_0x21c569['ofNMt'](_0x53db7e+_0x1030f2,_0x3256c0),[,_0x491f39]=_0x21c569[_0x8abd23(0x91)](readVint,_0x1c18c8,_0x58c7d8),_0x44c1f1=_0x1c18c8[_0x8abd23(0x8c)](_0x58c7d8+_0x491f39),_0x2cec13=_0x21c569[_0x8abd23(0xbc)](_0x21c569['NXigg'](_0x3f7df9+_0x44c1f1,_0x27f2e4),0xf4240);_0x2cec13>_0x3f008a&&(_0x3f008a=_0x2cec13);}else{if(_0x45b65f===ID_CLUSTER)break;}}if(isUnknownSize(_0x1687bb,_0x3256c0))break;_0x53db7e+=_0x1030f2+_0x3256c0+_0x1687bb;}_0xa91d=_0xa751b;}return _0x3f008a;}export function fixWebmDuration(_0x4b3e55,_0x18572c){const _0xda3501=_0x4f11,_0x52fda3={'ocySY':function(_0x357df4,_0x339016){return _0x357df4(_0x339016);},'rOmcl':function(_0x1f07ed,_0x1ab678,_0x58e897){return _0x1f07ed(_0x1ab678,_0x58e897);},'zMgXW':function(_0x1886fa,_0x563842){return _0x1886fa+_0x563842;},'xpSLR':function(_0x1d9545,_0x520c66){return _0x1d9545+_0x520c66;},'yWiST':function(_0x575982,_0x49d7dc){return _0x575982!==_0x49d7dc;},'PMLrW':_0xda3501(0x9b),'DxCrM':function(_0x8700cb,_0x4c0698){return _0x8700cb<_0x4c0698;},'wkXVT':function(_0x1cd2de,_0x271977,_0x42a935){return _0x1cd2de(_0x271977,_0x42a935);},'JNWkr':function(_0x19ed31,_0x1627f4){return _0x19ed31+_0x1627f4;},'WWECi':function(_0x5b147a,_0x4e915a){return _0x5b147a+_0x4e915a;},'vmKUr':function(_0xb22eba,_0x188851){return _0xb22eba===_0x188851;},'sAbpS':_0xda3501(0x9f),'AWFYy':function(_0x1a7b35,_0x4ff900){return _0x1a7b35+_0x4ff900;},'KYKTu':function(_0x591154,_0x19761c,_0x494e84,_0x4a0284,_0x2dd501){return _0x591154(_0x19761c,_0x494e84,_0x4a0284,_0x2dd501);},'PxjHd':function(_0x13082c,_0x34e959){return _0x13082c+_0x34e959;},'lJveA':function(_0x47aa16,_0xa65186){return _0x47aa16<=_0xa65186;},'drOug':_0xda3501(0xae),'SFcTv':function(_0x570ec1,_0x53c689){return _0x570ec1/_0x53c689;},'RcnDI':function(_0x5c23f0,_0xd81f1){return _0x5c23f0+_0xd81f1;},'QVxBW':function(_0x39fcda,_0x88fda5){return _0x39fcda-_0x88fda5;},'kdVRZ':function(_0x1c3f28,_0x20fd38){return _0x1c3f28<_0x20fd38;},'kmdfA':function(_0x4f78d0,_0x108381){return _0x4f78d0+_0x108381;}},_0x3a1a78=_0x52fda3['ocySY'](readFileSync,_0x4b3e55);let _0x47caa2=0x0;const [_0x360618,_0x993b77]=_0x52fda3[_0xda3501(0xb7)](readId,_0x3a1a78,_0x47caa2),[_0x86e5ba,_0x2b67ef]=readVint(_0x3a1a78,_0x52fda3['zMgXW'](_0x47caa2,_0x993b77));_0x47caa2+=_0x52fda3['xpSLR'](_0x52fda3['xpSLR'](_0x993b77,_0x2b67ef),_0x86e5ba);const [_0x127138,_0x223a12]=readId(_0x3a1a78,_0x47caa2);if(_0x52fda3[_0xda3501(0x8b)](_0x127138,ID_SEGMENT))return console['error'](_0x52fda3[_0xda3501(0xcf)]),![];const [,_0x2134af]=readVint(_0x3a1a78,_0x52fda3['zMgXW'](_0x47caa2,_0x223a12)),_0x24565f=_0x47caa2+_0x223a12+_0x2134af;let _0x138fe7=_0x24565f;const _0x819f24=Math['min'](_0x3a1a78['length'],_0x52fda3['zMgXW'](_0x24565f,0x2710));let _0x46b0db=null,_0x108d61=null;while(_0x52fda3['DxCrM'](_0x138fe7,_0x819f24)){const [_0x19e123,_0x1f23a5]=readId(_0x3a1a78,_0x138fe7),[_0x430c05,_0x563c68]=_0x52fda3[_0xda3501(0xb4)](readVint,_0x3a1a78,_0x138fe7+_0x1f23a5);_0x19e123===ID_VOID&&!_0x46b0db&&(_0x46b0db={'offset':_0x138fe7,'idLen':_0x1f23a5,'sizeLen':_0x563c68,'dataSize':_0x430c05,'dataOffset':_0x52fda3[_0xda3501(0xbd)](_0x52fda3['WWECi'](_0x138fe7,_0x1f23a5),_0x563c68)});if(_0x52fda3['vmKUr'](_0x19e123,ID_INFO)){_0x108d61={'offset':_0x138fe7,'idLen':_0x1f23a5,'sizeLen':_0x563c68,'dataSize':_0x430c05,'dataOffset':_0x52fda3[_0xda3501(0xbd)](_0x138fe7+_0x1f23a5,_0x563c68)};break;}if(_0x52fda3['vmKUr'](_0x19e123,ID_CLUSTER))break;if(_0x52fda3[_0xda3501(0xb4)](isUnknownSize,_0x430c05,_0x563c68))break;_0x138fe7+=_0x1f23a5+_0x563c68+_0x430c05;}if(!_0x108d61)return console['error'](_0x52fda3['sAbpS']),![];const _0x5ae7ae=findElement(_0x3a1a78,_0x108d61[_0xda3501(0xd2)],_0x52fda3['AWFYy'](_0x108d61['dataOffset'],_0x108d61[_0xda3501(0xb0)]),ID_DURATION);if(_0x5ae7ae)return![];const _0x460c66=_0x52fda3[_0xda3501(0xa4)](findElement,_0x3a1a78,_0x108d61['dataOffset'],_0x52fda3[_0xda3501(0x95)](_0x108d61['dataOffset'],_0x108d61[_0xda3501(0xb0)]),ID_TIMESTAMP_SCALE);let _0x4543a0=0xf4240;_0x460c66&&(_0x4543a0=readUint(_0x3a1a78,_0x460c66['dataOffset'],_0x460c66['dataSize']));const _0x260653=_0x52fda3['rOmcl'](computeDurationMs,_0x3a1a78,_0x4543a0);if(_0x52fda3[_0xda3501(0xa3)](_0x260653,0x0))return console['error'](_0x52fda3[_0xda3501(0x8e)]),![];const _0x27f3fc=_0x52fda3['SFcTv'](_0x260653*0xf4240,_0x4543a0),_0x985a52=Buffer['concat']([writeId(ID_DURATION),_0x52fda3[_0xda3501(0x99)](writeVint,0x8),writeFloat64(_0x27f3fc)]),_0x4e97a8=_0x985a52['length'];if(!_0x46b0db||_0x46b0db[_0xda3501(0xc8)]<_0x108d61[_0xda3501(0xc8)]){if(_0x46b0db){const _0x3a9f44=_0x52fda3[_0xda3501(0xba)](_0x46b0db[_0xda3501(0x94)],_0x46b0db['sizeLen'])+_0x46b0db[_0xda3501(0xb0)],_0x26dca5=_0x52fda3['QVxBW'](_0x3a9f44,_0x4e97a8);if(_0x52fda3[_0xda3501(0x9e)](_0x26dca5,0x2))return rewriteFile(_0x3a1a78,_0x108d61,_0x985a52,_0x4543a0,_0x260653,_0x18572c);const _0x4b369e=_0x52fda3['xpSLR'](_0x108d61[_0xda3501(0xb0)],_0x4e97a8),_0xb8c7b6=Buffer['concat']([_0x52fda3['ocySY'](writeId,ID_INFO),_0x52fda3['rOmcl'](writeVint,_0x4b369e,_0x108d61[_0xda3501(0xa1)])]),_0x325bda=_0x3a1a78['slice'](_0x108d61[_0xda3501(0xd2)],_0x108d61[_0xda3501(0xd2)]+_0x108d61[_0xda3501(0xb0)]),_0x154db9=writeVoid(_0x26dca5),_0x260f40=_0x3a1a78[_0xda3501(0x92)](0x0,_0x46b0db['offset']),_0x20aafd=_0x3a1a78[_0xda3501(0x92)](_0x52fda3[_0xda3501(0xa5)](_0x108d61['dataOffset'],_0x108d61[_0xda3501(0xb0)]));return _0x52fda3['rOmcl'](writeFileSync,_0x18572c,Buffer['concat']([_0x260f40,_0x154db9,_0xb8c7b6,_0x325bda,_0x985a52,_0x20aafd])),!![];}}return rewriteFile(_0x3a1a78,_0x108d61,_0x985a52,_0x4543a0,_0x260653,_0x18572c);}function rewriteFile(_0x497f43,_0x5629fb,_0x457273,_0x379968,_0x29c5d6,_0x3caa23){const _0x3186c6=_0x4f11,_0x46828b={'Xksqq':function(_0x4ca549,_0x94376b){return _0x4ca549+_0x94376b;}},_0x5ca5d2=_0x5629fb['dataSize']+_0x457273[_0x3186c6(0x90)],_0x380fc7=Buffer['concat']([writeId(ID_INFO),writeVint(_0x5ca5d2)]),_0x4b6f91=_0x46828b['Xksqq'](_0x5629fb['idLen'],_0x5629fb[_0x3186c6(0xa1)]),_0xdf8630=_0x497f43[_0x3186c6(0x92)](0x0,_0x5629fb[_0x3186c6(0xc8)]),_0x2cd007=_0x497f43[_0x3186c6(0x92)](_0x5629fb['dataOffset'],_0x5629fb[_0x3186c6(0xd2)]+_0x5629fb['dataSize']),_0x554ae1=_0x497f43['slice'](_0x5629fb['offset']+_0x4b6f91+_0x5629fb['dataSize']);return writeFileSync(_0x3caa23,Buffer[_0x3186c6(0xd1)]([_0xdf8630,_0x380fc7,_0x2cd007,_0x457273,_0x554ae1])),!![];}if(process['argv'][0x1]?.['endsWith'](_0x5b16d1(0xce))||process['argv'][0x1]?.['endsWith']('fixWebmDuration.js')){const input=process[_0x5b16d1(0x97)][0x2],output=process['argv'][0x3];(!input||!output)&&(console['error']('Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>'),process[_0x5b16d1(0xc9)](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0x5b16d1(0xc1)]('Fixed:\x20'+output):console[_0x5b16d1(0xc1)](_0x5b16d1(0xb6));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0xb91a(_0x487333,_0xb8825e){_0x487333=_0x487333-0x1c6;const _0x43f9ec=_0x43f9();let _0xb91a03=_0x43f9ec[_0x487333];return _0xb91a03;}function _0x43f9(){const _0x356e96=['70108IZAHHU','DUVpX','10MqaQfu','2023482tiWqfF','213xwvHZf','DRtTA','XtDJZ','--error-unmatch','9ymjIYf','60TRCHXp','6254347CzljyD','890829eUnQAQ','17019190ewxvMW','3082730pnzRcc','git','1092176ncsVhI','35QAyBLb'];_0x43f9=function(){return _0x356e96;};return _0x43f9();}(function(_0x38be03,_0x1295d9){const _0x548b85=_0xb91a,_0x3d1881=_0x38be03();while(!![]){try{const _0x4f1cf4=-parseInt(_0x548b85(0x1d5))/0x1+-parseInt(_0x548b85(0x1c6))/0x2+parseInt(_0x548b85(0x1ce))/0x3*(-parseInt(_0x548b85(0x1ca))/0x4)+-parseInt(_0x548b85(0x1cc))/0x5*(-parseInt(_0x548b85(0x1cd))/0x6)+-parseInt(_0x548b85(0x1c9))/0x7*(parseInt(_0x548b85(0x1c8))/0x8)+parseInt(_0x548b85(0x1d2))/0x9*(parseInt(_0x548b85(0x1d6))/0xa)+-parseInt(_0x548b85(0x1d4))/0xb*(-parseInt(_0x548b85(0x1d3))/0xc);if(_0x4f1cf4===_0x1295d9)break;else _0x3d1881['push'](_0x3d1881['shift']());}catch(_0xd95ed5){_0x3d1881['push'](_0x3d1881['shift']());}}}(_0x43f9,0xd1fad));import{execFile as _0x45ceff}from'child_process';import{promisify}from'util';const execFile=promisify(_0x45ceff);export async function isPathGitTracked(_0x2b431c){const _0x40d14f=_0xb91a,_0x5679e2={'DRtTA':function(_0x4c845a,_0x3cff39,_0xc4d552,_0x17760a){return _0x4c845a(_0x3cff39,_0xc4d552,_0x17760a);},'XtDJZ':'ls-files','DUVpX':_0x40d14f(0x1d1)};try{return await _0x5679e2[_0x40d14f(0x1cf)](execFile,_0x40d14f(0x1c7),[_0x5679e2[_0x40d14f(0x1d0)],_0x5679e2[_0x40d14f(0x1cb)],_0x2b431c],{'cwd':process['cwd']()}),!![];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xe85740=_0x4f82;(function(_0x429d53,_0x482bd4){const _0x639a51=_0x4f82,_0x1743b9=_0x429d53();while(!![]){try{const _0x45af68=parseInt(_0x639a51(0xc4))/0x1*(-parseInt(_0x639a51(0xb8))/0x2)+parseInt(_0x639a51(0xce))/0x3+-parseInt(_0x639a51(0xd5))/0x4*(-parseInt(_0x639a51(0xb1))/0x5)+-parseInt(_0x639a51(0xbd))/0x6*(-parseInt(_0x639a51(0x84))/0x7)+-parseInt(_0x639a51(0xd4))/0x8*(parseInt(_0x639a51(0x8e))/0x9)+-parseInt(_0x639a51(0xc9))/0xa+parseInt(_0x639a51(0xc1))/0xb;if(_0x45af68===_0x482bd4)break;else _0x1743b9['push'](_0x1743b9['shift']());}catch(_0x1f528f){_0x1743b9['push'](_0x1743b9['shift']());}}}(_0x1924,0x4a318));const _0x10616d=(function(){const _0x300233=_0x4f82,_0x207d86={'MrdEF':function(_0x49b4de,_0xeafd76){return _0x49b4de===_0xeafd76;},'BYxRi':_0x300233(0xaf),'RlTNA':_0x300233(0xd0),'PUnHm':_0x300233(0xda)};let _0x188df1=!![];return function(_0xef286a,_0x487a49){const _0x64353b=_0x188df1?function(){const _0x3101e7=_0x4f82;if(_0x207d86[_0x3101e7(0xcd)](_0x207d86['BYxRi'],_0x207d86['BYxRi'])){if(_0x487a49){if(_0x207d86[_0x3101e7(0x8c)]===_0x207d86[_0x3101e7(0xa8)])return _0x2f6f39['env'][_0x2e5f91];else{const _0x40b140=_0x487a49[_0x3101e7(0xca)](_0xef286a,arguments);return _0x487a49=null,_0x40b140;}}}else return null;}:function(){};return _0x188df1=![],_0x64353b;};}()),_0x2b85e2=_0x10616d(this,function(){const _0x2f90f7=_0x4f82,_0x5d1baf={'rBagW':_0x2f90f7(0x87)};return _0x2b85e2[_0x2f90f7(0xb3)]()[_0x2f90f7(0x88)](_0x5d1baf[_0x2f90f7(0xa3)])['toString']()['constructor'](_0x2b85e2)['search'](_0x5d1baf[_0x2f90f7(0xa3)]);});_0x2b85e2();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';function _0x4f82(_0x58d0e0,_0x4bb8bc){_0x58d0e0=_0x58d0e0-0x84;const _0x57e25e=_0x1924();let _0x2b85e2=_0x57e25e[_0x58d0e0];if(_0x4f82['ibAJsA']===undefined){var _0x10616d=function(_0x5768c7){const _0x598eb6='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x57dc5b='',_0x579127='',_0x4f8fd3=_0x57dc5b+_0x10616d;for(let _0xdcecd=0x0,_0x5a9c7f,_0x1b2904,_0x50402c=0x0;_0x1b2904=_0x5768c7['charAt'](_0x50402c++);~_0x1b2904&&(_0x5a9c7f=_0xdcecd%0x4?_0x5a9c7f*0x40+_0x1b2904:_0x1b2904,_0xdcecd++%0x4)?_0x57dc5b+=_0x4f8fd3['charCodeAt'](_0x50402c+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x5a9c7f>>(-0x2*_0xdcecd&0x6)):_0xdcecd:0x0){_0x1b2904=_0x598eb6['indexOf'](_0x1b2904);}for(let _0x277ef2=0x0,_0x35bb37=_0x57dc5b['length'];_0x277ef2<_0x35bb37;_0x277ef2++){_0x579127+='%'+('00'+_0x57dc5b['charCodeAt'](_0x277ef2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x579127);};_0x4f82['IbJErL']=_0x10616d,_0x4f82['OnbMBl']={},_0x4f82['ibAJsA']=!![];}const _0x19249b=_0x57e25e[0x0],_0x4f82e7=_0x58d0e0+_0x19249b,_0x126e24=_0x4f82['OnbMBl'][_0x4f82e7];if(!_0x126e24){const _0x1f5ce3=function(_0x295c55){this['Nwnuvn']=_0x295c55,this['KyicHf']=[0x1,0x0,0x0],this['LguZmd']=function(){return'newState';},this['sCEJOJ']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['YGsNzQ']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x1f5ce3['prototype']['HkSFbN']=function(){const _0x858a22=new RegExp(this['sCEJOJ']+this['YGsNzQ']),_0x5b0d9d=_0x858a22['test'](this['LguZmd']['toString']())?--this['KyicHf'][0x1]:--this['KyicHf'][0x0];return this['KxiExY'](_0x5b0d9d);},_0x1f5ce3['prototype']['KxiExY']=function(_0x538b91){if(!Boolean(~_0x538b91))return _0x538b91;return this['FtYgKM'](this['Nwnuvn']);},_0x1f5ce3['prototype']['FtYgKM']=function(_0x32351d){for(let _0x47fab7=0x0,_0x652691=this['KyicHf']['length'];_0x47fab7<_0x652691;_0x47fab7++){this['KyicHf']['push'](Math['round'](Math['random']())),_0x652691=this['KyicHf']['length'];}return _0x32351d(this['KyicHf'][0x0]);},new _0x1f5ce3(_0x4f82)['HkSFbN'](),_0x2b85e2=_0x4f82['IbJErL'](_0x2b85e2),_0x4f82['OnbMBl'][_0x4f82e7]=_0x2b85e2;}else _0x2b85e2=_0x126e24;return _0x2b85e2;}import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0xe85740(0x90),ENV_TOKEN_LEGACY=_0xe85740(0xa4),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,'cli.txt'),REFRESH_TOKEN_PATH=join(TOKEN_DIR,'refresh.txt');function isGitHubCI(){const _0x284bb9=_0xe85740;return!!process['env'][_0x284bb9(0xab)];}async function writeToGitHubEnv(_0x7e055b,_0x49de3d){const _0x50e133=_0xe85740,_0x394cfc={'mZPop':function(_0x4dd592,_0xdc9832){return _0x4dd592 instanceof _0xdc9832;},'gYiUf':function(_0x96b22a,_0xf28bbd){return _0x96b22a(_0xf28bbd);},'QAKKf':'Re-authorize\x20the\x20Ranger\x20MCP\x20connection,\x20then\x20retry.','uTrnS':function(_0xa6b215,_0x2ab693){return _0xa6b215===_0x2ab693;},'OiLcR':'nRNMO','epAdu':function(_0x3ed5e9,_0x46b77b,_0x35bce1){return _0x3ed5e9(_0x46b77b,_0x35bce1);}},_0x2148d5=process[_0x50e133(0xd7)][_0x50e133(0xab)];if(_0x2148d5){if(_0x394cfc[_0x50e133(0xcb)](_0x394cfc['OiLcR'],_0x394cfc['OiLcR']))await _0x394cfc[_0x50e133(0xbf)](appendFile,_0x2148d5,_0x7e055b+'='+_0x49de3d+'\x0a');else{const _0x1d8667=_0x394cfc[_0x50e133(0x9a)](_0x2438fa,_0x80c6ff)?_0x399c16[_0x50e133(0xd9)]:_0x394cfc[_0x50e133(0xa9)](_0x284c16,_0x4672e7);throw new _0x2d0ec6(_0x50e133(0xb7)+_0x1d8667+'\x0a'+_0x394cfc[_0x50e133(0xb6)]);}}}export async function storeToken(_0x423f1f){const _0x378471=_0xe85740,_0x55432c={'QYRPW':function(_0x2c1ca9){return _0x2c1ca9();},'vBugQ':'XXbNH','sbDds':_0x378471(0x8f),'iFWBM':function(_0x585b60,_0x202ccc,_0x3d891c){return _0x585b60(_0x202ccc,_0x3d891c);}};_0x55432c[_0x378471(0xd2)](isGitHubCI)?await writeToGitHubEnv(ENV_TOKEN,_0x423f1f):_0x55432c[_0x378471(0xa7)]===_0x55432c[_0x378471(0x86)]?_0x3d75fc(_0x2c621f):(await _0x55432c[_0x378471(0xb9)](mkdir,TOKEN_DIR,{'recursive':!![]}),await writeFile(TOKEN_PATH,_0x423f1f,{'mode':0x180}));}export async function getToken(){const _0x50467b=_0xe85740,_0x2097b6={'OEbzW':function(_0x5c09bb,_0x114b9e){return _0x5c09bb===_0x114b9e;},'IqHfO':_0x50467b(0xdb),'Zawvp':function(_0x2e43c8,_0x2b2c55,_0x21bc94){return _0x2e43c8(_0x2b2c55,_0x21bc94);},'DDowj':'utf-8','KPUrX':function(_0x17ab95){return _0x17ab95();},'BBvCf':function(_0x7d7736,_0x3cd47b){return _0x7d7736(_0x3cd47b);},'ZMIDE':function(_0x1ad47f){return _0x1ad47f();},'CVrXs':function(_0x2367d3,_0x38152e){return _0x2367d3===_0x38152e;},'cVbEj':_0x50467b(0xbb),'xQlxA':_0x50467b(0x99),'sJvep':_0x50467b(0xc5),'Petnq':function(_0x302467){return _0x302467();},'pcXBp':function(_0x256905,_0x285cce){return _0x256905 instanceof _0x285cce;},'ESzbK':function(_0x37ba3e,_0x5d281a){return _0x37ba3e+_0x5d281a;},'WSKhV':_0x50467b(0xd8)};if(process[_0x50467b(0xd7)][ENV_TOKEN])return _0x2097b6[_0x50467b(0xc8)](_0x50467b(0xdb),_0x2097b6[_0x50467b(0x9e)])?process[_0x50467b(0xd7)][ENV_TOKEN]:!![];if(process[_0x50467b(0xd7)][ENV_TOKEN_LEGACY])return process[_0x50467b(0xd7)][ENV_TOKEN_LEGACY];let _0x4546f8=null;try{_0x4546f8=(await _0x2097b6[_0x50467b(0xa1)](readFile,TOKEN_PATH,_0x2097b6[_0x50467b(0x89)]))[_0x50467b(0xb0)]()||null;}catch{const _0x4c3f4e=await _0x2097b6[_0x50467b(0xb2)](tryRefreshToken);return _0x4c3f4e;}if(!_0x4546f8)return null;const _0x1adffd=await _0x2097b6[_0x50467b(0x8d)](checkTokenValid,_0x4546f8);if(_0x1adffd)return _0x4546f8;const _0x47420c=await _0x2097b6[_0x50467b(0x8d)](tryPromoteRefreshToken,_0x4546f8);if(_0x47420c)return _0x47420c;const _0x19baca=await _0x2097b6[_0x50467b(0xd6)](tryRefreshToken);if(_0x19baca)return _0x19baca;const {getMcpAuthOrigin:_0x3c429e,mcpBootstrap:_0x2886d0}=await import(_0x50467b(0xbc)),_0x511e5c=await _0x2097b6[_0x50467b(0xb2)](_0x3c429e);if(_0x511e5c)try{if(_0x2097b6[_0x50467b(0xaa)](_0x2097b6[_0x50467b(0xa6)],_0x2097b6[_0x50467b(0x8a)])){if(_0x58c374){const _0x1d3b81=_0x2b72ec[_0x50467b(0xca)](_0x1cc475,arguments);return _0x41f140=null,_0x1d3b81;}}else{console[_0x50467b(0xdd)](_0x2097b6['sJvep']),await _0x2097b6[_0x50467b(0xd6)](_0x2886d0);const _0xb3d6ef=await _0x2097b6[_0x50467b(0x8b)](tryRefreshToken);if(_0xb3d6ef)return _0xb3d6ef;}}catch(_0x5f5276){const _0x4214d5=_0x2097b6[_0x50467b(0xb4)](_0x5f5276,Error)?_0x5f5276[_0x50467b(0xd9)]:_0x2097b6['BBvCf'](String,_0x5f5276);throw new Error(_0x2097b6[_0x50467b(0xa5)](_0x50467b(0xb7)+_0x4214d5+'\x0a',_0x2097b6[_0x50467b(0x96)]));}throw new Error(_0x50467b(0x85));}async function checkTokenValid(_0x41010b){const _0x3084c4=_0xe85740,_0x3beabe={'vITAq':function(_0xaec3c0,_0x539950,_0x26db35){return _0xaec3c0(_0x539950,_0x26db35);},'yPXjv':function(_0x1c7706,_0x4dcbbf){return _0x1c7706===_0x4dcbbf;},'Ewdkd':_0x3084c4(0x91),'ybSZs':'nmAaA','qYvLy':'./environment.js','COlDY':function(_0x61c6de){return _0x61c6de();},'Seniu':function(_0x4a5038,_0x1136ec,_0x4e0d84){return _0x4a5038(_0x1136ec,_0x4e0d84);},'zstOg':_0x3084c4(0xd1),'AByOF':function(_0x14c7c4,_0xd3e3ce){return _0x14c7c4(_0xd3e3ce);}},_0x4d1f5d=new AbortController(),_0x5688d5=_0x3beabe[_0x3084c4(0xbe)](setTimeout,()=>_0x4d1f5d[_0x3084c4(0x97)](),0x1388);try{if(_0x3beabe[_0x3084c4(0x9f)](_0x3beabe['Ewdkd'],_0x3beabe[_0x3084c4(0xa0)]))return!!_0xb3da0c[_0x3084c4(0xd7)]['GITHUB_ENV'];else{const {getApiBaseUrl:_0x483ca0}=await import(_0x3beabe[_0x3084c4(0x9d)]),_0x58b2f5=_0x3beabe['COlDY'](_0x483ca0),_0x5102c5=await _0x3beabe[_0x3084c4(0xac)](fetch,_0x58b2f5+_0x3084c4(0x9b),{'method':_0x3beabe[_0x3084c4(0xdc)],'headers':{'Authorization':_0x3084c4(0xcf)+_0x41010b},'signal':_0x4d1f5d[_0x3084c4(0xc0)]});return _0x5102c5['ok'];}}catch{return!![];}finally{_0x3beabe[_0x3084c4(0xc6)](clearTimeout,_0x5688d5);}}async function tryRefreshToken(){const _0x297039=_0xe85740,_0x41e472={'QUurL':_0x297039(0x94),'pOSad':function(_0x318e12){return _0x318e12();}},{refreshCliToken:_0x2942f8}=await import(_0x41e472[_0x297039(0x92)]);return _0x41e472[_0x297039(0xc3)](_0x2942f8);}async function tryPromoteRefreshToken(_0x16932b){const _0x2b77f2=_0xe85740,_0x205ede={'gyhQU':'./tokenRefresh.js','ptTKb':function(_0x42ba8b,_0x22b8a8,_0x374ec3){return _0x42ba8b(_0x22b8a8,_0x374ec3);}},{refreshPartnerCliToken:_0x3d54d6}=await import(_0x205ede[_0x2b77f2(0xd3)]);return _0x205ede[_0x2b77f2(0xae)](_0x3d54d6,_0x16932b,{'persistRefreshToken':!![]});}function _0x1924(){const _0xad612a=['Chrus2i','CMzHue4','DhjPBq','ntvbzxLQyMy','s1bvCLG','Dg9tDhjPBMC','CgnyqNa','y29UC3rYDwn0B3i','uufls2y','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','mNzPrwTNzW','AuzxqK0','Aw12Due','DwnUvMK','lI4VBwnWqM9VDhn0CMfWlMPZ','mJiWndiYvfjhu1vK','DKLuqxe','zxbbzhu','C2LNBMfS','ndG1nZmZnMvqy2Dcra','ELvHAvC','Ce9tywq','mtiXodq3CKvirKfK','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','quj5t0y','uNz2vM4','t0vIELC','mJq5oty5mhn2r0fpuW','yxbWBhK','DvrYBLm','CfjksMC','txjKruy','mZu5mZC5t0v4DLbI','qMvHCMvYia','q0z5vK0','r0vu','uvLsufC','z3LOuvu','mZGWmZiWt2HjuKH1','ndK0mZzqC2rbBKO','wK1jreu','zw52','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','BwvZC2fNzq','sfzWs2S','yxjnBK4','ENn0t2C','Bg9N','mtrPBMTrzLa','ww91CIbZzxnZAw9UigHHCYbLEhbPCMvKlIbqBgvHC2uGCNvUigbYyw5NzxiGBg9NAw5GihrVihjLlwf1DgHLBNrPy2f0zs4','C2jezhm','kcGOlISPkYKRksSK','C2vHCMnO','rerVD2O','EffSEee','ugv0BNe','uMXutKe','qKj2q2y','mtHMCK1dCK0','DuPABNK','uKfor0vsx0nmsv9ut0TftG','AKncr2K','uvv1CKW','CwXMyMW','lI90B2TLBLjLzNjLC2GUANm','rKv0DgS','v1nlAfy','ywjVCNq','DxrMltG','ugzuwfq','BvPqB3a','l2fWAs92ms9Ty3aVBwu','sw9xwfy','CvL2thK','sxfizK8','EvbyANy','EwjtwNm','wMf3DNa','EM5Urgm','CKjHz1C','uKfor0vsx01duf9ut0TftG','rvn6yKS','y1zIrwO','DKj1z1e','ufvUsg0','z1LPvwy','q1zYwhm','r0Lusfvcx0vovG','u2vUAxu','rvntrNG'];_0x1924=function(){return _0xad612a;};return _0x1924();}export async function deleteToken(){const _0x51be8f=_0xe85740,_0x5e0f76={'zUaiW':_0x51be8f(0x87),'oVgQR':function(_0x400f38,_0xa56533){return _0x400f38(_0xa56533);},'ESSFx':function(_0x21fcb3,_0x45045f){return _0x21fcb3!==_0x45045f;},'RvvVn':_0x51be8f(0xcc)};try{return await _0x5e0f76['oVgQR'](unlink,TOKEN_PATH),!![];}catch{return _0x5e0f76[_0x51be8f(0xad)](_0x5e0f76[_0x51be8f(0xc7)],_0x5e0f76['RvvVn'])?_0x21c3c9[_0x51be8f(0xb3)]()[_0x51be8f(0x88)](VpIllE[_0x51be8f(0xc2)])['toString']()[_0x51be8f(0xb5)](_0x637fe4)['search'](VpIllE[_0x51be8f(0xc2)]):![];}}export async function storeRefreshToken(_0x2639ae){const _0x48bea9=_0xe85740,_0x3633b3={'imvuA':function(_0x3c49c2,_0x5cec4a,_0x552971,_0xb0db11){return _0x3c49c2(_0x5cec4a,_0x552971,_0xb0db11);}};await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x3633b3[_0x48bea9(0xba)](writeFile,REFRESH_TOKEN_PATH,_0x2639ae,{'mode':0x180});}export async function getRefreshToken(){const _0x4be240=_0xe85740,_0x3bc262={'IoWXV':function(_0x14e841,_0x413856){return _0x14e841!==_0x413856;},'FEttk':'ujcWD','znnDc':_0x4be240(0x98)};try{if(_0x3bc262[_0x4be240(0x9c)](_0x3bc262[_0x4be240(0x95)],_0x3bc262[_0x4be240(0x95)]))return _0x20dc5b['env'][_0xc94390];else{const _0x45e110=await readFile(REFRESH_TOKEN_PATH,_0x3bc262[_0x4be240(0xa2)]);return _0x45e110[_0x4be240(0xb0)]()||null;}}catch{return null;}}export async function deleteRefreshToken(){const _0x593368={'ICCvJ':function(_0x40ca11,_0x483a19){return _0x40ca11(_0x483a19);}};try{return await _0x593368['ICCvJ'](unlink,REFRESH_TOKEN_PATH),!![];}catch{return![];}}export async function deleteAllCredentials(){const _0x43a105=_0xe85740,_0xc5b680={'qlfbl':function(_0x41b82b){return _0x41b82b();}};await deleteToken(),await _0xc5b680[_0x43a105(0x93)](deleteRefreshToken);}
|
|
1
|
+
const _0x10578f=_0x1c64;(function(_0x570923,_0x39b19e){const _0x32dc56=_0x1c64,_0xf4cf4b=_0x570923();while(!![]){try{const _0xa1a573=parseInt(_0x32dc56(0x17d))/0x1*(parseInt(_0x32dc56(0x156))/0x2)+-parseInt(_0x32dc56(0x162))/0x3+-parseInt(_0x32dc56(0x138))/0x4*(-parseInt(_0x32dc56(0x14f))/0x5)+parseInt(_0x32dc56(0x13c))/0x6+parseInt(_0x32dc56(0x172))/0x7+-parseInt(_0x32dc56(0x135))/0x8*(parseInt(_0x32dc56(0x155))/0x9)+-parseInt(_0x32dc56(0x17c))/0xa;if(_0xa1a573===_0x39b19e)break;else _0xf4cf4b['push'](_0xf4cf4b['shift']());}catch(_0x2ae107){_0xf4cf4b['push'](_0xf4cf4b['shift']());}}}(_0x776e,0x65bd7));const _0x48656f=(function(){const _0x3f9b87=_0x1c64,_0x2eb57c={'KdfzA':function(_0xf8f755,_0x384d92){return _0xf8f755===_0x384d92;},'EhBQM':_0x3f9b87(0x13e)};let _0x44a278=!![];return function(_0x209307,_0x1fcede){const _0x3e528b=_0x3f9b87;if(_0x2eb57c['KdfzA'](_0x3e528b(0x13e),_0x2eb57c['EhBQM'])){const _0x56fb6f=_0x44a278?function(){const _0x29bb13=_0x3e528b;if(_0x1fcede){if(_0x29bb13(0x164)===_0x29bb13(0x157)){const _0x4150c1=_0x464efd[_0x29bb13(0x15b)](_0x7755ba,arguments);return _0x3de997=null,_0x4150c1;}else{const _0x4b0451=_0x1fcede[_0x29bb13(0x15b)](_0x209307,arguments);return _0x1fcede=null,_0x4b0451;}}}:function(){};return _0x44a278=![],_0x56fb6f;}else return!!_0x2f0adf['env']['GITHUB_ENV'];};}()),_0x5ebc8a=_0x48656f(this,function(){const _0x42759c=_0x1c64,_0x179f46={'xnvwW':_0x42759c(0x17a)};return _0x5ebc8a[_0x42759c(0x13b)]()[_0x42759c(0x170)]('(((.+)+)+)+$')[_0x42759c(0x13b)]()[_0x42759c(0x175)](_0x5ebc8a)[_0x42759c(0x170)](_0x179f46['xnvwW']);});function _0x776e(){const _0x50245f=['sunqwvy','C2LNBMfS','rg9TzvG','uKfor0vsx01duf9ut0TftG','owvhy3jtDW','nJiZoeLvyujwBq','thDMvNi','txfRD2e','q2v3thq','vejTCMi','yxbWBhK','zhzMCKm','BNjTtuq','CK5bsM8','Axrqyvu','sKvREeC','s1vYrNC','nZmWmZeXD1fYverp','CMvMCMvZAc50Ehq','A2LZv2u','wunStM4','CuPlANq','lI9LBNzPCM9UBwvUDc5QCW','BMDtvge','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','C3vyD2K','D3Hcquu','zhLhuNK','u1zbruq','A0TUC3O','vMrnvNu','C2vHCMnO','qLr6Ae0','ntm3nZyXEKLct2rQ','Bg9N','AeX4rfq','y29UC3rYDwn0B3i','zw52','ruzUBwO','tevVBwe','qMXuyNy','kcGOlISPkYKRksSK','DuHvu28','ndi5mtmYmhLWAxrguW','mJi5BLD4seX3','shfnDLq','ugXNzxq','wxP0AM0','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','r0Lusfvcx0vovG','ywjVCNq','DKjZzNm','y2XPlNr4Da','B2PZzM4','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','zKrXzLu','EK9KqwO','mJi0ndiXnM1jyuHXAa','rNDtuxC','zefmrMG','mJyWtLDnweXT','quDgDuC','vvftshm','Dg9tDhjPBMC','mtK4otmYnhb3ve5WAW','qMvHCMvYia','z3DQC2K','zfzpzhq','DLnoDvC','ugfhBhm','wK9AAfq','Dg5YB0C','wwTiqxi','seHcvxC','t1zzyxa','DxrMltG','whbMC3y','lI4VBwnWqM9VDhn0CMfWlMPZ','BM9Iy0K','sKLrzLm','DhjPBq','lI90B2TLBLjLzNjLC2GUANm','z0HOqNG','mtKWmtvJuLjOt1y','l2fWAs92ms9Ty3aVBwu'];_0x776e=function(){return _0x50245f;};return _0x776e();}_0x5ebc8a();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN='RANGER_CLI_TOKEN',ENV_TOKEN_LEGACY=_0x10578f(0x154),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x10578f(0x130)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x10578f(0x163));function isGitHubCI(){const _0x2e83bf=_0x10578f;return!!process[_0x2e83bf(0x176)][_0x2e83bf(0x12d)];}async function writeToGitHubEnv(_0x536fde,_0xc1d0af){const _0x51994e=_0x10578f,_0xf7793e={'nUwhL':function(_0x16c784,_0x166581){return _0x16c784===_0x166581;},'YClNn':_0x51994e(0x136)},_0x149616=process[_0x51994e(0x176)]['GITHUB_ENV'];if(_0x149616){if(_0xf7793e['nUwhL'](_0xf7793e[_0x51994e(0x165)],'FwSQw'))await appendFile(_0x149616,_0x536fde+'='+_0xc1d0af+'\x0a');else{const _0x2c8c75=_0x1a2bb6?function(){const _0x3b11a9=_0x51994e;if(_0x3d3075){const _0x472546=_0x2e4c6a[_0x3b11a9(0x15b)](_0x4e834a,arguments);return _0x76d565=null,_0x472546;}}:function(){};return _0x2b40e2=![],_0x2c8c75;}}}export async function storeToken(_0x36099f){const _0x59242e=_0x10578f,_0x3d6fb8={'vBsfs':function(_0x270620,_0x31699b){return _0x270620 instanceof _0x31699b;},'vSNuW':function(_0x38ac26,_0x1128b9){return _0x38ac26(_0x1128b9);},'uHUSo':function(_0x2c3022,_0x11eef4){return _0x2c3022+_0x11eef4;},'TBmrb':function(_0xcff3a9){return _0xcff3a9();},'dvfrC':function(_0xb8c89e,_0x57b614){return _0xb8c89e===_0x57b614;},'Xpfsv':_0x59242e(0x13a),'hLxDT':'JsnYH','itPaU':'Hhyls','CewLt':function(_0x2011db,_0x1f4d27,_0x11c9c8){return _0x2011db(_0x1f4d27,_0x11c9c8);},'ICPYV':function(_0x21054b,_0x202c69,_0x153f92,_0x41ee39){return _0x21054b(_0x202c69,_0x153f92,_0x41ee39);}};if(_0x3d6fb8[_0x59242e(0x15a)](isGitHubCI)){if(_0x3d6fb8[_0x59242e(0x15c)](_0x3d6fb8[_0x59242e(0x148)],_0x3d6fb8[_0x59242e(0x174)]))return _0x2831ca['env'][_0x584a27];else await writeToGitHubEnv(ENV_TOKEN,_0x36099f);}else{if(_0x3d6fb8[_0x59242e(0x15c)](_0x3d6fb8[_0x59242e(0x15f)],_0x3d6fb8[_0x59242e(0x15f)]))await _0x3d6fb8[_0x59242e(0x159)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x3d6fb8[_0x59242e(0x151)](writeFile,TOKEN_PATH,_0x36099f,{'mode':0x180});else{const _0x16a1aa=_0x3d6fb8[_0x59242e(0x12f)](_0x4aaaa2,_0x3020cf)?_0x5d1a9b['message']:_0x3d6fb8[_0x59242e(0x140)](_0x4ac679,_0x12ac06);throw new _0x21c7e8(_0x3d6fb8[_0x59242e(0x17b)]('MCP\x20re-authentication\x20failed:\x20'+_0x16a1aa+'\x0a',_0x59242e(0x12c)));}}}export async function getToken(){const _0x1c182f=_0x10578f,_0x338591={'tnroG':_0x1c182f(0x17a),'gHhBx':function(_0x39ce74,_0x47c0cb){return _0x39ce74(_0x47c0cb);},'Mqkwa':function(_0x1b9fa4,_0x16fc6f){return _0x1b9fa4===_0x16fc6f;},'zOdAj':_0x1c182f(0x168),'ojsfn':_0x1c182f(0x137),'DomeX':'bbFUm','IEepG':function(_0x330cdf,_0x1166ac,_0x93a78e){return _0x330cdf(_0x1166ac,_0x93a78e);},'BOCZi':_0x1c182f(0x147),'Yztjm':function(_0x250663){return _0x250663();},'dyGRy':_0x1c182f(0x149),'suXwi':function(_0x554e04){return _0x554e04();},'KUrFw':_0x1c182f(0x16f),'qJKjt':_0x1c182f(0x16d),'kKnsz':_0x1c182f(0x169),'pJJuh':function(_0x28124c){return _0x28124c();},'nobcI':function(_0x53f655){return _0x53f655();},'YkHAr':'PaxFO','Plget':function(_0x23b41b,_0x4efec8){return _0x23b41b instanceof _0x4efec8;},'JEkxG':'Your\x20session\x20has\x20expired.\x20Please\x20run\x20`ranger\x20login`\x20to\x20re-authenticate.'};if(process[_0x1c182f(0x176)][ENV_TOKEN])return process[_0x1c182f(0x176)][ENV_TOKEN];if(process[_0x1c182f(0x176)][ENV_TOKEN_LEGACY])return _0x338591[_0x1c182f(0x158)](_0x1c182f(0x15e),_0x338591[_0x1c182f(0x134)])?_0x120bfb[_0x1c182f(0x13b)]()[_0x1c182f(0x170)](cJdrGy[_0x1c182f(0x143)])['toString']()[_0x1c182f(0x175)](_0x1a7873)[_0x1c182f(0x170)](_0x1c182f(0x17a)):process[_0x1c182f(0x176)][ENV_TOKEN_LEGACY];let _0x4dcc89=null;try{_0x338591[_0x1c182f(0x131)]!==_0x338591[_0x1c182f(0x153)]?_0x4dcc89=(await _0x338591['IEepG'](readFile,TOKEN_PATH,_0x338591['BOCZi']))['trim']()||null:_0x338591[_0x1c182f(0x14e)](_0x52594c,_0x56d0ee);}catch{const _0x20a8f3=await _0x338591[_0x1c182f(0x12b)](tryRefreshToken);return _0x20a8f3;}if(!_0x4dcc89)return null;const _0x1ba153=await checkTokenValid(_0x4dcc89);if(_0x1ba153)return _0x4dcc89;const _0x59e05c=await tryPromoteRefreshToken(_0x4dcc89);if(_0x59e05c)return _0x59e05c;const _0x3fa2a5=await _0x338591[_0x1c182f(0x12b)](tryRefreshToken);if(_0x3fa2a5)return _0x3fa2a5;const {getMcpAuthOrigin:_0x5845d5,mcpBootstrap:_0x278eb4}=await import(_0x338591[_0x1c182f(0x16c)]),_0x186ba3=await _0x338591[_0x1c182f(0x16a)](_0x5845d5);if(_0x186ba3){if(_0x338591[_0x1c182f(0x158)](_0x338591['KUrFw'],_0x338591[_0x1c182f(0x161)]))try{if(_0x338591[_0x1c182f(0x158)](_0x1c182f(0x16d),_0x338591[_0x1c182f(0x166)])){console[_0x1c182f(0x173)](_0x338591[_0x1c182f(0x16e)]),await _0x338591['pJJuh'](_0x278eb4);const _0x24ac79=await _0x338591[_0x1c182f(0x14a)](tryRefreshToken);if(_0x24ac79)return _0x24ac79;}else{if(_0x249d31){const _0x272276=_0x527536[_0x1c182f(0x15b)](_0x33c4d8,arguments);return _0xe6dbc4=null,_0x272276;}}}catch(_0x5893b9){if(_0x338591['Mqkwa'](_0x338591['YkHAr'],_0x338591[_0x1c182f(0x144)])){const _0x108aeb=_0x338591[_0x1c182f(0x17f)](_0x5893b9,Error)?_0x5893b9['message']:String(_0x5893b9);throw new Error(_0x1c182f(0x132)+_0x108aeb+'\x0a'+_0x1c182f(0x12c));}else return![];}else return _0x57b77b[_0x1c182f(0x176)][_0x1fc476];}throw new Error(_0x338591[_0x1c182f(0x160)]);}async function checkTokenValid(_0x1c02cc){const _0x7f48c4=_0x10578f,_0x277a7b={'WkkXV':function(_0x424890,_0x5741de,_0x3a13b4){return _0x424890(_0x5741de,_0x3a13b4);},'LEoma':function(_0x2b81aa){return _0x2b81aa();},'HqMvT':'GET','CARcG':function(_0x5e2f5e,_0x1ad3b6){return _0x5e2f5e===_0x1ad3b6;},'rnhWZ':_0x7f48c4(0x16b),'fDqfU':_0x7f48c4(0x14b),'HHBUw':_0x7f48c4(0x177),'AGFuG':function(_0x296422,_0x1a85bc){return _0x296422(_0x1a85bc);}},_0x96c7d2=new AbortController(),_0x435604=_0x277a7b['WkkXV'](setTimeout,()=>_0x96c7d2[_0x7f48c4(0x12e)](),0x1388);try{const {getApiBaseUrl:_0x1ca389}=await import(_0x7f48c4(0x167)),_0x354a66=_0x277a7b[_0x7f48c4(0x178)](_0x1ca389),_0x5c2a98=await fetch(_0x354a66+_0x7f48c4(0x150),{'method':_0x277a7b[_0x7f48c4(0x17e)],'headers':{'Authorization':_0x7f48c4(0x13d)+_0x1c02cc},'signal':_0x96c7d2[_0x7f48c4(0x152)]});return _0x5c2a98['ok'];}catch{return _0x277a7b['CARcG'](_0x277a7b['rnhWZ'],_0x277a7b['rnhWZ'])?!![]:!![];}finally{if(_0x277a7b['CARcG'](_0x277a7b[_0x7f48c4(0x133)],_0x277a7b[_0x7f48c4(0x145)]))return![];else _0x277a7b[_0x7f48c4(0x139)](clearTimeout,_0x435604);}}async function tryRefreshToken(){const _0x3bf85a=_0x10578f,_0x57f93b={'OVYap':_0x3bf85a(0x14d),'BTzhM':function(_0x3b1237){return _0x3b1237();}},{refreshCliToken:_0x24360a}=await import(_0x57f93b[_0x3bf85a(0x146)]);return _0x57f93b[_0x3bf85a(0x171)](_0x24360a);}async function tryPromoteRefreshToken(_0x531df5){const _0x481a91=_0x10578f,_0x3f29e9={'pXvEH':_0x481a91(0x14d)},{refreshPartnerCliToken:_0x571c19}=await import(_0x3f29e9['pXvEH']);return _0x571c19(_0x531df5,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x588d80=_0x10578f,_0x2c32f3={'ZOZhT':function(_0xc6ed95,_0x585b24){return _0xc6ed95(_0x585b24);},'BlTbv':'lCtjz'};try{return await _0x2c32f3[_0x588d80(0x142)](unlink,TOKEN_PATH),!![];}catch{return _0x2c32f3[_0x588d80(0x179)]!==_0x2c32f3[_0x588d80(0x179)]?null:![];}}function _0x1c64(_0x3dd3e3,_0x34a156){_0x3dd3e3=_0x3dd3e3-0x12b;const _0x1eb36f=_0x776e();let _0x5ebc8a=_0x1eb36f[_0x3dd3e3];if(_0x1c64['QEFHlH']===undefined){var _0x48656f=function(_0x40d222){const _0x3caf69='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4c0219='',_0x203b0c='',_0x2e406f=_0x4c0219+_0x48656f;for(let _0x3d770f=0x0,_0x1ce152,_0x130216,_0x256852=0x0;_0x130216=_0x40d222['charAt'](_0x256852++);~_0x130216&&(_0x1ce152=_0x3d770f%0x4?_0x1ce152*0x40+_0x130216:_0x130216,_0x3d770f++%0x4)?_0x4c0219+=_0x2e406f['charCodeAt'](_0x256852+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x1ce152>>(-0x2*_0x3d770f&0x6)):_0x3d770f:0x0){_0x130216=_0x3caf69['indexOf'](_0x130216);}for(let _0x529521=0x0,_0x1f1dd8=_0x4c0219['length'];_0x529521<_0x1f1dd8;_0x529521++){_0x203b0c+='%'+('00'+_0x4c0219['charCodeAt'](_0x529521)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x203b0c);};_0x1c64['uluVdz']=_0x48656f,_0x1c64['kMFKYj']={},_0x1c64['QEFHlH']=!![];}const _0x776e59=_0x1eb36f[0x0],_0x1c644a=_0x3dd3e3+_0x776e59,_0x48cfd8=_0x1c64['kMFKYj'][_0x1c644a];if(!_0x48cfd8){const _0x1a2bb6=function(_0x520a45){this['ZZVcKS']=_0x520a45,this['PGlKYj']=[0x1,0x0,0x0],this['sIFhMA']=function(){return'newState';},this['nmpxdE']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['Zpngex']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x1a2bb6['prototype']['paJttu']=function(){const _0x38b32c=new RegExp(this['nmpxdE']+this['Zpngex']),_0x83732=_0x38b32c['test'](this['sIFhMA']['toString']())?--this['PGlKYj'][0x1]:--this['PGlKYj'][0x0];return this['facFxd'](_0x83732);},_0x1a2bb6['prototype']['facFxd']=function(_0x4be717){if(!Boolean(~_0x4be717))return _0x4be717;return this['OpLMrf'](this['ZZVcKS']);},_0x1a2bb6['prototype']['OpLMrf']=function(_0x2b40e2){for(let _0x3d3075=0x0,_0x1c96c3=this['PGlKYj']['length'];_0x3d3075<_0x1c96c3;_0x3d3075++){this['PGlKYj']['push'](Math['round'](Math['random']())),_0x1c96c3=this['PGlKYj']['length'];}return _0x2b40e2(this['PGlKYj'][0x0]);},new _0x1a2bb6(_0x1c64)['paJttu'](),_0x5ebc8a=_0x1c64['uluVdz'](_0x5ebc8a),_0x1c64['kMFKYj'][_0x1c644a]=_0x5ebc8a;}else _0x5ebc8a=_0x48cfd8;return _0x5ebc8a;}export async function storeRefreshToken(_0xa0fca4){const _0x3edb36={'oFdZj':function(_0x228ca1,_0x1c82b5,_0x231175,_0x19ac53){return _0x228ca1(_0x1c82b5,_0x231175,_0x19ac53);}};await mkdir(TOKEN_DIR,{'recursive':!![]}),await _0x3edb36['oFdZj'](writeFile,REFRESH_TOKEN_PATH,_0xa0fca4,{'mode':0x180});}export async function getRefreshToken(){const _0x3e0adc=_0x10578f,_0x313eae={'PaGls':function(_0x413ed8,_0x37f32a,_0x116dee){return _0x413ed8(_0x37f32a,_0x116dee);},'DoNbX':_0x3e0adc(0x147)};try{const _0x293044=await _0x313eae[_0x3e0adc(0x141)](readFile,REFRESH_TOKEN_PATH,_0x313eae['DoNbX']);return _0x293044[_0x3e0adc(0x14c)]()||null;}catch{return null;}}export async function deleteRefreshToken(){const _0x1f38f3=_0x10578f,_0x28a4d7={'dVOdt':function(_0x742470,_0x2330a5){return _0x742470(_0x2330a5);}};try{return await _0x28a4d7[_0x1f38f3(0x13f)](unlink,REFRESH_TOKEN_PATH),!![];}catch{return![];}}export async function deleteAllCredentials(){const _0x15116c=_0x10578f,_0x3b5c83={'nrmMD':function(_0x4ccc83){return _0x4ccc83();}};await _0x3b5c83[_0x15116c(0x15d)](deleteToken),await _0x3b5c83[_0x15116c(0x15d)](deleteRefreshToken);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5a0682=_0x9f3d;(function(_0x118030,_0x55e9fb){const _0x54dbbb=_0x9f3d,_0x401536=_0x118030();while(!![]){try{const _0x5a674e=parseInt(_0x54dbbb(0xf7))/0x1*(-parseInt(_0x54dbbb(0xf2))/0x2)+-parseInt(_0x54dbbb(0xf4))/0x3*(parseInt(_0x54dbbb(0x102))/0x4)+-parseInt(_0x54dbbb(0x109))/0x5*(-parseInt(_0x54dbbb(0x104))/0x6)+-parseInt(_0x54dbbb(0x108))/0x7+-parseInt(_0x54dbbb(0x10d))/0x8+-parseInt(_0x54dbbb(0x105))/0x9+-parseInt(_0x54dbbb(0x10e))/0xa*(-parseInt(_0x54dbbb(0x10c))/0xb);if(_0x5a674e===_0x55e9fb)break;else _0x401536['push'](_0x401536['shift']());}catch(_0x3d6af6){_0x401536['push'](_0x401536['shift']());}}}(_0x2fc0,0xe5bea));function _0x2fc0(){const _0x6920f2=['MUBpo','write','alWXd','startsWith','Ocekn','setup-ci','⚠\x20\x20Legacy\x20Ranger\x20paths\x20detected\x20(read-only):','active-profile.txt','map','24UijCvW','\x20\x20\x20as\x20a\x20fallback.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:','6vNYbBE','11545938ydPFBg','\x20\x20\x20\x20\x20','\x20\x20\x20Delete\x20these\x20paths\x20after\x20you\x20have\x20re-auth-ed.','2193387gNtdpK','6035020EyCQsw','join','ttlYg','2486tASokl','393232hSzwBp','135770wPHiAg','stderr','1681298sKWASR','length','424173CTBJTN','THSMO','start','1VJUtkC','slice'];_0x2fc0=function(){return _0x6920f2;};return _0x2fc0();}import{existsSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function detectLegacyPaths(){const _0x5c63fa=_0x9f3d,_0x35fe60={'etCfk':function(_0x4d9997){return _0x4d9997();},'ZqQmQ':function(_0xde0e93,_0x2ea3ab,_0xb7740c){return _0xde0e93(_0x2ea3ab,_0xb7740c);},'YHALn':function(_0x27b899,_0x237d93,_0x3f3bed){return _0x27b899(_0x237d93,_0x3f3bed);},'Ocekn':function(_0x12a652,_0x15db07,_0x530a85){return _0x12a652(_0x15db07,_0x530a85);},'MUBpo':_0x5c63fa(0x100)},_0x537c44=_0x35fe60['etCfk'](getRangerDir),_0x3fee68=getRangerHomeDir();return[_0x35fe60['ZqQmQ'](join,_0x537c44,'local'),join(_0x537c44,'ci'),_0x35fe60['YHALn'](join,_0x3fee68,'local'),_0x35fe60[_0x5c63fa(0xfd)](join,_0x537c44,_0x35fe60[_0x5c63fa(0xf9)])]['filter'](_0x10e128=>existsSync(_0x10e128));}function flagFilePath(){const _0x5a13b7=_0x9f3d,_0x39462b={'ryQYs':function(_0x4f033e,_0x7d6c9f,_0x453b95){return _0x4f033e(_0x7d6c9f,_0x453b95);}},_0x3c87aa=new Date()['toISOString']()[_0x5a13b7(0xf8)](0x0,0xa);return _0x39462b['ryQYs'](join,getRangerHomeDir(),'.legacy-warning-'+_0x3c87aa);}export function showLegacyDeprecationWarning(){const _0x2feee4=_0x9f3d,_0x23e58b={'ttlYg':function(_0x5cb323){return _0x5cb323();},'XQCTH':function(_0x2f17c9,_0x5cbd3d){return _0x2f17c9===_0x5cbd3d;},'rkzdd':function(_0x53bedb){return _0x53bedb();},'POJsF':_0x2feee4(0xff),'alWXd':'\x20\x20\x20\x20\x20https://docs.ranger.net/main/concepts/profiles','tOlzQ':function(_0x4f5524,_0x3abd8d){return _0x4f5524+_0x3abd8d;}},_0x1ed81d=_0x23e58b['ttlYg'](detectLegacyPaths);if(_0x23e58b['XQCTH'](_0x1ed81d[_0x2feee4(0xf3)],0x0))return;const _0x114d0e=_0x23e58b['rkzdd'](flagFilePath);if(existsSync(_0x114d0e))return;const _0x2342a5=['',_0x23e58b['POJsF'],..._0x1ed81d[_0x2feee4(0x101)](_0x4360b0=>_0x2feee4(0x106)+_0x4360b0),'','\x20\x20\x20Ranger\x20no\x20longer\x20writes\x20to\x20these\x20paths.\x20Existing\x20sessions\x20there\x20still\x20work',_0x2feee4(0x103),'','\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20<name>','','\x20\x20\x20For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:',_0x23e58b[_0x2feee4(0xfb)],'',_0x2feee4(0x107),''];process[_0x2feee4(0x10f)][_0x2feee4(0xfa)](_0x23e58b['tOlzQ'](_0x2342a5[_0x2feee4(0x10a)]('\x0a'),'\x0a'));try{mkdirSync(_0x23e58b[_0x2feee4(0x10b)](getRangerHomeDir),{'recursive':!![]}),writeFileSync(_0x114d0e,'',{'mode':0x180});}catch{}}function _0x9f3d(_0x533bc6,_0x39ce9f){_0x533bc6=_0x533bc6-0xf2;const _0x2fc019=_0x2fc0();let _0x9f3db2=_0x2fc019[_0x533bc6];return _0x9f3db2;}const PROFILE_TOUCHING_COMMANDS=new Set(['go','verify','verify-feature','profile','profiles','setup',_0x5a0682(0xfe),_0x5a0682(0xf6),'use']);export function shouldShowLegacyWarning(_0x35fedd){const _0xe95d7f=_0x5a0682,_0x219a86={'DdVWv':function(_0x24e711,_0x180e4c){return _0x24e711<_0x180e4c;},'tYquQ':function(_0x55dcaf,_0x4fee92){return _0x55dcaf===_0x4fee92;},'THSMO':'--help'},_0x7db5c7=_0x35fedd[0x2];if(!_0x7db5c7)return![];if(_0x7db5c7[_0xe95d7f(0xfc)]('-'))return![];if(!PROFILE_TOUCHING_COMMANDS['has'](_0x7db5c7))return![];for(let _0x17a2c5=0x3;_0x219a86['DdVWv'](_0x17a2c5,_0x35fedd[_0xe95d7f(0xf3)]);_0x17a2c5++){if(_0x219a86['tYquQ'](_0x35fedd[_0x17a2c5],_0x219a86[_0xe95d7f(0xf5)])||_0x35fedd[_0x17a2c5]==='-h')return![];}return!![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3f76c3,_0x362524){const _0x272920=_0x1eba,_0x12cf27=_0x3f76c3();while(!![]){try{const _0x149d5c=-parseInt(_0x272920(0xf8))/0x1+parseInt(_0x272920(0xf3))/0x2+-parseInt(_0x272920(0xea))/0x3+parseInt(_0x272920(0xf5))/0x4*(-parseInt(_0x272920(0xeb))/0x5)+parseInt(_0x272920(0xf2))/0x6*(parseInt(_0x272920(0xe8))/0x7)+parseInt(_0x272920(0xd7))/0x8*(-parseInt(_0x272920(0xe9))/0x9)+-parseInt(_0x272920(0xef))/0xa;if(_0x149d5c===_0x362524)break;else _0x12cf27['push'](_0x12cf27['shift']());}catch(_0x396195){_0x12cf27['push'](_0x12cf27['shift']());}}}(_0x52c4,0x1f641));const _0x58fb6a=(function(){const _0x25a07c=_0x1eba,_0x412291={'XdnHL':_0x25a07c(0xdd)};let _0x5f0415=!![];return function(_0x51a60e,_0x4a212e){const _0x2245dc=_0x5f0415?function(){const _0x2f93d7=_0x1eba;if(_0x412291['XdnHL']!==_0x412291[_0x2f93d7(0xda)]){if(_0x3571ea){const _0x3ef312=_0x1b75ce[_0x2f93d7(0xf0)](_0x296214,arguments);return _0x16d381=null,_0x3ef312;}}else{if(_0x4a212e){const _0x267ae3=_0x4a212e[_0x2f93d7(0xf0)](_0x51a60e,arguments);return _0x4a212e=null,_0x267ae3;}}}:function(){};return _0x5f0415=![],_0x2245dc;};}()),_0x50e98d=_0x58fb6a(this,function(){const _0x57e793=_0x1eba,_0x143222={'vmGdu':'(((.+)+)+)+$'};return _0x50e98d[_0x57e793(0xf9)]()[_0x57e793(0xe7)](_0x143222[_0x57e793(0xe5)])[_0x57e793(0xf9)]()['constructor'](_0x50e98d)[_0x57e793(0xe7)](_0x143222[_0x57e793(0xe5)]);});_0x50e98d();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';export async function logLocalAgentInstallation(_0xdcb4b2,_0x2c0f1e,_0x222124){const _0x191670=_0x1eba,_0x297372={'POyfO':_0x191670(0xee),'rawSn':function(_0x18420d){return _0x18420d();},'OmYvT':function(_0x97acc7,_0x295b3b){return _0x97acc7!==_0x295b3b;},'amCLM':_0x191670(0xe2),'xDjsC':_0x191670(0xed),'rcCER':function(_0x3bcf15,_0x170826,_0x80395d){return _0x3bcf15(_0x170826,_0x80395d);},'XOucQ':_0x191670(0xf4),'hiNmu':_0x191670(0xde),'mFTSA':function(_0x4e3a3b,_0x5f389c,_0x572e86){return _0x4e3a3b(_0x5f389c,_0x572e86);},'Tnvvw':_0x191670(0xec),'anfgC':function(_0xcf5bf5,_0x1ab3a7){return _0xcf5bf5(_0x1ab3a7);}},_0x3ca65f=await _0x297372[_0x191670(0xe1)](getToken);if(!_0x3ca65f){if(_0x297372['OmYvT'](_0x297372[_0x191670(0xdf)],_0x297372[_0x191670(0xf6)]))return;else{const _0x14ec79=_0x5ea8e7?function(){if(_0x7392d4){const _0x118f89=_0x17e2f7['apply'](_0x339d06,arguments);return _0x1aa1a4=null,_0x118f89;}}:function(){};return _0x363c55=![],_0x14ec79;}}const _0x36b887=getApiBaseUrl(),_0x3dd5f2=new AbortController(),_0x3ed578=_0x297372['rcCER'](setTimeout,()=>_0x3dd5f2[_0x191670(0xdb)](),0x1388);let _0x347dc5;try{if(_0x297372[_0x191670(0xe4)]!==_0x297372[_0x191670(0xd9)])_0x347dc5=await _0x297372['mFTSA'](fetch,_0x36b887+_0x191670(0xfb),{'method':_0x191670(0xf7),'headers':{'Authorization':'Bearer\x20'+_0x3ca65f,'Content-Type':_0x297372[_0x191670(0xd6)]},'body':JSON[_0x191670(0xd8)]({'skillName':_0xdcb4b2,'cliVersion':_0x222124,'metadata':_0x2c0f1e}),'signal':_0x3dd5f2[_0x191670(0xdc)]});else return _0x2a7d3d[_0x191670(0xf9)]()[_0x191670(0xe7)](SdiOXy[_0x191670(0xfa)])[_0x191670(0xf9)]()[_0x191670(0xe0)](_0x287d9b)[_0x191670(0xe7)](SdiOXy[_0x191670(0xfa)]);}finally{_0x297372[_0x191670(0xe3)](clearTimeout,_0x3ed578);}if(!_0x347dc5['ok']){const _0x21ecd7=await _0x347dc5[_0x191670(0xe6)]();console[_0x191670(0xd5)](_0x191670(0xf1)+_0x21ecd7);}}function _0x1eba(_0x22ab8f,_0x3a5bfa){_0x22ab8f=_0x22ab8f-0xd5;const _0x21df54=_0x52c4();let _0x50e98d=_0x21df54[_0x22ab8f];if(_0x1eba['zUWynj']===undefined){var _0x58fb6a=function(_0xd38338){const _0x59105b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3bd287='',_0x475cb3='',_0x4ccdb7=_0x3bd287+_0x58fb6a;for(let _0x323630=0x0,_0x324e0c,_0x2c0907,_0x399ed9=0x0;_0x2c0907=_0xd38338['charAt'](_0x399ed9++);~_0x2c0907&&(_0x324e0c=_0x323630%0x4?_0x324e0c*0x40+_0x2c0907:_0x2c0907,_0x323630++%0x4)?_0x3bd287+=_0x4ccdb7['charCodeAt'](_0x399ed9+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x324e0c>>(-0x2*_0x323630&0x6)):_0x323630:0x0){_0x2c0907=_0x59105b['indexOf'](_0x2c0907);}for(let _0x5ad143=0x0,_0x599eb5=_0x3bd287['length'];_0x5ad143<_0x599eb5;_0x5ad143++){_0x475cb3+='%'+('00'+_0x3bd287['charCodeAt'](_0x5ad143)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x475cb3);};_0x1eba['rppjix']=_0x58fb6a,_0x1eba['AjrmPu']={},_0x1eba['zUWynj']=!![];}const _0x52c4ce=_0x21df54[0x0],_0x1ebad4=_0x22ab8f+_0x52c4ce,_0x2802c9=_0x1eba['AjrmPu'][_0x1ebad4];if(!_0x2802c9){const _0x5ea8e7=function(_0x574066){this['wIBFST']=_0x574066,this['sqfClJ']=[0x1,0x0,0x0],this['yFuoUb']=function(){return'newState';},this['bWqbfX']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['bgryJl']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x5ea8e7['prototype']['npFXFR']=function(){const _0x4de68b=new RegExp(this['bWqbfX']+this['bgryJl']),_0x274768=_0x4de68b['test'](this['yFuoUb']['toString']())?--this['sqfClJ'][0x1]:--this['sqfClJ'][0x0];return this['VOWfBe'](_0x274768);},_0x5ea8e7['prototype']['VOWfBe']=function(_0x2ba013){if(!Boolean(~_0x2ba013))return _0x2ba013;return this['ONqkgJ'](this['wIBFST']);},_0x5ea8e7['prototype']['ONqkgJ']=function(_0x363c55){for(let _0x7392d4=0x0,_0x5ce555=this['sqfClJ']['length'];_0x7392d4<_0x5ce555;_0x7392d4++){this['sqfClJ']['push'](Math['round'](Math['random']())),_0x5ce555=this['sqfClJ']['length'];}return _0x363c55(this['sqfClJ'][0x0]);},new _0x5ea8e7(_0x1eba)['npFXFR'](),_0x50e98d=_0x1eba['rppjix'](_0x50e98d),_0x1eba['AjrmPu'][_0x1ebad4]=_0x50e98d;}else _0x50e98d=_0x2802c9;return _0x50e98d;}function _0x52c4(){const _0xd96ae8=['mtyYmtiZDwHhsfnW','odi1rujXCuTf','yxbWBgLJyxrPB24VANnVBG','wNbXrxu','kcGOlISPkYKRksSK','mtm4ntGYmffzyMHoDW','yxbWBhK','rMfPBgvKihrVigXVzYbZA2LSBcbPBNn0ywXSyxrPB246ia','mJm0vgnpDxnq','mZqZndyWuNHkExbc','y0Xdsuy','mZG4whH3rhvh','EerQC0m','ue9tva','ndK1ntnhv1fgz0W','Dg9tDhjPBMC','ue95zK8','l2fWAs92ms9Ty3aVBg9JywWTywDLBNqTAw5ZDgfSBgf0Aw9UCW','zxjYB3i','vg52DNC','oda0ndbJshLbBe4','C3rYAw5NAwz5','AgLoBxu','wgrUseW','ywjVCNq','C2LNBMfS','CwfNrK8','DKPUufe','yw1dte0','y29UC3rYDwn0B3i','CMf3u24','uKXcDLK','yw5Mz0m','we91y1e','DM1hzhu','Dgv4Da','C2vHCMnO','ndqWmdLHAK5dyNq','mJDSBwfOrgO'];_0x52c4=function(){return _0xd96ae8;};return _0x52c4();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x36312f,_0x4ccb40){const _0x748b0a=_0x47c7,_0x136e6d=_0x36312f();while(!![]){try{const _0x3b7d22=parseInt(_0x748b0a(0x14e))/0x1*(-parseInt(_0x748b0a(0x14a))/0x2)+-parseInt(_0x748b0a(0x149))/0x3*(parseInt(_0x748b0a(0x153))/0x4)+parseInt(_0x748b0a(0x157))/0x5+parseInt(_0x748b0a(0x148))/0x6*(-parseInt(_0x748b0a(0x156))/0x7)+-parseInt(_0x748b0a(0x150))/0x8+-parseInt(_0x748b0a(0x155))/0x9*(-parseInt(_0x748b0a(0x14b))/0xa)+parseInt(_0x748b0a(0x152))/0xb;if(_0x3b7d22===_0x4ccb40)break;else _0x136e6d['push'](_0x136e6d['shift']());}catch(_0x530b7b){_0x136e6d['push'](_0x136e6d['shift']());}}}(_0x2a75,0xbf150));function originIdentity(_0x26ac19){const _0xc9e011=_0x47c7;try{const _0x495814=new URL(_0x26ac19);return _0x495814[_0xc9e011(0x14c)]+'//'+_0x495814[_0xc9e011(0x154)];}catch{return undefined;}}function _0x2a75(){const _0x4d7982=['3510fIaojE','protocol','environments','14NaXfAF','defaultEnvironmentKey','2726952NHLjOR','domains','8520435MpZTSq','4530620mIjbqV','host','23823SFmdbq','235991kxpxjA','4534275LBaFjq','6JfhhOZ','3tTXZeF','45804caAKzI'];_0x2a75=function(){return _0x4d7982;};return _0x2a75();}function _0x47c7(_0xdbeb2a,_0x16b2d5){_0xdbeb2a=_0xdbeb2a-0x148;const _0x2a753a=_0x2a75();let _0x47c7b5=_0x2a753a[_0xdbeb2a];return _0x47c7b5;}export function matchAuthEnvironment(_0x379ae3,_0x40e1be){const _0xc6bd3e=_0x47c7,_0x40336b={'bLtUX':function(_0x2e7188,_0x1cda62){return _0x2e7188(_0x1cda62);}};if(!_0x40e1be||!_0x40e1be['environments'])return undefined;const _0x54a260=originIdentity(_0x379ae3);if(!_0x54a260){if(_0x40e1be['defaultEnvironmentKey']&&_0x40e1be['environments'][_0x40e1be[_0xc6bd3e(0x14f)]])return _0x40e1be[_0xc6bd3e(0x14f)];return undefined;}for(const [_0x36aa54,_0x16e720]of Object['entries'](_0x40e1be[_0xc6bd3e(0x14d)])){for(const _0x524a31 of _0x16e720[_0xc6bd3e(0x151)]??[]){const _0x11080f=_0x40336b['bLtUX'](originIdentity,_0x524a31);if(_0x11080f&&_0x11080f===_0x54a260)return _0x36aa54;}}if(_0x40e1be['defaultEnvironmentKey']&&_0x40e1be['environments'][_0x40e1be['defaultEnvironmentKey']])return _0x40e1be['defaultEnvironmentKey'];return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x28927c,_0x29fb66){const _0x622d29=_0x2136,_0x40b565=_0x28927c();while(!![]){try{const _0x13cbfb=-parseInt(_0x622d29(0x125))/0x1+-parseInt(_0x622d29(0x113))/0x2+-parseInt(_0x622d29(0x127))/0x3+-parseInt(_0x622d29(0x13d))/0x4*(parseInt(_0x622d29(0x134))/0x5)+parseInt(_0x622d29(0x10c))/0x6*(-parseInt(_0x622d29(0x10e))/0x7)+parseInt(_0x622d29(0x107))/0x8+parseInt(_0x622d29(0x11f))/0x9*(parseInt(_0x622d29(0x137))/0xa);if(_0x13cbfb===_0x29fb66)break;else _0x40b565['push'](_0x40b565['shift']());}catch(_0x594cc3){_0x40b565['push'](_0x40b565['shift']());}}}(_0x4235,0x880bd));function _0x2136(_0x68f663,_0x2200fe){_0x68f663=_0x68f663-0x104;const _0x4235b9=_0x4235();let _0x2136b6=_0x4235b9[_0x68f663];return _0x2136b6;}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(_0x47a248){const _0xe0b24d=_0x2136,_0x1c9dac={'MYhKs':'object','PAlHB':function(_0xdaa342,_0x42f94c){return _0xdaa342!==_0x42f94c;}};return typeof _0x47a248===_0x1c9dac['MYhKs']&&_0x1c9dac[_0xe0b24d(0x114)](_0x47a248,null);}function isImageBlock(_0x2e1c11){const _0x73a1fd=_0x2136,_0x24d0e3={'oDRDe':'image'};return isRecord(_0x2e1c11)&&_0x2e1c11[_0x73a1fd(0x11e)]===_0x24d0e3[_0x73a1fd(0x109)];}function isDataUrl(_0x3ce73f){const _0x19d384=_0x2136,_0x1a64aa={'cqBQh':_0x19d384(0x11b)};return _0x3ce73f[_0x19d384(0x105)](_0x1a64aa[_0x19d384(0x139)]);}function parseDataUrl(_0x3d1c7d){const _0x102aac=_0x2136,_0x32e285={'fvycf':function(_0x1a85c9,_0xcbba0){return _0x1a85c9(_0xcbba0);}},_0xa089a4=/^data:([^;]+);base64,(.+)$/['exec'](_0x3d1c7d);if(!_0xa089a4)return null;const _0x5e4555=_0xa089a4[0x1][_0x102aac(0x115)]();if(!_0x32e285[_0x102aac(0x132)](isValidMediaType,_0x5e4555))return null;return{'data':_0xa089a4[0x2],'mediaType':_0x5e4555};}function isValidMediaType(_0x46fbf8){const _0x3b867d=_0x2136,_0x5ea09a={'wkjzD':'image/jpeg','pGMcL':'image/png','EqfNR':_0x3b867d(0x131),'HSyRy':'image/webp'};return[_0x5ea09a['wkjzD'],_0x5ea09a[_0x3b867d(0x119)],_0x5ea09a[_0x3b867d(0x12e)],_0x5ea09a['HSyRy']][_0x3b867d(0x13b)](_0x46fbf8);}function inferMediaType(_0x272295,_0x110911){const _0xf613e4=_0x2136,_0x3a0f97={'lkFof':'jpg','TSnfo':'jpeg','kTYMO':'image/png','kPbNp':_0xf613e4(0x130)};if(_0x272295){const _0x35058b=_0x272295['toLowerCase']()[_0xf613e4(0x10a)](';')[0x0][_0xf613e4(0x121)]();if(isValidMediaType(_0x35058b))return _0x35058b;}const _0x3616d5=extname(_0x110911)[_0xf613e4(0x115)]()['replace']('.','');switch(_0x3616d5){case _0x3a0f97['lkFof']:case _0x3a0f97['TSnfo']:return _0xf613e4(0x12b);case _0xf613e4(0x144):return _0x3a0f97[_0xf613e4(0x143)];case _0xf613e4(0x12c):return _0xf613e4(0x131);case _0x3a0f97['kPbNp']:return'image/webp';default:return'image/png';}}async function readImageFromUrl(_0x4155e4){const _0x2ae006=_0x2136,_0x187792={'NeOFf':function(_0x5db977,_0x2dbda9){return _0x5db977(_0x2dbda9);},'jQwQv':function(_0x16bf0d,_0x40f383){return _0x16bf0d>_0x40f383;},'cxDIT':function(_0x4e5529,_0x5052fb,_0x2ec35a){return _0x4e5529(_0x5052fb,_0x2ec35a);},'okfSP':function(_0x16b9ff,_0x452438){return _0x16b9ff>_0x452438;},'AIKQq':_0x2ae006(0x10b),'mVgCo':function(_0x9e8756,_0x4c69f4,_0x7a6f20){return _0x9e8756(_0x4c69f4,_0x7a6f20);}};if(isDataUrl(_0x4155e4)){const _0x4d0f16=parseDataUrl(_0x4155e4);if(_0x4d0f16)return _0x4d0f16;throw new Error(_0x2ae006(0x118));}if(_0x4155e4[_0x2ae006(0x105)]('file://')){const _0x18ee83=_0x187792['NeOFf'](fileURLToPath,_0x4155e4),_0x37a9cb=await stat(_0x18ee83);if(_0x187792[_0x2ae006(0x12d)](_0x37a9cb['size'],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x2ae006(0x10d));const _0x233f0d=await readFile(_0x18ee83);return{'data':_0x233f0d['toString'](_0x2ae006(0x117)),'mediaType':_0x187792[_0x2ae006(0x12a)](inferMediaType,null,_0x18ee83)};}if(_0x4155e4[_0x2ae006(0x105)](_0x2ae006(0x112))||_0x4155e4['startsWith']('https://')){const _0x2cb8c8=await fetch(_0x4155e4,{'signal':AbortSignal[_0x2ae006(0x11c)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x2cb8c8['ok'])throw new Error(_0x2ae006(0x111)+_0x2cb8c8['status']);const _0x370321=_0x2cb8c8['headers'][_0x2ae006(0x13e)]('content-length');if(_0x370321){const _0x9aafab=Number(_0x370321);if(!Number[_0x2ae006(0x136)](_0x9aafab)&&_0x187792['okfSP'](_0x9aafab,MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x2ae006(0x10d));}const _0x35aa87=await _0x2cb8c8[_0x2ae006(0x120)]();if(_0x187792[_0x2ae006(0x146)](_0x35aa87['byteLength'],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');return{'data':Buffer['from'](_0x35aa87)['toString']('base64'),'mediaType':inferMediaType(_0x2cb8c8['headers']['get'](_0x187792[_0x2ae006(0x141)]),_0x4155e4)};}const _0x21a011=await stat(_0x4155e4);if(_0x21a011['size']>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x2ae006(0x11d)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0x58e2c4=await _0x187792[_0x2ae006(0x12f)](readFile,_0x4155e4);return{'data':_0x58e2c4['toString']('base64'),'mediaType':_0x187792['mVgCo'](inferMediaType,null,_0x4155e4)};}async function convertImageBlockToBase64(_0x4d7d0b){const _0x25e53a=_0x2136,_0x3da953={'uHmFe':'base64'};if(_0x4d7d0b[_0x25e53a(0x122)]?.['type']===_0x25e53a(0x117))return{'updated':![],'block':_0x4d7d0b};if(_0x4d7d0b['data']&&_0x4d7d0b['mimeType'])return{'updated':![],'block':_0x4d7d0b};const _0x232375=_0x4d7d0b['source']?.[_0x25e53a(0x124)]??_0x4d7d0b[_0x25e53a(0x124)];if(!_0x232375)return{'updated':![],'block':_0x4d7d0b};const _0xb7d070=await readImageFromUrl(_0x232375);return{'updated':!![],'block':{..._0x4d7d0b,'source':{'type':_0x3da953[_0x25e53a(0x13a)],'media_type':_0xb7d070['mediaType'],'data':_0xb7d070['data']},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x572d9f){const _0x1b465b=_0x2136,_0xe38720={'NTbhK':function(_0xc8b74a,_0x281fbb){return _0xc8b74a(_0x281fbb);},'BGBuJ':function(_0x267572,_0x40265a){return _0x267572(_0x40265a);}};if(!isRecord(_0x572d9f))return{'updated':![],'output':_0x572d9f};const _0x629146=_0x572d9f['content'];if(!Array[_0x1b465b(0x126)](_0x629146))return{'updated':![],'output':_0x572d9f};let _0x26330f=![];const _0x383e4b=await Promise[_0x1b465b(0x145)](_0x629146[_0x1b465b(0x142)](async _0x352081=>{const _0x524280=_0x1b465b;if(!_0xe38720[_0x524280(0x138)](isImageBlock,_0x352081))return _0x352081;try{const _0x4f1a89=await _0xe38720[_0x524280(0x123)](convertImageBlockToBase64,_0x352081);if(_0x4f1a89['updated'])_0x26330f=!![];return _0x4f1a89['block'];}catch{return _0x352081;}}));if(!_0x26330f)return{'updated':![],'output':_0x572d9f};return{'updated':!![],'output':{..._0x572d9f,'content':_0x383e4b}};}function _0x4235(){const _0x30afbe=['kTYMO','png','all','okfSP','entries','startsWith','hook_event_name','3786360lBTcvm','xTJEu','oDRDe','split','content-type','896808XOEJkG','\x20bytes)','35pAAnyk','tool_response','length','Failed\x20to\x20fetch\x20image:\x20','http://','1133918qLrSMc','PAlHB','toLowerCase','ZDlOm','base64','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','pGMcL','output','data:','timeout','Image\x20exceeds\x20size\x20limit\x20(','type','34182297FoERBs','arrayBuffer','trim','source','BGBuJ','url','390945anbLpK','isArray','3189237zRRAFB','PostToolUse','fromEntries','cxDIT','image/jpeg','gif','jQwQv','EqfNR','NeOFf','webp','image/gif','fvycf','string','1182200TauYQf','value','isNaN','10zwRjxf','NTbhK','cqBQh','uHmFe','includes','updated','16Vjedtg','get','ntnVs','KUGYf','AIKQq','map'];_0x4235=function(){return _0x30afbe;};return _0x4235();}function sanitizeLoneSurrogates(_0x34d396){const _0x5a0b33=_0x2136,_0x3b21c5={'cyUnL':function(_0x5b60fe,_0x10c475){return _0x5b60fe>=_0x10c475;},'ZDlOm':function(_0x4de8b5,_0x37f11c){return _0x4de8b5<=_0x37f11c;},'xTJEu':function(_0x4adf23,_0x33f696){return _0x4adf23+_0x33f696;},'SNEez':function(_0x6afef4,_0x55673b){return _0x6afef4>=_0x55673b;}};let _0x1422e1=![],_0x466a71='';for(let _0x299491=0x0;_0x299491<_0x34d396[_0x5a0b33(0x110)];_0x299491+=0x1){const _0x334f7f=_0x34d396['charCodeAt'](_0x299491);if(_0x3b21c5['cyUnL'](_0x334f7f,0xd800)&&_0x3b21c5['ZDlOm'](_0x334f7f,0xdbff)){const _0x29d168=_0x34d396['charCodeAt'](_0x299491+0x1);if(_0x29d168>=0xdc00&&_0x29d168<=0xdfff){_0x466a71+=_0x34d396[_0x299491]+_0x34d396[_0x3b21c5[_0x5a0b33(0x108)](_0x299491,0x1)],_0x299491+=0x1;continue;}_0x1422e1=!![],_0x466a71+='�';continue;}if(_0x3b21c5['SNEez'](_0x334f7f,0xdc00)&&_0x3b21c5[_0x5a0b33(0x116)](_0x334f7f,0xdfff)){_0x1422e1=!![],_0x466a71+='�';continue;}_0x466a71+=_0x34d396[_0x299491];}return _0x1422e1?{'updated':_0x1422e1,'value':_0x466a71}:{'updated':_0x1422e1,'value':_0x34d396};}function sanitizeLoneSurrogatesDeep(_0x160ee8){const _0x5d9f21=_0x2136,_0x417a9d={'KUGYf':function(_0x5c9dca,_0x40a78b){return _0x5c9dca(_0x40a78b);},'PCMob':function(_0xca2594,_0x4f2fe7){return _0xca2594===_0x4f2fe7;},'WDgRx':function(_0x202274,_0xa14b0a){return _0x202274(_0xa14b0a);}};if(_0x417a9d['PCMob'](typeof _0x160ee8,_0x5d9f21(0x133)))return _0x417a9d[_0x5d9f21(0x140)](sanitizeLoneSurrogates,_0x160ee8);if(Array[_0x5d9f21(0x126)](_0x160ee8)){let _0x4da8d2=![];const _0x51b9e5=_0x160ee8[_0x5d9f21(0x142)](_0x48be2=>{const _0x524b49=_0x5d9f21,_0x4fab2d=_0x417a9d['KUGYf'](sanitizeLoneSurrogatesDeep,_0x48be2);return _0x4fab2d[_0x524b49(0x13c)]&&(_0x4da8d2=!![]),_0x4fab2d[_0x524b49(0x135)];});return _0x4da8d2?{'updated':!![],'value':_0x51b9e5}:{'updated':![],'value':_0x160ee8};}if(!_0x417a9d['WDgRx'](isRecord,_0x160ee8))return{'updated':![],'value':_0x160ee8};let _0x181e38=![];const _0x107d42=Object[_0x5d9f21(0x104)](_0x160ee8)['map'](([_0x2e89a2,_0xbe3cc3])=>{const _0x5553e1=_0x5d9f21,_0x584564=_0x417a9d['KUGYf'](sanitizeLoneSurrogatesDeep,_0xbe3cc3);return _0x584564[_0x5553e1(0x13c)]&&(_0x181e38=!![]),[_0x2e89a2,_0x584564['value']];});return _0x181e38?{'updated':!![],'value':Object[_0x5d9f21(0x129)](_0x107d42)}:{'updated':![],'value':_0x160ee8};}export function createMcpImageBase64Hook(){const _0x2a6c3d={'UatYv':function(_0x5a7a42,_0x66678f){return _0x5a7a42!==_0x66678f;},'ntnVs':function(_0x30040d,_0x1eea95){return _0x30040d(_0x1eea95);}};return async _0x4aff7c=>{const _0x2f1349=_0x2136;if(_0x2a6c3d['UatYv'](_0x4aff7c[_0x2f1349(0x106)],_0x2f1349(0x128)))return{};const _0x3d2e8a=_0x4aff7c,_0x111b1b=await _0x2a6c3d['ntnVs'](convertToolOutputImagesToBase64,_0x3d2e8a[_0x2f1349(0x10f)]),_0x8b5875=_0x2a6c3d[_0x2f1349(0x13f)](sanitizeLoneSurrogatesDeep,_0x111b1b[_0x2f1349(0x11a)]),_0x36226f=_0x111b1b[_0x2f1349(0x13c)]||_0x8b5875[_0x2f1349(0x13c)];if(!_0x36226f)return{};return{'hookSpecificOutput':{'hookEventName':'PostToolUse','updatedMCPToolOutput':_0x8b5875['value']}};};}
|
|
1
|
+
(function(_0x5ae7e5,_0x395e44){const _0x45fd6f=_0x5353,_0x523d81=_0x5ae7e5();while(!![]){try{const _0x565a19=parseInt(_0x45fd6f(0x15b))/0x1+parseInt(_0x45fd6f(0x183))/0x2*(parseInt(_0x45fd6f(0x16b))/0x3)+parseInt(_0x45fd6f(0x166))/0x4+parseInt(_0x45fd6f(0x179))/0x5*(parseInt(_0x45fd6f(0x17d))/0x6)+parseInt(_0x45fd6f(0x187))/0x7*(-parseInt(_0x45fd6f(0x14d))/0x8)+-parseInt(_0x45fd6f(0x18c))/0x9*(parseInt(_0x45fd6f(0x15a))/0xa)+parseInt(_0x45fd6f(0x159))/0xb*(-parseInt(_0x45fd6f(0x15c))/0xc);if(_0x565a19===_0x395e44)break;else _0x523d81['push'](_0x523d81['shift']());}catch(_0x107b6d){_0x523d81['push'](_0x523d81['shift']());}}}(_0x37f4,0x90a33));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 _0x5353(_0x404a1a,_0x4c4bbe){_0x404a1a=_0x404a1a-0x14b;const _0x37f44c=_0x37f4();let _0x53537a=_0x37f44c[_0x404a1a];return _0x53537a;}function isRecord(_0x249bb0){const _0x5ad681={'ElpjX':function(_0x216faf,_0x3ee806){return _0x216faf===_0x3ee806;}};return _0x5ad681['ElpjX'](typeof _0x249bb0,'object')&&_0x249bb0!==null;}function isImageBlock(_0x13dcfb){const _0x547c7c=_0x5353,_0x366aea={'PgMfO':function(_0x55ab40,_0x1783ab){return _0x55ab40(_0x1783ab);}};return _0x366aea['PgMfO'](isRecord,_0x13dcfb)&&_0x13dcfb[_0x547c7c(0x164)]==='image';}function isDataUrl(_0x5b7b88){return _0x5b7b88['startsWith']('data:');}function parseDataUrl(_0x29f801){const _0x29feb6={'Rdviw':function(_0x1f17ec,_0x4a5863){return _0x1f17ec(_0x4a5863);}},_0x38bf6f=/^data:([^;]+);base64,(.+)$/['exec'](_0x29f801);if(!_0x38bf6f)return null;const _0x58a489=_0x38bf6f[0x1]['toLowerCase']();if(!_0x29feb6['Rdviw'](isValidMediaType,_0x58a489))return null;return{'data':_0x38bf6f[0x2],'mediaType':_0x58a489};}function isValidMediaType(_0x4a6c00){const _0x334b35=_0x5353,_0xf36bfe={'NNAHG':'image/png','sQjFj':_0x334b35(0x157)};return['image/jpeg',_0xf36bfe[_0x334b35(0x16d)],'image/gif',_0xf36bfe['sQjFj']][_0x334b35(0x168)](_0x4a6c00);}function inferMediaType(_0x2246ff,_0x4b0576){const _0x565a07=_0x5353,_0xd3ce5e={'vEiEK':function(_0x37b721,_0x34b61e){return _0x37b721(_0x34b61e);},'MTLin':_0x565a07(0x190),'GFcXU':'image/gif','NLdQR':_0x565a07(0x169),'RwKJo':_0x565a07(0x157)};if(_0x2246ff){const _0x20bb2e=_0x2246ff[_0x565a07(0x17e)]()[_0x565a07(0x172)](';')[0x0][_0x565a07(0x158)]();if(isValidMediaType(_0x20bb2e))return _0x20bb2e;}const _0xa32650=_0xd3ce5e[_0x565a07(0x189)](extname,_0x4b0576)[_0x565a07(0x17e)]()['replace']('.','');switch(_0xa32650){case _0x565a07(0x191):case _0x565a07(0x14c):return _0x565a07(0x185);case'png':return _0xd3ce5e[_0x565a07(0x181)];case _0x565a07(0x18a):return _0xd3ce5e['GFcXU'];case _0xd3ce5e['NLdQR']:return _0xd3ce5e['RwKJo'];default:return'image/png';}}async function readImageFromUrl(_0x5a6799){const _0x201697=_0x5353,_0x1b4014={'zoJPT':function(_0x42a98c,_0x3fe8c6){return _0x42a98c(_0x3fe8c6);},'mUJJB':function(_0x450445,_0x3caa59){return _0x450445>_0x3caa59;},'ookGa':_0x201697(0x15f),'mLafi':function(_0x47561e,_0x39b096,_0x4f7694){return _0x47561e(_0x39b096,_0x4f7694);},'YuCtt':_0x201697(0x155),'iqabl':function(_0x2df7ac,_0x58563a,_0x2037ec){return _0x2df7ac(_0x58563a,_0x2037ec);},'gJrIi':function(_0x4c6e52,_0x25d580){return _0x4c6e52(_0x25d580);},'ulUTJ':function(_0x4c5e3e,_0x222ca2,_0x40fbdb){return _0x4c5e3e(_0x222ca2,_0x40fbdb);}};if(isDataUrl(_0x5a6799)){const _0x54a33d=_0x1b4014[_0x201697(0x14b)](parseDataUrl,_0x5a6799);if(_0x54a33d)return _0x54a33d;throw new Error(_0x201697(0x16e));}if(_0x5a6799[_0x201697(0x17c)](_0x201697(0x160))){const _0x1ad0f0=fileURLToPath(_0x5a6799),_0x449e5b=await stat(_0x1ad0f0);if(_0x1b4014['mUJJB'](_0x449e5b[_0x201697(0x174)],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x201697(0x18d));const _0x3e37b5=await readFile(_0x1ad0f0);return{'data':_0x3e37b5[_0x201697(0x188)](_0x1b4014[_0x201697(0x173)]),'mediaType':_0x1b4014['mLafi'](inferMediaType,null,_0x1ad0f0)};}if(_0x5a6799['startsWith'](_0x201697(0x17f))||_0x5a6799[_0x201697(0x17c)](_0x1b4014['YuCtt'])){const _0x250e66=await _0x1b4014[_0x201697(0x16c)](fetch,_0x5a6799,{'signal':AbortSignal['timeout'](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x250e66['ok'])throw new Error('Failed\x20to\x20fetch\x20image:\x20'+_0x250e66['status']);const _0x4dcfa9=_0x250e66['headers'][_0x201697(0x15e)]('content-length');if(_0x4dcfa9){const _0x1e56c6=_0x1b4014['zoJPT'](Number,_0x4dcfa9);if(!Number[_0x201697(0x177)](_0x1e56c6)&&_0x1b4014[_0x201697(0x176)](_0x1e56c6,MAX_IMAGE_SIZE_BYTES))throw new Error(_0x201697(0x175)+MAX_IMAGE_SIZE_BYTES+_0x201697(0x18d));}const _0x297219=await _0x250e66['arrayBuffer']();if(_0x297219[_0x201697(0x178)]>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x201697(0x18d));return{'data':Buffer[_0x201697(0x182)](_0x297219)[_0x201697(0x188)]('base64'),'mediaType':_0x1b4014[_0x201697(0x16f)](inferMediaType,_0x250e66[_0x201697(0x171)]['get']('content-type'),_0x5a6799)};}const _0x4a3090=await _0x1b4014['gJrIi'](stat,_0x5a6799);if(_0x4a3090['size']>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');const _0xcf33ed=await readFile(_0x5a6799);return{'data':_0xcf33ed['toString'](_0x1b4014['ookGa']),'mediaType':_0x1b4014['ulUTJ'](inferMediaType,null,_0x5a6799)};}async function convertImageBlockToBase64(_0x371d74){const _0x3a3d53=_0x5353,_0x311968={'pHHUe':_0x3a3d53(0x15f)};if(_0x371d74[_0x3a3d53(0x17a)]?.[_0x3a3d53(0x164)]===_0x311968[_0x3a3d53(0x18f)])return{'updated':![],'block':_0x371d74};if(_0x371d74['data']&&_0x371d74[_0x3a3d53(0x152)])return{'updated':![],'block':_0x371d74};const _0x5b1813=_0x371d74['source']?.['url']??_0x371d74[_0x3a3d53(0x18b)];if(!_0x5b1813)return{'updated':![],'block':_0x371d74};const _0x4e9c01=await readImageFromUrl(_0x5b1813);return{'updated':!![],'block':{..._0x371d74,'source':{'type':_0x311968['pHHUe'],'media_type':_0x4e9c01['mediaType'],'data':_0x4e9c01['data']},'url':undefined}};}async function convertToolOutputImagesToBase64(_0xd33774){const _0x4f8122=_0x5353,_0x5dc43c={'sgFNE':function(_0x2d3098,_0x2a87ce){return _0x2d3098(_0x2a87ce);}};if(!isRecord(_0xd33774))return{'updated':![],'output':_0xd33774};const _0x196286=_0xd33774['content'];if(!Array[_0x4f8122(0x153)](_0x196286))return{'updated':![],'output':_0xd33774};let _0xe9a271=![];const _0x2a35ba=await Promise[_0x4f8122(0x170)](_0x196286['map'](async _0x5464ec=>{const _0x25180a=_0x4f8122;if(!isImageBlock(_0x5464ec))return _0x5464ec;try{const _0x46a32=await _0x5dc43c['sgFNE'](convertImageBlockToBase64,_0x5464ec);if(_0x46a32['updated'])_0xe9a271=!![];return _0x46a32[_0x25180a(0x14f)];}catch{return _0x5464ec;}}));if(!_0xe9a271)return{'updated':![],'output':_0xd33774};return{'updated':!![],'output':{..._0xd33774,'content':_0x2a35ba}};}function sanitizeLoneSurrogates(_0x5269aa){const _0x5d505d=_0x5353,_0x3f81d0={'zfbSq':function(_0x5c8d65,_0x846f9d){return _0x5c8d65>=_0x846f9d;},'NlPKC':function(_0x1cb5f9,_0x11ba5d){return _0x1cb5f9<=_0x11ba5d;},'Ccgkh':function(_0x133379,_0x3e739d){return _0x133379+_0x3e739d;},'rZUSB':function(_0x4c7342,_0x4bd4ce){return _0x4c7342+_0x4bd4ce;},'NoTex':function(_0x53cf85,_0x36de56){return _0x53cf85<=_0x36de56;}};let _0x36a600=![],_0x5477d3='';for(let _0x2cc39c=0x0;_0x2cc39c<_0x5269aa[_0x5d505d(0x186)];_0x2cc39c+=0x1){const _0x331a1b=_0x5269aa[_0x5d505d(0x184)](_0x2cc39c);if(_0x3f81d0['zfbSq'](_0x331a1b,0xd800)&&_0x331a1b<=0xdbff){const _0x51143b=_0x5269aa['charCodeAt'](_0x2cc39c+0x1);if(_0x3f81d0[_0x5d505d(0x163)](_0x51143b,0xdc00)&&_0x3f81d0[_0x5d505d(0x156)](_0x51143b,0xdfff)){_0x5477d3+=_0x3f81d0[_0x5d505d(0x16a)](_0x5269aa[_0x2cc39c],_0x5269aa[_0x3f81d0[_0x5d505d(0x167)](_0x2cc39c,0x1)]),_0x2cc39c+=0x1;continue;}_0x36a600=!![],_0x5477d3+='�';continue;}if(_0x331a1b>=0xdc00&&_0x3f81d0[_0x5d505d(0x151)](_0x331a1b,0xdfff)){_0x36a600=!![],_0x5477d3+='�';continue;}_0x5477d3+=_0x5269aa[_0x2cc39c];}return _0x36a600?{'updated':_0x36a600,'value':_0x5477d3}:{'updated':_0x36a600,'value':_0x5269aa};}function sanitizeLoneSurrogatesDeep(_0x4e7c53){const _0x152169=_0x5353,_0x41a55c={'aRUls':function(_0x43b202,_0x547bff){return _0x43b202(_0x547bff);},'KjuZs':function(_0x852ee0,_0x5212b0){return _0x852ee0===_0x5212b0;}};if(_0x41a55c['KjuZs'](typeof _0x4e7c53,'string'))return sanitizeLoneSurrogates(_0x4e7c53);if(Array[_0x152169(0x153)](_0x4e7c53)){let _0x4af9ff=![];const _0x280b6f=_0x4e7c53['map'](_0x24f2a6=>{const _0x5c4445=_0x152169,_0x2754b3=sanitizeLoneSurrogatesDeep(_0x24f2a6);return _0x2754b3[_0x5c4445(0x14e)]&&(_0x4af9ff=!![]),_0x2754b3[_0x5c4445(0x17b)];});return _0x4af9ff?{'updated':!![],'value':_0x280b6f}:{'updated':![],'value':_0x4e7c53};}if(!isRecord(_0x4e7c53))return{'updated':![],'value':_0x4e7c53};let _0x2d9739=![];const _0x502cec=Object[_0x152169(0x165)](_0x4e7c53)[_0x152169(0x18e)](([_0x2e2b09,_0x453f50])=>{const _0x285a35=_0x152169,_0x533d94=_0x41a55c[_0x285a35(0x15d)](sanitizeLoneSurrogatesDeep,_0x453f50);return _0x533d94[_0x285a35(0x14e)]&&(_0x2d9739=!![]),[_0x2e2b09,_0x533d94[_0x285a35(0x17b)]];});return _0x2d9739?{'updated':!![],'value':Object[_0x152169(0x150)](_0x502cec)}:{'updated':![],'value':_0x4e7c53};}export function createMcpImageBase64Hook(){const _0x600cce=_0x5353,_0x184759={'irEuD':function(_0x5d179f,_0x1c3894){return _0x5d179f!==_0x1c3894;},'EIbJO':_0x600cce(0x180)};return async _0x911f26=>{const _0x236543=_0x600cce;if(_0x184759['irEuD'](_0x911f26['hook_event_name'],_0x184759[_0x236543(0x161)]))return{};const _0x363cc4=_0x911f26,_0x30acae=await convertToolOutputImagesToBase64(_0x363cc4[_0x236543(0x162)]),_0x52179a=sanitizeLoneSurrogatesDeep(_0x30acae[_0x236543(0x154)]),_0x50f8ce=_0x30acae['updated']||_0x52179a['updated'];if(!_0x50f8ce)return{};return{'hookSpecificOutput':{'hookEventName':_0x184759['EIbJO'],'updatedMCPToolOutput':_0x52179a['value']}};};}function _0x37f4(){const _0x2271f3=['vEiEK','gif','url','96786bHvyBm','\x20bytes)','map','pHHUe','image/png','jpg','zoJPT','jpeg','136asFKfg','updated','block','fromEntries','NoTex','mimeType','isArray','output','https://','NlPKC','image/webp','trim','1232pIznvM','280SBubEp','351468JgYUja','45168izKTmZ','aRUls','get','base64','file://','EIbJO','tool_response','zfbSq','type','entries','3643888xUFxeP','rZUSB','includes','webp','Ccgkh','3zMJHhV','mLafi','NNAHG','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','iqabl','all','headers','split','ookGa','size','Image\x20exceeds\x20size\x20limit\x20(','mUJJB','isNaN','byteLength','3559085zSYAJf','source','value','startsWith','6mpiYXF','toLowerCase','http://','PostToolUse','MTLin','from','563242ugrVHg','charCodeAt','image/jpeg','length','387373jnJZwH','toString'];_0x37f4=function(){return _0x2271f3;};return _0x37f4();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x355c9f=_0x47f7;(function(_0x5041c0,_0x3a3d87){const _0x351a5b=_0x47f7,_0x52d360=_0x5041c0();while(!![]){try{const _0x5e6de8=-parseInt(_0x351a5b(0xb7))/0x1+-parseInt(_0x351a5b(0xb0))/0x2*(parseInt(_0x351a5b(0xad))/0x3)+parseInt(_0x351a5b(0xac))/0x4+parseInt(_0x351a5b(0xb8))/0x5*(parseInt(_0x351a5b(0xae))/0x6)+parseInt(_0x351a5b(0xb4))/0x7+parseInt(_0x351a5b(0xb5))/0x8+-parseInt(_0x351a5b(0xb1))/0x9;if(_0x5e6de8===_0x3a3d87)break;else _0x52d360['push'](_0x52d360['shift']());}catch(_0x53275f){_0x52d360['push'](_0x52d360['shift']());}}}(_0x5956,0x6452f));const VERIFY_MODEL_ALIASES={'opus':_0x355c9f(0xaf),'sonnet':_0x355c9f(0xb6)};function _0x47f7(_0x46a275,_0x1da2d8){_0x46a275=_0x46a275-0xac;const _0x59562f=_0x5956();let _0x47f71d=_0x59562f[_0x46a275];return _0x47f71d;}function _0x5956(){const _0x18f7d2=['237497VIKFFQ','30SVvfNN','2417828QqPjZa','66RmpMnX','295878LNEdTm','claude-opus-4-6','15942PeJZxD','13055724oNyJIV','trim','toLowerCase','3909206cyelrB','6525032AoyFSA','claude-sonnet-4-6'];_0x5956=function(){return _0x18f7d2;};return _0x5956();}export const DEFAULT_VERIFY_MODEL='claude-sonnet-4-6';export function resolveVerifyModel(_0x232a28){const _0x5b02ee=_0x355c9f;if(!_0x232a28)return undefined;const _0x29fa28=_0x232a28[_0x5b02ee(0xb2)]();if(!_0x29fa28)return undefined;const _0x37156b=VERIFY_MODEL_ALIASES[_0x29fa28[_0x5b02ee(0xb3)]()];return _0x37156b??_0x29fa28;}
|