@ranger-testing/ranger-cli 3.1.2-alpha.059c7a3-40 → 3.1.2-alpha.b450a14-41
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 -1
- 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 -1
- 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/tunnelClient.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 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x27ff74=_0x1517;(function(_0xabad6a,_0x168061){const _0x33afa4=_0x1517,_0x300250=_0xabad6a();while(!![]){try{const _0x4dd015=-parseInt(_0x33afa4(0x15d))/0x1*(-parseInt(_0x33afa4(0x170))/0x2)+-parseInt(_0x33afa4(0x14a))/0x3*(parseInt(_0x33afa4(0x150))/0x4)+parseInt(_0x33afa4(0x140))/0x5*(parseInt(_0x33afa4(0x13c))/0x6)+parseInt(_0x33afa4(0x164))/0x7+-parseInt(_0x33afa4(0x14d))/0x8*(-parseInt(_0x33afa4(0x141))/0x9)+-parseInt(_0x33afa4(0x165))/0xa+-parseInt(_0x33afa4(0x14f))/0xb*(parseInt(_0x33afa4(0x154))/0xc);if(_0x4dd015===_0x168061)break;else _0x300250['push'](_0x300250['shift']());}catch(_0x5e9840){_0x300250['push'](_0x300250['shift']());}}}(_0x5ee7,0xc1c09));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(_0x381c98,_0x1d266e){const _0x10c64f=_0x1517,_0x3948c6={'EhRYV':function(_0x117c26,_0x470eb1){return _0x117c26>_0x470eb1;},'TTrEL':function(_0x2eff2d,_0x2d0f00){return _0x2eff2d+_0x2d0f00;},'SBXfN':function(_0x271ae9,_0x3128f2){return _0x271ae9&_0x3128f2;},'RbdUC':function(_0x5463bd,_0x2f181a){return _0x5463bd+_0x2f181a;},'wclsN':function(_0x2ff334,_0x53592b){return _0x2ff334*_0x53592b;}};if(_0x1d266e>=_0x381c98[_0x10c64f(0x16d)])return[0x0,0x0];const _0x20f56c=_0x381c98[_0x1d266e];let _0x172382=0x1,_0x46ed71=0x80;while(_0x172382<=0x8&&!(_0x20f56c&_0x46ed71)){_0x172382++,_0x46ed71>>=0x1;}if(_0x3948c6[_0x10c64f(0x13e)](_0x3948c6['TTrEL'](_0x1d266e,_0x172382),_0x381c98['length']))return[0x0,0x0];let _0x56e80b=_0x3948c6['SBXfN'](_0x20f56c,_0x46ed71-0x1);for(let _0x187ae=0x1;_0x187ae<_0x172382;_0x187ae++){_0x56e80b=_0x3948c6['RbdUC'](_0x3948c6[_0x10c64f(0x16b)](_0x56e80b,0x100),_0x381c98[_0x1d266e+_0x187ae]);}return[_0x56e80b,_0x172382];}function _0x1517(_0x253d09,_0x59f0fd){_0x253d09=_0x253d09-0x13a;const _0x5ee764=_0x5ee7();let _0x151778=_0x5ee764[_0x253d09];return _0x151778;}function readId(_0x53aefb,_0x2f977d){const _0x18e039=_0x1517,_0x39db36={'fHXXR':function(_0x3b4d5a,_0x96a93e){return _0x3b4d5a>=_0x96a93e;},'zeTlB':function(_0x3cea03,_0x3876f6){return _0x3cea03>=_0x3876f6;},'NZInb':function(_0x6d6aaf,_0x18d453){return _0x6d6aaf>_0x18d453;},'TVwUn':function(_0x488ebe,_0x550b7c){return _0x488ebe<_0x550b7c;},'LmaQk':function(_0x349251,_0x7aded0){return _0x349251*_0x7aded0;}};if(_0x2f977d>=_0x53aefb['length'])return[0x0,0x0];const _0x228c44=_0x53aefb[_0x2f977d];let _0x3fbeb0;if(_0x228c44>=0x80)_0x3fbeb0=0x1;else{if(_0x39db36[_0x18e039(0x156)](_0x228c44,0x40))_0x3fbeb0=0x2;else{if(_0x39db36['zeTlB'](_0x228c44,0x20))_0x3fbeb0=0x3;else{if(_0x228c44>=0x10)_0x3fbeb0=0x4;else return[_0x228c44,0x1];}}}if(_0x39db36[_0x18e039(0x178)](_0x2f977d+_0x3fbeb0,_0x53aefb['length']))return[0x0,0x0];let _0x3bff4e=0x0;for(let _0x51b837=0x0;_0x39db36[_0x18e039(0x16e)](_0x51b837,_0x3fbeb0);_0x51b837++){_0x3bff4e=_0x39db36[_0x18e039(0x17d)](_0x3bff4e,0x100)+_0x53aefb[_0x2f977d+_0x51b837];}return[_0x3bff4e,_0x3fbeb0];}function readUint(_0x82a017,_0x3fec70,_0x1ed5e9){const _0x284c1c=_0x1517,_0x39f75c={'Bwkwo':function(_0x3913e5,_0x10ce9d){return _0x3913e5<_0x10ce9d;},'dEXIW':function(_0x165248,_0x93d59d){return _0x165248*_0x93d59d;}};let _0x13aa73=0x0;for(let _0x2a7ef2=0x0;_0x39f75c[_0x284c1c(0x13b)](_0x2a7ef2,_0x1ed5e9);_0x2a7ef2++){_0x13aa73=_0x39f75c['dEXIW'](_0x13aa73,0x100)+_0x82a017[_0x3fec70+_0x2a7ef2];}return _0x13aa73;}function isUnknownSize(_0xc3501a,_0x5ac6db){const _0x2dd409=_0x1517,_0x1c6bee={'nPimm':function(_0x221ba0,_0x5a0818){return _0x221ba0*_0x5a0818;}};return _0xc3501a===Math[_0x2dd409(0x151)](0x2,_0x1c6bee[_0x2dd409(0x153)](0x7,_0x5ac6db))-0x1;}function writeId(_0x1364cc){const _0x1f70a8=_0x1517,_0x61065b={'EizzG':function(_0x5ca096,_0x47e577){return _0x5ca096>>_0x47e577;},'TcUUW':function(_0x1b691d,_0xd75fa9){return _0x1b691d&_0xd75fa9;},'MaTor':function(_0x4ea939,_0x205648){return _0x4ea939&_0x205648;},'LzFln':function(_0x1b1157,_0x41e702){return _0x1b1157&_0x41e702;}};if(_0x1364cc<=0xff)return Buffer['from']([_0x1364cc]);if(_0x1364cc<=0xffff)return Buffer[_0x1f70a8(0x15e)]([_0x61065b[_0x1f70a8(0x173)](_0x1364cc,0x8)&0xff,_0x1364cc&0xff]);if(_0x1364cc<=0xffffff)return Buffer[_0x1f70a8(0x15e)]([_0x61065b[_0x1f70a8(0x173)](_0x1364cc,0x10)&0xff,_0x61065b['TcUUW'](_0x1364cc>>0x8,0xff),_0x1364cc&0xff]);return Buffer['from']([_0x61065b['TcUUW'](_0x1364cc>>0x18,0xff),_0x61065b[_0x1f70a8(0x173)](_0x1364cc,0x10)&0xff,_0x61065b['MaTor'](_0x1364cc>>0x8,0xff),_0x61065b['LzFln'](_0x1364cc,0xff)]);}function writeVint(_0x2fd6e4,_0x21b2bc){const _0x22e123=_0x1517,_0x3338d2={'jmpAN':function(_0x31360b,_0x2335ce){return _0x31360b||_0x2335ce;},'EMeGI':function(_0x4cd0cd,_0x46456f){return _0x4cd0cd<_0x46456f;},'ILMdV':function(_0x2088c4,_0x5d7c52){return _0x2088c4<<_0x5d7c52;}};let _0x12799e=_0x3338d2[_0x22e123(0x15c)](_0x21b2bc,0x1);while(_0x3338d2[_0x22e123(0x163)](Math['pow'](0x2,0x7*_0x12799e)-0x2,_0x2fd6e4))_0x12799e++;const _0x126bbb=Buffer[_0x22e123(0x16a)](_0x12799e);for(let _0x5f1be6=_0x12799e-0x1;_0x5f1be6>=0x0;_0x5f1be6--){_0x126bbb[_0x5f1be6]=_0x2fd6e4&0xff,_0x2fd6e4=Math[_0x22e123(0x14c)](_0x2fd6e4/0x100);}return _0x126bbb[0x0]|=_0x3338d2['ILMdV'](0x1,0x8-_0x12799e),_0x126bbb;}function writeFloat64(_0x371e63){const _0x4eec66=_0x1517,_0x31e875=Buffer[_0x4eec66(0x16a)](0x8);return _0x31e875['writeDoubleBE'](_0x371e63,0x0),_0x31e875;}function writeVoid(_0x51dfba){const _0x555384=_0x1517,_0x376448={'YgtQb':function(_0x2d55f9,_0x3ebd45){return _0x2d55f9-_0x3ebd45;},'ARVHP':function(_0x308472,_0x245c99){return _0x308472>=_0x245c99;},'KCvmC':function(_0x135d4a,_0x292cb2){return _0x135d4a*_0x292cb2;},'bEnUC':function(_0x136e1e,_0x4ed63f,_0x303d3a){return _0x136e1e(_0x4ed63f,_0x303d3a);}};for(let _0x4aafb1=0x1;_0x4aafb1<=0x8;_0x4aafb1++){const _0x3a5d13=_0x376448['YgtQb'](_0x376448[_0x555384(0x15a)](_0x51dfba,0x1),_0x4aafb1);if(_0x376448['ARVHP'](_0x3a5d13,0x0)&&_0x3a5d13<=Math[_0x555384(0x151)](0x2,_0x376448[_0x555384(0x15b)](0x7,_0x4aafb1))-0x2)return Buffer[_0x555384(0x177)]([Buffer[_0x555384(0x15e)]([ID_VOID]),_0x376448['bEnUC'](writeVint,_0x3a5d13,_0x4aafb1),Buffer[_0x555384(0x16a)](_0x3a5d13)]);}return Buffer[_0x555384(0x16a)](0x0);}function _0x5ee7(){const _0x328409=['626418vyoTlH','lPrsj','EhRYV','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','5QfMeye','387GJMiGe','aczAi','EhmbS','CUQEV','KGmcV','GZxqx','endsWith','error','RCYxU','46038hErIRR','cXIQX','floor','99544ViPAfm','dataSize','11oqGbuI','96hpHHtr','pow','uFUFq','nPimm','8002164PjJBOY','Fixed:\x20','fHXXR','dataOffset','iVrmR','nczaK','YgtQb','KCvmC','jmpAN','1pPAYON','from','dqZvT','rfEMV','zXgRX','VqYJl','EMeGI','6742043JZUdfl','197940rEmKvp','hngjt','QQmEs','exit','tHpPF','alloc','wclsN','BVHUp','length','TVwUn','argv','491906zDSLuy','ARENK','sizeLen','EizzG','Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment','quxzv','nmyql','concat','NZInb','VDYtB','wBMlK','slice','EvlOG','LmaQk','log','idLen','offset','Bwkwo'];_0x5ee7=function(){return _0x328409;};return _0x5ee7();}function findElement(_0x4e7b64,_0x1fee7d,_0x5cc7e2,_0x5bb9ac){const _0x1f38dd=_0x1517,_0x3d3f11={'EhmbS':function(_0x1aa8c1,_0x5c3b68,_0x67288a){return _0x1aa8c1(_0x5c3b68,_0x67288a);},'iVrmR':function(_0x1bfed1,_0x2c2b62,_0x847cdb){return _0x1bfed1(_0x2c2b62,_0x847cdb);},'qEGjq':function(_0x47b260,_0x4ad939){return _0x47b260===_0x4ad939;},'KGmcV':function(_0x4f60ad,_0x153ca5){return _0x4f60ad+_0x153ca5;},'kaYSK':function(_0x5e3065,_0x97a3c0){return _0x5e3065+_0x97a3c0;}};let _0x18b815=_0x1fee7d;while(_0x18b815<_0x5cc7e2){const [_0x2c1922,_0x102de2]=_0x3d3f11[_0x1f38dd(0x143)](readId,_0x4e7b64,_0x18b815),[_0x4a72d7,_0x36ac2f]=_0x3d3f11[_0x1f38dd(0x158)](readVint,_0x4e7b64,_0x18b815+_0x102de2);if(_0x3d3f11['qEGjq'](_0x2c1922,_0x5bb9ac))return{'offset':_0x18b815,'idLen':_0x102de2,'sizeLen':_0x36ac2f,'dataSize':_0x4a72d7,'dataOffset':_0x3d3f11['KGmcV'](_0x18b815,_0x102de2)+_0x36ac2f};if(isUnknownSize(_0x4a72d7,_0x36ac2f))break;_0x18b815+=_0x3d3f11[_0x1f38dd(0x145)](_0x3d3f11['kaYSK'](_0x102de2,_0x36ac2f),_0x4a72d7);}return null;}function computeDurationMs(_0xe0e7ac,_0x20750a){const _0x2e8007=_0x1517,_0x26b374={'yuURl':function(_0x5c44fd,_0x3ccc1d){return _0x5c44fd===_0x3ccc1d;},'xYgMo':function(_0x2577d6,_0x49e09c){return _0x2577d6<_0x49e09c;},'ARENK':function(_0x163fa7,_0x14f4c9,_0x56b32b){return _0x163fa7(_0x14f4c9,_0x56b32b);},'zSZrN':function(_0x499c92,_0x46e80e){return _0x499c92+_0x46e80e;},'aKZRS':function(_0x1eb6cb,_0x279f9c,_0x162d13){return _0x1eb6cb(_0x279f9c,_0x162d13);},'kHriK':function(_0x1c24a4,_0x2feb89){return _0x1c24a4+_0x2feb89;},'BVHUp':function(_0x114fa0,_0x3f5648,_0x20b17f){return _0x114fa0(_0x3f5648,_0x20b17f);},'aczAi':function(_0x5cceb3,_0x36525c){return _0x5cceb3+_0x36525c;},'YFOwt':function(_0x545330,_0x243ae9){return _0x545330<_0x243ae9;},'jrNpD':function(_0x27d17c,_0x8aad50){return _0x27d17c===_0x8aad50;},'HQuce':function(_0x56df59,_0x369580){return _0x56df59+_0x369580;},'wBMlK':function(_0xd29e23,_0x45c5c8){return _0xd29e23+_0x45c5c8;},'VDYtB':function(_0x43d32b,_0x56bf87){return _0x43d32b+_0x56bf87;},'AeByx':function(_0x2aff51,_0x543541){return _0x2aff51>_0x543541;},'VPtye':function(_0x1316df,_0x400524){return _0x1316df+_0x400524;}};let _0x3ffc4e=0x0;const _0x1b8528=Buffer['from']([0x1f,0x43,0xb6,0x75]);let _0x4a66f8=_0xe0e7ac['indexOf'](_0x1b8528);if(_0x26b374['yuURl'](_0x4a66f8,-0x1))return 0x0;while(_0x26b374['xYgMo'](_0x4a66f8,_0xe0e7ac[_0x2e8007(0x16d)])){const [_0x585edc,_0x3b3307]=readId(_0xe0e7ac,_0x4a66f8);if(_0x585edc!==ID_CLUSTER)break;const [_0x50eb48,_0x34daf1]=_0x26b374[_0x2e8007(0x171)](readVint,_0xe0e7ac,_0x4a66f8+_0x3b3307),_0xecd4e=_0x26b374['zSZrN'](_0x4a66f8,_0x3b3307)+_0x34daf1,_0x417fbd=_0x26b374['ARENK'](isUnknownSize,_0x50eb48,_0x34daf1);let _0x12f6bc;if(_0x417fbd){let _0x311ca8=_0xecd4e;while(_0x311ca8<_0xe0e7ac['length']-0x4){const [_0x41eeac,_0x3719d9]=_0x26b374['aKZRS'](readId,_0xe0e7ac,_0x311ca8);if(_0x41eeac===ID_CLUSTER){_0x12f6bc=_0x311ca8;break;}const [_0x166cd7,_0x498bde]=readVint(_0xe0e7ac,_0x26b374['kHriK'](_0x311ca8,_0x3719d9));if(_0x26b374[_0x2e8007(0x16c)](isUnknownSize,_0x166cd7,_0x498bde)){_0x12f6bc=_0xe0e7ac['length'];break;}_0x311ca8+=_0x26b374['aczAi'](_0x26b374['zSZrN'](_0x3719d9,_0x498bde),_0x166cd7);}_0x12f6bc??=_0xe0e7ac[_0x2e8007(0x16d)];}else _0x12f6bc=_0x26b374['kHriK'](_0xecd4e,_0x50eb48);let _0x5e6f1f=0x0,_0x3181df=_0xecd4e;while(_0x26b374['YFOwt'](_0x3181df,_0x12f6bc)){const [_0xc0896d,_0x1b05a1]=readId(_0xe0e7ac,_0x3181df),[_0x462302,_0x1d24f2]=readVint(_0xe0e7ac,_0x3181df+_0x1b05a1);if(_0x26b374['jrNpD'](_0xc0896d,ID_TIMESTAMP))_0x5e6f1f=readUint(_0xe0e7ac,_0x26b374[_0x2e8007(0x142)](_0x3181df,_0x1b05a1)+_0x1d24f2,_0x462302);else{if(_0xc0896d===ID_SIMPLE_BLOCK&&_0x462302>=0x4){const _0x2aeba1=_0x26b374['HQuce'](_0x26b374[_0x2e8007(0x17a)](_0x3181df,_0x1b05a1),_0x1d24f2),[,_0x40d633]=_0x26b374['BVHUp'](readVint,_0xe0e7ac,_0x2aeba1),_0x534d14=_0xe0e7ac['readInt16BE'](_0x26b374[_0x2e8007(0x179)](_0x2aeba1,_0x40d633)),_0x3216f5=(_0x5e6f1f+_0x534d14)*_0x20750a/0xf4240;_0x26b374['AeByx'](_0x3216f5,_0x3ffc4e)&&(_0x3ffc4e=_0x3216f5);}else{if(_0xc0896d===ID_CLUSTER)break;}}if(_0x26b374[_0x2e8007(0x171)](isUnknownSize,_0x462302,_0x1d24f2))break;_0x3181df+=_0x26b374['VPtye'](_0x1b05a1,_0x1d24f2)+_0x462302;}_0x4a66f8=_0x12f6bc;}return _0x3ffc4e;}export function fixWebmDuration(_0x3d6fed,_0x4a9a2d){const _0x51cbe4=_0x1517,_0x4a05cc={'tHpPF':function(_0x52352a,_0x8c910f){return _0x52352a+_0x8c910f;},'lPrsj':function(_0x26c2ff,_0x34805b,_0x1c1b12){return _0x26c2ff(_0x34805b,_0x1c1b12);},'hngjt':function(_0x15b20b,_0x1b71f8){return _0x15b20b!==_0x1b71f8;},'MMHMz':function(_0x3cc53c,_0x44ec43){return _0x3cc53c+_0x44ec43;},'QQmEs':function(_0x4eeecc,_0x59c2f8){return _0x4eeecc+_0x59c2f8;},'AEyFu':function(_0x45443a,_0x17da3c){return _0x45443a<_0x17da3c;},'uFUFq':function(_0x25d7bc,_0x497909,_0x377bf9){return _0x25d7bc(_0x497909,_0x377bf9);},'oLgSO':function(_0x5d188a,_0x448859){return _0x5d188a===_0x448859;},'nczaK':function(_0x2fb6dd,_0x28d9b8){return _0x2fb6dd+_0x28d9b8;},'IMVSh':function(_0x4a4784,_0xd0cde4){return _0x4a4784+_0xd0cde4;},'VqYJl':'Could\x20not\x20find\x20Info\x20element','cXIQX':function(_0x275e32,_0x1d7064,_0x401b3e,_0x48735a,_0x29e795){return _0x275e32(_0x1d7064,_0x401b3e,_0x48735a,_0x29e795);},'qeUSh':function(_0x53a15b,_0x171f5f,_0x57a999,_0x875b45){return _0x53a15b(_0x171f5f,_0x57a999,_0x875b45);},'EvlOG':'Could\x20not\x20compute\x20duration','quxzv':function(_0x2b7833,_0x18cf9c){return _0x2b7833*_0x18cf9c;},'rfEMV':function(_0x107ed9,_0x3e3aee){return _0x107ed9(_0x3e3aee);},'RCYxU':function(_0x19a5cc,_0x4c737b){return _0x19a5cc+_0x4c737b;},'nmyql':function(_0x23d274,_0x505d50){return _0x23d274-_0x505d50;},'PKxAh':function(_0x3c219c,_0x522da7){return _0x3c219c(_0x522da7);},'GZxqx':function(_0xb3951e,_0x4f268d,_0x33300b){return _0xb3951e(_0x4f268d,_0x33300b);}},_0x56a4ea=readFileSync(_0x3d6fed);let _0x5dc64f=0x0;const [_0x32f3a2,_0x46cdcc]=readId(_0x56a4ea,_0x5dc64f),[_0x58ebcd,_0x34d73a]=readVint(_0x56a4ea,_0x5dc64f+_0x46cdcc);_0x5dc64f+=_0x4a05cc['tHpPF'](_0x46cdcc+_0x34d73a,_0x58ebcd);const [_0x4d64e2,_0x3f2262]=_0x4a05cc[_0x51cbe4(0x13d)](readId,_0x56a4ea,_0x5dc64f);if(_0x4a05cc[_0x51cbe4(0x166)](_0x4d64e2,ID_SEGMENT))return console['error'](_0x51cbe4(0x174)),![];const [,_0x5e5c7e]=readVint(_0x56a4ea,_0x4a05cc['MMHMz'](_0x5dc64f,_0x3f2262)),_0x5621c9=_0x4a05cc[_0x51cbe4(0x167)](_0x4a05cc[_0x51cbe4(0x169)](_0x5dc64f,_0x3f2262),_0x5e5c7e);let _0x503e30=_0x5621c9;const _0x5d9e58=Math['min'](_0x56a4ea[_0x51cbe4(0x16d)],_0x4a05cc['QQmEs'](_0x5621c9,0x2710));let _0x20a2ed=null,_0x198ffd=null;while(_0x4a05cc['AEyFu'](_0x503e30,_0x5d9e58)){const [_0x1869a4,_0xe69a58]=_0x4a05cc[_0x51cbe4(0x152)](readId,_0x56a4ea,_0x503e30),[_0x568d84,_0x1c7e7c]=readVint(_0x56a4ea,_0x503e30+_0xe69a58);_0x4a05cc['oLgSO'](_0x1869a4,ID_VOID)&&!_0x20a2ed&&(_0x20a2ed={'offset':_0x503e30,'idLen':_0xe69a58,'sizeLen':_0x1c7e7c,'dataSize':_0x568d84,'dataOffset':_0x503e30+_0xe69a58+_0x1c7e7c});if(_0x1869a4===ID_INFO){_0x198ffd={'offset':_0x503e30,'idLen':_0xe69a58,'sizeLen':_0x1c7e7c,'dataSize':_0x568d84,'dataOffset':_0x4a05cc[_0x51cbe4(0x159)](_0x503e30,_0xe69a58)+_0x1c7e7c};break;}if(_0x1869a4===ID_CLUSTER)break;if(isUnknownSize(_0x568d84,_0x1c7e7c))break;_0x503e30+=_0x4a05cc['IMVSh'](_0xe69a58,_0x1c7e7c)+_0x568d84;}if(!_0x198ffd)return console[_0x51cbe4(0x148)](_0x4a05cc[_0x51cbe4(0x162)]),![];const _0x32f00e=_0x4a05cc[_0x51cbe4(0x14b)](findElement,_0x56a4ea,_0x198ffd[_0x51cbe4(0x157)],_0x4a05cc[_0x51cbe4(0x169)](_0x198ffd['dataOffset'],_0x198ffd[_0x51cbe4(0x14e)]),ID_DURATION);if(_0x32f00e)return![];const _0x4d35de=findElement(_0x56a4ea,_0x198ffd['dataOffset'],_0x198ffd['dataOffset']+_0x198ffd[_0x51cbe4(0x14e)],ID_TIMESTAMP_SCALE);let _0x188065=0xf4240;_0x4d35de&&(_0x188065=_0x4a05cc['qeUSh'](readUint,_0x56a4ea,_0x4d35de[_0x51cbe4(0x157)],_0x4d35de[_0x51cbe4(0x14e)]));const _0x5f0702=_0x4a05cc[_0x51cbe4(0x13d)](computeDurationMs,_0x56a4ea,_0x188065);if(_0x5f0702<=0x0)return console['error'](_0x4a05cc[_0x51cbe4(0x17c)]),![];const _0x21f53b=_0x4a05cc[_0x51cbe4(0x175)](_0x5f0702,0xf4240)/_0x188065,_0x4fe00f=Buffer[_0x51cbe4(0x177)]([writeId(ID_DURATION),_0x4a05cc[_0x51cbe4(0x160)](writeVint,0x8),_0x4a05cc[_0x51cbe4(0x160)](writeFloat64,_0x21f53b)]),_0x14735d=_0x4fe00f[_0x51cbe4(0x16d)];if(!_0x20a2ed||_0x20a2ed['offset']<_0x198ffd['offset']){if(_0x20a2ed){const _0x15b2d3=_0x4a05cc[_0x51cbe4(0x149)](_0x20a2ed['idLen']+_0x20a2ed[_0x51cbe4(0x172)],_0x20a2ed['dataSize']),_0x18f456=_0x4a05cc[_0x51cbe4(0x176)](_0x15b2d3,_0x14735d);if(_0x4a05cc['AEyFu'](_0x18f456,0x2))return rewriteFile(_0x56a4ea,_0x198ffd,_0x4fe00f,_0x188065,_0x5f0702,_0x4a9a2d);const _0x56df04=_0x198ffd['dataSize']+_0x14735d,_0x2eb25f=Buffer[_0x51cbe4(0x177)]([writeId(ID_INFO),_0x4a05cc['uFUFq'](writeVint,_0x56df04,_0x198ffd['sizeLen'])]),_0x4ca260=_0x56a4ea['slice'](_0x198ffd[_0x51cbe4(0x157)],_0x198ffd[_0x51cbe4(0x157)]+_0x198ffd['dataSize']),_0x41c829=_0x4a05cc['PKxAh'](writeVoid,_0x18f456),_0x3cd8cf=_0x56a4ea['slice'](0x0,_0x20a2ed['offset']),_0x4651df=_0x56a4ea['slice'](_0x198ffd[_0x51cbe4(0x157)]+_0x198ffd[_0x51cbe4(0x14e)]);return _0x4a05cc[_0x51cbe4(0x146)](writeFileSync,_0x4a9a2d,Buffer[_0x51cbe4(0x177)]([_0x3cd8cf,_0x41c829,_0x2eb25f,_0x4ca260,_0x4fe00f,_0x4651df])),!![];}}return rewriteFile(_0x56a4ea,_0x198ffd,_0x4fe00f,_0x188065,_0x5f0702,_0x4a9a2d);}function rewriteFile(_0x46882a,_0x18f238,_0x3128df,_0xc0c438,_0x581cba,_0xfa5cfb){const _0x569518=_0x1517,_0x4de3f7={'CUQEV':function(_0x4cda6b,_0x79b94c){return _0x4cda6b+_0x79b94c;},'qeGCd':function(_0x318226,_0x192ed3){return _0x318226(_0x192ed3);},'dqZvT':function(_0x2c49ef,_0x229d74){return _0x2c49ef+_0x229d74;},'zXgRX':function(_0x94226e,_0x18ee80){return _0x94226e+_0x18ee80;}},_0x47190a=_0x4de3f7['CUQEV'](_0x18f238['dataSize'],_0x3128df[_0x569518(0x16d)]),_0x1192ed=Buffer['concat']([_0x4de3f7['qeGCd'](writeId,ID_INFO),_0x4de3f7['qeGCd'](writeVint,_0x47190a)]),_0x17d51f=_0x4de3f7[_0x569518(0x144)](_0x18f238[_0x569518(0x17f)],_0x18f238['sizeLen']),_0x26f738=_0x46882a[_0x569518(0x17b)](0x0,_0x18f238['offset']),_0x9877e7=_0x46882a[_0x569518(0x17b)](_0x18f238[_0x569518(0x157)],_0x4de3f7['CUQEV'](_0x18f238[_0x569518(0x157)],_0x18f238[_0x569518(0x14e)])),_0x5d9293=_0x46882a[_0x569518(0x17b)](_0x4de3f7[_0x569518(0x15f)](_0x4de3f7[_0x569518(0x161)](_0x18f238[_0x569518(0x13a)],_0x17d51f),_0x18f238['dataSize']));return writeFileSync(_0xfa5cfb,Buffer['concat']([_0x26f738,_0x1192ed,_0x9877e7,_0x3128df,_0x5d9293])),!![];}if(process[_0x27ff74(0x16f)][0x1]?.['endsWith']('fixWebmDuration.ts')||process[_0x27ff74(0x16f)][0x1]?.[_0x27ff74(0x147)]('fixWebmDuration.js')){const input=process['argv'][0x2],output=process['argv'][0x3];(!input||!output)&&(console['error']('Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>'),process[_0x27ff74(0x168)](0x1));const fixed=fixWebmDuration(input,output);fixed?console['log'](_0x27ff74(0x155)+output):console[_0x27ff74(0x17e)](_0x27ff74(0x13f));}
|
|
1
|
+
function _0x36b3(_0xb9eeca,_0x556161){_0xb9eeca=_0xb9eeca-0x12b;const _0xaa2134=_0xaa21();let _0x36b384=_0xaa2134[_0xb9eeca];return _0x36b384;}const _0x575f20=_0x36b3;(function(_0x105982,_0x446034){const _0xc9e039=_0x36b3,_0x4a4906=_0x105982();while(!![]){try{const _0x58c821=-parseInt(_0xc9e039(0x14d))/0x1*(-parseInt(_0xc9e039(0x16b))/0x2)+parseInt(_0xc9e039(0x144))/0x3+parseInt(_0xc9e039(0x152))/0x4+-parseInt(_0xc9e039(0x12d))/0x5*(parseInt(_0xc9e039(0x143))/0x6)+parseInt(_0xc9e039(0x163))/0x7+parseInt(_0xc9e039(0x166))/0x8+-parseInt(_0xc9e039(0x149))/0x9*(parseInt(_0xc9e039(0x14e))/0xa);if(_0x58c821===_0x446034)break;else _0x4a4906['push'](_0x4a4906['shift']());}catch(_0x4e92d4){_0x4a4906['push'](_0x4a4906['shift']());}}}(_0xaa21,0xf3fc0));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 _0xaa21(){const _0x420cd7=['xYAug','jGIlv','KMnUl','dbhGN','error','PPdqp','slice','NtBdT','thvQX','uLWZG','sizeLen','ezMye','nDetd','AIYjg','390mGBXOQ','5179605xUPkKg','idLen','offset','aiHLA','fixWebmDuration.ts','432hfMLMw','erimT','ujupK','Hvcsz','19nvaARh','601910UaYzWh','xjATH','writeDoubleBE','Kxcxm','4075300xXxiUs','length','dataSize','YOVQs','dataOffset','eNETG','xswfC','DlcrS','endsWith','BcbZD','sCCoA','xbRax','Could\x20not\x20compute\x20duration','Usage:\x20fixWebmDuration\x20<input.webm>\x20<output.webm>','NFNSF','floor','pow','4933880uUeUur','argv','cgPax','9202688bOBhVI','mSMSX','QSXDL','GMdtR','File\x20already\x20has\x20duration\x20or\x20could\x20not\x20be\x20fixed.','39746IAdTxF','from','yoJWw','readInt16BE','83815JFFiUt','ANENb','bDmgn','concat','iOHvw','xPsob','alloc','log'];_0xaa21=function(){return _0x420cd7;};return _0xaa21();}function readVint(_0x173c9f,_0x349866){const _0x16b051=_0x36b3,_0x595be4={'hXnpe':function(_0x4a02ac,_0x2caadb){return _0x4a02ac>=_0x2caadb;},'ngJyl':function(_0xfcc165,_0x530764){return _0xfcc165<=_0x530764;},'eNETG':function(_0x1e1721,_0x54c82b){return _0x1e1721&_0x54c82b;},'OLyxA':function(_0x425d3a,_0xa6da32){return _0x425d3a-_0xa6da32;},'cGyjA':function(_0x397391,_0xfc608f){return _0x397391+_0xfc608f;}};if(_0x595be4['hXnpe'](_0x349866,_0x173c9f[_0x16b051(0x153)]))return[0x0,0x0];const _0x1ea8b0=_0x173c9f[_0x349866];let _0x4edc22=0x1,_0x1c655d=0x80;while(_0x595be4['ngJyl'](_0x4edc22,0x8)&&!(_0x1ea8b0&_0x1c655d)){_0x4edc22++,_0x1c655d>>=0x1;}if(_0x349866+_0x4edc22>_0x173c9f[_0x16b051(0x153)])return[0x0,0x0];let _0x2fcff2=_0x595be4[_0x16b051(0x157)](_0x1ea8b0,_0x595be4['OLyxA'](_0x1c655d,0x1));for(let _0x4b7087=0x1;_0x4b7087<_0x4edc22;_0x4b7087++){_0x2fcff2=_0x595be4['cGyjA'](_0x2fcff2*0x100,_0x173c9f[_0x349866+_0x4b7087]);}return[_0x2fcff2,_0x4edc22];}function readId(_0x29c046,_0x316f69){const _0x1bdcdd=_0x36b3,_0x3db70d={'ZbkAP':function(_0x5b1ee1,_0x3f9e86){return _0x5b1ee1>=_0x3f9e86;},'yRZQA':function(_0x180a3d,_0x5bb169){return _0x180a3d>_0x5bb169;},'mSMSX':function(_0x56d348,_0x27e862){return _0x56d348+_0x27e862;}};if(_0x316f69>=_0x29c046[_0x1bdcdd(0x153)])return[0x0,0x0];const _0x5e7d92=_0x29c046[_0x316f69];let _0x77293d;if(_0x5e7d92>=0x80)_0x77293d=0x1;else{if(_0x3db70d['ZbkAP'](_0x5e7d92,0x40))_0x77293d=0x2;else{if(_0x5e7d92>=0x20)_0x77293d=0x3;else{if(_0x5e7d92>=0x10)_0x77293d=0x4;else return[_0x5e7d92,0x1];}}}if(_0x3db70d['yRZQA'](_0x3db70d[_0x1bdcdd(0x167)](_0x316f69,_0x77293d),_0x29c046['length']))return[0x0,0x0];let _0x234c10=0x0;for(let _0x27d16b=0x0;_0x27d16b<_0x77293d;_0x27d16b++){_0x234c10=_0x234c10*0x100+_0x29c046[_0x316f69+_0x27d16b];}return[_0x234c10,_0x77293d];}function readUint(_0x34c583,_0x408d57,_0x5ac3a2){const _0xb2a898=_0x36b3,_0x1f5f8a={'nDetd':function(_0x87173,_0x3cc805){return _0x87173+_0x3cc805;},'ujupK':function(_0x5c18c0,_0x3c730d){return _0x5c18c0*_0x3c730d;}};let _0x6ab23f=0x0;for(let _0x26e25e=0x0;_0x26e25e<_0x5ac3a2;_0x26e25e++){_0x6ab23f=_0x1f5f8a[_0xb2a898(0x141)](_0x1f5f8a[_0xb2a898(0x14b)](_0x6ab23f,0x100),_0x34c583[_0x408d57+_0x26e25e]);}return _0x6ab23f;}function isUnknownSize(_0x54ca37,_0x41eab7){return _0x54ca37===Math['pow'](0x2,0x7*_0x41eab7)-0x1;}function writeId(_0x558cac){const _0xc25e28=_0x36b3,_0x318387={'eUKPa':function(_0x147268,_0x182f72){return _0x147268&_0x182f72;},'CWAPm':function(_0x5724fe,_0x4244d9){return _0x5724fe>>_0x4244d9;},'xjATH':function(_0x4457f0,_0x355f7f){return _0x4457f0&_0x355f7f;},'QGEzU':function(_0x5ecc7e,_0x3386eb){return _0x5ecc7e>>_0x3386eb;},'PnNga':function(_0x2b3537,_0x10fa6b){return _0x2b3537>>_0x10fa6b;},'bDmgn':function(_0x2f851c,_0x470bd7){return _0x2f851c&_0x470bd7;}};if(_0x558cac<=0xff)return Buffer[_0xc25e28(0x16c)]([_0x558cac]);if(_0x558cac<=0xffff)return Buffer[_0xc25e28(0x16c)]([_0x318387['eUKPa'](_0x318387['CWAPm'](_0x558cac,0x8),0xff),_0x318387['xjATH'](_0x558cac,0xff)]);if(_0x558cac<=0xffffff)return Buffer['from']([_0x318387[_0xc25e28(0x14f)](_0x318387['QGEzU'](_0x558cac,0x10),0xff),_0x558cac>>0x8&0xff,_0x558cac&0xff]);return Buffer['from']([_0x318387['PnNga'](_0x558cac,0x18)&0xff,_0x558cac>>0x10&0xff,_0x558cac>>0x8&0xff,_0x318387[_0xc25e28(0x12f)](_0x558cac,0xff)]);}function writeVint(_0x4cf500,_0x3456c8){const _0x4e091d=_0x36b3,_0x2a367f={'sXQMn':function(_0x20c1e5,_0x1e7e0f){return _0x20c1e5-_0x1e7e0f;},'pYzfi':function(_0x3c57f8,_0x50391a){return _0x3c57f8*_0x50391a;},'iOHvw':function(_0x3344f2,_0x511b8c){return _0x3344f2>=_0x511b8c;},'pfFIf':function(_0x11dce6,_0x1df505){return _0x11dce6&_0x1df505;},'AUpVY':function(_0x5b8a64,_0x5f3313){return _0x5b8a64/_0x5f3313;},'uLWZG':function(_0x49ff69,_0x3006e8){return _0x49ff69-_0x3006e8;}};let _0x4e96e6=_0x3456c8||0x1;while(_0x2a367f['sXQMn'](Math['pow'](0x2,_0x2a367f['pYzfi'](0x7,_0x4e96e6)),0x2)<_0x4cf500)_0x4e96e6++;const _0x299061=Buffer['alloc'](_0x4e96e6);for(let _0x309ba6=_0x4e96e6-0x1;_0x2a367f[_0x4e091d(0x131)](_0x309ba6,0x0);_0x309ba6--){_0x299061[_0x309ba6]=_0x2a367f['pfFIf'](_0x4cf500,0xff),_0x4cf500=Math[_0x4e091d(0x161)](_0x2a367f['AUpVY'](_0x4cf500,0x100));}return _0x299061[0x0]|=0x1<<_0x2a367f[_0x4e091d(0x13e)](0x8,_0x4e96e6),_0x299061;}function writeFloat64(_0x232736){const _0x256da5=_0x36b3,_0x2d12bc=Buffer[_0x256da5(0x133)](0x8);return _0x2d12bc[_0x256da5(0x150)](_0x232736,0x0),_0x2d12bc;}function writeVoid(_0x3fa2f1){const _0x2123cd=_0x36b3,_0x3fd0ab={'FqlgE':function(_0x463b92,_0x1c3193){return _0x463b92-_0x1c3193;},'dpIxo':function(_0x251af6,_0x1f30aa){return _0x251af6*_0x1f30aa;}};for(let _0xbd2ca4=0x1;_0xbd2ca4<=0x8;_0xbd2ca4++){const _0x1004dd=_0x3fd0ab['FqlgE'](_0x3fa2f1,0x1)-_0xbd2ca4;if(_0x1004dd>=0x0&&_0x1004dd<=Math[_0x2123cd(0x162)](0x2,_0x3fd0ab['dpIxo'](0x7,_0xbd2ca4))-0x2)return Buffer[_0x2123cd(0x130)]([Buffer[_0x2123cd(0x16c)]([ID_VOID]),writeVint(_0x1004dd,_0xbd2ca4),Buffer[_0x2123cd(0x133)](_0x1004dd)]);}return Buffer[_0x2123cd(0x133)](0x0);}function findElement(_0x5d8aed,_0x5c83d5,_0x4066cf,_0x1209dc){const _0x27e749=_0x36b3,_0x389797={'dbhGN':function(_0x56c610,_0x207844){return _0x56c610<_0x207844;},'TzfFf':function(_0x15dbcf,_0x168779,_0x18aab0){return _0x15dbcf(_0x168779,_0x18aab0);},'xbRax':function(_0x3245af,_0x2348e6){return _0x3245af+_0x2348e6;},'mWcsy':function(_0x23b42d,_0x2dd2f6){return _0x23b42d+_0x2dd2f6;},'nohaW':function(_0x23e48c,_0x537d22,_0x48bbe6){return _0x23e48c(_0x537d22,_0x48bbe6);}};let _0xe48846=_0x5c83d5;while(_0x389797[_0x27e749(0x138)](_0xe48846,_0x4066cf)){const [_0x2cac67,_0x3a9be4]=_0x389797['TzfFf'](readId,_0x5d8aed,_0xe48846),[_0x28e97e,_0x47c31c]=_0x389797['TzfFf'](readVint,_0x5d8aed,_0x389797[_0x27e749(0x15d)](_0xe48846,_0x3a9be4));if(_0x2cac67===_0x1209dc)return{'offset':_0xe48846,'idLen':_0x3a9be4,'sizeLen':_0x47c31c,'dataSize':_0x28e97e,'dataOffset':_0x389797['mWcsy'](_0xe48846,_0x3a9be4)+_0x47c31c};if(_0x389797['nohaW'](isUnknownSize,_0x28e97e,_0x47c31c))break;_0xe48846+=_0x389797['mWcsy'](_0x3a9be4,_0x47c31c)+_0x28e97e;}return null;}function computeDurationMs(_0x28dd97,_0x5b24f2){const _0x12d5f6=_0x36b3,_0x5854db={'jGIlv':function(_0x5394f2,_0x3bf675){return _0x5394f2===_0x3bf675;},'DlcrS':function(_0x5cb58b,_0x25a389){return _0x5cb58b<_0x25a389;},'BcbZD':function(_0x2a0b68,_0x1a2039){return _0x2a0b68!==_0x1a2039;},'Hvcsz':function(_0x2f1c96,_0x9e6dac){return _0x2f1c96+_0x9e6dac;},'eTzhi':function(_0x58dd35,_0x9725ab,_0x2c8a8c){return _0x58dd35(_0x9725ab,_0x2c8a8c);},'cgPax':function(_0x27ec2b,_0x3d32d8,_0x3d4b7d){return _0x27ec2b(_0x3d32d8,_0x3d4b7d);},'dBfAg':function(_0x24a500,_0x13d5df,_0x445670){return _0x24a500(_0x13d5df,_0x445670);},'SbqIW':function(_0x4e7da9,_0x40b462,_0x47c9b7,_0x488fa0){return _0x4e7da9(_0x40b462,_0x47c9b7,_0x488fa0);},'PPdqp':function(_0x35dfea,_0xcdd245){return _0x35dfea+_0xcdd245;},'GuJYK':function(_0x5a8714,_0x410c7e){return _0x5a8714>=_0x410c7e;},'COFIo':function(_0x2d517d,_0x2a766f,_0xc58e32){return _0x2d517d(_0x2a766f,_0xc58e32);},'AIYjg':function(_0x32fc27,_0x5594ed){return _0x32fc27>_0x5594ed;},'GMdtR':function(_0x324a81,_0x2b9e22){return _0x324a81+_0x2b9e22;}};let _0x3bbef8=0x0;const _0x2cd2e3=Buffer[_0x12d5f6(0x16c)]([0x1f,0x43,0xb6,0x75]);let _0x45c83f=_0x28dd97['indexOf'](_0x2cd2e3);if(_0x5854db['jGIlv'](_0x45c83f,-0x1))return 0x0;while(_0x5854db[_0x12d5f6(0x159)](_0x45c83f,_0x28dd97[_0x12d5f6(0x153)])){const [_0x12294a,_0x466adf]=readId(_0x28dd97,_0x45c83f);if(_0x5854db[_0x12d5f6(0x15b)](_0x12294a,ID_CLUSTER))break;const [_0x729e91,_0x4e0209]=readVint(_0x28dd97,_0x45c83f+_0x466adf),_0xf8ecfe=_0x5854db[_0x12d5f6(0x14c)](_0x45c83f,_0x466adf)+_0x4e0209,_0x3db2af=isUnknownSize(_0x729e91,_0x4e0209);let _0x5bcca3;if(_0x3db2af){let _0x4e7658=_0xf8ecfe;while(_0x5854db['DlcrS'](_0x4e7658,_0x28dd97['length']-0x4)){const [_0x9249ef,_0x3a80f1]=readId(_0x28dd97,_0x4e7658);if(_0x9249ef===ID_CLUSTER){_0x5bcca3=_0x4e7658;break;}const [_0xbe6031,_0x1033ae]=readVint(_0x28dd97,_0x4e7658+_0x3a80f1);if(_0x5854db['eTzhi'](isUnknownSize,_0xbe6031,_0x1033ae)){_0x5bcca3=_0x28dd97[_0x12d5f6(0x153)];break;}_0x4e7658+=_0x5854db['Hvcsz'](_0x3a80f1+_0x1033ae,_0xbe6031);}_0x5bcca3??=_0x28dd97[_0x12d5f6(0x153)];}else _0x5bcca3=_0xf8ecfe+_0x729e91;let _0x2068a1=0x0,_0x2474a6=_0xf8ecfe;while(_0x2474a6<_0x5bcca3){const [_0x2fe77f,_0x2b8ffd]=_0x5854db[_0x12d5f6(0x165)](readId,_0x28dd97,_0x2474a6),[_0xe1d2f1,_0x49dff5]=_0x5854db['dBfAg'](readVint,_0x28dd97,_0x2474a6+_0x2b8ffd);if(_0x5854db[_0x12d5f6(0x136)](_0x2fe77f,ID_TIMESTAMP))_0x2068a1=_0x5854db['SbqIW'](readUint,_0x28dd97,_0x5854db[_0x12d5f6(0x13a)](_0x5854db[_0x12d5f6(0x14c)](_0x2474a6,_0x2b8ffd),_0x49dff5),_0xe1d2f1);else{if(_0x2fe77f===ID_SIMPLE_BLOCK&&_0x5854db['GuJYK'](_0xe1d2f1,0x4)){const _0x173b0b=_0x5854db[_0x12d5f6(0x14c)](_0x2474a6+_0x2b8ffd,_0x49dff5),[,_0x16f3b8]=_0x5854db['COFIo'](readVint,_0x28dd97,_0x173b0b),_0x14c952=_0x28dd97[_0x12d5f6(0x12c)](_0x5854db[_0x12d5f6(0x14c)](_0x173b0b,_0x16f3b8)),_0x28bbb1=_0x5854db['Hvcsz'](_0x2068a1,_0x14c952)*_0x5b24f2/0xf4240;_0x5854db[_0x12d5f6(0x142)](_0x28bbb1,_0x3bbef8)&&(_0x3bbef8=_0x28bbb1);}else{if(_0x5854db[_0x12d5f6(0x136)](_0x2fe77f,ID_CLUSTER))break;}}if(_0x5854db[_0x12d5f6(0x165)](isUnknownSize,_0xe1d2f1,_0x49dff5))break;_0x2474a6+=_0x5854db[_0x12d5f6(0x169)](_0x2b8ffd,_0x49dff5)+_0xe1d2f1;}_0x45c83f=_0x5bcca3;}return _0x3bbef8;}export function fixWebmDuration(_0xe1858b,_0x63fe23){const _0x49638d=_0x36b3,_0x1b457b={'erimT':function(_0x57b101,_0xcf67db,_0x2daf28){return _0x57b101(_0xcf67db,_0x2daf28);},'sCCoA':function(_0x3bdb65,_0xc2a99b){return _0x3bdb65+_0xc2a99b;},'YOVQs':function(_0x14192a,_0x29773){return _0x14192a!==_0x29773;},'xPsob':function(_0x47e39d,_0x1f66f9){return _0x47e39d+_0x1f66f9;},'qMwhK':function(_0x755a8b,_0x4775bc){return _0x755a8b<_0x4775bc;},'lsQZc':function(_0x17a86b,_0x58ded4){return _0x17a86b===_0x58ded4;},'NtBdT':function(_0x352b9c,_0xfb5977){return _0x352b9c+_0xfb5977;},'QSXDL':function(_0x3e8197,_0x206f21){return _0x3e8197+_0x206f21;},'VVstu':'Could\x20not\x20find\x20Info\x20element','yoJWw':function(_0x414e47,_0x3a619e,_0x116f9a,_0x196b3f,_0x31388f){return _0x414e47(_0x3a619e,_0x116f9a,_0x196b3f,_0x31388f);},'vSLtF':function(_0x390b53,_0x4e343a,_0x721fbd){return _0x390b53(_0x4e343a,_0x721fbd);},'thvQX':function(_0x103ceb,_0x40fe39){return _0x103ceb<=_0x40fe39;},'ezMye':function(_0x3366fa,_0x16af43){return _0x3366fa/_0x16af43;},'rhbGO':function(_0x129428,_0x2cebe0){return _0x129428*_0x2cebe0;},'NFNSF':function(_0x349ac2,_0x304a9a){return _0x349ac2(_0x304a9a);},'UBUWE':function(_0x1f3b3d,_0x1915db){return _0x1f3b3d<_0x1915db;},'hzOLL':function(_0x191039,_0xc53f3e){return _0x191039+_0xc53f3e;},'kSmTa':function(_0x43f2a0,_0xccfb3c){return _0x43f2a0(_0xccfb3c);},'xYAug':function(_0xfca3b8,_0x2b3593,_0xba597a){return _0xfca3b8(_0x2b3593,_0xba597a);},'bbvOX':function(_0x2370ae,_0x2ecb47){return _0x2370ae+_0x2ecb47;},'kqnQB':function(_0xbfa0ed,_0x2b511c){return _0xbfa0ed(_0x2b511c);},'xswfC':function(_0x37238f,_0x368530){return _0x37238f+_0x368530;},'Kxcxm':function(_0x5025f7,_0x4b512b,_0x4a0aee){return _0x5025f7(_0x4b512b,_0x4a0aee);},'ANENb':function(_0x41b774,_0x716fcc,_0x40dacf,_0xd14879,_0x1d0e4b,_0x5224cd,_0x5e8641){return _0x41b774(_0x716fcc,_0x40dacf,_0xd14879,_0x1d0e4b,_0x5224cd,_0x5e8641);}},_0x2e1cef=readFileSync(_0xe1858b);let _0x42c48a=0x0;const [_0x4a8b01,_0x5d7dc2]=_0x1b457b['erimT'](readId,_0x2e1cef,_0x42c48a),[_0x316540,_0x592991]=readVint(_0x2e1cef,_0x1b457b['sCCoA'](_0x42c48a,_0x5d7dc2));_0x42c48a+=_0x5d7dc2+_0x592991+_0x316540;const [_0xe5d697,_0x24c0d8]=_0x1b457b['erimT'](readId,_0x2e1cef,_0x42c48a);if(_0x1b457b[_0x49638d(0x155)](_0xe5d697,ID_SEGMENT))return console['error']('Not\x20a\x20valid\x20WebM\x20file:\x20missing\x20Segment'),![];const [,_0x19d29b]=readVint(_0x2e1cef,_0x1b457b['sCCoA'](_0x42c48a,_0x24c0d8)),_0x17f6b4=_0x1b457b['xPsob'](_0x1b457b[_0x49638d(0x132)](_0x42c48a,_0x24c0d8),_0x19d29b);let _0x59b739=_0x17f6b4;const _0x59345f=Math['min'](_0x2e1cef[_0x49638d(0x153)],_0x1b457b[_0x49638d(0x132)](_0x17f6b4,0x2710));let _0x96279b=null,_0x4e4d1e=null;while(_0x1b457b['qMwhK'](_0x59b739,_0x59345f)){const [_0x1c9bcd,_0x936f3a]=readId(_0x2e1cef,_0x59b739),[_0x481c99,_0x4d9a57]=_0x1b457b[_0x49638d(0x14a)](readVint,_0x2e1cef,_0x59b739+_0x936f3a);_0x1b457b['lsQZc'](_0x1c9bcd,ID_VOID)&&!_0x96279b&&(_0x96279b={'offset':_0x59b739,'idLen':_0x936f3a,'sizeLen':_0x4d9a57,'dataSize':_0x481c99,'dataOffset':_0x1b457b[_0x49638d(0x15c)](_0x59b739+_0x936f3a,_0x4d9a57)});if(_0x1c9bcd===ID_INFO){_0x4e4d1e={'offset':_0x59b739,'idLen':_0x936f3a,'sizeLen':_0x4d9a57,'dataSize':_0x481c99,'dataOffset':_0x1b457b[_0x49638d(0x13c)](_0x59b739+_0x936f3a,_0x4d9a57)};break;}if(_0x1c9bcd===ID_CLUSTER)break;if(_0x1b457b[_0x49638d(0x14a)](isUnknownSize,_0x481c99,_0x4d9a57))break;_0x59b739+=_0x1b457b[_0x49638d(0x168)](_0x936f3a,_0x4d9a57)+_0x481c99;}if(!_0x4e4d1e)return console['error'](_0x1b457b['VVstu']),![];const _0x3beab0=_0x1b457b[_0x49638d(0x12b)](findElement,_0x2e1cef,_0x4e4d1e['dataOffset'],_0x4e4d1e['dataOffset']+_0x4e4d1e[_0x49638d(0x154)],ID_DURATION);if(_0x3beab0)return![];const _0x4fe123=findElement(_0x2e1cef,_0x4e4d1e[_0x49638d(0x156)],_0x4e4d1e['dataOffset']+_0x4e4d1e['dataSize'],ID_TIMESTAMP_SCALE);let _0x373ae7=0xf4240;_0x4fe123&&(_0x373ae7=readUint(_0x2e1cef,_0x4fe123['dataOffset'],_0x4fe123[_0x49638d(0x154)]));const _0x22655c=_0x1b457b['vSLtF'](computeDurationMs,_0x2e1cef,_0x373ae7);if(_0x1b457b[_0x49638d(0x13d)](_0x22655c,0x0))return console[_0x49638d(0x139)](_0x49638d(0x15e)),![];const _0x1d5cd9=_0x1b457b[_0x49638d(0x140)](_0x1b457b['rhbGO'](_0x22655c,0xf4240),_0x373ae7),_0x224c63=Buffer[_0x49638d(0x130)]([_0x1b457b[_0x49638d(0x160)](writeId,ID_DURATION),_0x1b457b[_0x49638d(0x160)](writeVint,0x8),writeFloat64(_0x1d5cd9)]),_0x2ce550=_0x224c63['length'];if(!_0x96279b||_0x96279b['offset']<_0x4e4d1e[_0x49638d(0x146)]){if(_0x96279b){const _0x2995d9=_0x96279b['idLen']+_0x96279b[_0x49638d(0x13f)]+_0x96279b['dataSize'],_0x3139b3=_0x2995d9-_0x2ce550;if(_0x1b457b['UBUWE'](_0x3139b3,0x2))return rewriteFile(_0x2e1cef,_0x4e4d1e,_0x224c63,_0x373ae7,_0x22655c,_0x63fe23);const _0x278eb4=_0x1b457b['hzOLL'](_0x4e4d1e[_0x49638d(0x154)],_0x2ce550),_0x2c4711=Buffer[_0x49638d(0x130)]([_0x1b457b['kSmTa'](writeId,ID_INFO),_0x1b457b[_0x49638d(0x135)](writeVint,_0x278eb4,_0x4e4d1e['sizeLen'])]),_0x21167e=_0x2e1cef[_0x49638d(0x13b)](_0x4e4d1e[_0x49638d(0x156)],_0x1b457b['bbvOX'](_0x4e4d1e['dataOffset'],_0x4e4d1e[_0x49638d(0x154)])),_0x351f00=_0x1b457b['kqnQB'](writeVoid,_0x3139b3),_0x2bbca8=_0x2e1cef['slice'](0x0,_0x96279b[_0x49638d(0x146)]),_0x7bcd62=_0x2e1cef[_0x49638d(0x13b)](_0x1b457b[_0x49638d(0x158)](_0x4e4d1e['dataOffset'],_0x4e4d1e['dataSize']));return _0x1b457b[_0x49638d(0x151)](writeFileSync,_0x63fe23,Buffer[_0x49638d(0x130)]([_0x2bbca8,_0x351f00,_0x2c4711,_0x21167e,_0x224c63,_0x7bcd62])),!![];}}return _0x1b457b[_0x49638d(0x12e)](rewriteFile,_0x2e1cef,_0x4e4d1e,_0x224c63,_0x373ae7,_0x22655c,_0x63fe23);}function rewriteFile(_0x58535b,_0x1c151d,_0x2b3ecf,_0x3e744e,_0x291ae9,_0x2254e7){const _0x15db40=_0x36b3,_0x3f03de={'aiHLA':function(_0x1f1900,_0x2ccbcd){return _0x1f1900+_0x2ccbcd;},'KMnUl':function(_0x19b7a8,_0xc5a5ad){return _0x19b7a8(_0xc5a5ad);},'lQlUT':function(_0x19c44e,_0x2f9dc6){return _0x19c44e(_0x2f9dc6);}},_0xc951b8=_0x3f03de[_0x15db40(0x147)](_0x1c151d['dataSize'],_0x2b3ecf['length']),_0x413396=Buffer[_0x15db40(0x130)]([_0x3f03de[_0x15db40(0x137)](writeId,ID_INFO),_0x3f03de['lQlUT'](writeVint,_0xc951b8)]),_0x2f2c9f=_0x1c151d[_0x15db40(0x145)]+_0x1c151d['sizeLen'],_0x250b79=_0x58535b['slice'](0x0,_0x1c151d[_0x15db40(0x146)]),_0x43b475=_0x58535b['slice'](_0x1c151d[_0x15db40(0x156)],_0x1c151d[_0x15db40(0x156)]+_0x1c151d['dataSize']),_0x3aa860=_0x58535b['slice'](_0x3f03de['aiHLA'](_0x3f03de[_0x15db40(0x147)](_0x1c151d['offset'],_0x2f2c9f),_0x1c151d['dataSize']));return writeFileSync(_0x2254e7,Buffer[_0x15db40(0x130)]([_0x250b79,_0x413396,_0x43b475,_0x2b3ecf,_0x3aa860])),!![];}if(process['argv'][0x1]?.['endsWith'](_0x575f20(0x148))||process[_0x575f20(0x164)][0x1]?.[_0x575f20(0x15a)]('fixWebmDuration.js')){const input=process['argv'][0x2],output=process[_0x575f20(0x164)][0x3];(!input||!output)&&(console[_0x575f20(0x139)](_0x575f20(0x15f)),process['exit'](0x1));const fixed=fixWebmDuration(input,output);fixed?console[_0x575f20(0x134)]('Fixed:\x20'+output):console[_0x575f20(0x134)](_0x575f20(0x16a));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x43ff8d,_0x122259){const _0x5413fb=_0x49c2,_0x51d067=_0x43ff8d();while(!![]){try{const _0x48201e=-parseInt(_0x5413fb(0x72))/0x1+parseInt(_0x5413fb(0x77))/0x2+-parseInt(_0x5413fb(0x7b))/0x3+parseInt(_0x5413fb(0x74))/0x4+parseInt(_0x5413fb(0x7a))/0x5+parseInt(_0x5413fb(0x76))/0x6*(parseInt(_0x5413fb(0x75))/0x7)+-parseInt(_0x5413fb(0x73))/0x8;if(_0x48201e===_0x122259)break;else _0x51d067['push'](_0x51d067['shift']());}catch(_0x46b06a){_0x51d067['push'](_0x51d067['shift']());}}}(_0x421c,0x2b966));import{execFile as _0x5816e8}from'child_process';import{promisify}from'util';const execFile=promisify(_0x5816e8);export async function isPathGitTracked(_0x390378){const _0x2c2ef8=_0x49c2,_0x334c1a={'dlRGi':'git','WOabp':_0x2c2ef8(0x79)};try{return await execFile(_0x334c1a[_0x2c2ef8(0x78)],['ls-files',_0x334c1a['WOabp'],_0x390378],{'cwd':process['cwd']()}),!![];}catch{return![];}}function _0x49c2(_0xc713fb,_0xf3f969){_0xc713fb=_0xc713fb-0x72;const _0x421c19=_0x421c();let _0x49c2e3=_0x421c19[_0xc713fb];return _0x49c2e3;}function _0x421c(){const _0x2c46f5=['925845BPrluI','23707LIeGoe','3673504QAsBAp','601268HUAwlR','49epBMxa','201414iTUIEF','664898ENZYFJ','dlRGi','--error-unmatch','1261475XyCXCF'];_0x421c=function(){return _0x2c46f5;};return _0x421c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x23497f=_0x15f3;(function(_0x2af290,_0x4d3e3f){const _0xfb9cc6=_0x15f3,_0x31830b=_0x2af290();while(!![]){try{const _0xccbbe7=parseInt(_0xfb9cc6(0xad))/0x1+-parseInt(_0xfb9cc6(0xbf))/0x2*(-parseInt(_0xfb9cc6(0xcb))/0x3)+parseInt(_0xfb9cc6(0xd5))/0x4+parseInt(_0xfb9cc6(0xdf))/0x5*(-parseInt(_0xfb9cc6(0xd0))/0x6)+parseInt(_0xfb9cc6(0xe3))/0x7+parseInt(_0xfb9cc6(0xf2))/0x8+-parseInt(_0xfb9cc6(0xdc))/0x9*(parseInt(_0xfb9cc6(0xde))/0xa);if(_0xccbbe7===_0x4d3e3f)break;else _0x31830b['push'](_0x31830b['shift']());}catch(_0x5349ba){_0x31830b['push'](_0x31830b['shift']());}}}(_0x5438,0xb4468));const _0x6b8848=(function(){const _0x214b7c=_0x15f3,_0x210b8f={'zonMD':function(_0xa8c7bd,_0x4a033c){return _0xa8c7bd===_0x4a033c;},'zyPiP':_0x214b7c(0xbe),'jVCIt':function(_0x10ffe9,_0x1844e8){return _0x10ffe9(_0x1844e8);}};let _0xece522=!![];return function(_0x2618e0,_0x1687b9){const _0x32be17={'rqHWP':function(_0x119454,_0x10d01a){return _0x210b8f['jVCIt'](_0x119454,_0x10d01a);}},_0x2792ac=_0xece522?function(){const _0x5ad332=_0x15f3;if(_0x1687b9){if(_0x210b8f[_0x5ad332(0xd6)](_0x210b8f[_0x5ad332(0xc0)],_0x5ad332(0xcc)))_0x32be17[_0x5ad332(0xf7)](_0x3454cb,_0x280c61);else{const _0x28b9b6=_0x1687b9[_0x5ad332(0xb6)](_0x2618e0,arguments);return _0x1687b9=null,_0x28b9b6;}}}:function(){};return _0xece522=![],_0x2792ac;};}()),_0x3a1b1b=_0x6b8848(this,function(){const _0xbaf9fb=_0x15f3,_0x5df1ec={'sNOIO':_0xbaf9fb(0xb8)};return _0x3a1b1b[_0xbaf9fb(0xf0)]()[_0xbaf9fb(0xed)](_0x5df1ec[_0xbaf9fb(0xe7)])[_0xbaf9fb(0xf0)]()[_0xbaf9fb(0xee)](_0x3a1b1b)[_0xbaf9fb(0xed)](_0x5df1ec[_0xbaf9fb(0xe7)]);});_0x3a1b1b();function _0x15f3(_0x447b98,_0x128895){_0x447b98=_0x447b98-0xa8;const _0x22e8b5=_0x5438();let _0x3a1b1b=_0x22e8b5[_0x447b98];if(_0x15f3['EEvCfB']===undefined){var _0x6b8848=function(_0x458a20){const _0xe8ce7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x447a2b='',_0x332e7c='',_0x5338be=_0x447a2b+_0x6b8848;for(let _0x5c46d8=0x0,_0x3fb680,_0xbf5ef1,_0x310f3a=0x0;_0xbf5ef1=_0x458a20['charAt'](_0x310f3a++);~_0xbf5ef1&&(_0x3fb680=_0x5c46d8%0x4?_0x3fb680*0x40+_0xbf5ef1:_0xbf5ef1,_0x5c46d8++%0x4)?_0x447a2b+=_0x5338be['charCodeAt'](_0x310f3a+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x3fb680>>(-0x2*_0x5c46d8&0x6)):_0x5c46d8:0x0){_0xbf5ef1=_0xe8ce7['indexOf'](_0xbf5ef1);}for(let _0x11a499=0x0,_0x1fb608=_0x447a2b['length'];_0x11a499<_0x1fb608;_0x11a499++){_0x332e7c+='%'+('00'+_0x447a2b['charCodeAt'](_0x11a499)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x332e7c);};_0x15f3['vwRZlN']=_0x6b8848,_0x15f3['vJbrQC']={},_0x15f3['EEvCfB']=!![];}const _0x54381d=_0x22e8b5[0x0],_0x15f3fb=_0x447b98+_0x54381d,_0x6773d7=_0x15f3['vJbrQC'][_0x15f3fb];if(!_0x6773d7){const _0x22ebd2=function(_0x29cc0b){this['dyqiza']=_0x29cc0b,this['dpiwAQ']=[0x1,0x0,0x0],this['ILfchE']=function(){return'newState';},this['mxdapo']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['TVuVEe']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x22ebd2['prototype']['xMYRmJ']=function(){const _0x317ac0=new RegExp(this['mxdapo']+this['TVuVEe']),_0x155e5d=_0x317ac0['test'](this['ILfchE']['toString']())?--this['dpiwAQ'][0x1]:--this['dpiwAQ'][0x0];return this['nVZoZd'](_0x155e5d);},_0x22ebd2['prototype']['nVZoZd']=function(_0xac51ca){if(!Boolean(~_0xac51ca))return _0xac51ca;return this['RFyjqs'](this['dyqiza']);},_0x22ebd2['prototype']['RFyjqs']=function(_0x1c6fac){for(let _0x118574=0x0,_0x1da926=this['dpiwAQ']['length'];_0x118574<_0x1da926;_0x118574++){this['dpiwAQ']['push'](Math['round'](Math['random']())),_0x1da926=this['dpiwAQ']['length'];}return _0x1c6fac(this['dpiwAQ'][0x0]);},new _0x22ebd2(_0x15f3)['xMYRmJ'](),_0x3a1b1b=_0x15f3['vwRZlN'](_0x3a1b1b),_0x15f3['vJbrQC'][_0x15f3fb]=_0x3a1b1b;}else _0x3a1b1b=_0x6773d7;return _0x3a1b1b;}import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x23497f(0xf4),ENV_TOKEN_LEGACY=_0x23497f(0xae),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x23497f(0xf9)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x23497f(0xb7));function isGitHubCI(){const _0x2a5a94=_0x23497f;return!!process[_0x2a5a94(0xf5)]['GITHUB_ENV'];}async function writeToGitHubEnv(_0x23790b,_0x3d1c6a){const _0x131c52=_0x23497f,_0x337a34={'ZUMMX':function(_0x2a532e,_0x408e9f,_0xa6e9c7){return _0x2a532e(_0x408e9f,_0xa6e9c7);}},_0xbe0481=process[_0x131c52(0xf5)]['GITHUB_ENV'];_0xbe0481&&await _0x337a34[_0x131c52(0xf6)](appendFile,_0xbe0481,_0x23790b+'='+_0x3d1c6a+'\x0a');}export async function storeToken(_0x199d7c){const _0x3c4744=_0x23497f,_0x24cfae={'XvKvA':_0x3c4744(0xb8),'drapw':function(_0x402945){return _0x402945();},'BrJhn':function(_0x2fbc8c,_0x1c9f85){return _0x2fbc8c===_0x1c9f85;},'Jbajh':_0x3c4744(0xc2),'IxJbZ':function(_0x500d33,_0x121c07,_0x51f266){return _0x500d33(_0x121c07,_0x51f266);},'OWTcc':function(_0x33e859,_0x1dab03,_0x2b9476,_0x264c29){return _0x33e859(_0x1dab03,_0x2b9476,_0x264c29);}};if(_0x24cfae[_0x3c4744(0xe5)](isGitHubCI)){if(_0x24cfae[_0x3c4744(0xc4)](_0x24cfae['Jbajh'],_0x3c4744(0xb4)))return _0x2ac1b7[_0x3c4744(0xf0)]()[_0x3c4744(0xed)](bhAXYg['XvKvA'])[_0x3c4744(0xf0)]()[_0x3c4744(0xee)](_0x5deef9)[_0x3c4744(0xed)](bhAXYg['XvKvA']);else await _0x24cfae[_0x3c4744(0xaf)](writeToGitHubEnv,ENV_TOKEN,_0x199d7c);}else await _0x24cfae[_0x3c4744(0xaf)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x24cfae[_0x3c4744(0xab)](writeFile,TOKEN_PATH,_0x199d7c,{'mode':0x180});}export async function getToken(){const _0x481d24=_0x23497f,_0x3cc9b6={'zLEhL':function(_0x1532cc,_0x27d371){return _0x1532cc===_0x27d371;},'KgCzw':_0x481d24(0xe1),'QVkNS':function(_0x5b3646,_0x25ccc2,_0x2d019c){return _0x5b3646(_0x25ccc2,_0x2d019c);},'rLjhu':_0x481d24(0xeb),'KMSbU':function(_0x4a4ff6,_0x59963c){return _0x4a4ff6(_0x59963c);},'ptOHA':function(_0x270a64){return _0x270a64();},'znlEM':_0x481d24(0xbc),'xtrmg':function(_0x4bcbcf){return _0x4bcbcf();},'FrpYd':function(_0xf2189d,_0x368b5e){return _0xf2189d instanceof _0x368b5e;},'nOkiU':function(_0x12839b,_0x40de69){return _0x12839b+_0x40de69;},'vxAHU':'Your\x20session\x20has\x20expired.\x20Please\x20run\x20`ranger\x20login`\x20to\x20re-authenticate.'};if(process[_0x481d24(0xf5)][ENV_TOKEN])return process[_0x481d24(0xf5)][ENV_TOKEN];if(process[_0x481d24(0xf5)][ENV_TOKEN_LEGACY])return process[_0x481d24(0xf5)][ENV_TOKEN_LEGACY];let _0x2ae647=null;try{if(_0x3cc9b6[_0x481d24(0xc8)](_0x3cc9b6[_0x481d24(0xba)],_0x481d24(0xe1)))_0x2ae647=(await _0x3cc9b6['QVkNS'](readFile,TOKEN_PATH,_0x3cc9b6[_0x481d24(0xb0)]))[_0x481d24(0xef)]()||null;else return _0x13bde4['env'][_0x34b253];}catch{const _0x30c91f=await tryRefreshToken();return _0x30c91f;}if(!_0x2ae647)return null;const _0x2db2ea=await _0x3cc9b6['KMSbU'](checkTokenValid,_0x2ae647);if(_0x2db2ea)return _0x2ae647;const _0x5ab28c=await _0x3cc9b6[_0x481d24(0xa8)](tryPromoteRefreshToken,_0x2ae647);if(_0x5ab28c)return _0x5ab28c;const _0x104b83=await _0x3cc9b6[_0x481d24(0xb2)](tryRefreshToken);if(_0x104b83)return _0x104b83;const {getMcpAuthOrigin:_0x320bcc,mcpBootstrap:_0xf614bb}=await import(_0x3cc9b6[_0x481d24(0xc6)]),_0x3a76f5=await _0x3cc9b6[_0x481d24(0xb2)](_0x320bcc);if(_0x3a76f5)try{console['log']('Session\x20expired.\x20Re-authenticating\x20via\x20MCP\x20bootstrap...'),await _0x3cc9b6[_0x481d24(0xb2)](_0xf614bb);const _0x5b1723=await _0x3cc9b6['xtrmg'](tryRefreshToken);if(_0x5b1723)return _0x5b1723;}catch(_0x43e28b){const _0x3bca2e=_0x3cc9b6[_0x481d24(0xb5)](_0x43e28b,Error)?_0x43e28b[_0x481d24(0xc5)]:String(_0x43e28b);throw new Error(_0x3cc9b6[_0x481d24(0xc7)](_0x481d24(0xcf)+_0x3bca2e+'\x0a',_0x481d24(0xe4)));}throw new Error(_0x3cc9b6[_0x481d24(0xf8)]);}async function checkTokenValid(_0x216caf){const _0x48c0b8=_0x23497f,_0x2b791a={'gvZkw':function(_0x2bd1e9,_0x131ceb,_0x515df7){return _0x2bd1e9(_0x131ceb,_0x515df7);},'oNYrc':function(_0x5cb43b,_0x4d501d){return _0x5cb43b!==_0x4d501d;},'POUhh':_0x48c0b8(0xf1),'FYvBD':_0x48c0b8(0xbd),'MehCu':function(_0x1ef58d,_0x4b0b93){return _0x1ef58d!==_0x4b0b93;},'fUPCb':_0x48c0b8(0xa9),'McTwO':function(_0x11c1aa,_0x3c452b){return _0x11c1aa(_0x3c452b);}},_0x4b69f3=new AbortController(),_0x2559e9=_0x2b791a[_0x48c0b8(0xe2)](setTimeout,()=>_0x4b69f3[_0x48c0b8(0xbb)](),0x1388);try{if(_0x2b791a[_0x48c0b8(0xe8)](_0x2b791a['POUhh'],_0x2b791a[_0x48c0b8(0xe0)]))return![];else{const {getApiBaseUrl:_0x56abc3}=await import(_0x48c0b8(0xb9)),_0x5a7700=_0x56abc3(),_0x3ff881=await _0x2b791a[_0x48c0b8(0xe2)](fetch,_0x5a7700+_0x48c0b8(0xcd),{'method':_0x2b791a[_0x48c0b8(0xac)],'headers':{'Authorization':'Bearer\x20'+_0x216caf},'signal':_0x4b69f3[_0x48c0b8(0xce)]});return _0x3ff881['ok'];}}catch{return _0x2b791a[_0x48c0b8(0xb3)](_0x2b791a[_0x48c0b8(0xd8)],_0x48c0b8(0xa9))?_0x3bc3d8[_0x48c0b8(0xf5)][_0x504004]:!![];}finally{_0x2b791a[_0x48c0b8(0xdb)](clearTimeout,_0x2559e9);}}async function tryRefreshToken(){const _0xf10e5a=_0x23497f,_0x3455c0={'nJjCB':function(_0x2fd10b){return _0x2fd10b();}},{refreshCliToken:_0x354266}=await import(_0xf10e5a(0xd7));return _0x3455c0[_0xf10e5a(0xd2)](_0x354266);}async function tryPromoteRefreshToken(_0xf4a3c6){const _0x4e8878=_0x23497f,_0x5e9b97={'pPtAK':_0x4e8878(0xd7),'uhBJe':function(_0x4535be,_0x3573a8,_0x5a01fc){return _0x4535be(_0x3573a8,_0x5a01fc);}},{refreshPartnerCliToken:_0x1f6289}=await import(_0x5e9b97[_0x4e8878(0xf3)]);return _0x5e9b97[_0x4e8878(0xea)](_0x1f6289,_0xf4a3c6,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x5a9192=_0x23497f,_0x268cdb={'urTsY':function(_0x329a44,_0x23fc37){return _0x329a44(_0x23fc37);},'WsCxW':_0x5a9192(0xdd)};try{return await _0x268cdb[_0x5a9192(0xd9)](unlink,TOKEN_PATH),!![];}catch{return _0x268cdb['WsCxW']!==_0x5a9192(0xaa)?![]:![];}}export async function storeRefreshToken(_0x3c0451){const _0x19a7d1=_0x23497f,_0x4719c7={'YZlQg':function(_0x82c908,_0x956620,_0x326463){return _0x82c908(_0x956620,_0x326463);},'axmaG':function(_0x5a57a6,_0x11dec9,_0x4e17d6,_0x481c06){return _0x5a57a6(_0x11dec9,_0x4e17d6,_0x481c06);}};await _0x4719c7[_0x19a7d1(0xca)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x4719c7[_0x19a7d1(0xb1)](writeFile,REFRESH_TOKEN_PATH,_0x3c0451,{'mode':0x180});}export async function getRefreshToken(){const _0x266192=_0x23497f,_0x1f13e5={'dEKKz':function(_0x4d45ce,_0x3e67fb){return _0x4d45ce===_0x3e67fb;},'dbPFN':_0x266192(0xda),'nJhvf':function(_0x1ba4d7,_0x2b506b,_0x1d6211){return _0x1ba4d7(_0x2b506b,_0x1d6211);},'DhxoU':_0x266192(0xeb)};try{if(_0x1f13e5[_0x266192(0xec)](_0x1f13e5['dbPFN'],_0x266192(0xda))){const _0x1576a7=await _0x1f13e5[_0x266192(0xc3)](readFile,REFRESH_TOKEN_PATH,_0x1f13e5[_0x266192(0xd1)]);return _0x1576a7['trim']()||null;}else{const _0xc26a8e=_0x22ebd2?function(){const _0xd0c1d9=_0x266192;if(_0x118574){const _0x49ca0e=_0x47fa93[_0xd0c1d9(0xb6)](_0x368b15,arguments);return _0x2ac42b=null,_0x49ca0e;}}:function(){};return _0x1c6fac=![],_0xc26a8e;}}catch{return null;}}function _0x5438(){const _0xf70420=['mZCZmJaWohHOBvbVta','EM9Utuq','lI90B2TLBLjLzNjLC2GUANm','zLvqq2i','DxjuC1K','r0DTtLG','twnuD08','ou5SCez3za','BhDTz1K','mtCZndm1mZbTu0vHDgm','nwfcweHnBG','ue9vAgG','Bw1Lsum','z3zAA3C','mZCWndmWowXUAeDRuW','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','zhjHChC','EKnov0K','C05psu8','B05zCMm','yNHqAhm','DwHcsMu','DxrMltG','zevls3O','C2vHCMnO','y29UC3rYDwn0B3i','DhjPBq','Dg9tDhjPBMC','rfDZAwi','oduYnZeWneLxBK5eBG','Cfb0quS','uKfor0vsx0nmsv9ut0TftG','zw52','wLvntvG','CNfiv1a','DNHbsfu','y2XPlNr4Da','s01tyLu','u3r1v0m','tNLIsNG','t1Duy2m','rLL2qKq','mJe0mty0t0DLCMXb','uKfor0vsx01duf9ut0TftG','sxHkyLO','CKXQAhu','yxHTyuC','Chrpsee','twvOq3u','uNHoA1y','rNjWwwq','yxbWBhK','CMvMCMvZAc50Ehq','kcGOlISPkYKRksSK','lI9LBNzPCM9UBwvUDc5QCW','s2DdENC','ywjVCNq','lI4VBwnWqM9VDhn0CMfWlMPZ','r0vu','B0L1v3C','mtmZnJzgtvLWteW','ENLqAva','BhbkDwu','z3r6q3a','BKPODMy','qNjkAg4','BwvZC2fNzq','EM5Sru0','BK9RAvu','EKXfAeW','DLbWuNi','wvPSuwC','mZmZD0LvD05H','tvL0z2i','l2fWAs92ms9Ty3aVBwu','C2LNBMfS','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','nJa2nZC1ofnYDgnerq','rgH4B1u','BKPQq0i','vg1uBgW','A1HZqui'];_0x5438=function(){return _0xf70420;};return _0x5438();}export async function deleteRefreshToken(){const _0x3dece3=_0x23497f,_0x55547a={'zCNWI':function(_0x979ab,_0x2f0040){return _0x979ab!==_0x2f0040;},'vPpRr':_0x3dece3(0xc1),'TmTll':function(_0x3662cf,_0x304ead){return _0x3662cf(_0x304ead);}};try{return _0x55547a[_0x3dece3(0xe6)](_0x3dece3(0xd4),_0x55547a[_0x3dece3(0xc9)])?(await _0x55547a[_0x3dece3(0xd3)](unlink,REFRESH_TOKEN_PATH),!![]):!![];}catch{return![];}}export async function deleteAllCredentials(){const _0x4f8207=_0x23497f,_0x41fc26={'bxPhs':function(_0x4a32f6){return _0x4a32f6();}};await _0x41fc26[_0x4f8207(0xe9)](deleteToken),await deleteRefreshToken();}
|
|
1
|
+
const _0x208efa=_0x1be1;(function(_0x286633,_0x4e34bc){const _0x5f2e9f=_0x1be1,_0x582bb8=_0x286633();while(!![]){try{const _0x306b4f=-parseInt(_0x5f2e9f(0x1a5))/0x1*(parseInt(_0x5f2e9f(0x184))/0x2)+parseInt(_0x5f2e9f(0x1ab))/0x3+parseInt(_0x5f2e9f(0x1b0))/0x4+parseInt(_0x5f2e9f(0x19f))/0x5*(-parseInt(_0x5f2e9f(0x19e))/0x6)+parseInt(_0x5f2e9f(0x174))/0x7+parseInt(_0x5f2e9f(0x189))/0x8+-parseInt(_0x5f2e9f(0x191))/0x9;if(_0x306b4f===_0x4e34bc)break;else _0x582bb8['push'](_0x582bb8['shift']());}catch(_0x413601){_0x582bb8['push'](_0x582bb8['shift']());}}}(_0x440a,0x7317d));const _0x3199b0=(function(){const _0x59dc62=_0x1be1,_0x2e8ebc={'YJABC':function(_0x1b0807,_0x557eb9){return _0x1b0807(_0x557eb9);},'dBYMG':function(_0x45bf94,_0x4e2174){return _0x45bf94+_0x4e2174;},'OhBkO':_0x59dc62(0x176),'tcKzf':function(_0x3c474f,_0x122103){return _0x3c474f===_0x122103;},'RxKkQ':_0x59dc62(0x1bb),'eBcjC':_0x59dc62(0x164),'RbFmV':_0x59dc62(0x16a)};let _0xac141=!![];return function(_0x3929bf,_0x56d911){const _0x4942b4=_0x59dc62;if(_0x2e8ebc[_0x4942b4(0x19c)]===_0x2e8ebc[_0x4942b4(0x193)]){const _0x522434=_0x3904b8 instanceof _0x450cf3?_0x2547d7[_0x4942b4(0x18f)]:_0x2e8ebc['YJABC'](_0x5236ee,_0x5dd1ae);throw new _0x459334(_0x2e8ebc['dBYMG']('MCP\x20re-authentication\x20failed:\x20'+_0x522434+'\x0a',_0x2e8ebc[_0x4942b4(0x166)]));}else{const _0x252ab1=_0xac141?function(){const _0x15fe98=_0x4942b4;if(_0x2e8ebc['tcKzf'](_0x2e8ebc[_0x15fe98(0x171)],_0x2e8ebc[_0x15fe98(0x171)])){if(_0x56d911){const _0x510af3=_0x56d911['apply'](_0x3929bf,arguments);return _0x56d911=null,_0x510af3;}}else return _0x4aa390[_0x15fe98(0x197)][_0x3ea71a];}:function(){};return _0xac141=![],_0x252ab1;}};}()),_0xf69624=_0x3199b0(this,function(){const _0x362190=_0x1be1,_0x548860={'Zbetd':'(((.+)+)+)+$'};return _0xf69624[_0x362190(0x1b9)]()[_0x362190(0x18a)](_0x548860[_0x362190(0x1ac)])[_0x362190(0x1b9)]()['constructor'](_0xf69624)[_0x362190(0x18a)](_0x548860[_0x362190(0x1ac)]);});_0xf69624();import{appendFile,readFile,writeFile,mkdir,unlink}from'fs/promises';import{join}from'path';import{getRangerHomeDir}from'./rangerRoot.js';const ENV_TOKEN=_0x208efa(0x168),ENV_TOKEN_LEGACY=_0x208efa(0x17a),TOKEN_DIR=getRangerHomeDir(),TOKEN_PATH=join(TOKEN_DIR,_0x208efa(0x19a)),REFRESH_TOKEN_PATH=join(TOKEN_DIR,_0x208efa(0x18b));function isGitHubCI(){const _0x3fef1b=_0x208efa;return!!process[_0x3fef1b(0x197)][_0x3fef1b(0x18e)];}async function writeToGitHubEnv(_0x50127d,_0x21c433){const _0x40903b=_0x208efa,_0x5e7df3={'yBviE':function(_0x2beac6,_0x5aa994,_0x203e28){return _0x2beac6(_0x5aa994,_0x203e28);}},_0x260771=process['env'][_0x40903b(0x18e)];_0x260771&&await _0x5e7df3[_0x40903b(0x1b6)](appendFile,_0x260771,_0x50127d+'='+_0x21c433+'\x0a');}export async function storeToken(_0x3a319b){const _0x29c7cd=_0x208efa,_0xa0b290={'lOKqM':function(_0xa1baa8,_0x1e1609,_0x2326ba){return _0xa1baa8(_0x1e1609,_0x2326ba);},'ugMXZ':function(_0x37db6e,_0x489399){return _0x37db6e!==_0x489399;},'CTHMy':_0x29c7cd(0x1a0),'lNkRS':_0x29c7cd(0x16c),'GxAjd':function(_0x225990,_0x5f56b5,_0x454fff){return _0x225990(_0x5f56b5,_0x454fff);},'wOfTv':function(_0x7a542,_0x1e98a2,_0x1e8452,_0x4aa1bc){return _0x7a542(_0x1e98a2,_0x1e8452,_0x4aa1bc);}};if(isGitHubCI())await _0xa0b290[_0x29c7cd(0x182)](writeToGitHubEnv,ENV_TOKEN,_0x3a319b);else{if(_0xa0b290[_0x29c7cd(0x199)](_0xa0b290[_0x29c7cd(0x1ba)],_0xa0b290[_0x29c7cd(0x196)]))await _0xa0b290[_0x29c7cd(0x180)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0xa0b290[_0x29c7cd(0x1ad)](writeFile,TOKEN_PATH,_0x3a319b,{'mode':0x180});else return _0x3ddbc7[_0x29c7cd(0x197)][_0x7537f4];}}export async function getToken(){const _0x4b9665=_0x208efa,_0xe5f8c3={'QpvqF':_0x4b9665(0x19b),'qktGM':'lZHJY','YASBS':function(_0x1d7a9f,_0x255bcd){return _0x1d7a9f===_0x255bcd;},'gsbTS':_0x4b9665(0x165),'HgjkP':'gwexw','ECMyq':function(_0x59c8c7,_0x4faee2,_0x2c9736){return _0x59c8c7(_0x4faee2,_0x2c9736);},'TNmKh':_0x4b9665(0x17b),'fEjsw':'AYMFu','NBMmt':_0x4b9665(0x1ae),'geWXb':function(_0x1054ba){return _0x1054ba();},'UNJxf':function(_0x133bd0,_0x488dd2){return _0x133bd0(_0x488dd2);},'lcChx':function(_0x2b4adb){return _0x2b4adb();},'GkOsd':_0x4b9665(0x1a9),'kvEIc':_0x4b9665(0x17d),'EwTAZ':function(_0x2d6edd){return _0x2d6edd();},'fVSlM':function(_0x32e9fb,_0x540a6e){return _0x32e9fb instanceof _0x540a6e;},'GMfTP':function(_0x53f99f,_0x212f49){return _0x53f99f+_0x212f49;},'zGTnI':_0x4b9665(0x176),'RJHDA':'Your\x20session\x20has\x20expired.\x20Please\x20run\x20`ranger\x20login`\x20to\x20re-authenticate.'};if(process[_0x4b9665(0x197)][ENV_TOKEN])return process[_0x4b9665(0x197)][ENV_TOKEN];if(process[_0x4b9665(0x197)][ENV_TOKEN_LEGACY])return _0xe5f8c3[_0x4b9665(0x1b1)]===_0xe5f8c3['qktGM']?!!_0xf48437['env'][_0x4b9665(0x18e)]:process[_0x4b9665(0x197)][ENV_TOKEN_LEGACY];let _0x2b2ba8=null;try{if(_0xe5f8c3[_0x4b9665(0x175)](_0xe5f8c3[_0x4b9665(0x192)],_0xe5f8c3[_0x4b9665(0x178)]))return!![];else _0x2b2ba8=(await _0xe5f8c3[_0x4b9665(0x1b5)](readFile,TOKEN_PATH,_0xe5f8c3[_0x4b9665(0x188)]))[_0x4b9665(0x1a6)]()||null;}catch{if(_0xe5f8c3[_0x4b9665(0x175)](_0xe5f8c3['fEjsw'],_0xe5f8c3[_0x4b9665(0x194)]))return![];else{const _0x47e764=await _0xe5f8c3[_0x4b9665(0x169)](tryRefreshToken);return _0x47e764;}}if(!_0x2b2ba8)return null;const _0x13c435=await _0xe5f8c3[_0x4b9665(0x1b7)](checkTokenValid,_0x2b2ba8);if(_0x13c435)return _0x2b2ba8;const _0x5f37c2=await tryPromoteRefreshToken(_0x2b2ba8);if(_0x5f37c2)return _0x5f37c2;const _0x3cc70d=await _0xe5f8c3['lcChx'](tryRefreshToken);if(_0x3cc70d)return _0x3cc70d;const {getMcpAuthOrigin:_0x1ca4ce,mcpBootstrap:_0xd92a8e}=await import(_0xe5f8c3[_0x4b9665(0x17c)]),_0x3d6104=await _0xe5f8c3[_0x4b9665(0x167)](_0x1ca4ce);if(_0x3d6104)try{console[_0x4b9665(0x19d)](_0xe5f8c3[_0x4b9665(0x17f)]),await _0xe5f8c3[_0x4b9665(0x1a4)](_0xd92a8e);const _0x4a1122=await _0xe5f8c3['geWXb'](tryRefreshToken);if(_0x4a1122)return _0x4a1122;}catch(_0x1dfaa6){const _0x1babc2=_0xe5f8c3[_0x4b9665(0x16b)](_0x1dfaa6,Error)?_0x1dfaa6[_0x4b9665(0x18f)]:_0xe5f8c3[_0x4b9665(0x1b7)](String,_0x1dfaa6);throw new Error(_0xe5f8c3[_0x4b9665(0x1af)](_0x4b9665(0x181)+_0x1babc2+'\x0a',_0xe5f8c3[_0x4b9665(0x187)]));}throw new Error(_0xe5f8c3[_0x4b9665(0x1a7)]);}function _0x1be1(_0x4aeef0,_0x3a5bc4){_0x4aeef0=_0x4aeef0-0x164;const _0xee7e92=_0x440a();let _0xf69624=_0xee7e92[_0x4aeef0];if(_0x1be1['sNLmta']===undefined){var _0x3199b0=function(_0x4af702){const _0x77feec='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2ca240='',_0x51ef5e='',_0x4ef25d=_0x2ca240+_0x3199b0;for(let _0x38b903=0x0,_0x1b76f1,_0x2d9819,_0x2e63c8=0x0;_0x2d9819=_0x4af702['charAt'](_0x2e63c8++);~_0x2d9819&&(_0x1b76f1=_0x38b903%0x4?_0x1b76f1*0x40+_0x2d9819:_0x2d9819,_0x38b903++%0x4)?_0x2ca240+=_0x4ef25d['charCodeAt'](_0x2e63c8+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x1b76f1>>(-0x2*_0x38b903&0x6)):_0x38b903:0x0){_0x2d9819=_0x77feec['indexOf'](_0x2d9819);}for(let _0x28897c=0x0,_0x5bb624=_0x2ca240['length'];_0x28897c<_0x5bb624;_0x28897c++){_0x51ef5e+='%'+('00'+_0x2ca240['charCodeAt'](_0x28897c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x51ef5e);};_0x1be1['FiMdSn']=_0x3199b0,_0x1be1['SCmCTy']={},_0x1be1['sNLmta']=!![];}const _0x440a29=_0xee7e92[0x0],_0x1be1d5=_0x4aeef0+_0x440a29,_0x13fb7c=_0x1be1['SCmCTy'][_0x1be1d5];if(!_0x13fb7c){const _0x2a0265=function(_0x5efbff){this['kQTGUm']=_0x5efbff,this['bZCrwC']=[0x1,0x0,0x0],this['TQUyjW']=function(){return'newState';},this['jpAQYW']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['CITRGc']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0x2a0265['prototype']['icuwUO']=function(){const _0x482a4f=new RegExp(this['jpAQYW']+this['CITRGc']),_0x2556a5=_0x482a4f['test'](this['TQUyjW']['toString']())?--this['bZCrwC'][0x1]:--this['bZCrwC'][0x0];return this['SWSlcW'](_0x2556a5);},_0x2a0265['prototype']['SWSlcW']=function(_0x3099ad){if(!Boolean(~_0x3099ad))return _0x3099ad;return this['OiPUdh'](this['kQTGUm']);},_0x2a0265['prototype']['OiPUdh']=function(_0xe08253){for(let _0x1232b7=0x0,_0x4de572=this['bZCrwC']['length'];_0x1232b7<_0x4de572;_0x1232b7++){this['bZCrwC']['push'](Math['round'](Math['random']())),_0x4de572=this['bZCrwC']['length'];}return _0xe08253(this['bZCrwC'][0x0]);},new _0x2a0265(_0x1be1)['icuwUO'](),_0xf69624=_0x1be1['FiMdSn'](_0xf69624),_0x1be1['SCmCTy'][_0x1be1d5]=_0xf69624;}else _0xf69624=_0x13fb7c;return _0xf69624;}async function checkTokenValid(_0x56a476){const _0x5eddd2=_0x208efa,_0x5c9338={'oygrf':function(_0x458134,_0x12037b,_0x4267aa){return _0x458134(_0x12037b,_0x4267aa);},'YNtIw':'zmDxm','eTwlj':_0x5eddd2(0x1b4),'gqwxY':function(_0x5ebd47){return _0x5ebd47();},'tYkSr':_0x5eddd2(0x177),'XLWRG':function(_0x5451ab,_0x4aa231){return _0x5451ab(_0x4aa231);}},_0x1fcc81=new AbortController(),_0x349c25=_0x5c9338[_0x5eddd2(0x16f)](setTimeout,()=>_0x1fcc81[_0x5eddd2(0x18c)](),0x1388);try{if(_0x5c9338['YNtIw']===_0x5c9338[_0x5eddd2(0x1b3)]){const {getApiBaseUrl:_0x22c7ea}=await import(_0x5c9338[_0x5eddd2(0x183)]),_0x292810=_0x5c9338['gqwxY'](_0x22c7ea),_0x2a70c5=await _0x5c9338[_0x5eddd2(0x16f)](fetch,_0x292810+_0x5eddd2(0x1b8),{'method':_0x5c9338[_0x5eddd2(0x1aa)],'headers':{'Authorization':'Bearer\x20'+_0x56a476},'signal':_0x1fcc81[_0x5eddd2(0x190)]});return _0x2a70c5['ok'];}else return null;}catch{return!![];}finally{_0x5c9338[_0x5eddd2(0x172)](clearTimeout,_0x349c25);}}async function tryRefreshToken(){const _0x1fd49e=_0x208efa,_0x3606e0={'WMJCz':_0x1fd49e(0x16d),'uXdJr':function(_0xb0c2f4){return _0xb0c2f4();}},{refreshCliToken:_0x6d4482}=await import(_0x3606e0[_0x1fd49e(0x179)]);return _0x3606e0[_0x1fd49e(0x1a3)](_0x6d4482);}async function tryPromoteRefreshToken(_0x26c9a0){const _0xcdb532=_0x208efa,_0x376cd1={'lIyEw':function(_0x1abf8a,_0x175d47,_0x2ba789){return _0x1abf8a(_0x175d47,_0x2ba789);}},{refreshPartnerCliToken:_0x3a0fc7}=await import(_0xcdb532(0x16d));return _0x376cd1['lIyEw'](_0x3a0fc7,_0x26c9a0,{'persistRefreshToken':!![]});}export async function deleteToken(){const _0x5e8de4=_0x208efa,_0x3717fc={'GpDiJ':function(_0x1d3613,_0x5d1174){return _0x1d3613(_0x5d1174);}};try{return await _0x3717fc[_0x5e8de4(0x1b2)](unlink,TOKEN_PATH),!![];}catch{return![];}}export async function storeRefreshToken(_0x2eda48){const _0x43064b=_0x208efa,_0x342602={'IyRQx':function(_0x485775,_0x32f182,_0x168ced){return _0x485775(_0x32f182,_0x168ced);},'zplLV':function(_0x5f1b98,_0x34f65a,_0x241338,_0x18cd09){return _0x5f1b98(_0x34f65a,_0x241338,_0x18cd09);}};await _0x342602[_0x43064b(0x170)](mkdir,TOKEN_DIR,{'recursive':!![]}),await _0x342602[_0x43064b(0x195)](writeFile,REFRESH_TOKEN_PATH,_0x2eda48,{'mode':0x180});}export async function getRefreshToken(){const _0x51530a=_0x208efa,_0xecbcb7={'TnaAK':function(_0x3770da,_0x3f0e37){return _0x3770da===_0x3f0e37;},'dPCKH':_0x51530a(0x1a8),'QoQoD':_0x51530a(0x17b)};try{if(_0xecbcb7[_0x51530a(0x17e)](_0x51530a(0x1a8),_0xecbcb7[_0x51530a(0x18d)])){const _0x52acff=await readFile(REFRESH_TOKEN_PATH,_0xecbcb7[_0x51530a(0x16e)]);return _0x52acff[_0x51530a(0x1a6)]()||null;}else _0x3b6675(_0x41851b);}catch{return null;}}export async function deleteRefreshToken(){const _0x2c7a34=_0x208efa,_0x2a9d8e={'BuoGq':function(_0x21a90c,_0x54171c){return _0x21a90c!==_0x54171c;},'AQjQD':_0x2c7a34(0x1a2),'lCNFm':function(_0x43dc66,_0x553fce){return _0x43dc66(_0x553fce);}};try{if(_0x2a9d8e['BuoGq'](_0x2c7a34(0x198),_0x2a9d8e[_0x2c7a34(0x185)]))return await _0x2a9d8e[_0x2c7a34(0x186)](unlink,REFRESH_TOKEN_PATH),!![];else{const _0x414f3e=_0x2a0265?function(){const _0x48ec7c=_0x2c7a34;if(_0x1232b7){const _0x1a911c=_0x4b5f8a[_0x48ec7c(0x1a1)](_0x37e553,arguments);return _0x1e6bb1=null,_0x1a911c;}}:function(){};return _0xe08253=![],_0x414f3e;}}catch{return![];}}function _0x440a(){const _0x2999a6=['lI4VBwnWqM9VDhn0CMfWlMPZ','DfLRu3i','mJaZmJuYn29irNLXzW','wMjLDgq','D09Mvhy','BffvuMy','r01Mvfa','mZi3nduYogvXueflva','uxb2Cuy','r3beAuO','wu50sxC','lI9LBNzPCM9UBwvUDc5QCW','runnExe','Euj2Auu','vu5kEgy','l2fWAs92ms9Ty3aVBwu','Dg9tDhjPBMC','q1ritxK','CwzItui','C2Hlvfi','sxvwCue','t2HcA08','BgndAhG','uKfor0vsx0nmsv9ut0TftG','z2vxwgi','AKLjqLa','zLztBe0','sNPiuwG','lI90B2TLBLjLzNjLC2GUANm','uw9rB0q','B3LNCMy','sxLsuxG','uNHlA1e','weXxuKC','CgXlq1y','ntG3mdeZn05iuhrgzq','wuftqLm','uMuTyxv0Ag9YAxPLihrOzsbsyw5NzxiGtunqignVBM5Ly3rPB24SihrOzw4GCMv0CNKU','r0vu','sgDQA1a','v01kq3O','uKfor0vsx01duf9ut0TftG','DxrMltG','r2TpC2q','u2vZC2LVBIbLEhbPCMvKlIbszs1HDxrOzw50AwnHDgLUzYb2AweGtunqigjVB3rZDhjHCc4UlG','vg5HquS','A3zfswm','r3HbAMq','tunqihjLlwf1DgHLBNrPy2f0Aw9UigzHAwXLzdOG','Be9lCu0','zvr3BgO','mZa5mdq2Cvffy250','qvfQuuq','BenorM0','EKDuBKK','ve5Ts2G','nte1mdyXnLLiuwfyzW','C2vHCMnO','CMvMCMvZAc50Ehq','ywjVCNq','zfbds0G','r0Lusfvcx0vovG','BwvZC2fNzq','C2LNBMfS','mtmWodm1otD6B1zKv2q','z3nIvfm','uMjgBvy','tKjnBxq','ENbStfy','Be5RuLm','zw52','CevUA2K','DwDnwfO','y2XPlNr4Da','Ce5jvfO','zujJAKm','Bg9N','nZGZnNPtBuLfEa','mta3nxLWzfnADq','ruX0zMG','yxbWBhK','Eez1z2O','DvHKsNi','rxDuqvO','nvbYshHpqW','DhjPBq','uKPiree','sMj1zu0'];_0x440a=function(){return _0x2999a6;};return _0x440a();}export async function deleteAllCredentials(){const _0x510e50=_0x208efa,_0x32d355={'plKCV':function(_0x3fe548){return _0x3fe548();}};await _0x32d355[_0x510e50(0x173)](deleteToken),await deleteRefreshToken();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1c1f40=_0x4637;function _0x3af3(){const _0x1e26a5=['plvnR','slice','\x20\x20\x20Ranger\x20no\x20longer\x20writes\x20to\x20these\x20paths.\x20Existing\x20sessions\x20there\x20still\x20work','UIhia','\x20\x20\x20as\x20a\x20fallback.\x20To\x20set\x20up\x20a\x20fresh\x20profile,\x20run:','6770536IuaLrG','8134032BhvAWX','xHaWH','1811066GvjiaJ','join','\x20\x20\x20\x20\x20https://docs.ranger.net/main/concepts/profiles','PkUpw','3578525hKdgQe','1353756GHHuUW','verify','length','profiles','setup','571178ERnGtH','FAbmS','\x20\x20\x20For\x20CI\x20/\x20background\x20agents\x20and\x20other\x20setup\x20options,\x20see:','2115512MAwSnC','DGBrS','\x20\x20\x20\x20\x20ranger\x20profile\x20add\x20<name>','oyEYt','4mVNbBQ','BBGKg','map','active-profile.txt','DIOIB'];_0x3af3=function(){return _0x1e26a5;};return _0x3af3();}(function(_0x5027bf,_0x3d284d){const _0x432861=_0x4637,_0x3157f3=_0x5027bf();while(!![]){try{const _0x1561c0=parseInt(_0x432861(0x103))/0x1+-parseInt(_0x432861(0xf9))/0x2+-parseInt(_0x432861(0xfe))/0x3+-parseInt(_0x432861(0x10a))/0x4*(-parseInt(_0x432861(0xfd))/0x5)+parseInt(_0x432861(0xf7))/0x6+parseInt(_0x432861(0x106))/0x7+-parseInt(_0x432861(0xf6))/0x8;if(_0x1561c0===_0x3d284d)break;else _0x3157f3['push'](_0x3157f3['shift']());}catch(_0x103d8c){_0x3157f3['push'](_0x3157f3['shift']());}}}(_0x3af3,0xb5125));function _0x4637(_0x4f7e78,_0x34c74e){_0x4f7e78=_0x4f7e78-0xed;const _0x3af359=_0x3af3();let _0x463724=_0x3af359[_0x4f7e78];return _0x463724;}import{existsSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{getRangerDir,getRangerHomeDir}from'./rangerRoot.js';function detectLegacyPaths(){const _0x2a9c83=_0x4637,_0x2fd44b={'PkUpw':function(_0x2b044c){return _0x2b044c();},'DGBrS':function(_0x25a5ed){return _0x25a5ed();},'LRgXf':'local','xHaWH':function(_0x153ef6,_0x564dab,_0x172fae){return _0x153ef6(_0x564dab,_0x172fae);},'VWZlp':_0x2a9c83(0xef)},_0x1374df=_0x2fd44b[_0x2a9c83(0xfc)](getRangerDir),_0x2c7724=_0x2fd44b[_0x2a9c83(0x107)](getRangerHomeDir);return[join(_0x1374df,_0x2fd44b['LRgXf']),join(_0x1374df,'ci'),_0x2fd44b['xHaWH'](join,_0x2c7724,'local'),_0x2fd44b[_0x2a9c83(0xf8)](join,_0x1374df,_0x2fd44b['VWZlp'])]['filter'](_0x36c79e=>existsSync(_0x36c79e));}function flagFilePath(){const _0x3a9d22=_0x4637,_0x59b333={'DIOIB':function(_0x2a9ee1,_0x9ffd,_0x5226d9){return _0x2a9ee1(_0x9ffd,_0x5226d9);},'plvnR':function(_0x11f2f7){return _0x11f2f7();}},_0x480838=new Date()['toISOString']()[_0x3a9d22(0xf2)](0x0,0xa);return _0x59b333[_0x3a9d22(0xf0)](join,_0x59b333[_0x3a9d22(0xf1)](getRangerHomeDir),'.legacy-warning-'+_0x480838);}export function showLegacyDeprecationWarning(){const _0x30c937=_0x4637,_0x447a09={'BBGKg':function(_0xcdbd2d){return _0xcdbd2d();},'ltzNQ':function(_0x3f0c06,_0xa42fdb){return _0x3f0c06(_0xa42fdb);},'FAbmS':_0x30c937(0xf5),'VGsme':_0x30c937(0x108),'UIhia':_0x30c937(0x105),'ynuMR':_0x30c937(0xfb),'oyEYt':'\x20\x20\x20Delete\x20these\x20paths\x20after\x20you\x20have\x20re-auth-ed.','MLUgq':function(_0x5e3b55,_0x130524,_0x5b5018){return _0x5e3b55(_0x130524,_0x5b5018);}},_0x3cd48f=_0x447a09[_0x30c937(0xed)](detectLegacyPaths);if(_0x3cd48f[_0x30c937(0x100)]===0x0)return;const _0xceffb4=_0x447a09['BBGKg'](flagFilePath);if(_0x447a09['ltzNQ'](existsSync,_0xceffb4))return;const _0x370e6d=['','⚠\x20\x20Legacy\x20Ranger\x20paths\x20detected\x20(read-only):',..._0x3cd48f[_0x30c937(0xee)](_0x188230=>'\x20\x20\x20\x20\x20'+_0x188230),'',_0x30c937(0xf3),_0x447a09[_0x30c937(0x104)],'',_0x447a09['VGsme'],'',_0x447a09[_0x30c937(0xf4)],_0x447a09['ynuMR'],'',_0x447a09[_0x30c937(0x109)],''];process['stderr']['write'](_0x370e6d[_0x30c937(0xfa)]('\x0a')+'\x0a');try{_0x447a09['MLUgq'](mkdirSync,_0x447a09['BBGKg'](getRangerHomeDir),{'recursive':!![]}),writeFileSync(_0xceffb4,'',{'mode':0x180});}catch{}}const PROFILE_TOUCHING_COMMANDS=new Set(['go',_0x1c1f40(0xff),'verify-feature','profile',_0x1c1f40(0x101),_0x1c1f40(0x102),'setup-ci','start','use']);export function shouldShowLegacyWarning(_0x5690d2){const _0x152a96={'RsEAu':function(_0x54377a,_0x441b9b){return _0x54377a<_0x441b9b;},'QgeRL':function(_0x28ea2e,_0x3e3d80){return _0x28ea2e===_0x3e3d80;}},_0x57224b=_0x5690d2[0x2];if(!_0x57224b)return![];if(_0x57224b['startsWith']('-'))return![];if(!PROFILE_TOUCHING_COMMANDS['has'](_0x57224b))return![];for(let _0x26ec86=0x3;_0x152a96['RsEAu'](_0x26ec86,_0x5690d2['length']);_0x26ec86++){if(_0x5690d2[_0x26ec86]==='--help'||_0x152a96['QgeRL'](_0x5690d2[_0x26ec86],'-h'))return![];}return!![];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1ee2a4,_0x114077){const _0x11a279=_0x2789,_0x315a69=_0x1ee2a4();while(!![]){try{const _0x3d6dcd=parseInt(_0x11a279(0x194))/0x1+-parseInt(_0x11a279(0x196))/0x2*(parseInt(_0x11a279(0x1a2))/0x3)+-parseInt(_0x11a279(0x185))/0x4+parseInt(_0x11a279(0x195))/0x5+parseInt(_0x11a279(0x19c))/0x6*(parseInt(_0x11a279(0x186))/0x7)+-parseInt(_0x11a279(0x1a7))/0x8*(-parseInt(_0x11a279(0x1a5))/0x9)+parseInt(_0x11a279(0x18e))/0xa*(-parseInt(_0x11a279(0x183))/0xb);if(_0x3d6dcd===_0x114077)break;else _0x315a69['push'](_0x315a69['shift']());}catch(_0x5edc2a){_0x315a69['push'](_0x315a69['shift']());}}}(_0xdc33,0x415b5));const _0x11eac6=(function(){const _0x4927f5={'xXepy':'SWuDz','mHZNu':function(_0x48c244,_0x21907d){return _0x48c244!==_0x21907d;},'IoahM':'UKnwY'};let _0x5a1081=!![];return function(_0x41dcf7,_0xf032ef){const _0x15ffcd=_0x2789,_0x21dcfe={'rRlVk':_0x4927f5[_0x15ffcd(0x188)],'JjSEA':function(_0x7f0916,_0x15f6e7){const _0x481c6f=_0x15ffcd;return _0x4927f5[_0x481c6f(0x182)](_0x7f0916,_0x15f6e7);},'wdwUQ':_0x4927f5[_0x15ffcd(0x1a3)]},_0x553802=_0x5a1081?function(){const _0xc67e70=_0x15ffcd;if(_0x21dcfe[_0xc67e70(0x1a0)]===_0x21dcfe[_0xc67e70(0x1a0)]){if(_0xf032ef){if(_0x21dcfe[_0xc67e70(0x189)](_0x21dcfe[_0xc67e70(0x197)],_0xc67e70(0x18f))){const _0x537e51=_0xf032ef[_0xc67e70(0x19a)](_0x41dcf7,arguments);return _0xf032ef=null,_0x537e51;}else{if(_0x4c5cdb){const _0x4630d=_0x5b7b70[_0xc67e70(0x19a)](_0x26d774,arguments);return _0xe0cc26=null,_0x4630d;}}}}else{const _0x29baaa=_0x5a9299[_0xc67e70(0x19a)](_0x1765ec,arguments);return _0x27f515=null,_0x29baaa;}}:function(){};return _0x5a1081=![],_0x553802;};}()),_0x402742=_0x11eac6(this,function(){const _0x450a70=_0x2789,_0x34690d={'stnhT':_0x450a70(0x17f)};return _0x402742[_0x450a70(0x190)]()[_0x450a70(0x19d)](_0x34690d[_0x450a70(0x19b)])[_0x450a70(0x190)]()[_0x450a70(0x19e)](_0x402742)['search'](_0x34690d['stnhT']);});function _0x2789(_0x344a03,_0x1ef439){_0x344a03=_0x344a03-0x17f;const _0x7857cd=_0xdc33();let _0x402742=_0x7857cd[_0x344a03];if(_0x2789['oAOFFn']===undefined){var _0x11eac6=function(_0x529130){const _0x32d058='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x32c013='',_0x56f9b2='',_0xd1c05a=_0x32c013+_0x11eac6;for(let _0x3f5f92=0x0,_0x3e85b0,_0x15ae6d,_0x697936=0x0;_0x15ae6d=_0x529130['charAt'](_0x697936++);~_0x15ae6d&&(_0x3e85b0=_0x3f5f92%0x4?_0x3e85b0*0x40+_0x15ae6d:_0x15ae6d,_0x3f5f92++%0x4)?_0x32c013+=_0xd1c05a['charCodeAt'](_0x697936+0xa)-0xa!==0x0?String['fromCharCode'](0xff&_0x3e85b0>>(-0x2*_0x3f5f92&0x6)):_0x3f5f92:0x0){_0x15ae6d=_0x32d058['indexOf'](_0x15ae6d);}for(let _0x476fb8=0x0,_0x3bb173=_0x32c013['length'];_0x476fb8<_0x3bb173;_0x476fb8++){_0x56f9b2+='%'+('00'+_0x32c013['charCodeAt'](_0x476fb8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x56f9b2);};_0x2789['SteQpt']=_0x11eac6,_0x2789['UJvWOG']={},_0x2789['oAOFFn']=!![];}const _0xdc334a=_0x7857cd[0x0],_0x2789f5=_0x344a03+_0xdc334a,_0x2aec3e=_0x2789['UJvWOG'][_0x2789f5];if(!_0x2aec3e){const _0xa2acbb=function(_0x5e6092){this['FCimnO']=_0x5e6092,this['rhCogS']=[0x1,0x0,0x0],this['VjJeyA']=function(){return'newState';},this['rfeMEh']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['RrKHFa']='[\x27|\x22].+[\x27|\x22];?\x20*}';};_0xa2acbb['prototype']['TCLAAJ']=function(){const _0x31b887=new RegExp(this['rfeMEh']+this['RrKHFa']),_0x3ffb78=_0x31b887['test'](this['VjJeyA']['toString']())?--this['rhCogS'][0x1]:--this['rhCogS'][0x0];return this['PMQpNk'](_0x3ffb78);},_0xa2acbb['prototype']['PMQpNk']=function(_0x211b54){if(!Boolean(~_0x211b54))return _0x211b54;return this['VcCfMi'](this['FCimnO']);},_0xa2acbb['prototype']['VcCfMi']=function(_0x7f53b8){for(let _0x71d168=0x0,_0x3b5181=this['rhCogS']['length'];_0x71d168<_0x3b5181;_0x71d168++){this['rhCogS']['push'](Math['round'](Math['random']())),_0x3b5181=this['rhCogS']['length'];}return _0x7f53b8(this['rhCogS'][0x0]);},new _0xa2acbb(_0x2789)['TCLAAJ'](),_0x402742=_0x2789['SteQpt'](_0x402742),_0x2789['UJvWOG'][_0x2789f5]=_0x402742;}else _0x402742=_0x2aec3e;return _0x402742;}_0x402742();import{getToken}from'./keychain.js';import{getApiBaseUrl}from'./environment.js';export async function logLocalAgentInstallation(_0x1cc549,_0x8cb6c,_0x287311){const _0x2157ac=_0x2789,_0x530b27={'LohGT':function(_0x543912){return _0x543912();},'ONlQN':'mXYMW','VvgIC':function(_0x1af108){return _0x1af108();},'nrigS':function(_0x43b46c,_0x3bc7df,_0x2ba7bf){return _0x43b46c(_0x3bc7df,_0x2ba7bf);},'GMtsK':_0x2157ac(0x198),'jsDoy':function(_0x491c59,_0x13aa51){return _0x491c59===_0x13aa51;},'jBOcC':_0x2157ac(0x192)},_0x151774=await _0x530b27[_0x2157ac(0x187)](getToken);if(!_0x151774){if(_0x530b27['ONlQN']!=='UOGua')return;else{const _0x50e868=_0xa2acbb?function(){if(_0x71d168){const _0x4bb15b=_0x5d65fc['apply'](_0x2dcfa5,arguments);return _0xce6f8=null,_0x4bb15b;}}:function(){};return _0x7f53b8=![],_0x50e868;}}const _0x3aa8fc=_0x530b27[_0x2157ac(0x18d)](getApiBaseUrl),_0x568f3c=new AbortController(),_0x3deccb=_0x530b27[_0x2157ac(0x193)](setTimeout,()=>_0x568f3c[_0x2157ac(0x18b)](),0x1388);let _0xe9b303;try{_0xe9b303=await fetch(_0x3aa8fc+_0x2157ac(0x19f),{'method':_0x530b27['GMtsK'],'headers':{'Authorization':_0x2157ac(0x191)+_0x151774,'Content-Type':_0x2157ac(0x1a1)},'body':JSON[_0x2157ac(0x199)]({'skillName':_0x1cc549,'cliVersion':_0x287311,'metadata':_0x8cb6c}),'signal':_0x568f3c[_0x2157ac(0x181)]});}finally{clearTimeout(_0x3deccb);}if(!_0xe9b303['ok']){if(_0x530b27[_0x2157ac(0x1a6)](_0x530b27[_0x2157ac(0x184)],_0x2157ac(0x1a4)))return;else{const _0x287032=await _0xe9b303[_0x2157ac(0x180)]();console[_0x2157ac(0x18c)](_0x2157ac(0x18a)+_0x287032);}}}function _0xdc33(){const _0x1874bd=['rMfPBgvKihrVigXVzYbZA2LSBcbPBNn0ywXSyxrPB246ia','ywjVCNq','zxjYB3i','vNzNsum','otC1mdbjrMzwzwe','AxP4sNi','Dg9tDhjPBMC','qMvHCMvYia','sur4whq','BNjPz1m','mJiWotK5DeXArNHu','mtG4odeWmhHgCuDZAa','mty5nZjwt3ntt3i','D2r3vve','ue9tva','C3rYAw5NAwz5','yxbWBhK','C3rUAfq','ndK4tfbYqNrw','C2vHCMnO','y29UC3rYDwn0B3i','l2fWAs92ms9Ty3aVBg9JywWTywDLBNqTAw5ZDgfSBgf0Aw9UCW','CLjSvMS','yxbWBgLJyxrPB24VANnVBG','mJrosvnnDgm','sw9HAe0','t1HJBMy','otLzC1nlthe','ANneB3K','mZG4mtG0zuv1wfPj','kcGOlISPkYKRksSK','Dgv4Da','C2LNBMfS','BuHAtNu','nti4r3LYyK9I','AKjpy0m','mtmXnJC5mKvNr3DQsq','mZv4ALrmug0','tg9Or1q','EfHLChK','sMPtrue'];_0xdc33=function(){return _0x1874bd;};return _0xdc33();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x116506,_0x5f55aa){const _0x5250aa=_0x48fa,_0x592f45=_0x116506();while(!![]){try{const _0x2c6b55=parseInt(_0x5250aa(0x122))/0x1+-parseInt(_0x5250aa(0x11f))/0x2*(-parseInt(_0x5250aa(0x121))/0x3)+-parseInt(_0x5250aa(0x12e))/0x4+parseInt(_0x5250aa(0x12b))/0x5*(parseInt(_0x5250aa(0x123))/0x6)+-parseInt(_0x5250aa(0x12a))/0x7*(parseInt(_0x5250aa(0x126))/0x8)+-parseInt(_0x5250aa(0x128))/0x9+parseInt(_0x5250aa(0x12d))/0xa;if(_0x2c6b55===_0x5f55aa)break;else _0x592f45['push'](_0x592f45['shift']());}catch(_0x334def){_0x592f45['push'](_0x592f45['shift']());}}}(_0x32f6,0x7686d));function originIdentity(_0x2dcd5f){const _0x2fe3ac=_0x48fa;try{const _0x5d34b5=new URL(_0x2dcd5f);return _0x5d34b5[_0x2fe3ac(0x12c)]+'//'+_0x5d34b5['host'];}catch{return undefined;}}function _0x48fa(_0x5f4359,_0x4878c7){_0x5f4359=_0x5f4359-0x11f;const _0x32f660=_0x32f6();let _0x48fafa=_0x32f660[_0x5f4359];return _0x48fafa;}function _0x32f6(){const _0x2cbcfa=['cgxud','156lMnGFI','688546HbapzL','90EBwmGP','defaultEnvironmentKey','NPYIT','1061912tnbJfY','environments','7779780zaTKIF','domains','14DzjRHH','304385coivuj','protocol','7960000MSeZEW','3273208DsfOBh','1384mqGcJz'];_0x32f6=function(){return _0x2cbcfa;};return _0x32f6();}export function matchAuthEnvironment(_0x1366ce,_0x50fc8c){const _0x467ee9=_0x48fa,_0x32bf6c={'NPYIT':function(_0x356215,_0x580db6){return _0x356215(_0x580db6);},'cgxud':function(_0x5c5973,_0x49546b){return _0x5c5973(_0x49546b);}};if(!_0x50fc8c||!_0x50fc8c['environments'])return undefined;const _0x3b08f5=_0x32bf6c[_0x467ee9(0x125)](originIdentity,_0x1366ce);if(!_0x3b08f5){if(_0x50fc8c['defaultEnvironmentKey']&&_0x50fc8c[_0x467ee9(0x127)][_0x50fc8c[_0x467ee9(0x124)]])return _0x50fc8c['defaultEnvironmentKey'];return undefined;}for(const [_0x546c6e,_0x126c94]of Object['entries'](_0x50fc8c[_0x467ee9(0x127)])){for(const _0x4bac1f of _0x126c94[_0x467ee9(0x129)]??[]){const _0x1a1a13=_0x32bf6c[_0x467ee9(0x120)](originIdentity,_0x4bac1f);if(_0x1a1a13&&_0x1a1a13===_0x3b08f5)return _0x546c6e;}}if(_0x50fc8c[_0x467ee9(0x124)]&&_0x50fc8c[_0x467ee9(0x127)][_0x50fc8c['defaultEnvironmentKey']])return _0x50fc8c[_0x467ee9(0x124)];return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3c43e6,_0x59c9cf){const _0x4c3199=_0xa072,_0xf4e13=_0x3c43e6();while(!![]){try{const _0x51c288=parseInt(_0x4c3199(0xfa))/0x1*(parseInt(_0x4c3199(0xc7))/0x2)+-parseInt(_0x4c3199(0xe1))/0x3+-parseInt(_0x4c3199(0xe3))/0x4+parseInt(_0x4c3199(0xfd))/0x5*(-parseInt(_0x4c3199(0xc0))/0x6)+-parseInt(_0x4c3199(0xd1))/0x7+parseInt(_0x4c3199(0xfb))/0x8*(-parseInt(_0x4c3199(0xf6))/0x9)+parseInt(_0x4c3199(0xd6))/0xa;if(_0x51c288===_0x59c9cf)break;else _0xf4e13['push'](_0xf4e13['shift']());}catch(_0x145978){_0xf4e13['push'](_0xf4e13['shift']());}}}(_0x230e,0x26bbb));function _0xa072(_0x4224f6,_0x5df53e){_0x4224f6=_0x4224f6-0xbe;const _0x230ef0=_0x230e();let _0xa072c=_0x230ef0[_0x4224f6];return _0xa072c;}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(_0x4cc6a9){const _0x2368f0=_0xa072,_0x514716={'wLxzN':_0x2368f0(0xcd),'QcvzL':function(_0x4ba97f,_0x149964){return _0x4ba97f!==_0x149964;}};return typeof _0x4cc6a9===_0x514716[_0x2368f0(0xe0)]&&_0x514716['QcvzL'](_0x4cc6a9,null);}function isImageBlock(_0x2ca92a){const _0x50d854=_0xa072,_0x543e2f={'aAZRY':'image'};return isRecord(_0x2ca92a)&&_0x2ca92a[_0x50d854(0xf1)]===_0x543e2f['aAZRY'];}function isDataUrl(_0xaf4e30){const _0x5073ef=_0xa072;return _0xaf4e30[_0x5073ef(0xc5)]('data:');}function parseDataUrl(_0x2b2b42){const _0x5ee073=_0xa072,_0x25911d=/^data:([^;]+);base64,(.+)$/['exec'](_0x2b2b42);if(!_0x25911d)return null;const _0x256bd4=_0x25911d[0x1][_0x5ee073(0xdb)]();if(!isValidMediaType(_0x256bd4))return null;return{'data':_0x25911d[0x2],'mediaType':_0x256bd4};}function _0x230e(){const _0x110b92=['Gqpno','1SAthZI','4496FCNeVx','arrayBuffer','71885XYxCpO','timeout','status','hook_event_name','charCodeAt','entries','66xFeYBI','iLEaM','EUlzY','image/gif','gif','startsWith','value','378598ccSwYM','get','UrJnN','tool_response','trim','updated','object','replace','webp','base64','745794UGLKoN','content-length','headers','yDiOL','toString','6732150VBRSwz','Image\x20exceeds\x20size\x20limit\x20(','includes','isNaN','block','toLowerCase','PostToolUse','pgEQq','url','WSjSP','wLxzN','568281JIoLIz','data','688764OAhajm','\x20bytes)','pDujg','byteLength','size','image/webp','string','isArray','MpiWi','length','AzKqR','LPBYk','bHEJB','fromEntries','type','hsqsP','file://','content','source','1242ucxvsG','PCotF','ZYVbq'];_0x230e=function(){return _0x110b92;};return _0x230e();}function isValidMediaType(_0x5e0d65){const _0x17cf60=_0xa072,_0x2ea3b8={'FaMoH':'image/jpeg','AzKqR':'image/png','diRXs':_0x17cf60(0xc3)};return[_0x2ea3b8['FaMoH'],_0x2ea3b8[_0x17cf60(0xed)],_0x2ea3b8['diRXs'],'image/webp'][_0x17cf60(0xd8)](_0x5e0d65);}function inferMediaType(_0x30664f,_0x3b3ae7){const _0x58fe60=_0xa072,_0x4182eb={'NSnBC':function(_0x4e4178,_0x477440){return _0x4e4178(_0x477440);},'iLEaM':'jpg','faubs':'jpeg','hsqsP':'png','Gqpno':'image/png','LFMpK':_0x58fe60(0xc4),'zySgR':_0x58fe60(0xc3),'LPBYk':_0x58fe60(0xcf)};if(_0x30664f){const _0x472937=_0x30664f[_0x58fe60(0xdb)]()['split'](';')[0x0][_0x58fe60(0xcb)]();if(_0x4182eb['NSnBC'](isValidMediaType,_0x472937))return _0x472937;}const _0xb93252=extname(_0x3b3ae7)['toLowerCase']()[_0x58fe60(0xce)]('.','');switch(_0xb93252){case _0x4182eb[_0x58fe60(0xc1)]:case _0x4182eb['faubs']:return'image/jpeg';case _0x4182eb[_0x58fe60(0xf2)]:return _0x4182eb[_0x58fe60(0xf9)];case _0x4182eb['LFMpK']:return _0x4182eb['zySgR'];case _0x4182eb[_0x58fe60(0xee)]:return _0x58fe60(0xe8);default:return _0x4182eb[_0x58fe60(0xf9)];}}async function readImageFromUrl(_0x4a1970){const _0x437502=_0xa072,_0x41d8ca={'bHEJB':'Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','NfxEX':_0x437502(0xf3),'SsvBO':function(_0x2b4b66,_0x42dee3){return _0x2b4b66(_0x42dee3);},'zxGlv':function(_0x31e83c,_0x313108){return _0x31e83c>_0x313108;},'ZYVbq':'base64','bpRov':function(_0x55f439,_0x4877e9,_0x49d354){return _0x55f439(_0x4877e9,_0x49d354);},'EUlzY':'http://','pDujg':'https://','MpiWi':function(_0x559515,_0x28e7dc,_0x38063b){return _0x559515(_0x28e7dc,_0x38063b);},'bNrur':function(_0x5e9e9c,_0x4cc208){return _0x5e9e9c(_0x4cc208);},'XVyWw':function(_0x499fe4,_0x9fd6be){return _0x499fe4>_0x9fd6be;}};if(isDataUrl(_0x4a1970)){const _0xeb18d6=parseDataUrl(_0x4a1970);if(_0xeb18d6)return _0xeb18d6;throw new Error(_0x41d8ca[_0x437502(0xef)]);}if(_0x4a1970['startsWith'](_0x41d8ca['NfxEX'])){const _0x24d7bc=_0x41d8ca['SsvBO'](fileURLToPath,_0x4a1970),_0x515381=await _0x41d8ca['SsvBO'](stat,_0x24d7bc);if(_0x41d8ca['zxGlv'](_0x515381['size'],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x437502(0xd7)+MAX_IMAGE_SIZE_BYTES+_0x437502(0xe4));const _0x4290db=await _0x41d8ca['SsvBO'](readFile,_0x24d7bc);return{'data':_0x4290db['toString'](_0x41d8ca[_0x437502(0xf8)]),'mediaType':_0x41d8ca['bpRov'](inferMediaType,null,_0x24d7bc)};}if(_0x4a1970[_0x437502(0xc5)](_0x41d8ca[_0x437502(0xc2)])||_0x4a1970['startsWith'](_0x41d8ca[_0x437502(0xe5)])){const _0x2e2a3d=await _0x41d8ca[_0x437502(0xeb)](fetch,_0x4a1970,{'signal':AbortSignal[_0x437502(0xfe)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x2e2a3d['ok'])throw new Error('Failed\x20to\x20fetch\x20image:\x20'+_0x2e2a3d[_0x437502(0xff)]);const _0x24db03=_0x2e2a3d[_0x437502(0xd3)][_0x437502(0xc8)](_0x437502(0xd2));if(_0x24db03){const _0x13b5ec=_0x41d8ca['bNrur'](Number,_0x24db03);if(!Number[_0x437502(0xd9)](_0x13b5ec)&&_0x13b5ec>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x437502(0xd7)+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');}const _0x37de96=await _0x2e2a3d[_0x437502(0xfc)]();if(_0x41d8ca['XVyWw'](_0x37de96[_0x437502(0xe6)],MAX_IMAGE_SIZE_BYTES))throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+'\x20bytes)');return{'data':Buffer['from'](_0x37de96)['toString'](_0x437502(0xd0)),'mediaType':inferMediaType(_0x2e2a3d[_0x437502(0xd3)]['get']('content-type'),_0x4a1970)};}const _0x366e49=await stat(_0x4a1970);if(_0x366e49[_0x437502(0xe7)]>MAX_IMAGE_SIZE_BYTES)throw new Error('Image\x20exceeds\x20size\x20limit\x20('+MAX_IMAGE_SIZE_BYTES+_0x437502(0xe4));const _0x4f7360=await readFile(_0x4a1970);return{'data':_0x4f7360[_0x437502(0xd5)](_0x41d8ca[_0x437502(0xf8)]),'mediaType':inferMediaType(null,_0x4a1970)};}async function convertImageBlockToBase64(_0x5c36ab){const _0x484797=_0xa072,_0x66e9={'pgEQq':_0x484797(0xd0)};if(_0x5c36ab['source']?.[_0x484797(0xf1)]===_0x66e9[_0x484797(0xdd)])return{'updated':![],'block':_0x5c36ab};if(_0x5c36ab['data']&&_0x5c36ab['mimeType'])return{'updated':![],'block':_0x5c36ab};const _0x1157ad=_0x5c36ab[_0x484797(0xf5)]?.['url']??_0x5c36ab[_0x484797(0xde)];if(!_0x1157ad)return{'updated':![],'block':_0x5c36ab};const _0x246b11=await readImageFromUrl(_0x1157ad);return{'updated':!![],'block':{..._0x5c36ab,'source':{'type':'base64','media_type':_0x246b11['mediaType'],'data':_0x246b11[_0x484797(0xe2)]},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x37d08a){const _0x5f122b=_0xa072,_0xac3cfd={'UrJnN':function(_0x1338ad,_0x3136db){return _0x1338ad(_0x3136db);}};if(!isRecord(_0x37d08a))return{'updated':![],'output':_0x37d08a};const _0x8500af=_0x37d08a[_0x5f122b(0xf4)];if(!Array[_0x5f122b(0xea)](_0x8500af))return{'updated':![],'output':_0x37d08a};let _0x39eb74=![];const _0x1b09b1=await Promise['all'](_0x8500af['map'](async _0xed201b=>{const _0x27357c=_0x5f122b;if(!isImageBlock(_0xed201b))return _0xed201b;try{const _0x3e5815=await _0xac3cfd[_0x27357c(0xc9)](convertImageBlockToBase64,_0xed201b);if(_0x3e5815['updated'])_0x39eb74=!![];return _0x3e5815[_0x27357c(0xda)];}catch{return _0xed201b;}}));if(!_0x39eb74)return{'updated':![],'output':_0x37d08a};return{'updated':!![],'output':{..._0x37d08a,'content':_0x1b09b1}};}function sanitizeLoneSurrogates(_0x368fd3){const _0x4cb6aa=_0xa072,_0x27d952={'PCotF':function(_0x8712b,_0x2f4390){return _0x8712b>=_0x2f4390;},'uvMcH':function(_0x34e0a2,_0x19420d){return _0x34e0a2+_0x19420d;}};let _0x2bdd2d=![],_0x5c7400='';for(let _0x23b969=0x0;_0x23b969<_0x368fd3[_0x4cb6aa(0xec)];_0x23b969+=0x1){const _0x420b35=_0x368fd3[_0x4cb6aa(0xbe)](_0x23b969);if(_0x27d952[_0x4cb6aa(0xf7)](_0x420b35,0xd800)&&_0x420b35<=0xdbff){const _0x35fb87=_0x368fd3['charCodeAt'](_0x27d952['uvMcH'](_0x23b969,0x1));if(_0x35fb87>=0xdc00&&_0x35fb87<=0xdfff){_0x5c7400+=_0x368fd3[_0x23b969]+_0x368fd3[_0x23b969+0x1],_0x23b969+=0x1;continue;}_0x2bdd2d=!![],_0x5c7400+='�';continue;}if(_0x420b35>=0xdc00&&_0x420b35<=0xdfff){_0x2bdd2d=!![],_0x5c7400+='�';continue;}_0x5c7400+=_0x368fd3[_0x23b969];}return _0x2bdd2d?{'updated':_0x2bdd2d,'value':_0x5c7400}:{'updated':_0x2bdd2d,'value':_0x368fd3};}function sanitizeLoneSurrogatesDeep(_0x4cfe4c){const _0x48e2ab=_0xa072,_0x3e9974={'yDiOL':function(_0x5a1656,_0x9ac9ea){return _0x5a1656(_0x9ac9ea);},'HdycO':function(_0x30b1fc,_0x598250){return _0x30b1fc(_0x598250);}};if(typeof _0x4cfe4c===_0x48e2ab(0xe9))return _0x3e9974['HdycO'](sanitizeLoneSurrogates,_0x4cfe4c);if(Array['isArray'](_0x4cfe4c)){let _0x5313b8=![];const _0x4e50b4=_0x4cfe4c['map'](_0x122655=>{const _0x5b0831=sanitizeLoneSurrogatesDeep(_0x122655);return _0x5b0831['updated']&&(_0x5313b8=!![]),_0x5b0831['value'];});return _0x5313b8?{'updated':!![],'value':_0x4e50b4}:{'updated':![],'value':_0x4cfe4c};}if(!_0x3e9974[_0x48e2ab(0xd4)](isRecord,_0x4cfe4c))return{'updated':![],'value':_0x4cfe4c};let _0x4aa3d3=![];const _0x2ef1a8=Object[_0x48e2ab(0xbf)](_0x4cfe4c)['map'](([_0xb3dd3,_0x543990])=>{const _0x43f94f=_0x48e2ab,_0x371233=_0x3e9974['yDiOL'](sanitizeLoneSurrogatesDeep,_0x543990);return _0x371233[_0x43f94f(0xcc)]&&(_0x4aa3d3=!![]),[_0xb3dd3,_0x371233[_0x43f94f(0xc6)]];});return _0x4aa3d3?{'updated':!![],'value':Object[_0x48e2ab(0xf0)](_0x2ef1a8)}:{'updated':![],'value':_0x4cfe4c};}export function createMcpImageBase64Hook(){const _0x3d08b2={'WSjSP':function(_0x4271b2,_0x1ceb8b){return _0x4271b2!==_0x1ceb8b;}};return async _0x48a9d8=>{const _0x49d091=_0xa072;if(_0x3d08b2[_0x49d091(0xdf)](_0x48a9d8[_0x49d091(0x100)],_0x49d091(0xdc)))return{};const _0x15a9e3=_0x48a9d8,_0x23fb78=await convertToolOutputImagesToBase64(_0x15a9e3[_0x49d091(0xca)]),_0x490736=sanitizeLoneSurrogatesDeep(_0x23fb78['output']),_0x1e559e=_0x23fb78[_0x49d091(0xcc)]||_0x490736[_0x49d091(0xcc)];if(!_0x1e559e)return{};return{'hookSpecificOutput':{'hookEventName':_0x49d091(0xdc),'updatedMCPToolOutput':_0x490736['value']}};};}
|
|
1
|
+
(function(_0xd08782,_0x141df1){const _0x5c080c=_0x1323,_0x25f058=_0xd08782();while(!![]){try{const _0xbde900=parseInt(_0x5c080c(0x103))/0x1+parseInt(_0x5c080c(0x124))/0x2+parseInt(_0x5c080c(0xf2))/0x3*(-parseInt(_0x5c080c(0xe7))/0x4)+parseInt(_0x5c080c(0xf7))/0x5*(parseInt(_0x5c080c(0xe8))/0x6)+-parseInt(_0x5c080c(0xf4))/0x7*(-parseInt(_0x5c080c(0x11e))/0x8)+parseInt(_0x5c080c(0x10c))/0x9+-parseInt(_0x5c080c(0x10f))/0xa;if(_0xbde900===_0x141df1)break;else _0x25f058['push'](_0x25f058['shift']());}catch(_0x1f0be1){_0x25f058['push'](_0x25f058['shift']());}}}(_0x5d99,0x395a9));import{readFile,stat}from'fs/promises';function _0x1323(_0x109e80,_0xc38c1f){_0x109e80=_0x109e80-0xe6;const _0x5d99a9=_0x5d99();let _0x132398=_0x5d99a9[_0x109e80];return _0x132398;}import{extname}from'path';function _0x5d99(){const _0x550746=['miKyV','BEmEy','image/webp','lVEJl','AGlFn','from','WVOSh','includes','rOYjr','15752qXPOuF','Image\x20exceeds\x20size\x20limit\x20(','sBTwd','base64','AIPTm','size','687100QVzdTS','value','Kiuwn','content','source','tvKOk','ARLJN','entries','image/gif','judfp','all','status','Unsupported\x20or\x20invalid\x20data\x20URL\x20for\x20image\x20content','MFulR','598824HfXjOD','6DlYFLf','startsWith','GQRsQ','fCxPA','iYaap','url','isNaN','image/png','jNYdc','timeout','3FesgZd','get','1589HBAlKc','VAydh','byteLength','1741855CMDMZM','map','charCodeAt','onqGI','data','PostToolUse','tool_response','https://','ducjg','toLowerCase','Failed\x20to\x20fetch\x20image:\x20','type','206920ObRrMZ','PeaWg','mediaType','jpg','isArray','toString','SwQaM','OYdOs','replace','639054WVtzlx','jpeg','updated','10321830Wppvww','headers','\x20bytes)','bdlAW','WVXJs','TfoVO'];_0x5d99=function(){return _0x550746;};return _0x5d99();}import{fileURLToPath}from'url';const MAX_IMAGE_SIZE_BYTES=0xa*0x400*0x400,IMAGE_FETCH_TIMEOUT_MS=0x7530;function isRecord(_0x52e4da){const _0x343a96={'YCuyQ':'object'};return typeof _0x52e4da===_0x343a96['YCuyQ']&&_0x52e4da!==null;}function isImageBlock(_0x240624){const _0x4ed30b=_0x1323,_0x5f546b={'TfoVO':function(_0x1357c3,_0x30c4c1){return _0x1357c3(_0x30c4c1);},'judfp':'image'};return _0x5f546b[_0x4ed30b(0x114)](isRecord,_0x240624)&&_0x240624[_0x4ed30b(0x102)]===_0x5f546b[_0x4ed30b(0x12d)];}function isDataUrl(_0x179704){const _0x488cda=_0x1323,_0x5a8d62={'aqjde':'data:'};return _0x179704[_0x488cda(0xe9)](_0x5a8d62['aqjde']);}function parseDataUrl(_0x47c186){const _0x2a98c3=_0x1323,_0x25bbcd={'WVOSh':function(_0x5c1ee3,_0x132d65){return _0x5c1ee3(_0x132d65);}},_0x1c88a0=/^data:([^;]+);base64,(.+)$/['exec'](_0x47c186);if(!_0x1c88a0)return null;const _0x41758b=_0x1c88a0[0x1][_0x2a98c3(0x100)]();if(!_0x25bbcd[_0x2a98c3(0x11b)](isValidMediaType,_0x41758b))return null;return{'data':_0x1c88a0[0x2],'mediaType':_0x41758b};}function isValidMediaType(_0x29e71a){const _0x43a48a=_0x1323,_0x471afa={'bdlAW':'image/gif'};return['image/jpeg','image/png',_0x471afa[_0x43a48a(0x112)],_0x43a48a(0x117)][_0x43a48a(0x11c)](_0x29e71a);}function inferMediaType(_0x4fba5a,_0x358fa5){const _0x4690a6=_0x1323,_0x580711={'onqGI':function(_0x1ea6b5,_0x3b9dd4){return _0x1ea6b5(_0x3b9dd4);},'MFulR':function(_0x22d9ad,_0x3193b4){return _0x22d9ad(_0x3193b4);},'jNYdc':'image/jpeg','mWZdm':_0x4690a6(0x12c),'GQRsQ':'image/webp','sBTwd':_0x4690a6(0xef)};if(_0x4fba5a){const _0x313484=_0x4fba5a['toLowerCase']()['split'](';')[0x0]['trim']();if(_0x580711[_0x4690a6(0xfa)](isValidMediaType,_0x313484))return _0x313484;}const _0x12cc19=_0x580711[_0x4690a6(0xe6)](extname,_0x358fa5)[_0x4690a6(0x100)]()[_0x4690a6(0x10b)]('.','');switch(_0x12cc19){case _0x4690a6(0x106):case _0x4690a6(0x10d):return _0x580711[_0x4690a6(0xf0)];case'png':return'image/png';case'gif':return _0x580711['mWZdm'];case'webp':return _0x580711[_0x4690a6(0xea)];default:return _0x580711[_0x4690a6(0x120)];}}async function readImageFromUrl(_0x1d84d7){const _0x3f4439=_0x1323,_0x3c8a53={'AIPTm':_0x3f4439(0x130),'AGlFn':function(_0x52ffbf,_0x3f37d7){return _0x52ffbf(_0x3f37d7);},'miKyV':function(_0x2aa4b6,_0x460772){return _0x2aa4b6>_0x460772;},'OYdOs':'http://','tOrDV':_0x3f4439(0xfe),'UJzQk':'content-length','rRUIf':function(_0x1328fb,_0x2aca30){return _0x1328fb>_0x2aca30;},'lVEJl':function(_0x54478f,_0x98e213){return _0x54478f>_0x98e213;},'Kiuwn':function(_0x23bdeb,_0x567186,_0x594902){return _0x23bdeb(_0x567186,_0x594902);},'fCxPA':_0x3f4439(0x121)};if(isDataUrl(_0x1d84d7)){const _0x1bdac5=parseDataUrl(_0x1d84d7);if(_0x1bdac5)return _0x1bdac5;throw new Error(_0x3c8a53[_0x3f4439(0x122)]);}if(_0x1d84d7['startsWith']('file://')){const _0x4124f2=_0x3c8a53[_0x3f4439(0x119)](fileURLToPath,_0x1d84d7),_0x37517a=await stat(_0x4124f2);if(_0x3c8a53[_0x3f4439(0x115)](_0x37517a[_0x3f4439(0x123)],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x3f4439(0x11f)+MAX_IMAGE_SIZE_BYTES+_0x3f4439(0x111));const _0x58a8a4=await readFile(_0x4124f2);return{'data':_0x58a8a4[_0x3f4439(0x108)](_0x3f4439(0x121)),'mediaType':inferMediaType(null,_0x4124f2)};}if(_0x1d84d7[_0x3f4439(0xe9)](_0x3c8a53[_0x3f4439(0x10a)])||_0x1d84d7[_0x3f4439(0xe9)](_0x3c8a53['tOrDV'])){const _0x2b7a61=await fetch(_0x1d84d7,{'signal':AbortSignal[_0x3f4439(0xf1)](IMAGE_FETCH_TIMEOUT_MS)});if(!_0x2b7a61['ok'])throw new Error(_0x3f4439(0x101)+_0x2b7a61[_0x3f4439(0x12f)]);const _0x1376a1=_0x2b7a61[_0x3f4439(0x110)][_0x3f4439(0xf3)](_0x3c8a53['UJzQk']);if(_0x1376a1){const _0x30e444=_0x3c8a53['AGlFn'](Number,_0x1376a1);if(!Number[_0x3f4439(0xee)](_0x30e444)&&_0x3c8a53['rRUIf'](_0x30e444,MAX_IMAGE_SIZE_BYTES))throw new Error(_0x3f4439(0x11f)+MAX_IMAGE_SIZE_BYTES+_0x3f4439(0x111));}const _0x44f08b=await _0x2b7a61['arrayBuffer']();if(_0x3c8a53[_0x3f4439(0x118)](_0x44f08b[_0x3f4439(0xf6)],MAX_IMAGE_SIZE_BYTES))throw new Error(_0x3f4439(0x11f)+MAX_IMAGE_SIZE_BYTES+_0x3f4439(0x111));return{'data':Buffer[_0x3f4439(0x11a)](_0x44f08b)['toString'](_0x3f4439(0x121)),'mediaType':_0x3c8a53[_0x3f4439(0x126)](inferMediaType,_0x2b7a61[_0x3f4439(0x110)][_0x3f4439(0xf3)]('content-type'),_0x1d84d7)};}const _0x2d8eb4=await _0x3c8a53['AGlFn'](stat,_0x1d84d7);if(_0x2d8eb4[_0x3f4439(0x123)]>MAX_IMAGE_SIZE_BYTES)throw new Error(_0x3f4439(0x11f)+MAX_IMAGE_SIZE_BYTES+_0x3f4439(0x111));const _0x514804=await readFile(_0x1d84d7);return{'data':_0x514804['toString'](_0x3c8a53[_0x3f4439(0xeb)]),'mediaType':inferMediaType(null,_0x1d84d7)};}async function convertImageBlockToBase64(_0x3c47d7){const _0x2fb2fd=_0x1323,_0x358a01={'iYaap':'base64','ARLJN':function(_0x9a3f15,_0x3d60cd){return _0x9a3f15(_0x3d60cd);}};if(_0x3c47d7['source']?.[_0x2fb2fd(0x102)]===_0x358a01[_0x2fb2fd(0xec)])return{'updated':![],'block':_0x3c47d7};if(_0x3c47d7[_0x2fb2fd(0xfb)]&&_0x3c47d7['mimeType'])return{'updated':![],'block':_0x3c47d7};const _0x6bc2b2=_0x3c47d7[_0x2fb2fd(0x128)]?.[_0x2fb2fd(0xed)]??_0x3c47d7[_0x2fb2fd(0xed)];if(!_0x6bc2b2)return{'updated':![],'block':_0x3c47d7};const _0x4f6791=await _0x358a01[_0x2fb2fd(0x12a)](readImageFromUrl,_0x6bc2b2);return{'updated':!![],'block':{..._0x3c47d7,'source':{'type':_0x2fb2fd(0x121),'media_type':_0x4f6791[_0x2fb2fd(0x105)],'data':_0x4f6791[_0x2fb2fd(0xfb)]},'url':undefined}};}async function convertToolOutputImagesToBase64(_0x531a47){const _0x34840c=_0x1323,_0x2d4d98={'PeaWg':function(_0x654d20,_0x16f02b){return _0x654d20(_0x16f02b);}};if(!_0x2d4d98[_0x34840c(0x104)](isRecord,_0x531a47))return{'updated':![],'output':_0x531a47};const _0x5e219b=_0x531a47[_0x34840c(0x127)];if(!Array[_0x34840c(0x107)](_0x5e219b))return{'updated':![],'output':_0x531a47};let _0x11587f=![];const _0x5ab37a=await Promise[_0x34840c(0x12e)](_0x5e219b['map'](async _0xa5149c=>{if(!_0x2d4d98['PeaWg'](isImageBlock,_0xa5149c))return _0xa5149c;try{const _0x496565=await convertImageBlockToBase64(_0xa5149c);if(_0x496565['updated'])_0x11587f=!![];return _0x496565['block'];}catch{return _0xa5149c;}}));if(!_0x11587f)return{'updated':![],'output':_0x531a47};return{'updated':!![],'output':{..._0x531a47,'content':_0x5ab37a}};}function sanitizeLoneSurrogates(_0x2747ab){const _0x17db2c=_0x1323,_0x11baef={'BEmEy':function(_0x4045a4,_0x27fc31){return _0x4045a4<_0x27fc31;},'rOYjr':function(_0x17a468,_0x2324ef){return _0x17a468>=_0x2324ef;},'WVXJs':function(_0x4a9427,_0x42697f){return _0x4a9427+_0x42697f;},'SwQaM':function(_0x21294a,_0x283698){return _0x21294a+_0x283698;}};let _0x215cd3=![],_0x5db028='';for(let _0x1cddb5=0x0;_0x11baef[_0x17db2c(0x116)](_0x1cddb5,_0x2747ab['length']);_0x1cddb5+=0x1){const _0x3b506b=_0x2747ab[_0x17db2c(0xf9)](_0x1cddb5);if(_0x11baef[_0x17db2c(0x11d)](_0x3b506b,0xd800)&&_0x3b506b<=0xdbff){const _0x45ba3b=_0x2747ab[_0x17db2c(0xf9)](_0x11baef[_0x17db2c(0x113)](_0x1cddb5,0x1));if(_0x11baef['rOYjr'](_0x45ba3b,0xdc00)&&_0x45ba3b<=0xdfff){_0x5db028+=_0x11baef[_0x17db2c(0x109)](_0x2747ab[_0x1cddb5],_0x2747ab[_0x11baef['SwQaM'](_0x1cddb5,0x1)]),_0x1cddb5+=0x1;continue;}_0x215cd3=!![],_0x5db028+='�';continue;}if(_0x11baef['rOYjr'](_0x3b506b,0xdc00)&&_0x3b506b<=0xdfff){_0x215cd3=!![],_0x5db028+='�';continue;}_0x5db028+=_0x2747ab[_0x1cddb5];}return _0x215cd3?{'updated':_0x215cd3,'value':_0x5db028}:{'updated':_0x215cd3,'value':_0x2747ab};}function sanitizeLoneSurrogatesDeep(_0xd8a8d4){const _0x295fc7=_0x1323,_0x21ea5b={'mrjxI':function(_0x1ef31e,_0x760387){return _0x1ef31e(_0x760387);},'ducjg':function(_0x43daf1,_0x448643){return _0x43daf1===_0x448643;}};if(_0x21ea5b[_0x295fc7(0xff)](typeof _0xd8a8d4,'string'))return sanitizeLoneSurrogates(_0xd8a8d4);if(Array['isArray'](_0xd8a8d4)){let _0xf148fd=![];const _0x11aa54=_0xd8a8d4[_0x295fc7(0xf8)](_0x4f4068=>{const _0x237303=_0x295fc7,_0x1ffb40=sanitizeLoneSurrogatesDeep(_0x4f4068);return _0x1ffb40[_0x237303(0x10e)]&&(_0xf148fd=!![]),_0x1ffb40[_0x237303(0x125)];});return _0xf148fd?{'updated':!![],'value':_0x11aa54}:{'updated':![],'value':_0xd8a8d4};}if(!isRecord(_0xd8a8d4))return{'updated':![],'value':_0xd8a8d4};let _0x3e9084=![];const _0x131868=Object[_0x295fc7(0x12b)](_0xd8a8d4)[_0x295fc7(0xf8)](([_0x3f0835,_0x18e5da])=>{const _0x43af17=_0x21ea5b['mrjxI'](sanitizeLoneSurrogatesDeep,_0x18e5da);return _0x43af17['updated']&&(_0x3e9084=!![]),[_0x3f0835,_0x43af17['value']];});return _0x3e9084?{'updated':!![],'value':Object['fromEntries'](_0x131868)}:{'updated':![],'value':_0xd8a8d4};}export function createMcpImageBase64Hook(){const _0x186310=_0x1323,_0x56c34a={'tvKOk':function(_0x29c117,_0x49d262){return _0x29c117!==_0x49d262;},'VggmH':_0x186310(0xfc),'VAydh':function(_0x5b32d7,_0x40f07a){return _0x5b32d7(_0x40f07a);}};return async _0x2191a7=>{const _0x4f52a7=_0x186310;if(_0x56c34a[_0x4f52a7(0x129)](_0x2191a7['hook_event_name'],_0x56c34a['VggmH']))return{};const _0x5d8e50=_0x2191a7,_0x2778e5=await convertToolOutputImagesToBase64(_0x5d8e50[_0x4f52a7(0xfd)]),_0x4a169b=_0x56c34a[_0x4f52a7(0xf5)](sanitizeLoneSurrogatesDeep,_0x2778e5['output']),_0x52d637=_0x2778e5[_0x4f52a7(0x10e)]||_0x4a169b['updated'];if(!_0x52d637)return{};return{'hookSpecificOutput':{'hookEventName':_0x4f52a7(0xfc),'updatedMCPToolOutput':_0x4a169b['value']}};};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x367177=_0x4806;function _0x4806(_0x9cb006,_0x5348d3){_0x9cb006=_0x9cb006-0xa9;const _0xccf161=_0xccf1();let _0x480608=_0xccf161[_0x9cb006];return _0x480608;}(function(_0x325e2a,_0x35e54a){const _0x52173b=_0x4806,_0x255063=_0x325e2a();while(!![]){try{const _0x117556=-parseInt(_0x52173b(0xb3))/0x1+-parseInt(_0x52173b(0xac))/0x2+parseInt(_0x52173b(0xb2))/0x3*(parseInt(_0x52173b(0xad))/0x4)+parseInt(_0x52173b(0xb4))/0x5*(-parseInt(_0x52173b(0xab))/0x6)+parseInt(_0x52173b(0xb1))/0x7*(-parseInt(_0x52173b(0xb0))/0x8)+parseInt(_0x52173b(0xaf))/0x9+parseInt(_0x52173b(0xae))/0xa;if(_0x117556===_0x35e54a)break;else _0x255063['push'](_0x255063['shift']());}catch(_0xcb60b0){_0x255063['push'](_0x255063['shift']());}}}(_0xccf1,0xd0b19));const VERIFY_MODEL_ALIASES={'opus':_0x367177(0xaa),'sonnet':'claude-sonnet-4-6'};export const DEFAULT_VERIFY_MODEL='claude-sonnet-4-6';export function resolveVerifyModel(_0x53ecfb){const _0x1311ee=_0x367177,_0x4f5f44={'GxHbR':function(_0x3ba978,_0x132c7f){return _0x3ba978??_0x132c7f;}};if(!_0x53ecfb)return undefined;const _0x27c26d=_0x53ecfb[_0x1311ee(0xa9)]();if(!_0x27c26d)return undefined;const _0x4579b5=VERIFY_MODEL_ALIASES[_0x27c26d['toLowerCase']()];return _0x4f5f44['GxHbR'](_0x4579b5,_0x27c26d);}function _0xccf1(){const _0x20247b=['1371eWmokM','65632QrsTVw','60nRGgXj','trim','claude-opus-4-6','254154kIKbKa','1723924CEWHiO','2504EYnewQ','27034440qqRRtb','5736798gWOFda','1527128FxyOmR','49oeOuHQ'];_0xccf1=function(){return _0x20247b;};return _0xccf1();}
|