From b14135ed7292447cf7183667026d91a960198999 Mon Sep 17 00:00:00 2001 From: linyuchen Date: Sat, 11 May 2024 13:43:07 +0800 Subject: [PATCH] refactor: Use remote rkey --- .../src/adapters/NodeIDependsAdapter.js | 2 +- .../src/adapters/NodeIDispatcherAdapter.js | 2 +- .../src/adapters/NodeIGlobalAdapter.js | 2 +- src/core.lib/src/adapters/index.js | 2 +- src/core.lib/src/apis/file.js | 2 +- src/core.lib/src/apis/friend.js | 2 +- src/core.lib/src/apis/group.js | 2 +- src/core.lib/src/apis/index.js | 2 +- src/core.lib/src/apis/msg.js | 2 +- src/core.lib/src/apis/sign.js | 2 +- src/core.lib/src/apis/user.js | 2 +- src/core.lib/src/apis/webapi.js | 2 +- src/core.lib/src/core.js | 2 +- src/core.lib/src/data.d.ts | 6 +- src/core.lib/src/data.js | 2 +- src/core.lib/src/entities/cache.js | 2 +- src/core.lib/src/entities/constructor.js | 2 +- src/core.lib/src/entities/group.d.ts | 6 +- src/core.lib/src/entities/group.js | 2 +- src/core.lib/src/entities/index.js | 2 +- src/core.lib/src/entities/msg.js | 2 +- src/core.lib/src/entities/notify.js | 2 +- src/core.lib/src/entities/user.d.ts | 3 +- src/core.lib/src/entities/user.js | 2 +- src/core.lib/src/external/hook.js | 2 +- src/core.lib/src/index.js | 2 +- .../listeners/NodeIKernelBuddyListener.d.ts | 9 +- .../src/listeners/NodeIKernelBuddyListener.js | 2 +- .../NodeIKernelFileAssistantListener.js | 2 +- .../src/listeners/NodeIKernelGroupListener.js | 2 +- .../src/listeners/NodeIKernelLoginListener.js | 2 +- .../src/listeners/NodeIKernelMsgListener.js | 2 +- .../listeners/NodeIKernelProfileListener.js | 2 +- .../src/listeners/NodeIKernelRobotListener.js | 2 +- .../listeners/NodeIKernelSessionListener.js | 2 +- .../NodeIKernelStorageCleanListener.js | 2 +- src/core.lib/src/listeners/index.js | 2 +- src/core.lib/src/services/common.js | 2 +- src/core.lib/src/services/index.js | 2 +- src/core.lib/src/sessionConfig.js | 2 +- src/core.lib/src/utils/config.js | 2 +- src/core.lib/src/utils/db.js | 2 +- src/core.lib/src/wrapper.d.ts | 88 ++++++++++--------- src/core.lib/src/wrapper.js | 2 +- 44 files changed, 93 insertions(+), 97 deletions(-) diff --git a/src/core.lib/src/adapters/NodeIDependsAdapter.js b/src/core.lib/src/adapters/NodeIDependsAdapter.js index 5be09a49..1bc9404d 100644 --- a/src/core.lib/src/adapters/NodeIDependsAdapter.js +++ b/src/core.lib/src/adapters/NodeIDependsAdapter.js @@ -1 +1 @@ -function _0x17d8(){var _0x5694df=['onMSFSsoError','3238890dwfwfl','30jJrteq','1ImCJWd','3590hluMip','5056fkZwmi','375044suweBc','200438CvyUyZ','1114435azHjEO','2133bkntnk','getGroupCode','19426IlEnmJ','30tpzwCM','27850104QBYMiy'];_0x17d8=function(){return _0x5694df;};return _0x17d8();}var _0x505f3c=_0x1f5f;function _0x1f5f(_0x250e11,_0x51c242){var _0x17d8b8=_0x17d8();return _0x1f5f=function(_0x1f5fae,_0x507b30){_0x1f5fae=_0x1f5fae-0x99;var _0x205e3b=_0x17d8b8[_0x1f5fae];return _0x205e3b;},_0x1f5f(_0x250e11,_0x51c242);}(function(_0x1bc38b,_0x10e5fd){var _0x1a2732=_0x1f5f,_0x39b6cf=_0x1bc38b();while(!![]){try{var _0x3dc2e1=-parseInt(_0x1a2732(0x99))/0x1*(-parseInt(_0x1a2732(0x9d))/0x2)+parseInt(_0x1a2732(0xa6))/0x3*(-parseInt(_0x1a2732(0x9c))/0x4)+parseInt(_0x1a2732(0xa5))/0x5+parseInt(_0x1a2732(0xa2))/0x6*(-parseInt(_0x1a2732(0x9e))/0x7)+-parseInt(_0x1a2732(0x9b))/0x8*(-parseInt(_0x1a2732(0x9f))/0x9)+-parseInt(_0x1a2732(0x9a))/0xa*(parseInt(_0x1a2732(0xa1))/0xb)+parseInt(_0x1a2732(0xa3))/0xc;if(_0x3dc2e1===_0x10e5fd)break;else _0x39b6cf['push'](_0x39b6cf['shift']());}catch(_0x2692d6){_0x39b6cf['push'](_0x39b6cf['shift']());}}}(_0x17d8,0xcfc32));export class DependsAdapter{['onMSFStatusChange'](_0x5e120f,_0x143e38){}[_0x505f3c(0xa4)](_0x472e7b){}[_0x505f3c(0xa0)](_0x494ba5){}} \ No newline at end of file +function _0x2447(){var _0x40715d=['767928djIDKx','2613555LtFJNB','88880ITNkwU','4272LXSycu','getGroupCode','7731ImFEuE','63sfXUOj','119514rxaZvL','6MAtdxI','5478560FwCVSe','3257401IvFXNP'];_0x2447=function(){return _0x40715d;};return _0x2447();}var _0x255d07=_0x41cd;function _0x41cd(_0x5cef73,_0x12e48d){var _0x24471d=_0x2447();return _0x41cd=function(_0x41cd42,_0xac0095){_0x41cd42=_0x41cd42-0x152;var _0x389d9=_0x24471d[_0x41cd42];return _0x389d9;},_0x41cd(_0x5cef73,_0x12e48d);}(function(_0x57a7ff,_0x3c0999){var _0x5414e6=_0x41cd,_0x591d70=_0x57a7ff();while(!![]){try{var _0x4d1a4a=parseInt(_0x5414e6(0x158))/0x1*(-parseInt(_0x5414e6(0x157))/0x2)+-parseInt(_0x5414e6(0x156))/0x3*(-parseInt(_0x5414e6(0x152))/0x4)+-parseInt(_0x5414e6(0x15c))/0x5+parseInt(_0x5414e6(0x15b))/0x6+parseInt(_0x5414e6(0x15a))/0x7+-parseInt(_0x5414e6(0x153))/0x8*(parseInt(_0x5414e6(0x155))/0x9)+parseInt(_0x5414e6(0x159))/0xa;if(_0x4d1a4a===_0x3c0999)break;else _0x591d70['push'](_0x591d70['shift']());}catch(_0x1503d5){_0x591d70['push'](_0x591d70['shift']());}}}(_0x2447,0x41648));export class DependsAdapter{['onMSFStatusChange'](_0x2e5ba0,_0x5859ee){}['onMSFSsoError'](_0x540230){}[_0x255d07(0x154)](_0x341797){}} \ No newline at end of file diff --git a/src/core.lib/src/adapters/NodeIDispatcherAdapter.js b/src/core.lib/src/adapters/NodeIDispatcherAdapter.js index 146d2f09..05f129e4 100644 --- a/src/core.lib/src/adapters/NodeIDispatcherAdapter.js +++ b/src/core.lib/src/adapters/NodeIDispatcherAdapter.js @@ -1 +1 @@ -var _0x5ddcc4=_0x577a;function _0x577a(_0x4a14fa,_0x17ecc1){var _0x5d9534=_0x5d95();return _0x577a=function(_0x577a25,_0x4bd0ad){_0x577a25=_0x577a25-0x1bd;var _0x3f9579=_0x5d9534[_0x577a25];return _0x3f9579;},_0x577a(_0x4a14fa,_0x17ecc1);}function _0x5d95(){var _0x3a2531=['28rzejXc','18nvKNwz','29437oKURhS','4974152mOdpgX','2894697TDwviC','1808688xbQfgD','dispatchRequest','5999395lQhzAk','dispatchCall','6764370oZxyTR','1931531MApCKC'];_0x5d95=function(){return _0x3a2531;};return _0x5d95();}(function(_0x43309e,_0x10ce7e){var _0x5b79ae=_0x577a,_0x4b0033=_0x43309e();while(!![]){try{var _0x5eff22=-parseInt(_0x5b79ae(0x1bf))/0x1*(parseInt(_0x5b79ae(0x1bd))/0x2)+-parseInt(_0x5b79ae(0x1c1))/0x3+parseInt(_0x5b79ae(0x1c2))/0x4+parseInt(_0x5b79ae(0x1c4))/0x5+-parseInt(_0x5b79ae(0x1c6))/0x6+parseInt(_0x5b79ae(0x1c7))/0x7+parseInt(_0x5b79ae(0x1c0))/0x8*(parseInt(_0x5b79ae(0x1be))/0x9);if(_0x5eff22===_0x10ce7e)break;else _0x4b0033['push'](_0x4b0033['shift']());}catch(_0x333ea5){_0x4b0033['push'](_0x4b0033['shift']());}}}(_0x5d95,0xa2de6));export class DispatcherAdapter{[_0x5ddcc4(0x1c3)](_0x467943){}[_0x5ddcc4(0x1c5)](_0xa54f12){}['dispatchCallWithJson'](_0x2e32cd){}} \ No newline at end of file +var _0x3de2e4=_0x2540;function _0x232a(){var _0xfaa861=['13366TCpArG','114600bzkmxJ','12222dloHSn','217HnnbDg','2462142PwpkNp','2751925DTqjRJ','1511320MYXSpE','910szgNEo','dispatchCall','88swNYuM','63630fOvCkS','4GQwgLe'];_0x232a=function(){return _0xfaa861;};return _0x232a();}function _0x2540(_0x45ccb8,_0x573f47){var _0x232a07=_0x232a();return _0x2540=function(_0x2540df,_0x80e83c){_0x2540df=_0x2540df-0xd7;var _0x3c6216=_0x232a07[_0x2540df];return _0x3c6216;},_0x2540(_0x45ccb8,_0x573f47);}(function(_0x2f493a,_0x3c1636){var _0x241720=_0x2540,_0x37f272=_0x2f493a();while(!![]){try{var _0x44217c=-parseInt(_0x241720(0xdd))/0x1*(parseInt(_0x241720(0xde))/0x2)+parseInt(_0x241720(0xdc))/0x3*(parseInt(_0x241720(0xdb))/0x4)+parseInt(_0x241720(0xd8))/0x5+parseInt(_0x241720(0xe2))/0x6+-parseInt(_0x241720(0xe1))/0x7*(parseInt(_0x241720(0xdf))/0x8)+parseInt(_0x241720(0xe0))/0x9*(-parseInt(_0x241720(0xd9))/0xa)+-parseInt(_0x241720(0xd7))/0xb;if(_0x44217c===_0x3c1636)break;else _0x37f272['push'](_0x37f272['shift']());}catch(_0x169507){_0x37f272['push'](_0x37f272['shift']());}}}(_0x232a,0x51b59));export class DispatcherAdapter{['dispatchRequest'](_0xf06f3){}[_0x3de2e4(0xda)](_0x5d3ee4){}['dispatchCallWithJson'](_0x41bc9c){}} \ No newline at end of file diff --git a/src/core.lib/src/adapters/NodeIGlobalAdapter.js b/src/core.lib/src/adapters/NodeIGlobalAdapter.js index 8173d936..6c30844b 100644 --- a/src/core.lib/src/adapters/NodeIGlobalAdapter.js +++ b/src/core.lib/src/adapters/NodeIGlobalAdapter.js @@ -1 +1 @@ -function _0x57c3(){var _0x6ef6b=['onShowErrUITips','27388khJIdg','246552fJDbzw','onGetOfflineMsg','1426365Zdgwqb','908432GhzxwW','fixPicImgType','92089dauVTr','495420lEwNAh','onLog','onInstallFinished','1783020VFvUrD','getAppSetting'];_0x57c3=function(){return _0x6ef6b;};return _0x57c3();}var _0x510840=_0x8096;function _0x8096(_0x3e941f,_0x473614){var _0x57c33d=_0x57c3();return _0x8096=function(_0x80964,_0x4effd0){_0x80964=_0x80964-0xa4;var _0x417f5e=_0x57c33d[_0x80964];return _0x417f5e;},_0x8096(_0x3e941f,_0x473614);}(function(_0x5ca683,_0x926acf){var _0x437c51=_0x8096,_0x5d7818=_0x5ca683();while(!![]){try{var _0x2fb9ca=parseInt(_0x437c51(0xaa))/0x1+-parseInt(_0x437c51(0xab))/0x2+-parseInt(_0x437c51(0xa5))/0x3+-parseInt(_0x437c51(0xa4))/0x4+parseInt(_0x437c51(0xa7))/0x5+parseInt(_0x437c51(0xae))/0x6+-parseInt(_0x437c51(0xa8))/0x7;if(_0x2fb9ca===_0x926acf)break;else _0x5d7818['push'](_0x5d7818['shift']());}catch(_0x978e5){_0x5d7818['push'](_0x5d7818['shift']());}}}(_0x57c3,0x32c8f));export class GlobalAdapter{[_0x510840(0xac)](..._0x20d300){}['onGetSrvCalTime'](..._0x15bb0c){}[_0x510840(0xb0)](..._0x6e871e){}[_0x510840(0xa9)](..._0x195481){}[_0x510840(0xaf)](..._0x547248){}[_0x510840(0xad)](..._0x4f7bf3){}['onUpdateGeneralFlag'](..._0x3b39e9){}[_0x510840(0xa6)](..._0x204886){}} \ No newline at end of file +function _0x4bec(){var _0x2affc4=['onShowErrUITips','6689450DqNZBP','34ZMyCSv','12LePUbj','1207507NfdXrz','1104025dBWvym','46614SyguOc','4zBaAhp','onInstallFinished','4959cKBJdo','11957682EFPufC','16003etUzGt','fixPicImgType','6704rugBBT','onGetSrvCalTime','onGetOfflineMsg'];_0x4bec=function(){return _0x2affc4;};return _0x4bec();}var _0x35d759=_0x4d9b;(function(_0x4bb643,_0x132819){var _0x50e673=_0x4d9b,_0x3322ef=_0x4bb643();while(!![]){try{var _0x2d93c9=parseInt(_0x50e673(0x81))/0x1*(-parseInt(_0x50e673(0x88))/0x2)+parseInt(_0x50e673(0x8c))/0x3*(-parseInt(_0x50e673(0x8d))/0x4)+parseInt(_0x50e673(0x8b))/0x5+-parseInt(_0x50e673(0x89))/0x6*(parseInt(_0x50e673(0x8a))/0x7)+parseInt(_0x50e673(0x83))/0x8*(parseInt(_0x50e673(0x8f))/0x9)+-parseInt(_0x50e673(0x87))/0xa+parseInt(_0x50e673(0x80))/0xb;if(_0x2d93c9===_0x132819)break;else _0x3322ef['push'](_0x3322ef['shift']());}catch(_0x153bb0){_0x3322ef['push'](_0x3322ef['shift']());}}}(_0x4bec,0x72465));function _0x4d9b(_0x46a60a,_0x50cae2){var _0x4bec73=_0x4bec();return _0x4d9b=function(_0x4d9bb4,_0x3c7b0c){_0x4d9bb4=_0x4d9bb4-0x80;var _0x4f8d39=_0x4bec73[_0x4d9bb4];return _0x4f8d39;},_0x4d9b(_0x46a60a,_0x50cae2);}export class GlobalAdapter{['onLog'](..._0x19b37e){}[_0x35d759(0x84)](..._0x4af973){}[_0x35d759(0x86)](..._0x2760d6){}[_0x35d759(0x82)](..._0x1a1083){}['getAppSetting'](..._0x19d531){}[_0x35d759(0x8e)](..._0x1771c2){}['onUpdateGeneralFlag'](..._0xf2cd68){}[_0x35d759(0x85)](..._0x50ea80){}} \ No newline at end of file diff --git a/src/core.lib/src/adapters/index.js b/src/core.lib/src/adapters/index.js index 313d4aeb..1526de11 100644 --- a/src/core.lib/src/adapters/index.js +++ b/src/core.lib/src/adapters/index.js @@ -1 +1 @@ -function _0x5ed0(){var _0x69a451=['493497PHECkP','2956987jCfecQ','834zjORwY','90TzVfOr','4qRFLQu','4090168UQXyuJ','3518RfZPhj','449445yrwpCC','12ocPvDN','5810yHSLke','4506kSyDUb','2843935lbltXN'];_0x5ed0=function(){return _0x69a451;};return _0x5ed0();}(function(_0x56275f,_0x1d7015){var _0xaf83d1=_0x4e9a,_0x38a2b7=_0x56275f();while(!![]){try{var _0x32af61=-parseInt(_0xaf83d1(0x13c))/0x1+parseInt(_0xaf83d1(0x13b))/0x2*(parseInt(_0xaf83d1(0x137))/0x3)+-parseInt(_0xaf83d1(0x139))/0x4*(parseInt(_0xaf83d1(0x140))/0x5)+parseInt(_0xaf83d1(0x13f))/0x6*(parseInt(_0xaf83d1(0x13e))/0x7)+parseInt(_0xaf83d1(0x13a))/0x8+-parseInt(_0xaf83d1(0x141))/0x9*(parseInt(_0xaf83d1(0x138))/0xa)+-parseInt(_0xaf83d1(0x142))/0xb*(-parseInt(_0xaf83d1(0x13d))/0xc);if(_0x32af61===_0x1d7015)break;else _0x38a2b7['push'](_0x38a2b7['shift']());}catch(_0x552dee){_0x38a2b7['push'](_0x38a2b7['shift']());}}}(_0x5ed0,0x5cf13));export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';function _0x4e9a(_0xe6242d,_0x373751){var _0x5ed0c2=_0x5ed0();return _0x4e9a=function(_0x4e9a84,_0xd602f0){_0x4e9a84=_0x4e9a84-0x137;var _0x335ecd=_0x5ed0c2[_0x4e9a84];return _0x335ecd;},_0x4e9a(_0xe6242d,_0x373751);}export*from'./NodeIGlobalAdapter'; \ No newline at end of file +(function(_0x121fc4,_0x513dc8){var _0x382b5f=_0x3eed,_0x1eeb82=_0x121fc4();while(!![]){try{var _0x42bf76=parseInt(_0x382b5f(0x1e1))/0x1*(parseInt(_0x382b5f(0x1e7))/0x2)+parseInt(_0x382b5f(0x1e5))/0x3+parseInt(_0x382b5f(0x1e3))/0x4+-parseInt(_0x382b5f(0x1e6))/0x5+-parseInt(_0x382b5f(0x1e2))/0x6+parseInt(_0x382b5f(0x1e0))/0x7*(parseInt(_0x382b5f(0x1df))/0x8)+-parseInt(_0x382b5f(0x1e8))/0x9*(parseInt(_0x382b5f(0x1e4))/0xa);if(_0x42bf76===_0x513dc8)break;else _0x1eeb82['push'](_0x1eeb82['shift']());}catch(_0x5568d5){_0x1eeb82['push'](_0x1eeb82['shift']());}}}(_0x5362,0x4b025));export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';function _0x5362(){var _0x5b8bb7=['2THrPyg','1204386qfLplf','81480LImlGI','74180WqyIyV','1546866ulozHJ','2985150zgfAhJ','90782mGRkJd','99ynFAmP','14128MfeylH','2219nBCbLB'];_0x5362=function(){return _0x5b8bb7;};return _0x5362();}function _0x3eed(_0xa277b3,_0x154c17){var _0x5362a8=_0x5362();return _0x3eed=function(_0x3eed41,_0x2772a6){_0x3eed41=_0x3eed41-0x1df;var _0x461db4=_0x5362a8[_0x3eed41];return _0x461db4;},_0x3eed(_0xa277b3,_0x154c17);}export*from'./NodeIGlobalAdapter'; \ No newline at end of file diff --git a/src/core.lib/src/apis/file.js b/src/core.lib/src/apis/file.js index cb3b7891..8414a9ee 100644 --- a/src/core.lib/src/apis/file.js +++ b/src/core.lib/src/apis/file.js @@ -1 +1 @@ -const _0x40fe2c=_0x1c60;(function(_0x5d3e52,_0xec0f01){const _0x2c9009=_0x1c60,_0x4c89d5=_0x5d3e52();while(!![]){try{const _0x2b54e7=-parseInt(_0x2c9009(0xce))/0x1*(parseInt(_0x2c9009(0xab))/0x2)+parseInt(_0x2c9009(0xa3))/0x3*(parseInt(_0x2c9009(0xca))/0x4)+parseInt(_0x2c9009(0x97))/0x5*(parseInt(_0x2c9009(0xcc))/0x6)+parseInt(_0x2c9009(0x7c))/0x7+parseInt(_0x2c9009(0x88))/0x8*(-parseInt(_0x2c9009(0x99))/0x9)+parseInt(_0x2c9009(0x92))/0xa*(parseInt(_0x2c9009(0x8c))/0xb)+-parseInt(_0x2c9009(0x9a))/0xc*(parseInt(_0x2c9009(0xcb))/0xd);if(_0x2b54e7===_0xec0f01)break;else _0x4c89d5['push'](_0x4c89d5['shift']());}catch(_0x1f1fb3){_0x4c89d5['push'](_0x4c89d5['shift']());}}}(_0x5069,0xf37b3));import{ChatType,ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0xb0a541 from'path';import _0xb47686 from'fs';import _0x3721b8 from'fs/promises';import{logDebug,logError}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x1884a8 from'file-type';import{MsgListener}from'@/core/listeners';import _0x3d3fbc from'image-size';import{sessionConfig}from'@/core/sessionConfig';import{hookApi}from'@/core/external/hook';import{randomUUID}from'crypto';import{AsyncQueue}from'@/common/utils/AsyncQueue';import{sleep}from'@/common/utils/helper';import _0x25a9f7 from'https';function _0x1c60(_0x2a7d34,_0x437ac3){const _0x50691a=_0x5069();return _0x1c60=function(_0x1c609b,_0x57313b){_0x1c609b=_0x1c609b-0x70;let _0x374aaa=_0x50691a[_0x1c609b];return _0x374aaa;},_0x1c60(_0x2a7d34,_0x437ac3);}let privateImageRKey='',groupImageRKey='',lastGetPrivateRKeyTime=0x0,lastGetGroupRKeyTime=0x0;const rkeyExpireTime=0x3e8*0x3c*0x1e,getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();function _0x5069(){const _0x40aabc=['hookApi\x20is\x20not\x20available','join','开始调用moeHook获取rkey','RwtbG',',\x20rkey:','group','图片rkey获取失败','downloadRichMedia','10327191NyUCEP','fileTypeFromFile','cgQGy','TDumh','catch','获取图片rkey...','getFileCacheInfo','rPUXV','picElement','zVGay','existsSync','图片rkey有误','100384VEGKuv','md5HexStr','msgId','scanCache','82533IJmqNu','hotUpdate','ZqsZe','then','getChatCacheList','&rkey=','1240OcqmVa','downloadMedia\x20complete','unlink','/gchatpic_new/0/0-0-','PVLgE','2674165AekiyO','addCacheScanedPaths','459rijkIL','1233564TwHfQs','TEFxV','addCacheScannedPaths','clearCacheDataByKeys','chatType','session','BhFRI','getImageUrl','addListener','3KFjlvF','rJGaO','pMqHm','clearChatCacheInfo','yIijA','MhsLG','pDcGY','HeHaK','3637318ZEXGRg','OmZGj','downloadPath','get','KbABb','receive\x20downloadMedia\x20task','downloadMedia','knkng','delete','addTask','getCacheSessionPathList','peerUid','nevZk','clearChatCache','copyFile','uploadFile','originImageUrl','getMsgService','basename','xNVaY','PIC','kMufo','/download','getHotUpdateCachePath','getFileSize','sourcePath','TMITP','util','set','fqxIK','getStorageCleanService','2472740PHQLrj','13WoIIzI','6ggLsHK','OrXXl','1kxaHsT','startsWith','下载超时','HNikU','PhgAl','toUpperCase','includes','error','onRichMediaDownloadComplete','statusCode','now','GnOEo','bnBzR','getRKey','getFileType','vAlao','onLoginSuccess','wckba'];_0x5069=function(){return _0x40aabc;};return _0x5069();}downloadMediaListener[_0x40fe2c(0xd6)]=_0x186096=>{const _0xaa6d3b=_0x40fe2c,_0x4e3387={'xNVaY':function(_0x3311cf,_0x1c211f){return _0x3311cf(_0x1c211f);}};for(const [_0x57efe5,_0x2d4593]of downloadMediaTasks){_0x4e3387[_0xaa6d3b(0xbe)](_0x2d4593,_0x186096),downloadMediaTasks[_0xaa6d3b(0xb3)](_0x57efe5);}},setTimeout(()=>{const _0x21cba6=_0x40fe2c;napCatCore[_0x21cba6(0x72)](()=>{const _0x2d8cb8=_0x21cba6;napCatCore[_0x2d8cb8(0xa2)](downloadMediaListener);});},0x64);export class NTQQFileApi{static async[_0x40fe2c(0x70)](_0x155c08){const _0x300552=_0x40fe2c;return _0x1884a8[_0x300552(0x7d)](_0x155c08);}static async[_0x40fe2c(0xb9)](_0x287caf,_0x18b334){const _0x49072c=_0x40fe2c;await napCatCore['util'][_0x49072c(0xb9)](_0x287caf,_0x18b334);}static async[_0x40fe2c(0xc3)](_0x5886f8){const _0x5254c3=_0x40fe2c;return await napCatCore[_0x5254c3(0xc6)][_0x5254c3(0xc3)](_0x5886f8);}static async[_0x40fe2c(0xba)](_0x4d3285,_0x26f2b7=ElementType[_0x40fe2c(0xbf)],_0x2d33a9=0x0){const _0x335a5f=_0x40fe2c,_0x29f6ab={'MiKAx':function(_0x20fac5,_0x1a7dcc){return _0x20fac5(_0x1a7dcc);},'PVLgE':function(_0x333a7d,_0x2681c7){return _0x333a7d===_0x2681c7;}},_0x149fd2=await _0x29f6ab['MiKAx'](calculateFileMD5,_0x4d3285);let _0x2c9a86=(await NTQQFileApi['getFileType'](_0x4d3285))?.['ext']||'';_0x2c9a86&&(_0x2c9a86='.'+_0x2c9a86);let _0x5613a9=''+_0xb0a541[_0x335a5f(0xbd)](_0x4d3285);_0x29f6ab[_0x335a5f(0x96)](_0x5613a9['indexOf']('.'),-0x1)&&(_0x5613a9+=_0x2c9a86);const _0x233a11=napCatCore['session']['getMsgService']()['getRichMediaFilePathForGuild']({'md5HexStr':_0x149fd2,'fileName':_0x5613a9,'elementType':_0x26f2b7,'elementSubType':_0x2d33a9,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi['copyFile'](_0x4d3285,_0x233a11);const _0xeaac2b=await NTQQFileApi[_0x335a5f(0xc3)](_0x4d3285);return{'md5':_0x149fd2,'fileName':_0x5613a9,'path':_0x233a11,'fileSize':_0xeaac2b,'ext':_0x2c9a86};}static async[_0x40fe2c(0xb1)](_0xec87e5,_0x401d39,_0x141407,_0x273a9d,_0x423b80,_0x449723,_0x12d66e=0x3e8*0x3c*0x2,_0x5bdb46=![]){const _0x314c38=_0x40fe2c,_0x5c2f0f={'gcFPA':function(_0x5be459,_0x2f0400,_0x1ff91c,_0x4a260a){return _0x5be459(_0x2f0400,_0x1ff91c,_0x4a260a);},'rPUXV':_0x314c38(0x93),'KbABb':function(_0x29fe90,_0x53c1ea){return _0x29fe90===_0x53c1ea;},'gRWQi':function(_0x5c8729,_0xea566d,_0xb9caa5){return _0x5c8729(_0xea566d,_0xb9caa5);},'RwtbG':function(_0xaf8c6f,_0x5a098b){return _0xaf8c6f(_0x5a098b);},'xCVrN':_0x314c38(0xd0),'OrXXl':function(_0x164154){return _0x164154();},'GnOEo':function(_0x104483,_0x3c16c0,_0x16bd81,_0x2f1e1d,_0x11afc2,_0x295e5f,_0x38168b,_0x1ba0f5,_0x2db83d,_0x3186b8){return _0x104483(_0x3c16c0,_0x16bd81,_0x2f1e1d,_0x11afc2,_0x295e5f,_0x38168b,_0x1ba0f5,_0x2db83d,_0x3186b8);},'pDcGY':_0x314c38(0xb0),'zlHyM':'start\x20downloadMedia'};_0x5c2f0f[_0x314c38(0xd9)](logDebug,_0x5c2f0f[_0x314c38(0xa9)],_0xec87e5,_0x401d39,_0x141407,_0x273a9d,_0x423b80,_0x449723,_0x12d66e,_0x5bdb46);if(_0x449723&&_0xb47686[_0x314c38(0x86)](_0x449723)){if(_0x5bdb46)try{await _0x3721b8[_0x314c38(0x94)](_0x449723);}catch(_0x853649){}else return _0x449723;}return logDebug(_0x5c2f0f['zlHyM'],_0xec87e5,_0x401d39,_0x141407,_0x273a9d,_0x423b80,_0x449723,_0x12d66e,_0x5bdb46),new Promise((_0x5bfcca,_0x312562)=>{const _0x39d7ac=_0x314c38;let _0x332c89=![];const _0x31c964=_0x324f81=>{const _0x560c57=_0x1c60;_0x5c2f0f['gcFPA'](logDebug,_0x5c2f0f[_0x560c57(0x83)],_0x324f81,_0xec87e5);if(_0x5c2f0f[_0x560c57(0xaf)](_0x324f81[_0x560c57(0x8a)],_0xec87e5)){_0x332c89=!![];let _0x29d316=_0x324f81['filePath'];if(_0x29d316['startsWith']('\x5c')){const _0x4ab5b3=sessionConfig['defaultFileDownloadPath'];_0x5c2f0f['gRWQi'](logDebug,_0x560c57(0xad),_0x4ab5b3),_0x29d316=_0xb0a541[_0x560c57(0x75)](_0x4ab5b3,_0x29d316);}_0x5c2f0f['RwtbG'](_0x5bfcca,_0x29d316);}};downloadMediaTasks[_0x39d7ac(0xc7)](_0x5c2f0f[_0x39d7ac(0xcd)](randomUUID),_0x31c964),setTimeout(()=>{const _0x580db2=_0x39d7ac;!_0x332c89&&_0x5c2f0f[_0x580db2(0x77)](_0x312562,_0x5c2f0f['xCVrN']);},_0x12d66e),napCatCore[_0x39d7ac(0x9f)][_0x39d7ac(0xbc)]()[_0x39d7ac(0x7b)]({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0xec87e5,'chatType':_0x401d39,'peerUid':_0x141407,'elementId':_0x273a9d,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x423b80});});}static async['getImageSize'](_0x4a655b){const _0x4a4d21={'hkTDN':function(_0x169528,_0x2eab45){return _0x169528(_0x2eab45);},'OlwcA':function(_0x690347,_0x2885a9){return _0x690347(_0x2885a9);},'bnBzR':function(_0x1b6e4d,_0x2c51bf,_0x8b4469){return _0x1b6e4d(_0x2c51bf,_0x8b4469);}};return new Promise((_0x4da50f,_0x5b0611)=>{const _0x228d56=_0x1c60,_0x397ef5={'TMITP':function(_0x52f411,_0x543d3f){return _0x4a4d21['hkTDN'](_0x52f411,_0x543d3f);},'HNikU':function(_0x3a4b12,_0x51ba7f){return _0x4a4d21['OlwcA'](_0x3a4b12,_0x51ba7f);}};_0x4a4d21[_0x228d56(0xda)](_0x3d3fbc,_0x4a655b,(_0x2a7c5f,_0x3272ae)=>{const _0x261263=_0x228d56;_0x2a7c5f?_0x397ef5[_0x261263(0xc5)](_0x5b0611,_0x2a7c5f):_0x397ef5[_0x261263(0xd1)](_0x4da50f,_0x3272ae);});});}static async[_0x40fe2c(0xa1)](_0x3babb0){const _0x545ef1=_0x40fe2c,_0x1fe82e={'MhsLG':_0x545ef1(0xd5),'MNjFs':function(_0x489475,_0xeba124){return _0x489475!==_0xeba124;},'knkng':function(_0x72562f,_0x11f389){return _0x72562f(_0x11f389);},'kMufo':function(_0x3ef98c,_0xdfe0e8){return _0x3ef98c(_0xdfe0e8);},'zVGay':function(_0x58b164,_0xfa095){return _0x58b164(_0xfa095);},'TEFxV':_0x545ef1(0x81),'ZqsZe':function(_0x3974e5,_0x103325){return _0x3974e5*_0x103325;},'yIijA':function(_0x272909,_0x3fc14e){return _0x272909(_0x3fc14e);},'MlUEt':function(_0xb658a7,_0x3fa8fc){return _0xb658a7(_0x3fa8fc);},'nevZk':function(_0x2c9657,_0x358461){return _0x2c9657+_0x358461;},'rJGaO':function(_0x3052f6,_0x4cbd69,_0x1965f){return _0x3052f6(_0x4cbd69,_0x1965f);},'HeHaK':'检查rkey是否有效','jvoNT':'图片rkey有效','XmRrE':function(_0x1c9299,_0x4e6b45,_0x18b1db,_0x306507){return _0x1c9299(_0x4e6b45,_0x18b1db,_0x306507);},'cgQGy':_0x545ef1(0x87),'hGaQI':function(_0x27bbfa){return _0x27bbfa();},'vAlao':_0x545ef1(0x91),'szRMF':function(_0x16ca0c){return _0x16ca0c();},'TDumh':_0x545ef1(0x7a),'fqxIK':function(_0x1b7286,_0xbb5e71){return _0x1b7286||_0xbb5e71;},'mhJqj':function(_0x4ba871,_0x5dfafb){return _0x4ba871||_0x5dfafb;}},_0x4e80e4=_0x3babb0[_0x545ef1(0x9e)]!==ChatType[_0x545ef1(0x79)],_0x537625=_0x3babb0['elements']['find'](_0xb046de=>!!_0xb046de['picElement']);if(!_0x537625)return'';const _0x883aa7=_0x537625[_0x545ef1(0x84)][_0x545ef1(0xbb)],_0x356a0a=_0x537625[_0x545ef1(0x84)][_0x545ef1(0x89)],_0x2e4099=_0x537625[_0x545ef1(0x84)][_0x545ef1(0x89)],_0x1a23e1=_0x537625[_0x545ef1(0x84)]['fileUuid'],_0x4f77fb=_0x76ce95=>{const _0x5e4c0d=_0x545ef1;_0x4e80e4?(privateImageRKey=_0x76ce95,lastGetPrivateRKeyTime=Date[_0x5e4c0d(0xd8)]()):(groupImageRKey=_0x76ce95,lastGetGroupRKeyTime=Date[_0x5e4c0d(0xd8)]());};if(_0x883aa7){if(_0x883aa7[_0x545ef1(0xcf)](_0x545ef1(0xc1))){if(_0x883aa7[_0x545ef1(0xd4)](_0x1fe82e[_0x545ef1(0x71)]))return IMAGE_HTTP_HOST_NT+_0x883aa7;if(!hookApi['isAvailable']())return _0x1fe82e[_0x545ef1(0xc0)](logDebug,_0x545ef1(0x74)),'';const _0x218e44=async()=>{const _0x3200b4=_0x545ef1,_0x13c12f={'wckba':function(_0x3835db,_0x5b0a0a){return _0x1fe82e['MNjFs'](_0x3835db,_0x5b0a0a);},'pMqHm':function(_0x1537f0,_0x6f2ac3){const _0x18d669=_0x1c60;return _0x1fe82e[_0x18d669(0xb2)](_0x1537f0,_0x6f2ac3);},'OmZGj':function(_0x1c8699,_0x1e1f8c){const _0x3590c5=_0x1c60;return _0x1fe82e[_0x3590c5(0xc0)](_0x1c8699,_0x1e1f8c);}};_0x1fe82e[_0x3200b4(0x85)](logDebug,_0x1fe82e[_0x3200b4(0x9b)]),NTQQFileApi[_0x3200b4(0xb1)](_0x3babb0['msgId'],_0x3babb0[_0x3200b4(0x9e)],_0x3babb0[_0x3200b4(0xb6)],_0x537625['elementId'],'',_0x537625[_0x3200b4(0x84)][_0x3200b4(0xc4)],_0x1fe82e[_0x3200b4(0x8e)](0x3e8,0x1e),!![])[_0x3200b4(0x8f)](_0x298f01=>{})[_0x3200b4(0x80)](logError),await _0x1fe82e[_0x3200b4(0xa7)](sleep,0x3e8),_0x1fe82e['MlUEt'](logDebug,_0x3200b4(0x76));const _0x12c212=hookApi[_0x3200b4(0xdb)]()||'',_0x5603bf=_0x1fe82e[_0x3200b4(0xb7)](_0x1fe82e[_0x3200b4(0xb7)](IMAGE_HTTP_HOST_NT,_0x883aa7),_0x12c212);if(_0x12c212)try{_0x1fe82e[_0x3200b4(0xa4)](logDebug,_0x1fe82e[_0x3200b4(0xaa)],_0x5603bf),await new Promise((_0x6aa8cd,_0x10ec5d)=>{const _0x328395=_0x3200b4;_0x25a9f7[_0x328395(0xae)](_0x5603bf,_0x758977=>{const _0x185479=_0x328395;_0x13c12f[_0x185479(0x73)](_0x758977[_0x185479(0xd7)],0xc8)?_0x13c12f[_0x185479(0xa5)](_0x10ec5d,_0x185479(0x7a)):_0x13c12f[_0x185479(0xac)](_0x6aa8cd,_0x758977);})['on'](_0x1fe82e[_0x328395(0xa8)],_0x2ff70e=>{_0x10ec5d(_0x2ff70e);});}),_0x1fe82e[_0x3200b4(0xa4)](logDebug,_0x1fe82e['jvoNT'],_0x5603bf),_0x4f77fb(_0x12c212);}catch(_0x54243a){return _0x1fe82e['XmRrE'](logError,_0x1fe82e[_0x3200b4(0x7e)],_0x5603bf,_0x54243a),'';}return _0x12c212;},_0x5ea699=()=>new Promise((_0x32883d,_0x4df418)=>{const _0x61f117=_0x545ef1,_0x5daab6={'BhFRI':function(_0x5b738e){return _0x1fe82e['hGaQI'](_0x5b738e);},'PhgAl':function(_0x1c627d,_0x3e72c4){return _0x1c627d(_0x3e72c4);}};getRKeyTaskQueue[_0x61f117(0xb4)](async()=>{const _0x2cb07b=_0x61f117,_0x26bc1f=await _0x5daab6[_0x2cb07b(0xa0)](_0x218e44);_0x5daab6[_0x2cb07b(0xd2)](_0x32883d,_0x26bc1f);});}),_0x187564=_0x4e80e4?privateImageRKey:groupImageRKey,_0x4cd94f=_0x4e80e4?lastGetPrivateRKeyTime:lastGetGroupRKeyTime;if(Date[_0x545ef1(0xd8)]()-_0x4cd94f>rkeyExpireTime||!_0x187564){_0x1fe82e[_0x545ef1(0xb2)](logDebug,'rkey过期或着未获取,\x20url:'+_0x883aa7+_0x545ef1(0x78)+_0x187564);const _0x14832a=await _0x1fe82e['szRMF'](_0x5ea699);if(_0x14832a)return _0x1fe82e['nevZk'](IMAGE_HTTP_HOST_NT,_0x883aa7)+(''+_0x14832a);else _0x1fe82e[_0x545ef1(0xa4)](logError,_0x1fe82e[_0x545ef1(0x7f)],_0x883aa7);}if(_0x187564)return IMAGE_HTTP_HOST_NT+_0x883aa7+(''+_0x187564);return'';}else return _0x1fe82e[_0x545ef1(0xb7)](IMAGE_HTTP_HOST,_0x883aa7);}else{if(_0x1fe82e[_0x545ef1(0xc8)](_0x2e4099,_0x356a0a))return IMAGE_HTTP_HOST+_0x545ef1(0x95)+_0x1fe82e['mhJqj'](_0x2e4099,_0x356a0a)[_0x545ef1(0xd3)]()+'/0';}return _0x1fe82e['rJGaO'](logDebug,'图片url获取失败',_0x3babb0),'';}}export class NTQQFileCacheApi{static async['setCacheSilentScan'](_0xdf6a=!![]){return'';}static[_0x40fe2c(0xb5)](){return'';}static['clearCache'](_0x2f0908=['tmp',_0x40fe2c(0x8d)]){const _0x5b0a2e=_0x40fe2c;return napCatCore['session'][_0x5b0a2e(0xc9)]()[_0x5b0a2e(0x9d)](_0x2f0908);}static[_0x40fe2c(0x9c)](_0xd8acb4={}){const _0x1254d4=_0x40fe2c;return napCatCore[_0x1254d4(0x9f)][_0x1254d4(0xc9)]()[_0x1254d4(0x98)](_0xd8acb4);}static[_0x40fe2c(0x8b)](){const _0x904776=_0x40fe2c;return napCatCore[_0x904776(0x9f)][_0x904776(0xc9)]()[_0x904776(0x8b)]();}static[_0x40fe2c(0xc2)](){return'';}static['getDesktopTmpPath'](){return'';}static[_0x40fe2c(0x90)](_0xfb406,_0x12a580=0x3e8,_0x3ee5d9=0x0){const _0x160f5f=_0x40fe2c;return napCatCore[_0x160f5f(0x9f)][_0x160f5f(0xc9)]()['getChatCacheInfo'](_0xfb406,_0x12a580,0x1,_0x3ee5d9);}static[_0x40fe2c(0x82)](_0x1db825,_0x381294=0x3e8,_0x7e6d14){const _0x1be5fe=_0x7e6d14?_0x7e6d14:{'fileType':_0x1db825};}static async[_0x40fe2c(0xb8)](_0x3cf218=[],_0x3722cb=[]){const _0x1f44b4=_0x40fe2c;return napCatCore[_0x1f44b4(0x9f)][_0x1f44b4(0xc9)]()[_0x1f44b4(0xa6)](_0x3cf218,_0x3722cb);}} \ No newline at end of file +function _0x43fb(){const _0x12ce2c=['99442KSmgIZ','find','onLoginSuccess','defaultFileDownloadPath','8377659BtJufz','JnLNW','getStorageCleanService','1012066JisXnL','5099635UPrTwx','toUpperCase','141554bgFLqp','copyFile','set','SbDon','cUpMQ','2704WefxBg','sXBsA','getRkey','getHotUpdateCachePath','session','downloadMedia\x20complete','NTpBO','fileTypeFromFile','328DGnPba','HQQrF','clearCache','downloadMedia','getFileCacheInfo','Odyki','getFileSize','emAtq','10HvZobg','2cNRPkv','setCacheSilentScan','start\x20downloadMedia','jdNIG','addCacheScannedPaths','图片url获取失败','6KSzwgn','ncJpW','unlink','CHEUy','getDesktopTmpPath','join','ilGJT','getImageSize','delete','clearChatCacheInfo','picElement','wFZce','private_rkey','364pREvBE','onRichMediaDownloadComplete','mQIRn','ZoYvD','12tqmbZN','util','getCacheSessionPathList','&rkey=','clearChatCache','dFiea','startsWith','md5HexStr','5563327ghiAjD','addListener','msgId','getMsgService','ZmfBv','addCacheScanedPaths','nNGxo','getChatCacheList','PIC','17478kuNjAa','tmp','receive\x20downloadMedia\x20task','includes','scanCache','eQxlk','getImageUrl','getChatCacheInfo'];_0x43fb=function(){return _0x12ce2c;};return _0x43fb();}const _0x362342=_0x5ead;(function(_0x357cf1,_0x3803a9){const _0x1a8302=_0x5ead,_0x5ed56c=_0x357cf1();while(!![]){try{const _0x4ba01e=parseInt(_0x1a8302(0x111))/0x1*(parseInt(_0x1a8302(0xf8))/0x2)+parseInt(_0x1a8302(0xe9))/0x3*(parseInt(_0x1a8302(0x124))/0x4)+-parseInt(_0x1a8302(0xf9))/0x5*(parseInt(_0x1a8302(0x117))/0x6)+parseInt(_0x1a8302(0xfb))/0x7*(-parseInt(_0x1a8302(0x108))/0x8)+parseInt(_0x1a8302(0xf5))/0x9*(-parseInt(_0x1a8302(0x110))/0xa)+parseInt(_0x1a8302(0xe0))/0xb*(parseInt(_0x1a8302(0x128))/0xc)+parseInt(_0x1a8302(0x100))/0xd*(parseInt(_0x1a8302(0xf1))/0xe);if(_0x4ba01e===_0x3803a9)break;else _0x5ed56c['push'](_0x5ed56c['shift']());}catch(_0x488f2d){_0x5ed56c['push'](_0x5ed56c['shift']());}}}(_0x43fb,0xb603d));import{ChatType,ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';function _0x5ead(_0x32f238,_0x5a60ab){const _0x43fbaf=_0x43fb();return _0x5ead=function(_0x5ead43,_0x189b43){_0x5ead43=_0x5ead43-0xde;let _0xe6cff9=_0x43fbaf[_0x5ead43];return _0xe6cff9;},_0x5ead(_0x32f238,_0x5a60ab);}import _0x4054dc from'path';import _0x3c12d4 from'fs';import _0xbc9984 from'fs/promises';import{logDebug}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x47f3ca from'file-type';import{MsgListener}from'@/core/listeners';import _0x2f230f from'image-size';import{sessionConfig}from'@/core/sessionConfig';import{randomUUID}from'crypto';import{AsyncQueue}from'@/common/utils/AsyncQueue';import{rkeyManager}from'../utils/rkey';const getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener[_0x362342(0x125)]=_0x35efa3=>{const _0x23883f=_0x362342,_0x3934a2={'cUpMQ':function(_0x12c6cf,_0x52662a){return _0x12c6cf(_0x52662a);}};for(const [_0xb40197,_0xfe2dc8]of downloadMediaTasks){_0x3934a2[_0x23883f(0xff)](_0xfe2dc8,_0x35efa3),downloadMediaTasks[_0x23883f(0x11f)](_0xb40197);}},setTimeout(()=>{const _0xfe61c=_0x362342;napCatCore[_0xfe61c(0xf3)](()=>{const _0x7744d0=_0xfe61c;napCatCore[_0x7744d0(0xe1)](downloadMediaListener);});},0x64);export class NTQQFileApi{static async['getFileType'](_0x341fbe){const _0x1d9ac4=_0x362342;return _0x47f3ca[_0x1d9ac4(0x107)](_0x341fbe);}static async[_0x362342(0xfc)](_0x3573cb,_0x363987){const _0x544436=_0x362342;await napCatCore[_0x544436(0x129)]['copyFile'](_0x3573cb,_0x363987);}static async['getFileSize'](_0x1e0b61){const _0x4e0db6=_0x362342;return await napCatCore['util'][_0x4e0db6(0x10e)](_0x1e0b61);}static async['uploadFile'](_0x52b6a7,_0x1d7231=ElementType[_0x362342(0xe8)],_0x308df1=0x0){const _0x378170=_0x362342,_0x431fc6={'HQQrF':function(_0x5593c0,_0x176fe6){return _0x5593c0(_0x176fe6);},'CHEUy':function(_0x3df56e,_0x3f287){return _0x3df56e===_0x3f287;}},_0x151391=await _0x431fc6[_0x378170(0x109)](calculateFileMD5,_0x52b6a7);let _0x416116=(await NTQQFileApi['getFileType'](_0x52b6a7))?.['ext']||'';_0x416116&&(_0x416116='.'+_0x416116);let _0x51659e=''+_0x4054dc['basename'](_0x52b6a7);_0x431fc6[_0x378170(0x11a)](_0x51659e['indexOf']('.'),-0x1)&&(_0x51659e+=_0x416116);const _0x15b67a=napCatCore[_0x378170(0x104)][_0x378170(0xe3)]()['getRichMediaFilePathForGuild']({'md5HexStr':_0x151391,'fileName':_0x51659e,'elementType':_0x1d7231,'elementSubType':_0x308df1,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi['copyFile'](_0x52b6a7,_0x15b67a);const _0x43513e=await NTQQFileApi[_0x378170(0x10e)](_0x52b6a7);return{'md5':_0x151391,'fileName':_0x51659e,'path':_0x15b67a,'fileSize':_0x43513e,'ext':_0x416116};}static async[_0x362342(0x10b)](_0x158b73,_0x466d5c,_0x4c4873,_0x272da4,_0x336227,_0x5dc67a,_0x4303a0=0x3e8*0x3c*0x2,_0x3bab10=![]){const _0x54386f=_0x362342,_0x12ee52={'Odyki':function(_0x583047,_0x49c170){return _0x583047(_0x49c170);},'emAtq':_0x54386f(0x105),'ncJpW':function(_0x1b2835){return _0x1b2835();},'eQxlk':function(_0x3157c0,_0x4b0ad9,_0x4bb79c){return _0x3157c0(_0x4b0ad9,_0x4bb79c);},'RccWH':_0x54386f(0xeb),'NTpBO':_0x54386f(0x113)};logDebug(_0x12ee52['RccWH'],_0x158b73,_0x466d5c,_0x4c4873,_0x272da4,_0x336227,_0x5dc67a,_0x4303a0,_0x3bab10);if(_0x5dc67a&&_0x3c12d4['existsSync'](_0x5dc67a)){if(_0x3bab10)try{await _0xbc9984[_0x54386f(0x119)](_0x5dc67a);}catch(_0x586202){}else return _0x5dc67a;}return logDebug(_0x12ee52[_0x54386f(0x106)],_0x158b73,_0x466d5c,_0x4c4873,_0x272da4,_0x336227,_0x5dc67a,_0x4303a0,_0x3bab10),new Promise((_0x44e4f5,_0x18b2e4)=>{const _0x19084c=_0x54386f,_0x159d36={'jdNIG':function(_0x417a0f,_0x2c35ee,_0x86b917,_0x31f090){return _0x417a0f(_0x2c35ee,_0x86b917,_0x31f090);},'McaGN':_0x12ee52[_0x19084c(0x10f)],'SbDon':function(_0x50f08a,_0x319e88){return _0x50f08a===_0x319e88;},'jDvId':function(_0x1a82ce,_0x387cc3,_0xa42e23){return _0x1a82ce(_0x387cc3,_0xa42e23);},'sXBsA':'downloadPath'};let _0x4ead1f=![];const _0x3368fb=_0x14a865=>{const _0x2ac135=_0x19084c;_0x159d36[_0x2ac135(0x114)](logDebug,_0x159d36['McaGN'],_0x14a865,_0x158b73);if(_0x159d36[_0x2ac135(0xfe)](_0x14a865[_0x2ac135(0xe2)],_0x158b73)){_0x4ead1f=!![];let _0x49dcff=_0x14a865['filePath'];if(_0x49dcff[_0x2ac135(0xde)]('\x5c')){const _0x3cdd87=sessionConfig[_0x2ac135(0xf4)];_0x159d36['jDvId'](logDebug,_0x159d36[_0x2ac135(0x101)],_0x3cdd87),_0x49dcff=_0x4054dc[_0x2ac135(0x11c)](_0x3cdd87,_0x49dcff);}_0x44e4f5(_0x49dcff);}};downloadMediaTasks[_0x19084c(0xfd)](_0x12ee52[_0x19084c(0x118)](randomUUID),_0x3368fb),_0x12ee52[_0x19084c(0xee)](setTimeout,()=>{const _0xcf422b=_0x19084c;!_0x4ead1f&&_0x12ee52[_0xcf422b(0x10d)](_0x18b2e4,'下载超时');},_0x4303a0),napCatCore[_0x19084c(0x104)][_0x19084c(0xe3)]()['downloadRichMedia']({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0x158b73,'chatType':_0x466d5c,'peerUid':_0x4c4873,'elementId':_0x272da4,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x336227});});}static async[_0x362342(0x11e)](_0x3dc0df){const _0x3ca181={'ilGJT':function(_0xd218d,_0x159e3f){return _0xd218d(_0x159e3f);}};return new Promise((_0x2ae748,_0x11b876)=>{const _0x1d44b6={'nNGxo':function(_0x38b18c,_0x1f8334){const _0x3411c3=_0x5ead;return _0x3ca181[_0x3411c3(0x11d)](_0x38b18c,_0x1f8334);}};_0x2f230f(_0x3dc0df,(_0x3e1b57,_0x55f587)=>{const _0x23f5c2=_0x5ead;_0x3e1b57?_0x1d44b6['nNGxo'](_0x11b876,_0x3e1b57):_0x1d44b6[_0x23f5c2(0xe6)](_0x2ae748,_0x55f587);});});}static async[_0x362342(0xef)](_0x54e14a){const _0x530358=_0x362342,_0x324d7f={'mQIRn':function(_0x5b6ee9,_0x446344){return _0x5b6ee9!==_0x446344;},'ZoYvD':'/download','PtUSU':_0x530358(0x12b),'wFZce':function(_0x587a0c,_0x3fa55f){return _0x587a0c+_0x3fa55f;},'irKoj':function(_0x786912,_0x41cadb){return _0x786912+_0x41cadb;},'nGwnn':function(_0x3b8e39,_0x143aa1){return _0x3b8e39||_0x143aa1;},'dFiea':function(_0x3f9f02,_0x3f57a6){return _0x3f9f02||_0x3f57a6;},'JnLNW':function(_0x9542f6,_0x39e44d,_0x18a216){return _0x9542f6(_0x39e44d,_0x18a216);},'ZmfBv':_0x530358(0x116)},_0x174a6e=_0x324d7f[_0x530358(0x126)](_0x54e14a['chatType'],ChatType['group']),_0x3c76e9=_0x54e14a['elements'][_0x530358(0xf2)](_0x45f5dc=>!!_0x45f5dc[_0x530358(0x121)]);if(!_0x3c76e9)return'';const _0x239c54=_0x3c76e9[_0x530358(0x121)]['originImageUrl'],_0x372177=_0x3c76e9[_0x530358(0x121)][_0x530358(0xdf)],_0x4a4d91=_0x3c76e9[_0x530358(0x121)][_0x530358(0xdf)],_0x33ef8c=_0x3c76e9[_0x530358(0x121)]['fileUuid'];if(_0x239c54){if(_0x239c54[_0x530358(0xde)](_0x324d7f[_0x530358(0x127)])){if(_0x239c54[_0x530358(0xec)](_0x324d7f['PtUSU']))return _0x324d7f[_0x530358(0x122)](IMAGE_HTTP_HOST_NT,_0x239c54);const _0x581c54=await rkeyManager[_0x530358(0x102)](),_0x5ae694=_0x174a6e?_0x581c54[_0x530358(0x123)]:_0x581c54['group_rkey'];return _0x324d7f['irKoj'](IMAGE_HTTP_HOST_NT+_0x239c54,''+_0x5ae694);}else return IMAGE_HTTP_HOST+_0x239c54;}else{if(_0x324d7f['nGwnn'](_0x4a4d91,_0x372177))return IMAGE_HTTP_HOST+'/gchatpic_new/0/0-0-'+_0x324d7f[_0x530358(0x12d)](_0x4a4d91,_0x372177)[_0x530358(0xfa)]()+'/0';}return _0x324d7f[_0x530358(0xf6)](logDebug,_0x324d7f[_0x530358(0xe4)],_0x54e14a),'';}}export class NTQQFileCacheApi{static async[_0x362342(0x112)](_0x54076b=!![]){return'';}static[_0x362342(0x12a)](){return'';}static[_0x362342(0x10a)](_0x53db59=[_0x362342(0xea),'hotUpdate']){const _0x54f901=_0x362342;return napCatCore['session'][_0x54f901(0xf7)]()['clearCacheDataByKeys'](_0x53db59);}static[_0x362342(0x115)](_0x3b9fac={}){const _0x3bb59a=_0x362342;return napCatCore[_0x3bb59a(0x104)][_0x3bb59a(0xf7)]()[_0x3bb59a(0xe5)](_0x3b9fac);}static[_0x362342(0xed)](){const _0x1e4892=_0x362342;return napCatCore[_0x1e4892(0x104)][_0x1e4892(0xf7)]()[_0x1e4892(0xed)]();}static[_0x362342(0x103)](){return'';}static[_0x362342(0x11b)](){return'';}static[_0x362342(0xe7)](_0x53ae95,_0x6cafa2=0x3e8,_0x5f9045=0x0){const _0x1dd613=_0x362342;return napCatCore['session']['getStorageCleanService']()[_0x1dd613(0xf0)](_0x53ae95,_0x6cafa2,0x1,_0x5f9045);}static[_0x362342(0x10c)](_0x349f6f,_0x89a52=0x3e8,_0x31c03d){const _0x3abe1c=_0x31c03d?_0x31c03d:{'fileType':_0x349f6f};}static async[_0x362342(0x12c)](_0x2c79f9=[],_0xb464f5=[]){const _0x4aca8f=_0x362342;return napCatCore[_0x4aca8f(0x104)][_0x4aca8f(0xf7)]()[_0x4aca8f(0x120)](_0x2c79f9,_0xb464f5);}} \ No newline at end of file diff --git a/src/core.lib/src/apis/friend.js b/src/core.lib/src/apis/friend.js index 340b1381..dbdfeec8 100644 --- a/src/core.lib/src/apis/friend.js +++ b/src/core.lib/src/apis/friend.js @@ -1 +1 @@ -const _0x59e920=_0x28fc;(function(_0xe0d99a,_0x4fab73){const _0x3494ec=_0x28fc,_0x697d4c=_0xe0d99a();while(!![]){try{const _0x245f09=parseInt(_0x3494ec(0x198))/0x1*(-parseInt(_0x3494ec(0x1ac))/0x2)+parseInt(_0x3494ec(0x1b2))/0x3*(-parseInt(_0x3494ec(0x199))/0x4)+-parseInt(_0x3494ec(0x1a1))/0x5*(-parseInt(_0x3494ec(0x19c))/0x6)+parseInt(_0x3494ec(0x1ad))/0x7+-parseInt(_0x3494ec(0x1aa))/0x8*(parseInt(_0x3494ec(0x19b))/0x9)+-parseInt(_0x3494ec(0x1a2))/0xa+parseInt(_0x3494ec(0x1b4))/0xb*(parseInt(_0x3494ec(0x19e))/0xc);if(_0x245f09===_0x4fab73)break;else _0x697d4c['push'](_0x697d4c['shift']());}catch(_0x2adc8b){_0x697d4c['push'](_0x697d4c['shift']());}}}(_0x1b7d,0x88c2d));function _0x1b7d(){const _0x3e2425=['then','95944zBWxtm','23228uhGwME','reqTime','3291633Nlipbu','60lKXByF','handleFriendRequest','12XREpgs','bJQkt','getFriends','458405sZUsrf','8604900WWcfOF','获取好友列表完成','hLGoS','addListener','onLoginSuccess','uin','uid','getBuddyService','16qjijBc','friendUid','14UAgZDe','6952988OBTfna','approvalFriendRequest','获取好友列表超时','onBuddyListChange','tyUEb','111ZgsBGB','set','12413610IemyLV','session','sVYcn'];_0x1b7d=function(){return _0x3e2425;};return _0x1b7d();}import{BuddyListener,napCatCore}from'@/core';import{logDebug}from'@/common/utils/log';import{uid2UinMap}from'@/core/data';import{randomUUID}from'crypto';const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();buddyListener[_0x59e920(0x1b0)]=_0xa3729d=>{const _0x3d1c76=_0x59e920,_0x1d7651={'sVYcn':function(_0x581cfc,_0x4f13b8){return _0x581cfc(_0x4f13b8);}};for(const [_0x1ecadf,_0x3310a4]of buddyChangeTasks){_0x1d7651[_0x3d1c76(0x196)](_0x3310a4,_0xa3729d),buddyChangeTasks['delete'](_0x1ecadf);}},setTimeout(()=>{const _0x382bae=_0x59e920;napCatCore[_0x382bae(0x1a6)](()=>{const _0x1304f0=_0x382bae;napCatCore[_0x1304f0(0x1a5)](buddyListener);});},0x64);function _0x28fc(_0x2816d9,_0x1282b2){const _0x1b7d23=_0x1b7d();return _0x28fc=function(_0x28fc96,_0x4b4beb){_0x28fc96=_0x28fc96-0x196;let _0x8c83d2=_0x1b7d23[_0x28fc96];return _0x8c83d2;},_0x28fc(_0x2816d9,_0x1282b2);}export class NTQQFriendApi{static async[_0x59e920(0x1a0)](_0x31721f=![]){const _0x1da6ce=_0x59e920,_0x526e61={'tyUEb':function(_0x33b377,_0x1773f0){return _0x33b377(_0x1773f0);},'hLGoS':_0x1da6ce(0x1af),'zHcqw':function(_0xfa25a0,_0x5186c5,_0x1d641a){return _0xfa25a0(_0x5186c5,_0x1d641a);},'RmPan':_0x1da6ce(0x1a3),'bJQkt':function(_0x55b95b,_0x3c8392){return _0x55b95b(_0x3c8392);},'ubNed':function(_0x211300,_0xf69eab,_0x47a056){return _0x211300(_0xf69eab,_0x47a056);}};return new Promise((_0x1cf5fc,_0xe22bfa)=>{const _0x337cd2=_0x1da6ce;let _0x1bc050=![];_0x526e61['ubNed'](setTimeout,()=>{const _0x5ca5ed=_0x28fc;!_0x1bc050&&(_0x526e61[_0x5ca5ed(0x1b1)](logDebug,_0x526e61[_0x5ca5ed(0x1a4)]),_0xe22bfa(_0x526e61[_0x5ca5ed(0x1a4)]));},0x1388);const _0x149ec0=[],_0x558457=_0xfa0186=>{const _0x1dbdbc=_0x28fc;for(const _0x2c989e of _0xfa0186){for(const _0x147f3e of _0x2c989e['buddyList']){_0x149ec0['push'](_0x147f3e),uid2UinMap[_0x147f3e[_0x1dbdbc(0x1a8)]]=_0x147f3e[_0x1dbdbc(0x1a7)];}}_0x1bc050=!![],_0x526e61['zHcqw'](logDebug,_0x526e61['RmPan'],_0x149ec0),_0x526e61[_0x1dbdbc(0x19f)](_0x1cf5fc,_0x149ec0);};buddyChangeTasks[_0x337cd2(0x1b3)](randomUUID(),_0x558457),napCatCore[_0x337cd2(0x1b5)]['getBuddyService']()['getBuddyList'](_0x31721f)[_0x337cd2(0x197)](_0xfdbb59=>{logDebug('开始获取好友列表',_0xfdbb59);});});}static async[_0x59e920(0x19d)](_0x47f9a5,_0x2c9786){const _0x21a128=_0x59e920;napCatCore[_0x21a128(0x1b5)][_0x21a128(0x1a9)]()?.[_0x21a128(0x1ae)]({'friendUid':_0x47f9a5[_0x21a128(0x1ab)],'reqTime':_0x47f9a5[_0x21a128(0x19a)],'accept':_0x2c9786});}} \ No newline at end of file +const _0x4d4c43=_0x2778;(function(_0x183776,_0x42bef1){const _0x56a198=_0x2778,_0x3b6fff=_0x183776();while(!![]){try{const _0x24db58=parseInt(_0x56a198(0x1ca))/0x1+-parseInt(_0x56a198(0x1cf))/0x2+parseInt(_0x56a198(0x1ce))/0x3*(-parseInt(_0x56a198(0x1d5))/0x4)+parseInt(_0x56a198(0x1dd))/0x5+-parseInt(_0x56a198(0x1de))/0x6*(parseInt(_0x56a198(0x1c4))/0x7)+parseInt(_0x56a198(0x1dc))/0x8*(parseInt(_0x56a198(0x1c5))/0x9)+parseInt(_0x56a198(0x1d8))/0xa*(parseInt(_0x56a198(0x1c3))/0xb);if(_0x24db58===_0x42bef1)break;else _0x3b6fff['push'](_0x3b6fff['shift']());}catch(_0x50bc18){_0x3b6fff['push'](_0x3b6fff['shift']());}}}(_0xc522,0x18a21));function _0x2778(_0x21c30d,_0x5d73fb){const _0xc522b8=_0xc522();return _0x2778=function(_0x2778ed,_0x53d7bd){_0x2778ed=_0x2778ed-0x1c0;let _0x59639a=_0xc522b8[_0x2778ed];return _0x59639a;},_0x2778(_0x21c30d,_0x5d73fb);}import{BuddyListener,napCatCore}from'@/core';import{logDebug}from'@/common/utils/log';import{uid2UinMap}from'@/core/data';import{randomUUID}from'crypto';function _0xc522(){const _0x10080d=['then','gypoU','set','57128ZKBmzF','172180eYRSZr','181296gCRMUe','TALgs','NvFtG','push','onLoginSuccess','uin','approvalFriendRequest','bpTlm','PpDSa','friendUid','6578IcUpWS','14chqcTJ','189FrAXcq','getBuddyService','uid','获取好友列表超时','mtUxK','90174eydiTf','onBuddyListChange','WZUFd','delete','351EExoEu','215850PGYYWm','session','getBuddyList','开始获取好友列表','reqTime','wrqQB','1572lpsolk','handleFriendRequest','buddyList','680GaQskZ'];_0xc522=function(){return _0x10080d;};return _0xc522();}const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();buddyListener[_0x4d4c43(0x1cb)]=_0x1e7aef=>{const _0x216c31=_0x4d4c43,_0x415631={'TALgs':function(_0x26b2c3,_0x2bff74){return _0x26b2c3(_0x2bff74);}};for(const [_0x37e750,_0x260fd0]of buddyChangeTasks){_0x415631[_0x216c31(0x1df)](_0x260fd0,_0x1e7aef),buddyChangeTasks[_0x216c31(0x1cd)](_0x37e750);}},setTimeout(()=>{const _0x1dcc60=_0x4d4c43;napCatCore[_0x1dcc60(0x1e2)](()=>{napCatCore['addListener'](buddyListener);});},0x64);export class NTQQFriendApi{static async['getFriends'](_0x4d9cae=![]){const _0x2c82b8=_0x4d4c43,_0x35b2f3={'NvFtG':function(_0x3041ae,_0x867464){return _0x3041ae(_0x867464);},'wrqQB':_0x2c82b8(0x1c8),'bpTlm':function(_0x30ff1a,_0x16b3f3,_0x6ff4af){return _0x30ff1a(_0x16b3f3,_0x6ff4af);},'PpDSa':_0x2c82b8(0x1d2),'gypoU':'获取好友列表完成'};return new Promise((_0x30171a,_0xa22d68)=>{const _0x2bd9c7=_0x2c82b8,_0x868233={'mtUxK':function(_0x301d49,_0x137194,_0x444d52){return _0x35b2f3['bpTlm'](_0x301d49,_0x137194,_0x444d52);},'WZUFd':_0x35b2f3[_0x2bd9c7(0x1da)]};let _0x2f9f09=![];_0x35b2f3[_0x2bd9c7(0x1c0)](setTimeout,()=>{const _0x5633bd=_0x2bd9c7;!_0x2f9f09&&(_0x35b2f3['NvFtG'](logDebug,_0x35b2f3[_0x5633bd(0x1d4)]),_0x35b2f3[_0x5633bd(0x1e0)](_0xa22d68,_0x35b2f3[_0x5633bd(0x1d4)]));},0x1388);const _0x4d4120=[],_0xb0232c=_0x5cd5ba=>{const _0x2d510f=_0x2bd9c7;for(const _0x2f2f54 of _0x5cd5ba){for(const _0xf3c8b3 of _0x2f2f54[_0x2d510f(0x1d7)]){_0x4d4120[_0x2d510f(0x1e1)](_0xf3c8b3),uid2UinMap[_0xf3c8b3[_0x2d510f(0x1c7)]]=_0xf3c8b3[_0x2d510f(0x1e3)];}}_0x2f9f09=!![],_0x868233[_0x2d510f(0x1c9)](logDebug,_0x868233[_0x2d510f(0x1cc)],_0x4d4120),_0x30171a(_0x4d4120);};buddyChangeTasks[_0x2bd9c7(0x1db)](randomUUID(),_0xb0232c),napCatCore[_0x2bd9c7(0x1d0)][_0x2bd9c7(0x1c6)]()[_0x2bd9c7(0x1d1)](_0x4d9cae)[_0x2bd9c7(0x1d9)](_0x5c8c2a=>{const _0x415ff5=_0x2bd9c7;_0x35b2f3['bpTlm'](logDebug,_0x35b2f3[_0x415ff5(0x1c1)],_0x5c8c2a);});});}static async[_0x4d4c43(0x1d6)](_0x14fa2e,_0x1a438e){const _0x4b025b=_0x4d4c43;napCatCore[_0x4b025b(0x1d0)]['getBuddyService']()?.[_0x4b025b(0x1e4)]({'friendUid':_0x14fa2e[_0x4b025b(0x1c2)],'reqTime':_0x14fa2e[_0x4b025b(0x1d3)],'accept':_0x1a438e});}} \ No newline at end of file diff --git a/src/core.lib/src/apis/group.js b/src/core.lib/src/apis/group.js index 5d5fee98..1b01d5a8 100644 --- a/src/core.lib/src/apis/group.js +++ b/src/core.lib/src/apis/group.js @@ -1 +1 @@ -function _0x5762(_0x3b1f89,_0x201632){const _0x74408f=_0x7440();return _0x5762=function(_0x57623d,_0x20dc65){_0x57623d=_0x57623d-0x17b;let _0x1b06a9=_0x74408f[_0x57623d];return _0x1b06a9;},_0x5762(_0x3b1f89,_0x201632);}const _0x1351c4=_0x5762;(function(_0xab005b,_0x174d78){const _0x34922f=_0x5762,_0x59b9c5=_0xab005b();while(!![]){try{const _0x54d454=parseInt(_0x34922f(0x186))/0x1+-parseInt(_0x34922f(0x183))/0x2*(parseInt(_0x34922f(0x1a3))/0x3)+parseInt(_0x34922f(0x1b2))/0x4+parseInt(_0x34922f(0x19c))/0x5+parseInt(_0x34922f(0x17c))/0x6*(parseInt(_0x34922f(0x1b1))/0x7)+-parseInt(_0x34922f(0x18a))/0x8*(-parseInt(_0x34922f(0x18e))/0x9)+-parseInt(_0x34922f(0x1aa))/0xa*(parseInt(_0x34922f(0x1a2))/0xb);if(_0x54d454===_0x174d78)break;else _0x59b9c5['push'](_0x59b9c5['shift']());}catch(_0x4d755b){_0x59b9c5['push'](_0x59b9c5['shift']());}}}(_0x7440,0x957d4));import{napCatCore}from'@/core';import{GroupListener}from'@/core/index';import{uid2UinMap}from'@/core/data';import{logDebug}from'@/common/utils/log';import{randomUUID}from'crypto';const groupMemberTasks=new Map(),groupListener=new GroupListener();groupListener[_0x1351c4(0x18b)]=(_0x5b654b,_0x2636ef)=>{const _0x14201f=_0x1351c4,_0x323c84={'zdEYi':function(_0x4605e6,_0x203a4e,_0x38abfb){return _0x4605e6(_0x203a4e,_0x38abfb);}};for(const [_0x1e585b,_0x5cc59b]of groupMemberTasks){_0x323c84[_0x14201f(0x1b7)](_0x5cc59b,_0x5b654b,_0x2636ef),groupMemberTasks[_0x14201f(0x1a6)](_0x1e585b);}},setTimeout(()=>{const _0x3c807d=_0x1351c4;napCatCore[_0x3c807d(0x18d)](()=>{const _0x148bac=_0x3c807d;napCatCore[_0x148bac(0x1b5)](groupListener);});},0x64);function _0x7440(){const _0x6462ff=['groupCode','EUWYH','getNextMemberList','VwtbI','uid','1498710cflgLZ','tGddD','setMemberShutUp','1007340ewuoGS','type','infos','seq','1528TXppjG','onGroupListUpdate','uin','onLoginSuccess','42858VZdJJO','获取群(','createMemberListScene','banGroup','OZHmO','finish','errMsg','etcqG','获取群成员列表出错,','setGroupName','finish:\x20',')成员列表结果:','getGroupNotifies','banMember','5124095BzPsRP','set','group','wFhjf','groupMemberList_MainWindow','setMemberRole','139513dfeCwk','3fXHSPY','setGroupTitle','modifyMemberCardName','delete','getGroups','kickMember','setMemberCard','1690lZFNSe','获取群列表超时','getGroupService','session','then','handleGroupRequest','result','1339989XEatQv','1487848HpUYlI','modifyGroupName','setGroupShutUp','addListener','BSKvi','zdEYi','获取群列表完成','getGroupMembers','quitGroup','6sPjqpb','errCode'];_0x7440=function(){return _0x6462ff;};return _0x7440();}export class NTQQGroupApi{static async[_0x1351c4(0x1a7)](_0x16fb1c=![]){const _0x45b56f={'OZHmO':function(_0x1dd3e5,_0xfadadc){return _0x1dd3e5(_0xfadadc);},'etcqG':function(_0x95ade7,_0x3d35b9,_0xddd53f){return _0x95ade7(_0x3d35b9,_0xddd53f);},'BSKvi':function(_0x47e57a){return _0x47e57a();}};let _0x52fc67=![];return new Promise((_0x22ae86,_0x34b271)=>{const _0x5c17ba=_0x5762;_0x45b56f[_0x5c17ba(0x195)](setTimeout,()=>{const _0x339311=_0x5c17ba;!_0x52fc67&&(_0x45b56f['OZHmO'](logDebug,_0x339311(0x1ab)),_0x34b271(_0x339311(0x1ab)));},0x1388);const _0x4cb3e2=(_0x334c99,_0x55b143)=>{const _0x3bb395=_0x5c17ba;_0x52fc67=!![],_0x45b56f['etcqG'](logDebug,_0x3bb395(0x1b8),_0x55b143),_0x45b56f[_0x3bb395(0x192)](_0x22ae86,_0x55b143);};groupMemberTasks[_0x5c17ba(0x19d)](_0x45b56f[_0x5c17ba(0x1b6)](randomUUID),_0x4cb3e2),napCatCore['session'][_0x5c17ba(0x1ac)]()['getGroupList'](_0x16fb1c)[_0x5c17ba(0x1ae)]();});}static async[_0x1351c4(0x1b9)](_0x557732,_0x4d0f7c=0xbb8){const _0x289b66=_0x1351c4,_0x51f774={'bzbtV':_0x289b66(0x1a0),'EUWYH':function(_0x37b32f,_0x16c0c5){return _0x37b32f+_0x16c0c5;},'VwtbI':_0x289b66(0x196),'wFhjf':function(_0x473ada,_0x4dad21,_0x41addb){return _0x473ada(_0x4dad21,_0x41addb);}},_0x583ff1=napCatCore[_0x289b66(0x1ad)][_0x289b66(0x1ac)](),_0x7fda04=_0x583ff1[_0x289b66(0x190)](_0x557732,_0x51f774['bzbtV']),_0x55e163=await _0x583ff1[_0x289b66(0x180)](_0x7fda04,undefined,_0x4d0f7c);if(_0x55e163[_0x289b66(0x17d)]!==0x0)throw _0x51f774[_0x289b66(0x17f)](_0x51f774[_0x289b66(0x181)],_0x55e163[_0x289b66(0x194)]);return _0x51f774[_0x289b66(0x19f)](logDebug,_0x289b66(0x18f)+_0x557732+_0x289b66(0x199),_0x289b66(0x198)+_0x55e163[_0x289b66(0x1b0)][_0x289b66(0x193)]),_0x55e163[_0x289b66(0x1b0)][_0x289b66(0x188)]['forEach'](_0x10a7bf=>{const _0x5d8acd=_0x289b66;uid2UinMap[_0x10a7bf[_0x5d8acd(0x182)]]=_0x10a7bf[_0x5d8acd(0x18c)];}),_0x55e163['result'][_0x289b66(0x188)];}static async[_0x1351c4(0x19a)](){}static async['getGroupIgnoreNotifies'](){}static async[_0x1351c4(0x1af)](_0x1578ec,_0x4aefd9,_0x189d9c){const _0x4a0220=_0x1351c4,_0x4b534f={'tGddD':function(_0x589201,_0x547a21){return _0x589201||_0x547a21;}};return napCatCore['session'][_0x4a0220(0x1ac)]()['operateSysNotify'](![],{'operateType':_0x4aefd9,'targetMsg':{'seq':_0x1578ec[_0x4a0220(0x189)],'type':_0x1578ec[_0x4a0220(0x187)],'groupCode':_0x1578ec[_0x4a0220(0x19e)][_0x4a0220(0x17e)],'postscript':_0x4b534f[_0x4a0220(0x184)](_0x189d9c,'')}});}static async[_0x1351c4(0x17b)](_0x76e8ed){const _0x31a634=_0x1351c4;return napCatCore['session'][_0x31a634(0x1ac)]()[_0x31a634(0x17b)](_0x76e8ed);}static async[_0x1351c4(0x1a8)](_0x534db3,_0x456cd2,_0x2d9588=![],_0x2d39b0=''){const _0x15b45b=_0x1351c4;return napCatCore['session'][_0x15b45b(0x1ac)]()[_0x15b45b(0x1a8)](_0x534db3,_0x456cd2,_0x2d9588,_0x2d39b0);}static async[_0x1351c4(0x19b)](_0xd975f3,_0x102055){const _0xd33215=_0x1351c4;return napCatCore['session'][_0xd33215(0x1ac)]()[_0xd33215(0x185)](_0xd975f3,_0x102055);}static async[_0x1351c4(0x191)](_0x344a65,_0x35f9d2){const _0x647049=_0x1351c4;return napCatCore[_0x647049(0x1ad)][_0x647049(0x1ac)]()[_0x647049(0x1b4)](_0x344a65,_0x35f9d2);}static async[_0x1351c4(0x1a9)](_0x5382c0,_0x1c69fe,_0xa34f34){const _0x532ee9=_0x1351c4;return napCatCore[_0x532ee9(0x1ad)]['getGroupService']()[_0x532ee9(0x1a5)](_0x5382c0,_0x1c69fe,_0xa34f34);}static async[_0x1351c4(0x1a1)](_0x1479b1,_0x3000ca,_0x118745){const _0x4bd781=_0x1351c4;return napCatCore[_0x4bd781(0x1ad)][_0x4bd781(0x1ac)]()['modifyMemberRole'](_0x1479b1,_0x3000ca,_0x118745);}static async[_0x1351c4(0x197)](_0x53bcdc,_0x49233c){const _0x16ca7e=_0x1351c4;return napCatCore[_0x16ca7e(0x1ad)][_0x16ca7e(0x1ac)]()[_0x16ca7e(0x1b3)](_0x53bcdc,_0x49233c,![]);}static async[_0x1351c4(0x1a4)](_0x631a4b,_0x964f9c,_0x219fe4){}static['publishGroupBulletin'](_0x3b8a17,_0x424edd,_0x112844){}} \ No newline at end of file +const _0x4bc932=_0x2fe4;(function(_0x3dc38e,_0x2243f0){const _0x4b48bb=_0x2fe4,_0x3197a2=_0x3dc38e();while(!![]){try{const _0x1c0058=parseInt(_0x4b48bb(0x14b))/0x1*(parseInt(_0x4b48bb(0x13f))/0x2)+-parseInt(_0x4b48bb(0x11f))/0x3*(-parseInt(_0x4b48bb(0x12d))/0x4)+parseInt(_0x4b48bb(0x141))/0x5+-parseInt(_0x4b48bb(0x143))/0x6*(-parseInt(_0x4b48bb(0x11e))/0x7)+-parseInt(_0x4b48bb(0x128))/0x8*(-parseInt(_0x4b48bb(0x145))/0x9)+parseInt(_0x4b48bb(0x11a))/0xa+-parseInt(_0x4b48bb(0x122))/0xb;if(_0x1c0058===_0x2243f0)break;else _0x3197a2['push'](_0x3197a2['shift']());}catch(_0x563656){_0x3197a2['push'](_0x3197a2['shift']());}}}(_0x50a4,0x2ffd7));import{napCatCore}from'@/core';import{GroupListener}from'@/core/index';import{uid2UinMap}from'@/core/data';import{logDebug}from'@/common/utils/log';import{randomUUID}from'crypto';const groupMemberTasks=new Map(),groupListener=new GroupListener();groupListener[_0x4bc932(0x14c)]=(_0x4f8858,_0x1724fc)=>{const _0x3f7b5c=_0x4bc932,_0x3af492={'RMuLq':function(_0x4f13c7,_0x344773,_0x5bf975){return _0x4f13c7(_0x344773,_0x5bf975);}};for(const [_0x431dc0,_0x36230f]of groupMemberTasks){_0x3af492['RMuLq'](_0x36230f,_0x4f8858,_0x1724fc),groupMemberTasks[_0x3f7b5c(0x12c)](_0x431dc0);}},setTimeout(()=>{napCatCore['onLoginSuccess'](()=>{const _0x541857=_0x2fe4;napCatCore[_0x541857(0x156)](groupListener);});},0x64);function _0x50a4(){const _0x2a5350=['setMemberShutUp','getGroupList','delete','4YRDXuR','uid','setGroupName','getGroups','getGroupIgnoreNotifies','setMemberRole','groupCode','QOGuD','set','LEVGC','getGroupMembers','session','quitGroup','modifyGroupName',')成员列表结果:','modifyMemberCardName','uin','OahGV','2reERZX','获取群列表完成','1224170sJUVhF','infos','1522266IsGOnF','then','7146aGMKKq','groupMemberList_MainWindow','setGroupTitle','errCode','GzlbR','errMsg','253535acvLja','onGroupListUpdate','EOxMX','result','MslKt','EVlgN','finish','setGroupShutUp','finish:\x20','publishGroupBulletin','createMemberListScene','addListener','627370lDKyuz','seq','getGroupService','oFMZl','7dywbjx','140205jbtrEk','type','getGroupNotifies','9786557vFYqas','获取群(','jhATd','modifyMemberRole','banGroup','EvlhR','2264kCWzKd','kickMember'];_0x50a4=function(){return _0x2a5350;};return _0x50a4();}function _0x2fe4(_0x1bac2d,_0x31add0){const _0x50a4ce=_0x50a4();return _0x2fe4=function(_0x2fe4b3,_0x3450d7){_0x2fe4b3=_0x2fe4b3-0x11a;let _0x277085=_0x50a4ce[_0x2fe4b3];return _0x277085;},_0x2fe4(_0x1bac2d,_0x31add0);}export class NTQQGroupApi{static async[_0x4bc932(0x130)](_0x33255d=![]){const _0x427867=_0x4bc932,_0x2cdb1b={'EVlgN':function(_0x682c,_0x289393,_0x791ad8){return _0x682c(_0x289393,_0x791ad8);},'jhATd':_0x427867(0x140),'GTGbO':'获取群列表超时','EOxMX':function(_0x38cfd8){return _0x38cfd8();}};let _0x103cdc=![];return new Promise((_0x3889b4,_0x3c6d90)=>{const _0x27844d=_0x427867,_0x48161f={'oFMZl':_0x2cdb1b['GTGbO'],'LEVGC':function(_0x357a14,_0x4475ab){return _0x357a14(_0x4475ab);}};setTimeout(()=>{const _0x2cc23f=_0x2fe4;!_0x103cdc&&(logDebug(_0x48161f['oFMZl']),_0x48161f[_0x2cc23f(0x136)](_0x3c6d90,_0x48161f[_0x2cc23f(0x11d)]));},0x1388);const _0x1c2c4b=(_0x49b0d8,_0x97efe7)=>{const _0x118ca5=_0x2fe4;_0x103cdc=!![],_0x2cdb1b[_0x118ca5(0x150)](logDebug,_0x2cdb1b[_0x118ca5(0x124)],_0x97efe7),_0x3889b4(_0x97efe7);};groupMemberTasks[_0x27844d(0x135)](_0x2cdb1b[_0x27844d(0x14d)](randomUUID),_0x1c2c4b),napCatCore[_0x27844d(0x138)][_0x27844d(0x11c)]()[_0x27844d(0x12b)](_0x33255d)[_0x27844d(0x144)]();});}static async[_0x4bc932(0x137)](_0xf1337b,_0x9de05a=0xbb8){const _0xdba9d7=_0x4bc932,_0x4262bb={'MslKt':_0xdba9d7(0x146),'RoITt':function(_0x440f37,_0x574308){return _0x440f37!==_0x574308;},'QOGuD':function(_0x15690e,_0x257824){return _0x15690e+_0x257824;},'EvlhR':'获取群成员列表出错,','OahGV':function(_0x25dc5a,_0x54f053,_0x3bb0d4){return _0x25dc5a(_0x54f053,_0x3bb0d4);}},_0x24e646=napCatCore[_0xdba9d7(0x138)][_0xdba9d7(0x11c)](),_0x3109ad=_0x24e646[_0xdba9d7(0x155)](_0xf1337b,_0x4262bb[_0xdba9d7(0x14f)]),_0x2cef19=await _0x24e646['getNextMemberList'](_0x3109ad,undefined,_0x9de05a);if(_0x4262bb['RoITt'](_0x2cef19[_0xdba9d7(0x148)],0x0))throw _0x4262bb[_0xdba9d7(0x134)](_0x4262bb[_0xdba9d7(0x127)],_0x2cef19[_0xdba9d7(0x14a)]);return _0x4262bb[_0xdba9d7(0x13e)](logDebug,_0xdba9d7(0x123)+_0xf1337b+_0xdba9d7(0x13b),_0xdba9d7(0x153)+_0x2cef19[_0xdba9d7(0x14e)][_0xdba9d7(0x151)]),_0x2cef19[_0xdba9d7(0x14e)]['infos']['forEach'](_0x5ec23a=>{const _0x257990=_0xdba9d7;uid2UinMap[_0x5ec23a[_0x257990(0x12e)]]=_0x5ec23a[_0x257990(0x13d)];}),_0x2cef19[_0xdba9d7(0x14e)][_0xdba9d7(0x142)];}static async[_0x4bc932(0x121)](){}static async[_0x4bc932(0x131)](){}static async['handleGroupRequest'](_0x285838,_0x1b5dd5,_0x4715e9){const _0x22cf93=_0x4bc932,_0x2c8edb={'GzlbR':function(_0x25d461,_0x49725d){return _0x25d461||_0x49725d;}};return napCatCore[_0x22cf93(0x138)][_0x22cf93(0x11c)]()['operateSysNotify'](![],{'operateType':_0x1b5dd5,'targetMsg':{'seq':_0x285838[_0x22cf93(0x11b)],'type':_0x285838[_0x22cf93(0x120)],'groupCode':_0x285838['group'][_0x22cf93(0x133)],'postscript':_0x2c8edb[_0x22cf93(0x149)](_0x4715e9,'')}});}static async['quitGroup'](_0x1cfbbd){const _0x104124=_0x4bc932;return napCatCore[_0x104124(0x138)][_0x104124(0x11c)]()[_0x104124(0x139)](_0x1cfbbd);}static async['kickMember'](_0x37a9af,_0x596d2b,_0x4feebc=![],_0x41c6d2=''){const _0x2f65ee=_0x4bc932;return napCatCore[_0x2f65ee(0x138)][_0x2f65ee(0x11c)]()[_0x2f65ee(0x129)](_0x37a9af,_0x596d2b,_0x4feebc,_0x41c6d2);}static async['banMember'](_0x14ced9,_0x56171b){const _0x47d82e=_0x4bc932;return napCatCore[_0x47d82e(0x138)]['getGroupService']()[_0x47d82e(0x12a)](_0x14ced9,_0x56171b);}static async[_0x4bc932(0x126)](_0x1ab422,_0x55416c){const _0x2fe785=_0x4bc932;return napCatCore[_0x2fe785(0x138)][_0x2fe785(0x11c)]()[_0x2fe785(0x152)](_0x1ab422,_0x55416c);}static async['setMemberCard'](_0x8e64f0,_0x43d319,_0x4c929b){const _0x45a17c=_0x4bc932;return napCatCore[_0x45a17c(0x138)][_0x45a17c(0x11c)]()[_0x45a17c(0x13c)](_0x8e64f0,_0x43d319,_0x4c929b);}static async[_0x4bc932(0x132)](_0x15412c,_0x79807f,_0x4a23fe){const _0x4b881f=_0x4bc932;return napCatCore[_0x4b881f(0x138)][_0x4b881f(0x11c)]()[_0x4b881f(0x125)](_0x15412c,_0x79807f,_0x4a23fe);}static async[_0x4bc932(0x12f)](_0x13cbdc,_0x28d262){const _0x5490a3=_0x4bc932;return napCatCore[_0x5490a3(0x138)][_0x5490a3(0x11c)]()[_0x5490a3(0x13a)](_0x13cbdc,_0x28d262,![]);}static async[_0x4bc932(0x147)](_0x546b99,_0x19f0cf,_0xce7880){}static[_0x4bc932(0x154)](_0x52ab7b,_0x8054d2,_0x447a57){}} \ No newline at end of file diff --git a/src/core.lib/src/apis/index.js b/src/core.lib/src/apis/index.js index 211a7e52..c5e179ce 100644 --- a/src/core.lib/src/apis/index.js +++ b/src/core.lib/src/apis/index.js @@ -1 +1 @@ -(function(_0x401775,_0xb2a0c9){var _0x2faeec=_0x1182,_0x7172c8=_0x401775();while(!![]){try{var _0x2277f9=-parseInt(_0x2faeec(0x6b))/0x1+-parseInt(_0x2faeec(0x70))/0x2*(-parseInt(_0x2faeec(0x72))/0x3)+parseInt(_0x2faeec(0x6e))/0x4+parseInt(_0x2faeec(0x6c))/0x5*(parseInt(_0x2faeec(0x69))/0x6)+-parseInt(_0x2faeec(0x6f))/0x7*(parseInt(_0x2faeec(0x71))/0x8)+parseInt(_0x2faeec(0x6d))/0x9+parseInt(_0x2faeec(0x6a))/0xa;if(_0x2277f9===_0xb2a0c9)break;else _0x7172c8['push'](_0x7172c8['shift']());}catch(_0x530251){_0x7172c8['push'](_0x7172c8['shift']());}}}(_0x3e0f,0xd8d26));export*from'./file';export*from'./friend';function _0x3e0f(){var _0x1cfb2e=['9072450kikbwX','445616CmHkjw','511JyLPcB','2083814qrduRo','14776HmjtDo','3URuIFZ','16098zIJyMk','1721620nHtXaO','1372299ecjdVf','115lrMVcB'];_0x3e0f=function(){return _0x1cfb2e;};return _0x3e0f();}export*from'./group';export*from'./msg';function _0x1182(_0x1c471c,_0x5dfee2){var _0x3e0fcf=_0x3e0f();return _0x1182=function(_0x11824c,_0x5b8dcd){_0x11824c=_0x11824c-0x69;var _0x17eb03=_0x3e0fcf[_0x11824c];return _0x17eb03;},_0x1182(_0x1c471c,_0x5dfee2);}export*from'./user';export*from'./webapi'; \ No newline at end of file +(function(_0x2e1c33,_0x2ce6ae){var _0x5724f4=_0x25f4,_0x44291e=_0x2e1c33();while(!![]){try{var _0x5af712=parseInt(_0x5724f4(0xb2))/0x1*(-parseInt(_0x5724f4(0xb4))/0x2)+-parseInt(_0x5724f4(0xae))/0x3+-parseInt(_0x5724f4(0xb0))/0x4*(-parseInt(_0x5724f4(0xb8))/0x5)+parseInt(_0x5724f4(0xb3))/0x6*(-parseInt(_0x5724f4(0xb1))/0x7)+-parseInt(_0x5724f4(0xb9))/0x8*(parseInt(_0x5724f4(0xb7))/0x9)+parseInt(_0x5724f4(0xb5))/0xa*(-parseInt(_0x5724f4(0xaf))/0xb)+parseInt(_0x5724f4(0xb6))/0xc;if(_0x5af712===_0x2ce6ae)break;else _0x44291e['push'](_0x44291e['shift']());}catch(_0x44e279){_0x44291e['push'](_0x44291e['shift']());}}}(_0xe13c,0x96439));function _0x25f4(_0x3a545d,_0x50d262){var _0xe13ceb=_0xe13c();return _0x25f4=function(_0x25f40c,_0x192405){_0x25f40c=_0x25f40c-0xae;var _0x581ba9=_0xe13ceb[_0x25f40c];return _0x581ba9;},_0x25f4(_0x3a545d,_0x50d262);}export*from'./file';export*from'./friend';export*from'./group';export*from'./msg';export*from'./user';export*from'./webapi';function _0xe13c(){var _0x3ef3a8=['3776340sjPwyn','7mpYUHQ','1jxwnlP','3409326QWKrFG','352470EAJUej','386790ywMqSw','34106520OKFuJB','81513DrsDkk','5cnXlCy','1016DihFfe','1971765RJThzk','176eInPyD'];_0xe13c=function(){return _0x3ef3a8;};return _0xe13c();} \ No newline at end of file diff --git a/src/core.lib/src/apis/msg.js b/src/core.lib/src/apis/msg.js index 6bca21a3..1732a376 100644 --- a/src/core.lib/src/apis/msg.js +++ b/src/core.lib/src/apis/msg.js @@ -1 +1 @@ -const _0x4b0fcf=_0x2adc;(function(_0x1bf26e,_0x2f8c30){const _0x307e4a=_0x2adc,_0x809fbb=_0x1bf26e();while(!![]){try{const _0x89858=parseInt(_0x307e4a(0xb6))/0x1*(parseInt(_0x307e4a(0xa0))/0x2)+-parseInt(_0x307e4a(0xbd))/0x3+parseInt(_0x307e4a(0xca))/0x4+-parseInt(_0x307e4a(0xb0))/0x5*(parseInt(_0x307e4a(0xc3))/0x6)+parseInt(_0x307e4a(0x9b))/0x7*(parseInt(_0x307e4a(0xb2))/0x8)+parseInt(_0x307e4a(0xb1))/0x9+parseInt(_0x307e4a(0xb8))/0xa;if(_0x89858===_0x2f8c30)break;else _0x809fbb['push'](_0x809fbb['shift']());}catch(_0x54b78d){_0x809fbb['push'](_0x809fbb['shift']());}}}(_0xa5c3,0x18b52));import{selfInfo}from'@/core/data';import{log,logError}from'@/common/utils/log';function _0x2adc(_0x538546,_0x495680){const _0xa5c335=_0xa5c3();return _0x2adc=function(_0x2adc70,_0x5632d4){_0x2adc70=_0x2adc70-0x88;let _0x3eaa5b=_0xa5c335[_0x2adc70];return _0x3eaa5b;},_0x2adc(_0x538546,_0x495680);}function _0xa5c3(){const _0xc45952=['562BArTzA','getMsgService','onAddSendMsg','then','getMultiMsg','Zlils','recallMsg','VLKGI','gpQsG','getMsgsByMsgId','发送超时','msgId','peerUid','set','catch','cUZgG','451730xxsdOi','966114FyEnCH','80ErKrmG','delete','leEhn','session','193DiuzkV','forwardMsg','246450agkUMz','OqFUB','sjjOh','phPHn','HJlRM','496269hZzwPS','getMsgsIncludeSelf','getMsgsBySeqAndCount','setMsgEmojiLikes','setEmojiLike','com.tencent.multimsg','6CyvLjH','senderUid','eUrFZ','fetchRecentContact','chatType','转发消息超时','vHeOk','189348Skofqq','elements','nick','toString','activateChatAndGetHistory','VZxPx','jmqkA','bytesData','qRWnj','multiForwardMsg','iRWOK','app','kDanX','amsvl','sgbGm','getMsgHistory','onMsgInfoListUpdate','EWiHa','HDyjr','arkElement','find','IhYcW','length','map','addListener','activateChat','onLoginSuccess','86387EllYQM','setMsgRead','forEach','sendMsg','AMrLd'];_0xa5c3=function(){return _0xc45952;};return _0xa5c3();}import{sleep}from'@/common/utils/helper';import{napCatCore}from'@/core';import{MsgListener}from'@/core/listeners';import{randomUUID}from'crypto';const sendMessagePool={},sendSuccessCBMap={},sentMsgTasks=new Map(),msgListener=new MsgListener();msgListener[_0x4b0fcf(0xa2)]=_0x291477=>{const _0x5970b5=_0x4b0fcf,_0x42799c={'KUFrk':function(_0x572d02,_0x461772){return _0x572d02(_0x461772);},'EWiHa':function(_0x495f39,_0x55223f){return _0x495f39 instanceof _0x55223f;}};for(const [_0x5d913f,_0x25e579]of sentMsgTasks){_0x42799c['KUFrk'](_0x25e579,_0x291477),sentMsgTasks[_0x5970b5(0xb3)](_0x5d913f);}if(sendMessagePool[_0x291477['peerUid']]){const _0x367df9=sendMessagePool[_0x291477['peerUid']]?.(_0x291477);_0x42799c[_0x5970b5(0x91)](_0x367df9,Promise)&&_0x367df9['then']()[_0x5970b5(0xae)](logError);}},msgListener[_0x4b0fcf(0x90)]=_0x15dbe9=>{const _0x445cd9=_0x4b0fcf,_0x2c6ee3={'cUZgG':function(_0x2996c7,_0x48ee68){return _0x2996c7(_0x48ee68);},'kDanX':function(_0x246373,_0x53d37c){return _0x246373 instanceof _0x53d37c;}};_0x15dbe9[_0x445cd9(0x9d)](_0x2573ba=>{const _0x41d4a1=_0x445cd9,_0x1e2f63={'IhYcW':function(_0x2f3082,_0x183cdc){const _0x476936=_0x2adc;return _0x2c6ee3[_0x476936(0xaf)](_0x2f3082,_0x183cdc);},'leEhn':function(_0x184a09,_0xa28c){const _0xb19d15=_0x2adc;return _0x2c6ee3[_0xb19d15(0x8c)](_0x184a09,_0xa28c);}};new Promise((_0xfbb497,_0x502181)=>{const _0x330ea1=_0x2adc;for(const _0x1581ab in sendSuccessCBMap){const _0x5a9786=sendSuccessCBMap[_0x1581ab],_0x4336e2=_0x1e2f63[_0x330ea1(0x95)](_0x5a9786,_0x2573ba),_0x494c1c=_0x13a019=>{_0x13a019&&delete sendSuccessCBMap[_0x1581ab];};_0x1e2f63[_0x330ea1(0xb4)](_0x4336e2,Promise)?_0x4336e2[_0x330ea1(0xa3)](_0x494c1c):_0x494c1c(_0x4336e2);}})[_0x41d4a1(0xa3)]()[_0x41d4a1(0xae)](log);});},setTimeout(()=>{const _0x5f0c7d=_0x4b0fcf;napCatCore[_0x5f0c7d(0x9a)](()=>{const _0x2db7e7=_0x5f0c7d;napCatCore[_0x2db7e7(0x98)](msgListener);});},0x64);export class NTQQMsgApi{static async[_0x4b0fcf(0xc1)](_0x37e539,_0x46ccab,_0x3a6048,_0x28acc9=!![]){const _0xb32e69=_0x4b0fcf;return _0x3a6048=_0x3a6048[_0xb32e69(0xcd)](),napCatCore[_0xb32e69(0xb5)]['getMsgService']()[_0xb32e69(0xc0)](_0x37e539,_0x46ccab,_0x3a6048,_0x3a6048[_0xb32e69(0x96)]>0x3?'2':'1',_0x28acc9);}static async[_0x4b0fcf(0xa4)](_0x2863c2,_0x431f15,_0x324ea2){const _0x5735fe=_0x4b0fcf;return napCatCore[_0x5735fe(0xb5)][_0x5735fe(0xa1)]()['getMultiMsg'](_0x2863c2,_0x431f15,_0x324ea2);}static async[_0x4b0fcf(0xa9)](_0x404559,_0x20b4e6){const _0x5cd0ab=_0x4b0fcf;return await napCatCore[_0x5cd0ab(0xb5)][_0x5cd0ab(0xa1)]()[_0x5cd0ab(0xa9)](_0x404559,_0x20b4e6);}static async[_0x4b0fcf(0xbf)](_0x5423af,_0x538193,_0xeb62d1,_0xed7855,_0x337fb1){const _0x4e071b=_0x4b0fcf;return await napCatCore['session'][_0x4e071b(0xa1)]()['getMsgsBySeqAndCount'](_0x5423af,_0x538193,_0xeb62d1,_0xed7855,_0x337fb1);}static async[_0x4b0fcf(0x99)](_0x26d3b3){}static async[_0x4b0fcf(0xce)](_0x37823f){}static async[_0x4b0fcf(0x9c)](_0x1bba71){const _0x2525b7=_0x4b0fcf;return napCatCore[_0x2525b7(0xb5)][_0x2525b7(0xa1)]()[_0x2525b7(0x9c)](_0x1bba71);}static async[_0x4b0fcf(0x8f)](_0x58c535,_0x2fb738,_0x1cc34e){const _0x4c1a1c=_0x4b0fcf;return napCatCore[_0x4c1a1c(0xb5)][_0x4c1a1c(0xa1)]()[_0x4c1a1c(0xbe)](_0x58c535,_0x2fb738,_0x1cc34e,!![]);}static async[_0x4b0fcf(0xc6)](){}static async[_0x4b0fcf(0xa6)](_0x30776d,_0x41d789){const _0x218769=_0x4b0fcf;await napCatCore[_0x218769(0xb5)][_0x218769(0xa1)]()[_0x218769(0xa6)]({'chatType':_0x30776d[_0x218769(0xc7)],'peerUid':_0x30776d['peerUid']},_0x41d789);}static async['sendMsg'](_0x489347,_0x1fe30e,_0x117979=!![],_0x524e1f=0x2710){const _0x29933c=_0x4b0fcf,_0x534560={'jmqkA':function(_0x1128c6,_0x12be10){return _0x1128c6>_0x12be10;},'phPHn':_0x29933c(0xaa),'gpQsG':function(_0x12c8ca,_0x40d33c){return _0x12c8ca(_0x40d33c);},'ioNXR':function(_0x44bbcd){return _0x44bbcd();},'vHeOk':function(_0x113868,_0xb54510){return _0x113868(_0xb54510);},'HDyjr':function(_0x1ad986){return _0x1ad986();},'amsvl':function(_0x3bcf78,_0x3f6cf4,_0x2798fb){return _0x3bcf78(_0x3f6cf4,_0x2798fb);}},_0xf504ff=_0x489347[_0x29933c(0xac)];let _0x4b77e7=0x0;const _0x49dc61=async()=>{const _0x5d92f8=_0x29933c;if(_0x534560[_0x5d92f8(0xd0)](_0x4b77e7,_0x524e1f))throw _0x534560[_0x5d92f8(0xbb)];const _0x3002bd=sendMessagePool[_0x489347[_0x5d92f8(0xac)]];if(_0x3002bd)return await _0x534560[_0x5d92f8(0xa8)](sleep,0x1f4),_0x4b77e7+=0x1f4,await _0x534560['ioNXR'](_0x49dc61);else return;};return await _0x534560[_0x29933c(0x92)](_0x49dc61),new Promise((_0x427343,_0x3059dc)=>{const _0x298867=_0x29933c,_0x19f313={'muiDH':function(_0x1d0e99,_0x28ea97){return _0x1d0e99===_0x28ea97;},'qRWnj':function(_0x1f0268,_0x2ddf4f){const _0x5767f4=_0x2adc;return _0x534560[_0x5767f4(0xc9)](_0x1f0268,_0x2ddf4f);},'fQJfl':function(_0x516504,_0x38199a){return _0x516504(_0x38199a);}};let _0x48461e=![],_0x5c7302=null;const _0x39c3f8=_0x534560[_0x298867(0x92)](randomUUID);sendSuccessCBMap[_0x39c3f8]=_0x3de598=>{const _0x14f975=_0x298867;if(_0x19f313['muiDH'](_0x3de598[_0x14f975(0xab)],_0x5c7302?.[_0x14f975(0xab)])){if(_0x19f313['muiDH'](_0x3de598['sendStatus'],0x2))return delete sendSuccessCBMap[_0x39c3f8],_0x48461e=!![],_0x19f313[_0x14f975(0x88)](_0x427343,_0x3de598),!![];return![];}return![];},sendMessagePool[_0xf504ff]=async _0x18045f=>{delete sendMessagePool[_0xf504ff],_0x5c7302=_0x18045f;},_0x534560[_0x298867(0x8d)](setTimeout,()=>{const _0x3d7aac=_0x298867;if(_0x48461e)return;delete sendMessagePool[_0xf504ff],delete sendSuccessCBMap[_0x39c3f8],_0x19f313['fQJfl'](_0x3059dc,_0x3d7aac(0xaa));},_0x524e1f);const _0x17ee5f=napCatCore[_0x298867(0xb5)][_0x298867(0xa1)]()[_0x298867(0x9e)]('0',_0x489347,_0x1fe30e,new Map());});}static async['forwardMsg'](_0x1dc00a,_0x229436,_0x475836){const _0x4eac4d=_0x4b0fcf;return napCatCore[_0x4eac4d(0xb5)][_0x4eac4d(0xa1)]()[_0x4eac4d(0xb7)](_0x475836,_0x1dc00a,[_0x229436],new Map());}static async[_0x4b0fcf(0x89)](_0x1ae8d8,_0x538601,_0x4f149a){const _0x2557cc=_0x4b0fcf,_0xde746b={'sjjOh':function(_0x136c3d,_0x1ec84f){return _0x136c3d!=_0x1ec84f;},'HJlRM':function(_0x48b406,_0x1a204f){return _0x48b406==_0x1a204f;},'eUrFZ':function(_0x4ed9c7,_0xd78795){return _0x4ed9c7(_0xd78795);},'VZxPx':_0x2557cc(0xc8),'iRWOK':function(_0x2e1dad){return _0x2e1dad();}},_0x56bb97=_0x4f149a[_0x2557cc(0x97)](_0x18e260=>{const _0xc8cdb8=_0x2557cc;return{'msgId':_0x18e260,'senderShowName':selfInfo[_0xc8cdb8(0xcc)]};});return new Promise((_0x3e46ee,_0x5ed025)=>{const _0x49cd4a=_0x2557cc,_0x4ebdbd={'VLKGI':function(_0x4d9de7,_0x95fdf2){const _0x3d1033=_0x2adc;return _0xde746b[_0x3d1033(0xba)](_0x4d9de7,_0x95fdf2);},'ZkCLq':_0x49cd4a(0xc2),'Zlils':function(_0x2feb24,_0x7a3875){const _0x4ad740=_0x49cd4a;return _0xde746b[_0x4ad740(0xbc)](_0x2feb24,_0x7a3875);},'OqFUB':function(_0x4a2252,_0x34fc50){const _0x227302=_0x49cd4a;return _0xde746b[_0x227302(0xc5)](_0x4a2252,_0x34fc50);},'sgbGm':function(_0x38f8e,_0x3a2fd6){const _0x5c4e67=_0x49cd4a;return _0xde746b[_0x5c4e67(0xc5)](_0x38f8e,_0x3a2fd6);},'AMrLd':_0xde746b[_0x49cd4a(0xcf)]};let _0x545941=![];const _0x3861d9=_0x4ad486=>{const _0x1d3e22=_0x49cd4a,_0x3046da=_0x4ad486[_0x1d3e22(0xcb)][_0x1d3e22(0x94)](_0x367337=>_0x367337[_0x1d3e22(0x93)]);if(!_0x3046da)return;const _0x307c4f=JSON['parse'](_0x3046da[_0x1d3e22(0x93)][_0x1d3e22(0xd1)]);if(_0x4ebdbd[_0x1d3e22(0xa7)](_0x307c4f[_0x1d3e22(0x8b)],_0x4ebdbd['ZkCLq']))return;_0x4ad486['peerUid']==_0x538601[_0x1d3e22(0xac)]&&_0x4ebdbd[_0x1d3e22(0xa5)](_0x4ad486[_0x1d3e22(0xc4)],selfInfo['uid'])&&(_0x545941=!![],_0x4ebdbd[_0x1d3e22(0xb9)](_0x3e46ee,_0x4ad486));};sentMsgTasks[_0x49cd4a(0xad)](_0xde746b[_0x49cd4a(0x8a)](randomUUID),_0x3861d9),setTimeout(()=>{const _0x1cc588=_0x49cd4a;!_0x545941&&_0x4ebdbd[_0x1cc588(0x8e)](_0x5ed025,_0x4ebdbd[_0x1cc588(0x9f)]);},0x1388),napCatCore[_0x49cd4a(0xb5)]['getMsgService']()['multiForwardMsgWithComment'](_0x56bb97,_0x1ae8d8,_0x538601,[],new Map());});}} \ No newline at end of file +const _0x26c0be=_0x672c;(function(_0x9abe06,_0xd30482){const _0x232107=_0x672c,_0xf5e063=_0x9abe06();while(!![]){try{const _0x479a65=parseInt(_0x232107(0x94))/0x1*(parseInt(_0x232107(0x93))/0x2)+-parseInt(_0x232107(0x7f))/0x3*(-parseInt(_0x232107(0xa0))/0x4)+parseInt(_0x232107(0x99))/0x5+parseInt(_0x232107(0x73))/0x6+parseInt(_0x232107(0x7c))/0x7+parseInt(_0x232107(0x83))/0x8*(parseInt(_0x232107(0x9a))/0x9)+-parseInt(_0x232107(0x77))/0xa;if(_0x479a65===_0xd30482)break;else _0xf5e063['push'](_0xf5e063['shift']());}catch(_0xc9f86b){_0xf5e063['push'](_0xf5e063['shift']());}}}(_0x31a8,0xd748c));import{selfInfo}from'@/core/data';import{log,logError}from'@/common/utils/log';function _0x672c(_0x3a8898,_0x292fd9){const _0x31a8a7=_0x31a8();return _0x672c=function(_0x672c83,_0x199ca1){_0x672c83=_0x672c83-0x70;let _0x23e4a3=_0x31a8a7[_0x672c83];return _0x23e4a3;},_0x672c(_0x3a8898,_0x292fd9);}import{sleep}from'@/common/utils/helper';import{napCatCore}from'@/core';import{MsgListener}from'@/core/listeners';import{randomUUID}from'crypto';const sendMessagePool={},sendSuccessCBMap={},sentMsgTasks=new Map(),msgListener=new MsgListener();function _0x31a8(){const _0x450196=['nick','elements','转发消息超时','2963825JyxxmZ','3573OJIjap','fetchRecentContact','sendStatus','chatType','com.tencent.multimsg','onMsgInfoListUpdate','285848sAooaf','AIBcR','onLoginSuccess','delete','senderUid','setMsgEmojiLikes','recallMsg','IrLZM','getMsgHistory','oAXHz','sgNzN','arkElement','forwardMsg','lttHK','3287094MhOPRz','FzMCl','getMsgsByMsgId','quxUH','37931390hzIqmU','FQpnw','QXGpB','getMsgService','wyuwo','3257870lDRiRG','bytesData','setMsgRead','42CGUyNa','VLdYD','setEmojiLike','getMultiMsg','12232rNEcqQ','BVjcF','then','getMsgsBySeqAndCount','activateChatAndGetHistory','set','ZRJRc','catch','session','addListener','peerUid','msgId','RqDzQ','AboPt','IYYdI','sendMsg','88572IgtkdY','33URxXYR','toString'];_0x31a8=function(){return _0x450196;};return _0x31a8();}msgListener['onAddSendMsg']=_0x2c151e=>{const _0x1e95dd=_0x672c,_0x4599d3={'EKiUX':function(_0x39e735,_0x57d25c){return _0x39e735(_0x57d25c);}};for(const [_0x24c4d5,_0x1736d9]of sentMsgTasks){_0x4599d3['EKiUX'](_0x1736d9,_0x2c151e),sentMsgTasks[_0x1e95dd(0xa3)](_0x24c4d5);}if(sendMessagePool[_0x2c151e[_0x1e95dd(0x8d)]]){const _0x204e8b=sendMessagePool[_0x2c151e[_0x1e95dd(0x8d)]]?.(_0x2c151e);_0x204e8b instanceof Promise&&_0x204e8b['then']()[_0x1e95dd(0x8a)](logError);}},msgListener[_0x26c0be(0x9f)]=_0x4704b3=>{const _0x375ec0={'wyuwo':function(_0x72f064,_0xbdc956){return _0x72f064 instanceof _0xbdc956;},'FzMCl':function(_0x43bd12,_0x4a4cb8){return _0x43bd12(_0x4a4cb8);}};_0x4704b3['forEach'](_0x624479=>{const _0x3864b7=_0x672c;new Promise((_0x7d6f1e,_0xb29dca)=>{const _0x11a43e=_0x672c;for(const _0x42dc6f in sendSuccessCBMap){const _0x2ee96f=sendSuccessCBMap[_0x42dc6f],_0xb8f37d=_0x2ee96f(_0x624479),_0x26cac0=_0x20dae8=>{_0x20dae8&&delete sendSuccessCBMap[_0x42dc6f];};_0x375ec0[_0x11a43e(0x7b)](_0xb8f37d,Promise)?_0xb8f37d[_0x11a43e(0x85)](_0x26cac0):_0x375ec0[_0x11a43e(0x74)](_0x26cac0,_0xb8f37d);}})[_0x3864b7(0x85)]()[_0x3864b7(0x8a)](log);});},setTimeout(()=>{const _0x375ce2=_0x26c0be;napCatCore[_0x375ce2(0xa2)](()=>{const _0x3ccba8=_0x375ce2;napCatCore[_0x3ccba8(0x8c)](msgListener);});},0x64);export class NTQQMsgApi{static async[_0x26c0be(0x81)](_0x34a67f,_0x351652,_0x1c959d,_0x16b4b3=!![]){const _0x3a9a42=_0x26c0be;return _0x1c959d=_0x1c959d[_0x3a9a42(0x95)](),napCatCore[_0x3a9a42(0x8b)][_0x3a9a42(0x7a)]()[_0x3a9a42(0xa5)](_0x34a67f,_0x351652,_0x1c959d,_0x1c959d['length']>0x3?'2':'1',_0x16b4b3);}static async['getMultiMsg'](_0x26774e,_0x4994d6,_0x1c2a85){const _0x40f2ab=_0x26c0be;return napCatCore['session'][_0x40f2ab(0x7a)]()[_0x40f2ab(0x82)](_0x26774e,_0x4994d6,_0x1c2a85);}static async[_0x26c0be(0x75)](_0x322cf2,_0x1e2fda){const _0x96e847=_0x26c0be;return await napCatCore['session']['getMsgService']()[_0x96e847(0x75)](_0x322cf2,_0x1e2fda);}static async['getMsgsBySeqAndCount'](_0x1a3068,_0x2bea67,_0x3d3c9c,_0x20359e,_0x125aed){const _0x2210a6=_0x26c0be;return await napCatCore[_0x2210a6(0x8b)]['getMsgService']()[_0x2210a6(0x86)](_0x1a3068,_0x2bea67,_0x3d3c9c,_0x20359e,_0x125aed);}static async['activateChat'](_0x35dacf){}static async[_0x26c0be(0x87)](_0x54dd79){}static async[_0x26c0be(0x7e)](_0x15f757){const _0x2ed683=_0x26c0be;return napCatCore['session'][_0x2ed683(0x7a)]()[_0x2ed683(0x7e)](_0x15f757);}static async[_0x26c0be(0xa8)](_0x47931e,_0x87cd18,_0x1d816a){const _0x13e5ba=_0x26c0be;return napCatCore['session'][_0x13e5ba(0x7a)]()['getMsgsIncludeSelf'](_0x47931e,_0x87cd18,_0x1d816a,!![]);}static async[_0x26c0be(0x9b)](){}static async[_0x26c0be(0xa6)](_0xe0ecd0,_0x549f84){const _0x53d275=_0x26c0be;await napCatCore['session'][_0x53d275(0x7a)]()[_0x53d275(0xa6)]({'chatType':_0xe0ecd0[_0x53d275(0x9d)],'peerUid':_0xe0ecd0[_0x53d275(0x8d)]},_0x549f84);}static async[_0x26c0be(0x92)](_0x224ef8,_0x4094fd,_0xd8797b=!![],_0x4a7f9c=0x2710){const _0x49205f=_0x26c0be,_0x3865a5={'FQpnw':'发送超时','IrLZM':function(_0x1fdcb3,_0x5b75e3){return _0x1fdcb3(_0x5b75e3);},'AIBcR':function(_0x2b2048){return _0x2b2048();},'sgNzN':function(_0x581413,_0x2c6219){return _0x581413===_0x2c6219;},'QXGpB':function(_0x7262b4,_0x872340,_0x5dee17){return _0x7262b4(_0x872340,_0x5dee17);},'ZRJRc':function(_0x200eaf){return _0x200eaf();}},_0x1dc478=_0x224ef8['peerUid'];let _0x4e91ad=0x0;const _0x3cb063=async()=>{const _0x4594c4=_0x672c;if(_0x4e91ad>_0x4a7f9c)throw _0x3865a5['FQpnw'];const _0x51528e=sendMessagePool[_0x224ef8[_0x4594c4(0x8d)]];if(_0x51528e)return await _0x3865a5[_0x4594c4(0xa7)](sleep,0x1f4),_0x4e91ad+=0x1f4,await _0x3865a5['AIBcR'](_0x3cb063);else return;};return await _0x3865a5[_0x49205f(0x89)](_0x3cb063),new Promise((_0x2ec394,_0x30dbcc)=>{const _0x1e997a=_0x49205f,_0x21eef={'fkEzV':function(_0x46a05c,_0x337ffa){const _0x324094=_0x672c;return _0x3865a5[_0x324094(0xaa)](_0x46a05c,_0x337ffa);},'IYYdI':function(_0x1ceee9,_0x4f3305){return _0x1ceee9(_0x4f3305);}};let _0x5d838c=![],_0x40f283=null;const _0x48d799=_0x3865a5[_0x1e997a(0xa1)](randomUUID);sendSuccessCBMap[_0x48d799]=_0x10f517=>{const _0x3bc8c5=_0x1e997a;if(_0x21eef['fkEzV'](_0x10f517[_0x3bc8c5(0x8e)],_0x40f283?.['msgId'])){if(_0x10f517[_0x3bc8c5(0x9c)]===0x2)return delete sendSuccessCBMap[_0x48d799],_0x5d838c=!![],_0x21eef[_0x3bc8c5(0x91)](_0x2ec394,_0x10f517),!![];return![];}return![];},sendMessagePool[_0x1dc478]=async _0x5ce37f=>{delete sendMessagePool[_0x1dc478],_0x40f283=_0x5ce37f;},_0x3865a5[_0x1e997a(0x79)](setTimeout,()=>{const _0x442424=_0x1e997a;if(_0x5d838c)return;delete sendMessagePool[_0x1dc478],delete sendSuccessCBMap[_0x48d799],_0x3865a5[_0x442424(0xa7)](_0x30dbcc,_0x3865a5[_0x442424(0x78)]);},_0x4a7f9c);const _0x24b292=napCatCore[_0x1e997a(0x8b)][_0x1e997a(0x7a)]()[_0x1e997a(0x92)]('0',_0x224ef8,_0x4094fd,new Map());});}static async[_0x26c0be(0x71)](_0x5c23a7,_0x368e10,_0x1ef42e){const _0x17a289=_0x26c0be;return napCatCore[_0x17a289(0x8b)][_0x17a289(0x7a)]()['forwardMsg'](_0x1ef42e,_0x5c23a7,[_0x368e10],new Map());}static async['multiForwardMsg'](_0x550352,_0x4721a4,_0x2455aa){const _0x15f3b7=_0x26c0be,_0x217165={'oAXHz':function(_0x5b3f15,_0x3df4e6){return _0x5b3f15!=_0x3df4e6;},'AboPt':_0x15f3b7(0x9e),'lttHK':function(_0x213b88,_0x391d47){return _0x213b88==_0x391d47;},'BVjcF':function(_0x103011,_0x31af13){return _0x103011==_0x31af13;},'OLhUY':function(_0xbac1cc,_0xddcfb){return _0xbac1cc(_0xddcfb);},'qqwWA':_0x15f3b7(0x98),'VLdYD':function(_0x24a3f9){return _0x24a3f9();},'RqDzQ':function(_0x26a8dd,_0x2d7afa,_0x42c206){return _0x26a8dd(_0x2d7afa,_0x42c206);}},_0x5eed83=_0x2455aa['map'](_0x4b683a=>{const _0x232bc6=_0x15f3b7;return{'msgId':_0x4b683a,'senderShowName':selfInfo[_0x232bc6(0x96)]};});return new Promise((_0x26844,_0x278910)=>{const _0x1466e9=_0x15f3b7,_0x45db1a={'quxUH':function(_0x42f876,_0x56463e){return _0x42f876(_0x56463e);},'JwXxC':_0x217165['qqwWA']};let _0x3b1f34=![];const _0x5e44ae=_0x23ae72=>{const _0x1570ad=_0x672c,_0x185a49=_0x23ae72[_0x1570ad(0x97)]['find'](_0x5627bd=>_0x5627bd['arkElement']);if(!_0x185a49)return;const _0x42e0d9=JSON['parse'](_0x185a49[_0x1570ad(0x70)][_0x1570ad(0x7d)]);if(_0x217165[_0x1570ad(0xa9)](_0x42e0d9['app'],_0x217165[_0x1570ad(0x90)]))return;_0x217165[_0x1570ad(0x72)](_0x23ae72[_0x1570ad(0x8d)],_0x4721a4[_0x1570ad(0x8d)])&&_0x217165[_0x1570ad(0x84)](_0x23ae72[_0x1570ad(0xa4)],selfInfo['uid'])&&(_0x3b1f34=!![],_0x217165['OLhUY'](_0x26844,_0x23ae72));};sentMsgTasks[_0x1466e9(0x88)](_0x217165[_0x1466e9(0x80)](randomUUID),_0x5e44ae),_0x217165[_0x1466e9(0x8f)](setTimeout,()=>{const _0x543979=_0x1466e9;!_0x3b1f34&&_0x45db1a[_0x543979(0x76)](_0x278910,_0x45db1a['JwXxC']);},0x1388),napCatCore[_0x1466e9(0x8b)][_0x1466e9(0x7a)]()['multiForwardMsgWithComment'](_0x5eed83,_0x550352,_0x4721a4,[],new Map());});}} \ No newline at end of file diff --git a/src/core.lib/src/apis/sign.js b/src/core.lib/src/apis/sign.js index e4d6f5bd..16e578d0 100644 --- a/src/core.lib/src/apis/sign.js +++ b/src/core.lib/src/apis/sign.js @@ -1 +1 @@ -function _0x29e3(_0x21ce45,_0x5630fe){var _0x358f7e=_0x358f();return _0x29e3=function(_0x29e340,_0x4a082e){_0x29e340=_0x29e340-0x14f;var _0x1eab3b=_0x358f7e[_0x29e340];return _0x1eab3b;},_0x29e3(_0x21ce45,_0x5630fe);}var _0x4c6393=_0x29e3;(function(_0x1300ce,_0x38ac58){var _0x52a96e=_0x29e3,_0x4230ca=_0x1300ce();while(!![]){try{var _0x3a0e89=-parseInt(_0x52a96e(0x150))/0x1+parseInt(_0x52a96e(0x161))/0x2+-parseInt(_0x52a96e(0x15b))/0x3*(parseInt(_0x52a96e(0x164))/0x4)+-parseInt(_0x52a96e(0x159))/0x5*(-parseInt(_0x52a96e(0x163))/0x6)+parseInt(_0x52a96e(0x158))/0x7*(parseInt(_0x52a96e(0x160))/0x8)+-parseInt(_0x52a96e(0x15e))/0x9+parseInt(_0x52a96e(0x155))/0xa;if(_0x3a0e89===_0x38ac58)break;else _0x4230ca['push'](_0x4230ca['shift']());}catch(_0x4c0fa8){_0x4230ca['push'](_0x4230ca['shift']());}}}(_0x358f,0xd769d));function _0x358f(){var _0x4e3ce4=['url','sign','AaTCZ','11072380jQsgxf','json','then','7yfdJlc','515vLfIlV','stringify','2944452UeuRxB','statusText','application/json','13171797bAFvHO','音乐消息生成成功','3132376qmVKmz','2753498pPaleZ','EcRbj','44898grifXX','4JaaAUn','yVimA','catch','aMMMd','POST','318933gVOsYR','izCee'];_0x358f=function(){return _0x4e3ce4;};return _0x358f();}import{logDebug}from'@/common/utils/log';export class MusicSign{['url'];constructor(_0x54ce31){this['url']=_0x54ce31;}[_0x4c6393(0x153)](_0x4f0075){var _0x4ecfb6=_0x4c6393,_0x33aeca={'aMMMd':function(_0x3b71e2,_0x380032,_0x3b9133){return _0x3b71e2(_0x380032,_0x3b9133);},'EcRbj':_0x4ecfb6(0x15f),'izCee':function(_0x2d672b,_0x4d4b89){return _0x2d672b(_0x4d4b89);},'AaTCZ':_0x4ecfb6(0x14f),'wmfWb':_0x4ecfb6(0x15d)};return new Promise((_0x5d9acf,_0x141a6c)=>{var _0x2efbfb=_0x4ecfb6,_0x5776c7={'yVimA':function(_0x3c4b0f,_0x5c6daa){return _0x3c4b0f(_0x5c6daa);}};fetch(this[_0x2efbfb(0x152)],{'method':_0x33aeca[_0x2efbfb(0x154)],'headers':{'Content-Type':_0x33aeca['wmfWb']},'body':JSON[_0x2efbfb(0x15a)](_0x4f0075)})[_0x2efbfb(0x157)](_0x12e5a7=>{var _0xf245f1=_0x2efbfb;return!_0x12e5a7['ok']&&_0x5776c7[_0xf245f1(0x165)](_0x141a6c,_0x12e5a7[_0xf245f1(0x15c)]),_0x12e5a7[_0xf245f1(0x156)]();})[_0x2efbfb(0x157)](_0xe03e60=>{var _0x42743a=_0x2efbfb;_0x33aeca[_0x42743a(0x167)](logDebug,_0x33aeca[_0x42743a(0x162)],_0xe03e60),_0x33aeca[_0x42743a(0x151)](_0x5d9acf,_0xe03e60);})[_0x2efbfb(0x166)](_0xd7984d=>{var _0x4059a0=_0x2efbfb;_0x5776c7[_0x4059a0(0x165)](_0x141a6c,_0xd7984d);});});}} \ No newline at end of file +var _0x452a5a=_0x1420;function _0x53a3(){var _0x1cf9c9=['448730mOAmJc','1055964ySbJsG','tMMUw','stringify','application/json','emJEW','51457TRlOVp','24ljGpRc','AbXDU','AdoVz','3434910fgXZcd','WGhPF','url','POST','24kKbVFL','jJWli','json','catch','音乐消息生成成功','JJXlO','15298EyAFcO','then','1826433RXBuLt','sign','60oLwcUo','30892MSKnOO'];_0x53a3=function(){return _0x1cf9c9;};return _0x53a3();}(function(_0x5f26ed,_0x1315a1){var _0x95fc47=_0x1420,_0x1c4296=_0x5f26ed();while(!![]){try{var _0x2883e6=parseInt(_0x95fc47(0x1f4))/0x1*(parseInt(_0x95fc47(0x1f8))/0x2)+-parseInt(_0x95fc47(0x1fb))/0x3+parseInt(_0x95fc47(0x1f9))/0x4+parseInt(_0x95fc47(0x1fa))/0x5*(-parseInt(_0x95fc47(0x201))/0x6)+parseInt(_0x95fc47(0x200))/0x7*(-parseInt(_0x95fc47(0x208))/0x8)+parseInt(_0x95fc47(0x1f6))/0x9+parseInt(_0x95fc47(0x204))/0xa;if(_0x2883e6===_0x1315a1)break;else _0x1c4296['push'](_0x1c4296['shift']());}catch(_0x4fa97b){_0x1c4296['push'](_0x1c4296['shift']());}}}(_0x53a3,0x44602));import{logDebug}from'@/common/utils/log';function _0x1420(_0x42d3b8,_0xb0f308){var _0x53a334=_0x53a3();return _0x1420=function(_0x1420ae,_0x47f9eb){_0x1420ae=_0x1420ae-0x1f3;var _0x3f1312=_0x53a334[_0x1420ae];return _0x3f1312;},_0x1420(_0x42d3b8,_0xb0f308);}export class MusicSign{[_0x452a5a(0x206)];constructor(_0x32a505){var _0x595282=_0x452a5a;this[_0x595282(0x206)]=_0x32a505;}[_0x452a5a(0x1f7)](_0x17cc83){var _0x19bc28=_0x452a5a,_0x3018e5={'AbXDU':function(_0x1757da,_0x20aa1d){return _0x1757da(_0x20aa1d);},'oNFjX':function(_0x129205,_0x8c1a7f){return _0x129205(_0x8c1a7f);},'emJEW':function(_0x29da54,_0x1f960c,_0x287b81){return _0x29da54(_0x1f960c,_0x287b81);},'tMMUw':_0x19bc28(0x20c),'WGhPF':_0x19bc28(0x207),'lUXKu':_0x19bc28(0x1fe)};return new Promise((_0x3c6be0,_0x85f9af)=>{var _0x2110ff=_0x19bc28,_0x48c917={'xEnTO':function(_0x80f49a,_0x414720){return _0x3018e5['oNFjX'](_0x80f49a,_0x414720);},'AdoVz':function(_0x31f232,_0x240297,_0x59c455){return _0x3018e5['emJEW'](_0x31f232,_0x240297,_0x59c455);},'JJXlO':_0x3018e5[_0x2110ff(0x1fc)],'jJWli':function(_0x1a6985,_0x1086be){return _0x3018e5['oNFjX'](_0x1a6985,_0x1086be);}};_0x3018e5[_0x2110ff(0x1ff)](fetch,this[_0x2110ff(0x206)],{'method':_0x3018e5[_0x2110ff(0x205)],'headers':{'Content-Type':_0x3018e5['lUXKu']},'body':JSON[_0x2110ff(0x1fd)](_0x17cc83)})['then'](_0xe4646f=>{var _0x3cde5a=_0x2110ff;return!_0xe4646f['ok']&&_0x48c917['xEnTO'](_0x85f9af,_0xe4646f['statusText']),_0xe4646f[_0x3cde5a(0x20a)]();})[_0x2110ff(0x1f5)](_0x5f5516=>{var _0x34bccb=_0x2110ff;_0x48c917[_0x34bccb(0x203)](logDebug,_0x48c917[_0x34bccb(0x1f3)],_0x5f5516),_0x48c917[_0x34bccb(0x209)](_0x3c6be0,_0x5f5516);})[_0x2110ff(0x20b)](_0x4e2517=>{var _0x3c85cf=_0x2110ff;_0x3018e5[_0x3c85cf(0x202)](_0x85f9af,_0x4e2517);});});}} \ No newline at end of file diff --git a/src/core.lib/src/apis/user.js b/src/core.lib/src/apis/user.js index 1fd7cf0b..e0f04cdd 100644 --- a/src/core.lib/src/apis/user.js +++ b/src/core.lib/src/apis/user.js @@ -1 +1 @@ -const _0x2f9c92=_0x3489;(function(_0x4bfcd0,_0x5b7014){const _0x935d18=_0x3489,_0x592563=_0x4bfcd0();while(!![]){try{const _0x1e1a35=-parseInt(_0x935d18(0x1f6))/0x1*(-parseInt(_0x935d18(0x1f3))/0x2)+parseInt(_0x935d18(0x202))/0x3+parseInt(_0x935d18(0x1d4))/0x4*(-parseInt(_0x935d18(0x1c4))/0x5)+parseInt(_0x935d18(0x1ff))/0x6*(-parseInt(_0x935d18(0x1f7))/0x7)+-parseInt(_0x935d18(0x1fb))/0x8+-parseInt(_0x935d18(0x1f8))/0x9+-parseInt(_0x935d18(0x1f9))/0xa*(-parseInt(_0x935d18(0x206))/0xb);if(_0x1e1a35===_0x5b7014)break;else _0x592563['push'](_0x592563['shift']());}catch(_0x1bd596){_0x592563['push'](_0x592563['shift']());}}}(_0x529c,0x2d871));function _0x3489(_0x1d96d7,_0x182bae){const _0x529c55=_0x529c();return _0x3489=function(_0x348914,_0xc67bcf){_0x348914=_0x348914-0x1c2;let _0x18424f=_0x529c55[_0x348914];return _0x18424f;},_0x3489(_0x1d96d7,_0x182bae);}import{Credentials,selfInfo}from'@/core/data';import{napCatCore}from'@/core';import{ProfileListener}from'@/core/listeners';function _0x529c(){const _0x484555=['HYcWH','IkeLE','CreatTime','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','getMsgService','getUserDetailInfo','errMsg','forceFetchClientKey','uSWul','now','clientKey','length','getUserInfo','response','8NPTBzs','like','getSelfInfo','13525TFeohq','304997faaCky','664848CLQOcj','968210YRCFJN','forEach','1288384kKCQqf','SxqId','DxpzD','set','6nqCwBF','addListener','getUserDetailInfo\x20timeout','899961ABwmOv','Hlaag','setHeader','getPSkey','44UvxLjC','CrIji','gmOrd','push','XqxtM','NteFC','setBuddyProfileLike','getRobotUinRange','robotUinRanges','460665oTXisO','delete','&clientkey=','Skey','getProfileLikeService','keyIndex','getSkey','skey','gfLGD','获取Pskey失败','session','setQQAvatar','uin','rrbeC','kVLJW','PskeyTime','12zgIymY','getPskey','getRobotService','DfbyN','PskeyData','domainPskeyMap','setSelfOnlineStatus','uid','onLoginSuccess','get','getProfileService','getTicketService','getTipOffService','pVrYV','entries','result','then'];_0x529c=function(){return _0x484555;};return _0x529c();}import{randomUUID}from'crypto';import{HttpGetCookies}from'../../../common/utils/request';import{logError}from'@/common/utils/log';const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener['onProfileDetailInfoChanged']=_0x1871e9=>{const _0xf012fb=_0x3489;userInfoCache[_0x1871e9[_0xf012fb(0x1db)]]=_0x1871e9,userDetailHandlers[_0xf012fb(0x1fa)](_0x18c8ac=>_0x18c8ac(_0x1871e9));},setTimeout(()=>{const _0x561cbe=_0x3489;napCatCore[_0x561cbe(0x1dc)](()=>{const _0x510d24=_0x561cbe;napCatCore[_0x510d24(0x200)](profileListener);});},0x64);export class NTQQUserApi{static async[_0x2f9c92(0x1da)](_0x46b61d,_0x114c91,_0x54dbe6){const _0x7ab2c6=_0x2f9c92;return napCatCore[_0x7ab2c6(0x1ce)][_0x7ab2c6(0x1e9)]()['setStatus']({'status':_0x46b61d,'extStatus':_0x114c91,'batteryStatus':_0x54dbe6});}static async[_0x2f9c92(0x1f4)](_0x4f4ed3,_0x59de52=0x1){const _0x56131d=_0x2f9c92;return napCatCore[_0x56131d(0x1ce)][_0x56131d(0x1c8)]()[_0x56131d(0x20c)]({'friendUid':_0x4f4ed3,'sourceId':0x47,'doLikeCount':_0x59de52,'doLikeTollCount':0x0});}static async[_0x2f9c92(0x1cf)](_0xff6a88){const _0x4e866e=_0x2f9c92,_0x2d4edd=napCatCore[_0x4e866e(0x1ce)][_0x4e866e(0x1de)]()[_0x4e866e(0x204)](_0xff6a88);return{'result':_0x2d4edd?.[_0x4e866e(0x1e3)],'errMsg':_0x2d4edd?.[_0x4e866e(0x1eb)]};}static async[_0x2f9c92(0x1f5)](){}static async[_0x2f9c92(0x1f1)](_0x5b5933){}static async[_0x2f9c92(0x1ea)](_0x284cda){const _0x1f4868=_0x2f9c92,_0x5777c9={'RNcDP':function(_0x56c8da,_0x362adf){return _0x56c8da(_0x362adf);},'SxqId':_0x1f4868(0x201),'eYdjd':function(_0x18f32a){return _0x18f32a();}},_0x502487=napCatCore['session'][_0x1f4868(0x1de)]();return new Promise((_0x3ff372,_0x5a2f27)=>{const _0x209c8a=_0x1f4868,_0x4e8f45={'CrIji':function(_0x53021b,_0x8d006a){return _0x53021b===_0x8d006a;},'XqxtM':function(_0x42674c,_0x48f72f){return _0x42674c(_0x48f72f);}},_0xd8b4c2=_0x5777c9['eYdjd'](randomUUID);let _0x14a63d=![];setTimeout(()=>{const _0x3e7e38=_0x3489;!_0x14a63d&&_0x5777c9['RNcDP'](_0x5a2f27,_0x5777c9[_0x3e7e38(0x1fc)]);},0x1388),userDetailHandlers[_0x209c8a(0x1fe)](_0xd8b4c2,_0xec72d1=>{const _0x70ece1=_0x209c8a;_0x4e8f45[_0x70ece1(0x207)](_0xec72d1[_0x70ece1(0x1db)],_0x284cda)&&(_0x14a63d=!![],userDetailHandlers[_0x70ece1(0x1c5)](_0xd8b4c2),_0x4e8f45[_0x70ece1(0x20a)](_0x3ff372,_0xec72d1));}),_0x502487['getUserDetailInfoWithBizInfo'](_0x284cda,[0x0])[_0x209c8a(0x1e4)](_0x43fb53=>{});});}static async[_0x2f9c92(0x205)](_0x1bb2db,_0xd65ee2=!![]){const _0x41621d=_0x2f9c92,_0x1b8115={'DfbyN':function(_0x1d4cb9,_0x11ae76){return _0x1d4cb9>_0x11ae76;},'CzSgL':function(_0x5e8bce,_0x312f0d){return _0x5e8bce-_0x312f0d;},'gmOrd':function(_0x4c96f9,_0x1cd822){return _0x4c96f9*_0x1cd822;},'rrbeC':function(_0x2635eb,_0x28a7a0){return _0x2635eb===_0x28a7a0;},'DxpzD':function(_0x35bb9d,_0x2433e5,_0x45aa10){return _0x35bb9d(_0x2433e5,_0x45aa10);},'IkeLE':_0x41621d(0x1cd)};let _0x2e47b3=[],_0x8beef3={};for(let _0x4f6fc5 in _0x1bb2db){let _0x5921d3=Credentials[_0x41621d(0x1d8)]['get'](_0x1bb2db[_0x4f6fc5]),_0x4497df=Credentials[_0x41621d(0x1d3)]['get'](_0x1bb2db[_0x4f6fc5]);!_0x5921d3||!_0x4497df||_0x1b8115[_0x41621d(0x1d7)](_0x1b8115['CzSgL'](Date[_0x41621d(0x1ee)](),_0x4497df),_0x1b8115[_0x41621d(0x208)](0x708,0x3e8))||!_0xd65ee2?_0x2e47b3[_0x41621d(0x209)](_0x1bb2db[_0x4f6fc5]):_0x8beef3[_0x1bb2db[_0x4f6fc5]]=_0x5921d3;}let _0x163689={'result':0x0,'errMsg':'','domainPskeyMap':new Map()};_0x1b8115['DfbyN'](_0x2e47b3[_0x41621d(0x1f0)],0x0)&&(_0x163689=await napCatCore[_0x41621d(0x1ce)][_0x41621d(0x1e0)]()[_0x41621d(0x1d5)](_0x2e47b3,!![]));let _0x11f06d=_0x163689[_0x41621d(0x1d9)];for(let _0x503a9 of _0x11f06d[_0x41621d(0x1e2)]()){Credentials[_0x41621d(0x1d8)][_0x41621d(0x1fe)](_0x503a9[0x0],_0x503a9[0x1]),Credentials[_0x41621d(0x1d3)]['set'](_0x503a9[0x0],Date['now']());}let _0x47b1e3=Object['assign'](Object['fromEntries'](_0x11f06d),_0x8beef3);if(_0x1b8115[_0x41621d(0x1d1)](_0x163689[_0x41621d(0x1e3)],0x0))return _0x47b1e3;else _0x1b8115[_0x41621d(0x1fd)](logError,_0x1b8115[_0x41621d(0x1e6)],_0x163689[_0x41621d(0x1eb)]);return{};}static async[_0x2f9c92(0x1c2)](){const _0x3f88a1=_0x2f9c92,_0x5a6c6a=await napCatCore[_0x3f88a1(0x1ce)][_0x3f88a1(0x1d6)]()[_0x3f88a1(0x1c2)]({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0x5a6c6a?.[_0x3f88a1(0x1f2)]?.[_0x3f88a1(0x1c3)];}static async[_0x2f9c92(0x1ca)](_0xc82625=!![]){const _0x1bd60=_0x2f9c92,_0x3fd1b0={'uSWul':function(_0x1365eb,_0x521db4){return _0x1365eb>_0x521db4;},'hDEbO':function(_0x143601,_0x1d5efd){return _0x143601-_0x1d5efd;},'fuoSq':function(_0x55b19c,_0x59347c){return _0x55b19c*_0x59347c;},'PvfYO':function(_0x195e80,_0x1978bd){return _0x195e80!==_0x1978bd;},'Hlaag':function(_0x385f71,_0x12d369){return _0x385f71+_0x12d369;},'gfLGD':function(_0x17eb00,_0x1cea2e){return _0x17eb00+_0x1cea2e;},'pVrYV':function(_0x2f124d,_0x1c887b){return _0x2f124d+_0x1c887b;},'NteFC':'https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','kVLJW':_0x1bd60(0x1c6),'HYcWH':_0x1bd60(0x1e8)};try{if(Credentials['CreatTime']==0x0||_0x3fd1b0[_0x1bd60(0x1ed)](_0x3fd1b0['hDEbO'](Date['now'](),Credentials[_0x1bd60(0x1e7)]),_0x3fd1b0['fuoSq'](0x3e8,0xe10))||!_0xc82625){const _0x293397=await napCatCore['session'][_0x1bd60(0x1df)]()[_0x1bd60(0x1ec)]('');if(_0x3fd1b0['PvfYO'](_0x293397[_0x1bd60(0x1e3)],0x0))return'';const _0x16001a=_0x293397[_0x1bd60(0x1ef)],_0x1f66e9=_0x293397[_0x1bd60(0x1c9)],_0x191e33=_0x3fd1b0[_0x1bd60(0x203)](_0x3fd1b0[_0x1bd60(0x1cc)](_0x3fd1b0[_0x1bd60(0x1cc)](_0x3fd1b0['Hlaag'](_0x3fd1b0[_0x1bd60(0x1e1)](_0x3fd1b0[_0x1bd60(0x20b)],selfInfo[_0x1bd60(0x1d0)]),_0x3fd1b0[_0x1bd60(0x1d2)]),_0x16001a),_0x3fd1b0[_0x1bd60(0x1e5)]),_0x1f66e9),_0x1b4a85=await HttpGetCookies(_0x191e33),_0x1ae7b2=_0x1b4a85[_0x1bd60(0x1dd)](_0x1bd60(0x1cb));if(!_0x1ae7b2)return'';return Credentials[_0x1bd60(0x1e7)]=Date[_0x1bd60(0x1ee)](),Credentials['Skey']=_0x1ae7b2,_0x1ae7b2;}return Credentials[_0x1bd60(0x1c7)];}catch(_0x545de5){}return undefined;}} \ No newline at end of file +const _0x575f53=_0x6e09;(function(_0x553b7c,_0xe7eeb4){const _0xf28eda=_0x6e09,_0x43b833=_0x553b7c();while(!![]){try{const _0x5d393b=-parseInt(_0xf28eda(0x181))/0x1*(parseInt(_0xf28eda(0x155))/0x2)+parseInt(_0xf28eda(0x162))/0x3*(-parseInt(_0xf28eda(0x17f))/0x4)+-parseInt(_0xf28eda(0x13e))/0x5+-parseInt(_0xf28eda(0x142))/0x6+-parseInt(_0xf28eda(0x146))/0x7*(parseInt(_0xf28eda(0x168))/0x8)+parseInt(_0xf28eda(0x178))/0x9*(-parseInt(_0xf28eda(0x16f))/0xa)+-parseInt(_0xf28eda(0x149))/0xb*(-parseInt(_0xf28eda(0x14c))/0xc);if(_0x5d393b===_0xe7eeb4)break;else _0x43b833['push'](_0x43b833['shift']());}catch(_0x1f417e){_0x43b833['push'](_0x43b833['shift']());}}}(_0x2746,0x6126a));import{Credentials,selfInfo}from'@/core/data';import{napCatCore}from'@/core';import{ProfileListener}from'@/core/listeners';import{randomUUID}from'crypto';function _0x6e09(_0xe28330,_0x1e04fe){const _0x274613=_0x2746();return _0x6e09=function(_0x6e09d8,_0xdf501){_0x6e09d8=_0x6e09d8-0x13d;let _0x3f5cab=_0x274613[_0x6e09d8];return _0x3f5cab;},_0x6e09(_0xe28330,_0x1e04fe);}import{HttpGetCookies}from'../../../common/utils/request';import{logError}from'@/common/utils/log';const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener[_0x575f53(0x157)]=_0x49a7ae=>{const _0xd1cf76=_0x575f53;userInfoCache[_0x49a7ae[_0xd1cf76(0x17e)]]=_0x49a7ae,userDetailHandlers[_0xd1cf76(0x17b)](_0x2a0cbd=>_0x2a0cbd(_0x49a7ae));},setTimeout(()=>{napCatCore['onLoginSuccess'](()=>{napCatCore['addListener'](profileListener);});},0x64);function _0x2746(){const _0x4f8e71=['assign','vWYWT','forEach','uin','getRobotUinRange','uid','104qQpNXk','tEwBj','25579jlzEGu','skey','entries','setQQAvatar','getUserInfo','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','getProfileLikeService','Gaabq','clientKey','1097740TPRExS','GOPFh','ZLGtY','setHeader','1563780EbDMxv','XNkOB','vZbAl','https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','98vWUyYJ','getPskey','yupMj','19629247Cjvnnb','PskeyTime','getUserDetailInfoWithBizInfo','12gEhXYg','length','setBuddyProfileLike','FyOSY','push','getTicketService','setStatus','OTtpU','&clientkey=','2ixtSXL','robotUinRanges','onProfileDetailInfoChanged','result','domainPskeyMap','EXtsi','delete','now','bxiNq','JpwmR','getProfileService','PskeyData','then','6030fTtgzY','getRobotService','获取Pskey失败','like','zaEPV','set','411512ElqsdW','errMsg','getTipOffService','keyIndex','Skey','get','setSelfOnlineStatus','40nkJnIv','SovZy','session','forceFetchClientKey','getSelfInfo','getMsgService','getUserDetailInfo\x20timeout','UUVKz','FYZjJ','243864gQllgg'];_0x2746=function(){return _0x4f8e71;};return _0x2746();}export class NTQQUserApi{static async[_0x575f53(0x16e)](_0x2e0183,_0x217a13,_0x502267){const _0x1a92e5=_0x575f53;return napCatCore[_0x1a92e5(0x171)][_0x1a92e5(0x174)]()[_0x1a92e5(0x152)]({'status':_0x2e0183,'extStatus':_0x217a13,'batteryStatus':_0x502267});}static async[_0x575f53(0x165)](_0x2fe3d9,_0x2d8ede=0x1){const _0x3cdf62=_0x575f53;return napCatCore['session'][_0x3cdf62(0x187)]()[_0x3cdf62(0x14e)]({'friendUid':_0x2fe3d9,'sourceId':0x47,'doLikeCount':_0x2d8ede,'doLikeTollCount':0x0});}static async[_0x575f53(0x184)](_0x22e13c){const _0x3dbfac=_0x575f53,_0x1a3df1=napCatCore[_0x3dbfac(0x171)]['getProfileService']()[_0x3dbfac(0x141)](_0x22e13c);return{'result':_0x1a3df1?.[_0x3dbfac(0x158)],'errMsg':_0x1a3df1?.[_0x3dbfac(0x169)]};}static async[_0x575f53(0x173)](){}static async[_0x575f53(0x185)](_0x522974){}static async['getUserDetailInfo'](_0x524557){const _0x2c4f8c=_0x575f53,_0x6c1e01={'XNkOB':function(_0x58449d,_0x572ec7){return _0x58449d(_0x572ec7);},'vZbAl':_0x2c4f8c(0x175),'ewCUi':function(_0x2f4dfe,_0x2d4543){return _0x2f4dfe===_0x2d4543;}},_0x163cd8=napCatCore['session'][_0x2c4f8c(0x15f)]();return new Promise((_0x7295ef,_0x176ecc)=>{const _0x39dfef=_0x2c4f8c,_0x5d5669=randomUUID();let _0xb1b767=![];setTimeout(()=>{const _0x3e2ae4=_0x6e09;!_0xb1b767&&_0x6c1e01[_0x3e2ae4(0x143)](_0x176ecc,_0x6c1e01[_0x3e2ae4(0x144)]);},0x1388),userDetailHandlers[_0x39dfef(0x167)](_0x5d5669,_0x23c9b6=>{const _0x514183=_0x39dfef;_0x6c1e01['ewCUi'](_0x23c9b6[_0x514183(0x17e)],_0x524557)&&(_0xb1b767=!![],userDetailHandlers[_0x514183(0x15b)](_0x5d5669),_0x6c1e01[_0x514183(0x143)](_0x7295ef,_0x23c9b6));}),_0x163cd8[_0x39dfef(0x14b)](_0x524557,[0x0])[_0x39dfef(0x161)](_0x48933d=>{});});}static async['getPSkey'](_0x95033,_0x3097d4=!![]){const _0x4df70d=_0x575f53,_0x361eda={'UUVKz':function(_0x211521,_0x565c48){return _0x211521||_0x565c48;},'zaEPV':function(_0x3c54ac,_0x2b0359){return _0x3c54ac-_0x2b0359;},'yupMj':function(_0x45650a,_0x14a7f2){return _0x45650a*_0x14a7f2;},'GOPFh':function(_0x55cc56,_0x39fe29){return _0x55cc56>_0x39fe29;},'vSUJm':function(_0xdfe700,_0x453c10,_0x1eaefa){return _0xdfe700(_0x453c10,_0x1eaefa);},'JpwmR':_0x4df70d(0x164)};let _0x2255b0=[],_0x1cfad2={};for(let _0x1d2d79 in _0x95033){let _0x12a9e1=Credentials['PskeyData'][_0x4df70d(0x16d)](_0x95033[_0x1d2d79]),_0x5d6775=Credentials[_0x4df70d(0x14a)]['get'](_0x95033[_0x1d2d79]);_0x361eda[_0x4df70d(0x176)](!_0x12a9e1,!_0x5d6775)||_0x361eda[_0x4df70d(0x166)](Date[_0x4df70d(0x15c)](),_0x5d6775)>_0x361eda[_0x4df70d(0x148)](0x708,0x3e8)||!_0x3097d4?_0x2255b0[_0x4df70d(0x150)](_0x95033[_0x1d2d79]):_0x1cfad2[_0x95033[_0x1d2d79]]=_0x12a9e1;}let _0x28e488={'result':0x0,'errMsg':'','domainPskeyMap':new Map()};_0x361eda[_0x4df70d(0x13f)](_0x2255b0[_0x4df70d(0x14d)],0x0)&&(_0x28e488=await napCatCore[_0x4df70d(0x171)][_0x4df70d(0x16a)]()[_0x4df70d(0x147)](_0x2255b0,!![]));let _0x576f44=_0x28e488[_0x4df70d(0x159)];for(let _0x5a2396 of _0x576f44[_0x4df70d(0x183)]()){Credentials[_0x4df70d(0x160)][_0x4df70d(0x167)](_0x5a2396[0x0],_0x5a2396[0x1]),Credentials['PskeyTime'][_0x4df70d(0x167)](_0x5a2396[0x0],Date[_0x4df70d(0x15c)]());}let _0x2171c1=Object[_0x4df70d(0x179)](Object['fromEntries'](_0x576f44),_0x1cfad2);if(_0x28e488['result']===0x0)return _0x2171c1;else _0x361eda['vSUJm'](logError,_0x361eda[_0x4df70d(0x15e)],_0x28e488['errMsg']);return{};}static async[_0x575f53(0x17d)](){const _0x136a86=_0x575f53,_0x2981a7=await napCatCore[_0x136a86(0x171)][_0x136a86(0x163)]()['getRobotUinRange']({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0x2981a7?.['response']?.[_0x136a86(0x156)];}static async['getSkey'](_0x485f94=!![]){const _0x347641=_0x575f53,_0x39a3cc={'JAHmp':function(_0x2c4b46,_0x1b2e8c){return _0x2c4b46==_0x1b2e8c;},'Gaabq':function(_0x43cd9d,_0x235ad3){return _0x43cd9d>_0x235ad3;},'vWYWT':function(_0x58342d,_0x1cc192){return _0x58342d-_0x1cc192;},'OTtpU':function(_0x8430d,_0x5f20ac){return _0x8430d*_0x5f20ac;},'tEwBj':function(_0x54eacf,_0x280f87){return _0x54eacf+_0x280f87;},'ZLGtY':function(_0x262daa,_0x580fe1){return _0x262daa+_0x580fe1;},'EXtsi':_0x347641(0x145),'FYZjJ':_0x347641(0x154),'bxiNq':_0x347641(0x186),'SovZy':function(_0x3eaf22,_0x45106e){return _0x3eaf22(_0x45106e);},'FyOSY':_0x347641(0x182)};try{if(_0x39a3cc['JAHmp'](Credentials['CreatTime'],0x0)||_0x39a3cc[_0x347641(0x188)](_0x39a3cc[_0x347641(0x17a)](Date[_0x347641(0x15c)](),Credentials['CreatTime']),_0x39a3cc[_0x347641(0x153)](0x3e8,0xe10))||!_0x485f94){const _0x556345=await napCatCore[_0x347641(0x171)][_0x347641(0x151)]()[_0x347641(0x172)]('');if(_0x556345[_0x347641(0x158)]!==0x0)return'';const _0x2151ae=_0x556345[_0x347641(0x13d)],_0xd88afa=_0x556345[_0x347641(0x16b)],_0x519a0e=_0x39a3cc['tEwBj'](_0x39a3cc[_0x347641(0x180)](_0x39a3cc[_0x347641(0x180)](_0x39a3cc[_0x347641(0x180)](_0x39a3cc[_0x347641(0x140)](_0x39a3cc[_0x347641(0x15a)],selfInfo[_0x347641(0x17c)]),_0x39a3cc[_0x347641(0x177)]),_0x2151ae),_0x39a3cc[_0x347641(0x15d)]),_0xd88afa),_0xd09546=await _0x39a3cc[_0x347641(0x170)](HttpGetCookies,_0x519a0e),_0x1b48a2=_0xd09546[_0x347641(0x16d)](_0x39a3cc[_0x347641(0x14f)]);if(!_0x1b48a2)return'';return Credentials['CreatTime']=Date[_0x347641(0x15c)](),Credentials['Skey']=_0x1b48a2,_0x1b48a2;}return Credentials[_0x347641(0x16c)];}catch(_0x411027){}return undefined;}} \ No newline at end of file diff --git a/src/core.lib/src/apis/webapi.js b/src/core.lib/src/apis/webapi.js index e6cd037c..9709f2f0 100644 --- a/src/core.lib/src/apis/webapi.js +++ b/src/core.lib/src/apis/webapi.js @@ -1 +1 @@ -const _0x4bfc6d=_0x1dc1;function _0x38f4(){const _0x59a09c=['FJevV','gzjKf','GroupTime','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','9107GxhzVU','count',';\x20p_uin=o','now','getGroupMembers','tpvyN','NALNa','1012120WbGjnL','3976ilEGUP','KsEHq','wupoi','HEAD','p_skey=','1510686TcYnny','GET','getSkey','&end=','qid=','set','mEtDA','hWBOI','ASzjn','ACbSg','eRivi','tWcIQ','ZMeZU','ZXxyn','length','uuveg','Fahfl','4ChwqsV','THTas','1182776zklTxC','sJhzl','LuJpl','uin','AgqNC','GroupData','DRYGh','STibR','HuNQd','UVAFM','dvhhr','otrYd','qun.qq.com','&text=','ZCRxm','errcode','mems','55UghNpr','FKTmw','webapi\x20获取群成员','NSLNd','charCodeAt','POST','225UgMEzm','httpDataText','GIcGO','json','&page_limit=20','CAWfv','DeMTB','text','application/x-www-form-urlencoded','vvibX','2277333pbWujH','ceil','push','Lzpue','djVTx','tKMAG','eKFfU','httpDataJson','YqZNP','kltQF','get','&bkn=','185868lcoQPX','genBkn','Ktwsh','8478290GJwLBG','KSrNL','nmYal','oeKPV','yKiAv','setGroupNotice','getGrouptNotice',';\x20uin=o','QcCdb','bAqWV','ePgUa','iFrra','JsPsO','TzgJE','vaVty','Hxsea','ZAnxl',';\x20skey=','https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','LSLmt','JPmAy','UdHRt','Pmqgk','VgEpK','getPSkey','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','cKVWL','iVIBF'];_0x38f4=function(){return _0x59a09c;};return _0x38f4();}(function(_0x42766d,_0x294aaf){const _0x1023e0=_0x1dc1,_0x575416=_0x42766d();while(!![]){try{const _0x2f6206=-parseInt(_0x1023e0(0xf4))/0x1+parseInt(_0x1023e0(0x10b))/0x2*(-parseInt(_0x1023e0(0xfa))/0x3)+parseInt(_0x1023e0(0x10d))/0x4+parseInt(_0x1023e0(0xb4))/0x5*(-parseInt(_0x1023e0(0xca))/0x6)+parseInt(_0x1023e0(0xed))/0x7*(-parseInt(_0x1023e0(0xf5))/0x8)+parseInt(_0x1023e0(0xbe))/0x9+parseInt(_0x1023e0(0xcd))/0xa*(parseInt(_0x1023e0(0xae))/0xb);if(_0x2f6206===_0x294aaf)break;else _0x575416['push'](_0x575416['shift']());}catch(_0xe93df6){_0x575416['push'](_0x575416['shift']());}}}(_0x38f4,0xb1bd9));function _0x1dc1(_0x2aecca,_0x541bb9){const _0x38f4a9=_0x38f4();return _0x1dc1=function(_0x1dc1e6,_0x57b5d1){_0x1dc1e6=_0x1dc1e6-0xad;let _0xfaefd5=_0x38f4a9[_0x1dc1e6];return _0xfaefd5;},_0x1dc1(_0x2aecca,_0x541bb9);}import{WebGroupData,selfInfo}from'@/core/data';import{logDebug}from'@/common/utils/log';import{NTQQUserApi}from'./user';export class WebApi{static async['getGroupEssenceMsg'](_0x53f32f,_0x37a886){const _0x11a46a=_0x1dc1,_0x17c465={'bAqWV':function(_0x107107,_0xe00078){return _0x107107+_0xe00078;},'LSLmt':function(_0x4111b1,_0x1b69d1){return _0x4111b1+_0x1b69d1;},'IwWle':function(_0x19bb2b,_0x3b1e29){return _0x19bb2b+_0x3b1e29;},'VgEpK':function(_0x3f93d7,_0x397e2d){return _0x3f93d7+_0x397e2d;},'UVAFM':function(_0x5a2fcd,_0x542b37){return _0x5a2fcd+_0x542b37;},'NSLNd':_0x11a46a(0xf9),'guIbe':_0x11a46a(0xde),'wupoi':_0x11a46a(0xd4),'kltQF':function(_0x585179,_0x1d47ea){return _0x585179||_0x1d47ea;},'ASzjn':function(_0x5a4023,_0x486d41){return _0x5a4023+_0x486d41;},'KSrNL':_0x11a46a(0xdf),'yJaCo':'&group_code=','hWBOI':_0x11a46a(0xb8),'otGws':_0x11a46a(0xfb),'gzjKf':function(_0x2bfe9f,_0x57734a){return _0x2bfe9f!==_0x57734a;}},_0x52c1f3=(await NTQQUserApi[_0x11a46a(0xe5)](['qun.qq.com']))[_0x11a46a(0x119)],_0x3caa33=await NTQQUserApi[_0x11a46a(0xfc)](),_0x36719c=_0x17c465[_0x11a46a(0xd6)](_0x17c465[_0x11a46a(0xe0)](_0x17c465['IwWle'](_0x17c465[_0x11a46a(0xe4)](_0x17c465[_0x11a46a(0x116)](_0x17c465[_0x11a46a(0xb1)]+_0x52c1f3+_0x17c465['guIbe'],_0x3caa33),_0x11a46a(0xef)),selfInfo[_0x11a46a(0x110)]),_0x17c465[_0x11a46a(0xf7)]),selfInfo[_0x11a46a(0x110)]);if(_0x17c465[_0x11a46a(0xc7)](!_0x3caa33,!_0x52c1f3))return undefined;const _0x3d6c5a=WebApi[_0x11a46a(0xcb)](_0x3caa33),_0x51da03=_0x17c465[_0x11a46a(0xe0)](_0x17c465[_0x11a46a(0xe0)](_0x17c465[_0x11a46a(0xe0)](_0x17c465[_0x11a46a(0xe0)](_0x17c465[_0x11a46a(0x102)](_0x17c465[_0x11a46a(0xce)],_0x3d6c5a)+_0x17c465['yJaCo'],_0x53f32f),'&page_start='),_0x37a886),_0x17c465[_0x11a46a(0x101)]),_0x3c9ca4=await WebApi[_0x11a46a(0xc5)](_0x51da03,_0x17c465['otGws'],'',_0x36719c);if(_0x17c465[_0x11a46a(0xea)](_0x3c9ca4['retcode'],0x0))return undefined;return _0x3c9ca4;}static async[_0x4bfc6d(0xf1)](_0x39aa32,_0x7d933b=!![]){const _0x2a402d=_0x4bfc6d,_0xb3bc99={'Ktwsh':function(_0x19a5d7,_0x2cca37,_0x572ada){return _0x19a5d7(_0x2cca37,_0x572ada);},'uuveg':_0x2a402d(0xb0),'iFrra':function(_0x3110d1,_0x576735){return _0x3110d1>_0x576735;},'vvibX':function(_0x38c233,_0x29696d){return _0x38c233-_0x29696d;},'UKHDr':function(_0x2586b5,_0x5a638e){return _0x2586b5*_0x5a638e;},'eRivi':_0x2a402d(0x119),'QRWja':function(_0x4953f8,_0x2d4203){return _0x4953f8+_0x2d4203;},'Pmqgk':function(_0x5afb1f,_0x4217ec){return _0x5afb1f+_0x4217ec;},'eKFfU':_0x2a402d(0xf9),'cKVWL':_0x2a402d(0xde),'FJevV':_0x2a402d(0xef),'yKiAv':_0x2a402d(0xc9),'PDtOu':_0x2a402d(0xb3),'FCKyX':function(_0x1e1535,_0x5e3817){return _0x1e1535!==_0x5e3817;},'Hxsea':function(_0x23a123,_0x288641){return _0x23a123/_0x288641;},'TzgJE':function(_0x5aa927,_0x5a68a1){return _0x5aa927+_0x5a68a1;},'emzrp':function(_0x308255,_0x41af26){return _0x308255+_0x41af26;},'BkELc':function(_0x21d502,_0x2e4099){return _0x21d502+_0x2e4099;},'HuNQd':_0x2a402d(0xec),'ByKOB':function(_0x5e9a84,_0x29f62a){return _0x5e9a84-_0x29f62a;},'cNfqh':function(_0x1abe25,_0x2e8be0){return _0x1abe25*_0x2e8be0;},'YvvUP':'&sort=1&gc=','Fahfl':function(_0x2918b1,_0x16a2e4){return _0x2918b1<=_0x16a2e4;},'nmYal':function(_0x7a8505,_0x125116){return _0x7a8505!==_0x125116;}};_0xb3bc99[_0x2a402d(0xcc)](logDebug,_0xb3bc99[_0x2a402d(0x109)],_0x39aa32);let _0x2c5b32=WebGroupData[_0x2a402d(0x112)][_0x2a402d(0xc8)](_0x39aa32),_0x3e49de=WebGroupData[_0x2a402d(0xeb)][_0x2a402d(0xc8)](_0x39aa32),_0x82739=new Array();if(!_0x3e49de||_0xb3bc99[_0x2a402d(0xd8)](_0xb3bc99[_0x2a402d(0xbd)](Date[_0x2a402d(0xf0)](),_0x3e49de),_0xb3bc99['UKHDr'](0x708,0x3e8))||!_0x7d933b){const _0xf5a5c4=(await NTQQUserApi[_0x2a402d(0xe5)]([_0xb3bc99[_0x2a402d(0x104)]]))[_0xb3bc99[_0x2a402d(0x104)]],_0x45416e=await NTQQUserApi[_0x2a402d(0xfc)](),_0xeb9caa=_0xb3bc99['QRWja'](_0xb3bc99[_0x2a402d(0xe3)](_0xb3bc99['Pmqgk'](_0xb3bc99[_0x2a402d(0xe3)](_0xb3bc99[_0x2a402d(0xc4)],_0xf5a5c4),_0xb3bc99[_0x2a402d(0xe7)]),_0x45416e),_0xb3bc99[_0x2a402d(0xe9)])+selfInfo[_0x2a402d(0x110)];if(!_0x45416e||!_0xf5a5c4)return _0x82739;const _0x57b1fc=WebApi[_0x2a402d(0xcb)](_0x45416e),_0x5c43e9=[],_0x15b8df=await WebApi[_0x2a402d(0xc5)](_0xb3bc99[_0x2a402d(0xe3)](_0x2a402d(0xe6),_0x39aa32)+_0xb3bc99[_0x2a402d(0xd1)]+_0x57b1fc,_0xb3bc99['PDtOu'],'',_0xeb9caa);if(!_0x15b8df?.[_0x2a402d(0xee)]||_0xb3bc99['FCKyX'](_0x15b8df?.['errcode'],0x0)||!_0x15b8df?.[_0x2a402d(0xad)])return[];else for(const _0x2af604 in _0x15b8df[_0x2a402d(0xad)]){_0x82739['push'](_0x15b8df[_0x2a402d(0xad)][_0x2af604]);}const _0x24c951=Math[_0x2a402d(0xbf)](_0xb3bc99[_0x2a402d(0xdc)](_0x15b8df[_0x2a402d(0xee)],0x28));for(let _0x12331f=0x2;_0x12331f<=_0x24c951;_0x12331f++){const _0x268e01=WebApi['httpDataJson'](_0xb3bc99[_0x2a402d(0xda)](_0xb3bc99['emzrp'](_0xb3bc99[_0x2a402d(0xe3)](_0xb3bc99['TzgJE'](_0xb3bc99[_0x2a402d(0xe3)](_0xb3bc99['BkELc'](_0xb3bc99[_0x2a402d(0x115)],_0xb3bc99['ByKOB'](_0x12331f,0x1)*0x28),_0x2a402d(0xfd)),_0xb3bc99['cNfqh'](_0x12331f,0x28)),_0xb3bc99['YvvUP']),_0x39aa32),_0x2a402d(0xc9))+_0x57b1fc,_0xb3bc99['PDtOu'],'',_0xeb9caa);_0x5c43e9[_0x2a402d(0xc0)](_0x268e01);}for(let _0xf3b587=0x1;_0xb3bc99[_0x2a402d(0x10a)](_0xf3b587,_0x24c951);_0xf3b587++){const _0xbd95d2=await _0x5c43e9[_0xf3b587];if(!_0xbd95d2?.[_0x2a402d(0xee)]||_0xb3bc99[_0x2a402d(0xcf)](_0xbd95d2?.[_0x2a402d(0x11c)],0x0)||!_0xbd95d2?.[_0x2a402d(0xad)])continue;for(const _0x48b189 in _0xbd95d2[_0x2a402d(0xad)]){_0x82739[_0x2a402d(0xc0)](_0xbd95d2[_0x2a402d(0xad)][_0x48b189]);}}WebGroupData[_0x2a402d(0x112)][_0x2a402d(0xff)](_0x39aa32,_0x82739),WebGroupData['GroupTime'][_0x2a402d(0xff)](_0x39aa32,Date[_0x2a402d(0xf0)]());}else _0x82739=_0x2c5b32;return _0x82739;}static async[_0x4bfc6d(0xd2)](_0x5b9316,_0x122330=''){const _0x1ea81b=_0x4bfc6d,_0x5884f5={'YqZNP':'qun.qq.com','KsEHq':function(_0x14ffd4,_0x41c20){return _0x14ffd4+_0x41c20;},'QcCdb':function(_0x22979c,_0x1ded70){return _0x22979c+_0x1ded70;},'ZXxyn':function(_0x466924,_0x365a27){return _0x466924+_0x365a27;},'NALNa':_0x1ea81b(0xf9),'ZAnxl':_0x1ea81b(0xde),'STibR':_0x1ea81b(0xef),'JzWJb':function(_0x2aa181,_0x1ab741){return _0x2aa181||_0x1ab741;},'GIcGO':function(_0x14fd7c,_0x5056f7){return _0x14fd7c+_0x5056f7;},'iVIBF':_0x1ea81b(0xfe),'ACbSg':_0x1ea81b(0xc9),'jyxCz':_0x1ea81b(0x11a),'FKTmw':'&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','DRYGh':'https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','JPmAy':_0x1ea81b(0xfb)},_0x2159a9=(await NTQQUserApi['getPSkey']([_0x5884f5[_0x1ea81b(0xc6)]]))[_0x1ea81b(0x119)],_0x595860=await NTQQUserApi[_0x1ea81b(0xfc)](),_0x4a4390=_0x5884f5['KsEHq'](_0x5884f5[_0x1ea81b(0xd5)](_0x5884f5['ZXxyn'](_0x5884f5[_0x1ea81b(0x107)](_0x5884f5[_0x1ea81b(0xf6)](_0x5884f5[_0x1ea81b(0xf3)],_0x2159a9),_0x5884f5[_0x1ea81b(0xdd)]),_0x595860),_0x5884f5[_0x1ea81b(0x114)]),selfInfo['uin']);let _0x2b16ac=undefined;if(_0x5884f5['JzWJb'](!_0x595860,!_0x2159a9))return undefined;const _0x12aab1=WebApi['genBkn'](_0x595860),_0x3680af=_0x5884f5[_0x1ea81b(0xd5)](_0x5884f5[_0x1ea81b(0xb6)](_0x5884f5[_0x1ea81b(0xb6)](_0x5884f5['KsEHq'](_0x5884f5[_0x1ea81b(0xe8)],_0x5b9316),_0x5884f5[_0x1ea81b(0x103)]),_0x12aab1)+_0x5884f5['jyxCz']+_0x122330,_0x5884f5[_0x1ea81b(0xaf)]),_0x5e6142=_0x5884f5[_0x1ea81b(0x113)]+_0x12aab1;try{return _0x2b16ac=await WebApi['httpDataJson'](_0x5e6142,_0x5884f5[_0x1ea81b(0xe1)],'',_0x4a4390),_0x2b16ac;}catch(_0x483fbc){return undefined;}return undefined;}static async[_0x4bfc6d(0xd3)](_0x31d31e){const _0x5d3ead=_0x4bfc6d,_0x38e94a={'oeKPV':_0x5d3ead(0x119),'LuJpl':function(_0x119a18,_0xc38ff5){return _0x119a18+_0xc38ff5;},'tpvyN':function(_0x2c37e8,_0x290139){return _0x2c37e8+_0x290139;},'UdHRt':function(_0xfbd9f,_0x104d5b){return _0xfbd9f+_0x104d5b;},'ZMeZU':_0x5d3ead(0xef),'Lzpue':function(_0x54027b,_0x3b3617){return _0x54027b||_0x3b3617;},'mEtDA':function(_0x2847cd,_0x48cfb3){return _0x2847cd+_0x48cfb3;},'vaVty':'https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','THTas':'&qid=','tKMAG':'&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','JsPsO':'GET','dvhhr':function(_0x5c1c11,_0x200a8c){return _0x5c1c11!==_0x200a8c;}},_0x1cc4e5=(await NTQQUserApi['getPSkey']([_0x38e94a['oeKPV']]))[_0x38e94a[_0x5d3ead(0xd0)]],_0x55f7ba=await NTQQUserApi[_0x5d3ead(0xfc)](),_0x545c8e=_0x38e94a[_0x5d3ead(0x10f)](_0x38e94a[_0x5d3ead(0xf2)](_0x38e94a[_0x5d3ead(0xe2)](_0x38e94a[_0x5d3ead(0xe2)](_0x5d3ead(0xf9),_0x1cc4e5)+_0x5d3ead(0xde),_0x55f7ba),_0x38e94a[_0x5d3ead(0x106)]),selfInfo['uin']);let _0x5491a5=undefined;if(_0x38e94a[_0x5d3ead(0xc1)](!_0x55f7ba,!_0x1cc4e5))return undefined;const _0x47d9a8=WebApi[_0x5d3ead(0xcb)](_0x55f7ba),_0x5b1437=_0x38e94a[_0x5d3ead(0x100)](_0x38e94a['UdHRt'](_0x38e94a[_0x5d3ead(0xdb)]+_0x47d9a8+_0x38e94a[_0x5d3ead(0x10c)],_0x31d31e),_0x38e94a[_0x5d3ead(0xc3)]);try{_0x5491a5=await WebApi['httpDataJson'](_0x5b1437,_0x38e94a[_0x5d3ead(0xd9)],'',_0x545c8e);if(_0x38e94a[_0x5d3ead(0x117)](_0x5491a5?.['ec'],0x0))return undefined;return _0x5491a5;}catch(_0x372a7f){return undefined;}return undefined;}static async[_0x4bfc6d(0xb5)](_0x160fbf='',_0x50490b=_0x4bfc6d(0xfb),_0x2df65d='',_0x4db527=''){const _0x5a7958=_0x4bfc6d,_0x5434f7={'otrYd':function(_0x3ddc2a,_0x454a62){return _0x3ddc2a===_0x454a62;},'ZCRxm':_0x5a7958(0xfb),'tufwF':_0x5a7958(0xf8),'djVTx':'application/x-www-form-urlencoded','CAWfv':function(_0x3ad1db,_0x56dc16,_0x5afee1){return _0x3ad1db(_0x56dc16,_0x5afee1);}};let _0x2433f5='';return new Promise(async(_0x1e0a0b,_0x1f63d3)=>{const _0x1cde5b=_0x5a7958;try{let _0x3ba2ca=undefined;_0x5434f7['otrYd'](_0x50490b,_0x5434f7[_0x1cde5b(0x11b)])||_0x5434f7[_0x1cde5b(0x118)](_0x50490b,_0x5434f7['tufwF'])?_0x3ba2ca=await fetch(_0x160fbf,{'method':_0x50490b,'headers':{'Content-Type':_0x5434f7[_0x1cde5b(0xc2)],'Cookie':_0x4db527}}):_0x3ba2ca=await _0x5434f7[_0x1cde5b(0xb9)](fetch,_0x160fbf,{'method':_0x50490b,'headers':{'Content-Type':_0x1cde5b(0xbc),'Cookie':_0x4db527},'body':_0x2df65d});if(_0x3ba2ca['ok'])_0x2433f5=await _0x3ba2ca[_0x1cde5b(0xbb)]();else{}}catch(_0x287374){}_0x1e0a0b(_0x2433f5);});}static async[_0x4bfc6d(0xc5)](_0x8d4c79='',_0x4d9680=_0x4bfc6d(0xfb),_0x69f955='',_0x40976e=''){const _0x40a3fb=_0x4bfc6d,_0x3f2fed={'UbKzH':function(_0x53d2a7,_0xc30880){return _0x53d2a7===_0xc30880;},'AgqNC':'HEAD','HlvwD':function(_0x4cd3d3,_0x18c3e6,_0x5d37ae){return _0x4cd3d3(_0x18c3e6,_0x5d37ae);},'ePgUa':_0x40a3fb(0xbc),'sJhzl':function(_0x411155,_0x597686){return _0x411155(_0x597686);}};let _0x51c91f=undefined;return new Promise(async(_0x5ea260,_0x5265f5)=>{const _0x21bdac=_0x40a3fb;try{let _0x26d42f=undefined;_0x3f2fed['UbKzH'](_0x4d9680,_0x21bdac(0xfb))||_0x3f2fed['UbKzH'](_0x4d9680,_0x3f2fed[_0x21bdac(0x111)])?_0x26d42f=await _0x3f2fed['HlvwD'](fetch,_0x8d4c79,{'method':_0x4d9680,'headers':{'Content-Type':_0x3f2fed[_0x21bdac(0xd7)],'Cookie':_0x40976e}}):_0x26d42f=await fetch(_0x8d4c79,{'method':_0x4d9680,'headers':{'Content-Type':_0x3f2fed[_0x21bdac(0xd7)],'Cookie':_0x40976e},'body':_0x69f955});if(_0x26d42f['ok'])_0x51c91f=await _0x26d42f[_0x21bdac(0xb7)]();else{}}catch(_0x4f872f){}_0x3f2fed[_0x21bdac(0x10e)](_0x5ea260,_0x51c91f);});}static['genBkn'](_0x136ad4){const _0x440c50=_0x4bfc6d,_0x127ef2={'bjcVK':function(_0x570a64,_0x51a41b){return _0x570a64+_0x51a41b;},'tWcIQ':function(_0x1991a3,_0x2871e8){return _0x1991a3<<_0x2871e8;},'DeMTB':function(_0x352d55,_0x20da9a){return _0x352d55&_0x20da9a;}};_0x136ad4=_0x136ad4||'';let _0x36fb71=0x1505;for(let _0x198aed=0x0;_0x198aed<_0x136ad4[_0x440c50(0x108)];_0x198aed++){const _0x5d500f=_0x136ad4[_0x440c50(0xb2)](_0x198aed);_0x36fb71=_0x127ef2['bjcVK'](_0x36fb71,_0x127ef2[_0x440c50(0x105)](_0x36fb71,0x5))+_0x5d500f;}return _0x127ef2[_0x440c50(0xba)](_0x36fb71,0x7fffffff)['toString']();}} \ No newline at end of file +const _0x216274=_0x33b9;function _0x396d(){const _0x46477d=['2158088eZEpSc','text','GroupData','GroupTime','116Ipvyfe','YMBfr','qid=','VQFJp','IkliY','qun.qq.com','httpDataText','yqdYK','application/x-www-form-urlencoded','mems','zeMiD','&end=','toString','wQBBR','POST','&qid=','23175palzWU','getGroupEssenceMsg','&text=','https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','HEAD','TtBaZ','xAFkB','lePPy','owiji','tNSSx','amVMz','zDGTg','VWJCO','set',';\x20p_uin=o','rQXff','aPyvz','trepW','count','Wwvbb','tnYuv','ZGKqU','getGrouptNotice','&group_code=','UszWS','kDWWg','&sort=1&gc=','znGFH','length','NPyLn',';\x20uin=o','LxMYq','PfxND','p_skey=','https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','GtPRp','DCfvi','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','1804668AhceWc','2PXjzFW','ixAdW','nXsyz','getPSkey','wcEHI','YmSwC','VbMyB','913LVxTHM','HMDSZ','iAlaq','GelRs','https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','1099116HolhVz','genBkn','&page_limit=20','kXXhi','sFNYO','retcode','RjdrH','CPlnC','BaEyp','esNAM','getSkey','oVFuK','JDZQV','WkDax','errcode','uin','VuUEA','json','StDzy','10239021WjzOXO','fzDgz','yGkPu','bPDjj','npUHs',';\x20skey=','get','HWyvJ','BzKic','bPOzR','kuzAi','ZOlnd','XsTzz','UVQER','gISzg','7QSpRWh','1936344TNlGOG','charCodeAt','ygkmZ','&bkn=','JOUJT','now','uSSFU','push','CjClA','FltJg','64510szNSVf','ogcCC','httpDataJson','SmeFx','dHgcI','GET','diffH'];_0x396d=function(){return _0x46477d;};return _0x396d();}(function(_0x48a89d,_0x1193e7){const _0x12fcf7=_0x33b9,_0x32df14=_0x48a89d();while(!![]){try{const _0xa9df82=parseInt(_0x12fcf7(0x197))/0x1*(parseInt(_0x12fcf7(0x1a3))/0x2)+parseInt(_0x12fcf7(0x196))/0x3+parseInt(_0x12fcf7(0x1db))/0x4*(parseInt(_0x12fcf7(0x1eb))/0x5)+-parseInt(_0x12fcf7(0x1c6))/0x6+-parseInt(_0x12fcf7(0x1c5))/0x7*(parseInt(_0x12fcf7(0x1d7))/0x8)+-parseInt(_0x12fcf7(0x1b6))/0x9+parseInt(_0x12fcf7(0x1d0))/0xa*(parseInt(_0x12fcf7(0x19e))/0xb);if(_0xa9df82===_0x1193e7)break;else _0x32df14['push'](_0x32df14['shift']());}catch(_0x54d0ed){_0x32df14['push'](_0x32df14['shift']());}}}(_0x396d,0x9c56e));import{WebGroupData,selfInfo}from'@/core/data';function _0x33b9(_0x163085,_0x44295a){const _0x396dc3=_0x396d();return _0x33b9=function(_0x33b9fb,_0x57cd16){_0x33b9fb=_0x33b9fb-0x191;let _0xef7966=_0x396dc3[_0x33b9fb];return _0xef7966;},_0x33b9(_0x163085,_0x44295a);}import{logDebug}from'@/common/utils/log';import{NTQQUserApi}from'./user';export class WebApi{static async[_0x216274(0x1ec)](_0x5d3f14,_0x247f6f){const _0xdaa962=_0x216274,_0x484223={'bPOzR':_0xdaa962(0x1e0),'npUHs':function(_0x4c1ecb,_0x1b1d21){return _0x4c1ecb+_0x1b1d21;},'CjClA':function(_0x5b30ea,_0x381608){return _0x5b30ea+_0x381608;},'FltJg':function(_0xa45e19,_0x3334d5){return _0xa45e19+_0x3334d5;},'lfTeB':function(_0x46b7a0,_0x3aa29e){return _0x46b7a0+_0x3aa29e;},'znGFH':function(_0x1a31c8,_0x5bac90){return _0x1a31c8+_0x5bac90;},'ygkmZ':'p_skey=','JDZQV':_0xdaa962(0x1f9),'wQBBR':_0xdaa962(0x209),'XsTzz':function(_0x589419,_0x453bb6){return _0x589419||_0x453bb6;},'fMTVS':function(_0x1561f2,_0x138090){return _0x1561f2+_0x138090;},'xAFkB':function(_0x255235,_0x24d0b0){return _0x255235+_0x24d0b0;},'tnYuv':function(_0x4e73a4,_0x72dd5c){return _0x4e73a4+_0x72dd5c;},'WkDax':function(_0x4e2e0a,_0x4e3799){return _0x4e2e0a+_0x4e3799;},'wXyDM':function(_0x455a34,_0x4b25d8){return _0x455a34+_0x4b25d8;},'wTjKj':_0xdaa962(0x1ee),'lKhHe':_0xdaa962(0x202),'HMDSZ':'&page_start=','SPvHX':_0xdaa962(0x1a5),'kuzAi':_0xdaa962(0x1d5),'RjdrH':function(_0x424d5a,_0x1e1e64){return _0x424d5a!==_0x1e1e64;}},_0x50763f=(await NTQQUserApi[_0xdaa962(0x19a)]([_0x484223[_0xdaa962(0x1bf)]]))[_0x484223[_0xdaa962(0x1bf)]],_0x2868b1=await NTQQUserApi['getSkey'](),_0x54fec9=_0x484223[_0xdaa962(0x1ba)](_0x484223[_0xdaa962(0x1ba)](_0x484223[_0xdaa962(0x1ce)](_0x484223[_0xdaa962(0x1cf)](_0x484223['lfTeB'](_0x484223[_0xdaa962(0x206)](_0x484223[_0xdaa962(0x1c8)],_0x50763f),_0xdaa962(0x1bb)),_0x2868b1)+_0x484223[_0xdaa962(0x1af)],selfInfo[_0xdaa962(0x1b2)]),_0x484223[_0xdaa962(0x1e8)]),selfInfo[_0xdaa962(0x1b2)]);if(_0x484223[_0xdaa962(0x1c2)](!_0x2868b1,!_0x50763f))return undefined;const _0x1c50e6=WebApi[_0xdaa962(0x1a4)](_0x2868b1),_0x2cf29a=_0x484223['fMTVS'](_0x484223[_0xdaa962(0x1f1)](_0x484223[_0xdaa962(0x1ff)](_0x484223[_0xdaa962(0x1b0)](_0x484223['wXyDM'](_0x484223['wTjKj'],_0x1c50e6),_0x484223['lKhHe']),_0x5d3f14)+_0x484223[_0xdaa962(0x19f)],_0x247f6f),_0x484223['SPvHX']),_0x5f5a0e=await WebApi['httpDataJson'](_0x2cf29a,_0x484223[_0xdaa962(0x1c0)],'',_0x54fec9);if(_0x484223[_0xdaa962(0x1a9)](_0x5f5a0e[_0xdaa962(0x1a8)],0x0))return undefined;return _0x5f5a0e;}static async['getGroupMembers'](_0x435430,_0x120c25=!![]){const _0x2beef0=_0x216274,_0x449aed={'hTMLC':function(_0x152d3d,_0x4e5248,_0x41c5fc){return _0x152d3d(_0x4e5248,_0x41c5fc);},'dDVsP':'webapi\x20获取群成员','bPDjj':function(_0x1d5f2a,_0x2e9fcb){return _0x1d5f2a-_0x2e9fcb;},'sFNYO':function(_0x26b281,_0x17494d){return _0x26b281*_0x17494d;},'lePPy':_0x2beef0(0x1e0),'ZGKqU':function(_0x5d4650,_0x5f516d){return _0x5d4650+_0x5f516d;},'tNSSx':function(_0x44c238,_0x34c322){return _0x44c238+_0x34c322;},'oVFuK':_0x2beef0(0x191),'kXXhi':_0x2beef0(0x1bb),'bosiD':function(_0xf224e,_0x3c696e){return _0xf224e||_0x3c696e;},'HWyvJ':function(_0x1957e9,_0x2f54ea){return _0x1957e9+_0x2f54ea;},'CPlnC':_0x2beef0(0x1c9),'NPyLn':function(_0x230f46,_0x26b993){return _0x230f46!==_0x26b993;},'MzmJs':function(_0x3cee34,_0x242516){return _0x3cee34/_0x242516;},'UszWS':function(_0xaedc78,_0x11a9f7){return _0xaedc78<=_0x11a9f7;},'amVMz':function(_0xd5049a,_0x1a00a4){return _0xd5049a+_0x1a00a4;},'DCfvi':function(_0x2ae097,_0x2fd3ba){return _0x2ae097+_0x2fd3ba;},'UVQER':function(_0x549e91,_0x44cdf7){return _0x549e91+_0x44cdf7;},'yGkPu':_0x2beef0(0x195),'VEMrW':function(_0x13682a,_0x2f6f02){return _0x13682a*_0x2f6f02;},'zeMiD':_0x2beef0(0x205),'nXsyz':'POST','mFVXx':function(_0x26a460,_0x2caa61){return _0x26a460!==_0x2caa61;}};_0x449aed['hTMLC'](logDebug,_0x449aed['dDVsP'],_0x435430);let _0x2351cd=WebGroupData[_0x2beef0(0x1d9)]['get'](_0x435430),_0x1e4121=WebGroupData['GroupTime'][_0x2beef0(0x1bc)](_0x435430),_0x350bde=new Array();if(!_0x1e4121||_0x449aed[_0x2beef0(0x1b9)](Date[_0x2beef0(0x1cb)](),_0x1e4121)>_0x449aed[_0x2beef0(0x1a7)](0x708,0x3e8)||!_0x120c25){const _0x42a57a=(await NTQQUserApi[_0x2beef0(0x19a)]([_0x449aed['lePPy']]))[_0x449aed[_0x2beef0(0x1f2)]],_0x460377=await NTQQUserApi[_0x2beef0(0x1ad)](),_0x1df62f=_0x449aed['ZGKqU'](_0x449aed[_0x2beef0(0x1f4)](_0x449aed[_0x2beef0(0x1f4)](_0x449aed[_0x2beef0(0x200)](_0x449aed[_0x2beef0(0x1ae)],_0x42a57a)+_0x449aed[_0x2beef0(0x1a6)],_0x460377),_0x2beef0(0x1f9)),selfInfo[_0x2beef0(0x1b2)]);if(_0x449aed['bosiD'](!_0x460377,!_0x42a57a))return _0x350bde;const _0x5c4f6f=WebApi[_0x2beef0(0x1a4)](_0x460377),_0x192a6f=[],_0x30f049=await WebApi[_0x2beef0(0x1d2)](_0x449aed[_0x2beef0(0x1bd)](_0x449aed[_0x2beef0(0x1bd)]('https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc='+_0x435430,_0x449aed['CPlnC']),_0x5c4f6f),_0x2beef0(0x1e9),'',_0x1df62f);if(!_0x30f049?.['count']||_0x449aed[_0x2beef0(0x208)](_0x30f049?.[_0x2beef0(0x1b1)],0x0)||!_0x30f049?.[_0x2beef0(0x1e4)])return[];else for(const _0x4b7483 in _0x30f049[_0x2beef0(0x1e4)]){_0x350bde[_0x2beef0(0x1cd)](_0x30f049[_0x2beef0(0x1e4)][_0x4b7483]);}const _0x4e1e8a=Math['ceil'](_0x449aed['MzmJs'](_0x30f049['count'],0x28));for(let _0x265874=0x2;_0x449aed[_0x2beef0(0x203)](_0x265874,_0x4e1e8a);_0x265874++){const _0x3c6531=WebApi['httpDataJson'](_0x449aed[_0x2beef0(0x1f5)](_0x449aed[_0x2beef0(0x194)](_0x449aed['amVMz'](_0x449aed[_0x2beef0(0x1c3)](_0x449aed[_0x2beef0(0x1b8)]+_0x449aed['VEMrW'](_0x449aed['bPDjj'](_0x265874,0x1),0x28),_0x2beef0(0x1e6)),_0x449aed[_0x2beef0(0x1a7)](_0x265874,0x28)),_0x449aed[_0x2beef0(0x1e5)])+_0x435430,_0x449aed[_0x2beef0(0x1aa)])+_0x5c4f6f,_0x449aed[_0x2beef0(0x199)],'',_0x1df62f);_0x192a6f['push'](_0x3c6531);}for(let _0x574542=0x1;_0x449aed[_0x2beef0(0x203)](_0x574542,_0x4e1e8a);_0x574542++){const _0x532759=await _0x192a6f[_0x574542];if(!_0x532759?.[_0x2beef0(0x1fd)]||_0x449aed['mFVXx'](_0x532759?.[_0x2beef0(0x1b1)],0x0)||!_0x532759?.['mems'])continue;for(const _0x5f41eb in _0x532759[_0x2beef0(0x1e4)]){_0x350bde['push'](_0x532759[_0x2beef0(0x1e4)][_0x5f41eb]);}}WebGroupData['GroupData'][_0x2beef0(0x1f8)](_0x435430,_0x350bde),WebGroupData[_0x2beef0(0x1da)][_0x2beef0(0x1f8)](_0x435430,Date[_0x2beef0(0x1cb)]());}else _0x350bde=_0x2351cd;return _0x350bde;}static async['setGroupNotice'](_0x136183,_0x21a6be=''){const _0x40190f=_0x216274,_0xaa7f30={'VbMyB':_0x40190f(0x1e0),'dHgcI':function(_0x29e2e1,_0x499f6b){return _0x29e2e1+_0x499f6b;},'gISzg':function(_0x13496c,_0x5682cf){return _0x13496c+_0x5682cf;},'diffH':function(_0x4cc5a4,_0x1872d8){return _0x4cc5a4+_0x1872d8;},'zQVaG':_0x40190f(0x191),'JOUJT':_0x40190f(0x1bb),'BaEyp':';\x20p_uin=o','VWJCO':function(_0xd8aea,_0x1f1e07){return _0xd8aea+_0x1f1e07;},'rQXff':function(_0x1314e8,_0x2b5f80){return _0x1314e8+_0x2b5f80;},'GtPRp':function(_0x5e1c0e,_0x31e71e){return _0x5e1c0e+_0x31e71e;},'GelRs':_0x40190f(0x1c9),'LxMYq':'&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','yqdYK':function(_0x3f76ba,_0x47ae0f){return _0x3f76ba+_0x47ae0f;},'YMBfr':_0x40190f(0x192),'KgJAW':_0x40190f(0x1d5)},_0x4614ec=(await NTQQUserApi['getPSkey']([_0xaa7f30[_0x40190f(0x19d)]]))[_0xaa7f30[_0x40190f(0x19d)]],_0x4384e6=await NTQQUserApi[_0x40190f(0x1ad)](),_0x343fed=_0xaa7f30[_0x40190f(0x1d4)](_0xaa7f30[_0x40190f(0x1c4)](_0xaa7f30[_0x40190f(0x1d6)](_0xaa7f30['zQVaG'],_0x4614ec)+_0xaa7f30[_0x40190f(0x1ca)],_0x4384e6),_0xaa7f30[_0x40190f(0x1ab)])+selfInfo[_0x40190f(0x1b2)];let _0x294f7e=undefined;if(!_0x4384e6||!_0x4614ec)return undefined;const _0x4923a7=WebApi['genBkn'](_0x4384e6),_0xce1965=_0xaa7f30[_0x40190f(0x1f7)](_0xaa7f30[_0x40190f(0x1fa)](_0xaa7f30[_0x40190f(0x193)](_0xaa7f30[_0x40190f(0x1c4)](_0xaa7f30['dHgcI'](_0xaa7f30[_0x40190f(0x1fa)](_0x40190f(0x1dd),_0x136183),_0xaa7f30[_0x40190f(0x1a1)]),_0x4923a7),_0x40190f(0x1ed)),_0x21a6be),_0xaa7f30[_0x40190f(0x20a)]),_0x52f956=_0xaa7f30[_0x40190f(0x1e2)](_0xaa7f30[_0x40190f(0x1dc)],_0x4923a7);try{return _0x294f7e=await WebApi[_0x40190f(0x1d2)](_0x52f956,_0xaa7f30['KgJAW'],'',_0x343fed),_0x294f7e;}catch(_0x2879ff){return undefined;}return undefined;}static async[_0x216274(0x201)](_0x223f17){const _0x5d63f2=_0x216274,_0x46f1cb={'Wwvbb':_0x5d63f2(0x1e0),'StDzy':function(_0x48f7bc,_0x23af8e){return _0x48f7bc+_0x23af8e;},'VQFJp':function(_0x507cc1,_0x143425){return _0x507cc1+_0x143425;},'SmeFx':function(_0x2d6027,_0x4d3db2){return _0x2d6027||_0x4d3db2;},'aPyvz':function(_0x43d11f,_0x69a4e7){return _0x43d11f+_0x69a4e7;},'PfxND':function(_0xd6855e,_0x466ddb){return _0xd6855e+_0x466ddb;},'hocUV':function(_0x63a5e3,_0x46e1ec){return _0x63a5e3+_0x46e1ec;},'IkliY':_0x5d63f2(0x1a2),'jZJoA':_0x5d63f2(0x1ea),'tZWpS':'&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','esNAM':'GET','zDGTg':function(_0x2f7238,_0x4cb7b5){return _0x2f7238!==_0x4cb7b5;}},_0x46d009=(await NTQQUserApi[_0x5d63f2(0x19a)]([_0x46f1cb['Wwvbb']]))[_0x46f1cb[_0x5d63f2(0x1fe)]],_0x24a52f=await NTQQUserApi['getSkey'](),_0x479659=_0x46f1cb[_0x5d63f2(0x1b5)](_0x46f1cb[_0x5d63f2(0x1de)](_0x46f1cb[_0x5d63f2(0x1b5)](_0x5d63f2(0x191)+_0x46d009,';\x20skey=')+_0x24a52f,';\x20p_uin=o'),selfInfo[_0x5d63f2(0x1b2)]);let _0x370a8b=undefined;if(_0x46f1cb[_0x5d63f2(0x1d3)](!_0x24a52f,!_0x46d009))return undefined;const _0x10f431=WebApi[_0x5d63f2(0x1a4)](_0x24a52f),_0x33539f=_0x46f1cb[_0x5d63f2(0x1fb)](_0x46f1cb['aPyvz'](_0x46f1cb[_0x5d63f2(0x20b)](_0x46f1cb['hocUV'](_0x46f1cb[_0x5d63f2(0x1df)],_0x10f431),_0x46f1cb['jZJoA']),_0x223f17),_0x46f1cb['tZWpS']);try{_0x370a8b=await WebApi[_0x5d63f2(0x1d2)](_0x33539f,_0x46f1cb[_0x5d63f2(0x1ac)],'',_0x479659);if(_0x46f1cb[_0x5d63f2(0x1f6)](_0x370a8b?.['ec'],0x0))return undefined;return _0x370a8b;}catch(_0x440619){return undefined;}return undefined;}static async[_0x216274(0x1e1)](_0x2f99ae='',_0x1a9b13=_0x216274(0x1d5),_0x5caf1b='',_0x46100=''){const _0x41b8e2=_0x216274,_0xeacf5e={'YmSwC':function(_0x42ebb3,_0x49a08d){return _0x42ebb3===_0x49a08d;},'RlRVJ':function(_0x464d25,_0x108810){return _0x464d25===_0x108810;},'fzDgz':'HEAD','owiji':_0x41b8e2(0x1e3),'FQIxH':function(_0x302ed0,_0x27fc74,_0x17f946){return _0x302ed0(_0x27fc74,_0x17f946);},'iAlaq':function(_0x4b4539,_0x2b2b1f){return _0x4b4539(_0x2b2b1f);}};let _0xada92c='';return new Promise(async(_0x3e4d6f,_0xa3cc4c)=>{const _0x5f1a13=_0x41b8e2;try{let _0x337641=undefined;_0xeacf5e[_0x5f1a13(0x19c)](_0x1a9b13,'GET')||_0xeacf5e['RlRVJ'](_0x1a9b13,_0xeacf5e[_0x5f1a13(0x1b7)])?_0x337641=await fetch(_0x2f99ae,{'method':_0x1a9b13,'headers':{'Content-Type':_0xeacf5e[_0x5f1a13(0x1f3)],'Cookie':_0x46100}}):_0x337641=await _0xeacf5e['FQIxH'](fetch,_0x2f99ae,{'method':_0x1a9b13,'headers':{'Content-Type':_0x5f1a13(0x1e3),'Cookie':_0x46100},'body':_0x5caf1b});if(_0x337641['ok'])_0xada92c=await _0x337641[_0x5f1a13(0x1d8)]();else{}}catch(_0x131f6b){}_0xeacf5e[_0x5f1a13(0x1a0)](_0x3e4d6f,_0xada92c);});}static async[_0x216274(0x1d2)](_0x5ca663='',_0x4f303f='GET',_0x4885ad='',_0x2c2ac5=''){const _0x39933c=_0x216274,_0x180bc8={'AuRYM':function(_0x339c52,_0x17e066){return _0x339c52===_0x17e066;},'uSSFU':_0x39933c(0x1d5),'wcEHI':function(_0x45510d,_0x272435){return _0x45510d===_0x272435;},'TtBaZ':_0x39933c(0x1ef),'ZOlnd':function(_0xe7caed,_0x222004,_0x1504f2){return _0xe7caed(_0x222004,_0x1504f2);},'trepW':'application/x-www-form-urlencoded','kDWWg':function(_0x21b590,_0x460575,_0x364f96){return _0x21b590(_0x460575,_0x364f96);},'ogcCC':function(_0x570585,_0x51a12d){return _0x570585(_0x51a12d);}};let _0x22153b=undefined;return new Promise(async(_0xa977d2,_0x444c7b)=>{const _0x3ec09=_0x39933c;try{let _0x2c58d6=undefined;_0x180bc8['AuRYM'](_0x4f303f,_0x180bc8[_0x3ec09(0x1cc)])||_0x180bc8[_0x3ec09(0x19b)](_0x4f303f,_0x180bc8[_0x3ec09(0x1f0)])?_0x2c58d6=await _0x180bc8[_0x3ec09(0x1c1)](fetch,_0x5ca663,{'method':_0x4f303f,'headers':{'Content-Type':_0x180bc8[_0x3ec09(0x1fc)],'Cookie':_0x2c2ac5}}):_0x2c58d6=await _0x180bc8[_0x3ec09(0x204)](fetch,_0x5ca663,{'method':_0x4f303f,'headers':{'Content-Type':_0x180bc8[_0x3ec09(0x1fc)],'Cookie':_0x2c2ac5},'body':_0x4885ad});if(_0x2c58d6['ok'])_0x22153b=await _0x2c58d6[_0x3ec09(0x1b4)]();else{}}catch(_0x4308f0){}_0x180bc8[_0x3ec09(0x1d1)](_0xa977d2,_0x22153b);});}static[_0x216274(0x1a4)](_0x5659e1){const _0x43fa4a=_0x216274,_0x1d5532={'VuUEA':function(_0x22cbff,_0x2471d8){return _0x22cbff||_0x2471d8;},'QwIUH':function(_0x40a25e,_0x5980be){return _0x40a25e<_0x5980be;},'ixAdW':function(_0x79e5a5,_0x13a6bd){return _0x79e5a5+_0x13a6bd;},'BzKic':function(_0x379dab,_0x5a6a60){return _0x379dab&_0x5a6a60;}};_0x5659e1=_0x1d5532[_0x43fa4a(0x1b3)](_0x5659e1,'');let _0x5027b4=0x1505;for(let _0x38f3b5=0x0;_0x1d5532['QwIUH'](_0x38f3b5,_0x5659e1[_0x43fa4a(0x207)]);_0x38f3b5++){const _0x2401dc=_0x5659e1[_0x43fa4a(0x1c7)](_0x38f3b5);_0x5027b4=_0x1d5532[_0x43fa4a(0x198)](_0x5027b4+(_0x5027b4<<0x5),_0x2401dc);}return _0x1d5532[_0x43fa4a(0x1be)](_0x5027b4,0x7fffffff)[_0x43fa4a(0x1e7)]();}} \ No newline at end of file diff --git a/src/core.lib/src/core.js b/src/core.lib/src/core.js index 2caabea9..36cbff49 100644 --- a/src/core.lib/src/core.js +++ b/src/core.lib/src/core.js @@ -1 +1 @@ -const _0x536800=_0x21ac;(function(_0x11f4c5,_0x4a396a){const _0xfb3ddd=_0x21ac,_0x5eda69=_0x11f4c5();while(!![]){try{const _0x36d9b1=-parseInt(_0xfb3ddd(0x1ed))/0x1+-parseInt(_0xfb3ddd(0x247))/0x2*(-parseInt(_0xfb3ddd(0x207))/0x3)+-parseInt(_0xfb3ddd(0x1c1))/0x4+parseInt(_0xfb3ddd(0x1d3))/0x5+-parseInt(_0xfb3ddd(0x1d1))/0x6+-parseInt(_0xfb3ddd(0x25c))/0x7*(-parseInt(_0xfb3ddd(0x1cd))/0x8)+parseInt(_0xfb3ddd(0x20f))/0x9;if(_0x36d9b1===_0x4a396a)break;else _0x5eda69['push'](_0x5eda69['shift']());}catch(_0x244c0c){_0x5eda69['push'](_0x5eda69['shift']());}}}(_0x390e,0x87e92));import _0x38f69b from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';function _0x390e(){const _0x43c70f=['message_sent','NodeIKernelGroupListener','name','addKernelBuddyListener','msgId','fileLog','fileLogLevel','length','find','get','_GW_B','clientType','infos','getProfileService','NodeIKernelLoginListener','homedir','md5','yofmV','dsSyD','then','140022008','last_message_time','push','./.config/QQ','pngBase64QrcodeData','engine','byXFk','quickLogin','dataPathGlobal','2jsWDsR','NodeIDispatcherAdapter','DIGXi','getNTUserDataInfoConfig','zcfZo','assign','initSession\x20failed','updateMsg','onLoginFailed','oKrEt','quickLoginWithUin','forEach','onUserLoggedIn','createMemberListScene','xJzpA','onMsgInfoListUpdate','快速登录不可用','MZRRV','BgdPx','V1_WIN_NQ_','update','671867EZUrxi','快速登录失败\x20','\x20has\x20no\x20method\x20','zDhQo','categoryId','SOuPo','启动失败:\x20','NodeIDependsAdapter','from','EGLKB','NodeIGlobalAdapter','BAevC','digest','addListener','EWHiM','onProfileDetailInfoChanged','[KickedOffLine]\x20[','dataPath','NodeIKernelMsgListener','SbTre','yXHBA','2321816zcpPGv','mkdirSync','kfhWg','curVersion','constructor','initSession','ZdgQw','cGUiq','NodeQQNTWrapperUtil','proxyHandler','onAddSendMsg','NodeIKernelBuddyListener','88wuzQHo','set','initConfig','initDataListener','5025378cJWkfe','loginListener','1079645ZMYjXo',')\x20在线状态变更','session','mZftX','recallTime','jcBlj','packet_received','IiVDo','groupCode','uin','onLoginSuccess','CIEbn','onLoginSuccessFuncList','NodeIKernelLoginService','getBuddyList','init\x20failed\x20','loginErrorInfo','errMsg','startNT','NodeIQQNTWrapperSession','tipsDesc','categroyName','has','buddyList','getMsgByLongId','getBuddyService','649033gmKgmp','createHash','JiFUl','GroupListener','getMsgService','onQRCodeGetPicture','message_received','consoleLogLevel','addKernelLoginListener','replace','FOmGh','NodeIKernelProfileListener','getGroupService','onSelfStatusChanged','resolve','addKernelMsgListener','stringify','数据库初始化失败','undefined','cJWvj','JftzZ','NodeIKernelSessionListener','VaWBR','xlHQr','now','onMemberInfoChange','3314043vOPfsn','catch','NodeIQQNTWrapperEngine','passwordLogin','ZaHox','JaRKd','onBuddyListChange','Windows\x2010\x20Pro','2226051EMLXZj','MsgListener','YecyF','split','DWWbs','groupMemberList_MainWindow','init','gGStm','loginService','floor','data','rWaqI','onRecvMsg','LocalLoginInfoList','getLoginList','uid','onLineDev','consoleLog','addKernelGroupListener','map','UzJxh','sceneId','bXJUV','登录失败','GpkUg','result','ProfileListener'];_0x390e=function(){return _0x43c70f;};return _0x390e();}import _0x1f57f6 from'node:path';import _0x42d54d from'node:os';import _0x26df6e from'node:fs';import{appid,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemVersion}from'@/common/utils/system';function _0x21ac(_0x184802,_0x1b9b97){const _0x390eff=_0x390e();return _0x21ac=function(_0x21ac06,_0x1b6434){_0x21ac06=_0x21ac06-0x1b1;let _0xd7b1c7=_0x390eff[_0x21ac06];return _0xd7b1c7;},_0x21ac(_0x184802,_0x1b9b97);}import{genSessionConfig}from'@/core/sessionConfig';import{dbUtil}from'@/core/utils/db';import{sleep}from'@/common/utils/helper';import _0x507f38 from'node:crypto';import{buddyCategory,friends,groupMembers,groups,selfInfo,stat,uid2UinMap}from'@/core/data';import{enableConsoleLog,enableFileLog,log,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';import{napCatConfig}from'@/core/utils/config';export class NapCatCore{['session'];['util'];[_0x536800(0x243)];[_0x536800(0x217)];[_0x536800(0x1d2)];[_0x536800(0x1df)]=[];[_0x536800(0x1ca)]={'get'(target,prop,receiver){const _0x5ece62=_0x536800,DYFfnJ={'ANIgE':function(callee,param1){return callee(param1);},'JaRKd':function(x,y){return x===y;},'ZaHox':_0x5ece62(0x1ff)};if(DYFfnJ[_0x5ece62(0x20c)](typeof target[prop],DYFfnJ[_0x5ece62(0x20b)]))return(...args)=>{const _0x5d4752=_0x5ece62;DYFfnJ['ANIgE'](logDebug,target[_0x5d4752(0x1c5)][_0x5d4752(0x22c)]+_0x5d4752(0x25e)+prop);};return Reflect[_0x5ece62(0x233)](target,prop,receiver);}};constructor(){const _0x60915f=_0x536800,_0x1fc0bc={'MZRRV':function(_0x50daca,_0x5cf2c3){return _0x50daca(_0x5cf2c3);},'gGStm':function(_0x42e157,_0x5019e6){return _0x42e157+_0x5019e6;},'CyyNw':'当前账号(','cGUiq':')已登录,无法重复登录','ZRhLg':function(_0x4f5cb4,_0x572077,_0x518462){return _0x4f5cb4(_0x572077,_0x518462);},'VaWBR':function(_0x32a9a9,_0x1355d6){return _0x32a9a9 instanceof _0x1355d6;},'SbTre':function(_0x3ef279,_0x57d078,_0x5566bb){return _0x3ef279(_0x57d078,_0x5566bb);},'byXFk':'./NapCat/data','SOuPo':'本账号数据/缓存目录:','AZHhT':function(_0x3123f1,_0x290cb1,_0x54820b){return _0x3123f1(_0x290cb1,_0x54820b);},'xlHQr':_0x60915f(0x24d),'TjShN':_0x60915f(0x1fe),'EGLKB':function(_0x4174da,_0x5c2844,_0x21ba41){return _0x4174da(_0x5c2844,_0x21ba41);},'BAevC':_0x60915f(0x226),'ZdgQw':function(_0x1ed2e9,_0x56e4af){return _0x1ed2e9==_0x56e4af;},'UzJxh':function(_0x1242f6,_0x42408d){return _0x1242f6==_0x42408d;}};this['engine']=new _0x38f69b[(_0x60915f(0x209))](),this['util']=new _0x38f69b[(_0x60915f(0x1c9))](),this['loginService']=new _0x38f69b[(_0x60915f(0x1e0))](),this[_0x60915f(0x1d5)]=new _0x38f69b[(_0x60915f(0x1e6))](),this['loginListener']=new LoginListener(),this['loginListener'][_0x60915f(0x253)]=_0x39ef64=>{const _0x197b7f=_0x60915f;_0x1fc0bc[_0x197b7f(0x258)](logError,_0x1fc0bc['gGStm'](_0x1fc0bc[_0x197b7f(0x216)](_0x1fc0bc['CyyNw'],_0x39ef64),_0x1fc0bc[_0x197b7f(0x1c8)]));},this[_0x60915f(0x1d2)]['onQRCodeLoginSucceed']=_0x5b917f=>{const _0x175541=_0x60915f,_0x4c64a6={'EmkOg':function(_0x25bc4e,_0x20fb83,_0x203a84){const _0x495fd0=_0x21ac;return _0x1fc0bc[_0x495fd0(0x1bf)](_0x25bc4e,_0x20fb83,_0x203a84);},'FOmGh':_0x1fc0bc['TjShN']};this[_0x175541(0x1c6)](_0x5b917f['uin'],_0x5b917f[_0x175541(0x21e)])[_0x175541(0x23d)](_0x56c144=>{const _0xbc708a=_0x175541,_0x3bddb6={'jcBlj':function(_0x947950,_0x3096d9,_0xd4799b){return _0x1fc0bc['ZRhLg'](_0x947950,_0x3096d9,_0xd4799b);},'HhSrs':function(_0x173791,_0x466717){const _0x293f6c=_0x21ac;return _0x1fc0bc[_0x293f6c(0x203)](_0x173791,_0x466717);}};selfInfo[_0xbc708a(0x1dc)]=_0x5b917f[_0xbc708a(0x1dc)],selfInfo[_0xbc708a(0x21e)]=_0x5b917f[_0xbc708a(0x21e)],napCatConfig['read'](),_0x1fc0bc[_0xbc708a(0x1bf)](setLogLevel,napCatConfig[_0xbc708a(0x230)],napCatConfig[_0xbc708a(0x1f4)]),_0x1fc0bc['MZRRV'](enableFileLog,napCatConfig[_0xbc708a(0x22f)]),_0x1fc0bc['MZRRV'](enableConsoleLog,napCatConfig[_0xbc708a(0x220)]),_0x1fc0bc[_0xbc708a(0x258)](setLogSelfInfo,selfInfo);const _0x26f548=_0x1f57f6[_0xbc708a(0x1fb)](this[_0xbc708a(0x1bd)],_0x1fc0bc[_0xbc708a(0x244)]);_0x26df6e[_0xbc708a(0x1c2)](_0x26f548,{'recursive':!![]}),logDebug(_0x1fc0bc[_0xbc708a(0x1b1)],_0x26f548),dbUtil[_0xbc708a(0x215)](_0x1f57f6[_0xbc708a(0x1fb)](_0x26f548,'./'+_0x5b917f[_0xbc708a(0x1dc)]+'-v2.db'))[_0xbc708a(0x23d)](()=>{const _0x1f3beb=_0xbc708a,_0x44994f={'bXJUV':function(_0x1be327,_0x1f345d,_0x40e916){const _0x27cd4e=_0x21ac;return _0x3bddb6[_0x27cd4e(0x1d8)](_0x1be327,_0x1f345d,_0x40e916);},'hhFAG':function(_0x2728e9,_0x42b1b2){return _0x3bddb6['HhSrs'](_0x2728e9,_0x42b1b2);}};this[_0x1f3beb(0x1d0)](),this[_0x1f3beb(0x1df)][_0x1f3beb(0x222)](_0x805066=>{const _0x36f3f8=_0x1f3beb;new Promise((_0x49b9d2,_0x533331)=>{const _0x4a06e2=_0x21ac,_0x283fde=_0x44994f[_0x4a06e2(0x225)](_0x805066,_0x5b917f[_0x4a06e2(0x1dc)],_0x5b917f[_0x4a06e2(0x21e)]);_0x44994f['hhFAG'](_0x283fde,Promise)&&_0x283fde[_0x4a06e2(0x23d)](_0x49b9d2)[_0x4a06e2(0x208)](_0x533331);})[_0x36f3f8(0x23d)]();});})[_0xbc708a(0x208)](_0x5ac6a3=>{const _0x4590fd=_0xbc708a;_0x4c64a6['EmkOg'](logError,_0x4c64a6[_0x4590fd(0x1f7)],_0x5ac6a3);});})[_0x175541(0x208)](_0x39449c=>{const _0x529ba7=_0x175541;_0x1fc0bc['AZHhT'](logError,_0x1fc0bc[_0x529ba7(0x204)],_0x39449c);throw new Error(_0x529ba7(0x1b2)+JSON[_0x529ba7(0x1fd)](_0x39449c));});},this[_0x60915f(0x1d2)]['onQRCodeSessionFailed']=(_0x44325f,_0x211520,_0x3e48c0)=>{const _0x12dfbb=_0x60915f;_0x1fc0bc[_0x12dfbb(0x1b5)](logError,_0x1fc0bc['BAevC'],_0x3e48c0),_0x1fc0bc[_0x12dfbb(0x1c7)](_0x44325f,0x1)&&_0x1fc0bc[_0x12dfbb(0x223)](_0x211520,0x3)&&this[_0x12dfbb(0x217)]['getQRCodePicture']();},this['loginListener'][_0x60915f(0x24f)]=_0x4ab47d=>{const _0x5771ae=_0x60915f;_0x1fc0bc[_0x5771ae(0x1b5)](logError,_0x1fc0bc[_0x5771ae(0x1b7)],_0x4ab47d);},this[_0x60915f(0x1d2)]=new Proxy(this[_0x60915f(0x1d2)],this[_0x60915f(0x1ca)]),this[_0x60915f(0x217)][_0x60915f(0x1f5)](new _0x38f69b[(_0x60915f(0x238))](this[_0x60915f(0x1d2)])),this['initConfig']();}get[_0x536800(0x1bd)](){const _0x35da08=_0x536800,_0x43d41c={'UYpYc':_0x35da08(0x241)};let _0x374aad=this['util'][_0x35da08(0x24a)]();return!_0x374aad&&(_0x374aad=_0x1f57f6['resolve'](_0x42d54d[_0x35da08(0x239)](),_0x43d41c['UYpYc']),_0x26df6e['mkdirSync'](_0x374aad,{'recursive':!![]})),_0x374aad;}get[_0x536800(0x246)](){const _0x484dc1=_0x536800,_0x303405={'UZxka':'./nt_qq/global'};return _0x1f57f6['resolve'](this[_0x484dc1(0x1bd)],_0x303405['UZxka']);}['initConfig'](){const _0x1559b4=_0x536800,_0x1f34c7={'EWHiM':_0x1559b4(0x20e)};this[_0x1559b4(0x243)]['initWithDeskTopConfig']({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo[_0x1559b4(0x1c4)],'os_version':_0x1f34c7[_0x1559b4(0x1ba)],'use_xlog':!![],'qua':_0x1559b4(0x25a)+qqVersionConfigInfo[_0x1559b4(0x1c4)][_0x1559b4(0x1f6)]('-','_')+_0x1559b4(0x234),'global_path_config':{'desktopGlobalPath':this[_0x1559b4(0x246)]},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x38f69b[(_0x1559b4(0x1b6))](new GlobalAdapter())),this[_0x1559b4(0x217)][_0x1559b4(0x1cf)]({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this['dataPathGlobal'],'clientVer':qqVersionConfigInfo[_0x1559b4(0x1c4)],'hostName':hostname});}[_0x536800(0x1c6)](_0x3bf246,_0x3557ec){const _0x2b65fb={'JYuEz':function(_0x54b26d,_0x3d830d){return _0x54b26d(_0x3d830d);},'JftzZ':function(_0x2c898a,_0x3e68f1){return _0x2c898a(_0x3e68f1);},'DIGXi':function(_0x18794b,_0x1e93a8,_0xfd1d51,_0x11f940){return _0x18794b(_0x1e93a8,_0xfd1d51,_0x11f940);},'CIEbn':function(_0x48e5d1,_0x14efa3){return _0x48e5d1(_0x14efa3);}};return new Promise((_0x4b914c,_0x21864c)=>{const _0x37e959=_0x21ac,_0x703ded=_0x2b65fb[_0x37e959(0x249)](genSessionConfig,_0x3bf246,_0x3557ec,this['dataPath']),_0x483acb=new SessionListener();_0x483acb['onSessionInitComplete']=_0x3c4021=>{const _0x59b099=_0x37e959;if(_0x3c4021===0x0)return _0x2b65fb['JYuEz'](_0x4b914c,0x0);_0x2b65fb[_0x59b099(0x201)](_0x21864c,_0x3c4021);},this['session']['init'](_0x703ded,new _0x38f69b[(_0x37e959(0x1b3))](new DependsAdapter()),new _0x38f69b[(_0x37e959(0x248))](new DispatcherAdapter()),new _0x38f69b[(_0x37e959(0x202))](_0x483acb));try{this[_0x37e959(0x1d5)]['startNT'](0x0);}catch(_0x588027){try{this[_0x37e959(0x1d5)][_0x37e959(0x1e5)]();}catch(_0x1f00f0){_0x2b65fb[_0x37e959(0x1de)](_0x21864c,_0x37e959(0x1e2)+_0x1f00f0);}}});}[_0x536800(0x1d0)](){const _0x1c77c5=_0x536800,_0x3c6d05={'JiFUl':function(_0x2e0a0d,_0x3350e5){return _0x2e0a0d===_0x3350e5;},'DWWbs':function(_0x2ed01c,_0x443115){return _0x2ed01c(_0x443115);},'yofmV':function(_0x5ea443,_0x9a3a12){return _0x5ea443+_0x9a3a12;},'iUdqQ':_0x1c77c5(0x1d4),'YecyF':function(_0x39ed4b,_0x49c6b1){return _0x39ed4b/_0x49c6b1;},'cJWvj':_0x1c77c5(0x214)},_0x7fada4=new MsgListener();_0x7fada4[_0x1c77c5(0x21f)]=_0x17559f=>{const _0x386e32=_0x1c77c5;_0x17559f[_0x386e32(0x222)](_0xbe7527=>{const _0x1b12b7=_0x386e32;_0x3c6d05[_0x1b12b7(0x1ef)](_0xbe7527[_0x1b12b7(0x235)],0x2)&&_0x3c6d05[_0x1b12b7(0x213)](log,_0x3c6d05[_0x1b12b7(0x23b)](_0x3c6d05['yofmV']('账号设备(',_0xbe7527['devUid']),_0x3c6d05['iUdqQ']));});},_0x7fada4['onKickedOffLine']=_0x3c25aa=>{const _0x206328=_0x1c77c5;log(_0x3c6d05[_0x206328(0x23b)](_0x3c6d05[_0x206328(0x23b)](_0x3c6d05[_0x206328(0x23b)](_0x206328(0x1bc),_0x3c25aa['tipsTitle']),']\x20'),_0x3c25aa[_0x206328(0x1e7)]));},_0x7fada4[_0x1c77c5(0x256)]=_0x1c09d1=>{const _0x23170a=_0x1c77c5;stat[_0x23170a(0x1d9)]+=0x1,_0x1c09d1[_0x23170a(0x222)](_0x38e151=>{const _0x57d9cb=_0x23170a;_0x3c6d05['JiFUl'](_0x38e151['recallTime'],'0')?dbUtil['addMsg'](_0x38e151)[_0x57d9cb(0x23d)]()[_0x57d9cb(0x208)]():dbUtil[_0x57d9cb(0x1eb)](_0x38e151[_0x57d9cb(0x22e)])[_0x57d9cb(0x23d)](_0x3ba8cd=>{const _0x50b332=_0x57d9cb;_0x3ba8cd&&(_0x3ba8cd[_0x50b332(0x1d7)]=_0x38e151[_0x50b332(0x1d7)],dbUtil[_0x50b332(0x24e)](_0x3ba8cd)[_0x50b332(0x23d)]());});});},_0x7fada4[_0x1c77c5(0x1cb)]=_0x247029=>{const _0x2ba6a8=_0x1c77c5;stat['packet_sent']+=0x1,stat[_0x2ba6a8(0x22a)]+=0x1,stat[_0x2ba6a8(0x23f)]=Math[_0x2ba6a8(0x218)](_0x3c6d05[_0x2ba6a8(0x211)](Date[_0x2ba6a8(0x205)](),0x3e8));},_0x7fada4[_0x1c77c5(0x21b)]=_0x10114f=>{const _0x185d4c=_0x1c77c5;stat[_0x185d4c(0x1d9)]+=0x1,stat[_0x185d4c(0x1f3)]+=_0x10114f[_0x185d4c(0x231)],stat[_0x185d4c(0x23f)]=Math[_0x185d4c(0x218)](_0x3c6d05[_0x185d4c(0x211)](Date[_0x185d4c(0x205)](),0x3e8));},_0x7fada4['onRecvSysMsg']=(..._0x5ba9fb)=>{const _0x579bb6=_0x1c77c5;stat[_0x579bb6(0x1d9)]+=0x1;},this[_0x1c77c5(0x1b9)](_0x7fada4);const _0xbcfb4c=new BuddyListener();_0xbcfb4c[_0x1c77c5(0x20d)]=_0x43c522=>{const _0x26a250=_0x1c77c5;buddyCategory[_0x26a250(0x219)]=[];for(const _0x5819d4 of _0x43c522){buddyCategory[_0x26a250(0x219)][_0x26a250(0x240)]({'categoryId':_0x5819d4[_0x26a250(0x260)],'categroyName':_0x5819d4[_0x26a250(0x1e8)],'categroyMbCount':_0x5819d4['categroyMbCount']});}for(const _0x157864 of _0x43c522){for(const _0x424d05 of _0x157864[_0x26a250(0x1ea)]){const _0x22f762=friends['get'](_0x424d05[_0x26a250(0x21e)]);uid2UinMap[_0x424d05[_0x26a250(0x21e)]]=_0x424d05[_0x26a250(0x1dc)],_0x22f762?Object[_0x26a250(0x24c)](_0x22f762,_0x424d05):friends[_0x26a250(0x1ce)](_0x424d05[_0x26a250(0x21e)],_0x424d05);}}},this[_0x1c77c5(0x1b9)](_0xbcfb4c),this[_0x1c77c5(0x1d5)][_0x1c77c5(0x1ec)]()[_0x1c77c5(0x1e1)](!![])[_0x1c77c5(0x23d)](_0x32d5e7=>{});const _0x3c8877=new ProfileListener();_0x3c8877[_0x1c77c5(0x1bb)]=_0x30ef62=>{const _0x2ed313=_0x1c77c5;_0x3c6d05[_0x2ed313(0x1ef)](_0x30ef62[_0x2ed313(0x21e)],selfInfo['uid'])&&Object[_0x2ed313(0x24c)](selfInfo,_0x30ef62);},_0x3c8877[_0x1c77c5(0x1fa)]=_0x2ce1b9=>{},this[_0x1c77c5(0x1b9)](_0x3c8877);const _0x3faba4=new GroupListener();_0x3faba4['onGroupListUpdate']=(_0x13ab75,_0x26b498)=>{const _0x4a66b0=_0x1c77c5,_0x2ff2cb={'VJAjk':_0x3c6d05[_0x4a66b0(0x200)]};_0x26b498['map'](_0x4af1d7=>{const _0x4079e1=_0x4a66b0,_0x29ea2b=groups['get'](_0x4af1d7[_0x4079e1(0x1db)]);if(_0x29ea2b)Object[_0x4079e1(0x24c)](_0x29ea2b,_0x4af1d7);else{groups[_0x4079e1(0x1ce)](_0x4af1d7[_0x4079e1(0x1db)],_0x4af1d7);const _0x565f29=this[_0x4079e1(0x1d5)][_0x4079e1(0x1f9)]()[_0x4079e1(0x254)](_0x4af1d7['groupCode'],_0x2ff2cb['VJAjk']);this[_0x4079e1(0x1d5)]['getGroupService']()['getNextMemberList'](_0x565f29,undefined,0xbb8)[_0x4079e1(0x23d)](_0x307af6=>{});}});},_0x3faba4['onMemberListChange']=_0x4b779d=>{const _0x41dbd7=_0x1c77c5,_0x391c56=_0x4b779d[_0x41dbd7(0x224)]['split']('_')[0x0];if(groupMembers[_0x41dbd7(0x1e9)](_0x391c56)){const _0x2901c9=groupMembers[_0x41dbd7(0x233)](_0x391c56);_0x4b779d['infos'][_0x41dbd7(0x252)]((_0x1727e6,_0x5aa694)=>{const _0x485859=_0x41dbd7,_0x38638c=_0x2901c9['get'](_0x5aa694);_0x38638c?Object[_0x485859(0x24c)](_0x38638c,_0x1727e6):_0x2901c9[_0x485859(0x1ce)](_0x5aa694,_0x1727e6);});}else groupMembers['set'](_0x391c56,_0x4b779d[_0x41dbd7(0x236)]);},_0x3faba4[_0x1c77c5(0x206)]=(_0x1700ca,_0x201ec8,_0x58ee3c)=>{const _0x1d8a85=_0x1c77c5;_0x58ee3c[_0x1d8a85(0x252)]((_0x1951d5,_0x5d39d1)=>{const _0x127b9b=_0x1d8a85;uid2UinMap[_0x5d39d1]=_0x1951d5[_0x127b9b(0x1dc)];});const _0x39f1b4=groupMembers[_0x1d8a85(0x233)](_0x1700ca);_0x39f1b4?_0x58ee3c[_0x1d8a85(0x252)]((_0x147489,_0xf65323)=>{const _0x3ab78f=_0x1d8a85,_0x579352=_0x39f1b4[_0x3ab78f(0x233)](_0xf65323);_0x579352?Object[_0x3ab78f(0x24c)](_0x579352,_0x147489):_0x39f1b4[_0x3ab78f(0x1ce)](_0xf65323,_0x147489);}):groupMembers[_0x1d8a85(0x1ce)](_0x1700ca,_0x58ee3c);},this[_0x1c77c5(0x1b9)](_0x3faba4);}['addListener'](_0x321873){const _0x681d25=_0x536800,_0x38f42a={'oKrEt':'BuddyListener','SkzTU':_0x681d25(0x1f0),'kfhWg':_0x681d25(0x210),'ooXwW':_0x681d25(0x229)};_0x321873=new Proxy(_0x321873,this[_0x681d25(0x1ca)]);switch(_0x321873[_0x681d25(0x1c5)][_0x681d25(0x22c)]){case _0x38f42a[_0x681d25(0x250)]:{return this[_0x681d25(0x1d5)]['getBuddyService']()[_0x681d25(0x22d)](new _0x38f69b[(_0x681d25(0x1cc))](_0x321873));}case _0x38f42a['SkzTU']:{return this['session']['getGroupService']()[_0x681d25(0x221)](new _0x38f69b[(_0x681d25(0x22b))](_0x321873));}case _0x38f42a[_0x681d25(0x1c3)]:{return this['session'][_0x681d25(0x1f1)]()[_0x681d25(0x1fc)](new _0x38f69b[(_0x681d25(0x1be))](_0x321873));}case _0x38f42a['ooXwW']:{return this[_0x681d25(0x1d5)][_0x681d25(0x237)]()['addKernelProfileListener'](new _0x38f69b[(_0x681d25(0x1f8))](_0x321873));}default:return-0x1;}}[_0x536800(0x1dd)](_0xb2a110){const _0x33ab9b=_0x536800;this[_0x33ab9b(0x1df)][_0x33ab9b(0x240)](_0xb2a110);}async[_0x536800(0x245)](_0x323dc3){const _0x57846d=_0x536800,_0x180a3d={'xJzpA':function(_0x14f697,_0xfc629d){return _0x14f697!==_0xfc629d;},'GpkUg':'没有可快速登录的QQ号','zcfZo':function(_0x365b97,_0x262b8b){return _0x365b97(_0x262b8b);},'DMWud':function(_0x358471,_0x1ce38a){return _0x358471+_0x1ce38a;},'zDhQo':_0x57846d(0x25d)},_0x43042a=await this[_0x57846d(0x217)][_0x57846d(0x21d)]();if(_0x180a3d[_0x57846d(0x255)](_0x43042a[_0x57846d(0x228)],0x0))throw new Error(_0x180a3d[_0x57846d(0x227)]);const _0x22e6c0=_0x43042a[_0x57846d(0x21c)][_0x57846d(0x232)](_0x1d125b=>_0x1d125b[_0x57846d(0x1dc)]===_0x323dc3);if(!_0x22e6c0||!_0x22e6c0?.['isQuickLogin'])throw new Error(_0x323dc3+_0x57846d(0x257));await _0x180a3d[_0x57846d(0x24b)](sleep,0x3e8);const _0xd62a23=await this['loginService'][_0x57846d(0x251)](_0x323dc3);if(!_0xd62a23[_0x57846d(0x228)])throw new Error(_0x180a3d['DMWud'](_0x180a3d[_0x57846d(0x25f)],_0xd62a23[_0x57846d(0x1e3)][_0x57846d(0x1e4)]));return _0xd62a23;}async['qrLogin'](_0x3e9a24){const _0x17634b={'yXHBA':'data:image/png;base64,','fPtFV':'base64','rWaqI':function(_0x221720,_0xed6377,_0x2be7ac,_0x19f310){return _0x221720(_0xed6377,_0x2be7ac,_0x19f310);}};return new Promise((_0x20c25b,_0x3db0d2)=>{const _0xdc4637=_0x21ac;this[_0xdc4637(0x1d2)][_0xdc4637(0x1f2)]=_0x34c0fa=>{const _0x428396=_0xdc4637,_0x284777=_0x34c0fa[_0x428396(0x242)][_0x428396(0x212)](_0x17634b[_0x428396(0x1c0)])[0x1],_0x2e81c4=Buffer[_0x428396(0x1b4)](_0x284777,_0x17634b['fPtFV']);_0x17634b[_0x428396(0x21a)](_0x3e9a24,_0x34c0fa['qrcodeUrl'],_0x34c0fa[_0x428396(0x242)],_0x2e81c4);},this['loginService']['getQRCodePicture']();});}async[_0x536800(0x20a)](_0xdd6bd6,_0x3329bd,_0x1de305,_0x5d91e8,_0x4dfca8){const _0x3ee182=_0x536800,_0x3bcfa3={'BgdPx':_0x3ee182(0x23a),'stZni':'hex','mZftX':function(_0x1ec968,_0xc8eaee){return _0x1ec968&&_0xc8eaee;},'dsSyD':function(_0x5b90b6,_0x5acc2b){return _0x5b90b6||_0x5acc2b;},'IiVDo':'140022013'},_0x1e1548=_0x507f38[_0x3ee182(0x1ee)](_0x3bcfa3[_0x3ee182(0x259)])[_0x3ee182(0x25b)](_0x3329bd)[_0x3ee182(0x1b8)](_0x3bcfa3['stZni']),_0x252958={'uin':_0xdd6bd6,'passwordMd5':_0x1e1548,'step':_0x3bcfa3[_0x3ee182(0x1d6)](_0x1de305,_0x5d91e8)&&_0x4dfca8?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x3bcfa3['dsSyD'](_0x1de305,''),'proofWaterRand':_0x3bcfa3[_0x3ee182(0x23c)](_0x5d91e8,''),'proofWaterSid':_0x4dfca8||''};await this['loginService'][_0x3ee182(0x21d)](),await sleep(0x3e8);const _0x1f265b=await this[_0x3ee182(0x217)][_0x3ee182(0x20a)](_0x252958);switch(_0x1f265b[_0x3ee182(0x228)]){case'0':{break;}case _0x3ee182(0x23e):{break;}case'4':case _0x3bcfa3[_0x3ee182(0x1da)]:default:}}async['getQuickLoginList'](){const _0x957352=_0x536800,_0x28f7f4=await this[_0x957352(0x217)][_0x957352(0x21d)]();return _0x28f7f4;}}export const napCatCore=new NapCatCore(); \ No newline at end of file +const _0x58fc7e=_0x4fd1;(function(_0x529c6d,_0x4f51b8){const _0x2cd8ef=_0x4fd1,_0x42ed86=_0x529c6d();while(!![]){try{const _0x3d2b58=parseInt(_0x2cd8ef(0x15e))/0x1+-parseInt(_0x2cd8ef(0x119))/0x2+-parseInt(_0x2cd8ef(0x186))/0x3*(parseInt(_0x2cd8ef(0x183))/0x4)+-parseInt(_0x2cd8ef(0x149))/0x5+-parseInt(_0x2cd8ef(0x156))/0x6*(-parseInt(_0x2cd8ef(0x198))/0x7)+parseInt(_0x2cd8ef(0x150))/0x8*(-parseInt(_0x2cd8ef(0x166))/0x9)+-parseInt(_0x2cd8ef(0x174))/0xa*(-parseInt(_0x2cd8ef(0x115))/0xb);if(_0x3d2b58===_0x4f51b8)break;else _0x42ed86['push'](_0x42ed86['shift']());}catch(_0x1c08db){_0x42ed86['push'](_0x42ed86['shift']());}}}(_0x770f,0xe5d06));import _0x51ba84 from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x1b045c from'node:path';import _0xdc487b from'node:os';import _0x47e738 from'node:fs';import{appid,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemVersion}from'@/common/utils/system';import{genSessionConfig}from'@/core/sessionConfig';import{dbUtil}from'@/core/utils/db';import{sleep}from'@/common/utils/helper';import _0x22e44c from'node:crypto';import{rawFriends,friends,groupMembers,groups,selfInfo,stat,uid2UinMap}from'@/core/data';import{enableConsoleLog,enableFileLog,log,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';function _0x4fd1(_0xf78aad,_0x2c9ac2){const _0x770f02=_0x770f();return _0x4fd1=function(_0x4fd133,_0x133b20){_0x4fd133=_0x4fd133-0x10b;let _0x109066=_0x770f02[_0x4fd133];return _0x109066;},_0x4fd1(_0xf78aad,_0x2c9ac2);}import{napCatConfig}from'@/core/utils/config';function _0x770f(){const _0x22c3c1=['init\x20failed\x20','NodeIQQNTWrapperSession','NodeIKernelMsgListener','then','trJgr','onQRCodeLoginSucceed','createHash','NodeIKernelLoginService','sceneId','mkdirSync','5733200IKBcbX','addKernelMsgListener','登录失败','MvCga','assign','resolve','stringify','JNFMN','NodeQQNTWrapperUtil','initSession','uid','140022008','pgBYJ','onRecvMsg','CjzUu','4bBtGZo','getBuddyList','msgId','5540979hilBYo','getProfileService','message_sent','本账号数据/缓存目录:','qrLogin','140022013','initWithDeskTopConfig','GkptG','uQcju','-v2.db','split','groupMemberList_MainWindow','addKernelBuddyListener','GgBrC','onUserLoggedIn','update','JwTcQ','floor','2391179EsPviV','map','util','engine','onProfileDetailInfoChanged','xPQBQ','yRmGx','infos','快速登录失败\x20','getMsgByLongId','ProfileListener','onKickedOffLine','quickLogin','initDataListener','hex','getBuddyService','addListener','erwmj','fileLogLevel','buddyList','gniBy','getNTUserDataInfoConfig','curVersion','homedir','kRbvA','dataPath','message_received','get','LocalLoginInfoList','getLoginList','scQAZ','快速登录不可用','eSTeG','fAXjD','qrcodeUrl','addKernelGroupListener','getMsgService',')\x20在线状态变更','tuKuO','hsJjQ','NodeIKernelProfileListener','isQuickLogin','CfWgt','_GW_B','addMsg','packet_received','77OVYBnb','onMsgInfoListUpdate','proxyHandler','onSelfStatusChanged','47308kOptfo','find','数据库初始化失败','wEADo','tipsTitle','quickLoginWithUin','LIAhx','set','onRecvSysMsg','addKernelLoginListener','loginListener','onBuddyListChange','dataPathGlobal','\x20has\x20no\x20method\x20','onMemberInfoChange','name','bINfr','fileLog','undefined','createMemberListScene','NodeIDispatcherAdapter','onLoginSuccess','loginService','push','当前账号(','onGroupListUpdate','uin','没有可快速登录的QQ号','packet_sent','DQDBd','consoleLog','pngBase64QrcodeData','cPVBR','ljaNJ','session','initConfig','getGroupService','onLoginSuccessFuncList','kRgxK','md5','length','result','now','onQRCodeGetPicture','constructor','devUid','GUZKY','Tkdkz','3925580jpaINy','Windows\x2010\x20Pro','JAaFU','onMemberListChange','startNT','replace','groupCode','72584AGkegu','forEach','sHydt','consoleLogLevel','recallTime','NodeIKernelSessionListener','6pghWSt','from','catch','initSession\x20failed','NodeIKernelLoginListener','wZPDn','tipsDesc','iGWoi','358223NiqCRI','NodeIGlobalAdapter','CnUjH','onAddSendMsg','BuddyListener','oHOOS','BEfmP','lJQEM','1107gAVGUk','last_message_time','onLoginFailed','passwordLogin'];_0x770f=function(){return _0x22c3c1;};return _0x770f();}export class NapCatCore{[_0x58fc7e(0x13b)];[_0x58fc7e(0x19a)];[_0x58fc7e(0x19b)];[_0x58fc7e(0x12f)];[_0x58fc7e(0x123)];[_0x58fc7e(0x13e)]=[];[_0x58fc7e(0x117)]={'get'(target,prop,receiver){const _0x59f60e=_0x58fc7e,IfLGpi={'scQAZ':function(callee,param1){return callee(param1);},'iGWoi':function(x,y){return x===y;},'GkptG':_0x59f60e(0x12b)};if(IfLGpi[_0x59f60e(0x15d)](typeof target[prop],IfLGpi[_0x59f60e(0x18d)]))return(...args)=>{const _0x3ddca1=_0x59f60e;IfLGpi[_0x3ddca1(0x1b6)](logDebug,target[_0x3ddca1(0x145)]['name']+_0x3ddca1(0x126)+prop);};return Reflect[_0x59f60e(0x1b3)](target,prop,receiver);}};constructor(){const _0x473ec0=_0x58fc7e,_0x3d934d={'kRgxK':function(_0x3f5354,_0x5b092d){return _0x3f5354+_0x5b092d;},'CnUjH':_0x473ec0(0x131),'PJOkz':')已登录,无法重复登录','JAaFU':function(_0x117207,_0x4b3d7e,_0x5891ed){return _0x117207(_0x4b3d7e,_0x5891ed);},'erwmj':function(_0x482c17,_0x350c69){return _0x482c17(_0x350c69);},'wEADo':_0x473ec0(0x176),'GUZKY':function(_0x2d5e1a,_0x39f297){return _0x2d5e1a==_0x39f297;}};this[_0x473ec0(0x19b)]=new _0x51ba84['NodeIQQNTWrapperEngine'](),this[_0x473ec0(0x19a)]=new _0x51ba84[(_0x473ec0(0x17c))](),this[_0x473ec0(0x12f)]=new _0x51ba84[(_0x473ec0(0x171))](),this['session']=new _0x51ba84[(_0x473ec0(0x16b))](),this[_0x473ec0(0x123)]=new LoginListener(),this[_0x473ec0(0x123)][_0x473ec0(0x194)]=_0x7a6d9d=>{const _0x4484cd=_0x473ec0;logError(_0x3d934d[_0x4484cd(0x13f)](_0x3d934d[_0x4484cd(0x13f)](_0x3d934d[_0x4484cd(0x160)],_0x7a6d9d),_0x3d934d['PJOkz']));},this[_0x473ec0(0x123)][_0x473ec0(0x16f)]=_0x37b5e8=>{const _0x58b9d7=_0x473ec0,_0x25dbd7={'ljaNJ':function(_0x3ab5cc,_0x113a44,_0x29df68){const _0x3a6fe5=_0x4fd1;return _0x3d934d[_0x3a6fe5(0x14b)](_0x3ab5cc,_0x113a44,_0x29df68);},'xPQBQ':function(_0x12a68d,_0x1b9f5d,_0x46a65a){return _0x12a68d(_0x1b9f5d,_0x46a65a);},'CfWgt':function(_0x4afe40,_0x121af3){const _0x5af4ef=_0x4fd1;return _0x3d934d[_0x5af4ef(0x1a9)](_0x4afe40,_0x121af3);},'kRbvA':_0x58b9d7(0x189)};this[_0x58b9d7(0x17d)](_0x37b5e8[_0x58b9d7(0x133)],_0x37b5e8[_0x58b9d7(0x17e)])['then'](_0x41f475=>{const _0x5d32d3=_0x58b9d7;selfInfo[_0x5d32d3(0x133)]=_0x37b5e8[_0x5d32d3(0x133)],selfInfo[_0x5d32d3(0x17e)]=_0x37b5e8[_0x5d32d3(0x17e)],napCatConfig['read'](),_0x25dbd7[_0x5d32d3(0x19d)](setLogLevel,napCatConfig[_0x5d32d3(0x1aa)],napCatConfig[_0x5d32d3(0x153)]),_0x25dbd7[_0x5d32d3(0x111)](enableFileLog,napCatConfig[_0x5d32d3(0x12a)]),enableConsoleLog(napCatConfig[_0x5d32d3(0x137)]),_0x25dbd7[_0x5d32d3(0x111)](setLogSelfInfo,selfInfo);const _0x23619e=_0x1b045c['resolve'](this[_0x5d32d3(0x1b1)],'./NapCat/data');_0x47e738[_0x5d32d3(0x173)](_0x23619e,{'recursive':!![]}),_0x25dbd7[_0x5d32d3(0x13a)](logDebug,_0x25dbd7[_0x5d32d3(0x1b0)],_0x23619e),dbUtil['init'](_0x1b045c['resolve'](_0x23619e,'./'+_0x37b5e8[_0x5d32d3(0x133)]+_0x5d32d3(0x18f)))[_0x5d32d3(0x16d)](()=>{const _0x1264e7=_0x5d32d3,_0x148741={'yRmGx':function(_0x246d55,_0x23e59a,_0x14cb44){const _0x5970e9=_0x4fd1;return _0x25dbd7[_0x5970e9(0x13a)](_0x246d55,_0x23e59a,_0x14cb44);}};this[_0x1264e7(0x1a5)](),this[_0x1264e7(0x13e)][_0x1264e7(0x199)](_0x2d8c06=>{new Promise((_0x1760fd,_0x284560)=>{const _0x2f5def=_0x4fd1,_0x4326b8=_0x148741[_0x2f5def(0x19e)](_0x2d8c06,_0x37b5e8[_0x2f5def(0x133)],_0x37b5e8[_0x2f5def(0x17e)]);_0x4326b8 instanceof Promise&&_0x4326b8[_0x2f5def(0x16d)](_0x1760fd)[_0x2f5def(0x158)](_0x284560);})['then']();});})[_0x5d32d3(0x158)](_0x33a7a8=>{const _0x4713fb=_0x5d32d3;logError(_0x4713fb(0x11b),_0x33a7a8);});})['catch'](_0x4c31d2=>{const _0x355f1c=_0x58b9d7;_0x3d934d[_0x355f1c(0x14b)](logError,_0x355f1c(0x159),_0x4c31d2);throw new Error('启动失败:\x20'+JSON[_0x355f1c(0x17a)](_0x4c31d2));});},this['loginListener']['onQRCodeSessionFailed']=(_0x47f49b,_0xff72d3,_0x3a6b18)=>{const _0x261912=_0x473ec0;logError(_0x3d934d[_0x261912(0x11c)],_0x3a6b18),_0x3d934d[_0x261912(0x147)](_0x47f49b,0x1)&&_0x3d934d[_0x261912(0x147)](_0xff72d3,0x3)&&this['loginService']['getQRCodePicture']();},this[_0x473ec0(0x123)][_0x473ec0(0x168)]=_0x4fff2a=>{const _0x3d3c44=_0x473ec0;_0x3d934d[_0x3d3c44(0x14b)](logError,_0x3d934d[_0x3d3c44(0x11c)],_0x4fff2a);},this[_0x473ec0(0x123)]=new Proxy(this[_0x473ec0(0x123)],this[_0x473ec0(0x117)]),this[_0x473ec0(0x12f)][_0x473ec0(0x122)](new _0x51ba84[(_0x473ec0(0x15a))](this[_0x473ec0(0x123)])),this[_0x473ec0(0x13c)]();}get[_0x58fc7e(0x1b1)](){const _0x1376d3=_0x58fc7e,_0x5d71d2={'uQcju':'./.config/QQ'};let _0xd53fa1=this[_0x1376d3(0x19a)][_0x1376d3(0x1ad)]();return!_0xd53fa1&&(_0xd53fa1=_0x1b045c[_0x1376d3(0x179)](_0xdc487b[_0x1376d3(0x1af)](),_0x5d71d2[_0x1376d3(0x18e)]),_0x47e738[_0x1376d3(0x173)](_0xd53fa1,{'recursive':!![]})),_0xd53fa1;}get[_0x58fc7e(0x125)](){const _0x35d2ab=_0x58fc7e;return _0x1b045c['resolve'](this[_0x35d2ab(0x1b1)],'./nt_qq/global');}['initConfig'](){const _0x3e8494=_0x58fc7e,_0x10ad40={'bINfr':_0x3e8494(0x14a)};this[_0x3e8494(0x19b)][_0x3e8494(0x18c)]({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo[_0x3e8494(0x1ae)],'os_version':_0x10ad40[_0x3e8494(0x129)],'use_xlog':!![],'qua':'V1_WIN_NQ_'+qqVersionConfigInfo[_0x3e8494(0x1ae)][_0x3e8494(0x14e)]('-','_')+_0x3e8494(0x112),'global_path_config':{'desktopGlobalPath':this['dataPathGlobal']},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x51ba84[(_0x3e8494(0x15f))](new GlobalAdapter())),this[_0x3e8494(0x12f)][_0x3e8494(0x13c)]({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this['dataPathGlobal'],'clientVer':qqVersionConfigInfo[_0x3e8494(0x1ae)],'hostName':hostname});}[_0x58fc7e(0x17d)](_0x2aacc4,_0xf0a9a8){const _0x446840={'LIAhx':function(_0x40d488,_0xee9e23){return _0x40d488===_0xee9e23;},'fMSto':function(_0x4cafc1,_0x16011f){return _0x4cafc1(_0x16011f);},'tuKuO':function(_0x2c7f4c,_0x480d64){return _0x2c7f4c(_0x480d64);},'trJgr':function(_0x5531d2,_0x1161a5,_0x20f4d1,_0x4da906){return _0x5531d2(_0x1161a5,_0x20f4d1,_0x4da906);},'YFehO':function(_0x5ea03b,_0x110320){return _0x5ea03b(_0x110320);}};return new Promise((_0x1f9cd9,_0x23d23c)=>{const _0x2f7292=_0x4fd1,_0x8d468f=_0x446840[_0x2f7292(0x16e)](genSessionConfig,_0x2aacc4,_0xf0a9a8,this[_0x2f7292(0x1b1)]),_0xd68b47=new SessionListener();_0xd68b47['onSessionInitComplete']=_0x211b7c=>{const _0x2ee7b5=_0x2f7292;if(_0x446840[_0x2ee7b5(0x11f)](_0x211b7c,0x0))return _0x446840['fMSto'](_0x1f9cd9,0x0);_0x446840[_0x2ee7b5(0x10d)](_0x23d23c,_0x211b7c);},this[_0x2f7292(0x13b)]['init'](_0x8d468f,new _0x51ba84['NodeIDependsAdapter'](new DependsAdapter()),new _0x51ba84[(_0x2f7292(0x12d))](new DispatcherAdapter()),new _0x51ba84[(_0x2f7292(0x155))](_0xd68b47));try{this['session'][_0x2f7292(0x14d)](0x0);}catch(_0x3b1b14){try{this[_0x2f7292(0x13b)]['startNT']();}catch(_0x1062fa){_0x446840['YFehO'](_0x23d23c,_0x2f7292(0x16a)+_0x1062fa);}}});}['initDataListener'](){const _0x3d31f6=_0x58fc7e,_0x1e9b28={'sHydt':function(_0x4c26c1,_0x475073){return _0x4c26c1===_0x475073;},'Tkdkz':'账号设备(','eNlaE':function(_0x1c8bcb,_0x278c4a){return _0x1c8bcb(_0x278c4a);},'eSTeG':function(_0x74a3b7,_0x75a38){return _0x74a3b7+_0x75a38;},'lJQEM':function(_0x2aabd6,_0x150217){return _0x2aabd6/_0x150217;},'nmXAt':function(_0x191b8d,_0x25c50c){return _0x191b8d/_0x25c50c;},'JwTcQ':function(_0x5a14b2,_0x100afb){return _0x5a14b2===_0x100afb;}},_0x329dbb=new MsgListener();_0x329dbb['onLineDev']=_0x514b64=>{const _0x3ab86c=_0x4fd1;_0x514b64[_0x3ab86c(0x199)](_0x2d608b=>{const _0x560f92=_0x3ab86c;_0x1e9b28[_0x560f92(0x152)](_0x2d608b['clientType'],0x2)&&log(_0x1e9b28[_0x560f92(0x148)]+_0x2d608b[_0x560f92(0x146)]+_0x560f92(0x10c));});},_0x329dbb[_0x3d31f6(0x1a3)]=_0x35c85b=>{const _0x310285=_0x3d31f6;_0x1e9b28['eNlaE'](log,_0x1e9b28['eSTeG'](_0x1e9b28['eSTeG'](_0x1e9b28[_0x310285(0x1b8)]('[KickedOffLine]\x20[',_0x35c85b[_0x310285(0x11d)]),']\x20'),_0x35c85b[_0x310285(0x15c)]));},_0x329dbb[_0x3d31f6(0x116)]=_0x26b951=>{const _0x993760=_0x3d31f6;stat['packet_received']+=0x1,_0x26b951[_0x993760(0x199)](_0x5dcf6a=>{const _0x54c51c=_0x993760;_0x5dcf6a[_0x54c51c(0x154)]==='0'?dbUtil[_0x54c51c(0x113)](_0x5dcf6a)[_0x54c51c(0x16d)]()[_0x54c51c(0x158)]():dbUtil[_0x54c51c(0x1a1)](_0x5dcf6a[_0x54c51c(0x185)])['then'](_0x5bab89=>{const _0x50e6c2=_0x54c51c;_0x5bab89&&(_0x5bab89['recallTime']=_0x5dcf6a['recallTime'],dbUtil['updateMsg'](_0x5bab89)[_0x50e6c2(0x16d)]());});});},_0x329dbb[_0x3d31f6(0x161)]=_0xe44b4a=>{const _0x4a1a77=_0x3d31f6;stat[_0x4a1a77(0x135)]+=0x1,stat[_0x4a1a77(0x188)]+=0x1,stat[_0x4a1a77(0x167)]=Math[_0x4a1a77(0x197)](_0x1e9b28[_0x4a1a77(0x165)](Date['now'](),0x3e8));},_0x329dbb[_0x3d31f6(0x181)]=_0x5535e6=>{const _0x3dbf78=_0x3d31f6;stat[_0x3dbf78(0x114)]+=0x1,stat[_0x3dbf78(0x1b2)]+=_0x5535e6['length'],stat[_0x3dbf78(0x167)]=Math[_0x3dbf78(0x197)](_0x1e9b28['nmXAt'](Date[_0x3dbf78(0x143)](),0x3e8));},_0x329dbb[_0x3d31f6(0x121)]=(..._0x517a44)=>{const _0x14c2dc=_0x3d31f6;stat[_0x14c2dc(0x114)]+=0x1;},this[_0x3d31f6(0x1a8)](_0x329dbb);const _0x1d371a=new BuddyListener();_0x1d371a[_0x3d31f6(0x124)]=_0x279f66=>{const _0x2695b6=_0x3d31f6;rawFriends[_0x2695b6(0x141)]=0x0,rawFriends[_0x2695b6(0x130)](..._0x279f66);for(const _0x502cc6 of _0x279f66){for(const _0x5ea680 of _0x502cc6[_0x2695b6(0x1ab)]){const _0x404030=friends[_0x2695b6(0x1b3)](_0x5ea680['uid']);uid2UinMap[_0x5ea680['uid']]=_0x5ea680[_0x2695b6(0x133)],_0x404030?Object[_0x2695b6(0x178)](_0x404030,_0x5ea680):friends[_0x2695b6(0x120)](_0x5ea680[_0x2695b6(0x17e)],_0x5ea680);}}},this[_0x3d31f6(0x1a8)](_0x1d371a),this['session'][_0x3d31f6(0x1a7)]()[_0x3d31f6(0x184)](!![])[_0x3d31f6(0x16d)](_0x53b0b8=>{});const _0x1cd3cd=new ProfileListener();_0x1cd3cd[_0x3d31f6(0x19c)]=_0x34be5c=>{const _0x52efcc=_0x3d31f6;_0x1e9b28[_0x52efcc(0x196)](_0x34be5c[_0x52efcc(0x17e)],selfInfo[_0x52efcc(0x17e)])&&Object[_0x52efcc(0x178)](selfInfo,_0x34be5c);},_0x1cd3cd[_0x3d31f6(0x118)]=_0x560bc9=>{},this['addListener'](_0x1cd3cd);const _0x2d634d=new GroupListener();_0x2d634d[_0x3d31f6(0x132)]=(_0x219a1a,_0x36c3ff)=>{_0x36c3ff['map'](_0x55b05e=>{const _0x58f510=_0x4fd1,_0x274a34=groups[_0x58f510(0x1b3)](_0x55b05e[_0x58f510(0x14f)]);if(_0x274a34)Object[_0x58f510(0x178)](_0x274a34,_0x55b05e);else{groups[_0x58f510(0x120)](_0x55b05e[_0x58f510(0x14f)],_0x55b05e);const _0x116e5d=this[_0x58f510(0x13b)][_0x58f510(0x13d)]()[_0x58f510(0x12c)](_0x55b05e[_0x58f510(0x14f)],_0x58f510(0x191));this[_0x58f510(0x13b)][_0x58f510(0x13d)]()['getNextMemberList'](_0x116e5d,undefined,0xbb8)[_0x58f510(0x16d)](_0x4eac6e=>{});}});},_0x2d634d[_0x3d31f6(0x14c)]=_0xd36c36=>{const _0xca4be3=_0x3d31f6,_0x38bf71=_0xd36c36[_0xca4be3(0x172)][_0xca4be3(0x190)]('_')[0x0];if(groupMembers['has'](_0x38bf71)){const _0x23e09a=groupMembers[_0xca4be3(0x1b3)](_0x38bf71);_0xd36c36[_0xca4be3(0x19f)][_0xca4be3(0x151)]((_0xf30185,_0x52b071)=>{const _0xa79f07=_0xca4be3,_0x567346=_0x23e09a[_0xa79f07(0x1b3)](_0x52b071);_0x567346?Object[_0xa79f07(0x178)](_0x567346,_0xf30185):_0x23e09a[_0xa79f07(0x120)](_0x52b071,_0xf30185);});}else groupMembers['set'](_0x38bf71,_0xd36c36[_0xca4be3(0x19f)]);},_0x2d634d[_0x3d31f6(0x127)]=(_0x463c00,_0x487024,_0x17b06d)=>{const _0x75e64b=_0x3d31f6;_0x17b06d[_0x75e64b(0x151)]((_0x558bc8,_0x69e073)=>{const _0x15fccf=_0x75e64b;uid2UinMap[_0x69e073]=_0x558bc8[_0x15fccf(0x133)];});const _0x23e828=groupMembers[_0x75e64b(0x1b3)](_0x463c00);_0x23e828?_0x17b06d['forEach']((_0x422692,_0x5eeae3)=>{const _0x397ff4=_0x75e64b,_0x1f921a=_0x23e828[_0x397ff4(0x1b3)](_0x5eeae3);_0x1f921a?Object['assign'](_0x1f921a,_0x422692):_0x23e828[_0x397ff4(0x120)](_0x5eeae3,_0x422692);}):groupMembers[_0x75e64b(0x120)](_0x463c00,_0x17b06d);},this['addListener'](_0x2d634d);}[_0x58fc7e(0x1a8)](_0x47b629){const _0x542c76=_0x58fc7e,_0x2700b2={'fAXjD':_0x542c76(0x162),'CjzUu':'GroupListener','DfzqQ':_0x542c76(0x1a2)};_0x47b629=new Proxy(_0x47b629,this[_0x542c76(0x117)]);switch(_0x47b629['constructor'][_0x542c76(0x128)]){case _0x2700b2[_0x542c76(0x1b9)]:{return this[_0x542c76(0x13b)][_0x542c76(0x1a7)]()[_0x542c76(0x192)](new _0x51ba84['NodeIKernelBuddyListener'](_0x47b629));}case _0x2700b2[_0x542c76(0x182)]:{return this[_0x542c76(0x13b)]['getGroupService']()[_0x542c76(0x1bb)](new _0x51ba84['NodeIKernelGroupListener'](_0x47b629));}case'MsgListener':{return this['session'][_0x542c76(0x10b)]()[_0x542c76(0x175)](new _0x51ba84[(_0x542c76(0x16c))](_0x47b629));}case _0x2700b2['DfzqQ']:{return this[_0x542c76(0x13b)][_0x542c76(0x187)]()['addKernelProfileListener'](new _0x51ba84[(_0x542c76(0x10f))](_0x47b629));}default:return-0x1;}}[_0x58fc7e(0x12e)](_0x1bfd48){const _0x465a75=_0x58fc7e;this[_0x465a75(0x13e)][_0x465a75(0x130)](_0x1bfd48);}async[_0x58fc7e(0x1a4)](_0x1f31d6){const _0x1c7e4e=_0x58fc7e,_0x226080={'XhpQw':function(_0x2a86a2,_0x510ad5){return _0x2a86a2!==_0x510ad5;},'tBPQz':_0x1c7e4e(0x134),'apkfy':function(_0x5de23a,_0x5391bf){return _0x5de23a+_0x5391bf;},'GgBrC':_0x1c7e4e(0x1a0)},_0xc3ca55=await this['loginService'][_0x1c7e4e(0x1b5)]();if(_0x226080['XhpQw'](_0xc3ca55[_0x1c7e4e(0x142)],0x0))throw new Error(_0x226080['tBPQz']);const _0x2c2dd2=_0xc3ca55[_0x1c7e4e(0x1b4)][_0x1c7e4e(0x11a)](_0x7a6000=>_0x7a6000[_0x1c7e4e(0x133)]===_0x1f31d6);if(!_0x2c2dd2||!_0x2c2dd2?.[_0x1c7e4e(0x110)])throw new Error(_0x1f31d6+_0x1c7e4e(0x1b7));await sleep(0x3e8);const _0x19e3db=await this['loginService'][_0x1c7e4e(0x11e)](_0x1f31d6);if(!_0x19e3db['result'])throw new Error(_0x226080['apkfy'](_0x226080[_0x1c7e4e(0x193)],_0x19e3db['loginErrorInfo']['errMsg']));return _0x19e3db;}async[_0x58fc7e(0x18a)](_0x359942){const _0x12744a={'hsJjQ':'data:image/png;base64,','MvCga':'base64','FViwx':function(_0x2f62ae,_0x54655a,_0x5e7511,_0x31c916){return _0x2f62ae(_0x54655a,_0x5e7511,_0x31c916);}};return new Promise((_0xea5c9e,_0x5664f5)=>{const _0x5669bc=_0x4fd1;this[_0x5669bc(0x123)][_0x5669bc(0x144)]=_0x47371d=>{const _0x3facc4=_0x5669bc,_0xbceba2=_0x47371d[_0x3facc4(0x138)]['split'](_0x12744a[_0x3facc4(0x10e)])[0x1],_0x29a8c4=Buffer[_0x3facc4(0x157)](_0xbceba2,_0x12744a[_0x3facc4(0x177)]);_0x12744a['FViwx'](_0x359942,_0x47371d[_0x3facc4(0x1ba)],_0x47371d['pngBase64QrcodeData'],_0x29a8c4);},this[_0x5669bc(0x12f)]['getQRCodePicture']();});}async[_0x58fc7e(0x169)](_0x376d1a,_0x31076d,_0x4f62d5,_0x5f5a68,_0x504e24){const _0x2d7f98=_0x58fc7e,_0x23ed7a={'BEfmP':_0x2d7f98(0x140),'DQDBd':_0x2d7f98(0x1a6),'pgBYJ':function(_0x5f3dba,_0x3ffdb4){return _0x5f3dba&&_0x3ffdb4;},'oHOOS':function(_0x594864,_0xf6d5d3){return _0x594864||_0xf6d5d3;},'wZPDn':function(_0xc7096e,_0x1090d4){return _0xc7096e||_0x1090d4;},'cPVBR':function(_0x49b4a5,_0x4f9d60){return _0x49b4a5||_0x4f9d60;},'JNFMN':function(_0x2aba5f,_0x5baded){return _0x2aba5f(_0x5baded);},'gniBy':_0x2d7f98(0x17f)},_0x247acf=_0x22e44c[_0x2d7f98(0x170)](_0x23ed7a[_0x2d7f98(0x164)])[_0x2d7f98(0x195)](_0x31076d)['digest'](_0x23ed7a[_0x2d7f98(0x136)]),_0x39f0ed={'uin':_0x376d1a,'passwordMd5':_0x247acf,'step':_0x23ed7a[_0x2d7f98(0x180)](_0x4f62d5,_0x5f5a68)&&_0x504e24?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x23ed7a[_0x2d7f98(0x163)](_0x4f62d5,''),'proofWaterRand':_0x23ed7a[_0x2d7f98(0x15b)](_0x5f5a68,''),'proofWaterSid':_0x23ed7a[_0x2d7f98(0x139)](_0x504e24,'')};await this['loginService'][_0x2d7f98(0x1b5)](),await _0x23ed7a[_0x2d7f98(0x17b)](sleep,0x3e8);const _0x2d0241=await this['loginService'][_0x2d7f98(0x169)](_0x39f0ed);switch(_0x2d0241[_0x2d7f98(0x142)]){case'0':{break;}case _0x23ed7a[_0x2d7f98(0x1ac)]:{break;}case'4':case _0x2d7f98(0x18b):default:}}async['getQuickLoginList'](){const _0xbd861d=_0x58fc7e,_0x12f564=await this['loginService'][_0xbd861d(0x1b5)]();return _0x12f564;}}export const napCatCore=new NapCatCore(); \ No newline at end of file diff --git a/src/core.lib/src/data.d.ts b/src/core.lib/src/data.d.ts index a1865e96..ccc3c744 100644 --- a/src/core.lib/src/data.d.ts +++ b/src/core.lib/src/data.d.ts @@ -1,4 +1,4 @@ -import { type Friend, type FriendRequest, type Group, type GroupMember, GroupNotify, type SelfInfo, buddyCategorType } from './entities'; +import { type Friend, type FriendRequest, type Group, type GroupMember, GroupNotify, type SelfInfo, BuddyCategoryType } from './entities'; import { WebApiGroupMember } from '@/core/apis'; export declare const Credentials: { Skey: string; @@ -29,9 +29,7 @@ export declare function getGroupMember(groupQQ: string | number, memberUinOrUid: export declare const uid2UinMap: Record; export declare function getUidByUin(uin: string): string | undefined; export declare const tempGroupCodeMap: Record; -export declare const buddyCategory: { - data: Array; -}; +export declare const rawFriends: Array; export declare const stat: { packet_received: number; packet_sent: number; diff --git a/src/core.lib/src/data.js b/src/core.lib/src/data.js index 97e6a38b..cae5f21b 100644 --- a/src/core.lib/src/data.js +++ b/src/core.lib/src/data.js @@ -1 +1 @@ -const _0x1e1691=_0x56fd;(function(_0x49f99e,_0x2745f5){const _0x1a23a7=_0x56fd,_0x1060c7=_0x49f99e();while(!![]){try{const _0x504bdd=parseInt(_0x1a23a7(0x18e))/0x1+-parseInt(_0x1a23a7(0x18a))/0x2*(-parseInt(_0x1a23a7(0x18f))/0x3)+parseInt(_0x1a23a7(0x191))/0x4*(parseInt(_0x1a23a7(0x192))/0x5)+-parseInt(_0x1a23a7(0x190))/0x6+-parseInt(_0x1a23a7(0x194))/0x7*(parseInt(_0x1a23a7(0x18b))/0x8)+parseInt(_0x1a23a7(0x199))/0x9*(-parseInt(_0x1a23a7(0x18c))/0xa)+-parseInt(_0x1a23a7(0x193))/0xb*(-parseInt(_0x1a23a7(0x189))/0xc);if(_0x504bdd===_0x2745f5)break;else _0x1060c7['push'](_0x1060c7['shift']());}catch(_0x1ebb61){_0x1060c7['push'](_0x1060c7['shift']());}}}(_0x5316,0x6a5cb));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0,'PskeyData':new Map(),'PskeyTime':new Map()};export const WebGroupData={'GroupData':new Map(),'GroupTime':new Map()};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x5e93a6){const _0x4f8712=_0x56fd;groups[_0x4f8712(0x185)](_0x5e93a6),groupMembers['delete'](_0x5e93a6);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0x1e1691(0x196)};export async function getFriend(_0x27efe5){const _0x33c206=_0x1e1691,_0x7789a3={'nNEPR':function(_0x3fc280,_0x599888){return _0x3fc280(_0x599888);}};_0x27efe5=_0x27efe5[_0x33c206(0x186)]();if(_0x7789a3['nNEPR'](isNumeric,_0x27efe5)){const _0x10f3bb=Array['from'](friends[_0x33c206(0x188)]());return _0x10f3bb[_0x33c206(0x195)](_0x2c860a=>_0x2c860a[_0x33c206(0x198)]===_0x27efe5);}else return friends[_0x33c206(0x197)](_0x27efe5);}function _0x56fd(_0x27959f,_0x341440){const _0x531661=_0x5316();return _0x56fd=function(_0x56fdd4,_0x39c55a){_0x56fdd4=_0x56fdd4-0x185;let _0x3619a7=_0x531661[_0x56fdd4];return _0x3619a7;},_0x56fd(_0x27959f,_0x341440);}export async function getGroup(_0x59b2e7){const _0xcbf093=_0x1e1691;let _0xf18ce=groups[_0xcbf093(0x197)](_0x59b2e7[_0xcbf093(0x186)]());if(!_0xf18ce)try{const _0x573b00=await NTQQGroupApi['getGroups']();_0x573b00[_0xcbf093(0x18d)]&&_0x573b00['forEach'](_0x4200b3=>{groups['set'](_0x4200b3['groupCode'],_0x4200b3);});}catch(_0x44730c){return undefined;}return _0xf18ce=groups['get'](_0x59b2e7[_0xcbf093(0x186)]()),_0xf18ce;}export async function getGroupMember(_0x3a66d2,_0x4492af){const _0x355122=_0x1e1691,_0x38f614={'jQRNe':function(_0x59b7ff,_0x3ce099){return _0x59b7ff(_0x3ce099);},'TfVNb':function(_0x44d66d){return _0x44d66d();}};_0x3a66d2=_0x3a66d2['toString'](),_0x4492af=_0x4492af[_0x355122(0x186)]();let _0x33109e=groupMembers[_0x355122(0x197)](_0x3a66d2);if(!_0x33109e)try{_0x33109e=await NTQQGroupApi['getGroupMembers'](_0x3a66d2),groupMembers['set'](_0x3a66d2,_0x33109e);}catch(_0x35cbd5){return null;}const _0x322631=()=>{const _0x2ff87d=_0x355122;let _0xaade58=undefined;return _0x38f614['jQRNe'](isNumeric,_0x4492af)?_0xaade58=Array[_0x2ff87d(0x187)](_0x33109e[_0x2ff87d(0x188)]())[_0x2ff87d(0x195)](_0x2d0432=>_0x2d0432[_0x2ff87d(0x198)]===_0x4492af):_0xaade58=_0x33109e[_0x2ff87d(0x197)](_0x4492af),_0xaade58;};let _0x4204fd=_0x322631();return!_0x4204fd&&(_0x33109e=await NTQQGroupApi['getGroupMembers'](_0x3a66d2),_0x4204fd=_0x38f614['TfVNb'](_0x322631)),_0x4204fd;}export const uid2UinMap={};export function getUidByUin(_0x4dba34){const _0x1f4b0c={'ksdLV':function(_0x39382b,_0x5df4ff){return _0x39382b===_0x5df4ff;}};for(const _0x592471 in uid2UinMap){if(_0x1f4b0c['ksdLV'](uid2UinMap[_0x592471],_0x4dba34))return _0x592471;}}function _0x5316(){const _0x1ea578=['NapCat未能正常启动,请检查日志查看错误','get','uin','2064447iPClqn','delete','toString','from','values','9283644sNoFIw','2lfdvXw','362744Sxvapd','30bKrJeT','length','276480zCjlea','1376409bzqGcw','2356074JBrtSq','116AFqoph','87300LrNQlX','11dJdptn','77uMksUZ','find'];_0x5316=function(){return _0x1ea578;};return _0x5316();}export const tempGroupCodeMap={};export const buddyCategory={'data':[]};export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0}; \ No newline at end of file +const _0x2d6aac=_0x544d;(function(_0x1fca09,_0x1f4cbe){const _0x28bb4b=_0x544d,_0x4b01d8=_0x1fca09();while(!![]){try{const _0x173e1d=parseInt(_0x28bb4b(0x144))/0x1*(-parseInt(_0x28bb4b(0x142))/0x2)+-parseInt(_0x28bb4b(0x13a))/0x3+-parseInt(_0x28bb4b(0x131))/0x4*(-parseInt(_0x28bb4b(0x139))/0x5)+parseInt(_0x28bb4b(0x148))/0x6*(parseInt(_0x28bb4b(0x13d))/0x7)+parseInt(_0x28bb4b(0x141))/0x8*(parseInt(_0x28bb4b(0x137))/0x9)+-parseInt(_0x28bb4b(0x138))/0xa*(-parseInt(_0x28bb4b(0x146))/0xb)+-parseInt(_0x28bb4b(0x136))/0xc;if(_0x173e1d===_0x1f4cbe)break;else _0x4b01d8['push'](_0x4b01d8['shift']());}catch(_0x713681){_0x4b01d8['push'](_0x4b01d8['shift']());}}}(_0x4934,0x49778));import{isNumeric}from'@/common/utils/helper';function _0x544d(_0x3ff1a7,_0x3d9592){const _0x49343d=_0x4934();return _0x544d=function(_0x544d36,_0x44f925){_0x544d36=_0x544d36-0x130;let _0x511bca=_0x49343d[_0x544d36];return _0x511bca;},_0x544d(_0x3ff1a7,_0x3d9592);}function _0x4934(){const _0x18a6ef=['toString','18UAfkdH','getGroupMembers','delete','rTamj','from','4jtEtZN','find','values','uin','get','1065480crFqrw','18aCQlnH','110qkokpP','1279185eMSDBa','1033308VAPsnw','NapCat未能正常启动,请检查日志查看错误','getGroups','1277927eUBmVY','length','set','iqHLH','70728RoSdEy','78598xzbXIW','scilL','5eqyiDB','groupCode','109439NXKjmJ'];_0x4934=function(){return _0x18a6ef;};return _0x4934();}import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0,'PskeyData':new Map(),'PskeyTime':new Map()};export const WebGroupData={'GroupData':new Map(),'GroupTime':new Map()};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x4c3d01){const _0x4480a7=_0x544d;groups[_0x4480a7(0x14a)](_0x4c3d01),groupMembers['delete'](_0x4c3d01);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0x2d6aac(0x13b)};export async function getFriend(_0x25fc47){const _0x269cb6=_0x2d6aac,_0x29d265={'iqHLH':function(_0x51e01b,_0x4427c0){return _0x51e01b(_0x4427c0);}};_0x25fc47=_0x25fc47[_0x269cb6(0x147)]();if(_0x29d265[_0x269cb6(0x140)](isNumeric,_0x25fc47)){const _0xdfb45c=Array[_0x269cb6(0x130)](friends[_0x269cb6(0x133)]());return _0xdfb45c['find'](_0x4ce639=>_0x4ce639[_0x269cb6(0x134)]===_0x25fc47);}else return friends[_0x269cb6(0x135)](_0x25fc47);}export async function getGroup(_0x588c2c){const _0x479346=_0x2d6aac;let _0x51326f=groups[_0x479346(0x135)](_0x588c2c[_0x479346(0x147)]());if(!_0x51326f)try{const _0x2bbc81=await NTQQGroupApi[_0x479346(0x13c)]();_0x2bbc81[_0x479346(0x13e)]&&_0x2bbc81['forEach'](_0x369ea7=>{const _0x25eec5=_0x479346;groups[_0x25eec5(0x13f)](_0x369ea7[_0x25eec5(0x145)],_0x369ea7);});}catch(_0x291bf1){return undefined;}return _0x51326f=groups[_0x479346(0x135)](_0x588c2c[_0x479346(0x147)]()),_0x51326f;}export async function getGroupMember(_0x30533d,_0x15644f){const _0x552be2=_0x2d6aac,_0x5d3591={'rTamj':function(_0x58d0fa,_0x27f871){return _0x58d0fa(_0x27f871);},'scilL':function(_0x2fba63){return _0x2fba63();}};_0x30533d=_0x30533d[_0x552be2(0x147)](),_0x15644f=_0x15644f[_0x552be2(0x147)]();let _0x5289cc=groupMembers[_0x552be2(0x135)](_0x30533d);if(!_0x5289cc)try{_0x5289cc=await NTQQGroupApi[_0x552be2(0x149)](_0x30533d),groupMembers[_0x552be2(0x13f)](_0x30533d,_0x5289cc);}catch(_0x50cc8a){return null;}const _0x43aa11=()=>{const _0x199bc7=_0x552be2;let _0x5c8a6c=undefined;return _0x5d3591[_0x199bc7(0x14b)](isNumeric,_0x15644f)?_0x5c8a6c=Array['from'](_0x5289cc[_0x199bc7(0x133)]())[_0x199bc7(0x132)](_0x302a23=>_0x302a23[_0x199bc7(0x134)]===_0x15644f):_0x5c8a6c=_0x5289cc['get'](_0x15644f),_0x5c8a6c;};let _0x25d10e=_0x5d3591['scilL'](_0x43aa11);return!_0x25d10e&&(_0x5289cc=await NTQQGroupApi[_0x552be2(0x149)](_0x30533d),_0x25d10e=_0x5d3591[_0x552be2(0x143)](_0x43aa11)),_0x25d10e;}export const uid2UinMap={};export function getUidByUin(_0x77d83f){for(const _0x4737ff in uid2UinMap){if(uid2UinMap[_0x4737ff]===_0x77d83f)return _0x4737ff;}}export const tempGroupCodeMap={};export const rawFriends=[];export const stat={'packet_received':0x0,'packet_sent':0x0,'message_received':0x0,'message_sent':0x0,'last_message_time':0x0,'disconnect_times':0x0,'lost_times':0x0,'packet_lost':0x0}; \ No newline at end of file diff --git a/src/core.lib/src/entities/cache.js b/src/core.lib/src/entities/cache.js index d85d6f66..17ac1a7d 100644 --- a/src/core.lib/src/entities/cache.js +++ b/src/core.lib/src/entities/cache.js @@ -1 +1 @@ -function _0x5c38(_0x3e492c,_0x1be80e){var _0x1473ff=_0x1473();return _0x5c38=function(_0x5c3837,_0x16826d){_0x5c3837=_0x5c3837-0x14c;var _0x1a9e41=_0x1473ff[_0x5c3837];return _0x1a9e41;},_0x5c38(_0x3e492c,_0x1be80e);}(function(_0x4c048b,_0x1014b8){var _0x176e28=_0x5c38,_0x4e7ccf=_0x4c048b();while(!![]){try{var _0x17a43e=-parseInt(_0x176e28(0x15a))/0x1*(-parseInt(_0x176e28(0x155))/0x2)+-parseInt(_0x176e28(0x14c))/0x3+-parseInt(_0x176e28(0x157))/0x4*(-parseInt(_0x176e28(0x152))/0x5)+parseInt(_0x176e28(0x153))/0x6+parseInt(_0x176e28(0x14d))/0x7*(parseInt(_0x176e28(0x159))/0x8)+-parseInt(_0x176e28(0x158))/0x9*(-parseInt(_0x176e28(0x156))/0xa)+-parseInt(_0x176e28(0x15c))/0xb;if(_0x17a43e===_0x1014b8)break;else _0x4e7ccf['push'](_0x4e7ccf['shift']());}catch(_0x4a3255){_0x4e7ccf['push'](_0x4e7ccf['shift']());}}}(_0x1473,0x8824f));function _0x1473(){var _0x12a4fc=['ccZUD','740LRCyhs','1898646RIfUgf','IMAGE','37330GVABdk','230qQhwtd','26032eNiIbu','172665mImGEl','27080tXAIVO','13uYdLxJ','OTHER','15549556BiUwRi','VIDEO','split','3|0|2|4|1','DOCUMENT','1561026pEqYjo','1092cWIxiY','AUDIO','EVsjN','odRmr'];_0x1473=function(){return _0x12a4fc;};return _0x1473();}export var CacheFileType;(function(_0x2f5be1){var _0x3f111c=_0x5c38,_0x108d91={'zqkbp':_0x3f111c(0x15d),'odRmr':_0x3f111c(0x15b),'EVsjN':_0x3f111c(0x14e),'ccZUD':_0x3f111c(0x160)},_0x39bbca=_0x3f111c(0x15f)[_0x3f111c(0x15e)]('|'),_0x3b17ee=0x0;while(!![]){switch(_0x39bbca[_0x3b17ee++]){case'0':_0x2f5be1[_0x2f5be1[_0x108d91['zqkbp']]=0x1]=_0x108d91['zqkbp'];continue;case'1':_0x2f5be1[_0x2f5be1[_0x108d91[_0x3f111c(0x150)]]=0x4]=_0x108d91[_0x3f111c(0x150)];continue;case'2':_0x2f5be1[_0x2f5be1[_0x108d91[_0x3f111c(0x14f)]]=0x2]=_0x3f111c(0x14e);continue;case'3':_0x2f5be1[_0x2f5be1[_0x3f111c(0x154)]=0x0]=_0x3f111c(0x154);continue;case'4':_0x2f5be1[_0x2f5be1[_0x108d91[_0x3f111c(0x151)]]=0x3]=_0x3f111c(0x160);continue;}break;}}(CacheFileType||(CacheFileType={}))); \ No newline at end of file +function _0xba8a(){var _0x20f693=['7367244mXEVxV','4710cJocPO','uTDng','357897gXIOzN','4DDPQoN','871416IKcyZF','DOCUMENT','muxkU','AjKNb','94zTtmrt','9oNhhrj','742248TVQvrv','1|2|0|3|4','OTHER','VIDEO','AUDIO','914dGorUb','33KQwYZR','DKZTo','VlfAT','1060dUzuDA','958090ChPUsh'];_0xba8a=function(){return _0x20f693;};return _0xba8a();}(function(_0x55a1e8,_0x169950){var _0x139f96=_0x14e1,_0x295222=_0x55a1e8();while(!![]){try{var _0x357c52=parseInt(_0x139f96(0x1bf))/0x1*(parseInt(_0x139f96(0x1c6))/0x2)+-parseInt(_0x139f96(0x1b9))/0x3*(parseInt(_0x139f96(0x1ba))/0x4)+parseInt(_0x139f96(0x1ca))/0x5*(parseInt(_0x139f96(0x1b7))/0x6)+-parseInt(_0x139f96(0x1bb))/0x7+parseInt(_0x139f96(0x1c1))/0x8*(-parseInt(_0x139f96(0x1c0))/0x9)+-parseInt(_0x139f96(0x1cb))/0xa*(parseInt(_0x139f96(0x1c7))/0xb)+parseInt(_0x139f96(0x1cc))/0xc;if(_0x357c52===_0x169950)break;else _0x295222['push'](_0x295222['shift']());}catch(_0x18d025){_0x295222['push'](_0x295222['shift']());}}}(_0xba8a,0x30a98));;export var CacheFileType;function _0x14e1(_0x2c5c7c,_0xbc69bc){var _0xba8a78=_0xba8a();return _0x14e1=function(_0x14e121,_0xa17195){_0x14e121=_0x14e121-0x1b7;var _0x30c7ee=_0xba8a78[_0x14e121];return _0x30c7ee;},_0x14e1(_0x2c5c7c,_0xbc69bc);}(function(_0x35259c){var _0x3fe19d=_0x14e1,_0x22c8e7={'DKZTo':_0x3fe19d(0x1c2),'uTDng':_0x3fe19d(0x1c5),'AjKNb':'IMAGE','VlfAT':_0x3fe19d(0x1c4),'muxkU':'DOCUMENT','ntTyr':_0x3fe19d(0x1c3)},_0x156e60=_0x22c8e7[_0x3fe19d(0x1c8)]['split']('|'),_0x20b97a=0x0;while(!![]){switch(_0x156e60[_0x20b97a++]){case'0':_0x35259c[_0x35259c[_0x22c8e7[_0x3fe19d(0x1b8)]]=0x2]=_0x22c8e7[_0x3fe19d(0x1b8)];continue;case'1':_0x35259c[_0x35259c[_0x22c8e7['AjKNb']]=0x0]=_0x22c8e7[_0x3fe19d(0x1be)];continue;case'2':_0x35259c[_0x35259c[_0x22c8e7[_0x3fe19d(0x1c9)]]=0x1]=_0x22c8e7['VlfAT'];continue;case'3':_0x35259c[_0x35259c[_0x3fe19d(0x1bc)]=0x3]=_0x22c8e7[_0x3fe19d(0x1bd)];continue;case'4':_0x35259c[_0x35259c[_0x22c8e7['ntTyr']]=0x4]=_0x3fe19d(0x1c3);continue;}break;}}(CacheFileType||(CacheFileType={}))); \ No newline at end of file diff --git a/src/core.lib/src/entities/constructor.js b/src/core.lib/src/entities/constructor.js index 3dd18050..755f1936 100644 --- a/src/core.lib/src/entities/constructor.js +++ b/src/core.lib/src/entities/constructor.js @@ -1 +1 @@ -const _0x29a23d=_0x5e97;function _0x5e97(_0x37c7b5,_0x462fcd){const _0x1a0790=_0x1a07();return _0x5e97=function(_0x5e97e0,_0x17aff8){_0x5e97e0=_0x5e97e0-0x10e;let _0x3c6ae2=_0x1a0790[_0x5e97e0];return _0x3c6ae2;},_0x5e97(_0x37c7b5,_0x462fcd);}(function(_0xf68683,_0x1cf197){const _0x2b57de=_0x5e97,_0x478d19=_0xf68683();while(!![]){try{const _0x4190af=-parseInt(_0x2b57de(0x127))/0x1+-parseInt(_0x2b57de(0x14e))/0x2+-parseInt(_0x2b57de(0x112))/0x3+-parseInt(_0x2b57de(0x11e))/0x4+parseInt(_0x2b57de(0x121))/0x5+-parseInt(_0x2b57de(0x147))/0x6+-parseInt(_0x2b57de(0x13e))/0x7*(-parseInt(_0x2b57de(0x12a))/0x8);if(_0x4190af===_0x1cf197)break;else _0x478d19['push'](_0x478d19['shift']());}catch(_0x4344cf){_0x478d19['push'](_0x478d19['shift']());}}}(_0x1a07,0xdbf67));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x471ae7}from'node:fs';import _0x233586 from'fluent-ffmpeg';import{NTQQFileApi}from'@/core/apis/file';import{calculateFileMD5,isGIF}from'@/common/utils/file';import{logDebug,logError}from'@/common/utils/log';import{defaultVideoThumb,getVideoInfo}from'@/common/utils/video';function _0x1a07(){const _0x4bef7c=['DKimB','join','KkKox','wTwHj','FACE','end','size','BxOEW','set','tpUxm','error','语音转换失败,\x20请检查语音文件是否正常','ark','jpg','uploadFile','replace','copyFile','text','XwPUY','normal','getImageSize','[包剪锤]','vTSHE','[骰子]','3828309GxHUbJ','markdown','_0.png','lKWTn','video','[商城表情]','stat','screenshots','eacWj','VIDEO','RwGnD','gif','3787020zQdsmi','JVmmO','mface','7208405WksyXM','图片信息','COEMI','toString','iIUoc','wXXzb','221157WYiGfH','get','dirname','209784qxdUkE','rps','unlink','SbHOl','pic','width','nxMBT','KAVcz','ptt','MARKDOWN','文件异常,大小为0','catch','获取视频封面失败,使用默认封面','path','string','reply','xlccH','sep','file','notAt','1099oVKHDm','ARK','then','xtSWX','ocwHX','LrSYk','dice','mp4','HVLcA','2504400KSTijk','TEXT','rMRpy','Thumb','height','RPS','PFHof','3592620kVeXVb','SpOsP','FILE','REPLY','PIC','视频信息'];_0x1a07=function(){return _0x4bef7c;};return _0x1a07();}import{encodeSilk}from'@/common/utils/audio';export const mFaceCache=new Map();export class SendMsgElementConstructor{static[_0x29a23d(0x165)](_0xb025f5){const _0x3e1193=_0x29a23d;return{'elementType':ElementType[_0x3e1193(0x148)],'elementId':'','textElement':{'content':_0xb025f5,'atType':AtType[_0x3e1193(0x13d)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x430e1f,_0x5066b2,_0x349c0f,_0x1a6579){const _0x37428e=_0x29a23d;return{'elementType':ElementType[_0x37428e(0x148)],'elementId':'','textElement':{'content':'@'+_0x1a6579,'atType':_0x349c0f,'atUid':_0x430e1f,'atTinyId':'','atNtUid':_0x5066b2}};}static[_0x29a23d(0x139)](_0x35a1c1,_0x90fff7,_0x16aa32,_0x3f6567){const _0x1fcb30=_0x29a23d;return{'elementType':ElementType[_0x1fcb30(0x151)],'elementId':'','replyElement':{'replayMsgSeq':_0x35a1c1,'replayMsgId':_0x90fff7,'senderUin':_0x16aa32,'senderUinStr':_0x3f6567}};}static async[_0x29a23d(0x12e)](_0xc841af,_0x40e417='',_0x5287f7=0x0){const _0x433a89=_0x29a23d,_0x33801b={'KkKox':function(_0x11ddf1,_0x1a82d9){return _0x11ddf1===_0x1a82d9;},'vbjLL':_0x433a89(0x134),'DKimB':function(_0x2ec262,_0x582fd8){return _0x2ec262(_0x582fd8);},'SbHOl':function(_0x1d536c,_0x4c4762,_0x4ca616){return _0x1d536c(_0x4c4762,_0x4ca616);},'rMRpy':_0x433a89(0x122)},{md5:_0x21935d,fileName:_0x3fb999,path:_0xa2714c,fileSize:_0xbbc8ec}=await NTQQFileApi[_0x433a89(0x162)](_0xc841af,ElementType[_0x433a89(0x152)],_0x5287f7);if(_0x33801b[_0x433a89(0x156)](_0xbbc8ec,0x0))throw _0x33801b['vbjLL'];const _0x51bd6a=await NTQQFileApi[_0x433a89(0x10e)](_0xc841af),_0x62af3={'md5HexStr':_0x21935d,'fileSize':_0xbbc8ec[_0x433a89(0x124)](),'picWidth':_0x51bd6a?.[_0x433a89(0x12f)],'picHeight':_0x51bd6a?.[_0x433a89(0x14b)],'fileName':_0x3fb999,'sourcePath':_0xa2714c,'original':!![],'picType':_0x33801b[_0x433a89(0x154)](isGIF,_0xc841af)?PicType[_0x433a89(0x11d)]:PicType[_0x433a89(0x161)],'picSubType':_0x5287f7,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x40e417};return _0x33801b[_0x433a89(0x12d)](logDebug,_0x33801b[_0x433a89(0x149)],_0x62af3),{'elementType':ElementType[_0x433a89(0x152)],'elementId':'','picElement':_0x62af3};}static async[_0x29a23d(0x13c)](_0x575658,_0x1e967e=''){const _0x4aeb53=_0x29a23d,_0x5ee0e7={'nxMBT':function(_0x5da367,_0x106116){return _0x5da367===_0x106116;},'wXXzb':_0x4aeb53(0x134),'RwGnD':function(_0x330391,_0xdf6552){return _0x330391||_0xdf6552;}},{md5:_0x532746,fileName:_0x42298e,path:_0x2c1fb7,fileSize:_0x343905}=await NTQQFileApi[_0x4aeb53(0x162)](_0x575658,ElementType[_0x4aeb53(0x150)]);if(_0x5ee0e7[_0x4aeb53(0x130)](_0x343905,0x0))throw _0x5ee0e7[_0x4aeb53(0x126)];const _0x2d368f={'elementType':ElementType[_0x4aeb53(0x150)],'elementId':'','fileElement':{'fileName':_0x5ee0e7[_0x4aeb53(0x11c)](_0x1e967e,_0x42298e),'filePath':_0x2c1fb7,'fileSize':_0x343905['toString']()}};return _0x2d368f;}static async[_0x29a23d(0x116)](_0x3e0057,_0x4961ca='',_0x3fc9ce=''){const _0x5c5dda=_0x29a23d,_0x8dac21={'ocwHX':function(_0x4078ac,_0x6ae3f4,_0x31c98f){return _0x4078ac(_0x6ae3f4,_0x31c98f);},'lKWTn':_0x5c5dda(0x136),'eacWj':function(_0x233e7a,_0x18788e){return _0x233e7a(_0x18788e);},'KAVcz':_0x5c5dda(0x159),'SpOsP':_0x5c5dda(0x15e),'xlccH':function(_0x3c98a7,_0x5345e1){return _0x3c98a7+_0x5345e1;},'WqUbn':function(_0x3f3e6f,_0x3fdeff){return _0x3f3e6f===_0x3fdeff;},'XhcKw':_0x5c5dda(0x134),'vTSHE':_0x5c5dda(0x137),'HVLcA':_0x5c5dda(0x145),'tpUxm':function(_0x20e25c,_0xbc9f80,_0x320255){return _0x20e25c(_0xbc9f80,_0x320255);},'ajjmz':'获取视频信息失败','XwPUY':function(_0x5c2dcf,_0x56cbd6){return _0x5c2dcf||_0x56cbd6;}},{fileName:_0x31a933,path:_0x41ba32,fileSize:_0x4b3145,md5:_0x50952e}=await NTQQFileApi[_0x5c5dda(0x162)](_0x3e0057,ElementType[_0x5c5dda(0x11b)]);if(_0x8dac21['WqUbn'](_0x4b3145,0x0))throw _0x8dac21['XhcKw'];const _0x37188d=require(_0x8dac21[_0x5c5dda(0x110)]);let _0x52b09e=_0x41ba32[_0x5c5dda(0x163)](_0x37188d[_0x5c5dda(0x13b)]+'Ori'+_0x37188d[_0x5c5dda(0x13b)],_0x37188d[_0x5c5dda(0x13b)]+_0x5c5dda(0x14a)+_0x37188d[_0x5c5dda(0x13b)]);_0x52b09e=_0x37188d[_0x5c5dda(0x129)](_0x52b09e);let _0x5af398={'width':0x780,'height':0x438,'time':0xf,'format':_0x8dac21[_0x5c5dda(0x146)],'size':_0x4b3145,'filePath':_0x3e0057};try{_0x5af398=await _0x8dac21['eacWj'](getVideoInfo,_0x41ba32),_0x8dac21['ocwHX'](logDebug,_0x5c5dda(0x153),_0x5af398);}catch(_0x25bfaf){_0x8dac21[_0x5c5dda(0x15d)](logError,_0x8dac21['ajjmz'],_0x25bfaf);}const _0x13ac52=new Promise((_0x5d8d69,_0x470e0c)=>{const _0x39622c=_0x5c5dda,_0x1e8a1c={'JVmmO':function(_0x101b56,_0x3f4bb7){const _0x2044f6=_0x5e97;return _0x8dac21[_0x2044f6(0x11a)](_0x101b56,_0x3f4bb7);}},_0x169f8a=_0x50952e+_0x39622c(0x114),_0x18a19e=_0x37188d[_0x39622c(0x155)](_0x52b09e,_0x169f8a);_0x8dac21[_0x39622c(0x11a)](_0x233586,_0x3e0057)['on'](_0x8dac21[_0x39622c(0x131)],()=>{})['on'](_0x8dac21[_0x39622c(0x14f)],_0xb17c32=>{const _0x1c31dc=_0x39622c,_0x4e8b19={'BxOEW':function(_0x2f09ec,_0x234103){return _0x2f09ec(_0x234103);}};_0x8dac21[_0x1c31dc(0x142)](logDebug,_0x8dac21[_0x1c31dc(0x115)],_0xb17c32),_0x3fc9ce?_0x471ae7[_0x1c31dc(0x164)](_0x3fc9ce,_0x18a19e)[_0x1c31dc(0x140)](()=>{const _0x1d6c7e=_0x1c31dc;_0x1e8a1c[_0x1d6c7e(0x11f)](_0x5d8d69,_0x18a19e);})['catch'](_0x470e0c):_0x471ae7['writeFile'](_0x18a19e,defaultVideoThumb)['then'](()=>{const _0x35cce1=_0x1c31dc;_0x4e8b19[_0x35cce1(0x15b)](_0x5d8d69,_0x18a19e);})[_0x1c31dc(0x135)](_0x470e0c);})[_0x39622c(0x119)]({'timestamps':[0x0],'filename':_0x169f8a,'folder':_0x52b09e,'size':_0x8dac21[_0x39622c(0x13a)](_0x5af398['width']+'x',_0x5af398[_0x39622c(0x14b)])})['on'](_0x8dac21[_0x39622c(0x131)],()=>{const _0x52eed7=_0x39622c;_0x8dac21[_0x52eed7(0x11a)](_0x5d8d69,_0x18a19e);});}),_0x700587=new Map(),_0x40d368=await _0x13ac52,_0x191828=(await _0x471ae7[_0x5c5dda(0x118)](_0x40d368))[_0x5c5dda(0x15a)];_0x700587[_0x5c5dda(0x15c)](0x0,_0x40d368);const _0x13400c=await _0x8dac21[_0x5c5dda(0x11a)](calculateFileMD5,_0x40d368),_0x19095d={'elementType':ElementType[_0x5c5dda(0x11b)],'elementId':'','videoElement':{'fileName':_0x8dac21[_0x5c5dda(0x166)](_0x4961ca,_0x31a933),'filePath':_0x41ba32,'videoMd5':_0x50952e,'thumbMd5':_0x13400c,'fileTime':_0x5af398['time'],'thumbPath':_0x700587,'thumbSize':_0x191828,'thumbWidth':_0x5af398[_0x5c5dda(0x12f)],'thumbHeight':_0x5af398[_0x5c5dda(0x14b)],'fileSize':_0x8dac21[_0x5c5dda(0x13a)]('',_0x4b3145)}};return _0x19095d;}static async[_0x29a23d(0x132)](_0x5ddc0b){const _0x1b1617=_0x29a23d,_0x27ffa6={'LrSYk':function(_0x4b4033,_0x24d0ce){return _0x4b4033(_0x24d0ce);},'wTwHj':_0x1b1617(0x15f),'COEMI':function(_0x389ad7,_0x31b10a){return _0x389ad7===_0x31b10a;},'iIUoc':'文件异常,大小为0'},{converted:_0x1cd7dd,path:_0x1b53cd,duration:_0x1a5240}=await _0x27ffa6[_0x1b1617(0x143)](encodeSilk,_0x5ddc0b);if(!_0x1b53cd)throw _0x27ffa6[_0x1b1617(0x157)];const {md5:_0x6c7005,fileName:_0x4c0c57,path:_0x10e75e,fileSize:_0x5e5a1d}=await NTQQFileApi[_0x1b1617(0x162)](_0x1b53cd,ElementType['PTT']);if(_0x27ffa6[_0x1b1617(0x123)](_0x5e5a1d,0x0))throw _0x27ffa6[_0x1b1617(0x125)];return _0x1cd7dd&&_0x471ae7[_0x1b1617(0x12c)](_0x1b53cd)[_0x1b1617(0x140)](),{'elementType':ElementType['PTT'],'elementId':'','pttElement':{'fileName':_0x4c0c57,'filePath':_0x10e75e,'md5HexStr':_0x6c7005,'fileSize':_0x5e5a1d,'duration':_0x1a5240||0x1,'formatType':0x1,'voiceType':0x1,'voiceChangeType':0x0,'canConvert2Text':!![],'waveAmplitudes':[0x0,0x12,0x9,0x17,0x10,0x11,0x10,0xf,0x2c,0x11,0x18,0x14,0xe,0xf,0x11],'fileSubId':'','playState':0x1,'autoConvertText':0x0}};}static['face'](_0x3a9c1a){const _0x3cc70c=_0x29a23d;return{'elementType':ElementType[_0x3cc70c(0x158)],'elementId':'','faceElement':{'faceIndex':_0x3a9c1a,'faceType':_0x3a9c1a<0xde?FaceType[_0x3cc70c(0x167)]:FaceType['normal2']}};}static[_0x29a23d(0x120)](_0x19fadf,_0x2f0036,_0xcaf4e,_0x4ebdc4){const _0x58c0be=_0x29a23d;return{'elementType':ElementType['MFACE'],'marketFaceElement':{'emojiPackageId':_0x19fadf,'emojiId':_0x2f0036,'key':_0xcaf4e,'faceName':_0x4ebdc4||mFaceCache[_0x58c0be(0x128)](_0x2f0036)||_0x58c0be(0x117)}};}static[_0x29a23d(0x144)](_0x3fc9d9){const _0x3af700=_0x29a23d;return{'elementType':ElementType[_0x3af700(0x158)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x3af700(0x144)],'faceType':FaceType[_0x3af700(0x144)],'faceText':_0x3af700(0x111),'packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x29a23d(0x12b)](_0x42812a){const _0x1d406d=_0x29a23d;return{'elementType':ElementType[_0x1d406d(0x158)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x1d406d(0x14c)],'faceText':_0x1d406d(0x10f),'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x29a23d(0x160)](_0x5cb6f0){const _0x4f61d2=_0x29a23d,_0x2f968d={'PFHof':function(_0x50e53f,_0x36cf2e){return _0x50e53f!==_0x36cf2e;},'xtSWX':_0x4f61d2(0x138)};return _0x2f968d[_0x4f61d2(0x14d)](typeof _0x5cb6f0,_0x2f968d[_0x4f61d2(0x141)])&&(_0x5cb6f0=JSON['stringify'](_0x5cb6f0)),{'elementType':ElementType[_0x4f61d2(0x13f)],'elementId':'','arkElement':{'bytesData':_0x5cb6f0,'linkInfo':null,'subElementType':null}};}static[_0x29a23d(0x113)](_0x4d3a00){const _0x34ebb4=_0x29a23d;return{'elementType':ElementType[_0x34ebb4(0x133)],'elementId':'','markdownElement':{'content':_0x4d3a00}};}} \ No newline at end of file +const _0x4106ca=_0x23a8;function _0x15fd(){const _0x83e752=['end','hpPph','MFACE','string','[骰子]','TEXT','视频信息','writeFile','dCAzT','mface','set','4ForXKG','JlnMC','path','normal2','get','Ori','normal','copyFile','3105696UkHVvr','file','1939287IwSILo','sep','then','width','size','PTT','uqLUn','OKooD','notAt','wTUrI','RPS','uploadFile','replace','1448390TVcKFD','HNskd','726006eYxPtG','DDYJz','SSije','获取视频信息失败','FILE','Thumb','rNTDp','MARKDOWN','PIC','eBNMR','screenshots','time','27gkeeRL','pic','unlink','FACE','dirname','pftPV','video','1GaAaqO','nSNGi','join','xJOFh','获取视频封面失败,使用默认封面','ark','232968isYXVD','face','_0.png','mp4','xqOil','45495NTknXZ','getImageSize','toString','dice','ptt','catch','文件异常,大小为0','语音转换失败,\x20请检查语音文件是否正常','reply','OwpNq','2651904atQpei','VIDEO','ARK','stringify','kbuqm','sYrPZ','REPLY','height'];_0x15fd=function(){return _0x83e752;};return _0x15fd();}(function(_0x699a83,_0x1da9e7){const _0x2ffda8=_0x23a8,_0x1cfa67=_0x699a83();while(!![]){try{const _0x468de9=-parseInt(_0x2ffda8(0xf0))/0x1*(-parseInt(_0x2ffda8(0xdd))/0x2)+parseInt(_0x2ffda8(0xf6))/0x3*(parseInt(_0x2ffda8(0xc4))/0x4)+parseInt(_0x2ffda8(0xfb))/0x5+-parseInt(_0x2ffda8(0x105))/0x6+parseInt(_0x2ffda8(0xce))/0x7+parseInt(_0x2ffda8(0xcc))/0x8+parseInt(_0x2ffda8(0xe9))/0x9*(-parseInt(_0x2ffda8(0xdb))/0xa);if(_0x468de9===_0x1da9e7)break;else _0x1cfa67['push'](_0x1cfa67['shift']());}catch(_0x37e319){_0x1cfa67['push'](_0x1cfa67['shift']());}}}(_0x15fd,0x3a3ae));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x38af6c}from'node:fs';import _0x93bcfb from'fluent-ffmpeg';import{NTQQFileApi}from'@/core/apis/file';import{calculateFileMD5,isGIF}from'@/common/utils/file';import{logDebug,logError}from'@/common/utils/log';import{defaultVideoThumb,getVideoInfo}from'@/common/utils/video';import{encodeSilk}from'@/common/utils/audio';export const mFaceCache=new Map();function _0x23a8(_0x598b55,_0x47f2ad){const _0x15fdf4=_0x15fd();return _0x23a8=function(_0x23a838,_0x54684a){_0x23a838=_0x23a838-0xb9;let _0x245998=_0x15fdf4[_0x23a838];return _0x245998;},_0x23a8(_0x598b55,_0x47f2ad);}export class SendMsgElementConstructor{static['text'](_0x1eb5af){const _0x11d08b=_0x23a8;return{'elementType':ElementType[_0x11d08b(0xbe)],'elementId':'','textElement':{'content':_0x1eb5af,'atType':AtType[_0x11d08b(0xd6)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x54a174,_0x53d014,_0x1c2005,_0x5aa762){return{'elementType':ElementType['TEXT'],'elementId':'','textElement':{'content':'@'+_0x5aa762,'atType':_0x1c2005,'atUid':_0x54a174,'atTinyId':'','atNtUid':_0x53d014}};}static[_0x4106ca(0x103)](_0x5b1534,_0x2abeef,_0x3c3fb7,_0x550883){const _0x521dc1=_0x4106ca;return{'elementType':ElementType[_0x521dc1(0x10b)],'elementId':'','replyElement':{'replayMsgSeq':_0x5b1534,'replayMsgId':_0x2abeef,'senderUin':_0x3c3fb7,'senderUinStr':_0x550883}};}static async[_0x4106ca(0xea)](_0x707244,_0x422116='',_0x3ac61f=0x0){const _0x2261a4=_0x4106ca,_0x30903f={'LKyQY':function(_0xa94b6d,_0x5774f8){return _0xa94b6d===_0x5774f8;},'CQHeo':_0x2261a4(0x101),'rBooq':function(_0x55e221,_0x4e8edc){return _0x55e221(_0x4e8edc);},'pfQXh':function(_0x3b9cc9,_0x1029da,_0x575d2b){return _0x3b9cc9(_0x1029da,_0x575d2b);},'xJOFh':'图片信息'},{md5:_0x2c7fc8,fileName:_0x2a00da,path:_0x1b987d,fileSize:_0x17d308}=await NTQQFileApi[_0x2261a4(0xd9)](_0x707244,ElementType[_0x2261a4(0xe5)],_0x3ac61f);if(_0x30903f['LKyQY'](_0x17d308,0x0))throw _0x30903f['CQHeo'];const _0x2c38ca=await NTQQFileApi[_0x2261a4(0xfc)](_0x707244),_0x1af250={'md5HexStr':_0x2c7fc8,'fileSize':_0x17d308[_0x2261a4(0xfd)](),'picWidth':_0x2c38ca?.[_0x2261a4(0xd1)],'picHeight':_0x2c38ca?.[_0x2261a4(0x10c)],'fileName':_0x2a00da,'sourcePath':_0x1b987d,'original':!![],'picType':_0x30903f['rBooq'](isGIF,_0x707244)?PicType['gif']:PicType['jpg'],'picSubType':_0x3ac61f,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x422116};return _0x30903f['pfQXh'](logDebug,_0x30903f[_0x2261a4(0xf3)],_0x1af250),{'elementType':ElementType[_0x2261a4(0xe5)],'elementId':'','picElement':_0x1af250};}static async[_0x4106ca(0xcd)](_0x2b899f,_0x17a20f=''){const _0x4b8af4=_0x4106ca,_0x5ceba2={'OwpNq':function(_0x5a3deb,_0x1460cf){return _0x5a3deb===_0x1460cf;},'hpPph':_0x4b8af4(0x101),'xCRhC':function(_0x432288,_0x31f92d){return _0x432288||_0x31f92d;}},{md5:_0x1f63ee,fileName:_0x4a39f8,path:_0x203d2f,fileSize:_0x136a13}=await NTQQFileApi['uploadFile'](_0x2b899f,ElementType[_0x4b8af4(0xe1)]);if(_0x5ceba2[_0x4b8af4(0x104)](_0x136a13,0x0))throw _0x5ceba2[_0x4b8af4(0xba)];const _0x52f04e={'elementType':ElementType['FILE'],'elementId':'','fileElement':{'fileName':_0x5ceba2['xCRhC'](_0x17a20f,_0x4a39f8),'filePath':_0x203d2f,'fileSize':_0x136a13[_0x4b8af4(0xfd)]()}};return _0x52f04e;}static async[_0x4106ca(0xef)](_0x2e678b,_0x346b5b='',_0xf238b9=''){const _0x21b8fd=_0x4106ca,_0x32cfc3={'OKooD':function(_0x4c9826,_0x4c3d7b){return _0x4c9826(_0x4c3d7b);},'zehJa':function(_0x1b22c9,_0x17fade){return _0x1b22c9(_0x17fade);},'eBNMR':function(_0x5e4d0c,_0x463c4c){return _0x5e4d0c(_0x463c4c);},'SKGxl':_0x21b8fd(0xb9),'sYrPZ':'error','OSrfk':'文件异常,大小为0','wTUrI':_0x21b8fd(0xc6),'dCAzT':_0x21b8fd(0xf9),'nSNGi':function(_0x210b13,_0x3eef8c,_0x7bf88){return _0x210b13(_0x3eef8c,_0x7bf88);},'uqLUn':_0x21b8fd(0xbf),'kbuqm':_0x21b8fd(0xe0),'rNTDp':function(_0x465ad9,_0x2f0578){return _0x465ad9||_0x2f0578;}},{fileName:_0x1929cb,path:_0x217acc,fileSize:_0x93df83,md5:_0x435f0d}=await NTQQFileApi[_0x21b8fd(0xd9)](_0x2e678b,ElementType[_0x21b8fd(0x106)]);if(_0x93df83===0x0)throw _0x32cfc3['OSrfk'];const _0x2e98f1=_0x32cfc3[_0x21b8fd(0xe6)](require,_0x32cfc3[_0x21b8fd(0xd7)]);let _0x2b6dbc=_0x217acc[_0x21b8fd(0xda)](_0x2e98f1[_0x21b8fd(0xcf)]+_0x21b8fd(0xc9)+_0x2e98f1[_0x21b8fd(0xcf)],_0x2e98f1['sep']+_0x21b8fd(0xe2)+_0x2e98f1[_0x21b8fd(0xcf)]);_0x2b6dbc=_0x2e98f1[_0x21b8fd(0xed)](_0x2b6dbc);let _0x5a6ec4={'width':0x780,'height':0x438,'time':0xf,'format':_0x32cfc3[_0x21b8fd(0xc1)],'size':_0x93df83,'filePath':_0x2e678b};try{_0x5a6ec4=await _0x32cfc3[_0x21b8fd(0xd5)](getVideoInfo,_0x217acc),_0x32cfc3[_0x21b8fd(0xf1)](logDebug,_0x32cfc3[_0x21b8fd(0xd4)],_0x5a6ec4);}catch(_0x4c7b62){logError(_0x32cfc3[_0x21b8fd(0x109)],_0x4c7b62);}const _0x551e41=new Promise((_0x328e5e,_0x3567aa)=>{const _0xe20052=_0x21b8fd,_0x2646a8={'tGTTz':function(_0x4e61b9,_0x19a9a2){return _0x32cfc3['OKooD'](_0x4e61b9,_0x19a9a2);}},_0x4b7cb8=_0x435f0d+_0xe20052(0xf8),_0x3fe22c=_0x2e98f1[_0xe20052(0xf2)](_0x2b6dbc,_0x4b7cb8);_0x32cfc3['eBNMR'](_0x93bcfb,_0x2e678b)['on'](_0x32cfc3['SKGxl'],()=>{})['on'](_0x32cfc3[_0xe20052(0x10a)],_0xc328e8=>{const _0x422826=_0xe20052,_0x30fcc7={'pftPV':function(_0x5bd732,_0x5fb1fa){const _0x113279=_0x23a8;return _0x32cfc3[_0x113279(0xd5)](_0x5bd732,_0x5fb1fa);}};logDebug(_0x422826(0xf4),_0xc328e8),_0xf238b9?_0x38af6c[_0x422826(0xcb)](_0xf238b9,_0x3fe22c)[_0x422826(0xd0)](()=>{const _0xf8a0fa=_0x422826;_0x30fcc7[_0xf8a0fa(0xee)](_0x328e5e,_0x3fe22c);})[_0x422826(0x100)](_0x3567aa):_0x38af6c[_0x422826(0xc0)](_0x3fe22c,defaultVideoThumb)[_0x422826(0xd0)](()=>{_0x2646a8['tGTTz'](_0x328e5e,_0x3fe22c);})[_0x422826(0x100)](_0x3567aa);})[_0xe20052(0xe7)]({'timestamps':[0x0],'filename':_0x4b7cb8,'folder':_0x2b6dbc,'size':_0x5a6ec4[_0xe20052(0xd1)]+'x'+_0x5a6ec4[_0xe20052(0x10c)]})['on'](_0x32cfc3['SKGxl'],()=>{_0x32cfc3['zehJa'](_0x328e5e,_0x3fe22c);});}),_0x1dd461=new Map(),_0x37dfb1=await _0x551e41,_0x1fbfb3=(await _0x38af6c['stat'](_0x37dfb1))[_0x21b8fd(0xd2)];_0x1dd461[_0x21b8fd(0xc3)](0x0,_0x37dfb1);const _0xef61=await calculateFileMD5(_0x37dfb1),_0x2d46e2={'elementType':ElementType['VIDEO'],'elementId':'','videoElement':{'fileName':_0x32cfc3[_0x21b8fd(0xe3)](_0x346b5b,_0x1929cb),'filePath':_0x217acc,'videoMd5':_0x435f0d,'thumbMd5':_0xef61,'fileTime':_0x5a6ec4[_0x21b8fd(0xe8)],'thumbPath':_0x1dd461,'thumbSize':_0x1fbfb3,'thumbWidth':_0x5a6ec4[_0x21b8fd(0xd1)],'thumbHeight':_0x5a6ec4[_0x21b8fd(0x10c)],'fileSize':''+_0x93df83}};return _0x2d46e2;}static async[_0x4106ca(0xff)](_0x3c3e4d){const _0x62f568=_0x4106ca,_0x3afda3={'BOtbK':_0x62f568(0x102)},{converted:_0x45f226,path:_0x3f7392,duration:_0x1a53b2}=await encodeSilk(_0x3c3e4d);if(!_0x3f7392)throw _0x3afda3['BOtbK'];const {md5:_0x328ddf,fileName:_0x4b179f,path:_0x4909e7,fileSize:_0x3e7c39}=await NTQQFileApi[_0x62f568(0xd9)](_0x3f7392,ElementType['PTT']);if(_0x3e7c39===0x0)throw _0x62f568(0x101);return _0x45f226&&_0x38af6c[_0x62f568(0xeb)](_0x3f7392)[_0x62f568(0xd0)](),{'elementType':ElementType[_0x62f568(0xd3)],'elementId':'','pttElement':{'fileName':_0x4b179f,'filePath':_0x4909e7,'md5HexStr':_0x328ddf,'fileSize':_0x3e7c39,'duration':_0x1a53b2||0x1,'formatType':0x1,'voiceType':0x1,'voiceChangeType':0x0,'canConvert2Text':!![],'waveAmplitudes':[0x0,0x12,0x9,0x17,0x10,0x11,0x10,0xf,0x2c,0x11,0x18,0x14,0xe,0xf,0x11],'fileSubId':'','playState':0x1,'autoConvertText':0x0}};}static[_0x4106ca(0xf7)](_0x3e7675){const _0x37c43b=_0x4106ca,_0x18cd7c={'xqOil':function(_0x5455c2,_0x127c06){return _0x5455c2<_0x127c06;}};return{'elementType':ElementType[_0x37c43b(0xec)],'elementId':'','faceElement':{'faceIndex':_0x3e7675,'faceType':_0x18cd7c[_0x37c43b(0xfa)](_0x3e7675,0xde)?FaceType[_0x37c43b(0xca)]:FaceType[_0x37c43b(0xc7)]}};}static[_0x4106ca(0xc2)](_0x28e2c4,_0x12071e,_0x5f4849,_0x1b737d){const _0x3d1a54=_0x4106ca,_0x167cbe={'HNskd':'[商城表情]'};return{'elementType':ElementType[_0x3d1a54(0xbb)],'marketFaceElement':{'emojiPackageId':_0x28e2c4,'emojiId':_0x12071e,'key':_0x5f4849,'faceName':_0x1b737d||mFaceCache[_0x3d1a54(0xc8)](_0x12071e)||_0x167cbe[_0x3d1a54(0xdc)]}};}static[_0x4106ca(0xfe)](_0x40abe0){const _0x55878c=_0x4106ca,_0x25be4c={'iDzaH':_0x55878c(0xbd)};return{'elementType':ElementType[_0x55878c(0xec)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x55878c(0xfe)],'faceType':FaceType[_0x55878c(0xfe)],'faceText':_0x25be4c['iDzaH'],'packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static['rps'](_0x29efa9){const _0x162426=_0x4106ca,_0x1011ab={'DDYJz':'[包剪锤]'};return{'elementType':ElementType[_0x162426(0xec)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x162426(0xd8)],'faceText':_0x1011ab[_0x162426(0xde)],'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x4106ca(0xf5)](_0xb76389){const _0x3843b1=_0x4106ca,_0x2a3662={'JlnMC':function(_0x34c7fd,_0x3b4628){return _0x34c7fd!==_0x3b4628;},'SSije':_0x3843b1(0xbc)};return _0x2a3662[_0x3843b1(0xc5)](typeof _0xb76389,_0x2a3662[_0x3843b1(0xdf)])&&(_0xb76389=JSON[_0x3843b1(0x108)](_0xb76389)),{'elementType':ElementType[_0x3843b1(0x107)],'elementId':'','arkElement':{'bytesData':_0xb76389,'linkInfo':null,'subElementType':null}};}static['markdown'](_0x3062be){const _0x13214e=_0x4106ca;return{'elementType':ElementType[_0x13214e(0xe4)],'elementId':'','markdownElement':{'content':_0x3062be}};}} \ No newline at end of file diff --git a/src/core.lib/src/entities/group.d.ts b/src/core.lib/src/entities/group.d.ts index f2f1f888..14218c4a 100644 --- a/src/core.lib/src/entities/group.d.ts +++ b/src/core.lib/src/entities/group.d.ts @@ -7,7 +7,7 @@ export interface Group { groupStatus: 0; memberRole: 2; isTop: boolean; - toppedTimestamp: '0'; + toppedTimestamp: string; privilegeFlag: number; isConf: boolean; hasModifyConfGroupFace: boolean; @@ -24,8 +24,8 @@ export interface Group { groupCreditLevel: number; groupFlagExt3: number; groupOwnerId: { - 'memberUin': string; - 'memberUid': string; + memberUin: string; + memberUid: string; }; } export declare enum GroupMemberRole { diff --git a/src/core.lib/src/entities/group.js b/src/core.lib/src/entities/group.js index ca31bef3..b3a7f21a 100644 --- a/src/core.lib/src/entities/group.js +++ b/src/core.lib/src/entities/group.js @@ -1 +1 @@ -function _0x30ac(_0x373f39,_0x47d18b){var _0x3db8c7=_0x3db8();return _0x30ac=function(_0x30ac84,_0xebfa18){_0x30ac84=_0x30ac84-0xc7;var _0xd661d5=_0x3db8c7[_0x30ac84];return _0xd661d5;},_0x30ac(_0x373f39,_0x47d18b);}function _0x3db8(){var _0x5f1c89=['2116RizEEP','2325NdZipf','OrAdG','2409554yJTFOd','3470706iEaHxf','admin','normal','16UnnmvZ','WZseb','HvNCJ','3759385HFkwXj','owner','307405RGjAQl','6512505woFguD','1800084UxEfWX'];_0x3db8=function(){return _0x5f1c89;};return _0x3db8();}(function(_0x4ce863,_0x117a22){var _0x5d72c7=_0x30ac,_0x587148=_0x4ce863();while(!![]){try{var _0x45190b=parseInt(_0x5d72c7(0xd5))/0x1+parseInt(_0x5d72c7(0xcc))/0x2+-parseInt(_0x5d72c7(0xca))/0x3*(-parseInt(_0x5d72c7(0xc9))/0x4)+-parseInt(_0x5d72c7(0xc7))/0x5+parseInt(_0x5d72c7(0xc8))/0x6+parseInt(_0x5d72c7(0xd3))/0x7+-parseInt(_0x5d72c7(0xd0))/0x8*(parseInt(_0x5d72c7(0xcd))/0x9);if(_0x45190b===_0x117a22)break;else _0x587148['push'](_0x587148['shift']());}catch(_0x5a7d0c){_0x587148['push'](_0x587148['shift']());}}}(_0x3db8,0xa7591));export var GroupMemberRole;(function(_0x5c7d55){var _0x1bd564=_0x30ac,_0x10b1e5={'OrAdG':_0x1bd564(0xcf),'WZseb':_0x1bd564(0xce),'HvNCJ':_0x1bd564(0xd4)};_0x5c7d55[_0x5c7d55[_0x1bd564(0xcf)]=0x2]=_0x10b1e5[_0x1bd564(0xcb)],_0x5c7d55[_0x5c7d55[_0x10b1e5[_0x1bd564(0xd1)]]=0x3]=_0x10b1e5[_0x1bd564(0xd1)],_0x5c7d55[_0x5c7d55[_0x10b1e5['HvNCJ']]=0x4]=_0x10b1e5[_0x1bd564(0xd2)];}(GroupMemberRole||(GroupMemberRole={}))); \ No newline at end of file +function _0x2e05(){var _0x4ddf70=['ojEhQ','330286bdrrth','NVoGc','7AEyZKD','2185797xDbFMj','6625640GprRsw','ERQqL','normal','265184gQRLEL','520906gjjUJB','80mqgsLD','9nvBQVG','1440056UeeIak','7981836DgXNLd','owner'];_0x2e05=function(){return _0x4ddf70;};return _0x2e05();}(function(_0x3d022a,_0x536117){var _0x10f4c7=_0x5452,_0x5de07a=_0x3d022a();while(!![]){try{var _0x2a2816=-parseInt(_0x10f4c7(0x74))/0x1+-parseInt(_0x10f4c7(0x7b))/0x2+parseInt(_0x10f4c7(0x7e))/0x3+parseInt(_0x10f4c7(0x73))/0x4*(-parseInt(_0x10f4c7(0x75))/0x5)+parseInt(_0x10f4c7(0x78))/0x6*(parseInt(_0x10f4c7(0x7d))/0x7)+-parseInt(_0x10f4c7(0x77))/0x8*(parseInt(_0x10f4c7(0x76))/0x9)+parseInt(_0x10f4c7(0x7f))/0xa;if(_0x2a2816===_0x536117)break;else _0x5de07a['push'](_0x5de07a['shift']());}catch(_0xc97f23){_0x5de07a['push'](_0x5de07a['shift']());}}}(_0x2e05,0xc2035));function _0x5452(_0x43729c,_0x4809b0){var _0x2e05d9=_0x2e05();return _0x5452=function(_0x5452c6,_0x45f04f){_0x5452c6=_0x5452c6-0x73;var _0x3979c3=_0x2e05d9[_0x5452c6];return _0x3979c3;},_0x5452(_0x43729c,_0x4809b0);}export var GroupMemberRole;(function(_0x3cbbec){var _0x313b87=_0x5452,_0xdf8ebe={'ojEhQ':_0x313b87(0x81),'NVoGc':'admin','ERQqL':_0x313b87(0x79)};_0x3cbbec[_0x3cbbec[_0xdf8ebe[_0x313b87(0x7a)]]=0x2]=_0xdf8ebe[_0x313b87(0x7a)],_0x3cbbec[_0x3cbbec[_0xdf8ebe[_0x313b87(0x7c)]]=0x3]=_0xdf8ebe[_0x313b87(0x7c)],_0x3cbbec[_0x3cbbec[_0x313b87(0x79)]=0x4]=_0xdf8ebe[_0x313b87(0x80)];}(GroupMemberRole||(GroupMemberRole={}))); \ No newline at end of file diff --git a/src/core.lib/src/entities/index.js b/src/core.lib/src/entities/index.js index e37cd9ea..1607c1ae 100644 --- a/src/core.lib/src/entities/index.js +++ b/src/core.lib/src/entities/index.js @@ -1 +1 @@ -(function(_0x1fbf72,_0x49e6ab){var _0x17f941=_0xb300,_0x3ffa44=_0x1fbf72();while(!![]){try{var _0x146ba1=-parseInt(_0x17f941(0x13f))/0x1+parseInt(_0x17f941(0x135))/0x2*(parseInt(_0x17f941(0x13a))/0x3)+-parseInt(_0x17f941(0x136))/0x4+parseInt(_0x17f941(0x139))/0x5+parseInt(_0x17f941(0x138))/0x6*(-parseInt(_0x17f941(0x13e))/0x7)+parseInt(_0x17f941(0x13c))/0x8*(parseInt(_0x17f941(0x137))/0x9)+-parseInt(_0x17f941(0x13d))/0xa*(-parseInt(_0x17f941(0x13b))/0xb);if(_0x146ba1===_0x49e6ab)break;else _0x3ffa44['push'](_0x3ffa44['shift']());}catch(_0x3aaa09){_0x3ffa44['push'](_0x3ffa44['shift']());}}}(_0x553d,0x35c59));export*from'./user';export*from'./group';function _0xb300(_0x23c54b,_0x56e9c1){var _0x553d32=_0x553d();return _0xb300=function(_0xb30031,_0x54d2ab){_0xb30031=_0xb30031-0x135;var _0x4058e1=_0x553d32[_0xb30031];return _0x4058e1;},_0xb300(_0x23c54b,_0x56e9c1);}export*from'./msg';function _0x553d(){var _0x4cfd33=['236314uvdtJX','26mGhZrR','1429652ZYEQdN','3663txnxWH','13356pzQymQ','252865QwvNtr','36393tNjVas','8365247xEpuMw','5096cFouok','10HdxSmV','1302kyXhxl'];_0x553d=function(){return _0x4cfd33;};return _0x553d();}export*from'./notify';export*from'./cache';export*from'./constructor'; \ No newline at end of file +(function(_0x442a25,_0x28608f){var _0x5bf91c=_0x4185,_0x1a00df=_0x442a25();while(!![]){try{var _0x401c73=-parseInt(_0x5bf91c(0x172))/0x1+parseInt(_0x5bf91c(0x176))/0x2+parseInt(_0x5bf91c(0x174))/0x3+-parseInt(_0x5bf91c(0x171))/0x4+parseInt(_0x5bf91c(0x175))/0x5+-parseInt(_0x5bf91c(0x173))/0x6+parseInt(_0x5bf91c(0x177))/0x7;if(_0x401c73===_0x28608f)break;else _0x1a00df['push'](_0x1a00df['shift']());}catch(_0x3294b4){_0x1a00df['push'](_0x1a00df['shift']());}}}(_0x4d8a,0x31842));export*from'./user';function _0x4185(_0x2ec5c9,_0xb89b1a){var _0x4d8a6b=_0x4d8a();return _0x4185=function(_0x41856a,_0x531f4f){_0x41856a=_0x41856a-0x171;var _0x28f773=_0x4d8a6b[_0x41856a];return _0x28f773;},_0x4185(_0x2ec5c9,_0xb89b1a);}export*from'./group';export*from'./msg';export*from'./notify';export*from'./cache';function _0x4d8a(){var _0x70ae87=['3425254pKfpIw','1361236TUsWvm','112347xhZezN','2396184Jokkdh','755562nEzblh','692320dOPmSP','350396ncIOQA'];_0x4d8a=function(){return _0x70ae87;};return _0x4d8a();}export*from'./constructor'; \ No newline at end of file diff --git a/src/core.lib/src/entities/msg.js b/src/core.lib/src/entities/msg.js index c02184b6..68d26ca6 100644 --- a/src/core.lib/src/entities/msg.js +++ b/src/core.lib/src/entities/msg.js @@ -1 +1 @@ -var _0x1274d3=_0x17a6;(function(_0x50b8d6,_0x2358d1){var _0x3018de=_0x17a6,_0x484379=_0x50b8d6();while(!![]){try{var _0x50899e=parseInt(_0x3018de(0x1cb))/0x1+-parseInt(_0x3018de(0x1b5))/0x2+-parseInt(_0x3018de(0x1c2))/0x3*(parseInt(_0x3018de(0x1cf))/0x4)+-parseInt(_0x3018de(0x1b9))/0x5+-parseInt(_0x3018de(0x1da))/0x6*(-parseInt(_0x3018de(0x1bb))/0x7)+-parseInt(_0x3018de(0x1e7))/0x8+parseInt(_0x3018de(0x1c0))/0x9*(parseInt(_0x3018de(0x1c7))/0xa);if(_0x50899e===_0x2358d1)break;else _0x484379['push'](_0x484379['shift']());}catch(_0x11f718){_0x484379['push'](_0x484379['shift']());}}}(_0x1453,0xb9be5));export var ElementType;(function(_0x75cb68){var _0x40dad4=_0x17a6,_0x38b3a4={'TfOBA':'7|4|8|6|5|1|2|3|9|0','MnoaG':'MARKDOWN','ayNfH':_0x40dad4(0x1bf),'ishXu':_0x40dad4(0x1c5),'cayoO':'ARK','zWtYE':_0x40dad4(0x1de),'ezjbL':_0x40dad4(0x1d5),'VCzzT':'PTT','pixPb':'TEXT','PvuHb':'FILE','aChJz':_0x40dad4(0x1c8)},_0x583ac6=_0x38b3a4[_0x40dad4(0x1e9)][_0x40dad4(0x1b8)]('|'),_0x24170d=0x0;while(!![]){switch(_0x583ac6[_0x24170d++]){case'0':_0x75cb68[_0x75cb68[_0x38b3a4['MnoaG']]=0xe]='MARKDOWN';continue;case'1':_0x75cb68[_0x75cb68[_0x40dad4(0x1bf)]=0x6]=_0x38b3a4[_0x40dad4(0x1ba)];continue;case'2':_0x75cb68[_0x75cb68[_0x38b3a4[_0x40dad4(0x1bc)]]=0x7]=_0x38b3a4[_0x40dad4(0x1bc)];continue;case'3':_0x75cb68[_0x75cb68[_0x38b3a4[_0x40dad4(0x1c1)]]=0xa]=_0x38b3a4[_0x40dad4(0x1c1)];continue;case'4':_0x75cb68[_0x75cb68[_0x38b3a4[_0x40dad4(0x1dd)]]=0x2]='PIC';continue;case'5':_0x75cb68[_0x75cb68[_0x38b3a4[_0x40dad4(0x1e0)]]=0x5]=_0x38b3a4[_0x40dad4(0x1e0)];continue;case'6':_0x75cb68[_0x75cb68[_0x38b3a4['VCzzT']]=0x4]=_0x38b3a4[_0x40dad4(0x1dc)];continue;case'7':_0x75cb68[_0x75cb68[_0x38b3a4[_0x40dad4(0x1ea)]]=0x1]=_0x38b3a4['pixPb'];continue;case'8':_0x75cb68[_0x75cb68[_0x38b3a4[_0x40dad4(0x1cc)]]=0x3]=_0x38b3a4[_0x40dad4(0x1cc)];continue;case'9':_0x75cb68[_0x75cb68[_0x38b3a4[_0x40dad4(0x1c3)]]=0xb]=_0x38b3a4[_0x40dad4(0x1c3)];continue;}break;}}(ElementType||(ElementType={})));function _0x1453(){var _0x124889=['split','4371270GKcoge','ayNfH','1096319hsueEL','ishXu','https://gchat.qpic.cn','fQDrp','FACE','5985441xqIptM','cayoO','138297rPdGSk','aChJz','https://multimedia.nt.qq.com.cn','REPLY','WRXQH','50LgFRKT','MFACE','DdxyH','yVFuc','661230Vkylzb','PvuHb','agneS','ban','92IZdStI','FHNEh','atUser','PhXYO','atAll','JWJCN','VIDEO','CqWrU','INVITE_NEW_MEMBER','QnuUX','SgEkz','6lbYpyH','normal2','VCzzT','zWtYE','PIC','jlMKQ','ezjbL','group','blVtR','KBQPM','chatDevice','dice','PyeFJ','5352096MZMCUP','normal','TfOBA','pixPb','KJVFX','temp','jpg','face','VtFUx','1557488FVfTvT','Rbcpb','Ulrlo'];_0x1453=function(){return _0x124889;};return _0x1453();}export var PicType;(function(_0xb04737){var _0x308a7d=_0x17a6,_0x539220={'Rbcpb':'gif','raqHC':'jpg'};_0xb04737[_0xb04737[_0x539220[_0x308a7d(0x1b6)]]=0x7d0]=_0x539220[_0x308a7d(0x1b6)],_0xb04737[_0xb04737[_0x308a7d(0x1b2)]=0x3e8]=_0x539220['raqHC'];}(PicType||(PicType={})));export var PicSubType;(function(_0x584ed5){var _0x3ffe02=_0x17a6,_0x4da1bf={'yVFuc':_0x3ffe02(0x1e8),'jlMKQ':_0x3ffe02(0x1b3)};_0x584ed5[_0x584ed5[_0x4da1bf[_0x3ffe02(0x1ca)]]=0x0]=_0x4da1bf['yVFuc'],_0x584ed5[_0x584ed5[_0x4da1bf[_0x3ffe02(0x1df)]]=0x1]=_0x4da1bf['jlMKQ'];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x3cf9f7){var _0x5f43eb=_0x17a6,_0x32fb7b={'Ulrlo':'notAt','KJVFX':_0x5f43eb(0x1d3),'fQDrp':_0x5f43eb(0x1d1)};_0x3cf9f7[_0x3cf9f7[_0x32fb7b[_0x5f43eb(0x1b7)]]=0x0]=_0x32fb7b['Ulrlo'],_0x3cf9f7[_0x3cf9f7[_0x32fb7b['KJVFX']]=0x1]=_0x32fb7b[_0x5f43eb(0x1eb)],_0x3cf9f7[_0x3cf9f7[_0x32fb7b[_0x5f43eb(0x1be)]]=0x2]=_0x32fb7b[_0x5f43eb(0x1be)];}(AtType||(AtType={})));export var ChatType;(function(_0x249273){var _0x42ce25=_0x17a6,_0x1d9d62={'CqWrU':'friend','agneS':_0x42ce25(0x1e1),'KBQPM':_0x42ce25(0x1e4),'VtFUx':_0x42ce25(0x1ec)};_0x249273[_0x249273[_0x1d9d62[_0x42ce25(0x1d6)]]=0x1]=_0x1d9d62[_0x42ce25(0x1d6)],_0x249273[_0x249273[_0x1d9d62[_0x42ce25(0x1cd)]]=0x2]=_0x1d9d62[_0x42ce25(0x1cd)],_0x249273[_0x249273[_0x1d9d62[_0x42ce25(0x1e3)]]=0x8]=_0x1d9d62[_0x42ce25(0x1e3)],_0x249273[_0x249273[_0x1d9d62[_0x42ce25(0x1b4)]]=0x64]='temp';}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST=_0x1274d3(0x1bd);export const IMAGE_HTTP_HOST_NT=_0x1274d3(0x1c4);export var GrayTipElementSubType;(function(_0xd7650c){var _0x1d3ff3=_0x1274d3,_0x4ffbf0={'DdxyH':_0x1d3ff3(0x1d7),'blVtR':'MEMBER_NEW_TITLE'};_0xd7650c[_0xd7650c[_0x4ffbf0[_0x1d3ff3(0x1c9)]]=0xc]=_0x4ffbf0[_0x1d3ff3(0x1c9)],_0xd7650c[_0xd7650c[_0x4ffbf0[_0x1d3ff3(0x1e2)]]=0x11]=_0x4ffbf0['blVtR'];}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x578d8f){var _0x82d42a=_0x1274d3,_0x3e5c4e={'ryQFE':_0x82d42a(0x1e8),'PyeFJ':_0x82d42a(0x1db),'WRXQH':_0x82d42a(0x1e5)};_0x578d8f[_0x578d8f[_0x3e5c4e['ryQFE']]=0x1]=_0x82d42a(0x1e8),_0x578d8f[_0x578d8f['normal2']=0x2]=_0x3e5c4e[_0x82d42a(0x1e6)],_0x578d8f[_0x578d8f[_0x82d42a(0x1e5)]=0x3]=_0x3e5c4e[_0x82d42a(0x1c6)];}(FaceType||(FaceType={})));function _0x17a6(_0x31ad67,_0x53cf8b){var _0x145325=_0x1453();return _0x17a6=function(_0x17a6a3,_0x5481e1){_0x17a6a3=_0x17a6a3-0x1b2;var _0x46f0d8=_0x145325[_0x17a6a3];return _0x46f0d8;},_0x17a6(_0x31ad67,_0x53cf8b);}export var FaceIndex;(function(_0x15c2f1){var _0x33b3bf=_0x1274d3,_0x52e55e={'QnuUX':_0x33b3bf(0x1e5),'SgEkz':'RPS'};_0x15c2f1[_0x15c2f1[_0x52e55e[_0x33b3bf(0x1d8)]]=0x166]=_0x52e55e[_0x33b3bf(0x1d8)],_0x15c2f1[_0x15c2f1[_0x52e55e[_0x33b3bf(0x1d9)]]=0x167]=_0x52e55e[_0x33b3bf(0x1d9)];}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;(function(_0x3b56fb){var _0x5d0a6e=_0x1274d3,_0x43d562={'JWJCN':'memberIncrease','FHNEh':'kicked','PhXYO':_0x5d0a6e(0x1ce)};_0x3b56fb[_0x3b56fb[_0x43d562[_0x5d0a6e(0x1d4)]]=0x1]=_0x43d562[_0x5d0a6e(0x1d4)],_0x3b56fb[_0x3b56fb[_0x43d562[_0x5d0a6e(0x1d0)]]=0x3]=_0x43d562[_0x5d0a6e(0x1d0)],_0x3b56fb[_0x3b56fb[_0x43d562[_0x5d0a6e(0x1d2)]]=0x8]=_0x43d562['PhXYO'];}(TipGroupElementType||(TipGroupElementType={}))); \ No newline at end of file +var _0xfda847=_0x43e6;function _0x43e6(_0x3bf017,_0x5f3f9e){var _0x2bf42f=_0x2bf4();return _0x43e6=function(_0x43e665,_0x179cb0){_0x43e665=_0x43e665-0x181;var _0x407e40=_0x2bf42f[_0x43e665];return _0x407e40;},_0x43e6(_0x3bf017,_0x5f3f9e);}(function(_0x24f227,_0x26da5d){var _0x3af786=_0x43e6,_0x1d39db=_0x24f227();while(!![]){try{var _0x3dbccb=parseInt(_0x3af786(0x1b3))/0x1*(-parseInt(_0x3af786(0x1a6))/0x2)+parseInt(_0x3af786(0x1be))/0x3+parseInt(_0x3af786(0x199))/0x4+-parseInt(_0x3af786(0x1af))/0x5+-parseInt(_0x3af786(0x1b2))/0x6+-parseInt(_0x3af786(0x1b4))/0x7*(-parseInt(_0x3af786(0x1a7))/0x8)+parseInt(_0x3af786(0x190))/0x9;if(_0x3dbccb===_0x26da5d)break;else _0x1d39db['push'](_0x1d39db['shift']());}catch(_0x4058a5){_0x1d39db['push'](_0x1d39db['shift']());}}}(_0x2bf4,0x677fe));export var ElementType;(function(_0x1462fe){var _0x2bd239=_0x43e6,_0x46955d={'GdLtg':_0x2bd239(0x19a),'GobDA':'PIC','ZawLJ':_0x2bd239(0x19f),'QvUnm':_0x2bd239(0x189),'BRYIv':'VIDEO','RblZm':_0x2bd239(0x182),'hzuAx':_0x2bd239(0x192),'kSKQG':_0x2bd239(0x198),'lUmHk':_0x2bd239(0x18e),'APnDY':_0x2bd239(0x1ad)};_0x1462fe[_0x1462fe[_0x46955d[_0x2bd239(0x1a8)]]=0x1]=_0x46955d[_0x2bd239(0x1a8)],_0x1462fe[_0x1462fe[_0x46955d[_0x2bd239(0x1ae)]]=0x2]=_0x46955d[_0x2bd239(0x1ae)],_0x1462fe[_0x1462fe[_0x46955d[_0x2bd239(0x19b)]]=0x3]=_0x2bd239(0x19f),_0x1462fe[_0x1462fe[_0x46955d[_0x2bd239(0x1a9)]]=0x4]=_0x46955d[_0x2bd239(0x1a9)],_0x1462fe[_0x1462fe[_0x46955d[_0x2bd239(0x1bb)]]=0x5]=_0x46955d[_0x2bd239(0x1bb)],_0x1462fe[_0x1462fe[_0x46955d['RblZm']]=0x6]=_0x2bd239(0x182),_0x1462fe[_0x1462fe[_0x46955d['hzuAx']]=0x7]=_0x46955d[_0x2bd239(0x19d)],_0x1462fe[_0x1462fe[_0x46955d[_0x2bd239(0x1aa)]]=0xa]=_0x46955d[_0x2bd239(0x1aa)],_0x1462fe[_0x1462fe[_0x46955d[_0x2bd239(0x19e)]]=0xb]=_0x46955d[_0x2bd239(0x19e)],_0x1462fe[_0x1462fe[_0x46955d[_0x2bd239(0x18a)]]=0xe]=_0x46955d[_0x2bd239(0x18a)];}(ElementType||(ElementType={})));export var PicType;(function(_0x39fc33){var _0x1b9524=_0x43e6,_0x1d772e={'QBVED':_0x1b9524(0x1bd),'NiHxI':_0x1b9524(0x194)};_0x39fc33[_0x39fc33[_0x1d772e[_0x1b9524(0x184)]]=0x7d0]='gif',_0x39fc33[_0x39fc33[_0x1d772e[_0x1b9524(0x1a2)]]=0x3e8]=_0x1d772e['NiHxI'];}(PicType||(PicType={})));export var PicSubType;(function(_0x1809e1){var _0x129f58=_0x43e6,_0x4c1e47={'XZbMi':'normal','KNyhh':'face'};_0x1809e1[_0x1809e1[_0x4c1e47[_0x129f58(0x1ac)]]=0x0]=_0x4c1e47[_0x129f58(0x1ac)],_0x1809e1[_0x1809e1[_0x4c1e47[_0x129f58(0x18c)]]=0x1]=_0x4c1e47['KNyhh'];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x2c831d){var _0x4a12d6=_0x43e6,_0x1d558a={'gPBmv':_0x4a12d6(0x1bc),'VPMxr':_0x4a12d6(0x1a1),'egifo':_0x4a12d6(0x19c)};_0x2c831d[_0x2c831d['notAt']=0x0]=_0x1d558a[_0x4a12d6(0x191)],_0x2c831d[_0x2c831d[_0x1d558a[_0x4a12d6(0x1b6)]]=0x1]=_0x1d558a[_0x4a12d6(0x1b6)],_0x2c831d[_0x2c831d[_0x4a12d6(0x19c)]=0x2]=_0x1d558a[_0x4a12d6(0x1a3)];}(AtType||(AtType={})));export var ChatType;(function(_0x591359){var _0x13796f=_0x43e6,_0x6daf0a={'tNFwe':_0x13796f(0x195),'lgtAM':'group','dAFLY':_0x13796f(0x187),'MaNoq':_0x13796f(0x188)};_0x591359[_0x591359[_0x6daf0a['tNFwe']]=0x1]=_0x6daf0a[_0x13796f(0x1b5)],_0x591359[_0x591359[_0x6daf0a['lgtAM']]=0x2]=_0x6daf0a[_0x13796f(0x1b0)],_0x591359[_0x591359[_0x6daf0a[_0x13796f(0x193)]]=0x8]=_0x6daf0a[_0x13796f(0x193)],_0x591359[_0x591359[_0x6daf0a[_0x13796f(0x1b8)]]=0x64]=_0x6daf0a[_0x13796f(0x1b8)];}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST=_0xfda847(0x1ab);export const IMAGE_HTTP_HOST_NT=_0xfda847(0x185);export var GrayTipElementSubType;function _0x2bf4(){var _0xf89632=['tNFwe','VPMxr','zzSJz','MaNoq','XlISL','memberIncrease','BRYIv','notAt','gif','1388685LOphvW','INVITE_NEW_MEMBER','FACE','normal2','QBVED','https://multimedia.nt.qq.com.cn','normal','chatDevice','temp','PTT','APnDY','dnjKt','KNyhh','dice','MFACE','xRpUL','7215021xlnnGa','gPBmv','REPLY','dAFLY','jpg','friend','ZIqio','ban','ARK','451048XshIaa','TEXT','ZawLJ','atUser','hzuAx','lUmHk','FILE','MEMBER_NEW_TITLE','atAll','NiHxI','egifo','xOLmP','kicked','499978CZcDNp','16UBzjlV','GdLtg','QvUnm','kSKQG','https://gchat.qpic.cn','XZbMi','MARKDOWN','GobDA','3865195UqUzZy','lgtAM','ZurNC','4639872zXldkU','1bBLwHW','2950318jVIZKS'];_0x2bf4=function(){return _0xf89632;};return _0x2bf4();}(function(_0x5701bb){var _0x34e55d=_0xfda847,_0x1e1143={'dnjKt':_0x34e55d(0x181),'NQJrr':_0x34e55d(0x1a0)};_0x5701bb[_0x5701bb[_0x1e1143[_0x34e55d(0x18b)]]=0xc]=_0x1e1143[_0x34e55d(0x18b)],_0x5701bb[_0x5701bb[_0x1e1143['NQJrr']]=0x11]=_0x34e55d(0x1a0);}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x3200c7){var _0x5397e5=_0xfda847,_0x35c18e={'ZBxYR':'normal','ZIqio':'normal2','ZurNC':_0x5397e5(0x18d)};_0x3200c7[_0x3200c7[_0x35c18e['ZBxYR']]=0x1]=_0x5397e5(0x186),_0x3200c7[_0x3200c7[_0x5397e5(0x183)]=0x2]=_0x35c18e[_0x5397e5(0x196)],_0x3200c7[_0x3200c7[_0x35c18e[_0x5397e5(0x1b1)]]=0x3]=_0x5397e5(0x18d);}(FaceType||(FaceType={})));export var FaceIndex;(function(_0x478380){var _0x8774a3=_0xfda847,_0x23f8a8={'oOPBt':_0x8774a3(0x18d),'xRpUL':'RPS'};_0x478380[_0x478380[_0x23f8a8['oOPBt']]=0x166]=_0x8774a3(0x18d),_0x478380[_0x478380[_0x23f8a8['xRpUL']]=0x167]=_0x23f8a8[_0x8774a3(0x18f)];}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;(function(_0x58bc1e){var _0x5d0963=_0xfda847,_0x495859={'zzSJz':'memberIncrease','XlISL':_0x5d0963(0x1a5),'xOLmP':_0x5d0963(0x197)};_0x58bc1e[_0x58bc1e[_0x5d0963(0x1ba)]=0x1]=_0x495859[_0x5d0963(0x1b7)],_0x58bc1e[_0x58bc1e[_0x495859[_0x5d0963(0x1b9)]]=0x3]=_0x495859[_0x5d0963(0x1b9)],_0x58bc1e[_0x58bc1e[_0x5d0963(0x197)]=0x8]=_0x495859[_0x5d0963(0x1a4)];}(TipGroupElementType||(TipGroupElementType={}))); \ No newline at end of file diff --git a/src/core.lib/src/entities/notify.js b/src/core.lib/src/entities/notify.js index 8363af15..2755a29a 100644 --- a/src/core.lib/src/entities/notify.js +++ b/src/core.lib/src/entities/notify.js @@ -1 +1 @@ -(function(_0x190fc3,_0x4b26f8){var _0x3817d5=_0xf770,_0x46053f=_0x190fc3();while(!![]){try{var _0x481190=parseInt(_0x3817d5(0x177))/0x1+parseInt(_0x3817d5(0x16c))/0x2*(parseInt(_0x3817d5(0x181))/0x3)+-parseInt(_0x3817d5(0x175))/0x4+-parseInt(_0x3817d5(0x180))/0x5*(-parseInt(_0x3817d5(0x182))/0x6)+-parseInt(_0x3817d5(0x165))/0x7*(parseInt(_0x3817d5(0x171))/0x8)+parseInt(_0x3817d5(0x17c))/0x9*(parseInt(_0x3817d5(0x176))/0xa)+-parseInt(_0x3817d5(0x166))/0xb*(-parseInt(_0x3817d5(0x17d))/0xc);if(_0x481190===_0x4b26f8)break;else _0x46053f['push'](_0x46053f['shift']());}catch(_0x1f81cb){_0x46053f['push'](_0x46053f['shift']());}}}(_0x1aa5,0x70e9a));function _0xf770(_0x57d1c1,_0x5ef8df){var _0x1aa53b=_0x1aa5();return _0xf770=function(_0xf770c4,_0x1d8154){_0xf770c4=_0xf770c4-0x165;var _0xa5c612=_0x1aa53b[_0xf770c4];return _0xa5c612;},_0xf770(_0x57d1c1,_0x5ef8df);}export var GroupNotifyTypes;(function(_0x32fba9){var _0x4cd714=_0xf770,_0x414166={'AHEvh':_0x4cd714(0x169),'yugxs':_0x4cd714(0x167),'WhpBx':_0x4cd714(0x186),'GtJWQ':_0x4cd714(0x179),'ZPREC':'KICK_MEMBER','rZQNy':_0x4cd714(0x184),'qrvez':_0x4cd714(0x170),'XwWyx':_0x4cd714(0x16d)};_0x32fba9[_0x32fba9[_0x414166['AHEvh']]=0x1]=_0x4cd714(0x169),_0x32fba9[_0x32fba9[_0x4cd714(0x167)]=0x4]=_0x414166['yugxs'],_0x32fba9[_0x32fba9['JOIN_REQUEST']=0x7]=_0x414166['WhpBx'],_0x32fba9[_0x32fba9[_0x414166[_0x4cd714(0x172)]]=0x8]=_0x414166['GtJWQ'],_0x32fba9[_0x32fba9[_0x414166[_0x4cd714(0x16f)]]=0x9]=_0x414166[_0x4cd714(0x16f)],_0x32fba9[_0x32fba9[_0x414166['rZQNy']]=0xb]=_0x414166['rZQNy'],_0x32fba9[_0x32fba9[_0x414166[_0x4cd714(0x185)]]=0xc]='ADMIN_UNSET',_0x32fba9[_0x32fba9[_0x4cd714(0x16d)]=0xd]=_0x414166[_0x4cd714(0x173)];}(GroupNotifyTypes||(GroupNotifyTypes={})));function _0x1aa5(){var _0x230f81=['approve','OpCzu','315fexhJC','372IyYVkW','WAIT_HANDLE','FwIGJ','5gtwKtI','363513CpJlbf','2315760hgbCne','dOxRH','MEMBER_EXIT','qrvez','JOIN_REQUEST','2814eqyiwL','66099UEsjGg','INVITED_JOIN','APPROVE','INVITE_ME','IGNORE','EJixt','10EhIUcB','ADMIN_UNSET_OTHER','REJECT','ZPREC','ADMIN_UNSET','16064dEwPzA','GtJWQ','XwWyx','IYTON','3342448lBEFHa','234570zQzkYR','106229oUfHJC','BhPCm','ADMIN_SET'];_0x1aa5=function(){return _0x230f81;};return _0x1aa5();}export var GroupNotifyStatus;(function(_0xd3cb45){var _0x2ab2d3=_0xf770,_0x56f6f9={'OpCzu':_0x2ab2d3(0x16a),'FwIGJ':_0x2ab2d3(0x17e),'EJixt':_0x2ab2d3(0x168),'BhPCm':_0x2ab2d3(0x16e)};_0xd3cb45[_0xd3cb45[_0x2ab2d3(0x16a)]=0x0]=_0x56f6f9[_0x2ab2d3(0x17b)],_0xd3cb45[_0xd3cb45[_0x56f6f9[_0x2ab2d3(0x17f)]]=0x1]=_0x56f6f9[_0x2ab2d3(0x17f)],_0xd3cb45[_0xd3cb45[_0x2ab2d3(0x168)]=0x2]=_0x56f6f9[_0x2ab2d3(0x16b)],_0xd3cb45[_0xd3cb45[_0x56f6f9[_0x2ab2d3(0x178)]]=0x3]=_0x2ab2d3(0x16e);}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;(function(_0x1e96b4){var _0x5e58be=_0xf770,_0xf22ed3={'IYTON':_0x5e58be(0x17a),'dOxRH':'reject'};_0x1e96b4[_0x1e96b4[_0x5e58be(0x17a)]=0x1]=_0xf22ed3[_0x5e58be(0x174)],_0x1e96b4[_0x1e96b4[_0xf22ed3[_0x5e58be(0x183)]]=0x2]=_0xf22ed3[_0x5e58be(0x183)];}(GroupRequestOperateTypes||(GroupRequestOperateTypes={}))); \ No newline at end of file +(function(_0x3ffe7e,_0x3dab47){var _0x5482e6=_0xfb87,_0x2ef63d=_0x3ffe7e();while(!![]){try{var _0x143dcc=parseInt(_0x5482e6(0x1b3))/0x1+parseInt(_0x5482e6(0x1c1))/0x2*(-parseInt(_0x5482e6(0x1a3))/0x3)+parseInt(_0x5482e6(0x1b1))/0x4+parseInt(_0x5482e6(0x1a5))/0x5+-parseInt(_0x5482e6(0x1bd))/0x6+-parseInt(_0x5482e6(0x1b2))/0x7*(-parseInt(_0x5482e6(0x1a6))/0x8)+-parseInt(_0x5482e6(0x1ae))/0x9;if(_0x143dcc===_0x3dab47)break;else _0x2ef63d['push'](_0x2ef63d['shift']());}catch(_0x368541){_0x2ef63d['push'](_0x2ef63d['shift']());}}}(_0x1d10,0x36aab));function _0xfb87(_0x508b2a,_0x2adca6){var _0x1d100a=_0x1d10();return _0xfb87=function(_0xfb878d,_0x19cffc){_0xfb878d=_0xfb878d-0x1a3;var _0x519e42=_0x1d100a[_0xfb878d];return _0x519e42;},_0xfb87(_0x508b2a,_0x2adca6);}export var GroupNotifyTypes;(function(_0x25e825){var _0x104dfb=_0xfb87,_0x22c6b4={'HZole':_0x104dfb(0x1ad),'jIvDs':'MEMBER_EXIT','lHVlp':_0x104dfb(0x1b0),'iKUZh':_0x104dfb(0x1b8),'hDQcD':_0x104dfb(0x1a8),'oEcxG':'INVITE_ME','IPImG':_0x104dfb(0x1b9),'wRSdv':_0x104dfb(0x1a9)},_0x5980af='5|6|2|3|0|1|7|4'[_0x104dfb(0x1ab)]('|'),_0x5c699d=0x0;while(!![]){switch(_0x5980af[_0x5c699d++]){case'0':_0x25e825[_0x25e825[_0x22c6b4[_0x104dfb(0x1bf)]]=0x9]=_0x104dfb(0x1ad);continue;case'1':_0x25e825[_0x25e825[_0x22c6b4[_0x104dfb(0x1c2)]]=0xb]=_0x22c6b4['jIvDs'];continue;case'2':_0x25e825[_0x25e825[_0x22c6b4[_0x104dfb(0x1c0)]]=0x7]=_0x22c6b4['lHVlp'];continue;case'3':_0x25e825[_0x25e825[_0x22c6b4['iKUZh']]=0x8]=_0x104dfb(0x1b8);continue;case'4':_0x25e825[_0x25e825['ADMIN_UNSET_OTHER']=0xd]=_0x22c6b4[_0x104dfb(0x1bc)];continue;case'5':_0x25e825[_0x25e825[_0x22c6b4['oEcxG']]=0x1]=_0x22c6b4[_0x104dfb(0x1b6)];continue;case'6':_0x25e825[_0x25e825[_0x22c6b4[_0x104dfb(0x1aa)]]=0x4]=_0x104dfb(0x1b9);continue;case'7':_0x25e825[_0x25e825[_0x22c6b4[_0x104dfb(0x1a7)]]=0xc]=_0x22c6b4[_0x104dfb(0x1a7)];continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;function _0x1d10(){var _0x101ed2=['APPROVE','JOIN_REQUEST','963492IsbpVS','54145isTSGh','335653eEnHau','InsEU','PyUeA','oEcxG','zXjrc','ADMIN_SET','INVITED_JOIN','approve','DleAn','hDQcD','1344252qSBytp','fYxOS','HZole','lHVlp','16412etYnoQ','jIvDs','129FAerJi','REJECT','2075940boWDyi','328QQTWTy','wRSdv','ADMIN_UNSET_OTHER','ADMIN_UNSET','IPImG','split','IGNORE','KICK_MEMBER','4572306IGRuHt'];_0x1d10=function(){return _0x101ed2;};return _0x1d10();}(function(_0x4f03b3){var _0x4696e6=_0xfb87,_0x1956a1={'PyUeA':_0x4696e6(0x1ac),'qljDs':'WAIT_HANDLE','DleAn':_0x4696e6(0x1af),'InsEU':_0x4696e6(0x1a4)};_0x4f03b3[_0x4f03b3['IGNORE']=0x0]=_0x1956a1[_0x4696e6(0x1b5)],_0x4f03b3[_0x4f03b3[_0x1956a1['qljDs']]=0x1]=_0x1956a1['qljDs'],_0x4f03b3[_0x4f03b3[_0x1956a1[_0x4696e6(0x1bb)]]=0x2]=_0x1956a1[_0x4696e6(0x1bb)],_0x4f03b3[_0x4f03b3[_0x1956a1[_0x4696e6(0x1b4)]]=0x3]=_0x1956a1[_0x4696e6(0x1b4)];}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;(function(_0xfcdc73){var _0xf2aaa=_0xfb87,_0x476479={'fYxOS':_0xf2aaa(0x1ba),'zXjrc':'reject'};_0xfcdc73[_0xfcdc73[_0x476479[_0xf2aaa(0x1be)]]=0x1]=_0x476479[_0xf2aaa(0x1be)],_0xfcdc73[_0xfcdc73[_0x476479[_0xf2aaa(0x1b7)]]=0x2]=_0x476479['zXjrc'];}(GroupRequestOperateTypes||(GroupRequestOperateTypes={}))); \ No newline at end of file diff --git a/src/core.lib/src/entities/user.d.ts b/src/core.lib/src/entities/user.d.ts index 3cf3fe9d..cc46be95 100644 --- a/src/core.lib/src/entities/user.d.ts +++ b/src/core.lib/src/entities/user.d.ts @@ -3,10 +3,11 @@ export declare enum Sex { female = 2, unknown = 255 } -export interface buddyCategorType { +export interface BuddyCategoryType { categoryId: number; categroyName: string; categroyMbCount: number; + buddyList: User[]; } export interface BuddyProfileLikeReq { friendUids: string[]; diff --git a/src/core.lib/src/entities/user.js b/src/core.lib/src/entities/user.js index da1a5ca8..406994f4 100644 --- a/src/core.lib/src/entities/user.js +++ b/src/core.lib/src/entities/user.js @@ -1 +1 @@ -(function(_0x18e9a4,_0x553979){var _0xb4824d=_0x38b6,_0xaf98a8=_0x18e9a4();while(!![]){try{var _0x816e3d=-parseInt(_0xb4824d(0x1d3))/0x1*(parseInt(_0xb4824d(0x1cf))/0x2)+parseInt(_0xb4824d(0x1ce))/0x3*(-parseInt(_0xb4824d(0x1cc))/0x4)+parseInt(_0xb4824d(0x1d5))/0x5*(-parseInt(_0xb4824d(0x1da))/0x6)+-parseInt(_0xb4824d(0x1d1))/0x7+parseInt(_0xb4824d(0x1d0))/0x8+parseInt(_0xb4824d(0x1d4))/0x9+parseInt(_0xb4824d(0x1d7))/0xa;if(_0x816e3d===_0x553979)break;else _0xaf98a8['push'](_0xaf98a8['shift']());}catch(_0x10b75f){_0xaf98a8['push'](_0xaf98a8['shift']());}}}(_0x5b6e,0x34747));export var Sex;function _0x38b6(_0x3717f0,_0x4bcf9e){var _0x5b6ecc=_0x5b6e();return _0x38b6=function(_0x38b6d0,_0x38d4c6){_0x38b6d0=_0x38b6d0-0x1cc;var _0x163fa8=_0x5b6ecc[_0x38b6d0];return _0x163fa8;},_0x38b6(_0x3717f0,_0x4bcf9e);}function _0x5b6e(){var _0x46a101=['2355dQevwC','2475513nCiAiN','6895sOxLsi','VemdR','10389490mRqBen','female','GKJeL','1806YWTKTB','unknown','62052DpxKEL','male','51rSRZck','274JbyjMu','1491504jRpTnP','1989078ZfKbfm','dBfLr'];_0x5b6e=function(){return _0x46a101;};return _0x5b6e();}(function(_0x6f1b7d){var _0x1ada01=_0x38b6,_0x329eef={'dBfLr':_0x1ada01(0x1cd),'GKJeL':_0x1ada01(0x1d8),'VemdR':_0x1ada01(0x1db)};_0x6f1b7d[_0x6f1b7d[_0x329eef['dBfLr']]=0x1]=_0x329eef[_0x1ada01(0x1d2)],_0x6f1b7d[_0x6f1b7d[_0x329eef[_0x1ada01(0x1d9)]]=0x2]=_0x329eef[_0x1ada01(0x1d9)],_0x6f1b7d[_0x6f1b7d[_0x329eef[_0x1ada01(0x1d6)]]=0xff]=_0x329eef['VemdR'];}(Sex||(Sex={}))); \ No newline at end of file +(function(_0x23da76,_0x2ec3a8){var _0x4d1862=_0x1dee,_0x136dbd=_0x23da76();while(!![]){try{var _0x40ae8d=-parseInt(_0x4d1862(0xd6))/0x1+parseInt(_0x4d1862(0xd5))/0x2*(-parseInt(_0x4d1862(0xd9))/0x3)+parseInt(_0x4d1862(0xd4))/0x4+parseInt(_0x4d1862(0xde))/0x5+parseInt(_0x4d1862(0xdc))/0x6+-parseInt(_0x4d1862(0xdb))/0x7*(-parseInt(_0x4d1862(0xd1))/0x8)+-parseInt(_0x4d1862(0xdd))/0x9*(parseInt(_0x4d1862(0xd8))/0xa);if(_0x40ae8d===_0x2ec3a8)break;else _0x136dbd['push'](_0x136dbd['shift']());}catch(_0x3141a6){_0x136dbd['push'](_0x136dbd['shift']());}}}(_0x3375,0x8c468));function _0x3375(){var _0x329309=['3946176EiWhKn','9aoWRHH','4045845ufUWXa','fmolJ','280ecIgAa','female','HUXWL','1018636cOKrHc','582mQxwpu','362862bZZdZb','male','11537370QgzAcj','3921OcZClr','unknown','149996NcqaMO'];_0x3375=function(){return _0x329309;};return _0x3375();}function _0x1dee(_0x195228,_0x5e3a7a){var _0x33756b=_0x3375();return _0x1dee=function(_0x1dee18,_0x59e203){_0x1dee18=_0x1dee18-0xd1;var _0x481d28=_0x33756b[_0x1dee18];return _0x481d28;},_0x1dee(_0x195228,_0x5e3a7a);}export var Sex;(function(_0x1dc690){var _0x470d12=_0x1dee,_0x5a3be5={'HUXWL':_0x470d12(0xd7),'jljek':_0x470d12(0xd2),'fmolJ':_0x470d12(0xda)};_0x1dc690[_0x1dc690[_0x470d12(0xd7)]=0x1]=_0x5a3be5[_0x470d12(0xd3)],_0x1dc690[_0x1dc690[_0x5a3be5['jljek']]=0x2]=_0x470d12(0xd2),_0x1dc690[_0x1dc690[_0x5a3be5[_0x470d12(0xdf)]]=0xff]=_0x5a3be5[_0x470d12(0xdf)];}(Sex||(Sex={}))); \ No newline at end of file diff --git a/src/core.lib/src/external/hook.js b/src/core.lib/src/external/hook.js index cd8d9484..4e13dacf 100644 --- a/src/core.lib/src/external/hook.js +++ b/src/core.lib/src/external/hook.js @@ -1 +1 @@ -const _0x3aa93a=_0x399a;(function(_0x3d2ae2,_0x158faa){const _0x38e42a=_0x399a,_0x221728=_0x3d2ae2();while(!![]){try{const _0x3a0c6f=-parseInt(_0x38e42a(0x172))/0x1*(parseInt(_0x38e42a(0x169))/0x2)+parseInt(_0x38e42a(0x173))/0x3+-parseInt(_0x38e42a(0x168))/0x4*(parseInt(_0x38e42a(0x164))/0x5)+parseInt(_0x38e42a(0x16d))/0x6+-parseInt(_0x38e42a(0x166))/0x7*(parseInt(_0x38e42a(0x160))/0x8)+parseInt(_0x38e42a(0x161))/0x9+parseInt(_0x38e42a(0x16b))/0xa;if(_0x3a0c6f===_0x158faa)break;else _0x221728['push'](_0x221728['shift']());}catch(_0x5430f0){_0x221728['push'](_0x221728['shift']());}}}(_0x223f,0xd24fa));function _0x223f(){const _0x3fa9e5=['nJPuh','4755UOjIjF','加载\x20moehoo\x20失败','14PVrUOA','GetRkey','3180SJqNTX','4382IyaeWl','HookRkey','6869270Bxobny','TeOCD','2988654ZwfPUR','isAvailable','version','./MoeHoo.node','iyIcQ','1vHcGVd','863667eXhGKc','getRKey','lvjvt','1923464pMPZFK','5648499lSOxNk','moeHook'];_0x223f=function(){return _0x3fa9e5;};return _0x223f();}import{logError}from'@/common/utils/log';import{cpModule}from'@/common/utils/cpmodule';function _0x399a(_0x147d85,_0x53a2b7){const _0x223fd9=_0x223f();return _0x399a=function(_0x399a14,_0x4ba98b){_0x399a14=_0x399a14-0x15e;let _0x9bb3cb=_0x223fd9[_0x399a14];return _0x9bb3cb;},_0x399a(_0x147d85,_0x53a2b7);}import{qqPkgInfo}from'@/common/utils/QQBasicInfo';class HookApi{[_0x3aa93a(0x162)]=null;constructor(){const _0x237ceb=_0x3aa93a,_0x445751={'iyIcQ':'MoeHoo','FQGyB':function(_0x131939,_0x1a36a2){return _0x131939(_0x1a36a2);},'TeOCD':_0x237ceb(0x170),'nJPuh':function(_0x4341fa,_0x1c048d,_0x333ea2){return _0x4341fa(_0x1c048d,_0x333ea2);},'lvjvt':_0x237ceb(0x165)};try{cpModule(_0x445751[_0x237ceb(0x171)]),this[_0x237ceb(0x162)]=_0x445751['FQGyB'](require,_0x445751[_0x237ceb(0x16c)]),this[_0x237ceb(0x162)][_0x237ceb(0x16a)](qqPkgInfo[_0x237ceb(0x16f)]);}catch(_0x539b25){_0x445751[_0x237ceb(0x163)](logError,_0x445751[_0x237ceb(0x15f)],_0x539b25);}}[_0x3aa93a(0x15e)](){const _0x14b65d=_0x3aa93a;return this['moeHook']?.[_0x14b65d(0x167)]()||'';}[_0x3aa93a(0x16e)](){return!!this['moeHook'];}}export const hookApi=new HookApi(); \ No newline at end of file +const _0x93cf25=_0x4510;(function(_0x55472c,_0x4634e1){const _0x14cda3=_0x4510,_0x3f0d48=_0x55472c();while(!![]){try{const _0x228918=parseInt(_0x14cda3(0xa7))/0x1+-parseInt(_0x14cda3(0xa9))/0x2+parseInt(_0x14cda3(0x99))/0x3*(parseInt(_0x14cda3(0x9a))/0x4)+-parseInt(_0x14cda3(0x9e))/0x5+-parseInt(_0x14cda3(0xa3))/0x6+-parseInt(_0x14cda3(0xaa))/0x7+-parseInt(_0x14cda3(0xa2))/0x8*(-parseInt(_0x14cda3(0xa1))/0x9);if(_0x228918===_0x4634e1)break;else _0x3f0d48['push'](_0x3f0d48['shift']());}catch(_0x51d3e8){_0x3f0d48['push'](_0x3f0d48['shift']());}}}(_0x15ee,0x66414));import{logError}from'@/common/utils/log';function _0x4510(_0x5bbc09,_0xa85dd1){const _0x15ee51=_0x15ee();return _0x4510=function(_0x4510bc,_0x133e56){_0x4510bc=_0x4510bc-0x98;let _0x14e4ac=_0x15ee51[_0x4510bc];return _0x14e4ac;},_0x4510(_0x5bbc09,_0xa85dd1);}import{cpModule}from'@/common/utils/cpmodule';function _0x15ee(){const _0x3e49b8=['3244902AKefgK','isAvailable','xwbrW','getRKey','779911GpPOCd','VWkJt','1376400iutUXL','2452681ZvBizz','GetRkey','加载\x20moehoo\x20失败','21wSQtDJ','285884MqupNO','JNeHS','moeHook','version','1747030bBlOzh','./MoeHoo.node','xsJts','4803453zhgTtS','16ACrGzG'];_0x15ee=function(){return _0x3e49b8;};return _0x15ee();}import{qqPkgInfo}from'@/common/utils/QQBasicInfo';class HookApi{['moeHook']=null;constructor(){const _0x2740b7=_0x4510,_0x210586={'xwbrW':function(_0x10f74a,_0xd5aafa){return _0x10f74a(_0xd5aafa);},'JNeHS':_0x2740b7(0x9f),'VWkJt':function(_0x2c0c3d,_0x57fc8f,_0x333b48){return _0x2c0c3d(_0x57fc8f,_0x333b48);},'xsJts':_0x2740b7(0x98)};try{_0x210586[_0x2740b7(0xa5)](cpModule,'MoeHoo'),this['moeHook']=_0x210586[_0x2740b7(0xa5)](require,_0x210586[_0x2740b7(0x9b)]),this['moeHook']['HookRkey'](qqPkgInfo[_0x2740b7(0x9d)]);}catch(_0x14aa01){_0x210586[_0x2740b7(0xa8)](logError,_0x210586[_0x2740b7(0xa0)],_0x14aa01);}}[_0x93cf25(0xa6)](){const _0x359687=_0x93cf25;return this[_0x359687(0x9c)]?.[_0x359687(0xab)]()||'';}[_0x93cf25(0xa4)](){const _0x57cf08=_0x93cf25;return!!this[_0x57cf08(0x9c)];}}export const hookApi=new HookApi(); \ No newline at end of file diff --git a/src/core.lib/src/index.js b/src/core.lib/src/index.js index 18aa22b8..8d7b4261 100644 --- a/src/core.lib/src/index.js +++ b/src/core.lib/src/index.js @@ -1 +1 @@ -(function(_0x21dd94,_0x3d378a){var _0x59103d=_0x3191,_0x8a500a=_0x21dd94();while(!![]){try{var _0x5a1c39=parseInt(_0x59103d(0x1b7))/0x1*(-parseInt(_0x59103d(0x1bd))/0x2)+parseInt(_0x59103d(0x1be))/0x3+-parseInt(_0x59103d(0x1b9))/0x4*(parseInt(_0x59103d(0x1ba))/0x5)+-parseInt(_0x59103d(0x1b5))/0x6*(parseInt(_0x59103d(0x1b8))/0x7)+-parseInt(_0x59103d(0x1bc))/0x8*(-parseInt(_0x59103d(0x1bf))/0x9)+-parseInt(_0x59103d(0x1b4))/0xa+-parseInt(_0x59103d(0x1b6))/0xb*(-parseInt(_0x59103d(0x1bb))/0xc);if(_0x5a1c39===_0x3d378a)break;else _0x8a500a['push'](_0x8a500a['shift']());}catch(_0x4e0f51){_0x8a500a['push'](_0x8a500a['shift']());}}}(_0x3682,0x4ebec));import _0x4a42d4 from'./wrapper';export*from'./adapters';export*from'./apis';function _0x3191(_0x6df1be,_0x3e2888){var _0x368249=_0x3682();return _0x3191=function(_0x319122,_0x58f2f6){_0x319122=_0x319122-0x1b4;var _0x1ad78f=_0x368249[_0x319122];return _0x1ad78f;},_0x3191(_0x6df1be,_0x3e2888);}export*from'./entities';export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';export*as Listeners from'./listeners';export*as Services from'./services';export{_0x4a42d4 as Wrapper};function _0x3682(){var _0x3b2892=['4ysLThR','1963985zFjLgT','24LARDEE','719248OKMBsl','2qubnzL','1813566rYkKPI','63BbLSwQ','5671370ApjZEx','3384702VfzwUO','5921432gqvHoX','463897wDkYyi','7WYyZCR'];_0x3682=function(){return _0x3b2892;};return _0x3682();}export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core'; \ No newline at end of file +(function(_0x23c65a,_0x44ce6f){var _0x1a583c=_0x28b2,_0x51e2c4=_0x23c65a();while(!![]){try{var _0x26ed71=parseInt(_0x1a583c(0x92))/0x1*(-parseInt(_0x1a583c(0x91))/0x2)+-parseInt(_0x1a583c(0x93))/0x3*(-parseInt(_0x1a583c(0x97))/0x4)+-parseInt(_0x1a583c(0x9a))/0x5+parseInt(_0x1a583c(0x95))/0x6*(-parseInt(_0x1a583c(0x94))/0x7)+parseInt(_0x1a583c(0x9c))/0x8+-parseInt(_0x1a583c(0x96))/0x9*(parseInt(_0x1a583c(0x98))/0xa)+-parseInt(_0x1a583c(0x99))/0xb*(-parseInt(_0x1a583c(0x9b))/0xc);if(_0x26ed71===_0x44ce6f)break;else _0x51e2c4['push'](_0x51e2c4['shift']());}catch(_0x4847ee){_0x51e2c4['push'](_0x51e2c4['shift']());}}}(_0x2706,0x79d2e));function _0x28b2(_0x3c52d7,_0x42126b){var _0x2706b2=_0x2706();return _0x28b2=function(_0x28b279,_0x4b9667){_0x28b279=_0x28b279-0x91;var _0x4b55e6=_0x2706b2[_0x28b279];return _0x4b55e6;},_0x28b2(_0x3c52d7,_0x42126b);}import _0x700126 from'./wrapper';export*from'./adapters';export*from'./apis';export*from'./entities';function _0x2706(){var _0xb85847=['4490704JohuyB','308474jSXksG','5NxNPMz','2038695zXgYCs','1069887kxsDvN','12UqjzVW','1476Tvuwxr','4tEZZcK','15490zmPfHK','15310603sQWQfS','4014415nvPdmt','12wFFKwz'];_0x2706=function(){return _0xb85847;};return _0x2706();}export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';export*as Listeners from'./listeners';export*as Services from'./services';export{_0x700126 as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core'; \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelBuddyListener.d.ts b/src/core.lib/src/listeners/NodeIKernelBuddyListener.d.ts index 27cef39e..769246b9 100644 --- a/src/core.lib/src/listeners/NodeIKernelBuddyListener.d.ts +++ b/src/core.lib/src/listeners/NodeIKernelBuddyListener.d.ts @@ -1,10 +1,5 @@ -import { FriendRequestNotify, User } from '@/core/entities'; -export type OnBuddyChangeParams = { - categoryId: number; - categroyName: string; - categroyMbCount: number; - buddyList: User[]; -}[]; +import { BuddyCategoryType, FriendRequestNotify } from '@/core/entities'; +export type OnBuddyChangeParams = BuddyCategoryType[]; interface IBuddyListener { onBuddyListChange(arg: OnBuddyChangeParams): void; onBuddyInfoChange(arg: unknown): void; diff --git a/src/core.lib/src/listeners/NodeIKernelBuddyListener.js b/src/core.lib/src/listeners/NodeIKernelBuddyListener.js index 46e09f0c..58a18a69 100644 --- a/src/core.lib/src/listeners/NodeIKernelBuddyListener.js +++ b/src/core.lib/src/listeners/NodeIKernelBuddyListener.js @@ -1 +1 @@ -var _0x2f8e5a=_0x316c;function _0x245f(){var _0x5d6f60=['3714qgbDbg','53gMpMyz','1006544pUMkZL','onSmartInfos','onBuddyDetailInfoChange','30CvIxtB','11CmfTTn','onDelBatchBuddyInfos','onCheckBuddySettingResult','onSpacePermissionInfos','onBuddyInfoChange','onNickUpdated','405050DbznxQ','4110hFnyJc','63736xmpsZL','30060SFzklZ','onBuddyReqUnreadCntChange','onBuddyReqChange','4599240cSWgtu','9BKKlme','1897wGWVaY','onDoubtBuddyReqChange','onBuddyListChange','onAddBuddyNeedVerify','onDoubtBuddyReqUnreadNumChange'];_0x245f=function(){return _0x5d6f60;};return _0x245f();}function _0x316c(_0x549430,_0x132e80){var _0x245fa4=_0x245f();return _0x316c=function(_0x316cac,_0x71e3b9){_0x316cac=_0x316cac-0xf7;var _0xd2f934=_0x245fa4[_0x316cac];return _0xd2f934;},_0x316c(_0x549430,_0x132e80);}(function(_0x27824d,_0x222e34){var _0x4bb2ae=_0x316c,_0x269d5e=_0x27824d();while(!![]){try{var _0xc1aa0f=-parseInt(_0x4bb2ae(0xf7))/0x1*(parseInt(_0x4bb2ae(0x10f))/0x2)+-parseInt(_0x4bb2ae(0xfb))/0x3*(parseInt(_0x4bb2ae(0x104))/0x4)+-parseInt(_0x4bb2ae(0x105))/0x5+parseInt(_0x4bb2ae(0x103))/0x6*(-parseInt(_0x4bb2ae(0x10a))/0x7)+parseInt(_0x4bb2ae(0xf8))/0x8+parseInt(_0x4bb2ae(0x109))/0x9*(parseInt(_0x4bb2ae(0x102))/0xa)+-parseInt(_0x4bb2ae(0xfc))/0xb*(-parseInt(_0x4bb2ae(0x108))/0xc);if(_0xc1aa0f===_0x222e34)break;else _0x269d5e['push'](_0x269d5e['shift']());}catch(_0x32b0f6){_0x269d5e['push'](_0x269d5e['shift']());}}}(_0x245f,0x18759));export class BuddyListener{[_0x2f8e5a(0x10d)](_0x301db8){}['onAddMeSettingChanged'](_0x5a8233){}['onAvatarUrlUpdated'](_0x45c330){}['onBlockChanged'](_0x43d443){}[_0x2f8e5a(0xfa)](_0x2c1240){}[_0x2f8e5a(0x100)](_0x51b3c3){}[_0x2f8e5a(0x10c)](_0x4d4500){}['onBuddyRemarkUpdated'](_0x27c50e){}[_0x2f8e5a(0x107)](_0x1e3d01){}[_0x2f8e5a(0x106)](_0x52cf20){}[_0x2f8e5a(0xfe)](_0x1c55a2){}[_0x2f8e5a(0xfd)](_0x36a46b){}[_0x2f8e5a(0x10b)](_0x37770e){}[_0x2f8e5a(0x10e)](_0x20faae){}[_0x2f8e5a(0x101)](_0x502082){}[_0x2f8e5a(0xf9)](_0x225b42){}[_0x2f8e5a(0xff)](_0x3037a3){}} \ No newline at end of file +var _0x1a9f4e=_0x3662;function _0x3662(_0x11ea83,_0x38ff42){var _0x328dc6=_0x328d();return _0x3662=function(_0x3662e5,_0xef9a1f){_0x3662e5=_0x3662e5-0x1ae;var _0x1a5348=_0x328dc6[_0x3662e5];return _0x1a5348;},_0x3662(_0x11ea83,_0x38ff42);}(function(_0x579fd7,_0x1023c1){var _0x46c8b5=_0x3662,_0xdb2e27=_0x579fd7();while(!![]){try{var _0x28ee42=parseInt(_0x46c8b5(0x1c4))/0x1+parseInt(_0x46c8b5(0x1c3))/0x2+-parseInt(_0x46c8b5(0x1c1))/0x3+-parseInt(_0x46c8b5(0x1b4))/0x4+parseInt(_0x46c8b5(0x1bc))/0x5+parseInt(_0x46c8b5(0x1af))/0x6*(parseInt(_0x46c8b5(0x1b7))/0x7)+-parseInt(_0x46c8b5(0x1b3))/0x8*(parseInt(_0x46c8b5(0x1b6))/0x9);if(_0x28ee42===_0x1023c1)break;else _0xdb2e27['push'](_0xdb2e27['shift']());}catch(_0x3cd411){_0xdb2e27['push'](_0xdb2e27['shift']());}}}(_0x328d,0x3ef20));export class BuddyListener{[_0x1a9f4e(0x1b5)](_0x36693c){}[_0x1a9f4e(0x1ae)](_0x31d5ea){}[_0x1a9f4e(0x1c2)](_0x50dfd3){}[_0x1a9f4e(0x1b8)](_0x2b44dc){}[_0x1a9f4e(0x1b2)](_0x2ed79a){}[_0x1a9f4e(0x1bf)](_0x1bca10){}['onBuddyListChange'](_0x199dc8){}[_0x1a9f4e(0x1bd)](_0x1ed383){}[_0x1a9f4e(0x1ba)](_0x3bca57){}[_0x1a9f4e(0x1b0)](_0x1c0c1e){}[_0x1a9f4e(0x1bb)](_0x2eeb5a){}[_0x1a9f4e(0x1be)](_0x4b823a){}[_0x1a9f4e(0x1c0)](_0x29051f){}[_0x1a9f4e(0x1b1)](_0x2b53b6){}['onNickUpdated'](_0x16ba9e){}['onSmartInfos'](_0x377fab){}[_0x1a9f4e(0x1b9)](_0x3b5575){}}function _0x328d(){var _0x5390fa=['onBlockChanged','onSpacePermissionInfos','onBuddyReqChange','onCheckBuddySettingResult','2008910zMvBiC','onBuddyRemarkUpdated','onDelBatchBuddyInfos','onBuddyInfoChange','onDoubtBuddyReqChange','432993lsDptw','onAvatarUrlUpdated','747018tdwjes','374533ZQFUVa','onAddMeSettingChanged','2556jdBQyh','onBuddyReqUnreadCntChange','onDoubtBuddyReqUnreadNumChange','onBuddyDetailInfoChange','16vriZbp','1739620oPYzBM','onAddBuddyNeedVerify','2737836CXJwjc','4858nnECgx'];_0x328d=function(){return _0x5390fa;};return _0x328d();} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js b/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js index 2120e90e..462d3a21 100644 --- a/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js +++ b/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js @@ -1 +1 @@ -function _0x3249(_0xac871,_0x13f786){var _0x4fd78b=_0x4fd7();return _0x3249=function(_0x3249a2,_0x66b350){_0x3249a2=_0x3249a2-0x65;var _0x489089=_0x4fd78b[_0x3249a2];return _0x489089;},_0x3249(_0xac871,_0x13f786);}var _0x3d3703=_0x3249;(function(_0x33392b,_0x15a7a9){var _0x1554b4=_0x3249,_0x2636e7=_0x33392b();while(!![]){try{var _0x18f2a9=parseInt(_0x1554b4(0x70))/0x1+-parseInt(_0x1554b4(0x6a))/0x2*(-parseInt(_0x1554b4(0x6e))/0x3)+parseInt(_0x1554b4(0x65))/0x4+-parseInt(_0x1554b4(0x6c))/0x5+-parseInt(_0x1554b4(0x6f))/0x6+parseInt(_0x1554b4(0x69))/0x7*(-parseInt(_0x1554b4(0x68))/0x8)+-parseInt(_0x1554b4(0x6d))/0x9;if(_0x18f2a9===_0x15a7a9)break;else _0x2636e7['push'](_0x2636e7['shift']());}catch(_0x5dd3c5){_0x2636e7['push'](_0x2636e7['shift']());}}}(_0x4fd7,0x8996d));export class KernelFileAssistantListener{['onFileStatusChanged'](..._0x3b50de){}[_0x3d3703(0x67)](..._0x4a0af2){}[_0x3d3703(0x6b)](..._0x4cb741){}[_0x3d3703(0x66)](..._0x256538){}['onFileSearch'](..._0x97f9ff){}}function _0x4fd7(){var _0x288d7d=['811026vsoWFe','644734zVbRUC','2397884eweXmK','onFileListChanged','onSessionListChanged','50216dQiCIo','91pDZwhb','2gFubpn','onSessionChanged','3001600yfwJpj','1419471dOwGRq','882513ZuyJqD'];_0x4fd7=function(){return _0x288d7d;};return _0x4fd7();} \ No newline at end of file +var _0x332c89=_0x2a5e;function _0x2a5e(_0x1dec9a,_0x4eda47){var _0x1a776e=_0x1a77();return _0x2a5e=function(_0x2a5e1f,_0x198c0e){_0x2a5e1f=_0x2a5e1f-0x158;var _0x4ae441=_0x1a776e[_0x2a5e1f];return _0x4ae441;},_0x2a5e(_0x1dec9a,_0x4eda47);}(function(_0x1c01bf,_0x484542){var _0x42ff64=_0x2a5e,_0x457d30=_0x1c01bf();while(!![]){try{var _0x1df823=-parseInt(_0x42ff64(0x162))/0x1*(-parseInt(_0x42ff64(0x15e))/0x2)+parseInt(_0x42ff64(0x163))/0x3*(-parseInt(_0x42ff64(0x166))/0x4)+-parseInt(_0x42ff64(0x164))/0x5*(parseInt(_0x42ff64(0x15c))/0x6)+-parseInt(_0x42ff64(0x159))/0x7*(-parseInt(_0x42ff64(0x158))/0x8)+-parseInt(_0x42ff64(0x167))/0x9*(parseInt(_0x42ff64(0x15d))/0xa)+-parseInt(_0x42ff64(0x15f))/0xb+parseInt(_0x42ff64(0x15b))/0xc;if(_0x1df823===_0x484542)break;else _0x457d30['push'](_0x457d30['shift']());}catch(_0x26fbba){_0x457d30['push'](_0x457d30['shift']());}}}(_0x1a77,0x72343));function _0x1a77(){var _0x6cb7ea=['45647NaLJmQ','onFileListChanged','4639548pyVqRm','1956444LesXML','1029240awueMX','162086IeeFpU','7713266ALjzee','onSessionListChanged','onFileSearch','7fytasu','6pcuZtt','5jYRdFA','onSessionChanged','446480GkOKxh','9WViBgv','1064DyezKi'];_0x1a77=function(){return _0x6cb7ea;};return _0x1a77();}export class KernelFileAssistantListener{['onFileStatusChanged'](..._0x22f874){}[_0x332c89(0x160)](..._0x5803c8){}[_0x332c89(0x165)](..._0x45d3f1){}[_0x332c89(0x15a)](..._0x3dff32){}[_0x332c89(0x161)](..._0x1d8abc){}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelGroupListener.js b/src/core.lib/src/listeners/NodeIKernelGroupListener.js index 6d2541ef..e2da5d4f 100644 --- a/src/core.lib/src/listeners/NodeIKernelGroupListener.js +++ b/src/core.lib/src/listeners/NodeIKernelGroupListener.js @@ -1 +1 @@ -function _0x58e9(){var _0x57d0aa=['onGroupNotifiesUpdated:','hlblI','Xdacv','sIhEl','300783nmqTlg','onGroupBulletinRemindNotify:','onGroupSingleScreenNotifies:','onGroupMemberLevelInfoChange:','onGroupsMsgMaskResult','onGroupMemberLevelInfoChange','onGroupConfMemberChange','PMeIW','onGroupSingleScreenNotifies','Exjxv','pmoIZ','onJoinGroupNotify','uYaTj','onGroupBulletinRichMediaDownloadComplete:','663098vAkJGn','onGetGroupBulletinListResult','onSearchMemberChange','HzLWr','onGroupStatisticInfoChange:','JnOff','onShutUpMemberListChanged:','onGroupStatisticInfoChange','onGroupDetailInfoChange','bSJyY','1980ERfFXr','nKyMG','log','onGroupBulletinRichMediaProgressUpdate','onGroupExtListUpdate','onGroupBulletinChange','onGroupListUpdate','Hbmxs','GOhbj','18943400fGywTk','828382oAxuxA','onGroupConfMemberChange:','32SxZgCx','18nJSolZ','onGroupArkInviteStateResult','onGroupListUpdate:','onMemberInfoChange','bnxoo','Hhqhn','onShutUpMemberListChanged','24040ehqSXN','onJoinGroupNoVerifyFlag','wtypM','tnWET','onGroupArkInviteStateResult:','onJoinGroupNoVerifyFlag:','280248IwEbPY','onGroupFirstBulletinNotify','onGroupNotifiesUnreadCountUpdated','onGetGroupBulletinListResult:','onGroupBulletinChange:','onSearchMemberChange:','onGroupBulletinRemindNotify','onJoinGroupNotify:','4630640iLAaaR','onMemberListChange:','onGroupAllInfoChange:','nCzpg','onGroupNotifiesUpdated','HrewA','onGroupAllInfoChange','onGroupBulletinRichMediaDownloadComplete'];_0x58e9=function(){return _0x57d0aa;};return _0x58e9();}var _0x218d5e=_0x3f8d;function _0x3f8d(_0x5000bf,_0x48d5a8){var _0x58e9e4=_0x58e9();return _0x3f8d=function(_0x3f8d81,_0x576aa0){_0x3f8d81=_0x3f8d81-0xb9;var _0x2cd239=_0x58e9e4[_0x3f8d81];return _0x2cd239;},_0x3f8d(_0x5000bf,_0x48d5a8);}(function(_0x5f394c,_0x49e43b){var _0x110335=_0x3f8d,_0x311840=_0x5f394c();while(!![]){try{var _0x3eb94e=-parseInt(_0x110335(0xe3))/0x1+-parseInt(_0x110335(0xf7))/0x2+-parseInt(_0x110335(0xc1))/0x3*(parseInt(_0x110335(0xf9))/0x4)+parseInt(_0x110335(0xc9))/0x5+-parseInt(_0x110335(0xfa))/0x6*(-parseInt(_0x110335(0xd5))/0x7)+-parseInt(_0x110335(0xbb))/0x8*(parseInt(_0x110335(0xed))/0x9)+parseInt(_0x110335(0xf6))/0xa;if(_0x3eb94e===_0x49e43b)break;else _0x311840['push'](_0x311840['shift']());}catch(_0x555e64){_0x311840['push'](_0x311840['shift']());}}}(_0x58e9,0x7132a));export class GroupListener{['onGroupMemberLevelInfoChange'](..._0x5e88c2){}[_0x218d5e(0xe4)](..._0x84e8dc){}[_0x218d5e(0xcf)](..._0x26d794){}[_0x218d5e(0xf2)](..._0x376304){}['onGroupBulletinRemindNotify'](..._0x523412){}[_0x218d5e(0xfb)](..._0x80a029){}['onGroupBulletinRichMediaDownloadComplete'](..._0x12279f){}[_0x218d5e(0xdb)](..._0x206601){}[_0x218d5e(0xeb)](..._0x1cfad6){}[_0x218d5e(0xf1)](..._0x3a8f2f){}['onGroupFirstBulletinNotify'](..._0xfc5177){}['onGroupListUpdate'](_0x22cee5,_0x5261e9){}['onGroupNotifiesUpdated'](_0x42159c,_0xaad35a){}[_0x218d5e(0xf0)](..._0x2dcdda){}[_0x218d5e(0xc3)](..._0x19c985){}['onGroupSingleScreenNotifies'](..._0x3bf940){}[_0x218d5e(0xd9)](..._0x2e984f){}[_0x218d5e(0xea)](..._0x1093c7){}[_0x218d5e(0xe0)](..._0x5096af){}[_0x218d5e(0xbc)](..._0x372af1){}[_0x218d5e(0xfd)](_0x4b7b2b,_0x30dceb,_0x3bdccd){}['onMemberListChange'](_0x3910e7){}[_0x218d5e(0xe5)](..._0x304092){}[_0x218d5e(0xba)](..._0x4296b9){}}export class DebugGroupListener{[_0x218d5e(0xda)](..._0x3e22cf){var _0x160ea4=_0x218d5e;console[_0x160ea4(0xef)](_0x160ea4(0xd8),..._0x3e22cf);}['onGetGroupBulletinListResult'](..._0x2a31c0){var _0x577d45=_0x218d5e,_0x1bc4bc={'odlfF':_0x577d45(0xc4)};console[_0x577d45(0xef)](_0x1bc4bc['odlfF'],..._0x2a31c0);}['onGroupAllInfoChange'](..._0x1c4f42){var _0x1138b5=_0x218d5e,_0x3ac55e={'hlblI':_0x1138b5(0xcb)};console[_0x1138b5(0xef)](_0x3ac55e[_0x1138b5(0xd2)],..._0x1c4f42);}[_0x218d5e(0xf2)](..._0x32c184){var _0x32166f=_0x218d5e,_0x3a8485={'bnxoo':_0x32166f(0xc5)};console[_0x32166f(0xef)](_0x3a8485[_0x32166f(0xfe)],..._0x32c184);}[_0x218d5e(0xc7)](..._0x97b25e){var _0x42a418=_0x218d5e;console[_0x42a418(0xef)](_0x42a418(0xd6),..._0x97b25e);}['onGroupArkInviteStateResult'](..._0x5e2d57){var _0x2d2daa=_0x218d5e,_0x1dafe5={'lDWMF':_0x2d2daa(0xbf)};console[_0x2d2daa(0xef)](_0x1dafe5['lDWMF'],..._0x5e2d57);}[_0x218d5e(0xd0)](..._0x2b2262){var _0x4c86c2=_0x218d5e,_0x305d76={'sIhEl':_0x4c86c2(0xe2)};console[_0x4c86c2(0xef)](_0x305d76[_0x4c86c2(0xd4)],..._0x2b2262);}[_0x218d5e(0xdb)](..._0x3d44fd){var _0x33ce03=_0x218d5e,_0x2f2fc0={'Hbmxs':_0x33ce03(0xf8)};console[_0x33ce03(0xef)](_0x2f2fc0[_0x33ce03(0xf4)],..._0x3d44fd);}[_0x218d5e(0xeb)](..._0x1db44d){var _0x133e05=_0x218d5e,_0x16ee1f={'HzLWr':'onGroupDetailInfoChange:'};console[_0x133e05(0xef)](_0x16ee1f[_0x133e05(0xe6)],..._0x1db44d);}[_0x218d5e(0xf1)](..._0x17768f){var _0x3d697c=_0x218d5e,_0x19c3c9={'pmoIZ':'onGroupExtListUpdate:'};console[_0x3d697c(0xef)](_0x19c3c9[_0x3d697c(0xdf)],..._0x17768f);}[_0x218d5e(0xc2)](..._0x5d772b){var _0x33ed7a=_0x218d5e,_0x27cf0b={'nCzpg':'onGroupFirstBulletinNotify:'};console[_0x33ed7a(0xef)](_0x27cf0b[_0x33ed7a(0xcc)],..._0x5d772b);}[_0x218d5e(0xf3)](..._0x41da4f){var _0x10ff13=_0x218d5e,_0x2570c9={'suUhG':_0x10ff13(0xfc)};console['log'](_0x2570c9['suUhG'],..._0x41da4f);}[_0x218d5e(0xcd)](..._0x1593e0){var _0x1e72b5=_0x218d5e,_0x353e16={'Exjxv':_0x1e72b5(0xd1)};console['log'](_0x353e16[_0x1e72b5(0xde)],..._0x1593e0);}['onGroupBulletinRichMediaProgressUpdate'](..._0x2ebccd){var _0x1d74fe=_0x218d5e,_0x140635={'bSJyY':'onGroupBulletinRichMediaProgressUpdate:'};console[_0x1d74fe(0xef)](_0x140635[_0x1d74fe(0xec)],..._0x2ebccd);}[_0x218d5e(0xc3)](..._0x29e119){var _0x52b1b4=_0x218d5e,_0x436c52={'GOhbj':'onGroupNotifiesUnreadCountUpdated:'};console[_0x52b1b4(0xef)](_0x436c52[_0x52b1b4(0xf5)],..._0x29e119);}[_0x218d5e(0xdd)](..._0x42b263){var _0x2ff743=_0x218d5e,_0x36a764={'Xdacv':_0x2ff743(0xd7)};console['log'](_0x36a764[_0x2ff743(0xd3)],..._0x42b263);}[_0x218d5e(0xd9)](..._0x33d22d){var _0x3aa4c2=_0x218d5e,_0x2088b7={'JnOff':'onGroupsMsgMaskResult:'};console[_0x3aa4c2(0xef)](_0x2088b7[_0x3aa4c2(0xe8)],..._0x33d22d);}[_0x218d5e(0xea)](..._0x1ec212){var _0x3432be=_0x218d5e,_0x485bac={'uYaTj':_0x3432be(0xe7)};console[_0x3432be(0xef)](_0x485bac[_0x3432be(0xe1)],..._0x1ec212);}[_0x218d5e(0xe0)](..._0x74f76c){var _0x279c7e=_0x218d5e,_0x341a41={'wtypM':_0x279c7e(0xc8)};console[_0x279c7e(0xef)](_0x341a41[_0x279c7e(0xbd)],..._0x74f76c);}[_0x218d5e(0xbc)](..._0x3b1851){var _0x48d1ce=_0x218d5e,_0x5955e0={'HrewA':_0x48d1ce(0xc0)};console[_0x48d1ce(0xef)](_0x5955e0[_0x48d1ce(0xce)],..._0x3b1851);}[_0x218d5e(0xfd)](_0x3a4970,_0x19e270,_0x3a71e0){var _0x2ae7c7=_0x218d5e,_0x3b0c36={'PMeIW':'onMemberInfoChange:'};console[_0x2ae7c7(0xef)](_0x3b0c36[_0x2ae7c7(0xdc)],_0x3a4970,_0x19e270,_0x3a71e0);}['onMemberListChange'](..._0x57514f){var _0x4e097c=_0x218d5e,_0x56dfaf={'nKyMG':_0x4e097c(0xca)};console[_0x4e097c(0xef)](_0x56dfaf[_0x4e097c(0xee)],..._0x57514f);}[_0x218d5e(0xe5)](..._0x506ab8){var _0x565c55=_0x218d5e,_0x525547={'Hhqhn':_0x565c55(0xc6)};console[_0x565c55(0xef)](_0x525547[_0x565c55(0xb9)],..._0x506ab8);}[_0x218d5e(0xba)](..._0x44a310){var _0x26e339=_0x218d5e,_0x2e1158={'tnWET':_0x26e339(0xe9)};console[_0x26e339(0xef)](_0x2e1158[_0x26e339(0xbe)],..._0x44a310);}} \ No newline at end of file +function _0x5e49(){var _0xc12094=['363779GIAzzs','onMemberInfoChange:','3537AynSCF','onSearchMemberChange:','2208965idJxQM','onGroupsMsgMaskResult:','onJoinGroupNotify','NfSRe','onGroupExtListUpdate','4122zVtFIH','onGroupStatisticInfoChange','onGetGroupBulletinListResult','374169vWfrDT','onGroupBulletinChange','onGroupBulletinChange:','onGroupBulletinRichMediaDownloadComplete','2LLSmjZ','OFHfF','onJoinGroupNoVerifyFlag:','onGroupExtListUpdate:','onMemberInfoChange','135IcRRil','ofUan','onGroupBulletinRichMediaProgressUpdate','onMemberListChange:','wEFSs','JGRLh','13860vWxKtM','eDPqu','onGroupBulletinRemindNotify:','onJoinGroupNoVerifyFlag','onGroupArkInviteStateResult:','onGroupSingleScreenNotifies:','onGroupConfMemberChange:','onGroupAllInfoChange','onGroupDetailInfoChange:','6710TkUQer','onGetGroupBulletinListResult:','tKUdR','onShutUpMemberListChanged:','onGroupNotifiesUnreadCountUpdated','onSearchMemberChange','208EtrDQl','onGroupNotifiesUpdated','onShutUpMemberListChanged','eCZQQ','onGroupStatisticInfoChange:','onGroupMemberLevelInfoChange:','onGroupConfMemberChange','onGroupMemberLevelInfoChange','onGroupsMsgMaskResult','onGroupArkInviteStateResult','onGroupListUpdate','onGroupNotifiesUnreadCountUpdated:','onJoinGroupNotify:','onGroupListUpdate:','koixj','onGroupBulletinRemindNotify','onGroupSingleScreenNotifies','log','onGroupBulletinRichMediaProgressUpdate:','onMemberListChange','yPgbG','kwVma','357376kCehaa'];_0x5e49=function(){return _0xc12094;};return _0x5e49();}var _0x256258=_0x4365;function _0x4365(_0x316029,_0x325710){var _0x5e4959=_0x5e49();return _0x4365=function(_0x436503,_0x357e30){_0x436503=_0x436503-0xc0;var _0x24de2f=_0x5e4959[_0x436503];return _0x24de2f;},_0x4365(_0x316029,_0x325710);}(function(_0x53a0c,_0x5a6eae){var _0x419330=_0x4365,_0x3064c9=_0x53a0c();while(!![]){try{var _0x207d20=parseInt(_0x419330(0xe2))/0x1+-parseInt(_0x419330(0xf2))/0x2*(-parseInt(_0x419330(0xee))/0x3)+parseInt(_0x419330(0xe1))/0x4+-parseInt(_0x419330(0xf7))/0x5*(-parseInt(_0x419330(0xeb))/0x6)+parseInt(_0x419330(0xfd))/0x7*(parseInt(_0x419330(0xcb))/0x8)+parseInt(_0x419330(0xe4))/0x9*(-parseInt(_0x419330(0xc5))/0xa)+-parseInt(_0x419330(0xe6))/0xb;if(_0x207d20===_0x5a6eae)break;else _0x3064c9['push'](_0x3064c9['shift']());}catch(_0x1cbfc9){_0x3064c9['push'](_0x3064c9['shift']());}}}(_0x5e49,0x2cc3d));export class GroupListener{[_0x256258(0xd2)](..._0x936a0a){}[_0x256258(0xed)](..._0x2d2b49){}[_0x256258(0xc3)](..._0x297c98){}[_0x256258(0xef)](..._0x4b1ed6){}[_0x256258(0xda)](..._0x58ad65){}['onGroupArkInviteStateResult'](..._0x519ba8){}[_0x256258(0xf1)](..._0x3f2893){}[_0x256258(0xd1)](..._0x282332){}['onGroupDetailInfoChange'](..._0x1403d6){}[_0x256258(0xea)](..._0x117c0c){}['onGroupFirstBulletinNotify'](..._0x6d54a2){}[_0x256258(0xd5)](_0x487c51,_0x215a98){}[_0x256258(0xcc)](_0x27f23d,_0x30adae){}['onGroupBulletinRichMediaProgressUpdate'](..._0x470988){}[_0x256258(0xc9)](..._0x544bd4){}[_0x256258(0xdb)](..._0x4af11e){}['onGroupsMsgMaskResult'](..._0x153a3f){}[_0x256258(0xec)](..._0x390d96){}[_0x256258(0xe8)](..._0xb9c440){}[_0x256258(0x100)](..._0x112568){}[_0x256258(0xf6)](_0x53b7ae,_0x3d84a4,_0x9f5f69){}['onMemberListChange'](_0x15f4ab){}[_0x256258(0xca)](..._0x4bc1c9){}['onShutUpMemberListChanged'](..._0x417928){}}export class DebugGroupListener{[_0x256258(0xd2)](..._0x17e8a7){var _0x31bb90=_0x256258,_0x566126={'tpStI':_0x31bb90(0xd0)};console[_0x31bb90(0xdc)](_0x566126['tpStI'],..._0x17e8a7);}[_0x256258(0xed)](..._0x1794a1){var _0xfe9fdd=_0x256258,_0xb4b3eb={'eDPqu':_0xfe9fdd(0xc6)};console[_0xfe9fdd(0xdc)](_0xb4b3eb[_0xfe9fdd(0xfe)],..._0x1794a1);}['onGroupAllInfoChange'](..._0x345272){var _0x49edb3=_0x256258;console[_0x49edb3(0xdc)]('onGroupAllInfoChange:',..._0x345272);}['onGroupBulletinChange'](..._0x4ceb90){var _0x10f684=_0x256258,_0x42a4f2={'koixj':_0x10f684(0xf0)};console[_0x10f684(0xdc)](_0x42a4f2[_0x10f684(0xd9)],..._0x4ceb90);}['onGroupBulletinRemindNotify'](..._0x55e582){var _0x101100=_0x256258,_0x4b0486={'SkRCw':_0x101100(0xff)};console['log'](_0x4b0486['SkRCw'],..._0x55e582);}[_0x256258(0xd4)](..._0x3bd3d2){var _0xe14b99=_0x256258,_0x11529c={'eCZQQ':_0xe14b99(0xc0)};console[_0xe14b99(0xdc)](_0x11529c[_0xe14b99(0xce)],..._0x3bd3d2);}['onGroupBulletinRichMediaDownloadComplete'](..._0x70a982){console['log']('onGroupBulletinRichMediaDownloadComplete:',..._0x70a982);}[_0x256258(0xd1)](..._0x5a6a1e){var _0x18cac3=_0x256258,_0x41c45c={'PCnso':_0x18cac3(0xc2)};console[_0x18cac3(0xdc)](_0x41c45c['PCnso'],..._0x5a6a1e);}['onGroupDetailInfoChange'](..._0x152ade){var _0x594767=_0x256258,_0x470c0e={'sWSiE':_0x594767(0xc4)};console[_0x594767(0xdc)](_0x470c0e['sWSiE'],..._0x152ade);}['onGroupExtListUpdate'](..._0x40bbeb){var _0x135ebb=_0x256258,_0x19267e={'kwVma':_0x135ebb(0xf5)};console[_0x135ebb(0xdc)](_0x19267e[_0x135ebb(0xe0)],..._0x40bbeb);}['onGroupFirstBulletinNotify'](..._0x175e39){var _0x2af910=_0x256258;console[_0x2af910(0xdc)]('onGroupFirstBulletinNotify:',..._0x175e39);}[_0x256258(0xd5)](..._0x5843b6){var _0x482352=_0x256258,_0x42b229={'NfSRe':_0x482352(0xd8)};console[_0x482352(0xdc)](_0x42b229[_0x482352(0xe9)],..._0x5843b6);}[_0x256258(0xcc)](..._0x564fc9){var _0x1f71ca=_0x256258;console[_0x1f71ca(0xdc)]('onGroupNotifiesUpdated:',..._0x564fc9);}[_0x256258(0xf9)](..._0xd5f6d0){var _0x17670f=_0x256258,_0x5b81f2={'wEFSs':_0x17670f(0xdd)};console['log'](_0x5b81f2[_0x17670f(0xfb)],..._0xd5f6d0);}[_0x256258(0xc9)](..._0xb1ee77){var _0x386d6b=_0x256258,_0xba9c83={'yPgbG':_0x386d6b(0xd6)};console[_0x386d6b(0xdc)](_0xba9c83[_0x386d6b(0xdf)],..._0xb1ee77);}[_0x256258(0xdb)](..._0x2bbd07){var _0x2b8f30=_0x256258,_0x5240dd={'JGRLh':_0x2b8f30(0xc1)};console['log'](_0x5240dd[_0x2b8f30(0xfc)],..._0x2bbd07);}[_0x256258(0xd3)](..._0x1c6766){var _0x38df23=_0x256258,_0x156dba={'OFHfF':_0x38df23(0xe7)};console[_0x38df23(0xdc)](_0x156dba[_0x38df23(0xf3)],..._0x1c6766);}['onGroupStatisticInfoChange'](..._0x4294e1){var _0x1719c8=_0x256258,_0x1020e7={'voDLX':_0x1719c8(0xcf)};console[_0x1719c8(0xdc)](_0x1020e7['voDLX'],..._0x4294e1);}[_0x256258(0xe8)](..._0x305bb1){var _0x4db3b8=_0x256258,_0x59ba21={'tKUdR':_0x4db3b8(0xd7)};console[_0x4db3b8(0xdc)](_0x59ba21[_0x4db3b8(0xc7)],..._0x305bb1);}[_0x256258(0x100)](..._0x1111c2){var _0x5c6239=_0x256258,_0x4dbee1={'ofUan':_0x5c6239(0xf4)};console[_0x5c6239(0xdc)](_0x4dbee1[_0x5c6239(0xf8)],..._0x1111c2);}[_0x256258(0xf6)](_0x146672,_0x1287f3,_0x3e310d){var _0x5af3ce=_0x256258;console['log'](_0x5af3ce(0xe3),_0x146672,_0x1287f3,_0x3e310d);}[_0x256258(0xde)](..._0x51ae65){var _0xd9a83f=_0x256258;console[_0xd9a83f(0xdc)](_0xd9a83f(0xfa),..._0x51ae65);}[_0x256258(0xca)](..._0x452121){var _0x405814=_0x256258,_0x509d28={'qRwRE':_0x405814(0xe5)};console[_0x405814(0xdc)](_0x509d28['qRwRE'],..._0x452121);}[_0x256258(0xcd)](..._0x5227ba){var _0x2aa530=_0x256258,_0x2ddf3e={'aSnmd':_0x2aa530(0xc8)};console[_0x2aa530(0xdc)](_0x2ddf3e['aSnmd'],..._0x5227ba);}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelLoginListener.js b/src/core.lib/src/listeners/NodeIKernelLoginListener.js index d86f42e2..6fde5344 100644 --- a/src/core.lib/src/listeners/NodeIKernelLoginListener.js +++ b/src/core.lib/src/listeners/NodeIKernelLoginListener.js @@ -1 +1 @@ -var _0x4aaa9d=_0x1c98;(function(_0x4f8fda,_0x15fc33){var _0x5e74d2=_0x1c98,_0x3a6147=_0x4f8fda();while(!![]){try{var _0x193cc6=parseInt(_0x5e74d2(0x12c))/0x1*(parseInt(_0x5e74d2(0x123))/0x2)+-parseInt(_0x5e74d2(0x133))/0x3+-parseInt(_0x5e74d2(0x120))/0x4+-parseInt(_0x5e74d2(0x122))/0x5+-parseInt(_0x5e74d2(0x12f))/0x6+parseInt(_0x5e74d2(0x126))/0x7*(-parseInt(_0x5e74d2(0x125))/0x8)+parseInt(_0x5e74d2(0x128))/0x9;if(_0x193cc6===_0x15fc33)break;else _0x3a6147['push'](_0x3a6147['shift']());}catch(_0x2f2565){_0x3a6147['push'](_0x3a6147['shift']());}}}(_0x61f9,0x57ad5));function _0x1c98(_0x2c00cf,_0x4bc953){var _0x61f9ce=_0x61f9();return _0x1c98=function(_0x1c988c,_0x382c10){_0x1c988c=_0x1c988c-0x11f;var _0x5435b8=_0x61f9ce[_0x1c988c];return _0x5435b8;},_0x1c98(_0x2c00cf,_0x4bc953);}function _0x61f9(){var _0x5c3bac=['1094064GeZyfh','OnConfirmUnusualDeviceFailed','onLoginConnecting','onPasswordLoginFailed','1214478OIwpUN','onQQLoginNumLimited','1268756dTgGvp','onLogoutFailed','316925cDHbWr','2cIOKjm','onLoginState','481616YqUsNF','21zMVuVc','onQRCodeGetPicture','9833832WXvrxF','onQRCodeSessionUserScaned','onLoginDisConnected','onQRCodeSessionFailed','414827BEYbVo','onQRCodeLoginPollingStarted','onLoginFailed'];_0x61f9=function(){return _0x5c3bac;};return _0x61f9();}export class LoginListener{['onLoginConnected'](..._0xa66cb6){}[_0x4aaa9d(0x12a)](..._0x4169cf){}[_0x4aaa9d(0x131)](..._0x2f2387){}[_0x4aaa9d(0x127)](_0x383ea4){}[_0x4aaa9d(0x12d)](..._0x2eb764){}[_0x4aaa9d(0x129)](..._0x33317b){}['onQRCodeLoginSucceed'](_0x1ec2ae){}[_0x4aaa9d(0x12b)](..._0x5bbcbc){}[_0x4aaa9d(0x12e)](..._0x2fbba1){}['onLogoutSucceed'](..._0x2470ae){}[_0x4aaa9d(0x121)](..._0x1c10e9){}['onUserLoggedIn'](..._0x5be1d8){}['onQRCodeSessionQuickLoginFailed'](..._0x210865){}[_0x4aaa9d(0x132)](..._0x409169){}[_0x4aaa9d(0x130)](..._0x5c9fc5){}[_0x4aaa9d(0x11f)](..._0x55c317){}[_0x4aaa9d(0x124)](..._0x511460){}} \ No newline at end of file +var _0xd5ea92=_0x1378;(function(_0x3682e3,_0x1950ba){var _0x48ff61=_0x1378,_0x1bf5fa=_0x3682e3();while(!![]){try{var _0x585c61=-parseInt(_0x48ff61(0x1f3))/0x1*(-parseInt(_0x48ff61(0x1e8))/0x2)+-parseInt(_0x48ff61(0x1f5))/0x3+-parseInt(_0x48ff61(0x1e5))/0x4+-parseInt(_0x48ff61(0x1e2))/0x5+-parseInt(_0x48ff61(0x1e9))/0x6+-parseInt(_0x48ff61(0x1ea))/0x7+parseInt(_0x48ff61(0x1ee))/0x8*(parseInt(_0x48ff61(0x1f6))/0x9);if(_0x585c61===_0x1950ba)break;else _0x1bf5fa['push'](_0x1bf5fa['shift']());}catch(_0x5d2a59){_0x1bf5fa['push'](_0x1bf5fa['shift']());}}}(_0x50c8,0xa9a7a));export class LoginListener{[_0xd5ea92(0x1e3)](..._0x3c9c6e){}[_0xd5ea92(0x1f2)](..._0xe2b022){}[_0xd5ea92(0x1f1)](..._0x43048d){}[_0xd5ea92(0x1e7)](_0x2c5bd4){}['onQRCodeLoginPollingStarted'](..._0x2bac83){}[_0xd5ea92(0x1e4)](..._0x36c8c0){}['onQRCodeLoginSucceed'](_0x410f3f){}[_0xd5ea92(0x1eb)](..._0x2da1eb){}['onLoginFailed'](..._0x547b30){}[_0xd5ea92(0x1e6)](..._0x5a6818){}['onLogoutFailed'](..._0x3e87da){}[_0xd5ea92(0x1f0)](..._0x333b4d){}[_0xd5ea92(0x1ed)](..._0xed56e2){}['onPasswordLoginFailed'](..._0x222710){}[_0xd5ea92(0x1ef)](..._0x161a7e){}[_0xd5ea92(0x1ec)](..._0x5d1e61){}[_0xd5ea92(0x1f4)](..._0x56bbbf){}}function _0x1378(_0x496e5d,_0x4ff6f8){var _0x50c8f9=_0x50c8();return _0x1378=function(_0x137856,_0x47c915){_0x137856=_0x137856-0x1e2;var _0x4cd60d=_0x50c8f9[_0x137856];return _0x4cd60d;},_0x1378(_0x496e5d,_0x4ff6f8);}function _0x50c8(){var _0x2c19f5=['2090859NLhjZQ','93033DSTadj','3662265StlDLm','onLoginConnected','onQRCodeSessionUserScaned','5387736SqXaYc','onLogoutSucceed','onQRCodeGetPicture','860468CWHbEh','3435138znhSuG','5457830jfAseT','onQRCodeSessionFailed','onQQLoginNumLimited','onQRCodeSessionQuickLoginFailed','3400GmaHmT','OnConfirmUnusualDeviceFailed','onUserLoggedIn','onLoginConnecting','onLoginDisConnected','1YfWDMA','onLoginState'];_0x50c8=function(){return _0x2c19f5;};return _0x50c8();} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelMsgListener.js b/src/core.lib/src/listeners/NodeIKernelMsgListener.js index bad3732d..c7f34d59 100644 --- a/src/core.lib/src/listeners/NodeIKernelMsgListener.js +++ b/src/core.lib/src/listeners/NodeIKernelMsgListener.js @@ -1 +1 @@ -var _0x596b13=_0x6b0f;(function(_0x5598e1,_0x40241f){var _0x25728f=_0x6b0f,_0x4b6fc1=_0x5598e1();while(!![]){try{var _0x18486f=parseInt(_0x25728f(0xf5))/0x1+parseInt(_0x25728f(0xf3))/0x2+-parseInt(_0x25728f(0xff))/0x3*(-parseInt(_0x25728f(0xd5))/0x4)+-parseInt(_0x25728f(0xd8))/0x5*(parseInt(_0x25728f(0xd2))/0x6)+parseInt(_0x25728f(0xe0))/0x7+parseInt(_0x25728f(0xf1))/0x8+-parseInt(_0x25728f(0xf2))/0x9;if(_0x18486f===_0x40241f)break;else _0x4b6fc1['push'](_0x4b6fc1['shift']());}catch(_0x13c24c){_0x4b6fc1['push'](_0x4b6fc1['shift']());}}}(_0x5bc9,0xde720));function _0x6b0f(_0x1aa0a1,_0x247573){var _0x5bc99d=_0x5bc9();return _0x6b0f=function(_0x6b0f00,_0x425abc){_0x6b0f00=_0x6b0f00-0xce;var _0x2ff1a8=_0x5bc99d[_0x6b0f00];return _0x2ff1a8;},_0x6b0f(_0x1aa0a1,_0x247573);}function _0x5bc9(){var _0x1a8110=['onKickedOffLine','onMsgEventListUpdate','onEmojiResourceUpdate','onGroupTransferInfoAdd','onMsgSecurityNotify','onLogLevelChanged','onMsgInfoListUpdate','onTempChatInfoUpdate','onMsgInfoListAdd','onMsgQRCodeStatusChanged','onFirstViewGroupGuildMapping','onEmojiDownloadComplete','126246TCZVpv','onReadFeedEventUpdate','onGuildMsgAbFlagChanged','4dfyeeW','onCustomWithdrawConfigUpdate','onUnreadCntAfterFirstView','175WYnSKa','onMsgAbstractUpdate','onAddSendMsg','onGroupTransferInfoUpdate','onMsgRecall','onUnreadCntUpdate','onGuildInteractiveUpdate','onLineDev','5510113MuyRrI','onChannelFreqLimitInfoUpdate','onFileMsgCome','onSearchGroupFileInfoUpdate','onImportOldDbProgressUpdate','onMsgDelete','onFeedEventUpdate','onMsgBoxChanged','onHitCsRelatedEmojiResult','onlineStatusSmallIconDownloadPush','onRecvMsgSvrRspTransInfo','onUserChannelTabStatusChanged','onRecvS2CMsg','onUserOnlineStatusChanged','onRichMediaUploadComplete','onRecvSysMsg','onGuildNotificationAbstractUpdate','762776FOACrO','15856452ezeRTR','2051704VHClMK','onUserSecQualityChanged','671308adJIHS','onRecvUDCFlag','onRecvGroupGuildFlag','onRecvMsg','onDraftUpdate','onContactUnreadCntUpdate','onRichMediaDownloadComplete','onFirstViewDirectMsgUpdate','onRedTouchChanged','onSysMsgNotification','2489199tcEkkQ','onRecvOnlineFileMsg','onGroupFileInfoUpdate','onNtFirstViewMsgSyncEnd','onBroadcastHelperProgressUpdate'];_0x5bc9=function(){return _0x1a8110;};return _0x5bc9();}export class MsgListener{[_0x596b13(0xda)](_0x54972d){}['onBroadcastHelperDownloadComplete'](_0x1bbfcb){}[_0x596b13(0x103)](_0x595d01){}[_0x596b13(0xe1)](_0x2b220a,_0x2fad29,_0x3db93f){}[_0x596b13(0xfa)](_0x23b2b4){}[_0x596b13(0xd6)](_0x3ab01f){}[_0x596b13(0xf9)](_0x18d33e,_0x4ae35b,_0x496ef4){}[_0x596b13(0xd1)](_0x462f47){}[_0x596b13(0x106)](_0x1d135e){}[_0x596b13(0xe6)](_0xa90249){}[_0x596b13(0xe2)](_0x2cac50){}[_0x596b13(0xfc)](_0x5b57a3){}[_0x596b13(0xd0)](_0x5a18a6){}['onGrabPasswordRedBag'](_0x15a7ec,_0x554376,_0x278063,_0x2b6ddc,_0x16752a){}['onGroupFileInfoAdd'](_0x5c4785){}[_0x596b13(0x101)](_0x2607c0){}['onGroupGuildUpdate'](_0x478212){}[_0x596b13(0x107)](_0x151a11){}[_0x596b13(0xdb)](_0x1da060){}[_0x596b13(0xde)](_0x49cb24){}[_0x596b13(0xd4)](_0x264912){}[_0x596b13(0xf0)](_0x16fe23){}[_0x596b13(0xe8)](_0x5908e3){}['onHitEmojiKeywordResult'](_0x38d1cb){}['onHitRelatedEmojiResult'](_0x10052c){}[_0x596b13(0xe4)](_0x434d26){}['onInputStatusPush'](_0x523f19){}[_0x596b13(0x104)](_0x4fd505){}[_0x596b13(0xdf)](_0x204c80){}[_0x596b13(0x109)](_0x190712){}[_0x596b13(0xd9)](_0x3493df){}[_0x596b13(0xe7)](_0x27592e){}[_0x596b13(0xe5)](_0x3b8636,_0x1e5682){}[_0x596b13(0x105)](_0x8f1bed){}[_0x596b13(0xce)](_0x112341){}[_0x596b13(0x10a)](_0x1ed733){}[_0x596b13(0xcf)](_0x4b12f8){}[_0x596b13(0xdc)](_0x343181,_0x44d986,_0x44b4b0){}[_0x596b13(0x108)](_0x5959b0){}['onMsgSettingUpdate'](_0x168b43){}[_0x596b13(0x102)](){}['onNtMsgSyncEnd'](){}['onNtMsgSyncStart'](){}[_0x596b13(0xd3)](_0x51c0d3){}[_0x596b13(0xf7)](_0x46d9f6){}[_0x596b13(0xf8)](_0x3c85e7){}[_0x596b13(0xea)](_0x389ed7,_0x28c4ea,_0x4a06e0,_0x57bac6,_0x3c7ba4,_0x4d44ea){}[_0x596b13(0x100)](_0x509b10){}[_0x596b13(0xec)](_0x49d8fc){}[_0x596b13(0xef)](_0x3b147e){}[_0x596b13(0xf6)](_0x563dff){}[_0x596b13(0xfb)](_0x42f5ba){}['onRichMediaProgerssUpdate'](_0x25aafd){}[_0x596b13(0xee)](_0xd1f5e2){}[_0x596b13(0xe3)](_0x14c93a){}['onSendMsgError'](_0x5bcc0b,_0x11b32e,_0x15db26,_0xb410f5){}[_0x596b13(0xfe)](_0x15d0e9,_0x13087c,_0x565ff7,_0xd260da){}[_0x596b13(0x10b)](_0x15d08b){}[_0x596b13(0xd7)](_0x46efb7){}[_0x596b13(0xdd)](_0x39e581){}[_0x596b13(0xeb)](_0x36973e){}[_0x596b13(0xed)](_0x174c63){}['onUserTabStatusChanged'](_0x315f37){}['onlineStatusBigIconDownloadPush'](_0x53ccd5,_0x539178,_0x4c5854){}[_0x596b13(0xe9)](_0x455d43,_0x23b255,_0x2b9381){}[_0x596b13(0xf4)](..._0x3a7f6a){}['onMsgWithRichLinkInfoUpdate'](..._0x14ae36){}[_0x596b13(0xfd)](..._0x29323b){}['onBroadcastHelperProgerssUpdate'](..._0x2ffdcc){}} \ No newline at end of file +var _0x3a21a5=_0x6878;function _0x3e29(){var _0x4edf08=['onRecvS2CMsg','onEmojiResourceUpdate','16190WbLbPC','onFirstViewGroupGuildMapping','onEmojiDownloadComplete','onBroadcastHelperProgressUpdate','onMsgEventListUpdate','onRecvUDCFlag','onChannelFreqLimitInfoUpdate','onMsgAbstractUpdate','onUserSecQualityChanged','57qCPHNf','onNtMsgSyncStart','onRecvMsgSvrRspTransInfo','onUnreadCntUpdate','onRichMediaProgerssUpdate','onSendMsgError','onRichMediaUploadComplete','onGroupGuildUpdate','onCustomWithdrawConfigUpdate','60535AwUHuS','onUserChannelTabStatusChanged','onRecvSysMsg','onGuildMsgAbFlagChanged','onGuildNotificationAbstractUpdate','onGroupTransferInfoAdd','onFileMsgCome','onGroupFileInfoUpdate','onGuildInteractiveUpdate','8TjOmFZ','234CdmEAj','48585sRomSy','onFirstViewDirectMsgUpdate','onBroadcastHelperProgerssUpdate','onSearchGroupFileInfoUpdate','308436UWghHn','onUnreadCntAfterFirstView','onHitCsRelatedEmojiResult','onMsgQRCodeStatusChanged','onGrabPasswordRedBag','onAddSendMsg','onRecvGroupGuildFlag','onLogLevelChanged','onReadFeedEventUpdate','onContactUnreadCntUpdate','onMsgBoxChanged','onNtMsgSyncEnd','onHitEmojiKeywordResult','157338ZYWvAx','3135UEcPVY','onRecvOnlineFileMsg','2168579HCaVoZ','onlineStatusBigIconDownloadPush','onRedTouchChanged','onMsgInfoListUpdate','onTempChatInfoUpdate','onFeedEventUpdate','onNtFirstViewMsgSyncEnd','onHitRelatedEmojiResult','onMsgSettingUpdate','onDraftUpdate','onUserOnlineStatusChanged','onLineDev','onMsgDelete','onKickedOffLine','onBroadcastHelperDownloadComplete','onImportOldDbProgressUpdate','11372vfJRwu','onMsgSecurityNotify'];_0x3e29=function(){return _0x4edf08;};return _0x3e29();}function _0x6878(_0x1ac668,_0x3f32cc){var _0x3e2931=_0x3e29();return _0x6878=function(_0x68788f,_0x44a361){_0x68788f=_0x68788f-0xd5;var _0x249ba6=_0x3e2931[_0x68788f];return _0x249ba6;},_0x6878(_0x1ac668,_0x3f32cc);}(function(_0x1dfb6c,_0x34f8a4){var _0x27c038=_0x6878,_0x2c02bb=_0x1dfb6c();while(!![]){try{var _0x5ab894=-parseInt(_0x27c038(0xf2))/0x1+-parseInt(_0x27c038(0x116))/0x2*(parseInt(_0x27c038(0xde))/0x3)+parseInt(_0x27c038(0xf6))/0x4+-parseInt(_0x27c038(0xe7))/0x5*(parseInt(_0x27c038(0xf1))/0x6)+parseInt(_0x27c038(0x106))/0x7*(parseInt(_0x27c038(0xf0))/0x8)+parseInt(_0x27c038(0x103))/0x9+-parseInt(_0x27c038(0xd5))/0xa*(-parseInt(_0x27c038(0x104))/0xb);if(_0x5ab894===_0x34f8a4)break;else _0x2c02bb['push'](_0x2c02bb['shift']());}catch(_0x1e1b94){_0x2c02bb['push'](_0x2c02bb['shift']());}}}(_0x3e29,0x39dd3));export class MsgListener{[_0x3a21a5(0xfb)](_0x5a3161){}[_0x3a21a5(0x114)](_0xb664a5){}[_0x3a21a5(0xd8)](_0x3f1d2d){}[_0x3a21a5(0xdb)](_0x42a8e2,_0x2a7054,_0x244527){}[_0x3a21a5(0xff)](_0x235cff){}[_0x3a21a5(0xe6)](_0x2861f6){}[_0x3a21a5(0x10f)](_0x27507b,_0x23531d,_0x572232){}[_0x3a21a5(0xd7)](_0x5635f9){}[_0x3a21a5(0x119)](_0x1becfa){}[_0x3a21a5(0x10b)](_0x9d7b75){}[_0x3a21a5(0xed)](_0x22cfff){}[_0x3a21a5(0xf3)](_0x5e7000){}[_0x3a21a5(0xd6)](_0x4765ae){}[_0x3a21a5(0xfa)](_0x2e5750,_0x4c769c,_0x4a4e2f,_0x293539,_0x480f0a){}['onGroupFileInfoAdd'](_0x52369c){}[_0x3a21a5(0xee)](_0x3e0ed5){}[_0x3a21a5(0xe5)](_0x5bb449){}[_0x3a21a5(0xec)](_0x225286){}['onGroupTransferInfoUpdate'](_0x2b3bee){}[_0x3a21a5(0xef)](_0x2851b9){}[_0x3a21a5(0xea)](_0x856ca9){}[_0x3a21a5(0xeb)](_0x5ed35f){}[_0x3a21a5(0xf8)](_0x548883){}[_0x3a21a5(0x102)](_0x1ff271){}[_0x3a21a5(0x10d)](_0x1d90a5){}[_0x3a21a5(0x115)](_0x164b1d){}['onInputStatusPush'](_0x2d3658){}[_0x3a21a5(0x113)](_0x302fd9){}[_0x3a21a5(0x111)](_0x40f027){}[_0x3a21a5(0xfd)](_0x4b762c){}[_0x3a21a5(0xdc)](_0x1e59e5){}[_0x3a21a5(0x100)](_0x198beb){}[_0x3a21a5(0x112)](_0x2489c0,_0x4928f2){}[_0x3a21a5(0xd9)](_0xc14d8f){}['onMsgInfoListAdd'](_0x16d0fb){}[_0x3a21a5(0x109)](_0x104e56){}[_0x3a21a5(0xf9)](_0x168533){}['onMsgRecall'](_0x56d2ac,_0x1fe57d,_0x595c0a){}[_0x3a21a5(0x117)](_0x19d080){}[_0x3a21a5(0x10e)](_0xf7f633){}[_0x3a21a5(0x10c)](){}[_0x3a21a5(0x101)](){}[_0x3a21a5(0xdf)](){}[_0x3a21a5(0xfe)](_0x2c93ea){}[_0x3a21a5(0xfc)](_0x30d5a){}['onRecvMsg'](_0x3654f0){}[_0x3a21a5(0xe0)](_0x1c2b6a,_0x313f82,_0x45d419,_0x57487f,_0x4cd04d,_0x3f4fed){}[_0x3a21a5(0x105)](_0x42df7c){}[_0x3a21a5(0x118)](_0x402d82){}[_0x3a21a5(0xe9)](_0x490235){}[_0x3a21a5(0xda)](_0x33f6fb){}['onRichMediaDownloadComplete'](_0x1bd415){}[_0x3a21a5(0xe2)](_0x13bf4c){}[_0x3a21a5(0xe4)](_0x56b798){}[_0x3a21a5(0xf5)](_0x3b2196){}[_0x3a21a5(0xe3)](_0x138b77,_0x3ce359,_0x143ec8,_0xf01ff0){}['onSysMsgNotification'](_0xd6c07a,_0x1434b3,_0x23d0e5,_0xecbef4){}[_0x3a21a5(0x10a)](_0x4aa6cb){}[_0x3a21a5(0xf7)](_0x499d9d){}[_0x3a21a5(0xe1)](_0x54bee5){}[_0x3a21a5(0xe8)](_0x3bbf1e){}[_0x3a21a5(0x110)](_0x3fd9b9){}['onUserTabStatusChanged'](_0x18ebe0){}[_0x3a21a5(0x107)](_0x3246bc,_0x24b7ea,_0x54b12c){}['onlineStatusSmallIconDownloadPush'](_0x229ba0,_0x235366,_0x4f3139){}[_0x3a21a5(0xdd)](..._0x19745d){}['onMsgWithRichLinkInfoUpdate'](..._0x23c0e9){}[_0x3a21a5(0x108)](..._0x50b2b0){}[_0x3a21a5(0xf4)](..._0x79e8e6){}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelProfileListener.js b/src/core.lib/src/listeners/NodeIKernelProfileListener.js index 108b8843..4a5eeccd 100644 --- a/src/core.lib/src/listeners/NodeIKernelProfileListener.js +++ b/src/core.lib/src/listeners/NodeIKernelProfileListener.js @@ -1 +1 @@ -var _0xe37d97=_0x57f2;(function(_0x308d62,_0x9930dd){var _0x43b6b2=_0x57f2,_0xdc42d1=_0x308d62();while(!![]){try{var _0x12326e=-parseInt(_0x43b6b2(0x10c))/0x1+parseInt(_0x43b6b2(0x10e))/0x2+-parseInt(_0x43b6b2(0x10a))/0x3*(-parseInt(_0x43b6b2(0x110))/0x4)+-parseInt(_0x43b6b2(0x112))/0x5*(-parseInt(_0x43b6b2(0x115))/0x6)+parseInt(_0x43b6b2(0x109))/0x7*(-parseInt(_0x43b6b2(0x108))/0x8)+-parseInt(_0x43b6b2(0x10d))/0x9*(-parseInt(_0x43b6b2(0x10b))/0xa)+-parseInt(_0x43b6b2(0x113))/0xb;if(_0x12326e===_0x9930dd)break;else _0xdc42d1['push'](_0xdc42d1['shift']());}catch(_0x24afa3){_0xdc42d1['push'](_0xdc42d1['shift']());}}}(_0x5c94,0x4ee5e));function _0x5c94(){var _0x20ad77=['onProfileDetailInfoChanged','728634ACooCk','onStrangerRemarkChanged','776RopeAl','31241IjxdqF','3nyZtok','5602970poHSaz','220485LGVOpx','9NQUsme','190188KbbzXg','onProfileSimpleChanged','2498828PkriDu','onSelfStatusChanged','5zPkzQQ','4674725dROyKN'];_0x5c94=function(){return _0x20ad77;};return _0x5c94();}function _0x57f2(_0x67a27a,_0x52d205){var _0x5c9439=_0x5c94();return _0x57f2=function(_0x57f22c,_0x4e2f4d){_0x57f22c=_0x57f22c-0x107;var _0x2f6a3c=_0x5c9439[_0x57f22c];return _0x2f6a3c;},_0x57f2(_0x67a27a,_0x52d205);}export class ProfileListener{[_0xe37d97(0x10f)](..._0xfc170b){}[_0xe37d97(0x114)](_0x69ec04){}['onStatusUpdate'](..._0x12524e){}[_0xe37d97(0x111)](..._0x222f24){}[_0xe37d97(0x107)](..._0x24c5c7){}} \ No newline at end of file +var _0x26bd77=_0x33d2;(function(_0x24fe44,_0x8629a1){var _0x145f27=_0x33d2,_0x37bb6a=_0x24fe44();while(!![]){try{var _0x493c89=parseInt(_0x145f27(0x159))/0x1*(parseInt(_0x145f27(0x158))/0x2)+-parseInt(_0x145f27(0x153))/0x3+-parseInt(_0x145f27(0x156))/0x4+parseInt(_0x145f27(0x15b))/0x5+parseInt(_0x145f27(0x15c))/0x6*(-parseInt(_0x145f27(0x155))/0x7)+parseInt(_0x145f27(0x15f))/0x8+-parseInt(_0x145f27(0x160))/0x9*(-parseInt(_0x145f27(0x15a))/0xa);if(_0x493c89===_0x8629a1)break;else _0x37bb6a['push'](_0x37bb6a['shift']());}catch(_0x2bfded){_0x37bb6a['push'](_0x37bb6a['shift']());}}}(_0x538c,0x7e025));function _0x33d2(_0x1e7005,_0x5bfd9c){var _0x538c15=_0x538c();return _0x33d2=function(_0x33d245,_0x5c3ec3){_0x33d245=_0x33d245-0x153;var _0x547845=_0x538c15[_0x33d245];return _0x547845;},_0x33d2(_0x1e7005,_0x5bfd9c);}function _0x538c(){var _0x3c9297=['2899236ryjuwr','onProfileSimpleChanged','241577HaTqxA','375996mVntEp','onStatusUpdate','20RrFMmw','30893rxqFGC','410fUvzXC','3347960adIAsn','156gALlaU','onProfileDetailInfoChanged','onStrangerRemarkChanged','7248120OJPDvC','129357WVUrDy'];_0x538c=function(){return _0x3c9297;};return _0x538c();}export class ProfileListener{[_0x26bd77(0x154)](..._0x2c4f07){}[_0x26bd77(0x15d)](_0x3c7113){}[_0x26bd77(0x157)](..._0x773edd){}['onSelfStatusChanged'](..._0x29b0d7){}[_0x26bd77(0x15e)](..._0xa2170){}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelRobotListener.js b/src/core.lib/src/listeners/NodeIKernelRobotListener.js index fe695eb7..06e0ebc8 100644 --- a/src/core.lib/src/listeners/NodeIKernelRobotListener.js +++ b/src/core.lib/src/listeners/NodeIKernelRobotListener.js @@ -1 +1 @@ -function _0x47ac(){var _0x5a4d46=['onRobotProfileChanged','5qWCgrq','1246StDaLn','4458XkbanW','44rueOwa','1940790dUgfwm','10328rxCgRY','5576148HtGRCj','1464324quHJal','44MRLiGq','439736CgGTun','264bqlkLm','110010ZpaRBt'];_0x47ac=function(){return _0x5a4d46;};return _0x47ac();}function _0x3e2f(_0x1cc32e,_0x4154cf){var _0x47ac59=_0x47ac();return _0x3e2f=function(_0x3e2fd9,_0x49c2d8){_0x3e2fd9=_0x3e2fd9-0x116;var _0x41bc28=_0x47ac59[_0x3e2fd9];return _0x41bc28;},_0x3e2f(_0x1cc32e,_0x4154cf);}var _0x45d0fa=_0x3e2f;(function(_0x564a7f,_0x50995e){var _0x273d6b=_0x3e2f,_0x26d64c=_0x564a7f();while(!![]){try{var _0x4ea2b3=-parseInt(_0x273d6b(0x11b))/0x1*(-parseInt(_0x273d6b(0x121))/0x2)+parseInt(_0x273d6b(0x117))/0x3*(-parseInt(_0x273d6b(0x11c))/0x4)+parseInt(_0x273d6b(0x119))/0x5*(-parseInt(_0x273d6b(0x120))/0x6)+parseInt(_0x273d6b(0x11a))/0x7*(-parseInt(_0x273d6b(0x11e))/0x8)+parseInt(_0x273d6b(0x11f))/0x9+-parseInt(_0x273d6b(0x11d))/0xa+-parseInt(_0x273d6b(0x122))/0xb*(-parseInt(_0x273d6b(0x116))/0xc);if(_0x4ea2b3===_0x50995e)break;else _0x26d64c['push'](_0x26d64c['shift']());}catch(_0x19a209){_0x26d64c['push'](_0x26d64c['shift']());}}}(_0x47ac,0x805fb));export class KernelRobotListener{['onRobotFriendListChanged'](..._0x199344){}['onRobotListChanged'](..._0x4d1d8a){}[_0x45d0fa(0x118)](..._0x129910){}} \ No newline at end of file +function _0x841b(_0x4e2459,_0x14d8c1){var _0xee6291=_0xee62();return _0x841b=function(_0x841b64,_0x4024a2){_0x841b64=_0x841b64-0x1e6;var _0x48c885=_0xee6291[_0x841b64];return _0x48c885;},_0x841b(_0x4e2459,_0x14d8c1);}function _0xee62(){var _0x52a7ab=['30LDWtbP','525391BCVkZw','6056PxZLiY','771056GrLJDA','5JusKEO','591944nqMvAa','onRobotListChanged','40434AwRMaW','3962fGuztp','738747jAthnV','9AKnJct','2640166PegKmS','onRobotFriendListChanged','480lVVPcC'];_0xee62=function(){return _0x52a7ab;};return _0xee62();}var _0x1e689d=_0x841b;(function(_0x44c0bb,_0x5607ae){var _0x1168e8=_0x841b,_0x400c2e=_0x44c0bb();while(!![]){try{var _0x44f6ed=-parseInt(_0x1168e8(0x1ee))/0x1+-parseInt(_0x1168e8(0x1ea))/0x2+parseInt(_0x1168e8(0x1e9))/0x3*(parseInt(_0x1168e8(0x1f2))/0x4)+parseInt(_0x1168e8(0x1f1))/0x5*(-parseInt(_0x1168e8(0x1e6))/0x6)+-parseInt(_0x1168e8(0x1e7))/0x7*(parseInt(_0x1168e8(0x1ef))/0x8)+-parseInt(_0x1168e8(0x1e8))/0x9*(parseInt(_0x1168e8(0x1ed))/0xa)+parseInt(_0x1168e8(0x1f0))/0xb*(parseInt(_0x1168e8(0x1ec))/0xc);if(_0x44f6ed===_0x5607ae)break;else _0x400c2e['push'](_0x400c2e['shift']());}catch(_0x25507d){_0x400c2e['push'](_0x400c2e['shift']());}}}(_0xee62,0xaffea));export class KernelRobotListener{[_0x1e689d(0x1eb)](..._0x41d2a2){}[_0x1e689d(0x1f3)](..._0xbbf212){}['onRobotProfileChanged'](..._0x17936b){}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelSessionListener.js b/src/core.lib/src/listeners/NodeIKernelSessionListener.js index 9cbf570e..7ba5f1c9 100644 --- a/src/core.lib/src/listeners/NodeIKernelSessionListener.js +++ b/src/core.lib/src/listeners/NodeIKernelSessionListener.js @@ -1 +1 @@ -function _0x32c3(){var _0x2ebc3a=['107696NoDdtG','12858RsXfJz','onNTSessionCreate','1156155PYQnKy','164AjKQzR','25jIHdjn','onSessionInitComplete','onUserOnlineResult','10470uusbOc','145072xbUnVv','30vWCLdw','203443MXenVZ','13239KSTDjM'];_0x32c3=function(){return _0x2ebc3a;};return _0x32c3();}function _0x2a27(_0x4ce406,_0x4d4bf8){var _0x32c3e7=_0x32c3();return _0x2a27=function(_0x2a2786,_0x4a8f98){_0x2a2786=_0x2a2786-0x16c;var _0x4b9523=_0x32c3e7[_0x2a2786];return _0x4b9523;},_0x2a27(_0x4ce406,_0x4d4bf8);}var _0x1bbaf1=_0x2a27;(function(_0x4348f5,_0x284de9){var _0xa50192=_0x2a27,_0x438d1e=_0x4348f5();while(!![]){try{var _0x306b3e=parseInt(_0xa50192(0x170))/0x1+-parseInt(_0xa50192(0x172))/0x2+parseInt(_0xa50192(0x173))/0x3*(-parseInt(_0xa50192(0x176))/0x4)+parseInt(_0xa50192(0x177))/0x5*(-parseInt(_0xa50192(0x16d))/0x6)+parseInt(_0xa50192(0x175))/0x7+-parseInt(_0xa50192(0x16e))/0x8+-parseInt(_0xa50192(0x171))/0x9*(parseInt(_0xa50192(0x16f))/0xa);if(_0x306b3e===_0x284de9)break;else _0x438d1e['push'](_0x438d1e['shift']());}catch(_0x411678){_0x438d1e['push'](_0x438d1e['shift']());}}}(_0x32c3,0x1a4f2));export class SessionListener{[_0x1bbaf1(0x174)](_0x3cdead){}['onGProSessionCreate'](_0x1aa42a){}[_0x1bbaf1(0x178)](_0xf21c7){}['onOpentelemetryInit'](_0x426a2d){}[_0x1bbaf1(0x16c)](_0x12e965){}['onGetSelfTinyId'](_0x4a84b0){}} \ No newline at end of file +function _0x587e(_0x47ba60,_0x4b5e0f){var _0x35cb67=_0x35cb();return _0x587e=function(_0x587e9e,_0x1f2adc){_0x587e9e=_0x587e9e-0xfa;var _0x413ce8=_0x35cb67[_0x587e9e];return _0x413ce8;},_0x587e(_0x47ba60,_0x4b5e0f);}function _0x35cb(){var _0x255d12=['onSessionInitComplete','840900TYjStP','onOpentelemetryInit','86448GQlIEd','2173815iYHobY','6463WnXlOt','onGetSelfTinyId','2223NiMCbH','50zXEnbD','6ZmOxlf','4fobLdt','26400xLDbcl','7400RJEBgq','701930HlIPJl','onUserOnlineResult','11hJpyRr','onNTSessionCreate'];_0x35cb=function(){return _0x255d12;};return _0x35cb();}var _0x9bc24=_0x587e;(function(_0x4baf1d,_0x56526f){var _0x36bc80=_0x587e,_0xa49a28=_0x4baf1d();while(!![]){try{var _0x1e2f6c=-parseInt(_0x36bc80(0x100))/0x1*(-parseInt(_0x36bc80(0x103))/0x2)+-parseInt(_0x36bc80(0x106))/0x3+-parseInt(_0x36bc80(0x105))/0x4*(-parseInt(_0x36bc80(0x108))/0x5)+-parseInt(_0x36bc80(0x104))/0x6*(parseInt(_0x36bc80(0xff))/0x7)+-parseInt(_0x36bc80(0xfe))/0x8+-parseInt(_0x36bc80(0x102))/0x9*(-parseInt(_0x36bc80(0x107))/0xa)+-parseInt(_0x36bc80(0x10a))/0xb*(-parseInt(_0x36bc80(0xfc))/0xc);if(_0x1e2f6c===_0x56526f)break;else _0xa49a28['push'](_0xa49a28['shift']());}catch(_0x3461bc){_0xa49a28['push'](_0xa49a28['shift']());}}}(_0x35cb,0x36d99));export class SessionListener{[_0x9bc24(0xfa)](_0x52dd43){}['onGProSessionCreate'](_0x4a6c1e){}[_0x9bc24(0xfb)](_0x353fd1){}[_0x9bc24(0xfd)](_0x5901e2){}[_0x9bc24(0x109)](_0x54b4eb){}[_0x9bc24(0x101)](_0x3ce763){}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js b/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js index a866c0d9..c845215b 100644 --- a/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js +++ b/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js @@ -1 +1 @@ -var _0x17b907=_0x57e0;(function(_0xa08b31,_0x24fe64){var _0x2a873a=_0x57e0,_0x58795a=_0xa08b31();while(!![]){try{var _0x65380c=-parseInt(_0x2a873a(0x87))/0x1+parseInt(_0x2a873a(0x8d))/0x2*(parseInt(_0x2a873a(0x94))/0x3)+-parseInt(_0x2a873a(0x93))/0x4*(-parseInt(_0x2a873a(0x8a))/0x5)+-parseInt(_0x2a873a(0x90))/0x6*(parseInt(_0x2a873a(0x8c))/0x7)+parseInt(_0x2a873a(0x89))/0x8*(parseInt(_0x2a873a(0x8f))/0x9)+parseInt(_0x2a873a(0x92))/0xa+-parseInt(_0x2a873a(0x8b))/0xb*(parseInt(_0x2a873a(0x91))/0xc);if(_0x65380c===_0x24fe64)break;else _0x58795a['push'](_0x58795a['shift']());}catch(_0xffb896){_0x58795a['push'](_0x58795a['shift']());}}}(_0x47ea,0xdad08));function _0x57e0(_0x278a77,_0x2e3e00){var _0x47ead7=_0x47ea();return _0x57e0=function(_0x57e0b2,_0xf8297b){_0x57e0b2=_0x57e0b2-0x87;var _0x3b136c=_0x47ead7[_0x57e0b2];return _0x3b136c;},_0x57e0(_0x278a77,_0x2e3e00);}function _0x47ea(){var _0x2a820b=['21618wGEdCw','12kaOlcj','11736QDpsSA','6453010JNVTbh','4qNqCAZ','1406544GjOhPI','978328uCiPSh','onCleanCacheStorageChanged','640ifCItr','8880735tqsPCS','11110FssJiy','770294ftfrms','2jbXpFd','onChatCleanDone'];_0x47ea=function(){return _0x2a820b;};return _0x47ea();}export class StorageCleanListener{['onCleanCacheProgressChanged'](_0x365b6a){}['onScanCacheProgressChanged'](_0x78cd3d){}[_0x17b907(0x88)](_0x30ff07){}['onFinishScan'](_0x4da4d1){}[_0x17b907(0x8e)](_0x5f5666){}} \ No newline at end of file +function _0x1198(_0x595c16,_0x2c85d0){var _0xb94d20=_0xb94d();return _0x1198=function(_0x1198ca,_0x3a84d1){_0x1198ca=_0x1198ca-0x1a4;var _0x58a3c3=_0xb94d20[_0x1198ca];return _0x58a3c3;},_0x1198(_0x595c16,_0x2c85d0);}var _0x33f640=_0x1198;function _0xb94d(){var _0x2026b1=['1309GjNDCq','523640DyIyGz','77bmOILa','175944zdYtwI','onChatCleanDone','9jgnCjX','onCleanCacheStorageChanged','124422bddGpD','onFinishScan','onScanCacheProgressChanged','376248ikatxp','onCleanCacheProgressChanged','68uAQQtW','510896RoAxTT','27GLnXOv','6230270ShveQA','214425kjMKpV'];_0xb94d=function(){return _0x2026b1;};return _0xb94d();}(function(_0x58a302,_0x4af0d0){var _0x15b4a6=_0x1198,_0x42f69f=_0x58a302();while(!![]){try{var _0x5a846f=-parseInt(_0x15b4a6(0x1a7))/0x1+parseInt(_0x15b4a6(0x1b0))/0x2*(parseInt(_0x15b4a6(0x1ab))/0x3)+parseInt(_0x15b4a6(0x1b2))/0x4*(-parseInt(_0x15b4a6(0x1a5))/0x5)+parseInt(_0x15b4a6(0x1ad))/0x6*(-parseInt(_0x15b4a6(0x1a8))/0x7)+parseInt(_0x15b4a6(0x1b3))/0x8*(parseInt(_0x15b4a6(0x1b4))/0x9)+-parseInt(_0x15b4a6(0x1a4))/0xa+-parseInt(_0x15b4a6(0x1a6))/0xb*(-parseInt(_0x15b4a6(0x1a9))/0xc);if(_0x5a846f===_0x4af0d0)break;else _0x42f69f['push'](_0x42f69f['shift']());}catch(_0x1dbfd4){_0x42f69f['push'](_0x42f69f['shift']());}}}(_0xb94d,0x60e75));export class StorageCleanListener{[_0x33f640(0x1b1)](_0x81ade5){}[_0x33f640(0x1af)](_0x42d490){}[_0x33f640(0x1ac)](_0x2db323){}[_0x33f640(0x1ae)](_0x5852c4){}[_0x33f640(0x1aa)](_0x2e108a){}} \ No newline at end of file diff --git a/src/core.lib/src/listeners/index.js b/src/core.lib/src/listeners/index.js index b6d4c203..cc1f44df 100644 --- a/src/core.lib/src/listeners/index.js +++ b/src/core.lib/src/listeners/index.js @@ -1 +1 @@ -(function(_0x3cd122,_0x44cc7f){var _0x15a979=_0x508a,_0x2dee76=_0x3cd122();while(!![]){try{var _0x343a21=-parseInt(_0x15a979(0xc4))/0x1*(-parseInt(_0x15a979(0xc8))/0x2)+-parseInt(_0x15a979(0xc1))/0x3+parseInt(_0x15a979(0xc3))/0x4*(parseInt(_0x15a979(0xc0))/0x5)+-parseInt(_0x15a979(0xc9))/0x6*(parseInt(_0x15a979(0xca))/0x7)+-parseInt(_0x15a979(0xc5))/0x8+parseInt(_0x15a979(0xc7))/0x9+parseInt(_0x15a979(0xc2))/0xa*(parseInt(_0x15a979(0xc6))/0xb);if(_0x343a21===_0x44cc7f)break;else _0x2dee76['push'](_0x2dee76['shift']());}catch(_0x5edf93){_0x2dee76['push'](_0x2dee76['shift']());}}}(_0x1483,0x53052));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';function _0x508a(_0xa962eb,_0x410587){var _0x1483e6=_0x1483();return _0x508a=function(_0x508a6b,_0x4a6606){_0x508a6b=_0x508a6b-0xc0;var _0x50dab5=_0x1483e6[_0x508a6b];return _0x50dab5;},_0x508a(_0xa962eb,_0x410587);}export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';function _0x1483(){var _0x3ab702=['2290040EbaRGj','409079QvIgWK','2639772xkBrSa','32LTdzjh','1403100yWAkiK','7RLqrtO','20JNPcan','1784916jMpmjt','110oHKvgZ','97732HayDyI','40938hkgRMg'];_0x1483=function(){return _0x3ab702;};return _0x1483();}export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener'; \ No newline at end of file +(function(_0x2cc6ff,_0x1dbc99){var _0x4d886e=_0x23b0,_0x2d85e2=_0x2cc6ff();while(!![]){try{var _0x103a58=parseInt(_0x4d886e(0x77))/0x1*(parseInt(_0x4d886e(0x73))/0x2)+-parseInt(_0x4d886e(0x6f))/0x3+-parseInt(_0x4d886e(0x76))/0x4+-parseInt(_0x4d886e(0x78))/0x5*(parseInt(_0x4d886e(0x74))/0x6)+parseInt(_0x4d886e(0x70))/0x7*(-parseInt(_0x4d886e(0x71))/0x8)+parseInt(_0x4d886e(0x72))/0x9+parseInt(_0x4d886e(0x6e))/0xa*(parseInt(_0x4d886e(0x75))/0xb);if(_0x103a58===_0x1dbc99)break;else _0x2d85e2['push'](_0x2d85e2['shift']());}catch(_0x56f32a){_0x2d85e2['push'](_0x2d85e2['shift']());}}}(_0x44d5,0xa7ab5));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';function _0x23b0(_0x2d692d,_0x4c5202){var _0x44d51f=_0x44d5();return _0x23b0=function(_0x23b01e,_0xfeaa24){_0x23b01e=_0x23b01e-0x6e;var _0x433272=_0x44d51f[_0x23b01e];return _0x433272;},_0x23b0(_0x2d692d,_0x4c5202);}export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';function _0x44d5(){var _0x33d489=['6862005TECjMZ','2327142YykVKC','42162gznyAe','100925zXBTKf','12356aZONru','1XJhXoi','950gqEoUr','1950eeShLa','3037461flAqfn','553jATzvv','68624QLDhAH'];_0x44d5=function(){return _0x33d489;};return _0x44d5();}export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener'; \ No newline at end of file diff --git a/src/core.lib/src/services/common.js b/src/core.lib/src/services/common.js index 6ed0920f..3c52e1b0 100644 --- a/src/core.lib/src/services/common.js +++ b/src/core.lib/src/services/common.js @@ -1 +1 @@ -(function(_0x5ce437,_0x647802){var _0x353d42=_0x5a32,_0x5c81ed=_0x5ce437();while(!![]){try{var _0x2f801a=parseInt(_0x353d42(0xf0))/0x1*(-parseInt(_0x353d42(0xf4))/0x2)+parseInt(_0x353d42(0xf2))/0x3+parseInt(_0x353d42(0xf3))/0x4*(-parseInt(_0x353d42(0xeb))/0x5)+-parseInt(_0x353d42(0xec))/0x6+parseInt(_0x353d42(0xf5))/0x7*(parseInt(_0x353d42(0xef))/0x8)+parseInt(_0x353d42(0xed))/0x9*(parseInt(_0x353d42(0xee))/0xa)+parseInt(_0x353d42(0xf1))/0xb*(parseInt(_0x353d42(0xf6))/0xc);if(_0x2f801a===_0x647802)break;else _0x5c81ed['push'](_0x5c81ed['shift']());}catch(_0x100d02){_0x5c81ed['push'](_0x5c81ed['shift']());}}}(_0x3b93,0x8bc3c));function _0x5a32(_0x5cf38c,_0x2589b2){var _0x3b9319=_0x3b93();return _0x5a32=function(_0x5a32fb,_0x4731e9){_0x5a32fb=_0x5a32fb-0xeb;var _0x4a39fb=_0x3b9319[_0x5a32fb];return _0x4a39fb;},_0x5a32(_0x5cf38c,_0x2589b2);}export var GeneralCallResultStatus;function _0x3b93(){var _0x35eb5a=['1668531geZCoL','8SIVGYp','316546cbAxpW','39865bKsuzG','8554308DCjMeY','755605csYvBT','4241862EchQfJ','254043bkJLKP','310wbfQrx','544USuMhA','6ATqMjA','11VZTmYT'];_0x3b93=function(){return _0x35eb5a;};return _0x3b93();}(function(_0x5d6c9b){_0x5d6c9b[_0x5d6c9b['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={}))); \ No newline at end of file +function _0x1397(_0x5ef694,_0xea0f99){var _0x18720a=_0x1872();return _0x1397=function(_0x13978f,_0x6af1a3){_0x13978f=_0x13978f-0x1df;var _0x4864c0=_0x18720a[_0x13978f];return _0x4864c0;},_0x1397(_0x5ef694,_0xea0f99);}(function(_0x5a6117,_0x15b927){var _0x239c01=_0x1397,_0x4923ba=_0x5a6117();while(!![]){try{var _0x397f3f=-parseInt(_0x239c01(0x1e4))/0x1*(-parseInt(_0x239c01(0x1e9))/0x2)+parseInt(_0x239c01(0x1df))/0x3+parseInt(_0x239c01(0x1e7))/0x4*(parseInt(_0x239c01(0x1e0))/0x5)+parseInt(_0x239c01(0x1e6))/0x6*(-parseInt(_0x239c01(0x1ea))/0x7)+-parseInt(_0x239c01(0x1e5))/0x8*(parseInt(_0x239c01(0x1e8))/0x9)+-parseInt(_0x239c01(0x1e2))/0xa+parseInt(_0x239c01(0x1e3))/0xb*(parseInt(_0x239c01(0x1e1))/0xc);if(_0x397f3f===_0x15b927)break;else _0x4923ba['push'](_0x4923ba['shift']());}catch(_0x4e329a){_0x4923ba['push'](_0x4923ba['shift']());}}}(_0x1872,0x1d22b));function _0x1872(){var _0x4c0274=['755270RBpKUP','11QGtnUb','18VSxrgN','200ThEkip','261924vSvQMF','500944WTuzVR','7551YntwHT','6118GCwpAd','21GZMocz','125649mNsKFl','5tXQuVi','1495464TAtMyT'];_0x1872=function(){return _0x4c0274;};return _0x1872();}export var GeneralCallResultStatus;(function(_0x1d86ba){_0x1d86ba[_0x1d86ba['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={}))); \ No newline at end of file diff --git a/src/core.lib/src/services/index.js b/src/core.lib/src/services/index.js index 46c1cfd3..77fc7119 100644 --- a/src/core.lib/src/services/index.js +++ b/src/core.lib/src/services/index.js @@ -1 +1 @@ -function _0x135d(){var _0x50660a=['8019564cUQJMf','8jbVqfk','10196179Tineze','4wiHYst','4665735kFIKNT','2807433AAkkHL','69Yljiju','62156VSLdAE','187IrkHai','892530VtdSMJ','248783vzPOwW'];_0x135d=function(){return _0x50660a;};return _0x135d();}(function(_0x3e63da,_0xa30d6b){var _0x277364=_0x35e3,_0x4d2457=_0x3e63da();while(!![]){try{var _0x2b51e4=parseInt(_0x277364(0xcd))/0x1*(-parseInt(_0x277364(0xd1))/0x2)+parseInt(_0x277364(0xc9))/0x3*(parseInt(_0x277364(0xca))/0x4)+-parseInt(_0x277364(0xd2))/0x5+-parseInt(_0x277364(0xce))/0x6+parseInt(_0x277364(0xd0))/0x7+parseInt(_0x277364(0xcf))/0x8*(parseInt(_0x277364(0xd3))/0x9)+-parseInt(_0x277364(0xcc))/0xa*(-parseInt(_0x277364(0xcb))/0xb);if(_0x2b51e4===_0xa30d6b)break;else _0x4d2457['push'](_0x4d2457['shift']());}catch(_0x1d0a65){_0x4d2457['push'](_0x4d2457['shift']());}}}(_0x135d,0xd5d95));export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';function _0x35e3(_0x1d613a,_0x31cb75){var _0x135d00=_0x135d();return _0x35e3=function(_0x35e335,_0x4e1534){_0x35e335=_0x35e335-0xc9;var _0xc8d841=_0x135d00[_0x35e335];return _0xc8d841;},_0x35e3(_0x1d613a,_0x31cb75);}export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService'; \ No newline at end of file +(function(_0x1ccaed,_0x1d0f0c){var _0x29602f=_0x1db9,_0x57a367=_0x1ccaed();while(!![]){try{var _0x5c2147=-parseInt(_0x29602f(0x1bc))/0x1*(-parseInt(_0x29602f(0x1c1))/0x2)+parseInt(_0x29602f(0x1b8))/0x3*(parseInt(_0x29602f(0x1c2))/0x4)+parseInt(_0x29602f(0x1be))/0x5*(parseInt(_0x29602f(0x1ba))/0x6)+-parseInt(_0x29602f(0x1c4))/0x7+parseInt(_0x29602f(0x1b9))/0x8*(-parseInt(_0x29602f(0x1bd))/0x9)+-parseInt(_0x29602f(0x1c3))/0xa*(-parseInt(_0x29602f(0x1bb))/0xb)+parseInt(_0x29602f(0x1c0))/0xc*(parseInt(_0x29602f(0x1bf))/0xd);if(_0x5c2147===_0x1d0f0c)break;else _0x57a367['push'](_0x57a367['shift']());}catch(_0x360971){_0x57a367['push'](_0x57a367['shift']());}}}(_0xcb9b,0x5121e));export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';function _0x1db9(_0x504f50,_0x228fc7){var _0xcb9bc9=_0xcb9b();return _0x1db9=function(_0x1db9e4,_0x2e9aa8){_0x1db9e4=_0x1db9e4-0x1b8;var _0x5c41bc=_0xcb9bc9[_0x1db9e4];return _0x5c41bc;},_0x1db9(_0x504f50,_0x228fc7);}export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';function _0xcb9b(){var _0x4aa1ca=['26vvnSQf','116364pbbsEn','2218orUCle','168urhjiH','512530PRuplj','4603942UIxFVU','7512mumQVh','320OeCSno','1783986SHDppH','132jyIETb','515wYxvYV','139059GqGoRP','5auJAVf'];_0xcb9b=function(){return _0x4aa1ca;};return _0xcb9b();}export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService';export*from'./NodeIKernelTipOffService'; \ No newline at end of file diff --git a/src/core.lib/src/sessionConfig.js b/src/core.lib/src/sessionConfig.js index 68177083..d00d4b34 100644 --- a/src/core.lib/src/sessionConfig.js +++ b/src/core.lib/src/sessionConfig.js @@ -1 +1 @@ -(function(_0x17e959,_0x1fff9b){const _0x5a2ede=_0x283d,_0xd4bf3b=_0x17e959();while(!![]){try{const _0x3174ef=-parseInt(_0x5a2ede(0xf5))/0x1+parseInt(_0x5a2ede(0xff))/0x2*(parseInt(_0x5a2ede(0x102))/0x3)+-parseInt(_0x5a2ede(0x101))/0x4*(parseInt(_0x5a2ede(0xf1))/0x5)+-parseInt(_0x5a2ede(0xfc))/0x6+-parseInt(_0x5a2ede(0xfe))/0x7*(parseInt(_0x5a2ede(0xfa))/0x8)+-parseInt(_0x5a2ede(0xf7))/0x9*(parseInt(_0x5a2ede(0xef))/0xa)+parseInt(_0x5a2ede(0xf2))/0xb;if(_0x3174ef===_0x1fff9b)break;else _0xd4bf3b['push'](_0xd4bf3b['shift']());}catch(_0x240ff4){_0xd4bf3b['push'](_0xd4bf3b['shift']());}}}(_0x3abd,0x4c4cc));function _0x283d(_0x5beb0b,_0x45ec20){const _0x3abd59=_0x3abd();return _0x283d=function(_0x283d56,_0x16cd47){_0x283d56=_0x283d56-0xef;let _0x2ba4a9=_0x3abd59[_0x283d56];return _0x2ba4a9;},_0x283d(_0x5beb0b,_0x45ec20);}import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x423294 from'node:path';import _0x436a36 from'node:fs';import{randomUUID}from'crypto';export const sessionConfig={};function _0x3abd(){const _0x32a218=['17873174hePUuK','temp','utf-8','59340mFXqqS','SnGyk','18mBPtMH','assign','iddGW','192RvFlFP','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','556686JivffQ','writeFileSync','46291aoAxGc','9436XXzIFr','NapCat','4JxOidy','3OnLLHO','guid.txt','2767060CUkBdt','join','2263915tNaAWl'];_0x3abd=function(){return _0x32a218;};return _0x3abd();}export function genSessionConfig(_0x5bd79d,_0x1ca64a,_0x50a557){const _0x103d52=_0x283d,_0x5c186b={'iddGW':_0x103d52(0xf3),'VuYAQ':_0x103d52(0x100),'DYHOE':function(_0x53fb6f){return _0x53fb6f();},'SnGyk':_0x103d52(0xf4),'Rumpp':_0x103d52(0xfb)},_0x133fc1=_0x423294[_0x103d52(0xf0)](_0x50a557,_0x103d52(0x100),_0x5c186b[_0x103d52(0xf9)]);_0x436a36['mkdirSync'](_0x133fc1,{'recursive':!![]});const _0x56a88c=_0x423294[_0x103d52(0xf0)](_0x50a557,_0x5c186b['VuYAQ'],_0x103d52(0x103));let _0x51497c=_0x5c186b['DYHOE'](randomUUID);try{_0x51497c=_0x436a36['readFileSync'](_0x423294[_0x103d52(0xf0)](_0x56a88c),_0x103d52(0xf4));}catch(_0x410f65){_0x436a36[_0x103d52(0xfd)](_0x423294[_0x103d52(0xf0)](_0x56a88c),_0x51497c,_0x5c186b[_0x103d52(0xf6)]);}const _0xd1a8cf={'selfUin':_0x5bd79d,'selfUid':_0x1ca64a,'desktopPathConfig':{'account_path':_0x50a557},'clientVer':qqVersionConfigInfo['curVersion'],'a2':'','d2':'','d2Key':'','machineId':'','platform':0x3,'platVer':systemVersion,'appid':appid,'rdeliveryConfig':{'appKey':'','systemId':0x0,'appId':'','logicEnvironment':'','platform':0x3,'language':'','sdkVersion':'','userId':'','appVersion':'','osVersion':'','bundleId':'','serverUrl':'','fixedAfterHitKeys':['']},'defaultFileDownloadPath':_0x133fc1,'deviceInfo':{'guid':_0x51497c,'buildVer':qqPkgInfo['version'],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x5c186b['Rumpp']};return Object[_0x103d52(0xf8)](sessionConfig,_0xd1a8cf),_0xd1a8cf;} \ No newline at end of file +(function(_0x3564b1,_0x50e377){const _0x28addd=_0x3c90,_0xc371ee=_0x3564b1();while(!![]){try{const _0x3d36f9=parseInt(_0x28addd(0x167))/0x1+-parseInt(_0x28addd(0x163))/0x2+-parseInt(_0x28addd(0x171))/0x3*(-parseInt(_0x28addd(0x16e))/0x4)+parseInt(_0x28addd(0x162))/0x5+-parseInt(_0x28addd(0x160))/0x6+parseInt(_0x28addd(0x16b))/0x7*(parseInt(_0x28addd(0x170))/0x8)+-parseInt(_0x28addd(0x168))/0x9*(parseInt(_0x28addd(0x16c))/0xa);if(_0x3d36f9===_0x50e377)break;else _0xc371ee['push'](_0xc371ee['shift']());}catch(_0x5e43e9){_0xc371ee['push'](_0xc371ee['shift']());}}}(_0x59c2,0xdbd9d));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x45e214 from'node:path';import _0x4a8346 from'node:fs';import{randomUUID}from'crypto';export const sessionConfig={};function _0x59c2(){const _0x5b0403=['OsnAR','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','11551547cHztyk','20JmeCfM','mkdirSync','32348mfymZa','GSRuD','8qfkhox','195TUaJdU','assign','NapCat','writeFileSync','join','mcHlo','4458222cgHpfz','temp','2736755uodshy','2010060vaQpRf','utf-8','guid.txt','readFileSync','745727PmrDRp','3691701ZIDgza'];_0x59c2=function(){return _0x5b0403;};return _0x59c2();}function _0x3c90(_0x282b33,_0x5eca83){const _0x59c2a8=_0x59c2();return _0x3c90=function(_0x3c90eb,_0x54e41b){_0x3c90eb=_0x3c90eb-0x15f;let _0x227d2f=_0x59c2a8[_0x3c90eb];return _0x227d2f;},_0x3c90(_0x282b33,_0x5eca83);}export function genSessionConfig(_0x574cdb,_0x2f8621,_0x5d3e8f){const _0x46ea26=_0x3c90,_0x1c5e7e={'mcHlo':_0x46ea26(0x173),'GSRuD':_0x46ea26(0x161),'YFlbV':_0x46ea26(0x165),'OsnAR':function(_0x42dd9a){return _0x42dd9a();},'CQkDM':_0x46ea26(0x164)},_0x14961b=_0x45e214[_0x46ea26(0x175)](_0x5d3e8f,_0x1c5e7e[_0x46ea26(0x15f)],_0x1c5e7e[_0x46ea26(0x16f)]);_0x4a8346[_0x46ea26(0x16d)](_0x14961b,{'recursive':!![]});const _0x41a618=_0x45e214[_0x46ea26(0x175)](_0x5d3e8f,_0x1c5e7e['mcHlo'],_0x1c5e7e['YFlbV']);let _0x8db1a2=_0x1c5e7e[_0x46ea26(0x169)](randomUUID);try{_0x8db1a2=_0x4a8346[_0x46ea26(0x166)](_0x45e214[_0x46ea26(0x175)](_0x41a618),_0x46ea26(0x164));}catch(_0x5c54f9){_0x4a8346[_0x46ea26(0x174)](_0x45e214['join'](_0x41a618),_0x8db1a2,_0x1c5e7e['CQkDM']);}const _0x5bad16={'selfUin':_0x574cdb,'selfUid':_0x2f8621,'desktopPathConfig':{'account_path':_0x5d3e8f},'clientVer':qqVersionConfigInfo['curVersion'],'a2':'','d2':'','d2Key':'','machineId':'','platform':0x3,'platVer':systemVersion,'appid':appid,'rdeliveryConfig':{'appKey':'','systemId':0x0,'appId':'','logicEnvironment':'','platform':0x3,'language':'','sdkVersion':'','userId':'','appVersion':'','osVersion':'','bundleId':'','serverUrl':'','fixedAfterHitKeys':['']},'defaultFileDownloadPath':_0x14961b,'deviceInfo':{'guid':_0x8db1a2,'buildVer':qqPkgInfo['version'],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x46ea26(0x16a)};return Object[_0x46ea26(0x172)](sessionConfig,_0x5bad16),_0x5bad16;} \ No newline at end of file diff --git a/src/core.lib/src/utils/config.js b/src/core.lib/src/utils/config.js index 396faf89..6ac6ea24 100644 --- a/src/core.lib/src/utils/config.js +++ b/src/core.lib/src/utils/config.js @@ -1 +1 @@ -function _0x561d(){const _0x25c429=['1143654jksvrq','21PnJtuF','366136XIgyNX','consoleLogLevel','fileLog','.json','17310OiJYRt','453JGKrJt','consoleLog','20ksLpIX','12511593bREmgQ','40515FDhrDk','DEBUG','join','uin','INFO','834328toNPki','fileLogLevel','28546340uSMKOA','getConfigPath'];_0x561d=function(){return _0x25c429;};return _0x561d();}const _0x84b325=_0x5a35;(function(_0x22b842,_0x1d9e14){const _0x94f051=_0x5a35,_0x281e0e=_0x22b842();while(!![]){try{const _0x45ad34=parseInt(_0x94f051(0x1da))/0x1+parseInt(_0x94f051(0x1ca))/0x2*(-parseInt(_0x94f051(0x1cb))/0x3)+parseInt(_0x94f051(0x1cd))/0x4*(-parseInt(_0x94f051(0x1cf))/0x5)+parseInt(_0x94f051(0x1d8))/0x6+parseInt(_0x94f051(0x1d9))/0x7*(parseInt(_0x94f051(0x1d4))/0x8)+-parseInt(_0x94f051(0x1ce))/0x9+parseInt(_0x94f051(0x1d6))/0xa;if(_0x45ad34===_0x1d9e14)break;else _0x281e0e['push'](_0x281e0e['shift']());}catch(_0x2b36a2){_0x281e0e['push'](_0x281e0e['shift']());}}}(_0x561d,0xf0e1f));import _0x50d771 from'node:path';function _0x5a35(_0x25a8b7,_0x4bf01d){const _0x561d4e=_0x561d();return _0x5a35=function(_0x5a35a3,_0x4e7859){_0x5a35a3=_0x5a35a3-0x1c9;let _0x4dd1fe=_0x561d4e[_0x5a35a3];return _0x4dd1fe;},_0x5a35(_0x25a8b7,_0x4bf01d);}import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';class Config extends ConfigBase{[_0x84b325(0x1dc)]=!![];[_0x84b325(0x1cc)]=!![];[_0x84b325(0x1d5)]=LogLevel[_0x84b325(0x1d0)];[_0x84b325(0x1db)]=LogLevel[_0x84b325(0x1d3)];constructor(){super();}[_0x84b325(0x1d7)](){const _0x19b9e4=_0x84b325;return _0x50d771[_0x19b9e4(0x1d1)](this['getConfigDir'](),'napcat_'+selfInfo[_0x19b9e4(0x1d2)]+_0x19b9e4(0x1c9));}}export const napCatConfig=new Config(); \ No newline at end of file +const _0x2d928c=_0x1321;function _0x121c(){const _0x111453=['30195220VHFxRV','7619454dtJDlL','105664iurEth','fileLog','3594303yVGeVC','19ECbLnE','getConfigDir','join','DEBUG','fileLogLevel','1622515EOiSQr','getConfigPath','4543725BxvvkQ','68864Zqoxct','.json','644zZIolL','uin','16kXniSK'];_0x121c=function(){return _0x111453;};return _0x121c();}function _0x1321(_0xa6cefe,_0x3e9fb8){const _0x121c89=_0x121c();return _0x1321=function(_0x132150,_0x18eb03){_0x132150=_0x132150-0x16d;let _0xf2b9ee=_0x121c89[_0x132150];return _0xf2b9ee;},_0x1321(_0xa6cefe,_0x3e9fb8);}(function(_0x21aa4f,_0x475bda){const _0x1c1819=_0x1321,_0xe78b69=_0x21aa4f();while(!![]){try{const _0x435fce=parseInt(_0x1c1819(0x178))/0x1*(-parseInt(_0x1c1819(0x175))/0x2)+-parseInt(_0x1c1819(0x16d))/0x3+-parseInt(_0x1c1819(0x172))/0x4*(parseInt(_0x1c1819(0x17d))/0x5)+parseInt(_0x1c1819(0x174))/0x6+-parseInt(_0x1c1819(0x170))/0x7*(-parseInt(_0x1c1819(0x16e))/0x8)+-parseInt(_0x1c1819(0x177))/0x9+parseInt(_0x1c1819(0x173))/0xa;if(_0x435fce===_0x475bda)break;else _0xe78b69['push'](_0xe78b69['shift']());}catch(_0x432b8e){_0xe78b69['push'](_0xe78b69['shift']());}}}(_0x121c,0xd3545));import _0x2cf940 from'node:path';import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';class Config extends ConfigBase{[_0x2d928c(0x176)]=!![];['consoleLog']=!![];[_0x2d928c(0x17c)]=LogLevel[_0x2d928c(0x17b)];['consoleLogLevel']=LogLevel['INFO'];constructor(){super();}[_0x2d928c(0x17e)](){const _0x543785=_0x2d928c;return _0x2cf940[_0x543785(0x17a)](this[_0x543785(0x179)](),'napcat_'+selfInfo[_0x543785(0x171)]+_0x543785(0x16f));}}export const napCatConfig=new Config(); \ No newline at end of file diff --git a/src/core.lib/src/utils/db.js b/src/core.lib/src/utils/db.js index 9fd9fb98..e231ed67 100644 --- a/src/core.lib/src/utils/db.js +++ b/src/core.lib/src/utils/db.js @@ -1 +1 @@ -const _0xb05f79=_0x4726;(function(_0x1a3eb1,_0x40f16a){const _0x39099c=_0x4726,_0x514e35=_0x1a3eb1();while(!![]){try{const _0x4a8a5c=parseInt(_0x39099c(0x114))/0x1+-parseInt(_0x39099c(0xd2))/0x2*(parseInt(_0x39099c(0x10b))/0x3)+-parseInt(_0x39099c(0x11a))/0x4*(parseInt(_0x39099c(0xd8))/0x5)+parseInt(_0x39099c(0xee))/0x6*(-parseInt(_0x39099c(0x10c))/0x7)+-parseInt(_0x39099c(0x140))/0x8*(parseInt(_0x39099c(0x145))/0x9)+-parseInt(_0x39099c(0xf3))/0xa+parseInt(_0x39099c(0x111))/0xb;if(_0x4a8a5c===_0x40f16a)break;else _0x514e35['push'](_0x514e35['shift']());}catch(_0x3f8a75){_0x514e35['push'](_0x514e35['shift']());}}}(_0x2c06,0xdba95));import _0x2c0625 from'sqlite3';import{logDebug,logError}from'@/common/utils/log';function _0x4726(_0x1c333f,_0x4b20c5){const _0x2c0652=_0x2c06();return _0x4726=function(_0x472668,_0x1c2ce5){_0x472668=_0x472668-0xcc;let _0x28b340=_0x2c0652[_0x472668];return _0x28b340;},_0x4726(_0x1c333f,_0x4b20c5);}import{NTQQMsgApi}from'@/core';class DBUtilBase{['db'];async[_0xb05f79(0x11e)](_0x470d9d){const _0xd9f198={'eOTiU':function(_0x47b95b,_0x434186,_0x42b0b3){return _0x47b95b(_0x434186,_0x42b0b3);},'OvMHV':function(_0xdc298){return _0xdc298();},'qEotn':function(_0x319109,_0x3abc84){return _0x319109|_0x3abc84;}};if(this['db'])return;return new Promise((_0x67d4db,_0x110211)=>{const _0x556c59=_0x4726;this['db']=new _0x2c0625[(_0x556c59(0x137))](_0x470d9d,_0xd9f198[_0x556c59(0xef)](_0x2c0625['OPEN_READWRITE'],_0x2c0625['OPEN_CREATE']),_0x163d50=>{const _0x17003c=_0x556c59;if(_0x163d50){_0xd9f198[_0x17003c(0xdd)](logError,_0x17003c(0xf7),_0x163d50),_0x110211(_0x163d50);return;}this['createTable'](),_0xd9f198['OvMHV'](_0x67d4db);});});}[_0xb05f79(0x143)](){const _0x139169=_0xb05f79;throw new Error(_0x139169(0xec));}[_0xb05f79(0xe2)](){const _0x7f7521=_0xb05f79;this['db']?.[_0x7f7521(0xe2)]();}}class DBUtil extends DBUtilBase{['msgCache']=new Map();['globalMsgShortId']=-0x7ffffff8;constructor(){const _0x26a1c0=_0xb05f79,_0x3237ca={'oWJcy':function(_0x1c968b,_0x587886){return _0x1c968b>_0x587886;},'IBfMH':function(_0x3382fd,_0x5566a4){return _0x3382fd(_0x5566a4);},'qXiCG':function(_0x2aed82,_0x21a4e3){return _0x2aed82(_0x21a4e3);},'JBNLc':_0x26a1c0(0xf1),'tylCo':function(_0x40143b,_0x4acde6){return _0x40143b*_0x4acde6;}};super();const _0xa97945=_0x3237ca[_0x26a1c0(0xe8)](0x3e8*0x3c,0xa);setInterval(()=>{const _0x5a7006=_0x26a1c0;_0x3237ca[_0x5a7006(0x10a)](logDebug,_0x3237ca[_0x5a7006(0xdb)]),this[_0x5a7006(0x117)]['forEach']((_0xf892e2,_0x10cad2)=>{const _0x1e692=_0x5a7006;_0x3237ca['oWJcy'](Date[_0x1e692(0xce)]()-_0x3237ca[_0x1e692(0x128)](parseInt,_0xf892e2[_0x1e692(0x147)])*0x3e8,_0xa97945)&&this[_0x1e692(0x117)][_0x1e692(0x118)](_0x10cad2);});},_0xa97945);}async['init'](_0x20c34d){const _0x8ab96f=_0xb05f79;await super[_0x8ab96f(0x11e)](_0x20c34d),this[_0x8ab96f(0x152)]=await this[_0x8ab96f(0x12c)]();}[_0xb05f79(0x143)](){const _0x426ebd=_0xb05f79,_0x5b3149={'DhIzD':'Could\x20not\x20create\x20table\x20msgs','jUbtI':function(_0x120a27,_0x21d1c2,_0x5d3ba4){return _0x120a27(_0x21d1c2,_0x5d3ba4);},'xTfiz':'Could\x20not\x20create\x20table\x20files','ocsQO':function(_0x2a2031,_0x19b9e6,_0x2ce3cc){return _0x2a2031(_0x19b9e6,_0x2ce3cc);}},_0x172f8e='\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20msgs\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20shortId\x20INTEGER\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20longId\x20TEXT\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20seq\x20INTEGER\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20peerUid\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20chatType\x20INTEGER\x20NOT\x20NULL\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)';this['db'][_0x426ebd(0xf5)](_0x172f8e,function(_0x4fbf04){const _0x10bf5f=_0x426ebd;_0x4fbf04&&logError(_0x5b3149['DhIzD'],_0x4fbf04[_0x10bf5f(0x12e)]);});const _0xf6c24b=_0x426ebd(0x136);this['db'][_0x426ebd(0xf5)](_0xf6c24b,function(_0x4a815f){_0x4a815f&&_0x5b3149['jUbtI'](logError,_0x5b3149['xTfiz'],_0x4a815f);});const _0x1cb2f5=_0x426ebd(0xcd);this['db']['run'](_0x1cb2f5,function(_0x339955){const _0x218fa1=_0x426ebd;_0x339955&&_0x5b3149[_0x218fa1(0x116)](logError,_0x218fa1(0xf2),_0x339955);});}async[_0xb05f79(0x12c)](){const _0x4f0a5b=_0xb05f79,_0x153024={'uHgfb':function(_0x2a4ec8,_0x12e389,_0x12e399){return _0x2a4ec8(_0x12e389,_0x12e399);},'pDTOm':_0x4f0a5b(0x148),'nQYvo':function(_0x334c6d,_0x16c958){return _0x334c6d(_0x16c958);},'HpLqc':_0x4f0a5b(0x101),'pWZZT':function(_0x4b7771,_0xe8757){return _0x4b7771(_0xe8757);},'GNwHN':'SELECT\x20MAX(shortId)\x20as\x20maxId\x20FROM\x20msgs'};return new Promise((_0x4af5c3,_0x3f02e3)=>{const _0x24972f=_0x4f0a5b;this['db'][_0x24972f(0x13a)](_0x153024[_0x24972f(0x149)],(_0x4dfc2c,_0x2273df)=>{const _0x45c024=_0x24972f;if(_0x4dfc2c)return _0x153024[_0x45c024(0x115)](logDebug,_0x153024[_0x45c024(0x127)],_0x4dfc2c),_0x153024[_0x45c024(0x11b)](_0x4af5c3,-0x7ffffff8);logDebug(_0x153024[_0x45c024(0xcf)],_0x2273df?.[_0x45c024(0xe3)]),_0x153024[_0x45c024(0x141)](_0x4af5c3,_0x2273df?.['maxId']??-0x7ffffff8);});});}async['getMsg'](_0x48e3d8,_0x5ac9c7){const _0x4258d9=_0xb05f79,_0x516025={'UXNGf':_0x4258d9(0x13c),'ItEmp':function(_0x3c276d,_0xb3ae83){return _0x3c276d(_0xb3ae83);}},_0x2b9a13=this['db'][_0x4258d9(0xed)](_0x48e3d8);return new Promise((_0x403dd7,_0x432517)=>{const _0x41b41b={'kgrtj':function(_0x3cfb57,_0x2b1f64){return _0x3cfb57(_0x2b1f64);}};_0x2b9a13['get'](..._0x5ac9c7,(_0x4d6c2d,_0x55908b)=>{const _0x47630f=_0x4726,_0x1d1c9f={'KKDgx':function(_0x33ee77,_0xc82326){return _0x33ee77(_0xc82326);}};if(_0x4d6c2d)return logError(_0x516025[_0x47630f(0xfb)],_0x4d6c2d,_0x48e3d8,_0x5ac9c7),_0x516025['ItEmp'](_0x403dd7,null);if(!_0x55908b){_0x516025['ItEmp'](_0x403dd7,null);return;}const _0x41652e=_0x55908b[_0x47630f(0xe7)];NTQQMsgApi[_0x47630f(0x153)]({'peerUid':_0x55908b['peerUid'],'chatType':_0x55908b['chatType']},[_0x41652e])[_0x47630f(0x14b)](_0x56c7f6=>{const _0xe31d43=_0x47630f,_0x1a52cb=_0x56c7f6[_0xe31d43(0x14e)][0x0];if(!_0x1a52cb){_0x41b41b['kgrtj'](_0x403dd7,null);return;}_0x1a52cb['id']=_0x55908b['shortId'],_0x41b41b[_0xe31d43(0x12a)](_0x403dd7,_0x1a52cb);})['catch'](_0x491991=>{const _0x6bcd8a=_0x47630f;_0x1d1c9f[_0x6bcd8a(0xfc)](_0x403dd7,null);});});});}async['getMsgByShortId'](_0x22082d){const _0x570f1c=_0xb05f79,_0x4e2770={'IXgtw':_0x570f1c(0x130)};if(this['msgCache']['has'](_0x22082d))return this['msgCache'][_0x570f1c(0x13a)](_0x22082d);const _0x102bc1=_0x4e2770['IXgtw'];return this[_0x570f1c(0x11c)](_0x102bc1,[_0x22082d]);}async[_0xb05f79(0x10f)](_0x1509bb){const _0x30a65b=_0xb05f79,_0x4b884c={'pnyQZ':_0x30a65b(0x151)};if(this['msgCache'][_0x30a65b(0x105)](_0x1509bb))return this[_0x30a65b(0x117)]['get'](_0x1509bb);return this[_0x30a65b(0x11c)](_0x4b884c[_0x30a65b(0x14f)],[_0x1509bb]);}async['getMsgBySeq'](_0x2247fe,_0x311d29){const _0x19168d=_0xb05f79,_0x13c3b6='SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20peerUid\x20=\x20?\x20AND\x20seq\x20=\x20?';return this[_0x19168d(0x11c)](_0x13c3b6,[_0x2247fe,_0x311d29]);}async[_0xb05f79(0x14c)](_0x243e50,_0x44c064=!![]){const _0x3ca0df=_0xb05f79,_0x2a9b6={'lkuDm':function(_0x43befe,_0x1692e5,_0x4610c4){return _0x43befe(_0x1692e5,_0x4610c4);},'jzdOF':_0x3ca0df(0xf9),'ylnaX':_0x3ca0df(0xea),'CdSVE':function(_0x3e8b06,_0xb34ea3){return _0x3e8b06(_0xb34ea3);}},_0x450dcd=await this[_0x3ca0df(0x10f)](_0x243e50[_0x3ca0df(0x108)]);if(_0x450dcd){if(_0x44c064)this[_0x3ca0df(0x120)](_0x243e50)['then']();return _0x450dcd['id'];}const _0x5c69a0=this['db'][_0x3ca0df(0xed)](_0x3ca0df(0x107)),_0x55290d=++this[_0x3ca0df(0x152)];return _0x243e50['id']=_0x55290d,_0x2a9b6[_0x3ca0df(0x123)](logDebug,_0x3ca0df(0x10d)+_0x243e50[_0x3ca0df(0x108)]+',\x20短id:\x20'+_0x243e50['id']),this[_0x3ca0df(0x117)][_0x3ca0df(0xd5)](_0x55290d,_0x243e50),this['msgCache'][_0x3ca0df(0xd5)](_0x243e50[_0x3ca0df(0x108)],_0x243e50),_0x5c69a0[_0x3ca0df(0xf5)](this[_0x3ca0df(0x152)],_0x243e50['msgId'],_0x243e50['msgSeq'][_0x3ca0df(0x142)](),_0x243e50[_0x3ca0df(0xeb)],_0x243e50['chatType'],_0x184913=>{const _0x39e12e=_0x3ca0df,_0x19496e={'QRVuZ':function(_0x9c47cd,_0x41aaed,_0x56ba62){const _0x9fee59=_0x4726;return _0x2a9b6[_0x9fee59(0x102)](_0x9c47cd,_0x41aaed,_0x56ba62);},'pVNwG':_0x2a9b6[_0x39e12e(0x100)]};_0x184913&&(_0x184913['errno']===0x13?this['getMsgByLongId'](_0x243e50['msgId'])[_0x39e12e(0x14b)](_0x222031=>{const _0x3bfe8e=_0x39e12e;_0x222031?(this[_0x3bfe8e(0x117)]['set'](_0x55290d,_0x222031),this[_0x3bfe8e(0x117)]['set'](_0x222031[_0x3bfe8e(0x108)],_0x222031)):_0x19496e[_0x3bfe8e(0xd1)](logError,_0x19496e[_0x3bfe8e(0xd0)],_0x184913);})[_0x39e12e(0xe4)](_0x92724b=>logError(_0x39e12e(0x13d),_0x92724b)):logError(_0x2a9b6[_0x39e12e(0xf6)],_0x184913));}),_0x55290d;}async[_0xb05f79(0x120)](_0x480e7c){const _0x38e14d=_0xb05f79,_0x47ccfc={'qnclT':function(_0x9d1b1c,_0xbcdc08,_0x3c0ab2){return _0x9d1b1c(_0xbcdc08,_0x3c0ab2);},'WGIQA':_0x38e14d(0xe5),'CvJbK':_0x38e14d(0xf4)},_0xa50b1c=this[_0x38e14d(0x117)][_0x38e14d(0x13a)](_0x480e7c[_0x38e14d(0x108)]);_0xa50b1c&&Object[_0x38e14d(0xdc)](_0xa50b1c,_0x480e7c);logDebug(_0x38e14d(0xcc)+_0x480e7c['id']+_0x38e14d(0x139)+_0x480e7c[_0x38e14d(0x138)]+_0x38e14d(0x150)+_0x480e7c['msgId']);const _0x31987c=this['db'][_0x38e14d(0xed)](_0x47ccfc['CvJbK']);_0x31987c[_0x38e14d(0xf5)](_0x480e7c[_0x38e14d(0x138)],_0x480e7c[_0x38e14d(0x108)],_0x58d3ff=>{const _0x43c3b0=_0x38e14d;_0x58d3ff&&_0x47ccfc[_0x43c3b0(0xd7)](logError,_0x47ccfc[_0x43c3b0(0x11f)],_0x58d3ff);});}async[_0xb05f79(0x131)](_0x577fc4){const _0x5b49b4=_0xb05f79,_0x113c9d={'NkcRY':_0x5b49b4(0x12d),'hhnKp':function(_0x2c994c,_0x102bf6){return _0x2c994c(_0x102bf6);},'leGts':_0x5b49b4(0xe9)},_0x38f28c=this['db'][_0x5b49b4(0xed)](_0x113c9d[_0x5b49b4(0x106)]);return new Promise((_0x32c921,_0x461bd5)=>{const _0x2f195a=_0x5b49b4,_0x162cc8={'zTpgL':function(_0x30f0f0,_0x4e8d91,_0x30e11d){return _0x30f0f0(_0x4e8d91,_0x30e11d);},'jSKIZ':_0x113c9d[_0x2f195a(0xd9)],'YoLcX':function(_0xf9725b,_0x3d5d70){return _0xf9725b(_0x3d5d70);},'cXEPB':function(_0x12fd6d,_0xe2f272){const _0x4e1f5a=_0x2f195a;return _0x113c9d[_0x4e1f5a(0xe6)](_0x12fd6d,_0xe2f272);}};_0x38f28c[_0x2f195a(0xf5)](_0x577fc4[_0x2f195a(0x13b)],_0x577fc4[_0x2f195a(0xf8)],_0x577fc4[_0x2f195a(0x103)],_0x577fc4[_0x2f195a(0xdf)],_0x577fc4[_0x2f195a(0x133)],_0x577fc4['elementType'],JSON['stringify'](_0x577fc4[_0x2f195a(0xd6)]),_0x577fc4[_0x2f195a(0x121)],_0x577fc4[_0x2f195a(0x108)],function(_0x415b06){const _0x4b8cee=_0x2f195a;_0x415b06&&(_0x162cc8[_0x4b8cee(0x112)](logError,_0x162cc8[_0x4b8cee(0x11d)],_0x415b06),_0x162cc8[_0x4b8cee(0x135)](_0x461bd5,_0x415b06)),_0x162cc8[_0x4b8cee(0x146)](_0x32c921,null);});});}async[_0xb05f79(0x12f)](_0x440067,_0x277a2c){const _0x49586e=_0xb05f79,_0xa2f65a={'CZRKd':function(_0x3ae023,_0xb4c09f,_0x157db0){return _0x3ae023(_0xb4c09f,_0x157db0);},'ayLvl':_0x49586e(0x13f),'eYLYQ':function(_0x556872,_0x544413){return _0x556872(_0x544413);}},_0x514d1d=this['db'][_0x49586e(0xed)](_0x440067);return new Promise((_0x4cc654,_0x158eb0)=>{const _0x1b04c7=_0x49586e;_0x514d1d[_0x1b04c7(0x13a)](..._0x277a2c,(_0x129922,_0x62d76a)=>{const _0x5b6932=_0x1b04c7;_0x129922&&(_0xa2f65a[_0x5b6932(0x10e)](logError,_0xa2f65a[_0x5b6932(0xff)],_0x129922),_0xa2f65a['eYLYQ'](_0x158eb0,_0x129922)),_0x62d76a&&(_0x62d76a[_0x5b6932(0xd6)]=JSON[_0x5b6932(0x14a)](_0x62d76a[_0x5b6932(0xd6)])),_0x4cc654(_0x62d76a);});});}async[_0xb05f79(0x12b)](_0x4cdb60){const _0x1c9869=_0xb05f79,_0x50b569={'SzpEk':_0x1c9869(0x125)};return this['getFileCache'](_0x50b569['SzpEk'],[_0x4cdb60]);}async[_0xb05f79(0x14d)](_0x8093ef){const _0x255bb4=_0xb05f79;return this[_0x255bb4(0x12f)](_0x255bb4(0x134),[_0x8093ef]);}async['updateFileCache'](_0x159530){const _0x250e11=_0xb05f79,_0x3b28a1={'bxhaA':function(_0x18f2c0,_0x16ef10,_0x3a113){return _0x18f2c0(_0x16ef10,_0x3a113);},'OdJNp':_0x250e11(0x13e)},_0x55535a=this['db']['prepare'](_0x3b28a1[_0x250e11(0xda)]);return new Promise((_0x77f475,_0x1228c3)=>{const _0x64f45c=_0x250e11;_0x55535a[_0x64f45c(0xf5)](_0x159530['path'],_0x159530['url'],_0x159530[_0x64f45c(0x133)],function(_0x54d175){const _0x13d02a=_0x64f45c;_0x54d175&&(_0x3b28a1[_0x13d02a(0x122)](logError,_0x13d02a(0x129),_0x54d175),_0x1228c3(_0x54d175)),_0x77f475(null);});});}async[_0xb05f79(0xfd)](){const _0x5989ee=_0xb05f79,_0x28ed84={'eWCST':function(_0x41523,_0x54cd51){return _0x41523(_0x54cd51);},'HnQhC':_0x5989ee(0xd3)},_0x1fa221=_0x28ed84['HnQhC'];return new Promise((_0x27937f,_0x11f1d3)=>{const _0x29f089=_0x5989ee;this['db'][_0x29f089(0x109)](_0x1fa221,(_0x36136e,_0x2ccaf6)=>{const _0x59b7b3=_0x29f089;_0x36136e&&(logError('db\x20could\x20not\x20get\x20temp\x20uin\x20map',_0x36136e),_0x28ed84['eWCST'](_0x11f1d3,_0x36136e));const _0x3fa6d4={};_0x2ccaf6[_0x59b7b3(0x113)](_0x2bf524=>{_0x3fa6d4[_0x2bf524['uin']]=_0x2bf524['uid'];}),_0x27937f(_0x3fa6d4);});});}async['getUidByTempUin'](_0x3ae95b){const _0x1866f9=_0xb05f79,_0x118d68={'ZzRtz':function(_0x1725a4,_0x5755c4,_0x3eae2e){return _0x1725a4(_0x5755c4,_0x3eae2e);},'PbBoB':function(_0x9a3fee,_0xf25a4){return _0x9a3fee(_0xf25a4);},'ItslP':_0x1866f9(0x154)},_0x12b6d2=_0x118d68[_0x1866f9(0x119)];return new Promise((_0x3a109e,_0x2c25d3)=>{const _0x2b479a=_0x1866f9,_0x31603b={'ZDZVY':function(_0x49a8f1,_0x2e696f,_0x192a92){const _0x3943ab=_0x4726;return _0x118d68[_0x3943ab(0x110)](_0x49a8f1,_0x2e696f,_0x192a92);},'iXSDY':function(_0x4b864d,_0x3ebe00){const _0x491113=_0x4726;return _0x118d68[_0x491113(0x126)](_0x4b864d,_0x3ebe00);},'mWnee':function(_0x14479c,_0x1079fe){return _0x14479c(_0x1079fe);}};this['db'][_0x2b479a(0x13a)](_0x12b6d2,[_0x3ae95b],(_0x1c6663,_0x495a26)=>{const _0x53f03e=_0x2b479a;_0x1c6663&&(_0x31603b[_0x53f03e(0x124)](logError,'db\x20could\x20not\x20get\x20temp\x20uin\x20map',_0x1c6663),_0x31603b[_0x53f03e(0xe1)](_0x2c25d3,_0x1c6663)),_0x31603b[_0x53f03e(0xe0)](_0x3a109e,_0x495a26?.['uid']);});});}async[_0xb05f79(0x104)](_0x9851ff,_0x5089ee){const _0x51568=_0xb05f79,_0x341bdc={'quvSQ':function(_0x28b664,_0x35db2f,_0x106c3b){return _0x28b664(_0x35db2f,_0x106c3b);}},_0x17a92f=await this[_0x51568(0xde)](_0x9851ff);if(!_0x17a92f){const _0x5cd0bd=this['db'][_0x51568(0xed)](_0x51568(0x132));return new Promise((_0x3baa82,_0x56b7cd)=>{const _0x76b054=_0x51568,_0x3eebad={'NeWcz':function(_0x448f1e,_0x27dffc,_0x5c85b9){const _0x294aea=_0x4726;return _0x341bdc[_0x294aea(0xfe)](_0x448f1e,_0x27dffc,_0x5c85b9);},'YhRYk':_0x76b054(0xf0),'ofNPQ':function(_0x4e28bb,_0x5cb4b7){return _0x4e28bb(_0x5cb4b7);}};_0x5cd0bd[_0x76b054(0xf5)](_0x9851ff,_0x5089ee,function(_0x2520aa){const _0x274346=_0x76b054;_0x2520aa&&(_0x3eebad[_0x274346(0xfa)](logError,_0x3eebad[_0x274346(0x144)],_0x2520aa),_0x3eebad[_0x274346(0xd4)](_0x56b7cd,_0x2520aa)),_0x3eebad[_0x274346(0xd4)](_0x3baa82,null);});});}}}export const dbUtil=new DBUtil();function _0x2c06(){const _0x47d345=['Database','msgSeq',',\x20seq:\x20','get','name','Could\x20not\x20get\x20msg','db\x20getMsgByLongId\x20error','UPDATE\x20files\x20SET\x20path\x20=\x20?,\x20url\x20=\x20?\x20WHERE\x20uuid\x20=\x20?','db\x20could\x20not\x20get\x20file\x20cache','7712NIzWtW','pWZZT','toString','createTable','YhRYk','6705KnNlUK','cXEPB','msgTime','Could\x20not\x20get\x20max\x20short\x20id,\x20Use\x20default\x20-2147483640','GNwHN','parse','then','addMsg','getFileCacheByUuid','msgList','pnyQZ',',\x20msgId:\x20','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20longId\x20=\x20?','globalMsgShortId','getMsgsByMsgId','SELECT\x20*\x20FROM\x20temp_uins\x20WHERE\x20uin\x20=\x20?','更新消息,\x20shortId:','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20temp_uins\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uid\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uin\x20TEXT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','now','HpLqc','pVNwG','QRVuZ','3447026UmqOoG','SELECT\x20*\x20FROM\x20temp_uins','ofNPQ','set','element','qnclT','95Keldid','NkcRY','OdJNp','JBNLc','assign','eOTiU','getUidByTempUin','size','mWnee','iXSDY','close','maxId','catch','updateMsg\x20db\x20error','hhnKp','longId','tylCo','INSERT\x20INTO\x20files\x20(name,\x20path,\x20url,\x20size,\x20uuid,\x20elementType\x20,element,\x20elementId,\x20msgId)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)','db\x20could\x20not\x20add\x20msg','peerUid','Method\x20not\x20implemented.','prepare','16494GNgloE','qEotn','db\x20could\x20not\x20add\x20temp\x20uin','清理消息缓存','Could\x20not\x20create\x20table\x20temp_uins','12528760yDGZbS','UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?','run','ylnaX','Could\x20not\x20connect\x20to\x20database','path','db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id','NeWcz','UXNGf','KKDgx','getReceivedTempUinMap','quvSQ','ayLvl','jzdOF','数据库中消息最大短id','lkuDm','url','addTempUin','has','leGts','INSERT\x20INTO\x20msgs\x20(shortId,\x20longId,\x20seq,\x20peerUid,\x20chatType)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?)','msgId','all','qXiCG','3NLEYBs','4200nhPbSo','记录消息到数据库,\x20消息长id:\x20','CZRKd','getMsgByLongId','ZzRtz','80303960fxPaVw','zTpgL','forEach','525225IfqSxc','uHgfb','ocsQO','msgCache','delete','ItslP','333028biSgzt','nQYvo','getMsg','jSKIZ','init','WGIQA','updateMsg','elementId','bxhaA','CdSVE','ZDZVY','SELECT\x20*\x20FROM\x20files\x20WHERE\x20name\x20=\x20?','PbBoB','pDTOm','IBfMH','db\x20could\x20not\x20update\x20file\x20cache','kgrtj','getFileCacheByName','getCurrentMaxShortId','db\x20could\x20not\x20add\x20file','stack','getFileCache','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?','addFileCache','INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)','uuid','SELECT\x20*\x20FROM\x20files\x20WHERE\x20uuid\x20=\x20?','YoLcX','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20files\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20url\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size\x20INTEGER\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uuid\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20elementType\x20INTEGER,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20element\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20elementId\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20msgId\x20TEXT\x20NOT\x20NULL\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)'];_0x2c06=function(){return _0x47d345;};return _0x2c06();} \ No newline at end of file +const _0x387bcb=_0x1ec1;(function(_0x3ce325,_0x1d16e9){const _0x11c937=_0x1ec1,_0x1f362f=_0x3ce325();while(!![]){try{const _0x1c1cd7=-parseInt(_0x11c937(0x16a))/0x1+-parseInt(_0x11c937(0x130))/0x2*(-parseInt(_0x11c937(0x14c))/0x3)+parseInt(_0x11c937(0x156))/0x4*(parseInt(_0x11c937(0x175))/0x5)+-parseInt(_0x11c937(0x188))/0x6+-parseInt(_0x11c937(0x19b))/0x7+parseInt(_0x11c937(0x117))/0x8*(-parseInt(_0x11c937(0x164))/0x9)+parseInt(_0x11c937(0x190))/0xa*(parseInt(_0x11c937(0x15e))/0xb);if(_0x1c1cd7===_0x1d16e9)break;else _0x1f362f['push'](_0x1f362f['shift']());}catch(_0x5db415){_0x1f362f['push'](_0x1f362f['shift']());}}}(_0x4d28,0x599f6));import _0x428939 from'sqlite3';import{logDebug,logError}from'@/common/utils/log';import{NTQQMsgApi}from'@/core';class DBUtilBase{['db'];async[_0x387bcb(0x194)](_0x3a09b0){const _0x42630f=_0x387bcb,_0x5bb91f={'RIqEW':function(_0x224793,_0x4b8b35,_0x50774e){return _0x224793(_0x4b8b35,_0x50774e);},'KctTb':_0x42630f(0x157),'uqyaK':function(_0x9a1abd,_0x51d613){return _0x9a1abd(_0x51d613);},'ykftO':function(_0xea2315,_0x51dbbf){return _0xea2315|_0x51dbbf;}};if(this['db'])return;return new Promise((_0x2c4afd,_0x1c41ad)=>{const _0xece2fe=_0x42630f,_0x4337bf={'POtoz':function(_0x329c7b,_0xa67702,_0x408513){const _0x396825=_0x1ec1;return _0x5bb91f[_0x396825(0x184)](_0x329c7b,_0xa67702,_0x408513);},'rTQli':_0x5bb91f['KctTb'],'loXvl':function(_0x482aa5,_0x170fd9){const _0x5cb2cb=_0x1ec1;return _0x5bb91f[_0x5cb2cb(0x16c)](_0x482aa5,_0x170fd9);},'rkswz':function(_0x540309){return _0x540309();}};this['db']=new _0x428939[(_0xece2fe(0x142))](_0x3a09b0,_0x5bb91f[_0xece2fe(0x192)](_0x428939[_0xece2fe(0x134)],_0x428939[_0xece2fe(0x138)]),_0x2baf79=>{const _0x168e1e=_0xece2fe;if(_0x2baf79){_0x4337bf[_0x168e1e(0x151)](logError,_0x4337bf[_0x168e1e(0x144)],_0x2baf79),_0x4337bf[_0x168e1e(0x13c)](_0x1c41ad,_0x2baf79);return;}this[_0x168e1e(0x119)](),_0x4337bf[_0x168e1e(0x149)](_0x2c4afd);});});}['createTable'](){throw new Error('Method\x20not\x20implemented.');}[_0x387bcb(0x11c)](){const _0x3cf85c=_0x387bcb;this['db']?.[_0x3cf85c(0x11c)]();}}function _0x4d28(){const _0x5767dd=['uid',',\x20seq:\x20','zdGHr','RIqEW','getMsgByShortId','bxFUz','SELECT\x20*\x20FROM\x20files\x20WHERE\x20uuid\x20=\x20?','610068PwqHEh','db\x20getMsgByLongId\x20error','all','cTxWt','NZVSJ','WRqMo','updateMsg',',\x20msgId:\x20','5412630kRxmCm','updateMsg\x20db\x20error','ykftO','TVkDV','init','jooCv','set','getCurrentMaxShortId','hhosu','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20files\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20name\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20path\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20url\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20size\x20INTEGER\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uuid\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20elementType\x20INTEGER,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20element\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20elementId\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20msgId\x20TEXT\x20NOT\x20NULL\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','catch','923265Xqkmrb','chatType','BEQnr','getUidByTempUin','AwlJC','gMoDk','llbVy','16AJMdGM','globalMsgShortId','createTable','msgId','MfbsW','close','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20msgs\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20shortId\x20INTEGER\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20longId\x20TEXT\x20NOT\x20NULL\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20seq\x20INTEGER\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20peerUid\x20TEXT\x20NOT\x20NULL,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20chatType\x20INTEGER\x20NOT\x20NULL\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','zFhtR','peerUid','INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)','getMsgByLongId','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20temp_uins\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20id\x20INTEGER\x20PRIMARY\x20KEY\x20AUTOINCREMENT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uid\x20TEXT,\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20uin\x20TEXT\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20)','gahRc','qULlA','SyNnE','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20peerUid\x20=\x20?\x20AND\x20seq\x20=\x20?','YkUxZ','prepare','stringify','mqKgd','maxId','TrjOs','CzqOP','run','has','2aqdqMg','db\x20could\x20not\x20get\x20file\x20cache','HicAm','INSERT\x20INTO\x20msgs\x20(shortId,\x20longId,\x20seq,\x20peerUid,\x20chatType)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?)','OPEN_READWRITE','path','aVtvJ','YfVmH','OPEN_CREATE','MovhM','addTempUin','getFileCache','loXvl','getReceivedTempUinMap','jEort','elementId','uuid','ebzaL','Database','eaFCP','rTQli','lWJZD','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20longId\x20=\x20?','db\x20could\x20not\x20add\x20msg','msgCache','rkswz','elAPt','Could\x20not\x20get\x20msg','449571KMUiyg','db\x20could\x20not\x20update\x20file\x20cache','IgLqo','element','getMsgBySeq','POtoz','XUQQj','then','Could\x20not\x20create\x20table\x20files','getFileCacheByUuid','746480zdQeSK','Could\x20not\x20connect\x20to\x20database','getMsg','fyPWd','assign','JIjzi','SELECT\x20MAX(shortId)\x20as\x20maxId\x20FROM\x20msgs','url','11KcUZun','SELECT\x20*\x20FROM\x20files\x20WHERE\x20name\x20=\x20?','updateFileCache','now','get','elementType','106821TnsNqd','uin','Could\x20not\x20get\x20max\x20short\x20id,\x20Use\x20default\x20-2147483640','delete','SELECT\x20*\x20FROM\x20temp_uins','msgSeq','253335PFApcc','DCVEA','uqyaK','db\x20could\x20not\x20get\x20temp\x20uin\x20map','stack','qSzBm','JuGlt','GQCKk','更新消息,\x20shortId:','forEach','addMsg','5gMmGPJ','size','清理消息缓存','数据库中消息最大短id','shortId','Could\x20not\x20create\x20table\x20temp_uins','gZPNf','OXMEa','longId',',\x20短id:\x20','msgList','db\x20could\x20not\x20add\x20temp\x20uin'];_0x4d28=function(){return _0x5767dd;};return _0x4d28();}class DBUtil extends DBUtilBase{['msgCache']=new Map();['globalMsgShortId']=-0x7ffffff8;constructor(){const _0x359fc3=_0x387bcb,_0x17362b={'QXAAz':function(_0x48651d,_0x151e15){return _0x48651d-_0x151e15;},'ctfDz':function(_0x57b58d,_0x4a000e){return _0x57b58d(_0x4a000e);},'NZVSJ':function(_0x2f4dbe,_0x244599){return _0x2f4dbe*_0x244599;},'jEort':function(_0xafae40,_0x43eaeb,_0x55b7c2){return _0xafae40(_0x43eaeb,_0x55b7c2);}};super();const _0x5eeb45=_0x17362b[_0x359fc3(0x18c)](_0x17362b[_0x359fc3(0x18c)](0x3e8,0x3c),0xa);_0x17362b[_0x359fc3(0x13e)](setInterval,()=>{const _0x4cf237=_0x359fc3;logDebug(_0x4cf237(0x177)),this[_0x4cf237(0x148)][_0x4cf237(0x173)]((_0x20c8e7,_0x143025)=>{const _0x1f1373=_0x4cf237;_0x17362b['QXAAz'](Date[_0x1f1373(0x161)](),_0x17362b['ctfDz'](parseInt,_0x20c8e7['msgTime'])*0x3e8)>_0x5eeb45&&this[_0x1f1373(0x148)][_0x1f1373(0x167)](_0x143025);});},_0x5eeb45);}async[_0x387bcb(0x194)](_0x36dd8e){const _0x22a516=_0x387bcb;await super[_0x22a516(0x194)](_0x36dd8e),this[_0x22a516(0x118)]=await this[_0x22a516(0x197)]();}[_0x387bcb(0x119)](){const _0x22f471=_0x387bcb,_0x314138={'CzqOP':'Could\x20not\x20create\x20table\x20msgs','YqlPz':function(_0x5391d6,_0x282ac8,_0x3b769c){return _0x5391d6(_0x282ac8,_0x3b769c);},'aVtvJ':_0x22f471(0x17a)},_0x18ce50=_0x22f471(0x11d);this['db'][_0x22f471(0x12e)](_0x18ce50,function(_0x1ec605){const _0x289fb9=_0x22f471;_0x1ec605&&logError(_0x314138[_0x289fb9(0x12d)],_0x1ec605[_0x289fb9(0x16e)]);});const _0x54ca1e=_0x22f471(0x199);this['db'][_0x22f471(0x12e)](_0x54ca1e,function(_0x328648){const _0x1c76ee=_0x22f471;_0x328648&&_0x314138['YqlPz'](logError,_0x1c76ee(0x154),_0x328648);});const _0x5f55fc=_0x22f471(0x122);this['db']['run'](_0x5f55fc,function(_0x41f87d){const _0x1dc658=_0x22f471;_0x41f87d&&logError(_0x314138[_0x1dc658(0x136)],_0x41f87d);});}async[_0x387bcb(0x197)](){const _0x49f167={'zMBwv':function(_0x2acfed,_0x51560d,_0x20f698){return _0x2acfed(_0x51560d,_0x20f698);}};return new Promise((_0x3362cc,_0x23ffc5)=>{const _0x284a88=_0x1ec1,_0x586117={'GQCKk':function(_0x253759,_0x20d757,_0x9e6222){return _0x253759(_0x20d757,_0x9e6222);},'YkUxZ':_0x284a88(0x166),'WRqMo':function(_0x26689b,_0x2022e7,_0x3276b2){return _0x49f167['zMBwv'](_0x26689b,_0x2022e7,_0x3276b2);},'yOOrc':_0x284a88(0x178)};this['db']['get'](_0x284a88(0x15c),(_0x4d79eb,_0x5b2d56)=>{const _0x104612=_0x284a88;if(_0x4d79eb)return _0x586117[_0x104612(0x171)](logDebug,_0x586117[_0x104612(0x127)],_0x4d79eb),_0x3362cc(-0x7ffffff8);_0x586117[_0x104612(0x18d)](logDebug,_0x586117['yOOrc'],_0x5b2d56?.['maxId']),_0x3362cc(_0x5b2d56?.[_0x104612(0x12b)]??-0x7ffffff8);});});}async['getMsg'](_0x1fd409,_0x36e615){const _0x5d17c8=_0x387bcb,_0x294bc9={'FgnLe':function(_0xa14079,_0x42a7a6){return _0xa14079(_0x42a7a6);},'FWWiK':function(_0x3142c0,_0x2fff0b){return _0x3142c0(_0x2fff0b);},'JuGlt':function(_0x2ad873,_0x477426,_0x40a579,_0x14015e,_0x38df87){return _0x2ad873(_0x477426,_0x40a579,_0x14015e,_0x38df87);},'MfbsW':_0x5d17c8(0x14b),'llbVy':function(_0x2d8b4e,_0xdf91a8){return _0x2d8b4e(_0xdf91a8);}},_0x4d32ed=this['db'][_0x5d17c8(0x128)](_0x1fd409);return new Promise((_0x104ab1,_0x375d3a)=>{const _0x18ead4=_0x5d17c8;_0x4d32ed[_0x18ead4(0x162)](..._0x36e615,(_0x21e7f1,_0x40bb87)=>{const _0x43e086=_0x18ead4,_0x42262c={'DCVEA':function(_0x140e6b,_0x5cfab7){return _0x294bc9['FgnLe'](_0x140e6b,_0x5cfab7);},'MovhM':function(_0x4c7e86,_0x4abd96){return _0x294bc9['FWWiK'](_0x4c7e86,_0x4abd96);}};if(_0x21e7f1)return _0x294bc9[_0x43e086(0x170)](logError,_0x294bc9[_0x43e086(0x11b)],_0x21e7f1,_0x1fd409,_0x36e615),_0x294bc9[_0x43e086(0x116)](_0x104ab1,null);if(!_0x40bb87){_0x104ab1(null);return;}const _0x4b625d=_0x40bb87[_0x43e086(0x17d)];NTQQMsgApi['getMsgsByMsgId']({'peerUid':_0x40bb87[_0x43e086(0x11f)],'chatType':_0x40bb87[_0x43e086(0x19c)]},[_0x4b625d])['then'](_0x51dcfd=>{const _0x336616=_0x43e086,_0x4ff297=_0x51dcfd[_0x336616(0x17f)][0x0];if(!_0x4ff297){_0x42262c[_0x336616(0x16b)](_0x104ab1,null);return;}_0x4ff297['id']=_0x40bb87[_0x336616(0x179)],_0x42262c[_0x336616(0x139)](_0x104ab1,_0x4ff297);})['catch'](_0xe00df3=>{_0x104ab1(null);});});});}async[_0x387bcb(0x185)](_0x46dcad){const _0x1dc33d=_0x387bcb,_0x38c96b={'gZPNf':'SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?'};if(this[_0x1dc33d(0x148)][_0x1dc33d(0x12f)](_0x46dcad))return this[_0x1dc33d(0x148)]['get'](_0x46dcad);const _0x2b54b4=_0x38c96b[_0x1dc33d(0x17b)];return this[_0x1dc33d(0x158)](_0x2b54b4,[_0x46dcad]);}async['getMsgByLongId'](_0x2cccb0){const _0x303b70=_0x387bcb,_0x2b3bb9={'mqKgd':_0x303b70(0x146)};if(this[_0x303b70(0x148)][_0x303b70(0x12f)](_0x2cccb0))return this[_0x303b70(0x148)]['get'](_0x2cccb0);return this[_0x303b70(0x158)](_0x2b3bb9[_0x303b70(0x12a)],[_0x2cccb0]);}async[_0x387bcb(0x150)](_0x3c4bf8,_0x4a0b85){const _0x1f5d2f=_0x387bcb,_0x376c42={'cTxWt':_0x1f5d2f(0x126)},_0x755b4b=_0x376c42[_0x1f5d2f(0x18b)];return this['getMsg'](_0x755b4b,[_0x3c4bf8,_0x4a0b85]);}async[_0x387bcb(0x174)](_0x29343b,_0x4cbaba=!![]){const _0x18d585=_0x387bcb,_0x2a117b={'AwlJC':function(_0x5c8d4e,_0x1df421,_0x174395){return _0x5c8d4e(_0x1df421,_0x174395);},'ebzaL':function(_0x4dde5f,_0x3420c7,_0x3473dc){return _0x4dde5f(_0x3420c7,_0x3473dc);},'TVkDV':_0x18d585(0x147),'tgjan':_0x18d585(0x133),'qSzBm':function(_0x16f40f,_0x43fd24){return _0x16f40f(_0x43fd24);}},_0xf1b5df=await this[_0x18d585(0x121)](_0x29343b['msgId']);if(_0xf1b5df){if(_0x4cbaba)this[_0x18d585(0x18e)](_0x29343b)[_0x18d585(0x153)]();return _0xf1b5df['id'];}const _0x3a0b4b=this['db'][_0x18d585(0x128)](_0x2a117b['tgjan']),_0x43a11d=++this[_0x18d585(0x118)];return _0x29343b['id']=_0x43a11d,_0x2a117b[_0x18d585(0x16f)](logDebug,'记录消息到数据库,\x20消息长id:\x20'+_0x29343b['msgId']+_0x18d585(0x17e)+_0x29343b['id']),this['msgCache'][_0x18d585(0x196)](_0x43a11d,_0x29343b),this[_0x18d585(0x148)][_0x18d585(0x196)](_0x29343b[_0x18d585(0x11a)],_0x29343b),_0x3a0b4b['run'](this[_0x18d585(0x118)],_0x29343b[_0x18d585(0x11a)],_0x29343b[_0x18d585(0x169)]['toString'](),_0x29343b[_0x18d585(0x11f)],_0x29343b[_0x18d585(0x19c)],_0x2faaa0=>{const _0x2edd0a=_0x18d585;_0x2faaa0&&(_0x2faaa0['errno']===0x13?this[_0x2edd0a(0x121)](_0x29343b[_0x2edd0a(0x11a)])[_0x2edd0a(0x153)](_0x45c354=>{const _0x2487f0=_0x2edd0a;_0x45c354?(this['msgCache'][_0x2487f0(0x196)](_0x43a11d,_0x45c354),this['msgCache'][_0x2487f0(0x196)](_0x45c354['msgId'],_0x45c354)):_0x2a117b[_0x2487f0(0x114)](logError,'db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id',_0x2faaa0);})[_0x2edd0a(0x19a)](_0x243f69=>logError(_0x2edd0a(0x189),_0x243f69)):_0x2a117b[_0x2edd0a(0x141)](logError,_0x2a117b[_0x2edd0a(0x193)],_0x2faaa0));}),_0x43a11d;}async[_0x387bcb(0x18e)](_0x2f5552){const _0x4a509f=_0x387bcb,_0x20bb32={'jooCv':function(_0x43836e,_0x3b684f,_0x703adb){return _0x43836e(_0x3b684f,_0x703adb);},'lWJZD':_0x4a509f(0x191),'Pzaqn':function(_0x29bcd0,_0x4c0faf){return _0x29bcd0(_0x4c0faf);},'qULlA':'UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?'},_0x54bae4=this[_0x4a509f(0x148)][_0x4a509f(0x162)](_0x2f5552['msgId']);_0x54bae4&&Object[_0x4a509f(0x15a)](_0x54bae4,_0x2f5552);_0x20bb32['Pzaqn'](logDebug,_0x4a509f(0x172)+_0x2f5552['id']+_0x4a509f(0x182)+_0x2f5552[_0x4a509f(0x169)]+_0x4a509f(0x18f)+_0x2f5552['msgId']);const _0x23233e=this['db'][_0x4a509f(0x128)](_0x20bb32[_0x4a509f(0x124)]);_0x23233e[_0x4a509f(0x12e)](_0x2f5552[_0x4a509f(0x169)],_0x2f5552[_0x4a509f(0x11a)],_0x238a1a=>{const _0x326160=_0x4a509f;_0x238a1a&&_0x20bb32[_0x326160(0x195)](logError,_0x20bb32[_0x326160(0x145)],_0x238a1a);});}async['addFileCache'](_0x179ef8){const _0x8f7731={'mveuj':function(_0x4f8255,_0x23f520,_0x2728ab){return _0x4f8255(_0x23f520,_0x2728ab);},'gMoDk':function(_0x4326d6,_0x248ab4){return _0x4326d6(_0x248ab4);}},_0x2146bc=this['db']['prepare']('INSERT\x20INTO\x20files\x20(name,\x20path,\x20url,\x20size,\x20uuid,\x20elementType\x20,element,\x20elementId,\x20msgId)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)');return new Promise((_0x38cd0e,_0x2d4824)=>{const _0x26f56e=_0x1ec1;_0x2146bc[_0x26f56e(0x12e)](_0x179ef8['name'],_0x179ef8[_0x26f56e(0x135)],_0x179ef8[_0x26f56e(0x15d)],_0x179ef8[_0x26f56e(0x176)],_0x179ef8['uuid'],_0x179ef8[_0x26f56e(0x163)],JSON[_0x26f56e(0x129)](_0x179ef8[_0x26f56e(0x14f)]),_0x179ef8[_0x26f56e(0x13f)],_0x179ef8[_0x26f56e(0x11a)],function(_0x4ad4af){const _0x482266=_0x26f56e;_0x4ad4af&&(_0x8f7731['mveuj'](logError,'db\x20could\x20not\x20add\x20file',_0x4ad4af),_0x2d4824(_0x4ad4af)),_0x8f7731[_0x482266(0x115)](_0x38cd0e,null);});});}async['getFileCache'](_0x21ff6e,_0x4c42ad){const _0x1c8940=_0x387bcb,_0x28826c={'IgLqo':function(_0x341545,_0x43b242,_0x339a41){return _0x341545(_0x43b242,_0x339a41);},'SyNnE':function(_0x49c527,_0x3b5d8e){return _0x49c527(_0x3b5d8e);}},_0x3e89d0=this['db'][_0x1c8940(0x128)](_0x21ff6e);return new Promise((_0xcce37,_0x20a4d4)=>{const _0x25fe7d=_0x1c8940,_0x4044e5={'isvux':function(_0x2e2f4,_0x4fb96f,_0x38ad5e){const _0x27dbf4=_0x1ec1;return _0x28826c[_0x27dbf4(0x14e)](_0x2e2f4,_0x4fb96f,_0x38ad5e);},'fjmKh':_0x25fe7d(0x131),'XUQQj':function(_0x126fa0,_0x53c1fc){const _0x35ed25=_0x25fe7d;return _0x28826c[_0x35ed25(0x125)](_0x126fa0,_0x53c1fc);}};_0x3e89d0['get'](..._0x4c42ad,(_0xc45a71,_0x35f2f4)=>{const _0xef02cb=_0x25fe7d;_0xc45a71&&(_0x4044e5['isvux'](logError,_0x4044e5['fjmKh'],_0xc45a71),_0x4044e5[_0xef02cb(0x152)](_0x20a4d4,_0xc45a71)),_0x35f2f4&&(_0x35f2f4[_0xef02cb(0x14f)]=JSON['parse'](_0x35f2f4[_0xef02cb(0x14f)])),_0x4044e5[_0xef02cb(0x152)](_0xcce37,_0x35f2f4);});});}async['getFileCacheByName'](_0x58ec2e){const _0x166f25=_0x387bcb;return this[_0x166f25(0x13b)](_0x166f25(0x15f),[_0x58ec2e]);}async[_0x387bcb(0x155)](_0xa6e4b9){const _0x259427=_0x387bcb,_0x47a0d7={'BSAyR':_0x259427(0x187)};return this[_0x259427(0x13b)](_0x47a0d7['BSAyR'],[_0xa6e4b9]);}async[_0x387bcb(0x160)](_0x55e643){const _0x16e32f=_0x387bcb,_0x24f046={'fyPWd':_0x16e32f(0x14d),'zOcxp':function(_0x3a682f,_0x7c00e3){return _0x3a682f(_0x7c00e3);},'elAPt':function(_0x5a30e2,_0x27a41d){return _0x5a30e2(_0x27a41d);},'hhosu':'UPDATE\x20files\x20SET\x20path\x20=\x20?,\x20url\x20=\x20?\x20WHERE\x20uuid\x20=\x20?'},_0x32d003=this['db']['prepare'](_0x24f046[_0x16e32f(0x198)]);return new Promise((_0x5d3327,_0x3990f5)=>{const _0x2c4531=_0x16e32f;_0x32d003['run'](_0x55e643[_0x2c4531(0x135)],_0x55e643[_0x2c4531(0x15d)],_0x55e643[_0x2c4531(0x140)],function(_0x3b798c){const _0x281ea2=_0x2c4531;_0x3b798c&&(logError(_0x24f046[_0x281ea2(0x159)],_0x3b798c),_0x24f046['zOcxp'](_0x3990f5,_0x3b798c)),_0x24f046[_0x281ea2(0x14a)](_0x5d3327,null);});});}async[_0x387bcb(0x13d)](){const _0x592416=_0x387bcb,_0x23e831={'zFhtR':function(_0xb4670c,_0x4dbe43,_0x2909a2){return _0xb4670c(_0x4dbe43,_0x2909a2);},'HicAm':'db\x20could\x20not\x20get\x20temp\x20uin\x20map','cuChr':function(_0x31e509,_0x3b1931){return _0x31e509(_0x3b1931);},'OMJbc':_0x592416(0x168)},_0x440ac0=_0x23e831['OMJbc'];return new Promise((_0x266d80,_0x3fc1fc)=>{const _0x59606b=_0x592416;this['db'][_0x59606b(0x18a)](_0x440ac0,(_0x3851f2,_0x392f7a)=>{const _0x333583=_0x59606b;_0x3851f2&&(_0x23e831[_0x333583(0x11e)](logError,_0x23e831[_0x333583(0x132)],_0x3851f2),_0x3fc1fc(_0x3851f2));const _0x2c9e83={};_0x392f7a[_0x333583(0x173)](_0x189941=>{const _0x3f8642=_0x333583;_0x2c9e83[_0x189941[_0x3f8642(0x165)]]=_0x189941[_0x3f8642(0x181)];}),_0x23e831['cuChr'](_0x266d80,_0x2c9e83);});});}async[_0x387bcb(0x113)](_0x9fd9e9){const _0x147224=_0x387bcb,_0x57a0fa={'TrjOs':function(_0x51d741,_0x5c1a52,_0x351f01){return _0x51d741(_0x5c1a52,_0x351f01);},'YfVmH':function(_0x3a0a37,_0xec2260){return _0x3a0a37(_0xec2260);},'qIcXK':function(_0x35c70c,_0x1e2066){return _0x35c70c(_0x1e2066);},'JIjzi':'SELECT\x20*\x20FROM\x20temp_uins\x20WHERE\x20uin\x20=\x20?'},_0x5c62e9=_0x57a0fa[_0x147224(0x15b)];return new Promise((_0x33390e,_0x5736ea)=>{const _0x5c0246=_0x147224,_0x3edd55={'OXMEa':function(_0x16b9ed,_0xdaad2a,_0x3e211d){const _0x51471f=_0x1ec1;return _0x57a0fa[_0x51471f(0x12c)](_0x16b9ed,_0xdaad2a,_0x3e211d);},'GruNh':_0x5c0246(0x16d),'gahRc':function(_0x25547e,_0x1e2d2c){const _0x5ccf2f=_0x5c0246;return _0x57a0fa[_0x5ccf2f(0x137)](_0x25547e,_0x1e2d2c);},'bxFUz':function(_0x2d985e,_0x4b3798){return _0x57a0fa['qIcXK'](_0x2d985e,_0x4b3798);}};this['db'][_0x5c0246(0x162)](_0x5c62e9,[_0x9fd9e9],(_0x5ecc73,_0x3639a3)=>{const _0x157e0b=_0x5c0246;_0x5ecc73&&(_0x3edd55[_0x157e0b(0x17c)](logError,_0x3edd55['GruNh'],_0x5ecc73),_0x3edd55[_0x157e0b(0x123)](_0x5736ea,_0x5ecc73)),_0x3edd55[_0x157e0b(0x186)](_0x33390e,_0x3639a3?.['uid']);});});}async[_0x387bcb(0x13a)](_0x2c17ab,_0x4a2bc7){const _0x58a043=_0x387bcb,_0x3a5781={'BEQnr':function(_0x341ef8,_0x43bb56,_0x24cdad){return _0x341ef8(_0x43bb56,_0x24cdad);},'zdGHr':_0x58a043(0x180),'eaFCP':_0x58a043(0x120)},_0x5c1002=await this[_0x58a043(0x113)](_0x2c17ab);if(!_0x5c1002){const _0x905c59=this['db'][_0x58a043(0x128)](_0x3a5781[_0x58a043(0x143)]);return new Promise((_0xbbb15d,_0x512cb2)=>{const _0x3fa4c8=_0x58a043;_0x905c59[_0x3fa4c8(0x12e)](_0x2c17ab,_0x4a2bc7,function(_0x2c4922){const _0x46f8c7=_0x3fa4c8;_0x2c4922&&(_0x3a5781[_0x46f8c7(0x19d)](logError,_0x3a5781[_0x46f8c7(0x183)],_0x2c4922),_0x512cb2(_0x2c4922)),_0xbbb15d(null);});});}}}function _0x1ec1(_0x258f3a,_0x31feb5){const _0x4d2819=_0x4d28();return _0x1ec1=function(_0x1ec1ed,_0x115cff){_0x1ec1ed=_0x1ec1ed-0x113;let _0x36b9eb=_0x4d2819[_0x1ec1ed];return _0x36b9eb;},_0x1ec1(_0x258f3a,_0x31feb5);}export const dbUtil=new DBUtil(); \ No newline at end of file diff --git a/src/core.lib/src/wrapper.d.ts b/src/core.lib/src/wrapper.d.ts index a2662bcf..1a838b61 100644 --- a/src/core.lib/src/wrapper.d.ts +++ b/src/core.lib/src/wrapper.d.ts @@ -7,50 +7,52 @@ import { NodeIKernelRobotService } from './services/NodeIKernelRobotService'; export interface NodeQQNTWrapperUtil { new (): NodeQQNTWrapperUtil; getNTUserDataInfoConfig(): string; - emptyWorkingSet(n: 38704): void; - getSsoCmdOfOidbReq(...args: unknown[]): unknown; + emptyWorkingSet(n: number): void; + getSsoCmdOfOidbReq(arg1: number, arg2: number): unknown; getSsoBufferOfOidbReq(...args: unknown[]): unknown; - getOidbRspInfo(...args: unknown[]): unknown; - getFileSize(...args: unknown[]): Promise; - genFileMd5Buf(...args: unknown[]): unknown; - genFileMd5Hex(...args: unknown[]): unknown; - genFileShaBuf(...args: unknown[]): unknown; - genFileCumulateSha1(...args: unknown[]): unknown; - genFileShaHex(...args: unknown[]): unknown; - fileIsExist(...args: unknown[]): unknown; - startTrace(...args: unknown[]): unknown; - copyFile(...args: unknown[]): unknown; - genFileShaAndMd5Hex(...args: unknown[]): unknown; - setTraceInfo(...args: unknown[]): unknown; - encodeOffLine(...args: unknown[]): unknown; - decodeOffLine(...args: unknown[]): unknown; - DecoderRecentInfo(...args: unknown[]): unknown; - getPinyin(...args: unknown[]): unknown; - matchInPinyin(...args: unknown[]): unknown; - makeDirByPath(...args: unknown[]): unknown; - emptyWorkingSet(...args: unknown[]): unknown; - runProcess(...args: unknown[]): unknown; - runProcessArgs(...args: unknown[]): unknown; - calcThumbSize(...args: unknown[]): unknown; - fullWordToHalfWord(...args: unknown[]): unknown; - getNTUserDataInfoConfig(...args: unknown[]): unknown; - pathIsReadableAndWriteable(...args: unknown[]): unknown; - resetUserDataSavePathToDocument(...args: unknown[]): unknown; - getSoBuildInfo(...args: unknown[]): unknown; - registerCountInstruments(...args: unknown[]): unknown; - registerValueInstruments(...args: unknown[]): unknown; - registerValueInstrumentsWithBoundary(...args: unknown[]): unknown; - reportCountIndicators(...args: unknown[]): unknown; - reportValueIndicators(...args: unknown[]): unknown; - checkNewUserDataSaveDirAvailable(...args: unknown[]): unknown; - copyUserData(...args: unknown[]): unknown; - setUserDataSaveDirectory(...args: unknown[]): unknown; - hasOtherRunningQQProcess(...args: unknown[]): unknown; - quitAllRunningQQProcess(...args: unknown[]): unknown; - checkNvidiaConfig(...args: unknown[]): unknown; - repairNvidiaConfig(...args: unknown[]): unknown; - getNvidiaDriverVersion(...args: unknown[]): unknown; - isNull(...args: unknown[]): unknown; + getOidbRspInfo(arg: string): unknown; + getFileSize(path: string): Promise; + genFileMd5Buf(arg: string): unknown; + genFileMd5Hex(path: string): unknown; + genFileShaBuf(path: string): unknown; + genFileCumulateSha1(path: string): unknown; + genFileShaHex(path: string): unknown; + fileIsExist(path: string): unknown; + startTrace(path: string): unknown; + copyFile(src: string, dst: string): unknown; + genFileShaAndMd5Hex(path: string, unknown: number): unknown; + setTraceInfo(unknown: Object): unknown; + encodeOffLine(unknown: Object): unknown; + decodeOffLine(arg: string): unknown; + DecoderRecentInfo(arg: string): unknown; + getPinyin(arg0: string, arg1: boolean): unknown; + matchInPinyin(arg0: any[], arg1: string): unknown; + makeDirByPath(arg0: string): unknown; + emptyWorkingSet(arg0: number): unknown; + runProcess(arg0: string, arg1: boolean): unknown; + runProcessArgs(arg0: string, arg1: { + [key: string]: string; + }, arg2: boolean): unknown; + calcThumbSize(arg0: number, arg1: number, arg2: Object): unknown; + fullWordToHalfWord(arg0: string): unknown; + getNTUserDataInfoConfig(): unknown; + pathIsReadableAndWriteable(path: string): unknown; + resetUserDataSavePathToDocument(): unknown; + getSoBuildInfo(): any; + registerCountInstruments(arg0: string, arg1: string[], arg2: number, arg3: number): unknown; + registerValueInstruments(arg0: string, arg1: string[], arg2: number, arg3: number): unknown; + registerValueInstrumentsWithBoundary(arg0: string, arg1: unknown, arg2: unknown, arg3: number, arg4: number): unknown; + reportCountIndicators(arg0: string, arg1: Map, arg2: string, arg3: number, arg4: boolean): unknown; + reportValueIndicators(arg0: string, arg1: Map, arg2: string, arg3: boolean, arg4: number): unknown; + checkNewUserDataSaveDirAvailable(arg0: string): unknown; + copyUserData(arg0: string, arg1: string): Promise; + setUserDataSaveDirectory(arg0: string): Promise; + hasOtherRunningQQProcess(): unknown; + quitAllRunningQQProcess(arg: boolean): unknown; + checkNvidiaConfig(): unknown; + repairNvidiaConfig(): unknown; + getNvidiaDriverVersion(): unknown; + isNull(): unknown; } export interface NodeIQQNTWrapperSession { new (): NodeIQQNTWrapperSession; diff --git a/src/core.lib/src/wrapper.js b/src/core.lib/src/wrapper.js index 181b9244..5fc7bb28 100644 --- a/src/core.lib/src/wrapper.js +++ b/src/core.lib/src/wrapper.js @@ -1 +1 @@ -const _0x1b27a5=_0x68dc;function _0x68dc(_0x153f90,_0x49c7ba){const _0x3079b7=_0x3079();return _0x68dc=function(_0x68dcf3,_0x87aafa){_0x68dcf3=_0x68dcf3-0x145;let _0x246622=_0x3079b7[_0x68dcf3];return _0x246622;},_0x68dc(_0x153f90,_0x49c7ba);}function _0x3079(){const _0x401d6b=['resources/app/versions/','existsSync','5787eVHLFk','execPath','join','1541379hHJKvY','381725vyAjOY','952654fpcKrG','5050002nIUhsT','/wrapper.node','4423468AylgxT','36AXxTmS','38660TqiPYH','5864776lJWGXI','resolve','2gfvwtj'];_0x3079=function(){return _0x401d6b;};return _0x3079();}(function(_0x470a8a,_0x310a8b){const _0x250d7a=_0x68dc,_0x5cfe55=_0x470a8a();while(!![]){try{const _0xbfa517=-parseInt(_0x250d7a(0x147))/0x1*(parseInt(_0x250d7a(0x14f))/0x2)+parseInt(_0x250d7a(0x145))/0x3+-parseInt(_0x250d7a(0x14b))/0x4*(-parseInt(_0x250d7a(0x146))/0x5)+-parseInt(_0x250d7a(0x148))/0x6+-parseInt(_0x250d7a(0x14a))/0x7+-parseInt(_0x250d7a(0x14d))/0x8+-parseInt(_0x250d7a(0x152))/0x9*(-parseInt(_0x250d7a(0x14c))/0xa);if(_0xbfa517===_0x310a8b)break;else _0x5cfe55['push'](_0x5cfe55['shift']());}catch(_0x33b6ce){_0x5cfe55['push'](_0x5cfe55['shift']());}}}(_0x3079,0x80c22));import _0x604654 from'node:path';import _0x15ca87 from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';let wrapperNodePath=_0x604654[_0x1b27a5(0x14e)](_0x604654['dirname'](process[_0x1b27a5(0x153)]),'./resources/app/wrapper.node');!_0x15ca87[_0x1b27a5(0x151)](wrapperNodePath)&&(wrapperNodePath=_0x604654[_0x1b27a5(0x154)](_0x604654['dirname'](process['execPath']),_0x1b27a5(0x150)+qqVersionConfigInfo['curVersion']+_0x1b27a5(0x149)));const QQWrapper=require(wrapperNodePath);export default QQWrapper; \ No newline at end of file +const _0xfb1867=_0x43ef;(function(_0x3e3a96,_0x5e35b6){const _0x503cc4=_0x43ef,_0x105d96=_0x3e3a96();while(!![]){try{const _0x39a30c=parseInt(_0x503cc4(0x182))/0x1+-parseInt(_0x503cc4(0x184))/0x2+-parseInt(_0x503cc4(0x17d))/0x3+-parseInt(_0x503cc4(0x181))/0x4*(-parseInt(_0x503cc4(0x174))/0x5)+parseInt(_0x503cc4(0x176))/0x6*(-parseInt(_0x503cc4(0x17e))/0x7)+parseInt(_0x503cc4(0x178))/0x8+parseInt(_0x503cc4(0x177))/0x9*(parseInt(_0x503cc4(0x17b))/0xa);if(_0x39a30c===_0x5e35b6)break;else _0x105d96['push'](_0x105d96['shift']());}catch(_0x33f159){_0x105d96['push'](_0x105d96['shift']());}}}(_0x3a67,0xd37bc));import _0x4fcd90 from'node:path';import _0x26c18b from'node:fs';function _0x43ef(_0x4ae2f5,_0x740c2c){const _0x3a671d=_0x3a67();return _0x43ef=function(_0x43ef25,_0xfb409f){_0x43ef25=_0x43ef25-0x174;let _0x48dfeb=_0x3a671d[_0x43ef25];return _0x48dfeb;},_0x43ef(_0x4ae2f5,_0x740c2c);}import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';let wrapperNodePath=_0x4fcd90[_0xfb1867(0x17f)](_0x4fcd90[_0xfb1867(0x183)](process[_0xfb1867(0x175)]),_0xfb1867(0x185));function _0x3a67(){const _0x350c44=['3174975NnsUQv','72583dlPbNp','resolve','resources/app/versions/','1304NirBRe','644921VDRdTl','dirname','766156IjhLNc','./resources/app/wrapper.node','2085vNWPYD','execPath','954jSHrbl','36NlyNlO','13499416aYCTEi','/wrapper.node','join','3720050SnSdir','curVersion'];_0x3a67=function(){return _0x350c44;};return _0x3a67();}!_0x26c18b['existsSync'](wrapperNodePath)&&(wrapperNodePath=_0x4fcd90[_0xfb1867(0x17a)](_0x4fcd90[_0xfb1867(0x183)](process[_0xfb1867(0x175)]),_0xfb1867(0x180)+qqVersionConfigInfo[_0xfb1867(0x17c)]+_0xfb1867(0x179)));const QQWrapper=require(wrapperNodePath);export default QQWrapper; \ No newline at end of file