diff --git a/src/core b/src/core index 1177d245..3e20f5bf 160000 --- a/src/core +++ b/src/core @@ -1 +1 @@ -Subproject commit 1177d2452bbc5e47263da69ab8d944d19e1318b8 +Subproject commit 3e20f5bf9756ed0cfbebbf80bb51c98db967b5cb diff --git a/src/core.lib/src/adapters/NodeIDependsAdapter.js b/src/core.lib/src/adapters/NodeIDependsAdapter.js index 1bc9404d..c520e6b9 100644 --- a/src/core.lib/src/adapters/NodeIDependsAdapter.js +++ b/src/core.lib/src/adapters/NodeIDependsAdapter.js @@ -1 +1 @@ -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 +function _0x4431(_0x5be8bd,_0x5aa1ed){var _0x5005c7=_0x5005();return _0x4431=function(_0x443164,_0x4be50e){_0x443164=_0x443164-0x15c;var _0xb65006=_0x5005c7[_0x443164];return _0xb65006;},_0x4431(_0x5be8bd,_0x5aa1ed);}var _0x152e25=_0x4431;function _0x5005(){var _0x3afa74=['5ZEtFEy','4306416KDeujN','806643IPTohf','1308526keXvZc','550ZxJxKC','29498062wVtncs','12RnfKAu','getGroupCode','3836ynYtYU','14864alejtF','24NbaCXA','onMSFSsoError','611253BjjKrt','183078pECJGD'];_0x5005=function(){return _0x3afa74;};return _0x5005();}(function(_0x1a4246,_0x476586){var _0x513a64=_0x4431,_0x5882c4=_0x1a4246();while(!![]){try{var _0x558f6b=parseInt(_0x513a64(0x163))/0x1+parseInt(_0x513a64(0x168))/0x2+parseInt(_0x513a64(0x167))/0x3*(parseInt(_0x513a64(0x161))/0x4)+-parseInt(_0x513a64(0x165))/0x5*(-parseInt(_0x513a64(0x166))/0x6)+-parseInt(_0x513a64(0x15f))/0x7*(-parseInt(_0x513a64(0x160))/0x8)+-parseInt(_0x513a64(0x164))/0x9*(parseInt(_0x513a64(0x169))/0xa)+parseInt(_0x513a64(0x15c))/0xb*(-parseInt(_0x513a64(0x15d))/0xc);if(_0x558f6b===_0x476586)break;else _0x5882c4['push'](_0x5882c4['shift']());}catch(_0x164170){_0x5882c4['push'](_0x5882c4['shift']());}}}(_0x5005,0xc6cbe));export class DependsAdapter{['onMSFStatusChange'](_0x588ba4,_0xaa2895){}[_0x152e25(0x162)](_0x120523){}[_0x152e25(0x15e)](_0x302bd4){}} \ 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 05f129e4..615530c1 100644 --- a/src/core.lib/src/adapters/NodeIDispatcherAdapter.js +++ b/src/core.lib/src/adapters/NodeIDispatcherAdapter.js @@ -1 +1 @@ -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 +var _0x2d9ad1=_0x20e7;function _0x20e7(_0x57f603,_0x46ea2b){var _0x553a75=_0x553a();return _0x20e7=function(_0x20e73e,_0x1a51ec){_0x20e73e=_0x20e73e-0x14a;var _0xc38d1e=_0x553a75[_0x20e73e];return _0xc38d1e;},_0x20e7(_0x57f603,_0x46ea2b);}(function(_0x2e7275,_0x2ea026){var _0x476874=_0x20e7,_0x4cf85f=_0x2e7275();while(!![]){try{var _0x986304=-parseInt(_0x476874(0x153))/0x1+parseInt(_0x476874(0x14b))/0x2*(parseInt(_0x476874(0x151))/0x3)+parseInt(_0x476874(0x156))/0x4+parseInt(_0x476874(0x152))/0x5+parseInt(_0x476874(0x14e))/0x6+-parseInt(_0x476874(0x14c))/0x7*(parseInt(_0x476874(0x14f))/0x8)+parseInt(_0x476874(0x14a))/0x9*(-parseInt(_0x476874(0x155))/0xa);if(_0x986304===_0x2ea026)break;else _0x4cf85f['push'](_0x4cf85f['shift']());}catch(_0x28f26b){_0x4cf85f['push'](_0x4cf85f['shift']());}}}(_0x553a,0xafde9));export class DispatcherAdapter{[_0x2d9ad1(0x14d)](_0x112f8f){}[_0x2d9ad1(0x154)](_0x5ba6f9){}[_0x2d9ad1(0x150)](_0x1786fb){}}function _0x553a(){var _0x5dc76e=['4762278fhtsbE','80RipebT','dispatchCallWithJson','3970158TQGOFm','3193315akTSkU','143727hnjzGb','dispatchCall','10jWZPTw','2672060ANtbNC','16537581VnlaoV','2VYJEoe','505526FnJzaP','dispatchRequest'];_0x553a=function(){return _0x5dc76e;};return _0x553a();} \ 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 6c30844b..37289caf 100644 --- a/src/core.lib/src/adapters/NodeIGlobalAdapter.js +++ b/src/core.lib/src/adapters/NodeIGlobalAdapter.js @@ -1 +1 @@ -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 +var _0x3e0300=_0x547d;(function(_0x4495b5,_0x50495e){var _0xcc45ab=_0x547d,_0xc286f2=_0x4495b5();while(!![]){try{var _0x4a576d=parseInt(_0xcc45ab(0x8e))/0x1*(parseInt(_0xcc45ab(0x97))/0x2)+-parseInt(_0xcc45ab(0x96))/0x3+-parseInt(_0xcc45ab(0x99))/0x4+-parseInt(_0xcc45ab(0x98))/0x5+parseInt(_0xcc45ab(0x8d))/0x6+parseInt(_0xcc45ab(0x9a))/0x7*(parseInt(_0xcc45ab(0x94))/0x8)+parseInt(_0xcc45ab(0x95))/0x9;if(_0x4a576d===_0x50495e)break;else _0xc286f2['push'](_0xc286f2['shift']());}catch(_0x3beac8){_0xc286f2['push'](_0xc286f2['shift']());}}}(_0x30e2,0xabbc0));function _0x547d(_0x31502f,_0x4bc979){var _0x30e28b=_0x30e2();return _0x547d=function(_0x547d76,_0xd56f5a){_0x547d76=_0x547d76-0x8c;var _0x7a76d0=_0x30e28b[_0x547d76];return _0x7a76d0;},_0x547d(_0x31502f,_0x4bc979);}export class GlobalAdapter{[_0x3e0300(0x93)](..._0x1d83f2){}[_0x3e0300(0x92)](..._0x42f4e8){}['onShowErrUITips'](..._0x54ada2){}[_0x3e0300(0x90)](..._0x512cef){}[_0x3e0300(0x91)](..._0xd1f511){}[_0x3e0300(0x8c)](..._0x910783){}['onUpdateGeneralFlag'](..._0x4ec9b1){}[_0x3e0300(0x8f)](..._0x2834e0){}}function _0x30e2(){var _0x5648da=['onGetSrvCalTime','onLog','3560432wQRoxO','8012709IlmsCe','1141632CEYsVH','842278TvgExZ','4523775orQNNg','5266676RHyRBG','14zNpgCi','onInstallFinished','6623064ovdplC','1UTiVDu','onGetOfflineMsg','fixPicImgType','getAppSetting'];_0x30e2=function(){return _0x5648da;};return _0x30e2();} \ 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 1526de11..21b5cade 100644 --- a/src/core.lib/src/adapters/index.js +++ b/src/core.lib/src/adapters/index.js @@ -1 +1 @@ -(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 +(function(_0x19e70e,_0x24501c){var _0x480024=_0x4741,_0x26e8d4=_0x19e70e();while(!![]){try{var _0x473242=-parseInt(_0x480024(0xf1))/0x1*(parseInt(_0x480024(0xee))/0x2)+-parseInt(_0x480024(0xf4))/0x3+-parseInt(_0x480024(0xf2))/0x4*(parseInt(_0x480024(0xef))/0x5)+-parseInt(_0x480024(0xf3))/0x6+-parseInt(_0x480024(0xed))/0x7*(-parseInt(_0x480024(0xf0))/0x8)+parseInt(_0x480024(0xf7))/0x9*(parseInt(_0x480024(0xf5))/0xa)+parseInt(_0x480024(0xf6))/0xb;if(_0x473242===_0x24501c)break;else _0x26e8d4['push'](_0x26e8d4['shift']());}catch(_0x2ca5bf){_0x26e8d4['push'](_0x26e8d4['shift']());}}}(_0x13ca,0x5387f));function _0x4741(_0x21dbf4,_0x301b10){var _0x13ca1a=_0x13ca();return _0x4741=function(_0x474144,_0x20349c){_0x474144=_0x474144-0xed;var _0x442440=_0x13ca1a[_0x474144];return _0x442440;},_0x4741(_0x21dbf4,_0x301b10);}function _0x13ca(){var _0x162218=['921483cLorra','119LtGyrZ','4dcyBgh','15ALQmgx','230648uhHoYX','284246RRkrwg','761632TIroMB','3419298OmOYTX','286104DnpGUH','30pPWkQr','14848042FzpjXq'];_0x13ca=function(){return _0x162218;};return _0x13ca();}export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter'; \ No newline at end of file diff --git a/src/core.lib/src/apis/file.d.ts b/src/core.lib/src/apis/file.d.ts index efc00897..4e41e45a 100644 --- a/src/core.lib/src/apis/file.d.ts +++ b/src/core.lib/src/apis/file.d.ts @@ -1,4 +1,4 @@ -import { CacheFileListItem, CacheFileType, ChatCacheListItemBasic, ChatType, ElementType, RawMessage } from '@/core/entities'; +import { CacheFileListItem, CacheFileType, ChatCacheListItemBasic, ChatType, ElementType } from '@/core/entities'; import { GeneralCallResult } from '@/core'; import * as fileType from 'file-type'; import { ISizeCalculationResult } from 'image-size/dist/types/interface'; @@ -15,7 +15,11 @@ export declare class NTQQFileApi { }>; static downloadMedia(msgId: string, chatType: ChatType, peerUid: string, elementId: string, thumbPath: string, sourcePath: string, timeout?: number, force?: boolean): Promise; static getImageSize(filePath: string): Promise; - static getImageUrl(msg: RawMessage): Promise; + static getImageUrl(element: { + originImageUrl: any; + md5HexStr?: any; + fileUuid: any; + }, isPrivateImage: boolean): Promise; } export declare class NTQQFileCacheApi { static setCacheSilentScan(isSilent?: boolean): Promise; diff --git a/src/core.lib/src/apis/file.js b/src/core.lib/src/apis/file.js index 8414a9ee..c89ec6ad 100644 --- a/src/core.lib/src/apis/file.js +++ b/src/core.lib/src/apis/file.js @@ -1 +1 @@ -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 +const _0x3f5952=_0x5814;(function(_0x22c87f,_0x3c33d8){const _0x5b6d7a=_0x5814,_0x1546c2=_0x22c87f();while(!![]){try{const _0xb8eed=-parseInt(_0x5b6d7a(0x1f9))/0x1+parseInt(_0x5b6d7a(0x21b))/0x2+parseInt(_0x5b6d7a(0x1ef))/0x3*(parseInt(_0x5b6d7a(0x220))/0x4)+-parseInt(_0x5b6d7a(0x1ea))/0x5*(-parseInt(_0x5b6d7a(0x228))/0x6)+-parseInt(_0x5b6d7a(0x21e))/0x7+parseInt(_0x5b6d7a(0x214))/0x8+-parseInt(_0x5b6d7a(0x213))/0x9;if(_0xb8eed===_0x3c33d8)break;else _0x1546c2['push'](_0x1546c2['shift']());}catch(_0x3a9f08){_0x1546c2['push'](_0x1546c2['shift']());}}}(_0x475f,0xca993));import{ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0x1af9d6 from'path';function _0x5814(_0x2bb013,_0x3d969a){const _0x475f07=_0x475f();return _0x5814=function(_0x5814cd,_0x3cf329){_0x5814cd=_0x5814cd-0x1e4;let _0x25e38a=_0x475f07[_0x5814cd];return _0x25e38a;},_0x5814(_0x2bb013,_0x3d969a);}import _0x4a550c from'fs';import _0x47b6cf from'fs/promises';import{logDebug}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x183728 from'file-type';import{MsgListener}from'@/core/listeners';import _0x38e043 from'image-size';import{sessionConfig}from'@/core/sessionConfig';function _0x475f(){const _0x1b0aa5=['util','getDesktopTmpPath','getFileCacheInfo','getHotUpdateCachePath','tmp','KynDU','gHDcg','getCacheSessionPathList','XZjat','/gchatpic_new/0/0-0-','md5HexStr','private_rkey','downloadMedia','set','hiQkt','existsSync','daiqZ','getStorageCleanService','getFileType','vWIXe','getFileSize','unlink','scanCache','algcT','26276589lttZnz','12622136lzEnGI','startsWith','getMsgService','bnWCV','zPhOO','ext','fileUuid','1489348WyIYxG','hotUpdate','getRkey','2367743kMKuDS','getImageSize','4gZXWmI','session','toUpperCase','clearCache','delete','includes','&rkey=','originImageUrl','7914zYaIJO','rVSyL','receive\x20downloadMedia\x20task','indexOf','uploadFile','getRichMediaFilePathForGuild','/download','fileTypeFromFile','clearChatCache','getImageUrl','copyFile','图片url获取失败','uaUqF','3350TYNjdu','downloadMedia\x20complete','addCacheScanedPaths','GXGPs','ZbSKI','4858089Ajmikf','clearCacheDataByKeys','下载超时','getChatCacheInfo','GFLJG','hZUgx','join','NCZjO','addCacheScannedPaths','group_rkey','737821BnIFXD','PIC'];_0x475f=function(){return _0x1b0aa5;};return _0x475f();}import{randomUUID}from'crypto';import{rkeyManager}from'../utils/rkey';import{AsyncQueue}from'@/common/utils/AsyncQueue';const getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener['onRichMediaDownloadComplete']=_0x25b5e7=>{const _0x14c329=_0x5814,_0x2285ee={'GFLJG':function(_0x384770,_0x453a0c){return _0x384770(_0x453a0c);}};for(const [_0x147407,_0x590e5b]of downloadMediaTasks){_0x2285ee[_0x14c329(0x1f3)](_0x590e5b,_0x25b5e7),downloadMediaTasks[_0x14c329(0x224)](_0x147407);}},setTimeout(()=>{napCatCore['onLoginSuccess'](()=>{napCatCore['addListener'](downloadMediaListener);});},0x64);export class NTQQFileApi{static async[_0x3f5952(0x20d)](_0x494f89){const _0x2c499f=_0x3f5952;return _0x183728[_0x2c499f(0x1e4)](_0x494f89);}static async['copyFile'](_0x4a89fe,_0x3a225a){const _0x3a4047=_0x3f5952;await napCatCore[_0x3a4047(0x1fb)][_0x3a4047(0x1e7)](_0x4a89fe,_0x3a225a);}static async['getFileSize'](_0x4cf55f){const _0x57f26f=_0x3f5952;return await napCatCore[_0x57f26f(0x1fb)][_0x57f26f(0x20f)](_0x4cf55f);}static async[_0x3f5952(0x22c)](_0x3e2ef6,_0x3e946f=ElementType[_0x3f5952(0x1fa)],_0x3ee525=0x0){const _0x106f0a=_0x3f5952,_0x59f772={'gHDcg':function(_0x1e36e1,_0x310f74){return _0x1e36e1+_0x310f74;},'vWIXe':function(_0x5a093c,_0x5d82f5){return _0x5a093c===_0x5d82f5;}},_0x10f4d7=await calculateFileMD5(_0x3e2ef6);let _0x54bfb1=(await NTQQFileApi[_0x106f0a(0x20d)](_0x3e2ef6))?.[_0x106f0a(0x219)]||'';_0x54bfb1&&(_0x54bfb1=_0x59f772[_0x106f0a(0x201)]('.',_0x54bfb1));let _0x2942b2=''+_0x1af9d6['basename'](_0x3e2ef6);_0x59f772[_0x106f0a(0x20e)](_0x2942b2[_0x106f0a(0x22b)]('.'),-0x1)&&(_0x2942b2+=_0x54bfb1);const _0x45a4d8=napCatCore[_0x106f0a(0x221)]['getMsgService']()[_0x106f0a(0x22d)]({'md5HexStr':_0x10f4d7,'fileName':_0x2942b2,'elementType':_0x3e946f,'elementSubType':_0x3ee525,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi[_0x106f0a(0x1e7)](_0x3e2ef6,_0x45a4d8);const _0x4ff0af=await NTQQFileApi['getFileSize'](_0x3e2ef6);return{'md5':_0x10f4d7,'fileName':_0x2942b2,'path':_0x45a4d8,'fileSize':_0x4ff0af,'ext':_0x54bfb1};}static async[_0x3f5952(0x207)](_0x47cd3c,_0x534e06,_0x31630a,_0x2fbc1c,_0x526dc9,_0x5a585d,_0x2faa91=0x3e8*0x3c*0x2,_0x4adf08=![]){const _0x4433e4=_0x3f5952,_0x2580fe={'hZUgx':function(_0x1238c6,_0x35c109){return _0x1238c6(_0x35c109);},'algcT':_0x4433e4(0x1f1),'zPhOO':function(_0x52aa67,_0x2d03d0,_0x53b517,_0xa8356){return _0x52aa67(_0x2d03d0,_0x53b517,_0xa8356);},'zMSXw':_0x4433e4(0x1eb),'eeKGo':function(_0x3ee121,_0x3adcaf){return _0x3ee121===_0x3adcaf;},'daiqZ':function(_0x58007e,_0x539c2f,_0x2eec94){return _0x58007e(_0x539c2f,_0x2eec94);},'bnWCV':'downloadPath','ISqsV':function(_0x47c44d,_0x4724d6,_0x2cba7f,_0x42b782,_0x58358d,_0x510496,_0x146f6e,_0x4550dc,_0x49d0b0,_0x5bd85a){return _0x47c44d(_0x4724d6,_0x2cba7f,_0x42b782,_0x58358d,_0x510496,_0x146f6e,_0x4550dc,_0x49d0b0,_0x5bd85a);},'HIJAa':_0x4433e4(0x22a),'hiQkt':'start\x20downloadMedia'};_0x2580fe['ISqsV'](logDebug,_0x2580fe['HIJAa'],_0x47cd3c,_0x534e06,_0x31630a,_0x2fbc1c,_0x526dc9,_0x5a585d,_0x2faa91,_0x4adf08);if(_0x5a585d&&_0x4a550c[_0x4433e4(0x20a)](_0x5a585d)){if(_0x4adf08)try{await _0x47b6cf[_0x4433e4(0x210)](_0x5a585d);}catch(_0x36db78){}else return _0x5a585d;}return logDebug(_0x2580fe[_0x4433e4(0x209)],_0x47cd3c,_0x534e06,_0x31630a,_0x2fbc1c,_0x526dc9,_0x5a585d,_0x2faa91,_0x4adf08),new Promise((_0x5a5061,_0x286544)=>{const _0x24450b=_0x4433e4,_0x22572c={'pvOye':function(_0x5d6a8a,_0x1a7e9f,_0x58420e,_0x422f01){const _0x37b1f7=_0x5814;return _0x2580fe[_0x37b1f7(0x218)](_0x5d6a8a,_0x1a7e9f,_0x58420e,_0x422f01);},'yGWdH':_0x2580fe['zMSXw'],'XZjat':function(_0x220e84,_0x3b3744){return _0x2580fe['eeKGo'](_0x220e84,_0x3b3744);},'hbzjr':function(_0x4d0a19,_0x56b023,_0x4bc961){const _0xbcbfb8=_0x5814;return _0x2580fe[_0xbcbfb8(0x20b)](_0x4d0a19,_0x56b023,_0x4bc961);},'ZbSKI':_0x2580fe[_0x24450b(0x217)],'NCZjO':function(_0x159a6e,_0x44a952){const _0x362061=_0x24450b;return _0x2580fe[_0x362061(0x1f4)](_0x159a6e,_0x44a952);}};let _0x160f86=![];const _0x364587=_0x48498d=>{const _0x1fbca1=_0x24450b;_0x22572c['pvOye'](logDebug,_0x22572c['yGWdH'],_0x48498d,_0x47cd3c);if(_0x22572c[_0x1fbca1(0x203)](_0x48498d['msgId'],_0x47cd3c)){_0x160f86=!![];let _0x54f162=_0x48498d['filePath'];if(_0x54f162['startsWith']('\x5c')){const _0x41ed33=sessionConfig['defaultFileDownloadPath'];_0x22572c['hbzjr'](logDebug,_0x22572c[_0x1fbca1(0x1ee)],_0x41ed33),_0x54f162=_0x1af9d6[_0x1fbca1(0x1f5)](_0x41ed33,_0x54f162);}_0x22572c[_0x1fbca1(0x1f6)](_0x5a5061,_0x54f162);}};downloadMediaTasks[_0x24450b(0x208)](randomUUID(),_0x364587),_0x2580fe['daiqZ'](setTimeout,()=>{const _0x391b8e=_0x24450b;!_0x160f86&&_0x2580fe[_0x391b8e(0x1f4)](_0x286544,_0x2580fe[_0x391b8e(0x212)]);},_0x2faa91),napCatCore[_0x24450b(0x221)][_0x24450b(0x216)]()['downloadRichMedia']({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0x47cd3c,'chatType':_0x534e06,'peerUid':_0x31630a,'elementId':_0x2fbc1c,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x526dc9});});}static async[_0x3f5952(0x21f)](_0x298fe5){return new Promise((_0x2e9415,_0x16978f)=>{_0x38e043(_0x298fe5,(_0x53b3e7,_0x3e1bed)=>{_0x53b3e7?_0x16978f(_0x53b3e7):_0x2e9415(_0x3e1bed);});});}static async[_0x3f5952(0x1e6)](_0x7d989d,_0x12a8e4){const _0x381e5d=_0x3f5952,_0x4a1975={'nAYQt':function(_0x87211d,_0x170461){return _0x87211d+_0x170461;},'GXGPs':function(_0x4a441e,_0x5a9851){return _0x4a441e+_0x5a9851;},'uaUqF':function(_0x203bfd,_0x5c0e0d){return _0x203bfd+_0x5c0e0d;},'KynDU':function(_0x78e645,_0x425d0d){return _0x78e645+_0x425d0d;},'rVSyL':function(_0x213252,_0x2b864b){return _0x213252||_0x2b864b;},'HRbZV':function(_0x5f0894,_0x54a4db,_0x57cd52){return _0x5f0894(_0x54a4db,_0x57cd52);}};if(!_0x7d989d)return'';const _0x33b122=_0x7d989d[_0x381e5d(0x227)],_0x29c23b=_0x7d989d[_0x381e5d(0x205)],_0x50271d=_0x7d989d[_0x381e5d(0x205)],_0x45003e=_0x7d989d[_0x381e5d(0x21a)];if(_0x33b122){if(_0x33b122[_0x381e5d(0x215)](_0x381e5d(0x22e))){if(_0x33b122[_0x381e5d(0x225)](_0x381e5d(0x226)))return _0x4a1975['nAYQt'](IMAGE_HTTP_HOST_NT,_0x33b122);const _0x2d24c5=await rkeyManager[_0x381e5d(0x21d)](),_0x1b6b24=_0x12a8e4?_0x2d24c5[_0x381e5d(0x206)]:_0x2d24c5[_0x381e5d(0x1f8)];return _0x4a1975[_0x381e5d(0x1ed)](_0x4a1975[_0x381e5d(0x1e9)](IMAGE_HTTP_HOST_NT,_0x33b122),''+_0x1b6b24);}else return _0x4a1975[_0x381e5d(0x200)](IMAGE_HTTP_HOST,_0x33b122);}else{if(_0x4a1975[_0x381e5d(0x229)](_0x50271d,_0x29c23b))return IMAGE_HTTP_HOST+_0x381e5d(0x204)+_0x4a1975[_0x381e5d(0x229)](_0x50271d,_0x29c23b)[_0x381e5d(0x222)]()+'/0';}return _0x4a1975['HRbZV'](logDebug,_0x381e5d(0x1e8),_0x7d989d),'';}}export class NTQQFileCacheApi{static async['setCacheSilentScan'](_0x3fad91=!![]){return'';}static[_0x3f5952(0x202)](){return'';}static[_0x3f5952(0x223)](_0x234ad5=[_0x3f5952(0x1ff),_0x3f5952(0x21c)]){const _0x18270b=_0x3f5952;return napCatCore[_0x18270b(0x221)][_0x18270b(0x20c)]()[_0x18270b(0x1f0)](_0x234ad5);}static[_0x3f5952(0x1f7)](_0x4af20f={}){const _0x4ae929=_0x3f5952;return napCatCore[_0x4ae929(0x221)][_0x4ae929(0x20c)]()[_0x4ae929(0x1ec)](_0x4af20f);}static[_0x3f5952(0x211)](){const _0x1c769c=_0x3f5952;return napCatCore[_0x1c769c(0x221)][_0x1c769c(0x20c)]()['scanCache']();}static[_0x3f5952(0x1fe)](){return'';}static[_0x3f5952(0x1fc)](){return'';}static['getChatCacheList'](_0x1ccd51,_0x2a7363=0x3e8,_0x38ea77=0x0){const _0x508ee6=_0x3f5952;return napCatCore[_0x508ee6(0x221)]['getStorageCleanService']()[_0x508ee6(0x1f2)](_0x1ccd51,_0x2a7363,0x1,_0x38ea77);}static[_0x3f5952(0x1fd)](_0x320445,_0x5946d2=0x3e8,_0x4c2523){const _0x2a8f06=_0x4c2523?_0x4c2523:{'fileType':_0x320445};}static async[_0x3f5952(0x1e5)](_0x242b0e=[],_0x5a30c5=[]){const _0x4e64d7=_0x3f5952;return napCatCore[_0x4e64d7(0x221)]['getStorageCleanService']()['clearChatCacheInfo'](_0x242b0e,_0x5a30c5);}} \ 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 dbdfeec8..5613066b 100644 --- a/src/core.lib/src/apis/friend.js +++ b/src/core.lib/src/apis/friend.js @@ -1 +1 @@ -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 +const _0x13555a=_0x18d0;(function(_0x5a7cec,_0x436e6a){const _0x4c4d2f=_0x18d0,_0x203d72=_0x5a7cec();while(!![]){try{const _0x53cf84=parseInt(_0x4c4d2f(0x16d))/0x1*(-parseInt(_0x4c4d2f(0x165))/0x2)+parseInt(_0x4c4d2f(0x16e))/0x3+parseInt(_0x4c4d2f(0x175))/0x4+parseInt(_0x4c4d2f(0x16c))/0x5+parseInt(_0x4c4d2f(0x169))/0x6*(parseInt(_0x4c4d2f(0x173))/0x7)+-parseInt(_0x4c4d2f(0x17b))/0x8*(parseInt(_0x4c4d2f(0x170))/0x9)+parseInt(_0x4c4d2f(0x166))/0xa*(parseInt(_0x4c4d2f(0x17c))/0xb);if(_0x53cf84===_0x436e6a)break;else _0x203d72['push'](_0x203d72['shift']());}catch(_0x23de83){_0x203d72['push'](_0x203d72['shift']());}}}(_0x5938,0x2ab50));import{BuddyListener,napCatCore}from'@/core';import{logDebug}from'@/common/utils/log';function _0x5938(){const _0x484bf8=['131600yhscRz','89KiIaqs','734910nSoapk','then','3034467zKNIXz','uid','addListener','259HPHVvl','getBuddyService','67232KavGAz','onBuddyListChange','onLoginSuccess','获取好友列表超时','friendUid','auWYy','8RfArkA','519431xJpjhB','delete','set','jhxGV','EImle','开始获取好友列表','获取好友列表完成','pZPLu','1874hBtrCn','30WvNjkl','reqTime','qLHdI','26874zswBni','push','approvalFriendRequest'];_0x5938=function(){return _0x484bf8;};return _0x5938();}function _0x18d0(_0x4e6731,_0x11d026){const _0x593846=_0x5938();return _0x18d0=function(_0x18d0cd,_0x418cc4){_0x18d0cd=_0x18d0cd-0x15e;let _0x53f0ee=_0x593846[_0x18d0cd];return _0x53f0ee;},_0x18d0(_0x4e6731,_0x11d026);}import{uid2UinMap}from'@/core/data';import{randomUUID}from'crypto';const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();buddyListener[_0x13555a(0x176)]=_0x5982db=>{const _0x37b045=_0x13555a;for(const [_0x59eea9,_0x10dd2a]of buddyChangeTasks){_0x10dd2a(_0x5982db),buddyChangeTasks[_0x37b045(0x15e)](_0x59eea9);}},setTimeout(()=>{const _0x57b373=_0x13555a;napCatCore[_0x57b373(0x177)](()=>{const _0x4f8c79=_0x57b373;napCatCore[_0x4f8c79(0x172)](buddyListener);});},0x64);export class NTQQFriendApi{static async['getFriends'](_0x2976ef=![]){const _0x329656=_0x13555a,_0x1a4267={'auWYy':_0x329656(0x178),'jhxGV':function(_0x3c2f97,_0x127773){return _0x3c2f97(_0x127773);},'pZPLu':function(_0x52940e,_0x4427df,_0x3d83ce){return _0x52940e(_0x4427df,_0x3d83ce);},'qLHdI':_0x329656(0x163),'EImle':function(_0x2181c8){return _0x2181c8();}};return new Promise((_0x256904,_0x21b8f3)=>{const _0x3b8b42=_0x329656;let _0x1b7d2e=![];_0x1a4267['pZPLu'](setTimeout,()=>{const _0x5d1bca=_0x18d0;!_0x1b7d2e&&(logDebug(_0x1a4267[_0x5d1bca(0x17a)]),_0x1a4267[_0x5d1bca(0x160)](_0x21b8f3,_0x1a4267[_0x5d1bca(0x17a)]));},0x1388);const _0x1c95b9=[],_0x54d742=_0x50643f=>{const _0x5ae92e=_0x18d0;for(const _0x27db37 of _0x50643f){for(const _0x84219e of _0x27db37['buddyList']){_0x1c95b9[_0x5ae92e(0x16a)](_0x84219e),uid2UinMap[_0x84219e[_0x5ae92e(0x171)]]=_0x84219e['uin'];}}_0x1b7d2e=!![],_0x1a4267[_0x5ae92e(0x164)](logDebug,_0x1a4267[_0x5ae92e(0x168)],_0x1c95b9),_0x256904(_0x1c95b9);};buddyChangeTasks[_0x3b8b42(0x15f)](_0x1a4267[_0x3b8b42(0x161)](randomUUID),_0x54d742),napCatCore['session'][_0x3b8b42(0x174)]()['getBuddyList'](_0x2976ef)[_0x3b8b42(0x16f)](_0x19e13e=>{const _0x31e881=_0x3b8b42;_0x1a4267[_0x31e881(0x164)](logDebug,_0x31e881(0x162),_0x19e13e);});});}static async['handleFriendRequest'](_0x5b9234,_0x35a9ae){const _0x363652=_0x13555a;napCatCore['session'][_0x363652(0x174)]()?.[_0x363652(0x16b)]({'friendUid':_0x5b9234[_0x363652(0x179)],'reqTime':_0x5b9234[_0x363652(0x167)],'accept':_0x35a9ae});}} \ No newline at end of file diff --git a/src/core.lib/src/apis/group.d.ts b/src/core.lib/src/apis/group.d.ts index dec2661b..2eefc94f 100644 --- a/src/core.lib/src/apis/group.d.ts +++ b/src/core.lib/src/apis/group.d.ts @@ -4,6 +4,14 @@ export declare class NTQQGroupApi { static getGroupMembers(groupQQ: string, num?: number): Promise>; static getGroupNotifies(): Promise; static getGroupIgnoreNotifies(): Promise; + static uploadGroupBulletinPic(GroupCode: string, imageurl: string): Promise; static handleGroupRequest(notify: GroupNotify, operateType: GroupRequestOperateTypes, reason?: string): Promise; static quitGroup(groupQQ: string): Promise; static kickMember(groupQQ: string, kickUids: string[], refuseForever?: boolean, kickReason?: string): Promise; @@ -16,5 +24,9 @@ export declare class NTQQGroupApi { static setMemberRole(groupQQ: string, memberUid: string, role: GroupMemberRole): Promise; static setGroupName(groupQQ: string, groupName: string): Promise; static setGroupTitle(groupQQ: string, uid: string, title: string): Promise; - static publishGroupBulletin(groupQQ: string, title: string, content: string): void; + static publishGroupBulletin(groupQQ: string, content: string, picInfo?: { + id: string; + width: number; + height: number; + } | undefined, pinned?: number, confirmRequired?: number): Promise; } diff --git a/src/core.lib/src/apis/group.js b/src/core.lib/src/apis/group.js index 1b01d5a8..14ba5345 100644 --- a/src/core.lib/src/apis/group.js +++ b/src/core.lib/src/apis/group.js @@ -1 +1 @@ -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 +const _0x4e0ba6=_0x3a89;function _0x5c39(){const _0x55aac1=['getNextMemberList','GzSEn','infos','获取群(','获取群列表完成','uin','setGroupName','zPxYn','qfXwt','publishGroupBulletin','kickMember','finish:\x20','finish','8264430eJhorO','getGroupIgnoreNotifies','setMemberRole','701022ybKZwf','getGroupList','XOLdf','YvFQF','groupCode','aCbMY','modifyGroupName','getGroupMembers','417459McZoep','LBXDW','bXAqn','799520JfnuaX','iuXWM','setMemberShutUp','uid','groupMemberList_MainWindow','setMemberCard','operateSysNotify','handleGroupRequest','quitGroup','modifyMemberCardName','setGroupShutUp','getPSkey','uploadGroupBulletinPic','YGLmP','sJvEu','4cZwWPJ','gvNVl','getGroups','onLoginSuccess','result','获取群列表超时','errCode','4426136GmtlQW','30RkMyLj','session',')成员列表结果:','onGroupListUpdate','qNYEr','getGroupService','set','banMember','283255nONdsF','forEach','modifyMemberRole','1672130nXEkGe'];_0x5c39=function(){return _0x55aac1;};return _0x5c39();}(function(_0x4a4dfd,_0x208f96){const _0x3c4584=_0x3a89,_0x4de8ba=_0x4a4dfd();while(!![]){try{const _0x5b77e0=parseInt(_0x3c4584(0x118))/0x1+-parseInt(_0x3c4584(0x11b))/0x2+-parseInt(_0x3c4584(0x110))/0x3*(parseInt(_0x3c4584(0x12a))/0x4)+parseInt(_0x3c4584(0x13d))/0x5+parseInt(_0x3c4584(0x132))/0x6*(-parseInt(_0x3c4584(0x13a))/0x7)+-parseInt(_0x3c4584(0x131))/0x8+parseInt(_0x3c4584(0x14b))/0x9;if(_0x5b77e0===_0x208f96)break;else _0x4de8ba['push'](_0x4de8ba['shift']());}catch(_0x30720f){_0x4de8ba['push'](_0x4de8ba['shift']());}}}(_0x5c39,0x44a29));import{NTQQUserApi,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();function _0x3a89(_0x141ef8,_0x39023d){const _0x5c39e5=_0x5c39();return _0x3a89=function(_0x3a893f,_0x31f084){_0x3a893f=_0x3a893f-0x10f;let _0x5c81bd=_0x5c39e5[_0x3a893f];return _0x5c81bd;},_0x3a89(_0x141ef8,_0x39023d);}groupListener[_0x4e0ba6(0x135)]=(_0x5d76f7,_0x48e8a6)=>{const _0x4adaa9=_0x4e0ba6,_0x56453f={'sJvEu':function(_0x47ae6f,_0x17d8c2,_0x45708c){return _0x47ae6f(_0x17d8c2,_0x45708c);}};for(const [_0x22bf8c,_0x497ff5]of groupMemberTasks){_0x56453f[_0x4adaa9(0x129)](_0x497ff5,_0x5d76f7,_0x48e8a6),groupMemberTasks['delete'](_0x22bf8c);}},setTimeout(()=>{const _0x480b41=_0x4e0ba6;napCatCore[_0x480b41(0x12d)](()=>{napCatCore['addListener'](groupListener);});},0x64);export class NTQQGroupApi{static async[_0x4e0ba6(0x12c)](_0x18ed49=![]){const _0x3308b5={'GzSEn':function(_0x336247,_0x16636f){return _0x336247(_0x16636f);},'qfXwt':function(_0x55f8b6){return _0x55f8b6();}};let _0x31170e=![];return new Promise((_0x226f4d,_0x228b91)=>{const _0x286a3c=_0x3a89,_0xcae84={'qNYEr':_0x286a3c(0x142),'LBXDW':function(_0x2b4cf2,_0x9b3f0e){const _0xa3f55f=_0x286a3c;return _0x3308b5[_0xa3f55f(0x13f)](_0x2b4cf2,_0x9b3f0e);}};setTimeout(()=>{const _0x59128a=_0x286a3c;!_0x31170e&&(logDebug(_0x59128a(0x12f)),_0x228b91(_0x59128a(0x12f)));},0x1388);const _0x494b00=(_0x4f6713,_0x2c5e56)=>{const _0x38a45c=_0x286a3c;_0x31170e=!![],logDebug(_0xcae84[_0x38a45c(0x136)],_0x2c5e56),_0xcae84[_0x38a45c(0x119)](_0x226f4d,_0x2c5e56);};groupMemberTasks[_0x286a3c(0x138)](_0x3308b5[_0x286a3c(0x146)](randomUUID),_0x494b00),napCatCore[_0x286a3c(0x133)][_0x286a3c(0x137)]()[_0x286a3c(0x111)](_0x18ed49)['then']();});}static async[_0x4e0ba6(0x117)](_0x43c8d1,_0x1891d6=0xbb8){const _0x40726e=_0x4e0ba6,_0xd00dbf={'YvFQF':_0x40726e(0x11f),'aCbMY':function(_0x559f05,_0x3411ec){return _0x559f05!==_0x3411ec;},'YGLmP':function(_0x5bdabd,_0x3b2314){return _0x5bdabd+_0x3b2314;},'gvNVl':function(_0x1e6ee0,_0x4325f8,_0x3f0ddc){return _0x1e6ee0(_0x4325f8,_0x3f0ddc);}},_0xd933cf=napCatCore[_0x40726e(0x133)]['getGroupService'](),_0x580cd0=_0xd933cf['createMemberListScene'](_0x43c8d1,_0xd00dbf[_0x40726e(0x113)]),_0x5de81e=await _0xd933cf[_0x40726e(0x13e)](_0x580cd0,undefined,_0x1891d6);if(_0xd00dbf[_0x40726e(0x115)](_0x5de81e[_0x40726e(0x130)],0x0))throw _0xd00dbf[_0x40726e(0x128)]('获取群成员列表出错,',_0x5de81e['errMsg']);return _0xd00dbf[_0x40726e(0x12b)](logDebug,_0x40726e(0x141)+_0x43c8d1+_0x40726e(0x134),_0x40726e(0x149)+_0x5de81e[_0x40726e(0x12e)][_0x40726e(0x14a)]),_0x5de81e[_0x40726e(0x12e)][_0x40726e(0x140)][_0x40726e(0x13b)](_0x324d95=>{const _0x315f36=_0x40726e;uid2UinMap[_0x324d95[_0x315f36(0x11e)]]=_0x324d95[_0x315f36(0x143)];}),_0x5de81e['result']['infos'];}static async['getGroupNotifies'](){}static async[_0x4e0ba6(0x14c)](){}static async[_0x4e0ba6(0x127)](_0x2c5974,_0x3fd9b7){const _0x2bfbed=_0x4e0ba6,_0x477a04={'XOLdf':'qun.qq.com'},_0x3521bc=(await NTQQUserApi[_0x2bfbed(0x126)]([_0x477a04['XOLdf']]))[_0x477a04[_0x2bfbed(0x112)]];return napCatCore['session']['getGroupService']()[_0x2bfbed(0x127)](_0x2c5974,_0x3521bc,_0x3fd9b7);}static async[_0x4e0ba6(0x122)](_0x2d3d22,_0x2c0d13,_0x181154){const _0x5f4b8e=_0x4e0ba6,_0x6c3d9a={'iuXWM':function(_0x537553,_0x13df30){return _0x537553||_0x13df30;}};return napCatCore['session'][_0x5f4b8e(0x137)]()[_0x5f4b8e(0x121)](![],{'operateType':_0x2c0d13,'targetMsg':{'seq':_0x2d3d22['seq'],'type':_0x2d3d22['type'],'groupCode':_0x2d3d22['group'][_0x5f4b8e(0x114)],'postscript':_0x6c3d9a[_0x5f4b8e(0x11c)](_0x181154,'')}});}static async['quitGroup'](_0x18bee4){const _0x182842=_0x4e0ba6;return napCatCore['session'][_0x182842(0x137)]()[_0x182842(0x123)](_0x18bee4);}static async[_0x4e0ba6(0x148)](_0x5dd506,_0x309d7e,_0x37f881=![],_0x16b56c=''){const _0x4188d9=_0x4e0ba6;return napCatCore[_0x4188d9(0x133)][_0x4188d9(0x137)]()[_0x4188d9(0x148)](_0x5dd506,_0x309d7e,_0x37f881,_0x16b56c);}static async[_0x4e0ba6(0x139)](_0x1e7bae,_0x3b53d9){const _0x33cb07=_0x4e0ba6;return napCatCore[_0x33cb07(0x133)][_0x33cb07(0x137)]()[_0x33cb07(0x11d)](_0x1e7bae,_0x3b53d9);}static async['banGroup'](_0x1626cf,_0x2b274b){const _0x5e38c8=_0x4e0ba6;return napCatCore[_0x5e38c8(0x133)][_0x5e38c8(0x137)]()[_0x5e38c8(0x125)](_0x1626cf,_0x2b274b);}static async[_0x4e0ba6(0x120)](_0x126f98,_0xd87fa6,_0x43e5c8){const _0x5f32f0=_0x4e0ba6;return napCatCore[_0x5f32f0(0x133)][_0x5f32f0(0x137)]()[_0x5f32f0(0x124)](_0x126f98,_0xd87fa6,_0x43e5c8);}static async[_0x4e0ba6(0x10f)](_0x178152,_0x5ce20c,_0x1fcc68){const _0x2ef938=_0x4e0ba6;return napCatCore[_0x2ef938(0x133)][_0x2ef938(0x137)]()[_0x2ef938(0x13c)](_0x178152,_0x5ce20c,_0x1fcc68);}static async[_0x4e0ba6(0x144)](_0x4d96c7,_0x1f1606){const _0x23553b=_0x4e0ba6;return napCatCore[_0x23553b(0x133)][_0x23553b(0x137)]()[_0x23553b(0x116)](_0x4d96c7,_0x1f1606,![]);}static async['setGroupTitle'](_0x472a6d,_0x401a14,_0x335fa7){}static async[_0x4e0ba6(0x147)](_0x118f5d,_0xb9f968,_0x373820=undefined,_0x629e33=0x0,_0xfba23=0x0){const _0x2aad93=_0x4e0ba6,_0x4fce5e={'zPxYn':'qun.qq.com','bXAqn':function(_0xa5bb09,_0x3f7a59){return _0xa5bb09(_0x3f7a59);}},_0x38e333=(await NTQQUserApi[_0x2aad93(0x126)]([_0x4fce5e[_0x2aad93(0x145)]]))[_0x4fce5e[_0x2aad93(0x145)]];let _0x573871={'text':_0x4fce5e[_0x2aad93(0x11a)](encodeURI,_0xb9f968),'picInfo':_0x373820,'oldFeedsId':'','pinned':_0x629e33,'confirmRequired':_0xfba23};return napCatCore['session']['getGroupService']()['publishGroupBulletin'](_0x118f5d,_0x38e333,_0x573871);}} \ 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 c5e179ce..d5d19b35 100644 --- a/src/core.lib/src/apis/index.js +++ b/src/core.lib/src/apis/index.js @@ -1 +1 @@ -(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 +(function(_0x223135,_0x5cadc3){var _0x51e283=_0x3f83,_0x1434ee=_0x223135();while(!![]){try{var _0x4fe77f=parseInt(_0x51e283(0xcc))/0x1+-parseInt(_0x51e283(0xca))/0x2+-parseInt(_0x51e283(0xcd))/0x3+-parseInt(_0x51e283(0xcb))/0x4*(parseInt(_0x51e283(0xce))/0x5)+-parseInt(_0x51e283(0xcf))/0x6+-parseInt(_0x51e283(0xd0))/0x7*(parseInt(_0x51e283(0xc9))/0x8)+parseInt(_0x51e283(0xd1))/0x9;if(_0x4fe77f===_0x5cadc3)break;else _0x1434ee['push'](_0x1434ee['shift']());}catch(_0x27ff7c){_0x1434ee['push'](_0x1434ee['shift']());}}}(_0x4cd9,0xb9cb5));export*from'./file';export*from'./friend';export*from'./group';function _0x3f83(_0x19de79,_0xd90394){var _0x4cd941=_0x4cd9();return _0x3f83=function(_0x3f830f,_0x4b011b){_0x3f830f=_0x3f830f-0xc9;var _0x2e671a=_0x4cd941[_0x3f830f];return _0x2e671a;},_0x3f83(_0x19de79,_0xd90394);}function _0x4cd9(){var _0x4a1fb9=['6723968Ybxbkr','2739534YlrVwz','1099556bFInVi','279057KjKrrz','1745502WthHah','20fVZhwy','447282EqvCuN','7lGOhxG','40033404MinrLp'];_0x4cd9=function(){return _0x4a1fb9;};return _0x4cd9();}export*from'./msg';export*from'./user';export*from'./webapi'; \ 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 1732a376..55105e4e 100644 --- a/src/core.lib/src/apis/msg.js +++ b/src/core.lib/src/apis/msg.js @@ -1 +1 @@ -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 +function _0x23df(){const _0x55a8dc=['ZljwJ','56NFnmSB','fppCq','2632959JDRBoV','2260448xrvday','UyPfI','setMsgEmojiLikes','com.tencent.multimsg','recallMsg','arkElement','iZAkj','setEmojiLike','senderUid','onLoginSuccess','then','length','session','multiForwardMsg','JppJy','2250204NJABeo','1344978hkAzwl','iUPeU','nZAnO','mMlkj','184079xWBgDT','8117658bmNyGt','set','setMsgRead','xGPrG','RdmIi','getMsgsBySeqAndCount','hNHSl','QkSve','xNNtC','onAddSendMsg','发送超时','nick','toString','delete','peerUid','activateChat','EuUdT','parse','getMultiMsg','tSaRL','chatType','app','dOZtZ','3gixCZX','sendMsg','getMsgHistory','getMsgService','xIRVJ','msgId','AOTxa','3621250ZLIfog','forEach','fetchRecentContact','multiForwardMsgWithComment','elements','doUYL','forwardMsg','onMsgInfoListUpdate'];_0x23df=function(){return _0x55a8dc;};return _0x23df();}const _0x18f5fe=_0x1ff0;(function(_0x459e67,_0x3b7e35){const _0x5b3d00=_0x1ff0,_0xc321ca=_0x459e67();while(!![]){try{const _0xaa4b02=-parseInt(_0x5b3d00(0x178))/0x1+-parseInt(_0x5b3d00(0x164))/0x2*(parseInt(_0x5b3d00(0x151))/0x3)+-parseInt(_0x5b3d00(0x173))/0x4+parseInt(_0x5b3d00(0x158))/0x5+parseInt(_0x5b3d00(0x179))/0x6+-parseInt(_0x5b3d00(0x163))/0x7+parseInt(_0x5b3d00(0x161))/0x8*(parseInt(_0x5b3d00(0x174))/0x9);if(_0xaa4b02===_0x3b7e35)break;else _0xc321ca['push'](_0xc321ca['shift']());}catch(_0x41bc9b){_0xc321ca['push'](_0xc321ca['shift']());}}}(_0x23df,0xd4798));import{selfInfo}from'@/core/data';function _0x1ff0(_0x2efc38,_0x592794){const _0x23dfb0=_0x23df();return _0x1ff0=function(_0x1ff0af,_0x44f991){_0x1ff0af=_0x1ff0af-0x148;let _0x285db6=_0x23dfb0[_0x1ff0af];return _0x285db6;},_0x1ff0(_0x2efc38,_0x592794);}import{log,logError}from'@/common/utils/log';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[_0x18f5fe(0x182)]=_0x497b42=>{const _0x4ea0c9=_0x18f5fe;for(const [_0x5dfbf3,_0x33f15b]of sentMsgTasks){_0x33f15b(_0x497b42),sentMsgTasks[_0x4ea0c9(0x186)](_0x5dfbf3);}if(sendMessagePool[_0x497b42['peerUid']]){const _0x1b6ceb=sendMessagePool[_0x497b42[_0x4ea0c9(0x148)]]?.(_0x497b42);_0x1b6ceb instanceof Promise&&_0x1b6ceb['then']()['catch'](logError);}},msgListener[_0x18f5fe(0x15f)]=_0x1ba30f=>{const _0x4f6c6a=_0x18f5fe,_0x4316e1={'xNNtC':function(_0x59c1b2,_0x5c340c){return _0x59c1b2(_0x5c340c);},'AOTxa':function(_0x240879,_0x316154){return _0x240879 instanceof _0x316154;},'nZAnO':function(_0x3ceb4c,_0x647c2){return _0x3ceb4c(_0x647c2);}};_0x1ba30f[_0x4f6c6a(0x159)](_0x53fef0=>{const _0x304489=_0x4f6c6a;new Promise((_0x49e4c0,_0x34fbc6)=>{const _0x3e055c=_0x1ff0;for(const _0xba202b in sendSuccessCBMap){const _0x2ded30=sendSuccessCBMap[_0xba202b],_0x2c1fce=_0x4316e1[_0x3e055c(0x181)](_0x2ded30,_0x53fef0),_0x1bd495=_0x3cfbef=>{_0x3cfbef&&delete sendSuccessCBMap[_0xba202b];};_0x4316e1[_0x3e055c(0x157)](_0x2c1fce,Promise)?_0x2c1fce[_0x3e055c(0x16e)](_0x1bd495):_0x4316e1[_0x3e055c(0x176)](_0x1bd495,_0x2c1fce);}})[_0x304489(0x16e)]()['catch'](log);});},setTimeout(()=>{const _0x446f62=_0x18f5fe;napCatCore[_0x446f62(0x16d)](()=>{napCatCore['addListener'](msgListener);});},0x64);export class NTQQMsgApi{static async[_0x18f5fe(0x16b)](_0x4a6ee1,_0x58cded,_0x37c876,_0x55e7a2=!![]){const _0x38fd0c=_0x18f5fe,_0x24695e={'CAwRX':function(_0x5ac04f,_0x3d4985){return _0x5ac04f>_0x3d4985;}};return _0x37c876=_0x37c876[_0x38fd0c(0x185)](),napCatCore[_0x38fd0c(0x170)]['getMsgService']()[_0x38fd0c(0x166)](_0x4a6ee1,_0x58cded,_0x37c876,_0x24695e['CAwRX'](_0x37c876[_0x38fd0c(0x16f)],0x3)?'2':'1',_0x55e7a2);}static async[_0x18f5fe(0x14c)](_0x4f3cef,_0x43a8b0,_0x29a9cf){const _0x9d56bc=_0x18f5fe;return napCatCore[_0x9d56bc(0x170)][_0x9d56bc(0x154)]()['getMultiMsg'](_0x4f3cef,_0x43a8b0,_0x29a9cf);}static async['getMsgsByMsgId'](_0x2433b3,_0x25a087){const _0xa236cb=_0x18f5fe;return await napCatCore[_0xa236cb(0x170)][_0xa236cb(0x154)]()['getMsgsByMsgId'](_0x2433b3,_0x25a087);}static async[_0x18f5fe(0x17e)](_0x1bef48,_0x4d93e8,_0x53c08b,_0x11d499,_0x6590f5){const _0x199e1e=_0x18f5fe;return await napCatCore[_0x199e1e(0x170)]['getMsgService']()['getMsgsBySeqAndCount'](_0x1bef48,_0x4d93e8,_0x53c08b,_0x11d499,_0x6590f5);}static async[_0x18f5fe(0x149)](_0x2dcb53){}static async['activateChatAndGetHistory'](_0x1343f8){}static async[_0x18f5fe(0x17b)](_0x13e9e2){const _0xd6af63=_0x18f5fe;return napCatCore[_0xd6af63(0x170)]['getMsgService']()[_0xd6af63(0x17b)](_0x13e9e2);}static async[_0x18f5fe(0x153)](_0x29e934,_0x13b6b2,_0x1b412e){const _0x342601=_0x18f5fe;return napCatCore[_0x342601(0x170)]['getMsgService']()['getMsgsIncludeSelf'](_0x29e934,_0x13b6b2,_0x1b412e,!![]);}static async[_0x18f5fe(0x15a)](){}static async[_0x18f5fe(0x168)](_0x32723a,_0x2c2f0f){const _0x5f16ed=_0x18f5fe;await napCatCore[_0x5f16ed(0x170)][_0x5f16ed(0x154)]()[_0x5f16ed(0x168)]({'chatType':_0x32723a[_0x5f16ed(0x14e)],'peerUid':_0x32723a[_0x5f16ed(0x148)]},_0x2c2f0f);}static async[_0x18f5fe(0x152)](_0x22a05a,_0x183682,_0x202a19=!![],_0x3c2785=0x2710){const _0x1d9468=_0x18f5fe,_0x4b4f08={'tSaRL':function(_0x1d1ffc,_0x15ae02){return _0x1d1ffc>_0x15ae02;},'HkFMq':_0x1d9468(0x183),'EuUdT':function(_0x5d8678,_0x5e0483){return _0x5d8678(_0x5e0483);},'dOZtZ':function(_0x4d98ba){return _0x4d98ba();},'JppJy':function(_0x38ef30,_0x238d28){return _0x38ef30===_0x238d28;},'ydNFm':function(_0x6c9b90,_0x32358d){return _0x6c9b90(_0x32358d);},'QkSve':function(_0x36534b,_0x1a294f,_0x4639a4){return _0x36534b(_0x1a294f,_0x4639a4);}},_0x235878=_0x22a05a['peerUid'];let _0x4139ab=0x0;const _0xfe52ee=async()=>{const _0x285a7d=_0x1d9468;if(_0x4b4f08[_0x285a7d(0x14d)](_0x4139ab,_0x3c2785))throw _0x4b4f08['HkFMq'];const _0x32ba89=sendMessagePool[_0x22a05a[_0x285a7d(0x148)]];if(_0x32ba89)return await _0x4b4f08[_0x285a7d(0x14a)](sleep,0x1f4),_0x4139ab+=0x1f4,await _0x4b4f08[_0x285a7d(0x150)](_0xfe52ee);else return;};return await _0x4b4f08[_0x1d9468(0x150)](_0xfe52ee),new Promise((_0x1c2be7,_0x15ecab)=>{const _0x38426f=_0x1d9468,_0x54bc56={'fppCq':function(_0x5835d6,_0x1d27ea){return _0x4b4f08['ydNFm'](_0x5835d6,_0x1d27ea);},'xIRVJ':_0x4b4f08['HkFMq']};let _0x27298e=![],_0x50a587=null;const _0x145352=_0x4b4f08[_0x38426f(0x150)](randomUUID);sendSuccessCBMap[_0x145352]=_0x4bc61b=>{const _0x549b25=_0x38426f;if(_0x4b4f08[_0x549b25(0x172)](_0x4bc61b[_0x549b25(0x156)],_0x50a587?.[_0x549b25(0x156)])){if(_0x4bc61b['sendStatus']===0x2)return delete sendSuccessCBMap[_0x145352],_0x27298e=!![],_0x4b4f08[_0x549b25(0x14a)](_0x1c2be7,_0x4bc61b),!![];return![];}return![];},sendMessagePool[_0x235878]=async _0x2261ec=>{delete sendMessagePool[_0x235878],_0x50a587=_0x2261ec;},_0x4b4f08[_0x38426f(0x180)](setTimeout,()=>{const _0x34cd23=_0x38426f;if(_0x27298e)return;delete sendMessagePool[_0x235878],delete sendSuccessCBMap[_0x145352],_0x54bc56[_0x34cd23(0x162)](_0x15ecab,_0x54bc56[_0x34cd23(0x155)]);},_0x3c2785);const _0x4c9662=napCatCore[_0x38426f(0x170)][_0x38426f(0x154)]()[_0x38426f(0x152)]('0',_0x22a05a,_0x183682,new Map());});}static async[_0x18f5fe(0x15e)](_0x10ac79,_0x175654,_0x5dde80){const _0x38ec96=_0x18f5fe;return napCatCore[_0x38ec96(0x170)][_0x38ec96(0x154)]()[_0x38ec96(0x15e)](_0x5dde80,_0x10ac79,[_0x175654],new Map());}static async[_0x18f5fe(0x171)](_0x23e7fe,_0x5cb215,_0x5acfc3){const _0x23e442=_0x18f5fe,_0x8333a5={'RdmIi':_0x23e442(0x167),'mMlkj':function(_0x28e127,_0x27f4ed){return _0x28e127==_0x27f4ed;},'UyPfI':function(_0x8a8d4d,_0x387646){return _0x8a8d4d==_0x387646;},'doUYL':function(_0x4ea75e,_0x2fd6a6){return _0x4ea75e(_0x2fd6a6);},'xGPrG':function(_0x146d69){return _0x146d69();},'yKkFc':function(_0x56f383,_0xf1f9ce,_0x32a493){return _0x56f383(_0xf1f9ce,_0x32a493);}},_0x10b95f=_0x5acfc3['map'](_0xec5b6c=>{const _0x273ec6=_0x23e442;return{'msgId':_0xec5b6c,'senderShowName':selfInfo[_0x273ec6(0x184)]};});return new Promise((_0x5d5943,_0xaf8057)=>{const _0x284010=_0x23e442,_0x20741e={'iUPeU':_0x8333a5[_0x284010(0x17d)],'oflTV':function(_0x58e433,_0x4d5159){const _0x2a5063=_0x284010;return _0x8333a5[_0x2a5063(0x177)](_0x58e433,_0x4d5159);},'ZljwJ':function(_0x5baf0f,_0x59cfeb){const _0x7acace=_0x284010;return _0x8333a5[_0x7acace(0x165)](_0x5baf0f,_0x59cfeb);},'iZAkj':function(_0x1d64fe,_0x3f5afa){const _0x2a6edc=_0x284010;return _0x8333a5[_0x2a6edc(0x15d)](_0x1d64fe,_0x3f5afa);},'hNHSl':'转发消息超时'};let _0x4afaba=![];const _0x4682da=_0x55f6ac=>{const _0x2e6d9a=_0x284010,_0x43f6f5=_0x55f6ac[_0x2e6d9a(0x15c)]['find'](_0x511553=>_0x511553[_0x2e6d9a(0x169)]);if(!_0x43f6f5)return;const _0x2a2444=JSON[_0x2e6d9a(0x14b)](_0x43f6f5[_0x2e6d9a(0x169)]['bytesData']);if(_0x2a2444[_0x2e6d9a(0x14f)]!=_0x20741e[_0x2e6d9a(0x175)])return;_0x20741e['oflTV'](_0x55f6ac['peerUid'],_0x5cb215[_0x2e6d9a(0x148)])&&_0x20741e[_0x2e6d9a(0x160)](_0x55f6ac[_0x2e6d9a(0x16c)],selfInfo['uid'])&&(_0x4afaba=!![],_0x20741e[_0x2e6d9a(0x16a)](_0x5d5943,_0x55f6ac));};sentMsgTasks[_0x284010(0x17a)](_0x8333a5[_0x284010(0x17c)](randomUUID),_0x4682da),_0x8333a5['yKkFc'](setTimeout,()=>{const _0xae182f=_0x284010;!_0x4afaba&&_0x20741e[_0xae182f(0x16a)](_0xaf8057,_0x20741e[_0xae182f(0x17f)]);},0x1388),napCatCore[_0x284010(0x170)][_0x284010(0x154)]()[_0x284010(0x15b)](_0x10b95f,_0x23e7fe,_0x5cb215,[],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 16e578d0..2e813198 100644 --- a/src/core.lib/src/apis/sign.js +++ b/src/core.lib/src/apis/sign.js @@ -1 +1 @@ -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 +function _0x4bf0(){var _0xc8bdf0=['url','DHeek','application/json','json','714112SKymlk','vAJKS','3553860Kairpq','kuBkT','3498eOBDHt','statusText','14245IOvpjN','stringify','1125386GUVpoP','catch','6992MLNckJ','then','41819670btLKPX','eIVoQ','音乐消息生成成功','10jXFPSU','kRlIA','951644lGwJaS','POST','sign','6021JpZfri','NtMGh'];_0x4bf0=function(){return _0xc8bdf0;};return _0x4bf0();}function _0x2326(_0x5d399a,_0x1332eb){var _0x4bf00a=_0x4bf0();return _0x2326=function(_0x23262b,_0x55b729){_0x23262b=_0x23262b-0xc4;var _0x10e2c4=_0x4bf00a[_0x23262b];return _0x10e2c4;},_0x2326(_0x5d399a,_0x1332eb);}var _0x14a1a5=_0x2326;(function(_0x3393f9,_0x574ec2){var _0x1ccd80=_0x2326,_0x56d772=_0x3393f9();while(!![]){try{var _0x4974f8=-parseInt(_0x1ccd80(0xce))/0x1+-parseInt(_0x1ccd80(0xd6))/0x2+-parseInt(_0x1ccd80(0xd0))/0x3+-parseInt(_0x1ccd80(0xc5))/0x4*(parseInt(_0x1ccd80(0xdd))/0x5)+parseInt(_0x1ccd80(0xd2))/0x6*(-parseInt(_0x1ccd80(0xd4))/0x7)+parseInt(_0x1ccd80(0xd8))/0x8*(parseInt(_0x1ccd80(0xc8))/0x9)+parseInt(_0x1ccd80(0xda))/0xa;if(_0x4974f8===_0x574ec2)break;else _0x56d772['push'](_0x56d772['shift']());}catch(_0x9be71d){_0x56d772['push'](_0x56d772['shift']());}}}(_0x4bf0,0x9cfcd));import{logDebug}from'@/common/utils/log';export class MusicSign{['url'];constructor(_0x6f8962){var _0x5f4664=_0x2326;this[_0x5f4664(0xca)]=_0x6f8962;}[_0x14a1a5(0xc7)](_0x3c8f72){var _0x3df22c=_0x14a1a5,_0x48d366={'eIVoQ':function(_0x103137,_0x24ab37){return _0x103137(_0x24ab37);},'kuBkT':function(_0x2abb62,_0x4221a0,_0x1a364f){return _0x2abb62(_0x4221a0,_0x1a364f);},'vAJKS':_0x3df22c(0xc6),'kRlIA':_0x3df22c(0xcc)};return new Promise((_0x7337e4,_0x113457)=>{var _0x424afa=_0x3df22c,_0x98306c={'NtMGh':function(_0x159002,_0x368441){var _0x51687c=_0x2326;return _0x48d366[_0x51687c(0xdb)](_0x159002,_0x368441);},'DHeek':function(_0x7b8901,_0xd8aa82,_0x4fbe1c){return _0x7b8901(_0xd8aa82,_0x4fbe1c);},'JzUsN':_0x424afa(0xdc),'jZBqp':function(_0x5cf70b,_0x257669){return _0x5cf70b(_0x257669);}};_0x48d366[_0x424afa(0xd1)](fetch,this[_0x424afa(0xca)],{'method':_0x48d366[_0x424afa(0xcf)],'headers':{'Content-Type':_0x48d366[_0x424afa(0xc4)]},'body':JSON[_0x424afa(0xd5)](_0x3c8f72)})['then'](_0x3cc84f=>{var _0x36b624=_0x424afa;return!_0x3cc84f['ok']&&_0x98306c[_0x36b624(0xc9)](_0x113457,_0x3cc84f[_0x36b624(0xd3)]),_0x3cc84f[_0x36b624(0xcd)]();})[_0x424afa(0xd9)](_0x5a2324=>{var _0x44c544=_0x424afa;_0x98306c[_0x44c544(0xcb)](logDebug,_0x98306c['JzUsN'],_0x5a2324),_0x98306c['jZBqp'](_0x7337e4,_0x5a2324);})[_0x424afa(0xd7)](_0x2c7721=>{_0x113457(_0x2c7721);});});}} \ 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 e0f04cdd..230e8b5e 100644 --- a/src/core.lib/src/apis/user.js +++ b/src/core.lib/src/apis/user.js @@ -1 +1 @@ -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 +function _0x53de(){const _0x3b1f87=['https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','robotUinRanges','9860942XCYCHQ','errMsg','result','fmsxg','onLoginSuccess','getPSkey','khmTG','6igKXrz','getRobotService','assign','now','tUiZn','5712800nmjJQb','setHeader','ggyPH','entries','length','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','CreatTime','addListener','28071TmcSPJ','Skey','getRobotUinRange','KpNAi','getProfileLikeService','getUserDetailInfo\x20timeout','16kCgBHS','iPZaw','getPskey','get','push','2586681gIgITj','set','getUserInfo','&clientkey=','like','QgvRQ','getUserDetailInfoWithBizInfo','forEach','setBuddyProfileLike','session','delete','domainPskeyMap','rbLHL','getProfileService','setStatus','getSelfInfo','PskeyTime','eveQP','nJWMQ','PskeyData','VkcJE','kpiKR','uDjvL','866945VCICzS','forceFetchClientKey','1364419diAKma','setSelfOnlineStatus','50xRxWqv','getMsgService','getTicketService','fDgwS','mWRoT','rzsON','32332850sYYBbK','response','fromEntries','FyUIt'];_0x53de=function(){return _0x3b1f87;};return _0x53de();}const _0x4e1d2a=_0x16f7;(function(_0x4e8ed4,_0x540b5f){const _0xfb6322=_0x16f7,_0x417612=_0x4e8ed4();while(!![]){try{const _0x16bbb4=parseInt(_0xfb6322(0x1a5))/0x1+parseInt(_0xfb6322(0x1a7))/0x2*(parseInt(_0xfb6322(0x1c7))/0x3)+parseInt(_0xfb6322(0x1bf))/0x4+-parseInt(_0xfb6322(0x1a3))/0x5*(-parseInt(_0xfb6322(0x1ba))/0x6)+parseInt(_0xfb6322(0x1b3))/0x7+-parseInt(_0xfb6322(0x1cd))/0x8*(parseInt(_0xfb6322(0x1d2))/0x9)+-parseInt(_0xfb6322(0x1ad))/0xa;if(_0x16bbb4===_0x540b5f)break;else _0x417612['push'](_0x417612['shift']());}catch(_0x20b8d0){_0x417612['push'](_0x417612['shift']());}}}(_0x53de,0xc3718));import{Credentials,selfInfo}from'@/core/data';import{napCatCore}from'@/core';import{ProfileListener}from'@/core/listeners';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']=_0x15cf5c=>{const _0x40ea3f=_0x16f7;userInfoCache[_0x15cf5c['uid']]=_0x15cf5c,userDetailHandlers[_0x40ea3f(0x1d9)](_0x4b656b=>_0x4b656b(_0x15cf5c));},setTimeout(()=>{const _0x1982d7=_0x16f7;napCatCore[_0x1982d7(0x1b7)](()=>{const _0x40f3d1=_0x1982d7;napCatCore[_0x40f3d1(0x1c6)](profileListener);});},0x64);function _0x16f7(_0x39e026,_0x4af8e8){const _0x53de9b=_0x53de();return _0x16f7=function(_0x16f723,_0x1d5e4b){_0x16f723=_0x16f723-0x1a2;let _0x526311=_0x53de9b[_0x16f723];return _0x526311;},_0x16f7(_0x39e026,_0x4af8e8);}export class NTQQUserApi{static async[_0x4e1d2a(0x1a6)](_0x23a1d5,_0x3a7242,_0x1efd43){const _0x3206e4=_0x4e1d2a;return napCatCore[_0x3206e4(0x1db)][_0x3206e4(0x1a8)]()[_0x3206e4(0x1e0)]({'status':_0x23a1d5,'extStatus':_0x3a7242,'batteryStatus':_0x1efd43});}static async[_0x4e1d2a(0x1d6)](_0x1ad548,_0x5da610=0x1){const _0x1d7466=_0x4e1d2a;return napCatCore[_0x1d7466(0x1db)][_0x1d7466(0x1cb)]()[_0x1d7466(0x1da)]({'friendUid':_0x1ad548,'sourceId':0x47,'doLikeCount':_0x5da610,'doLikeTollCount':0x0});}static async['setQQAvatar'](_0x33080b){const _0x5abc75=_0x4e1d2a,_0x2efb5b=napCatCore[_0x5abc75(0x1db)][_0x5abc75(0x1df)]()[_0x5abc75(0x1c0)](_0x33080b);return{'result':_0x2efb5b?.[_0x5abc75(0x1b5)],'errMsg':_0x2efb5b?.[_0x5abc75(0x1b4)]};}static async[_0x4e1d2a(0x1e1)](){}static async[_0x4e1d2a(0x1d4)](_0x1c9ee3){}static async['getUserDetailInfo'](_0x1ae77a){const _0x3a81d8=_0x4e1d2a,_0x1da7ee={'VkcJE':function(_0x4ee7e5,_0x251f02){return _0x4ee7e5(_0x251f02);},'MsxmI':_0x3a81d8(0x1cc),'iPZaw':function(_0x23dfdb){return _0x23dfdb();},'tUiZn':function(_0x1a6b52,_0xe57bb7,_0x10a62c){return _0x1a6b52(_0xe57bb7,_0x10a62c);}},_0x575fcf=napCatCore['session'][_0x3a81d8(0x1df)]();return new Promise((_0x3612c1,_0x51e835)=>{const _0x492cdc=_0x3a81d8,_0x318b0a=_0x1da7ee[_0x492cdc(0x1ce)](randomUUID);let _0x15d607=![];_0x1da7ee[_0x492cdc(0x1be)](setTimeout,()=>{const _0x162fe2=_0x492cdc;!_0x15d607&&_0x1da7ee[_0x162fe2(0x1e6)](_0x51e835,_0x1da7ee['MsxmI']);},0x1388),userDetailHandlers[_0x492cdc(0x1d3)](_0x318b0a,_0x46bafa=>{const _0x38312d=_0x492cdc;_0x46bafa['uid']===_0x1ae77a&&(_0x15d607=!![],userDetailHandlers[_0x38312d(0x1dc)](_0x318b0a),_0x1da7ee[_0x38312d(0x1e6)](_0x3612c1,_0x46bafa));}),_0x575fcf[_0x492cdc(0x1d8)](_0x1ae77a,[0x0])['then'](_0x5803fd=>{});});}static async[_0x4e1d2a(0x1b8)](_0x44da40,_0x32a146=!![]){const _0x3284a0=_0x4e1d2a,_0x2e9889={'ggyPH':function(_0x4cd546,_0xe5327f){return _0x4cd546>_0xe5327f;},'rzsON':function(_0x32351e,_0x5c78ea){return _0x32351e-_0x5c78ea;},'QgvRQ':function(_0xe4313e,_0x541bed){return _0xe4313e*_0x541bed;},'kpiKR':function(_0x16fb29,_0x505d6c){return _0x16fb29>_0x505d6c;},'khmTG':function(_0x57fa11,_0x35886b){return _0x57fa11===_0x35886b;},'FyUIt':function(_0x2404f4,_0x28d2ae,_0x11131b){return _0x2404f4(_0x28d2ae,_0x11131b);},'ULXeu':'获取Pskey失败'};let _0xe00eff=[],_0x46e3e9={};for(let _0x278c33 in _0x44da40){let _0x2761b9=Credentials[_0x3284a0(0x1e5)][_0x3284a0(0x1d0)](_0x44da40[_0x278c33]),_0x1fabf1=Credentials[_0x3284a0(0x1e2)][_0x3284a0(0x1d0)](_0x44da40[_0x278c33]);!_0x2761b9||!_0x1fabf1||_0x2e9889[_0x3284a0(0x1c1)](_0x2e9889[_0x3284a0(0x1ac)](Date['now'](),_0x1fabf1),_0x2e9889[_0x3284a0(0x1d7)](0x708,0x3e8))||!_0x32a146?_0xe00eff[_0x3284a0(0x1d1)](_0x44da40[_0x278c33]):_0x46e3e9[_0x44da40[_0x278c33]]=_0x2761b9;}let _0x3eb03f={'result':0x0,'errMsg':'','domainPskeyMap':new Map()};_0x2e9889[_0x3284a0(0x1e7)](_0xe00eff[_0x3284a0(0x1c3)],0x0)&&(_0x3eb03f=await napCatCore['session']['getTipOffService']()[_0x3284a0(0x1cf)](_0xe00eff,!![]));let _0x26e3a4=_0x3eb03f[_0x3284a0(0x1dd)];for(let _0x577f62 of _0x26e3a4[_0x3284a0(0x1c2)]()){Credentials['PskeyData'][_0x3284a0(0x1d3)](_0x577f62[0x0],_0x577f62[0x1]),Credentials['PskeyTime'][_0x3284a0(0x1d3)](_0x577f62[0x0],Date[_0x3284a0(0x1bd)]());}let _0x59b3e8=Object[_0x3284a0(0x1bc)](Object[_0x3284a0(0x1af)](_0x26e3a4),_0x46e3e9);if(_0x2e9889[_0x3284a0(0x1b9)](_0x3eb03f['result'],0x0))return _0x59b3e8;else _0x2e9889[_0x3284a0(0x1b0)](logError,_0x2e9889['ULXeu'],_0x3eb03f['errMsg']);return{};}static async['getRobotUinRange'](){const _0x3c8572=_0x4e1d2a,_0x18c839=await napCatCore[_0x3c8572(0x1db)][_0x3c8572(0x1bb)]()[_0x3c8572(0x1c9)]({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0x18c839?.[_0x3c8572(0x1ae)]?.[_0x3c8572(0x1b2)];}static async['getSkey'](_0x55d27e=!![]){const _0x4c5f5c=_0x4e1d2a,_0x390651={'mWRoT':function(_0x5173a9,_0x56b6c7){return _0x5173a9==_0x56b6c7;},'hHLFA':function(_0x2aef7d,_0x13092f){return _0x2aef7d*_0x13092f;},'fDgwS':function(_0x2e32f4,_0x59de9f){return _0x2e32f4!==_0x59de9f;},'rbLHL':function(_0x226482,_0x435e33){return _0x226482+_0x435e33;},'nJWMQ':function(_0x15f3ec,_0x1c4eb3){return _0x15f3ec+_0x1c4eb3;},'KpNAi':_0x4c5f5c(0x1b1),'uDjvL':_0x4c5f5c(0x1d5),'fmsxg':_0x4c5f5c(0x1c4),'yDJio':function(_0x44ef4b,_0x1c3617){return _0x44ef4b(_0x1c3617);},'eveQP':'skey'};try{if(_0x390651[_0x4c5f5c(0x1ab)](Credentials['CreatTime'],0x0)||Date[_0x4c5f5c(0x1bd)]()-Credentials[_0x4c5f5c(0x1c5)]>_0x390651['hHLFA'](0x3e8,0xe10)||!_0x55d27e){const _0x17b4ce=await napCatCore[_0x4c5f5c(0x1db)][_0x4c5f5c(0x1a9)]()[_0x4c5f5c(0x1a4)]('');if(_0x390651[_0x4c5f5c(0x1aa)](_0x17b4ce[_0x4c5f5c(0x1b5)],0x0))return'';const _0x5cd724=_0x17b4ce['clientKey'],_0x342743=_0x17b4ce['keyIndex'],_0x4ab8e8=_0x390651[_0x4c5f5c(0x1de)](_0x390651[_0x4c5f5c(0x1e4)](_0x390651[_0x4c5f5c(0x1ca)]+selfInfo['uin']+_0x390651[_0x4c5f5c(0x1a2)],_0x5cd724),_0x390651[_0x4c5f5c(0x1b6)])+_0x342743,_0x3e0570=await _0x390651['yDJio'](HttpGetCookies,_0x4ab8e8),_0x49bf38=_0x3e0570[_0x4c5f5c(0x1d0)](_0x390651[_0x4c5f5c(0x1e3)]);if(!_0x49bf38)return'';return Credentials['CreatTime']=Date[_0x4c5f5c(0x1bd)](),Credentials[_0x4c5f5c(0x1c8)]=_0x49bf38,_0x49bf38;}return Credentials['Skey'];}catch(_0x5e7c08){}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 9709f2f0..8af6f499 100644 --- a/src/core.lib/src/apis/webapi.js +++ b/src/core.lib/src/apis/webapi.js @@ -1 +1 @@ -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 +const _0x253a11=_0x34d8;(function(_0x58cc5c,_0x12a168){const _0x298f28=_0x34d8,_0x4fabdc=_0x58cc5c();while(!![]){try{const _0x376939=-parseInt(_0x298f28(0x172))/0x1*(-parseInt(_0x298f28(0x10a))/0x2)+parseInt(_0x298f28(0x10f))/0x3*(-parseInt(_0x298f28(0x11e))/0x4)+parseInt(_0x298f28(0x118))/0x5+-parseInt(_0x298f28(0x104))/0x6*(parseInt(_0x298f28(0x12a))/0x7)+parseInt(_0x298f28(0x160))/0x8*(-parseInt(_0x298f28(0x171))/0x9)+parseInt(_0x298f28(0x16d))/0xa+-parseInt(_0x298f28(0x13e))/0xb;if(_0x376939===_0x12a168)break;else _0x4fabdc['push'](_0x4fabdc['shift']());}catch(_0x4ce824){_0x4fabdc['push'](_0x4fabdc['shift']());}}}(_0x4854,0x4eb15));import{WebGroupData,selfInfo}from'@/core/data';import{logDebug}from'@/common/utils/log';import{NTQQUserApi}from'./user';function _0x4854(){const _0x3f5c1c=['YHdoH','fKPTI','&sort=1&gc=','getSkey','BYexL',';\x20skey=','tmeac','2622045PlexPc','WrcQU','OMnZT','application/x-www-form-urlencoded','jcXGj','toString','12916CxgQQs','sfJAg','WMAUR','DFIaN',';\x20p_uin=o','json','CRnIq','TUyuU','uSaHx','mems','httpDataJson','getGrouptNotice','61201PSFAoY','KercQ','count','hHuRH','Gcrie','https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','set','rhvmP','tAOuJ','p_skey=','retcode','ysSKB','text','AZBVt','VFuhl','&group_code=','&page_start=','yTXpN','POST','uin','5779499bhjePF','YuLuR','EYrtS','qun.qq.com','COYuZ','eNIot','dcYev','ceil','qrBdE','getPSkey','getGroupEssenceMsg','pIaPi','NWfzN','WmPnN','HXeFN','DWQkX','VBdHR','now','ROaKL','nqMfh','oPbdq','VDIxv','webapi\x20获取群成员','KGKSX','&page_limit=20','Hizpm','push','aOWPC','sRaak','GroupTime','QmSdE',';\x20uin=o','arRso','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','330224bQDihl','errcode','qid=','httpDataText','get','oRqxM','Kuzyb','uRuTv','oKEsZ','onFJM','GET','sjovS','IhDTm','2480140CQDSQA','&end=','genBkn','uFBja','63NeXfhJ','437033CzfGbF','wHjMW','gKUIb','BvGBM','30aAcqfF','GroupData','tfxKq','sSFtu','nlcFJ','gObLd','2xcJWHs','Gdmbn','uChOL','HEAD','DjYYt','27pucnIR','https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn='];_0x4854=function(){return _0x3f5c1c;};return _0x4854();}function _0x34d8(_0x542389,_0x124f16){const _0x4854b3=_0x4854();return _0x34d8=function(_0x34d864,_0x565b84){_0x34d864=_0x34d864-0x104;let _0x1f3625=_0x4854b3[_0x34d864];return _0x1f3625;},_0x34d8(_0x542389,_0x124f16);}export class WebApi{static async[_0x253a11(0x148)](_0x51e6a1,_0x437baa){const _0x5b0df9=_0x253a11,_0x2a6b1c={'nqMfh':_0x5b0df9(0x141),'BYexL':function(_0x50b54f,_0xf8690){return _0x50b54f+_0xf8690;},'oKEsZ':function(_0xe5d24f,_0x4404f3){return _0xe5d24f+_0x4404f3;},'KgKgk':';\x20skey=','IhDTm':_0x5b0df9(0x122),'oDvtG':_0x5b0df9(0x15d),'HXeFN':function(_0x30788b,_0x4acf49){return _0x30788b||_0x4acf49;},'VDIxv':function(_0x286994,_0xdf0653){return _0x286994+_0xdf0653;},'fKPTI':_0x5b0df9(0x13a),'gObLd':_0x5b0df9(0x16a),'VBdHR':function(_0x487172,_0x4fef3e){return _0x487172!==_0x4fef3e;}},_0x433c90=(await NTQQUserApi['getPSkey']([_0x2a6b1c[_0x5b0df9(0x151)]]))[_0x2a6b1c[_0x5b0df9(0x151)]],_0x26d667=await NTQQUserApi[_0x5b0df9(0x114)](),_0xb0a0e=_0x2a6b1c['BYexL'](_0x2a6b1c['BYexL'](_0x2a6b1c[_0x5b0df9(0x115)](_0x2a6b1c[_0x5b0df9(0x115)](_0x2a6b1c[_0x5b0df9(0x115)](_0x2a6b1c['oKEsZ'](_0x5b0df9(0x133),_0x433c90),_0x2a6b1c['KgKgk']),_0x26d667),_0x2a6b1c[_0x5b0df9(0x16c)]),selfInfo[_0x5b0df9(0x13d)]),_0x2a6b1c['oDvtG'])+selfInfo['uin'];if(_0x2a6b1c[_0x5b0df9(0x14c)](!_0x26d667,!_0x433c90))return undefined;const _0x1b71de=WebApi[_0x5b0df9(0x16f)](_0x26d667),_0x120f4d=_0x2a6b1c['VDIxv'](_0x2a6b1c[_0x5b0df9(0x168)](_0x2a6b1c[_0x5b0df9(0x168)](_0x2a6b1c[_0x5b0df9(0x168)](_0x2a6b1c[_0x5b0df9(0x153)](_0x5b0df9(0x12f),_0x1b71de),_0x5b0df9(0x139)),_0x51e6a1),_0x2a6b1c[_0x5b0df9(0x112)]),_0x437baa)+_0x5b0df9(0x156),_0x30aca1=await WebApi['httpDataJson'](_0x120f4d,_0x2a6b1c[_0x5b0df9(0x109)],'',_0xb0a0e);if(_0x2a6b1c[_0x5b0df9(0x14e)](_0x30aca1[_0x5b0df9(0x134)],0x0))return undefined;return _0x30aca1;}static async['getGroupMembers'](_0x556682,_0x55584d=!![]){const _0x4a8dfa=_0x253a11,_0x35afa0={'CRnIq':function(_0x294441,_0x12689f,_0x37bfca){return _0x294441(_0x12689f,_0x37bfca);},'WDntC':_0x4a8dfa(0x154),'nlcFJ':function(_0x5a50a1,_0x4ee370){return _0x5a50a1>_0x4ee370;},'Wawhg':function(_0x1fb5ae,_0x442749){return _0x1fb5ae-_0x442749;},'OMnZT':function(_0x38725e,_0x49cf92){return _0x38725e*_0x49cf92;},'rhvmP':_0x4a8dfa(0x141),'KGKSX':function(_0x3d2bff,_0x32a365){return _0x3d2bff+_0x32a365;},'BvGBM':function(_0x2d9aeb,_0x2a5029){return _0x2d9aeb+_0x2a5029;},'uSaHx':function(_0x4d85df,_0x199f30){return _0x4d85df+_0x199f30;},'hHuRH':';\x20skey=','jcXGj':_0x4a8dfa(0x122),'QUPSg':function(_0x3ed649,_0x17ac97){return _0x3ed649||_0x17ac97;},'qUXpK':function(_0x361b39,_0x1d9884){return _0x361b39+_0x1d9884;},'sjovS':function(_0x5f1aab,_0x1bdab8){return _0x5f1aab+_0x1bdab8;},'sSFtu':'https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','wHjMW':'&bkn=','DjYYt':_0x4a8dfa(0x13c),'EtQnU':function(_0x5b2bfe,_0x5b054f){return _0x5b2bfe!==_0x5b054f;},'pIaPi':function(_0x10f84b,_0x231448){return _0x10f84b/_0x231448;},'uRuTv':function(_0x57f60e,_0x2adf10){return _0x57f60e<=_0x2adf10;},'gKUIb':function(_0x51811e,_0x2ea1e6){return _0x51811e+_0x2ea1e6;},'sRaak':function(_0x22cfc0,_0x491f27){return _0x22cfc0+_0x491f27;},'uFBja':function(_0x3e4126,_0x506f6f){return _0x3e4126+_0x506f6f;},'AZBVt':function(_0x134f06,_0x3412ae){return _0x134f06+_0x3412ae;},'Hizpm':_0x4a8dfa(0x15f),'IXWpM':function(_0x5a933b,_0x5d04fe){return _0x5a933b*_0x5d04fe;},'tmeac':function(_0x51dcf6,_0x4d54eb){return _0x51dcf6!==_0x4d54eb;}};_0x35afa0[_0x4a8dfa(0x124)](logDebug,_0x35afa0['WDntC'],_0x556682);let _0x577c56=WebGroupData[_0x4a8dfa(0x105)][_0x4a8dfa(0x164)](_0x556682),_0x537960=WebGroupData[_0x4a8dfa(0x15b)][_0x4a8dfa(0x164)](_0x556682),_0x3d4b77=new Array();if(!_0x537960||_0x35afa0[_0x4a8dfa(0x108)](_0x35afa0['Wawhg'](Date[_0x4a8dfa(0x14f)](),_0x537960),_0x35afa0[_0x4a8dfa(0x11a)](0x708,0x3e8))||!_0x55584d){const _0x535153=(await NTQQUserApi[_0x4a8dfa(0x147)]([_0x4a8dfa(0x141)]))[_0x35afa0[_0x4a8dfa(0x131)]],_0xc60738=await NTQQUserApi[_0x4a8dfa(0x114)](),_0x10ee46=_0x35afa0['KGKSX'](_0x35afa0[_0x4a8dfa(0x155)](_0x35afa0[_0x4a8dfa(0x175)](_0x35afa0['uSaHx'](_0x4a8dfa(0x133),_0x535153),_0x35afa0[_0x4a8dfa(0x12d)]),_0xc60738),_0x35afa0[_0x4a8dfa(0x11c)])+selfInfo['uin'];if(_0x35afa0['QUPSg'](!_0xc60738,!_0x535153))return _0x3d4b77;const _0x37a1a2=WebApi['genBkn'](_0xc60738),_0x5a60fb=[],_0x4e896e=await WebApi[_0x4a8dfa(0x128)](_0x35afa0[_0x4a8dfa(0x126)](_0x35afa0['qUXpK'](_0x35afa0[_0x4a8dfa(0x16b)](_0x35afa0[_0x4a8dfa(0x107)],_0x556682),_0x35afa0[_0x4a8dfa(0x173)]),_0x37a1a2),_0x35afa0[_0x4a8dfa(0x10e)],'',_0x10ee46);if(!_0x4e896e?.[_0x4a8dfa(0x12c)]||_0x35afa0['EtQnU'](_0x4e896e?.[_0x4a8dfa(0x161)],0x0)||!_0x4e896e?.['mems'])return[];else for(const _0x5e1823 in _0x4e896e[_0x4a8dfa(0x127)]){_0x3d4b77[_0x4a8dfa(0x158)](_0x4e896e[_0x4a8dfa(0x127)][_0x5e1823]);}const _0x41fb4b=Math[_0x4a8dfa(0x145)](_0x35afa0[_0x4a8dfa(0x149)](_0x4e896e[_0x4a8dfa(0x12c)],0x28));for(let _0x520bb3=0x2;_0x35afa0[_0x4a8dfa(0x167)](_0x520bb3,_0x41fb4b);_0x520bb3++){const _0x40259=WebApi[_0x4a8dfa(0x128)](_0x35afa0[_0x4a8dfa(0x174)](_0x35afa0[_0x4a8dfa(0x15a)](_0x35afa0['qUXpK'](_0x35afa0[_0x4a8dfa(0x155)](_0x35afa0[_0x4a8dfa(0x170)](_0x35afa0[_0x4a8dfa(0x137)](_0x35afa0[_0x4a8dfa(0x157)]+_0x35afa0['IXWpM'](_0x520bb3-0x1,0x28),_0x4a8dfa(0x16e)),_0x35afa0[_0x4a8dfa(0x11a)](_0x520bb3,0x28)),_0x4a8dfa(0x113)),_0x556682),'&bkn='),_0x37a1a2),_0x4a8dfa(0x13c),'',_0x10ee46);_0x5a60fb[_0x4a8dfa(0x158)](_0x40259);}for(let _0x4efa4b=0x1;_0x4efa4b<=_0x41fb4b;_0x4efa4b++){const _0x4a3447=await _0x5a60fb[_0x4efa4b];if(!_0x4a3447?.[_0x4a8dfa(0x12c)]||_0x35afa0[_0x4a8dfa(0x117)](_0x4a3447?.[_0x4a8dfa(0x161)],0x0)||!_0x4a3447?.[_0x4a8dfa(0x127)])continue;for(const _0x39f555 in _0x4a3447[_0x4a8dfa(0x127)]){_0x3d4b77['push'](_0x4a3447[_0x4a8dfa(0x127)][_0x39f555]);}}WebGroupData['GroupData']['set'](_0x556682,_0x3d4b77),WebGroupData['GroupTime'][_0x4a8dfa(0x130)](_0x556682,Date[_0x4a8dfa(0x14f)]());}else _0x3d4b77=_0x577c56;return _0x3d4b77;}static async['setGroupNotice'](_0xbfa24d,_0x5060f4=''){const _0x50e04a=_0x253a11,_0x3e6b04={'tfxKq':'qun.qq.com','EYrtS':function(_0x641217,_0x212372){return _0x641217+_0x212372;},'DFIaN':function(_0x113866,_0x359beb){return _0x113866+_0x359beb;},'sfJAg':_0x50e04a(0x122),'DuQCc':function(_0x4ec124,_0x26aa8c){return _0x4ec124||_0x26aa8c;},'CyKgP':function(_0x42dc10,_0x4b6acd){return _0x42dc10+_0x4b6acd;},'EVJfP':function(_0x2d5ef4,_0x7a05ef){return _0x2d5ef4+_0x7a05ef;},'WMAUR':function(_0x28cb89,_0x541ed3){return _0x28cb89+_0x541ed3;},'VFuhl':_0x50e04a(0x162),'dcYev':'&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','BWDYM':_0x50e04a(0x110),'tzMqF':'GET'},_0x1c4edd=(await NTQQUserApi[_0x50e04a(0x147)]([_0x3e6b04[_0x50e04a(0x106)]]))[_0x3e6b04[_0x50e04a(0x106)]],_0x43574a=await NTQQUserApi[_0x50e04a(0x114)](),_0x473630=_0x3e6b04[_0x50e04a(0x140)](_0x3e6b04['DFIaN'](_0x3e6b04[_0x50e04a(0x140)](_0x3e6b04[_0x50e04a(0x121)](_0x50e04a(0x133)+_0x1c4edd,';\x20skey='),_0x43574a),_0x3e6b04[_0x50e04a(0x11f)]),selfInfo['uin']);let _0x5ef89f=undefined;if(_0x3e6b04['DuQCc'](!_0x43574a,!_0x1c4edd))return undefined;const _0x115bb4=WebApi[_0x50e04a(0x16f)](_0x43574a),_0x3902f0=_0x3e6b04['CyKgP'](_0x3e6b04['EVJfP'](_0x3e6b04[_0x50e04a(0x140)](_0x3e6b04[_0x50e04a(0x120)](_0x3e6b04[_0x50e04a(0x120)](_0x3e6b04[_0x50e04a(0x138)],_0xbfa24d)+'&bkn=',_0x115bb4),'&text='),_0x5060f4),_0x3e6b04[_0x50e04a(0x144)]),_0x1eeb34=_0x3e6b04['BWDYM']+_0x115bb4;try{return _0x5ef89f=await WebApi[_0x50e04a(0x128)](_0x1eeb34,_0x3e6b04['tzMqF'],'',_0x473630),_0x5ef89f;}catch(_0x203b84){return undefined;}return undefined;}static async[_0x253a11(0x129)](_0x347bde){const _0x27b23b=_0x253a11,_0x159cb4={'Gdmbn':'qun.qq.com','arRso':function(_0x3d386e,_0x39c58d){return _0x3d386e+_0x39c58d;},'aOWPC':function(_0x51862b,_0x2f6255){return _0x51862b+_0x2f6255;},'YuLuR':function(_0x33104e,_0x392863){return _0x33104e+_0x392863;},'onFJM':_0x27b23b(0x133),'QkLAD':_0x27b23b(0x116),'oRqxM':_0x27b23b(0x122),'qrBdE':function(_0x526fd9,_0x174b5a){return _0x526fd9||_0x174b5a;},'YHdoH':function(_0x4acd76,_0x3757d0){return _0x4acd76+_0x3757d0;},'WrcQU':function(_0x3dcd2e,_0x35d1a9){return _0x3dcd2e+_0x35d1a9;},'oPbdq':function(_0x351f3c,_0x530196){return _0x351f3c+_0x530196;},'ZUXdT':'https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','eNIot':'&qid=','HSXjN':function(_0x4f45db,_0x3f42df){return _0x4f45db!==_0x3f42df;}},_0x3a71bd=(await NTQQUserApi['getPSkey']([_0x159cb4[_0x27b23b(0x10b)]]))[_0x27b23b(0x141)],_0x4ef39d=await NTQQUserApi[_0x27b23b(0x114)](),_0x8cf6a3=_0x159cb4['arRso'](_0x159cb4[_0x27b23b(0x159)](_0x159cb4[_0x27b23b(0x15e)](_0x159cb4[_0x27b23b(0x13f)](_0x159cb4[_0x27b23b(0x169)]+_0x3a71bd,_0x159cb4['QkLAD']),_0x4ef39d),_0x159cb4[_0x27b23b(0x165)]),selfInfo['uin']);let _0x41ecab=undefined;if(_0x159cb4[_0x27b23b(0x146)](!_0x4ef39d,!_0x3a71bd))return undefined;const _0x3d0bb8=WebApi['genBkn'](_0x4ef39d),_0x1f063e=_0x159cb4[_0x27b23b(0x111)](_0x159cb4[_0x27b23b(0x13f)](_0x159cb4[_0x27b23b(0x119)](_0x159cb4[_0x27b23b(0x152)](_0x159cb4['ZUXdT'],_0x3d0bb8),_0x159cb4[_0x27b23b(0x143)]),_0x347bde),'&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20');try{_0x41ecab=await WebApi[_0x27b23b(0x128)](_0x1f063e,_0x27b23b(0x16a),'',_0x8cf6a3);if(_0x159cb4['HSXjN'](_0x41ecab?.['ec'],0x0))return undefined;return _0x41ecab;}catch(_0x3dc549){return undefined;}return undefined;}static async[_0x253a11(0x163)](_0x4bdd08='',_0x155206=_0x253a11(0x16a),_0x546b31='',_0x16fcc9=''){const _0x4c61e7={'xwoJv':function(_0x1c2b63,_0x27955a){return _0x1c2b63===_0x27955a;},'DWQkX':'GET','TUyuU':function(_0x840f5c,_0x3d5033){return _0x840f5c===_0x3d5033;},'yTXpN':function(_0x5d325f,_0x528505,_0x31b387){return _0x5d325f(_0x528505,_0x31b387);},'XgtTx':'application/x-www-form-urlencoded','COYuZ':function(_0x34534a,_0xe4aab4,_0x1bb646){return _0x34534a(_0xe4aab4,_0x1bb646);},'QmSdE':function(_0x562422,_0x296b9f){return _0x562422(_0x296b9f);}};let _0x56717f='';return new Promise(async(_0x50dc62,_0x5150f8)=>{const _0x2e01bc=_0x34d8;try{let _0x2a1d80=undefined;_0x4c61e7['xwoJv'](_0x155206,_0x4c61e7[_0x2e01bc(0x14d)])||_0x4c61e7[_0x2e01bc(0x125)](_0x155206,'HEAD')?_0x2a1d80=await _0x4c61e7[_0x2e01bc(0x13b)](fetch,_0x4bdd08,{'method':_0x155206,'headers':{'Content-Type':_0x4c61e7['XgtTx'],'Cookie':_0x16fcc9}}):_0x2a1d80=await _0x4c61e7[_0x2e01bc(0x142)](fetch,_0x4bdd08,{'method':_0x155206,'headers':{'Content-Type':_0x2e01bc(0x11b),'Cookie':_0x16fcc9},'body':_0x546b31});if(_0x2a1d80['ok'])_0x56717f=await _0x2a1d80[_0x2e01bc(0x136)]();else{}}catch(_0x2a6f94){}_0x4c61e7[_0x2e01bc(0x15c)](_0x50dc62,_0x56717f);});}static async[_0x253a11(0x128)](_0x386834='',_0x538442=_0x253a11(0x16a),_0x5382f4='',_0xe232e5=''){const _0x2bda76=_0x253a11,_0x133ff0={'LJBgG':function(_0x1c7007,_0x114ecd){return _0x1c7007===_0x114ecd;},'ysSKB':_0x2bda76(0x16a),'uChOL':_0x2bda76(0x10d),'KercQ':function(_0x22d158,_0x4715f3,_0x57a4cf){return _0x22d158(_0x4715f3,_0x57a4cf);},'UTdOr':_0x2bda76(0x11b),'Gcrie':function(_0x45fb11,_0x15e183){return _0x45fb11(_0x15e183);}};let _0x3b400c=undefined;return new Promise(async(_0x3767fd,_0x450d54)=>{const _0x283742=_0x2bda76;try{let _0x3c2e30=undefined;_0x133ff0['LJBgG'](_0x538442,_0x133ff0[_0x283742(0x135)])||_0x538442===_0x133ff0[_0x283742(0x10c)]?_0x3c2e30=await _0x133ff0[_0x283742(0x12b)](fetch,_0x386834,{'method':_0x538442,'headers':{'Content-Type':_0x283742(0x11b),'Cookie':_0xe232e5}}):_0x3c2e30=await _0x133ff0[_0x283742(0x12b)](fetch,_0x386834,{'method':_0x538442,'headers':{'Content-Type':_0x133ff0['UTdOr'],'Cookie':_0xe232e5},'body':_0x5382f4});if(_0x3c2e30['ok'])_0x3b400c=await _0x3c2e30[_0x283742(0x123)]();else{}}catch(_0x4f8c68){}_0x133ff0[_0x283742(0x12e)](_0x3767fd,_0x3b400c);});}static[_0x253a11(0x16f)](_0x118848){const _0x118b54=_0x253a11,_0x2bdd34={'NWfzN':function(_0x5292c7,_0x777fbe){return _0x5292c7||_0x777fbe;},'ROaKL':function(_0x25962b,_0x549d38){return _0x25962b<_0x549d38;},'Kuzyb':function(_0x49bf39,_0x18372e){return _0x49bf39+_0x18372e;},'tAOuJ':function(_0x2644b7,_0xd3ffb1){return _0x2644b7<<_0xd3ffb1;},'WmPnN':function(_0x3fca23,_0x4b1c3f){return _0x3fca23&_0x4b1c3f;}};_0x118848=_0x2bdd34[_0x118b54(0x14a)](_0x118848,'');let _0x41f8ab=0x1505;for(let _0x1a074a=0x0;_0x2bdd34[_0x118b54(0x150)](_0x1a074a,_0x118848['length']);_0x1a074a++){const _0x43321c=_0x118848['charCodeAt'](_0x1a074a);_0x41f8ab=_0x2bdd34[_0x118b54(0x166)](_0x2bdd34[_0x118b54(0x166)](_0x41f8ab,_0x2bdd34[_0x118b54(0x132)](_0x41f8ab,0x5)),_0x43321c);}return _0x2bdd34[_0x118b54(0x14b)](_0x41f8ab,0x7fffffff)[_0x118b54(0x11d)]();}} \ No newline at end of file diff --git a/src/core.lib/src/core.js b/src/core.lib/src/core.js index 36cbff49..12f5b065 100644 --- a/src/core.lib/src/core.js +++ b/src/core.lib/src/core.js @@ -1 +1 @@ -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 +const _0xa011bf=_0x4886;(function(_0x172efb,_0x184a0f){const _0x337b3b=_0x4886,_0x250ccf=_0x172efb();while(!![]){try{const _0x18c618=-parseInt(_0x337b3b(0x1b5))/0x1*(-parseInt(_0x337b3b(0x1e7))/0x2)+parseInt(_0x337b3b(0x206))/0x3*(-parseInt(_0x337b3b(0x1b6))/0x4)+parseInt(_0x337b3b(0x1dc))/0x5+-parseInt(_0x337b3b(0x1d3))/0x6*(-parseInt(_0x337b3b(0x1cc))/0x7)+parseInt(_0x337b3b(0x249))/0x8+-parseInt(_0x337b3b(0x1fe))/0x9+-parseInt(_0x337b3b(0x243))/0xa*(parseInt(_0x337b3b(0x21f))/0xb);if(_0x18c618===_0x184a0f)break;else _0x250ccf['push'](_0x250ccf['shift']());}catch(_0x2f2f76){_0x250ccf['push'](_0x250ccf['shift']());}}}(_0x33bc,0x73578));function _0x4886(_0xa7b8c2,_0x439326){const _0x33bc10=_0x33bc();return _0x4886=function(_0x488666,_0x585582){_0x488666=_0x488666-0x1ab;let _0x5086ff=_0x33bc10[_0x488666];return _0x5086ff;},_0x4886(_0xa7b8c2,_0x439326);}import _0x15c0b0 from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x1ea1b4 from'node:path';function _0x33bc(){const _0x5628e6=['kqStv','uin','NodeQQNTWrapperUtil','errMsg','last_message_time','result','loginErrorInfo','84003BDpnak','DwAuI','BuddyListener','uid',')已登录,无法重复登录','NodeIKernelLoginService','zybwb','pngBase64QrcodeData','undefined','quickLoginWithUin','initWithDeskTopConfig','init','session','onLoginSuccessFuncList','catch','nOajv','initConfig','getQRCodePicture','initDataListener','tipsDesc','IrMKu','message_sent','addKernelLoginListener','engine','没有可快速登录的QQ号','20003797nIRown','IKYjT','then','packet_received','map','getMsgService','floor','getLoginList','forEach','frAOu','onQRCodeSessionFailed','getGroupService','NodeIKernelSessionListener','md5','groupCode','message_received','fvAyX','LocalLoginInfoList','EbhiW','consoleLog','mHyyt','MXVoh',')\x20在线状态变更','passwordLogin','onRecvMsg','util','get','Agwyg','HFbnK','curVersion','groupMemberList_MainWindow','getQuickLoginList','infos','sceneId','./nt_qq/global','addKernelBuddyListener','10SUBWCE','now','stringify','krfZd','mkdirSync','KYAaF','5456040BMVPSZ','onUserLoggedIn','has','fileLog','getProfileService','constructor','GYIYR','loginService','[KickedOffLine]\x20[','drOLn','clientType','jKYaQ','push','_GW_B','isQuickLogin','RUVpo','init\x20failed\x20','set','packet_sent','GGChu','startNT','RypFL','tipsTitle','wZCno','23rgmXdj','40DZpPZs','base64','IJUwC','FvjzL','jisQL','./.config/QQ','length','assign','onSelfStatusChanged','KZcWb','NodeIKernelProfileListener','onKickedOffLine','SFBBZ','140022008','NodeIGlobalAdapter','PjgWZ','本账号数据/缓存目录:','addKernelMsgListener','hex','uBsGz','name','pgvzj','7sAkNHs','faVEY','getBuddyList','dataPath','NodeIKernelBuddyListener','V1_WIN_NQ_','getNextMemberList','5208690jgBxxV','TadIN','当前账号(','onLineDev','AxLsQ','onQRCodeLoginSucceed','recallTime','qrcodeUrl','SztVo','4338695BQEwHP','loginListener','createMemberListScene','homedir','dataPathGlobal','YqPXx','read','XITwx','onProfileDetailInfoChanged','data:image/png;base64,','devUid','29434xUneaK','onLoginSuccess','onAddSendMsg','fileLogLevel','NodeIKernelLoginListener','GroupListener','NodeIKernelMsgListener','账号设备(','jaMWc','EBQfa','irzHP','Windows\x2010\x20Pro','addListener','addKernelGroupListener','proxyHandler','resolve','getMsgByLongId','-v2.db','Ugrjy','initSession','onMsgInfoListUpdate','getBuddyService','数据库初始化失败','1668357UDiNMz'];_0x33bc=function(){return _0x5628e6;};return _0x33bc();}import _0x4d048b from'node:os';import _0x491ef6 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 _0x23e424 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';import{napCatConfig}from'@/core/utils/config';export class NapCatCore{['session'];[_0xa011bf(0x238)];['engine'];[_0xa011bf(0x250)];[_0xa011bf(0x1dd)];['onLoginSuccessFuncList']=[];[_0xa011bf(0x1f5)]={'get'(target,prop,receiver){const _0x57d9db=_0xa011bf,aFDbwy={'XITwx':function(callee,param1){return callee(param1);},'vVbvi':_0x57d9db(0x20e)};if(typeof target[prop]===aFDbwy['vVbvi'])return(...args)=>{const _0x1763bd=_0x57d9db;aFDbwy[_0x1763bd(0x1e3)](logDebug,target[_0x1763bd(0x24e)][_0x1763bd(0x1ca)]+'\x20has\x20no\x20method\x20'+prop);};return Reflect[_0x57d9db(0x239)](target,prop,receiver);}};constructor(){const _0x51fb79=_0xa011bf,_0x220a0c={'EBQfa':function(_0x5e5990,_0x11f50a){return _0x5e5990(_0x11f50a);},'SztVo':function(_0xb3e70c,_0x5534c1){return _0xb3e70c+_0x5534c1;},'FvjzL':function(_0x3d180d,_0x1525a3){return _0x3d180d+_0x1525a3;},'yElZt':_0x51fb79(0x20a),'PjgWZ':_0x51fb79(0x1fd),'RUVpo':function(_0x400978,_0x41016d,_0x10e719){return _0x400978(_0x41016d,_0x10e719);},'KZcWb':_0x51fb79(0x1c6),'ofTzk':'initSession\x20failed','lcBLD':function(_0x37802e,_0x51ae24,_0x4b0d2a){return _0x37802e(_0x51ae24,_0x4b0d2a);},'lByqH':'登录失败','GYIYR':function(_0x498b26,_0x25d72a){return _0x498b26==_0x25d72a;}};this[_0x51fb79(0x21d)]=new _0x15c0b0['NodeIQQNTWrapperEngine'](),this['util']=new _0x15c0b0[(_0x51fb79(0x201))](),this[_0x51fb79(0x250)]=new _0x15c0b0[(_0x51fb79(0x20b))](),this[_0x51fb79(0x212)]=new _0x15c0b0['NodeIQQNTWrapperSession'](),this[_0x51fb79(0x1dd)]=new LoginListener(),this[_0x51fb79(0x1dd)][_0x51fb79(0x24a)]=_0x5bf0b2=>{const _0x343b39=_0x51fb79;_0x220a0c[_0x343b39(0x1f0)](logError,_0x220a0c[_0x343b39(0x1db)](_0x220a0c[_0x343b39(0x1b9)](_0x343b39(0x1d5),_0x5bf0b2),_0x220a0c['yElZt']));},this[_0x51fb79(0x1dd)][_0x51fb79(0x1d8)]=_0x2eed9f=>{const _0x66fa80=_0x51fb79,_0x4fc847={'SFBBZ':function(_0x36dcaf,_0x2acd96,_0x3475c9){return _0x36dcaf(_0x2acd96,_0x3475c9);}};this[_0x66fa80(0x1fa)](_0x2eed9f[_0x66fa80(0x200)],_0x2eed9f[_0x66fa80(0x209)])[_0x66fa80(0x221)](_0x4d24a5=>{const _0x452258=_0x66fa80,_0x5b1eab={'wcpuk':_0x220a0c[_0x452258(0x1c5)]};selfInfo[_0x452258(0x200)]=_0x2eed9f['uin'],selfInfo[_0x452258(0x209)]=_0x2eed9f[_0x452258(0x209)],napCatConfig[_0x452258(0x1e2)](),_0x220a0c[_0x452258(0x1ac)](setLogLevel,napCatConfig[_0x452258(0x1ea)],napCatConfig['consoleLogLevel']),_0x220a0c[_0x452258(0x1f0)](enableFileLog,napCatConfig[_0x452258(0x24c)]),enableConsoleLog(napCatConfig[_0x452258(0x232)]),_0x220a0c[_0x452258(0x1f0)](setLogSelfInfo,selfInfo);const _0x1406bc=_0x1ea1b4[_0x452258(0x1f6)](this[_0x452258(0x1cf)],'./NapCat/data');_0x491ef6[_0x452258(0x247)](_0x1406bc,{'recursive':!![]}),_0x220a0c[_0x452258(0x1ac)](logDebug,_0x220a0c[_0x452258(0x1bf)],_0x1406bc),dbUtil['init'](_0x1ea1b4[_0x452258(0x1f6)](_0x1406bc,'./'+_0x2eed9f['uin']+_0x452258(0x1f8)))['then'](()=>{const _0xb98078=_0x452258,_0x5168aa={'IKYjT':function(_0x91fdcc,_0x4110cb,_0x244976){const _0x22e79c=_0x4886;return _0x4fc847[_0x22e79c(0x1c2)](_0x91fdcc,_0x4110cb,_0x244976);},'IrMKu':function(_0xb8212e,_0x5bbaa2){return _0xb8212e instanceof _0x5bbaa2;}};this[_0xb98078(0x218)](),this[_0xb98078(0x213)][_0xb98078(0x223)](_0x4cbf24=>{const _0x3adcf7=_0xb98078;new Promise((_0x5add4f,_0x2f0f63)=>{const _0x5a153d=_0x4886,_0x121290=_0x5168aa[_0x5a153d(0x220)](_0x4cbf24,_0x2eed9f[_0x5a153d(0x200)],_0x2eed9f[_0x5a153d(0x209)]);_0x5168aa[_0x5a153d(0x21a)](_0x121290,Promise)&&_0x121290[_0x5a153d(0x221)](_0x5add4f)[_0x5a153d(0x214)](_0x2f0f63);})[_0x3adcf7(0x221)]();});})['catch'](_0x2799a8=>{logError(_0x5b1eab['wcpuk'],_0x2799a8);});})[_0x66fa80(0x214)](_0x32e1ae=>{const _0x5c4d97=_0x66fa80;_0x220a0c[_0x5c4d97(0x1ac)](logError,_0x220a0c['ofTzk'],_0x32e1ae);throw new Error('启动失败:\x20'+JSON[_0x5c4d97(0x245)](_0x32e1ae));});},this[_0x51fb79(0x1dd)][_0x51fb79(0x229)]=(_0x435c73,_0xfd55eb,_0x59af49)=>{const _0x462ac3=_0x51fb79;_0x220a0c['lcBLD'](logError,_0x220a0c['lByqH'],_0x59af49),_0x435c73==0x1&&_0x220a0c[_0x462ac3(0x24f)](_0xfd55eb,0x3)&&this[_0x462ac3(0x250)][_0x462ac3(0x217)]();},this[_0x51fb79(0x1dd)]['onLoginFailed']=_0x31b594=>{logError(_0x220a0c['lByqH'],_0x31b594);},this[_0x51fb79(0x1dd)]=new Proxy(this[_0x51fb79(0x1dd)],this[_0x51fb79(0x1f5)]),this['loginService'][_0x51fb79(0x21c)](new _0x15c0b0[(_0x51fb79(0x1eb))](this['loginListener'])),this['initConfig']();}get['dataPath'](){const _0x109338=_0xa011bf,_0x4bb4c6={'drOLn':_0x109338(0x1bb)};let _0x3ee409=this['util']['getNTUserDataInfoConfig']();return!_0x3ee409&&(_0x3ee409=_0x1ea1b4[_0x109338(0x1f6)](_0x4d048b[_0x109338(0x1df)](),_0x4bb4c6[_0x109338(0x252)]),_0x491ef6[_0x109338(0x247)](_0x3ee409,{'recursive':!![]})),_0x3ee409;}get['dataPathGlobal'](){const _0x4e79e4=_0xa011bf,_0x43bc46={'mHyyt':_0x4e79e4(0x241)};return _0x1ea1b4[_0x4e79e4(0x1f6)](this[_0x4e79e4(0x1cf)],_0x43bc46[_0x4e79e4(0x233)]);}[_0xa011bf(0x216)](){const _0x430467=_0xa011bf,_0x33e727={'faVEY':_0x430467(0x1f2)};this[_0x430467(0x21d)][_0x430467(0x210)]({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo[_0x430467(0x23c)],'os_version':_0x33e727[_0x430467(0x1cd)],'use_xlog':!![],'qua':_0x430467(0x1d1)+qqVersionConfigInfo[_0x430467(0x23c)]['replace']('-','_')+_0x430467(0x256),'global_path_config':{'desktopGlobalPath':this[_0x430467(0x1e0)]},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x15c0b0[(_0x430467(0x1c4))](new GlobalAdapter())),this[_0x430467(0x250)][_0x430467(0x216)]({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this[_0x430467(0x1e0)],'clientVer':qqVersionConfigInfo['curVersion'],'hostName':hostname});}['initSession'](_0x1f9d16,_0x3c6cf6){const _0x59ec9d=_0xa011bf,_0x4f27d4={'Agwyg':function(_0x212ffe,_0x5b2703){return _0x212ffe===_0x5b2703;},'nOajv':function(_0x2f5798,_0x45be2f){return _0x2f5798(_0x45be2f);},'DwAuI':function(_0x778dc3,_0xad4dfa,_0x133bf3,_0x43a399){return _0x778dc3(_0xad4dfa,_0x133bf3,_0x43a399);},'UKImn':function(_0xbde33e,_0x1cf2ec){return _0xbde33e(_0x1cf2ec);},'KYAaF':function(_0x1d2139,_0x3c3445){return _0x1d2139+_0x3c3445;},'wZCno':_0x59ec9d(0x1ad)};return new Promise((_0x487afa,_0x5d936e)=>{const _0x21bd21=_0x59ec9d,_0x85ff0d=_0x4f27d4[_0x21bd21(0x207)](genSessionConfig,_0x1f9d16,_0x3c6cf6,this[_0x21bd21(0x1cf)]),_0x397ced=new SessionListener();_0x397ced['onSessionInitComplete']=_0x4d2bed=>{const _0x2f0887=_0x21bd21;if(_0x4f27d4[_0x2f0887(0x23a)](_0x4d2bed,0x0))return _0x4f27d4[_0x2f0887(0x215)](_0x487afa,0x0);_0x4f27d4[_0x2f0887(0x215)](_0x5d936e,_0x4d2bed);},this['session'][_0x21bd21(0x211)](_0x85ff0d,new _0x15c0b0['NodeIDependsAdapter'](new DependsAdapter()),new _0x15c0b0['NodeIDispatcherAdapter'](new DispatcherAdapter()),new _0x15c0b0[(_0x21bd21(0x22b))](_0x397ced));try{this[_0x21bd21(0x212)][_0x21bd21(0x1b1)](0x0);}catch(_0x4c65a4){try{this[_0x21bd21(0x212)][_0x21bd21(0x1b1)]();}catch(_0x3c8ece){_0x4f27d4['UKImn'](_0x5d936e,_0x4f27d4[_0x21bd21(0x248)](_0x4f27d4[_0x21bd21(0x1b4)],_0x3c8ece));}}});}[_0xa011bf(0x218)](){const _0x56803c=_0xa011bf,_0x548065={'jaMWc':function(_0x2a96ef,_0x4d3b9f){return _0x2a96ef===_0x4d3b9f;},'GGChu':function(_0x2e7142,_0x2485b1){return _0x2e7142(_0x2485b1);},'Canya':function(_0x1f90d5,_0xe64109){return _0x1f90d5+_0xe64109;},'jisQL':_0x56803c(0x1ee),'HFbnK':_0x56803c(0x235),'uBsGz':function(_0x49f42b,_0x2683b7){return _0x49f42b(_0x2683b7);},'kqStv':function(_0x5576a2,_0x3d379b){return _0x5576a2+_0x3d379b;},'jKYaQ':_0x56803c(0x251),'IJUwC':function(_0x372d72,_0x2f3378){return _0x372d72/_0x2f3378;},'TadIN':_0x56803c(0x23d)},_0x25e59d=new MsgListener();_0x25e59d[_0x56803c(0x1d6)]=_0x52eeb3=>{const _0x775f70=_0x56803c;_0x52eeb3[_0x775f70(0x223)](_0xe977d4=>{const _0x1586f5=_0x775f70;_0x548065[_0x1586f5(0x1ef)](_0xe977d4[_0x1586f5(0x253)],0x2)&&_0x548065[_0x1586f5(0x1b0)](log,_0x548065['Canya'](_0x548065[_0x1586f5(0x1ba)],_0xe977d4[_0x1586f5(0x1e6)])+_0x548065[_0x1586f5(0x23b)]);});},_0x25e59d[_0x56803c(0x1c1)]=_0x1ff2a9=>{const _0x4a8ee9=_0x56803c;_0x548065[_0x4a8ee9(0x1c9)](log,_0x548065[_0x4a8ee9(0x1ff)](_0x548065[_0x4a8ee9(0x254)]+_0x1ff2a9[_0x4a8ee9(0x1b3)]+']\x20',_0x1ff2a9[_0x4a8ee9(0x219)]));},_0x25e59d[_0x56803c(0x1fb)]=_0x48d7e5=>{const _0x58ea31=_0x56803c;stat[_0x58ea31(0x222)]+=0x1,_0x48d7e5['map'](_0x281c2d=>{const _0x41928c=_0x58ea31;_0x548065[_0x41928c(0x1ef)](_0x281c2d[_0x41928c(0x1d9)],'0')?dbUtil['addMsg'](_0x281c2d)[_0x41928c(0x221)]()[_0x41928c(0x214)]():dbUtil[_0x41928c(0x1f7)](_0x281c2d['msgId'])[_0x41928c(0x221)](_0x3bdefd=>{const _0x3c9972=_0x41928c;_0x3bdefd&&(_0x3bdefd[_0x3c9972(0x1d9)]=_0x281c2d[_0x3c9972(0x1d9)],dbUtil['updateMsg'](_0x3bdefd)[_0x3c9972(0x221)]());});});},_0x25e59d[_0x56803c(0x1e9)]=_0xc1d10=>{const _0x4eebd8=_0x56803c;stat[_0x4eebd8(0x1af)]+=0x1,stat[_0x4eebd8(0x21b)]+=0x1,stat['last_message_time']=Math[_0x4eebd8(0x225)](_0x548065['IJUwC'](Date['now'](),0x3e8));},_0x25e59d[_0x56803c(0x237)]=_0x3c303f=>{const _0x4c0729=_0x56803c;stat['packet_received']+=0x1,stat[_0x4c0729(0x22e)]+=_0x3c303f[_0x4c0729(0x1bc)],stat[_0x4c0729(0x203)]=Math[_0x4c0729(0x225)](_0x548065[_0x4c0729(0x1b8)](Date[_0x4c0729(0x244)](),0x3e8));},_0x25e59d['onRecvSysMsg']=(..._0x32438f)=>{const _0x279177=_0x56803c;stat[_0x279177(0x222)]+=0x1;},this[_0x56803c(0x1f3)](_0x25e59d);const _0x5c35a9=new BuddyListener();_0x5c35a9['onBuddyListChange']=_0x461ec2=>{const _0xb6ded9=_0x56803c;rawFriends[_0xb6ded9(0x1bc)]=0x0,rawFriends['push'](..._0x461ec2);for(const _0x259d75 of _0x461ec2){for(const _0xed8c31 of _0x259d75['buddyList']){const _0x11779e=friends['get'](_0xed8c31[_0xb6ded9(0x209)]);uid2UinMap[_0xed8c31[_0xb6ded9(0x209)]]=_0xed8c31[_0xb6ded9(0x200)],_0x11779e?Object['assign'](_0x11779e,_0xed8c31):friends['set'](_0xed8c31[_0xb6ded9(0x209)],_0xed8c31);}}},this['addListener'](_0x5c35a9),this[_0x56803c(0x212)]['getBuddyService']()[_0x56803c(0x1ce)](!![])[_0x56803c(0x221)](_0x290208=>{});const _0x80682e=new ProfileListener();_0x80682e[_0x56803c(0x1e4)]=_0x20f6da=>{const _0x2ed20c=_0x56803c;_0x548065['jaMWc'](_0x20f6da['uid'],selfInfo[_0x2ed20c(0x209)])&&Object[_0x2ed20c(0x1bd)](selfInfo,_0x20f6da);},_0x80682e[_0x56803c(0x1be)]=_0x567f08=>{},this[_0x56803c(0x1f3)](_0x80682e);const _0x581c21=new GroupListener();_0x581c21['onGroupListUpdate']=(_0x13d825,_0x2fa6d4)=>{const _0x43d7fb=_0x56803c,_0x343f9a={'frAOu':_0x548065[_0x43d7fb(0x1d4)]};_0x2fa6d4[_0x43d7fb(0x223)](_0x3c7618=>{const _0x3a2f47=_0x43d7fb,_0x28f299=groups[_0x3a2f47(0x239)](_0x3c7618['groupCode']);if(_0x28f299)Object[_0x3a2f47(0x1bd)](_0x28f299,_0x3c7618);else{groups['set'](_0x3c7618[_0x3a2f47(0x22d)],_0x3c7618);const _0xf31988=this[_0x3a2f47(0x212)]['getGroupService']()[_0x3a2f47(0x1de)](_0x3c7618[_0x3a2f47(0x22d)],_0x343f9a[_0x3a2f47(0x228)]);this[_0x3a2f47(0x212)][_0x3a2f47(0x22a)]()[_0x3a2f47(0x1d2)](_0xf31988,undefined,0xbb8)[_0x3a2f47(0x221)](_0x57b587=>{});}});},_0x581c21['onMemberListChange']=_0x10edb6=>{const _0x27ec45=_0x56803c,_0x26a351=_0x10edb6[_0x27ec45(0x240)]['split']('_')[0x0];if(groupMembers[_0x27ec45(0x24b)](_0x26a351)){const _0x5e5ebc=groupMembers[_0x27ec45(0x239)](_0x26a351);_0x10edb6[_0x27ec45(0x23f)][_0x27ec45(0x227)]((_0x538ccd,_0x4bd8ce)=>{const _0x4c71bd=_0x27ec45,_0x47e4e9=_0x5e5ebc[_0x4c71bd(0x239)](_0x4bd8ce);_0x47e4e9?Object[_0x4c71bd(0x1bd)](_0x47e4e9,_0x538ccd):_0x5e5ebc[_0x4c71bd(0x1ae)](_0x4bd8ce,_0x538ccd);});}else groupMembers[_0x27ec45(0x1ae)](_0x26a351,_0x10edb6[_0x27ec45(0x23f)]);},_0x581c21['onMemberInfoChange']=(_0x3acd23,_0x18444a,_0x272466)=>{const _0x468c2a=_0x56803c;_0x272466[_0x468c2a(0x227)]((_0x17334d,_0x4ca92e)=>{const _0xd40d62=_0x468c2a;uid2UinMap[_0x4ca92e]=_0x17334d[_0xd40d62(0x200)];});const _0x413e83=groupMembers[_0x468c2a(0x239)](_0x3acd23);_0x413e83?_0x272466[_0x468c2a(0x227)]((_0x53bb26,_0x1fbf2c)=>{const _0x54c49c=_0x468c2a,_0x2bb640=_0x413e83[_0x54c49c(0x239)](_0x1fbf2c);_0x2bb640?Object[_0x54c49c(0x1bd)](_0x2bb640,_0x53bb26):_0x413e83['set'](_0x1fbf2c,_0x53bb26);}):groupMembers[_0x468c2a(0x1ae)](_0x3acd23,_0x272466);},this[_0x56803c(0x1f3)](_0x581c21);}[_0xa011bf(0x1f3)](_0x286231){const _0x186acf=_0xa011bf,_0x3c52ba={'pgvzj':_0x186acf(0x208),'Ugrjy':_0x186acf(0x1ec),'RypFL':'MsgListener','irzHP':'ProfileListener'};_0x286231=new Proxy(_0x286231,this[_0x186acf(0x1f5)]);switch(_0x286231['constructor'][_0x186acf(0x1ca)]){case _0x3c52ba[_0x186acf(0x1cb)]:{return this['session'][_0x186acf(0x1fc)]()[_0x186acf(0x242)](new _0x15c0b0[(_0x186acf(0x1d0))](_0x286231));}case _0x3c52ba[_0x186acf(0x1f9)]:{return this['session'][_0x186acf(0x22a)]()[_0x186acf(0x1f4)](new _0x15c0b0['NodeIKernelGroupListener'](_0x286231));}case _0x3c52ba[_0x186acf(0x1b2)]:{return this['session'][_0x186acf(0x224)]()[_0x186acf(0x1c7)](new _0x15c0b0[(_0x186acf(0x1ed))](_0x286231));}case _0x3c52ba[_0x186acf(0x1f1)]:{return this[_0x186acf(0x212)][_0x186acf(0x24d)]()['addKernelProfileListener'](new _0x15c0b0[(_0x186acf(0x1c0))](_0x286231));}default:return-0x1;}}[_0xa011bf(0x1e8)](_0x372cae){const _0x4395e9=_0xa011bf;this[_0x4395e9(0x213)][_0x4395e9(0x255)](_0x372cae);}async['quickLogin'](_0x173799){const _0x599067=_0xa011bf,_0x51dfb2={'lnddi':function(_0x2d0fe0,_0x2a4c92){return _0x2d0fe0!==_0x2a4c92;},'krfZd':_0x599067(0x21e),'oqomb':function(_0x53f62a,_0x3129ea){return _0x53f62a(_0x3129ea);},'fvAyX':function(_0x35f5b8,_0xf6a9e3){return _0x35f5b8+_0xf6a9e3;}},_0x1b629c=await this[_0x599067(0x250)][_0x599067(0x226)]();if(_0x51dfb2['lnddi'](_0x1b629c[_0x599067(0x204)],0x0))throw new Error(_0x51dfb2[_0x599067(0x246)]);const _0x4e99a1=_0x1b629c[_0x599067(0x230)]['find'](_0x69e579=>_0x69e579[_0x599067(0x200)]===_0x173799);if(!_0x4e99a1||!_0x4e99a1?.[_0x599067(0x1ab)])throw new Error(_0x173799+'快速登录不可用');await _0x51dfb2['oqomb'](sleep,0x3e8);const _0x5d0175=await this[_0x599067(0x250)][_0x599067(0x20f)](_0x173799);if(!_0x5d0175[_0x599067(0x204)])throw new Error(_0x51dfb2[_0x599067(0x22f)]('快速登录失败\x20',_0x5d0175[_0x599067(0x205)][_0x599067(0x202)]));return _0x5d0175;}async['qrLogin'](_0x5e76f7){return new Promise((_0x56005c,_0x4f2ab5)=>{const _0x56903e=_0x4886;this[_0x56903e(0x1dd)]['onQRCodeGetPicture']=_0x464ef8=>{const _0x4edf40=_0x56903e,_0x46e256=_0x464ef8[_0x4edf40(0x20d)]['split'](_0x4edf40(0x1e5))[0x1],_0x16e4b5=Buffer['from'](_0x46e256,_0x4edf40(0x1b7));_0x5e76f7(_0x464ef8[_0x4edf40(0x1da)],_0x464ef8[_0x4edf40(0x20d)],_0x16e4b5);},this[_0x56903e(0x250)][_0x56903e(0x217)]();});}async[_0xa011bf(0x236)](_0x5ca939,_0x3c1c7b,_0x5e2632,_0x53172f,_0x1a3882){const _0xefd738=_0xa011bf,_0x1f12cb={'GAliN':_0xefd738(0x22c),'zybwb':_0xefd738(0x1c8),'MXVoh':function(_0x557745,_0xa766bf){return _0x557745&&_0xa766bf;},'EbhiW':function(_0x50538e,_0x4318a3){return _0x50538e||_0x4318a3;},'AxLsQ':function(_0x41242e,_0x2d74d8){return _0x41242e(_0x2d74d8);},'YqPXx':_0xefd738(0x1c3)},_0x148247=_0x23e424['createHash'](_0x1f12cb['GAliN'])['update'](_0x3c1c7b)['digest'](_0x1f12cb[_0xefd738(0x20c)]),_0x537f16={'uin':_0x5ca939,'passwordMd5':_0x148247,'step':_0x1f12cb[_0xefd738(0x234)](_0x5e2632,_0x53172f)&&_0x1a3882?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x1f12cb[_0xefd738(0x231)](_0x5e2632,''),'proofWaterRand':_0x1f12cb['EbhiW'](_0x53172f,''),'proofWaterSid':_0x1a3882||''};await this[_0xefd738(0x250)]['getLoginList'](),await _0x1f12cb[_0xefd738(0x1d7)](sleep,0x3e8);const _0x426ca2=await this[_0xefd738(0x250)][_0xefd738(0x236)](_0x537f16);switch(_0x426ca2[_0xefd738(0x204)]){case'0':{break;}case _0x1f12cb[_0xefd738(0x1e1)]:{break;}case'4':case'140022013':default:}}async[_0xa011bf(0x23e)](){const _0x208b69=_0xa011bf,_0x39919a=await this[_0x208b69(0x250)]['getLoginList']();return _0x39919a;}}export const napCatCore=new NapCatCore(); \ No newline at end of file diff --git a/src/core.lib/src/data.js b/src/core.lib/src/data.js index cae5f21b..c788339c 100644 --- a/src/core.lib/src/data.js +++ b/src/core.lib/src/data.js @@ -1 +1 @@ -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 +const _0x383f0b=_0x5242;(function(_0x3c87aa,_0x5981a1){const _0x306703=_0x5242,_0x5383e5=_0x3c87aa();while(!![]){try{const _0x14c950=-parseInt(_0x306703(0x1c7))/0x1+-parseInt(_0x306703(0x1c5))/0x2+parseInt(_0x306703(0x1c1))/0x3+parseInt(_0x306703(0x1c3))/0x4+parseInt(_0x306703(0x1bf))/0x5+parseInt(_0x306703(0x1cb))/0x6+-parseInt(_0x306703(0x1d1))/0x7;if(_0x14c950===_0x5981a1)break;else _0x5383e5['push'](_0x5383e5['shift']());}catch(_0x35561c){_0x5383e5['push'](_0x5383e5['shift']());}}}(_0x8cf7,0xacaf1));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()};function _0x8cf7(){const _0x3ab2b3=['forEach','delete','5666885yocfOs','find','818712bFlZAj','get','5369200LcxbTt','toString','942736rtMFER','kDSRr','685134zrNMHS','length','from','getGroups','2417796rYIrWP','set','values','getGroupMembers','xDOGQ','NapCat未能正常启动,请检查日志查看错误','9014124DYdtvZ','JImPJ'];_0x8cf7=function(){return _0x3ab2b3;};return _0x8cf7();}export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x1d596b){const _0x4897ae=_0x5242;groups[_0x4897ae(0x1be)](_0x1d596b),groupMembers[_0x4897ae(0x1be)](_0x1d596b);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};function _0x5242(_0x434c0f,_0x126bbb){const _0x8cf79d=_0x8cf7();return _0x5242=function(_0x5242ee,_0xfadb77){_0x5242ee=_0x5242ee-0x1bd;let _0x1f03fe=_0x8cf79d[_0x5242ee];return _0x1f03fe;},_0x5242(_0x434c0f,_0x126bbb);}export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0x383f0b(0x1d0)};export async function getFriend(_0x2c220f){const _0x46fe31=_0x383f0b,_0x338723={'kDSRr':function(_0x4ce335,_0x5bded3){return _0x4ce335(_0x5bded3);}};_0x2c220f=_0x2c220f[_0x46fe31(0x1c4)]();if(_0x338723[_0x46fe31(0x1c6)](isNumeric,_0x2c220f)){const _0x56e60a=Array[_0x46fe31(0x1c9)](friends['values']());return _0x56e60a['find'](_0x359ccb=>_0x359ccb['uin']===_0x2c220f);}else return friends[_0x46fe31(0x1c2)](_0x2c220f);}export async function getGroup(_0x6a5972){const _0x482f46=_0x383f0b;let _0x155c49=groups['get'](_0x6a5972[_0x482f46(0x1c4)]());if(!_0x155c49)try{const _0x2b0a1e=await NTQQGroupApi[_0x482f46(0x1ca)]();_0x2b0a1e[_0x482f46(0x1c8)]&&_0x2b0a1e[_0x482f46(0x1bd)](_0x6396be=>{groups['set'](_0x6396be['groupCode'],_0x6396be);});}catch(_0x1f1ea8){return undefined;}return _0x155c49=groups[_0x482f46(0x1c2)](_0x6a5972[_0x482f46(0x1c4)]()),_0x155c49;}export async function getGroupMember(_0x39a37d,_0x57cce4){const _0x455f35=_0x383f0b,_0x5dbdfc={'xDOGQ':function(_0x4e22e4,_0x3c0d48){return _0x4e22e4(_0x3c0d48);},'giMvw':function(_0x4691ea){return _0x4691ea();}};_0x39a37d=_0x39a37d['toString'](),_0x57cce4=_0x57cce4[_0x455f35(0x1c4)]();let _0x5dd0b0=groupMembers[_0x455f35(0x1c2)](_0x39a37d);if(!_0x5dd0b0)try{_0x5dd0b0=await NTQQGroupApi['getGroupMembers'](_0x39a37d),groupMembers[_0x455f35(0x1cc)](_0x39a37d,_0x5dd0b0);}catch(_0x3bdc78){return null;}const _0x30ff99=()=>{const _0x54f859=_0x455f35;let _0x4217ba=undefined;return _0x5dbdfc[_0x54f859(0x1cf)](isNumeric,_0x57cce4)?_0x4217ba=Array['from'](_0x5dd0b0[_0x54f859(0x1cd)]())[_0x54f859(0x1c0)](_0x547ade=>_0x547ade['uin']===_0x57cce4):_0x4217ba=_0x5dd0b0[_0x54f859(0x1c2)](_0x57cce4),_0x4217ba;};let _0x2d464f=_0x5dbdfc['giMvw'](_0x30ff99);return!_0x2d464f&&(_0x5dd0b0=await NTQQGroupApi[_0x455f35(0x1ce)](_0x39a37d),_0x2d464f=_0x30ff99()),_0x2d464f;}export const uid2UinMap={};export function getUidByUin(_0x5d5dee){const _0x59a38b=_0x383f0b,_0x29a184={'JImPJ':function(_0x2e9b63,_0x9b5c3e){return _0x2e9b63===_0x9b5c3e;}};for(const _0x21ebf8 in uid2UinMap){if(_0x29a184[_0x59a38b(0x1d2)](uid2UinMap[_0x21ebf8],_0x5d5dee))return _0x21ebf8;}}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 17ac1a7d..d72535ca 100644 --- a/src/core.lib/src/entities/cache.js +++ b/src/core.lib/src/entities/cache.js @@ -1 +1 @@ -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 +(function(_0x42146e,_0x11e9c7){var _0x5b9c33=_0x2c26,_0xbb3aa4=_0x42146e();while(!![]){try{var _0x4effa1=parseInt(_0x5b9c33(0xfd))/0x1*(-parseInt(_0x5b9c33(0x10a))/0x2)+-parseInt(_0x5b9c33(0x106))/0x3*(parseInt(_0x5b9c33(0x105))/0x4)+parseInt(_0x5b9c33(0x101))/0x5*(parseInt(_0x5b9c33(0xfa))/0x6)+parseInt(_0x5b9c33(0xfc))/0x7*(-parseInt(_0x5b9c33(0x10b))/0x8)+parseInt(_0x5b9c33(0xf9))/0x9*(-parseInt(_0x5b9c33(0x104))/0xa)+parseInt(_0x5b9c33(0x10c))/0xb*(-parseInt(_0x5b9c33(0xf8))/0xc)+-parseInt(_0x5b9c33(0xfb))/0xd*(-parseInt(_0x5b9c33(0x100))/0xe);if(_0x4effa1===_0x11e9c7)break;else _0xbb3aa4['push'](_0xbb3aa4['shift']());}catch(_0x4cd6c6){_0xbb3aa4['push'](_0xbb3aa4['shift']());}}}(_0x3e68,0x56099));;export var CacheFileType;function _0x3e68(){var _0x31dcf2=['13STbSTa','840756lwOpzu','305ywHHBK','DOCUMENT','IhDFb','17807622IdaxhG','25iNBmqs','psOLI','VIDEO','10JHxhyW','748rLCCUG','7467BgXxXO','OTHER','oDXYf','GvrqJ','2350crwVUn','8jgyyYj','11dAauoN','1789404jdviTd','2551554JxWxwM','548382OiEgaF'];_0x3e68=function(){return _0x31dcf2;};return _0x3e68();}function _0x2c26(_0x289043,_0x1c3794){var _0x3e6824=_0x3e68();return _0x2c26=function(_0x2c2610,_0x33c087){_0x2c2610=_0x2c2610-0xf8;var _0x339f0d=_0x3e6824[_0x2c2610];return _0x339f0d;},_0x2c26(_0x289043,_0x1c3794);}(function(_0x19b248){var _0x5ce77c=_0x2c26,_0x500325={'Zcrec':'1|0|2|4|3','IhDFb':_0x5ce77c(0x103),'psOLI':'IMAGE','GvrqJ':'AUDIO','oDXYf':_0x5ce77c(0x107)},_0x39f9e6=_0x500325['Zcrec']['split']('|'),_0x52d526=0x0;while(!![]){switch(_0x39f9e6[_0x52d526++]){case'0':_0x19b248[_0x19b248[_0x5ce77c(0x103)]=0x1]=_0x500325[_0x5ce77c(0xff)];continue;case'1':_0x19b248[_0x19b248[_0x500325[_0x5ce77c(0x102)]]=0x0]=_0x500325[_0x5ce77c(0x102)];continue;case'2':_0x19b248[_0x19b248[_0x500325[_0x5ce77c(0x109)]]=0x2]=_0x500325['GvrqJ'];continue;case'3':_0x19b248[_0x19b248[_0x500325[_0x5ce77c(0x108)]]=0x4]='OTHER';continue;case'4':_0x19b248[_0x19b248[_0x5ce77c(0xfe)]=0x3]=_0x5ce77c(0xfe);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 755f1936..cdfe6abb 100644 --- a/src/core.lib/src/entities/constructor.js +++ b/src/core.lib/src/entities/constructor.js @@ -1 +1 @@ -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 +const _0x6b8328=_0x51bd;(function(_0x5e96e2,_0x22472d){const _0xbb3c88=_0x51bd,_0x4d9d23=_0x5e96e2();while(!![]){try{const _0x162341=parseInt(_0xbb3c88(0x179))/0x1*(parseInt(_0xbb3c88(0x139))/0x2)+-parseInt(_0xbb3c88(0x138))/0x3*(-parseInt(_0xbb3c88(0x136))/0x4)+parseInt(_0xbb3c88(0x16a))/0x5*(-parseInt(_0xbb3c88(0x164))/0x6)+-parseInt(_0xbb3c88(0x173))/0x7*(-parseInt(_0xbb3c88(0x15f))/0x8)+-parseInt(_0xbb3c88(0x14b))/0x9*(parseInt(_0xbb3c88(0x146))/0xa)+-parseInt(_0xbb3c88(0x135))/0xb*(parseInt(_0xbb3c88(0x14d))/0xc)+parseInt(_0xbb3c88(0x153))/0xd;if(_0x162341===_0x22472d)break;else _0x4d9d23['push'](_0x4d9d23['shift']());}catch(_0x3d44b2){_0x4d9d23['push'](_0x4d9d23['shift']());}}}(_0x19d3,0xa0d81));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x26f051}from'node:fs';import _0x416b28 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();export class SendMsgElementConstructor{static[_0x6b8328(0x177)](_0x36102c){const _0x52b253=_0x6b8328;return{'elementType':ElementType[_0x52b253(0x158)],'elementId':'','textElement':{'content':_0x36102c,'atType':AtType[_0x52b253(0x13e)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0xb372b6,_0x3789ed,_0x4a7d31,_0x3d5dd9){const _0x33f50c=_0x6b8328;return{'elementType':ElementType[_0x33f50c(0x158)],'elementId':'','textElement':{'content':'@'+_0x3d5dd9,'atType':_0x4a7d31,'atUid':_0xb372b6,'atTinyId':'','atNtUid':_0x3789ed}};}static['reply'](_0x38118b,_0x52b2ba,_0x2a4a22,_0x265cdf){const _0x57d3f6=_0x6b8328;return{'elementType':ElementType[_0x57d3f6(0x132)],'elementId':'','replyElement':{'replayMsgSeq':_0x38118b,'replayMsgId':_0x52b2ba,'senderUin':_0x2a4a22,'senderUinStr':_0x265cdf}};}static async[_0x6b8328(0x127)](_0x1d5a5a,_0x2e4fb4='',_0x3978b7=0x0){const _0x757261=_0x6b8328,_0x5a8ab6={'XENyC':_0x757261(0x13d),'pXbPt':function(_0xf1689d,_0x4f90ed){return _0xf1689d(_0x4f90ed);},'kzqcA':function(_0xe8b5db,_0x509a58,_0x1e7d4a){return _0xe8b5db(_0x509a58,_0x1e7d4a);},'QaKvH':_0x757261(0x141)},{md5:_0x28f7a4,fileName:_0x43a319,path:_0x51d3d5,fileSize:_0x59b1ad}=await NTQQFileApi['uploadFile'](_0x1d5a5a,ElementType[_0x757261(0x16d)],_0x3978b7);if(_0x59b1ad===0x0)throw _0x5a8ab6['XENyC'];const _0x17278e=await NTQQFileApi['getImageSize'](_0x1d5a5a),_0x5501d0={'md5HexStr':_0x28f7a4,'fileSize':_0x59b1ad[_0x757261(0x178)](),'picWidth':_0x17278e?.['width'],'picHeight':_0x17278e?.['height'],'fileName':_0x43a319,'sourcePath':_0x51d3d5,'original':!![],'picType':_0x5a8ab6[_0x757261(0x168)](isGIF,_0x1d5a5a)?PicType[_0x757261(0x159)]:PicType[_0x757261(0x165)],'picSubType':_0x3978b7,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x2e4fb4};return _0x5a8ab6['kzqcA'](logDebug,_0x5a8ab6[_0x757261(0x150)],_0x5501d0),{'elementType':ElementType[_0x757261(0x16d)],'elementId':'','picElement':_0x5501d0};}static async['file'](_0x52a936,_0x3c8e2a=''){const _0x54c122=_0x6b8328,_0x3932ab={'FaUyU':function(_0x2dcfe0,_0x40727b){return _0x2dcfe0===_0x40727b;},'upvpN':function(_0x53f3f9,_0x3f8758){return _0x53f3f9||_0x3f8758;}},{md5:_0x2791c2,fileName:_0x4491b6,path:_0x323017,fileSize:_0x3da00c}=await NTQQFileApi['uploadFile'](_0x52a936,ElementType[_0x54c122(0x142)]);if(_0x3932ab[_0x54c122(0x12b)](_0x3da00c,0x0))throw _0x54c122(0x13d);const _0x3ce134={'elementType':ElementType['FILE'],'elementId':'','fileElement':{'fileName':_0x3932ab[_0x54c122(0x15e)](_0x3c8e2a,_0x4491b6),'filePath':_0x323017,'fileSize':_0x3da00c[_0x54c122(0x178)]()}};return _0x3ce134;}static async['video'](_0x210984,_0x4f16f9='',_0x59fed0=''){const _0x10241f=_0x6b8328,_0x4c44ae={'ApTgB':function(_0x418013,_0x20b2f5){return _0x418013(_0x20b2f5);},'rMHTp':function(_0x628b1c,_0x57d5bb){return _0x628b1c(_0x57d5bb);},'Lmshg':_0x10241f(0x137),'bJhWU':'error','uEsXo':function(_0x26efb8,_0x567604){return _0x26efb8+_0x567604;},'XvAjn':function(_0x21fcf3,_0x206c06){return _0x21fcf3===_0x206c06;},'cktmr':_0x10241f(0x13d),'EVmPr':'path','UczgR':_0x10241f(0x12c),'daKnG':function(_0x71142f,_0x4c4dda,_0x352a67){return _0x71142f(_0x4c4dda,_0x352a67);},'mrJYe':_0x10241f(0x134),'gxlJZ':function(_0x4b75d7,_0x49fb00){return _0x4b75d7||_0x49fb00;}},{fileName:_0x340cbd,path:_0x3f3448,fileSize:_0x45d2b7,md5:_0x48a633}=await NTQQFileApi['uploadFile'](_0x210984,ElementType[_0x10241f(0x131)]);if(_0x4c44ae[_0x10241f(0x12f)](_0x45d2b7,0x0))throw _0x4c44ae['cktmr'];const _0x159b74=require(_0x4c44ae['EVmPr']);let _0x544bc3=_0x3f3448[_0x10241f(0x12e)](_0x159b74['sep']+_0x10241f(0x169)+_0x159b74[_0x10241f(0x140)],_0x159b74[_0x10241f(0x140)]+_0x10241f(0x130)+_0x159b74[_0x10241f(0x140)]);_0x544bc3=_0x159b74[_0x10241f(0x14e)](_0x544bc3);let _0xaa0a63={'width':0x780,'height':0x438,'time':0xf,'format':_0x4c44ae[_0x10241f(0x126)],'size':_0x45d2b7,'filePath':_0x210984};try{_0xaa0a63=await getVideoInfo(_0x3f3448),logDebug(_0x10241f(0x171),_0xaa0a63);}catch(_0x1fe4f3){_0x4c44ae[_0x10241f(0x175)](logError,_0x4c44ae[_0x10241f(0x172)],_0x1fe4f3);}const _0x41d871=new Promise((_0x27ea2f,_0x4ffff9)=>{const _0x389c3a=_0x10241f,_0x30536e={'Rxqux':function(_0x5a6205,_0x6b76de){const _0x857c62=_0x51bd;return _0x4c44ae[_0x857c62(0x16c)](_0x5a6205,_0x6b76de);}},_0xe4950d=_0x48a633+_0x389c3a(0x144),_0x288ed2=_0x159b74['join'](_0x544bc3,_0xe4950d);_0x4c44ae[_0x389c3a(0x155)](_0x416b28,_0x210984)['on'](_0x4c44ae[_0x389c3a(0x129)],()=>{})['on'](_0x4c44ae['bJhWU'],_0x25cafc=>{const _0x1624b8=_0x389c3a,_0x1032c3={'EeEqv':function(_0x25bd42,_0x146393){return _0x25bd42(_0x146393);}};logDebug('获取视频封面失败,使用默认封面',_0x25cafc),_0x59fed0?_0x26f051[_0x1624b8(0x16f)](_0x59fed0,_0x288ed2)[_0x1624b8(0x15c)](()=>{_0x1032c3['EeEqv'](_0x27ea2f,_0x288ed2);})[_0x1624b8(0x152)](_0x4ffff9):_0x26f051[_0x1624b8(0x13b)](_0x288ed2,defaultVideoThumb)['then'](()=>{_0x30536e['Rxqux'](_0x27ea2f,_0x288ed2);})['catch'](_0x4ffff9);})[_0x389c3a(0x166)]({'timestamps':[0x0],'filename':_0xe4950d,'folder':_0x544bc3,'size':_0x4c44ae[_0x389c3a(0x145)](_0x4c44ae['uEsXo'](_0xaa0a63[_0x389c3a(0x14a)],'x'),_0xaa0a63[_0x389c3a(0x13c)])})['on'](_0x4c44ae['Lmshg'],()=>{_0x27ea2f(_0x288ed2);});}),_0x19fdae=new Map(),_0x9e3ad1=await _0x41d871,_0x38e6ac=(await _0x26f051['stat'](_0x9e3ad1))[_0x10241f(0x161)];_0x19fdae[_0x10241f(0x170)](0x0,_0x9e3ad1);const _0x44071f=await _0x4c44ae['rMHTp'](calculateFileMD5,_0x9e3ad1),_0x2cb986={'elementType':ElementType['VIDEO'],'elementId':'','videoElement':{'fileName':_0x4c44ae[_0x10241f(0x15d)](_0x4f16f9,_0x340cbd),'filePath':_0x3f3448,'videoMd5':_0x48a633,'thumbMd5':_0x44071f,'fileTime':_0xaa0a63[_0x10241f(0x14c)],'thumbPath':_0x19fdae,'thumbSize':_0x38e6ac,'thumbWidth':_0xaa0a63[_0x10241f(0x14a)],'thumbHeight':_0xaa0a63[_0x10241f(0x13c)],'fileSize':''+_0x45d2b7}};return _0x2cb986;}static async[_0x6b8328(0x12d)](_0x583fdf){const _0x4f8abb=_0x6b8328,_0x424115={'UVPwg':_0x4f8abb(0x13a),'FqScp':function(_0x473d89,_0x510019){return _0x473d89===_0x510019;},'uCLMl':function(_0x26c415,_0x48587a){return _0x26c415||_0x48587a;}},{converted:_0x439ed2,path:_0x1c0d72,duration:_0x24b5c6}=await encodeSilk(_0x583fdf);if(!_0x1c0d72)throw _0x424115['UVPwg'];const {md5:_0x2e0833,fileName:_0x36d0e5,path:_0x56c186,fileSize:_0x316156}=await NTQQFileApi[_0x4f8abb(0x176)](_0x1c0d72,ElementType[_0x4f8abb(0x149)]);if(_0x424115['FqScp'](_0x316156,0x0))throw _0x4f8abb(0x13d);return _0x439ed2&&_0x26f051[_0x4f8abb(0x12a)](_0x1c0d72)[_0x4f8abb(0x15c)](),{'elementType':ElementType[_0x4f8abb(0x149)],'elementId':'','pttElement':{'fileName':_0x36d0e5,'filePath':_0x56c186,'md5HexStr':_0x2e0833,'fileSize':_0x316156,'duration':_0x424115[_0x4f8abb(0x154)](_0x24b5c6,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[_0x6b8328(0x14f)](_0x1c1173){const _0x537e76=_0x6b8328;return{'elementType':ElementType[_0x537e76(0x13f)],'elementId':'','faceElement':{'faceIndex':_0x1c1173,'faceType':_0x1c1173<0xde?FaceType['normal']:FaceType['normal2']}};}static[_0x6b8328(0x148)](_0x301cc5,_0x4a969b,_0x1aa0d4,_0x5703ad){const _0x15c4d0=_0x6b8328,_0x2e88c7={'JFjEY':_0x15c4d0(0x128)};return{'elementType':ElementType['MFACE'],'marketFaceElement':{'emojiPackageId':_0x301cc5,'emojiId':_0x4a969b,'key':_0x1aa0d4,'faceName':_0x5703ad||mFaceCache[_0x15c4d0(0x16b)](_0x4a969b)||_0x2e88c7[_0x15c4d0(0x163)]}};}static[_0x6b8328(0x160)](_0x330c9f){const _0x18060d=_0x6b8328,_0x32fe2d={'uVway':_0x18060d(0x157)};return{'elementType':ElementType['FACE'],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x18060d(0x160)],'faceType':FaceType[_0x18060d(0x160)],'faceText':_0x32fe2d[_0x18060d(0x151)],'packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x6b8328(0x162)](_0xcb5b4b){const _0x51b727=_0x6b8328,_0x2a4d03={'JbJFF':_0x51b727(0x156)};return{'elementType':ElementType['FACE'],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x51b727(0x147)],'faceText':_0x2a4d03[_0x51b727(0x133)],'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x6b8328(0x143)](_0x56e893){const _0x5a3a34=_0x6b8328,_0x126cd8={'vfwzs':function(_0x33a175,_0x1dda45){return _0x33a175!==_0x1dda45;},'ZPpDn':'string'};return _0x126cd8[_0x5a3a34(0x15a)](typeof _0x56e893,_0x126cd8['ZPpDn'])&&(_0x56e893=JSON[_0x5a3a34(0x174)](_0x56e893)),{'elementType':ElementType[_0x5a3a34(0x16e)],'elementId':'','arkElement':{'bytesData':_0x56e893,'linkInfo':null,'subElementType':null}};}static[_0x6b8328(0x15b)](_0xe6eb69){const _0x50e698=_0x6b8328;return{'elementType':ElementType[_0x50e698(0x167)],'elementId':'','markdownElement':{'content':_0xe6eb69}};}}function _0x51bd(_0x1d8cca,_0xfa8e3){const _0x19d323=_0x19d3();return _0x51bd=function(_0x51bdb8,_0x42ea36){_0x51bdb8=_0x51bdb8-0x126;let _0x44bd1b=_0x19d323[_0x51bdb8];return _0x44bd1b;},_0x51bd(_0x1d8cca,_0xfa8e3);}function _0x19d3(){const _0x56496b=['XvAjn','Thumb','VIDEO','REPLY','JbJFF','获取视频信息失败','121grzEYX','36faGoZO','end','379917uVjGCL','15026lPOTjv','语音转换失败,\x20请检查语音文件是否正常','writeFile','height','文件异常,大小为0','notAt','FACE','sep','图片信息','FILE','ark','_0.png','uEsXo','9395840WfFsQo','RPS','mface','PTT','width','9ODSIsC','time','420924hFZkvC','dirname','face','QaKvH','uVway','catch','7893106yNDPGJ','uCLMl','rMHTp','[包剪锤]','[骰子]','TEXT','gif','vfwzs','markdown','then','gxlJZ','upvpN','5073632ZReSlf','dice','size','rps','JFjEY','6aDVLZT','jpg','screenshots','MARKDOWN','pXbPt','Ori','3073730zSSchP','get','ApTgB','PIC','ARK','copyFile','set','视频信息','mrJYe','7AwDNuM','stringify','daKnG','uploadFile','text','toString','29HIrAfp','UczgR','pic','[商城表情]','Lmshg','unlink','FaUyU','mp4','ptt','replace'];_0x19d3=function(){return _0x56496b;};return _0x19d3();} \ No newline at end of file diff --git a/src/core.lib/src/entities/group.js b/src/core.lib/src/entities/group.js index b3a7f21a..962a8620 100644 --- a/src/core.lib/src/entities/group.js +++ b/src/core.lib/src/entities/group.js @@ -1 +1 @@ -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 +(function(_0x2b1c55,_0x3b4927){var _0x47c70a=_0x26e0,_0x20b81b=_0x2b1c55();while(!![]){try{var _0x1f71a4=parseInt(_0x47c70a(0x1a6))/0x1+-parseInt(_0x47c70a(0x19f))/0x2+-parseInt(_0x47c70a(0x1a7))/0x3*(-parseInt(_0x47c70a(0x1a0))/0x4)+-parseInt(_0x47c70a(0x1a4))/0x5*(parseInt(_0x47c70a(0x1a1))/0x6)+parseInt(_0x47c70a(0x1a2))/0x7*(-parseInt(_0x47c70a(0x1a9))/0x8)+-parseInt(_0x47c70a(0x1a5))/0x9+parseInt(_0x47c70a(0x19d))/0xa*(parseInt(_0x47c70a(0x19b))/0xb);if(_0x1f71a4===_0x3b4927)break;else _0x20b81b['push'](_0x20b81b['shift']());}catch(_0x5dc439){_0x20b81b['push'](_0x20b81b['shift']());}}}(_0x27b1,0x8de07));export var GroupMemberRole;(function(_0x4e7e6a){var _0x2c5960=_0x26e0,_0x84a60e={'Klzsg':_0x2c5960(0x19c),'ctnek':'admin','MBCHW':_0x2c5960(0x1a8)};_0x4e7e6a[_0x4e7e6a[_0x2c5960(0x19c)]=0x2]=_0x84a60e[_0x2c5960(0x19e)],_0x4e7e6a[_0x4e7e6a[_0x84a60e['ctnek']]=0x3]=_0x2c5960(0x1a3),_0x4e7e6a[_0x4e7e6a[_0x84a60e['MBCHW']]=0x4]=_0x84a60e['MBCHW'];}(GroupMemberRole||(GroupMemberRole={})));function _0x26e0(_0x202d74,_0x2a7768){var _0x27b197=_0x27b1();return _0x26e0=function(_0x26e0a0,_0x6df08f){_0x26e0a0=_0x26e0a0-0x19b;var _0x34f9a0=_0x27b197[_0x26e0a0];return _0x34f9a0;},_0x26e0(_0x202d74,_0x2a7768);}function _0x27b1(){var _0x278e4a=['normal','2957280HQJEuJ','Klzsg','1683304LVgWgH','52NYfjQe','30djxfOj','203pcShVw','admin','372550QTFseC','1684980YaGYvf','27429HIzYIn','266403fqrkJr','owner','187016mTpDnN','55tumpIb'];_0x27b1=function(){return _0x278e4a;};return _0x27b1();} \ 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 1607c1ae..cf525fb2 100644 --- a/src/core.lib/src/entities/index.js +++ b/src/core.lib/src/entities/index.js @@ -1 +1 @@ -(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 +(function(_0x2e17ce,_0x56fb60){var _0x24ea08=_0x1090,_0x3f4816=_0x2e17ce();while(!![]){try{var _0x28b747=-parseInt(_0x24ea08(0x189))/0x1+parseInt(_0x24ea08(0x18e))/0x2+-parseInt(_0x24ea08(0x18c))/0x3*(-parseInt(_0x24ea08(0x18d))/0x4)+-parseInt(_0x24ea08(0x18f))/0x5+parseInt(_0x24ea08(0x18b))/0x6+parseInt(_0x24ea08(0x188))/0x7+-parseInt(_0x24ea08(0x18a))/0x8;if(_0x28b747===_0x56fb60)break;else _0x3f4816['push'](_0x3f4816['shift']());}catch(_0x57cf80){_0x3f4816['push'](_0x3f4816['shift']());}}}(_0x1616,0x1d9a8));export*from'./user';export*from'./group';export*from'./msg';function _0x1616(){var _0x134bb6=['13036MpFAtg','310660ouqaNJ','203145zxfRRo','1386980PTUcxj','70169DZawXr','3314056ovqKJu','720684WByCOM','159spMqoK'];_0x1616=function(){return _0x134bb6;};return _0x1616();}export*from'./notify';function _0x1090(_0x189f15,_0x4a1aa4){var _0x161678=_0x1616();return _0x1090=function(_0x1090c3,_0x3218f0){_0x1090c3=_0x1090c3-0x188;var _0x1ec9f9=_0x161678[_0x1090c3];return _0x1ec9f9;},_0x1090(_0x189f15,_0x4a1aa4);}export*from'./cache';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 68d26ca6..d76815d2 100644 --- a/src/core.lib/src/entities/msg.js +++ b/src/core.lib/src/entities/msg.js @@ -1 +1 @@ -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 +function _0x16e9(_0x5b0bfe,_0x111572){var _0x29a1a3=_0x29a1();return _0x16e9=function(_0x16e991,_0x1fb3ff){_0x16e991=_0x16e991-0x1a6;var _0x306a83=_0x29a1a3[_0x16e991];return _0x306a83;},_0x16e9(_0x5b0bfe,_0x111572);}function _0x29a1(){var _0x2465a4=['xUsVA','REPLY','40824eWqEel','qjtGU','notAt','dice','KAXUu','ARK','597523bGSndu','2UkCqVu','atAll','iYbQK','juiFu','787134LQYjSv','IphDi','jpg','1004634XkWmST','memberIncrease','ysgId','RPS','kicked','1357715JJyZXQ','MhFLZ','623ydWglh','split','xPLdQ','jrhOb','FILE','Anxiq','CbeEg','MEMBER_NEW_TITLE','gif','TEXT','face','MFACE','VIDEO','AGEYN','ban','gPhSW','JYuJy','PIC','FACE','REHOX','group','woVAy','temp','XzzLW','CZEgV','ZVimg','YkMVt','friend','hzwoQ','normal','79336gRZMxU','pejZX','atUser','2087235TKBDQQ','uHdlu','npxlG','AziMC','tPaVF','inzBE'];_0x29a1=function(){return _0x2465a4;};return _0x29a1();}(function(_0x41115a,_0x385c7d){var _0x35836a=_0x16e9,_0x477720=_0x41115a();while(!![]){try{var _0x2bb2e0=parseInt(_0x35836a(0x1bc))/0x1*(parseInt(_0x35836a(0x1bd))/0x2)+-parseInt(_0x35836a(0x1c1))/0x3+-parseInt(_0x35836a(0x1b6))/0x4+-parseInt(_0x35836a(0x1c9))/0x5+parseInt(_0x35836a(0x1c4))/0x6+-parseInt(_0x35836a(0x1cb))/0x7*(-parseInt(_0x35836a(0x1ab))/0x8)+-parseInt(_0x35836a(0x1ae))/0x9;if(_0x2bb2e0===_0x385c7d)break;else _0x477720['push'](_0x477720['shift']());}catch(_0x4c9b21){_0x477720['push'](_0x477720['shift']());}}}(_0x29a1,0xd4c6d));export var ElementType;(function(_0x26b484){var _0x17ee20=_0x16e9,_0x1fc41a={'CZEgV':'9|8|4|6|3|1|2|5|7|0','IphDi':'MARKDOWN','REHOX':_0x17ee20(0x1dd),'gACSi':_0x17ee20(0x1b5),'XzzLW':_0x17ee20(0x1d7),'JYuJy':_0x17ee20(0x1cf),'ZVimg':_0x17ee20(0x1bb),'iYbQK':'PTT','pejZX':_0x17ee20(0x1d6),'CbeEg':_0x17ee20(0x1dc),'ysgId':_0x17ee20(0x1d4)},_0x3a3e90=_0x1fc41a[_0x17ee20(0x1e3)][_0x17ee20(0x1cc)]('|'),_0x7c196a=0x0;while(!![]){switch(_0x3a3e90[_0x7c196a++]){case'0':_0x26b484[_0x26b484[_0x1fc41a[_0x17ee20(0x1c2)]]=0xe]=_0x1fc41a[_0x17ee20(0x1c2)];continue;case'1':_0x26b484[_0x26b484[_0x1fc41a[_0x17ee20(0x1de)]]=0x6]=_0x1fc41a[_0x17ee20(0x1de)];continue;case'2':_0x26b484[_0x26b484[_0x1fc41a['gACSi']]=0x7]='REPLY';continue;case'3':_0x26b484[_0x26b484[_0x1fc41a[_0x17ee20(0x1e2)]]=0x5]=_0x1fc41a[_0x17ee20(0x1e2)];continue;case'4':_0x26b484[_0x26b484[_0x1fc41a[_0x17ee20(0x1db)]]=0x3]=_0x1fc41a['JYuJy'];continue;case'5':_0x26b484[_0x26b484[_0x1fc41a[_0x17ee20(0x1a6)]]=0xa]=_0x1fc41a[_0x17ee20(0x1a6)];continue;case'6':_0x26b484[_0x26b484[_0x1fc41a['iYbQK']]=0x4]=_0x1fc41a[_0x17ee20(0x1bf)];continue;case'7':_0x26b484[_0x26b484[_0x1fc41a[_0x17ee20(0x1ac)]]=0xb]=_0x1fc41a['pejZX'];continue;case'8':_0x26b484[_0x26b484[_0x1fc41a[_0x17ee20(0x1d1)]]=0x2]=_0x17ee20(0x1dc);continue;case'9':_0x26b484[_0x26b484[_0x1fc41a[_0x17ee20(0x1c6)]]=0x1]=_0x1fc41a[_0x17ee20(0x1c6)];continue;}break;}}(ElementType||(ElementType={})));export var PicType;(function(_0x2b0c36){var _0x265e13=_0x16e9,_0x336083={'hzwoQ':_0x265e13(0x1d3),'jRrST':_0x265e13(0x1c3)};_0x2b0c36[_0x2b0c36[_0x336083['hzwoQ']]=0x7d0]=_0x336083[_0x265e13(0x1a9)],_0x2b0c36[_0x2b0c36[_0x336083['jRrST']]=0x3e8]=_0x336083['jRrST'];}(PicType||(PicType={})));export var PicSubType;(function(_0x35ff19){var _0x3f574c=_0x16e9,_0x2e89e2={'KAXUu':_0x3f574c(0x1aa),'xUsVA':_0x3f574c(0x1d5)};_0x35ff19[_0x35ff19[_0x2e89e2[_0x3f574c(0x1ba)]]=0x0]=_0x2e89e2[_0x3f574c(0x1ba)],_0x35ff19[_0x35ff19[_0x2e89e2[_0x3f574c(0x1b4)]]=0x1]=_0x2e89e2[_0x3f574c(0x1b4)];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x35ca1c){var _0x2c9201=_0x16e9,_0x50e34f={'AziMC':_0x2c9201(0x1b8),'inzBE':_0x2c9201(0x1be),'YkMVt':_0x2c9201(0x1ad)};_0x35ca1c[_0x35ca1c[_0x50e34f[_0x2c9201(0x1b1)]]=0x0]=_0x50e34f[_0x2c9201(0x1b1)],_0x35ca1c[_0x35ca1c[_0x2c9201(0x1be)]=0x1]=_0x50e34f[_0x2c9201(0x1b3)],_0x35ca1c[_0x35ca1c[_0x50e34f[_0x2c9201(0x1a7)]]=0x2]=_0x50e34f[_0x2c9201(0x1a7)];}(AtType||(AtType={})));export var ChatType;(function(_0x17462f){var _0x4756ab=_0x16e9,_0x4a2de3={'woVAy':_0x4756ab(0x1a8),'uHdlu':_0x4756ab(0x1df),'oHJmp':'chatDevice','xPLdQ':_0x4756ab(0x1e1)};_0x17462f[_0x17462f['friend']=0x1]=_0x4a2de3[_0x4756ab(0x1e0)],_0x17462f[_0x17462f[_0x4a2de3[_0x4756ab(0x1af)]]=0x2]=_0x4a2de3[_0x4756ab(0x1af)],_0x17462f[_0x17462f[_0x4a2de3['oHJmp']]=0x8]=_0x4a2de3['oHJmp'],_0x17462f[_0x17462f[_0x4a2de3[_0x4756ab(0x1cd)]]=0x64]=_0x4a2de3[_0x4756ab(0x1cd)];}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST='https://gchat.qpic.cn';export const IMAGE_HTTP_HOST_NT='https://multimedia.nt.qq.com.cn';export var GrayTipElementSubType;(function(_0x296b31){var _0x372132=_0x16e9,_0x4e32fe={'qjtGU':'INVITE_NEW_MEMBER','gPhSW':'MEMBER_NEW_TITLE'};_0x296b31[_0x296b31[_0x4e32fe[_0x372132(0x1b7)]]=0xc]=_0x4e32fe[_0x372132(0x1b7)],_0x296b31[_0x296b31[_0x372132(0x1d2)]=0x11]=_0x4e32fe[_0x372132(0x1da)];}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x5d641e){var _0x5ad753=_0x16e9,_0x584498={'tPaVF':_0x5ad753(0x1aa),'juiFu':'normal2','jrhOb':_0x5ad753(0x1b9)};_0x5d641e[_0x5d641e[_0x584498['tPaVF']]=0x1]=_0x584498[_0x5ad753(0x1b2)],_0x5d641e[_0x5d641e[_0x584498[_0x5ad753(0x1c0)]]=0x2]=_0x584498[_0x5ad753(0x1c0)],_0x5d641e[_0x5d641e['dice']=0x3]=_0x584498[_0x5ad753(0x1ce)];}(FaceType||(FaceType={})));export var FaceIndex;(function(_0xd81ee0){var _0x339259=_0x16e9,_0x9791e6={'npxlG':_0x339259(0x1b9)};_0xd81ee0[_0xd81ee0[_0x9791e6['npxlG']]=0x166]=_0x9791e6[_0x339259(0x1b0)],_0xd81ee0[_0xd81ee0[_0x339259(0x1c7)]=0x167]=_0x339259(0x1c7);}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;(function(_0x1e8fdb){var _0x43df44=_0x16e9,_0xbf0bd5={'Anxiq':_0x43df44(0x1c5),'AGEYN':_0x43df44(0x1c8),'MhFLZ':_0x43df44(0x1d9)};_0x1e8fdb[_0x1e8fdb[_0xbf0bd5[_0x43df44(0x1d0)]]=0x1]=_0xbf0bd5[_0x43df44(0x1d0)],_0x1e8fdb[_0x1e8fdb[_0xbf0bd5['AGEYN']]=0x3]=_0xbf0bd5[_0x43df44(0x1d8)],_0x1e8fdb[_0x1e8fdb[_0xbf0bd5[_0x43df44(0x1ca)]]=0x8]=_0xbf0bd5[_0x43df44(0x1ca)];}(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 2755a29a..e4a1ec74 100644 --- a/src/core.lib/src/entities/notify.js +++ b/src/core.lib/src/entities/notify.js @@ -1 +1 @@ -(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 +(function(_0x268760,_0x583960){var _0x39d689=_0xf04f,_0x528abb=_0x268760();while(!![]){try{var _0x830da2=-parseInt(_0x39d689(0x82))/0x1*(-parseInt(_0x39d689(0x77))/0x2)+parseInt(_0x39d689(0x7a))/0x3+-parseInt(_0x39d689(0x73))/0x4+-parseInt(_0x39d689(0x7c))/0x5*(parseInt(_0x39d689(0x84))/0x6)+-parseInt(_0x39d689(0x8b))/0x7*(parseInt(_0x39d689(0x80))/0x8)+-parseInt(_0x39d689(0x95))/0x9+parseInt(_0x39d689(0x7f))/0xa;if(_0x830da2===_0x583960)break;else _0x528abb['push'](_0x528abb['shift']());}catch(_0x3235bf){_0x528abb['push'](_0x528abb['shift']());}}}(_0x5892,0xb85ce));export var GroupNotifyTypes;function _0xf04f(_0x40e468,_0x297e66){var _0x5892f8=_0x5892();return _0xf04f=function(_0xf04f7e,_0x57747f){_0xf04f7e=_0xf04f7e-0x72;var _0x26c64a=_0x5892f8[_0xf04f7e];return _0x26c64a;},_0xf04f(_0x40e468,_0x297e66);}(function(_0x523967){var _0x34db99=_0xf04f,_0x5e98aa={'NituT':_0x34db99(0x87),'JmwVO':_0x34db99(0x90),'hvQRo':_0x34db99(0x93),'AAxJE':'MEMBER_EXIT','mSuHn':_0x34db99(0x7e),'Jjsqw':_0x34db99(0x7b),'QYZKF':_0x34db99(0x89),'foVxA':_0x34db99(0x81)},_0x5b0f51=_0x5e98aa[_0x34db99(0x92)][_0x34db99(0x8f)]('|'),_0x49111f=0x0;while(!![]){switch(_0x5b0f51[_0x49111f++]){case'0':_0x523967[_0x523967['ADMIN_UNSET_OTHER']=0xd]=_0x34db99(0x85);continue;case'1':_0x523967[_0x523967[_0x5e98aa[_0x34db99(0x86)]]=0xc]=_0x5e98aa[_0x34db99(0x86)];continue;case'2':_0x523967[_0x523967[_0x5e98aa[_0x34db99(0x75)]]=0x8]=_0x34db99(0x93);continue;case'3':_0x523967[_0x523967[_0x5e98aa[_0x34db99(0x8c)]]=0xb]=_0x5e98aa[_0x34db99(0x8c)];continue;case'4':_0x523967[_0x523967[_0x5e98aa[_0x34db99(0x91)]]=0x1]=_0x5e98aa['mSuHn'];continue;case'5':_0x523967[_0x523967[_0x5e98aa[_0x34db99(0x94)]]=0x9]=_0x5e98aa['Jjsqw'];continue;case'6':_0x523967[_0x523967[_0x5e98aa[_0x34db99(0x72)]]=0x7]=_0x5e98aa[_0x34db99(0x72)];continue;case'7':_0x523967[_0x523967[_0x5e98aa[_0x34db99(0x8e)]]=0x4]=_0x34db99(0x81);continue;}break;}}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;(function(_0x54db88){var _0x75dc6=_0xf04f,_0x2c0a2a={'CuqWS':'IGNORE','MdESd':_0x75dc6(0x78),'HaYFe':_0x75dc6(0x76),'KXtWH':_0x75dc6(0x79)};_0x54db88[_0x54db88[_0x2c0a2a[_0x75dc6(0x96)]]=0x0]='IGNORE',_0x54db88[_0x54db88[_0x2c0a2a[_0x75dc6(0x88)]]=0x1]=_0x75dc6(0x78),_0x54db88[_0x54db88[_0x2c0a2a[_0x75dc6(0x7d)]]=0x2]=_0x2c0a2a[_0x75dc6(0x7d)],_0x54db88[_0x54db88[_0x2c0a2a[_0x75dc6(0x8d)]]=0x3]=_0x2c0a2a[_0x75dc6(0x8d)];}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;function _0x5892(){var _0x3f7997=['34184100GnnjvS','20248MvSmSs','INVITED_JOIN','21wCCPWj','reject','996CDSHvM','ADMIN_UNSET_OTHER','JmwVO','4|7|6|2|5|3|1|0','MdESd','JOIN_REQUEST','approve','3038mpqcRj','AAxJE','KXtWH','foVxA','split','ADMIN_UNSET','mSuHn','NituT','ADMIN_SET','Jjsqw','9583947lFjlXX','CuqWS','QYZKF','3091300SSCquk','JXjbi','hvQRo','APPROVE','136442ojOHVF','WAIT_HANDLE','REJECT','636255auVQwo','KICK_MEMBER','41320JcTvRf','HaYFe','INVITE_ME'];_0x5892=function(){return _0x3f7997;};return _0x5892();}(function(_0x40499c){var _0x11230c=_0xf04f,_0x3b4766={'FdHMM':_0x11230c(0x8a),'JXjbi':_0x11230c(0x83)};_0x40499c[_0x40499c[_0x11230c(0x8a)]=0x1]=_0x3b4766['FdHMM'],_0x40499c[_0x40499c[_0x3b4766['JXjbi']]=0x2]=_0x3b4766[_0x11230c(0x74)];}(GroupRequestOperateTypes||(GroupRequestOperateTypes={}))); \ No newline at end of file diff --git a/src/core.lib/src/entities/user.js b/src/core.lib/src/entities/user.js index 406994f4..dd040e13 100644 --- a/src/core.lib/src/entities/user.js +++ b/src/core.lib/src/entities/user.js @@ -1 +1 @@ -(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 +function _0x2f59(){var _0x1f7cfa=['729614nhQbfx','JTILt','179236npTYTe','506346sdIoqy','unknown','351672eGlfnY','2yTlONN','77toCPoH','5poGaBb','15430428HkzZmN','110lVqQur','male','sPQoi','11KLELTk','393570OwmPiD','1535910bLAkwQ'];_0x2f59=function(){return _0x1f7cfa;};return _0x2f59();}function _0x445e(_0x3e9db1,_0x29f3ef){var _0x2f59b5=_0x2f59();return _0x445e=function(_0x445e08,_0x561be1){_0x445e08=_0x445e08-0x180;var _0x2bd91d=_0x2f59b5[_0x445e08];return _0x2bd91d;},_0x445e(_0x3e9db1,_0x29f3ef);}(function(_0x5e0efa,_0x374e92){var _0x9d1095=_0x445e,_0x598a07=_0x5e0efa();while(!![]){try{var _0x3b09d0=-parseInt(_0x9d1095(0x180))/0x1*(-parseInt(_0x9d1095(0x18a))/0x2)+parseInt(_0x9d1095(0x18d))/0x3+parseInt(_0x9d1095(0x18c))/0x4+parseInt(_0x9d1095(0x182))/0x5*(-parseInt(_0x9d1095(0x189))/0x6)+-parseInt(_0x9d1095(0x181))/0x7*(-parseInt(_0x9d1095(0x18f))/0x8)+-parseInt(_0x9d1095(0x188))/0x9*(-parseInt(_0x9d1095(0x184))/0xa)+parseInt(_0x9d1095(0x187))/0xb*(-parseInt(_0x9d1095(0x183))/0xc);if(_0x3b09d0===_0x374e92)break;else _0x598a07['push'](_0x598a07['shift']());}catch(_0x1c94b7){_0x598a07['push'](_0x598a07['shift']());}}}(_0x2f59,0x5956a));export var Sex;(function(_0x59a5ac){var _0x5b752f=_0x445e,_0x1e8a33={'sPQoi':'female','JTILt':_0x5b752f(0x18e)};_0x59a5ac[_0x59a5ac[_0x5b752f(0x185)]=0x1]=_0x5b752f(0x185),_0x59a5ac[_0x59a5ac[_0x1e8a33[_0x5b752f(0x186)]]=0x2]=_0x1e8a33[_0x5b752f(0x186)],_0x59a5ac[_0x59a5ac[_0x1e8a33[_0x5b752f(0x18b)]]=0xff]=_0x1e8a33[_0x5b752f(0x18b)];}(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 4e13dacf..c9f00995 100644 --- a/src/core.lib/src/external/hook.js +++ b/src/core.lib/src/external/hook.js @@ -1 +1 @@ -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 +function _0x6074(_0x1ceaf1,_0x370418){const _0x5760d3=_0x5760();return _0x6074=function(_0x607444,_0x2eff31){_0x607444=_0x607444-0x69;let _0x166b31=_0x5760d3[_0x607444];return _0x166b31;},_0x6074(_0x1ceaf1,_0x370418);}const _0x2d8682=_0x6074;(function(_0x1cdd31,_0x4b5d4c){const _0x45d982=_0x6074,_0x12c6bf=_0x1cdd31();while(!![]){try{const _0x4ad7b3=parseInt(_0x45d982(0x74))/0x1+-parseInt(_0x45d982(0x6e))/0x2+parseInt(_0x45d982(0x72))/0x3+parseInt(_0x45d982(0x6f))/0x4+-parseInt(_0x45d982(0x6a))/0x5+parseInt(_0x45d982(0x78))/0x6+parseInt(_0x45d982(0x76))/0x7*(parseInt(_0x45d982(0x75))/0x8);if(_0x4ad7b3===_0x4b5d4c)break;else _0x12c6bf['push'](_0x12c6bf['shift']());}catch(_0x12ccf5){_0x12c6bf['push'](_0x12c6bf['shift']());}}}(_0x5760,0x1fde0));import{logError}from'@/common/utils/log';import{cpModule}from'@/common/utils/cpmodule';import{qqPkgInfo}from'@/common/utils/QQBasicInfo';function _0x5760(){const _0x4e0bd5=['加载\x20moehoo\x20失败','1073685YWtSRd','./MoeHoo.node','nWucn','version','397380yVAuri','590136sPNmEs','MoeHoo','moeHook','193410AOpYUv','getRKey','31461jgYsfa','2136SznGtk','6013tiIEXc','isAvailable','426822TzShVJ'];_0x5760=function(){return _0x4e0bd5;};return _0x5760();}class HookApi{[_0x2d8682(0x71)]=null;constructor(){const _0x53e149=_0x2d8682,_0x2d8bc5={'vPBtw':function(_0x4ad6e4,_0x3e05f9){return _0x4ad6e4(_0x3e05f9);},'oskYg':_0x53e149(0x70),'RthJM':function(_0x3e2e2b,_0x4aac90){return _0x3e2e2b(_0x4aac90);},'kKbbB':_0x53e149(0x6b),'nWucn':function(_0x47a459,_0x2c9bf2,_0x531a26){return _0x47a459(_0x2c9bf2,_0x531a26);},'rSqiW':_0x53e149(0x69)};try{_0x2d8bc5['vPBtw'](cpModule,_0x2d8bc5['oskYg']),this[_0x53e149(0x71)]=_0x2d8bc5['RthJM'](require,_0x2d8bc5['kKbbB']),this[_0x53e149(0x71)]['HookRkey'](qqPkgInfo[_0x53e149(0x6d)]);}catch(_0x20db77){_0x2d8bc5[_0x53e149(0x6c)](logError,_0x2d8bc5['rSqiW'],_0x20db77);}}[_0x2d8682(0x73)](){const _0x14983a=_0x2d8682;return this[_0x14983a(0x71)]?.['GetRkey']()||'';}[_0x2d8682(0x77)](){const _0x437b76=_0x2d8682;return!!this[_0x437b76(0x71)];}}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 8d7b4261..09d1ff28 100644 --- a/src/core.lib/src/index.js +++ b/src/core.lib/src/index.js @@ -1 +1 @@ -(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 +(function(_0xc045fc,_0x29c341){var _0x59d5db=_0x1b02,_0xe8baa2=_0xc045fc();while(!![]){try{var _0x41c674=-parseInt(_0x59d5db(0x105))/0x1+-parseInt(_0x59d5db(0x106))/0x2*(parseInt(_0x59d5db(0x10d))/0x3)+-parseInt(_0x59d5db(0x107))/0x4+-parseInt(_0x59d5db(0x10a))/0x5+-parseInt(_0x59d5db(0x10c))/0x6*(-parseInt(_0x59d5db(0x109))/0x7)+-parseInt(_0x59d5db(0x108))/0x8+parseInt(_0x59d5db(0x10b))/0x9;if(_0x41c674===_0x29c341)break;else _0xe8baa2['push'](_0xe8baa2['shift']());}catch(_0x93631a){_0xe8baa2['push'](_0xe8baa2['shift']());}}}(_0x15e1,0x3a79e));import _0x2cf800 from'./wrapper';export*from'./adapters';export*from'./apis';export*from'./entities';function _0x1b02(_0x4bcf08,_0x4d080a){var _0x15e19d=_0x15e1();return _0x1b02=function(_0x1b02d2,_0x57ed71){_0x1b02d2=_0x1b02d2-0x105;var _0x43ad5e=_0x15e19d[_0x1b02d2];return _0x43ad5e;},_0x1b02(_0x4bcf08,_0x4d080a);}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';function _0x15e1(){var _0x3f04c9=['413552BpSKVK','754918cFOalG','600664RmORSd','3583176chQINf','67998frfAEx','608285FUvMHP','12167775ALfkPJ','246znJPsF','3VGDqoM'];_0x15e1=function(){return _0x3f04c9;};return _0x15e1();}export{_0x2cf800 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.js b/src/core.lib/src/listeners/NodeIKernelBuddyListener.js index 58a18a69..b22559a0 100644 --- a/src/core.lib/src/listeners/NodeIKernelBuddyListener.js +++ b/src/core.lib/src/listeners/NodeIKernelBuddyListener.js @@ -1 +1 @@ -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 +var _0x300f0b=_0x206d;function _0x20e0(){var _0x5092f4=['onBuddyDetailInfoChange','onCheckBuddySettingResult','1813851DArdKm','onNickUpdated','7VBkNoh','1722327bzUoJn','onSmartInfos','onAddBuddyNeedVerify','5alUZhs','onBuddyRemarkUpdated','onBuddyListChange','onSpacePermissionInfos','2425336ThJwxv','onBuddyReqUnreadCntChange','onBlockChanged','onDoubtBuddyReqChange','onAvatarUrlUpdated','2fEDDjH','662160AfZJSv','onBuddyReqChange','onDelBatchBuddyInfos','10gTJkER','19301689IdccoK','2202272yCfChb','onBuddyInfoChange','onAddMeSettingChanged','318213dhSAYc'];_0x20e0=function(){return _0x5092f4;};return _0x20e0();}function _0x206d(_0x4bfbb9,_0xc0a683){var _0x20e0b6=_0x20e0();return _0x206d=function(_0x206d0e,_0x19a2af){_0x206d0e=_0x206d0e-0x90;var _0x21933e=_0x20e0b6[_0x206d0e];return _0x21933e;},_0x206d(_0x4bfbb9,_0xc0a683);}(function(_0x285139,_0x53c409){var _0x1aaa2c=_0x206d,_0x1ffe0a=_0x285139();while(!![]){try{var _0x48f5c1=-parseInt(_0x1aaa2c(0xa3))/0x1+-parseInt(_0x1aaa2c(0x9a))/0x2*(parseInt(_0x1aaa2c(0xa9))/0x3)+parseInt(_0x1aaa2c(0xa0))/0x4*(-parseInt(_0x1aaa2c(0x91))/0x5)+-parseInt(_0x1aaa2c(0x9b))/0x6+-parseInt(_0x1aaa2c(0xa8))/0x7*(-parseInt(_0x1aaa2c(0x95))/0x8)+-parseInt(_0x1aaa2c(0xa6))/0x9+-parseInt(_0x1aaa2c(0x9e))/0xa*(-parseInt(_0x1aaa2c(0x9f))/0xb);if(_0x48f5c1===_0x53c409)break;else _0x1ffe0a['push'](_0x1ffe0a['shift']());}catch(_0x21276e){_0x1ffe0a['push'](_0x1ffe0a['shift']());}}}(_0x20e0,0x49fe5));export class BuddyListener{[_0x300f0b(0x90)](_0x3fa34e){}[_0x300f0b(0xa2)](_0x2e6fc1){}[_0x300f0b(0x99)](_0x10dd01){}[_0x300f0b(0x97)](_0x531b1a){}[_0x300f0b(0xa4)](_0x3dc024){}[_0x300f0b(0xa1)](_0x3614f5){}[_0x300f0b(0x93)](_0xccf762){}[_0x300f0b(0x92)](_0x1163fc){}[_0x300f0b(0x9c)](_0x27e2f5){}[_0x300f0b(0x96)](_0xf88eba){}[_0x300f0b(0xa5)](_0x4632b4){}[_0x300f0b(0x9d)](_0x15851c){}[_0x300f0b(0x98)](_0x2676ca){}['onDoubtBuddyReqUnreadNumChange'](_0xa026b1){}[_0x300f0b(0xa7)](_0x57613b){}[_0x300f0b(0xaa)](_0x13288b){}[_0x300f0b(0x94)](_0x2acc07){}} \ 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 462d3a21..1f86220c 100644 --- a/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js +++ b/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js @@ -1 +1 @@ -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 +var _0x62a067=_0x332e;function _0x4222(){var _0x5cea40=['onFileSearch','onFileStatusChanged','10160lTtIiK','onSessionChanged','52068ECurWf','onFileListChanged','2645700bsyidK','220708JkrUjN','4852104LWtTVX','58aomTrE','880802HQvCBQ','15154579NvqtbN','27HXlgvJ','50UrUNmZ','3647XpSutP'];_0x4222=function(){return _0x5cea40;};return _0x4222();}function _0x332e(_0xd279a7,_0x46e735){var _0x4222ea=_0x4222();return _0x332e=function(_0x332e42,_0x3d87ea){_0x332e42=_0x332e42-0xcd;var _0x2a885f=_0x4222ea[_0x332e42];return _0x2a885f;},_0x332e(_0xd279a7,_0x46e735);}(function(_0x47f3f2,_0x18df0a){var _0x198dac=_0x332e,_0x7aaf5f=_0x47f3f2();while(!![]){try{var _0x100a00=parseInt(_0x198dac(0xd7))/0x1+parseInt(_0x198dac(0xd6))/0x2*(-parseInt(_0x198dac(0xd1))/0x3)+-parseInt(_0x198dac(0xd4))/0x4*(-parseInt(_0x198dac(0xda))/0x5)+parseInt(_0x198dac(0xd5))/0x6+parseInt(_0x198dac(0xdb))/0x7*(-parseInt(_0x198dac(0xcf))/0x8)+-parseInt(_0x198dac(0xd9))/0x9*(-parseInt(_0x198dac(0xd3))/0xa)+-parseInt(_0x198dac(0xd8))/0xb;if(_0x100a00===_0x18df0a)break;else _0x7aaf5f['push'](_0x7aaf5f['shift']());}catch(_0x202525){_0x7aaf5f['push'](_0x7aaf5f['shift']());}}}(_0x4222,0x782fb));export class KernelFileAssistantListener{[_0x62a067(0xce)](..._0x516492){}['onSessionListChanged'](..._0x5b80b7){}[_0x62a067(0xd0)](..._0x8527d9){}[_0x62a067(0xd2)](..._0x5d814b){}[_0x62a067(0xcd)](..._0x5208f0){}} \ 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 e2da5d4f..0dda90a4 100644 --- a/src/core.lib/src/listeners/NodeIKernelGroupListener.js +++ b/src/core.lib/src/listeners/NodeIKernelGroupListener.js @@ -1 +1 @@ -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 +var _0x5b73e1=_0xec94;(function(_0x61b225,_0x51b496){var _0x1a1f37=_0xec94,_0x195f31=_0x61b225();while(!![]){try{var _0x4dc4e5=-parseInt(_0x1a1f37(0x1bc))/0x1*(-parseInt(_0x1a1f37(0x1b4))/0x2)+parseInt(_0x1a1f37(0x1b2))/0x3+parseInt(_0x1a1f37(0x1c9))/0x4+parseInt(_0x1a1f37(0x1b5))/0x5+-parseInt(_0x1a1f37(0x1e0))/0x6*(parseInt(_0x1a1f37(0x1ae))/0x7)+-parseInt(_0x1a1f37(0x1d6))/0x8+parseInt(_0x1a1f37(0x1df))/0x9*(-parseInt(_0x1a1f37(0x1d8))/0xa);if(_0x4dc4e5===_0x51b496)break;else _0x195f31['push'](_0x195f31['shift']());}catch(_0xdafd24){_0x195f31['push'](_0x195f31['shift']());}}}(_0x57f4,0xcb1a1));function _0x57f4(){var _0x2a201a=['3089550wyAXrC','onGroupSingleScreenNotifies:','155678EUlLSn','5352320OestHi','onGroupDetailInfoChange','onJoinGroupNoVerifyFlag','onGroupsMsgMaskResult','jCTPH','onGroupBulletinRemindNotify','onMemberInfoChange:','2TBhHtv','onGroupFirstBulletinNotify:','onGroupExtListUpdate:','onGroupBulletinRemindNotify:','onGroupNotifiesUnreadCountUpdated:','onGroupArkInviteStateResult:','onGroupBulletinRichMediaDownloadComplete:','onShutUpMemberListChanged:','onShutUpMemberListChanged','fWJjs','onGroupAllInfoChange','onGroupExtListUpdate','wSAUe','3026252QMiKoJ','onGroupBulletinChange:','onJoinGroupNotify','onGroupSingleScreenNotifies','uEEzH','onGroupConfMemberChange','onGroupBulletinRichMediaProgressUpdate','pYrAQ','onGroupBulletinRichMediaProgressUpdate:','onGroupsMsgMaskResult:','log','hcCFS','onGroupNotifiesUpdated','4734872ZnVAsF','onGroupNotifiesUnreadCountUpdated','1080AfEmOE','onMemberListChange','qiPpa','onGroupDetailInfoChange:','onGroupArkInviteStateResult','onSearchMemberChange','onGroupBulletinChange','128358KrnLov','4770RWaCJV','onGetGroupBulletinListResult','onMemberListChange:','onJoinGroupNoVerifyFlag:','onGroupAllInfoChange:','onGroupMemberLevelInfoChange:','fuxHc','onGroupStatisticInfoChange:','onGroupListUpdate','yfWlR','onGroupStatisticInfoChange','427mBzXop','onMemberInfoChange','zrSmF','onGroupMemberLevelInfoChange'];_0x57f4=function(){return _0x2a201a;};return _0x57f4();}function _0xec94(_0x10647b,_0x595f7b){var _0x57f48f=_0x57f4();return _0xec94=function(_0xec9489,_0xb94293){_0xec9489=_0xec9489-0x1a9;var _0x23c2d1=_0x57f48f[_0xec9489];return _0x23c2d1;},_0xec94(_0x10647b,_0x595f7b);}export class GroupListener{[_0x5b73e1(0x1b1)](..._0x1941b9){}[_0x5b73e1(0x1e1)](..._0x33f3b5){}[_0x5b73e1(0x1c6)](..._0x311f50){}[_0x5b73e1(0x1de)](..._0x3ebec9){}[_0x5b73e1(0x1ba)](..._0x2f8ddd){}[_0x5b73e1(0x1dc)](..._0x3447fb){}['onGroupBulletinRichMediaDownloadComplete'](..._0x249933){}[_0x5b73e1(0x1ce)](..._0x533897){}[_0x5b73e1(0x1b6)](..._0x4bce35){}[_0x5b73e1(0x1c7)](..._0x10f7d7){}['onGroupFirstBulletinNotify'](..._0x11fcb3){}['onGroupListUpdate'](_0x54468c,_0x47ba2c){}[_0x5b73e1(0x1d5)](_0x4c2423,_0x42dfaa){}[_0x5b73e1(0x1cf)](..._0x22bfd1){}[_0x5b73e1(0x1d7)](..._0x583d14){}[_0x5b73e1(0x1cc)](..._0x2e6984){}[_0x5b73e1(0x1b8)](..._0x24c051){}[_0x5b73e1(0x1ad)](..._0x55e74b){}['onJoinGroupNotify'](..._0x50cbff){}['onJoinGroupNoVerifyFlag'](..._0x52190d){}['onMemberInfoChange'](_0x364878,_0x553b0a,_0x1fd17f){}['onMemberListChange'](_0xd7f790){}['onSearchMemberChange'](..._0x270eb8){}[_0x5b73e1(0x1c4)](..._0x310bda){}}export class DebugGroupListener{['onGroupMemberLevelInfoChange'](..._0x3816d6){var _0x3edbf7=_0x5b73e1,_0x3f6e15={'cDYin':_0x3edbf7(0x1e5)};console[_0x3edbf7(0x1d3)](_0x3f6e15['cDYin'],..._0x3816d6);}['onGetGroupBulletinListResult'](..._0x29dbb4){var _0x423c2b=_0x5b73e1,_0x3e1d76={'uEEzH':'onGetGroupBulletinListResult:'};console[_0x423c2b(0x1d3)](_0x3e1d76[_0x423c2b(0x1cd)],..._0x29dbb4);}[_0x5b73e1(0x1c6)](..._0x30555d){var _0x3dd71d=_0x5b73e1,_0x4c85ff={'DvzQx':_0x3dd71d(0x1e4)};console['log'](_0x4c85ff['DvzQx'],..._0x30555d);}[_0x5b73e1(0x1de)](..._0x1814f2){var _0xcd71b9=_0x5b73e1;console[_0xcd71b9(0x1d3)](_0xcd71b9(0x1ca),..._0x1814f2);}['onGroupBulletinRemindNotify'](..._0x529ef8){var _0x248270=_0x5b73e1,_0x137537={'MGvuD':_0x248270(0x1bf)};console[_0x248270(0x1d3)](_0x137537['MGvuD'],..._0x529ef8);}[_0x5b73e1(0x1dc)](..._0x4ff065){var _0xe96005=_0x5b73e1,_0x3e970a={'ZCTsS':_0xe96005(0x1c1)};console[_0xe96005(0x1d3)](_0x3e970a['ZCTsS'],..._0x4ff065);}['onGroupBulletinRichMediaDownloadComplete'](..._0x52194c){var _0x1937c4=_0x5b73e1,_0x9872ce={'fuxHc':_0x1937c4(0x1c2)};console['log'](_0x9872ce[_0x1937c4(0x1a9)],..._0x52194c);}[_0x5b73e1(0x1ce)](..._0x436e4c){var _0x3fd6a5=_0x5b73e1,_0x3da6fc={'pYrAQ':'onGroupConfMemberChange:'};console['log'](_0x3da6fc[_0x3fd6a5(0x1d0)],..._0x436e4c);}[_0x5b73e1(0x1b6)](..._0xba1cd5){var _0x4bb220=_0x5b73e1;console[_0x4bb220(0x1d3)](_0x4bb220(0x1db),..._0xba1cd5);}[_0x5b73e1(0x1c7)](..._0x3810c7){var _0x5981d5=_0x5b73e1,_0x58ae50={'jCTPH':_0x5981d5(0x1be)};console['log'](_0x58ae50[_0x5981d5(0x1b9)],..._0x3810c7);}['onGroupFirstBulletinNotify'](..._0x12749f){var _0x3ba22c=_0x5b73e1,_0x5391e7={'Vvnbj':_0x3ba22c(0x1bd)};console['log'](_0x5391e7['Vvnbj'],..._0x12749f);}[_0x5b73e1(0x1ab)](..._0x28b7ea){var _0x4634fd=_0x5b73e1;console[_0x4634fd(0x1d3)]('onGroupListUpdate:',..._0x28b7ea);}[_0x5b73e1(0x1d5)](..._0x46223e){console['log']('onGroupNotifiesUpdated:',..._0x46223e);}[_0x5b73e1(0x1cf)](..._0x355124){var _0x3ce264=_0x5b73e1,_0x99880d={'qiPpa':_0x3ce264(0x1d1)};console['log'](_0x99880d[_0x3ce264(0x1da)],..._0x355124);}[_0x5b73e1(0x1d7)](..._0x4006d9){var _0x4add8c=_0x5b73e1,_0x481148={'sqiPa':_0x4add8c(0x1c0)};console[_0x4add8c(0x1d3)](_0x481148['sqiPa'],..._0x4006d9);}['onGroupSingleScreenNotifies'](..._0x1a2d9b){var _0x40d6b0=_0x5b73e1;console[_0x40d6b0(0x1d3)](_0x40d6b0(0x1b3),..._0x1a2d9b);}[_0x5b73e1(0x1b8)](..._0x56fe64){var _0x34d7af=_0x5b73e1,_0x5730ff={'BjWmV':_0x34d7af(0x1d2)};console[_0x34d7af(0x1d3)](_0x5730ff['BjWmV'],..._0x56fe64);}[_0x5b73e1(0x1ad)](..._0x3a2a9a){var _0x494ff1=_0x5b73e1,_0x406868={'zrSmF':_0x494ff1(0x1aa)};console['log'](_0x406868[_0x494ff1(0x1b0)],..._0x3a2a9a);}[_0x5b73e1(0x1cb)](..._0x4e1585){console['log']('onJoinGroupNotify:',..._0x4e1585);}[_0x5b73e1(0x1b7)](..._0x467d0a){var _0x4a67ea=_0x5b73e1,_0x2bfe55={'wSAUe':_0x4a67ea(0x1e3)};console[_0x4a67ea(0x1d3)](_0x2bfe55[_0x4a67ea(0x1c8)],..._0x467d0a);}[_0x5b73e1(0x1af)](_0xf39bdf,_0x25fad3,_0x17101f){var _0x198c06=_0x5b73e1,_0x2b35a3={'fWJjs':_0x198c06(0x1bb)};console[_0x198c06(0x1d3)](_0x2b35a3[_0x198c06(0x1c5)],_0xf39bdf,_0x25fad3,_0x17101f);}[_0x5b73e1(0x1d9)](..._0x4d8f6f){var _0x2bd022=_0x5b73e1,_0x4a6eb6={'rNhPP':_0x2bd022(0x1e2)};console[_0x2bd022(0x1d3)](_0x4a6eb6['rNhPP'],..._0x4d8f6f);}[_0x5b73e1(0x1dd)](..._0x479782){var _0x1e6cf2=_0x5b73e1,_0x2161a9={'hcCFS':'onSearchMemberChange:'};console[_0x1e6cf2(0x1d3)](_0x2161a9[_0x1e6cf2(0x1d4)],..._0x479782);}[_0x5b73e1(0x1c4)](..._0x158fc5){var _0x175717=_0x5b73e1,_0x3c8c34={'yfWlR':_0x175717(0x1c3)};console[_0x175717(0x1d3)](_0x3c8c34[_0x175717(0x1ac)],..._0x158fc5);}} \ 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 6fde5344..95444ab1 100644 --- a/src/core.lib/src/listeners/NodeIKernelLoginListener.js +++ b/src/core.lib/src/listeners/NodeIKernelLoginListener.js @@ -1 +1 @@ -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 +function _0x1607(){var _0x26566d=['onUserLoggedIn','onLogoutSucceed','1241156NJjPgo','10377936EHsDVQ','onQRCodeSessionQuickLoginFailed','54mVMSSP','onQRCodeLoginSucceed','3knlsiy','onLoginConnecting','12bCwgLV','7755020lkFyaI','onLoginDisConnected','onLoginConnected','onLoginState','1995745UYBQpX','onQRCodeGetPicture','1476030OuEURX','onLoginFailed','1639234vdHPuh','3470712UYXAbQ'];_0x1607=function(){return _0x26566d;};return _0x1607();}var _0x238b51=_0x1c5a;(function(_0x4ed904,_0x2e80c0){var _0x2474fc=_0x1c5a,_0x16acd7=_0x4ed904();while(!![]){try{var _0x28d74c=-parseInt(_0x2474fc(0x165))/0x1+parseInt(_0x2474fc(0x161))/0x2*(-parseInt(_0x2474fc(0x16a))/0x3)+-parseInt(_0x2474fc(0x16c))/0x4*(parseInt(_0x2474fc(0x171))/0x5)+parseInt(_0x2474fc(0x166))/0x6+parseInt(_0x2474fc(0x16d))/0x7+parseInt(_0x2474fc(0x162))/0x8+-parseInt(_0x2474fc(0x168))/0x9*(-parseInt(_0x2474fc(0x173))/0xa);if(_0x28d74c===_0x2e80c0)break;else _0x16acd7['push'](_0x16acd7['shift']());}catch(_0xe27c1d){_0x16acd7['push'](_0x16acd7['shift']());}}}(_0x1607,0xdb6c1));function _0x1c5a(_0x158c01,_0x3d9ca8){var _0x16073c=_0x1607();return _0x1c5a=function(_0x1c5afe,_0xea5588){_0x1c5afe=_0x1c5afe-0x160;var _0x5e3c16=_0x16073c[_0x1c5afe];return _0x5e3c16;},_0x1c5a(_0x158c01,_0x3d9ca8);}export class LoginListener{[_0x238b51(0x16f)](..._0x474953){}[_0x238b51(0x16e)](..._0x1b9707){}[_0x238b51(0x16b)](..._0xb57566){}[_0x238b51(0x172)](_0xf6d333){}['onQRCodeLoginPollingStarted'](..._0x448be5){}['onQRCodeSessionUserScaned'](..._0x6a5478){}[_0x238b51(0x169)](_0x525263){}['onQRCodeSessionFailed'](..._0xb67a22){}[_0x238b51(0x160)](..._0x4a149c){}[_0x238b51(0x164)](..._0x578e7d){}['onLogoutFailed'](..._0xb832d){}[_0x238b51(0x163)](..._0x34fdc1){}[_0x238b51(0x167)](..._0x49d4b3){}['onPasswordLoginFailed'](..._0x33632f){}['OnConfirmUnusualDeviceFailed'](..._0x1e7733){}['onQQLoginNumLimited'](..._0x34d268){}[_0x238b51(0x170)](..._0x11e848){}} \ 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 c7f34d59..2cd90253 100644 --- a/src/core.lib/src/listeners/NodeIKernelMsgListener.js +++ b/src/core.lib/src/listeners/NodeIKernelMsgListener.js @@ -1 +1 @@ -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 +function _0x4595(_0x54f991,_0xc84a33){var _0x284797=_0x2847();return _0x4595=function(_0x4595eb,_0x4b5f2f){_0x4595eb=_0x4595eb-0x8f;var _0x10eca2=_0x284797[_0x4595eb];return _0x10eca2;},_0x4595(_0x54f991,_0xc84a33);}var _0x61098e=_0x4595;(function(_0x2f30c2,_0x2516a5){var _0x23b7a1=_0x4595,_0x5f4793=_0x2f30c2();while(!![]){try{var _0x1ef4be=parseInt(_0x23b7a1(0x8f))/0x1+parseInt(_0x23b7a1(0xbb))/0x2*(parseInt(_0x23b7a1(0xa0))/0x3)+parseInt(_0x23b7a1(0x92))/0x4+-parseInt(_0x23b7a1(0xcb))/0x5*(-parseInt(_0x23b7a1(0xb1))/0x6)+-parseInt(_0x23b7a1(0xcc))/0x7*(-parseInt(_0x23b7a1(0xc6))/0x8)+parseInt(_0x23b7a1(0xa3))/0x9+-parseInt(_0x23b7a1(0x9c))/0xa;if(_0x1ef4be===_0x2516a5)break;else _0x5f4793['push'](_0x5f4793['shift']());}catch(_0x4f8d3e){_0x5f4793['push'](_0x5f4793['shift']());}}}(_0x2847,0xca7be));export class MsgListener{[_0x61098e(0xc7)](_0x23e6b4){}[_0x61098e(0x90)](_0x5a0ee0){}[_0x61098e(0xc4)](_0x218e84){}[_0x61098e(0xc0)](_0x286379,_0x1ee02d,_0x4080b2){}[_0x61098e(0xa4)](_0x4bc483){}[_0x61098e(0x91)](_0x17d933){}[_0x61098e(0x97)](_0x49bdc6,_0x1059f1,_0x19af9c){}[_0x61098e(0xc2)](_0x49672f){}[_0x61098e(0xb8)](_0x5aae4e){}[_0x61098e(0xc5)](_0xc38985){}[_0x61098e(0x95)](_0x5f5c89){}[_0x61098e(0xbd)](_0x44e398){}[_0x61098e(0x9f)](_0x30fabf){}[_0x61098e(0xa6)](_0x38c633,_0x3e564d,_0x55cb59,_0xef82d7,_0x2b284a){}['onGroupFileInfoAdd'](_0x5ee313){}['onGroupFileInfoUpdate'](_0x2068e8){}[_0x61098e(0xb9)](_0x1a95a3){}['onGroupTransferInfoAdd'](_0x42ed3c){}[_0x61098e(0xaf)](_0x2ca270){}[_0x61098e(0xa9)](_0x3fb95f){}['onGuildMsgAbFlagChanged'](_0x47bd36){}[_0x61098e(0xbe)](_0x170b37){}[_0x61098e(0xc3)](_0x3f7eec){}['onHitEmojiKeywordResult'](_0x33266b){}[_0x61098e(0x93)](_0xd998b3){}[_0x61098e(0xb3)](_0x21a034){}[_0x61098e(0xa8)](_0x5b7da7){}[_0x61098e(0x99)](_0x3cc557){}['onLineDev'](_0x3c481e){}['onLogLevelChanged'](_0x46e75c){}[_0x61098e(0xa2)](_0x48b17d){}[_0x61098e(0xad)](_0x81240e){}[_0x61098e(0xb4)](_0x3a82cb,_0xc0f544){}[_0x61098e(0xaa)](_0x2e7267){}['onMsgInfoListAdd'](_0x1a7890){}[_0x61098e(0xb7)](_0x21946e){}['onMsgQRCodeStatusChanged'](_0x97af72){}[_0x61098e(0xb5)](_0x17d948,_0x35c55a,_0x1fa84d){}[_0x61098e(0xbc)](_0x37c485){}['onMsgSettingUpdate'](_0x1fdcb0){}[_0x61098e(0x9b)](){}[_0x61098e(0xc8)](){}[_0x61098e(0xb0)](){}[_0x61098e(0x9d)](_0x3b22e5){}[_0x61098e(0xc1)](_0x4609ce){}[_0x61098e(0xab)](_0x24fe3d){}[_0x61098e(0xbf)](_0x330f1d,_0x5300e4,_0x1e47e0,_0x7cec47,_0x55a5e4,_0x4c45db){}[_0x61098e(0x9e)](_0x31aff4){}[_0x61098e(0xca)](_0x2ecd8f){}['onRecvSysMsg'](_0x251b87){}[_0x61098e(0xb6)](_0x5f0dfb){}[_0x61098e(0xa7)](_0xef283c){}[_0x61098e(0xac)](_0x181215){}['onRichMediaUploadComplete'](_0x1aad41){}['onSearchGroupFileInfoUpdate'](_0x22125c){}['onSendMsgError'](_0x54cf56,_0x88b20c,_0x28b80f,_0x3fb766){}['onSysMsgNotification'](_0xd3e72e,_0x3fae74,_0x593969,_0xa2ad63){}[_0x61098e(0xae)](_0x574a8b){}['onUnreadCntAfterFirstView'](_0x22d93e){}[_0x61098e(0x94)](_0x357623){}[_0x61098e(0xb2)](_0x1e2a31){}[_0x61098e(0xc9)](_0xe68227){}[_0x61098e(0x9a)](_0x2e708d){}[_0x61098e(0xa5)](_0x44b244,_0x3863ab,_0x50dc1f){}[_0x61098e(0xba)](_0x33d4f6,_0x52a0c9,_0x185a43){}[_0x61098e(0x96)](..._0x490967){}[_0x61098e(0x98)](..._0x475a3d){}['onRedTouchChanged'](..._0x164b6e){}[_0x61098e(0xa1)](..._0x52c130){}}function _0x2847(){var _0x26cb49=['onUserChannelTabStatusChanged','onImportOldDbProgressUpdate','onMsgDelete','onMsgRecall','onRecvUDCFlag','onMsgInfoListUpdate','onEmojiResourceUpdate','onGroupGuildUpdate','onlineStatusSmallIconDownloadPush','2RGQTxr','onMsgSecurityNotify','onFirstViewDirectMsgUpdate','onGuildNotificationAbstractUpdate','onRecvMsgSvrRspTransInfo','onChannelFreqLimitInfoUpdate','onRecvGroupGuildFlag','onEmojiDownloadComplete','onHitCsRelatedEmojiResult','onBroadcastHelperProgressUpdate','onFeedEventUpdate','3445304SyWLfe','onAddSendMsg','onNtMsgSyncEnd','onUserOnlineStatusChanged','onRecvS2CMsg','2513110orkbVC','7WteQHp','140373eokDAj','onBroadcastHelperDownloadComplete','onCustomWithdrawConfigUpdate','1924160JIEwfX','onHitRelatedEmojiResult','onUnreadCntUpdate','onFileMsgCome','onUserSecQualityChanged','onDraftUpdate','onMsgWithRichLinkInfoUpdate','onKickedOffLine','onUserTabStatusChanged','onNtFirstViewMsgSyncEnd','36148160YdYmiB','onReadFeedEventUpdate','onRecvOnlineFileMsg','onFirstViewGroupGuildMapping','4351110dZtXWT','onBroadcastHelperProgerssUpdate','onMsgAbstractUpdate','8428500YBQYfB','onContactUnreadCntUpdate','onlineStatusBigIconDownloadPush','onGrabPasswordRedBag','onRichMediaDownloadComplete','onInputStatusPush','onGuildInteractiveUpdate','onMsgEventListUpdate','onRecvMsg','onRichMediaProgerssUpdate','onMsgBoxChanged','onTempChatInfoUpdate','onGroupTransferInfoUpdate','onNtMsgSyncStart','12bVBADR'];_0x2847=function(){return _0x26cb49;};return _0x2847();} \ 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 4a5eeccd..ef11896b 100644 --- a/src/core.lib/src/listeners/NodeIKernelProfileListener.js +++ b/src/core.lib/src/listeners/NodeIKernelProfileListener.js @@ -1 +1 @@ -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 +function _0x1d43(_0x4a5ca3,_0x3480e3){var _0x39e947=_0x39e9();return _0x1d43=function(_0x1d432a,_0x1d5bd2){_0x1d432a=_0x1d432a-0x1bf;var _0x2a7a42=_0x39e947[_0x1d432a];return _0x2a7a42;},_0x1d43(_0x4a5ca3,_0x3480e3);}var _0x57175b=_0x1d43;(function(_0x2eb326,_0x350bab){var _0x4322a6=_0x1d43,_0x3d00cf=_0x2eb326();while(!![]){try{var _0x5d8244=parseInt(_0x4322a6(0x1c9))/0x1+-parseInt(_0x4322a6(0x1c4))/0x2+parseInt(_0x4322a6(0x1c0))/0x3*(-parseInt(_0x4322a6(0x1c2))/0x4)+parseInt(_0x4322a6(0x1cb))/0x5+parseInt(_0x4322a6(0x1c8))/0x6*(parseInt(_0x4322a6(0x1c3))/0x7)+-parseInt(_0x4322a6(0x1c1))/0x8*(-parseInt(_0x4322a6(0x1ca))/0x9)+-parseInt(_0x4322a6(0x1bf))/0xa;if(_0x5d8244===_0x350bab)break;else _0x3d00cf['push'](_0x3d00cf['shift']());}catch(_0x822cbc){_0x3d00cf['push'](_0x3d00cf['shift']());}}}(_0x39e9,0x5936d));function _0x39e9(){var _0xac0240=['252077dtVQNf','151126LsjHMy','onSelfStatusChanged','onProfileSimpleChanged','onProfileDetailInfoChanged','6xjewvS','142995JvXAEL','9Bgcwwm','2707135fVGAnx','onStatusUpdate','5728500XWZCtQ','57462eUCjIK','4952152ocIFGY','68nJOeHn'];_0x39e9=function(){return _0xac0240;};return _0x39e9();}export class ProfileListener{[_0x57175b(0x1c6)](..._0x3ece36){}[_0x57175b(0x1c7)](_0x301b22){}[_0x57175b(0x1cc)](..._0x205d21){}[_0x57175b(0x1c5)](..._0x241daf){}['onStrangerRemarkChanged'](..._0x5538b3){}} \ 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 06e0ebc8..61bb523f 100644 --- a/src/core.lib/src/listeners/NodeIKernelRobotListener.js +++ b/src/core.lib/src/listeners/NodeIKernelRobotListener.js @@ -1 +1 @@ -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 +var _0x4999c9=_0x5bcf;(function(_0x285262,_0x7cadc2){var _0x39fefa=_0x5bcf,_0x3203b2=_0x285262();while(!![]){try{var _0x315bae=-parseInt(_0x39fefa(0x74))/0x1*(parseInt(_0x39fefa(0x7b))/0x2)+-parseInt(_0x39fefa(0x78))/0x3+parseInt(_0x39fefa(0x76))/0x4+-parseInt(_0x39fefa(0x79))/0x5*(parseInt(_0x39fefa(0x7d))/0x6)+parseInt(_0x39fefa(0x7e))/0x7+parseInt(_0x39fefa(0x7c))/0x8+parseInt(_0x39fefa(0x7a))/0x9*(parseInt(_0x39fefa(0x77))/0xa);if(_0x315bae===_0x7cadc2)break;else _0x3203b2['push'](_0x3203b2['shift']());}catch(_0x358c1e){_0x3203b2['push'](_0x3203b2['shift']());}}}(_0x1be9,0x69b5f));function _0x5bcf(_0x4b5136,_0xbfc20c){var _0x1be9c7=_0x1be9();return _0x5bcf=function(_0x5bcf12,_0x458aab){_0x5bcf12=_0x5bcf12-0x74;var _0x4da8e6=_0x1be9c7[_0x5bcf12];return _0x4da8e6;},_0x5bcf(_0x4b5136,_0xbfc20c);}export class KernelRobotListener{['onRobotFriendListChanged'](..._0x18681c){}['onRobotListChanged'](..._0x6d919d){}[_0x4999c9(0x75)](..._0xd92318){}}function _0x1be9(){var _0x10b8e7=['991860DYSQeS','62165bKbJIW','9Lihxtz','2YqbpaX','735256cPCPnd','30VredOI','2850974GMCtXA','705247rzAMRJ','onRobotProfileChanged','2570348atHJtt','3892470HBujUM'];_0x1be9=function(){return _0x10b8e7;};return _0x1be9();} \ 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 7ba5f1c9..53c1ee53 100644 --- a/src/core.lib/src/listeners/NodeIKernelSessionListener.js +++ b/src/core.lib/src/listeners/NodeIKernelSessionListener.js @@ -1 +1 @@ -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 +var _0x8cc1ee=_0x1f88;(function(_0x44c816,_0x5748e6){var _0x32fc67=_0x1f88,_0x91ebc4=_0x44c816();while(!![]){try{var _0x190d6c=-parseInt(_0x32fc67(0xf7))/0x1+-parseInt(_0x32fc67(0xfe))/0x2+parseInt(_0x32fc67(0x103))/0x3*(parseInt(_0x32fc67(0xf8))/0x4)+parseInt(_0x32fc67(0x102))/0x5*(-parseInt(_0x32fc67(0x101))/0x6)+parseInt(_0x32fc67(0xff))/0x7*(parseInt(_0x32fc67(0xfa))/0x8)+-parseInt(_0x32fc67(0x100))/0x9+parseInt(_0x32fc67(0xfd))/0xa;if(_0x190d6c===_0x5748e6)break;else _0x91ebc4['push'](_0x91ebc4['shift']());}catch(_0x2bc313){_0x91ebc4['push'](_0x91ebc4['shift']());}}}(_0x1265,0x768a7));function _0x1265(){var _0x5ee6b5=['289746QHkXiw','15tcmemY','75kwKSBu','onUserOnlineResult','onNTSessionCreate','882590VOZfeB','128748SBCysk','onOpentelemetryInit','1032yDOBAZ','onSessionInitComplete','onGProSessionCreate','13682180lbZBCq','1481104laQOqH','39368eaQQpZ','5803479XMcOPD'];_0x1265=function(){return _0x5ee6b5;};return _0x1265();}function _0x1f88(_0x103be9,_0x44beb2){var _0x126591=_0x1265();return _0x1f88=function(_0x1f8890,_0x456bee){_0x1f8890=_0x1f8890-0xf7;var _0x31a999=_0x126591[_0x1f8890];return _0x31a999;},_0x1f88(_0x103be9,_0x44beb2);}export class SessionListener{[_0x8cc1ee(0x105)](_0x1fb599){}[_0x8cc1ee(0xfc)](_0x287f0f){}[_0x8cc1ee(0xfb)](_0x45815d){}[_0x8cc1ee(0xf9)](_0x34f019){}[_0x8cc1ee(0x104)](_0x1be8d1){}['onGetSelfTinyId'](_0x2eaf1a){}} \ 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 c845215b..9d0d6ced 100644 --- a/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js +++ b/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js @@ -1 +1 @@ -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 +function _0xb0eb(_0x32f7cd,_0x30311c){var _0xc6c5ca=_0xc6c5();return _0xb0eb=function(_0xb0eb1a,_0xc9e9f0){_0xb0eb1a=_0xb0eb1a-0x196;var _0x4aa81e=_0xc6c5ca[_0xb0eb1a];return _0x4aa81e;},_0xb0eb(_0x32f7cd,_0x30311c);}var _0x3a2d5e=_0xb0eb;(function(_0x270370,_0x16fbcc){var _0x51d5d5=_0xb0eb,_0x50c420=_0x270370();while(!![]){try{var _0x3836f0=parseInt(_0x51d5d5(0x1a1))/0x1+parseInt(_0x51d5d5(0x1a3))/0x2+parseInt(_0x51d5d5(0x197))/0x3*(parseInt(_0x51d5d5(0x19a))/0x4)+-parseInt(_0x51d5d5(0x198))/0x5+parseInt(_0x51d5d5(0x1a4))/0x6*(parseInt(_0x51d5d5(0x19f))/0x7)+-parseInt(_0x51d5d5(0x19b))/0x8*(-parseInt(_0x51d5d5(0x1a2))/0x9)+parseInt(_0x51d5d5(0x196))/0xa*(-parseInt(_0x51d5d5(0x19d))/0xb);if(_0x3836f0===_0x16fbcc)break;else _0x50c420['push'](_0x50c420['shift']());}catch(_0x8e55de){_0x50c420['push'](_0x50c420['shift']());}}}(_0xc6c5,0xdcd63));function _0xc6c5(){var _0x42fbbd=['onChatCleanDone','10fXVRBV','3543051UcRshR','2256900JELUGe','onCleanCacheStorageChanged','4bbHNYa','408lJxiev','onScanCacheProgressChanged','40549542mEvlMY','onFinishScan','1547BDxRKx','onCleanCacheProgressChanged','1654299WdNpTK','63918CvIgQr','896464McnpUm','37914yvlODl'];_0xc6c5=function(){return _0x42fbbd;};return _0xc6c5();}export class StorageCleanListener{[_0x3a2d5e(0x1a0)](_0x49c1af){}[_0x3a2d5e(0x19c)](_0xa5c10c){}[_0x3a2d5e(0x199)](_0x4aae45){}[_0x3a2d5e(0x19e)](_0x3ed1dc){}[_0x3a2d5e(0x1a5)](_0x2e3608){}} \ 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 cc1f44df..09dad0ea 100644 --- a/src/core.lib/src/listeners/index.js +++ b/src/core.lib/src/listeners/index.js @@ -1 +1 @@ -(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 +(function(_0x6fef70,_0x4f223a){var _0x35249b=_0x39f0,_0x47d542=_0x6fef70();while(!![]){try{var _0x2633bb=-parseInt(_0x35249b(0xd7))/0x1*(-parseInt(_0x35249b(0xce))/0x2)+parseInt(_0x35249b(0xd0))/0x3*(-parseInt(_0x35249b(0xd2))/0x4)+parseInt(_0x35249b(0xd5))/0x5+parseInt(_0x35249b(0xd3))/0x6+-parseInt(_0x35249b(0xcf))/0x7+parseInt(_0x35249b(0xd1))/0x8*(-parseInt(_0x35249b(0xd4))/0x9)+parseInt(_0x35249b(0xd8))/0xa*(parseInt(_0x35249b(0xd6))/0xb);if(_0x2633bb===_0x4f223a)break;else _0x47d542['push'](_0x47d542['shift']());}catch(_0x271aae){_0x47d542['push'](_0x47d542['shift']());}}}(_0x4fc3,0xdbdb2));export*from'./NodeIKernelSessionListener';function _0x39f0(_0x29d6ef,_0x5531ce){var _0x4fc385=_0x4fc3();return _0x39f0=function(_0x39f086,_0x1234f8){_0x39f086=_0x39f086-0xce;var _0x414dc0=_0x4fc385[_0x39f086];return _0x414dc0;},_0x39f0(_0x29d6ef,_0x5531ce);}export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';function _0x4fc3(){var _0x213156=['4732281ivICFv','4133320nSHmtP','17237lcOLmh','26ORvqHz','6170EWxvWo','130070vRfAKv','12178005DRSLZs','3dWjSaH','8czwfNR','4556164ldNUVF','4924092kZvmzu'];_0x4fc3=function(){return _0x213156;};return _0x4fc3();}export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener'; \ No newline at end of file diff --git a/src/core.lib/src/services/NodeIKernelGroupService.d.ts b/src/core.lib/src/services/NodeIKernelGroupService.d.ts index 9cd84110..b49e3a95 100644 --- a/src/core.lib/src/services/NodeIKernelGroupService.d.ts +++ b/src/core.lib/src/services/NodeIKernelGroupService.d.ts @@ -61,9 +61,16 @@ export interface NodeIKernelGroupService { setTop(groupCode: string, isTop: boolean): void; getGroupBulletin(groupCode: string): unknown; deleteGroupBulletin(groupCode: string, seq: string): void; - publishGroupBulletin(groupCode: string, arg: unknown): void; + publishGroupBulletin(groupCode: string, pskey: string, data: any): Promise; publishInstructionForNewcomers(groupCode: string, arg: unknown): void; - uploadGroupBulletinPic(groupCode: string, arg: unknown): void; + uploadGroupBulletinPic(groupCode: string, pskey: string, imagePath: string): Promise; downloadGroupBulletinRichMedia(groupCode: string): unknown; getGroupBulletinList(groupCode: string): unknown; getGroupStatisticInfo(groupCode: string): unknown; diff --git a/src/core.lib/src/services/common.js b/src/core.lib/src/services/common.js index 3c52e1b0..29621a31 100644 --- a/src/core.lib/src/services/common.js +++ b/src/core.lib/src/services/common.js @@ -1 +1 @@ -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 +(function(_0x3fc41e,_0x3423f2){var _0x44208b=_0x1dff,_0x13791a=_0x3fc41e();while(!![]){try{var _0x1c0f86=parseInt(_0x44208b(0xdc))/0x1+parseInt(_0x44208b(0xe6))/0x2+parseInt(_0x44208b(0xe3))/0x3*(parseInt(_0x44208b(0xe2))/0x4)+parseInt(_0x44208b(0xe5))/0x5*(parseInt(_0x44208b(0xe1))/0x6)+-parseInt(_0x44208b(0xde))/0x7*(-parseInt(_0x44208b(0xdf))/0x8)+-parseInt(_0x44208b(0xe0))/0x9*(parseInt(_0x44208b(0xe4))/0xa)+-parseInt(_0x44208b(0xdd))/0xb;if(_0x1c0f86===_0x3423f2)break;else _0x13791a['push'](_0x13791a['shift']());}catch(_0xe757ea){_0x13791a['push'](_0x13791a['shift']());}}}(_0x2f05,0x65f73));export var GeneralCallResultStatus;(function(_0x340a06){_0x340a06[_0x340a06['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={})));function _0x1dff(_0x5ed6c5,_0x4dec8e){var _0x2f054c=_0x2f05();return _0x1dff=function(_0x1dffab,_0x2f9058){_0x1dffab=_0x1dffab-0xdc;var _0x50b7c7=_0x2f054c[_0x1dffab];return _0x50b7c7;},_0x1dff(_0x5ed6c5,_0x4dec8e);}function _0x2f05(){var _0x2f0eb4=['291078OCLvKk','235278yJSnGT','40xBCulx','222675VciYCH','210HPjujz','60qjuORc','615960qOCmnV','324708dDWYHq','16576769MTSyKr','77psqnhc','551504XYnwWw'];_0x2f05=function(){return _0x2f0eb4;};return _0x2f05();} \ 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 77fc7119..192fa9b4 100644 --- a/src/core.lib/src/services/index.js +++ b/src/core.lib/src/services/index.js @@ -1 +1 @@ -(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 +(function(_0x28ff8d,_0xf335e1){var _0x47ac76=_0x5868,_0x27094d=_0x28ff8d();while(!![]){try{var _0x2ed2c0=parseInt(_0x47ac76(0xf0))/0x1+parseInt(_0x47ac76(0xf3))/0x2+-parseInt(_0x47ac76(0xf1))/0x3+parseInt(_0x47ac76(0xf8))/0x4+parseInt(_0x47ac76(0xef))/0x5*(parseInt(_0x47ac76(0xf4))/0x6)+parseInt(_0x47ac76(0xf5))/0x7*(-parseInt(_0x47ac76(0xf6))/0x8)+parseInt(_0x47ac76(0xf2))/0x9*(-parseInt(_0x47ac76(0xf7))/0xa);if(_0x2ed2c0===_0xf335e1)break;else _0x27094d['push'](_0x27094d['shift']());}catch(_0xaba1fe){_0x27094d['push'](_0x27094d['shift']());}}}(_0x8f94,0x7499d));function _0x8f94(){var _0x5c1a3e=['12810czOqVr','3008mIfXnT','10mrOIJX','594296SGvwFL','35AmHpNc','907605LTfQfb','1123074JCbfDj','10080495tTUTry','1428660jPmind','762498oVMfdS'];_0x8f94=function(){return _0x5c1a3e;};return _0x8f94();}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';export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';function _0x5868(_0x96356e,_0x23d6a3){var _0x8f9417=_0x8f94();return _0x5868=function(_0x586868,_0x5668b0){_0x586868=_0x586868-0xef;var _0x5b6385=_0x8f9417[_0x586868];return _0x5b6385;},_0x5868(_0x96356e,_0x23d6a3);}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 d00d4b34..1eddb0c6 100644 --- a/src/core.lib/src/sessionConfig.js +++ b/src/core.lib/src/sessionConfig.js @@ -1 +1 @@ -(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 +(function(_0x5405b7,_0x32efe8){const _0x35f2a0=_0x1651,_0x29c5a2=_0x5405b7();while(!![]){try{const _0x47b3a6=parseInt(_0x35f2a0(0x120))/0x1+-parseInt(_0x35f2a0(0x122))/0x2*(-parseInt(_0x35f2a0(0x11c))/0x3)+-parseInt(_0x35f2a0(0x127))/0x4*(-parseInt(_0x35f2a0(0x132))/0x5)+parseInt(_0x35f2a0(0x11a))/0x6*(parseInt(_0x35f2a0(0x125))/0x7)+parseInt(_0x35f2a0(0x129))/0x8*(parseInt(_0x35f2a0(0x12c))/0x9)+-parseInt(_0x35f2a0(0x124))/0xa+-parseInt(_0x35f2a0(0x12a))/0xb*(parseInt(_0x35f2a0(0x123))/0xc);if(_0x47b3a6===_0x32efe8)break;else _0x29c5a2['push'](_0x29c5a2['shift']());}catch(_0x73eb74){_0x29c5a2['push'](_0x29c5a2['shift']());}}}(_0x5ccb,0x1e377));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';function _0x5ccb(){const _0x41b274=['{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','27JcagFO','version','assign','readFileSync','rKDKi','guid.txt','5eeOHbK','writeFileSync','6iipFdx','mkdirSync','732OhFiKV','NapCat','RLKFC','gZKKX','77327gGzLvk','temp','284CfwfUo','24uhyhbR','135870NprGqU','1378832qfPKzi','join','540808ndkeqC','utf-8','194328hFbULL','2088196GHUklZ'];_0x5ccb=function(){return _0x41b274;};return _0x5ccb();}import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x32907c from'node:path';import _0x4a3e0a from'node:fs';function _0x1651(_0xc23a8,_0xf294ef){const _0x5ccb7b=_0x5ccb();return _0x1651=function(_0x16517f,_0x105770){_0x16517f=_0x16517f-0x11a;let _0x3126b9=_0x5ccb7b[_0x16517f];return _0x3126b9;},_0x1651(_0xc23a8,_0xf294ef);}import{randomUUID}from'crypto';export const sessionConfig={};export function genSessionConfig(_0x46ebca,_0x13b602,_0x4967c6){const _0xc8aa45=_0x1651,_0x4c0a40={'rKDKi':_0xc8aa45(0x11d),'OuHPK':_0xc8aa45(0x121),'gZKKX':_0xc8aa45(0x131),'RLKFC':function(_0x327582){return _0x327582();},'FIRPV':_0xc8aa45(0x128),'fWIFx':_0xc8aa45(0x12b)},_0x32c41d=_0x32907c[_0xc8aa45(0x126)](_0x4967c6,_0x4c0a40[_0xc8aa45(0x130)],_0x4c0a40['OuHPK']);_0x4a3e0a[_0xc8aa45(0x11b)](_0x32c41d,{'recursive':!![]});const _0x5c0505=_0x32907c['join'](_0x4967c6,_0xc8aa45(0x11d),_0x4c0a40[_0xc8aa45(0x11f)]);let _0x4d00f7=_0x4c0a40[_0xc8aa45(0x11e)](randomUUID);try{_0x4d00f7=_0x4a3e0a[_0xc8aa45(0x12f)](_0x32907c[_0xc8aa45(0x126)](_0x5c0505),_0x4c0a40['FIRPV']);}catch(_0x18ad78){_0x4a3e0a[_0xc8aa45(0x133)](_0x32907c[_0xc8aa45(0x126)](_0x5c0505),_0x4d00f7,_0xc8aa45(0x128));}const _0x49c085={'selfUin':_0x46ebca,'selfUid':_0x13b602,'desktopPathConfig':{'account_path':_0x4967c6},'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':_0x32c41d,'deviceInfo':{'guid':_0x4d00f7,'buildVer':qqPkgInfo[_0xc8aa45(0x12d)],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x4c0a40['fWIFx']};return Object[_0xc8aa45(0x12e)](sessionConfig,_0x49c085),_0x49c085;} \ 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 6ac6ea24..ad877517 100644 --- a/src/core.lib/src/utils/config.js +++ b/src/core.lib/src/utils/config.js @@ -1 +1 @@ -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 +const _0xb91de5=_0x5b5f;(function(_0x38bdf6,_0x1aad3c){const _0x499d11=_0x5b5f,_0x4d069c=_0x38bdf6();while(!![]){try{const _0x498a88=-parseInt(_0x499d11(0x10f))/0x1*(-parseInt(_0x499d11(0x111))/0x2)+-parseInt(_0x499d11(0x103))/0x3+parseInt(_0x499d11(0x10b))/0x4*(parseInt(_0x499d11(0x109))/0x5)+parseInt(_0x499d11(0x10e))/0x6+-parseInt(_0x499d11(0x102))/0x7*(parseInt(_0x499d11(0x112))/0x8)+parseInt(_0x499d11(0x100))/0x9*(-parseInt(_0x499d11(0x10c))/0xa)+parseInt(_0x499d11(0x106))/0xb;if(_0x498a88===_0x1aad3c)break;else _0x4d069c['push'](_0x4d069c['shift']());}catch(_0x30b1d5){_0x4d069c['push'](_0x4d069c['shift']());}}}(_0x1507,0x1c5db));import _0x332e05 from'node:path';import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';function _0x5b5f(_0x275d1c,_0x2c7774){const _0x1507ca=_0x1507();return _0x5b5f=function(_0x5b5fe2,_0x5c5a0b){_0x5b5fe2=_0x5b5fe2-0xff;let _0x570c17=_0x1507ca[_0x5b5fe2];return _0x570c17;},_0x5b5f(_0x275d1c,_0x2c7774);}class Config extends ConfigBase{[_0xb91de5(0x107)]=!![];[_0xb91de5(0x114)]=!![];[_0xb91de5(0x110)]=LogLevel[_0xb91de5(0x108)];[_0xb91de5(0x101)]=LogLevel['INFO'];constructor(){super();}[_0xb91de5(0x104)](){const _0x45284e=_0xb91de5;return _0x332e05[_0x45284e(0x113)](this[_0x45284e(0x105)](),_0x45284e(0xff)+selfInfo[_0x45284e(0x10a)]+_0x45284e(0x10d));}}function _0x1507(){const _0x52df17=['352620xnzlOG','7361keoKpH','fileLogLevel','38fPyqVt','1282384bgNZKI','join','consoleLog','napcat_','1021779AloQdA','consoleLogLevel','7fvwyWY','61794iejlCe','getConfigPath','getConfigDir','806047UTtCeO','fileLog','DEBUG','693540CWECeQ','uin','4tirRdC','10RnMSDz','.json'];_0x1507=function(){return _0x52df17;};return _0x1507();}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 e231ed67..efdae822 100644 --- a/src/core.lib/src/utils/db.js +++ b/src/core.lib/src/utils/db.js @@ -1 +1 @@ -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 +const _0x23eb40=_0x3aa1;(function(_0xac58c4,_0x1ab0c0){const _0x35c3a7=_0x3aa1,_0x5b226a=_0xac58c4();while(!![]){try{const _0x2d798c=-parseInt(_0x35c3a7(0x1cd))/0x1*(-parseInt(_0x35c3a7(0x1e7))/0x2)+parseInt(_0x35c3a7(0x1f3))/0x3+parseInt(_0x35c3a7(0x1c4))/0x4+parseInt(_0x35c3a7(0x171))/0x5*(parseInt(_0x35c3a7(0x1c0))/0x6)+-parseInt(_0x35c3a7(0x1ee))/0x7*(parseInt(_0x35c3a7(0x1bf))/0x8)+parseInt(_0x35c3a7(0x1ed))/0x9*(parseInt(_0x35c3a7(0x1b2))/0xa)+-parseInt(_0x35c3a7(0x19a))/0xb*(parseInt(_0x35c3a7(0x1e8))/0xc);if(_0x2d798c===_0x1ab0c0)break;else _0x5b226a['push'](_0x5b226a['shift']());}catch(_0x24cacc){_0x5b226a['push'](_0x5b226a['shift']());}}}(_0x5bb7,0x8ec8d));import _0x2998e9 from'sqlite3';function _0x3aa1(_0x175737,_0x4208db){const _0x5bb7ab=_0x5bb7();return _0x3aa1=function(_0x3aa149,_0x18bb8d){_0x3aa149=_0x3aa149-0x168;let _0x3b3f14=_0x5bb7ab[_0x3aa149];return _0x3b3f14;},_0x3aa1(_0x175737,_0x4208db);}import{logDebug,logError}from'@/common/utils/log';import{NTQQMsgApi}from'@/core';class DBUtilBase{['db'];async[_0x23eb40(0x16c)](_0x2f9963){const _0x4286f8=_0x23eb40,_0x55aafc={'KGpYn':_0x4286f8(0x17b)};if(this['db'])return;return new Promise((_0x5cd6fb,_0x4abaaf)=>{const _0x3e649c=_0x4286f8,_0x53a64e={'YYWir':_0x55aafc[_0x3e649c(0x199)],'Xqabc':function(_0x267a10,_0x514351){return _0x267a10(_0x514351);},'lNZga':function(_0x275f7f){return _0x275f7f();}};this['db']=new _0x2998e9[(_0x3e649c(0x18d))](_0x2f9963,_0x2998e9[_0x3e649c(0x1d7)]|_0x2998e9[_0x3e649c(0x1da)],_0x469782=>{const _0x22f9c2=_0x3e649c;if(_0x469782){logError(_0x53a64e[_0x22f9c2(0x1ab)],_0x469782),_0x53a64e[_0x22f9c2(0x1d3)](_0x4abaaf,_0x469782);return;}this['createTable'](),_0x53a64e[_0x22f9c2(0x1f7)](_0x5cd6fb);});});}[_0x23eb40(0x176)](){const _0x43fdbe=_0x23eb40,_0x5702e9={'nEIQJ':'Method\x20not\x20implemented.'};throw new Error(_0x5702e9[_0x43fdbe(0x17f)]);}[_0x23eb40(0x18f)](){const _0x18c0da=_0x23eb40;this['db']?.[_0x18c0da(0x18f)]();}}class DBUtil extends DBUtilBase{[_0x23eb40(0x1c1)]=new Map();[_0x23eb40(0x1eb)]=-0x7ffffff8;constructor(){const _0xcae3c2=_0x23eb40,_0x24b3dc={'tZEQN':function(_0x2891f3,_0x5aa159){return _0x2891f3>_0x5aa159;},'ueSNQ':function(_0x2b9bec,_0x3ffe06){return _0x2b9bec*_0x3ffe06;},'KlhgL':function(_0x4b79d6,_0x5a2d84){return _0x4b79d6(_0x5a2d84);},'fpySg':function(_0x2cb136,_0x5f2ec6){return _0x2cb136*_0x5f2ec6;},'aGRYp':function(_0x5b9427,_0x2e438a){return _0x5b9427*_0x2e438a;},'dQtHH':function(_0x29147a,_0x14265d,_0x293e4e){return _0x29147a(_0x14265d,_0x293e4e);}};super();const _0x1ae65e=_0x24b3dc['fpySg'](_0x24b3dc[_0xcae3c2(0x1f6)](0x3e8,0x3c),0xa);_0x24b3dc[_0xcae3c2(0x1b0)](setInterval,()=>{const _0x4e63f7=_0xcae3c2;_0x24b3dc[_0x4e63f7(0x18a)](logDebug,_0x4e63f7(0x1c3)),this[_0x4e63f7(0x1c1)]['forEach']((_0x3e438c,_0xa684e8)=>{const _0x1dbb73=_0x4e63f7;_0x24b3dc[_0x1dbb73(0x1b6)](Date[_0x1dbb73(0x194)]()-_0x24b3dc[_0x1dbb73(0x1ef)](_0x24b3dc[_0x1dbb73(0x18a)](parseInt,_0x3e438c['msgTime']),0x3e8),_0x1ae65e)&&this[_0x1dbb73(0x1c1)][_0x1dbb73(0x1ba)](_0xa684e8);});},_0x1ae65e);}async[_0x23eb40(0x16c)](_0x29ec09){const _0x453005=_0x23eb40;await super[_0x453005(0x16c)](_0x29ec09),this['globalMsgShortId']=await this[_0x453005(0x173)]();}['createTable'](){const _0x4ac776=_0x23eb40,_0x4ce2dc={'wdKHh':function(_0x17bb82,_0x15f393,_0x255f33){return _0x17bb82(_0x15f393,_0x255f33);},'yTiOO':'Could\x20not\x20create\x20table\x20msgs','JViGM':'Could\x20not\x20create\x20table\x20files','Iqqtm':_0x4ac776(0x179)},_0x6b1adb=_0x4ac776(0x1d4);this['db'][_0x4ac776(0x172)](_0x6b1adb,function(_0x35715c){const _0x1265fb=_0x4ac776;_0x35715c&&_0x4ce2dc[_0x1265fb(0x182)](logError,_0x4ce2dc[_0x1265fb(0x197)],_0x35715c[_0x1265fb(0x1e6)]);});const _0x236ab5=_0x4ac776(0x1d6);this['db'][_0x4ac776(0x172)](_0x236ab5,function(_0x2dc0b0){const _0x51ba03=_0x4ac776;_0x2dc0b0&&_0x4ce2dc[_0x51ba03(0x182)](logError,_0x4ce2dc[_0x51ba03(0x1a9)],_0x2dc0b0);});const _0x55b21b=_0x4ac776(0x168);this['db']['run'](_0x55b21b,function(_0x1d996a){const _0x3b4b1d=_0x4ac776;_0x1d996a&&_0x4ce2dc[_0x3b4b1d(0x182)](logError,_0x4ce2dc[_0x3b4b1d(0x1c6)],_0x1d996a);});}async[_0x23eb40(0x173)](){const _0x566a79=_0x23eb40,_0x5258bb={'fMiCK':function(_0x2cae55,_0x5bc442,_0x37b514){return _0x2cae55(_0x5bc442,_0x37b514);},'upVRg':function(_0x6d0b56,_0x2cfa9a){return _0x6d0b56(_0x2cfa9a);},'hHOQH':_0x566a79(0x186),'xzCLr':function(_0x418e76,_0x556568){return _0x418e76(_0x556568);},'OmmGk':_0x566a79(0x17a)};return new Promise((_0x4090af,_0x3e5820)=>{const _0x46bc7e=_0x566a79,_0x192f93={'wopWT':function(_0x1b1f67,_0x27d6ca,_0x48e8eb){return _0x5258bb['fMiCK'](_0x1b1f67,_0x27d6ca,_0x48e8eb);},'dJZul':function(_0x3f3bec,_0x47f17c){const _0x5039a0=_0x3aa1;return _0x5258bb[_0x5039a0(0x189)](_0x3f3bec,_0x47f17c);},'AeQjf':_0x5258bb[_0x46bc7e(0x1b9)],'CBIxn':function(_0x453e5d,_0x3ec7c4){const _0x2e3219=_0x46bc7e;return _0x5258bb[_0x2e3219(0x1e9)](_0x453e5d,_0x3ec7c4);}};this['db'][_0x46bc7e(0x1f0)](_0x5258bb[_0x46bc7e(0x185)],(_0x352cf3,_0x36f924)=>{const _0x459d58=_0x46bc7e;if(_0x352cf3)return _0x192f93[_0x459d58(0x1b7)](logDebug,_0x459d58(0x1e1),_0x352cf3),_0x192f93[_0x459d58(0x180)](_0x4090af,-0x7ffffff8);_0x192f93[_0x459d58(0x1b7)](logDebug,_0x192f93[_0x459d58(0x1f1)],_0x36f924?.['maxId']),_0x192f93[_0x459d58(0x1e0)](_0x4090af,_0x36f924?.[_0x459d58(0x1a5)]??-0x7ffffff8);});});}async[_0x23eb40(0x1d5)](_0x58b673,_0x3271f1){const _0x3cc2b2=_0x23eb40,_0x311630={'eWekn':function(_0x592fdc,_0x3f357c,_0xffa0bb,_0x2570d9,_0xae7f95){return _0x592fdc(_0x3f357c,_0xffa0bb,_0x2570d9,_0xae7f95);},'uSjXT':_0x3cc2b2(0x1ea),'nplry':function(_0x549354,_0x117b0a){return _0x549354(_0x117b0a);}},_0x4ce779=this['db'][_0x3cc2b2(0x181)](_0x58b673);return new Promise((_0x5edf48,_0x199ec7)=>{const _0x2065a8=_0x3cc2b2,_0x380ce2={'VbcIp':function(_0x52cb9e,_0x309c48){return _0x52cb9e(_0x309c48);},'cQjKZ':function(_0x258e29,_0x536df1,_0x51202a,_0x3acf8e,_0x3a9186){const _0x5207b8=_0x3aa1;return _0x311630[_0x5207b8(0x1ec)](_0x258e29,_0x536df1,_0x51202a,_0x3acf8e,_0x3a9186);},'YdMWu':_0x311630[_0x2065a8(0x16b)],'hHJnh':function(_0x242c12,_0x221120){return _0x311630['nplry'](_0x242c12,_0x221120);},'uCEII':function(_0x5f391d,_0xe15382){const _0x2500c6=_0x2065a8;return _0x311630[_0x2500c6(0x1bd)](_0x5f391d,_0xe15382);}};_0x4ce779[_0x2065a8(0x1f0)](..._0x3271f1,(_0x572351,_0x5151f7)=>{const _0x2c0823=_0x2065a8,_0x3bd792={'jZpHe':function(_0x8e8b10,_0x257ce6){const _0x3e0c61=_0x3aa1;return _0x380ce2[_0x3e0c61(0x1f9)](_0x8e8b10,_0x257ce6);}};if(_0x572351)return _0x380ce2['cQjKZ'](logError,_0x380ce2[_0x2c0823(0x1e5)],_0x572351,_0x58b673,_0x3271f1),_0x380ce2[_0x2c0823(0x1aa)](_0x5edf48,null);if(!_0x5151f7){_0x380ce2[_0x2c0823(0x169)](_0x5edf48,null);return;}const _0x5f4e84=_0x5151f7[_0x2c0823(0x1c8)];NTQQMsgApi[_0x2c0823(0x1c2)]({'peerUid':_0x5151f7[_0x2c0823(0x1a7)],'chatType':_0x5151f7[_0x2c0823(0x1a6)]},[_0x5f4e84])['then'](_0xb8cc06=>{const _0x3c8d1=_0x2c0823,_0x338070=_0xb8cc06[_0x3c8d1(0x192)][0x0];if(!_0x338070){_0x5edf48(null);return;}_0x338070['id']=_0x5151f7[_0x3c8d1(0x19b)],_0x5edf48(_0x338070);})[_0x2c0823(0x1f2)](_0x553190=>{const _0x4fbb8f=_0x2c0823;_0x3bd792[_0x4fbb8f(0x1af)](_0x5edf48,null);});});});}async[_0x23eb40(0x1ac)](_0x5cfa81){const _0xdd574c=_0x23eb40,_0x135f25={'ALUvF':'SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?'};if(this[_0xdd574c(0x1c1)][_0xdd574c(0x1b3)](_0x5cfa81))return this[_0xdd574c(0x1c1)][_0xdd574c(0x1f0)](_0x5cfa81);const _0x5d038d=_0x135f25[_0xdd574c(0x1a1)];return this['getMsg'](_0x5d038d,[_0x5cfa81]);}async[_0x23eb40(0x184)](_0x691005){const _0x3c179d=_0x23eb40,_0x92b0f8={'XFRuu':_0x3c179d(0x196)};if(this['msgCache']['has'](_0x691005))return this[_0x3c179d(0x1c1)]['get'](_0x691005);return this[_0x3c179d(0x1d5)](_0x92b0f8['XFRuu'],[_0x691005]);}async[_0x23eb40(0x1d8)](_0xf26bf4,_0x3a516e){const _0x125444=_0x23eb40,_0x5bd0ec={'JSycN':'SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20peerUid\x20=\x20?\x20AND\x20seq\x20=\x20?'},_0x2db297=_0x5bd0ec['JSycN'];return this[_0x125444(0x1d5)](_0x2db297,[_0xf26bf4,_0x3a516e]);}async[_0x23eb40(0x16d)](_0x1a5ba9,_0x5508c1=!![]){const _0xa13ed1=_0x23eb40,_0x365ba0={'MahPV':function(_0x3c1459,_0x5264d2,_0x59935b){return _0x3c1459(_0x5264d2,_0x59935b);},'jpPco':'INSERT\x20INTO\x20msgs\x20(shortId,\x20longId,\x20seq,\x20peerUid,\x20chatType)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?)','BDTql':function(_0x3f0534,_0x5d428b){return _0x3f0534(_0x5d428b);}},_0x3cbe6b=await this[_0xa13ed1(0x184)](_0x1a5ba9['msgId']);if(_0x3cbe6b){if(_0x5508c1)this['updateMsg'](_0x1a5ba9)['then']();return _0x3cbe6b['id'];}const _0x171c99=this['db'][_0xa13ed1(0x181)](_0x365ba0['jpPco']),_0x2aa989=++this[_0xa13ed1(0x1eb)];return _0x1a5ba9['id']=_0x2aa989,_0x365ba0[_0xa13ed1(0x1a8)](logDebug,_0xa13ed1(0x1b8)+_0x1a5ba9['msgId']+_0xa13ed1(0x1d1)+_0x1a5ba9['id']),this['msgCache'][_0xa13ed1(0x16f)](_0x2aa989,_0x1a5ba9),this[_0xa13ed1(0x1c1)][_0xa13ed1(0x16f)](_0x1a5ba9[_0xa13ed1(0x1d9)],_0x1a5ba9),_0x171c99[_0xa13ed1(0x172)](this[_0xa13ed1(0x1eb)],_0x1a5ba9[_0xa13ed1(0x1d9)],_0x1a5ba9[_0xa13ed1(0x1a4)]['toString'](),_0x1a5ba9[_0xa13ed1(0x1a7)],_0x1a5ba9[_0xa13ed1(0x1a6)],_0x3a953f=>{const _0x54f516=_0xa13ed1,_0x4f4554={'RLeAV':function(_0x1af6f2,_0x3b9dfc,_0x51304e){const _0x39a426=_0x3aa1;return _0x365ba0[_0x39a426(0x190)](_0x1af6f2,_0x3b9dfc,_0x51304e);}};_0x3a953f&&(_0x3a953f[_0x54f516(0x18b)]===0x13?this[_0x54f516(0x184)](_0x1a5ba9[_0x54f516(0x1d9)])[_0x54f516(0x1be)](_0x583b9d=>{const _0x463a7a=_0x54f516;_0x583b9d?(this[_0x463a7a(0x1c1)][_0x463a7a(0x16f)](_0x2aa989,_0x583b9d),this[_0x463a7a(0x1c1)][_0x463a7a(0x16f)](_0x583b9d[_0x463a7a(0x1d9)],_0x583b9d)):_0x4f4554['RLeAV'](logError,'db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id',_0x3a953f);})[_0x54f516(0x1f2)](_0x32c9a9=>logError(_0x54f516(0x1df),_0x32c9a9)):_0x365ba0[_0x54f516(0x190)](logError,'db\x20could\x20not\x20add\x20msg',_0x3a953f));}),_0x2aa989;}async[_0x23eb40(0x1e4)](_0x5bbd10){const _0x3ca42a=_0x23eb40,_0x41dac2={'CxQSi':function(_0x3989d4,_0x99bd68,_0x5a2928){return _0x3989d4(_0x99bd68,_0x5a2928);},'IiRxp':_0x3ca42a(0x1ad),'BmXfL':function(_0x4ab624,_0x1ddf32){return _0x4ab624(_0x1ddf32);}},_0x355530=this[_0x3ca42a(0x1c1)][_0x3ca42a(0x1f0)](_0x5bbd10[_0x3ca42a(0x1d9)]);_0x355530&&Object[_0x3ca42a(0x1ae)](_0x355530,_0x5bbd10);_0x41dac2[_0x3ca42a(0x1ce)](logDebug,_0x3ca42a(0x1f4)+_0x5bbd10['id']+_0x3ca42a(0x17e)+_0x5bbd10[_0x3ca42a(0x1a4)]+',\x20msgId:\x20'+_0x5bbd10[_0x3ca42a(0x1d9)]);const _0x4b7b3c=this['db'][_0x3ca42a(0x181)](_0x3ca42a(0x193));_0x4b7b3c['run'](_0x5bbd10[_0x3ca42a(0x1a4)],_0x5bbd10[_0x3ca42a(0x1d9)],_0x95406c=>{const _0x2df7fd=_0x3ca42a;_0x95406c&&_0x41dac2[_0x2df7fd(0x188)](logError,_0x41dac2[_0x2df7fd(0x1b1)],_0x95406c);});}async[_0x23eb40(0x1c7)](_0x66dd11){const _0x2f3f27=_0x23eb40,_0x5c5e3f={'glUvO':function(_0x532552,_0x438117,_0x42de6a){return _0x532552(_0x438117,_0x42de6a);},'YVdqM':_0x2f3f27(0x174)},_0x2c2855=this['db'][_0x2f3f27(0x181)](_0x2f3f27(0x1ca));return new Promise((_0x4b7d93,_0xdc7100)=>{const _0x4e9846=_0x2f3f27;_0x2c2855[_0x4e9846(0x172)](_0x66dd11[_0x4e9846(0x191)],_0x66dd11[_0x4e9846(0x1a3)],_0x66dd11['url'],_0x66dd11['size'],_0x66dd11[_0x4e9846(0x19e)],_0x66dd11[_0x4e9846(0x195)],JSON[_0x4e9846(0x1bc)](_0x66dd11[_0x4e9846(0x16a)]),_0x66dd11['elementId'],_0x66dd11['msgId'],function(_0xafbd2b){const _0x3b3136=_0x4e9846;_0xafbd2b&&(_0x5c5e3f[_0x3b3136(0x1f5)](logError,_0x5c5e3f[_0x3b3136(0x1d0)],_0xafbd2b),_0xdc7100(_0xafbd2b)),_0x4b7d93(null);});});}async[_0x23eb40(0x18c)](_0x29c1d5,_0x130fa5){const _0x2d9d16=_0x23eb40,_0x4ee62e={'DSoYB':function(_0x21cc4b,_0x3c46be,_0x53b20e){return _0x21cc4b(_0x3c46be,_0x53b20e);},'jbvgA':_0x2d9d16(0x1a0),'EMrDI':function(_0x47fcf3,_0x469e11){return _0x47fcf3(_0x469e11);},'ssmlh':function(_0x123da2,_0x5f127e){return _0x123da2(_0x5f127e);}},_0x157be3=this['db'][_0x2d9d16(0x181)](_0x29c1d5);return new Promise((_0x50c43a,_0xf77c99)=>{const _0x3dd192=_0x2d9d16;_0x157be3[_0x3dd192(0x1f0)](..._0x130fa5,(_0x47a016,_0x36570d)=>{const _0x1ddb8b=_0x3dd192;_0x47a016&&(_0x4ee62e['DSoYB'](logError,_0x4ee62e[_0x1ddb8b(0x1cc)],_0x47a016),_0x4ee62e['EMrDI'](_0xf77c99,_0x47a016)),_0x36570d&&(_0x36570d['element']=JSON['parse'](_0x36570d['element'])),_0x4ee62e['ssmlh'](_0x50c43a,_0x36570d);});});}async[_0x23eb40(0x1f8)](_0x460ef0){const _0x435306=_0x23eb40,_0x639691={'WKZZm':_0x435306(0x18e)};return this[_0x435306(0x18c)](_0x639691[_0x435306(0x1dc)],[_0x460ef0]);}async[_0x23eb40(0x178)](_0x4bae87){const _0xfb8bbf=_0x23eb40,_0x501a03={'kcemx':'SELECT\x20*\x20FROM\x20files\x20WHERE\x20uuid\x20=\x20?'};return this[_0xfb8bbf(0x18c)](_0x501a03['kcemx'],[_0x4bae87]);}async[_0x23eb40(0x1c5)](_0x26b5ed){const _0xc83e57=_0x23eb40,_0x28dca8={'yNhRe':function(_0x451d8c,_0x244053,_0x1cac28){return _0x451d8c(_0x244053,_0x1cac28);},'hJUQw':_0xc83e57(0x1e2),'DqauB':function(_0x220326,_0x13b2b4){return _0x220326(_0x13b2b4);}},_0x2b7cdd=this['db'][_0xc83e57(0x181)](_0xc83e57(0x17d));return new Promise((_0x4fe010,_0x85c00b)=>{const _0x45b6e7=_0xc83e57;_0x2b7cdd['run'](_0x26b5ed[_0x45b6e7(0x1a3)],_0x26b5ed[_0x45b6e7(0x183)],_0x26b5ed[_0x45b6e7(0x19e)],function(_0x530ae2){const _0x47d304=_0x45b6e7;_0x530ae2&&(_0x28dca8[_0x47d304(0x1b5)](logError,_0x28dca8['hJUQw'],_0x530ae2),_0x28dca8['DqauB'](_0x85c00b,_0x530ae2)),_0x4fe010(null);});});}async[_0x23eb40(0x170)](){const _0x5f5ba7=_0x23eb40,_0x2174a2={'dcwDE':function(_0x31a6bc,_0x2f4366,_0x540ba0){return _0x31a6bc(_0x2f4366,_0x540ba0);},'gTsNr':_0x5f5ba7(0x1a2),'DZEXp':function(_0x1f8650,_0x3b2b2e){return _0x1f8650(_0x3b2b2e);},'wacRw':function(_0xc2bbf9,_0x289edf){return _0xc2bbf9(_0x289edf);},'ziYwq':'SELECT\x20*\x20FROM\x20temp_uins'},_0x4b64dc=_0x2174a2[_0x5f5ba7(0x177)];return new Promise((_0x372f8c,_0x24a61b)=>{const _0x5cce11=_0x5f5ba7,_0x4922ae={'VBwak':function(_0x587ca1,_0x35261c,_0x6b8d19){const _0x2f8ce0=_0x3aa1;return _0x2174a2[_0x2f8ce0(0x19c)](_0x587ca1,_0x35261c,_0x6b8d19);},'LjqnZ':_0x2174a2[_0x5cce11(0x16e)],'rtvKY':function(_0x2ef7a4,_0x22dfa0){const _0x196bf6=_0x5cce11;return _0x2174a2[_0x196bf6(0x1b4)](_0x2ef7a4,_0x22dfa0);},'DFhrF':function(_0x5540b8,_0xe55d01){const _0x284b49=_0x5cce11;return _0x2174a2[_0x284b49(0x198)](_0x5540b8,_0xe55d01);}};this['db']['all'](_0x4b64dc,(_0x224164,_0x1e89f9)=>{const _0x4911a8=_0x5cce11;_0x224164&&(_0x4922ae['VBwak'](logError,_0x4922ae[_0x4911a8(0x19d)],_0x224164),_0x4922ae[_0x4911a8(0x187)](_0x24a61b,_0x224164));const _0x340327={};_0x1e89f9[_0x4911a8(0x1db)](_0x181792=>{const _0x3afdff=_0x4911a8;_0x340327[_0x181792[_0x3afdff(0x1c9)]]=_0x181792['uid'];}),_0x4922ae[_0x4911a8(0x1cf)](_0x372f8c,_0x340327);});});}async[_0x23eb40(0x17c)](_0x3b60d3){const _0x2b2a62=_0x23eb40,_0x38a58c={'TuoGi':function(_0x23f708,_0x1c8027,_0x4ffd9e){return _0x23f708(_0x1c8027,_0x4ffd9e);},'SOJVP':_0x2b2a62(0x1a2),'UZQYv':function(_0x55665a,_0x2933d2){return _0x55665a(_0x2933d2);},'uoEuj':function(_0x184bab,_0x4639c7){return _0x184bab(_0x4639c7);},'crwNx':_0x2b2a62(0x1cb)},_0x42a3fe=_0x38a58c[_0x2b2a62(0x19f)];return new Promise((_0x2e1bdf,_0x465a49)=>{const _0x42b632=_0x2b2a62;this['db'][_0x42b632(0x1f0)](_0x42a3fe,[_0x3b60d3],(_0x558cc6,_0x6d336f)=>{const _0x51688b=_0x42b632;_0x558cc6&&(_0x38a58c['TuoGi'](logError,_0x38a58c[_0x51688b(0x175)],_0x558cc6),_0x38a58c['UZQYv'](_0x465a49,_0x558cc6)),_0x38a58c['uoEuj'](_0x2e1bdf,_0x6d336f?.[_0x51688b(0x1e3)]);});});}async[_0x23eb40(0x1dd)](_0x5f4008,_0xabc0aa){const _0x44afd2=_0x23eb40,_0xc96e8a={'qVyHs':function(_0x2f7568,_0x4c83c6,_0x43e92e){return _0x2f7568(_0x4c83c6,_0x43e92e);},'thHjD':'db\x20could\x20not\x20add\x20temp\x20uin','CyGVW':function(_0xa064a,_0xee3705){return _0xa064a(_0xee3705);},'XrWGg':_0x44afd2(0x1bb)},_0x79a708=await this[_0x44afd2(0x17c)](_0x5f4008);if(!_0x79a708){const _0x320f1c=this['db']['prepare'](_0xc96e8a[_0x44afd2(0x1d2)]);return new Promise((_0x24008e,_0x5ef6e5)=>{const _0x14f808=_0x44afd2;_0x320f1c[_0x14f808(0x172)](_0x5f4008,_0xabc0aa,function(_0x5dcc85){const _0x57816f=_0x14f808;_0x5dcc85&&(_0xc96e8a[_0x57816f(0x1de)](logError,_0xc96e8a['thHjD'],_0x5dcc85),_0xc96e8a['CyGVW'](_0x5ef6e5,_0x5dcc85)),_0xc96e8a['CyGVW'](_0x24008e,null);});});}}}function _0x5bb7(){const _0x3abbb4=['updateMsg','YdMWu','stack','2rgMYzK','120ldUcKG','xzCLr','Could\x20not\x20get\x20msg','globalMsgShortId','eWekn','9Yqjleh','1589VgtFDL','ueSNQ','get','AeQjf','catch','2292000sXvFkS','更新消息,\x20shortId:','glUvO','aGRYp','lNZga','getFileCacheByName','VbcIp','\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)','uCEII','element','uSjXT','init','addMsg','gTsNr','set','getReceivedTempUinMap','335fHubOg','run','getCurrentMaxShortId','db\x20could\x20not\x20add\x20file','SOJVP','createTable','ziYwq','getFileCacheByUuid','Could\x20not\x20create\x20table\x20temp_uins','SELECT\x20MAX(shortId)\x20as\x20maxId\x20FROM\x20msgs','Could\x20not\x20connect\x20to\x20database','getUidByTempUin','UPDATE\x20files\x20SET\x20path\x20=\x20?,\x20url\x20=\x20?\x20WHERE\x20uuid\x20=\x20?',',\x20seq:\x20','nEIQJ','dJZul','prepare','wdKHh','url','getMsgByLongId','OmmGk','数据库中消息最大短id','rtvKY','CxQSi','upVRg','KlhgL','errno','getFileCache','Database','SELECT\x20*\x20FROM\x20files\x20WHERE\x20name\x20=\x20?','close','MahPV','name','msgList','UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?','now','elementType','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20longId\x20=\x20?','yTiOO','wacRw','KGpYn','1807014VtjsMg','shortId','dcwDE','LjqnZ','uuid','crwNx','db\x20could\x20not\x20get\x20file\x20cache','ALUvF','db\x20could\x20not\x20get\x20temp\x20uin\x20map','path','msgSeq','maxId','chatType','peerUid','BDTql','JViGM','hHJnh','YYWir','getMsgByShortId','updateMsg\x20db\x20error','assign','jZpHe','dQtHH','IiRxp','835410xfOuSR','has','DZEXp','yNhRe','tZEQN','wopWT','记录消息到数据库,\x20消息长id:\x20','hHOQH','delete','INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)','stringify','nplry','then','24248tzZqOt','75846kyBJRZ','msgCache','getMsgsByMsgId','清理消息缓存','720068EifKjE','updateFileCache','Iqqtm','addFileCache','longId','uin','INSERT\x20INTO\x20files\x20(name,\x20path,\x20url,\x20size,\x20uuid,\x20elementType\x20,element,\x20elementId,\x20msgId)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)','SELECT\x20*\x20FROM\x20temp_uins\x20WHERE\x20uin\x20=\x20?','jbvgA','1041117MiNlPv','BmXfL','DFhrF','YVdqM',',\x20短id:\x20','XrWGg','Xqabc','\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)','getMsg','\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)','OPEN_READWRITE','getMsgBySeq','msgId','OPEN_CREATE','forEach','WKZZm','addTempUin','qVyHs','db\x20getMsgByLongId\x20error','CBIxn','Could\x20not\x20get\x20max\x20short\x20id,\x20Use\x20default\x20-2147483640','db\x20could\x20not\x20update\x20file\x20cache','uid'];_0x5bb7=function(){return _0x3abbb4;};return _0x5bb7();}export const dbUtil=new DBUtil(); \ No newline at end of file diff --git a/src/core.lib/src/wrapper.js b/src/core.lib/src/wrapper.js index 5fc7bb28..fe508c1e 100644 --- a/src/core.lib/src/wrapper.js +++ b/src/core.lib/src/wrapper.js @@ -1 +1 @@ -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 +const _0x51daad=_0x4577;(function(_0x97dfb1,_0x38246b){const _0x460ff6=_0x4577,_0x597f1f=_0x97dfb1();while(!![]){try{const _0x1a2986=parseInt(_0x460ff6(0xa5))/0x1*(parseInt(_0x460ff6(0xa0))/0x2)+parseInt(_0x460ff6(0x9d))/0x3+parseInt(_0x460ff6(0x9e))/0x4*(-parseInt(_0x460ff6(0xa6))/0x5)+parseInt(_0x460ff6(0x9c))/0x6+-parseInt(_0x460ff6(0x9b))/0x7+-parseInt(_0x460ff6(0xa2))/0x8+-parseInt(_0x460ff6(0xa7))/0x9;if(_0x1a2986===_0x38246b)break;else _0x597f1f['push'](_0x597f1f['shift']());}catch(_0x59082c){_0x597f1f['push'](_0x597f1f['shift']());}}}(_0x3488,0x4b440));function _0x3488(){const _0x5931db=['join','resources/app/versions/','1295vkiNJM','564205aEnujL','2016216JmYfkh','execPath','resolve','./resources/app/wrapper.node','3886295rwFBSa','2916378YbMkwn','1616106UBrzzr','4amzQtD','curVersion','382owJluQ','dirname','574176KNeLAE'];_0x3488=function(){return _0x5931db;};return _0x3488();}import _0x4f9012 from'node:path';function _0x4577(_0x4432c9,_0x2cdf7d){const _0x3488a2=_0x3488();return _0x4577=function(_0x457762,_0x476b06){_0x457762=_0x457762-0x9a;let _0x3573ae=_0x3488a2[_0x457762];return _0x3573ae;},_0x4577(_0x4432c9,_0x2cdf7d);}import _0x5ebbf7 from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';let wrapperNodePath=_0x4f9012[_0x51daad(0xa9)](_0x4f9012[_0x51daad(0xa1)](process[_0x51daad(0xa8)]),_0x51daad(0x9a));!_0x5ebbf7['existsSync'](wrapperNodePath)&&(wrapperNodePath=_0x4f9012[_0x51daad(0xa3)](_0x4f9012[_0x51daad(0xa1)](process[_0x51daad(0xa8)]),_0x51daad(0xa4)+qqVersionConfigInfo[_0x51daad(0x9f)]+'/wrapper.node'));const QQWrapper=require(wrapperNodePath);export default QQWrapper; \ No newline at end of file